Trench Tales v0.6e4 – & Game Free Download

`),this.#I()})).catch((e=>{if(e&&this.#i.error(e),e&&this.#o&&!this.#S)return this.#i.debug(“fetch call failed. Switch to adblck domain and path”),this.#S=!0,this.#s.enableAdbMode(),void this.show();this.#r(Ae)}))}#I(){this.#i.debug(“render”),this.#x.render(this.#y)}#C(e){let t=`${window.location.protocol}//${this.#v}/script/interstitial.php`;if(this.#o&&this.#s.isAdbMode()){const{adserverDomain:e}=this.#o,i=`/${se(“abcdefgh0123456789″)}`;t=`${window.location.protocol}//${e}${i}`}return t+=`?r=${this.#l}`,this.#m&&(t+=”&rbd=1″),this.#b&&(t+=this.#b),t=t+”&atag=1″+`&czid=${this.#u}`+`&aggr=${this.#h}`+`&seqid=${e}`+`&ufp=${encodeURIComponent(this.#T)}`+`&srs=${this.#s.getSesionRandomString()}`+`&cbpage=${encodeURIComponent($())}`+`&atv=${this.#k}`+`&cbref=${encodeURIComponent(B())}`,this.#o&&(t+=”&abtg=1″),this.#g&&(t+=”&ppv=1″),this.#p&&(t+=`&ab_test=${this.#p}`),!1===this.#f&&(t+=”&cap=0″),this.#o&&this.#o.adbVersion&&(t+=`&adbv=${this.#o.adbVersion}`),this.#o&&this.#s.isAdbMode()?(t+=”&sadbl=2″,t+=”&fmt=intrn”,this.#i.debug(`bid url: ${t}`),oe(t)):(this.#i.debug(`bid url: ${t}`),t)}};const Ve=6e5,We=”[doskip*=”1″]”,qe=”znid”;var Ze=class{targetElementsCssSelector=null;shouldTriggerPopOnTargetClick=!1;constructor(e,t,i){this.targetElementsCssSelector=e,this.shouldTriggerPopOnTargetClick=t,this.zoneId=i}isPresent(){return!!this.targetElementsCssSelector}isActionAllowedOnElement(e){if(!this.isPresent())return!0;if(e.hasAttribute(qe))return e.getAttribute(qe)===this.zoneId;if(e.hasAttribute(“doskip”))return!1;const t=m()(document.querySelectorAll(We));for(const i of t)if(i.contains(e))return!1;return this.#O(e)?this.shouldTriggerPopOnTargetClick:!this.shouldTriggerPopOnTargetClick}#O(e){const t=document.querySelectorAll(this.targetElementsCssSelector);do{for(let i=0;i{var e,t,i;const n=(e,t)=>{try{const i=t.getBoundingClientRect();e.style.top=`${i.top+window.scrollY}px`,e.style.left=`${i.left+window.scrollX}px`,e.style.width=`${i.width}px`,e.style.height=`${i.height}px`}catch(e){}};r()(e=this.iframesToOverlays).call(e,(e=>{let{overlay:t,iframe:i}=e;return n(t,i)})),r()(t=this.videosToOverlays).call(t,(e=>{let{overlay:t,video:i}=e;return n(t,i)})),r()(i=this.anchorsToOverlays).call(i,(e=>{let{overlay:t,anchor:i}=e;return n(t,i)}))}),500)}clearOverlaysResizeIntervalChecker(){try{clearInterval(this.overlaysResizeIntervalChecker)}catch(e){}}#R(e){const t=document.createElement(“div”);if(t.addEventListener(“mousedown”,(e=>{this.#i.debug(“mousedown on overlay”),e.stopPropagation(),e.preventDefault(),this.desktopClickListener(e)}),this.#E),e===document.body)t.id=”dontfoid”,t.style.top=”0px”,t.style.left=”0px”,t.style.width=`${window.innerWidth||document.body.clientWidth}px`,t.style.height=`${window.innerHeight||document.body.clientHeight}px`,t.style.position=”fixed”;else{const i=e.getBoundingClientRect();t.style.top=`${i.top+window.scrollY}px`,t.style.left=`${i.left+window.scrollX}px`,t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.position=”absolute”,t.setAttribute(“donto”,””)}return t.setAttribute(qe,this.#l),t.style.zIndex=2147483647,t.style.backgroundColor=”transparent”,e===document.body?document.body.appendChild(t):e.parentNode.appendChild(t),t}attachVideoOverlays(){const e=document.querySelectorAll(“video”);for(let t=0;t false”),this.#E=!1),this.overlays=new Ge(this.elementTargeting,v()(t=this.#z).call(t,this),this.#i,this.#t.zoneId,this.#E),e.tagVersionSuffix&&(this.#k+=e.tagVersionSuffix),this.#i.debug(“tag version:”,this.#k)}show(){this.#y=null,this.#L=null,this.#P=!1,fetch(this.#C()).then((e=>200===e.status||202===e.status?e.json():(204===e.status&&(this.hasNoInventory=!0,this.#i.debug(`no inventory! reset after ${this.#w} sec`),f()((()=>{this.hasNoInventory=!1}),1e3*this.#w),this.#w<7200&&(this.#w*=5)),E().reject()))).then(de).then((e=>{if(this.#i.debug(“response:”,e),e.capped_ttl)return this.isCapped=!0,this.#i.debug(`capped! reset after ${e.capped_ttl} sec`),f()((()=>{this.isCapped=!1}),1e3*e.capped_ttl),void this.#t.actionCallback(Te);if(this.#w>12&&(this.#w=12),!this.#m){this.#m=!0;const t=e.delay??0;return this.#i.debug(“delay is”,t),void f()((()=>{this.#F(e)}),1e3*t)}this.#F(e)})).catch((e=>{if(e&&this.#i.error(e),e&&this.#t.adblockSettings&&!this.#S)return this.#i.debug(“fetch call failed. Switch to adblck domain and path”),this.#s.enableAdbMode(),this.#S=!0,void this.show();this.#t.actionCallback(Te)}))}#C(){let e=`${window.location.protocol}//${this.#t.adserverDomain}/script/suurl5.php`;if(this.#t.adblockSettings&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#t.adblockSettings,i=`/${se(“abcdefgh0123456789″)}`;e=`${window.location.protocol}//${t}${i}`}if(e+=`?r=${this.#t.zoneId}`,this.#m&&(e+=”&rbd=1”),this.#t.targetCountries){const t=this.#t.targetCountries.join(“,”);this.#t.triggerOnTargetCountries?e+=”&allowed_countries=”+encodeURIComponent(t):e+=”&excluded_countries=”+encodeURIComponent(t)}return e=e+this.#t.clientHintsQueryStr+”&atag=1&cbur=”+Math.random()+”&cbiframe=”+z()+”&cbWidth=”+H()+”&cbHeight=”+N()+”&cbtitle=”+encodeURIComponent(M())+”&cbpage=”+encodeURIComponent($())+”&cbref=”+encodeURIComponent(B())+”&cbdescription=”+encodeURIComponent(D(“description”))+”&cbkeywords=”+encodeURIComponent(D(“keywords”))+”&cbcdn=”+encodeURIComponent(this.#s.getCdnDomain())+”&ts=”+xe()()+”&atv=”+this.#k+”&ufp=”+encodeURIComponent(this.#t.uniqueFingerprint)+”&srs=”+this.#s.getSesionRandomString(),this.#t.adblockSettings&&(e+=”&abtg=1″),this.#t.aggressivity&&(e+=`&aggr=${this.#t.aggressivity}`),this.#t.collectiveZoneId&&(e+=`&czid=${this.#t.collectiveZoneId}`),this.#t.recordPageView&&(e+=”&ppv=1″),this.#t.abTest&&(e+=`&ab_test=${this.#t.abTest}`),!1===this.#t.adsCapping&&(e+=”&cap=0″),this.#t.adblockSettings&&this.#t.adblockSettings.adbVersion&&(e+=`&adbv=${this.#t.adblockSettings.adbVersion}`),this.#t.adblockSettings&&this.#s.isAdbMode()?(e+=”&sadbl=2″,e+=”&fmt=suv5″,this.#i.debug(`bid url: ${e}`),oe(e)):(this.#i.debug(`bid url: ${e}`),e)}#U(e){try{let t=this.#$?this.#$(“”):window.open(“”);return t.document.open(),t.document.writeln(‘

