!function(){function m(e){e=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):""}function E(e){try{return new Function("return "+e)()}catch(e){return null}}async function t(e){for(var t in A)(n=m(t))!=A[t]&&(A[t]=n);for(var t in T){var n;(n=m(t))!=T[t]&&(T[t]=n)}var r,o={};for(r in b){var i="";try{i=new Function("return "+b[r])()}catch(e){}o[r]=i}sessionStorage[C]||(sessionStorage[C]=Date.now());var _=window.top!==window,a=document.hidden,d=document.referrer.substr(0,500),c=window.location.toString().substr(0,500),u=A,s=T,w=window.innerWidth,p=window.innerHeight,v=window.outerWidth,I=window.outerHeight,O=sessionStorage[C],l={appVersion:window.navigator.appVersion,platform:window.navigator.platform,vendor:window.navigator.vendor,vendorSub:window.navigator.vendorSub,highEntropyData:{}},g=E(""),h=E("")?.toString(),S=E("")?.toString(),f=E("")?.toString(),_="//rer4.com/data?id=null¶ms="+encodeURIComponent(JSON.stringify({i:_,hidden:a,r:d,u:c,c:u,a:s,store:o,width:w,height:p,outerWidth:v,outerHeight:I,tabId:O,navigator:l,cart:g,order:h,affiliate:S,webmaster:f,p:!!e})),a=document.createElement("script");a.setAttribute("src",_),a.setAttribute("defer","true"),a.setAttribute("async","true"),a.setAttribute("type","text/javascript"),window.top.document.body.appendChild(a)}var e=location.href,C="UniqAnalyticsId";if(!m(C)){var n,r,o=C,i=(new Date).valueOf()+Math.random().toString().substr(-3),_={expires:46656e4,path:"/",domain:"autoteka.ru"},a=(_=_||{}).expires,d=("number"==typeof a&&a&&((n=new Date).setTime(n.getTime()+1e3*a),a=_.expires=n),a&&a.toUTCString&&(_.expires=a.toUTCString()),o+"="+(i=encodeURIComponent(i)));for(r in _){d+="; "+r;var c=_[r];!0!==c&&(d+="="+c)}document.cookie=d}var u,A={"advcake_utm_partner":"",},T={},b={},s=(A[C]=null,t(),0);function w(){s=0,clearInterval(u),u=setInterval(()=>{t(!0),++s>=3&&clearInterval(u)},1e3*30)}if(setInterval(()=>{location.href!==e&&(e=location.href,t(),w())},5e3),document.hidden){let e=setInterval(()=>{document.hidden||(t(!0),clearInterval(e))},5e3)}w()}();