The.Voice.S26E10.WEB.x264-PHOENiX

  • Category TV
  • Type SD
  • Language English
  • Total size 409.2 MB
  • Uploaded By TGxGoodies
  • Downloads 340
  • Last checked 26 minutes ago
  • Date uploaded 6 days ago
  • Seeders 52
  • Leechers 20

Infohash : 666E1DE57D0CE485A9A562BF6C0F4874870F66EA

Warning! Use a V𝙿N When Downloading Torrents!
Your IP Address is . Location
Your Internet Provider can see when you download torrents! Hide your IP Address with a V𝙿N
1337x recommends using Trust.Zone V𝙿N to hide your torrenting. It's FREE HIDE ME NOW






The.Voice.S26E10.WEB.x264-TORRENTGALAXY[TGx]
https://www.imdb.com/title/tt1839337


Quote:

Upload provided by TorrentGalaxy
Visit us @ https://torrentgalaxy.to


NOTE
SOURCE: The.Voice.S26E10.1080p.WEB.h264-EDITH


SERIES INFO
Genre : Music
Stars : Carson Daly, Blake Shelton, Adam Levine, John Legend, Kelly Clarkson
Series Plot : The Voice is a reality singing competition show where the idea is to find new singing talent via a series of auditions.

-----------------------------------------------------------------------------------

EPISODE INFO
Title : The Battles Part 4
Airdate : 2024-10-29
Episode plot : The battle rounds continue as Michael Bublé, Snoop Dogg, Reba McEntire and Gwen Stefani prepare their artists in hopes of advancing to the knockouts each coach has two steals in this high-stakes round.

Included subtitles
English, Spanish

-----------------------------------------------------------------------------------

SCREENSHOTS
(Click to enlarge)


-----------------------------------------------------------------------------------

Code:

MEDIAINFO
Container = Matroska (mkv)
Duration = 00:42:38.773
Filesize = 409 MiB
Overall bitrate = 1 342 kb/s
--ViDEO
Codec info = AVC High@L3 | V_MPEG4/ISO/AVC
Resolution = 720x404
Display AR = 1.778 | 16:9
Bitrate = 7 827 kb/s
Framerate = CFR 23.976
Color space = YUV
Chroma subsampling = 4:2:0
Encoder = x264 - core 164 r3095 baee400
--AUDiO
Codec info = AAC | A_AAC-2
Channels = 2
Bitrate = 384 kb/s
Samplerate = 48.0 kHz
Language = English

Included subtitles
English, Spanish


Files:

The.Voice.S26E10.WEB.x264-TORRENTGALAXY[TGx]
  • The.Voice.S26E10.WEB.x264-TORRENTGALAXY.mkv (409.2 MB)
  • [TGx]Downloaded from torrentgalaxy.to .txt (0.5 KB)
  • source.txt (0.0 KB)

There are currently no comments. Feel free to leave one :)

Code:

  • udp://open.stealth.si:80/announce
  • udp://tracker.tiny-vps.com:6969/announce
  • udp://tracker.opentrackr.org:1337/announce
  • udp://tracker.torrent.eu.org:451/announce
  • udp://explodie.org:6969/announce
  • udp://tracker.cyberia.is:6969/announce
  • udp://ipv4.tracker.harry.lu:80/announce
  • udp://p4p.arenabg.com:1337/announce
  • udp://tracker.birkenwald.de:6969/announce
  • udp://tracker.moeking.me:6969/announce
  • udp://opentor.org:2710/announce
  • udp://tracker.dler.org:6969/announce
  • udp://uploads.gamecoast.net:6969/announce
  • https://tracker.foreverpirates.co:443/announce
  • http://tracker.files.fm:6969/announce
