41 lines
313 KiB
Plaintext
41 lines
313 KiB
Plaintext
//23058_csdn_desktop-6 23058 0b34184
|
|
!function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var d="function"==typeof require&&require;if(!s&&d)return d(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){var r=window.pbjs=window.pbjs||{};r.que=r.que||[],r.que.unshift((function(){r.rp.wrapperLoaded=!0}));try{e("./lib/dm-web-vitals/trackWebVitals.js")(100)}catch(e){console.log("DM error loading DM Web Vitals",e)}r.que.unshift((function(){})),r.que.unshift((function(){r.rp.applyPrebidSetConfig()})),r.que.unshift((function(){r.rp.mergeConfig({gptPreAuction:{enabled:!0,useDefaultPreAuction:!0}})})),r.que.unshift((function(){e("./lib/dmEvents.js")(r)})),r.que.unshift((function(){var e=r.getConfig("rubicon")||{};e.int_type="dmpbjs",e.wrapperName="23058_csdn_desktop",e.wrapperFamily="23058_csdn_desktop",e.waitForGamSlots=!0,e.analyticsBatchTimeout=5e3,e.singleRequest=!0,e.dmBilling={enabled:!1,vendors:[],waitForAuction:!0},e.wrapperModels=void 0,e.accountId=23058,r.rp.mergeConfig({rubicon:e})})),r.que.unshift((function(){function e(e){return!(!e||!Object.keys(e).length)}let t={cmpApi:"iab",timeout:50},n={timeout:50,allowAuctionWithoutConsent:!1,defaultGdprScope:!0,rules:[{purpose:"storage",enforceVendor:!0,enforcePurpose:!0},{purpose:"basicAds",enforceVendor:!0,enforcePurpose:!0},{purpose:"measurement",enforceVendor:!1,enforcePurpose:!1}],cmpApi:"iab"},i={timeout:50},o={};e(n)&&function(){if(r.rp&&r.rp.hasCustomCmp)return!1;if("function"==typeof(window.__cmp||window.__tcfapi)||window.$sf&&window.$sf.ext&&"function"==typeof window.$sf.ext.cmp)return!0;try{if("function"==typeof(window.top.__cmp||window.top.__tcfapi))return!0}catch(e){}for(var e=window;e!==window.top;){e=e.parent;try{if(e.frames.__cmpLocator)return!0}catch(e){}try{if(e.frames.__tcfapiLocator)return!0}catch(e){}}return!1}()&&(o.gdpr=n),!e(i)||r.rp&&r.rp.hasCustomUspCmp||(o.usp=i),e(t)&&function(){let e=!1,t=!1,n=window;for(r.rp&&r.rp.hasCustomGppCmp&&(e=!0);!e&&!t;){try{"function"==typeof n.__gpp&&(t=!0)}catch(e){}try{n.frames.__gppLocator&&(t=!0)}catch(e){}n===window.top&&(e=!0),n=n.parent}return t}()&&(o.gpp=t),e(o)&&r.rp.mergeConfig({consentManagement:o})})),r.que.unshift((function(){r.enableAnalytics([{options:{endpoint:"https://prebid-a.rubiconproject.com/event",accountId:23058},provider:"magnite"}])})),r.que.unshift((function(){r.rp.mtoConfigMap={15203:{mediaTypes:{banner:{sizes:[[200,200],[250,250],[300,250],[250,360],[240,400],[300,480],[300,600],[300,400],[120,600],[336,280],[160,600],[320,480],[480,320],[750,300],[580,400]]}}},15475:{mediaTypes:{banner:{sizes:[[200,200],[300,200],[250,250],[300,250],[300,300],[300,450],[320,480],[300,600],[120,600],[160,600],[300,480],[728,90],[960,600],[970,90],[320,250],[250,360],[336,280],[240,400],[320,400],[480,320],[750,300]]}}}},r.ppi&&(r.ppi.mtoConfigMap=r.rp.mtoConfigMap)})),r.que.unshift((function(){var e=[{slotPattern:"Csdn_300x250_A_new$",bids:[{bidder:"rubicon",params:{siteId:570428,zoneId:3606590,position:"ATF",accountId:23058,bidonmultiformat:!1}}],mtoRevId:15475,aupname:"Csdn_300x250_A_new$"},{slotPattern:"Csdn_300x250_new",bids:[{bidder:"rubicon",params:{siteId:570428,zoneId:3606592,position:"ATF",accountId:23058,bidonmultiformat:!1}}],mtoRevId:15475,aupname:"Csdn_300x250_new"},{slotPattern:"Csdn_300x600_new",bids:[{bidder:"rubicon",params:{siteId:570428,zoneId:3606594,position:"ATF",accountId:23058,bidonmultiformat:!1}}],mtoRevId:15475,aupname:"Csdn_300x600_new"},{slotPattern:"CSDN_728x90_new",bids:[{bidder:"rubicon",params:{siteId:570428,zoneId:3606596,position:"ATF",accountId:23058,bidonmultiformat:!1}}],mtoRevId:15475,aupname:"CSDN_728x90_new"},{slotPattern:"Csdn_BottomSticky_new",bids:[{bidder:"rubicon",params:{siteId:570428,zoneId:3606598,position:"ATF",accountId:23058,bidonmultiformat:!1}}],mtoRevId:15475,aupname:"Csdn_BottomSticky_new"},{slotPattern:"Csdn_Interstitial_New",bids:[{bidder:"rubicon",params:{siteId:570428,zoneId:3606600,position:"ATF",accountId:23058,bidonmultiformat:!1}}],mtoRevId:15475,aupname:"Csdn_Interstitial_New"},{slotPattern:"Csdn.*",bids:[{bidder:"rubicon",params:{siteId:570428,zoneId:3606602,accountId:23058,bidonmultiformat:!1}}],mtoRevId:15475,aupname:"Csdn.*"},{slotPattern:"22081762831/.*",bids:[{bidder:"rubicon",params:{siteId:563598,zoneId:3561824,accountId:23058,bidonmultiformat:!1}}],mtoRevId:15203,aupname:"22081762831/.*"}];r.ppi&&r.ppi.addAdUnitPatterns&&r.ppi.addAdUnitPatterns(e),r.rp.addAdunitPatterns(e)})),r.que.unshift((function(){r.rp.mergeConfig({cpmRoundingFunction:Math.floor})})),r.que.unshift((function(){r.rp.mergeConfig({allowEarlyBids:!0}),r.onEvent("bidResponse",(e=>{r.setTargetingForGPTAsync(e.adUnitCode)}))})),r.que.unshift((function(){r.rp.mergeConfig({bidCacheFilterFunction:function(e){return"video"!==e.mediaType}})})),r.que.unshift((function(){r.rp.mergeConfig({mediaTypePriceGranularity:{banner:"high","video-outstream":"high"},userSync:{syncDelay:3e3,syncEnabled:!0,filterSettings:{iframe:{filter:"include",bidders:"*"}},syncsPerBidder:3},currency:{defaultRates:{USD:{AUD:1.5726805105734425,BGN:1.863021527910078,BRL:6.038959801867022,CAD:1.4249380834444656,CHF:.892741474566584,CNY:7.2835778243474945,CZK:23.848352067060393,DKK:7.104972375690608,EUR:.9525623928367308,GBP:.7901028767384264,HKD:7.775290531529814,HUF:389.626595542008,IDR:16022.299485616306,ILS:3.597542389026481,INR:84.89521813678796,ISK:138.21680320060963,JPY:154.05791579348443,KRW:1437.5595351495524,MXN:20.15955420080015,MYR:4.452467136597447,NOK:11.160220994475138,NZD:1.7326157363307295,PHP:58.77881501238331,PLN:4.06172604305582,RON:4.740236235473423,SEK:10.910744903791198,SGD:1.3500666793674985,THB:34.084587540483895,TRY:34.96227852924366,USD:1,ZAR:17.878834063631167}},adServerCurrency:"USD"},bidderTimeout:1500,enableSendAllBids:!1,useBidCache:!0,targetingControls:{alwaysIncludeDeals:!0},coppa:!1,auctionOptions:{secondaryBidders:[]},enableTIDs:!0})})),r.que.unshift((function(){e("./lib/hpbv2.js")(r)})),e("./lib/dmHelpers.js")(r,{name:"dm-fee",id:353,type:1}),e("./lib/analytics-dispatcher/index.js")(r)},{"./lib/analytics-dispatcher/index.js":4,"./lib/dm-web-vitals/trackWebVitals.js":6,"./lib/dmEvents.js":8,"./lib/dmHelpers.js":9,"./lib/hpbv2.js":10}],2:[function(e,t,n){t.exports={addLedgerToBidWon:function(e,t){if(!t||!e.bidsWon)return;const{bidsWon:n}=e;for(const e of n)e.ledgers||(e.ledgers=[]),e.ledgers.push({...t})}}},{}],3:[function(e,t,n){class r extends EventTarget{constructor(){super()}}t.exports=r},{}],4:[function(e,t,n){const r=e("../logUtils.js")("DM Analytics Dispatcher Logging"),i=e("./eventDispatcher.js");t.exports=function(e){e.rp=e.rp||{},e.rp.eventDispatcher=new i,e.rp.eventDispatcher.addEventListener("beforeSendingMagniteAnalytics",(t=>{const{detail:n}=t;Object.entries(e.rp.magniteAnalyticsHandlers).forEach((([e,t])=>{r.debug(`Running magnite analytics call-back for module ${e}`);try{t(n)}catch(t){r.warn(`${e} call-back error: ${t}`)}}))}))}},{"../logUtils.js":11,"./eventDispatcher.js":3}],5:[function(e,t,n){const r=(e,t)=>{const n=e.auctionId;if(e&&Array.isArray(e.adUnits)&&e.adUnits.length>0)return t.trackNewAuction(e),t.takeTime(n,"requestBids",pbjs.rp.latestRequestBids),t.takeTime(n,"auctionInit"),!0};let i={};let o={};let a=[];t.exports={trackPrebidEvents:e=>{let t=(window.pbjs=window.pbjs||{},window.pbjs.rp=window.pbjs.rp||{},window.pbjs.que=window.pbjs.que||[],window.pbjs);const n=["auctionInit","bidRequested","noBid","bidResponse","auctionEnd","bidWon"];t.que.unshift((()=>{n.forEach((n=>{t.onEvent(n,(function t(o){i[n]=t,"auctionInit"===n?r(o,e):e.takeTime(o.auctionId,n)}))}))}))},trackGamEvents:e=>{const t=[{event:"slotRequested",pbaEventName:"gamSlotRequested"},{event:"slotResponseReceived",pbaEventName:"gamSlotResponseReceived"},{event:"slotRenderEnded",pbaEventName:"gamSlotRenderEnded"}];let n=(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag);n.cmd.push((()=>{t.forEach((t=>{n.pubads().addEventListener(t.event,(function n(r){o[t.event]=n;const i=e.getAuctions();Object.entries(i).forEach((([n,i])=>{i.divIds.some((e=>((e,t)=>(e&&e.slot&&e.slot.getSlotElementId&&e.slot.getSlotElementId())===t)(r,e)))&&e.takeTime(n,t.pbaEventName)}))}))}))}))},trackCWVEvents:e=>{(()=>{let e=0;return[{eventName:"largest-contentful-paint",pbaEventName:"lcp",handler:e=>{const t=e.getEntries(),n=t[t.length-1];return Math.round(n.startTime)}},{eventName:"first-input",pbaEventName:"fid",handler:e=>{const t=e.getEntries(),n=t[t.length-1];return Math.round(100*(n.processingStart-n.startTime))/100}},{eventName:"layout-shift",pbaEventName:"cls",handler:t=>(t.getEntries().forEach((t=>{t.hadRecentInput||(e+=t.value)})),parseFloat(e.toFixed(6)))}]})().forEach((t=>{const n=new PerformanceObserver((n=>{const r=t.handler(n);r&&e.setCwvValue(t.pbaEventName,r)}));n.observe({type:t.eventName,buffered:!0}),a.push(n)}))},unsubscribeToListeners:()=>{a.forEach((e=>{e&&"function"==typeof e.disconnect&&e.disconnect()})),Object.keys(i).forEach((e=>{pbjs.offEvent(e,i[e])})),Object.keys(o).forEach((e=>{googletag.pubads().removeEventListener(e,o[e])})),delete window.pbjs.rp.getDmWebVitals}}},{}],6:[function(e,t,n){const r=e("../logUtils.js")("DM Web Vitals"),i=e("./webVitals");t.exports=function(e){if(!(e=>e<Math.ceil(100*Math.random())?(r.info("Not tracking - Sampled Out"),!1):(r.info("Initialized"),!0))(e))return;const t=i();t.initEventListeners(t),window.pbjs.rp.getDmWebVitals=t.getEventPayload}},{"../logUtils.js":11,"./webVitals":7}],7:[function(e,t,n){const r=e("../logUtils.js")("DM Web Vitals"),{trackPrebidEvents:i,trackGamEvents:o,trackCWVEvents:a,unsubscribeToListeners:s}=e("./events");t.exports=function(){const e=Math.round(performance.now());let t={},n={},d=!1,p=0;setTimeout((()=>{d=!0,p>1&&s()}),3e4);return{setCwvValue:(e,t)=>n[e]=t,getEventPayload:(e,i)=>{if(i&&p++,!t.hasOwnProperty(e))return void r.warn(`No data for Auction ID ${e}`);d&&p>1&&setTimeout(s,0),i&&setTimeout((()=>delete t[e]),0);let o={...t[e].eventPayload};return Object.keys(n).length&&(o.coreWebVitals=n),o},takeTime:(n,i,o)=>{if(!t.hasOwnProperty(n))return;let a=t[n].eventPayload;a.timeSincePageLoadMillis||(a.timeSincePageLoadMillis={wrapperLoaded:e}),a.timeSincePageLoadMillis[i]||(a.timeSincePageLoadMillis[i]=Math.round(o||performance.now()),r.debug(`First ${i} occured ${a.timeSincePageLoadMillis[i]} after page load`))},initEventListeners:e=>{i(e),o(e);try{a(e)}catch(e){r.warn("Unable to subscribe to performance observers")}},trackNewAuction:e=>{var n;t[e.auctionId]={divIds:(n=e.adUnits,n.map((e=>e.ortb2Imp&&e.ortb2Imp.ext&&e.ortb2Imp.ext.data&&e.ortb2Imp.ext.data.elementid?Array.isArray(e.ortb2Imp.ext.data.elementid)?e.ortb2Imp.ext.data.elementid[0]:e.ortb2Imp.ext.data.elementid:e.code))),eventPayload:{}}},getAuctions:()=>t}}},{"../logUtils.js":11,"./events":5}],8:[function(e,t,n){const r=e("./logUtils.js")("DM Events:");t.exports=function(e){let t={adUnitsConfigured:[]};e.rp.events=t,e.rp.onEvent=function(e,n){"function"==typeof n?t[e]?(t[e].push(n),r.info(`Callback registered for event: ${e}`)):r.warn(`No ${e} exists.`):r.debug(`Callback for event ${e} is not a function.`)},e.rp.emitEvent=function(e,n){t[e]&&(r.info(`Emitting DM Event ${e}`,n),t[e].forEach((e=>{e(n)})))}}},{"./logUtils.js":11}],9:[function(e,t,n){const{addLedgerToBidWon:r}=e("./analytics-dispatcher/bidWonHelper.js"),{deepAccess:i,isGptDefined:o,mergeDeep:a,isPlainObject:s}=e("./utils.js");var d=e("./logUtils.js")("DM");t.exports=function(e,t){e.rp=e.rp||{},e.rp.magniteAnalyticsHandlers=e.rp.magniteAnalyticsHandlers||{},e.rp.magniteAnalyticsHandlers.dm=function(e){r(e,t)},d.info(`GPT was ${o()?"":"NOT"} found and ready on the page`),e.rp.setCustomPbAdSlotFunction=function(t){function n(e,n){try{var r=window.googletag.pubads().getSlots().filter((t=>t.getSlotElementId()===e.code));return 0===r.length?void d.warn(`Could not find gpt slot on page for adServerAdSlot: ${n} and adUnit: `,e):1===r.length?t(e,r[0]):void 0}catch(e){d.error("Error occured trying to run custom slot function: ",e)}}if(e.rp.hasAppliedPrebidSetConfig){var r=e.getConfig("gptPreAuction")||{};r.customPreAuction=n,e.setConfig({gptPreAuction:r})}else e.rp.mergeConfig({gptPreAuction:{customPreAuction:n}})};var n={};function p(){return Object.assign({},n)}e.rp.hasAppliedPrebidSetConfig=!1;const c={};e.rp.getConfig=function(e,t){return"function"==typeof t?(c[e]=c[e]||[],void c[e].push(t)):e?i(p(),e):p()},e.rp.mergeConfig=function(t){s(t)?e.rp.hasAppliedPrebidSetConfig?d.warn("Demand Manager Config already applied to prebid - Use pbjs.setConfig"):(n=a(n,t),function(e){Object.entries(c).forEach((([t,n])=>{e[t]&&n.forEach((n=>n(e[t])))}))}(t)):d.error("Demand Manager mergeConfig input must be an object")},e.rp.applyPrebidSetConfig=function(){e.rp.hasAppliedPrebidSetConfig?d.warn("Demand Manager Config already applied to prebid. Skipping"):(d.info("Setting the following Demand Manager Config for Prebid.js: ",JSON.parse(JSON.stringify(n))),e.setConfig(n),e.rp.hasAppliedPrebidSetConfig=!0)}}},{"./analytics-dispatcher/bidWonHelper.js":2,"./logUtils.js":11,"./utils.js":12}],10:[function(e,t,n){const{mergeDeep:r}=e("./utils.js");var i=e("./logUtils.js")("DM");i.info("Loading"),t.exports=function(e){try{var t={"300x251":[300,250],"300x252":[300,250],"300x601":[300,600],"300x602":[300,600],"160x601":[160,600],"728x91":[728,90],"728x92":[728,90],"970x91":[970,90]};function n(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n)}function o(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function a(e){try{return JSON.parse(JSON.stringify(e))}catch(t){return e}}function s(e){return Array.isArray(e)&&"number"==typeof e[0]&&(e=[e]),e}function d(){var t=e.getConfig("rubicon")||{};"dmpbjs"!==t.int_type&&(t.int_type="dmpbjs",e.setConfig({rubicon:t}))}function p(e){var t=U(),n=e.getSizes(t[0],t[1]);if(n)return n.filter((function(t){return"function"==typeof t.getHeight&&"function"==typeof t.getWidth||(i.warn('skipping "fluid" ad size for gpt slot:',l(e,!0)),!1)})).map((function(e){return[e.getWidth(),e.getHeight()]}))}function c(e){return(e.sizes||[]).map((function(e){return[e.w,e.h]}))}function u(e){var t=e.getTargetingMap(),n={};for(var r in t)n[r]=t[r].map((function(e){return e}));return n}function l(e,t){return t?e.getAdUnitPath()+"&"+e.getSlotElementId():e.divId?e.name+"&"+e.divId:e.name}function f(n,r,o,a,s){var d,u=s&&(a&&s[n.getSlotElementId()]||s[n.name]||s.__global__)||a&&p(n)||c(n);if(u&&u.length)d=u,u=g(u=Array.isArray(d)?d.map((function(e){return Array.isArray(e)&&t[e.join("x")]||e})):d,r);else{if(function(t,n){return e.rp.sizeMappings&&(n&&e.rp.sizeMappings[t.getSlotElementId()]||!n&&e.rp.sizeMappings[t.name]||e.rp.sizeMappings.__global__)}(n,a)||!r||!r.length)return i.warn("slot:",l(n,a),"does not have any sizes or sizeMapping sizes defined"),[];u=r}return u=g(u,o)}function g(e,t){return t?function(e,t){return e.filter((function(e){return function(e,t){return t.some((function(t){return e[0]===t[0]&&e[1]===t[1]}))}(e,t)}))}(e,t):e}function m(e,t){return e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(t)}function b(t){if(!t.mediaTypes){try{t.mediaTypes=JSON.parse(JSON.stringify(e.rp.mtoConfigMap[t.mtoRevId].mediaTypes)),e.rp.nativeThemeMap&&function(t){if(t.mediaTypes&&t.mediaTypes.nativeTheme&&Array.isArray(t.mediaTypes.nativeTheme.nativeThemeRefs)){var n=JSON.parse(JSON.stringify(t.mediaTypes.nativeTheme));delete n.nativeThemeRefs;var r=t.mediaTypes.nativeTheme.nativeThemeRefs.reduce(((t,r)=>{var i=e.rp.nativeThemeMap[r.nativeThemeRevId];if(i){var o={isNds:!0,sendTargetingKeys:!1,rendererUrl:i.rendererUrl,ortb:{...n,...i.ortb}};t.push(o)}return t}),[]);r.length>0&&(t.mediaTypes.native=1===r.length?r[0]:r,delete t.mediaTypes.nativeTheme)}}(t)}catch(e){return i.error("Unable to resolve the mediaTypes for adUnitPattern:",t.aupname,e),!1}delete t.mtoRevId}return!0}function v(t,n,r,d,g){return o(n,(function(n){var o=!1,v=r?t.getAdUnitPath():t.name,y=r?t.getSlotElementId():g?t.divId:"",h=!n.slotPattern||n.slotPattern.test(v),w=!n.divPattern||n.divPattern.test(y),P=U();if((o=h&&w)&&(o=b(n)),o&&C)try{(o=C({gptSlot:t,adUnitPattern:n}))||i.warn("adUnitPattern:",n.aupname,"did not match slot:",l(t,r),"because filtered out by custom mapping function\ncustom mapping params:",n.customMappingParams,"ad server targeting:",r?u(t):{},"ortb2Imp:",t.ortb2Imp||{})}catch(e){i.warn("custom mapping function error:",e)}if(o&&m(n,"native")){var S=n.mediaTypes.native.isNds||Array.isArray(n.mediaTypes.native)&&n.mediaTypes.native.length&&n.mediaTypes.native[0].isNds;if(o=function(e,t,n){if(n)return!0;var r=U(),i=t&&e.getSizes(r[0],r[1])||e.sizes;return!!i&&function(e,t){return e.some((e=>{var n=t?"function"==typeof e.getWidth:e&&"number"==typeof e.w,r=t?"function"==typeof e.getHeight:e&&"number"==typeof e.h;return t?!n||!r:"fluid"===e}))}(i,t)}(t,r,S),!o)return i.warn("adUnitPattern:",n.aupname,'excluded because "fluid" size not found for native slot:',l(t,r),"\non-page sizes:",r?t.getSizes():c(t)),!1}if(o){if(m(n,"banner")&&(n.filteredSizes=f(t,function(e){return e&&e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.responsiveSizes?j(e.mediaTypes.banner.responsiveSizes,U()):s(e&&e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes)}(n),s(e.rp.sizes),r,d),0===n.filteredSizes.length))return i.warn("adUnitPattern:",n.aupname,"did not match slot:",l(t,r),"because all slot sizes filtered out for viewport:",P[0]+"x"+P[1],"\nDM expected sizes:",n.mediaTypes.banner.responsiveSizes?j(n.mediaTypes.banner.responsiveSizes,P):a(n.mediaTypes.banner.sizes),"on-page sizes:",r?t.getSizes(P[0],P[1]):a(c(t))),!1;i.debug("adUnitPattern/slot match found for adUnitPattern:",n.aupname,"slot:",l(t,r),"\nDM adUnitPattern Object:",a(n),"\nslot Object:",function(e,t){return{name:l(e,t),sizes:t?p(e):c(e),targeting:t?u(e):e.ortb2Imp||{}}}(t,r))}return o}))}function y(e,t){e.ortb2Imp=e.ortb2Imp||{},t&&t.hasOwnProperty("ortb2Imp")&&(e.ortb2Imp=r(e.ortb2Imp,t.ortb2Imp)),e.ortb2Imp.ext=e.ortb2Imp.ext||{},e.ortb2Imp.ext.data=e.ortb2Imp.ext.data||{},e.ortb2Imp.ext.data.aupname=e.aupname}function h(e,t,r,o){if(t)try{var a=JSON.parse(JSON.stringify(t));return a.code=r?e.getSlotElementId():e.divId||e.name,a.mediaTypes&&a.mediaTypes.banner&&(a.mediaTypes.banner.sizes=a.filteredSizes),a.bids.forEach((function(e){S(e,o)})),a.transactionId||(a.transactionId=n()),y(a,e),delete a.filteredSizes,delete a.responsiveSizes,delete a.slotPattern,delete a.divPattern,delete a.aupname,a}catch(e){i.error("error parsing adUnit:",e)}else i.warn("createAdUnit: no adUnitPattern found for slot:",l(e,r))}var w=/##data\.(.+?)##/g,P=/^##data\.([^#\s]+)##$/;function S(e,t,n){var r=null==e[n]?e:e[n];!n&&0!==n||"string"!=typeof r?"object"==typeof r&&(Array.isArray(r)?r.forEach((function(e,n){S(r,t,n)})):Object.keys(r).forEach((function(e){S(r,t,e)}))):function(e,t,n,r){if(w.lastIndex=0,!w.test(r))return;var i=P.exec(r);if(i)return void(t&&t.hasOwnProperty(i[1])?e[n]=t[i[1]]:delete e[n]);var o=r.replace(w,(function(e,n){return"object"==typeof t[n]?JSON.stringify(t[n]):void 0===t[n]?"":t[n]}));e[n]=o||""}(e,t,n,r)}function T(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}e.rp=e.rp||{},e.rp.featuresUsed={wrapper:{},page:{}};const E=t=>{try{const n=e.rp.wrapperLoaded?"page":"wrapper";e.rp.featuresUsed[n][t]=e.rp.featuresUsed[n][t]||0,e.rp.featuresUsed[n][t]+=1}catch(e){i.warn(`Unable to log feature ${t}: `,e)}},z=()=>{e.rp.sizes&&E("rp.sizes"),e.rp.hasCustomCmp&&E("rp.hasCustomCmp"),e.rp.sizeMappings&&Object.keys(e.rp.sizeMappings).length&&E("rp.sizeMappings")};function j(e,t){var n;try{n=o(e.sort(I),(function(e){return t[0]>=e.minViewPort[0]&&t[1]>=e.minViewPort[1]})).sizes}catch(t){i.error("error parsing sizeMappings:",e,t)}return n}function I(e,t){var n=e.minViewPort,r=t.minViewPort;return r[0]*r[1]-n[0]*n[1]||r[0]-n[0]||r[1]-n[1]}function U(){return[window.innerWidth,window.innerHeight]}function A(e,t,n,r,o){if(n)try{var a=JSON.parse(JSON.stringify(n));a.mediaTypes||(a.mediaTypes={}),a.mediaTypes.video||(a.mediaTypes.video={}),a.mediaTypes.video.playerSize=t,a.code=e;var s=T(r);return a.bids.forEach((function(e){S(e,function(e,t){if(e&&"rubicon"===t){var n=JSON.parse(JSON.stringify(e));return["inventory","visitor"].forEach((function(e){"object"==typeof n[e]&&Object.keys(n[e]).forEach((function(t){var r=n[e][t];"string"!=typeof r&&"number"!=typeof r||(n[e][t]=[r])}))})),n}return e}(s,e.bidder))})),y(a),delete a.slotPattern,delete a.divPattern,delete a.filteredSizes,delete a.aupname,a}catch(e){i.error("error parsing video adUnit",e)}else i.warn("createVideoAdUnit: no adUnitPattern found for slot:",e)}var C;e.rp.adUnitPatterns=[],e.rp.addAdunitPatterns=function(t){E("addAdunitPatterns"),i.debug("addAdUnitPatterns:",t),e.rp.adUnitPatterns=e.rp.adUnitPatterns.concat(function(e){return e.filter((function(e){if(void 0!==e.slotPattern)try{e.slotPattern=new RegExp(e.slotPattern,"i")}catch(t){return i.error("error converting slot pattern: ('"+e.slotPattern+"'); adUnitPattern excluded"),!1}if(void 0!==e.divPattern)try{e.divPattern=new RegExp(e.divPattern,"i")}catch(t){return i.error("error converting div pattern: ('"+e.divPattern+"'); adUnitPattern excluded"),!1}return!0}))}(t))},e.rp.requestBids=function(t){const n="function"==typeof t.callback;E("requestBids"),Object.keys(t).forEach((e=>E(`requestBids-${e}`))),E("callback"+(n?"Used":"NotUsed")),z(),i.info("requestBids called with config:",t),i.info('turn on "All Levels" logging in the console to see more detailed logs');var r=t.hasOwnProperty("gptSlotObjects")||!t.slotMap&&"undefined"!=typeof googletag,o=Array.isArray(t.slotMap)&&t.slotMap||r&&(t.gptSlotObjects||googletag.pubads().getSlots())||[];r?(E("gptUsed"),E(""+(t.gptSlotObjects?"slotsPassed":"slotsNotPassed"))):E("slotMapUsed"),e.rp.addSizeMappings(t.sizeMappings,!0);var a=function(e,t){try{e=e||{};var n={};for(var r in e)if(e.hasOwnProperty(r)){var o=j(e[r],t);o&&(n[r]=o)}}catch(e){i.error("error getting all sizeMapping sizes:",e)}return n}(e.rp.sizeMappings,U()),s=!0===t.divPatternMatching&&!r;!r&&s&&E("divPatternMatching");var p=function(e,t,n,r,i,o){var a=T(r);return e.reduce((function(e,r){var s=v(r,t,n,i,o);if(s&&s.mediaTypes&&Array.isArray(s.mediaTypes.native)){for(var d=JSON.parse(JSON.stringify(s.mediaTypes)),p=0;p<d.native.length;p++)s.mediaTypes.native=d.native[p],e.push(h(r,s,n,a)),s.mediaTypes={};s.mediaTypes=d}else e.push(h(r,s,n,a));return e}),[]).filter((function(e){return e}))}(o,e.rp.adUnitPatterns,r,t.data,a,s);if(i.debug("requestBids adUnits:",p),p.length){d();var c="boolean"==typeof t.setTargeting?t.setTargeting:-1===(""+t.callback).indexOf("setTargetingForGPTAsync");if(E(`dm${c?"":"Not"}CallSetTargeting`),e.getConfig("sizeConfig")&&E("pbjsSizeConfig"),function(t){e.rp.bt&&e.rp.bt.loaded&&(e.rp.bt.adUnits=e.rp.bt.adUnits||[],t.forEach((t=>{let n=e.rp.bt.adUnits.findIndex((e=>e.code===t.code));-1!==n?e.rp.bt.adUnits[n]=t:e.rp.bt.adUnits.push(t)})))}(p),e.rp.emitEvent("adUnitsConfigured",p),e.rp.useBt)return void i.info("requestBids: skipping Magnite auction because BlockThrough has been loaded");e.rp.latestRequestBids=performance.now(),e.requestBids({bidsBackHandler:function(a,s,d){"function"==typeof e.rp.drCallback&&(i.info("Executing direct render module"),o=e.rp.drCallback({isGptSlot:r,slots:o})),r?(c&&e.setTargetingForGPTAsync(p.map((function(e){return e.code}))),n?(i.debug("bidsBackHandler execute callback"),t.callback(o)):(i.debug("callback undefined, refresh gpt slots"),googletag.pubads().refresh(o))):n?(i.debug("bidsBackHandler execute callback"),t.callback(a,s,d)):i.debug("callback undefined")},adUnits:p})}else i.debug("requestBids cancelled: no adUnits available for auction"),n?t.callback(r?o:{}):r&&(i.debug("refresh gpt slots"),googletag.pubads().refresh(o))},e.rp.addSizeMappings=function(t,n){for(var r in!n&&E("addSizeMappings"),t=t||{},e.rp.sizeMappings=e.rp.sizeMappings||{},t)t.hasOwnProperty(r)&&(e.rp.sizeMappings[r]=t[r])},e.rp.requestVideoBids=function(t){if(E("requestVideoBids"),z(),Object.keys(t).forEach((e=>E(`requestVideoBids-${e}`))),"string"==typeof t.adSlotName)if(Array.isArray(t.playerSize)){t.adServer=t.adServer||"gam";var n,r,a=A(t.adSlotName,t.playerSize,(n=t.adSlotName,r=t.playerSize,o(e.rp.adUnitPatterns,(function(t){var o=!1;if(b(t),function(e){return"video"===e.mediaType||"object"==typeof e.mediaTypes&&e.mediaTypes.hasOwnProperty("video")}(t)&&void 0!==t.slotPattern&&(o=t.slotPattern.test(n)),o&&C)try{(o=C({gptSlot:n,adUnitPattern:t}))||i.warn("adUnitPattern:",t.aupname,"did not match slot:",n,"because filtered out by custom mapping function\ncustom mapping params:",t.customMappingParams)}catch(e){i.warn("custom mapping function error:",e)}return!!o&&(function(e,t,n){var r=!0;return n&&(r=n.some((function(t){return e[0]===t[0]&&e[1]===t[1]}))),r&&t&&(r=t.some((function(t){return e[0]===t[0]&&e[1]===t[1]}))),r}(r,[t.mediaTypes.video.playerSize],e.rp.sizes)?(i.debug("adUnitPattern/video match found for adUnitPattern:",t,"slot:",n),!0):(i.warn("adUnitPattern:",t.aupname,"did not match slot:",n,"because all video slot sizes filtered out","\nDM expected sizes:",t.mediaTypes.video.playerSize,"on-page sizes:",r),!1))}))),t.data,t.adServer);if(a){if(d(),e.rp.latestRequestBids=performance.now(),e.rp.emitEvent("adUnitsConfigured",[a]),e.rp.useBt)return void i.info("requestBids: skipping Magnite requestVideoBids because BlockThrough has been loaded");void 0===t.callback?e.requestBids({adUnits:[a]}):e.requestBids({adUnits:[a],bidsBackHandler:function(n,r,i){if("gam"===t.adServer){var o={adTagUrl:void 0,vastUrl:void 0},s=t.adSlotName;if(n&&n[s]&&Array.isArray(n[s].bids)&&n[s].bids.length){o.adTagUrl=e.adServers.dfp.buildVideoUrl({adUnit:a,params:{iu:t.adSlotName}});var d=e.getHighestCpmBids(t.adSlotName);o.vastUrl=void 0!==d[0]?d[0].vastUrl:void 0}t.callback(o,n)}else t.callback(n,r,i)}})}else"function"==typeof t.callback&&t.callback()}else i.error("requestVideoBids called without playerSize");else i.error("requestVideoBids called without adSlotName")},e.rp.setCustomMappingFunction=function(e){E("setCustomMappingFunction"),C=e},i.info("Ready")}catch(e){window.console&&console.error&&"function"==typeof console.error&&console.error(e)}}},{"./logUtils.js":11,"./utils.js":12}],11:[function(e,t,n){var r=window&&window.location&&window.location.href&&window.location.href.indexOf("pbjs_debug=true")>-1;function i(e,t){return e=[].slice.call(e),t&&e.unshift(t),e.unshift("display: inline-block; color: #fff; background: #4dc33b; padding: 1px 4px; border-radius: 3px;"),e.unshift("%cPrebid-DM"),e}t.exports=function(e=""){for(var t=["debug","info","warn","error"],n={},o=0;o<t.length;o++){var a=t[o];n[a]=function(t){return function(){var n=window&&window.pbjs&&window.pbjs.logging,o=window&&window.pbjs&&"function"==typeof window.pbjs.getConfig&&window.pbjs.getConfig("debug");if(r||n||o)try{var a=`${t.toUpperCase()}:${e?` ${e}`:""}`;window.console[t].apply(window.console,i(arguments,a))}catch(e){}}}(a)}return n}},{}],12:[function(e,t,n){function r(e){return"[object Object]"===toString.call(e)}function i(e,t,{checkTypes:n=!1}={}){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||n&&e.constructor!==t.constructor)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){if(!t.hasOwnProperty(r))return!1;if(!i(e[r],t[r],{checkTypes:n}))return!1}return!0}function o(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}}t.exports={pick:function(e,t){return"object"!=typeof e?{}:t.reduce(((n,r,i)=>{if("function"==typeof r)return n;let o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);let s=e[r];return"function"==typeof t[i+1]&&(s=t[i+1](s,n)),void 0!==s&&(n[o]=s),n}),{})},deepAccess:function(e,t){for(t=t.split?t.split("."):t,p=0;p<t.length;p++)e=e?e[t[p]]:void 0;return void 0===e?void 0:e},mergeDeep:function e(t,...n){if(!n.length)return t;const o=n.shift();if(r(t)&&r(o))for(const n in o)r(o[n])?(t[n]||Object.assign(t,{[n]:{}}),e(t[n],o[n])):Array.isArray(o[n])?t[n]?Array.isArray(t[n])&&o[n].forEach((e=>{let r=1;for(let o=0;o<t[n].length;o++)if(i(t[n][o],e)){r=0;break}r&&t[n].push(e)})):Object.assign(t,{[n]:[...o[n]]}):Object.assign(t,{[n]:o[n]});return e(t,...n)},isGptDefined:function(){return window.googletag&&window.googletag.pubads&&"function"==typeof window.googletag.pubads().getSlots},deepEqual:i,isPlainObject:r,shuffleArray:o,majorBidderOrderHandler:function(e,t){e.forEach((e=>{let[n,r]=e.bids.reduce(((e,n)=>((t.includes(n.bidder)?e[0]:e[1]).push(n),e)),[[],[]]);n=n.sort(((e,n)=>t.indexOf(e.bidder)-t.indexOf(n.bidder))),o(r),e.bids=n.concat(r)}))}}},{}]},{},[1]);
|
|
!function(){var t,n={70433:function(t,n,r){function e(t,n,r,e,o){for(n=n.split?n.split("."):n,e=0;e<n.length;e++)t=t?t[n[e]]:o;return t===o?r:t}r.d(n,{A:function(){return e}})},68128:function(t){
|
|
/*
|
|
* @license MIT
|
|
* Fun Hooks v0.9.10
|
|
* (c) @snapwich
|
|
*/
|
|
f.SYNC=1,f.ASYNC=2,f.QUEUE=4;var n="fun-hooks";var r=Object.freeze({useProxy:!0,ready:0}),e=new WeakMap,o="2,1,0"===[1].reduce((function(t,n,r){return[t,n,r]}),2).toString()?Array.prototype.reduce:function(t,n){var r,e=Object(this),o=e.length>>>0,i=0;if(n)r=n;else{for(;i<o&&!(i in e);)i++;r=e[i++]}for(;i<o;)i in e&&(r=t(r,e[i],i,e)),i++;return r};function i(t,n){return Array.prototype.slice.call(t,n)}var u=Object.assign||function(t){return o.call(i(arguments,1),(function(t,n){return n&&Object.keys(n).forEach((function(r){t[r]=n[r]})),t}),t)};function f(t){var c,a={},l=[];function y(t,n){return"function"==typeof t?v.call(null,"sync",t,n):"string"==typeof t&&"function"==typeof n?v.apply(null,arguments):"object"==typeof t?p.apply(null,arguments):void 0}function p(t,n,r){var e=!0;void 0===n&&(n=Object.getOwnPropertyNames(t),e=!1);var o={},i=["constructor"];do{(n=n.filter((function(n){return!("function"!=typeof t[n]||-1!==i.indexOf(n)||n.match(/^_/))}))).forEach((function(n){var e=n.split(":"),i=e[0],u=e[1]||"sync";if(!o[i]){var f=t[i];o[i]=t[i]=v(u,f,r?[r,i]:void 0)}})),t=Object.getPrototypeOf(t)}while(e&&t);return o}function s(t){var r=Array.isArray(t)?t:t.split(".");return o.call(r,(function(e,o,i){var u=e[o],f=!1;return u||(i===r.length-1?(c||l.push((function(){f||console.warn(n+": referenced '"+t+"' but it was never created")})),e[o]=b((function(t){e[o]=t,f=!0}))):e[o]={})}),a)}function b(t){var n=[],r=[],o=function(){},i={before:function(t,r){return c.call(this,n,"before",t,r)},after:function(t,n){return c.call(this,r,"after",t,n)},getHooks:function(t){var e=n.concat(r);"object"==typeof t&&(e=e.filter((function(n){return Object.keys(t).every((function(r){return n[r]===t[r]}))})));try{u(e,{remove:function(){return e.forEach((function(t){t.remove()})),this}})}catch(t){console.error("error adding `remove` to array, did you modify Array.prototype?")}return e},removeAll:function(){return this.getHooks().remove()}},f={install:function(e,i,u){this.type=e,o=u,u(n,r),t&&t(i)}};return e.set(i.after,f),i;function c(t,e,i,u){var f={hook:i,type:e,priority:u||10,remove:function(){var e=t.indexOf(f);-1!==e&&(t.splice(e,1),o(n,r))}};return t.push(f),t.sort((function(t,n){return n.priority-t.priority})),o(n,r),this}}function v(r,o,a){var y=o.after&&e.get(o.after);if(y){if(y.type!==r)throw n+": recreated hookable with different type";return o}var p,v,d=a?s(a):b(),h={get:function(t,n){return d[n]||Reflect.get.apply(Reflect,arguments)}};return c||l.push(m),t.useProxy&&"function"==typeof Proxy&&Proxy.revocable?v=new Proxy(o,h):(v=function(){return h.apply?h.apply(o,this,i(arguments)):o.apply(this,arguments)},u(v,d)),e.get(v.after).install(r,v,(function(t,n){var e,o=[];t.length||n.length?(t.forEach(u),e=o.push(void 0)-1,n.forEach(u),p=function(t,n,u){var f,c=0,a="async"===r&&"function"==typeof u[u.length-1]&&u.pop();function l(t){"sync"===r?f=t:a&&a.apply(null,arguments)}function y(t){if(o[c]){var e=i(arguments);return y.bail=l,e.unshift(y),o[c++].apply(n,e)}"sync"===r?f=t:a&&a.apply(null,arguments)}return o[e]=function(){var e=i(arguments,1);"async"===r&&a&&(delete y.bail,e.push(y));var o=t.apply(n,e);"sync"===r&&y(o)},y.apply(null,u),f}):p=void 0;function u(t){o.push(t.hook)}m()})),v;function m(){!c&&("sync"!==r||t.ready&f.SYNC)&&("async"!==r||t.ready&f.ASYNC)?"sync"!==r&&t.ready&f.QUEUE?h.apply=function(){var t=arguments;l.push((function(){v.apply(t[1],t[2])}))}:h.apply=function(){throw n+": hooked function not ready"}:h.apply=p}}return(t=u({},r,t)).ready?y.ready=function(){c=!0,function(t){for(var n;n=t.shift();)n()}(l)}:c=!0,y.get=s,y}t.exports=f},43145:function(t,n,r){function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=Array(n);r<n;r++)e[r]=t[r];return e}r.d(n,{A:function(){return e}})},23029:function(t,n,r){function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}r.d(n,{A:function(){return e}})},92901:function(t,n,r){r.d(n,{A:function(){return i}});var e=r(20816);function o(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,e.A)(o.key),o)}}function i(t,n,r){return n&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}},64467:function(t,n,r){r.d(n,{A:function(){return o}});var e=r(20816);function o(t,n,r){return(n=(0,e.A)(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}},53954:function(t,n,r){function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},e(t)}r.d(n,{A:function(){return e}})},85501:function(t,n,r){r.d(n,{A:function(){return o}});var e=r(63662);function o(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&(0,e.A)(t,n)}},50388:function(t,n,r){r.d(n,{A:function(){return o}});var e=r(82284);function o(t,n){if(n&&("object"==(0,e.A)(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}},63662:function(t,n,r){function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},e(t,n)}r.d(n,{A:function(){return e}})},80296:function(t,n,r){r.d(n,{A:function(){return o}});var e=r(27800);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,o,i,u,f=[],c=!0,a=!1;try{if(i=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(e=i.call(r)).done)&&(f.push(e.value),f.length!==n);c=!0);}catch(t){a=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(a)throw o}}return f}}(t,n)||(0,e.A)(t,n)||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.")}()}},45458:function(t,n,r){r.d(n,{A:function(){return i}});var e=r(43145);var o=r(27800);function i(t){return function(t){if(Array.isArray(t))return(0,e.A)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,o.A)(t)||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.")}()}},20816:function(t,n,r){r.d(n,{A:function(){return o}});var e=r(82284);function o(t){var n=function(t,n){if("object"!=(0,e.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=(0,e.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==(0,e.A)(n)?n:n+""}},82284:function(t,n,r){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}r.d(n,{A:function(){return e}})},27800:function(t,n,r){r.d(n,{A:function(){return o}});var e=r(43145);function o(t,n){if(t){if("string"==typeof t)return(0,e.A)(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,e.A)(t,n):void 0}}},63172:function(t,n,r){function e(t,n,r){n.split&&(n=n.split("."));for(var e,o,i=0,u=n.length,f=t;i<u&&"__proto__"!=(o=""+n[i++])&&"constructor"!==o&&"prototype"!==o;)f=f[o]=i===u?r:typeof(e=f[o])==typeof n?e:0*n[i]!=0||~(""+n[i]).indexOf(".")?{}:[]}r.d(n,{J:function(){return e}})},45751:function(t,n,r){function e(t){var n,r,o;if(Array.isArray(t)){for(r=Array(n=t.length);n--;)r[n]=(o=t[n])&&"object"==typeof o?e(o):o;return r}if("[object Object]"===Object.prototype.toString.call(t)){for(n in r={},t)"__proto__"===n?Object.defineProperty(r,n,{value:e(t[n]),configurable:!0,enumerable:!0,writable:!0}):r[n]=(o=t[n])&&"object"==typeof o?e(o):o;return r}return t}r.d(n,{Q:function(){return e}})}},r={};function e(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return n[t].call(i.exports,i,i.exports,e),i.exports}e.m=n,t=[],e.O=function(n,r,o,i){if(!r){var u=1/0;for(l=0;l<t.length;l++){r=t[l][0],o=t[l][1],i=t[l][2];for(var f=!0,c=0;c<r.length;c++)(!1&i||u>=i)&&Object.keys(e.O).every((function(t){return e.O[t](r[c])}))?r.splice(c--,1):(f=!1,i<u&&(u=i));if(f){t.splice(l--,1);var a=o();void 0!==a&&(n=a)}}return n}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[r,o,i]},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t={39673:0};e.O.j=function(n){return 0===t[n]};var n=function(n,r){var o,i,u=r[0],f=r[1],c=r[2],a=0;if(u.some((function(n){return 0!==t[n]}))){for(o in f)e.o(f,o)&&(e.m[o]=f[o]);if(c)var l=c(e)}for(n&&n(r);a<u.length;a++)i=u[a],e.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return e.O(l)},r=self.pbjsChunk=self.pbjsChunk||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}();var o=e.O(void 0,[60802,51085],(function(){return e(27718)}));o=e.O(o)}();
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[2630],{88910:function(e,n,t){t.d(n,{Ay:function(){return v}});var a=t(80296),r=t(82284),i=t(78969),l=t(68044),o=t(91069),s=t(75023),c={ajax:l.RD},u="endpoint",f="bundle",p=Object.values(i.qY).filter((function(e){return e!==i.qY.AUCTION_DEBUG})),d=100;function v(e){var n,t,l,v,g,y=e.url,b=e.analyticsType,h=e.global,A=e.handler,T=[],j=!1,E=(v=!1,g=function(){if(!v){v=!0;try{for(var e=0,n=0;T.length>0;){e++;var a=T.length;if(T.shift()(),T.length>=a?n++:n=0,n>=10)return(0,o.logError)("Detected probable infinite loop, discarding events",T),void(T.length=0)}(0,o.logMessage)("".concat(t," analytics: processed ").concat(e," events"))}finally{v=!1}}},function(){null!=l&&(clearTimeout(l),l=null),0===d?g():l=setTimeout(g,d)});return Object.defineProperties({track:function(e){var n=e.eventType,t=e.args;this.getAdapterType()===f&&window[h](A,n,t);this.getAdapterType()===u&&m.apply(void 0,arguments)},enqueue:O,enableAnalytics:k,disableAnalytics:function(){Object.entries(n||{}).forEach((function(e){var n=(0,a.A)(e,2),t=n[0],r=n[1];s.off(t,r)})),this.enableAnalytics=this._oldEnable?this._oldEnable:k,j=!1},getAdapterType:function(){return b},getGlobal:function(){return h},getHandler:function(){return A},getUrl:function(){return y}},{enabled:{get:function(){return j}}});function m(e){var n=e.eventType,t=e.args,a=e.callback;c.ajax(y,a,JSON.stringify({eventType:n,args:t}))}function O(e){var n=this,t=e.eventType,a=e.args;T.push((function(){n.track({eventType:t,args:a})})),E()}function k(e){var a=this;t=null==e?void 0:e.provider;var l,c,u,f,d,v=this;if("object"!==(0,r.A)(e)||"object"!==(0,r.A)(e.options)||(void 0===e.options.sampling||Math.random()<parseFloat(e.options.sampling))){var g=(c=(l=e||{}).includeEvents,u=void 0===c?p:c,f=l.excludeEvents,d=void 0===f?[]:f,new Set(Object.values(i.qY).filter((function(e){return u.includes(e)})).filter((function(e){return!d.includes(e)}))));s.getEvents().forEach((function(e){if(e&&g.has(e.eventType)){var n=e.eventType,t=e.args;O.call(v,{eventType:n,args:t})}})),n=Object.fromEntries(Array.from(g).map((function(e){var n=function(n){return a.enqueue({eventType:e,args:n})};return s.on(e,n),[e,n]})))}else(0,o.logMessage)('Analytics adapter for "'.concat(h,'" disabled by sampling'));this._oldEnable=this.enableAnalytics,this.enableAnalytics=function(){return(0,o.logMessage)('Analytics adapter for "'.concat(h,'" already enabled, unnecessary call to `enableAnalytics`.'))},j=!0}}}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[60802],{95789:function(n,e,t){t.d(e,{A4:function(){return d},J7:function(){return l},Pg:function(){return f}});var r=t(41580),i=t(91069),o=t(15901),a=t(7873),u=t(45569),c=(0,a.m)(),s="outstream";function d(n){var e=this,t=n.url,a=n.config,d=n.id,l=n.callback,f=n.loaded,g=n.adUnitCode,p=n.renderNow;this.url=t,this.config=a,this.handlers={},this.id=d,this.renderNow=p,this.loaded=f,this.cmd=[],this.push=function(n){"function"==typeof n?e.loaded?n.call():e.cmd.push(n):(0,i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=l||function(){e.loaded=!0,e.process()},this.render=function(){var n=this,e=arguments,a=function(){n._render?n._render.apply(n,e):(0,i.logWarn)("No render function was provided, please use .setRender on the renderer")};!function(n){var e,t=c.adUnits,r=(0,o.I6)(t,(function(e){return e.code===n}));if(!r)return!1;var i=null==r?void 0:r.renderer,a=!!(i&&i.url&&i.render),u=null==r||null===(e=r.mediaTypes)||void 0===e||null===(e=e.video)||void 0===e?void 0:e.renderer,s=!!(u&&u.url&&u.render);return!!(a&&!0!==i.backupOnly||s&&!0!==u.backupOnly)}(g)?p?a():(this.cmd.unshift(a),(0,r.R)(t,u.tp,s,this.callback,this.documentContext)):((0,i.logWarn)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(g)),a())}.bind(this)}function l(n){return!(!n||!n.url&&!n.renderNow)}function f(n,e,t){var r=null;n.config&&n.config.documentResolver&&(r=n.config.documentResolver(e,document,t)),r||(r=document),n.documentContext=r,n.render(e,n.documentContext)}d.install=function(n){return new d({url:n.url,config:n.config,id:n.id,callback:n.callback,loaded:n.loaded,adUnitCode:n.adUnitCode,renderNow:n.renderNow})},d.prototype.getConfig=function(){return this.config},d.prototype.setRender=function(n){this._render=n},d.prototype.setEventHandlers=function(n){this.handlers=n},d.prototype.handleVideoEvent=function(n){var e=n.id,t=n.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.logMessage)("Prebid Renderer event for id ".concat(e," type ").concat(t))},d.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(n){(0,i.logError)("Error processing Renderer command: ",n)}}},76811:function(n,e,t){t.d(e,{DL:function(){return d},Ml:function(){return i},Ue:function(){return r},VJ:function(){return f},hE:function(){return l},hq:function(){return s},mo:function(){return c},pY:function(){return g},qX:function(){return o},uc:function(){return u},yl:function(){return a}});var r="accessDevice",i="syncUser",o="enrichUfpd",a="enrichEids",u="fetchBids",c="reportAnalytics",s="transmitEids",d="transmitUfpd",l="transmitPreciseGeo",f="transmitTid",g="loadExternalScript"},83441:function(n,e,t){t.d(e,{s:function(){return i}});var r=t(11445),i=(0,t(2604).ZI)((function(n){return r.Ay.resolveAlias(n)}))},45569:function(n,e,t){t.d(e,{Tn:function(){return u},fW:function(){return o},tW:function(){return i},tp:function(){return r},zu:function(){return a}});var r="prebid",i="bidder",o="userId",a="rtd",u="analytics"},2604:function(n,e,t){t.d(e,{Dk:function(){return u},Ii:function(){return a},TQ:function(){return p},U3:function(){return m},XG:function(){return l},ZI:function(){return v},Zw:function(){return d},bt:function(){return f},e3:function(){return g},iK:function(){return c},q7:function(){return s}});var r=t(64467),i=t(45569),o=t(16833),a="component",u=a+"Type",c=a+"Name",s="adapterCode",d="storageType",l="configName",f="syncType",g="syncUrl",p="_config";function v(n){return function(e,t,o){var d=(0,r.A)((0,r.A)((0,r.A)({},u,e),c,t),a,"".concat(e,".").concat(t));return e===i.tW&&(d[s]=n(t)),m(Object.assign(d,o))}}var m=(0,o.A_)("sync",(function(n){return n}))},96953:function(n,e,t){t.d(e,{Vx:function(){return f},l7:function(){return l},p4:function(){return A},$V:function(){return y},nl:function(){return h},ZP:function(){return E},$p:function(){return w},uD:function(){return b}});var r=t(82284),i=t(80296),o=t(70433),a=t(43272),u=t(95139),c=t(76811);function s(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return d(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function d(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}var l=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((function(n){return"user.".concat(n)})).concat("device.ext.cdep"),f=["user.eids","user.ext.eids"],g=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"],p=["device.ip"],v=["device.ipv6"];function m(n){return Object.assign({get:function(){},run:function(n,e,t,r,i){var o=t&&t[r];if(y(o)&&i()){var a=this.get(o);void 0===a?delete t[r]:t[r]=a}}},n)}function h(n){return n.forEach((function(n){n.paths=n.paths.map((function(n){var e=n.split("."),t=e.pop();return[e.length>0?e.join("."):null,t]}))})),function(e,t){for(var r=[],a=arguments.length,u=new Array(a>2?a-2:0),c=2;c<a;c++)u[c-2]=arguments[c];var d=b.apply(void 0,[e].concat(u));return n.forEach((function(n){if(!1!==e[n.name]){var a,u=s(n.paths);try{for(u.s();!(a=u.n()).done;){var c=(0,i.A)(a.value,2),l=c[0],f=c[1],g=null==l?t:(0,o.A)(t,l);if(r.push(n.run(t,l,g,f,d.bind(null,n))),!1===e[n.name])return}}catch(n){u.e(n)}finally{u.f()}}})),r.filter((function(n){return null!=n}))}}function b(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return function(e){return n.hasOwnProperty(e.name)||(n[e.name]=!!e.applies.apply(e,t)),n[e.name]}}function y(n){return null!=n&&("object"!==(0,r.A)(n)||Object.keys(n).length>0)}function A(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.io;return function(t){return!e(n,t)}}function E(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.io;return[{name:c.DL,paths:l,applies:A(c.DL,n)},{name:c.hq,paths:f,applies:A(c.hq,n)},{name:c.hE,paths:g,applies:A(c.hE,n),get:function(n){return Math.round(100*(n+Number.EPSILON))/100}},{name:c.hE,paths:p,applies:A(c.hE,n),get:function(n){return function(n){if(!n)return null;var e=n.split(".").map(Number);if(4!=e.length)return null;for(var t=[],r=0;r<4;r++){var i=Math.max(0,Math.min(8,24-8*r));t.push(255<<8-i&255)}return e.map((function(n,e){return n&t[e]})).join(".")}(n)}},{name:c.hE,paths:v,applies:A(c.hE,n),get:function(n){return function(n){if(!n)return null;var e=n.split(":").map((function(n){return parseInt(n,16)}));for(e=e.map((function(n){return isNaN(n)?0:n}));e.length<8;)e.push(0);if(8!=e.length)return null;for(var t=[],r=0;r<8;r++){var i=Math.max(0,Math.min(16,64-16*r));t.push(65535<<16-i&65535)}return e.map((function(n,e){return n&t[e]})).map((function(n){return n.toString(16)})).join(":")}(n)}},{name:c.VJ,paths:["source.tid"],applies:A(c.VJ,n)}].map(m)}var w=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.io,e=h(E(n)),t=h(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.io;return[{name:c.hq,paths:["userId","userIdAsEids"],applies:A(c.hq,n)},{name:c.VJ,paths:["ortb2Imp.ext.tid"],applies:A(c.VJ,n)}].map(m)}(n));return function(n){var r={};return{ortb2:function(t){return e(r,t,n),t},bidRequest:function(e){return t(r,e,n),e}}}}();(0,u.qB)(c.VJ,"enableTIDs config",(function(){if(!a.$W.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},95139:function(n,e,t){t.d(e,{io:function(){return l},qB:function(){return d}});var r=t(80296),i=t(91069),o=t(2604);function a(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return u(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){c=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function u(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}var c=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.prefixLog)("Activity control:"),e={};function t(n){return e[n]=e[n]||[]}function u(e,t,r,i){var a;try{a=r(i)}catch(r){n.logError("Exception in rule ".concat(t," for '").concat(e,"'"),r),a={allow:!1,reason:r}}return a&&Object.assign({activity:e,name:t,component:i[o.Ii]},a)}var c={};function s(e){var t=e.activity,r=e.name,i=e.allow,o=e.reason,a=e.component,u="".concat(r," ").concat(i?"allowed":"denied"," '").concat(t,"' for '").concat(a,"'").concat(o?":":""),s=c.hasOwnProperty(u);if(s&&clearTimeout(c[u]),c[u]=setTimeout((function(){return delete c[u]}),1e3),!s){var d=[u];o&&d.push(o),(i?n.logInfo:n.logWarn).apply(n,d)}}return[function(n,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=t(n),u=a.findIndex((function(n){var e=(0,r.A)(n,1)[0];return o<e})),c=[o,e,i];return a.splice(u<0?a.length:u,0,c),function(){var n=a.indexOf(c);n>=0&&a.splice(n,1)}},function(n,e){var i,o,c,d=a(t(n));try{for(d.s();!(c=d.n()).done;){var l=(0,r.A)(c.value,3),f=l[0],g=l[1],p=l[2];if(i!==f&&o)break;i=f;var v=u(n,g,p,e);if(v){if(!v.allow)return s(v),!1;o=v}}}catch(n){d.e(n)}finally{d.f()}return o&&s(o),!0}]}(),s=(0,r.A)(c,2),d=s[0],l=s[1]},29075:function(n,e,t){t.d(e,{$A:function(){return T},BS:function(){return M},Hh:function(){return N},Pk:function(){return q},Uc:function(){return B},XO:function(){return G},_0:function(){return D},bw:function(){return U},n6:function(){return O},qn:function(){return _},vB:function(){return W},vW:function(){return k},vd:function(){return j}});var r=t(64467),i=t(91069),o=t(75023),a=t(78969),u=t(43272),c=t(95789),s=t(71371),d=t(67314),l=t(46031),f=t(16833),g=t(12449),p=t(25555),v=t(11445),m=t(16894),h=t(97779),b=a.qY.AD_RENDER_FAILED,y=a.qY.AD_RENDER_SUCCEEDED,A=a.qY.STALE_RENDER,E=a.qY.BID_WON,w=a.qY.EXPIRED_RENDER,I=a.as.EXCEPTION,T=(0,f.A_)("sync",(function(n){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.k.resolve()).then((function(e){return null!=e?e:d.n.findBidByAdId(n)})).catch((function(){}))})),O=(0,f.A_)("sync",(function(n){o.emit(E,n),d.n.addWinningBid(n)}));function C(n){var e=n.reason,t=n.message,r=n.bid,a=n.id,u={reason:e,message:t};r&&(u.bid=r,u.adId=r.adId),a&&(u.adId=a),(0,i.logError)("Error rendering ad (id: ".concat(a,"): ").concat(t)),o.emit(b,u)}function S(n){var e=n.doc,t=n.bid,r=n.id,i={doc:e};t&&(i.bid=t),r&&(i.adId=r),v.Ay.callAdRenderSucceededBidder(t.adapterCode||t.bidder,t),o.emit(y,i)}function B(n,e){switch(n.event){case a.qY.AD_RENDER_FAILED:C({bid:e,id:e.adId,reason:n.info.reason,message:n.info.message});break;case a.qY.AD_RENDER_SUCCEEDED:S({doc:null,bid:e,id:e.adId});break;default:(0,i.logError)("Received event request for unsupported event: '".concat(n.event,"' (adId: '").concat(e.adId,"')"))}}function k(n,e,t){var r=t.resizeFn,i=t.fireTrackers,o=void 0===i?g.vO:i;if("resizeNativeHeight"===n.action)r(n.width,n.height);else o(n,e)}var R=(0,r.A)({},a.nl.EVENT,B);R[a.nl.NATIVE]=k;var j=(0,f.A_)("sync",(function(n,e){var t=n.ad,r=n.adUrl,o=n.cpm,a=n.originalCpm,u=n.width,c=n.height,s={AUCTION_PRICE:a||o,CLICKTHROUGH:(null==e?void 0:e.clickUrl)||""};return{ad:(0,i.replaceMacros)(t,s),adUrl:(0,i.replaceMacros)(r,s),width:u,height:c}})),D=(0,f.A_)("sync",(function(n){var e=n.renderFn,t=n.resizeFn,r=n.bidResponse,o=n.options,u=n.doc,c=n.isMainDocument,d=void 0===c?u===document&&!(0,i.inIframe)():c,l=r.mediaType===s.G_;if(d||l)C({reason:a.as.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:l?"Cannot render video ad without a renderer":"renderAd was prevented from writing to the main document.",bid:r,id:r.adId});else{var f=j(r,o);e(Object.assign({adId:r.adId},f));var g=f.width,p=f.height;null!=(null!=g?g:p)&&t(g,p)}}));function U(n){var e=n.renderFn,t=n.resizeFn,r=n.adId,c=n.options,s=n.bidResponse,d=n.doc;N(s,(function(){if(null!=s){var n,l;if(s.status===a.tl.RENDERED)if((0,i.logWarn)("Ad id ".concat(r," has been rendered before")),o.emit(A,s),null!==(n=u.$W.getConfig("auctionOptions"))&&void 0!==n&&n.suppressStaleRender)return;if(!h.uW.isBidNotExpired(s))if((0,i.logWarn)("Ad id ".concat(r," has been expired")),o.emit(w,s),null!==(l=u.$W.getConfig("auctionOptions"))&&void 0!==l&&l.suppressExpiredRender)return;try{D({renderFn:e,resizeFn:t,bidResponse:s,options:c,doc:d})}catch(n){C({reason:a.as.EXCEPTION,message:n.message,id:r,bid:s})}}else C({reason:a.as.CANNOT_FIND_AD,message:"Cannot find ad '".concat(r,"'"),id:r})}))}function _(n){var e=(0,m.BO)(n.metrics);e.checkpoint("bidRender"),e.timeBetween("bidWon","bidRender","render.deferred"),e.timeBetween("auctionEnd","bidRender","render.pending"),e.timeBetween("requestBids","bidRender","render.e2e"),n.status=a.tl.RENDERED}D.before((function(n,e){var t=e.bidResponse,r=e.doc;(0,c.J7)(t.renderer)?((0,c.Pg)(t.renderer,t,r),S({doc:r,bid:t,id:t.adId}),n.bail()):n(e)}),100);var P=new WeakMap,x=new WeakSet;function N(n,e){null!=n?(P.set(n,e),n.deferRendering||W(n),q(n)):e()}function q(n){x.has(n)||(x.add(n),O(n))}function W(n){var e=P.get(n);e&&(e(),_(n),P.delete(n))}function M(n,e,t){var r;function o(n,t){C(Object.assign({id:e,bid:r},{reason:n,message:t}))}function u(e,t){n.defaultView&&n.defaultView.frameElement&&(e&&(n.defaultView.frameElement.width=e),t&&(n.defaultView.frameElement.height=t))}var c,s=(c={resizeFn:u},function(n,e,t){R.hasOwnProperty(n)&&R[n](e,t,c)});function d(e){e.ad?(n.write(e.ad),n.close(),S({doc:n,bid:r,id:r.adId})):(0,l.H)(r).then((function(t){return t(e,{sendMessage:function(n,e){return s(n,e,r)},mkFrame:i.createIframe},n.defaultView)})).then((function(){return S({doc:n,bid:r,id:r.adId})}),(function(n){o((null==n?void 0:n.reason)||a.as.EXCEPTION,null==n?void 0:n.message),(null==n?void 0:n.stack)&&(0,i.logError)(n)}));var t=document.createComment("Creative ".concat(r.creativeId," served by ").concat(r.bidder," Prebid.js Header Bidding"));(0,i.insertElement)(t,n,"html")}try{e&&n?T(e).then((function(i){r=i,U({renderFn:d,resizeFn:u,adId:e,options:{clickUrl:null==t?void 0:t.clickThrough},bidResponse:i,doc:n})})):o(a.as.MISSING_DOC_OR_ADID,"missing ".concat(e?"doc":"adId"))}catch(n){o(I,n.message)}}function G(){if(!window.frames[a.IY])if(document.body){var n=(0,i.createInvisibleIframe)();n.name=a.IY,document.body.appendChild(n)}else window.requestAnimationFrame(G)}},10201:function(n,e,t){t.d(e,{U:function(){return a}});var r=t(7873),i=t(91069),o=(0,r.m)();function a(n,e){o.adServers=o.adServers||{},o.adServers[n]=o.adServers[n]||{},Object.keys(e).forEach((function(t){o.adServers[n][t]?(0,i.logWarn)("Attempting to add an already registered function property ".concat(t," for AdServer ").concat(n,".")):o.adServers[n][t]=e[t]}))}},69759:function(n,e,t){function r(n){var e=n;return{callBids:function(){},setBidderCode:function(n){e=n},getBidderCode:function(){return e}}}t.d(e,{A:function(){return r}})},11445:function(n,e,t){t.d(e,{S1:function(){return _},Ay:function(){return Q},tS:function(){return L},pX:function(){return H},Mf:function(){return K},K5:function(){return F},Gs:function(){return z}});var r=t(45458),i=t(80296),o=t(64467),a=t(91069),u=t(12449),c=t(57377),s=t(68044),d=t(43272),l=t(16833),f=t(15901),g={};function p(n,e,t){var r=function(n,e){var t=g[n]=g[n]||{bidders:{}};return e?t.bidders[e]=t.bidders[e]||{}:t}(n,t);return r[e]=(r[e]||0)+1,r[e]}function v(n){return p(n,"auctionsCounter")}function m(n){var e;return(null===(e=g)||void 0===e||null===(e=e[n])||void 0===e?void 0:e.requestsCounter)||0}function h(n,e){var t;return(null===(t=g)||void 0===t||null===(t=t[n])||void 0===t||null===(t=t.bidders)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.requestsCounter)||0}function b(n,e){var t;return(null===(t=g)||void 0===t||null===(t=t[n])||void 0===t||null===(t=t.bidders)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.winsCounter)||0}function y(n){var e;return(null===(e=g)||void 0===e||null===(e=e[n])||void 0===e?void 0:e.auctionsCounter)||0}var A=t(27934),E=t(16916),w=t(75023),I=t(78969),T=t(16894),O=t(67314),C=t(45569),S=t(95139),B=t(76811),k=t(2604),R=t(96953);function j(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function D(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?j(Object(t),!0).forEach((function(e){(0,o.A)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var U="pbsBidAdapter",_={CLIENT:"client",SERVER:"server"},P={isAllowed:S.io,redact:R.$p},x={},N=x.bidderRegistry={},q=x.aliasRegistry={},W=[];d.$W.getConfig("s2sConfig",(function(n){n&&n.s2sConfig&&(W=(0,a.isArray)(n.s2sConfig)?n.s2sConfig:[n.s2sConfig])}));var M={},G=(0,k.ZI)((function(n){return x.resolveAlias(n)}));function F(n){return G(C.tp,U,(0,o.A)({},k.XG,n.configName))}var $=(0,l.A_)("sync",(function(n){var e=n.bidderCode,t=n.auctionId,r=n.bidderRequestId,i=n.adUnits,o=n.src,u=n.metrics;return i.reduce((function(n,i){var c=i.bids.filter((function(n){return n.bidder===e}));return null==e&&0===c.length&&null!=i.s2sBid&&c.push({bidder:null}),n.push(c.reduce((function(n,c){var s,d,l=null==(c=Object.assign({},c,{ortb2Imp:(0,a.mergeDeep)({},i.ortb2Imp,c.ortb2Imp)},(0,a.getDefinedParams)(i,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?i.mediaTypes:c.mediaTypes;return(0,a.isValidMediaTypes)(l)?c=Object.assign({},c,{mediaTypes:l}):(0,a.logError)("mediaTypes is not correctly configured for adunit ".concat(i.code)),"client"===o&&function(n,e){p(n,"requestsCounter",e)}(i.code,e),n.push(Object.assign({},c,{adUnitCode:i.code,transactionId:i.transactionId,adUnitId:i.adUnitId,sizes:(null==l||null===(s=l.banner)||void 0===s?void 0:s.sizes)||(null==l||null===(d=l.video)||void 0===d?void 0:d.playerSize)||[],bidId:c.bid_id||(0,a.getUniqueIdentifierStr)(),bidderRequestId:r,auctionId:t,src:o,metrics:u,auctionsCount:y(i.code),bidRequestsCount:m(i.code),bidderRequestsCount:h(i.code,c.bidder),bidderWinsCount:b(i.code,c.bidder),deferBilling:!!i.deferBilling})),n}),[])),n}),[]).reduce(a.flatten,[]).filter((function(n){return""!==n}))}),"getBids");var L=(0,l.A_)("sync",(function(n,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).getS2SBidders;if(null==e)return n;var r=(void 0===t?H:t)(e);return n.filter((function(n){return r.has(n.bidder)}))}),"filterBidsForAdUnit");var z=(0,l.A_)("sync",(function(n,e){return n}),"setupAdUnitMediaTypes");function H(n){(0,a.isArray)(n)||(n=[n]);var e=new Set([null]);return n.filter((function(n){return n&&n.enabled})).flatMap((function(n){return n.bidders})).forEach((function(n){return e.add(n)})),e}var V,K=(0,l.A_)("sync",(function(n,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).getS2SBidders,r=(void 0===t?H:t)(e);return(0,a.getBidderCodes)(n).reduce((function(n,e){return n[r.has(e)?_.SERVER:_.CLIENT].push(e),n}),(0,o.A)((0,o.A)({},_.CLIENT,[]),_.SERVER,[]))}),"partitionBidders");function Y(n,e){var t=N[n],r=(null==t?void 0:t.getSpec)&&t.getSpec();if(r&&r[e]&&"function"==typeof r[e])return[r,r[e]]}function J(n,e,t,r){try{(0,a.logInfo)("Invoking ".concat(n,".").concat(e));for(var i=arguments.length,o=new Array(i>4?i-4:0),u=4;u<i;u++)o[u-4]=arguments[u];d.$W.runWithBidder(n,r.bind.apply(r,[t].concat(o)))}catch(t){(0,a.logWarn)("Error calling ".concat(e," of ").concat(n))}}function X(n,e,t){if((null==t?void 0:t.source)!==I.RW.SRC){var i=Y(n,e);null!=i&&J.apply(void 0,[n,e].concat((0,r.A)(i),[t]))}}x.makeBidRequests=(0,l.A_)("sync",(function(n,e,t,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6?arguments[6]:void 0;c=(0,T.BO)(c),w.emit(I.qY.BEFORE_REQUEST_BIDS,n),(0,u.nk)(n),n.map((function(n){return n.code})).filter(a.uniques).forEach(v),n.forEach((function(n){(0,a.isPlainObject)(n.mediaTypes)||(n.mediaTypes={}),n.bids=n.bids.filter((function(n){return!n.bidder||P.isAllowed(B.uc,G(C.tW,n.bidder))})),p(n.code,"requestsCounter")})),n=z(n,i);var s=K(n,W),l=s[_.CLIENT],g=s[_.SERVER];d.$W.getConfig("bidderSequence")===d.Ov&&(l=(0,a.shuffle)(l));var m=(0,A.EN)(),h=[],b=o.global||{},y=o.bidder||{};function O(n,e){var r=P.redact(null!=e?e:G(C.tW,n.bidderCode)),i=Object.freeze(r.ortb2((0,a.mergeDeep)({source:{tid:t}},b,y[n.bidderCode])));return n.ortb2=i,n.bids=n.bids.map((function(n){return n.ortb2=i,r.bidRequest(n)})),n}W.forEach((function(r){var i=F(r);if(r&&r.enabled&&P.isAllowed(B.uc,i)){var o=function(n,e){var t=(0,a.deepClone)(n),r=!1;return t.forEach((function(n){var t=n.bids.filter((function(n){var t;return n.module===U&&(null===(t=n.params)||void 0===t?void 0:t.configName)===e.configName}));1===t.length?(n.s2sBid=t[0],r=!0,n.ortb2Imp=(0,a.mergeDeep)({},n.s2sBid.ortb2Imp,n.ortb2Imp)):t.length>1&&(0,a.logWarn)('Multiple "module" bids for the same s2s configuration; all will be ignored',t),n.bids=L(n.bids,e).map((function(n){return n.bid_id=(0,a.getUniqueIdentifierStr)(),n}))})),{adUnits:t=t.filter((function(n){return 0!==n.bids.length||null!=n.s2sBid})),hasModuleBids:r}}(n,r),u=o.adUnits,s=o.hasModuleBids,d=(0,a.generateUUID)();(0===g.length&&s?[null]:g).forEach((function(n){var o=(0,a.getUniqueIdentifierStr)(),s=c.fork(),l=O({bidderCode:n,auctionId:t,bidderRequestId:o,uniquePbsTid:d,bids:$({bidderCode:n,auctionId:t,bidderRequestId:o,adUnits:(0,a.deepClone)(u),src:I.RW.SRC,metrics:s}),auctionStart:e,timeout:r.timeout,src:I.RW.SRC,refererInfo:m,metrics:s},i);0!==l.bids.length&&h.push(l)})),u.forEach((function(n){var e=n.bids.filter((function(n){return(0,f.I6)(h,(function(e){return(0,f.I6)(e.bids,(function(e){return e.bidId===n.bid_id}))}))}));n.bids=e})),h.forEach((function(n){void 0===n.adUnitsS2SCopy&&(n.adUnitsS2SCopy=u.filter((function(n){return n.bids.length>0||null!=n.s2sBid})))}))}}));var S=function(n){var e=(0,a.deepClone)(n);return e.forEach((function(n){n.bids=L(n.bids,null)})),e.filter((function(n){return 0!==n.bids.length}))}(n);return l.forEach((function(n){var o=(0,a.getUniqueIdentifierStr)(),u=c.fork(),s=O({bidderCode:n,auctionId:t,bidderRequestId:o,bids:$({bidderCode:n,auctionId:t,bidderRequestId:o,adUnits:(0,a.deepClone)(S),labels:i,src:"client",metrics:u}),auctionStart:e,timeout:r,refererInfo:m,metrics:u}),d=N[n];d||(0,a.logError)("Trying to make a request for bidder that does not exist: ".concat(n)),d&&s.bids&&0!==s.bids.length&&h.push(s)})),h.forEach((function(n){E.mW.getConsentData()&&(n.gdprConsent=E.mW.getConsentData()),E.t6.getConsentData()&&(n.uspConsent=E.t6.getConsentData()),E.ad.getConsentData()&&(n.gppConsent=E.ad.getConsentData())})),h}),"makeBidRequests"),x.callBids=function(n,e,t,r,o,u,c){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(e.length){var f=e.reduce((function(n,e){return n[Number(void 0!==e.src&&e.src===I.RW.SRC)].push(e),n}),[[],[]]),g=(0,i.A)(f,2),p=g[0],v=g[1],m=[];v.forEach((function(n){for(var e=-1,t=0;t<m.length;++t)if(n.uniquePbsTid===m[t].uniquePbsTid){e=t;break}e<=-1&&m.push(n)}));var h=0;W.forEach((function(n){if(n&&m[h]&&H(n).has(m[h].bidderCode)){var e=(0,s.g4)(u,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),i=n.bidders,d=N[n.adapter],f=m[h].uniquePbsTid,g=m[h].adUnitsS2SCopy,p=v.filter((function(n){return n.uniquePbsTid===f}));if(d){var b={ad_units:g,s2sConfig:n,ortb2Fragments:l,requestBidsTimeout:u};if(b.ad_units.length){var y=p.map((function(n){return n.start=(0,a.timestamp)(),function(e){e||c(n.bidderRequestId),r.apply(n,arguments)}})),A=(0,a.getBidderCodes)(b.ad_units).filter((function(n){return i.includes(n)}));(0,a.logMessage)("CALLING S2S HEADER BIDDERS ==== ".concat(A.length>0?A.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),p.forEach((function(n){w.emit(I.qY.BID_REQUESTED,D(D({},n),{},{tid:n.auctionId}))})),d.callBids(b,v,t,(function(n){return y.forEach((function(e){return e(n)}))}),e)}}else(0,a.logError)("missing "+n.adapter);h++}})),p.forEach((function(n){n.start=(0,a.timestamp)();var e=N[n.bidderCode];d.$W.runWithBidder(n.bidderCode,(function(){(0,a.logMessage)("CALLING BIDDER"),w.emit(I.qY.BID_REQUESTED,n)}));var i=(0,s.g4)(u,o?{request:o.request.bind(null,n.bidderCode),done:o.done}:void 0),l=r.bind(n);try{d.$W.runWithBidder(n.bidderCode,e.callBids.bind(e,n,t,l,i,(function(){return c(n.bidderRequestId)}),d.$W.callbackWithBidder(n.bidderCode)))}catch(e){(0,a.logError)("".concat(n.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:e,bidRequest:n}),l()}}))}else(0,a.logWarn)("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},x.videoAdapters=[],x.registerBidAdapter=function(n,e){var t,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===r?[]:r;n&&e?"function"==typeof n.callBids?(N[e]=n,E.o2.register(C.tW,e,null===(t=n.getSpec)||void 0===t?void 0:t.call(n).gvlid),(0,f.mK)(i,"video")&&x.videoAdapters.push(e),(0,f.mK)(i,"native")&&u.mT.push(e)):(0,a.logError)("Bidder adaptor error for bidder code: "+e+"bidder must implement a callBids() function"):(0,a.logError)("bidAdapter or bidderCode not specified")},x.aliasBidAdapter=function(n,e,t){if(void 0===N[e]){var r=N[n];if(void 0===r){var i=[];W.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,f.mK)(r,e)?q[e]=n:i.push(n)}})),i.forEach((function(n){(0,a.logError)('bidderCode "'+n+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,s=function(n){var e=[];return(0,f.mK)(x.videoAdapters,n)&&e.push("video"),(0,f.mK)(u.mT,n)&&e.push("native"),e}(n);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(e);else{var d=(t||{}).useBaseGvlid,l=void 0!==d&&d,g=r.getSpec(),p=l?g.gvlid:null==t?void 0:t.gvlid;null==p&&null!=g.gvlid&&(0,a.logWarn)("Alias '".concat(e,"' will NOT re-use the GVL ID of the original adapter ('").concat(g.code,"', gvlid: ").concat(g.gvlid,"). Functionality that requires TCF consent may not work as expected."));var v=t&&t.skipPbsAliasing;o=(0,c.xb)(Object.assign({},g,{code:e,gvlid:p,skipPbsAliasing:v})),q[e]=n}x.registerBidAdapter(o,e,{supportedMediaTypes:s})}catch(e){(0,a.logError)(n+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,a.logMessage)('alias name "'+e+'" has been already specified.')},x.resolveAlias=function(n){for(var e,t=n;q[t]&&(!e||!e.has(t));)t=q[t],(e=e||new Set).add(t);return t},x.registerAnalyticsAdapter=function(n){var e=n.adapter,t=n.code,r=n.gvlid;e&&t?"function"==typeof e.enableAnalytics?(e.code=t,M[t]={adapter:e,gvlid:r},E.o2.register(C.Tn,t,r)):(0,a.logError)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n analytics adapter must implement an enableAnalytics() function')):(0,a.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},x.enableAnalytics=function(n){(0,a.isArray)(n)||(n=[n]),n.forEach((function(n){var e=M[n.provider];e&&e.adapter?P.isAllowed(B.mo,G(C.Tn,n.provider,(0,o.A)({},k.TQ,n)))&&e.adapter.enableAnalytics(n):(0,a.logError)("Prebid Error: no analytics adapter found in registry for '".concat(n.provider,"'."))}))},x.getBidAdapter=function(n){return N[n]},x.getAnalyticsAdapter=function(n){return M[n]},x.callTimedOutBidders=function(n,e,t){e=e.map((function(e){return e.params=(0,a.getUserConfiguredParams)(n,e.adUnitCode,e.bidder),e.timeout=t,e})),e=(0,a.groupBy)(e,"bidder"),Object.keys(e).forEach((function(n){X(n,"onTimeout",e[n])}))},x.callBidWonBidder=function(n,e,t){var r,i;e.params=(0,a.getUserConfiguredParams)(t,e.adUnitCode,e.bidder),r=e.adUnitCode,i=e.bidder,p(r,"winsCounter",i),X(n,"onBidWon",e)},x.triggerBilling=(V=new WeakSet,function(n){V.has(n)||(V.add(n),n.source===I.RW.SRC&&n.burl&&a.internal.triggerPixel(n.burl),X(n.bidder,"onBidBillable",n))}),x.callSetTargetingBidder=function(n,e){X(n,"onSetTargeting",e)},x.callBidViewableBidder=function(n,e){X(n,"onBidViewable",e)},x.callBidderError=function(n,e,t){X(n,"onBidderError",{error:e,bidderRequest:t})},x.callAdRenderSucceededBidder=function(n,e){X(n,"onAdRenderSucceeded",e)},x.callDataDeletionRequest=(0,l.A_)("sync",(function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var o="onDataDeletionRequest";Object.keys(N).filter((function(n){return!q.hasOwnProperty(n)})).forEach((function(n){var t=Y(n,o);if(null!=t){var i=O.n.getBidsRequested().filter((function(e){return function(n){for(var e=new Set;q.hasOwnProperty(n)&&!e.has(n);)e.add(n),n=q[n];return n}(e.bidderCode)===n}));J.apply(void 0,[n,o].concat((0,r.A)(t),[i],e))}})),Object.entries(M).forEach((function(n){var t,r=(0,i.A)(n,2),u=r[0],c=r[1],s=null==c||null===(t=c.adapter)||void 0===t?void 0:t[o];if("function"==typeof s)try{s.apply(c.adapter,e)}catch(n){(0,a.logError)("error calling ".concat(o," of ").concat(u),n)}}))}));var Q=x},57377:function(n,e,t){t.d(e,{JN:function(){return D},JS:function(){return _},a$:function(){return C},eI:function(){return S},fn:function(){return U},xb:function(){return B}});var r=t(82284),i=t(80296),o=t(69759),a=t(11445),u=t(43272),c=t(93597),s=t(38230),d=t(12449),l=t(63895),f=t(78969),g=t(75023),p=t(15901),v=t(91069),m=t(16833),h=t(67314),b=t(12693),y=t(16894),A=t(95139),E=t(83441),w=t(45569),I=t(76811),T=["cpm","ttl","creativeId","netRevenue","currency"],O=["auctionId","transactionId"];function C(n){var e=Array.isArray(n.supportedMediaTypes)?{supportedMediaTypes:n.supportedMediaTypes}:void 0;function t(n){var t=B(n);a.Ay.registerBidAdapter(t,n.code,e)}t(n),Array.isArray(n.aliases)&&n.aliases.forEach((function(e){var r,i,o=e;(0,v.isPlainObject)(e)&&(o=e.code,r=e.gvlid,i=e.skipPbsAliasing),a.Ay.aliasRegistry[o]=n.code,t(Object.assign({},n,{code:o,gvlid:r,skipPbsAliasing:i}))}))}var S=(0,v.memoize)((function(n){var e=n.bidderCode;if((0,A.io)(I.VJ,(0,E.s)(w.tW,e)))return{bidRequest:function(n){return n},bidderRequest:function(n){return n}};function t(n,e,t){return O.includes(e)?null:Reflect.get(n,e,t)}function r(n,e){var t=new Proxy(n,e);return Object.entries(n).filter((function(n){var e=(0,i.A)(n,2);e[0];return"function"==typeof e[1]})).forEach((function(e){var r=(0,i.A)(e,2),o=r[0],a=r[1];return t[o]=a.bind(n)})),t}var o=(0,v.memoize)((function(n){return r(n,{get:t})}),(function(n){return n.bidId}));return{bidRequest:o,bidderRequest:function(n){return r(n,{get:function(e,r,i){return"bids"===r?n.bids.map(o):t(e,r,i)}})}}}));function B(n){return Object.assign(new o.A(n.code),{getSpec:function(){return Object.freeze(Object.assign({},n))},registerSyncs:e,callBids:function(t,r,i,o,s,d){if(Array.isArray(t.bids)){var l=S(t),p={},m=[],h=_(t).measureTime("validate",(function(){return t.bids.filter((function(e){return function(e){if(!n.isBidRequestValid(e))return(0,v.logWarn)("Invalid bid sent to bidder ".concat(n.code,": ").concat(JSON.stringify(e))),!1;return!0}(l.bidRequest(e))}))}));if(0!==h.length){var A={};h.forEach((function(n){A[n.bidId]=n,n.adUnitCode||(n.adUnitCode=n.placementCode)})),R(n,h,t,o,d,{onRequest:function(n){return g.emit(f.qY.BEFORE_BIDDER_HTTP,t,n)},onResponse:function(e){s(n.code),m.push(e)},onPaapi:function(n){var e=A[n.bidId];e?D(e,n):(0,v.logWarn)("Received fledge auction configuration for an unknown bidId",n)},onError:function(e,r){r.timedOut||s(n.code),a.Ay.callBidderError(n.code,r,t),g.emit(f.qY.BIDDER_ERROR,{error:r,bidderRequest:t}),(0,v.logError)("Server call for ".concat(n.code," failed: ").concat(e," ").concat(r.status,". Continuing without bids."))},onBid:function(e){var t=A[e.requestId];if(t){var i;if(e.adapterCode=t.bidder,function(n,e){var t=b.u.get(e,"allowAlternateBidderCodes")||!1,r=b.u.get(e,"allowedAlternateBidderCodes");if(n&&e&&e!==n&&(r=(0,v.isArray)(r)?r.map((function(n){return n.trim().toLowerCase()})).filter((function(n){return!!n})).filter(v.uniques):r,!t||(0,v.isArray)(r)&&"*"!==r[0]&&!r.includes(n)))return!0;return!1}(e.bidderCode,t.bidder))return(0,v.logWarn)("".concat(e.bidderCode," is not a registered partner or known bidder of ").concat(t.bidder,", hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.")),void r.reject(t.adUnitCode,e,f.Tf.BIDDER_DISALLOWED);e.originalCpm=e.cpm,e.originalCurrency=e.currency,e.meta=e.meta||Object.assign({},e[t.bidder]),e.deferBilling=t.deferBilling,e.deferRendering=e.deferBilling&&(null!==(i=e.deferRendering)&&void 0!==i?i:"function"!=typeof n.onBidBillable);var o=Object.assign((0,c.O)(f.XQ.GOOD,t),e,(0,v.pick)(t,O));!function(n,e){var t=(0,y.BO)(e.metrics);t.checkpoint("addBidResponse"),p[n]=!0,t.measureTime("addBidResponse.validate",(function(){return U(n,e)}))?r(n,e):r.reject(n,e,f.Tf.INVALID)}(t.adUnitCode,o)}else(0,v.logWarn)("Bidder ".concat(n.code," made bid for unknown request ID: ").concat(e.requestId,". Ignoring.")),r.reject(null,e,f.Tf.INVALID_REQUEST_ID)},onCompletion:E})}else E()}function E(){i(),u.$W.runWithBidder(n.code,(function(){g.emit(f.qY.BIDDER_DONE,t),e(m,t.gdprConsent,t.uspConsent,t.gppConsent)}))}}});function e(e,t,r,i){j(n,e,t,r,i)}}var k=["bids","paapi"],R=(0,m.A_)("sync",(function(n,e,t,i,o,a){var u=a.onRequest,c=a.onResponse,s=a.onPaapi,d=a.onError,l=a.onBid,f=a.onCompletion,g=_(t);f=g.startTiming("total").stopBefore(f);var p=S(t),m=g.measureTime("buildRequests",(function(){return n.buildRequests(e.map(p.bidRequest),p.bidderRequest(t))}));if(m&&0!==m.length){Array.isArray(m)||(m=[m]);var h=(0,v.delayExecution)(f,m.length);m.forEach((function(e){var t=g.fork();function a(n){null!=n&&(n.metrics=t.fork().renameWith()),l(n)}var f=o((function(r,i){m();try{r=JSON.parse(r)}catch(n){}r={body:r,headers:{get:i.getResponseHeader.bind(i)}},c(r);try{r=t.measureTime("interpretResponse",(function(){return n.interpretResponse(r,e)}))}catch(e){return(0,v.logError)("Bidder ".concat(n.code," failed to interpret the server's response. Continuing without bids"),null,e),void h()}var o,u;r&&!Object.keys(r).some((function(n){return!k.includes(n)}))?(o=r.bids,u=r.paapi):o=r,(0,v.isArray)(u)&&u.forEach(s),o&&((0,v.isArray)(o)?o.forEach(a):a(o)),h()})),p=o((function(n,e){m(),d(n,e),h()}));u(e);var m=t.startTiming("net");function y(t){var r,i=e.options;return Object.assign(t,i,{browsingTopics:!(null!=i&&i.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&((null===(r=b.u.get(n.code,"topicsHeader"))||void 0===r||r)&&(0,A.io)(I.DL,(0,E.s)(w.tW,n.code)))})}switch(e.method){case"GET":i("".concat(e.url).concat(function(n){if(n)return"?".concat("object"===(0,r.A)(n)?(0,v.parseQueryStringParameters)(n):n);return""}(e.data)),{success:f,error:p},void 0,y({method:"GET",withCredentials:!0}));break;case"POST":i(e.url,{success:f,error:p},"string"==typeof e.data?e.data:JSON.stringify(e.data),y({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,v.logWarn)("Skipping invalid request from ".concat(n.code,". Request type ").concat(e.type," must be GET or POST")),h()}}))}else f()}),"processBidderRequests"),j=(0,m.A_)("async",(function(n,e,t,r,i){var o=u.$W.getConfig("userSync.aliasSyncEnabled");if(n.getUserSyncs&&(o||!a.Ay.aliasRegistry[n.code])){var c=u.$W.getConfig("userSync.filterSettings"),d=n.getUserSyncs({iframeEnabled:!(!c||!c.iframe&&!c.all),pixelEnabled:!(!c||!c.image&&!c.all)},e,t,r,i);d&&(Array.isArray(d)||(d=[d]),d.forEach((function(e){s.zt.registerSync(e.type,n.code,e.url)})),s.zt.bidderDone(n.code))}}),"registerSyncs"),D=(0,m.A_)("sync",(function(n,e){}),"addPaapiConfig");function U(n,e){var t,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,o=void 0===r?h.n.index:r;function a(n){return"Invalid bid from ".concat(e.bidderCode,". Ignoring bid: ").concat(n)}return n?e?(t=Object.keys(e),T.every((function(n){return(0,p.mK)(t,n)&&!(0,p.mK)([void 0,null],e[n])}))?"native"!==e.mediaType||(0,d.Bm)(e,{index:o})?"video"!==e.mediaType||(0,l.vk)(e,{index:o})?!("banner"===e.mediaType&&!function(n,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?h.n.index:t;if((e.width||0===parseInt(e.width,10))&&(e.height||0===parseInt(e.height,10)))return e.width=parseInt(e.width,10),e.height=parseInt(e.height,10),!0;var o=r.getBidRequest(e),a=r.getMediaTypes(e),u=o&&o.sizes||a&&a.banner&&a.banner.sizes,c=(0,v.parseSizesInput)(u);if(1===c.length){var s=c[0].split("x"),d=(0,i.A)(s,2),l=d[0],f=d[1];return e.width=parseInt(l,10),e.height=parseInt(f,10),!0}return!1}(n,e,{index:o}))||((0,v.logError)(a("Banner bids require a width and height")),!1):((0,v.logError)(a("Video bid does not have required vastUrl or renderer property")),!1):((0,v.logError)(a("Native bid missing some required properties.")),!1):((0,v.logError)(a("Bidder ".concat(e.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1)):((0,v.logWarn)("Some adapter tried to add an undefined bid for ".concat(n,".")),!1):((0,v.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}function _(n){return(0,y.BO)(n.metrics).renameWith((function(e){return["adapter.client.".concat(e),"adapters.client.".concat(n.bidderCode,".").concat(e)]}))}},41580:function(n,e,t){t.d(e,{R:function(){return d}});var r=t(76811),i=t(83441),o=t(95139),a=t(15901),u=t(91069),c=new WeakMap,s=["debugging","outstream","improvedigital","showheroes-bs","aaxBlockmeter","adagio","adloox","akamaidap","arcspan","airgrid","browsi","brandmetrics","clean.io","humansecurity","confiant","contxtful","hadron","mediafilter","medianet","azerionedge","a1Media","geoedge","qortex","dynamicAdBoost","51Degrees","symitridap","wurfl","justtag","tncId","ftrackId","id5"];function d(n,e,t,d,l,f){if((0,o.io)(r.pY,(0,i.s)(e,t)))if(t&&n){if((0,a.mK)(s,t)){l||(l=document);var g=m(l,n);if(g)return d&&"function"==typeof d&&(g.loaded?d():g.callbacks.push(d)),g.tag;var p=c.get(l)||{},v={loaded:!1,tag:null,callbacks:[]};return p[n]=v,c.set(l,p),d&&"function"==typeof d&&v.callbacks.push(d),(0,u.logWarn)("module ".concat(t," is loading external JavaScript")),function(e,t,r,i){r||(r=document);var o=r.createElement("script");o.type="text/javascript",o.async=!0;var a=m(r,n);a&&(a.tag=o);o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,t())}:o.onload=function(){t()};o.src=e,i&&(0,u.setScriptAttributes)(o,i);return(0,u.insertElement)(o,r),o}(n,(function(){v.loaded=!0;try{for(var n=0;n<v.callbacks.length;n++)v.callbacks[n]()}catch(n){(0,u.logError)("Error executing callback","adloader.js:loadExternalScript",n)}}),l,f)}(0,u.logError)("".concat(t," not whitelisted for loading external JavaScript"))}else(0,u.logError)("cannot load external script without url and moduleCode");function m(n,e){var t=c.get(n);return t&&t[e]?t[e]:null}}},51692:function(n,e,t){t.d(e,{Q:function(){return r}});var r=(0,t(16833).A_)("sync",(function(){}))},68044:function(n,e,t){t.d(e,{RD:function(){return v},Rz:function(){return p},g4:function(){return g},hd:function(){return m}});var r=t(80296),i=t(82284),o=t(43272),a=t(91069),u={fetch:window.fetch.bind(window),makeRequest:function(n,e){return new Request(n,e)},timeout:function(n,e){var t=new AbortController,r=setTimeout((function(){t.abort(),(0,a.logError)("Request timeout after ".concat(n,"ms"),e),r=null}),n);return{signal:t.signal,done:function(){r&&clearTimeout(r)}}}},c="GET",s="POST",d="Content-Type";function l(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.request,r=e.done,i=function(e,t){var r,i,a;null==n||null!=(null===(r=t)||void 0===r?void 0:r.signal)||o.$W.getConfig("disableAjaxTimeout")||(a=u.timeout(n,e),t=Object.assign({signal:a.signal},t));var c=u.fetch(e,t);return null!=(null===(i=a)||void 0===i?void 0:i.done)&&(c=c.finally(a.done)),c};return null==t&&null==r||(i=function(n){return function(e,i){var o=new URL(null==(null==e?void 0:e.url)?e:e.url,document.location).origin,a=n(e,i);return t&&t(o),r&&(a=a.finally((function(){return r(o)}))),a}}(i)),i}function f(n,e){var t=n.status,r=n.statusText,i=void 0===r?"":r,o=n.headers,u=n.url,c=0;function s(n){if(0===c)try{var t;c=(new DOMParser).parseFromString(e,null==o||null===(t=o.get(d))||void 0===t||null===(t=t.split(";"))||void 0===t?void 0:t[0])}catch(e){c=null,n&&n(e)}return c}return{readyState:XMLHttpRequest.DONE,status:t,statusText:i,responseText:e,response:e,responseType:"",responseURL:u,get responseXML(){return s(a.logError)},getResponseHeader:function(n){return null!=o&&o.has(n)?o.get(n):null},toJSON:function(){return Object.assign({responseXML:s()},this)},timedOut:!1}}function g(){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:n.request,done:n.done});return function(n,t,o){!function(n,e){var t="object"===(0,i.A)(e)&&null!=e?e:{success:"function"==typeof e?e:function(){return null},error:function(n,e){return(0,a.logError)("Network error",n,e)}},o=t.success,u=t.error;n.then((function(n){return n.text().then((function(e){return[n,e]}))})).then((function(n){var e=(0,r.A)(n,2),t=e[0],i=e[1],a=f(t,i);t.ok||304===t.status?o(i,a):u(t.statusText,a)}),(function(n){return u("",Object.assign(f({status:0},""),{reason:n,timedOut:"AbortError"===(null==n?void 0:n.name)}))}))}(e(function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.method||(e?s:c);if(r===c&&e){var i=(0,a.parseUrl)(n,t);Object.assign(i.search,e),n=(0,a.buildUrl)(i)}var o=new Headers(t.customHeaders);o.set(d,t.contentType||"text/plain");var l={method:r,headers:o};return r!==c&&e&&(l.body=e),t.withCredentials&&(l.credentials="include"),isSecureContext&&["browsingTopics","adAuctionHeaders"].forEach((function(n){t[n]&&(l[n]=!0)})),t.keepalive&&(l.keepalive=!0),u.makeRequest(n,l)}(n,o,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),t)}}function p(n,e){return!(!window.navigator||!window.navigator.sendBeacon)&&window.navigator.sendBeacon(n,e)}var v=g(),m=l()},81657:function(n,e,t){t.d(e,{AA:function(){return B},HN:function(){return J},UZ:function(){return k},ZV:function(){return L},mO:function(){return $},mX:function(){return P},sR:function(){return x},v8:function(){return M},w1:function(){return q}});var r=t(82284),i=t(91069),o=t(86833),a=t(12449),u=t(68693),c=t(95789),s=t(43272),d=t(38230),l=t(16833),f=t(15901),g=t(63895),p=t(71371),v=t(67314),m=t(12693),h=t(75023),b=t(11445),y=t(78969),A=t(25555),E=t(16894),w=t(57176),I=t(7873),T=t(76853),O=t(27863),C=d.zt.syncUsers,S="started",B="inProgress",k="completed";h.on(y.qY.BID_ADJUSTMENT,(function(n){!function(n){var e=(0,w.y)(n.cpm,n);e>=0&&(n.cpm=e)}(n)}));var R=4,j={},D={},U=[],_=(0,I.m)();function P(n){var e=n.adUnits,t=n.adUnitCodes,u=n.callback,d=n.cbTimeout,l=n.labels,m=n.auctionId,w=n.ortb2Fragments,I=n.metrics;I=(0,E.BO)(I);var P,$,L,z,H=e,V=l,K=t,Y=m||(0,i.generateUUID)(),J=d,X=new Set,Z=(0,A.v)(),nn=(0,A.v)(),en=[],tn=u,rn=[],on=(0,T.H)({startTime:function(n){return n.responseTimestamp},ttl:function(n){return null==(0,O.S9)()?null:1e3*Math.max((0,O.S9)(),n.ttl)}}),an=[],un=[],cn=[];function sn(){return{auctionId:Y,timestamp:P,auctionEnd:$,auctionStatus:z,adUnits:H,adUnitCodes:K,labels:V,bidderRequests:rn,noBids:an,bidsReceived:on.toArray(),bidsRejected:en,winningBids:un,timeout:J,metrics:I,seatNonBids:cn}}function dn(n){if(n?h.emit(y.qY.AUCTION_TIMEOUT,sn()):clearTimeout(L),void 0===$){var t=[];n&&((0,i.logMessage)("Auction ".concat(Y," timedOut")),(t=rn.filter((function(n){return!X.has(n.bidderRequestId)})).flatMap((function(n){return n.bids}))).length&&h.emit(y.qY.BID_TIMEOUT,t)),z=k,$=Date.now(),I.checkpoint("auctionEnd"),I.timeBetween("requestBids","auctionEnd","requestBids.total"),I.timeBetween("callBids","auctionEnd","requestBids.callBids"),Z.resolve(),h.emit(y.qY.AUCTION_END,sn()),W(H,(function(){try{if(null!=tn){var r=on.toArray().filter((function(n){return K.includes(n.adUnitCode)})).reduce(Q,{});tn.apply(_,[r,n,Y]),tn=null}}catch(n){(0,i.logError)("Error executing bidsBackHandler",null,n)}finally{t.length&&b.Ay.callTimedOutBidders(e,t,J);var o=s.$W.getConfig("userSync")||{};o.enableOverride||C(o.syncDelay)}}))}}function ln(){s.$W.resetBidder(),(0,i.logInfo)("Bids Received for Auction with id: ".concat(Y),on.toArray()),z=k,dn(!1)}function fn(n){X.add(n)}function gn(n){var e=this;n.forEach((function(n){var e;e=n,rn=rn.concat(e)}));var t={},u={bidRequests:n,run:function(){L=setTimeout((function(){return dn(!0)}),J),z=B,h.emit(y.qY.AUCTION_INIT,sn());var u=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=t.index,d=void 0===u?v.n.index:u,l=0,m=!1,b=new Set,E={};function w(){l--,m&&0===l&&n()}function I(n,e,t){return E[e.requestId]=!0,function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,o=void 0===r?v.n.index:r,a=o.getBidderRequest(n),u=o.getAdUnit(n),c=a&&a.start||n.requestTimestamp;Object.assign(n,{responseTimestamp:n.responseTimestamp||(0,i.timestamp)(),requestTimestamp:n.requestTimestamp||c,cpm:parseFloat(n.cpm)||0,bidder:n.bidder||n.bidderCode,adUnitCode:e}),null!=(null==u?void 0:u.ttlBuffer)&&(n.ttlBuffer=u.ttlBuffer);n.timeToRespond=n.responseTimestamp-n.requestTimestamp}(e,n),l++,t(w)}function T(n,t){I(n,t,(function(n){var u=function(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.index,a=void 0===i?v.n.index:i;h.emit(y.qY.BID_ADJUSTMENT,n);var u=(null===(e=a.getBidRequest(n))||void 0===e?void 0:e.renderer)||a.getAdUnit(n).renderer,d=n.mediaType,l=a.getMediaTypes(n),f=l&&l[d],g=f&&f.renderer,p=null;!g||!g.render||!0===g.backupOnly&&n.renderer?!u||!u.render||!0===u.backupOnly&&n.renderer||(p=u):p=g;p&&(n.renderer=c.A4.install({url:p.url,config:p.options,renderNow:null==p.url}),n.renderer.setRender(p.render));var m=F(n.mediaType,l,s.$W.getConfig("mediaTypePriceGranularity")),b=(0,o.j)(n.cpm,"object"===(0,r.A)(m)?m:s.$W.getConfig("customPriceBucket"),s.$W.getConfig("currency.granularityMultiplier"));return n.pbLg=b.low,n.pbMg=b.med,n.pbHg=b.high,n.pbAg=b.auto,n.pbDg=b.dense,n.pbCg=b.custom,n}(t);h.emit(y.qY.BID_ACCEPTED,u),u.mediaType===p.G_?function(n,e,t){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.index,u=void 0===a?v.n.index:a,c=!0,d=null===(r=u.getMediaTypes({requestId:e.originalRequestId||e.requestId,adUnitId:e.adUnitId}))||void 0===r?void 0:r.video,l=d&&(null==d?void 0:d.context),f=d&&(null==d?void 0:d.useCacheKey);s.$W.getConfig("cache.url")&&(f||l!==g.H6)&&(!e.videoCacheKey||s.$W.getConfig("cache.ignoreBidderCacheKey")?(c=!1,G(n,e,t,d)):e.vastUrl||((0,i.logError)("videoCacheKey specified but not required vastUrl for video bid"),c=!1));c&&(M(n,e),t())}(e,u,n):((0,a.l6)(u)&&(0,a.gs)(u,d.getAdUnit(u)),M(e,u),n())}))}function O(n,t,r){return I(n,t,(function(n){t.rejectionReason=r,(0,i.logWarn)("Bid from ".concat(t.bidder||"unknown bidder"," was rejected: ").concat(r),t),h.emit(y.qY.BID_REJECTED,t),e.addBidRejected(t),n()}))}function C(){var t=this,r=e.getBidRequests(),o=s.$W.getConfig("auctionOptions");if(b.add(t),o&&!(0,i.isEmpty)(o)){var a=o.secondaryBidders;a&&!r.every((function(n){return(0,f.mK)(a,n.bidderCode)}))&&(r=r.filter((function(n){return!(0,f.mK)(a,n.bidderCode)})))}m=r.every((function(n){return b.has(n)})),t.bids.forEach((function(n){E[n.bidId]||(e.addNoBid(n),h.emit(y.qY.NO_BID,n))})),m&&0===l&&n()}return{addBidResponse:function(){function n(n,e){var t;x.call({dispatch:T},n,e,(t=!1,function(r){t||(O(n,e,r),t=!0)}))}return n.reject=O,n}(),adapterDone:function(){var n=this;N(A.k.resolve()).finally((function(){return C.call(n)}))}}}(ln,e);b.Ay.callBids(H,n,u.addBidResponse,u.adapterDone,{request:function(n,e){l(j,e),l(t,n),D[n]||(D[n]={SRA:!0,origin:e}),t[n]>1&&(D[n].SRA=!1)},done:function(n){j[n]--,U[0]&&d(U[0])&&U.shift()}},J,fn,w),nn.resolve()}};function d(n){var e=!0,t=s.$W.getConfig("maxRequestsPerOrigin")||R;return n.bidRequests.some((function(n){var r=1,i=void 0!==n.src&&n.src===y.RW.SRC?"s2s":n.bidderCode;return D[i]&&(!1===D[i].SRA&&(r=Math.min(n.bids.length,t)),j[D[i].origin]+r>t&&(e=!1)),!e})),e&&n.run(),e}function l(n,e){void 0===n[e]?n[e]=1:n[e]++}d(u)||((0,i.logWarn)("queueing auction due to limited endpoint capacity"),U.push(u))}return(0,O.lc)((function(){return on.refresh()})),h.on(y.qY.SEAT_NON_BID,(function(n){var e;n.auctionId===Y&&(e=n.seatnonbid,cn=cn.concat(e))})),{addBidReceived:function(n){on.add(n)},addBidRejected:function(n){en=en.concat(n)},addNoBid:function(n){an=an.concat(n)},callBids:function(){z=S,P=Date.now();var n=I.measureTime("requestBids.makeRequests",(function(){return b.Ay.makeBidRequests(H,P,Y,J,V,w,I)}));(0,i.logInfo)("Bids Requested for Auction with id: ".concat(Y),n),I.checkpoint("callBids"),n.length<1?((0,i.logWarn)("No valid bid requests returned for auction"),ln()):q.call({dispatch:gn,context:this},n)},addWinningBid:function(n){un=un.concat(n),b.Ay.callBidWonBidder(n.adapterCode||n.bidder,n,e),n.deferBilling||b.Ay.triggerBilling(n)},setBidTargeting:function(n){b.Ay.callSetTargetingBidder(n.adapterCode||n.bidder,n)},getWinningBids:function(){return un},getAuctionStart:function(){return P},getAuctionEnd:function(){return $},getTimeout:function(){return J},getAuctionId:function(){return Y},getAuctionStatus:function(){return z},getAdUnits:function(){return H},getAdUnitCodes:function(){return K},getBidRequests:function(){return rn},getBidsReceived:function(){return on.toArray()},getNoBids:function(){return an},getNonBids:function(){return cn},getFPD:function(){return w},getMetrics:function(){return I},end:Z.promise,requestsDone:nn.promise,getProperties:sn}}var x=(0,l.A_)("sync",(function(n,e,t){!function(n){var e=s.$W.getConfig("maxBid");return!e||!n.cpm||e>=Number(n.cpm)}(e)?t(y.Tf.PRICE_TOO_HIGH):this.dispatch.call(null,n,e)}),"addBidResponse"),N=(0,l.A_)("sync",(function(n){return n}),"responsesReady"),q=(0,l.A_)("sync",(function(n){this.dispatch.call(this.context,n)}),"addBidderRequests"),W=(0,l.A_)("async",(function(n,e){e&&e()}),"bidsBackCallback");function M(n,e){!function(n){var e,t=!0===m.u.get(n.bidderCode,"allowZeroCpmBids")?n.cpm>=0:n.cpm>0;n.bidderCode&&(t||n.dealId)&&(e=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?v.n.index:r;if(!e)return{};var o=i.getBidRequest(e),u={},c=J(e.mediaType,n);X(u,c,e,o),n&&m.u.getOwn(n,y.iD.ADSERVER_TARGETING)&&(X(u,m.u.ownSettingsFor(n),e,o),e.sendStandardTargeting=m.u.get(n,"sendStandardTargeting"));e.native&&(u=Object.assign({},u,(0,a.Zj)(e)));return u}(n.bidderCode,n));n.adserverTargeting=Object.assign(n.adserverTargeting||{},e)}(e),(0,E.BO)(e.metrics).timeSince("addBidResponse","addBidResponse.total"),n.addBidReceived(e),h.emit(y.qY.BID_RESPONSE,e)}var G=(0,l.A_)("async",(function(n,e,t,r){(0,u.X5)(n,e,t)}),"callPrebidCache");function F(n,e,t){if(n&&t){if(n===p.G_){var r,i,o=null!==(r=null==e||null===(i=e[p.G_])||void 0===i?void 0:i.context)&&void 0!==r?r:"instream";if(t["".concat(p.G_,"-").concat(o)])return t["".concat(p.G_,"-").concat(o)]}return t[n]}}var $=function(n){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,t=void 0===e?v.n.index:e,r=F(n.mediaType,t.getMediaTypes(n),s.$W.getConfig("mediaTypePriceGranularity"));return"string"==typeof n.mediaType&&r?"string"==typeof r?r:"custom":s.$W.getConfig("priceGranularity")},L=function(n){return function(e){var t=n||$(e);return t===y.UE.AUTO?e.pbAg:t===y.UE.DENSE?e.pbDg:t===y.UE.LOW?e.pbLg:t===y.UE.MEDIUM?e.pbMg:t===y.UE.HIGH?e.pbHg:t===y.UE.CUSTOM?e.pbCg:void 0}},z=function(){return function(n){return n.creativeId?n.creativeId:""}},H=function(){return function(n){return n.meta&&n.meta.advertiserDomains&&n.meta.advertiserDomains.length>0?[n.meta.advertiserDomains].flat()[0]:""}},V=function(){return function(n){var e,t;return n.meta&&(n.meta.networkId||n.meta.networkName)?(null==n||null===(e=n.meta)||void 0===e?void 0:e.networkName)||(null==n||null===(t=n.meta)||void 0===t?void 0:t.networkId):""}},K=function(){return function(n){return n.meta&&n.meta.primaryCatId?n.meta.primaryCatId:""}};function Y(n,e){return{key:n,val:"function"==typeof e?function(n,t){return e(n,t)}:function(n){return n[e]}}}function J(n,e){var t=Object.assign({},m.u.settingsFor(null));if(t[y.iD.ADSERVER_TARGETING]||(t[y.iD.ADSERVER_TARGETING]=[Y(y.xS.BIDDER,"bidderCode"),Y(y.xS.AD_ID,"adId"),Y(y.xS.PRICE_BUCKET,L()),Y(y.xS.SIZE,"size"),Y(y.xS.DEAL,"dealId"),Y(y.xS.SOURCE,"source"),Y(y.xS.FORMAT,"mediaType"),Y(y.xS.ADOMAIN,H()),Y(y.xS.ACAT,K()),Y(y.xS.DSP,V()),Y(y.xS.CRID,z())]),"video"===n){var r=t[y.iD.ADSERVER_TARGETING].slice();if(t[y.iD.ADSERVER_TARGETING]=r,[y.xS.UUID,y.xS.CACHE_ID].forEach((function(n){void 0===(0,f.I6)(r,(function(e){return e.key===n}))&&r.push(Y(n,"videoCacheKey"))})),s.$W.getConfig("cache.url")&&(!e||!1!==m.u.get(e,"sendStandardTargeting"))){var o=(0,i.parseUrl)(s.$W.getConfig("cache.url"));void 0===(0,f.I6)(r,(function(n){return n.key===y.xS.CACHE_HOST}))&&r.push(Y(y.xS.CACHE_HOST,(function(n){var e;return(null==n||null===(e=n.adserverTargeting)||void 0===e?void 0:e[y.xS.CACHE_HOST])||o.hostname})))}}return t}function X(n,e,t,r){var o=e[y.iD.ADSERVER_TARGETING];return t.size=t.getSize(),(o||[]).forEach((function(o){var a=o.key,u=o.val;if(n[a]&&(0,i.logWarn)("The key: "+a+" is being overwritten"),(0,i.isFn)(u))try{u=u(t,r)}catch(n){(0,i.logError)("bidmanager","ERROR",n)}(void 0===e.suppressEmptyKeys||!0!==e.suppressEmptyKeys)&&a!==y.xS.DEAL&&a!==y.xS.ACAT&&a!==y.xS.DSP&&a!==y.xS.CRID||!(0,i.isEmptyStr)(u)&&null!=u?n[a]=u:(0,i.logInfo)("suppressing empty key '"+a+"' from adserver targeting")})),n}function Q(n,e){return n[e.adUnitCode]||(n[e.adUnitCode]={bids:[]}),n[e.adUnitCode].bids.push(e),n}},67314:function(n,e,t){t.d(e,{n:function(){return p}});var r=t(80296),i=t(45458),o=t(91069),a=t(81657);function u(n){Object.assign(this,{getAuction:function(e){var t=e.auctionId;if(null!=t)return n().find((function(n){return n.getAuctionId()===t}))},getAdUnit:function(e){var t=e.adUnitId;if(null!=t)return n().flatMap((function(n){return n.getAdUnits()})).find((function(n){return n.adUnitId===t}))},getMediaTypes:function(n){var e=n.adUnitId,t=n.requestId;if(null!=t){var r=this.getBidRequest({requestId:t});if(null!=r&&(null==e||r.adUnitId===e))return r.mediaTypes}else if(null!=e){var i=this.getAdUnit({adUnitId:e});if(null!=i)return i.mediaTypes}},getBidderRequest:function(e){var t=e.requestId,r=e.bidderRequestId;if(null!=t||null!=r){var i=n().flatMap((function(n){return n.getBidRequests()}));return null!=r&&(i=i.filter((function(n){return n.bidderRequestId===r}))),null==t?i[0]:i.find((function(n){return n.bids&&null!=n.bids.find((function(n){return n.bidId===t}))}))}},getBidRequest:function(e){var t=e.requestId;if(null!=t)return n().flatMap((function(n){return n.getBidRequests()})).flatMap((function(n){return n.bids})).find((function(n){return n&&n.bidId===t}))},getOrtb2:function(n){var e,t;return(null===(e=this.getBidderRequest(n))||void 0===e?void 0:e.ortb2)||(null===(t=this.getAuction(n))||void 0===t||null===(t=t.getFPD())||void 0===t||null===(t=t.global)||void 0===t?void 0:t.ortb2)}})}var c=t(78969),s=t(16894),d=t(76853),l=t(27863);function f(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return g(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function g(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}var p=function(){var n=(0,d.H)({startTime:function(n){return n.end.then((function(){return n.getAuctionEnd()}))},ttl:function(n){return null==(0,l.S9)()?null:n.end.then((function(){return 1e3*Math.max.apply(Math,[(0,l.S9)()].concat((0,i.A)(n.getBidsReceived().map((function(n){return n.ttl})))))}))}});(0,l.lc)((function(){return n.refresh()}));var e={onExpiry:n.onExpiry};function t(e){var t,r=f(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.getAuctionId()===e)return i}}catch(n){r.e(n)}finally{r.f()}}function g(){return n.toArray().flatMap((function(n){return n.getBidsReceived()}))}return e.addWinningBid=function(n){var e=(0,s.BO)(n.metrics);e.checkpoint("bidWon"),e.timeBetween("auctionEnd","bidWon","adserver.pending"),e.timeBetween("requestBids","bidWon","adserver.e2e");var r=t(n.auctionId);r?r.addWinningBid(n):(0,o.logWarn)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getEarlyBidsReceived:{name:"getBidsReceived"},getAdUnits:{},getBidsReceived:{pre:function(n){return n.getAuctionStatus()===a.UZ}},getAdUnitCodes:{post:o.uniques}}).forEach((function(t){var i=(0,r.A)(t,2),o=i[0],a=i[1],u=a.name,c=void 0===u?o:u,s=a.pre,d=a.post,l=null==s?function(n){return n[c]()}:function(n){return s(n)?n[c]():[]},f=null==d?function(n){return n}:function(n){return n.filter(d)};e[o]=function(){return f(n.toArray().flatMap(l))}})),e.getAllBidsForAdUnitCode=function(n){return g().filter((function(e){return e&&e.adUnitCode===n}))},e.createAuction=function(e){var t=(0,a.mX)(e);return function(e){n.add(e)}(t),t},e.findBidByAdId=function(n){return g().find((function(e){return e.adId===n}))},e.getStandardBidderAdServerTargeting=function(){return(0,a.HN)()[c.iD.ADSERVER_TARGETING]},e.setStatusForBids=function(n,r){var i=e.findBidByAdId(n);if(i&&(i.status=r),i&&r===c.tl.BID_TARGETING_SET){var o=t(i.auctionId);o&&o.setBidTargeting(i)}},e.getLastAuctionId=function(){var e=n.toArray();return e.length&&e[e.length-1].getAuctionId()},e.clearAllAuctions=function(){n.clear()},e.index=new u((function(){return n.toArray()})),e}()},27863:function(n,e,t){t.d(e,{S9:function(){return d},cT:function(){return s},lc:function(){return l}});var r=t(43272),i=t(91069),o="minBidCacheTTL",a=1,u=null,c=[];function s(n){return n.ttl-(n.hasOwnProperty("ttlBuffer")?n.ttlBuffer:a)}function d(){return u}function l(n){c.push(n)}r.$W.getConfig("ttlBuffer",(function(n){"number"==typeof n.ttlBuffer?a=n.ttlBuffer:(0,i.logError)("Invalid value for ttlBuffer",n.ttlBuffer)})),r.$W.getConfig(o,(function(n){u!==(u="number"==typeof(u=null==n?void 0:n[o])?u:null)&&c.forEach((function(n){return n(u)}))}))},12693:function(n,e,t){t.d(e,{u:function(){return g}});var r=t(23029),i=t(92901),o=t(70433),a=t(91069),u=t(7873),c=t(78969);function s(n,e){(function(n,e){if(e.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n,e),e.add(n)}function d(n,e,t){if("function"==typeof n?n===e:n.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}var l=new WeakSet;function f(n){return null==n?this.defaultScope:n}var g=new(function(){return(0,i.A)((function n(e,t){(0,r.A)(this,n),s(this,l),this.getSettings=e,this.defaultScope=t}),[{key:"get",value:function(n,e){var t=this.getOwn(n,e);return void 0===t&&(t=this.getOwn(null,e)),t}},{key:"getOwn",value:function(n,e){return n=d(l,this,f).call(this,n),(0,o.A)(this.getSettings(),"".concat(n,".").concat(e))}},{key:"getScopes",value:function(){var n=this;return Object.keys(this.getSettings()).filter((function(e){return e!==n.defaultScope}))}},{key:"settingsFor",value:function(n){return(0,a.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(n))}},{key:"ownSettingsFor",value:function(n){return n=d(l,this,f).call(this,n),this.getSettings()[n]||{}}}])}())((function(){return(0,u.m)().bidderSettings||{}}),c.iD.BD_SETTING_STANDARD)},93597:function(n,e,t){t.d(e,{O:function(){return o}});var r=t(91069);function i(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.src,i=void 0===t?"client":t,o=e.bidder,a=void 0===o?"":o,u=e.bidId,c=e.transactionId,s=e.adUnitId,d=e.auctionId,l=i,f=n||0;Object.assign(this,{bidderCode:a,width:0,height:0,statusMessage:function(){switch(f){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}(),adId:(0,r.getUniqueIdentifierStr)(),requestId:u,transactionId:c,adUnitId:s,auctionId:d,mediaType:"banner",source:l}),this.getStatusCode=function(){return f},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,adUnitId:this.adUnitId,auctionId:this.auctionId}}}function o(n,e){return new i(n,e)}},43272:function(n,e,t){t.d(e,{$W:function(){return y},Ov:function(){return p}});var r=t(64467),i=t(82284),o=t(80296),a=t(86833),u=t(15901),c=t(91069),s=t(70433),d=t(78969);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var f="TRUE"===(0,c.getParameterByName)(d.M).toUpperCase(),g={},p="random",v={};v[p]=!0,v.fixed=!0;var m=p,h={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};function b(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?{priceGranularity:h.MEDIUM,customPriceBucket:{},mediaTypePriceGranularity:{},bidderSequence:m,auctionOptions:{}}:{};function t(n){return e[n]}function r(t,r){e.hasOwnProperty(t)||Object.defineProperty(n,t,{enumerable:!0}),e[t]=r}var i={publisherDomain:{set:function(n){null!=n&&(0,c.logWarn)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),r("publisherDomain",n)}},priceGranularity:{set:function(n){d(n)&&("string"==typeof n?r("priceGranularity",s(n)?n:h.MEDIUM):(0,c.isPlainObject)(n)&&(r("customPriceBucket",n),r("priceGranularity",h.CUSTOM),(0,c.logMessage)("Using custom price granularity")))}},customPriceBucket:{},mediaTypePriceGranularity:{set:function(n){null!=n&&r("mediaTypePriceGranularity",Object.keys(n).reduce((function(e,r){return d(n[r])?"string"==typeof n?e[r]=s(n[r])?n[r]:t("priceGranularity"):(0,c.isPlainObject)(n)&&(e[r]=n[r],(0,c.logMessage)("Using custom price granularity for ".concat(r))):(0,c.logWarn)("Invalid price granularity for media type: ".concat(r)),e}),{}))}},bidderSequence:{set:function(n){v[n]?r("bidderSequence",n):(0,c.logWarn)("Invalid order: ".concat(n,". Bidder Sequence was not set."))}},auctionOptions:{set:function(n){(function(n){if(!(0,c.isPlainObject)(n))return(0,c.logWarn)("Auction Options must be an object"),!1;for(var e=0,t=Object.keys(n);e<t.length;e++){var r=t[e];if("secondaryBidders"!==r&&"suppressStaleRender"!==r&&"suppressExpiredRender"!==r)return(0,c.logWarn)("Auction Options given an incorrect param: ".concat(r)),!1;if("secondaryBidders"===r){if(!(0,c.isArray)(n[r]))return(0,c.logWarn)("Auction Options ".concat(r," must be of type Array")),!1;if(!n[r].every(c.isStr))return(0,c.logWarn)("Auction Options ".concat(r," must be only string")),!1}else if(("suppressStaleRender"===r||"suppressExpiredRender"===r)&&!(0,c.isBoolean)(n[r]))return(0,c.logWarn)("Auction Options ".concat(r," must be of type boolean")),!1}return!0})(n)&&r("auctionOptions",n)}}};return Object.defineProperties(n,Object.fromEntries(Object.entries(i).map((function(n){var i=(0,o.A)(n,2),a=i[0],u=i[1];return[a,Object.assign({get:t.bind(null,a),set:r.bind(null,a),enumerable:e.hasOwnProperty(a),configurable:!e.hasOwnProperty(a)},u)]})))),n;function s(n){return(0,u.I6)(Object.keys(h),(function(e){return n===h[e]}))}function d(n){if(!n)return(0,c.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof n)s(n)||(0,c.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,c.isPlainObject)(n)&&!(0,a.q)(n))return(0,c.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}}var y=function(){var n,e,t,a=[],d=null;function p(){n={};var r=b({debug:f,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3,userSync:{topics:g}});e&&S(Object.keys(e).reduce((function(n,t){return e[t]!==r[t]&&(n[t]=r[t]||{}),n}),{})),e=r,t={}}function v(){if(d&&t&&(0,c.isPlainObject)(t[d])){var n=t[d],r=new Set(Object.keys(e).concat(Object.keys(n)));return(0,u.A6)(r).reduce((function(t,r){return void 0===n[r]?t[r]=e[r]:void 0===e[r]?t[r]=n[r]:(0,c.isPlainObject)(n[r])?t[r]=(0,c.mergeDeep)({},e[r],n[r]):t[r]=n[r],t}),{})}return Object.assign({},e)}var m=[v,function(){var n=v();return Object.defineProperty(n,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),n}].map((function(n){return function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?(0,s.A)(n(),e):v()}return C.apply(void 0,arguments)}})),h=(0,o.A)(m,2),y=h[0],A=h[1],E=[A,y].map((function(n){return function(){var e=n.apply(void 0,arguments);return e&&"object"===(0,i.A)(e)&&(e=(0,c.deepClone)(e)),e}})),w=(0,o.A)(E,2),I=w[0],T=w[1];function O(t){if((0,c.isPlainObject)(t)){var r=Object.keys(t),i={};r.forEach((function(r){var o=t[r];(0,c.isPlainObject)(n[r])&&(0,c.isPlainObject)(o)&&(o=Object.assign({},n[r],o));try{i[r]=e[r]=o}catch(n){(0,c.logWarn)("Cannot set config for property ".concat(r," : "),n)}})),S(i)}else(0,c.logError)("setConfig options must be an object")}function C(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e;if("string"!=typeof n&&(i=n,n="*",t=e||{}),"function"==typeof i){var o={topic:n,callback:i};return a.push(o),t.init&&i("*"===n?A():(0,r.A)({},n,A(n))),function(){a.splice(a.indexOf(o),1)}}(0,c.logError)("listener must be a function")}function S(n){var e=Object.keys(n);a.filter((function(n){return(0,u.mK)(e,n.topic)})).forEach((function(e){e.callback((0,r.A)({},e.topic,n[e.topic]))})),a.filter((function(n){return"*"===n.topic})).forEach((function(e){return e.callback(n)}))}function B(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{!function(n){if(!(0,c.isPlainObject)(n))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(n.bidders)||!n.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,c.isPlainObject)(n.config))throw"setBidderConfig bidder options must contain a config object"}(n),n.bidders.forEach((function(r){t[r]||(t[r]=b({},!1)),Object.keys(n.config).forEach((function(i){var o=n.config[i],a=t[r][i];if((0,c.isPlainObject)(o)&&(null==a||(0,c.isPlainObject)(a))){var u=e?c.mergeDeep:Object.assign;t[r][i]=u({},a||{},o)}else t[r][i]=o}))}))}catch(n){(0,c.logError)(n)}}function k(n,e){d=n;try{return e()}finally{R()}}function R(){d=null}return p(),{getCurrentBidder:function(){return d},resetBidder:R,getConfig:A,getAnyConfig:y,readConfig:I,readAnyConfig:T,setConfig:O,mergeConfig:function(n){if((0,c.isPlainObject)(n)){var e=(0,c.mergeDeep)(v(),n);return O(function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,r.A)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}({},e)),e}(0,c.logError)("mergeConfig input must be an object")},setDefaults:function(t){(0,c.isPlainObject)(n)?(Object.assign(n,t),Object.assign(e,t)):(0,c.logError)("defaults must be an object")},resetConfig:p,runWithBidder:k,callbackWithBidder:function(n){return function(e){return function(){if("function"==typeof e){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return k(n,e.bind.apply(e,[this].concat(r)))}(0,c.logWarn)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:B,getBidderConfig:function(){return t},mergeBidderConfig:function(n){return B(n,!0)}}}()},16916:function(n,e,t){t.d(e,{B1:function(){return A},SL:function(){return F},ad:function(){return q},et:function(){return W},mW:function(){return x},o2:function(){return M},t6:function(){return N}});var r=t(80296),i=t(50388),o=t(53954),a=t(85501),u=t(23029),c=t(92901),s=t(64467),d=t(91069),l=t(25555),f=t(43272);function g(n,e,t){return e=(0,o.A)(e),(0,i.A)(n,p()?Reflect.construct(e,t||[],(0,o.A)(n).constructor):e.apply(n,t))}function p(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(p=function(){return!!n})()}function v(n,e,t){m(n,e),e.set(n,t)}function m(n,e){if(e.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(n,e){return n.get(y(n,e))}function b(n,e,t){return n.set(y(n,e),t),t}function y(n,e,t){if("function"==typeof n?n===e:n.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}var A=Object.freeze({}),E=new WeakMap,w=new WeakMap,I=new WeakMap,T=new WeakMap,O=new WeakMap,C=new WeakMap,S=new WeakSet,B=function(){return(0,c.A)((function n(){var e,t;(0,u.A)(this,n),m(e=this,t=S),t.add(e),v(this,E,void 0),v(this,w,void 0),v(this,I,void 0),v(this,T,void 0),v(this,O,!0),v(this,C,void 0),(0,s.A)(this,"generatedTime",void 0),(0,s.A)(this,"hashFields",void 0),this.reset()}),[{key:"reset",value:function(){b(I,this,(0,l.v)()),b(E,this,!1),b(w,this,null),b(T,this,!1),this.generatedTime=null}},{key:"enable",value:function(){b(E,this,!0)}},{key:"enabled",get:function(){return h(E,this)}},{key:"ready",get:function(){return h(T,this)}},{key:"promise",get:function(){return h(T,this)?l.k.resolve(h(w,this)):(h(E,this)||y(S,this,k).call(this,null),h(I,this).promise)}},{key:"setConsentData",value:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.timestamp)();this.generatedTime=e,b(O,this,!0),y(S,this,k).call(this,n)}},{key:"getConsentData",value:function(){return h(w,this)}},{key:"hash",get:function(){var n=this;return h(O,this)&&(b(C,this,(0,d.cyrb53Hash)(JSON.stringify(h(w,this)&&this.hashFields?this.hashFields.map((function(e){return h(w,n)[e]})):h(w,this)))),b(O,this,!1)),h(C,this)}}])}();function k(n){b(T,this,!0),b(w,this,n),h(I,this).resolve(n)}var R=function(n){function e(){return(0,u.A)(this,e),g(this,e,arguments)}return(0,a.A)(e,n),(0,c.A)(e,[{key:"getConsentMeta",value:function(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}}])}(B),j=function(n){function e(){var n;(0,u.A)(this,e);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return n=g(this,e,[].concat(r)),(0,s.A)(n,"hashFields",["gdprApplies","consentString"]),n}return(0,a.A)(e,n),(0,c.A)(e,[{key:"getConsentMeta",value:function(){var n=this.getConsentData();if(n&&n.vendorData&&this.generatedTime)return{gdprApplies:n.gdprApplies,consentStringSize:(0,d.isStr)(n.vendorData.tcString)?n.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:n.apiVersion}}}])}(B),D=function(n){function e(){var n;(0,u.A)(this,e);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return n=g(this,e,[].concat(r)),(0,s.A)(n,"hashFields",["applicableSections","gppString"]),n}return(0,a.A)(e,n),(0,c.A)(e,[{key:"getConsentMeta",value:function(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}}])}(B);var U,_,P,x=new j,N=new R,q=new D,W=function(){function n(){return!!f.$W.getConfig("coppa")}return{getCoppa:n,getConsentData:n,getConsentMeta:n,reset:function(){},get promise(){return l.k.resolve(n())},get hash(){return n()?"1":"0"}}}(),M=(U={},_={},P={},{register:function(n,e,t){t&&((U[e]=U[e]||{})[n]=t,_.hasOwnProperty(e)?_[e]!==t&&(_[e]=P):_[e]=t)},get:function(n){var e={modules:U[n]||{}};return _.hasOwnProperty(n)&&_[n]!==P&&(e.gvlid=_[n]),e}}),G={gdpr:x,usp:N,gpp:q,coppa:W};var F=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G;return n=Object.entries(n),Object.assign({get promise(){return l.k.all(n.map((function(n){var e=(0,r.A)(n,2),t=e[0];return e[1].promise.then((function(n){return[t,n]}))}))).then((function(n){return Object.fromEntries(n)}))},get hash(){return(0,d.cyrb53Hash)(n.map((function(n){var e=(0,r.A)(n,2);e[0];return e[1].hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((function(e){return[e,(t=e,function(){return Object.fromEntries(n.map((function(n){var e=(0,r.A)(n,2);return[e[0],e[1][t]()]})))})];var t}))))}()},78969:function(n,e,t){t.d(e,{IY:function(){return E},M:function(){return i},RW:function(){return g},Tf:function(){return v},UE:function(){return s},XQ:function(){return o},Zh:function(){return l},_B:function(){return y},as:function(){return u},cA:function(){return c},h0:function(){return m},iD:function(){return r},jO:function(){return h},nl:function(){return A},oA:function(){return b},qY:function(){return a},tl:function(){return p},x5:function(){return f},xS:function(){return d}});var r={PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},i="pbjs_debug",o={GOOD:1},a={AUCTION_INIT:"auctionInit",AUCTION_TIMEOUT:"auctionTimeout",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",SEAT_NON_BID:"seatNonBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",BEFORE_BIDDER_HTTP:"beforeBidderHttp",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",AD_RENDER_SUCCEEDED:"adRenderSucceeded",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable",STALE_RENDER:"staleRender",EXPIRED_RENDER:"expiredRender",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted",RUN_PAAPI_AUCTION:"paapiRunAuction",PBS_ANALYTICS:"pbsAnalytics",PAAPI_BID:"paapiBid",PAAPI_NO_BID:"paapiNoBid",PAAPI_ERROR:"paapiError"},u={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},c={bidWon:"adUnitCode"},s={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},d={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host",ADOMAIN:"hb_adomain",ACAT:"hb_acat",CRID:"hb_crid",DSP:"hb_dsp"},l={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_HOST:"hb_cache_host"},f={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"},g={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},p={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},v={INVALID:"Bid has missing or invalid properties",INVALID_REQUEST_ID:"Invalid request ID",BIDDER_DISALLOWED:"Bidder code is not allowed by allowedAlternateBidderCodes / allowUnknownBidderCodes",FLOOR_NOT_MET:"Bid does not meet price floor",CANNOT_CONVERT_CURRENCY:"Unable to convert currency",DSA_REQUIRED:"Bid does not provide required DSA transparency info",DSA_MISMATCH:"Bid indicates inappropriate DSA rendering method",PRICE_TOO_HIGH:"Bid price exceeds maximum value"},m={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},h={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},b={ICON:1,MAIN:3},y=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],A={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"},E="__pb_locator__"},86833:function(n,e,t){t.d(e,{j:function(){return f},q:function(){return p}});var r=t(15901),i=t(91069),o=t(43272),a=2,u={buckets:[{max:5,increment:.5}]},c={buckets:[{max:20,increment:.1}]},s={buckets:[{max:20,increment:.01}]},d={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},l={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(n);return isNaN(r)&&(r=""),{low:""===r?"":g(n,u,t),med:""===r?"":g(n,c,t),high:""===r?"":g(n,s,t),auto:""===r?"":g(n,l,t),dense:""===r?"":g(n,d,t),custom:""===r?"":g(n,e,t)}}function g(n,e,t){var u="";if(!p(e))return u;var c=e.buckets.reduce((function(n,e){return n.max>e.max?n:e}),{max:0}),s=0,d=(0,r.I6)(e.buckets,(function(e){if(n>c.max*t){var r=e.precision;void 0===r&&(r=a),u=(e.max*t).toFixed(r)}else{if(n<=e.max*t&&n>=s*t)return e.min=s,e;s=e.max}}));return d&&(u=function(n,e,t){var r=void 0!==e.precision?e.precision:a,u=e.increment*t,c=e.min*t,s=Math.floor,d=o.$W.getConfig("cpmRoundingFunction");"function"==typeof d&&(s=d);var l,f,g=Math.pow(10,r+2),p=(n*g-c*g)/(u*g);try{l=s(p)*u+c}catch(n){f=!0}(f||"number"!=typeof l)&&((0,i.logWarn)("Invalid rounding function passed in config"),l=Math.floor(p)*u+c);return(l=Number(l.toFixed(10))).toFixed(r)}(n,d,t)),u}function p(n){if((0,i.isEmpty)(n)||!n.buckets||!Array.isArray(n.buckets))return!1;var e=!0;return n.buckets.forEach((function(n){n.max&&n.increment||(e=!1)})),e}},46031:function(n,e,t){t.d(e,{H:function(){return c},k:function(){return u}});var r,i=t(25555),o=t(91069),a=t(34595),u=(0,t(16833).A_)("sync",(function(n){return a.G})),c=(r={},function(n){var e=u(n);return r.hasOwnProperty(e)||(r[e]=new i.k((function(n){var t=(0,o.createInvisibleIframe)();t.srcdoc="<script>".concat(e,"<\/script>"),t.onload=function(){return n(t.contentWindow.render)},document.body.appendChild(t)}))),r[e]})},49164:function(n,e,t){t.d(e,{L6:function(){return v},ey:function(){return l}});var r=t(43272),i=t(16833),o=t(7873),a=t(91069),u=t(93597),c=t(41580),s=t(25555),d=t(45569),l="__pbjs_debugging__";function f(){return(0,o.m)().installedModules.includes("debugging")}function g(n){return new s.k((function(e){(0,c.R)(n,d.tp,"debugging",e)}))}var p=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.load,t=void 0===e?function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.alreadyInstalled,t=void 0===e?f:e,c=n.script,d=void 0===c?g:c,p=null;return function(){return null==p&&(p=new s.k((function(n,e){setTimeout((function(){if(t())n();else{var c="https://cdn.jsdelivr.net/npm/prebid.js@9.25.0/dist/debugging-standalone.js";(0,a.logMessage)('Debugging module not installed, loading it from "'.concat(c,'"...')),(0,o.m)()._installDebugging=!0,d(c).then((function(){(0,o.m)()._installDebugging({DEBUG_KEY:l,hook:i.A_,config:r.$W,createBid:u.O,logger:(0,a.prefixLog)("DEBUG:")})})).then(n,e)}}))}))),p}}():e,c=n.hook,d=void 0===c?(0,i.Yn)("requestBids"):c,p=null,v=!1;function m(n){for(var e=this,t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return(p||s.k.resolve()).then((function(){return n.apply(e,r)}))}function h(){d.getHooks({hook:m}).remove(),v=!1}return{enable:function(){v||(p=t(),d.before(m,99),v=!0)},disable:h,reset:function(){p=null,h()}}}();p.reset;function v(){var n=null;try{n=window.sessionStorage}catch(n){}if(null!==n){var e=p,t=null;try{t=n.getItem(l)}catch(n){}null!==t&&e.enable()}}r.$W.getConfig("debugging",(function(n){var e=n.debugging;null!=e&&e.enabled?p.enable():p.disable()}))},75023:function(n,e,t){t.r(e),t.d(e,{addEvents:function(){return A},clearEvents:function(){return w},emit:function(){return y},get:function(){return h},getEvents:function(){return b},has:function(){return E},off:function(){return m},on:function(){return v}});var r=t(91069),i=t(78969),o=t(76853),a=t(43272),u="eventHistoryTTL",c=null,s=(0,o.H)({monotonic:!0,ttl:function(){return c}});a.$W.getConfig(u,(function(n){var e,t=c;n=null===(e=n)||void 0===e?void 0:e[u],t!==(c="number"==typeof n?1e3*n:null)&&s.refresh()}));var d=Array.prototype.slice,l=Array.prototype.push,f=Object.values(i.qY),g=i.cA,p=function(){var n={},e={};function t(n){return f.includes(n)}return e.has=t,e.on=function(e,i,o){if(t(e)){var a=n[e]||{que:[]};o?(a[o]=a[o]||{que:[]},a[o].que.push(i)):a.que.push(i),n[e]=a}else r.logError("Wrong event name : "+e+" Valid event names :"+f)},e.emit=function(e){!function(e,t){r.logMessage("Emitting event for: "+e);var i=t[0]||{},o=i[g[e]],a=n[e]||{que:[]},u=Object.keys(a),c=[];s.add({eventType:e,args:i,id:o,elapsedTime:r.getPerformanceNow()}),o&&u.includes(o)&&l.apply(c,a[o].que),l.apply(c,a.que),(c||[]).forEach((function(n){if(n)try{n.apply(null,t)}catch(n){r.logError("Error executing handler:","events.js",n,e)}}))}(e,d.call(arguments,1))},e.off=function(e,t,i){var o=n[e];r.isEmpty(o)||r.isEmpty(o.que)&&r.isEmpty(o[i])||i&&(r.isEmpty(o[i])||r.isEmpty(o[i].que))||(i?(o[i].que||[]).forEach((function(n){var e=o[i].que;n===t&&e.splice(e.indexOf(n),1)})):(o.que||[]).forEach((function(n){var e=o.que;n===t&&e.splice(e.indexOf(n),1)})),n[e]=o)},e.get=function(){return n},e.addEvents=function(n){f=f.concat(n)},e.getEvents=function(){return s.toArray().map((function(n){return Object.assign({},n)}))},e}();r._setEventEmitter(p.emit.bind(p));var v=p.on,m=p.off,h=p.get,b=p.getEvents,y=p.emit,A=p.addEvents,E=p.has;function w(){s.clear()}},70068:function(n,e,t){t.d(e,{w:function(){return E}});var r=t(80296),i=t(16833),o=t(27934),a=t(5973),u=t(91069),c=t(63172),s=t(43272),d=t(25250),l=t(25555),f=t(73858),g=t(95139),p=t(83441),v=t(76811),m=t(45569);function h(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return b(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function b(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}var y={getRefererInfo:o.EN,findRootDomain:a.S,getWindowTop:u.getWindowTop,getWindowSelf:u.getWindowSelf,getHighEntropySUA:d.FD,getLowEntropySUA:d.zO},A=(0,f.i8)("FPD"),E=(0,i.A_)("sync",(function(n){var e,t=[n,(e=s.$W.getConfig("firstPartyData.uaHints"),Array.isArray(e)&&0!==e.length?y.getHighEntropySUA(e):l.k.resolve(y.getLowEntropySUA())).catch((function(){return null})),l.k.resolve("cookieDeprecationLabel"in navigator&&(0,g.io)(v.Ue,(0,p.s)(m.tp,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch((function(){return null}))];return l.k.all(t).then((function(n){var e=(0,r.A)(n,3),t=e[0],i=e[1],o=e[2],a=y.getRefererInfo();if(Object.entries(T).forEach((function(n){var e=(0,r.A)(n,2),i=e[0],o=(0,e[1])(t,a);o&&Object.keys(o).length>0&&(t[i]=(0,u.mergeDeep)({},o,t[i]))})),i&&(0,c.J)(t,"device.sua",Object.assign({},i,t.device.sua)),o){var s={cdep:o};(0,c.J)(t,"device.ext",Object.assign({},s,t.device.ext))}t=A(t);var d,l=h(f.Dy);try{for(l.s();!(d=l.n()).done;){var g=d.value;if((0,f.O$)(t,g)){t[g]=(0,u.mergeDeep)({},O(t,a),t[g]);break}}}catch(n){l.e(n)}finally{l.f()}return t}))}));function w(n){try{return n(y.getWindowTop())}catch(e){return n(y.getWindowSelf())}}function I(n){return(0,u.getDefinedParams)(n,Object.keys(n))}var T={site:function(n,e){if(!f.Dy.filter((function(n){return"site"!==n})).some(f.O$.bind(null,n)))return I({page:e.page,ref:e.ref})},device:function(){return w((function(n){var e,t=n.screen.width,r=n.screen.height,i=n.innerWidth||n.document.documentElement.clientWidth||n.document.body.clientWidth,o=n.innerHeight||n.document.documentElement.clientHeight||n.document.body.clientHeight,a={w:t,h:r,dnt:(0,u.getDNT)()?1:0,ua:n.navigator.userAgent,language:n.navigator.language.split("-").shift(),ext:{vpw:i,vph:o}};return null!==(e=n.navigator)&&void 0!==e&&e.webdriver&&(0,c.J)(a,"ext.webdriver",!0),a}))},regs:function(){var n={};w((function(n){return n.navigator.globalPrivacyControl}))&&(0,c.J)(n,"ext.gpc","1");var e=s.$W.getConfig("coppa");return"boolean"==typeof e&&(n.coppa=e?1:0),n}};function O(n,e){var t,r,i=(0,o.gR)(e.page,{noLeadingWww:!0});return I({domain:i,keywords:null===(t=w((function(n){return n.document.querySelector("meta[name='keywords']")})))||void 0===t||null===(t=t.content)||void 0===t||null===(r=t.replace)||void 0===r?void 0:r.call(t,/\s/g,""),publisher:I({domain:y.findRootDomain(i)})})}},73858:function(n,e,t){t.d(e,{Dy:function(){return i},O$:function(){return a},i8:function(){return o}});var r=t(91069),i=["dooh","app","site"];function o(n){return function(e){return i.reduce((function(t,i){return a(e,i)&&(null!=t?((0,r.logWarn)("".concat(n," specifies both '").concat(t,"' and '").concat(i,"'; dropping the latter.")),delete e[i]):t=i),t}),null),e}}function a(n,e){return null!=n[e]&&Object.keys(n[e]).length>0}},5973:function(n,e,t){t.d(e,{S:function(){return o}});var r=t(91069),i=(0,t(12938).CK)("fpdEnrichment"),o=(0,r.memoize)((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!i.cookiesAreEnabled())return n;var e,t,o=n.split(".");if(2===o.length)return n;var a=-2,u="_rdc".concat(Date.now()),c="writeable";do{e=o.slice(a).join(".");var s=new Date((0,r.timestamp)()+1e4).toUTCString();i.setCookie(u,c,s,"Lax",e,void 0),i.getCookie(u,void 0)===c?(t=!1,i.setCookie(u,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,e,void 0)):(a+=-1,t=Math.abs(a)<=o.length)}while(t);return e}))},25250:function(n,e,t){t.d(e,{CP:function(){return d},FD:function(){return s},zO:function(){return c}});var r=t(91069),i=t(25555),o=2,a=["architecture","bitness","model","platformVersion","fullVersionList"],u=["brands","mobile","platform"],c=function(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(n=window.navigator)||void 0===n?void 0:n.userAgentData,t=e&&u.some((function(n){return void 0!==e[n]}))?Object.freeze(l(1,e)):null;return function(){return t}}(),s=d();function d(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(n=window.navigator)||void 0===n?void 0:n.userAgentData,t={},u=new WeakMap;return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;if(!u.has(n)){var c=Array.from(n);c.sort(),u.set(n,c.join("|"))}var s=u.get(n);if(!t.hasOwnProperty(s))try{t[s]=e.getHighEntropyValues(n).then((function(n){return(0,r.isEmpty)(n)?null:Object.freeze(l(o,n))})).catch((function(){return null}))}catch(n){t[s]=i.k.resolve(null)}return t[s]}}function l(n,e){function t(n,e){var t={brand:n};return(0,r.isStr)(e)&&!(0,r.isEmptyStr)(e)&&(t.version=e.split(".")),t}var i={source:n};return e.platform&&(i.platform=t(e.platform,e.platformVersion)),(e.fullVersionList||e.brands)&&(i.browsers=(e.fullVersionList||e.brands).map((function(n){return t(n.brand,n.version)}))),void 0!==e.mobile&&(i.mobile=e.mobile?1:0),["model","bitness","architecture"].forEach((function(n){var t=e[n];(0,r.isStr)(t)&&(i[n]=t)})),i}},16833:function(n,e,t){t.d(e,{A_:function(){return u},Gc:function(){return s},Y6:function(){return v},Yn:function(){return d},bz:function(){return p},pT:function(){return l},xG:function(){return g}});var r=t(45458),i=t(68128),o=t.n(i),a=t(25555),u=o()({ready:o().SYNC|o().ASYNC|o().QUEUE}),c=(0,a.v)();u.ready=function(){var n=u.ready;return function(){try{return n.apply(u,arguments)}finally{c.resolve()}}}();var s=c.promise,d=u.get;function l(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;0===n.getHooks({hook:e}).length&&n.before(e,t)}var f={};function g(n,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).postInstallAllowed,i=void 0!==t&&t;u("async",(function(t){t.forEach((function(n){return e.apply(void 0,(0,r.A)(n))})),i&&(f[n]=e)}),n)([])}function p(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var i=f[n];if(i)return i.apply(void 0,t);d(n).before((function(n,e){e.push(t),n(e)}))}function v(n,e){return Object.defineProperties(e,Object.fromEntries(["before","after","getHooks","removeAll"].map((function(e){return[e,{get:function(){return n[e]}}]})))),e}},71371:function(n,e,t){t.d(e,{D4:function(){return o},G_:function(){return i},LM:function(){return a},s6:function(){return r}});var r="native",i="video",o="banner",a="adpod"},12449:function(n,e,t){t.d(e,{Bm:function(){return k},Ex:function(){return z},Gg:function(){return _},IX:function(){return N},Nh:function(){return y},Xj:function(){return F},Zj:function(){return D},gs:function(){return j},l6:function(){return O},mT:function(){return b},nk:function(){return S},rn:function(){return M},vO:function(){return R},yl:function(){return q}});var r=t(45458),i=t(80296),o=t(64467),a=t(82284),u=t(91069),c=t(15901),s=t(67314),d=t(78969),l=t(71371),f=t(29075),g=t(46031);function p(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return v(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function v(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){(0,o.A)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=[],y=Object.keys(d.x5).map((function(n){return d.x5[n]})),A={image:{ortb:{ver:"1.2",assets:[{required:1,id:1,img:{type:3,wmin:100,hmin:100}},{required:1,id:2,title:{len:140}},{required:1,id:3,data:{type:1}},{required:0,id:4,data:{type:2}},{required:0,id:5,img:{type:1,wmin:20,hmin:20}}]},image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}},E=H(d.h0),w=H(d.jO),I={img:1,js:2,1:"img",2:"js"},T={impression:1,"viewable-mrc50":2,"viewable-mrc100":3,"viewable-video50":4};function O(n){return n.native&&"object"===(0,a.A)(n.native)}function C(n){if(n&&n.type&&function(n){if(!n||!(0,c.mK)(Object.keys(A),n))return(0,u.logError)("".concat(n," nativeParam is not supported")),!1;return!0}(n.type)&&(n=A[n.type]),!n||!n.ortb||B(n.ortb))return n}function S(n){n.forEach((function(n){var e,t=n.nativeParams||(null==n||null===(e=n.mediaTypes)||void 0===e?void 0:e.native);t&&(n.nativeParams=C(t)),n.nativeParams&&(n.nativeOrtbRequest=n.nativeParams.ortb||M(n.nativeParams))}))}function B(n){var e=n.assets;if(!Array.isArray(e)||0===e.length)return(0,u.logError)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",e),!1;var t=e.map((function(n){return n.id}));return e.length!==new Set(t).size||t.some((function(n){return n!==parseInt(n,10)}))?((0,u.logError)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):n.hasOwnProperty("eventtrackers")&&!Array.isArray(n.eventtrackers)?((0,u.logError)("ortb.eventtrackers is not an array. Eventtrackers: ",n.eventtrackers),!1):e.every((function(n){return function(n){if(!(0,u.isPlainObject)(n))return(0,u.logError)("asset must be an object. Provided asset: ",n),!1;if(n.img){if(!(0,u.isNumber)(n.img.w)&&!(0,u.isNumber)(n.img.wmin))return(0,u.logError)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,u.isNumber)(n.img.h)&&!(0,u.isNumber)(n.img.hmin))return(0,u.logError)("for img asset there must be 'h' or 'hmin' property"),!1}else if(n.title){if(!(0,u.isNumber)(n.title.len))return(0,u.logError)("for title asset there must be 'len' property defined"),!1}else if(n.data){if(!(0,u.isNumber)(n.data.type))return(0,u.logError)("for data asset 'type' property must be a number"),!1}else if(n.video&&!(Array.isArray(n.video.mimes)&&Array.isArray(n.video.protocols)&&(0,u.isNumber)(n.video.minduration)&&(0,u.isNumber)(n.video.maxduration)))return(0,u.logError)("video asset is not properly configured"),!1;return!0}(n)}))}function k(n){var e,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,r=(void 0===t?s.n.index:t).getAdUnit(n);if(!r)return!1;var i=r.nativeOrtbRequest;return function(n,e){var t;if(null==n||null===(t=n.link)||void 0===t||!t.url)return(0,u.logError)("native response doesn't have 'link' property. Ortb response: ",n),!1;var r=e.assets.filter((function(n){return 1===n.required})).map((function(n){return n.id})),i=n.assets.map((function(n){return n.id})),o=r.every((function(n){return(0,c.mK)(i,n)}));o||(0,u.logError)("didn't receive a bid with all required assets. Required ids: ".concat(r,", but received ids in response: ").concat(i));return o}((null===(e=n.native)||void 0===e?void 0:e.ortb)||L(n.native,i),i)}function R(n,e){var t=e.native.ortb||$(e.native);return"click"===n.action?function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.fetchURL,i=void 0===r?u.triggerPixel:r;if(e){var o,a=(n.assets||[]).filter((function(n){return n.link})).reduce((function(n,e){return n[e.id]=e.link,n}),{}),c=(null===(o=n.link)||void 0===o?void 0:o.clicktrackers)||[],s=a[e],d=c;s&&(d=s.clicktrackers||[]),d.forEach((function(n){return i(n)}))}else{var l;((null===(l=n.link)||void 0===l?void 0:l.clicktrackers)||[]).forEach((function(n){return i(n)}))}}(t,null==n?void 0:n.assetId):function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.runMarkup,r=void 0===t?function(n){return(0,u.insertHtmlIntoIframe)(n)}:t,i=e.fetchURL,o=void 0===i?u.triggerPixel:i,a=(n.eventtrackers||[]).filter((function(n){return n.event===T.impression})),c=a.reduce((function(n,e){return I.hasOwnProperty(e.method)&&n[I[e.method]].push(e.url),n}),{img:[],js:[]}),s=c.img,d=c.js;n.imptrackers&&(s=s.concat(n.imptrackers));s.forEach((function(n){return o(n)})),d=d.map((function(n){return'<script async src="'.concat(n,'"><\/script>')})),n.jstracker&&(d=d.concat([n.jstracker]));d.length&&r(d.join("\n"))}(t),n.action}function j(n,e){var t,r=null==e?void 0:e.nativeOrtbRequest,i=null===(t=n.native)||void 0===t?void 0:t.ortb;if(r&&i){var o=z(i,r);Object.assign(n.native,o)}["rendererUrl","adTemplate"].forEach((function(t){var r,i=null==e||null===(r=e.nativeParams)||void 0===r?void 0:r[t];i&&(n.native[t]=W(i))}))}function D(n){var e,t,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,i=void 0===r?s.n.index:r,o={},a=i.getAdUnit(n),u=null==(null==a||null===(e=a.nativeParams)||void 0===e?void 0:e.ortb)&&!1!==(null==a||null===(t=a.nativeParams)||void 0===t?void 0:t.sendTargetingKeys),c=function(n){var e,t={};null!=n&&null!==(e=n.nativeParams)&&void 0!==e&&e.ext&&Object.keys(n.nativeParams.ext).forEach((function(n){t[n]="hb_native_".concat(n)}));return h(h({},d.x5),t)}(a),l=h(h({},n.native),n.native.ext);return delete l.ext,Object.keys(l).forEach((function(e){var t,r,i,s=c[e],d=W(n.native[e])||W(null==n||null===(t=n.native)||void 0===t||null===(t=t.ext)||void 0===t?void 0:t[e]);if("adTemplate"!==e&&s&&d){var l,f=null==a||null===(r=a.nativeParams)||void 0===r||null===(r=r[e])||void 0===r?void 0:r.sendId;if("boolean"!=typeof f)f=null==a||null===(l=a.nativeParams)||void 0===l||null===(l=l.ext)||void 0===l||null===(l=l[e])||void 0===l?void 0:l.sendId;if(f)d="".concat(s,":").concat(n.adId);var g,p=null==a||null===(i=a.nativeParams)||void 0===i||null===(i=i[e])||void 0===i?void 0:i.sendTargetingKeys;if("boolean"!=typeof p)p=null==a||null===(g=a.nativeParams)||void 0===g||null===(g=g.ext)||void 0===g||null===(g=g[e])||void 0===g?void 0:g.sendTargetingKeys;("boolean"==typeof p?p:u)&&(o[s]=d)}})),o}function U(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return Object.entries(n).filter((function(n){var r=(0,i.A)(n,2),o=r[0];return r[1]&&(!1===t&&"ext"===o||null==e||e.includes(o))})).forEach((function(n){var a=(0,i.A)(n,2),u=a[0],c=a[1];!1===t&&"ext"===u?o.push.apply(o,(0,r.A)(U(c,e,!0))):(t||d.x5.hasOwnProperty(u))&&o.push({key:u,value:W(c)})})),o}function _(n,e,t){var r,i=h(h({},(0,u.getDefinedParams)(n.native,["rendererUrl","adTemplate"])),{},{assets:U(n.native,t),nativeKeys:d.x5});return n.native.ortb?i.ortb=n.native.ortb:null!==(r=e.mediaTypes)&&void 0!==r&&null!==(r=r.native)&&void 0!==r&&r.ortb&&(i.ortb=L(n.native,e.nativeOrtbRequest)),i}function P(n,e,t){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).index,i=void 0===r?s.n.index:r,o={message:"assetResponse",adId:n.adId},a=(0,f.vd)(e).native;return a?(o.native=Object.assign({},a),o.renderer=(0,g.k)(e),null!=t&&(a.assets=a.assets.filter((function(n){var e=n.key;return t.includes(e)})))):a=_(e,i.getAdUnit(e),t),Object.assign(o,a)}var x=Object.fromEntries(Object.entries(d.x5).map((function(n){var e=(0,i.A)(n,2),t=e[0];return[e[1],t]})));function N(n,e){var t=n.assets.map((function(n){return x[n]}));return P(n,e,t)}function q(n,e){return P(n,e,null)}function W(n){return(null==n?void 0:n.url)||n}function M(n){if(n||(0,u.isPlainObject)(n)){var e={ver:"1.2",assets:[]};for(var t in n)if(!d._B.includes(t))if(d.x5.hasOwnProperty(t))if("privacyLink"!==t){var r=n[t],i=0;r.required&&(0,u.isBoolean)(r.required)&&(i=Number(r.required));var o={id:e.assets.length,required:i};if(t in d.h0)o.data={type:d.jO[d.h0[t]]},r.len&&(o.data.len=r.len);else if("icon"===t||"image"===t){if(o.img={type:"icon"===t?d.oA.ICON:d.oA.MAIN},r.aspect_ratios)if((0,u.isArray)(r.aspect_ratios))if(r.aspect_ratios.length){var a=r.aspect_ratios[0],c=a.min_width,s=a.min_height;(0,u.isInteger)(c)&&(0,u.isInteger)(s)?(o.img.wmin=c,o.img.hmin=s):(0,u.logError)("image.aspect_ratios min_width or min_height are invalid: ",c,s);var l=r.aspect_ratios.filter((function(n){return n.ratio_width&&n.ratio_height})).map((function(n){return"".concat(n.ratio_width,":").concat(n.ratio_height)}));l.length>0&&(o.img.ext={aspectratios:l})}else(0,u.logError)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,u.logError)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,u.isInteger)(r.sizes[0])&&(0,u.isInteger)(r.sizes[1])?(o.img.w=r.sizes[0],o.img.h=r.sizes[1],delete o.img.hmin,delete o.img.wmin):(0,u.logError)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===t?o.title={len:r.len||140}:"ext"===t&&(o.ext=r,delete o.required);e.assets.push(o)}else e.privacy=1;else(0,u.logError)("Unrecognized native asset code: ".concat(t,". Asset will be ignored."));return e}(0,u.logError)("Native assets object is empty or not an object: ",n)}function G(n){if(B(n)){var e,t={},r=p(n.assets);try{var i=function(){var r=e.value;if(r.title){var i={required:!!r.required&&Boolean(r.required),len:r.title.len};t.title=i}else if(r.img){var o={required:!!r.required&&Boolean(r.required)};if(r.img.w&&r.img.h)o.sizes=[r.img.w,r.img.h];else if(r.img.wmin&&r.img.hmin){var a=function(n,e){for(;n&&e&&n!==e;)n>e?n-=e:e-=n;return n||e}(r.img.wmin,r.img.hmin);o.aspect_ratios=[{min_width:r.img.wmin,min_height:r.img.hmin,ratio_width:r.img.wmin/a,ratio_height:r.img.hmin/a}]}r.img.type===d.oA.MAIN?t.image=o:t.icon=o}else if(r.data){var u=Object.keys(d.jO).find((function(n){return d.jO[n]===r.data.type})),c=Object.keys(d.h0).find((function(n){return d.h0[n]===u}));t[c]={required:!!r.required&&Boolean(r.required)},r.data.len&&(t[c].len=r.data.len)}n.privacy&&(t.privacyLink={required:!1})};for(r.s();!(e=r.n()).done;)i()}catch(n){r.e(n)}finally{r.f()}return t}}function F(n){if(!n||!(0,u.isArray)(n))return n;if(!n.some((function(n){var e;return null===(e=((null==n?void 0:n.mediaTypes)||{})[l.s6])||void 0===e?void 0:e.ortb})))return n;var e,t=(0,u.deepClone)(n),r=p(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.mediaTypes&&i.mediaTypes[l.s6]&&i.mediaTypes[l.s6].ortb&&(i.mediaTypes[l.s6]=Object.assign((0,u.pick)(i.mediaTypes[l.s6],d._B),G(i.mediaTypes[l.s6].ortb)),i.nativeParams=C(i.mediaTypes[l.s6]))}}catch(n){r.e(n)}finally{r.f()}return t}function $(n){var e={link:{},eventtrackers:[]};return Object.entries(n).forEach((function(n){var t=(0,i.A)(n,2),r=t[0],o=t[1];switch(r){case"clickUrl":e.link.url=o;break;case"clickTrackers":e.link.clicktrackers=Array.isArray(o)?o:[o];break;case"impressionTrackers":(Array.isArray(o)?o:[o]).forEach((function(n){e.eventtrackers.push({event:T.impression,method:I.img,url:n})}));break;case"javascriptTrackers":e.jstracker=Array.isArray(o)?o.join(""):o;break;case"privacyLink":e.privacy=o}})),e}function L(n,e){var t=h(h({},$(n)),{},{assets:[]});function r(n,r){var i=e.assets.find(n);null!=i&&(r(i=(0,u.deepClone)(i)),t.assets.push(i))}return Object.keys(n).filter((function(e){return!!n[e]})).forEach((function(e){var t=W(n[e]);switch(e){case"title":r((function(n){return null!=n.title}),(function(n){n.title={text:t}}));break;case"image":case"icon":var i="image"===e?d.oA.MAIN:d.oA.ICON;r((function(n){return null!=n.img&&n.img.type===i}),(function(n){n.img={url:t}}));break;default:e in d.h0&&r((function(n){return null!=n.data&&n.data.type===d.jO[d.h0[e]]}),(function(n){n.data={value:t}}))}})),t}function z(n,e){var t,i={},o=(null==e?void 0:e.assets)||[];i.clickUrl=null===(t=n.link)||void 0===t?void 0:t.url,i.privacyLink=n.privacy;var a,u=p((null==n?void 0:n.assets)||[]);try{var c=function(){var n=a.value,e=o.find((function(e){return n.id===e.id}));if(n.title)i.title=n.title.text;else if(n.img){var t;i[(null==e||null===(t=e.img)||void 0===t?void 0:t.type)===d.oA.MAIN?"image":"icon"]={url:n.img.url,width:n.img.w,height:n.img.h}}else if(n.data){var r;i[E[w[null==e||null===(r=e.data)||void 0===r?void 0:r.type]]]=n.data.value}};for(u.s();!(a=u.n()).done;)c()}catch(n){u.e(n)}finally{u.f()}i.impressionTrackers=[];var s,l=[];n.imptrackers&&(s=i.impressionTrackers).push.apply(s,(0,r.A)(n.imptrackers));var f,g=p((null==n?void 0:n.eventtrackers)||[]);try{for(g.s();!(f=g.n()).done;){var v=f.value;v.event===T.impression&&v.method===I.img&&i.impressionTrackers.push(v.url),v.event===T.impression&&v.method===I.js&&l.push(v.url)}}catch(n){g.e(n)}finally{g.f()}return l=l.map((function(n){return'<script async src="'.concat(n,'"><\/script>')})),null!=n&&n.jstracker&&l.push(n.jstracker),l.length&&(i.javascriptTrackers=l.join("\n")),i}function H(n){var e={};for(var t in n)e[n[t]]=t;return e}},1e3:function(n,e,t){t.d(e,{Cf:function(){return c},S3:function(){return o},Tb:function(){return a},WR:function(){return u},e4:function(){return d},pS:function(){return p},qN:function(){return s},yB:function(){return v},zt:function(){return r}});var r=["request","imp","bidResponse","response"],i=["default","pbs"],o=r[0],a=r[1],u=r[2],c=r[3],s=i[0],d=i[1],l=new Set(r);var f,g=(f={},{registerOrtbProcessor:function(n){var e=n.type,t=n.name,i=n.fn,o=n.priority,a=void 0===o?0:o,u=n.dialects,c=void 0===u?[s]:u;if(!l.has(e))throw new Error("ORTB processor type must be one of: ".concat(r.join(", ")));c.forEach((function(n){f.hasOwnProperty(n)||(f[n]={}),f[n].hasOwnProperty(e)||(f[n][e]={}),f[n][e][t]={priority:a,fn:i}}))},getProcessors:function(n){return f[n]||{}}}),p=g.registerOrtbProcessor,v=g.getProcessors},15901:function(n,e,t){function r(n,e,t){return n&&n.includes(e,t)||!1}function i(){return Array.from.apply(Array,arguments)}function o(n,e,t){return n&&n.find(e,t)}function a(n,e,t){return n&&n.findIndex(e,t)}t.d(e,{A6:function(){return i},I6:function(){return o},SL:function(){return a},mK:function(){return r}})},27718:function(n,e,t){t.d(e,{WH:function(){return tn},Z:function(){return on},gH:function(){return un}});var r=t(80296),i=t(45458),o=t(64467),a=t(7873),u=t(91069),c=t(70433),s=t(63172),d=t(12449),l=t(78969),f=t(15901),g=t(29075),p=t(46031);function v(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?v(Object(t),!0).forEach((function(e){(0,o.A)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var h=l.nl.REQUEST,b=l.nl.RESPONSE,y=l.nl.NATIVE,A=l.nl.EVENT,E=(0,o.A)((0,o.A)({},h,(function(n,e,t){(0,g.bw)({renderFn:function(e){n(Object.assign({message:b,renderer:(0,p.k)(t)},e))},resizeFn:I(e.adId,t),options:e.options,adId:e.adId,bidResponse:t})})),A,(function(n,e,t){if(null==t)return void(0,u.logError)("Cannot find ad '".concat(e.adId,"' for x-origin event request"));if(t.status!==l.tl.RENDERED)return void(0,u.logWarn)("Received x-origin event request without corresponding render request for ad '".concat(t.adId,"'"));return(0,g.Uc)(e,t)}));function w(){window.addEventListener("message",(function(n){!function(n){var e=n.message?"message":"data",t={};try{t=JSON.parse(n[e])}catch(n){return}if(t&&t.adId&&t.message&&E.hasOwnProperty(t.message))(0,g.$A)(t.adId,t.message===l.nl.REQUEST).then((function(e){var r,i;E[t.message]((r=t.adId,i=function(n){return null==n.origin&&0===n.ports.length?function(){var n="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw(0,u.logError)(n),new Error(n)}:n.ports.length>0?function(e){n.ports[0].postMessage(JSON.stringify(e))}:function(e){n.source.postMessage(JSON.stringify(e),n.origin)}}(n),function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];return i.apply(void 0,[Object.assign({},n,{adId:r})].concat(t))}),t,e)}))}(n)}),!1)}function I(n,e){return function(t,r){!function(n){var e=n.adId,t=n.adUnitCode,r=n.width,i=n.height;function o(n){return n?n+"px":"100%"}function a(n){var r=c(e,t),i=document.getElementById(r);return i&&i.querySelector(n)}function c(n,e){return(0,u.isGptPubadsDefined)()?s(n):(0,u.isApnGetTagDefined)()?d(e):e}function s(n){var e=(0,f.I6)(window.googletag.pubads().getSlots(),(function(e){return(0,f.I6)(e.getTargetingKeys(),(function(t){return(0,f.mK)(e.getTargeting(t),n)}))}));return e?e.getSlotElementId():null}function d(n){var e=window.apntag.getTag(n);return e&&e.targetId}["div","iframe"].forEach((function(n){var e=a(n+':not([style*="display: none"])');if(e){var c=e.style;c.width=o(r),c.height=o(i)}else(0,u.logError)("Unable to locate matching page element for adUnitCode ".concat(t,". Can't resize it to ad's dimensions. Please review setup."))}))}(m(m({},e),{},{width:t,height:r,adId:n}))}}Object.assign(E,(0,o.A)({},y,(function(n,e,t){if(null==t)return void(0,u.logError)("Cannot find ad for x-origin event request: '".concat(e.adId,"'"));switch(e.action){case"assetRequest":(0,g.Hh)(t,(function(){return n((0,d.IX)(e,t))}));break;case"allAssetRequest":(0,g.Hh)(t,(function(){return n((0,d.yl)(e,t))}));break;default:(0,g.vW)(e,t,{resizeFn:I(e.adId,t)}),(0,g.Pk)(t)}})));var T=t(38230),O=t(43272),C=t(67314),S=t(97779),B=t(16833),k=t(49164),R=t(93597),j=t(12938),D=t(11445),U=t(75023),_=t(16894),P=t(25555),x=t(70068),N=t(16916),q=t(12713),W=t(63895),M=t(82284),G=new Map([["format",function(n){return Array.isArray(n)&&n.length>0&&n.every((function(n){return"object"===(0,M.A)(n)}))}],["w",u.isInteger],["h",u.isInteger],["btype",u.isArrayOfNums],["battr",u.isArrayOfNums],["pos",u.isInteger],["mimes",function(n){return Array.isArray(n)&&n.length>0&&n.every((function(n){return"string"==typeof n}))}],["topframe",function(n){return[1,0].includes(n)}],["expdir",u.isArrayOfNums],["api",u.isArrayOfNums],["id",u.isStr],["vcm",function(n){return[1,0].includes(n)}]]),F=t(71371),$=(0,a.m)(),L=T.zt.triggerUserSyncs,z=l.qY.ADD_AD_UNITS,H=l.qY.REQUEST_BIDS,V=l.qY.SET_TARGETING,K={bidWon:function(n){if(!C.n.getBidsRequested().map((function(n){return n.bids.map((function(n){return n.adUnitCode}))})).reduce(u.flatten).filter(u.uniques).includes(n))return void(0,u.logError)('The "'+n+'" placement is not defined.');return!0}};function Y(n,e){var t=[];return(0,u.isArray)(n)&&(e?n.length===e:n.length>0)&&(n.every((function(n){return(0,u.isArrayOfNums)(n,2)}))?t=n:(0,u.isArrayOfNums)(n,2)&&t.push(n)),t}function J(n,e){var t=(0,c.A)(n,"ortb2Imp.".concat(e)),a=(0,c.A)(n,"mediaTypes.".concat(e));if(t||a){var d=(0,o.A)((0,o.A)({},F.G_,W.Zy),F.D4,G)[e];d&&(0,i.A)(d).forEach((function(t){var i=(0,r.A)(t,2),o=i[0],a=(i[1],(0,c.A)(n,"mediaTypes.".concat(e,".").concat(o))),d=(0,c.A)(n,"ortb2Imp.".concat(e,".").concat(o));null==a&&null==d||(null==a?(0,s.J)(n,"mediaTypes.".concat(e,".").concat(o),d):null==d?(0,s.J)(n,"ortb2Imp.".concat(e,".").concat(o),a):((0,u.logWarn)("adUnit ".concat(n.code,": specifies conflicting ortb2Imp.").concat(e,".").concat(o," and mediaTypes.").concat(e,".").concat(o,", the latter will be ignored"),n),(0,s.J)(n,"mediaTypes.".concat(e,".").concat(o),d)))}))}}function X(n){var e=(0,u.deepClone)(n),t=e.mediaTypes.banner,r=Y(t.sizes);return r.length>0?(t.sizes=r,e.sizes=r):((0,u.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 e.mediaTypes.banner),J(e,"banner"),e}function Q(n){var e=(0,u.deepClone)(n),t=e.mediaTypes.video;if(t.playerSize){var r="number"==typeof t.playerSize[0]?2:1,i=Y(t.playerSize,r);i.length>0?(2===r&&(0,u.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),t.playerSize=i,e.sizes=i):((0,u.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 e.mediaTypes.video.playerSize)}return(0,W.aP)(e),J(e,"video"),e}function Z(n){function e(e){return(0,u.logError)('Error in adUnit "'.concat(n.code,'": ').concat(e,". Removing native request from ad unit"),n),delete r.mediaTypes.native,r}function t(n){for(var e=0,t=["sendTargetingKeys","types"];e<t.length;e++){var r=t[e];if((0,u.logWarn)("Removing native key ".concat(r," from request")),delete i[r],i.hasOwnProperty(r)){var o=n(r);if(o)return o}}}var r=(0,u.deepClone)(n),i=r.mediaTypes.native;if(i.ortb){var o;if(null!==(o=i.ortb.assets)&&void 0!==o&&o.some((function(n){return!(0,u.isNumber)(n.id)||n.id<0||n.id%1!=0})))return e("native asset ID must be a nonnegative integer");if(t((function(n){return e('ORTB native requests cannot specify "'.concat(n,'"'))})))return r;var a=Object.keys(l.x5).filter((function(n){return l.x5[n].includes("hb_native_")})),c=Object.keys(i).filter((function(n){return a.includes(n)}));c.length>0&&((0,u.logError)("when using native OpenRTB format, you cannot use legacy native properties. Deleting ".concat(c," keys from request.")),c.forEach((function(n){return delete r.mediaTypes.native[n]})))}else t((function(n){return"mediaTypes.native.".concat(n," is deprecated, consider using native ORTB instead")}));return i.image&&i.image.sizes&&!Array.isArray(i.image.sizes)&&((0,u.logError)("Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request."),delete r.mediaTypes.native.image.sizes),i.image&&i.image.aspect_ratios&&!Array.isArray(i.image.aspect_ratios)&&((0,u.logError)("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete r.mediaTypes.native.image.aspect_ratios),i.icon&&i.icon.sizes&&!Array.isArray(i.icon.sizes)&&((0,u.logError)("Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request."),delete r.mediaTypes.native.icon.sizes),r}function nn(n,e){var t,r=null==n||null===(t=n.mediaTypes)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.pos;if(!(0,u.isNumber)(r)||isNaN(r)||!isFinite(r)){var i="Value of property 'pos' on ad unit ".concat(n.code," should be of type: Number");(0,u.logWarn)(i),delete n.mediaTypes[e].pos}return n}function en(n){var e=function(e){return"adUnit.code '".concat(n.code,"' ").concat(e)},t=n.mediaTypes,r=n.bids;return null==r||(0,u.isArray)(r)?null==r&&null==n.ortb2Imp?((0,u.logError)(e("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):t&&0!==Object.keys(t).length?(null==n.ortb2Imp||null!=r&&0!==r.length||(n.bids=[{bidder:null}],(0,u.logMessage)(e("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),n):((0,u.logError)(e("does not define a 'mediaTypes' object. This is a required field for the auction, so this adUnit has been removed.")),null):((0,u.logError)(e("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}(0,k.L6)(),$.bidderSettings=$.bidderSettings||{},$.libLoaded=!0,$.version="v9.25.0",(0,u.logInfo)("Prebid.js v9.25.0 loaded"),$.installedModules=$.installedModules||[],$.adUnits=$.adUnits||[],$.triggerUserSyncs=L;var tn={validateAdUnit:en,validateBannerMediaType:X,validateSizes:Y};Object.assign(tn,{validateNativeMediaType:Z}),Object.assign(tn,{validateVideoMediaType:Q});var rn,on=(0,B.A_)("sync",(function(n){var e=[];return n.forEach((function(n){if(null!=(n=en(n))){var t,r,i,o=n.mediaTypes;o.banner&&(t=X(n),o.banner.hasOwnProperty("pos")&&(t=nn(t,"banner"))),o.video&&(r=Q(t||n),o.video.hasOwnProperty("pos")&&(r=nn(r,"video"))),o.native&&(i=Z(r||(t||n)));var a=Object.assign({},t,r,i);e.push(a)}})),e}),"checkAdUnitSetup");function an(n){var e=C.n[n]().filter((function(n){return C.n.getAdUnitCodes().includes(n.adUnitCode)})),t=C.n.getLastAuctionId();return e.map((function(n){return n.adUnitCode})).filter(u.uniques).map((function(n){return e.filter((function(e){return e.auctionId===t&&e.adUnitCode===n}))})).filter((function(n){return n&&n[0]&&n[0].adUnitCode})).map((function(n){return(0,o.A)({},n[0].adUnitCode,{bids:n})})).reduce((function(n,e){return Object.assign(n,e)}),{})}$.getAdserverTargetingForAdUnitCodeStr=function(n){if((0,u.logInfo)("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),n){var e=$.getAdserverTargetingForAdUnitCode(n);return(0,u.transformAdServerTargetingObj)(e)}(0,u.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},$.getHighestUnusedBidResponseForAdUnitCode=function(n){if(n){var e=C.n.getAllBidsForAdUnitCode(n).filter(S.Yl);return e.length?e.reduce(q.Vk):{}}(0,u.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},$.getAdserverTargetingForAdUnitCode=function(n){return $.getAdserverTargeting(n)[n]},$.getAdserverTargeting=function(n){return(0,u.logInfo)("Invoking pbjs.getAdserverTargeting",arguments),S.iS.getAllTargeting(n)},$.getConsentMetadata=function(){return(0,u.logInfo)("Invoking pbjs.getConsentMetadata"),N.SL.getConsentMeta()},$.getNoBids=function(){return(0,u.logInfo)("Invoking pbjs.getNoBids",arguments),an("getNoBids")},$.getNoBidsForAdUnitCode=function(n){return{bids:C.n.getNoBids().filter((function(e){return e.adUnitCode===n}))}},$.getBidResponses=function(){return(0,u.logInfo)("Invoking pbjs.getBidResponses",arguments),an("getBidsReceived")},$.getBidResponsesForAdUnitCode=function(n){return{bids:C.n.getBidsReceived().filter((function(e){return e.adUnitCode===n}))}},$.setTargetingForGPTAsync=function(n,e){(0,u.logInfo)("Invoking pbjs.setTargetingForGPTAsync",arguments),(0,u.isGptPubadsDefined)()?S.iS.setTargetingForGPT(n,e):(0,u.logError)("window.googletag is not defined on the page")},$.setTargetingForAst=function(n){(0,u.logInfo)("Invoking pbjs.setTargetingForAn",arguments),S.iS.isApntagDefined()?(S.iS.setTargetingForAst(n),U.emit(V,S.iS.getAllTargeting())):(0,u.logError)("window.apntag is not defined on the page")},$.renderAd=(0,B.A_)("async",(function(n,e,t){(0,u.logInfo)("Invoking pbjs.renderAd",arguments),(0,u.logMessage)("Calling renderAd with adId :"+e),(0,g.BS)(n,e,t)})),$.removeAdUnit=function(n){((0,u.logInfo)("Invoking pbjs.removeAdUnit",arguments),n)?((0,u.isArray)(n)?n:[n]).forEach((function(n){for(var e=$.adUnits.length-1;e>=0;e--)$.adUnits[e].code===n&&$.adUnits.splice(e,1)})):$.adUnits=[]},$.requestBids=(rn=(0,B.A_)("async",(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.bidsBackHandler,t=n.timeout,i=n.adUnits,o=n.adUnitCodes,a=n.labels,c=n.auctionId,s=n.ttlBuffer,d=n.ortb2,l=n.metrics,g=n.defer;U.emit(H);var p=t||O.$W.getConfig("bidderTimeout");(0,u.logInfo)("Invoking pbjs.requestBids",arguments),null==o||Array.isArray(o)||(o=[o]),o&&o.length?i=i.filter((function(n){return(0,f.mK)(o,n.code)})):o=i&&i.map((function(n){return n.code})),o=o.filter(u.uniques);var v={global:(0,u.mergeDeep)({},O.$W.getAnyConfig("ortb2")||{},d||{}),bidder:Object.fromEntries(Object.entries(O.$W.getBidderConfig()).map((function(n){var e=(0,r.A)(n,2),t=e[0],i=e[1];return[t,(0,u.deepClone)(i.ortb2)]})).filter((function(n){var e=(0,r.A)(n,2);return e[0],null!=e[1]})))};return(0,x.w)(P.k.resolve(v.global)).then((function(n){return v.global=n,un({bidsBackHandler:e,timeout:p,adUnits:i,adUnitCodes:o,labels:a,auctionId:c,ttlBuffer:s,ortb2Fragments:v,metrics:l,defer:g})}))}),"requestBids"),(0,B.Y6)(rn,(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.adUnits||$.adUnits;return n.adUnits=(0,u.isArray)(e)?e.slice():[e],n.metrics=(0,_.K7)(),n.metrics.checkpoint("requestBids"),n.defer=(0,P.v)({promiseFactory:function(n){return new Promise(n)}}),rn.call(this,n),n.defer.promise})));var un=(0,B.A_)("async",(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.bidsBackHandler,t=n.timeout,r=n.adUnits,i=n.ttlBuffer,o=n.adUnitCodes,a=n.labels,c=n.auctionId,d=n.ortb2Fragments,l=n.metrics,g=n.defer,p=(0,D.pX)(O.$W.getConfig("s2sConfig")||[]);function v(n,t,r){if("function"==typeof e)try{e(n,t,r)}catch(n){(0,u.logError)("Error executing bidsBackHandler",null,n)}g.resolve({bids:n,timedOut:t,auctionId:r})}!function(n){n.forEach((function(n){return(0,W.V0)(n)}))}(r),r=(0,_.BO)(l).measureTime("requestBids.validate",(function(){return on(r)}));var m={};if(r.forEach((function(n){var e,t=Object.keys(n.mediaTypes||{banner:"banner"}),r=n.bids.map((function(n){return n.bidder})),o=D.Ay.bidderRegistry,a=r.filter((function(n){return!p.has(n)}));n.adUnitId=(0,u.generateUUID)();var c=null===(e=n.ortb2Imp)||void 0===e||null===(e=e.ext)||void 0===e?void 0:e.tid;c&&(m.hasOwnProperty(n.code)?(0,u.logWarn)("Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '".concat(n.code,"'")):m[n.code]=c),null==i||n.hasOwnProperty("ttlBuffer")||(n.ttlBuffer=i),a.forEach((function(e){var r=o[e],i=r&&r.getSpec&&r.getSpec(),a=i&&i.supportedMediaTypes||["banner"];t.some((function(n){return(0,f.mK)(a,n)}))||((0,u.logWarn)((0,u.unsupportedBidderMessage)(n,e)),n.bids=n.bids.filter((function(n){return n.bidder!==e})))}))})),r&&0!==r.length){r.forEach((function(n){var e,t=(null===(e=n.ortb2Imp)||void 0===e||null===(e=e.ext)||void 0===e?void 0:e.tid)||m[n.code]||(0,u.generateUUID)();m.hasOwnProperty(n.code)||(m[n.code]=t),n.transactionId=t,(0,s.J)(n,"ortb2Imp.ext.tid",t)}));var h=C.n.createAuction({adUnits:r,adUnitCodes:o,callback:v,cbTimeout:t,labels:a,auctionId:c,ortb2Fragments:d,metrics:l}),b=r.length;b>15&&(0,u.logInfo)("Current auction ".concat(h.getAuctionId()," contains ").concat(b," adUnits."),r),o.forEach((function(n){return S.iS.setLatestAuctionForAdUnit(n,h.getAuctionId())})),h.callBids()}else(0,u.logMessage)("No adUnits configured. No bids requested."),v()}),"startAuction");$.requestBids.before((function(n,e){function t(n){for(var e;e=n.shift();)e()}t(j.s0),t(cn),n.call(this,e)}),49),$.addAdUnits=function(n){(0,u.logInfo)("Invoking pbjs.addAdUnits",arguments),$.adUnits.push.apply($.adUnits,(0,u.isArray)(n)?n:[n]),U.emit(z)},$.onEvent=function(n,e,t){(0,u.logInfo)("Invoking pbjs.onEvent",arguments),(0,u.isFn)(e)?!t||K[n].call(null,t)?U.on(n,e,t):(0,u.logError)('The id provided is not valid for event "'+n+'" and no handler was set.'):(0,u.logError)('The event handler provided is not a function and was not set on event "'+n+'".')},$.offEvent=function(n,e,t){(0,u.logInfo)("Invoking pbjs.offEvent",arguments),t&&!K[n].call(null,t)||U.off(n,e,t)},$.getEvents=function(){return(0,u.logInfo)("Invoking pbjs.getEvents"),U.getEvents()},$.registerBidAdapter=function(n,e){(0,u.logInfo)("Invoking pbjs.registerBidAdapter",arguments);try{D.Ay.registerBidAdapter(n(),e)}catch(n){(0,u.logError)("Error registering bidder adapter : "+n.message)}},$.registerAnalyticsAdapter=function(n){(0,u.logInfo)("Invoking pbjs.registerAnalyticsAdapter",arguments);try{D.Ay.registerAnalyticsAdapter(n)}catch(n){(0,u.logError)("Error registering analytics adapter : "+n.message)}},$.createBid=function(n){return(0,u.logInfo)("Invoking pbjs.createBid",arguments),(0,R.O)(n)};var cn=[],sn=(0,B.A_)("async",(function(n){n&&!(0,u.isEmpty)(n)?((0,u.logInfo)("Invoking pbjs.enableAnalytics for: ",n),D.Ay.enableAnalytics(n)):(0,u.logError)("pbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");function dn(n){if("function"==typeof n)try{n.call()}catch(n){(0,u.logError)("Error processing command :",n.message,n.stack)}else(0,u.logError)("Commands written into pbjs.cmd.push must be wrapped in a function")}function ln(n){n.forEach((function(n){if(void 0===n.called)try{n.call(),n.called=!0}catch(n){(0,u.logError)("Error processing command :","prebid.js",n)}}))}$.enableAnalytics=function(n){cn.push(sn.bind(this,n))},$.aliasBidder=function(n,e,t){(0,u.logInfo)("Invoking pbjs.aliasBidder",arguments),n&&e?D.Ay.aliasBidAdapter(n,e,t):(0,u.logError)("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},$.aliasRegistry=D.Ay.aliasRegistry,O.$W.getConfig("aliasRegistry",(function(n){"private"===n.aliasRegistry&&delete $.aliasRegistry})),$.getAllWinningBids=function(){return C.n.getAllWinningBids()},$.getAllPrebidWinningBids=function(){return C.n.getBidsReceived().filter((function(n){return n.status===l.tl.BID_TARGETING_SET}))},$.getHighestCpmBids=function(n){return S.iS.getWinningBids(n)},$.clearAllAuctions=function(){C.n.clearAllAuctions()},$.markWinningBidAsUsed=function(n){var e,t=n.adId,r=n.adUnitCode,i=n.analytics,o=void 0!==i&&i;r&&null==t?e=S.iS.getWinningBids(r):t?e=C.n.getBidsReceived().filter((function(n){return n.adId===t})):(0,u.logWarn)("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),e.length>0&&(o?(0,g.n6)(e[0]):C.n.addWinningBid(e[0]),(0,g.qn)(e[0]))},$.getConfig=O.$W.getAnyConfig,$.readConfig=O.$W.readAnyConfig,$.mergeConfig=O.$W.mergeConfig,$.mergeBidderConfig=O.$W.mergeBidderConfig,$.setConfig=O.$W.setConfig,$.setBidderConfig=O.$W.setBidderConfig,$.que.push((function(){return w()})),$.processQueue=function(){$.que.push=$.cmd.push=dn,(0,g.XO)(),B.A_.ready(),ln($.que),ln($.cmd)},$.triggerBilling=function(n){var e=n.adId,t=n.adUnitCode;C.n.getAllWinningBids().filter((function(n){return n.adId===e||null==e&&n.adUnitCode===t})).forEach((function(n){D.Ay.triggerBilling(n),(0,g.vB)(n)}))}},7873:function(n,e,t){t.d(e,{E:function(){return a},m:function(){return o}});var r=window,i=r.pbjs=r.pbjs||{};function o(){return i}function a(n){i.installedModules.push(n)}i.cmd=i.cmd||[],i.que=i.que||[],r===window&&(r._pbjsGlobals=r._pbjsGlobals||[],r._pbjsGlobals.push("pbjs"))},27934:function(n,e,t){t.d(e,{EN:function(){return s},gR:function(){return a}});var r=t(43272),i=t(91069);function o(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!n)return n;if(/\w+:\/\//.exec(n))return n;var t=e.location.protocol;try{t=e.top.location.protocol}catch(n){}return/^\/\//.exec(n)?t+n:"".concat(t,"//").concat(n)}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.noLeadingWww,r=void 0!==t&&t,i=e.noPort,a=void 0!==i&&i;try{n=new URL(o(n))}catch(n){return}return n=a?n.hostname:n.host,r&&n.startsWith("www.")&&(n=n.substring(4)),n}function u(n){try{var e=n.querySelector("link[rel='canonical']");if(null!==e)return e.href}catch(n){}return null}var c,s=function(n){var e,t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return i.top!==i?n:function(){var o=u(i.document),a=i.location.href;return e===o&&a===t||(e=o,t=a,r=n()),r}}((c=window,function(){var n,e,t,s,d=[],l=function(n){try{if(!n.location.ancestorOrigins)return;return n.location.ancestorOrigins}catch(n){}}(c),f=r.$W.getConfig("maxNestedIframes"),g=!1,p=0,v=!1,m=!1,h=!1;do{var b=n,y=m,A=void 0,E=!1,w=null;m=!1,n=n?n.parent:c;try{A=n.location.href||null}catch(n){E=!0}if(E)if(y){var I=b.context;try{e=w=I.sourceUrl,h=!0,v=!0,n===c.top&&(g=!0),I.canonicalUrl&&(t=I.canonicalUrl)}catch(n){}}else{(0,i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{var T=b.document.referrer;T&&(w=T,n===c.top&&(g=!0))}catch(n){}!w&&l&&l[p-1]&&(w=l[p-1],n===c.top&&(h=!0)),w&&!v&&(e=w)}else{if(A&&(e=w=A,v=!1,n===c.top)){g=!0;var O=u(n.document);O&&(t=O)}n.context&&n.context.sourceUrl&&(m=!0)}d.push(w),p++}while(n!==c.top&&p<f);d.reverse();try{s=c.top.document.referrer}catch(n){}var C=g||h?e:null,S=r.$W.getConfig("pageUrl")||t||null,B=r.$W.getConfig("pageUrl")||C||o(S,c);return C&&C.indexOf("?")>-1&&-1===B.indexOf("?")&&(B="".concat(B).concat(C.substring(C.indexOf("?")))),{reachedTop:g,isAmp:v,numIframes:p-1,stack:d,topmostLocation:e||null,location:C,canonicalUrl:S,page:B,domain:a(B)||null,ref:s||null,legacy:{reachedTop:g,isAmp:v,numIframes:p-1,stack:d,referer:e||null,canonicalUrl:S}}}))},12938:function(n,e,t){t.d(e,{CK:function(){return A},X0:function(){return m},qk:function(){return v},s0:function(){return h},vM:function(){return y}});var r=t(64467),i=t(91069),o=t(12693),a=t(45569),u=t(95139),c=t(2604),s=t(76811),d=t(43272),l=t(11445),f=t(83441);function g(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function p(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?g(Object(t),!0).forEach((function(e){(0,r.A)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var v="html5",m="cookie",h=[];function b(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.moduleName,t=n.moduleType,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isAllowed,g=void 0===o?u.io:o;function b(n,i){var o=e,u=d.$W.getCurrentBidder();return u&&t===a.tW&&l.Ay.aliasRegistry[u]===e&&(o=u),n({valid:g(s.Ue,(0,f.s)(t,o,(0,r.A)({},c.Zw,i)))})}function y(n,e,t){if(!t||"function"!=typeof t)return b(n,e);h.push((function(){var r=b(n,e);t(r)}))}function A(n){var e=n.charAt(0).toUpperCase()+n.substring(1),t=function(){return window[n]},o=function(e){return y((function(e){if(e&&e.valid)try{return!!t()}catch(e){(0,i.logError)("".concat(n," api disabled"))}return!1}),v,e)};return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},"has".concat(e),o),"".concat(n,"IsEnabled"),(function(n){return y((function(n){if(n&&n.valid)try{return t().setItem("prebid.cookieTest","1"),"1"===t().getItem("prebid.cookieTest")}catch(n){}finally{try{t().removeItem("prebid.cookieTest")}catch(n){}}return!1}),v,n)})),"setDataIn".concat(e),(function(n,e,r){return y((function(r){r&&r.valid&&o()&&t().setItem(n,e)}),v,r)})),"getDataFrom".concat(e),(function(n,e){return y((function(e){return e&&e.valid&&o()?t().getItem(n):null}),v,e)})),"removeDataFrom".concat(e),(function(n,e){return y((function(e){e&&e.valid&&o()&&t().removeItem(n)}),v,e)}))}return p(p(p({setCookie:function(n,e,t,r,i,o){return y((function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",u=t&&""!==t?" ;expires=".concat(t):"",c=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(n,"=").concat(encodeURIComponent(e)).concat(u,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(c)}}),m,o)},getCookie:function(n,e){return y((function(e){if(e&&e.valid){var t=window.document.cookie.match("(^|;)\\s*"+n+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}),m,e)},cookiesAreEnabled:function(n){return y((function(n){return!(!n||!n.valid)&&(0,i.checkCookieSupport)()}),m,n)}},A("localStorage")),A("sessionStorage")),{},{findSimilarCookies:function(n,e){return y((function(e){if(e&&e.valid){var t=[];if((0,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(n)>=0&&t.push(decodeURIComponent(o.slice(a+1)))}return t}}),m,e)}})}function y(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.moduleType,t=n.moduleName,r=n.bidderCode;function i(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return r?((e&&e!==a.tW||t)&&i(),e=a.tW,t=r):t&&e||i(),b({moduleType:e,moduleName:t})}function A(n){return b({moduleName:n,moduleType:a.tp})}(0,u.qB)(s.Ue,"deviceAccess config",(function(){if(!(0,i.hasDeviceAccess)())return{allow:!1}})),(0,u.qB)(s.Ue,"bidderSettings.*.storageAllowed",(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.u;if(n[c.Dk]===a.tW){var t=e.get(n[c.q7],"storageAllowed");if(t&&!0!==t){var r=n[c.Zw];t=Array.isArray(t)?t.some((function(n){return n===r})):t===r}else t=!!t;return t?void 0:{allow:t}}}))},97779:function(n,e,t){t.d(e,{Jp:function(){return B},ME:function(){return S},Yl:function(){return C},iS:function(){return R},m2:function(){return k},uW:function(){return O}});var r=t(80296),i=t(64467),o=t(45458),a=t(67314),u=t(27863),c=t(12693),s=t(43272),d=t(78969),l=t(75023),f=t(16833),g=t(71371),p=t(12449),v=t(15901),m=t(91069),h=t(70433),b=t(12713),y=[],A=20,E="targetingControls.allowTargetingKeys",w="targetingControls.addTargetingKeys",I='Only one of "'.concat(E,'" or "').concat(w,'" can be set'),T=Object.keys(d.xS).map((function(n){return d.xS[n]})),O={isActualBid:function(n){return n.getStatusCode()===d.XQ.GOOD},isBidNotExpired:function(n){return n.responseTimestamp+1e3*(0,u.cT)(n)>(0,m.timestamp)()},isUnusedBid:function(n){return n&&(n.status&&!(0,v.mK)([d.tl.RENDERED],n.status)||!n.status)}};function C(n){return!Object.values(O).some((function(e){return!e(n)}))}var S=(0,f.A_)("sync",(function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.sortByHighestCpm;if(!r){var a=[],u=s.$W.getConfig("sendBidsControl.dealPrioritization"),c=(0,m.groupBy)(n,"adUnitCode");return Object.keys(c).forEach((function(n){var r=[],s=(0,m.groupBy)(c[n],"bidderCode");Object.keys(s).forEach((function(n){r.push(s[n].reduce(e))})),t?(r=u?r.sort(B(!0)):r.sort((function(n,e){return e.cpm-n.cpm})),a.push.apply(a,(0,o.A)(r.slice(0,t)))):(r=r.sort(i),a.push.apply(a,(0,o.A)(r)))})),a}return n}));function B(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t){return void 0!==e.adserverTargeting.hb_deal&&void 0===t.adserverTargeting.hb_deal?-1:void 0===e.adserverTargeting.hb_deal&&void 0!==t.adserverTargeting.hb_deal?1:n?t.cpm-e.cpm:t.adserverTargeting.hb_pb-e.adserverTargeting.hb_pb}}function k(n,e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return window.googletag.pubads().getSlots()})().reduce((function(n,t){var r=(0,m.isFn)(e)&&e(t);return Object.keys(n).filter((0,m.isFn)(r)?r:(0,m.isAdUnitCodeMatchingSlot)(t)).forEach((function(e){return n[e].push(t)})),n}),Object.fromEntries(n.map((function(n){return[n,[]]}))))}var R=function(n){var e={},t={};function a(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=T.concat(p.Nh),o=s.$W.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),a=o?o.map((function(n){return d.xS[n]})):r;return n.reduce((function(n,o){if(e||t&&o.dealId){var u=function(n,e){return e.reduce((function(e,t){return n.adserverTargeting[t]&&e.push((0,i.A)({},"".concat(t,"_").concat(n.bidderCode).substring(0,20),[n.adserverTargeting[t]])),e}),[])}(o,r.filter((function(n){return void 0!==o.adserverTargeting[n]&&(t||-1!==a.indexOf(n))})));u&&n.push((0,i.A)({},o.adUnitCode,u))}return n}),[])}function u(e){return"string"==typeof e?[e]:(0,m.isArray)(e)?e:n.getAdUnitCodes()||[]}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.Bq,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=s.$W.getConfig("allowEarlyBids")?"getEarlyBidsReceived":"getBidsReceived",o=n[i]().reduce((function(n,e){var r=s.$W.getConfig("useBidCache"),i=s.$W.getConfig("bidCacheFilterFunction"),o=t[e.adUnitCode]===e.auctionId,a=!(r&&!o&&"function"==typeof i)||!!i(e);return(r||o)&&a&&(0,h.A)(e,"video.context")!==g.LM&&C(e)&&(e.latestTargetedAuctionId=t[e.adUnitCode],n.push(e)),n}),[]);return S(o,e,void 0,void 0,void 0,r)}function R(){return n.getStandardBidderAdServerTargeting().map((function(n){return n.key})).concat(T).filter(m.uniques)}return e.setLatestAuctionForAdUnit=function(n,e){t[n]=e},e.resetPresetTargeting=function(n,e){if((0,m.isGptPubadsDefined)()){var t=u(n);Object.values(k(t,e)).forEach((function(n){n.forEach((function(n){!function(n){y.forEach((function(e){n.getTargeting(e)&&n.clearTargeting(e)}))}(n)}))}))}},e.resetPresetTargetingAST=function(n){u(n).forEach((function(n){var e=window.apntag.getTag(n);if(e&&e.keywords){var t=Object.keys(e.keywords),r={};t.forEach((function(n){(0,v.mK)(y,n.toLowerCase())||(r[n]=e.keywords[n])})),window.apntag.modifyTag(n,{keywords:r})}}))},e.getAllTargeting=function(e,t,r){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b.Vk,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.sortByHighestCpm;r||(r=O(l,f));var g=u(e),T=s.$W.getConfig("enableSendAllBids"),C=s.$W.getConfig("sendBidsControl.bidLimit"),k=T&&(t||C)||0,j=function(n,e){var t=[],r={},i=s.$W.getConfig("targetingControls.alwaysIncludeDeals");return e.forEach((function(e){var o=(0,v.mK)(n,e.adUnitCode),a=!0===c.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0,u=i&&e.dealId;o&&(u||a)&&(t.push(e),Object.keys(e.adserverTargeting).filter(function(){var n=R();n=n.concat(p.Nh);return function(e){return-1===n.indexOf(e)}}()).forEach((function(n){var t=n.substring(0,A),i=r[e.adUnitCode]||{},o=[e.adserverTargeting[n]];i[t]?i[t]=i[t].concat(o).filter(m.uniques):i[t]=o,r[e.adUnitCode]=i})))})),{filteredBids:t,customKeysByUnit:r}}(g,r),D=j.customKeysByUnit,U=j.filteredBids,_=function(e,t){var r=function(n){var e=[],t=n.reduce((function(n,t){return(0,v.mK)(e,t.adUnitCode)||(n.push(t),e.push(t.adUnitCode)),n}),[]),r=R();return t=t.map((function(n){return(0,i.A)({},n.adUnitCode,Object.keys(n.adserverTargeting).filter((function(e){return void 0===n.sendStandardTargeting||n.sendStandardTargeting||-1===r.indexOf(e)})).reduce((function(e,t){var r=[n.adserverTargeting[t]],a=(0,i.A)({},t.substring(0,A),r);if(t===d.xS.DEAL){var u="".concat(t,"_").concat(n.bidderCode).substring(0,A),c=(0,i.A)({},u,r);return[].concat((0,o.A)(e),[a,c])}return[].concat((0,o.A)(e),[a])}),[]))})),t}(e).concat(function(n,e){return n.reduce((function(n,t){var r=Object.assign({},t),o=e[r.adUnitCode],a=[];return o&&Object.keys(o).forEach((function(n){n&&o[n]&&a.push((0,i.A)({},n,o[n]))})),n.push((0,i.A)({},r.adUnitCode,a)),n}),[])}(e,t)).concat((u=e,c=s.$W.getConfig("targetingControls.alwaysIncludeDeals"),a(u,s.$W.getConfig("enableSendAllBids"),c))).concat(function(){function e(n){return(0,h.A)(n,d.iD.ADSERVER_TARGETING)}function t(n){var t=e(n);return Object.keys(t).map((function(n){return(0,m.isStr)(t[n])&&(t[n]=t[n].split(",").map((function(n){return n.trim()}))),(0,m.isArray)(t[n])||(t[n]=[t[n]]),(0,i.A)({},n,t[n])}))}return n.getAdUnits().filter((function(n){return e(n)})).reduce((function(n,e){var r=t(e);return r&&n.push((0,i.A)({},e.code,r)),n}),[])}());var u,c;return r.forEach((function(n){!function(n){Object.keys(n).forEach((function(e){n[e].forEach((function(n){var e=Object.keys(n);-1===y.indexOf(e[0])&&(y=e.concat(y))}))}))}(n)})),r}(S(U,l,k,void 0,f),D),P=Object.keys(Object.assign({},d.Zh,d.x5)),x=s.$W.getConfig(E),N=s.$W.getConfig(w);if(null!=N&&null!=x)throw new Error(I);x=null!=N?P.concat(N):x||P,Array.isArray(x)&&x.length>0&&(_=function(n,e){var t=Object.assign({},d.xS,d.x5),r=Object.keys(t),i={};(0,m.logInfo)("allowTargetingKeys - allowed keys [ ".concat(e.map((function(n){return t[n]})).join(", ")," ]")),n.map((function(n){var o=Object.keys(n)[0],a=n[o].filter((function(n){var o=Object.keys(n)[0],a=0===r.filter((function(n){return 0===o.indexOf(t[n])})).length||(0,v.I6)(e,(function(n){var e=t[n];return 0===o.indexOf(e)}));return i[o]=!a,a}));n[o]=a}));var o=Object.keys(i).filter((function(n){return i[n]}));return(0,m.logInfo)("allowTargetingKeys - removed keys [ ".concat(o.join(", ")," ]")),n.filter((function(n){return n[Object.keys(n)[0]].length>0}))}(_,x)),_=function(n){var e=n.map((function(n){return(0,i.A)({},Object.keys(n)[0],n[Object.keys(n)[0]].map((function(n){return(0,i.A)({},Object.keys(n)[0],n[Object.keys(n)[0]].join(","))})).reduce((function(n,e){return Object.assign(e,n)}),{}))}));return e=e.reduce((function(n,e){var t=Object.keys(e)[0];return n[t]=Object.assign({},n[t],e[t]),n}),{}),e}(_);var q=s.$W.getConfig("targetingControls.auctionKeyMaxChars");return q&&((0,m.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(q," characters. Running checks on auction keys...")),_=function(n,e){var t=(0,m.deepClone)(n),r=Object.keys(t).map((function(n){return{adUnitCode:n,adserverTargeting:t[n]}})).sort(B());return r.reduce((function(n,r,i,o){var a,u=(a=r.adserverTargeting,Object.keys(a).reduce((function(n,e){return n+"".concat(e,"%3d").concat(encodeURIComponent(a[e]),"%26")}),""));i+1===o.length&&(u=u.slice(0,-3));var c=r.adUnitCode,s=u.length;return s<=e?(e-=s,(0,m.logInfo)("AdUnit '".concat(c,"' auction keys comprised of ").concat(s," characters. Deducted from running threshold; new limit is ").concat(e),t[c]),n[c]=t[c]):(0,m.logWarn)("The following keys for adUnitCode '".concat(c,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(s,", the current allotted amount was ").concat(e,".\n"),t[c]),i+1===o.length&&0===Object.keys(n).length&&(0,m.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),n}),{})}(_,q)),g.forEach((function(n){_[n]||(_[n]={})})),_},s.$W.getConfig("targetingControls",(function(n){null!=(0,h.A)(n,E)&&null!=(0,h.A)(n,w)&&(0,m.logError)(I)})),e.setTargetingForGPT=(0,f.A_)("sync",(function(t,i){var o=e.getAllTargeting(t),a=Object.fromEntries(y.map((function(n){return[n,null]})));Object.entries(k(Object.keys(o),i)).forEach((function(n){var e=(0,r.A)(n,2),t=e[0];e[1].forEach((function(n){Object.keys(o[t]).forEach((function(n){var e=o[t][n];"string"==typeof e&&-1!==e.indexOf(",")&&(e=e.split(",")),o[t][n]=e})),(0,m.logMessage)("Attempting to set targeting-map for slot: ".concat(n.getSlotElementId()," with targeting-map:"),o[t]),n.updateTargetingFromMap(Object.assign({},a,o[t]))}))})),Object.keys(o).forEach((function(e){Object.keys(o[e]).forEach((function(t){"hb_adid"===t&&n.setStatusForBids(o[e][t],d.tl.BID_TARGETING_SET)}))})),e.targetingDone(o),l.emit(d.qY.SET_TARGETING,o)}),"setTargetingForGPT"),e.targetingDone=(0,f.A_)("sync",(function(n){return n}),"targetingDone"),e.getWinningBids=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b.Vk,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m.sortByHighestCpm,i=[],o=e||O(t,r),a=u(n);return o.reduce((function(n,e){var t=e.adUnitCode,r=!0===c.u.get(t,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0,o=s.$W.getConfig("targetingControls.alwaysIncludeDeals")&&e.dealId;return(0,v.mK)(a,t)&&!(0,v.mK)(i,t)&&(o||r)&&(n.push(e),i.push(t)),n}),[])},e.setTargetingForAst=function(n){var t=e.getAllTargeting(n);try{e.resetPresetTargetingAST(n)}catch(n){(0,m.logError)("unable to reset targeting for AST"+n)}Object.keys(t).forEach((function(n){return Object.keys(t[n]).forEach((function(e){if((0,m.logMessage)("Attempting to set targeting for targetId: ".concat(n," key: ").concat(e," value: ").concat(t[n][e])),(0,m.isStr)(t[n][e])||(0,m.isArray)(t[n][e])){var r={};e.search(/pt[0-9]/)<0?r[e.toUpperCase()]=t[n][e]:r[e]=t[n][e],window.apntag.setKeywords(n,r,{overrideKeyValue:!0})}}))}))},e.isApntagDefined=function(){if(window.apntag&&(0,m.isFn)(window.apntag.setKeywords))return!0},e}(a.n)},38230:function(n,e,t){t.d(e,{qh:function(){return p},zt:function(){return m}});var r=t(64467),i=t(80296),o=t(91069),a=t(43272),u=t(15901),c=t(12938),s=t(95139),d=t(76811),l=t(2604),f=t(45569),g=t(83441),p={syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:500};a.$W.setDefaults({userSync:(0,o.deepClone)(p)});var v=(0,c.CK)("usersync");var m=function(n){var e={},t={image:[],iframe:[]},c=new Set,s={},p={image:!0,iframe:!1},v=n.config;function m(){if(v.syncEnabled&&n.browserSupportsCookies){try{!function(){if(!p.iframe)return;h(t.iframe,(function(n){var e=(0,i.A)(n,2),r=e[0],a=e[1];(0,o.logMessage)("Invoking iframe user sync for bidder: ".concat(r)),(0,o.insertUserSyncIframe)(a),function(n,e){n.image=n.image.filter((function(n){return n[0]!==e}))}(t,r)}))}(),function(){if(!p.image)return;h(t.image,(function(n){var e=(0,i.A)(n,2),t=e[0],r=e[1];(0,o.logMessage)("Invoking image pixel user sync for bidder: ".concat(t)),(0,o.triggerPixel)(r)}))}()}catch(n){return(0,o.logError)("Error firing user syncs",n)}t={image:[],iframe:[]}}}function h(n,e){(0,o.shuffle)(n).forEach(e)}function b(n,e){var t=v.filterSettings;if(function(n,e){if(n.all&&n[e])return(0,o.logWarn)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(e,'" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var t=n.all?n.all:n[e],r=n.all?"all":e;if(!t)return!1;var i=t.filter,a=t.bidders;if(i&&"include"!==i&&"exclude"!==i)return(0,o.logWarn)('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(i,"' is not a valid option; use either 'include' or 'exclude'.")),!1;if("*"!==a&&!(Array.isArray(a)&&a.length>0&&a.every((function(n){return(0,o.isStr)(n)&&"*"!==n}))))return(0,o.logWarn)('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1;return!0}(t,n)){p[n]=!0;var r=t.all?t.all:t[n],i="*"===r.bidders?[e]:r.bidders,a={include:function(n,e){return!(0,u.mK)(n,e)},exclude:function(n,e){return(0,u.mK)(n,e)}};return a[r.filter||"include"](i,e)}return!p[n]}return a.$W.getConfig("userSync",(function(n){if(n.userSync){var e=n.userSync.filterSettings;(0,o.isPlainObject)(e)&&(e.image||e.all||(n.userSync.filterSettings.image={bidders:"*",filter:"include"}))}v=Object.assign(v,n.userSync)})),n.regRule(d.Ml,"userSync config",(function(n){if(!v.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(n[l.Dk]===f.tW){var t=n[l.bt],r=n[l.iK];if(!e.canBidderRegisterSync(t,r))return{allow:!1,reason:"".concat(t," syncs are not enabled for ").concat(r)}}})),e.registerSync=function(e,i,a){return c.has(i)?(0,o.logMessage)('already fired syncs for "'.concat(i,'", ignoring registerSync call')):v.syncEnabled&&(0,o.isArray)(t[e])?i?0!==v.syncsPerBidder&&Number(s[i])>=v.syncsPerBidder?(0,o.logWarn)('Number of user syncs exceeded for "'.concat(i,'"')):void(n.isAllowed(d.Ml,(0,g.s)(f.tW,i,(0,r.A)((0,r.A)({},l.bt,e),l.e3,a)))&&(t[e].push([i,a]),s=function(n,e){return n[e]?n[e]+=1:n[e]=1,n}(s,i))):(0,o.logWarn)("Bidder is required for registering sync"):(0,o.logWarn)('User sync type "'.concat(e,'" not supported'))},e.bidderDone=c.add.bind(c),e.syncUsers=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(n)return setTimeout(m,Number(n));m()},e.triggerUserSyncs=function(){v.enableOverride&&e.syncUsers()},e.canBidderRegisterSync=function(n,e){return!v.filterSettings||!b(n,e)},e}(Object.defineProperties({config:a.$W.getConfig("userSync"),isAllowed:s.io,regRule:s.qB},{browserSupportsCookies:{get:function(){return!(0,o.isSafariBrowser)()&&v.cookiesAreEnabled()}}}))},91069:function(n,e,t){t.r(e),t.d(e,{_each:function(){return yn},_map:function(){return En},_setEventEmitter:function(){return B},binarySearch:function(){return Te},buildUrl:function(){return pe},canAccessWindowTop:function(){return J},checkCookieSupport:function(){return Xn},cleanObj:function(){return ce},compareCodeAndSlot:function(){return ie},contains:function(){return An},convertObjectToArray:function(){return we},createIframe:function(){return un},createInvisibleIframe:function(){return cn},createTrackPixelHtml:function(){return Sn},createTrackPixelIframeHtml:function(){return kn},cyrb53Hash:function(){return he},debugTurnedOn:function(){return on},deepAccess:function(){return p.A},deepClone:function(){return Wn},deepEqual:function(){return ve},deepSetValue:function(){return v.J},delayExecution:function(){return Qn},encodeMacroURI:function(){return Bn},extractDomainFromHost:function(){return Se},flatten:function(){return jn},formatQS:function(){return fe},generateUUID:function(){return x},getBidIdParameter:function(){return N},getBidRequest:function(){return Dn},getBidderCodes:function(){return _n},getDNT:function(){return re},getDefinedParams:function(){return ne},getDomLoadingDuration:function(){return Yn},getParameterByName:function(){return sn},getPerformanceNow:function(){return Kn},getPrebidInternal:function(){return D},getSafeframeGeometry:function(){return Fn},getUniqueIdentifierStr:function(){return P},getUnixTimestampFromNow:function(){return Ee},getUserConfiguredParams:function(){return te},getValue:function(){return Un},getWindowLocation:function(){return Y},getWindowSelf:function(){return K},getWindowTop:function(){return V},groupBy:function(){return Zn},hasConsoleLogger:function(){return rn},hasDeviceAccess:function(){return Jn},hasNonSerializableProperty:function(){return Oe},inIframe:function(){return Mn},insertElement:function(){return wn},insertHtmlIntoIframe:function(){return On},insertUserSyncIframe:function(){return Cn},internal:function(){return R},isA:function(){return dn},isAdUnitCodeMatchingSlot:function(){return oe},isApnGetTagDefined:function(){return xn},isArray:function(){return gn},isArrayOfNums:function(){return de},isBoolean:function(){return mn},isEmpty:function(){return hn},isEmptyStr:function(){return bn},isFn:function(){return ln},isGptPubadsDefined:function(){return Pn},isInteger:function(){return ue},isNumber:function(){return pn},isPlainObject:function(){return vn},isSafariBrowser:function(){return $n},isSafeFrameWindow:function(){return Gn},isStr:function(){return fn},isValidMediaTypes:function(){return ee},logError:function(){return nn},logInfo:function(){return Q},logMessage:function(){return X},logWarn:function(){return Z},memoize:function(){return Ae},mergeDeep:function(){return me},parseGPTSingleSizeArray:function(){return $},parseGPTSingleSizeArrayToRtbSize:function(){return z},parseQS:function(){return le},parseQueryStringParameters:function(){return q},parseSizesInput:function(){return G},parseUrl:function(){return ge},pick:function(){return se},prefixLog:function(){return en},replaceAuctionPrice:function(){return zn},replaceClickThrough:function(){return Hn},replaceMacros:function(){return Ln},safeJSONEncode:function(){return ye},safeJSONParse:function(){return be},setOnAny:function(){return Ce},setScriptAttributes:function(){return Ie},shuffle:function(){return qn},sizeTupleToRtbSize:function(){return L},sizeTupleToSizeString:function(){return F},sizesToSizeTuples:function(){return M},sortByHighestCpm:function(){return Nn},timestamp:function(){return Vn},transformAdServerTargetingObj:function(){return W},triggerNurlWithCpm:function(){return Be},triggerPixel:function(){return Tn},uniques:function(){return Rn},unsupportedBidderMessage:function(){return ae},waitForElementToLoad:function(){return In}});var r,i=t(45458),o=t(82284),a=t(64467),u=t(80296),c=t(43272),s=t(45751),d=t(15901),l=t(78969),f=t(25555),g=t(7873),p=t(70433),v=t(63172),m="String",h="Function",b="Number",y="Object",A="Boolean",E=Object.prototype.toString,w=Boolean(window.console),I=Boolean(w&&window.console.log),T=Boolean(w&&window.console.info),O=Boolean(w&&window.console.warn),C=Boolean(w&&window.console.error),S=(0,g.m)();function B(n){r=n}function k(){null!=r&&r.apply(void 0,arguments)}var R={checkCookieSupport:Xn,createTrackPixelIframeHtml:kn,getWindowSelf:K,getWindowTop:V,canAccessWindowTop:J,getWindowLocation:Y,insertUserSyncIframe:Cn,insertElement:wn,isFn:ln,triggerPixel:Tn,logError:nn,logWarn:Z,logMessage:X,logInfo:Q,parseQS:le,formatQS:fe,deepEqual:ve},j={};function D(){return j}var U,_=(U=0,function(){return++U});function P(){return _()+Math.random().toString(16).substr(2)}function x(n){return n?(n^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>n/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,x)}function N(n,e){return(null==e?void 0:e[n])||""}function q(n){var e="";for(var t in n)n.hasOwnProperty(t)&&(e+=t+"="+encodeURIComponent(n[t])+"&");return e=e.replace(/&$/,"")}function W(n){return n&&Object.getOwnPropertyNames(n).length>0?Object.keys(n).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(n[e]))})).join("&"):""}function M(n){return"string"==typeof n?n.split(/\s*,\s*/).map((function(n){return n.match(/^(\d+)x(\d+)$/i)})).filter((function(n){return n})).map((function(n){var e=(0,u.A)(n,3),t=(e[0],e[1]),r=e[2];return[parseInt(t,10),parseInt(r,10)]})):Array.isArray(n)?H(n)?[n]:n.filter(H):[]}function G(n){return M(n).map(F)}function F(n){return n[0]+"x"+n[1]}function $(n){if(H(n))return F(n)}function L(n){return{w:n[0],h:n[1]}}function z(n){if(H(n))return L(n)}function H(n){return gn(n)&&2===n.length&&!isNaN(n[0])&&!isNaN(n[1])}function V(){return window.top}function K(){return window.self}function Y(){return window.location}function J(){try{if(R.getWindowTop().location.href)return!0}catch(n){return!1}}function X(){on()&&I&&console.log.apply(console,tn(arguments,"MESSAGE:"))}function Q(){on()&&T&&console.info.apply(console,tn(arguments,"INFO:"))}function Z(){on()&&O&&console.warn.apply(console,tn(arguments,"WARNING:")),k(l.qY.AUCTION_DEBUG,{type:"WARNING",arguments:arguments})}function nn(){on()&&C&&console.error.apply(console,tn(arguments,"ERROR:")),k(l.qY.AUCTION_DEBUG,{type:"ERROR",arguments:arguments})}function en(n){function e(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.apply(void 0,[n].concat(r))}}return{logError:e(nn),logWarn:e(Z),logMessage:e(X),logInfo:e(Q)}}function tn(n,e){n=[].slice.call(n);var t=c.$W.getCurrentBidder();return e&&n.unshift(e),t&&n.unshift(r("#aaa")),n.unshift(r("#3b88c3")),n.unshift("%cPrebid"+(t?"%c".concat(t):"")),n;function r(n){return"display: inline-block; color: #fff; background: ".concat(n,"; padding: 1px 4px; border-radius: 3px;")}}function rn(){return I}function on(){return!!c.$W.getConfig("debug")}var an,un=(an={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"},function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.createElement("iframe");return Object.assign(r,Object.assign({},an,e)),Object.assign(r.style,t),r});function cn(){return un(document,{id:P(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function sn(n){return le(Y().search)[n]||""}function dn(n,e){return E.call(n)==="[object "+e+"]"}function ln(n){return dn(n,h)}function fn(n){return dn(n,m)}var gn=Array.isArray.bind(Array);function pn(n){return dn(n,b)}function vn(n){return dn(n,y)}function mn(n){return dn(n,A)}function hn(n){return!n||(gn(n)||fn(n)?!(n.length>0):Object.keys(n).length<=0)}function bn(n){return fn(n)&&(!n||0===n.length)}function yn(n,e){var t=this;if(ln(null==n?void 0:n.forEach))return n.forEach(e,this);Object.entries(n||{}).forEach((function(n){var r=(0,u.A)(n,2),i=r[0],o=r[1];return e.call(t,o,i)}))}function An(n,e){return ln(null==n?void 0:n.includes)&&n.includes(e)}function En(n,e){return ln(null==n?void 0:n.map)?n.map(e):Object.entries(n||{}).map((function(t){var r=(0,u.A)(t,2),i=r[0],o=r[1];return e(o,i,n)}))}function wn(n,e,t,r){var i;e=e||document,i=t?e.getElementsByTagName(t):e.getElementsByTagName("head");try{if((i=i.length?i:e.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(n,o)}}catch(n){}}function In(n,e){var t=null;return new f.k((function(r){var i=function e(){n.removeEventListener("load",e),n.removeEventListener("error",e),null!=t&&window.clearTimeout(t),r()};n.addEventListener("load",i),n.addEventListener("error",i),null!=e&&(t=window.setTimeout(i,e))}))}function Tn(n,e,t){var r=new Image;e&&R.isFn(e)&&In(r,t).then(e),r.src=n}function On(n){if(n){var e,t=cn();R.insertElement(t,document,"body"),(e=t.contentWindow.document).open(),e.write(n),e.close()}}function Cn(n,e,t){var r=R.createTrackPixelIframeHtml(n,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=r;var o=i.firstChild;e&&R.isFn(e)&&In(o,t).then(e),R.insertElement(o,document,"html",!0)}function Sn(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURI;if(!n)return"";var t='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return t+='<img src="'+e(n)+'"></div>'}function Bn(n){return Array.from(n.matchAll(/\$({[^}]+})/g)).map((function(n){return n[1]})).reduce((function(n,e){return n.replace("$"+encodeURIComponent(e),"$"+e)}),encodeURI(n))}function kn(n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n?((!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(n=encodeURI(n)),e&&(e='sandbox="'.concat(e,'"')),"<iframe ".concat(e,' id="').concat(P(),'"\n frameborder="0"\n allowtransparency="true"\n marginheight="0" marginwidth="0"\n width="0" hspace="0" vspace="0" height="0"\n style="height:0px;width:0px;display:none;"\n scrolling="no"\n src="').concat(n,'">\n </iframe>')):""}function Rn(n,e,t){return t.indexOf(n)===e}function jn(n,e){return n.concat(e)}function Dn(n,e){if(n)return e.flatMap((function(n){return n.bids})).find((function(e){return["bidId","adId","bid_id"].some((function(t){return e[t]===n}))}))}function Un(n,e){return n[e]}function _n(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:S.adUnits).map((function(n){return n.bids.map((function(n){return n.bidder})).reduce(jn,[])})).reduce(jn,[]).filter((function(n){return void 0!==n})).filter(Rn)}function Pn(){if(window.googletag&&ln(window.googletag.pubads)&&ln(window.googletag.pubads().getSlots))return!0}function xn(){if(window.apntag&&ln(window.apntag.getTag))return!0}var Nn=function(n,e){return e.cpm-n.cpm};function qn(n){for(var e=n.length;e>0;){var t=Math.floor(Math.random()*e),r=n[--e];n[e]=n[t],n[t]=r}return n}function Wn(n){return(0,s.Q)(n)||{}}function Mn(){try{return R.getWindowSelf()!==R.getWindowTop()}catch(n){return!0}}function Gn(){if(!Mn())return!1;var n=R.getWindowSelf();return!(!n.$sf||!n.$sf.ext)}function Fn(){try{var n=K();return"function"==typeof n.$sf.ext.geom?n.$sf.ext.geom():void 0}catch(n){return void nn("Error getting SafeFrame geometry",n)}}function $n(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function Ln(n,e){if(n)return Object.entries(e).reduce((function(n,e){var t=(0,u.A)(e,2),r=t[0],i=t[1];return n.replace(new RegExp("\\$\\{"+r+"\\}","g"),i||"")}),n)}function zn(n,e){return Ln(n,{AUCTION_PRICE:e})}function Hn(n,e){if(n&&e&&"string"==typeof e)return n.replace(/\${CLICKTHROUGH}/g,e)}function Vn(){return(new Date).getTime()}function Kn(){return window.performance&&window.performance.now&&window.performance.now()||0}function Yn(n){var e,t=-1,r=(n=n||K()).performance;if(null!==(e=n.performance)&&void 0!==e&&e.timing&&n.performance.timing.navigationStart>0){var i=r.timing.domLoading-r.timing.navigationStart;i>0&&(t=i)}return t}function Jn(){return!1!==c.$W.getConfig("deviceAccess")}function Xn(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function Qn(n,e){if(e<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(e));var t=0;return function(){++t===e&&n.apply(this,arguments)}}function Zn(n,e){return n.reduce((function(n,t){return(n[t[e]]=n[t[e]]||[]).push(t),n}),{})}function ne(n,e){return e.filter((function(e){return n[e]})).reduce((function(e,t){return Object.assign(e,(0,a.A)({},t,n[t]))}),{})}function ee(n){var e=["banner","native","video"];return!!Object.keys(n).every((function(n){return(0,d.mK)(e,n)}))&&(!n.video||!n.video.context||(0,d.mK)(["instream","outstream","adpod"],n.video.context))}function te(n,e,t){return n.filter((function(n){return n.code===e})).flatMap((function(n){return n.bids})).filter((function(n){return n.bidder===t})).map((function(n){return n.params||{}}))}function re(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}var ie=function(n,e){return n.getAdUnitPath()===e||n.getSlotElementId()===e};function oe(n){return function(e){return ie(n,e)}}function ae(n,e){var t=Object.keys(n.mediaTypes||{banner:"banner"}).join(", ");return"\n ".concat(n.code," is a ").concat(t," ad unit\n containing bidders that don't support ").concat(t,": ").concat(e,".\n This bidder won't fetch demand.\n ")}var ue=Number.isInteger.bind(Number);function ce(n){return Object.fromEntries(Object.entries(n).filter((function(n){var e=(0,u.A)(n,2);e[0];return void 0!==e[1]})))}function se(n,e){return"object"!==(0,o.A)(n)?{}:e.reduce((function(t,r,i){if("function"==typeof r)return t;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var u=n[r];return"function"==typeof e[i+1]&&(u=e[i+1](u,t)),void 0!==u&&(t[o]=u),t}),{})}function de(n,e){return gn(n)&&(!e||n.length===e)&&n.every((function(n){return ue(n)}))}function le(n){return n?n.replace(/^\?/,"").split("&").reduce((function(n,e){var t=e.split("="),r=(0,u.A)(t,2),i=r[0],o=r[1];return/\[\]$/.test(i)?(n[i=i.replace("[]","")]=n[i]||[],n[i].push(o)):n[i]=o||"",n}),{}):{}}function fe(n){return Object.keys(n).map((function(e){return Array.isArray(n[e])?n[e].map((function(n){return"".concat(e,"[]=").concat(n)})).join("&"):"".concat(e,"=").concat(n[e])})).join("&")}function ge(n,e){var t=document.createElement("a");e&&"noDecodeWholeURL"in e&&e.noDecodeWholeURL?t.href=n:t.href=decodeURIComponent(n);var r=e&&"decodeSearchAsString"in e&&e.decodeSearchAsString;return{href:t.href,protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r?t.search:R.parseQS(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host||window.location.host}}function pe(n){return(n.protocol||"http")+"://"+(n.host||n.hostname+(n.port?":".concat(n.port):""))+(n.pathname||"")+(n.search?"?".concat(R.formatQS(n.search||"")):"")+(n.hash?"#".concat(n.hash):"")}function ve(n,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkTypes,r=void 0!==t&&t;if(n===e)return!0;if("object"!==(0,o.A)(n)||null===n||"object"!==(0,o.A)(e)||null===e||r&&n.constructor!==e.constructor)return!1;var i=Object.keys(n);if(i.length!==Object.keys(e).length)return!1;for(var a=0,u=i;a<u.length;a++){var c=u[a];if(!e.hasOwnProperty(c))return!1;if(!ve(n[c],e[c],{checkTypes:r}))return!1}return!0}function me(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(!t.length)return n;var o=t.shift();if(vn(n)&&vn(o)){var u=function(e){vn(o[e])?(n[e]||Object.assign(n,(0,a.A)({},e,{})),me(n[e],o[e])):gn(o[e])?n[e]?gn(n[e])&&o[e].forEach((function(t){for(var r=1,i=0;i<n[e].length;i++)if(ve(n[e][i],t)){r=0;break}r&&n[e].push(t)})):Object.assign(n,(0,a.A)({},e,(0,i.A)(o[e]))):Object.assign(n,(0,a.A)({},e,o[e]))};for(var c in o)u(c)}return me.apply(void 0,[n].concat(t))}function he(n){for(var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=function(n,e){if(ln(Math.imul))return Math.imul(n,e);var t=(4194303&n)*(e|=0);return 4290772992&n&&(t+=(4290772992&n)*e|0),0|t},i=3735928559^t,o=1103547991^t,a=0;a<n.length;a++)i=r(i^(e=n.charCodeAt(a)),2654435761),o=r(o^e,1597334677);return i=r(i^i>>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()}function be(n){try{return JSON.parse(n)}catch(n){}}function ye(n){try{return JSON.stringify(n)}catch(n){return""}}function Ae(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return n},t=new Map,r=function(){var r=e.apply(this,arguments);return t.has(r)||t.set(r,n.apply(this,arguments)),t.get(r)};return r.clear=t.clear.bind(t),r}function Ee(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(["m","d"].indexOf(e)<0)return Date.now();var t=n/("m"===e?1440:1);return Date.now()+(n&&n>0?864e5*t:0)}function we(n){return Object.keys(n).map((function(e){return(0,a.A)({},e,n[e])}))}function Ie(n,e){Object.entries(e).forEach((function(e){var t=(0,u.A)(e,2),r=t[0],i=t[1];return n.setAttribute(r,i)}))}function Te(n,e){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(n){return n},r=0,i=n.length&&n.length-1,o=t(e);i-r>1;){var a=r+Math.round((i-r)/2);o>t(n[a])?r=a:i=a}for(;n.length>r&&o>t(n[r]);)r++;return r}function Oe(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(var t in n){var r=n[t],i=(0,o.A)(r);if(void 0===r||"function"===i||"symbol"===i||r instanceof RegExp||r instanceof Map||r instanceof Set||r instanceof Date||null!==r&&"object"===i&&r.hasOwnProperty("toJSON"))return!0;if(null!==r&&"object"===i&&r.constructor===Object){if(e.has(r))return!0;if(e.add(r),Oe(r,e))return!0}}return!1}function Ce(n,e){for(var t,r=0;r<n.length;r++)if(t=(0,p.A)(n[r],e))return t}function Se(n){var e=null;try{var t=/[-\w]+\.([-\w]+|[-\w]{3,}|[-\w]{1,3}\.[-\w]{2})$/i.exec(n);if(null!=t&&t.length>0){e=t[0];for(var r=1;r<t.length;r++)t[r].length>e.length&&(e=t[r])}}catch(n){e=null}return e}function Be(n,e){fn(n.nurl)&&""!==n.nurl&&(n.nurl=n.nurl.replace(/\${AUCTION_PRICE}/,e),Tn(n.nurl))}},57176:function(n,e,t){t.d(e,{y:function(){return a}});var r=t(67314),i=t(12693),o=t(91069);function a(n,e,t){var a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=u.index,s=void 0===c?r.n.index:c,d=u.bs,l=void 0===d?i.u:d;t=t||s.getBidRequest(e);var f=null==e?void 0:e.adapterCode,g=(null==e?void 0:e.bidderCode)||(null===(a=t)||void 0===a?void 0:a.bidder),p=l.get(null==e?void 0:e.adapterCode,"adjustAlternateBids"),v=l.getOwn(g,"bidCpmAdjustment")||l.get(p?f:g,"bidCpmAdjustment");if(v&&"function"==typeof v)try{return v(n,Object.assign({},e),t)}catch(n){(0,o.logError)("Error during bid adjustment",n)}return n}},82621:function(n,e,t){function r(n){var e;return null==n||!n.gdprApplies||!0===(null==n||null===(e=n.vendorData)||void 0===e||null===(e=e.purpose)||void 0===e||null===(e=e.consents)||void 0===e?void 0:e[1])}t.d(e,{C:function(){return r}})},16894:function(n,e,t){t.d(e,{Ak:function(){return A},BO:function(){return m},K7:function(){return b},NL:function(){return E}});var r=t(80296),i=t(43272);function o(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return a(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return u=n.done,n},e:function(n){c=!0,o=n},f:function(){try{u||null==t.return||t.return()}finally{if(c)throw o}}}}function a(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}var u="performanceMetrics",c=window.performance&&window.performance.now?function(){return window.performance.now()}:function(){return Date.now()},s=new WeakMap;function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.now,t=void 0===e?c:e,r=n.mkNode,i=void 0===r?g:r,o=n.mkTimer,a=void 0===o?f:o,u=n.mkRenamer,d=void 0===u?function(n){return n}:u,l=n.nodes,p=void 0===l?s:l;return function(){return function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(n){return{forEach:function(e){e(n)}}};r=d(r);var o,u=(o="timestamps",function(n){return e.dfWalk({visit:function(e,t){var r=t[o];if(r.hasOwnProperty(n))return r[n]}})});function c(n,t){var i=r(n);e.dfWalk({follow:function(n,e){return e.propagate&&(!n||!n.stopPropagation)},visit:function(n,e){i.forEach((function(r){null==n?e.metrics[r]=t:(e.groups.hasOwnProperty(r)||(e.groups[r]=[]),e.groups[r].push(t))}))}})}function s(n){return a(t,(function(e){return c(n,e)}))}function l(){var n={};return e.dfWalk({visit:function(e,t){n=Object.assign({},!e||e.includeGroups?t.groups:null,t.metrics,n)}}),n}var f={startTiming:s,measureTime:function(n,e){return s(n).stopAfter(e)()},measureHookTime:function(n,e,t){var r=s(n);return t(function(n){var e=r.stopBefore(n);return e.bail=n.bail&&r.stopBefore(n.bail),e.stopTiming=r,e.untimed=n,e}(e))},checkpoint:function(n){e.timestamps[n]=t()},timeSince:function(n,e){var r=u(n),i=null!=r?t()-r:null;return null!=e&&c(e,i),i},timeBetween:function(n,e,t){var r=u(n),i=u(e),o=null!=r&&null!=i?i-r:null;return null!=t&&c(t,o),o},setMetric:c,getMetrics:l,fork:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.propagate,a=void 0===o||o,u=t.stopPropagation,c=void 0!==u&&u,s=t.includeGroups;return n(i([[e,{propagate:a,stopPropagation:c,includeGroups:void 0!==s&&s}]]),r)},join:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.propagate,i=void 0===r||r,o=t.stopPropagation,a=void 0!==o&&o,u=t.includeGroups,c=void 0!==u&&u,s=p.get(n);null!=s&&s.addParent(e,{propagate:i,stopPropagation:a,includeGroups:c})},newMetrics:function(){return n(e.newSibling(),r)},renameWith:function(t){return n(e,t)},toJSON:function(){return l()}};return p.set(f,e),f}(i([]))}}function l(n,e,t){return function(){e&&e();try{return n.apply(this,arguments)}finally{t&&t()}}}function f(n,e){var t=n(),r=!1;function i(){r||(e(n()-t),r=!0)}return i.stopBefore=function(n){return l(n,i)},i.stopAfter=function(n){return l(n,null,i)},i}function g(n){return{metrics:{},timestamps:{},groups:{},addParent:function(e,t){n.push([e,t])},newSibling:function(){return g(n.slice())},dfWalk:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.visit,a=t.follow,u=void 0===a?function(){return!0}:a,c=t.visited,s=void 0===c?new Set:c,d=t.inEdge;if(!s.has(this)){if(s.add(this),null!=(e=i(d,this)))return e;var l,f=o(n);try{for(f.s();!(l=f.n()).done;){var g=(0,r.A)(l.value,2),p=g[0],v=g[1];if(u(d,v)&&null!=(e=p.dfWalk({visit:i,follow:u,visited:s,inEdge:v})))return e}}catch(n){f.e(n)}finally{f.f()}}}}}var p=function(){var n=function(){},e=function(){return{}},t={forEach:n},r=function(){return null};r.stopBefore=function(n){return n},r.stopAfter=function(n){return n};var i=Object.defineProperties({dfWalk:n,newSibling:function(){return i},addParent:n},Object.fromEntries(["metrics","timestamps","groups"].map((function(n){return[n,{get:e}]}))));return d({now:function(){return 0},mkNode:function(){return i},mkRenamer:function(){return function(){return t}},mkTimer:function(){return r},nodes:{get:n,set:n}})()}(),v=!0;function m(n){return v&&n||p}i.$W.getConfig(u,(function(n){v=!!n[u]}));var h,b=(h=d(),function(){return v?h():p});function y(n,e){return function(t,r){return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];var c=this;return m(e.apply(c,a)).measureHookTime(n+t,i,(function(n){return r.call.apply(r,[c,n].concat(a))}))}}}var A=y("requestBids.",(function(n){return n.metrics})),E=y("addBidResponse.",(function(n,e){return e.metrics}))},25555:function(n,e,t){t.d(e,{k:function(){return p},v:function(){return m}});var r=t(80296),i=t(23029),o=t(92901);function a(n,e,t){(function(n,e){if(e.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n,e),e.set(n,t)}function u(n,e){return n.get(s(n,e))}function c(n,e,t){return n.set(s(n,e),t),t}function s(n,e,t){if("function"==typeof n?n===e:n.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}var d=0,l=1,f=new WeakMap,g=new WeakMap,p=function(){function n(e){if((0,i.A)(this,n),a(this,f,void 0),a(this,g,void 0),"function"!=typeof e)throw new Error("resolver not a function");var t=[],o=[],u=[d,l].map((function(n){return function(e){if(n===d&&"function"==typeof(null==e?void 0:e.then))e.then(p,v);else if(!t.length)for(t.push(n,e);o.length;)o.shift()()}})),s=(0,r.A)(u,2),p=s[0],v=s[1];try{e(p,v)}catch(n){v(n)}c(f,this,t),c(g,this,o)}return(0,o.A)(n,[{key:"then",value:function(n,e){var t=this,i=u(f,this);return new this.constructor((function(o,a){var c=function(){var t=i[1],u=i[0]===d?[n,o]:[e,a],c=(0,r.A)(u,2),s=c[0],l=c[1];if("function"==typeof s){try{t=s(t)}catch(n){return void a(n)}l=o}l(t)};i.length?c():u(g,t).push(c)}))}},{key:"catch",value:function(n){return this.then(null,n)}},{key:"finally",value:function(n){var e,t=this;return this.then((function(t){return e=t,n()}),(function(r){return e=t.constructor.reject(r),n()})).then((function(){return e}))}}],[{key:"timeout",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new n((function(n){0===e?n():setTimeout(n,e)}))}},{key:"race",value:function(e){var t=this;return new this((function(r,i){s(n,t,v).call(t,e,(function(n,e){return n?r(e):i(e)}))}))}},{key:"all",value:function(e){var t=this;return new this((function(r,i){var o=[];s(n,t,v).call(t,e,(function(n,e,t){return n?o[t]=e:i(e)}),(function(){return r(o)}))}))}},{key:"allSettled",value:function(e){var t=this;return new this((function(r){var i=[];s(n,t,v).call(t,e,(function(n,e,t){return i[t]=n?{status:"fulfilled",value:e}:{status:"rejected",reason:e}}),(function(){return r(i)}))}))}},{key:"resolve",value:function(n){return new this((function(e){return e(n)}))}},{key:"reject",value:function(n){return new this((function(e,t){return t(n)}))}}])}();function v(n,e,t){var r=this,i=n.length;function o(){e.apply(this,arguments),--i<=0&&t&&t()}0===n.length&&t?t():n.forEach((function(n,e){return r.resolve(n).then((function(n){return o(!0,n,e)}),(function(n){return o(!1,n,e)}))}))}function m(){var n,e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).promiseFactory;function r(n){return function(e){return n(e)}}return{promise:(void 0===t?function(n){return new p(n)}:t)((function(t,r){n=t,e=r})),resolve:r(n),reject:r(e)}}},12713:function(n,e,t){function r(n,e){return n===e?0:n<e?-1:1}function i(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(n){return n};return function(e,t){return r(n(e),n(t))}}function o(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return function(e,t){return-n(e,t)||0}}function a(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return function(n,t){for(var r=0,i=e;r<i.length;r++){var o=(0,i[r])(n,t);if(0!==o)return o}return 0}}function u(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return function(e,t){return n(t,e)<0?t:e}}function c(){return u(o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r))}t.d(e,{Bp:function(){return u},Bq:function(){return f},NV:function(){return i},Ph:function(){return c},Vk:function(){return l}});var s=i((function(n){return n.cpm})),d=i((function(n){return n.responseTimestamp})),l=c(a(s,o(i((function(n){return n.timeToRespond}))))),f=c(a(s,o(d)));c(a(s,d))},76853:function(n,e,t){t.d(e,{H:function(){return p}});var r=t(64467),i=t(80296),o=t(25555),a=t(91069),u=null,c=0,s=[];function d(){var n;document.hidden?u=Date.now():(c+=Date.now()-(null!==(n=u)&&void 0!==n?n:0),u=null,s.forEach((function(n){var e=n.callback,t=n.startTime;return(0,n.setTimerId)(l(e,c-t)())})),s=[])}function l(n,e){var t=c,r=setTimeout((function(){c===t&&null==u?n():null!=u?s.push({callback:n,startTime:t,setTimerId:function(n){r=n}}):r=l(n,c-t)()}),e);return function(){return r}}function f(n,e){var t="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(n){if("string"==typeof n)return g(n,e);var t={}.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return a=n.done,n},e:function(n){u=!0,o=n},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function g(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function p(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=t.startTime,c=void 0===u?a.timestamp:u,s=t.ttl,d=void 0===s?function(){return null}:s,g=t.monotonic,p=void 0!==g&&g,v=t.slack,m=void 0===v?5e3:v,h=new Map,b=[],y=[],A=p?function(n){return y.push(n)}:function(n){return y.splice((0,a.binarySearch)(y,n,(function(n){return n.expiry})),0,n)};function E(){if(e&&clearTimeout(e),y.length>0){var t=(0,a.timestamp)();n=Math.max(t,y[0].expiry+m),e=l((function(){for(var n=(0,a.timestamp)(),t=0,r=function(){var e=o[i];if(e.expiry>n)return 1;b.forEach((function(n){try{n(e.item)}catch(n){(0,a.logError)(n)}})),h.delete(e.item),t++},i=0,o=y;i<o.length&&!r();i++);y.splice(0,t),e=null,E()}),n-t)}else e=null}function w(t){var r,a={},u=I;var s=Object.entries({start:c,delta:d}).map((function(c){var s,d=(0,i.A)(c,2),l=d[0],f=d[1];return function(){var i=s={};o.k.resolve(f(t)).then((function(t){i===s&&(a[l]=t,u===I&&null!=a.start&&null!=a.delta&&(r=a.start+a.delta,A(p),(null==e||n>r+m)&&E()))}))}})),l=(0,i.A)(s,2),f=l[0],g=l[1],p={item:t,refresh:g,get expiry(){return r}};return f(),g(),p}var I={};return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},Symbol.iterator,(function(){return h.keys()})),"add",(function(n){!h.has(n)&&h.set(n,w(n))})),"clear",(function(){y.length=0,E(),h.clear(),I={}})),"toArray",(function(){return Array.from(h.keys())})),"refresh",(function(){y.length=0,E();var n,e=f(h.values());try{for(e.s();!(n=e.n()).done;){n.value.refresh()}}catch(n){e.e(n)}finally{e.f()}})),"onExpiry",(function(n){return b.push(n),function(){var e=b.indexOf(n);e>=0&&b.splice(e,1)}}))}document.addEventListener("visibilitychange",d)},63895:function(n,e,t){t.d(e,{E2:function(){return p},H6:function(){return c},V0:function(){return l},Zy:function(){return d},aP:function(){return f},mn:function(){return s},vk:function(){return g}});var r=t(80296),i=t(91069),o=t(43272),a=t(16833),u=t(67314),c="outstream",s="instream",d=new Map([["mimes",function(n){return Array.isArray(n)&&n.length>0&&n.every((function(n){return"string"==typeof n}))}],["minduration",i.isInteger],["maxduration",i.isInteger],["startdelay",i.isInteger],["maxseq",i.isInteger],["poddur",i.isInteger],["protocols",i.isArrayOfNums],["w",i.isInteger],["h",i.isInteger],["podid",i.isStr],["podseq",i.isInteger],["rqddurs",i.isArrayOfNums],["placement",i.isInteger],["plcmt",i.isInteger],["linearity",i.isInteger],["skip",function(n){return[1,0].includes(n)}],["skipmin",i.isInteger],["skipafter",i.isInteger],["sequence",i.isInteger],["slotinpod",i.isInteger],["mincpmpersec",i.isNumber],["battr",i.isArrayOfNums],["maxextended",i.isInteger],["minbitrate",i.isInteger],["maxbitrate",i.isInteger],["boxingallowed",i.isInteger],["playbackmethod",i.isArrayOfNums],["playbackend",i.isInteger],["delivery",i.isArrayOfNums],["pos",i.isInteger],["api",i.isArrayOfNums],["companiontype",i.isArrayOfNums],["poddedupe",i.isArrayOfNums]]);function l(n){var e,t=null==n||null===(e=n.mediaTypes)||void 0===e?void 0:e.video;null!=t&&null==t.plcmt&&(t.context===c||[2,3,4].includes(t.placement)?t.plcmt=4:t.context!==c&&[2,6].includes(t.playbackmethod)&&(t.plcmt=2))}function f(n,e){var t,o=null==n||null===(t=n.mediaTypes)||void 0===t?void 0:t.video;(0,i.isPlainObject)(o)?null!=o&&Object.entries(o).forEach((function(t){var a=(0,r.A)(t,2),u=a[0],c=a[1];d.has(u)&&(d.get(u)(c)||("function"==typeof e?e(u,c,n):(delete o[u],(0,i.logWarn)('Invalid prop in adUnit "'.concat(n.code,'": Invalid value for mediaTypes.video.').concat(u," ORTB property. The property has been removed.")))))})):(0,i.logWarn)("validateOrtbVideoFields: videoParams must be an object.")}function g(n){var e,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,r=void 0===t?u.n.index:t,i=null===(e=r.getMediaTypes(n))||void 0===e?void 0:e.video,o=i&&(null==i?void 0:i.context),a=i&&(null==i?void 0:i.useCacheKey),c=r.getAdUnit(n);return p(n,c,i,o,a)}var p=(0,a.A_)("sync",(function(n,e,t,r,a){return t&&(a||r!==c)?o.$W.getConfig("cache.url")||!n.vastXml||n.vastUrl?!(!n.vastUrl&&!n.vastXml):((0,i.logError)('\n This bid contains only vastXml and will not work when a prebid cache url is not specified.\n Try enabling prebid cache with pbjs.setConfig({ cache: {url: "..."} });\n '),!1):!(r===c&&!a)||!!(n.renderer||e&&e.renderer||t.renderer)}),"checkVideoBidSetup")},68693:function(n,e,t){t.d(e,{M_:function(){return d},X5:function(){return v}});var r=t(68044),i=t(43272),o=t(67314),a=t(91069),u=t(81657),c=15;function s(n){var e,t,r,a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,u=void 0===a?o.n.index:a,s=n.vastXml?n.vastXml:(e=n.vastUrl,t=n.vastImpUrl,r=(t=t&&(Array.isArray(t)?t:[t]))?t.map((function(n){return"<Impression><![CDATA[".concat(n,"]]></Impression>")})).join(""):"",'<VAST version="3.0">\n <Ad>\n <Wrapper>\n <AdSystem>prebid.org wrapper</AdSystem>\n <VASTAdTagURI><![CDATA['.concat(e,"]]></VASTAdTagURI>\n ").concat(r,"\n <Creatives></Creatives>\n </Wrapper>\n </Ad>\n </VAST>")),d=u.getAuction(n),l={type:"xml",value:s,ttlseconds:Number(n.ttl)+c};return i.$W.getConfig("cache.vasttrack")&&(l.bidder=n.bidder,l.bidid=n.requestId,l.aid=n.auctionId),null!=d&&(l.timestamp=d.getAuctionStart()),"string"==typeof n.customCacheKey&&""!==n.customCacheKey&&(l.key=n.customCacheKey),l}function d(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.g4,o={puts:n.map(s)};t(i.$W.getConfig("cache.timeout"))(i.$W.getConfig("cache.url"),function(n){return{success:function(e){var t;try{t=JSON.parse(e).responses}catch(e){return void n(e,[])}t?n(null,t):n(new Error("The cache server didn't respond with a responses property."),[])},error:function(e,t){n(new Error("Error storing video ad in the cache: ".concat(e,": ").concat(JSON.stringify(t))),[])}}}(e),JSON.stringify(o),{contentType:"text/plain",withCredentials:!0})}var l,f,g={store:d};function p(n){var e=n.map((function(n){return n.bidResponse}));g.store(e,(function(t,r){var o;t?(o=t,(0,a.logError)("Failed to save to the video cache: ".concat(o,". Video bids will be discarded:"),e)):n.length!==r.length?(0,a.logError)("expected ".concat(n.length," cache IDs, got ").concat(r.length," instead")):r.forEach((function(e,t){var r,o=n[t],c=o.auctionInstance,s=o.bidResponse,d=o.afterBidAdded;""===e.uuid?(0,a.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(s.videoCacheKey=e.uuid,s.vastUrl||(s.vastUrl=(r=s.videoCacheKey,"".concat(i.$W.getConfig("cache.url"),"?uuid=").concat(r))),(0,u.v8)(c,s),d())}))}))}i.$W.getConfig("cache",(function(n){l="number"==typeof n.cache.batchSize&&n.cache.batchSize>0?n.cache.batchSize:1,f="number"==typeof n.cache.batchTimeout&&n.cache.batchTimeout>0?n.cache.batchTimeout:0}));var v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,t=[[]],r=!1,i=function(n){return n()};return function(o,a,u){var c=f>0?n:i;t[t.length-1].length>=l&&t.push([]),t[t.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:u}),r||(r=!0,c((function(){t.forEach(e),t=[[]],r=!1}),f))}}()}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[57109],{20965:function(n,t,e){e.d(t,{c5:function(){return p},q4:function(){return s}});var r=e(64467),a=e(80296),c=e(45458),o=e(25555);function i(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function l(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?i(Object(e),!0).forEach((function(t){(0,r.A)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var u=0,f=1,s=2;function p(n){var t=n.apiName,e=n.apiVersion,i=n.apiArgs,p=void 0===i?["command","callback","parameter","version"]:i,v=n.callbackArgs,b=void 0===v?["returnValue","success"]:v,d=n.mode,O=void 0===d?u:d,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,g={},k="".concat(t,"Call"),m="".concat(t,"Return");function j(n){var t,e="string"==typeof n.data&&n.data.includes(m)?JSON.parse(n.data):n.data;if(null!=e&&null!==(t=e[m])&&void 0!==t&&t.callId){var r=e[m];g.hasOwnProperty(r.callId)&&g[r.callId].apply(g,(0,c.A)(b.map((function(n){return r[n]}))))}}var h,w=function(){for(var n,e=y,r=!1;null!=e;){try{if("function"==typeof e[t]){n=e,r=!0;break}}catch(n){}try{if(e.frames["".concat(t,"Locator")]){n=e;break}}catch(n){}if(e===y.top)break;e=e.parent}return[n,r]}(),A=(0,a.A)(w,2),P=A[0],D=A[1];if(P)return D?h=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new o.k((function(e,r){var o=P[t].apply(P,(0,c.A)(E(l(l({},n),{},{callback:n.callback||O===s?I(n.callback,e,r):void 0})).map((function(n){var t=(0,a.A)(n,2);t[0];return t[1]}))));(O===f||null==n.callback&&O===u)&&e(o)}))}:(y.addEventListener("message",j,!1),h=function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new o.k((function(e,c){var o=Math.random().toString(),i=(0,r.A)({},k,l(l({},Object.fromEntries(E(n).filter((function(n){return"callback"!==(0,a.A)(n,1)[0]})))),{},{callId:o}));g[o]=I(null==n?void 0:n.callback,e,c,(t||null==(null==n?void 0:n.callback))&&function(){delete g[o]}),P.postMessage(i,"*"),O===f&&e()}))}),Object.assign(h,{isDirect:D,close:function(){!D&&y.removeEventListener("message",j)}});function E(n){return n=Object.assign({version:e},n),p.map((function(t){return[t,n[t]]}))}function I(n,t,e,r){var a="function"==typeof n;return function(c,o){(r&&r(),O!==f)&&(null==o||o?t:e)(a?void 0:c);a&&n.apply(this,arguments)}}}}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[90010],{63806:function(n,r,o){o.d(r,{R:function(){return t}});var a=o(16894),i=o(91069);function t(n,r,o){return(0,a.Ak)(n,(function(n,a){var t;t=function(r,o){if(o){var t=i.logWarn;r&&(t=i.logError,o="".concat(o," Canceling auction as per consentManagement config."));for(var e=arguments.length,c=new Array(e>2?e-2:0),l=2;l<e;l++)c[l-2]=arguments[l];t.apply(void 0,[o].concat(c))}r?(n.stopTiming(),"function"==typeof a.bidsBackHandler?a.bidsBackHandler():(0,i.logError)("Error executing bidsBackHandler")):n.call(this,a)},r()?((0,i.logInfo)("User consent information already known. Pulling internally stored information..."),t(!1)):o(t)}))}}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[38793],{96345:function(n,e,t){var i=t(82284),o=t(80296),a=t(64467),r=t(92901),s=t(23029),c=t(45458),u=t(7873),l=t(91069),p=t(63172),f=t(43272),d=t(16916),g=t(70068),v=t(20965),h=t(25555),m=t(2604),y=t(63806);function P(n,e,t){(function(n,e){if(e.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n,e),e.set(n,t)}function S(n,e){return n.get(C(n,e))}function b(n,e,t){e||(e=[]);var i=e.length++;return Object.defineProperty({},"_",{set:function(o){e[i]=o,n.apply(t,e)}})}function w(n,e,t){return n.set(C(n,e),t),t}function C(n,e,t){if("function"==typeof n?n===e:n.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}var M,A,k,D,E=!1;function R(n,e){var t=e.onSuccess,i=e.onError;new h.k((function(e){return e(n())})).then(t,(function(n){n instanceof j?i.apply(void 0,[n.message].concat((0,c.A)(n.args))):i("GPP error:",n)}))}var j=(0,r.A)((function n(e,t){(0,s.A)(this,n),this.message=e,this.args=null==t?[]:[t]})),I=new WeakMap,W=new WeakMap,G=new WeakMap,N=function(){return(0,r.A)((function n(e){var t=this;(0,s.A)(this,n),(0,a.A)(this,"apiVersion","1.1"),P(this,I,void 0),P(this,W,void 0),P(this,G,[]),(0,a.A)(this,"initialized",!1),this.cmp=e;var i=["resolve","reject"].map((function(n){return function(e){for(;S(G,t).length;)S(G,t).pop()[n](e)}})),r=(0,o.A)(i,2);b(w,[I,this])._=r[0],b(w,[W,this])._=r[1]}),[{key:"init",value:function(n){var e=this,t=this.updateWhenReady(n);return this.initialized||(n.gppVersion!==this.apiVersion&&(0,l.logWarn)("Unrecognized GPP CMP version: ".concat(n.apiVersion,". Continuing using GPP API version ").concat(this.apiVersion,"...")),this.initialized=!0,this.cmp({command:"addEventListener",callback:function(n,t){var i;null==t||t?"error"===(null==n||null===(i=n.pingData)||void 0===i?void 0:i.cmpStatus)?S(W,e).call(e,new j('CMP status is "error"; please check CMP setup',n)):e.isCMPReady((null==n?void 0:n.pingData)||{})&&["sectionChange","signalStatus"].includes(null==n?void 0:n.eventName)&&S(I,e).call(e,e.updateConsent(n.pingData)):S(W,e).call(e,new j("Received error response from CMP",n)),null==D||null==(null==n?void 0:n.pingData)||e.isCMPReady(n.pingData)||(D=null)}})),t}},{key:"refresh",value:function(){return this.cmp({command:"ping"}).then(this.init.bind(this))}},{key:"updateConsent",value:function(n){return new h.k((function(e){if(null==n||(0,l.isEmpty)(n))throw new j("Received empty response from CMP",n);var t=_(n);(0,l.logInfo)("Retrieved GPP consent from CMP:",t),e(t)}))}},{key:"nextUpdate",value:function(){var n=(0,h.v)();return S(G,this).push(n),n.promise}},{key:"updateWhenReady",value:function(n){return this.isCMPReady(n)?this.updateConsent(n):this.nextUpdate()}},{key:"isCMPReady",value:function(n){return"ready"===n.signalStatus}}],[{key:"get",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.c5;if(null==this.INST){var e=n({apiName:"__gpp",apiArgs:["command","callback","parameter"],mode:v.q4});if(null==e)throw new j("GPP CMP not found");this.INST=new this(e)}return this.INST}}])}();(0,a.A)(N,"INST",void 0);var T={iab:function(n){var e=n.onSuccess,t=n.onError,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.c5;R((function(){return N.get(i).refresh()}),{onSuccess:e,onError:t})},static:function(n){return R((function(){return _(k)}),n)}};function O(n){var e=!1,t=null;function i(i,o,a){if(null!=t&&clearTimeout(t),e=!0,d.ad.setConsentData(i),"function"==typeof n){for(var r=arguments.length,s=new Array(r>3?r-3:0),c=3;c<r;c++)s[c-3]=arguments[c];n.apply(void 0,[o,a].concat(s))}}if(T.hasOwnProperty(M)){var o={onSuccess:function(n){return i(n,!1)},onError:function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];i.apply(void 0,[null,!0,n].concat(t))}};if(T[M](o),!e){var a=function(){var n=function(n){i(n,!1,"GPP CMP did not load, continuing auction...")};R((function(){return _(D)}),{onSuccess:n,onError:function(){return n(x())}})};0===A?a():t=setTimeout(a,A)}}else i(null,!1,"GPP CMP framework (".concat(M,") is not a supported framework. Aborting consentManagement module and resuming auction."))}var U=(0,y.R)("gpp",(function(){return D}),O);function _(n){if(null!=(null==n?void 0:n.applicableSections)&&!Array.isArray(n.applicableSections)||null!=(null==n?void 0:n.gppString)&&!(0,l.isStr)(n.gppString)||null!=(null==n?void 0:n.parsedSections)&&!(0,l.isPlainObject)(n.parsedSections))throw new j("CMP returned unexpected value during lookup process.",n);return["usnatv1","uscav1"].forEach((function(e){var t;null!=n&&null!==(t=n.parsedSections)&&void 0!==t&&t[e]&&(0,l.logWarn)("Received invalid section from cmp: '".concat(e,"'. Some functionality may not work as expected"),n)})),x(n)}function x(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return D={gppString:null==n?void 0:n.gppString,applicableSections:(null==n?void 0:n.applicableSections)||[],parsedSections:(null==n?void 0:n.parsedSections)||{},gppData:n},d.ad.setConsentData(n),D}f.$W.getConfig("consentManagement",(function(n){return function(n){(n=n&&n.gpp)&&"object"===(0,i.A)(n)?((0,l.isStr)(n.cmpApi)?M=n.cmpApi:(M="iab",(0,l.logInfo)("consentManagement.gpp config did not specify cmp. Using system default setting (".concat("iab",")."))),(0,l.isNumber)(n.timeout)?A=n.timeout:(A=1e4,(0,l.logInfo)("consentManagement.gpp config did not specify timeout. Using system default setting (".concat(1e4,")."))),"static"===M&&((0,l.isPlainObject)(n.consentData)?(k=n.consentData,A=0):(0,l.logError)("consentManagement.gpp config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),(0,l.logInfo)("consentManagement.gpp module has been activated..."),E||((0,u.m)().requestBids.before(U,50),m.U3.before((function(n,e){return n(Object.assign({gppConsent:d.ad.getConsentData()},e))}))),E=!0,d.ad.enable(),O()):(0,l.logWarn)("consentManagement.gpp config not defined, exiting consent manager module")}(n.consentManagement)})),g.w.before((function(n,e){return n(e.then((function(n){var e=d.ad.getConsentData();return e&&(Array.isArray(e.applicableSections)&&(0,p.J)(n,"regs.gpp_sid",e.applicableSections),(0,p.J)(n,"regs.gpp",e.gppString)),n})))})),(0,u.E)("consentManagementGpp")}},function(n){n.O(0,[57109,90010,60802,51085],(function(){return e=96345,n(n.s=e);var e}));n.O()}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[15081],{66117:function(n,e,t){var o,i,r,a,c,s,u=t(82284),l=t(7873),d=t(91069),p=t(63172),f=t(43272),g=t(16916),m=t(15901),v=t(1e3),b=t(70068),C=t(20965),S=t(63806),M=2,y=!1,A=!1,P={iab:function(n){var e=n.onSuccess,t=n.onError,o=n.onEvent;var i=(0,C.c5)({apiName:"__tcfapi",apiVersion:M,apiArgs:["command","version","callback","parameter"]});if(!i)return t("TCF2 CMP not found.");i.isDirect?(0,d.logInfo)("Detected CMP API is directly accessible, calling it now..."):(0,d.logInfo)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now...");i({command:"addEventListener",callback:function(n,i){(0,d.logInfo)("Received a response from CMP",n),i?(o(n),!1!==n.gdprApplies&&"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||w(n,{onSuccess:e,onError:t})):t("CMP unable to register callback function. Please check CMP setup.")}})},static:function(n){var e=n.onSuccess,t=n.onError;w(a,{onSuccess:e,onError:t})}};function E(n){var e,t,r=!1,a=null,s=!1;function u(n){null!=a&&clearTimeout(a),r||null==n||(0===n?e():a=setTimeout(e,n))}function l(e,t,o){if(u(null),r=!0,g.mW.setConsentData(e),"function"==typeof n){for(var i=arguments.length,a=new Array(i>3?i-3:0),c=3;c<i;c++)a[c-3]=arguments[c];n.apply(void 0,[t,o].concat(a))}}if((0,m.mK)(Object.keys(P),o)){var d={onSuccess:function(n){return l(n,!1)},onError:function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];l.apply(void 0,[null,!0,n].concat(t))},onEvent:function(n){t=n,s||(s=!0,null!=c&&u(c))}};e=function(){var n=function(n){l(n,!1,"".concat(s?"Timeout waiting for user action on CMP":"CMP did not load",", continuing auction..."))};w(t,{onSuccess:n,onError:function(){return n(D(void 0))}})},P[o](d),null!=c&&s||u(i)}else l(null,!1,"CMP framework (".concat(o,") is not a supported framework. Aborting consentManagement module and resuming auction."))}var h=(0,S.R)("gdpr",(function(){return s}),E);function w(n,e){var t,o,i=e.onSuccess,a=e.onError;t=n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:r,o=n&&n.tcString,"boolean"==typeof t&&(!0!==t||o&&(0,d.isStr)(o))?i(D(n)):a("CMP returned unexpected value during lookup process.",n)}function D(n){return s={consentString:n?n.tcString:void 0,vendorData:n||void 0,gdprApplies:n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:r},n&&n.addtlConsent&&(0,d.isStr)(n.addtlConsent)&&(s.addtlConsent=n.addtlConsent),s.apiVersion=M,s}f.$W.getConfig("consentManagement",(function(n){return function(n){if((n=n&&(n.gdpr||n.usp||n.gpp?n.gdpr:n))&&"object"===(0,u.A)(n)){var e;(0,d.isStr)(n.cmpApi)?o=n.cmpApi:(o="iab",(0,d.logInfo)("consentManagement config did not specify cmp. Using system default setting (".concat("iab",")."))),(0,d.isNumber)(n.timeout)?i=n.timeout:(i=1e4,(0,d.logInfo)("consentManagement config did not specify timeout. Using system default setting (".concat(1e4,")."))),c=(0,d.isNumber)(n.actionTimeout)?n.actionTimeout:null,r=!0===n.defaultGdprScope,y=!!n.dsaPlatform,(0,d.logInfo)("consentManagement module has been activated..."),"static"===o&&((0,d.isPlainObject)(n.consentData)?(null!=(null===(e=a=n.consentData)||void 0===e?void 0:e.getTCData)&&(a=a.getTCData),i=0):(0,d.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),A||(0,l.m)().requestBids.before(h,50),A=!0,g.mW.enable(),E()}else(0,d.logWarn)("consentManagement (gdpr) config not defined, exiting consent manager")}(n.consentManagement)})),b.w.before((function(n,e){return n(e.then((function(n){var e=g.mW.getConsentData();return e&&("boolean"==typeof e.gdprApplies&&(0,p.J)(n,"regs.ext.gdpr",e.gdprApplies?1:0),(0,p.J)(n,"user.ext.consent",e.consentString)),y&&(0,p.J)(n,"regs.ext.dsa.dsarequired",3),n})))})),(0,v.pS)({type:v.S3,name:"gdprAddtlConsent",fn:function(n,e){var t,o=null===(t=e.gdprConsent)||void 0===t?void 0:t.addtlConsent;o&&"string"==typeof o&&(0,p.J)(n,"user.ext.ConsentedProvidersSettings.consented_providers",o)}}),(0,l.E)("consentManagementTcf")}},function(n){n.O(0,[60802,57109,90010,51085],(function(){return e=66117,n(n.s=e);var e}));n.O()}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[98662],{86056:function(n,t,e){var o,a,c=e(82284),i=e(7873),r=e(91069),s=e(63172),u=e(43272),l=e(11445),g=e(16916),f=e(16894),p=e(16833),d=e(70068),m=e(20965),v="iab",P=v,b=50,S=!1,y={iab:function(n){var t=n.onSuccess,e=n.onError;var o=(c={},{consentDataCallback:function(n,o){o&&n.uspString&&(c.usPrivacy=n.uspString),c.usPrivacy?U(c,{onSuccess:t,onError:e}):e("Unable to get USP consent string.")}}),a=(0,m.c5)({apiName:"__uspapi",apiVersion:1,apiArgs:["command","version","callback"]});var c;if(!a)return e("USP CMP not found.");a.isDirect?(0,r.logInfo)("Detected USP CMP is directly accessible, calling it now..."):(0,r.logInfo)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now...");a({command:"getUSPData",callback:o.consentDataCallback}),a({command:"registerDeletion",callback:function(n,t){return(null==t||t)&&l.Ay.callDataDeletionRequest(n)}}).catch((function(n){(0,r.logError)("Error invoking CMP `registerDeletion`:",n)}))},static:function(n){var t=n.onSuccess,e=n.onError;U(o,{onSuccess:t,onError:e})}};function D(n){var t=null,e=!1;function o(o,a){if(null!=t&&clearTimeout(t),e=!0,g.t6.setConsentData(o),null!=n){for(var c=arguments.length,i=new Array(c>2?c-2:0),r=2;r<c;r++)i[r-2]=arguments[r];n.apply(void 0,[a].concat(i))}}if(y[P]){var a={onSuccess:o,onError:function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),a=1;a<t;a++)e[a-1]=arguments[a];o.apply(void 0,[null,"".concat(n," Resuming auction without consent data as per consentManagement config.")].concat(e))}};y[P](a),e||(0===b?U(void 0,a):t=setTimeout(a.onError.bind(null,"USPAPI workflow exceeded timeout threshold."),b))}else o(null,"USP framework (".concat(P,") is not a supported framework. Aborting consentManagement module and resuming auction."))}var h=(0,f.Ak)("usp",(function(n,t){var e=this;S||A(),D((function(o){if(null!=o){for(var a=arguments.length,c=new Array(a>1?a-1:0),i=1;i<a;i++)c[i-1]=arguments[i];r.logWarn.apply(void 0,[o].concat(c))}n.call(e,t)}))}));function U(n,t){var e=t.onSuccess,o=t.onError;!n||!n.usPrivacy?o("USPAPI returned unexpected value during lookup process.",n):(!function(n){n&&n.usPrivacy&&(a=n.usPrivacy)}(n),e(a))}function A(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];S||((0,r.logInfo)("USPAPI consentManagement module has been activated".concat(n?"":" using default values (api: '".concat(P,"', timeout: ").concat(b,"ms)"))),S=!0,g.t6.enable()),D()}u.$W.getConfig("consentManagement",(function(n){return function(n){(n=n&&n.usp)&&"object"===(0,c.A)(n)||(0,r.logWarn)("consentManagement.usp config not defined, using defaults"),n&&(0,r.isStr)(n.cmpApi)?P=n.cmpApi:(P=v,(0,r.logInfo)("consentManagement.usp config did not specify cmpApi. Using system default setting (".concat(v,")."))),n&&(0,r.isNumber)(n.timeout)?b=n.timeout:(b=50,(0,r.logInfo)("consentManagement.usp config did not specify timeout. Using system default setting (".concat(50,")."))),"static"===P&&((0,r.isPlainObject)(n.consentData)&&(0,r.isPlainObject)(n.consentData.getUSPData)?(n.consentData.getUSPData.uspString&&(o={usPrivacy:n.consentData.getUSPData.uspString}),b=0):(0,r.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),A(!0)}(n.consentManagement)})),(0,p.Yn)("requestBids").before(h,50),d.w.before((function(n,t){return n(t.then((function(n){var t=g.t6.getConsentData();return t&&(0,s.J)(n,"regs.ext.us_privacy",t),n})))})),(0,i.E)("consentManagementUsp")}},function(n){n.O(0,[57109,60802,51085],(function(){return t=86056,n(n.s=t);var t}));n.O()}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[51085],{34595:function(n,s,d){d.d(s,{G:function(){return i}});var i='!function(){"use strict";window.render=function({ad:d,adUrl:i,width:n,height:e},{mkFrame:o},r){if(!d&&!i)throw{reason:"noAd",message:"Missing ad markup or URL"};{const t=r.document,s={width:n,height:e};i&&!d?s.src=i:s.srcdoc=d,t.body.appendChild(o(t,s))}}}();'}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[56466],{19236:function(e,n,r){var o,c,t=r(80296),i=r(82284),u=r(7873),s=r(91069),a=r(63172),f=r(78969),l=r(68044),d=r(43272),v=r(16833),y=r(25555),g=r(1e3),h=r(16894),p=r(75023),C=r(70068),b=r(86400),R=4,m=[],I={},S=!1,N=!0,O="USD",T=!1,w={},A={},D=(0,y.v)(),U=(0,b.L)(),Y=0;function k(e){if(o="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",null!==e.rates&&"object"===(0,i.A)(e.rates)&&(w.conversions=e.rates,S=!0,N=!1),null!==e.defaultRates&&"object"===(0,i.A)(e.defaultRates)&&(c=e.defaultRates,w.conversions=c,S=!0),"string"==typeof e.adServerCurrency){Y=e.auctionDelay,(0,s.logInfo)("enabling currency support",arguments),O=e.adServerCurrency,e.conversionRateFile&&((0,s.logInfo)("currency using override conversionRateFile:",e.conversionRateFile),o=e.conversionRateFile);var n=o.indexOf("$$TODAY$$");if(-1!==n){var r=new Date,t="".concat(r.getMonth()+1),a="".concat(r.getDate());t.length<2&&(t="0".concat(t)),a.length<2&&(a="0".concat(a));var l="".concat(r.getFullYear()).concat(t).concat(a);o="".concat(o.substring(0,n)).concat(l).concat(o.substring(n+9,o.length))}I={},T||(T=!0,(0,u.m)().convertCurrency=function(e,n,r){return parseFloat(e)*q(n,r)},(0,v.Yn)("addBidResponse").before(j,100),(0,v.Yn)("responsesReady").before($),C.w.before(x),(0,v.Yn)("requestBids").before(B,50),(0,p.on)(f.qY.AUCTION_TIMEOUT,_),(0,p.on)(f.qY.AUCTION_INIT,F),F())}else Y=0,(0,s.logInfo)("disabling currency support"),T&&((0,v.Yn)("addBidResponse").getHooks({hook:j}).remove(),(0,v.Yn)("responsesReady").getHooks({hook:$}).remove(),C.w.getHooks({hook:x}).remove(),(0,v.Yn)("requestBids").getHooks({hook:B}).remove(),(0,p.off)(f.qY.AUCTION_TIMEOUT,_),(0,p.off)(f.qY.AUCTION_INIT,F),delete(0,u.m)().convertCurrency,O="USD",I={},T=!1,S=!1,N=!0,w={},A={},D=(0,y.v)());"object"===(0,i.A)(e.bidderCurrencyDefault)&&(A=e.bidderCurrencyDefault)}function E(e){c?((0,s.logWarn)(e),(0,s.logWarn)("Currency failed loading rates, falling back to currency.defaultRates")):(0,s.logError)(e)}function F(){N?(N=!1,S=!1,(0,l.RD)(o,{success:function(e){try{w=JSON.parse(e),(0,s.logInfo)("currencyRates set to "+JSON.stringify(w)),I={},S=!0,W(),U.resume()}catch(n){E("Failed to parse currencyRates response: "+e)}},error:function(){E.apply(void 0,arguments),S=!0,W(),U.resume(),N=!0}})):W()}function $(e,n){e(n.then((function(){return D.promise})))}d.$W.getConfig("currency",(function(e){return k(e.currency)}));var j=(0,h.NL)("currency",(function(e,n,r,o){if(!r)return e.call(this,n,r,o);var c=r.bidderCode||r.bidder;if(A[c]){var t=A[c];r.currency&&t!==r.currency?(0,s.logWarn)("Currency default '".concat(c,": ").concat(t,"' ignored. adapter specified '").concat(r.currency,"'")):r.currency=t}if(r.currency||((0,s.logWarn)('Currency not specified on bid. Defaulted to "USD"'),r.currency="USD"),r.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*q(this.currency,e)).toFixed(3)},r.currency===O)return e.call(this,n,r,o);m.push([e,this,n,r,o]),T&&!S||W()}));function _(e){var n=e.auctionId;m=m.filter((function(e){var r=(0,t.A)(e,5),o=(r[0],r[1],r[2],r[3]),c=r[4];if(o.auctionId!==n)return!0;c(f.Tf.CANNOT_CONVERT_CURRENCY)}))}function W(){for(;m.length>0;){var e=m.shift(),n=(0,t.A)(e,5),r=n[0],o=n[1],c=n[2],i=n[3],u=n[4];if(void 0!==i&&"currency"in i&&"cpm"in i){var a=i.currency;try{var l=q(a);1!==l&&(i.cpm=(parseFloat(i.cpm)*l).toFixed(4),i.currency=O)}catch(e){(0,s.logWarn)("getCurrencyConversion threw error: ",e),u(f.Tf.CANNOT_CONVERT_CURRENCY);continue}}r.call(o,c,i,u)}D.resolve()}function q(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,o=null,c="".concat(e,"->").concat(r);if(c in I)o=I[c],(0,s.logMessage)("Using conversionCache value "+o+" for "+c);else if(!1===T){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");o=1}else if(e===r)o=1;else if(e in w.conversions){if(!(r in(n=w.conversions[e])))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");o=n[r],(0,s.logInfo)("getCurrencyConversion using direct "+e+" to "+r+" conversionRate "+o)}else if(r in w.conversions){if(!(e in(n=w.conversions[r])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");o=M(1/n[e],R),(0,s.logInfo)("getCurrencyConversion using reciprocal "+e+" to "+r+" conversionRate "+o)}else{var t=Object.keys(w.conversions)[0];if(!(e in w.conversions[t]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var i=1/w.conversions[t][e];if(!(r in w.conversions[t]))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");o=M(i*w.conversions[t][r],R),(0,s.logInfo)("getCurrencyConversion using intermediate "+e+" thru "+t+" to "+r+" conversionRate "+o)}return c in I||((0,s.logMessage)("Adding conversionCache value "+o+" for "+c),I[c]=o),o}function M(e,n){for(var r=1,o=0;o<n;o++)r+="0";return Math.round(e*r)/r}function x(e,n){return e(n.then((function(e){return(0,a.J)(e,"ext.prebid.adServerCurrency",O),e})))}(0,g.pS)({type:g.S3,name:"currency",fn:function(e,n,r){T&&(e.cur=e.cur||[r.currency||O])}});var B=(0,h.Ak)("currency",(function(e,n){var r,o=(r=this,function(){return e.call(r,n)});!S&&Y>0?U.submit(Y,o,(function(){(0,s.logWarn)("".concat("currency",": Fetch attempt did not return in time for auction ").concat(n.auctionId)),o()})):o()}));(0,u.E)("currency")}},function(e){e.O(0,[60802,35957,51085],(function(){return n=19236,e(e.s=n);var n}));e.O()}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[4584],{84232:function(t,n,e){var o=e(7873),r=e(51252),a=e(67314),i=e(43272),u=e(78969),d=e(16833),c=e(15901),l=e(91069),f=e(63172),s=e(70433),p=void 0,g={},v=!1;function b(t){return(0,r.eu)(t)}var m=function(t){return(i.$W.getConfig("gptPreAuction")||{}).mcmEnabled?t.replace(/(^\/\d*),\d*\//,"$1/"):t};function h(t){(0,l.logWarn)("pbadslot is deprecated and will soon be removed, use gpid instead",t)}var A=function(t,n){var e=function(t){var n=g.customGptSlotMatching;if((0,l.isGptPubadsDefined)()){var e=t.reduce((function(t,n){return t[n.code]=t[n.code]||[],t[n.code].push(n),t}),{}),o={};return window.googletag.pubads().getSlots().forEach((function(t){var r=(0,c.I6)(Object.keys(e),n?n(t):(0,l.isAdUnitCodeMatchingSlot)(t));if(r){var a=o[r]=t.getAdUnitPath(),i={name:"gam",adslot:m(a)};e[r].forEach((function(t){var n;(0,f.J)(t,"ortb2Imp.ext.data.adserver",Object.assign({},null===(n=t.ortb2Imp)||void 0===n||null===(n=n.ext)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.adserver,i))}))}})),o}}(n),o=g,r=o.useDefaultPreAuction,a=o.customPreAuction;n.forEach((function(t){t.ortb2Imp=t.ortb2Imp||{},t.ortb2Imp.ext=t.ortb2Imp.ext||{},t.ortb2Imp.ext.data=t.ortb2Imp.ext.data||{};var n=t.ortb2Imp.ext;if(a||r){var o;null!==(o=n.data)&&void 0!==o&&o.pbadslot&&h(t);var i,u=(0,s.A)(n,"data.adserver.adslot");a?i=a(t,u,null==e?void 0:e[t.code]):r&&(i=function(t,n,e){var o=t.ortb2Imp.ext.data;if(o.pbadslot)return o.pbadslot;if((0,l.isGptPubadsDefined)()){var r=window.googletag.pubads().getSlots().filter((function(t){return t.getAdUnitPath()===e}));if(0!==r.length)return 1===r.length?n:"".concat(n,"#").concat(t.code)}}(t,u,null==e?void 0:e[t.code])),i&&(n.gpid=n.data.pbadslot=i)}else{h(t);var d=function(t){var n=t.ortb2Imp.ext.data,e=g.customPbAdSlot;if(!n.pbadslot)if(e)n.pbadslot=e(t.code,(0,s.A)(n,"adserver.adslot"));else{try{var o=document.getElementById(t.code);if(o.dataset.adslotid)return void(n.pbadslot=o.dataset.adslotid)}catch(t){}if(!(0,s.A)(n,"adserver.adslot"))return n.pbadslot=t.code,!0;n.pbadslot=n.adserver.adslot}}(t);n.gpid||d||(n.gpid=n.data.pbadslot)}}));for(var i=arguments.length,u=new Array(i>2?i-2:0),d=2;d<i;d++)u[d-2]=arguments[d];return t.call.apply(t,[p,n].concat(u))},I=function(t,n){var e=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.n;return Object.values(t).flatMap((function(t){return Object.entries(t)})).filter((function(t){return t[0]===u.xS.AD_ID||t[0].startsWith(u.xS.AD_ID+"_")})).flatMap((function(t){return t[1]})).map((function(t){var e;return null===(e=n.findBidByAdId(t))||void 0===e?void 0:e.auctionId})).filter((function(t){return null!=t})).filter(l.uniques)}(n),o=function(t){var n={};return r.Cn.forEach((function(e){var o=t.flatMap((function(t){return t})).filter((function(t){return t.taxonomy===e})).map((function(t){return t.values}));n[e]=o.length?o.reduce((function(t,n){return t.filter((function(t){return n.includes(t)}))})):[],n[e]={values:n[e]}})),n}(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.n.index;return t.map((function(t){var e;return null===(e=n.getAuction({auctionId:t}))||void 0===e||null===(e=e.getFPD())||void 0===e?void 0:e.global})).map(b).filter((function(t){return t}))}(e));window.googletag.setConfig&&window.googletag.setConfig({pps:{taxonomies:o}}),t(n)},P=function(t){(g=(0,l.pick)(t,["enabled",function(t){return!1!==t},"customGptSlotMatching",function(t){return"function"==typeof t&&t},"customPbAdSlot",function(t){return"function"==typeof t&&t},"customPreAuction",function(t){return"function"==typeof t&&t},"useDefaultPreAuction",function(t){return null==t||t}])).enabled?v||((0,d.Yn)("makeBidRequests").before(A),(0,d.Yn)("targetingDone").after(I),v=!0):((0,l.logInfo)("".concat("GPT Pre-Auction",": Turning off module")),g={},(0,d.Yn)("makeBidRequests").getHooks({hook:A}).remove(),(0,d.Yn)("targetingDone").getHooks({hook:I}).remove(),v=!1)};i.$W.getConfig("gptPreAuction",(function(t){return P(t.gptPreAuction)})),P({}),(0,o.E)("gptPreAuction")}},function(t){t.O(0,[33005,60802,51085],(function(){return n=84232,t(t.s=n);var n}));t.O()}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[33005],{51252:function(n,t,o){o.d(t,{Cn:function(){return w},eu:function(){return s},ho:function(){return m},mw:function(){return a},n9:function(){return f},p:function(){return l},ph:function(){return c}});var e=o(80296),u=o(64467),r=o(73858),i=o(15901),g=o(91069),d=o(70433);function a(n){return function(t){return(0,g.compareCodeAndSlot)(t,n)}}function c(n,t){if(!n||"string"!=typeof n)return!1;window.googletag=window.googletag||{cmd:[]},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setTargeting(n,t)}))}function f(n){var t;return(0,g.isGptPubadsDefined)()&&(t=(0,i.I6)(window.googletag.pubads().getSlots(),a(n))),t}function l(n){var t=f(n);return t?{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()}:{}}var w=["IAB_AUDIENCE_1_1","IAB_CONTENT_2_2"];function s(n){return Object.entries((0,u.A)((0,u.A)({},w[0],p(n,["user.data"],4)),w[1],p(n,r.Dy.map((function(n){return"".concat(n,".content.data")})),6))).map((function(n){var t=(0,e.A)(n,2),o=t[0],u=t[1];return u.length?{taxonomy:o,values:u}:null})).filter((function(n){return n}))}function p(n,t,o){return t.flatMap((function(t){return(0,d.A)(n,t)||[]})).filter((function(n){var t;return(null===(t=n.ext)||void 0===t?void 0:t.segtax)===o})).flatMap((function(n){var t;return null===(t=n.segment)||void 0===t?void 0:t.map((function(n){return n.id}))})).filter((function(n){return n})).filter(g.uniques)}function m(n){!function(n,t){var o=function(){return window.googletag.pubads().addEventListener(n,t)};(0,g.isGptPubadsDefined)()?o():(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(o))}("slotRenderEnded",n)}}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[97247],{28656:function(n,r,t){t.d(r,{D:function(){return f}});var e=t(45458),u=t(73858),o=t(70433),a=["user.keywords"].concat(u.Dy.flatMap((function(n){return["keywords","content.keywords"].map((function(r){return"".concat(n,".").concat(r)}))})));function c(){for(var n=new Set,r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.filter((function(n){return n})).flatMap((function(n){return Array.isArray(n)?n:n.split(",")})).map((function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")})).filter((function(n){return n})).forEach((function(r){return n.add(r)})),Array.from(n.keys())}function f(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return c.apply(void 0,(0,e.A)(a.map((function(r){return(0,o.A)(n,r)}))).concat(t))}}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[28763],{26637:function(e,t,n){var r=n(82284),i=n(45458),o=n(80296),a=n(64467),c=n(7873),s=n(91069),d=n(70433),u=n(63172),l=n(88910),f=n(11445),p=n(78969),v=n(68044),g=n(43272),m=n(12938),b=n(45569),I=n(16833);function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.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)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(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 E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D,O,U,w,k,T,S,j=(0,m.vM)({moduleType:b.Tn,moduleName:"magnite"}),C="mgniSession",R="Magnite Analytics",P=["rubicon"],B={1:"timeout-error",2:"input-error",3:"connect-error",4:"request-error",999:"generic-error"},M=0,q=(0,c.m)(),L=p.qY.AUCTION_INIT,N=p.qY.AUCTION_END,x=p.qY.BID_REQUESTED,W=p.qY.BID_RESPONSE,_=p.qY.BIDDER_DONE,J=p.qY.BID_TIMEOUT,Y=p.qY.BID_WON,V=p.qY.BILLABLE_EVENT,F=p.qY.PBS_ANALYTICS,H=p.qY.BID_REJECTED,z=function(){T={cachePending:{},auctions:{},auctionOrder:[],timeouts:{},billing:{},pendingEvents:{},eventPending:!1,elementIdMap:{},sessionData:{},bidsCachedClientSide:new WeakSet},k={pvid:(0,s.generateUUID)().slice(0,8),analyticsEventDelay:500,analyticsBatchTimeout:5e3,analyticsProcessDelay:1,dmBilling:{enabled:!1,vendors:[],waitForAuction:!0},pbaBrowserLocation:"client.browser"}};z(),g.$W.getConfig("rubicon",(function(e){(0,s.mergeDeep)(k,e.rubicon),!0===(0,d.A)(e,"rubicon.updatePageView")&&(k.pvid=(0,s.generateUUID)().slice(0,8))})),g.$W.getConfig("s2sConfig",(function(e){var t=e.s2sConfig;S=t}));var $=function(){T.pendingEvents.trigger="batched-".concat(Object.keys(T.pendingEvents).sort().join("-")),Q(T.pendingEvents),T.pendingEvents={},T.eventPending=!1},G=function(e,t,n){T.auctions[t]&&!T.auctions[t].sent?T.auctions[t].pendingEvents=(0,s.mergeDeep)(T.auctions[t].pendingEvents,e):k.analyticsEventDelay>0?(T.pendingEvents=(0,s.mergeDeep)(T.pendingEvents,e),T.eventPending||(setTimeout($,k.analyticsEventDelay),T.eventPending=!0)):(e.trigger="solo-".concat(n),Q(e))},Q=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=k.analyticsEndpoint||w;if(r){var i=E(E({},ee()),e);if(n)navigator.sendBeacon(r,JSON.stringify(i));else{if(null!==(t=window.pbjs)&&void 0!==t&&null!==(t=t.rp)&&void 0!==t&&t.eventDispatcher){var o=new CustomEvent("beforeSendingMagniteAnalytics",{detail:i});window.pbjs.rp.eventDispatcher.dispatchEvent(o)}(0,v.RD)(r,null,JSON.stringify(i),{contentType:"application/json"})}}else(0,s.logWarn)("".concat(R,": Endpoint not initialized, skipping sending event"),e)},Z=function(e,t){var n=T.auctions[e],r=K(n.auction);n.sent=!0,Q(E(E({auctions:[r]},n.pendingEvents||{}),{},{trigger:t}))},K=function(e){var t,n,r=(0,s.deepClone)(e);return r.dmWebVitals=null==q||null===(t=q.rp)||void 0===t||null===(n=t.getDmWebVitals)||void 0===n?void 0:n.call(t,r.auctionId,!0),r.samplingFactor=1,r.adUnits=Object.entries(r.adUnits).map((function(e){var t=(0,o.A)(e,2),n=(t[0],t[1]);return n.bids=Object.entries(n.bids).map((function(e){var t=(0,o.A)(e,2),r=(t[0],t[1]),i=["error","no-bid","success"];return i.indexOf(r.status)>i.indexOf(n.status)&&(n.status=r.status),r.pbsBidId&&(r.oldBidId=r.bidId,r.bidId=r.pbsBidId,delete r.pbsBidId),r})),n})),r},X=function(e,t){var n=function(e){var t,n;if("number"==typeof(0,d.A)(e,"floorData.cpmAfterAdjustments"))t=e.floorData.cpmAfterAdjustments,n=e.floorData.floorCurrency;else{if("string"==typeof e.currency&&"USD"===e.currency.toUpperCase())return Number(e.cpm);t=e.cpm,n=e.currency}if("USD"===n)return Number(t);try{return Number(q.convertCurrency(t,n,"USD"))}catch(r){return(0,s.logWarn)("".concat(R,": Could not determine the bidPriceUSD of the bid "),e),e.conversionError=!0,e.ogCurrency=n,e.ogPrice=t,0}}(e);return t&&t.bidPriceUSD>n?t:(0,s.pick)(e,["bidPriceUSD",function(){return n},"dealId",function(e){return e||void 0},"mediaType","dimensions",function(){var t=e.width||e.playerWidth,n=e.height||e.playerHeight;return t&&n?{width:t,height:n}:void 0},"floorValue",function(){return(0,d.A)(e,"floorData.floorValue")},"floorRuleValue",function(){return(0,d.A)(e,"floorData.floorRuleValue")},"floorRule",function(){return(0,s.debugTurnedOn)()?(0,d.A)(e,"floorData.floorRule"):void 0},"adomains",function(){var t=(0,d.A)(e,"meta.advertiserDomains"),n=Array.isArray(t)&&t.filter((function(e){return"string"==typeof e}));return n&&n.length>0?n.slice(0,10):void 0},"networkId",function(){var t=(0,d.A)(e,"meta.networkId");return t&&t.toString()||void 0},"conversionError",function(e){return!0===e||void 0},"ogCurrency","ogPrice","rejectionReason"])},ee=function(){var e={channel:"web",integration:"dmpbjs",referrerUri:O,version:"9.25.0",referrerHostname:ue.referrerHostname||te(O),timestamps:{timeSincePageLoad:performance.now(),eventTime:Date.now(),prebidLoaded:ue.MODULE_INITIALIZED_TIME}};return D&&(0,u.J)(e,k.pbaBrowserLocation||"client.browser",D),k.wrapperName&&(e.wrapper={name:k.wrapperName,family:k.wrapperFamily,rule:k.rule_name,allocation:parseInt(k.allocation)||void 0}),T.sessionData&&(e.session=(0,s.pick)(T.sessionData,["id","pvid","start","expires"]),(0,s.isEmpty)(T.sessionData.fpkvs)||(e.fpkvs=Object.keys(T.sessionData.fpkvs).map((function(e){return{key:e,value:T.sessionData.fpkvs[e]}})))),e},te=function(e){try{ue.referrerHostname=(0,s.parseUrl)(e,{noDecodeWholeURL:!0}).hostname}catch(t){(0,s.logError)("".concat(R,": Unable to parse hostname from supplied url: "),e,t),ue.referrerHostname=""}return ue.referrerHostname},ne=function(){var e=Date.now(),t=function(){var e=j.getDataFromLocalStorage(C);if(e)try{return JSON.parse(window.atob(e))}catch(e){(0,s.logError)("".concat(R,": Unable to decode ").concat(C," value: "),e)}return{}}();return(!Object.keys(t).length||e-t.lastSeen>18e5||t.expires<e)&&(t={id:(0,s.generateUUID)(),start:e,expires:e+216e5}),Object.keys(t).length&&(t.lastSeen=e,t.fpkvs=E(E({},t.fpkvs),re()),t.pvid=k.pvid,function(e){try{j.setDataInLocalStorage(C,window.btoa(JSON.stringify(e)))}catch(e){(0,s.logError)("".concat(R,": Unable to encode ").concat(C," value: "),e)}}(t)),t},re=function(){return k.fpkvs=Object.assign(k.fpkvs||{},function(){var e;try{e=(0,s.parseQS)((0,s.getWindowLocation)().search)}catch(t){e={}}return Object.keys(e).reduce((function(t,n){return n.match(/utm_/)&&(t[n.replace(/utm_/,"")]=e[n]),t}),{})}()),Object.keys(k.fpkvs).forEach((function(e){k.fpkvs[e]=k.fpkvs[e]+""})),k.fpkvs},ie=function(e){return{width:e.w||e[0],height:e.h||e[1]}},oe=function(e,t){var n,r={},i=y(T.auctionOrder);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=T.auctions[o].auction;for(var c in a.adUnits){var d=a.adUnits[c],u=void 0;try{u=e(d,a)}catch(e){(0,s.logWarn)("".concat(R,": Error running matches function: ").concat(t),e),u=!1}if(u&&(r={adUnit:d,auction:a},t))return r}}}catch(e){i.e(e)}finally{i.f()}return r},ae=function(e){var t,n=function(e){if(!g.$W.getConfig("useBidCache"))return{renderTransactionId:e.transactionId,renderAuctionId:e.auctionId};var t=oe((function(t,n){var r=(0,d.A)(T,"auctions.".concat(n.auctionId,".gamRenders.").concat(t.transactionId));return t.adUnitCode===e.adUnitCode&&r}),!1),n=t.adUnit,r=t.auction;return{renderTransactionId:n&&n.transactionId||e.transactionId,renderAuctionId:r&&r.auctionId||e.auctionId}}(e),r=n.renderTransactionId,i=n.renderAuctionId,o=r!==e.transactionId;(0,s.logInfo)("".concat(R,": Bid Won : "),{isCachedBid:o,renderAuctionId:i,renderTransactionId:r,sourceAuctionId:e.auctionId,sourceTransactionId:e.transactionId});var a=(0,d.A)(T,"auctions.".concat(e.auctionId,".auction.adUnits.").concat(e.transactionId,".bids.").concat(e.requestId)),c=(0,d.A)(T,"auctions.".concat(e.auctionId,".auction.adUnits.").concat(e.transactionId)),u=E(E({},a),{},{sourceAuctionId:e.auctionId,renderAuctionId:i,transactionId:e.transactionId,sourceTransactionId:e.transactionId,bidId:a.pbsBidId||e.bidId||e.requestId,renderTransactionId:r,accountId:U,siteId:c.siteId,zoneId:c.zoneId,mediaTypes:c.mediaTypes,adUnitCode:c.adUnitCode,videoAdFormat:c.videoAdFormat,isCachedBid:o||void 0});return"number"==typeof(null===(t=e.directRender)||void 0===t?void 0:t.rulePriority)&&(u.directRender=e.directRender),delete u.pbsBidId,u},ce=function(){window.googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=(0,s.isAdUnitCodeMatchingSlot)(e.slot),n=oe((function(e,n){var r=(T.elementIdMap[e.adUnitCode]||[e.adUnitCode]).some(t),i=(0,d.A)(T,"auctions.".concat(n.auctionId,".gamRenders.").concat(e.transactionId));return r&&!i}),!0),r=n.adUnit,i=n.auction,o="".concat(e.slot.getAdUnitPath()," - ").concat(e.slot.getSlotElementId());if(r&&i){var a=i.auctionId;(0,s.logInfo)("".concat(R,": Gam Render: "),{slotName:o,transactionId:r.transactionId,auctionId:a,adUnit:r});var c=function(e,t,n){var r=(0,s.pick)(e,["advertiserId",function(e){return(0,s.isNumber)(e)?e:void 0},"creativeId",function(t){return(0,s.isNumber)(e.sourceAgnosticCreativeId)?e.sourceAgnosticCreativeId:(0,s.isNumber)(t)?t:void 0},"lineItemId",function(t){return(0,s.isNumber)(e.sourceAgnosticLineItemId)?e.sourceAgnosticLineItemId:(0,s.isNumber)(t)?t:void 0},"adSlot",function(){return e.slot.getAdUnitPath()},"isSlotEmpty",function(){return e.isEmpty||void 0}]);return r.auctionId=n.auctionId,r.transactionId=t.transactionId,r}(e,r,i);(0,u.J)(T,"auctions.".concat(a,".gamRenders.").concat(r.transactionId),!0),G({gamRenders:[c]},a,"gam"),se(a)&&de(a)}else(0,s.logInfo)("".concat(R,": Could not find matching adUnit for Gam Render: "),{slotName:o})}))};function se(e){if(!T.auctions[e].sent&&Object.keys(T.auctions[e].gamRenders).every((function(t){return T.auctions[e].gamRenders[t]})))return!0}function de(e){clearTimeout(T.timeouts[e]),delete T.timeouts[e],k.analyticsEventDelay>0?setTimeout((function(){Z(e,"gam-delayed")}),k.analyticsEventDelay):Z(e,"gam")}var ue=(0,l.Ay)({analyticsType:"endpoint"});function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!1;(w=(0,d.A)(e,"options.endpoint"))||((0,s.logError)("".concat(R,": required endpoint missing")),t=!0),(U=Number((0,d.A)(e,"options.accountId")))||((0,s.logError)("".concat(R,": required accountId missing")),t=!0),t||ue.originEnableAnalytics(e),(0,s.isGptPubadsDefined)()?ce():(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){return ce()}))),(0,I.Yn)("callPrebidCache").before(fe)}function fe(e,t,n,r,i){T.bidsCachedClientSide.add(n),T.cachePending[n.auctionId]||(T.cachePending[n.auctionId]=0),T.cachePending[n.auctionId]++;var o=Date.now();e.call(this,t,n,(function(){T.cachePending[n.auctionId]--,n.cacheTime=Date.now()-o,r()}),i)}ue.originEnableAnalytics=ue.enableAnalytics;var pe=function(e){var t,n=ae(e);G({bidsWon:[n]},n.renderAuctionId,"bidWon"),"number"==typeof(null===(t=e.directRender)||void 0===t?void 0:t.rulePriority)&&((0,u.J)(T,"auctions.".concat(e.auctionId,".gamRenders.").concat(e.transactionId),!0),se(e.auctionId)&&de(e.auctionId))},ve=function(e,t){Object.keys(t).forEach((function(n){Array.isArray(t[n])&&t[n].length&&(e[n]=t[n].length)}))};window.addEventListener("pagehide",(function(){var e,t;(0,s.logInfo)("".concat(R,": Page Hide"));var n={};Object.keys(T.auctions).forEach((function(e){T.auctions[e].sent||(n.auctions=n.auctions||0,n.auctions+=1,T.auctions[e].pendingEvents&&Object.keys(T.auctions[e].pendingEvents).length&&ve(n,T.auctions[e].pendingEvents),(0,s.logInfo)("".concat(R,": Auction ").concat(e," not sent!")))})),ve(n,T.pendingEvents);var i=T.auctionOrder[T.auctionOrder.length-1],o=null==q||null===(e=q.rp)||void 0===e||null===(t=e.getDmWebVitals)||void 0===t?void 0:t.call(e,i,!0);"object"===(0,r.A)(o)&&Object.keys(o).length&&(n.dmWebVitals=o),Object.keys(n).length&&(n.accountId=U,Q({missedEvents:n,trigger:"unload"},!0))})),ue.enableAnalytics=le,ue.originDisableAnalytics=ue.disableAnalytics,ue.disableAnalytics=function(){ue._oldEnable=le,w=void 0,U=void 0,M=0,z(),(0,I.Yn)("callPrebidCache").getHooks({hook:fe}).remove(),ue.originDisableAnalytics()},ue.onDataDeletionRequest=function(){if(!j.localStorageIsEnabled())throw Error("Unable to access local storage, no data deleted");j.removeDataFromLocalStorage(C)},ue.MODULE_INITIALIZED_TIME=Date.now(),ue.referrerHostname="";var ge=function(e,t){var n=(0,d.A)(T,"auctions.".concat(e.auctionId,".auction")),r=(0,d.A)(n,"adUnits.".concat(e.transactionId)),i=r.bids[e.requestId];if(!i&&e.originalRequestId){var o=r.bids[e.originalRequestId];r.bids[e.requestId]=E(E({},o),{},{bidId:e.requestId,bidderDetail:e.targetingBidder}),i=r.bids[e.requestId]}if("boolean"!=typeof(0,d.A)(n,"floors.enforcement")&&(0,d.A)(e,"floorData.enforcements")&&((0,u.J)(n,"floors.enforcement",e.floorData.enforcements.enforceJS),(0,u.J)(n,"floors.dealsEnforced",e.floorData.enforcements.floorDeals)),!i&&e.seatBidId&&(i=r.bids[e.seatBidId]={bidder:e.bidderCode,source:"server",bidId:e.seatBidId,unknownBid:!0}),i){i.status=t;var a=me(e,n.auctionStart);i.clientLatencyMillis=a.total,i.httpLatencyMillis=a.net,i.cacheTime=e.cacheTime,i.bidResponse=X(e,i.bidResponse);var c=(0==e.pbsBidId?(0,s.generateUUID)():e.pbsBidId)||(0==e.seatBidId?(0,s.generateUUID)():e.seatBidId);c&&!T.bidsCachedClientSide.has(e)&&(i.pbsBidId=c)}else(0,s.logError)("".concat(R,": Could not find associated bid request for bid response with requestId: "),e.requestId)},me=function(e,t){try{var n=e.metrics.getMetrics(),r=e.src||e.source;return{total:parseInt(n["adapter.".concat(r,".total")]),net:parseInt(Array.isArray(n["adapter.".concat(r,".net")])?n["adapter.".concat(r,".net")][n["adapter.".concat(r,".net")].length-1]:n["adapter.".concat(r,".net")])}}catch(e){var i=Date.now()-t;return{total:i,net:i}}};ue.track=function(e){var t,n,r,o,a,c=e.eventType,l=e.args;switch(c){case L:M+=1,T.sessionData=j.localStorageIsEnabled()&&ne(),o=f.Ay.aliasRegistry,a=Object.keys(o).filter((function(e){return"rubicon"===o[e]})),P.push.apply(P,(0,i.A)(a)),O=(0,d.A)(l,"bidderRequests.0.refererInfo.page");var v=(0,s.pick)(l,["auctionId","timestamp as auctionStart","timeout as clientTimeoutMillis"]);if(v.accountId=U,v.auctionIndex=M,!D){var g=(0,d.A)(l,"bidderRequests.0.ortb2.device.ua",navigator.userAgent)||"";D=function(e){var t=e.toLowerCase();return t.includes("edg")?"Edge":/opr|opera|opt/i.test(t)?"Opera":/chrome|crios/i.test(t)?"Chrome":/fxios|firefox/i.test(t)?"Firefox":t.includes("safari")&&!/chromium|ucbrowser/i.test(t)?"Safari":"OTHER"}(g)}v.bidderOrder=l.bidderRequests.map((function(e){return e.bidderCode}));var m=(0,d.A)(l,"bidderRequests.0.bids.0.floorData");m&&(v.floors=function(e){return"noData"===e.location?(0,s.pick)(e,["location","fetchStatus","floorProvider as provider"]):(0,s.pick)(e,["location","modelVersion as modelName","modelWeight","modelTimestamp","skipped","enforcement",function(){return(0,d.A)(e,"enforcements.enforceJS")},"dealsEnforced",function(){return(0,d.A)(e,"enforcements.floorDeals")},"skipRate","fetchStatus","floorMin","floorProvider as provider"])}(m));var b=(0,d.A)(l,"bidderRequests.0.ortb2.device.ext.cdep");!b||-1===b.indexOf("treatment")&&-1===b.indexOf("control_2")||(v.cdep=1);var I=(0,d.A)(l,"bidderRequests.0.gdprConsent");I&&(v.gdpr=(0,s.pick)(I,["gdprApplies as applies","consentString","apiVersion as version"]));var y=Object.keys((0,d.A)(l,"bidderRequests.0.bids.0.userId",{})).map((function(e){return{provider:e,hasId:!0}}));y.length&&(v.user={ids:y}),S&&(v.serverTimeoutMillis=S.timeout);var h={};v.adUnits=l.adUnits.reduce((function(e,t){var n,r=(0,s.pick)(t,["code as adUnitCode","transactionId","mediaTypes",function(e){return Object.keys(e)},"sizes as dimensions",function(e){return(e||[[1,1]]).map(ie)}]);r.pbAdSlot=(0,d.A)(t,"ortb2Imp.ext.data.pbadslot"),r.pattern=(0,d.A)(t,"ortb2Imp.ext.data.aupname"),r.gpid=(0,d.A)(t,"ortb2Imp.ext.gpid"),r.bids={},e[t.transactionId]=r,h[t.transactionId]=!1,t.mediaTypes.video&&(r.videoAdFormat="outstream"===(n=t.mediaTypes.video).context?"outstream":n.startDelay>0?"mid-roll":{0:"pre-roll","-1":"mid-roll","-2":"post-roll"}[n.startDelay||0]);var i=(0,d.A)(t,"ortb2Imp.ext.data.elementid");i&&(T.elementIdMap[t.code]=T.elementIdMap[t.code]||[],("string"==typeof i?[i]:i).forEach((function(e){T.elementIdMap[t.code].includes(e)||T.elementIdMap[t.code].push(e)})));return e}),{}),T.auctions[l.auctionId]={auction:v,gamRenders:h,pendingEvents:{}};break;case x:l.bids.forEach((function(e){var t=(0,d.A)(T,"auctions.".concat(l.auctionId,".auction.adUnits.").concat(e.transactionId));t.bids[e.bidId]=(0,s.pick)(e,["bidder","bidId","source",function(){return"s2s"===e.src?"server":"client"},"status",function(){return"no-bid"}]),"server"===t.bids[e.bidId].source&&(t.pbsRequest=1),t.siteId&&t.zoneId||-1===P.indexOf(e.bidder)||(0,d.A)(e,"params.accountId")==U&&(t.accountId=parseInt(U),t.siteId=parseInt((0,d.A)(e,"params.siteId")),t.zoneId=parseInt((0,d.A)(e,"params.zoneId")))}));break;case W:ge(l,"success");break;case H:var A=l.rejectionReason===p.Tf.FLOOR_NOT_MET?"rejected-ipf":"rejected";ge(l,A);break;case F:be(l);break;case _:var E=(0,d.A)(l,"serverErrors.0"),w=l.serverResponseTimeMs;l.bids.forEach((function(e){var t=(0,d.A)(T,"auctions.".concat(e.auctionId,".auction.adUnits.").concat(e.transactionId,".bids.").concat(e.bidId));if(void 0!==e.serverResponseTimeMs?t.serverLatencyMillis=e.serverResponseTimeMs:w&&"s2s"===e.source&&(t.serverLatencyMillis=w),!E||t.status&&-1===["no-bid","error"].indexOf(t.status)||(t.status="error",t.error={code:B[E.code]||B[999],description:E.message}),!t.clientLatencyMillis||!t.httpLatencyMillis){var n=me(e,(0,d.A)(T,"auctions.".concat(l.auctionId,".auction.auctionStart")));t.clientLatencyMillis=t.clientLatencyMillis||n.total,t.httpLatencyMillis=t.httpLatencyMillis||n.net}}));break;case Y:k.analyticsProcessDelay>0?setTimeout((function(){pe(l)}),k.analyticsProcessDelay):pe(l);break;case N:var C=T.auctions[l.auctionId];if(!C)break;C.auction.auctionEnd=l.auctionEnd,T.auctionOrder.push(l.auctionId),l.adUnits&&l.adUnits.every((function(e){return function(e){return e.mediaTypes&&1===Object.keys(e.mediaTypes).length&&"instream"===(0,d.A)(e,"mediaTypes.video.context")}(e)}))||0===k.analyticsBatchTimeout?"number"==typeof T.cachePending[l.auctionId]&&T.cachePending[l.auctionId]>0?T.timeouts[l.auctionId]=setTimeout((function(){Z(l.auctionId,"solo-auction-cache")}),k.analyticsEventDelay):Z(l.auctionId,"solo-auction"):T.timeouts[l.auctionId]=setTimeout((function(){Z(l.auctionId,"auctionEnd")}),k.analyticsBatchTimeout);break;case J:l.forEach((function(e){var t=(0,d.A)(T,"auctions.".concat(e.auctionId,".auction.adUnits.").concat(e.transactionId,".bids.").concat(e.bidId),{});"error"!==t.status&&(t.status="error",t.error={code:"timeout-error",description:"prebid.js timeout"})}));break;case V:if(k.dmBilling.enabled&&(t=l,n=k.dmBilling.vendors.includes(t.vendor),r="boolean"!=typeof(0,d.A)(T.billing,"".concat(t.vendor,".").concat(t.billingId)),"string"==typeof t.billingId&&n&&r)){(0,u.J)(T.billing,"".concat(l.vendor,".").concat(l.billingId),!1);var q=function(e){var t=(0,s.deepClone)(e);return t.type="string"==typeof e.type&&e.type||"general",t.accountId=U,(0,u.J)(T.billing,"".concat(e.vendor,".").concat(e.billingId),!0),t}(l);G({billableEvents:[q]},l.auctionId,"billing")}else(0,s.logInfo)("".concat(R,": Billing event ignored"),l)}};var be=function(e){var t=e.seatnonbid,n=e.auctionId,r=e.atag;t&&ye(t,n),r&&Ie(r,n)},Ie=function(e,t){he(e).forEach((function(e){e.activities.forEach((function(e){var n;"optimize-tmax"===e.name&&"success"===e.status&&Ae(null===(n=e.results[0])||void 0===n?void 0:n.values,(0,d.A)(T,"auctions.".concat(t,".auction")))}))}))},ye=function(e,t){var n=(0,d.A)(T,"auctions.".concat(t,".auction"));if(n){var r=n.adUnits;e.forEach((function(e){var t=e.seat;e.nonbid.forEach((function(e){try{var i=e.status,o=e.impid,a=Object.keys(r).find((function(e){return r[e].adUnitCode===o})),c=r[a],d=Ee[i]||{status:"no-bid"};c.bids[(0,s.generateUUID)()]=E({bidder:t,source:"server",isSeatNonBid:!0,clientLatencyMillis:Date.now()-n.auctionStart},d)}catch(e){(0,s.logWarn)("Unable to match nonbid to adUnit")}}))}))}else(0,s.logWarn)("Unable to match nonbid to auction")},he=function(e){var t;return e.forEach((function(e){"mgni-timeout-optimization"===e.module&&(t=e.analyticstags)})),t},Ae=function(e,t){var n={name:e.scenario,rule:e.rule,value:e.tmax},r=(0,d.A)(t,"experiments")||[];r.push(n),(0,u.J)(t,"experiments",r)},Ee={0:{status:"no-bid"},100:{status:"error",error:{code:"request-error",description:"general error"}},101:{status:"error",error:{code:"timeout-error",description:"prebid server timeout"}},200:{status:"rejected"},202:{status:"rejected"},301:{status:"rejected-ipf"}};f.Ay.registerAnalyticsAdapter({adapter:ue,code:"magnite",gvlid:52});(0,c.E)("magniteAnalyticsAdapter")}},function(e){e.O(0,[2630,60802,51085],(function(){return t=26637,e(e.s=t);var t}));e.O()}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[58498],{89766:function(e,r,n){n.d(r,{T:function(){return m},A:function(){return v}});var t=n(80296),i=new WeakMap;var o=n(91069),a=n(64467),s=n(71371);var d=n(63895);var u=n(75561);var p=n(1e3),c=n(73858),f=(0,a.A)((0,a.A)((0,a.A)({},p.S3,{fpd:{priority:99,fn:function(e,r){(0,o.mergeDeep)(e,r.ortb2)}},onlyOneClient:{priority:-99,fn:(0,c.i8)("ORTB request")},props:{fn:function(e,r){Object.assign(e,{id:e.id||(0,o.generateUUID)(),test:e.test||0});var n=parseInt(r.timeout,10);isNaN(n)||(e.tmax=n)}}}),p.Tb,{fpd:{priority:99,fn:function(e,r){(0,o.mergeDeep)(e,r.ortb2Imp)}},id:{fn:function(e,r){e.id=r.bidId}},banner:{fn:function(e,r,n){var t;if(!n.mediaType||n.mediaType===s.D4){var i=null==r||null===(t=r.mediaTypes)||void 0===t?void 0:t.banner;if(i){var a={topframe:!0===(0,o.inIframe)()?0:1};i.sizes&&(a.format=(0,o.sizesToSizeTuples)(i.sizes).map(o.sizeTupleToRtbSize)),i.hasOwnProperty("pos")&&(a.pos=i.pos),e.banner=(0,o.mergeDeep)(a,e.banner)}}}},pbadslot:{fn:function(e){var r,n,t=null===(r=e.ext)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.pbadslot;t&&"string"==typeof t||(null===(n=e.ext)||void 0===n||null===(n=n.data)||void 0===n||delete n.pbadslot)}},secure:{fn:function(e,r){var n;e.secure=null!==(n=e.secure)&&void 0!==n?n:1}}}),p.WR,{mediaType:{priority:99,fn:u.K},banner:{fn:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createPixel,r=void 0===e?function(e){return(0,o.createTrackPixelHtml)(decodeURIComponent(e),o.encodeMacroURI)}:e;return function(e,n){e.mediaType===s.D4&&(n.adm&&n.nurl?(e.ad=n.adm,e.ad+=r(n.nurl)):n.adm?e.ad=n.adm:n.nurl&&(e.adUrl=n.nurl))}}()},props:{fn:function(e,r,n){var i,o;Object.entries({requestId:null===(i=n.bidRequest)||void 0===i?void 0:i.bidId,seatBidId:r.id,cpm:r.price,currency:n.ortbResponse.cur||n.currency,width:r.w,height:r.h,dealId:r.dealid,creative_id:r.crid,creativeId:r.crid,burl:r.burl,ttl:r.exp||n.ttl,netRevenue:n.netRevenue}).filter((function(e){var r=(0,t.A)(e,2);r[0];return void 0!==r[1]})).forEach((function(r){var n=(0,t.A)(r,2),i=n[0],o=n[1];return e[i]=o})),e.meta||(e.meta={}),r.adomain&&(e.meta.advertiserDomains=r.adomain),null!==(o=r.ext)&&void 0!==o&&o.dsa&&(e.meta.dsa=r.ext.dsa),r.cat&&(e.meta.primaryCatId=r.cat[0],e.meta.secondaryCatIds=r.cat.slice(1)),r.attr&&(e.meta.attr=r.attr)}}});f[p.Tb].native={fn:function(e,r,n){if(!n.mediaType||n.mediaType===s.s6){var t,i=r.nativeOrtbRequest;i&&(null!==(t=(i=Object.assign({},n.nativeRequest,i)).assets)&&void 0!==t&&t.length?e.native=(0,o.mergeDeep)({},{request:JSON.stringify(i),ver:i.ver},e.native):(0,o.logWarn)("mediaTypes.native is set, but no assets were specified. Native request skipped.",r))}}},f[p.WR].native={fn:function(e,r){if(e.mediaType===s.s6){var n;if(n="string"==typeof r.adm?JSON.parse(r.adm):r.adm,!(0,o.isPlainObject)(n)||!Array.isArray(n.assets))throw new Error("ORTB native response contained no assets");e.native={ortb:n}}}},f[p.Tb].video={fn:function(e,r,n){var i;if(!n.mediaType||n.mediaType===s.G_){var a=null==r||null===(i=r.mediaTypes)||void 0===i?void 0:i.video;if(!(0,o.isEmpty)(a)){var u=Object.fromEntries(Object.entries(a).filter((function(e){var r=(0,t.A)(e,1)[0];return d.Zy.has(r)})));if(a.playerSize){var p=(0,o.sizesToSizeTuples)(a.playerSize).map(o.sizeTupleToRtbSize);p.length>1&&(0,o.logWarn)("video request specifies more than one playerSize; all but the first will be ignored"),Object.assign(u,p[0])}e.video=(0,o.mergeDeep)(u,e.video)}}}},f[p.WR].video={fn:function(e,r,n){if(e.mediaType===s.G_){var t,i;if(null!=n&&null!==(t=n.imp)&&void 0!==t&&null!==(t=t.video)&&void 0!==t&&t.w&&null!=n&&null!==(i=n.imp)&&void 0!==i&&null!==(i=i.video)&&void 0!==i&&i.h){var o=[n.imp.video.w,n.imp.video.h];e.playerWidth=o[0],e.playerHeight=o[1]}r.adm&&(e.vastXml=r.adm),r.nurl&&(e.vastUrl=r.nurl)}}};var l=n(99466);function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.context,n=void 0===r?{}:r,a=e.processors,s=void 0===a?m:a,d=e.overrides,u=void 0===d?{}:d,c=e.imp,f=e.request,l=e.bidResponse,v=e.response,b=new WeakMap;function y(e,r,n,o){var a;return function(){return null==a&&(a=function(){var a=n.bind(this,function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i.has(e)){var n=Object.entries(e);n.sort((function(e,r){return(e=e[1].priority||0)===(r=r[1].priority||0)?0:e>r?-1:1})),i.set(e,n.map((function(e){var r=(0,t.A)(e,2);return[r[0],r[1].fn]})))}var o=i.get(e).filter((function(e){var n=(0,t.A)(e,1)[0];return!r.hasOwnProperty(n)||r[n]})).map((function(e){var n=(0,t.A)(e,2),i=n[0],o=n[1];return r.hasOwnProperty(i)?r[i].bind(this,o):o}));return function(){var e=this,r=Array.from(arguments);o.forEach((function(n){n.apply(e,r)}))}}(s()[e]||{},u[e]||{}));return r&&(a=r.bind(this,a)),function(){try{return a.apply(this,arguments)}catch(e){o.call.apply(o,[this,e].concat(Array.prototype.slice.call(arguments)))}}}()),a.apply(this,arguments)}}var h=y(p.Tb,c,(function(e,r,n){var t={};return e(t,r,n),t}),(function(e,r,n){(0,o.logError)("Error while converting bidRequest to ORTB imp; request skipped.",{error:e,bidRequest:r,context:n})})),g=y(p.S3,f,(function(e,r,n,t){var i={imp:r};return e(i,n,t),i}),(function(e,r,n,t){throw(0,o.logError)("Error while converting to ORTB request",{error:e,imps:r,bidderRequest:n,context:t}),e})),T=y(p.WR,l,(function(e,r,n){var t={};return e(t,r,n),t}),(function(e,r,n){(0,o.logError)("Error while converting ORTB seatbid.bid to bidResponse; bid skipped.",{error:e,bid:r,context:n})})),R=y(p.Cf,v,(function(e,r,n,t){var i={bids:r};return e(i,n,t),i}),(function(e,r,n,t){throw(0,o.logError)("Error while converting from ORTB response",{error:e,bidResponses:r,ortbResponse:n,context:t}),e}));return{toORTB:function(e){var r=e.bidderRequest,t=e.bidRequests,i=e.context,a=void 0===i?{}:i;t=t||r.bids;var s={req:Object.assign({bidRequests:t},n,a),imp:{}};s.req.impContext=s.imp;var d=t.map((function(e){var t=Object.assign({bidderRequest:r,reqContext:s.req},n,a),i=h(e,t);if(null!=i){if(i.hasOwnProperty("id"))return Object.assign(t,{bidRequest:e,imp:i}),s.imp[i.id]=t,i;(0,o.logError)("Converted ORTB imp does not specify an id, ignoring bid request",e,i)}})).filter(Boolean),u=g(d,r,s.req);return s.req.bidderRequest=r,null!=u&&b.set(u,s),u},fromORTB:function(e){var r=e.request,n=e.response,t=b.get(r);if(null==t)throw new Error("ortbRequest passed to `fromORTB` must be the same object returned by `toORTB`");function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign(e,{ortbRequest:r},n)}var a=Object.fromEntries((r.imp||[]).map((function(e){return[e.id,e]}))),s=(n.seatbid||[]).flatMap((function(e){return(e.bid||[]).map((function(r){if(a.hasOwnProperty(r.impid)&&t.imp.hasOwnProperty(r.impid))return T(r,i(t.imp[r.impid],{imp:a[r.impid],seatbid:e,ortbResponse:n}));(0,o.logError)("ORTB response seatbid[].bid[].impid does not match any imp in request; ignoring bid",r)}))})).filter(Boolean);return R(s,n,i(t.req))}}}var m=(0,o.memoize)((function(){return(0,l.U)(f,(0,p.yB)(p.qN))}))},99466:function(e,r,n){n.d(r,{U:function(){return i}});var t=n(1e3);function i(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=r.shift(),a=r.length>1?i.apply(void 0,r):r[0];return Object.fromEntries(t.zt.map((function(e){return[e,Object.assign({},o[e],a[e])]})))}},75561:function(e,r,n){n.d(r,{K:function(){return o},X:function(){return i}});var t=n(71371),i={1:t.D4,2:t.G_,4:t.s6};function o(e,r,n){if(!e.mediaType){var t=n.mediaType;if(!t&&!i.hasOwnProperty(r.mtype))throw new Error("Cannot determine mediaType for response");e.mediaType=t||i[r.mtype]}}}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[47618],{34610:function(e,i,r){r.d(i,{m:function(){return h}});var n=r(99466),t=r(64467),d=r(80296),a=r(1e3),o=r(70433),s=r(91069),c=r(25825),b=r(11445),u=r(43272),v=r(63172);var p=r(43323);var f=r(7873);var l=r(71371);var g=(0,t.A)((0,t.A)((0,t.A)((0,t.A)({},a.S3,{extPrebid:{fn:function(e,i){var r;(0,v.J)(e,"ext.prebid",(0,s.mergeDeep)({auctiontimestamp:i.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}},null===(r=e.ext)||void 0===r?void 0:r.prebid)),u.$W.getConfig("debug")&&(e.ext.prebid.debug=!0)}},extPrebidChannel:{fn:function(e){var i;(0,v.J)(e,"ext.prebid.channel",Object.assign({name:"pbjs",version:(0,f.m)().version},null===(i=e.ext)||void 0===i||null===(i=i.prebid)||void 0===i?void 0:i.channel))}},extPrebidAliases:{fn:function(e,i,r){var n=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).am,t=void 0===n?b.Ay:n;if(t.aliasRegistry[i.bidderCode]){var d=t.bidderRegistry[i.bidderCode];if(!d||!d.getSpec().skipPbsAliasing){var a;(0,v.J)(e,"ext.prebid.aliases.".concat(i.bidderCode),t.aliasRegistry[i.bidderCode]);var o=u.$W.getConfig("gvlMapping.".concat(i.bidderCode))||(null==d||null===(a=d.getSpec)||void 0===a?void 0:a.call(d).gvlid);o&&(0,v.J)(e,"ext.prebid.aliasgvlids.".concat(i.bidderCode),o)}}}}}),a.Tb,{params:{fn:p.W},adUnitCode:{fn:function(e,i){var r=i.adUnitCode;r&&(0,v.J)(e,"ext.prebid.adunitcode",r)}}}),a.WR,{mediaType:{fn:c.o,priority:99},videoCache:{fn:function(e,i){if(e.mediaType===l.G_){var r=(0,o.A)(i,"ext.prebid.cache.vastXml")||{},n=r.cacheId,t=r.url;if(!n||!t){var d=(0,o.A)(i,"ext.prebid.targeting")||{},a=d.hb_uuid,s=d.hb_cache_host,c=d.hb_cache_path;a&&s&&c&&(n=a,t="https://".concat(s).concat(c,"?uuid=").concat(a))}n&&t&&Object.assign(e,{videoCacheKey:n,vastUrl:t})}},priority:-10},bidderCode:{fn:function(e,i,r){var n;e.bidderCode=r.seatbid.seat,e.adapterCode=(0,o.A)(i,"ext.prebid.meta.adaptercode")||(null===(n=r.bidRequest)||void 0===n?void 0:n.bidder)||e.bidderCode}},pbsBidId:{fn:function(e,i){var r=(0,o.A)(i,"ext.prebid.bidid");(0,s.isStr)(r)&&(e.pbsBidId=r)}},adserverTargeting:{fn:function(e,i){var r=(0,o.A)(i,"ext.prebid.targeting");(0,s.isPlainObject)(r)&&(e.adserverTargeting=r)}},extPrebidMeta:{fn:function(e,i){e.meta=(0,s.mergeDeep)({},(0,o.A)(i,"ext.prebid.meta"),e.meta)}},pbsWurl:{fn:function(e,i){var r=(0,o.A)(i,"ext.prebid.events.win");(0,s.isStr)(r)&&(e.pbsWurl=r)}}}),a.Cf,{serverSideStats:{fn:function(e,i,r){Object.entries({errors:"serverErrors",responsetimemillis:"serverResponseTimeMs"}).forEach((function(e){var n=(0,d.A)(e,2),t=n[0],a=n[1],s=(0,o.A)(i,"ext.".concat(t,".").concat(r.bidderRequest.bidderCode));s&&(r.bidderRequest[a]=s,r.bidRequests.forEach((function(e){return e[a]=s})))}))}}}),m=r(89766),h=(0,s.memoize)((function(){return(0,n.U)((0,m.T)(),g,(0,a.yB)(a.e4))}))},25825:function(e,i,r){r.d(i,{o:function(){return o},s:function(){return a}});var n=r(64467),t=r(71371),d=r(75561),a=(0,n.A)((0,n.A)((0,n.A)({},t.D4,"banner"),t.s6,"native"),t.G_,"video");function o(e,i,r){var n,o=r.mediaType;o||(o=d.X.hasOwnProperty(i.mtype)?d.X[i.mtype]:null===(n=i.ext)||void 0===n||null===(n=n.prebid)||void 0===n?void 0:n.type,a.hasOwnProperty(o)||(o=t.D4));e.mediaType=o}},43323:function(e,i,r){r.d(i,{W:function(){return t}});var n=r(63172);function t(e,i){var r=i.params;r&&(0,n.J)(e,"ext.prebid.bidder.".concat(i.bidder),r)}}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[62711],{99293:function(e,r,t){var n=t(45458),i=t(64467),o=t(80296),a=t(82284),d=t(7873),s=t(89766),c=t(34610),u=t(57377),l=t(43272),p=t(71371),v=t(95789),f=t(91069),m=t(63172),b=t(70433),g=t(28656),x=t(8702);function y(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function h(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){(0,i.A)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var _="https://video-outstream.rubiconproject.com/apex-2.2.1.js",A=l.$W.getConfig("rubicon")||{};l.$W.getConfig("rubicon",(function(e){(0,f.mergeDeep)(A,e.rubicon)}));var j={},O={1:"468x60",2:"728x90",5:"120x90",7:"125x125",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",42:"2x4",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",85:"300x120",90:"548x150",94:"970x310",95:"970x100",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",152:"1000x250",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",221:"1x1",229:"320x180",230:"2000x1400",232:"580x400",234:"6x6",251:"2x2",256:"480x820",257:"400x600",258:"500x200",259:"998x200",261:"480x480",264:"970x1000",265:"1920x1080",274:"1800x200",278:"320x500",282:"320x400",288:"640x380",484:"720x1280",524:"1x2",548:"500x1000",550:"980x480",552:"300x200",558:"640x640",562:"300x431",564:"320x431",566:"320x300",568:"300x150",570:"300x125",572:"250x350",574:"620x891",576:"610x877",578:"980x552",580:"505x656",622:"192x160",632:"1200x450",634:"340x450",680:"970x570",682:"300x240",684:"970x550",686:"300x210",688:"300x220",690:"970x170"};(0,f._each)(O,(function(e,r){return O[e]=r}));var k=(0,s.A)({request:function(e,r,t,i){var o,s,c=i.bidRequests,u=e(r,t,i);u.cur=["USD"],u.test=l.$W.getConfig("debug")?1:0,(0,m.J)(u,"ext.prebid.cache",{vastxml:{returnCreative:!0===A.returnVast}}),(0,m.J)(u,"ext.prebid.bidders",{rubicon:{integration:A.int_type||"pbjs"}}),(0,m.J)(u,"ext.prebid.targeting.pricegranularity",{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:(s=l.$W).getConfig("customPriceBucket")&&s.getConfig("customPriceBucket").buckets}[s.getConfig("priceGranularity")]});var p=(0,d.m)().installedModules;return!p||p.length&&-1===p.indexOf("rubiconAnalyticsAdapter")||(0,m.J)(u,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),function(e,r,t){var i,o={},a=g.D.apply(void 0,[t].concat((0,n.A)(r.map((function(e){return e.params.keywords})))));r.forEach((function(r){var t,n={user:{ext:{data:h({},r.params.visitor)}},site:{ext:{data:h({},r.params.inventory)}}},i=e.imp.find((function(e){var r;return null===(r=e.ext)||void 0===r||null===(r=r.prebid)||void 0===r||null===(r=r.bidder)||void 0===r||null===(r=r.rubicon)||void 0===r||null===(r=r.video)||void 0===r?void 0:r.language}));i&&(n.site.content={language:null===(t=i.ext)||void 0===t||null===(t=t.prebid)||void 0===t||null===(t=t.bidder)||void 0===t||null===(t=t.rubicon)||void 0===t||null===(t=t.video)||void 0===t?void 0:t.language});o=(0,f.mergeDeep)(o,r.ortb2||{},n);var a=l.$W.getConfig("user.id");o.user.id=o.user.id||a})),(0,f.mergeDeep)(e,o),a&&a.length&&(0,m.J)(e,"site.keywords",a.join(","));null==e||null===(i=e.ext)||void 0===i||null===(i=i.prebid)||void 0===i||delete i.storedrequest}(u,c,t.ortb2),null==u||null===(o=u.ext)||void 0===o||null===(o=o.prebid)||void 0===o||delete o.storedrequest,!0===A.disableFloors&&delete u.ext.prebid.floors,c.filter((function(e){return"object"===(0,a.A)(e.floorData)})).length>0&&(u.ext.prebid.floors={enabled:!1}),u},imp:function(e,r,t){var n,i=z(r);if(!i.includes(p.D4)||1!=i.length){var o=e(r,t);return o.id=r.adUnitCode,delete o.banner,"atf"===r.params.position&&o.video&&(o.video.pos=1),"btf"===r.params.position&&o.video&&(o.video.pos=3),null===(n=o.ext)||void 0===n||null===(n=n.prebid)||void 0===n||delete n.storedrequest,!0===r.params.bidonmultiformat&&i.length>1&&(0,m.J)(o,"ext.prebid.bidder.rubicon.formats",i),function(e,r){"USD"!=r.bidfloorcur&&(delete r.bidfloor,delete r.bidfloorcur);if(!r.bidfloor){var t=parseFloat((0,b.A)(e,"params.floor"));isNaN(t)||(r.bidfloor=t,r.bidfloorcur="USD")}}(r,o),o.id=j[o.id]?o.id+j[o.id]++:(j[o.id]=2,o.id),o}},bidResponse:function(e,r,t){var n,i=e(r,t);i.meta.mediaType=(0,b.A)(r,"ext.prebid.type");var a=t.bidRequest,d="outstream"===(null===(n=a.mediaTypes.video)||void 0===n?void 0:n.context)?C(a,p.G_):[void 0,void 0],s=(0,o.A)(d,2),c=s[0],u=s[1];return i.width=r.w||c||i.playerWidth||0,i.height=r.h||u||i.playerHeight||0,i.mediaType===p.G_&&"outstream"===a.mediaTypes.video.context&&(i.renderer=function(e){var r=v.A4.install({id:e.adId,url:A.rendererUrl||_,config:A.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{r.setRender(R)}catch(e){(0,f.logWarn)("Prebid Error calling setRender on renderer",e)}return r}(i)),(0,b.A)(r,"ext.bidder.rp.advid")&&(0,m.J)(i,"meta.advertiserId",r.ext.bidder.rp.advid),i},context:{netRevenue:!1!==A.netRevenue,ttl:360},processors:c.m}),S={code:"rubicon",gvlid:52,supportedMediaTypes:[p.D4,p.G_,p.s6],isBidRequestValid:function(e){var r=!0;if("object"!==(0,a.A)(e.params))return!1;for(var t=0,n=["accountId","siteId","zoneId"];t<n.length;t++)if(e.params[n[t]]=parseInt(e.params[n[t]]),isNaN(e.params[n[t]]))return(0,f.logError)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;var i=z(e,!0);if(!i.length)return!1;i.includes(p.G_)&&(r=function(e){var r=!0,t=Object.prototype.toString.call([]),n=Object.prototype.toString.call(0),i={mimes:t,protocols:t,linearity:n};return Object.keys(i).forEach((function(t){Object.prototype.toString.call((0,b.A)(e,"mediaTypes.video."+t))!==i[t]&&(r=!1,(0,f.logError)("Rubicon: mediaTypes.video."+t+" is required and must be of type: "+i[t]))})),r}(e));var o=[p.D4,p.s6].filter((function(e){return i.includes(e)})).length>0;return o?r&&o:r},buildRequests:function(e,r){var t,n=[],i=[];if((t=e.filter((function(e){var r=z(e)||[],t=r.length,n=e.params||{},i=n.bidonmultiformat,o=n.video;return 1===t&&(r.includes(p.G_)||r.includes(p.s6))||2===t&&!r.includes(p.D4)||o&&r.includes(p.G_)||i&&(r.includes(p.G_)||r.includes(p.s6))})))&&t.length){var o=k.toORTB({bidRequests:t,bidderRequest:r});D(),i.push({method:"POST",url:"https://".concat(A.videoHost||"prebid-server",".rubiconproject.com/openrtb2/auction"),data:o,bidRequest:t})}var a=e.filter((function(e){var r=z(e)||[],t=e.params||{},n=t.bidonmultiformat,i=t.video;return r.includes(p.D4)&&(1===r.length||n||!n&&!i||!n&&i&&!r.includes(p.G_))}));if(!0!==A.singleRequest)n=i.concat(a.map((function(e){var t=S.createSlotParams(e,r);return{method:"GET",url:"https://".concat(A.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:S.getOrderedParams(t).reduce((function(e,r){var n=t[r];return(0,f.isStr)(n)&&""!==n||(0,f.isNumber)(n)?"".concat(e).concat(U(r,n),"&"):e}),"")+"slots=1&rand=".concat(Math.random()),bidRequest:e}})));else{var d=a.reduce((function(e,r){return(e[r.params.siteId]=e[r.params.siteId]||[]).push(r),e}),{});n=i.concat(Object.keys(d).reduce((function(e,t){var n,i;return(n=d[t],i=10,n.map((function(e,r){return r%i==0?n.slice(r,r+i):null})).filter((function(e){return e}))).forEach((function(t){var n=S.combineSlotUrlParams(t.map((function(e){return S.createSlotParams(e,r)})));e.push({method:"GET",url:"https://".concat(A.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:S.getOrderedParams(n).reduce((function(e,r){var t=n[r];return(0,f.isStr)(t)&&""!==t||(0,f.isNumber)(t)?"".concat(e).concat(U(r,t),"&"):e}),"")+"slots=".concat(t.length,"&rand=").concat(Math.random()),bidRequest:t})})),e}),[]))}return n},getOrderedParams:function(e){var r=/^tg_v/,t=/^tg_i/,n=/^eid_|^tpid_/,i=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","gpp","gpp_sid","rp_schain"].concat(Object.keys(e).filter((function(e){return n.test(e)}))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter((function(e){return r.test(e)}))).concat(Object.keys(e).filter((function(e){return t.test(e)}))).concat(["tk_flint","x_source.tid","l_pb_bid_id","p_screen_res","o_ae","o_cdep","rp_floor","rp_secure","tk_user_key"]);return i.concat(Object.keys(e).filter((function(e){return-1===i.indexOf(e)})))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];var r=e.reduce((function(r,t,n){return Object.keys(t).forEach((function(i){r.hasOwnProperty(i)||(r[i]=new Array(e.length)),r[i].splice(n,1,t[i])})),r}),{}),t=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(r).forEach((function(e){var n=r[e].join(";"),i=n.match(t);r[e]=i?i[1]:n})),r},createSlotParams:function(e,r){var t,n,i,d,s,c,u,v,m;e.startTime=(new Date).getTime();var g=e.params,x=C(e,"banner"),y=g.latLong||[],_=(0,o.A)(y,2),j=_[0],O=_[1],k={account_id:g.accountId,site_id:g.siteId,zone_id:g.zoneId,size_id:x[0],alt_size_ids:x.slice(1).join(",")||void 0,rp_floor:(g.floor=parseFloat(g.floor))>=.01?g.floor:void 0,rp_secure:"1",tk_flint:"".concat(A.int_type||"pbjs_lite","_v9.25.0"),"x_source.tid":null===(t=r.ortb2)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.tid,"x_imp.ext.tid":null===(n=e.ortb2Imp)||void 0===n||null===(n=n.ext)||void 0===n?void 0:n.tid,l_pb_bid_id:e.bidId,o_cdep:null===(i=e.ortb2)||void 0===i||null===(i=i.device)||void 0===i||null===(i=i.ext)||void 0===i?void 0:i.cdep,ip:null===(d=e.ortb2)||void 0===d||null===(d=d.device)||void 0===d?void 0:d.ip,ipv6:null===(s=e.ortb2)||void 0===s||null===(s=s.device)||void 0===s?void 0:s.ipv6,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:g.userId,"p_geo.latitude":isNaN(parseFloat(j))?void 0:parseFloat(j).toFixed(4),"p_geo.longitude":isNaN(parseFloat(O))?void 0:parseFloat(O).toFixed(4),"tg_fl.eid":e.code,rf:w(e,r)};if("function"==typeof e.getFloor&&!A.disableFloors){var R;try{R=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,f.logError)("Rubicon: getFloor threw an error: ",e)}k.rp_hard_floor=(0,f.isPlainObject)(R)&&"USD"===R.currency&&!isNaN(parseInt(R.floor))?R.floor:void 0}!0===g.bidonmultiformat&&(0,b.A)(e,"mediaTypes")&&Object.keys(e.mediaTypes).length>1&&(k.p_formats=Object.keys(e.mediaTypes).join(","));var T={1:"atf",3:"btf"}[(0,b.A)(e,"mediaTypes.banner.pos")]||"";k.p_pos="atf"===g.position||"btf"===g.position?g.position:T;var z,D=l.$W.getConfig("user.id");(D&&(k.ppuid=D),null!=e&&null!==(c=e.ortb2Imp)&&void 0!==c&&null!==(c=c.ext)&&void 0!==c&&c.ae&&(k.o_ae=1),"number"==typeof(null==e||null===(u=e.ortb2)||void 0===u||null===(u=u.site)||void 0===u?void 0:u.mobile)&&(k["p_site.mobile"]=e.ortb2.site.mobile),function(e,r){var t,n,i,o;if(!1===A.readTopics)return;var a=[1,2,5,6,7,507].concat((null===(t=A.sendSiteSegtax)||void 0===t?void 0:t.map((function(e){return Number(e)})))||[]),d=[4,508].concat((null===(n=A.sendUserSegtax)||void 0===n?void 0:n.map((function(e){return Number(e)})))||[]),s=(null===(i=e.ortb2)||void 0===i||null===(i=i.user)||void 0===i?void 0:i.data)||[],c=(null===(o=e.ortb2)||void 0===o||null===(o=o.site)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.data)||[];s.forEach(I(r,"v",d)),c.forEach(I(r,"i",a))}(r,k),null!=e&&null!==(v=e.ortb2)&&void 0!==v&&null!==(v=v.user)&&void 0!==v&&null!==(v=v.ext)&&void 0!==v&&v.eids&&e.ortb2.user.ext.eids.forEach((function(e){var r=e.source,t=e.uids,n=void 0===t?[]:t,i=e.inserter,o=e.matcher,a=e.mm;e.ext;try{var d=n[0];if(!d)return;var s=function(e){var r;return[e.id,e.atype||"","",i||"",o||"",a||"",(null==e||null===(r=e.ext)||void 0===r?void 0:r.rtipartner)||""].join("^")}(d);if(k["eid_".concat(r)]=s,!k.ppuid){var c=n.find((function(e){var r;return"ppuid"===(null===(r=e.ext)||void 0===r?void 0:r.stype)}));null!=c&&c.id&&(k.ppuid=c.id)}}catch(e){(0,f.logWarn)("Rubicon: error reading eid:",{source:r,uids:n},e)}})),r.gdprConsent&&("boolean"==typeof r.gdprConsent.gdprApplies&&(k.gdpr=Number(r.gdprConsent.gdprApplies)),k.gdpr_consent=r.gdprConsent.consentString),r.uspConsent&&(k.us_privacy=encodeURIComponent(r.uspConsent)),null!==(m=r.gppConsent)&&void 0!==m&&m.gppString)&&(k.gpp=r.gppConsent.gppString,k.gpp_sid=null===(z=r.gppConsent)||void 0===z||null===(z=z.applicableSections)||void 0===z?void 0:z.toString());return k.rp_maxbids=r.bidLimit||1,function(e,r,t){var n={user:{ext:{data:h({},e.params.visitor)}},site:{ext:{data:h({},e.params.inventory)}}};e.params.keywords&&(n.site.keywords=(0,f.isArray)(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);var i=(0,f.mergeDeep)({},e.ortb2||{},n),d=(0,b.A)(e.ortb2Imp,"ext")||{},s=(0,b.A)(e.ortb2Imp,"ext.data")||{},c=(0,b.A)(e,"ortb2Imp.ext.gpid"),u=(0,b.A)(i,"regs.ext.dsa"),l={user:[4],site:[1,2,5,6]},v={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},m=function(e,r,t){return"data"===r&&Array.isArray(e)?e.filter((function(e){return e.segment&&(0,b.A)(e,"ext.segtax")&&l[t]&&-1!==l[t].indexOf((0,b.A)(e,"ext.segtax"))})).map((function(e){var r=e.segment.filter((function(e){return e.id})).reduce((function(e,r){return e.push(r.id),e}),[]);if(r.length>0)return r.toString()})).toString():("object"!==(0,a.A)(e)||Array.isArray(e))&&void 0!==e?Array.isArray(e)?e.filter((function(e){if("object"!==(0,a.A)(e)&&void 0!==e)return e.toString();(0,f.logWarn)("Rubicon: Filtered value: ",e,"for key",r,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString():void 0},g=function(e,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=m(e,n,r),a=v[n]&&i?"".concat(v[n]):"data"===n?"".concat(v[r],"iab"):"".concat(v[r]).concat(n);t[a]=t[a]?t[a].concat(",",o):o};if(r===p.D4){["site","user"].forEach((function(e){Object.keys(i[e]).forEach((function(r){"site"===e&&"content"===r&&i[e][r].data?g(i[e][r].data,e,"data"):"ext"!==r?g(i[e][r],e,r):i[e][r].data&&Object.keys(i[e].ext.data).forEach((function(r){g(i[e].ext.data[r],e,r,!1)}))}))})),Object.keys(s).forEach((function(e){"adserver"!==e?g(s[e],"site",e):"gam"===s[e].name&&g(s[e].adslot,name,e)})),c&&(t.p_gpid=c),u&&Object.keys(u).length&&(0,f.pick)(u,["dsainfo",function(e){return t.dsainfo=e},"dsarequired",function(e){return t.dsarequired=e},"pubrender",function(e){return t.dsapubrender=e},"datatopub",function(e){return t.dsadatatopubs=e},"transparency",function(e){Array.isArray(e)&&e.length&&(t.dsatransparency=e.reduce((function(e,r){var t=r.domain||"";if(!t)return e;var n=r.dsaparams||r.params;return Array.isArray(n)&&0!==n.length?(e&&(e+="~~"),e+"".concat(t,"~").concat(n.join("_"))):e}),""))}]),t["tg_i.pbadslot"]&&delete t["tg_i.dfp_ad_unit_code"];var x=(0,b.A)(i,"device.sua");x&&!1!==A.chEnabled&&(0,f.pick)(x,["architecture",function(e){return t.m_ch_arch=e},"bitness",function(e){return t.m_ch_bitness=e},"browsers",function(e){var r,n;if(Array.isArray(e)){var i=e.reduce((function(e,r){var t,n,i;return e[0].push('"'.concat(null==r?void 0:r.brand,'"|v="').concat(null==r||null===(t=r.version)||void 0===t?void 0:t[0],'"')),e[1].push('"'.concat(null==r?void 0:r.brand,'"|v="').concat(null==r||null===(n=r.version)||void 0===n||null===(i=n.join)||void 0===i?void 0:i.call(n,"."),'"')),e}),[[],[]]),a=(0,o.A)(i,2),d=a[0],s=a[1];t.m_ch_ua=null==d||null===(r=d.join)||void 0===r?void 0:r.call(d,","),t.m_ch_full_ver=null==s||null===(n=s.join)||void 0===n?void 0:n.call(s,",")}},"mobile",function(e){return t.m_ch_mobile="?".concat(e)},"model",function(e){return t.m_ch_model=e},"platform",function(e){var r,n;t.m_ch_platform=null==e?void 0:e.brand,t.m_ch_platform_ver=null==e||null===(r=e.version)||void 0===r||null===(n=r.join)||void 0===n?void 0:n.call(r,".")}])}else Object.keys(d).length&&(0,f.mergeDeep)(t.imp[0].ext,d),c&&(t.imp[0].ext.gpid=c),(0,f.mergeDeep)(t,i)}(e,p.D4,k),!0===l.$W.getConfig("coppa")&&(k.coppa=1),e.schain&&E(e.schain)&&(k.rp_schain=S.serializeSupplyChain(e.schain)),k},serializeSupplyChain:function(e){if(!E(e))return"";var r=e.ver,t=e.complete,n=e.nodes;return"".concat(r,",").concat(t,"!").concat(S.serializeSupplyChainNodes(n))},serializeSupplyChainNodes:function(e){var r=["asi","sid","hp","rid","name","domain"];return e.map((function(e){return r.map((function(r){return encodeURIComponent(e[r]||"")})).join(",")})).join("!")},interpretResponse:function(e,r){var t;e=e.body;var n=r.data;if(!e||"object"!==(0,a.A)(e))return[];if(e.seatbid){var i=(0,b.A)(e,"ext.errors.rubicon");return Array.isArray(i)&&i.length>0&&(0,f.logWarn)("Rubicon: Error in video response"),k.fromORTB({request:n,response:e}).bids}var d,s=e.ads,c=0,u=r.bidRequest;if("object"===(0,a.A)(u)&&!Array.isArray(u)&&z(u).includes(p.G_)&&"object"===(0,a.A)(s)&&(s=s[u.adUnitCode]),!Array.isArray(s)||s.length<1)return[];var l=s.reduce((function(r,t,n){if(t.impression_id&&d===t.impression_id?c++:d=t.impression_id,"ok"!==t.status)return r;var i,s,l=Array.isArray(u)?u[n-c]:u;if(l&&"object"===(0,a.A)(l)){var v={requestId:l.bidId,currency:"USD",creativeId:t.creative_id||"".concat(t.network||"","-").concat(t.advertiser||""),cpm:t.cpm||0,dealId:t.deal,ttl:360,netRevenue:!1!==A.netRevenue,rubicon:{advertiserId:t.advertiser,networkId:t.network},meta:{advertiserId:t.advertiser,networkId:t.network,mediaType:p.D4}};if(t.creative_type&&(v.mediaType=t.creative_type),t.dsa&&Object.keys(t.dsa).length&&(v.meta.dsa=t.dsa),t.adomain&&(v.meta.advertiserDomains=Array.isArray(t.adomain)?t.adomain:[t.adomain]),t.emulated_format&&(v.meta.mediaType=t.emulated_format),t.creative_type===p.G_)v.width=l.params.video.playerWidth,v.height=l.params.video.playerHeight,v.vastUrl=t.creative_depot_url,v.impression_id=t.impression_id,v.videoCacheKey=t.impression_id;else{v.ad=(i=t.script,s=t.impression_id,"<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='".concat(s,"'>\n<script type='text/javascript'>").concat(i,"<\/script>\n</div>\n</body>\n</html>"));var m=O[t.size_id].split("x").map((function(e){return Number(e)})),b=(0,o.A)(m,2);v.width=b[0],v.height=b[1]}v.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(v)}else(0,f.logError)("Rubicon: bidRequest undefined at index position:".concat(n),u,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)})),v=null===(t=e.component_auction_config)||void 0===t?void 0:t.map((function(e){return{config:e,bidId:e.bidId}}));return v?{bids:l,paapi:v}:l},getUserSyncs:function(e,r,t,n,i){if(!q&&e.iframeEnabled){var o=(0,x.d)(t,n,i);return o=Object.keys(o).length?"?".concat((0,f.formatQS)(o)):"",q=!0,{type:"iframe",url:"https://".concat(A.syncHost||"eus",".rubiconproject.com/usync.html")+o}}}};function w(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,"https:"):t}function R(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector("div[id^='google_ads']"))&&r.style.setProperty("display","none"),function(e){var r=e.querySelector("script[id^='sas_script']"),t=r&&r.nextSibling;t&&"iframe"===t.localName&&t.style.setProperty("display","none")}(t);var n=h(h({},{align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0}),e.renderer.getConfig());e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:"#".concat(e.adUnitCode),align:n.align,position:n.position},closeButton:n.closeButton,label:n.label,collapse:n.collapse})}))}function C(e,r){var t=e.params;if(r===p.G_){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,b.A)(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,b.A)(e,"mediaTypes.banner.sizes")?i=T(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=T(e.sizes):(0,f.logWarn)("Rubicon: no sizes are setup or found"),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function I(e,r,t){return function(n){var i,o,a=Number(null===(i=n.ext)||void 0===i?void 0:i.segtax);t.includes(a)&&(e["tg_".concat(r,".tax").concat(a)]=null===(o=n.segment)||void 0===o?void 0:o.map((function(e){return e.id})).join(","))}}function T(e){return(0,f.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(O[r],10);return t&&e.push(t),e}),[])}function z(e){var r,t,n,i,o,d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=[];if(r=e,t=void 0!==(0,b.A)(r,"mediaTypes.".concat(p.G_)),n=void 0!==(0,b.A)(r,"mediaTypes.".concat(p.D4)),i=void 0!==(0,b.A)(r,"params.bidonmultiformat"),o="object"!==(0,a.A)((0,b.A)(r,"params.video")),t&&i||(n&&o&&(t=!1),t&&o&&(0,m.J)(r,"params.video",{}),t)){if(-1===["outstream","instream"].indexOf((0,b.A)(e,"mediaTypes.".concat(p.G_,".context"))))return d&&(0,f.logError)("Rubicon: mediaTypes.video.context must be outstream or instream"),s;if(C(e,p.G_).length<2)return d&&(0,f.logError)("Rubicon: could not determine the playerSize of the video"),s;d&&(0,f.logMessage)("Rubicon: making video request for adUnit",e.adUnitCode),s.push(p.G_)}if(void 0!==(0,b.A)(e,"mediaTypes.".concat(p.s6))&&s.push(p.s6),void 0!==(0,b.A)(e,"mediaTypes.".concat(p.D4))){if(0===C(e,p.D4).length)return d&&(0,f.logError)("Rubicon: could not determine the sizes for banner request"),s;d&&(0,f.logMessage)("Rubicon: making banner request for adUnit",e.adUnitCode),s.push(p.D4)}return s}var D=function(){return j={}};function E(e){var r=!1,t=["asi","sid","hp"];return e.nodes?((r=e.nodes.reduce((function(e,r){return e?t.every((function(e){return r.hasOwnProperty(e)})):e}),!0))||(0,f.logError)("Rubicon: required schain params missing"),r):r}function U(e,r){return"rp_schain"===e?"rp_schain=".concat(r):"".concat(e,"=").concat(encodeURIComponent(r))}var q=!1;(0,u.a$)(S),(0,d.E)("rubiconBidAdapter")}},function(e){e.O(0,[60802,58498,97247,47618,46550,51085],(function(){return r=99293,e(e.s=r);var r}));e.O()}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[4085],{43297:function(n,e,r){var t=r(80296),o=r(7873),u=r(91069),i=r(70433),l=r(43272),a=r(11445),c=r(16916),s=r(75023),p=r(78969),f=r(45569),d=r(2604),v=r(95139),g=r(76811);function h(n,e){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=function(n,e){if(n){if("string"==typeof n)return y(n,e);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(n,e):void 0}}(n))||e&&n&&"number"==typeof n.length){r&&(n=r);var t=0,o=function(){};return{s:o,n:function(){return t>=n.length?{done:!0}:{done:!1,value:n[t++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,i=!0,l=!1;return{s:function(){r=r.call(n)},n:function(){var n=r.next();return i=n.done,n},e:function(n){l=!0,u=n},f:function(){try{i||null==r.return||r.return()}finally{if(l)throw u}}}}function y(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=Array(e);r<e;r++)t[r]=n[r];return t}var m={purpose:{},feature:{}},A={purpose:!1,feature:"specialFeatureOptins"},b={storage:{type:"purpose",default:{purpose:"storage",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]},id:1},basicAds:{type:"purpose",id:2,default:{purpose:"basicAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}},personalizedAds:{type:"purpose",id:4},measurement:{type:"purpose",id:7},transmitPreciseGeo:{type:"feature",id:1}},E=new Set,B=new Set,k=new Set,q=new Set,w=new Set,C=new Set,S=!1,D=!1,O=[f.tW,f.fW,f.Tn,f.zu],W="TCF2",I=[],P=[2],T=[2,7,9,10];function j(n,e,r,t){var o,u,l=(0,i.A)(n,"vendorData.".concat(e));return!(null==l||null===(o=l.consents)||void 0===o||!o[r])||t&&!(null==l||null===(u=l.legitimateInterests)||void 0===u||!u[r])}function x(n,e,r,o){var u;if(!1!==A[e])u=!!(0,i.A)(n,"vendorData.".concat(A[e],".").concat(r));else{var l=o===c.B1?["publisher",T]:["purpose",P],a=(0,t.A)(l,2);u=j(n,a[0],r,a[1].includes(r))}return{purpose:u,vendor:j(n,"vendor",o,P.includes(r))}}function M(n,e,r,t){var o=b[n.purpose];if((n.vendorExceptions||[]).includes(r))return!0;var u=n.enforceVendor&&!(t===c.B1||(n.softVendorExceptions||[]).includes(r)),i=x(e,o.type,o.id,t),l=i.purpose,a=i.vendor;return(!n.enforcePurpose||l)&&(!u||a)}function F(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return null};return function(o){var i=c.mW.getConsentData(),a=o[d.iK];if(function(n,e,r){return null==n&&c.mW.enabled?((0,u.logWarn)("Attempting operation that requires purpose ".concat(e," consent while consent data is not available").concat(r?" (module: ".concat(r,")"):"",". Assuming no consent was given.")),!0):n&&n.gdprApplies}(i,n,a)){var s=function(n,e,r){if(e){var t=l.$W.getConfig("gvlMapping");if(t&&t[e])return t[e];if(n===f.tp)return c.B1;var o=c.o2.get(e),i=o.gvlid,a=o.modules;if(null==i&&Object.keys(a).length>0){var s,p=h(O);try{for(p.s();!(s=p.n()).done;){var d=s.value;if(a.hasOwnProperty(d)){i=a[d],d!==n&&(0,u.logWarn)("Multiple GVL IDs found for module '".concat(e,"'; using the ").concat(d," module's ID (").concat(i,") instead of the ").concat(n,"'s ID (").concat(a[n],")"));break}}}catch(n){p.e(n)}finally{p.f()}}return null==i&&r&&(i=r()),i||null}return null}(o[d.Dk],a,t(o)),p=!!e(i,a,s);if(!p)return r&&r.add(a),{allow:p}}}}function V(n){return F(n,(function(e,r,t){return!!M(m.purpose[n],e,r,t)}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return null})}function N(n){return function(e){if(e[d.Dk]!==f.tp)return n(e)}}var U,$,z,G=(U=V(1,E),function(n){if(n[d.Dk]!==f.tp||D)return U(n)}),K=V(1,E),L=V(1,E),R=N(V(2,B)),Y=V(7,k,(function(n){return e=n[d.iK],r=n[d.TQ],function(n){if("function"!=typeof n)return n;try{return n.call(o.adapter,r)}catch(n){(0,u.logError)("Error invoking ".concat(e," adapter.gvlid()"),n)}}(null==(o=a.Ay.getAnalyticsAdapter(e))||null===(t=o.adapter)||void 0===t?void 0:t.gvlid);var e,r,t,o})),_=V(4,q),Q=N(($=F("2-10",(function(n,e,r){for(var t=2;t<=10;t++){var o,u;if(null!==(o=m.purpose[t])&&void 0!==o&&null!==(o=o.vendorExceptions)&&void 0!==o&&o.includes(e))return!0;var i=x(n,"purpose",t,r),l=i.purpose,a=i.vendor;if(l&&(a||null!==(u=m.purpose[t])&&void 0!==u&&null!==(u=u.softVendorExceptions)&&void 0!==u&&u.includes(e)))return!0}return!1}),w),z=V(4,w),function(){var n;return(null!==(n=m.purpose[4])&&void 0!==n&&n.eidsRequireP4Consent?z:$).apply(this,arguments)})),X=F("Special Feature 1",(function(n,e,r){return M(m.feature[1],n,e,r)}),C);s.on(p.qY.AUCTION_END,(function(){var n=function(n){return Array.from(n.keys()).filter((function(n){return null!=n}))},e={storageBlocked:n(E),biddersBlocked:n(B),analyticsBlocked:n(k),ufpdBlocked:n(q),eidsBlocked:n(w),geoBlocked:n(C)};s.emit(p.qY.TCF2_ENFORCEMENT,e),[E,B,k,q,w,C].forEach((function(n){return n.clear()}))})),l.$W.getConfig("consentManagement",(function(n){return function(n){var e=(0,i.A)(n,"gdpr.rules");e||(0,u.logWarn)("TCF2: enforcing P1 and P2 by default"),e=Object.fromEntries((e||[]).map((function(n){return[n.purpose,n]}))),D=!!(0,i.A)(n,"strictStorageEnforcement"),Object.entries(b).forEach((function(n){var r,o=(0,t.A)(n,2),u=o[0],i=o[1];m[i.type][i.id]=null!==(r=e[u])&&void 0!==r?r:i.default})),S||(null!=m.purpose[1]&&(S=!0,I.push((0,v.qB)(g.Ue,W,G)),I.push((0,v.qB)(g.Ml,W,K)),I.push((0,v.qB)(g.yl,W,L))),null!=m.purpose[2]&&I.push((0,v.qB)(g.uc,W,R)),null!=m.purpose[4]&&I.push((0,v.qB)(g.DL,W,_),(0,v.qB)(g.qX,W,_)),null!=m.purpose[7]&&I.push((0,v.qB)(g.mo,W,Y)),null!=m.feature[1]&&I.push((0,v.qB)(g.hE,W,X)),I.push((0,v.qB)(g.hq,W,Q)))}(n.consentManagement)})),(0,o.E)("tcfControl")}},function(n){n.O(0,[60802,51085],(function(){return e=43297,n(n.s=e);var e}));n.O()}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[35957],{86400:function(n,u,t){t.d(u,{L:function(){return i}});var e=t(80296);function i(){var n=[];return{submit:function(u,t,e){var i=[t,setTimeout((function(){n.splice(n.indexOf(i),1),e()}),u)];n.push(i)},resume:function(){for(;n.length;){var u=n.shift(),t=(0,e.A)(u,2),i=t[0],f=t[1];clearTimeout(f),i()}}}}}}]);
|
|
(self.pbjsChunk=self.pbjsChunk||[]).push([[46550],{8702:function(n,p,t){function e(n,p,t){var e,i={};(n&&("boolean"==typeof n.gdprApplies&&(i.gdpr=Number(n.gdprApplies)),"string"==typeof n.consentString&&(i.gdpr_consent=n.consentString)),p&&(i.us_privacy=encodeURIComponent(p)),null!=t&&t.gppString)&&(i.gpp=t.gppString,i.gpp_sid=null===(e=t.applicableSections)||void 0===e?void 0:e.toString());return i}t.d(p,{d:function(){return e}})}}]);
|
|
window.pbjs = window.pbjs || {};
|
|
window.pbjs.rp=window.pbjs.rp || {};
|
|
window.pbjs.cmd=window.pbjs.cmd || [];
|
|
window.pbjs.cmd.push(function() {
|
|
var rubiConf = pbjs.getConfig('rubicon') || {};
|
|
rubiConf.rule_name = 'Csdn - Desktop';
|
|
rubiConf.allocation = '12';
|
|
pbjs.setConfig({
|
|
rubicon: rubiConf,
|
|
});
|
|
});
|
|
pbjs.processQueue();
|
|
//EOF |