window.aps=window.aps||{}; if(aps.cmd){throw new Error("loadAds.js already loaded") }aps.cfg=aps.cfg||{version:"22.5.2",logToConsole:false,allAds:[],is:{},multi:{},multiAds:[]};(function(){aps.sitesWithoutCallback=["datebook.sfchronicle.com","education.seattlepi.com","healthyeating.sfgate.com","homeguides.sfgate.com","livehealthy.chron.com","preview.houstonchronicle.com","pyme.lavoztx.com","smallbusiness.chron.com","work.chron.com","www.beaumontenterprise.com","www.bigrapidsnews.com","www.chron.com","www.countytimes.com","www.ctinsider.com","www.ctpost.com","www.darientimes.com","www.expressnews.com","www.fairfieldcitizenonline.com","www.greenwichtime.com","www.houstonchronicle.com","www.lakecountystar.com","www.lmtonline.com","www.manisteenews.com","www.michigansthumb.com","www.middletownpress.com","www.milfordmirror.com","www.mrt.com","www.myjournalcourier.com","www.myplainview.com","www.mysanantonio.com","www.ncadvertiser.com","www.newmilfordspectrum.com","www.newstimes.com","www.nhregister.com","www.ourmidland.com","www.recordpatriot.com","www.registercitizen.com","www.seattlepi.com","www.sfchronicle.com","www.sfgate.com","www.sheltonherald.com","www.stamfordadvocate.com","www.theheraldreview.com","www.thehour.com","www.theintelligencer.com","www.theridgefieldpress.com","www.thetelegraph.com","www.timesunion.com","www.trumbulltimes.com","www.westport-news.com","www.yourconroenews.com","www.wiltonbulletin.com"]; window.debugSGA=window.debugSGA||false; window.APSpageUrl=window.APSpageUrl||""; window.devices={DESKTOP:1,MOBILE:2,TABLET:3}; window.prebid_source={CLIENT:1,SERVER:2,SERVER_COMPATIBLE:3}; aps.cmd=[]; aps.juiceLog=[]; aps.events=[]; aps.event={}; aps.app_events={}; aps.logtype={}; aps.implementSRA=true; aps.topWindow=window; aps.topAps=aps.topWindow.aps; aps.o={}; aps.fn=aps.fn||{}; aps.cfg.leafsSites=["education.seattlepi.com","healthyeating.sfgate.com","homeguides.sfgate.com","livehealthy.chron.com","pyme.lavoztx.com","smallbusiness.chron.com","work.chron.com"]; JuicePageUrl=document.location.href.replace("/?","?"); window.googletag=window.googletag||{}; googletag.cmd=googletag.cmd||[]; window.pbjs=window.pbjs||{}; pbjs.que=pbjs.que||[]; pbjs.bidderSettings=pbjs.bidderSettings||{}; window.HDN=window.HDN||{}; HDN.dataLayer=HDN.dataLayer||{}; HDN.dataLayer.ads=HDN.dataLayer.ads||{}; HDN.dataLayer.content=HDN.dataLayer.content||{}; HDN.dataLayer.href=HDN.dataLayer.href||{}; HDN.dataLayer.presentation=HDN.dataLayer.presentation||{}; HDN.dataLayer.sharing=HDN.dataLayer.sharing||{}; HDN.dataLayer.source=HDN.dataLayer.source||{}; HDN.dataLayer.paywall=HDN.dataLayer.paywall||{}; window.loadAd_UrlLocation=window.loadAd_UrlLocation||"https://aps.hearstnp.com/"; window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments) }; ga.l=+new Date; ga("create","UA-1616916-99","auto","pb") })();(function(){aps.o.kvp=function(a){this.key=a; this.value=[] }; aps.o.baseAd=function(a,e,b,d,c){this.code=a; this.width=e; this.height=b; this.sizeMappings=d; this.kvps=c; if(aps.cfg.allAds){aps.cfg.allAds[a]=this }}; aps.o.bid=function(j,a,c,h,b,g){var f={}; var d=["amznbid","amzniid","amznp","amznsz","auctionId","slotID","adserverTargeting","cpm","ttl"]; Object.entries(b).map(function(l){if(d.includes(l[0])){f[l[0]]=l[1] }}); if(!g){g="banner" }var i=b.size; if(i=="1x1"){if(a.stringSizes.includes("300x250")){i="300x250" }else{if(a.stringSizes.includes("728x90")){i="728x90" }else{if(a.stringSizes.includes("320x50")){i="320x50" }}}}this.ad=a.code; this.adId=(j=="a9")?b.amzniid:b.adId; this.bid=(j=="a9")?null:parseFloat(b.cpm).toFixed(2); this.bidder=c; this.mediaType=g; this.position=a.position; this.ref=h; this.size=b.size; this.source=j; this.url=a.getPage().href; this.obj=f; var k=new Date().valueOf(); var e=k-aps.cfg.bid.prefetch.timeoutPadding; if(j=="a9"){e+=10*60*1000 }else{e+=b.ttl*1000 }this.expires=e; this.received=k; this.viewability=false; this.won=false; this.selected=false; this.sent=false; aps.fn.logInfo("*BID* "+aps.fn.fixLen(this.ad,10)+aps.fn.fixLen(this.source+"/"+c,17)+" "+aps.fn.fixLen(b.amznbid||this.ref,10)+aps.fn.fixLen("["+this.mediaType+"]",10)+" id: "+this.adId.slice(-7)) }; aps.o.gamAd=function(a,h,c,g,e){this.code=a; this.width=h; this.height=c; this.sizeMappings=g; this.lowerCode=this.code.toLowerCase(); aps.fn.checkMultiType=function(i){var j=i.code.split("-")[0]; if(!aps.cfg.multiAds[j]){i.multiAd=false; i.multiType=null }else{i.multiAd=true; i.multiType=j }i.MultiCalled=false; aps.cfg.multi.enabled=true }(this); if(!aps.fn.toBeDisplayed(this)){aps.fn.logSkip(this.code,"will not show on this device"); this.exclude=true }if(!aps.fn.shouldPlaceAd(a)){aps.fn.logSkip(this.code,"excluded by query string"); this.exclude=true }if(!aps.fn.filterRevenueProfileAds(this.code)&&!this.multiAd){aps.fn.logSkip(this.code,"not included in revenueProfile"); this.exclude=true }if(!this.exclude){this.a9=null; this.pb=null; this.gam=null; this.rm=false; this.kvps=e||[]; this.interstitial=(this.code=="GO300"||(aps.cfg.page.device==devices.MOBILE&&this.code=="S300"))?true:false; this.exclude=false; this.state=null; this.video=(this.lowerCode.indexOf("video")>-1)?true:false; this.companion_units=false; this.doNotRefresh=(this.code=="Crown"||this.code.startsWith("SSHOW"))?true:false; this.viewability=-1; this.refreshable=false; this.impressionViewable=false; this.advertiserId=null; this.advertiser=null; this.lineitemId=null; this.creativeId=null; this.isEmpty=null; this.position=null; this.renderedSize=null; this.googleFrame=null; this.isBounceX=false; this.isDynamic=false; this.isLoading=false; this.mediaType="banner"; this.supportsNative=this.code.startsWith("NTV")?true:false; this.renderCount=1; this.sizes=aps.fn.setAdSize(this); this.stringSizes=[]; this.scrollDepth=0; if(aps.cfg.is.leafsSite){var f=this.code.split("-"); this.scrollDepth=(f.length==1)?0:f[1] }this.getPage=function(){return aps.cfg.page.allPages[this.scrollDepth] }; this.getDataLayerInterstitial=function(i){if(!aps.cfg.dfp.dataLayerInterstials){var j=""; try{j=HDN.dataLayer.revenueProfiles.profiles.nonsub.interstitials.value }catch(k){}aps.cfg.dfp.dataLayerInterstials=j.split(",")||[] }if(["BGS_REC_IN","EEinsert"].includes(i.code)||aps.cfg.dfp.dataLayerInterstials.indexOf(i.code)>-1){i.interstitial=true; i.refreshable=true; i.impressionViewable=true }}(this); for(var d=0; d-1){return }aps.fn.logInfo("*SKIP "+aps.fn.fixLen(adcode,10)+" "+reason); aps.alreadyLogged.push(adcode+":"+reason) }; aps.fn.domLoaded=function(){aps.fn.setPerformanceMetrics("DomLoaded","DomLoaded"); aps.cfg.domIsLoaded=true; aps.fireEvent(aps.event.on_dom_loaded) }; aps.fn.dumpLogWindow=function(){var logs=aps.juiceLog; var html=""; for(var i=0; i'+time+" : "+logs[i].m+""; html+=msg }var w=window.open("","wnd"); w.document.body.innerHTML=html }; aps.fn.formatDateTime=function(timeStamp){var h=(timeStamp.getHours()<10?"0":"")+timeStamp.getHours(); var m=(timeStamp.getMinutes()<10?"0":"")+timeStamp.getMinutes(); var s=(timeStamp.getSeconds()<10?"0":"")+timeStamp.getSeconds(); var ms=timeStamp.getMilliseconds(); return h+":"+m+":"+s+": "+ms }; aps.fn.getCookie=function(cname){var name=cname+"="; var ca=document.cookie.split(";"); for(var i=0; i-1){aps.fn.logSkip(ad.code,"is in do not serve array"); return sizes }ad.sizeMappings=ad.sizeMappings||[]; for(var j=0; japs.pageWidth){continue }if(widthfound==30000){widthfound=split }if(widthfound==split){var adSize=map[1]+"x"+map[2]; if(availables.indexOf(adSize)>-1){sizes.push([parseInt(map[1]),parseInt(map[2])]) }}}return sizes }; aps.fn.getBlogOmniType=function(){var abOmniPagename; var abOmniChannel; var abOmniHier1; var abOmniServer=document.location.host; var abOmniSSL1; var abOmniSSL2; var abOmniSSL3; var abOmniSSL4; var abOmniBlogType; var abOmniTitle=""; var abOmniID=""; var abOmniContentType="Blogs"; var abOmniAuthor=""; var abOmniQuery=""; var abOmniDomain; var abOmniBlogName=""; var abOmniHeadline=""; var abOmniFullURL=document.URL.toLowerCase(); var abOmniBlobUX=""; var abBlogCat=new Object; abBlogCat.SuperCategory=""; abBlogCat.Category=""; abBlogCat.AuthorType="reader"; abBlogCat.Usage="blog"; abBlogCat.Section=""; abBlogCat.Voice=""; var abStrRelativePath; var abStrPageURL=""; var abStrBlogPath; var abStrPagePath; var abBoolIs404=false; this.toProperCase=function toProperCase(pc){if(pc!="undefined"){if(pc.length>1){return pc.toLowerCase().replace(/^(.)|\s(.)/g,function($1){return $1.toUpperCase() }) }}}; if(typeof(omni_blogID)!="undefined"){abOmniID=omni_blogID }if(typeof(omni_blogauthor)!="undefined"){abOmniAuthor=toProperCase(omni_blogauthor) }if(typeof(omni_blogauthortype)!="undefined"){abBlogCat.AuthorType=omni_blogauthortype }if(typeof(omni_blogposttitle)!="undefined"){abBoolIs404=(omni_blogposttitle.toLowerCase()=="page not found"); abOmniTitle=omni_blogposttitle; if(abOmniTitle.charAt(abOmniTitle.length-1)==" "){abOmniTitle=abOmniTitle.substr(0,abOmniTitle.length-1) }}if(typeof(omni_blogname)!="undefined"){abOmniBlogName=omni_blogname }if(typeof(omni_blogcategory2)!="undefined"){abBlogCat.Category=omni_blogcategory2 }if(abBlogCat.Category.length>0){if(typeof(omni_blogcategory)!="undefined"){abBlogCat.SuperCategory=omni_blogcategory }}else{if(typeof(omni_blogcategory)!="undefined"){abBlogCat.Category=omni_blogcategory }}if(typeof(omni_blogusage)!="undefined"){abBlogCat.Usage=omni_blogusage }if(typeof(omni_section)!="undefined"){abBlogCat.Section=omni_section }if(typeof(omni_voices)!="undefined"){abBlogCat.Voice=omni_voices }this.abParseURL=function(){var strFullURL=abOmniFullURL; if(strFullURL.indexOf("#")>-1){strFullURL=strFullURL.split("#")[0] }var intQStart=strFullURL.indexOf("?")+1; var intRelPathStart=strFullURL.indexOf(".com")+5; abOmniDomain=strFullURL.substr(0,intRelPathStart); if(intQStart>0){abOmniQuery=strFullURL.substring(intQStart); abStrRelativePath=strFullURL.substring(0,intQStart-1) }else{abStrRelativePath=strFullURL }abStrPageURL=abStrRelativePath; abStrRelativePath=abStrRelativePath.substr(intRelPathStart); if(abStrRelativePath.charAt(abStrRelativePath.length-1)=="/"){abStrRelativePath=abStrRelativePath.substr(0,abStrRelativePath.length-1) }var arrayTemp=new Array(); arrayTemp=abStrRelativePath.split("/"); abStrBlogPath=arrayTemp[0]; abStrPagePath=arrayTemp[arrayTemp.length-1]; if(abStrBlogPath==abStrPagePath){abStrPagePath="index" }if(top.document.location.hostname=="insidescoopsf.sfgate.com"){abStrBlogPath="insidescoop" }return abStrBlogPath+":"+abStrPagePath }; this.abAssignSections=function(){if(abBlogCat.SuperCategory.length>0){abOmniChannel=abBlogCat.SuperCategory; abOmniSSL1=abBlogCat.SuperCategory; abOmniSSL2=abOmniSSL1+":"+abBlogCat.Category; abOmniSSL3=abOmniSSL2+":blogs"; abOmniSSL4=abOmniSSL3+":"+abOmniBlogName.toLowerCase() }else{abOmniChannel=abBlogCat.Category; abOmniSSL1=abBlogCat.Category; abOmniSSL2=abOmniSSL1+":blogs"; abOmniSSL3=abOmniSSL2+":"+abOmniBlogName.toLowerCase(); abOmniSSL4=abOmniSSL3; if(abBlogCat.Voice.length>0){abOmniSSL4=abOmniSSL4+":"+abBlogCat.Voice.toLowerCase() }}abOmniHier1=abOmniSSL4.replace(/:/g,",") }; abOmniPagename="Blogs-"+abParseURL(); if(abBlogCat.Category==""){abCategorizeBlog(abStrBlogPath,abBlogCat) }abAssignSections(); if(abOmniTitle==""||abOmniTitle==abOmniBlogName){abOmniTitle="Blog index page" }if(abBlogCat.Section.length>0){abOmniBlogName=abOmniBlogName+":"+abBlogCat.Section }abOmniTitle=abOmniBlogName+":"+abOmniTitle; abOmniID=abOmniBlogName+"--"+abOmniID; abOmniBlogType=abBlogCat.AuthorType; abOmniBlogName=abOmniBlogName+"("+abBlogCat.AuthorType+")"; abOmniTitle=abOmniTitle+"("+abBlogCat.AuthorType+")"; abOmniTitle=abOmniTitle.replace(/'/g,""); abOmniHeadline=abOmniTitle; if(abOmniAuthor){if(abOmniAuthor.indexOf(",")!=-1){abOmniAuthor=abOmniAuthor.substring(0,abOmniAuthor.indexOf(",")) }}if(abBoolIs404){return"undefined" }else{return abOmniContentType }}; aps.fn.getDictionnaryKey=function(dictionnary,value,destination){var BreakException={}; var retValue=destination; try{Object.entries(dictionnary).forEach(function(line){if(line[1].includes(value)){retValue=line[0]; throw BreakException }}) }catch(e){if(e!==BreakException){throw e }}return retValue }; aps.fn.toBeDisplayed=function(ad){var willDisplay=false; var widthfound=30000; for(var j=0; japs.pageWidth){continue }if(widthfound==30000){widthfound=split }if(widthfound==split){if(parseInt(map[1])>0&&parseInt(map[2])>0){willDisplay=true }}}return willDisplay }; aps.fn.getQueryParameterByName=function(key){if(aps.qeueryStringObj==null){aps.qeueryStringObj=aps.fn.queryStringToJSON() }var qobj=aps.qeueryStringObj; var keyToUse=key.replace("[]",""); if(!qobj.hasOwnProperty(keyToUse)){return null }if(key.indexOf("[]")==-1){return qobj[keyToUse] }if(typeof qobj[keyToUse]==="string"){var retval=[]; retval.push(qobj[keyToUse]); return retval }return qobj[keyToUse] }; aps.fn.queryStringToJSON=function(){var str=location.search.slice(1); var pairs=str.split("&"); var result={}; pairs.forEach(function(pair){pair=pair.split("="); var name=pair[0]; var value=pair[1]; if(name.length){if(result[name]!==undefined){if(!result[name].push){result[name]=[result[name]] }result[name].push(value||"") }else{result[name]=value||"" }}}); return(result) }; aps.fn.desktopOrMobile=function(desktopValue,mobileValue){return(aps.cfg.bid.current_device==devices.DESKTOP)?desktopValue:mobileValue }; aps.fn.addPageKvp=function(key,value,overwrite){aps.cfg.page.checkPage(); aps.cfg.page.current.addPageKvp(key,value,overwrite) }; aps.fn.getFilteredHref=function(href){var loc=href||document.location.href; return loc.replace("https://","").replace("http://","").split("#")[0].substring(0,300)||"" }; aps.fn.insertScript=function(url,async,type,id){var a=document.createElement("script"); a.src=url; if(type){a.type=type }if(id){a.id=id }a.async=async; var tgt=document.getElementsByTagName("script")[0]; tgt.parentNode.insertBefore(a,tgt) }; aps.fn.readRevenueProfile=function(){aps.cfg.revenueProfile=[]; try{if(HDN.dataLayer.content.designTemplate.indexOf("dynamic_two_column.tpl")>-1){var revProfile=Object.entries(HDN.dataLayer.revenueProfiles.profiles); for(var rp in revProfile){var subscriptions=revProfile[rp][1]; for(col in subscriptions){if(col.indexOf("column")==0){var ads=Object.entries(subscriptions[col]); for(adtype in ads){aps.cfg.revenueProfile.push(ads[adtype][1].id) }}}}if(aps.cfg.page.current.domain=="timesunion.com"){aps.cfg.revenueProfile.push("LNlogo") }}}catch(e){}}(); aps.fn.filterRevenueProfileAds=function(code){if(aps.cfg.revenueProfile.length>0&&aps.cfg.revenueProfile.indexOf(code)==-1){return false }else{return true }}; aps.fn.isValidBid=function(adDef,bidder,wrapper){aps.cfg.bid.isValid=aps.cfg.bid.isValid||[]; var encode=adDef.code+bidder+wrapper; if(aps.cfg.bid.isValid[encode]!=undefined){return aps.cfg.bid.isValid[encode] }aps.cfg.bid.isValid[encode]=true; aps.cfg.bid.excludedBids.forEach(function(rule){try{if(eval(rule[0])){aps.fn.logSkip(adDef.code,rule[1]); aps.cfg.bid.isValid[encode]=false }}catch(e){ga("pb.send",{nonInteraction:true,hitType:"event",eventCategory:"juice_error_rule",eventAction:document.location.href,eventLabel:rule}); return false }}); return aps.cfg.bid.isValid[encode] }; aps.fn.shouldRunThirdParty=function(modulecode){return true }; aps.fn.stripAndPreserveQueryStringVars=function(qstring,preserveList){if(typeof(qstring)=="undefined"){return"" }var pairs=qstring.split("&"); var result=[]; pairs.forEach(function(pair){pair=pair.split("="); if(preserveList.indexOf(pair[0])!=-1){result.push(pair[0]+"="+pair[1]) }}); if(result.length>0){return"?"+result.join("&") }return"" }; aps.fn.setPageTargettedUrl=function(page,kvpName,fullUrl,preserveQueryParms){var urlPieces=fullUrl.split("?"); var kvpUrl=""; if(preserveQueryParms.length==0){kvpUrl=urlPieces[0] }else{kvpUrl=urlPieces[0]+aps.fn.stripAndPreserveQueryStringVars(urlPieces[1],preserveQueryParms) }page.addPageKvp(kvpName,kvpUrl) }; aps.fn.checkKvps=function(kvps){var ok=true; try{kvps.forEach(function(kvp){if(typeof kvp.key!="string"||typeof kvp.value!="string"){ok=false }}) }catch(ex){ok=false }return ok }; aps.fn.waitForDefinedTags=function(func){if(!aps.cfg.serveAds){return }if(aps.cfg.adDefinitionLoaded){eval(func)() }else{aps.alreadyWaiting=aps.alreadyWaiting||false; aps.waitingForDefinedTags=aps.waitingForDefinedTags||[]; if(aps.waitingForDefinedTags.indexOf(func)>-1){return }aps.waitingForDefinedTags.push(func); if(!aps.cfg.adDefinitionLoaded){aps.registerEvent(aps.event.on_ad_definition_loaded,function(){eval(func)() }); if(!aps.alreadyWaiting){aps.fn.setPerformanceMetrics(null,"waiting for Ad Definition"); aps.alreadyWaiting=true }}}}; aps.fn.setupResponsiveMappings=function(slot,ad){var arSizeMappings=aps.fn.generateSizeMappings(ad); slot.defineSizeMapping(arSizeMappings) }; aps.fn.generateSizeMappings=function(ad){var arSizeMappings=[]; if(ad.sizeMappings!=undefined&&ad.sizeMappings.length>0){if(aps.cfg.is.legacy){aps.sizeMappings=ad.sizeMappings.filter(function(sizemap){return sizemap.split("x")[0]=0; i--){var frame=aps.cfg.dfp.celtra.divs[i]; var pFrame=frame.parentElement; if(frame.style.display==="none"){if(pFrame.children.length>1){pFrame.style.position="relative"; frame.style.position="absolute"; frame.style.width="100%"; frame.style.height="100%"; frame.style.left="0" }frame.style.display="block"; aps.fn.logInfo(pFrame.parentElement.id+": fixing Celtra display"); aps.cfg.dfp.celtra.divs.splice(i,1) }}if(aps.cfg.dfp.celtra.divs.length>0){setTimeout(function(){aps.fn.monitofCeltraIframe(c+1) },1000) }}; aps.fn.tagAd=function(ad){if(!aps.cfg.logToConsole){return }var div=document.getElementById(ad.code+"dbg"); if(!div){div=document.createElement("div"); div.id=ad.code+"dbg"; div.setAttribute("class","tooltip"); div.setAttribute("onmouseover","aps.fn.showAdDetails(this)"); var ori=document.getElementById(ad.code); ori.style.position="relative"; var left=0; if(ori.clientWidth&&ori.clientWidth>aps.pageWidth){left=20 }var style="top:0px;left:"+left+"px;min-height:"+ori.clientHeight+"px;height:100%;text-align:left; inline-block; color: #fff; background:rgba(255,138,69,70%); padding: 1px 4px; border-radius: 3px;position:absolute;font-family:'Source Sans Pro Regular',system-ui;min-width:80px;"; div.style=style; ad.div.appendChild(div) }if(!aps.cfg.infoDiv){var infoDiv=document.createElement("div"); infoDiv.id="infoDiv"; infoDiv.setAttribute("class","tooltipinfo"); infoDiv.style="position:absolute;display:none;width:406px;height:366px;overflow:hide;z-index;3000;background-color:rgba(255,138,69,100%);border-radius: 3px;font-family:'Source Sans Pro Regular';padding:3px 3px 3px 3px"; infoDiv.style.zIndex=3000; document.body.insertBefore(infoDiv,document.body.firstChild); aps.cfg.infoDiv=infoDiv; var infoDivClick=document.createElement("div"); infoDivClick.style="position.absolute;top:0px;float:right;font-size:10pt;color:white"; infoDivClick.innerHTML="Click to close"; infoDiv.appendChild(infoDivClick); var titleDiv=document.createElement("div"); titleDiv.id="infoDivTitle"; titleDiv.title="Click to close"; titleDiv.style="height:40px;width:400px;text-align:left;position:relative"; titleDiv.setAttribute("onclick","aps.fn.hideAdDetails()"); infoDiv.appendChild(titleDiv); var detailsDiv=document.createElement("div"); detailsDiv.id="infoDivDetails"; detailsDiv.style="overflow-y:scroll;width:400px;height:300px;oveflow:scroll;font-size:small;line-height:normal;padding:3px;position:relative;background-color:white;color:black;font-family:'Source Sans Pro Regular'"; infoDiv.appendChild(detailsDiv) }var inner=ad.code+"
SD: "+ad.scrollDepth; if(ad.advertiser){inner+="
"+ad.advertiser }inner+="
"; div.innerHTML=inner; if(aps.cfg.infoDivDisplaying==ad.code){aps.fn.setAdDetails(ad.code) }}; aps.fn.setAdDetails=function(id){if(!aps.cfg.logToConsole){return }var ad=aps.cfg.ads[id]; document.getElementById("infoDivTitle").innerHTML="

"+id+"

"; var inner="Misc
"; inner+="AdUnit: "+ad.getPage().adUnit+"
"; inner+="Advertiser: "+ad.advertiser+"
"; inner+="SizeMappings: "+ad.sizeMappings.join(", ")+"
"; inner+="Sizes: "+ad.stringSizes.join(", ")+"
"; inner+="Page Width: "+aps.pageWidth+"
"; inner+="Current Device: "; switch(current_device){case devices.DESKTOP:inner+="Desktop"; break; case devices.TABLER:inner+="Tablet"; break; case devices.MOBILE:inner+="Mobile"; break }inner+="
"; if(aps.cfg.bid.enabled){inner+="
"; inner+="Bids
"; if(ad.gam.aps&&ad.gam.aps.originalBid){inner+="Original Bid: "+ad.gam.aps.originalBid.ref+"
" }else{inner+="Original Bid: n/a
" }inner+="Optimized Bid: "+ad.gam.currentBid.ref+"
"; inner+="Bid increase: "+parseFloat(bo.diff(ad.gam.aps.originalBid,ad.gam.currentBid)).toFixed(2)+"
"; inner+="Won: "+ad.gam.currentBid.won+"
" }inner+="
"; if(ad.render){inner+="Response Info
"; var orderId=ad.render.responseInfo.campaignId; var lineItemId=ad.render.responseInfo.lineItemId||ad.render.responseInfo.sourceAgnosticLineItemId; Object.entries(ad.render.responseInfo).forEach(function(item){var link=item[1]; if(item[1]!=null){switch(item[0]){case"creativeId":link=""+item[1]+""; break; case"sourceAgnosticCreativeId":link=""+item[1]+""; break; case"lineItemId":link=""+item[1]+""; break; case"sourceAgnosticLineItemId":link=""+item[1]+""; break; case"campaignId":link=""+item[1]+""; break }}inner+=item[0]+": "+link+"
" }); inner+="
"; inner+="Targeting
"; Object.entries(ad.render.targetingMap).forEach(function(item){var value=Array.isArray(item[1])?item[1].join(", "):item[1].replace(",",", "); inner+=item[0]+": "+value+"
" }); inner+="
"; inner+="Page Targeting
"; Object.entries(ad.render.request.pageTargeting).forEach(function(item){var value=Array.isArray(item[1])?item[1].join(", "):item[1].replace(",",", "); inner+=item[0]+": "+value+"
" }) }document.getElementById("infoDivDetails").innerHTML=inner }; aps.fn.showAdDetails=function(adinfo){var theAd=adinfo.id.replace("dbg",""); if(aps.cfg.infoDivDisplaying==theAd){return }aps.cfg.infoDiv.style.display="block"; aps.cfg.infoDiv.style.top=event.pageY+15+"px"; aps.cfg.infoDiv.style.left=event.pageX+15+"px"; aps.cfg.infoDivDisplaying=theAd; aps.fn.setAdDetails(theAd) }; aps.fn.hideAdDetails=function(ad){aps.cfg.infoDiv.style.display="none"; aps.cfg.infoDivDisplaying="" }; aps.fn.requestAds=function(){if(!aps.cfg.readyToCallGAM){aps.fn.waitToCallGAM(); return }var requests=[]; var req; var missing=[]; aps.cfg.queuedAds=aps.cfg.queuedAds.filter(function(id){return !["Inline","RB"].includes(id) }); var arr=[]; aps.cfg.queuedAds.forEach(function(id){if(!arr.includes(id)){arr.push(id) }}); aps.cfg.queuedAds=arr; aps.cfg.queuedAds.forEach(function(id){var ad=aps.cfg.ads[id]; if(!ad){return }if(!requests[ad.scrollDepth]){req=new aps.o.req(aps.cfg.page.allPages[ad.scrollDepth]); requests[ad.scrollDepth]=req }if(!ad.div){ad.div=document.getElementById(ad.code); if(!ad.div){missing.push(ad.code); aps.cfg.missingDivs.push(ad.code); return }}if(!ad.gam){if(ad.supportsNative){ad.gam=googletag.defineSlot("/"+aps.cfg.networkCode+"/"+ad.getPage().adUnit,["fluid"],ad.code) }else{if(aps.cfg.is.legacy){ad.gam=googletag.defineSlot("/"+aps.cfg.networkCode+"/"+ad.getPage().adUnit,ad.sizes,ad.code) }else{ad.gam=googletag.defineSlot("/"+aps.cfg.networkCode+"/"+ad.getPage().adUnit,[ad.width,ad.height],ad.code) }}ad.kvps.forEach(function(kvp){ad.gam.setTargeting(kvp.key,kvp.value) }) }if(ad.gam){ad.gam.clearTargeting("frsh"); ad.gam.setTargeting("frsh",ad.renderCount); ad.gam.clearTargeting("i"); ad.gam.setTargeting("i",""+aps.cfg.dfp.requests.length); if(["Crown"].includes(ad.code)){ad.gam.setCollapseEmptyDiv(true,true) }aps.fn.setupResponsiveMappings(ad.gam,ad); ad.gam.addService(googletag.pubads()) }if(ad.gam&&ad.div){ad.isLoading=true; req.gams.push(ad.gam); req.ads.push(ad.code); if(ad.div.firstChild&&ad.div.firstChild.clientHeight){if(ad.div.firstChild.clientHeight>Math.abs(ad.div.style.minHeight.replace("px",""))){ad.div.style.minHeight=ad.div.firstChild.clientHeight+"px" }}}}); if(missing.length>0){aps.logInfo("*GAM* Not requesting "+missing+" div(s) not on the page") }requests.forEach(function(request,index){if(request.ads.length==0&&aps.cfg.dfp.requests.length==0){aps.cfg.waitingForAds=aps.cfg.waitingForAds||new Date().valueOf(); var thisTime=new Date().valueOf(); if(thisTime>aps.cfg.waitingForAds+15000){aps.logInfo("*GAM* Page not ready - no ads to request - enough waiting"); aps.cfg.queuedAds=[] }else{aps.logInfo("*GAM* Page not ready - no ads to request"); setTimeout(aps.fn.requestAds,100) }return }if(aps.cfg.bid.enabled&&((aps.cfg.bid.a9.enabled&&!request.page.a9BidsReceived)||!request.page.pbBidsReceived)){var info=JSON.stringify({version:1.1,pbBids:{enabled:aps.cfg.bid.enabled,received:request.page.pbBidsReceived},a9Bids:{enabled:aps.cfg.bid.a9.enabled,received:request.page.a9BidsReceived},scroll:request.page.scrollDepth,}); aps.logInfo("Bids not received for page "+request.page.scrollDepth); request.gams=[]; request.ads=[] }if(request.gams.length>0){if(request.page.datalayer.content.isSensitive){aps.logInfo("Don't serve ad on "+request.page.href+" - tragedy flag"); return }request.page.addPageKvp("scrollpage",""+request.page.scrollDepth,true); aps.cfg.page.kvps.forEach(function(kvp){googletag.pubads().setTargeting(kvp.key,kvp.value) }); request.page.kvps.forEach(function(kvp){googletag.pubads().setTargeting(kvp.key,kvp.value) }); aps.fireEvent(aps.event.on_before_request_ads,request); request.pageTargeting={}; var pagetm=googletag.pubads().getTargetingKeys(); pagetm.forEach(function(key){request.pageTargeting[key]=googletag.pubads().getTargeting(key) }); aps.cfg.dfp.requests.push(request); aps.fn.logInfo("*GAM* requesting for page "+index+" : "+request.ads); if(aps.cfg.dfp.batchSRA.enabled||request.page.page_type2=="article"){googletag.pubads().refresh(request.gams,{changeCorrelator:false}) }else{googletag.pubads().refresh(request.gams) }}aps.cfg.queuedAds=aps.cfg.queuedAds.filter(function(id){return !request.ads.includes(id) }); if(aps.cfg.queuedAds.length>0){if(aps.cfg.dfp.requests.length>0&&(HDN.dataLayer.ads.loaded||!aps.cfg.is.wcm)){var divs=[]; for(var i=aps.cfg.queuedAds.length-1; i>=0; i--){if(!aps.cfg.ads[aps.cfg.queuedAds[i]].div){divs.push(aps.cfg.queuedAds[i]); aps.cfg.queuedAds.splice(i,1) }}if(divs.length>0){aps.fn.logInfo("*GAM* "+divs+" removed from queue, still not on page") }}if(aps.cfg.queuedAds.length>0){setTimeout(aps.fn.requestAds,500) }}}); if(aps.cfg.dfp.batchSRA.enabled){aps.cfg.dfp.batchSRA.waitingNext=true; if(aps.cfg.dfp.batchSRA.auto){aps.fn.logInfo("BatchSRA : waiting to next step in "+aps.cfg.dfp.batchSRA.delay+" ms"); setTimeout(aps.fn.displayNextBatch,aps.cfg.dfp.batchSRA.delay) }}}; aps.fn.waitToCallGAM=function(){if(aps.cfg.readyToCallGAM){aps.fn.requestAds() }else{if((aps.cfg.bid.a9.enabled&&!aps.cfg.bid.a9.received)||(aps.cfg.bid.enabled&&!aps.cfg.bid.pb.received)||!aps.cfg.domIsLoaded||!googletag.apiReady||aps.cfg.waitingForRichie||(!aps.cfg.tregReady&&aps.cfg.waitForTreg&&!aps.cfg.is.legacy)){if(aps.cfg.waitingSince){var now=new Date().valueOf(); if(now-aps.cfg.waitingSince>=5000){var info={version:aps.cfg.version,pbBids:{enabled:aps.cfg.bid.enabled,received:aps.cfg.bid.pb.received},a9Bids:{enabled:aps.cfg.bid.a9.enabled,received:aps.cfg.bid.a9.received},domIsLoaded:aps.cfg.domIsLoaded,apiReady:googletag.apiReady,richie:{is:aps.cfg.is.richie,waiting:aps.cfg.waitingForRichie},treg:{waiting:aps.cfg.waitForTreg,ready:aps.cfg.tregReady},legacy:aps.cfg.is.legacy,}; aps.logInfo(["Waiting for 5 seconds.",info]); if(googletag.apiReady){aps.cfg.readyToCallGAM=true; aps.fn.requestAds() }else{setTimeout(aps.fn.waitToCallGAM,100) }}else{aps.logInfo("Not ready to call GAM"); setTimeout(aps.fn.waitToCallGAM,100) }}else{aps.logInfo("Not ready to call GAM"); aps.cfg.waitingSince=aps.cfg.waitingSince||new Date().valueOf(); setTimeout(aps.fn.waitToCallGAM,100) }}else{aps.logInfo("Ready to call GAM"); aps.cfg.readyToCallGAM=true; aps.fn.requestAds() }}} })();(function(){aps.pageWidth=window.screen.width||top.window.innerWidth||window.width||-1; if(navigator.userAgent.indexOf("iPad")>-1){window.current_device=devices.TABLET }else{if(navigator.userAgent.indexOf("iPhone")>-1){window.current_device=devices.MOBILE }else{if(navigator.userAgent.indexOf("Android")>-1){window.current_device=devices.MOBILE }else{if(document.querySelectorAll("meta[name=viewport]").length>0){try{var d; var c=document.querySelectorAll("meta[name=viewport]")[0].content.split(","); for(var b=0; b0; aps.cfg.is.faceBookInstantArticle=(JuicePageUrl.indexOf("juicemode=fbinstant")!==-1); aps.cfg.is.leafsSite=aps.cfg.leafsSites.includes(document.location.hostname); aps.cfg.is.legacy=(document.location.hostname.indexOf("legacy.com")>-1||(top.location!=location&&document.referrer=="https://www.legacy.com/")); aps.cfg.is.premium=(HDN&&HDN.dataLayer&&typeof HDN.dataLayer.paywall!=="undefined"&&typeof HDN.dataLayer.paywall.premiumStatus!=="undefined"&&HDN.dataLayer.paywall.premiumStatus==="isPremium")?true:false; aps.cfg.is.premiumSite=["expressnews.com","houstonchronicle.com","sfchronicle.com"].some(function(a){return document.location.host.endsWith(a) })&&document.location.host.split(".").some(function(a){return["www","cmf"].includes(a) }); aps.cfg.is.qa=(document.location.hostname.startsWith("cmf.")||document.location.hostname.startsWith("preview.cmf")||loadAd_UrlLocation=="https://aps-staging.hearstnp.com/")?true:false; aps.cfg.is.previewHC=document.location.hostname=="preview.houstonchronicle.com"; aps.cfg.is.projectPage=(document.location.pathname.startsWith("projects")||document.location.hostname.startsWith("projects."))?true:false; aps.cfg.is.richie=APSpageUrl.indexOf("staging.richie")==0||APSpageUrl.indexOf("richie")==0||APSpageUrl.indexOf("papp")==0; aps.cfg.is.wcm=(HDN&&HDN.dataLayer&&HDN.dataLayer.content&&typeof HDN.dataLayer.content.designTemplate!="undefined")?true:false; aps.cfg.is.wp=typeof(window.wp_content)=="object" })();(function(){aps.registerEvent(aps.event.on_new_page,function(a){a.adUnit=null; a.setAdUnit=function(){var b={adUnit:(aps.page&&aps.page.adUnit)?aps.page.adUnit:"",previousValue:(aps.page&&aps.page.adUnit)?aps.page.adUnit:"",queryStringOverwritten:false,levelOne:{value:"hnp-"+a.domain,forced:false,},levelTwo:{value:"",forced:false,},checkQueryStringValue:function(){var d=aps.fn.getQueryParameterByName("hnpau"); if(!d){return }var c=d.split("/"); if(c[0]&&c[0]!=""){if(c[0].startsWith("hnp-")){this.levelOne.value=c[0]; this.levelOne.forced=true; this.queryStringOverwritten=true }else{aps.fn.logInfo("*WRN* Using hnpau query string param to set runtime adunit needs to have an adunit to start with 'hnp-'. To define second level, add it after /. To only change second level, start at /") }}if(c[1]&&c[1]!=""){this.levelTwo.value=c[1]; this.levelTwo.forced=true; this.queryStringOverwritten=true }},getNewValue:function(){this.checkQueryStringValue(); if(aps.cfg.is.authorPage||aps.cfg.is.projectPage){this.levelTwo.value="general_wcm"; this.levelTwo.forced=true }if(aps.cfg.is.datebookSF||aps.cfg.is.previewHC){this.levelTwo.value="datebook_wp"; this.levelTwo.forced=true }if(aps.cfg.juiceCustom){var c=juice.definedTags.adUnit.split("/"); this.levelOne.value=c[0]; this.levelOne.forced=true; this.levelTwo.value=c[1]; this.levelTwo.forced=true }if(aps.cfg.is.legacy){if(!this.levelOne.forced){this.levelOne.value="hnp-"+a.domain; this.levelOne.forced=true }if(!this.levelTwo.forced){this.levelTwo.value="Obituaries"; this.levelTwo.forced=true }}if(aps.cfg.is.eedition){if(!this.levelOne.forced){var d=document.location.pathname.split("/")[3]+".com"; switch(document.location.pathname.split("/")[3]){case"albanytimesunion":d="timesunion.com"; break; case"atuspecialsectionfree":d="timesunion.com"; break; case"atuspecialsectionpaid":d="timesunion.com"; break; case"atusubscriberexclusives":d="timesunion.com"; break; case"beaumontlakecaster":d="beaumontenterprise.com"; break; case"beaumontvip":d="beaumontenterprise.com"; break; case"connecticutpost":d="ctpost.com"; break; case"cthousehunter":d="ctpost.com"; break; case"danburynewstimes":d="newstimes.com"; break; case"foothillstrader":d="nhregister.com"; this.levelTwo.value="e-edition"; this.levelTwo.forced=true; break; case"houstonchronicle":d="chron.com"; break; case"hurondailytribune":d="michigansthumb.com"; break; case"hurondailytribunenie":d="michigansthumb.com"; break; case"intelligencer":d="theintelligencer.com"; break; case"laredomorningtimes":d="lmtonline.com"; break; case"lavoz":d="chron.com"; break; case"midlanddailynews":d="ourmidland.com"; break; case"midlanddailynewsnie":d="ourmidland.com"; break; case"midlandreportertelegram":d="mrt.com"; break; case"midlandreportertelegramnie":d="mrt.com"; break; case"saenmilitary":d="mysanantonio.com"; break; case"saencommunities":d="mysanantonio.com"; break; case"saensubscriberexclusives":d="mysanantonio.com"; break; case"saenweeklies":d="mysanantonio.com"; break; case"sanantonioexpressnews":d="mysanantonio.com"; break; case"sanfranciscochronicle":d="sfgate.com"; break; case"sanfranciscochroniclenie":d="sfgate.com"; break }if(d!=""){this.levelOne.value="hnp-"+d; this.levelOne.forced=true }}if(!this.levelTwo.forced){this.levelTwo.value="E-edition"; this.levelTwo.forced=true }}if(aps.cfg.is.richie){if(!this.levelOne.forced){this.levelOne.value="hnp-"+a.domain.replace(".com",".rapp"); this.levelOne.forced=true }if(!this.levelTwo.forced){this.levelTwo.value="article_rapp"; this.levelTwo.forced=true }}if(aps.cfg.is.qa){if(!this.levelOne.forced){this.levelOne.value="hnp-hearstdemosite"; this.levelOne.forced=true }if(!this.levelTwo.forced){this.levelTwo.value="hearstdemozone"; this.levelTwo.forced=true }}if(aps.cfg.is.leafsSite){if(document.location.hostname=="pyme.lavoztx.com"){if(!this.levelOne.forced){this.levelOne.value="hnp-chron.com"; this.levelOne.forced=true }if(!this.levelTwo.forced){this.levelTwo.value="La_Voz"; this.levelTwo.forced=true }}if(!this.levelOne.forced){this.levelOne.value="hnp-"+document.location.host.split(".").slice(-2).join("."); this.levelOne.forced=true }if(!this.levelTwo.forced){this.levelTwo.value=(document.location.pathname=="/")?"channel_leaf":"article_leaf"; this.levelTwo.forced=true }}if(!this.levelTwo.forced&&!a.isSubDomain&&a.path.length==0){this.levelTwo.value="Homepage"; this.levelTwo.forced=true }if(!this.levelTwo.forced){switch(aps.cfg.designTemplate){case"design/article/dynamic_two_column.tpl":this.levelTwo.value="article_dtc"; this.levelTwo.forced=true; break; case"design/article/dynamic_one_column.tpl":this.levelTwo.value="article_doc"; this.levelTwo.forced=true; break; case"design/slideshow/dynamic_two_column.tpl":this.levelTwo.value="article_list"; this.levelTwo.forced=true; break; case"design/channel/dynamic_two_column.tpl":this.levelTwo.value="channel_wcm"; this.levelTwo.forced=true; break; default:if(aps.cfg.designTemplate&&aps.cfg.designTemplate.indexOf("channel")>-1){this.levelTwo.value="channel_old"; this.levelTwo.forced=true }else{this.levelTwo.value="article_old"; this.levelTwo.forced=true }}}this.levelOne.value=this.levelOne.value.replace("hnp-theintelligencer.com","theintelligencer"); var e=this.levelOne.value+"/"+this.levelTwo.value; if(this.queryStringOverwritten||aps.sitesWithoutCallback.includes(a.hostname)){this.adUnit=e; aps.fn.logInfo("*AdUnit: setting adUnit to : "+this.adUnit) }this.newValue=e; return e }}; a.adUnit=b.getNewValue() }() }) })();(function(){aps.registerEvent(aps.event.on_new_page,function(a){a.sectionPath=[]; a.setSectionPath=function(){var d=a.datalayer.content.sectionPath||[]; if(d.length>0&&typeof d[0].title=="string"){var c=[]; Object.entries(d).forEach(function(e){c.push(e[1].title.toLowerCase()) }); d=c }if(aps.cfg.is.datebookSF){a.sectionPath=["entertainment","datebook"] }else{if(aps.cfg.is.previewHC){a.sectionPath=["entertainment","preview"] }else{if(aps.cfg.juiceCustom){if(juice.definedTags.sectionPath){a.sectionPath=juice.definedTags.sectionPath }}else{if(aps.cfg.is.authorPage){a.sectionPath=["author",a.path[2]] }else{if(aps.cfg.is.leafsSite){a.sectionPath=[document.location.hostname.split(".")[0]]; a.addPageKvp("category","third_party"); a.addPageKvp("custom","demandmedia") }else{if(d){a.sectionPath=d; for(var b=0; b]/g,""); a.sectionPath[b]=a.sectionPath[b].replace(/\s\+\s|\s\&\s|\+|\&/g,"-and-"); a.sectionPath[b]=a.sectionPath[b].replace(/[\(\)\[\],]/g,"|") }}}}}}}if(a.sectionPath.length>0){aps.fn.logInfo("section Path: "+d); for(var b=0; b= 10',"no bid after 10 impressions of teads"],['bidder=="triplelift" && ["Flex1","B728","TMP300_3"].includes(adDef.code)',"no bid on Flex1, B728 or TMP300_3 for triplelift"],['adDef.code == "A951" && document.location.href.startsWith("https://www.sfgate.com/realestate/")',"no bid on A951 on sfgate realestate"],['bidder == "kargo" && adDef.code == "Flex1"',"no bid on Flex1 for Kargo"],['bidder == "teads" && ["Flex1","MAD","Inline","RB"].includes(adDef.code)',"no bid on Flex1, MAD, Inline or RB for teads"],['adDef.code == "DTBK_AP951"',"no bid on DTBK_AP951, direct sales only."],],}; aps.cfg.vid={mode:"apv",tagUrl:"",enabled:false,}; aps.cfg.gaLog=(Math.floor(Math.random()*100)<=5); aps.cfg.excludeModules=[]; aps.cfg.waitingGoogle=false; aps.cfg.preventCeltraAdsToRefresh=true; aps.cfg.queuedAds=[]; aps.cfg.serveAds=true; aps.cfg.readyToCallGAM=false; aps.cfg.refreshViewableOnly=true; aps.cfg.videoAdTag=null; if(aps.cfg.logToConsole){var b=new Date(); b.setTime(b.getTime()+(1000*24*60*60*1000)); var c="; expires="+b.toGMTString(); document.cookie="console=1"+c+"; path=/" }if(window.location.search.indexOf("console=0")!==-1){var b=new Date(); b.setTime(b.getTime()+(60*1000)); var c="; expires="+b.toGMTString(); document.cookie="console=0"+c+"; path=/"; aps.cfg.logToConsole=false }aps.cfg.source="Prod"; if(window.loadAd_UrlLocation.indexOf("dev.")>-1||aps.cfg.is.qa){aps.cfg.source="QA" }if(aps.cfg.gaLog){ga("pb.send",{nonInteraction:true,hitType:"event",eventCategory:"juice_version",eventAction:aps.cfg.source,eventLabel:aps.cfg.version}) }aps.registerEvent(aps.event.on_new_page,function(d){if(document.location.pathname.indexOf("/sponsored/")!==-1){aps.fn.logInfo("*Disabling bidders - sponsored content"); aps.cfg.bid.enabled=false; aps.cfg.bid.a9.enabled=false }if(aps.cfg.bid.excludedDomains.includes(d.domain)){aps.fn.logInfo("*Disabling bidders - excluded domains"); aps.cfg.bid.enabled=false; aps.cfg.bid.a9.enabled=false }if(document.location.hostname.startsWith("storystudio")){aps.fn.logInfo("storystudio - no ads"); aps.cfg.serveAds=false }if(aps.cfg.is.projectPage){aps.sitesWithoutCallback.push(document.location.hostname) }if(aps.cfg.is.qa&&aps.cfg.is.wcm){aps.sitesWithoutCallback.push(document.location.hostname) }}) })();(function(){aps.cfg.waitingForRichie=aps.cfg.waitingForRichie||false; if(APSpageUrl){if(aps.cfg.is.richie){googletag.cmd.push(function(){try{googletag.pubads().set("page_url",JuicePageUrl); aps.fn.logInfo("Richie app: Setting page_url to "+JuicePageUrl) }catch(b){}}); aps.fn.logInfo("Richie app: disabling modules"); if(document.location.href.indexOf("?appId=")==-1){aps.cfg.bid.enabled=false; aps.cfg.bid.a9.enabled=false }aps.cfg.excludeModules=["nlp","ab_testing","blueconic","PublisherProvidedId","permutive"]; if(typeof mraid=="undefined"){aps.fn.logInfo("mraid not present, not waiting for Richie"); aps.cfg.waitingForRichie=false }else{aps.cfg.waitingForRichie=true; aps.fn.logInfo("Richie app: enabling viewable trigger"); function a(b){if(b){aps.cfg.waitingForRichie=false; aps.fn.logInfo("Richie app: viewable triggered") }}mraid.addEventListener("viewableChange",a) }}}})();(function(){aps.fn.getHDNnlpWithId=function(e,g,d){var f=[]; try{var a=e.datalayer.content["keyNlp"+g]; for(var c=0; c0){b=b.concat("a_"+e) }e=aps.fn.getHDNnlpWithId(d,"ConsumerGood","g"); if(e.length>0){b=b.concat(e) }e=aps.fn.getHDNnlpWithId(d,"Event","e"); if(e.length>0){b=b.concat(e) }e=aps.fn.getHDNnlpWithId(d,"Location","l"); if(e.length>0){b=b.concat(e) }e=aps.fn.getHDNnlpWithId(d,"Organization","o"); if(e.length>0){b=b.concat(e) }e=aps.fn.getHDNnlpWithId(d,"Person","p"); if(e.length>0){b=b.concat(e) }e=aps.fn.getHDNnlpWithId(d,"Unknown","u"); if(e.length>0){b=b.concat(e) }e=aps.fn.getHDNnlpWithId(d,"WorkOfArt","w"); if(e.length>0){b=b.concat(e) }d.addPageKvp("nlp_entities",b) }catch(c){aps.fn.logInfo("nlp_categories: exception") }}) })();(function(){if(aps.cfg.is.eedition){return }if(!aps.fn.shouldRunThirdParty("permutive")){return }aps.cfg.permutive=aps.cfg.permutive||{}; aps.cfg.permutive.excludedFrom=["www.sfgate.com/partner/transparensee","www.mysanantonio.com/partner/transparensee","www.timesunion.com/partner/transparensee","https://realestate.timesunion.com/"]; aps.cfg.permutive.setPermutiveValue=function(page,arrToTest){retValue=null; if(!arrToTest.length){arrToTest=[arrToTest] }for(var i=0; irequest.page.permutive.maxItems){aps.fn.logInfo("Permutive: "+request.page.permutive.ids.length+" audiences found"); if(request.page.domain!="stamfordadvocate.com"){request.page.permutive.ids=request.page.permutive.ids.slice(0,request.page.permutive.maxItems) }}aps.fn.logInfo("Permutive (from local storage)") }else{request.page.permutive.ids=request.page.permutive.ids||[]; if(request.page.permutive.ids.length>request.page.permutive.maxItems){aps.fn.logInfo("Permutive: "+request.page.permutive.ids.length+" audiences found"); if(request.page.domain!="stamfordadvocate.com"){request.page.permutive.ids=request.page.permutive.ids.slice(0,request.page.permutive.maxItems) }}}var permutiveKvp=request.page.kvps.filter(function(kvp){return kvp.key=="permutive" })[0]; if(permutiveKvp){permutiveKvp.value=[] }request.page.addPageKvp("permutive",request.page.permutive.ids,true) }) })();(function(){aps.cfg.multi=aps.cfg.multi||{}; aps.cfg.multi.ads=aps.cfg.multi.ads||[]; aps.cfg.multi.enabled=aps.cfg.multi.enabled||false; aps.cfg.multi.availableTypes={}; if(aps.cfg.is.wcm){aps.cfg.multiAds["Inline"]=aps.cfg.allAds["Inline"]; aps.cfg.multiAds["LIST"]=aps.cfg.allAds["LIST"]; aps.cfg.multiAds["RB"]=aps.cfg.allAds["RB"]; aps.cfg.multiAds["SSHOW"]=aps.cfg.allAds["SSHOW"] }else{if(aps.cfg.is.leafsSite){aps.cfg.multiAds["A728"]=aps.cfg.allAds["A728"]; aps.cfg.multiAds["A300"]=aps.cfg.allAds["A300"]; aps.cfg.multiAds["B300"]=aps.cfg.allAds["B300"]; aps.cfg.multiAds["S300"]=aps.cfg.allAds["S300"]; aps.cfg.multiAds["Leaf1"]=aps.cfg.allAds["Leaf1"]; aps.cfg.multiAds["Leaf2"]=aps.cfg.allAds["Leaf2"]; aps.cfg.multiAds["Leaf3"]=aps.cfg.allAds["Leaf3"]; aps.cfg.multiAds["Leaf4"]=aps.cfg.allAds["Leaf4"]; aps.cfg.multiAds["MAD"]=aps.cfg.allAds["MAD"] }}aps.registerEvent(aps.event.on_ad_definition_loaded,function(){if(!aps.cfg.serveAds){return }aps.cfg.multi.createMultiAds(); Object.entries(aps.cfg.multiAds).forEach(function(d){if((!aps.cfg.juiceDirect&&!aps.cfg.juiceCustom)||aps.cfg.adMap.includes(d[0])){if(aps.cfg.ads[d[0]]){aps.cfg.bid.prefetch.checkMultiAd(aps.cfg.ads[d[0]]) }}}); var b=["Crown","Flex1"]; var c=aps.cfg.adMap.filter(function(d){return !b.includes(d) }); var a=aps.cfg.dfp.lazyload.firstLoad.filter(function(d){return aps.cfg.adMap.includes(d) }); aps.cfg.adMap=a.concat(c); aps.cfg.adMap.forEach(function(e){var d=aps.cfg.ads[e]; if(!d){return }d.checkForInclude={addAdSlot:false,stop:false}; aps.fireEvent(aps.event.on_check_include_ad,d); if(!d.checkForInclude.stop){d.checkForInclude.addAdSlot=true }if(d.checkForInclude.addAdSlot){aps.cfg.queuedAds.push(e) }}) }); aps.registerEvent(aps.event.on_render_ad,function(a){if(!aps.cfg.bid.enabled){return }aps.cfg.bid.prefetch.checkMultiAd(a.ad) }); aps.cfg.multi.createMultiAds=function(){Object.entries(aps.cfg.multiAds).forEach(function(b){baseAd=aps.cfg.multiAds[b[0]]; if((!aps.cfg.juiceDirect&&!aps.cfg.JuiceCustom)||aps.cfg.adMap.includes(b[0])){var a=aps.cfg.ads[baseAd.code]||new aps.o.gamAd(baseAd.code,baseAd.width,baseAd.height,baseAd.sizeMappings); aps.cfg.multi.availableTypes[baseAd.code]=a; if(aps.cfg.is.leafsSite){}}}) }; aps.cloneAdMulti=function(c){if(aps.cfg.ads[c]){return }var a=c.split("-")[0]; var b=aps.cfg.ads[a]; if(b.code==undefined){return }var d=new aps.o.gamAd(c,b.width,b.height,b.sizeMappings); d.batchRequest="" }; aps.showLIST=function(b){if((JSON.stringify(b)=="[null]"||JSON.stringify(b)=="[]")&&!aps.cfg.dfp.isWaiting){aps.fn.logInfo("showLIST: Called with empty array"); return }aps.cfg.multi.enabled=true; var a=[]; b.forEach(function(f){var e=""; var g=f.id.split("-"); var d=true; if(g.length==1){aps.fn.logInfo("showLIST: Base ad "+g[0]+" won't be re-created"); d=false }e=g[0]; if(aps.cfg.multi.availableTypes[e]==undefined){aps.fn.logInfo("showLIST: This type of LIST ad is not supported"); d=false }if(d){var c=aps.cfg.ads[f.id]; if(!c){aps.cloneAdMulti(f.id); aps.fireEvent(aps.event.on_define_bid_data,aps.cfg.ads[f.id]); c=aps.cfg.ads[f.id] }if(!c.div){c.div=f; aps.fireEvent(aps.event.on_new_div,f) }a.push(f.id) }}); aps.fn.logInfo("showLIST: Calling MULTI slots: "+a); a.forEach(function(c){aps.cfg.queuedAds.push(c) }); setTimeout(aps.fn.waitToCallGAM,200) } })();(function(){if(aps.cfg.is.wcm){aps.fn.logInfo("IVM Enabling In-View ad Management"); aps.cfg.ivm={observed:[],observer:null,delayBeforeDelete:5000,options:{root:null,rootMargin:"200px 0px 200px 0px",thresholds:0,},appendToObserver:function(a){if(!a){return }if(!aps.cfg.ivm.observed.includes(a.id)){aps.cfg.ivm.observed.push(a.id); aps.cfg.ivm.observer.observe(a); aps.logInfo("*IVM* observing "+a.id) }},callback:function(a){a.forEach(function(c){var b=aps.cfg.ads[c.target.id]; if(b.div==null){b.div=document.getElementById(b.code) }b.div.dataset.inview=c.isIntersecting; if(b.doNotRefresh){return }if(c.isIntersecting){aps.fn.tagAd(b); aps.fn.logInfo("*IVM* "+b.code+" in view"); if(b.state=="toDelete"){b.state="displayed" }else{if(b.state=="deleted"){b.state="reloading"; aps.fn.logInfo("*IVM* "+b.code+" reloading"); b.impressionViewable=true; hearstRefreshAds([b.code]) }}}else{if(b.renderCount>1){aps.fn.logInfo("*IVM* "+b.code+" out of view"); b.state="toDelete"; b.ivm=new Date().valueOf() }}}) }}; aps.cfg.ivm.observer=new IntersectionObserver(aps.cfg.ivm.callback,aps.cfg.ivm.options); aps.registerEvent(aps.event.on_before_request_ads,function(a){a.ads.forEach(function(c){var b=document.getElementById(c); aps.cfg.ivm.appendToObserver(b) }) }); aps.registerEvent(aps.event.on_new_div,function(a){aps.cfg.ivm.appendToObserver(a) }); aps.registerEvent(aps.event.on_timer,function(b){var a=new Date().valueOf()-aps.cfg.ivm.delayBeforeDelete; Object.entries(aps.cfg.ads).forEach(function(e){var c=e[1]; if(c.state!="toDelete"){return }if(c.ivm0){var d=[]; for(var c=0; c1&&parseInt(b[2],10)>4){d.push(parseInt(b[1],10)+"x"+parseInt(b[2],10)) }}e="?sz="+d.join("%7C") }else{e="?sz="+encodeURIComponent(a.width+"x"+a.height) }return e }; window.hearstGetVideoAdTag=function(b){if(aps.cfg.videoAdTag==null){aps.cfg.videoAdTag={width:1,height:4,code:"Video_MOS",rm:false,interstitial:false,sizeMappings:["001x400x300","001x640x360","001x640x480","001x001x004"],video:true,companion_units:null,kvps:[],} }var a=aps.cfg.videoAdTag; if(typeof(a)=="undefined"){aps.fn.logInfo("hearstGetVideoAdTag called with non-defined ad slot "+b+" : ignoring "); return null }if(a.video==false){aps.fn.logInfo("hearstGetVideoAdTag called non video defined ad slot "+b); return null }var f=hearstGetVideoAdTagSize(a); var g="https://pubads.g.doubleclick.net/gampad/ads"; g+=f; g+="&iu=/"+encodeURIComponent(aps.cfg.networkCode+"/"+aps.cfg.page.current.adUnit); g+="&url="+encodeURIComponent(top.location.protocol+"//"+JuicePageUrl); g+="&impl=s"; g+="&gdfp_req=1"; g+="&env=vp"; g+="&output=xml_vast3"; g+="&page_type="+aps.cfg.page.current.page_type2; g+="&unviewed_position_start=1"; g+="&description_url="+encodeURIComponent(top.location.protocol+"//"+JuicePageUrl); g+="&vpos=preroll"; g+="&ad_safe=medium"; if(a.companion_units!=null&&a.companion_units!=""){g+="&ciu_szs="+encodeURIComponent(a.companion_units) }else{g+="&ciu_szs=" }var c=""; c+="distributor_domain="; if(aps.cfg.page.current.domain.indexOf("m.")==0){c+=aps.cfg.page.current.domain.substr(2) }else{c+=aps.cfg.page.current.domain }c+="&page_type2="+aps.cfg.page.current.page_type2; c+="&pageurl="+encodeURIComponent(top.location.protocol+"//"+JuicePageUrl); c+="&referrer="+encodeURIComponent(document.referrer); c+="&urlhash="+aps.cfg.juiceMdUrlHash; c+="&pw=__player-width__&ph=__player-height__"; c+=(aps.cfg.vid.tagUrl=="")?"":"&"+aps.cfg.vid.tagUrl; for(var d=0; d-1){aps.fn.logSkip(d.code,"Celtra ad") }else{if(!aps.cfg.is.leafsSite&&d.isLoading==true){aps.fn.logSkip(d.code,"Last request not completed") }else{if(!aps.cfg.is.leafsSite&&!d.refreshable){aps.fn.logSkip(d.code,"Not refreshable") }else{if(!aps.cfg.is.leafsSite&&d.renderCount<=1){aps.fn.logSkip(d.code,"Not rendered") }else{if(!aps.cfg.is.leafsSite&&aps.cfg.refreshViewableOnly&&!d.impressionViewable){aps.fn.logSkip(d.code,"Not viewable") }else{if(d.code=="Crown"){aps.fn.logSkip(d.code,"Not refreshing Crown"); d.exclude=true }else{if(aps.page_type2=="article"&&["www.expressnews.com","www.houstonchronicle.com","www.sfchronicle.com"].includes(document.location.hostname)&&((current_device==devices.MOBILE&&d.code!="MAD")||(!["A300","B300","S300"].includes(d.code)&&!d.code.startsWith("rb")))){aps.fn.logSkip(d.code,"hearstRefreshAds: not refreshing masthead ads on premium site "); d.exclude=true }else{if(aps.cfg.ivm&&d.div.dataset.inview=="false"){aps.fn.logSkip(d.code,"only refreshing in view ads") }else{aps.fn.logInfo("hearstRefreshAds: refreshing "+d.code); c.push(d.code) }}}}}}}}}}); if(c.length<=0){aps.fn.logInfo("hearstRefreshAds: No ads are in refreshable state - skipping refresh"); return }aps.fn.logInfo("hearstRefreshAds: refreshing ad slots "+c); aps.cfg.queuedAds=aps.cfg.queuedAds.concat(c); aps.fn.requestAds() }; window.hearstRefreshInterstitialAds=function(a){var b=[]; if(!Array.isArray(a)){a=[a] }aps.fn.logInfo("hearstRefreshInterstitialAds called: "+a.join(", ")); a.forEach(function(d){var c=aps.cfg.ads[d]; if(d=="EEinsert"){if(!aps.cfg.ads["EEinsert"]){aps.logInfo("EEinsert not defined") }else{b.push(d) }return }if(!c){aps.fn.logSkip(d+" not defined"); return }if(!c.interstitial){aps.fn.logSkip(c.code+" not an interstitial ad"); return }if(c.isLoading==true&&c.code!="EEinsert"){aps.fn.logInfo("skipping refresh of "+c.code+" . It has not completed last request."); return }if(aps.cfg.refreshViewableOnly&&!c.impressionViewable&&c.code!="EEinsert"){aps.fn.logInfo("skipping refresh of interstitial "+c.code+" . It is not viewable.") }else{aps.fn.logInfo("hearstRefreshAds: refreshing "+c.code); b.push(c.code) }}); if(b.length<=0){aps.fn.logInfo("hearstRefreshAds: No ads are in refreshable state - skipping refresh"); return }aps.fn.logInfo("hearstRefreshAds: refreshing ad slots "+b); aps.cfg.queuedAds=aps.cfg.queuedAds.concat(b); aps.fn.requestAds() }; aps.fn.contentLoaded(window,aps.fn.domLoaded) })();(function(){aps.cfg.page=new aps.o.base(); aps.fn.getPageInfo=function(b,a){var b=b||aps.fn.getFilteredHref(document.location.href); var e=aps.cfg.page; if(!e.urls.includes(b)){var d=new aps.o.page(b,[],a); e.allPages.push(d); e.urls.push(b); if(!e.current){e.current=d; e.currentIndex=0; aps.logInfo("Changing current URL to "+b); aps.cfg.current_domain=e.current.domain }else{e.next=d; if(aps.cfg.is.wcm){if(!e.next.scrollDepth){e.next.scrollDepth=aps.cfg.page.urls.length-1 }}if(aps.cfg.is.leafsSite){e.next.scrollDepth=aps.cfg.page.urls.length-1 }}}else{var c=e.urls.indexOf(b); e.currentIndex=c; e.current=e.allPages[c] }}; aps.fn.getPageInfo(); JuicePageUrl=aps.cfg.page.current.href.replace("/?","?"); if(aps.cfg.page.current.domain=="ctinsider.com"){aps.cfg.page.addBaseKvp("sect","ctinsider") }aps.cfg.abtestvar=window.HDN&&HDN.dataLayer&&HDN.dataLayer.abtest&&HDN.dataLayer.abtest.experimentId||aps.abtest||aps.npabtest||[]; if(aps.cfg.abtestvar.length>0){aps.fn.logInfo("npabtest : "+aps.cfg.abtestvar); aps.cfg.abtestvar.forEach(function(a){aps.cfg.page.addBaseKvp("ab",a) }) }else{aps.fn.logInfo("npabtest not detected.") }aps.cfg.page.addBaseKvp("v",aps.cfg.version) })();(function(){if(!aps.cfg.bid.enabled){return }aps.cfg.bid.prefetch={enabled:true,delay:2000,allBidsOnRefresh:true,que:[],refreshTimeout:2500,timeout:2500,timeoutPadding:10*1000,multiAdsToPrefetch:4,version:1.4,a9:{adUnits:[],enabled:true,},pb:{adUnits:[],bidCount:[],biddersDone:[],calledBidders:[],clientSideBidders:[],enabled:true,},checkMultiAd:function(a){if(!a.multiAd||aps.cfg.infiniteScroll){return }if(aps.cfg.is.wcm){var b=(parseInt(a.code.split("-")[1])+1)||1; var c=b+aps.cfg.bid.prefetch.multiAdsToPrefetch; if(aps.page_type2=="slideshow list view"){c=b+10 }for(var d=b; d1000 }); c.forEach(function(f){var d=aps.cfg.ads[f.code]; var e=document.getElementById(f.code); if(e.firstChild&&e.firstChild.name&&e.firstChild.name.startsWith("google")){e=e.firstChild }var g=e.getClientRects(); if(g.length>0){d.renderedSize=Math.round(g[0].width)+"x"+Math.round(g[0].height); f.renderedSize=d.renderedSize; f.advertiser=d.advertiser; f.sizes=d.stringSizes.join(",") }f.done=true }) }); aps.registerEvent(aps.event.on_new_div,function(b){var a=aps.cfg.ads[b.id]; var c=0; a.div=b; if(aps.cfg.is.wcm){if(b.dataset&&b.dataset.scrolldepth){c=b.dataset.scrolldepth }a.scrollDepth=c }aps.logInfo("*DIV* New div : "+b.id+" scrollDepth: "+c) }) })();(function(){try{var a=document.location.search.indexOf("adtest")+7; if(a==6){return }var c=document.location.search.indexOf(";",a); if(c==-1){c=document.location.search.length-a }aps.cfg.adtestparam=document.location.search.substr(a,c); if(aps.cfg.adtestparam){aps.page_kvps=aps.page_kvps||[]; aps.cfg.adtestparam=decodeURI(aps.cfg.adtestparam).split("|"); for(var g=0; g1){aps.fn.logSkip(f,"ad already displayed - aps.placeAd"); return }c.push(f); aps.cfg.dfp.waiting.push(f); aps.cfg.dfp.isWaiting=true; d=true }); aps.fn.logInfo("aps.placeAd: called with values: "+b.join(",")); if(c.length==0){aps.fn.logInfo("aps.placeAd: No ad to proceed"); return }aps.fn.logInfo("aps.placeAd: processing: "+c.join(",")); aps.waitStartStep("lazyload") }; if(aps.cfg.dfp.lazyload.enabled){aps.fn.logInfo("lazyloading: enabled"); aps.registerEvent(aps.event.on_check_include_ad,function(a){var c=aps.cfg.adMap.filter(function(d){return !aps.cfg.dfp.lazyload.firstLoad.includes(d) }); var b=aps.cfg.dfp.lazyload.firstLoad.filter(function(d){return aps.cfg.adMap.includes(d) }); aps.cfg.adMap=b.concat(c); aps.cfg.queuedAds=aps.cfg.queuedAds.concat(b) }) }})();(function(){aps.cfg.dfp.batchSRA={delay:3000,enabled:(window.location.search.indexOf("batchsra=1")!==-1||document.location.hostname.toLowerCase()=="sfinsider.sfgate.com")?true:false,auto:false,waitingNext:false,hasScrolled:false,userInteractFor:1,atfFirst:true,completed:false,}; if(HDN.dataLayer.ads.adMode=="batch"){aps.cfg.dfp.batchSRA.enabled=true; aps.logInfo("BatchSRA enabled") }if(aps.cfg.dfp.batchSRA.enabled){aps.fn.onScroll=function(){if(!aps.cfg.dfp.batchSRA.waitingNext||aps.cfg.dfp.batchSRA.hasScrolled){return }aps.fn.logInfo("Batch SRA : Scrolled"); aps.cfg.dfp.batchSRA.auto=true; aps.cfg.dfp.batchSRA.hasScrolled=true; aps.cfg.dfp.batchSRA.waitingNext=false; aps.fn.displayNextBatch() }; aps.fn.logInfo("Batch SRA : listening to Scroll event"); if(window.addEventListener){window.addEventListener("scroll",aps.fn.onScroll,false); window.addEventListener("click",aps.fn.onScroll,false) }else{if(window.attachEvent){window.attachEvent("onscroll",aps.fn.onScroll); window.attachEvent("onclick",aps.fn.onScroll) }}aps.registerEvent(aps.event.on_check_include_ad,function(a){a.checkForInclude.stop=true; if(a.position=="atf"||a.position=="mad"){a.checkForInclude.addAdSlot=true }}); aps.fn.displayNextBatch=function(){if(aps.cfg.dfp.batchSRA.completed){return }var a=[]; Object.entries(aps.cfg.ads).map(function(c){a.push(c[0]) }); var b=[]; aps.cfg.dfp.requests.forEach(function(c){b=b.concat(c.ads) }); a=a.filter(function(c){return !b.includes(c) }); if(a.length>0){aps.cfg.queuedAds=aps.cfg.queuedAds.concat(a); aps.fn.requestAds() }aps.cfg.dfp.batchSRA.completed } }})();(function(){if(aps.cfg.is.leafsSite){if(document.cookie.split(";").filter(function(a){return a.indexOf("region=EU")>=0 }).length==1){aps.fn.logInfo("region EU detected, disabling personalized ads"); aps.cfg.disablePersonalisation=true; if(document.location.href.indexOf("gdpr=true")>-1){aps.cfg.bid.enableGDPR=true }}}else{if(document.location.href.indexOf("?is_eu=1")>-1){aps.fn.logInfo("region EU (test) detected, disabling personalized ads"); aps.cfg.disablePersonalisation=true }}})();(function(){if(document.location.hostname.match(/((homeguides|smallbusiness|work|healthyeating|livehealthy)\.(chron|sfgate)\.com)/)){return }var d={"beaumontenterprise.com":"75e9ad4b5f1f1f3de38dea085cc34f079b9d8243999d3b30d70a543f2c3ae813","sfgate.com":"1cbbeea35302b334c17ec7de41048b19077c3452b8825fa3017876cf49d877c2","chron.com":"b8d94fd702b39f91830ea26eb261a1dd7eb3f9d18e86f88c83f7a317f3115379","mysanantonio.com":"3c81fd9605d796d254c7bdc62001ec2c520515c7c306b66b713a4421f7343766","seattlepi.com":"a3e9f57e66bb33f8f8995e6866a7eace83bca9720ee52bb2d8ab18fb8dddae94","sfchronicle.com":"a5e03e178aaf9b41b3fc69428362339bd7ba9a606118acee43f6169a1f7f9847","houstonchronicle.com":"48a6940997d234b7add9af8ed2b41694654edaeb6e7b5827579702d25182700b","expressnews.com":"d65ba7cd6a96847162fb556c3a5dc7b7e66de309481ec4e558b4e9dc40515858","timesunion.com":"f999472effec7a1ef427ab8ed55df47b4d250f60f376ce71f7293b353026f514","ctpost.com":"1118fad26ca4bcdf2a99fdee52724e3c512a258c149cbd8e6c4084c13040e86a","stamfordadvocate.com":"2df4f16391dbd310915a08bd62897dde4902fe30a7c29dcb2b80ba04345df633","nhregister.com":"2370d2dc32ab1b0d0894de8f024e2764a55756c723edb12fa7d7b6b221922fba","newstimes.com":"68fab42777221c69e8d127d9ba7a8b29e0ba95aae66e6166eb070c330ac04c0f","greenwichtime.com":"4a6fb4d137bab5bdc207d09d4b1acfc191dbad1e9e0e3190ca676d3730195d06","thehour.com":"049118934d099a757a2987317f05327a8ccd5a7c1501feaf8e4639fadbdb8936","ctinsider.com":"21b81f81bd7fa576db043ec887848073bbc6eafc46d9f8bec5240163093e2d46","registercitizen.com":"3377ba9d7d5061bf618f4ae6d3900e0067f913f99748fc366b7cb1542e6a96b2","middletownpress.com":"4f1f32e75691195dd027c417eed6c56d8a37e7ed729eb57c8ecd8abf8d5f420b","thetelegraph.com":"bf557221a53f15d39c7bce3aeed56dd6c13e57b3eba48f8e4fd2d54af42f0122","ourmidland.com":"37af6c3aa88542ced759eb5a9c478617d1b50eeae32789a669e3facca42eb56a","myjournalcourier.com":"5497becf77524b62bee5a589030b1e2163d34a60b7d960cdc976afc12b64d623","michigansthumb.com":"601647fe4d84d12a565e709dc7e944d38db91923d65d9bb6865788234f41893d","theintelligencer.com":"aadf36ee0d8d0f2765013057eb1bad1a552f9377dfc4b532d9b698df9a655884","manisteenews.com":"a2031afbd2e08a959fa777db882a99b7cc56d1dbff61d9d2d56c20a89c6d8b7e","bigrapidsnews.com":"7c907dba0dac340d4f0b3879a3d1699f0bf19e2a95b06945aa3b31cfde002c09","recordpatriot.com":"d4c71cee77592309f10e62ab4ce1a4d995719a82a77932eee5fc18a7948e2f41","lakecountystar.com":"2a7c7fb608092db498480edf2068123ffcd679d5ce9e8819760338386e1350e4","theheraldreview.com":"1655d53ab46f5391a09e189a8cf86f8e22098886ea6a2ae727b112087a05cbd0","yourconroenews.com":"aa3912f9cfd7f1fafd025dbd846d2383acce1b3574061b2c9508d43d5cc653da","lmtonline.com":"ffd0921bb88989b2dc6bac92611425966d93e8be7cf154e95fd27ae95db26375","mrt.com":"08621a723e4a1cd4ba4c25f46ce953173b9b3cffad4ec0bfb9b0e5d22bc22bc8","myplainview.com":"b49696bc422c346e4f4282e32cfc324d782f32b9c9d0fec6751d29dc0862bf61","theridgefieldpress.com":"053f373cd281b81bb04913797ec13da4438c7cc4596fc29e382ce5a1a93ce32d","westport-news.com":"55e354cf58c712583585324c15d758cd2b9801c0ce839fb6020d8835a63c0502","ncadvertiser.com":"eaff3ad2730aea1b010a2434dad485aef8e1a473f8977f048e5888c27a0a8b15","fairfieldcitizenonline.com":"ddbcce19fd54ba6f20d8e3bedb35cfea7887e9579c34d38307b3f3fa3f659ab0","wiltonbulletin.com":"7ef8a69225bec566b6a15690bd94081ed7898400ff9a8c68ac05ee924c2c2ce3","darientimes.com":"f0790e5c63dd390570f98d8b20ad18ee2666f8184dc03434de1c60fb823ff71c","trumbulltimes.com":"909616d5d05133cda02800bf40834036448deeea436efebe0d39fcb3f3f4bec8","sheltonherald.com":"2ea54058f6365a6a2bcb4ecda879ff406900d5b274c1e1ed6e2f0e746ad5068f","milfordmirror.com":"0f7190eb184e8a5af5171a9ea07a792b5a193725ebdb8a2c55a30ff187802fef","newmilfordspectrum.com":"34fda7a5dec281cc4ac526c9c1609ee8a6223ae799760c638c3b92d86751b2c5","southeasttexas.com":"1ca0a738d5cf7bb8ce1434d5522573d7f6894098e4706151b2882420b6bb6c62","gametimect.com":"c5a3ed040f3b98d6d9877a09dc7f00f3ba126d6f10836272b84a07be9ced5df7","connecticutmag.com":"6daa3d7e6b8778d504883db9545f72adfc4df9ba624ae5ac79af0dda7e1f98a3","shorelinetimes.com":"91a7025281ac9294e20e8cdd7b9c5d6414f44d887193db48097942a2404a9d1d","countytimes.com":"26a8bb30dec1f24c1e7bd51988a30cdaf1a32c615057fa4a092fedd8d19b6005","westhartfordnews.com":"5de2ce5445b39d5609215833a7fa6410f027135902d458f6751d115c11c33634","dolphin-news.com":"041a5d17decdae44358ae2eca8065b501b5a4936882e2188a3d41470b64eb47d","ctpostchronicle.com":"645700f07ec80b72131b2a6fc97f8f43da5820ce68bd559b0b507dfdf08f9f6a","ctbulletin.com":"26a8bb30dec1f24c1e7bd51988a30cdaf1a32c615057fa4a092fedd8d19b6005","greenstate.com":"412163cc8d602f027626c2ffab24515bd8f6ff426d0d4096330b64d8e7681e03","canyonnews.com":"593c0a648b760954871854fb60be6dfc252fd7387de8bcb568ebf2cd5449f3d8","sellitlaredo.com":"a86e9a199fadcfd738a0fa46b3fa9381cbb92bdc9b7a75b7fa222e143eaac6b9",}; var b=d[aps.cfg.current_domain]||""; if(b!=""){aps.fn.logInfo("The Media Trust: Loading"); var a=document.getElementsByTagName("script")[0]; var c=document.createElement("script"); c.async=1; c.src="https://scripts.webcontentassessor.com/scripts/"+b; a.parentNode.insertBefore(c,a) }})();(function(){aps.fn.onRender=function(d){var h={}; var i=d.slot||null; h.slot=i; h.divid=i.getSlotElementId(); h.ad=aps.cfg.ads[h.divid]; if(h.divid&&h.divid.startsWith("browsi")){return }if(h.ad){h.targetingMap=i.getTargetingMap(); h.responseInfo=i.getResponseInformation(); h.emptyAd=d.isEmpty; h.adsize=d.size||null; h.request=aps.cfg.dfp.requests[h.targetingMap.i]; h.bidInfo=""; i.currentBids=i.currentBids||[]; h.originalBid=(i.currentBids.length>0)?JSON.parse(JSON.stringify(i.currentBids[0])):null; h.winningBid=null; h.lineitemId=d.lineItemId||null; if(h.lineitemId==null&&h.responseInfo){if(h.responseInfo.lineItemId==null&&h.responseInfo.yieldGroupIds!=null){h.lineitemId=h.responseInfo.yieldGroupIds[0] }}h.ad.state=(h.emptyAd)?"empty":"displayed"; h.ad.renderCount++; h.ad.isLoading=false; h.ad.refreshable=true; h.ad.advertiserId=d.advertiserId; h.ad.size=h.adsize; h.ad.lineItemId=d.lineitemId; h.ad.creativeId=d.creativeId; h.ad.isEmpty=h.emptyAd; h.html=""; try{h.html=i.getHtml() }catch(c){}h.adType="banner"; if(h.targetingMap.hb_format){h.adType=h.targetingMap.hb_format[0] }if(h.adType=="native"&&h.html.indexOf("pbNativeTagData")==-1){h.adType="banner" }var b=h.ad.kvps.filter(function(e){return(e.key=="custom") }); var f=(b.length>0&&b[0].value.includes("blank_refresh"))||false; if(h.emptyAd){if(!["Crown","LNLogo","EEinsert"].includes(h.divid)&&!f){h.ad.addAdKvp("custom","blank_refresh"); aps.cfg.queuedAds.push(h.divid); aps.fn.logInfo("*BLANK* "+h.divid+" - blank ad served. Refreshing"); aps.fn.requestAds() }if(f&&h.divid.dataset&&h.divid.dataset.slug=="Advertisement"){aps.fn.logInfo(h.divid+" - slot empty: hiding div"); h.divid.style.display="none" }}h.advertiser=(h.responseInfo&&h.responseInfo.advertiserId!=null)?"Direct Ad":"No Ad"; if(h.advertiser!="No Ad"){if(aps.cfg.advertisers[h.responseInfo.advertiserId]){h.advertiser=aps.cfg.advertisers[h.responseInfo.advertiserId] }if(d.yieldGroupIds!=null){h.advertiser="exb/"+h.advertiser; try{if(typeof(companyIds[0])!="undefined"){h.advertiser="ExB/"+aps.cfg.advertisers[companyIds[0]] }}catch(c){}}}if(aps.cfg.infoDivDisplaying==h.ad.code){aps.fn.setAdDetails(h.ad.code) }var j=null; if(h.adType=="native"){var g=h.html.match(/renderNativeAd/g); var a=null }else{var g=h.html.match(/renderAd\(document, \'(.*)\'/g); var a=h.html.match(/renderImp\(document,"(.*)"/g) }if(g||a){j=i.currentBid; j.won=true }else{if(i.currentBid){i.currentBid.sent=false }}if(j){h.bidInfo=" bid: "+j.adId.slice(-7); if(i.aps.optimized){h.bidInfo=h.bidInfo+" [OPT] +"+i.aps.increase; ga("pb.send",{nonInteraction:true,hitType:"event",eventCategory:"juice_optimized_v"+aps.cfg.bid.prefetch.version,eventAction:document.location.hostname,eventLabel:i.aps.increase}) }h.winningBid=JSON.parse(JSON.stringify(j)); aps.cfg.bid.prefetch.que.push(h.divid); h.advertiser=j.source+"/"+j.bidder }h.ad.advertiser=h.advertiser; h.ad.render=h; h.request.renders.push(h); aps.fireEvent(aps.event.on_render_ad,h); aps.fn.tagAd(h.ad); aps.fn.logInfo("*IMP* "+aps.fn.fixLen(h.ad.code,10)+" "+aps.fn.fixLen(h.advertiser,14)+" lineitem: "+aps.fn.fixLen(h.lineitemId,12)+h.bidInfo) }}; aps.registerEvent(aps.event.on_render_ad,function(c){if(c.ad.advertiserId==4594233306){var a=document.getElementById(c.ad.code).firstChild; var b=a.style.cssText||""; b=(b=="")?"flex-grow:1":"flex-grow:1; "+b; a.setAttribute("style",b) }}); aps.registerEvent(aps.event.on_render_ad,function(a){if(a.html.indexOf("HNP-RM-NoRefresh")>-1){aps.fn.logInfo(ad.code+": NoRefresh detected"); a.ad.refreshable=false; a.ad.doNotRefresh=true }}); aps.registerEvent(aps.event.on_render_ad,function(c){if(aps.cfg.preventCeltraAdsToRefresh){if(c.html.indexOf("celtra")>-1){var a=c.ad; if(aps.cfg.dfp.celtraAds.indexOf(a.code)==-1){aps.cfg.dfp.celtraAds.push(a.code); aps.fn.logInfo(a.code+": Celtra ad detected") }c.ad.refreshable=false; c.ad.doNotRefresh=true; if(c.ad.code=="Crown"||c.ad.code=="Flex1"){if(aps.fn.getQueryParameterByName("plainceltra")==null){aps.cfg.dfp.celtra.preventMonitorIframe=aps.cfg.dfp.celtra.preventMonitorIframe||false; aps.cfg.dfp.celtra.checkMonitorIframe=aps.cfg.dfp.celtra.checkMonitorIframe||false; if(!aps.cfg.dfp.celtra.checkMonitorIframe){aps.cfg.dfp.celtra.checkMonitorIframe=true; aps.page.kvps.forEach(function(d){if(d.key=="testpage"&&d.value=="NYC_AdTech_CeltraViewTest"){aps.cfg.dfp.celtra.preventMonitorIframe=true }}) }if(aps.cfg.dfp.celtra.preventMonitorIframe){aps.fn.logInfo("Not loading CeltraIframeFix"); return }aps.cfg.dfp.celtra.divs=aps.cfg.dfp.celtra.divs||[]; aps.cfg.dfp.celtra.monitorIframe=aps.cfg.dfp.celtra.monitorIframe||false; var b=document.getElementById("google_ads_iframe_"+event.slot.getSlotId().getId()); aps.cfg.dfp.celtra.divs.push(b); if(!aps.cfg.dfp.celtra.monitorIframe){aps.cfg.dfp.celtra.monitorIframe=true; b.addEventListener("load",function(d){aps.fn.monitofCeltraIframe(0) }) }}if(aps.cfg.dfp.celtraAds.indexOf("Flex1")==-1){aps.cfg.dfp.celtraAds.push("Flex1"); aps.fn.logInfo("Flex1 also disabled (Celtra on Crown)") }if(aps.cfg.dfp.celtraAds.indexOf("Crown")==-1){aps.cfg.dfp.celtraAds.push("Crown"); aps.fn.logInfo("Crown also disabled (Celtra on Flex1)") }}}}}); aps.registerEvent(aps.event.on_render_ad,function(b){if(b.divid=="MAD"){if(event.size&&(event.size[0]!=320||event.size[1]!=50)){aps.fn.logInfo("Fixing: MAD having wrong size: "+event.size); var a=document.getElementById("MAD").firstChild; a.style.width="320px"; a.style.height="50px" }aps.cfg.ads["MAD"].impressionTimer=aps.cfg.ads["MAD"].impressionTimer||null; if(aps.cfg.ads["MAD"].impressionTimer==null){aps.cfg.ads["MAD"].impressionTimer=setTimeout(function(){aps.fn.logInfo("Forcing MAD viewability"); aps.cfg.ads["MAD"].impressionTimer=null; aps.cfg.ads["MAD"].impressionViewable=true },30000) }}}) })();(function(){var a=document.createElement("script"); a.src="https://z.moatads.com/hearstnewsprebidheader515009925453/moatheader.js"; a.setAttribute("id","moat-tag"); document.getElementsByTagName("head")[0].appendChild(a); window.moatYieldReady=function(){aps.cfg.dfp.moatYieldReady=true; window.moatPrebidApi.enableLogging() }; aps.registerEvent(aps.event.on_before_request_ads,function(c){aps.fn.logInfo("setMoatPrebidData"); if(window.moatPrebidApi&&typeof window.moatPrebidApi.enableLogging==="function"){window.moatPrebidApi.enableLogging() }if(window.moatPrebidApi&&typeof window.moatPrebidApi.pageDataAvailable==="function"&&window.moatPrebidApi.pageDataAvailable()){var b=window.moatPrebidApi.getMoatTargetingForPage(); Object.entries(b).forEach(function(d){var f=d[1]; if(aps.cfg.logToConsole){if(d[0]=="m_data"){f="0"; aps.fn.logInfo("Overwrite moat info "+d[0]+"="+f) }else{if(Array.isArray(f)){var e=[]; f.forEach(function(g){e.push(g.replace("unsafe","safe")) }); f=e }else{f=f.replace("unsafe","safe") }aps.fn.logInfo("Overwrite moat info "+d[0]+"="+f) }}c.page.addPageKvp(d[0],f,true) }) }}) })();(function(){})();(function(){aps.hash=aps.hash||{}; aps.codec=aps.codec||{}; aps.bitArray={bitSlice:function(b,d,c){b=aps.bitArray._shiftRight(b.slice(d/32),32-(d&31)).slice(1); return(c===undefined)?b:aps.bitArray.clamp(b,c-d) },extract:function(b,d,c){var f,e=Math.floor((-d-c)&31); if((d+c-1^d)&-32){f=(b[d/32|0]<<(32-e))^(b[d/32+1|0]>>>e) }else{f=b[d/32|0]>>>e }return f&((1<0&&d){b[c-1]=aps.bitArray.partial(d,b[c-1]&2147483648>>(d-1),1) }return b },partial:function(b,c,a){if(b===32){return c }return(a?c|0:c<<(32-b))+b*1099511627776 },getPartial:function(a){return Math.round(a/1099511627776)||32 },equal:function(c,d){if(aps.bitArray.bitLength(c)!==aps.bitArray.bitLength(d)){return false }var f=0,e; for(e=0; e=32; g-=32){f.push(c); c=0 }if(g===0){return f.concat(b) }for(d=0; d>>g); c=b[d]<<(32-g) }e=b.length?b[b.length-1]:0; h=aps.bitArray.getPartial(e); f.push(aps.bitArray.partial(g+h&31,(g+h>32)?c:f.pop(),1)); return f },_xor4:function(a,b){return[a[0]^b[0],a[1]^b[1],a[2]^b[2],a[3]^b[3]] },byteswapM:function(b){var c,e,d=65280; for(c=0; c>>24)|((e>>>8)&d)|((e&d)<<8)|(e<<24) }return b }}; aps.codec.hex={fromBits:function(a){var c="",b; for(b=0; b>>8>>>8>>>8); e<<=8 }return decodeURIComponent(escape(d)) },toBits:function(c){c=unescape(encodeURIComponent(c)); var b=[],a,d=0; for(a=0; a9007199254740991){throw ("Cannot hash more than 2^53 - 1 bits") }if(typeof Uint32Array!=="undefined"){var d=new Uint32Array(a); var g=0; for(f=512+k-((512+k)&511); f<=h; f+=512){this._block(d.subarray(16*g,16*(g+1))); g+=1 }a.splice(0,16*g) }else{for(f=512+k-((512+k)&511); f<=h; f+=512){this._block(a.splice(0,16)) }}return this },finalize:function(){var d,a=this._buffer,c=this._h; a=aps.bitArray.concat(a,[aps.bitArray.partial(1,1)]); for(d=a.length+2; d&15; d++){a.push(0) }a.push(Math.floor(this._length/4294967296)); a.push(this._length|0); while(a.length){this._block(a.splice(0,16)) }this.reset(); return c },_init:[],_key:[],_precompute:function(){var c=0,e=2,a,d; function b(f){return(f-Math.floor(f))*4294967296|0 }for(; c<64; e++){d=true; for(a=2; a*a<=e; a++){if(e%a===0){d=false; break }}if(d){if(c<8){this._init[c]=b(Math.pow(e,1/2)) }this._key[c]=b(Math.pow(e,1/3)); c++ }}},_block:function(t){var q,s,c,d,e=this._h,r=this._key,f=e[0],g=e[1],j=e[2],l=e[3],m=e[4],n=e[5],o=e[6],p=e[7]; for(q=0; q<64; q++){if(q<16){s=t[q] }else{c=t[(q+1)&15]; d=t[(q+14)&15]; s=t[q&15]=((c>>>7^c>>>18^c>>>3^c<<25^c<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+t[q&15]+t[(q+9)&15])|0 }s=(s+p+(m>>>6^m>>>11^m>>>25^m<<26^m<<21^m<<7)+(o^m&(n^o))+r[q]); p=o; o=n; n=m; m=l+s|0; l=j; j=g; g=f; f=(s+((g&j)^(l&(g^j)))+(g>>>2^g>>>13^g>>>22^g<<30^g<<19^g<<10))|0 }e[0]=e[0]+f|0; e[1]=e[1]+g|0; e[2]=e[2]+j|0; e[3]=e[3]+l|0; e[4]=e[4]+m|0; e[5]=e[5]+n|0; e[6]=e[6]+o|0; e[7]=e[7]+p|0 }} })();(function(){aps.specifiedAdSlots={}; aps.usingSelectiveAdSlotLoading=false; aps.selectiveAdSlotCookieName="Ju13ceSelectiveAdsList"; aps.fn.shouldPlaceAd=function(c){if(!aps.usingSelectiveAdSlotLoading){return true }return(typeof(aps.specifiedAdSlots[c])!="undefined") }; var b=aps.fn.getQueryParameterByName("sadslot[]"); if(b!=null){aps.usingSelectiveAdSlotLoading=true; for(var a=0; a-1){return false }if(!aps.usingSelective3rdLoading){return true }return(typeof(aps.specified3rdParties[c])!="undefined") }; aps.add3rdToSelectiveLoadingList=function(c){aps.specified3rdParties[c]=true }; var a=aps.fn.getQueryParameterByName("sad3rd[]"); if(a!=null){aps.usingSelective3rdLoading=true; for(var b=0; b-1||aps.cfg.bid.disableMobile)){aps.cfg.bid.a9.enabled=false }if(aps.cfg.disablePersonalisation&&!aps.cfg.bid.enableGDPR){aps.cfg.bid.a9.enabled=false }if(!aps.cfg.bid.enabled||!aps.cfg.bid.a9.enabled){aps.fn.logInfo("A9 disabled"); return }!function(d,b,f,i,j,c,e){if(b[d]){return }function h(a,g){b[d]._Q.push([a,g]) }b[d]={init:function(){h("i",arguments) },fetchBids:function(){h("f",arguments) },setDisplayBids:function(){},_Q:[]}; c=f.createElement(i); c.async=!0; c.src=j; e=f.getElementsByTagName(i)[0]; e.parentNode.insertBefore(c,e) }("apstag",window,document,"script","https://c.amazon-adsystem.com/aax2/apstag.js"); aps.cfg.bid.a9.config.pubID="3070"; aps.cfg.bid.a9.config.adServer="googletag"; aps.cfg.bid.a9.config.bidTimeout=aps.cfg.bid.prefetch.refreshTimeout; aps.cfg.bid.a9.partners={"1y9xr0g":"amobee","1ayvuv4":"appnexus","1ginqio":"conversant","2kotmo":"districtm","j80glc":"dmx","1eaqzgg":"gumgum","yrdq0w":"index","t7ludc":"magnite","1gqg3k":"oath","bgbtvk":"openX","1m2fm68":"pubmatic","kbyu4g":"pulsepoint","1r28b28":"sharethgough","e87rpc":"simpli.fi","16j2cqo":"triplelift","rjoa2o":"undertone","1gqg3k":"verizon mkt","lfx7nx":"verizon","t7ludc":"rubicon","1iqkhkw":"yieldmo",}; aps.cfg.bid.a9.validSections={"":"home page","Homepage":"home page","news":"news","entertainment":"entertainment","sports":"sports","burningman":"burningman","realestate":"real estate","obituaries":"obituaries","bayarea":"local news","seen-events":"seen","neighborhood":"local news","food":"food","lifestyle":"living","life":"living","business":"business","local":"local news","ontheblock":"real estate","politics":"news","homestyle":"real estate","living":"living","california-wildfires":"local news","seen-saratoga":"seen","comics-and-games":"entertainment","technology":"technology","education":"education","seen":"seen","expensive-san-francisco":"local news","2018":"local news","2019":"local news","weather":"local news","national":"news","homes":"real estate","photogallery":"news","style":"living","search":"other","science":"news","houseoftheweek":"real estate","music":"entertainment","sfhistory":"local news","nation":"news","readmore":"other","49ers":"sports","portal":"subsciption","crime":"local news","client":"entertainment","warriors":"sports","chris-mcginnis":"travel","raiders":"sports","chronicle_vault":"entertainment","art":"entertainment","real-estate":"real estate","insidescoop":"food","mommyfiles":"living","seattlenews":"local news","beer":"food","access.aspx?product=newedition&from=http:":"subsciption","travel":"travel","giants":"sports","galleries":"news","home":"real estate","opinion":"local news","jobs":"jobs","houston":"local news","education_clone_6643_20180713151626":"local news","dearabby":"entertainment","beauty":"living","outdoors":"travel","subscribe-new-offers":"subsciption","earthquakes":"local news","cars":"autos","chronicle-history":"local news","capitol":"local news","tablehopping":"food","photos":"news","latestnews":"news","mlb":"sports","horoscope":"entertainment","new-haven":"local news","fiesta":"local news","collegesports":"sports","blogs":"other","preps":"sports","auto":"autos","originalpets":"living","lifestyles":"living","athletics":"sports","weird":"news","wine":"food","games":"entertainment","comics":"entertainment","columns":"local news","getaways":"travel","us":"news","rodeo":"entertainment",}; aps.cfg.bid.a9.getSection=function(a){var b=""; if(aps.cfg.bid.a9.validSections[a.path[0]]==undefined){b="other" }else{b=aps.cfg.bid.a9.validSections[a.path[0]] }switch(a.hostname){case"education.seattlepi.com":b="Education"; break; case"healthyeating.sfgate.com":b="Healthy Eating"; break; case"homeguides.sfgate.com":b="Home Guides"; break; case"livehealthy.chron.com":b="Live Healthy"; break; case"pyme.lavoztx.com":b="Pyme"; break; case"smallbusiness.chron.com":b="Small Business"; break; case"work.chron.com":b="Work"; break }return b }; aps.cfg.bid.a9.configSlot=function(a){var c={sizes:[]}; if(a.exclude){return c }if(!aps.fn.isValidBid(a,"","a9")){return c }a.sizes=a.sizes||[]; if(a.mediaType=="native"){return c }if(a.sizes.length==0){aps.fn.logSkip(a.code,"no size available to bidders (a9)"); return c }if(a.video){return c }var b={}; b.slotID=a.code; b.slotName="/"+aps.cfg.networkCode+"/"+aps.cfg.page.current.adUnit+"/"+b.slotID; b.sizes=a.sizes; if(!aps.cfg.is.qa){b.floor={value:5,currency:"USD"} }return b }; aps.registerEvent(aps.event.on_define_bid_data,function(a){if(a.code=="Crown"){return }var b=aps.cfg.bid.a9.configSlot(a); if(b.sizes.length>0){if(!aps.cfg.bid.prefetch.a9.adUnits.includes(a.code)){aps.cfg.bid.prefetch.a9.adUnits.push(a.code) }a.a9=b }}); aps.registerEvent(aps.event.on_request_bid,function(a){a.pages.forEach(function(d){var c=d.a9.ads; var b=d.a9.adIds; if(!aps.cfg.bid.prefetch.allBidsOnRefresh&&a.slotIds){c=c.filter(function(e){return a.slotIds.includes(e.slotID) }); b=b.filter(function(e){return a.slotIds.includes(e) }) }if(c.length>0){aps.fn.setPerformanceMetrics("A9BidsRequested","calling a9 for page "+d.scrollDepth+" ads: "+b); apstag.init(d.a9.config); apstag.fetchBids({slots:c,timeout:aps.cfg.bid.prefetch.timeout,},function(e){aps.cfg.bid.a9.handleDisplayBids(e,d) }); setTimeout(function(){aps.cfg.bid.a9.received=true; d.a9BidsReceived=true },aps.cfg.bid.prefetch.timeout) }}) }); aps.cfg.bid.a9.handleDisplayBids=function(a,b){a.forEach(function(d){if(d.amznbid=="2"){return }var c=aps.cfg.ads[d.slotID]; var e=aps.cfg.bid.a9.partners[d.amznp]||"a9"; var h=d.amznbid; if(d.amznbid_sp){h=d.amznbid_sp }while(h.length<7){h+="0" }var g=aps.fn.getPageBid(c,d); g.a9BidsReceived=true; var f=new aps.o.bid("a9",c,e,h,d); g.bids.push(f) }); aps.cfg.bid.a9.received=true; b.a9BidsReceived=true; aps.fn.logInfo("A9 bids received") }; aps.cfg.bid.a9.buildDisplaySlots=function(d){var c=[]; for(var a=0; a0){googletag.cmd.push(function(){aps.cfg.bid.a9.checkInitCalled(); aps.fn.logInfo("calling A9 video"); apstag.fetchBids({slots:aps.cfg.bid.a9.videoAdUnits,timeout:aps.cfg.bid.a9.config.bidTimeout},function(a){aps.cfg.bid.a9.handleVideoBids(a) }) }) }}; aps.cfg.bid.a9.handleVideoBids=function(a){aps.fn.logInfo("A9 video bid received: "+a.length); if(a.length>0){aps.cfg.vid.tagUrl+=a[0].qsParams; aps.cfg.bid.bids.push({slotid:a[0].slotID,bid:a[0].amznbid,bidder:aps.cfg.bid.a9.partners[a[0].amznp]||"A9"}) }}; aps.registerEvent(aps.event.on_request_new_video_ads,function(){aps.cfg.bid.a9.getVideoBids() }) })();(function(){aps.registerEvent(aps.event.on_before_request_ads,function(c){var a=!1; if(aps.cfg.page.current.domain=="expressnews.com"||aps.cfg.page.current.domain=="houstonchronicle.com"){try{if(GetCookie("hrstctok")!=null){a=1 }}catch(b){}}else{if(aps.cfg.page.current.domain=="sfchronicle.com"){try{if(JSON.parse(sessionStorage.getItem("sync-subscriberPlans-status"))["hasActivePlans"]==true){a=1 }}catch(b){}}}if(a){aps.cfg.page.addBaseKvp("category","premuser") }}) })();(function(){var a=""; switch(aps.cfg.page.current.domain){case"houstonchronicle.com":case"chron.com":a="hou"; break; case"expressnews.com":case"mysanantonio.com.com":a="sa"; break; case"sfchronicle.com":case"sfgate.com":a="sf"; break; case"timesunion.com":a="tu"; break; default:return; break }aps.registerEvent(aps.event.on_before_request_ads,function(h){var d=false; var l=false; var j=[]; try{if(typeof(localStorage)!=undefined){var f=JSON.parse(localStorage.getItem("hnp_subs")); var b=1; var e=null; if(f!=null){for(var g in f){if(f.hasOwnProperty(g)){e=f[g]; if(e.hasOwnProperty("sub_status_"+b)){var i=a; if(e["sub_status_"+b]=="Active"){i=i+"_a_" }else{i=i+"_ex_" }i=i+e["sub_product_"+b]+"_"; i=i+e["sub_product_code_"+b]; j.push(i) }}b++ }}}}catch(c){}var k=a+"_na"; if(j.length>=1){k=j.join(",") }aps.fn.addPageKvp("swgt",k) }) })();!function(){aps.fn.createHash=function(Q,S){function U(c,d){return c<>>32-d }function W(h,i){var j,k,l,m,n; return l=2147483648&h,m=2147483648&i,j=1073741824&h,k=1073741824&i,n=(1073741823&h)+(1073741823&i),j&k?2147483648^n^l^m:j|k?1073741824&n?3221225472^n^l^m:1073741824^n^l^m:n^l^m }function Y(d,e,f){return d&e|~d&f }function aa(d,e,f){return d&f|e&~f }function ac(d,e,f){return d^e^f }function ae(d,e,f){return e^(d|~f) }function ag(c,d,e,k,l,m,n){return c=W(c,W(W(Y(d,e,k),l),n)),W(U(c,m),d) }function ai(c,d,f,k,l,m,n){return c=W(c,W(W(aa(d,f,k),l),n)),W(U(c,m),d) }function ak(c,d,g,k,l,m,n){return c=W(c,W(W(ac(d,g,k),l),n)),W(U(c,m),d) }function am(c,d,h,k,l,m,n){return c=W(c,W(W(ae(d,h,k),l),n)),W(U(c,m),d) }function ao(j){for(var k,l=j.length,m=l+8,n=(m-m%64)/64,o=16*(n+1),p=Array(o-1),q=0,r=0; l>r; ){k=(r-r%4)/4,q=r%4*8,p[k]=p[k]|j.charCodeAt(r)<>>29,p }function aq(f){var g,h,i="",j=""; for(h=0; 3>=h; h++){g=f>>>8*h&255,j="0"+g.toString(16),i+=j.substr(j.length-2,2) }return i }function at(e){e=e.replace(/\r\n/g,"\n"); for(var f="",g=0; gh?f+=String.fromCharCode(h):h>127&&2048>h?(f+=String.fromCharCode(h>>6|192),f+=String.fromCharCode(63&h|128)):(f+=String.fromCharCode(h>>12|224),f+=String.fromCharCode(h>>6&63|128),f+=String.fromCharCode(63&h|128)) }return f }void 0===S&&(S=""),void 0===Q&&(Q=10000000000*Math.random()+"||"+window.location.href+"||"+(new Date).getTime()+"||"+S); var av,ax,ay,az,aA,aB,aC,aD,aE,aF=Array(),aG=7,R=12,T=17,V=22,X=5,Z=9,ab=14,ad=20,af=4,ah=11,aj=16,al=23,an=6,ap=10,ar=15,au=21; for(Q=at(Q),aF=ao(Q),aB=1732584193,aC=4023233417,aD=2562383102,aE=271733878,av=0; av0){aps.cfg.page.addPageKvp("bc_audiences",b[0]["value"]) }else{aps.fn.logInfo("Empty blueconic segment detected") }}catch(c){aps.fn.logInfo("error parsing blueconic data") }}else{aps.fn.logInfo("Blueconic segments not detected") }}) }})();(function(){if(!aps.cfg.bid.enabled){return }aps.pwt={}; aps.pwt.getLocalStorage=function(){var i={}; var j=localStorage.getItem("identityHub"); if(j!=null){i=JSON.parse(j) }var j=localStorage.getItem("identityHub_getUserIds"); if(j!=null){i.getUserIds=function(){return JSON.parse(j) } }return i }; aps.pwt.setLocalStorage=function(){aps.fn.logInfo("loaded PubMatic pwt.js"); localStorage.setItem("identityHub",JSON.stringify(window.PWT)); localStorage.setItem("identityHub_getUserIds",JSON.stringify(window.PWT.getUserIds())) }; window.PWT=aps.pwt.getLocalStorage(); var a="2933"; switch(aps.cfg.current_domain){case"chron.com":a="3346"; break; case"ctpost.com":a="3347"; break; case"expressnews.com":a="3348"; break; case"houstonchronicle.com":a="3349"; break; case"mysanantonio.com":a="3350"; break; case"seattlepi.com":a="3351"; break; case"sfchronicle.com":a="3352"; break; case"sfgate.com":a="3353"; break; case"timesunion.com":a="3354"; break }var e=window.location.href; var g="//ads.pubmatic.com/AdServer/js/pwt/157076/"+a; var d=""; if(e.indexOf("pwtv=")>0){var f=/pwtv=(.*?)(&|$)/g; var b=f.exec(e); if(b.length>=2&&b[1].length>0){d="/"+b[1] }}var h=document.createElement("script"); h.async=true; h.id="identityHub"; h.type="text/javascript"; h.src=g+d+"/pwt.js"; h.onload=aps.pwt.setLocalStorage; var c=document.getElementsByTagName("script")[0]; c.parentNode.insertBefore(h,c); aps.fn.logInfo("loading PubMatic pwt.js") })();(function () { /* prebid.js v5.8.0 Updated : 2021-08-09*/ !function(e){var t=window.pbjsChunk;window.pbjsChunk=function(n,o,a){for(var c,u,s,d=0,f=[];d>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){if(t&&t[e])return t[e];return""},t.tryAppendQueryString=function(e,t,n){if(n)return e+t+"="+encodeURIComponent(n)+"&";return e},t.parseQueryStringParameters=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t=t.replace(/&$/,"")},t.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?ce(e).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(ue(e,t)))})).join("&"):""},t.getAdUnitSizes=function(e){if(!e)return;var t=[];if(e.mediaTypes&&e.mediaTypes.banner&&Array.isArray(e.mediaTypes.banner.sizes)){var n=e.mediaTypes.banner.sizes;Array.isArray(n[0])?t=n:t.push(n)}else Array.isArray(e.sizes)&&(Array.isArray(e.sizes[0])?t=e.sizes:t.push(e.sizes));return t},t.parseSizesInput=function(e){var t=[];if("string"==typeof e){var n=e.split(","),r=/^(\d)+x(\d)+$/i;if(n)for(var i in n)Z(n,i)&&n[i].match(r)&&t.push(n[i])}else if("object"===h(e)){var o=e.length;if(o>0)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])t.push(D(e));else for(var a=0;a';return n+=''},t.createTrackPixelIframeHtml=re,t.getValueString=ie,t.uniques=oe,t.flatten=ae,t.getBidRequest=function(e,t){if(!e)return;var n;return t.some((function(t){var r=c()(t.bids,(function(t){return["bidId","adId","bid_id"].some((function(n){return t[n]===e}))}));return r&&(n=r),r})),n},t.getKeys=ce,t.getValue=ue,t.getKeyByValue=function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},t.getBidderCodes=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(ae,[])})).reduce(ae).filter(oe)},t.isGptPubadsDefined=se,t.isApnGetTagDefined=function(){if(window.apntag&&H(window.apntag.getTag))return!0},n.d(t,"getHighestCpm",(function(){return de})),n.d(t,"getOldestHighestCpmBid",(function(){return fe})),n.d(t,"getLatestHighestCpmBid",(function(){return le})),t.shuffle=function(e){var t=e.length;for(;t>0;){var n=Math.floor(Math.random()*t);t--;var r=e[t];e[t]=e[n],e[n]=r}return e},t.adUnitsFilter=function(e,t){return s()(e,t&&t.adUnitCode)},t.deepClone=ge,t.inIframe=function(){try{return j.getWindowSelf()!==j.getWindowTop()}catch(e){return!0}},t.isSafariBrowser=function(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)},t.replaceAuctionPrice=function(e,t){if(!e)return;return e.replace(/\$\{AUCTION_PRICE\}/g,t)},t.replaceClickThrough=function(e,t){if(!e||!t||"string"!=typeof t)return;return e.replace(/\${CLICKTHROUGH}/g,t)},t.timestamp=function(){return(new Date).getTime()},t.getPerformanceNow=function(){return window.performance&&window.performance.now&&window.performance.now()||0},t.hasDeviceAccess=function(){return!1!==r.b.getConfig("deviceAccess")},t.checkCookieSupport=be,t.delayExecution=function(e,t){if(t<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(t));var n=0;return function(){++n===t&&e.apply(this,arguments)}},t.groupBy=function(e,t){return e.reduce((function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e}),{})},t.getDefinedParams=function(e,t){return t.filter((function(t){return e[t]})).reduce((function(t,n){return y(t,v({},n,e[n]))}),{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];if(!Object.keys(e).every((function(e){return s()(t,e)})))return!1;if(e.video&&e.video.context)return s()(["instream","outstream","adpod"],e.video.context);return!0},t.getBidderRequest=function(e,t,n){return c()(e,(function(e){return e.bids.filter((function(e){return e.bidder===t&&e.adUnitCode===n})).length>0}))||{start:null,auctionId:null}},t.getUserConfiguredParams=function(e,t,n){return e.filter((function(e){return e.code===t})).map((function(e){return e.bids})).reduce(ae,[]).filter((function(e){return e.bidder===n})).map((function(e){return e.params||{}}))},t.getOrigin=function(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")},t.getDNT=function(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(e){return function(t){return ve(e,t)}},t.isSlotMatchingAdUnitCode=ye,t.getGptSlotInfoForAdUnitCode=function(e){var t;se()&&(t=c()(window.googletag.pubads().getSlots(),ye(e)));if(t)return{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()};return{}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n ".concat(e.code," is a ").concat(n," ad unit\n containing bidders that don't support ").concat(n,": ").concat(t,".\n This bidder won't fetch demand.\n ")},t.isInteger=he,t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},t.cleanObj=function(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})},t.pick=function(e,t){if("object"!==h(e))return{};return t.reduce((function(n,r,i){if("function"==typeof r)return n;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var c=e[r];return"function"==typeof t[i+1]&&(c=t[i+1](c,n)),void 0!==c&&(n[o]=c),n}),{})},t.transformBidderParamKeywords=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",n=[];return X(e,(function(e,r){if(J(e)){var i=[];X(e,(function(e){((e=ie(t+"."+r,e))||""===e)&&i.push(e)})),e=i}else{if(!K(e=ie(t+"."+r,e)))return;e=[e]}n.push({key:r,value:e})})),n},t.convertTypes=function(e,t){return Object.keys(e).forEach((function(n){var r,i;t[n]&&(H(e[n])?t[n]=e[n](t[n]):t[n]=(r=e[n],i=t[n],"string"===r?i&&i.toString():"number"===r?Number(i):i),isNaN(t[n])&&delete t.key)})),t},t.isArrayOfNums=function(e,t){return J(e)&&(!t||e.length===t)&&e.every((function(e){return he(e)}))},t.fill=function(e,t){for(var n=[],r=0;rn[e]?-1:0}},t.parseQS=me,t.formatQS=Se,t.parseUrl=function(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var 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:j.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}},t.buildUrl=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(j.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")},t.deepEqual=Ae,t.mergeDeep=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0,r=function(e,t){if(H(Math.imul))return Math.imul(e,t);var n=(4194303&e)*(t|=0);return 4290772992&e&&(n+=(4290772992&e)*t|0),0|n},i=3735928559^n,o=1103547991^n,a=0;a>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()};var r=n(3),i=n(164),o=n.n(i),a=n(11),c=n.n(a),u=n(12),s=n.n(u),d=n(165);n.d(t,"deepAccess",(function(){return d.a}));var f=n(166);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}function X(e,t){if(!$(e)){if(H(e.forEach))return e.forEach(t,this);var n=0,r=e.length;if(r>0)for(;n1&&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="'.concat(n,'"')),"')):""}function ie(e,t,n){return null==t?n:K(t)?t:Y(t)?t.toString():void j.logWarn("Unsuported type for param: "+e+" required type: String")}function oe(e,t,n){return n.indexOf(e)===t}function ae(e,t){return e.concat(t)}function ce(e){return Object.keys(e)}function ue(e,t){return e[t]}function se(){if(window.googletag&&H(window.googletag.pubads)&&H(window.googletag.pubads().getSlots))return!0}var de=pe("timeToRespond",(function(e,t){return e>t})),fe=pe("responseTimestamp",(function(e,t){return e>t})),le=pe("responseTimestamp",(function(e,t){return ee.length)&&(t=e.length);for(var n=0,r=new Array(t);na.lastUpdated+24*r*60*60*1e3)&&Object(v.a)(n.url,{success:function(t){try{t=JSON.parse(t);var n={lastUpdated:Object(y.timestamp)(),mapping:t.mapping};I.setDataInLocalStorage(o,JSON.stringify(n))}catch(t){Object(y.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){Object(y.logError)("Failed to load ".concat(e," bidder translation file"))}})}catch(t){Object(y.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}}})),e.call(this,t)}function R(e,t,n){function r(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}return e?t?(i=Object.keys(t),C.every((function(e){return b()(i,e)&&!b()([void 0,null],t[e])}))?"native"!==t.mediaType||Object(u.g)(t,n)?"video"!==t.mediaType||Object(s.d)(t,n)?!("banner"===t.mediaType&&!function(e,t,n){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;var r=Object(y.getBidderRequest)(n,t.bidderCode,e),i=r&&r.bids&&r.bids[0]&&r.bids[0].sizes,o=Object(y.parseSizesInput)(i);if(1===o.length){var a=A(o[0].split("x"),2),c=a[0],u=a[1];return t.width=parseInt(c,10),t.height=parseInt(u,10),!0}return!1}(e,t,n))||(Object(y.logError)(r("Banner bids require a width and height")),!1):(Object(y.logError)(r("Video bid does not have required vastUrl or renderer property")),!1):(Object(y.logError)(r("Native bid missing some required properties.")),!1):(Object(y.logError)(r("Bidder ".concat(t.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1)):(Object(y.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):(Object(y.logWarn)("No adUnitCode was supplied to addBidResponse."),!1);var i}Object(m.a)("checkAdUnitSetup").before(_)},10:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c})),t.d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,r=e.getHooks({hook:t});0===r.length&&e.before(t,n)},t.c=function(e,t){a("async",(function(e){e.forEach((function(e){return t.apply(void 0,function(e){if(Array.isArray(e))return o(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var n}))}),e)([])},t.e=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?arguments[1]:void 0)}}),o(a)},101:function(e,t,n){var r=n(33),i=n(102),o=n(44),a=n(45),c=n(56),u=n(30),s=n(77),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t,!0),s)try{return d(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},102:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},103:function(e,t,n){var r=n(28),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";e.exports=o},104:function(e,t,n){var r=n(29),i=n(105),o=n(23)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},105:function(e,t,n){var r=n(46);e.exports=Array.isArray||function(e){return"Array"==r(e)}},106:function(e,t,n){var r=n(25),i=n(31);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},107:function(e,t,n){var r,i,o=n(25),a=n(108),c=o.process,u=c&&c.versions,s=u&&u.v8;s?i=(r=s.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},108:function(e,t,n){var r=n(27);e.exports=r("navigator","userAgent")||""},109:function(e,t,n){var r=n(80);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},11:function(e,t,n){var r=n(99);e.exports=r},110:function(e,t,n){n(111);var r=n(52);e.exports=r("Array","includes")},111:function(e,t,n){"use strict";var r=n(14),i=n(81).includes,o=n(51);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},112:function(e,t,n){var r=n(58),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},113:function(e,t,n){n(114),n(131),n(92),n(133);var r=n(49);e.exports=r.Set},114:function(e,t,n){"use strict";var r=n(115),i=n(120);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},115:function(e,t,n){"use strict";var r=n(14),i=n(25),o=n(83),a=n(28),c=n(31),u=n(18),s=n(86),d=n(29),f=n(64),l=n(34).f,p=n(57).forEach,g=n(33),b=n(54),v=b.set,y=b.getterFor;e.exports=function(e,t,n){var b,h=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),S=h?"set":"add",A=i[e],E=A&&A.prototype,O={};if(g&&"function"==typeof A&&(m||E.forEach&&!a((function(){(new A).entries().next()})))){b=t((function(t,n){v(s(t,b,e),{type:e,collection:new A}),null!=n&&u(n,t[S],{that:t,AS_ENTRIES:h})}));var T=y(e);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in E)||m&&"clear"==e||c(b.prototype,e,(function(n,r){var i=T(this).collection;if(!t&&m&&!d(n))return"get"==e&&void 0;var o=i[e](0===n?0:n,r);return t?this:o}))})),m||l(b.prototype,"size",{configurable:!0,get:function(){return T(this).collection.size}})}else b=n.getConstructor(t,e,h,S),o.REQUIRED=!0;return f(b,e,!1,!0),O[e]=b,r({global:!0,forced:!0},O),m||n.setStrong(b,e,h),b}},116:function(e,t,n){var r=n(28);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},117:function(e,t,n){"use strict";var r=n(63),i=n(62);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},118:function(e,t,n){var r=n(25),i=n(119),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},119:function(e,t,n){var r=n(59),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},12:function(e,t,n){var r=n(110);e.exports=r},120:function(e,t,n){"use strict";var r=n(34).f,i=n(87),o=n(125),a=n(26),c=n(86),u=n(18),s=n(66),d=n(130),f=n(33),l=n(83).fastKey,p=n(54),g=p.set,b=p.getterFor;e.exports={getConstructor:function(e,t,n,s){var d=e((function(e,r){c(e,d,t),g(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})})),p=b(t),v=function(e,t,n){var r,i,o=p(e),a=y(e,t);return a?a.value=n:(o.last=a={index:i=l(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},y=function(e,t){var n,r=p(e),i=l(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(d.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=y(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),o(d.prototype,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),f&&r(d.prototype,"size",{get:function(){return p(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",i=b(t),o=b(r);s(e,t,(function(e,t){g(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),d(t)}}},121:function(e,t,n){var r=n(33),i=n(34),o=n(15),a=n(122);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),c=r.length,u=0;c>u;)i.f(e,n=r[u++],t[n]);return e}},122:function(e,t,n){var r=n(123),i=n(88);e.exports=Object.keys||function(e){return r(e,i)}},123:function(e,t,n){var r=n(30),i=n(45),o=n(81).indexOf,a=n(53);e.exports=function(e,t){var n,c=i(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~o(s,n)||s.push(n));return s}},124:function(e,t,n){var r=n(27);e.exports=r("document","documentElement")},125:function(e,t,n){var r=n(89);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:r(e,i,t[i],n);return e}},126:function(e,t,n){"use strict";var r=n(90).IteratorPrototype,i=n(87),o=n(44),a=n(64),c=n(37),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,s,!1,!0),c[s]=u,e}},127:function(e,t,n){var r=n(28);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},128:function(e,t,n){var r=n(15),i=n(129);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},129:function(e,t,n){var r=n(29);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},13:function(e,t,n){"use strict";t.a=u,t.c=function(e){return!(!e||!e.url)},t.b=function(e,t){e.render(t)};var r=n(40),i=n(0),o=n(11),a=n.n(o),c="outstream";function u(e){var t=this,n=e.url,o=e.config,a=e.id,u=e.callback,d=e.loaded,f=e.adUnitCode;this.url=n,this.config=o,this.handlers={},this.id=a,this.loaded=d,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):i.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){t.loaded=!0,t.process()},this.render=function(){var e=this,t=arguments,o=function(){e._render?e._render.apply(e,t):i.logWarn("No render function was provided, please use .setRender on the renderer")};s(f)?(i.logWarn("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(f)),o()):(this.cmd.unshift(o),Object(r.a)(n,c,this.callback))}.bind(this)}function s(e){var t=pbjs.adUnits,n=a()(t,(function(t){return t.code===e}));if(!n)return!1;var r=i.deepAccess(n,"renderer"),o=!!(r&&r.url&&r.render),c=i.deepAccess(n,"mediaTypes.video.renderer"),u=!!(c&&c.url&&c.render);return!!(o&&!0!==r.backupOnly||u&&!0!==c.backupOnly)}u.install=function(e){return new u({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},u.prototype.getConfig=function(){return this.config},u.prototype.setRender=function(e){this._render=e},u.prototype.setEventHandlers=function(e){this.handlers=e},u.prototype.handleVideoEvent=function(e){var t=e.id,n=e.eventName;"function"==typeof this.handlers[n]&&this.handlers[n](),i.logMessage("Prebid Renderer event for id ".concat(t," type ").concat(n))},u.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){i.logError("Error processing Renderer command: ",e)}}},130:function(e,t,n){"use strict";var r=n(27),i=n(34),o=n(23),a=n(33),c=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},131:function(e,t){},132:function(e,t,n){var r=n(58),i=n(47),o=function(e){return function(t,n){var o,a,c=String(i(t)),u=r(n),s=c.length;return u<0||u>=s?e?"":void 0:(o=c.charCodeAt(u))<55296||o>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):o:e?c.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},133:function(e,t,n){n(134);var r=n(135),i=n(25),o=n(62),a=n(31),c=n(37),u=n(23)("toStringTag");for(var s in r){var d=i[s],f=d&&d.prototype;f&&o(f)!==u&&a(f,u,s),c[s]=c.Array}},134:function(e,t,n){"use strict";var r=n(45),i=n(51),o=n(37),a=n(54),c=n(66),u="Array Iterator",s=a.set,d=a.getterFor(u);e.exports=c(Array,"Array",(function(e,t){s(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},135:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},136:function(e,t,n){n(14)({target:"Set",stat:!0},{from:n(137)})},137:function(e,t,n){"use strict";var r=n(21),i=n(26),o=n(18);e.exports=function(e){var t,n,a,c,u=arguments.length,s=u>1?arguments[1]:void 0;return r(this),(t=void 0!==s)&&r(s),null==e?new this:(n=[],t?(a=0,c=i(s,u>2?arguments[2]:void 0,2),o(e,(function(e){n.push(c(e,a++))}))):o(e,n.push,{that:n}),new this(n))}},138:function(e,t,n){n(14)({target:"Set",stat:!0},{of:n(139)})},139:function(e,t,n){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},14:function(e,t,n){"use strict";var r=n(25),i=n(101).f,o=n(103),a=n(49),c=n(26),u=n(31),s=n(30),d=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,f,l,p,g,b,v,y,h=e.target,m=e.global,S=e.stat,A=e.proto,E=m?r:S?r[h]:(r[h]||{}).prototype,O=m?a:a[h]||(a[h]={}),T=O.prototype;for(l in t)n=!o(m?l:h+(S?".":"#")+l,e.forced)&&E&&s(E,l),g=O[l],n&&(b=e.noTargetGet?(y=i(E,l))&&y.value:E[l]),p=n&&b?b:t[l],n&&typeof g==typeof p||(v=e.bind&&n?c(p,r):e.wrap&&n?d(p):A&&"function"==typeof p?c(Function.call,p):p,(e.sham||p&&p.sham||g&&g.sham)&&u(v,"sham",!0),O[l]=v,A&&(s(a,f=h+"Prototype")||u(a,f,{}),a[f][l]=p,e.real&&T&&!T[l]&&u(T,l,p)))}},140:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(141);r({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return o.apply(this,arguments)}})},141:function(e,t,n){"use strict";var r=n(15),i=n(21);e.exports=function(){for(var e=r(this),t=i(e.add),n=0,o=arguments.length;n1?arguments[1]:void 0,3);return!u(n,(function(e,n){if(!r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},145:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(27),a=n(15),c=n(21),u=n(38),s=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=a(this),n=new(u(t,o("Set")))(t),r=c(n.delete);return s(e,(function(e){r.call(n,e)})),n}})},146:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(27),a=n(15),c=n(21),u=n(26),s=n(38),d=n(35),f=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{filter:function(e){var t=a(this),n=d(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(s(t,o("Set"))),l=c(i.add);return f(n,(function(e){r(e,e,t)&&l.call(i,e)}),{IS_ITERATOR:!0}),i}})},147:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(15),a=n(26),c=n(35),u=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{find:function(e){var t=o(this),n=c(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(e,e,t))return n(e)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},148:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(27),a=n(15),c=n(21),u=n(38),s=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=a(this),n=new(u(t,o("Set"))),r=c(t.has),i=c(n.add);return s(e,(function(e){r.call(t,e)&&i.call(n,e)})),n}})},149:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(15),a=n(21),c=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:function(e){var t=o(this),n=a(t.has);return!c(e,(function(e,r){if(!0===n.call(t,e))return r()}),{INTERRUPTED:!0}).stopped}})},15:function(e,t,n){var r=n(29);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},150:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(27),a=n(15),c=n(21),u=n(93),s=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=u(this),n=a(e),r=n.has;return"function"!=typeof r&&(n=new(o("Set"))(e),r=c(n.has)),!s(t,(function(e,t){if(!1===r.call(n,e))return t()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},151:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(15),a=n(21),c=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:function(e){var t=o(this),n=a(t.has);return!c(e,(function(e,r){if(!1===n.call(t,e))return r()}),{INTERRUPTED:!0}).stopped}})},152:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(15),a=n(35),c=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=o(this),n=a(t),r=void 0===e?",":String(e),i=[];return c(n,i.push,{that:i,IS_ITERATOR:!0}),i.join(r)}})},153:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(27),a=n(15),c=n(21),u=n(26),s=n(38),d=n(35),f=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{map:function(e){var t=a(this),n=d(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(s(t,o("Set"))),l=c(i.add);return f(n,(function(e){l.call(i,r(e,e,t))}),{IS_ITERATOR:!0}),i}})},154:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(15),a=n(21),c=n(35),u=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(e){var t=o(this),n=c(t),r=arguments.length<2,i=r?void 0:arguments[1];if(a(e),u(n,(function(n){r?(r=!1,i=n):i=e(i,n,n,t)}),{IS_ITERATOR:!0}),r)throw TypeError("Reduce of empty set with no initial value");return i}})},155:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(15),a=n(26),c=n(35),u=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{some:function(e){var t=o(this),n=c(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n){if(r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},156:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(27),a=n(15),c=n(21),u=n(38),s=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=a(this),n=new(u(t,o("Set")))(t),r=c(n.delete),i=c(n.add);return s(e,(function(e){r.call(n,e)||i.call(n,e)})),n}})},157:function(e,t,n){"use strict";var r=n(14),i=n(17),o=n(27),a=n(15),c=n(21),u=n(38),s=n(18);r({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=a(this),n=new(u(t,o("Set")))(t);return s(e,c(n.add),{that:n}),n}})},158:function(e,t,n){n(92),n(159);var r=n(49);e.exports=r.Array.from},159:function(e,t,n){var r=n(14),i=n(160);r({target:"Array",stat:!0,forced:!n(163)((function(e){Array.from(e)}))},{from:i})},16:function(e,t,n){"use strict";t.a=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[],window._pbjsGlobals=window._pbjsGlobals||[],window._pbjsGlobals.push("pbjs")},160:function(e,t,n){"use strict";var r=n(26),i=n(48),o=n(161),a=n(84),c=n(50),u=n(162),s=n(61);e.exports=function(e){var t,n,d,f,l,p,g=i(e),b="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,h=void 0!==y,m=s(g),S=0;if(h&&(y=r(y,v>2?arguments[2]:void 0,2)),null==m||b==Array&&a(m))for(n=new b(t=c(g.length));t>S;S++)p=h?y(g[S],S):g[S],u(n,S,p);else for(l=(f=m.call(g)).next,n=new b;!(d=l.call(f)).done;S++)p=h?o(f,y,[d.value,S],!0):d.value,u(n,S,p);return n.length=S,n}},161:function(e,t,n){var r=n(15),i=n(85);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},162:function(e,t,n){"use strict";var r=n(56),i=n(34),o=n(44);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},163:function(e,t,n){var r=n(23)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},164:function(e,t){e.exports=function e(t){var n=Array.isArray(t)?[]:{};for(var r in t){var i=t[r];n[r]=i&&"object"==typeof i?e(i):i}return n}},165:function(e,t,n){"use strict";t.a=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r-1?[]:{}}},167:function(e,t){ c.SYNC=1,c.ASYNC=2,c.QUEUE=4;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(;ol;l++)if((g=O(e[l]))&&g instanceof s)return g;return new s(!1)}d=f.call(e)}for(b=d.next;!(v=b.call(d)).done;){try{g=O(v.value)}catch(e){throw u(d),e}if("object"==typeof g&&g&&g instanceof s)return g}return new s(!1)}},19:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(0);var o=function(e){function t(e){var t=r.b.getConfig("pageUrl");if(t)return t;try{var n=e.querySelector("link[rel='canonical']");if(null!==n)return n.href}catch(e){}return null}return function(){var n,o,a,c=[],u=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(e),s=r.b.getConfig("maxNestedIframes"),d=!1,f=0,l=!1,p=!1;do{var g=n,b=p,v=void 0,y=!1,h=null;p=!1,n=n?n.parent:e;try{v=n.location.href||null}catch(e){y=!0}if(y)if(b){var m=g.context;try{o=h=m.sourceUrl,l=!0,n===e.top&&(d=!0),m.canonicalUrl&&(a=m.canonicalUrl)}catch(e){}}else{Object(i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{var S=g.document.referrer;S&&(h=S,n===e.top&&(d=!0))}catch(e){}!h&&u&&u[f-1]&&(h=u[f-1]),h&&!l&&(o=h)}else{if(v&&(o=h=v,l=!1,n===e.top)){d=!0;var A=t(n.document);A&&(a=A)}n.context&&n.context.sourceUrl&&(p=!0)}c.push(h),f++}while(n!==e.top&&f1?arguments[1]:void 0)}}),o(a)},216:function(e,t,n){"use strict";t.a=function(){window.addEventListener("message",h,!1)};var r=n(9),i=n.n(r),o=n(36),a=n(5),c=n.n(a),u=n(0),s=n(24),d=n(11),f=n.n(d),l=n(13),p=n(12),g=n.n(p),b=n(3),v=c.a.EVENTS.BID_WON,y=c.a.EVENTS.STALE_RENDER;function h(e){var t=e.message?"message":"data",n={};try{n=JSON.parse(e[t])}catch(e){return}if(n&&n.adId){var r=f()(s.a.getBidsReceived(),(function(e){return e.adId===n.adId}));if(r&&"Prebid Request"===n.message){if(r.status===c.a.BID_STATUS.RENDERED&&(Object(u.logWarn)("Ad id ".concat(r.adId," has been rendered before")),i.a.emit(y,r),Object(u.deepAccess)(b.b.getConfig("auctionOptions"),"suppressStaleRender")))return;!function(e,t){var n=e.adId,r=e.ad,i=e.adUrl,o=e.width,a=e.height,c=e.renderer,s=e.cpm;Object(l.c)(c)?Object(l.b)(c,e):n&&(m(e),t.source.postMessage(JSON.stringify({message:"Prebid Response",ad:Object(u.replaceAuctionPrice)(r,s),adUrl:Object(u.replaceAuctionPrice)(i,s),adId:n,width:o,height:a}),t.origin))}(r,e),s.a.addWinningBid(r),i.a.emit(v,r)}if(r&&"Prebid Native"===n.message){if("assetRequest"===n.action){var a=Object(o.d)(n,r);return void e.source.postMessage(JSON.stringify(a),e.origin)}if("allAssetRequest"===n.action){var d=Object(o.c)(n,r);e.source.postMessage(JSON.stringify(d),e.origin)}else"resizeNativeHeight"===n.action&&(r.height=n.height,r.width=n.width,m(r));if("click"===Object(o.b)(n,r))return;s.a.addWinningBid(r),i.a.emit(v,r)}}}function m(e){var t=e.adId,n=e.adUnitCode,r=e.width,i=e.height;["div","iframe"].forEach((function(e){var o=function(e){var r=function(e,t){return Object(u.isGptPubadsDefined)()?function(e){return f()(window.googletag.pubads().getSlots(),(function(t){return f()(t.getTargetingKeys(),(function(n){return g()(t.getTargeting(n),e)}))})).getSlotElementId()}(e):Object(u.isApnGetTagDefined)()?function(e){var t=window.apntag.getTag(e);return t&&t.targetId}(t):t}(t,n),i=document.getElementById(r);return i&&i.querySelector(e)}(e+':not([style*="display: none"])');if(o){var a=o.style;a.width=r+"px",a.height=i+"px"}else Object(u.logWarn)("Unable to locate matching page element for adUnitCode ".concat(n,". Can't resize it to ad's dimensions. Please review setup."))}))}},217:function(e,t,n){"use strict";t.a=function(e){var t;try{e=e||window.sessionStorage,t=JSON.parse(e.getItem(u))}catch(e){}t&&p(t,!0)};var r,i,o=n(3),a=n(0),c=n(32),u="pbjs:debugging";function s(e){Object(a.logMessage)("DEBUG: "+e)}function d(e){Object(a.logWarn)("DEBUG: "+e)}function f(e){r=y.bind(e),c.c.before(r,5),i=h.bind(e),c.e.before(i,5)}function l(){c.c.getHooks({hook:r}).remove(),c.e.getHooks({hook:i}).remove()}function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.b.setConfig({debug:!0}),l(),f(e),s("bidder overrides enabled".concat(t?" from session":""))}function g(e,t,n){return!(!e.bidder||e.bidder===t)||!(!e.adUnitCode||e.adUnitCode===n)}function b(e,t){return Array.isArray(e)&&-1===e.indexOf(t)}function v(e,t,n){return Object.keys(e).filter((function(e){return-1===["adUnitCode","bidder"].indexOf(e)})).reduce((function(t,r){return s("bidder overrides changed '".concat(t.adUnitCode,"/").concat(t.bidderCode,"' ").concat(n,".").concat(r," from '").concat(t[r],".js' to '").concat(e[r],"'")),t[r]=e[r],t}),t)}function y(e,t,n){var r=this;b(r.bidders,n.bidderCode)?d("bidder '".concat(n.bidderCode,"' excluded from auction by bidder overrides")):(Array.isArray(r.bids)&&r.bids.forEach((function(e){g(e,n.bidderCode,t)||v(e,n,"bidder")})),e(t,n))}function h(e,t){var n=this,r=t.filter((function(e){return!b(n.bidders,e.bidderCode)||(d("bidRequest '".concat(e.bidderCode,"' excluded from auction by bidder overrides")),!1)}));Array.isArray(n.bidRequests)&&r.forEach((function(e){n.bidRequests.forEach((function(t){e.bids.forEach((function(n){g(t,e.bidderCode,n.adUnitCode)||v(t,n,"bidRequest")}))}))})),e(r)}function m(e){if(e.enabled){try{window.sessionStorage.setItem(u,JSON.stringify(e))}catch(e){}p(e)}else{l(),s("bidder overrides disabled");try{window.sessionStorage.removeItem(u)}catch(e){}}}o.b.getConfig("debugging",(function(e){return m(e.debugging)}))},22:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),t.d=function(e,t){var n=Object(r.getBidRequest)(e.requestId,t),i=n&&Object(r.deepAccess)(n,"mediaTypes.video"),o=i&&Object(r.deepAccess)(i,"context");return s(e,n,i,o)},n.d(t,"c",(function(){return s}));n(8);var r=n(0),i=n(3),o=n(12),a=(n.n(o),n(10)),c="outstream",u="instream";var s=Object(a.b)("sync",(function(e,t,n,o){return!t||n&&o!==c?i.b.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):(Object(r.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 pbjs.setConfig({ cache: {url: "..."} });\n '),!1):o!==c||!!(e.renderer||t.renderer||n.renderer)}),"checkVideoBidSetup")},23:function(e,t,n){var r=n(25),i=n(79),o=n(30),a=n(60),c=n(80),u=n(109),s=i("wks"),d=r.Symbol,f=u?d:d&&d.withoutSetter||a;e.exports=function(e){return o(s,e)&&(c||"string"==typeof s[e])||(c&&o(d,e)?s[e]=d[e]:s[e]=f("Symbol."+e)),s[e]}},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n(32),o=n(11),a=n.n(o),c=n(5);var u=function(){var e=[],t={};return t.addWinningBid=function(t){var n=a()(e,(function(e){return e.getAuctionId()===t.auctionId}));n?(t.status=c.BID_STATUS.RENDERED,n.addWinningBid(t)):Object(r.logWarn)("Auction not found when adding winning bid")},t.getAllWinningBids=function(){return e.map((function(e){return e.getWinningBids()})).reduce(r.flatten,[])},t.getBidsRequested=function(){return e.map((function(e){return e.getBidRequests()})).reduce(r.flatten,[])},t.getNoBids=function(){return e.map((function(e){return e.getNoBids()})).reduce(r.flatten,[])},t.getBidsReceived=function(){return e.map((function(e){if(e.getAuctionStatus()===i.a)return e.getBidsReceived()})).reduce(r.flatten,[]).filter((function(e){return e}))},t.getAllBidsForAdUnitCode=function(t){return e.map((function(e){return e.getBidsReceived()})).reduce(r.flatten,[]).filter((function(e){return e&&e.adUnitCode===t}))},t.getAdUnits=function(){return e.map((function(e){return e.getAdUnits()})).reduce(r.flatten,[])},t.getAdUnitCodes=function(){return e.map((function(e){return e.getAdUnitCodes()})).reduce(r.flatten,[]).filter(r.uniques)},t.createAuction=function(t){var n=t.adUnits,r=t.adUnitCodes,o=t.callback,a=t.cbTimeout,c=t.labels,u=t.auctionId,s=Object(i.k)({adUnits:n,adUnitCodes:r,callback:o,cbTimeout:a,labels:c,auctionId:u});return function(t){e.push(t)}(s),s},t.findBidByAdId=function(t){return a()(e.map((function(e){return e.getBidsReceived()})).reduce(r.flatten,[]),(function(e){return e.adId===t}))},t.getStandardBidderAdServerTargeting=function(){return Object(i.j)()[c.JSON_MAPPING.ADSERVER_TARGETING]},t.setStatusForBids=function(n,r){var i=t.findBidByAdId(n);if(i&&(i.status=r),i&&r===c.BID_STATUS.BID_TARGETING_SET){var o=a()(e,(function(e){return e.getAuctionId()===i.auctionId}));o&&o.setBidTargeting(i)}},t.getLastAuctionId=function(){return e.length&&e[e.length-1].getAuctionId()},t.clearAllAuctions=function(){e.length=0},t}()},25:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(t,n(42))},26:function(e,t,n){var r=n(21);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},27:function(e,t,n){var r=n(49),i=n(25),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},28:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},29:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},3:function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return I}));var r=n(43),i=n(11),o=n.n(i),a=n(12),c=n.n(a),u=n(82),s=n.n(u),d=n(0),f=["fpd"];function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){return(b=Object.assign||function(e){for(var t=1;t1&&(j[e].SRA=!1)},done:function(e){C[e]--,w[0]&&d(w[0])&&w.shift()}},V,$)}};function d(e){var t=!0,n=u.b.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===O.S2S.SRC?"s2s":e.bidderCode;return j[i]&&(!1===j[i].SRA&&(r=Math.min(e.bids.length,n)),C[j[i].origin]+r>n&&(t=!1)),!t})),t&&e.run(),t}function f(e,t){void 0===e[t]?e[t]=1:e[t]++}d(s)||(S.logWarn("queueing auction due to limited endpoint capacity"),w.push(s))}return{addBidReceived:function(e){W=W.concat(e)},addNoBid:function(e){L=L.concat(e)},executeCallback:Y,callBids:function(){o="started",t=Date.now();var e=A.makeBidRequests(k,t,F,V,P);S.logInfo("Bids Requested for Auction with id: ".concat(F),e),e.length<1?(S.logWarn("No valid bid requests returned for auction"),Q()):R.call({dispatch:X,context:this},e)},addWinningBid:function(e){H=H.concat(e),A.callBidWonBidder(e.bidder,e,s)},setBidTargeting:function(e){A.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return H},getTimeout:function(){return V},getAuctionId:function(){return F},getAuctionStatus:function(){return o},getAdUnits:function(){return k},getAdUnitCodes:function(){return M},getBidRequests:function(){return q},getBidsReceived:function(){return W},getNoBids:function(){return L}}},n.d(t,"c",(function(){return _})),n.d(t,"e",(function(){return R})),t.g=B,t.d=x,n.d(t,"f",(function(){return D})),n.d(t,"i",(function(){return k})),n.d(t,"h",(function(){return P})),t.j=M;var r=n(0),i=n(43),o=n(36),a=n(96),c=n(13),u=n(3),s=n(55),d=n(10),f=n(11),l=n.n(f),p=n(12),g=n.n(p),b=n(22),v=n(2);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(){return(h=Object.assign||function(e){for(var t=1;t=0&&(e.cpm=r)}(e)}));var C={},j={},w=[];var _=Object(d.b)("async",(function(e,t){this.dispatch.call(this.bidderRequest,e,t)}),"addBidResponse"),R=Object(d.b)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),U=Object(d.b)("async",(function(e,t){t&&t()}),"bidsBackCallback");function B(e,t){t.timeToRespond>e.getTimeout()+u.b.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function x(e,t){var n=e.getBidRequests(),r=l()(n,(function(e){return e.bidderCode===t.bidderCode}));!function(e,t){var n;if(e.bidderCode&&(e.cpm>0||e.dealId)){var r=l()(t.bids,(function(t){return t.adUnitCode===e.adUnitCode}));n=function(e,t,n){if(!t)return{};var r={},i=pbjs.bidderSettings;if(i){q(r,M(t.mediaType,e,n),t),e&&i[e]&&i[e][O.JSON_MAPPING.ADSERVER_TARGETING]&&(q(r,i[e],t),t.sendStandardTargeting=i[e].sendStandardTargeting)}t.native&&(r=h({},r,Object(o.e)(t,n)));return r}(e.bidderCode,e,r)}e.adserverTargeting=h(e.adserverTargeting||{},n)}(t,r),E.emit(O.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),B(e,t)}var D=Object(d.b)("async",(function(e,t,n,r){Object(a.b)([t],(function(r,i){r?(S.logWarn("Failed to save to the video cache: ".concat(r,". Video bid must be discarded.")),B(e,t)):""===i[0].uuid?(S.logWarn("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),B(e,t)):(t.videoCacheKey=i[0].uuid,t.vastUrl||(t.vastUrl=Object(a.a)(t.videoCacheKey)),x(e,t),n())}),r)}),"callPrebidCache");function N(e,t,n){if(e&&n){if(e===v.d){var i=Object(r.deepAccess)(t,"mediaTypes.".concat(v.d,".context"),"instream");if(n["".concat(v.d,"-").concat(i)])return n["".concat(v.d,"-").concat(i)]}return n[e]}}var k=function(e,t){var n=N(e,t,u.b.getConfig("mediaTypePriceGranularity"));return"string"==typeof e&&n?"string"==typeof n?n:"custom":u.b.getConfig("priceGranularity")},P=function(e){return function(t){return e===O.GRANULARITY_OPTIONS.AUTO?t.pbAg:e===O.GRANULARITY_OPTIONS.DENSE?t.pbDg:e===O.GRANULARITY_OPTIONS.LOW?t.pbLg:e===O.GRANULARITY_OPTIONS.MEDIUM?t.pbMg:e===O.GRANULARITY_OPTIONS.HIGH?t.pbHg:e===O.GRANULARITY_OPTIONS.CUSTOM?t.pbCg:void 0}};function M(e,t,n){function i(e,t){return{key:e,val:"function"==typeof t?function(e){return t(e)}:function(e){return Object(r.getValue)(e,t)}}}var o=O.TARGETING_KEYS,a=k(e,n),c=pbjs.bidderSettings;if(c[O.JSON_MAPPING.BD_SETTING_STANDARD]||(c[O.JSON_MAPPING.BD_SETTING_STANDARD]={}),c[O.JSON_MAPPING.BD_SETTING_STANDARD][O.JSON_MAPPING.ADSERVER_TARGETING]||(c[O.JSON_MAPPING.BD_SETTING_STANDARD][O.JSON_MAPPING.ADSERVER_TARGETING]=[i(o.BIDDER,"bidderCode"),i(o.AD_ID,"adId"),i(o.PRICE_BUCKET,P(a)),i(o.SIZE,"size"),i(o.DEAL,"dealId"),i(o.SOURCE,"source"),i(o.FORMAT,"mediaType"),i(o.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?e.meta.advertiserDomains[0]:""}))]),"video"===e){var s=c[O.JSON_MAPPING.BD_SETTING_STANDARD][O.JSON_MAPPING.ADSERVER_TARGETING];if([o.UUID,o.CACHE_ID].forEach((function(e){void 0===l()(s,(function(t){return t.key===e}))&&s.push(i(e,"videoCacheKey"))})),u.b.getConfig("cache.url")&&(!t||!1!==S.deepAccess(c,"".concat(t,".sendStandardTargeting")))){var d=Object(r.parseUrl)(u.b.getConfig("cache.url"));void 0===l()(s,(function(e){return e.key===o.CACHE_HOST}))&&s.push(i(o.CACHE_HOST,(function(e){return S.deepAccess(e,"adserverTargeting.".concat(o.CACHE_HOST))?e.adserverTargeting[o.CACHE_HOST]:d.hostname})))}}return c[O.JSON_MAPPING.BD_SETTING_STANDARD]}function q(e,t,n){var r=t[O.JSON_MAPPING.ADSERVER_TARGETING];return n.size=n.getSize(),S._each(r,(function(r){var i=r.key,o=r.val;if(e[i]&&S.logWarn("The key: "+i+" is getting ovewritten"),S.isFn(o))try{o=o(n)}catch(e){S.logError("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&i!==O.TARGETING_KEYS.DEAL||!S.isEmptyStr(o)&&null!=o?e[i]=o:S.logInfo("suppressing empty key '"+i+"' from adserver targeting")})),e}function G(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},33:function(e,t,n){var r=n(28);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},332:function(e,t,n){n(333);var r=n(52);e.exports=r("String","includes")},333:function(e,t,n){"use strict";var r=n(14),i=n(334),o=n(47);r({target:"String",proto:!0,forced:!n(336)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},334:function(e,t,n){var r=n(335);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},335:function(e,t,n){var r=n(29),i=n(46),o=n(23)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},336:function(e,t,n){var r=n(23)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},34:function(e,t,n){var r=n(33),i=n(77),o=n(15),a=n(56),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},35:function(e,t,n){var r=n(17),i=n(93);e.exports=r?i:function(e){return Set.prototype.values.call(e)}},36:function(e,t,n){"use strict";n.d(t,"f",(function(){return f})),n.d(t,"a",(function(){return l})),t.h=function(e){if(e&&e.type&&function(e){if(!e||!o()(Object.keys(p),e))return Object(r.logError)("".concat(e," nativeParam is not supported")),!1;return!0}(e.type))return p[e.type];return e},t.g=function(e,t){var n=Object(r.getBidRequest)(e.requestId,t);if(!n)return!1;if(!Object(r.deepAccess)(e,"native.clickUrl"))return!1;var i=n.nativeParams;if(!i)return!0;var a=Object.keys(i).filter((function(e){return i[e].required})),c=Object.keys(e.native).filter((function(t){return e.native[t]}));return a.every((function(e){return o()(c,e)}))},t.b=function(e,t){var n;"click"===e.action?n=t.native&&t.native.clickTrackers:(n=t.native&&t.native.impressionTrackers,t.native&&t.native.javascriptTrackers&&Object(r.insertHtmlIntoIframe)(t.native.javascriptTrackers));return(n||[]).forEach(r.triggerPixel),e.action},t.e=function(e,t){var n={};Object(r.deepAccess)(t,"nativeParams.rendererUrl")?e.native.rendererUrl=g(t.nativeParams.rendererUrl):Object(r.deepAccess)(t,"nativeParams.adTemplate")&&(e.native.adTemplate=g(t.nativeParams.adTemplate));var i=!1!==Object(r.deepAccess)(t,"nativeParams.sendTargetingKeys"),o=function(e){var t={};Object(r.deepAccess)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((function(e){t[e]="hb_native_".concat(e)}));return u(u({},d.NATIVE_KEYS),t)}(t),a=u(u({},e.native),e.native.ext);return delete a.ext,Object.keys(a).forEach((function(a){var c=o[a],u=g(e.native[a])||g(Object(r.deepAccess)(e,"native.ext.".concat(a)));if("adTemplate"!==a&&c&&u){var s=Object(r.deepAccess)(t,"nativeParams.".concat(a,".sendId"));if("boolean"!=typeof s&&(s=Object(r.deepAccess)(t,"nativeParams.ext.".concat(a,".sendId"))),s)u="".concat(c,":").concat(e.adId);var d=Object(r.deepAccess)(t,"nativeParams.".concat(a,".sendTargetingKeys"));"boolean"!=typeof d&&(d=Object(r.deepAccess)(t,"nativeParams.ext.".concat(a,".sendTargetingKeys"))),("boolean"==typeof d?d:i)&&(n[c]=u)}})),n},t.d=function(e,t){var n={message:"assetResponse",adId:e.adId,assets:[]};t.native.hasOwnProperty("adTemplate")&&(n.adTemplate=g(t.native.adTemplate));t.native.hasOwnProperty("rendererUrl")&&(n.rendererUrl=g(t.native.rendererUrl));return e.assets.forEach((function(e){var i=Object(r.getKeyByValue)(d.NATIVE_KEYS,e),o=g(t.native[i]);n.assets.push({key:i,value:o})})),n},t.c=function(e,t){var n={message:"assetResponse",adId:e.adId,assets:[]};return Object.keys(t.native).forEach((function(e,r){if("adTemplate"===e&&t.native[e])n.adTemplate=g(t.native[e]);else if("rendererUrl"===e&&t.native[e])n.rendererUrl=g(t.native[e]);else if("ext"===e)Object.keys(t.native[e]).forEach((function(r){if(t.native[e][r]){var i=g(t.native[e][r]);n.assets.push({key:r,value:i})}}));else if(t.native[e]&&d.NATIVE_KEYS.hasOwnProperty(e)){var i=g(t.native[e]);n.assets.push({key:e,value:i})}})),n};var r=n(0),i=n(12),o=n.n(i);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:3e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.request,c=t.done;return function(t,u,s){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var f,l=d.method||(s?"POST":"GET"),p=document.createElement("a");p.href=t;var g="object"===o(u)&&null!==u?u:{success:function(){a.logMessage("xhr success")},error:function(e){a.logError("xhr error",null,e)}};if("function"==typeof u&&(g.success=u),(f=new window.XMLHttpRequest).onreadystatechange=function(){if(4===f.readyState){"function"==typeof c&&c(p.origin);var e=f.status;e>=200&&e<300||304===e?g.success(f.responseText,f):g.error(f.statusText,f)}},r.b.getConfig("disableAjaxTimeout")||(f.ontimeout=function(){a.logError(" xhr timeout after ",f.timeout,"ms")}),"GET"===l&&s){var b=a.parseUrl(t,d);i(b.search,s),t=a.buildUrl(b)}f.open(l,t,!0),r.b.getConfig("disableAjaxTimeout")||(f.timeout=e),d.withCredentials&&(f.withCredentials=!0),a._each(d.customHeaders,(function(e,t){f.setRequestHeader(t,e)})),d.preflight&&f.setRequestHeader("X-Requested-With","XMLHttpRequest"),f.setRequestHeader("Content-Type",d.contentType||"text/plain"),"function"==typeof n&&n(p.origin),"POST"===l&&s?f.send(s):f.send()}catch(e){a.logError("xhr construction",e),"object"===o(u)&&null!==u&&u.error(e)}}}},40:function(e,t,n){"use strict";t.a=function(e,t,n){if(!t||!e)return void o.logError("cannot load external script without url and moduleCode");if(!i()(c,t))return void o.logError("".concat(t," not whitelisted for loading external JavaScript"));if(a[e])return n&&"function"==typeof n&&(a[e].loaded?n():a[e].callbacks.push(n)),a[e].tag;a[e]={loaded:!1,tag:null,callbacks:[]},n&&"function"==typeof n&&a[e].callbacks.push(n);return o.logWarn("module ".concat(t," is loading external JavaScript")),function(t,n){var r=document.createElement("script");r.type="text/javascript",r.async=!0,a[e].tag=r,r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,n())}:r.onload=function(){n()};return r.src=t,o.insertElement(r),r}(e,(function(){a[e].loaded=!0;try{for(var t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nObject(r.timestamp)()},isUnusedBid:function(e){return e&&(e.status&&!f()([m.BID_STATUS.RENDERED],e.status)||!e.status)}},O=Object(s.b)("sync",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!o){var a=[],c=i.b.getConfig("sendBidsControl.dealPrioritization"),u=Object(r.groupBy)(e,"adUnitCode");return Object.keys(u).forEach((function(e){var i=[],o=Object(r.groupBy)(u[e],"bidderCode");Object.keys(o).forEach((function(e){return i.push(o[e].reduce(t))})),n>0?(i=c?i.sort(T(!0)):i.sort((function(e,t){return t.cpm-e.cpm})),a.push.apply(a,v(i.slice(0,n)))):a.push.apply(a,v(i))})),a}return e}));function T(){var 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}}var I=function(e){var t={},n={};function a(e,t){return e.adserverTargeting&&t&&(h.isArray(t)&&f()(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function s(e,t){if(!0===i.b.getConfig("targetingControls.alwaysIncludeDeals")){var n=A.concat(o.a);return O(t,r.getHighestCpm).map((function(t){if(t.dealId&&a(t,e))return b({},t.adUnitCode,D(t,n.filter((function(e){return void 0!==t.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}function d(e,t){var n=g({},m.TARGETING_KEYS,m.NATIVE_KEYS),i=Object.keys(n),o={};Object(r.logInfo)("allowTargetingKeys - allowed keys [ ".concat(t.map((function(e){return n[e]})).join(", ")," ]")),e.map((function(e){var r=Object.keys(e)[0],a=e[r].filter((function(e){var r=Object.keys(e)[0],a=0===i.filter((function(e){return 0===r.indexOf(n[e])})).length||p()(t,(function(e){var t=n[e];return 0===r.indexOf(t)}));return o[r]=!a,a}));e[r]=a}));var a=Object.keys(o).filter((function(e){return o[e]}));return Object(r.logInfo)("allowTargetingKeys - removed keys [ ".concat(a.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}function l(e,t){var n=Object(r.deepClone)(e);return Object.keys(n).map((function(e){return{adUnitCode:e,adserverTargeting:n[e]}})).sort(T()).reduce((function(e,i,o,a){var c,u=(c=i.adserverTargeting,Object.keys(c).reduce((function(e,t){return e+"".concat(t,"%3d").concat(encodeURIComponent(c[t]),"%26")}),""));o+1===a.length&&(u=u.slice(0,-3));var s=i.adUnitCode,d=u.length;return d<=t?(t-=d,Object(r.logInfo)("AdUnit '".concat(s,"' auction keys comprised of ").concat(d," characters. Deducted from running threshold; new limit is ").concat(t),n[s]),e[s]=n[s]):Object(r.logWarn)("The following keys for adUnitCode '".concat(s,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(d,", the current allotted amount was ").concat(t,".\n"),n[s]),o+1===a.length&&0===Object.keys(e).length&&Object(r.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e}),{})}function y(e){return e.map((function(e){return b({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return b({},Object.keys(e)[0],e[Object.keys(e)[0]].join(", "))})).reduce((function(e,t){return g(t,e)}),{}))})).reduce((function(e,t){var n=Object.keys(t)[0];return e[n]=g({},e[n],t[n]),e}),{})}function I(t){return"string"==typeof t?[t]:h.isArray(t)?t:e.getAdUnitCodes()||[]}function C(){var t=e.getBidsReceived();return i.b.getConfig("useBidCache")||(t=t.filter((function(e){return n[e.adUnitCode]===e.auctionId}))),t=t.filter((function(e){return Object(r.deepAccess)(e,"video.context")!==u.a})).filter((function(e){return"banner"!==e.mediaType||Object(c.c)([e.width,e.height])})).filter(E.isUnusedBid).filter(E.isBidNotExpired),O(t,r.getOldestHighestCpmBid)}function j(e,n){var r=t.getWinningBids(e,n),i=w();return r=r.map((function(e){return b({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(t){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(t)})).reduce((function(t,n){var r=[e.adserverTargeting[n]],i=b({},n.substring(0,20),r);if(n===m.TARGETING_KEYS.DEAL){var o=b({},"".concat(n,"_").concat(e.bidderCode).substring(0,20),r);return[].concat(v(t),[i,o])}return[].concat(v(t),[i])}),[]))}))}function w(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(A).filter(r.uniques)}function _(e,t,n,i){return Object.keys(t.adserverTargeting).filter(R()).forEach((function(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){h.isArray(n.adserverTargeting[e])||(n.adserverTargeting[e]=[n.adserverTargeting[e]]),n.adserverTargeting[e]=n.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(r.uniques),delete t.adserverTargeting[e]}}(n))})),e.push(t),e}function R(){var e=w().concat(o.a);return function(t){return-1===e.indexOf(t)}}function U(e){return b({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(R()).map((function(t){return b({},t.substring(0,20),[e.adserverTargeting[t]])})))}function B(e,t){return t.filter((function(t){return f()(e,t.adUnitCode)})).map((function(e){return g({},e)})).reduce(_,[]).map(U).filter((function(e){return e}))}function x(e,t){var n=A.concat(o.a),c=i.b.getConfig("sendBidsControl.bidLimit"),u=O(t,r.getHighestCpm,c),s=i.b.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),d=s?s.map((function(e){return m.TARGETING_KEYS[e]})):n;return u.map((function(t){if(a(t,e))return b({},t.adUnitCode,D(t,n.filter((function(e){return void 0!==t.adserverTargeting[e]&&-1!==d.indexOf(e)}))))})).filter((function(e){return e}))}function D(e,t){return t.map((function(t){return b({},"".concat(t,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[t]])}))}function N(t){function n(e){return Object(r.deepAccess)(e,m.JSON_MAPPING.ADSERVER_TARGETING)}return e.getAdUnits().filter((function(e){return f()(t,e.code)&&n(e)})).map((function(e){return b({},e.code,function(e){var t=n(e);return Object.keys(t).map((function(e){return b({},e,h.isArray(t[e])?t[e]:t[e].split(","))}))}(e))}))}return t.setLatestAuctionForAdUnit=function(e,t){n[e]=t},t.resetPresetTargeting=function(t,n){if(Object(r.isGptPubadsDefined)()){var i=I(t),o=e.getAdUnits().filter((function(e){return f()(i,e.code)}));window.googletag.pubads().getSlots().forEach((function(e){var t=h.isFn(n)&&n(e);S.forEach((function(n){o.forEach((function(r){(r.code===e.getAdUnitPath()||r.code===e.getSlotElementId()||h.isFn(t)&&t(r.code))&&e.setTargeting(n,null)}))}))}))}},t.resetPresetTargetingAST=function(e){I(e).forEach((function(e){var t=window.apntag.getTag(e);if(t&&t.keywords){var n=Object.keys(t.keywords),r={};n.forEach((function(e){f()(S,e.toLowerCase())||(r[e]=t.keywords[e])})),window.apntag.modifyTag(e,{keywords:r})}}))},t.getAllTargeting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C(),n=I(e),o=j(n,t).concat(B(n,t)).concat(i.b.getConfig("enableSendAllBids")?x(n,t):s(n,t)).concat(N(n));o.map((function(e){Object.keys(e).map((function(t){e[t].map((function(e){-1===S.indexOf(Object.keys(e)[0])&&(S=Object.keys(e).concat(S))}))}))}));var a=Object.keys(g({},m.DEFAULT_TARGETING_KEYS,m.NATIVE_KEYS)),c=i.b.getConfig("targetingControls.allowTargetingKeys")||a;Array.isArray(c)&&c.length>0&&(o=d(o,c)),o=y(o);var u=i.b.getConfig("targetingControls.auctionKeyMaxChars");return u&&(Object(r.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(u," characters. Running checks on auction keys...")),o=l(o,u)),n.forEach((function(e){o[e]||(o[e]={})})),o},t.setTargetingForGPT=function(e,t){window.googletag.pubads().getSlots().forEach((function(n){Object.keys(e).filter(t?t(n):Object(r.isAdUnitCodeMatchingSlot)(n)).forEach((function(t){return Object.keys(e[t]).forEach((function(r){var i=e[t][r];"string"==typeof i&&(i=i.split(",")),(i=i.length>1?[i]:i).map((function(e){return h.logMessage("Attempting to set key value for slot: ".concat(n.getSlotElementId()," key: ").concat(r," value: ").concat(e)),e})).forEach((function(e){n.setTargeting(r,e)}))}))}))}))},t.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C(),n=I(e);return t.filter((function(e){return f()(n,e.adUnitCode)})).filter((function(e){return e.cpm>0})).map((function(e){return e.adUnitCode})).filter(r.uniques).map((function(e){return t.filter((function(t){return t.adUnitCode===e?t:null})).reduce(r.getHighestCpm)}))},t.setTargetingForAst=function(e){var n=t.getAllTargeting(e);try{t.resetPresetTargetingAST(e)}catch(e){h.logError("unable to reset targeting for AST"+e)}Object.keys(n).forEach((function(e){return Object.keys(n[e]).forEach((function(t){if(h.logMessage("Attempting to set targeting for targetId: ".concat(e," key: ").concat(t," value: ").concat(n[e][t])),h.isStr(n[e][t])||h.isArray(n[e][t])){var r={};t.search(/pt[0-9]/)<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&&h.isFn(window.apntag.setKeywords))return!0},t}(a.a)},42:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},43:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var r=n(11),i=n.n(r),o=n(0),a={buckets:[{max:5,increment:.5}]},c={buckets:[{max:20,increment:.1}]},u={buckets:[{max:20,increment:.01}]},s={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},d={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":l(e,a,n),med:""===r?"":l(e,c,n),high:""===r?"":l(e,u,n),auto:""===r?"":l(e,d,n),dense:""===r?"":l(e,s,n),custom:""===r?"":l(e,t,n)}}function l(e,t,n){var r="";if(!p(t))return r;var o=t.buckets.reduce((function(e,t){return e.max>t.max?e:t}),{max:0}),a=0,c=i()(t.buckets,(function(t){if(e>o.max*n){var i=t.precision;void 0===i&&(i=2),r=(t.max*n).toFixed(i)}else{if(e<=t.max*n&&e>=a*n)return t.min=a,t;a=t.max}}));return c&&(r=function(e,t,n){var r=void 0!==t.precision?t.precision:2,i=t.increment*n,o=t.min*n,a=Math.pow(10,r+2),c=(e*a-o*a)/(i*a),u=Math.floor(c)*i+o;return(u=Number(u.toFixed(10))).toFixed(r)}(e,c,n)),r}function p(e){if(o.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(t=!1)})),t}},44:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},45:function(e,t,n){var r=n(76),i=n(47);e.exports=function(e){return r(i(e))}},46:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},47:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},48:function(e,t,n){var r=n(47);e.exports=function(e){return Object(r(e))}},49:function(e,t){e.exports={}},5:function(e,t){e.exports={JSON_MAPPING:{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"},DEBUG_MODE:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",NO_BID:"noBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",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"},AD_RENDER_FAILED_REASON:{PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:{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"},DEFAULT_TARGETING_KEYS:{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"},NATIVE_KEYS:{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"},S2S:{SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},BID_STATUS:{BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"}}},50:function(e,t,n){var r=n(58),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},51:function(e,t){e.exports=function(){}},52:function(e,t,n){var r=n(27);e.exports=r},53:function(e,t){e.exports={}},54:function(e,t,n){var r,i,o,a=n(118),c=n(25),u=n(29),s=n(31),d=n(30),f=n(59),l=n(65),p=n(53),g="Object already initialized",b=c.WeakMap;if(a||f.state){var v=f.state||(f.state=new b),y=v.get,h=v.has,m=v.set;r=function(e,t){if(h.call(v,e))throw new TypeError(g);return t.facade=e,m.call(v,e,t),t},i=function(e){return y.call(v,e)||{}},o=function(e){return h.call(v,e)}}else{var S=l("state");p[S]=!0,r=function(e,t){if(d(e,S))throw new TypeError(g);return t.facade=e,s(e,S,t),t},i=function(e){return d(e,S)?e[S]:{}},o=function(e){return d(e,S)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),i=n(3),o=n(12),a=n.n(o),c=n(7);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&a.every((function(e){return r.isStr(e)&&"*"!==e}))))return r.logWarn('Detected an invalid setup in userSync "filterSettings.'.concat(i,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1;return!0}(n,e)){s[e]=!0;var i=n.all?n.all:n[e],o="*"===i.bidders?[t]:i.bidders;return{include:function(e,t){return!a()(e,t)},exclude:function(e,t){return a()(e,t)}}[i.filter||"include"](o,t)}return!s[e]}return i.b.getConfig("userSync",(function(e){if(e.userSync){var t=e.userSync.filterSettings;r.isPlainObject(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}f=d(f,e.userSync)})),t.registerSync=function(e,i,a){return o.has(i)?r.logMessage('already fired syncs for "'.concat(i,'", ignoring registerSync call')):f.syncEnabled&&r.isArray(n[e])?i?0!==f.syncsPerBidder&&Number(c[i])>=f.syncsPerBidder?r.logWarn('Number of user syncs exceeded for "'.concat(i,'"')):t.canBidderRegisterSync(e,i)?(n[e].push([i,a]),void(c=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(c,i))):r.logWarn('Bidder "'.concat(i,'" not permitted to register their "').concat(e,'" userSync pixels.')):r.logWarn("Bidder is required for registering sync"):r.logWarn('User sync type "'.concat(e,'" not supported'))},t.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(l,Number(e));l()},t.triggerUserSyncs=function(){f.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=function(e,t){return!f.filterSettings||!g(e,t)},t}({config:i.b.getConfig("userSync"),browserSupportsCookies:l})},56:function(e,t,n){var r=n(29);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},57:function(e,t,n){var r=n(26),i=n(76),o=n(48),a=n(50),c=n(104),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,d=4==e,f=6==e,l=7==e,p=5==e||f;return function(g,b,v,y){for(var h,m,S=o(g),A=i(S),E=r(b,v,3),O=a(A.length),T=0,I=y||c,C=t?I(g,O):n||l?I(g,0):void 0;O>T;T++)if((p||T in A)&&(m=E(h=A[T],T,S),e))if(t)C[T]=m;else if(m)switch(e){case 3:return!0;case 5:return h;case 6:return T;case 2:u.call(C,h)}else switch(e){case 4:return!1;case 7:u.call(C,h)}return f?-1:s||d?d:C}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterOut:s(7)}},58:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},59:function(e,t,n){var r=n(25),i=n(106),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},60:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},61:function(e,t,n){var r=n(62),i=n(37),o=n(23)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},62:function(e,t,n){var r=n(63),i=n(46),o=n(23)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},63:function(e,t,n){var r={};r[n(23)("toStringTag")]="z",e.exports="[object z]"===String(r)},64:function(e,t,n){var r=n(63),i=n(34).f,o=n(31),a=n(30),c=n(117),u=n(23)("toStringTag");e.exports=function(e,t,n,s){if(e){var d=n?e:e.prototype;a(d,u)||i(d,u,{configurable:!0,value:t}),s&&!r&&o(d,"toString",c)}}},65:function(e,t,n){var r=n(79),i=n(60),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},66:function(e,t,n){"use strict";var r=n(14),i=n(126),o=n(91),a=n(128),c=n(64),u=n(31),s=n(89),d=n(23),f=n(17),l=n(37),p=n(90),g=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,v=d("iterator"),y="keys",h="values",m="entries",S=function(){return this};e.exports=function(e,t,n,d,p,A,E){i(n,t,d);var O,T,I,C=function(e){if(e===p&&U)return U;if(!b&&e in _)return _[e];switch(e){case y:case h:case m:return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",w=!1,_=e.prototype,R=_[v]||_["@@iterator"]||p&&_[p],U=!b&&R||C(p),B="Array"==t&&_.entries||R;if(B&&(O=o(B.call(new e)),g!==Object.prototype&&O.next&&(f||o(O)===g||(a?a(O,g):"function"!=typeof O[v]&&u(O,v,S)),c(O,j,!0,!0),f&&(l[j]=S))),p==h&&R&&R.name!==h&&(w=!0,U=function(){return R.call(this)}),f&&!E||_[v]===U||u(_,v,U),l[t]=U,p)if(T={values:C(h),keys:A?U:C(y),entries:C(m)},E)for(I in T)(b||w||!(I in _))&&s(_,I,T[I]);else r({target:t,proto:!0,forced:b||w},T);return T}},67:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i={};function o(e,t,n){var r=function(e,t){var n=i[e]=i[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return r[t]=(r[t]||0)+1,r[t]}var a={incrementRequestsCounter:function(e){return o(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,t){return o(e,"requestsCounter",t)},incrementBidderWinsCounter:function(e,t){return o(e,"winsCounter",t)},getRequestsCounter:function(e){return Object(r.deepAccess)(i,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,t){return Object(r.deepAccess)(i,"".concat(e,".bidders.").concat(t,".requestsCounter"))||0},getBidderWinsCounter:function(e,t){return Object(r.deepAccess)(i,"".concat(e,".bidders.").concat(t,".winsCounter"))||0}}},7:function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),t.a=function(e){return s({moduleName:e,moduleType:"core"})},t.b=function(e,t){return s({gvlid:e,moduleName:t})};var r=n(10),i=n(0),o=n(12),a=n.n(o),c=["core","prebid-module"],u=[];function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gvlid,n=e.moduleName,r=e.moduleType;function o(e){if(a()(c,r)){return e({valid:!0})}var o;return d(t,n,{hasEnforcementHook:!1},(function(t){if(t&&t.hasEnforcementHook)o=e(t);else{var n={hasEnforcementHook:!1,valid:i.hasDeviceAccess()};o=e(n)}})),o}var s=function(e,t,n,r,i,a){var c=function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",c=n&&""!==n?" ;expires=".concat(n):"",u=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(t)).concat(c,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(u)}};if(!a||"function"!=typeof a)return o(c);u.push((function(){var e=o(c);a(e)}))},f=function(e,t){var n=function(t){if(t&&t.valid){var n=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return n?decodeURIComponent(n[2]):null}return null};if(!t||"function"!=typeof t)return o(n);u.push((function(){var e=o(n);t(e)}))},l=function(e){var t=function(e){if(e&&e.valid)try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){}finally{try{localStorage.removeItem("prebid.cookieTest")}catch(e){}}return!1};if(!e||"function"!=typeof e)return o(t);u.push((function(){var n=o(t);e(n)}))},p=function(e){var t=function(e){return!(!e||!e.valid)&&(!!i.checkCookieSupport()||(window.document.cookie="prebid.cookieTest",-1!==window.document.cookie.indexOf("prebid.cookieTest")))};if(!e||"function"!=typeof e)return o(t);u.push((function(){var n=o(t);e(n)}))},g=function(e,t,n){var r=function(n){n&&n.valid&&y()&&window.localStorage.setItem(e,t)};if(!n||"function"!=typeof n)return o(r);u.push((function(){var e=o(r);n(e)}))},b=function(e,t){var n=function(t){return t&&t.valid&&y()?window.localStorage.getItem(e):null};if(!t||"function"!=typeof t)return o(n);u.push((function(){var e=o(n);t(e)}))},v=function(e,t){var n=function(t){t&&t.valid&&y()&&window.localStorage.removeItem(e)};if(!t||"function"!=typeof t)return o(n);u.push((function(){var e=o(n);t(e)}))},y=function(e){var t=function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){i.logError("Local storage api disabled")}return!1};if(!e||"function"!=typeof e)return o(t);u.push((function(){var n=o(t);e(n)}))},h=function(e,t){var n=function(t){if(t&&t.valid){var n=[];if(i.hasDeviceAccess())for(var r=document.cookie.split(";");r.length;){var o=r.pop(),a=o.indexOf("=");a=a<0?o.length:a,decodeURIComponent(o.slice(0,a).replace(/^\s+/,"")).indexOf(e)>=0&&n.push(decodeURIComponent(o.slice(a+1)))}return n}};if(!t||"function"!=typeof t)return o(n);u.push((function(){var e=o(n);t(e)}))};return{setCookie:s,getCookie:f,localStorageIsEnabled:l,cookiesAreEnabled:p,setDataInLocalStorage:g,getDataFromLocalStorage:b,removeDataFromLocalStorage:v,hasLocalStorage:y,findSimilarCookies:h}}var d=Object(r.b)("async",(function(e,t,n,r){r(n)}),"validateStorageEnforcement")},71:function(e,t,n){var r=n(210);e.exports=r},72:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"adUnitSetupChecks",(function(){return J})),n.d(t,"checkAdUnitSetup",(function(){return Y})),t.executeCallbacks=Z;var r=n(16),i=n(0),o=n(216),a=n(55),c=n(3),u=n(24),s=n(41),d=n(10),f=n(217),l=n(12),p=n.n(l),g=n(67),b=n(13),v=n(39),y=n(7);function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0)&&(e.every((function(e){return Object(i.isArrayOfNums)(e,2)}))?n=e:Object(i.isArrayOfNums)(e,2)&&n.push(e)),n}function z(e){var t=O.deepClone(e),n=t.mediaTypes.banner,r=F(n.sizes);return r.length>0?(n.sizes=r,t.sizes=r):(O.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 V(e){var t=O.deepClone(e),n=t.mediaTypes.video;if(n.playerSize){var r="number"==typeof n.playerSize[0]?2:1,i=F(n.playerSize,r);i.length>0?(2===r&&O.logInfo("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),n.playerSize=i,t.sizes=i):(O.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 H(e){var t=O.deepClone(e),n=t.mediaTypes.native;return n.image&&n.image.sizes&&!Array.isArray(n.image.sizes)&&(O.logError("Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request."),delete t.mediaTypes.native.image.sizes),n.image&&n.image.aspect_ratios&&!Array.isArray(n.image.aspect_ratios)&&(O.logError("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete t.mediaTypes.native.image.aspect_ratios),n.icon&&n.icon.sizes&&!Array.isArray(n.icon.sizes)&&(O.logError("Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request."),delete t.mediaTypes.native.icon.sizes),t}function K(e,t){var n=O.deepAccess(e,"mediaTypes.".concat(t,".pos"));if(!n||!O.isNumber(n)||!isFinite(n)){var r="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");O.logWarn(r),I.emit(E.EVENTS.AUCTION_DEBUG,{type:"WARNING",arguments:r}),delete e.mediaTypes[t].pos}return e}Object(f.a)(),A.bidderSettings=A.bidderSettings||{},A.libLoaded=!0,A.version="v5.8.0",O.logInfo("Prebid.js v5.8.0 loaded"),A.installedModules=["rtdModule","appnexusBidAdapter","concertBidAdapter","consumableBidAdapter","criteoBidAdapter","ixBidAdapter","justpremiumBidAdapter","kargoBidAdapter","nobidBidAdapter","openxBidAdapter","prebidServerBidAdapter","pubmaticBidAdapter","pulsepointBidAdapter","rubiconBidAdapter","teadsBidAdapter","tripleliftBidAdapter","vidazooBidAdapter","yieldmoBidAdapter","browsiRtdProvider","consentManagement","consentManagementUsp","googleAnalyticsAdapter","optimeraRtdProvider","permutiveRtdProvider"],A.adUnits=A.adUnits||[],A.triggerUserSyncs=C;var J={validateBannerMediaType:z,validateVideoMediaType:V,validateNativeMediaType:H,validateSizes:F},Y=Object(d.b)("sync",(function(e){var t=[];return e.forEach((function(e){var n,r,i,o=e.mediaTypes,a=e.bids;if(a&&O.isArray(a))if(o&&0!==Object.keys(o).length){o.banner&&(n=z(e),o.banner.hasOwnProperty("pos")&&(n=K(n,"banner"))),o.video&&(r=V(n||e),o.video.hasOwnProperty("pos")&&(r=K(r,"video"))),o.native&&(i=H(r||(n||e)));var c=S({},n,r,i);t.push(c)}else O.logError("Detected adUnit.code '".concat(e.code,"' did not have a 'mediaTypes' object defined. This is a required field for the auction, so this adUnit has been removed."));else O.logError("Detected adUnit.code '".concat(e.code,"' did not have 'adUnit.bids' defined or 'adUnit.bids' is not an array. Removing adUnit from auction."))})),t}),"checkAdUnitSetup");function Q(e){var t=u.a[e]().filter(O.bind.call(i.adUnitsFilter,this,u.a.getAdUnitCodes())),n=u.a.getLastAuctionId();return t.map((function(e){return e.adUnitCode})).filter(i.uniques).map((function(e){return t.filter((function(t){return t.auctionId===n&&t.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return t={},n=e[0].adUnitCode,r={bids:e},n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r})).reduce((function(e,t){return S(e,t)}),{})}function $(e){var t=e.reason,n=e.message,r=e.bid,i=e.id,o={reason:t,message:n};r&&(o.bid=r),i&&(o.adId=i),O.logError(n),I.emit(B,o)}function X(e){var t=e.doc,n=e.bid,r=e.id,i={doc:t};n&&(i.bid=n),r&&(i.adId=r),I.emit(x,i)}function Z(e,t){function n(e){for(var t;t=e.shift();)t()}n(y.c),n(ee),e.call(this,t)}A.getAdserverTargetingForAdUnitCodeStr=function(e){if(O.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=A.getAdserverTargetingForAdUnitCode(e);return O.transformAdServerTargetingObj(t)}O.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},A.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var t=u.a.getAllBidsForAdUnitCode(e).filter(s.a.isUnusedBid).filter(s.a.isBidNotExpired);return t.length?t.reduce(i.getHighestCpm):{}}O.logMessage("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},A.getAdserverTargetingForAdUnitCode=function(e){return A.getAdserverTargeting(e)[e]},A.getAdserverTargeting=function(e){return O.logInfo("Invoking pbjs.getAdserverTargeting",arguments),s.d.getAllTargeting(e)},A.getNoBids=function(){return O.logInfo("Invoking pbjs.getNoBids",arguments),Q("getNoBids")},A.getNoBidsForAdUnitCode=function(e){return{bids:u.a.getNoBids().filter((function(t){return t.adUnitCode===e}))}},A.getBidResponses=function(){return O.logInfo("Invoking pbjs.getBidResponses",arguments),Q("getBidsReceived")},A.getBidResponsesForAdUnitCode=function(e){return{bids:u.a.getBidsReceived().filter((function(t){return t.adUnitCode===e}))}},A.setTargetingForGPTAsync=function(e,t){if(O.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),Object(i.isGptPubadsDefined)()){var n=s.d.getAllTargeting(e);s.d.resetPresetTargeting(e,t),s.d.setTargetingForGPT(n,t),Object.keys(n).forEach((function(e){Object.keys(n[e]).forEach((function(t){"hb_adid"===t&&u.a.setStatusForBids(n[e][t],E.BID_STATUS.BID_TARGETING_SET)}))})),I.emit(U,n)}else O.logError("window.googletag is not defined on the page")},A.setTargetingForAst=function(e){O.logInfo("Invoking pbjs.setTargetingForAn",arguments),s.d.isApntagDefined()?(s.d.setTargetingForAst(e),I.emit(U,s.d.getAllTargeting())):O.logError("window.apntag is not defined on the page")},A.renderAd=Object(d.b)("async",(function(e,t,n){if(O.logInfo("Invoking pbjs.renderAd",arguments),O.logMessage("Calling renderAd with adId :"+t),e&&t)try{var r=u.a.findBidByAdId(t);if(r){var i=!0;if(r&&r.status===E.BID_STATUS.RENDERED&&(O.logWarn("Ad id ".concat(r.adId," has been rendered before")),I.emit(D,r),O.deepAccess(c.b.getConfig("auctionOptions"),"suppressStaleRender")&&(i=!1)),i){if(r.ad=O.replaceAuctionPrice(r.ad,r.cpm),r.adUrl=O.replaceAuctionPrice(r.adUrl,r.cpm),n&&n.clickThrough){var o=n.clickThrough;r.ad=O.replaceClickThrough(r.ad,o),r.adUrl=O.replaceClickThrough(r.adUrl,o)}u.a.addWinningBid(r),I.emit(_,r);var a=r.height,s=r.width,d=r.ad,f=r.mediaType,l=r.adUrl,p=r.renderer,g=document.createComment("Creative ".concat(r.creativeId," served by ").concat(r.bidder," Prebid.js Header Bidding"));if(Object(b.c)(p))Object(b.b)(p,r),O.insertElement(g,e,"html"),X({doc:e,bid:r,id:t});else if(e===document&&!O.inIframe()||"video"===f){var v="Error trying to write ad. Ad render call ad id ".concat(t," was prevented from writing to the main document.");$({reason:k,message:v,bid:r,id:t})}else if(d){if(navigator.userAgent&&navigator.userAgent.toLowerCase().indexOf("firefox/")>-1){var y=/firefox\/([\d\.]+)/,h=navigator.userAgent.toLowerCase().match(y)[1];h&&parseInt(h,10)<67&&e.open("text/html","replace")}e.write(d),e.close(),L(e,s,a),O.insertElement(g,e,"html"),O.callBurl(r),X({doc:e,bid:r,id:t})}else if(l){var m=O.createInvisibleIframe();m.height=a,m.width=s,m.style.display="inline",m.style.overflow="hidden",m.src=l,O.insertElement(m,e,"body"),L(e,s,a),O.insertElement(g,e,"html"),O.callBurl(r),X({doc:e,bid:r,id:t})}else{var S="Error trying to write ad. No ad for bid response id: ".concat(t);$({reason:P,message:S,bid:r,id:t})}}}else{var A="Error trying to write ad. Cannot find ad by given id : ".concat(t);$({reason:q,message:A,id:t})}}catch(e){var T="Error trying to write ad Id :".concat(t," to the page:").concat(e.message);$({reason:M,message:T,id:t})}else{var C="Error trying to write ad Id :".concat(t," to the page. Missing document or adId");$({reason:G,message:C,id:t})}})),A.removeAdUnit=function(e){(O.logInfo("Invoking pbjs.removeAdUnit",arguments),e)?(O.isArray(e)?e:[e]).forEach((function(e){for(var t=A.adUnits.length-1;t>=0;t--)A.adUnits[t].code===e&&A.adUnits.splice(t,1)})):A.adUnits=[]},A.requestBids=Object(d.b)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels,a=e.auctionId;I.emit(R);var d=n||c.b.getConfig("bidderTimeout");r=r&&c.b.convertAdUnitFpd(O.isArray(r)?r:[r])||A.adUnits,O.logInfo("Invoking pbjs.requestBids",arguments);var f=[],l=[];if(c.b.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(f=Array.isArray(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])})),f.forEach((function(e){l.push.apply(l,h(e.bidders))})),r=Y(r),i&&i.length?r=r.filter((function(e){return p()(i,e.code)})):i=r&&r.map((function(e){return e.code})),r.forEach((function(e){var t=Object.keys(e.mediaTypes||{banner:"banner"}),n=e.bids.map((function(e){return e.bidder})),r=T.bidderRegistry,i=l?n.filter((function(e){return!p()(l,e)})):n;e.transactionId=O.generateUUID(),i.forEach((function(n){var i=r[n],o=i&&i.getSpec&&i.getSpec(),a=o&&o.supportedMediaTypes||["banner"];t.some((function(e){return p()(a,e)}))?g.a.incrementBidderRequestsCounter(e.code,n):(O.logWarn(O.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter((function(e){return e.bidder!==n})))})),g.a.incrementRequestsCounter(e.code)})),r&&0!==r.length){var b=u.a.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:d,labels:o,auctionId:a}),v=r.length;v>15&&O.logInfo("Current auction ".concat(b.getAuctionId()," contains ").concat(v," adUnits."),r),i.forEach((function(e){return s.d.setLatestAuctionForAdUnit(e,b.getAuctionId())})),b.callBids()}else if(O.logMessage("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){O.logError("Error executing bidsBackHandler",null,e)}})),A.requestBids.before(Z,49),A.addAdUnits=function(e){O.logInfo("Invoking pbjs.addAdUnits",arguments),A.adUnits.push.apply(A.adUnits,c.b.convertAdUnitFpd(O.isArray(e)?e:[e])),I.emit(w)},A.onEvent=function(e,t,n){O.logInfo("Invoking pbjs.onEvent",arguments),O.isFn(t)?!n||W[e].call(null,n)?I.on(e,t,n):O.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):O.logError('The event handler provided is not a function and was not set on event "'+e+'".')},A.offEvent=function(e,t,n){O.logInfo("Invoking pbjs.offEvent",arguments),n&&!W[e].call(null,n)||I.off(e,t,n)},A.getEvents=function(){return O.logInfo("Invoking pbjs.getEvents"),I.getEvents()},A.registerBidAdapter=function(e,t){O.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{T.registerBidAdapter(e(),t)}catch(e){O.logError("Error registering bidder adapter : "+e.message)}},A.registerAnalyticsAdapter=function(e){O.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{T.registerAnalyticsAdapter(e)}catch(e){O.logError("Error registering analytics adapter : "+e.message)}},A.createBid=function(e){return O.logInfo("Invoking pbjs.createBid",arguments),Object(v.a)(e)};var ee=[],te=Object(d.b)("async",(function(e){e&&!O.isEmpty(e)?(O.logInfo("Invoking pbjs.enableAnalytics for: ",e),T.enableAnalytics(e)):O.logError("pbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");function ne(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){O.logError("Error processing command :","prebid.js",e)}}))}A.enableAnalytics=function(e){ee.push(te.bind(this,e))},A.aliasBidder=function(e,t,n){O.logInfo("Invoking pbjs.aliasBidder",arguments),e&&t?T.aliasBidAdapter(e,t,n):O.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},A.getAllWinningBids=function(){return u.a.getAllWinningBids()},A.getAllPrebidWinningBids=function(){return u.a.getBidsReceived().filter((function(e){return e.status===E.BID_STATUS.BID_TARGETING_SET}))},A.getHighestCpmBids=function(e){return s.d.getWinningBids(e)},A.markWinningBidAsUsed=function(e){var t=[];e.adUnitCode&&e.adId?t=u.a.getBidsReceived().filter((function(t){return t.adId===e.adId&&t.adUnitCode===e.adUnitCode})):e.adUnitCode?t=s.d.getWinningBids(e.adUnitCode):e.adId?t=u.a.getBidsReceived().filter((function(t){return t.adId===e.adId})):O.logWarn("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),t.length>0&&(t[0].status=E.BID_STATUS.RENDERED)},A.getConfig=c.b.getConfig,A.setConfig=c.b.setConfig,A.setBidderConfig=c.b.setBidderConfig,A.que.push((function(){return Object(o.a)()})),A.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){O.logError("Error processing command :",e.message,e.stack)}else O.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},A.que.push=A.cmd.push,A.processQueue=function(){d.b.ready(),ne(A.que),ne(A.cmd)},t.default=A},73:function(e,t,n){var r=n(332);e.exports=r},74:function(e,t,n){"use strict";t.a=function(e,t){o.adServers=o.adServers||{},o.adServers[e]=o.adServers[e]||{},Object.keys(t).forEach((function(n){o.adServers[e][n]?Object(i.logWarn)("Attempting to add an already registered function property ".concat(n," for AdServer ").concat(e,".")):o.adServers[e][n]=t[n]}))};var r=n(16),i=n(0),o=Object(r.a)()},75:function(e,t,n){"use strict";t.a=function(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}},76:function(e,t,n){var r=n(28),i=n(46),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},77:function(e,t,n){var r=n(33),i=n(28),o=n(78);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},78:function(e,t,n){var r=n(25),i=n(29),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},79:function(e,t,n){var r=n(17),i=n(59);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"gdprDataHandler",(function(){return U})),n.d(t,"uspDataHandler",(function(){return B})),n.d(t,"coppaDataHandler",(function(){return x})),n.d(t,"clientTestAdapters",(function(){return D})),n.d(t,"allS2SBidders",(function(){return N})),t.getAllS2SBidders=k,t.setS2STestingModule=function(e){A=e};var r=n(0),i=n(95),o=n(36),a=n(1),c=n(4),u=n(3),s=n(10),d=n(12),f=n.n(d),l=n(11),p=n.n(l),g=n(67),b=n(19);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0})))}))}}));var g=function(e){var t=E.deepClone(e);return t.forEach((function(e){e.bids=e.bids.filter((function(e){return!D.length||e.finalSource!==A.SERVER}))})),t.filter((function(e){return 0!==e.bids.length}))}(e);return s.forEach((function(e){var r=E.getUniqueIdentifierStr(),a={bidderCode:e,auctionId:n,bidderRequestId:r,bids:R({bidderCode:e,auctionId:n,bidderRequestId:r,adUnits:E.deepClone(g),labels:o,src:"client"}),auctionStart:t,timeout:i,refererInfo:c},u=C[e];u||E.logError("Trying to make a request for bidder that does not exist: ".concat(e)),u&&a.bids&&0!==a.bids.length&&d.push(a)})),U.getConsentData()&&d.forEach((function(e){e.gdprConsent=U.getConsentData()})),B.getConsentData()&&d.forEach((function(e){e.uspConsent=B.getConsentData()})),d}),"makeBidRequests"),I.callBids=function(e,t,n,i,o,a,s){if(t.length){var d=v(t.reduce((function(e,t){return e[Number(void 0!==t.src&&t.src===O.S2S.SRC)].push(t),e}),[[],[]]),2),l=d[0],p=d[1],g=[];p.forEach((function(e){for(var t=-1,n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=n.supportedMediaTypes,i=void 0===r?[]:r;e&&t?"function"==typeof e.callBids?(C[t]=e,f()(i,"video")&&I.videoAdapters.push(t),f()(i,"native")&&o.f.push(t)):E.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):E.logError("bidAdapter or bidderCode not specified")},I.aliasBidAdapter=function(e,t,n){if(void 0===C[t]){var r=C[e];if(void 0===r){var i=[];w.forEach((function(n){if(n.bidders&&n.bidders.length){var r=n&&n.bidders;n&&f()(r,t)?j[t]=e:i.push(e)}})),i.forEach((function(e){E.logError('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var c,u=function(e){var t=[];return f()(I.videoAdapters,e)&&t.push("video"),f()(o.f,e)&&t.push("native"),t}(e);if(r.constructor.prototype!=Object.prototype)(c=new r.constructor).setBidderCode(t);else{var s=r.getSpec(),d=n&&n.gvlid,l=n&&n.skipPbsAliasing;c=Object(a.newBidder)(S({},s,{code:t,gvlid:d,skipPbsAliasing:l})),j[t]=e}I.registerBidAdapter(c,t,{supportedMediaTypes:u})}catch(t){E.logError(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else E.logMessage('alias name "'+t+'" has been already specified.')},I.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code,r=e.gvlid;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,_[n]={adapter:t,gvlid:r}):E.logError('Prebid Error: Analytics adaptor error for analytics "'.concat(n,'"\n analytics adapter must implement an enableAnalytics() function')):E.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},I.enableAnalytics=function(e){E.isArray(e)||(e=[e]),E._each(e,(function(e){var t=_[e.provider].adapter;t?t.enableAnalytics(e):E.logError("Prebid Error: no analytics adapter found in registry for\n ".concat(e.provider,"."))}))},I.getBidAdapter=function(e){return C[e]},I.getAnalyticsAdapter=function(e){return _[e]},I.callTimedOutBidders=function(e,t,n){t=t.map((function(t){return t.params=E.getUserConfiguredParams(e,t.adUnitCode,t.bidder),t.timeout=n,t})),t=E.groupBy(t,"bidder"),Object.keys(t).forEach((function(e){M(e,"onTimeout",t[e])}))},I.callBidWonBidder=function(e,t,n){t.params=E.getUserConfiguredParams(n,t.adUnitCode,t.bidder),g.a.incrementBidderWinsCounter(t.adUnitCode,t.bidder),M(e,"onBidWon",t)},I.callSetTargetingBidder=function(e,t){M(e,"onSetTargeting",t)},I.callBidViewableBidder=function(e,t){M(e,"onBidViewable",t)},t.default=I},80:function(e,t,n){var r=n(107),i=n(28);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},81:function(e,t,n){var r=n(45),i=n(50),o=n(112),a=function(e){return function(t,n,a){var c,u=r(t),s=i(u.length),d=o(a,s);if(e&&n!=n){for(;s>d;)if((c=u[d++])!=c)return!0}else for(;s>d;d++)if((e||d in u)&&u[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},82:function(e,t,n){var r=n(113);n(136),n(138),n(140),n(142),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),e.exports=r},83:function(e,t,n){var r=n(53),i=n(29),o=n(30),a=n(34).f,c=n(60),u=n(116),s=c("meta"),d=0,f=Object.isExtensible||function(){return!0},l=function(e){a(e,s,{value:{objectID:"O"+ ++d,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,s)){if(!f(e))return"F";if(!t)return"E";l(e)}return e[s].objectID},getWeakData:function(e,t){if(!o(e,s)){if(!f(e))return!0;if(!t)return!1;l(e)}return e[s].weakData},onFreeze:function(e){return u&&p.REQUIRED&&f(e)&&!o(e,s)&&l(e),e}};r[s]=!0},839:function(e,t,n){e.exports=n(72)},84:function(e,t,n){var r=n(23),i=n(37),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},85:function(e,t,n){var r=n(15);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},86:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},87:function(e,t,n){var r,i=n(15),o=n(121),a=n(88),c=n(53),u=n(124),s=n(78),d=n(65),f=d("IE_PROTO"),l=function(){},p=function(e){return"