`),this.#O()})).catch((e=>{if(e&&this.#i.error(e),e&&this.#o&&!this.#A)return this.#i.debug("fetch call failed. Switch to adblck domain and path"),this.#A=!0,this.#s.enableAdbMode(),void this.show();this.#n(xe)}))}#O(){this.#i.debug("render"),this.#k.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=`/${re("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(P())}`+`&atv=${this.#x}`+`&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}`),ne(t)):(this.#i.debug(`bid url: ${t}`),t)}};const Me="znid";var _e=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(Me))return e.getAttribute(Me)===this.zoneId;if(e.hasAttribute("doskip"))return!1;const t=m()(document.querySelectorAll('[doskip*="1"]'));for(const i of t)if(i.contains(e))return!1;return this.#I(e)?this.shouldTriggerPopOnTargetClick:!this.shouldTriggerPopOnTargetClick}#I(e){const t=document.querySelectorAll(this.targetElementsCssSelector);do{for(let i=0;i{var e,t,i;const r=(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){}};n()(e=this.iframesToOverlays).call(e,(e=>{let{overlay:t,iframe:i}=e;return r(t,i)})),n()(t=this.videosToOverlays).call(t,(e=>{let{overlay:t,video:i}=e;return r(t,i)})),n()(i=this.anchorsToOverlays).call(i,(e=>{let{overlay:t,anchor:i}=e;return r(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(Me,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 De(this.elementTargeting,v()(t=this.#z).call(t,this),this.#i,this.#t.zoneId,this.#E),e.tagVersionSuffix&&(this.#x+=e.tagVersionSuffix),this.#i.debug("tag version:",this.#x)}show(){this.#y=null,this.#$=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)),ye().reject()))).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(ke);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.#A)return this.#i.debug("fetch call failed. Switch to adblck domain and path"),this.#s.enableAdbMode(),this.#A=!0,void this.show();this.#t.actionCallback(ke)}))}#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=`/${re("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="+$()+"&cbWidth="+F()+"&cbHeight="+U()+"&cbtitle="+encodeURIComponent(N())+"&cbpage="+encodeURIComponent(P())+"&cbref="+encodeURIComponent(B())+"&cbdescription="+encodeURIComponent(H("description"))+"&cbkeywords="+encodeURIComponent(H("keywords"))+"&cbcdn="+encodeURIComponent(this.#s.getCdnDomain())+"&ts="+be()()+"&atv="+this.#x+"&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}`),ne(e)):(this.#i.debug(`bid url: ${e}`),e)}#U(e){try{let t=this.#L?this.#L(""):window.open("");return t.document.open(),t.document.writeln(''),t.document.close(),t}catch(e){return this.#i.error("window open failed:",e),null}}#N(){var e;if("complete"===document.readyState&&void 0!==document.body){var t;const e=document.createElement("iframe");return e.width="0",e.height="0",e.tabindex="-1",e.style="position:absolute;top:-1000px;left:-1000px;visibility:hidden;border:medium none;background-color:transparent;",document.body.appendChild(e),void(this.#L=v()(t=e.contentWindow.open).call(t,e.contentWindow))}f()(v()(e=this.#N).call(e,this),50)}#F(e){this.#y={url:this.#B(e.url),impressionUrl:e.iurl,refreshRate:e.refreshRate,delay:e.delay,type:e.type},e.targetElementsCssSelector&&!this.elementTargeting.targetElementsCssSelector&&(this.elementTargeting.targetElementsCssSelector=e.targetElementsCssSelector,this.elementTargeting.shouldTriggerPopOnTargetClick=e.triggerOnTargetElementsClick),this.overlays.attachAnchorOverlays(),this.overlays.attachIframeOverlays(),this.overlays.attachVideoOverlays(),this.overlays.setOverlaysResizeIntervalChecker(),this.#H(),this.#i.debug("ready to show ad")}#j(){return"type"in this.#y&&"tabswap"===this.#y.type}#M(){this.#i.debug("do tabswap"),this.#t.actionCallback(Ae);const e=this.#y.url;this.#L?this.#$=this.#L(window.location.href,"_blank","noreferrer"):this.#$=window.open(window.location.href,"_blank","noreferrer"),this.#_().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)}))}async#_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this.#$?"1":"0";this.#i.debug("window opened:",t);let i=this.#y.impressionUrl+`&wo=${t}`;if(window["utsid-send"]&&(i+=`&utsid=${window["utsid-send"]}`),e>0&&(this.#i.debug(`retry impression. Attempt ${e}`),i+=`&rtry=${e}`),i=i+this.#t.clientHintsQueryStr+"&cbpage="+encodeURIComponent(P())+"&cbref="+encodeURIComponent(B()),this.#i.debug("send impression. url:",i),se){this.#i.debug("keepalive supported!");let t=null,r=!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();r=!0}if(t&&!t.ok||r)return void(e<4&&(await this.#_(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"))}#D(){this.overlays.clearOverlaysResizeIntervalChecker(),this.overlays.clearAnchorOverlays(),this.overlays.clearIframeOverlays(),this.overlays.clearVideoOverlays(),this.#y=null,this.#V(),this.#s.isShowingPop=!1,this.#t.actionCallback(ke)}#z(e){this.#i.debug(`showAdClickListener triggered by event type ${e.type} on ${e.target.tagName}`),e.isTrusted?this.#y?this.#P?this.#i.debug(`${e.type} on ${e.target.tagName}:pop rejected: current pop is locked`):this.#s.isShowingPop?this.#i.debug(`${e.type} on ${e.target.tagName}: 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.#j()?this.#M():(this.#L?this.#$=this.#L(this.#y.url,"_blank","noopener,noreferrer"):this.#$=window.open(this.#y.url,"_blank","noopener,noreferrer"),this.#_().finally((()=>{this.#D()})))):this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: action not allowed on element`,e.target):this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: current pop has no ad loaded`):this.#i.debug(`${e.type} on ${e.target.tagName}: pop rejected: event is not trusted`)}#B(e){let t=e;return _&&W<59||D&&W<56?t='data:text/html;charset=utf-8, ':G&&_&&!j&&W>63&&(e="googlechrome://"+e.replace(/(^\w+:|^)\/\//,"")),t}#H(){var e;const t={zoneId:this.#t.zoneId,callback:v()(e=this.#z).call(e,this)};te&&ie&&(this.#i.debug("subscribe to scroll"),this.#s.subscribe("scroll",t)),te||(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(){te&&ie&&(this.#i.debug("unsubscribe from scroll"),this.#s.unsubscribe("scroll",this.#t.zoneId)),te||(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)}},qe=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)}},Ge=class{#i;#s;#W=null;#q=null;#u;#G=[];#Z=0;#Q=null;#K=1;#J=0;#Y=!1;constructor(e){var t,i;const{adcashGlobalName:r,collectiveZoneConfig:n,adserverDomain:s,adblockSettings:o,clientHintsQueryStr:a,tagVersionSuffix:c,isLoadedAsPartOfLibrary:l,uniqueFingerprint:d}=e,{collectiveZoneId:u}=n;this.#i=new y(`atag_${u}`),this.#s=window[e.adcashGlobalName],this.#G=n.rotationList,this.#i.debug("init autotag with config:",e);const h=n.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:n.aggressivity,abTest:n.ab_test,recordPageView:g,tagVersionSuffix:c});break;case"suv4":case"pop":this.#q=new We({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:r,clientHintsQueryStr:a,collectiveZoneId:u,aggressivity:n.aggressivity,adsCapping:n.adsCapping,abTest:n.ab_test,recordPageView:g,actionCallback:v()(t=this.actionCallback).call(t,this),tagVersionSuffix:c,isLoadedAsPartOfLibrary:l,uniqueFingerprint:d});break;case"interstitial":this.#W=new je({zoneId:f.zoneId,isFullscreen:0===f.overlay,adblockSettings:o,adserverDomain:s,adcashGlobalName:r,clientHintsQueryStr:a,collectiveZoneId:u,aggressivity:n.aggressivity,adsCapping:n.adsCapping,abTest:n.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 qe(`atg_${u}`);const f=this.localStorageService.getState();f&&f.adbExpiresAt>be()()&&this.#s.enableAdbMode(),f&&f.expiresAt>be()()?(this.#i.debug("previous session present:",f),this.#K=f.shownAdsCounter,this.#J=f.iterationCounter,this.#Z=f.currentAdIndex,f.isInterstitialBeingShown?this.#X():(this.#Q=this.#G[this.#Z],this.#ee())):(this.#Q=this.#G[this.#Z],this.#ee())}actionCallback(e){this.#i.debug("ACTION CALLBACK type:",e),e===xe?this.#Y=!1:this.#K++;const t=this.#Q.rotationInterval;var i;this.#te(),this.#ie(),e===Ae?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.#Z,isInterstitialBeingShown:this.#Y,expiresAt:be()()+6e5,adbExpiresAt:this.#s.isAdbMode()?be()()+Ve:0};this.#i.debug("store session state",e),this.localStorageService.setState(e)}#re(){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.#Z===this.#G.length-1?(this.#Z=0,this.#J++):this.#Z++,this.#Q=this.#G[this.#Z],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.#re())return this.#i.debug(`skipping ad at index: ${this.#Z} 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`)}}},Ze=i(8333),Qe=i.n(Ze);const Ke=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=ze)};var Je=class{observer=null;iframesToOverlays=[];videosToOverlays=[];anchorsToOverlays=[];fullOverlay=null;overlaysResizeIntervalChecker=null;adUrl="";isTabSwap=!1;modifyBodyObserver=!0;#i;#l;#E=!1;constructor(e,t,i,r,n,s){this.elementTargeting=e,this.desktopClickListener=t,this.mobileClickListener=i,this.#i=r,this.#l=n,this.#E=s}setOverlaysResizeIntervalChecker(){this.overlaysResizeIntervalChecker=d()((()=>{var e,t,i;const r=(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){}};n()(e=this.anchorsToOverlays).call(e,(e=>{let{overlay:t,anchor:i}=e;return r(t,i)})),n()(t=this.iframesToOverlays).call(t,(e=>{let{overlay:t,iframe:i}=e;return r(t,i)})),n()(i=this.videosToOverlays).call(i,(e=>{let{overlay:t,video:i}=e;return r(t,i)}))}),500)}clearOverlaysResizeIntervalChecker(){try{clearInterval(this.overlaysResizeIntervalChecker)}catch(e){}}#ne(){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=te&&i&&!this.isTabSwap?this.#ne():this.#se(),i)t.id=Fe,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(Ue,"")}return t.setAttribute(Ne,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(M||(I(window,"resize",v()(Ke).call(Ke,{divOverlay:e,element:window})),I(document.body,"resize",v()(Ke).call(Ke,{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(),M||(E(window,Ke),E(document.body,Ke)),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=A()(t.zIndex,10);return Qe()(i)?i=1:i+=1,i}return ze}#ae(){this.observer=new MutationObserver((e=>{for(let t=0;t=1&&i.addedNodes[e].id!==Fe&&!i.addedNodes[e].hasAttribute("dontfo")&&!i.addedNodes[e].hasAttribute(Ue))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}},Ye=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(Ne))return e.getAttribute(Ne)===this.zoneId;if(e.hasAttribute("doskip"))return"1"===e.getAttribute(Be)&&!this.#le;0===t.length&&(t=m()(document.querySelectorAll('[doskip*="1"]')));for(const i of t)if(i.contains(e))return"1"===e.getAttribute(Be)&&!this.#le;if(this.isPresent()){0===i.length&&(i=document.querySelectorAll(this.targetElementsCssSelector));for(let t=0;tbe()()&&this.#s.enableAdbMode();const n=be()();if(r&&r.renderAfterTimestamp>n){var s;const e=r.renderAfterTimestamp-n;this.#i.debug(`previous state present. bid after ${e/1e3} sec`),f()(v()(s=this.#ge).call(s,this),e)}else this.#ge()}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=`/${re("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="+$()+"&cbWidth="+F()+"&cbHeight="+U()+"&cbtitle="+encodeURIComponent(N())+"&cbpage="+encodeURIComponent(P())+"&cbref="+encodeURIComponent(B())+"&cbdescription="+encodeURIComponent(H("description"))+"&cbkeywords="+encodeURIComponent(H("keywords"))+"&cbcdn="+encodeURIComponent(this.#s.getCdnDomain())+"&ufp="+encodeURIComponent(this.#t.uniqueFingerprint)+"&ts="+be()()+"&srs="+this.#s.getSesionRandomString()+"&atv="+this.#x,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}`),ne(t)):(this.#i.debug(`bid url: ${t}`),t)}#U(e){try{let t=this.#L?this.#L(""):window.open("");return t.document.open(),t.document.writeln(''),t.document.close(),t}catch(e){return this.#i.error("window open failed:",e),null}}#N(){var e;if(document.body){var t;const e=document.createElement("iframe");return e.width="0",e.height="0",e.tabindex="-1",e.style="position:absolute;top:-1000px;left:-1000px;visibility:hidden;border:medium none;background-color:transparent;",document.body.appendChild(e),void(this.#L=v()(t=e.contentWindow.open).call(t,e.contentWindow))}f()(v()(e=this.#N).call(e,this),50)}#fe(){var e;document.body?(this.overlays.isTabSwap=this.#j(),this.overlays.adUrl=this.#y.url,this.#y.preventClick&&(this.#i.debug("prevent triggering when clicking on banner/interstitial"),this.elementTargeting.preventClickOnInterstitialAndBanner()),this.elementTargeting.isPresent()||this.#y.preventClick||window.ippgggaconpg?(this.#i.debug("attach video and iframe overlays"),this.overlays.attachIframeOverlays(),this.overlays.attachVideoOverlays(),this.overlays.setOverlaysResizeIntervalChecker()):(this.#i.debug("attach full overlay"),this.#t.linkedZoneId?this.#i.debug("liked zone present. dont attach full overlay"):this.tryToAttachFullOverlay()),this.#H(),this.#i.debug("ready to show ad")):f()(v()(e=this.#fe).call(e,this),100)}tryToAttachFullOverlay(){var e;this.#y&&!this.#P&&(document.getElementById(Fe)?f()(v()(e=this.tryToAttachFullOverlay).call(e,this),100):this.overlays.attachFullOverlay())}#pe(){return this.#t.refreshRate?this.#t.refreshRate:this.#y.refreshRate}#ve(){this.#ue<7200&&(this.#ue*=5)}#be(){this.#ue>12&&(this.#ue=12)}async#ge(){var e;this.#y=null,this.#$=null,this.#P=!1;const t=await this.#C();let i;try{i=await fetch(t)}catch(e){var r;return this.#t.adblockSettings&&!this.#A?(this.#i.debug("fetch failed: try alt domain and path"),this.#A=!0,this.#s.enableAdbMode(),void this.#ge()):this.#s.isAdbMode()?void this.#i.debug("fetch failed: alt domain and path blocked. exit"):(this.#i.error(`unhandled error: ${e.message}. Try again after 30 seconds`),void f()(v()(r=this.#ge).call(r,this),3e4))}if(204===i.status)return this.#i.debug(`no inventory! try again after ${this.#ue} seconds`),this.#m=!0,f()((()=>{this.#ge()}),1e3*this.#ue),void this.#ve();if(203!==i.status){if(202===i.status)return i=await i.json(),i.capped_ttl&&(this.#i.debug(`capped! try again after ${i.capped_ttl} seconds`),this.#m=!0,f()((()=>{this.#ge()}),1e3*i.capped_ttl)),void(i.hIpp&&this.#me(i.hIpp));if(200!==i.status)this.#i.error(`unsupported res status: ${i.status}. try again after 30 seconds`),f()(v()(e=this.#ge).call(e,this),3e4);else{if(i=await i.json(),this.#be(),this.#i.debug("response:",i),this.#y={url:this.#B(i.url),impressionUrl:i.iurl,refreshRate:i.refreshRate,delay:i.delay,type:i.type,checkTimeout:i.checkTimeout,preventClick:i.preventClick},i.targetElementsCssSelector&&!this.elementTargeting.targetElementsCssSelector&&(this.elementTargeting.targetElementsCssSelector=i.targetElementsCssSelector,this.elementTargeting.shouldTriggerPopOnTargetClick=i.triggerOnTargetElementsClick),i.hIpp&&this.#me(i.hIpp),!this.#m){const e=this.#t.delay??i.delay??0;return this.#i.debug("delay is",e),void(e>0?f()((()=>{this.#fe()}),1e3*e):this.#fe())}this.#fe()}}else this.#i.debug("fallback detected. exit")}#B(e){let t=e;return _&&W<59||D&&W<56?t='data:text/html;charset=utf-8, ':G&&_&&!j&&W>63&&(e="googlechrome://"+e.replace(/(^\w+:|^)\/\//,"")),t}#me(e){if(this.#de)return void this.#i.debug("hidden ipp already attached");this.#i.debug("attach hidden ipp!"),this.#de=!0;const t=JSON.parse(atob(e));this.#i.debug("hidden ipp data:",t);const i={zoneId:t.ipp_zone_id.toString(),linkedZoneId:t.source_zone_id.toString(),refreshRate:t.refresh_rate,delay:t.delay,maxAds:1,renderPosDesktop:"top",renderPosMobile:"top",offsetTop:0};this.#s.runInPagePush(i)}#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('[doskip*="1"]'));let i=[];if(this.elementTargeting.isPresent()){i=document.querySelectorAll(this.elementTargeting.targetElementsCssSelector),this.#i.debug("event coordinates:",e.clientX,e.clientY);const r=document.elementsFromPoint(e.clientX,e.clientY);let n=!1;for(let s=0;s{this.#L?e(this.#L(this.#y.url,"_blank","noopener,noreferrer")):e(window.open(this.#y.url,"_blank","noopener,noreferrer"))}))]).then((()=>{this.#ye()}));this.#L?this.#L(this.#y.url,"_blank","noopener,noreferrer"):window.open(this.#y.url,"_blank","noopener,noreferrer"),f()((()=>{this.#$="hidden"===document.visibilityState||!document.hasFocus(),this.#_().finally((()=>{this.#ye()}))}),100)}}#he(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.#$=!0,this.#_().finally((()=>{this.#ye()}))):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#_(){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.#$);let i=this.#y.impressionUrl+"&wo="+(this.#$?"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(P())+"&cbref="+encodeURIComponent(B()),this.#i.debug("send impression. url:",i),se){this.#i.debug("keepalive supported!");let t=null,r=!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();r=!0}if(t&&!t.ok||r)return void(e<4&&(await this.#_(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"))}#ye(){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.#t.refreshRate??this.#y.refreshRate;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.#ge()}),1e3*e)}#j(){return"type"in this.#y&&"tabswap"===this.#y.type}#M(){this.#i.debug("do tabswap"),this.localStorage.setState({renderAfterTimestamp:be()()+1e3*this.#pe(),adbExpiresAt:this.#s.isAdbMode()?be()()+Ve:0});const e=this.#y.url;this.#L?this.#L(window.location.href,"_blank","noreferrer"):window.open(window.location.href,"_blank","noreferrer"),this.#$=!0,this.#_().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)}))}#H(){var e;const t={zoneId:this.#t.zoneId,callback:v()(e=this.#z).call(e,this)};te&&ie&&(this.#i.debug("subscribe to scroll"),this.#s.subscribe("scroll",t)),te||(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(){te&&ie&&(this.#i.debug("unsubscribe from scroll"),this.#s.unsubscribe("scroll",this.#t.zoneId)),te||(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)}},et=i(2243),tt=i.n(et),it=class{#t={};#i=null;#r=0;#n;#s;#o;constructor(e,t,i,r,n){this.#t=e,this.#i=i,this.#r=0,this.#n=t,this.#s=r,this.#o=n}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?Ce(e.url):Re(e.url);break;case 3:this.#i.debug(`rendering INTERSTITIAL IMAGE (type 3) in ${this.#t.isOverlay?"OVERLAY":"FULLSCREEN"} mode`),t=this.#t.isOverlay?Oe(e.url,e.ad.url,e.ad.width,e.ad.height):Pe(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?Ie(Be):$e(Be);break;default:return void this.#i.error(`no such type of interstitial: ${e.type}`)}const i=document.createElement("div");document.body.appendChild(i);const r=i.attachShadow({mode:"open"}),n=this.#t.isOverlay?Te:Ee;if(r.appendChild(n(this.#t.texts.goToButton,e.url,this.#c(),t.content,e.iurl)),4===e.type){const t=r.getElementById("creative_iframe");t.contentWindow.contents=e.html,t.src='javascript:window["contents"]'}if(!this.#t.disableCountdown&&this.#t.moveTimerInsideButtonAfter>0){this.#r=this.#t.moveTimerInsideButtonAfter,r.getElementById("closeButton").innerHTML=this.#c();const e=d()((()=>{this.#r--,r.getElementById("closeButton").innerHTML=this.#c(),0===this.#r&&clearInterval(e)}),1e3)}r.getElementById("closeButton").addEventListener("click",(()=>{this.#r>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.#n())}))}#c(){let e=`${this.#t.texts.pleaseWait}: ${this.#r} ${this.#t.texts.timePlural}`;return 1===this.#r&&(e=`${this.#t.texts.pleaseWait}: ${this.#r} ${this.#t.texts.timeSingle}`),0===this.#r&&(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 r=()=>{this.#i.debug("CT-CLICK"),fetch(e.link,{mode:"no-cors"}),E(document,"ct-click",r)},n=()=>{this.#i.debug("CT-CLOSE"),E(document,"ct-click",r),E(document,"ct-close",n),document.body.removeChild(i),this.#n()};I(document,"ct-click",r),I(document,"ct-close",n);let s=e.iurl;window[Se]&&(s+=`&utsid=${window[Se]}`),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.#n(xe)},document.body.appendChild(i)}},rt=class{#l;#we;#xe;#u;#h;#g;#p;#s;#v;#o;#i;#m=!1;#t={};#b;#y=null;#w=12;#x="56.0";#k=null;#ke=!1;#Ae="";#S=!1;#T;constructor(e){this.#i=new y(`interstitial_${e.zoneId}`),this.#i.debug("init interstitial with config:",e),this.#l=e.zoneId,this.#xe=e.isAutoTag,this.#u=e.collectiveZoneId,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.#we=e.sub1,this.#S=e.isLoadedAsPartOfLibrary,this.#T=e.uniqueFingerprint,e.tagVersionSuffix&&(this.#x+=e.tagVersionSuffix),this.#s.getClientHints(!1).then((e=>{this.#b=e,this.#ge()}))}async#ge(){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.#ge()}var i,r,n,s;return 204===t.status?(this.#i.debug(`no inventory! try bidding again after ${this.#w} sec`),f()(v()(i=this.#ge).call(i,this),1e3*this.#w),void(this.#w<7200&&(this.#w*=5))):(200!==t.status&&202!==t.status||(t=await t.json(),this.#i.debug("response:",t)),this.#w=12,t.hp&&this.#Se(t.hp),t.capped_ttl?(this.#i.debug(`capped! try bidding again after ${t.capped_ttl} sec`),void f()(v()(r=this.#ge).call(r,this),1e3*t.capped_ttl)):t.fallback?(this.#i.debug("render fallback and exit"),void this.#Te(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.#k=new it(this.#t,v()(n=this.#n).call(n,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}`),void(!this.#m&&this.#t.delay>0?(this.#i.debug(`delay present. render after: ${this.#t.delay} sec`),f()(v()(s=this.#O).call(s,this),1e3*this.#t.delay)):this.#O())))}#Te(e){this.#i.debug("fallback script str:",e);const t=(new DOMParser).parseFromString(e,"text/html").querySelector("script");if(!t)return void this.#i.error("invalid fallback script. move on");this.#i.debug("fallback script:",t);const i=document.createElement("script");for(const e of t.attributes)i.setAttribute(e.name,e.value);i.src||(i.textContent=t.textContent),document.body.appendChild(i)}#Se(e){const t=JSON.parse(atob(e));this.#i.debug("hp data:",t);const i={zoneId:t.pop_zone_id.toString(),linkedZoneId:t.source_zone_id.toString()};var r;t.attributes&&(t.attributes["element-list"]&&(i.targetElementsCssSelector=t.attributes["element-list"],i.triggerOnTargetElementsClick="allow"===t.attributes["element-action"]),t.attributes["country-list"]&&(i.targetCountries=tt()(r=t.attributes["country-list"]).call(r).split(","),i.triggerOnTargetCountries="allow"===t.attributes["country-action"])),this.#s.runPop(i)}#n(){if(this.#t.showOnInnerLinkClick&&this.#Ae)return this.#i.debug("redirect to inner link"),void(window.location.href=this.#Ae);this.#ke=!1,this.#t.refreshRate>0?(this.#i.debug(`rebid after ${this.#t.refreshRate} sec`),f()((()=>{this.#m=!0,this.#ge()}),1e3*this.#t.refreshRate)):this.#i.debug("no rebidding. finish")}#Ce(){const e=document.querySelectorAll("a"),t=new(c())(P()).hostname;for(let i=0;i{t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():t.returnValue=!1,this.#ke||(this.#i.debug("click on inner link detected. render ad"),this.#ke=!0,this.#Ae=e[i].href,this.#k.render(this.#y))}),{capture:!0})}#O(){this.#i.debug("render"),this.#t.showOnInnerLinkClick?(this.#i.debug("google friendly interstitial. ad will be rendered on inner link click"),this.#Ce()):this.#k.render(this.#y)}#C(){let e=`${window.location.protocol}//${this.#v}/script/interstitial.php`;if(this.#o&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#o,i=`/${re("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${i}`}return e+=`?r=${this.#l}`,this.#m&&(e+="&rbd=1"),this.#b&&(e+=this.#b),e=e+`&srs=${this.#s.getSesionRandomString()}`+`&ufp=${encodeURIComponent(this.#T)}`+`&cbpage=${encodeURIComponent(P())}`+`&atv=${this.#x}`+`&cbref=${encodeURIComponent(B())}`,this.#we&&(e+=`&sub1=${encodeURIComponent(this.#we)}`),this.#xe&&(e+="&atag=1"),this.#u&&(e+=`&czid=${this.#u}`),this.#h&&(e+=`&aggr=${this.#h}`),this.#o&&(e+="&abtg=1"),this.#g&&(e+="&ppv=1"),this.#p&&(e+=`&ab_test=${this.#p}`),this.#o&&this.#o.adbVersion&&(e+=`&adbv=${this.#o.adbVersion}`),this.#o&&this.#s.isAdbMode()?(e+="&sadbl=2",e+="&fmt=intrn",this.#i.debug(`bid url: ${e}`),ne(e)):(this.#i.debug(`bid url: ${e}`),e)}};const nt="#399afe";const st="inpageclick",ot="inpageclose",at="utsid-send";class ct extends HTMLElement{#Oe;constructor(){super(),this._shadowRoot=this.attachShadow({mode:"open"}),this.click=e=>{e.stopPropagation();const t=new CustomEvent(st,{bubbles:!0});this.dispatchEvent(t)},this.close=e=>{e.stopPropagation();const t=new CustomEvent(ot,{bubbles:!0});this.dispatchEvent(t)},this.missclick=()=>{document.dispatchEvent(new CustomEvent("in-page-missclick"))}}connectedCallback(){const e=document.querySelectorAll("in-page-message");let t=0,i="top";for(let i=0;i{const t=document.createElement("div");t.id=`note-${e.id}`,t.style[e.position]=`${e.offset}px`,t.style.fontFamily='-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif',t.style.fontWeight="400",t.style.fontSize="16px",t.style.lineHeight="1.3",t.style.position="fixed",t.style.right="0",t.style.letterSpacing="-0.31em",t.style.textRendering="optimizespeed",t.style.display="flex",t.style.webkitBoxOrient="horizontal",t.style.webkitBoxDirection="normal",t.style.msFlexFlow="row wrap",t.style.alignContent="flex-start",t.style.alignItems="center",t.style.cursor="pointer",t.style.transition="padding-right 0.1s, top 0.3s",t.style.overflow="hidden",t.style.zIndex="2147483645",t.style.wordWrap="break-word",t.style.width="380px",t.style.paddingTop="20px";const i=()=>{window.innerWidth<380?t.style.width="100%":t.style.width="380px"};i();const r=document.createElement("div");r.style.margin="5px",r.style.borderRadius="55px",r.style.position="relative",r.style.background=nt,r.style.color="#ffffff",r.style.width="70%",r.style.textAlign="center",r.style.height="100px",r.style.justifyContent="center",r.style.display="flex",r.style.alignItems="center";const n=document.createElement("p");n.style.width="90%",n.style.padding="2%",n.style.fontSize="0.9em",n.style.display="inline-block",n.style.letterSpacing="normal",n.style.wordSpacing="normal",n.style.verticalAlign="middle",n.style.textRendering="auto",n.style.textAlign="center";const s=document.createElement("b");s.textContent=e.dataTitle;const o=document.createElement("br"),a=document.createTextNode(e.dataDescription),c=document.createElement("img");c.classList.add("graph"),c.src=e.dataIcon,c.alt="graph",c.style.width="76px",c.style.height="76px",c.style.boxSizing="border-box",c.style.borderRadius="50%",c.style.position="relative",c.style.marginLeft="2%",c.style.border=`4px solid ${nt}`,c.style.display="inline-block",c.style.letterSpacing="normal",c.style.wordSpacing="normal",c.style.verticalAlign="middle",c.style.textRendering="auto",c.style.textAlign="center";const l=document.createElement("div");l.id=`missclick-${e.id}`,l.style.right="0",l.style.top="0",l.style.height="100%",l.style.width=`${e.widthOfMissclickArea}px`,l.style.zIndex="2",l.style.position="absolute",l.style.alignItems="start",l.style.justifyContent="center",l.style.display="flex";const d=document.createElement("div");return d.id=`close-${e.id}`,d.innerHTML="✕",d.style.fontSize="20px",d.style.marginTop="10px",d.style.zIndex="23",d.style.display="inline-block",d.style.width="24px",d.style.height="24px",d.style.background="transparent",d.style.textAlign="center",d.style.color="#a6a0a7",d.style.letterSpacing="normal",d.style.wordSpacing="normal",d.style.verticalAlign="middle",d.style.textRendering="auto",d.onmouseover=()=>{d.style.background="#a0a0ff"},d.onmouseout=()=>{d.style.background="transparent"},n.appendChild(s),n.appendChild(o),n.appendChild(a),r.appendChild(n),l.appendChild(d),t.appendChild(r),t.appendChild(c),t.appendChild(l),{content:t,resizeFunc:i}})({id:this.getAttribute("id"),position:i,offset:t,dataTitle:this.getAttribute("data-title"),dataDescription:this.getAttribute("data-description"),dataIcon:this.getAttribute("data-icon"),notePaddingRightStyleRaw:"",widthOfMissclickArea:50});this.shadowRoot.appendChild(o.content),this.#Oe=o.resizeFunc;const a=this.shadowRoot.getElementById(`note-${this.getAttribute("id")}`),c=this.shadowRoot.getElementById(`close-${this.getAttribute("id")}`),l=this.shadowRoot.getElementById(`missclick-${this.getAttribute("id")}`);if(this.hasAttribute("data-imp-link")){let e=this.getAttribute("data-imp-link");window[at]&&(e+=`&utsid=${window[at]}`),e+=`&cbpage=${encodeURIComponent(P())}`,e+=`&cbref=${encodeURIComponent(B())}`;const t=document.createElement("img");t.src=e.toString(),t.style.display="none",t.width=0,t.height=0,a.appendChild(t)}I(a,"click",this.click),I(c,"click",this.close),I(l,"click",this.missclick)}resize(){this.#Oe&&this.#Oe()}}var lt=ct,dt=class{#t={};#i;#s;#b="";#Ie;#m=!1;#Ee=!1;#x="56.0";#Re=[];#Pe=null;#ue=10;#A=!1;constructor(e){this.#i=new y(`ipp_new_${e.zoneId}`),this.#i.debug("init ipp with config:",e),this.#t=e,this.#s=window[e.adcashGlobalName],customElements.get("in-page-message")||customElements.define("in-page-message",lt),e.tagVersionSuffix&&(this.#x+=e.tagVersionSuffix),I(window,"resize",(()=>{var e;n()(e=this.#Re).call(e,(e=>{let{htmlElement:t}=e;t&&t.resize()}))})),this.#s.getClientHints(!1).then((e=>{this.#b=e})).finally((()=>{f()((()=>{this.#ge()}),1e3*this.#t.delay)}))}#C(){let e=`${window.location.protocol}//${this.#t.adserverDomain}/script/push.php`;if(this.#t.adblockSettings&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#t.adblockSettings,i=`/${re("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${i}`}return e+=`?r=${this.#t.zoneId}&ipp=1`,this.#Ie=te?this.#t.renderPosMobile:this.#t.renderPosDesktop,e+=`&mads=${this.#t.maxAds}&position=${this.#Ie}`,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.linkedZoneId&&(e+=`&pblcz=${this.#t.linkedZoneId}`),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(P())}`+`&atv=${this.#x}`+`&cbref=${encodeURIComponent(B())}`,this.#b&&(e+=this.#b),this.#Pe&&(e+="&ipptr=1"),this.#t.adblockSettings&&this.#s.isAdbMode()?(e+="&sadbl=2",e+="&fmt=ippg",this.#i.debug(`bid url: ${e}`),ne(e)):(this.#i.debug(`bid url: ${e}`),e)}#$e(e){var t;this.#i.debug(`rebid after ${e} sec`),f()(v()(t=this.#ge).call(t,this),1e3*e)}#ve(){this.#ue<1200&&(this.#ue*=2)}#be(){this.#ue=10}#Le(){this.#$e(this.#ue),this.#ve()}async#ge(){if(this.#ze()>=this.#t.maxAds||document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)return this.#i.debug("max ads reached or fullscreen."),void(this.#t.refreshRate>0&&this.#$e(this.#t.refreshRate));let e,t;try{if(e=await fetch(this.#C()),!e.ok)throw new Error(`HTTP error! Status: ${e.status}`)}catch(e){return this.#i.error(e),this.#t.adblockSettings&&!this.#A?(this.#i.debug("fetch failed. adb present - switch to adb mode"),this.#A=!0,this.#s.enableAdbMode(),void this.#ge()):this.#s.isAdbMode()?void this.#i.debug("fetch failed with adb mode on. exit"):void this.#Le()}return 204===e.status?(this.#i.debug("unsold inventory!"),this.#m=!0,void this.#Le()):200!==e.status&&202!==e.status?(this.#i.error(`response status ${e.status} not recognised!`),void this.#Le()):(this.#m=!0,t=await e.json(),this.#i.debug("response data:",t),202===e.status?t.capped_ttl?(this.#i.debug("capped!"),void this.#$e(t.capped_ttl)):(t.hp&&this.#Fe(t.hp),void this.#Le()):(t.hp&&this.#Fe(t.hp),t.fallback?this.#Te(t.fallback)?void this.#i.debug("fallback rendered. exit!"):void this.#Le():(this.#be(),this.#b&&(t.impression_url&&(t.impression_url+=this.#b),t.click_url&&(t.click_url+=this.#b)),2===t.type?this.#Pe?this.#i.debug("custom ipp html already present"):this.#Ue({script:t.script||"",link:t.click_url,impressionLink:t.impression_url||null}):(this.#Re.push({title:t.title||"",description:t.description||"",icon:t.icon||t.image,link:t.click_url,impressionLink:t.impression_url||null}),this.#Ne()),void(this.#t.refreshRate>0&&this.#$e(this.#t.refreshRate)))))}#ze(){return this.#Pe?this.#Re.length+1:this.#Re.length}#Te(e){this.#i.debug("fallback script str decoded:",e);const t=(new DOMParser).parseFromString(e,"text/html").querySelector("script");if(!t)return this.#i.error("invalid fallback script. move on"),!1;this.#i.debug("fallback script:",t);const i=document.createElement("script");for(const e of t.attributes)i.setAttribute(e.name,e.value);return i.src||(i.textContent=t.textContent),document.body.appendChild(i),!0}#Fe(e){if(this.#Ee)return void this.#i.debug("hp already attached");if(this.#t.isAutoTag)return void this.#i.debug("hp not allowed when autotag");this.#Ee=!0;const t=JSON.parse(atob(e));this.#i.debug("attach hp. hp data:",t);const i={zoneId:t.pop_zone_id.toString(),linkedZoneId:t.source_zone_id.toString(),isHPop:!0};var r;t.attributes&&(t.attributes["element-list"]&&(i.targetElementsCssSelector=t.attributes["element-list"],i.triggerOnTargetElementsClick="allow"===t.attributes["element-action"]),t.attributes["country-list"]&&(i.targetCountries=tt()(r=t.attributes["country-list"]).call(r).split(","),i.triggerOnTargetCountries="allow"===t.attributes["country-action"])),this.#s.runPop(i)}#Ue(e){this.#Pe=e;const t=(new DOMParser).parseFromString(this.#Pe.script,"text/html").querySelector("script"),i=document.createElement("script");t.src?i.setAttribute("src",t.src):i.innerText=t.innerText;const r=()=>{this.#i.debug("CT-CLICK"),fetch(this.#Pe.link,{mode:"no-cors"}),document.removeEventListener("ct-click",r)},n=()=>{this.#i.debug("CT-CLOSE"),document.removeEventListener("ct-click",r),document.removeEventListener("ct-close",n),this.#Pe=null,document.body.removeChild(i)};I(document,"ct-click",r),I(document,"ct-close",n);let s=this.#Pe.impressionLink;window[at]&&(s+=`&utsid=${window[at]}`),s+=`&cbpage=${encodeURIComponent(P())}`,s+=`&cbref=${encodeURIComponent(B())}`,i.onload=async()=>{try{await fetch(s.toString())}catch(e){return this.#i.debug(e),void(this.#t.adblockSettings&&!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.#Pe=null},document.body.appendChild(i)}#Ne(){var e,t;this.#i.debug("drawing.."),n()(e=this.#Re).call(e,(e=>{let{htmlElement:t}=e;t&&t.remove()})),n()(t=this.#Re).call(t,((e,t)=>{const i=document.createElement("in-page-message");i.setAttribute("doskip","1"),i.setAttribute("id",t.toString()),i.setAttribute("data-icon",e.icon),i.setAttribute("data-title",e.title),i.setAttribute("data-description",e.description),i.setAttribute("data-offset-top",this.#t.offsetTop),i.setAttribute("data-render-pos-desktop",this.#t.renderPosDesktop),i.setAttribute("data-render-pos-mobile",this.#t.renderPosMobile),e.impressionLink&&(i.setAttribute("data-imp-link",e.impressionLink),e.impressionLink=null,document.dispatchEvent(new CustomEvent("impression-event"))),i.addEventListener(st,(()=>{var r;if(te||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{}i.remove(),h()(r=this.#Re).call(r,t,1),this.#Ne()})),i.addEventListener(ot,(()=>{var e;i.remove(),h()(e=this.#Re).call(e,t,1),this.#Ne()})),e.htmlElement=i,document.body.appendChild(i)}))}},ut=i(111),ht=i.n(ut),gt=i(8607),ft=i.n(gt),pt=class{#s;#t={};#i;#Be="";#He;#l=null;#je=null;#Me=null;#_e=null;#De;#Ve;#v="youradexchange.com";#We="velocecdn.com";#qe;#o;#A=!1;#x="56.0";constructor(e){this.#i=new y(`banner_${e.zoneId}`),this.#s=window[e.adcashGlobalName],this.#i.debug("init banner with config:",e),this.#t=e,this.#l=this.#t.zoneId,this.#je=this.#t.width,this.#Me=this.#t.height,this.#_e=this.#t.renderIn,this.#o=this.#t.adblockSettings,this.#t.currentScript&&(this.#qe=this.#t.currentScript),this.#De=this.#Ve=document.body.clientWidth||window.innerWidth,e.tagVersionSuffix&&(this.#x+=e.tagVersionSuffix),this.#i.debug("tag version:",this.#x),this.#Ge()}#Ze(){const e=this.#He.impression_url;(new Image).src=e}async#Ge(){this.#i.debug("get initial ad and config"),this.#Be=await R(this.#i);const e=await this.#Qe();let t;this.#i.debug("URL to fetch",e);try{t=await fetch(e)}catch(e){return this.#i.error(e),this.#o&&!this.#A?(this.#i.debug("fetch failed: try alt domain and path"),this.#A=!0,this.#s.enableAdbMode(),void this.#Ge()):this.#s.isAdbMode()?void this.#i.debug("fetch failed: alt domain and path blocked. exit"):void this.#i.debug("fetch failed. exit")}200===t.status||202===t.status?(this.#i.debug("initial fetch received 200 or 202"),this.#He=await t.json(),this.#Ke()):204===t.status&&this.#i.debug("initial fetch received 204. No inventory")}async#Qe(){let e=`${window.location.protocol}//${this.#v}/script/banner.php`;if(this.#o&&this.#s.isAdbMode()){const{adserverDomain:t}=this.#o,i=`/${re("abcdefgh0123456789")}`;e=`${window.location.protocol}//${t}${i}`}return e+=`?r=${this.#l}`,e+=`&cbpage=${encodeURIComponent(P())}`,e+=`&cbref=${encodeURIComponent(B())}`,e+=`&cbdescription=${encodeURIComponent(H("description"))}`,e+=`&cbkeywords=${encodeURIComponent(H("keywords"))}`,e+=`&cbtitle=${encodeURIComponent(N())}`,e+=`&srs=${z()}`,e+=`&ufp=${encodeURIComponent(this.#t.uniqueFingerprint)}`,e+=`&atv=${this.#x}`,this.#t.sub1&&(e+=`&sub1=${encodeURIComponent(this.#t.sub1)}`),this.#o&&this.#s.isAdbMode()?(e+="&sadbl=2",e+="&fmt=bnr",ne(e)):e}#Ke(){if(!this.#He||"undefined"===this.#He)return;if(this.#He.hp&&(this.#Je(this.#He.hp),1===ht()(this.#He).length))return;let e;e=this.#_e?document.querySelector(this.#_e):this.#t.currentElement?this.#t.currentElement:this.#qe.parentElement,this.#Ye(e);const t=this.#Xe();e.appendChild(t)}#Xe(){let e;return this.#He.fallback?(this.#i.debug("Banner type - fallback"),e=this.#et()):1===this.#He.render_image?(this.#i.debug("Banner type - image"),e=this.#tt()):(this.#i.debug("Banner type - html"),e=this.#it()),this.#He.fallback||this.#Ze(),this.#s||this.#rt(),e}#tt(){const e=document.createElement("a");e.href=this.#He.click_url,e.target="_blank",e.rel="noopener, noreferrer",e.style.display="block",e.style.width=`${this.#je?this.#je:this.#He.width}px`,e.style.height=`${this.#Me?this.#Me:this.#He.height}px`,e.style.position="relative",e.style.top=0,e.style.left=0,e.style.right=0,e.style.bottom=0,e.setAttribute("doskip","1"),e.setAttribute(Be,"1");const t=document.createElement("img");if(t.src=this.#He.image_url,t.target="_blank",t.width=this.#je?this.#je:this.#He.width,t.height=this.#Me?this.#Me:this.#He.height,this.#He.width>this.#De&&this.#He.force_resize){const i=(this.#je?this.#je:this.#He.width)/this.#Ve;e.style.width=`${this.#Ve}px`,e.style.height=`${Math.round((this.#Me?this.#Me:this.#He.height)/i)}px`,t.style="max-width: 100%;",t.width=this.#Ve,t.height=Math.round((this.#Me?this.#Me:this.#He.height)/i)}return e.appendChild(t),e}#it(){const e=`banner_${this.#l}`,t=document.createElement("div");t.id=e,t.style.display="block",t.style.width=`${this.#je?this.#je:this.#He.width}px`,t.style.height=`${this.#Me?this.#Me:this.#He.height}px`,t.style.position="relative",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.width=this.#je?this.#je:this.#He.width,t.height=this.#Me?this.#Me:this.#He.height,t.setAttribute("doskip","1"),t.setAttribute(Be,"1"),this.#nt(t,this.#He.html);const i=()=>{this.#i.debug("click recorded:",this.#He.click_url),(new Image).src=this.#He.click_url,n()},r=()=>{this.#i.debug("click on divNode"),i()},n=()=>{t.removeEventListener("click",r),clearInterval(s)};t.addEventListener("click",r);const s=d()((()=>{document.activeElement&&"IFRAME"===document.activeElement.tagName&&((e,t)=>{let i=e.parentElement;for(;i;){if(i.id===t)return i;i=i.parentElement}return null})(document.activeElement,e)&&(this.#i.debug("click on iframe"),i())}),200);return t}#nt(e,t){var i;e.innerHTML=t,n()(i=m()(e.querySelectorAll("script"))).call(i,(e=>{var t;const i=document.createElement("script");n()(t=m()(e.attributes)).call(t,(e=>{i.setAttribute(e.name,e.value)}));const r=document.createTextNode(e.innerHTML);i.appendChild(r),e.parentNode.replaceChild(i,e)}))}#et(){const e=`banner_${this.#l}`,t=document.createElement("iframe");return t.id=e,t.style.border="medium none",t.style.padding="0",t.style.margin="0",t.style.width=`${this.#je?this.#je:this.#He.width}px`,t.style.height=`${this.#Me?this.#Me:this.#He.height}px`,t.width=this.#je?this.#je:this.#He.width,t.height=this.#Me?this.#Me:this.#He.height,t.scrolling="no",t.vspace="0",t.hspace="0",t.allowtransparency="true",t.allowfullscreen="true",t.srcdoc=this.#He.fallback,t}#Je=e=>{const t=JSON.parse(atob(e));if(this.#s){const e={zoneId:t.pop_zone_id.toString(),linkedZoneId:t.source_zone_id.toString()};var i;return t.attributes&&(t.attributes["element-list"]&&(e.targetElementsCssSelector=t.attributes["element-list"],e.triggerOnTargetElementsClick="allow"===t.attributes["element-action"]),t.attributes["country-list"]&&(e.targetCountries=tt()(i=t.attributes["country-list"]).call(i).split(","),e.triggerOnTargetCountries="allow"===t.attributes["country-action"])),void this.#s.runPop(e)}const r=document.createElement("script");if(r.type="text/javascript",r.src=`//${this.#We}/script/suv4.js`,r.setAttribute("zid",t.pop_zone_id),r.setAttribute("lpzi",t.source_zone_id),r.setAttribute("data-adel","lwsu"),r.setAttribute("adlm","ipvipplm"),t.attributes)for(const e in t.attributes)r.setAttribute(e,t.attributes[e]);document.body.appendChild(r)};#Ye(e){if(this.#i.debug("Initial viewport:",this.#De),this.#He.width>this.#De&&this.#He.force_resize){var t=window.getComputedStyle(e),i=ft()(t.paddingLeft),r=ft()(t.marginLeft);this.#Ve=e.clientWidth-i-r,this.#i.debug("Parent element width:",this.#Ve)}}#rt(){const e=document.createElement("a");e.style.display="none",e.style.visibility="hidden",e.style.position="relative",e.style.left="-1000px",e.style.top="-1000px",e.href=this.#He.bot_link,document.body.appendChild(e)}};const vt="x4G9Tq2Kw6R7v1Dy3P0B5N8Lc9M2zF",bt="adblock-settings",mt=(()=>{let e=document.currentScript;return e||(e=document.getElementById("aclib")),e||(e=document.getElementById("adcash-lib")),e})();let yt=null;var wt=class{#We;#st={pop:!1,autoTag:!1,inPagePush:!1,interstitial:!1};#ot;#b;#at=new(t());#i;#ct;#lt={mousedown:[],click:[],touchstart:[]};#dt={mousedown:[],scroll:[],click:[],touchstart:[]};#v="youradexchange.com";#o=null;#ut;#ht;#gt=!1;isShowingPop=!1;#T;constructor(){if(yt)return yt;yt=this,this.#i=new y("aclib_adbl"),window.addEventListener("mousedown",(e=>{var t;this.#i.debug("win mousedown with capture: in"),n()(t=this.#lt.mousedown).call(t,(t=>{this.#i.debug("win mousedown with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("mousedown",(e=>{var t;this.#i.debug("win mousedown: in"),n()(t=this.#dt.mousedown).call(t,(t=>{this.#i.debug("win mousedown: calling observer"),t.callback(e)}))}),!1),window.addEventListener("click",(e=>{var t;this.#i.debug("win click with capture: in"),n()(t=this.#lt.click).call(t,(t=>{this.#i.debug("win click with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("click",(e=>{var t;this.#i.debug("win click: in"),n()(t=this.#dt.click).call(t,(t=>{this.#i.debug("win click: calling observer"),t.callback(e)}))}),!1),document.addEventListener("mousedown",(e=>{var t;this.#i.debug("doc mousedown: in"),n()(t=this.#dt.mousedown).call(t,(t=>{this.#i.debug("doc mousedown: calling observer"),t.callback(e)}))})),document.addEventListener("mousedown",(e=>{var t;this.#i.debug("doc mousedown with capture: in"),n()(t=this.#lt.mousedown).call(t,(t=>{this.#i.debug("doc mousedown with capture: calling observer"),t.callback(e)}))}),!0),window.addEventListener("scroll",(e=>{var t;n()(t=this.#dt.scroll).call(t,(t=>{t.callback(e)}))})),document.addEventListener("click",(e=>{var t;this.#i.debug("doc click: in"),n()(t=this.#dt.click).call(t,(t=>{this.#i.debug("doc click: calling observer"),t.callback(e)}))})),document.addEventListener("click",(e=>{var t;this.#i.debug("doc click with capture: in"),n()(t=this.#lt.click).call(t,(t=>{this.#i.debug("doc click with capture: calling observer"),t.callback(e)}))}),!0),this.getClientHints(),this.#ht=z(),this.#ut=(()=>{const e=Math.floor(11*Math.random())+5;let t="";for(let i=0;i{window[t]&&window[t]===e||(window[t]=e)}),500)}#mt(){this.#ct&&(clearInterval(this.#ct),this.#ct=null)}subscribe(e,t,i){if(!this.#lt[e]||!this.#dt[e])throw new Error(`${e} is not observable!`);i?this.#lt[e].push(t):this.#dt[e].push(t)}unsubscribe(e,t,i){if(!this.#lt[e]||!this.#dt[e])throw new Error(`${e} is not observable!`);if(i)for(let i=0;i{const t=document.createElement("link");t.rel="dns-prefetch",t.href=`//${e}`,document.head.appendChild(t)}))}f()(v()(e=this.#ft).call(e,this),100)}getZoneIds(){return m()(this.#at)}runPop(e){this.#bt();const{zoneId:t,refreshRate:i,delay:r,targetElementsCssSelector:n,triggerOnTargetElementsClick:s,targetCountries:o,triggerOnTargetCountries:a,sub1:c,sub2:l,publisherUrl:d,storeUrl:u,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:T}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!fe(t))throw new Error("zoneId is not a string!");if(void 0!==i&&(!ge(i)||i<0))throw new Error("refreshRate is not an integer or is less than zero");if(void 0!==r&&(!ge(r)||r<0))throw new Error("delay is not an integer or is less than zero");if(void 0!==n){if(!fe(n))throw new Error("targetElementsCssSelector is not a string");if(!(e=>{try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0})(n))throw new Error("targetElementsCssSelector is not a valid css selector");if(!he(s))throw new Error("triggerOnTargetElementsClick is not a boolean")}if(void 0!==o){if(!(e=>{if(!le()(e))return!1;if(0===e.length)return!1;for(let t=0;t0&&f<10&&(f<5?f*=60:f=30),new dt({zoneId:t,refreshRate:f??60,delay:i??0,maxAds:r??1,renderPosDesktop:n??"top",renderPosMobile:s??"top",offsetTop:o??0,sub1:a,isAutoTag:c,collectiveZoneId:l,aggressivity:d,recordPageView:u,abTest:h,tagVersionSuffix:g,adserverDomain:this.#v,adblockSettings:this.#o,adcashGlobalName:this.#ut,isLoadedAsPartOfLibrary:!0,uniqueFingerprint:this.#T})}runBanner(e){this.#bt();const{zoneId:t,width:i,height:r,renderIn:n,sub1:s,currentScript:o}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!fe(t))throw new Error("zoneId is not a string!");if(void 0!==i&&!ge(i))throw new Error("Banner width is not an integer");if(void 0!==r&&!ge(r))throw new Error("Banner height is not an integer");if(this.#at.has(t))return void this.#i.error(`zone ${t} already loaded`);let a;this.#at.add(t),this.#i.debug("loading banner on page",t),n||(document.currentScript&&document.currentScript.parentElement&&(a=document.currentScript.parentElement),o&&(a=o.parentElement)),new pt({zoneId:t,width:i,height:r,renderIn:n,currentElement:a,sub1:s,adcashGlobalName:this.#ut,uniqueFingerprint:this.#T,adblockSettings:this.#o})}runInterstitial(e){if(this.#st.interstitial)return void this.#i.error("interstitial zone already loaded on page");this.#st.interstitial=!0,this.#bt();const{zoneId:t,sub1:i,isAutoTag:r,collectiveZoneId:n,aggressivity:s,recordPageView:o,abTest:a,tagVersionSuffix:c}=e;if(!t)throw new Error("mandatory zoneId is not provided!");if(!fe(t))throw new Error("zoneId is not a string!");this.#i.debug("loading interstitial on page");const l={zoneId:t,sub1:i,isAutoTag:r,collectiveZoneId:n,aggressivity:s,recordPageView:o,abTest:a,tagVersionSuffix:c,adcashGlobalName:this.#ut,adserverDomain:this.#v,adblockSettings:this.#o,isLoadedAsPartOfLibrary:!0,uniqueFingerprint:this.#T};this.#at.add(t),new rt(l)}async#yt(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.#i.debug("fetch collective zone config");let i=`${window.location.protocol}//${this.#v}/ad/czcf.php`;if(this.isAdbMode()){const e=`/${re("abcdefgh0123456789")}`;i=`${window.location.protocol}//${this.#o.adserverDomain}${e}`}i+=`?cz=${e}`;const r=await this.getClientHints();let n;r&&(i+=r),this.isAdbMode()&&(i+="&sadbl=2",i+="&fmt=atg",i=ne(i)),this.#i.debug("collective zone config url: ",i);try{n=await fetch(i)}catch(i){return this.#i.error(i),this.#o&&t?(this.#i.debug("collective zone config fetch failed: try alt domain and path"),this.enableAdbMode(),this.#yt(e,!1)):null}return 200!==n.status?null:n.json()}async runAutoTag(e){if(this.#st.autoTag)return void this.#i.error("autotag zone already loaded on page");this.#st.autoTag=!0,this.#bt();const t=e.zoneId;if(!t)throw new Error("mandatory zoneId is not provided!");if(!fe(t))throw new Error("zoneId is not a string!");const i=await this.#yt(t);if(i)if(this.#i.debug("collective zone config:",i),i.rotationList)this.#i.debug("running in ROTATION MODE"),this.#at.add(t),new Ge({adcashGlobalName:this.#ut,collectiveZoneConfig:i,adserverDomain:this.#v,adblockSettings:this.#o,clientHintsQueryStr:this.#b,tagVersionSuffix:e.tagVersionSuffix,isLoadedAsPartOfLibrary:!0,uniqueFingerprint:this.#T});else{this.#i.debug("running in NORMAL MODE");const r=i.indexedFormats;let n=!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:i.aggressivity,abTest:i.ab_test,recordPageView:n,tagVersionSuffix:e.tagVersionSuffix});break;case"interstitial":this.runInterstitial({zoneId:r[s].zoneId.toString(),isAutoTag:!0,collectiveZoneId:t,aggressivity:i.aggressivity,abTest:i.ab_test,recordPageView:n,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:i.aggressivity,abTest:i.ab_test,recordPageView:n,tagVersionSuffix:e.tagVersionSuffix});break;default:this.#i.error(`ad format type not recognised from collective zone config. adformat.type: ${s}; czid: ${t}`)}n=!1}}else this.#i.error(`failed to fetch collective zone config! czid: ${t}`)}};const xt=new y("aclib_adblock_index");window.Adcash?xt.debug("lib already on page. exit"):(xt.debug("load lib on page"),window.Adcash=wt,window.AtcshAltNm=wt,window.aclib=new wt)}()}();(function(){if(window.aclib){aclib.runPop({zoneId:"6510742"});}else{console.log("err loading adbtg");}})();