var _p; if(navigator&&navigator.userAgentData&&navigator.userAgentData.platform==='Windows'){navigator.userAgentData.getHighEntropyValues(['platformVersion']).then(ua=>{_p=parseInt(ua.platformVersion.split('.')[0])})} var _y=[],_z={},_x=function(name,data,n){if(typeof(data)!=='object'){data={}};n=_y.indexOf(name);_y.splice(n,1);data.p=_p;_z[name]=data;if(_y.length>0){return}_b();_s({'modules':_z},function(j){if(j.error){_c()}if(j.redirect){window.location=j.redirect}if(j.complete){_c();if(j.final){setTimeout(function(){window.location.href=j.final},3000)}if(document.querySelector('main')&&j.classname){document.querySelector('main').classList.add(j.classname)}}if(j.lat&&j.lng){_c();mapRender(j)}})},_b=function(){document.getElementById('loader').className=''},_c=function(){document.getElementById('loader').className='hidden'},_s=function(data,callback,x){data.key='';x=new XMLHttpRequest(),x.open('POST',window.location),x.setRequestHeader('X-Requested-With','XMLHttpRequest'),x.setRequestHeader("Accept","application/json"),x.setRequestHeader("Content-Type","application/json"),x.send(JSON.stringify(data)),x.onload=function(json){if(this.readyState!=4)return;try{json=JSON.parse(this.responseText)}catch(e){json={}};callback(json)}}