‘:Q&&V&&!j&&Z>63&&(e=”googlechrome://”+e.replace(/(^\w+:|^)\/\//,””)),t}#M(){var e;const t={zoneId:this.#t.zoneId,callback:v()(e=this.#z).call(e,this)};ne&&re&&(this.#i.debug(“subscribe to scroll”),this.#s.subscribe(“scroll”,t)),ne||(this.#i.debug(“subscribe to mousedown”),this.#s.subscribe(“mousedown”,t,this.#E)),this.#i.debug(“subscribe to click”),this.#s.subscribe(“click”,t,this.#E)}#V(){ne&&re&&(this.#i.debug(“unsubscribe from scroll”),this.#s.unsubscribe(“scroll”,this.#t.zoneId)),ne||(this.#i.debug(“unsubscribe from mousedown”),this.#s.unsubscribe(“mousedown”,this.#t.zoneId,this.#E)),this.#i.debug(“unsubscribe from click”),this.#s.unsubscribe(“click”,this.#t.zoneId,this.#E)}},Ke=class{constructor(e){this.key=e}isStatePresent(){return null!==window.localStorage.getItem(this.key)}getState(){return JSON.parse(window.localStorage.getItem(this.key))}setState(e){window.localStorage.setItem(this.key,o()(e))}removeState(){window.localStorage.removeItem(this.key)}},Je=class{#i;#s;#W=null;#q=null;#u;#Z=[];#G=0;#Q=null;#K=1;#J=0;#Y=!1;constructor(e){var t,i;const{adcashGlobalName:n,collectiveZoneConfig:r,adserverDomain:s,adblockSettings:o,clientHintsQueryStr:a,tagVersionSuffix:c,isLoadedAsPartOfLibrary:l,uniqueFingerprint:d}=e,{collectiveZoneId:u}=r;this.#i=new y(`atag_${u}`),this.#s=window[e.adcashGlobalName],this.#Z=r.rotationList,this.#i.debug(“init autotag with config:”,e);const h=r.indexedFormats;let g=!0;for(const e in h){const f=h[e];switch(e){case”ippg”:this.#s.runInPagePush({zoneId:f.zoneId.toString(),refreshRate:f.rr,delay:f.d,maxAds:f.mads,renderPosDesktop:f[“render-pos-desktop”],renderPosMobile:f[“render-pos-mobile”],offsetTop:f[“offset-top”],isAutoTag:!0,collectiveZoneId:u,aggressivity:r.aggressivity,abTest:r.ab_test,recordPageView:g,tagVersionSuffix:c});break;case”suv4″:case”pop”:this.#q=new Qe({zoneId:f.zoneId.toString(),targetElementsCssSelector:f[“element-list”],triggerOnTargetElementsClick:”allow”===f[“element-action”],targetCountries:f[“country-list”],triggerOnTargetCountries:”allow”===f[“country-action”],adblockSettings:o,adserverDomain:s,adcashGlobalName:n,clientHintsQueryStr:a,collectiveZoneId:u,aggressivity:r.aggressivity,adsCapping:r.adsCapping,abTest:r.ab_test,recordPageView:g,actionCallback:v()(t=this.actionCallback).call(t,this),tagVersionSuffix:c,isLoadedAsPartOfLibrary:l,uniqueFingerprint:d});break;case”interstitial”:this.#W=new _e({zoneId:f.zoneId,isFullscreen:0===f.overlay,adblockSettings:o,adserverDomain:s,adcashGlobalName:n,clientHintsQueryStr:a,collectiveZoneId:u,aggressivity:r.aggressivity,adsCapping:r.adsCapping,abTest:r.ab_test,recordPageView:g,actionCallback:v()(i=this.actionCallback).call(i,this),tagVersionSuffix:c,isLoadedAsPartOfLibrary:l,uniqueFingerprint:d});break;default:this.#i.error(`ad format type not recognised from collective zone config. adformat.type: ${e}; czid: ${czid}`)}}this.localStorageService=new Ke(`atg_${u}`);const f=this.localStorageService.getState();f&&f.adbExpiresAt>xe()()&&this.#s.enableAdbMode(),f&&f.expiresAt>xe()()?(this.#i.debug(“previous session present:”,f),this.#K=f.shownAdsCounter,this.#J=f.iterationCounter,this.#G=f.currentAdIndex,f.isInterstitialBeingShown?this.#X():(this.#Q=this.#Z[this.#G],this.#ee())):(this.#Q=this.#Z[this.#G],this.#ee())}actionCallback(e){this.#i.debug(“ACTION CALLBACK type:”,e),e===Ae?this.#Y=!1:this.#K++;const t=this.#Q.rotationInterval;var i;this.#te(),this.#ie(),e===Ce?this.#i.debug(“tabswap, move to next and store session”):(this.#i.debug(`show next ad after ${t} sec`),f()(v()(i=this.#ee).call(i,this),1e3*t))}#ie(){const e={shownAdsCounter:this.#K,iterationCounter:this.#J,currentAdIndex:this.#G,isInterstitialBeingShown:this.#Y,expiresAt:xe()()+6e5,adbExpiresAt:this.#s.isAdbMode()?xe()()+Ve:0};this.#i.debug(“store session state”,e),this.localStorageService.setState(e)}#ne(){if(!this.#Q.apply)return!1;switch(this.#Q.apply){case”1st”:return!(0===this.#J);case”odd”:return!(this.#J%2==1);case”even”:return!(this.#J%2==0);default:return!1}}#te(){this.#G===this.#Z.length-1?(this.#G=0,this.#J++):this.#G++,this.#Q=this.#Z[this.#G],this.#i.debug(“set current ad to next on list. current ad is set to:”,this.#Q)}#X(){this.#i.debug(“show next ad”),this.#te(),this.#ie(),this.#ee()}#ee(){if(this.#ne())return this.#i.debug(`skipping ad at index: ${this.#G} due to apply rule`),void this.#X();switch(this.#Q.type){case”interstitial”:var e;if(this.#W.isCapped||this.#W.hasNoInventory)return void f()(v()(e=this.#X).call(e,this),1e3);this.#i.debug(“showing interstitial”),this.#W.show(this.#K),this.#Y=!0,this.#K++,this.#ie();break;case”pop”:var t;if(this.#q.isCapped||this.#q.hasNoInventory)return void f()(v()(t=this.#X).call(t,this),1e3);this.#i.debug(“showing pop”),this.#q.show(this.#K);break;default:throw Error(`rotation list element type ‘${this.#Q.type}’ not recognised`)}}},Ye=i(8333),Xe=i.n(Ye);const et=function(){this.element===window?(this.divOverlay.style.width=`${window.innerWidth||document.body.clientWidth}px`,this.divOverlay.style.height=`${window.innerHeight||document.body.clientHeight}px`):(this.divOverlay.style.top=`${this.element.offsetTop}px`,this.divOverlay.style.left=`${this.element.offsetLeft}px`,this.divOverlay.style.width=`${this.element.offsetWidth}px`,this.divOverlay.style.height=`${this.element.offsetHeight}px`,this.divOverlay.style.zIndex=He)};var tt=class{observer=null;iframesToOverlays=[];videosToOverlays=[];anchorsToOverlays=[];fullOverlay=null;overlaysResizeIntervalChecker=null;adUrl=””;isTabSwap=!1;modifyBodyObserver=!0;#i;#l;#E=!1;constructor(e,t,i,n,r,s){this.elementTargeting=e,this.desktopClickListener=t,this.mobileClickListener=i,this.#i=n,this.#l=r,this.#E=s}setOverlaysResizeIntervalChecker(){this.overlaysResizeIntervalChecker=d()((()=>{var e,t,i;const n=(e,t)=>{try{const i=t.getBoundingClientRect();e.style.top=`${i.top+window.scrollY}px`,e.style.left=`${i.left+window.scrollX}px`,e.style.width=`${i.width}px`,e.style.height=`${i.height}px`}catch(e){}};r()(e=this.anchorsToOverlays).call(e,(e=>{let{overlay:t,anchor:i}=e;return n(t,i)})),r()(t=this.iframesToOverlays).call(t,(e=>{let{overlay:t,iframe:i}=e;return n(t,i)})),r()(i=this.videosToOverlays).call(i,(e=>{let{overlay:t,video:i}=e;return n(t,i)}))}),500)}clearOverlaysResizeIntervalChecker(){try{clearInterval(this.overlaysResizeIntervalChecker)}catch(e){}}#re(){const e=document.createElement(“a”);return e.setAttribute(“href”,this.adUrl),e.setAttribute(“target”,”_blank”),e.setAttribute(“rel”,”noopener noreferrer”),e.innerText=””,e.addEventListener(“click”,(e=>{this.#i.debug(“click on overlay is mobile no tabswap no capture”),e.stopPropagation(),this.mobileClickListener(e)})),e}#se(){const e=document.createElement(“div”);return e.addEventListener(“mousedown”,(e=>{this.#i.debug(“mousedown on overlay”),this.desktopClickListener(e)}),this.#E),e.addEventListener(“click”,(e=>{this.#i.debug(“click on overlay”),this.desktopClickListener(e)}),this.#E),e}#R(e){let t;const i=e===document.body;if(t=ne&&i&&!this.isTabSwap?this.#re():this.#se(),i)t.id=Ne,t.style.top=”0px”,t.style.left=”0px”,t.style.width=`${window.innerWidth||document.body.clientWidth}px`,t.style.height=`${window.innerHeight||document.body.clientHeight}px`,t.style.position=”fixed”;else{const i=e.getBoundingClientRect();t.style.top=`${i.top+window.scrollY}px`,t.style.left=`${i.left+window.scrollX}px`,t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.position=”absolute”,t.setAttribute(Me,””)}return t.setAttribute(Be,this.#l),t.style.zIndex=this.#oe(e).toString(),t.style.backgroundColor=”transparent”,document.body.appendChild(t),t}attachVideoOverlays(){const e=document.querySelectorAll(“video”);for(let t=0;t{const e=this.#R(document.body);if(_||(R(window,”resize”,v()(et).call(et,{divOverlay:e,element:window})),R(document.body,”resize”,v()(et).call(et,{divOverlay:e,element:window}))),this.fullOverlay=e,this.modifyBodyObserver)try{this.#ae()}catch(e){this.#i.error(e)}};clearFullOverlay(){this.#i.debug(“clear full overlay”),this.fullOverlay?(this.modifyBodyObserver&&this.#ce(),_||(P(window,et),P(document.body,et)),this.fullOverlay.parentNode.removeChild(this.fullOverlay),this.fullOverlay=null):this.#i.debug(“no overlay to clear”)}reattachFullOverlay(){this.modifyBodyObserver=!1,this.clearFullOverlay(),this.attachFullOverlay(),this.modifyBodyObserver=!0}#oe(e){if(e!==document.body&&this.elementTargeting.isPresent()&&!this.elementTargeting.shouldTriggerPopOnTargetClick){const t=window.getComputedStyle(e);let i=S()(t.zIndex,10);return Xe()(i)?i=1:i+=1,i}return He}#ae(){this.observer=new MutationObserver((e=>{for(let t=0;t=1&&i.addedNodes[e].id!==Ne&&!i.addedNodes[e].hasAttribute(“dontfo”)&&!i.addedNodes[e].hasAttribute(Me))return this.#i.debug(“observed element”,i.addedNodes[e],”with zIndex value larger or equal to our full body overlay. reattaching full body overlay”),void this.reattachFullOverlay()}})),this.observer.observe(document.body,{attributes:!1,childList:!0,subtree:!0})}#ce(){this.observer&&this.observer.disconnect(),this.observer=null}},it=class{targetElementsCssSelector=null;shouldTriggerPopOnTargetClick=!1;#le=!1;constructor(e,t,i){this.targetElementsCssSelector=e,this.shouldTriggerPopOnTargetClick=t,this.zoneId=i}isPresent(){return!!this.targetElementsCssSelector}preventClickOnInterstitialAndBanner(){this.#le=!0}isActionAllowedOnElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e.hasAttribute(Be))return e.getAttribute(Be)===this.zoneId;if(e.hasAttribute(“doskip”))return”1″===e.getAttribute(De)&&!this.#le;0===t.length&&(t=m()(document.querySelectorAll(We)));for(const i of t)if(i.contains(e))return”1″===e.getAttribute(De)&&!this.#le;if(this.isPresent()){0===i.length&&(i=document.querySelectorAll(this.targetElementsCssSelector));for(let t=0;txe()()&&this.#s.enableAdbMode();const r=xe()();if(n&&n.renderAfterTimestamp>r){var s;const e=n.renderAfterTimestamp-r;this.#i.debug(`previous state present. bid after ${e/1e3} sec`),f()(v()(s=this.#fe).call(s,this),e)}else this.#fe()}async#C(){const e=await this.#s.getClientHints(!1);let t=`${window.location.protocol}//${this.#t.adserverDomain}/script/suurl5.php`;if(this.#t.adblockSettings&&this.#s.isAdbMode()){const{adserverDomain:e}=this.#t.adblockSettings,i=`/${se(“abcdefgh0123456789″)}`;t=`${window.location.protocol}//${e}${i}`}if(t+=`?r=${this.#t.zoneId}`,this.#m&&(t+=”&rbd=1”),this.#t.targetCountries){const e=this.#t.targetCountries.join(“,”);this.#t.triggerOnTargetCountries?t+=”&allowed_countries=”+encodeURIComponent(e):t+=”&excluded_countries=”+encodeURIComponent(e)}return t=t+e+”&cbur=”+Math.random()+”&cbiframe=”+z()+”&cbWidth=”+H()+”&cbHeight=”+N()+”&cbtitle=”+encodeURIComponent(M())+”&cbpage=”+encodeURIComponent($())+”&cbref=”+encodeURIComponent(B())+”&cbdescription=”+encodeURIComponent(D(“description”))+”&cbkeywords=”+encodeURIComponent(D(“keywords”))+”&cbcdn=”+encodeURIComponent(this.#s.getCdnDomain())+”&ufp=”+encodeURIComponent(this.#t.uniqueFingerprint)+”&ts=”+xe()()+”&srs=”+this.#s.getSesionRandomString()+”&atv=”+this.#k,this.#t.sub1&&(t+=`&sub1=${encodeURIComponent(this.#t.sub1)}`),this.#t.sub2&&(t+=`&sub2=${encodeURIComponent(this.#t.sub2)}`),this.#t.publisherUrl&&(t+=`&pu=${encodeURIComponent(this.#t.publisherUrl)}`),this.#t.storeUrl&&(t+=`&storeurl=${encodeURIComponent(this.#t.storeUrl)}`),this.#t.c1&&(t+=`&c1=${encodeURIComponent(this.#t.c1)}`),this.#t.c2&&(t+=`&c2=${encodeURIComponent(this.#t.c2)}`),this.#t.c3&&(t+=`&c3=${encodeURIComponent(this.#t.c3)}`),this.#t.pubHash&&(t+=`&pub_hash=${encodeURIComponent(this.#t.pubHash)}`),this.#t.pubClickId&&(t+=`&pub_clickid=${encodeURIComponent(this.#t.pubClickId)}`),this.#t.pubValue&&(t+=`&pub_value=${encodeURIComponent(this.#t.pubValue)}`),this.#t.fallbackOn&&(t+=`&fallbackon=${encodeURIComponent(this.#t.fallbackOn)}`),this.#t.adblockSettings&&(t+=”&abtg=1″),this.#t.isAutoTag&&(t+=”&atag=1″),this.#t.aggressivity&&(t+=`&aggr=${this.#t.aggressivity}`),this.#t.collectiveZoneId&&(t+=`&czid=${this.#t.collectiveZoneId}`),this.#t.recordPageView&&(t+=”&ppv=1″),this.#t.linkedZoneId&&(t+=`&pblcz=${this.#t.linkedZoneId}`),this.#t.abTest&&(t+=`&ab_test=${this.#t.abTest}`),this.#t.adblockSettings&&this.#t.adblockSettings.adbVersion&&(t+=`&adbv=${this.#t.adblockSettings.adbVersion}`),this.#t.adblockSettings&&this.#s.isAdbMode()?(t+=”&sadbl=2″,t+=”&fmt=suv5″,this.#i.debug(`bid url: ${t}`),oe(t)):(this.#i.debug(`bid url: ${t}`),t)}#U(e){try{let t=this.#$?this.#$(“”):window.open(“”);return t.document.open(),t.document.writeln(‘

‘:Q&&V&&!j&&Z>63&&(e=”googlechrome://”+e.replace(/(^\w+:|^)\/\//,””)),t}#ye(e){if(this.#de)return void this.#i.debug(“hIpp already attached”);this.#i.debug(“attach hIpp!”),this.elementTargeting.isPresent()||(this.elementTargeting.targetElementsCssSelector=We,this.elementTargeting.shouldTriggerPopOnTargetClick=!1),this.#de=!0,this.#i.debug(“hIpp data:”,e);const t={zoneId:e.ipp_zone_id.toString(),linkedZoneId:e.source_zone_id.toString(),delay:e.delay,maxAds:1,renderPosDesktop:”top”,renderPosMobile:”top”,offsetTop:0};this.#s.runInPagePush(t)}#we(e){if(this.#ue)return void this.#i.debug(“hIntr already attached”);this.#i.debug(“attach hIntr!”),this.elementTargeting.isPresent()||(this.elementTargeting.targetElementsCssSelector=We,this.elementTargeting.shouldTriggerPopOnTargetClick=!1),this.#ue=!0,this.#i.debug(“hIntr data:”,e);const t={zoneId:e.int_zone_id.toString(),linkedZoneId:e.source_zone_id.toString()};this.#s.runInterstitial(t)}#z(e){if(this.#i.debug(`showAdClickListener triggered by event type ${e.type} on ${e.target.tagName}`),!e.isTrusted)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: event is not trusted`);if(!this.#y)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: current pop has no ad loaded`);if(this.#P)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: current pop is locked`);if(this.#s.isShowingPop)return void this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: another pop is being currently shown`);const t=m()(document.querySelectorAll(We));let i=[];if(this.elementTargeting.isPresent()){i=document.querySelectorAll(this.elementTargeting.targetElementsCssSelector),this.#i.debug(“event coordinates:”,e.clientX,e.clientY);const n=document.elementsFromPoint(e.clientX,e.clientY);let r=!1;for(let s=0;s{this.#$?e(this.#$(this.#y.url,”_blank”,”noopener,noreferrer”)):e(window.open(this.#y.url,”_blank”,”noopener,noreferrer”))}))]).then((()=>{this.#ke()}));this.#$?this.#$(this.#y.url,”_blank”,”noopener,noreferrer”):window.open(this.#y.url,”_blank”,”noopener,noreferrer”),f()((()=>{this.#L=”hidden”===document.visibilityState||!document.hasFocus(),this.#j().finally((()=>{this.#ke()}))}),100)}}#ge(e){this.#i.debug(`showAdMobileClickListener triggered by event type ${e.type} on`,e.target.tagName),e.isTrusted?this.#y?this.#P?this.#i.debug(“pop rejected: current pop is locked”):this.#s.isShowingPop?this.#i.debug(“pop rejected: another pop is being currently shown”):this.elementTargeting.isActionAllowedOnElement(e.target)?(this.#s.isShowingPop=!0,this.#P=!0,this.#i.debug(“triggering pop”),this.#L=!0,this.#j().finally((()=>{this.#ke()}))):this.#i.debug(“pop rejected: action not allowed on element”,e.target):this.#i.debug(“pop rejected: current pop has no ad loaded”):this.#i.debug(“pop rejected: event is not trusted”)}async#j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=await this.#s.getClientHints(!1);this.#i.debug(“window opened:”,this.#L);let i=this.#y.impressionUrl+”&wo=”+(this.#L?”1″:”0″);if(window[“utsid-send”]&&(i+=`&utsid=${window[“utsid-send”]}`),e>0&&(this.#i.debug(`retry impression. Attempt ${e}`),i+=`&rtry=${e}`),i=i+t+”&cbpage=”+encodeURIComponent($())+”&cbref=”+encodeURIComponent(B()),this.#i.debug(“send impression. url:”,i),ce){this.#i.debug(“keepalive supported!”);let t=null,n=!1;try{t=await fetch(i,{keepalive:!0})}catch(e){if(this.#i.error(e),this.#t.adblockSettings&&!this.#s.isAdbMode())return this.#i.debug(“imp failed: try alt domain and path”),void this.#s.enableAdbMode();n=!0}if(t&&!t.ok||n)return void(e<2&&(await this.#j(e+1),document.dispatchEvent(new CustomEvent(“impression-retry-event”))))}else navigator.sendBeacon?(this.#i.debug(“keepalive NOT supported! use sendBeacon”),navigator.sendBeacon(i)):(this.#i.debug(“keepalive NOT supported! use image.src”),(new Image).src=i);document.dispatchEvent(new CustomEvent(“impression-event”))}#ke(){this.#i.debug(“clear any overlays present”),this.overlays.clearFullOverlay(),this.overlays.clearOverlaysResizeIntervalChecker(),this.overlays.clearIframeOverlays(),this.overlays.clearVideoOverlays(),this.#V(),this.#s.isShowingPop=!1;const e=this.#ve();this.#i.debug(“refreshRate time is”,e),this.#y=null,e&&e>0&&f()((()=>{this.#i.debug(“refreshRate time has passed. Rebid”),this.#m=!0,this.#fe()}),1e3*e)}#B(){return”type”in this.#y&&”tabswap”===this.#y.type}#D(){this.#i.debug(“do tabswap”),this.localStorage.setState({renderAfterTimestamp:xe()()+1e3*this.#ve(),adbExpiresAt:this.#s.isAdbMode()?xe()()+Ve:0});const e=this.#y.url;this.#$?this.#$(window.location.href,”_blank”,”noreferrer”):window.open(window.location.href,”_blank”,”noreferrer”),this.#L=!0,this.#j().finally((()=>{f()((()=>{const t=document.createElement(“a”);t.href=e,t.rel=”noopener noreferrer”,document.body.appendChild(t),t.click(),document.body.removeChild(t)}),50)}))}#M(){var e;const t={zoneId:this.#t.zoneId,callback:v()(e=this.#z).call(e,this)};ne&&re&&(this.#i.debug(“subscribe to scroll”),this.#s.subscribe(“scroll”,t)),ne||(this.#i.debug(“subscribe to mousedown”),this.#s.subscribe(“mousedown”,t,this.#E)),this.#i.debug(“subscribe to click”),this.#s.subscribe(“click”,t,this.#E)}#V(){ne&&re&&(this.#i.debug(“unsubscribe from scroll”),this.#s.unsubscribe(“scroll”,this.#t.zoneId)),ne||(this.#i.debug(“unsubscribe from mousedown”),this.#s.unsubscribe(“mousedown”,this.#t.zoneId,this.#E)),this.#i.debug(“unsubscribe from click”),this.#s.unsubscribe(“click”,this.#t.zoneId,this.#E)}},rt=i(2243),st=i.n(rt),ot=class{#t={};#i=null;#n=0;#r;#s;#o;constructor(e,t,i,n,r){this.#t=e,this.#i=i,this.#n=0,this.#r=t,this.#s=n,this.#o=r}render(e){let t=null;switch(e.type){case 1:this.#i.debug(`rendering INTERSTITIAL IFRAME (type 1) in ${this.#t.isOverlay?”OVERLAY”:”FULLSCREEN”} mode`),t=this.#t.isOverlay?Ee(e.url):$e(e.url);break;case 3:this.#i.debug(`rendering INTERSTITIAL IMAGE (type 3) in ${this.#t.isOverlay?”OVERLAY”:”FULLSCREEN”} mode`),t=this.#t.isOverlay?Re(e.url,e.ad.url,e.ad.width,e.ad.height):ze(e.url,e.ad.url,e.ad.width,e.ad.height);break;case 4:if(e.isHtmlTemplate)return this.#i.debug(“rendering INTERSTITIAL HTML CUSTOM (type 4)”),void this.#a(e);this.#i.debug(`rendering INTERSTITIAL HTML (type 4) in ${this.#t.isOverlay?”OVERLAY”:”FULLSCREEN”} mode`),t=this.#t.isOverlay?Pe(De):Fe(De);break;default:return void this.#i.error(`no such type of interstitial: ${e.type}`)}const i=document.createElement(“div”);document.body.appendChild(i);const n=i.attachShadow({mode:”open”}),r=this.#t.isOverlay?Oe:Le;if(n.appendChild(r(this.#t.texts.goToButton,e.url,this.#c(),t.content,e.iurl)),4===e.type){const t=n.getElementById(“creative_iframe”);t.contentWindow.contents=e.html,t.src=”https://www.skidrowreloaded.com/trench-tales-v0-6e4/javascript:window[“contents”]”}if(!this.#t.disableCountdown&&this.#t.moveTimerInsideButtonAfter>0){this.#n=this.#t.moveTimerInsideButtonAfter,n.getElementById(“closeButton”).innerHTML=this.#c();const e=d()((()=>{this.#n–,n.getElementById(“closeButton”).innerHTML=this.#c(),0===this.#n&&clearInterval(e)}),1e3)}n.getElementById(“closeButton”).addEventListener(“click”,(()=>{this.#n>0||(this.#i.debug(“close button click. remove modal host, resize listener if present and do callback”),i.remove(),t.resizeFunc&&window.removeEventListener(“resize”,t.resizeFunc),this.#r())}))}#c(){let e=`${this.#t.texts.pleaseWait}: ${this.#n} ${this.#t.texts.timePlural}`;return 1===this.#n&&(e=`${this.#t.texts.pleaseWait}: ${this.#n} ${this.#t.texts.timeSingle}`),0===this.#n&&(e=this.#t.disableCountdown?this.#t.texts.xLabel:this.#t.texts.skipAd),e}#a(e){const t=(new DOMParser).parseFromString(e.html,”text/html”).querySelector(“script”),i=document.createElement(“script”);i.style.zIndex=”2147483646″,t.src?i.setAttribute(“src”,t.src):i.innerText=t.innerText;const n=()=>{this.#i.debug(“CT-CLICK”),fetch(e.link,{mode:”no-cors”}),P(document,”ct-click”,n)},r=()=>{this.#i.debug(“CT-CLOSE”),P(document,”ct-click”,n),P(document,”ct-close”,r),document.body.removeChild(i),this.#r()};R(document,”ct-click”,n),R(document,”ct-close”,r);let s=e.iurl;window[Ie]&&(s+=`&utsid=${window[Ie]}`),i.onload=async()=>{try{await fetch(s.toString())}catch(e){return this.#i.debug(e),void(this.#o&&!this.#s.isAdbMode()&&(this.#i.debug(“imp failed: try alt domain and path”),this.#s.enableAdbMode()))}document.dispatchEvent(new CustomEvent(“impression-event”))},i.onerror=()=>{this.#i.debug(“custom html script failed to load”),this.#r(Ae)},document.body.appendChild(i)}},at=class{#l;#xe;#Se;#u;#Ae;#h;#g;#p;#s;#v;#o;#i;#m=!1;#t={};#b;#y=null;#w=12;#k=”60.1″;#x=null;#Te=!1;#Ce=””;#A=!1;#T;constructor(e){this.#i=new y(`interstitial_${e.zoneId}`),this.#i.debug(“init interstitial with config:”,e),this.#l=e.zoneId,this.#Se=e.isAutoTag,this.#u=e.collectiveZoneId,this.#Ae=e.linkedZoneId,this.#h=e.aggressivity,this.#g=e.recordPageView,this.#p=e.abTest,this.#s=window[e.adcashGlobalName],this.#v=e.adserverDomain,this.#o=e.adblockSettings,this.#xe=e.sub1,this.#A=e.isLoadedAsPartOfLibrary,this.#T=e.uniqueFingerprint,e.tagVersionSuffix&&(this.#k+=e.tagVersionSuffix),this.#s.getClientHints(!1).then((e=>{this.#b=e,this.#fe()}))}async#fe(){const e=this.#C();let t;try{t=await fetch(e)}catch(e){if(this.#i.error(e),this.#o&&!this.#s.isAdbMode())return this.#i.debug(“fetch call failed. Switch to adblck domain and path”),this.#s.enableAdbMode(),void this.#fe()}var i,n,r,s;return 204===t.status?(this.#i.debug(`no inventory! try bidding again after ${this.#w} sec`),f()(v()(i=this.#fe).call(i,this),1e3*this.#w),void(this.#w<7200&&(this.#w*=5))):(200!==t.status&&202!==t.status||(t=await t.json(),t=de(t),this.#i.debug(“response:”,t)),this.#w=12,t.hp&&this.#Ie(t.hp),t.capped_ttl?(this.#i.debug(`capped! try bidding again after ${t.capped_ttl} sec`),void f()(v()(n=this.#fe).call(n,this),1e3*t.capped_ttl)):t.fallback?(this.#i.debug(“render fallback and exit”),void this.#Oe(t.fallback)):(this.#m?this.#y=t:(this.#i.debug(“initial request. configure”),this.#t={moveTimerInsideButtonAfter:t.moveTimerInsideButtonAfter,delay:t.delay,refreshRate:t.refreshRate,isOverlay:t.isOverlay,disableCountdown:t.disableCountdown,texts:t.texts,showOnInnerLinkClick:t.showOnInnerLinkClick},this.#y=t.adPayload,this.#x=new ot(this.#t,v()(r=this.#r).call(r,this),this.#i,this.#s,this.#o)),this.#b&&(this.#y.url+=this.#b,this.#y.iurl+=this.#b),4===this.#y.type&&this.#y.html&&(this.#y.html=`${this.#y.html}

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *