${a.dataDescription}
\n \n \n \n \n `;const c=this.shadowRoot.getElementById(`note-${this.getAttribute("id")}`),l=this.shadowRoot.getElementById(`close-${this.getAttribute("id")}`),u=this.shadowRoot.getElementById(`missclick-${this.getAttribute("id")}`);if(this.hasAttribute("data-imp-link")){let e=this.getAttribute("data-imp-link");window[nt]&&(e+=`&utsid=${window[nt]}`),e+=`&cbpage=${encodeURIComponent(R())}`,e+=`&cbref=${encodeURIComponent(U())}`;const t=document.createElement("img");t.src=e.toString(),t.setAttribute("class","impression"),c.appendChild(t)}I(c,"click",this.click),I(l,"click",this.close),I(u,"click",this.missclick)}}var it=rt;const st=1e3;var ot=class{#t={};#n;#s;#b="";#ke;#m=!1;#x="48.1";#Ae=[];#Se=null;#Ce=!0;#Te;#A=!1;constructor(e){this.#n=new y(`ippg_new_${e.zoneId}`),this.#n.debug("init ippg with config:",e),this.#t=e,this.#s=window[e.adcashGlobalName],this.#Te=this.#t.refreshRate,customElements.get("in-page-message")||customElements.define("in-page-message",it),this.#s.getClientHints(!1).then((e=>{this.#b=e,this.#le()}))}#T(){let e=`${window.location.protocol}//${this.#t.adserverDomain}/script/push.php`;if(this.#t.adblockSettings&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#t.adblockSettings,n=`/${te("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${n}`}return e+=`?r=${this.#t.zoneId}&ipp=1`,this.#ke=X?this.#t.renderPosMobile:this.#t.renderPosDesktop,e+=`&mads=${this.#t.maxAds}&position=${this.#ke}`,this.#t.isAutoTag&&(e+=`&czid=${this.#t.collectiveZoneId}&atag=1`),this.#t.aggressivity&&(e+=`&aggr=${this.#t.aggressivity}`),this.#t.adblockSettings&&(e+="&abtg=1"),this.#m&&(e+="&rbd=1"),this.#t.recordPageView&&(e+="&ppv=1"),this.#t.abTest&&(e+=`&ab_test=${this.#t.abTest}`),this.#t.sub1&&(e+=`&sub1=${encodeURIComponent(this.#t.sub1)}`),this.#t.adblockSettings&&this.#t.adblockSettings.adbVersion&&(e+=`&adbv=${this.#t.adblockSettings.adbVersion}`),e=e+`&srs=${this.#s.getSesionRandomString()}`+`&ufp=${encodeURIComponent(this.#t.uniqueFingerprint)}`+`&cbpage=${encodeURIComponent(R())}`+`&atv=${this.#x}`+`&cbref=${encodeURIComponent(U())}`,this.#b&&(e+=this.#b),this.#Se&&(e+="&ipptr=1"),this.#t.adblockSettings&&this.#s.isAdbMode()?(e+="&sadbl=2",e+="&fmt=ippg",this.#n.debug(`bid url: ${e}`),ne(e)):(this.#n.debug(`bid url: ${e}`),e)}async#le(){var e;if(this.#Oe()>=this.#t.maxAds||!this.#Ce||document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)return void(this.#t.refreshRate>0&&(this.#m=!0,f()(v()(e=this.#le).call(e,this),this.#Te*st)));let t;try{t=await fetch(this.#T())}catch(e){if(this.#n.error(e),this.#t.adblockSettings&&!this.#A)return this.#n.debug("fetch call failed. Switch to adblck domain and path"),this.#A=!0,this.#s.enableAdbMode(),void this.#le()}var n,r;if(204===t.status)return this.#n.debug("unsold invertory!"),void(this.#t.refreshRate>0&&(this.#n.debug(`refresh rate present. try bidding again after ${this.#Te} sec`),this.#m=!0,f()(v()(n=this.#le).call(n,this),this.#Te*st),2*this.#Te<1200&&(this.#Te*=2)));if(200!==t.status&&202!==t.status||(this.#m=!0,t=await t.json(),this.#n.debug("response:",t)),t.fallback&&t.hp)return void this.#we(t.fallback);if(t.fallback)return void this.#we(t.fallback);if(t.hp,t.capped_ttl)return this.#n.debug(`capped! try bidding again after ${t.capped_ttl} sec`),void f()(v()(r=this.#le).call(r,this),t.capped_ttl*st);this.#b&&(t.impression_url&&(t.impression_url+=this.#b),t.click_url&&(t.click_url+=this.#b));const i={type:t.type||1,script:t.script||"",title:t.title||"",description:t.description||"",icon:t.icon||t.image,link:t.click_url,impressionLink:t.impression_url||null,capped_ttl:A()(t.capped_ttl,10)||0};var s;this.#Te=this.#t.refreshRate,2!==i.type||this.#Se?(this.#Ae.push(i),this.#Ce=!1,this.#Ie(),f()((()=>{this.#Ce=!0}),this.#Te*st)):(this.#Se=i,this.#Ce=!1,await this.#Ee(),f()((()=>{this.#Ce=!0}),this.#Te*st)),this.#t.refreshRate>0&&(this.#m=!0,f()(v()(s=this.#le).call(s,this),this.#Te*st))}#Oe(){return this.#Se?this.#Ae.length+1:this.#Ae.length}#we(e){this.#n.debug("fallback script str decoded:",e);const t=(new DOMParser).parseFromString(e,"text/html").querySelector("script");if(!t)return this.#n.error("invalid fallback script. move on"),null;this.#n.debug("fallback script:",t);const n=document.createElement("script");for(const e of t.attributes)n.setAttribute(e.name,e.value);n.src||(n.textContent=t.textContent),document.body.appendChild(n)}async#Ee(){const e=(new DOMParser).parseFromString(this.#Se.script,"text/html").querySelector("script"),t=document.createElement("script");e.src?t.setAttribute("src",e.src):t.innerText=e.innerText;const n=()=>{var e;this.#n.debug("CT-CLICK"),fetch(this.#Se.link,{mode:"no-cors"}),document.removeEventListener("ct-click",n),f()(v()(e=this.#le).call(e,this),1e3)},r=()=>{this.#n.debug("CT-CLOSE"),document.removeEventListener("ct-click",n),document.removeEventListener("ct-close",r),this.#Se=null,document.body.removeChild(t)};I(document,"ct-click",n),I(document,"ct-close",r);let i=this.#Se.impressionLink;window[nt]&&(i+=`&utsid=${window[nt]}`),i+=`&cbpage=${encodeURIComponent(R())}`,i+=`&cbref=${encodeURIComponent(U())}`,t.onload=async()=>{try{await fetch(i.toString(),{mode:"no-cors"})}catch(e){return this.#n.debug(e),void(this.#t.adblockSettings&&!this.#s.isAdbMode()&&(this.#n.debug("imp failed: try alt domain and path"),this.#s.enableAdbMode()))}document.dispatchEvent(new CustomEvent("impression-event"))},t.onerror=()=>{this.#n.debug("custom html script failed to load"),this.#Se=null},document.body.appendChild(t)}#Ie(){var e;this.#n.debug("drawing..");const t=document.querySelectorAll("in-page-message");if(t.length>0)for(let e=0;e{const n=document.createElement("in-page-message");n.setAttribute("doskip","1"),n.setAttribute("id",t.toString()),n.setAttribute("data-icon",e.icon),n.setAttribute("data-title",e.title),n.setAttribute("data-description",e.description),n.setAttribute("data-offset-top",this.#t.offsetTop),n.setAttribute("data-render-pos-desktop",this.#t.renderPosDesktop),n.setAttribute("data-render-pos-mobile",this.#t.renderPosMobile),e.impressionLink&&(n.setAttribute("data-imp-link",e.impressionLink),e.impressionLink=null,document.dispatchEvent(new CustomEvent("impression-event"))),n.addEventListener("inpageclick",(()=>{var r;if(X||this.#t.adblockSettings&&this.#s.isAdbMode()){const t=document.createElement("a");t.href=e.link,t.rel="noopener, noreferrer",t.target="_blank",t.click()}else try{window.open(e.link,"_blank","noopener,noreferrer")}catch{}n.remove(),h()(r=this.#Ae).call(r,t,1),this.#Ie()})),n.addEventListener("inpageclose",(()=>{var e;n.remove(),h()(e=this.#Ae).call(e,t,1),this.#Ie()})),document.body.appendChild(n)}))}};const at="x4G9Tq2Kw6R7v1Dy3P0B5N8Lc9M2zF",ct="adblock-settings",lt=(()=>{let e=document.currentScript;return e||(e=document.getElementById("aclib")),e||(e=document.getElementById("adcash-lib")),e})();let ut=null;var dt=class{#Re;#Pe={pop:!1,autoTag:!1,inPagePush:!1,interstitial:!1};#Le;#b;#$e=new(t());#ze=new(t());#n;#Fe=!1;#Ue;#Be={mousedown:[],click:[],touchstart:[]};#je={mousedown:[],scroll:[],click:[],touchstart:[]};#v="youradexchange.com";#o=null;#Ne;#Me;#De=!1;isShowingPop=!1;#C;constructor(){if(ut)return ut;ut=this,this.#n=new y("adcash"),window.addEventListener("mousedown",(e=>{var t;this.#n.debug("win mousedown with capture: in"),i()(t=this.#Be.mousedown).call(t,(t=>{this.#n.debug("win mousedown with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("mousedown",(e=>{var t;this.#n.debug("win mousedown: in"),i()(t=this.#je.mousedown).call(t,(t=>{this.#n.debug("win mousedown: calling observer"),t.callback(e)}))}),!1),window.addEventListener("click",(e=>{var t;this.#n.debug("win click with capture: in"),i()(t=this.#Be.click).call(t,(t=>{this.#n.debug("win click with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("click",(e=>{var t;this.#n.debug("win click: in"),i()(t=this.#je.click).call(t,(t=>{this.#n.debug("win click: calling observer"),t.callback(e)}))}),!1),document.addEventListener("mousedown",(e=>{var t;this.#n.debug("doc mousedown: in"),i()(t=this.#je.mousedown).call(t,(t=>{this.#n.debug("doc mousedown: calling observer"),t.callback(e)}))})),document.addEventListener("mousedown",(e=>{var t;this.#n.debug("doc mousedown with capture: in"),i()(t=this.#Be.mousedown).call(t,(t=>{this.#n.debug("doc mousedown with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("scroll",(e=>{var t;i()(t=this.#je.scroll).call(t,(t=>{t.callback(e)}))})),document.addEventListener("click",(e=>{var t;this.#n.debug("doc click: in"),i()(t=this.#je.click).call(t,(t=>{this.#n.debug("doc click: calling observer"),t.callback(e)}))})),document.addEventListener("click",(e=>{var t;this.#n.debug("doc click with capture: in"),i()(t=this.#Be.click).call(t,(t=>{this.#n.debug("doc click with capture: calling observer"),t.callback(e)}))}),!0),this.getClientHints(),this.#Me=(()=>{if(void 0===window.rgxngibqxq||""===window.rgxngibqxq){let e=[],t="0123456789abcdefghijklmnopqrstuvwxyz";for(let n=0;n<32;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]=t.substr(3&e[19]|8,1),window.rgxngibqxq=e.join("")}return window.rgxngibqxq})(),this.#Ne=(()=>{const e=Math.floor(11*Math.random())+5;let t="";for(let n=0;n1&&void 0!==arguments[1]&&arguments[1];return"undefined"!=typeof navigator&&"userAgentData"in navigator?navigator.userAgentData.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((e=>{const n={};if(e.hasOwnProperty("brands")&&e.brands.length>0){const t=[];for(let n=0;n(e.error("error getting client hints:",t),""))):t?{}:""}(this.#n,!0);let e="";for(let t in this.#Le)e+=`&${t}=${this.#Le[t]}`;this.#b=e}return e?this.#Le:this.#b}getCdnDomain(){return this.#Re}getSesionRandomString(){return this.#Me}enableAdbMode(){this.#n.debug("enable adb mode"),this.#De=!0}isAdbMode(){return this.#De}#qe(){this.#We();var e=this;const t=this.#Ne;window[t]=e,this.#Ue=u()((()=>{window[t]&&window[t]===e||(window[t]=e)}),500)}#We(){this.#Ue&&(clearInterval(this.#Ue),this.#Ue=null)}subscribe(e,t,n){if(!this.#Be[e]||!this.#je[e])throw new Error(`${e} is not observable!`);n?this.#Be[e].push(t):this.#je[e].push(t)}unsubscribe(e,t,n){if(!this.#Be[e]||!this.#je[e])throw new Error(`${e} is not observable!`);if(n)for(let n=0;n{const t=document.createElement("link");t.rel="dns-prefetch",t.href=`//${e}`,document.head.appendChild(t)}))}f()(v()(e=this.#He).call(e,this),100)}getZoneIds(){return m()(this.#$e)}runPop(e){this.#qe();const{zoneId:t,refreshRate:n,delay:r,targetElementsCssSelector:i,triggerOnTargetElementsClick:s,targetCountries:o,triggerOnTargetCountries:a,sub1:c,sub2:l,publisherUrl:u,storeUrl:d,c1:h,c2:g,c3:f,pubHash:p,pubClickId:v,pubValue:b,fallbackOn:m,isAutoTag:y,collectiveZoneId:w,aggressivity:x,recordPageView:k,linkedZoneId:A,abTest:S,tagVersionSuffix:C}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!de(t))throw new Error("zoneId is not a string!");if(void 0!==n&&(!ue(n)||n<0))throw new Error("refreshRate is not an integer or is less than zero");if(void 0!==r&&(!ue(r)||r<0))throw new Error("delay is not an integer or is less than zero");if(void 0!==i){if(!de(i))throw new Error("targetElementsCssSelector is not a string");if(!(e=>{try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0})(i))throw new Error("targetElementsCssSelector is not a valid css selector");if(!le(s))throw new Error("triggerOnTargetElementsClick is not a boolean")}if(void 0!==o){if(!(e=>{if(!oe()(e))return!1;if(0===e.length)return!1;for(let t=0;t0&&f<10&&(f<5?f*=60:f=30),new ot({zoneId:t,refreshRate:f??60,delay:n??0,maxAds:r??1,renderPosDesktop:i??"top",renderPosMobile:s??"top",offsetTop:o??0,sub1:a,isAutoTag:c,collectiveZoneId:l,aggressivity:u,recordPageView:d,abTest:h,tagVersionSuffix:g,adserverDomain:this.#v,adblockSettings:this.#o,adcashGlobalName:this.#Ne,isLoadedAsPartOfLibrary:!0,uniqueFingerprint:this.#C})}runBanner(e){this.#qe();const{zoneId:t,width:n,height:r,renderIn:i,sub1:s}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!de(t))throw new Error("zoneId is not a string!");if(void 0!==n&&!ue(n))throw new Error("Banner width is not an integer");if(void 0!==r&&!ue(r))throw new Error("Banner height is not an integer");if(this.#n.debug("loading banner on page",t),!i)var o=document.currentScript.parentElement;const a={adcashGlobalName:this.#Ne,zoneId:t,width:n,height:r,renderIn:i,currentElement:o,sub1:s,uniqueFingerprint:this.#C};if(this.#Pe.banner||this.#Fe){if(window.Banner)return this.#$e.add(a.zoneId),void new Banner(a);const e=u()((()=>{window.Banner&&(this.#$e.add(a.zoneId),new Banner(a),clearInterval(e))}),100)}else{this.#Fe=!0;var c=document.createElement("script");c.type="text/javascript",c.src=`${location.protocol}//${this.#Re}/script/banner.js`,c.onload=()=>{this.#Pe.banner=!0,this.#Fe=!1,this.#$e.add(a.zoneId),new Banner(a)},c.onerror=()=>{this.#Pe.banner=!1,this.#Fe=!1,this.#n.error(`failed loading ${c.src}`)},c.setAttribute("data-adel","ban"),c.setAttribute("a-lib","1"),document.head.appendChild(c)}}runInterstitial(e){if(this.#Pe.interstitial)return void this.#n.error("interstitial zone already loaded on page");this.#Pe.interstitial=!0,this.#qe();const{zoneId:t,sub1:n,isAutoTag:r,collectiveZoneId:i,aggressivity:s,recordPageView:o,abTest:a,tagVersionSuffix:c}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!de(t))throw new Error("zoneId is not a string!");this.#n.debug("loading interstitial on page");const l={zoneId:t,sub1:n,isAutoTag:r,collectiveZoneId:i,aggressivity:s,recordPageView:o,abTest:a,tagVersionSuffix:c,adcashGlobalName:this.#Ne,adserverDomain:this.#v,adblockSettings:this.#o,isLoadedAsPartOfLibrary:!0,uniqueFingerprint:this.#C};this.#$e.add(t),new et(l)}async#Ge(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.#n.debug("fetch collective zone config");let n=`${window.location.protocol}//${this.#v}/ad/czcf.php`;if(this.isAdbMode()){const e=`/${te("abcdefgh0123456789")}`;n=`${window.location.protocol}//${this.#o.adserverDomain}${e}`}n+=`?cz=${e}`;const r=await this.getClientHints();let i;r&&(n+=r),this.isAdbMode()&&(n+="&sadbl=2",n+="&fmt=atg",n=ne(n)),this.#n.debug("collective zone config url: ",n);try{i=await fetch(n)}catch(n){return this.#n.error(n),this.#o&&t?(this.#n.debug("collective zone config fetch failed: try alt domain and path"),this.enableAdbMode(),this.#Ge(e,!1)):null}return 200!==i.status?null:i.json()}async runAutoTag(e){if(this.#Pe.autoTag)return void this.#n.error("autotag zone already loaded on page");this.#Pe.autoTag=!0,this.#qe();const t=e.zoneId;if(!t)throw new Error("mandatory zoneId is not provided!");if(!de(t))throw new Error("zoneId is not a string!");const n=await this.#Ge(t);if(n)if(this.#n.debug("collective zone config:",n),n.rotationList)this.#n.debug("running in ROTATION MODE (rotation present)"),this.#$e.add(t),new We({adcashGlobalName:this.#Ne,collectiveZoneConfig:n,adserverDomain:this.#v,adblockSettings:this.#o,clientHintsQueryStr:this.#b,tagVersionSuffix:e.tagVersionSuffix,isLoadedAsPartOfLibrary:!0,uniqueFingerprint:this.#C});else{this.#n.debug("running in NORMAL MODE (no rotation)");const r=n.indexedFormats;let i=!0;for(const s in r){switch(s){case"suv4":case"pop":this.runPop({zoneId:r[s].zoneId.toString(),targetElementsCssSelector:r[s]["element-list"],triggerOnTargetElementsClick:"allow"===r[s]["element-action"],targetCountries:r[s]["country-list"],triggerOnTargetCountries:"allow"===r[s]["country-action"],isAutoTag:!0,collectiveZoneId:t,aggressivity:n.aggressivity,abTest:n.ab_test,recordPageView:i,tagVersionSuffix:e.tagVersionSuffix});break;case"interstitial":this.runInterstitial({zoneId:r[s].zoneId.toString(),isAutoTag:!0,collectiveZoneId:t,aggressivity:n.aggressivity,abTest:n.ab_test,recordPageView:i,tagVersionSuffix:e.tagVersionSuffix});break;case"ippg":this.runInPagePush({zoneId:r[s].zoneId.toString(),refreshRate:r[s].rr,delay:r[s].d,maxAds:r[s].mads,renderPosDesktop:r[s]["render-pos-desktop"],renderPosMobile:r[s]["render-pos-mobile"],offsetTop:r[s]["offset-top"],isAutoTag:!0,collectiveZoneId:t,aggressivity:n.aggressivity,abTest:n.ab_test,recordPageView:i,tagVersionSuffix:e.tagVersionSuffix});break;default:this.#n.error(`ad format type not recognised from collective zone config. adformat.type: ${s}; czid: ${t}`)}i=!1}}else this.#n.error(`failed to fetch collective zone config! czid: ${t}`)}};const ht=new y("aclib_adblock_index");window.Adcash?ht.debug("lib already on page. exit"):(ht.debug("load lib on page"),window.Adcash=dt,window.AtcshAltNm=dt,window.aclib=new dt)}()}();(function(){if(window.aclib){aclib.runPop({zoneId:"2360659"});}else{console.log("err loading adbtg");}})();