prebid.blogcluster.nl
Open in
urlscan Pro
2606:4700:3031::ac43:d283
Public Scan
URL:
https://prebid.blogcluster.nl/consiglietrucchi/prebid.js
Submission: On August 21 via api from IT — Scanned from NL
Submission: On August 21 via api from IT — Scanned from NL
Form analysis
0 forms found in the DOMText Content
if(window.asc&&window.asc.libLoaded)try{window.asc.getConfig("debug")&&console.warn("Attempted to load a copy of Prebid.js that clashes with the existing 'asc' instance. Load aborted.")}catch(e){}else(function(){(self.ascChunk=self.ascChunk||[]).push([[6399],{8286:(e,t,a)=>{var i=a(8640),n=a(8928),r=a(2021),d=a(2200),s=a(5164),o=a(5212);const c=(0,i.R)(),l=a(7746),p=a(7548),g=a(9992),u=(0,s.eA)("wrapperCoreStorage");if(!0===c.isLoaded)throw new Error("asc Wrapper already Loaded!");c.wrapperVersion="6.2.0",navigator.userAgent&&navigator.userAgent.indexOf("Lighthouse")>=0&&l.logInfo("Lighthouse detected, disable wrapper"),l.logInfo("asc Wrapper "+c.wrapperVersion+" Loaded");var m=Date.now();let f=!1;const b=a(4740);l.logMessage("__ Config : Site ->",b);const h=a(3704);l.logMessage("__ Config : Adunits ->",h);const _=a(1346);l.logMessage("__ Config : Devices for SizeMapping ->",_),b.forceReWrittingPBJS&&(window.pbjs=c);var y=!1,v=!1,I=!1,w=!1,T=!1,C=!1;const S="_asc_dBid";var M=window.googletag||{};M.cmd=M.cmd||[],window.googletag=M;var A=b.wrapper.timeout,x=b.wrapper.timeoutFallback,E=b.wrapper.bidRequestWaitTime;setTimeout((function(){!0}),A),b.targetingPrefix||(b.targetingPrefix="hb");var z=function(){let e="top";if(window.top!==window){e="friendly";try{window.top.location.toString()}catch(t){e="cross"}"cross"==e&&window.$sf&&window.$sf.ext&&(e="safe")}return l.logMessage("__ Detection : Iframe enviroment ->",e),e}();var D=function(){let e={downlink:0,downlinkRound:0,rtt:0,rttRound:0,type:"na",effectiveType:"na",saveData:!1};return navigator&&navigator.connection?(navigator.connection.downlink&&(e.downlink=navigator.connection.downlink,navigator.connection.downlink<1?e.downlinkRound=.1:navigator.connection.downlink<10?e.downlinkRound=1:navigator.connection.downlink<100?e.downlinkRound=10:navigator.connection.downlink<1e3?e.downlinkRound=100:navigator.connection.downlink>=1e3&&(e.downlinkRound=1e3)),navigator.connection.rtt&&(e.rtt=navigator.connection.rtt,navigator.connection.rtt<=10?e.rttRound=10:navigator.connection.rtt<=100?e.rttRound=100:navigator.connection.rtt<=200?e.rttRound=200:navigator.connection.rtt<=300?e.rttRound=300:navigator.connection.rtt<=400?e.rttRound=400:navigator.connection.rtt<=500?e.rttRound=500:navigator.connection.rtt<=600?e.rttRound=600:navigator.connection.rtt<=700?e.rttRound=700:navigator.connection.rtt<=800?e.rttRound=800:navigator.connection.rtt<=900?e.rttRound=900:navigator.connection.rtt>=1e3&&(e.rttRound=1e3)),navigator.connection.type&&(e.type=navigator.connection.type),navigator.connection.effectiveType&&(e.effectiveType=navigator.connection.effectiveType),navigator.connection.saveData&&(e.saveData=navigator.connection.saveData),l.logMessage("__ Detection : Connection ->",e),e):e}();const k="https://cat"+(Math.floor(3*Math.random())+1)+".hbwrapper.com/";function B(e,t,a,i){if(!b.analytics)return;if(!b.analytics.track)return;if(b.analytics.track.indexOf(e)<0)return;t&&void 0!==t||(t={}),a&&"function"==typeof a||(a=function(){}),t.id=b.id,t.code=b.code,t.site=b.url,z||(z="top"),t.env=z,t.gv="asc",t.url=window.location.href.slice(0,1024),"friendly"==z&&(t.urlTop=window.top.location.href.slice(0,1024)),"cross"==z&&document.referrer&&""!=document.referrer&&(t.urlTop=document.referrer.slice(0,1024)),t.ssrc=document.currentScript&&document.currentScript.src?document.currentScript.src:"";let r={success:a,error:function(e,t){l.logError("__ AnalyticsTrack : Ajax error:",e,t)}},d=JSON.stringify({e,d:t});if(document.addEventListener("securitypolicyviolation",(a=>{if(l.logError("__ AnalyticsTrack : Content Security Policy error:",a),a.blockedURI==k){t.env="csp",d=JSON.stringify({e,d:t});let a=document.createElement("iframe");a.id="iframe_wrapper_analyticstrack",a.width=1,a.height=1,a.style.width=1,a.style.height=1,a.hspace="0",a.vspace="0",a.marginWidth="0",a.marginHeight="0",a.scrolling="no",a.frameBorder="0",a.allowtransparency="true",a.allow="conversion-measurement",a.setAttribute("src","https://tpc.googlesyndication.com/pimgad/9450690109161060829?data="+d+"&endpoint="+k);var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(a,i)}})),!0===i)return l.logMessage("__ AnalyticsTrack : Return payload true, not sending ajax request.",d),a(),d;if(d.length>=1e5){if(Math.random()>.1)return;d=JSON.stringify({e:e+"_bigsize",d:t})}(0,n.hj)(k,r,d,{contentType:"text/plain",withCredentials:!1})}B("pageview",{},(()=>{l.logMessage("__ AnalyticsTrack : Sent pageview!")}));var L=!1;function R(e){void 0===e&&(e="{}");let t={};e=e.replace(/'/g,'"');try{t=JSON.parse(e),"string"==typeof t&&(t=JSON.parse(t))}catch(t){l.logError("Cannot parse JSON string:",e)}return t}function P(e){if(!b.dfpChildAccount)return e;if(""==b.dfpChildAccount)return e;let t=e.split("/");return t[1]?t[1].indexOf(",")>=0||t[1].toString()!==b.dfpAccount.toString()?e:(t[1]=b.dfpAccount+","+b.dfpChildAccount,t.join("/")):e}function F(){try{(function(){let e=window.localStorage.getItem(S);return e?(e=JSON.parse(e),e=e.filter((e=>!(e.time<Date.now()-864e5))),window.localStorage.setItem(S,JSON.stringify(e)),e.map((e=>e.name))):[]})().forEach((e=>{b.wrapper.disableClientSideAdapters.indexOf(e)<0&&(b.wrapper.disableClientSideAdapters.push(e),l.logWarn("__ Ads : Bidder is disabled from ClientSide due to finding it in localStorage for timeout:",e))}))}catch(e){}}["chessgames"].indexOf(b.code)>=0&&(Math.random()<.5&&(L=!0),M.cmd.push((function(){M.pubads().setTargeting("arTest",L.toString())})),b.refresh.accelerate=L?[{estCPM:1,seconds:3},{estCPM:1.5,seconds:5},{estCPM:2,seconds:10},{estCPM:2.5,seconds:15}]:[]),"true"==ne("hadrontest")&&(b.prebid.userSync.userIds.push({name:"hadronId",storage:{type:"html5",name:"hadronId",expires:30}}),b.prebid.realTimeData={auctionDelay:100,dataProviders:[{name:"hadron",waitForIt:!0,params:{segmentCache:!1,requestParams:{publisherId:326}}}]}),"true"==ne("id5analytics")&&(b.analytics.prebid?(Array.isArray(b.analytics.prebid)||(b.analytics.prebid=[b.analytics.prebid]),b.analytics.prebid.push({provider:"id5Analytics",options:{partnerId:579}})):b.analytics.prebid=[{provider:"id5Analytics",options:{partnerId:579}}]),"true"==ne("browsi")&&(b.prebid.realTimeData={dataProviders:[{name:"browsi",params:{url:"yield-manager.browsiprod.com",siteKey:"arkids",pubKey:"dantoo",keyName:"browsiViewability"}}]}),F();var U,O=[];function N(){b.wrapper.prebidServer&&(b.wrapper.prebidServer.accountId&&(g.s2sConfig.accountId=b.wrapper.prebidServer.accountId,l.logMessage("__ Config : Changed s2sConfig.accountId ->",b.wrapper.prebidServer.accountId)),void 0!==b.wrapper.prebidServer.enabled&&(g.s2sConfig.enabled=b.wrapper.prebidServer.enabled,l.logMessage("__ Config : Changed s2sConfig.enabled ->",b.wrapper.prebidServer.enabled)),b.wrapper.prebidServer.bidders&&(g.s2sConfig.bidders=b.wrapper.prebidServer.bidders,l.logMessage("__ Config : Changed s2sConfig.bidders ->",b.wrapper.prebidServer.bidders)),b.wrapper.prebidServer.maxTimeout&&(g.s2sConfig.maxTimeout=b.wrapper.prebidServer.maxTimeout,l.logMessage("__ Config : Changed s2sConfig.maxTimeout ->",b.wrapper.prebidServer.maxTimeout)),b.wrapper.prebidServer.endpoint&&(g.s2sConfig.endpoint=b.wrapper.prebidServer.endpoint,l.logMessage("__ Config : Changed s2sConfig.endpoint ->",b.wrapper.prebidServer.endpoint)),b.wrapper.prebidServer.syncEndpoint&&(g.s2sConfig.syncEndpoint=b.wrapper.prebidServer.syncEndpoint,l.logMessage("__ Config : Changed s2sConfig.syncEndpoint ->",b.wrapper.prebidServer.syncEndpoint)))}h.forEach((e=>{void 0===e.adunit&&(e.adunit="/"+b.dfpAccount+"/"),void 0===e.device&&(e.device=[]),void 0===e.mediaTypes&&(e.mediaTypes={banner:{sizes:[1,1]}}),void 0===e.additionalNonHBSizes&&(e.additionalNonHBSizes=[]),void 0===e.targeting&&(e.targeting={}),void 0===e.lazyLoaded&&(e.lazyLoaded="false"),void 0===e.richMediaFormat&&(e.richMediaFormat={}),void 0===e.refreshTimed&&(e.refreshTimed="0"),void 0===e.refreshViewable&&(e.refreshViewable="0"),void 0===e.bids&&(e.bids=[]),e.bids.forEach((e=>{if(b.wrapper.disableBidders&&b.wrapper.disableBidders.indexOf(e.bidder)>=0)return!1;O.indexOf(e.bidder)<0&&O.push(e.bidder)}))})),l.logMessage("__ Bidding : Bidders to use ->",O),l.logMessage("__ Bidding : Bidders disabled ->",b.wrapper.disableBidders),N(),U=[],g.s2sConfig.bidders.forEach((e=>{O.indexOf(e)>=0&&U.push(e)})),g.s2sConfig.bidders=U,"hb"!=b.targetingPrefix&&(b.wrapper.prebidServer&&b.wrapper.prebidServer.enabled&&(b.wrapper.prebidServer.enabled=!1,N()),b.dfp.forceSafeFramesUnderFloor=!1,b.dfp.forceSafeFramesForAdunits=!1,b.dfp.forceSafeFrames=!1,l.logMessage("__ Targeting Prefix : Disable Prebid Server and Safe Frames since targeting prefix used is:",b.targetingPrefix)),b.dfp.forceSafeFrames&&b.amazon.enabled&&(b.amazon.enabled=!1,l.logMessage("__ A9/Amazon : Safe frames enabled, disabling Amazon.")),r.on(d.FP._UPDATE_USER_INFO,(function(e){if(!b.wrapper.geoFilter)return;if(Object.keys(b.wrapper.geoFilter).length<=0)return;if(!e.isSet)return;if(!e.cc)return;Object.keys(b.wrapper.geoFilter).forEach((t=>{l.logMessage("__ Geo Filter Bidder : ",t,b.wrapper.geoFilter[t]),b.wrapper.geoFilter[t].whitelist&&b.wrapper.geoFilter[t].whitelist.length>0&&b.wrapper.geoFilter[t].whitelist.indexOf(e.cc.toUpperCase())<0&&(b.wrapper.disableBidders.push(t),l.logMessage("__ Geo Filter Bidder : Disabling bidder "+t+" country "+e.cc.toUpperCase()+" is not in the whitelist",b.wrapper.geoFilter[t].whitelist)),b.wrapper.geoFilter[t].blacklist&&b.wrapper.geoFilter[t].blacklist.length>0&&b.wrapper.geoFilter[t].blacklist.indexOf(e.cc.toUpperCase())>=0&&(b.wrapper.disableBidders.push(t),l.logMessage("__ Geo Filter Bidder : Disabling bidder "+t+" country "+e.cc.toUpperCase()+" is in the blacklist",b.wrapper.geoFilter[t].blacklist))}))}));var H={isSet:!1,ip:!1,ua:!1,cc:!1};function W(){return H}if(function(){let e="asc_userInfo",t=window.localStorage.getItem(e);if(null!=t){let e=R(t);l.logMessage("__ UserInfo : Setting User Info from storage:",e),e.ip&&(H.ip=e.ip),e.ua&&(H.ua=e.ua),e.cc&&(H.cc=e.cc),H.isSet=!0,r.j8(d.FP._UPDATE_USER_INFO,H)}else l.logMessage("__ UserInfo : Requesting User Info"),(0,n.hj)("https://cloudflare.com/cdn-cgi/trace",(function(t){let a=t.split(/\r?\n/);l.logMessage("__ UserInfo : Response",a),a.forEach((e=>{let t=e.split("=");"ip"==t[0]&&(H.ip=t[1]),"uag"==t[0]&&(H.ua=t[1]),"loc"==t[0]&&(H.cc=t[1])})),(H.ip||H.ua||H.cc)&&(H.isSet=!0),window.localStorage.setItem(e,JSON.stringify(H)),l.logMessage("__ UserInfo : Setting User Info from request:",H),r.j8(d.FP._UPDATE_USER_INFO,H)}))}(),c.getUserInfo=W,b.dfp.forceSafeFramesUnderFloor||b.dfp.forceSafeFramesForAdunits||b.dfp.forceSafeFrames){let e=["richaudience","nextMillennium","kueezrtb","kargo","invibes","hypelab"];e.forEach((e=>{b.wrapper.disableBidders.push(e)})),l.logMessage("__ Bidding : Disabling bidders since Safe Frames is enabled ->",e)}function j(e){let t=document.createElement("link");t.rel="preload",t.as="script",t.href=e,document.head.appendChild(t)}function q(e){let t=document.createElement("link");t.rel="preconnect dns-prefetch",t.href=e,document.head.appendChild(t)}var V={aol:["https://adserver-us.adtech.advertising.com"],onemobile:["https://c2shb.ssp.yahoo.com"],yahoossp:["https://c2shb.pubgw.yahoo.com"],sovrn:["https://ap.lijit.com"],appnexus:["https://ib.adnxs.com"],districtmDMX:["https://dmx.districtm.io"],rhythmone:["https://tag.1rx.io"],yieldmo:["https://ads.yieldmo.com"],teads:["https://a.teads.tv"],gamoshi:["https://rtb.gamoshi.io"],pubmatic:["https://hbopenbid.pubmatic.com"],rubicon:["https://fastlane.rubiconproject.com"],sharethrough:["https://btlr.sharethrough.com"],triplelift:["https://tlx.3lift.com"],indexExchange:["https://htlb.casalemedia.com"],ix:["https://htlb.casalemedia.com"],gumgum:["https://g2.gumgum.com"],kargo:["https://krk.kargo.com"],"33across":["https://ssc.33across.com"],conversant:["https://web.hb.ad.cpe.dotomi.com"],nobid:["https://ads.servenobid.com"],viewdeosDX:["https://ghb.sync.viewdeos.com"],lockerdome:["https://lockerdome.com/"],grid:["https://grid.bidswitch.net"],unruly:["https://targeting.unrulymedia.com"],justpremium:["https://pre.ads.justpremium.com"],consumable:["https://e.serverbid.com"],smartadserver:["https://prg.smartadserver.com"],criteo:["https://bidder.criteo.com"],underdogmedia:["https://udmserve.net"],improvedigital:["https://ice.360yield.com"],sonobi:["https://apex.go.sonobi.com"],amx:["https://prebid.a-mo.net"],medianet:["https://prebid.media.net"],richaudience:["https://shb.richaudience.com"],eplanning:["https://ads.us.e-planning.net"],smaato:["https://prebid.ad.smaato.net"],onetag:["https://onetag-sys.com"],trion:["https://in-appadvertising.com"],connectad:["https://i.connectad.io"],emx_digital:["https://hb.emxdgt.com"],smilewanted:["https://prebid.smilewanted.com"],operaads:["https://s.adx.opera.com"],adyoulike:["https://hb-api.omnitagjs.com"],seedtag:["https://s.seedtag.com"],marsmedia:["https://hb.go2speed.media"],kurshmedia:["https://ads4.krushmedia.com"],adagio:["https://mp.4dex.io"],vibrantmedia:["https://prebid.intellitxt.com"],e_volution:["https://service.e-volution.ai"],luponmedia:["https://rtb.adxpremium.services"],insticator:["https://ex.ingage.tech"]};j("https://securepubads.g.doubleclick.net/tag/js/gpt.js"),b.amazon.enabled&&j("https://c.amazon-adsystem.com/aax2/apstag.js"),O.forEach((e=>{V[e]&&V[e].forEach((e=>{q(e)}))})),q("https://cat1.hbwrapper.com"),q("https://cat2.hbwrapper.com"),c.cmd.push((function(){!0})),function(){if(!v){var e=document.createElement("script");e.async=!0,e.type="text/javascript",e.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),v=!0}}(),b.analytics.gtm&&b.analytics.gtm.containerId&&(b.analytics.gtm.dataLayer||(b.analytics.gtm.dataLayer="dataLayer"),function(e,t,a,i,n){e[i]=e[i]||[],e[i].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var r=t.getElementsByTagName(a)[0],d=t.createElement(a),s="dataLayer"!=i?"&l="+i:"";d.async=!0,d.src="https://www.googletagmanager.com/gtm.js?id="+n+s,d.onload=function(){l.logMessage("__ GTM : Loaded with settings:",b.analytics.gtm)},r.parentNode.insertBefore(d,r)}(window,document,"script",b.analytics.gtm.dataLayer,b.analytics.gtm.containerId));let G=!1;function J(e){if(b.analytics.growthcode)if(G)l.logMessage("__ GrowthCode : Already loaded");else{G=!0,l.logMessage("__ GrowthCode : Started",b.analytics.growthcode,e);var t=window._gcio=window._gcio||[];t.push(["pid",b.analytics.growthcode]),t.push(["uid",e]);var a="https://p.gcprivacy.com/t/gcid_s.min.js";"true"==ne("gcTestScript")&&(a="https://p.gcprivacy.com/t/gcid_s1.min.js");var i=document.createElement("script");i.async=!0,i.type="text/javascript",i.src=a,i.onload=function(){l.logMessage("__ GrowthCode : Library loaded")};var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n)}}if(null!==ne("growthcode")&&(b.analytics.growthcode=ne("growthcode")),M.cmd.push((async()=>{const e=await(async()=>{try{return navigator&&navigator.cookieDeprecationLabel&&navigator.cookieDeprecationLabel.getValue&&await navigator.cookieDeprecationLabel.getValue()||void 0}catch(e){}})();l.logMessage("__ GAM : Chrome Deprecation Level :",e),M.pubads().setTargeting("chromeDL",e??"no_label")})),M.cmd.push((function(){if(I)return;M.pubads().enableSingleRequest(),b.dfp.collapseEmptyDivs&&M.pubads().collapseEmptyDivs(),void 0!==b.dfp.adExpansion&&(l.logMessage("__ GAM : Setting GAM`s Ad Expansions to :",b.dfp.adExpansion),b.dfp.adExpansion?M.setConfig({adExpansion:{enabled:!0}}):M.setConfig({adExpansion:{enabled:!1}})),M.enableServices(),M.pubads().setTargeting("wvr","3"),M.pubads().setTargeting("wie",z),b.targeting&&b.targeting.speed&&(M.pubads().setTargeting("cndl",D.downlinkRound.toString()),M.pubads().setTargeting("cnrtt",D.rttRound.toString()),M.pubads().setTargeting("cntp",D.type.toString()),M.pubads().setTargeting("cnet",D.effectiveType.toString()),M.pubads().setTargeting("cnsd",D.saveData.toString())),"friendly"==z?window.top&&window.top.location&&window.top.location.href&&M.pubads().set("page_url",window.top.location.href):"cross"!=z&&"safe"!=z||M.pubads().set("page_url",b.url),(window.location.href.indexOf("localhost")>=0||window.location.href.indexOf("s2stest")>=0||window.location.href.indexOf("testbids")>=0)&&M.pubads().set("page_url",b.url);let e="nf";b.forceReWrittingPBJS&&(e="fr",window._pbjsGlobals&&window._pbjsGlobals.indexOf("pbjs")>=0&&(e="cr")),M.pubads().setTargeting("wrc",e);let t=Date.now()-m;Ue("timeline","gpt_load",Date.now()),l.logMessage("__ Timing : googletag loaded in ->",t),t>1e4&&(t=1e4);let a=(100*Math.round(t/100)).toString();if(b.targeting&&b.targeting.speed&&M.pubads().setTargeting("gpt_l",a),performance&&performance.timing&&performance.timing.navigationStart){Ue("timeline","navigation_start",performance.timing.navigationStart);let e=m-performance.timing.navigationStart;l.logMessage("__ Timing : wrapper loaded in ->",e),e>1e4&&(e=1e4);let t=(100*Math.round(e/100)).toString();b.targeting&&b.targeting.speed&&M.pubads().setTargeting("wrap_l",t)}if(b.targeting&&b.targeting.gads){let e=!1;null!==u.getCookie("__gads")&&(e=!0),M.pubads().setTargeting("gads",e.toString())}try{let e="unknown",t=window.sessionStorage.getItem("asc_ccp");t&&(e=t),M.pubads().setTargeting("ccp",e.toString())}catch(e){l.logWarn("__ ConfirmedClickPenalty : Cannot access session storage")}I=!0})),!w&&b.amazon.enabled&&(!function(e,t,a,i,n,r,d){function s(a,i){t[e]._Q.push([a,i])}t[e]||(t[e]={init:function(){s("i",arguments)},fetchBids:function(){s("f",arguments)},setDisplayBids:function(){},_Q:[]},(r=a.createElement(i)).async=!0,r.src="//c.amazon-adsystem.com/aax2/apstag.js",(d=a.getElementsByTagName(i)[0]).parentNode.insertBefore(r,d))}("apstag",window,document,"script"),w=!0),!T&&b.amazon.enabled){let e=b.amazon;b.prebid.schain&&b.prebid.schain.config&&(e.schain=b.prebid.schain.config),l.logMessage("__ A9/Amazon : Init Start",e),apstag.init(e,(()=>{l.logMessage("__ A9/Amazon : Init Finish",e)})),T=!0}if(c.cmd.push((function(){if(C)return;if(g&&g.userSync&&g.userSync.userIds&&g.userSync.userIds.length>0&&b.prebid&&b.prebid.userSync&&b.prebid.userSync.userIds&&b.prebid.userSync.userIds.length>0){l.logMessage("__ UserID : Merging global and site configs");let e=[];b.prebid.userSync.userIds.forEach((t=>{e.push(t.name)})),g.userSync.userIds.forEach((t=>{e.indexOf(t.name)<0&&(b.prebid.userSync.userIds.push(t),l.logMessage("__ UserId : Adding to userId -> "+t.name))})),delete g.userSync.userIds}if(c.setConfig(g),c.setConfig(b.prebid),b.prebidBidderSpecific){(Array.isArray(b.prebidBidderSpecific)?b.prebidBidderSpecific:[b.prebidBidderSpecific]).forEach((e=>{c.setBidderConfig(e)}))}O.indexOf("onefiftytwomedia")>=0&&c.aliasBidder("adtelligent","onefiftytwomedia"),O.indexOf("indexExchange")>=0&&c.aliasBidder("ix","indexExchange"),O.indexOf("bpa33x")>=0&&c.aliasBidder("appnexus","bpa33x"),O.indexOf("emxdigital")>=0&&c.aliasBidder("appnexus","emxdigital"),O.indexOf("mediafuseA")>=0&&c.aliasBidder("appnexus","mediafuseA"),O.indexOf("mediafuseY")>=0&&c.aliasBidder("yahoossp","mediafuseY"),O.indexOf("projectagora")>=0&&c.aliasBidder("appnexus","projectagora",{gvlid:1032});let e={standard:{}};if(O.forEach((t=>{e[t]={bidCpmAdjustment:function(e){return e*=b.bidAdjustments.pubshare,b.bidAdjustments.networks[t]&&(e*=b.bidAdjustments.networks[t]),e},storageAllowed:!0}})),e.standard.allowAlternateBidderCodes=!1,c.bidderSettings=e,b.analytics.prebid){(Array.isArray(b.analytics.prebid)?b.analytics.prebid:[b.analytics.prebid]).forEach((e=>{c.enableAnalytics(e)}))}C=!0})),b.targeting&&b.targeting.utmKeyValues){l.logMessage("__ UTM Targeting : Enabled");let e={prefix:"_asc_target_",paramsListeners:["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],maxLength:1028,init:function(){this.paramsListeners.forEach((e=>{let t=ne(e);null!==t&&(l.logMessage("__ UTM Targeting : Parameter "+e+" found in URL, setting it up in storage:",t),t.length>this.maxLength&&(t=t.substring(0,this.maxLength),l.logWarn("__ UTM Targeting : Parameter "+e+" value lenght bigger than "+this.maxLength+", stripping down to:",t)),localStorage.setItem(this.prefix+e,t))}))},read:function(e){let t=localStorage.getItem(this.prefix+e);return null===t&&(t=""),t.toString()},setTargeting:function(){this.paramsListeners.forEach((e=>{let t=this.read(e);M.cmd.push((function(){M.pubads().setTargeting(e,""),t&&M.pubads().setTargeting(e,t)}))}))}};e.init(),c.cmd.push((function(){c.onEvent("auctionEnd",(function(){e.setTargeting()}))}))}let K=(window.navigator.userLanguage||window.navigator.language||"unknown").toString().toUpperCase();l.logMessage("__ Detection : Browser Language ->",K),b.targeting&&b.targeting.browserLangCode&&M.cmd.push((function(){M.pubads().setTargeting("blc",K.toString())}));p.incrementSesDepth(),M.cmd.push((function(){M.pubads().setTargeting("sesdepth",p.getSesDepth().toString())}));var Y="";try{Y=window.top.document.referrer}catch(e){Y=document.referrer}var Z="";function $(){let e=0,t=Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth),a=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),i=t*a,n=0;l.logMessage("__ Page Ad Denstity : totalWidth: ",t),l.logMessage("__ Page Ad Denstity : totalWidth: ",a),l.logMessage("__ Page Ad Denstity : Total Area: ",i);let r=document.querySelectorAll('[data-status="rendered"]');return r=[].slice.call(r),l.logMessage("__ Page Ad Denstity : Ad elements found: ",r.length),r.forEach((e=>{let t=e.offsetWidth*e.offsetHeight;if(e.offsetWidth<=1||e.offsetHeight<=0){if(!e.dataset)return;if(!e.dataset.aaSizes)return;let a=ae(R(e.dataset.aaSizes));t=function(e){let t=0;return e.forEach((function(e){e[0]&&e[0]>t&&(t=e[0])})),t}(a)*te(a)}l.logMessage("__ Page Ad Denstity : Incrementing ad area",n,"+"+t,e.id,e.dataset.aaAdunit),n+=t})),l.logMessage("__ Page Ad Denstity : Total Ads Area",n),e=Math.floor(n/i*100),e>=100&&(e=100),l.logMessage("__ Page Ad Denstity : Calculating Density :","("+n+" / "+i+" * 100)",e),e}function Q(){const e=l.getWindowSelf().navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/.test(e)?"mobile":"desktop"}function X(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}function ee(e,t){e.innerHTML="";let a=document.getElementById("fallback_ads_iframe/"+e.id+"__container__");a||(a=document.createElement("div"),a.id="fallback_ads_iframe/"+e.id+"__container__",a.dataset.parentid=e.id,e.appendChild(a)),a.style.boder="0pt none",a.style.display="",a.innerHTML="",e.style.display="";let i='<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><script>var ucPbGlobal = "asc";<\/script> <script src="https://cdn.jsdelivr.net/gh/bozghiyy/native-renderer@latest/universal.creative.js"><\/script><script>var ucTagData = {};ucTagData.adServerDomain = "";ucTagData.pubUrl = "'+window.location.href+'";ucTagData.targetingMap = '+JSON.stringify(t)+";try {ucTag.renderAd(document, ucTagData);} catch (e) { console.log(e);}<\/script></body>";b.targetingPrefix&&"hb"!=b.targetingPrefix&&(i='<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><script>var w = window; for (i = 0; i < 10; i++) { w = w.parent; if (w.asc) { try { w.asc.renderAd(document, "'+t[b.targetingPrefix+"_adid"][0]+'"); break; } catch (e) { continue; } } }<\/script></body>'),i=i.replace("</body>",function(e){let t="\x3c!-- No tracker --\x3e";if(!e.id)return"\x3c!-- No Element ID --\x3e";if(!e.dataset.aaAdunit)return"\x3c!-- No AdUnit Dataset --\x3e";let a=c.getAdserverTargetingForAdUnitCode(e.id),i=a[b.targetingPrefix+"_pb"],n=a[b.targetingPrefix+"_bidder"],r=a[b.targetingPrefix+"_adomain"],d=(a[b.targetingPrefix+"_format"],a[b.targetingPrefix+"_size"]),s=a[b.targetingPrefix+"_source"];if(!i)return"\x3c!-- No CPM--\x3e";if(!n)return"\x3c!-- No Bidder--\x3e";r||(r=""),d||(d="0x0"),s||(s="na");let o=B("fallbackImps",{cpm:i,bidder:n,adomain:r,size:d,source:s,adunit:e.dataset.aaAdunit},(()=>{l.logMessage("__ AnalyticsTrack : Fallback Impressions!")}),!0);return o&&""!=o&&(t="",t+='<script async src="https://cdn.ampproject.org/v0.js"><\/script>',t+='<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"><\/script>',t=t+' <amp-analytics style=width:1px;height:1px; trigger=immediate>\n <script type=application/json>\n {\n "requests":{\n "pageview":"'+k+'"\n },\n "triggers":{\n "defaultPageview":{\n "on":"ini-load",\n "request":"pageview"\n }\n },\n "transport":{\n "attributionsrc":"",\n "beacon":false,\n "xhrpost":true,\n "image":false,\n "useBody":true \n },\n "extraUrlParams":'+o+"\n }\n <\/script>\n</amp-analytics>"),t}(e)+"</body>"),function(e,t){if(!t)return;let a=e.dataset.parentid?e.dataset.parentid:X(),i=document.createElement("iframe");i.id="fallback_ads_iframe/"+a,i.width=1,i.height=1,i.hspace="0",i.vspace="0",i.marginWidth="0",i.marginHeight="0",i.scrolling="no",i.frameBorder="0",i.allowtransparency="true",i.allow="conversion-measurement",i.onload=()=>{l.logMessage("FALLBACK RENDER")},e.appendChild(i),i.contentWindow.document.open(),i.contentWindow.document.write(t),i.contentWindow.document.close()}(a,i)}function te(e){let t=0;return e.forEach((function(e){e[1]&&e[1]>t&&(t=e[1])})),t}function ae(e){if("object"!=typeof e)return[];if(!Array.isArray(e))return[];let t=[];return e.forEach((e=>!!e[0]&&(!!e[1]&&("number"==typeof e[0]&&("number"==typeof e[0]&&void t.push(e)))))),0==t.length&&(t=[[1,1]]),t}function ie(e){if("object"!=typeof e)return[];if(!Array.isArray(e))return[];let t=[],a=_.map((e=>e.name));return e.forEach((e=>{a.indexOf(e)>=0&&t.push(e)})),t}function ne(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null}Z=""==Y?"_none":Y.match(/:\/\/(.[^/]+)/)[1],b.targeting&&b.targeting.referrer&&M.cmd.push((function(){M.pubads().setTargeting("referrer",Z.toString())})),b.targeting&&b.targeting.device&&M.cmd.push((function(){try{let e=Q();M.pubads().setTargeting("device",e.toString())}catch(e){}})),c.cmd.push((function(){"desktop"!=Q()&&c.setConfig({ortb2:{site:{mobile:1}}})})),b.targeting&&b.targeting.browser&&M.cmd.push((function(){try{let e=function(){const e=l.getWindowSelf(),t=e.navigator.userAgent,a=t.toLowerCase();return/Edge\/\d./i.test(t)?"edge":a.indexOf("chrome")>0?"chrome":a.indexOf("firefox")>0?"firefox":a.indexOf("safari")>0?"safari":a.indexOf("opera")>0?"opera":a.indexOf("msie")>0||e.MSStream?"ie":"other"}();M.pubads().setTargeting("browser",e.toString())}catch(e){}})),b.targeting&&b.targeting.os&&M.cmd.push((function(){try{let e=function(){const e=l.getWindowSelf().navigator.userAgent.toLowerCase();return e.indexOf("linux")>0?"linux":e.indexOf("mac")>0?"mac":e.indexOf("win")>0?"windows":"other"}();M.pubads().setTargeting("os",e.toString())}catch(e){}})),"true"==ne("stickyContainer")&&h.forEach((e=>{e.stickyContainer="true"})),p.detectDevice(),"object"==typeof b.wrapper.conditionalTimeout&&b.wrapper.conditionalTimeout[p.getDevice()]&&parseInt(b.wrapper.conditionalTimeout[p.getDevice()])>0&&(l.logMessage("__ Config : Change wrapper TIMEOUT from: "+A+" to "+parseInt(b.wrapper.conditionalTimeout[p.getDevice()])+" for device "+p.getDevice()),A=parseInt(b.wrapper.conditionalTimeout[p.getDevice()]));var re=ne("testbids"),de=ne("testbidsnative"),se="";try{se=window.top.location.hash}catch(e){se=location.hash}se.indexOf("testbids")>=0&&(re="true"),se.indexOf("testbidsnative")>=0&&(de="true"),b.testbids&&(re="true"),"true"==re?(l.logMessage("__ Testing : ENABLE TEST BIDS"),c.cmd.push((function(){let e=function(e){let t=1,a=1,i="unknown",n="unknown",r="unknown";return e.sizes&&e.sizes[0]&&e.sizes[0][1]&&(t=e.sizes[0][0]),e.sizes&&e.sizes[0]&&e.sizes[0][1]&&(a=e.sizes[0][1]),e.bidder&&(i=e.bidder),e.auctionId&&(n=e.auctionId),e.bidderRequestId&&(r=e.bidderRequestId),`<html><head><style>#ad {width: ${t}px;height: ${a}px;background-color: #000;color: red;padding: 5px;text-align: center;display: flex;flex-direction: column;align-items: center;justify-content: center;}#bidder {font-family: monospace;font-weight: normal;}#title {font-size: x-large;font-weight: bold;margin-bottom: 5px;}#body {font-size: large;margin-top: 5px;}</style></head><body><div id="ad"><div id="title">Test Bid for: <span id="bidder">${i}</span></div><div id="body">${t}x${a}</div><div>${n}</div><div>${r}</div></div></body></html>`};c.setConfig({debugging:{enabled:!0,intercept:[{when:{src:"client"},then:t=>({cpm:20,currency:"USD",width:t.sizes&&t.sizes[0]&&t.sizes[0][0]?t.sizes[0][0]:1,height:t.sizes&&t.sizes[0]&&t.sizes[0][1]?t.sizes[0][1]:1,ad:e(t)})}]}})}))):c.cmd.push((function(){c.setConfig({debugging:{enabled:!1}})})),"true"==de&&(l.logMessage("__ Testing : ENABLE TEST BIDS NATIVE"),c.cmd.push((function(){c.setConfig({debugging:{enabled:!0,intercept:[{when:{src:"client"},then:e=>({cpm:20,currency:"USD",width:0,height:0,ad:"",mediaType:"native",native:{body:"Native Body Text",clickTrackers:["https://example.com/?clickTracking1"+Math.floor(1e9*Math.random()),"https://example.com/?clickTracking2"+Math.floor(1e9*Math.random())],clickUrl:"https://example.com/?clickUrl"+Math.floor(1e9*Math.random()),cta:"",icon:{height:1,url:"https://statics.creativecdn.com/IBfMcVWzl9KP2WDSsiju/logo_native.png",width:1},image:{height:1200,url:"https://ams.creativecdn.com/images?id=faced0a1eb0a9e3704401036961ee6d79bd45045&w=1200&h=1200&o=96811&fid=3KWauOBTkbDUUkTcvYA3",width:1200},impressionTrackers:["https://example.com/?impressionTracker1"+Math.floor(1e9*Math.random()),"https://example.com/?impressionTracker2"+Math.floor(1e9*Math.random()),"https://example.com/?impressionTracker3"+Math.floor(1e9*Math.random()),"https://example.com/?impressionTracker4"+Math.floor(1e9*Math.random())],javascriptTrackers:"https://example.com/?javascriptTracker"+Math.floor(1e9*Math.random()),ortb:{assets:[{data:{len:0,type:0,value:""},id:1,img:{h:0,type:0,url:"",w:0},required:0,title:{len:0,text:"ORTB Native Title"}},{data:{len:0,type:0,value:"ORTB Native Body"},id:5,img:{h:0,type:0,url:"",w:0},required:0,title:{len:0,text:""}},{data:{len:0,type:0,value:"norauto.fr"},id:4,img:{h:0,type:0,url:"",w:0},required:0,title:{len:0,text:""}},{data:{len:0,type:0,value:""},id:2,img:{h:1200,type:0,url:"https://ams.creativecdn.com/images?id=faced0a1eb0a9e3704401036961ee6d79bd45045&w=1200&h=1200&o=96811&fid=3KWauOBTkbDUUkTcvYA3",w:1200},required:0,title:{len:0,text:""}},{data:{len:0,type:0,value:""},id:3,img:{h:1,type:0,url:"https://statics.creativecdn.com/IBfMcVWzl9KP2WDSsiju/logo_native.png",w:1},required:0,title:{len:0,text:""}}],assetsurl:"",dcourl:"",eventtrackers:[{event:1,method:1,url:"https://example.com/?trackerEvent1Method1"+Math.floor(1e9*Math.random())},{event:1,method:1,url:"https://example.com/?trackerEvent1Method1"+Math.floor(1e9*Math.random())},{event:1,method:1,url:"https://example.com/?trackerEvent1Method1"+Math.floor(1e9*Math.random())}],imptrackers:["https://example.com/?imptrackers"+Math.floor(1e9*Math.random())],link:{clicktrackers:["https://example.com/?clicktrackers"+Math.floor(1e9*Math.random())],fallback:"",url:"https://example.com/?url"+Math.floor(1e9*Math.random())},privacy:"",ver:"1.2"},price:"",privacyIcon:"",privacyLink:"",rendererUrl:"https://cdn.jsdelivr.net/gh/bozghiyy/native-renderer@latest/320x50.js",sendTargetingKeys:0,sponsoredBy:"nativeUrl.com",title:"Native Title"}})}]}})})));var oe=ne("ascDisableBidder");if(null!==oe){l.logMessage("__ TESTING : Disable bidder ->",oe);let e=[];h.forEach((function(t){let a=[];t.bids.forEach((function(t){t.bidder!=oe&&(a.push(t),e.indexOf(t.bidder)<0&&e.push(t.bidder))})),t.bids=a})),g.s2sConfig.bidders=e,l.logMessage("__ Testing : Using S2S Bidders ->",e)}var ce=function(e,t,a){var i=window.addEventListener?"addEventListener":"attachEvent",n=window.addEventListener?t:"on"+t;e[i](n,a,!1)};function le(){return b}function pe(){return h}function ge(e){let t=!1;return h.forEach((function(a){if("adunit"==b.adunitMapping){if(!e.dataset.aaAdunit)return!1;a.adunit.toLowerCase()==e.dataset.aaAdunit.toLowerCase()&&(t=Object.assign({},a))}else if("targeting"==b.adunitMapping){if(!e.dataset.aaTargeting)return!1;let i="pos";b.adunitMappingKey&&(i=b.adunitMappingKey);let n=R(e.dataset.aaTargeting);if(!n[i])return!1;if(!a.targeting[i])return!1;a.targeting[i].toLowerCase()==n[i].toLowerCase()&&(t=Object.assign({},a))}})),t}function ue(e){let t=e.split("/");return t.length<=1?t.toString():t[t.length-1]}function me(e){if(!e.dataset)return[1,1];if(!e.dataset.aaSizes)return[1,1];let t=ae(R(e.dataset.aaSizes));if(!t)return[1,1];let a=t.map((e=>e[0]+"x"+e[1])),i=[[300,600],[300,250],[970,250],[728,90],[160,600],[320,50]].map((e=>e[0]+"x"+e[1])),n=[1,1];return i.forEach((e=>{1!=n[0]&&1!=n[1]||a.indexOf(e)>=0&&(n=e.split("x"))})),n}function fe(e){let t=[];return e.forEach((function(e){let a={},i=ae(R(e.dataset.aaSizes)),n=e.dataset.aaTargeting?R(e.dataset.aaTargeting):{},r=e.dataset.aaAdditionalNonHBSizes?R(e.dataset.aaAdditionalNonHBSizes):[],d=(e.dataset.aaAdunit,e.dataset.aaRichMediaFormat?R(e.dataset.aaRichMediaFormat):{});if(a.adunit=e.dataset.aaAdunit,a.code=e.id,a.mediaTypes={banner:{sizes:i}},a.additionalNonHBSizes=r,a.targeting=n,a.bids=function(e){F();let t=[],a=e.dataset.aaAdunit,i=ue(a),n=ae(R(e.dataset.aaSizes)),r=e.dataset.aaTargeting?R(e.dataset.aaTargeting):{},d=n.map((function(e){return e[0]+"x"+e[1]}));return h.forEach((function(e){if("adunit"==b.adunitMapping){if(e.adunit.toLowerCase()!=a.toLowerCase())return!1}else{if("targeting"!=b.adunitMapping)return!1;{if(!r)return!1;if(!e.targeting)return!1;let t="pos";if(b.adunitMappingKey&&(t=b.adunitMappingKey),!r[t])return!1;if(!e.targeting[t])return!1;if(e.targeting[t].toLowerCase()!=r[t].toLowerCase())return!1}}a.toLowerCase()==e.adunit.toLowerCase()&&a!=e.adunit&&(a=e.adunit,i=ue(a)),e.bids.forEach((function(e){if(e.device&&e.device.indexOf(p.getDevice())<0)return!1;if(e.size&&d.indexOf(e.size[0]+"x"+e.size[1])<0)return!1;if(e.testParameter&&"true"!=ne(e.testParameter))return!1;if(b.wrapper.disableBidders&&b.wrapper.disableBidders.indexOf(e.bidder)>=0)return!1;switch(e.bidder){case"rhythmone":return e.params.path="mvo",e.params.zone="1r",t.push({bidder:e.bidder,params:e.params}),!0;case"smartadserver":return e.params.networkId||(e.params.networkId=1),t.push({bidder:e.bidder,params:e.params}),!0;case"pubmatic":return t.push({bidder:e.bidder,params:{publisherId:e.params.publisherId,adSlot:e.params.adSlot?e.params.adSlot:i}}),!0;case"indexExchange":case"ix":return e.params.size&&"object"==typeof e.params.size?(t.push({bidder:e.bidder,params:e.params}),!0):(n.forEach((function(a){return t.push({bidder:e.bidder,params:{siteId:e.params.siteId,size:a}}),!0})),!0);case"grid":return e.params&&e.params.uid&&"string"==typeof e.params.uid&&(e.params.uid=parseInt(e.params.uid)),t.push({bidder:e.bidder,params:e.params}),!0;case"appnexus":return e.params&&e.params.placementId&&"string"==typeof e.params.placementId&&(e.params.placementId=parseInt(e.params.placementId)),t.push({bidder:e.bidder,params:e.params}),!0;case"criteo":return e.params.publisherSubId||(e.params.publisherSubId=i),t.push({bidder:e.bidder,params:e.params}),!0;case"amx":let a=e.params?e.params:{};return"true"==ne("amxtest")&&(a.testMode=!0,a.tagId="cHJlYmlkLm9yZw"),a.adUnitId=i,t.push({bidder:e.bidder,params:a}),!0;case"onetag":return e.params.ext||(e.params.ext={adunit:i}),e.params.overwriteAdUnitCode=i,t.push({bidder:e.bidder,params:e.params}),!0;case"outbrain":return e.params.tagid||(e.params.tagid=i),t.push({bidder:e.bidder,params:e.params}),!0;default:return t.push({bidder:e.bidder,params:e.params}),!0}}))})),t}(e),a.ortb2Imp={ext:{data:{adserver:{name:"gam",adslot:e.dataset.aaAdunit},pbadslot:e.dataset.aaAdunit,gpid:e.dataset.aaAdunit},gpid:e.dataset.aaAdunit}},d&&d.type&&"interstitial"==d.type&&(a.ortb2Imp.instl=1),a.mediaTypes&&a.mediaTypes.banner){let t="";a.mediaTypes.banner.pos=0,t="Set pos 0 - Unknown | Default";let i=e.getBoundingClientRect();if(i.top>=0&&i.bottom<=p.detectHeight("window")?(a.mediaTypes.banner.pos=1,t="Set pos 1 - ATF | Element in view"):(a.mediaTypes.banner.pos=3,t="Set pos 3 - BTF | Element not in view"),d&&d.type){let e=o.Z.getFormat(d.type);e.bannerPos&&(a.mediaTypes.banner.pos=parseInt(e.bannerPos),t="Set pos "+e.bannerPos+" | Richmedia "+d.type)}l.logMessage("__ Ads : Setting mediaTypes.banner.pos:",e.id,a.adunit,t)}if(e.dataset.aaVideo&&""!=e.dataset.aaVideo&&(a.mediaTypes.video=R(e.dataset.aaVideo)),e.dataset.aaOutofpage&&""!=e.dataset.aaOutofpage&&(a.outofpage=e.dataset.aaOutofpage),e.dataset.aaNative&&"true"==e.dataset.aaNative){let t=me(e),i=t[0]+"x"+t[1];"1x1"!=i&&(a.mediaTypes.native={sendTargetingKeys:!1,rendererUrl:"https://cdn.jsdelivr.net/gh/bozghiyy/native-renderer@latest/"+i+".js",ortb:{ver:"1.2",context:1,plcmttype:11,privacy:1,assets:[{id:1,required:0,title:{len:80}},{id:2,required:0,img:{type:3,wmin:1,hmin:1}},{id:3,required:0,img:{type:1,wmin:1,hmin:1}},{id:4,required:0,data:{type:1}},{id:5,required:0,data:{type:2}}],eventtrackers:[{event:1,methods:[1,2]}]}})}t.push(a)})),t}c.getWrapperConfig=le,c.getWrapperInternalAdunits=pe,c.getWrapperDeviceDetection=function(){return _},c.setWrapperConfig=function(e,t){switch(l.logMessage("__ setWrapperConfig : Called with values:",e,t),e=e.toLowerCase()){case"timeout":b.wrapper.timeout=parseInt(t),A=b.wrapper.timeout,l.logMessage("__ setWrapperConfig : Wrapper timeout set to ",b.wrapper.timeout);break;case"lazyloadfetch":b.lazyLoading.preViewLenght=parseInt(t),l.logMessage("__ setWrapperConfig : LazyLoad Fetch Distance in pixels: ",b.lazyLoading.preViewLenght);break;case"lazyloadfetchportview":b.lazyLoading.preViewPorts=parseFloat(t),l.logMessage("__ setWrapperConfig : LazyLoad Fetch Distance in porviews: ",b.lazyLoading.preViewPorts);break;default:return l.logInfo("__ setWrapperConfig : The config property doesn`t exist or you cannot set it:",e),!1}};var be=!1,he=!1;function _e(){if(l.logMessage("__ Ads : processAdsOnPage: Called"),!y)return l.logMessage("__ Ads : processAdsOnPage: Page is not loaded, cannot use this function yet."),void setTimeout((function(){l.logInfo("__ Ads: processAdsOnPage: Page not loaded, retried after 1 sec"),_e()}),1e3);if(be)return l.logMessage("__ Ads : processAdsOnPage: Ads are still processing"),void setTimeout((function(){l.logInfo("__ Ads: processAdsOnPage: Ads still processing, retried after 1 sec"),_e()}),1e3);if(!he&&Ee)return l.logInfo("__ Ads : processAdsOnPage: Wait "+E+"ms until executing function"),void setTimeout((function(){he=!0,_e(),he=!1}),E);be=!0;let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[data-aaad]",t=document.querySelectorAll(e);t=[].slice.call(t);let a=[];return t.forEach((function(e){if(!e.dataset.aaAdunit)return e.dataset.status="error",l.logError("Ad doesn`t have an adunit defined",e),!1;if("true"!=e.dataset.aaad)return l.logWarn("__ Ads : Adunit disabled, skipped:",e.dataset.aaAdunit),!1;if(e.estCPM||(e.estCPM=0),e.emptyCount||(e.emptyCount=0),e.emptyConsecutiveCount||(e.emptyConsecutiveCount=0),e.dataset.status&&"processing"!=e.dataset.status)return!1;{e.dataset.status="processing",e.id||(e.id=X());let t=ge(e);t?(t.conditionalMediaTypes&&t.conditionalMediaTypes[p.getDevice()]&&(t.mediaTypes=t.conditionalMediaTypes[p.getDevice()]),t.conditionalNonHBSizes&&t.conditionalNonHBSizes[p.getDevice()]&&(t.additionalNonHBSizes=t.conditionalNonHBSizes[p.getDevice()]),t.css&&""==e.style.cssText&&(e.style.cssText=t.css),e.dataset.aaDevice||(e.dataset.aaDevice=JSON.stringify(t.device)),e.dataset.aaSizes||(e.dataset.aaSizes=JSON.stringify(t.mediaTypes.banner.sizes)),e.dataset.aaLazyLoaded||(e.dataset.aaLazyLoaded=t.lazyLoaded),e.dataset.aaTargeting||t.targeting&&Object.keys(t.targeting).length>0&&(e.dataset.aaTargeting=JSON.stringify(t.targeting)),e.dataset.aaRichMediaFormat||t.richMediaFormat&&Object.keys(t.richMediaFormat).length>0&&(e.dataset.aaRichMediaFormat=JSON.stringify(t.richMediaFormat)),e.dataset.aaRefreshTimed||t.refreshTimed&&t.refreshTimed>0&&(e.dataset.aaRefreshTimed=t.refreshTimed),e.dataset.aaRefreshViewable||t.refreshViewable&&t.refreshViewable>0&&(e.dataset.aaRefreshViewable=t.refreshViewable),e.dataset.aaAdditionalNonHBSizes||t.additionalNonHBSizes&&t.additionalNonHBSizes.length>0&&(e.dataset.aaAdditionalNonHBSizes=JSON.stringify(t.additionalNonHBSizes)),!e.dataset.aaOutofpage&&t.outofpage&&(e.dataset.aaOutofpage=t.outofpage),e.dataset.aaContainer||t.stickyContainer&&(e.dataset.aaContainer=t.stickyContainer),e.dataset.aaVideo||t.mediaTypes&&t.mediaTypes.video&&(e.dataset.aaVideo=JSON.stringify(t.mediaTypes.video)),e.dataset.aaNative||t.native&&!0===t.native&&(e.dataset.aaNative="true")):(e.dataset.aaSizes||(e.dataset.aaSizes=JSON.stringify([1,1])),e.dataset.aaDevice||(e.dataset.aaDevice=JSON.stringify(_.map((e=>e.name)))),e.dataset.aaLazyLoaded||(e.dataset.aaLazyLoaded="false"),l.logMessage("__ Ads : Didn`t find an adunit to map ->",e.dataset.aaAdunit))}try{let t=R(e.dataset.aaRichMediaFormat);if(t.type){let a=o.Z.getFormat(t.type);a.initFunc&&"function"==typeof a.initFunc&&a.initFunc.call(this,e)}}catch(e){}let t=parseInt(e.dataset.aaRefreshTimed);NaN==t&&(t=0);let i=parseInt(e.dataset.aaRefreshViewable);if(NaN==i&&(i=0),t>0&&i>0&&(e.dataset.aaRefreshViewable=0,l.logWarn("__ Ads : Cannot have both refreshes enabled. Disabling viewable refresh",e)),e.dataset.aaContainer&&"true"==e.dataset.aaContainer){let t=e.cloneNode(!0);t.dataset.aaContainer="false";let a=document.createElement("div");a.id="cont_"+t.id,a.style.height=te(ae(R(e.dataset.aaSizes)))+"px",e.parentNode.insertBefore(a,e),e.remove();let i=document.createElement("div");i.id="wrap_"+t.id,i.style.position="sticky",i.style.top="0",a.appendChild(i),i.appendChild(t)}if(ie(R(e.dataset.aaDevice)).indexOf(p.getDevice())<0)return e.dataset.status="skipped",!1;if("true"==e.dataset.aaLazyLoaded){if(!Ce(e))return l.logMessage("__ LazyLoading : Adunit is lazyloaded ->",e.dataset.aaAdunit,e.id),e.dataset.status="lazyLoaded",!1;l.logMessage("__ LazyLoading : Adunit is lazyloaded but is already in view, disabling lazy load ->",e.dataset.aaAdunit,e.id),e.dataset.aaLazyLoaded=!1}a.push(e)})),l.logMessage("__ Ads : Getting new elements on page:",a.map((e=>e.id))),a}();if(!e||0==e.length)return l.logWarn("__ Ads : processAdsOnPage: No new ad elements on page"),be=!1,!1;var t,a,i;a=A,i=function(){be=!1},(t=e).forEach((function(e){e.dataset.status="rendered",e.renderCount=e.renderCount?parseInt(e.renderCount)+1:1})),function(e,t,a){let i={},n=!1;l.logMessage("__ CMP : Checking for CMP __gpp",typeof window.__gpp),"function"==typeof window.__gpp?(i.gpp={cmpApi:"iab",timeout:1e3},n=!0,He('<span style="color:green;">Prebid detected a Global Privacy Platform IAB API on CMP</span>'),window.__gpp("addEventListener",(function(e,t){if(!t)return He('<span style="color:red;">Global Privacy Platform IAB API status: '+t+"</span>"),!1;"1.1"!=e.pingData.gppVersion&&He('<span style="color:red;">Global Privacy Platform IAB API version supported ONLY 1.1, current version: '+e.pingData.gppVersion+"</span>"),"error"===e?.pingData?.cmpStatus&&He('<span style="color:red;">Global Privacy Platform IAB API Status Event</span>'),He(e?.pingData?.gppString?'<span style="color:green;">Global Privacy Platform IAB API Consent String Set</span>':'<span style="color:red;">Global Privacy Platform IAB API Consent String NOT set</span>'),He('<span style="color:gray;">Global Privacy Platform IAB API Ping Data: Signal Status: <b>'+e?.pingData?.signalStatus+"</b>; CMP Display Status: <b>"+e?.pingData?.cmpDisplayStatus+"</b>; CMP Status: <b>"+e?.pingData?.cmpStatus+"</b>; GPP version: <b>"+e?.pingData?.gppVersion+"</b>; Suported APIs: <b>"+e?.pingData?.supportedAPIs.join(",")+"</b>; Applicable Sections: <b>"+e?.pingData?.applicableSections.join(",")+"</b>; Parsed Sections: <b>"+Object.keys(e?.pingData?.supportedAPIs).join(",")+"</b>;</span>")}))):He('<span style="color:red;">Prebid DID NOT detected a Global Privacy Platform IAB API on CMP</span>'),l.logMessage("__ CMP : Checking for CMP __tcfapi",typeof window.__tcfapi),b.targeting&&b.targeting.tcf&&M.cmd.push((function(){M.pubads().setTargeting("tcf_s","tcbeforecheck"),M.pubads().setTargeting("tcf_gdpr","unknown")})),"function"==typeof window.__tcfapi?(b.targeting&&b.targeting.tcf&&M.cmd.push((function(){M.pubads().setTargeting("tcf_s","tcfound")})),i.gdpr={cmpApi:"iab",timeout:1e3,defaultGdprScope:!0},n=!0,He('<span style="color:green;">Prebid detected an IAB TCF 2.x CMP</span>'),window.__tcfapi("addEventListener",2,(function(e,t){if(t?(e.eventStatus&&(b.targeting&&b.targeting.tcf?M.cmd.push((function(){M.pubads().setTargeting("tcf_s",e.eventStatus)})):e.gdprApplies&&(b.targeting&&b.targeting.tcf?M.cmd.push((function(){M.pubads().setTargeting("tcf_s","tcnull")})):b.targeting&&b.targeting.tcf&&M.cmd.push((function(){M.pubads().setTargeting("tcf_s","tcnotapply")})))),He('<span style="color:green;">CMP API Response: GDPR Applies: <b>'+e.gdprApplies+"</b> Status: <b>"+e.eventStatus+"</b></span>")):(b.targeting&&b.targeting.tcf&&M.cmd.push((function(){M.pubads().setTargeting("tcf_s","tcfailed")})),He('<span style="color:red;">Cannot interact with the CMP API</span>')),b.targeting&&b.targeting.tcf){e.gdprApplies?M.cmd.push((function(){M.pubads().setTargeting("tcf_gdpr","true")})):M.cmd.push((function(){M.pubads().setTargeting("tcf_gdpr","false")})),e.cmpId?M.cmd.push((function(){M.pubads().setTargeting("tcf_cmp_id",e.cmpId.toString())})):M.cmd.push((function(){M.pubads().setTargeting("tcf_cmp_id","0")})),e.cmpStatus?M.cmd.push((function(){M.pubads().setTargeting("tcf_cmp_s",e.cmpStatus.toString())})):M.cmd.push((function(){M.pubads().setTargeting("tcf_cmp_s","false")})),e.tcString&&e.tcString.length&&e.tcString.length>1?M.cmd.push((function(){M.pubads().setTargeting("tcf_string","true")})):M.cmd.push((function(){M.pubads().setTargeting("tcf_string","false")}));let t=[];if(e.purpose&&e.purpose.consents){let a=Object.keys(e.purpose.consents);t=a.filter((t=>!!e.purpose.consents[t]))}M.cmd.push((function(){M.pubads().setTargeting("tcf_p",0==t.length?"0":t)}))}}))):(He('<span style="color:red;">Prebid DID NOT detect an IAB TCF 2.x CMP</span>'),b.targeting&&b.targeting.tcf&&M.cmd.push((function(){M.pubads().setTargeting("tcf_s","tcnotfound"),M.pubads().setTargeting("tcf_gdpr","false")}))),n&&(l.logMessage("__ CMP : Consent Management set config",i),c.setConfig({consentManagement:i}),x=91e3),"function"==typeof window.__gpp&&window.__gpp("ping",((e,t)=>{t&&B("gpp",{ping:e},(()=>{l.logMessage("__ AnalyticsTrack : Send GPP Ping:",e)}))})),window.ascBeforeAuction&&"function"==typeof window.ascBeforeAuction&&(l.logMessage("__ Ads : Function ascBeforeAuction is defined, executing it."),window.ascBeforeAuction(e,t,a)),l.logMessage("__ Ads : Calling doBidRequests with parameters",e,t,a),c.que.push((function(){if(!e&&!e)return l.logError("__ Ads : Calling doBidRequest without any adunits"),be=!1,!1;if(t||(t=A),a||(a=function(){}),0==e.length)return l.logMessage("__ Ads : Calling doBidRequest with 0 adunits"),be=!1,!1;let i=e.map((function(e){return e.code})),n=e.filter((e=>!(b.dfp.forceSafeFramesForAdunits&&b.dfp.forceSafeFramesForAdunits.length>0&&b.dfp.forceSafeFramesForAdunits.indexOf(e.adunit)>=0))).map((function(e){return{slotID:e.code,slotName:e.adunit,sizes:e.mediaTypes.banner.sizes}})),r=!1,d=!1,s=!1;function o(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(r=!0,d=!0),!!r&&!!d&&!s&&(M.cmd.push((function(){let t=M.pubads().getSlots(),a=t.map((function(e){return e.getSlotElementId()})),n=[],r=e.filter((e=>!(a.indexOf(e.code)>=0))),d=t.filter((e=>i.indexOf(e.getSlotElementId())>=0));M.pubads().setTargeting("pbglobal","asc"),M.pubads().setTargeting("tif",Ee.toString());let s="0s",o=Math.floor(Ie()/1e3);if(s=o+"s",o>=60){let e=Math.floor(o/60);s=e>=60?"1h":e+"m"}M.pubads().setTargeting("lui",s.toString()),r.forEach((function(e){let t=Object.assign([],e.mediaTypes.banner.sizes);e.additionalNonHBSizes&&e.additionalNonHBSizes.length>0&&e.additionalNonHBSizes.forEach((function(e){t.push(e)}));let a={};if(e.outofpage&&"true"==e.outofpage.toLowerCase()){if(thisSlotDefined=M.defineOutOfPageSlot(P(e.adunit),e.code),!thisSlotDefined)return l.logError("__ GAM : Cannot define outofpage slot",e.adunit,e.code),!1;a=thisSlotDefined.addService(M.pubads())}else{if(thisSlotDefined=M.defineSlot(P(e.adunit),t,e.code),!thisSlotDefined)return l.logError("__ GAM : Cannot define slot",e.adunit,t,e.code),!1;a=thisSlotDefined.addService(M.pubads())}l.logMessage("__ GAM : Define Slot",e.adunit,t,e.code),a.rit=0,b.targeting&&b.targeting.refreshIteration&&a.setTargeting(b.targeting.refreshIteration,a.rit.toString()),M.pubads().isInitialLoadDisabled()&&n.push(a)})),r&&r.length>0&&(l.logMessage("__ GAM : Enable services"),M.enableServices()),t=M.pubads().getSlots(),"undefined"!=typeof apstag&&b.amazon.enabled&&(l.logMessage("__ A9/Amazon : Set Targeting A9"),apstag.setDisplayBids()),c.setTargetingForGPTAsync(i),e.forEach((function(e){let a=t.filter((t=>e.code==t.getSlotElementId()));if(!a[0])return l.logError("__ GAM : Set Custom Targeting, cannot find adunit defined to DFP",e),!1;let i=a[0],n=document.getElementById(e.code);if(!n)return l.logError("__ GAM : Set Custom Targeting, cannot find element for adunit:",e),!1;let r=Object.keys(e.targeting);for(var d=r.length-1;d>=0;d--)i.setTargeting(r[d],e.targeting[r[d]]),l.logMessage("__ GAM : Set Targeting",e.adunit,e.code,r[d],e.targeting[r[d]]);try{let t=!0;if(null===n.offsetParent&&(t=!1),n.dataset.aaRichMediaFormat){let e=R(n.dataset.aaRichMediaFormat);e&&"object"==typeof e&&e.type&&(t=e.type)}l.logMessage("__ Targeting : Set Targeting ANH",e.adunit,e.code,t),i.setTargeting("anh",t.toString())}catch(t){l.logWarn("__ Targeting : Cannot Set Targeting ANH",e.adunit,e.code)}b.dfp.forceSafeFramesUnderFloor&&((i.getTargeting(b.targetingPrefix+"_pb")[0]?parseInt(i.getTargeting(b.targetingPrefix+"_pb")[0]):0)<b.dfp.forceSafeFramesUnderFloor?(l.logMessage("__ GAM : Bid Under floor, setting Safe Frame",e.adunit,e.code),i.setForceSafeFrame(!0),"undefined"!=typeof apstag&&b.amazon.enabled&&(l.logMessage("__ A9/Amazon : Safe frame enabled, disable/clean amazon bid."),i.setTargeting("amznbid",""))):(l.logMessage("__ GAM : Bid Over Floor, No need for Safe Frames",e.adunit,e.code),i.setForceSafeFrame(!1))),b.dfp.forceSafeFrames&&(i.setForceSafeFrame(!0),l.logMessage("__ GAM : Set Force Safe Frames",e.adunit,e.code)),b.dfp.forceSafeFramesForAdunits&&b.dfp.forceSafeFramesForAdunits.length>0&&b.dfp.forceSafeFramesForAdunits.indexOf(n.dataset.aaAdunit)>=0&&(i.setForceSafeFrame(!0),l.logMessage("__ GAM : Set Force Safe Frames for Adunit",e.adunit,e.code))})),d.forEach((function(e){e.rit||(e.rit=0),e.rit++,b.targeting&&b.targeting.refreshIteration&&e.setTargeting(b.targeting.refreshIteration,e.rit.toString()),e.dah&&e.setTargeting("dah",e.dah),"number"==typeof e.lad&&e.setTargeting("lad",e.lad.toString())})),r.forEach((function(e){M.display(e.code),l.logMessage("__ GAM : Display Slot",e.adunit,e.code)})),M.pubads().isInitialLoadDisabled()&&n.length>0&&(l.logWarn("__ GAM : is using disable Initial Load, using refresh to load adunits"),M.pubads().refresh(n)),d&&d.length>0&&(M.pubads().refresh(d),l.logMessage("__ GAM : Refresh Slots",d))})),s=!0,a(),void(b.dfp.failedToFetchFallback&&b.dfp.failedToFetchFallback>1e3&&setTimeout((()=>{i.forEach((e=>{let t=document.getElementById(e),a=p.isEmpty(t);if(l.logMessage("__ Ads : Failed to Fetch Fallback isEmpty check:",e,a),a){let a=c.getAdserverTargetingForAdUnitCode(e);if(a=p.transformToGAMTargetingMap(a),a[b.targetingPrefix+"_pb"]&&a[b.targetingPrefix+"_pb"][0]){let i=R(t.dataset.aaRichMediaFormat);"object"==typeof i&&i.type?l.logMessage("__ Ads : Failed to Fetch Fallback - Is Richmedia format and cannot render fallback",e,a):(l.logMessage("__ Ads : Failed to Fetch Fallback - Rendering fallback",e,a),ee(t,a))}}}))}),b.dfp.failedToFetchFallback)))}if(setTimeout((function(){l.logMessage("__ Ads : Running Force Fallback Render (possible not necessary)",x),o(!0)}),x),b.targeting&&b.targeting.pageAdDensity){let e=$();M.cmd.push((function(){M.pubads().setTargeting("padpr",e.toString())}))}let g=function(){let e={slots:n,timeout:t};b.amazon.declareRefresh&&(e.params={adRefresh:"0"},i.filter((e=>{let t=document.getElementById(e);return!!t&&!!t.renderCount&&(parseInt(t.renderCount)>1||void 0)})).length>0&&(e.params={adRefresh:"1"})),l.logMessage("__ A9/Amazon : calling fetchBids: ",e),apstag.fetchBids(e,(function(e){l.logMessage("__ A9/Amazon : A9 bids are back: ",e),d=!0,o()}))};b.amazon.enabled?"function"==typeof window.__tcfapi?(l.logMessage("__ A9/Amazon : CMP detected, executing fetchbids when consent is given"),window.__tcfapi("addEventListener",2,(function(e,t){return e.gdprApplies?t?"useractioncomplete"===e.eventStatus||"tcloaded"===e.eventStatus?(l.logMessage("__ A9/Amazon : Received CMP Consent -> Request bids for : ",n),void g()):void l.logMessage("__ A9/Amazon : Not requesting bids yet, CMP responded",e):(l.logMessage("__ A9/Amazon : Failed loading CMP, Request bids for : ",n),void g()):(l.logMessage("__ A9/Amazon : Received CMP Response with gdprApplies false -> Request bids for : ",n),void g())}))):(l.logMessage("__ A9/Amazon : Request bids for : ",n),g()):d=!0,c.requestBids({timeout:t,adUnits:e,bidsBackHandler:function(e){r=!0,o()}})}))}(fe(t),a,i)}c.processAdsOnPage=_e,c.renderAds=_e;var ye=Date.now();function ve(e){l.logMessage("__ Last User Interaction : Updated last user interaction by interaction:",e,(Date.now()-ye)/1e3+" seconds since last interaction"),ye=Date.now(),!0}function Ie(){return Date.now()-ye}ce(window,"click",(()=>{we||Te(),ve("click")})),ce(window,"resize",(()=>{ve("resize")})),ce(window,"touchend",(()=>{we||Te(),ve("touchend")}));var we=!1;function Te(){we||(we=!0,c.cmd.push((()=>{c.setConfig({userSync:{enableOverride:!0}}),setTimeout((()=>{l.logMessage("__ UserSync : Triggered user syncs by User Interaction"),c.triggerUserSyncs(),"function"==typeof c.triggerUserSyncsS2S?(l.logMessage("__ UserSync : Triggered user syncs for S2S by User Interaction"),c.triggerUserSyncsS2S()):l.logMessage("__ UserSync : CANNOT Triggered user syncs for S2S by User Interaction")}),1e3)})))}function Ce(e){let t=p.detectHeight("window"),a=e.getBoundingClientRect(),i=b.lazyLoading.preViewLenght+t;return b.lazyLoading.preViewPorts&&(i=parseInt(t*parseFloat(b.lazyLoading.preViewPorts))),i-a.top>=0&&a.bottom>=0?(l.logMessage("__ LazyLoading : Element is in view, using Pre-ViewLenght:",i,a),!0):(l.logMessage("__ LazyLoading : Element is NOT in view, using Pre-ViewLenght:",i,a),!1)}var Se=!1,Me=!0;function Ae(){if(Se)return;Se=!0,we||Me||Te(),Me||ve("scroll"),Me&&(Me=!1);let e=document.querySelectorAll('[data-status="lazyLoaded"]');e=[].slice.call(e);let t=!1;e.forEach((function(e){Ce(e)&&(l.logMessage("__ LazyLoading : LazyLoaded adunit close to viewport",e.dataset.aaAdunit,e.id),e.dataset.status="processing",e.dataset.aaLazyLoaded="false",t=!0)})),t&&_e(),setTimeout((function(){Se=!1}),b.lazyLoading.scrollEventDelay)}ce(window,"scroll",Ae);var xe={waitDelay:1e3+A,que:[],push:function(e,t){l.logMessage("__ Refresh : Refresh added to queue",t),xe.que.push({time:Date.now()+(1e3*t-xe.waitDelay),fnc:e,called:!1}),setTimeout(xe.run,1e3*t-xe.waitDelay)},run:function(){if(b.refresh.pauseOutOfFocus&&!Ee)return void l.logMessage("__ Refresh : Tab not in focus, no refresh!");l.logMessage("__ Refresh : Run refreshes from queue");let e=!1;xe.que=xe.que.filter((function(t){if(t.called)return!1;if(t.time<=Date.now()+xe.waitDelay){t.time>=Date.now()&&l.logMessage("__ Refresh : Run refreshe now, with "+(Date.now()+xe.waitDelay-t.time)/1e3+" seconds sooner"),t.called=!0;try{t.fnc()}catch(e){l.logError("__ Refresh : Cannot execute:",t)}return e=!0,!1}return l.logMessage("__ Refresh : Skipping refresh, it will be executed in "+(t.time-Date.now()-xe.waitDelay)/1e3+" seconds"),!0})),e?(l.logMessage("__ Refresh : Run process ads after queue"),_e()):l.logMessage("__ Refresh : Nothing in the queue that needs processing of ads")}},Ee=!0,ze=Date.now(),De=0;!function(){var e="hidden";function t(t){var a=!0,i=!1,n={focus:a,focusin:a,pageshow:a,blur:i,focusout:i,pagehide:i};t=t||window.event,(Ee=t.type in n?n[t.type]:!this[e])||(De=0,ze=Date.now()),Ee&&(De=Date.now()-ze,ze=0,ve("visibilitychange")),l.logMessage("__ OnFocus : Window-Tab Focus changed to: ",Ee,De),Ee&&xe.run()}e in document?document.addEventListener("visibilitychange",t):(e="mozHidden")in document?document.addEventListener("mozvisibilitychange",t):(e="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",t):(e="msHidden")in document?document.addEventListener("msvisibilitychange",t):"onfocusin"in document?document.onfocusin=document.onfocusout=t:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=t,void 0!==document[e]&&t({type:document[e]?"blur":"focus"})}(),M.cmd.push((function(){M.pubads().addEventListener("slotRenderEnded",(function(e){l.logMessage("__ GAM : Adunit rendered: ",e.slot.getSlotElementId(),e.slot.getAdUnitPath(),e.slot.getTargetingMap());let t=document.getElementById(e.slot.getSlotElementId());if(!t)return void l.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId());let a=e.slot.getTargetingMap();if(!t.dataset.aaad)return void l.logWarn("__ Ads : Not a wapper adunit, skipping! ",e.slot.getResponseInformation());e.companyIds&&e.companyIds[0]&&(e.advertiserId=e.companyIds[0]);try{let a=R(t.dataset.aaRichMediaFormat);if(a.type){let i=o.Z.getFormat(a.type);i.registerListener&&"function"==typeof i.registerListener&&i.registerListener.call(this,t,e)}}catch(e){}if(e.isEmpty){if(l.logMessage("__ Ads : Adunit is empty: ",e.slot.getSlotElementId(),e.slot.getAdUnitPath()),e.slot.lad=null,t.emptyCount=t.emptyCount+1,t.emptyConsecutiveCount=t.emptyConsecutiveCount+1,b.dfp.emtpyCreativeFallback&&a[b.targetingPrefix+"_pb"]&&a[b.targetingPrefix+"_pb"][0]){let i=R(t.dataset.aaRichMediaFormat);"object"==typeof i&&i.type?l.logMessage("__ Ads : Adunit is empty with bid and emtpyCreativeFallback active, BUT is RichmediaFormat",e.slot.getSlotElementId(),a):(l.logMessage("__ Ads : Adunit is empty but received bid, emtpyCreativeFallback active, rendering slot without DFP:",e.slot.getSlotElementId(),a),ee(t,a))}}else{a[b.targetingPrefix+"_pb"]&&a[b.targetingPrefix+"_pb"][0]&&(t.estCPM=parseFloat(a[b.targetingPrefix+"_pb"][0])),l.logMessage("__ Ads : Estimated CPM:",t.estCPM,t.id,t.dataset.aaAdunit),e.slot.dah||(e.slot.dah=[]),e.slot.dah.indexOf(e.advertiserId)<0&&e.slot.dah.push(e.advertiserId),e.slot.lad=e.advertiserId;let i=!1;try{let a=t.childNodes;a=[].slice.call(a),a.forEach((e=>{if(e.id&&e.id.indexOf("__container__")>=0){let t=e.childNodes;t=[].slice.call(t),t.forEach((e=>{e.tagName&&"IFRAME"==e.tagName&&e.id&&e.id.indexOf("google_ads_iframe_")>=0&&e.contentWindow&&e.contentWindow.confirmedClickVisible&&(i=!0)}))}})),e.slot.ccp=i,l.logMessage("__ ConfirmedClickPenalty : Check: "+i+" for: ",e.slot.getSlotElementId()),i&&B("ccp",{adunit:e.slot.getAdUnitPath()},(()=>{l.logMessage("__ AnalyticsTrack : Sent confirmedClickPenalty!")}));let n=window.sessionStorage.getItem("asc_ccp");n&&"true"==n.toString()||window.sessionStorage.setItem("asc_ccp",i.toString())}catch(e){l.logWarn("__ ConfirmedClickPenalty : Cannot access content of ad",e)}b.dfp&&b.dfp.fastClickProtection&&b.dfp.fastClickProtection.indexOf(p.getDevice())>=0&&function(e){let t=document.createElement("div");t.id=e.id+"_afc";let a=document.querySelector("div[id='"+e.id+"'] div[id*='ads_iframe']");a&&(a.appendChild(t),t.style&&t.style.position&&"absolute"==t.style.position||(t.style.cssText="\n color: #fff;\n width:100%;height:100%;\n position:absolute;\n background-color:#000;\n top:0;\n left:0;\n right:0;\n z-index: 2147483640;\n opacity: 0;\n overflow-y:hidden;\n overflow-x:hidden;\n margin:0 auto;"),"static"!=a.style.position&&""!=a.style.position||(a.style.position="relative"),l.logMessage("__ FastClickProtection : Setting Fast Click Protection for: ",e.id),t.addEventListener("click",(()=>{setTimeout((()=>{t.parentNode.removeChild(t),l.logMessage("__ FastClickProtection : Clearing Fast Click Protection for: ",e.id)}),500)})))}(t),t.emptyConsecutiveCount=0}let i=parseInt(t.dataset.aaRefreshTimed);if(NaN==i&&(i=0),b.refresh.accelerate&&b.refresh.accelerate.length>0&&i>0){let e=0;b.refresh.accelerate.forEach((a=>{parseFloat(t.estCPM)>parseFloat(a.estCPM)&&(e=parseInt(a.seconds))})),i-=e,i<=0&&(i=0),l.logMessage("__ Refresh : Accelerate refresh for :"+t.dataset.aaAdunit+" with: "+e+" for "+i)}i>0&&(b.refresh.maxLimit&&e.slot.rit>=b.refresh.maxLimit?l.logMessage("__ Refresh : Refresh Limit HIT :"+t.dataset.aaAdunit+" with count: "+e.slot.rit):b.refresh.maxEmpty&&t.emptyCount>=b.refresh.maxEmpty?l.logMessage("__ Refresh : Refresh Empty Limit HIT :"+t.dataset.aaAdunit+" with count: "+t.emptyCount):b.refresh.maxConsecutiveEmpty&&t.emptyConsecutiveCount>=b.refresh.maxConsecutiveEmpty?l.logMessage("__ Refresh : Refresh Consecutive Empty Limit HIT :"+t.dataset.aaAdunit+" with count: "+t.emptyConsecutiveCount):b.refresh.stopAdvertisers.indexOf(e.advertiserId)>=0?l.logMessage("__ Refresh : STOP refreshing adunit "+t.dataset.aaAdunit+" HIT advertiser "+e.advertiserId):(b.refresh.forceRefreshRateForAdvertiser&&b.refresh.forceRefreshRateForAdvertiser.length>0&&b.refresh.forceRefreshRateForAdvertiser.forEach((t=>{parseInt(t.advertiserId)==e.advertiserId&&(l.logMessage("__ Refresh : Force Refresh Rate Change, from "+i+" to "+t.refreshRate+" seconds"),i=parseInt(t.refreshRate))})),l.logMessage("__ Refresh : TIMED Refreshing adunit "+t.dataset.aaAdunit+" in "+i+" seconds"),xe.push((function(){t.dataset.status="processing"}),i)))}))})),M.cmd.push((function(){M.pubads().addEventListener("impressionViewable",(function(e){e=Object.assign({},e,e.slot.getResponseInformation()),l.logMessage("__ GAM : Adunit is now viewable: ",e.slot.getSlotElementId(),e.slot.getAdUnitPath());let t=document.getElementById(e.slot.getSlotElementId());if(!t)return void l.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId(),e.slot.getAdUnitPath());if(!t.dataset.aaad)return void l.logWarn("__ Ads : Not a wapper adunit, skipping! ",e.slot.getResponseInformation());e.companyIds&&e.companyIds[0]&&(e.advertiserId=e.companyIds[0]);let a=parseInt(t.dataset.aaRefreshViewable);if(NaN==a&&(a=0),b.refresh.accelerate&&b.refresh.accelerate.length>0&&a>0){let e=0;b.refresh.accelerate.forEach((a=>{parseFloat(t.estCPM)>parseFloat(a.estCPM)&&(e=parseInt(a.seconds))})),a-=e,a<=0&&(a=0),l.logMessage("__ Refresh : Accelerate refresh for :"+t.dataset.aaAdunit+" with: "+e+" for "+a)}a>0&&(b.refresh.maxLimit&&e.slot.rit>=b.refresh.maxLimit?l.logMessage("__ Refresh : Refresh Limit HIT :"+t.dataset.aaAdunit+" with count: "+e.slot.rit):b.refresh.stopAdvertisers.indexOf(e.advertiserId)>=0?l.logMessage("__ Refresh : STOP refreshing adunit "+t.dataset.aaAdunit+" HIT advertiser "+e.advertiserId):(b.refresh.forceRefreshRateForAdvertiser&&b.refresh.forceRefreshRateForAdvertiser.length>0&&b.refresh.forceRefreshRateForAdvertiser.forEach((t=>{parseInt(t.advertiserId)==e.advertiserId&&(l.logMessage("__ Refresh : Force Refresh Rate Change, from "+a+" to "+t.refreshRate+" seconds"),a=parseInt(t.refreshRate))})),l.logMessage("__ Refresh : Viewable Refreshing adunit "+t.dataset.aaAdunit+" in "+a+" seconds"),xe.push((function(){t.dataset.status="processing"}),a)))}))}));var ke="asc_bc_";function Be(e){try{return window.sessionStorage.removeItem(ke+e),!0}catch(e){return l.logWarn("__ BC : Error removing BC bid: ",e),!1}}function Le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null==e&&(e=document.querySelectorAll('[data-aaad="true"]'),e=[].slice.call(e)),l.logMessage("__ API : Calling on demand Refresh for:",e),e.forEach((function(e){e.dataset.status="processing"})),setTimeout(_e,100)}function Re(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null==e&&(e=document.querySelectorAll('[data-aaad="true"]'),e=[].slice.call(e)),l.logMessage("__ API : Calling on demand destroy for:",e),e.forEach((function(e){M.cmd.push((function(){let t=M.pubads().getSlots().filter((function(t){return t.getSlotElementId()==e.id}));t.length&&t.length>0&&M.destroySlots(t)})),e.innerHTML="",e.dataset.aaad="false"}))}c.cmd.push((function(){c.onEvent("requestBids",(function(e){l.logMessage("__ Timing : Requesting bids, time:",Date.now()-m)})),c.onEvent("beforeRequestBids",(function(e){!function(){if(!b.targeting)return!1;if(!b.targeting.uids)return!1;let e=0,t=Object.keys(c.getUserIds());e=t.length,M.cmd.push((function(){e>0&&M.pubads().setTargeting("uids",t)})),M.cmd.push((function(){M.pubads().setTargeting("uids_c",e.toString())}))}()})),c.onEvent("auctionInit",(function(e){let t=Date.now()-m;if(l.logMessage("__ Timing : Initiating Auction, time:",t),b.targeting&&b.targeting.speed&&M.cmd.push((function(){if(f){let e=M.pubads().getTargeting("waai");e.length&&e.length>0&&M.pubads().clearTargeting("waai")}else t>1e4&&(t=1e4),M.pubads().setTargeting("waai",(100*Math.round(t/100)).toString()),f=!0})),M.cmd.push((function(){let e=M.pubads().getTargeting("wabt");e.length&&e.length>0&&M.pubads().clearTargeting("wabt")})),M.cmd.push((function(){c.registerSignalSources()})),b.analytics.growthcode)if(W().isSet){if(["US","AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB","IL"].indexOf(W().cc)>=0){let e=c.getUserIds();e.pubcid&&J(e.pubcid)}}else r.on(d.FP._UPDATE_USER_INFO,(()=>{if(["US","AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB","IL"].indexOf(W().cc)>=0){let e=c.getUserIds();e.pubcid&&J(e.pubcid)}}))})),c.onEvent("auctionEnd",(function(e){if(l.logMessage("__ Timing : Auction END, time:",Date.now()-m),b.prebid.bidCaching){let t=function(){let e=Object.keys(window.sessionStorage),t=[],a=c.getAuctionBidResponses().map((e=>e.adId));return e.forEach((e=>{if(!(e.indexOf(ke)<0))try{let i=JSON.parse(window.sessionStorage.getItem(e));if(i.responseTimestamp+1e3*i.ttl<=l.timestamp())return l.logMessage("__ BC : Bid expired, removing -> ",i),Be(i.adId),!1;if(a.indexOf(i.adId)>=0)return!1;t.push(i)}catch(e){return l.logWarn("__ BC : Error getting BC bid: ",e),!1}})),t}();l.logMessage("__ BC : get bids -> ",t),t.forEach((t=>{!function(e,t){let a=t.auctionId,i=l.getUniqueIdentifierStr(),n=l.getUniqueIdentifierStr();if(!e.adunit)return!1;let r=document.querySelectorAll('[data-aa-adunit="'+e.adunit+'"]');r=[].slice.call(r),r=r.filter((t=>R(t.dataset.aaSizes).map((e=>e[0]+"x"+e[1])).indexOf(e.width+"x"+e.height)>=0));let d=!1;if(r.forEach((e=>{d||(d=e),d.getBoundingClientRect().top<0?(e.getBoundingClientRect().top>=0||Math.abs(e.getBoundingClientRect().top)<Math.abs(d.getBoundingClientRect().top))&&(d=e):e.getBoundingClientRect().top>=0&&Math.abs(e.getBoundingClientRect().top)<Math.abs(d.getBoundingClientRect().top)&&(d=e)})),!d)return!1;let s={};s.auctionId=a,s.auctionStart=l.timestamp(),s.bidderCode=e.bidderCode,s.bidderRequestId=i,s.src="client",s.timeout=A,s.bids=[];let o={};o.adUnitCode=d.id,o.auctionId=a,o.bidId=n,o.bid_id=n,o.bidRequestsCount=1,o.bidder=e.bidderCode,o.bidderRequestId=i,o.bidderRequestsCount=1,o.bidderWinsCount=0,s.bids.push(o),t.bidderRequests.push(s),e.adUnitCode=d.id,e.requestId=n,e.auctionId=a,e.cacheStatus="storage",e.getStatusCode=function(){return 1},e.getSize=function(){return(e.width?e.width:1)+"x"+(e.height?e.height:1)},e.getIdentifiers=function(){return{src:e.source?e.source:"client",bidder:e.bidderCode?e.bidderCode:"",bidId:e.requestId?e.requestId:"",transactionId:e.transactionId?e.transactionId:"",auctionId:e.auctionId?e.auctionId:""}},t.bidsReceived.push(e),l.logMessage("__ BC : Pushed cached bid -> ",e,d.id)}(t,e)}))}let t=e.auctionEnd-e.timestamp;t>1e4&&(t=1e4),b.targeting&&b.targeting.speed&&M.cmd.push((function(){M.pubads().setTargeting("waae",(100*Math.round(t/100)).toString())}))})),c.onEvent("bidResponse",(function(e){if("native"==e.mediaType&&e.native){l.logMessage("__ AnalyticsTrack : Send Native Bid:",e),B("nativeTest",{bid:e},(()=>{l.logMessage("__ AnalyticsTrack : Send Native Bid Succesful:",e)}));let t=me(document.getElementById(e.adUnitCode));"1"!=t[0]&&"1"!=t[1]&&(e.ad=`\n <script src="https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/native-render.js"><\/script>\n <script>\n var pbNativeTagData = {};\n pbNativeTagData.pubUrl = "${window.document.location.href}";\n pbNativeTagData.adId = "${e.adId}";\n pbNativeTagData.requestAllAssets = true;\n window.pbNativeTag.renderNativeAd(pbNativeTagData);\n <\/script>\n `,e.width=parseInt(t[0]),e.height=parseInt(t[1]),e.size=e.width+"x"+e.height,e.adserverTargeting&&e.adserverTargeting[b.targetingPrefix+"_size"]&&"0x0"==e.adserverTargeting[b.targetingPrefix+"_size"]&&(e.adserverTargeting[b.targetingPrefix+"_size"]=e.width+"x"+e.height),l.logMessage("__ Native : Bid is Native, added renderer -> ",e))}b.prebid.bidCaching&&(!function(e){if(!e.adId)return!1;if(!e.ad)return!1;if(!e.cpm)return!1;if(e.cpm<b.prebid.bidCaching.floor)return l.logMessage("__ BC : Bid under the floor -> ",e.cpm),!1;if(e.ad.length>b.prebid.bidCaching.maxLength)return l.logMessage("__ BC : Bid string too big -> ",e.ad.length),!1;let t=document.getElementById(e.adUnitCode);if(!t)return l.logMessage("__ BC : Cannot find element for bid "),!1;if(!t.dataset.aaad)return l.logMessage("__ BC : Bid is not for our wrapper"),!1;let a=t.dataset.aaAdunit;if(!a)return l.logMessage("__ BC : Bid doesnt`t have an adunit"),!1;e.adunit=a;try{return window.sessionStorage.setItem(ke+e.adId,JSON.stringify(e)),!0}catch(e){return l.logWarn("__ BC : Error setting BC bid: ",e),!1}}(e)?l.logMessage("__ BC : Cannot Cache bid -> ",e):l.logMessage("__ BC : Bid cached -> ",e)),Math.random()<=.001&&B("rawBids",{bid:e},(()=>{l.logMessage("__ AnalyticsTrack : Send Bid:",e)}))})),c.onEvent("bidWon",(function(e){b.prebid.bidCaching&&(l.logMessage("__ BC : Removed bid from caching -> ",e),Be(e.adId));let t="gam";try{let a=document.querySelector("div[id='"+e.adUnitCode+"'] div iframe[id*='ads_iframe']");a&&a.id.indexOf("fallback_ads_iframe")>=0&&(t="fallback")}catch(e){}B("discrepancy",{bid:e,adserver:t},(()=>{l.logMessage("__ AnalyticsTrack : Send Bid:",{bid:e,adserver:t})}))})),c.onEvent("bidTimeout",(function(e){l.logMessage("__ Timing : Bid Timeout, time:",Date.now()-m,e);let t=[];e.forEach((e=>{if("s2s"==e.src)return!1;t.indexOf(e.bidder)<0&&t.push(e.bidder)})),b.targeting&&b.targeting.speed&&M.cmd.push((function(){M.pubads().setTargeting("wabt",t)}))})),c.onEvent("setTargeting",(function(e){l.logMessage("__ Timing : Set Targeting, time:",Date.now()-m);let t=[];c.getAuctionBidsRequested().forEach((e=>{if("s2s"==e.src)return!1;t.indexOf(e.bidderCode)<0&&t.push(e.bidderCode)})),c.getAuctionBidResponses().forEach((e=>{if("s2s"==e.src)return!1;let a=t.indexOf(e.bidderCode);a>=0&&t.splice(a,1)})),c.getAuctionNoBids().forEach((e=>{if("s2s"==e.src)return!1;let a=t.indexOf(e.bidder);a>=0&&t.splice(a,1)})),t.length>0&&l.logInfo("__ Ads : Real Timeout Bidders: ",t),b.targeting&&b.targeting.speed&&M.cmd.push((function(){let e=M.pubads().getTargeting("wabtr");e.length&&e.length>0&&M.pubads().clearTargeting("wabtr"),t.length>0&&M.pubads().setTargeting("wabtr",t)}))})),c.onEvent("adRenderFailed",(function(e){l.logError("__ Ads : Ad Render Failed:",e,Date.now()-m)})),c.onEvent("auctionDebug",(function(e){l.logMessage("__ Ads : JS Error:",e,Date.now()-m),e.type&&e.arguments})),c.onEvent("bidderError",(function(e){l.logMessage("__ Ads : Bidder Error:",e,Date.now()-m),(e.bidderRequest||e.bidderRequest.bidderCode)&&(!function(e){let t=window.localStorage.getItem(S);t||(t="[]"),t=JSON.parse(t);let a=[];t.forEach((e=>{if(a.indexOf(e.name)>=0)return!1;a.push(e.name)})),a.indexOf(e)<0&&t.push({name:e,time:Date.now()}),window.localStorage.setItem(S,JSON.stringify(t))}(e.bidderRequest.bidderCode),l.logInfo("__ Ads : Bidder added to disable bidder list -"+e.bidderRequest.bidderCode+"-"))}))})),r.on(d.FP.BID_ADJUSTMENT,(function(e){b.bidAdjustments.s2s&&(b.bidAdjustments.s2s=parseFloat(b.bidAdjustments.s2s),b.bidAdjustments.s2s>0&&"s2s"==e.source&&(e.cpm=e.cpm*b.bidAdjustments.s2s,l.logMessage("__ Ads : Adjusting S2S bid with adjustment :",b.bidAdjustments.s2s,"to:",e.cpm)))})),c.refresh=Le,c.refreshIds=function(e){let t=[];e.forEach((function(e){let a=document.getElementById(e);a&&t.push(a)})),Le(t)},c.refreshAdunits=function(e){let t=[];e.forEach((function(e){let a=document.querySelectorAll('[data-aa-adunit="'+e+'"]');a=[].slice.call(a),a.length>=0&&a.forEach((function(e){e&&t.push(e)}))})),Le(t)},c.destroy=Re,c.destroyIds=function(e){let t=[];e.forEach((function(e){let a=document.getElementById(e);a&&t.push(a)})),Re(t)},c.destroyAdunits=function(e){let t=[];e.forEach((function(e){let a=document.querySelectorAll('[data-aa-adunit="'+e+'"]');a=[].slice.call(a),a.length>=0&&a.forEach((function(e){e&&t.push(e)}))})),Re(t)},c.setPrivacySettings=function(e){"object"!=typeof e&&l.logError("__ setPrivacySettings : parameter is not correct ");let t=!1;e.childDirectedTreatment&&!0===e.childDirectedTreatment&&(t=!0),c.setConfig({coppa:t}),M.cmd.push((function(){M.pubads().setPrivacySettings(e)})),l.logMessage("__ setPrivacySettings : setting parameter: ",e)};var Pe=!1,Fe=null;function Ue(e,t,a){if(null===Fe)return!1;let i=JSON.parse(JSON.stringify(t));return Pe?(Pe.promise.then((t=>{t[e](i,a).then((t=>l.logMessage("__ Console : sendProxy",e,i,a)))})),!0):(l.logInfo("__ Console : sendProxy FAILED, retrying in 1 sec",e,t,a),setTimeout((()=>{Ue(e,t,a)}),1e3),!1)}null===ne("ascConsole")&&null===ne("magma")||(localStorage.setItem("_asc_console",Date.now()+36e5),l.logMessage("__ Console : Enabling Console for 1 hour")),null!==localStorage.getItem("_asc_console")&&(parseInt(localStorage.getItem("_asc_console"))>=Date.now()?(l.logMessage("__ Console : Enabled for another "+parseInt(localStorage.getItem("_asc_console")-Date.now())/1e3+" seconds"),Fe=!0):(l.logMessage("__ Console : Expired"),localStorage.removeItem("_asc_console"))),l.logMessage("__ Console : is enabled: ",Fe);var Oe=!1;function Ne(e){if(!Oe)return;let t=document.getElementById(e.id+"_adunitoverlay");t||(t=document.createElement("div"),t.id=e.id+"_adunitoverlay",t.dataset.adunitOverlay=!0,e.appendChild(t)),t.style&&t.style.position&&"absolute"==t.style.position||(t.style.cssText="\n color: #000;\n width:1px;height:1px;\n position:absolute;\n background-color:#fff;\n top:0;\n left:0;\n right:0;\n z-index: 2147483642;\n opacity: 0.9;\n overflow-y: scroll;\n overflow-x:hidden;\n margin:0 auto;\n padding:6px;\n border: 3px dashed green;\n line-height:16px !important;\n font-size:14px !important;\n text-align: left !important;"),"static"==getComputedStyle(e).position&&(e.style.position="relative");try{let a=document.querySelector("div[id='"+e.id+"'] div iframe[id*='ads_iframe']");if(a){let i=getComputedStyle(a);t.style.width=i.width,t.style.height=i.height,a.id.indexOf("fallback_ads_iframe")>=0&&(e.overlay.fallback=!0)}}catch(e){}setTimeout((()=>{try{let a=document.querySelector("div[id='"+e.id+"'] div iframe[id*='ads_iframe']");if(a){let e=getComputedStyle(a);t.style.width=e.width,t.style.height=e.height}let i=getComputedStyle(t);parseInt(i.width.replace("px",""))<=50&&(t.style.width="300px"),parseInt(i.height.replace("px",""))<=50&&(t.style.height="300px"),M.cmd.push((function(){M.pubads().collapseEmptyDivs()&&(e.style.display="")}))}catch(e){}}),1e3),t.innerHTML="",t.innerHTML=t.innerHTML+"Adunit: <b>"+e.overlay.adunit+"</b><br>",e.overlay.size&&e.overlay.size[0]&&e.overlay.size[1]&&(t.innerHTML=t.innerHTML+"Ad server response Size: <b>"+e.overlay.size[0]+"x"+e.overlay.size[1]+"</b><br>"),e.overlay.targetingMap&&e.overlay.targetingMap[b.targeting.refreshIteration]&&(t.innerHTML=t.innerHTML+"Refresh Count: <b>"+e.overlay.targetingMap[b.targeting.refreshIteration]+"</b><br>"),t.innerHTML=t.innerHTML+"-<br>",e.estCPM&&(t.innerHTML=t.innerHTML+"Estimated CPM: <b>"+e.estCPM+"</b><br>"),e.overlay.queryId&&(t.innerHTML=t.innerHTML+"ID: <b>"+e.overlay.queryId+"</b><br>"),e.overlay.advertiserId&&(t.innerHTML=t.innerHTML+"Advertiser ID: <b>"+e.overlay.advertiserId+"</b><br>"),e.overlay.companyIds&&(t.innerHTML=t.innerHTML+"Company IDs: <b>"+JSON.stringify(e.overlay.companyIds)+"</b><br>"),e.overlay.isBackfill&&(t.innerHTML=t.innerHTML+"Backfill: <b>Yes</b><br>"),e.overlay.isEmpty&&(t.innerHTML=t.innerHTML+'Is Empty: <b style="color:red;">Yes</b><br>'),e.overlay.fallback?t.innerHTML=t.innerHTML+'Fallback render: <b style="color:red;">Yes</b><br>':t.innerHTML=t.innerHTML+"Fallback render: <b>No</b><br>",e.overlay.bidWonTime&&e.overlay.bidder&&(t.innerHTML=t.innerHTML+"HB won: <b>"+e.overlay.bidder+"</b> Size: <b>"+e.overlay.prebidSize+"</b> ID: <b>"+e.overlay.prebidCreativeId+"</b><br> Advertiser Domains: <b>"+JSON.stringify(e.overlay.advertiserDomains)+"</b><br>"),t.innerHTML=t.innerHTML+"-<br>",t.innerHTML=t.innerHTML+"HB Auction: <b>"+(e.overlay.auctionEndTime-e.overlay.auctionInitTime)+"ms</b><br>",t.innerHTML=t.innerHTML+"GAM Request: <b>"+(e.overlay.slotResponseTime-e.overlay.slotRequestedTime)+"ms</b><br>",t.innerHTML=t.innerHTML+"Creative Load: <b>"+(e.overlay.slotLoadTime-e.overlay.slotRenderedTime>=0?e.overlay.slotLoadTime-e.overlay.slotRenderedTime:"Cannot detect load time ")+"ms</b><br>",t.innerHTML=t.innerHTML+"-<br>",t.innerHTML=t.innerHTML+"Total: <b>"+(e.overlay.slotLoadTime-e.overlay.auctionInitTime)+"ms</b><br>",t.innerHTML=t.innerHTML+"-<br>",e.overlay.targetingMap&&(e.overlay.targetingMap[b.targetingPrefix+"_bidder"]&&e.overlay.targetingMap[b.targetingPrefix+"_bidder"][0]?t.innerHTML=t.innerHTML+"HB bid: <b>Yes</b> Bidder: <b>"+e.overlay.targetingMap[b.targetingPrefix+"_bidder"][0]+"</b> CPM: <b>"+e.overlay.targetingMap[b.targetingPrefix+"_pb"][0]+"</b><br>":t.innerHTML=t.innerHTML+"Prebid bid: <b>No</b><br>",e.overlay.targetingMap.amznbid&&e.overlay.targetingMap.amznbid[0]&&"2"!=e.overlay.targetingMap.amznbid[0]?t.innerHTML=t.innerHTML+"HB A9 bid: <b>Yes</b><br>":t.innerHTML=t.innerHTML+"A9 bid: <b>No</b><br>",e.overlay.targetingMap[b.targetingPrefix+"_source"]&&e.overlay.targetingMap[b.targetingPrefix+"_source"][0]&&(t.innerHTML=t.innerHTML+"HB Bid source: <b>"+e.overlay.targetingMap[b.targetingPrefix+"_source"][0]+"</b><br>"),e.overlay.targetingMap[b.targetingPrefix+"_cs"]&&e.overlay.targetingMap[b.targetingPrefix+"_cs"][0]&&(t.innerHTML=t.innerHTML+"HB Bid caching: <b>"+e.overlay.targetingMap[b.targetingPrefix+"_cs"][0]+"</b><br>"),e.overlay.targetingMap[b.targetingPrefix+"_bd"]&&e.overlay.targetingMap[b.targetingPrefix+"_bd"][0]&&(t.innerHTML=t.innerHTML+"HB Bid density: <b>"+e.overlay.targetingMap[b.targetingPrefix+"_bd"][0]+"</b><br>")),M.cmd.push((function(){M.pubads().getTargeting("wabt")&&M.pubads().getTargeting("wabt")[0]&&(t.innerHTML=t.innerHTML+"Timeout bidders: <b>"+JSON.stringify(M.pubads().getTargeting("wabt"))+"</b><br>"),M.pubads().getTargeting("wabtr")&&M.pubads().getTargeting("wabtr")[0]&&(t.innerHTML=t.innerHTML+"Timeout before request: <b>"+JSON.stringify(M.pubads().getTargeting("wabtr"))+"</b><br>")}))}function He(e){Ue("cmpMessage",{message:e},Date.now()-m)}null!==ne("ascOverlays")&&(Oe=!0),null!==Fe&&(Oe=!0),Oe&&(M.cmd.push((function(){M.pubads().addEventListener("slotRequested",(function(e){let t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.slotRequestedTime=Date.now()):l.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())})),M.pubads().addEventListener("slotResponseReceived",(function(e){let t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.slotResponseTime=Date.now()):l.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())})),M.pubads().addEventListener("slotOnload",(function(e){let t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.slotLoadTime=Date.now(),Ne(t)):l.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())})),M.pubads().addEventListener("slotRenderEnded",(function(e){let t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.slotRenderedTime=Date.now(),t.overlay.targetingMap=e.slot.getTargetingMap(),t.overlay.queryId=e.slot.getEscapedQemQueryId(),t.overlay.adunit=e.slot.getAdUnitPath(),t.overlay.advertiserId=e.advertiserId,t.overlay.campaignId=e.campaignId,t.overlay.companyIds=e.companyIds,t.overlay.creativeId=e.creativeId,t.overlay.isBackfill=e.isBackfill,t.overlay.isEmpty=e.isEmpty,t.overlay.lineItemId=e.lineItemId,t.overlay.sourceAgnosticCreativeId=e.sourceAgnosticCreativeId,t.overlay.sourceAgnosticLineItemId=e.sourceAgnosticLineItemId,t.overlay.yieldGroupIds=e.yieldGroupIds,t.overlay.size=e.size,e.isEmpty?(t.overlay.slotLoadTime=Date.now(),setTimeout((()=>{Ne(t)}),1e3)):Ne(t),Ue("slotRenderEnded",{isEmpty:e.isEmpty,slotContentChanged:e.slotContentChanged,size:e.size,advertiserId:e.advertiserId,campaignId:e.campaignId,creativeId:e.creativeId,lineItemId:e.lineItemId,isBackfill:e.isBackfill,yieldGroupIds:e.yieldGroupIds,companyIds:e.companyIds,adUnitPath:e.slot.getAdUnitPath(),slotElementId:e.slot.getSlotElementId(),targetingMap:e.slot.getTargetingMap()},Date.now()-m)):l.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())})),M.pubads().addEventListener("impressionViewable",(function(e){let t=document.getElementById(e.slot.getSlotElementId());t?t.dataset.aaad&&Ue("impressionViewable",{adUnitPath:e.slot.getAdUnitPath(),slotElementId:e.slot.getSlotElementId()},Date.now()-m):l.logWarn("__ Ads : Cannot find element in page, skipping! ",e.slot.getSlotElementId())}))})),c.cmd.push((function(){c.onEvent("auctionInit",(function(e){e.adUnitCodes.forEach((e=>{let t=document.getElementById(e);t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.auctionInitTime=Date.now())})),Ue("auctionInit",e,Date.now()-m),Ue("timeline","auctionInit_"+e.auctionId,Date.now())})),c.onEvent("auctionEnd",(function(e){e.adUnitCodes.forEach((e=>{let t=document.getElementById(e);t&&t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.auctionEndTime=Date.now())})),Ue("auctionEnd",{auctionId:e.auctionId,timestamp:e.timestamp,auctionEnd:e.auctionEnd,auctionStatus:e.auctionStatus,adUnitCodes:e.adUnitCodes,timeout:e.timeout},Date.now()-m),Ue("timeline","auctionEnd_"+e.auctionId,Date.now())})),c.onEvent("bidWon",(function(e){let t=document.getElementById(e.adUnitCode);t.dataset.aaad&&(t.overlay||(t.overlay={}),t.overlay.bidWonTime=Date.now(),t.overlay.bidder=e.bidder,t.overlay.cpm=e.cpm,t.overlay.prebidSize=e.size,t.overlay.prebidCreativeId=e.creativeId,t.overlay.advertiserDomains=e.meta&&e.meta.advertiserDomains?e.meta.advertiserDomains:[],Ue("bidWon",{bidderCode:e.bidderCode,adId:e.adId,requestId:e.requestId,mediaType:e.mediaType,source:e.source,cpm:e.cpm,currency:e.currency,auctionId:e.auctionId,size:e.getSize(),adUnitCode:e.adUnitCode},Date.now()-m))})),c.onEvent("bidResponse",(function(e){Ue("bidResponse",{bidderCode:e.bidderCode,adId:e.adId,requestId:e.requestId,mediaType:e.mediaType,source:e.source,cpm:e.cpm,currency:e.currency,auctionId:e.auctionId,size:e.getSize(),adUnitCode:e.adUnitCode,timeToRespond:e.timeToRespond},Date.now()-m)}))}))),document.addEventListener("asc",(function(e){l.logMessage("__ Ads : asc event: ",e),_e()})),function(e,t){e=e||"docReady",t=t||window;var a=[],i=!1,n=!1;function r(){if(!i){i=!0;for(var e=0;e<a.length;e++)a[e].fn.call(window,a[e].ctx);a=[]}}function d(){"complete"===document.readyState&&r()}t[e]=function(e,t){if("function"!=typeof e)throw new TypeError("callback for docReady(fn) must be a function");i?setTimeout((function(){e(t)}),1):(a.push({fn:e,ctx:t}),"complete"===document.readyState||!document.attachEvent&&"interactive"===document.readyState?setTimeout(r,1):n||(document.addEventListener?(document.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1)):(document.attachEvent("onreadystatechange",d),window.attachEvent("onload",r)),n=!0))}}("docReady",window),docReady((function(){y=!0,Ue("timeline","wrap_load",m);let e=Date.now()-m;Ue("timeline","page_load",Date.now()),l.logMessage("__ Timing : Page loaded in ->",e),e>1e4&&(e=1e4);let t=(100*Math.round(e/100)).toString();var a,i,n,r,d,s,o;b.targeting&&b.targeting.speed&&M.cmd.push((()=>{M.pubads().setTargeting("page_r",t)})),b.wrapper.disableInitialProcessAdsOnPage||_e(),Ae(),b.targeting&&b.targeting.pageAdDensity&&setTimeout((()=>{let e=$();M.cmd.push((function(){M.pubads().setTargeting("pad",e.toString())}))}),5e3),b.analytics&&b.analytics.clarity&&(a=window,i=document,n="clarity",r="script",d=b.analytics.clarity,a[n]=a[n]||function(){(a[n].q=a[n].q||[]).push(arguments)},(s=i.createElement(r)).async=1,s.src="https://www.clarity.ms/tag/"+d,(o=i.getElementsByTagName(r)[0]).parentNode.insertBefore(s,o)),null!==Fe&&function(){var e="https://wrapperconsole.nyc3.cdn.digitaloceanspaces.com/063.html";null!==localStorage.getItem("wrapperConsoleDebbugLocation")&&(e=localStorage.getItem("wrapperConsoleDebbugLocation"));var t=document.createElement("script");t.src="https://unpkg.com/penpal/dist/penpal.min.js",t.type="text/javascript",t.onload=function(){l.logMessage("__ Console : Loaded Iframe Proxy console from:",e),function(e){let t=document.createElement("iframe");function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"no";t.width=e,t.height=a,t.frameBorder=i,t.scrolling=n}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t.style.cssText=e}function n(e,a){if(!e)return!1;t.style[e]=a}t.src=e,document.body.appendChild(t);let r=460,d=600;p.detectWidth()<768&&(r=p.detectWidth("window"),d=30),a(r,d),i(),n("position","fixed"),n("top","-1000px"),n("right","-1000px"),n("zIndex","2147483646"),n("display","none"),(Pe=window.Penpal.connectToChild({iframe:t,methods:{iframeMorph:a,iframeCssText:i,iframeStyle:n,iframeExpand:function(){d=600,a(r,d)},iframeCollapse:function(){d=30,a(r,d)},iframeDestroy:function(){l.logMessage("__ Console : Destroying console"),t.remove();let e=document.querySelectorAll("[data-adunit-overlay]");e=[].slice.call(e),e.forEach((e=>{e.remove()})),localStorage.removeItem("_asc_console"),Fe=null},getWrapperConfig:()=>le(),getWrapperInternalAdunits:()=>pe(),getPageAdDensity:()=>$()},debug:!1})).promise.then((e=>{p.detectWidth("window")<768&&e.isSmallScreen().then((()=>{}))}))}(e)};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(t,a)}()})),c.isLoaded=!0},5212:(e,t,a)=>{a.d(t,{Z:()=>r});let i={},n=[];i.addFormat=function(e){n.push(e)},i.getFormats=function(){return n},i.getFormatsNames=function(){return n.map((e=>e.name))},i.getFormat=function(e){let t={};return n.forEach((a=>{a.name==e&&(t=a)})),t};const r=i},7548:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detectDevice:()=>detectDevice,detectHeight:()=>detectHeight,detectWidth:()=>detectWidth,getDevice:()=>getDevice,getSesDepth:()=>getSesDepth,incrementSesDepth:()=>incrementSesDepth,isEmpty:()=>isEmpty,transformToGAMTargetingMap:()=>transformToGAMTargetingMap});var _utils_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7746);const config=__webpack_require__(4740),deviceDetection=__webpack_require__(1346);let sesDepth=0,incrementSesDepth=function(){try{let e=window.sessionStorage.getItem("_asc_sesdepth");e&&(sesDepth=parseInt(e))}catch(e){}sesDepth=parseInt(sesDepth)+1;try{window.sessionStorage.setItem("_asc_sesdepth",sesDepth.toString())}catch(e){}return(0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.logMessage)("__ Utils : Incrementing Session Depth",sesDepth),parseInt(sesDepth)},getSesDepth=function(){return(0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.logMessage)("__ Utils : Session Depth is:",sesDepth),parseInt(sesDepth)},detectWidth=function(e){return void 0===e&&(e=config.deviceDetection?config.deviceDetection:"window"),"screen"==e&&window.screen&&window.screen.width?window.screen.width:window.screen.width||window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth},detectHeight=function(e){return void 0===e&&(e=config.deviceDetection?config.deviceDetection:"window"),"screen"==e&&window.screen&&window.screen.height?window.screen.height:window.screen.height||window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight},device="desktop",detectDevice=function(){return deviceDetection.forEach((dd=>{dd.condition=dd.condition.split("{SCREENWIDTH}").join(detectWidth().toString());let evaluateCondition=eval(dd.condition);(0,_utils_js__WEBPACK_IMPORTED_MODULE_0__.logMessage)("__ Detection : Device Detection | Checking condition ->",dd.name,dd.condition,evaluateCondition),evaluateCondition&&(device=dd.name)})),device},getDevice=function(){return device},isEmpty=function(e){let t=!0;if(!e)return!1;let a=e.childNodes;return a=[].slice.call(a),a.forEach((e=>{if(e.id&&e.id.indexOf("__container__")>=0){let a=e.childNodes;a=[].slice.call(a),a.forEach((e=>{e.tagName&&"IFRAME"==e.tagName&&e.id&&e.id.indexOf("ads_iframe")>=0&&(t=!1)}))}})),t},transformToGAMTargetingMap=function(e){let t={};return Object.keys(e).forEach((a=>{t[a]=[e[a]]})),t}},9992:e=>{e.exports=JSON.parse('{"userSync":{"syncEnabled":true,"syncsPerBidder":5,"syncDelay":15000,"syncDelayUserIds":0,"filterSettings":{"iframe":{"bidders":"*","filter":"include"},"image":{"bidders":"*","filter":"include"}},"aliasSyncEnabled":true,"userIds":[{"name":"pubCommonId","storage":{"type":"html5","name":"_pubcid","expires":365}}],"encryptedSignalSources":{"sources":[{"source":["pubcid.org","id5-sync.com","liveintent.com","liveramp.com","crwdcntrl.net","uidapi.com","33across.com","criteo.com"],"encrypt":false}]},"topics":{"maxTopicCaller":5,"bidders":[{"bidder":"pubmatic","iframeURL":"https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html","expiry":7},{"bidder":"rtbhouse","iframeURL":"https://topics.authorizedvault.com/topicsapi.html","expiry":7},{"bidder":"improvedigital","iframeURL":"https://hb.360yield.com/privacy-sandbox/topics.html","expiry":7},{"bidder":"onetag","iframeURL":"https://onetag-sys.com/static/topicsapi.html","expiry":7},{"bidder":"openx","iframeURL":"https://pa.openx.net/topics_frame.html","expiry":7},{"bidder":"taboola","iframeURL":"https://cdn.taboola.com/libtrc/static/topics/taboola-prebid-browsing-topics.html","expiry":7},{"bidder":"discovery","iframeURL":"https://api.popin.cc/topic/prebid-topics-frame.html","expiry":7},{"bidder":"undertone","iframeURL":"https://creative-p.undertone.com/spk-public/topics_frame.html","expiry":7},{"bidder":"vidazoo","iframeURL":"https://static.vidazoo.com/topics_api/topics_frame.html","expiry":7}]}},"useBidCache":true,"minBidCacheTTL":0,"eventHistoryTTL":60,"targetingControls":{"allowTargetingKeys":["BIDDER","AD_ID","PRICE_BUCKET","SIZE","SOURCE","FORMAT","UUID","CACHE_ID","CACHE_HOST","ADOMAIN"]},"maxRequestsPerOrigin":6,"timeoutBuffer":1000,"disableAjaxTimeout":true,"enableSendAllBids":false,"auctionOptions":{"suppressStaleRender":true},"performanceMetrics":false,"pubcid":{"enable":true,"expInterval":525600},"s2sConfig":{"accountId":"18c8d433-4b71-4f72-a8d9-b5af3f1e385f","enabled":false,"bidders":["appnexus","sovrn","brealtime","bpa33x","districtm","rhythmone","yieldmo","gamoshi","pubmatic","triplelift","openx","conversant","onefiftytwomedia","adtelligent","33across","oftmedia","eplanning","nobid","consumable","smaato","connectad","gourmetads","amx","onetag","improvedigital","selectmedia","grid","smilewanted","medianet","smartadserver","aax","yahoossp","inmobi"],"maxTimeout":1700,"adapter":"prebidServer","endpoint":"https://prebid.adnxs.com/pbs/v1/openrtb2/auction","syncEndpoint":"https://prebid.adnxs.com/pbs/v1/cookie_sync","extPrebid":{"cache":{"bids":{"returnCreative":true},"vastxml":{"returnCreative":true}}},"syncDelay":15000},"firstPartyData":{"uaHints":["architecture","model","platform","platformVersion","fullVersionList"]},"improvedigital":{"singleRequest":true,"usePrebidSizes":true},"ttxSettings":{"enableSRAMode":true}}')},3704:e=>{e.exports=JSON.parse('[{"adunit":"/21633373859/CIT_General_Leaderboard_Below_Menu","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[970,250],[970,90],[728,90]]}},"tablet":{"banner":{"sizes":[[728,90]]}},"mobile":{"banner":{"sizes":[[336,280],[320,50],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_General_Leaderboard_Below_Menu"}},{"bidder":"adyoulike","params":{"placement":"f1027c08cb5a09a29a9e1c26f7c83d62"}},{"bidder":"appnexus","params":{"placementId":"3311196"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2194}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"981153170"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_General_Leaderboard_Below_Menu"}}},{"bidder":"openx","params":{"unit":"540912258","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562088}},{"bidder":"seedtag","params":{"adUnitId":"32515510","publisherId":"7467-3097-01","placement":"inArticle"}},{"bidder":"sharethrough","params":{"pkey":"Vzu5EIfNcUExO7lvBCCzfrbM"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_General_Leaderboard_Below_Menu"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_General_Leaderboard_Below_Menu"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Article_Leaderboard_Below_Title","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[728,90]]}},"tablet":{"banner":{"sizes":[[468,60]]}},"mobile":{"banner":{"sizes":[[336,280],[320,50],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Article_Leaderboard_Below_Title"}},{"bidder":"adyoulike","params":{"placement":"38aa1a628a94aa0cc9dc25352fc7470d"}},{"bidder":"appnexus","params":{"placementId":"33121198"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2188}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"531498545"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Article_Leaderboard_Below_Title"}}},{"bidder":"openx","params":{"unit":"540912262","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562090}},{"bidder":"seedtag","params":{"adUnitId":"32515512","publisherId":"7467-3097-01","placement":"inArticle"}},{"bidder":"sharethrough","params":{"pkey":"wb9VS9ZBabuCZEpKuXEbO7Zy"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Article_Leaderboard_Below_Title"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Article_Leaderboard_Below_Title"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Article_Inpost_Top_Rectangle","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[336,280],[300,250]]}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Article_Inpost_Top_Rectangle"}},{"bidder":"adyoulike","params":{"placement":"ebb33912d36145f6cad45c21d7218150"}},{"bidder":"appnexus","params":{"placementId":"33121199"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2187}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"538801910"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Article_Inpost_Top_Rectangle"}}},{"bidder":"openx","params":{"unit":"540911800","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562092}},{"bidder":"seedtag","params":{"adUnitId":"32515511","publisherId":"7467-3097-01","placement":"inArticle"}},{"bidder":"sharethrough","params":{"pkey":"BVp5AaigJ9862rtRhlswfffu"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Article_Inpost_Top_Rectangle"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Article_Inpost_Top_Rectangle"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Article_Inpost_Bottom_Rectangle","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[336,280],[300,250]]}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Article_Inpost_Bottom_Rectangle"}},{"bidder":"adyoulike","params":{"placement":"34d9924874f6c97e437ab04a5f052c02"}},{"bidder":"appnexus","params":{"placementId":"33121200"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2186}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"538801910"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Article_Inpost_Bottom_Rectangle"}}},{"bidder":"openx","params":{"unit":"540912265","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562096}},{"bidder":"seedtag","params":{"adUnitId":"32515510","publisherId":"7467-3097-01","placement":"inArticle"}},{"bidder":"sharethrough","params":{"pkey":"5qsRxflzN075Uz0MRWzo3QNu"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Article_Inpost_Bottom_Rectangle"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Article_Inpost_Bottom_Rectangle"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Article_Sidebar_Top","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}},"tablet":{"banner":{"sizes":[[160,600],[120,600]]}},"mobile":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Article_Sidebar_Top"}},{"bidder":"adyoulike","params":{"placement":"CIT_Article_Sidebar_Top"}},{"bidder":"appnexus","params":{"placementId":"33121201"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2190}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"338848972"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Article_Sidebar_Top"}}},{"bidder":"openx","params":{"unit":"540912269","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562126}},{"bidder":"seedtag","params":{"adUnitId":"32515513","publisherId":"7467-3097-01","placement":"inBanner"}},{"bidder":"sharethrough","params":{"pkey":"4E80WuJGhn413nIOS49somxW"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Article_Sidebar_Top"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Article_Sidebar_Top"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Article_Sidebar_Bottom","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}},"tablet":{"banner":{"sizes":[[160,600],[120,600]]}},"mobile":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Article_Sidebar_Bottom"}},{"bidder":"adyoulike","params":{"placement":"4ebc4ca4334b1878d823210ce85d6bd1"}},{"bidder":"appnexus","params":{"placementId":"33121203"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2189}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"338848972"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Article_Sidebar_Bottom"}}},{"bidder":"openx","params":{"unit":"540912250","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562146}},{"bidder":"seedtag","params":{"adUnitId":"32515514","publisherId":"7467-3097-01","placement":"inBanner"}},{"bidder":"sharethrough","params":{"pkey":"q6PcLIYjKudkjoIqjgNwpkQd"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Article_Sidebar_Bottom"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Article_Sidebar_Bottom"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Home_Sidebar_Top","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}},"tablet":{"banner":{"sizes":[[160,600],[120,600]]}},"mobile":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Home_Sidebar_Top"}},{"bidder":"adyoulike","params":{"placement":"fc500520ead69bd4057dcc4b9dcdeda6"}},{"bidder":"appnexus","params":{"placementId":"33121204"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2196}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"338848972"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Home_Sidebar_Top"}}},{"bidder":"openx","params":{"unit":"540912252","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562188}},{"bidder":"seedtag","params":{"adUnitId":"32515519","publisherId":"7467-3097-01","placement":"inBanner"}},{"bidder":"sharethrough","params":{"pkey":"XKbHg9Jk8TwA3cYcYWOWHmpu"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Home_Sidebar_Top"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Home_Sidebar_Top"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Home_Sidebar_Bottom","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}},"tablet":{"banner":{"sizes":[[160,600],[120,600]]}},"mobile":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Home_Sidebar_Bottom"}},{"bidder":"adyoulike","params":{"placement":"47a0f64a8da672685856fb93c030b5be"}},{"bidder":"appnexus","params":{"placementId":"33121205"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2195}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"338848972"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Home_Sidebar_Bottom"}}},{"bidder":"openx","params":{"unit":"540912254","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562192}},{"bidder":"seedtag","params":{"adUnitId":"32515518","publisherId":"7467-3097-01","placement":"inBanner"}},{"bidder":"sharethrough","params":{"pkey":"wgRYRuzZms7VmV2oCxPKthQG"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Home_Sidebar_Bottom"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Home_Sidebar_Bottom"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Category_Sidebar_Top","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}},"tablet":{"banner":{"sizes":[[160,600],[120,600]]}},"mobile":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Category_Sidebar_Top"}},{"bidder":"adyoulike","params":{"placement":"7a45de088d97868ba9498db4a21d9ba0"}},{"bidder":"appnexus","params":{"placementId":"33121206"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2193}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"338848972"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Category_Sidebar_Top"}}},{"bidder":"openx","params":{"unit":"540912257","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562194}},{"bidder":"seedtag","params":{"adUnitId":"32515517","publisherId":"7467-3097-01","placement":"inBanner"}},{"bidder":"sharethrough","params":{"pkey":"oKgV9cKkNiN2WvwJiCseN7CX"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Category_Sidebar_Top"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Category_Sidebar_Top"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Category_Sidebar_Bottom","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}},"tablet":{"banner":{"sizes":[[160,600],[120,600]]}},"mobile":{"banner":{"sizes":[[336,280],[300,600],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Category_Sidebar_Bottom"}},{"bidder":"adyoulike","params":{"placement":"da062b3c603f9cc755fbbee8d8edacd7"}},{"bidder":"appnexus","params":{"placementId":"33121208"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2192}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"338848972"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Category_Sidebar_Bottom"}}},{"bidder":"openx","params":{"unit":"540912260","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562196}},{"bidder":"seedtag","params":{"adUnitId":"32515516","publisherId":"7467-3097-01","placement":"inBanner"}},{"bidder":"sharethrough","params":{"pkey":"oMyTZRxdtQfN3YPVBd98E7ZB"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Category_Sidebar_Bottom"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Category_Sidebar_Bottom"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Below_Content","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[728,90]]}},"tablet":{"banner":{"sizes":[[468,60]]}},"mobile":{"banner":{"sizes":[[336,280],[320,50],[300,250]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Below_Content"}},{"bidder":"adyoulike","params":{"placement":"9b88afbc0d0797c11739269c40a75162"}},{"bidder":"appnexus","params":{"placementId":"33121209"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":2191}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"462668884"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Below_Content"}}},{"bidder":"openx","params":{"unit":"540912264","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2562198}},{"bidder":"seedtag","params":{"adUnitId":"32515515","publisherId":"7467-3097-01","placement":"inArticle"}},{"bidder":"sharethrough","params":{"pkey":"SwE8ryIdwIrkXE41KypYf0VG"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Below_Content"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_Below_Content"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_InContent_1","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[336,280],[300,250]]}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_InContent_1"}},{"bidder":"adyoulike","params":{"placement":"2628de45fe98c5d5219b4049cd85fcbd"}},{"bidder":"appnexus","params":{"placementId":"33121211"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":367521}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"223766193"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_InContent_1"}}},{"bidder":"openx","params":{"unit":"557949465","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2572900}},{"bidder":"seedtag","params":{"adUnitId":"32515511","publisherId":"7467-3097-01","placement":"inArticle"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_InContent_1"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_InContent_1"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_InContent_2","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[336,280],[300,250]]}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_InContent_2"}},{"bidder":"adyoulike","params":{"placement":"821b132495be96bcf6b26a445d6bb746"}},{"bidder":"appnexus","params":{"placementId":"33121218"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":367520}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"469844622"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_InContent_2"}}},{"bidder":"openx","params":{"unit":"557949464","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2572898}},{"bidder":"seedtag","params":{"adUnitId":"32515512","publisherId":"7467-3097-01","placement":"inArticle"}},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_InContent_2"}},{"bidder":"triplelift","params":{"inventoryCode":"CIT_InContent_2"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_Adhesion","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[728,90]]}},"tablet":{"banner":{"sizes":[[728,90]]}},"mobile":{"banner":{"sizes":[[320,50]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{"type":"adhesion","options":{"closeButton":"true"}},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_Adhesion"}},{"bidder":"adyoulike","params":{"placement":"c6f25f9fd81cb1e229b56c1142e87049"}},{"bidder":"appnexus","params":{"placementId":"33121221"}},{"bidder":"criteo","params":{"networkId":"12126"}},{"bidder":"grid","params":{"uid":391837}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_Adhesion"}}},{"bidder":"openx","params":{"unit":"559456827","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rise","params":{"org":"62cffb8819862c0001a053cf"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":2868860}},{"bidder":"seedtag","params":{"adUnitId":"32515509","publisherId":"7467-3097-01","placement":"inScreen"}},{"bidder":"sharethrough","params":{"pkey":"ZgPoHkQ4TGfTOvLBXPvpOqVm"},"size":[728,90]},{"bidder":"sharethrough","params":{"pkey":"TS7gPOX3A6iLhaNTb86YQowH"},"size":[320,50]},{"bidder":"taboola","params":{"publisherId":"1548003","tagId":"CIT_Adhesion"}},{"bidder":"vidazoortb","params":{"cId":"654b90987add34534f192707","pId":"59ac17c192832d0011283fe3","subDomain":"exchange"}}]},{"adunit":"/21633373859/CIT_TopAdhesion","device":["desktop","tablet","mobile"],"mediaTypes":{"banner":{"sizes":[[1,1]]}},"conditionalMediaTypes":{"desktop":{"banner":{"sizes":[[728,90]]}},"tablet":{"banner":{"sizes":[[728,90]]}},"mobile":{"banner":{"sizes":[[320,50]]}}},"additionalNonHBSizes":[],"targeting":{},"lazyLoaded":"false","richMediaFormat":{},"refreshTimed":"0","refreshViewable":"30","bids":[{"bidder":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","useAdUnitCodeAsAdUnitElementId":true,"placement":"CIT_TopAdhesion"}},{"bidder":"adyoulike","params":{"placement":"100f5c15b0dc8171253126e832d1db3f"}},{"bidder":"appnexus","params":{"placementId":"32787004"}},{"bidder":"grid","params":{"uid":415364}},{"bidder":"medianet","params":{"cid":"8CU3F4F3V","crid":"671214322"}},{"bidder":"onetag","params":{"pubId":"71dbd2ada4ae37d","ext":{"unit":"CIT_TopAdhesion"}}},{"bidder":"openx","params":{"unit":"560841929","delDomain":"weblogmedia-d.openx.net"}},{"bidder":"rubicon","params":{"accountId":21196,"siteId":444146,"zoneId":3411786}},{"bidder":"seedtag","params":{"adUnitId":"33058220","publisherId":"7467-3097-01","placement":"inBanner"}},{"bidder":"sharethrough","params":{"pkey":"fDHyKTYiFvv1smv1ulXSDpWP"}}]}]')},1346:e=>{e.exports=JSON.parse('[{"name":"desktop","condition":"{SCREENWIDTH} >= 1024"},{"name":"tablet","condition":"{SCREENWIDTH} < 1024 && {SCREENWIDTH} >= 768"},{"name":"mobile","condition":"{SCREENWIDTH} < 768"}]')}},e=>{e.O(0,[9270],(()=>{return t=8286,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[7362],{6186:()=>{var o=window.googletag||{};o.cmd=o.cmd||[],window.googletag=o,o.cmd.push((function(){var t=Math.floor(100*Math.random()),a=["false","no"];t<20&&(a=1),t<15&&(a=2),t<10&&(a=3),t<5&&(a=4),o.pubads().setTargeting("floortest","object"==typeof a?a:a.toString())}))}},o=>{o.O(0,[9270],(()=>{return t=6186,o(o.s=t);var t}));o.O()}]);(self.ascChunk=self.ascChunk||[]).push([[4030],{7727:()=>{let e=window.sessionStorage.getItem("googleTest");null===e&&(e=Math.floor(100*Math.random()/1)+1,window.sessionStorage.setItem("googleTest",e.toString()));var o=window.googletag||{};o.cmd=o.cmd||[],o.cmd.push((function(){o.pubads().setTargeting("googleTest",e.toString())}))}},e=>{e.O(0,[9270],(()=>{return o=7727,e(e.s=o);var o}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[2314],{9977:()=>{var t=window.googletag||{};t.cmd=t.cmd||[],window.googletag=t,t.cmd.push((function(){var e,n,a=window.location.pathname.split("/"),o=a.length>1?a[a.length-2]:1,i=1;i=parseInt(o),isNaN(i)&&(i=1),t.pubads().setTargeting("page",i.toString()),t.pubads().setTargeting("slide",(e=document.location.pathname.split("/"),n=parseInt(e[e.length-2]),Number.isNaN(n)&&(n=1),n).toString()),window.wb_post_type&&void 0!==window.wb_post_type&&t.pubads().setTargeting("wb_post_type",window.wb_post_type.toString())})),t.cmd.push((function(){var e="category";"/"==window.document.location.pathname&&(e="homepage"),window.document.location.pathname.indexOf("/artikel/")>=0&&(e="article"),t.pubads().setTargeting("pageType",e.toString())}))}},t=>{t.O(0,[9270],(()=>{return e=9977,t(t.s=e);var e}));t.O()}]);(self.ascChunk=self.ascChunk||[]).push([[7839],{7085:()=>{var t=window.googletag||{};t.cmd=t.cmd||[],window.googletag=t,t.cmd.push((function(){window.getUtmCampaignForDfp&&"function"==typeof window.getUtmCampaignForDfp&&t.pubads().setTargeting("campaign",window.getUtmCampaignForDfp()),window.getUtmTermForDfp&&"function"==typeof window.getUtmTermForDfp&&t.pubads().setTargeting("campaign_term_cit",window.getUtmTermForDfp())}))}},t=>{t.O(0,[9270],(()=>{return n=7085,t(t.s=n);var n}));t.O()}]);(self.ascChunk=self.ascChunk||[]).push([[1516],{7616:()=>{var a=window.asc||{};a.cmd=a.cmd||[],a.cmd.push((function(){a.aliasBidder("vidazoo","vidazoortb")}))}},a=>{a.O(0,[9270],(()=>{return s=7616,a(a.s=s);var s}));a.O()}]);(()=>{var e,t={5706:(e,t,n)=>{n.d(t,{Pd:()=>l,Th:()=>c,_U:()=>u});var r=n(5730),i=n(7746),o=n(265),s=n(4614);const a=(0,n(8640).R)(),d="outstream";function c(e){const{url:t,config:n,id:o,callback:s,loaded:a,adUnitCode:c,renderNow:l}=e;this.url=t,this.config=n,this.handlers={},this.id=o,this.renderNow=l,this.loaded=a,this.cmd=[],this.push=e=>{"function"==typeof e?this.loaded?e.call():this.cmd.push(e):(0,i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=s||(()=>{this.loaded=!0,this.process()}),this.render=function(){const e=arguments,n=()=>{this._render?this._render.apply(this,e):(0,i.logWarn)("No render function was provided, please use .setRender on the renderer")};f(c)?((0,i.logWarn)(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${c}`),n()):l?n():(this.cmd.unshift(n),(0,r.B)(t,d,this.callback,this.documentContext))}.bind(this)}function l(e){return!(!e||!e.url&&!e.renderNow)}function u(e,t,n){let r=null;e.config&&e.config.documentResolver&&(r=e.config.documentResolver(t,document,n)),r||(r=document),e.documentContext=r,e.render(t,e.documentContext)}function f(e){const t=a.adUnits,n=(0,s.sE)(t,(t=>t.code===e));if(!n)return!1;const r=(0,o.Z)(n,"renderer"),i=!!(r&&r.url&&r.render),d=(0,o.Z)(n,"mediaTypes.video.renderer"),c=!!(d&&d.url&&d.render);return!!(i&&!0!==r.backupOnly||c&&!0!==d.backupOnly)}c.install=function(e){let{url:t,config:n,id:r,callback:i,loaded:o,adUnitCode:s,renderNow:a}=e;return new c({url:t,config:n,id:r,callback:i,loaded:o,adUnitCode:s,renderNow:a})},c.prototype.getConfig=function(){return this.config},c.prototype.setRender=function(e){this._render=e},c.prototype.setEventHandlers=function(e){this.handlers=e},c.prototype.handleVideoEvent=function(e){let{id:t,eventName:n}=e;"function"==typeof this.handlers[n]&&this.handlers[n](),(0,i.logMessage)(`Prebid Renderer event for id ${t} type ${n}`)},c.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.logError)("Error processing Renderer command: ",e)}}},4947:(e,t,n)=>{n.d(t,{EL:()=>s,Jt:()=>f,K$:()=>i,S1:()=>r,S5:()=>o,UE:()=>a,e:()=>c,g0:()=>u,oK:()=>l,x$:()=>d});const r="accessDevice",i="syncUser",o="enrichUfpd",s="enrichEids",a="fetchBids",d="reportAnalytics",c="transmitEids",l="transmitUfpd",u="transmitPreciseGeo",f="transmitTid"},286:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(3304);const i=(0,n(6310).Oj)((e=>r.ZP.resolveAlias(e)))},9633:(e,t,n)=>{n.d(t,{UL:()=>i,XG:()=>s,_U:()=>a,wu:()=>r,y2:()=>o});const r="prebid",i="bidder",o="userId",s="rtd",a="analytics"},6310:(e,t,n)=>{n.d(t,{$k:()=>s,Hw:()=>g,IV:()=>f,JR:()=>o,Ki:()=>d,Oj:()=>p,Qf:()=>l,Ww:()=>m,bL:()=>c,bp:()=>a,cx:()=>u});var r=n(9633),i=n(2797);const o="component",s=o+"Type",a=o+"Name",d="adapterCode",c="storageType",l="configName",u="syncType",f="syncUrl",g="_config";function p(e){return function(t,n,i){const c={[s]:t,[a]:n,[o]:`${t}.${n}`};return t===r.UL&&(c[d]=e(n)),m(Object.assign(c,i))}}const m=(0,i.z3)("sync",(e=>e))},1087:(e,t,n)=>{n.d(t,{$8:()=>a,Db:()=>u,Mp:()=>h,RD:()=>f,ZZ:()=>d,a:()=>g,hb:()=>b,js:()=>p});var r=n(265),i=n(3193),o=n(571),s=n(4947);const a=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((e=>`user.${e}`)).concat("device.ext.cdep"),d=["user.eids","user.ext.eids"],c=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"];function l(e){return Object.assign({get(){},run(e,t,n,r,i){const o=n&&n[r];if(g(o)&&i()){const e=this.get(o);void 0===e?delete n[r]:n[r]=e}}},e)}function u(e){return e.forEach((e=>{e.paths=e.paths.map((e=>{const t=e.split("."),n=t.pop();return[t.length>0?t.join("."):null,n]}))})),function(t,n){const i=[];for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];const d=f(t,...s);return e.forEach((e=>{if(!1!==t[e.name])for(const[o,s]of e.paths){const a=null==o?n:(0,r.Z)(n,o);if(i.push(e.run(n,o,a,s,d.bind(null,e))),!1===t[e.name])return}})),i.filter((e=>null!=e))}}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return e.hasOwnProperty(t.name)||(e[t.name]=!!t.applies(...n)),e[t.name]}}function g(e){return null!=e&&("object"!=typeof e||Object.keys(e).length>0)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.xD;return function(n){return!t(e,n)}}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.xD;return[{name:s.e,paths:["userId","userIdAsEids"],applies:p(s.e,e)},{name:s.Jt,paths:["ortb2Imp.ext.tid"],applies:p(s.Jt,e)}].map(l)}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.xD;return[{name:s.oK,paths:a,applies:p(s.oK,e)},{name:s.e,paths:d,applies:p(s.e,e)},{name:s.g0,paths:c,applies:p(s.g0,e),get:e=>Math.round(100*(e+Number.EPSILON))/100},{name:s.Jt,paths:["source.tid"],applies:p(s.Jt,e)}].map(l)}const b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.xD;const t=u(h(e)),n=u(m(e));return function(e){const r={};return{ortb2:n=>(t(r,n,e),n),bidRequest:t=>(n(r,t,e),t)}}}();(0,o.oB)(s.Jt,"enableTIDs config",(()=>{if(!i.vc.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},571:(e,t,n)=>{n.d(t,{oB:()=>o,xD:()=>s});var r=n(7746),i=n(6310);const[o,s]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.prefixLog)("Activity control:");const t={};function n(e){return t[e]=t[e]||[]}function o(t,n,r,o){let s;try{s=r(o)}catch(r){e.logError(`Exception in rule ${n} for '${t}'`,r),s={allow:!1,reason:r}}return s&&Object.assign({activity:t,name:n,component:o[i.JR]},s)}const s={},a=1e3;function d(t){let{activity:n,name:r,allow:i,reason:o,component:d}=t;const c=`${r} ${i?"allowed":"denied"} '${n}' for '${d}'${o?":":""}`,l=s.hasOwnProperty(c);if(l&&clearTimeout(s[c]),s[c]=setTimeout((()=>delete s[c]),a),!l){const t=[c];o&&t.push(o),(i?e.logInfo:e.logWarn).apply(e,t)}}return[function(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const o=n(e),s=o.findIndex((e=>{let[t]=e;return i<t})),a=[i,t,r];return o.splice(s<0?o.length:s,0,a),function(){const e=o.indexOf(a);e>=0&&o.splice(e,1)}},function(e,t){let r,i;for(const[s,a,c]of n(e)){if(r!==s&&i)break;r=s;const n=o(e,a,c,t);if(n){if(!n.allow)return d(n),!1;i=n}}return i&&d(i),!0}]}()},3667:(e,t,n)=>{n.d(t,{E$:()=>C,Lj:()=>O,Ps:()=>T,XD:()=>k,YC:()=>E,nI:()=>D,oc:()=>w,tV:()=>R});var r=n(7746),i=n(265),o=n(2021),s=n(2200),a=n(3193),d=n(5706),c=n(4679),l=n(5383),u=n(8099),f=n(2797),g=n(59),p=n(8792);const{AD_RENDER_FAILED:m,AD_RENDER_SUCCEEDED:h,STALE_RENDER:b,BID_WON:y}=s.FP,{EXCEPTION:v}=s.q_,E=(0,f.z3)("sync",(function(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Z.resolve();return t.then((t=>t??l.K.findBidByAdId(e))).catch((()=>{}))})),T=(0,f.z3)("sync",(function(e){o.j8(y,e),l.K.addWinningBid(e)}));function I(e){let{reason:t,message:n,bid:i,id:s}=e;const a={reason:t,message:n};i&&(a.bid=i,a.adId=i.adId),s&&(a.adId=s),(0,r.logError)(`Error rendering ad (id: ${s}): ${n}`),o.j8(m,a)}function A(e){let{doc:t,bid:n,id:r}=e;const i={doc:t};n&&(i.bid=n),r&&(i.adId=r),o.j8(h,i)}function w(e,t){switch(e.event){case s.FP.AD_RENDER_FAILED:I({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case s.FP.AD_RENDER_SUCCEEDED:A({doc:null,bid:t,id:t.adId});break;default:(0,r.logError)(`Received event request for unsupported event: '${e.event}' (adId: '${t.adId}')`)}}function C(e,t,n){let{resizeFn:r,fireTrackers:i=g.e6}=n;if("resizeNativeHeight"===e.action)r(e.width,e.height);else i(e,t)}const S={[s.X3.EVENT]:w};S[s.X3.NATIVE]=C;const O=(0,f.z3)("sync",(function(e,t){const{ad:n,adUrl:i,cpm:o,originalCpm:s,width:a,height:d}=e,c={AUCTION_PRICE:s||o,CLICKTHROUGH:t?.clickUrl||""};return{ad:(0,r.replaceMacros)(n,c),adUrl:(0,r.replaceMacros)(i,c),width:a,height:d}})),B=(0,f.z3)("sync",(function(e){let{renderFn:t,resizeFn:n,bidResponse:r,options:i}=e;if(r.mediaType===c.pX)return void I({reason:s.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:r,id:r.adId});const o=O(r,i);t(Object.assign({adId:r.adId},o));const{width:a,height:d}=o;null!=(a??d)&&n(a,d)}));function k(e){let{renderFn:t,resizeFn:n,adId:d,options:c,bidResponse:l,doc:u}=e;if(null!=l){if(l.status!==s.UE.RENDERED||((0,r.logWarn)(`Ad id ${d} has been rendered before`),o.j8(b,l),!(0,i.Z)(a.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{B({renderFn:t,resizeFn:n,bidResponse:l,options:c,doc:u})}catch(e){I({reason:s.q_.EXCEPTION,message:e.message,id:d,bid:l})}T(l)}}else I({reason:s.q_.CANNOT_FIND_AD,message:`Cannot find ad '${d}'`,id:d})}function R(e,t,n){let i;function o(e,n){I(Object.assign({id:t,bid:i},{reason:e,message:n}))}function a(t,n){e.defaultView&&e.defaultView.frameElement&&(t&&(e.defaultView.frameElement.width=t),n&&(e.defaultView.frameElement.height=n))}const d=(c={resizeFn:a},function(e,t,n){S.hasOwnProperty(e)&&S[e](t,n,c)});var c;function l(t){t.ad?(e.write(t.ad),e.close(),A({doc:e,bid:i,adId:i.adId})):(0,u.W)(i).then((n=>n(t,{sendMessage:(e,t)=>d(e,t,i),mkFrame:r.createIframe},e.defaultView))).then((()=>A({doc:e,bid:i,adId:i.adId})),(e=>{o(e?.reason||s.q_.EXCEPTION,e?.message),e?.stack&&(0,r.logError)(e)}));const n=document.createComment(`Creative ${i.creativeId} served by ${i.bidder} Prebid.js Header Bidding`);(0,r.insertElement)(n,e,"html")}try{t&&e?e!==document||(0,r.inIframe)()?E(t).then((r=>{i=r,k({renderFn:l,resizeFn:a,adId:t,options:{clickUrl:n?.clickThrough},bidResponse:r,doc:e})})):o(s.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document."):o(s.q_.MISSING_DOC_OR_ADID,"missing "+(t?"doc":"adId"))}catch(e){o(v,e.message)}}function D(){if(!window.frames[s.vX])if(document.body){const e=(0,r.createInvisibleIframe)();e.name=s.vX,document.body.appendChild(e)}else window.requestAnimationFrame(D)}B.before((function(e,t){const{bidResponse:n,doc:r}=t;(0,d.Pd)(n.renderer)?((0,d._U)(n.renderer,n,r),A({doc:r,bid:n,id:n.adId}),e.bail()):e(t)}),100)},8525:(e,t,n)=>{function r(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}n.d(t,{Z:()=>r})},3304:(e,t,n)=>{n.d(t,{ZP:()=>Y,uV:()=>G,O6:()=>$});var r=n(7746),i=n(265),o=n(59),s=n(4699),a=n(8928),d=n(3193),c=n(2797),l=n(4614);let u={};function f(e,t,n){let r=function(e,t){let n=u[e]=u[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return r[t]=(r[t]||0)+1,r[t]}function g(e){return f(e,"requestsCounter")}function p(e){return(0,i.Z)(u,`${e}.requestsCounter`)||0}function m(e,t){return(0,i.Z)(u,`${e}.bidders.${t}.requestsCounter`)||0}function h(e,t){return(0,i.Z)(u,`${e}.bidders.${t}.winsCounter`)||0}var b=n(5102),y=n(4516),v=n(2021),E=n(2200),T=n(9128),I=n(5383),A=n(9633),w=n(571),C=n(4947),S=n(6310),O=n(1087);const B="pbsBidAdapter",k={CLIENT:"client",SERVER:"server"};var R=n(3342);const D=n(4740),U={isAllowed:w.xD,redact:O.hb};let _={},j=_.bidderRegistry={},P=_.aliasRegistry={},x=[];d.vc.getConfig("s2sConfig",(e=>{e&&e.s2sConfig&&(x=(0,r.isArray)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var N={};const q=(0,S.Oj)((e=>_.resolveAlias(e)));function $(e){return q(A.wu,B,{[S.Qf]:e.configName})}const F=(0,c.z3)("sync",(function(e){let{bidderCode:t,auctionId:n,bidderRequestId:o,adUnits:s,src:a,metrics:d}=e;return s.reduce(((e,s)=>{const c=s.bids.filter((e=>e.bidder===t));return null==t&&0===c.length&&null!=s.s2sBid&&c.push({bidder:null}),e.push(c.reduce(((e,c)=>{const l=null==(c=Object.assign({},c,{ortb2Imp:(0,r.mergeDeep)({},s.ortb2Imp,c.ortb2Imp)},(0,r.getDefinedParams)(s,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?s.mediaTypes:c.mediaTypes;return(0,r.isValidMediaTypes)(l)?c=Object.assign({},c,{mediaTypes:l}):(0,r.logError)(`mediaTypes is not correctly configured for adunit ${s.code}`),"client"===a&&function(e,t){f(e,"requestsCounter",t)}(s.code,t),e.push(Object.assign({},c,{adUnitCode:s.code,transactionId:s.transactionId,adUnitId:s.adUnitId,sizes:(0,i.Z)(l,"banner.sizes")||(0,i.Z)(l,"video.playerSize")||[],bidId:c.bid_id||(0,r.getUniqueIdentifierStr)(),bidderRequestId:o,auctionId:n,src:a,metrics:d,bidRequestsCount:p(s.code),bidderRequestsCount:m(s.code,c.bidder),bidderWinsCount:h(s.code,c.bidder)})),e}),[])),e}),[]).reduce(r.flatten,[]).filter((e=>""!==e))}),"getBids");const M=(0,c.z3)("sync",(function(e,t){let{getS2SBidders:n=G}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return e;{const r=n(t);return e.filter((e=>r.has(e.bidder)))}}),"filterBidsForAdUnit");function W(e,t){let n=(0,r.deepClone)(e),i=!1;return n.forEach((e=>{const n=e.bids.filter((e=>e.module===B&&e.params?.configName===t.configName));1===n.length?(e.s2sBid=n[0],i=!0,e.ortb2Imp=(0,r.mergeDeep)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&(0,r.logWarn)('Multiple "module" bids for the same s2s configuration; all will be ignored',n),e.bids=M(e.bids,t).map((e=>(e.bid_id=(0,r.getUniqueIdentifierStr)(),e)))})),n=n.filter((e=>0!==e.bids.length||null!=e.s2sBid)),{adUnits:n,hasModuleBids:i}}function L(e){let t=(0,r.deepClone)(e);return t.forEach((e=>{e.bids=M(e.bids,null)})),t=t.filter((e=>0!==e.bids.length)),t}const z=(0,c.z3)("sync",((e,t)=>e),"setupAdUnitMediaTypes");function G(e){(0,r.isArray)(e)||(e=[e]);const t=new Set([null]);return e.filter((e=>e&&e.enabled)).flatMap((e=>e.bidders)).forEach((e=>t.add(e))),t}const Z=(0,c.z3)("sync",(function(e,t){let{getS2SBidders:n=G}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n(t);return(0,r.getBidderCodes)(e).reduce(((e,t)=>{const n=i.has(t)?k.SERVER:k.CLIENT;return e[n].push(t),t&&n==k.SERVER&&e[k.CLIENT].push(t),e}),{[k.CLIENT]:[],[k.SERVER]:[]})}),"partitionBidders");function V(e,t){const n=j[e],r=n?.getSpec&&n.getSpec();if(r&&r[t]&&"function"==typeof r[t])return[r,r[t]]}function K(e,t,n,i){try{(0,r.logInfo)(`Invoking ${e}.${t}`);for(var o=arguments.length,s=new Array(o>4?o-4:0),a=4;a<o;a++)s[a-4]=arguments[a];d.vc.runWithBidder(e,i.bind(n,...s))}catch(n){(0,r.logWarn)(`Error calling ${t} of ${e}`)}}function H(e,t,n){if(n?.src!==E.os.SRC){const r=V(e,t);null!=r&&K(e,t,...r,n)}}function J(e){const t=new Set;for(;P.hasOwnProperty(e)&&!t.has(e);)t.add(e),e=P[e];return e}_.makeBidRequests=(0,c.z3)("sync",(function(e,t,n,i,s){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6?arguments[6]:void 0;c=(0,T.Bf)(c),v.j8(E.FP.BEFORE_REQUEST_BIDS,e),(0,o.Fb)(e),e.forEach((e=>{(0,r.isPlainObject)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((e=>!e.bidder||U.isAllowed(C.UE,q(A.UL,e.bidder)))),g(e.code)})),e=z(e,s);let{[k.CLIENT]:u,[k.SERVER]:f}=Z(e,x);if(d.vc.getConfig("bidderSequence")===d.FD){let e=[],t=[];u.forEach((function(n){(0,l.q9)(R,n)?e.push(n):t.push(n)})),e=(0,r.shuffle)(e),t=(0,r.shuffle)(t),u=e.concat(t)}const p=(0,b.nH)();u=u.filter((e=>!D.wrapper.disableClientSideAdapters||!(0,l.q9)(D.wrapper.disableClientSideAdapters,e)));let m=[];const h=a.global||{},I=a.bidder||{};function w(e,t){const i=U.redact(null!=t?t:q(A.UL,e.bidderCode)),o=Object.freeze(i.ortb2((0,r.mergeDeep)({source:{tid:n}},h,I[e.bidderCode])));return e.ortb2=o,e.bids=e.bids.map((e=>(e.ortb2=o,i.bidRequest(e)))),e}x.forEach((i=>{const o=$(i);if(i&&i.enabled&&U.isAllowed(C.UE,o)){let{adUnits:s,hasModuleBids:a}=W(e,i),d=(0,r.generateUUID)();(0===f.length&&a?[null]:f).forEach((e=>{const a=(0,r.getUniqueIdentifierStr)(),l=c.fork(),u=w({bidderCode:e,auctionId:n,bidderRequestId:a,uniquePbsTid:d,bids:F({bidderCode:e,auctionId:n,bidderRequestId:a,adUnits:(0,r.deepClone)(s),src:E.os.SRC,metrics:l}),auctionStart:t,timeout:i.timeout,src:E.os.SRC,refererInfo:p,metrics:l},o);0!==u.bids.length&&m.push(u)})),s.forEach((e=>{let t=e.bids.filter((e=>(0,l.sE)(m,(t=>(0,l.sE)(t.bids,(t=>t.bidId===e.bid_id))))));e.bids=t})),m.forEach((e=>{void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=s.filter((e=>e.bids.length>0||null!=e.s2sBid)))}))}}));let S=L(e);return u.forEach((e=>{const o=(0,r.getUniqueIdentifierStr)(),a=c.fork(),d=w({bidderCode:e,auctionId:n,bidderRequestId:o,bids:F({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:(0,r.deepClone)(S),labels:s,src:"client",metrics:a}),auctionStart:t,timeout:i,refererInfo:p,metrics:a}),l=j[e];l||(0,r.logError)(`Trying to make a request for bidder that does not exist: ${e}`),l&&d.bids&&0!==d.bids.length&&m.push(d)})),m.forEach((e=>{y.rp.getConsentData()&&(e.gdprConsent=y.rp.getConsentData()),y.nX.getConsentData()&&(e.uspConsent=y.nX.getConsentData()),y.TJ.getConsentData()&&(e.gppConsent=y.TJ.getConsentData())})),m}),"makeBidRequests"),_.callBids=function(e,t,n,i,o,s,c){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(!t.length)return void(0,r.logWarn)("callBids executed with no bidRequests. Were they filtered by labels or sizing?");let[u,f]=t.reduce(((e,t)=>(e[Number(void 0!==t.src&&t.src===E.os.SRC)].push(t),e)),[[],[]]);var g=[];f.forEach((e=>{for(var t=-1,n=0;n<g.length;++n)if(e.uniquePbsTid===g[n].uniquePbsTid){t=n;break}t<=-1&&g.push(e)}));let p=0;x.forEach((e=>{if(e&&g[p]&&G(e).has(g[p].bidderCode)){const t=(0,a.OI)(s,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0);let d=e.bidders;const u=j[e.adapter];let m=g[p].uniquePbsTid,h=g[p].adUnitsS2SCopy,b=f.filter((e=>e.uniquePbsTid===m));if(u){let o={ad_units:h,s2sConfig:e,ortb2Fragments:l,requestBidsTimeout:s};if(o.ad_units.length){let e=b.map((e=>(e.start=(0,r.timestamp)(),function(t){t||c(e.bidderRequestId),i.apply(e,arguments)})));const s=(0,r.getBidderCodes)(o.ad_units).filter((e=>d.includes(e)));(0,r.logMessage)(`CALLING S2S HEADER BIDDERS ==== ${s.length>0?s.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only'}`),b.forEach((e=>{v.j8(E.FP.BID_REQUESTED,{...e,tid:e.auctionId})})),u.callBids(o,f,n,(t=>e.forEach((e=>e(t)))),t)}}else(0,r.logError)("missing "+e.adapter);p++}})),u.forEach((e=>{e.start=(0,r.timestamp)();const t=j[e.bidderCode];d.vc.runWithBidder(e.bidderCode,(()=>{(0,r.logMessage)("CALLING BIDDER"),v.j8(E.FP.BID_REQUESTED,e)}));let l=(0,a.OI)(s,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0);const u=i.bind(e);try{d.vc.runWithBidder(e.bidderCode,t.callBids.bind(t,e,n,u,l,(()=>c(e.bidderRequestId)),d.vc.callbackWithBidder(e.bidderCode)))}catch(t){(0,r.logError)(`${e.bidderCode} Bid Adapter emitted an uncaught error when parsing their bidRequest`,{e:t,bidRequest:e}),u()}}))},_.videoAdapters=[],_.registerBidAdapter=function(e,t){let{supportedMediaTypes:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&t?"function"==typeof e.callBids?(j[t]=e,y.qh.register(A.UL,t,e.getSpec?.().gvlid),(0,l.q9)(n,"video")&&_.videoAdapters.push(t),(0,l.q9)(n,"native")&&o.Sg.push(t)):(0,r.logError)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):(0,r.logError)("bidAdapter or bidderCode not specified")},_.aliasBidAdapter=function(e,t,n){if(void 0===j[t]){let i=j[e];if(void 0===i){const n=[];x.forEach((r=>{if(r.bidders&&r.bidders.length){const i=r&&r.bidders;r&&(0,l.q9)(i,t)?P[t]=e:n.push(e)}})),n.forEach((e=>{(0,r.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{let a,d=function(e){let t=[];return(0,l.q9)(_.videoAdapters,e)&&t.push("video"),(0,l.q9)(o.Sg,e)&&t.push("native"),t}(e);if(i.constructor.prototype!=Object.prototype)a=new i.constructor,a.setBidderCode(t);else{let o=i.getSpec(),d=n&&n.gvlid;null!=o.gvlid&&null==d&&(0,r.logWarn)(`Alias '${t}' will NOT re-use the GVL ID of the original adapter ('${o.code}', gvlid: ${o.gvlid}). Functionality that requires TCF consent may not work as expected.`);let c=n&&n.skipPbsAliasing;a=(0,s.PZ)(Object.assign({},o,{code:t,gvlid:d,skipPbsAliasing:c})),P[t]=e}_.registerBidAdapter(a,t,{supportedMediaTypes:d})}catch(t){(0,r.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,r.logMessage)('alias name "'+t+'" has been already specified.')},_.resolveAlias=function(e){let t,n=e;for(;P[n]&&(!t||!t.has(n));)n=P[n],(t=t||new Set).add(n);return n},_.registerAnalyticsAdapter=function(e){let{adapter:t,code:n,gvlid:i}=e;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,N[n]={adapter:t,gvlid:i},y.qh.register(A._U,n,i)):(0,r.logError)(`Prebid Error: Analytics adaptor error for analytics "${n}"\n analytics adapter must implement an enableAnalytics() function`):(0,r.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},_.enableAnalytics=function(e){(0,r.isArray)(e)||(e=[e]),e.forEach((e=>{const t=N[e.provider];t&&t.adapter?U.isAllowed(C.x$,q(A._U,e.provider,{[S.Hw]:e}))&&t.adapter.enableAnalytics(e):(0,r.logError)(`Prebid Error: no analytics adapter found in registry for '${e.provider}'.`)}))},_.getBidAdapter=function(e){return j[e]},_.getAnalyticsAdapter=function(e){return N[e]},_.callTimedOutBidders=function(e,t,n){t=t.map((t=>(t.params=(0,r.getUserConfiguredParams)(e,t.adUnitCode,t.bidder),t.timeout=n,t))),t=(0,r.groupBy)(t,"bidder"),Object.keys(t).forEach((e=>{H(e,"onTimeout",t[e])}))},_.callBidWonBidder=function(e,t,n){var i,o;t.params=(0,r.getUserConfiguredParams)(n,t.adUnitCode,t.bidder),i=t.adUnitCode,o=t.bidder,f(i,"winsCounter",o),H(e,"onBidWon",t)},_.callBidBillableBidder=function(e){H(e.bidder,"onBidBillable",e)},_.callSetTargetingBidder=function(e,t){H(e,"onSetTargeting",t)},_.callBidViewableBidder=function(e,t){H(e,"onBidViewable",t)},_.callBidderError=function(e,t,n){H(e,"onBidderError",{error:t,bidderRequest:n})},_.callDataDeletionRequest=(0,c.z3)("sync",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i="onDataDeletionRequest";Object.keys(j).filter((e=>!P.hasOwnProperty(e))).forEach((e=>{const n=V(e,i);if(null!=n){const r=I.K.getBidsRequested().filter((t=>J(t.bidderCode)===e));K(e,i,...n,r,...t)}})),Object.entries(N).forEach((e=>{let[n,o]=e;const s=o?.adapter?.[i];if("function"==typeof s)try{s.apply(o.adapter,t)}catch(e){(0,r.logError)(`error calling ${i} of ${n}`,e)}}))}));const Y=_},4699:(e,t,n)=>{n.d(t,{Ie:()=>k,JY:()=>D,PZ:()=>C,dX:()=>w});var r=n(8525),i=n(3304),o=n(3193),s=n(9626),a=n(1974),d=n(59),c=n(154),l=n(2200),u=n(2021),f=n(4614),g=n(7746),p=n(2797),m=n(5383),h=n(5975),b=n(9128),y=n(571),v=n(286),E=n(9633),T=n(4947);const I=["cpm","ttl","creativeId","netRevenue","currency"],A=["auctionId","transactionId"];function w(e){const t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){const n=C(e);i.ZP.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach((t=>{let r,o,s=t;(0,g.isPlainObject)(t)&&(s=t.code,r=t.gvlid,o=t.skipPbsAliasing),i.ZP.aliasRegistry[s]=e.code,n(Object.assign({},e,{code:s,gvlid:r,skipPbsAliasing:o}))}))}function C(e){return Object.assign(new r.Z(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(n,r,a,d,c,f){if(!Array.isArray(n.bids))return;const p=function(e){if((0,y.xD)(T.Jt,(0,v.T)(E.UL,e)))return{bidRequest:e=>e,bidderRequest:e=>e};function t(e,t,n){return A.includes(t)?null:Reflect.get(e,t,n)}function n(e,t){const n=new Proxy(e,t);return Object.entries(e).filter((e=>{let[t,n]=e;return"function"==typeof n})).forEach((t=>{let[r,i]=t;return n[r]=i.bind(e)})),n}const r=(0,g.memoize)((e=>n(e,{get:t})),(e=>e.bidId));return{bidRequest:r,bidderRequest:e=>n(e,{get:(n,i,o)=>"bids"===i?e.bids.map(r):t(n,i,o)})}}(n.bidderCode),m={};const I=[];function w(){a(),o.vc.runWithBidder(e.code,(()=>{u.j8(l.FP.BIDDER_DONE,n),t(I,n.gdprConsent,n.uspConsent,n.gppConsent)}))}const C=U(n).measureTime("validate",(()=>n.bids.filter((t=>function(t){if(!e.isBidRequestValid(t))return(0,g.logWarn)(`Invalid bid sent to bidder ${e.code}: ${JSON.stringify(t)}`),!1;return!0}(p.bidRequest(t))))));if(0===C.length)return void w();const S={};C.forEach((e=>{S[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),O(e,C.map(p.bidRequest),p.bidderRequest(n),d,f,{onRequest:e=>u.j8(l.FP.BEFORE_BIDDER_HTTP,n,e),onResponse:t=>{c(e.code),I.push(t)},onPaapi:e=>{const t=S[e.bidId];t?k(t,e):(0,g.logWarn)("Received fledge auction configuration for an unknown bidId",e)},onError:(t,r)=>{r.timedOut||c(e.code),i.ZP.callBidderError(e.code,r,n),u.j8(l.FP.BIDDER_ERROR,{error:r,bidderRequest:n}),(0,g.logError)(`Server call for ${e.code} failed: ${t} ${r.status}. Continuing without bids.`)},onBid:t=>{const n=S[t.requestId];if(n){if(t.adapterCode=n.bidder,function(e,t){let n=h.S.get(t,"allowAlternateBidderCodes")||!1,r=h.S.get(t,"allowedAlternateBidderCodes");if(e&&t&&t!==e&&(r=(0,g.isArray)(r)?r.map((e=>e.trim().toLowerCase())).filter((e=>!!e)).filter(g.uniques):r,!n||(0,g.isArray)(r)&&"*"!==r[0]&&!r.includes(e)))return!0;return!1}(t.bidderCode,n.bidder))return(0,g.logWarn)(`${t.bidderCode} is not a registered partner or known bidder of ${n.bidder}, hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.`),void r.reject(n.adUnitCode,t,l.Gw.BIDDER_DISALLOWED);t.originalCpm=t.cpm,t.originalCurrency=t.currency,t.meta=t.meta||Object.assign({},t[n.bidder]);const e=Object.assign((0,s.m)(l.Q_.GOOD,n),t,(0,g.pick)(n,A));!function(e,t){const n=(0,b.Bf)(t.metrics);n.checkpoint("addBidResponse"),m[e]=!0,n.measureTime("addBidResponse.validate",(()=>D(e,t)))?r(e,t):r.reject(e,t,l.Gw.INVALID)}(n.adUnitCode,e)}else(0,g.logWarn)(`Bidder ${e.code} made bid for unknown request ID: ${t.requestId}. Ignoring.`),r.reject(null,t,l.Gw.INVALID_REQUEST_ID)},onCompletion:w})}});function t(t,n,r,i){B(e,t,n,r,i)}}const S=["bids","paapi"],O=(0,p.z3)("sync",(function(e,t,n,r,i,o){let{onRequest:s,onResponse:a,onPaapi:d,onError:c,onBid:l,onCompletion:u}=o;const f=U(n);u=f.startTiming("total").stopBefore(u);let p=f.measureTime("buildRequests",(()=>e.buildRequests(t,n)));if(!p||0===p.length)return void u();Array.isArray(p)||(p=[p]);const m=(0,g.delayExecution)(u,p.length);p.forEach((t=>{const n=f.fork();function o(e){null!=e&&(e.metrics=n.fork().renameWith()),l(e)}const u=i((function(r,i){b();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:i.getResponseHeader.bind(i)}},a(r);try{r=n.measureTime("interpretResponse",(()=>e.interpretResponse(r,t)))}catch(t){return(0,g.logError)(`Bidder ${e.code} failed to interpret the server's response. Continuing without bids`,null,t),void m()}let s,c;r&&!Object.keys(r).some((e=>!S.includes(e)))?(s=r.bids,c=r.paapi):s=r,(0,g.isArray)(c)&&c.forEach(d),s&&((0,g.isArray)(s)?s.forEach(o):o(s)),m()})),p=i((function(e,t){b(),c(e,t),m()}));s(t);const b=n.startTiming("net");function I(n){const r=t.options;return Object.assign(n,r,{browsingTopics:!(r?.hasOwnProperty("browsingTopics")&&!r.browsingTopics)&&((h.S.get(e.code,"topicsHeader")??!0)&&(0,y.xD)(T.oK,(0,v.T)(E.UL,e.code)))})}switch(t.method){case"GET":r(`${t.url}${function(e){if(e)return`?${"object"==typeof e?(0,g.parseQueryStringParameters)(e):e}`;return""}(t.data)}`,{success:u,error:p},void 0,I({method:"GET",withCredentials:!0}));break;case"POST":r(t.url,{success:u,error:p},"string"==typeof t.data?t.data:JSON.stringify(t.data),I({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,g.logWarn)(`Skipping invalid request from ${e.code}. Request type ${t.type} must be GET or POST`),m()}}))}),"processBidderRequests"),B=(0,p.z3)("async",(function(e,t,n,r,s){const d=o.vc.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(d||!i.ZP.aliasRegistry[e.code])){let i=o.vc.getConfig("userSync.filterSettings"),d=e.getUserSyncs({iframeEnabled:!(!i||!i.iframe&&!i.all),pixelEnabled:!(!i||!i.image&&!i.all)},t,n,r,s);d&&(Array.isArray(d)||(d=[d]),d.forEach((t=>{a.k_.registerSync(t.type,e.code,t.url)})),a.k_.bidderDone(e.code))}}),"registerSyncs"),k=(0,p.z3)("sync",((e,t)=>{}),"addPaapiConfig");function R(e,t){let{index:n=m.K.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),!0;const r=n.getBidRequest(t),i=n.getMediaTypes(t),o=r&&r.sizes||i&&i.banner&&i.banner.sizes,s=(0,g.parseSizesInput)(o);if(1===s.length){const[e,n]=s[0].split("x");return t.width=parseInt(e,10),t.height=parseInt(n,10),!0}return!1}function D(e,t){let{index:n=m.K.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(){let e=Object.keys(t);return I.every((n=>(0,f.q9)(e,n)&&!(0,f.q9)([void 0,null],t[n])))}function i(e){return`Invalid bid from ${t.bidderCode}. Ignoring bid: ${e}`}return e?t?r()?"native"!==t.mediaType||(0,d.r4)(t,{index:n})?"video"!==t.mediaType||(0,c.Dn)(t,{index:n})?!("banner"===t.mediaType&&!R(e,t,{index:n}))||((0,g.logError)(i("Banner bids require a width and height")),!1):((0,g.logError)(i("Video bid does not have required vastUrl or renderer property")),!1):((0,g.logError)(i("Native bid missing some required properties.")),!1):((0,g.logError)(i(`Bidder ${t.bidderCode} is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params.`)),!1):((0,g.logWarn)(`Some adapter tried to add an undefined bid for ${e}.`),!1):((0,g.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}function U(e){return(0,b.Bf)(e.metrics).renameWith((t=>[`adapter.client.${t}`,`adapters.client.${e.bidderCode}.${t}`]))}},5730:(e,t,n)=>{n.d(t,{B:()=>a});var r=n(4614),i=n(7746);const o=new WeakMap,s=["debugging","outstream","improvedigital","showheroes-bs","aaxBlockmeter","adagio","adloox","akamaidap","arcspan","airgrid","browsi","brandmetrics","clean.io","confiant","contxtful","hadron","mediafilter","medianet","azerionedge","a1Media","geoedge","qortex","dynamicAdBoost","51Degrees","symitridap","justtag","tncId","ftrackId","id5"];function a(e,t,n,a,d){if(!t||!e)return void(0,i.logError)("cannot load external script without url and moduleCode");if(!(0,r.q9)(s,t))return void(0,i.logError)(`${t} not whitelisted for loading external JavaScript`);a||(a=document);const c=f(a,e);if(c)return n&&"function"==typeof n&&(c.loaded?n():c.callbacks.push(n)),c.tag;const l=o.get(a)||{},u={loaded:!1,tag:null,callbacks:[]};return l[e]=u,o.set(a,l),n&&"function"==typeof n&&u.callbacks.push(n),(0,i.logWarn)(`module ${t} is loading external JavaScript`),function(t,n,r,o){r||(r=document);var s=r.createElement("script");s.type="text/javascript",s.async=!0;const a=f(r,e);a&&(a.tag=s);s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,n())}:s.onload=function(){n()};s.src=t,o&&(0,i.setScriptAttributes)(s,o);return(0,i.insertElement)(s,r),s}(e,(function(){u.loaded=!0;try{for(let e=0;e<u.callbacks.length;e++)u.callbacks[e]()}catch(e){(0,i.logError)("Error executing callback","adloader.js:loadExternalScript",e)}}),a,d);function f(e,t){const n=o.get(e);return n&&n[t]?n[t]:null}}},8928:(e,t,n)=>{n.d(t,{OI:()=>g,he:()=>m,hj:()=>p});var r=n(3193),i=n(7746);const o={fetch:window.fetch.bind(window),makeRequest:(e,t)=>new Request(e,t),timeout(e,t){const n=new AbortController;let r=setTimeout((()=>{n.abort(),(0,i.logError)(`Request timeout after ${e}ms`,t),r=null}),e);return{signal:n.signal,done(){r&&clearTimeout(r)}}}},s="GET",a="POST",d="Content-Type";function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.method||(t?a:s);if(r===s&&t){const r=(0,i.parseUrl)(e,n);Object.assign(r.search,t),e=(0,i.buildUrl)(r)}const c=new Headers(n.customHeaders);c.set(d,n.contentType||"text/plain");const l={method:r,headers:c};return r!==s&&t&&(l.body=t),n.withCredentials&&(l.credentials="include"),n.browsingTopics&&isSecureContext&&(l.browsingTopics=!0),n.keepalive&&(l.keepalive=!0),o.makeRequest(e,l)}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(t,n)=>{let i;null==e||null!=n?.signal||r.vc.getConfig("disableAjaxTimeout")||(i=o.timeout(e,t),n=Object.assign({signal:i.signal},n));let s=o.fetch(t,n);return null!=i?.done&&(s=s.finally(i.done)),s};return null==t&&null==n||(i=(e=>function(r,i){const o=new URL(null==r?.url?r:r.url,document.location).origin;let s=e(r,i);return t&&t(o),n&&(s=s.finally((()=>n(o)))),s})(i)),i}function u(e,t){let{status:n,statusText:r="",headers:o,url:s}=e,a=0;function c(e){if(0===a)try{a=(new DOMParser).parseFromString(t,o?.get(d)?.split(";")?.[0])}catch(t){a=null,e&&e(t)}return a}return{readyState:XMLHttpRequest.DONE,status:n,statusText:r,responseText:t,response:t,responseType:"",responseURL:s,get responseXML(){return c(i.logError)},getResponseHeader:e=>o?.has(e)?o.get(e):null,toJSON(){return Object.assign({responseXML:c()},this)},timedOut:!1}}function f(e,t){const{success:n,error:r}="object"==typeof t&&null!=t?t:{success:"function"==typeof t?t:()=>null,error:(e,t)=>(0,i.logError)("Network error",e,t)};return e.then((e=>e.text().then((t=>[e,t])))).then((e=>{let[t,i]=e;const o=u(t,i);t.ok||304===t.status?n(i,o):r(t.statusText,o)}),(e=>r("",Object.assign(u({status:0},""),{reason:e,timedOut:"AbortError"===e?.name}))))}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=l(e,{request:t,done:n});return function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};f(r(c(e,n,i)),t)}}const p=g(),m=l()},5383:(e,t,n)=>{n.d(t,{K:()=>ie});var r=n(7746),i=n(265),o=n(6463),s=n(59),a=n(8928),d=n(3193);function c(e,t){return`<VAST version="3.0">\n <Ad>\n <Wrapper>\n <AdSystem>prebid.org wrapper</AdSystem>\n <VASTAdTagURI><![CDATA[${e}]]></VASTAdTagURI>\n ${(t=t&&(Array.isArray(t)?t:[t]))?t.map((e=>`<Impression><![CDATA[${e}]]></Impression>`)).join(""):""}\n <Creatives></Creatives>\n </Wrapper>\n </Ad>\n </VAST>`}function l(e){let{index:t=ie.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.vastXml?e.vastXml:c(e.vastUrl,e.vastImpUrl),r=t.getAuction(e),i=Number(e.ttl)+15;let o={type:"xml",value:n,ttlseconds:i};return d.vc.getConfig("cache.vasttrack")&&(o.bidder=e.bidder,o.bidid=e.requestId,o.aid=e.auctionId),null!=r&&(o.timestamp=r.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(o.key=e.customCacheKey),o}function u(e){return{success:function(t){let n;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,n){e(new Error(`Error storing video ad in the cache: ${t}: ${JSON.stringify(n)}`),[])}}}const f={store:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.OI;const r={puts:e.map(l)},i=n(d.vc.getConfig("cache.timeout"));i(d.vc.getConfig("cache.url"),u(t),JSON.stringify(r),{contentType:"text/plain",withCredentials:!0})}};function g(e){const t=e.map((e=>e.bidResponse));f.store(t,(function(n,i){var o;n?(o=n,(0,r.logError)(`Failed to save to the video cache: ${o}. Video bids will be discarded:`,t)):e.length!==i.length?(0,r.logError)(`expected ${e.length} cache IDs, got ${i.length} instead`):i.forEach(((t,n)=>{const{auctionInstance:i,bidResponse:o,afterBidAdded:s}=e[n];var a;""===t.uuid?(0,r.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(o.videoCacheKey=t.uuid,o.vastUrl||(o.vastUrl=(a=o.videoCacheKey,`${d.vc.getConfig("cache.url")}?uuid=${a}`)),L(i,o),s())}))}))}let p,m;d.vc.getConfig("cache",(e=>{p="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,m="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,n=[[]],r=!1;const i=e=>e();return function(o,s,a){const d=m>0?e:i;n[n.length-1].length>=p&&n.push([]),n[n.length-1].push({auctionInstance:o,bidResponse:s,afterBidAdded:a}),r||(r=!0,d((()=>{n.forEach(t),n=[[]],r=!1}),m))}}();var b=n(5706),y=n(1974),v=n(2797),E=n(4614),T=n(154),I=n(4679),A=n(5975),w=n(2021),C=n(3304),S=n(2200),O=n(8792),B=n(9128),k=n(6066),R=n(8640);const{syncUsers:D}=y.k_,U=n(4740);U.targetingPrefix&&"hb"!=U.targetingPrefix&&(Object.keys(S.TD).forEach((function(e){S.TD[e]=S.TD[e].replace("hb_",U.targetingPrefix+"_")})),Object.keys(S.kF).forEach((function(e){S.kF[e]=S.kF[e].replace("hb_",U.targetingPrefix+"_")})),Object.keys(S.FY).forEach((function(e){S.FY[e]=S.FY[e].replace("hb_",U.targetingPrefix+"_")})),(0,r.logInfo)("__ Targeting Prefix : auction.js Using TARGETING_KEYS: ",S.TD),(0,r.logInfo)("__ Targeting Prefix : auction.js Using DEFAULT_TARGETING_KEYS: ",S.kF),(0,r.logInfo)("__ Targeting Prefix : auction.js Using NATIVE_KEYS: ",S.FY));const _="completed";w.on(S.FP.BID_ADJUSTMENT,(function(e){!function(e){let t=(0,k.O)(e.cpm,e);t>=0&&(e.cpm=t)}(e)}));const j={},P={},x=[],N=(0,R.R)();function q(e){let{adUnits:t,adUnitCodes:n,callback:i,cbTimeout:o,labels:a,auctionId:c,ortb2Fragments:l,metrics:u}=e;u=(0,B.Bf)(u);const f=t,g=a,p=n,m=c||(0,r.generateUUID)(),h=o,b=new Set,y=(0,O.P)();let v,T,A,k,R=[],U=i,q=[],G=[],K=[],H=[],J=[];function Y(){return{auctionId:m,timestamp:v,auctionEnd:T,auctionStatus:k,adUnits:f,adUnitCodes:p,labels:g,bidderRequests:q,noBids:K,bidsReceived:G,bidsRejected:R,winningBids:H,timeout:h,metrics:u,seatNonBids:J}}function Q(e){if(e?w.j8(S.FP.AUCTION_TIMEOUT,Y()):clearTimeout(A),void 0===T){let n=[];e&&((0,r.logMessage)(`Auction ${m} timedOut`),n=q.filter((e=>!b.has(e.bidderRequestId))).flatMap((e=>e.bids)),n.length&&w.j8(S.FP.BID_TIMEOUT,n)),k=_,T=Date.now(),u.checkpoint("auctionEnd"),u.timeBetween("requestBids","auctionEnd","requestBids.total"),u.timeBetween("callBids","auctionEnd","requestBids.callBids"),y.resolve(),w.j8(S.FP.AUCTION_END,Y()),W(f,(function(){try{if(null!=U){const t=G.filter((e=>p.includes(e.adUnitCode))).reduce(X,{});U.apply(N,[t,e,m]),U=null}}catch(e){(0,r.logError)("Error executing bidsBackHandler",null,e)}finally{n.length&&C.ZP.callTimedOutBidders(t,n,h);let e=d.vc.getConfig("userSync")||{};e.enableOverride||D(e.syncDelay)}}))}}function ee(){d.vc.resetBidder(),(0,r.logInfo)(`Bids Received for Auction with id: ${m}`,G),k=_,Q(!1)}function te(e){b.add(e)}function ne(e){e.forEach((e=>{var t;t=e,q=q.concat(t)}));let t={},n={bidRequests:e,run:()=>{A=setTimeout((()=>Q(!0)),h),k="inProgress",w.j8(S.FP.AUCTION_INIT,Y());let n=function(e,t){let{index:n=ie.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=0,o=!1,a=new Set,c={};function l(){i--,o&&0===i&&e()}function u(e,t,n){return c[t.requestId]=!0,Z(t,e),i++,n(l)}function f(e,r){u(e,r,(e=>{let i=V(r);w.j8(S.FP.BID_ACCEPTED,i),i.mediaType===I.pX?z(t,i,e):((0,s.ub)(i)&&(0,s.kH)(i,n.getAdUnit(i)),L(t,i),e())}))}function g(e,n,i){return u(e,n,(e=>{n.rejectionReason=i,(0,r.logWarn)(`Bid from ${n.bidder||"unknown bidder"} was rejected: ${i}`,n),w.j8(S.FP.BID_REJECTED,n),t.addBidRejected(n),e()}))}function p(){let n=this,s=t.getBidRequests();const l=d.vc.getConfig("auctionOptions");if(a.add(n),l&&!(0,r.isEmpty)(l)){const e=l.secondaryBidders;e&&!s.every((t=>(0,E.q9)(e,t.bidderCode)))&&(s=s.filter((t=>!(0,E.q9)(e,t.bidderCode))))}o=s.every((e=>a.has(e))),n.bids.forEach((e=>{c[e.bidId]||t.addNoBid(e)})),o&&0===i&&e()}return{addBidResponse:function(){function e(e,t){$.call({dispatch:f},e,t,(()=>{let n=!1;return r=>{n||(g(e,t,r),n=!0)}})())}return e.reject=g,e}(),adapterDone:function(){F(O.Z.resolve()).finally((()=>p.call(this)))}}}(ee,this);C.ZP.callBids(f,e,n.addBidResponse,n.adapterDone,{request(e,n){o(j,n),o(t,e),P[e]||(P[e]={SRA:!0,origin:n}),t[e]>1&&(P[e].SRA=!1)},done(e){j[e]--,x[0]&&i(x[0])&&x.shift()}},h,te,l)}};function i(e){let t=!0,n=d.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((e=>{let r=1,i=void 0!==e.src&&e.src===S.os.SRC?"s2s":e.bidderCode;return P[i]&&(!1===P[i].SRA&&(r=Math.min(e.bids.length,n)),j[P[i].origin]+r>n&&(t=!1)),!t})),t&&e.run(),t}function o(e,t){void 0===e[t]?e[t]=1:e[t]++}i(n)||((0,r.logWarn)("queueing auction due to limited endpoint capacity"),x.push(n))}return w.on(S.FP.SEAT_NON_BID,(e=>{var t;e.auctionId===m&&(t=e.seatnonbid,J=J.concat(t))})),{addBidReceived:function(e){G=G.concat(e)},addBidRejected:function(e){R=R.concat(e)},addNoBid:function(e){K=K.concat(e)},callBids:function(){k="started",v=Date.now();let e=u.measureTime("requestBids.makeRequests",(()=>C.ZP.makeBidRequests(f,v,m,h,g,l,u)));(0,r.logInfo)(`Bids Requested for Auction with id: ${m}`,e),u.checkpoint("callBids"),e.length<1?((0,r.logWarn)("No valid bid requests returned for auction"),ee()):M.call({dispatch:ne,context:this},e)},addWinningBid:function(e){const n=t.find((t=>t.adUnitId===e.adUnitId));H=H.concat(e),(0,r.callBurl)(e),C.ZP.callBidWonBidder(e.adapterCode||e.bidder,e,t),n&&!n.deferBilling&&C.ZP.callBidBillableBidder(e)},setBidTargeting:function(e){C.ZP.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:()=>H,getAuctionStart:()=>v,getAuctionEnd:()=>T,getTimeout:()=>h,getAuctionId:()=>m,getAuctionStatus:()=>k,getAdUnits:()=>f,getAdUnitCodes:()=>p,getBidRequests:()=>q,getBidsReceived:()=>G,getNoBids:()=>K,getNonBids:()=>J,getFPD:()=>l,getMetrics:()=>u,end:y.promise}}const $=(0,v.z3)("sync",(function(e,t,n){!function(e){const t=d.vc.getConfig("maxBid");return!t||!e.cpm||t>=Number(e.cpm)}(t)?n(S.Gw.PRICE_TOO_HIGH):this.dispatch.call(null,e,t)}),"addBidResponse"),F=(0,v.z3)("sync",(e=>e),"responsesReady"),M=(0,v.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),W=(0,v.z3)("async",(function(e,t){t&&t()}),"bidsBackCallback");function L(e,t){!function(e){let t;const n=!0===A.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){let{index:n=ie.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return{};const r=n.getBidRequest(t);var i={};const o=Y(t.mediaType,e);Q(i,o,t,r),e&&A.S.getOwn(e,S.k2.ADSERVER_TARGETING)&&(Q(i,A.S.ownSettingsFor(e),t,r),t.sendStandardTargeting=A.S.get(e,"sendStandardTargeting"));t.native&&(i=Object.assign({},i,(0,s.Ur)(t)));return i}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},t)}(t),(0,B.Bf)(t.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(t),w.j8(S.FP.BID_RESPONSE,t)}function z(e,t,n){let{index:o=ie.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=!0;const a=(0,i.Z)(o.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId}),"video"),c=a&&(0,i.Z)(a,"context"),l=a&&(0,i.Z)(a,"useCacheKey");d.vc.getConfig("cache.url")&&(l||c!==T.gZ)&&(!t.videoCacheKey||d.vc.getConfig("cache.ignoreBidderCacheKey")?(s=!1,G(e,t,n,a)):t.vastUrl||((0,r.logError)("videoCacheKey specified but not required vastUrl for video bid"),s=!1)),s&&(L(e,t),n())}const G=(0,v.z3)("async",(function(e,t,n,r){h(e,t,n)}),"callPrebidCache");function Z(e,t){let{index:n=ie.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n.getBidderRequest(e),o=n.getAdUnit(e),s=i&&i.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,r.timestamp)(),requestTimestamp:e.requestTimestamp||s,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:t}),null!=o?.ttlBuffer&&(e.ttlBuffer=o.ttlBuffer),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}function V(e){let{index:t=ie.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w.j8(S.FP.BID_ADJUSTMENT,e);const n=t.getBidRequest(e)?.renderer||t.getAdUnit(e).renderer,r=e.mediaType,i=t.getMediaTypes(e),s=i&&i[r];var a=s&&s.renderer,c=null;a&&a.url&&a.render&&(!0!==a.backupOnly||!e.renderer)?c=a:n&&n.url&&n.render&&(!0!==n.backupOnly||!e.renderer)&&(c=n),c&&(e.renderer=b.Th.install({url:c.url,config:c.options}),e.renderer.setRender(c.render));const l=K(e.mediaType,i,d.vc.getConfig("mediaTypePriceGranularity")),u=(0,o.D)(e.cpm,"object"==typeof l?l:d.vc.getConfig("customPriceBucket"),d.vc.getConfig("currency.granularityMultiplier"));return e.pbLg=u.low,e.pbMg=u.med,e.pbHg=u.high,e.pbAg=u.auto,e.pbDg=u.dense,e.pbCg=u.custom,e}function K(e,t,n){if(e&&n){if(e===I.pX){const e=(0,i.Z)(t,`${I.pX}.context`,"instream");if(n[`${I.pX}-${e}`])return n[`${I.pX}-${e}`]}return n[e]}}const H=e=>t=>{const n=e||function(e){let{index:t=ie.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=K(e.mediaType,t.getMediaTypes(e),d.vc.getConfig("mediaTypePriceGranularity")),r="string"==typeof e.mediaType&&n?"string"==typeof n?n:"custom":d.vc.getConfig("priceGranularity");return r}(t);return n===S.Ql.AUTO?t.pbAg:n===S.Ql.DENSE?t.pbDg:n===S.Ql.LOW?t.pbLg:n===S.Ql.MEDIUM?t.pbMg:n===S.Ql.HIGH?t.pbHg:n===S.Ql.CUSTOM?t.pbCg:void 0};function J(e,t){return{key:e,val:"function"==typeof t?function(e,n){return t(e,n)}:function(e){return(0,r.getValue)(e,t)}}}function Y(e,t){const n=Object.assign({},A.S.settingsFor(null));if(n[S.k2.ADSERVER_TARGETING]||(n[S.k2.ADSERVER_TARGETING]=[J(S.TD.BIDDER,"bidderCode"),J(S.TD.AD_ID,"adId"),J(S.TD.PRICE_BUCKET,H()),J(S.TD.SIZE,"size"),J(S.TD.DEAL,"dealId"),J(S.TD.SOURCE,"source"),J(S.TD.FORMAT,"mediaType"),J(S.TD.ADOMAIN,(e=>e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:"")),J(S.TD.ACAT,(e=>e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:"")),J(S.TD.DSP,(e=>e.meta&&(e.meta.networkId||e.meta.networkName)?(0,i.Z)(e,"meta.networkName")||(0,i.Z)(e,"meta.networkId"):"")),J(S.TD.CRID,(e=>e.creativeId?e.creativeId:""))]),"video"===e){const e=n[S.k2.ADSERVER_TARGETING].slice();if(n[S.k2.ADSERVER_TARGETING]=e,[S.TD.UUID,S.TD.CACHE_ID].forEach((t=>{void 0===(0,E.sE)(e,(e=>e.key===t))&&e.push(J(t,"videoCacheKey"))})),d.vc.getConfig("cache.url")&&(!t||!1!==A.S.get(t,"sendStandardTargeting"))){const t=(0,r.parseUrl)(d.vc.getConfig("cache.url"));void 0===(0,E.sE)(e,(e=>e.key===S.TD.CACHE_HOST))&&e.push(J(S.TD.CACHE_HOST,(function(e){return(0,i.Z)(e,`adserverTargeting.${S.TD.CACHE_HOST}`)?e.adserverTargeting[S.TD.CACHE_HOST]:t.hostname})))}}return n}function Q(e,t,n,i){var o=t[S.k2.ADSERVER_TARGETING];return n.size=n.getSize(),(o||[]).forEach((function(o){var s=o.key,a=o.val;if(e[s]&&(0,r.logWarn)("The key: "+s+" is being overwritten"),(0,r.isFn)(a))try{a=a(n,i)}catch(e){(0,r.logError)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&s!==S.TD.DEAL&&s!==S.TD.ACAT&&s!==S.TD.DSP&&s!==S.TD.CRID||!(0,r.isEmptyStr)(a)&&null!=a?e[s]=a:(0,r.logInfo)("suppressing empty key '"+s+"' from adserver targeting")})),e}function X(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}function ee(e){Object.assign(this,{getAuction(t){let{auctionId:n}=t;if(null!=n)return e().find((e=>e.getAuctionId()===n))},getAdUnit(t){let{adUnitId:n}=t;if(null!=n)return e().flatMap((e=>e.getAdUnits())).find((e=>e.adUnitId===n))},getMediaTypes(e){let{adUnitId:t,requestId:n}=e;if(null!=n){const e=this.getBidRequest({requestId:n});if(null!=e&&(null==t||e.adUnitId===t))return e.mediaTypes}else if(null!=t){const e=this.getAdUnit({adUnitId:t});if(null!=e)return e.mediaTypes}},getBidderRequest(t){let{requestId:n,bidderRequestId:r}=t;if(null!=n||null!=r){let t=e().flatMap((e=>e.getBidRequests()));return null!=r&&(t=t.filter((e=>e.bidderRequestId===r))),null==n?t[0]:t.find((e=>e.bids&&null!=e.bids.find((e=>e.bidId===n))))}},getBidRequest(t){let{requestId:n}=t;if(null!=n)return e().flatMap((e=>e.getBidRequests())).flatMap((e=>e.bids)).find((e=>e&&e.bidId===n))}})}var te=n(1841),ne=n(8833);const re="minBidCacheTTL";const ie=function(){let e=null;const t=(0,te.Z)({startTime:e=>e.end.then((()=>e.getAuctionEnd())),ttl:t=>null==e?null:t.end.then((()=>1e3*Math.max(e,...t.getBidsReceived().map(ne.N))))});(0,ne.l)((()=>{null!=e&&t.refresh()})),d.vc.getConfig(re,(n=>{const r=e;e=n?.[re],e="number"==typeof e?e:null,r!==e&&t.refresh()}));const n={onExpiry:t.onExpiry};function i(e){for(const n of t)if(n.getAuctionId()===e)return n}function o(){return t.toArray().flatMap((e=>e.getBidsReceived()))}return n.addWinningBid=function(e){const t=(0,B.Bf)(e.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","render.pending"),t.timeBetween("requestBids","bidWon","render.e2e");const n=i(e.auctionId);n?(e.status=S.UE.RENDERED,n.addWinningBid(e)):(0,r.logWarn)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:e=>e.getAuctionStatus()===_},getAdUnitCodes:{post:r.uniques}}).forEach((e=>{let[r,{name:i=r,pre:o,post:s}]=e;const a=null==o?e=>e[i]():e=>o(e)?e[i]():[],d=null==s?e=>e:e=>e.filter(s);n[r]=()=>d(t.toArray().flatMap(a))})),n.getAllBidsForAdUnitCode=function(e){return o().filter((t=>t&&t.adUnitCode===e))},n.createAuction=function(e){const n=q(e);return function(e){t.add(e)}(n),n},n.findBidByAdId=function(e){return o().find((t=>t.adId===e))},n.getStandardBidderAdServerTargeting=function(){return Y()[S.k2.ADSERVER_TARGETING]},n.setStatusForBids=function(e,t){let r=n.findBidByAdId(e);if(r&&(r.status=t),r&&t===S.UE.BID_TARGETING_SET){const e=i(r.auctionId);e&&e.setBidTargeting(r)}},n.getLastAuctionId=function(){const e=t.toArray();return e.length&&e[e.length-1].getAuctionId()},n.clearAllAuctions=function(){t.clear()},n.index=new ee((()=>t.toArray())),n}()},8833:(e,t,n)=>{n.d(t,{N:()=>a,l:()=>d});var r=n(3193),i=n(7746);let o=1;const s=[];function a(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:o)}function d(e){s.push(e)}r.vc.getConfig("ttlBuffer",(e=>{if("number"==typeof e.ttlBuffer){const t=o;o=e.ttlBuffer,t!==o&&s.forEach((e=>e(o)))}else(0,i.logError)("Invalid value for ttlBuffer",e.ttlBuffer)}))},5975:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(265),i=n(7746),o=n(8640),s=n(2200);const a=new class{constructor(e,t){this.getSettings=e,this.defaultScope=t}get(e,t){let n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}getOwn(e,t){return e=this.#e(e),(0,r.Z)(this.getSettings(),`${e}.${t}`)}getScopes(){return Object.keys(this.getSettings()).filter((e=>e!==this.defaultScope))}settingsFor(e){return(0,i.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}ownSettingsFor(e){return e=this.#e(e),this.getSettings()[e]||{}}#e(e){return null==e?this.defaultScope:e}}((()=>(0,o.R)().bidderSettings||{}),s.k2.BD_SETTING_STANDARD)},9626:(e,t,n)=>{n.d(t,{m:()=>o});var r=n(7746);function i(e){let{src:t="client",bidder:n="",bidId:i,transactionId:o,adUnitId:s,auctionId:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var d=t,c=e||0;function l(){switch(c){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}Object.assign(this,{bidderCode:n,width:0,height:0,statusMessage:l(),adId:(0,r.getUniqueIdentifierStr)(),requestId:i,transactionId:o,adUnitId:s,auctionId:a,mediaType:"banner",source:d}),this.getStatusCode=function(){return c},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,adUnitId:this.adUnitId,auctionId:this.auctionId}}}function o(e,t){return new i(e,t)}},3193:(e,t,n)=>{n.d(t,{FD:()=>c,vc:()=>p});var r=n(6463),i=n(4614),o=n(7746),s=n(265);const a="TRUE"===(0,o.getParameterByName)("asc_debug").toUpperCase(),d={},c="random",l={};l[c]=!0,l.fixed=!0;const u=c,f={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},g="*";const p=function(){let e,t,n,c=[],p=null;function m(){function s(e){return g[e].val}function c(e,t){g[e].val=t}e={};const g={publisherDomain:{set(e){null!=e&&(0,o.logWarn)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),c("publisherDomain",e)}},priceGranularity:{val:f.MEDIUM,set(e){h(e)&&("string"==typeof e?c("priceGranularity",m(e)?e:f.MEDIUM):(0,o.isPlainObject)(e)&&(c("customPriceBucket",e),c("priceGranularity",f.CUSTOM),(0,o.logMessage)("Using custom price granularity")))}},customPriceBucket:{val:{},set(){}},mediaTypePriceGranularity:{val:{},set(e){null!=e&&c("mediaTypePriceGranularity",Object.keys(e).reduce(((t,n)=>(h(e[n])?"string"==typeof e?t[n]=m(e[n])?e[n]:s("priceGranularity"):(0,o.isPlainObject)(e)&&(t[n]=e[n],(0,o.logMessage)(`Using custom price granularity for ${n}`)):(0,o.logWarn)(`Invalid price granularity for media type: ${n}`),t)),{}))}},bidderSequence:{val:u,set(e){l[e]?c("bidderSequence",e):(0,o.logWarn)(`Invalid order: ${e}. Bidder Sequence was not set.`)}},auctionOptions:{val:{},set(e){(function(e){if(!(0,o.isPlainObject)(e))return(0,o.logWarn)("Auction Options must be an object"),!1;for(let t of Object.keys(e)){if("secondaryBidders"!==t&&"suppressStaleRender"!==t)return(0,o.logWarn)(`Auction Options given an incorrect param: ${t}`),!1;if("secondaryBidders"===t){if(!(0,o.isArray)(e[t]))return(0,o.logWarn)(`Auction Options ${t} must be of type Array`),!1;if(!e[t].every(o.isStr))return(0,o.logWarn)(`Auction Options ${t} must be only string`),!1}else if("suppressStaleRender"===t&&!(0,o.isBoolean)(e[t]))return(0,o.logWarn)(`Auction Options ${t} must be of type boolean`),!1}return!0})(e)&&c("auctionOptions",e)}}};let p={debug:a,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3,userSync:{topics:d}};function m(e){return(0,i.sE)(Object.keys(f),(t=>e===f[t]))}function h(e){if(!e)return(0,o.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)m(e)||(0,o.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,o.isPlainObject)(e)&&!(0,r.t)(e))return(0,o.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}Object.defineProperties(p,Object.fromEntries(Object.entries(g).map((e=>{let[t,n]=e;return[t,Object.assign({get:s.bind(null,t),set:c.bind(null,t),enumerable:!0},n)]})))),t&&A(Object.keys(t).reduce(((e,n)=>(t[n]!==p[n]&&(e[n]=p[n]||{}),e)),{})),t=p,n={}}function h(){if(p&&n&&(0,o.isPlainObject)(n[p])){let e=n[p];const r=new Set(Object.keys(t).concat(Object.keys(e)));return(0,i.Oc)(r).reduce(((n,r)=>(void 0===e[r]?n[r]=t[r]:void 0===t[r]?n[r]=e[r]:(0,o.isPlainObject)(e[r])?n[r]=(0,o.mergeDeep)({},t[r],e[r]):n[r]=e[r],n)),{})}return Object.assign({},t)}const[b,y]=[h,function(){const e=h();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map((e=>function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0];return t?(0,s.Z)(e(),t):h()}return I(...arguments)})),[v,E]=[y,b].map((e=>function(){let t=e(...arguments);return t&&"object"==typeof t&&(t=(0,o.deepClone)(t)),t}));function T(n){if(!(0,o.isPlainObject)(n))return void(0,o.logError)("setConfig options must be an object");let r=Object.keys(n),i={};r.forEach((r=>{let s=n[r];(0,o.isPlainObject)(e[r])&&(0,o.isPlainObject)(s)&&(s=Object.assign({},e[r],s));try{i[r]=t[r]=s}catch(e){(0,o.logWarn)(`Cannot set config for property ${r} : `,e)}})),A(i)}function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t;if("string"!=typeof e&&(r=e,e=g,n=t||{}),"function"!=typeof r)return void(0,o.logError)("listener must be a function");const i={topic:e,callback:r};return c.push(i),n.init&&r(e===g?y():{[e]:y(e)}),function(){c.splice(c.indexOf(i),1)}}function A(e){const t=Object.keys(e);c.filter((e=>(0,i.q9)(t,e.topic))).forEach((t=>{t.callback({[t.topic]:e[t.topic]})})),c.filter((e=>e.topic===g)).forEach((t=>t.callback(e)))}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{r(e),e.bidders.forEach((r=>{n[r]||(n[r]={}),Object.keys(e.config).forEach((i=>{let s=e.config[i];if((0,o.isPlainObject)(s)){const e=t?o.mergeDeep:Object.assign;n[r][i]=e({},n[r][i]||{},s)}else n[r][i]=s}))}))}catch(e){(0,o.logError)(e)}function r(e){if(!(0,o.isPlainObject)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,o.isPlainObject)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function C(e,t){p=e;try{return t()}finally{S()}}function S(){p=null}return m(),{getCurrentBidder:function(){return p},resetBidder:S,getConfig:y,getAnyConfig:b,readConfig:v,readAnyConfig:E,setConfig:T,mergeConfig:function(e){if(!(0,o.isPlainObject)(e))return void(0,o.logError)("mergeConfig input must be an object");const t=(0,o.mergeDeep)(h(),e);return T({...t}),t},setDefaults:function(n){(0,o.isPlainObject)(e)?(Object.assign(e,n),Object.assign(t,n)):(0,o.logError)("defaults must be an object")},resetConfig:m,runWithBidder:C,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return C(e,t.bind(this,...r))}(0,o.logWarn)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:w,getBidderConfig:function(){return n},mergeBidderConfig:function(e){return w(e,!0)}}}()},4516:(e,t,n)=>{n.d(t,{$P:()=>s,NO:()=>p,TJ:()=>l,VP:()=>u,nX:()=>c,qh:()=>f,rp:()=>d});var r=n(7746),i=n(8792),o=n(3193);const s=Object.freeze({});class a{#t;#n;#r;#i;#o=!0;#s;generatedTime;hashFields;constructor(){this.reset()}#a(e){this.#i=!0,this.#n=e,this.#r.resolve(e)}reset(){this.#r=(0,i.P)(),this.#t=!1,this.#n=null,this.#i=!1,this.generatedTime=null}enable(){this.#t=!0}get enabled(){return this.#t}get ready(){return this.#i}get promise(){return this.#i?i.Z.resolve(this.#n):(this.#t||this.#a(null),this.#r.promise)}setConsentData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.timestamp)();this.generatedTime=t,this.#o=!0,this.#a(e)}getConsentData(){return this.#n}get hash(){return this.#o&&(this.#s=(0,r.cyrb53Hash)(JSON.stringify(this.#n&&this.hashFields?this.hashFields.map((e=>this.#n[e])):this.#n)),this.#o=!1),this.#s}}const d=new class extends a{hashFields=["gdprApplies","consentString"];getConsentMeta(){const e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,r.isStr)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}},c=new class extends a{getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},l=new class extends a{hashFields=["applicableSections","gppString"];getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},u=(()=>{function e(){return!!o.vc.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset(){},get promise(){return i.Z.resolve(e())},get hash(){return e()?"1":"0"}}})(),f=function(){const e={},t={},n={};return{register(r,i,o){o&&((e[i]=e[i]||{})[r]=o,t.hasOwnProperty(i)?t[i]!==o&&(t[i]=n):t[i]=o)},get(r){const i={modules:e[r]||{}};return t.hasOwnProperty(r)&&t[r]!==n&&(i.gvlid=t[r]),i}}}(),g={gdpr:d,usp:c,gpp:l,coppa:u};const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;function t(t){return function(){return Object.fromEntries(e.map((e=>{let[n,r]=e;return[n,r[t]()]})))}}return e=Object.entries(e),Object.assign({get promise(){return i.Z.all(e.map((e=>{let[t,n]=e;return n.promise.then((e=>[t,e]))}))).then((e=>Object.fromEntries(e)))},get hash(){return(0,r.cyrb53Hash)(e.map((e=>{let[t,n]=e;return n.hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((e=>[e,t(e)]))))}()},2200:(e,t,n)=>{n.d(t,{FP:()=>o,FY:()=>u,Gw:()=>p,Q_:()=>i,Ql:()=>d,TD:()=>c,UE:()=>g,V1:()=>m,X3:()=>v,aI:()=>a,k2:()=>r,kF:()=>l,oF:()=>b,os:()=>f,q_:()=>s,s$:()=>h,vX:()=>E,zA:()=>y});const r={PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},i={GOOD:1},o={_UPDATE_USER_INFO:"updateUserInfo",AUCTION_INIT:"auctionInit",AUCTION_TIMEOUT:"auctionTimeout",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",SEAT_NON_BID:"seatNonBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",BEFORE_BIDDER_HTTP:"beforeBidderHttp",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",AD_RENDER_SUCCEEDED:"adRenderSucceeded",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable",STALE_RENDER:"staleRender",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted",RUN_PAAPI_AUCTION:"paapiRunAuction",PAAPI_BID:"paapiBid",PAAPI_NO_BID:"paapiNoBid",PAAPI_ERROR:"paapiError"},s={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},a={bidWon:"adUnitCode"},d={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},c={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host",ADOMAIN:"hb_adomain",ACAT:"hb_acat",CRID:"hb_crid",DSP:"hb_dsp"},l={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_HOST:"hb_cache_host"},u={title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice",rendererUrl:"hb_renderer_url",adTemplate:"hb_adTemplate"},f={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},g={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},p={INVALID:"Bid has missing or invalid properties",INVALID_REQUEST_ID:"Invalid request ID",BIDDER_DISALLOWED:"Bidder code is not allowed by allowedAlternateBidderCodes / allowUnknownBidderCodes",FLOOR_NOT_MET:"Bid does not meet price floor",CANNOT_CONVERT_CURRENCY:"Unable to convert currency",DSA_REQUIRED:"Bid does not provide required DSA transparency info",DSA_MISMATCH:"Bid indicates inappropriate DSA rendering method",PRICE_TOO_HIGH:"Bid price exceeds maximum value"},m={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},h={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},b={ICON:1,MAIN:3},y=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],v={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"},E="__pb_locator__"},6463:(e,t,n)=>{n.d(t,{D:()=>u,t:()=>g});var r=n(4614),i=n(7746),o=n(3193);const s={buckets:[{max:5,increment:.5}]},a={buckets:[{max:20,increment:.1}]},d={buckets:[{max:20,increment:.01}]},c={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},l={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":f(e,s,n),med:""===r?"":f(e,a,n),high:""===r?"":f(e,d,n),auto:""===r?"":f(e,l,n),dense:""===r?"":f(e,c,n),custom:""===r?"":f(e,t,n)}}function f(e,t,n){let s="";if(!g(t))return s;const a=t.buckets.reduce(((e,t)=>e.max>t.max?e:t),{max:0});let d=0,c=(0,r.sE)(t.buckets,(t=>{if(e>a.max*n){let e=t.precision;void 0===e&&(e=2),s=(t.max*n).toFixed(e)}else{if(e<=t.max*n&&e>=d*n)return t.min=d,t;d=t.max}}));return c&&(s=function(e,t,n){const r=void 0!==t.precision?t.precision:2,s=t.increment*n,a=t.min*n;let d=Math.floor,c=o.vc.getConfig("cpmRoundingFunction");"function"==typeof c&&(d=c);let l,u,f=Math.pow(10,r+2),g=(e*f-a*f)/(s*f);try{l=d(g)*s+a}catch(e){u=!0}(u||"number"!=typeof l)&&((0,i.logWarn)("Invalid rounding function passed in config"),l=Math.floor(g)*s+a);return l=Number(l.toFixed(10)),l.toFixed(r)}(e,c,n)),s}function g(e){if((0,i.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;let t=!0;return e.buckets.forEach((e=>{e.max&&e.increment||(t=!1)})),t}},8099:(e,t,n)=>{n.d(t,{W:()=>a,m:()=>s});var r=n(8792),i=n(7746),o=n(8304);const s=(0,n(2797).z3)("sync",(function(e){return o._})),a=function(){const e={};return function(t){const n=s(t);return e.hasOwnProperty(n)||(e[n]=new r.Z((e=>{const t=(0,i.createInvisibleIframe)();t.srcdoc=`<script>${n}<\/script>`,t.onload=()=>e(t.contentWindow.render),document.body.appendChild(t)}))),e[n]}}()},2021:(e,t,n)=>{n.d(t,{S1:()=>h,j8:()=>v,on:()=>m,vw:()=>y});var r=n(7746),i=n(2200),o=n(1841),s=n(3193);const a="eventHistoryTTL";let d=null;const c=(0,o.Z)({monotonic:!0,ttl:()=>d});s.vc.getConfig(a,(e=>{const t=d;e=e?.[a],d="number"==typeof e?1e3*e:null,t!==d&&c.refresh()}));let l=Array.prototype.slice,u=Array.prototype.push,f=Object.values(i.FP);const g=i.aI,p=function(){let e={},t={};function n(t,n){r.logMessage("Emitting event for: "+t);let i=n[0]||{},o=i[g[t]],s=e[t]||{que:[]};var a=Object.keys(s);let d=[];c.add({eventType:t,args:i,id:o,elapsedTime:r.getPerformanceNow()}),o&&a.includes(o)&&u.apply(d,s[o].que),u.apply(d,s.que),(d||[]).forEach((function(e){if(e)try{e.apply(null,n)}catch(e){r.logError("Error executing handler:","events.js",e,t)}}))}function i(e){return f.includes(e)}return t.has=i,t.on=function(t,n,o){if(i(t)){let r=e[t]||{que:[]};o?(r[o]=r[o]||{que:[]},r[o].que.push(n)):r.que.push(n),e[t]=r}else r.logError("Wrong event name : "+t+" Valid event names :"+f)},t.emit=function(e){let t=l.call(arguments,1);n(e,t)},t.off=function(t,n,i){let o=e[t];r.isEmpty(o)||r.isEmpty(o.que)&&r.isEmpty(o[i])||i&&(r.isEmpty(o[i])||r.isEmpty(o[i].que))||(i?(o[i].que||[]).forEach((function(e){let t=o[i].que;e===n&&t.splice(t.indexOf(e),1)})):(o.que||[]).forEach((function(e){let t=o.que;e===n&&t.splice(t.indexOf(e),1)})),e[t]=o)},t.get=function(){return e},t.addEvents=function(e){f=f.concat(e)},t.getEvents=function(){return c.toArray().map((e=>Object.assign({},e)))},t}();r._setEventEmitter(p.emit.bind(p));const{on:m,off:h,get:b,getEvents:y,emit:v,addEvents:E,has:T}=p},4078:(e,t,n)=>{n.d(t,{S:()=>I});var r=n(2797),i=n(5102),o=n(8196),s=n(7746),a=n(6475),d=n(3193),c=n(8792);const l=["architecture","bitness","model","platformVersion","fullVersionList"],u=["brands","mobile","platform"],f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator?.userAgentData;const t=e&&u.some((t=>void 0!==e[t]))?Object.freeze(p(1,e)):null;return function(){return t}}(),g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator?.userAgentData;const t={},n=new WeakMap;return function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;if(!n.has(r)){const e=Array.from(r);e.sort(),n.set(r,e.join("|"))}const i=n.get(r);if(!t.hasOwnProperty(i))try{t[i]=e.getHighEntropyValues(r).then((e=>(0,s.isEmpty)(e)?null:Object.freeze(p(2,e)))).catch((()=>null))}catch(e){t[i]=c.Z.resolve(null)}return t[i]}}();function p(e,t){function n(e,t){const n={brand:e};return(0,s.isStr)(t)&&!(0,s.isEmptyStr)(t)&&(n.version=t.split(".")),n}const r={source:e};return t.platform&&(r.platform=n(t.platform,t.platformVersion)),(t.fullVersionList||t.brands)&&(r.browsers=(t.fullVersionList||t.brands).map((e=>{let{brand:t,version:r}=e;return n(t,r)}))),void 0!==t.mobile&&(r.mobile=t.mobile?1:0),["model","bitness","architecture"].forEach((e=>{const n=t[e];(0,s.isStr)(n)&&(r[e]=n)})),r}var m=n(3790),h=n(571),b=n(286),y=n(4947),v=n(9633);const E={getRefererInfo:i.nH,findRootDomain:o.W,getWindowTop:s.getWindowTop,getWindowSelf:s.getWindowSelf,getHighEntropySUA:g,getLowEntropySUA:f},T=(0,m.A_)("FPD"),I=(0,r.z3)("sync",(e=>{const t=[e,w().catch((()=>null)),c.Z.resolve("cookieDeprecationLabel"in navigator&&(0,h.xD)(y.S1,(0,b.T)(v.wu,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch((()=>null))];return c.Z.all(t).then((e=>{let[t,n,r]=e;const i=E.getRefererInfo();if(Object.entries(S).forEach((e=>{let[n,r]=e;const o=r(t,i);o&&Object.keys(o).length>0&&(t[n]=(0,s.mergeDeep)({},o,t[n]))})),n&&(0,a.N)(t,"device.sua",Object.assign({},n,t.device.sua)),r){const e={cdep:r};(0,a.N)(t,"device.ext",Object.assign({},e,t.device.ext))}t=T(t);for(let e of m.Iq)if((0,m.Qg)(t,e)){t[e]=(0,s.mergeDeep)({},O(t,i),t[e]);break}return t}))}));function A(e){try{return e(E.getWindowTop())}catch(t){return e(E.getWindowSelf())}}function w(){const e=d.vc.getConfig("firstPartyData.uaHints");return Array.isArray(e)&&0!==e.length?E.getHighEntropySUA(e):c.Z.resolve(E.getLowEntropySUA())}function C(e){return(0,s.getDefinedParams)(e,Object.keys(e))}const S={site(e,t){if(!m.Iq.filter((e=>"site"!==e)).some(m.Qg.bind(null,e)))return C({page:t.page,ref:t.ref})},device:()=>A((e=>{const t={w:e.innerWidth||e.document.documentElement.clientWidth||e.document.body.clientWidth,h:e.innerHeight||e.document.documentElement.clientHeight||e.document.body.clientHeight,dnt:(0,s.getDNT)()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift()};return e.navigator?.webdriver&&(0,a.N)(t,"ext.webdriver",!0),t})),regs(){const e={};A((e=>e.navigator.globalPrivacyControl))&&(0,a.N)(e,"ext.gpc",1);const t=d.vc.getConfig("coppa");return"boolean"==typeof t&&(e.coppa=t?1:0),e}};function O(e,t){const n=(0,i.hh)(t.page,{noLeadingWww:!0}),r=A((e=>e.document.querySelector("meta[name='keywords']")))?.content?.replace?.(/\s/g,"");return C({domain:n,keywords:r,publisher:C({domain:E.findRootDomain(n)})})}},3790:(e,t,n)=>{n.d(t,{A_:()=>o,Iq:()=>i,Qg:()=>s});var r=n(7746);const i=["dooh","app","site"];function o(e){return function(t){return i.reduce(((n,i)=>(s(t,i)&&(null!=n?((0,r.logWarn)(`${e} specifies both '${n}' and '${i}'; dropping the latter.`),delete t[i]):n=i),n)),null),t}}function s(e,t){return null!=e[t]&&Object.keys(e[t]).length>0}},8196:(e,t,n)=>{n.d(t,{W:()=>o});var r=n(7746);const i=(0,n(5164).eA)("fpdEnrichment"),o=(0,r.memoize)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!i.cookiesAreEnabled())return e;const t=e.split(".");if(2===t.length)return e;let n,o,s=-2;const a=`_rdc${Date.now()}`,d="writeable";do{n=t.slice(s).join(".");let e=new Date((0,r.timestamp)()+1e4).toUTCString();i.setCookie(a,d,e,"Lax",n,void 0);i.getCookie(a,void 0)===d?(o=!1,i.setCookie(a,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(s+=-1,o=Math.abs(s)<=t.length)}while(o);return n}))},2797:(e,t,n)=>{n.d(t,{Bx:()=>f,Cd:()=>d,IF:()=>g,bA:()=>u,v5:()=>c,z3:()=>s});var r=n(1432),i=n.n(r),o=n(8792);let s=i()({ready:i().SYNC|i().ASYNC|i().QUEUE});const a=(0,o.P)();s.ready=(()=>{const e=s.ready;return function(){try{return e.apply(s,arguments)}finally{a.resolve()}}})();const d=a.promise,c=s.get;const l={};function u(e,t){let{postInstallAllowed:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s("async",(function(r){r.forEach((e=>t(...e))),n&&(l[e]=t)}),e)([])}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=l[e];if(i)return i(...n);c(e).before(((e,t)=>{t.push(n),e(t)}))}function g(e,t){return Object.defineProperties(t,Object.fromEntries(["before","after","getHooks","removeAll"].map((t=>[t,{get:()=>e[t]}])))),t}},4679:(e,t,n)=>{n.d(t,{B5:()=>r,Mk:()=>o,Oh:()=>s,pX:()=>i});const r="native",i="video",o="banner",s="adpod"},59:(e,t,n)=>{n.d(t,{Fb:()=>T,JL:()=>_,Sg:()=>f,Ur:()=>O,e6:()=>C,eK:()=>U,kH:()=>S,lY:()=>q,r4:()=>A,ub:()=>v,xc:()=>g});var r=n(265),i=n(7746),o=n(4614),s=n(5383),a=n(2200),d=n(4679),c=n(3667),l=n(8099);const u=n(4740);u.targetingPrefix&&"hb"!=u.targetingPrefix&&(Object.keys(a.TD).forEach((function(e){a.TD[e]=a.TD[e].replace("hb_",u.targetingPrefix+"_")})),Object.keys(a.kF).forEach((function(e){a.kF[e]=a.kF[e].replace("hb_",u.targetingPrefix+"_")})),Object.keys(a.FY).forEach((function(e){a.FY[e]=a.FY[e].replace("hb_",u.targetingPrefix+"_")})));const f=[],g=Object.keys(a.FY).map((e=>a.FY[e])),p={image:{ortb:{ver:"1.2",assets:[{required:1,id:1,img:{type:3,wmin:100,hmin:100}},{required:1,id:2,title:{len:140}},{required:1,id:3,data:{type:1}},{required:0,id:4,data:{type:2}},{required:0,id:5,img:{type:1,wmin:20,hmin:20}}]},image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}},m=M(a.V1),h=M(a.s$),b={img:1,js:2,1:"img",2:"js"},y=1;function v(e){return e.native&&"object"==typeof e.native}function E(e){if(e&&e.type&&function(e){if(!e||!(0,o.q9)(Object.keys(p),e))return(0,i.logError)(`${e} nativeParam is not supported`),!1;return!0}(e.type)&&(e=p[e.type]),!e||!e.ortb||I(e.ortb))return e}function T(e){e.forEach((e=>{const t=e.nativeParams||(0,r.Z)(e,"mediaTypes.native");t&&(e.nativeParams=E(t)),e.nativeParams&&(e.nativeOrtbRequest=e.nativeParams.ortb||function(e){if(!e&&!(0,i.isPlainObject)(e))return void(0,i.logError)("Native assets object is empty or not an object: ",e);const t={ver:"1.2",assets:[]};for(let n in e){if(a.zA.includes(n))continue;if(!a.FY.hasOwnProperty(n)){(0,i.logError)(`Unrecognized native asset code: ${n}. Asset will be ignored.`);continue}if("privacyLink"===n){t.privacy=1;continue}const r=e[n];let o=0;r.required&&(0,i.isBoolean)(r.required)&&(o=Number(r.required));const s={id:t.assets.length,required:o};if(n in a.V1)s.data={type:a.s$[a.V1[n]]},r.len&&(s.data.len=r.len);else if("icon"===n||"image"===n){if(s.img={type:"icon"===n?a.oF.ICON:a.oF.MAIN},r.aspect_ratios)if((0,i.isArray)(r.aspect_ratios))if(r.aspect_ratios.length){const{min_width:e,min_height:t}=r.aspect_ratios[0];(0,i.isInteger)(e)&&(0,i.isInteger)(t)?(s.img.wmin=e,s.img.hmin=t):(0,i.logError)("image.aspect_ratios min_width or min_height are invalid: ",e,t);const n=r.aspect_ratios.filter((e=>e.ratio_width&&e.ratio_height)).map((e=>`${e.ratio_width}:${e.ratio_height}`));n.length>0&&(s.img.ext={aspectratios:n})}else(0,i.logError)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,i.logError)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,i.isInteger)(r.sizes[0])&&(0,i.isInteger)(r.sizes[1])?(s.img.w=r.sizes[0],s.img.h=r.sizes[1],delete s.img.hmin,delete s.img.wmin):(0,i.logError)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===n?s.title={len:r.len||140}:"ext"===n&&(s.ext=r,delete s.required);t.assets.push(s)}return t}(e.nativeParams))}))}function I(e){const t=e.assets;if(!Array.isArray(t)||0===t.length)return(0,i.logError)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",t),!1;const n=t.map((e=>e.id));return t.length!==new Set(n).size||n.some((e=>e!==parseInt(e,10)))?((0,i.logError)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):e.hasOwnProperty("eventtrackers")&&!Array.isArray(e.eventtrackers)?((0,i.logError)("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):t.every((e=>function(e){if(!(0,i.isPlainObject)(e))return(0,i.logError)("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!(0,i.isNumber)(e.img.w)&&!(0,i.isNumber)(e.img.wmin))return(0,i.logError)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,i.isNumber)(e.img.h)&&!(0,i.isNumber)(e.img.hmin))return(0,i.logError)("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!(0,i.isNumber)(e.title.len))return(0,i.logError)("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!(0,i.isNumber)(e.data.type))return(0,i.logError)("for data asset 'type' property must be a number"),!1}else if(e.video&&!(Array.isArray(e.video.mimes)&&Array.isArray(e.video.protocols)&&(0,i.isNumber)(e.video.minduration)&&(0,i.isNumber)(e.video.maxduration)))return(0,i.logError)("video asset is not properly configured"),!1;return!0}(e)))}function A(e){let{index:t=s.K.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.getAdUnit(e);if(!n)return!1;let r=n.nativeOrtbRequest,i=e.native?.ortb||F(e.native,r);return w(i,r)}function w(e,t){if(!(0,r.Z)(e,"link.url"))return(0,i.logError)("native response doesn't have 'link' property. Ortb response: ",e),!1;let n=t.assets.filter((e=>1===e.required)).map((e=>e.id)),s=e.assets.map((e=>e.id));const a=n.every((e=>(0,o.q9)(s,e)));return a||(0,i.logError)(`didn't receive a bid with all required assets. Required ids: ${n}, but received ids in response: ${s}`),a}function C(e,t){const n=t.native.ortb||$(t.native);return"click"===e.action?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{fetchURL:n=i.triggerPixel}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){const r=(e.assets||[]).filter((e=>e.link)).reduce(((e,t)=>(e[t.id]=t.link,e)),{}),i=e.link?.clicktrackers||[];let o=r[t],s=i;o&&(s=o.clicktrackers||[]),s.forEach((e=>n(e)))}else(e.link?.clicktrackers||[]).forEach((e=>n(e)))}(n,e?.assetId):function(e){let{runMarkup:t=(e=>(0,i.insertHtmlIntoIframe)(e)),fetchURL:n=i.triggerPixel}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(e.eventtrackers||[]).filter((e=>e.event===y));let{img:o,js:s}=r.reduce(((e,t)=>(b.hasOwnProperty(t.method)&&e[b[t.method]].push(t.url),e)),{img:[],js:[]});e.imptrackers&&(o=o.concat(e.imptrackers));o.forEach((e=>n(e))),s=s.map((e=>`<script async src="${e}"><\/script>`)),e.jstracker&&(s=s.concat([e.jstracker]));s.length&&t(s.join("\n"))}(n),e.action}function S(e,t){const n=t?.nativeOrtbRequest,r=e.native?.ortb;if(n&&r){const t=function(e,t){const n={},r=t?.assets||[];n.clickUrl=e.link.url,n.privacyLink=e.privacy;for(const t of e?.assets||[]){const e=r.find((e=>t.id===e.id));t.title?n.title=t.title.text:t.img?n[e.img.type===a.oF.MAIN?"image":"icon"]={url:t.img.url,width:t.img.w,height:t.img.h}:t.data&&(n[m[h[e.data.type]]]=t.data.value)}n.impressionTrackers=[];let i=[];e.imptrackers&&n.impressionTrackers.push(...e.imptrackers);for(const t of e?.eventtrackers||[])t.event===y&&t.method===b.img&&n.impressionTrackers.push(t.url),t.event===y&&t.method===b.js&&i.push(t.url);i=i.map((e=>`<script async src="${e}"><\/script>`)),e?.jstracker&&i.push(e.jstracker);i.length&&(n.javascriptTrackers=i.join("\n"));return n}(r,n);Object.assign(e.native,t)}["rendererUrl","adTemplate"].forEach((n=>{const r=t?.nativeParams?.[n];r&&(e.native[n]=j(r))}))}function O(e){let{index:t=s.K.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};const i=t.getAdUnit(e),o=!1!==(0,r.Z)(i,"nativeParams.sendTargetingKeys"),a=P(i),d={...e.native,...e.native.ext};return delete d.ext,Object.keys(d).forEach((t=>{const s=a[t];let d=j(e.native[t])||j((0,r.Z)(e,`native.ext.${t}`));if("adTemplate"===t||!s||!d)return;let c=(0,r.Z)(i,`nativeParams.${t}.sendId`);if("boolean"!=typeof c&&(c=(0,r.Z)(i,`nativeParams.ext.${t}.sendId`)),c){d=`${s}:${e.adId}`}let l=(0,r.Z)(i,`nativeParams.${t}.sendTargetingKeys`);"boolean"!=typeof l&&(l=(0,r.Z)(i,`nativeParams.ext.${t}.sendTargetingKeys`));("boolean"==typeof l?l:o)&&(n[s]=d)})),n}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];return Object.entries(e).filter((e=>{let[r,i]=e;return i&&(!1===n&&"ext"===r||null==t||t.includes(r))})).forEach((e=>{let[i,o]=e;!1===n&&"ext"===i?r.push(...B(o,t,!0)):(n||a.FY.hasOwnProperty(i))&&r.push({key:i,value:j(o)})})),r}function k(e,t,n){const r={...(0,i.getDefinedParams)(e.native,["rendererUrl","adTemplate"]),assets:B(e.native,n),nativeKeys:a.FY};return e.native.ortb?r.ortb=e.native.ortb:t.mediaTypes?.native?.ortb&&(r.ortb=F(e.native,t.nativeOrtbRequest)),r}function R(e,t,n){let{index:r=s.K.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={message:"assetResponse",adId:e.adId};let o=(0,c.Lj)(t).native;return o?(i.native=Object.assign({},o),i.renderer=(0,l.m)(t),null!=n&&(o.assets=o.assets.filter((e=>{let{key:t}=e;return n.includes(t)})))):o=k(t,r.getAdUnit(t),n),Object.assign(i,o)}const D=Object.fromEntries(Object.entries(a.FY).map((e=>{let[t,n]=e;return[n,t]})));function U(e,t){const n=e.assets.map((e=>D[e]));return R(e,t,n)}function _(e,t){return R(e,t,null)}function j(e){return e?.url||e}function P(e){const t={};return(0,r.Z)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((e=>{t[e]=`hb_native_${e}`})),{...a.FY,...t}}function x(e,t){for(;e&&t&&e!==t;)e>t?e-=t:t-=e;return e||t}function N(e){if(!I(e))return;const t={};for(const n of e.assets){if(n.title){const e={required:!!n.required&&Boolean(n.required),len:n.title.len};t.title=e}else if(n.img){const e={required:!!n.required&&Boolean(n.required)};if(n.img.w&&n.img.h)e.sizes=[n.img.w,n.img.h];else if(n.img.wmin&&n.img.hmin){const t=x(n.img.wmin,n.img.hmin);e.aspect_ratios=[{min_width:n.img.wmin,min_height:n.img.hmin,ratio_width:n.img.wmin/t,ratio_height:n.img.hmin/t}]}n.img.type===a.oF.MAIN?t.image=e:t.icon=e}else if(n.data){let e=Object.keys(a.s$).find((e=>a.s$[e]===n.data.type)),r=Object.keys(a.V1).find((t=>a.V1[t]===e));t[r]={required:!!n.required&&Boolean(n.required)},n.data.len&&(t[r].len=n.data.len)}e.privacy&&(t.privacyLink={required:!1})}return t}function q(e){{if(!e||!(0,i.isArray)(e))return e;if(!e.some((e=>(e?.mediaTypes||{})[d.B5]?.ortb)))return e;let t=(0,i.deepClone)(e);for(const e of t)e.mediaTypes&&e.mediaTypes[d.B5]&&e.mediaTypes[d.B5].ortb&&(e.mediaTypes[d.B5]=Object.assign((0,i.pick)(e.mediaTypes[d.B5],a.zA),N(e.mediaTypes[d.B5].ortb)),e.nativeParams=E(e.mediaTypes[d.B5]));return t}}function $(e){const t={link:{},eventtrackers:[]};return Object.entries(e).forEach((e=>{let[n,r]=e;switch(n){case"clickUrl":t.link.url=r;break;case"clickTrackers":t.link.clicktrackers=Array.isArray(r)?r:[r];break;case"impressionTrackers":(Array.isArray(r)?r:[r]).forEach((e=>{t.eventtrackers.push({event:y,method:b.img,url:e})}));break;case"javascriptTrackers":t.jstracker=Array.isArray(r)?r.join(""):r;break;case"privacyLink":t.privacy=r}})),t}function F(e,t){const n={...$(e),assets:[]};function r(e,r){let o=t.assets.find(e);null!=o&&(o=(0,i.deepClone)(o),r(o),n.assets.push(o))}return Object.keys(e).filter((t=>!!e[t])).forEach((t=>{const n=j(e[t]);switch(t){case"title":r((e=>null!=e.title),(e=>{e.title={text:n}}));break;case"image":case"icon":const e="image"===t?a.oF.MAIN:a.oF.ICON;r((t=>null!=t.img&&t.img.type===e),(e=>{e.img={url:n}}));break;default:t in a.V1&&r((e=>null!=e.data&&e.data.type===a.s$[a.V1[t]]),(e=>{e.data={value:n}}))}})),n}function M(e){var t={};for(var n in e)t[e[n]]=n;return t}},4614:(e,t,n)=>{function r(e,t,n){return e&&e.includes(t,n)||!1}function i(){return Array.from.apply(Array,arguments)}function o(e,t,n){return e&&e.find(t,n)}n.d(t,{Oc:()=>i,q9:()=>r,sE:()=>o})},9262:(e,t,n)=>{var r=n(8640),i=n(7746),o=n(265),s=n(6475),a=n(59),d=n(2200),c=n(4614),l=n(3667),u=n(8099);const{REQUEST:f,RESPONSE:g,NATIVE:p,EVENT:m}=d.X3,h={[f]:function(e,t,n){(0,l.XD)({renderFn(t){e(Object.assign({message:g,renderer:(0,u.m)(n)},t))},resizeFn:y(t.adId,n),options:t.options,adId:t.adId,bidResponse:n})},[m]:function(e,t,n){if(null==n)return void(0,i.logError)(`Cannot find ad '${t.adId}' for x-origin event request`);if(n.status!==d.UE.RENDERED)return void(0,i.logWarn)(`Received x-origin event request without corresponding render request for ad '${n.adId}'`);return(0,l.oc)(t,n)}};function b(){window.addEventListener("message",(function(e){!function(e){var t=e.message?"message":"data",n={};try{n=JSON.parse(e[t])}catch(e){return}if(n&&n.adId&&n.message&&h.hasOwnProperty(n.message))(0,l.YC)(n.adId,n.message===d.X3.REQUEST).then((t=>{var r,o;h[n.message]((r=n.adId,o=function(e){return null==e.origin&&0===e.ports.length?function(){const e="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw(0,i.logError)(e),new Error(e)}:e.ports.length>0?function(t){e.ports[0].postMessage(JSON.stringify(t))}:function(t){e.source.postMessage(JSON.stringify(t),e.origin)}}(e),function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return o(Object.assign({},e,{adId:r}),...n)}),n,t)}))}(e)}),!1)}function y(e,t){return function(n,r){!function(e){let{adId:t,adUnitCode:n,width:r,height:o}=e;function s(e){return e?e+"px":"100%"}function a(e){let r=d(t,n),i=document.getElementById(r);return i&&i.querySelector(e)}function d(e,t){return(0,i.isGptPubadsDefined)()?l(e):(0,i.isApnGetTagDefined)()?u(t):t}function l(e){const t=(0,c.sE)(window.googletag.pubads().getSlots(),(t=>(0,c.sE)(t.getTargetingKeys(),(n=>(0,c.q9)(t.getTargeting(n),e)))));return t?t.getSlotElementId():null}function u(e){let t=window.apntag.getTag(e);return t&&t.targetId}["div","iframe"].forEach((e=>{let t=a(e+':not([style*="display: none"])');if(t){let e=t.style;e.width=s(r),e.height=s(o)}else(0,i.logError)(`Unable to locate matching page element for adUnitCode ${n}. Can't resize it to ad's dimensions. Please review setup.`)}))}({...t,width:n,height:r,adId:e})}}Object.assign(h,{[p]:function(e,t,n){if(null==n)return void(0,i.logError)(`Cannot find ad for x-origin event request: '${t.adId}'`);n.status!==d.UE.RENDERED&&(0,l.Ps)(n);switch(t.action){case"assetRequest":e((0,a.eK)(t,n));break;case"allAssetRequest":e((0,a.JL)(t,n));break;default:(0,l.E$)(t,n,{resizeFn:y(n)})}}});var v=n(1974),E=n(3193),T=n(5383),I=n(8833),A=n(5975),w=n(2021),C=n(2797),S=n(4679),O=n(1136);const B=n(4740);B.targetingPrefix&&"hb"!=B.targetingPrefix&&(Object.keys(d.TD).forEach((function(e){d.TD[e]=d.TD[e].replace("hb_",B.targetingPrefix+"_")})),Object.keys(d.kF).forEach((function(e){d.kF[e]=d.kF[e].replace("hb_",B.targetingPrefix+"_")})),Object.keys(d.FY).forEach((function(e){d.FY[e]=d.FY[e].replace("hb_",B.targetingPrefix+"_")})),(0,i.logInfo)("__ Targeting Prefix : targeting.js Using TARGETING_KEYS: ",d.TD),(0,i.logInfo)("__ Targeting Prefix : targeting.js Using DEFAULT_TARGETING_KEYS: ",d.kF),(0,i.logInfo)("__ Targeting Prefix : targeting.js Using NATIVE_KEYS: ",d.FY));var k=[];const R="targetingControls.allowTargetingKeys",D="targetingControls.addTargetingKeys",U=`Only one of "${R}" or "${D}" can be set`,_=Object.keys(d.TD).map((e=>d.TD[e]));let j={isActualBid:e=>e.getStatusCode()===d.Q_.GOOD,isBidNotExpired:e=>e.responseTimestamp+1e3*(0,I.N)(e)>(0,i.timestamp)(),isUnusedBid:e=>e&&(e.status&&!(0,c.q9)([d.UE.RENDERED],e.status)||!e.status)};function P(e){return!Object.values(j).some((t=>!t(e)))}const x=(0,C.z3)("sync",(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r){const r=[],o=E.vc.getConfig("sendBidsControl.dealPrioritization");let s=(0,i.groupBy)(e,"adUnitCode");return Object.keys(s).forEach((e=>{let a=[],d=(0,i.groupBy)(s[e],"bidderCode");Object.keys(d).forEach((e=>a.push(d[e].reduce(t)))),n>0?(a=o?a.sort(N(!0)):a.sort(((e,t)=>t.cpm-e.cpm)),r.push(...a.slice(0,n))):r.push(...a)})),r}return e}));function N(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){return void 0!==t.adserverTargeting.hb_deal&&void 0===n.adserverTargeting.hb_deal?-1:void 0===t.adserverTargeting.hb_deal&&void 0!==n.adserverTargeting.hb_deal?1:e?n.cpm-t.cpm:n.adserverTargeting.hb_pb-t.adserverTargeting.hb_pb}}function q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>window.googletag.pubads().getSlots();return n().reduce(((e,n)=>{const r=(0,i.isFn)(t)&&t(n);return Object.keys(e).filter((0,i.isFn)(r)?r:(0,i.isAdUnitCodeMatchingSlot)(n)).forEach((t=>e[t].push(n))),e}),Object.fromEntries(e.map((e=>[e,[]]))))}const $=function(e){let t={},n={};function r(e,t){return e.adserverTargeting&&t&&((0,i.isArray)(t)&&(0,c.q9)(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function s(e,t){if(!0===E.vc.getConfig("targetingControls.alwaysIncludeDeals")){const n=_.concat(a.xc);return x(t,O.ZH).map((t=>{if(t.dealId&&r(t,e))return{[t.adUnitCode]:$(t,n.filter((e=>void 0!==t.adserverTargeting[e])))}})).filter((e=>e))}return[]}function l(e,t){let n=[];return e.forEach((e=>{n[e]=0})),t.forEach((e=>{"number"==typeof n[e.adUnitCode]&&(n[e.adUnitCode]=n[e.adUnitCode]+1)})),Object.keys(n).map((e=>{let t={};return t[e]=[{hb_bd:[n[e]]}],t}))}function u(e,t){return t.filter((t=>!!e.includes(t.adUnitCode))).map((e=>({[e.adUnitCode]:[{hb_cs:[e.cacheStatus]}]})))}function f(e,t){const n=Object.assign({},d.TD,d.FY),r=Object.keys(n),o={};(0,i.logInfo)(`allowTargetingKeys - allowed keys [ ${t.map((e=>n[e])).join(", ")} ]`),e.map((e=>{const i=Object.keys(e)[0],s=e[i].filter((e=>{const i=Object.keys(e)[0],s=0===r.filter((e=>0===i.indexOf(n[e]))).length||(0,c.sE)(t,(e=>{const t=n[e];return 0===i.indexOf(t)}));return o[i]=!s,s}));e[i]=s}));const s=Object.keys(o).filter((e=>o[e]));(0,i.logInfo)(`allowTargetingKeys - removed keys [ ${s.join(", ")} ]`);return e.filter((e=>e[Object.keys(e)[0]].length>0))}function g(e,t){let n=(0,i.deepClone)(e);return Object.keys(n).map((e=>({adUnitCode:e,adserverTargeting:n[e]}))).sort(N()).reduce((function(e,r,o,s){let a=(d=r.adserverTargeting,Object.keys(d).reduce((function(e,t){return e+`${t}%3d${encodeURIComponent(d[t])}%26`}),""));var d;o+1===s.length&&(a=a.slice(0,-3));let c=r.adUnitCode,l=a.length;return l<=t?(t-=l,(0,i.logInfo)(`AdUnit '${c}' auction keys comprised of ${l} characters. Deducted from running threshold; new limit is ${t}`,n[c]),e[c]=n[c]):(0,i.logWarn)(`The following keys for adUnitCode '${c}' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ${l}, the current allotted amount was ${t}.\n`,n[c]),o+1===s.length&&0===Object.keys(e).length&&(0,i.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e}),{})}function p(e){let t=e.map((e=>({[Object.keys(e)[0]]:e[Object.keys(e)[0]].map((e=>({[Object.keys(e)[0]]:e[Object.keys(e)[0]].join(",")}))).reduce(((e,t)=>Object.assign(t,e)),{})}))).reduce((function(e,t){var n=Object.keys(t)[0];return e[n]=Object.assign({},e[n],t[n]),e}),{});return t}function m(t){return"string"==typeof t?[t]:(0,i.isArray)(t)?t:e.getAdUnitCodes()||[]}function h(){let t=e.getBidsReceived();if(E.vc.getConfig("useBidCache")){const e=E.vc.getConfig("bidCacheFilterFunction");"function"==typeof e&&(t=t.filter((t=>n[t.adUnitCode]===t.auctionId||!!e(t))))}else t=t.filter((e=>n[e.adUnitCode]===e.auctionId));return t=t.map((e=>("storage"!=e.cacheStatus&&(n[e.adUnitCode]===e.auctionId?e.cacheStatus="current":e.cacheStatus="cached"),e))),t=t.filter((e=>(0,o.Z)(e,"video.context")!==S.Oh)).filter(P),t.forEach((e=>(e.latestTargetedAuctionId=n[e.adUnitCode],e))),x(t,O.K$)}function b(e,n){let r=t.getWinningBids(e,n),i=y();return r=r.map((e=>({[e.adUnitCode]:Object.keys(e.adserverTargeting).filter((t=>void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(t))).reduce(((t,n)=>{const r=[e.adserverTargeting[n]],i={[n.substring(0,20)]:r};if(n===d.TD.DEAL){const o={[`${n}_${e.bidderCode}`.substring(0,20)]:r};return[...t,i,o]}return[...t,i]}),[])}))),r}function y(){return e.getStandardBidderAdServerTargeting().map((e=>e.key)).concat(_).filter(i.uniques)}function v(e,t,n,r){return Object.keys(t.adserverTargeting).filter(T()).forEach((n=>{e.length&&e.filter(function(e){return function(n){return n.adUnitCode===t.adUnitCode&&n.adserverTargeting[e]}}(n)).forEach(function(e){return function(n){(0,i.isArray)(n.adserverTargeting[e])||(n.adserverTargeting[e]=[n.adserverTargeting[e]]),n.adserverTargeting[e]=n.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(i.uniques),delete t.adserverTargeting[e]}}(n))})),e.push(t),e}function T(){let e=y();return e=e.concat(a.xc),function(t){return-1===e.indexOf(t)}}function I(e){return{[e.adUnitCode]:Object.keys(e.adserverTargeting).filter(T()).map((t=>({[t.substring(0,20)]:[e.adserverTargeting[t]]})))}}function B(e,t){return t.filter((t=>(0,c.q9)(e,t.adUnitCode))).map((e=>Object.assign({},e))).reduce(v,[]).map(I).filter((e=>e))}function j(e,t){const n=_.concat(a.xc),i=E.vc.getConfig("sendBidsControl.bidLimit"),o=x(t,O.ZH,i),s=E.vc.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),c=s?s.map((e=>d.TD[e])):n;return o.map((t=>{if(r(t,e))return{[t.adUnitCode]:$(t,n.filter((e=>void 0!==t.adserverTargeting[e]&&-1!==c.indexOf(e))))}})).filter((e=>e))}function $(e,t){return t.map((t=>({[`${t}_${e.bidderCode}`.substring(0,20)]:[e.adserverTargeting[t]]})))}function F(t){function n(e){return(0,o.Z)(e,d.k2.ADSERVER_TARGETING)}function r(e){const t=n(e);return Object.keys(t).map((function(e){return(0,i.isStr)(t[e])&&(t[e]=t[e].split(",").map((e=>e.trim()))),(0,i.isArray)(t[e])||(t[e]=[t[e]]),{[e]:t[e]}}))}return e.getAdUnits().filter((e=>(0,c.q9)(t,e.code)&&n(e))).map((e=>({[e.code]:r(e)})))}return t.setLatestAuctionForAdUnit=function(e,t){n[e]=t},t.resetPresetTargeting=function(e,t){if((0,i.isGptPubadsDefined)()){const n=m(e);let r=k.reduce(((e,t)=>(e[t]=null,e)),{});Object.values(q(n,t)).forEach((e=>{e.forEach((e=>e.updateTargetingFromMap(r)))}))}},t.resetPresetTargetingAST=function(e){m(e).forEach((function(e){const t=window.apntag.getTag(e);if(t&&t.keywords){const n=Object.keys(t.keywords),r={};n.forEach((e=>{(0,c.q9)(k,e.toLowerCase())||(r[e]=t.keywords[e])})),window.apntag.modifyTag(e,{keywords:r})}}))},t.getAllTargeting=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h();const n=m(e);var r=b(n,t).concat(B(n,t)).concat(E.vc.getConfig("enableSendAllBids")?j(n,t):s(n,t)).concat(l(n,t)).concat(u(n,t)).concat(F(n));r.map((e=>{Object.keys(e).map((t=>{e[t].map((e=>{-1===k.indexOf(Object.keys(e)[0])&&(k=Object.keys(e).concat(k))}))}))}));const o=Object.keys(Object.assign({},d.kF,d.FY));let a=E.vc.getConfig(R);const c=E.vc.getConfig(D);if(null!=c&&null!=a)throw new Error(U);a=null!=c?o.concat(c):a||o,Array.isArray(a)&&a.length>0&&(r=f(r,a)),r=p(r);const y=E.vc.getConfig("targetingControls.auctionKeyMaxChars");return y&&((0,i.logInfo)(`Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ${y} characters. Running checks on auction keys...`),r=g(r,y)),n.forEach((e=>{r[e]||(r[e]={})})),r},E.vc.getConfig("targetingControls",(function(e){null!=(0,o.Z)(e,R)&&null!=(0,o.Z)(e,D)&&(0,i.logError)(U)})),t.setTargetingForGPT=(0,C.z3)("sync",(function(n,r){let o=t.getAllTargeting(n),s=Object.fromEntries(k.map((e=>[e,null])));Object.entries(q(Object.keys(o),r)).forEach((e=>{let[t,n]=e;n.forEach((e=>{Object.keys(o[t]).forEach((e=>{let n=o[t][e];"string"==typeof n&&-1!==n.indexOf(",")&&(n=n.split(",")),o[t][e]=n})),(0,i.logMessage)(`Attempting to set targeting-map for slot: ${e.getSlotElementId()} with targeting-map:`,o[t]),e.updateTargetingFromMap(Object.assign({},s,o[t]))}))})),Object.keys(o).forEach((t=>{Object.keys(o[t]).forEach((n=>{"hb_adid"===n&&e.setStatusForBids(o[t][n],d.UE.BID_TARGETING_SET)}))})),t.targetingDone(o),w.j8(d.FP.SET_TARGETING,o)}),"setTargetingForGPT"),t.targetingDone=(0,C.z3)("sync",(function(e){return e}),"targetingDone"),t.getWinningBids=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h();const n=m(e);return t.filter((e=>(0,c.q9)(n,e.adUnitCode))).filter((e=>!0===A.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0)).map((e=>e.adUnitCode)).filter(i.uniques).map((e=>t.filter((t=>t.adUnitCode===e?t:null)).reduce(O.ZH)))},t.setTargetingForAst=function(e){let n=t.getAllTargeting(e);try{t.resetPresetTargetingAST(e)}catch(e){(0,i.logError)("unable to reset targeting for AST"+e)}Object.keys(n).forEach((e=>Object.keys(n[e]).forEach((t=>{if((0,i.logMessage)(`Attempting to set targeting for targetId: ${e} key: ${t} value: ${n[e][t]}`),(0,i.isStr)(n[e][t])||(0,i.isArray)(n[e][t])){let r={},i=/pt[0-9]/;t.search(i)<0?r[t.toUpperCase()]=n[e][t]:r[t]=n[e][t],window.apntag.setKeywords(e,r,{overrideKeyValue:!0})}}))))},t.isApntagDefined=function(){if(window.apntag&&(0,i.isFn)(window.apntag.setKeywords))return!0},t}(T.K);var F=n(9626),M=n(5730),W=n(8792);const L="__asc_debugging__";function z(){return(0,r.R)().installedModules.includes("debugging")}function G(e){return new W.Z((t=>{(0,M.B)(e,"debugging",t)}))}function Z(){let{alreadyInstalled:e=z,script:t=G}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null;return function(){return null==n&&(n=new W.Z(((n,o)=>{setTimeout((()=>{if(e())n();else{const e="https://cdn.jsdelivr.net/npm/prebid.js@9.6.0/dist/debugging-standalone.js";(0,i.logMessage)(`Debugging module not installed, loading it from "${e}"...`),(0,r.R)()._installDebugging=!0,t(e).then((()=>{(0,r.R)()._installDebugging({DEBUG_KEY:L,hook:C.z3,config:E.vc,createBid:F.m,logger:(0,i.prefixLog)("DEBUG:")})})).then(n,o)}}))}))),n}}const V=function(){let{load:e=Z(),hook:t=(0,C.v5)("requestBids")}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null,r=!1;function i(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return(n||W.Z.resolve()).then((()=>e.apply(this,r)))}function o(){r||(n=e(),t.before(i,99),r=!0)}function s(){t.getHooks({hook:i}).remove(),r=!1}function a(){n=null,s()}return{enable:o,disable:s,reset:a}}();V.reset;E.vc.getConfig("debugging",(function(e){let{debugging:t}=e;t?.enabled?V.enable():V.disable()}));var K=n(5164),H=n(3304),J=n(9128),Y=n(4078),Q=n(4516),X=n(154);const ee=(0,r.R)(),{triggerUserSyncs:te}=v.k_,ne=n(4740),{ADD_AD_UNITS:re,REQUEST_BIDS:ie,SET_TARGETING:oe}=d.FP,se={bidWon:function(e){if(!T.K.getBidsRequested().map((e=>e.bids.map((e=>e.adUnitCode)))).reduce(i.flatten).filter(i.uniques).includes(e))return void(0,i.logError)('The "'+e+'" placement is not defined.');return!0}};function ae(e,t){let n=[];return(0,i.isArray)(e)&&(t?e.length===t:e.length>0)&&(e.every((e=>(0,i.isArrayOfNums)(e,2)))?n=e:(0,i.isArrayOfNums)(e,2)&&n.push(e)),n}function de(e){const t=(0,i.deepClone)(e),n=t.mediaTypes.banner,r=ae(n.sizes);return r.length>0?(n.sizes=r,t.sizes=r):((0,i.logError)("Detected a mediaTypes.banner object without a proper sizes field. Please ensure the sizes are listed like: [[300, 250], ...]. Removing invalid mediaTypes.banner object from request."),delete t.mediaTypes.banner),t}function ce(e){const t=(0,i.deepClone)(e),n=t.mediaTypes.video;if(n.playerSize){let e="number"==typeof n.playerSize[0]?2:1;const r=ae(n.playerSize,e);r.length>0?(2===e&&(0,i.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),n.playerSize=r,t.sizes=r):((0,i.logError)("Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete t.mediaTypes.video.playerSize)}return t}function le(e){function t(t){return(0,i.logError)(`Error in adUnit "${e.code}": ${t}. Removing native request from ad unit`,e),delete r.mediaTypes.native,r}function n(e){for(const t of["sendTargetingKeys","types"])if(o.hasOwnProperty(t)){const n=e(t);if(n)return n}}const r=(0,i.deepClone)(e),o=r.mediaTypes.native;if(o.ortb){if(o.ortb.assets?.some((e=>!(0,i.isNumber)(e.id)||e.id<0||e.id%1!=0)))return t("native asset ID must be a nonnegative integer");if(n((e=>t(`ORTB native requests cannot specify "${e}"`))))return r;const e=Object.keys(d.FY).filter((e=>d.FY[e].includes("hb_native_"))),s=Object.keys(o).filter((t=>e.includes(t)));s.length>0&&((0,i.logError)(`when using native OpenRTB format, you cannot use legacy native properties. Deleting ${s} keys from request.`),s.forEach((e=>delete r.mediaTypes.native[e])))}else n((e=>`mediaTypes.native.${e} is deprecated, consider using native ORTB instead`));return o.image&&o.image.sizes&&!Array.isArray(o.image.sizes)&&((0,i.logError)("Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request."),delete r.mediaTypes.native.image.sizes),o.image&&o.image.aspect_ratios&&!Array.isArray(o.image.aspect_ratios)&&((0,i.logError)("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete r.mediaTypes.native.image.aspect_ratios),o.icon&&o.icon.sizes&&!Array.isArray(o.icon.sizes)&&((0,i.logError)("Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request."),delete r.mediaTypes.native.icon.sizes),r}function ue(e,t){let n=(0,o.Z)(e,`mediaTypes.${t}.pos`);if(!(0,i.isNumber)(n)||isNaN(n)||!isFinite(n)){let n=`Value of property 'pos' on ad unit ${e.code} should be of type: Number`;(0,i.logWarn)(n),w.j8(d.FP.AUCTION_DEBUG,{type:"WARNING",arguments:n}),delete e.mediaTypes[t].pos}return e}function fe(e){const t=t=>`adUnit.code '${e.code}' ${t}`,n=e.mediaTypes,r=e.bids;return null==r||(0,i.isArray)(r)?null==r&&null==e.ortb2Imp?((0,i.logError)(t("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):n&&0!==Object.keys(n).length?(null==e.ortb2Imp||null!=r&&0!==r.length||(0,i.logMessage)(t("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters")),e):((0,i.logError)(t("does not define a 'mediaTypes' object. This is a required field for the auction, so this adUnit has been removed.")),null):((0,i.logError)(t("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}!function(){let e=null;try{e=window.sessionStorage}catch(e){}if(null!==e){let t=V,n=null;try{n=e.getItem(L)}catch(e){}null!==n&&t.enable()}}(),ee.bidderSettings=ee.bidderSettings||{},ee.libLoaded=!0,ee.version="v9.6.0",(0,i.logInfo)("Prebid.js v9.6.0 loaded"),ee.installedModules=ee.installedModules||[],ee.adUnits=ee.adUnits||[],ee.triggerUserSyncs=te;const ge={validateAdUnit:fe,validateBannerMediaType:de,validateSizes:ae};Object.assign(ge,{validateNativeMediaType:le}),Object.assign(ge,{validateVideoMediaType:ce});const pe=(0,C.z3)("sync",(function(e){const t=[];return e.forEach((e=>{if(null==(e=fe(e)))return;const n=e.mediaTypes;let r,i,o;n.banner&&(r=de(e),n.banner.hasOwnProperty("pos")&&(r=ue(r,"banner"))),n.video&&(i=ce(r||e),n.video.hasOwnProperty("pos")&&(i=ue(i,"video"))),n.native&&(o=le(i||(r||e)));const s=Object.assign({},r,i,o);t.push(s)})),t}),"checkAdUnitSetup");function me(e){e.forEach((e=>(0,X.cx)(e)))}function he(e){const t=T.K[e]().filter((e=>T.K.getAdUnitCodes().includes(e.adUnitCode))),n=T.K.getLastAuctionId();return t.map((e=>e.adUnitCode)).filter(i.uniques).map((e=>t.filter((t=>t.auctionId===n&&t.adUnitCode===e)))).filter((e=>e&&e[0]&&e[0].adUnitCode)).map((e=>({[e[0].adUnitCode]:{bids:e}}))).reduce(((e,t)=>Object.assign(e,t)),{})}ee.getAdserverTargetingForAdUnitCodeStr=function(e){if((0,i.logInfo)("Invoking asc.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=ee.getAdserverTargetingForAdUnitCode(e);return(0,i.transformAdServerTargetingObj)(t)}(0,i.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},ee.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){const t=T.K.getAllBidsForAdUnitCode(e).filter(P);return t.length?t.reduce(O.ZH):{}}(0,i.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},ee.getAdserverTargetingForAdUnitCode=function(e){return ee.getAdserverTargeting(e)[e]},ee.getAdserverTargeting=function(e){return(0,i.logInfo)("Invoking asc.getAdserverTargeting",arguments),$.getAllTargeting(e)},ee.getConsentMetadata=function(){return(0,i.logInfo)("Invoking asc.getConsentMetadata"),Q.NO.getConsentMeta()},ee.getNoBids=function(){return(0,i.logInfo)("Invoking asc.getNoBids",arguments),he("getNoBids")},ee.getNoBidsForAdUnitCode=function(e){return{bids:T.K.getNoBids().filter((t=>t.adUnitCode===e))}},ee.getBidResponses=function(){return(0,i.logInfo)("Invoking asc.getBidResponses",arguments),he("getBidsReceived")},asc.getAuctionBidsRequested=function(){return T.K.getBidsRequested()},asc.getAuctionNoBids=function(){return T.K.getNoBids()},asc.getAuctionBidResponses=function(){return T.K.getBidsReceived()},ee.getBidResponsesForAdUnitCode=function(e){return{bids:T.K.getBidsReceived().filter((t=>t.adUnitCode===e))}},ee.setTargetingForGPTAsync=function(e,t){(0,i.logInfo)("Invoking asc.setTargetingForGPTAsync",arguments),(0,i.isGptPubadsDefined)()?$.setTargetingForGPT(e,t):(0,i.logError)("window.googletag is not defined on the page")},ee.setTargetingForAst=function(e){(0,i.logInfo)("Invoking asc.setTargetingForAn",arguments),$.isApntagDefined()?($.setTargetingForAst(e),w.j8(oe,$.getAllTargeting())):(0,i.logError)("window.apntag is not defined on the page")},ee.renderAd=(0,C.z3)("async",(function(e,t,n){(0,i.logInfo)("Invoking asc.renderAd",arguments),(0,i.logMessage)("Calling renderAd with adId :"+t),(0,l.tV)(e,t,n)})),ee.removeAdUnit=function(e){if((0,i.logInfo)("Invoking asc.removeAdUnit",arguments),!e)return void(ee.adUnits=[]);let t;t=(0,i.isArray)(e)?e:[e],t.forEach((e=>{for(let t=ee.adUnits.length-1;t>=0;t--)ee.adUnits[t].code===e&&ee.adUnits.splice(t,1)}))},ee.requestBids=function(){const e=(0,C.z3)("async",(function(){let{bidsBackHandler:e,timeout:t,adUnits:n,adUnitCodes:r,labels:o,auctionId:s,ttlBuffer:a,ortb2:d,metrics:l,defer:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w.j8(ie);const f=t||E.vc.getConfig("bidderTimeout");(0,i.logInfo)("Invoking asc.requestBids",arguments),r&&r.length?n=n.filter((e=>(0,c.q9)(r,e.code))):r=n&&n.map((e=>e.code));const g={global:(0,i.mergeDeep)({},E.vc.getAnyConfig("ortb2")||{},d||{}),bidder:Object.fromEntries(Object.entries(E.vc.getBidderConfig()).map((e=>{let[t,n]=e;return[t,n.ortb2]})).filter((e=>{let[t,n]=e;return null!=n})))};return(0,Y.S)(W.Z.resolve(g.global)).then((t=>(g.global=t,be({bidsBackHandler:e,timeout:f,adUnits:n,adUnitCodes:r,labels:o,auctionId:s,ttlBuffer:a,ortb2Fragments:g,metrics:l,defer:u}))))}),"requestBids");return(0,C.IF)(e,(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.adUnits||ee.adUnits;return t.adUnits=(0,i.isArray)(n)?n.slice():[n],t.metrics=(0,J.V6)(),t.metrics.checkpoint("requestBids"),t.defer=(0,W.P)({promiseFactory:e=>new Promise(e)}),e.call(this,t),t.defer.promise}))}();const be=(0,C.z3)("async",(function(){let{bidsBackHandler:e,timeout:t,adUnits:n,ttlBuffer:r,adUnitCodes:o,labels:a,auctionId:d,ortb2Fragments:l,metrics:u,defer:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const g=(0,H.uV)(E.vc.getConfig("s2sConfig")||[]);function p(t,n,r){if("function"==typeof e)try{e(t,n,r)}catch(e){(0,i.logError)("Error executing bidsBackHandler",null,e)}f.resolve({bids:t,timedOut:n,auctionId:r})}me(n),n=(0,J.Bf)(u).measureTime("requestBids.validate",(()=>pe(n)));const m={};if(n.forEach((e=>{const t=Object.keys(e.mediaTypes||{banner:"banner"}),n=e.bids.map((e=>e.bidder)),o=H.ZP.bidderRegistry,s=g?n.filter((e=>!ne.wrapper.disableClientSideAdapters||!(0,c.q9)(ne.wrapper.disableClientSideAdapters,e))):n;e.adUnitId=(0,i.generateUUID)();const a=e.ortb2Imp?.ext?.tid;a&&(m.hasOwnProperty(e.code)?(0,i.logWarn)(`Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '${e.code}'`):m[e.code]=a),null==r||e.hasOwnProperty("ttlBuffer")||(e.ttlBuffer=r),s.forEach((n=>{const r=o[n],s=r&&r.getSpec&&r.getSpec(),a=s&&s.supportedMediaTypes||["banner"];t.some((e=>(0,c.q9)(a,e)))||((0,i.logWarn)((0,i.unsupportedBidderMessage)(e,n)),e.bids=e.bids.filter((e=>e.bidder!==n)))}))})),n&&0!==n.length){n.forEach((e=>{const t=e.ortb2Imp?.ext?.tid||m[e.code]||(0,i.generateUUID)();m.hasOwnProperty(e.code)||(m[e.code]=t),e.transactionId=t,(0,s.N)(e,"ortb2Imp.ext.tid",t)}));const e=T.K.createAuction({adUnits:n,adUnitCodes:o,callback:p,cbTimeout:t,labels:a,auctionId:d,ortb2Fragments:l,metrics:u});let r=n.length;r>15&&(0,i.logInfo)(`Current auction ${e.getAuctionId()} contains ${r} adUnits.`,n),o.forEach((t=>$.setLatestAuctionForAdUnit(t,e.getAuctionId()))),e.callBids()}else(0,i.logMessage)("No adUnits configured. No bids requested."),p()}),"startAuction");ee.requestBids.before((function(e,t){function n(e){for(var t;t=e.shift();)t()}n(K.Ld),n(ye),e.call(this,t)}),49),ee.addAdUnits=function(e){(0,i.logInfo)("Invoking asc.addAdUnits",arguments),ee.adUnits.push.apply(ee.adUnits,(0,i.isArray)(e)?e:[e]),w.j8(re)},ee.onEvent=function(e,t,n){(0,i.logInfo)("Invoking asc.onEvent",arguments),(0,i.isFn)(t)?!n||se[e].call(null,n)?w.on(e,t,n):(0,i.logError)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,i.logError)('The event handler provided is not a function and was not set on event "'+e+'".')},ee.offEvent=function(e,t,n){(0,i.logInfo)("Invoking asc.offEvent",arguments),n&&!se[e].call(null,n)||w.S1(e,t,n)},ee.getEvents=function(){return(0,i.logInfo)("Invoking asc.getEvents"),w.vw()},ee.registerBidAdapter=function(e,t){(0,i.logInfo)("Invoking asc.registerBidAdapter",arguments);try{H.ZP.registerBidAdapter(e(),t)}catch(e){(0,i.logError)("Error registering bidder adapter : "+e.message)}},ee.registerAnalyticsAdapter=function(e){(0,i.logInfo)("Invoking asc.registerAnalyticsAdapter",arguments);try{H.ZP.registerAnalyticsAdapter(e)}catch(e){(0,i.logError)("Error registering analytics adapter : "+e.message)}},ee.createBid=function(e){return(0,i.logInfo)("Invoking asc.createBid",arguments),(0,F.m)(e)};const ye=[],ve=(0,C.z3)("async",(function(e){e&&!(0,i.isEmpty)(e)?((0,i.logInfo)("Invoking asc.enableAnalytics for: ",e),H.ZP.enableAnalytics(e)):(0,i.logError)("asc.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");ee.enableAnalytics=function(e){ye.push(ve.bind(this,e))},ee.aliasBidder=function(e,t,n){(0,i.logInfo)("Invoking asc.aliasBidder",arguments),e&&t?H.ZP.aliasBidAdapter(e,t,n):(0,i.logError)("bidderCode and alias must be passed as arguments","asc.aliasBidder")},ee.aliasRegistry=H.ZP.aliasRegistry,E.vc.getConfig("aliasRegistry",(e=>{"private"===e.aliasRegistry&&delete ee.aliasRegistry})),ee.getAllWinningBids=function(){return T.K.getAllWinningBids()},ee.getAllPrebidWinningBids=function(){return T.K.getBidsReceived().filter((e=>e.status===d.UE.BID_TARGETING_SET))},ee.getHighestCpmBids=function(e){return $.getWinningBids(e)},ee.clearAllAuctions=function(){T.K.clearAllAuctions()},ee.markWinningBidAsUsed=function(e){const t=Ee(e,"Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function.");t.length>0&&T.K.addWinningBid(t[0])};const Ee=(e,t)=>{let n=[];return e.adUnitCode&&e.adId?n=T.K.getBidsReceived().filter((t=>t.adId===e.adId&&t.adUnitCode===e.adUnitCode)):e.adUnitCode?n=$.getWinningBids(e.adUnitCode):e.adId?n=T.K.getBidsReceived().filter((t=>t.adId===e.adId)):(0,i.logWarn)(t),n};function Te(e){e.forEach((function(e){if(void 0===e&&((0,i.logError)("Error cmd is undefined :","prebid.js"),e=function(){(0,i.logMessage)("Empty function Placeholder","prebid.js")}),void 0===e.called)try{e.call(),e.called=!0}catch(e){(0,i.logError)("Error processing command :","prebid.js",e)}}))}ee.getConfig=E.vc.getAnyConfig,ee.readConfig=E.vc.readAnyConfig,ee.mergeConfig=E.vc.mergeConfig,ee.mergeBidderConfig=E.vc.mergeBidderConfig,ee.setConfig=E.vc.setConfig,ee.setBidderConfig=E.vc.setBidderConfig,ee.que.push((()=>b())),ee.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){(0,i.logError)("Error processing command :",e.message,e.stack)}else(0,i.logError)("Commands written into asc.cmd.push must be wrapped in a function")},ee.que.push=ee.cmd.push,ee.processQueue=function(){(0,l.nI)(),C.z3.ready(),Te(ee.que),Te(ee.cmd)},ee.triggerBilling=e=>{const t=Ee(e,"Improper use of triggerBilling. It requires a bid with at least an adUnitCode or an adId to function."),n=t.find((t=>t.requestId===e.requestId))||t[0];if(t.length>0&&n)try{H.ZP.callBidBillableBidder(n)}catch(e){(0,i.logError)("Error when triggering billing :",e)}else(0,i.logWarn)("The bid provided to triggerBilling did not match any bids received.")}},8640:(e,t,n)=>{n.d(t,{R:()=>o,z:()=>s});const r=window,i=r.asc=r.asc||{};function o(){return i}function s(e){i.installedModules.push(e)}i.cmd=i.cmd||[],i.que=i.que||[],r===window&&(r._pbjsGlobals=r._pbjsGlobals||[],r._pbjsGlobals.push("asc"))},5102:(e,t,n)=>{n.d(t,{hh:()=>s,nH:()=>d});var r=n(3193),i=n(7746);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!e)return e;if(/\w+:\/\//.exec(e))return e;let n=t.location.protocol;try{n=t.top.location.protocol}catch(e){}return/^\/\//.exec(e)?n+e:`${n}//${e}`}function s(e){let{noLeadingWww:t=!1,noPort:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{e=new URL(o(e))}catch(e){return}return e=n?e.hostname:e.host,t&&e.startsWith("www.")&&(e=e.substring(4)),e}function a(e){try{const t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}const d=function(e){let t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return i.top!==i?e:function(){const o=a(i.document),s=i.location.href;return t===o&&s===n||(t=o,n=s,r=e()),r}}((c=window,function(){const e=[],t=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(c),n=r.vc.getConfig("maxNestedIframes");let d,l,u,f,g=!1,p=0,m=!1,h=!1,b=!1;do{const n=d,r=h;let o,s=!1,f=null;h=!1,d=d?d.parent:c;try{o=d.location.href||null}catch(e){s=!0}if(s)if(r){const e=n.context;try{f=e.sourceUrl,l=f,b=!0,m=!0,d===c.top&&(g=!0),e.canonicalUrl&&(u=e.canonicalUrl)}catch(e){}}else{(0,i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{const e=n.document.referrer;e&&(f=e,d===c.top&&(g=!0))}catch(e){}!f&&t&&t[p-1]&&(f=t[p-1],d===c.top&&(b=!0)),f&&!m&&(l=f)}else{if(o&&(f=o,l=f,m=!1,d===c.top)){g=!0;const e=a(d.document);e&&(u=e)}d.context&&d.context.sourceUrl&&(h=!0)}e.push(f),p++}while(d!==c.top&&p<n);e.reverse();try{f=c.top.document.referrer}catch(e){}const y=g||b?l:null,v=r.vc.getConfig("pageUrl")||u||null;let E=r.vc.getConfig("pageUrl")||y||o(v,c);return y&&y.indexOf("?")>-1&&-1===E.indexOf("?")&&(E=`${E}${y.substring(y.indexOf("?"))}`),{reachedTop:g,isAmp:m,numIframes:p-1,stack:e,topmostLocation:l||null,location:y,canonicalUrl:v,page:E,domain:s(E)||null,ref:f||null,legacy:{reachedTop:g,isAmp:m,numIframes:p-1,stack:e,referer:l||null,canonicalUrl:v}}}));var c},5164:(e,t,n)=>{n.d(t,{Dp:()=>f,Ld:()=>p,c$:()=>g,df:()=>h,eA:()=>b});var r=n(7746),i=n(5975),o=n(9633),s=n(571),a=n(6310),d=n(4947),c=n(3193),l=n(3304),u=n(286);const f="html5",g="cookie";let p=[];function m(){let{moduleName:e,moduleType:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isAllowed:n=s.xD}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function i(r,i){let s=e;const f=c.vc.getCurrentBidder();f&&t===o.UL&&l.ZP.aliasRegistry[f]===e&&(s=f);return r({valid:n(d.S1,(0,u.T)(t,s,{[a.bL]:i}))})}function m(e,t,n){if(!n||"function"!=typeof n)return i(e,t);p.push((function(){let r=i(e,t);n(r)}))}const h=function(e,t,n,r,i,o){return m((function(o){if(o&&o.valid){const o=i&&""!==i?` ;domain=${encodeURIComponent(i)}`:"",s=n&&""!==n?` ;expires=${n}`:"",a=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie=`${e}=${encodeURIComponent(t)}${s}; path=/${o}${r?`; SameSite=${r}`:""}${a}`}}),g,o)},b=function(e,t){return m((function(t){if(t&&t.valid){let t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}),g,t)},y=function(e){return m((function(e){return!(!e||!e.valid)&&(0,r.checkCookieSupport)()}),g,e)};function v(e){const t=e.charAt(0).toUpperCase()+e.substring(1),n=()=>window[e],i=function(t){return m((function(t){if(t&&t.valid)try{return!!n()}catch(t){(0,r.logError)(`${e} api disabled`)}return!1}),f,t)};return{[`has${t}`]:i,[`${e}IsEnabled`]:e=>m((function(e){if(e&&e.valid)try{return n().setItem("prebid.cookieTest","1"),"1"===n().getItem("prebid.cookieTest")}catch(e){}finally{try{n().removeItem("prebid.cookieTest")}catch(e){}}return!1}),f,e),[`setDataIn${t}`]:(e,t,r)=>m((function(r){r&&r.valid&&i()&&n().setItem(e,t)}),f,r),[`getDataFrom${t}`]:(e,t)=>m((function(t){return t&&t.valid&&i()?n().getItem(e):null}),f,t),[`removeDataFrom${t}`]:(e,t)=>m((function(t){t&&t.valid&&i()&&n().removeItem(e)}),f,t)}}const E=function(e,t){return m((function(t){if(t&&t.valid){const t=[];if((0,r.hasDeviceAccess)()){const n=document.cookie.split(";");for(;n.length;){const r=n.pop();let i=r.indexOf("=");i=i<0?r.length:i;decodeURIComponent(r.slice(0,i).replace(/^\s+/,"")).indexOf(e)>=0&&t.push(decodeURIComponent(r.slice(i+1)))}}return t}}),g,t)};return{setCookie:h,getCookie:b,cookiesAreEnabled:y,...v("localStorage"),...v("sessionStorage"),findSimilarCookies:E}}function h(){let{moduleType:e,moduleName:t,bidderCode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function r(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return n?((e&&e!==o.UL||t)&&r(),e=o.UL,t=n):t&&e||r(),m({moduleType:e,moduleName:t})}function b(e){return m({moduleName:e,moduleType:o.wu})}(0,s.oB)(d.S1,"deviceAccess config",(function(){if(!(0,r.hasDeviceAccess)())return{allow:!1}})),(0,s.oB)(d.S1,"bidderSettings.*.storageAllowed",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.S;if(e[a.$k]!==o.UL)return;let n=t.get(e[a.Ki],"storageAllowed");if(n&&!0!==n){const t=e[a.bL];n=Array.isArray(n)?n.some((e=>e===t)):n===t}else n=!!n;return n?void 0:{allow:n}}))},1974:(e,t,n)=>{n.d(t,{k_:()=>p,oS:()=>f});var r=n(7746),i=n(3193),o=n(4614),s=n(5164),a=n(571),d=n(4947),c=n(6310),l=n(9633),u=n(286);const f={syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:500};i.vc.setDefaults({userSync:(0,r.deepClone)(f)});const g=(0,s.eA)("usersync");const p=function(e){let t={},n={image:[],iframe:[]},s=new Set,a={},f={image:!0,iframe:!1},g=e.config;function p(){if(g.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!f.iframe)return;m(n.iframe,(e=>{let[t,i]=e;(0,r.logMessage)(`Invoking iframe user sync for bidder: ${t}`),(0,r.insertUserSyncIframe)(i),function(e,t){e.image=e.image.filter((e=>e[0]!==t))}(n,t)}))}(),function(){if(!f.image)return;m(n.image,(e=>{let[t,n]=e;(0,r.logMessage)(`Invoking image pixel user sync for bidder: ${t}`),(0,r.triggerPixel)(n)}))}()}catch(e){return(0,r.logError)("Error firing user syncs",e)}n={image:[],iframe:[]}}}function m(e,t){(0,r.shuffle)(e).forEach(t)}function h(e,t){let n=g.filterSettings;if(function(e,t){if(e.all&&e[t])return(0,r.logWarn)(`Detected presence of the "filterSettings.all" and "filterSettings.${t}" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.`),!1;let n=e.all?e.all:e[t],i=e.all?"all":t;if(!n)return!1;let o=n.filter,s=n.bidders;if(o&&"include"!==o&&"exclude"!==o)return(0,r.logWarn)(`UserSync "filterSettings.${i}.filter" setting '${o}' is not a valid option; use either 'include' or 'exclude'.`),!1;if("*"!==s&&!(Array.isArray(s)&&s.length>0&&s.every((e=>(0,r.isStr)(e)&&"*"!==e))))return(0,r.logWarn)(`Detected an invalid setup in userSync "filterSettings.${i}.bidders"; use either '*' (to represent all bidders) or an array of bidders.`),!1;return!0}(n,e)){f[e]=!0;let r=n.all?n.all:n[e],i="*"===r.bidders?[t]:r.bidders;const s={include:(e,t)=>!(0,o.q9)(e,t),exclude:(e,t)=>(0,o.q9)(e,t)};return s[r.filter||"include"](i,t)}return!f[e]}return i.vc.getConfig("userSync",(e=>{if(e.userSync){let t=e.userSync.filterSettings;(0,r.isPlainObject)(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}g=Object.assign(g,e.userSync)})),e.regRule(d.K$,"userSync config",(e=>{if(!g.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(e[c.$k]===l.UL){const n=e[c.cx],r=e[c.bp];if(!t.canBidderRegisterSync(n,r))return{allow:!1,reason:`${n} syncs are not enabled for ${r}`}}})),t.registerSync=(t,i,o)=>{if(s.has(i),!g.syncEnabled||!(0,r.isArray)(n[t]))return(0,r.logWarn)(`User sync type "${t}" not supported`);if(!i)return(0,r.logWarn)("Bidder is required for registering sync");if(0!==g.syncsPerBidder&&Number(a[i])>=g.syncsPerBidder)return(0,r.logWarn)(`Number of user syncs exceeded for "${i}"`);if(e.isAllowed(d.K$,(0,u.T)(l.UL,i,{[c.cx]:t,[c.IV]:o}))){let e=!0;if(n[t].forEach((t=>{t[1].toLowerCase()==o.toLowerCase()&&((0,r.logWarn)(`Bidder "${i}" is already added to userSync skipping. URL: ${o}`),e=!1)})),!e)return;(0,r.logMessage)(`Bidder "${i}" queue user sync with URL: ${o}`),n[t].push([i,o]),a=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(a,i)}},t.bidderDone=s.add.bind(s),t.syncUsers=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(p,Number(e));p()},t.triggerUserSyncs=()=>{g.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=(e,t)=>!g.filterSettings||!h(e,t),t}(Object.defineProperties({config:i.vc.getConfig("userSync"),isAllowed:a.xD,regRule:a.oB},{browserSupportsCookies:{get:function(){return!(0,r.isSafariBrowser)()&&g.cookiesAreEnabled()}}}))},7746:(e,t,n)=>{n.r(t),n.d(t,{_each:()=>de,_map:()=>le,_setEventEmitter:()=>v,binarySearch:()=>gt,buildUrl:()=>rt,callBurl:()=>pe,canAccessWindowTop:()=>M,checkCookieSupport:()=>Fe,cleanObj:()=>Ye,compareCodeAndSlot:()=>Ve,contains:()=>ce,convertObjectToArray:()=>ut,createIframe:()=>J,createInvisibleIframe:()=>Y,createTrackPixelHtml:()=>be,createTrackPixelIframeHtml:()=>ve,cyrb53Hash:()=>st,debugTurnedOn:()=>H,deepAccess:()=>c.Z,deepClone:()=>Be,deepEqual:()=>it,deepSetValue:()=>l.N,delayExecution:()=>Me,encodeMacroURI:()=>ye,flatten:()=>Te,formatQS:()=>tt,generateUUID:()=>O,getBidIdParameter:()=>B,getBidRequest:()=>Ie,getBidderCodes:()=>we,getDNT:()=>Ze,getDefinedParams:()=>Le,getDomLoadingDuration:()=>qe,getParameterByName:()=>Q,getPerformanceNow:()=>Ne,getPrebidInternal:()=>A,getSafeframeGeometry:()=>De,getUniqueIdentifierStr:()=>S,getUnixTimestampFromNow:()=>lt,getUserConfiguredParams:()=>Ge,getValue:()=>Ae,getWindowLocation:()=>F,getWindowSelf:()=>$,getWindowTop:()=>q,groupBy:()=>We,hasConsoleLogger:()=>K,hasDeviceAccess:()=>$e,hasNonSerializableProperty:()=>pt,inIframe:()=>ke,insertElement:()=>ue,insertHtmlIntoIframe:()=>me,insertUserSyncIframe:()=>he,internal:()=>T,isA:()=>X,isAdUnitCodeMatchingSlot:()=>Ke,isApnGetTagDefined:()=>Se,isArray:()=>ne,isArrayOfNums:()=>Xe,isBoolean:()=>oe,isEmpty:()=>se,isEmptyStr:()=>ae,isFn:()=>ee,isGptPubadsDefined:()=>Ce,isInteger:()=>Je,isNumber:()=>re,isPlainObject:()=>ie,isSafariBrowser:()=>Ue,isSafeFrameWindow:()=>Re,isStr:()=>te,isValidMediaTypes:()=>ze,logError:()=>G,logInfo:()=>L,logMessage:()=>W,logWarn:()=>z,memoize:()=>ct,mergeDeep:()=>ot,parseGPTSingleSizeArray:()=>j,parseGPTSingleSizeArrayToRtbSize:()=>x,parseQS:()=>et,parseQueryStringParameters:()=>k,parseSizesInput:()=>U,parseUrl:()=>nt,pick:()=>Qe,prefixLog:()=>Z,replaceAuctionPrice:()=>je,replaceClickThrough:()=>Pe,replaceMacros:()=>_e,safeJSONEncode:()=>dt,safeJSONParse:()=>at,setOnAny:()=>mt,setScriptAttributes:()=>ft,shuffle:()=>Oe,sizeTupleToRtbSize:()=>P,sizeTupleToSizeString:()=>_,sizesToSizeTuples:()=>D,timestamp:()=>xe,transformAdServerTargetingObj:()=>R,triggerPixel:()=>ge,uniques:()=>Ee,unsupportedBidderMessage:()=>He,waitForElementToLoad:()=>fe});var r=n(3193);function i(e){var t,n,r;if(Array.isArray(e)){for(n=Array(t=e.length);t--;)n[t]=(r=e[t])&&"object"==typeof r?i(r):r;return n}if("[object Object]"===Object.prototype.toString.call(e)){for(t in n={},e)"__proto__"===t?Object.defineProperty(n,t,{value:i(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&"object"==typeof r?i(r):r;return n}return e}var o=n(4614),s=n(2200),a=n(8792),d=n(8640),c=n(265),l=n(6475),u=Object.prototype.toString;let f,g=Boolean(window.console),p=Boolean(g&&window.console.log),m=Boolean(g&&window.console.info),h=Boolean(g&&window.console.warn),b=Boolean(g&&window.console.error);const y=(0,d.R)();function v(e){f=e}function E(){null!=f&&f(...arguments)}const T={checkCookieSupport:Fe,createTrackPixelIframeHtml:ve,getWindowSelf:$,getWindowTop:q,canAccessWindowTop:M,getWindowLocation:F,insertUserSyncIframe:he,insertElement:ue,isFn:ee,triggerPixel:ge,logError:G,logWarn:z,logMessage:W,logInfo:L,parseQS:et,formatQS:tt,deepEqual:it};let I={};function A(){return I}var w,C=(w=0,function(){return++w});function S(){return C()+Math.random().toString(16).substr(2)}function O(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,O)}function B(e,t){return t?.[e]||""}function k(e){let t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t=t.replace(/&$/,""),t}function R(e){return e&&Object.getOwnPropertyNames(e).length>0?Object.keys(e).map((t=>`${t}=${encodeURIComponent(e[t])}`)).join("&"):""}function D(e){return"string"==typeof e?e.split(/\s*,\s*/).map((e=>e.match(/^(\d+)x(\d+)$/i))).filter((e=>e)).map((e=>{let[t,n,r]=e;return[parseInt(n,10),parseInt(r,10)]})):Array.isArray(e)?N(e)?[e]:e.filter(N):[]}function U(e){return D(e).map(_)}function _(e){return e[0]+"x"+e[1]}function j(e){if(N(e))return _(e)}function P(e){return{w:e[0],h:e[1]}}function x(e){if(N(e))return P(e)}function N(e){return ne(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function q(){return window.top}function $(){return window.self}function F(){return window.location}function M(){try{if(T.getWindowTop().location.href)return!0}catch(e){return!1}}function W(){if(H()&&p){let e=0;performance&&performance.timing&&performance.timing.navigationStart&&(e=Date.now()-performance.timing.navigationStart),console.log.apply(console,V(arguments,"["+e+" ms] MESSAGE:"))}}function L(){if(H()&&m){let e=0;performance&&performance.timing&&performance.timing.navigationStart&&(e=Date.now()-performance.timing.navigationStart),console.info.apply(console,V(arguments,"["+e+" ms] INFO:"))}}function z(){if(H()&&h){let e=0;performance&&performance.timing&&performance.timing.navigationStart&&(e=Date.now()-performance.timing.navigationStart),console.warn.apply(console,V(arguments,"["+e+" ms] WARNING:"))}}function G(){if(H()&&b){let e=0;performance&&performance.timing&&performance.timing.navigationStart&&(e=Date.now()-performance.timing.navigationStart),console.error.apply(console,V(arguments,"["+e+" ms] ERROR:"))}E(s.FP.AUCTION_DEBUG,{type:"ERROR",arguments})}function Z(e){function t(t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t(e,...r)}}return{logError:t(G),logWarn:t(z),logMessage:t(W),logInfo:t(L)}}function V(e,t){e=[].slice.call(e);let n=r.vc.getCurrentBidder();return t&&e.unshift(t),n&&e.unshift(i("#aaa")),e.unshift(i("#3b88c3")),e.unshift("%casc"+(n?`%c${n}`:"")),e;function i(e){return`display: inline-block; color: #fff; background: ${e}; padding: 1px 4px; border-radius: 3px;`}}function K(){return p}function H(){return!!r.vc.getConfig("debug")}const J=(()=>{const e={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"};return function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t.createElement("iframe");return Object.assign(i,Object.assign({},e,n)),Object.assign(i.style,r),i}})();function Y(){return J(document,{id:S(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function Q(e){return et(F().search)[e]||""}function X(e,t){return u.call(e)==="[object "+t+"]"}function ee(e){return X(e,"Function")}function te(e){return X(e,"String")}const ne=Array.isArray.bind(Array);function re(e){return X(e,"Number")}function ie(e){return X(e,"Object")}function oe(e){return X(e,"Boolean")}function se(e){return!e||(ne(e)||te(e)?!(e.length>0):Object.keys(e).length<=0)}function ae(e){return te(e)&&(!e||0===e.length)}function de(e,t){if(ee(e?.forEach))return e.forEach(t,this);Object.entries(e||{}).forEach((e=>{let[n,r]=e;return t.call(this,r,n)}))}function ce(e,t){return ee(e?.includes)&&e.includes(t)}function le(e,t){return ee(e?.map)?e.map(t):Object.entries(e||{}).map((n=>{let[r,i]=n;return t(i,r,e)}))}function ue(e,t,n,r){let i;t=t||document,i=n?t.getElementsByTagName(n):t.getElementsByTagName("head");try{if(i=i.length?i:t.getElementsByTagName("body"),i.length){i=i[0];let t=r?null:i.firstChild;return i.insertBefore(e,t)}}catch(e){}}function fe(e,t){let n=null;return new a.Z((r=>{const i=function(){e.removeEventListener("load",i),e.removeEventListener("error",i),null!=n&&window.clearTimeout(n),r()};e.addEventListener("load",i),e.addEventListener("error",i),null!=t&&(n=window.setTimeout(i,t))}))}function ge(e,t,n){const r=new Image;t&&T.isFn(t)&&fe(r,n).then(t),r.src=e}function pe(e){let{source:t,burl:n}=e;t===s.os.SRC&&n&&T.triggerPixel(n)}function me(e){if(!e)return;const t=Y();var n;T.insertElement(t,document,"body"),(n=t.contentWindow.document).open(),n.write(e),n.close()}function he(e,t,n){let r=T.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=r;let o=i.firstChild;t&&T.isFn(t)&&fe(o,n).then(t),T.insertElement(o,document,"html",!0)}function be(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURI;if(!e)return"";let n=t(e),r='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return r+='<img src="'+n+'"></div>',r}function ye(e){return Array.from(e.matchAll(/\$({[^}]+})/g)).map((e=>e[1])).reduce(((e,t)=>e.replace("$"+encodeURIComponent(t),"$"+t)),encodeURI(e))}function ve(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(t&&(e=encodeURI(e)),n&&(n=`sandbox="${n}"`),`<iframe ${n} id="${S()}"\n frameborder="0"\n allowtransparency="true"\n marginheight="0" marginwidth="0"\n width="0" hspace="0" vspace="0" height="0"\n style="height:0px;width:0px;display:none;"\n scrolling="no"\n src="${e}">\n </iframe>`):""}function Ee(e,t,n){return n.indexOf(e)===t}function Te(e,t){return e.concat(t)}function Ie(e,t){if(e)return t.flatMap((e=>e.bids)).find((t=>["bidId","adId","bid_id"].some((n=>t[n]===e))))}function Ae(e,t){return e[t]}function we(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.adUnits;return e.map((e=>e.bids.map((e=>e.bidder)).reduce(Te,[]))).reduce(Te,[]).filter((e=>void 0!==e)).filter(Ee)}function Ce(){if(window.googletag&&ee(window.googletag.pubads)&&ee(window.googletag.pubads().getSlots))return!0}function Se(){if(window.apntag&&ee(window.apntag.getTag))return!0}function Oe(e){let t=e.length;for(;t>0;){let n=Math.floor(Math.random()*t);t--;let r=e[t];e[t]=e[n],e[n]=r}return e}function Be(e){return i(e)||{}}function ke(){try{return T.getWindowSelf()!==T.getWindowTop()}catch(e){return!0}}function Re(){if(!ke())return!1;const e=T.getWindowSelf();return!(!e.$sf||!e.$sf.ext)}function De(){try{const e=$();return"function"==typeof e.$sf.ext.geom?e.$sf.ext.geom():void 0}catch(e){return void G("Error getting SafeFrame geometry",e)}}function Ue(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function _e(e,t){if(e)return Object.entries(t).reduce(((e,t)=>{let[n,r]=t;return e.replace(new RegExp("\\$\\{"+n+"\\}","g"),r||"")}),e)}function je(e,t){return _e(e,{AUCTION_PRICE:t})}function Pe(e,t){if(e&&t&&"string"==typeof t)return e.replace(/\${CLICKTHROUGH}/g,t)}function xe(){return(new Date).getTime()}function Ne(){return window.performance&&window.performance.now&&window.performance.now()||0}function qe(e){let t=-1;const n=(e=e||$()).performance;if(e.performance?.timing&&e.performance.timing.navigationStart>0){const e=n.timing.domLoading-n.timing.navigationStart;e>0&&(t=e)}return t}function $e(){return!1!==r.vc.getConfig("deviceAccess")}function Fe(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function Me(e,t){if(t<1)throw new Error(`numRequiredCalls must be a positive number. Got ${t}`);let n=0;return function(){n++,n===t&&e.apply(this,arguments)}}function We(e,t){return e.reduce((function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e}),{})}function Le(e,t){return t.filter((t=>e[t])).reduce(((t,n)=>Object.assign(t,{[n]:e[n]})),{})}function ze(e){const t=["banner","native","video"],n=["instream","outstream","adpod"];return!!Object.keys(e).every((e=>(0,o.q9)(t,e)))&&(!e.video||!e.video.context||(0,o.q9)(n,e.video.context))}function Ge(e,t,n){return e.filter((e=>e.code===t)).flatMap((e=>e.bids)).filter((e=>e.bidder===n)).map((e=>e.params||{}))}function Ze(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}const Ve=(e,t)=>e.getAdUnitPath()===t||e.getSlotElementId()===t;function Ke(e){return t=>Ve(e,t)}function He(e,t){const n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return`\n ${e.code} is a ${n} ad unit\n containing bidders that don't support ${n}: ${t}.\n This bidder won't fetch demand.\n `}const Je=Number.isInteger.bind(Number);function Ye(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t,n]=e;return void 0!==n})))}function Qe(e,t){return"object"!=typeof e?{}:t.reduce(((n,r,i)=>{if("function"==typeof r)return n;let o=r,s=r.match(/^(.+?)\sas\s(.+?)$/i);s&&(r=s[1],o=s[2]);let a=e[r];return"function"==typeof t[i+1]&&(a=t[i+1](a,n)),void 0!==a&&(n[o]=a),n}),{})}function Xe(e,t){return ne(e)&&(!t||e.length===t)&&e.every((e=>Je(e)))}function et(e){return e?e.replace(/^\?/,"").split("&").reduce(((e,t)=>{let[n,r]=t.split("=");return/\[\]$/.test(n)?(n=n.replace("[]",""),e[n]=e[n]||[],e[n].push(r)):e[n]=r||"",e}),{}):{}}function tt(e){return Object.keys(e).map((t=>Array.isArray(e[t])?e[t].map((e=>`${t}[]=${e}`)).join("&"):`${t}=${e[t]}`)).join("&")}function nt(e,t){let n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);let r=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:r?n.search:T.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}}function rt(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?`:${e.port}`:""))+(e.pathname||"")+(e.search?`?${T.formatQS(e.search||"")}`:"")+(e.hash?`#${e.hash}`:"")}function it(e,t){let{checkTypes:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||n&&e.constructor!==t.constructor)return!1;{const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let i of r){if(!t.hasOwnProperty(i))return!1;if(!it(e[i],t[i],{checkTypes:n}))return!1}return!0}}function ot(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;const i=n.shift();if(ie(e)&&ie(i))for(const t in i)ie(i[t])?(e[t]||Object.assign(e,{[t]:{}}),ot(e[t],i[t])):ne(i[t])?e[t]?ne(e[t])&&i[t].forEach((n=>{let r=1;for(let i=0;i<e[t].length;i++)if(it(e[t][i],n)){r=0;break}r&&e[t].push(n)})):Object.assign(e,{[t]:[...i[t]]}):Object.assign(e,{[t]:i[t]});return ot(e,...n)}function st(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e,t){if(ee(Math.imul))return Math.imul(e,t);var n=(4194303&e)*(t|=0);return 4290772992&e&&(n+=(4290772992&e)*t|0),0|n},r=3735928559^t,i=1103547991^t;for(let t,o=0;o<e.length;o++)t=e.charCodeAt(o),r=n(r^t,2654435761),i=n(i^t,1597334677);return r=n(r^r>>>16,2246822507)^n(i^i>>>13,3266489909),i=n(i^i>>>16,2246822507)^n(r^r>>>13,3266489909),(4294967296*(2097151&i)+(r>>>0)).toString()}function at(e){try{return JSON.parse(e)}catch(e){}}function dt(e){try{return JSON.stringify(e)}catch(e){return""}}function ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};const n=new Map,r=function(){const r=t.apply(this,arguments);return n.has(r)||n.set(r,e.apply(this,arguments)),n.get(r)};return r.clear=n.clear.bind(n),r}function lt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";const n=["m","d"];if(n.indexOf(t)<0)return Date.now();const r=e/("m"===t?1440:1);return Date.now()+(e&&e>0?864e5*r:0)}function ut(e){return Object.keys(e).map((t=>({[t]:e[t]})))}function ft(e,t){Object.entries(t).forEach((t=>{let[n,r]=t;return e.setAttribute(n,r)}))}function gt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=0,i=e.length&&e.length-1;const o=n(t);for(;i-r>1;){const t=r+Math.round((i-r)/2);o>n(e[t])?r=t:i=t}for(;e.length>r&&o>n(e[r]);)r++;return r}function pt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n in e){const r=e[n],i=typeof r;if(void 0===r||"function"===i||"symbol"===i||r instanceof RegExp||r instanceof Map||r instanceof Set||r instanceof Date||null!==r&&"object"===i&&r.hasOwnProperty("toJSON"))return!0;if(null!==r&&"object"===i&&r.constructor===Object){if(t.has(r))return!0;if(t.add(r),pt(r,t))return!0}}return!1}function mt(e,t){for(let n,r=0;r<e.length;r++)if(n=(0,c.Z)(e[r],t),n)return n}},6066:(e,t,n)=>{n.d(t,{O:()=>s});var r=n(5383),i=n(5975),o=n(7746);function s(e,t,n){let{index:s=r.K.index,bs:a=i.S}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=n||s.getBidRequest(t);const d=t?.adapterCode,c=t?.bidderCode||n?.bidder,l=a.get(t?.adapterCode,"adjustAlternateBids"),u=a.getOwn(c,"bidCpmAdjustment")||a.get(l?d:c,"bidCpmAdjustment");if(u&&"function"==typeof u)try{return u(e,Object.assign({},t),n)}catch(e){(0,o.logError)("Error during bid adjustment",e)}return e}},9128:(e,t,n)=>{n.d(t,{A:()=>b,Bf:()=>g,V6:()=>p,g3:()=>h});var r=n(3193);const i="performanceMetrics",o=window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now(),s=new WeakMap;function a(){let{now:e=o,mkNode:t=l,mkTimer:n=c,mkRenamer:r=(e=>e),nodes:i=s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return function o(s){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>({forEach(t){t(e)}});function d(e){return function(t){return s.dfWalk({visit(n,r){const i=r[e];if(i.hasOwnProperty(t))return i[t]}})}}a=r(a);const c=d("timestamps");function l(e,t){const n=a(e);s.dfWalk({follow:(e,t)=>t.propagate&&(!e||!e.stopPropagation),visit(e,r){n.forEach((n=>{null==e?r.metrics[n]=t:(r.groups.hasOwnProperty(n)||(r.groups[n]=[]),r.groups[n].push(t))}))}})}function u(t){s.timestamps[t]=e()}function f(t,n){const r=c(t),i=null!=r?e()-r:null;return null!=n&&l(n,i),i}function g(e,t,n){const r=c(e),i=c(t),o=null!=r&&null!=i?i-r:null;return null!=n&&l(n,o),o}function p(t){return n(e,(e=>l(t,e)))}function m(e,t){return p(e).stopAfter(t)()}function h(e,t,n){const r=p(e);return n(function(e){const t=r.stopBefore(e);return t.bail=e.bail&&r.stopBefore(e.bail),t.stopTiming=r,t.untimed=e,t}(t))}function b(){let e={};return s.dfWalk({visit(t,n){e=Object.assign({},!t||t.includeGroups?n.groups:null,n.metrics,e)}}),e}function y(){let{propagate:e=!0,stopPropagation:n=!1,includeGroups:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(t([[s,{propagate:e,stopPropagation:n,includeGroups:r}]]),a)}function v(e){let{propagate:t=!0,stopPropagation:n=!1,includeGroups:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=i.get(e);null!=o&&o.addParent(s,{propagate:t,stopPropagation:n,includeGroups:r})}function E(e){return o(s,e)}function T(){return o(s.newSibling(),a)}const I={startTiming:p,measureTime:m,measureHookTime:h,checkpoint:u,timeSince:f,timeBetween:g,setMetric:l,getMetrics:b,fork:y,join:v,newMetrics:T,renameWith:E,toJSON:()=>b()};return i.set(I,s),I}(t([]))}}function d(e,t,n){return function(){t&&t();try{return e.apply(this,arguments)}finally{n&&n()}}}function c(e,t){const n=e();let r=!1;function i(){r||(t(e()-n),r=!0)}return i.stopBefore=e=>d(e,i),i.stopAfter=e=>d(e,null,i),i}function l(e){return{metrics:{},timestamps:{},groups:{},addParent(t,n){e.push([t,n])},newSibling:()=>l(e.slice()),dfWalk(){let t,{visit:n,follow:r=(()=>!0),visited:i=new Set,inEdge:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i.has(this)){if(i.add(this),t=n(o,this),null!=t)return t;for(const[s,a]of e)if(r(o,a)&&(t=s.dfWalk({visit:n,follow:r,visited:i,inEdge:a}),null!=t))return t}}}}const u=(()=>{const e=function(){},t=()=>({}),n={forEach:e},r=()=>null;r.stopBefore=e=>e,r.stopAfter=e=>e;const i=Object.defineProperties({dfWalk:e,newSibling:()=>i,addParent:e},Object.fromEntries(["metrics","timestamps","groups"].map((e=>[e,{get:t}]))));return a({now:()=>0,mkNode:()=>i,mkRenamer:()=>()=>n,mkTimer:()=>r,nodes:{get:e,set:e}})()})();let f=!0;function g(e){return f&&e||u}r.vc.getConfig(i,(e=>{f=!!e[i]}));const p=(()=>{const e=a();return function(){return f?e():u}})();function m(e,t){return function(n,r){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];const d=this;return g(t.apply(d,s)).measureHookTime(e+n,i,(function(e){return r.call(d,e,...s)}))}}}const h=m("requestBids.",(e=>e.metrics)),b=m("addBidResponse.",((e,t)=>t.metrics))},8792:(e,t,n)=>{n.d(t,{P:()=>s,Z:()=>o});const r=0,i=1;class o{#d;#c;static timeout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new o((t=>{0===e?t():setTimeout(t,e)}))}constructor(e){if("function"!=typeof e)throw new Error("resolver not a function");const t=[],n=[];let[o,s]=[r,i].map((e=>function(i){if(e===r&&"function"==typeof i?.then)i.then(o,s);else if(!t.length)for(t.push(e,i);n.length;)n.shift()()}));try{e(o,s)}catch(e){s(e)}this.#d=t,this.#c=n}then(e,t){const n=this.#d;return new this.constructor(((i,o)=>{const s=()=>{let s=n[1],[a,d]=n[0]===r?[e,i]:[t,o];if("function"==typeof a){try{s=a(s)}catch(e){return void o(e)}d=i}d(s)};n.length?s():this.#c.push(s)}))}catch(e){return this.then(null,e)}finally(e){let t;return this.then((n=>(t=n,e())),(n=>(t=this.constructor.reject(n),e()))).then((()=>t))}static#l(e,t,n){let r=e.length;function i(){t.apply(this,arguments),--r<=0&&n&&n()}0===e.length&&n?n():e.forEach(((e,t)=>this.resolve(e).then((e=>i(!0,e,t)),(e=>i(!1,e,t)))))}static race(e){return new this(((t,n)=>{this.#l(e,((e,r)=>e?t(r):n(r)))}))}static all(e){return new this(((t,n)=>{let r=[];this.#l(e,((e,t,i)=>e?r[i]=t:n(t)),(()=>t(r)))}))}static allSettled(e){return new this((t=>{let n=[];this.#l(e,((e,t,r)=>n[r]=e?{status:"fulfilled",value:t}:{status:"rejected",reason:t}),(()=>t(n)))}))}static resolve(e){return new this((t=>t(e)))}static reject(e){return new this(((t,n)=>n(e)))}}function s(){let e,t,{promiseFactory:n=(e=>new o(e))}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function r(e){return t=>e(t)}return{promise:n(((n,r)=>{e=n,t=r})),resolve:r(e),reject:r(t)}}},1136:(e,t,n)=>{function r(e,t){return e===t?0:e<t?-1:1}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e;return(t,n)=>r(e(t),e(n))}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return(t,n)=>-e(t,n)||0}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){for(const r of t){const t=r(e,n);if(0!==t)return t}return 0}}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return(t,n)=>e(n,t)<0?n:t}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return a(o(e))}n.d(t,{K$:()=>f,LT:()=>a,ZH:()=>u,xI:()=>i});const c=i((e=>e.cpm)),l=i((e=>e.responseTimestamp)),u=d(s(c,o(i((e=>e.timeToRespond))))),f=d(s(c,o(l)));d(s(c,l))},1841:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(8792),i=n(7746);let o,s=0,a=[];function d(e,t){const n=s;let r=setTimeout((()=>{s===n&&null==o?e():null!=o?a.push({callback:e,startTime:n,setTimerId(e){r=e}}):r=d(e,s-n)()}),t);return()=>r}function c(){let{startTime:e=i.timestamp,ttl:t=(()=>null),monotonic:n=!1,slack:o=5e3}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=new Map,a=[],c=[],l=n?e=>c.push(e):e=>c.splice((0,i.binarySearch)(c,e,(e=>e.expiry)),0,e);let u,f;function g(){if(f&&clearTimeout(f),c.length>0){const e=(0,i.timestamp)();u=Math.max(e,c[0].expiry+o),f=d((()=>{const e=(0,i.timestamp)();let t=0;for(const n of c){if(n.expiry>e)break;a.forEach((e=>{try{e(n.item)}catch(e){(0,i.logError)(e)}})),s.delete(n.item),t++}c.splice(0,t),f=null,g()}),u-e)}else f=null}function p(n){const i={},s=m;let a;const[d,c]=Object.entries({start:e,delta:t}).map((e=>{let t,[d,c]=e;return function(){const e=t={};r.Z.resolve(c(n)).then((n=>{e===t&&(i[d]=n,s===m&&null!=i.start&&null!=i.delta&&(a=i.start+i.delta,l(p),(null==f||u>a+o)&&g()))}))}})),p={item:n,refresh:c,get expiry(){return a}};return d(),c(),p}let m={};return{[Symbol.iterator]:()=>s.keys(),add(e){!s.has(e)&&s.set(e,p(e))},clear(){c.length=0,g(),s.clear(),m={}},toArray:()=>Array.from(s.keys()),refresh(){c.length=0,g();for(const e of s.values())e.refresh()},onExpiry:e=>(a.push(e),()=>{const t=a.indexOf(e);t>=0&&a.splice(t,1)})}}document.addEventListener("visibilitychange",(()=>{document.hidden?o=Date.now():(s+=Date.now()-o,a.forEach((e=>{let{callback:t,startTime:n,setTimerId:r}=e;return r(d(t,s-n)())})),o=null)}))},154:(e,t,n)=>{n.d(t,{Dn:()=>u,LD:()=>c,cx:()=>l,gZ:()=>d});var r=n(265),i=n(7746),o=n(3193),s=n(2797),a=n(5383);const d="outstream",c="instream";function l(e){const t=e?.mediaTypes?.video;null!=t&&null==t.plcmt&&(t.context===d||[2,3,4].includes(t.placement)?t.plcmt=4:t.context!==d&&[2,6].includes(t.playbackmethod)&&(t.plcmt=2))}function u(e){let{index:t=a.K.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,r.Z)(t.getMediaTypes(e),"video"),i=n&&(0,r.Z)(n,"context"),o=n&&(0,r.Z)(n,"useCacheKey"),s=t.getAdUnit(e);return f(e,s,n,i,o)}const f=(0,s.z3)("sync",(function(e,t,n,r,s){return n&&(s||r!==d)?o.vc.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)('\n This bid contains only vastXml and will not work when a prebid cache url is not specified.\n Try enabling prebid cache with asc.setConfig({ cache: {url: "..."} });\n '),!1):!(r===d&&!s)||!!(e.renderer||t&&t.renderer||n.renderer)}),"checkVideoBidSetup")},265:(e,t,n)=>{function r(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}n.d(t,{Z:()=>r})},1432:e=>{a.SYNC=1,a.ASYNC=2,a.QUEUE=4;var t="fun-hooks";var n=Object.freeze({useProxy:!0,ready:0}),r=new WeakMap,i="2,1,0"===[1].reduce((function(e,t,n){return[e,t,n]}),2).toString()?Array.prototype.reduce:function(e,t){var n,r=Object(this),i=r.length>>>0,o=0;if(t)n=t;else{for(;o<i&&!(o in r);)o++;n=r[o++]}for(;o<i;)o in r&&(n=e(n,r[o],o,r)),o++;return n};function o(e,t){return Array.prototype.slice.call(e,t)}var s=Object.assign||function(e){return i.call(o(arguments,1),(function(e,t){return t&&Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),e)};function a(e){var d,c={},l=[];function u(e,t){return"function"==typeof e?m.call(null,"sync",e,t):"string"==typeof e&&"function"==typeof t?m.apply(null,arguments):"object"==typeof e?f.apply(null,arguments):void 0}function f(e,t,n){var r=!0;void 0===t&&(t=Object.getOwnPropertyNames(e),r=!1);var i={},o=["constructor"];do{(t=t.filter((function(t){return!("function"!=typeof e[t]||-1!==o.indexOf(t)||t.match(/^_/))}))).forEach((function(t){var r=t.split(":"),o=r[0],s=r[1]||"sync";if(!i[o]){var a=e[o];i[o]=e[o]=m(s,a,n?[n,o]:void 0)}})),e=Object.getPrototypeOf(e)}while(r&&e);return i}function g(e){var n=Array.isArray(e)?e:e.split(".");return i.call(n,(function(r,i,o){var s=r[i],a=!1;return s||(o===n.length-1?(d||l.push((function(){a||console.warn(t+": referenced '"+e+"' but it was never created")})),r[i]=p((function(e){r[i]=e,a=!0}))):r[i]={})}),c)}function p(e){var t=[],n=[],i=function(){},o={before:function(e,n){return d.call(this,t,"before",e,n)},after:function(e,t){return d.call(this,n,"after",e,t)},getHooks:function(e){var r=t.concat(n);"object"==typeof e&&(r=r.filter((function(t){return Object.keys(e).every((function(n){return t[n]===e[n]}))})));try{s(r,{remove:function(){return r.forEach((function(e){e.remove()})),this}})}catch(e){console.error("error adding `remove` to array, did you modify Array.prototype?")}return r},removeAll:function(){return this.getHooks().remove()}},a={install:function(r,o,s){this.type=r,i=s,s(t,n),e&&e(o)}};return r.set(o.after,a),o;function d(e,r,o,s){var a={hook:o,type:r,priority:s||10,remove:function(){var r=e.indexOf(a);-1!==r&&(e.splice(r,1),i(t,n))}};return e.push(a),e.sort((function(e,t){return t.priority-e.priority})),i(t,n),this}}function m(n,i,c){var u=i.after&&r.get(i.after);if(u){if(u.type!==n)throw t+": recreated hookable with different type";return i}var f,m,h=c?g(c):p(),b={get:function(e,t){return h[t]||Reflect.get.apply(Reflect,arguments)}};return d||l.push(y),e.useProxy&&"function"==typeof Proxy&&Proxy.revocable?m=new Proxy(i,b):(m=function(){return b.apply?b.apply(i,this,o(arguments)):i.apply(this,arguments)},s(m,h)),r.get(m.after).install(n,m,(function(e,t){var r,i=[];e.length||t.length?(e.forEach(s),r=i.push(void 0)-1,t.forEach(s),f=function(e,t,s){var a,d=0,c="async"===n&&"function"==typeof s[s.length-1]&&s.pop();function l(e){"sync"===n?a=e:c&&c.apply(null,arguments)}function u(e){if(i[d]){var r=o(arguments);return u.bail=l,r.unshift(u),i[d++].apply(t,r)}"sync"===n?a=e:c&&c.apply(null,arguments)}return i[r]=function(){var r=o(arguments,1);"async"===n&&c&&(delete u.bail,r.push(u));var i=e.apply(t,r);"sync"===n&&u(i)},u.apply(null,s),a}):f=void 0;function s(e){i.push(e.hook)}y()})),m;function y(){!d&&("sync"!==n||e.ready&a.SYNC)&&("async"!==n||e.ready&a.ASYNC)?"sync"!==n&&e.ready&a.QUEUE?b.apply=function(){var e=arguments;l.push((function(){m.apply(e[1],e[2])}))}:b.apply=function(){throw t+": hooked function not ready"}:b.apply=f}}return(e=s({},n,e)).ready?u.ready=function(){d=!0,function(e){for(var t;t=e.shift();)t()}(l)}:d=!0,u.get=g,u}e.exports=a},6475:(e,t,n)=>{function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,s=t.length,a=e;o<s&&"__proto__"!==(i=t[o++])&&"constructor"!==i&&"prototype"!==i;)a=a[i]=o===s?n:typeof(r=a[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{N:()=>r})},3342:e=>{e.exports=JSON.parse('["sovrn","appnexus","brealtime","bpa33x","districtm","districtmDMX","gourmetads","rhythmone","yieldmo","teads","indexExchange","ix","pubmatic","openx","nobid","connectad","trion","onetag","smaato","eplanning","amx","conversant","grid","consumable","criteo","improvedigital","sonobi","rtbhouse","colossusssp","outbrain","e_volution","luponmedia","testbids"]')},4740:e=>{e.exports=JSON.parse('{"id":9999999,"code":"consiglietrucchi","file":"asc.consiglietrucchi.js","globalVar":"asc","url":"https://www.consiglietrucchi.com/","dfpAccount":"21633373859","adunitMapping":"adunit","gist":"https://gist.github.com/ascendeum/9ee0fc7d1b164ef22e2b9a3cfa4e6f24","analytics":{"track":["pageview"],"clarity":false,"teads":"PUB_20076"},"wrapper":{"timeout":2000,"timeoutFallback":5000,"bidRequestWaitTime":50,"disableBidders":[],"disableClientSideAdapters":[],"geoFilter":{"minutemedia":{"whitelist":["US","CA","AU","BR","AT","NL","DE","BE","ES","SW","FR","IR"],"blacklist":[]},"33across":{"whitelist":["US","UK","CA","AU"],"blacklist":[]}},"prebidServer":{"accountId":"5b3e1ba1-ffed-4c19-bea2-74521bc13ab3","enabled":false}},"bidAdjustments":{"pubshare":1,"networks":{"brealtime":0.85,"rubicon":0.8,"districtm":0.9,"pubmatic":0.8,"aduptech":1.08,"gps_appnexus":1.3}},"lazyLoading":{"preViewLenght":1000,"scrollEventDelay":400},"targeting":{"refreshIteration":"refreshIteration","speed":true,"pageAdDensity":true,"utmKeyValues":true,"uids":false,"gads":false,"browserLangCode":false,"referrer":false,"tcf":false},"abtests":{"uids":false},"refresh":{"stopAdvertisers":[4780228067],"pauseOutOfFocus":false,"maxLimit":false,"maxEmpty":false,"maxConsecutiveEmpty":false,"forceRefreshRateForAdvertiser":[]},"deviceDetection":"window","dfp":{"collapseEmptyDivs":false,"emtpyCreativeFallback":true,"failedToFetchFallback":3000},"prebid":{"currency":{"adServerCurrency":"USD","conversionRateFile":"https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json"},"priceGranularity":{"buckets":[{"precision":2,"max":20,"increment":0.01}]},"realTimeData":{"dataProviders":[{"name":"adagio","params":{"organizationId":"1284","site":"consiglietrucchi-com","placementSource":"gpid"}}]},"userSync":{"userIds":[{"name":"hadronId","storage":{"name":"hadronId","type":"html5"},"params":{"partnerId":454}},{"name":"33acrossId","params":{"pid":"0013300001bYlR3AAK","storeFpid":true},"storage":{"name":"33acrossId","type":"html5","expires":30,"refreshInSeconds":28800}},{"name":"id5Id","params":{"partner":336},"storage":{"type":"html5","name":"id5id","expires":90,"refreshInSeconds":28800}}]},"outbrain":{"bidderUrl":"https://b1h.zemanta.com/api/bidder/prebid/bid/","usersyncUrl":"https://b1h.zemanta.com/usersync/prebid"}},"amazon":{"enabled":true,"pubID":"7ea13b6c-a537-40db-9733-1fa03cca9d58","adServer":"googletag"},"forceReWrittingPBJS":true}')}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,i,o)=>{if(!n){var s=1/0;for(l=0;l<e.length;l++){n=e[l][0],i=e[l][1],o=e[l][2];for(var a=!0,d=0;d<n.length;d++)(!1&o||s>=o)&&Object.keys(r.O).every((e=>r.O[e](n[d])))?n.splice(d--,1):(a=!1,o<s&&(s=o));if(a){e.splice(l--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={5602:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,s=n[0],a=n[1],d=n[2],c=0;if(s.some((t=>0!==e[t]))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(d)var l=d(r)}for(t&&t(n);c<s.length;c++)o=s[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(l)},n=self.ascChunk=self.ascChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=r.O(void 0,[9270],(()=>r(9262)));i=r.O(i)})();(self.ascChunk=self.ascChunk||[]).push([[9270],{8304:(s,d,n)=>{n.d(d,{_:()=>i});const i='!function(){"use strict";window.render=function({ad:d,adUrl:i,width:n,height:e},{mkFrame:o},r){if(!d&&!i)throw{reason:"noAd",message:"Missing ad markup or URL"};{const t=r.document,s={width:n,height:e};i&&!d?s.src=i:s.srcdoc=d,t.body.appendChild(o(t,s))}}}();'}}]);(self.ascChunk=self.ascChunk||[]).push([[7748],{1694:(o,n,e)=>{function t(o,n){return function(){const e=document.domain.split("."),t=`_gd${Date.now()}_${n}`;for(let n,i,s=0;s<e.length;s++){const u=e.slice(s).join(".");if(o.setCookie(t,"1",void 0,void 0,u),i=o.getCookie(t),o.setCookie(t,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,u),"1"!==i)return n;n=u}}}e.d(n,{U:()=>t})}}]);(self.ascChunk=self.ascChunk||[]).push([[9703],{75:(t,n,e)=>{e.d(n,{ky:()=>u});var o=e(4614),d=e(7746);function s(t){let n;return(0,d.isGptPubadsDefined)()&&(n=(0,o.sE)(window.googletag.pubads().getSlots(),function(t){return n=>(0,d.compareCodeAndSlot)(n,t)}(t))),n}function u(t){const n=s(t);return n?{gptSlot:n.getAdUnitPath(),divId:n.getSlotElementId()}:{}}}}]);(self.ascChunk=self.ascChunk||[]).push([[4409],{9679:(A,e,n)=>{n.d(e,{m:()=>i,x:()=>I});var s=n(7746);function i(){return(0,s.canAccessWindowTop)()?(0,s.getWindowTop)():(0,s.getWindowSelf)()}const I=function(){const A=i();return A.ADAGIO=A.ADAGIO||{},A.ADAGIO.pageviewId=A.ADAGIO.pageviewId||(0,s.generateUUID)(),A.ADAGIO.adUnits=A.ADAGIO.adUnits||{},A.ADAGIO.pbjsAdUnits=A.ADAGIO.pbjsAdUnits||[],A.ADAGIO.queue=A.ADAGIO.queue||[],A.ADAGIO.versions=A.ADAGIO.versions||{},A.ADAGIO.versions.pbjs="9.6.0",A.ADAGIO.windows=A.ADAGIO.windows||[],A.ADAGIO.isSafeFrameWindow=(0,s.isSafeFrameWindow)(),A.ADAGIO}()}}]);(self.ascChunk=self.ascChunk||[]).push([[3157],{676:(r,a,e)=>{e.d(a,{c:()=>o});var n=e(3790),t=e(265);const s=["user.keywords"].concat(n.Iq.flatMap((r=>["keywords","content.keywords"].map((a=>`${r}.${a}`)))));function c(){const r=new Set;for(var a=arguments.length,e=new Array(a),n=0;n<a;n++)e[n]=arguments[n];return e.filter((r=>r)).flatMap((r=>Array.isArray(r)?r:r.split(","))).map((r=>r.replace(/^\s*/,"").replace(/\s*$/,""))).filter((r=>r)).forEach((a=>r.add(a))),Array.from(r.keys())}function o(r){for(var a=arguments.length,e=new Array(a>1?a-1:0),n=1;n<a;n++)e[n-1]=arguments[n];return c(...s.map((a=>(0,t.Z)(r,a))),...e)}}}]);(self.ascChunk=self.ascChunk||[]).push([[2284],{6296:(e,l,s)=>{function t(e,l){let s=[];for(let t=0;t<Math.ceil(e.length/l);t++){let h=t*l,n=h+l;s.push(e.slice(h,n))}return s}s.d(l,{y:()=>t})}}]);(self.ascChunk=self.ascChunk||[]).push([[2277],{9050:(e,t,r)=>{r.d(t,{bn:()=>h,cM:()=>u,gw:()=>p});var n=r(7746),o=r(265),i=r(676),c=r(3790);const a={526:"1plusX",527:"1plusX",541:"captify_segments",540:"perid"},s=["user.data"].concat(c.Iq.map((e=>`${e}.content.data`)));function d(e,t,r){return null==t?r:(0,n.isStr)(t)?t:(0,n.isNumber)(t)?t.toString():void(0,n.logWarn)("Unsuported type for param: "+e+" required type: String")}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords";const r=[];return(0,n._each)(e,((e,o)=>{if((0,n.isArray)(e)){let r=[];(0,n._each)(e,(e=>{((e=d(t+"."+o,e))||""===e)&&r.push(e)})),e=r}else{if(e=d(t+"."+o,e),!(0,n.isStr)(e))return;e=[e]}e=e.filter((e=>""!==e));const i={key:o};e.length>0&&(i.value=e),r.push(i)})),r}function u(e){return(0,n.isStr)(e)&&""!==e?f(e.split(/\s*(?:,)\s*/)):{}}function f(e){const t={};return e.forEach((e=>{if(-1!==e.indexOf("=")){let r=e.split("="),n=r[0],o=r[1];t.hasOwnProperty(n)?t[n].push(o):t[n]=[o]}else t.hasOwnProperty(e)||(t[e]=[])})),t}function g(e){return f((0,i.c)(e))}function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l((0,n.mergeDeep)(...t.map((e=>Object.fromEntries(Object.entries(e||{}).map((e=>{let[t,r]=e;return[t,(0,n.isNumber)(r)||(0,n.isStr)(r)?[r]:r]})))))))}function h(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return p(g(e),v(e),...r)}function v(e){let t={};return s.forEach((r=>{((0,o.Z)(e,r)||[]).forEach((e=>{const r=a[(0,o.Z)(e,"ext.segtax")];r&&e.segment.forEach((e=>{t[r]?t[r].push(e.id):t[r]=[e.id]}))}))})),t}},7374:(e,t,r)=>{r.d(t,{G2:()=>o,UW:()=>i,hl:()=>c});var n=r(7746);function o(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")}const i=[{code:"appnexusAst",gvlid:32},{code:"emxdigital",gvlid:183},{code:"emetriq",gvlid:213},{code:"pagescience",gvlid:32},{code:"gourmetads",gvlid:32},{code:"matomy",gvlid:32},{code:"featureforward",gvlid:32},{code:"oftmedia",gvlid:32},{code:"adasta",gvlid:32},{code:"beintoo",gvlid:618},{code:"projectagora",gvlid:1032},{code:"stailamedia",gvlid:32},{code:"uol",gvlid:32},{code:"adzymic",gvlid:723}];function c(e,t){let r=[];for(let o=0;o<t;o++){let t=(0,n.isPlainObject)(e)?(0,n.deepClone)(e):e;r.push(t)}return r}}}]);(self.ascChunk=self.ascChunk||[]).push([[3402],{5370:(e,n,r)=>{r.d(n,{u:()=>u});var s=r(7746);function u(e,n){return Object.keys(e).forEach((r=>{var u,t;n[r]&&((0,s.isFn)(e[r])?n[r]=e[r](n[r]):n[r]=(u=e[r],t=n[r],"string"===u?t&&t.toString():"number"===u?Number(t):t),isNaN(n[r])&&delete n.key)})),n}}}]);(self.ascChunk=self.ascChunk||[]).push([[6190],{4292:(A,B,I)=>{I.d(B,{m:()=>s});const s={1:"IAB20-3",2:"IAB18-5",3:"IAB10-1",4:"IAB2-3",5:"IAB19-8",6:"IAB22-1",7:"IAB18-1",8:"IAB12-3",9:"IAB5-1",10:"IAB4-5",11:"IAB13-4",12:"IAB8-7",13:"IAB9-7",14:"IAB7-1",15:"IAB20-18",16:"IAB10-7",17:"IAB19-18",18:"IAB13-6",19:"IAB18-4",20:"IAB1-5",21:"IAB1-6",22:"IAB3-4",23:"IAB19-13",24:"IAB22-2",25:"IAB3-9",26:"IAB17-18",27:"IAB19-6",28:"IAB1-7",29:"IAB9-30",30:"IAB20-7",31:"IAB20-17",32:"IAB7-32",33:"IAB16-5",34:"IAB19-34",35:"IAB11-5",36:"IAB12-3",37:"IAB11-4",38:"IAB12-3",39:"IAB9-30",41:"IAB7-44",42:"IAB7-1",43:"IAB7-30",50:"IAB19-30",51:"IAB17-12",52:"IAB19-30",53:"IAB3-1",55:"IAB13-2",56:"IAB19-30",57:"IAB19-30",58:"IAB7-39",59:"IAB22-1",60:"IAB7-39",61:"IAB21-3",62:"IAB5-1",63:"IAB12-3",64:"IAB20-18",65:"IAB11-2",66:"IAB17-18",67:"IAB9-9",68:"IAB9-5",69:"IAB7-44",71:"IAB22-3",73:"IAB19-30",74:"IAB8-5",78:"IAB22-1",85:"IAB12-2",86:"IAB22-3",87:"IAB11-3",112:"IAB7-32",113:"IAB7-32",114:"IAB7-32",115:"IAB7-32",118:"IAB9-5",119:"IAB9-5",120:"IAB9-5",121:"IAB9-5",122:"IAB9-5",123:"IAB9-5",124:"IAB9-5",125:"IAB9-5",126:"IAB9-5",127:"IAB22-1",132:"IAB1-2",133:"IAB19-30",137:"IAB3-9",138:"IAB19-3",140:"IAB2-3",141:"IAB2-1",142:"IAB2-3",143:"IAB17-13",166:"IAB11-4",175:"IAB3-1",176:"IAB13-4",182:"IAB8-9",183:"IAB3-5"}}}]);(self.ascChunk=self.ascChunk||[]).push([[7968],{2712:(t,e,n)=>{n.d(e,{b6:()=>r,m1:()=>l});var a=n(8792);const c=0,l=2;function r(t){let{apiName:e,apiVersion:n,apiArgs:r=["command","callback","parameter","version"],callbackArgs:o=["returnValue","success"],mode:s=c}=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;const u={},f=`${e}Call`,d=`${e}Return`;function p(t){const e="string"==typeof t.data&&t.data.includes(d)?JSON.parse(t.data):t.data;if(e?.[d]?.callId){const t=e[d];u.hasOwnProperty(t.callId)&&u[t.callId](...o.map((e=>t[e])))}}function b(){let t,n=i,a=!1;for(;null!=n;){try{if("function"==typeof n[e]){t=n,a=!0;break}}catch(t){}try{if(n.frames[`${e}Locator`]){t=n;break}}catch(t){}if(n===i.top)break;n=n.parent}return[t,a]}const[m,k]=b();if(!m)return;function g(t){return t=Object.assign({version:n},t),r.map((e=>[e,t[e]]))}function h(t,e,n,a){const c="function"==typeof t;return function(l,r){if(a&&a(),1!==s){(null==r||r?e:n)(c?void 0:l)}c&&t.apply(this,arguments)}}let v;return k?v=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new a.Z(((n,a)=>{const r=m[e](...g({...t,callback:t.callback||s===l?h(t.callback,n,a):void 0}).map((t=>{let[e,n]=t;return n})));(1===s||null==t.callback&&s===c)&&n(r)}))}:(i.addEventListener("message",p,!1),v=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new a.Z(((n,a)=>{const c=Math.random().toString(),l={[f]:{...Object.fromEntries(g(t).filter((t=>{let[e]=t;return"callback"!==e}))),callId:c}};u[c]=h(t?.callback,n,a,(e||null==t?.callback)&&(()=>{delete u[c]})),m.postMessage(l,"*"),1===s&&n()}))}),Object.assign(v,{isDirect:k,close(){!k&&i.removeEventListener("message",p)}})}}}]);(self.ascChunk=self.ascChunk||[]).push([[1266],{5935:(n,r,o)=>{o.d(r,{p:()=>i});var a=o(9128),e=o(7746);function i(n,r,o){return(0,a.g3)(n,(function(n,a){var i;i=function(r,o){if(o){let n=e.logWarn;r&&(n=e.logError,o=`${o} Canceling auction as per consentManagement config.`);for(var i=arguments.length,l=new Array(i>2?i-2:0),t=2;t<i;t++)l[t-2]=arguments[t];n(o,...l)}r?(n.stopTiming(),"function"==typeof a.bidsBackHandler?a.bidsBackHandler():(0,e.logError)("Error executing bidsBackHandler")):n.call(this,a)},r()?((0,e.logInfo)("User consent information already known. Pulling internally stored information..."),i(!1)):o(i)}))}}}]);(self.ascChunk=self.ascChunk||[]).push([[5279],{919:(e,t,r)=>{r.d(t,{T:()=>b,x:()=>f});const i=new WeakMap;function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i.has(e)){const t=Object.entries(e);t.sort(((e,t)=>(e=e[1].priority||0)===(t=t[1].priority||0)?0:e>t?-1:1)),i.set(e,t.map((e=>{let[t,r]=e;return[t,r.fn]})))}const r=i.get(e).filter((e=>{let[r]=e;return!t.hasOwnProperty(r)||t[r]})).map((function(e){let[r,i]=e;return t.hasOwnProperty(r)?t[r].bind(this,i):i}));return function(){const e=Array.from(arguments);r.forEach((t=>{t.apply(this,e)}))}}var o=r(7746),s=r(265),a=r(4679);const d=new Set(["pos","placement","plcmt","api","mimes","protocols","playbackmethod","minduration","maxduration","w","h","startdelay","placement","linearity","skip","skipmin","skipafter","minbitrate","maxbitrate","delivery","playbackend"]);var p=r(5840);var c=r(6372),m=r(3790);const u={[c.Z]:{fpd:{priority:99,fn(e,t){(0,o.mergeDeep)(e,t.ortb2)}},onlyOneClient:{priority:-99,fn:(0,m.A_)("ORTB request")},props:{fn(e,t){Object.assign(e,{id:e.id||(0,o.generateUUID)(),test:e.test||0});const r=parseInt(t.timeout,10);isNaN(r)||(e.tmax=r)}}},[c.DZ]:{fpd:{priority:99,fn(e,t){(0,o.mergeDeep)(e,t.ortb2Imp)}},id:{fn(e,t){e.id=t.bidId}},banner:{fn:function(e,t,r){if(r.mediaType&&r.mediaType!==a.Mk)return;const i=(0,s.Z)(t,"mediaTypes.banner");if(i){const t={topframe:!0===(0,o.inIframe)()?0:1};i.sizes&&(t.format=(0,o.sizesToSizeTuples)(i.sizes).map(o.sizeTupleToRtbSize)),i.hasOwnProperty("pos")&&(t.pos=i.pos),e.banner=(0,o.mergeDeep)(t,e.banner)}}},pbadslot:{fn(e){const t=e.ext?.data?.pbadslot;t&&"string"==typeof t||delete e.ext?.data?.pbadslot}}},[c.Px]:{mediaType:{priority:99,fn:p.R},banner:{fn:function(){let{createPixel:e=(e=>(0,o.createTrackPixelHtml)(decodeURIComponent(e),o.encodeMacroURI))}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,r){t.mediaType===a.Mk&&(r.adm&&r.nurl?(t.ad=r.adm,t.ad+=e(r.nurl)):r.adm?t.ad=r.adm:r.nurl&&(t.adUrl=r.nurl))}}()},props:{fn(e,t,r){Object.entries({requestId:r.bidRequest?.bidId,seatBidId:t.id,cpm:t.price,currency:r.ortbResponse.cur||r.currency,width:t.w,height:t.h,dealId:t.dealid,creative_id:t.crid,creativeId:t.crid,burl:t.burl,ttl:t.exp||r.ttl,netRevenue:r.netRevenue}).filter((e=>{let[t,r]=e;return void 0!==r})).forEach((t=>{let[r,i]=t;return e[r]=i})),e.meta||(e.meta={}),t.adomain&&(e.meta.advertiserDomains=t.adomain),t.ext?.dsa&&(e.meta.dsa=t.ext.dsa)}}}};u[c.DZ].native={fn:function(e,t,r){if(r.mediaType&&r.mediaType!==a.B5)return;let i=t.nativeOrtbRequest;i&&(i=Object.assign({},r.nativeRequest,i),i.assets?.length?e.native=(0,o.mergeDeep)({},{request:JSON.stringify(i),ver:i.ver},e.native):(0,o.logWarn)("mediaTypes.native is set, but no assets were specified. Native request skipped.",t))}},u[c.Px].native={fn:function(e,t){if(e.mediaType===a.B5){let r;if(r="string"==typeof t.adm?JSON.parse(t.adm):t.adm,!(0,o.isPlainObject)(r)||!Array.isArray(r.assets))throw new Error("ORTB native response contained no assets");e.native={ortb:r}}}},u[c.DZ].video={fn:function(e,t,r){if(r.mediaType&&r.mediaType!==a.pX)return;const i=(0,s.Z)(t,"mediaTypes.video");if(!(0,o.isEmpty)(i)){const t=Object.fromEntries(Object.entries(i).filter((e=>{let[t]=e;return d.has(t)})));if(i.playerSize){const e=(0,o.sizesToSizeTuples)(i.playerSize).map(o.sizeTupleToRtbSize);e.length>1&&(0,o.logWarn)("video request specifies more than one playerSize; all but the first will be ignored"),Object.assign(t,e[0])}e.video=(0,o.mergeDeep)(t,e.video)}}},u[c.Px].video={fn:function(e,t,r){e.mediaType===a.pX&&((0,s.Z)(r.imp,"video.w")&&(0,s.Z)(r.imp,"video.h")&&([e.playerWidth,e.playerHeight]=[r.imp.video.w,r.imp.video.h]),t.adm&&(e.vastXml=t.adm),t.nurl&&(e.vastUrl=t.nurl))}};var l=r(1283);function f(){let{context:e={},processors:t=b,overrides:r={},imp:i,request:s,bidResponse:a,response:d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const p=new WeakMap;function m(e,i,o,s){let a;return function(){return null==a&&(a=function(){let a=o.bind(this,n(t()[e]||{},r[e]||{}));return i&&(a=i.bind(this,a)),function(){try{return a.apply(this,arguments)}catch(e){s.call(this,e,...arguments)}}}()),a.apply(this,arguments)}}const u=m(c.DZ,i,(function(e,t,r){const i={};return e(i,t,r),i}),(function(e,t,r){(0,o.logError)("Error while converting bidRequest to ORTB imp; request skipped.",{error:e,bidRequest:t,context:r})})),l=m(c.Z,s,(function(e,t,r,i){const n={imp:t};return e(n,r,i),n}),(function(e,t,r,i){throw(0,o.logError)("Error while converting to ORTB request",{error:e,imps:t,bidderRequest:r,context:i}),e})),f=m(c.Px,a,(function(e,t,r){const i={};return e(i,t,r),i}),(function(e,t,r){(0,o.logError)("Error while converting ORTB seatbid.bid to bidResponse; bid skipped.",{error:e,bid:t,context:r})})),y=m(c.YC,d,(function(e,t,r,i){const n={bids:t};return e(n,r,i),n}),(function(e,t,r,i){throw(0,o.logError)("Error while converting from ORTB response",{error:e,bidResponses:t,ortbResponse:r,context:i}),e}));return{toORTB(t){let{bidderRequest:r,bidRequests:i,context:n={}}=t;i=i||r.bids;const s={req:Object.assign({bidRequests:i},e,n),imp:{}};s.req.impContext=s.imp;const a=i.map((t=>{const i=Object.assign({bidderRequest:r,reqContext:s.req},e,n),a=u(t,i);if(null!=a){if(a.hasOwnProperty("id"))return Object.assign(i,{bidRequest:t,imp:a}),s.imp[a.id]=i,a;(0,o.logError)("Converted ORTB imp does not specify an id, ignoring bid request",t,a)}})).filter(Boolean),d=l(a,r,s.req);return s.req.bidderRequest=r,null!=d&&p.set(d,s),d},fromORTB(e){let{request:t,response:r}=e;const i=p.get(t);if(null==i)throw new Error("ortbRequest passed to `fromORTB` must be the same object returned by `toORTB`");function n(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign(e,{ortbRequest:t},r)}const s=Object.fromEntries((t.imp||[]).map((e=>[e.id,e]))),a=(r.seatbid||[]).flatMap((e=>(e.bid||[]).map((t=>{if(s.hasOwnProperty(t.impid)&&i.imp.hasOwnProperty(t.impid))return f(t,n(i.imp[t.impid],{imp:s[t.impid],seatbid:e,ortbResponse:r}));(0,o.logError)("ORTB response seatbid[].bid[].impid does not match any imp in request; ignoring bid",t)})))).filter(Boolean);return y(a,r,n(i.req))}}}const b=(0,o.memoize)((()=>(0,l.F)(u,(0,c.fP)(c.TP))))},1283:(e,t,r)=>{r.d(t,{F:()=>n});var i=r(6372);function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const o=t.shift(),s=t.length>1?n(...t):t[0];return Object.fromEntries(i.gm.map((e=>[e,Object.assign({},o[e],s[e])])))}},5840:(e,t,r)=>{r.d(t,{R:()=>o,e:()=>n});var i=r(4679);const n={1:i.Mk,2:i.pX,4:i.B5};function o(e,t,r){if(e.mediaType)return;const i=r.mediaType;if(!i&&!n.hasOwnProperty(t.mtype))throw new Error("Cannot determine mediaType for response");e.mediaType=i||n[t.mtype]}}}]);(self.ascChunk=self.ascChunk||[]).push([[7566],{97:(e,r,t)=>{t.d(r,{wm:()=>i});var n=t(265),s=t(6475),o=t(7746);function u(e){const r=e.split(".");return[r.slice(0,r.length-1).join("."),r[r.length-1]]}const c=Object.freeze([...["device.sua","source.schain","regs.gdpr","regs.us_privacy","regs.gpp","regs.gpp_sid","user.consent","user.eids"].map((e=>function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e,r)=>`${e}.ext.${r}`;const[t,o]=u(e);return r=r(t,o),e=>{const u=(0,n.Z)(e,t);if(null!=u?.[o])return(0,s.N)(e,r,u[o]),()=>delete u[o]}}(e))),...["app","content","site","user"].map((function(e){return r=>{const t=r[e]?.kwarray;if(null!=t){let n=(r[e].keywords||"").split(",");return Array.isArray(t)&&n.push(...t),r[e].keywords=n.join(","),()=>delete r[e].kwarray}}}))]);function i(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return function(t){return r.forEach((r=>{try{const n=r(t);"function"==typeof n&&e&&n()}catch(e){(0,o.logError)("Error translating request to ORTB 2.5",e)}})),t}}i()}}]);(self.ascChunk=self.ascChunk||[]).push([[7821],{5172:(r,i,o)=>{o.d(i,{y:()=>s});var d=o(7746);function s(r,i){return r?r.bid?r.bid[0]||(0,d.logError)(i.noBid):(0,d.logError)(i.hasNoArrayOfBids+JSON.stringify(r)):(0,d.logError)(i.emptySeatbid),r&&r.bid&&r.bid[0]}}}]);(self.ascChunk=self.ascChunk||[]).push([[951],{9933:(e,i,d)=>{d.d(i,{X:()=>v});var t=d(1283),r=d(6372),n=d(265),s=d(7746),a=d(1021),b=d(3304),o=d(3193),p=d(6475);var c=d(9702);var f=d(8640);var g=d(4679);const l={[r.Z]:{extPrebid:{fn:function(e,i){(0,p.N)(e,"ext.prebid",(0,s.mergeDeep)({auctiontimestamp:i.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}},e.ext?.prebid)),o.vc.getConfig("debug")&&(e.ext.prebid.debug=!0)}},extPrebidChannel:{fn:function(e){(0,p.N)(e,"ext.prebid.channel",Object.assign({name:"pbjs",version:(0,f.R)().version},e.ext?.prebid?.channel))}},extPrebidAliases:{fn:function(e,i,d){let{am:t=b.ZP}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t.aliasRegistry[i.bidderCode]){const d=t.bidderRegistry[i.bidderCode];if(!d||!d.getSpec().skipPbsAliasing){(0,p.N)(e,`ext.prebid.aliases.${i.bidderCode}`,t.aliasRegistry[i.bidderCode]);const r=o.vc.getConfig(`gvlMapping.${i.bidderCode}`)||d?.getSpec?.().gvlid;r&&(0,p.N)(e,`ext.prebid.aliasgvlids.${i.bidderCode}`,r)}}}}},[r.DZ]:{params:{fn:c.j},adUnitCode:{fn:function(e,i){const d=i.adUnitCode;d&&(0,p.N)(e,"ext.prebid.adunitcode",d)}}},[r.Px]:{mediaType:{fn:a.P,priority:99},videoCache:{fn:function(e,i){if(e.mediaType===g.pX){let{cacheId:d,url:t}=(0,n.Z)(i,"ext.prebid.cache.vastXml")||{};if(!d||!t){const{hb_uuid:e,hb_cache_host:r,hb_cache_path:s}=(0,n.Z)(i,"ext.prebid.targeting")||{};e&&r&&s&&(d=e,t=`https://${r}${s}?uuid=${e}`)}d&&t&&Object.assign(e,{videoCacheKey:d,vastUrl:t})}},priority:-10},bidderCode:{fn(e,i,d){e.bidderCode=d.seatbid.seat,e.adapterCode=(0,n.Z)(i,"ext.prebid.meta.adaptercode")||d.bidRequest?.bidder||e.bidderCode}},pbsBidId:{fn(e,i){const d=(0,n.Z)(i,"ext.prebid.bidid");(0,s.isStr)(d)&&(e.pbsBidId=d)}},adserverTargeting:{fn(e,i){const d=(0,n.Z)(i,"ext.prebid.targeting");(0,s.isPlainObject)(d)&&(e.adserverTargeting=d)}},extPrebidMeta:{fn(e,i){e.meta=(0,s.mergeDeep)({},(0,n.Z)(i,"ext.prebid.meta"),e.meta)}},pbsWurl:{fn(e,i){const d=(0,n.Z)(i,"ext.prebid.events.win");(0,s.isStr)(d)&&(e.pbsWurl=d)}}},[r.YC]:{serverSideStats:{fn(e,i,d){Object.entries({errors:"serverErrors",responsetimemillis:"serverResponseTimeMs"}).forEach((e=>{let[t,r]=e;const s=(0,n.Z)(i,`ext.${t}.${d.bidderRequest.bidderCode}`);s&&(d.bidderRequest[r]=s,d.bidRequests.forEach((e=>e[r]=s)))}))}}}};var u=d(919);const v=(0,s.memoize)((()=>(0,t.F)((0,u.T)(),l,(0,r.fP)(r.md))))},1021:(e,i,d)=>{d.d(i,{E:()=>n,P:()=>s});var t=d(4679),r=d(5840);const n={[t.Mk]:"banner",[t.B5]:"native",[t.pX]:"video"};function s(e,i,d){let s=d.mediaType;s||(s=r.e.hasOwnProperty(i.mtype)?r.e[i.mtype]:i.ext?.prebid?.type,n.hasOwnProperty(s)||(s=t.Mk)),e.mediaType=s}},9702:(e,i,d)=>{d.d(i,{j:()=>r});var t=d(6475);function r(e,i){let d=i.params;d&&(0,t.N)(e,`ext.prebid.bidder.${i.bidder}`,d)}}}]);(self.ascChunk=self.ascChunk||[]).push([[7635],{9957:(n,t,e)=>{e.d(t,{Nh:()=>u,fe:()=>h});var l=e(8640),r=e(1136);function u(n,t,e){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t===e)return n;let u=n;try{u=(0,l.R)().convertCurrency(n,t,e)}catch(n){if(!r)throw n}return u}function c(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;return function(l,r){return null==n&&(n=r),e(l,r,n,t)}}function h(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n=>[n.cpm,n.currency],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c();return(0,r.xI)((e=>t.apply(null,n(e))))}}}]);(self.ascChunk=self.ascChunk||[]).push([[3505],{3485:(e,t,i)=>{i.d(t,{DO:()=>u,Gp:()=>m,O3:()=>c,ZG:()=>g});var r=i(7746),n=i(265),s=i(4679),o=i(3193);function a(e,t){if(!(0,r.isFn)(e.getFloor))return 0;let i=e.getFloor({currency:"USD",mediaType:t,size:"*"});return"USD"===i.currency&&i.floor?i.floor:0}function d(e){return""!==e&&void 0!==e?encodeURIComponent(e):""}function p(e,t){if(!e)return!1;const i="include"===e.filter,n=(0,r.isArray)(e.bidders)?e.bidders:[t];return i&&(0,r.contains)(n,t)}function c(e,t,i){const r=t.startsWith("http")?"":"https://",n=t.endsWith("/")?t:`${t}/`;return e?`${r}${n}${i.TEST}`:`${r}${n}${i.PRODUCTION}`}function m(e,t){const i=[];return e.length&&e.forEach((e=>{i.push(function(e,t){const{params:i}=e,o=function(e){return e.mediaTypes&&e.mediaTypes.banner}(e)?s.Mk:s.pX,d=function(e,t){let i=[];return(0,n.Z)(e,`mediaTypes.${t}.sizes`)?i=e.mediaTypes[t].sizes:Array.isArray(e.sizes)&&e.sizes.length>0&&(i=e.sizes),i}(e,o);isNaN(i.floorPrice)&&(i.floorPrice=0);const p={mediaType:o,adUnitCode:(0,r.getBidIdParameter)("adUnitCode",e),sizes:d,floorPrice:Math.max(a(e,o),i.floorPrice),bidId:(0,r.getBidIdParameter)("bidId",e),loop:(0,r.getBidIdParameter)("bidderRequestsCount",e),bidderRequestId:(0,r.getBidIdParameter)("bidderRequestId",e),transactionId:e.ortb2Imp?.ext?.tid||"",coppa:0},c=(0,n.Z)(e,`mediaTypes.${o}.pos`);c&&(p.pos=c);const m=(0,n.Z)(e,"ortb2Imp.ext.gpid");m&&(p.gpid=m);const u=i.placementId||(0,n.Z)(e,`mediaTypes.${o}.name`);u&&(p.placementId=u);const g=(0,n.Z)(e,`mediaTypes.${o}.mimes`);g&&(p.mimes=g);const l=(0,n.Z)(e,`mediaTypes.${o}.api`);l&&(p.api=l);const y=(0,n.Z)(e,"ortb2.device.sua");y&&(p.sua=y);const f=(0,n.Z)(e,"ortb2.regs.coppa");f&&(p.coppa=1);if(o===s.pX){const t=(0,n.Z)(e,"mediaTypes.video.playbackmethod");let i;Array.isArray(t)&&(0,r.isInteger)(t[0])?i=t[0]:(0,r.isInteger)(t)&&(i=t),i&&(p.playbackMethod=i);const s=(0,n.Z)(e,"mediaTypes.video.placement");s&&(p.placement=s);const o=(0,n.Z)(e,"mediaTypes.video.minduration");o&&(p.minDuration=o);const a=(0,n.Z)(e,"mediaTypes.video.maxduration");a&&(p.maxDuration=a);const d=(0,n.Z)(e,"mediaTypes.video.skip");d&&(p.skip=d);const c=(0,n.Z)(e,"mediaTypes.video.linearity");c&&(p.linearity=c);const m=(0,n.Z)(e,"mediaTypes.video.protocols");m&&(p.protocols=m);const u=(0,n.Z)(e,"mediaTypes.video.plcmt");u&&(p.plcmt=u)}return p}(e))})),i}function u(e,t,i,r,n){const s={requestId:e.requestId,cpm:e.cpm,currency:e.currency||t,width:e.width,height:e.height,ttl:e.ttl||i,creativeId:e.creativeId,netRevenue:e.netRevenue||!0,nurl:e.nurl,mediaType:e.mediaType,meta:{mediaType:e.mediaType}};return e.mediaType===r?s.vastXml=e.vastXml:e.mediaType===n&&(s.ad=e.ad),e.adomain&&e.adomain.length&&(s.meta.advertiserDomains=e.adomain),s}function g(e,t,i){const s=window.location.hostname,{syncEnabled:a,filterSettings:c}=o.vc.getConfig("userSync")||{},{bidderCode:m}=t,u=e.params,g=t.timeout,l={wrapper_type:"prebidjs",wrapper_vendor:"asc",wrapper_version:"9.6.0",adapter_version:i||"6.0.0",auction_start:t.auctionStart,publisher_id:u.org,publisher_name:s,site_domain:s,dnt:"yes"===navigator.doNotTrack||"1"===navigator.doNotTrack||"1"===navigator.msDoNotTrack?1:0,device_type:(y=navigator.userAgent,/ipad|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(y.toLowerCase())?"5":/iphone|ipod|android|blackberry|opera|mini|windows\\sce|palm|smartphone|iemobile/i.test(y.toLowerCase())?"4":/smart[-_\\s]?tv|hbbtv|appletv|googletv|hdmi|netcast|viera|nettv|roku|\\bdtv\\b|sonydtv|inettvbrowser|\\btv\\b/i.test(y.toLowerCase())?"3":"1"),ua:navigator.userAgent,is_wrapper:!!u.isWrapper,session_id:u.sessionId||(0,r.getBidIdParameter)("bidderRequestId",e),tmax:g};var y;const f=(0,r.getBidIdParameter)("userId",e);f&&(l.userIds=JSON.stringify(f));const v=t.ortb2||{};if(v.site&&(l.site_metadata=JSON.stringify(v.site)),v.user&&(l.user_metadata=JSON.stringify(v.user)),a){const e=function(e,t){const i="image";return e&&["all","iframe"].some((i=>p(e[i],t)))?"iframe":e&&e[i]&&!p(e[i],t)?void 0:"pixel"}(c,m);e&&(l.cs_method=e)}return t.uspConsent&&(l.us_privacy=t.uspConsent),t&&t.gdprConsent&&t.gdprConsent.gdprApplies&&(l.gdpr=t.gdprConsent.gdprApplies,l.gdpr_consent=t.gdprConsent.consentString),t.gppConsent?(l.gpp=t.gppConsent.gppString,l.gpp_sid=t.gppConsent.applicableSections):t.ortb2?.regs?.gpp&&(l.gpp=t.ortb2.regs.gpp,l.gpp_sid=t.ortb2.regs.gpp_sid),u.ifa&&(l.ifa=u.ifa),e.schain&&(l.schain=function(e){if((0,r.isEmpty)(e))return"";let t=`${e.ver},${e.complete}`;return e.nodes.forEach((e=>{t+="!",t+=`${d(e.asi)},`,t+=`${d(e.sid)},`,t+=`${d(e.hp)},`,t+=`${d(e.rid)},`,t+=`${d(e.name)},`,t+=`${d(e.domain)}`})),t}(e.schain)),t&&t.refererInfo&&(l.referrer=(0,n.Z)(t,"refererInfo.ref"),l.page_url=(0,n.Z)(t,"refererInfo.page")||(0,n.Z)(window,"location.href")),l}}}]);(self.ascChunk=self.ascChunk||[]).push([[2075],{7172:(e,n,t)=>{t.d(n,{fC:()=>h});var r=t(571),o=t(4947),c=t(1087),i=t(7746),l=t(265),u=t(6475);function s(e){const n={},t=[];e.forEach((e=>{e.wp&&t.push(e),e.get&&e.paths.forEach((t=>{let r=n;t.split(".").forEach((e=>{r.children=r.children||{},r.children[e]=r.children[e]||{},r=r.children[e]})),r.rule=e}))}));const r=(0,c.Db)(t);function o(e,n,t){return new Proxy(e,{get(e,r,i){const l=Reflect.get(e,r,i);if(n.hasOwnProperty(r)){const{children:e,rule:i}=n[r];if(e&&null!=l&&"object"==typeof l)return o(l,e,t);if(i&&(0,c.a)(l)&&t(i))return i.get(l)}return l}})}function i(e){return function(){e.forEach((e=>e()))}}return function(e){const t={};for(var l=arguments.length,u=new Array(l>1?l-1:0),s=1;s<l;s++)u[s-1]=arguments[s];return{obj:o(e,n.children||{},(0,c.RD)(t,...u)),verify:i(r(t,e,...u))}}}function f(e){return Object.assign({wp:!0,run(e,n,t,r,o){const s=t&&t.hasOwnProperty(r),f=s?t[r]:void 0,a=s&&null!=f&&"object"==typeof f?(0,i.deepClone)(f):f;return function(){const t=null==n?e:(0,l.Z)(e,n),d=t&&(0,c.a)(t[r]),h=d?t[r]:void 0;!s&&d&&o()?delete t[r]:s===d&&h===f&&(0,i.deepEqual)(h,a)||!o()||(0,u.N)(e,(null==n?[]:[n]).concat(r).join("."),a)}}},e)}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.xD;return[{name:o.EL,paths:c.ZZ,applies:(0,c.js)(o.EL,e)},{name:o.S5,paths:c.$8,applies:(0,c.js)(o.S5,e)}].map(f)}const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.xD;return s((0,c.Mp)(e).concat(a(e)))}();const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return function(n,t){n.global=n.global||{},n.bidder=n.bidder||{};const r=new Set(Object.keys(n.bidder)),o=[];function c(n){const r=e(n,t);return o.push(r.verify),r.obj}const l={global:c(n.global),bidder:Object.fromEntries(Object.entries(n.bidder).map((e=>{let[n,t]=e;return[n,c(t)]})))};return{obj:l,verify(){Object.entries(l.bidder).filter((e=>{let[n]=e;return!r.has(n)})).forEach((r=>{let[o,c]=r;const l={},u=e(l,t);(0,i.mergeDeep)(u.obj,c),u.verify(),n.bidder[o]=l})),o.forEach((e=>e()))}}}}()}}]);(self.ascChunk=self.ascChunk||[]).push([[4213],{9865:(n,e,s)=>{function u(n,e,s){return s?n+e+"="+encodeURIComponent(s)+"&":n}s.d(e,{t:()=>u})}}]);(self.ascChunk=self.ascChunk||[]).push([[4827],{7706:(e,t,n)=>{n.d(t,{KT:()=>I,Ky:()=>S,P1:()=>C,RX:()=>v,TS:()=>f,aJ:()=>y,ov:()=>R,ql:()=>u,yz:()=>U});var r=n(7746),i=n(265),o=n(6296),a=n(420),s=n(5975),d=n(3193),c=n(4679);function u(){return"wsid_"+parseInt(Date.now()*Math.random())}function p(){try{return(0,r.parseUrl)(window.top.document.URL,{decodeSearchAsString:!0}).search}catch(e){return""}}function l(e){return e.cId||e.CID||e.cID||e.CId||e.cid||e.ciD||e.Cid||e.CiD}function g(e){return e.pId||e.PID||e.pID||e.PId||e.pid||e.piD||e.Pid||e.PiD}function m(e){return e.subDomain||e.SubDomain||e.Subdomain||e.subdomain||e.SUBDOMAIN||e.subDOMAIN}function f(e){const t=e.params||{};return!(!l(t)||!g(t))}function b(e,t,n,r){try{const i=r||Date.now(),o=JSON.stringify({value:n,created:i});e.setDataInLocalStorage(t,o)}catch(e){}}function h(e,t){try{return function(e){try{return JSON.parse(e)}catch(t){return e}}(e.getDataFromLocalStorage(t,null))}catch(e){}return null}function I(e,t){let n=e.getDataFromLocalStorage(t,null);return n||(n=String(Date.now()),e.setDataInLocalStorage(t,n,null)),n}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.JS;try{const r=h(e,t);let i,o=0;r&&r.value&&Date.now()-r.created<n&&(o=r.value,i=r.created);const a=o+1;return b(e,t,a,i),a}catch(e){return 0}}function y(e){if(!e.nurl)return;const t={adId:e.adId,creativeId:e.creativeId,auctionId:e.auctionId,transactionId:e.transactionId,adUnitCode:e.adUnitCode,cpm:e.cpm,currency:e.currency,originalCpm:e.originalCpm,originalCurrency:e.originalCurrency,netRevenue:e.netRevenue,mediaType:e.mediaType,timeToRespond:e.timeToRespond,status:e.status},n=(0,r.formatQS)(t),i=e.nurl+(-1===e.nurl.indexOf("?")?"?":"&")+n;(0,r.triggerPixel)(i)}function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{iframeSyncUrl:"",imageSyncUrl:""};return function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const d=[],{iframeEnabled:c,pixelEnabled:u}=t,{gdprApplies:p,consentString:l=""}=o,{gppString:g,applicableSections:m}=s,f=n.filter((e=>(0,i.Z)(e,"body.cid"))).map((e=>e.body.cid)).filter(r.uniques);let b=`?cid=${encodeURIComponent(f.join(","))}&gdpr=${p?1:0}&gdpr_consent=${encodeURIComponent(l||"")}&us_privacy=${encodeURIComponent(a||"")}`;return g&&m?.length&&(b+="&gpp="+encodeURIComponent(g),b+="&gpp_sid="+encodeURIComponent(m.join(","))),c&&e.iframeSyncUrl&&d.push({type:"iframe",url:`${e.iframeSyncUrl}/${b}`}),u&&e.imageSyncUrl&&d.push({type:"image",url:`${e.imageSyncUrl}/${b}`}),d}}function v(e){return h(e,a.eL)||""}function D(e,t,n,o,d,c,u,l,m){const{params:f,bidId:I,userId:S,adUnitCode:y,schain:C,mediaTypes:v,ortb2Imp:D,bidderRequestId:U,bidRequestsCount:R,bidderRequestsCount:$,bidderWinsCount:T}=e,{ext:w}=f;let{bidFloor:q}=f;const z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";const n=e.length;let r=0,i=0;if(n>0)for(;i<n;)r=(r<<5)-r+e.charCodeAt(i++)|0;return t+r}(t),A=(0,r.isFn)(m)?m(z,e):{},x=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.os;const r=`u_${t}`,i=Date.now(),o=h(e,r);let s;return!o||!o.value||i-o.created>n?(s=`${t}_${i.toString()}`,b(e,r,s)):s=o.value,s}(c,z),O=g(f),_=s.S.get(l,"storageAllowed"),Z=(0,i.Z)(e,"ortb2Imp.ext.gpid")||(0,i.Z)(e,"ortb2Imp.ext.data.pbadslot",""),k=(0,i.Z)(o,"ortb2.site.cat",[]),P=(0,i.Z)(o,"ortb2.site.pagecat",[]),j=(0,i.Z)(o,"ortb2.site.content.data",[]),F=(0,i.Z)(o,"ortb2.user.data",[]);if((0,r.isFn)(e.getFloor)){const t=e.getFloor({currency:"USD",mediaType:"*",size:"*"});"USD"===t.currency&&(q=t.floor)}let L={url:encodeURIComponent(t),uqs:p(),cb:Date.now(),bidFloor:q,bidId:I,referrer:o.refererInfo.ref,adUnitCode:y,publisherId:O,sizes:n,uniqueDealId:x,bidderVersion:u,prebidVersion:"9.6.0",res:`${screen.width}x${screen.height}`,schain:C,mediaTypes:v,isStorageAllowed:_,gpid:Z,cat:k,contentData:j,userData:F,pagecat:P,transactionId:D?.ext?.tid,bidderRequestId:U,bidRequestsCount:R,bidderRequestsCount:$,bidderWinsCount:T,bidderTimeout:d,...A};!function(e,t){let n;(0,r._each)(t,((t,r)=>{switch(n=`uid.${r}`,r){case"lipb":e[n]=t.lipbid;break;case"id5id":e[n]=t.uid;break;default:e[n]=t}}))}(L,S);const M=(0,i.Z)(o,"ortb2.device.sua");if(M&&(L.sua=M),o.gdprConsent&&(o.gdprConsent.consentString&&(L.gdprConsent=o.gdprConsent.consentString),void 0!==o.gdprConsent.gdprApplies&&(L.gdpr=o.gdprConsent.gdprApplies?1:0)),o.uspConsent&&(L.usPrivacy=o.uspConsent),o.gppConsent?(L.gppString=o.gppConsent.gppString,L.gppSid=o.gppConsent.applicableSections):o.ortb2?.regs?.gpp&&(L.gppString=o.ortb2.regs.gpp,L.gppSid=o.ortb2.regs.gpp_sid),o.paapi?.enabled){const e=(0,i.Z)(o,"ortb2Imp.ext.ae");e&&(L.fledge=e)}return(0,r._each)(w,((e,t)=>{L["ext."+t]=e})),L}function U(e,t){return function(n,r){if(!n||!n.body)return[];const o=t&&d.vc.getConfig(`${e}.singleRequest`),s=(0,i.Z)(r,"data.bidId"),{results:u}=n.body;let p=[];try{return u.forEach(((e,t)=>{const{creativeId:n,ad:r,price:i,exp:d,width:u,height:l,currency:g,bidId:m,nurl:f,advertiserDomains:b,metaData:h,mediaType:I=c.Mk}=e;if(!r||!i)return;const S={requestId:o&&m?m:s,cpm:i,width:u,height:l,creativeId:n,currency:g||a.wA,netRevenue:!0,ttl:d||a.Xj};f&&(S.nurl=f),h?Object.assign(S,{meta:h}):Object.assign(S,{meta:{advertiserDomains:b||[]}}),I===c.Mk?Object.assign(S,{ad:r}):Object.assign(S,{vastXml:r,mediaType:c.pX}),p.push(S)})),p}catch(e){return[]}}}function R(e,t,n,i,a,s){function u(r,o,s,d,c){const{params:u}=r,p=l(u),g=m(u),f=D(r,o,s,d,c,n,a,i,t);return{method:"POST",url:`${e(g)}/prebid/multi/${p}`,data:f}}return function(p,g){const f=g.refererInfo.page||g.refererInfo.topmostLocation,b=d.vc.getConfig("bidderTimeout"),h=s&&d.vc.getConfig(`${i}.singleRequest`),I=[];if(h){const s=p.filter((e=>(0,r.isArray)(e.mediaTypes)?e.mediaTypes.includes(c.Mk):void 0!==e.mediaTypes[c.Mk]));if(s.length>0){const c=function(s,c,u,p){const{params:g}=s[0],f=l(g),b=m(g),h=s.map((e=>{const o=(0,r.parseSizesInput)(e.sizes);return D(e,u,o,c,p,n,a,i,t)})),I=Math.min(20,d.vc.getConfig(`${i}.chunkSize`)||10);return(0,o.y)(h,I).map((t=>({method:"POST",url:`${e(b)}/prebid/multi/${f}`,data:{bids:t}})))}(s,g,f,b);I.push(...c)}p.filter((e=>void 0!==e.mediaTypes[c.pX])).forEach((e=>{const t=(0,r.parseSizesInput)(e.sizes),n=u(e,f,t,g,b);I.push(n)}))}else p.forEach((e=>{const t=(0,r.parseSizesInput)(e.sizes),n=u(e,f,t,g,b);I.push(n)}));return I}}},420:(e,t,n)=>{n.d(t,{JS:()=>o,Xj:()=>i,_I:()=>d,eL:()=>s,os:()=>a,ry:()=>c,wA:()=>r});const r="USD",i=300,o=9e5,a=36e5,s="vidSid",d="vdzwopt",c="vdzHum"}}]);(self.ascChunk=self.ascChunk||[]).push([[8554],{3095:(e,o,r)=>{var n=r(8640),t=r(7746),s=r(8928),a=r(2797),p=r(4516),c=r(5164),i=r(9633),d=r(1694);const l="33acrossId",g="https://lexicon.33across.com/v1/envelope",u="33acrossIdFp",f="33acrossIdTp",v=!0,m=!0,S=(0,c.df)({moduleType:i.y2,moduleName:l}),C={domainOverride:(0,d.U)(S,l)};function I(e){if(S.cookiesAreEnabled()){const o=new Date(0).toUTCString();S.setCookie(e,"",o,"Lax",C.domainOverride())}S.removeDataFromLocalStorage(e)}function D(e,o){let r;return o.find((o=>(o===c.c$?r=S.getCookie(e):o===c.Dp&&(r=S.getDataFromLocalStorage(e)),!!r))),r}function b(e,o,r){o?function(e,o,r){let{enabledStorageTypes:n,expires:t}=r;n.forEach((r=>{if(r===c.c$){const r=864e5*t,n=new Date(Date.now()+r);S.setCookie(e,o,n.toUTCString(),"Lax",C.domainOverride())}else r===c.Dp&&S.setDataInLocalStorage(e,o)}))}(e,o,r):I(e)}const y={name:l,gvlid:58,decode:e=>({[l]:{envelope:e}}),getId(e,o){let{params:r={},enabledStorageTypes:n=[],storage:a={}}=e;if("string"!=typeof r.pid)return void(0,t.logError)(`${l}: Submodule requires a partner ID to be defined`);if(!0===o?.gdprApplies)return void(0,t.logWarn)(`${l}: Submodule cannot be used where GDPR applies`);const{pid:c,storeFpid:i=v,storeTpid:d=m,apiUrl:S=g}=r;return{callback(e){(0,s.OI)(1e4)(S,{success(o){let r={};try{r=function(e){return e.succeeded?e.data.envelope?{envelope:e.data.envelope,fp:e.data.fp,tp:e.data.tp}:((0,t.logMessage)(`${l}: No envelope was received`),{}):("Cookied User"==e.error?(0,t.logMessage)(`${l}: Unsuccessful response`.concat(" ",e.error)):(0,t.logError)(`${l}: Unsuccessful response`.concat(" ",e.error)),{})}(JSON.parse(o))}catch(e){(0,t.logError)(`${l}: ID reading error:`,e)}r.envelope||I(l),i&&b(u,r.fp,{enabledStorageTypes:n,expires:a.expires}),d&&b(f,r.tp,{enabledStorageTypes:n,expires:a.expires}),e(r.envelope)},error(o){(0,t.logError)(`${l}: ID error response`,o),e()}},function(e,o,r){const n=p.nX.getConsentData(),t=p.VP.getCoppa(),s=p.TJ.getConsentData(),a={pid:e,gdpr:0,src:"pbjs",ver:"9.6.0",coppa:Number(t)};if(n&&(a.us_privacy=n),s){const{gppString:e="",applicableSections:o=[]}=s;a.gpp=e,a.gpp_sid=encodeURIComponent(o.join(","))}o?.consentString&&(a.gdpr_consent=o.consentString);const c=D(u,r);c&&(a.fp=encodeURIComponent(c));const i=D(f,r);return i&&(a.tp=encodeURIComponent(i)),a}(c,o,n),{method:"GET",withCredentials:!0})}}},domainOverride:C.domainOverride,eids:{"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}}}};(0,a.Bx)("userId",y),(0,n.z)("33acrossIdSystem")}},e=>{e.O(0,[7748,9270],(()=>{return o=3095,e(e.s=o);var o}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[8514],{3934:(e,a,r)=>{var t=r(8640),i=r(4679),s=r(7746),n=r(265),d=r(5102),o=r(154),p=r(5706),m=r(9679),l=r(3193),c=r(59),u=r(4614),g=r(75),y=r(4699),f=r(1974);const v="Adagio:",b=[i.Mk,i.B5,i.pX],h="adagio",I=`https://${h}.bbvms.com/r/$RENDERER.js`,T={mimes:e=>Array.isArray(e)&&e.length>0&&e.every((e=>"string"==typeof e)),minduration:e=>(0,s.isInteger)(e),maxduration:e=>(0,s.isInteger)(e),protocols:e=>(0,s.isArrayOfNums)(e),w:e=>(0,s.isInteger)(e),h:e=>(0,s.isInteger)(e),startdelay:e=>(0,s.isInteger)(e),placement:e=>((0,s.logWarn)(v,"The OpenRTB video param `placement` is deprecated and should not be used anymore."),(0,s.isInteger)(e)),plcmt:e=>(0,s.isInteger)(e),linearity:e=>(0,s.isInteger)(e),skip:e=>[1,0].includes(e),skipmin:e=>(0,s.isInteger)(e),skipafter:e=>(0,s.isInteger)(e),sequence:e=>(0,s.isInteger)(e),battr:e=>(0,s.isArrayOfNums)(e),maxextended:e=>(0,s.isInteger)(e),minbitrate:e=>(0,s.isInteger)(e),maxbitrate:e=>(0,s.isInteger)(e),boxingallowed:e=>(0,s.isInteger)(e),playbackmethod:e=>(0,s.isArrayOfNums)(e),playbackend:e=>(0,s.isInteger)(e),delivery:e=>(0,s.isArrayOfNums)(e),pos:e=>(0,s.isInteger)(e),api:e=>(0,s.isArrayOfNums)(e)};const A={canAccessWindowTop:s.canAccessWindowTop,getAdagioNs:function(){return m.x},getDevice:function(){const e=navigator.language?"language":"userLanguage";return{userAgent:navigator.userAgent,language:navigator[e],dnt:(0,s.getDNT)()?1:0,geo:{},js:1}},getSite:function(e){const{refererInfo:a}=e;return{domain:(0,d.hh)(a.topmostLocation)||"",page:a.topmostLocation||"",referrer:a.ref||(0,s.getWindowSelf)().document.referrer||"",top:a.reachedTop}},getRefererInfo:d.nH,hasRtd:function(){return(l.vc.getConfig("realTimeData.dataProviders")||[]).find((e=>"adagio"===e.name))},isRendererPreferredFromPublisher:function(e){const a=(0,n.Z)(e,"renderer"),r=!!(a&&a.url&&a.render),t=(0,n.Z)(e,"mediaTypes.video.renderer"),i=!!(t&&t.url&&t.render);return!!(r&&!0!==a.backupOnly||i&&!0!==t.backupOnly)}};function k(e){const a=(0,n.Z)(e,"mediaTypes.video",{}),r=(0,n.Z)(e,"params.video",{}),t={};if(Array.isArray(a.playerSize)){const e=Array.isArray(a.playerSize[0])?a.playerSize[0]:a.playerSize;t.w=e[0],t.h=e[1]}const i={...t,...a,...r};i.context&&i.context===o.gZ&&(e.mediaTypes.video.playerName=function(e){return A.isRendererPreferredFromPublisher(e)?"other":"adagio"}(e)),Object.keys(T).forEach((a=>{i.hasOwnProperty(a)&&(T[a](i[a])?e.mediaTypes.video[a]=i[a]:(delete e.mediaTypes.video[a],(0,s.logWarn)(`${v} The OpenRTB video param ${a} has been skipped due to misformating. Please refer to OpenRTB 2.5 spec.`)))}))}function w(e){if(!e.admNative||!Array.isArray(e.admNative.assets))return void(0,s.logError)(`${v} Invalid native response`);const a={};e.admNative.assets.forEach((e=>{if(e.title)a.title=e.title.text;else if(e.data)!function(e){const r={1:"sponsoredBy",2:"body",3:"rating",4:"likes",5:"downloads",6:"price",7:"salePrice",8:"phone",9:"address",10:"body2",11:"displayUrl",12:"cta"};r.hasOwnProperty(e.type)&&"string"==typeof e.value&&(a[r[e.type]]=e.value)}(e.data);else if(e.img)if(1===e.img.type)a.icon={url:e.img.url,width:e.img.w,height:e.img.h};else a.image={url:e.img.url,width:e.img.w,height:e.img.h}})),e.admNative.link&&(e.admNative.link.url&&(a.clickUrl=e.admNative.link.url),Array.isArray(e.admNative.link.clicktrackers)&&(a.clickTrackers=e.admNative.link.clicktrackers)),Array.isArray(e.admNative.eventtrackers)?(a.impressionTrackers=[],e.admNative.eventtrackers.forEach((e=>{if(1===e.event)switch(e.method){case 1:a.impressionTrackers.push(e.url);break;case 2:const r=`<script async src="${e.url}"><\/script>`;a.javascriptTrackers?a.javascriptTrackers+=`\n${r}`:a.javascriptTrackers=r}}))):(a.impressionTrackers=Array.isArray(e.admNative.imptrackers)?e.admNative.imptrackers:[],e.admNative.jstracker&&(a.javascriptTrackers=e.admNative.jstracker)),e.admNative.privacy&&(a.privacyLink=e.admNative.privacy),e.admNative.ext&&(a.ext={},e.admNative.ext.bvw&&(a.ext.adagio_bvw=e.admNative.ext.bvw)),e.native=a}function N(e,a){if(e.params=e.params||{},e.params[a])return;const r=l.vc.getConfig("adagio")||{},t=e.ortb2,i=r[a]||(0,n.Z)(t,`site.ext.data.${a}`,null);if(i){if(Array.isArray(i))return void(i.length&&(e.params[a]=i[0].toString()));e.params[a]=i.toString()}}function U(e){const a=l.vc.getConfig("adagio")||{};e.params=e.params||{},a.siteId&&(e.params.organizationId=a.siteId.split(":")[0],e.params.site=a.siteId.split(":")[1]),e.params.placement=(0,n.Z)(e,"ortb2Imp.ext.data.placement",e.params.placement),e.params.placement||!0!==a.useAdUnitCodeAsPlacement&&!0!==e.params.useAdUnitCodeAsPlacement||(e.params.placement=e.adUnitCode),e.params.adUnitElementId=(0,n.Z)(e,"ortb2Imp.ext.data.divId",e.params.adUnitElementId),e.params.adUnitElementId||(!0===a.useAdUnitCodeAsAdUnitElementId||!0===e.params.useAdUnitCodeAsAdUnitElementId?e.params.adUnitElementId=e.adUnitCode:e.params.adUnitElementId=function(e){const a=(0,g.ky)(e);if(a.divId)return a.divId}(e.adUnitCode)),N(e,"pagetype"),N(e,"category")}const S={bootstrapPlayer:function(e){const a=e.outstreamRendererCode,r={code:e.adUnitCode};if(e.vastXml?r.vastXml=e.vastXml:e.vastUrl&&(r.vastUrl=e.vastUrl),!e.vastXml&&!e.vastUrl)return void(0,s.logError)(`${v} no vastXml or vastUrl on bid`);if(!window.bluebillywig||!window.bluebillywig.renderers||!window.bluebillywig.renderers.length)return void(0,s.logError)(`${v} no BlueBillywig renderers found!`);const t=this.getRendererId(h,a),i={};e.skipOffset&&(i.skipOffset=e.skipOffset.toString());const n=window.bluebillywig.renderers.find((e=>e._id===t));if(!n)return void(0,s.logError)(`${v} couldn't find a renderer with ID ${t}`);const d=document.getElementById(e.adUnitCode);n.bootstrap(r,d,i)},newRenderer:function(e,a){const r=I.replace("$RENDERER",a),t=p.Th.install({url:r,loaded:!1,adUnitCode:e});try{t.setRender(this.outstreamRender)}catch(e){(0,s.logError)(`${v} error trying to setRender`,e)}return t},outstreamRender:function(e){e.renderer.push((()=>{S.bootstrapPlayer(e)}))},getRendererId:function(e,a){return`${e}-${a}`}},x={code:"adagio",gvlid:617,supportedMediaTypes:b,isBidRequestValid:e=>(e.params=e.params||{},U(e),!!(e.params.organizationId&&e.params.site&&e.params.placement)||((0,s.logWarn)(`${v} at least one required param is missing.`),!1)),buildRequests(e,a){e=(0,c.lY)(e);const r="https:"===location.protocol?1:0,t=A.getDevice(),d=A.getSite(a),o=A.getAdagioNs().pageviewId,p=function(e){if(!(0,n.Z)(e,"gdprConsent"))return!1;const{apiVersion:a,gdprApplies:r,consentString:t,allowAuctionWithoutConsent:i}=e.gdprConsent;return(0,s.cleanObj)({apiVersion:a,consentString:t,consentRequired:r?1:0,allowAuctionWithoutConsent:i?1:0})}(a)||{},m=function(e){return!!(0,n.Z)(e,"uspConsent")&&{uspConsent:e.uspConsent}}(a)||{},u={required:!0===l.vc.getConfig("coppa")?1:0},{gpp:g,gpp_sid:y}=(0,n.Z)(a,"ortb2.regs",{}),h=(I=e[0],(0,n.Z)(I,"schain"));var I;const T=function(e){if((0,n.Z)(e,"userIdAsEids"))return e.userIdAsEids}(e[0])||[],w=(0,n.Z)(l.vc.getConfig("userSync"),"syncEnabled")&&f.k_.canBidderRegisterSync("iframe","adagio"),N=(0,n.Z)(a,"ortb2.regs.ext.dsa"),U=(0,n.Z)(a,"ortb2.site.ext.data.adg_rtd.session",{});Object.keys(U).length||((0,s.logInfo)(v,"No session data provided. A new session is be generated."),U.new=!0,U.rnd=Math.random());const S=(0,n.Z)(a,"ortb2.site.ext.data.adg_rtd.uid")||(0,s.generateUUID)(),x=e.map((e=>{const a=(0,s.deepClone)(e);if(a.auctionId=S,a.params.splitKeyword&&((0,s.isStr)(a.params.splitKeyword)||(0,s.isNumber)(a.params.splitKeyword)?a.params.splitKeyword=a.params.splitKeyword.toString():(delete a.params.splitKeyword,(0,s.logWarn)(v,"The splitKeyword param have been removed because the type is invalid, accepted type: number or string."))),a.params.organizationId=a.params.organizationId.toString(),a.params.dataLayer)if((0,s.isStr)(a.params.dataLayer)||(0,s.isNumber)(a.params.dataLayer)||(0,s.isArray)(a.params.dataLayer)||(0,s.isFn)(a.params.dataLayer))(0,s.logWarn)(v,"The dataLayer param is invalid, only object is accepted as a type."),delete a.params.dataLayer;else{let e=!1;a.params.dl=a.params.dataLayer,delete a.params.dataLayer,Object.keys(a.params.dl).forEach((r=>{a.params.dl[r]&&((0,s.isStr)(a.params.dl[r])||(0,s.isNumber)(a.params.dl[r])?a.params.dl[r]=a.params.dl[r].toString():(e=!0,delete a.params.dl[r]))})),e&&(0,s.logWarn)(v,"Some parameters of the dataLayer property have been removed because the type is invalid, accepted type: number or string.")}const r=function(e){if(!(0,s.isFn)(e.getFloor))return!1;const a=[],r=(r,t)=>{const i=e.getFloor({currency:"USD",mediaType:r,size:t});a.push((0,s.cleanObj)({mt:r,s:(0,s.isArray)(t)?`${t[0]}x${t[1]}`:void 0,f:isNaN(i.floor)||"USD"!==i.currency?void 0:i.floor}))};return Object.keys(e.mediaTypes).forEach((a=>{if(-1!==b.indexOf(a)){const t=a===i.pX?"playerSize":"sizes";e.mediaTypes[a][t]&&e.mediaTypes[a][t].length?(0,s.isArray)(e.mediaTypes[a][t][0])?e.mediaTypes[a][t].forEach((e=>{r(a,[e[0],e[1]])})):r(a,[e.mediaTypes[a][t][0],e.mediaTypes[a][t][1]]):r(a,"*")}})),a}(e);if((0,s.isArray)(r)&&r.length){if(a.floors=r,(0,n.Z)(a,"mediaTypes.banner")){const e=a.mediaTypes.banner,r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const r={size:e,floor:null},t=a.floors.filter((e=>e.mt===i.Mk)),s=t.find((a=>a.s===e.join("x")));return r.floor=t?s?s.f:t[0].f:null,r};a.mediaTypes.banner.bannerSizes=(0,s.isArray)(e.sizes[0])?e.sizes.map((e=>r(e))):r(e.sizes)}if((0,n.Z)(a,"mediaTypes.video")){const e=a.mediaTypes.video,r=a.floors.filter((e=>e.mt===i.pX)),t=e.playerSize&&(0,s.isArray)(e.playerSize[0])?e.playerSize[0]:e.playerSize,n=t?r.find((e=>e.s===t.join("x"))):void 0;a.mediaTypes.video.floor=r?n?n.f:r[0].f:null}if((0,n.Z)(a,"mediaTypes.native")){const e=a.floors.filter((e=>e.mt===i.B5));e.length&&(a.mediaTypes.native.floor=e[0].f)}}(0,n.Z)(a,"mediaTypes.video")&&k(a);const t=(0,n.Z)(a,"ortb2Imp.ext.gpid")||(0,n.Z)(a,"ortb2Imp.ext.data.pbadslot");t&&(a.gpid=t);const d={...(0,n.Z)(a,"ortb2.site.ext.data.adg_rtd.features",{}),print_number:(a.bidderRequestsCount||1).toString(),adunit_position:(0,n.Z)(a,"ortb2Imp.ext.data.adg_rtd.adunit_position",null)};a.features=Object.entries(d).reduce(((e,a)=>{let[r,t]=a;return null==t||(e[r]=t),e}),{}),delete a.params.siteId;return{adUnitCode:a.adUnitCode,auctionId:a.auctionId,bidder:a.bidder,bidId:a.bidId,params:a.params,features:a.features,gpid:a.gpid,mediaTypes:a.mediaTypes,nativeParams:a.nativeParams,score:a.score,transactionId:a.transactionId}})),C=x.reduce(((e,a)=>{const r=a.params.organizationId;return e[r]=e[r]||[],e[r].push(a),e}),{});e.forEach((e=>{e.params.pageviewId=o}));return Object.keys(C).map((e=>({method:"POST",url:"https://mp.4dex.io/prebid",data:{organizationId:e,hasRtd:A.hasRtd()?1:0,secure:r,device:t,site:d,pageviewId:o,adUnits:C[e],data:{session:U},regs:{gdpr:p,coppa:u,ccpa:m,gpp:g||"",gppSid:y||[],dsa:N},schain:h,user:{eids:T},prebidVersion:"9.6.0",usIfr:w},options:{contentType:"text/plain"}})))},interpretResponse(e,a){let r=[];try{const t=e.body;t&&(t.data&&A.hasRtd()&&A.getAdagioNs().queue.push({action:"ssp-data",ts:Date.now(),data:t.data}),t.bids&&t.bids.forEach((e=>{const t=(0,u.sE)(a.data.adUnits,(a=>a.bidId===e.requestId));if(t){if(e.meta=(0,n.Z)(e,"meta",{}),e.meta.mediaType=e.mediaType,e.meta.advertiserDomains=Array.isArray(e.aDomain)&&e.aDomain.length?e.aDomain:[],e.mediaType===i.pX){const a=(0,n.Z)(t,"mediaTypes.video.context");if(!e.vastUrl&&e.vastXml&&(e.vastUrl="data:text/xml;charset=utf-8;base64,"+window.btoa(e.vastXml.replace(/\\"/g,'"'))),a===o.gZ){if(e.outstreamRendererCode=(0,n.Z)(t,"params.rendererCode","renderer"),(0,n.Z)(t,"mediaTypes.video.skip")){const a=(0,n.Z)(t,"mediaTypes.video.skipafter",5);e.skipOffset=a}e.renderer=S.newRenderer(e.adUnitCode,e.outstreamRendererCode)}}e.mediaType===i.B5&&w(e),e.site=t.params.site,e.placement=t.params.placement,e.pagetype=t.params.pagetype,e.category=t.params.category}r.push(e)})))}catch(e){(0,s.logError)(e)}return r},getUserSyncs(e,a){if(!a.length||""===a[0].body||!a[0].body.userSyncs)return!1;return a[0].body.userSyncs.map((e=>({type:"p"===e.t?"image":"iframe",url:e.u})))}};(0,y.dX)(x),(0,t.z)("adagioBidAdapter")}},e=>{e.O(0,[9703,4409,9270],(()=>{return a=3934,e(e.s=a);var a}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[1219],{4453:(e,t,a)=>{var n=a(8640),i=a(9633),o=a(3304),s=a(5730),d=a(2797),r=a(5164),c=a(7746),g=a(265),u=a(6475),l=a(9679),m=a(75);const p="adagio",f="code",h="gpid",w=(0,r.df)({moduleType:i.XG,moduleName:p}),{logError:b,logWarn:v}=(0,c.prefixLog)("AdagioRtdProvider:"),y=new Set,S=function(){const e={session:{}};return{init:()=>{w.getDataFromLocalStorage("adagio",(t=>{const{rnd:a,new:n=!1,vwSmplg:i,vwSmplgNxt:o,lastActivityTime:s,id:d,testName:r,testVersion:g,initiator:u}=N.getSessionFromLocalStorage(t),l="snippet"===u?n:(e=>{const t=Date.now();return!(0,c.isNumber)(e)||t-e>18e5})(s);e.session={rnd:a,new:l,...void 0!==i&&{vwSmplg:i},...void 0!==o&&{vwSmplgNxt:o},...void 0!==s&&{lastActivityTime:s},...void 0!==d&&{id:d},...void 0!==r&&{testName:r},...void 0!==g&&{testVersion:g},...void 0!==u&&{initiator:u}},"snippet"!==u&&(l||r)&&(e.session.new=!0,e.session.id=(0,c.generateUUID)(),e.session.rnd=Math.random(),delete e.session.testName,delete e.session.testVersion),N.getAdagioNs().queue.push({action:"session",ts:Date.now(),data:{session:{...e.session}}})}))},get:function(){return e.session}}}(),x=function(){const e={initialized:!1,data:{}};return{reset:function(){e.initialized=!1,e.data={}},get:function(){const t=(0,l.m)();return e.initialized||(e.data={page_dimensions:T().toString(),viewport_dimensions:W().toString(),user_timestamp:(Math.floor((new Date).getTime()/1e3)-60*(new Date).getTimezoneOffset()).toString(),dom_loading:(0,c.getDomLoadingDuration)(t).toString()},e.initialized=!0),{...e.data}}}}(),N={getAdagioNs:function(){return l.x},getSession:function(){return S},getFeatures:function(){return x},getGuard:function(){return y},isAdagioBidder:function(e){return!!e&&(e+o.ZP.aliasRegistry[e]).toLowerCase().includes("adagio")},getSessionFromLocalStorage:function(e){const t={new:!0,rnd:Math.random()},a=JSON.parse(e,(function(e,t){if("_"!==e.charAt(0)||""===e)return t}));return a&&a.session?a.session:t}};const I={name:p,gvlid:617,init:function(e,t){return(0,c.isStr)(e.params?.organizationId)&&(0,c.isStr)(e.params?.site)?(N.getAdagioNs().hasRtd=!0,N.getSession().init(),function(e){const t=new Set(["impressionViewable","slotRenderEnded","slotVisibilityChanged"]),a=new Set(["noad","setHeaderBiddingWinner"]),n=new Set(["adLoaded"]),i=(0,c.getWindowSelf)();Array.isArray(N.getAdagioNs().windows)||(N.getAdagioNs().windows=[]);let o=N.getAdagioNs().windows.find((e=>e.self===i));o||(o={self:i},N.getAdagioNs().windows.push(o));const s=(e,t,a,n,o)=>{try{if(a.adserver===n)return;i[e]=i[e]||{},i[e][t]=i[e][t]||[],o()}catch(e){b(e)}};s("googletag","cmd",i,"gpt",(()=>{i.googletag.cmd.push((()=>{t.forEach((e=>{i.googletag.pubads().addEventListener(e,(t=>{N.getAdagioNs().queue.push({action:"gpt-event",data:{eventName:e,args:t,_window:i},ts:Date.now()})}))})),o.adserver="gpt"}))})),s("sas","cmd",i,"sas",(()=>{i.sas.cmd.push((()=>{a.forEach((e=>{i.sas.events.on(e,(t=>{N.getAdagioNs().queue.push({action:"sas-event",data:{eventName:e,args:t,_window:i},ts:Date.now()})}))})),o.adserver="sas"}))})),s("apntag","anq",i,"ast",(()=>{i.apntag.anq.push((()=>{n.forEach((e=>{i.apntag.onEvent(e,(()=>{N.getAdagioNs().queue.push({action:"ast-event",data:{eventName:e,args:arguments,_window:i},ts:Date.now()})}))})),o.adserver="ast"}))}))}(e),function(e){w.localStorageIsEnabled((t=>{t&&(0,s.B)("https://script.4dex.io/a/latest/adagio.js",p,void 0,void 0,{id:`adagiojs-${(0,c.getUniqueIdentifierStr)()}`,"data-pid":e.params.organizationId})}))}(e),!0):(b("organizationId is required and must be a string."),!1)},getBidRequestData:function(e,t,a){const i=(0,g.Z)(a,"params",{}),{site:o}=e.ortb2Fragments.global,s=N.getFeatures().get(),d={uid:(0,c.generateUUID)(),pageviewId:l.x.pageviewId,features:{...s},session:{...S.get()}};(0,u.N)(o,"ext.data.adg_rtd",d),(e.adUnits||(0,n.R)().adUnits||[]).forEach((e=>{e.ortb2Imp=e.ortb2Imp||{};const t=(0,g.Z)(e,"ortb2Imp");let a=(0,g.Z)(t,"ext.data.divId");a||(a=(0,m.ky)(e.code).divId,(0,u.N)(t,"ext.data.divId",a||e.code));const n=function(e){if(!(0,c.isSafeFrameWindow)()&&!(0,c.canAccessWindowTop)())return"";const t={x:0,y:0};if((0,c.isSafeFrameWindow)()){const{self:e}=(0,c.getSafeframeGeometry)()||{};if(!e)return"";t.x=Math.round(e.t),t.y=Math.round(e.l)}else try{const a=(0,c.getWindowTop)(),n=a.document;let i;if(!0===(0,c.inIframe)()){const t=(0,c.getWindowSelf)();i=A(t.document.getElementById(e),t)}else i=a.document.getElementById(e);if(!i)return"";let o=i.getBoundingClientRect();const s=n.documentElement,d=n.body,r=n.clientTop||d.clientTop||0,g=n.clientLeft||d.clientLeft||0,u=a.pageYOffset||s.scrollTop||d.scrollTop,l=a.pageXOffset||s.scrollLeft||d.scrollLeft,m=a.getComputedStyle(i,null);"none"===m.display&&v("The element is hidden. The slot position cannot be computed."),t.x=Math.round(o.left+l-g),t.y=Math.round(o.top+u-r)}catch(e){return b(e),""}return`${t.x}x${t.y}`}(a);if((0,u.N)(t,"ext.data.adg_rtd.adunit_position",n),!(0,g.Z)(t,"ext.data.placement")){const{placementSource:a=""}=i;switch(a.toLowerCase()){case f:(0,u.N)(t,"ext.data.placement",e.code);break;case h:(0,u.N)(t,"ext.data.placement",(0,g.Z)(t,"ext.gpid"));break;default:v("`ortb2Imp.ext.data.placement` is missing and `params.definePlacement` is not set in the config.")}}const s=e.bids.find((e=>N.isAdagioBidder(e.bidder)));if(s){let e=!1;!(0,g.Z)(o,"ext.data.pagetype")&&s.params.pagetype&&((0,u.N)(o,"ext.data.pagetype",s.params.pagetype),e=!0),!(0,g.Z)(o,"ext.data.category")&&s.params.category&&((0,u.N)(o,"ext.data.category",s.params.category),e=!0);let a=!1;(0,g.Z)(t,"ext.data.placement")||s.params.placement&&((0,u.N)(t,"ext.data.placement",s.params.placement),a=!0),e&&v("`pagetype` and `category` must be defined in the FPD `ortb2.site.ext.data` object. Relying on `adUnits[].bids.adagio.params` is deprecated."),a&&v("`placement` must be defined in the FPD `adUnits[].ortb2Imp.ext.data` object. Relying on `adUnits[].bids.adagio.params` is deprecated.")}})),t()},onBidRequestEvent:function(e,t,a){setTimeout((()=>{e.bids.forEach((e=>{const a=(0,g.Z)(e,"ortb2.site.ext.data.adg_rtd.uid");if(!a)return void b("The `uid` is required to store the request in the ADAGIO namespace.");const i=`${e.adUnitCode}-${a}`;N.getGuard().has(i)||(N.getGuard().add(i),function(e,t){try{const{bidder:a,adUnitCode:i,mediaTypes:o,params:s,auctionId:d,bidderRequestsCount:r,ortb2:c,ortb2Imp:u}=e,{organizationId:l,site:m}=t.params,p=(0,g.Z)(c,"site.ext.data",{}),f={bidder:a,adUnitCode:i,mediaTypes:o,params:s,auctionId:d,bidderRequestsCount:r,ortb2:p,ortb2Imp:(0,g.Z)(u,"ext.data",{}),localPbjs:"asc",localPbjsRef:(0,n.R)(),organizationId:l,site:m};N.getAdagioNs().queue.push({action:"store",ts:Date.now(),data:f})}catch(e){b(e)}}(e,t))}))}),1)}};function A(e,t){try{if((0,c.getWindowTop)()===t)return e.getAttribute("id")||e.setAttribute("id",`adg-${(0,c.getUniqueIdentifierStr)()}`),e;{const a=t.frameElement,n=a.getBoundingClientRect(),i=e.getBoundingClientRect();return n.width===i.width&&n.height===i.height&&A(a,t.parent)}}catch(e){return v(e),!1}}function T(){if((0,c.isSafeFrameWindow)()||!(0,c.canAccessWindowTop)())return"";const e=(0,c.getWindowTop)(),t=e.document.querySelector("body");if(!t)return"";const a=e.document.documentElement;return`${Math.max(t.scrollWidth,t.offsetWidth,a.clientWidth,a.scrollWidth,a.offsetWidth)}x${Math.max(t.scrollHeight,t.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight)}`}function W(){if(!(0,c.isSafeFrameWindow)()&&!(0,c.canAccessWindowTop)())return"";const e={w:0,h:0};if((0,c.isSafeFrameWindow)()){const{win:t}=(0,c.getSafeframeGeometry)()||{};if(!t)return"";e.w=Math.round(t.w),e.h=Math.round(t.h)}else{const t=(0,c.getWindowTop)();e.w=t.innerWidth,e.h=t.innerHeight}return`${e.w}x${e.h}`}(0,d.Bx)("realTimeData",I),(0,n.z)("adagioRtdProvider")}},e=>{e.O(0,[9703,4409,9270],(()=>{return t=4453,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[5144],{2561:(e,t,o)=>{var i=o(8640),n=o(5212),a=o(7746);const s=o(4740),r="adhesion",d={closeButton:"true",position:"footer",bottomPosition:"0",topPosition:"0",autoClose:"0",closePermanent:"false"},l={name:r,options:d,bannerPos:"1",initFunc:function(e){if(e&&e.id)return document.body&&document.body!=e.parentNode&&((0,a.logMessage)("__ RichMediaFormat | "+r+" : Moved to body element:",e.id),document.body.appendChild(e)),e.style.display="none",!0},registerListener:function(e,t){if((0,a.logMessage)("__ RichMediaFormat | "+r+" : Register listener ",t),t.isEmpty)return(0,a.logMessage)("__ RichMediaFormat | "+r+" : Response is Empty "),!1;let o=t.slot.getTargetingMap(),i=t.size;if((0,a.logMessage)("__ RichMediaFormat | "+r+" : Event Size is: ",i),1==i[0]&&1==i[1]){let e=[];o[s.targetingPrefix+"_size"]&&o[s.targetingPrefix+"_size"][0]?(e=o[s.targetingPrefix+"_size"][0].split("x"),(0,a.logMessage)("__ RichMediaFormat | "+r+" : Found Prebid size: ",e)):o.amznsz&&o.amznsz[0]&&(e=o.amznsz[0].split("x"),(0,a.logMessage)("__ RichMediaFormat | "+r+" : Found Amazon size: ",e)),e[0]&&e[1]?(i=[e[0],e[1]],(0,a.logMessage)("__ RichMediaFormat | "+r+" : Using size: ",i)):(0,a.logMessage)("__ RichMediaFormat | "+r+" : Cannot detect any size ",e)}if(1==i[0]&&1==i[1])(0,a.logError)("__ RichMediaFormat | "+r+" : Error : Cannot detect the size of the adunit ",e.dataset.aaAdunit,e.id);else try{!function(e,t){let o=(0,a.deepClone)(d),i=(0,a.safeJSONParse)(e.dataset.aaRichMediaFormat);if(!i.type)return(0,a.logError)("__ RichMediaFormat | "+r+" : Error, type is not set"),!1;if(i.type!=r)return(0,a.logError)("__ RichMediaFormat | "+r+" : Error, type not the same as RichMedia Name"),!1;i.options&&Object.keys(i.options).forEach((e=>{o[e]=i.options[e],(0,a.logMessage)("__ RichMediaFormat | "+r+" : Setting "+e+" to value:",o[e])}));(0,a.logMessage)("__ RichMediaFormat | "+r+" : Rendering ",r,e,t,o);let n=window.screen.width||window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth,s=t[0],l=t[1];if(e.style.marginLeft="0",e.style.paddingLeft="0",e.style.width=s+"px",e.style.height=l+"px",e.style.position="fixed",e.style.left=(n-s)/2+"px",e.style.zIndex="2147483640","header"==o.position?e.style.top=o.topPosition:e.style.bottom=o.bottomPosition,e.style.display="","true"==o.closeButton){var c=window.document.createElement("a");c.innerHTML="X",c.onclick=function(){e.style.display="none",e.children[1].style.display="none",e.children[1].innerHTML="",(0,a.logMessage)("__ RichMediaFormat | "+r+" : Closing adunit "),o.closePermanent&&"true"==o.closePermanent&&((0,a.logMessage)("__ RichMediaFormat | "+r+" : Closing permanent, destroying adunit"),asc.destroy([e]))},c.border="0",c.style.cssText="position:absolute; right:-1px; top:-8px; color:#fff; cursor: pointer; text-decoration:none;text-shadow:0 0 3px #000, 0 0 3px #000, 0 0 3px #000, 0 0 3px #000; font-size:14px; padding:4px; display:block;z-index:2147483646;",e.appendChild(c)}o.autoClose=parseInt(o.autoClose),o.autoClose>0&&setTimeout((()=>{e.style.display="none",e.children[1].style.display="none",e.children[1].innerHTML="",(0,a.logMessage)("__ RichMediaFormat | "+r+" : Auto-Closing adunit ")}),1e3*o.autoClose)}(e,i)}catch(e){(0,a.logError)("__ RichMediaFormat | "+r+" : Error: ",e)}return!0}};n.Z.addFormat(l),(0,i.z)("adhesionRichMediaFormatAdapter")},5212:(e,t,o)=>{o.d(t,{Z:()=>a});let i={},n=[];i.addFormat=function(e){n.push(e)},i.getFormats=function(){return n},i.getFormatsNames=function(){return n.map((e=>e.name))},i.getFormat=function(e){let t={};return n.forEach((o=>{o.name==e&&(t=o)})),t};const a=i}},e=>{e.O(0,[9270],(()=>{return t=2561,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[7343],{7579:(e,t,n)=>{var i=n(8640),r=n(265),a=n(7746),o=n(4699),s=n(3193),c=n(4614),d=n(4679),p=n(59);const u="USD",l={image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1},cta:{required:!1}},m={code:"adyoulike",gvlid:259,supportedMediaTypes:[d.Mk,d.B5,d.pX],aliases:["ayl"],isBidRequestValid:function(e){const t=b(I(e)),n=t.width>0&&t.height>0;return e.params&&e.params.placement&&(n||e.mediaTypes&&e.mediaTypes.native)},buildRequests:function(e,t){e=(0,p.lY)(e);let n,i=!1;const a={Version:"1.0",Bids:e.reduce(((e,t)=>{let a=function(e){if((0,r.Z)(e,"mediaTypes.banner"))return d.Mk;if((0,r.Z)(e,"mediaTypes.video"))return d.pX;if((0,r.Z)(e,"mediaTypes.native"))return d.B5}(t),o=I(t),s=b(o);if(e[t.bidId]={},e[t.bidId].PlacementID=t.params.placement,e[t.bidId].TransactionID=t.ortb2Imp?.ext?.tid,e[t.bidId].Width=s.width,e[t.bidId].Height=s.height,e[t.bidId].AvailableSizes=o.join(","),"function"==typeof t.getFloor&&(e[t.bidId].Pricing=function(e,t,n){const i=e.getFloor({currency:u,mediaType:n,size:[t.width,t.height]});if(!isNaN(i.floor)&&i.currency===u)return i.floor}(t,s,a)),t.schain&&(e[t.bidId].SChain=t.schain),!n&&t.userIdAsEids&&t.userIdAsEids.length&&(n=t.userIdAsEids),a===d.B5){let n=t.mediaTypes.native;"image"===n.type&&(n=Object.assign({},l,n)),n.clickUrl={required:!0},e[t.bidId].Native=n}if(a===d.pX){i=!0,e[t.bidId].Video=t.mediaTypes.video;const n=t.mediaTypes.video.playerSize;Array.isArray(n)&&!Array.isArray(n[0])&&(e[t.bidId].Video.playerSize=[n])}return e}),{}),PageRefreshed:g()};t.gdprConsent&&(a.gdprConsent={consentString:t.gdprConsent.consentString,consentRequired:"boolean"==typeof t.gdprConsent.gdprApplies?t.gdprConsent.gdprApplies:null}),t.uspConsent&&(a.uspConsent=t.uspConsent),t.ortb2&&(a.ortb2=t.ortb2),n&&(a.eids=n),a.pbjs_version="9.6.0";const o=JSON.stringify(a);return{method:"POST",url:h(e,t,i),data:o,options:{withCredentials:!0}}},interpretResponse:function(e,t){const n=[];var i={};if(!e||!e.body)return n;try{i=JSON.parse(t.data).Bids}catch(e){}return e.body.forEach((e=>{const t=function(e,t){if(!e||!e.Ad&&!e.Native&&!e.Vast)return;const n=t&&t[e.BidID];n&&(e.Width&&"0"!==e.Width||(e.Width=n.Width),e.Height&&"0"!==e.Height||(e.Height=n.Height));const i={requestId:e.BidID,ttl:3600,creativeId:e.CreativeID,cpm:e.Price,netRevenue:!0,currency:u,meta:e.Meta||{advertiserDomains:[]}},a=e.Vast;a?(i.width=e.Width,i.height=e.Height,i.vastXml=window.atob(a),i.mediaType="video"):n.Native?(i.native=function(e,t){if("object"==typeof e.Native)return e.Native;const n={};var i={},a={};if("string"==typeof e.Ad){i=JSON.parse(e.Ad.match(/\/\*PREBID\*\/(.*)\/\*PREBID\*\//)[1]),a=i.Content.Preview.Text;var o=i.TrackingPrefix+"/pixel?event_kind=IMPRESSION&attempt="+i.Attempt,s=i.TrackingPrefix+"/pixel?event_kind=INSERTION&attempt="+i.Attempt;i.Campaign&&(o+="&campaign="+i.Campaign,s+="&campaign="+i.Campaign),n.clickUrl=i.TrackingPrefix+"/ar?event_kind=CLICK&attempt="+i.Attempt+"&campaign="+i.Campaign+"&url="+encodeURIComponent(i.Content.Landing.Url),i.OnEvents?(n.clickTrackers=C(i.OnEvents.CLICK),n.impressionTrackers=C(i.OnEvents.IMPRESSION),n.javascriptTrackers=C(i.OnEvents.IMPRESSION,!0)):n.impressionTrackers=[],n.impressionTrackers.push(o,s)}return Object.keys(t).map((function(o,s){switch(o){case"title":n[o]=a.TITLE;break;case"body":n[o]=a.DESCRIPTION;break;case"cta":n[o]=a.CALLTOACTION;break;case"sponsoredBy":n[o]=i.Content.Preview.Sponsor.Name;break;case"image":const s=t.image.sizes||[];s.length||(s[0]=e.Width||300,s[1]=e.Height||250);const c=v(i,(0,r.Z)(i,"Content.Preview.Thumbnail.Image"),s[0],s[1]);c&&(n[o]={url:c,width:s[0],height:s[1]});break;case"icon":const d=t.icon.sizes||[];d.length||(d[0]=50,d[1]=50);const p=v(i,(0,r.Z)(i,"Content.Preview.Sponsor.Logo.Resource"),d[0],d[1]);p&&(n[o]={url:p,width:d[0],height:d[1]});break;case"privacyIcon":n[o]=v(i,(0,r.Z)(i,"Content.Preview.Credit.Logo.Resource"),25,25);break;case"privacyLink":n[o]=(0,r.Z)(i,"Content.Preview.Credit.Url")}})),n}(e,n.Native),i.mediaType="native"):(i.width=e.Width,i.height=e.Height,i.ad=e.Ad);return i}(e,i);t&&n.push(t)})),n},getUserSyncs:function(e,t,n,i,r){if(!e.iframeEnabled)return[];let a="";return n&&(a+="&gdpr="+(n.gdprApplies?1:0),a+="&gdpr_consent="+encodeURIComponent(n.consentString||"")),!0===s.vc.getConfig("coppa")&&(a+="&coppa=1"),i&&(a+="&us_privacy="+encodeURIComponent(i)),r?.gppString&&r?.applicableSections?.length&&(a+="&gpp="+encodeURIComponent(r.gppString),a+="&gpp_sid="+encodeURIComponent(r?.applicableSections?.join(","))),[{type:"iframe",url:`https://visitor.omnitagjs.com/visitor/isync?uid=19340f4f097d16f41f34fc0274981ca4${a}`}]}};function g(){try{if(performance&&performance.navigation)return performance.navigation.type===performance.navigation.TYPE_RELOAD}catch(e){}return!1}function h(e,t,n){let i=function(e){let t=(0,c.sE)(e,(e=>e.params.DC));return t?"-"+t.params.DC:""}(e);const r=n?"/hb-api/prebid-video/v1":"/hb-api/prebid/v1";return(0,a.buildUrl)({protocol:"https",host:`hb-api${i}.omnitagjs.com`,pathname:r,search:f(t)})}function f(e){const t={};if(e){const n=e.refererInfo;n&&(n.location&&(t.RefererUrl=encodeURIComponent(n.location),n.reachedTop||(t.SafeFrame=!0)),t.PageUrl=encodeURIComponent(n.topmostLocation),t.PageReferrer=encodeURIComponent(n.location));const i=e.ortb2?.site;i&&(t.PageUrl=encodeURIComponent(i.page||n?.topmostLocation),t.PageReferrer=encodeURIComponent(i.ref||n?.location))}const n=e?.refererInfo?.canonicalUrl;return n&&(t.CanonicalUrl=encodeURIComponent(n)),t}function I(e){let t=e.sizes||[];return e.mediaTypes&&e.mediaTypes.banner&&(t=e.mediaTypes.banner.sizes||[]),e.params&&Array.isArray(e.params.size)&&(t=e.params.size,Array.isArray(t[0])||(t=[t])),(0,a.parseSizesInput)(t)}function b(e){const t={},n=e[0];if("string"!=typeof n)return t;const i=n.toUpperCase().split("X"),r=parseInt(i[0],10);r&&(t.width=r);const a=parseInt(i[1],10);return a&&(t.height=a),t}function y(e){return e?"https://blobs.omnitagjs.com/blobs/"+e.substr(16,2)+"/"+e.substr(16)+"/"+e:""}function v(e,t,n,i){let r="";if(t&&t.Kind)switch(t.Kind){case"INTERNAL":r=y(t.Data.Internal.BlobReference.Uid);break;case"EXTERNAL":const a=e.DynamicPrefix;let o=t.Data.External.Url;if(o=o.replace(/\[height\]/i,""+i),o=o.replace(/\[width\]/i,""+n),o.indexOf(a)>=0){const e=/.*url=([^&]*)/gm.exec(o);r=e?e[1]:"",r||(r=y(/.*key=([^&]*)/gm.exec(o)[1]))}else r=o}return r}function C(e,t){const n=[];return e?(e.map(((e,i)=>{(t&&"JAVASCRIPT_URL"===e.Kind||!t&&"PIXEL_URL"===e.Kind)&&n.push(e.Url)})),n):n}(0,o.dX)(m),(0,i.z)("adyoulikeBidAdapter")}},e=>{e.O(0,[9270],(()=>{return t=7579,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[3864],{6319:(e,r,t)=>{var a=t(8640),s=t(7746),i=t(265),n=t(5706),o=t(3193),d=t(4699),p=t(4679),c=t(4614),l=t(154),u=t(5164),m=t(5975),_=t(7554),f=t(59),g=t(4292),b=t(9050),y=t(7374),v=t(5370),h=t(6296);const k="appnexus",x="https://ib.adnxs.com/ut/v3/prebid",w="https://ib.adnxs-simple.com/ut/v3/prebid",C=["id","minduration","maxduration","skippable","playback_method","frameworks","context","skipoffset"],I=["minduration","maxduration","skip","skipafter","playbackmethod","api","startdelay","placement","plcmt"],E=["age","externalUid","external_uid","segments","gender","dnt","language"],O=["geo","device_id"],T=["enabled","dongle","member_id","debug_timeout"],A={apn_debug_dongle:"dongle",apn_debug_member_id:"member_id",apn_debug_timeout:"debug_timeout"},S={playback_method:{unknown:0,auto_play_sound_on:1,auto_play_sound_off:2,click_to_play:3,mouse_over:4,auto_play_sound_unknown:5},context:{unknown:0,pre_roll:1,mid_roll:2,post_roll:3,outstream:4,"in-banner":5,"in-feed":6,interstitial:7,accompanying_content_pre_roll:8,accompanying_content_mid_roll:9,accompanying_content_post_roll:10}},j={body:"description",body2:"desc2",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0}},icon:{serverName:"icon",requiredParams:{required:!0}},sponsoredBy:"sponsored_by",privacyLink:"privacy_link",salePrice:"saleprice",displayUrl:"displayurl"},q="<script",U=/\/\/cdn\.adnxs\.com\/v|\/\/cdn\.adnxs\-simple\.com\/v/,N="trk.js",R=(0,u.df)({bidderCode:k}),P=new Map([[1,"Mobile/Tablet - General"],[2,"Personal Computer"],[3,"Connected TV"],[4,"Phone"],[5,"Tablet"],[6,"Connected Device"],[7,"Set Top Box"],[8,"OOH Device"]]),B={code:k,gvlid:32,aliases:y.UW,supportedMediaTypes:[p.Mk,p.pX,p.B5],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.placement_id||e.params.member&&(e.params.invCode||e.params.inv_code))},buildRequests:function(e,r){const t=(e=(0,f.lY)(e)).map(M),a=(0,c.sE)(e,D);let i={};!0===o.vc.getConfig("coppa")&&(i={coppa:!0}),a&&Object.keys(a.params.user).filter((e=>(0,c.q9)(E,e))).forEach((e=>{let r=(0,y.G2)(e);if("segments"===e&&(0,s.isArray)(a.params.user[e])){let t=[];a.params.user[e].forEach((e=>{(0,s.isNumber)(e)?t.push({id:e}):(0,s.isPlainObject)(e)&&t.push(e)})),i[r]=t}else"segments"!==e&&(i[r]=a.params.user[e])}));const n=(0,c.sE)(e,X);let d;n&&n.params&&n.params.app&&(d={},Object.keys(n.params.app).filter((e=>(0,c.q9)(O,e))).forEach((e=>d[e]=n.params.app[e])));const p=(0,c.sE)(e,$);let l;p&&p.params&&n.params.app&&n.params.app.id&&(l={appid:p.params.app.id});let u={},m={};const g=R.getCookie("apn_prebid_debug")||null;if(g)try{u=JSON.parse(g)}catch(e){(0,s.logError)("AppNexus Debug Auction Cookie Error:\n\n"+e)}else{Object.keys(A).forEach((e=>{let r=(0,s.getParameterByName)(e);(0,s.isStr)(r)&&""!==r&&(u[A[e]]=r,u.enabled=!0)})),u=(0,v.u)({member_id:"number",debug_timeout:"number"},u);const r=(0,c.sE)(e,L);r&&r.debug&&(u=r.debug)}u&&u.enabled&&Object.keys(u).filter((e=>(0,c.q9)(T,e))).forEach((e=>{m[e]=u[e]}));const k=(0,c.sE)(e,Z),C=k?parseInt(k.params.member,10):0,I=e[0].schain,S=(0,c.sE)(e,H),j={tags:[...t],user:i,sdk:{source:"pbjs",version:"9.6.0"},schain:I};S&&(j.iab_support={omidpn:"Appnexus",omidpv:"9.6.0"}),C>0&&(j.member_id=C),n&&(j.device=d),p&&(j.app=l),r?.ortb2?.device&&(j.device=j.device||{},(0,s.mergeDeep)(j.device,function(e){const r={useragent:e.ua,devicetype:P.get(e.devicetype),make:e.make,model:e.model,os:e.os,os_version:e.osv,w:e.w,h:e.h,ppi:e.ppi,pxratio:e.pxratio};return Object.keys(r).reduce(((e,t)=>(r[t]&&(e[t]=r[t]),e)),{})}(r.ortb2.device)));let q=(0,s.deepClone)(r&&r.ortb2),U=(0,s.deepClone)(o.vc.getConfig("appnexusAuctionKeywords"))||{},N=(0,b.bn)(q,U);if(N.length>0&&(j.keywords=N),o.vc.getConfig("adpod.brandCategoryExclusion")&&(j.brand_category_uniqueness=!0),m.enabled&&(j.debug=m,(0,s.logInfo)("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(m,null,4))),r&&r.gdprConsent&&(j.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies},r.gdprConsent.addtlConsent&&-1!==r.gdprConsent.addtlConsent.indexOf("~"))){let e=r.gdprConsent.addtlConsent,t=e.substring(e.indexOf("~")+1);j.gdpr_consent.addtl_consent=t.split(".").map((e=>parseInt(e,10)))}if(r&&r.uspConsent&&(j.us_privacy=r.uspConsent),r?.gppConsent?j.privacy={gpp:r.gppConsent.gppString,gpp_sid:r.gppConsent.applicableSections}:r?.ortb2?.regs?.gpp&&(j.privacy={gpp:r.ortb2.regs.gpp,gpp_sid:r.ortb2.regs.gpp_sid}),r&&r.refererInfo){let e={rd_ref:encodeURIComponent(r.refererInfo.topmostLocation),rd_top:r.refererInfo.reachedTop,rd_ifs:r.refererInfo.numIframes,rd_stk:r.refererInfo.stack.map((e=>encodeURIComponent(e))).join(",")},t=r.refererInfo.canonicalUrl;(0,s.isStr)(t)&&""!==t&&(e.rd_can=t),j.referrer_detection=e}(0,c.sE)(e,V)&&e.filter(V).forEach((e=>{const r=function(e,r){const{durationRangeSec:t,requireExactDuration:a}=r.mediaTypes.video,s=function(e){const{adPodDurationSec:r,durationRangeSec:t,requireExactDuration:a}=e,s=Math.min(...t),i=Math.floor(r/s);return a?Math.max(i,t.length):i}(r.mediaTypes.video),i=Math.max(...t),n=e.filter((e=>e.uuid===r.bidId));let o=(0,y.hl)(...n,s);if(a){const e=Math.ceil(s/t.length),r=(0,h.y)(o,e);t.forEach(((e,t)=>{r[t].map((r=>{J(r,"minduration",e),J(r,"maxduration",e)}))}))}else o.map((e=>J(e,"maxduration",i)));return o}(t,e),a=j.tags.filter((r=>r.uuid!==e.bidId));j.tags=[...a,...r]}));if(e[0].userId){let r=[];e[0].userIdAsEids.forEach((e=>{!e||!e.uids||e.uids.length<1||e.uids.forEach((t=>{let a={source:e.source,id:t.id};"adserver.org"==e.source?a.rti_partner="TDID":"uidapi.com"==e.source&&(a.rti_partner="UID2"),r.push(a)}))})),r.length&&(j.eids=r)}if(r?.ortb2?.regs?.ext?.dsa){const e=r.ortb2.regs.ext.dsa,t={};if(["dsarequired","pubrender","datatopub"].forEach((r=>{(0,s.isNumber)(e[r])&&(t[r]=e[r])})),(0,s.isArray)(e.transparency)&&e.transparency.every((e=>(0,s.isPlainObject)(e)))){const r=[];e.transparency.forEach((e=>{(0,s.isStr)(e.domain)&&""!=e.domain&&(0,s.isArray)(e.dsaparams)&&e.dsaparams.every((e=>(0,s.isNumber)(e)))&&r.push(e)})),r.length>0&&(t.transparency=r)}(0,s.isEmpty)(t)||(j.dsa=t)}t[0].publisher_id&&(j.publisher_id=t[0].publisher_id);const B=function(e,r){let t=[],a={withCredentials:!0},i=x;(0,_.h)(r?.gdprConsent)||(i=w);"TRUE"!==(0,s.getParameterByName)("apn_test").toUpperCase()&&!0!==o.vc.getConfig("apn_test")||(a.customHeaders={"X-Is-Test":1});if(e.tags.length>15){const n=(0,s.deepClone)(e);(0,h.y)(e.tags,15).forEach((e=>{n.tags=e;const s=JSON.stringify(n);t.push({method:"POST",url:i,data:s,bidderRequest:r,options:a})}))}else{const s=JSON.stringify(e);t={method:"POST",url:i,data:s,bidderRequest:r,options:a}}return t}(j,r);return B},interpretResponse:function(e,r){let{bidderRequest:t}=r;e=e.body;const a=[];if(!e||e.error){let r=`in response for ${t.bidderCode} adapter`;return e&&e.error&&(r+=`: ${e.error}`),(0,s.logError)(r),a}if(e.tags&&e.tags.forEach((e=>{const r=(o=e)&&o.ads&&o.ads.length&&(0,c.sE)(o.ads,(e=>e.rtb));var o;if(r){if((!0===m.S.get(t.bidderCode,"allowZeroCpmBids")?r.cpm>=0:r.cpm>0)&&(0,c.q9)(this.supportedMediaTypes,r.ad_type)){const o=function(e,r,t){const a=(0,s.getBidRequest)(e.uuid,[t]),o=(0,s.getUniqueIdentifierStr)(),d={adId:o,requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:r.publisher_currency_codename||"USD",netRevenue:!0,ttl:300,adUnitCode:a.adUnitCode,appnexus:{buyerMemberId:r.buyer_member_id,dealPriority:r.deal_priority,dealCode:r.deal_code}};r.adomain&&(d.meta=Object.assign({},d.meta,{advertiserDomains:[r.adomain]}));r.advertiser_id&&(d.meta=Object.assign({},d.meta,{advertiserId:r.advertiser_id}));r.dsa&&(d.meta=Object.assign({},d.meta,{dsa:r.dsa}));function u(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}r.buyer_member_id&&(d.meta=Object.assign({},d.meta,{dchain:u(r)}));r.brand_id&&(d.meta=Object.assign({},d.meta,{brandId:r.brand_id}));if(r.rtb.video){Object.assign(d,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastImpUrl:r.notify_url,ttl:3600});switch((0,i.Z)(a,"mediaTypes.video.context")){case p.Oh:const a=g.m[r.brand_category_id]?g.m[r.brand_category_id]:null;d.meta=Object.assign({},d.meta,{primaryCatId:a});const o=r.deal_priority;d.video={context:p.Oh,durationSeconds:Math.floor(r.rtb.video.duration_ms/1e3),dealTier:o},d.vastUrl=r.rtb.video.asset_url;break;case l.gZ:if(d.adResponse=e,d.adResponse.ad=d.adResponse.ads[0],d.adResponse.ad.video=d.adResponse.ad.rtb.video,d.vastXml=r.rtb.video.content,r.renderer_url){const a=(0,c.sE)(t.bids,(r=>r.bidId===e.uuid));let o=(0,i.Z)(a,"mediaTypes.video.renderer.options");o||(o=(0,i.Z)(a,"renderer.options")),d.renderer=function(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=n.Th.install({id:r.renderer_id,url:r.renderer_url,config:t,loaded:!1,adUnitCode:e});try{a.setRender(W)}catch(e){(0,s.logWarn)("Prebid Error calling setRender on renderer",e)}return a.setEventHandlers({impression:()=>(0,s.logMessage)("AppNexus outstream video impression event"),loaded:()=>(0,s.logMessage)("AppNexus outstream video loaded event"),ended:()=>{(0,s.logMessage)("AppNexus outstream renderer video event"),document.querySelector(`#${e}`).style.display="none"}}),a}(d.adUnitCode,r,o)}break;case l.LD:d.vastUrl=r.notify_url+"&redir="+encodeURIComponent(r.rtb.video.asset_url)}}else if(r.rtb[p.B5]){const e=r.rtb[p.B5];let t;if(function(e){if(!e||""===e)return!1;let r=e.match(U),t=null!=r&&r.length>=1,a=e.match(N),s=null!=a&&a.length>=1;return e.startsWith(q)&&s&&t}(r.viewability.config)){let e="pbjs_adid="+o+";pbjs_auc="+a.adUnitCode;t=r.viewability.config.replace("dom_id=%native_dom_id%",e)}let i=e.javascript_trackers;null==i?i=t:(0,s.isStr)(i)?i=[i,t]:i.push(t),d[p.B5]={title:e.title,body:e.desc,body2:e.desc2,cta:e.ctatext,rating:e.rating,sponsoredBy:e.sponsored,privacyLink:e.privacy_link,address:e.address,downloads:e.downloads,likes:e.likes,phone:e.phone,price:e.price,salePrice:e.saleprice,clickUrl:e.link.url,displayUrl:e.displayurl,clickTrackers:e.link.click_trackers,impressionTrackers:e.impression_trackers,video:e.video,javascriptTrackers:i},e.main_img&&(d.native.image={url:e.main_img.url,height:e.main_img.height,width:e.main_img.width}),e.icon&&(d.native.icon={url:e.icon.url,height:e.icon.height,width:e.icon.width})}else{Object.assign(d,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{if(r.rtb.trackers)for(let e=0;e<r.rtb.trackers[0].impression_urls.length;e++){const t=r.rtb.trackers[0].impression_urls[e],a=(0,s.createTrackPixelHtml)(t);d.ad+=a}}catch(e){(0,s.logError)("Error appending tracking pixel",e)}}return d}(e,r,t);o.mediaType=function(e){const r=e.ad_type;return r===p.pX?p.pX:r===p.B5?p.B5:p.Mk}(r),a.push(o)}}})),e.debug&&e.debug.debug_info){let r="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;r=r.replace(/(<td>|<th>)/gm,"\t").replace(/(<\/td>|<\/th>)/gm,"\n").replace(/^<br>/gm,"").replace(/(<br>\n|<br>)/gm,"\n").replace(/<h1>(.*)<\/h1>/gm,"\n\n===== $1 =====\n\n").replace(/<h[2-6]>(.*)<\/h[2-6]>/gm,"\n\n*** $1 ***\n\n").replace(/(<([^>]+)>)/gim,""),(0,s.logMessage)("https://console.appnexus.com/docs/understanding-the-debug-auction"),(0,s.logMessage)(r)}return a},getUserSyncs:function(e,r,t,a,s){if(e.iframeEnabled&&(0,_.h)(t))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}]}};function M(e){const r={};Object.keys(e.params).forEach((r=>{let t=(0,y.G2)(r);t!==r&&(e.params[t]=e.params[r],delete e.params[r])})),r.sizes=z(e.sizes),r.primary_size=r.sizes[0],r.ad_types=[],r.uuid=e.bidId,e.params.placement_id?r.id=parseInt(e.params.placement_id,10):r.code=e.params.inv_code;const t=(0,s.getParameterByName)("ast_override_div");if((0,s.isStr)(t)&&""!==t){const a=t.split(",").find((r=>r.startsWith(`${e.adUnitCode}:`)));if(a){const e=a.split(":")[1];e&&(r.force_creative_id=parseInt(e,10))}}r.allow_smaller_sizes=e.params.allow_smaller_sizes||!1,r.use_pmt_rule="boolean"==typeof e.params.use_payment_rule?e.params.use_payment_rule:"boolean"==typeof e.params.use_pmt_rule&&e.params.use_pmt_rule,r.prebid=!0,r.disable_psa=!0;let a=function(e){if(!(0,s.isFn)(e.getFloor))return e.params.reserve?e.params.reserve:null;let r=e.getFloor({currency:"USD",mediaType:"*",size:"*"});if((0,s.isPlainObject)(r)&&!isNaN(r.floor)&&"USD"===r.currency)return r.floor;return null}(e);if(a&&(r.reserve=a),e.params.position)r.position={above:1,below:2}[e.params.position]||0;else{let t=(0,i.Z)(e,"mediaTypes.banner.pos")||(0,i.Z)(e,"mediaTypes.video.pos");0!==t&&1!==t&&3!==t||(r.position=3===t?2:t)}e.params.traffic_source_code&&(r.traffic_source_code=e.params.traffic_source_code),e.params.private_sizes&&(r.private_sizes=z(e.params.private_sizes)),e.params.supply_type&&(r.supply_type=e.params.supply_type),e.params.pub_click&&(r.pubclick=e.params.pub_click),e.params.ext_inv_code&&(r.ext_inv_code=e.params.ext_inv_code),e.params.publisher_id&&(r.publisher_id=parseInt(e.params.publisher_id,10)),e.params.external_imp_id&&(r.external_imp_id=e.params.external_imp_id);const n=(0,b.gw)((0,b.cM)((0,i.Z)(e,"ortb2Imp.ext.data.keywords")),e.params?.keywords);n.length>0&&(r.keywords=n);let o=(0,i.Z)(e,"ortb2Imp.ext.gpid")||(0,i.Z)(e,"ortb2Imp.ext.data.pbadslot");if(o&&(r.gpid=o),(e.mediaType===p.B5||(0,i.Z)(e,`mediaTypes.${p.B5}`))&&(r.ad_types.push(p.B5),0===r.sizes.length&&(r.sizes=z([1,1])),e.nativeParams)){const t=function(e){const r={};return Object.keys(e).forEach((t=>{const a=j[t]&&j[t].serverName||j[t]||t,i=j[t]&&j[t].requiredParams;r[a]=Object.assign({},i,e[t]);if(!(a!==j.image.serverName&&a!==j.icon.serverName)&&r[a].sizes){let e=r[a].sizes;((0,s.isArrayOfNums)(e)||(0,s.isArray)(e)&&e.length>0&&e.every((e=>(0,s.isArrayOfNums)(e))))&&(r[a].sizes=z(r[a].sizes))}a===j.privacyLink&&(r.privacy_supported=!0)})),r}(e.nativeParams);r[p.B5]={layouts:[t]}}{const t=(0,i.Z)(e,`mediaTypes.${p.pX}`),a=(0,i.Z)(e,"mediaTypes.video.context");r.hb_source=t&&"adpod"===a?7:1,(e.mediaType===p.pX||t)&&r.ad_types.push(p.pX),(e.mediaType===p.pX||t&&"outstream"!==a)&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter((e=>(0,c.q9)(C,e))).forEach((t=>{switch(t){case"context":case"playback_method":let a=e.params.video[t];a=(0,s.isArray)(a)?a[0]:a,r.video[t]=S[t][a];break;case"frameworks":break;default:r.video[t]=e.params.video[t]}})),e.params.video.frameworks&&(0,s.isArray)(e.params.video.frameworks)&&(r.video_frameworks=e.params.video.frameworks)),t&&(r.video=r.video||{},Object.keys(t).filter((e=>(0,c.q9)(I,e))).forEach((e=>{switch(e){case"minduration":case"maxduration":"number"!=typeof r.video[e]&&(r.video[e]=t[e]);break;case"skip":"boolean"!=typeof r.video.skippable&&(r.video.skippable=1===t[e]);break;case"skipafter":"number"!=typeof r.video.skipoffset&&(r.video.skippoffset=t[e]);break;case"playbackmethod":if("number"!=typeof r.video.playback_method){let a=t[e];a=(0,s.isArray)(a)?a[0]:a,a>=1&&a<=4&&(r.video.playback_method=a)}break;case"api":if(!r.video_frameworks&&(0,s.isArray)(t[e])){let a=t[e].map((e=>{let r=4===e?5:5===e?4:e;if(r>=1&&r<=5)return r})).filter((e=>e));r.video_frameworks=a}break;case"startdelay":case"plcmt":case"placement":if("number"!=typeof r.video.context){const e=t.plcmt,a=t.placement,s=t.startdelay,i=function(e,r){if(!e)return;if(2===e){if(void 0===r)return;if(0===r)return"accompanying_content_pre_roll";if(-1===r)return"accompanying_content_mid_roll";if(-2===r)return"accompanying_content_post_roll"}else{if(3===e)return"interstitial";if(4===e)return"outstream"}}(e,s)||function(e){if(!e)return;if(2===e)return"in-banner";if(3===e)return"outstream";if(4===e)return"in-feed";if(5===e)return"intersitial"}(a)||function(e){if(!e)return;if(0===e)return"pre_roll";if(-1===e)return"mid_roll";if(-2===e)return"post_roll"}(s);r.video.context=S.context[i]}}}))),e.renderer&&(r.video=Object.assign({},r.video,{custom_renderer_present:!0}))}return e.params.frameworks&&(0,s.isArray)(e.params.frameworks)&&(r.banner_frameworks=e.params.frameworks),(0,i.Z)(e,`mediaTypes.${p.Mk}`)&&r.ad_types.push(p.Mk),0===r.ad_types.length&&delete r.ad_types,r}function z(e){let r=[],t={};if((0,s.isArray)(e)&&2===e.length&&!(0,s.isArray)(e[0]))t.width=parseInt(e[0],10),t.height=parseInt(e[1],10),r.push(t);else if("object"==typeof e)for(let a=0;a<e.length;a++){let s=e[a];t={},t.width=parseInt(s[0],10),t.height=parseInt(s[1],10),r.push(t)}return r}function D(e){return!!e.params.user}function Z(e){return!!parseInt(e.params.member,10)}function X(e){if(e.params)return!!e.params.app}function $(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function L(e){return!!e.debug}function V(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===p.Oh}function H(e){let r=!1;const t=e.params,a=e.params.video;return t.frameworks&&(0,s.isArray)(t.frameworks)&&(r=(0,c.q9)(e.params.frameworks,6)),!r&&a&&a.frameworks&&(0,s.isArray)(a.frameworks)&&(r=(0,c.q9)(e.params.video.frameworks,6)),r}function J(e,r,t){(0,s.isEmpty)(e.video)&&(e.video={}),e.video[r]=t}function W(e,r){!function(e){try{const r=document.getElementById(e).querySelectorAll("div[id^='google_ads']");r[0]&&r[0].style.setProperty("display","none")}catch(e){}}(e.adUnitCode),function(e){try{const r=document.getElementById(e).querySelectorAll("script[id^='sas_script']");r[0].nextSibling&&"iframe"===r[0].nextSibling.localName&&r[0].nextSibling.style.setProperty("display","none")}catch(e){}}(e.adUnitCode),e.renderer.push((()=>{(r?.defaultView||window).ANOutstreamVideo.renderAd({tagId:e.adResponse.tag_id,sizes:[e.getSize().split("x")],targetId:e.adUnitCode,uuid:e.adResponse.uuid,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},F.bind(null,e))}))}function F(e,r,t){e.renderer.handleVideoEvent({id:r,eventName:t})}(0,d.dX)(B),(0,a.z)("appnexusBidAdapter")},7554:(e,r,t)=>{t.d(r,{h:()=>s});var a=t(265);function s(e){return!e?.gdprApplies||!0===(0,a.Z)(e,"vendorData.purpose.consents.1")}}},e=>{e.O(0,[3157,2284,2277,3402,6190,9270],(()=>{return r=6319,e(e.s=r);var r}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[9168],{7523:(e,n,t)=>{var i=t(8640),s=t(7746),o=t(6475),a=t(3193),r=t(4516),c=t(4078),p=t(2712),l=t(8792),g=t(6310),u=t(5935);let d,f,h,m,S=!1;function P(e,n){let{onSuccess:t,onError:i}=n;new l.Z((n=>n(e()))).then(t,(e=>{e instanceof b?i(e.message,...e.args):i("GPP error:",e)}))}class b{constructor(e,n){this.message=e,this.args=null==n?[]:[n]}}class v{apiVersion="1.1";static INST;static get(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.b6;if(null==this.INST){const n=e({apiName:"__gpp",apiArgs:["command","callback","parameter"],mode:p.m1});if(null==n)throw new b("GPP CMP not found");this.INST=new this(n)}return this.INST}#e;#n;#t=[];initialized=!1;constructor(e){this.cmp=e,[this.#e,this.#n]=[0,1].map((e=>n=>{for(;this.#t.length;)this.#t.pop()[e](n)}))}init(e){const n=this.updateWhenReady(e);return this.initialized||(e.gppVersion!==this.apiVersion&&(0,s.logWarn)(`Unrecognized GPP CMP version: ${e.apiVersion}. Continuing using GPP API version ${this.apiVersion}...`),this.initialized=!0,this.cmp({command:"addEventListener",callback:(e,n)=>{null==n||n?"error"===e?.pingData?.cmpStatus?this.#n(new b('CMP status is "error"; please check CMP setup',e)):this.isCMPReady(e?.pingData||{})&&["sectionChange","signalStatus"].includes(e?.eventName)&&this.#e(this.updateConsent(e.pingData)):this.#n(new b("Received error response from CMP",e))}})),n}refresh(){return this.cmp({command:"ping"}).then(this.init.bind(this))}updateConsent(e){return new l.Z((n=>{if(null==e||(0,s.isEmpty)(e))throw new b("Received empty response from CMP",e);const t=w(e);(0,s.logInfo)("Retrieved GPP consent from CMP:",t),n(t)}))}nextUpdate(){return new l.Z(((e,n)=>{this.#t.push([e,n])}))}updateWhenReady(e){return this.isCMPReady(e)?this.updateConsent(e):this.nextUpdate()}isCMPReady(e){return"ready"===e.signalStatus}}const C={iab:function(e){let{onSuccess:n,onError:t}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.b6;P((()=>v.get(i).refresh()),{onSuccess:n,onError:t})},static:function(e){return P((()=>w(h)),e)}};function y(e){let n=!1,t=null;function i(i,s,o){if(null!=t&&clearTimeout(t),n=!0,r.TJ.setConsentData(i),"function"==typeof e){for(var a=arguments.length,c=new Array(a>3?a-3:0),p=3;p<a;p++)c[p-3]=arguments[p];e(s,o,...c)}}if(!C.hasOwnProperty(d))return void i(null,!1,`GPP CMP framework (${d}) is not a supported framework. Aborting consentManagement module and resuming auction.`);const s={onSuccess:e=>i(e,!1),onError:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),s=1;s<n;s++)t[s-1]=arguments[s];i(null,!0,e,...t)}};if(C[d](s),!n){const e=()=>{const e=e=>{i(e,!1,"GPP CMP did not load, continuing auction...")};P((()=>w(m)),{onSuccess:e,onError:()=>e(A())})};0===f?e():t=setTimeout(e,f)}}const M=(0,u.p)("gpp",(()=>m),y);function w(e){if(null!=e?.applicableSections&&!Array.isArray(e.applicableSections)||null!=e?.gppString&&!(0,s.isStr)(e.gppString)||null!=e?.parsedSections&&!(0,s.isPlainObject)(e.parsedSections))throw new b("CMP returned unexpected value during lookup process.",e);return["usnatv1","uscav1"].forEach((n=>{e?.parsedSections?.[n]&&(0,s.logWarn)(`Received invalid section from cmp: '${n}'. Some functionality may not work as expected`,e)})),A(e)}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m={gppString:e?.gppString,applicableSections:e?.applicableSections||[],parsedSections:e?.parsedSections||{},gppData:e},r.TJ.setConsentData(e),m}a.vc.getConfig("consentManagement",(e=>function(e){(e=e&&e.gpp)&&"object"==typeof e?((0,s.isStr)(e.cmpApi)?d=e.cmpApi:(d="iab",(0,s.logInfo)("consentManagement.gpp config did not specify cmp. Using system default setting (iab).")),(0,s.isNumber)(e.timeout)?f=e.timeout:(f=1e4,(0,s.logInfo)("consentManagement.gpp config did not specify timeout. Using system default setting (10000).")),"static"===d&&((0,s.isPlainObject)(e.consentData)?(h=e.consentData,f=0):(0,s.logError)("consentManagement.gpp config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),(0,s.logInfo)("consentManagement.gpp module has been activated..."),S||((0,i.R)().requestBids.before(M,50),g.Ww.before(((e,n)=>e(Object.assign({gppConsent:r.TJ.getConsentData()},n))))),S=!0,r.TJ.enable(),y()):(0,s.logWarn)("consentManagement.gpp config not defined, exiting consent manager module")}(e.consentManagement))),c.S.before((function(e,n){return e(n.then((e=>{const n=r.TJ.getConsentData();return n&&(Array.isArray(n.applicableSections)&&(0,o.N)(e,"regs.gpp_sid",n.applicableSections),(0,o.N)(e,"regs.gpp",n.gppString)),e})))})),(0,i.z)("consentManagementGpp")}},e=>{e.O(0,[7968,1266,9270],(()=>{return n=7523,e(e.s=n);var n}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[9676],{4351:(e,n,t)=>{var o=t(8640),r=t(7746),s=t(6475),i=t(3193),a=t(4516),c=t(4614),l=t(6372),u=t(4078),p=t(2712),d=t(5935);let g,f,m,b,C,P,y=!1,v=!1;const S={iab:function(e){let{onSuccess:n,onError:t,onEvent:o}=e;const s=(0,p.b6)({apiName:"__tcfapi",apiVersion:2,apiArgs:["command","version","callback","parameter"]});if(!s)return t("TCF2 CMP not found.");s.isDirect?(0,r.logInfo)("Detected CMP API is directly accessible, calling it now..."):(0,r.logInfo)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now...");s({command:"addEventListener",callback:function(e,s){(0,r.logInfo)("Received a response from CMP",e),s?(o(e),!1!==e.gdprApplies&&"tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus||h(e,{onSuccess:n,onError:t})):t("CMP unable to register callback function. Please check CMP setup.")}})},static:function(e){let{onSuccess:n,onError:t}=e;h(b,{onSuccess:n,onError:t})}};function M(e){let n,t,o=!1,r=null,s=!1;function i(e){null!=r&&clearTimeout(r),o||null==e||(0===e?n():r=setTimeout(n,e))}function l(n,t,r){if(i(null),o=!0,a.rp.setConsentData(n),"function"==typeof e){for(var s=arguments.length,c=new Array(s>3?s-3:0),l=3;l<s;l++)c[l-3]=arguments[l];e(t,r,...c)}}if(!(0,c.q9)(Object.keys(S),g))return void l(null,!1,`CMP framework (${g}) is not a supported framework. Aborting consentManagement module and resuming auction.`);const u={onSuccess:e=>l(e,!1),onError:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];l(null,!0,e,...t)},onEvent:function(e){t=e,s||(s=!0,null!=C&&i(C))}};n=()=>{const e=e=>{l(e,!1,(s?"Timeout waiting for user action on CMP":"CMP did not load")+", continuing auction...")};h(t,{onSuccess:e,onError:()=>e(w(void 0))})},S[g](u),null!=C&&s||i(f)}const A=(0,d.p)("gdpr",(()=>P),M);function h(e,n){let{onSuccess:t,onError:o}=n;!function(){const n=e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:m,t=e&&e.tcString;return!("boolean"==typeof n&&(!0!==n||t&&(0,r.isStr)(t)))}()?t(w(e)):o("CMP returned unexpected value during lookup process.",e)}function w(e){return P={consentString:e?e.tcString:void 0,vendorData:e||void 0,gdprApplies:e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:m},e&&e.addtlConsent&&(0,r.isStr)(e.addtlConsent)&&(P.addtlConsent=e.addtlConsent),P.apiVersion=2,P}i.vc.getConfig("consentManagement",(e=>function(e){(e=e&&(e.gdpr||e.usp||e.gpp?e.gdpr:e))&&"object"==typeof e?((0,r.isStr)(e.cmpApi)?g=e.cmpApi:(g="iab",(0,r.logInfo)("consentManagement config did not specify cmp. Using system default setting (iab).")),(0,r.isNumber)(e.timeout)?f=e.timeout:(f=1e4,(0,r.logInfo)("consentManagement config did not specify timeout. Using system default setting (10000).")),C=(0,r.isNumber)(e.actionTimeout)?e.actionTimeout:null,m=!0===e.defaultGdprScope,y=!!e.dsaPlatform,(0,r.logInfo)("consentManagement module has been activated..."),"static"===g&&((0,r.isPlainObject)(e.consentData)?(b=e.consentData,null!=b?.getTCData&&(b=b.getTCData),f=0):(0,r.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),v||(0,o.R)().requestBids.before(A,50),v=!0,a.rp.enable(),M()):(0,r.logWarn)("consentManagement (gdpr) config not defined, exiting consent manager")}(e.consentManagement))),u.S.before((function(e,n){return e(n.then((e=>{const n=a.rp.getConsentData();return n&&("boolean"==typeof n.gdprApplies&&(0,s.N)(e,"regs.ext.gdpr",n.gdprApplies?1:0),(0,s.N)(e,"user.ext.consent",n.consentString)),y&&(0,s.N)(e,"regs.ext.dsa.dsarequired",3),e})))})),(0,l.f8)({type:l.Z,name:"gdprAddtlConsent",fn:function(e,n){const t=n.gdprConsent?.addtlConsent;t&&"string"==typeof t&&(0,s.N)(e,"user.ext.ConsentedProvidersSettings.consented_providers",t)}}),(0,o.z)("consentManagementTcf")},6372:(e,n,t)=>{t.d(n,{DZ:()=>s,Px:()=>i,TP:()=>c,YC:()=>a,Z:()=>r,f8:()=>p,fP:()=>d,gm:()=>o,md:()=>l});const o=["request","imp","bidResponse","response"],[r,s,i,a]=o,[c,l]=["default","pbs"],u=new Set(o);const{registerOrtbProcessor:p,getProcessors:d}=function(){const e={};return{registerOrtbProcessor(n){let{type:t,name:r,fn:s,priority:i=0,dialects:a=[c]}=n;if(!u.has(t))throw new Error(`ORTB processor type must be one of: ${o.join(", ")}`);a.forEach((n=>{e.hasOwnProperty(n)||(e[n]={}),e[n].hasOwnProperty(t)||(e[n][t]={}),e[n][t][r]={priority:i,fn:s}}))},getProcessors:n=>e[n]||{}}}()}},e=>{e.O(0,[7968,1266,9270],(()=>{return n=4351,e(e.s=n);var n}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[6406],{241:(e,t,i)=>{var r=i(8640),a=i(6475),n=i(265),o=i(7746),s=i(4699),d=i(4679),p=i(5164),c=i(5102),l=i(7554),u=i(5706),m=i(154),v=i(8928),g=i(919),y=i(97);const f="criteo",b="https://grid-bidder.criteo.com/openrtb_2_5/pbjs/auction/request",h=(0,p.df)({bidderCode:f}),T="Criteo: ",P=(0,y.wm)(),I="https://static.criteo.net/js/ld/publishertag.renderer.js",k="cto_optout",x="cto_bundle",S=(0,g.x)({context:{netRevenue:!0,ttl:60},imp:function(e,t,i){let r=e(t,i);const o=t.params;r.tagid=t.adUnitCode,(0,a.N)(r,"ext",{...t.params.ext,...r.ext,rwdd:r.rwdd,floors:_(t),bidder:{publishersubid:o?.publisherSubId,zoneid:o?.zoneId,uid:o?.uid}}),delete r.rwdd,!i.fledgeEnabled&&r.ext.igs?.ae&&delete r.ext.igs.ae;if(U(t)){const e=t.params.video;void 0!==e&&(0,a.N)(r,"video",{...r.video,skip:r.video.skip||e.skip||0,placement:r.video.placement||e.placement,minduration:r.video.minduration||e.minduration,playbackmethod:r.video.playbackmethod||e.playbackmethod,startdelay:r.video.startdelay||e.startdelay||0}),(0,a.N)(r,"video.ext",{context:t.mediaTypes.video.context,playersizes:R((0,n.Z)(t,"mediaTypes.video.playerSize"),E),plcmt:t.mediaTypes.video.plcmt,poddur:t.mediaTypes.video.adPodDurationSec,rqddurs:t.mediaTypes.video.durationRangeSec})}if(r.native&&void 0!==r.native.request){let e=JSON.parse(r.native.request);e.assets&&(1!==e.assets.length||Object.keys(e.assets[0]).length)||delete e.assets,(0,a.N)(r,"native.request_native",e),delete r.native.request}return r},request:function(e,t,i,r){let n=e(t,i,r);void 0!==r.publisherId&&(void 0!==n.app?(0,a.N)(n,"app.publisher.id",r.publisherId):(0,a.N)(n,"site.publisher.id",r.publisherId));i&&i.gdprConsent&&(0,a.N)(n,"regs.ext.gdprversion",i.gdprConsent.apiVersion);return n=P(n),n},bidResponse:function(e,t,i){i.mediaType=(0,n.Z)(t,"ext.mediatype"),i.mediaType===d.B5&&void 0!==t.adm_native&&(t.adm=t.adm_native,delete t.adm_native);let r=e(t,i);const{bidRequest:o}=i;r.currency=(0,n.Z)(t,"ext.cur"),void 0!==(0,n.Z)(t,"ext.meta")&&(0,a.N)(r,"meta",{...r.meta,...t.ext.meta});void 0!==(0,n.Z)(t,"ext.paf.content_id")&&(0,a.N)(r,"meta.paf.content_id",t.ext.paf.content_id);r.mediaType===d.pX&&(r.vastUrl=t.ext?.displayurl,(0,n.Z)(o,"mediaTypes.video.context")===m.gZ&&(r.renderer=function(e){if(void 0===e.ext?.videoPlayerConfig||void 0===e.ext?.videoPlayerType)return;const t={documentResolver:(e,t,i)=>i??t},i=(t,i)=>{let r={slotid:e.id,vastUrl:e.ext?.displayurl,vastXml:e.adm,documentContext:i},a=e.ext.videoPlayerConfig;window.CriteoOutStream[e.ext.videoPlayerType].play(r,a)},r=u.Th.install({url:I,config:t});return r.setRender(i),r}(t)));return r},response:function(e,t,i,r){let o=e(t,i,r);const s=(0,n.Z)(i,"ext.paf.transmission");return o.bids.forEach((e=>{void 0!==s&&void 0!==(0,n.Z)(e,"meta.paf.content_id")?(0,a.N)(e,"meta.paf.transmission",s):delete e.meta.paf})),o}});const w={code:f,gvlid:91,supportedMediaTypes:[d.Mk,d.pX,d.B5],getUserSyncs:function(e,t,i,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},{gppString:n="",applicableSections:o=[]}=a;const s=(0,c.nH)(),d="criteoPrebidAdapter";if(e.iframeEnabled&&(0,l.h)(i)){const e=[];if(e.push(`origin=${d}`),e.push(`topUrl=${s.domain}`),i&&(i.gdprApplies&&e.push("gdpr="+(1==i.gdprApplies?1:0)),i.consentString&&e.push(`gdpr_consent=${i.consentString}`)),r&&e.push(`us_privacy=${r}`),e.push(`gpp=${n}`),Array.isArray(o))for(const t of o)e.push(`gpp_sid=${t}`);const t=Math.random().toString(),a={bundle:q(x),cw:h.cookiesAreEnabled(),lsw:h.localStorageIsEnabled(),optoutCookie:q(k),origin:d,requestId:t,tld:s.domain,topUrl:s.domain,version:"9.6.0".replace(/\./g,"_")};window.addEventListener("message",(function e(i){if(!i.data||"https://gum.criteo.com"!=i.origin)return;if(i.data.requestId!==t)return;this.removeEventListener("message",e),i.stopImmediatePropagation();const r=i.data;r.optout?(C(x),Z(k,!0,43200)):r.bundle&&Z(x,r.bundle,9360)}),!0);const p=JSON.stringify(a).replace(/"/g,"%22");return[{type:"iframe",url:`https://gum.criteo.com/syncframe?${e.join("&")}#${p}`}]}if(e.pixelEnabled&&(0,l.h)(i)){const e=[];if(e.push("profile=207"),i&&(!0===i.gdprApplies&&e.push("gdprapplies=true"),i.consentString&&e.push(`gdpr=${i.consentString}`)),r&&e.push(`ccpa=${r}`),e.push(`gpp=${n}`),Array.isArray(o))for(const t of o)e.push(`gpp_sid=${t}`);return[{type:"image",url:`https://ssp-sync.criteo.com/user-sync/redirect?${e.join("&")}`}]}return[]},isBidRequestValid:e=>!(!e||!e.params||!e.params.zoneId&&!e.params.networkId)&&!(U(e)&&!function(e){let t=!0;return["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach((function(i){"placement"===i?void 0===(0,n.Z)(e,"mediaTypes.video."+i)&&void 0===(0,n.Z)(e,"params.video."+i)&&void 0===(0,n.Z)(e,"mediaTypes.video.plcmt")&&void 0===(0,n.Z)(e,"params.video.plcmt")&&(t=!1,(0,o.logError)("Criteo Bid Adapter: mediaTypes.video."+i+" or mediaTypes.video.plcmt is required")):void 0===(0,n.Z)(e,"mediaTypes.video."+i)&&void 0===(0,n.Z)(e,"params.video."+i)&&(t=!1,(0,o.logError)("Criteo Bid Adapter: mediaTypes.video."+i+" is required"))})),t}(e)),buildRequests:(e,t)=>{e.forEach((e=>{(function(e){return void 0!==(0,n.Z)(e,"mediaTypes.native")})(e)&&(function(e){return!(e.nativeParams&&(e.nativeParams.image&&(!0!==e.nativeParams.image.sendId||!0===e.nativeParams.image.sendTargetingKeys)||e.nativeParams.icon&&(!0!==e.nativeParams.icon.sendId||!0===e.nativeParams.icon.sendTargetingKeys)||e.nativeParams.clickUrl&&(!0!==e.nativeParams.clickUrl.sendId||!0===e.nativeParams.clickUrl.sendTargetingKeys)||e.nativeParams.displayUrl&&(!0!==e.nativeParams.displayUrl.sendId||!0===e.nativeParams.displayUrl.sendTargetingKeys)||e.nativeParams.privacyLink&&(!0!==e.nativeParams.privacyLink.sendId||!0===e.nativeParams.privacyLink.sendTargetingKeys)||e.nativeParams.privacyIcon&&(!0!==e.nativeParams.privacyIcon.sendId||!0===e.nativeParams.privacyIcon.sendTargetingKeys)))}(e)||(0,o.logWarn)(T+"all native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, displayUrl, privacyLink, privacyIcon)"),null==(0,n.Z)(e,"nativeOrtbRequest.assets")&&((0,o.logWarn)(T+"native asset requirements are missing"),(0,a.N)(e,"nativeOrtbRequest.assets",[{}])))}));const i=function(e,t){const i=(0,o.parseUrl)(t?.refererInfo?.topmostLocation).search;return{url:t?.refererInfo?.page||"",debug:"1"===i.pbt_debug,noLog:"1"===i.pbt_nolog,fledgeEnabled:t.paapi?.enabled,amp:e.some((e=>"amp"===e.params.integrationMode)),networkId:e.find((e=>e.params?.networkId))?.params.networkId,publisherId:e.find((e=>e.params?.pubid))?.params.pubid}}(e,t),r=function(e){let t=b;t+="?profileId=207",t+="&av="+String(37),t+="&wv="+encodeURIComponent("9.6.0"),t+="&cb="+String(Math.floor(99999999999*Math.random())),h.localStorageIsEnabled()?t+="&lsavail=1":t+="&lsavail=0";e.amp&&(t+="&im=1");e.debug&&(t+="&debug=1");e.noLog&&(t+="&nolog=1");const i=q(x);i&&(t+=`&bundle=${i}`);q(k)&&(t+="&optout=1");e.networkId&&(t+="&networkId="+e.networkId);return t}(i),s=S.toORTB({bidderRequest:t,bidRequests:e,context:i});if(s)return{method:"POST",url:r,data:s,bidRequests:e}},interpretResponse:(e,t)=>{if(void 0===e?.body)return[];const i=S.fromORTB({response:e.body,request:t.data}).bids||[],r=(0,n.Z)(e.body,"ext.igi")?.filter((e=>(0,o.isArray)(e?.igs))).flatMap((e=>e.igs));return r?.length?{bids:i,paapi:r}:i},onDataDeletionRequest:e=>{const t=q(x);t&&(C(x),(0,v.hj)("https://privacy.criteo.com/api/privacy/datadeletionrequest",null,JSON.stringify({publisherUserId:t}),{contentType:"application/json",method:"POST"}))}};function q(e){const t=h.getCookie(e),i=h.getDataFromLocalStorage(e);return t||i||void 0}function Z(e,t,i){const r=new Date;r.setTime(r.getTime()+60*i*60*1e3);const a=`expires=${r.toUTCString()}`;h.setCookie(e,t,a),h.setDataInLocalStorage(e,t)}function C(e){h.setCookie(e,"",0),h.removeDataFromLocalStorage(e)}function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return null==e?[]:Array.isArray(e[0])?e.map((e=>t(e))):[t(e)]}function E(e){return e[0]+"x"+e[1]}function U(e){return void 0!==(0,n.Z)(e,"mediaTypes.video")}function _(e){try{const t={},i=function(e){if(e.getFloor)return e.getFloor;if(e.params.bidFloor&&e.params.bidFloorCur)try{const t=parseFloat(e.params.bidFloor);return()=>({currency:e.params.bidFloorCur,floor:t})}catch{}}(e);if(i){if(e.mediaTypes?.banner){t.banner={};R((0,n.Z)(e,"mediaTypes.banner.sizes")).forEach((r=>t.banner[E(r).toString()]=i.call(e,{size:r,mediaType:d.Mk})))}if(e.mediaTypes?.video){t.video={};R((0,n.Z)(e,"mediaTypes.video.playerSize")).forEach((r=>t.video[E(r).toString()]=i.call(e,{size:r,mediaType:d.pX})))}return e.mediaTypes?.native&&(t.native={},t.native["*"]=i.call(e,{size:"*",mediaType:d.B5})),t}}catch(e){(0,o.logError)("Could not parse floors from Prebid: "+e)}}(0,s.dX)(w),(0,r.z)("criteoBidAdapter")},6372:(e,t,i)=>{i.d(t,{DZ:()=>n,Px:()=>o,TP:()=>d,YC:()=>s,Z:()=>a,f8:()=>l,fP:()=>u,gm:()=>r,md:()=>p});const r=["request","imp","bidResponse","response"],[a,n,o,s]=r,[d,p]=["default","pbs"],c=new Set(r);const{registerOrtbProcessor:l,getProcessors:u}=function(){const e={};return{registerOrtbProcessor(t){let{type:i,name:a,fn:n,priority:o=0,dialects:s=[d]}=t;if(!c.has(i))throw new Error(`ORTB processor type must be one of: ${r.join(", ")}`);s.forEach((t=>{e.hasOwnProperty(t)||(e[t]={}),e[t].hasOwnProperty(i)||(e[t][i]={}),e[t][i][a]={priority:o,fn:n}}))},getProcessors:t=>e[t]||{}}}()},7554:(e,t,i)=>{i.d(t,{h:()=>a});var r=i(265);function a(e){return!e?.gdprApplies||!0===(0,r.Z)(e,"vendorData.purpose.consents.1")}}},e=>{e.O(0,[5279,7566,9270],(()=>{return t=241,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[9226],{2663:(e,r,n)=>{var o=n(8640),t=n(7746),c=n(2200),i=n(8928),s=n(3193),u=n(2797),a=n(8792),f=n(6372),l=n(9128),d=n(2021);const y="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$";let g,v=[],p={},h=!1,C=!0,R="USD";var b=!1,$={};let O,w={},I=(0,a.P)();function S(e){O?((0,t.logWarn)(e),(0,t.logWarn)("Currency failed loading rates, falling back to currency.defaultRates")):(0,t.logError)(e)}function m(){C?(C=!1,h=!1,(0,i.hj)(g,{success:function(e){try{$=JSON.parse(e),(0,t.logInfo)("currencyRates set to "+JSON.stringify($)),p={},h=!0,D()}catch(r){S("Failed to parse currencyRates response: "+e)}},error:function(){S(...arguments),h=!0,D(),C=!0}})):D()}function T(){p={},b||(b=!0,(0,o.R)().convertCurrency=(e,r,n)=>parseFloat(e)*E(r,n),(0,u.v5)("addBidResponse").before(F,100),(0,u.v5)("responsesReady").before(P),(0,d.on)(c.FP.AUCTION_TIMEOUT,U),(0,d.on)(c.FP.AUCTION_INIT,m),m())}function N(){b&&((0,u.v5)("addBidResponse").getHooks({hook:F}).remove(),(0,u.v5)("responsesReady").getHooks({hook:P}).remove(),(0,d.S1)(c.FP.AUCTION_TIMEOUT,U),(0,d.S1)(c.FP.AUCTION_INIT,m),delete(0,o.R)().convertCurrency,R="USD",p={},b=!1,h=!1,C=!0,$={},w={},I=(0,a.P)())}function P(e,r){e(r.then((()=>I.promise)))}s.vc.getConfig("currency",(e=>function(e){if(g=y,"object"==typeof e.rates&&($.conversions=e.rates,h=!0,C=!1),"object"==typeof e.defaultRates&&(O=e.defaultRates,$.conversions=O,h=!0),"string"==typeof e.adServerCurrency){(0,t.logInfo)("enabling currency support",arguments),R=e.adServerCurrency,e.conversionRateFile&&((0,t.logInfo)("currency using override conversionRateFile:",e.conversionRateFile),g=e.conversionRateFile);const r=g.indexOf("$$TODAY$$");if(-1!==r){const e=new Date;let n=`${e.getMonth()+1}`,o=`${e.getDate()}`;n.length<2&&(n=`0${n}`),o.length<2&&(o=`0${o}`);const t=`${e.getFullYear()}${n}${o}`;g=`${g.substring(0,r)}${t}${g.substring(r+9,g.length)}`}T()}else(0,t.logInfo)("disabling currency support"),N();"object"==typeof e.bidderCurrencyDefault&&(w=e.bidderCurrencyDefault)}(e.currency)));const F=(0,l.A)("currency",(function(e,r,n,o){if(!n)return e.call(this,r,n,o);let c=n.bidderCode||n.bidder;if(w[c]){let e=w[c];n.currency&&e!==n.currency?(0,t.logWarn)(`Currency default '${c}: ${e}' ignored. adapter specified '${n.currency}'`):n.currency=e}if(n.currency||((0,t.logWarn)('Currency not specified on bid. Defaulted to "USD"'),n.currency="USD"),n.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*E(this.currency,e)).toFixed(3)},n.currency===R)return e.call(this,r,n,o);v.push([e,this,r,n,o]),b&&!h||D()}));function U(e){let{auctionId:r}=e;v=v.filter((e=>{let[n,o,t,i,s]=e;if(i.auctionId!==r)return!0;s(c.Gw.CANNOT_CONVERT_CURRENCY)}))}function D(){for(;v.length>0;){const[e,r,n,o,i]=v.shift();if(void 0!==o&&"currency"in o&&"cpm"in o){let e=o.currency;try{let r=E(e);1!==r&&(o.cpm=(parseFloat(o.cpm)*r).toFixed(4),o.currency=R)}catch(e){(0,t.logWarn)("getCurrencyConversion threw error: ",e),i(c.Gw.CANNOT_CONVERT_CURRENCY);continue}}e.call(r,n,o,i)}I.resolve()}function E(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;var n,o=null;let c=`${e}->${r}`;if(c in p)o=p[c],(0,t.logMessage)("Using conversionCache value "+o+" for "+c);else if(!1===b){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");o=1}else if(e===r)o=1;else if(e in $.conversions){if(!(r in(n=$.conversions[e])))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");o=n[r],(0,t.logInfo)("getCurrencyConversion using direct "+e+" to "+r+" conversionRate "+o)}else if(r in $.conversions){if(!(e in(n=$.conversions[r])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");o=A(1/n[e],4),(0,t.logInfo)("getCurrencyConversion using reciprocal "+e+" to "+r+" conversionRate "+o)}else{var i=Object.keys($.conversions)[0];if(!(e in $.conversions[i]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var s=1/$.conversions[i][e];if(!(r in $.conversions[i]))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");var u=$.conversions[i][r];o=A(s*u,4),(0,t.logInfo)("getCurrencyConversion using intermediate "+e+" thru "+i+" to "+r+" conversionRate "+o)}return c in p||((0,t.logMessage)("Adding conversionCache value "+o+" for "+c),p[c]=o),o}function A(e,r){var n=1;for(let e=0;e<r;e++)n+="0";return Math.round(e*n)/n}(0,f.f8)({type:f.Z,name:"currency",fn:function(e,r,n){b&&(e.cur=e.cur||[n.currency||R])}}),(0,o.z)("currency")},6372:(e,r,n)=>{n.d(r,{DZ:()=>c,Px:()=>i,TP:()=>u,YC:()=>s,Z:()=>t,f8:()=>l,fP:()=>d,gm:()=>o,md:()=>a});const o=["request","imp","bidResponse","response"],[t,c,i,s]=o,[u,a]=["default","pbs"],f=new Set(o);const{registerOrtbProcessor:l,getProcessors:d}=function(){const e={};return{registerOrtbProcessor(r){let{type:n,name:t,fn:c,priority:i=0,dialects:s=[u]}=r;if(!f.has(n))throw new Error(`ORTB processor type must be one of: ${o.join(", ")}`);s.forEach((r=>{e.hasOwnProperty(r)||(e[r]={}),e[r].hasOwnProperty(n)||(e[r][n]={}),e[r][n][t]={priority:i,fn:c}}))},getProcessors:r=>e[r]||{}}}()}},e=>{e.O(0,[9270],(()=>{return r=2663,e(e.s=r);var r}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[7910],{3410:(e,r,t)=>{var o=t(8640),l=t(3193),a=t(2797),n=t(7746),s=t(8792),d=t(9128);let b=[];const i=(0,d.g3)("fpd",(function(e,r){(function(){let{global:e={},bidder:r={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l.vc.getConfig("firstPartyData")||{},o=s.Z.resolve({global:e,bidder:r});return b.sort(((e,r)=>(e.queue||1)-(r.queue||1))).forEach((e=>{o=o.then((r=>{let{global:o,bidder:l}=r;return s.Z.resolve(e.processFpd(t,{global:o,bidder:l})).catch((r=>((0,n.logError)(`Error in FPD module ${e.name}`,r),{}))).then((e=>({global:e.global||o,bidder:e.bidder||l})))}))})),o})(r.ortb2Fragments).then((t=>{Object.assign(r.ortb2Fragments,t),e.call(this,r)}))}));(0,a.bA)("firstPartyData",(function(e){b.push(e)})),(0,a.v5)("startAuction").before(i,10),(0,o.z)("fpdModule")}},e=>{e.O(0,[9270],(()=>{return r=3410,e(e.s=r);var r}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[4750],{7206:(e,t,r)=>{var n=r(8640),s=r(7746),i=r(265),d=r(8928),o=r(4699),a=r(5706),p=r(4679),c=r(3193),l=r(5164),u=r(5172);const g="grid",m="https://grid.bidswitch.net/hbjson",b="https://x.bidswitch.net/sync?ssp=themediagrid",f="tmguid",h=(0,l.df)({bidderCode:g}),y={noAdid:"Bid from response has no adid parameter - ",noAdm:"Bid from response has no adm parameter - ",noBid:"Array of bid objects is empty",emptyUids:"Uids should be not empty",emptySeatbid:"Seatbid array from response has empty item",emptyResponse:"Response is empty",hasEmptySeatbidArray:"Response has empty seatbid array",hasNoArrayOfBids:"Seatbid from response has no array of bid objects - "},x={trustx:{endpoint:"https://grid.bidswitch.net/hbjson?sp=trustx",syncurl:"https://x.bidswitch.net/sync?ssp=themediagrid",bidResponseExternal:{netRevenue:!1}},gridNM:{defaultParams:{multiRequest:!0}}};let S=!1;const v={code:g,gvlid:686,aliases:["playwire","adlivetech","gridNM",{code:"trustx",skipPbsAliasing:!0}],supportedMediaTypes:[p.Mk,p.pX],isBidRequestValid:function(e){return e&&Boolean(e.params.uid||e.params.secid)},buildRequests:function(e,t){if(!e.length)return null;let r=null,n=null,d=null,o=null,a=null,l=null,u=null,g=!1,{bidderRequestId:b,gdprConsent:y,uspConsent:S,timeout:v,refererInfo:w,gppConsent:R}=t||{};const A=w?encodeURIComponent(w.page):"",I=parseInt(v)||null,j=[],k={},O=[],T=[],E=[];e.forEach((e=>{const i={bid:e,savedPrebidBid:null};if(!e.params.uid&&!e.params.secid)return;b||(b=e.bidderRequestId),d||(d=e.schain),o||(o=e.userIdAsEids),u||(u=x[e.bidder]&&x[e.bidder].endpoint);const{params:a,mediaTypes:c,bidId:l,adUnitCode:m,rtd:f,ortb2Imp:h}=e,{defaultParams:y}=x[e.bidder]||{},{secid:S,pubid:v,source:w,uid:R,keywords:N,forceBidder:B,multiRequest:z,content:C,video:P}={...y,...a},_=function(e,t){const r=e.video?"video":"banner";let n=parseFloat(t.params.bidFloor||t.params.floorcpm||0)||null;if("function"==typeof t.getFloor){const e=t.getFloor({currency:"USD",mediaType:r,size:t.sizes.map((e=>{let[t,r]=e;return{w:t,h:r}}))});"object"!=typeof e||"USD"!==e.currency||isNaN(parseFloat(e.floor))||(n=Math.max(n,parseFloat(e.floor)))}return n}(c||{},e),D=f&&f.jwplayer&&f.jwplayer.targeting;D&&!n&&D.content&&(n=D.content);let M={id:l.toString(),tagid:(S||R).toString(),ext:{divid:m.toString()}};if(h&&(h.instl&&(M.instl=parseInt(h.instl)||null),h.ext&&(M.ext.gpid=h.ext.gpid?.toString()||h.ext.data?.pbadslot?.toString()||h.ext.data?.adserver?.adslot?.toString(),h.ext.data&&(M.ext.data=h.ext.data))),(0,s.isEmpty)(N)||(r||(r=N),M.ext.bidder={keywords:N}),_&&(M.bidfloor=_),!c||c[p.Mk]){const t=function(e,t){const r=t.sizes||e.sizes;if(!r||!r.length)return;let n=r.map((e=>(0,s.parseGPTSingleSizeArrayToRtbSize)(e))),i=(0,s.parseGPTSingleSizeArrayToRtbSize)(r[0]);n.length&&(i.format=n);return i}(e,c?c[p.Mk]:{});t&&(M.banner=t)}if(c&&c[p.pX]){const t=function(e,t,r){const{mind:n,maxd:i,size:d,playerSize:o,protocols:a,durationRangeSec:p=[],...c}={...t,...e};if(d&&(0,s.isStr)(d)){const e=d.split("x");2===e.length&&parseInt(e[0])&&parseInt(e[1])&&(c.w=parseInt(e[0]),c.h=parseInt(e[1]))}if(!c.w||!c.h){const e=((o||r||[]).toString().match(/^\d+,\d+/)||[])[0],t=e&&e.split(",").map((e=>parseInt(e)));t&&2===t.length&&Object.assign(c,(0,s.parseGPTSingleSizeArrayToRtbSize)(t))}if(!c.w||!c.h)return;const l=n||p[0]||parseInt(c.minduration)||null,u=i||p[1]||parseInt(c.maxduration)||null;l&&(c.minduration=l);u&&(c.maxduration=u);a&&a.length&&(c.protocols=a);return c}(P,c[p.pX],e.sizes);t&&(M.video=t)}if(M.banner||M.video)if(z){const r={tid:t?.ortb2?.source?.tid?.toString?.(),ext:{wrapper:"Prebid_js",wrapper_version:"9.6.0"}};e.schain&&(r.ext.schain=e.schain);const n={id:e.bidderRequestId&&e.bidderRequestId.toString(),site:{page:A},tmax:I,source:r,imp:[M]};v&&(n.site.publisher={id:v});const s=C||D&&D.content;s&&(n.site.content=s),O.push(n),T.push(w),E.push(i)}else k[l]=i,j.push(M);!g&&B&&x[B]&&(g=B)})),g=c.vc.getConfig("forceBidderName")||g,g&&x[g]&&(u=x[g].endpoint,this.forceBidderName=g);const N={tid:t?.ortb2?.source?.tid?.toString?.(),ext:{wrapper:"Prebid_js",wrapper_version:"9.6.0"}};d&&(N.ext.schain=d);const B=j.length||!O.length?{id:b&&b.toString(),site:{page:A},tmax:I,source:N,imp:j}:null;return n&&(B.site.content=n),[...O,B].forEach((e=>{if(!e)return;a=null;const n=(0,i.Z)(t,"ortb2.user.data");n&&n.length&&(a={data:[...n]}),y&&y.consentString&&(l={consent:y.consentString});const d=(0,i.Z)(t,"ortb2.user.ext.device");d&&(l=l||{},l.device={...d}),o&&o.length&&(l=l||{},l.eids=[...o]),l&&Object.keys(l).length&&(a=a||{},a.ext=l);const p=h.getDataFromLocalStorage(f)||function(){if(c.vc.getConfig("localStorageWriteAllowed")){const e=(0,s.generateUUID)().replace(/-/g,"");return h.setDataInLocalStorage(f,e),e}return null}();p&&(a=a||{},a.id=p.toString()),a&&(e.user=a);const u=(0,i.Z)(t,"ortb2.user.keywords")||null,g=(0,i.Z)(t,"ortb2.site.keywords")||null;u&&(r=r||{},r.user=r.user||{},r.user.ortb2=[{name:"keywords",keywords:u.split(",")}]),g&&(r=r||{},r.site=r.site||{},r.site.ortb2=[{name:"keywords",keywords:g.split(",")}]),r&&(r=function(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r];if(n)if("site"===r||"user"===r){const e={};Object.keys(n).forEach((t=>{if(Array.isArray(n[t])){const r=[];n[t].forEach((e=>{if("object"==typeof e&&e.name){const t={name:e.name,segments:[]};Object.keys(e).forEach((r=>{Array.isArray(e[r])&&e[r].forEach((e=>{e&&("string"==typeof e?t.segments.push({name:r,value:e}):"segments"===r&&"string"==typeof e.name&&"string"==typeof e.value&&t.segments.push(e))}))})),t.segments.length&&r.push(t)}})),r.length&&(e[t]=r)}})),t[r]=e}else t[r]=n})),Object.keys(t).length&&t}(r),r&&(e.ext={keywords:r})),y&&y.gdprApplies&&(e.regs={ext:{gdpr:y.gdprApplies?1:0}});const m=(0,i.Z)(t,"ortb2.regs")||{};if(R||m?.gpp){const t={gpp:R?.gppString??m?.gpp,gpp_sid:R?.applicableSections??m?.gpp_sid};e.regs=(0,s.mergeDeep)(e?.regs??{},t)}S&&(e.regs||(e.regs={ext:{}}),e.regs.ext||(e.regs.ext={}),e.regs.ext.us_privacy=S),!0===c.vc.getConfig("coppa")&&(e.regs||(e.regs={}),e.regs.coppa=1),m?.ext?.dsa&&(e.regs||(e.regs={ext:{}}),e.regs.ext||(e.regs.ext={}),e.regs.ext.dsa=m.ext.dsa);const b=(0,i.Z)(t,"ortb2.site");if(b){const t=[...b.cat||[],...b.pagecat||[]].filter((e=>e&&"string"==typeof e));t.length&&(e.site.cat=t);const r=(0,i.Z)(b,"content.genre");r&&"string"==typeof r&&(e.site.content={...e.site.content,genre:r});const n=(0,i.Z)(b,"content.data");if(n&&n.length){const t=e.site.content||{};e.site.content=(0,s.mergeDeep)(t,{data:n})}const d=(0,i.Z)(b,"content.id");d&&(e.site.content={...e.site.content,id:d})}})),[...O.map(((e,t)=>{let r;const n=(u||m).replace(/[?&]sp=([^?&=]+)/,((e,t)=>(t&&(r=t),"")));let s=T[t]||r;return{method:"POST",url:n+(n.indexOf("?")>-1?"&":"?")+"no_mapping=1"+(s?`&sp=${s}`:""),data:JSON.stringify(e),bidObject:E[t]}})),...B?[{method:"POST",url:u||m,data:JSON.stringify(B),bidsMap:k}]:[]]},interpretResponse:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.Th;e=e&&e.body;const n=[];let i;e?e.seatbid&&!e.seatbid.length&&(i=y.hasEmptySeatbidArray):i=y.emptyResponse;const d=this.forceBidderName||this.code;return!i&&e.seatbid&&e.seatbid.forEach((e=>{w((0,u.y)(e,y),t,n,r,d)})),i&&(0,s.logError)(i),n},getUserSyncs:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[n,,s,i]=t;if(!S&&n.pixelEnabled){let e="";s&&("boolean"==typeof s.gdprApplies&&(e+=`&gdpr=${Number(s.gdprApplies)}`),"string"==typeof s.consentString&&(e+=`&gdpr_consent=${s.consentString}`)),i&&(e+=`&us_privacy=${i}`);const t=this.forceBidderName||this.code,r=x[t]&&x[t].syncurl||b;return S=!0,{type:"image",url:r+e}}},ajaxCall:function(e,t,r,n){return n.browsingTopics=!1,(0,d.hj)(e,t,r,n)},onDataDeletionRequest:function(e){v.ajaxCall("https://media.grid.bidswitch.net/uspapi_delete_c2s",null,null,{method:"GET"})}};function w(e,t,r,n,i){if(!e)return;let d;if(e.adid||(d=y.noAdid+JSON.stringify(e)),d||e.adm||e.nurl){const d=t.bidsMap?t.bidsMap[e.impid]:t.bidObject,{bid:o,savedPrebidBid:a}=d||{};if(o&&function(e,t){if((0,s.isNumber)(t))return e>t||e===t&&Math.random()>.5;return!0}(e.price,a&&a.cpm)){const t={requestId:o.bidId,cpm:e.price,width:e.w,height:e.h,creativeId:e.adid,currency:"USD",netRevenue:!0,ttl:360,meta:{advertiserDomains:e.adomain?e.adomain:[]},dealId:e.dealid};d.savedPrebidBid=t,e.ext&&e.ext.bidder&&e.ext.bidder.grid&&e.ext.bidder.grid.demandSource&&(t.adserverTargeting={hb_ds:e.ext.bidder.grid.demandSource},t.meta.demandSource=e.ext.bidder.grid.demandSource),e.ext&&e.ext.dsa&&(t.meta.dsa=e.ext.dsa),"video"===e.content_type?(e.adm?(t.vastXml=e.adm,t.adResponse={content:t.vastXml}):e.nurl&&(t.vastUrl=e.nurl),t.mediaType=p.pX,o.renderer||o.mediaTypes&&o.mediaTypes.video&&"outstream"!==o.mediaTypes.video.context||(t.renderer=function(e,t,r){const n=r.install({id:t.id,url:t.url,loaded:!1});try{n.setRender(R)}catch(e){(0,s.logWarn)("Prebid Error calling setRender on renderer",e)}return n}(0,{id:o.bidId,url:"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"},n))):(t.ad=e.adm,t.mediaType=p.Mk);const a=x[i]&&x[i].bidResponseExternal||{};r.push((0,s.mergeDeep)(t,a))}}else d=y.noAdm+JSON.stringify(e);d&&(0,s.logError)(d)}function R(e){e.renderer.push((()=>{window.ANOutstreamVideo.renderAd({targetId:e.adUnitCode,adResponse:e.adResponse})}))}(0,o.dX)(v),(0,n.z)("gridBidAdapter")}},e=>{e.O(0,[7821,9270],(()=>{return t=7206,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[994],{1929:(n,o,e)=>{var r=e(8640),t=e(8928),a=e(5164),d=e(2797),s=e(7746),c=e(3193),i=e(9633),p=e(4516);const g="[hadronIdSystem]",l="auHadronId",h="hadronId",m=(0,a.df)({moduleType:i.y2,moduleName:h});const I=c.vc.getConfig("debug")||!1,u={name:h,gvlid:561,decode(n){const o=m.getDataFromLocalStorage(l);return(0,s.isStr)(o)?{hadronId:o}:n&&"string"==typeof n.hadronId?{hadronId:n.hadronId}:void 0},getId(n){(0,s.isPlainObject)(n.params)||(n.params={});const o=0|n.params.partnerId;let e=m.getDataFromLocalStorage(l);if((0,s.isStr)(e))return{id:{hadronId:e}};return{callback:function(r){let a={};const d={success:n=>{if(n){try{a=JSON.parse(n)}catch(n){(0,s.logError)(n)}(0,s.logInfo)(g,`Response from backend is ${n}`,a),e=a.hadronId,m.setDataInLocalStorage(l,e),a={id:{hadronId:e}}}r(a)},error:n=>{(0,s.logError)(`${h}: ID fetch encountered an error`,n),r()}};let c=((n,o)=>n+(n.indexOf("?")>-1?"&":"?")+o)((i=n.params.url,u="https://id.hadron.ad.gt/api/v1/pbhid",S=n.params.urlArg,(0,s.isFn)(i)?i(S):(0,s.isStr)(i)?i:u),`partner_id=${o}&_it=prebid&t=1&src=id&domain=${document.location.hostname}`);var i,u,S;I&&(c+="&debug=1");const f=p.rp.getConsentData();f&&(c+=""+(f.consentString?"&gdprString="+encodeURIComponent(f.consentString):""),c+="&gdpr="+(!0===f.gdprApplies?1:0));const C=p.nX.getConsentData();C&&(c+=`&us_privacy=${encodeURIComponent(C)}`);const b=p.TJ.getConsentData();b&&(c+=""+(b.gppString?"&gpp="+encodeURIComponent(b.gppString):""),c+=""+(b.applicableSections?"&gpp_sid="+encodeURIComponent(b.applicableSections):"")),(0,s.logInfo)(g,`hadronId not found in storage, calling home (${c})`),(0,t.hj)(c,d,void 0,{method:"GET"})}}},eids:{hadronId:{source:"audigent.com",atype:1}}};(0,d.Bx)("userId",u),(0,r.z)("hadronIdSystem")}},n=>{n.O(0,[9270],(()=>{return o=1929,n(n.s=o);var o}));n.O()}]);(self.ascChunk=self.ascChunk||[]).push([[1618],{272:(e,t,r)=>{var n=r(8640),o=r(7746),i=r(265),a=r(6475),s=r(8928),c=r(2797),u=r(5102),d=r(5164),l=r(4516),g=r(9633),p=r(8792),f=r(5730);const h="id5id",m=`${h}_privacy`,b="html5",w="User ID - ID5 submodule: ",y="id5-sync.com",v=["pbjs-id5id","id5id.1st","id5id"],D=(0,d.df)({moduleType:g.y2,moduleName:"id5Id"}),I={name:"id5Id",gvlid:131,decode(e,t){let r,n,s={};if(!e||"string"!=typeof e.universal_uid)return;if(r=e.universal_uid,s=e.ext||s,n=e.publisherTrueLinkId,"0"==r)return;let c={id5id:{uid:r,ext:s}};(0,o.isPlainObject)(s.euid)&&(c.euid={uid:s.euid.uids[0].id,source:s.euid.source,ext:{provider:y}}),n&&(c.trueLinkId={uid:n});switch((0,i.Z)(e,"ab_testing.result")){case"control":(0,o.logInfo)(w+"A/B Testing - user is in the Control Group: ID5 ID is NOT exposed"),(0,a.N)(c,"id5id.ext.abTestingControlGroup",!0);break;case"error":(0,o.logError)(w+"A/B Testing ERROR! controlGroupPct must be a number >= 0 and <= 1");break;case"normal":(0,o.logInfo)(w+"A/B Testing - user is NOT in the Control Group"),(0,a.N)(c,"id5id.ext.abTestingControlGroup",!1)}return(0,o.logInfo)(w+"Decoded ID",c),c},getId(e,t,r){if(!x(e))return;if(!P(t))return void(0,o.logInfo)(w+"Skipping ID5 local storage write because no consent given.");return{callback:function(n){new E(e,t,r,l.nX.getConsentData(),l.TJ.getConsentData()).execute().then((e=>{n(e)})).catch((e=>{(0,o.logError)(w+"getId fetch encountered an error",e),n()}))}}},extendId(e,t,r){if(!P(t))return(0,o.logInfo)(w+"No consent given for ID5 local storage writing, skipping nb increment."),r;return F(x(e)?e.params.partner:0),(0,o.logInfo)(w+"using cached ID",r),r},eids:{id5id:{getValue:function(e){return e.uid},source:y,atype:1,getUidExt:function(e){if(e.ext)return e.ext}},euid:{getValue:function(e){return e.uid},getSource:function(e){return e.source},atype:3,getUidExt:function(e){if(e.ext)return e.ext}},trueLinkId:{getValue:function(e){return e.uid},getSource:function(e){return"true-link-id5-sync.com"},atype:1,getUidExt:function(e){if(e.ext)return e.ext}}}};class E{constructor(e,t,r,n,o){this.submoduleConfig=e,this.gdprConsentData=t,this.cacheIdObj=r,this.usPrivacyData=n,this.gppData=o}async execute(){const e=this.#e();if(!this.#t())return this.#r(e);try{return await this.#n(e)}catch(t){return(0,o.logError)(w+"Error while performing ID5 external module flow. Continuing with regular flow.",t),this.#r(e)}}#t(){return"string"==typeof this.submoduleConfig.params.externalModuleUrl}async#n(e){await async function(e){return new p.Z(((t,r)=>{if(window.id5Prebid)t();else try{(0,f.B)(e,"id5",t)}catch(e){r(e)}}))}(this.submoduleConfig.params.externalModuleUrl);const t=await e;return this.#o().fetchId5Id(t,this.submoduleConfig.params,(0,u.nH)(),this.gdprConsentData,this.usPrivacyData,this.gppData)}#o(){return window.id5Prebid&&window.id5Prebid.integration}async#r(e){const t=await e,r=await this.#i(t.extensionsCall),n=await this.#a(t.fetchCall,r);return this.#s(n)}async#e(){let e=this.submoduleConfig.params.configUrl||"https://id5-sync.com/api/config/prebid";const t=await(0,s.he)(e,{method:"POST",body:JSON.stringify({...this.submoduleConfig,bounce:!0}),credentials:"include"});if(!t.ok)throw new Error("Error while calling config endpoint: ",t);const r=await t.json();return(0,o.logInfo)(w+"config response received from the server",r),r}async#i(e){if(void 0===e)return;const t=e.url,r=e.method||"GET",n="GET"===r?void 0:JSON.stringify(e.body||{}),i=await(0,s.he)(t,{method:r,body:n});if(!i.ok)throw new Error("Error while calling extensions endpoint: ",i);const a=await i.json();return(0,o.logInfo)(w+"extensions response received from the server",a),a}async#a(e,t){const r=e.url,n=e.overrides||{},i=JSON.stringify({...this.#c(),...n,extensions:t}),a=await(0,s.he)(r,{method:"POST",body:i,credentials:"include"});if(!a.ok)throw new Error("Error while calling fetch endpoint: ",a);const c=await a.json();return(0,o.logInfo)(w+"fetch response received from the server",c),c}#c(){const e=this.submoduleConfig.params,t=this.gdprConsentData&&"boolean"==typeof this.gdprConsentData.gdprApplies&&this.gdprConsentData.gdprApplies?1:0,r=(0,u.nH)(),n=this.cacheIdObj&&this.cacheIdObj.signature?this.cacheIdObj.signature:function(){let e;return v.forEach((function(t){D.getCookie(t)&&(e=(0,o.safeJSONParse)(D.getCookie(t))||e)})),e&&e.signature||""}(),i=function(e){const t=F(e);return S(e,0),t}(e.partner),a=window.id5Bootstrap?window.id5Bootstrap.getTrueLinkInfo():{booted:!1},s={partner:e.partner,gdpr:t,nbPage:i,o:"pbjs",tml:r.topmostLocation,ref:r.ref,cu:r.canonicalUrl,top:r.reachedTop?1:0,u:r.stack[0]||window.location.href,v:"9.6.0",storage:this.submoduleConfig.storage,localStorage:D.localStorageIsEnabled()?1:0,true_link:a};!t||void 0===this.gdprConsentData.consentString||(0,o.isEmpty)(this.gdprConsentData.consentString)||(0,o.isEmptyStr)(this.gdprConsentData.consentString)||(s.gdpr_consent=this.gdprConsentData.consentString),void 0===this.usPrivacyData||(0,o.isEmpty)(this.usPrivacyData)||(0,o.isEmptyStr)(this.usPrivacyData)||(s.us_privacy=this.usPrivacyData),this.gppData&&(s.gpp_string=this.gppData.gppString,s.gpp_sid=this.gppData.applicableSections),void 0===n||(0,o.isEmptyStr)(n)||(s.s=n),void 0===e.pd||(0,o.isEmptyStr)(e.pd)||(s.pd=e.pd),void 0===e.provider||(0,o.isEmptyStr)(e.provider)||(s.provider=e.provider);const c=e.abTesting||{enabled:!1};return c.enabled&&(s.ab_testing={enabled:!0,control_group_pct:c.controlGroupPct}),s}#s(e){try{e.privacy&&(T(m,JSON.stringify(e.privacy),30),window.id5Bootstrap&&window.id5Bootstrap.setPrivacy&&window.id5Bootstrap.setPrivacy(e.privacy))}catch(e){(0,o.logError)(w+"Error while writing privacy info into local storage.",e)}return e}}function x(e){if(!e||!e.params||!e.params.partner)return(0,o.logError)(w+"partner required to be defined"),!1;const t=e.params.partner;if("string"==typeof t||t instanceof String){let r=parseInt(t);if(isNaN(r)||r<0)return(0,o.logError)(w+"partner required to be a number or a String parsable to a positive integer"),!1;e.params.partner=r}else if("number"!=typeof t)return(0,o.logError)(w+"partner required to be a number or a String parsable to a positive integer"),!1;return e.storage&&e.storage.type&&e.storage.name?(e.storage.type!==b&&(0,o.logWarn)(w+`storage type recommended to be '${b}'. In a future release this may become a strict requirement`),e.storage.name!==h&&(0,o.logWarn)(w+`storage name recommended to be '${h}'. In a future release this may become a strict requirement`),!0):((0,o.logError)(w+"storage required to be set"),!1)}function C(e){return`${h}_${e}_nb`}function S(e,t){T(C(e),t,30)}function k(e){let t=function(e){const t=D.getDataFromLocalStorage(`${e}_exp`);if(""===t)return D.getDataFromLocalStorage(e);if(t&&new Date(t).getTime()-Date.now()>0)return D.getDataFromLocalStorage(e);return D.removeDataFromLocalStorage(e),null}(C(e));return t?parseInt(t):0}function F(e){const t=k(e)+1;return S(e,t),t}function T(e,t,r){D.setDataInLocalStorage(`${e}_exp`,function(e){return new Date(Date.now()+864e5*e).toUTCString()}(r)),D.setDataInLocalStorage(`${e}`,t)}function P(e){const t=e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies,r=(0,i.Z)(e,"vendorData.purpose.consents.1"),n=(0,i.Z)(e,`vendorData.vendor.consents.${131..toString()}`);return!!(!t||r&&n)}(0,c.Bx)("userId",I),(0,n.z)("id5IdSystem")}},e=>{e.O(0,[9270],(()=>{return t=272,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[3769],{896:(e,t,n)=>{var i=n(8640),r=n(7746),o=n(265),a=n(6475),s=n(4699),d=n(3193),c=n(4679),l=n(5102),u=n(5706),p=n(59),m=n(75),f=n(8928);const g="medianet",b="trustedstack",y="https://prebid.media.net/video/bundle.js",h=0,w=1,v=2,x="client_timeout",_="client_bid_won",I="client_set_targeting",O="client_bidder_error";let E;window.mnet=window.mnet||{},window.mnet.queue=window.mnet.queue||[];const C=[{code:b,gvlid:1288}];function S(){try{return window.top.document.referrer}catch(e){return document.referrer}}function R(e,t){const n=t.refererInfo;let i={domain:(e=e||{}).domain||n.domain,page:e.page||n.page,ref:e.ref||S(),topMostLocation:n.topmostLocation,isTop:e.isTop||n.reachedTop};return Object.assign(i,function(){if(E)return E;let e=T('link[rel="canonical"]',"href"),t=T('meta[property="og:url"]',"content"),n=T('meta[name="twitter:url"]',"content");return E=Object.assign({},e&&{canonical_url:e},t&&{og_url:t},n&&{twitter_url:n}),E}())}function T(e,t){let n=function(e,t){try{let n=(0,r.getWindowTop)().document.querySelector(e);if(null!==n&&n[t])return n[t]}catch(e){}}(e,t);return n&&function(e){let t=(0,r.getWindowTop)().document.createElement("a");return t.href=e,t.href}(n)}function k(e,t){return e.filter((e=>e.type===t))}function Z(e){return{w:parseInt(e[0],10),h:parseInt(e[1],10)}}function j(e,t){const n=(0,o.Z)(e,"params"),a=(0,o.Z)(t,"gdprConsent"),s=(0,o.Z)(t,"uspConsent"),c=(0,o.Z)(e,"userId"),l=(0,o.Z)(e,"schain")||{},u=N.getWindowSize(),p=!(!a||!a.gdprApplies),m=!!s,f=!!d.vc.getConfig("coppa");return Object.assign({},{customer_id:n.cid},{prebid_version:"v9.6.0"},{gdpr_applies:p},p&&{gdpr_consent_string:a.consentString||""},{usp_applies:m},m&&{usp_consent_string:s||""},{coppa_applies:f},-1!==u.w&&-1!==u.h&&{screen:u},c&&{user_id:c},(0,i.R)().medianetGlobals.analyticsEnabled&&{analytics:!0},!(0,r.isEmpty)(l)&&{schain:l})}function A(e,t){let n={id:e.bidId,transactionId:e.ortb2Imp?.ext?.tid,ext:{dfp_id:e.adUnitCode,display_count:e.bidRequestsCount},all:e.params};e.ortb2Imp&&(n.ortb2Imp=e.ortb2Imp);let i=(0,o.Z)(e,"mediaTypes.banner.sizes")||[];const a=(0,o.Z)(e,"mediaTypes.video")||{},s=(0,o.Z)(e,"params.video")||{},d=Object.assign({},s,a);var l;if((0,r.isEmpty)(d)||(n.video=d),i.length>0&&(n.banner=(l=i,(0,r.isArray)(l)&&2===l.length&&!(0,r.isArray)(l[0])?[Z(l)]:l.map((e=>Z(e))))),e.nativeParams)try{n.native=JSON.stringify(e.nativeParams)}catch(e){(0,r.logError)(`${g} : Incorrect JSON : bidRequest.nativeParams`)}e.params.crid&&(n.tagid=e.params.crid.toString());let u=parseFloat(e.params.bidfloor||e.params.bidFloor);u&&(n.bidfloor=u);const p=function(e){let t=document.getElementById(e);if(!t&&-1!==e.indexOf("/")){const{divId:n}=(0,m.ky)(e);(0,r.isStr)(n)&&(t=document.getElementById(n))}if(t&&t.getBoundingClientRect){const e=t.getBoundingClientRect();let n={};return n.top_left={y:e.top,x:e.left},n.bottom_right={y:e.bottom,x:e.right},n}return null}(e.adUnitCode);if(p&&n.banner&&0!==n.banner.length){let e=function(e){return{top_left:{x:e.top_left.x+window.pageXOffset,y:e.top_left.y+window.pageYOffset},bottom_right:{x:e.bottom_right.x+window.pageXOffset,y:e.bottom_right.y+window.pageYOffset}}}(p);n.ext.coordinates=e,n.ext.viewability=U(p.top_left,M(n.banner)),U(e.top_left,M(n.banner))>.5?n.ext.visibility=w:n.ext.visibility=v}else n.ext.visibility=h;const f=function(e){let t=[];"function"==typeof e.getFloor&&[c.Mk,c.pX,c.B5].forEach((n=>{e.mediaTypes.hasOwnProperty(n)&&(n==c.Mk?e.mediaTypes.banner.sizes.forEach((i=>{B(e,n,i,t)})):B(e,n,"*",t))}));return t}(e);return f&&f.length>0&&(n.bidfloors=f),t.paapi?.enabled&&(n.ext.ae=e?.ortb2Imp?.ext?.ae),n}function B(e,t,n,i){let r=e.getFloor({currency:"USD",mediaType:t,size:n});n.length>1&&(r.size=n),r.mediaType=t,i.push(r)}function M(e){return e.reduce(((e,t)=>t.h*t.w<e.h*e.w?t:e))}function U(e,t){let n=t.w*t.h,i=N.getWindowSize(),r={x:e.x+t.w,y:e.y+t.h};return 0===n||-1===i.w||-1===i.h?0:function(e,t,n,i){if(e.x>i.x||t.x<n.x||e.y>i.y||t.y<n.y)return 0;return(Math.min(t.x,i.x)-Math.max(e.x,n.x))*(Math.min(t.y,i.y)-Math.max(e.y,n.y))}(e,r,{x:0,y:0},{x:i.w,y:i.h})/n}function q(e,t){const n=(0,r.deepClone)(e),i=(0,o.Z)(t,"0.userIdAsEids");return i&&(0,a.N)(n,"user.ext.eids",i),n}function P(e,t){const n={};return(0,r.isArray)(t)||(t=[]),t.forEach((e=>{let t=function(e){const t={};t.acid=e.auctionId||"",t.crid=(0,o.Z)(e,"params.crid")||(0,o.Z)(e,"params.0.crid")||e.adUnitCode||"",t.ext=(0,r.safeJSONEncode)(e.ext)||"";const n=(0,r.deepClone)(e);return delete n.ad,delete n.vastXml,t.rawobj=(0,r.safeJSONEncode)(n),t}(e);Object.keys(t).forEach((e=>{n[e]=n[e]||[],n[e].push(encodeURIComponent(t[e]))}))})),Object.assign({},function(e){const t={},n=(0,l.nH)();return t.logid="kfk",t.evtid="projectevents",t.project="prebid",t.pbver="9.6.0",t.cid=(0,i.R)().medianetGlobals.cid||"",t.dn=encodeURIComponent(n.domain||""),t.requrl=encodeURIComponent(n.page||""),t.event=e.name||"",t.value=e.value||"",t.rd=e.related_data||"",t}(e),n)}function z(e,t){const n=P(e,t);var i,o;i="https://navvy.media.net/log",o=(0,r.formatQS)(n),(0,f.hj)(i,{success:()=>{},error:()=>{}},o,{method:"POST",keepalive:!0})}function $(e){const t=(0,o.Z)(e,"context")||"",n=(0,o.Z)(e,"vto");"outstream"==t&&n&&(e.renderer=function(e){const t=u.Th.install({url:y});return t.setRender((function(e){window.mnet.queue.push((function(){const t={width:e.width,height:e.height,vastTimeout:e.vto,maxAllowedVastTagRedirects:e.mavtr,allowVpaid:e.avp,autoPlay:e.ap,preload:e.pl,mute:e.mt},n=e.dfp_id,i=(0,m.ky)(n).divId||n;window.mnet.mediaNetoutstreamPlayer(e,i,t)}))})),t}())}(0,i.R)().medianetGlobals=(0,i.R)().medianetGlobals||{};const N={code:g,gvlid:142,aliases:C,supportedMediaTypes:[c.Mk,c.B5,c.pX],isBidRequestValid:function(e){return e.params?e.params.cid&&(0,r.isStr)(e.params.cid)&&!(0,r.isEmptyStr)(e.params.cid)?(Object.assign((0,i.R)().medianetGlobals,!(0,i.R)().medianetGlobals.cid&&{cid:e.params.cid}),!0):((0,r.logError)(`${g} : cid should be a string`),!1):((0,r.logError)(`${g} : Missing bid parameters`),!1)},buildRequests:function(e,t){let n=function(e,t){return{site:R(e[0].params.site,t),ext:j(e[0],t),id:e[0].auctionId,imp:e.map((e=>A(e,t))),ortb2:q(t.ortb2,e),tmax:t.timeout}}(e=(0,p.lY)(e),t);return{method:"POST",url:(i=t.bidderCode,r=n.ext.customer_id,(i===b?"https://prebid.trustedstack.com/rtb/trustedstack":"https://prebid.media.net/rtb/prebid")+"?cid="+encodeURIComponent(r)),data:JSON.stringify(n)};var i,r},interpretResponse:function(e,t){let n=[];if(!e||!e.body)return(0,r.logInfo)(`${g} : response is empty`),n;let i=e.body.bidList;(0,r.isArray)(i)&&0!==i.length?(n=i.filter((e=>function(e){return!1===e.no_bid&&parseFloat(e.cpm)>0}(e))),n.forEach($)):(0,r.logInfo)(`${g} : no bids`);const a=(0,o.Z)(e,"body.ext.paApiAuctionConfigs")||[],s=(0,o.Z)(e,"body.ext.igi")||[];return 0===a.length&&0===s.length?n:(s.length>0&&a.push(...s.map((e=>{let{igs:t}=e;return t||[]})).flat()),{bids:n,paapi:a})},getUserSyncs:function(e,t){let n=(i=t,!(0,r.isEmpty)(i)&&i[0].body&&i[0].body.ext&&(0,r.isArray)(i[0].body.ext.csUrl)?i[0].body.ext.csUrl:[]);var i;return e.iframeEnabled?k(n,"iframe"):e.pixelEnabled?k(n,"image"):void 0},onTimeout:e=>{try{z({name:x,value:e.length,related_data:e[0].timeout||d.vc.getConfig("bidderTimeout")},e)}catch(e){}},onBidWon:e=>{try{z({name:_,value:e.cpm},[e])}catch(e){}},onSetTargeting:e=>{try{let t={name:I,value:e.cpm};d.vc.getConfig("enableSendAllBids")||z(t,[e])}catch(e){}},onBidderError:e=>{let{error:t,bidderRequest:n}=e;try{z({name:O,related_data:`timedOut:${t.timedOut}|status:${t.status}|message:${t.reason.message}`},n.bids)}catch(e){}},clearPageMeta:function(){E=void 0},getWindowSize:function(){return{w:window.screen.width||-1,h:window.screen.height||-1}}};(0,s.dX)(N),(0,i.z)("medianetBidAdapter")}},e=>{e.O(0,[9703,9270],(()=>{return t=896,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[1532],{4851:(e,t,n)=>{var i=n(8640),r=n(4679),o=n(154),d=n(5706),s=n(4614),a=n(5164),c=n(4699),p=n(265),l=n(7746);const u="https://onetag-sys.com/usync/",g="onetag",f=(0,a.df)({bidderCode:g});function h(e){return void 0!==e.mediaTypes&&void 0!==e.mediaTypes.video}function m(e,t){if(e===r.Mk)return w(t).length>0;if(e===r.pX&&h(t)){const e=t.mediaTypes.video.context;if("outstream"===e||"instream"===e)return T(t).length>0}return!1}function y(e){try{return void 0!==e.document.hidden?e.document.hidden:void 0!==e.document.msHidden?e.document.msHidden:void 0!==e.document.webkitHidden?e.document.webkitHidden:null}catch(e){return null}}function b(e){const t=function(){let e=window,t=window.parent;try{for(;e!==e.parent;)t=e.parent,t.location.href,e=e.parent}catch(e){}return e}();return{location:(0,p.Z)(e,"refererInfo.page",null),referrer:(0,p.Z)(e,"refererInfo.ref",null),stack:(0,p.Z)(e,"refererInfo.stack",[]),numIframes:(0,p.Z)(e,"refererInfo.numIframes",0),wWidth:t.innerWidth,wHeight:t.innerHeight,oWidth:t.outerWidth,oHeight:t.outerHeight,sWidth:t.screen.width,sHeight:t.screen.height,aWidth:t.screen.availWidth,aHeight:t.screen.availHeight,sLeft:"screenLeft"in t?t.screenLeft:t.screenX,sTop:"screenTop"in t?t.screenTop:t.screenY,xOffset:t.pageXOffset,yOffset:t.pageYOffset,docHidden:y(t),docHeight:t.document.body?t.document.body.scrollHeight:null,hLength:history.length,timing:I(),version:{prebid:"9.6.0",adapter:"1.1.1"}}}function v(e){const t=e.filter((e=>h(e))).map((e=>{const t={};return C.call(t,e),t.context=e.mediaTypes.video.context,t.playerSize=T(e),t.mediaTypeInfo=(0,l.deepClone)(e.mediaTypes.video),t.type=r.pX,t.priceFloors=S(e,r.pX,t.playerSize),t})),n=e.filter((e=>m(r.Mk,e))).map((e=>{const t={};return C.call(t,e),t.sizes=w(e),t.type=r.Mk,t.mediaTypeInfo=(0,l.deepClone)(e.mediaTypes.banner),t.priceFloors=S(e,r.Mk,t.sizes),t}));return t.concat(n)}function C(e){const t=e.params;this.adUnitCode=e.adUnitCode,t.overwriteAdUnitCode&&(this.adUnitCode=t.overwriteAdUnitCode),this.bidId=e.bidId,this.bidderRequestId=e.bidderRequestId,this.auctionId=(0,p.Z)(e,"ortb2.source.tid"),this.transactionId=(0,p.Z)(e,"ortb2Imp.ext.tid"),this.gpid=(0,p.Z)(e,"ortb2Imp.ext.gpid")||(0,p.Z)(e,"ortb2Imp.ext.data.pbadslot"),this.pubId=t.pubId,this.ext=t.ext,this.ortb2Imp=(0,p.Z)(e,"ortb2Imp"),t.pubClick&&(this.click=t.pubClick),t.dealId&&(this.dealId=t.dealId);const n=function(e){const t=document.getElementById(e);try{const{top:e,left:n,width:i,height:r}=t.getBoundingClientRect();let o=t.ownerDocument.defaultView;const d={top:e+o.pageYOffset,left:n+o.pageXOffset,width:i,height:r};let s=o.frameElement;for(;null!=s;){const{top:e,left:t}=s.getBoundingClientRect();d.top+=e+o.pageYOffset,d.left+=t+o.pageXOffset,o=o.parent,s=o.frameElement}return d}catch(e){return null}}(e.adUnitCode);n&&(this.coords=n)}function I(){try{if(null!=window.performance&&null!=window.performance.timing){const e={},t=window.performance.timing;return e.pageLoadTime=t.loadEventEnd-t.navigationStart,e.connectTime=t.responseEnd-t.requestStart,e.renderTime=t.domComplete-t.domLoading,e}}catch(e){return null}return null}function T(e){const t=e.mediaTypes.video.playerSize;return void 0!==t&&Array.isArray(t)&&t.length>0?A(t):[]}function w(e){if(void 0!==e.mediaTypes&&void 0!==e.mediaTypes.banner&&void 0!==e.mediaTypes.banner.sizes&&Array.isArray(e.mediaTypes.banner.sizes)&&e.mediaTypes.banner.sizes.length>0)return A(e.mediaTypes.banner.sizes);return!h(e)&&e.sizes&&Array.isArray(e.sizes)?A(e.sizes):[]}function A(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push({width:i[0],height:i[1]})}return t}function S(e,t,n){const i=[];return"function"==typeof e.getFloor&&n.forEach((n=>{const r=e.getFloor({currency:"EUR",mediaType:t||"*",size:[n.width,n.height]});r.size=(0,l.deepClone)(n),r.floor||(r.floor=null),i.push(r)})),i}const k={code:g,gvlid:241,supportedMediaTypes:[r.Mk,r.pX],isBidRequestValid:function(e){return void 0!==e&&void 0!==e.params&&"string"==typeof e.params.pubId&&(m(r.Mk,e)||m(r.pX,e))},buildRequests:function(e,t){const n={bids:v(e),...b(t)};t&&t.gdprConsent&&(n.gdprConsent={consentString:t.gdprConsent.consentString,consentRequired:t.gdprConsent.gdprApplies,addtlConsent:t.gdprConsent.addtlConsent}),t&&t.gppConsent&&(n.gppConsent={consentString:t.gppConsent.gppString,applicableSections:t.gppConsent.applicableSections}),t&&t.uspConsent&&(n.usPrivacy=t.uspConsent),t&&t.ortb2&&(n.ortb2=t.ortb2),e&&0!==e.length&&e[0].userIdAsEids&&(n.userId=e[0].userIdAsEids),e&&0!==e.length&&e[0].schain&&function(e){let t=!1;const n=["asi","sid","hp"];if(!e||!e.nodes)return t;t=e.nodes.reduce(((e,t)=>e?n.every((e=>t.hasOwnProperty(e))):e),!0),t||(0,l.logError)("OneTag: required schain params missing");return t}(e[0].schain)&&(n.schain=e[0].schain);try{f.hasLocalStorage()&&(n.onetagSid=f.getDataFromLocalStorage("onetag_sid"))}catch(e){}const i=navigator.connection||navigator.webkitConnection;return n.networkConnectionType=i&&i.type?i.type:null,n.networkEffectiveConnectionType=i&&i.effectiveType?i.effectiveType:null,n.fledgeEnabled=Boolean(t?.paapi?.enabled),{method:"POST",url:"https://onetag-sys.com/prebid-request",data:JSON.stringify(n)}},interpretResponse:function(e,t){const n=e.body,i=[],a=JSON.parse(t.data);if(!n||n.nobid&&!0===n.nobid)return i;if(!(n.fledgeAuctionConfigs||n.bids&&Array.isArray(n.bids)&&0!==n.bids.length))return i;if(Array.isArray(n.bids)&&n.bids.forEach((e=>{const t={requestId:e.requestId,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.creativeId,dealId:null==e.dealId?e.dealId:"",currency:e.currency,netRevenue:e.netRevenue||!1,mediaType:e.mediaType,meta:{mediaType:e.mediaType,advertiserDomains:e.adomain},ttl:e.ttl||300};if(e.dsa&&(t.meta.dsa=e.dsa),e.mediaType===r.Mk)t.ad=e.ad;else if(e.mediaType===r.pX){const{context:n,adUnitCode:i}=(0,s.sE)(a.bids,(t=>t.bidId===e.requestId&&t.type===r.pX));n===o.LD?(t.vastUrl=e.vastUrl,t.videoCacheKey=e.videoCacheKey):n===o.gZ&&(t.vastXml=e.ad,t.vastUrl=e.vastUrl,e.rendererUrl&&(t.renderer=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=d.Th.install({id:e.requestId,url:e.rendererUrl,config:t,adUnitCode:e.adUnitCode,loaded:!1});try{n.setRender((t=>{let{renderer:n,width:i,height:r,vastXml:o,adUnitCode:d}=t;n.push((()=>{window.onetag.Player.init({...e,width:i,height:r,vastXml:o,nodeId:d,config:n.getConfig()})}))}))}catch(e){}return n}({...e,adUnitCode:i})))}i.push(t)})),n.fledgeAuctionConfigs&&Array.isArray(n.fledgeAuctionConfigs)){const e=n.fledgeAuctionConfigs;return{bids:i,paapi:e}}return i},getUserSyncs:function(e,t,n,i,r){let o=[],d="";return n&&("boolean"==typeof n.gdprApplies&&(d+="&gdpr="+(n.gdprApplies?1:0)),"string"==typeof n.consentString&&(d+="&gdpr_consent="+n.consentString)),r&&"string"==typeof r.gppString&&(d+="&gpp_consent="+r.gppString),i&&"string"==typeof i&&(d+="&us_privacy="+i),e.iframeEnabled&&o.push({type:"iframe",url:u+"?cb="+(new Date).getTime()+d}),e.pixelEnabled&&o.push({type:"image",url:u+"?tag=img"+d}),o}};(0,c.dX)(k),(0,i.z)("onetagBidAdapter")}},e=>{e.O(0,[9270],(()=>{return t=4851,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[8534],{7851:(e,t,r)=>{var s=r(8640),n=r(3193),a=r(4699),o=r(6475),p=r(265),i=r(7746),d=r(4679),m=r(919);const c={code:"openx",gvlid:69,supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){const t=e.params.delDomain||e.params.platform;if(p.Z(e,"mediaTypes.banner")&&t)return!!e.params.unit||p.Z(e,"mediaTypes.banner.sizes.length")>0;return!(!e.params.unit||!t)},buildRequests:function(e,t){let r=e.filter((e=>b(e))),s=e.filter((e=>function(e){return p.Z(e,"mediaTypes.banner")||!b(e)}(e))),n=s.length?[l(s,t,d.Mk)]:[];return r.forEach((e=>{n.push(l([e],t,d.pX))})),n},interpretResponse:function(e,t){e.body||(e.body={nbr:0});return u.fromORTB({request:t.data,response:e.body})},getUserSyncs:function(e,t,r,s){if(e.iframeEnabled||e.pixelEnabled){let n=e.iframeEnabled?"iframe":"image",a=[],o="https://u.openx.net/w/1.0/pd";if(r&&(a.push("gdpr="+(r.gdprApplies?1:0)),a.push("gdpr_consent="+encodeURIComponent(r.consentString||""))),s&&a.push("us_privacy="+encodeURIComponent(s)),t.length>0&&t[0].body&&t[0].body.ext){const e=t[0].body.ext;e.delDomain?o=`https://${e.delDomain}/w/1.0/pd`:e.platform&&a.push("ph="+e.platform)}else a.push("ph=2d1251ae-7f3a-47cf-bd2a-2f288854a0ba");return[{type:n,url:`${o}${a.length>0?"?"+a.join("&"):""}`}]}}};(0,a.dX)(c);const u=(0,m.x)({context:{netRevenue:!0,ttl:300},imp(e,t,r){const s=e(t,r);return(0,i.mergeDeep)(s,{tagid:t.params.unit,ext:{divid:t.adUnitCode}}),t.params.customParams&&o.N(s,"ext.customParams",t.params.customParams),t.params.customFloor&&!s.bidfloor&&(s.bidfloor=t.params.customFloor),s},request(e,t,r,s){const n=e(t,r,s);(0,i.mergeDeep)(n,{at:1,ext:{bc:"hb_pb_ortb_2.0",pv:"9.6.0"}});const a=s.bidRequests[0];return a.params.coppa&&o.N(n,"regs.coppa",1),a.params.doNotTrack&&o.N(n,"device.dnt",1),a.params.platform&&o.N(n,"ext.platform",a.params.platform),a.params.delDomain&&o.N(n,"ext.delDomain",a.params.delDomain),a.params.response_template_name&&o.N(n,"ext.response_template_name",a.params.response_template_name),a.params.test&&(n.test=1),n},bidResponse(e,t,r){const s=e(t,r);t.ext&&(s.meta.networkId=t.ext.dsp_id,s.meta.advertiserId=t.ext.buyer_id,s.meta.brandId=t.ext.brand_id);const{ortbResponse:n}=r;return n.ext&&n.ext.paf&&(s.meta.paf=Object.assign({},n.ext.paf),s.meta.paf.content_id=p.Z(t,"ext.paf.content_id")),s},response(e,t,r,s){const{ortbRequest:n}=s;n.ext&&(n.ext.delDomain&&o.N(r,"ext.delDomain",n.ext.delDomain),n.ext.platform&&o.N(r,"ext.platform",n.ext.platform));const a=e(t,r,s);let d=p.Z(r,"ext.fledge_auction_configs");return d?(d=Object.entries(d).map((e=>{let[t,r]=e;return{bidId:t,config:(0,i.mergeDeep)(Object.assign({},r),{auctionSignals:{ortb2Imp:s.impContext[t]?.imp}})}})),{bids:a.bids,paapi:d}):a.bids},overrides:{imp:{bidfloor(e,t,r,s){const n={};e(n,r,{...s,currency:"USD"}),"USD"===n.bidfloorcur&&Object.assign(t,n)},video(e,t,r,s){{let n=r.mediaTypes[d.pX];n&&(n=Object.assign({},n,r.params.video),r={...r,mediaTypes:{[d.pX]:n}}),e(t,r,s)}}}}});function l(e,t,r){return{method:"POST",url:n.vc.getConfig("openxOrtbUrl")||"https://rtb.openx.net/openrtbb/prebidjs",data:u.toORTB({bidRequests:e,bidderRequest:t,context:{mediaType:r}})}}function b(e){return p.Z(e,"mediaTypes.video")}(0,s.z)("openxBidAdapter")},6372:(e,t,r)=>{r.d(t,{DZ:()=>a,Px:()=>o,TP:()=>i,YC:()=>p,Z:()=>n,f8:()=>c,fP:()=>u,gm:()=>s,md:()=>d});const s=["request","imp","bidResponse","response"],[n,a,o,p]=s,[i,d]=["default","pbs"],m=new Set(s);const{registerOrtbProcessor:c,getProcessors:u}=function(){const e={};return{registerOrtbProcessor(t){let{type:r,name:n,fn:a,priority:o=0,dialects:p=[i]}=t;if(!m.has(r))throw new Error(`ORTB processor type must be one of: ${s.join(", ")}`);p.forEach((t=>{e.hasOwnProperty(t)||(e[t]={}),e[t].hasOwnProperty(r)||(e[t][r]={}),e[t][r][n]={priority:o,fn:a}}))},getProcessors:t=>e[t]||{}}}()}},e=>{e.O(0,[5279,9270],(()=>{return t=7851,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[5030],{7497:(e,t,s)=>{s.d(t,{YH:()=>_});var n=s(8640),r=s(8525),i=s(7746),o=s(265),d=s(2200),a=s(3304),c=s(3193),p=s(4699),u=s(2021),b=s(4614);const l={appnexuspsp:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ib.adnxs.com/openrtb2/prebid",noP1Consent:"https://ib.adnxs-simple.com/openrtb2/prebid"},syncEndpoint:{p1Consent:"https://prebid.adnxs.com/pbs/v1/cookie_sync",noP1Consent:"https://prebid.adnxs-simple.com/pbs/v1/cookie_sync"},maxTimeout:1e3},rubicon:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction",noP1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid-server.rubiconproject.com/cookie_sync",noP1Consent:"https://prebid-server.rubiconproject.com/cookie_sync"},maxTimeout:500},openx:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid.openx.net/openrtb2/auction",noP1Consent:"https://prebid.openx.net/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid.openx.net/cookie_sync",noP1Consent:"https://prebid.openx.net/cookie_sync"},maxTimeout:1e3},openwrap:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ow.pubmatic.com/openrtb2/auction?source=pbjs",noP1Consent:"https://ow.pubmatic.com/openrtb2/auction?source=pbjs"},maxTimeout:500}};var f=s(8928),g=s(2797),m=s(7554),C=s(919),h=s(6475),y=s(9626),v=s(9933),B=s(9702),R=s(1021),q=s(6372),x=s(1087),S=s(286),P=s(9633),I=s(571),E=s(4947),O=s(9957),j=s(1136);const T=new Set(["bidderCode","bidderRequestId","uniquePbsTid","bids","timeout"]),w=(0,C.x)({processors:v.X,context:{netRevenue:!0},imp(e,t,s){Object.assign(s,t.pbsData);const n=e(t,s);if((t.bids||[]).forEach((e=>{e.ortb2Imp&&Object.keys(e.ortb2Imp).length>0&&(0,h.N)(n,`ext.prebid.imp.${e.bidder}`,e.ortb2Imp)})),Object.values(R.E).some((e=>n[e])))return n.secure=s.s2sBidRequest.s2sConfig.secure,n},request(e,t,s,n){if(t.length){let{s2sBidRequest:r,requestedBidders:o,eidPermissions:d}=n;const a=e(t,s,n);return a.tmax=r.s2sConfig.timeout??Math.min(.75*r.requestBidsTimeout,r.s2sConfig.maxTimeout??_.maxTimeout),a.ext.tmaxmax=a.ext.tmaxmax||r.requestBidsTimeout,[a.app,a.dooh,a.site].forEach((e=>{e&&!e.publisher?.id&&(0,h.N)(e,"publisher.id",r.s2sConfig.accountId)})),(0,i.isArray)(d)&&d.length>0&&(o&&(0,i.isArray)(o)&&(d=d.map((e=>({...e,bidders:e.bidders.filter((e=>o.includes(e)))})))),(0,h.N)(a,"ext.prebid.data.eidpermissions",d)),n.transmitTids||(0,h.N)(a,"ext.prebid.createtids",!1),a}(0,i.logError)("Request to Prebid Server rejected due to invalid media type(s) in adUnit.")},bidResponse(e,t,s){let n=s.actualBidRequests.get(s.seatbid.seat);null==n&&(n=s.actualBidRequests.get(null)),n&&Object.assign(s,{bidRequest:n,bidderRequest:s.actualBidderRequests.find((e=>e.bidderCode===n.bidder))});const r=e(t,s);return r.requestBidder=n?.bidder,r.native?.ortb&&(r.adm=r.native.ortb),r.requestTimestamp=s.requestTimestamp,{bid:Object.assign((0,y.m)(d.Q_.GOOD,{src:d.os.SRC,bidId:n?n.bidId||n.bid_Id:null,transactionId:s.adUnit.transactionId,adUnitId:s.adUnit.adUnitId,auctionId:s.bidderRequest.auctionId}),r),adUnit:s.adUnit.code}},overrides:{[q.DZ]:{id(e,t,s,n){t.id=n.impId},params(e,t,s,n){const r=n.s2sBidRequest.s2sConfig.adapterOptions;for(const e of n.actualBidRequests.values())(0,B.j)(t,e,n,n),r&&r[e.bidder]&&Object.assign(t.ext.prebid.bidder[e.bidder],r[e.bidder])},bidfloor(e,t,s,n){const r=(0,j.LT)((0,O.fe)((e=>[e.bidfloor,e.bidfloorcur])));let i;for(const t of n.actualBidRequests.values()){const s={};if(e(s,t,n),null==s.bidfloorcur||null==s.bidfloor){i=null;break}i=null==i?s:r(i,s)}null!=i&&Object.assign(t,i)}},[q.Z]:{fpd(e,t,s,n){n.transmitTids&&(0,h.N)(t,"source.tid",s.auctionId),(0,i.mergeDeep)(t,n.s2sBidRequest.ortb2Fragments?.global),n.s2sBidRequest.s2sConfig.extPrebid&&"object"==typeof n.s2sBidRequest.s2sConfig.extPrebid&&(0,h.N)(t,"ext.prebid",(0,i.mergeDeep)(t.ext?.prebid||{},n.s2sBidRequest.s2sConfig.extPrebid)),n.getRedactor().ortb2(t);const r=Object.entries(n.s2sBidRequest.ortb2Fragments?.bidder||{}).filter((e=>{let[t]=e;const s=n.s2sBidRequest.s2sConfig.bidders;return n.s2sBidRequest.s2sConfig.allowUnknownBidderCodes||s&&s.includes(t)})).map((e=>{let[t,s]=e;return{bidders:[t],config:{ortb2:n.getRedactor(t).ortb2(s)}}}));r.length&&(0,h.N)(t,"ext.prebid.bidderconfig",r)},extPrebidAliases(e,t,s,n){n.actualBidderRequests.forEach((s=>e(t,s,n)))},sourceExtSchain(e,t,s,n){let r=(0,o.Z)(t,"ext.prebid.schains")||[];const i=new Set(r.flatMap((e=>e.bidders)));r=Object.values(r.concat(n.actualBidderRequests.filter((e=>!i.has(e.bidderCode))).map((e=>({bidders:[e.bidderCode],schain:(0,o.Z)(e,"bids.0.schain")})))).filter((e=>{let{bidders:t,schain:s}=e;return t?.length>0&&s})).reduce(((e,t)=>{let{bidders:s,schain:n}=t;const r=JSON.stringify(n);return e.hasOwnProperty(r)||(e[r]={bidders:new Set,schain:n}),s.forEach((t=>e[r].bidders.add(t))),e}),{})).map((e=>{let{bidders:t,schain:s}=e;return{bidders:Array.from(t),schain:s}})),r.length&&(0,h.N)(t,"ext.prebid.schains",r)}},[q.YC]:{serverSideStats(e,t,s,n){n.actualBidderRequests.forEach((r=>e(t,s,{...n,bidderRequest:r,bidRequests:r.bids})))},paapiConfigs(e,t,s,n){const r=Object.values(n.impContext).flatMap((e=>(e.paapiConfigs||[]).map((t=>{const s=e.actualBidderRequests.find((e=>e.bidderCode===t.bidder)),n=e.actualBidRequests.get(t.bidder);return{adUnitCode:e.adUnit.code,ortb2:s?.ortb2,ortb2Imp:n?.ortb2Imp,bidder:t.bidder,config:t.config}}))));r.length>0&&(t.paapi=r)}}}});var D=s(9128);const U=c.vc.getConfig,$=d.os.SRC;let k,N,A=0;const _={bidders:Object.freeze([]),syncTimeout:1e3,maxBids:1,adapter:"prebidServer",allowUnknownBidderCodes:!1,adapterOptions:{},syncUrlModifier:{},ortbNative:{eventtrackers:[{event:1,methods:[1,2]}]},maxTimeout:1500};function M(e){if(!e)return;const t=Array.isArray(e)?e:[e],s=[];return t.every(((e,t,n)=>{!function(e){["endpoint","syncEndpoint"].forEach((t=>{if((0,i.isStr)(e[t])){let s=e[t];e[t]={p1Consent:s,noP1Consent:s}}!(0,i.isPlainObject)(e[t])||e[t].p1Consent&&e[t].noP1Consent||["p1Consent","noP1Consent"].forEach((s=>{e[t][s]||(0,i.logWarn)(`s2sConfig.${t}.${s} not defined. PBS request will be skipped in some P1 scenarios.`)}))}))}(e);const r=function(e){if(e.defaultVendor){let t=e.defaultVendor,s=Object.keys(e);if(!l[t])return(0,i.logError)("Incorrect or unavailable prebid server default vendor option: "+t),!1;Object.keys(l[t]).forEach((n=>{_[n]!==e[n]&&(0,b.q9)(s,n)||(e[n]=l[t][n])}))}return e.enabled="boolean"==typeof e.enabled&&e.enabled}(e);if(!1!==r){const r=function(e){const t=Object.keys(e);if(["accountId","endpoint"].filter((e=>!(0,b.q9)(t,e)&&((0,i.logError)(e+" missing in server to server config"),!0))).length>0)return!1}(e);if(!1!==r)return Array.isArray(e.bidders)&&(n[t].bidders=e.bidders.filter((e=>-1===s.indexOf(e)&&(s.push(e),!0)))),!0}return(0,i.logWarn)("prebidServer: s2s config is disabled"),!1}))?k=t:void 0}function W(e,t,s,n,r){if(k.length===A)return;A++;let o={};const d=U("userSync.filterSettings");if(d){const{all:e,iframe:t,image:s}=d,n=t||e,r=s||e;n&&(o=Object.assign({iframe:n},o)),r&&(o=Object.assign({image:r},o))}const a={uuid:(0,i.generateUUID)(),bidders:e,account:r.accountId,filterSettings:o};let c=r.userSyncLimit;(0,i.isNumber)(c)&&c>0&&(a.limit=c),t&&(a.gdpr=t.gdprApplies?1:0,!1!==t.gdprApplies&&(a.gdpr_consent=t.consentString)),s&&(a.us_privacy=s),n&&(a.gpp_sid=n.applicableSections.join(),a.gpp=n.gppString),"boolean"==typeof r.coopSync&&(a.coopSync=r.coopSync);const p=JSON.stringify(a);(0,f.hj)(L(r.syncEndpoint,t),(e=>{try{Z((e=JSON.parse(e)).bidder_status,r)}catch(e){(0,i.logError)(e)}}),p,{contentType:"text/plain",withCredentials:!0})}function Z(e,t){if(0===e.length)return;const s=e.shift();s.no_cookie?function(e,t,s,n,r){r.syncUrlModifier&&"function"==typeof r.syncUrlModifier[s]&&(t=r.syncUrlModifier[s](e,t,s));!function(e,t,s,n,r){t?"image"===e||"redirect"===e?((0,i.logMessage)(`Invoking image pixel user sync for bidder: "${s}"`),(0,i.triggerPixel)(t,n,r)):"iframe"===e?((0,i.logMessage)(`Invoking iframe user sync for bidder: "${s}"`),(0,i.insertUserSyncIframe)(t,n,r)):((0,i.logError)(`User sync type "${e}" not supported for bidder: "${s}"`),n()):((0,i.logError)(`No sync url for bidder "${s}": ${t}`),n())}(e,t,s,n,r.syncTimeout)}(s.usersync.type,s.usersync.url,s.bidder,Z.bind(null,e,t),t):Z(e,t)}c.vc.setDefaults({s2sConfig:_}),U("s2sConfig",(e=>{let{s2sConfig:t}=e;return M(t)}));let F={};function J(e){const t=function(e,t){if([e,t].every(i.isStr))return F[`${e}${t}`]}(e.auctionId,e.adId);var s,n;(0,i.isStr)(t)&&((0,i.logMessage)(`Invoking image pixel for wurl on BID_WIN: "${t}"`),(0,i.triggerPixel)(t),s=e.auctionId,n=e.adId,[s,n].every(i.isStr)&&(F[`${s}${n}`]=void 0))}function L(e,t){const s=(0,m.h)(t),n=s?e.p1Consent:e.noP1Consent;return n||(0,i.logWarn)("Missing matching consent URL when gdpr="+s),n}function z(e){let t,s,n;return Array.isArray(e)&&e.length>0&&(t=e[0].gdprConsent,s=e[0].uspConsent,n=e[0].gppConsent),{gdprConsent:t,uspConsent:s,gppConsent:n}}const V=(0,g.z3)("sync",(function(e,t,s,n){let{onResponse:r,onError:d,onBid:p,onFledge:u}=n,{gdprConsent:l}=z(t);const f=(0,i.deepClone)(e.ad_units),g=f.map((e=>e.bids.map((e=>e.bidder)).filter(i.uniques))).reduce(i.flatten,[]).filter(i.uniques),m=e.metrics.measureTime("buildRequests",(()=>function(e,t,s,n,r){const o=(0,i.timestamp)(),d=new Set,p=[],u=(0,a.O6)(e.s2sConfig),b=(()=>{const e=(0,x.hb)(u),t={};return s=>null==s?e:(t.hasOwnProperty(s)||(t[s]=(0,x.hb)((0,S.T)(P.UL,s))),t[s])})();(s=s.map((e=>b().bidRequest(e)))).forEach((e=>{const n=new Map;s.bids=e.bids.map((e=>b(e.bidder).bidRequest(e))),e.bids.forEach((s=>{null!=s.mediaTypes&&(0,i.logWarn)(`Prebid Server adapter does not (yet) support bidder-specific mediaTypes for the same adUnit. Size mapping configuration will be ignored for adUnit: ${e.code}, bidder: ${s.bidder}`),n.set(s.bidder,(0,i.getBidRequest)(s.bid_id,t))}));let r=e.code,o=1;for(;d.has(r);)o++,r=`${e.code}-${o}`;d.add(r),p.push({...e,adUnitCode:e.code,...(0,i.getDefinedParams)(n.values().next().value||{},["userId","userIdAsEids","schain"]),pbsData:{impId:r,actualBidRequests:n,adUnit:e}})}));const l={...Object.fromEntries(Object.entries(t[0]).filter((e=>{let[t]=e;return!T.has(t)}))),paapi:{enabled:t.some((e=>e.paapi?.enabled))}};return w.toORTB({bidderRequest:l,bidRequests:p,context:{currency:c.vc.getConfig("currency.adServerCurrency")||"USD",ttl:e.s2sConfig.defaultTtl||60,requestTimestamp:o,s2sBidRequest:e,requestedBidders:n,actualBidderRequests:t,eidPermissions:r,nativeRequest:e.s2sConfig.ortbNative,getRedactor:b,transmitTids:(0,I.xD)(E.Jt,u)}})}(e,t,f,g,N))),C=m&&JSON.stringify(m);(0,i.logInfo)("BidRequest: "+C);const h=L(e.s2sConfig.endpoint,l),y=(0,o.Z)(e,"s2sConfig.customHeaders",{});if(m&&C&&h){const t=e.metrics.startTiming("net");s(h,{success:function(s){let n;t();try{n=JSON.parse(s);const{bids:t,paapi:r}=e.metrics.measureTime("interpretResponse",(()=>function(e,t){return w.fromORTB({response:e,request:t})}(n,m)));t.forEach(p),r&&r.forEach(u)}catch(e){(0,i.logError)(e)}!n||n.status&&(0,b.q9)(n.status,"Error")?((0,i.logError)("error parsing response: ",n?n.status:"not valid JSON"),r(!1,g)):r(!0,g,n)},error:function(){t(),d.apply(this,arguments)}},C,{contentType:"text/plain",withCredentials:!0,browsingTopics:(0,I.xD)(E.oK,(0,a.O6)(e.s2sConfig)),customHeaders:y})}else(0,i.logError)("PBS request not made. Check endpoints.")}),"processPBSRequest");(0,i.getPrebidInternal)().setEidPermissions=function(e){N=e},a.ZP.registerBidAdapter(new function(){const e=new r.Z("prebidServer");return e.callBids=function(e,t,s,r,b){const l=e.metrics=(0,D.Bf)((0,o.Z)(t,"0.metrics")).newMetrics().renameWith((t=>[`adapter.s2s.${t}`,`adapters.s2s.${e.s2sConfig.defaultVendor}.${t}`]));r=l.startTiming("total").stopBefore(r),t.forEach((e=>(0,D.Bf)(e.metrics).join(l,{continuePropagation:!1})));let{gdprConsent:f,uspConsent:g,gppConsent:m}=z(t);if(Array.isArray(k)){if(e.s2sConfig&&e.s2sConfig.syncEndpoint&&L(e.s2sConfig.syncEndpoint,f)){let t=e.s2sConfig.bidders.map((e=>a.ZP.aliasRegistry[e]||e)).filter(((e,t,s)=>s.indexOf(e)===t));(0,i.isNumber)(e.s2sConfig.syncDelay)||(e.s2sConfig.syncDelay=1e3);let s=setTimeout((()=>{W(t,f,g,m,e.s2sConfig)}),e.s2sConfig.syncDelay);(0,n.R)().triggerUserSyncsS2S=function(){W(t,f,g,m,e.s2sConfig),clearTimeout(s)}}V(e,t,b,{onResponse:function(s,n,i){s&&t.forEach((e=>u.j8(d.FP.BIDDER_DONE,e))),function(e,t){return e?.extPrebid?.returnallbidstatus&&t?.ext?.seatnonbid}(e.s2sConfig,i)&&u.j8(d.FP.SEAT_NON_BID,{seatnonbid:i.ext.seatnonbid,auctionId:t[0].auctionId,requestedBidders:n,response:i,adapterMetrics:l}),r(!1),function(e,t,s,n){e.forEach((e=>{let r=a.ZP.getBidAdapter(e);r&&r.registerSyncs&&c.vc.runWithBidder(e,r.registerSyncs.bind(r,[],t,s,n))}))}(n,f,g,m)},onError(s,n){const{p1Consent:o="",noP1Consent:a=""}=e?.s2sConfig?.endpoint||{};o===a?(0,i.logError)(`Prebid server call failed: '${s}'. Endpoint: "${o}"}`,n):(0,i.logError)(`Prebid server call failed: '${s}'. Endpoints: p1Consent "${o}", noP1Consent "${a}"}`,n),t.forEach((e=>u.j8(d.FP.BIDDER_ERROR,{error:n,bidderRequest:e}))),r(n.timedOut)},onBid:function(t){let{adUnit:n,bid:r}=t;const o=r.metrics=e.metrics.fork().renameWith();var a,c,u;o.checkpoint("addBidResponse"),null!=r.requestId&&null!=r.requestBidder||e.s2sConfig.allowUnknownBidderCodes?o.measureTime("addBidResponse.validate",(()=>(0,p.JY)(n,r)))?(s(n,r),r.pbsWurl&&(a=r.auctionId,c=r.adId,u=r.pbsWurl,[a,c].every(i.isStr)&&(F[`${a}${c}`]=u))):s.reject(n,r,d.Gw.INVALID):((0,i.logWarn)(`PBS adapter received bid from unknown bidder (${r.bidder}), but 's2sConfig.allowUnknownBidderCodes' is not set. Ignoring bid.`),s.reject(n,r,d.Gw.BIDDER_DISALLOWED))},onFledge:e=>{c.vc.runWithBidder(e.bidder,(()=>{(0,p.Ie)({auctionId:t[0].auctionId,...e},{config:e.config})}))}})}},u.on(d.FP.BID_WON,J),Object.assign(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,type:$})},"prebidServer"),(0,n.z)("prebidServerBidAdapter")},6372:(e,t,s)=>{s.d(t,{DZ:()=>i,Px:()=>o,TP:()=>a,YC:()=>d,Z:()=>r,f8:()=>u,fP:()=>b,gm:()=>n,md:()=>c});const n=["request","imp","bidResponse","response"],[r,i,o,d]=n,[a,c]=["default","pbs"],p=new Set(n);const{registerOrtbProcessor:u,getProcessors:b}=function(){const e={};return{registerOrtbProcessor(t){let{type:s,name:r,fn:i,priority:o=0,dialects:d=[a]}=t;if(!p.has(s))throw new Error(`ORTB processor type must be one of: ${n.join(", ")}`);d.forEach((t=>{e.hasOwnProperty(t)||(e[t]={}),e[t].hasOwnProperty(s)||(e[t][s]={}),e[t][s][r]={priority:o,fn:i}}))},getProcessors:t=>e[t]||{}}}()},7554:(e,t,s)=>{s.d(t,{h:()=>r});var n=s(265);function r(e){return!e?.gdprApplies||!0===(0,n.Z)(e,"vendorData.purpose.consents.1")}}},e=>{e.O(0,[5279,951,7635,9270],(()=>{return t=7497,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[9060],{9171:(e,o,t)=>{var r=t(8640),n=t(7746),i=t(265),a=t(6475),l=t(3193),s=t(8928),d=t(2021),c=t(2200),u=t(2797),f=t(4614),m=t(5102),p=t(5975),h=t(5383),g=t(6372),y=t(9128),b=t(6066),v=t(75),F=t(9957);const k="not_found",C="random",R="Price Floors",S=(0,s.OI)(1e4),O=Symbol();let T=[O,"gptSlot","adUnitCode","size","domain","mediaType"],j=!1,x=!1,M={},$=[],U={};function Z(e,o){return Math.ceil((parseFloat(e)*Math.pow(10,o)).toFixed(1))/Math.pow(10,o)}const D=(()=>{let e;return function(){return null==e&&(e=(0,n.parseUrl)((0,m.nH)().topmostLocation,{noDecodeWholeURL:!0}).hostname),e}})();function E(e,o){let{index:t=h.K.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e?.adUnitCode||t.getAdUnit(o).code}let P={[O]:()=>"*",size:(e,o)=>(0,n.parseGPTSingleSizeArray)(o.size)||"*",mediaType:(e,o)=>o.mediaType||"banner",gptSlot:(e,o)=>function(e){let{index:o=h.K.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=o.getAdUnit({adUnitId:e});return"gam"===(0,i.Z)(t,"ortb2Imp.ext.data.adserver.name")&&t.ortb2Imp.ext.data.adserver.adslot}((e||o).adUnitId)||(0,v.ky)(E(e,o)).gptSlot,domain:D,adUnitCode:(e,o)=>E(e,o)};function B(e,o,t){return e.length?e.reduce(((e,r)=>{let n=P[r](o,t)||"*";return e.push("*"===n?["*"]:[n.toLowerCase(),"*"]),e}),[]):[]}function I(e,o){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B((0,i.Z)(e,"schema.fields")||[],o,t);if(!r.length)return{matchingFloor:void 0};let n=r.map((e=>e[0])).join("-"),l=(0,i.Z)(e,`matchingInputs.${n}`);if(l)return{...l};let s=w(r,(0,i.Z)(e,"schema.delimiter")||"|"),d=(0,f.sE)(s,(o=>e.values.hasOwnProperty(o))),c={floorMin:e.floorMin||0,floorRuleValue:e.values[d],matchingData:s[0],matchingRule:d===e.meta?.defaultRule?void 0:d};const u=(0,i.Z)(o,"ortb2Imp.ext.prebid.floors.floorMin");return"number"==typeof u&&(c.floorMin=u),c.matchingFloor=Math.max(c.floorMin,c.floorRuleValue),(0,a.N)(e,`matchingInputs.${n}`,{...c}),c}function w(e,o){return e.reduce(((e,t)=>{let r=[];return e.map((e=>{t.map((t=>{r.push(e+o+t)}))})),r})).sort(((e,o)=>e.split("*").length-o.split("*").length))}function A(e,o,t){return parseFloat((0,b.O)(e,{...o,cpm:e},t))}function N(e,o){const t=Math.pow(10,10);return e*t/(o*t)*(e*t)/t}const z={banner:e=>(0,i.Z)(e,"mediaTypes.banner.sizes")||[],video:e=>(0,i.Z)(e,"mediaTypes.video.playerSize")||[],native:e=>(0,i.Z)(e,"mediaTypes.native.image.sizes")?[(0,i.Z)(e,"mediaTypes.native.image.sizes")]:[]};function W(e,o){let t=Object.keys(e.mediaTypes||{});return"*"===o.mediaType&&1===t.length&&(o.mediaType=t[0]),"*"===o.size&&-1!==t.indexOf(o.mediaType)&&z[o.mediaType]&&1===z[o.mediaType](e).length&&(o.size=z[o.mediaType](e)[0]),o}function q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currency:"USD",mediaType:"*",size:"*"},o=this,t=U[o.auctionId];if(!t||t.skipped)return{};e=W(o,e);let i=I(t.data,{...o},{mediaType:e.mediaType,size:e.size}),a=e.currency||t.data.currency;if(i.matchingFloor&&a!==t.data.currency)try{i.matchingFloor=(0,r.R)().convertCurrency(i.matchingFloor,t.data.currency,a)}catch(e){(0,n.logWarn)(`${R}: Unable to get currency conversion for getFloor for bidder ${o.bidder}. You must have currency module enabled with defaultRates in your currency config`),a=t.data.currency}if(t.enforcement.bidAdjustment&&i.matchingFloor){const e=p.S.get(o.bidder,"inverseBidAdjustment");if(e)i.matchingFloor=e(i.matchingFloor,o);else{let e=A(i.matchingFloor,null,o);i.matchingFloor=e?N(i.matchingFloor,e):i.matchingFloor}}return i.matchingFloor?{floor:Z(i.matchingFloor,4),currency:a}:{}}function V(e,o){let t=(0,n.deepClone)(e);return t.schema.delimiter=e.schema.delimiter||"|",t.values=function(e,o){let t=e.schema.fields,r=e.schema.delimiter,n=o&&-1===t.indexOf("adUnitCode")&&t.unshift("adUnitCode");return Object.keys(e.values).reduce(((t,i)=>(t[(n?`${o}${r}${i}`:i).toLowerCase()]=e.values[i],t)),{})}(t,o),t.currency=t.currency||"USD",t}function G(e,o){let t=(0,n.deepClone)(M);if(2===(0,i.Z)(t,"data.floorsSchemaVersion")){let{modelGroups:e,...o}=t.data;t.data=Object.assign(o,function(e,o){let t=Math.floor(Math.random()*o+1);for(let o=0;o<e.length;o++)if(t-=e[o].modelWeight,t<=0)return e[o]}(e,o.modelWeightSum))}let r=0===Object.keys((0,i.Z)(t,"data.values")||{}).length;if(t.data=r?function(e){const o=e.find((e=>null!=e.floors?.schema));return e.reduce(((e,t)=>{if(null!=t.floors?.schema&&!(0,n.deepEqual)(t.floors.schema,o?.floors?.schema))return(0,n.logError)(`${R}: adUnit '${t.code}' declares a different schema from one previously declared by adUnit '${o.code}'. Floor config for '${t.code}' will be ignored.`),e;const r=Object.assign({},o?.floors,{values:void 0},t.floors);if(J(r))if(e.values){let o=V(r,t.code).values;Object.assign(e.values,o)}else(e=V(r,t.code)).location="adUnit";else null!=t.floors&&(0,n.logWarn)(`adUnit '${t.code}' provides an invalid \`floor\` definition, it will be ignored for floor calculations`,t);return e}),{})}(e):V(t.data),0===Object.keys((0,i.Z)(t,"data.values")||{}).length)t.skipped=!0,t.skippedReason=k;else{const e=(0,n.getParameterByName)("pbjs_skipRate")||((0,i.Z)(t,"data.skipRate")??t.skipRate),o=100*Math.random()<parseFloat(e);t.skipped=o,o&&(t.skippedReason=C)}return t.hasOwnProperty("floorMin")&&(t.data.floorMin=t.floorMin),function(e,o,t){const r=function(e){const{data:o,enforcement:t}=e;return o?.noFloorSignalBidders?.length>0?o.noFloorSignalBidders:t?.noFloorSignalBidders?.length>0?t.noFloorSignalBidders:[]}(o);e.forEach((e=>{e.bids.forEach((e=>{const a=r.some((o=>o===e.bidder));o.skipped||a?(a&&(0,n.logInfo)(`noFloorSignal to ${e.bidder}`),delete e.getFloor):e.getFloor=q,e.auctionId=t,e.floorData={noFloorSignaled:a,skipped:o.skipped,skipRate:(0,i.Z)(o,"data.skipRate")??o.skipRate,skippedReason:o.skippedReason,floorMin:o.floorMin,modelVersion:(0,i.Z)(o,"data.modelVersion"),modelWeight:(0,i.Z)(o,"data.modelWeight"),modelTimestamp:(0,i.Z)(o,"data.modelTimestamp"),location:(0,i.Z)(o,"data.location","noData"),floorProvider:o.floorProvider,fetchStatus:M.fetchStatus}}))}))}(e,t,o),t}function L(e){e.hasExited||($=$.filter((o=>o.timer!==e.timer)),e.reqBidsConfigObj.auctionId=e.reqBidsConfigObj.auctionId||(0,n.generateUUID)(),U[e.reqBidsConfigObj.auctionId]=G(e.reqBidsConfigObj.adUnits||(0,r.R)().adUnits,e.reqBidsConfigObj.auctionId),e.nextFn.apply(e.context,[e.reqBidsConfigObj]),e.hasExited=!0)}function _(e){return e=function(e){if((0,n.isNumber)(e.default)){let o="*";const t=(e.schema?.fields||[]).length;t?o=Array(t).fill("*").join(e.schema?.delimiter||"|"):(0,a.N)(e,"schema.fields",[O]),e.values=e.values||{},null==e.values[o]&&(e.values[o]=e.default,e.meta={defaultRule:o})}return e}(e),!!function(e){if(Array.isArray(e)&&e.length>0){if(e.every((e=>T.includes(e))))return!0;(0,n.logError)(`${R}: Fields received do not match allowed fields`)}return!1}((0,i.Z)(e,"schema.fields"))&&(o=e,t=e.schema.fields.length,r=e.schema.delimiter||"|","object"==typeof o.values&&(o.values=Object.keys(o.values).reduce(((e,n)=>(function(e,o,t,r){return"string"==typeof e&&e.split(r).length===t&&"number"==typeof o}(n,o.values[n],t,r)&&(e[n]=o.values[n]),e)),{}),Object.keys(o.values).length>0));var o,t,r}const H={1:e=>_(e),2:e=>!(!Array.isArray(e.modelGroups)||0===e.modelGroups.length)&&(e.modelWeightSum=0,e.modelGroups.every((o=>!("number"!=typeof o.modelWeight||!_(o))&&(e.modelWeightSum+=o.modelWeight,!0))))};function J(e){return"object"==typeof e&&(e.floorsSchemaVersion=e.floorsSchemaVersion||1,"function"!=typeof H[e.floorsSchemaVersion]?((0,n.logError)(`${R}: Unknown floorsSchemaVersion: `,e.floorsSchemaVersion),!1):H[e.floorsSchemaVersion](e))}function K(e,o){if(e&&"object"==typeof e&&J(e))return(0,n.logInfo)(`${R}: A ${o} set the auction floor data set to `,e),{...e,location:o};(0,n.logError)(`${R}: The floors data did not contain correct values`,e)}const Y=(0,y.g3)("priceFloors",(function(e,o){const t={reqBidsConfigObj:o,context:this,nextFn:e,haveExited:!1,timer:null};M.auctionDelay>0&&j?(t.timer=setTimeout((()=>{(0,n.logWarn)(`${R}: Fetch attempt did not return in time for auction`),M.fetchStatus="timeout",L(t)}),M.auctionDelay),$.push(t)):L(t)}));function Q(){$.forEach((e=>{clearTimeout(e.timer),L(e)})),$=[]}function X(e){let o;j=!1,M.fetchStatus="success";try{o=JSON.parse(e)}catch(t){o=e}const t=K(o,"fetch");t&&(M.data=t,M.skipRate=(0,n.isNumber)(t.skipRate)?t.skipRate:M.skipRate,M.floorProvider=t.floorProvider||M.floorProvider),Q()}function ee(e){j=!1,M.fetchStatus="error",(0,n.logError)(`${R}: Fetch errored with: `,e),Q()}function oe(e){var o;M=(0,n.pick)(e,["floorMin","enabled",e=>!1!==e,"auctionDelay",e=>e||0,"floorProvider",o=>(0,i.Z)(e,"data.floorProvider",o),"endpoint",e=>e||{},"skipRate",()=>isNaN((0,i.Z)(e,"data.skipRate"))?e.skipRate||0:e.data.skipRate,"enforcement",e=>(0,n.pick)(e||{},["enforceJS",e=>!1!==e,"enforcePBS",e=>!0===e,"floorDeals",e=>!0===e,"bidAdjustment",e=>!1!==e,"noFloorSignalBidders",e=>e||[]]),"additionalSchemaFields",e=>{return"object"==typeof e&&Object.keys(e).length>0?(o=e,void Object.keys(o).forEach((e=>{-1===T.indexOf(e)&&"function"==typeof o[e]&&(T.push(e),P[e]=o[e])}))):void 0;var o},"data",e=>e&&K(e,"setConfig")||void 0]),M.enabled?((o=M.endpoint).url&&!j?"GET"!==(o.method||"GET")?(0,n.logError)(`${R}: 'GET' is the only request method supported at this time!`):(S(o.url,{success:X,error:ee},null,{method:"GET"}),j=!0):j&&(0,n.logWarn)(`${R}: A fetch is already occuring. Skipping.`),x||(d.on(c.FP.AUCTION_END,(e=>{setTimeout((()=>delete U[e.auctionId]),3e3)})),(0,r.R)().requestBids.before(Y,50),(0,u.v5)("addBidResponse").before(te,(0,n.debugTurnedOn)()?4:50),x=!0)):((0,n.logInfo)(`${R}: Turning off module`),M={},U={},(0,u.v5)("addBidResponse").getHooks({hook:te}).remove(),(0,r.R)().requestBids.getHooks({hook:Y}).remove(),x=!1)}const te=(0,y.A)("priceFloors",(function(e,o,t,a){let l=U[t.auctionId];if(!l||!t||l.skipped)return e.call(this,o,t,a);const s=h.K.index.getBidRequest(t);let d,u=I(l.data,s,{...t,size:[t.width,t.height]});if(!u.matchingFloor)return 0!==u.matchingFloor&&(0,n.logWarn)(`${R}: unable to determine a matching price floor for bidResponse`,t),e.call(this,o,t,a);let f=l.data.currency.toUpperCase(),m=t.currency||"USD";if(f===m.toUpperCase())d=t.cpm;else if(t.originalCurrency&&f===t.originalCurrency.toUpperCase())d=t.originalCpm;else try{d=(0,r.R)().convertCurrency(t.cpm,m.toUpperCase(),f)}catch(r){return(0,n.logError)(`${R}: Unable do get currency conversion for bidResponse to Floor Currency. Do you have Currency module enabled? ${t}`),e.call(this,o,t,a)}return d=A(d,t,s),function(e,o,t,r){t.floorData={floorValue:o.matchingFloor,floorRule:o.matchingRule,floorRuleValue:o.floorRuleValue,floorCurrency:e.data.currency,cpmAfterAdjustments:r,enforcements:{...e.enforcement},matchedFields:{}},e.data.schema.fields.forEach(((r,n)=>{let i=o.matchingData.split(e.data.schema.delimiter)[n];t.floorData.matchedFields[r]=i}))}(l,u,t,d),function(e,o,t){let r=!1!==(0,i.Z)(e,"enforcement.enforceJS"),n=!0===(0,i.Z)(e,"enforcement.floorDeals")||!t.dealId,a=t.floorData.cpmAfterAdjustments<o.matchingFloor;return r&&a&&n}(l,u,t)?(a(c.Gw.FLOOR_NOT_MET),void(0,n.logWarn)(`${R}: ${t.bidderCode}'s Bid Response for ${o} was rejected due to floor not met (adjusted cpm: ${t?.floorData?.cpmAfterAdjustments}, floor: ${u?.matchingFloor})`,t)):e.call(this,o,t,a)}));l.vc.getConfig("floors",(e=>oe(e.floors))),(0,g.f8)({type:g.DZ,name:"bidfloor",fn:function(e,o,t){if("function"==typeof o.getFloor){let r,i;try{({currency:r,floor:i}=o.getFloor({currency:t.currency||l.vc.getConfig("currency.adServerCurrency")||"USD",mediaType:t.mediaType||"*",size:"*"}))}catch(e){return void(0,n.logWarn)("Cannot compute floor for bid",o)}i=parseFloat(i),null==r||null==i||isNaN(i)||Object.assign(e,{bidfloor:i,bidfloorcur:r})}}}),(0,g.f8)({type:g.DZ,name:"extPrebidFloors",fn:function(e,o,t){if(null!=e.bidfloor){let{floorMinCur:o,floorMin:r}=t.reqContext.floorMin||{};null==o&&(o=e.bidfloorcur);const n=e.ext?.prebid?.floors?.floorMinCur||e.ext?.prebid?.floorMinCur||o,i=e.ext?.prebid?.floors?.floorMin||e.ext?.prebid?.floorMin,l=(0,F.Nh)(e.bidfloor,e.bidfloorcur,o),s=!(!i||!n)&&(0,F.Nh)(i,n,o),d=s&&s<l?s:l;(0,a.N)(e,"ext.prebid.floors.floorMin",d),(null==r||r>d)&&(r=d),t.reqContext.floorMin={floorMin:r,floorMinCur:o}}},dialects:[g.md],priority:-1}),(0,g.f8)({type:g.Z,name:"extPrebidFloors",fn:function(e,o,t){x&&(0,a.N)(e,"ext.prebid.floors.enabled",e.ext?.prebid?.floors?.enabled||!1),t?.floorMin&&(0,n.mergeDeep)(e,{ext:{prebid:{floors:t.floorMin}}})},dialects:[g.md]}),(0,r.z)("priceFloors")},6372:(e,o,t)=>{t.d(o,{DZ:()=>i,Px:()=>a,TP:()=>s,YC:()=>l,Z:()=>n,f8:()=>u,fP:()=>f,gm:()=>r,md:()=>d});const r=["request","imp","bidResponse","response"],[n,i,a,l]=r,[s,d]=["default","pbs"],c=new Set(r);const{registerOrtbProcessor:u,getProcessors:f}=function(){const e={};return{registerOrtbProcessor(o){let{type:t,name:n,fn:i,priority:a=0,dialects:l=[s]}=o;if(!c.has(t))throw new Error(`ORTB processor type must be one of: ${r.join(", ")}`);l.forEach((o=>{e.hasOwnProperty(o)||(e[o]={}),e[o].hasOwnProperty(t)||(e[o][t]={}),e[o][t][n]={priority:a,fn:i}}))},getProcessors:o=>e[o]||{}}}()}},e=>{e.O(0,[9703,7635,9270],(()=>{return o=9171,e(e.s=o);var o}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[5901],{7602:(e,r,s)=>{var a=s(8640),n=s(7746),o=s(265),t=s(4699),i=s(4679),u=s(3485);const p=[i.Mk,i.pX],d={PRODUCTION:"hb-multi",TEST:"hb-multi-test"},l={code:"rise",aliases:[{code:"risexchange",gvlid:1043},{code:"openwebxchange",gvlid:280}],gvlid:1043,version:"6.0.0",supportedMediaTypes:p,isBidRequestValid:function(e){return e.params?!!e.params.org||((0,n.logWarn)("org is a mandatory param for Rise adapter"),!1):((0,n.logWarn)("no params have been set to Rise adapter"),!1)},buildRequests:function(e,r){const s={},a=e[0],n=a.params.testMode,o=a.params.rtbDomain||"https://hb.yellowblue.io/";return s.params=(0,u.ZG)(a,r),s.bids=(0,u.Gp)(e,r),{method:"POST",url:(0,u.O3)(n,o,d),data:s}},interpretResponse:function(e){let{body:r}=e;const s=[];return r.bids&&r.bids.forEach((e=>{const r=(0,u.DO)(e,"USD",360,i.pX,i.Mk);s.push(r)})),s},getUserSyncs:function(e,r){const s=[];for(const a of r)if(e.iframeEnabled&&(0,o.Z)(a,"body.params.userSyncURL")&&s.push({type:"iframe",url:(0,o.Z)(a,"body.params.userSyncURL")}),e.pixelEnabled&&(0,n.isArray)((0,o.Z)(a,"body.params.userSyncPixels"))){const e=a.body.params.userSyncPixels.map((e=>({type:"image",url:e})));s.push(...e)}return s},onBidWon:function(e){null!=e&&((0,n.logInfo)("onBidWon:",e),e.hasOwnProperty("nurl")&&e.nurl.length>0&&(0,n.triggerPixel)(e.nurl))}};(0,t.dX)(l),(0,a.z)("riseBidAdapter")}},e=>{e.O(0,[3505,9270],(()=>{return r=7602,e(e.s=r);var r}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[3184],{5456:(t,e,n)=>{var o=n(8640),r=n(3193),a=n(2797),i=n(7746),s=n(2021),c=n(2200),u=n(3304),f=n(4516),l=n(4614),g=n(9128),d=n(9633),h=n(7172);const E=(0,n(6310).Oj)((t=>u.ZP.resolveAlias(t)));let p,D,m=[],T=[],R=[];const v=function(){let t=!1;return function(){t||(Object.entries({[c.FP.AUCTION_INIT]:["onAuctionInitEvent"],[c.FP.AUCTION_END]:["onAuctionEndEvent",I],[c.FP.BID_RESPONSE]:["onBidResponseEvent"],[c.FP.BID_REQUESTED]:["onBidRequestEvent"],[c.FP.BID_ACCEPTED]:["onBidAcceptedEvent"]}).forEach((t=>{let[e,[n,o]]=t;s.on(e,(t=>{o&&o(t),T.forEach((e=>{try{e[n]&&e[n](t,e.config,D)}catch(t){(0,i.logError)(`RTD provider '${e.name}': error in '${n}':`,t)}}))}))})),t=!0)}}();function y(){return{gdpr:f.rp.getConsentData(),usp:f.nX.getConsentData(),gpp:f.TJ.getConsentData(),coppa:!!r.vc.getConfig("coppa")}}function A(){D=y();let t=[];R.forEach((e=>{const n=(0,l.sE)(m,(t=>t.name===e.name));n&&n.init&&n.init(e,D)&&t.push(Object.assign(n,{config:e}))})),T=t,(0,i.logInfo)(`Real time data module enabled, using submodules: ${T.map((t=>t.name)).join(", ")}`)}const b=(0,g.g3)("rtd",(function(t,e){D=y();const n=[],o=[];T.forEach((t=>{if("function"!=typeof t.getBidRequestData)return;n.push(t);const e=t.config;e&&e.waitForIt&&o.push(t)}));const r=o.length&&p.auctionDelay&&p.auctionDelay>0;let a,i=o.length,s=!1;const c=[];if(!n.length)return f();function u(){s||(this.config&&this.config.waitForIt&&i--,0===i&&setTimeout(f,0))}function f(){s||(s=!0,clearTimeout(a),c.forEach((t=>t())),t.call(this,e))}a=setTimeout(f,r?p.auctionDelay:0),n.forEach((t=>{const n=(0,h.fC)(e.ortb2Fragments||{},E(d.XG,t.name));c.push(n.verify),t.getBidRequestData({...e,ortb2Fragments:n.obj},u.bind(t),t.config,D)}))}));function I(t){const e=T.filter((t=>"function"==typeof t.getTargetingData));if(!e.length)return;const n=t.adUnitCodes;if(!n)return;let o=[];for(let r=e.length-1;r>=0;r--){const a=e[r].getTargetingData(n,e[r].config,D,t);a&&"object"==typeof a?o.push(a):(0,i.logWarn)("invalid getTargetingData response for sub module",e[r].name)}const r=function(t){if(!Array.isArray(t)||!t.length)return{};return t.reduce(((t,e)=>{for(let n in e)if(e.hasOwnProperty(n))if(t.hasOwnProperty(n)){const o=e[n];for(let e in o)o.hasOwnProperty(e)&&(t[n][e]=o[e])}else t[n]=e[n];return t}),{})}(o);return t.adUnits.forEach((t=>{const e=t.code&&r[t.code];e&&((0,i.logInfo)("RTD set ad unit targeting of",e,"for",t),t[c.k2.ADSERVER_TARGETING]=Object.assign(t[c.k2.ADSERVER_TARGETING]||{},e))})),t.adUnits}function P(t){T.forEach((t=>{if("function"==typeof t.onDataDeletionRequest)try{t.onDataDeletionRequest(t.config)}catch(e){(0,i.logError)(`Error executing ${t.name}.onDataDeletionRequest`,e)}}));for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];t.apply(this,n)}(0,a.bA)("realTimeData",(function(t){return m.push(t),f.qh.register(d.XG,t.name,t.gvlid),function(){const e=m.indexOf(t);e>=0&&(m.splice(e,1),A())}})),function(t){const e=t.getConfig("realTimeData",(t=>{let{realTimeData:n}=t;n.dataProviders?(e(),p=n,R=n.dataProviders,v(),(0,a.v5)("startAuction").before(b,20),u.ZP.callDataDeletionRequest.before(P),A()):(0,i.logError)("missing parameters for real time module")}))}(r.vc),(0,o.z)("rtdModule")}},t=>{t.O(0,[2075,9270],(()=>{return e=5456,t(t.s=e);var e}));t.O()}]);(self.ascChunk=self.ascChunk||[]).push([[6187],{60:(e,t,r)=>{var i=r(8640),n=r(919),o=r(9933),s=r(4699),a=r(3193),d=r(4679),c=r(4614),p=r(5706),u=r(7746),l=r(6475),m=r(265),g=r(676);const f="https://video-outstream.rubiconproject.com/apex-2.2.1.js";let b=a.vc.getConfig("rubicon")||{};a.vc.getConfig("rubicon",(e=>{(0,u.mergeDeep)(b,e.rubicon)}));var x={1:"468x60",2:"728x90",5:"120x90",7:"125x125",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",42:"2x4",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",85:"300x120",90:"548x150",94:"970x310",95:"970x100",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",152:"1000x250",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",221:"1x1",229:"320x180",230:"2000x1400",232:"580x400",234:"6x6",251:"2x2",256:"480x820",257:"400x600",258:"500x200",259:"998x200",261:"480x480",264:"970x1000",265:"1920x1080",274:"1800x200",278:"320x500",282:"320x400",288:"640x380",484:"720x1280",524:"1x2",548:"500x1000",550:"980x480",552:"300x200",558:"640x640",562:"300x431",564:"320x431",566:"320x300",568:"300x150",570:"300x125",572:"250x350",574:"620x891",576:"610x877",578:"980x552",580:"505x656",622:"192x160",632:"1200x450",634:"340x450"};(0,u._each)(x,((e,t)=>x[e]=t));const y=(0,n.x)({request(e,t,r,n){const{bidRequests:o}=n,s=e(t,r,n);var d;s.cur=["USD"],s.test=a.vc.getConfig("debug")?1:0,(0,l.N)(s,"ext.prebid.cache",{vastxml:{returnCreative:!0===b.returnVast}}),(0,l.N)(s,"ext.prebid.bidders",{rubicon:{integration:b.int_type||"pbjs"}}),(0,l.N)(s,"ext.prebid.targeting.pricegranularity",{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:(d=a.vc).getConfig("customPriceBucket")&&d.getConfig("customPriceBucket").buckets}[d.getConfig("priceGranularity")]});let c=(0,i.R)().installedModules;!c||c.length&&-1===c.indexOf("rubiconAnalyticsAdapter")||(0,l.N)(s,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),function(e,t,r){let i={};const n=(0,g.c)(r,...t.map((e=>e.params.keywords)));t.forEach((t=>{const r={user:{ext:{data:{...t.params.visitor}}},site:{ext:{data:{...t.params.inventory}}}},n=e.imp.find((e=>e.ext?.prebid?.bidder?.rubicon?.video?.language));n&&(r.site.content={language:n.ext?.prebid?.bidder?.rubicon?.video?.language}),i=(0,u.mergeDeep)(i,t.ortb2||{},r);const o=a.vc.getConfig("user.id");i.user.id=i.user.id||o})),(0,u.mergeDeep)(e,i),n&&n.length&&(0,l.N)(e,"site.keywords",n.join(","));delete e?.ext?.prebid?.storedrequest}(s,o,r.ortb2),delete s?.ext?.prebid?.storedrequest,!0===b.disableFloors&&delete s.ext.prebid.floors;return o.filter((e=>"object"==typeof e.floorData)).length>0&&(s.ext.prebid.floors={enabled:!1}),s},imp(e,t,r){const i=$(t);if(i.includes(d.Mk)&&1==i.length)return;const n=e(t,r);return n.id=t.adUnitCode,delete n.banner,"atf"===t.params.position&&n.video&&(n.video.pos=1),"btf"===t.params.position&&n.video&&(n.video.pos=3),delete n.ext?.prebid?.storedrequest,!0===t.params.bidonmultiformat&&i.length>1&&(0,l.N)(n,"ext.prebid.bidder.rubicon.formats",i),function(e,t){"USD"!=t.bidfloorcur&&(delete t.bidfloor,delete t.bidfloorcur);if(!t.bidfloor){let r=parseFloat((0,m.Z)(e,"params.floor"));isNaN(r)||(t.bidfloor=r,t.bidfloorcur="USD")}}(t,n),n},bidResponse(e,t,r){const i=e(t,r);i.meta.mediaType=(0,m.Z)(t,"ext.prebid.type");const{bidRequest:n}=r;let[o,s]="outstream"===n.mediaTypes.video?.context?k(n,d.pX):[void 0,void 0];return i.width=t.w||o||i.playerWidth,i.height=t.h||s||i.playerHeight,i.mediaType===d.pX&&"outstream"===n.mediaTypes.video.context&&(i.renderer=function(e){const t=p.Th.install({id:e.adId,url:b.rendererUrl||f,config:b.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{t.setRender(v)}catch(e){(0,u.logWarn)("Prebid Error calling setRender on renderer",e)}return t}(i)),(0,m.Z)(t,"ext.bidder.rp.advid")&&(0,l.N)(i,"meta.advertiserId",t.ext.bidder.rp.advid),i},context:{netRevenue:!1!==b.netRevenue,ttl:360},processors:o.X}),h={code:"rubicon",gvlid:52,supportedMediaTypes:[d.Mk,d.pX,d.B5],isBidRequestValid:function(e){let t=!0;if("object"!=typeof e.params)return!1;for(let t=0,r=["accountId","siteId","zoneId"];t<r.length;t++)if(e.params[r[t]]=parseInt(e.params[r[t]]),isNaN(e.params[r[t]]))return(0,u.logError)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;let r=$(e,!0);if(!r.length)return!1;r.includes(d.pX)&&(t=function(e){let t=!0,r=Object.prototype.toString.call([]),i=Object.prototype.toString.call(0);var n={mimes:r,protocols:r,linearity:i};return Object.keys(n).forEach((function(r){Object.prototype.toString.call((0,m.Z)(e,"mediaTypes.video."+r))!==n[r]&&(t=!1,(0,u.logError)("Rubicon: mediaTypes.video."+r+" is required and must be of type: "+n[r]))})),t}(e));const i=[d.Mk,d.B5].filter((e=>r.includes(e))).length>0;return i?t&&i:t},buildRequests:function(e,t){let r,i=[],n=[];if(r=e.filter((e=>{const t=$(e)||[],{length:r}=t,{bidonmultiformat:i,video:n}=e.params||{};return 1===r&&(t.includes(d.pX)||t.includes(d.B5))||2===r&&!t.includes(d.Mk)||n&&t.includes(d.pX)||i&&(t.includes(d.pX)||t.includes(d.B5))})),r&&r.length){const e=y.toORTB({bidRequests:r,bidderRequest:t});n.push({method:"POST",url:`https://${b.videoHost||"prebid-server"}.rubiconproject.com/openrtb2/auction`,data:e,bidRequest:r})}const o=e.filter((e=>{const t=$(e)||[],{bidonmultiformat:r,video:i}=e.params||{};return t.includes(d.Mk)&&(1===t.length||r||!r&&!i||!r&&i&&!t.includes(d.pX))}));if(!0!==b.singleRequest)i=n.concat(o.map((e=>{const r=h.createSlotParams(e,t);return{method:"GET",url:`https://${b.bannerHost||"fastlane"}.rubiconproject.com/a/api/fastlane.json`,data:h.getOrderedParams(r).reduce(((e,t)=>{const i=r[t];return(0,u.isStr)(i)&&""!==i||(0,u.isNumber)(i)?`${e}${I(t,i)}&`:e}),"")+`slots=1&rand=${Math.random()}`,bidRequest:e}})));else{const e=o.reduce(((e,t)=>((e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e)),{}),r=10;i=n.concat(Object.keys(e).reduce(((i,n)=>{var o,s;return(o=e[n],s=r,o.map(((e,t)=>t%s==0?o.slice(t,t+s):null)).filter((e=>e))).forEach((e=>{const r=h.combineSlotUrlParams(e.map((e=>h.createSlotParams(e,t))));i.push({method:"GET",url:`https://${b.bannerHost||"fastlane"}.rubiconproject.com/a/api/fastlane.json`,data:h.getOrderedParams(r).reduce(((e,t)=>{const i=r[t];return(0,u.isStr)(i)&&""!==i||(0,u.isNumber)(i)?`${e}${I(t,i)}&`:e}),"")+`slots=${e.length}&rand=${Math.random()}`,bidRequest:e})})),i}),[]))}return i},getOrderedParams:function(e){const t=/^tg_v/,r=/^tg_i/,i=/^eid_|^tpid_/,n=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","gpp","gpp_sid","rp_schain"].concat(Object.keys(e).filter((e=>i.test(e)))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter((e=>t.test(e)))).concat(Object.keys(e).filter((e=>r.test(e)))).concat(["tk_flint","x_source.tid","l_pb_bid_id","p_screen_res","o_ae","o_cdep","rp_floor","rp_secure","tk_user_key"]);return n.concat(Object.keys(e).filter((e=>-1===n.indexOf(e))))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];const t=e.reduce((function(t,r,i){return Object.keys(r).forEach((function(n){t.hasOwnProperty(n)||(t[n]=new Array(e.length)),t[n].splice(i,1,r[n])})),t}),{}),r=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(t).forEach((function(e){const i=t[e].join(";"),n=i.match(r);t[e]=n?n[1]:i})),t},createSlotParams:function(e,t){e.startTime=(new Date).getTime();const r=e.params,i=k(e,"banner"),[n,o]=r.latLong||[],s={account_id:r.accountId,site_id:r.siteId,zone_id:r.zoneId,size_id:i[0],alt_size_ids:i.slice(1).join(",")||void 0,rp_floor:(r.floor=parseFloat(r.floor))>=.01?r.floor:void 0,rp_secure:"1",tk_flint:`${b.int_type||"pbjs_lite"}_v9.6.0`,"x_source.tid":t.ortb2?.source?.tid,"x_imp.ext.tid":e.ortb2Imp?.ext?.tid,l_pb_bid_id:e.bidId,o_cdep:e.ortb2?.device?.ext?.cdep,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:r.userId,"p_geo.latitude":isNaN(parseFloat(n))?void 0:parseFloat(n).toFixed(4),"p_geo.longitude":isNaN(parseFloat(o))?void 0:parseFloat(o).toFixed(4),"tg_fl.eid":e.code,rf:_(e,t)};if("function"==typeof e.getFloor&&!b.disableFloors){let t;try{t=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,u.logError)("Rubicon: getFloor threw an error: ",e)}s.rp_hard_floor="object"!=typeof t||"USD"!==t.currency||isNaN(parseInt(t.floor))?void 0:t.floor}!0===r.bidonmultiformat&&(0,m.Z)(e,"mediaTypes")&&Object.keys(e.mediaTypes).length>1&&(s.p_formats=Object.keys(e.mediaTypes).join(","));let p={1:"atf",3:"btf"}[(0,m.Z)(e,"mediaTypes.banner.pos")]||"";s.p_pos="atf"===r.position||"btf"===r.position?r.position:p;const l=a.vc.getConfig("user.id");return l&&(s.ppuid=l),e?.ortb2Imp?.ext?.ae&&(s.o_ae=1),function(e,t){if(!1===b.readTopics)return;let r=[1,2,5,6,7,507].concat(b.sendSiteSegtax?.map((e=>Number(e)))||[]),i=[4,508].concat(b.sendUserSegtax?.map((e=>Number(e)))||[]),n=e.ortb2?.user?.data||[],o=e.ortb2?.site?.content?.data||[];n.forEach(j(t,"v",i)),o.forEach(j(t,"i",r))}(t,s),e.userIdAsEids&&e.userIdAsEids.forEach((e=>{try{if("adserver.org"===e.source)s.tpid_tdid=e.uids[0].id,s["eid_adserver.org"]=e.uids[0].id;else if("liveintent.com"===e.source)s["tpid_liveintent.com"]=e.uids[0].id,s["eid_liveintent.com"]=e.uids[0].id,e.ext&&Array.isArray(e.ext.segments)&&e.ext.segments.length&&(s["tg_v.LIseg"]=e.ext.segments.join(","));else if("liveramp.com"===e.source)s.x_liverampidl=e.uids[0].id;else if("id5-sync.com"===e.source)s["eid_id5-sync.com"]=`${e.uids[0].id}^${e.uids[0].atype}^${e.uids[0].ext&&e.uids[0].ext.linkType||""}`;else{const t="rubiconproject.com"===e.source?e.uids[0].id:`${e.uids[0].id}^${e.uids[0].atype||""}`;s[`eid_${e.source}`]=t}if(!s.ppuid){const t=(0,c.sE)(e.uids,(e=>e.ext&&"ppuid"===e.ext.stype));t&&t.id&&(s.ppuid=t.id)}}catch(t){(0,u.logWarn)("Rubicon: error reading eid:",e,t)}})),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(s.gdpr=Number(t.gdprConsent.gdprApplies)),s.gdpr_consent=t.gdprConsent.consentString),t.uspConsent&&(s.us_privacy=encodeURIComponent(t.uspConsent)),t.gppConsent?.gppString&&(s.gpp=t.gppConsent.gppString,s.gpp_sid=t.gppConsent?.applicableSections?.toString()),s.rp_maxbids=t.bidLimit||1,function(e,t,r){const i={user:{ext:{data:{...e.params.visitor}}},site:{ext:{data:{...e.params.inventory}}}};e.params.keywords&&(i.site.keywords=(0,u.isArray)(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);let n=(0,u.mergeDeep)({},e.ortb2||{},i),o=(0,m.Z)(e.ortb2Imp,"ext")||{},s=(0,m.Z)(e.ortb2Imp,"ext.data")||{};const a=(0,m.Z)(e,"ortb2Imp.ext.gpid"),c=(0,m.Z)(n,"regs.ext.dsa"),p={user:[4],site:[1,2,5,6]},l={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},g=function(e,t,r){return"data"===t&&Array.isArray(e)?e.filter((e=>e.segment&&(0,m.Z)(e,"ext.segtax")&&p[r]&&-1!==p[r].indexOf((0,m.Z)(e,"ext.segtax")))).map((e=>{let t=e.segment.filter((e=>e.id)).reduce(((e,t)=>(e.push(t.id),e)),[]);if(t.length>0)return t.toString()})).toString():("object"!=typeof e||Array.isArray(e))&&void 0!==e?Array.isArray(e)?e.filter((e=>{if("object"!=typeof e&&void 0!==e)return e.toString();(0,u.logWarn)("Rubicon: Filtered value: ",e,"for key",t,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString():void 0},f=function(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=g(e,i,t),s=l[i]&&n?`${l[i]}`:"data"===i?`${l[t]}iab`:`${l[t]}${i}`;r[s]=r[s]?r[s].concat(",",o):o};if(t===d.Mk){["site","user"].forEach((e=>{Object.keys(n[e]).forEach((t=>{"site"===e&&"content"===t&&n[e][t].data?f(n[e][t].data,e,"data"):"ext"!==t?f(n[e][t],e,t):n[e][t].data&&Object.keys(n[e].ext.data).forEach((t=>{f(n[e].ext.data[t],e,t,!1)}))}))})),Object.keys(s).forEach((e=>{"adserver"!==e?f(s[e],"site",e):"gam"===s[e].name&&f(s[e].adslot,name,e)})),a&&(r.p_gpid=a),c&&Object.keys(c).length&&(0,u.pick)(c,["dsainfo",e=>r.dsainfo=e,"dsarequired",e=>r.dsarequired=e,"pubrender",e=>r.dsapubrender=e,"datatopub",e=>r.dsadatatopubs=e,"transparency",e=>{Array.isArray(e)&&e.length&&(r.dsatransparency=e.reduce(((e,t)=>{const r=t.domain||"";if(!r)return e;const i=t.dsaparams||t.params;return Array.isArray(i)&&0!==i.length?(e&&(e+="~~"),e+`${r}~${i.join("_")}`):e}),""))}]),r["tg_i.pbadslot"]&&delete r["tg_i.dfp_ad_unit_code"];const e=(0,m.Z)(n,"device.sua");e&&!1!==b.chEnabled&&(0,u.pick)(e,["architecture",e=>r.m_ch_arch=e,"bitness",e=>r.m_ch_bitness=e,"browsers",e=>{if(!Array.isArray(e))return;const[t,i]=e.reduce(((e,t)=>(e[0].push(`"${t?.brand}"|v="${t?.version?.[0]}"`),e[1].push(`"${t?.brand}"|v="${t?.version?.join?.(".")}"`),e)),[[],[]]);r.m_ch_ua=t?.join?.(","),r.m_ch_full_ver=i?.join?.(",")},"mobile",e=>r.m_ch_mobile=`?${e}`,"model",e=>r.m_ch_model=e,"platform",e=>{r.m_ch_platform=e?.brand,r.m_ch_platform_ver=e?.version?.join?.(".")}])}else Object.keys(o).length&&(0,u.mergeDeep)(r.imp[0].ext,o),a&&(r.imp[0].ext.gpid=a),(0,u.mergeDeep)(r,n)}(e,d.Mk,s),!0===a.vc.getConfig("coppa")&&(s.coppa=1),e.schain&&R(e.schain)&&(s.rp_schain=h.serializeSupplyChain(e.schain)),s},serializeSupplyChain:function(e){if(!R(e))return"";const{ver:t,complete:r,nodes:i}=e;return`${t},${r}!${h.serializeSupplyChainNodes(i)}`},serializeSupplyChainNodes:function(e){const t=["asi","sid","hp","rid","name","domain"];return e.map((e=>t.map((t=>encodeURIComponent(e[t]||""))).join(","))).join("!")},interpretResponse:function(e,t){e=e.body;const{data:r}=t;if(!e||"object"!=typeof e)return[];if(e.seatbid){const t=(0,m.Z)(e,"ext.errors.rubicon");Array.isArray(t)&&t.length>0&&(0,u.logWarn)("Rubicon: Error in video response");return y.fromORTB({request:r,response:e}).bids}let i,n=e.ads,o=0;const{bidRequest:s}=t;if("object"==typeof s&&!Array.isArray(s)&&$(s).includes(d.pX)&&"object"==typeof n&&(n=n[s.adUnitCode]),!Array.isArray(n)||n.length<1)return[];let a=n.reduce(((t,r,n)=>{if(r.impression_id&&i===r.impression_id?o++:i=r.impression_id,"ok"!==r.status)return t;const a=Array.isArray(s)?s[n-o]:s;if(a&&"object"==typeof a){let e={requestId:a.bidId,currency:"USD",creativeId:r.creative_id||`${r.network||""}-${r.advertiser||""}`,cpm:r.cpm||0,dealId:r.deal,ttl:360,netRevenue:!1!==b.netRevenue,rubicon:{advertiserId:r.advertiser,networkId:r.network},meta:{advertiserId:r.advertiser,networkId:r.network,mediaType:d.Mk}};r.creative_type&&(e.mediaType=r.creative_type),r.dsa&&Object.keys(r.dsa).length&&(e.meta.dsa=r.dsa),r.adomain&&(e.meta.advertiserDomains=Array.isArray(r.adomain)?r.adomain:[r.adomain]),r.creative_type===d.pX?(e.width=a.params.video.playerWidth,e.height=a.params.video.playerHeight,e.vastUrl=r.creative_depot_url,e.impression_id=r.impression_id,e.videoCacheKey=r.impression_id):(e.ad=(c=r.script,`<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='${r.impression_id}'>\n<script type='text/javascript'>${c}<\/script>\n</div>\n</body>\n</html>`),[e.width,e.height]=x[r.size_id].split("x").map((e=>Number(e)))),e.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce(((e,t)=>(e[t.key]=t.values[0],e)),{rpfl_elemid:a.adUnitCode}),t.push(e)}else(0,u.logError)(`Rubicon: bidRequest undefined at index position:${n}`,s,e);var c;return t}),[]).sort(((e,t)=>(t.cpm||0)-(e.cpm||0))),c=e.component_auction_config?.map((e=>({config:e,bidId:e.bidId})));return c?{bids:a,paapi:c}:a},getUserSyncs:function(e,t,r,i,n){if(!w&&e.iframeEnabled){let e={};return r&&("boolean"==typeof r.gdprApplies&&(e.gdpr=Number(r.gdprApplies)),"string"==typeof r.consentString&&(e.gdpr_consent=r.consentString)),i&&(e.us_privacy=encodeURIComponent(i)),n?.gppString&&(e.gpp=n.gppString,e.gpp_sid=n.applicableSections?.toString()),e=Object.keys(e).length?`?${(0,u.formatQS)(e)}`:"",w=!0,{type:"iframe",url:`https://${b.syncHost||"eus"}.rubiconproject.com/usync.html`+e}}}};function _(e,t){let r;return r=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?r.replace(/^http:/i,"https:"):r}function v(e){const t=document.getElementById(e.adUnitCode);!function(e){const t=e.querySelector("div[id^='google_ads']");t&&t.style.setProperty("display","none")}(t),function(e){const t=e.querySelector("script[id^='sas_script']"),r=t&&t.nextSibling;r&&"iframe"===r.localName&&r.style.setProperty("display","none")}(t);const r={...{align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0},...e.renderer.getConfig()};e.renderer.push((()=>{window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:r.align,position:r.position},closeButton:r.closeButton,label:r.label,collapse:r.collapse})}))}function k(e,t){let r=e.params;if(t===d.pX){let t=[];return r.video&&r.video.playerWidth&&r.video.playerHeight?t=[r.video.playerWidth,r.video.playerHeight]:Array.isArray((0,m.Z)(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?t=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(t=e.sizes[0]),t}let i=[];return Array.isArray(r.sizes)?i=r.sizes:void 0!==(0,m.Z)(e,"mediaTypes.banner.sizes")?i=S(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=S(e.sizes):(0,u.logWarn)("Rubicon: no sizes are setup or found"),function(e){const t=[15,2,9];return e.sort(((e,r)=>{const i=t.indexOf(e),n=t.indexOf(r);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-r}))}(i)}function j(e,t,r){return i=>{const n=Number(i.ext?.segtax);r.includes(n)&&(e[`tg_${t}.tax${n}`]=i.segment?.map((e=>e.id)).join(","))}}function S(e){return(0,u.parseSizesInput)(e).reduce(((e,t)=>{let r=parseInt(x[t],10);return r&&e.push(r),e}),[])}function A(e){let t=void 0!==(0,m.Z)(e,`mediaTypes.${d.pX}`),r=void 0!==(0,m.Z)(e,`mediaTypes.${d.Mk}`),i=void 0!==(0,m.Z)(e,"params.bidonmultiformat"),n="object"!=typeof(0,m.Z)(e,"params.video");return!(!t||!i)||(r&&n&&(t=!1),t&&n&&(0,l.N)(e,"params.video",{}),t)}function $(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[];if(A(e)){if(-1===["outstream","instream"].indexOf((0,m.Z)(e,`mediaTypes.${d.pX}.context`)))return t&&(0,u.logError)("Rubicon: mediaTypes.video.context must be outstream or instream"),r;if(k(e,d.pX).length<2)return t&&(0,u.logError)("Rubicon: could not determine the playerSize of the video"),r;t&&(0,u.logMessage)("Rubicon: making video request for adUnit",e.adUnitCode),r.push(d.pX)}if(void 0!==(0,m.Z)(e,`mediaTypes.${d.B5}`)&&r.push(d.B5),void 0!==(0,m.Z)(e,`mediaTypes.${d.Mk}`)){if(0===k(e,d.Mk).length)return t&&(0,u.logError)("Rubicon: could not determine the sizes for banner request"),r;t&&(0,u.logMessage)("Rubicon: making banner request for adUnit",e.adUnitCode),r.push(d.Mk)}return r}function R(e){let t=!1;const r=["asi","sid","hp"];return e.nodes?(t=e.nodes.reduce(((e,t)=>e?r.every((e=>t.hasOwnProperty(e))):e),!0),t||(0,u.logError)("Rubicon: required schain params missing"),t):t}function I(e,t){return"rp_schain"===e?`rp_schain=${t}`:`${e}=${encodeURIComponent(t)}`}var w=!1;(0,s.dX)(h),(0,i.z)("rubiconBidAdapter")},6372:(e,t,r)=>{r.d(t,{DZ:()=>o,Px:()=>s,TP:()=>d,YC:()=>a,Z:()=>n,f8:()=>u,fP:()=>l,gm:()=>i,md:()=>c});const i=["request","imp","bidResponse","response"],[n,o,s,a]=i,[d,c]=["default","pbs"],p=new Set(i);const{registerOrtbProcessor:u,getProcessors:l}=function(){const e={};return{registerOrtbProcessor(t){let{type:r,name:n,fn:o,priority:s=0,dialects:a=[d]}=t;if(!p.has(r))throw new Error(`ORTB processor type must be one of: ${i.join(", ")}`);a.forEach((t=>{e.hasOwnProperty(t)||(e[t]={}),e[t].hasOwnProperty(r)||(e[t][r]={}),e[t][r][n]={priority:s,fn:o}}))},getProcessors:t=>e[t]||{}}}()}},e=>{e.O(0,[5279,951,3157,9270],(()=>{return t=60,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[9225],{8689:(n,e,i)=>{var s=i(8640),o=i(3193),r=i(3304),t=i(7746),c=i(265),a=i(6475),f=i(6372);const h="Invalid schain object found: ",d=" should be a string",l=" should be an Integer",u=" should be an object",g={STRICT:"strict",RELAXED:"relaxed",OFF:"off"},p=[];function b(n,e){let i=g.STRICT;if(function(n){return!(void 0===n||!(0,t.isPlainObject)(n)&&((0,t.logError)(h+"the following schain config will not be used as schain is not an object.",n),1))}(n)){if((0,t.isStr)(n.validation)&&-1!=p.indexOf(n.validation)&&(i=n.validation),i===g.OFF)return n.config;if(function(n,e){let i="Detected something wrong within an schain config:",s="";function o(n){s+="\n"+n}function r(){!0===e?(0,t.logError)(i,n,s):(0,t.logWarn)(i,n,s)}if(!(0,t.isPlainObject)(n)&&(o("schain.config"+u),r(),e))return!1;if((0,t.isNumber)(n.complete)&&(0,t.isInteger)(n.complete)||o("schain.config.complete"+l),(0,t.isStr)(n.ver)||o("schain.config.ver"+d),n.hasOwnProperty("ext")&&((0,t.isPlainObject)(n.ext)||o("schain.config.ext"+u)),(0,t.isArray)(n.nodes))n.nodes.forEach(((n,e)=>{(0,t.isStr)(n.asi)||o(`schain.config.nodes[${e}].asi`+d),(0,t.isStr)(n.sid)||o(`schain.config.nodes[${e}].sid`+d),(0,t.isNumber)(n.hp)&&(0,t.isInteger)(n.hp)||o(`schain.config.nodes[${e}].hp`+l),n.hasOwnProperty("rid")&&((0,t.isStr)(n.rid)||o(`schain.config.nodes[${e}].rid`+d)),n.hasOwnProperty("name")&&((0,t.isStr)(n.name)||o(`schain.config.nodes[${e}].name`+d)),n.hasOwnProperty("domain")&&((0,t.isStr)(n.domain)||o(`schain.config.nodes[${e}].domain`+d)),n.hasOwnProperty("ext")&&((0,t.isPlainObject)(n.ext)||o(`schain.config.nodes[${e}].ext`+u))}));else if(o("schain.config.nodes should be an Array"),r(),e)return!1;return!(s.length>0&&(r(),e))}(n.config,!(i!==g.STRICT)))return n.config;(0,t.logError)(h+`due to the 'strict' validation setting, this schain config will not be passed to bidder '${e}'. See above error for details.`)}return null}function m(n,e){const i=o.vc.getConfig("schain"),s=o.vc.getBidderConfig();e.forEach((n=>{let e=n.bidderCode,o=function(n){return s[n]&&s[n].schain||i}(e);n.bids.forEach((n=>{let i=b(o,e);i&&(n.schain=(0,t.deepClone)(i))}))})),n(e)}(0,t._each)(g,(n=>p.push(n))),r.ZP.makeBidRequests.after(m),(0,f.f8)({type:f.Z,name:"sourceExtSchain",fn:function(n,e,i){if(!(0,c.Z)(n,"source.ext.schain")){const e=(0,c.Z)(i,"bidRequests.0.schain");e&&(0,a.N)(n,"source.ext.schain",e)}}}),(0,s.z)("schain")},6372:(n,e,i)=>{i.d(e,{DZ:()=>r,Px:()=>t,TP:()=>a,YC:()=>c,Z:()=>o,f8:()=>d,fP:()=>l,gm:()=>s,md:()=>f});const s=["request","imp","bidResponse","response"],[o,r,t,c]=s,[a,f]=["default","pbs"],h=new Set(s);const{registerOrtbProcessor:d,getProcessors:l}=function(){const n={};return{registerOrtbProcessor(e){let{type:i,name:o,fn:r,priority:t=0,dialects:c=[a]}=e;if(!h.has(i))throw new Error(`ORTB processor type must be one of: ${s.join(", ")}`);c.forEach((e=>{n.hasOwnProperty(e)||(n[e]={}),n[e].hasOwnProperty(i)||(n[e][i]={}),n[e][i][o]={priority:t,fn:r}}))},getProcessors:e=>n[e]||{}}}()}},n=>{n.O(0,[9270],(()=>{return e=8689,n(n.s=e);var e}));n.O()}]);(self.ascChunk=self.ascChunk||[]).push([[3238],{3444:(e,t,n)=>{var i=n(8640),r=n(4699),s=n(3193),a=n(4679),o=n(7746);const d=["inScreen","inImage","inArticle","inBanner"],p={[a.Mk]:"display",[a.pX]:"video"},c="fixed",u="mobile",l="unknown",g=()=>{const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection||{};switch(e.type||e.effectiveType){case"wifi":case"ethernet":return c;case"cellular":case"wimax":return u;default:return/iPad|iPhone|iPod/.test(navigator.userAgent)||/android/i.test(navigator.userAgent)?l:c}};function m(e){return!!e.mediaTypes&&!!e.mediaTypes.video}function b(e){const t=e.params;return!!t.publisherId&&!!t.adUnitId&&d.indexOf(t.placement)>-1}function h(e){const t=e.params,n=(0,o._map)(Object.keys(e.mediaTypes),(function(e){return p[e]})),i={id:e.bidId,transactionId:e.ortb2Imp?.ext?.tid,gpid:e.ortb2Imp?.ext?.gpid,sizes:e.sizes,supplyTypes:n,adUnitId:t.adUnitId,adUnitCode:e.adUnitCode,geom:S(e.adUnitCode),placement:t.placement,requestCount:e.bidderRequestsCount||1};return m(e)&&(i.videoParams=y(e)),i}function y(e){const t=e.mediaTypes.video||{};return t.playerSize&&(t.w=t.playerSize[0][0],t.h=t.playerSize[0][1]),t}function f(e){const t="display"===(n=e.mediaType)?a.Mk:"video"===n?a.pX:n;var n;const i={requestId:e.bidId,cpm:e.price,width:e.width,height:e.height,creativeId:e.creativeId,currency:e.currency,netRevenue:!0,mediaType:t,ttl:e.ttl,nurl:e.nurl,meta:{advertiserDomains:e&&e.adomain&&e.adomain.length>0?e.adomain:[]}};return t===a.pX?i.vastXml=e.content:i.ad=e.content,i}function v(){const e=(()=>{try{const e=performance.getEntriesByType("navigation")[0];return Math.round(e.responseStart-e.startTime)}catch(e){try{const e=performance.timing;return Math.round(e.responseStart-e.fetchStart)}catch(e){return 0}}})();return e>=0&&e<=performance.now()?e:0}function S(e){const t=document.getElementById(e);if(t){const e=window.scrollY,{top:n,left:i,width:r,height:s}=t.getBoundingClientRect();return{scrollY:e,top:n,left:i,width:r,height:s,viewport:{width:window.innerWidth,height:window.innerHeight}}}}const I={code:"seedtag",gvlid:157,aliases:["st"],supportedMediaTypes:[a.Mk,a.pX],isBidRequestValid:e=>m(e)?function(e){const t=y(e);let n=!!e.params.publisherId&&!!e.params.adUnitId&&m(e)&&!!t.playerSize&&(0,o.isArray)(t.playerSize)&&t.playerSize.length>0;return"inStream"===e.params.placement?n&&"instream"===t.context:n&&"outstream"===t.context&&function(e){return!!e.mediaTypes&&!!e.mediaTypes.banner}(e)&&b(e)}(e):b(e),buildRequests(e,t){const n={url:t.refererInfo.page,publisherToken:e[0].params.publisherId,cmp:!!t.gdprConsent,timeout:t.timeout,version:"9.6.0",connectionType:g(),auctionStart:t.auctionStart||Date.now(),ttfb:v(),bidRequests:(0,o._map)(e,h),user:{topics:[],eids:[]}};if(n.cmp){const e=t.gdprConsent.gdprApplies;void 0!==e&&(n.ga=e),n.cd=t.gdprConsent.consentString}t.uspConsent&&(n.uspConsent=t.uspConsent),e[0].schain&&(n.schain=e[0].schain);let i=s.vc.getConfig("coppa");i&&(n.coppa=i),t.gppConsent?n.gppConsent={gppString:t.gppConsent.gppString,applicableSections:t.gppConsent.applicableSections}:t.ortb2?.regs?.gpp&&(n.gppConsent={gppString:t.ortb2.regs.gpp,applicableSections:t.ortb2.regs.gpp_sid}),t.ortb2?.user?.data&&(n.user.topics=t.ortb2.user.data),e[0]&&e[0].userIdAsEids&&(n.user.eids=e[0].userIdAsEids),t.ortb2?.bcat&&(n.bcat=t.ortb2?.bcat),t.ortb2?.badv&&(n.badv=t.ortb2?.badv),t.ortb2?.device?.sua&&(n.sua=t.ortb2.device.sua);return{method:"POST",url:"https://s.seedtag.com/c/hb/bid",data:JSON.stringify(n)}},interpretResponse:function(e){const t=e.body;return t&&t.bids&&(0,o.isArray)(t.bids)?(0,o._map)(t.bids,(function(e){return f(e)})):[]},getUserSyncs(e,t){const n=t[0];if(e.iframeEnabled&&n){const e=n.body.cookieSync;return e?[{type:"iframe",url:e}]:[]}return[]},onTimeout(e){const t=function(e){let t="";if((0,o.isArray)(e)&&e[0]&&(0,o.isArray)(e[0].params)&&e[0].params[0]){const n=e[0].params[0],i=e[0].timeout;t="?publisherToken="+n.publisherId+"&adUnitId="+n.adUnitId+"&timeout="+i}return"https://s.seedtag.com/se/hb/timeout"+t}(e);(0,o.triggerPixel)(t)},onBidWon:function(e){e&&e.nurl&&(0,o.triggerPixel)(e.nurl)}};(0,r.dX)(I),(0,i.z)("seedtagBidAdapter")}},e=>{e.O(0,[9270],(()=>{return t=3444,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[2972],{4834:(o,e,t)=>{var n=t(8640),r=t(7746),d=t(2797),i=t(4516),a=t(5164),u=t(9633),c=t(1694);const s=(0,a.df)({moduleType:u.y2,moduleName:"sharedId"}),l="cookie",m="html5",f="_pubcid_optout",g="PublisherCommonId";function p(o,e){if(e===l)return s.getCookie(o);if(e===m&&s.hasLocalStorage()){const e=s.getDataFromLocalStorage(`${o}_exp`);if(!e)return s.getDataFromLocalStorage(o);if(new Date(e).getTime()-Date.now()>0)return s.getDataFromLocalStorage(o)}}function I(o,e){return function(t,n){e?b(e,o,(()=>{t(n()||o)}))():t(o)}}function b(o){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2?arguments[2]:void 0;if(!o)return;const n=(0,r.parseUrl)(o);n.search.id=encodeURIComponent("pubcid:"+e);const d=(0,r.buildUrl)(n);return function(){(0,r.triggerPixel)(d,t)}}function h(){return!!(s.cookiesAreEnabled()&&p(f,l)||s.hasLocalStorage()&&p(f,m))}const v={name:"sharedId",aliasName:"pubCommonId",gvlid:i.$P,decode(o,e){if(h())return void(0,r.logInfo)("PubCommonId decode: Has opted-out");(0,r.logInfo)(" Decoded value PubCommonId "+o);return{pubcid:o}},getId:function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(h())return void(0,r.logInfo)("PubCommonId: Has opted-out");const t=i.VP.getCoppa();if(t)return void(0,r.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");const{params:{create:n=!0,pixelUrl:d}={}}=o;let a=e;if(!a){try{"object"==typeof window[g]&&(a=window[g].getId())}catch(o){}a||(a=n&&(0,r.hasDeviceAccess)()?(0,r.generateUUID)():void 0)}return{id:a,callback:I(a,d)}},extendId:function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(h())return(0,r.logInfo)("PubCommonId: Has opted-out"),{id:void 0};const t=i.VP.getCoppa();if(t)return void(0,r.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");const{params:{extend:n=!1,pixelUrl:d}={}}=o;if(n){if(d){return{callback:b(d,e)}}return{id:e}}},domainOverride:(0,c.U)(s,"sharedId"),eids:{pubcid:{source:"pubcid.org",atype:1}}};(0,d.Bx)("userId",v),(0,n.z)("sharedIdSystem")}},o=>{o.O(0,[7748,9270],(()=>{return e=4834,o(o.s=e);var e}));o.O()}]);(self.ascChunk=self.ascChunk||[]).push([[6312],{6349:(e,t,r)=>{var a=r(8640),n=r(4699),i=r(3193),o=r(4679),d=r(7746),s=r(265);const p="sharethrough",l={getProtocol:function(){return window.location.protocol}},c={code:p,supportedMediaTypes:[o.pX,o.Mk],gvlid:80,isBidRequestValid:e=>!!e.params.pkey&&e.bidder===p,buildRequests:(e,t)=>{const r=t.timeout,a=t.ortb2||{},n=l.getProtocol().indexOf("http")<0||l.getProtocol().indexOf("https")>-1,o={id:(0,d.generateUUID)(),at:1,cur:["USD"],tmax:r,site:{domain:(0,s.Z)(t,"refererInfo.domain",window.location.hostname),page:(0,s.Z)(t,"refererInfo.page",window.location.href),ref:(0,s.Z)(t,"refererInfo.ref"),...a.site},device:{ua:navigator.userAgent,language:navigator.language,js:1,dnt:"1"===navigator.doNotTrack?1:0,h:window.screen.height,w:window.screen.width,ext:{}},regs:{coppa:!0===i.vc.getConfig("coppa")?1:0,ext:{}},source:{tid:t.ortb2?.source?.tid,ext:{version:"9.6.0",str:"4.3.0",schain:e[0].schain}},bcat:(0,s.Z)(t.ortb2,"bcat")||e[0].params.bcat||[],badv:(0,s.Z)(t.ortb2,"badv")||e[0].params.badv||[],test:0};if(t.ortb2?.device?.ext?.cdep&&(o.device.ext.cdep=t.ortb2.device.ext.cdep),o.user=y(a.user,{}),o.user.ext||(o.user.ext={}),o.user.ext.eids=e[0].userIdAsEids||[],t.gdprConsent){const e=!0===t.gdprConsent.gdprApplies;o.regs.ext.gdpr=e?1:0,e&&(o.user.ext.consent=t.gdprConsent.consentString)}t.uspConsent&&(o.regs.ext.us_privacy=t.uspConsent),t?.gppConsent?.gppString?(o.regs.gpp=t.gppConsent.gppString,o.regs.gpp_sid=t.gppConsent.applicableSections):t?.ortb2?.regs?.gpp&&(o.regs.ext.gpp=t.ortb2.regs.gpp,o.regs.ext.gpp_sid=t.ortb2.regs.gpp_sid),t?.ortb2?.regs?.ext?.dsa&&(o.regs.ext.dsa=t.ortb2.regs.ext.dsa);return e.map((e=>{const r={ext:{}},a=(0,s.Z)(e,"ortb2Imp.ext.tid");a&&(r.ext.tid=a);const i=(0,s.Z)(e,"ortb2Imp.ext.gpid")||(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot");i&&(r.ext.gpid=i);const o=(0,s.Z)(e,"mediaTypes.video");if(t.paapi?.enabled&&e.mediaTypes.banner&&(0,d.mergeDeep)(r,{ext:{ae:1}}),o){let[e,t]=[640,360];o.playerSize&&o.playerSize[0]&&o.playerSize[0][0]&&o.playerSize[0][1]&&([e,t]=o.playerSize[0]);const a=e=>e.plcmt?e.placement:"instream"===e.context?1:+(0,s.Z)(e,"placement",4);r.video={pos:y(o.pos,0),topframe:(0,d.inIframe)()?0:1,skip:y(o.skip,0),linearity:y(o.linearity,1),minduration:y(o.minduration,5),maxduration:y(o.maxduration,60),playbackmethod:o.playbackmethod||[2],api:m(o),mimes:o.mimes||["video/mp4"],protocols:u(o),w:e,h:t,startdelay:y(o.startdelay,0),skipmin:y(o.skipmin,0),skipafter:y(o.skipafter,0),placement:a(o),plcmt:o.plcmt?o.plcmt:null},o.delivery&&(r.video.delivery=o.delivery),o.companiontype&&(r.video.companiontype=o.companiontype),o.companionad&&(r.video.companionad=o.companionad)}else r.banner={pos:(0,s.Z)(e,"mediaTypes.banner.pos",0),topframe:(0,d.inIframe)()?0:1,format:e.sizes.map((e=>({w:+e[0],h:+e[1]})))};return{id:e.bidId,tagid:String(e.params.pkey),secure:n?1:0,bidfloor:g(e),...r}})).filter((e=>!!e)).map((e=>({method:"POST",url:"https://btlr.sharethrough.com/universal/v1?supply_id=WYu2BXv1",data:{...o,imp:[e]}})))},interpretResponse:(e,t)=>{let{body:r}=e;if(!r||!r.seatbid||0===r.seatbid.length||!r.seatbid[0].bid||0===r.seatbid[0].bid.length)return[];const a=r.ext?.auctionConfigs,n=r.seatbid[0].bid.map((e=>{const a={requestId:e.impid,width:+e.w,height:+e.h,cpm:+e.price,creativeId:e.crid,dealId:e.dealid||null,mediaType:t.data.imp[0].video?o.pX:o.Mk,currency:r.cur||"USD",netRevenue:!0,ttl:360,ad:e.adm,nurl:e.nurl,meta:{advertiserDomains:e.adomain||[],networkId:e.ext?.networkId||null,networkName:e.ext?.networkName||null,agencyId:e.ext?.agencyId||null,agencyName:e.ext?.agencyName||null,advertiserId:e.ext?.advertiserId||null,advertiserName:e.ext?.advertiserName||null,brandId:e.ext?.brandId||null,brandName:e.ext?.brandName||null,demandSource:e.ext?.demandSource||null,dchain:e.ext?.dchain||null,primaryCatId:e.ext?.primaryCatId||null,secondaryCatIds:e.ext?.secondaryCatIds||null,mediaType:e.ext?.mediaType||null}};return a.mediaType===o.pX&&(a.ttl=3600,a.vastXml=e.adm),a}));return a?{bids:n,paapi:r.ext?.auctionConfigs||{}}:n},getUserSyncs:(e,t)=>e.pixelEnabled&&void 0!==(0,s.Z)(t,"0.body.cookieSyncUrls")?t[0].body.cookieSyncUrls.map((e=>({type:"image",url:e}))):[],onTimeout:e=>{},onBidWon:e=>{},onSetTargeting:e=>{}};function m(e){let{api:t}=e,r=[2];return t&&Array.isArray(t)&&t.length>0?t:r}function u(e){let{protocols:t}=e,r=[2,3,5,6,7,8];return t&&Array.isArray(t)&&t.length>0?t:r}function g(e){let t=null;if("function"==typeof e.getFloor){const r=e.getFloor({currency:"USD",mediaType:e.mediaTypes&&e.mediaTypes.video?"video":"banner",size:e.sizes.map((e=>({w:e[0],h:e[1]})))});"object"!=typeof r||"USD"!==r.currency||isNaN(parseFloat(r.floor))||(t=parseFloat(r.floor))}return null!==t?t:e.params.floor}function y(e,t){return null==e?t:e}(0,n.dX)(c),(0,a.z)("sharethroughBidAdapter")}},e=>{e.O(0,[9270],(()=>{return t=6349,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[3693],{8649:(e,r,t)=>{var o=t(8640),i=t(4699),n=t(4679),s=t(3193),a=t(7746),d=t(6475),p=t(265),u=t(5164),g=t(8928),l=t(919);const c="taboola",b="USD",f="user-id",m=`taboola global:${f}`,y="https://beacon.bidder.taboola.com",h={storageManager:(0,u.df)({bidderCode:c}),getUserId:()=>{const{getFromLocalStorage:e,getFromCookie:r,getFromTRC:t}=h;try{return e()||r()||t()}catch(e){return 0}},getFromCookie(){const{cookiesAreEnabled:e,getCookie:r}=h.storageManager;if(e()){const e=r("trc_cookie_storage");let t;if(e&&(t=h.getCookieDataByKey(e,f)),t)return t;if(t=r("t_gid"),t)return t;if(t=r("t_pt_gid"),t)return t;const o=r("tbla_id");if(o)return o}},getCookieDataByKey(e,r){if(!e)return;const[,t=""]=e.split(`${r}=`);return t},getFromLocalStorage(){const{hasLocalStorage:e,localStorageIsEnabled:r,getDataFromLocalStorage:t}=h.storageManager;if(e()&&r())return t(m)},getFromTRC:()=>window.TRC?window.TRC.user_id:0},S={getPageUrl:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?.page||(0,a.getWindowSelf)().location.href},getReferrer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?.ref||(0,a.getWindowSelf)().document.referrer}},x=(0,l.x)({context:{netRevenue:!0,mediaType:n.Mk,ttl:300},imp(e,r,t){let o=e(r,t);return function(e,r){const{tagId:t,position:o}=e.params;if(r.banner=function(e,r){return{...C(e.sizes),pos:r}}(e,o),r.tagid=t,"function"==typeof e.getFloor){const t=e.getFloor({currency:b,size:"*"});"object"!=typeof t||t.currency!==b||isNaN(parseFloat(t.floor))||(r.bidfloor=parseFloat(t.floor),r.bidfloorcur=b)}else{const{bidfloor:t=null,bidfloorcur:o=b}=e.params;r.bidfloor=t,r.bidfloorcur=o}(0,d.N)(r,"ext.gpid",(0,p.Z)(e,"ortb2Imp.ext.gpid"))}(r,o),o},request(e,r,t,o){const i=e(r,t,o);return function(e,r,t){const{refererInfo:o,gdprConsent:i={},uspConsent:n}=e,a=function(e,r,t){let{publisherId:o}=e;const{getPageUrl:i,getReferrer:n}=S;return{id:o,name:o,domain:t?.site?.domain||r?.domain||window.location?.host,page:t?.site?.page||i(r),ref:t?.site?.ref||n(r),publisher:{id:o},content:{language:navigator.language}}}(r.params,o,e.ortb2);(0,d.N)(t,"device.ua",navigator.userAgent);const p=h.getUserId(i,n);null==t.user&&(t.user={buyeruid:0,ext:{}});p&&0!==p&&(0,d.N)(t,"user.buyeruid",p);null==t.regs?.ext&&(t.regs={ext:{}});(0,d.N)(t,"regs.coppa",0),i.gdprApplies&&((0,d.N)(t,"user.ext.consent",e.gdprConsent.consentString),(0,d.N)(t,"regs.ext.gdpr",1));n&&(0,d.N)(t,"regs.ext.us_privacy",n);e.ortb2?.regs?.gpp&&((0,d.N)(t,"regs.ext.gpp",e.ortb2.regs.gpp),(0,d.N)(t,"regs.ext.gpp_sid",e.ortb2.regs.gpp_sid));s.vc.getConfig("coppa")&&(0,d.N)(t,"regs.coppa",1);const u=e.ortb2||{bcat:[],badv:[],wlang:[]};(0,d.N)(t,"source.fd",1),t.id=e.bidderRequestId,t.site=a,t.tmax=null==e.timeout?void 0:parseInt(e.timeout),t.bcat=u.bcat||r.params.bcat||[],t.badv=u.badv||r.params.badv||[],t.wlang=u.wlang||r.params.wlang||[],(0,d.N)(t,"ext.pageType",u?.ext?.data?.pageType||u?.ext?.data?.section||r.params.pageType),(0,d.N)(t,"ext.prebid.version","9.6.0")}(t,o.bidRequests[0],i),i},bidResponse(e,r,t){const o=e(r,t);return o.nurl=r.nurl,o.ad=(0,a.replaceAuctionPrice)(r.adm,r.price),r.ext&&r.ext.dchain&&(0,d.N)(o,"meta.dchain",r.ext.dchain),o}}),R={supportedMediaTypes:[n.Mk],gvlid:42,code:c,isBidRequestValid:e=>!!(e.sizes&&e.params&&e.params.publisherId&&e.params.tagId),buildRequests:(e,r)=>{const[t]=e,o=x.toORTB({bidderRequest:r,bidRequests:e}),{publisherId:i}=t.params;return{url:"https://display.bidder.taboola.com/OpenRTB/TaboolaHB/auction?publisher="+i,method:"POST",data:o,bids:e,options:{withCredentials:!1}}},interpretResponse:(e,r)=>{if(!r||!r.bids||!r.data)return[];if(!e||!e.body)return[];const t=[],o=[];if(e.body.seatbid&&e.body.seatbid.length&&e.body.seatbid[0].bid&&e.body.seatbid[0].bid.length)t.push(...x.fromORTB({response:e.body,request:r.data}).bids);else if(!e.body.ext||!e.body.ext.igbid||!e.body.ext.igbid.length)return[];return(0,a.isArray)(e.body.ext?.igbid)&&e.body.ext.igbid.forEach((e=>{if(!(e&&e.igbuyer&&e.igbuyer.length&&e.igbuyer[0].buyerdata))return;let r=(0,a.safeJSONParse)(e.igbuyer[0]?.buyerdata);if(!r)return;const t={};e.igbuyer.forEach((e=>{if(!e||!e.buyerdata||!e.origin)return;let r=(0,a.safeJSONParse)(e.buyerdata);r&&r.perBuyerSignals&&e.origin in r.perBuyerSignals&&(t[e.origin]=r.perBuyerSignals[e.origin])}));const i=e?.impid;o.push({impId:i,config:{seller:r?.seller,resolveToConfig:r?.resolveToConfig,sellerSignals:{},sellerTimeout:r?.sellerTimeout,perBuyerSignals:t,auctionSignals:{},decisionLogicUrl:r?.decisionLogicUrl,interestGroupBuyers:r?.interestGroupBuyers,perBuyerTimeouts:r?.perBuyerTimeouts}})})),o.length?{bids:t,paapi:o}:t},onBidWon:e=>{if(e.nurl){const r=(0,a.replaceAuctionPrice)(e.nurl,e.originalCpm);(0,g.hj)(r)}},getUserSyncs:function(e,r,t,o,i){const n=[],s=[];return t&&s.push(`gdpr=${Number(t.gdprApplies&&1)}&gdpr_consent=${encodeURIComponent(t.consentString||"")}`),o&&s.push("us_privacy="+encodeURIComponent(o)),i&&s.push("gpp="+encodeURIComponent(i.gppString||"")+"&gpp_sid="+encodeURIComponent((i.applicableSections||[]).join(","))),e.iframeEnabled&&n.push({type:"iframe",url:"https://cdn.taboola.com/scripts/prebid_iframe_sync.html"+(s.length?"?"+s.join("&"):"")}),e.pixelEnabled&&n.push({type:"image",url:"https://trc.taboola.com/sg/prebidJS/1/cm"+(s.length?"?"+s.join("&"):"")}),n},onTimeout:e=>{(0,g.hj)(y+"/timeout",null,JSON.stringify(e),{method:"POST"})},onBidderError:e=>{let{error:r,bidderRequest:t}=e;(0,g.hj)(y+"/bidError",null,JSON.stringify({error:r,bidderRequest:t}),{method:"POST"})}};function C(e){return{format:e.map((e=>({w:e[0],h:e[1]})))}}(0,i.dX)(R),(0,o.z)("taboolaBidAdapter")},6372:(e,r,t)=>{t.d(r,{DZ:()=>n,Px:()=>s,TP:()=>d,YC:()=>a,Z:()=>i,f8:()=>g,fP:()=>l,gm:()=>o,md:()=>p});const o=["request","imp","bidResponse","response"],[i,n,s,a]=o,[d,p]=["default","pbs"],u=new Set(o);const{registerOrtbProcessor:g,getProcessors:l}=function(){const e={};return{registerOrtbProcessor(r){let{type:t,name:i,fn:n,priority:s=0,dialects:a=[d]}=r;if(!u.has(t))throw new Error(`ORTB processor type must be one of: ${o.join(", ")}`);a.forEach((r=>{e.hasOwnProperty(r)||(e[r]={}),e[r].hasOwnProperty(t)||(e[r][t]={}),e[r][t][i]={priority:s,fn:n}}))},getProcessors:r=>e[r]||{}}}()}},e=>{e.O(0,[5279,9270],(()=>{return r=8649,e(e.s=r);var r}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[3161],{8622:(e,t,n)=>{var o=n(8640),i=n(7746),r=n(5102),a=n(2797),s=n(8792),c=n(3193),l=n(5164),g=n(4614),d=n(571),p=n(4947),u=n(286),f=n(9633);let m=!1,h=[];const w=(0,l.eA)("topicsFpd"),b="prebid:topics",y="lastUpdated",S={1:600,2:601,3:602,4:603},O=n(4740);function T(e,t){return t.reduce(((t,n)=>{const o=n[e];return t.hasOwnProperty(o)||(t[o]=[]),t[o].push(n),t}),{})}function v(e){return h.push(e)}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return O.targeting&&O.targeting.topicsapi&&((0,i.logInfo)("__ TopicsAPI : Get Topics Data:",e,t),(window.googletag=window.googletag||{cmd:[]}).cmd.push((function(){let e=t.map((e=>e.topic.toString()));window.googletag.pubads().getTargeting("topicsapi").forEach((t=>{e.indexOf(t)<0&&e.push(t)})),window.googletag.pubads().setTargeting("topicsapi",e),(0,i.logInfo)("__ TopicsAPI : Setting GAM Keyvalue:",e)}))),Object.entries(T("taxonomyVersion",t)).filter((e=>{let[t]=e;return!!n.hasOwnProperty(t)||((0,i.logWarn)(`Unrecognized taxonomyVersion from Topics API: "${t}"; topic will be ignored`),!1)})).flatMap((t=>{let[o,i]=t;return Object.entries(T("modelVersion",i)).map((t=>{let[i,r]=t;const a={ext:{segtax:n[o],segclass:i},segment:r.map((e=>({id:e.topic.toString()})))};return null!=e&&(a.name=e),a}))}))}function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return"browsingTopics"in e&&e.featurePolicy.allowsFeature("browsing-topics")}const E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=null;try{D(e)&&(t=s.Z.resolve(e.browsingTopics()))}catch(e){(0,i.logError)("Could not call topics API",e)}return null==t&&(t=s.Z.resolve([])),t}().then((e=>P((0,r.nH)().domain,e)));function x(){let e=[];const t=c.vc.getConfig("userSync.topics")?.bidders||[];let n=new Map((0,i.safeJSONParse)(w.getDataFromLocalStorage(b)));return n&&n.forEach(((o,i)=>{let r=t.find((e=>{let{bidder:t}=e;return i===t}));r&&(0,d.xD)(p.S5,(0,u.T)(f.UL,i))&&(M(o[y],r?.expiry||21)?(n.delete(i),w.setDataInLocalStorage(b,JSON.stringify([...n]))):Object.keys(o).forEach((t=>{t!==y&&e.push(o[t])})))})),e}function L(e){if(e&&e.data)try{let t=(0,i.safeJSONParse)(e.data);if((0,g.q9)(h,e.origin)&&t&&t.segment&&!(0,i.isEmpty)(t.segment.topics)){const{domain:e,topics:n,bidder:o}=t.segment,i=P(e,n);i&&I(o,i)}}catch(e){}}function I(e,t){const n=new Map((0,i.safeJSONParse)(w.getDataFromLocalStorage(b))),o={[y]:(new Date).getTime()};t.forEach((e=>{o[e.ext.segclass]=e})),n.set(e,o),w.setDataInLocalStorage(b,JSON.stringify([...n]))}function M(e,t){const n=(new Date).getTime();return Math.ceil((n-e)/864e5)>t}function C(e,t){return[...e].sort((()=>.5-Math.random())).slice(0,t)}function F(){window.addEventListener("message",L,!1)}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!D(e))return;const t=c.vc.getConfig("userSync.topics");if(t){F();const n=C(t.bidders||[],t.maxTopicCaller||1);n&&n.forEach((t=>{let{bidder:n,iframeURL:o,fetchUrl:r,fetchRate:a}=t;if(n&&o){let t=e.createElement("iframe");t.name="ifrm_".concat(n),t.src="".concat(o,"?bidder=").concat(n),t.style.display="none",v(new URL(o).origin),o&&e.documentElement.appendChild(t)}if(n&&r){const e=new Map((0,i.safeJSONParse)(w.getDataFromLocalStorage(b))).get(n);(!e||e&&M(e[y],a||1))&&window.fetch(`${r}?bidder=${n}`,{browsingTopics:!0}).then((e=>e.json())).then((e=>{if(e&&e.segment&&!(0,i.isEmpty)(e.segment.topics)){const{domain:t,topics:n,bidder:o}=e.segment,i=P(t,n);i&&I(o,i)}}))}}))}else(0,i.logWarn)("Topics config not defined under userSync Object")}(0,a.Bx)("firstPartyData",{name:"topics",queue:1,processFpd:function(e,t){let{global:n}=t,{data:o=E}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m||(A(),m=!0),o.then((e=>((e=[].concat(e,x())).length&&(0,i.mergeDeep)(n,{user:{data:e}}),{global:n})))}}),(0,o.z)("topicsFpdModule")}},e=>{e.O(0,[9270],(()=>{return t=8622,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[2599],{789:(e,t,r)=>{var n=r(8640),i=r(265),o=r(7746),a=r(4679),s=r(4699),d=r(3193),p=r(5164),l=r(9865);const c="triplelift";let u=null,m=null;const f=(0,p.df)({bidderCode:c}),g={gvlid:28,code:c,supportedMediaTypes:[a.Mk,a.pX],isBidRequestValid:function(e){return void 0!==e.params.inventoryCode},buildRequests:function(e,t){let r="https://tlx.3lift.com/header/auction?",n=function(e,t){let r={},{schain:n}=e[0];const a=function(e){const t={},r={},n={},i=e.ortb2||{},a=function(){const e=f.getDataFromLocalStorage("opecloud_ctx");if(!e)return null;try{return JSON.parse(e)}catch(e){return(0,o.logError)("Triplelift: error parsing JSON: ",e),null}}(),s=Object.assign({},i.site),d=Object.assign({},i.user);if(a){d.data=d.data||[];try{d.data.push({name:"www.1plusx.com",ext:a})}catch(e){(0,o.logError)("Triplelift: error adding 1plusX segments: ",e)}}x(r,s),x(n,d),(0,o.isEmpty)(r)||(t.context=r);(0,o.isEmpty)(n)||(t.user=n);return t}(t);r.imp=e.map((function(e,t){let r={id:t,tagid:e.params.inventoryCode,floor:v(e)};return b(e)&&(r.video=function(e){let t={...e.params.video,...e.mediaTypes.video};try{t.w||(t.w=t.playerSize[0][0]),t.h||(t.h=t.playerSize[0][1])}catch(e){(0,o.logWarn)("Video size not defined",e)}t.playbackmethod&&Number.isInteger(t.playbackmethod)&&(t.playbackmethod=Array.from(String(t.playbackmethod),Number));return delete t.playerSize,t}(e)),e.mediaTypes.banner&&!y(e)&&(r.banner={format:S(e.sizes)}),(0,o.isEmpty)(e.ortb2Imp)||(r.fpd=function(e){const t={},r={};x(r,e.ext),(0,o.isEmpty)(r)||(t.context=r);return t}(e.ortb2Imp),(0,o.isEmpty)(e.ortb2Imp.ext)||(r.ext={...e.ortb2Imp.ext})),r}));let s=[];e[0].userIdAsEids&&(s=i.Z(e[0],"userIdAsEids"),r.user={ext:{eids:s}});let d=function(e,t){let r={};(0,o.isEmpty)(e)||(r.schain={...e});(0,o.isEmpty)(t)||(r.fpd={...t});return r}(n,a);(0,o.isEmpty)(d)||(r.ext=d);t?.ortb2?.regs?.gpp&&(r.regs=Object.assign({},t.ortb2.regs));t?.ortb2&&(r.ext.ortb2=Object.assign({},t.ortb2));return r}(e,t);if(r=(0,l.t)(r,"lib","prebid"),r=(0,l.t)(r,"v","9.6.0"),t&&t.refererInfo){let e=t.refererInfo.page;r=(0,l.t)(r,"referrer",e)}return t&&t.timeout&&(r=(0,l.t)(r,"tmax",t.timeout)),t&&t.gdprConsent&&(u=void 0===t.gdprConsent.gdprApplies||t.gdprConsent.gdprApplies,r=(0,l.t)(r,"gdpr",u.toString()),void 0!==t.gdprConsent.consentString&&(m=t.gdprConsent.consentString,r=(0,l.t)(r,"cmp_cs",m))),t&&t.uspConsent&&(r=(0,l.t)(r,"us_privacy",t.uspConsent)),t?.paapi?.enabled&&(r=(0,l.t)(r,"fledge",t.paapi.enabled)),!0===d.vc.getConfig("coppa")&&(r=(0,l.t)(r,"coppa",!0)),r.lastIndexOf("&")===r.length-1&&(r=r.substring(0,r.length-1)),(0,o.logMessage)("tlCall request built: "+r),{method:"POST",url:r,data:n,bidderRequest:t}},interpretResponse:function(e,t){let{bidderRequest:r}=t,n=e.body.bids||[];const i=e.body.paapi||[];if(n=n.map((e=>function(e,t){let r={},n=t.width||1,i=t.height||1,o=t.deal_id||"",a=t.crid||"",s=e.bids[t.imp_id];0!=t.cpm&&t.ad&&(r={requestId:s.bidId,cpm:t.cpm,width:n,height:i,netRevenue:!0,ad:t.ad,creativeId:a,dealId:o,currency:"USD",ttl:300,tl_source:t.tl_source,meta:{}},b(s)&&"video"===t.media_type&&(r.vastXml=t.ad,r.mediaType="video",r.ttl=3600),t.advertiser_name&&(r.meta.advertiserName=t.advertiser_name),t.adomain&&t.adomain.length&&(r.meta.advertiserDomains=t.adomain),t.tl_source&&"hdx"==t.tl_source&&(b(s)&&"video"===t.media_type?r.meta.mediaType="video":r.meta.mediaType="banner"),t.tl_source&&"tlx"==t.tl_source&&(r.meta.mediaType="native"),a&&(r.meta.networkId=a.slice(0,a.indexOf("_"))));return r}(r,e))),i.length>0){const e=i.map((e=>({bidId:r.bids[e.imp_id].bidId,config:e.auctionConfig})));return(0,o.logMessage)("Response with FLEDGE:",{bids:n,fledgeAuctionConfigs:e}),{bids:n,paapi:e}}return n},getUserSyncs:function(e,t,r,n,i){let o=function(e){if(!e)return;if(e.iframeEnabled)return"iframe";if(e.pixelEnabled)return"image"}(e);if(!o)return;let a="https://eb2.3lift.com/sync?";return"image"===o&&(a=(0,l.t)(a,"px",1),a=(0,l.t)(a,"src","prebid")),(null!==m||u)&&(a=(0,l.t)(a,"gdpr",u),a=(0,l.t)(a,"cmp_cs",m)),n&&(a=(0,l.t)(a,"us_privacy",n)),i&&(i.gppString&&(a=(0,l.t)(a,"gpp",i.gppString)),i.applicableSections&&0!==i.applicableSections.length&&(a=(0,l.t)(a,"gpp_sid",i.applicableSections.filter((e=>Number.isInteger(e))).join(",")))),[{type:o,url:a}]}};function b(e){return h(e)&&(y(e)||function(e){return h(e)&&"outstream"===e.mediaTypes.video.context.toLowerCase()}(e))}function y(e){return h(e)&&"instream"===e.mediaTypes.video.context.toLowerCase()}function h(e){return e.mediaTypes.video&&e.mediaTypes.video.context}function v(e){let t=null;if("function"==typeof e.getFloor)try{const r=e.getFloor({currency:"USD",mediaType:b(e)?"video":"banner",size:"*"});"object"!=typeof r||"USD"!==r.currency||isNaN(parseFloat(r.floor))||(t=parseFloat(r.floor))}catch(e){(0,o.logError)("Triplelift: getFloor threw an error: ",e)}return null!==t?t:e.params.floor}function x(e,t){(0,o.isEmpty)(t)||Object.keys(t).forEach((r=>{null!=t[r]&&(e[r]=t[r])}))}function S(e){return e.filter(_).map((function(e){return{w:e[0],h:e[1]}}))}function _(e){return 2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}(0,s.dX)(g),(0,n.z)("tripleliftBidAdapter")}},e=>{e.O(0,[4213,9270],(()=>{return t=789,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[9215],{2722:(e,t,r)=>{var n=r(8640),o=r(4614),s=r(3193),i=r(2021),a=r(4516),c=r(3304),l=r(2200),u=r(2797),g=r(7746),d=r(265);const f=new Map;function m(e){const t={};function r(e){const r=JSON.stringify([e.source?.toLowerCase(),e.ext]);t.hasOwnProperty(r)?t[r].uids.push(...e.uids):t[r]=e}return Object.entries(e).forEach((e=>{let[t,n]=e;n=Array.isArray(n)?n:[n];("pubProvidedId"===t?(0,g.deepClone)(n):n.map((e=>function(e,t){const r=f.get(t);if(r&&e){let t={};t.source=(0,g.isFn)(r.getSource)?r.getSource(e):r.source;const n=(0,g.isFn)(r.getValue)?r.getValue(e):e;if((0,g.isStr)(n)){const o={id:n,atype:r.atype};if((0,g.isFn)(r.getUidExt)){const t=r.getUidExt(e);t&&(o.ext=t)}if(t.uids=[o],(0,g.isFn)(r.getEidExt)){const n=r.getEidExt(e);n&&(t.ext=n)}return t}}return null}(e,t)))).filter((e=>null!=e)).forEach(r)})),Object.values(t)}var b=r(5164),p=r(6475);const h=(0,u.z3)("sync",(()=>{}));var y=r(8792),I=r(6372),w=r(9128),E=r(8196),S=r(9633),D=r(571),O=r(4947),v=r(286),U=r(1974);const j="User ID",k=b.c$,P=b.Dp,A="_pbjs_id_optout",T=(0,b.eA)("userId"),F={isAllowed:D.xD},$=r(4740);let C=asc.getUserInfo();C.isSet||i.on(l.FP._UPDATE_USER_INFO,(e=>{C=e}));let N,_,x,M,R,L=!1,Z=[],q=[],G={},B=[];const W=(()=>{let e;return()=>(null==e&&(e=(0,w.V6)()),e)})();function J(e){return W().fork().renameWith((t=>[`userId.mod.${t}`,`userId.mods.${e}.${t}`]))}let z=Math.random()<.5,V=$.abtests&&$.abtests.uids&&"object"==typeof $.abtests.uids&&$.abtests.uids.length>0?$.abtests.uids:[],Y={};function H(e,t){t=t||e.storageMgr;const r="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,n=e.config.storage.name;return function(e,o,s){t.setCookie(n+(e||""),o,s,"Lax",r)}}function K(e,t){const r=e.config.storage;try{const n=new Date(Date.now()+864e5*r.expires).toUTCString(),o=(0,g.isPlainObject)(t)?JSON.stringify(t):t;e.enabledStorageTypes.forEach((t=>{switch(t){case k:!function(e,t,r){const n=e.config.storage,o=H(e);o(null,t,r),o("_cst",Ee(),r),"number"==typeof n.refreshInSeconds&&o("_last",(new Date).toUTCString(),r)}(e,o,n);break;case P:!function(e,t,r){const n=e.config.storage,o=e.storageMgr;o.setDataInLocalStorage(`${n.name}_exp`,r),o.setDataInLocalStorage(`${n.name}_cst`,Ee()),o.setDataInLocalStorage(n.name,encodeURIComponent(t)),"number"==typeof n.refreshInSeconds&&o.setDataInLocalStorage(`${n.name}_last`,(new Date).toUTCString())}(e,o,n)}}))}catch(e){(0,g.logError)(e)}}function Q(e){Pe(e),e.enabledStorageTypes.forEach((t=>{switch(t){case k:!function(e){const t=H(e,T),r=new Date(Date.now()-864e5).toUTCString();["","_last","_cst"].forEach((e=>{try{t(e,"",r)}catch(e){(0,g.logError)(e)}}))}(e);break;case P:!function(e){["","_last","_exp","_cst"].forEach((t=>{try{T.removeDataFromLocalStorage(e.config.storage.name+t)}catch(e){(0,g.logError)(e)}}))}(e)}}))}function X(e){let t=(0,g.getPrebidInternal)().setEidPermissions;"function"==typeof t&&(0,g.isArray)(e)&&t(function(e){let t=[];return e.filter((e=>(0,g.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length)).forEach((e=>{Object.keys(e.idObj).forEach((r=>{const n=f.get(r)||{};(0,d.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&n.source&&t.push({source:n.source,bidders:e.config.bidders})}))})),t}(e))}function ee(e,t){return e.storageMgr.getCookie(t)}function te(e,t){const r=e.storageMgr,n=e.config.storage,o=r.getDataFromLocalStorage(`${n.name}_exp`);return""===o?r.getDataFromLocalStorage(t):o&&new Date(o).getTime()-Date.now()>0?decodeURIComponent(r.getDataFromLocalStorage(t)):void 0}function re(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const r=e.config.storage,n=t?`${r.name}_${t}`:r.name;let o;try{e.enabledStorageTypes.find((t=>{switch(t){case k:o=ee(e,n);break;case P:o=te(e,n)}return!!o})),"string"==typeof o&&"{"===o.trim().charAt(0)&&(o=JSON.parse(o))}catch(e){(0,g.logError)(e)}return o}function ne(e,t,r){t=W().fork().startTiming("userId.callbacks.total").stopBefore(t);const n=(0,g.delayExecution)((()=>{clearTimeout(undefined),t()}),e.length);e.forEach((function(e){const t=J(e.submodule.name).startTiming("callback").stopBefore(n);try{e.callback((function(n){n?(e.config.storage&&K(e,n),e.idObj=e.submodule.decode(n,e.config),De(oe(r))):(0,g.logInfo)(`${j}: ${e.submodule.name} - request id responded with an empty value`),t()}),re.bind(null,e))}catch(r){(0,g.logError)(`Error in userID module '${e.submodule.name}':`,r),t()}e.callback=void 0}))}function oe(e){return Array.isArray(e)&&e.length?ie(e):{}}function se(e,t,r){return Object.fromEntries(Object.entries(e.reduce(((e,n)=>{const o=t(n);return o&&Object.keys(o).forEach((t=>{const s=G[t]?.indexOf(r(n)),i={priority:(0,g.isNumber)(s)?s:-1,value:o[t]};if(e[t]){const r=i.priority>e[t].priority?i:e[t];e[t]=r}else e[t]=i})),e}),{})).map((e=>{let[t,r]=e;return[t,r.value]})))}function ie(e){return se(e.filter((e=>(0,g.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length)),(e=>e.idObj),(e=>e.submodule.name))}function ae(e,t){[e].some((e=>!Array.isArray(e)||!e.length))||(t.forEach((e=>{if(!e.idObj)return!1;Object.keys(e.idObj).forEach((t=>{Y[t]=e.idObj[t]}))})),(0,g.logMessage)("A/B test for UserIDs | cache updated:",Y),V.forEach((e=>{let r=e+"test",n="na";Y[e]?(n=z,z||t.forEach((t=>{t.idObj&&t.idObj[e]&&void 0!==t.idObj[e]&&(t.idObj=void 0)}))):(0,g.logMessage)("A/B test for UserIDs | Not in cache, skipping test:",e),(window.googletag=window.googletag||{cmd:[]}).cmd.push((function(){(0,g.logMessage)("A/B test for UserIDs | Targeting:",r,n),window.googletag.pubads().setTargeting(r,n.toString())}))})),$.targeting&&$.targeting.uids&&t.forEach((e=>{(0,g.logMessage)("UserIDs Targeting | Processing UserId submodule: ",e),e.config||(0,g.logError)("UserIDs Targeting | No Config"),e.config.name||(0,g.logError)("UserIDs Targeting | No Config");let t=e.config.name,r=!0;e.idObj||(r=!1),(0,g.logMessage)("UserIDs Targeting | Preparing key value for "+t+" with value:",r),(window.googletag=window.googletag||{cmd:[]}).cmd.push((function(){(0,g.logMessage)("UserIDs Targeting | Setting GAM targeting",t,r),window.googletag.pubads().setTargeting(t.toString(),r.toString())}))})),e.forEach((e=>{e.bids&&(0,g.isArray)(e.bids)&&e.bids.forEach((e=>{const r=function(e,t){return Array.isArray(e)&&e.length&&t?ie(e.filter((e=>!e.config.bidders||!(0,g.isArray)(e.config.bidders)||(0,o.q9)(e.config.bidders,t)))):{}}(t,e.bidder);Object.keys(r).length&&(e.userId=r,e.userIdAsEids=m(r))}))})))}V.forEach((e=>{Y[e]})),(0,g.logMessage)("A/B test for UserIDs | enabled:",z," | for IDs: ",V);const ce={};function le(){let{delay:e=y.Z.timeout}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,y.P)(),r=(0,y.P)();let n,o,s=!1;function c(e){return o=W().fork(),null!=n&&n.reject(ce),n=(0,y.P)(),y.Z.race([e,n.promise]).finally(o.startTiming("userId.total"))}let d=N,f=Z;function m(e){return function(){if(d===N&&f===Z)return e(...arguments)}}function b(){return a.NO.promise.finally(o.startTiming("userId.init.consent"))}let p=c(y.Z.all([u.Cd,t.promise]).then(b).then(m((()=>{Oe(d,f)}))).then((()=>r.promise.finally(o.startTiming("userId.callbacks.pending")))).then(m((()=>{const e=d.filter((e=>(0,g.isFn)(e.callback)));if(e.length)return new y.Z((t=>ne(e,t,d)))}))));return function(){let{refresh:n=!1,submoduleNames:o=null,ready:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a&&!s&&(s=!0,t.resolve(),x>0?r.resolve():i.on(l.FP.AUCTION_END,(function t(){i.S1(l.FP.AUCTION_END,t),e(_).then(r.resolve)}))),n&&s&&(p=c(p.catch((()=>null)).then(b).then(m((()=>{const e=Oe(d,f.filter((e=>null==o||o.includes(e.submodule.name))),!0).filter((e=>null!=e.callback));if(e.length)return new y.Z((t=>ne(e,t,d)))}))))),p}}let ue;function ge(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me()||[];const t=M&&e.find((e=>e.source===M));if(t&&"string"==typeof(0,d.Z)(t,"uids.0.id")){const e=t.uids[0].id.replace(/[\W_]/g,"");if(e.length>=32&&e.length<=150)return e;(0,g.logWarn)(`User ID - Googletag Publisher Provided ID for ${M} is not between 32 and 150 characters - ${e}`)}}const de=(0,w.g3)("userId",(function(e,t){let{delay:r=y.Z.timeout,getIds:o=we}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y.Z.race([o().catch((()=>null)),r(x)]).then((()=>{ae(t.adUnits||(0,n.R)().adUnits,N),W().join((0,w.Bf)(t.metrics),{propagate:!1,includeGroups:!0}),e.call(this,t)}))}));function fe(){return oe(N)}function me(){return m(fe())}function be(e){return m(function(e,t){if(!Array.isArray(e)||!e.length)return{};const r=ie(e),n=Object.keys(r).find((e=>{const r=f.get(e);return r?.source===t||(0,g.isFn)(r?.getSource)&&r.getSource()===t}));return n?{[n]:r[n]}:[]}(N,e))[0]}function pe(e,t,r){return ue().then((()=>{let n={};if((0,g.isFn)(r)){(0,g.logInfo)(`${j} - Getting encrypted signal from custom function : ${r.name} & source : ${e} `);const t=r(e);n[e]=t?he(t):null}else{const r=be(e);(0,g.logInfo)(`${j} - Getting encrypted signal for eids :${JSON.stringify(r)}`),(0,g.isEmpty)(r)||(n[r.source]=!0===t?he(r):r.uids[0].id)}return(0,g.logInfo)(`${j} - Fetching encrypted eids: ${n[e]}`),n[e]}))}function he(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r="";if(1===t)r="object"==typeof e?window.btoa(JSON.stringify(e)):window.btoa(e);return`${t}||${r}`}function ye(){if(!(0,g.isGptPubadsDefined)())return;window.googletag.secureSignalProviders=window.googletag.secureSignalProviders||[];const e=s.vc.getConfig("userSync.encryptedSignalSources");if(e){const t=e.registerDelay||0;setTimeout((()=>{e.sources&&e.sources.forEach((e=>{let{source:t,encrypt:r,customFunc:n}=e;t.forEach((e=>{window.googletag.secureSignalProviders.push({id:e,collectorFunction:()=>pe(e,r,n)})}))}))}),t)}else(0,g.logWarn)(`${j} - ESP : encryptedSignalSources config not defined under userSync Object`)}function Ie(){let{submoduleNames:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return ue({refresh:!0,submoduleNames:e}).then((()=>(t&&(0,g.isFn)(t)&&t(),fe())))}function we(){return ue().then((()=>fe()),(e=>e===ce?Promise.resolve().then(we):((0,g.logError)("Error initializing userId",e),y.Z.reject(e))))}function Ee(){let e=Number(a.NO.hash);const t=[];for(;e>0;)t.push(String.fromCharCode(255&e)),e>>>=8;return btoa(t.join())}function Se(e,t,r){const n=a.rp.getConsentData();if(e.config.storage){let r,o=re(e),s=!1;if("number"==typeof e.config.storage.refreshInSeconds){const t=new Date(re(e,"last"));s=t&&Date.now()-t.getTime()>1e3*e.config.storage.refreshInSeconds}if(!o||s||t||function(e){const t=re(e,"cst");return!t||t!==Ee()}(e)){const t=Object.assign({enabledStorageTypes:e.enabledStorageTypes},e.config);r=e.submodule.getId(t,n,o)}else"function"==typeof e.submodule.extendId&&(r=e.submodule.extendId(e.config,n,o));(0,g.isPlainObject)(r)&&(r.id&&(K(e,r.id),o=r.id),"function"==typeof r.callback&&(e.callback=r.callback)),o&&(e.idObj=e.submodule.decode(o,e.config))}else if(e.config.value)e.idObj=e.config.value;else{const t=e.submodule.getId(e.config,n,void 0);(0,g.isPlainObject)(t)&&("function"==typeof t.callback&&(e.callback=t.callback),t.id&&(e.idObj=e.submodule.decode(t.id,e.config)))}De(oe(r))}function De(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe();if(e&&M){const t=ge(m(e));t&&((0,g.isGptPubadsDefined)()?window.googletag.pubads().setPublisherProvidedId(t):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(t)}))))}}function Oe(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return W().fork().measureTime("userId.init.modules",(function(){if(!t.length)return[];if(t.forEach((e=>Pe(e))),!(t=t.filter((e=>(!e.config.storage||Ae(e))&&F.isAllowed(O.EL,(0,v.T)(S.y2,e.config.name))))).length)return(0,g.logWarn)(`${j} - no ID module configured`),[];const n=t.reduce(((e,n)=>J(n.submodule.name).measureTime("init",(()=>{try{Se(n,r,t),e.push(n)}catch(e){(0,g.logError)(`Error in userID module '${n.submodule.name}':`,e)}return e}))),[]);return n.length&&X(n),n.forEach(ve.bind(null,e)),n}))}function ve(e,t){let r=!1;for(let n=0;n<e.length;n++)if(t.config.name.toLowerCase()===e[n].config.name.toLowerCase()){r=!0,e[n]=t;break}r||e.push(t)}function Ue(e){return e?.storage?.type?.trim().split(/\s*&\s*/)||[]}function je(e){function t(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(0,g.logWarn)(`Invalid userSync.userId config: ${e}`,...r)}return Array.isArray(e)?e.filter((e=>{if(!e?.name)return t('must specify "name"',e);if(e.storage){if(!e.storage.name||!e.storage.type)return t('must specify "storage.name" and "storage.type"',e);if(!function(e){return Ue(e).every((e=>ke.has(e)))}(e))return t('invalid "storage.type"',e);["expires","refreshInSeconds"].forEach((r=>{let n=e.storage[r];null!=n&&"number"!=typeof n&&(n=Number(n),isNaN(n)?(t(`storage.${r} must be a number and will be ignored`,e),delete e.storage[r]):e.storage[r]=n)}))}return r=e.name,!$.wrapper.geoFilterUserId||Object.keys($.wrapper.geoFilterUserId).length<=0||!C.isSet||!C.cc||!$.wrapper.geoFilterUserId[r]||((0,g.logMessage)("__ Geo Filter UserId : ",r,$.wrapper.geoFilterUserId[r]),!($.wrapper.geoFilterUserId[r].whitelist&&$.wrapper.geoFilterUserId[r].whitelist.length>0&&$.wrapper.geoFilterUserId[r].whitelist.indexOf(C.cc.toUpperCase())<0?((0,g.logMessage)("__ Geo Filter UserId : Disabling userId "+r+" country "+C.cc.toUpperCase()+" is not in the whitelist",$.wrapper.geoFilterUserId[r].whitelist),1):$.wrapper.geoFilterUserId[r].blacklist&&$.wrapper.geoFilterUserId[r].blacklist.length>0&&$.wrapper.geoFilterUserId[r].blacklist.indexOf(C.cc.toUpperCase())>=0&&((0,g.logMessage)("__ Geo Filter UserId : Disabling userId "+r+" country "+C.cc.toUpperCase()+" is in the blacklist",$.wrapper.geoFilterUserId[r].blacklist),1)))||t("Filtered out due to Geo Restrictions",e);var r})):(null!=e&&t("must be an array",e),[])}const ke=new Set([P,k]);function Pe(e){if(e.enabledStorageTypes)return;const t=Ue(e.config);e.enabledStorageTypes=t.filter((t=>{switch(t){case P:return function(e){return!(!e.storageMgr.localStorageIsEnabled()||T.getDataFromLocalStorage(A)&&((0,g.logInfo)(`${j} - opt-out localStorage found, storage disabled`),1))}(e);case k:return function(e){return!(!e.storageMgr.cookiesAreEnabled()||T.getCookie(A)&&((0,g.logInfo)(`${j} - opt-out cookie found, storage disabled`),1))}(e)}return!1}))}function Ae(e){return!!e.enabledStorageTypes.length}function Te(e){f.clear(),Object.entries(se(e,(e=>e.eids),(e=>e.name))).forEach((e=>{let[t,r]=e;return f.set(t,r)}))}function Fe(){Te(B);const e=je(q);if(!e.length)return;const t=B.filter((e=>!(0,o.sE)(Z,(t=>t.name===e.name))));Z.splice(0,Z.length),t.map((t=>{const r=(0,o.sE)(e,(e=>e.name&&(e.name.toLowerCase()===t.name.toLowerCase()||t.aliasName&&e.name.toLowerCase()===t.aliasName.toLowerCase())));return r&&t.name!==r.name&&(r.name=t.name),r?{submodule:t,config:r,callback:void 0,idObj:void 0,storageMgr:(0,b.df)({moduleType:S.y2,moduleName:r.name})}:null})).filter((e=>null!==e)).forEach((e=>Z.push(e))),!L&&Z.length&&((0,n.R)().requestBids.before(de,40),c.ZP.callDataDeletionRequest.before(Ce),h.after((e=>e(ge()))),(0,g.logInfo)(`${j} - usersync config updated for ${Z.length} submodules: `,Z.map((e=>e.submodule.name))),L=!0)}function $e(e,t){if(e){const r={},n=new Map(t.map((e=>e.submodule.aliasName?[e.submodule.aliasName,e.submodule.name]:[])));Object.keys(e).forEach((t=>{const o=(0,g.isArray)(e[t])?[...e[t]].reverse():[];r[t]=o.map((e=>n.has(e)?n.get(e):e))})),G=r}else G={}}function Ce(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(0,g.logInfo)("UserID: received data deletion request; deleting all stored IDs..."),Z.forEach((e=>{if("function"==typeof e.submodule.onDataDeletionRequest)try{e.submodule.onDataDeletionRequest(e.config,e.idObj,...r)}catch(t){(0,g.logError)(`Error calling onDataDeletionRequest for ID submodule ${e.submodule.name}`,t)}Q(e)})),e.apply(this,r)}function Ne(e){return function(){return Promise.resolve(e.apply(this,arguments))}}!function(e){let{delay:t=y.Z.timeout}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};M=void 0,Z=[],q=[],L=!1,N=[],ue=le({delay:t}),null!=R&&R(),B=[],R=e.getConfig("userSync",(e=>{const t=e.userSync;t&&(M=t.ppid,t.userIds&&(q=t.userIds,_=(0,g.isNumber)(t.syncDelayUserIds)?t.syncDelayUserIds:U.oS.syncDelay,x=(0,g.isNumber)(t.auctionDelay)?t.auctionDelay:U.oS.auctionDelay,Fe(),$e(t.idPriority,Z),ue({ready:!0})))})),(0,n.R)().getUserIds=fe,(0,n.R)().getUserIdsAsEids=me,(0,n.R)().getEncryptedEidsForSource=Ne(pe),(0,n.R)().registerSignalSources=ye,(0,n.R)().refreshUserIds=Ne(Ie),(0,n.R)().getUserIdsAsync=Ne(we),(0,n.R)().getUserIdsAsEidBySource=be}(s.vc),(0,u.bA)("userId",(function(e){e.findRootDomain=E.W,(0,o.sE)(B,(t=>t.name===e.name))||(B.push(e),a.qh.register(S.y2,e.name,e.gvlid),Fe(),ue({refresh:!0,submoduleNames:[e.name]}))}),{postInstallAllowed:!0}),(0,I.f8)({type:I.Z,name:"userExtEids",fn:function(e,t,r){const n=(0,d.Z)(r,"bidRequests.0.userIdAsEids");n&&Object.keys(n).length>0&&(0,p.N)(e,"user.ext.eids",n)}}),(0,n.z)("userId")},6372:(e,t,r)=>{r.d(t,{DZ:()=>s,Px:()=>i,TP:()=>c,YC:()=>a,Z:()=>o,f8:()=>g,fP:()=>d,gm:()=>n,md:()=>l});const n=["request","imp","bidResponse","response"],[o,s,i,a]=n,[c,l]=["default","pbs"],u=new Set(n);const{registerOrtbProcessor:g,getProcessors:d}=function(){const e={};return{registerOrtbProcessor(t){let{type:r,name:o,fn:s,priority:i=0,dialects:a=[c]}=t;if(!u.has(r))throw new Error(`ORTB processor type must be one of: ${n.join(", ")}`);a.forEach((t=>{e.hasOwnProperty(t)||(e[t]={}),e[t].hasOwnProperty(r)||(e[t][r]={}),e[t][r][o]={priority:i,fn:s}}))},getProcessors:t=>e[t]||{}}}()}},e=>{e.O(0,[9270],(()=>{return t=2722,e(e.s=t);var t}));e.O()}]);(self.ascChunk=self.ascChunk||[]).push([[6635],{3273:(e,o,s)=>{var i=s(8640),n=s(4699),t=s(4679),d=s(5164),r=s(7706),c=s(420);const a="prebid",p="vidazoo",l="1.0.0",u=(0,d.df)({bidderCode:p}),y=(0,r.ql)();const v=(0,r.ov)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return`https://${e}.cootlogix.com`}),(function(e){return{dealId:(0,r.Ky)(u,e),sessionId:(0,r.RX)(u),ptrace:(0,r.KT)(u,c._I),vdzhum:(0,r.KT)(u,c.ry),webSessionId:y}}),u,p,l,!0),g=(0,r.yz)(p,!0),h=(0,r.P1)({iframeSyncUrl:"https://sync.cootlogix.com/api/sync/iframe",imageSyncUrl:"https://sync.cootlogix.com/api/sync/image"}),m={code:p,version:l,gvlid:744,supportedMediaTypes:[t.Mk,t.pX],isBidRequestValid:r.TS,buildRequests:v,interpretResponse:g,getUserSyncs:h,onBidWon:r.aJ};(0,n.dX)(m),(0,i.z)("vidazooBidAdapter")}},e=>{e.O(0,[2284,4827,9270],(()=>{return o=3273,e(e.s=o);var o}));e.O()}]);})(),asc.processQueue();