(()=>{"use strict";var t={228:t=>{var i=Object.prototype.hasOwnProperty,s="~";function h(){}function e(t,i,s){this.fn=t,this.context=i,this.once=s||!1}function n(t,i,h,n,o){if("function"!=typeof h)throw new TypeError("The listener must be a function");var r=new e(h,n||t,o),a=s?s+i:i;return t.i[a]?t.i[a].fn?t.i[a]=[t.i[a],r]:t.i[a].push(r):(t.i[a]=r,t.u++),t}function o(t,i){0===--t.u?t.i=new h:delete t.i[i]}function r(){this.i=new h,this.u=0}Object.create&&(h.prototype=Object.create(null),(new h).__proto__||(s=!1)),r.prototype.eventNames=function(){var t,h,e=[];if(0===this.u)return e;for(h in t=this.i)i.call(t,h)&&e.push(s?h.slice(1):h);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},r.prototype.listeners=function(t){var i=s?s+t:t,h=this.i[i];if(!h)return[];if(h.fn)return[h.fn];for(var e=0,n=h.length,o=new Array(n);ethis.si,this.hi=()=>this.ii().hi(),this.ei=()=>this.Qt,this.ni=()=>this.Zt,this.oi=t=>{},this.ri=(...t)=>this.ii().ai(this.Zt,...t),this.ai=(t,...i)=>this.ii().ai(this.Zt+" "+t,...i),this.si=t}li(){return null}ci(t){if(void 0!==window.MutationObserver){this.ti=new window.MutationObserver((i,s)=>{i.forEach(i=>{if(!this.ii().di)if("attributes"===i.type){const s=i.target;if(t===s)return;const h=window.getComputedStyle(s).getPropertyValue("z-index");"auto"==h||"2147483647"==h&&s.style.setProperty("z-index","2147483646","important")}else i.addedNodes.forEach(i=>{if(i.nodeType===Node.ELEMENT_NODE){if(t===i)return;"2147483647"==window.getComputedStyle(i).getPropertyValue("z-index")&&i.style.setProperty("z-index","2147483646","important")}})})});const i={attributes:!0,attributeFilter:["style","class"],characterData:!1,childList:!0,subtree:!0},s=document.body||document.documentElement;this.ti.observe(s,i)}}ui(){void 0!==window.MutationObserver&&(this.ti?.disconnect(),this.ti=null)}}const K=t=>{let i=0,s=0;do{i+=t.offsetTop||0,s+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:i,left:s}},X=(t,i)=>{(document.body||document.documentElement).style.setProperty("--"+t,i)},Z=(t,i)=>{for(const s in i)"zIndex"!==s&&"pointerEvents"!==s&&"touchAction"!==s?t.style.setProperty(s,i[s],"important"):t.style[s]=i[s]},Q=(t,i)=>{for(const s in i)t.style[s]=i[s]},tt=(t,i)=>{let s=[];Object.entries(i).forEach(([t,i])=>{s.push(t+": "+i)}),s.length<=0||t.setAttribute("style",s.join(" !important; ")+" !important;")};const it=t=>new Promise(i=>{t?window.setTimeout(()=>{t.parentNode?t.parentNode.removeChild(t):t.remove(),i(!0)},50):i(!0)}),st=(t,i,s)=>{let h="";s&&(h="; max-age="+24*s*60*60);const e=t+"="+(i||"")+h+"; path=/";document.cookie=e},ht=t=>{const i=t+"=",s=document.cookie.split(";");for(let t=0;t{const t=navigator.userAgent;return navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&t&&-1==t.indexOf("CriOS")&&-1==t.indexOf("FxiOS")};class nt{constructor(t,i){if(this.qt=0,this.wi="",this._i=0,this.Zt="Main",this.pi=!1,this.Lt="",this.O=!1,this.fi="",this.mi="",this.bi="",this.gi=null,this.yi=null,this.ki=0,this.xi=!1,this.$i=!1,this.Si=!1,this.Ci=null,this.ji=0,this.Ri=null,this.Oi=0,this.Mi=4,this.zi=[30],this.Ei=null,this.Ti=!1,this.Pi="10",this.Ai="ping_reload",this.Di=45,this.Ii="",this.Fi={},this.Bi="",this.Li="",this.Ui=!0,this.Wi={position:"absolute",top:"0",left:"0",padding:"0",margin:"0",width:"100%",height:"100%",backgroundColor:"#000000",display:"block"},this.Ni=!1,this.Vi=t=>{if(!("cmp"in t))return;if(!("cmp_query"in t))return;if(this.Fi=t.cmp,this.Ii=t.cmp_query,null===this.Ei)return;const i=this.Ei.deref();if(i)try{const t=i.contentWindow;if(!t)return;const s={a:"cmp_data_update",cmp:this.Fi,cmp_query:this.Ii};t.postMessage(s,"*")}catch(t){}},this.Hi=i,this.Gi=t,!0===this.hi().O&&(this.O=!0),this.Yi=document.createElement("div"),this.Ci=new Date,void 0!==window.location.ancestorOrigins){const t=Array.from(window.location.ancestorOrigins);this.Li=encodeURIComponent(JSON.stringify(t));let i=t.pop();if(void 0!==i)this.Bi=encodeURIComponent(i);else{let t=new URL(location.href);this.Bi=encodeURIComponent(`${t.protocol}//${t.hostname}`)}}}qi(){if("yes"===this.hi().A||"yes"===this.hi().D){const t=document.createElement("div");t.innerText=this.wi,t.style.fontSize="13px",Q(t,{position:"absolute",width:"100px",height:"14px",backgroundColor:"#000000","line-height":"14px",top:"2px",left:"10px",color:"wheat","font-family":"sans-serif",fontVariant:"small-caps",zIndex:99}),this.Ji().appendChild(t),this.Ji().setAttribute("data-name",this.wi)}Z(this.Ji(),this.Wi),this.hi().Ut.Wt&&q.on(c,this.Vi)}Ki(){return this.Xi().ni()+"_"+this.wi}Zi(){return this.xi}Qi(){return this.Ti}ts(){const t=this.Yi.getBoundingClientRect();return{sw:t.width?t.width:"",sh:t.height?t.height:"",p:this.Yi.style.position?this.Yi.style.position:"",w:this.Yi.style.width?this.Yi.style.width:"",h:this.Yi.style.height?this.Yi.style.height:"",d:this.Yi.style.display?this.Yi.style.display:"",t:this.Yi.style.top?this.Yi.style.top:"",b:this.Yi.style.bottom?this.Yi.style.bottom:"",l:this.Yi.style.left?this.Yi.style.left:"",r:this.Yi.style.right?this.Yi.style.right:"",z:this.Yi.style.zIndex?this.Yi.style.zIndex:""}}ss(){this.Yi.style.pointerEvents="none"}Ji(){return this.Yi}hs(){this.Yi.style.zIndex="2",this.Yi.style.opacity="1",this.Yi.style.pointerEvents="auto"}es(){this.Yi.style.zIndex="1",this.Yi.style.opacity="1",this.Yi.style.pointerEvents="none"}li(){return this.Hi}ns(t){t.qt&&(this.qt=t.qt),t.wi&&(this.wi=t.wi),"number"==typeof t._i&&(this._i=t._i),t.Lt&&(this.Lt=t.Lt),t.Wi&&(this.Wi=t.Wi),"boolean"==typeof t.pi&&(this.pi=t.pi)}rs(){return this.Lt}Xi(){return this.Gi}hi(){return this.Xi().ii().hi()}ri(...t){return this.Xi().ai(this.wi,...t)}ls(t={}){const i=this.rs();let s={};s=Object.assign(s,t);const h=[];Object.entries(s).forEach(([t,i])=>{h.push(t+"="+i)});let e=i+"&"+h.join("&");return""!==this.Ii&&(e+="&"+this.Ii),e}ui(){this.hi().Ut.Wt&&q.off(c,this.Vi)}cs(t){this.zi.length>this.Mi&&this.zi.shift(),this.zi.push(t);const i=Math.ceil(this.zi.reduce((t,i)=>t+i,0)/this.zi.length);this.Di=i<15?30:i>=15&&i<30?45:i>=30&&i<60?60:i>=60&&i<90?90:120,this.ri("add time reload",t," all",this.zi,"avg",i,"now",this.Di)}ds(){this.Xi().ii().us()?(this.Si?(this.Si=!1,this.ri("start after hidden start")):this.ki++,this.hi().O?this.mi=this.ls({rel:"true",rnd:(new Date).getTime(),cnt:this.ki}):"no"===this.hi().A&&(this.fi=this.ls({rel:"true",rnd:(new Date).getTime(),cnt:this.ki})),null!==this.Ei&&"yes"===this.hi().A?this.ui():this.ws()):(this.ri("in hidden tab do not reboot"),this.Ni=!0)}_s(){this.Ci=new Date,this.xi=!1}ps(){if(!this.Xi().ii().us())return this.ri("ping listener not start: Hidden"),void(null!==this.Ri&&(window.clearInterval(this.Ri),this.Ri=null));this.ri("ping listener start ",this.Di),this.Oi=0,null===this.Ri&&(this.Ri=window.setInterval(()=>{if(null===this.gi){if(this.ri("ping listener work",this.Ci),null!==this.Ci){const i=(new Date).getTime(),s=(i-this.Ci.getTime())/1e3;if(this.ri("ping listener diff",s,">=",this.Di),s>=this.Di){if(this.ri("ping listener go"),this.xi=!1,this.Xi().ii().bs(),!this.Xi().ii().us())return this.ri("ping listener stop hidden or many error"),null!==this.Ri&&(window.clearInterval(this.Ri),this.Ri=null),void(this.Ni=!0);this.Oi++;let h={};if(0===this.ji&&0===this.ki)try{if(null!==this.Ei){const i=this.Ei.deref(),s=i.contentWindow.document||i.contentDocument;if(s){const{readyState:i}=s;h.state=i;let e=s.getElementsByTagName("script");if(e.length>0){h.scr=[];for(var t=0;tt+i,0)/this.zi.length),dvs:document.visibilityState,dh:document.hidden,fs:this.Xi().ii().gs(),frm:h});this.Xi().ii().vs(this.Ai,"",e),this.Ci=new Date,0===this.ji&&0===this.ki&&q.emit(this.Ki()+D),this._s(),this.ds()}else if(null!==this.Ei){const t=this.Ei.deref();if(t)try{let i=t.contentWindow.document;i.body?.classList.contains("heavy-ad")?(this.ri("HeavyAd class body heavy-ad"),this._s(),this.ds()):i.body.hasChildNodes()||(this.ri("Empty body"),this._s(),this.ds())}catch(t){this.ri("HeavyAd no body"),this._s(),this.ds()}}}}else this.ri("wait work, skip ping listener")},7e3))}ys(t){if(t.contentWindow){const i=t.contentWindow.document||t.contentDocument;if(i){const{readyState:t}=i;if(this.ri("Status",t),"complete"===t){let t=this.bi.replace("{_SCRIPT_}",this.mi);return i.open(),i.write(t),i.close(),!0}}}return!1}ks(t){if(this.Ui){if(!this.ys(t)){let i=5,s=window.setInterval(()=>{if(this.ys(t))return window.clearInterval(s),void(s=0);i--,i<=0&&(window.clearInterval(s),it(t).then(()=>{this.xs()}))},1e3)}}else fetch(this.mi).then(t=>t.json()).then(i=>{t.srcdoc=i}).catch(i=>{it(t).then(()=>{this.xs()})})}ws(){this.$i=!0;const t=new Date,i=null===this.yi?t:this.yi,s=(t.getTime()-i.getTime())/1e3;if(this.ri("Перезагрузка","разница ",s," последняя",this.yi,"А тут",i," calc",this.hi().U,s>=this.hi().U),s{const i=document.createElement("iframe");return i.setAttribute("scrolling","no"),i.setAttribute("frameborder","0"),i.setAttribute("marginheight","0px"),i.setAttribute("marginwidth","0px"),i.setAttribute("webkitAllowFullScreen","true"),i.setAttribute("allow","autoplay *; fullscreen *;"),i.setAttribute("mozAllowFullScreen","true"),i.setAttribute("referrerpolicy","unsafe-url"),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.referrerPolicy="unsafe-url",Z(i,{backgroundColor:"transparent",width:"100%",height:"100%",minWidth:"100%",minHeight:"100%",margin:"0",padding:"0",zIndex:1}),t.length>0?i.setAttribute("src",t):i.setAttribute("src","about:blank"),i})(this.fi,this.Yi,"");if(0===this.ki&&h.setAttribute("data-mds","1"),this.fi,null!==this.Ei){const t=this.Ei.deref();if(t){t.src=t.src;const i=t.parentNode;if(!i)return void it(t).then(()=>{this.Ei=null,this.xs()});i.replaceChild(h,t)}}else this.Ji().appendChild(h);this.Ei=new WeakRef(h),this.ks(h)}xs(){let t=Math.round(Math.ceil(this.zi.reduce((t,i)=>t+i,0)/this.zi.length)/2);isNaN(t)&&(t=10),t>30?t=15:t<10&&(t=5),this.Xi().ii().us()?this.Zi()?this.ri("Уже загружен"):(this.ri("wait reload",t),this.Ci=new Date,null===this.gi&&(this.gi=window.setTimeout(()=>{this.ri("Подождали"),null!==this.gi&&(window.clearTimeout(this.gi),this.gi=null),this.Xi().ii().us()?this.ws():this.Ni=!0},1e3*t))):this.Ni=!0}}class ot extends nt{constructor(t,i){super(t,i),this.Zt="video",this.$s=!0,this.Ss=300,this.Cs=60,this.bi='