/* prebid.js v9.50.0
Updated: 2025-09-30
Modules: adpod, allowActivities, amxBidAdapter, consentManagementGpp, consentManagementTcf, currency, dfpAdServerVideo, gppControl_usnat, gppControl_usstates, gptPreAuction, improvedigitalBidAdapter, ixBidAdapter, medianetBidAdapter, multibid, onetagBidAdapter, openxBidAdapter, prebidServerBidAdapter, priceFloors, pubmaticBidAdapter, richaudienceBidAdapter, riseBidAdapter, rtdModule, rubiconBidAdapter, s2sTesting, sharedIdSystem, sharethroughBidAdapter, tripleliftBidAdapter, unrulyBidAdapter, userId, yieldmoBidAdapter, apsBidAdapter */
if(window.pbjs&&window.pbjs.libLoaded)try{window.pbjs.getConfig("debug")&&console.warn("Attempted to load a copy of Prebid.js that clashes with the existing 'pbjs' instance. Load aborted.")}catch(e){}else (function(){
(()=>{var r,t={433:(r,t,e)=>{function n(r,t,e,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)r=r?r[t[n]]:o;return r===o?e:r}e.d(t,{A:()=>n})},8128:r=>{
/*
* @license MIT
* Fun Hooks v1.1.0
* (c) @snapwich
*/
i.SYNC=1,i.ASYNC=2,i.QUEUE=4;var t="fun-hooks",e=Object.freeze({ready:0}),n=new WeakMap;function o(r,t){return Array.prototype.slice.call(r,t)}function i(r){var a,f={},c=[];function u(r,t){return"function"==typeof r?s.call(null,"sync",r,t):"string"==typeof r&&"function"==typeof t?s.apply(null,arguments):"object"==typeof r?l.apply(null,arguments):void 0}function l(r,t,e){var n=!0;void 0===t&&(t=Object.getOwnPropertyNames(r).filter((r=>!r.match(/^_/))),n=!1);var o={},i=["constructor"];do{t.forEach((function(t){var n=t.match(/(?:(sync|async):)?(.+)/),a=n[1]||"sync",f=n[2];if(!o[f]&&"function"==typeof r[f]&&-1===i.indexOf(f)){var c=r[f];o[f]=r[f]=s(a,c,e?[e,f]:void 0)}})),r=Object.getPrototypeOf(r)}while(n&&r);return o}function p(r){var e=Array.isArray(r)?r:r.split(".");return e.reduce((function(n,o,i){var f=n[o],u=!1;return f||(i===e.length-1?(a||c.push((function(){u||console.warn(t+": referenced '"+r+"' but it was never created")})),n[o]=y((function(r){n[o]=r,u=!0}))):n[o]={})}),f)}function y(r){var t=[],e=[],o=function(){},i={before:function(r,e){return f.call(this,t,"before",r,e)},after:function(r,t){return f.call(this,e,"after",r,t)},getHooks:function(r){var n=t.concat(e);"object"==typeof r&&(n=n.filter((function(t){return Object.keys(r).every((function(e){return t[e]===r[e]}))})));try{Object.assign(n,{remove:function(){return n.forEach((function(r){r.remove()})),this}})}catch(r){console.error("error adding `remove` to array, did you modify Array.prototype?")}return n},removeAll:function(){return this.getHooks().remove()}},a={install:function(n,i,a){this.type=n,o=a,a(t,e),r&&r(i)}};return n.set(i.after,a),i;function f(r,n,i,a){var f={hook:i,type:n,priority:a||10,remove:function(){var n=r.indexOf(f);-1!==n&&(r.splice(n,1),o(t,e))}};return r.push(f),r.sort((function(r,t){return t.priority-r.priority})),o(t,e),this}}function s(e,f,u){var l=f.after&&n.get(f.after);if(l){if(l.type!==e)throw t+": recreated hookable with different type";return f}var s,v=u?p(u):y(),h={get:function(r,t){return v[t]||Reflect.get.apply(Reflect,arguments)}};a||c.push(b);var d=new Proxy(f,h);return n.get(d.after).install(e,d,(function(r,t){var n,i=[];r.length||t.length?(r.forEach(a),n=i.push(void 0)-1,t.forEach(a),s=function(r,t,a){var f,c=i.slice(),u=0,l="async"===e&&"function"==typeof a[a.length-1]&&a.pop();function p(r){"sync"===e?f=r:l&&l.apply(null,arguments)}function y(r){if(c[u]){var n=o(arguments);return y.bail=p,n.unshift(y),c[u++].apply(t,n)}"sync"===e?f=r:l&&l.apply(null,arguments)}return c[n]=function(){var n=o(arguments,1);"async"===e&&l&&(delete y.bail,n.push(y));var i=r.apply(t,n);"sync"===e&&y(i)},y.apply(null,a),f}):s=void 0;function a(r){i.push(r.hook)}b()})),d;function b(){!a&&("sync"!==e||r.ready&i.SYNC)&&("async"!==e||r.ready&i.ASYNC)?"sync"!==e&&r.ready&i.QUEUE?h.apply=function(){var r=arguments;c.push((function(){d.apply(r[1],r[2])}))}:h.apply=function(){throw t+": hooked function not ready"}:h.apply=s}}return(r=Object.assign({},e,r)).ready?u.ready=function(){a=!0,function(r){for(var t;t=r.shift();)t()}(c)}:a=!0,u.get=p,u}r.exports=i},3172:(r,t,e)=>{function n(r,t,e){t.split&&(t=t.split("."));for(var n,o,i=0,a=t.length,f=r;i<a&&"__proto__"!=(o=""+t[i++])&&"constructor"!==o&&"prototype"!==o;)f=f[o]=i===a?e:typeof(n=f[o])==typeof t?n:0*t[i]!=0||~(""+t[i]).indexOf(".")?{}:[]}e.d(t,{J:()=>n})},5751:(r,t,e)=>{function n(r){var t,e,o;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(o=r[t])&&"object"==typeof o?n(o):o;return e}if("[object Object]"===Object.prototype.toString.call(r)){for(t in e={},r)"__proto__"===t?Object.defineProperty(e,t,{value:n(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(o=r[t])&&"object"==typeof o?n(o):o;return e}return r}e.d(t,{Q:()=>n})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.m=t,r=[],n.O=(t,e,o,i)=>{if(!e){var a=1/0;for(l=0;l<r.length;l++){e=r[l][0],o=r[l][1],i=r[l][2];for(var f=!0,c=0;c<e.length;c++)(!1&i||a>=i)&&Object.keys(n.O).every((r=>n.O[r](e[c])))?e.splice(c--,1):(f=!1,i<a&&(a=i));if(f){r.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=r.length;l>0&&r[l-1][2]>i;l--)r[l]=r[l-1];r[l]=[e,o,i]},n.n=r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return n.d(t,{a:t}),t},n.d=(r,t)=>{for(var e in t)n.o(t,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},n.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),(()=>{var r={9673:0};n.O.j=t=>0===r[t];var t=(t,e)=>{var o,i,a=e[0],f=e[1],c=e[2],u=0;if(a.some((t=>0!==r[t]))){for(o in f)n.o(f,o)&&(n.m[o]=f[o]);if(c)var l=c(n)}for(t&&t(e);u<a.length;u++)i=a[u],n.o(r,i)&&r[i]&&r[i][0](),r[i]=0;return n.O(l)},e=self.pbjsChunk=self.pbjsChunk||[];e.forEach(t.bind(null,0)),e.push=t.bind(null,e.push.bind(e))})();var o=n.O(void 0,[802,7769,2139,1085],(()=>n(8934)));o=n.O(o)})();
(self.pbjsChunk=self.pbjsChunk||[]).push([[802],{5789:(e,t,n)=>{n.d(t,{A4:()=>c,J7:()=>u,Pg:()=>l});var i=n(1580),r=n(1069),o=n(7873),s=n(5569);const a=(0,o.m)(),d="outstream";function c(e){const{url:t,config:n,id:o,callback:c,loaded:u,adUnitCode:l,renderNow:f}=e;this.url=t,this.config=n,this.handlers={},this.id=o,this.renderNow=f,this.adUnitCode=l,this.loaded=u,this.cmd=[],this.push=e=>{"function"==typeof e?this.loaded?e.call():this.cmd.push(e):(0,r.vV)("Commands given to Renderer.push must be wrapped in a function")},this.callback=c||(()=>{this.loaded=!0,this.process()}),this.render=function(){const e=arguments,n=()=>{this._render?this._render.apply(this,e):(0,r.JE)("No render function was provided, please use .setRender on the renderer")};!function(e){const t=a.adUnits.find((t=>t.code===e));if(!t)return!1;const n=t?.renderer,i=!!(n&&n.url&&n.render),r=t?.mediaTypes?.video?.renderer,o=!!(r&&r.url&&r.render);return!!(i&&!0!==n.backupOnly||o&&!0!==r.backupOnly)}(l)?f?n():(this.cmd.unshift(n),(0,i.R)(t,s.tp,d,this.callback,this.documentContext)):((0,r.JE)(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${l}`),n())}.bind(this)}function u(e){return!(!e||!e.url&&!e.renderNow)}function l(e,t,n){let i=null;e.config&&e.config.documentResolver&&(i=e.config.documentResolver(t,document,n)),i||(i=document),e.documentContext=i,e.render(t,e.documentContext)}c.install=function(e){let{url:t,config:n,id:i,callback:r,loaded:o,adUnitCode:s,renderNow:a}=e;return new c({url:t,config:n,id:i,callback:r,loaded:o,adUnitCode:s,renderNow:a})},c.prototype.getConfig=function(){return this.config},c.prototype.setRender=function(e){this._render=e},c.prototype.setEventHandlers=function(e){this.handlers=e},c.prototype.handleVideoEvent=function(e){let{id:t,eventName:n}=e;"function"==typeof this.handlers[n]&&this.handlers[n](),(0,r.OG)(`Prebid Renderer event for id ${t} type ${n}`)},c.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,r.vV)(`Error processing Renderer command on ad unit '${this.adUnitCode}':`,e)}}},6811:(e,t,n)=>{n.d(t,{DL:()=>u,Ml:()=>r,Ue:()=>i,VJ:()=>f,hE:()=>l,hq:()=>c,mo:()=>d,pY:()=>g,qX:()=>o,uc:()=>a,yl:()=>s});const i="accessDevice",r="syncUser",o="enrichUfpd",s="enrichEids",a="fetchBids",d="reportAnalytics",c="transmitEids",u="transmitUfpd",l="transmitPreciseGeo",f="transmitTid",g="loadExternalScript"},3441:(e,t,n)=>{n.d(t,{s:()=>r});var i=n(1445);const r=(0,n(2604).ZI)((e=>i.Ay.resolveAlias(e)))},5569:(e,t,n)=>{n.d(t,{Tn:()=>a,fW:()=>o,tW:()=>r,tp:()=>i,zu:()=>s});const i="prebid",r="bidder",o="userId",s="rtd",a="analytics"},2604:(e,t,n)=>{n.d(t,{Dk:()=>s,Ii:()=>o,TQ:()=>g,U3:()=>h,XG:()=>u,ZI:()=>p,Zw:()=>c,bt:()=>l,e3:()=>f,iK:()=>a,q7:()=>d});var i=n(5569),r=n(9214);const o="component",s=o+"Type",a=o+"Name",d="adapterCode",c="storageType",u="configName",l="syncType",f="syncUrl",g="_config";function p(e){return function(t,n,r){const c={[s]:t,[a]:n,[o]:`${t}.${n}`};return t===i.tW&&(c[d]=e(n)),h(Object.assign(c,r))}}const h=(0,r.A_)("sync",(e=>e))},6953:(e,t,n)=>{n.d(t,{Vx:()=>d,l7:()=>a,p4:()=>m,$V:()=>h,nl:()=>g,ZP:()=>b,$p:()=>y,uD:()=>p});var i=n(433),r=n(3272),o=n(5139),s=n(6811);const a=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((e=>`user.${e}`)).concat("device.ext.cdep"),d=["user.eids","user.ext.eids"],c=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"],u=["device.ip"],l=["device.ipv6"];function f(e){return Object.assign({get(){},run(e,t,n,i,r){const o=n&&n[i];if(h(o)&&r()){const e=this.get(o);void 0===e?delete n[i]:n[i]=e}}},e)}function g(e){return e.forEach((e=>{e.paths=e.paths.map((e=>{const t=e.split("."),n=t.pop();return[t.length>0?t.join("."):null,n]}))})),function(t,n){const r=[];for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];const d=p(t,...s);return e.forEach((e=>{if(!1!==t[e.name])for(const[o,s]of e.paths){const a=null==o?n:(0,i.A)(n,o);if(r.push(e.run(n,o,a,s,d.bind(null,e))),!1===t[e.name])return}})),r.filter((e=>null!=e))}}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return function(t){return e.hasOwnProperty(t.name)||(e[t.name]=!!t.applies(...n)),e[t.name]}}function h(e){return null!=e&&("object"!=typeof e||Object.keys(e).length>0)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.io;return function(n){return!t(e,n)}}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;return[{name:s.DL,paths:a,applies:m(s.DL,e)},{name:s.hq,paths:d,applies:m(s.hq,e)},{name:s.hE,paths:c,applies:m(s.hE,e),get:e=>Math.round(100*(e+Number.EPSILON))/100},{name:s.hE,paths:u,applies:m(s.hE,e),get:e=>function(e){if(!e)return null;let t=e.split(".").map(Number);if(4!=t.length)return null;let n=[];for(let e=0;e<4;e++){let t=Math.max(0,Math.min(8,24-8*e));n.push(255<<8-t&255)}return t.map(((e,t)=>e&n[t])).join(".")}(e)},{name:s.hE,paths:l,applies:m(s.hE,e),get:e=>function(e){if(!e)return null;let t=e.split(":").map((e=>parseInt(e,16)));for(t=t.map((e=>isNaN(e)?0:e));t.length<8;)t.push(0);if(8!=t.length)return null;let n=[];for(let e=0;e<8;e++){let t=Math.max(0,Math.min(16,64-16*e));n.push(65535<<16-t&65535)}return t.map(((e,t)=>e&n[t])).map((e=>e.toString(16))).join(":")}(e)},{name:s.VJ,paths:["source.tid"],applies:m(s.VJ,e)}].map(f)}const y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;const t=g(b(e)),n=g(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;return[{name:s.hq,paths:["userId","userIdAsEids"],applies:m(s.hq,e)},{name:s.VJ,paths:["ortb2Imp.ext.tid"],applies:m(s.VJ,e)}].map(f)}(e));return function(e){const i={};return{ortb2:n=>(t(i,n,e),n),bidRequest:t=>(n(i,t,e),t)}}}();(0,o.qB)(s.VJ,"enableTIDs config",(()=>{if(!r.$W.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},5139:(e,t,n)=>{n.d(t,{io:()=>s,qB:()=>o});var i=n(1069),r=n(2604);const[o,s]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.h0)("Activity control:");const t={};function n(e){return t[e]=t[e]||[]}function o(t,n,i,o){let s;try{s=i(o)}catch(i){e.logError(`Exception in rule ${n} for '${t}'`,i),s={allow:!1,reason:i}}return s&&Object.assign({activity:t,name:n,component:o[r.Ii]},s)}const s={};function a(t){let{activity:n,name:i,allow:r,reason:o,component:a}=t;const d=`${i} ${r?"allowed":"denied"} '${n}' for '${a}'${o?":":""}`,c=s.hasOwnProperty(d);if(c&&clearTimeout(s[d]),s[d]=setTimeout((()=>delete s[d]),1e3),!c){const t=[d];o&&t.push(o),(r?e.logInfo:e.logWarn).apply(e,t)}}return[function(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const o=n(e),s=o.findIndex((e=>{let[t]=e;return r<t})),a=[r,t,i];return o.splice(s<0?o.length:s,0,a),function(){const e=o.indexOf(a);e>=0&&o.splice(e,1)}},function(e,t){let i,r;for(const[s,d,c]of n(e)){if(i!==s&&r)break;i=s;const n=o(e,d,c,t);if(n){if(!n.allow)return a(n),!1;r=n}}return r&&a(r),!0}]}()},9075:(e,t,n)=>{n.d(t,{$A:()=>I,BS:()=>W,Hh:()=>x,Pk:()=>N,Uc:()=>S,XO:()=>V,bw:()=>_,n6:()=>C,qn:()=>$,vB:()=>P,vW:()=>R,vd:()=>U});var i=n(1069),r=n(5023),o=n(8969),s=n(3272),a=n(5789),d=n(1371),c=n(7314),u=n(6031),l=n(9214),f=n(2449),g=n(5555),p=n(1445),h=n(6894),m=n(7779),b=n(3005);const{AD_RENDER_FAILED:y,AD_RENDER_SUCCEEDED:v,STALE_RENDER:E,BID_WON:A,EXPIRED_RENDER:w}=o.qY,{EXCEPTION:T}=o.as,I=(0,l.A_)("sync",(function(e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.U9.resolve()).then((t=>t??c.n.findBidByAdId(e))).catch((()=>{}))})),C=(0,l.A_)("sync",(function(e){((0,b.$T)(e.eventtrackers)[b.RO]?.[b.Ni]||[]).forEach((e=>(0,i.z$)(e))),r.Ic(A,e),c.n.addWinningBid(e)}));function B(e){let{reason:t,message:n,bid:o,id:s}=e;const a={reason:t,message:n};o&&(a.bid=o,a.adId=o.adId),s&&(a.adId=s),(0,i.vV)(`Error rendering ad (id: ${s}): ${n}`),r.Ic(y,a)}function O(e){let{doc:t,bid:n,id:i}=e;const o={doc:t};n&&(o.bid=n),i&&(o.adId=i),p.Ay.callAdRenderSucceededBidder(n.adapterCode||n.bidder,n),r.Ic(v,o)}function S(e,t){switch(e.event){case o.qY.AD_RENDER_FAILED:B({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case o.qY.AD_RENDER_SUCCEEDED:O({doc:null,bid:t,id:t.adId});break;default:(0,i.vV)(`Received event request for unsupported event: '${e.event}' (adId: '${t.adId}')`)}}function R(e,t,n){let{resizeFn:i,fireTrackers:r=f.vO}=n;if("resizeNativeHeight"===e.action)i(e.width,e.height);else r(e,t)}const k={[o.nl.EVENT]:S};k[o.nl.NATIVE]=R;const U=(0,l.A_)("sync",(function(e,t){const{ad:n,adUrl:r,cpm:o,originalCpm:s,width:a,height:d,instl:c}=e,u={AUCTION_PRICE:s||o,CLICKTHROUGH:t?.clickUrl||""};return{ad:(0,i.gM)(n,u),adUrl:(0,i.gM)(r,u),width:a,height:d,instl:c}})),D=(0,l.A_)("sync",(function(e){let{renderFn:t,resizeFn:n,bidResponse:r,options:s,doc:a,isMainDocument:c=a===document&&!(0,i.al)()}=e;const u=r.mediaType===d.G_;if(c||u)return void B({reason:o.as.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:u?"Cannot render video ad without a renderer":"renderAd was prevented from writing to the main document.",bid:r,id:r.adId});const l=U(r,s);t(Object.assign({adId:r.adId},l));const{width:f,height:g}=l;null!=(f??g)&&n(f,g)}));function _(e){let{renderFn:t,resizeFn:n,adId:a,options:d,bidResponse:c,doc:u}=e;x(c,(()=>{if(null!=c){if((c.status!==o.tl.RENDERED||((0,i.JE)(`Ad id ${a} has been rendered before`),r.Ic(E,c),!s.$W.getConfig("auctionOptions")?.suppressStaleRender))&&(m.uW.isBidNotExpired(c)||((0,i.JE)(`Ad id ${a} has been expired`),r.Ic(w,c),!s.$W.getConfig("auctionOptions")?.suppressExpiredRender)))try{D({renderFn:t,resizeFn:n,bidResponse:c,options:d,doc:u})}catch(e){B({reason:o.as.EXCEPTION,message:e.message,id:a,bid:c})}}else B({reason:o.as.CANNOT_FIND_AD,message:`Cannot find ad '${a}'`,id:a})}))}function $(e){const t=(0,h.BO)(e.metrics);t.checkpoint("bidRender"),t.timeBetween("bidWon","bidRender","render.deferred"),t.timeBetween("auctionEnd","bidRender","render.pending"),t.timeBetween("requestBids","bidRender","render.e2e"),e.status=o.tl.RENDERED}D.before((function(e,t){const{bidResponse:n,doc:i}=t;(0,a.J7)(n.renderer)?((0,a.Pg)(n.renderer,n,i),O({doc:i,bid:n,id:n.adId}),e.bail()):e(t)}),100);const j=new WeakMap,q=new WeakSet;function x(e,t){null!=e?(j.set(e,t),e.deferRendering||P(e),N(e)):t()}function N(e){q.has(e)||(q.add(e),C(e))}function P(e){const t=j.get(e);t&&(t(),$(e),j.delete(e))}function W(e,t,n){let r;function s(e,n){B(Object.assign({id:t,bid:r},{reason:e,message:n}))}function a(t,n){const i=e.defaultView?.frameElement;i&&(t&&(i.width=t,i.style.width&&(i.style.width=`${t}px`)),n&&(i.height=n,i.style.height&&(i.style.height=`${n}px`)))}const d=(c={resizeFn:a},function(e,t,n){k.hasOwnProperty(e)&&k[e](t,n,c)});var c;function l(t){t.ad?(e.write(t.ad),e.close(),O({doc:e,bid:r,id:r.adId})):(0,u.HH)(r).then((n=>n(t,{sendMessage:(e,t)=>d(e,t,r),mkFrame:i.hw},e.defaultView))).then((()=>O({doc:e,bid:r,id:r.adId})),(e=>{s(e?.reason||o.as.EXCEPTION,e?.message),e?.stack&&(0,i.vV)(e)}));const n=document.createComment(`Creative ${r.creativeId} served by ${r.bidder} Prebid.js Header Bidding`);(0,i._s)(n,e,"html")}try{t&&e?I(t).then((i=>{r=i,_({renderFn:l,resizeFn:a,adId:t,options:{clickUrl:n?.clickThrough},bidResponse:i,doc:e})})):s(o.as.MISSING_DOC_OR_ADID,"missing "+(t?"doc":"adId"))}catch(e){s(T,e.message)}}function V(){if(!window.frames[o.IY])if(document.body){const e=(0,i.CA)();e.name=o.IY,document.body.appendChild(e)}else window.requestAnimationFrame(V)}},201:(e,t,n)=>{n.d(t,{U:()=>s});var i=n(7873),r=n(1069);const o=(0,i.m)();function s(e,t){o.adServers=o.adServers||{},o.adServers[e]=o.adServers[e]||{},Object.keys(t).forEach((n=>{o.adServers[e][n]?(0,r.JE)(`Attempting to add an already registered function property ${n} for AdServer ${e}.`):o.adServers[e][n]=t[n]}))}},9759:(e,t,n)=>{function i(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}n.d(t,{A:()=>i})},1445:(e,t,n)=>{n.d(t,{S1:()=>R,Ay:()=>z,tS:()=>W,pX:()=>M,Mf:()=>G,K5:()=>N});var i=n(1069),r=n(2449),o=n(7377),s=n(8044),a=n(3272),d=n(9214);let c={};function u(e,t,n){let i=function(e,t){let n=c[e]=c[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return i[t]=(i[t]||0)+1,i[t]}function l(e){return u(e,"auctionsCounter")}function f(e){return c?.[e]?.requestsCounter||0}function g(e,t){return c?.[e]?.bidders?.[t]?.requestsCounter||0}function p(e,t){return c?.[e]?.bidders?.[t]?.winsCounter||0}function h(e){return c?.[e]?.auctionsCounter||0}var m=n(7934),b=n(6916),y=n(5023),v=n(8969),E=n(6894),A=n(7314),w=n(5569),T=n(5139),I=n(6811),C=n(2604),B=n(6953),O=n(3005);const S="pbsBidAdapter",R={CLIENT:"client",SERVER:"server"},k={isAllowed:T.io,redact:B.$p};let U={},D=U.bidderRegistry={},_=U.aliasRegistry={},$=[];a.$W.getConfig("s2sConfig",(e=>{e&&e.s2sConfig&&($=(0,i.cy)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var j={};const q=(0,C.ZI)((e=>U.resolveAlias(e)));function x(e){return e.configName??e.name}function N(e){return q(w.tp,S,{[C.XG]:x(e)})}const P=(0,d.A_)("sync",(function(e){let{bidderCode:t,auctionId:n,bidderRequestId:r,adUnits:o,src:s,metrics:a}=e;return o.reduce(((e,o)=>{const d=o.bids.filter((e=>e.bidder===t));return null==t&&0===d.length&&null!=o.s2sBid&&d.push({bidder:null}),e.push(d.reduce(((e,d)=>{const c=null==(d=Object.assign({},d,{ortb2Imp:(0,i.D9)({},o.ortb2Imp,d.ortb2Imp)},(0,i.SH)(o,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?o.mediaTypes:d.mediaTypes;return(0,i.wD)(c)?d=Object.assign({},d,{mediaTypes:c}):(0,i.vV)(`mediaTypes is not correctly configured for adunit ${o.code}`),"client"===s&&function(e,t){u(e,"requestsCounter",t)}(o.code,t),e.push(Object.assign({},d,{adUnitCode:o.code,transactionId:o.transactionId,adUnitId:o.adUnitId,sizes:c?.banner?.sizes||c?.video?.playerSize||[],bidId:d.bid_id||(0,i.s0)(),bidderRequestId:r,auctionId:n,src:s,metrics:a,auctionsCount:h(o.code),bidRequestsCount:f(o.code),bidderRequestsCount:g(o.code,d.bidder),bidderWinsCount:p(o.code,d.bidder),deferBilling:!!o.deferBilling})),e}),[])),e}),[]).reduce(i.Bq,[]).filter((e=>""!==e))}),"getBids");const W=(0,d.A_)("sync",(function(e,t){let{getS2SBidders:n=M}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return e;{const i=n(t);return e.filter((e=>{if(!i.has(e.bidder))return!1;if(null==e.s2sConfigName)return!0;const n=x(t);return(Array.isArray(e.s2sConfigName)?e.s2sConfigName:[e.s2sConfigName]).includes(n)}))}}),"filterBidsForAdUnit");const V=(0,d.A_)("sync",((e,t)=>e),"setupAdUnitMediaTypes");function M(e){(0,i.cy)(e)||(e=[e]);const t=new Set([null]);return e.filter((e=>e&&e.enabled)).flatMap((e=>e.bidders)).forEach((e=>t.add(e))),t}const G=(0,d.A_)("sync",(function(e,t){let{getS2SBidders:n=M}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n(t);return(0,i.ZA)(e).reduce(((e,t)=>(e[r.has(t)?R.SERVER:R.CLIENT].push(t),e)),{[R.CLIENT]:[],[R.SERVER]:[]})}),"partitionBidders");function F(e,t){const n=D[e],i=n?.getSpec&&n.getSpec();if(i&&i[t]&&"function"==typeof i[t])return[i,i[t]]}function H(e,t,n,r){try{(0,i.fH)(`Invoking ${e}.${t}`);for(var o=arguments.length,s=new Array(o>4?o-4:0),d=4;d<o;d++)s[d-4]=arguments[d];a.$W.runWithBidder(e,r.bind(n,...s))}catch(n){(0,i.JE)(`Error calling ${t} of ${e}`)}}function L(e,t,n){if(n?.source!==v.RW.SRC){const i=F(e,t);null!=i&&H(e,t,...i,n)}}U.makeBidRequests=(0,d.A_)("sync",(function(e,t,n,o,s){let d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6?arguments[6]:void 0;c=(0,E.BO)(c),y.Ic(v.qY.BEFORE_REQUEST_BIDS,e),(0,r.nk)(e),e.map((e=>e.code)).filter(i.hj).forEach(l),e.forEach((e=>{(0,i.Qd)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((e=>!e.bidder||k.isAllowed(I.uc,q(w.tW,e.bidder)))),u(e.code,"requestsCounter")})),e=V(e,s);let{[R.CLIENT]:f,[R.SERVER]:g}=G(e,$);a.$W.getConfig("bidderSequence")===a.Ov&&(f=(0,i.k4)(f));const p=(0,m.EN)();let h=[];const A=d.global||{},T=d.bidder||{};function C(e,t){const r=k.redact(null!=t?t:q(w.tW,e.bidderCode)),o=(0,i.D9)({source:{tid:n}},A,T[e.bidderCode]);!function(e){const t=e.user?.eids;Array.isArray(t)&&t.length&&(e.user.ext=e.user.ext||{},e.user.ext.eids=[...e.user.ext.eids||[],...t],delete e.user.eids)}(o);const s=Object.freeze(r.ortb2(o));return e.ortb2=s,e.bids=e.bids.map((e=>(e.ortb2=s,r.bidRequest(e)))),e}$.forEach((r=>{const o=N(r);if(r&&r.enabled&&k.isAllowed(I.uc,o)){let{adUnits:s,hasModuleBids:a}=function(e,t){let n=(0,i.Go)(e),r=!1;return n.forEach((e=>{const n=e.bids.filter((e=>e.module===S&&e.params?.configName===x(t)));1===n.length?(e.s2sBid=n[0],r=!0,e.ortb2Imp=(0,i.D9)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&(0,i.JE)('Multiple "module" bids for the same s2s configuration; all will be ignored',n),e.bids=W(e.bids,t).map((e=>(e.bid_id=(0,i.s0)(),e)))})),n=n.filter((e=>0!==e.bids.length||null!=e.s2sBid)),{adUnits:n,hasModuleBids:r}}(e,r),d=(0,i.lk)();(0===g.length&&a?[null]:g).forEach((e=>{const a=(0,i.s0)(),u=c.fork(),l=C({bidderCode:e,auctionId:n,bidderRequestId:a,uniquePbsTid:d,bids:P({bidderCode:e,auctionId:n,bidderRequestId:a,adUnits:(0,i.Go)(s),src:v.RW.SRC,metrics:u}),auctionStart:t,timeout:r.timeout,src:v.RW.SRC,refererInfo:p,metrics:u},o);0!==l.bids.length&&h.push(l)})),s.forEach((e=>{let t=e.bids.filter((e=>h.find((t=>t.bids.find((t=>t.bidId===e.bid_id))))));e.bids=t})),h.forEach((e=>{void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=s.filter((e=>e.bids.length>0||null!=e.s2sBid)))}))}}));let B=function(e){let t=(0,i.Go)(e);return t.forEach((e=>{e.bids=W(e.bids,null)})),t=t.filter((e=>0!==e.bids.length)),t}(e);return f.forEach((e=>{const r=(0,i.s0)(),a=c.fork(),d=C({bidderCode:e,auctionId:n,bidderRequestId:r,bids:P({bidderCode:e,auctionId:n,bidderRequestId:r,adUnits:(0,i.Go)(B),labels:s,src:"client",metrics:a}),auctionStart:t,timeout:o,refererInfo:p,metrics:a}),u=D[e];u||(0,i.vV)(`Trying to make a request for bidder that does not exist: ${e}`),u&&d.bids&&0!==d.bids.length&&h.push(d)})),h.forEach((e=>{b.mW.getConsentData()&&(e.gdprConsent=b.mW.getConsentData()),b.t6.getConsentData()&&(e.uspConsent=b.t6.getConsentData()),b.ad.getConsentData()&&(e.gppConsent=b.ad.getConsentData())})),h}),"makeBidRequests"),U.callBids=function(e,t,n,r,o,d,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(!t.length)return void(0,i.JE)("callBids executed with no bidRequests.  Were they filtered by labels or sizing?");let[l,f]=t.reduce(((e,t)=>(e[Number(void 0!==t.src&&t.src===v.RW.SRC)].push(t),e)),[[],[]]);var g=[];f.forEach((e=>{for(var t=-1,n=0;n<g.length;++n)if(e.uniquePbsTid===g[n].uniquePbsTid){t=n;break}t<=-1&&g.push(e)}));let p=0;$.forEach((e=>{if(e&&g[p]&&M(e).has(g[p].bidderCode)){const t=(0,s.g4)(d,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0);let a=e.bidders;const l=D[e.adapter];let h=g[p].uniquePbsTid,m=g[p].adUnitsS2SCopy,b=f.filter((e=>e.uniquePbsTid===h));if(l){let o={ad_units:m,s2sConfig:e,ortb2Fragments:u,requestBidsTimeout:d};if(o.ad_units.length){let e=b.map((e=>(e.start=(0,i.vE)(),function(t){t||c(e.bidderRequestId),r.apply(e,arguments)})));const s=(0,i.ZA)(o.ad_units).filter((e=>a.includes(e)));(0,i.OG)(`CALLING S2S HEADER BIDDERS ==== ${s.length>0?s.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only'}`),b.forEach((e=>{y.Ic(v.qY.BID_REQUESTED,{...e,tid:e.auctionId})})),l.callBids(o,f,n,(t=>e.forEach((e=>e(t)))),t)}}else(0,i.vV)("missing "+e.adapter);p++}})),l.forEach((e=>{e.start=(0,i.vE)();const t=D[e.bidderCode];a.$W.runWithBidder(e.bidderCode,(()=>{(0,i.OG)("CALLING BIDDER"),y.Ic(v.qY.BID_REQUESTED,e)}));let u=(0,s.g4)(d,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0);const l=r.bind(e);try{a.$W.runWithBidder(e.bidderCode,t.callBids.bind(t,e,n,l,u,(()=>c(e.bidderRequestId)),a.$W.callbackWithBidder(e.bidderCode)))}catch(t){(0,i.vV)(`${e.bidderCode} Bid Adapter emitted an uncaught error when parsing their bidRequest`,{e:t,bidRequest:e}),l()}}))},U.videoAdapters=[],U.registerBidAdapter=function(e,t){let{supportedMediaTypes:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&t?"function"==typeof e.callBids?(D[t]=e,b.o2.register(w.tW,t,e.getSpec?.().gvlid),n.includes("video")&&U.videoAdapters.push(t),n.includes("native")&&r.mT.push(t)):(0,i.vV)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):(0,i.vV)("bidAdapter or bidderCode not specified")},U.aliasBidAdapter=function(e,t,n){if(void 0===D[t]){let s=D[e];if(void 0===s){const n=[];$.forEach((i=>{if(i.bidders&&i.bidders.length){const r=i&&i.bidders;i&&r.includes(t)?_[t]=e:n.push(e)}})),n.forEach((e=>{(0,i.vV)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{let a,d=function(e){let t=[];return U.videoAdapters.includes(e)&&t.push("video"),r.mT.includes(e)&&t.push("native"),t}(e);if(s.constructor.prototype!=Object.prototype)a=new s.constructor,a.setBidderCode(t);else{const{useBaseGvlid:r=!1}=n||{};let d=s.getSpec();const c=r?d.gvlid:n?.gvlid;null==c&&null!=d.gvlid&&(0,i.JE)(`Alias '${t}' will NOT re-use the GVL ID of the original adapter ('${d.code}', gvlid: ${d.gvlid}). Functionality that requires TCF consent may not work as expected.`);let u=n&&n.skipPbsAliasing;a=(0,o.xb)(Object.assign({},d,{code:t,gvlid:c,skipPbsAliasing:u})),_[t]=e}U.registerBidAdapter(a,t,{supportedMediaTypes:d})}catch(t){(0,i.vV)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,i.OG)('alias name "'+t+'" has been already specified.')},U.resolveAlias=function(e){let t,n=e;for(;_[n]&&(!t||!t.has(n));)n=_[n],(t=t||new Set).add(n);return n},U.registerAnalyticsAdapter=function(e){let{adapter:t,code:n,gvlid:r}=e;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,j[n]={adapter:t,gvlid:r},b.o2.register(w.Tn,n,r)):(0,i.vV)(`Prebid Error: Analytics adaptor error for analytics "${n}"\n        analytics adapter must implement an enableAnalytics() function`):(0,i.vV)("Prebid Error: analyticsAdapter or analyticsCode not specified")},U.enableAnalytics=function(e){(0,i.cy)(e)||(e=[e]),e.forEach((e=>{const t=j[e.provider];t&&t.adapter?k.isAllowed(I.mo,q(w.Tn,e.provider,{[C.TQ]:e}))&&t.adapter.enableAnalytics(e):(0,i.vV)(`Prebid Error: no analytics adapter found in registry for '${e.provider}'.`)}))},U.getBidAdapter=function(e){return D[e]},U.getAnalyticsAdapter=function(e){return j[e]},U.callTimedOutBidders=function(e,t,n){t=t.map((t=>(t.params=(0,i.SB)(e,t.adUnitCode,t.bidder),t.timeout=n,t))),t=(0,i.$z)(t,"bidder"),Object.keys(t).forEach((e=>{L(e,"onTimeout",t[e])}))},U.callBidWonBidder=function(e,t,n){var r,o;t.params=(0,i.SB)(n,t.adUnitCode,t.bidder),r=t.adUnitCode,o=t.bidder,u(r,"winsCounter",o),L(e,"onBidWon",t)},U.triggerBilling=(()=>{const e=new WeakSet;return t=>{e.has(t)||(e.add(t),((0,O.$T)(t.eventtrackers)[O.OA]?.[O.Ni]||[]).forEach((e=>i.mM.triggerPixel(e))),L(t.bidder,"onBidBillable",t))}})(),U.callSetTargetingBidder=function(e,t){L(e,"onSetTargeting",t)},U.callBidViewableBidder=function(e,t){L(e,"onBidViewable",t)},U.callBidderError=function(e,t,n){L(e,"onBidderError",{error:t,bidderRequest:n})},U.callAdRenderSucceededBidder=function(e,t){L(e,"onAdRenderSucceeded",t)},U.callDataDeletionRequest=(0,d.A_)("sync",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r="onDataDeletionRequest";Object.keys(D).filter((e=>!_.hasOwnProperty(e))).forEach((e=>{const n=F(e,r);if(null!=n){const i=A.n.getBidsRequested().filter((t=>function(e){const t=new Set;for(;_.hasOwnProperty(e)&&!t.has(e);)t.add(e),e=_[e];return e}(t.bidderCode)===e));H(e,r,...n,i,...t)}})),Object.entries(j).forEach((e=>{let[n,o]=e;const s=o?.adapter?.[r];if("function"==typeof s)try{s.apply(o.adapter,t)}catch(e){(0,i.vV)(`error calling ${r} of ${n}`,e)}}))}));const z=U},7377:(e,t,n)=>{n.d(t,{JN:()=>R,a$:()=>T,fn:()=>k,xb:()=>C});var i=n(9759),r=n(1445),o=n(3272),s=n(3597),a=n(8230),d=n(2449),c=n(3895),u=n(8969),l=n(5023),f=n(1069),g=n(9214),p=n(7314),h=n(2693),m=n(6894),b=n(5139),y=n(3441),v=n(5569),E=n(6811);const A=["cpm","ttl","creativeId","netRevenue","currency"],w=["auctionId","transactionId"];function T(e){const t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){const n=C(e);r.Ay.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach((t=>{let i,o,s=t;(0,f.Qd)(t)&&(s=t.code,i=t.gvlid,o=t.skipPbsAliasing),r.Ay.aliasRegistry[s]=e.code,n(Object.assign({},e,{code:s,gvlid:i,skipPbsAliasing:o}))}))}const I=(0,f.Bj)((e=>{let{bidderCode:t}=e;if((0,b.io)(E.VJ,(0,y.s)(v.tW,t)))return{bidRequest:e=>e,bidderRequest:e=>e};function n(e,t,n){return w.includes(t)?null:Reflect.get(e,t,n)}function i(e,t){const n=new Proxy(e,t);return Object.entries(e).filter((e=>{let[t,n]=e;return"function"==typeof n})).forEach((t=>{let[i,r]=t;return n[i]=r.bind(e)})),n}const r=(0,f.Bj)((e=>i(e,{get:n})),(e=>e.bidId));return{bidRequest:r,bidderRequest:e=>i(e,{get:(t,i,o)=>"bids"===i?e.bids.map(r):n(t,i,o)})}}));function C(e){return Object.assign(new i.A(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(n,i,a,d,c,g){if(!Array.isArray(n.bids))return;const p=I(n),b={};const y=[];function v(){a(),o.$W.runWithBidder(e.code,(()=>{l.Ic(u.qY.BIDDER_DONE,n),t(y,n.gdprConsent,n.uspConsent,n.gppConsent)}))}const E=U(n).measureTime("validate",(()=>n.bids.filter((t=>function(t){if(!e.isBidRequestValid(t))return(0,f.JE)(`Invalid bid sent to bidder ${e.code}: ${JSON.stringify(t)}`),!1;return!0}(p.bidRequest(t))))));if(0===E.length)return void v();const A={};E.forEach((e=>{A[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),O(e,E,n,d,g,{onRequest:e=>l.Ic(u.qY.BEFORE_BIDDER_HTTP,n,e),onResponse:t=>{c(e.code),y.push(t)},onPaapi:e=>{const t=A[e.bidId];t?R(t,e):(0,f.JE)("Received fledge auction configuration for an unknown bidId",e)},onError:(t,i)=>{i.timedOut||c(e.code),r.Ay.callBidderError(e.code,i,n),l.Ic(u.qY.BIDDER_ERROR,{error:i,bidderRequest:n}),(0,f.vV)(`Server call for ${e.code} failed: ${t} ${i.status}. Continuing without bids.`,{bidRequests:E})},onBid:t=>{const n=A[t.requestId];if(n){if(t.adapterCode=n.bidder,function(e,t){let n=h.u.get(t,"allowAlternateBidderCodes")||!1,i=h.u.get(t,"allowedAlternateBidderCodes");if(e&&t&&t!==e&&(i=(0,f.cy)(i)?i.map((e=>e.trim().toLowerCase())).filter((e=>!!e)).filter(f.hj):i,!n||(0,f.cy)(i)&&"*"!==i[0]&&!i.includes(e)))return!0;return!1}(t.bidderCode,n.bidder))return(0,f.JE)(`${t.bidderCode} is not a registered partner or known bidder of ${n.bidder}, hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.`),void i.reject(n.adUnitCode,t,u.Tf.BIDDER_DISALLOWED);t.originalCpm=t.cpm,t.originalCurrency=t.currency,t.meta=t.meta||Object.assign({},t[n.bidder]),t.deferBilling=n.deferBilling,t.deferRendering=t.deferBilling&&(t.deferRendering??"function"!=typeof e.onBidBillable);const r=Object.assign((0,s.O)(u.XQ.GOOD,n),t,(0,f.Up)(n,w));!function(e,t){const n=(0,m.BO)(t.metrics);n.checkpoint("addBidResponse"),b[e]=!0,n.measureTime("addBidResponse.validate",(()=>k(e,t)))?i(e,t):i.reject(e,t,u.Tf.INVALID)}(n.adUnitCode,r)}else(0,f.JE)(`Bidder ${e.code} made bid for unknown request ID: ${t.requestId}. Ignoring.`),i.reject(null,t,u.Tf.INVALID_REQUEST_ID)},onCompletion:v})}});function t(t,n,i,r){S(e,t,n,i,r)}}const B=["bids","paapi"],O=(0,g.A_)("async",(function(e,t,n,i,r,o){let{onRequest:s,onResponse:a,onPaapi:d,onError:c,onBid:l,onCompletion:g}=o;const p=U(n);g=p.startTiming("total").stopBefore(g);const m=I(n);let A=p.measureTime("buildRequests",(()=>e.buildRequests(t.map(m.bidRequest),m.bidderRequest(n))));if(!A||0===A.length)return void g();Array.isArray(A)||(A=[A]);const w=(0,f.U6)(g,A.length);A.forEach((t=>{const n=p.fork();function o(e){null!=e&&(e.metrics=n.fork().renameWith()),l(e)}const g=r((function(i,r){A();try{i=JSON.parse(i)}catch(e){}i={body:i,headers:{get:r.getResponseHeader.bind(r)}},a(i);try{i=n.measureTime("interpretResponse",(()=>e.interpretResponse(i,t)))}catch(t){return(0,f.vV)(`Bidder ${e.code} failed to interpret the server's response. Continuing without bids`,null,t),void w()}let s,c;i&&!Object.keys(i).some((e=>!B.includes(e)))?(s=i.bids,c=i.paapi):s=i,(0,f.cy)(c)&&c.forEach(d),s&&((0,f.cy)(s)?s.forEach(o):o(s)),w()})),m=r((function(e,t){A(),c(e,t),w()}));s(t);const A=n.startTiming("net");function T(n){const i=t.options;return Object.assign(n,i,{browsingTopics:!(i?.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&((h.u.get(e.code,"topicsHeader")??!0)&&(0,b.io)(E.DL,(0,y.s)(v.tW,e.code)))})}switch(t.method){case"GET":i(`${t.url}${function(e){if(e)return`?${"object"==typeof e?(0,f.bL)(e):e}`;return""}(t.data)}`,{success:g,error:m},void 0,T({method:"GET",withCredentials:!0}));break;case"POST":const n=t.options?.endpointCompression,r="TRUE"===(0,f.Ez)(u.M).toUpperCase()||(0,f.dp)(),o=e=>{let{url:t,payload:n}=e;i(t,{success:g,error:m},n,T({method:"POST",contentType:"text/plain",withCredentials:!0}))};n&&r&&(0,f.JE)(`Skipping GZIP compression for ${e.code} as debug mode is enabled`),n&&!r&&(0,f.nT)()?(0,f.ZK)(t.data).then((e=>{const n=new URL(t.url,window.location.origin);n.searchParams.has("gzip")||n.searchParams.set("gzip","1"),o({url:n.href,payload:e})})):o({url:t.url,payload:"string"==typeof t.data?t.data:JSON.stringify(t.data)});break;default:(0,f.JE)(`Skipping invalid request from ${e.code}. Request type ${t.type} must be GET or POST`),w()}}))}),"processBidderRequests"),S=(0,g.A_)("async",(function(e,t,n,i,s){const d=o.$W.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(d||!r.Ay.aliasRegistry[e.code])){let r=e.getUserSyncs({iframeEnabled:a.zt.canBidderRegisterSync("iframe",e.code),pixelEnabled:a.zt.canBidderRegisterSync("image",e.code)},t,n,i,s);r&&(Array.isArray(r)||(r=[r]),r.forEach((t=>{a.zt.registerSync(t.type,e.code,t.url)})),a.zt.bidderDone(e.code))}}),"registerSyncs"),R=(0,g.A_)("sync",((e,t)=>{}),"addPaapiConfig");function k(e,t){let{index:n=p.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(e){return`Invalid bid from ${t.bidderCode}. Ignoring bid: ${e}`}return e?t?function(){let e=Object.keys(t);return A.every((n=>e.includes(n)&&![void 0,null].includes(t[n])))}()?"native"!==t.mediaType||(0,d.Bm)(t,{index:n})?"video"!==t.mediaType||(0,c.vk)(t,{index:n})?!("banner"===t.mediaType&&!function(e,t){let{index:n=p.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),!0;if(null!=t.wratio&&null!=t.hratio)return t.wratio=parseInt(t.wratio,10),t.hratio=parseInt(t.hratio,10),!0;const i=n.getBidRequest(t),r=n.getMediaTypes(t),o=i&&i.sizes||r&&r.banner&&r.banner.sizes,s=(0,f.kK)(o);if(1===s.length){const[e,n]=s[0].split("x");return t.width=parseInt(e,10),t.height=parseInt(n,10),!0}return!1}(e,t,{index:n}))||((0,f.vV)(i("Banner bids require a width and height")),!1):((0,f.vV)(i("Video bid does not have required vastUrl or renderer property")),!1):((0,f.vV)(i("Native bid missing some required properties.")),!1):((0,f.vV)(i(`Bidder ${t.bidderCode} is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params.`)),!1):((0,f.JE)(`Some adapter tried to add an undefined bid for ${e}.`),!1):((0,f.JE)("No adUnitCode was supplied to addBidResponse."),!1)}function U(e){return(0,m.BO)(e.metrics).renameWith((t=>[`adapter.client.${t}`,`adapters.client.${e.bidderCode}.${t}`]))}},1580:(e,t,n)=>{n.d(t,{R:()=>c});var i=n(6811),r=n(3441),o=n(5139),s=n(1069);const a=new WeakMap,d=["debugging","outstream","aaxBlockmeter","adagio","adloox","akamaidap","arcspan","airgrid","browsi","brandmetrics","clean.io","humansecurity","confiant","contxtful","hadron","mediafilter","medianet","azerionedge","a1Media","geoedge","qortex","dynamicAdBoost","51Degrees","symitridap","wurfl","nodalsAi","anonymised","optable","justtag","tncId","ftrackId","id5"];function c(e,t,n,c,u,l){if(!(0,o.io)(i.pY,(0,r.s)(t,n)))return;if(!n||!e)return void(0,s.vV)("cannot load external script without url and moduleCode");if(!d.includes(n))return void(0,s.vV)(`${n} not whitelisted for loading external JavaScript`);u||(u=document);const f=h(u,e);if(f)return c&&"function"==typeof c&&(f.loaded?c():f.callbacks.push(c)),f.tag;const g=a.get(u)||{},p={loaded:!1,tag:null,callbacks:[]};return g[e]=p,a.set(u,g),c&&"function"==typeof c&&p.callbacks.push(c),(0,s.JE)(`module ${n} is loading external JavaScript`),function(t,n,i,r){i||(i=document);var o=i.createElement("script");o.type="text/javascript",o.async=!0;const a=h(i,e);a&&(a.tag=o);o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,n())}:o.onload=function(){n()};o.src=t,r&&(0,s.Bg)(o,r);return(0,s._s)(o,i),o}(e,(function(){p.loaded=!0;try{for(let e=0;e<p.callbacks.length;e++)p.callbacks[e]()}catch(e){(0,s.vV)("Error executing callback","adloader.js:loadExternalScript",e)}}),u,l);function h(e,t){const n=a.get(e);return n&&n[t]?n[t]:null}}},1692:(e,t,n)=>{n.d(t,{Q:()=>i});const i=(0,n(9214).A_)("sync",(()=>{}))},8044:(e,t,n)=>{n.d(t,{RD:()=>f,g4:()=>l,hd:()=>g});var i=n(3272),r=n(1069);const o={fetch:window.fetch.bind(window),makeRequest:(e,t)=>new Request(e,t),timeout(e,t){const n=new AbortController;let i=setTimeout((()=>{n.abort(),(0,r.vV)(`Request timeout after ${e}ms`,t),i=null}),e);return{signal:n.signal,done(){i&&clearTimeout(i)}}}},s="GET",a="POST",d="Content-Type";function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t,n)=>{let r;null==e||null!=n?.signal||i.$W.getConfig("disableAjaxTimeout")||(r=o.timeout(e,t),n=Object.assign({signal:r.signal},n));let s=o.fetch(t,n);return null!=r?.done&&(s=s.finally(r.done)),s};return null==t&&null==n||(r=(e=>function(i,r){const o=new URL(null==i?.url?i:i.url,document.location).origin;let s=e(i,r);return t&&t(o),n&&(s=s.finally((()=>n(o)))),s})(r)),r}function u(e,t){let{status:n,statusText:i="",headers:o,url:s}=e,a=0;function c(e){if(0===a)try{a=(new DOMParser).parseFromString(t,o?.get(d)?.split(";")?.[0])}catch(t){a=null,e&&e(t)}return a}return{readyState:XMLHttpRequest.DONE,status:n,statusText:i,responseText:t,response:t,responseType:"",responseURL:s,get responseXML(){return c(r.vV)},getResponseHeader:e=>o?.has(e)?o.get(e):null,toJSON(){return Object.assign({responseXML:c()},this)},timedOut:!1}}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=c(e,{request:t,done:n});return function(e,t,n){!function(e,t){const{success:n,error:i}="object"==typeof t&&null!=t?t:{success:"function"==typeof t?t:()=>null,error:(e,t)=>(0,r.vV)("Network error",e,t)};e.then((e=>e.text().then((t=>[e,t])))).then((e=>{let[t,r]=e;const o=u(t,r);t.ok||304===t.status?n(r,o):i(t.statusText,o)}),(e=>i("",Object.assign(u({status:0},""),{reason:e,timedOut:"AbortError"===e?.name}))))}(i(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n.method||(t?a:s);if(i===s&&t){const i=(0,r.Dl)(e,n);Object.assign(i.search,t),e=(0,r.c$)(i)}const c=new Headers(n.customHeaders);c.set(d,n.contentType||"text/plain");const u={method:i,headers:c};return i!==s&&t&&(u.body=t),n.withCredentials&&(u.credentials="include"),isSecureContext&&["browsingTopics","adAuctionHeaders"].forEach((e=>{n[e]&&(u[e]=!0)})),n.keepalive&&(u.keepalive=!0),o.makeRequest(e,u)}(e,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),t)}}const f=l(),g=c()},1657:(e,t,n)=>{n.d(t,{AA:()=>B,HN:()=>J,UZ:()=>O,ZV:()=>M,mO:()=>V,mX:()=>_,v8:()=>N,w1:()=>q});var i=n(1069),r=n(6833),o=n(2449),s=n(8693),a=n(5789),d=n(3272),c=n(8230),u=n(9214),l=n(3895),f=n(1371),g=n(7314),p=n(2693),h=n(5023),m=n(1445),b=n(8969),y=n(5555),v=n(6894),E=n(7176),A=n(7873),w=n(6853),T=n(7863);const{syncUsers:I}=c.zt,C="started",B="inProgress",O="completed";h.on(b.qY.BID_ADJUSTMENT,(function(e){!function(e){let t=(0,E.y)(e.cpm,e);t>=0&&(e.cpm=t)}(e)}));const S=4,R={},k={},U=[],D=(0,A.m)();function _(e){let{adUnits:t,adUnitCodes:n,callback:c,cbTimeout:u,labels:p,auctionId:E,ortb2Fragments:A,metrics:_}=e;_=(0,v.BO)(_);const V=t,M=p,G=n,F=E||(0,i.lk)(),H=u,L=new Set,z=(0,y.v6)(),J=(0,y.v6)();let Q,Y,X,Z,ee=[],te=c,ne=[],ie=(0,w.H)({startTime:e=>e.responseTimestamp,ttl:e=>null==(0,T.S9)()?null:1e3*Math.max((0,T.S9)(),e.ttl)}),re=[],oe=[],se=[];function ae(){return{auctionId:F,timestamp:Q,auctionEnd:Y,auctionStatus:Z,adUnits:V,adUnitCodes:G,labels:M,bidderRequests:ne,noBids:re,bidsReceived:ie.toArray(),bidsRejected:ee,winningBids:oe,timeout:H,metrics:_,seatNonBids:se}}function de(e){if(e?h.Ic(b.qY.AUCTION_TIMEOUT,ae()):clearTimeout(X),void 0===Y){let n=[];e&&((0,i.OG)(`Auction ${F} timedOut`),n=ne.filter((e=>!L.has(e.bidderRequestId))).flatMap((e=>e.bids)),n.length&&h.Ic(b.qY.BID_TIMEOUT,n)),Z=O,Y=Date.now(),_.checkpoint("auctionEnd"),_.timeBetween("requestBids","auctionEnd","requestBids.total"),_.timeBetween("callBids","auctionEnd","requestBids.callBids"),z.resolve(),h.Ic(b.qY.AUCTION_END,ae()),x(V,(function(){try{if(null!=te){const t=ie.toArray().filter((e=>G.includes(e.adUnitCode))).reduce(K,{});te.apply(D,[t,e,F]),te=null}}catch(e){(0,i.vV)("Error executing bidsBackHandler",null,e)}finally{n.length&&m.Ay.callTimedOutBidders(t,n,H);let e=d.$W.getConfig("userSync")||{};e.enableOverride||I(e.syncDelay)}}))}}function ce(){d.$W.resetBidder(),(0,i.fH)(`Bids Received for Auction with id: ${F}`,ie.toArray()),Z=O,de(!1)}function ue(e){L.add(e)}function le(e){e.forEach((e=>{var t;t=e,ne=ne.concat(t)}));let t={},n={bidRequests:e,run:()=>{X=setTimeout((()=>de(!0)),H),Z=B,h.Ic(b.qY.AUCTION_INIT,ae());let n=function(e,t){let{index:n=g.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=0,u=!1,p=new Set,m={};function v(){c--,u&&0===c&&e()}function E(e,t,n){return m[t.requestId]=!0,function(e,t){let{index:n=g.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.getBidderRequest(e),o=n.getAdUnit(e),s=r&&r.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,i.vE)(),requestTimestamp:e.requestTimestamp||s,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:t}),null!=o?.ttlBuffer&&(e.ttlBuffer=o.ttlBuffer);e.timeToRespond=e.responseTimestamp-e.requestTimestamp}(t,e),c++,n(v)}function A(e,c){E(e,c,(e=>{let u=function(e){let{index:t=g.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h.Ic(b.qY.BID_ADJUSTMENT,e);const n=t.getAdUnit(e);e.instl=1===n?.ortb2Imp?.instl;const i=t.getBidRequest(e)?.renderer||n.renderer,o=e.mediaType,s=t.getMediaTypes(e),c=s&&s[o];var u=c&&c.renderer,l=null;!u||!u.render||!0===u.backupOnly&&e.renderer?!i||!i.render||!0===i.backupOnly&&e.renderer||(l=i):l=u;l&&(e.renderer=a.A4.install({url:l.url,config:l.options,renderNow:null==l.url}),e.renderer.setRender(l.render));const f=W(e.mediaType,s,d.$W.getConfig("mediaTypePriceGranularity")),p=(0,r.j)(e.cpm,"object"==typeof f?f:d.$W.getConfig("customPriceBucket"),d.$W.getConfig("currency.granularityMultiplier"));return e.pbLg=p.low,e.pbMg=p.med,e.pbHg=p.high,e.pbAg=p.auto,e.pbDg=p.dense,e.pbCg=p.custom,e}(c);h.Ic(b.qY.BID_ACCEPTED,u),u.mediaType===f.G_?function(e,t,n){let{index:r=g.n.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=!0;const a=r.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId})?.video,c=a&&a?.context,u=a&&a?.useCacheKey,{useLocal:f,url:p,ignoreBidderCacheKey:h}=d.$W.getConfig("cache")||{};f?(0,s.Sb)(t):p&&(u||c!==l.H6)&&(!t.videoCacheKey||h?(o=!1,P(e,t,n,a)):t.vastUrl||((0,i.vV)("videoCacheKey specified but not required vastUrl for video bid"),o=!1));o&&(N(e,t),n())}(t,u,e):((0,o.l6)(u)&&(0,o.gs)(u,n.getAdUnit(u)),N(t,u),e())}))}function w(e,n,r){return E(e,n,(e=>{n.rejectionReason=r,(0,i.JE)(`Bid from ${n.bidder||"unknown bidder"} was rejected: ${r}`,n),h.Ic(b.qY.BID_REJECTED,n),t.addBidRejected(n),e()}))}function T(){let n=this,r=t.getBidRequests();const o=d.$W.getConfig("auctionOptions");if(p.add(n),o&&!(0,i.Im)(o)){const e=o.secondaryBidders;e&&!r.every((t=>e.includes(t.bidderCode)))&&(r=r.filter((t=>!e.includes(t.bidderCode))))}u=r.every((e=>p.has(e))),n.bids.forEach((e=>{m[e.bidId]||(t.addNoBid(e),h.Ic(b.qY.NO_BID,e))})),u&&0===c&&e()}return{addBidResponse:function(){function e(e,t){$.call({dispatch:A},e,t,(()=>{let n=!1;return i=>{n||(w(e,t,i),n=!0)}})())}return e.reject=w,e}(),adapterDone:function(){j(y.U9.resolve()).finally((()=>T.call(this)))}}}(ce,this);m.Ay.callBids(V,e,n.addBidResponse,n.adapterDone,{request(e,n){u(R,n),u(t,e),k[e]||(k[e]={SRA:!0,origin:n}),t[e]>1&&(k[e].SRA=!1)},done(e){R[e]--,U[0]&&c(U[0])&&U.shift()}},H,ue,A),J.resolve()}};function c(e){let t=!0,n=d.$W.getConfig("maxRequestsPerOrigin")||S;return e.bidRequests.some((e=>{let i=1,r=void 0!==e.src&&e.src===b.RW.SRC?"s2s":e.bidderCode;return k[r]&&(!1===k[r].SRA&&(i=Math.min(e.bids.length,n)),R[k[r].origin]+i>n&&(t=!1)),!t})),t&&e.run(),t}function u(e,t){void 0===e[t]?e[t]=1:e[t]++}c(n)||((0,i.JE)("queueing auction due to limited endpoint capacity"),U.push(n))}return(0,T.lc)((()=>ie.refresh())),h.on(b.qY.SEAT_NON_BID,(e=>{var t;e.auctionId===F&&(t=e.seatnonbid,se=se.concat(t))})),{addBidReceived:function(e){ie.add(e)},addBidRejected:function(e){ee=ee.concat(e)},addNoBid:function(e){re=re.concat(e)},callBids:function(){Z=C,Q=Date.now();let e=_.measureTime("requestBids.makeRequests",(()=>m.Ay.makeBidRequests(V,Q,F,H,M,A,_)));(0,i.fH)(`Bids Requested for Auction with id: ${F}`,e),_.checkpoint("callBids"),e.length<1?((0,i.JE)("No valid bid requests returned for auction"),ce()):q.call({dispatch:le,context:this},e)},addWinningBid:function(e){oe=oe.concat(e),m.Ay.callBidWonBidder(e.adapterCode||e.bidder,e,t),e.deferBilling||m.Ay.triggerBilling(e)},setBidTargeting:function(e){m.Ay.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:()=>oe,getAuctionStart:()=>Q,getAuctionEnd:()=>Y,getTimeout:()=>H,getAuctionId:()=>F,getAuctionStatus:()=>Z,getAdUnits:()=>V,getAdUnitCodes:()=>G,getBidRequests:()=>ne,getBidsReceived:()=>ie.toArray(),getNoBids:()=>re,getNonBids:()=>se,getFPD:()=>A,getMetrics:()=>_,end:z.promise,requestsDone:J.promise,getProperties:ae}}const $=(0,u.u2)((0,u.A_)("async",(function(e,t,n){!function(e){const t=d.$W.getConfig("maxBid");return!t||!e.cpm||t>=Number(e.cpm)}(t)?n(b.Tf.PRICE_TOO_HIGH):this.dispatch.call(null,e,t)}),"addBidResponse")),j=(0,u.A_)("sync",(e=>e),"responsesReady"),q=(0,u.A_)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),x=(0,u.A_)("async",(function(e,t){t&&t()}),"bidsBackCallback");function N(e,t){!function(e){let t;const n=!0===p.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){let{index:n=g.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return{};const i=n.getBidRequest(t);var r={};const s=J(t.mediaType,e);Q(r,s,t,i),e&&p.u.getOwn(e,b.iD.ADSERVER_TARGETING)&&(Q(r,p.u.ownSettingsFor(e),t,i),t.sendStandardTargeting=p.u.get(e,"sendStandardTargeting"));t.native&&(r=Object.assign({},r,(0,o.Zj)(t)));return r}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},t)}(t),(0,v.BO)(t.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(t),h.Ic(b.qY.BID_RESPONSE,t)}const P=(0,u.A_)("async",(function(e,t,n,i){(0,s.X5)(e,t,n)}),"callPrebidCache");function W(e,t,n){if(e&&n){if(e===f.G_){const e=t?.[f.G_]?.context??"instream";if(n[`${f.G_}-${e}`])return n[`${f.G_}-${e}`]}return n[e]}}const V=function(e){let{index:t=g.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=W(e.mediaType,t.getMediaTypes(e),d.$W.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&n?"string"==typeof n?n:"custom":d.$W.getConfig("priceGranularity")},M=e=>t=>{const n=e||V(t);return n===b.UE.AUTO?t.pbAg:n===b.UE.DENSE?t.pbDg:n===b.UE.LOW?t.pbLg:n===b.UE.MEDIUM?t.pbMg:n===b.UE.HIGH?t.pbHg:n===b.UE.CUSTOM?t.pbCg:void 0},G=()=>e=>e.creativeId?e.creativeId:"",F=()=>e=>e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:"",H=()=>e=>e.meta&&(e.meta.networkId||e.meta.networkName)?e?.meta?.networkName||e?.meta?.networkId:"",L=()=>e=>{const t=e?.meta?.primaryCatId;return Array.isArray(t)?t[0]||"":t||""};function z(e,t){return{key:e,val:"function"==typeof t?function(e,n){return t(e,n)}:function(e){return e[t]}}}function J(e,t){const n=Object.assign({},p.u.settingsFor(null));if(n[b.iD.ADSERVER_TARGETING]||(n[b.iD.ADSERVER_TARGETING]=[z(b.xS.BIDDER,"bidderCode"),z(b.xS.AD_ID,"adId"),z(b.xS.PRICE_BUCKET,M()),z(b.xS.SIZE,"size"),z(b.xS.DEAL,"dealId"),z(b.xS.SOURCE,"source"),z(b.xS.FORMAT,"mediaType"),z(b.xS.ADOMAIN,F()),z(b.xS.ACAT,L()),z(b.xS.DSP,H()),z(b.xS.CRID,G())]),"video"===e){const e=n[b.iD.ADSERVER_TARGETING].slice();if(n[b.iD.ADSERVER_TARGETING]=e,[b.xS.UUID,b.xS.CACHE_ID].forEach((t=>{void 0===e.find((e=>e.key===t))&&e.push(z(t,"videoCacheKey"))})),d.$W.getConfig("cache.url")&&(!t||!1!==p.u.get(t,"sendStandardTargeting"))){const t=(0,i.Dl)(d.$W.getConfig("cache.url"));void 0===e.find((e=>e.key===b.xS.CACHE_HOST))&&e.push(z(b.xS.CACHE_HOST,(function(e){return e?.adserverTargeting?.[b.xS.CACHE_HOST]||t.hostname})))}}return n}function Q(e,t,n,r){var o=t[b.iD.ADSERVER_TARGETING];return n.size=n.getSize(),(o||[]).forEach((function(o){var s=o.key,a=o.val;if(e[s]&&(0,i.JE)("The key: "+s+" is being overwritten"),(0,i.fp)(a))try{a=a(n,r)}catch(e){(0,i.vV)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&s!==b.xS.DEAL&&s!==b.xS.ACAT&&s!==b.xS.DSP&&s!==b.xS.CRID||!(0,i.xQ)(a)&&null!=a?e[s]=a:(0,i.fH)("suppressing empty key '"+s+"' from adserver targeting")})),e}function K(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},7314:(e,t,n)=>{n.d(t,{n:()=>u});var i=n(1069),r=n(1657);function o(e){Object.assign(this,{getAuction(t){let{auctionId:n}=t;if(null!=n)return e().find((e=>e.getAuctionId()===n))},getAdUnit(t){let{adUnitId:n}=t;if(null!=n)return e().flatMap((e=>e.getAdUnits())).find((e=>e.adUnitId===n))},getMediaTypes(e){let{adUnitId:t,requestId:n}=e;if(null!=n){const e=this.getBidRequest({requestId:n});if(null!=e&&(null==t||e.adUnitId===t))return e.mediaTypes}else if(null!=t){const e=this.getAdUnit({adUnitId:t});if(null!=e)return e.mediaTypes}},getBidderRequest(t){let{requestId:n,bidderRequestId:i}=t;if(null!=n||null!=i){let t=e().flatMap((e=>e.getBidRequests()));return null!=i&&(t=t.filter((e=>e.bidderRequestId===i))),null==n?t[0]:t.find((e=>e.bids&&null!=e.bids.find((e=>e.bidId===n))))}},getBidRequest(t){let{requestId:n}=t;if(null!=n)return e().flatMap((e=>e.getBidRequests())).flatMap((e=>e.bids)).find((e=>e&&e.bidId===n))},getOrtb2(e){return this.getBidderRequest(e)?.ortb2||this.getAuction(e)?.getFPD()?.global?.ortb2}})}var s=n(8969),a=n(6894),d=n(6853),c=n(7863);const u=function(){const e=(0,d.H)({startTime:e=>e.end.then((()=>e.getAuctionEnd())),ttl:e=>null==(0,c.S9)()?null:e.end.then((()=>1e3*Math.max((0,c.S9)(),...e.getBidsReceived().map((e=>e.ttl)))))});(0,c.lc)((()=>e.refresh()));const t={onExpiry:e.onExpiry};function n(t){for(const n of e)if(n.getAuctionId()===t)return n}function u(){return e.toArray().flatMap((e=>e.getBidsReceived()))}return t.addWinningBid=function(e){const t=(0,a.BO)(e.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","adserver.pending"),t.timeBetween("requestBids","bidWon","adserver.e2e");const r=n(e.auctionId);r?r.addWinningBid(e):(0,i.JE)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:e=>e.getAuctionStatus()===r.UZ},getAdUnitCodes:{post:i.hj}}).forEach((n=>{let[i,{name:r=i,pre:o,post:s}]=n;const a=null==o?e=>e[r]():e=>o(e)?e[r]():[],d=null==s?e=>e:e=>e.filter(s);t[i]=()=>d(e.toArray().flatMap(a))})),t.getAllBidsForAdUnitCode=function(e){return u().filter((t=>t&&t.adUnitCode===e))},t.createAuction=function(t){const n=(0,r.mX)(t);return function(t){e.add(t)}(n),n},t.findBidByAdId=function(e){return u().find((t=>t.adId===e))},t.getStandardBidderAdServerTargeting=function(){return(0,r.HN)()[s.iD.ADSERVER_TARGETING]},t.setStatusForBids=function(e,i){let r=t.findBidByAdId(e);if(r&&(r.status=i),r&&i===s.tl.BID_TARGETING_SET){const e=n(r.auctionId);e&&e.setBidTargeting(r)}},t.getLastAuctionId=function(){const t=e.toArray();return t.length&&t[t.length-1].getAuctionId()},t.clearAllAuctions=function(){e.clear()},t.index=new o((()=>e.toArray())),t}()},7863:(e,t,n)=>{n.d(t,{S9:()=>u,cT:()=>c,lc:()=>l});var i=n(3272),r=n(1069);const o="minBidCacheTTL";let s=1,a=null;const d=[];function c(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:s)}function u(){return a}function l(e){d.push(e)}i.$W.getConfig("ttlBuffer",(e=>{"number"==typeof e.ttlBuffer?s=e.ttlBuffer:(0,r.vV)("Invalid value for ttlBuffer",e.ttlBuffer)})),i.$W.getConfig(o,(e=>{const t=a;a=e?.[o],a="number"==typeof a?a:null,t!==a&&d.forEach((e=>e(a)))}))},2693:(e,t,n)=>{n.d(t,{u:()=>a});var i=n(433),r=n(1069),o=n(7873),s=n(8969);const a=new class{constructor(e,t){this.getSettings=e,this.defaultScope=t}get(e,t){let n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}getOwn(e,t){return e=this.#e(e),(0,i.A)(this.getSettings(),`${e}.${t}`)}getScopes(){return Object.keys(this.getSettings()).filter((e=>e!==this.defaultScope))}settingsFor(e){return(0,r.D9)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}ownSettingsFor(e){return e=this.#e(e),this.getSettings()[e]||{}}#e(e){return null==e?this.defaultScope:e}}((()=>(0,o.m)().bidderSettings||{}),s.iD.BD_SETTING_STANDARD)},3597:(e,t,n)=>{n.d(t,{O:()=>o});var i=n(1069);function r(e){let{src:t="client",bidder:n="",bidId:r,transactionId:o,adUnitId:s,auctionId:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var d=t,c=e||0;Object.assign(this,{bidderCode:n,width:0,height:0,statusMessage:function(){switch(c){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}(),adId:(0,i.s0)(),requestId:r,transactionId:o,adUnitId:s,auctionId:a,mediaType:"banner",source:d}),this.getStatusCode=function(){return c},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,adUnitId:this.adUnitId,auctionId:this.auctionId}}}function o(e,t){return new r(e,t)}},3272:(e,t,n)=>{n.d(t,{$W:()=>p,Ov:()=>c});var i=n(6833),r=n(1069),o=n(433),s=n(8969);const a="TRUE"===(0,r.Ez)(s.M).toUpperCase(),d={},c="random",u={};u[c]=!0,u.fixed=!0;const l=c,f={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};function g(e){const t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?{priceGranularity:f.MEDIUM,customPriceBucket:{},mediaTypePriceGranularity:{},bidderSequence:l,auctionOptions:{}}:{};function n(e){return t[e]}function o(n,i){t.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0}),t[n]=i}const s={publisherDomain:{set(e){null!=e&&(0,r.JE)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),o("publisherDomain",e)}},priceGranularity:{set(e){d(e)&&("string"==typeof e?o("priceGranularity",a(e)?e:f.MEDIUM):(0,r.Qd)(e)&&(o("customPriceBucket",e),o("priceGranularity",f.CUSTOM),(0,r.OG)("Using custom price granularity")))}},customPriceBucket:{},mediaTypePriceGranularity:{set(e){null!=e&&o("mediaTypePriceGranularity",Object.keys(e).reduce(((t,i)=>(d(e[i])?"string"==typeof e?t[i]=a(e[i])?e[i]:n("priceGranularity"):(0,r.Qd)(e)&&(t[i]=e[i],(0,r.OG)(`Using custom price granularity for ${i}`)):(0,r.JE)(`Invalid price granularity for media type: ${i}`),t)),{}))}},bidderSequence:{set(e){u[e]?o("bidderSequence",e):(0,r.JE)(`Invalid order: ${e}. Bidder Sequence was not set.`)}},auctionOptions:{set(e){(function(e){if(!(0,r.Qd)(e))return(0,r.JE)("Auction Options must be an object"),!1;for(let t of Object.keys(e)){if("secondaryBidders"!==t&&"suppressStaleRender"!==t&&"suppressExpiredRender"!==t)return(0,r.JE)(`Auction Options given an incorrect param: ${t}`),!1;if("secondaryBidders"===t){if(!(0,r.cy)(e[t]))return(0,r.JE)(`Auction Options ${t} must be of type Array`),!1;if(!e[t].every(r.O8))return(0,r.JE)(`Auction Options ${t} must be only string`),!1}else if(("suppressStaleRender"===t||"suppressExpiredRender"===t)&&!(0,r.Lm)(e[t]))return(0,r.JE)(`Auction Options ${t} must be of type boolean`),!1}return!0})(e)&&o("auctionOptions",e)}}};return Object.defineProperties(e,Object.fromEntries(Object.entries(s).map((e=>{let[i,r]=e;return[i,Object.assign({get:n.bind(null,i),set:o.bind(null,i),enumerable:t.hasOwnProperty(i),configurable:!t.hasOwnProperty(i)},r)]})))),e;function a(e){return Object.keys(f).find((t=>e===f[t]))}function d(e){if(!e)return(0,r.vV)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)a(e)||(0,r.JE)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,r.Qd)(e)&&!(0,i.q)(e))return(0,r.vV)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}}const p=function(){let e,t,n,i=[],s=null;function c(){e={};let i=g({debug:a,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3,userSync:{topics:d}});t&&y(Object.keys(t).reduce(((e,n)=>(t[n]!==i[n]&&(e[n]=i[n]||{}),e)),{})),t=i,n={}}function u(){if(s&&n&&(0,r.Qd)(n[s])){const e=n[s],i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(const n of i){const i=t[n],s=e[n];o[n]=void 0===s?i:void 0===i?s:(0,r.Qd)(s)?(0,r.D9)({},i,s):s}return o}return{...t}}const[l,f]=[u,function(){const e=u();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map((e=>function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0];return t?(0,o.A)(e(),t):u()}return b(...arguments)})),[p,h]=[f,l].map((e=>function(){let t=e(...arguments);return t&&"object"==typeof t&&(t=(0,r.Go)(t)),t}));function m(n){if(!(0,r.Qd)(n))return void(0,r.vV)("setConfig options must be an object");let i=Object.keys(n),o={};i.forEach((i=>{let s=n[i];(0,r.Qd)(e[i])&&(0,r.Qd)(s)&&(s=Object.assign({},e[i],s));try{o[i]=t[i]=s}catch(e){(0,r.JE)(`Cannot set config for property ${i} : `,e)}})),y(o)}function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t;if("string"!=typeof e&&(o=e,e="*",n=t||{}),"function"!=typeof o)return void(0,r.vV)("listener must be a function");const s={topic:e,callback:o};return i.push(s),n.init&&o("*"===e?f():{[e]:f(e)}),function(){i.splice(i.indexOf(s),1)}}function y(e){const t=Object.keys(e);i.filter((e=>t.includes(e.topic))).forEach((t=>{t.callback({[t.topic]:e[t.topic]})})),i.filter((e=>"*"===e.topic)).forEach((t=>t.callback(e)))}function v(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{!function(e){if(!(0,r.Qd)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,r.Qd)(e.config))throw"setBidderConfig bidder options must contain a config object"}(e),e.bidders.forEach((i=>{n[i]||(n[i]=g({},!1)),Object.keys(e.config).forEach((o=>{let s=e.config[o];const a=n[i][o];if((0,r.Qd)(s)&&(null==a||(0,r.Qd)(a))){const e=t?r.D9:Object.assign;n[i][o]=e({},a||{},s)}else n[i][o]=s}))}))}catch(e){(0,r.vV)(e)}}function E(e,t){s=e;try{return t()}finally{A()}}function A(){s=null}return c(),{getCurrentBidder:function(){return s},resetBidder:A,getConfig:f,getAnyConfig:l,readConfig:p,readAnyConfig:h,setConfig:m,mergeConfig:function(e){if(!(0,r.Qd)(e))return void(0,r.vV)("mergeConfig input must be an object");const t=(0,r.D9)(u(),e);return m({...t}),t},setDefaults:function(n){(0,r.Qd)(e)?(Object.assign(e,n),Object.assign(t,n)):(0,r.vV)("defaults must be an object")},resetConfig:c,runWithBidder:E,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return E(e,t.bind(this,...i))}(0,r.JE)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:v,getBidderConfig:function(){return n},mergeBidderConfig:function(e){return v(e,!0)}}}()},6916:(e,t,n)=>{n.d(t,{B1:()=>s,SL:()=>p,ad:()=>u,mW:()=>d,o2:()=>f,t6:()=>c});var i=n(1069),r=n(5555),o=n(3272);const s=Object.freeze({});class a{#t;#n;#i;#r;#o=!0;#s;generatedTime;hashFields;constructor(){this.reset()}#a(e){this.#r=!0,this.#n=e,this.#i.resolve(e)}reset(){this.#i=(0,r.v6)(),this.#t=!1,this.#n=null,this.#r=!1,this.generatedTime=null}enable(){this.#t=!0}get enabled(){return this.#t}get ready(){return this.#r}get promise(){return this.#r?r.U9.resolve(this.#n):(this.#t||this.#a(null),this.#i.promise)}setConsentData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.vE)();this.generatedTime=t,this.#o=!0,this.#a(e)}getConsentData(){return this.#n}get hash(){return this.#o&&(this.#s=(0,i.PB)(JSON.stringify(this.#n&&this.hashFields?this.hashFields.map((e=>this.#n[e])):this.#n)),this.#o=!1),this.#s}}const d=new class extends a{hashFields=["gdprApplies","consentString"];getConsentMeta(){const e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,i.O8)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}},c=new class extends a{getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},u=new class extends a{hashFields=["applicableSections","gppString"];getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},l=(()=>{function e(){return!!o.$W.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset(){},get promise(){return r.U9.resolve(e())},get hash(){return e()?"1":"0"}}})(),f=function(){const e={},t={},n={};return{register(i,r,o){o&&((e[r]=e[r]||{})[i]=o,t.hasOwnProperty(r)?t[r]!==o&&(t[r]=n):t[r]=o)},get(i){const r={modules:e[i]||{}};return t.hasOwnProperty(i)&&t[i]!==n&&(r.gvlid=t[i]),r}}}(),g={gdpr:d,usp:c,gpp:u,coppa:l};const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;return e=Object.entries(e),Object.assign({get promise(){return r.U9.all(e.map((e=>{let[t,n]=e;return n.promise.then((e=>[t,e]))}))).then((e=>Object.fromEntries(e)))},get hash(){return(0,i.PB)(e.map((e=>{let[t,n]=e;return n.hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((t=>{return[t,(n=t,function(){return Object.fromEntries(e.map((e=>{let[t,i]=e;return[t,i[n]()]})))})];var n}))))}()},8969:(e,t,n)=>{n.d(t,{IY:()=>A,M:()=>r,RW:()=>g,Tf:()=>h,UE:()=>c,XQ:()=>o,Zh:()=>l,_B:()=>v,as:()=>a,cA:()=>d,h0:()=>m,iD:()=>i,jO:()=>b,nl:()=>E,oA:()=>y,qY:()=>s,tl:()=>p,x5:()=>f,xS:()=>u});const i={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"},r="pbjs_debug",o={GOOD:1},s={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",BEFORE_PBS_HTTP:"beforePBSHttp",BROWSI_INIT:"browsiInit",BROWSI_DATA:"browsiData"},a={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},d={bidWon:"adUnitCode"},c={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},u={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"},h={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"},b={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},y={ICON:1,MAIN:3},v=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],E={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"},A="__pb_locator__"},6833:(e,t,n)=>{n.d(t,{j:()=>l,q:()=>g});var i=n(1069),r=n(3272);const o=2,s={buckets:[{max:5,increment:.5}]},a={buckets:[{max:20,increment:.1}]},d={buckets:[{max:20,increment:.01}]},c={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},u={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=""),{low:""===i?"":f(e,s,n),med:""===i?"":f(e,a,n),high:""===i?"":f(e,d,n),auto:""===i?"":f(e,u,n),dense:""===i?"":f(e,c,n),custom:""===i?"":f(e,t,n)}}function f(e,t,n){let s="";if(!g(t))return s;const a=t.buckets.reduce(((e,t)=>e.max>t.max?e:t),{max:0});let d=0,c=t.buckets.find((t=>{if(e>a.max*n){let e=t.precision;void 0===e&&(e=o),s=(t.max*n).toFixed(e)}else{if(e<=t.max*n&&e>=d*n)return t.min=d,t;d=t.max}}));return c&&(s=function(e,t,n){const s=void 0!==t.precision?t.precision:o,a=t.increment*n,d=t.min*n;let c=Math.floor,u=r.$W.getConfig("cpmRoundingFunction");"function"==typeof u&&(c=u);let l,f,g=Math.pow(10,s+2),p=(e*g-d*g)/(a*g);try{l=c(p)*a+d}catch(e){f=!0}(f||"number"!=typeof l)&&((0,i.JE)("Invalid rounding function passed in config"),l=Math.floor(p)*a+d);return l=Number(l.toFixed(10)),l.toFixed(s)}(e,c,n)),s}function g(e){if((0,i.Im)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;let t=!0;return e.buckets.forEach((e=>{e.max&&e.increment||(t=!1)})),t}},6031:(e,t,n)=>{n.d(t,{HH:()=>c,kj:()=>d,xh:()=>a});var i=n(5555),r=n(1069),o=n(4595),s=n(9214);const a=3,d=(0,s.A_)("sync",(function(e){return o.G})),c=function(){const e={};return function(t){const n=d(t);return e.hasOwnProperty(n)||(e[n]=new i.U9((e=>{const t=(0,r.CA)();t.srcdoc=`<script>${n}<\/script>`,t.onload=()=>e(t.contentWindow.render),document.body.appendChild(t)}))),e[n]}}()},3005:(e,t,n)=>{n.d(t,{$T:()=>a,Ni:()=>i,OA:()=>o,RO:()=>s,fR:()=>r});const i=1,r=2,o=1,s=500;function a(e){return(e??[]).reduce(((e,t)=>{let{event:n,method:i,url:r}=t;const o=e[n]=e[n]??{};return(o[i]=o[i]??[]).push(r),e}),{})}},5023:(e,t,n)=>{n.d(t,{AU:()=>m,Ic:()=>v,kQ:()=>y,on:()=>h});var i=n(1069),r=n(8969),o=n(6853),s=n(3272);const a="eventHistoryTTL";let d=null;const c=(0,o.H)({monotonic:!0,ttl:()=>d});s.$W.getConfig(a,(e=>{const t=d;e=e?.[a],d="number"==typeof e?1e3*e:null,t!==d&&c.refresh()}));let u=Array.prototype.slice,l=Array.prototype.push,f=Object.values(r.qY);const g=r.cA,p=function(){let e={},t={};function n(e){return f.includes(e)}return t.has=n,t.on=function(t,r,o){if(n(t)){let n=e[t]||{que:[]};o?(n[o]=n[o]||{que:[]},n[o].que.push(r)):n.que.push(r),e[t]=n}else i.vV("Wrong event name : "+t+" Valid event names :"+f)},t.emit=function(t){!function(t,n){i.OG("Emitting event for: "+t);let r=n[0]||{},o=r[g[t]],s=e[t]||{que:[]};var a=Object.keys(s);let d=[];c.add({eventType:t,args:r,id:o,elapsedTime:i.V()}),o&&a.includes(o)&&l.apply(d,s[o].que),l.apply(d,s.que),(d||[]).forEach((function(e){if(e)try{e.apply(null,n)}catch(e){i.vV("Error executing handler:","events.js",e,t)}}))}(t,u.call(arguments,1))},t.off=function(t,n,r){let o=e[t];i.Im(o)||i.Im(o.que)&&i.Im(o[r])||r&&(i.Im(o[r])||i.Im(o[r].que))||(r?(o[r].que||[]).forEach((function(e){let t=o[r].que;e===n&&t.splice(t.indexOf(e),1)})):(o.que||[]).forEach((function(e){let t=o.que;e===n&&t.splice(t.indexOf(e),1)})),e[t]=o)},t.get=function(){return e},t.addEvents=function(e){f=f.concat(e)},t.getEvents=function(){return c.toArray().map((e=>Object.assign({},e)))},t}();i.cD(p.emit.bind(p));const{on:h,off:m,get:b,getEvents:y,emit:v,addEvents:E,has:A}=p},687:(e,t,n)=>{n.d(t,{w:()=>T});var i=n(9214),r=n(7934),o=n(5973),s=n(1069),a=n(3172),d=n(3272),c=n(5555);const u=["architecture","bitness","model","platformVersion","fullVersionList"],l=["brands","mobile","platform"],f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator?.userAgentData;const t=e&&l.some((t=>void 0!==e[t]))?Object.freeze(p(1,e)):null;return function(){return t}}(),g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator?.userAgentData;const t={},n=new WeakMap;return function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;if(!n.has(i)){const e=Array.from(i);e.sort(),n.set(i,e.join("|"))}const r=n.get(i);if(!t.hasOwnProperty(r))try{t[r]=e.getHighEntropyValues(i).then((e=>(0,s.Im)(e)?null:Object.freeze(p(2,e)))).catch((()=>null))}catch(e){t[r]=c.U9.resolve(null)}return t[r]}}();function p(e,t){function n(e,t){const n={brand:e};return(0,s.O8)(t)&&!(0,s.xQ)(t)&&(n.version=t.split(".")),n}const i={source:e};return t.platform&&(i.platform=n(t.platform,t.platformVersion)),(t.fullVersionList||t.brands)&&(i.browsers=(t.fullVersionList||t.brands).map((e=>{let{brand:t,version:i}=e;return n(t,i)}))),void 0!==t.mobile&&(i.mobile=t.mobile?1:0),["model","bitness","architecture"].forEach((e=>{const n=t[e];(0,s.O8)(n)&&(i[e]=n)})),i}var h=n(3858),m=n(5139),b=n(3441),y=n(6811),v=n(5569),E=n(8944);const A={getRefererInfo:r.EN,findRootDomain:o.S,getWindowTop:s.mb,getWindowSelf:s.l4,getHighEntropySUA:g,getLowEntropySUA:f,getDocument:s.YE},w=(0,h.i8)("FPD"),T=(0,i.A_)("sync",(e=>{const t=[e,C().catch((()=>null)),c.U9.resolve("cookieDeprecationLabel"in navigator&&(0,m.io)(y.Ue,(0,b.s)(v.tp,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch((()=>null))];return c.U9.all(t).then((e=>{let[t,n,i]=e;const r=A.getRefererInfo();if(Object.entries(O).forEach((e=>{let[n,i]=e;const o=i(t,r);o&&Object.keys(o).length>0&&(t[n]=(0,s.D9)({},o,t[n]))})),n&&(0,a.J)(t,"device.sua",Object.assign({},n,t.device.sua)),i){const e={cdep:i};(0,a.J)(t,"device.ext",Object.assign({},e,t.device.ext))}const o=A.getDocument().documentElement.lang;o&&(0,a.J)(t,"site.ext.data.documentLang",o),t=w(t);for(let e of h.Dy)if((0,h.O$)(t,e)){t[e]=(0,s.D9)({},S(t,r),t[e]);break}return t}))}));function I(e){try{return e(A.getWindowTop())}catch(t){return e(A.getWindowSelf())}}function C(){const e=d.$W.getConfig("firstPartyData.uaHints");return Array.isArray(e)&&0!==e.length?A.getHighEntropySUA(e):c.U9.resolve(A.getLowEntropySUA())}function B(e){return(0,s.SH)(e,Object.keys(e))}const O={site(e,t){if(!h.Dy.filter((e=>"site"!==e)).some(h.O$.bind(null,e)))return B({page:t.page,ref:t.ref})},device:()=>I((e=>{const t=(0,s.Ot)().screen.width,n=(0,s.Ot)().screen.height,{width:i,height:r}=(0,E.M)(),o={w:t,h:n,dnt:(0,s.l9)()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift(),ext:{vpw:i,vph:r}};return e.navigator?.webdriver&&(0,a.J)(o,"ext.webdriver",!0),o})),regs(){const e={};I((e=>e.navigator.globalPrivacyControl))&&(0,a.J)(e,"ext.gpc","1");const t=d.$W.getConfig("coppa");return"boolean"==typeof t&&(e.coppa=t?1:0),e}};function S(e,t){const n=(0,r.gR)(t.page,{noLeadingWww:!0}),i=I((e=>e.document.querySelector("meta[name='keywords']")))?.content?.replace?.(/\s/g,"");return B({domain:n,keywords:i,publisher:B({domain:A.findRootDomain(n)})})}},3858:(e,t,n)=>{n.d(t,{Dy:()=>r,O$:()=>s,i8:()=>o});var i=n(1069);const r=["dooh","app","site"];function o(e){return function(t){return r.reduce(((n,r)=>(s(t,r)&&(null!=n?((0,i.JE)(`${e} specifies both '${n}' and '${r}'; dropping the latter.`),delete t[r]):n=r),n)),null),t}}function s(e,t){return null!=e[t]&&Object.keys(e[t]).length>0}},5973:(e,t,n)=>{n.d(t,{S:()=>o});var i=n(1069);const r=(0,n(2938).CK)("fpdEnrichment"),o=(0,i.Bj)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!r.cookiesAreEnabled())return e;const t=e.split(".");if(2===t.length)return e;let n,o,s=-2;const a=`_rdc${Date.now()}`,d="writeable";do{n=t.slice(s).join(".");let e=new Date((0,i.vE)()+1e4).toUTCString();r.setCookie(a,d,e,"Lax",n,void 0);r.getCookie(a,void 0)===d?(o=!1,r.setCookie(a,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(s+=-1,o=Math.abs(s)<=t.length)}while(o);return n}))},9214:(e,t,n)=>{n.d(t,{A_:()=>s,Gc:()=>d,Y6:()=>p,Yn:()=>c,bz:()=>g,pT:()=>u,u2:()=>h,xG:()=>f});var i=n(8128),r=n.n(i),o=n(5555);let s=r()({ready:r().SYNC|r().ASYNC|r().QUEUE});const a=(0,o.v6)();s.ready=(()=>{const e=s.ready;return function(){try{return e.apply(s,arguments)}finally{a.resolve()}}})();const d=a.promise,c=s.get;function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;0===e.getHooks({hook:t}).length&&e.before(t,n)}const l={};function f(e,t){let{postInstallAllowed:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s("async",(function(i){i.forEach((e=>t(...e))),n&&(l[e]=t)}),e)([])}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];const r=l[e];if(r)return r(...n);c(e).before(((e,t)=>{t.push(n),e(t)}))}function p(e,t){return Object.defineProperties(t,Object.fromEntries(["before","after","getHooks","removeAll"].map((t=>[t,{get:()=>e[t]}])))),t}function h(e){return p(e,(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.push((function(){})),e.apply(this,n)}))}},1371:(e,t,n)=>{n.d(t,{D4:()=>o,GE:()=>a,G_:()=>r,LM:()=>s,s6:()=>i});const i="native",r="video",o="banner",s="adpod",a=[i,r,o]},2449:(e,t,n)=>{n.d(t,{Bm:()=>v,IX:()=>B,Nh:()=>l,Xj:()=>D,Zj:()=>w,gs:()=>A,l6:()=>h,mT:()=>u,nk:()=>b,rn:()=>R,vO:()=>E,yl:()=>O});var i=n(1069),r=n(7314),o=n(8969),s=n(1371),a=n(9075),d=n(6031),c=n(3005);const u=[],l=Object.keys(o.x5).map((e=>o.x5[e])),f={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}}},g=j(o.h0),p=j(o.jO);function h(e){return e.native&&"object"==typeof e.native}function m(e){if(e&&e.type&&function(e){if(!e||!Object.keys(f).includes(e))return(0,i.vV)(`${e} nativeParam is not supported`),!1;return!0}(e.type)&&(e=f[e.type]),!e||!e.ortb||y(e.ortb))return e}function b(e){e.forEach((e=>{const t=e.nativeParams||e?.mediaTypes?.native;t&&(e.nativeParams=m(t)),e.nativeParams&&(e.nativeOrtbRequest=e.nativeParams.ortb||R(e.nativeParams))}))}function y(e){const t=e.assets;if(!Array.isArray(t)||0===t.length)return(0,i.vV)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",t),!1;const n=t.map((e=>e.id));return t.length!==new Set(n).size||n.some((e=>e!==parseInt(e,10)))?((0,i.vV)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):e.hasOwnProperty("eventtrackers")&&!Array.isArray(e.eventtrackers)?((0,i.vV)("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):t.every((e=>function(e){if(!(0,i.Qd)(e))return(0,i.vV)("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!(0,i.Et)(e.img.w)&&!(0,i.Et)(e.img.wmin))return(0,i.vV)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,i.Et)(e.img.h)&&!(0,i.Et)(e.img.hmin))return(0,i.vV)("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!(0,i.Et)(e.title.len))return(0,i.vV)("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!(0,i.Et)(e.data.type))return(0,i.vV)("for data asset 'type' property must be a number"),!1}else if(e.video&&!(Array.isArray(e.video.mimes)&&Array.isArray(e.video.protocols)&&(0,i.Et)(e.video.minduration)&&(0,i.Et)(e.video.maxduration)))return(0,i.vV)("video asset is not properly configured"),!1;return!0}(e)))}function v(e){let{index:t=r.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.getAdUnit(e);if(!n)return!1;let o=n.nativeOrtbRequest;return function(e,t){if(!e?.link?.url)return(0,i.vV)("native response doesn't have 'link' property. Ortb response: ",e),!1;let n=t.assets.filter((e=>1===e.required)).map((e=>e.id)),r=e.assets.map((e=>e.id));const o=n.every((e=>r.includes(e)));o||(0,i.vV)(`didn't receive a bid with all required assets. Required ids: ${n}, but received ids in response: ${r}`);return o}(e.native?.ortb||$(e.native,o),o)}function E(e,t){const n=t.native.ortb||_(t.native);return"click"===e.action?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{fetchURL:n=i.z$}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){const i=(e.assets||[]).filter((e=>e.link)).reduce(((e,t)=>(e[t.id]=t.link,e)),{}),r=e.link?.clicktrackers||[];let o=i[t],s=r;o&&(s=o.clicktrackers||[]),s.forEach((e=>n(e)))}else(e.link?.clicktrackers||[]).forEach((e=>n(e)))}(n,e?.assetId):function(e){let{runMarkup:t=(e=>(0,i.ro)(e)),fetchURL:n=i.z$}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{[c.Ni]:r=[],[c.fR]:o=[]}=(0,c.$T)(e.eventtrackers||[])[c.OA]||{};e.imptrackers&&(r=r.concat(e.imptrackers));r.forEach((e=>n(e))),o=o.map((e=>`<script async src="${e}"><\/script>`)),e.jstracker&&(o=o.concat([e.jstracker]));o.length&&t(o.join("\n"))}(n),e.action}function A(e,t){const n=t?.nativeOrtbRequest,i=e.native?.ortb;if(n&&i){const t=function(e,t){const n={},i=t?.assets||[];n.clickUrl=e.link?.url,n.privacyLink=e.privacy;for(const t of e?.assets||[]){const e=i.find((e=>t.id===e.id));t.title?n.title=t.title.text:t.img?n[e?.img?.type===o.oA.MAIN?"image":"icon"]={url:t.img.url,width:t.img.w,height:t.img.h}:t.data&&(n[g[p[e?.data?.type]]]=t.data.value)}n.impressionTrackers=[];let r=[];e.imptrackers&&n.impressionTrackers.push(...e.imptrackers);for(const t of e?.eventtrackers||[])t.event===c.OA&&t.method===c.Ni&&n.impressionTrackers.push(t.url),t.event===c.OA&&t.method===c.fR&&r.push(t.url);r=r.map((e=>`<script async src="${e}"><\/script>`)),e?.jstracker&&r.push(e.jstracker);r.length&&(n.javascriptTrackers=r.join("\n"));return n}(i,n);Object.assign(e.native,t)}["rendererUrl","adTemplate"].forEach((n=>{const i=t?.nativeParams?.[n];i&&(e.native[n]=S(i))}))}function w(e){let{index:t=r.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};const i=t.getAdUnit(e),s=null==i?.nativeParams?.ortb&&!1!==i?.nativeParams?.sendTargetingKeys,a=function(e){const t={};e?.nativeParams?.ext&&Object.keys(e.nativeParams.ext).forEach((e=>{t[e]=`hb_native_${e}`}));return{...o.x5,...t}}(i),d={...e.native,...e.native.ext};return delete d.ext,Object.keys(d).forEach((t=>{const r=a[t];let o=S(e.native[t])||S(e?.native?.ext?.[t]);if("adTemplate"===t||!r||!o)return;let d=i?.nativeParams?.[t]?.sendId;if("boolean"!=typeof d&&(d=i?.nativeParams?.ext?.[t]?.sendId),d){o=`${r}:${e.adId}`}let c=i?.nativeParams?.[t]?.sendTargetingKeys;"boolean"!=typeof c&&(c=i?.nativeParams?.ext?.[t]?.sendTargetingKeys);("boolean"==typeof c?c:s)&&(n[r]=o)})),n}function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[];return Object.entries(e).filter((e=>{let[i,r]=e;return r&&(!1===n&&"ext"===i||null==t||t.includes(i))})).forEach((e=>{let[r,s]=e;!1===n&&"ext"===r?i.push(...T(s,t,!0)):(n||o.x5.hasOwnProperty(r))&&i.push({key:r,value:S(s)})})),i}function I(e,t,n){let{index:s=r.n.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c={message:"assetResponse",adId:e.adId};let u=(0,a.vd)(t).native;return u?(c.native=Object.assign({},u),c.renderer=(0,d.kj)(t),c.rendererVersion=d.xh,null!=n&&(u.assets=u.assets.filter((e=>{let{key:t}=e;return n.includes(t)})))):u=function(e,t,n){const r={...(0,i.SH)(e.native,["rendererUrl","adTemplate"]),assets:T(e.native,n),nativeKeys:o.x5};return e.native.ortb?r.ortb=e.native.ortb:t.mediaTypes?.native?.ortb&&(r.ortb=$(e.native,t.nativeOrtbRequest)),r}(t,s.getAdUnit(t),n),Object.assign(c,u)}const C=Object.fromEntries(Object.entries(o.x5).map((e=>{let[t,n]=e;return[n,t]})));function B(e,t){const n=e.assets.map((e=>C[e]));return I(e,t,n)}function O(e,t){return I(e,t,null)}function S(e){return e?.url||e}function R(e){if(!e&&!(0,i.Qd)(e))return void(0,i.vV)("Native assets object is empty or not an object: ",e);const t={ver:"1.2",assets:[]};for(let n in e){if(o._B.includes(n))continue;if(!o.x5.hasOwnProperty(n)){(0,i.vV)(`Unrecognized native asset code: ${n}. Asset will be ignored.`);continue}if("privacyLink"===n){t.privacy=1;continue}const r=e[n];let s=0;r.required&&(0,i.Lm)(r.required)&&(s=Number(r.required));const a={id:t.assets.length,required:s};if(n in o.h0)a.data={type:o.jO[o.h0[n]]},r.len&&(a.data.len=r.len);else if("icon"===n||"image"===n){if(a.img={type:"icon"===n?o.oA.ICON:o.oA.MAIN},r.aspect_ratios)if((0,i.cy)(r.aspect_ratios))if(r.aspect_ratios.length){const{min_width:e,min_height:t}=r.aspect_ratios[0];(0,i.Fq)(e)&&(0,i.Fq)(t)?(a.img.wmin=e,a.img.hmin=t):(0,i.vV)("image.aspect_ratios min_width or min_height are invalid: ",e,t);const n=r.aspect_ratios.filter((e=>e.ratio_width&&e.ratio_height)).map((e=>`${e.ratio_width}:${e.ratio_height}`));n.length>0&&(a.img.ext={aspectratios:n})}else(0,i.vV)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,i.vV)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,i.Fq)(r.sizes[0])&&(0,i.Fq)(r.sizes[1])?(a.img.w=r.sizes[0],a.img.h=r.sizes[1],delete a.img.hmin,delete a.img.wmin):(0,i.vV)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===n?a.title={len:r.len||140}:"ext"===n&&(a.ext=r,delete a.required);t.assets.push(a)}return t}function k(e,t){for(;e&&t&&e!==t;)e>t?e-=t:t-=e;return e||t}function U(e){if(!y(e))return;const t={};for(const n of e.assets){if(n.title){const e={required:!!n.required&&Boolean(n.required),len:n.title.len};t.title=e}else if(n.img){const e={required:!!n.required&&Boolean(n.required)};if(n.img.w&&n.img.h)e.sizes=[n.img.w,n.img.h];else if(n.img.wmin&&n.img.hmin){const t=k(n.img.wmin,n.img.hmin);e.aspect_ratios=[{min_width:n.img.wmin,min_height:n.img.hmin,ratio_width:n.img.wmin/t,ratio_height:n.img.hmin/t}]}n.img.type===o.oA.MAIN?t.image=e:t.icon=e}else if(n.data){let e=Object.keys(o.jO).find((e=>o.jO[e]===n.data.type)),i=Object.keys(o.h0).find((t=>o.h0[t]===e));t[i]={required:!!n.required&&Boolean(n.required)},n.data.len&&(t[i].len=n.data.len)}e.privacy&&(t.privacyLink={required:!1})}return t}function D(e){{if(!e||!(0,i.cy)(e))return e;if(!e.some((e=>(e?.mediaTypes||{})[s.s6]?.ortb)))return e;let t=(0,i.Go)(e);for(const e of t)e.mediaTypes&&e.mediaTypes[s.s6]&&e.mediaTypes[s.s6].ortb&&(e.mediaTypes[s.s6]=Object.assign((0,i.Up)(e.mediaTypes[s.s6],o._B),U(e.mediaTypes[s.s6].ortb)),e.nativeParams=m(e.mediaTypes[s.s6]));return t}}function _(e){const t={link:{},eventtrackers:[]};return Object.entries(e).forEach((e=>{let[n,i]=e;switch(n){case"clickUrl":t.link.url=i;break;case"clickTrackers":t.link.clicktrackers=Array.isArray(i)?i:[i];break;case"impressionTrackers":(Array.isArray(i)?i:[i]).forEach((e=>{t.eventtrackers.push({event:c.OA,method:c.Ni,url:e})}));break;case"javascriptTrackers":t.jstracker=Array.isArray(i)?i.join(""):i;break;case"privacyLink":t.privacy=i}})),t}function $(e,t){const n={..._(e),assets:[]};function r(e,r){let o=t.assets.find(e);null!=o&&(o=(0,i.Go)(o),r(o),n.assets.push(o))}return Object.keys(e).filter((t=>!!e[t])).forEach((t=>{const n=S(e[t]);switch(t){case"title":r((e=>null!=e.title),(e=>{e.title={text:n}}));break;case"image":case"icon":const e="image"===t?o.oA.MAIN:o.oA.ICON;r((t=>null!=t.img&&t.img.type===e),(e=>{e.img={url:n}}));break;default:t in o.h0&&r((e=>null!=e.data&&e.data.type===o.jO[o.h0[t]]),(e=>{e.data={value:n}}))}})),n}function j(e){var t={};for(var n in e)t[e[n]]=n;return t}},1e3:(e,t,n)=>{n.d(t,{Cf:()=>a,S3:()=>r,Tb:()=>o,WR:()=>s,e4:()=>c,pS:()=>l,qN:()=>d,yB:()=>f,zt:()=>i});const i=["request","imp","bidResponse","response"],[r,o,s,a]=i,[d,c]=["default","pbs"],u=new Set(i);const{registerOrtbProcessor:l,getProcessors:f}=function(){const e={};return{registerOrtbProcessor(t){let{type:n,name:r,fn:o,priority:s=0,dialects:a=[d]}=t;if(!u.has(n))throw new Error(`ORTB processor type must be one of: ${i.join(", ")}`);a.forEach((t=>{e.hasOwnProperty(t)||(e[t]={}),e[t].hasOwnProperty(n)||(e[t][n]={}),e[t][n][r]={priority:s,fn:o}}))},getProcessors:t=>e[t]||{}}}()},8934:(e,t,n)=>{n.d(t,{Z:()=>re,gH:()=>se});var i=n(7873),r=n(1069),o=n(433),s=n(3172),a=n(2449),d=n(8969),c=n(9075),u=n(6031);const{REQUEST:l,RESPONSE:f,NATIVE:g,EVENT:p}=d.nl,h={[l]:function(e,t,n){(0,c.bw)({renderFn(t){e(Object.assign({message:f,renderer:(0,u.kj)(n),rendererVersion:u.xh},t))},resizeFn:b(t.adId,n),options:t.options,adId:t.adId,bidResponse:n})},[p]:function(e,t,n){if(null==n)return void(0,r.vV)(`Cannot find ad '${t.adId}' for x-origin event request`);if(n.status!==d.tl.RENDERED)return void(0,r.JE)(`Received x-origin event request without corresponding render request for ad '${n.adId}'`);return(0,c.Uc)(t,n)}};function m(){window.addEventListener("message",(function(e){!function(e){var t=e.message?"message":"data",n={};try{n=JSON.parse(e[t])}catch(e){return}if(n&&n.adId&&n.message&&h.hasOwnProperty(n.message))(0,c.$A)(n.adId,n.message===d.nl.REQUEST).then((t=>{var i,o;h[n.message]((i=n.adId,o=function(e){return null==e.origin&&0===e.ports.length?function(){const e="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw(0,r.vV)(e),new Error(e)}:e.ports.length>0?function(t){e.ports[0].postMessage(JSON.stringify(t))}:function(t){e.source.postMessage(JSON.stringify(t),e.origin)}}(e),function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o(Object.assign({},e,{adId:i}),...n)}),n,t)}))}(e)}),!1)}function b(e,t){return function(n,i){!function(e){let{instl:t,adId:n,adUnitCode:i,width:o,height:s}=e;if(t)return;function a(e){return e?e+"px":"100%"}function d(e){let t=c(n,i),r=document.getElementById(t);return r&&r.querySelector(e)}function c(e,t){return(0,r.II)()?u(e):(0,r.t1)()?l(t):t}function u(e){const t=window.googletag.pubads().getSlots().find((t=>t.getTargetingKeys().find((n=>t.getTargeting(n).includes(e)))));return t?t.getSlotElementId():null}function l(e){let t=window.apntag.getTag(e);return t&&t.targetId}["div","iframe"].forEach((e=>{let t=d(e+':not([style*="display: none"])');if(t){let e=t.style;e.width=a(o),e.height=a(s)}else(0,r.vV)(`Unable to locate matching page element for adUnitCode ${i}.  Can't resize it to ad's dimensions.  Please review setup.`)}))}({...t,width:n,height:i,adId:e})}}Object.assign(h,{[g]:function(e,t,n){if(null==n)return void(0,r.vV)(`Cannot find ad for x-origin event request: '${t.adId}'`);switch(t.action){case"assetRequest":(0,c.Hh)(n,(()=>e((0,a.IX)(t,n))));break;case"allAssetRequest":(0,c.Hh)(n,(()=>e((0,a.yl)(t,n))));break;default:(0,c.vW)(t,n,{resizeFn:b(t.adId,n)}),(0,c.Pk)(n)}}});var y=n(8230),v=n(3272),E=n(7314),A=n(7779),w=n(9214),T=n(3597),I=n(1580),C=n(5555),B=n(5569);const O="__pbjs_debugging__";function S(){return(0,i.m)().installedModules.includes("debugging")}function R(e){return new C.U9((t=>{(0,I.R)(e,B.tp,"debugging",t)}))}function k(){let{alreadyInstalled:e=S,script:t=R}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null;return function(){return null==n&&(n=new C.U9(((n,o)=>{setTimeout((()=>{if(e())n();else{const e="https://cdn.jsdelivr.net/npm/prebid.js@9.50.0/dist/debugging-standalone.js";(0,r.OG)(`Debugging module not installed, loading it from "${e}"...`),(0,i.m)()._installDebugging=!0,t(e).then((()=>{(0,i.m)()._installDebugging({DEBUG_KEY:O,hook:w.A_,config:v.$W,createBid:T.O,logger:(0,r.h0)("DEBUG:")})})).then(n,o)}}))}))),n}}const U=function(){let{load:e=k(),hook:t=(0,w.Yn)("requestBids")}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null,i=!1;function r(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return(n||C.U9.resolve()).then((()=>e.apply(this,i)))}function o(){t.getHooks({hook:r}).remove(),i=!1}return{enable:function(){i||(n=e(),t.before(r,99),i=!0)},disable:o,reset:function(){n=null,o()}}}();U.reset;v.$W.getConfig("debugging",(function(e){let{debugging:t}=e;t?.enabled?U.enable():U.disable()}));var D=n(2938),_=n(1445),$=n(5023),j=n(6894),q=n(687),x=n(6916),N=n(2713),P=n(3895);const W=new Map([["format",e=>Array.isArray(e)&&e.length>0&&e.every((e=>"object"==typeof e))],["w",r.Fq],["h",r.Fq],["btype",r.Uu],["battr",r.Uu],["pos",r.Fq],["mimes",e=>Array.isArray(e)&&e.length>0&&e.every((e=>"string"==typeof e))],["topframe",e=>[1,0].includes(e)],["expdir",r.Uu],["api",r.Uu],["id",r.O8],["vcm",e=>[1,0].includes(e)]]);var V=n(1371);function M(e,t){return function(){if(document.prerendering&&e()){const e=this,n=Array.from(arguments);return new Promise((i=>{document.addEventListener("prerenderingchange",(()=>{(0,r.fH)("Auctions were suspended while page was prerendering"),i(t.apply(e,n))}),{once:!0})}))}return Promise.resolve(t.apply(this,arguments))}}var G=n(7377);const F=(0,i.m)(),{triggerUserSyncs:H}=y.zt,{ADD_AD_UNITS:L,REQUEST_BIDS:z,SET_TARGETING:J}=d.qY,Q={bidWon:function(e){if(!E.n.getBidsRequested().map((e=>e.bids.map((e=>e.adUnitCode)))).reduce(r.Bq).filter(r.hj).includes(e))return void(0,r.vV)('The "'+e+'" placement is not defined.');return!0}};function K(e,t){let n=[];return(0,r.cy)(e)&&(t?e.length===t:e.length>0)&&(e.every((e=>(0,r.Uu)(e,2)))?n=e:(0,r.Uu)(e,2)&&n.push(e)),n}function Y(e,t){const n=(0,o.A)(e,`ortb2Imp.${t}`),i=(0,o.A)(e,`mediaTypes.${t}`);if(!n&&!i)return;const a={[V.G_]:P.Zy,[V.D4]:W}[t];a&&[...a].forEach((n=>{let[i,a]=n;const d=(0,o.A)(e,`mediaTypes.${t}.${i}`),c=(0,o.A)(e,`ortb2Imp.${t}.${i}`);null==d&&null==c||(null==d?(0,s.J)(e,`mediaTypes.${t}.${i}`,c):null==c?(0,s.J)(e,`ortb2Imp.${t}.${i}`,d):((0,r.JE)(`adUnit ${e.code}: specifies conflicting ortb2Imp.${t}.${i} and mediaTypes.${t}.${i}, the latter will be ignored`,e),(0,s.J)(e,`mediaTypes.${t}.${i}`,c)))}))}function X(e){const t=(0,r.Go)(e),n=t.mediaTypes.banner,i=null==n.sizes?null:K(n.sizes),o=e.ortb2Imp?.banner?.format??n?.format;let a;if(null!=o){(0,s.J)(t,"ortb2Imp.banner.format",o),n.format=o;try{a=o.filter((t=>{let{w:n,h:i,wratio:o,hratio:s}=t;return null!=(n??i)&&null!=(o??s)?((0,r.JE)("Ad unit banner.format specifies both w/h and wratio/hratio",e),!1):null!=n&&null!=i||null!=o&&null!=s})).map((e=>{let{w:t,h:n,wratio:i,hratio:r}=e;return[t??i,n??r]}))}catch(t){(0,r.vV)(`Invalid format definition on ad unit ${e.code}`,o)}null==a||null==i||(0,r.bD)(i,a)||(0,r.JE)(`Ad unit ${e.code} has conflicting sizes and format definitions`,e)}const d=a??i??[],c=e.ortb2Imp?.banner?.expdir??n.expdir;return null!=c&&(n.expdir=c,(0,s.J)(t,"ortb2Imp.banner.expdir",c)),d.length>0?(n.sizes=d,t.sizes=d):((0,r.vV)("Detected a mediaTypes.banner object without a proper sizes field.  Please ensure the sizes are listed like: [[300, 250], ...].  Removing invalid mediaTypes.banner object from request."),delete t.mediaTypes.banner),Y(t,"banner"),t}function Z(e){const t=(0,r.Go)(e),n=t.mediaTypes.video;if(n.playerSize){let e="number"==typeof n.playerSize[0]?2:1;const i=K(n.playerSize,e);i.length>0?(2===e&&(0,r.fH)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),n.playerSize=i,t.sizes=i):((0,r.vV)("Detected incorrect configuration of mediaTypes.video.playerSize.  Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete t.mediaTypes.video.playerSize)}return(0,P.aP)(t),Y(t,"video"),t}function ee(e){function t(t){return(0,r.vV)(`Error in adUnit "${e.code}": ${t}. Removing native request from ad unit`,e),delete i.mediaTypes.native,i}function n(e){for(const t of["sendTargetingKeys","types"])if(o.hasOwnProperty(t)){const n=e(t);if(n)return n}}const i=(0,r.Go)(e),o=i.mediaTypes.native;if(o.ortb){if(o.ortb.assets?.some((e=>!(0,r.Et)(e.id)||e.id<0||e.id%1!=0)))return t("native asset ID must be a nonnegative integer");if(n((e=>t(`ORTB native requests cannot specify "${e}"`))))return i;const e=Object.keys(d.x5).filter((e=>d.x5[e].includes("hb_native_"))),s=Object.keys(o).filter((t=>e.includes(t)));s.length>0&&((0,r.vV)(`when using native OpenRTB format, you cannot use legacy native properties. Deleting ${s} keys from request.`),s.forEach((e=>delete i.mediaTypes.native[e])))}else n((e=>`mediaTypes.native.${e} is deprecated, consider using native ORTB instead`));return o.image&&o.image.sizes&&!Array.isArray(o.image.sizes)&&((0,r.vV)("Please use an array of sizes for native.image.sizes field.  Removing invalid mediaTypes.native.image.sizes property from request."),delete i.mediaTypes.native.image.sizes),o.image&&o.image.aspect_ratios&&!Array.isArray(o.image.aspect_ratios)&&((0,r.vV)("Please use an array of sizes for native.image.aspect_ratios field.  Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete i.mediaTypes.native.image.aspect_ratios),o.icon&&o.icon.sizes&&!Array.isArray(o.icon.sizes)&&((0,r.vV)("Please use an array of sizes for native.icon.sizes field.  Removing invalid mediaTypes.native.icon.sizes property from request."),delete i.mediaTypes.native.icon.sizes),i}function te(e,t){let n=e?.mediaTypes?.[t]?.pos;if(!(0,r.Et)(n)||isNaN(n)||!isFinite(n)){let n=`Value of property 'pos' on ad unit ${e.code} should be of type: Number`;(0,r.JE)(n),delete e.mediaTypes[t].pos}return e}function ne(e){const t=t=>`adUnit.code '${e.code}' ${t}`,n=e.mediaTypes,i=e.bids;return null==i||(0,r.cy)(i)?null==i&&null==e.ortb2Imp?((0,r.vV)(t("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):n&&0!==Object.keys(n).length?(null==e.ortb2Imp||null!=i&&0!==i.length||(e.bids=[{bidder:null}],(0,r.OG)(t("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),e):((0,r.vV)(t("does not define a 'mediaTypes' object.  This is a required field for the auction, so this adUnit has been removed.")),null):((0,r.vV)(t("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}!function(){let e=null;try{e=window.sessionStorage}catch(e){}if(null!==e){let t=U,n=null;try{n=e.getItem(O)}catch(e){}null!==n&&t.enable()}}(),F.bidderSettings=F.bidderSettings||{},F.libLoaded=!0,F.version="v9.50.0",(0,r.fH)("Prebid.js v9.50.0 loaded"),F.installedModules=F.installedModules||[],F.adUnits=F.adUnits||[],F.triggerUserSyncs=H;const ie={validateAdUnit:ne,validateBannerMediaType:X,validateSizes:K};Object.assign(ie,{validateNativeMediaType:ee}),Object.assign(ie,{validateVideoMediaType:Z});const re=(0,w.A_)("sync",(function(e){const t=[];return e.forEach((e=>{if(null==(e=ne(e)))return;const n=e.mediaTypes;let i,r,o;n.banner&&(i=X(e),n.banner.hasOwnProperty("pos")&&(i=te(i,"banner"))),n.video&&(r=Z(i||e),n.video.hasOwnProperty("pos")&&(r=te(r,"video"))),n.native&&(o=ee(r||(i||e)));const s=Object.assign({},i,r,o);t.push(s)})),t}),"checkAdUnitSetup");function oe(e){const t=E.n[e]().filter((e=>E.n.getAdUnitCodes().includes(e.adUnitCode))),n=E.n.getLastAuctionId();return t.map((e=>e.adUnitCode)).filter(r.hj).map((e=>t.filter((t=>t.auctionId===n&&t.adUnitCode===e)))).filter((e=>e&&e[0]&&e[0].adUnitCode)).map((e=>({[e[0].adUnitCode]:{bids:e}}))).reduce(((e,t)=>Object.assign(e,t)),{})}F.getAdserverTargetingForAdUnitCodeStr=function(e){if((0,r.fH)("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=F.getAdserverTargetingForAdUnitCode(e);return(0,r.$D)(t)}(0,r.OG)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},F.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){const t=E.n.getAllBidsForAdUnitCode(e).filter(A.Yl);return t.length?t.reduce(N.Vk):{}}(0,r.OG)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},F.getAdserverTargetingForAdUnitCode=function(e){return F.getAdserverTargeting(e)[e]},F.getAdserverTargeting=function(e){return(0,r.fH)("Invoking pbjs.getAdserverTargeting",arguments),A.iS.getAllTargeting(e)},F.getConsentMetadata=function(){return(0,r.fH)("Invoking pbjs.getConsentMetadata"),x.SL.getConsentMeta()},F.getNoBids=function(){return(0,r.fH)("Invoking pbjs.getNoBids",arguments),oe("getNoBids")},F.getNoBidsForAdUnitCode=function(e){return{bids:E.n.getNoBids().filter((t=>t.adUnitCode===e))}},F.getBidResponses=function(){return(0,r.fH)("Invoking pbjs.getBidResponses",arguments),oe("getBidsReceived")},F.getBidResponsesForAdUnitCode=function(e){return{bids:E.n.getBidsReceived().filter((t=>t.adUnitCode===e))}},F.setTargetingForGPTAsync=function(e,t){(0,r.fH)("Invoking pbjs.setTargetingForGPTAsync",arguments),(0,r.II)()?A.iS.setTargetingForGPT(e,t):(0,r.vV)("window.googletag is not defined on the page")},F.setTargetingForAst=function(e){(0,r.fH)("Invoking pbjs.setTargetingForAn",arguments),A.iS.isApntagDefined()?(A.iS.setTargetingForAst(e),$.Ic(J,A.iS.getAllTargeting())):(0,r.vV)("window.apntag is not defined on the page")},F.renderAd=(0,w.A_)("async",(function(e,t,n){(0,r.fH)("Invoking pbjs.renderAd",arguments),(0,r.OG)("Calling renderAd with adId :"+t),(0,c.BS)(e,t,n)})),F.removeAdUnit=function(e){if((0,r.fH)("Invoking pbjs.removeAdUnit",arguments),!e)return void(F.adUnits=[]);let t;t=(0,r.cy)(e)?e:[e],t.forEach((e=>{for(let t=F.adUnits.length-1;t>=0;t--)F.adUnits[t].code===e&&F.adUnits.splice(t,1)}))},F.requestBids=function(){const e=(0,w.A_)("async",(function(){let{bidsBackHandler:e,timeout:t,adUnits:n,adUnitCodes:i,labels:o,auctionId:s,ttlBuffer:a,ortb2:d,metrics:c,defer:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};$.Ic(z);const l=t||v.$W.getConfig("bidderTimeout");(0,r.fH)("Invoking pbjs.requestBids",arguments),null==i||Array.isArray(i)||(i=[i]),i&&i.length?n=n.filter((e=>i.includes(e.code))):i=n&&n.map((e=>e.code)),i=i.filter(r.hj);const f={global:(0,r.D9)({},v.$W.getAnyConfig("ortb2")||{},d||{}),bidder:Object.fromEntries(Object.entries(v.$W.getBidderConfig()).map((e=>{let[t,n]=e;return[t,(0,r.Go)(n.ortb2)]})).filter((e=>{let[t,n]=e;return null!=n})))};return(0,q.w)(C.U9.resolve(f.global)).then((t=>(f.global=t,se({bidsBackHandler:e,timeout:l,adUnits:n,adUnitCodes:i,labels:o,auctionId:s,ttlBuffer:a,ortb2Fragments:f,metrics:c,defer:u}))))}),"requestBids");return(0,w.Y6)(e,M((()=>!v.$W.getConfig("allowPrerendering")),(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.adUnits||F.adUnits;return t.adUnits=(0,r.cy)(n)?n.slice():[n],t.metrics=(0,j.K7)(),t.metrics.checkpoint("requestBids"),t.defer=(0,C.v6)({promiseFactory:e=>new Promise(e)}),e.call(this,t),t.defer.promise})))}();const se=(0,w.A_)("async",(function(){let{bidsBackHandler:e,timeout:t,adUnits:n,ttlBuffer:i,adUnitCodes:o,labels:a,auctionId:d,ortb2Fragments:c,metrics:u,defer:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const f=(0,_.pX)(v.$W.getConfig("s2sConfig")||[]);function g(t,n,i){if("function"==typeof e)try{e(t,n,i)}catch(e){(0,r.vV)("Error executing bidsBackHandler",null,e)}l.resolve({bids:t,timedOut:n,auctionId:i})}!function(e){e.forEach((e=>(0,P.V0)(e)))}(n),n=(0,j.BO)(u).measureTime("requestBids.validate",(()=>re(n)));const p={};if(n.forEach((e=>{const t=Object.keys(e.mediaTypes||{banner:"banner"}),n=e.bids.map((e=>e.bidder)),o=_.Ay.bidderRegistry,s=n.filter((e=>!f.has(e)));e.adUnitId=(0,r.lk)();const a=e.ortb2Imp?.ext?.tid;a&&(p.hasOwnProperty(e.code)?(0,r.JE)(`Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '${e.code}'`):p[e.code]=a),null==i||e.hasOwnProperty("ttlBuffer")||(e.ttlBuffer=i),s.forEach((n=>{const i=o[n],s=i&&i.getSpec&&i.getSpec(),a=s&&s.supportedMediaTypes||["banner"];t.some((e=>a.includes(e)))||((0,r.JE)((0,r.bz)(e,n)),e.bids=e.bids.filter((e=>e.bidder!==n)))}))})),n&&0!==n.length){n.forEach((e=>{const t=e.ortb2Imp?.ext?.tid||p[e.code]||(0,r.lk)();p.hasOwnProperty(e.code)||(p[e.code]=t),e.transactionId=t,(0,s.J)(e,"ortb2Imp.ext.tid",t)}));const e=E.n.createAuction({adUnits:n,adUnitCodes:o,callback:g,cbTimeout:t,labels:a,auctionId:d,ortb2Fragments:c,metrics:u});let i=n.length;i>15&&(0,r.fH)(`Current auction ${e.getAuctionId()} contains ${i} adUnits.`,n),o.forEach((t=>A.iS.setLatestAuctionForAdUnit(t,e.getAuctionId()))),e.callBids()}else(0,r.OG)("No adUnits configured. No bids requested."),g()}),"startAuction");F.requestBids.before((function(e,t){function n(e){for(var t;t=e.shift();)t()}n(D.s0),n(ae),e.call(this,t)}),49),F.addAdUnits=function(e){(0,r.fH)("Invoking pbjs.addAdUnits",arguments),F.adUnits.push.apply(F.adUnits,(0,r.cy)(e)?e:[e]),$.Ic(L)},F.onEvent=function(e,t,n){(0,r.fH)("Invoking pbjs.onEvent",arguments),(0,r.fp)(t)?!n||Q[e].call(null,n)?$.on(e,t,n):(0,r.vV)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,r.vV)('The event handler provided is not a function and was not set on event "'+e+'".')},F.offEvent=function(e,t,n){(0,r.fH)("Invoking pbjs.offEvent",arguments),n&&!Q[e].call(null,n)||$.AU(e,t,n)},F.getEvents=function(){return(0,r.fH)("Invoking pbjs.getEvents"),$.kQ()},F.registerBidAdapter=function(e,t,n){(0,r.fH)("Invoking pbjs.registerBidAdapter",arguments);try{const i=n?(0,G.xb)(n):e();_.Ay.registerBidAdapter(i,t)}catch(e){(0,r.vV)("Error registering bidder adapter : "+e.message)}},F.registerAnalyticsAdapter=function(e){(0,r.fH)("Invoking pbjs.registerAnalyticsAdapter",arguments);try{_.Ay.registerAnalyticsAdapter(e)}catch(e){(0,r.vV)("Error registering analytics adapter : "+e.message)}},F.createBid=function(e){return(0,r.fH)("Invoking pbjs.createBid",arguments),(0,T.O)(e)};const ae=[],de=(0,w.A_)("async",(function(e){e&&!(0,r.Im)(e)?((0,r.fH)("Invoking pbjs.enableAnalytics for: ",e),_.Ay.enableAnalytics(e)):(0,r.vV)("pbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");function ce(e){if("function"==typeof e)try{e.call()}catch(e){(0,r.vV)("Error processing command :",e.message,e.stack)}else(0,r.vV)("Commands written into pbjs.cmd.push must be wrapped in a function")}function ue(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){(0,r.vV)("Error processing command :","prebid.js",e)}}))}F.enableAnalytics=function(e){ae.push(de.bind(this,e))},F.aliasBidder=function(e,t,n){(0,r.fH)("Invoking pbjs.aliasBidder",arguments),e&&t?_.Ay.aliasBidAdapter(e,t,n):(0,r.vV)("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},F.aliasRegistry=_.Ay.aliasRegistry,v.$W.getConfig("aliasRegistry",(e=>{"private"===e.aliasRegistry&&delete F.aliasRegistry})),F.getAllWinningBids=function(){return E.n.getAllWinningBids()},F.getAllPrebidWinningBids=function(){return(0,r.JE)("getAllPrebidWinningBids may be removed or renamed in a future version. This function returns bids that have won in prebid and have had targeting set but have not (yet?) won in the ad server. It excludes bids that have been rendered."),E.n.getBidsReceived().filter((e=>e.status===d.tl.BID_TARGETING_SET))},F.getHighestCpmBids=function(e){return A.iS.getWinningBids(e)},F.clearAllAuctions=function(){E.n.clearAllAuctions()},F.markWinningBidAsUsed=function(e){let t,{adId:n,adUnitCode:i,analytics:o=!1,events:s=!1}=e;i&&null==n?t=A.iS.getWinningBids(i):n?t=E.n.getBidsReceived().filter((e=>e.adId===n)):(0,r.JE)("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),t.length>0&&(o||s?(0,c.n6)(t[0]):E.n.addWinningBid(t[0]),(0,c.qn)(t[0]))},F.getConfig=v.$W.getAnyConfig,F.readConfig=v.$W.readAnyConfig,F.mergeConfig=v.$W.mergeConfig,F.mergeBidderConfig=v.$W.mergeBidderConfig,F.setConfig=v.$W.setConfig,F.setBidderConfig=v.$W.setBidderConfig,F.que.push((()=>m())),F.processQueue=M((()=>(0,i.m)().delayPrerendering),(function(){F.que.push=F.cmd.push=ce,(0,c.XO)(),w.A_.ready(),ue(F.que),ue(F.cmd)})),F.triggerBilling=e=>{let{adId:t,adUnitCode:n}=e;E.n.getAllWinningBids().filter((e=>e.adId===t||null==t&&e.adUnitCode===n)).forEach((e=>{_.Ay.triggerBilling(e),(0,c.vB)(e)}))}},7873:(e,t,n)=>{n.d(t,{E:()=>s,m:()=>o});const i=window,r=i.pbjs=i.pbjs||{};function o(){return r}function s(e){r.installedModules.push(e)}r.cmd=r.cmd||[],r.que=r.que||[],i===window&&(i._pbjsGlobals=i._pbjsGlobals||[],i._pbjsGlobals.push("pbjs"))},7934:(e,t,n)=>{n.d(t,{EN:()=>d,gR:()=>s});var i=n(3272),r=n(1069);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!e)return e;if(/\w+:\/\//.exec(e))return e;let n=t.location.protocol;try{n=t.top.location.protocol}catch(e){}return/^\/\//.exec(e)?n+e:`${n}//${e}`}function s(e){let{noLeadingWww:t=!1,noPort:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{e=new URL(o(e))}catch(e){return}return e=n?e.hostname:e.host,t&&e.startsWith("www.")&&(e=e.substring(4)),e}function a(e){try{const t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}const d=function(e){let t,n,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return r.top!==r?e:function(){const o=a(r.document),s=r.location.href;return t===o&&s===n||(t=o,n=s,i=e()),i}}((c=window,function(){const e=[],t=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(c),n=i.$W.getConfig("maxNestedIframes");let d,u,l,f,g=!1,p=0,h=!1,m=!1,b=!1;do{const n=d,i=m;let o,s=!1,f=null;m=!1,d=d?d.parent:c;try{o=d.location.href||null}catch(e){s=!0}if(s)if(i){const e=n.context;try{f=e.sourceUrl,u=f,b=!0,h=!0,d===c.top&&(g=!0),e.canonicalUrl&&(l=e.canonicalUrl)}catch(e){}}else{(0,r.JE)("Trying to access cross domain iframe. Continuing without referrer and location");try{const e=n.document.referrer;e&&(f=e,d===c.top&&(g=!0))}catch(e){}!f&&t&&t[p-1]&&(f=t[p-1],d===c.top&&(b=!0)),f&&!h&&(u=f)}else{if(o&&(f=o,u=f,h=!1,d===c.top)){g=!0;const e=a(d.document);e&&(l=e)}d.context&&d.context.sourceUrl&&(m=!0)}e.push(f),p++}while(d!==c.top&&p<n);e.reverse();try{f=c.top.document.referrer}catch(e){}const y=g||b?u:null,v=i.$W.getConfig("pageUrl")||l||null;let E=i.$W.getConfig("pageUrl")||y||o(v,c);return y&&y.indexOf("?")>-1&&-1===E.indexOf("?")&&(E=`${E}${y.substring(y.indexOf("?"))}`),{reachedTop:g,isAmp:h,numIframes:p-1,stack:e,topmostLocation:u||null,location:y,canonicalUrl:v,page:E,domain:s(E)||null,ref:f||null,legacy:{reachedTop:g,isAmp:h,numIframes:p-1,stack:e,referer:u||null,canonicalUrl:v}}}));var c},2938:(e,t,n)=>{n.d(t,{CK:()=>b,X0:()=>g,qk:()=>f,s0:()=>p,vM:()=>m});var i=n(1069),r=n(2693),o=n(5569),s=n(5139),a=n(2604),d=n(6811),c=n(3272),u=n(1445),l=n(3441);const f="html5",g="cookie";let p=[];function h(){let{moduleName:e,moduleType:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isAllowed:n=s.io}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function r(i,r){let s=e;const f=c.$W.getCurrentBidder();f&&t===o.tW&&u.Ay.aliasRegistry[f]===e&&(s=f);return i({valid:n(d.Ue,(0,l.s)(t,s,{[a.Zw]:r}))})}function h(e,t,n){if(!n||"function"!=typeof n)return r(e,t);p.push((function(){let i=r(e,t);n(i)}))}function m(e){const t=e.charAt(0).toUpperCase()+e.substring(1),n=()=>window[e],r=function(t){return h((function(t){if(t&&t.valid)try{return!!n()}catch(t){(0,i.vV)(`${e} api disabled`)}return!1}),f,t)};return{[`has${t}`]:r,[`${e}IsEnabled`]:e=>h((function(e){if(e&&e.valid)try{return n().setItem("prebid.cookieTest","1"),"1"===n().getItem("prebid.cookieTest")}catch(e){}finally{try{n().removeItem("prebid.cookieTest")}catch(e){}}return!1}),f,e),[`setDataIn${t}`]:(e,t,i)=>h((function(i){i&&i.valid&&r()&&n().setItem(e,t)}),f,i),[`getDataFrom${t}`]:(e,t)=>h((function(t){return t&&t.valid&&r()?n().getItem(e):null}),f,t),[`removeDataFrom${t}`]:(e,t)=>h((function(t){t&&t.valid&&r()&&n().removeItem(e)}),f,t)}}return{setCookie:function(e,t,n,i,r,o){return h((function(o){if(o&&o.valid){const o=r&&""!==r?` ;domain=${encodeURIComponent(r)}`:"",s=n&&""!==n?` ;expires=${n}`:"",a=null!=i&&"none"==i.toLowerCase()?"; Secure":"";document.cookie=`${e}=${encodeURIComponent(t)}${s}; path=/${o}${i?`; SameSite=${i}`:""}${a}`}}),g,o)},getCookie:function(e,t){return h((function(t){if(t&&t.valid){let t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}),g,t)},cookiesAreEnabled:function(e){return h((function(e){return!(!e||!e.valid)&&(0,i.GE)()}),g,e)},...m("localStorage"),...m("sessionStorage"),findSimilarCookies:function(e,t){return h((function(t){if(t&&t.valid){const t=[];if((0,i.N9)()){const n=document.cookie.split(";");for(;n.length;){const i=n.pop();let r=i.indexOf("=");r=r<0?i.length:r;decodeURIComponent(i.slice(0,r).replace(/^\s+/,"")).indexOf(e)>=0&&t.push(decodeURIComponent(i.slice(r+1)))}}return t}}),g,t)}}}function m(){let{moduleType:e,moduleName:t,bidderCode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function i(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return n?((e&&e!==o.tW||t)&&i(),e=o.tW,t=n):t&&e||i(),h({moduleType:e,moduleName:t})}function b(e){return h({moduleName:e,moduleType:o.tp})}(0,s.qB)(d.Ue,"deviceAccess config",(function(){if(!(0,i.N9)())return{allow:!1}})),(0,s.qB)(d.Ue,"bidderSettings.*.storageAllowed",(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.u;if(e[a.Dk]!==o.tW)return;let n=t.get(e[a.q7],"storageAllowed");if(n&&!0!==n){const t=e[a.Zw];n=Array.isArray(n)?n.some((e=>e===t)):n===t}else n=!!n;return n?void 0:{allow:n}}))},7779:(e,t,n)=>{n.d(t,{Jp:()=>I,ME:()=>T,Yl:()=>w,iS:()=>B,uW:()=>A});var i=n(7314),r=n(7863),o=n(2693),s=n(3272),a=n(8969),d=n(5023),c=n(9214),u=n(1371),l=n(2449),f=n(1069),g=n(433),p=n(2713),h=[];const m=20,b="targetingControls.allowTargetingKeys",y="targetingControls.addTargetingKeys",v=`Only one of "${b}" or "${y}" can be set`,E=Object.keys(a.xS).map((e=>a.xS[e]));let A={isActualBid:e=>e.getStatusCode()===a.XQ.GOOD,isBidNotExpired:e=>e.responseTimestamp+1e3*(0,r.cT)(e)>(0,f.vE)(),isUnusedBid:e=>e&&(e.status&&![a.tl.RENDERED].includes(e.status)||!e.status)};function w(e){return!Object.values(A).some((t=>!t(e)))}const T=(0,c.A_)("sync",(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.Q0;if(!i){const i=[],o=s.$W.getConfig("sendBidsControl.dealPrioritization");let a=(0,f.$z)(e,"adUnitCode");return Object.keys(a).forEach((e=>{let s=[],d=(0,f.$z)(a[e],"bidderCode");Object.keys(d).forEach((e=>{s.push(d[e].reduce(t))})),n?(s=o?s.sort(I(!0)):s.sort(((e,t)=>t.cpm-e.cpm)),i.push(...s.slice(0,n))):(s=s.sort(r),i.push(...s))})),i}return e}));function I(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){return void 0!==t.adserverTargeting.hb_deal&&void 0===n.adserverTargeting.hb_deal?-1:void 0===t.adserverTargeting.hb_deal&&void 0!==n.adserverTargeting.hb_deal?1:e?n.cpm-t.cpm:n.adserverTargeting.hb_pb-t.adserverTargeting.hb_pb}}function C(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>window.googletag.pubads().getSlots())().reduce(((e,n)=>{const i=(0,f.fp)(t)&&t(n);return Object.keys(e).filter((0,f.fp)(i)?i:(0,f.iC)(n)).forEach((t=>e[t].push(n))),e}),Object.fromEntries(e.map((e=>[e,[]]))))}const B=function(e){let t={},n={};function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=E.concat(l.Nh),r=s.$W.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),o=r?r.map((e=>a.xS[e])):i;return e.reduce(((e,r)=>{if(t||n&&r.dealId){const t=function(e,t){return t.reduce(((t,n)=>(e.adserverTargeting[n]&&t.push({[`${n}_${e.bidderCode}`.substring(0,20)]:[e.adserverTargeting[n]]}),t)),[])}(r,i.filter((e=>void 0!==r.adserverTargeting[e]&&(n||-1!==o.indexOf(e)))));t&&e.push({[r.adUnitCode]:t})}return e}),[])}function r(t){return"string"==typeof t?[t]:(0,f.cy)(t)?t:e.getAdUnitCodes()||[]}function A(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.Bq,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=e.getBidsReceived().reduce(((e,t)=>{const i=s.$W.getConfig("useBidCache"),r=s.$W.getConfig("bidCacheFilterFunction"),o=n[t.adUnitCode]===t.auctionId,a=!(i&&!o&&"function"==typeof r)||!!r(t);return(i||o)&&a&&(0,g.A)(t,"video.context")!==u.LM&&w(t)&&(t.latestTargetedAuctionId=n[t.adUnitCode],e.push(t)),e}),[]);return T(r,t,void 0,void 0,void 0,i)}function B(e,n){let i=t.getWinningBids(n,e),r=O();return i=i.map((e=>({[e.adUnitCode]:Object.keys(e.adserverTargeting).filter((t=>void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===r.indexOf(t))).reduce(((t,n)=>{const i=[e.adserverTargeting[n]],r={[n.substring(0,m)]:i};if(n===a.xS.DEAL){const o=`${n}_${e.bidderCode}`.substring(0,m),s={[o]:i};return[...t,r,s]}return[...t,r]}),[])}))),i}function O(){return e.getStandardBidderAdServerTargeting().map((e=>e.key)).concat(E).filter(f.hj)}return t.setLatestAuctionForAdUnit=function(e,t){n[e]=t},t.resetPresetTargeting=function(e,t){if((0,f.II)()){const n=r(e);Object.values(C(n,t)).forEach((e=>{e.forEach((e=>{!function(e){h.forEach((t=>{e.getTargeting(t)&&e.clearTargeting(t)}))}(e)}))}))}},t.resetPresetTargetingAST=function(e){r(e).forEach((function(e){const t=window.apntag.getTag(e);if(t&&t.keywords){const n=Object.keys(t.keywords),i={};n.forEach((e=>{h.includes(e.toLowerCase())||(i[e]=t.keywords[e])})),window.apntag.modifyTag(e,{keywords:i})}}))},t.getAllTargeting=function(t,n,d){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p.Vk,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.Q0;d||=A(c,u);const g=r(t),E=s.$W.getConfig("enableSendAllBids"),w=s.$W.getConfig("sendBidsControl.bidLimit"),C=E&&(n||w)||0,{customKeysByUnit:S,filteredBids:R}=function(e,t){const n=[],i={},r=s.$W.getConfig("targetingControls.alwaysIncludeDeals");return t.forEach((t=>{const s=e.includes(t.adUnitCode),a=!0===o.u.get(t.bidderCode,"allowZeroCpmBids")?t.cpm>=0:t.cpm>0,d=r&&t.dealId;s&&(d||a)&&(n.push(t),Object.keys(t.adserverTargeting).filter(function(){let e=O();e=e.concat(l.Nh);return function(t){return-1===e.indexOf(t)}}()).forEach((e=>{const n=e.substring(0,m),r=i[t.adUnitCode]||{},o=[t.adserverTargeting[e]];r[n]?r[n]=r[n].concat(o).filter(f.hj):r[n]=o,i[t.adUnitCode]=r})))})),{filteredBids:n,customKeysByUnit:i}}(g,d);let k=function(t,n,r){const o=!1!==s.$W.getConfig("targetingControls.allBidsCustomTargeting"),d=B(t,r).concat(function(e){const t=s.$W.getConfig("targetingControls.alwaysIncludeDeals");return i(e,s.$W.getConfig("enableSendAllBids"),t)}(t)).concat(function(t){function n(e){return e?.[a.iD.ADSERVER_TARGETING]}function i(e){const t=n(e);return Object.keys(t).map((function(e){return(0,f.O8)(t[e])&&(t[e]=t[e].split(",").map((e=>e.trim()))),(0,f.cy)(t[e])||(t[e]=[t[e]]),{[e]:t[e]}}))}return e.getAdUnits().filter((e=>t.includes(e.code)&&n(e))).reduce(((e,t)=>{const n=i(t);return n&&e.push({[t.code]:n}),e}),[])}(r));o&&d.push(...function(e,t){return e.reduce(((e,n)=>{const i=Object.assign({},n),r=t[i.adUnitCode],o=[];return r&&Object.keys(r).forEach((e=>{e&&r[e]&&o.push({[e]:r[e]})})),e.push({[i.adUnitCode]:o}),e}),[])}(t,n));return d.forEach((e=>{!function(e){Object.keys(e).forEach((t=>{e[t].forEach((e=>{const t=Object.keys(e);-1===h.indexOf(t[0])&&(h=t.concat(h))}))}))}(e)})),d}(T(R,c,C,void 0,u),S,g);const U=Object.keys(Object.assign({},a.Zh,a.x5));let D=s.$W.getConfig(b);const _=s.$W.getConfig(y);if(null!=_&&null!=D)throw new Error(v);D=null!=_?U.concat(_):D||U,Array.isArray(D)&&D.length>0&&(k=function(e,t){const n=Object.assign({},a.xS,a.x5),i=Object.keys(n),r={};(0,f.fH)(`allowTargetingKeys - allowed keys [ ${t.map((e=>n[e])).join(", ")} ]`),e.map((e=>{const o=Object.keys(e)[0],s=e[o].filter((e=>{const o=Object.keys(e)[0],s=0===i.filter((e=>0===o.indexOf(n[e]))).length||t.find((e=>{const t=n[e];return 0===o.indexOf(t)}));return r[o]=!s,s}));e[o]=s}));const o=Object.keys(r).filter((e=>r[e]));return(0,f.fH)(`allowTargetingKeys - removed keys [ ${o.join(", ")} ]`),e.filter((e=>e[Object.keys(e)[0]].length>0))}(k,D)),k=function(e){let t=e.map((e=>({[Object.keys(e)[0]]:e[Object.keys(e)[0]].map((e=>({[Object.keys(e)[0]]:e[Object.keys(e)[0]].join(",")}))).reduce(((e,t)=>Object.assign(t,e)),{})})));return t=t.reduce((function(e,t){var n=Object.keys(t)[0];return e[n]=Object.assign({},e[n],t[n]),e}),{}),t}(k);const $=s.$W.getConfig("targetingControls.auctionKeyMaxChars");return $&&((0,f.fH)(`Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ${$} characters.  Running checks on auction keys...`),k=function(e,t){let n=(0,f.Go)(e),i=Object.keys(n).map((e=>({adUnitCode:e,adserverTargeting:n[e]}))).sort(I());return i.reduce((function(e,i,r,o){let s=(a=i.adserverTargeting,Object.keys(a).reduce((function(e,t){return e+`${t}%3d${encodeURIComponent(a[t])}%26`}),""));var a;r+1===o.length&&(s=s.slice(0,-3));let d=i.adUnitCode,c=s.length;return c<=t?(t-=c,(0,f.fH)(`AdUnit '${d}' auction keys comprised of ${c} characters.  Deducted from running threshold; new limit is ${t}`,n[d]),e[d]=n[d]):(0,f.JE)(`The following keys for adUnitCode '${d}' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ${c}, the current allotted amount was ${t}.\n`,n[d]),r+1===o.length&&0===Object.keys(e).length&&(0,f.vV)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars).  Please review setup and consider adjusting."),e}),{})}(k,$)),g.forEach((e=>{k[e]||(k[e]={})})),k},s.$W.getConfig("targetingControls",(function(e){null!=(0,g.A)(e,b)&&null!=(0,g.A)(e,y)&&(0,f.vV)(v)})),t.setTargetingForGPT=(0,c.A_)("sync",(function(n,i){let r=t.getAllTargeting(n),o=Object.fromEntries(h.map((e=>[e,null])));Object.entries(C(Object.keys(r),i)).forEach((e=>{let[t,n]=e;n.length>1&&(0,f.JE)(`Multiple slots found matching: ${t}. Targeting will be set on all matching slots, which can lead to duplicate impressions if more than one are requested from GAM. To resolve this, ensure the arguments to setTargetingForGPTAsync resolve to a single slot by explicitly matching the desired slotElementID.`),n.forEach((e=>{Object.keys(r[t]).forEach((e=>{let n=r[t][e];"string"==typeof n&&-1!==n.indexOf(",")&&(n=n.split(",")),r[t][e]=n})),(0,f.OG)(`Attempting to set targeting-map for slot: ${e.getSlotElementId()} with targeting-map:`,r[t]),e.updateTargetingFromMap(Object.assign({},o,r[t]))}))})),Object.keys(r).forEach((t=>{Object.keys(r[t]).forEach((n=>{"hb_adid"===n&&e.setStatusForBids(r[t][n],a.tl.BID_TARGETING_SET)}))})),t.targetingDone(r),d.Ic(a.qY.SET_TARGETING,r)}),"setTargetingForGPT"),t.targetingDone=(0,c.A_)("sync",(function(e){return e}),"targetingDone"),t.getWinningBids=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Vk,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.Q0;const s=t||A(n,i),a=r(e);return s.filter((e=>a.includes(e.adUnitCode))).filter((e=>!0===o.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0)).map((e=>e.adUnitCode)).filter(f.hj).map((e=>s.filter((t=>t.adUnitCode===e?t:null)).reduce(p.Vk)))},t.setTargetingForAst=function(e){let n=t.getAllTargeting(e);try{t.resetPresetTargetingAST(e)}catch(e){(0,f.vV)("unable to reset targeting for AST"+e)}Object.keys(n).forEach((e=>Object.keys(n[e]).forEach((t=>{if((0,f.OG)(`Attempting to set targeting for targetId: ${e} key: ${t} value: ${n[e][t]}`),(0,f.O8)(n[e][t])||(0,f.cy)(n[e][t])){let i={},r=/pt[0-9]/;t.search(r)<0?i[t.toUpperCase()]=n[e][t]:i[t]=n[e][t],window.apntag.setKeywords(e,i,{overrideKeyValue:!0})}}))))},t.isApntagDefined=function(){if(window.apntag&&(0,f.fp)(window.apntag.setKeywords))return!0},t}(i.n)},8230:(e,t,n)=>{n.d(t,{qh:()=>l,zt:()=>g});var i=n(1069),r=n(3272),o=n(2938),s=n(5139),a=n(6811),d=n(2604),c=n(5569),u=n(3441);const l={syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:500};r.$W.setDefaults({userSync:(0,i.Go)(l)});const f=(0,o.CK)("usersync");const g=function(e){let t={},n={image:[],iframe:[]},o=new Set,s={},l={image:!0,iframe:!1},f=e.config;function g(){if(f.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!l.iframe)return;p(n.iframe,(e=>{let[t,r]=e;(0,i.OG)(`Invoking iframe user sync for bidder: ${t}`),(0,i.SG)(r),function(e,t){e.image=e.image.filter((e=>e[0]!==t))}(n,t)}))}(),function(){if(!l.image)return;p(n.image,(e=>{let[t,n]=e;(0,i.OG)(`Invoking image pixel user sync for bidder: ${t}`),(0,i.z$)(n)}))}()}catch(e){return(0,i.vV)("Error firing user syncs",e)}n={image:[],iframe:[]}}}function p(e,t){(0,i.k4)(e).forEach(t)}function h(e,t){let n=f.filterSettings;if(function(e,t){if(e.all&&e[t])return(0,i.JE)(`Detected presence of the "filterSettings.all" and "filterSettings.${t}" in userSync config.  You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.`),!1;let n=e.all?e.all:e[t],r=e.all?"all":t;if(!n)return!1;let o=n.filter,s=n.bidders;if(o&&"include"!==o&&"exclude"!==o)return(0,i.JE)(`UserSync "filterSettings.${r}.filter" setting '${o}' is not a valid option; use either 'include' or 'exclude'.`),!1;if("*"!==s&&!(Array.isArray(s)&&s.length>0&&s.every((e=>(0,i.O8)(e)&&"*"!==e))))return(0,i.JE)(`Detected an invalid setup in userSync "filterSettings.${r}.bidders"; use either '*' (to represent all bidders) or an array of bidders.`),!1;return!0}(n,e)){l[e]=!0;let i=n.all?n.all:n[e],r="*"===i.bidders?[t]:i.bidders;const o={include:(e,t)=>!e.includes(t),exclude:(e,t)=>e.includes(t)};return o[i.filter||"include"](r,t)}return!l[e]}return r.$W.getConfig("userSync",(e=>{if(e.userSync){let t=e.userSync.filterSettings;(0,i.Qd)(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}f=Object.assign(f,e.userSync)})),e.regRule(a.Ml,"userSync config",(e=>{if(!f.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(e[d.Dk]===c.tW){const n=e[d.bt],i=e[d.iK];if(!t.canBidderRegisterSync(n,i))return{allow:!1,reason:`${n} syncs are not enabled for ${i}`}}})),t.registerSync=(t,r,l)=>o.has(r)?(0,i.OG)(`already fired syncs for "${r}", ignoring registerSync call`):f.syncEnabled&&(0,i.cy)(n[t])?r?0!==f.syncsPerBidder&&Number(s[r])>=f.syncsPerBidder?(0,i.JE)(`Number of user syncs exceeded for "${r}"`):void(e.isAllowed(a.Ml,(0,u.s)(c.tW,r,{[d.bt]:t,[d.e3]:l}))&&(n[t].push([r,l]),s=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(s,r))):(0,i.JE)("Bidder is required for registering sync"):(0,i.JE)(`User sync type "${t}" not supported`),t.bidderDone=o.add.bind(o),t.syncUsers=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(g,Number(e));g()},t.triggerUserSyncs=()=>{f.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=(e,t)=>!f.filterSettings||!h(e,t),t}(Object.defineProperties({config:r.$W.getConfig("userSync"),isAllowed:s.io,regRule:s.qB},{browserSupportsCookies:{get:function(){return!(0,i.Vt)()&&f.cookiesAreEnabled()}}}))},1069:(e,t,n)=>{n.d(t,{$D:()=>D,$l:()=>tt,$z:()=>qe,Bg:()=>rt,Bj:()=>it,Bk:()=>ye,Bq:()=>Ee,CA:()=>X,D4:()=>Ae,D9:()=>Xe,Dl:()=>Qe,El:()=>ot,Et:()=>re,Ez:()=>Z,Fq:()=>Fe,GE:()=>$e,Go:()=>Oe,II:()=>Te,Im:()=>ae,JE:()=>L,K2:()=>le,Lm:()=>se,N9:()=>_e,O8:()=>ne,OG:()=>F,Ot:()=>I,PB:()=>et,Q0:()=>Ce,Qd:()=>oe,SB:()=>Pe,SG:()=>me,SH:()=>xe,Tz:()=>be,U6:()=>je,Up:()=>He,Uu:()=>Le,V:()=>De,Vt:()=>Re,YE:()=>M,ZA:()=>we,ZK:()=>at,_s:()=>fe,al:()=>Se,bD:()=>Ye,bL:()=>U,bu:()=>ce,bz:()=>Ge,c$:()=>Ke,cD:()=>w,cf:()=>x,cy:()=>ie,dp:()=>K,eP:()=>Je,fH:()=>H,fp:()=>te,gM:()=>ke,gR:()=>ue,h0:()=>J,hj:()=>ve,hw:()=>Y,iC:()=>Me,k4:()=>Be,kK:()=>$,l4:()=>W,l9:()=>We,lk:()=>R,mM:()=>C,mb:()=>P,n7:()=>q,nT:()=>st,ro:()=>he,s0:()=>S,sC:()=>Ve,t1:()=>Ie,u5:()=>k,vE:()=>Ue,vV:()=>z,wD:()=>Ne,wV:()=>nt,xQ:()=>de,y$:()=>_,z$:()=>pe});var i=n(3272),r=n(5751),o=n(8969),s=n(5555),a=n(7873),d="String",c="Function",u="Number",l="Object",f="Boolean",g=Object.prototype.toString;let p,h,m=Boolean(window.console),b=Boolean(m&&window.console.log),y=Boolean(m&&window.console.info),v=Boolean(m&&window.console.warn),E=Boolean(m&&window.console.error);const A=(0,a.m)();function w(e){p=e}function T(){null!=p&&p(...arguments)}const I=function(){let e;return()=>((!h||!e||Date.now()-e>20)&&(C.resetWinDimensions(),e=Date.now()),h)}();const C={checkCookieSupport:$e,createTrackPixelIframeHtml:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return"";t&&(e=encodeURI(e));n&&(n=`sandbox="${n}"`);return`<iframe ${n} id="${S()}"\n      frameborder="0"\n      allowtransparency="true"\n      marginheight="0" marginwidth="0"\n      width="0" hspace="0" vspace="0" height="0"\n      style="height:0px;width:0px;display:none;"\n      scrolling="no"\n      src="${e}">\n    </iframe>`},getWindowSelf:W,getWindowTop:P,canAccessWindowTop:G,getWindowLocation:V,insertUserSyncIframe:me,insertElement:fe,isFn:te,triggerPixel:pe,logError:z,logWarn:L,logMessage:F,logInfo:H,parseQS:ze,formatQS:Je,deepEqual:Ye,resetWinDimensions:function(){const e=G()?C.getWindowTop():C.getWindowSelf();h={screen:{width:e.screen?.width,height:e.screen?.height,availWidth:e.screen?.availWidth,availHeight:e.screen?.availHeight,colorDepth:e.screen?.colorDepth},innerHeight:e.innerHeight,innerWidth:e.innerWidth,outerWidth:e.outerWidth,outerHeight:e.outerHeight,visualViewport:{height:e.visualViewport?.height,width:e.visualViewport?.width},document:{documentElement:{clientWidth:e.document?.documentElement?.clientWidth,clientHeight:e.document?.documentElement?.clientHeight,scrollTop:e.document?.documentElement?.scrollTop,scrollLeft:e.document?.documentElement?.scrollLeft},body:{scrollTop:document.body?.scrollTop,scrollLeft:document.body?.scrollLeft,clientWidth:document.body?.clientWidth,clientHeight:document.body?.clientHeight}}}}};var B,O=(B=0,function(){return++B});function S(){return O()+Math.random().toString(16).substr(2)}function R(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,R)}function k(e,t){return t?.[e]||""}function U(e){let t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t=t.replace(/&$/,""),t}function D(e){return e&&Object.getOwnPropertyNames(e).length>0?Object.keys(e).map((t=>`${t}=${encodeURIComponent(e[t])}`)).join("&"):""}function _(e){return"string"==typeof e?e.split(/\s*,\s*/).map((e=>e.match(/^(\d+)x(\d+)$/i))).filter((e=>e)).map((e=>{let[t,n,i]=e;return[parseInt(n,10),parseInt(i,10)]})):Array.isArray(e)?N(e)?[e]:e.filter(N):[]}function $(e){return _(e).map(j)}function j(e){return e[0]+"x"+e[1]}function q(e){if(N(e))return j(e)}function x(e){return{w:e[0],h:e[1]}}function N(e){return ie(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function P(){return window.top}function W(){return window.self}function V(){return window.location}function M(){return document}function G(){try{if(C.getWindowTop().location.href)return!0}catch(e){return!1}}function F(){K()&&b&&console.log.apply(console,Q(arguments,"MESSAGE:"))}function H(){K()&&y&&console.info.apply(console,Q(arguments,"INFO:"))}function L(){K()&&v&&console.warn.apply(console,Q(arguments,"WARNING:")),T(o.qY.AUCTION_DEBUG,{type:"WARNING",arguments})}function z(){K()&&E&&console.error.apply(console,Q(arguments,"ERROR:")),T(o.qY.AUCTION_DEBUG,{type:"ERROR",arguments})}function J(e){function t(t){return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t(e,...i)}}return{logError:t(z),logWarn:t(L),logMessage:t(F),logInfo:t(H)}}function Q(e,t){e=[].slice.call(e);let n=i.$W.getCurrentBidder();return t&&e.unshift(t),n&&e.unshift(r("#aaa")),e.unshift(r("#3b88c3")),e.unshift("%cPrebid"+(n?`%c${n}`:"")),e;function r(e){return`display: inline-block; color: #fff; background: ${e}; padding: 1px 4px; border-radius: 3px;`}}function K(){return!!i.$W.getConfig("debug")}const Y=(()=>{const e={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"};return function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.createElement("iframe");return Object.assign(r,Object.assign({},e,n)),Object.assign(r.style,i),r}})();function X(){return Y(document,{id:S(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function Z(e){return ze(V().search)[e]||""}function ee(e,t){return g.call(e)==="[object "+t+"]"}function te(e){return ee(e,c)}function ne(e){return ee(e,d)}const ie=Array.isArray.bind(Array);function re(e){return ee(e,u)}function oe(e){return ee(e,l)}function se(e){return ee(e,f)}function ae(e){return!e||(ie(e)||ne(e)?!(e.length>0):Object.keys(e).length<=0)}function de(e){return ne(e)&&(!e||0===e.length)}function ce(e,t){if(te(e?.forEach))return e.forEach(t,this);Object.entries(e||{}).forEach((e=>{let[n,i]=e;return t.call(this,i,n)}))}function ue(e,t){return te(e?.includes)&&e.includes(t)}function le(e,t){return te(e?.map)?e.map(t):Object.entries(e||{}).map((n=>{let[i,r]=n;return t(r,i,e)}))}function fe(e,t,n,i){let r;t=t||document,r=n?t.getElementsByTagName(n):t.getElementsByTagName("head");try{if(r=r.length?r:t.getElementsByTagName("body"),r.length){r=r[0];let t=i?null:r.firstChild;return r.insertBefore(e,t)}}catch(e){}}function ge(e,t){let n=null;return new s.U9((i=>{const r=function(){e.removeEventListener("load",r),e.removeEventListener("error",r),null!=n&&window.clearTimeout(n),i()};e.addEventListener("load",r),e.addEventListener("error",r),null!=t&&(n=window.setTimeout(r,t))}))}function pe(e,t,n){const i=new Image;t&&C.isFn(t)&&ge(i,n).then(t),i.src=e}function he(e){if(!e)return;const t=X();var n;C.insertElement(t,document,"body"),(n=t.contentWindow.document).open(),n.write(e),n.close()}function me(e,t,n){let i=C.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),r=document.createElement("div");r.innerHTML=i;let o=r.firstChild;t&&C.isFn(t)&&ge(o,n).then(t),C.insertElement(o,document,"html",!0)}function be(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURI;if(!e)return"";let n='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return n+='<img src="'+t(e)+'"></div>',n}function ye(e){return Array.from(e.matchAll(/\$({[^}]+})/g)).map((e=>e[1])).reduce(((e,t)=>e.replace("$"+encodeURIComponent(t),"$"+t)),encodeURI(e))}function ve(e,t,n){return n.indexOf(e)===t}function Ee(e,t){return e.concat(t)}function Ae(e,t){if(e)return t.flatMap((e=>e.bids)).find((t=>["bidId","adId","bid_id"].some((n=>t[n]===e))))}function we(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.adUnits).map((e=>e.bids.map((e=>e.bidder)).reduce(Ee,[]))).reduce(Ee,[]).filter((e=>void 0!==e)).filter(ve)}function Te(){if(window.googletag&&te(window.googletag.pubads)&&te(window.googletag.pubads().getSlots))return!0}function Ie(){if(window.apntag&&te(window.apntag.getTag))return!0}const Ce=(e,t)=>t.cpm-e.cpm;function Be(e){let t=e.length;for(;t>0;){let n=Math.floor(Math.random()*t);t--;let i=e[t];e[t]=e[n],e[n]=i}return e}function Oe(e){return(0,r.Q)(e)||{}}function Se(){try{return C.getWindowSelf()!==C.getWindowTop()}catch(e){return!0}}function Re(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function ke(e,t){if(e)return Object.entries(t).reduce(((e,t)=>{let[n,i]=t;return e.replace(new RegExp("\\$\\{"+n+"\\}","g"),i||"")}),e)}function Ue(){return(new Date).getTime()}function De(){return window.performance&&window.performance.now&&window.performance.now()||0}function _e(){return!1!==i.$W.getConfig("deviceAccess")}function $e(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function je(e,t){if(t<1)throw new Error(`numRequiredCalls must be a positive number. Got ${t}`);let n=0;return function(){n++,n===t&&e.apply(this,arguments)}}function qe(e,t){return e.reduce((function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e}),{})}function xe(e,t){return t.filter((t=>e[t])).reduce(((t,n)=>Object.assign(t,{[n]:e[n]})),{})}function Ne(e){const t=["banner","native","video"],n=["instream","outstream","adpod"];return!!Object.keys(e).every((e=>t.includes(e)))&&(!e.video||!e.video.context||n.includes(e.video.context))}function Pe(e,t,n){return e.filter((e=>e.code===t)).flatMap((e=>e.bids)).filter((e=>e.bidder===n)).map((e=>e.params||{}))}function We(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}const Ve=(e,t)=>e.getAdUnitPath()===t||e.getSlotElementId()===t;function Me(e){return t=>Ve(e,t)}function Ge(e,t){const n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return`\n    ${e.code} is a ${n} ad unit\n    containing bidders that don't support ${n}: ${t}.\n    This bidder won't fetch demand.\n  `}const Fe=Number.isInteger.bind(Number);function He(e,t){return"object"!=typeof e?{}:t.reduce(((n,i,r)=>{if("function"==typeof i)return n;let o=i,s=i.match(/^(.+?)\sas\s(.+?)$/i);s&&(i=s[1],o=s[2]);let a=e[i];return"function"==typeof t[r+1]&&(a=t[r+1](a,n)),void 0!==a&&(n[o]=a),n}),{})}function Le(e,t){return ie(e)&&(!t||e.length===t)&&e.every((e=>Fe(e)))}function ze(e){return e?e.replace(/^\?/,"").split("&").reduce(((e,t)=>{let[n,i]=t.split("=");return/\[\]$/.test(n)?(n=n.replace("[]",""),e[n]=e[n]||[],e[n].push(i)):e[n]=i||"",e}),{}):{}}function Je(e){return Object.keys(e).map((t=>Array.isArray(e[t])?e[t].map((e=>`${t}[]=${e}`)).join("&"):`${t}=${e[t]}`)).join("&")}function Qe(e,t){let n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);let i=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:i?n.search:C.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}}function Ke(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?`:${e.port}`:""))+(e.pathname||"")+(e.search?`?${C.formatQS(e.search||"")}`:"")+(e.hash?`#${e.hash}`:"")}function Ye(e,t){let{checkTypes:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const i=Array.isArray(e),r=Array.isArray(t);if(i&&r){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!Ye(e[i],t[i],{checkTypes:n}))return!1;return!0}if(i||r)return!1;if(n&&e.constructor!==t.constructor)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(const i of o){if(!Object.prototype.hasOwnProperty.call(t,i))return!1;if(!Ye(e[i],t[i],{checkTypes:n}))return!1}return!0}function Xe(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const n=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];oe(n)&&Ze(e,n)}return e}function Ze(e,t){if(!oe(e)||!oe(t))return;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];if("__proto__"===r||"constructor"===r)continue;const o=t[r];oe(o)?(e[r]||(e[r]={}),Ze(e[r],o)):Array.isArray(o)?Array.isArray(e[r])?o.forEach((t=>{e[r].some((e=>Ye(e,t)))||e[r].push(t)})):e[r]=[...o]:e[r]=o}}function et(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e,t){if(te(Math.imul))return Math.imul(e,t);var n=(4194303&e)*(t|=0);return 4290772992&e&&(n+=(4290772992&e)*t|0),0|n},i=3735928559^t,r=1103547991^t;for(let t,o=0;o<e.length;o++)t=e.charCodeAt(o),i=n(i^t,2654435761),r=n(r^t,1597334677);return i=n(i^i>>>16,2246822507)^n(r^r>>>13,3266489909),r=n(r^r>>>16,2246822507)^n(i^i>>>13,3266489909),(4294967296*(2097151&r)+(i>>>0)).toString()}function tt(e){try{return JSON.parse(e)}catch(e){}}function nt(e){try{return JSON.stringify(e)}catch(e){return""}}function it(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};const n=new Map,i=function(){const i=t.apply(this,arguments);return n.has(i)||n.set(i,e.apply(this,arguments)),n.get(i)};return i.clear=n.clear.bind(n),i}function rt(e,t){Object.entries(t).forEach((t=>{let[n,i]=t;return e.setAttribute(n,i)}))}function ot(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,i=0,r=e.length&&e.length-1;const o=n(t);for(;r-i>1;){const t=i+Math.round((r-i)/2);o>n(e[t])?i=t:r=t}for(;e.length>i&&o>n(e[i]);)i++;return i}const st=function(){let e;return function(){if(void 0!==e)return e;try{void 0===window.CompressionStream?e=!1:(new window.CompressionStream("gzip"),e=!0)}catch(t){e=!1}return e}}();async function at(e){"string"!=typeof e&&(e=JSON.stringify(e));const t=(new TextEncoder).encode(e),n=new Blob([t]).stream().pipeThrough(new window.CompressionStream("gzip")),i=await new Response(n).blob(),r=await i.arrayBuffer();return new Uint8Array(r)}},7176:(e,t,n)=>{n.d(t,{y:()=>s});var i=n(7314),r=n(2693),o=n(1069);function s(e,t,n){let{index:s=i.n.index,bs:a=r.u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=n||s.getBidRequest(t);const d=t?.adapterCode,c=t?.bidderCode||n?.bidder,u=a.get(t?.adapterCode,"adjustAlternateBids"),l=a.getOwn(c,"bidCpmAdjustment")||a.get(u?d:c,"bidCpmAdjustment");if(l&&"function"==typeof l)try{return l(e,Object.assign({},t),n)}catch(e){(0,o.vV)("Error during bid adjustment",e)}return e}},2621:(e,t,n)=>{function i(e){return!e?.gdprApplies||!0===e?.vendorData?.purpose?.consents?.[1]}n.d(t,{C:()=>i})},6894:(e,t,n)=>{n.d(t,{Ak:()=>m,BO:()=>g,K7:()=>p,NL:()=>b});var i=n(3272);const r="performanceMetrics",o=window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now(),s=new WeakMap;function a(){let{now:e=o,mkNode:t=u,mkTimer:n=c,mkRenamer:i=(e=>e),nodes:r=s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return function o(s){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>({forEach(t){t(e)}});a=i(a);const d=(c="timestamps",function(e){return s.dfWalk({visit(t,n){const i=n[c];if(i.hasOwnProperty(e))return i[e]}})});var c;function u(e,t){const n=a(e);s.dfWalk({follow:(e,t)=>t.propagate&&(!e||!e.stopPropagation),visit(e,i){n.forEach((n=>{null==e?i.metrics[n]=t:(i.groups.hasOwnProperty(n)||(i.groups[n]=[]),i.groups[n].push(t))}))}})}function l(t){return n(e,(e=>u(t,e)))}function f(){let e={};return s.dfWalk({visit(t,n){e=Object.assign({},!t||t.includeGroups?n.groups:null,n.metrics,e)}}),e}const g={startTiming:l,measureTime:function(e,t){return l(e).stopAfter(t)()},measureHookTime:function(e,t,n){const i=l(e);return n(function(e){const t=i.stopBefore(e);return t.bail=e.bail&&i.stopBefore(e.bail),t.stopTiming=i,t.untimed=e,t}(t))},checkpoint:function(t){s.timestamps[t]=e()},timeSince:function(t,n){const i=d(t),r=null!=i?e()-i:null;return null!=n&&u(n,r),r},timeBetween:function(e,t,n){const i=d(e),r=d(t),o=null!=i&&null!=r?r-i:null;return null!=n&&u(n,o),o},setMetric:u,getMetrics:f,fork:function(){let{propagate:e=!0,stopPropagation:n=!1,includeGroups:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(t([[s,{propagate:e,stopPropagation:n,includeGroups:i}]]),a)},join:function(e){let{propagate:t=!0,stopPropagation:n=!1,includeGroups:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=r.get(e);null!=o&&o.addParent(s,{propagate:t,stopPropagation:n,includeGroups:i})},newMetrics:function(){return o(s.newSibling(),a)},renameWith:function(e){return o(s,e)},toJSON:()=>f()};return r.set(g,s),g}(t([]))}}function d(e,t,n){return function(){t&&t();try{return e.apply(this,arguments)}finally{n&&n()}}}function c(e,t){const n=e();let i=!1;function r(){i||(t(e()-n),i=!0)}return r.stopBefore=e=>d(e,r),r.stopAfter=e=>d(e,null,r),r}function u(e){return{metrics:{},timestamps:{},groups:{},addParent(t,n){e.push([t,n])},newSibling:()=>u(e.slice()),dfWalk(){let t,{visit:n,follow:i=(()=>!0),visited:r=new Set,inEdge:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!r.has(this)){if(r.add(this),t=n(o,this),null!=t)return t;for(const[s,a]of e)if(i(o,a)&&(t=s.dfWalk({visit:n,follow:i,visited:r,inEdge:a}),null!=t))return t}}}}const l=(()=>{const e=function(){},t=()=>({}),n={forEach:e},i=()=>null;i.stopBefore=e=>e,i.stopAfter=e=>e;const r=Object.defineProperties({dfWalk:e,newSibling:()=>r,addParent:e},Object.fromEntries(["metrics","timestamps","groups"].map((e=>[e,{get:t}]))));return a({now:()=>0,mkNode:()=>r,mkRenamer:()=>()=>n,mkTimer:()=>i,nodes:{get:e,set:e}})()})();let f=!0;function g(e){return f&&e||l}i.$W.getConfig(r,(e=>{f=!!e[r]}));const p=(()=>{const e=a();return function(){return f?e():l}})();function h(e,t){return function(n,i){return function(r){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];const d=this;return g(t.apply(d,s)).measureHookTime(e+n,r,(function(e){return i.call(d,e,...s)}))}}}const m=h("requestBids.",(e=>e.metrics)),b=h("addBidResponse.",((e,t)=>t.metrics))},5555:(e,t,n)=>{n.d(t,{U9:()=>s,cb:()=>a,v6:()=>d});var i=n(43),r=n(7873);const o=(0,r.m)().setTimeout??i.w,s=(0,r.m)().Promise??i.k;function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new s((t=>{o(t,e)}))}function d(){let e,t,{promiseFactory:n=(e=>new s(e))}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function i(e){return t=>e(t)}return{promise:n(((n,i)=>{e=n,t=i})),resolve:i(e),reject:i(t)}}},2713:(e,t,n)=>{function i(e,t){return e===t?0:e<t?-1:1}function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e;return(t,n)=>i(e(t),e(n))}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(t,n)=>-e(t,n)||0}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){for(const i of t){const t=i(e,n);if(0!==t)return t}return 0}}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(t,n)=>e(n,t)<0?n:t}function d(){return a(o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:i))}n.d(t,{Bp:()=>a,Bq:()=>f,NV:()=>r,Vk:()=>l});const c=r((e=>e.cpm)),u=r((e=>e.responseTimestamp)),l=d(s(c,o(r((e=>e.timeToRespond))))),f=d(s(c,o(u)));d(s(c,u))},6853:(e,t,n)=>{n.d(t,{H:()=>u});var i=n(5555),r=n(1069);let o=null,s=0,a=[];function d(){document.hidden?o=Date.now():(s+=Date.now()-(o??0),o=null,a.forEach((e=>{let{callback:t,startTime:n,setTimerId:i}=e;return i(c(t,s-n)())})),a=[])}function c(e,t){const n=s;let i=setTimeout((()=>{s===n&&null==o?e():null!=o?a.push({callback:e,startTime:n,setTimerId(e){i=e}}):i=c(e,s-n)()}),t);return()=>i}function u(){let{startTime:e=r.vE,ttl:t=(()=>null),monotonic:n=!1,slack:o=5e3}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=new Map,a=[],d=[],u=n?e=>d.push(e):e=>d.splice((0,r.El)(d,e,(e=>e.expiry)),0,e);let l,f;function g(){if(f&&clearTimeout(f),d.length>0){const e=(0,r.vE)();l=Math.max(e,d[0].expiry+o),f=c((()=>{const e=(0,r.vE)();let t=0;for(const n of d){if(n.expiry>e)break;a.forEach((e=>{try{e(n.item)}catch(e){(0,r.vV)(e)}})),s.delete(n.item),t++}d.splice(0,t),f=null,g()}),l-e)}else f=null}function p(n){const r={},s=h;let a;const[d,c]=Object.entries({start:e,delta:t}).map((e=>{let t,[d,c]=e;return function(){const e=t={};i.U9.resolve(c(n)).then((n=>{e===t&&(r[d]=n,s===h&&null!=r.start&&null!=r.delta&&(a=r.start+r.delta,u(p),(null==f||l>a+o)&&g()))}))}})),p={item:n,refresh:c,get expiry(){return a}};return d(),c(),p}let h={};return{[Symbol.iterator]:()=>s.keys(),add(e){!s.has(e)&&s.set(e,p(e))},clear(){d.length=0,g(),s.clear(),h={}},toArray:()=>Array.from(s.keys()),refresh(){d.length=0,g();for(const e of s.values())e.refresh()},onExpiry:e=>(a.push(e),()=>{const t=a.indexOf(e);t>=0&&a.splice(t,1)})}}document.addEventListener("visibilitychange",d)},3895:(e,t,n)=>{n.d(t,{E2:()=>g,H6:()=>a,V0:()=>u,Zy:()=>c,aP:()=>l,mn:()=>d,vk:()=>f});var i=n(1069),r=n(3272),o=n(9214),s=n(7314);const a="outstream",d="instream",c=new Map([["mimes",e=>Array.isArray(e)&&e.length>0&&e.every((e=>"string"==typeof e))],["minduration",i.Fq],["maxduration",i.Fq],["startdelay",i.Fq],["maxseq",i.Fq],["poddur",i.Fq],["protocols",i.Uu],["w",i.Fq],["h",i.Fq],["podid",i.O8],["podseq",i.Fq],["rqddurs",i.Uu],["placement",i.Fq],["plcmt",i.Fq],["linearity",i.Fq],["skip",e=>[1,0].includes(e)],["skipmin",i.Fq],["skipafter",i.Fq],["sequence",i.Fq],["slotinpod",i.Fq],["mincpmpersec",i.Et],["battr",i.Uu],["maxextended",i.Fq],["minbitrate",i.Fq],["maxbitrate",i.Fq],["boxingallowed",i.Fq],["playbackmethod",i.Uu],["playbackend",i.Fq],["delivery",i.Uu],["pos",i.Fq],["api",i.Uu],["companiontype",i.Uu],["poddedupe",i.Uu]]);function u(e){const t=e?.mediaTypes?.video;null!=t&&null==t.plcmt&&(t.context===a||[2,3,4].includes(t.placement)?t.plcmt=4:t.context!==a&&[2,6].includes(t.playbackmethod)&&(t.plcmt=2))}function l(e,t){const n=e?.mediaTypes?.video;(0,i.Qd)(n)?null!=n&&Object.entries(n).forEach((r=>{let[o,s]=r;if(!c.has(o))return;c.get(o)(s)||("function"==typeof t?t(o,s,e):(delete n[o],(0,i.JE)(`Invalid prop in adUnit "${e.code}": Invalid value for mediaTypes.video.${o} ORTB property. The property has been removed.`)))})):(0,i.JE)("validateOrtbVideoFields: videoParams must be an object.")}function f(e){let{index:t=s.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.getMediaTypes(e)?.video,i=n&&n?.context,r=n&&n?.useCacheKey,o=t.getAdUnit(e);return g(e,o,n,i,r)}const g=(0,o.A_)("sync",(function(e,t,n,o,s){if(n&&(s||o!==a)){const{url:t,useLocal:n}=r.$W.getConfig("cache")||{};return t||n||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.vV)('\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling either prebid cache with pbjs.setConfig({ cache: {url: "..."} });\n        or local cache with pbjs.setConfig({ cache: { useLocal: true }});\n      '),!1)}return!(o===a&&!s)||!!(e.renderer||t&&t.renderer||n.renderer)}),"checkVideoBidSetup")},8693:(e,t,n)=>{n.d(t,{M_:()=>f,Sb:()=>g,X5:()=>E,kh:()=>c});var i=n(8044),r=n(3272),o=n(7314),s=n(1069),a=n(1657);const d=15,c=new Map;function u(e){let{index:t=o.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=l(e),i=t.getAuction(e);let s={type:"xml",value:n,ttlseconds:Number(e.ttl)+d};return r.$W.getConfig("cache.vasttrack")&&(s.bidder=e.bidder,s.bidid=e.requestId,s.aid=e.auctionId),null!=i&&(s.timestamp=i.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(s.key=e.customCacheKey),s}function l(e){return e.vastXml?e.vastXml:(t=e.vastUrl,n=e.vastImpUrl,`<VAST version="3.0">\n    <Ad>\n      <Wrapper>\n        <AdSystem>prebid.org wrapper</AdSystem>\n        <VASTAdTagURI><![CDATA[${t}]]></VASTAdTagURI>\n        ${(n=n&&(Array.isArray(n)?n:[n]))?n.map((e=>`<Impression><![CDATA[${e}]]></Impression>`)).join(""):""}\n        <Creatives></Creatives>\n      </Wrapper>\n    </Ad>\n  </VAST>`);var t,n}function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.g4;const o={puts:e.map(u)};n(r.$W.getConfig("cache.timeout"))(r.$W.getConfig("cache.url"),function(e){return{success:function(t){let n;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,n){e(new Error(`Error storing video ad in the cache: ${t}: ${JSON.stringify(n)}`),[])}}}(t),JSON.stringify(o),{contentType:"text/plain",withCredentials:!0})}const g=e=>{const t=l(e),n=URL.createObjectURL(new Blob([t],{type:"text/xml"}));p(e,n),c.set(e.videoCacheKey,n)},p=(e,t,n)=>{e.videoCacheKey=n||(0,s.lk)(),e.vastUrl||(e.vastUrl=t)},h={store:f};function m(e){const t=e.map((e=>e.bidResponse));h.store(t,(function(n,i){var o;n?(o=n,(0,s.vV)(`Failed to save to the video cache: ${o}. Video bids will be discarded:`,t)):e.length!==i.length?(0,s.vV)(`expected ${e.length} cache IDs, got ${i.length} instead`):i.forEach(((t,n)=>{const{auctionInstance:i,bidResponse:o,afterBidAdded:d}=e[n];var c;""===t.uuid?(0,s.JE)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(p(o,(c=t.uuid,`${r.$W.getConfig("cache.url")}?uuid=${c}`),t.uuid),(0,a.v8)(i,o),d())}))}))}let b,y,v;r.$W.getConfig("cache",(e=>{let{cache:t}=e;b="number"==typeof t.batchSize&&t.batchSize>0?t.batchSize:1,y="number"==typeof t.batchTimeout&&t.batchTimeout>0?t.batchTimeout:0,t.useLocal&&!v&&(v=o.n.onExpiry((e=>{e.getBidsReceived().forEach((e=>{const t=c.get(e.videoCacheKey);t&&t.startsWith("blob")&&URL.revokeObjectURL(t),c.delete(e.videoCacheKey)}))})))}));const E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=[[]],i=!1;const r=e=>e();return function(o,s,a){const d=y>0?e:r;n[n.length-1].length>=b&&n.push([]),n[n.length-1].push({auctionInstance:o,bidResponse:s,afterBidAdded:a}),i||(i=!0,d((()=>{n.forEach(t),n=[[]],i=!1}),y))}}()}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7769],{8944:(t,n,e)=>{e.d(n,{M:()=>o,g:()=>i});var c=e(1069);function i(){try{const t=(0,c.mb)();let{scrollY:n,scrollX:e}=t;const{height:i,width:h}=o();return{top:n,right:e+h,bottom:n+i,left:e}}catch(t){return{}}}function o(){const t=(0,c.Ot)();try{const n=t.innerHeight||t.document.documentElement.clientHeight||t.document.body.clientHeight||0;return{width:t.innerWidth||t.document.documentElement.clientWidth||t.document.body.clientWidth||0,height:n}}catch(t){return{}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2139],{43:(t,e,n)=>{n.d(e,{k:()=>c,w:()=>r});const s=0,l=1;class c{#t;#e;constructor(t){if("function"!=typeof t)throw new Error("resolver not a function");const e=[],n=[];let[c,r]=[s,l].map((t=>function(l){if(t===s&&"function"==typeof l?.then)l.then(c,r);else if(!e.length)for(e.push(t,l);n.length;)n.shift()()}));try{t(c,r)}catch(t){r(t)}this.#t=e,this.#e=n}then(t,e){const n=this.#t;return new this.constructor(((l,c)=>{const r=()=>{let r=n[1],[h,i]=n[0]===s?[t,l]:[e,c];if("function"==typeof h){try{r=h(r)}catch(t){return void c(t)}i=l}i(r)};n.length?r():this.#e.push(r)}))}catch(t){return this.then(null,t)}finally(t){let e;return this.then((n=>(e=n,t())),(n=>(e=this.constructor.reject(n),t()))).then((()=>e))}static#n(t,e,n){let s=t.length;function l(){e.apply(this,arguments),--s<=0&&n&&n()}0===t.length&&n?n():t.forEach(((t,e)=>this.resolve(t).then((t=>l(!0,t,e)),(t=>l(!1,t,e)))))}static race(t){return new this(((e,n)=>{this.#n(t,((t,s)=>t?e(s):n(s)))}))}static all(t){return new this(((e,n)=>{let s=[];this.#n(t,((t,e,l)=>t?s[l]=e:n(e)),(()=>e(s)))}))}static allSettled(t){return new this((e=>{let n=[];this.#n(t,((t,e,s)=>n[s]=t?{status:"fulfilled",value:e}:{status:"rejected",reason:e}),(()=>e(n)))}))}static resolve(t){return new this((e=>e(t)))}static reject(t){return new this(((e,n)=>n(t)))}}function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e>0)return setTimeout(t,e);t()}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1085],{4595:(e,t,n)=>{n.d(t,{G:()=>s});const s='(()=>{"use strict";window.render=function({ad:e,adUrl:t,width:n,height:i,instl:d},{mkFrame:r},s){if(!e&&!t)throw{reason:"noAd",message:"Missing ad markup or URL"};{if(null==i){const e=s.document?.body;[e,e?.parentElement].filter((e=>null!=e?.style)).forEach((e=>e.style.height="100%"))}const h=s.document,o={width:n??"100%",height:i??"100%"};if(t&&!e?o.src=t:o.srcdoc=e,h.body.appendChild(r(h,o)),d&&s.frameElement){const e=s.frameElement.style;e.width=n?`${n}px`:"100vw",e.height=i?`${i}px`:"100vh"}}}})();'}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[8498],{9766:(e,t,r)=>{r.d(t,{T:()=>f,A:()=>m});const n=new WeakMap;var i=r(1069),s=r(1371);var o=r(3895);var a=r(5561);var d=r(1e3),p=r(3858);const c={[d.S3]:{fpd:{priority:99,fn(e,t){(0,i.D9)(e,t.ortb2)}},onlyOneClient:{priority:-99,fn:(0,p.i8)("ORTB request")},props:{fn(e,t){Object.assign(e,{id:e.id||(0,i.lk)(),test:e.test||0});const r=parseInt(t.timeout,10);isNaN(r)||(e.tmax=r)}}},[d.Tb]:{fpd:{priority:99,fn(e,t){(0,i.D9)(e,t.ortb2Imp)}},id:{fn(e,t){e.id=t.bidId}},banner:{fn:function(e,t,r){if(r.mediaType&&r.mediaType!==s.D4)return;const n=t?.mediaTypes?.banner;if(n){const r={topframe:!0===(0,i.al)()?0:1};n.sizes&&null==t.ortb2Imp?.banner?.format&&(r.format=(0,i.y$)(n.sizes).map(i.cf)),n.hasOwnProperty("pos")&&(r.pos=n.pos),e.banner=(0,i.D9)(r,e.banner)}}},pbadslot:{fn(e){const t=e.ext?.data?.pbadslot;t&&"string"==typeof t||delete e.ext?.data?.pbadslot}},secure:{fn(e,t){e.secure=e.secure??1}}},[d.WR]:{mediaType:{priority:99,fn:a.K},banner:{fn:function(){let{createPixel:e=(e=>(0,i.Tz)(decodeURIComponent(e),i.Bk))}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,r){t.mediaType===s.D4&&(r.adm&&r.nurl?t.ad=e(r.nurl)+r.adm:r.adm?t.ad=r.adm:r.nurl&&(t.adUrl=r.nurl))}}()},props:{fn(e,t,r){Object.entries({requestId:r.bidRequest?.bidId,seatBidId:t.id,cpm:t.price,currency:r.ortbResponse.cur||r.currency,width:t.w,height:t.h,wratio:t.wratio,hratio:t.hratio,dealId:t.dealid,creative_id:t.crid,creativeId:t.crid,burl:t.burl,ttl:t.exp||r.ttl,netRevenue:r.netRevenue}).filter((e=>{let[t,r]=e;return void 0!==r})).forEach((t=>{let[r,n]=t;return e[r]=n})),e.meta||(e.meta={}),t.adomain&&(e.meta.advertiserDomains=t.adomain),t.ext?.dsa&&(e.meta.dsa=t.ext.dsa),t.cat&&(e.meta.primaryCatId=t.cat[0],e.meta.secondaryCatIds=t.cat.slice(1)),t.attr&&(e.meta.attr=t.attr),t.ext?.eventtrackers&&(e.eventtrackers=(e.eventtrackers??[]).concat(t.ext.eventtrackers))}}}};c[d.Tb].native={fn:function(e,t,r){if(r.mediaType&&r.mediaType!==s.s6)return;let n=t.nativeOrtbRequest;n&&(n=Object.assign({},r.nativeRequest,n),n.assets?.length?e.native=(0,i.D9)({},{request:JSON.stringify(n),ver:n.ver},e.native):(0,i.JE)("mediaTypes.native is set, but no assets were specified. Native request skipped.",t))}},c[d.WR].native={fn:function(e,t){if(e.mediaType===s.s6){let r;if(r="string"==typeof t.adm?JSON.parse(t.adm):t.adm,!(0,i.Qd)(r)||!Array.isArray(r.assets))throw new Error("ORTB native response contained no assets");e.native={ortb:r}}}},c[d.Tb].video={fn:function(e,t,r){if(r.mediaType&&r.mediaType!==s.G_)return;const n=t?.mediaTypes?.video;if(!(0,i.Im)(n)){const t=Object.fromEntries(Object.entries(n).filter((e=>{let[t]=e;return o.Zy.has(t)})));if(n.playerSize){const e=(0,i.y$)(n.playerSize).map(i.cf);e.length>1&&(0,i.JE)("video request specifies more than one playerSize; all but the first will be ignored"),Object.assign(t,e[0])}e.video=(0,i.D9)(t,e.video)}}},c[d.WR].video={fn:function(e,t,r){e.mediaType===s.G_&&(r?.imp?.video?.w&&r?.imp?.video?.h&&([e.playerWidth,e.playerHeight]=[r.imp.video.w,r.imp.video.h]),t.adm&&(e.vastXml=t.adm),t.nurl&&(e.vastUrl=t.nurl))}};var u=r(9466);function m(){let{context:e={},processors:t=f,overrides:r={},imp:s,request:o,bidResponse:a,response:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=new WeakMap;function u(e,i,s,o){let a;return function(){return null==a&&(a=function(){let a=s.bind(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.has(e)){const t=Object.entries(e);t.sort(((e,t)=>(e=e[1].priority||0)===(t=t[1].priority||0)?0:e>t?-1:1)),n.set(e,t.map((e=>{let[t,r]=e;return[t,r.fn]})))}const r=n.get(e).filter((e=>{let[r]=e;return!t.hasOwnProperty(r)||t[r]})).map((function(e){let[r,n]=e;return t.hasOwnProperty(r)?t[r].bind(this,n):n}));return function(){const e=Array.from(arguments);r.forEach((t=>{t.apply(this,e)}))}}(t()[e]||{},r[e]||{}));return i&&(a=i.bind(this,a)),function(){try{return a.apply(this,arguments)}catch(e){o.call(this,e,...arguments)}}}()),a.apply(this,arguments)}}const m=u(d.Tb,s,(function(e,t,r){const n={};return e(n,t,r),n}),(function(e,t,r){(0,i.vV)("Error while converting bidRequest to ORTB imp; request skipped.",{error:e,bidRequest:t,context:r})})),l=u(d.S3,o,(function(e,t,r,n){const i={imp:t};return e(i,r,n),i}),(function(e,t,r,n){throw(0,i.vV)("Error while converting to ORTB request",{error:e,imps:t,bidderRequest:r,context:n}),e})),b=u(d.WR,a,(function(e,t,r){const n={};return e(n,t,r),n}),(function(e,t,r){(0,i.vV)("Error while converting ORTB seatbid.bid to bidResponse; bid skipped.",{error:e,bid:t,context:r})})),y=u(d.Cf,p,(function(e,t,r,n){const i={bids:t};return e(i,r,n),i}),(function(e,t,r,n){throw(0,i.vV)("Error while converting from ORTB response",{error:e,bidResponses:t,ortbResponse:r,context:n}),e}));return{toORTB(t){let{bidderRequest:r,bidRequests:n,context:s={}}=t;n=n||r.bids;const o={req:Object.assign({bidRequests:n},e,s),imp:{}};o.req.impContext=o.imp;const a=n.map((t=>{const n=Object.assign({bidderRequest:r,reqContext:o.req},e,s),a=m(t,n);if(null!=a){if(a.hasOwnProperty("id"))return Object.assign(n,{bidRequest:t,imp:a}),o.imp[a.id]=n,a;(0,i.vV)("Converted ORTB imp does not specify an id, ignoring bid request",t,a)}})).filter(Boolean),d=l(a,r,o.req);return o.req.bidderRequest=r,null!=d&&c.set(d,o),d},fromORTB(e){let{request:t,response:r}=e;const n=c.get(t);if(null==n)throw new Error("ortbRequest passed to `fromORTB` must be the same object returned by `toORTB`");function s(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign(e,{ortbRequest:t},r)}const o=Object.fromEntries((t.imp||[]).map((e=>[e.id,e]))),a=(r.seatbid||[]).flatMap((e=>(e.bid||[]).map((t=>{if(o.hasOwnProperty(t.impid)&&n.imp.hasOwnProperty(t.impid))return b(t,s(n.imp[t.impid],{imp:o[t.impid],seatbid:e,ortbResponse:r}));(0,i.vV)("ORTB response seatbid[].bid[].impid does not match any imp in request; ignoring bid",t)})))).filter(Boolean);return y(a,r,s(n.req))}}}const f=(0,i.Bj)((()=>(0,u.U)(c,(0,d.yB)(d.qN))))},9466:(e,t,r)=>{r.d(t,{U:()=>i});var n=r(1e3);function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const s=t.shift(),o=t.length>1?i(...t):t[0];return Object.fromEntries(n.zt.map((e=>[e,Object.assign({},s[e],o[e])])))}},5561:(e,t,r)=>{r.d(t,{K:()=>s,X:()=>i});var n=r(1371);const i={1:n.D4,2:n.G_,4:n.s6};function s(e,t,r){if(e.mediaType)return;const n=r.mediaType;if(!n&&!i.hasOwnProperty(t.mtype))throw new Error("Cannot determine mediaType for response");e.mediaType=n||i[t.mtype]}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[10],{3806:(t,n,e)=>{e.d(n,{yq:()=>c});var o=e(6894),a=e(1069),s=e(7873),i=e(5555),r=e(2604);function c(){let t,n,e,{namespace:c,displayName:u,consentDataHandler:l,parseConsentData:m,getNullConsent:d,cmpHandlers:f,DEFAULT_CMP:g="iab",DEFAULT_CONSENT_TIMEOUT:p=1e4}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function C(t){return`consentManagement.${c} ${t}`}function D(t,n){return t(Object.assign({[`${c}Consent`]:l.getConsentData()},n))}function h(){return n().then((t=>{let{error:n}=t;return{error:n,consentData:l.getConsentData()}}))}function T(){null==t&&(t=function(t,n){const e=new WeakSet;return(0,o.Ak)(t,(function(t,o){return n().then((n=>{let{consentData:s,error:i}=n;!i||s&&e.has(i)||(e.add(i),(0,a.JE)(i.message,...i.args||[])),t.call(this,o)})).catch((n=>{(0,a.vV)(`${n?.message} Canceling auction as per consentManagement config.`,...n?.args||[]),t.stopTiming(),"function"==typeof o.bidsBackHandler?o.bidsBackHandler():(0,a.vV)("Error executing bidsBackHandler")}))}))}(c,(()=>n())),(0,s.m)().requestBids.before(t,50),r.U3.before(D),(0,a.fH)(`${u} consentManagement module has been activated...`))}return function(o){if(o=o?.[c],!o||"object"!=typeof o)return(0,a.JE)(C("config not defined, exiting consent manager module")),null!=t&&((0,s.m)().requestBids.getHooks({hook:t}).remove(),r.U3.getHooks({hook:D}).remove(),t=null),{};let b,k;(0,a.O8)(o.cmpApi)?b=o.cmpApi:(b=g,(0,a.fH)(C(`config did not specify cmp.  Using system default setting (${g}).`))),(0,a.Et)(o.timeout)?k=o.timeout:(k=p,(0,a.fH)(C(`config did not specify timeout.  Using system default setting (${p}).`)));const H=(0,a.Et)(o.actionTimeout)?o.actionTimeout:null;let w;"static"===b?(0,a.Qd)(o.consentData)?(e=o.consentData,k=null,w=()=>new i.U9((t=>t(l.setConsentData(m(e)))))):(0,a.vV)(C("config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")):f.hasOwnProperty(b)?w=f[b]:(l.setConsentData(null),(0,a.JE)(`${u} CMP framework (${b}) is not a supported framework.  Aborting consentManagement module and resuming auction.`),w=()=>i.U9.resolve());const y=()=>function(t){let n,{name:e,consentDataHandler:o,setupCmp:a,cmpTimeout:s,actionTimeout:i,getNullConsent:r}=t;return o.enable(),new Promise(((t,c)=>{let u,l=!1;function m(a){null!=n&&clearTimeout(n),n=null!=a?setTimeout((()=>{const n=o.getConsentData()??(l?u:r()),a="timeout waiting for "+(l?"user action on CMP":"CMP to load");o.setConsentData(n),t({consentData:n,error:new Error(`${e} ${a}`)})}),a):null}a((function(t){u=t,l||(l=!0,null!=i&&m(i))})).then((()=>t({consentData:o.getConsentData()})),c),null!=s&&m(s)})).finally((()=>{n&&clearTimeout(n)})).catch((t=>{throw o.setConsentData(null),t}))}({name:u,consentDataHandler:l,setupCmp:w,cmpTimeout:k,actionTimeout:H,getNullConsent:d});return n=(()=>{let t;return function(){return null==t&&(t=y().catch((n=>{throw t=null,n}))),t}})(),T(),{cmpHandler:b,cmpTimeout:k,actionTimeout:H,staticConsentData:e,loadConsentData:h,requestBidsHook:t}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7109],{965:(t,e,n)=>{n.d(e,{c5:()=>o,q4:()=>r});var a=n(5555);const c=0,l=1,r=2;function o(t){let{apiName:e,apiVersion:n,apiArgs:o=["command","callback","parameter","version"],callbackArgs:s=["returnValue","success"],mode:i=c}=t,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;const f={},d=`${e}Call`,p=`${e}Return`;function b(t){const e="string"==typeof t.data&&t.data.includes(p)?JSON.parse(t.data):t.data;if(e?.[p]?.callId){const t=e[p];f.hasOwnProperty(t.callId)&&f[t.callId](...s.map((e=>t[e])))}}const[k,m]=function(){let t,n=u,a=!1;for(;null!=n;){try{if("function"==typeof n[e]){t=n,a=!0;break}}catch(t){}try{if(n.frames[`${e}Locator`]){t=n;break}}catch(t){}if(n===u.top)break;n=n.parent}return[t,a]}();if(!k)return;function g(t){return t=Object.assign({version:n},t),o.map((e=>[e,t[e]]))}function h(t,e,n,a){const c="function"==typeof t;return function(r,o){if(a&&a(),i!==l){(null==o||o?e:n)(c?void 0:r)}c&&t.apply(this,arguments)}}let v;return m?v=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new a.U9(((n,a)=>{const o=k[e](...g({...t,callback:t.callback||i===r?h(t.callback,n,a):void 0}).map((t=>{let[e,n]=t;return n})));(i===l||null==t.callback&&i===c)&&n(o)}))}:(u.addEventListener("message",b,!1),v=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new a.U9(((n,a)=>{const c=Math.random().toString(),r={[d]:{...Object.fromEntries(g(t).filter((t=>{let[e]=t;return"callback"!==e}))),callId:c}};f[c]=h(t?.callback,n,a,(e||null==t?.callback)&&(()=>{delete f[c]})),k.postMessage(r,"*"),i===l&&n()}))}),Object.assign(v,{isDirect:m,close(){!m&&u.removeEventListener("message",b)}})}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5957],{6400:(s,e,t)=>{function n(){const s=[];return{submit(e,t,n){const u=[t,setTimeout((()=>{s.splice(s.indexOf(u),1),n()}),e)];s.push(u)},resume(){for(;s.length;){const[e,t]=s.shift();clearTimeout(t),e()}}}}t.d(e,{L:()=>n})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3005],{1252:(t,e,n)=>{n.d(e,{Cn:()=>i,eu:()=>s,p:()=>o});var l=n(3858),r=n(1069),u=n(433);function a(t){let e;return(0,r.II)()&&(e=window.googletag.pubads().getSlots().find(function(t){return e=>(0,r.sC)(e,t)}(t))),e}function o(t){const e=a(t);return e?{gptSlot:e.getAdUnitPath(),divId:e.getSlotElementId()}:{}}const i=["IAB_AUDIENCE_1_1","IAB_CONTENT_2_2"];function s(t){return Object.entries({[i[0]]:f(t,["user.data"],4),[i[1]]:f(t,l.Dy.map((t=>`${t}.content.data`)),6)}).map((t=>{let[e,n]=t;return n.length?{taxonomy:e,values:n}:null})).filter((t=>t))}function f(t,e,n){return e.flatMap((e=>(0,u.A)(t,e)||[])).filter((t=>t.ext?.segtax===n)).flatMap((t=>t.segment?.map((t=>t.id)))).filter((t=>t)).filter(r.hj)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2422],{4420:(e,n,r)=>{r.d(n,{A:()=>s});const i="application/xml";function s(){let e,n;return{parse:function(n){return(e||(e=new DOMParser),e).parseFromString(n,i)},serialize:function(e){return(n||(n=new XMLSerializer),n).serializeToString(e)}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7650],{5246:(t,n,e)=>{e.d(n,{Mu:()=>o,P8:()=>p,QS:()=>d});var s=e(6916);const o={env:"vp",gdfp_req:1,output:"vast",unviewed_position_start:1},p={protocol:"https",host:"securepubads.g.doubleclick.net",pathname:"/gampad/ads"};function d(){const t=s.mW.getConsentData(),n={};return t&&("boolean"==typeof t.gdprApplies&&(n.gdpr=Number(t.gdprApplies)),t.consentString&&(n.gdpr_consent=t.consentString),t.addtlConsent&&(n.addtl_consent=t.addtlConsent)),n}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[82],{7274:(e,n,t)=>{t.d(n,{l:()=>v});var i=t(5139),o=t(6811),s=t(6916),r=t(1069);function a(e){return null!=e&&0!==e}function c(e){return["MspaServiceProviderMode","Gpc"].some((n=>1===e[n]))||2===e.PersonalDataConsents||1===e.KnownChildSensitiveDataConsents[0]||1===e.KnownChildSensitiveDataConsents[2]||a(e.KnownChildSensitiveDataConsents[1])||0===e.MspaCoveredTransaction}function l(e,n){return["SensitiveDataProcessingOptOutNotice","SensitiveDataLimitUseNotice"].some((t=>e[t]===n))}function u(e){return c(e)||["Sale","Sharing","TargetedAdvertising"].some((n=>{const t=e[`${n}OptOut`],i=e[`${n}OptOutNotice`];return 1===t||2===i||2===t&&0===i}))||2===e.SharingNotice||2===e.SharingOptOut&&0===e.SharingNotice}const f=(()=>{const e=(()=>{const e=[6,7,9,10,12,14,16].map((e=>--e)),n=Array.from(Array(16).keys()).filter((e=>7!==e)),t=n.filter((n=>!e.includes(n)));return Object.fromEntries(Object.entries({1:12,2:16}).map((i=>{let[o,s]=i;const r=e=>e<s;return[o,{cannotBeInScope:e.filter(r),allExceptGeo:n.filter(r),mustHaveConsent:t.filter(r)}]})))})();return function(n){const{cannotBeInScope:t,mustHaveConsent:i,allExceptGeo:o}=e[n.Version];return u(n)||l(n,2)||t.some((e=>a(n.SensitiveDataProcessing[e])))||i.some((e=>1===n.SensitiveDataProcessing[e]))||l(n,0)&&o.some((e=>2===n.SensitiveDataProcessing[e]))}})();const p={[o.Ml]:u,[o.yl]:u,[o.qX]:f,[o.hE]:function(e){const n=e.SensitiveDataProcessing[7];return 1===n||c(e)||l(e,2)||l(e,0)&&2===n}};function v(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.qB,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>s.ad.getConsentData();const l=[],u=`MSPA (GPP '${e}' for section${n.length>1?"s":""} ${n.join(", ")})`;return(0,r.fH)(`Enabling activity controls for ${u}`),Object.entries(o).forEach((i=>{let[o,r]=i;l.push(a(o,u,function(e,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>s.ad.getConsentData()?.applicableSections;return function(){if(i().some((n=>e.includes(n)))){const e=n();if(null==e)return{allow:!1,reason:"consent data not available"};if(![1,2].includes(e.Version))return{allow:!1,reason:`unsupported consent specification version "${e.Version}"`};if(t(e))return{allow:!1}}}}(n,(()=>{return t((n=c()?.parsedSections?.[e],Array.isArray(n)?n.reduceRight(((e,n)=>Object.assign(n,e)),{}):n));var n}),r,(()=>c()?.applicableSections||[]))))})),()=>l.forEach((e=>e()))}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1225],{6743:(n,t,e)=>{e.d(t,{hZ:()=>u,x4:()=>h});var l=e(7873),r=e(2713);function u(n,t,e){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t===e)return n;let u=n;try{u=(0,l.m)().convertCurrency(n,t,e)}catch(n){if(!r)throw n}return u}function h(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n=>[n.cpm,n.currency],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;return function(l,r){return null==n&&(n=r),e(l,r,n,t)}}();return(0,r.NV)((e=>t.apply(null,n(e))))}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2316],{4278:(e,n,t)=>{t.d(n,{G:()=>l});var s=t(8934);const u=new Map;function l(e){let n;return u.has(e)?n=u.get(e):(n=e.getBoundingClientRect(),u.set(e,n)),n}s.gH.before(((e,n)=>{u.clear(),e(n)}))}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1961],{159:(e,t,n)=>{n.d(t,{AS:()=>c,DN:()=>i,MQ:()=>l,P6:()=>s,SF:()=>o,dO:()=>r,ki:()=>a,nn:()=>d,uI:()=>u});const r={auctions:{},infoByAdIdMap:{},bdpMap:{},configuration:{},logsQueue:[],errorQueue:[],eventQueue:null,refererInfo:null},o="kfk",i="projectevents",a="https://qsearch-a.akamaihd.net/log",d="https://navvy.media.net/log",u="2.0.0",l="9.50.0",c="medianet",s=142},4284:(e,t,n)=>{n.d(t,{Fk:()=>l});var r=n(5439),o=n(1069),i=n(159),a=n(8044),d=n(7934),u=n(7873);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{name:a,cid:l,value:s,relatedData:f,logData:p,project:v}=(0,o.Qd)(e)?{...e,logData:t}:{name:e,relatedData:t},g=i.dO.refererInfo||(0,d.EN)(),h=Object.assign({},{logid:i.SF,evtid:i.DN,project:v||(n?"prebidanalytics":"prebid"),dn:g.domain||"",requrl:g.topmostLocation||"",pbav:(0,u.m)().medianetGlobals.analyticsEnabled?i.uI:"",pbver:i.MQ,cid:l||i.dO.configuration.cid||"",event:a||"",value:s||"",rd:f||""},p),m=n?i.ki:i.nn,b=n?(0,r.eP)(h):(0,o.eP)(h);function j(){return m+"?"+b}return{send:function(){if(!n)return void c(m,b,(0,r.Up)(h,["cid","project","event as value"]));const e=j();i.dO.errorQueue.push(e),(0,o.z$)(e)},getUrl:j}}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.RD)(e,{success:()=>{},error:(e,t)=>{let{reason:r}=t;return l(Object.assign(n,{name:"ajax_log_failed",relatedData:r})).send()}},t,{method:"POST"})}},5439:(e,t,n)=>{n.d(t,{B8:()=>u,RW:()=>i,Up:()=>d,eP:()=>a});var r=n(1069),o=n(433);function i(){let e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((t=>Object.entries(e).every((e=>{let[n,r]=e;return t[n]===r}))))}function a(e){return(0,r.K2)(e,((e,t)=>void 0===e?t+"=":((0,r.Qd)(e)&&(e=JSON.stringify(e)),t+"="+encodeURIComponent(e)))).join("&")}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("object"!=typeof e||null===e)return{};const r={};return t.forEach(((i,a)=>{if("function"==typeof i)return;let d,u,[l,c]=i.split(/\sas\s/i);l=l.trim(),u=c?.trim()||l.split(".").pop(),d=(0,o.A)(e,l),"function"==typeof t[a+1]&&(d=t[a+1](d,r,e)),void 0===d&&n||(r[u]=d)})),r}function u(e){try{return e||window.top.document.referrer}catch(e){return document.referrer}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7618],{981:(e,t,i)=>{i.d(t,{m:()=>h});var r=i(9466),d=i(1e3),n=i(433),a=i(1069),s=i(5825),b=i(1445),o=i(3272),p=i(3172);var c=i(3323);var l=i(7873);var f=i(1371);var u=i(3005);const v={[d.S3]:{extPrebid:{fn:function(e,t){(0,p.J)(e,"ext.prebid",(0,a.D9)({auctiontimestamp:t.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}},e.ext?.prebid)),o.$W.getConfig("debug")&&(e.ext.prebid.debug=!0)}},extPrebidChannel:{fn:function(e){(0,p.J)(e,"ext.prebid.channel",Object.assign({name:"pbjs",version:(0,l.m)().version},e.ext?.prebid?.channel))}},extPrebidAliases:{fn:function(e,t,i){let{am:r=b.Ay}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(r.aliasRegistry[t.bidderCode]){const i=r.bidderRegistry[t.bidderCode];if(!i||!i.getSpec().skipPbsAliasing){(0,p.J)(e,`ext.prebid.aliases.${t.bidderCode}`,r.aliasRegistry[t.bidderCode]);const d=o.$W.getConfig(`gvlMapping.${t.bidderCode}`)||i?.getSpec?.().gvlid;d&&(0,p.J)(e,`ext.prebid.aliasgvlids.${t.bidderCode}`,d)}}}}},[d.Tb]:{params:{fn:c.W},adUnitCode:{fn:function(e,t){const i=t.adUnitCode;i&&(0,p.J)(e,"ext.prebid.adunitcode",i)}}},[d.WR]:{mediaType:{fn:s.o,priority:99},videoCache:{fn:function(e,t){if(e.mediaType===f.G_){let{cacheId:i,url:r}=(0,n.A)(t,"ext.prebid.cache.vastXml")||{};if(!i||!r){const{hb_uuid:e,hb_cache_host:d,hb_cache_path:a}=(0,n.A)(t,"ext.prebid.targeting")||{};e&&d&&a&&(i=e,r=`https://${d}${a}?uuid=${e}`)}i&&r&&Object.assign(e,{videoCacheKey:i,vastUrl:r})}},priority:-10},bidderCode:{fn(e,t,i){e.bidderCode=i.seatbid.seat,e.adapterCode=(0,n.A)(t,"ext.prebid.meta.adaptercode")||i.bidRequest?.bidder||e.bidderCode}},pbsBidId:{fn(e,t){const i=(0,n.A)(t,"ext.prebid.bidid");(0,a.O8)(i)&&(e.pbsBidId=i)}},adserverTargeting:{fn(e,t){const i=(0,n.A)(t,"ext.prebid.targeting");(0,a.Qd)(i)&&(e.adserverTargeting=i)}},extPrebidMeta:{fn(e,t){e.meta=(0,a.D9)({},(0,n.A)(t,"ext.prebid.meta"),e.meta)}},pbsWinTrackers:{fn:function(e,t){e.eventtrackers=e.eventtrackers||[],[[t.burl,u.OA],[t?.ext?.prebid?.events?.win,u.RO]].filter((t=>{let[i,r]=t;return i&&null==e.eventtrackers.find((e=>{let{method:t,event:d,url:n}=e;return d===r&&t===u.Ni&&n===i}))})).forEach((t=>{let[i,r]=t;e.eventtrackers.push({method:u.Ni,event:r,url:i})}))}}},[d.Cf]:{serverSideStats:{fn(e,t,i){Object.entries({errors:"serverErrors",responsetimemillis:"serverResponseTimeMs"}).forEach((e=>{let[r,d]=e;const a=(0,n.A)(t,`ext.${r}.${i.bidderRequest.bidderCode}`);a&&(i.bidderRequest[d]=a,i.bidRequests.forEach((e=>e[d]=a)))}))}}}};var g=i(9766);const h=(0,a.Bj)((()=>(0,r.U)((0,g.T)(),v,(0,d.yB)(d.e4))))},5825:(e,t,i)=>{i.d(t,{o:()=>a,s:()=>n});var r=i(1371),d=i(5561);const n={[r.D4]:"banner",[r.s6]:"native",[r.G_]:"video"};function a(e,t,i){let a=i.mediaType;a||(a=d.X.hasOwnProperty(t.mtype)?d.X[t.mtype]:t.ext?.prebid?.type,n.hasOwnProperty(a)||(a=r.D4)),e.mediaType=a}},3323:(e,t,i)=>{i.d(t,{W:()=>d});var r=i(3172);function d(e,t){let i=t.params;i&&(0,r.J)(e,`ext.prebid.bidder.${t.bidder}`,i)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[4472],{1886:(t,o,i)=>{i.d(o,{gl:()=>r,tF:()=>l});var h=i(1069),e=i(4278);const n=function(t){let{w:o,h:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(t){let{w:o,h:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{width:h,height:n,left:l,top:r,right:f,bottom:g,x:u,y:m}=(0,e.G)(t);return(0===h||0===n)&&o&&i&&(h=o,n=i,f=l+o,g=r+i),{width:h,height:n,left:l,top:r,right:f,bottom:g,x:u,y:m}}(t,{w:o,h:i}),{innerHeight:l,innerWidth:r}=(0,h.Ot)(),f=function(t){const o={left:t[0].left,right:t[0].right,top:t[0].top,bottom:t[0].bottom};for(let i=1;i<t.length;++i){if(o.left=Math.max(o.left,t[i].left),o.right=Math.min(o.right,t[i].right),o.left>=o.right)return null;if(o.top=Math.max(o.top,t[i].top),o.bottom=Math.min(o.bottom,t[i].bottom),o.top>=o.bottom)return null}return o.width=o.right-o.left,o.height=o.bottom-o.top,o}([{left:0,top:0,right:r,bottom:l},n]);let g,u;return null!==f?(g=f.width*f.height,u=n.width*n.height,g/u*100):0};function l(t){return!(0,h.al)()&&null!==t}function r(t,o,i){return"visible"===o.document.visibilityState?n(t,i):0}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9147],{9495:(e,r,n)=>{function u(e){return e?.ortb2?.ext?.prebid?.adServerCurrency}n.d(r,{b:()=>u})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2183],{9609:(e,t,n)=>{n.d(t,{C1:()=>d,FN:()=>m,H:()=>c,HX:()=>s,OS:()=>a,Rj:()=>r,nf:()=>p,rY:()=>u,xg:()=>o});var i=n(1371);const o=[i.D4,i.G_,i.s6],r="7.0.0",s=360,a="USD",d="https://hb.yellowblue.io/",p="rise",c=1043,u=[{code:"risexchange",gvlid:c},{code:"openwebxchange",gvlid:280}],m={PRODUCTION:"hb-multi",TEST:"hb-multi-test"}},7668:(e,t,n)=>{n.d(t,{B2:()=>d});var i=n(433),o=n(1069),r=n(1371),s=n(3272),a=n(9609);const d=(e,t)=>({version:a.Rj,supportedMediaTypes:a.xg,buildRequests:function(n,a){const d={},y=n[0],b=y.params.testMode,h=y.params.rtbDomain||e;return d.params=function(e,t,n){const r=window.location.hostname,{syncEnabled:a,filterSettings:d}=s.$W.getConfig("userSync")||{},{bidderCode:p}=t,c=e.params,u=t.timeout,f={wrapper_type:"prebidjs",wrapper_vendor:"pbjs",wrapper_version:"9.50.0",adapter_version:n||"6.0.0",auction_start:t.auctionStart,publisher_id:c.org,publisher_name:r,site_domain:r,dnt:"yes"===navigator.doNotTrack||"1"===navigator.doNotTrack||"1"===navigator.msDoNotTrack?1:0,device_type:g(navigator.userAgent),ua:navigator.userAgent,is_wrapper:!!c.isWrapper,session_id:c.sessionId||(0,o.u5)("bidderRequestId",e),tmax:u},y=(0,o.u5)("userId",e);y&&(f.userIds=JSON.stringify(y));const b=t.ortb2||{};b.site&&(f.site_metadata=JSON.stringify(b.site));b.user&&(f.user_metadata=JSON.stringify(b.user));b.device&&(f.device=b.device);if(a){const e=function(e,t){const n=["all","iframe"],i="image";if(e&&n.some((n=>l(e[n],t))))return"iframe";if(!e||!e[i]||l(e[i],t))return"pixel"}(d,p);e&&(f.cs_method=e)}t.uspConsent&&(f.us_privacy=t.uspConsent);t&&t.gdprConsent&&t.gdprConsent.gdprApplies&&(f.gdpr=t.gdprConsent.gdprApplies,f.gdpr_consent=t.gdprConsent.consentString);t.gppConsent?(f.gpp=t.gppConsent.gppString,f.gpp_sid=t.gppConsent.applicableSections):t.ortb2?.regs?.gpp&&(f.gpp=t.ortb2.regs.gpp,f.gpp_sid=t.ortb2.regs.gpp_sid);c.ifa&&(f.ifa=c.ifa);e.schain&&(f.schain=function(e){if((0,o.Im)(e))return"";let t=`${e.ver},${e.complete}`;return e.nodes.forEach((e=>{t+="!",t+=`${m(e.asi)},`,t+=`${m(e.sid)},`,t+=`${m(e.hp)},`,t+=`${m(e.rid)},`,t+=`${m(e.name)},`,t+=`${m(e.domain)}`})),t}(e.schain));t&&t.refererInfo&&(f.referrer=(0,i.A)(t,"refererInfo.ref"),f.page_url=(0,i.A)(t,"refererInfo.page")||(0,i.A)(window,"location.href"),f.site_domain=(0,i.A)(t,"refererInfo.domain")||(0,i.A)(window,"location.hostname"));return f}(y,a),d.bids=function(e,t){const n=[];e.length&&e.forEach((e=>{n.push(function(e,t){const{params:n}=e,s=p(e);isNaN(n.floorPrice)&&(n.floorPrice=0);const a={mediaType:s.join(","),adUnitCode:(0,o.u5)("adUnitCode",e),sizes:u(e),floorPrice:Math.max(c(e),n.floorPrice),bidId:(0,o.u5)("bidId",e),loop:e.auctionsCount||0,bidderRequestId:(0,o.u5)("bidderRequestId",e),transactionId:e.ortb2Imp?.ext?.tid||"",coppa:0},d=function(e){const t=p(e),n=t[0];if(1===t.length)return(0,i.A)(e,`mediaTypes.${n}.pos`)}(e);(0,o.Fq)(d)&&(a.pos=d);const m=(0,i.A)(e,"ortb2Imp.ext.gpid");m&&(a.gpid=m);const l=n.placementId||function(e){const t=p(e),n=t[0];if(1===t.length)return(0,i.A)(e,`mediaTypes.${n}.name`)}(e);l&&(a.placementId=l);const f=(0,i.A)(e,"ortb2.device.sua");f&&(a.sua=f);const g=(0,i.A)(e,"ortb2.regs.coppa");g&&(a.coppa=1);if(s.includes(r.G_)){const t=(0,i.A)(e,"mediaTypes.video.playbackmethod");let n;(0,o.cy)(t)&&(0,o.Fq)(t[0])?n=t[0]:(0,o.Fq)(t)&&(n=t),n&&(a.playbackMethod=n);const r=(0,i.A)(e,"mediaTypes.video.placement");r&&(a.placement=r);const s=(0,i.A)(e,"mediaTypes.video.minduration");s&&(a.minDuration=s);const d=(0,i.A)(e,"mediaTypes.video.maxduration");d&&(a.maxDuration=d);const p=(0,i.A)(e,"mediaTypes.video.skip");p&&(a.skip=p);const c=(0,i.A)(e,"mediaTypes.video.linearity");c&&(a.linearity=c);const u=(0,i.A)(e,"mediaTypes.video.protocols");u&&(a.protocols=u);const m=(0,i.A)(e,"mediaTypes.video.plcmt");m&&(a.plcmt=m);const l=(0,i.A)(e,"mediaTypes.video.mimes");l&&(a.mimes=l);const f=(0,i.A)(e,"mediaTypes.video.api");f&&(a.api=f)}if(s.includes(r.s6)){const t=(0,i.A)(e,"nativeOrtbRequest");t&&(a.nativeOrtbRequest=t)}return a}(e))}));return n}(n),{method:"POST",url:f(b,h,t),data:d}},interpretResponse:function(e){let{body:t}=e;const n=[];return t.bids&&t.bids.forEach((e=>{const t=function(e){const t={requestId:e.requestId,cpm:e.cpm,currency:e.currency||a.OS,width:e.width,height:e.height,ttl:e.ttl||a.HX,creativeId:e.creativeId,netRevenue:e.netRevenue||!0,nurl:e.nurl,mediaType:e.mediaType,meta:{mediaType:e.mediaType}};e.mediaType===r.G_?t.vastXml=e.vastXml:e.mediaType===r.D4?t.ad=e.ad:e.mediaType===r.s6&&(t.native={ortb:e.native});e.adomain&&e.adomain.length&&(t.meta.advertiserDomains=e.adomain);return t}(e);n.push(t)})),n},getUserSyncs:function(e,t){const n=[];for(const r of t)if(e.iframeEnabled&&(0,i.A)(r,"body.params.userSyncURL")&&n.push({type:"iframe",url:(0,i.A)(r,"body.params.userSyncURL")}),e.pixelEnabled&&(0,o.cy)((0,i.A)(r,"body.params.userSyncPixels"))){const e=r.body.params.userSyncPixels.map((e=>({type:"image",url:e})));n.push(...e)}return n},onBidWon:function(e){null!=e&&((0,o.fH)("onBidWon:",e),e.hasOwnProperty("nurl")&&e.nurl.length>0&&(0,o.z$)(e.nurl))}});function p(e){const t=(0,i.A)(e,"mediaTypes");return(0,o.Qd)(t)?Object.keys(t):[]}function c(e){if(!(0,o.fp)(e.getFloor))return 0;const t=p(e),n=t[0];let i=e.getFloor({currency:"USD",mediaType:1===t.length?n:"*",size:"*"});return(0,o.Qd)(i)&&"USD"===i.currency&&i.floor?i.floor:0}function u(e){let t=[];const n=p(e),r=n[0];return 1===n.length&&(0,i.A)(e,`mediaTypes.${r}.sizes`)?t=e.mediaTypes[r].sizes:(0,o.cy)(e.sizes)&&e.sizes.length>0&&(t=e.sizes),t}function m(e){return""!==e&&void 0!==e?encodeURIComponent(e):""}function l(e,t){if(!e)return!1;const n="include"===e.filter,i=(0,o.cy)(e.bidders)?e.bidders:[t];return n&&(0,o.gR)(i,t)}function f(e,t,n){const i=t.startsWith("http")?"":"https://",o=t.endsWith("/")?t:`${t}/`;return e?`${i}${o}${n.TEST}`:`${i}${o}${n.PRODUCTION}`}function g(e){return/ipad|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(e.toLowerCase())?"5":/iphone|ipod|android|blackberry|opera|mini|windows\\sce|palm|smartphone|iemobile/i.test(e.toLowerCase())?"4":/smart[-_\\s]?tv|hbbtv|appletv|googletv|hdmi|netcast|viera|nettv|roku|\\bdtv\\b|sonydtv|inettvbrowser|\\btv\\b/i.test(e.toLowerCase())?"3":"1"}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5881],{6318:(e,n,t)=>{t.d(n,{Qo:()=>a});var r=t(5139),o=t(6811),c=t(6953),i=t(1069),l=t(433),u=t(3172);function s(e){return Object.assign({wp:!0,run(e,n,t,r,o){const s=t&&t.hasOwnProperty(r),f=s?t[r]:void 0,a=s&&null!=f&&"object"==typeof f?(0,i.Go)(f):f;return function(){const t=null==n?e:(0,l.A)(e,n),d=t&&(0,c.$V)(t[r]),h=d?t[r]:void 0;!s&&d&&o()?delete t[r]:s===d&&h===f&&(0,i.bD)(h,a)||!o()||(0,u.J)(e,(null==n?[]:[n]).concat(r).join("."),a)}}},e)}const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.io;return function(e){const n={},t=[];e.forEach((e=>{e.wp&&t.push(e),e.get&&e.paths.forEach((t=>{let r=n;t.split(".").forEach((e=>{r.children=r.children||{},r.children[e]=r.children[e]||{},r=r.children[e]})),r.rule=e}))}));const r=(0,c.nl)(t);function o(e,n,t){return new Proxy(e,{get(e,r,i){const l=Reflect.get(e,r,i);if(n.hasOwnProperty(r)){const{children:e,rule:i}=n[r];if(e&&null!=l&&"object"==typeof l)return o(l,e,t);if(i&&(0,c.$V)(l)&&t(i))return i.get(l)}return l}})}return function(e){const t={};for(var i=arguments.length,l=new Array(i>1?i-1:0),u=1;u<i;u++)l[u-1]=arguments[u];return{obj:o(e,n.children||{},(0,c.uD)(t,...l)),verify:(s=r(t,e,...l),function(){s.forEach((e=>e()))})};var s}}((0,c.ZP)(e).concat(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.io;return[{name:o.yl,paths:c.Vx,applies:(0,c.p4)(o.yl,e)},{name:o.qX,paths:c.l7,applies:(0,c.p4)(o.qX,e)}].map(s)}(e)))}();const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return function(n,t){n.global=n.global||{},n.bidder=n.bidder||{};const r=new Set(Object.keys(n.bidder)),o=[];function c(n){const r=e(n,t);return o.push(r.verify),r.obj}const l={global:c(n.global),bidder:Object.fromEntries(Object.entries(n.bidder).map((e=>{let[n,t]=e;return[n,c(t)]})))};return{obj:l,verify(){Object.entries(l.bidder).filter((e=>{let[n]=e;return!r.has(n)})).forEach((r=>{let[o,c]=r;const l={},u=e(l,t);(0,i.D9)(u.obj,c),u.verify(),n.bidder[o]=l})),o.forEach((e=>e()))}}}}()}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[6550],{8702:(p,n,e)=>{function t(p,n,e){let t={};return p&&("boolean"==typeof p.gdprApplies&&(t.gdpr=Number(p.gdprApplies)),"string"==typeof p.consentString&&(t.gdpr_consent=p.consentString)),n&&(t.us_privacy=encodeURIComponent(n)),e?.gppString&&(t.gpp=e.gppString,t.gpp_sid=e.applicableSections?.toString()),t}e.d(n,{d:()=>t})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7247],{8656:(r,e,a)=>{a.d(e,{D:()=>o});var n=a(3858),t=a(433);const s=["user.keywords"].concat(n.Dy.flatMap((r=>["keywords","content.keywords"].map((e=>`${r}.${e}`)))));function o(r){for(var e=arguments.length,a=new Array(e>1?e-1:0),n=1;n<e;n++)a[n-1]=arguments[n];return function(){const r=new Set;for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return a.filter((r=>r)).flatMap((r=>Array.isArray(r)?r:r.split(","))).map((r=>r.replace(/^\s*/,"").replace(/\s*$/,""))).filter((r=>r)).forEach((e=>r.add(e))),Array.from(r.keys())}(...s.map((e=>(0,t.A)(r,e))),...a)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2764],{2339:(o,n,e)=>{function t(o,n){return function(){const e=document.domain.split("."),t=`_gd${Date.now()}_${n}`;for(let n,i,s=0;s<e.length;s++){const u=e.slice(s).join(".");if(o.setCookie(t,"1",void 0,void 0,u),i=o.getCookie(t),o.setCookie(t,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,u),"1"!==i)return n;n=u}}}e.d(n,{w:()=>t})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[4577],{6568:(n,e,s)=>{function u(n,e,s){return s?n+e+"="+encodeURIComponent(s)+"&":n}s.d(e,{v:()=>u})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[41],{3399:(e,t,i)=>{var n=i(7873),d=i(1069),a=i(433),o=i(1657),r=i(8934),u=i(3895),c=i(9214),l=i(8693),s=i(3272),f=i(1371),g=i(7314),h=i(8969);const p="hb_pb_cat_dur",v="hb_cache_id";let b=50,m=5,T=function(){let e={};function t(t){e[t]={},e[t].bidStorage=new Set,e[t].queueDispatcher=function(e){let t,i=1;return function(n,d,a,o){const r=this;var u=function(){y.call(r,n,d,a)};clearTimeout(t),o?i=1:i===m?(i=1,u()):(i++,t=setTimeout(u,e))}}(b),e[t].initialCacheKey=(0,d.lk)()}return{addBid:function(i){e[i.auctionId]||t(i.auctionId),e[i.auctionId].bidStorage.add(i)},removeBid:function(t){e[t.auctionId].bidStorage.delete(t)},getBids:function(t){return e[t.auctionId]&&e[t.auctionId].bidStorage.values()},getQueueDispatcher:function(t){return e[t.auctionId]&&e[t.auctionId].queueDispatcher},setupInitialCacheKey:function(t){e[t.auctionId]||(e[t.auctionId]={},e[t.auctionId].initialCacheKey=(0,d.lk)())},getInitialCacheKey:function(t){return e[t.auctionId]&&e[t.auctionId].initialCacheKey}}}();function C(e,t){let i=T.getInitialCacheKey(e),n=(0,a.A)(e,"video.durationBucket");const d=function(e){let t;if(s.$W.getConfig("adpod.prioritizeDeals")&&(0,a.A)(e,"video.dealTier")){const i=s.$W.getConfig(`adpod.dealTier.${e.bidderCode}.prefix`);t=i?i+(0,a.A)(e,"video.dealTier"):(0,a.A)(e,"video.dealTier")}else{const i=(0,o.mO)(e);t=(0,o.ZV)(i)(e)}return t}(e);let r;if(t){r=`${d}_${(0,a.A)(e,"meta.adServerCatId")}_${n}s`}else r=`${d}_${n}s`;e.adserverTargeting||(e.adserverTargeting={}),e.adserverTargeting[p]=r,e.adserverTargeting[v]=i,e.videoCacheKey=i,e.customCacheKey=`${r}_${i}`}function y(e,t,i){!function(e){for(let t=0;t<e.length;t++)T.removeBid(e[t])}(t),(0,l.M_)(t,(function(n,a){if(n)(0,d.JE)(`Failed to save to the video cache: ${n}. Video bid(s) must be discarded.`);else for(let n=0;n<a.length;n++)""!==a[n].uuid?(0,o.v8)(e,t[n]):(0,d.fH)(`Detected a bid was not cached because the custom key was already registered.  Attempted to use key: ${t[n].customCacheKey}. Bid was: `,t[n]),i()}))}function S(e,t,i,n,r){if(r&&r.context===f.LM){let e=s.$W.getConfig("adpod.brandCategoryExclusion");!(0,a.A)(i,"meta.adServerCatId")&&e?((0,d.JE)("Detected a bid without meta.adServerCatId while setConfig({adpod.brandCategoryExclusion}) was enabled.  This bid has been rejected:",i),n()):!1===s.$W.getConfig("adpod.deferCaching")?(T.addBid(i),C(i,e),function(e,t,i){let n=T.getBids(t);if(n){let d=Array.from(n),a=T.getQueueDispatcher(t),r=!(e.getAuctionStatus()===o.AA);a(e,d,i,r)}else(0,d.JE)("Attempted to cache a bid from an unknown auction. Bid:",t)}(t,i,n)):(T.setupInitialCacheKey(i),C(i,e),(0,o.v8)(t,i),n())}else e.call(this,t,i,n,r)}function E(e,t){let i=t.filter((e=>{let t=(0,a.A)(e,"mediaTypes"),i=(0,a.A)(t,"video");if(i&&i.context===f.LM){if(Object.keys(t).length>1)return(0,d.JE)(`Detected more than one mediaType in adUnitCode: ${e.code} while attempting to define an 'adpod' video adUnit.  'adpod' adUnits cannot be mixed with other mediaTypes.  This adUnit will be removed from the auction.`),!1;let n=`Detected missing or incorrectly setup fields for an adpod adUnit.  Please review the following fields of adUnitCode: ${e.code}.  This adUnit will be removed from the auction.`,a=!!(i.playerSize&&((0,d.Uu)(i.playerSize,2)||(0,d.cy)(i.playerSize)&&i.playerSize.every((e=>(0,d.Uu)(e,2))))||i.sizeConfig),o=!!(i.adPodDurationSec&&(0,d.Et)(i.adPodDurationSec)&&i.adPodDurationSec>0),r=!!(i.durationRangeSec&&(0,d.Uu)(i.durationRangeSec)&&i.durationRangeSec.every((e=>e>0)));if(!a||!o||!r)return n+=a?"":"\nmediaTypes.video.playerSize",n+=o?"":"\nmediaTypes.video.adPodDurationSec",n+=r?"":"\nmediaTypes.video.durationRangeSec",(0,d.JE)(n),!1}return!0}));t=i,e.call(this,t)}function A(e,t,i,n,o){if(o===f.LM){let i=!0;if(s.$W.getConfig("adpod.brandCategoryExclusion")&&!(0,a.A)(t,"meta.primaryCatId")&&(i=!1),(0,a.A)(t,"video"))if((0,a.A)(t,"video.context")&&t.video.context===f.LM||(i=!1),!(0,a.A)(t,"video.durationSeconds")||t.video.durationSeconds<=0)i=!1;else{let e=function(e,t){let i=(0,a.A)(t,"video.durationSeconds"),n=e.durationRangeSec;if(n.sort(((e,t)=>e-t)),e.requireExactDuration){if(!(n||[]).find((e=>e===i)))return(0,d.JE)("Detected a bid with a duration value not part of the list of accepted ranges specified in adUnit.mediaTypes.video.durationRangeSec.  Exact match durations must be used for this adUnit. Rejecting bid: ",t),!1;t.video.durationBucket=i}else{let e=Math.max(...n);if(!(i<=e+2))return(0,d.JE)("Detected a bid with a duration value outside the accepted ranges specified in adUnit.mediaTypes.video.durationRangeSec.  Rejecting bid: ",t),!1;{let e=(n||[]).find((e=>e+2>=i));t.video.durationBucket=e}}return!0}(n,t);e||(i=!1)}s.$W.getConfig("cache.url")||!t.vastXml||t.vastUrl||((0,d.vV)('\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      '),i=!1),e.bail(i)}else e.call(this,t,i,n,o)}function D(e,t){return e.adserverTargeting[h.xS.PRICE_BUCKET]/e.video.durationBucket<t.adserverTargeting[h.xS.PRICE_BUCKET]/t.video.durationBucket?1:e.adserverTargeting[h.xS.PRICE_BUCKET]/e.video.durationBucket>t.adserverTargeting[h.xS.PRICE_BUCKET]/t.video.durationBucket?-1:0}s.$W.getConfig("adpod",(e=>function(e){void 0!==e.bidQueueTimeDelay&&("number"==typeof e.bidQueueTimeDelay&&e.bidQueueTimeDelay>0?b=e.bidQueueTimeDelay:(0,d.JE)(`Detected invalid value for adpod.bidQueueTimeDelay in setConfig; must be a positive number.  Using default: ${b}`)),void 0!==e.bidQueueSizeLimit&&("number"==typeof e.bidQueueSizeLimit&&e.bidQueueSizeLimit>0?m=e.bidQueueSizeLimit:(0,d.JE)(`Detected invalid value for adpod.bidQueueSizeLimit in setConfig; must be a positive number.  Using default: ${m}`))}(e.adpod))),(0,c.pT)((0,c.Yn)("callPrebidCache"),S),(0,c.pT)(r.Z,E),(0,c.pT)(u.E2,A);const I={TARGETING_KEY_PB_CAT_DUR:p,TARGETING_KEY_CACHE_ID:v,getTargeting:function(){let{codes:e,callback:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t)return void(0,d.vV)("No callback function was defined in the getTargeting call.  Aborting getTargeting().");e=e||[];const i=function(e){return g.n.getAdUnits().filter((e=>(0,a.A)(e,"mediaTypes.video.context")===f.LM)).filter((t=>!(e.length>0)||-1!=e.indexOf(t.code)))}(e),n=g.n.getBidsReceived(),o=s.$W.getConfig("adpod.brandCategoryExclusion"),r=s.$W.getConfig("adpod.deferCaching"),u="boolean"!=typeof r||r;let c=function(e,t){let i=t.map((e=>e.code));return e.filter((e=>-1!=i.indexOf(e.adUnitCode)&&e.video&&e.video.context===f.LM))}(n,i);if(c=o||u?function(e){let t=e.map((e=>Object.assign({},e,{[p]:e.adserverTargeting[p]})));t=(0,d.$z)(t,p);let i=[];return Object.keys(t).forEach((e=>{var n;t[e].sort((n="responseTimestamp",function(e,t){return e[n]<t[n]?1:e[n]>t[n]?-1:0})),i.push(t[e][0])})),i}(c):c,s.$W.getConfig("adpod.prioritizeDeals")){let[e,t]=c.reduce(((e,t)=>{let i=(0,a.A)(t,"video.dealTier"),n=s.$W.getConfig(`adpod.dealTier.${t.bidderCode}.minDealTier`);return n&&i?i>=n?e[1].push(t):e[0].push(t):i?e[1].push(t):e[0].push(t),e}),[[],[]]);t.sort(D),e.sort(D),c=t.concat(e)}else c.sort(D);let h={};if(!1===u)i.forEach((e=>{let t=[],i=(0,a.A)(e,"mediaTypes.video.adPodDurationSec");c.filter((t=>t.adUnitCode===e.code)).forEach(((e,n,d)=>{e.video.durationBucket<=i&&(t.push({[p]:e.adserverTargeting[p]}),i-=e.video.durationBucket),n===d.length-1&&t.length>0&&t.push({[v]:e.adserverTargeting[v]})})),h[e.code]=t})),t(null,h);else{let e=[];i.forEach((t=>{let i=(0,a.A)(t,"mediaTypes.video.adPodDurationSec");c.filter((e=>e.adUnitCode===t.code)).forEach((t=>{t.video.durationBucket<=i&&(e.push(t),i-=t.video.durationBucket)}))})),function(e,t){(0,l.M_)(e,(function(i,n){if(i)t(i,null);else{let i=[];for(let t=0;t<n.length;t++)""!==n[t]&&i.push(e[t]);t(null,i)}}))}(e,(function(e,i){if(e)t(e,null);else{let e=(0,d.$z)(i,"adUnitCode");Object.keys(e).forEach((t=>{let i=[];e[t].forEach(((e,t,n)=>{i.push({[p]:e.adserverTargeting[p]}),t===n.length-1&&i.length>0&&i.push({[v]:e.adserverTargeting[v]})})),h[t]=i})),t(null,h)}}))}return h}};Object.freeze(I),(0,c.xG)("adpod",(function(){(0,d.Qd)(arguments.length<=0?void 0:arguments[0])?function(e,t){for(let i in t)e[i]=t[i]}(arguments.length<=0?void 0:arguments[0],I):(0,d.vV)("Adpod module needs plain object to share methods with submodule")})),(0,n.E)("adpod")}},e=>{e.O(0,[802,7769,2139,1085],(()=>{return t=3399,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[773],{2199:(t,e,r)=>{var n=r(7873),a=r(3272),o=r(5139);const s="allowActivities",i=`${s} config`;!function(t){const e=new Map,r=new Map,n=new Map;function o(t){return Object.fromEntries(Object.entries(t).filter((t=>{let[e]=t;return!e.startsWith("_")})))}a.$W.getConfig(s,(a=>{n.clear(),Array.from(e.values()).flatMap((t=>Array.from(t.values()))).forEach((t=>t())),e.clear(),Array.from(r.values()).forEach((t=>t())),r.clear(),Object.entries(a[s]).forEach((a=>{let[s,c]=a;!1===c.default&&function(e){r.has(e)||r.set(e,t(e,i,(function(){return{allow:!1,reason:"activity denied by default"}}),Number.POSITIVE_INFINITY))}(s);const f=new Map;n.set(s,f),(c.rules||[]).forEach((t=>{const e=null==t.priority?1:t.priority;f.has(e)||f.set(e,[]),f.get(e).push(t)})),Array.from(f.keys()).forEach((r=>function(r,a){e.has(r)||e.set(r,new Map);const s=e.get(r);s.has(a)||s.set(a,t(r,i,(function(t){for(const e of n.get(r).get(a))if(!e.condition||e.condition(o(t)))return{allow:e.allow,reason:e}}),a))}(s,r)))}))}))}(o.qB),(0,n.E)("allowActivities")}},t=>{t.O(0,[802,7769,2139,1085],(()=>{return e=2199,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5369],{8835:(e,t,n)=>{var r=n(7873),i=n(7377),s=n(1371),a=n(1069),o=n(433),d=n(3272),u=n(2938),l=n(8044);const c=(0,u.vM)({bidderCode:"amx"}),p=/\.com?\.\w{2,4}$/,m=/^\s*<\??(?:vast|xml)/i,f="https://1x1.a-mo.net/",g=f+"hbx/",b=f+"e",h="__amuidpb";const y=(e,t)=>e.concat((0,o.A)(t,`${s.D4}.sizes`,[])||[]).concat((0,o.A)(t,`${s.G_}.sizes`,[])||[]).sort(((e,t)=>t[0]*t[1]-e[0]*e[1]))[0];function C(e,t){return null==e?[]:e.map(t).reduce(((e,t)=>null!=t&&e.concat(t)),[])}function I(e){return null!=(t=e.adm)&&m.test(t)?s.G_:s.D4;var t}const A=(e,t)=>null==e||typeof e===t;function v(e){const t=e.hostname.split("."),n=t.slice(t.length-(p.test(e.hostname)?3:2)).join(".");return btoa(n).replace(/=+$/,"")}const w=encodeURIComponent;function S(){try{return c.getDataFromLocalStorage(h)}catch(e){return null}}function T(e){const t=[];return Object.keys(e||{}).forEach((n=>{t.push(w(n)+"="+w(String(e[n])))})),w(t.join("&"))}function $(e){const t={};return(0,a.bu)(e,(e=>{t[e.bidId]=function(e){const t=y(e.sizes,e.mediaTypes)||[0,0],n=e.mediaType===s.G_||s.G_ in e.mediaTypes,r=n||t[1]>100,i=(0,o.A)(e,"params.tagId"),a=null!=e.params&&"string"==typeof e.params.adUnitId&&""!==e.params.adUnitId?e.params.adUnitId:e.adUnitCode,d=[e.sizes,(0,o.A)(e,`mediaTypes.${s.D4}.sizes`,[])||[],(0,o.A)(e,`mediaTypes.${s.G_}.sizes`,[])||[]],u=(0,o.A)(e,`mediaTypes.${s.G_}`,{})||{},l={au:a,av:r,vd:u,vr:n,ms:d,aw:t[0],ah:t[1],tf:0,sc:e.schain||{},f:D(O(e)),rtb:e.ortb2Imp};"string"==typeof i&&i.length>0&&(l.i=i);return l}(e)})),t}const _=(e,t)=>(0,a.z$)(`${g}g_${e}?${(0,a.eP)({...t,ts:Date.now(),eid:(0,a.s0)()})}`),x=0;function D(e){return"number"==typeof e&&isFinite(e)&&e>0?e:x}function O(e){if(!(0,a.fp)(e.getFloor))return(0,o.A)(e,"params.floor",x);try{const t=e.getFloor({currency:"USD",mediaType:"*",size:"*",bidRequest:e});return t?.floor}catch(e){return(0,a.vV)("call to getFloor failed: ",e),x}}function U(e,t,n){return(0,o.A)(e,"refererInfo."+t,n)}function q(e,t){if(null==e)return!1;const n=e[t];return null!=n&&(!!("*"===n.bidders||(0,a.cy)(n.bidders)&&-1!==n.bidders.indexOf("amx"))&&(null==n.filter||"include"===n.filter))}function R(){const e=d.$W.getConfig("userSync");if(null==e)return{d:0,l:0,t:0,e:!0};const t={d:e.syncDelay,l:e.syncsPerBidder,t:0,e:e.syncEnabled};return q(e.filterSettings,"all")?(t.t=0,t):(q(e.filterSettings,"iframe")&&(t.t|=2),q(e.filterSettings,"image")&&(t.t|=1),t)}function j(e){return null!=e?.gppConsent?e.gppConsent:e?.ortb2?.regs?.gpp??{gppString:"",applicableSections:""}}function z(e){if(null==e.refererInfo)return{r:"",t:!1,c:"",l:0,s:[]};const t=e.refererInfo;return{r:t.topmostLocation,t:t.reachedTop,l:t.numIframes,s:t.stack,c:t.canonicalUrl}}const k=(e,t)=>!!(e.amx??e[t]??e.standard??{}).allowAlternateBidderCodes,G={code:"amx",gvlid:737,supportedMediaTypes:[s.D4,s.G_],isBidRequestValid:e=>A((0,o.A)(e,"params.endpoint",null),"string")&&A((0,o.A)(e,"params.tagId",null),"string"),buildRequests(e,t){const n=(r=t,(0,a.Dl)(r.refererInfo?.topmostLocation||window.location.href));var r;const i=(0,o.A)(e[0],"params.tagId",null),s=(0,o.A)(e[0],"params.testMode",0),u=null!=e[0]?e[0]:{bidderRequestsCount:0,bidderWinsCount:0,bidRequestsCount:0};var l,c;return{data:{a:(0,a.lk)(),B:0,b:n.host,brc:u.bidderRequestsCount||0,bwc:u.bidderWinsCount||0,trc:u.bidRequestsCount||0,tm:(c=s,!0===c||1===c||"true"===c),V:"9.50.0",vg:"pbjs",i:s&&null!=i?i:v(n),l:{},f:.01,cv:"pba1.3.4",st:"prebid",h:screen.height,w:screen.width,gs:(0,o.A)(t,"gdprConsent.gdprApplies",""),gc:(0,o.A)(t,"gdprConsent.consentString",""),gpp:j(t),u:U(t,"page",n.href),do:U(t,"site",n.hostname),re:U(t,"ref"),am:S(),usp:t.uspConsent||"1---",smt:1,d:"",m:$(e),cpp:d.$W.getConfig("coppa")?1:0,fpd2:t.ortb2,tmax:t.timeout,amp:U(t,"isAmp",null),ri:z(t),sync:R(),eids:(l=e.reduce(((e,t)=>(null==t||null==t.userIdAsEids||(0,a.bu)(t.userIdAsEids,(t=>{null!=t&&(e[t.source]=t)})),e)),{}),null!=Object.values?Object.values(l):Object.keys(l).map((e=>l[e])))},method:"POST",browsingTopics:!0,url:(0,o.A)(e[0],"params.endpoint","https://prebid.a-mo.net/a/c"),withCredentials:!0}},getUserSyncs(e,t,n,r,i){const s={gdpr_consent:w(n?.consentString||""),gdpr:w(n?.gdprApplies?1:0),us_privacy:w(r||""),gpp:w(i?.gppString||""),gpp_sid:w(i?.applicableSections||"")},o={url:`https://prebid.a-mo.net/isyn?${(0,a.eP)(s)}`,type:"iframe"};if(null==t||0===t.length)return e.iframeEnabled?[o]:[];const d=[];let u=!1;return(0,a.bu)(t,(function(t){let{body:n}=t;null!=n&&null!=n.p&&n.p.hreq&&(0,a.bu)(n.p.hreq,(function(t){const n=-1!==t.indexOf("__st=iframe")?"iframe":"image";(e.iframeEnabled||"image"===n)&&(u=u||"iframe"===n||-1!==t.indexOf("cchain"),d.push({url:t,type:n}))}))})),!u&&d.length<2&&d.push(o),d},interpretResponse(e,t){const n=e.body;if(null==n||"string"==typeof n)return[];n.am&&"string"==typeof n.am&&function(e){try{c.setDataInLocalStorage(h,e)}catch(e){}}(n.am);let{bidderSettings:i}=(0,r.m)();const a=d.$W.getCurrentBidder(),o=k(i??{},a)||k(d.$W.getConfig("bidderSettings")??{},a);return C(Object.keys(n.r),(e=>C(n.r[e],(n=>n.b.map((n=>{const r=I(n),i=n.adm;if(null==i)return null;const a=function(e,t,n){if(null!=e.w&&e.w>1&&null!=e.h&&e.h>1)return[e.w,e.h];const r=t.m[n];return null==r?[0,0]:[r.aw,r.ah]}(n,t.data,e),d=r===s.D4?240:300,{bc:u,ds:l,dsp:c}=n.ext??{};return{...null!=u&&o?{bidderCode:u}:{},requestId:e,cpm:n.price,width:a[0],height:a[1],creativeId:n.crid,currency:"USD",netRevenue:!0,[r===s.G_?"vastXml":"ad"]:i,meta:{advertiserDomains:n.adomain,mediaType:r,...null!=c?{networkId:c}:{},...null!=l?{demandSource:l}:{}},mediaType:r,ttl:"number"==typeof n.exp?n.exp:d}})))).filter((e=>null!=e))))},onSetTargeting(e){null!=e&&_("pbst",{A:e.bidder,w:e.width,h:e.height,bid:e.adId,c1:e.mediaType,np:e.cpm,aud:e.requestId,a:e.adUnitCode,c2:T(e.adserverTargeting),cn3:e.timeToRespond})},onTimeout(e){if(null==e||!e.length)return;let t=null;const n=e.map((e=>{const n=e.params||{},r=function(e){return null==e.sizes||0===e.sizes.length?[0,0]:e.sizes[0]}(e),{domain:i,page:s,ref:a}=null!=e.ortb2&&null!=e.ortb2.site?e.ortb2.site:{};return null==t&&(t={do:i,u:s,U:S(),re:a,V:"9.50.0",vg:"pbjs"}),{A:e.bidder,mid:n.tagId,a:n.adunitId||e.adUnitCode,bid:e.bidId,n:"g_pbto",aud:e.transactionId,w:r[0],h:r[1],cn:e.timeout,cn2:e.bidderRequestsCount,cn3:e.bidderWinsCount}})),r=JSON.stringify({c:t,e:n});(0,l.hd)(b,{body:r,keepalive:!0,withCredentials:!0,method:"POST"}).catch((e=>{}))},onBidWon(e){null!=e&&_("pbwin",{A:e.bidder,w:e.width,h:e.height,bid:e.adId,C:e.mediaType===s.D4?0:1,np:e.cpm,a:e.adUnitCode})}};(0,i.a$)(G),(0,r.E)("amxBidAdapter")}},e=>{e.O(0,[802,7769,2139,1085],(()=>{return t=8835,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7333],{5579:(e,r,n)=>{var t=n(7873),o=n(7377),a=n(3272),i=n(1371),s=n(2938),d=n(9766);const u="1.1.0",c=(0,s.vM)({bidderCode:"aps"});let p=!1;function l(e,r){const n=a.$W.getConfig("accountID");return window._aps=window._aps||new Map,window._aps.has(n)||window._aps.set(n,{queue:[],store:new Map}),new Promise(((t,o)=>{window._aps.get(n).queue.push(new CustomEvent(e,{detail:{...r,resolve:t,reject:o,source:"prebid-adapter",libraryVersion:u}}))}))}function f(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const r=a.$W.getConfig("accountID")||"default";if("object"==typeof window.aps_prebid&&null!==window.aps_prebid){if("object"==typeof window.aps_prebid[r]&&null!==window.aps_prebid[r])return window.aps_prebid[r];if(e)return window.aps_prebid[r]={},window.aps_prebid[r]}else if(e)return window.aps_prebid={},window.aps_prebid[r]={},window.aps_prebid[r];return null}function b(){const e=function(e){try{if(c.localStorageIsEnabled())return c.getDataFromLocalStorage(e)}catch(e){l("prebidAdapter/localStorage/didFail",{error:e})}return null}(`aps_prebid_${a.$W.getConfig("accountID")||"default"}`);if(e)try{return JSON.parse(e)}catch(e){l("prebidAdapter/storedConfig/didFail",{error:e})}return null}function w(e,r,n){const t=Number(e);return isNaN(t)?(l(`prebidAdapter/canaryRate${r}/didFail`,{error:new Error(`Canary rate is not a valid number: ${e}. Expected a number between 0 and 0.05 (5%).`)}),null):t<0||t>.05?(l(`prebidAdapter/canaryRate${n}/didFail`,{error:new Error(`Canary rate ${t} is out of valid range. Expected a value between 0 and 0.05 (5%).`)}),null):t}const g=function(){const e=f();if(e&&e.roleInstructions&&"string"==typeof e.roleInstructions.prebid)return e.roleInstructions.prebid;const r=b();if(r&&r.roleInstructions&&"string"==typeof r.roleInstructions.prebid)return r.roleInstructions.prebid;const n=a.$W.getConfig("roleInstruction");return"string"==typeof n?n:"canary"},y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"prebid";const r=f();return r&&r.currentRoles?r.currentRoles[e]:void 0},m=function(e,r){void 0===r&&(r=e,e="prebid");const n=f(!0);n.currentRoles=n.currentRoles||{},n.currentRoles[e]=r},R=function(){const e=f();if(e&&("number"==typeof e.canaryRate||"string"==typeof e.canaryRate)){const r=w(e.canaryRate,"GlobalNaN","GlobalRange");if(null!==r)return r}const r=b();if(r&&("number"==typeof r.canaryRate||"string"==typeof r.canaryRate)){const e=w(r.canaryRate,"StoredNaN","StoreRange");if(null!==e)return e}const n=a.$W.getConfig("canaryRate");if("number"==typeof n||"string"==typeof n){const e=w(n,"ConfigNaN","ConfigRange");if(null!==e)return e}return.02};const _=(0,d.A)({context:{netRevenue:!0},request(e,r,n,t){const o=e(r,n,t);return o?.device?.geo&&(delete o.device.geo.lat,delete o.device.geo.lon),o?.user&&(delete o.user.gender,delete o.user.yob,delete o.user.keywords,delete o.user.kwarry,delete o.user.customdata,delete o.user.geo,delete o.user.data),o.ext=o.ext??{},o.ext.account=a.$W.getConfig("accountID"),o.cur=o.cur??["USD"],(o.imp??[]).forEach((e=>{if(!e||!e.banner)return;const r=e.banner.w>=0&&e.banner.h>=0,n=(e.banner.format??[]).length>0;if(!r&&n){const{w:r,h:n}=e.banner.format[0];e.banner.w=r,e.banner.h=n}})),o},bidResponse(e,r,n){let t;2===r.mtype&&(t=r.adm,delete r.adm);const o=e(r,n);return o.mediaType===i.G_&&(o.vastUrl=t),o}}),h={code:"aps",gvlid:793,supportedMediaTypes:[i.D4,i.G_,i.s6],isBidRequestValid:e=>{p||(Math.random()<.01&&l("prebidAdapter/bidRefPixel/fire",{error:u}),p=!0);const r=function(){const e=y(),r=g();return e&&"primary"===e&&"canary"===r?"primary"===y("webclient")?"canary":"primary":r}();return m("prebid",r),function(e){if("primary"===e)return!0;if("canary"===e){const e=R();return Math.random()<e}return!1}(r)},buildRequests:(e,r)=>{let n=a.$W.getConfig("debugURL")??"https://web.ads.aps.amazon-adsystem.com/e/pb/bid";if(a.$W.getConfig("debug")){const e=n.includes("?")?"&":"?";n+="fif"===a.$W.getConfig("renderMethod")?e+"amzn_debug_mode=fif&amzn_debug_mode=1":e+"amzn_debug_mode=1"}return{method:"POST",url:n,data:_.toORTB({bidRequests:e,bidderRequest:r}),options:{contentType:"application/json"}}},onBidderError:e=>{let{error:r,bidderRequest:n}=e;l("prebidAdapter/bid/didFail",{error:r})},onTimeout:e=>{l("prebidAdapter/bid/didTimeout",{error:e})},interpretResponse:(e,r)=>{const n=_.fromORTB({response:e.body,request:r.data}),t=a.$W.getConfig("accountID"),o=a.$W.getConfig("creativeURL")||"https://client.aps.amazon-adsystem.com/prebid-creative.js";return n.bids.forEach((r=>{r.mediaType!==i.G_&&(delete r.ad,r.ad=`<script src="${o}"><\/script>\n<script>\n  const accountID = '${t}';\n  window._aps = window._aps || new Map();\n  if (!window._aps.has(accountID)) {\n    window._aps.set(accountID, { queue: [], store: new Map([['listeners', new Map()]]) });\n  }\n  window._aps.get(accountID).queue.push(\n    new CustomEvent('prebid/creative/render', {\n      detail: {\n        aaxResponse: '${btoa(JSON.stringify(e.body))}',\n        seatBidId: ${JSON.stringify(r.seatBidId)}\n      }\n    })\n  );\n<\/script>`.trim())})),n.bids},getUserSyncs:function(e,r,n,t){return r.flatMap((e=>e?.body?.ext?.userSyncs??[]))}};!function(e){Object.keys(e).forEach((r=>{var n,t;"function"==typeof e[r]&&(e[r]=(n=e[r],t=e=>l(`prebidAdapter/${r}/didFail`,{error:e}),function(){try{for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n.apply(this,r)}catch(e){throw t(e),e}}))}))}(h),(0,o.a$)(h),(0,t.E)("apsBidAdapter")}},e=>{e.O(0,[802,8498,7769,2139,1085],(()=>{return r=5579,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[8793],{6345:(e,n,t)=>{var s=t(7873),i=t(1069),a=t(3172),r=t(3272),o=t(6916),p=t(687),c=t(965),l=t(5555),u=t(3806);let d={};class g{constructor(e,n){this.message=e,this.args=null==n?[]:[n]}}class h{apiVersion="1.1";static INST;static get(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.c5;if(null==this.INST){const n=e({apiName:"__gpp",apiArgs:["command","callback","parameter"],mode:c.q4});if(null==n)throw new g("GPP CMP not found");this.INST=new this(n)}return this.INST}#e;#n;#t=[];initialized=!1;constructor(e){this.cmp=e,[this.#e,this.#n]=["resolve","reject"].map((e=>n=>{for(;this.#t.length;)this.#t.pop()[e](n)}))}init(e){const n=this.updateWhenReady(e);return this.initialized||(e.gppVersion!==this.apiVersion&&(0,i.JE)(`Unrecognized GPP CMP version: ${e.apiVersion}. Continuing using GPP API version ${this.apiVersion}...`),this.initialized=!0,this.cmp({command:"addEventListener",callback:(e,n)=>{null==n||n?"error"===e?.pingData?.cmpStatus?this.#n(new g('CMP status is "error"; please check CMP setup',e)):this.isCMPReady(e?.pingData||{})&&["sectionChange","signalStatus"].includes(e?.eventName)&&this.#e(this.updateConsent(e.pingData)):this.#n(new g("Received error response from CMP",e)),null==o.ad.getConsentData()||null==e?.pingData||this.isCMPReady(e.pingData)||o.ad.setConsentData(null)}})),n}refresh(){return this.cmp({command:"ping"}).then(this.init.bind(this))}updateConsent(e){return new l.U9((n=>{if(null==e||(0,i.Im)(e))throw new g("Received empty response from CMP",e);const t=C(e);(0,i.fH)("Retrieved GPP consent from CMP:",t),o.ad.setConsentData(t),n(t)}))}nextUpdate(){const e=(0,l.v6)();return this.#t.push(e),e.promise}updateWhenReady(e){return this.isCMPReady(e)?this.updateConsent(e):this.nextUpdate()}isCMPReady(e){return"ready"===e.signalStatus}}const m={iab:function(){return new l.U9((e=>e(h.get().refresh())))}};function C(e){if(null!=e?.applicableSections&&!Array.isArray(e.applicableSections)||null!=e?.gppString&&!(0,i.O8)(e.gppString)||null!=e?.parsedSections&&!(0,i.Qd)(e.parsedSections))throw new g("CMP returned unexpected value during lookup process.",e);return["usnatv1","uscav1"].forEach((n=>{e?.parsedSections?.[n]&&(0,i.JE)(`Received invalid section from cmp: '${n}'. Some functionality may not work as expected`,e)})),f(e)}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{gppString:e?.gppString,applicableSections:e?.applicableSections||[],parsedSections:e?.parsedSections||{},gppData:e}}const S=(0,u.yq)({namespace:"gpp",displayName:"GPP",consentDataHandler:o.ad,parseConsentData:C,getNullConsent:()=>f(null),cmpHandlers:m});r.$W.getConfig("consentManagement",(e=>function(e){return d=S(e),d.loadConsentData?.()?.catch?.((()=>null))}(e.consentManagement))),p.w.before((function(e,n){return e(n.then((e=>{const n=o.ad.getConsentData();return n&&(Array.isArray(n.applicableSections)&&(0,a.J)(e,"regs.gpp_sid",n.applicableSections),(0,a.J)(e,"regs.gpp",n.gppString)),e})))})),(0,s.E)("consentManagementGpp")}},e=>{e.O(0,[10,7109,802,7769,2139,1085],(()=>{return n=6345,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5081],{6117:(e,n,t)=>{var r=t(7873),s=t(1069),a=t(3172),o=t(3272),c=t(6916),i=t(1e3),p=t(687),d=t(965),l=t(3806);let u,g,f={};const C=2,m={iab:function(e){return new Promise(((n,t)=>{const r=(0,d.c5)({apiName:"__tcfapi",apiVersion:C,apiArgs:["command","version","callback","parameter"]});r||t(new Error("TCF2 CMP not found.")),r.isDirect?(0,s.fH)("Detected CMP API is directly accessible, calling it now..."):(0,s.fH)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now..."),r({command:"addEventListener",callback:function(r,a){if((0,s.fH)("Received a response from CMP",r),a){try{e(b(r))}catch(e){}if(!1===r.gdprApplies||"tcloaded"===r.eventStatus||"useractioncomplete"===r.eventStatus)try{c.mW.setConsentData(b(r)),n()}catch(e){t(e)}}else t(Error("CMP unable to register callback function.  Please check CMP setup."))}})}))}};function b(e){if(function(){const n=e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:u,t=e&&e.tcString;return!("boolean"==typeof n&&(!0!==n||t&&(0,s.O8)(t)))}())throw Object.assign(new Error("CMP returned unexpected value during lookup process."),{args:[e]});return D(e)}function D(e){const n={consentString:e?e.tcString:void 0,vendorData:e||void 0,gdprApplies:e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:u};return e&&e.addtlConsent&&(0,s.O8)(e.addtlConsent)&&(n.addtlConsent=e.addtlConsent),n.apiVersion=C,n}const v=(0,l.yq)({namespace:"gdpr",displayName:"TCF",consentDataHandler:c.mW,cmpHandlers:m,parseConsentData:b,getNullConsent:()=>D(null)});o.$W.getConfig("consentManagement",(e=>function(e){return e=e&&(e.gdpr||e.usp||e.gpp?e.gdpr:e),null!=e?.consentData?.getTCData&&(e.consentData=e.consentData.getTCData),u=!0===e?.defaultGdprScope,g=!!e?.dsaPlatform,f=v({gdpr:e}),f.loadConsentData?.()?.catch?.((()=>null))}(e.consentManagement))),p.w.before((function(e,n){return e(n.then((e=>{const n=c.mW.getConsentData();return n&&("boolean"==typeof n.gdprApplies&&(0,a.J)(e,"regs.ext.gdpr",n.gdprApplies?1:0),(0,a.J)(e,"user.ext.consent",n.consentString)),g&&(0,a.J)(e,"regs.ext.dsa.dsarequired",3),e})))})),(0,i.pS)({type:i.S3,name:"gdprAddtlConsent",fn:function(e,n){const t=n.gdprConsent?.addtlConsent;t&&"string"==typeof t&&(0,a.J)(e,"user.ext.ConsentedProvidersSettings.consented_providers",t)}}),(0,r.E)("consentManagementTcf")}},e=>{e.O(0,[802,10,7109,7769,2139,1085],(()=>{return n=6117,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[6466],{9236:(e,r,n)=>{var t=n(7873),o=n(1069),c=n(3172),i=n(8969),s=n(8044),u=n(3272),a=n(9214),f=n(5555),l=n(1e3),d=n(6894),y=n(5023),v=n(687),p=n(6400);const h=4;let C,g=[],b={},$=!1,R=!0,m="USD";var O=!1,S={};let E,N={},T=(0,f.v6)();const U=(0,p.L)();let w=0;function D(e){if(C="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",null!==e.rates&&"object"==typeof e.rates&&(S.conversions=e.rates,$=!0,R=!1),null!==e.defaultRates&&"object"==typeof e.defaultRates&&(E=e.defaultRates,S.conversions=E,$=!0),"string"==typeof e.adServerCurrency){w=e.auctionDelay,(0,o.fH)("enabling currency support",arguments),m=e.adServerCurrency,e.conversionRateFile&&((0,o.fH)("currency using override conversionRateFile:",e.conversionRateFile),C=e.conversionRateFile);const r=C.indexOf("$$TODAY$$");if(-1!==r){const e=new Date;let n=`${e.getMonth()+1}`,t=`${e.getDate()}`;n.length<2&&(n=`0${n}`),t.length<2&&(t=`0${t}`);const o=`${e.getFullYear()}${n}${t}`;C=`${C.substring(0,r)}${o}${C.substring(r+9,C.length)}`}b={},O||(O=!0,(0,t.m)().convertCurrency=(e,r,n)=>parseFloat(e)*J(r,n),(0,a.Yn)("addBidResponse").before(A,100),(0,a.Yn)("responsesReady").before(k),v.w.before(_),(0,a.Yn)("requestBids").before(q,50),(0,y.on)(i.qY.AUCTION_TIMEOUT,F),(0,y.on)(i.qY.AUCTION_INIT,I),I())}else w=0,(0,o.fH)("disabling currency support"),O&&((0,a.Yn)("addBidResponse").getHooks({hook:A}).remove(),(0,a.Yn)("responsesReady").getHooks({hook:k}).remove(),v.w.getHooks({hook:_}).remove(),(0,a.Yn)("requestBids").getHooks({hook:q}).remove(),(0,y.AU)(i.qY.AUCTION_TIMEOUT,F),(0,y.AU)(i.qY.AUCTION_INIT,I),delete(0,t.m)().convertCurrency,m="USD",b={},O=!1,$=!1,R=!0,S={},N={},T=(0,f.v6)());"object"==typeof e.bidderCurrencyDefault&&(N=e.bidderCurrencyDefault)}function Y(e){E?((0,o.JE)(e),(0,o.JE)("Currency failed loading rates, falling back to currency.defaultRates")):(0,o.vV)(e)}function I(){R?(R=!1,$=!1,(0,s.RD)(C,{success:function(e){try{S=JSON.parse(e),(0,o.fH)("currencyRates set to "+JSON.stringify(S)),b={},$=!0,H(),U.resume()}catch(r){Y("Failed to parse currencyRates response: "+e)}},error:function(){Y(...arguments),$=!0,H(),U.resume(),R=!0}})):H()}function k(e,r){e(r.then((()=>T.promise)))}u.$W.getConfig("currency",(e=>D(e.currency)));const A=(0,d.NL)("currency",(function(e,r,n,t){if(!n)return e.call(this,r,n,t);let c=n.bidderCode||n.bidder;if(N[c]){let e=N[c];n.currency&&e!==n.currency?(0,o.JE)(`Currency default '${c}: ${e}' ignored. adapter specified '${n.currency}'`):n.currency=e}if(n.currency||((0,o.JE)('Currency not specified on bid.  Defaulted to "USD"'),n.currency="USD"),n.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*J(this.currency,e)).toFixed(3)},n.currency===m)return e.call(this,r,n,t);g.push([e,this,r,n,t]),O&&!$||H()}));function F(e){let{auctionId:r}=e;g=g.filter((e=>{let[n,t,o,c,s]=e;if(c.auctionId!==r)return!0;s(i.Tf.CANNOT_CONVERT_CURRENCY)}))}function H(){for(;g.length>0;){const[e,r,n,t,c]=g.shift();if(void 0!==t&&"currency"in t&&"cpm"in t){let e=t.currency;try{let r=J(e);1!==r&&(t.cpm=(parseFloat(t.cpm)*r).toFixed(4),t.currency=m)}catch(e){(0,o.JE)("getCurrencyConversion threw error: ",e),c(i.Tf.CANNOT_CONVERT_CURRENCY);continue}}e.call(r,n,t,c)}T.resolve()}function J(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;var n,t=null;let c=`${e}->${r}`;if(c in b)t=b[c],(0,o.OG)("Using conversionCache value "+t+" for "+c);else if(!1===O){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");t=1}else if(e===r)t=1;else if(e in S.conversions){if(!(r in(n=S.conversions[e])))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");t=n[r],(0,o.fH)("getCurrencyConversion using direct "+e+" to "+r+" conversionRate "+t)}else if(r in S.conversions){if(!(e in(n=S.conversions[r])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");t=j(1/n[e],h),(0,o.fH)("getCurrencyConversion using reciprocal "+e+" to "+r+" conversionRate "+t)}else{var i=Object.keys(S.conversions)[0];if(!(e in S.conversions[i]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var s=1/S.conversions[i][e];if(!(r in S.conversions[i]))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");t=j(s*S.conversions[i][r],h),(0,o.fH)("getCurrencyConversion using intermediate "+e+" thru "+i+" to "+r+" conversionRate "+t)}return c in b||((0,o.OG)("Adding conversionCache value "+t+" for "+c),b[c]=t),t}function j(e,r){var n=1;for(let e=0;e<r;e++)n+="0";return Math.round(e*n)/n}function _(e,r){return e(r.then((e=>((0,c.J)(e,"ext.prebid.adServerCurrency",m),e))))}(0,l.pS)({type:l.S3,name:"currency",fn:function(e,r,n){O&&(e.cur=e.cur||[n.currency||m])}});const q=(0,d.Ak)("currency",(function(e,r){const n=(t=this,()=>e.call(t,r));var t;!$&&w>0?U.submit(w,n,(()=>{(0,o.JE)(`currency: Fetch attempt did not return in time for auction ${r.auctionId}`),n()})):n()}));(0,t.E)("currency")}},e=>{e.O(0,[802,5957,7769,2139,1085],(()=>{return r=9236,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[6050],{6480:(e,t,r)=>{var n=r(7873),a=r(1252),o=r(201),i=r(1692),s=r(7314),c=r(3272),l=r(8969),d=r(5023),u=r(9214),p=r(7934),m=r(7779),f=r(1069),h=r(5246),b=r(8693),g=r(8044),y=r(4420);const A={ri:p.EN},v="VASTAdTagURI";function _(e){if(!e.params&&!e.url)return void(0,f.vV)("A params object or a url is required to use pbjs.adServers.dfp.buildVideoUrl");const t=e.adUnit,r=e.bid||m.iS.getWinningBids(t.code)[0];let n={};if(e.url&&(n=(0,f.Dl)(e.url,{noDecodeWholeURL:!0}),(0,f.Im)(e.params)))return function(e,t,r){const n=k(t,e,"search");n&&(e.search.description_url=n);return e.search.cust_params=x(t,r,e.search.cust_params),(0,f.c$)(e)}(n,r,e);const o={correlator:Date.now(),sz:(0,f.kK)(t?.mediaTypes?.video?.playerSize).join("|"),url:encodeURIComponent(location.href)},c=n.search,l=c&&c.sz;l&&(o.sz=l+"|"+o.sz);let d=x(r,e,c&&c.cust_params);const u=Object.assign({},h.Mu,n.search,o,e.params,{cust_params:d},(0,h.QS)()),p=k(r,e,"params");if(p&&(u.description_url=p),!u.ppid){const e=(0,i.Q)();null!=e&&(u.ppid=e)}const b=e.adUnit?.mediaTypes?.video;Object.entries({plcmt:()=>b?.plcmt,min_ad_duration:()=>(0,f.Et)(b?.minduration)?1e3*b.minduration:null,max_ad_duration:()=>(0,f.Et)(b?.maxduration)?1e3*b.maxduration:null,vpos(){const e=b?.startdelay;if((0,f.Et)(e))return-2===e?"postroll":-1===e||e>0?"midroll":"preroll"},vconp:()=>Array.isArray(b?.playbackmethod)&&b.playbackmethod.some((e=>7===e))?"2":void 0,vpa(){if(Array.isArray(b?.playbackmethod)){const e=b.playbackmethod.some((e=>3===e)),t=b.playbackmethod.some((e=>[1,2,4,5,6].includes(e)));if(e&&!t)return"click";if(t&&!e)return"auto"}},vpmute(){if(Array.isArray(b?.playbackmethod)){const e=b.playbackmethod.some((e=>[2,6].includes(e))),t=b.playbackmethod.some((e=>[1,3,4,5].includes(e)));if(e&&!t)return"1";if(t&&!e)return"0"}}}).forEach((e=>{let[t,r]=e;if(!u.hasOwnProperty(t)){const e=r();null!=e&&(u[t]=e)}}));const g=s.n.index.getBidRequest(e.bid||{})?.ortb2??s.n.index.getAuction(e.bid||{})?.getFPD()?.global,y=(0,a.eu)(g);return y.length&&(u.ppsj=btoa(JSON.stringify({PublisherProvidedTaxonomySignals:y}))),(0,f.c$)(Object.assign({},h.P8,n,{search:u}))}function k(e,t,r){return t?.[r]?.description_url||encodeURIComponent(A.ri().page)}function x(e,t,r){const n=e&&e.adserverTargeting||{};let a={};const o=t&&t.adUnit;if(o){let e=m.iS.getAllTargeting(o.code);a=e?e[o.code]:{}}const i=Object.assign({},{hb_uuid:e&&e.videoCacheKey},{hb_cache_id:e&&e.videoCacheKey},a,n);d.Ic(l.qY.SET_TARGETING,{[o.code]:i});const s=t?.params?.cust_params,c=Object.assign({},i,s);let u=encodeURIComponent((0,f.eP)(c));return r&&(u=r+"%26"+u),u}async function C(e,t){try{const r=(0,y.A)(),n=r.parse(e),a=n.querySelectorAll(v)[0];if(!a||!a.textContent)return e;const o=new RegExp("[A-Fa-f0-9]{8}-(?:[A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}","gi"),i=Array.from(a.textContent.matchAll(o)).map((e=>{let[t]=e;return t})).filter((e=>t.has(e)));if(1!=i.length)return(0,f.JE)(`Unable to determine unique uuid in ${v}`),e;const s=i[0],c=t.get(s),l=await async function(e){const t=await(0,g.hd)(e);if(!t.ok)throw(0,f.vV)("Unable to fetch blob"),new Error("Blob not found");const r=await t.text();return`data://text/xml;base64,${btoa(r)}`}(c),d=n.createCDATASection(l);return a.textContent="",a.appendChild(d),r.serialize(n)}catch(t){return(0,f.JE)("Unable to process xml",t),e}}c.$W.getConfig("brandCategoryTranslation.translationFile")&&(0,u.Yn)("registerAdserver").before((function(e){e.call(this,"dfp")})),(0,o.U)("dfp",{buildVideoUrl:_,getVastXml:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.kh;const r=_(e),n=await(0,g.hd)(r);if(!n.ok)throw new Error("Unable to fetch GAM VAST wrapper");const a=await n.text();if(c.$W.getConfig("cache.useLocal")){return await C(a,t)}return a}}),(0,n.E)("dfpAdServerVideo")}},e=>{e.O(0,[802,3005,2422,7650,7769,2139,1085],(()=>{return t=6480,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9301],{1057:(n,e,s)=>{var t=s(7873),a=s(3272),l=s(7274);let p=!1;a.$W.getConfig("consentManagement",(n=>{null==n?.consentManagement?.gpp||p||((0,l.l)("usnat",[7]),p=!0)})),(0,t.E)("gppControl_usnat")}},n=>{n.O(0,[82,802,7769,2139,1085],(()=>{return e=1057,n(n.s=e);var e}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7534],{8194:(n,t,e)=>{var s=e(7873),r=e(3272),o=e(7274),i=e(3172),a=e(1069);const l={Version:0,Gpc:0,SharingNotice:0,SaleOptOutNotice:0,SharingOptOutNotice:0,TargetedAdvertisingOptOutNotice:0,SensitiveDataProcessingOptOutNotice:0,SensitiveDataLimitUseNotice:0,SaleOptOut:0,SharingOptOut:0,TargetedAdvertisingOptOut:0,SensitiveDataProcessing:12,KnownChildSensitiveDataConsents:2,PersonalDataConsents:0,MspaCoveredTransaction:0,MspaOptOutOptionMode:0,MspaServiceProviderMode:0};function c(n){let{nullify:t=[],move:e={},fn:s}=n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return e=Object.fromEntries(Object.entries(e).map((n=>{let[t,e]=n;return[t,Object.fromEntries(Object.entries(e).map((n=>{let[t,e]=n;return[t,Array.isArray(e)?e:[e]]})).map((n=>{let[t,e]=n;return[--t,e.map((n=>--n))]})))]}))),function(n){const o=Object.fromEntries(Object.entries(r).map((t=>{let[s,r]=t,o=null;if(r>0){if(o=Array(r).fill(null),Array.isArray(n[s])){const t=e[s]||{},i=[];n[s].forEach(((n,e)=>{const[s,a]=t.hasOwnProperty(e)?[t[e],!0]:[[e],!1];s.forEach((t=>{t<r&&!i.includes(t)&&(o[t]=n,a&&i.push(t))}))}))}}else null!=n[s]&&(o=Array.isArray(n[s])?null:n[s]);return[s,o]})));return t.forEach((n=>(0,i.J)(o,n,null))),s&&s(n,o),o}}function u(n,t){t.KnownChildSensitiveDataConsents=0===n.KnownChildSensitiveDataConsents?[0,0]:[1,1]}const p={7:n=>n,8:c({move:{SensitiveDataProcessing:{1:9,2:10,3:8,4:[1,2],5:12,8:3,9:4}},fn(n,t){n.KnownChildSensitiveDataConsents.some((n=>0!==n))&&(t.KnownChildSensitiveDataConsents=[1,1])}}),9:c({fn:u}),10:c({fn:u}),11:c({move:{SensitiveDataProcessing:{3:4,4:5,5:3}},fn:u}),12:c({fn(n,t){const e=n.KnownChildSensitiveDataConsents;let s;s=e.some((n=>0!==n))?2===e[1]&&2===e[2]?[2,1]:[1,1]:[0,0],t.KnownChildSensitiveDataConsents=s}})},f={8:"usca",9:"usva",10:"usco",11:"usut",12:"usct"},O=(()=>{const n=Object.keys(f).map(Number);return function(){let{sections:t={},sids:e=n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.map((n=>{const e=(0,a.h0)(`Cannot set up MSPA controls for SID ${n}:`),s=t[n]||{},r=s.normalizeAs||n;if(!p.hasOwnProperty(r))return void e.logError(`no normalization rules are known for SID ${r}`);const o=s.name||f[n];if("string"==typeof o)return[o,[n],p[r]];e.logError("cannot determine GPP section name")})).filter((n=>null!=n))}})(),v=[];r.$W.getConfig("consentManagement",(n=>{const t=n.consentManagement?.gpp;if(t){for(;v.length;)v.pop()();O(t?.mspa||{}).forEach((n=>{let[t,e,s]=n;return v.push((0,o.l)(t,e,s))}))}})),(0,s.E)("gppControl_usstates")}},n=>{n.O(0,[82,802,7769,2139,1085],(()=>{return t=8194,n(n.s=t);var t}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[4584],{4232:(t,e,o)=>{var n=o(7873),a=o(1252),d=o(7314),r=o(3272),s=o(8969),i=o(9214),l=o(1069),c=o(3172),u=o(433);let f={},p=!1;function g(t){return(0,a.eu)(t)}const b=t=>(r.$W.getConfig("gptPreAuction")||{}).mcmEnabled?t.replace(/(^\/\d*),\d*\//,"$1/"):t;function m(t){(0,l.JE)("pbadslot is deprecated and will soon be removed, use gpid instead",t)}const h=function(t,e){const o=(t=>{const{customGptSlotMatching:e}=f;if(!(0,l.II)())return;const o=t.reduce(((t,e)=>(t[e.code]=t[e.code]||[],t[e.code].push(e),t)),{}),n={};return window.googletag.pubads().getSlots().forEach((t=>{const a=Object.keys(o).find(e?e(t):(0,l.iC)(t));if(a){const e=n[a]=t.getAdUnitPath(),d={name:"gam",adslot:b(e)};o[a].forEach((t=>{(0,c.J)(t,"ortb2Imp.ext.data.adserver",Object.assign({},t.ortb2Imp?.ext?.data?.adserver,d))}))}})),n})(e),{useDefaultPreAuction:n,customPreAuction:a}=f;e.forEach((t=>{t.ortb2Imp=t.ortb2Imp||{},t.ortb2Imp.ext=t.ortb2Imp.ext||{},t.ortb2Imp.ext.data=t.ortb2Imp.ext.data||{};const e=t.ortb2Imp.ext;if(a||n){e.data?.pbadslot&&m(t);let d,r=(0,u.A)(e,"data.adserver.adslot");a?d=a(t,r,o?.[t.code]):n&&(d=((t,e,o)=>{const n=t.ortb2Imp.ext.data;if(n.pbadslot)return n.pbadslot;if((0,l.II)()){var a=window.googletag.pubads().getSlots().filter((t=>t.getAdUnitPath()===o));if(0!==a.length)return 1===a.length?e:`${e}#${t.code}`}})(t,r,o?.[t.code])),d&&(e.gpid=e.data.pbadslot=d)}else{m(t);const o=(t=>{const e=t.ortb2Imp.ext.data,{customPbAdSlot:o}=f;if(!e.pbadslot)if(o)e.pbadslot=o(t.code,(0,u.A)(e,"adserver.adslot"));else{try{const o=document.getElementById(t.code);if(o.dataset.adslotid)return void(e.pbadslot=o.dataset.adslotid)}catch(t){}if(!(0,u.A)(e,"adserver.adslot"))return e.pbadslot=t.code,!0;e.pbadslot=e.adserver.adslot}})(t);e.gpid||o||(e.gpid=e.data.pbadslot)}}));for(var d=arguments.length,r=new Array(d>2?d-2:0),s=2;s<d;s++)r[s-2]=arguments[s];return t.call(undefined,e,...r)},A=(t,e)=>{const o=function(t){const e={};return a.Cn.forEach((o=>{const n=t.flatMap((t=>t)).filter((t=>t.taxonomy===o)).map((t=>t.values));e[o]=n.length?n.reduce(((t,e)=>t.filter((t=>e.includes(t))))):[],e[o]={values:e[o]}})),e}(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.n.index;return t.map((t=>e.getAuction({auctionId:t})?.getFPD()?.global)).map(g).filter((t=>t))}(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.n;return Object.values(t).flatMap((t=>Object.entries(t))).filter((t=>t[0]===s.xS.AD_ID||t[0].startsWith(s.xS.AD_ID+"_"))).flatMap((t=>t[1])).map((t=>e.findBidByAdId(t)?.auctionId)).filter((t=>null!=t)).filter(l.hj)}(e)));window.googletag.setConfig&&window.googletag.setConfig({pps:{taxonomies:o}}),t(e)},I=t=>{f=(0,l.Up)(t,["enabled",t=>!1!==t,"customGptSlotMatching",t=>"function"==typeof t&&t,"customPbAdSlot",t=>"function"==typeof t&&t,"customPreAuction",t=>"function"==typeof t&&t,"useDefaultPreAuction",t=>t??!0]),f.enabled?p||((0,i.Yn)("makeBidRequests").before(h),(0,i.Yn)("targetingDone").after(A),p=!0):((0,l.fH)("GPT Pre-Auction: Turning off module"),f={},(0,i.Yn)("makeBidRequests").getHooks({hook:h}).remove(),(0,i.Yn)("targetingDone").getHooks({hook:A}).remove(),p=!1)};r.$W.getConfig("gptPreAuction",(t=>I(t.gptPreAuction))),I({}),(0,n.E)("gptPreAuction")}},t=>{t.O(0,[3005,802,7769,2139,1085],(()=>{return e=4232,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1777],{5377:(e,t,r)=>{var s=r(7873),i=r(433),d=r(1069),n=r(3172),o=r(7377),a=r(3272),p=r(1371),l=r(5789),u=r(2621),c=r(9766),m=r(6743);const b="improvedigital",h="USD",y={DEFAULT_MIMES:["video/mp4"]},g={code:b,gvlid:253,aliases:["id"],supportedMediaTypes:[p.D4,p.s6,p.G_],syncStore:{extendMode:!1,placementId:null},isBidRequestValid:e=>!!(e&&e.params&&e.params.placementId&&e.params.publisherId),buildRequests(e,t){return this.syncStore.placementId=this.syncStore.placementId||e[0].params.placementId,v.buildServerRequests(e,t)},interpretResponse(e,t){let{ortbRequest:r}=t;return f.fromORTB({request:r,response:e.body}).bids},getUserSyncs(e,t,r,s){if(!0===a.$W.getConfig("coppa")||!(0,u.C)(r))return[];const d=[];if(!this.syncStore.extendMode&&e.pixelEnabled||!e.iframeEnabled)e.pixelEnabled&&t.forEach((e=>{(0,i.A)(e,`body.ext.${b}.sync`,[]).forEach((e=>{d.some((t=>t.url===e))||d.push({type:"image",url:e})}))}));else{const{gdprApplies:e,consentString:i}=r||{},n=new Set;this.syncStore.extendMode&&t&&t.forEach((e=>{e?.body?.ext?.responsetimemillis&&Object.keys(e.body.ext.responsetimemillis).forEach((e=>n.add(e)))})),d.push({type:"iframe",url:`https://hb.360yield.com/prebid-universal-creative/load-cookie.html?placement_id=${this.syncStore.placementId}`+(this.syncStore.extendMode?"&pbs=1":"")+("boolean"==typeof e?`&gdpr=${Number(e)}`:"")+(i?`&gdpr_consent=${i}`:"")+(s?`&us_privacy=${encodeURIComponent(s)}`:"")+(n.size?`&bidders=${[...n].join(",")}`:"")})}return d}};(0,o.a$)(g);const f=(0,c.A)({context:{ttl:300,nativeRequest:{eventtrackers:[{event:1,methods:[1,2]}]}},imp(e,t,r){const s=e(t,r);s.secure=t.ortb2Imp?.secure??1,!s.bidfloor&&t.params.bidFloor&&(s.bidfloor=t.params.bidFloor,s.bidfloorcur=(0,d.u5)("bidFloorCur",t.params).toUpperCase()||h),s.bidfloor&&s.bidfloorcur&&s.bidfloorcur!==h&&(e=>{try{const t=(0,m.hZ)(e.bidfloor,e.bidfloorcur,h,!1);e.bidfloor=t,e.bidfloorcur=h}catch(e){(0,d.JE)(`Failed to convert bid floor to ${h}. Passing floor price in its original currency.`,e)}})(s);const i=r.extendMode?"ext.prebid.bidder.improvedigital":"ext.bidder",o=t.params.placementId,a=t.params.publisherId;return(0,n.J)(s,`${i}.placementId`,o),(0,n.J)(s,`${i}.publisherId`,a),r.extendMode&&(0,n.J)(s,"ext.prebid.storedrequest.id",""+o),(0,n.J)(s,`${i}.keyValues`,(0,d.u5)("keyValues",t.params)||void 0),r.bidderRequest.bidLimit&&(0,n.J)(s,"ext.max_bids",r.bidderRequest.bidLimit),s},request(e,t,r,s){const i=e(t,r,s);return(0,d.D9)(i,{id:(0,d.s0)(),source:{},ext:{improvedigital:{sdk:{name:"pbjs",version:"9.50.0"}}}}),i},bidResponse(e,t,r){if(!t.adm||!t.price||t.hasOwnProperty("errorCode"))return;const{bidRequest:s}=r;r.mediaType=(()=>{const e=Object.keys(s.mediaTypes);return 1===e.length?e[0]:-1!==t.adm.search(/^(<\?xml|<vast)/i)?p.G_:"{"===t.adm[0]?p.s6:p.D4})();const d=e(t,r),n=(0,i.A)(t,`ext.${b}`,{});return 1===n.pg&&(d.adserverTargeting={hb_deal_type_improve:"pg"}),Object.assign(d,{dealId:"string"==typeof n.buying_type&&"rtb"!==n.buying_type?n.line_item_id:void 0,netRevenue:n.is_net||!1}),d.mediaType===p.G_&&v.isOutstreamVideo(s)&&Object.assign(d,{adResponse:{content:d.vastXml},renderer:R.createRenderer(s)}),d},overrides:{imp:{banner(e,t,r,s){if(r.mediaTypes[p.D4]){if(!1===a.$W.getConfig("improvedigital.usePrebidSizes")){const e=Object.assign({},r.mediaTypes[p.D4],{sizes:null});r={...r,mediaTypes:{[p.D4]:e}}}e(t,r,s)}},video(e,t,r,s){if(!r.mediaTypes[p.G_])return;const d=Object.assign({mimes:y.DEFAULT_MIMES},r.mediaTypes[p.G_],r.params?.video);e(t,{...r,mediaTypes:{[p.G_]:d}},s),(0,n.J)(t,"ext.is_rewarded_inventory",1===d.rewarded||1===(0,i.A)(d,"ext.rewarded")||void 0)}}}}),v={buildServerRequests(e,t){const r=!0===a.$W.getConfig("improvedigital.extend"),s=[],i=!0===a.$W.getConfig("improvedigital.singleRequest"),d=[],n=[];function o(e,r){if(e)return"https://pbs.360yield.com/openrtb2/auction";const s=[];return s.push((0,u.C)(t?.gdprConsent)?"https://ad.360yield.com":"https://ad.360yield-basic.com"),r&&s.push(r),s.push("pb"),s.join("/")}function p(e,r,s){const i=f.toORTB({bidRequests:e,bidderRequest:t,context:{extendMode:s}});return{method:"POST",url:o(s,r),data:JSON.stringify(i),ortbRequest:i,bidderRequest:t,options:{endpointCompression:!0}}}let l=null;return e.map((e=>{const t=e.params.publisherId,o=this.isExtendModeEnabled(r,e.params);if(i){if(l){if(t&&l!==t)throw new Error("All Improve Digital placements in a single call must have the same publisherId. Please check your 'params.publisherId' or turn off the single request mode.")}else l=t;o?d.push(e):n.push(e)}else s.push(p([e],t,o))})),i?(d.length&&s.push(p(d,l,!0)),n.length&&s.push(p(n,l,!1)),s):s},isExtendModeEnabled(e,t){const r="boolean"==typeof t.extend?t.extend:e;return r&&!g.syncStore.extendMode&&(g.syncStore.extendMode=!0),r},isOutstreamVideo:e=>"outstream"===(0,i.A)(e,"mediaTypes.video.context")},R={RENDERER_URL:"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js",createRenderer(e){const t=l.A4.install({id:e.adUnitCode,url:this.RENDERER_URL,config:(0,i.A)(e,"renderer.options"),adUnitCode:e.adUnitCode});try{t.setRender(this.render)}catch(e){(0,d.JE)("Prebid Error calling setRender on renderer",e)}return t},render(e){e.renderer.push((()=>{window.ANOutstreamVideo.renderAd({sizes:[e.width,e.height],targetId:e.adUnitCode,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},R.handleRendererEvents.bind(null,e))}))},handleRendererEvents(e,t,r){e.renderer.handleVideoEvent({id:t,eventName:r})}};(0,s.E)("improvedigitalBidAdapter")}},e=>{e.O(0,[802,8498,1225,7769,2139,1085],(()=>{return t=5377,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3170],{7764:(e,t,i)=>{var n=i(7873),r=i(433),a=i(1069),o=i(3172),d=i(1371),s=i(3272),p=i(2938),l=i(7377),c=i(3895),u=i(5789),m=i(1252);const f="ix",g=[d.D4,d.G_,d.s6],b=50,x=[144,144],h={JPY:1},y={PBJS:"p",IX:"x"},v={SITE:["id","name","domain","cat","sectioncat","pagecat","page","ref","search","mobile","privacypolicy","publisher","content","keywords","ext"],USER:["id","buyeruid","yob","gender","keywords","customdata","geo","data","ext"]},I={"liveramp.com":"idl","netid.de":"NETID","neustar.biz":"fabrickId","zeotap.com":"zeotapIdPlus","uidapi.com":"UID2","adserver.org":"TDID"},A=["lipbid","criteoId","merkleId","parrableId","connectid","tapadId","quantcastId","pubProvidedId","pairId"],w=["mimes","minduration","maxduration"],C=["mimes","minduration","maxduration","protocols","protocol","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext","playerSize","w","h","plcmt"],O=`${f}_features`,U=(0,p.vM)({bidderCode:f}),E={REQUESTED_FEATURE_TOGGLES:["pbjs_enable_multiformat","pbjs_allow_all_eids"],featureToggles:{},isFeatureEnabled:function(e){return(0,r.A)(this.featureToggles,`features.${e}.activated`,!1)},getFeatureToggles:function(){if(U.localStorageIsEnabled()){const e=(0,a.$l)(U.getDataFromLocalStorage(O));(0,r.A)(e,"expiry")&&e.expiry>=(new Date).getTime()?this.featureToggles=e:this.clearFeatureToggles()}},setFeatureToggles:function(e){const t=e.body,i=new Date,n=(0,r.A)(t,"ext.features");n&&(this.featureToggles={expiry:i.setHours(i.getHours()+1),features:n},U.localStorageIsEnabled()&&U.setDataInLocalStorage(O,JSON.stringify(this.featureToggles)))},clearFeatureToggles:function(){this.featureToggles={},U.localStorageIsEnabled()&&U.removeDataFromLocalStorage(O)}};let S=0,T="",D="",J=!1;const P=2;function _(e){const t=k(e,d.G_),i=(0,r.A)(e,"mediaTypes.video"),n=(0,r.A)(e,"params.video");if(R(i,n).length)return{};t.video=n?(0,a.Go)(e.params.video):{};let s=(0,r.A)(e,"ortb2Imp.ext.tid");s&&(0,o.J)(t,"ext.tid",s),function(e,t){if((0,r.A)(t,"mediaTypes.video.context")===c.H6){let i=(0,r.A)(t,"mediaTypes.video.renderer");if(i||(i=(0,r.A)(t,"renderer")),(0,r.A)(t,"schain",!1))e.displaymanager="pbjs_wrapper";else if(i&&"object"==typeof i){if(void 0!==i.url){let t="";try{t=new URL(i.url).hostname}catch{return}t.includes("js-sec.indexww")?e.displaymanager="ix":e.displaymanager=i.url}}else e.displaymanager="ix"}}(t,e),V(t,e);for(const e in i)-1===C.indexOf(e)||t.video.hasOwnProperty(e)||(t.video[e]=i[e]);if(t.video.minduration>t.video.maxduration)return(0,a.vV)(`IX Bid Adapter: video minduration [${t.video.minduration}] cannot be greater than video maxduration [${t.video.maxduration}]`),{};const p=n&&n.context||i&&i.context;if(function(e){e.video.hasOwnProperty("plcmt")&&(!(0,a.Fq)(e.video.plcmt)||e.video.plcmt<1||e.video.plcmt>4)&&((0,a.JE)(`IX Bid Adapter: video.plcmt [${e.video.plcmt}] must be an integer between 1-4 inclusive`),delete e.video.plcmt)}(t),p&&!t.video.hasOwnProperty("placement")&&(p===c.mn?t.video.placement=1:p===c.H6?(0,r.A)(n,"playerConfig.floatOnScroll")?t.video.placement=5:(t.video.placement=3,J=!0):(0,a.JE)(`IX Bid Adapter: Video context '${p}' is not supported`)),!t.video.w||!t.video.h){const i=$((0,r.A)(t,"video.playerSize"))||$((0,r.A)(e,"params.size"));if(!i)return(0,a.JE)("IX Bid Adapter: Video size is missing in [mediaTypes.video]"),{};t.video.w=i[0],t.video.h=i[1]}return F(e,t,d.G_),t}function k(e,t){const i={};if(i.id=e.bidId,ne()&&(0,r.A)(e,"params.externalId")&&(0,o.J)(i,"ext.externalID",e.params.externalId),(0,r.A)(e,`params.${t}.siteId`)&&!isNaN(Number(e.params[t].siteId)))switch(t){case d.D4:(0,o.J)(i,"ext.siteID",e.params.banner.siteId.toString());break;case d.G_:(0,o.J)(i,"ext.siteID",e.params.video.siteId.toString());break;case d.s6:(0,o.J)(i,"ext.siteID",e.params.native.siteId.toString())}else e.params.siteId&&(0,o.J)(i,"ext.siteID",e.params.siteId.toString());return!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||(0,o.J)(i,"ext.sid",String(e.params.id)),i}function F(e,t,i){let n=null,r=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(n={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),(0,a.fp)(e.getFloor)){let n="*",o="*";if(i&&(0,a.gR)(g,i)){const{w:e,h:r}=t[i];n=i,o=[e,r]}try{r=e.getFloor({mediaType:n,size:o})}catch(e){(0,a.JE)("priceFloors module call getFloor failed, error : ",e)}}let s=!1;r?(t.bidfloor=r.floor,t.bidfloorcur=r.currency,(0,o.J)(t,"ext.fl",y.PBJS),s=!0):n&&(t.bidfloor=n.floor,t.bidfloorcur=n.currency,(0,o.J)(t,"ext.fl",y.IX),s=!0),s&&(i==d.D4?((0,o.J)(t,"banner.ext.bidfloor",t.bidfloor),(0,o.J)(t,"banner.ext.fl",t.ext.fl)):i==d.G_?((0,o.J)(t,"video.ext.bidfloor",t.bidfloor),(0,o.J)(t,"video.ext.fl",t.ext.fl)):((0,o.J)(t,"native.ext.bidfloor",t.bidfloor),(0,o.J)(t,"native.ext.fl",t.ext.fl)))}function j(e,t,i){const n={},o=!(!(0,r.A)(e,"exp")||!(0,a.Fq)(e.exp)),s=(0,r.A)(e,"dealid")||(0,r.A)(e,"ext.dealid");h.hasOwnProperty(t)?n.cpm=e.price/h[t]:n.cpm=e.price/100,n.requestId=e.impid,s&&(n.dealId=s),n.netRevenue=true,n.currency=t,n.creativeId=e.hasOwnProperty("crid")?e.crid:"-",e.mtype!=P||(!e.ext||e.ext.vasturl)&&e.ext?e.ext&&e.ext.vasturl&&(n.vastUrl=e.ext.vasturl):n.vastXml=e.adm;let p=null;if("string"==typeof e.adm&&"{"===e.adm[0]&&"}"===e.adm[e.adm.length-1])try{p=JSON.parse(e.adm)}catch(e){(0,a.JE)("adm looks like JSON but failed to parse: ",e)}return e.ext&&e.ext.vasturl||e.mtype==P?(n.width=i.video.w,n.height=i.video.h,n.mediaType=d.G_,n.mediaTypes=i.mediaTypes,n.ttl=o?e.exp:3600):p&&p.native?(n.native={ortb:p.native},n.width=e.w?e.w:1,n.height=e.h?e.h:1,n.mediaType=d.s6,n.ttl=o?e.exp:3600):(n.ad=e.adm,n.width=e.w,n.height=e.h,n.mediaType=d.D4,n.ttl=o?e.exp:300),n.meta={},n.meta.networkId=(0,r.A)(e,"ext.dspid"),n.meta.brandId=(0,r.A)(e,"ext.advbrandid"),n.meta.brandName=(0,r.A)(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(n.meta.advertiserDomains=e.adomain),e.ext?.dsa&&(n.meta.dsa=e.ext.dsa),e.ext?.ibv&&(n.ext=n.ext||{},n.ext.ibv=e.ext.ibv),n}function B(e){return Array.isArray(e)&&2===e.length&&(0,a.Fq)(e[0])&&(0,a.Fq)(e[1])}function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(B(e))return e[0]===t[0]&&e[1]===t[1];for(let i=0;i<e.length;i++)if(e[i][0]===t[0]&&e[i][1]===t[1])return!0;return!1}function R(e,t){const i=[];e||(0,a.JE)("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");for(let n of w){const r=e&&e.hasOwnProperty(n),a=t&&t.hasOwnProperty(n);r||a||i.push(`IX Bid Adapter: ${n} is not included in either the adunit or params level`)}const n=e&&e.hasOwnProperty("protocol"),r=e&&e.hasOwnProperty("protocols"),o=t&&t.hasOwnProperty("protocol"),d=t&&t.hasOwnProperty("protocols");return n||r||o||d||i.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),i}function $(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return B(e)?e:!!B(e[0])&&e[0]}function X(e,t,i){if(!e)return;return{...i.find((t=>t.bidId===e)),...t.find((t=>t.id===e))}}function q(e,t,i,n){let d="https://htlb.casalemedia.com/openrtb/pbjs",p=function(e){let t=[],i={};if((0,a.cy)(e))for(const n of e){const e=I.hasOwnProperty(n.source);if((0,r.A)(n,"uids.0")&&(i[n.source]=!0,e&&""!==I[n.source]&&(n.uids[0].ext={rtiPartner:I[n.source]}),t.push(n),t.length>=b))break}return{toSend:t,seenSources:i}}((0,r.A)(e,"0.userIdAsEids")),l=p.toSend;window.headertag&&"function"==typeof window.headertag.getIdentityInfo&&function(e,t){let i=window.headertag.getIdentityInfo();if(i&&"object"==typeof i)for(const n in i){if(e.length>=b)return;if(i.hasOwnProperty(n)){let r=i[n];!r.responsePending&&r.data&&"object"==typeof r.data&&Object.keys(r.data).length&&!t.seenSources[r.data.source]&&e.push(r.data)}}}(l,p);const c=[];let u=function(e){const t={};return t.id=e[0].bidderRequestId.toString(),t.site={},t.ext={},t.ext.source="prebid",t.ext.ixdiag={},t.ext.ixdiag.ls=U.localStorageIsEnabled(),t.imp=[],t.at=1,t}(e);u=function(e,t){t.length>0&&(e.ext.features={},t.forEach((t=>{e.ext.features[t]={activated:E.isFeatureEnabled(t)}})));return e}(u,E.REQUESTED_FEATURE_TOGGLES);let m=function(e,t){var i=e.map((e=>e.adUnitCode)).filter(((e,t,i)=>i.indexOf(e)===t));let n=(0,r.A)(e,"0.userIdAsEids",[]),a={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"9.50.0",userIds:H(e[0]),url:window.location.href.split("?")[0],vpd:J,ae:t,eidLength:n.length};for(let t of i){let i=e.filter((e=>e.adUnitCode===t))[0];(0,r.A)(i,"mediaTypes")&&(Object.keys(i.mediaTypes).length>1&&a.mfu++,(0,r.A)(i,"mediaTypes.native")&&a.nu++,(0,r.A)(i,"mediaTypes.banner")&&a.bu++,"outstream"===(0,r.A)(i,"mediaTypes.video.context")&&(a.ou++,ie(i)&&(a.ren=!0)),"instream"===(0,r.A)(i,"mediaTypes.video.context")&&a.iu++,a.allu++)}return a}(e,(0,r.A)(t,"paapi.enabled"));for(let e in m)u.ext.ixdiag[e]=m[e];u=function(e,t,i,n,a){const o=(0,r.A)(t,"timeout");o&&(e.ext.ixdiag.tmax=o);s.$W.getConfig("userSync")&&(e.ext.ixdiag.syncsPerBidder=s.$W.getConfig("userSync").syncsPerBidder);e.ext.ixdiag.imps=Object.keys(i).length,e.source={tid:t?.ortb2?.source?.tid},n[0].schain&&(e.source.ext={},e.source.ext.schain=n[0].schain);a.length>0&&(e.user={},e.user.eids=a);document.referrer&&""!==document.referrer&&(e.site.ref=document.referrer);return e}(u,t,i,e,l),u=function(e,t){if(t){t.gdprConsent&&(T=t.gdprConsent,T.hasOwnProperty("gdprApplies")&&(e.regs={ext:{gdpr:T.gdprApplies?1:0}}),T.hasOwnProperty("consentString")&&(e.user=e.user||{},e.user.ext={consent:T.consentString||""},T.hasOwnProperty("addtlConsent")&&T.addtlConsent&&(e.user.ext.consented_providers_settings={addtl_consent:T.addtlConsent}))),t.uspConsent&&((0,o.J)(e,"regs.ext.us_privacy",t.uspConsent),D=t.uspConsent);const i=(0,r.A)(t,"refererInfo.page");i&&(e.site.page=i),t.gppConsent&&((0,o.J)(e,"regs.gpp",t.gppConsent.gppString),(0,o.J)(e,"regs.gpp_sid",t.gppConsent.applicableSections))}s.$W.getConfig("coppa")&&(0,o.J)(e,"regs.coppa",1);return e}(u,t);let f={};e[0].params.siteId&&(S=e[0].params.siteId,f.s=S);const g=Object.keys(i);let x=!1;for(let n=0;n<g.length&&!(c.length>=4);n++){u=G(i,g,u,n);const o=(0,r.A)(t,"ortb2")||{},p={...o.site||o.context};p.page=L(t);const l={...o.user};(0,a.Im)(o)||x||(u=N(t,u,o,p,l),u.site=(0,a.D9)({},u.site,p),u.user=(0,a.D9)({},u.user,l),x=!0),u=W(i,u,g,n,f,d);const m=n===g.length-1;if(u=pe(u),u=oe(u),u=de(u),m){let t=`${d}?`;0!==S&&(t+=`s=${S}`),ne()&&(t+=0!==S?"&":"",t+=`p=${s.$W.getConfig("exchangeId")}`),c.push({method:"POST",url:t,data:(0,a.Go)(u),options:{contentType:"text/plain",withCredentials:!0},validBidRequests:e}),u.imp=[],x=!1}}return c}function G(e,t,i,n){const s=e[t[n]],{missingImps:p=[],ixImps:l=[]}=s,c={ixImps:l,missingBannerImpressions:p},u=Object.keys(c).map((e=>c[e])).filter((e=>Array.isArray(e))).reduce(((e,t)=>e.concat(...t)),[]),m=e[t[n]].gpid,f=e[t[n]].dfp_ad_unit_code,g=e[t[n]].tid,b=e[t[n]].sid,x=e[t[n]].ae,h=e[t[n]].paapi,y=u.filter((e=>d.D4 in e)),v=u.filter((e=>!(d.D4 in e)));if(y.length>0){const d=y.reduce(((e,t)=>(e[t.adunitCode]||(e[t.adunitCode]=[]),e[t.adunitCode].push(t),e)),{});for(const s in d){const p=d[s],{id:l,banner:{topframe:c}}=p[0];let u=(0,r.A)(p[0],"ext.externalID");const y={id:l,banner:{topframe:c,format:p.map((e=>{let{banner:{w:t,h:i},ext:n}=e;return{w:t,h:i,ext:n}}))}};for(let e=0;e<y.banner.format.length;e++)null!=y.banner.format[e].ext&&(null!=y.banner.format[e].ext.sid&&delete y.banner.format[e].ext.sid,null!=y.banner.format[e].ext.externalID&&delete y.banner.format[e].ext.externalID),"bidfloor"in p[e]&&(y.banner.format[e].ext.bidfloor=p[e].bidfloor),"{}"===JSON.stringify(y.banner.format[e].ext)&&delete y.banner.format[e].ext;const v=e[t[n]].pos;(0,a.Fq)(v)&&(y.banner.pos=v),(f||m||g||b||x||u||h)&&(y.ext={},y.ext.dfp_ad_unit_code=f,y.ext.gpid=m,y.ext.tid=g,y.ext.sid=b,y.ext.externalID=u,1==x&&(y.ext.ae=1,y.ext.paapi=h)),"bidfloor"in p[0]&&(y.bidfloor=p[0].bidfloor),"bidfloorcur"in p[0]&&(y.bidfloorcur=p[0].bidfloorcur);const I=e[t[n]].adUnitFPD;I&&(0,o.J)(y,"ext.data",I),i.imp.push(y)}}return v.length>0&&v.forEach((e=>{if(m&&(0,o.J)(e,"ext.gpid",m),i.imp.length>0){let t=!1;i.imp.forEach(((n,a)=>{e.id===n.id&&d.G_ in e?(n.video=e.video,n.video.ext=Object.assign({},e.video.ext,e.ext),(0,r.A)(n,"video.ext.bidfloor",!1)&&(0,r.A)(n,"bidfloor",!1)&&n.video.ext.bidfloor<n.bidfloor&&(n.bidfloor=n.video.ext.bidfloor),!(0,r.A)(n,"ext.siteID",!1)&&(0,r.A)(e,"video.ext.siteID")&&((0,o.J)(n,"ext.siteID",e.video.ext.siteID),(0,o.J)(i,"ext.ixdiag.usid",!0)),t=!0):e.id===n.id&&d.s6 in e&&(n.native=e.native,n.native.ext=Object.assign({},e.native.ext,e.ext),(0,r.A)(n,"native.ext.bidfloor",!1)&&(0,r.A)(n,"bidfloor",!1)&&n.native.ext.bidfloor<n.bidfloor&&(n.bidfloor=n.native.ext.bidfloor),!(0,r.A)(n,"ext.siteID",!1)&&(0,r.A)(e,"native.ext.siteID",!1)&&((0,o.J)(n,"ext.siteID",e.native.ext.siteID),(0,o.J)(i,"ext.ixdiag.usid",!0)),t=!0)})),t||i.imp.push(e)}else i.imp.push(e)})),i}function L(e){const t=e&&e.bidderCode||"ix",i=s.$W.getConfig(t);let n="";if(n=(0,r.A)(e,"ortb2.site.page")?e.ortb2.site.page:(0,r.A)(e,"refererInfo.page"),i&&"object"==typeof i.firstPartyData){return function(e,t,i){let n;try{n=new URL(t)}catch(i){(0,a.JE)(`IX Bid Adapter: Invalid URL set in ortb2.site.page: ${t}. Using referer URL instead.`),n=new URL((0,r.A)(e,"refererInfo.page"))}const o=new URLSearchParams(n.search);for(const[e,t]of Object.entries(i))o.has(e)||o.append(e,t);return n.search=o.toString(),n.toString()}(e,n,i.firstPartyData)}return n}function N(e,t,i,n,r){if(t.ext.ixdiag.fpd=!0,Object.keys(n).forEach((e=>{-1===v.SITE.indexOf(e)&&delete n[e]})),Object.keys(r).forEach((e=>{-1===v.USER.indexOf(e)&&delete r[e]})),i.device){const e={...i.device.sua};(0,a.Im)(e)||(0,o.J)(t,"device.sua",e);const n=i.device.ip;n&&(0,o.J)(t,"device.ip",n);const r=i.device.ipv6;r&&(0,o.J)(t,"device.ipv6",r)}if(i.hasOwnProperty("regs")&&!e.gppConsent&&(i.regs.hasOwnProperty("gpp")&&"string"==typeof i.regs.gpp&&(0,o.J)(t,"regs.gpp",i.regs.gpp),i.regs.hasOwnProperty("gpp_sid")&&Array.isArray(i.regs.gpp_sid)&&(0,o.J)(t,"regs.gpp_sid",i.regs.gpp_sid),i.regs.ext?.dsa)){const e=i.regs.ext.dsa,n={};if(["dsarequired","pubrender","datatopub"].forEach((t=>{(0,a.Et)(e[t])&&(n[t]=e[t])})),(0,a.cy)(e.transparency)){const t=[];e.transparency.forEach((e=>{(0,a.Qd)(e)&&(0,a.O8)(e.domain)&&""!=e.domain&&(0,a.cy)(e.dsaparams)&&e.dsaparams.every((e=>(0,a.Et)(e)))&&t.push(e)})),t.length>0&&(n.transparency=t)}(0,a.Im)(n)||(0,o.J)(t,"regs.ext.dsa",n)}return t}function V(e,t){const i=(0,r.A)(t,"ortb2Imp.ext.data");i&&(0,o.J)(e,"ext.data",i)}function W(e,t,i,n,r,a){const o=e[i[n]].pbadslot,d=e[i[n]].tagId,s=e[i[n]].adUnitCode,p=e[i[n]].divId;return(o||d||s||p)&&(t.ext.ixdiag.pbadslot=o,t.ext.ixdiag.tagid=d,t.ext.ixdiag.adunitcode=s,t.ext.ixdiag.divId=p),t}function H(e){const t=e.userId||{};return A.filter((e=>"lipbid"===e?(0,r.A)(t,"lipb.lipbid"):t[e]))}function M(e,t){if(t)for(let i=0;i<e.length;i++){const n=e[i];if(t[0]===n[0]&&t[1]===n[1]){e.splice(i,1);break}}}function Q(e,t){const i=function(e){const t=k(e,d.s6),i=e.nativeOrtbRequest;i.eventtrackers=[{event:1,methods:[1,2]}],i.privacy=1,t.native={request:JSON.stringify(i),ver:"1.2"};let n=(0,r.A)(e,"ortb2Imp.ext.tid");return n&&(0,o.J)(t,"ext.tid",n),V(t,e),F(e,t,d.s6),t}(e);if(0!=Object.keys(i).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(i),t[e.adUnitCode].gpid=(0,r.A)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,r.A)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,r.A)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,r.A)(e,"params.tagId");const n=e.adUnitCode,a=document.getElementById(n)?n:(0,m.p)(n).divId;t[e.adUnitCode].adUnitCode=n,t[e.adUnitCode].divId=a}}function Y(e,t){const i=_(e);if(0!=Object.keys(i).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(i),t[e.adUnitCode].gpid=(0,r.A)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,r.A)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,r.A)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,r.A)(e,"params.tagId");const n=e.adUnitCode,a=document.getElementById(n)?n:(0,m.p)(n).divId;t[e.adUnitCode].adUnitCode=n,t[e.adUnitCode].divId=a}}function Z(e,t,i,n){let o=function(e){const t=k(e,d.D4);t.banner={},t.adunitCode=e.adUnitCode;const i=(0,r.A)(e,"params.size");return i&&(t.banner.w=i[0],t.banner.h=i[1]),t.banner.topframe=(0,a.al)()?0:1,F(e,t,d.D4),t}(e);const s=z((0,r.A)(e,"mediaTypes.banner.sizes"),(0,r.A)(e,"params.size"));i.hasOwnProperty(e.adUnitCode)||(i[e.adUnitCode]={}),i[e.adUnitCode].gpid=(0,r.A)(e,"ortb2Imp.ext.gpid"),i[e.adUnitCode].dfp_ad_unit_code=(0,r.A)(e,"ortb2Imp.ext.data.adserver.adslot"),i[e.adUnitCode].tid=(0,r.A)(e,"ortb2Imp.ext.tid"),i[e.adUnitCode].pbadslot=(0,r.A)(e,"ortb2Imp.ext.data.pbadslot"),i[e.adUnitCode].tagId=(0,r.A)(e,"params.tagId"),i[e.adUnitCode].pos=(0,r.A)(e,"mediaTypes.banner.pos");if((0,r.A)(n,"paapi.enabled")){const t=(0,r.A)(e,"ortb2Imp.ext.ae"),n=(0,r.A)(e,"ortb2Imp.ext.paapi");n&&(i[e.adUnitCode].paapi=n),t&&((0,a.Fq)(t)?i[e.adUnitCode].ae=t:(0,a.JE)("error setting auction environment flag - must be an integer"))}const p=(0,r.A)(e,"ortb2Imp.ext.data");p&&(i[e.adUnitCode].adUnitFPD=p);const l=(0,r.A)(e,"params.id");!l||"string"!=typeof l&&"number"!=typeof l||(i[e.adUnitCode].sid=String(l));const c=e.adUnitCode,u=document.getElementById(c)?c:(0,m.p)(c).divId;i[e.adUnitCode].adUnitCode=c,i[e.adUnitCode].divId=u,s&&(i[e.adUnitCode].hasOwnProperty("ixImps")||(i[e.adUnitCode].ixImps=[]),i[e.adUnitCode].ixImps.push(o)),function(e,t,i){if(t.hasOwnProperty(e.adUnitCode)){let i=[];t[e.adUnitCode].hasOwnProperty("missingSizes")&&(i=t[e.adUnitCode].missingSizes),M(i,e.params.size),t[e.adUnitCode].missingSizes=i}else if((0,r.A)(e,"mediaTypes.banner.sizes")){let n=(0,a.Go)(e.mediaTypes.banner.sizes);M(n,e.params.size);let r={missingSizes:n,impression:i};t[e.adUnitCode]=r}}(e,t,o)}function K(e,t,i){const n=(0,a.Go)(t);return n.banner.w=i[0],n.banner.h=i[1],F(e,n,d.D4),n}function ee(e){e.renderer.push((function(){const t=e.adUnitCode,i=document.getElementById(t)?t:(0,m.p)(t).divId;i?window.createIXPlayer(i,e):(0,a.JE)(`IX Bid Adapter: adUnitCode: ${i} not found on page.`)}))}function te(e,t){const i=u.A4.install({id:e,url:t,loaded:!1});try{i.setRender(ee)}catch(e){return(0,a.JE)("Prebid Error calling setRender on renderer",e),null}return t?i:((0,a.JE)("Outstream renderer URL not found"),null)}function ie(e){if("outstream"!==(0,r.A)(e,"mediaTypes.video.context"))return!1;let t=(0,r.A)(e,"mediaTypes.video.renderer");t||(t=(0,r.A)(e,"renderer"));return!!("object"!=typeof t||!t.url||!t.render)||t.backupOnly}function ne(){let e=s.$W.getConfig("exchangeId");return!("number"!=typeof e||!isFinite(e))||!("string"!=typeof e||""===e.trim()||!isFinite(Number(e)))}const re={code:f,gvlid:10,supportedMediaTypes:g,isBidRequestValid:function(e){const t=(0,r.A)(e,"params.video"),i=(0,r.A)(e,"params.size"),n=(0,r.A)(e,"mediaTypes.banner.sizes"),o=(0,r.A)(e,"mediaTypes.video"),d=(0,r.A)(e,"mediaTypes.video.playerSize"),s=e.params.hasOwnProperty("bidFloor"),p=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!(0,a.gR)(g,e.mediaType))return(0,a.JE)("IX Bid Adapter: media type is not supported."),!1;if((0,r.A)(e,"mediaTypes.banner")&&!n)return!1;if(i){const t=$(i);if(!t)return(0,a.vV)("IX Bid Adapter: size has invalid format."),!1;if(!z(e.sizes,t)&&!z(d,t)&&!z(n,t))return(0,a.vV)("IX Bid Adapter: bid size is not included in ad unit sizes or player size."),!1}if(!ne()&&null==e.params.siteId)return(0,a.vV)("IX Bid Adapter: Invalid configuration - either siteId or exchangeId must be configured."),!1;if(void 0!==e.params.siteId){if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return(0,a.vV)("IX Bid Adapter: siteId must be string or number type."),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return(0,a.vV)("IX Bid Adapter: siteId must valid value"),!1}if((s||p)&&!(s&&p&&(l=e.params.bidFloor,u=e.params.bidFloorCur,Boolean("number"==typeof l&&"string"==typeof u&&u.match(/^[A-Z]{3}$/)))))return(0,a.vV)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format."),!1;var l,u;if(o&&t){const i=_(e).video,n=R(o,t);if((0,r.A)(e,"mediaTypes.video.context")===c.H6&&ie(e)&&i){const e=[(0,r.A)(i,"w"),(0,r.A)(i,"h")];if(!(e[0]>=x[0]&&e[1]>=x[1]))return(0,a.vV)(`IX Bid Adapter: ${e} is an invalid size for IX outstream renderer`),!1}if(n.length)return n.forEach((e=>{(0,a.vV)(e)})),!1}return function(e){return void 0===(0,r.A)(e,"mediaTypes.native")||e.nativeOrtbRequest&&Array.isArray(e.nativeOrtbRequest.assets)&&e.nativeOrtbRequest.assets.length>0}(e)},resetSiteID:function(){S=0},buildRequests:function(e,t){const i=[],n={},o={},s={},p={};E.getFeatureToggles(),e.forEach((e=>{const i=Object.keys((0,r.A)(e,"mediaTypes",{}));for(const r in i)switch(i[r]){case d.D4:Z(e,p,n,t);break;case d.G_:Y(e,o);break;case d.s6:Q(e,s);break;default:(0,a.JE)(`IX Bid Adapter: ad unit mediaTypes ${r} is not supported`)}}));for(let t in p)if(p.hasOwnProperty(t)){let i=p[t].missingSizes;n.hasOwnProperty(t)||(n[t]={}),n[t].hasOwnProperty("missingImps")||(n[t].missingImps=[],n[t].missingCount=0);let r=p[t].impression;for(let a=0;a<i.length;a++){let o=K(e[0],r,i[a]);n[t].missingImps.push(o),n[t].missingCount++}}let l=[];return Object.keys(n).length>0&&l.push(n),Object.keys(o).length>0&&l.push(o),Object.keys(s).length>0&&l.push(s),E.isFeatureEnabled("pbjs_enable_multiformat")?i.push(...q(e,t,function(e){const t={};return e.forEach((e=>{Object.keys(e).forEach((i=>{Object.keys(t).includes(i)?t[i].hasOwnProperty("ixImps")&&e[i].hasOwnProperty("ixImps")?t[i].ixImps=[...t[i].ixImps,...e[i].ixImps]:t[i].hasOwnProperty("missingImps")&&e[i].hasOwnProperty("missingImps")?t[i].missingImps=[...t[i].missingImps,...e[i].missingImps]:e[i].hasOwnProperty("ixImps")?t[i].ixImps=e[i].ixImps:e[i].hasOwnProperty("missingImps")&&(t[i].missingImps=e[i].missingImps):t[i]=e[i]}))})),t}(l))):(Object.keys(n).length>0&&i.push(...q(e,t,n)),Object.keys(o).length>0&&i.push(...q(e,t,o)),Object.keys(s).length>0&&i.push(...q(e,t,s))),i},interpretResponse:function(e,t){const i=[];let n=null,o=(0,r.A)(e,"body.ext.protectedAudienceAuctionConfigs")||[];if(E.setFeatureToggles(e),!e.hasOwnProperty("body"))return i;const s=e.body,p=s.seatbid||[];for(let e=0;e<p.length;e++){if(!p[e].hasOwnProperty("bid"))continue;const o=p[e].bid,l=t.data;for(let e=0;e<o.length;e++){const a=X(o[e].impid,l.imp,t.validBidRequests);if(n=j(o[e],s.cur,a),n.mediaType===d.G_&&ie(a)){const t=(0,r.A)(s,"ext.videoplayerurl");if(n.renderer=te(o[e].bidId,t),!n.renderer)continue}i.push(n)}if((0,r.A)(l,"ext.ixdiag.err")&&U.localStorageIsEnabled())try{U.removeDataFromLocalStorage("ixdiag")}catch(e){(0,a.vV)("ix can not clear ixdiag from localStorage.")}}if(!(Array.isArray(o)&&o.length>0))return i;o=o.filter((e=>!!function(e){return"object"==typeof e&&null!==e}(e)||((0,a.JE)("Malformed auction config detected:",e),!1)));try{return{bids:i,paapi:o}}catch(e){return(0,a.JE)("Error attaching AuctionConfigs",e),i}},getUserSyncs:function(e,t){const i=[];let n=null;if(t.length>0&&(n=(0,r.A)(t[0],"body.ext.publishersyncsperbidderoverride")),void 0!==n&&0==n)return[];if(e.iframeEnabled)i.push({type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"});else{let e=null;s.$W.getConfig("userSync")&&(e=s.$W.getConfig("userSync").syncsPerBidder),0===e&&(e=n),e=n&&(0===e||e)?n>e?e:n:1;for(let t=0;t<e;t++)i.push({type:"image",url:ae(e,t)})}return i}};function ae(e,t){let i="",n="0";return T&&T.hasOwnProperty("gdprApplies")&&(n=T.gdprApplies?"1":"0"),T&&T.hasOwnProperty("consentString")&&(i=T.consentString||""),"https://dsum.casalemedia.com/pbusermatch?origin=prebid"+(0!==S?"&site_id="+S.toString():"")+"&p="+e.toString()+"&i="+t.toString()+"&gdpr="+n+"&gdpr_consent="+i+"&us_privacy="+(D||"")}function oe(e){return e.imp.forEach(((t,i)=>{const n=t.ext;if(null==n)return e;se(t)<2||Object.keys(n).forEach((r=>{if(d.D4 in t){const a=t.banner.ext;if(void 0!==a&&void 0!==a[r]&&a[r]==n[r]&&delete e.imp[i].banner.ext[r],void 0!==t.banner.format)for(let a=0;a<t.banner.format.length;a++)null!=t.banner.format[a].ext&&null!=t.banner.format[a].ext[r]&&t.banner.format[a].ext[r]==n[r]&&delete e.imp[i].banner.format[a].ext[r]}if(d.G_ in t){const a=t.video.ext;void 0!==a&&void 0!==a[r]&&a[r]==n[r]&&delete e.imp[i].video.ext[r]}if(d.s6 in t){const a=t.native.ext;void 0!==a&&void 0!==a[r]&&a[r]==n[r]&&delete e.imp[i].native.ext[r]}}))})),e}function de(e){return e.imp.forEach(((t,i)=>{if(null==t.ext)return e;if(!(se(t)<2)){if(d.D4 in t){const n=t.banner.ext;if(void 0!==n&&void 0!==n.siteID&&delete e.imp[i].banner.ext.siteID,void 0!==t.banner.format)for(let n=0;n<t.banner.format.length;n++)void 0!==t.banner.format[n].ext&&void 0!==t.banner.format[n].ext.siteID&&((0,o.J)(e.imp[i],"ext.siteID",t.banner.format[n].ext.siteID),(0,o.J)(e,"ext.ixdiag.usid",!0),delete e.imp[i].banner.format[n].ext.siteID)}if(d.G_ in t){const n=t.video.ext;void 0!==n&&void 0!==n.siteID&&delete e.imp[i].video.ext.siteID}if(d.s6 in t){const n=t.native.ext;void 0!==n&&void 0!==n.siteID&&delete e.imp[i].native.ext.siteID}}})),e}function se(e){let t=0;return void 0!==e.banner&&(t+=1),void 0!==e.video&&(t+=1),void 0!==e.native&&(t+=1),t}function pe(e){return null==e.device&&(e.device={}),e.device.h=window.screen.height,e.device.w=window.screen.width,e}(0,l.a$)(re),(0,n.E)("ixBidAdapter")}},e=>{e.O(0,[3005,802,7769,2139,1085],(()=>{return t=7764,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9600],{4582:(t,e,n)=>{var i=n(7873),r=n(1069),o=n(433),a=n(3172),s=n(7377),d=n(3272),c=n(1371),l=n(5789),u=n(2449),p=n(1252),m=n(8944),f=n(5439),b=n(4284),g=n(159),h=n(4278);const y=g.AS,x="trustedstack",_="https://prebid.media.net/video/bundle.js",w={NOT_DETERMINED:0,ABOVE_THE_FOLD:1,BELOW_THE_FOLD:2},v="client_timeout",E="client_bid_won",O="client_set_targeting",A="client_bidder_error";let I,T;window.mnet=window.mnet||{},window.mnet.queue=window.mnet.queue||[];const C=[{code:x,gvlid:1288}];function S(t,e){const n=e.refererInfo;let i={domain:(t=t||{}).domain||n.domain,page:t.page||n.page,ref:(0,f.B8)(t.ref),topMostLocation:n.topmostLocation,isTop:t.isTop||n.reachedTop};return I||(I=function(){if(I)return I;let t=function(t,e){let n=function(t,e){try{let n=(0,r.mb)().document.querySelector(t);if(null!==n&&n[e])return n[e]}catch(t){}}(t,e);return n&&function(t){let e=(0,r.mb)().document.createElement("a");return e.href=t,e.href}(n)}('link[rel="canonical"]',"href");return I=Object.assign({},t&&{canonical_url:t}),I}()),Object.assign(i,I)}function D(t){return{w:parseInt(t[0],10),h:parseInt(t[1],10)}}function R(t,e){const n=(0,o.A)(t,"params"),a=(0,o.A)(e,"gdprConsent"),s=(0,o.A)(e,"uspConsent"),c=(0,o.A)(t,"userId"),l=(0,o.A)(t,"schain")||{},u=P.getWindowSize(),p=!(!a||!a.gdprApplies),f=!!s,b=!!d.$W.getConfig("coppa"),{top:g=-1,right:h=-1,bottom:y=-1,left:x=-1}=(0,m.g)();return Object.assign({},{customer_id:n.cid},{prebid_version:"v9.50.0"},{gdpr_applies:p},p&&{gdpr_consent_string:a.consentString||""},{usp_applies:f},f&&{usp_consent_string:s||""},{coppa_applies:b},-1!==u.w&&-1!==u.h&&{screen:u},c&&{user_id:c},(0,i.m)().medianetGlobals.analyticsEnabled&&{analytics:!0},!(0,r.Im)(l)&&{schain:l},{vcoords:{top_left:{x,y:g},bottom_right:{x:h,y}}})}function B(t,e){let n={id:t.bidId,transactionId:t.ortb2Imp?.ext?.tid,ext:{dfp_id:t.adUnitCode,display_count:t.auctionsCount},all:t.params};t.ortb2Imp&&(n.ortb2Imp=t.ortb2Imp);let i=(0,o.A)(t,"mediaTypes.banner.sizes")||[];const a=(0,o.A)(t,"mediaTypes.video")||{},s=(0,o.A)(t,"params.video")||{},d=Object.assign({},s,a);var l;if((0,r.Im)(d)||(n.video=d),i.length>0&&(n.banner=(l=i,(0,r.cy)(l)&&2===l.length&&!(0,r.cy)(l[0])?[D(l)]:l.map((t=>D(t))))),t.nativeParams)try{n.native=JSON.stringify(t.nativeParams)}catch(t){(0,r.vV)(`${y} : Incorrect JSON : bidRequest.nativeParams`)}t.params.crid&&(n.tagid=t.params.crid.toString());let u=parseFloat(t.params.bidfloor||t.params.bidFloor);u&&(n.bidfloor=u);const m=function(t){let e=document.getElementById(t);if(!e&&-1!==t.indexOf("/")){const{divId:n}=(0,p.p)(t);(0,r.O8)(n)&&(e=document.getElementById(n))}if(e){const t=(0,h.G)(e);let n={};return n.top_left={y:t.top,x:t.left},n.bottom_right={y:t.bottom,x:t.right},n}return null}(t.adUnitCode);if(m&&n.banner&&0!==n.banner.length){let t=function(t){const{scrollX:e,scrollY:n}=window;return{top_left:{x:t.top_left.x+e,y:t.top_left.y+n},bottom_right:{x:t.bottom_right.x+e,y:t.bottom_right.y+n}}}(m);n.ext.coordinates=t,n.ext.viewability=j(m.top_left,W(n.banner)),j(t.top_left,W(n.banner))>.5?n.ext.visibility=w.ABOVE_THE_FOLD:n.ext.visibility=w.BELOW_THE_FOLD}else n.ext.visibility=w.NOT_DETERMINED;const f=function(t){let e=[];"function"==typeof t.getFloor&&[c.D4,c.G_,c.s6].forEach((n=>{t.mediaTypes.hasOwnProperty(n)&&(n===c.D4?t.mediaTypes.banner.sizes.forEach((i=>{$(t,n,i,e)})):$(t,n,"*",e))}));return e}(t);return f&&f.length>0&&(n.bidfloors=f),e.paapi?.enabled&&(n.ext.ae=t?.ortb2Imp?.ext?.ae),n}function $(t,e,n,i){let r=t.getFloor({currency:"USD",mediaType:e,size:n})||{};n.length>1&&(r.size=n),r.mediaType=e,i.push(r)}function W(t){return t.reduce(((t,e)=>e.h*e.w<t.h*t.w?e:t))}function j(t,e){let n=e.w*e.h,i=P.getWindowSize(),r={x:t.x+e.w,y:t.y+e.h};return 0===n||-1===i.w||-1===i.h?0:function(t,e,n,i){if(t.x>i.x||e.x<n.x||t.y>i.y||e.y<n.y)return 0;return(Math.min(e.x,i.x)-Math.max(t.x,n.x))*(Math.min(e.y,i.y)-Math.max(t.y,n.y))}(t,r,{x:0,y:0},{x:i.w,y:i.h})/n}function F(t,e){const n=(0,r.Go)(t),i=(0,o.A)(e,"0.userIdAsEids");return i&&(0,a.J)(n,"user.ext.eids",i),n}function M(t){const e={};return(0,r.cy)(t)||(t=[]),t.forEach((t=>{let n=function(t){const e={};e.acid=t.auctionId||"",e.crid=(0,o.A)(t,"params.crid")||(0,o.A)(t,"params.0.crid")||t.adUnitCode||"",e.ext=(0,r.wV)(t.ext)||"";const n=(0,r.Go)(t);return delete n.ad,delete n.vastXml,e.rawobj=(0,r.wV)(n),e}(t);Object.keys(n).forEach((t=>{e[t]=e[t]||[],e[t].push(encodeURIComponent(n[t]))}))})),e}function V(t,e){const n=M(e);t.cid=T,(0,b.Fk)(t,n,!1).send()}function L(t){const e=(0,o.A)(t,"context")||"",n=(0,o.A)(t,"vto");"outstream"===e&&n&&(t.renderer=function(t){const e=l.A4.install({url:_});return e.setRender((function(t){window.mnet.queue.push((function(){const e={width:t.width,height:t.height,vastTimeout:t.vto,maxAllowedVastTagRedirects:t.mavtr,allowVpaid:t.avp,autoPlay:t.ap,preload:t.pl,mute:t.mt},n=t.dfp_id,i=(0,p.p)(n).divId||n;window.mnet.mediaNetoutstreamPlayer(t,i,e)}))})),e}())}(0,i.m)().medianetGlobals=(0,i.m)().medianetGlobals||{};const P={code:y,gvlid:g.P6,aliases:C,supportedMediaTypes:[c.D4,c.s6,c.G_],isBidRequestValid:function(t){return t.params?t.params.cid&&(0,r.O8)(t.params.cid)&&!(0,r.xQ)(t.params.cid)?(T=t.params.cid,!0):((0,r.vV)(`${y} : cid should be a string`),!1):((0,r.vV)(`${y} : Missing bid parameters`),!1)},buildRequests:function(t,e){let n=function(t,e){return{site:S(t[0].params.site,e),ext:R(t[0],e),id:t[0].auctionId,imp:t.map((t=>B(t,e))),ortb2:F(e.ortb2,t),tmax:e.timeout}}(t=(0,u.Xj)(t),e);return{method:"POST",url:(i=e.bidderCode,r=n.ext.customer_id,(i===x?"https://prebid.trustedstack.com/rtb/trustedstack":"https://prebid.media.net/rtb/prebid")+"?cid="+encodeURIComponent(r)),data:JSON.stringify(n)};var i,r},interpretResponse:function(t,e){let n=[];if(!t||!t.body)return(0,r.fH)(`${y} : response is empty`),n;let i=t.body.bidList;(0,r.cy)(i)&&0!==i.length?(n=i.filter((t=>function(t){return!1===t.no_bid&&parseFloat(t.cpm)>0}(t))),n.forEach(L)):(0,r.fH)(`${y} : no bids`);const a=(0,o.A)(t,"body.ext.paApiAuctionConfigs")||[],s=(0,o.A)(t,"body.ext.igi")||[];return 0===a.length&&0===s.length?n:(s.length>0&&a.push(...s.map((t=>{let{igs:e}=t;return e||[]})).flat()),{bids:n,paapi:a})},getUserSyncs:function(t,e){let n=(i=e,!(0,r.Im)(i)&&i[0].body&&i[0].body.ext&&(0,r.cy)(i[0].body.ext.csUrl)?i[0].body.ext.csUrl:[]);var i;return t.iframeEnabled?(0,f.RW)(n,{type:"iframe"}):t.pixelEnabled?(0,f.RW)(n,{type:"image"}):void 0},onTimeout:t=>{try{V({name:v,value:t.length,relatedData:t[0].timeout||d.$W.getConfig("bidderTimeout")},t)}catch(t){}},onBidWon:t=>{try{V({name:E,value:t.cpm},[t])}catch(t){}},onSetTargeting:t=>{try{let e={name:O,value:t.cpm};d.$W.getConfig("enableSendAllBids")||V(e,[t])}catch(t){}},onBidderError:t=>{let{error:e,bidderRequest:n}=t;try{V({name:A,relatedData:`timedOut:${e.timedOut}|status:${e.status}|message:${e.reason.message}`},n.bids)}catch(t){}},clearPageMeta:function(){I=void 0},getWindowSize:function(){return{w:window.screen.width||-1,h:window.screen.height||-1}}};(0,s.a$)(P),(0,i.E)("medianetBidAdapter")}},t=>{t.O(0,[3005,2316,1961,802,7769,2139,1085],(()=>{return e=4582,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[8791],{204:(d,e,i)=>{var r=i(7873),o=i(3272),t=i(9214),a=i(1069),b=i(433),l=i(3172),s=i(5023),n=i(8969),m=i(1657),c=i(7779),f=i(1e3),u=i(6894);let p=!1,C={},x={};function g(d,e){e.map((d=>(C[d.bidderCode]&&(d.bidLimit=C[d.bidderCode].maxbids),d))),d.call(this,e)}o.$W.getConfig("multibid",(d=>{Array.isArray(d.multibid)&&d.multibid.length&&function(d){let e=!0,i=d.filter((d=>!!(d.bidder&&"string"==typeof d.bidder||d.bidders&&Array.isArray(d.bidders))||((0,a.JE)("Filtering multibid entry. Missing required bidder or bidders property."),e=!1,!1))).map((d=>(("number"!=typeof d.maxBids||d.maxBids<1||d.maxBids>9)&&(d.maxBids="number"!=typeof d.maxBids||d.maxBids<1?1:9,e=!1),d)));e||o.$W.setConfig({multibid:i});return e}(d.multibid)&&($(),p=!0,d.multibid.forEach((d=>{d.bidder?C[d.bidder]={maxbids:d.maxBids,prefix:d.targetBiddercodePrefix}:d.bidders.forEach((e=>{C[e]={maxbids:d.maxBids,prefix:d.targetBiddercodePrefix}}))})))}));const h=(0,u.NL)("multibid",(function(d,e,i,r){let t=(0,b.A)(i,"floorData.floorValue");if(o.$W.getConfig("multibid")||$(),p&&C[i.bidderCode]&&"adpod"===(0,b.A)(i,"video.context"))d.call(this,e,i,r);else if(p&&C[i.bidderCode])if(C[i.bidderCode].prefix&&(i.multibidPrefix=C[i.bidderCode].prefix),i.originalBidder=i.bidderCode,(0,b.A)(x,[e,i.bidderCode]))if(x[e][i.bidderCode].maxReached||t&&!(t<=i.cpm))(0,a.JE)(`Filtering multibid received from bidder ${i.bidderCode}: `+(x[e][i.bidderCode].maxReached?`Maximum bid limit reached for ad unit code ${e}`:"Bid cpm under floors value."));else{i.originalRequestId=i.requestId,i.requestId=(0,a.s0)(),x[e][i.bidderCode].ads.push(i);let o=x[e][i.bidderCode].ads.length;C[i.bidderCode].prefix&&(i.targetingBidder=C[i.bidderCode].prefix+o),o===C[i.bidderCode].maxbids&&(x[e][i.bidderCode].maxReached=!0),d.call(this,e,i,r)}else(0,b.A)(i,"floorData.floorValue")&&(0,l.J)(x,[e,i.bidderCode],{floor:(0,b.A)(i,"floorData.floorValue")}),(0,l.J)(x,[e,i.bidderCode],{ads:[i]}),x[e][i.bidderCode].ads.length===C[i.bidderCode].maxbids&&(x[e][i.bidderCode].maxReached=!0),d.call(this,e,i,r);else d.call(this,e,i,r)}));function B(d,e){return d.bidder!==d.bidderCode&&e.bidder===e.bidderCode?1:d.bidder===d.bidderCode&&e.bidder!==e.bidderCode?-1:0}function y(d,e,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(o.$W.getConfig("multibid")||$(),p){const t=o.$W.getConfig("sendBidsControl.dealPrioritization");let l=[],s=(0,a.$z)(e,"adUnitCode"),n=[].concat.apply([],Object.keys(s).reduce(((d,e)=>{let o=[],n=(0,a.$z)(s[e],"originalBidder"),m=[].concat.apply([],Object.keys(n).map((d=>n[d].sort(((d,e)=>(d.originalBidder&&d.originalBidder!==d.bidderCode&&(d.bidderCode=d.originalBidder),d.originalBidder&&e.originalBidder!==e.bidderCode&&(e.bidderCode=e.originalBidder),d.cpm>e.cpm?-1:d.cpm<e.cpm?1:0))).map(((d,e)=>((0,b.A)(C,`${d.bidderCode}.prefix`)&&0!==e&&e<C[d.bidderCode].maxbids&&(d.bidderCode=C[d.bidderCode].prefix+(e+1)),d)))))),f=(0,a.$z)(m,"bidderCode");return Object.keys(f).forEach((d=>o.push(f[d].reduce(i)))),r>0?(o=t?o.sort((0,c.Jp)(!0)):o.sort(((d,e)=>e.cpm-d.cpm)),o.sort(B),l.push(...o.slice(0,r))):l.push(...o),[].concat.apply([],l)}),[]));d.call(this,n,i,r,!0)}else d.call(this,e,i,r)}const $=()=>{p=!1,C={}},A=()=>x={};s.on(n.qY.AUCTION_INIT,A),(0,t.pT)(m.w1,g),(0,t.Yn)("addBidResponse").before(h,3),(0,t.pT)(c.ME,y),(0,f.pS)({type:f.S3,name:"extPrebidMultibid",fn:function(d){const e=o.$W.getConfig("multibid");e&&(0,l.J)(d,"ext.prebid.multibid",e.map((d=>Object.fromEntries(Object.entries(d).map((d=>{let[e,i]=d;return[e.toLowerCase(),i]}))))))},dialects:[f.e4]}),(0,r.E)("multibid")}},d=>{d.O(0,[802,7769,2139,1085],(()=>{return e=204,d(d.s=e);var e}));d.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2149],{1725:(e,t,n)=>{var i=n(7873),r=n(1371),s=n(3895),o=n(5789),a=n(2938),d=n(7377),p=n(1069),c=n(433),l=n(4278),u=n(2449);const f="https://onetag-sys.com/usync/",m="onetag",g="Ad",y=(0,a.vM)({bidderCode:m});function h(e){return void 0!==e.mediaTypes&&void 0!==e.mediaTypes.video}function v(e,t){if(e===r.D4)return U(t).length>0;if(e===r.G_&&h(t)){const e=t.mediaTypes.video.context;if("outstream"===e||"instream"===e)return z(t).length>0}else if(e===r.s6){if("object"!=typeof t.mediaTypes.native||null===t.mediaTypes.native)return!1;if(!w(t)){if(void 0===t.nativeParams)return!1;const e=(0,u.rn)(t.nativeParams);return e&&e.assets&&Array.isArray(e.assets)&&e.assets.length>0&&e.assets.every((e=>T(e)))}let e=!1,n=!1;const i=t.mediaTypes.native?.ortb?.assets,r=t.mediaTypes.native?.ortb?.eventtrackers;return i&&Array.isArray(i)&&i.length>0&&i.every((e=>T(e)))&&(e=!0),r&&Array.isArray(r)&&r.length>0?r.every((e=>b(e)))&&(n=!0):r||(n=!0),e&&n}return!1}const b=function(e){return!(!(e.event&&e.methods&&Number.isInteger(e.event)&&Array.isArray(e.methods))||!e.methods.length>0)},T=function(e){if(!e.hasOwnProperty("id")||!Number.isInteger(e.id))return!1;return!!(e.title||e.img||e.data||e.video)&&(!!(!e.title||e.title.len&&Number.isInteger(e.title.len))&&(!!(!e.data||e.data.type&&Number.isInteger(e.data.type))&&!(e.video&&!(e.video.mimes&&e.video.minduration&&e.video.maxduration&&e.video.protocols))))};function I(e){try{return void 0!==e.document.hidden?e.document.hidden:void 0!==e.document.msHidden?e.document.msHidden:void 0!==e.document.webkitHidden?e.document.webkitHidden:null}catch(e){return null}}function A(e){const t=(0,p.Ot)(),n=function(){let e=window,t=window.parent;try{for(;e!==e.parent;)t=e.parent,t.location.href,e=e.parent}catch(e){}return e}();return{location:(0,c.A)(e,"refererInfo.page",null),referrer:(0,c.A)(e,"refererInfo.ref",null),stack:(0,c.A)(e,"refererInfo.stack",[]),numIframes:(0,c.A)(e,"refererInfo.numIframes",0),wWidth:(0,p.Ot)().innerWidth,wHeight:(0,p.Ot)().innerHeight,oWidth:t.outerWidth,oHeight:t.outerHeight,sWidth:t.screen.width,sHeight:t.screen.height,aWidth:t.screen.availWidth,aHeight:t.screen.availHeight,sLeft:"screenLeft"in n?n.screenLeft:n.screenX,sTop:"screenTop"in n?n.screenTop:n.screenY,xOffset:n.pageXOffset,yOffset:n.pageYOffset,docHidden:I(n),docHeight:n.document.body?n.document.body.scrollHeight:null,hLength:history.length,timing:O(),version:{prebid:"9.50.0",adapter:"1.1.3"}}}function C(e){const t=e.filter((e=>h(e))).map((e=>{const t={};return S.call(t,e),t.context=e.mediaTypes.video.context,t.playerSize=z(e),t.mediaTypeInfo=(0,p.Go)(e.mediaTypes.video),t.type=r.G_,t.priceFloors=H(e,r.G_,t.playerSize),t})),n=e.filter((e=>v(r.D4,e))).map((e=>{const t={};return S.call(t,e),t.sizes=U(e),t.type=r.D4,t.mediaTypeInfo=(0,p.Go)(e.mediaTypes.banner),t.priceFloors=H(e,r.D4,t.sizes),t})),i=e.filter((e=>v(r.s6,e))).map((e=>{const t={};if(S.call(t,e),t.sizes=U(e),t.type=r.s6+g,t.mediaTypeInfo=(0,p.Go)(e.mediaTypes.native),!w(e)){const n=(0,u.rn)(e.nativeParams);t.mediaTypeInfo={},t.mediaTypeInfo.adTemplate=e.nativeParams.adTemplate,t.mediaTypeInfo.ortb=n}return t.priceFloors=H(e,r.s6,t.sizes),t}));return t.concat(n).concat(i)}function w(e){return e.mediaTypes.native.ortb&&"object"==typeof e.mediaTypes.native.ortb}function S(e){const t=e.params;this.adUnitCode=e.adUnitCode,this.bidId=e.bidId,this.bidderRequestId=e.bidderRequestId,this.auctionId=(0,c.A)(e,"ortb2.source.tid"),this.transactionId=(0,c.A)(e,"ortb2Imp.ext.tid"),this.gpid=(0,c.A)(e,"ortb2Imp.ext.gpid")||(0,c.A)(e,"ortb2Imp.ext.data.pbadslot"),this.pubId=t.pubId,this.ext=t.ext,this.ortb2Imp=(0,c.A)(e,"ortb2Imp"),t.pubClick&&(this.click=t.pubClick),t.dealId&&(this.dealId=t.dealId);const n=function(e){const t=document.getElementById(e);try{const{top:e,left:n,width:i,height:r}=(0,l.G)(t);let s=t.ownerDocument.defaultView;const o={top:e+s.pageYOffset,left:n+s.pageXOffset,width:i,height:r};let a=s.frameElement;for(;null!=a;){const{top:e,left:t}=(0,l.G)(a);o.top+=e+s.pageYOffset,o.left+=t+s.pageXOffset,s=s.parent,a=s.frameElement}return o}catch(e){return null}}(e.adUnitCode);n&&(this.coords=n)}function O(){try{if(null!=window.performance&&null!=window.performance.timing){const e={},t=window.performance.timing;return e.pageLoadTime=t.loadEventEnd-t.navigationStart,e.connectTime=t.responseEnd-t.requestStart,e.renderTime=t.domComplete-t.domLoading,e}}catch(e){return null}return null}function z(e){const t=e.mediaTypes.video.playerSize;return void 0!==t&&Array.isArray(t)&&t.length>0?E(t):[]}function U(e){if(void 0!==e.mediaTypes&&void 0!==e.mediaTypes.banner&&void 0!==e.mediaTypes.banner.sizes&&Array.isArray(e.mediaTypes.banner.sizes)&&e.mediaTypes.banner.sizes.length>0)return E(e.mediaTypes.banner.sizes);return!h(e)&&e.sizes&&Array.isArray(e.sizes)?E(e.sizes):[]}function E(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push({width:i[0],height:i[1]})}return t}function H(e,t,n){if("function"!=typeof e.getFloor)return[];const i=n=>{const i=e.getFloor({currency:"EUR",mediaType:t||"*",size:n||"*"})||{};return{...i,size:n?(0,p.Go)(n):void 0,floor:null!=i.floor?i.floor:null}};return Array.isArray(n)&&n.length>0?n.map((e=>i([e.width,e.height]))):[i("*")]}const k={code:m,gvlid:241,supportedMediaTypes:[r.D4,r.G_,r.s6],isBidRequestValid:function(e){return void 0!==e&&void 0!==e.params&&"string"==typeof e.params.pubId&&(v(r.D4,e)||v(r.G_,e)||v(r.s6,e))},buildRequests:function(e,t){const n={bids:C(e),...A(t)};t&&t.gdprConsent&&(n.gdprConsent={consentString:t.gdprConsent.consentString,consentRequired:t.gdprConsent.gdprApplies,addtlConsent:t.gdprConsent.addtlConsent}),t&&t.gppConsent&&(n.gppConsent={consentString:t.gppConsent.gppString,applicableSections:t.gppConsent.applicableSections}),t&&t.uspConsent&&(n.usPrivacy=t.uspConsent),t&&t.ortb2&&(n.ortb2=t.ortb2),e&&0!==e.length&&e[0].userIdAsEids&&(n.userId=e[0].userIdAsEids),e&&0!==e.length&&e[0].schain&&function(e){let t=!1;const n=["asi","sid","hp"];if(!e||!e.nodes)return t;t=e.nodes.reduce(((e,t)=>e?n.every((e=>t.hasOwnProperty(e))):e),!0),t||(0,p.vV)("OneTag: required schain params missing");return t}(e[0].schain)&&(n.schain=e[0].schain);try{y.hasLocalStorage()&&(n.onetagSid=y.getDataFromLocalStorage("onetag_sid"))}catch(e){}const i=navigator.connection||navigator.webkitConnection;return n.networkConnectionType=i&&i.type?i.type:null,n.networkEffectiveConnectionType=i&&i.effectiveType?i.effectiveType:null,n.fledgeEnabled=Boolean(t?.paapi?.enabled),{method:"POST",url:"https://onetag-sys.com/prebid-request",data:JSON.stringify(n)}},interpretResponse:function(e,t){const n=e.body,i=[],a=JSON.parse(t.data);if(!n||n.nobid&&!0===n.nobid)return i;if(!(n.fledgeAuctionConfigs||n.bids&&Array.isArray(n.bids)&&0!==n.bids.length))return i;if(Array.isArray(n.bids)&&n.bids.forEach((e=>{const t={requestId:e.requestId,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.creativeId,dealId:null==e.dealId?e.dealId:"",currency:e.currency,netRevenue:e.netRevenue||!1,mediaType:e.mediaType===r.s6+g?r.s6:e.mediaType,meta:{mediaType:e.mediaType,advertiserDomains:e.adomain},ttl:e.ttl||300};if(e.dsa&&(t.meta.dsa=e.dsa),e.mediaType===r.D4)t.ad=e.ad;else if(e.mediaType===r.G_){const{context:n,adUnitCode:i}=(a.bids||[]).find((t=>t.bidId===e.requestId&&t.type===r.G_));n===s.mn?(t.vastUrl=e.vastUrl,t.videoCacheKey=e.videoCacheKey):n===s.H6&&(t.vastXml=e.ad,t.vastUrl=e.vastUrl,e.rendererUrl&&(t.renderer=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=o.A4.install({id:e.requestId,url:e.rendererUrl,config:t,adUnitCode:e.adUnitCode,loaded:!1});try{n.setRender((t=>{let{renderer:n,width:i,height:r,vastXml:s,adUnitCode:o}=t;n.push((()=>{window.onetag.Player.init({...e,width:i,height:r,vastXml:s,nodeId:o,config:n.getConfig()})}))}))}catch(e){}return n}({...e,adUnitCode:i})))}else e.mediaType!==r.s6&&e.mediaType!==r.s6+g||(t.native=e.native);i.push(t)})),n.fledgeAuctionConfigs&&Array.isArray(n.fledgeAuctionConfigs)){const e=n.fledgeAuctionConfigs;return{bids:i,paapi:e}}return i},getUserSyncs:function(e,t,n,i,r){let s=[],o="";return n&&("boolean"==typeof n.gdprApplies&&(o+="&gdpr="+(n.gdprApplies?1:0)),"string"==typeof n.consentString&&(o+="&gdpr_consent="+n.consentString)),r&&"string"==typeof r.gppString&&(o+="&gpp_consent="+r.gppString),i&&"string"==typeof i&&(o+="&us_privacy="+i),e.iframeEnabled&&s.push({type:"iframe",url:f+"?cb="+(new Date).getTime()+o}),e.pixelEnabled&&s.push({type:"image",url:f+"?tag=img"+o}),s}};(0,d.a$)(k),(0,i.E)("onetagBidAdapter")}},e=>{e.O(0,[2316,802,7769,2139,1085],(()=>{return t=1725,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3879],{7257:(e,t,a)=>{var n=a(7873),r=a(3272),s=a(7377),o=a(3172),p=a(433),i=a(1069),d=a(1371),m=a(9766);const u="https://rtb.openx.net/openrtbb/prebidjs",l={code:"openx",gvlid:69,supportedMediaTypes:[d.D4,d.G_,d.s6],isBidRequestValid:function(e){const t=e.params.delDomain||e.params.platform;if(p.A(e,"mediaTypes.banner")&&t)return!!e.params.unit||p.A(e,"mediaTypes.banner.sizes.length")>0;return!(!e.params.unit||!t)},buildRequests:function(e,t){let a=e.filter((e=>f(e))),n=e.filter((e=>function(e){const t=!f(e)&&!x(e);return p.A(e,"mediaTypes.banner")||t}(e)||x(e))).map((e=>({...e,mediaTypes:{...e.mediaTypes,video:void 0}}))),r=n.length?[b(n,t,null)]:[];return a.forEach((e=>{r.push(b([e],t,d.G_))})),r},interpretResponse:function(e,t){e.body||(e.body={nbr:0});return c.fromORTB({request:t.data,response:e.body})},getUserSyncs:function(e,t,a,n){if(e.iframeEnabled||e.pixelEnabled){let r=e.iframeEnabled?"iframe":"image",s=[],o="https://u.openx.net/w/1.0/pd";if(a&&(s.push("gdpr="+(a.gdprApplies?1:0)),s.push("gdpr_consent="+encodeURIComponent(a.consentString||""))),n&&s.push("us_privacy="+encodeURIComponent(n)),t.length>0&&t[0].body&&t[0].body.ext){const e=t[0].body.ext;e.delDomain?o=`https://${e.delDomain}/w/1.0/pd`:e.platform&&s.push("ph="+e.platform)}else s.push("ph=2d1251ae-7f3a-47cf-bd2a-2f288854a0ba");return[{type:r,url:`${o}${s.length>0?"?"+s.join("&"):""}`}]}}};(0,s.a$)(l);const c=(0,m.A)({context:{netRevenue:!0,ttl:300,nativeRequest:{eventtrackers:[{event:1,methods:[1,2]}]}},imp(e,t,a){const n=e(t,a);return(0,i.D9)(n,{tagid:t.params.unit,ext:{divid:t.adUnitCode}}),t.params.customParams&&o.J(n,"ext.customParams",t.params.customParams),t.params.customFloor&&!n.bidfloor&&(n.bidfloor=t.params.customFloor),n},request(e,t,a,n){const r=e(t,a,n);(0,i.D9)(r,{at:1,ext:{bc:"hb_pb_ortb_2.0",pv:"9.50.0"}});const s=n.bidRequests[0];return s.params.coppa&&o.J(r,"regs.coppa",1),s.params.doNotTrack&&o.J(r,"device.dnt",1),s.params.platform&&o.J(r,"ext.platform",s.params.platform),s.params.delDomain&&o.J(r,"ext.delDomain",s.params.delDomain),s.params.response_template_name&&o.J(r,"ext.response_template_name",s.params.response_template_name),s.params.test&&(r.test=1),r},bidResponse(e,t,a){const n=e(t,a);return t.ext&&(n.meta.networkId=t.ext.dsp_id,n.meta.advertiserId=t.ext.buyer_id,n.meta.brandId=t.ext.brand_id),n},response(e,t,a,n){const{ortbRequest:r}=n;r.ext&&(r.ext.delDomain&&o.J(a,"ext.delDomain",r.ext.delDomain),r.ext.platform&&o.J(a,"ext.platform",r.ext.platform));const s=e(t,a,n);let d=p.A(a,"ext.fledge_auction_configs");return d?(d=Object.entries(d).map((e=>{let[t,a]=e;return{bidId:t,config:(0,i.D9)(Object.assign({},a),{auctionSignals:{ortb2Imp:n.impContext[t]?.imp}})}})),{bids:s.bids,paapi:d}):s},overrides:{imp:{bidfloor(e,t,a,n){const r={};e(r,a,{...n,currency:"USD"}),"USD"===r.bidfloorcur&&Object.assign(t,r)},video(e,t,a,n){{let r=a.mediaTypes[d.G_];r&&(r=Object.assign({},r,a.params.video),a={...a,mediaTypes:{[d.G_]:r}}),e(t,a,n)}}}}});function b(e,t,a){return{method:"POST",url:r.$W.getConfig("openxOrtbUrl")||u,data:c.toORTB({bidRequests:e,bidderRequest:t,context:{mediaType:a}})}}function f(e){return p.A(e,"mediaTypes.video")}function x(e){return p.A(e,"mediaTypes.native")}(0,n.E)("openxBidAdapter")}},e=>{e.O(0,[802,8498,7769,2139,1085],(()=>{return t=7257,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5328],{1134:(e,t,n)=>{n.d(t,{Gk:()=>M});var r=n(7873),s=n(9759),i=n(1069),d=n(8969),o=n(1445),a=n(3272),c=n(7377),u=n(5023);const p={appnexuspsp:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ib.adnxs.com/openrtb2/prebid",noP1Consent:"https://ib.adnxs-simple.com/openrtb2/prebid"},syncEndpoint:{p1Consent:"https://prebid.adnxs.com/pbs/v1/cookie_sync",noP1Consent:"https://prebid.adnxs-simple.com/pbs/v1/cookie_sync"},maxTimeout:1e3},rubicon:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction",noP1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid-server.rubiconproject.com/cookie_sync",noP1Consent:"https://prebid-server.rubiconproject.com/cookie_sync"},maxTimeout:500},openwrap:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ow.pubmatic.com/openrtb2/auction?source=pbjs",noP1Consent:"https://ow.pubmatic.com/openrtb2/auction?source=pbjs"},maxTimeout:500}};var b=n(8044),l=n(9214),f=n(2621),g=n(9766),m=n(3172),h=n(3597),C=n(981),y=n(3323),B=n(5825),v=n(1e3),R=n(6953),q=n(3441),E=n(5569),x=n(5139),O=n(6811),S=n(6743),I=n(2713),j=n(433);function T(e){let{global:t,bidder:n}=e;return Object.fromEntries(Object.entries(n).map((e=>{let[n,r]=e;return[n,A(r,(0,i.D9)({},t,r))]})))}function A(e,t){return Object.fromEntries(Object.entries(e).map((e=>{let[n,r]=e;const s=t[n];return Array.isArray(r)?!(0,i.bD)(r,s)&&Array.isArray(s)&&(r=s):null!=r&&"object"==typeof r&&(r=A(r,s)),[n,r]})))}function P(e,t){let{global:n,bidder:r}=e;const s=function(e){let{eids:t,conflicts:n=new Set}=e;const r=[],s=[],i={};return t.forEach((e=>{(!1===e.bidders?r:s).push(e)})),s.forEach((e=>{let{eid:t,bidders:s}=e;n.has(t.source)?s.forEach((e=>{(i[e]=i[e]||[]).push(t)})):r.push({eid:t,bidders:s})})),{global:r.map((e=>{let{eid:t}=e;return t})),permissions:r.filter((e=>{let{bidders:t}=e;return!1!==t})).map((e=>{let{eid:t,bidders:n}=e;return{source:t.source,bidders:n}})),bidder:i}}(function(e){let{global:t,bidder:n}=e;const r=[],s={},d=new Set;function o(e){let t=r.find((t=>(0,i.bD)(t.eid,e)));return null==t&&(t={eid:e,bidders:new Set},r.push(t)),null==s[e.source]?s[e.source]=t.eid:t.eid===e&&d.add(e.source),t}return R.Vx.forEach((e=>{((0,j.A)(t,e)||[]).forEach((e=>{o(e).bidders=!1}))})),Object.entries(n).forEach((e=>{let[t,n]=e;R.Vx.forEach((e=>{((0,j.A)(n,e)||[]).forEach((e=>{const n=o(e);!1!==n.bidders&&n.bidders.add(t)}))}))})),{eids:r.map((e=>{let{eid:t,bidders:n}=e;return{eid:t,bidders:n&&Array.from(n)}})),conflicts:d}}({global:n,bidder:r}));function d(e){delete e?.user?.eids,delete e?.user?.ext?.eids}return n=(0,i.Go)(n),r=(0,i.Go)(r),d(n),Object.values(r).forEach(d),s.global.length&&(0,m.J)(n,"user.ext.eids",s.global),t?.length&&s.permissions.forEach((e=>e.bidders=e.bidders.filter((e=>t.includes(e))))),s.permissions.length&&(0,m.J)(n,"ext.prebid.data.eidpermissions",s.permissions),Object.entries(s.bidder).forEach((e=>{let[t,n]=e;n.length&&(0,m.J)(r[t],"user.ext.eids",n)})),{global:n,bidder:r}}function w(e,t){return null==e||0===Object.keys(e.bidder||{}).length?e:(e=P(e,t),{...e,bidder:T(e)})}var D=n(1371);const U=new Set(["bidderCode","bidderRequestId","uniquePbsTid","bids","timeout"]),$=(()=>{const e=(0,I.Bp)((0,S.x4)((e=>[e.bidfloor,e.bidfloorcur])));return function(t){let n;for(const r of t){if(null==r?.bidfloorcur||null==r?.bidfloor)return null;n=null==n?r:e(n,r)}return n}})(),J=(0,g.A)({processors:C.m,context:{netRevenue:!0},imp(e,t,n){Object.assign(n,t.pbsData);const r=e(t,n);if((t.bids||[]).forEach((e=>{e.ortb2Imp&&Object.keys(e.ortb2Imp).length>0&&(0,m.J)(r,`ext.prebid.imp.${e.bidder}`,e.ortb2Imp)})),Object.values(B.s).some((e=>r[e])))return r.secure=t.ortb2Imp?.secure??1,r},request(e,t,n,r){if(t.length){let{s2sBidRequest:s}=r;const i=e(t,n,r);return i.tmax=Math.floor(s.s2sConfig.timeout??Math.min(.75*s.requestBidsTimeout,s.s2sConfig.maxTimeout??M.maxTimeout)),i.ext.tmaxmax=i.ext.tmaxmax||s.requestBidsTimeout,[i.app,i.dooh,i.site].forEach((e=>{e&&!e.publisher?.id&&(0,m.J)(e,"publisher.id",s.s2sConfig.accountId)})),r.transmitTids||(0,m.J)(i,"ext.prebid.createtids",!1),i}(0,i.vV)("Request to Prebid Server rejected due to invalid media type(s) in adUnit.")},bidResponse(e,t,n){let r=n.actualBidRequests.get(n.seatbid.seat);null==r&&(r=n.actualBidRequests.get(null)),r&&Object.assign(n,{bidRequest:r,bidderRequest:n.actualBidderRequests.find((e=>e.bidderCode===r.bidder))});const s=e(t,n);return s.requestBidder=r?.bidder,s.native?.ortb&&(s.adm=s.native.ortb),s.requestTimestamp=n.requestTimestamp,{bid:Object.assign((0,h.O)(d.XQ.GOOD,{src:d.RW.SRC,bidId:r?r.bidId||r.bid_Id:null,transactionId:n.adUnit.transactionId,adUnitId:n.adUnit.adUnitId,auctionId:n.bidderRequest.auctionId}),s,{deferRendering:!!n.adUnit.deferBilling,deferBilling:!!n.adUnit.deferBilling}),adUnit:n.adUnit.code}},overrides:{[v.Tb]:{id(e,t,n,r){t.id=r.impId},params(e,t,n,r){const s=r.s2sBidRequest.s2sConfig.adapterOptions;for(const e of r.actualBidRequests.values())(0,y.W)(t,e,r,r),s&&s[e.bidder]&&Object.assign(t.ext.prebid.bidder[e.bidder],s[e.bidder])},bidfloor(e,t,n,r){const s=$(function*(){for(const t of r.actualBidRequests.values()){const n={};e(n,t,r),yield n}}());null!=s&&Object.assign(t,s)},extBidfloor(e,t,n,r){function s(e,t){null!=t&&((0,m.J)(e,"ext.bidfloor",t.bidfloor),(0,m.J)(e,"ext.bidfloorcur",t.bidfloorcur))}const d=Array.from(r.actualBidRequests.values()).map((n=>{const s=(0,i.Go)(t);return e(s,n,r),s}));Object.values(D.GE).forEach((e=>{s(t[e],$(d.map((t=>t[e]?.ext))))})),(t[D.D4]?.format||[]).forEach(((e,t)=>{s(e,$(d.map((e=>e[D.D4].format[t]?.ext))))}))}},[v.S3]:{fpd(e,t,n,r){r.transmitTids&&(0,m.J)(t,"source.tid",n.auctionId),(0,i.D9)(t,r.s2sBidRequest.ortb2Fragments?.global),r.s2sBidRequest.s2sConfig.extPrebid&&"object"==typeof r.s2sBidRequest.s2sConfig.extPrebid&&(0,m.J)(t,"ext.prebid",(0,i.D9)(t.ext?.prebid||{},r.s2sBidRequest.s2sConfig.extPrebid)),r.getRedactor().ortb2(t);const s=Object.entries(r.s2sBidRequest.ortb2Fragments?.bidder||{}).filter((e=>{let[t]=e;const n=r.s2sBidRequest.s2sConfig.bidders;return r.s2sBidRequest.s2sConfig.allowUnknownBidderCodes||n&&n.includes(t)})).map((e=>{let[t,n]=e;return{bidders:[t],config:{ortb2:r.getRedactor(t).ortb2(n)}}}));s.length&&(0,m.J)(t,"ext.prebid.bidderconfig",s)},extPrebidAliases(e,t,n,r){r.actualBidderRequests.forEach((n=>e(t,n,r)))},sourceExtSchain(e,t,n,r){let s=t?.ext?.prebid?.schains||[];const i=new Set(s.flatMap((e=>e.bidders)));s=Object.values(s.concat(r.actualBidderRequests.filter((e=>!i.has(e.bidderCode))).map((e=>({bidders:[e.bidderCode],schain:e?.bids?.[0]?.schain})))).filter((e=>{let{bidders:t,schain:n}=e;return t?.length>0&&n})).reduce(((e,t)=>{let{bidders:n,schain:r}=t;const s=JSON.stringify(r);return e.hasOwnProperty(s)||(e[s]={bidders:new Set,schain:r}),n.forEach((t=>e[s].bidders.add(t))),e}),{})).map((e=>{let{bidders:t,schain:n}=e;return{bidders:Array.from(t),schain:n}})),s.length&&(0,m.J)(t,"ext.prebid.schains",s)}},[v.Cf]:{serverSideStats(e,t,n,r){r.actualBidderRequests.forEach((s=>e(t,n,{...r,bidderRequest:s,bidRequests:s.bids})))},paapiConfigs(e,t,n,r){const s=Object.values(r.impContext).flatMap((e=>(e.paapiConfigs||[]).map((t=>{const n=e.actualBidderRequests.find((e=>e.bidderCode===t.bidder)),r=e.actualBidRequests.get(t.bidder);return{adUnitCode:e.adUnit.code,ortb2:n?.ortb2,ortb2Imp:r?.ortb2Imp,bidder:t.bidder,config:t.config}}))));s.length>0&&(t.paapi=s)}}}});var k=n(6894);const _=a.$W.getConfig,V=d.RW.SRC;let N,W=0;const M={bidders:Object.freeze([]),syncTimeout:1e3,maxBids:1,adapter:"prebidServer",allowUnknownBidderCodes:!1,adapterOptions:{},syncUrlModifier:{},ortbNative:{eventtrackers:[{event:1,methods:[1,2]}]},maxTimeout:1500};function G(e){if(!e)return;e=Array.isArray(e)?e:[e];const t=new Set;return e.filter((e=>{var n;if(n=e,["endpoint","syncEndpoint"].forEach((e=>{if((0,i.O8)(n[e])){let t=n[e];n[e]={p1Consent:t,noP1Consent:t}}!(0,i.Qd)(n[e])||n[e].p1Consent&&n[e].noP1Consent||["p1Consent","noP1Consent"].forEach((t=>{n[e][t]||(0,i.JE)(`s2sConfig.${e}.${t} not defined.  PBS request will be skipped in some P1 scenarios.`)}))})),function(e){if(e.defaultVendor){let t=e.defaultVendor,n=Object.keys(e);if(!p[t])return(0,i.vV)("Incorrect or unavailable prebid server default vendor option: "+t),!1;Object.keys(p[t]).forEach((r=>{M[r]!==e[r]&&n.includes(r)||(e[r]=p[t][r])}))}else null==e.adapter&&(e.adapter="prebidServer");return!0}(e)&&function(e){for(const t of["accountId","endpoint"])if(null==e[t])return(0,i.vV)(t+" missing in server to server config"),!1;return!0}(e)&&e.enabled)return Array.isArray(e.bidders)&&(e.bidders=e.bidders.filter((e=>!t.has(e)&&(t.add(e),!0)))),!0;(0,i.JE)("prebidServer: s2s config is disabled",e)}))}function F(e,t,n,r,s){if(N.length===W)return;W++;let d={};const o=_("userSync.filterSettings");if(o){const{all:e,iframe:t,image:n}=o,r=t||e,s=n||e;r&&(d=Object.assign({iframe:r},d)),s&&(d=Object.assign({image:s},d))}const a={uuid:(0,i.lk)(),bidders:e,account:s.accountId,filterSettings:d};let c=s.userSyncLimit;(0,i.Et)(c)&&c>0&&(a.limit=c),t&&(a.gdpr=t.gdprApplies?1:0,!1!==t.gdprApplies&&(a.gdpr_consent=t.consentString)),n&&(a.us_privacy=n),r&&(a.gpp_sid=r.applicableSections.join(),a.gpp=r.gppString),"boolean"==typeof s.coopSync&&(a.coopSync=s.coopSync);const u=JSON.stringify(a);(0,b.RD)(H(s.syncEndpoint,t),(e=>{try{L((e=JSON.parse(e)).bidder_status,s)}catch(e){(0,i.vV)(e)}}),u,{contentType:"text/plain",withCredentials:!0})}function L(e,t){if(0===e.length)return;const n=e.shift();n.no_cookie?function(e,t,n,r,s){s.syncUrlModifier&&"function"==typeof s.syncUrlModifier[n]&&(t=s.syncUrlModifier[n](e,t,n));!function(e,t,n,r,s){t?"image"===e||"redirect"===e?((0,i.OG)(`Invoking image pixel user sync for bidder: "${n}"`),(0,i.z$)(t,r,s)):"iframe"===e?((0,i.OG)(`Invoking iframe user sync for bidder: "${n}"`),(0,i.SG)(t,r,s)):((0,i.vV)(`User sync type "${e}" not supported for bidder: "${n}"`),r()):((0,i.vV)(`No sync url for bidder "${n}": ${t}`),r())}(e,t,n,r,s.syncTimeout)}(n.usersync.type,n.usersync.url,n.bidder,L.bind(null,e,t),t):L(e,t)}function H(e,t){const n=(0,f.C)(t),r=n?e.p1Consent:e.noP1Consent;return r||(0,i.JE)("Missing matching consent URL when gdpr="+n),r}function Y(e){let t,n,r;return Array.isArray(e)&&e.length>0&&(t=e[0].gdprConsent,n=e[0].uspConsent,r=e[0].gppConsent),{gdprConsent:t,uspConsent:n,gppConsent:r}}a.$W.setDefaults({s2sConfig:M}),_("s2sConfig",(e=>{let{s2sConfig:t}=e;var n;(n=G(n=t)).length&&(N=n)}));const z=(0,l.A_)("async",(function(e,t,n,r){let{onResponse:s,onError:c,onBid:p,onFledge:b}=r,{gdprConsent:l}=Y(t);const f=(0,i.Go)(e.ad_units),g=f.map((e=>e.bids.map((e=>e.bidder)).filter(i.hj))).reduce(i.Bq,[]).filter(i.hj),m=e.metrics.measureTime("buildRequests",(()=>function(e,t,n,r){const s=(0,i.vE)(),d=new Set,c=[],u=(0,o.K5)(e.s2sConfig),p=(()=>{const e=(0,R.$p)(u),t={};return n=>null==n?e:(t.hasOwnProperty(n)||(t[n]=(0,R.$p)((0,q.s)(E.tW,n))),t[n])})();(n=n.map((e=>p().bidRequest(e)))).forEach((e=>{const r=new Map;n.bids=e.bids.map((e=>p(e.bidder).bidRequest(e))),e.bids.forEach((n=>{null!=n.mediaTypes&&(0,i.JE)(`Prebid Server adapter does not (yet) support bidder-specific mediaTypes for the same adUnit. Size mapping configuration will be ignored for adUnit: ${e.code}, bidder: ${n.bidder}`),r.set(n.bidder,(0,i.D4)(n.bid_id,t))}));let s=e.code,o=1;for(;d.has(s);)o++,s=`${e.code}-${o}`;d.add(s),c.push({...e,adUnitCode:e.code,pbsData:{impId:s,actualBidRequests:r,adUnit:e}})}));const b={...Object.fromEntries(Object.entries(t[0]).filter((e=>{let[t]=e;return!U.has(t)}))),paapi:{enabled:t.some((e=>e.paapi?.enabled))}};return J.toORTB({bidderRequest:b,bidRequests:c,context:{currency:a.$W.getConfig("currency.adServerCurrency")||"USD",ttl:e.s2sConfig.defaultTtl||60,requestTimestamp:s,s2sBidRequest:{...e,ortb2Fragments:w(e.ortb2Fragments,r)},requestedBidders:r,actualBidderRequests:t,nativeRequest:e.s2sConfig.ortbNative,getRedactor:p,transmitTids:(0,x.io)(O.VJ,u)}})}(e,t,f,g))),h={endpointUrl:H(e.s2sConfig.endpoint,l),requestJson:m&&JSON.stringify(m),customHeaders:e?.s2sConfig?.customHeaders??{}};if(u.Ic(d.qY.BEFORE_PBS_HTTP,h),(0,i.fH)("BidRequest: "+h),m&&h.requestJson&&h.endpointUrl){const t=e.metrics.startTiming("net");n(h.endpointUrl,{success:function(n){let r;t();try{r=JSON.parse(n);const{bids:t,paapi:s}=e.metrics.measureTime("interpretResponse",(()=>function(e,t){return J.fromORTB({response:e,request:t})}(r,m)));t.forEach(p),s&&s.forEach(b)}catch(e){(0,i.vV)(e)}!r||r.status&&r.status.includes("Error")?((0,i.vV)("error parsing response: ",r?r.status:"not valid JSON"),s(!1,g)):s(!0,g,r)},error:function(){t(),c.apply(this,arguments)}},h.requestJson,{contentType:"text/plain",withCredentials:!0,browsingTopics:(0,x.io)(O.DL,(0,o.K5)(e.s2sConfig)),customHeaders:h.customHeaders})}else(0,i.vV)("PBS request not made.  Check endpoints.")}),"processPBSRequest");function K(e,t){return e?.extPrebid?.returnallbidstatus?t?.ext?.seatnonbid:void 0}function Q(e){return e?.ext?.prebid?.analytics?.tags}o.Ay.registerBidAdapter(new function(){const e=new s.A("prebidServer");return e.callBids=function(e,t,n,r,s){const p=e.metrics=(0,k.BO)(t?.[0]?.metrics).newMetrics().renameWith((t=>[`adapter.s2s.${t}`,`adapters.s2s.${e.s2sConfig.defaultVendor}.${t}`]));r=p.startTiming("total").stopBefore(r),t.forEach((e=>(0,k.BO)(e.metrics).join(p,{continuePropagation:!1})));let{gdprConsent:b,uspConsent:l,gppConsent:f}=Y(t);if(Array.isArray(N)){if(e.s2sConfig&&e.s2sConfig.syncEndpoint&&H(e.s2sConfig.syncEndpoint,b)){const t=(e.s2sConfig.extPrebid&&e.s2sConfig.extPrebid.aliases)??{};F(e.s2sConfig.bidders.map((e=>o.Ay.aliasRegistry[e]||t[e]||e)).filter(((e,t,n)=>n.indexOf(e)===t)),b,l,f,e.s2sConfig)}z(e,t,s,{onResponse:function(n,s,i){n&&t.forEach((e=>u.Ic(d.qY.BIDDER_DONE,e)));const{seatNonBidData:c,atagData:g}=function(e,t){return{atagData:Q(t),seatNonBidData:K(e,t)}}(e.s2sConfig,i);if(c&&u.Ic(d.qY.SEAT_NON_BID,{seatnonbid:i.ext.seatnonbid,auctionId:t[0].auctionId,requestedBidders:s,response:i,adapterMetrics:p}),c||g){const e={seatnonbid:c,atag:g,auctionId:t[0].auctionId,requestedBidders:s,response:i,adapterMetrics:p};u.Ic(d.qY.PBS_ANALYTICS,e)}r(!1),function(e,t,n,r){e.forEach((e=>{let s=o.Ay.getBidAdapter(e);s&&s.registerSyncs&&a.$W.runWithBidder(e,s.registerSyncs.bind(s,[],t,n,r))}))}(s,b,l,f)},onError(n,s){const{p1Consent:o="",noP1Consent:a=""}=e?.s2sConfig?.endpoint||{};o===a?(0,i.vV)(`Prebid server call failed: '${n}'. Endpoint: "${o}"}`,s):(0,i.vV)(`Prebid server call failed: '${n}'. Endpoints: p1Consent "${o}", noP1Consent "${a}"}`,s),t.forEach((e=>u.Ic(d.qY.BIDDER_ERROR,{error:s,bidderRequest:e}))),r(s.timedOut)},onBid:function(t){let{adUnit:r,bid:s}=t;const o=s.metrics=e.metrics.fork().renameWith();o.checkpoint("addBidResponse"),null!=s.requestId&&null!=s.requestBidder||e.s2sConfig.allowUnknownBidderCodes?o.measureTime("addBidResponse.validate",(()=>(0,c.fn)(r,s)))?n(r,s):n.reject(r,s,d.Tf.INVALID):((0,i.JE)(`PBS adapter received bid from unknown bidder (${s.bidder}), but 's2sConfig.allowUnknownBidderCodes' is not set. Ignoring bid.`),n.reject(r,s,d.Tf.BIDDER_DISALLOWED))},onFledge:e=>{a.$W.runWithBidder(e.bidder,(()=>{(0,c.JN)({auctionId:t[0].auctionId,...e},{config:e.config})}))}})}},Object.assign(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,type:V})},"prebidServer"),(0,r.E)("prebidServerBidAdapter")}},e=>{e.O(0,[802,8498,1225,7618,7769,2139,1085],(()=>{return t=1134,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3775],{9433:(e,o,t)=>{var r=t(7873),n=t(1069),i=t(433),l=t(3172),a=t(3272),s=t(8044),d=t(5023),c=t(8969),u=t(9214),f=t(7934),m=t(2693),p=t(7314),h=t(1e3),g=t(6894),y=t(7176),b=t(1252),v=t(6743),F=t(6400),A=t(1371);const k={NOT_FOUND:"not_found",RANDOM:"random"},S="Price Floors",T=(0,s.g4)(1e4),C=Symbol();let O=[C,"gptSlot","adUnitCode","size","domain","mediaType"],j=!1,R=!1,x={};const M=(0,F.L)();let $={};const U=(()=>{let e;return function(){return null==e&&(e=(0,n.Dl)((0,f.EN)().topmostLocation,{noDecodeWholeURL:!0}).hostname),e}})();function D(e,o){let{index:t=p.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e?.adUnitCode||t.getAdUnit(o).code}let E={[C]:()=>"*",size:(e,o)=>(0,n.n7)(o.size)||"*",mediaType:(e,o)=>o.mediaType||"banner",gptSlot:(e,o)=>function(e){let{index:o=p.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=o.getAdUnit({adUnitId:e});return"gam"===(0,i.A)(t,"ortb2Imp.ext.data.adserver.name")&&t.ortb2Imp.ext.data.adserver.adslot}((e||o).adUnitId)||(0,b.p)(D(e,o)).gptSlot,domain:U,adUnitCode:(e,o)=>D(e,o)};function V(e,o){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,o,t){return e.length?e.reduce(((e,r)=>{let n=E[r](o,t)||"*";return e.push("*"===n?["*"]:[n.toLowerCase(),"*"]),e}),[]):[]}((0,i.A)(e,"schema.fields")||[],o,t);if(!r.length)return{matchingFloor:void 0};let n=r.map((e=>e[0])).join("-"),a=(0,i.A)(e,`matchingInputs.${n}`);if(a)return{...a};let s=(d=r,c=(0,i.A)(e,"schema.delimiter")||"|",d.reduce(((e,o)=>{let t=[];return e.map((e=>{o.map((o=>{t.push(e+c+o)}))})),t})).sort(((e,o)=>e.split("*").length-o.split("*").length)));var d,c;let u=(s||[]).find((o=>e.values.hasOwnProperty(o))),f={floorMin:e.floorMin||0,floorRuleValue:e.values[u],matchingData:s[0],matchingRule:u===e.meta?.defaultRule?void 0:u};const m=(0,i.A)(o,"ortb2Imp.ext.prebid.floors.floorMin");return"number"==typeof m&&(f.floorMin=m),f.matchingFloor=Math.max(f.floorMin,f.floorRuleValue),(0,l.J)(e,`matchingInputs.${n}`,{...f}),f}function B(e,o,t){return parseFloat((0,y.y)(e,{...o,cpm:e},t))}const z={banner:e=>(0,i.A)(e,"mediaTypes.banner.sizes")||[],video:e=>(0,i.A)(e,"mediaTypes.video.playerSize")||[],native:e=>(0,i.A)(e,"mediaTypes.native.image.sizes")?[(0,i.A)(e,"mediaTypes.native.image.sizes")]:[]};function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currency:"USD",mediaType:"*",size:"*"},o=this,t=$[o.auctionId];if(!t||t.skipped)return{};e=function(e,o){let t=Object.keys(e.mediaTypes||{});return"*"===o.mediaType&&1===t.length&&(o.mediaType=t[0]),"*"===o.size&&-1!==t.indexOf(o.mediaType)&&z[o.mediaType]&&1===z[o.mediaType](e).length&&(o.size=z[o.mediaType](e)[0]),o}(o,e);let i=V(t.data,{...o},{mediaType:e.mediaType,size:e.size}),l=e.currency||t.data.currency;if(i.matchingFloor&&l!==t.data.currency)try{i.matchingFloor=(0,r.m)().convertCurrency(i.matchingFloor,t.data.currency,l)}catch(e){(0,n.JE)(`${S}: Unable to get currency conversion for getFloor for bidder ${o.bidder}. You must have currency module enabled with defaultRates in your currency config`),l=t.data.currency}if(t.enforcement.bidAdjustment&&i.matchingFloor){const t=m.u.get(o.bidder,"inverseBidAdjustment");if(t){const r=Object.fromEntries(Object.entries(e).filter((e=>{let[o,t]=e;return"*"!==t&&["mediaType","size"].includes(o)})));i.matchingFloor=t(i.matchingFloor,o,r)}else{let e=B(i.matchingFloor,null,o);i.matchingFloor=e?function(e,o){const t=Math.pow(10,10);return e*t/(o*t)*(e*t)/t}(i.matchingFloor,e):i.matchingFloor}}return null===i.floorRuleValue?null:i.matchingFloor?{floor:(a=i.matchingFloor,s=4,Math.ceil((parseFloat(a)*Math.pow(10,s)).toFixed(1))/Math.pow(10,s)),currency:l}:{};var a,s}function I(e,o){let t=(0,n.Go)(e);return t.schema.delimiter=e.schema.delimiter||"|",t.values=function(e,o){let t=e.schema.fields,r=e.schema.delimiter,n=o&&-1===t.indexOf("adUnitCode")&&t.unshift("adUnitCode");return Object.keys(e.values).reduce(((t,i)=>(t[(n?`${o}${r}${i}`:i).toLowerCase()]=e.values[i],t)),{})}(t,o),t.currency=t.currency||"USD",t}function J(e,o){let t=(0,n.Go)(x);if(2===(0,i.A)(t,"data.floorsSchemaVersion")){let{modelGroups:e,...o}=t.data;t.data=Object.assign(o,function(e,o){let t=Math.floor(Math.random()*o+1);for(let o=0;o<e.length;o++)if(t-=e[o].modelWeight,t<=0)return e[o]}(e,o.modelWeightSum))}let r=0===Object.keys((0,i.A)(t,"data.values")||{}).length;if(t.data=r?function(e){const o=e.find((e=>null!=e.floors?.schema));return e.reduce(((e,t)=>{if(null!=t.floors?.schema&&!(0,n.bD)(t.floors.schema,o?.floors?.schema))return(0,n.vV)(`${S}: adUnit '${t.code}' declares a different schema from one previously declared by adUnit '${o.code}'. Floor config for '${t.code}' will be ignored.`),e;const r=Object.assign({},o?.floors,{values:void 0},t.floors);if(G(r))if(e.values){let o=I(r,t.code).values;Object.assign(e.values,o)}else(e=I(r,t.code)).location="adUnit";else null!=t.floors&&(0,n.JE)(`adUnit '${t.code}' provides an invalid \`floor\` definition, it will be ignored for floor calculations`,t);return e}),{})}(e):I(t.data),0===Object.keys((0,i.A)(t,"data.values")||{}).length)t.skipped=!0,t.skippedReason=k.NOT_FOUND;else{const e=(0,n.Ez)("pbjs_skipRate")||((0,i.A)(t,"data.skipRate")??t.skipRate),o=100*Math.random()<parseFloat(e);t.skipped=o,o&&(t.skippedReason=k.RANDOM)}return t.hasOwnProperty("floorMin")&&(t.data.floorMin=t.floorMin),function(e,o,t){const r=function(e){const{data:o,enforcement:t}=e;return o?.noFloorSignalBidders?.length>0?o.noFloorSignalBidders:t?.noFloorSignalBidders?.length>0?t.noFloorSignalBidders:[]}(o);e.forEach((e=>{e.bids.forEach((e=>{const l=r.some((o=>o===e.bidder));o.skipped||l?(l&&(0,n.fH)(`noFloorSignal to ${e.bidder}`),delete e.getFloor):e.getFloor=w,e.auctionId=t,e.floorData={noFloorSignaled:l,skipped:o.skipped,skipRate:(0,i.A)(o,"data.skipRate")??o.skipRate,skippedReason:o.skippedReason,floorMin:o.floorMin,modelVersion:(0,i.A)(o,"data.modelVersion"),modelWeight:(0,i.A)(o,"data.modelWeight"),modelTimestamp:(0,i.A)(o,"data.modelTimestamp"),location:(0,i.A)(o,"data.location","noData"),floorProvider:o.floorProvider,fetchStatus:x.fetchStatus}}))}))}(e,t,o),t}function N(e){e.hasExited||(e.reqBidsConfigObj.auctionId=e.reqBidsConfigObj.auctionId||(0,n.lk)(),$[e.reqBidsConfigObj.auctionId]=J(e.reqBidsConfigObj.adUnits||(0,r.m)().adUnits,e.reqBidsConfigObj.auctionId),e.nextFn.apply(e.context,[e.reqBidsConfigObj]),e.hasExited=!0)}function q(e){return e=function(e){if((0,n.Et)(e.default)){let o="*";const t=(e.schema?.fields||[]).length;t?o=Array(t).fill("*").join(e.schema?.delimiter||"|"):(0,l.J)(e,"schema.fields",[C]),e.values=e.values||{},null==e.values[o]&&(e.values[o]=e.default,e.meta={defaultRule:o})}return e}(e),!!function(e){if(Array.isArray(e)&&e.length>0){if(e.every((e=>O.includes(e))))return!0;(0,n.vV)(`${S}: Fields received do not match allowed fields`)}return!1}((0,i.A)(e,"schema.fields"))&&(o=e,t=e.schema.fields.length,r=e.schema.delimiter||"|","object"==typeof o.values&&(o.values=Object.keys(o.values).reduce(((e,n)=>(function(e,o,t,r){return"string"==typeof e&&e.split(r).length===t&&("number"==typeof o||null===o)}(n,o.values[n],t,r)&&(e[n]=o.values[n]),e)),{}),Object.keys(o.values).length>0));var o,t,r}const P={1:e=>q(e),2:e=>!(!Array.isArray(e.modelGroups)||0===e.modelGroups.length)&&(e.modelWeightSum=0,e.modelGroups.every((o=>!("number"!=typeof o.modelWeight||!q(o))&&(e.modelWeightSum+=o.modelWeight,!0))))};function G(e){return"object"==typeof e&&(e.floorsSchemaVersion=e.floorsSchemaVersion||1,"function"!=typeof P[e.floorsSchemaVersion]?((0,n.vV)(`${S}: Unknown floorsSchemaVersion: `,e.floorsSchemaVersion),!1):P[e.floorsSchemaVersion](e))}function W(e,o){if(e&&"object"==typeof e&&G(e))return(0,n.fH)(`${S}: A ${o} set the auction floor data set to `,e),{...e,location:o};(0,n.vV)(`${S}: The floors data did not contain correct values`,e)}const L=(0,g.Ak)("priceFloors",(function(e,o){const t={reqBidsConfigObj:o,context:this,nextFn:e,hasExited:!1,timer:null};x.auctionDelay>0&&j?M.submit(x.auctionDelay,(()=>N(t)),(()=>{(0,n.JE)(`${S}: Fetch attempt did not return in time for auction`),x.fetchStatus="timeout",N(t)})):N(t)}));function _(e){let o;j=!1,x.fetchStatus="success";try{o=JSON.parse(e)}catch(t){o=e}const t=W(o,"fetch");t&&(x.data=t,x.skipRate=(0,n.Et)(t.skipRate)?t.skipRate:x.skipRate,x.floorProvider=t.floorProvider||x.floorProvider),M.resume()}function H(e){j=!1,x.fetchStatus="error",(0,n.vV)(`${S}: Fetch errored with: `,e),M.resume()}function Y(e){var o;x=(0,n.Up)(e,["floorMin","enabled",e=>!1!==e,"auctionDelay",e=>e||0,"floorProvider",o=>(0,i.A)(e,"data.floorProvider",o),"endpoint",e=>e||{},"skipRate",()=>isNaN((0,i.A)(e,"data.skipRate"))?e.skipRate||0:e.data.skipRate,"enforcement",e=>(0,n.Up)(e||{},["enforceJS",e=>!1!==e,"enforcePBS",e=>!0===e,"floorDeals",e=>!0===e,"bidAdjustment",e=>!1!==e,"noFloorSignalBidders",e=>e||[]]),"additionalSchemaFields",e=>{return"object"==typeof e&&Object.keys(e).length>0?(o=e,void Object.keys(o).forEach((e=>{-1===O.indexOf(e)&&"function"==typeof o[e]&&(O.push(e),E[e]=o[e])}))):void 0;var o},"data",e=>e&&W(e,"setConfig")||void 0]),x.enabled?((o=x.endpoint).url&&!j?"GET"!==(o.method||"GET")?(0,n.vV)(`${S}: 'GET' is the only request method supported at this time!`):(T(o.url,{success:_,error:H},null,{method:"GET"}),j=!0):j&&(0,n.JE)(`${S}: A fetch is already occurring. Skipping.`),R||(d.on(c.qY.AUCTION_END,(e=>{setTimeout((()=>delete $[e.auctionId]),3e3)})),(0,r.m)().requestBids.before(L,50),(0,u.Yn)("addBidResponse").before(Z,(0,n.dp)()?4:50),R=!0)):((0,n.fH)(`${S}: Turning off module`),x={},$={},(0,u.Yn)("addBidResponse").getHooks({hook:Z}).remove(),(0,r.m)().requestBids.getHooks({hook:L}).remove(),R=!1)}const Z=(0,g.NL)("priceFloors",(function(e,o,t,l){let a=$[t.auctionId];if(!a||!t||a.skipped)return e.call(this,o,t,l);const s=p.n.index.getBidRequest(t);let d,u=V(a.data,s,{...t,size:[t.width,t.height]});if(!u.matchingFloor)return 0!==u.matchingFloor&&(0,n.JE)(`${S}: unable to determine a matching price floor for bidResponse`,t),e.call(this,o,t,l);let f=a.data.currency.toUpperCase(),m=t.currency||"USD";if(f===m.toUpperCase())d=t.cpm;else if(t.originalCurrency&&f===t.originalCurrency.toUpperCase())d=t.originalCpm;else try{d=(0,r.m)().convertCurrency(t.cpm,m.toUpperCase(),f)}catch(r){return(0,n.vV)(`${S}: Unable do get currency conversion for bidResponse to Floor Currency. Do you have Currency module enabled? ${t}`),e.call(this,o,t,l)}return d=B(d,t,s),function(e,o,t,r){t.floorData={floorValue:o.matchingFloor,floorRule:o.matchingRule,floorRuleValue:o.floorRuleValue,floorCurrency:e.data.currency,cpmAfterAdjustments:r,enforcements:{...e.enforcement},matchedFields:{}},e.data.schema.fields.forEach(((r,n)=>{let i=o.matchingData.split(e.data.schema.delimiter)[n];t.floorData.matchedFields[r]=i}))}(a,u,t,d),function(e,o,t){let r=!1!==(0,i.A)(e,"enforcement.enforceJS"),n=!0===(0,i.A)(e,"enforcement.floorDeals")||!t.dealId,l=t.floorData.cpmAfterAdjustments<o.matchingFloor;return r&&l&&n}(a,u,t)?(l(c.Tf.FLOOR_NOT_MET),void(0,n.JE)(`${S}: ${t.bidderCode}'s Bid Response for ${o} was rejected due to floor not met (adjusted cpm: ${t?.floorData?.cpmAfterAdjustments}, floor: ${u?.matchingFloor})`,t)):e.call(this,o,t,l)}));function K(e,o,t){let{currency:r=a.$W.getConfig("currency.adServerCurrency")||"USD",mediaType:i="*",size:l="*"}=o;if("function"==typeof e.getFloor){let o;try{o=e.getFloor({currency:r,mediaType:i,size:l})||{}}catch(o){return void(0,n.JE)("Cannot compute floor for bid",e)}o.floor=parseFloat(o.floor),null!=o.currency&&o.floor&&!isNaN(o.floor)&&t(o.floor,o.currency)}}a.$W.getConfig("floors",(e=>Y(e.floors))),(0,h.pS)({type:h.Tb,name:"bidfloor",fn:function(e,o,t){K(o,{currency:t.currency,mediaType:t.mediaType||"*",size:"*"},((o,t)=>{Object.assign(e,{bidfloor:o,bidfloorcur:t})}))}}),(0,h.pS)({type:h.Tb,name:"extBidfloor",fn:function(e,o,t){function r(o,t){o===e.bidfloor&&t===e.bidfloorcur||((0,l.J)(this,"ext.bidfloor",o),(0,l.J)(this,"ext.bidfloorcur",t))}Object.values(A.GE).filter((o=>null!=e[o])).forEach((n=>{K(o,{currency:e.bidfloorcur||t?.currency,mediaType:n},r.bind(e[n]))})),(e[A.D4]?.format||[]).filter((e=>{let{w:o,h:t}=e;return null!=o&&null!=t})).forEach((n=>{K(o,{currency:e.bidfloorcur||t?.currency,mediaType:A.D4,size:[n.w,n.h]},r.bind(n))}))},priority:-10}),(0,h.pS)({type:h.Tb,name:"extPrebidFloors",fn:function(e,o,t){if(null!=e.bidfloor){let{floorMinCur:o,floorMin:r}=t.reqContext.floorMin||{};null==o&&(o=e.bidfloorcur);const n=e.ext?.prebid?.floors?.floorMinCur||e.ext?.prebid?.floorMinCur||o,i=e.ext?.prebid?.floors?.floorMin||e.ext?.prebid?.floorMin,a=(0,v.hZ)(e.bidfloor,e.bidfloorcur,o),s=!(!i||!n)&&(0,v.hZ)(i,n,o),d=s&&s<a?s:a;(0,l.J)(e,"ext.prebid.floors.floorMin",d),(null==r||r>d)&&(r=d),t.reqContext.floorMin={floorMin:r,floorMinCur:o}}},dialects:[h.e4],priority:-1}),(0,h.pS)({type:h.S3,name:"extPrebidFloors",fn:function(e,o,t){R&&(0,l.J)(e,"ext.prebid.floors.enabled",e.ext?.prebid?.floors?.enabled||!1),t?.floorMin&&(0,n.D9)(e,{ext:{prebid:{floors:t.floorMin}}})},dialects:[h.e4]}),(0,r.E)("priceFloors")}},e=>{e.O(0,[802,3005,1225,5957,7769,2139,1085],(()=>{return o=9433,e(e.s=o);var o}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1252],{3990:(e,t,r)=>{var i=r(7873),n=r(3172),o=r(1069),a=r(433),s=r(7377),d=r(1371),l=r(3272),p=r(5789),c=r(1886),u=r(2693),m=r(9766),f=r(8969);const b="PubMatic: ",g=void 0,h="https://pubmatic.bbvms.com/r/".concat("$RENDERER",".js"),y=Object.values(f.h0),v={kadpageurl:"",gender:"",yob:"",lat:"",lon:"",wiid:""},w={1:"PMP",5:"PREF",6:"PMPG"},x={banner:360,video:1800,native:1800};let I,E={},C=[],O=[],$=0;const _=(0,m.A)({context:{netRevenue:!0,ttl:360},imp(e,t,r){const{kadfloor:i,currency:n,adSlot:o="",deals:a,dctr:s,pmzoneid:d,hashedKey:l}=t.params,{adUnitCode:p,mediaTypes:c,rtd:u}=t,m=e(t,r);return m.hasOwnProperty("banner")||m.hasOwnProperty("video")||m.hasOwnProperty("native")?(a&&q(m,a),s&&S(m,s),u?.jwplayer&&P(m,u.jwplayer),m.bidfloor=W("kadfloor",i),m.bidfloorcur=n?W("currency",n):"USD",A(m,t),m.hasOwnProperty("banner")&&T(m.banner,o),m.hasOwnProperty("video")&&k(c?.video,p,m),m.hasOwnProperty("native")&&U(m,c?.native),(m.hasOwnProperty("banner")||m.hasOwnProperty("video"))&&K(m,p,t?.sizes),d&&(m.ext.pmZoneId=d),J(m,o.trim(),l),j(m),["banner","video","native"].forEach((e=>{m[e]?.battr&&!Array.isArray(m[e].battr)&&delete m[e].battr})),m):null},request(e,t,r,i){const o=e(t,r,i);if(C.length||o.bcat){const e=H([...C||[],...o.bcat||[]]);e.length&&(o.bcat=e)}if(O.length||o.acat){const e=G([...O||[],...o.acat||[]]);e.length&&(o.acat=e)}M(o),z(o,i?.bidRequests),B(o);return(r?.bidderCode?u.u.get(r.bidderCode,"allowAlternateBidderCodes"):void 0)&&N(o,r),r?.ortb2?.ext?.prebid?.previousauctioninfo&&(0,n.J)(o,"ext.previousAuctionInfo",r.ortb2.ext.prebid.previousauctioninfo),o},bidResponse(e,t,r){const i=e(t,r);i.meta&&(i.meta.mediaType=i.mediaType),F(i,t,r);const{mediaType:n,playerWidth:a,playerHeight:s}=i,{params:l,adUnitCode:p,mediaTypes:c}=r?.bidRequest;if(n===d.G_){i.width||(i.width=a),i.height||(i.height=s);const{context:e,maxduration:t}=c[n];"outstream"===e&&l.outstreamAU&&p&&(i.rendererCode=l.outstreamAU,i.renderer=V.newRenderer(i.rendererCode,p)),D(i,e,t)}if(n===d.s6&&t.adm){try{const e=JSON.parse(t.adm.replace(/\\/g,""));i.native={ortb:{...e.native}}}catch(e){return void(0,o.JE)(`${b}Error: Cannot parse native response for ad response: ${t.adm}`)}i.width=t.w||0,i.height=t.h||0}return i},response:(e,t,r,i)=>e(t,r,i),overrides:{imp:{bidfloor:!1,extBidfloor:!1},bidResponse:{native:!1}}});const R=e=>{const t={};if(e.aspect_ratios&&(0,o.cy)(e.aspect_ratios)&&e.aspect_ratios.length){const{min_width:r,min_height:i}=e.aspect_ratios[0];(0,o.Fq)(r)&&(0,o.Fq)(i)&&(t.wmin=r,t.hmin=i),t.ext={aspectratios:e.aspect_ratios.filter((e=>{let{ratio_width:t,ratio_height:r}=e;return t&&r})).map((e=>{let{ratio_width:t,ratio_height:r}=e;return`${t}:${r}`}))}}return t.w=e.w||e.width,t.h=e.h||e.height,e.sizes&&2===e.sizes.length&&(0,o.Fq)(e.sizes[0])&&(0,o.Fq)(e.sizes[1])&&(t.w=e.sizes[0],t.h=e.sizes[1],delete t.wmin,delete t.hmin),e.ext&&(t.ext=e.ext),e.mimes&&(t.mimes=e.mimes),t},j=e=>{e.displaymanager||="Prebid.js",e.displaymanagerver||="9.50.0";const t=e.ext?.data?.adserver?.adslot;t&&(e.ext.dfp_ad_unit_code=t),e.ext?.data&&0===Object.keys(e.ext.data).length&&delete e.ext.data};const A=(e,t)=>{let r=-1,i=Object.keys(t.mediaTypes),n=i.length>1;"function"!=typeof t.getFloor||l.$W.getConfig("pubmatic.disableFloors")||[d.D4,d.G_,d.s6].forEach((i=>{if(!e.hasOwnProperty(i))return;(("banner"===i?e[i]?.format?.map((e=>{let{w:t,h:r}=e;return[t,r]})):["*"])||["*"]).forEach((a=>{const s=t.getFloor({currency:e.bidfloorcur,mediaType:i,size:a});if((0,o.fH)(b,"floor from floor module returned for mediatype:",i," and size:",a," is: currency",s.currency,"floor",s.floor),(0,o.Qd)(s)&&s?.currency===e.bidfloorcur&&!isNaN(parseInt(s.floor))){const t=parseFloat(s.floor);n&&i!==d.D4&&((0,o.fH)(b,"floor from floor module returned for mediatype:",i,"is : ",t,"with currency :",e.bidfloorcur),e[i].ext={bidfloor:t,bidfloorcur:e.bidfloorcur}),(0,o.fH)(b,"floor from floor module:",t,"previous floor value",r,"Min:",Math.min(t,r)),r=-1===r?t:Math.min(t,r),(0,o.fH)(b,"new floor value:",r)}})),n&&i===d.D4&&(e[i].ext={bidfloor:r,bidfloorcur:e.bidfloorcur})})),e.bidfloor&&((0,o.fH)(b,"Comparing floors:","from floor module:",r,"impObj.bidfloor:",e.bidfloor,"Max:",Math.max(r,e.bidfloor)),r=Math.max(r,e.bidfloor)),e.bidfloor=r>0?r:g,(0,o.fH)(b,"Updated imp.bidfloor:",e.bidfloor),n&&function(e,t){t.forEach((t=>{e[t]?.ext&&e[t].ext.bidfloor===e.bidfloor&&e[t].ext.bidfloorcur===e.bidfloorcur&&delete e[t].ext}))}(e,i)},T=(e,t)=>{let r=t.split(":"),i=r[0]?.split("@");i=2==i?.length?i[1].split("x"):3==i.length?i[2].split("x"):[];const n=e.format[0];2!==i.length||0==parseInt(i[0])&&0==parseInt(i[1])?(e.w=n.w,e.h=n.h):(e.w=parseInt(i[0]),e.h=parseInt(i[1])),e.format=e.format.filter((t=>!(t.w===e.w&&t.h===e.h))),e.pos??=0},J=(e,t,r)=>{const i=t.split(":")[0].split("@");e.tagid=r||i[0]},U=(e,t)=>{if(t?.ortb||(e.native.request=JSON.stringify((e=>{const t={ver:"1.2",assets:[]};for(let r in e){if(f._B.includes(r))continue;if(!f.x5.hasOwnProperty(r)&&!y.includes(r)){(0,o.JE)(`${b}: Unrecognized asset: ${r}. Ignored.`);continue}const i=e[r],n=i.required&&(0,o.Lm)(i.required)?1:0,a={id:t.assets.length,required:n};r in f.h0?a.data={type:f.jO[f.h0[r]],...i.len&&{len:i.len},...i.ext&&{ext:i.ext}}:"icon"===r||"image"===r?a.img={type:"icon"===r?f.oA.ICON:f.oA.MAIN,...R(i)}:"title"===r?a.title={len:i.len||140,...i.ext&&{ext:i.ext}}:"ext"===r&&(a.ext=i,delete a.required),t.assets.push(a)}return t})(t))),t?.ortb){let t=JSON.parse(e.native.request);const{assets:r}=t;r?.some((e=>e.title||e.img||e.data||e.video))?e.native.request=JSON.stringify({ver:"1.2",...t}):((0,o.JE)(`${b}: Native assets object is empty or contains invalid objects`),delete e.native)}},k=(e,t,r)=>{const i=r.video;(0,a.A)(e,"plcmt")||(0,o.JE)("Video.plcmt param missing for "+t),e&&(i.w||i.h)||(delete r.video,(0,o.JE)(`${b}Error: Missing ${e?"video size params (playersize or w&h)":"video config params"} for adunit: ${t} with mediaType set as video. Ignoring video impression in the adunit.`))},P=(e,t)=>{const r=t?.targeting;if(!r||!r.segments?.length)return;const i=`${`jw-id=${r.content.id}`}|${r.segments.map((e=>`jw-${e}=1`)).join("|")}`;e.ext=e.ext||{},e.ext.key_val=e.ext.key_val?`${e.ext.key_val}|${i}`:i},S=(e,t)=>{if((0,o.O8)(t)&&t.length>0){const r=t.split("|").filter((e=>e.trim().length>0));t=r.map((e=>e.trim())).join("|"),e.ext.key_val=t}else(0,o.JE)(b+"Ignoring param : dctr with value : "+t+", expects string-value, found empty or non-string value")},q=(e,t)=>{(0,o.cy)(t)?t.forEach((t=>{"string"==typeof t&&t.length>3?(e.pmp||(e.pmp={private_auction:0,deals:[]}),e.pmp.deals.push({id:t})):(0,o.JE)(`${b}Error: deal-id present in array bid.params.deals should be a string with more than 3 characters length, deal-id ignored: ${t}`)})):(0,o.JE)(`${b}Error: bid.params.deals should be an array of strings.`)},N=(e,t)=>{const r=["all"];let i=u.u.get(t.bidderCode,"allowedAlternateBidderCodes");const n=(0,o.cy)(i)?i.map((e=>e.trim().toLowerCase())).filter(o.hj):r;e.ext.marketplace={allowedbidders:n.includes("*")||n.includes("all")?r:[...new Set(["pubmatic",...n.filter((e=>e&&e.trim()))])]}},M=e=>{(0,n.J)(e,"at",1),(0,n.J)(e,"cur",["USD"]),e.test=window.location.href.includes("pubmaticTest=true")?1:void 0,e.source&&!Object.keys(e.source).length&&delete e.source,e.app?.publisher&&(e.app.publisher.id=$)},z=(e,t)=>{const{gender:r,yob:i,pubId:n,refURL:o,kadpageurl:s}=E,{user:d}=e;e.device&&Object.assign(e.device,{js:1,connectiontype:L()}),e.user={...e.user,gender:d?.gender||r?.trim()||g,yob:d?.yob||W("yob",i)};const l=(0,a.A)(t,"0.userIdAsEids");t.length&&l?.length&&!e.user.ext?.eids&&(e.user.ext=e.user.ext||{},e.user.ext.eids=l),e.site?.publisher&&(e.site.ref=e.site.ref||o,e.site.publisher.id=n?.trim()),e.site?.page&&s&&(e.site.page=s.trim()),e.device.geo&&!e.user.geo?e.user.geo=e.device.geo:e.user.geo&&!e.device.geo&&(e.device.geo=e.user.geo)},F=(e,t,r)=>{const{ortbRequest:i,seatbid:n}=r;if(e.referrer=i.site?.ref||"",e.sspID=e.partnerImpId=t.id||"",e.ad=t.adm,e.pm_dspid=t.ext?.dspid?t.ext.dspid:null,e.pm_seat=n.seat,e.creativeId||(e.creativeId=t.id),360==e.ttl&&(e.ttl=x[e.mediaType]),t.dealid&&(e.dealChannel=t.ext?.deal_channel?w[t.ext.deal_channel]||null:"PMP"),n.ext?.buyid&&(e.adserverTargeting={hb_buyid_pubmatic:n.ext.buyid}),t.ext?.marketplace&&(e.bidderCode=t.ext.marketplace),t.ext){const{dspid:r,dchain:i,dsa:n,ibv:o}=t.ext;r&&(e.meta.networkId=e.meta.demandSource=r),i&&(e.meta.dchain=i),n&&Object.keys(n).length&&(e.meta.dsa=n),o&&(e.ext=e.ext||{},e.ext.ibv=o,e.meta.mediaType=d.G_)}const o=n.seat||t.ext?.advid;o&&(e.meta.advertiserId=e.meta.agencyId=e.meta.buyerId=o),X(t.adomain)&&(e.meta.clickUrl=e.meta.brandId=t.adomain[0]),t.cat&&X(t.cat)&&(e.meta.secondaryCatIds=t.cat,e.meta.primaryCatId=t.cat[0])},B=e=>{const{profId:t,verId:r,wiid:i,transactionId:n}=E;e.ext={epoch:(new Date).getTime(),wrapper:{profile:t?parseInt(t):void 0,version:r?parseInt(r):void 0,wiid:i,wv:"prebid_prebid_9.50.0",transactionId:n,wp:"pbjs"},cpmAdjustment:I}},D=(e,t,r)=>{if(!e?.ext?.prebiddealpriority)return;if(t!=d.LM)return;const i=e?.ext?.video?.duration||r;e.video={context:d.LM,durationSeconds:i,dealTier:e.ext.prebiddealpriority}},G=e=>[...new Set(e.filter((e=>{if("string"==typeof e)return!0;(0,o.JE)(b+"acat: Each category should be a string, ignoring category: "+e)})).map((e=>e.trim())))],H=e=>{const t=(e=e.map((e=>"string"==typeof e?e.trim():e))).filter((e=>"string"!=typeof e||e.length<3));return(0,o.JE)(b+"bcat: Each category must be a string with a length greater than 3, ignoring "+t),[...new Set(e.filter((e=>"string"==typeof e&&e.length>=3)))]},L=()=>{let e=window.navigator&&(window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection);return{ethernet:1,wifi:2,"slow-2g":4,"2g":4,"3g":5,"4g":6}[e?.effectiveType]||0},V={bootstrapPlayer:function(e){const t={code:e.adUnitCode,vastXml:e.vastXml||null,vastUrl:e.vastUrl||null};if(!t.vastXml&&!t.vastUrl)return void(0,o.JE)(`${b}: No vastXml or vastUrl on bid, bailing...`);const r=V.getRendererId("pubmatic",e.rendererCode),i=document.getElementById(e.adUnitCode),n=window.bluebillywig.renderers.find((e=>e._id===r));n?n.bootstrap(t,i):(0,o.JE)(`${b}: Couldn't find a renderer with ${r}`)},newRenderer:function(e,t){const r=h.replace("$RENDERER",e),i=p.A4.install({url:r,loaded:!1,adUnitCode:t});try{i.setRender(V.outstreamRender)}catch(e){(0,o.JE)(`${b}: Error tying to setRender on renderer`,e)}return i},outstreamRender:function(e){e.renderer.push((()=>V.bootstrapPlayer(e)))},getRendererId:function(e,t){return`${e}-${t}`}};function W(e,t){if(!(0,o.O8)(t))return t&&(0,o.JE)(b+"Ignoring param key: "+e+", expects string-value, found "+typeof t),g;const r={pmzoneid:()=>t.split(",").slice(0,50).map((e=>e.trim())).join(),kadfloor:()=>parseFloat(t),lat:()=>parseFloat(t),lon:()=>parseFloat(t),yob:()=>parseInt(t)};return r[e]?.()||t}function X(e){return!0===(0,o.cy)(e)&&e.length>0}const K=(e,t,r)=>{let i={w:0,h:0};e.video?.w>0&&e.video?.h>0?(i.w=e.video.w,i.h=e.video.h):i=function(e){return e&&e.length?e.reduce(((e,t)=>t.h*t.w<e.h*e.w?t:e),e[0]):{w:0,h:0}}(r);const n=document.getElementById(t);if(!n)return;const a=(0,c.tF)(n)?(0,c.gl)(n,(0,o.mb)(),i):"na";e.ext||(e.ext={}),e.ext.viewability={amount:isNaN(a)?a:Math.round(a)}},Q={code:"pubmatic",gvlid:76,supportedMediaTypes:[d.D4,d.G_,d.s6],isBidRequestValid:e=>{if(!e||!e.params)return!1;const{publisherId:t}=e.params,r=e.mediaTypes||{},i=r[d.G_]||{};if(!(0,o.O8)(t))return(0,o.JE)(b+"Error: publisherId is mandatory and cannot be numeric (wrap it in quotes in your config). Call to OpenBid will not be sent for ad unit: "+JSON.stringify(e)),!1;if(r.hasOwnProperty(d.G_)){const t=(0,a.A)(e,"mediaTypes.video.mimes"),n=(0,a.A)(e,"params.video.mimes");if(!X(t)&&!X(n))return(0,o.JE)(b+"Error: For video ads, bid.mediaTypes.video.mimes OR bid.params.video.mimes should be present and must be a non-empty array. Call to OpenBid will not be sent for ad unit:"+JSON.stringify(e)),!1;if(!i.context)return(0,o.vV)(`${b}: No context specified in bid. Rejecting bid: `,e),!1;if("outstream"===i.context&&!(0,o.O8)(e.params.outstreamAU)&&!e.renderer&&!i.renderer)return r.hasOwnProperty(d.D4)||r.hasOwnProperty(d.s6)?(delete r[d.G_],(0,o.JE)(`${b}: for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting mediatype Video of bid: `,e),!0):((0,o.vV)(`${b}: for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting bid: `,e),!1)}return!0},buildRequests:(e,t)=>{const{page:r,ref:i}=t?.refererInfo||{},{publisherId:n,profId:a,verId:s}=t?.bids?.[0]?.params||{};var d;$=n?.trim()||(d=t?.bids,Array.isArray(d)&&d.length>0&&d.find((e=>e.params?.publisherId?.trim()))?.params.publisherId||null)?.trim();const l=(0,o.lk)();let p;C=[],O=[],E={pageURL:r||window.location.href,refURL:i||window.document.referrer,pubId:$,kadpageurl:r||window.location.href,profId:a,verId:s},e.forEach((e=>{e.params.wiid=e.params.wiid||t.auctionId||l,p=(0,o.Go)(e),((e,t)=>{Object.keys(v).forEach((r=>{const i=e[r];i&&((0,o.O8)(i)?t[r]=i:(0,o.JE)(`${b}Ignoring param: ${r} with value: ${v[r]}, expects string value, found ${typeof i}`))}))})(p.params,E),E.transactionId=p.ortb2Imp?.ext?.tid;const{bcat:r,acat:i}=p.params;r&&(C=C.concat(r)),i&&(O=O.concat(i))}));const c=_.toORTB({validBidRequests:e,bidderRequest:t});let u={method:"POST",url:"https://hbopenbid.pubmatic.com/translator?source=prebid-client",data:c,bidderRequest:t,options:{endpointCompression:!0}};return c?.imp?.length?u:null},interpretResponse:(e,t)=>{const{bids:r}=_.fromORTB({response:e.body,request:t.data}),i=(0,a.A)(e.body,"ext.fledge_auction_configs");return i?{bids:r,paapi:Object.entries(i).map((e=>{let[t,r]=e;return{bidId:t,config:{auctionSignals:{},...r}}}))}:r},getUserSyncs:(e,t,r,i,n)=>{let o=$;r&&(o+=`&gdpr=${r.gdprApplies?1:0}&gdpr_consent=${encodeURIComponent(r.consentString||"")}`),i&&(o+=`&us_privacy=${encodeURIComponent(i)}`),n?.gppString&&n?.applicableSections?.length&&(o+=`&gpp=${encodeURIComponent(n.gppString)}&gpp_sid=${encodeURIComponent(n.applicableSections.join(","))}`),!0===l.$W.getConfig("coppa")&&(o+="&coppa=1");const a=e.iframeEnabled?"iframe":"image";return[{type:a,url:("iframe"===a?"https://ads.pubmatic.com/AdServer/js/user_sync.html?kdntuid=1&p=":"https://image8.pubmatic.com/AdServer/ImgSync?p=")+o}]},onBidWon:e=>{!function(e){if(!e)return;const{originalCurrency:t,currency:r,cpm:i,originalCpm:n,meta:a}=e,s=t!==r&&(0,o.fp)(e.getCpmInNewCurrency)?e.getCpmInNewCurrency(t):i,d=e.mediaType,l=a?.mediaType;I=I||{currency:r,originalCurrency:t,adjustment:[]};const p={cpmAdjustment:Number(((n-s)/n).toFixed(2)),mediaType:d,metaMediaType:l,cpm:s,originalCpm:n},c=I?.adjustment?.findIndex((e=>e?.mediaType===d&&e?.metaMediaType===l));-1!==c?I.adjustment.splice(c,1,p):I.adjustment.push(p)}(e)}};(0,s.a$)(Q),(0,i.E)("pubmaticBidAdapter")}},e=>{e.O(0,[802,8498,2316,4472,7769,2139,1085],(()=>{return t=3990,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1581],{1077:(e,r,n)=>{var t=n(7873),i=n(433),a=n(1069),d=n(7377),o=n(3272),s=n(1371),p=n(5789),c=n(9495);let u="";const l={code:"richaudience",gvlid:108,aliases:[{code:"ra",gvlid:108}],supportedMediaTypes:[s.D4,s.G_],isBidRequestValid:function(e){return!!(e.params&&e.params.pid&&e.params.supplyType)},buildRequests:function(e,r){return e.map((e=>{var n={bidfloor:v(e,o.$W),ifa:e.params.ifa,pid:e.params.pid,supplyType:e.params.supplyType,currencyCode:(0,c.b)(r),auctionId:e.auctionId,bidId:e.bidId,BidRequestsCount:e.bidRequestsCount,bidder:e.bidder,bidderRequestId:e.bidderRequestId,tagId:e.adUnitCode,sizes:m(e),referer:void 0!==r.refererInfo.page?encodeURIComponent(r.refererInfo.page):null,numIframes:void 0!==r.refererInfo.numIframes?r.refererInfo.numIframes:null,transactionId:e.ortb2Imp?.ext?.tid,timeout:r.timeout||600,eids:(0,i.A)(e,"userIdAsEids")?e.userIdAsEids:[],demand:f(e),videoData:g(e),scr_rsl:h(),cpuc:void 0!==window.navigator?window.navigator.hardwareConcurrency:null,kws:e.params.keywords,schain:e.schain,gpid:y(e),dsa:I(e),userData:(0,i.A)(e,"ortb2.user.data")};u=void 0!==r.refererInfo.page?encodeURIComponent(r.refererInfo.page):null,n.gdpr_consent="",n.gdpr=!1,r&&r.gdprConsent&&(void 0!==r.gdprConsent.gdprApplies&&(n.gdpr=r.gdprConsent.gdprApplies),void 0!==r.gdprConsent.consentString&&(n.gdpr_consent=r.gdprConsent.consentString)),r?.gppConsent?n.privacy={gpp:r.gppConsent.gppString,gpp_sid:r.gppConsent.applicableSections}:r?.ortb2?.regs?.gpp&&(n.privacy={gpp:r.ortb2.regs.gpp,gpp_sid:r.ortb2.regs.gpp_sid});return{method:"POST",url:"https://shb.richaudience.com/hb/",data:JSON.stringify(n)}}))},interpretResponse:function(e,r){const n=[];var t=e.body;if(t){var i={requestId:JSON.parse(r.data).bidId,cpm:t.cpm,width:t.width,height:t.height,creativeId:t.creative_id,mediaType:t.media_type,netRevenue:t.netRevenue,currency:t.currency,ttl:t.ttl,meta:{advertiserDomains:[t.adomain[0]]},dealId:t.dealId};if("video"===t.media_type){i.vastXml=t.vastXML;try{null!=i.vastXml&&("outstream"!=JSON.parse(r.data).videoData.format&&"banner"!=JSON.parse(r.data).videoData.format||(i.renderer=p.A4.install({id:r.bidId,adunitcode:r.tagId,loaded:!1,config:t.media_type,url:"https://cdn3.richaudience.com/prebidVideo/player.js"})),i.renderer.setRender(b))}catch(e){i.ad=t.adm}}else i.ad=t.adm;n.push(i)}return n},getUserSyncs:function(e,r,n,t,i){const a=[];var d,s=Math.floor(9999999999*Math.random()),p="",c="",l="";return d=function(e){try{let r=null,n={};return null!=e.getConfig("userSync").filterSettings&&void 0!==e.getConfig("userSync").filterSettings&&(r=e.getConfig("userSync").filterSettings,null!=r.iframe&&void 0!==r.iframe&&(n.raiIframe="richaudience"==r.iframe.bidders||"*"==r.iframe.bidders?r.iframe.filter:"exclude"),null!=r.image&&void 0!==r.image&&(n.raiImage="richaudience"==r.image.bidders||"*"==r.image.bidders?r.image.filter:"exclude")),n}catch(e){return null}}(o.$W),n&&"string"==typeof n.consentString&&void 0!==n.consentString&&(c=`consentString=${n.consentString}`),i?.gppString&&i?.applicableSections?.length&&(l="gpp="+encodeURIComponent(i.gppString),l+="&gpp_sid="+encodeURIComponent(i?.applicableSections?.join(","))),e.iframeEnabled&&"exclude"!=d.raiIframe&&(p="https://sync.richaudience.com/dcf3528a0b8aa83634892d50e91c306e/?ord="+s,""!=c&&(p+=`&${c}`),""!=l&&(p+=`&${l}`),a.push({type:"iframe",url:p})),e.pixelEnabled&&null!=u&&0==a.length&&"exclude"!=d.raiImage&&(p=`https://sync.richaudience.com/bf7c142f4339da0278e83698a02b0854/?referrer=${u}`,""!=c&&(p+=`&${c}`),""!=l&&(p+=`&${l}`),a.push({type:"image",url:p})),a},onTimeout:function(e){let r=function(e){let{params:r,timeout:n}=e[0],t="https://s.richaudience.com/err/?ec=6&ev=[timeout_publisher]&pla=[placement_hash]&int=PREBID&pltfm=&node=&dm=[domain]";t=t.replace("[timeout_publisher]",n),t=t.replace("[placement_hash]",r[0].pid),null!=document.location.host&&(t=t.replace("[domain]",document.location.host));return t}(e);r&&(0,a.z$)(r)}};function m(e){let r;if(e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes&&(r=e.mediaTypes.banner.sizes),null!=r)return r.map((e=>({w:e[0],h:e[1]})))}function f(e){let r="display";return void 0!==e.sizes&&e.sizes.forEach((function(e){("1800"==e[0]&&"1000"==e[1]||"1"==e[0]&&"1"==e[1])&&(r="skin")})),null!=e.mediaTypes&&null!=e.mediaTypes.video&&(r="video"),r}function g(e){let r;return r="video"==f(e)?{format:e.mediaTypes.video.context,playerSize:e.mediaTypes.video.playerSize,mimes:e.mediaTypes.video.mimes}:{format:"banner"},r}function b(e){e.renderer.push((()=>{!function(e){let r=`${e.vastXml}`,n={adUnit:e.adUnitCode};window.raParams(n,r,!0)}(e)}))}function h(){let e="";return void 0!==window.screen&&(e=window.screen.width+"x"+window.screen.height),e}function y(e){let r="";return null!=(0,i.A)(e,"ortb2Imp.ext.data.pbadslot")&&(r=(0,i.A)(e,"ortb2Imp.ext.data.pbadslot")),r}function v(e,r){try{let n;if(null!=e.params.bidfloor)n=e.params.bidfloor;else if("function"==typeof e.getFloor){n=e.getFloor({currency:null!=r.getConfig("floors.data.currency")?r.getConfig("floors.data.currency"):"USD",mediaType:"object"==typeof e.mediaTypes.banner?"banner":"video",size:"*"}).floor}return n}catch(e){return 0}}function I(e){return e?.ortb2?.regs?.ext?.dsa?e?.ortb2?.regs?.ext?.dsa:null}(0,d.a$)(l),(0,t.E)("richaudienceBidAdapter")}},e=>{e.O(0,[9147,802,7769,2139,1085],(()=>{return r=1077,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3206],{6848:(a,r,s)=>{var e=s(7873),i=s(1069),n=s(7377),t=s(7668),p=s(9609);const d={...(0,t.B2)(p.C1,p.FN),code:p.nf,aliases:p.rY,gvlid:p.H,isBidRequestValid:function(a){return a.params?!!a.params.org||((0,i.JE)("org is a mandatory param for Rise adapter"),!1):((0,i.JE)("no params have been set to Rise adapter"),!1)}};(0,n.a$)(d),(0,e.E)("riseBidAdapter")}},a=>{a.O(0,[2183,802,7769,2139,1085],(()=>{return r=6848,a(a.s=r);var r}));a.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[1079],{5330:(t,e,n)=>{var o=n(7873),i=n(3272),a=n(9214),r=n(1069),s=n(5023),c=n(8969),u=n(1445),f=n(6916),l=n(6894),g=n(5569),d=n(6318);const h=(0,n(2604).ZI)((t=>u.Ay.resolveAlias(t)));let p,D,E=[],m=[],T=[];const R=function(){let t=!1;return function(){t||(Object.entries({[c.qY.AUCTION_INIT]:["onAuctionInitEvent"],[c.qY.AUCTION_END]:["onAuctionEndEvent",b],[c.qY.BID_RESPONSE]:["onBidResponseEvent"],[c.qY.BID_REQUESTED]:["onBidRequestEvent"],[c.qY.BID_ACCEPTED]:["onBidAcceptedEvent"]}).forEach((t=>{let[e,[n,o]]=t;s.on(e,(t=>{o&&o(t),m.forEach((e=>{try{e[n]&&e[n](t,e.config,D)}catch(t){(0,r.vV)(`RTD provider '${e.name}': error in '${n}':`,t)}}))}))})),t=!0)}}();function v(){return{gdpr:f.mW.getConsentData(),usp:f.t6.getConsentData(),gpp:f.ad.getConsentData(),coppa:!!i.$W.getConfig("coppa")}}function y(){D=v();let t=[];T.forEach((e=>{const n=(E||[]).find((t=>t.name===e.name));n&&n.init&&n.init(e,D)&&t.push(Object.assign(n,{config:e}))})),m=t,(0,r.fH)(`Real time data module enabled, using submodules: ${m.map((t=>t.name)).join(", ")}`)}const A=(0,l.Ak)("rtd",(function(t,e){D=v();const n=[],o=[];m.forEach((t=>{if("function"!=typeof t.getBidRequestData)return;n.push(t);const e=t.config;e&&e.waitForIt&&o.push(t)}));const i=o.length&&p?.auctionDelay>0;let a,r=o.length,s=!1;const c=[];if(!n.length)return l();const u=i?p.auctionDelay:0;function f(){s||(this.config&&this.config.waitForIt&&r--,0===r&&setTimeout(l,0))}function l(){s||(s=!0,clearTimeout(a),c.forEach((t=>t())),t.call(this,e))}a=setTimeout(l,u),n.forEach((t=>{const n=(0,d.Qo)(e.ortb2Fragments||{},h(g.zu,t.name));c.push(n.verify),e.ortb2Fragments=n.obj,t.getBidRequestData(e,f.bind(t),t.config,D,u)}))}));function b(t){const e=m.filter((t=>"function"==typeof t.getTargetingData));if(!e.length)return;const n=t.adUnitCodes;if(!n)return;let o=[];for(let i=e.length-1;i>=0;i--){const a=e[i].getTargetingData(n,e[i].config,D,t);a&&"object"==typeof a?o.push(a):(0,r.JE)("invalid getTargetingData response for sub module",e[i].name)}const i=function(t){if(!Array.isArray(t)||!t.length)return{};return t.reduce(((t,e)=>{for(let n in e)if(e.hasOwnProperty(n))if(t.hasOwnProperty(n)){const o=e[n];for(let e in o)o.hasOwnProperty(e)&&(t[n][e]=o[e])}else t[n]=e[n];return t}),{})}(o);return t.adUnits.forEach((t=>{const e=t.code&&i[t.code];e&&((0,r.fH)("RTD set ad unit targeting of",e,"for",t),t[c.iD.ADSERVER_TARGETING]=Object.assign(t[c.iD.ADSERVER_TARGETING]||{},e))})),t.adUnits}function I(t){m.forEach((t=>{if("function"==typeof t.onDataDeletionRequest)try{t.onDataDeletionRequest(t.config)}catch(e){(0,r.vV)(`Error executing ${t.name}.onDataDeletionRequest`,e)}}));for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];t.apply(this,n)}(0,a.xG)("realTimeData",(function(t){return E.push(t),f.o2.register(g.zu,t.name,t.gvlid),function(){const e=E.indexOf(t);e>=0&&(E.splice(e,1),y())}})),function(t){const e=t.getConfig("realTimeData",(t=>{let{realTimeData:n}=t;n.dataProviders?(e(),p=n,T=n.dataProviders,R(),(0,a.Yn)("startAuction").before(A,20),u.Ay.callDataDeletionRequest.before(I),y()):(0,r.vV)("missing parameters for real time module")}))}(i.$W),(0,o.E)("rtdModule")}},t=>{t.O(0,[5881,802,7769,2139,1085],(()=>{return e=5330,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2711],{9293:(e,t,r)=>{var i=r(7873),n=r(9766),o=r(981),s=r(7377),a=r(3272),d=r(1371),c=r(5789),p=r(1069),u=r(3172),l=r(433),m=r(8656),b=r(8702);const x="https://video-outstream.rubiconproject.com/apex-2.2.1.js";let f=a.$W.getConfig("rubicon")||{};a.$W.getConfig("rubicon",(e=>{(0,p.D9)(f,e.rubicon)}));let g={};var y={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",710:"600x250",712:"340x430"};(0,p.bu)(y,((e,t)=>y[e]=t));const h=(0,n.A)({request(e,t,r,n){const{bidRequests:o}=n,s=e(t,r,n);var d;s.cur=["USD"],s.test=a.$W.getConfig("debug")?1:0,(0,u.J)(s,"ext.prebid.cache",{vastxml:{returnCreative:!0===f.returnVast}}),(0,u.J)(s,"ext.prebid.bidders",{rubicon:{integration:f.int_type||"pbjs"}}),(0,u.J)(s,"ext.prebid.targeting.pricegranularity",{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:(d=a.$W).getConfig("customPriceBucket")&&d.getConfig("customPriceBucket").buckets}[d.getConfig("priceGranularity")]});let c=(0,i.m)().installedModules;!c||c.length&&-1===c.indexOf("rubiconAnalyticsAdapter")||(0,u.J)(s,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),function(e,t,r){let i={};const n=(0,m.D)(r,...t.map((e=>e.params.keywords)));t.forEach((t=>{const r={user:{ext:{data:{...t.params.visitor}}},site:{ext:{data:{...t.params.inventory}}}},n=e.imp.find((e=>e.ext?.prebid?.bidder?.rubicon?.video?.language));n&&(r.site.content={language:n.ext?.prebid?.bidder?.rubicon?.video?.language}),i=(0,p.D9)(i,t.ortb2||{},r);const o=a.$W.getConfig("user.id");i.user.id=i.user.id||o})),(0,p.D9)(e,i),n&&n.length&&(0,u.J)(e,"site.keywords",n.join(","));delete e?.ext?.prebid?.storedrequest}(s,o,r.ortb2),delete s?.ext?.prebid?.storedrequest,!0===f.disableFloors&&delete s.ext.prebid.floors;return o.filter((e=>"object"==typeof e.floorData)).length>0&&(s.ext.prebid.floors={enabled:!1}),s},imp(e,t,r){const i=R(t);if(i.includes(d.D4)&&1==i.length)return;const n=e(t,r);return n.id=t.adUnitCode,delete n.banner,"atf"===t.params.position&&n.video&&(n.video.pos=1),"btf"===t.params.position&&n.video&&(n.video.pos=3),delete n.ext?.prebid?.storedrequest,!0===t.params.bidonmultiformat&&i.length>1&&(0,u.J)(n,"ext.prebid.bidder.rubicon.formats",i),function(e,t){"USD"!=t.bidfloorcur&&(delete t.bidfloor,delete t.bidfloorcur);if(!t.bidfloor){let r=parseFloat((0,l.A)(e,"params.floor"));isNaN(r)||(t.bidfloor=r,t.bidfloorcur="USD")}}(t,n),n.id=g[n.id]?n.id+g[n.id]++:(g[n.id]=2,n.id),n},bidResponse(e,t,r){const i=e(t,r);i.meta.mediaType=(0,l.A)(t,"ext.prebid.type");const{bidRequest:n}=r;let[o,s]="outstream"===n.mediaTypes.video?.context?j(n,d.G_):[void 0,void 0];return i.width=t.w||o||i.playerWidth||0,i.height=t.h||s||i.playerHeight||0,i.mediaType===d.G_&&"outstream"===n.mediaTypes.video.context&&(i.renderer=function(e){const t=c.A4.install({id:e.adId,url:f.rendererUrl||x,config:f.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{t.setRender(A)}catch(e){(0,p.JE)("Prebid Error calling setRender on renderer",e)}return t}(i)),(0,l.A)(t,"ext.bidder.rp.advid")&&(0,u.J)(i,"meta.advertiserId",t.ext.bidder.rp.advid),i},context:{netRevenue:!1!==f.netRevenue,ttl:360},processors:o.m}),_={code:"rubicon",gvlid:52,supportedMediaTypes:[d.D4,d.G_,d.s6],isBidRequestValid:function(e){let t=!0;if("object"!=typeof e.params)return!1;for(let t=0,r=["accountId","siteId","zoneId"];t<r.length;t++)if(e.params[r[t]]=parseInt(e.params[r[t]]),isNaN(e.params[r[t]]))return(0,p.vV)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;let r=R(e,!0);if(!r.length)return!1;r.includes(d.G_)&&(t=function(e){let t=!0,r=Object.prototype.toString.call([]),i=Object.prototype.toString.call(0);var n={mimes:r,protocols:r,linearity:i};return Object.keys(n).forEach((function(r){Object.prototype.toString.call((0,l.A)(e,"mediaTypes.video."+r))!==n[r]&&(t=!1,(0,p.vV)("Rubicon: mediaTypes.video."+r+" is required and must be of type: "+n[r]))})),t}(e));const i=[d.D4,d.s6].filter((e=>r.includes(e))).length>0;return i?t&&i:t},buildRequests:function(e,t){let r,i=[],n=[];if(r=e.filter((e=>{const t=R(e)||[],{length:r}=t,{bidonmultiformat:i,video:n}=e.params||{};return 1===r&&(t.includes(d.G_)||t.includes(d.s6))||2===r&&!t.includes(d.D4)||n&&t.includes(d.G_)||i&&(t.includes(d.G_)||t.includes(d.s6))})),r&&r.length){const e=h.toORTB({bidRequests:r,bidderRequest:t});C(),n.push({method:"POST",url:`https://${f.videoHost||"prebid-server"}.rubiconproject.com/openrtb2/auction`,data:e,bidRequest:r})}const o=e.filter((e=>{const t=R(e)||[],{bidonmultiformat:r,video:i}=e.params||{};return t.includes(d.D4)&&(1===t.length||r||!r&&!i||!r&&i&&!t.includes(d.G_))}));if(!0!==f.singleRequest)i=n.concat(o.map((e=>{const r=_.createSlotParams(e,t);return{method:"GET",url:`https://${f.bannerHost||"fastlane"}.rubiconproject.com/a/api/fastlane.json`,data:_.getOrderedParams(r).reduce(((e,t)=>{const i=r[t];return(0,p.O8)(i)&&""!==i||(0,p.Et)(i)?`${e}${S(t,i)}&`:e}),"")+`slots=1&rand=${Math.random()}`,bidRequest:e}})));else{const e=o.reduce(((e,t)=>((e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e)),{}),r=10;i=n.concat(Object.keys(e).reduce(((i,n)=>{var o,s;return(o=e[n],s=r,o.map(((e,t)=>t%s==0?o.slice(t,t+s):null)).filter((e=>e))).forEach((e=>{const r=_.combineSlotUrlParams(e.map((e=>_.createSlotParams(e,t))));i.push({method:"GET",url:`https://${f.bannerHost||"fastlane"}.rubiconproject.com/a/api/fastlane.json`,data:_.getOrderedParams(r).reduce(((e,t)=>{const i=r[t];return(0,p.O8)(i)&&""!==i||(0,p.Et)(i)?`${e}${S(t,i)}&`:e}),"")+`slots=${e.length}&rand=${Math.random()}`,bidRequest:e})})),i}),[]))}return i},getOrderedParams:function(e){const t=/^tg_v/,r=/^tg_i/,i=/^eid_|^tpid_/,n=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","gpp","gpp_sid","rp_schain"].concat(Object.keys(e).filter((e=>i.test(e)))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter((e=>t.test(e)))).concat(Object.keys(e).filter((e=>r.test(e)))).concat(["tk_flint","x_source.tid","l_pb_bid_id","p_screen_res","o_ae","o_cdep","rp_floor","rp_secure","tk_user_key"]);return n.concat(Object.keys(e).filter((e=>-1===n.indexOf(e))))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];const t=e.reduce((function(t,r,i){return Object.keys(r).forEach((function(n){t.hasOwnProperty(n)||(t[n]=new Array(e.length)),t[n].splice(i,1,r[n])})),t}),{}),r=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(t).forEach((function(e){const i=t[e].join(";"),n=i.match(r);t[e]=n?n[1]:i})),t},createSlotParams:function(e,t){e.startTime=(new Date).getTime();const r=e.params,i=j(e,"banner"),[n,o]=r.latLong||[],s={account_id:r.accountId,site_id:r.siteId,zone_id:r.zoneId,size_id:i[0],alt_size_ids:i.slice(1).join(",")||void 0,rp_floor:(r.floor=parseFloat(r.floor))>=.01?r.floor:void 0,rp_secure:"1",tk_flint:`${f.int_type||"pbjs_lite"}_v9.50.0`,"x_source.tid":t.ortb2?.source?.tid,"x_imp.ext.tid":e.ortb2Imp?.ext?.tid,l_pb_bid_id:e.bidId,o_cdep:e.ortb2?.device?.ext?.cdep,ip:e.ortb2?.device?.ip,ipv6:e.ortb2?.device?.ipv6,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:r.userId,"p_geo.latitude":isNaN(parseFloat(n))?void 0:parseFloat(n).toFixed(4),"p_geo.longitude":isNaN(parseFloat(o))?void 0:parseFloat(o).toFixed(4),"tg_fl.eid":e.code,rf:v(e,t)};if("function"==typeof e.getFloor&&!f.disableFloors){let t;try{t=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,p.vV)("Rubicon: getFloor threw an error: ",e)}s.rp_hard_floor=(0,p.Qd)(t)&&"USD"===t.currency&&!isNaN(parseInt(t.floor))?t.floor:void 0}!0===r.bidonmultiformat&&(0,l.A)(e,"mediaTypes")&&Object.keys(e.mediaTypes).length>1&&(s.p_formats=Object.keys(e.mediaTypes).join(","));let c={1:"atf",3:"btf"}[(0,l.A)(e,"mediaTypes.banner.pos")]||"";s.p_pos="atf"===r.position||"btf"===r.position?r.position:c;const u=a.$W.getConfig("user.id");return u&&(s.ppuid=u),e?.ortb2Imp?.ext?.ae&&(s.o_ae=1),"number"==typeof e?.ortb2?.site?.mobile&&(s["p_site.mobile"]=e.ortb2.site.mobile),function(e,t){if(!1===f.readTopics)return;let r=[1,2,5,6,7,507].concat(f.sendSiteSegtax?.map((e=>Number(e)))||[]),i=[4,508].concat(f.sendUserSegtax?.map((e=>Number(e)))||[]),n=e.ortb2?.user?.data||[],o=e.ortb2?.site?.content?.data||[];n.forEach($(t,"v",i)),o.forEach($(t,"i",r))}(t,s),e?.ortb2?.user?.ext?.eids&&e.ortb2.user.ext.eids.forEach((e=>{let{source:t,uids:r=[],inserter:i,matcher:n,mm:o,ext:a={}}=e;try{const e=r[0];if(!e)return;const a=e=>[e.id,e.atype||"","",i||"",n||"",o||"",e?.ext?.rtiPartner||e?.ext?.rtipartner||""].join("^"),d=a(e);if(s[`eid_${t}`]=d,!s.ppuid){const e=r.find((e=>"ppuid"===e.ext?.stype));e?.id&&(s.ppuid=e.id)}}catch(e){(0,p.JE)("Rubicon: error reading eid:",{source:t,uids:r},e)}})),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(s.gdpr=Number(t.gdprConsent.gdprApplies)),s.gdpr_consent=t.gdprConsent.consentString),t.uspConsent&&(s.us_privacy=encodeURIComponent(t.uspConsent)),t.gppConsent?.gppString&&(s.gpp=t.gppConsent.gppString,s.gpp_sid=t.gppConsent?.applicableSections?.toString()),s.rp_maxbids=t.bidLimit||1,function(e,t,r){const i={user:{ext:{data:{...e.params.visitor}}},site:{ext:{data:{...e.params.inventory}}}};e.params.keywords&&(i.site.keywords=(0,p.cy)(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);let n=(0,p.D9)({},e.ortb2||{},i),o=(0,l.A)(e.ortb2Imp,"ext")||{},s=(0,l.A)(e.ortb2Imp,"ext.data")||{};const a=(0,l.A)(e,"ortb2Imp.ext.gpid"),c=(0,l.A)(n,"regs.ext.dsa"),u={user:[4],site:[1,2,5,6,7]},m={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},b=function(e,t,r){return"data"===t&&Array.isArray(e)?e.filter((e=>e.segment&&(0,l.A)(e,"ext.segtax")&&u[r]&&-1!==u[r].indexOf((0,l.A)(e,"ext.segtax")))).map((e=>{let t=e.segment.filter((e=>e.id)).reduce(((e,t)=>(e.push(t.id),e)),[]);if(t.length>0)return t.toString()})).toString():("object"!=typeof e||Array.isArray(e))&&void 0!==e?Array.isArray(e)?e.filter((e=>{if("object"!=typeof e&&void 0!==e)return e.toString();(0,p.JE)("Rubicon: Filtered value: ",e,"for key",t,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString():void 0},x=function(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=b(e,i,t),s=m[i]&&n?`${m[i]}`:"data"===i?`${m[t]}iab`:`${m[t]}${i}`;r[s]=r[s]?r[s].concat(",",o):o};if(t===d.D4){["site","user"].forEach((e=>{Object.keys(n[e]).forEach((t=>{"site"===e&&"content"===t&&n[e][t].data?x(n[e][t].data,e,"data"):"ext"!==t?x(n[e][t],e,t):n[e][t].data&&Object.keys(n[e].ext.data).forEach((t=>{x(n[e].ext.data[t],e,t,!1)}))}))})),Object.keys(s).forEach((e=>{"adserver"!==e?x(s[e],"site",e):"gam"===s[e].name&&x(s[e].adslot,name,e)})),a&&(r.p_gpid=a),c&&Object.keys(c).length&&(0,p.Up)(c,["dsainfo",e=>r.dsainfo=e,"dsarequired",e=>r.dsarequired=e,"pubrender",e=>r.dsapubrender=e,"datatopub",e=>r.dsadatatopubs=e,"transparency",e=>{Array.isArray(e)&&e.length&&(r.dsatransparency=e.reduce(((e,t)=>{const r=t.domain||"";if(!r)return e;const i=t.dsaparams||t.params;return Array.isArray(i)&&0!==i.length?(e&&(e+="~~"),e+`${r}~${i.join("_")}`):e}),""))}]),r["tg_i.pbadslot"]&&delete r["tg_i.dfp_ad_unit_code"];const e=(0,l.A)(n,"device.sua");e&&!1!==f.chEnabled&&(0,p.Up)(e,["architecture",e=>r.m_ch_arch=e,"bitness",e=>r.m_ch_bitness=e,"browsers",e=>{if(!Array.isArray(e))return;const[t,i]=e.reduce(((e,t)=>(e[0].push(`"${t?.brand}"|v="${t?.version?.[0]}"`),t?.version?.length>1&&e[1].push(`"${t?.brand}"|v="${t?.version?.join?.(".")}"`),e)),[[],[]]);r.m_ch_ua=t?.join?.(","),r.m_ch_full_ver=i?.join?.(",")},"mobile",e=>r.m_ch_mobile=`?${e}`,"model",e=>r.m_ch_model=e,"platform",e=>{r.m_ch_platform=e?.brand,r.m_ch_platform_ver=e?.version?.join?.(".")}])}else Object.keys(o).length&&(0,p.D9)(r.imp[0].ext,o),a&&(r.imp[0].ext.gpid=a),(0,p.D9)(r,n)}(e,d.D4,s),!0===a.$W.getConfig("coppa")&&(s.coppa=1),e.schain&&O(e.schain)&&(s.rp_schain=_.serializeSupplyChain(e.schain)),s},serializeSupplyChain:function(e){if(!O(e))return"";const{ver:t,complete:r,nodes:i}=e;return`${t},${r}!${_.serializeSupplyChainNodes(i)}`},serializeSupplyChainNodes:function(e){const t=["asi","sid","hp","rid","name","domain"];return e.map((e=>t.map((t=>encodeURIComponent(e[t]||""))).join(","))).join("!")},interpretResponse:function(e,t){e=e.body;const{data:r}=t;if(!e||"object"!=typeof e)return[];if(e.seatbid){const t=(0,l.A)(e,"ext.errors.rubicon");Array.isArray(t)&&t.length>0&&(0,p.JE)("Rubicon: Error in video response");return h.fromORTB({request:r,response:e}).bids}let i,n=e.ads,o=0;const{bidRequest:s}=t;if("object"==typeof s&&!Array.isArray(s)&&R(s).includes(d.G_)&&"object"==typeof n&&(n=n[s.adUnitCode]),!Array.isArray(n)||n.length<1)return[];let a=n.reduce(((t,r,n)=>{if(r.impression_id&&i===r.impression_id?o++:i=r.impression_id,"ok"!==r.status)return t;const a=Array.isArray(s)?s[n-o]:s;if(a&&"object"==typeof a){let e={requestId:a.bidId,currency:"USD",creativeId:r.creative_id||`${r.network||""}-${r.advertiser||""}`,cpm:r.cpm||0,dealId:r.deal,ttl:360,netRevenue:!1!==f.netRevenue,rubicon:{advertiserId:r.advertiser,networkId:r.network},meta:{advertiserId:r.advertiser,networkId:r.network,mediaType:d.D4}};r.creative_type&&(e.mediaType=r.creative_type),r.dsa&&Object.keys(r.dsa).length&&(e.meta.dsa=r.dsa),r.adomain&&(e.meta.advertiserDomains=Array.isArray(r.adomain)?r.adomain:[r.adomain]),r.emulated_format&&(e.meta.mediaType=r.emulated_format),r.creative_type===d.G_?(e.width=a.params.video.playerWidth,e.height=a.params.video.playerHeight,e.vastUrl=r.creative_depot_url,e.impression_id=r.impression_id,e.videoCacheKey=r.impression_id):(e.ad=(c=r.script,`<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='${r.impression_id}'>\n<script type='text/javascript'>${c}<\/script>\n</div>\n</body>\n</html>`),[e.width,e.height]=y[r.size_id].split("x").map((e=>Number(e)))),e.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce(((e,t)=>(e[t.key]=t.values[0],e)),{rpfl_elemid:a.adUnitCode}),t.push(e)}else(0,p.vV)(`Rubicon: bidRequest undefined at index position:${n}`,s,e);var c;return t}),[]).sort(((e,t)=>(t.cpm||0)-(e.cpm||0))),c=e.component_auction_config?.map((e=>({config:e,bidId:e.bidId})));return c?{bids:a,paapi:c}:a},getUserSyncs:function(e,t,r,i,n){if(!I&&e.iframeEnabled){let e=(0,b.d)(r,i,n);return e=Object.keys(e).length?`?${(0,p.eP)(e)}`:"",I=!0,{type:"iframe",url:`https://${f.syncHost||"eus"}.rubiconproject.com/usync.html`+e}}}};function v(e,t){let r;return r=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?r.replace(/^http:/i,"https:"):r}function A(e){const t=document.getElementById(e.adUnitCode);!function(e){const t=e.querySelector("div[id^='google_ads']");t&&t.style.setProperty("display","none")}(t),function(e){const t=e.querySelector("script[id^='sas_script']"),r=t&&t.nextSibling;r&&"iframe"===r.localName&&r.style.setProperty("display","none")}(t);const r={...{align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0},...e.renderer.getConfig()};e.renderer.push((()=>{window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:`#${e.adUnitCode}`,align:r.align,position:r.position},closeButton:r.closeButton,label:r.label,collapse:r.collapse})}))}function j(e,t){let r=e.params;if(t===d.G_){let t=[];return r.video&&r.video.playerWidth&&r.video.playerHeight?t=[r.video.playerWidth,r.video.playerHeight]:Array.isArray((0,l.A)(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?t=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(t=e.sizes[0]),t}let i=[];return Array.isArray(r.sizes)?i=r.sizes:void 0!==(0,l.A)(e,"mediaTypes.banner.sizes")?i=k(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=k(e.sizes):(0,p.JE)("Rubicon: no sizes are setup or found"),function(e){const t=[15,2,9];return e.sort(((e,r)=>{const i=t.indexOf(e),n=t.indexOf(r);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-r}))}(i)}function $(e,t,r){return i=>{const n=Number(i.ext?.segtax);r.includes(n)&&(e[`tg_${t}.tax${n}`]=i.segment?.map((e=>e.id)).join(","))}}function k(e){return(0,p.kK)(e).reduce(((e,t)=>{let r=parseInt(y[t],10);return r&&e.push(r),e}),[])}function R(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[];if(function(e){let t=void 0!==(0,l.A)(e,`mediaTypes.${d.G_}`),r=void 0!==(0,l.A)(e,`mediaTypes.${d.D4}`),i=void 0!==(0,l.A)(e,"params.bidonmultiformat"),n="object"!=typeof(0,l.A)(e,"params.video");return!(!t||!i)||(r&&n&&(t=!1),t&&n&&(0,u.J)(e,"params.video",{}),t)}(e)){if(-1===["outstream","instream"].indexOf((0,l.A)(e,`mediaTypes.${d.G_}.context`)))return t&&(0,p.vV)("Rubicon: mediaTypes.video.context must be outstream or instream"),r;if(j(e,d.G_).length<2)return t&&(0,p.vV)("Rubicon: could not determine the playerSize of the video"),r;t&&(0,p.OG)("Rubicon: making video request for adUnit",e.adUnitCode),r.push(d.G_)}if(void 0!==(0,l.A)(e,`mediaTypes.${d.s6}`)&&r.push(d.s6),void 0!==(0,l.A)(e,`mediaTypes.${d.D4}`)){if(0===j(e,d.D4).length)return t&&(0,p.vV)("Rubicon: could not determine the sizes for banner request"),r;t&&(0,p.OG)("Rubicon: making banner request for adUnit",e.adUnitCode),r.push(d.D4)}return r}const C=()=>g={};function O(e){let t=!1;const r=["asi","sid","hp"];return e.nodes?(t=e.nodes.reduce(((e,t)=>e?r.every((e=>t.hasOwnProperty(e))):e),!0),t||(0,p.vV)("Rubicon: required schain params missing"),t):t}function S(e,t){return"rp_schain"===e?`rp_schain=${t}`:`${e}=${encodeURIComponent(t)}`}var I=!1;(0,s.a$)(_),(0,i.E)("rubiconBidAdapter")}},e=>{e.O(0,[802,8498,7618,6550,7247,7769,2139,1085],(()=>{return t=9293,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5085],{5177:(e,r,i)=>{var d=i(7873),o=i(1445),c=i(1069);const{CLIENT:t,SERVER:n}=o.S1,l={...o.S1,clientTestBidders:new Set};function u(e){return e&&e.enabled&&e.testing}l.bidSource={},l.globalRand=Math.random(),l.getSourceBidderMap=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var i={[n]:{},[t]:{}};return e.forEach((e=>{(e.bids||[]).forEach((e=>{r.indexOf(e.bidder)>-1&&!l.bidSource[e.bidder]&&(l.bidSource[e.bidder]=n),e.calcSource=e.calcSource||l.getSource(e.bidSource),e.finalSource=e.calcSource||l.bidSource[e.bidder]||t,i[e.finalSource][e.bidder]=!0}))})),Object.keys(l.bidSource).forEach((e=>{i[l.bidSource[e]][e]=!0})),{[n]:Object.keys(i[n]),[t]:Object.keys(i[t])}},l.calculateBidSources=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r=e.bidderControl||{};(e.bidders||[]).forEach((e=>{l.bidSource[e]=l.getSource(r[e]&&r[e].bidSource)||n}))},l.getSource=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[n,t];var i={},d=0;if(r.forEach((r=>{d+=e[r]||0,i[r]=d})),d)for(var o=l.globalRand*d,c=0;c<r.length;c++){let e=r[c];if(o<i[e])return e}};o.Mf.before((function(e,r,i){const d=(0,o.pX)(i);let a=!1;i.forEach((e=>{if(u(e)){l.calculateBidSources(e);l.getSourceBidderMap(r,[...d])[t].forEach((e=>l.clientTestBidders.add(e)))}(function(e){return Boolean(u(e)&&e.testServerOnly)})(e)&&((e,r)=>Boolean((e||[]).find((e=>(e.bids||[]).find((e=>(e.bidSource||r.bidderControl&&r.bidderControl[e.bidder])&&e.finalSource===n))))))(r,e)&&((0,c.JE)("testServerOnly: True.  All client requests will be suppressed."),a=!0)})),e.bail((0,c.ZA)(r).reduce(((e,r)=>(d.has(r)&&e[n].push(r),a||d.has(r)&&!l.clientTestBidders.has(r)||e[t].push(r),e)),{[t]:[],[n]:[]}))})),o.tS.before((function(e,r,i){r=null==i?r.filter((e=>!l.clientTestBidders.size||e.finalSource!==n)):r.filter((e=>!u(i)||e.finalSource!==t)),e.call(this,r,i)}));(0,d.E)("s2sTesting")}},e=>{e.O(0,[802,7769,2139,1085],(()=>{return r=5177,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5496],{5862:(e,o,t)=>{var n=t(7873),r=t(1069),d=t(9214),i=t(2938),a=t(6916),u=t(5569),c=t(2339);const s=(0,i.vM)({moduleType:u.fW,moduleName:"sharedId"}),l="cookie",m="html5",p="_pubcid_optout",f="PublisherCommonId";function g(e,o){if(o===l)return s.getCookie(e);if(o===m&&s.hasLocalStorage()){const o=s.getDataFromLocalStorage(`${e}_exp`);if(!o)return s.getDataFromLocalStorage(e);if(new Date(o).getTime()-Date.now()>0)return s.getDataFromLocalStorage(e)}}function b(e,o){return function(t,n){o?v(o,e,(()=>{t(n()||e)}))():t(e)}}function v(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2?arguments[2]:void 0;if(!e)return;const n=(0,r.Dl)(e);n.search.id=encodeURIComponent("pubcid:"+o);const d=(0,r.c$)(n);return function(){(0,r.z$)(d,t)}}function h(){return!!(s.cookiesAreEnabled()&&g(p,l)||s.hasLocalStorage()&&g(p,m))}const I={name:"sharedId",aliasName:"pubCommonId",gvlid:a.B1,decode(e,o){if(h())return void(0,r.fH)("PubCommonId decode: Has opted-out");(0,r.fH)(" Decoded value PubCommonId "+e);return{pubcid:e}},getId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(h())return void(0,r.fH)("PubCommonId: Has opted-out");if(o?.coppa)return void(0,r.fH)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");const{params:{create:n=!0,pixelUrl:d}={}}=e;let i=t;if(!i){try{"object"==typeof window[f]&&(i=window[f].getId())}catch(e){}i||(i=n&&(0,r.N9)()?(0,r.lk)():void 0)}return{id:i,callback:b(i,d)}},extendId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(h())return(0,r.fH)("PubCommonId: Has opted-out"),{id:void 0};if(o?.coppa)return void(0,r.fH)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");const{params:{extend:n=!1,pixelUrl:d}={}}=e;if(n){if(d){return{callback:v(d,t)}}return{id:t}}},domainOverride:(0,c.w)(s,"sharedId"),eids:{pubcid(e,o){const t={source:"pubcid.org",uids:e.map((e=>({id:e,atype:1})))};return null!=o?.params?.inserter&&(t.inserter=o.params.inserter),t}}};(0,d.bz)("userId",I),(0,n.E)("sharedIdSystem")}},e=>{e.O(0,[2764,802,7769,2139,1085],(()=>{return o=5862,e(e.s=o);var o}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[89],{5745:(e,t,r)=>{var a=r(7873),n=r(7377),i=r(3272),o=r(1371),d=r(1069),s=r(433);const p={getProtocol:function(){return window.location.protocol}},l={code:"sharethrough",supportedMediaTypes:[o.G_,o.D4],gvlid:80,isBidRequestValid:e=>!!e.params.pkey,buildRequests:(e,t)=>{const r=t.timeout,a=t.ortb2||{},n=p.getProtocol().indexOf("http")<0||p.getProtocol().indexOf("https")>-1,o={id:(0,d.lk)(),at:1,cur:["USD"],tmax:r,site:{domain:(0,s.A)(t,"refererInfo.domain",window.location.hostname),page:(0,s.A)(t,"refererInfo.page",window.location.href),ref:(0,s.A)(t,"refererInfo.ref"),...a.site},device:{ua:navigator.userAgent,language:navigator.language,js:1,dnt:"1"===navigator.doNotTrack?1:0,h:window.screen.height,w:window.screen.width,ext:{}},regs:{coppa:!0===i.$W.getConfig("coppa")?1:0,ext:{}},source:{tid:t.ortb2?.source?.tid,ext:{version:"9.50.0",str:"4.3.0",schain:e[0].schain}},bcat:(0,s.A)(t.ortb2,"bcat")||e[0].params.bcat||[],badv:(0,s.A)(t.ortb2,"badv")||e[0].params.badv||[],test:0};if(t.ortb2?.device?.ext?.cdep&&(o.device.ext.cdep=t.ortb2.device.ext.cdep),t?.ortb2?.device&&(0,d.D9)(o.device,t.ortb2.device),o.user=u(a.user,{}),o.user.ext||(o.user.ext={}),o.user.ext.eids=e[0].userIdAsEids||[],t.gdprConsent){const e=!0===t.gdprConsent.gdprApplies;o.regs.ext.gdpr=e?1:0,e&&(o.user.ext.consent=t.gdprConsent.consentString)}t.uspConsent&&(o.regs.ext.us_privacy=t.uspConsent),t?.gppConsent?.gppString?(o.regs.gpp=t.gppConsent.gppString,o.regs.gpp_sid=t.gppConsent.applicableSections):t?.ortb2?.regs?.gpp&&(o.regs.ext.gpp=t.ortb2.regs.gpp,o.regs.ext.gpp_sid=t.ortb2.regs.gpp_sid),t?.ortb2?.regs?.ext?.dsa&&(o.regs.ext.dsa=t.ortb2.regs.ext.dsa);return e.map((e=>{const r={ext:{}},a=(0,s.A)(e,"ortb2Imp.ext.tid");a&&(r.ext.tid=a);const i=(0,s.A)(e,"ortb2Imp.ext.gpid")||(0,s.A)(e,"ortb2Imp.ext.data.pbadslot");i&&(r.ext.gpid=i);const o=(0,s.A)(e,"mediaTypes.video");if(t.paapi?.enabled&&e.mediaTypes.banner&&(0,d.D9)(r,{ext:{ae:1}}),o){let[e,t]=[640,360];o.playerSize&&o.playerSize[0]&&o.playerSize[0][0]&&o.playerSize[0][1]&&([e,t]=o.playerSize[0]);const a=(e,t,r)=>{if(["api","battr","mimes","playbackmethod","protocols"].includes(e)){if((!Array.isArray(t[e])||0===t[e].length)&&t[e])return void(0,d.JE)(`Sharethrough: Invalid video request property: "${e}" must be an array with at least 1 entry.  Value supplied: "${t[e]}".  This will not be added to the bid request.`)}t[e]&&(r.video[e]=t[e])};r.video={pos:u(o.pos,0),topframe:(0,d.al)()?0:1,w:e,h:t};["api","battr","companionad","companiontype","delivery","linearity","maxduration","mimes","minduration","placement","playbackmethod","plcmt","protocols","skip","skipafter","skipmin","startdelay"].forEach((e=>{a(e,o,r)}))}else{r.banner={pos:(0,s.A)(e,"mediaTypes.banner.pos",0),topframe:(0,d.al)()?0:1,format:e.sizes.map((e=>({w:+e[0],h:+e[1]})))};const t=(0,s.A)(e,"mediaTypes.banner.battr",null)||(0,s.A)(e,"ortb2Imp.banner.battr");t&&(r.banner.battr=t)}return{id:e.bidId,tagid:String(e.params.pkey),secure:n?1:0,bidfloor:c(e),...r}})).filter((e=>!!e)).map((e=>({method:"POST",url:"https://btlr.sharethrough.com/universal/v1?supply_id=WYu2BXv1",data:{...o,imp:[e]}})))},interpretResponse:(e,t)=>{let{body:r}=e;if(!r||!r.seatbid||0===r.seatbid.length||!r.seatbid[0].bid||0===r.seatbid[0].bid.length)return[];const a=r.ext?.auctionConfigs,n=r.seatbid[0].bid.map((e=>{const a={requestId:e.impid,width:+e.w,height:+e.h,cpm:+e.price,creativeId:e.crid,dealId:e.dealid||null,mediaType:t.data.imp[0].video?o.G_:o.D4,currency:r.cur||"USD",netRevenue:!0,ttl:360,ad:e.adm,nurl:e.nurl,meta:{advertiserDomains:e.adomain||[],networkId:e.ext?.networkId||null,networkName:e.ext?.networkName||null,agencyId:e.ext?.agencyId||null,agencyName:e.ext?.agencyName||null,advertiserId:e.ext?.advertiserId||null,advertiserName:e.ext?.advertiserName||null,brandId:e.ext?.brandId||null,brandName:e.ext?.brandName||null,demandSource:e.ext?.demandSource||null,dchain:e.ext?.dchain||null,primaryCatId:e.ext?.primaryCatId||null,secondaryCatIds:e.ext?.secondaryCatIds||null,mediaType:e.ext?.mediaType||null}};return a.mediaType===o.G_&&(a.ttl=3600,a.vastXml=e.adm),a}));return a?{bids:n,paapi:r.ext?.auctionConfigs||{}}:n},getUserSyncs:(e,t)=>e.pixelEnabled&&void 0!==(0,s.A)(t,"0.body.cookieSyncUrls")?t[0].body.cookieSyncUrls.map((e=>({type:"image",url:e}))):[],onTimeout:e=>{},onBidWon:e=>{},onSetTargeting:e=>{}};function c(e){let t=null;if("function"==typeof e.getFloor){const r=e.getFloor({currency:"USD",mediaType:e.mediaTypes&&e.mediaTypes.video?"video":"banner",size:e.sizes.map((e=>({w:e[0],h:e[1]})))});(0,d.Qd)(r)&&"USD"===r.currency&&!isNaN(parseFloat(r.floor))&&(t=parseFloat(r.floor))}return null!==t?t:e.params.floor}function u(e,t){return null==e?t:e}(0,n.a$)(l),(0,a.E)("sharethroughBidAdapter")}},e=>{e.O(0,[802,7769,2139,1085],(()=>{return t=5745,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[8282],{6504:(e,t,r)=>{var n=r(7873),i=r(433),o=r(1069),a=r(1371),s=r(7377),d=r(3272),p=r(2938),l=r(6568);const u="triplelift";let c=null,m=null;const f=(0,p.vM)({bidderCode:u}),g={gvlid:28,code:u,supportedMediaTypes:[a.D4,a.G_],isBidRequestValid:function(e){return void 0!==e.params.inventoryCode},buildRequests:function(e,t){let r="https://tlx.3lift.com/header/auction?",n=function(e,t){let r={},{schain:n}=e[0];const a=function(e){const t={},r={},n={},i=e.ortb2||{},a=function(){const e=f.getDataFromLocalStorage("opecloud_ctx");if(!e)return null;try{return JSON.parse(e)}catch(e){return(0,o.vV)("Triplelift: error parsing JSON: ",e),null}}(),s=Object.assign({},i.site),d=Object.assign({},i.user);if(a){d.data=d.data||[];try{d.data.push({name:"www.1plusx.com",ext:a})}catch(e){(0,o.vV)("Triplelift: error adding 1plusX segments: ",e)}}I(r,s),I(n,d),(0,o.Im)(r)||(t.context=r);(0,o.Im)(n)||(t.user=n);return t}(t);r.imp=e.map((function(e,t){let r={id:t,tagid:e.params.inventoryCode,floor:h(e)};return b(e)&&(r.video=function(e){let t={...e.params.video,...e.mediaTypes.video};try{t.w||(t.w=t.playerSize[0][0]),t.h||(t.h=t.playerSize[0][1])}catch(e){(0,o.JE)("Video size not defined",e)}t.playbackmethod&&Number.isInteger(t.playbackmethod)&&(t.playbackmethod=Array.from(String(t.playbackmethod),Number));return delete t.playerSize,t}(e)),e.mediaTypes.banner&&!v(e)&&(r.banner={format:x(e.sizes)}),(0,o.Im)(e.ortb2Imp)||(r.fpd=function(e){const t={},r={};I(r,e.ext),(0,o.Im)(r)||(t.context=r);return t}(e.ortb2Imp),(0,o.Im)(e.ortb2Imp.ext)||(r.ext={...e.ortb2Imp.ext})),r}));let s=[];e[0].userIdAsEids&&(s=i.A(e[0],"userIdAsEids"),r.user={ext:{eids:s}});let d=function(e,t){let r={};(0,o.Im)(e)||(r.schain={...e});(0,o.Im)(t)||(r.fpd={...t});return r}(n,a);(0,o.Im)(d)||(r.ext=d);t?.ortb2?.regs?.gpp&&(r.regs=Object.assign({},t.ortb2.regs));t?.ortb2&&(r.ext.ortb2=Object.assign({},t.ortb2));return r}(e,t);if(r=(0,l.v)(r,"lib","prebid"),r=(0,l.v)(r,"v","9.50.0"),t&&t.refererInfo){let e=t.refererInfo.page;r=(0,l.v)(r,"referrer",e)}return t&&t.timeout&&(r=(0,l.v)(r,"tmax",t.timeout)),t&&t.gdprConsent&&(c=void 0===t.gdprConsent.gdprApplies||t.gdprConsent.gdprApplies,r=(0,l.v)(r,"gdpr",c.toString()),void 0!==t.gdprConsent.consentString&&(m=t.gdprConsent.consentString,r=(0,l.v)(r,"cmp_cs",m))),t&&t.uspConsent&&(r=(0,l.v)(r,"us_privacy",t.uspConsent)),t?.paapi?.enabled&&(r=(0,l.v)(r,"fledge",t.paapi.enabled)),!0===d.$W.getConfig("coppa")&&(r=(0,l.v)(r,"coppa",!0)),r.lastIndexOf("&")===r.length-1&&(r=r.substring(0,r.length-1)),(0,o.OG)("tlCall request built: "+r),{method:"POST",url:r,data:n,bidderRequest:t}},interpretResponse:function(e,t){let{bidderRequest:r}=t,n=e.body.bids||[];const i=e.body.paapi||[];if(n=n.map((e=>function(e,t){let r={},n=t.width||1,i=t.height||1,o=t.deal_id||"",a=t.crid||"",s=e.bids[t.imp_id];0!=t.cpm&&t.ad&&(r={requestId:s.bidId,cpm:t.cpm,width:n,height:i,netRevenue:!0,ad:t.ad,creativeId:a,dealId:o,currency:"USD",ttl:300,tl_source:t.tl_source,meta:{}},b(s)&&"video"===t.media_type&&(r.vastXml=t.ad,r.mediaType="video",r.ttl=3600),t.advertiser_name&&(r.meta.advertiserName=t.advertiser_name),t.adomain&&t.adomain.length&&(r.meta.advertiserDomains=t.adomain),t.tl_source&&"hdx"==t.tl_source&&(b(s)&&"video"===t.media_type?r.meta.mediaType="video":r.meta.mediaType="banner"),t.tl_source&&"tlx"==t.tl_source&&(r.meta.mediaType="native"),a&&(r.meta.networkId=a.slice(0,a.indexOf("_"))));return r}(r,e))),i.length>0){const e=i.map((e=>({bidId:r.bids[e.imp_id].bidId,config:e.auctionConfig})));return(0,o.OG)("Response with FLEDGE:",{bids:n,fledgeAuctionConfigs:e}),{bids:n,paapi:e}}return n},getUserSyncs:function(e,t,r,n,i){let o=function(e){if(!e)return;if(e.iframeEnabled)return"iframe";if(e.pixelEnabled)return"image"}(e);if(!o)return;let a="https://eb2.3lift.com/sync?";return"image"===o&&(a=(0,l.v)(a,"px",1),a=(0,l.v)(a,"src","prebid")),(null!==m||c)&&(a=(0,l.v)(a,"gdpr",c),a=(0,l.v)(a,"cmp_cs",m)),n&&(a=(0,l.v)(a,"us_privacy",n)),i&&(i.gppString&&(a=(0,l.v)(a,"gpp",i.gppString)),i.applicableSections&&0!==i.applicableSections.length&&(a=(0,l.v)(a,"gpp_sid",i.applicableSections.filter((e=>Number.isInteger(e))).join(",")))),[{type:o,url:a}]}};function b(e){return y(e)&&(v(e)||function(e){return y(e)&&"outstream"===e.mediaTypes.video.context.toLowerCase()}(e))}function v(e){return y(e)&&"instream"===e.mediaTypes.video.context.toLowerCase()}function y(e){return e.mediaTypes.video&&e.mediaTypes.video.context}function h(e){let t=null;if("function"==typeof e.getFloor)try{const r=e.getFloor({currency:"USD",mediaType:b(e)?"video":"banner",size:"*"});o.Qd(r)&&"USD"===r.currency&&!isNaN(parseFloat(r.floor))&&(t=parseFloat(r.floor))}catch(e){(0,o.vV)("Triplelift: getFloor threw an error: ",e)}return null!==t?t:e.params.floor}function I(e,t){(0,o.Im)(t)||Object.keys(t).forEach((r=>{null!=t[r]&&(e[r]=t[r])}))}function x(e){return e.filter(_).map((function(e){return{w:e[0],h:e[1]}}))}function _(e){return 2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}(0,s.a$)(g),(0,n.E)("tripleliftBidAdapter")}},e=>{e.O(0,[4577,802,7769,2139,1085],(()=>{return t=6504,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9582],{7364:(e,r,n)=>{var t=n(7873),i=n(433),d=n(1069),o=n(5789),s=n(7377),a=n(1371);const u=(e,r,n)=>{const{bids:t,bidderRequestId:d,bidderCode:o,...s}=n,a=n.bids.length-r.length;let u={};r.forEach((r=>{const n=r.params.siteId;(e=>{Object.keys(e.mediaTypes).forEach((r=>{let n;n="function"==typeof e.getFloor?e.getFloor({currency:"USD",mediaType:r,size:"*"})?.floor||0:e.params.floor||0,e.mediaTypes[r].floor=n}))})(r),(e=>{let r=(0,i.A)(e,"mediaTypes.banner");if(r){let e={},n=[];r.sizes.forEach((r=>{e[r.toString()]||(e[r.toString()]=!0,n.push(r))})),r.sizes=n}})(r),((e,r)=>{!r&&e.ortb2Imp&&e.ortb2Imp.ext&&delete e.ortb2Imp.ext.ae})(r,e.protectedAudienceEnabled),u[n]=u[n]||[],u[n].push(r)}));let p=[];return Object.keys(u).forEach((r=>{let n={bidderRequest:Object.assign({},{bids:u[r],invalidBidsCount:a,prebidVersion:"9.50.0",...s})};p.push(Object.assign({},{data:n,...e}))})),p},p=e=>{if(e.ad)return e;(0,d.vV)(new Error("UnrulyBidAdapter: Missing ad config."))},l=e=>{if(e.vastUrl||e.vastXml)return e;(0,d.vV)(new Error("UnrulyBidAdapter: Missing vastUrl or vastXml config."))},c=e=>{const r=!!(0,i.A)(e,"ext.renderer.config"),n=!!(0,i.A)(e,"ext.renderer.config.siteId");if(!r)return void(0,d.vV)(new Error("UnrulyBidAdapter: Missing renderer config."));if(!n)return void(0,d.vV)(new Error("UnrulyBidAdapter: Missing renderer siteId."));const t=(0,i.A)(e,"ext.renderer");!function(e,r){if(!e.config)throw new Error("UnrulyBidAdapter: Missing renderer config.");if(!e.config.siteId)throw new Error("UnrulyBidAdapter: Missing renderer siteId.");parent.window.unruly=parent.window.unruly||{},parent.window.unruly.native=parent.window.unruly.native||{},parent.window.unruly.native.siteId=parent.window.unruly.native.siteId||e.config.siteId,parent.window.unruly.native.adSlotId=r,parent.window.unruly.native.supplyMode="prebid"}(t,e.requestId),parent.window.unruly.native.prebid=parent.window.unruly.native.prebid||{},parent.window.unruly.native.prebid.uq=parent.window.unruly.native.prebid.uq||[];const s=o.A4.install(Object.assign({},t)),a=Object.assign({},e,{renderer:s,adUnitCode:(0,i.A)(e,"ext.adUnitCode")});return s.setRender((()=>{var e;e=a,parent.window.unruly.native.prebid.uq.push(["render",e])})),e.renderer=e.renderer||s,e},y=e=>{if(!e.context)return!1;return-1!==["outstream","instream"].indexOf(e.context)},f=e=>e.sizes,b={code:"unruly",supportedMediaTypes:[a.G_,a.D4],gvlid:36,isBidRequestValid:function(e){let r=(0,i.A)(e,"params.siteId")&&(e=>{const r=(0,i.A)(e,"mediaTypes.video"),n=(0,i.A)(e,"mediaTypes.banner");let t=!(!r&&!n);return t&&r&&(t=y(r)),t&&n&&(t=f(n)),t})(e);return!!r},buildRequests:function(e,r){let n="https://targeting.unrulymedia.com/unruly_prebid";return e[0]&&(n=(0,i.A)(e[0],"params.endpoint")||n),u({url:n,method:"POST",options:{contentType:"application/json"},protectedAudienceEnabled:r.paapi?.enabled},e,r)},interpretResponse:function(e){if(!e||!e.body||!e.body.auctionConfigs&&!e.body.bids)return[];const r=e.body;let n=[],t=null;if(r.bids.length&&(n=(e=>{let r=[];return e.forEach((e=>{let n,t=(0,i.A)(e,"meta.mediaType");if(t&&"banner"===t.toLowerCase())e.mediaType=a.D4,n=p(e);else if(t&&"video"===t.toLowerCase()){let r=(0,i.A)(e,"meta.videoContext");e.mediaType=a.G_,"instream"===r?n=l(e):"outstream"===r&&(n=c(e))}n&&r.push(n)})),r})(r.bids)),r.auctionConfigs){let e=r.auctionConfigs,n=Object.keys(e);n.length&&n.forEach((r=>{t=[{bidId:r,config:e[r]}]}))}return t?{bids:n,paapi:t}:n}};(0,s.a$)(b),(0,t.E)("unrulyBidAdapter")}},e=>{e.O(0,[802,7769,2139,1085],(()=>{return r=7364,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3469],{4836:(e,t,n)=>{var r=n(7873),o=n(3272),s=n(5023),i=n(1445),a=n(8969),c=n(9214),u=n(1069);const l=new Map;function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;const n={};function r(e){const t=JSON.stringify([e.source?.toLowerCase(),...Object.keys(e).filter((e=>!["uids","source"].includes(e))).sort().map((t=>e[t]))]);n.hasOwnProperty(t)?n[t].uids.push(...e.uids):n[t]=e}return Object.entries(e).forEach((e=>{let[n,o]=e;o=Array.isArray(o)?o:[o];const s=t.get(n);let i;if("pubProvidedId"===n)i=(0,u.Go)(o);else if("function"==typeof s)try{i=s(o),Array.isArray(i)||(i=[i]),i.forEach((e=>e.uids=e.uids.filter((e=>{let{id:t}=e;return(0,u.O8)(t)})))),i=i.filter((e=>{let{uids:t}=e;return t?.length>0}))}catch(e){(0,u.vV)(`Could not generate EID for "${n}"`,e)}else i=o.map((e=>function(e,t,n){if(n&&e){let t={};t.source=(0,u.fp)(n.getSource)?n.getSource(e):n.source;const r=(0,u.fp)(n.getValue)?n.getValue(e):e;if((0,u.O8)(r)){const o={id:r,atype:n.atype};if((0,u.fp)(n.getUidExt)){const t=n.getUidExt(e);t&&(o.ext=t)}if(t.uids=[o],n.inserter||(0,u.fp)(n.getInserter)){const r=(0,u.fp)(n.getInserter)?n.getInserter(e):n.inserter;null!=r&&(t.inserter=r)}if(n.matcher||(0,u.fp)(n.getMatcher)){const r=(0,u.fp)(n.getMatcher)?n.getMatcher(e):n.matcher;null!=r&&(t.matcher=r)}if(null!=n.mm&&(t.mm=n.mm),(0,u.fp)(n.getEidExt)){const r=n.getEidExt(e);r&&(t.ext=r)}return t}}return null}(e,0,s)));Array.isArray(i)&&i.filter((e=>null!=e)).forEach(r)})),Object.values(n)}function f(e){const t=new Map,n={};return Object.entries(e).forEach((e=>{let[r,o]=e;const s=o();if(s){n[r]=s.idObj[r];let e=s.submodule.eids?.[r];"function"==typeof e&&(i=e,e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i(...t,s.config)}),t.set(r,e)}var i})),d(n,t)}var g=n(2938),m=n(3172),b=n(1692),h=n(5555),p=n(6894),y=n(5973),I=n(6916),w=n(5569),v=n(5139),S=n(6811),D=n(3441),E=n(8230),O=n(8934);const k="User ID",$=g.X0,j=g.qk,A="_pbjs_id_optout",U=(0,g.CK)("userId"),T={isAllowed:v.io};let C,x,N,L,_,P,H=[],M=[],J={},q=[];const V=(()=>{let e;return()=>(null==e&&(e=(0,p.K7)()),e)})();function F(e){return V().fork().renameWith((t=>[`userId.mod.${t}`,`userId.mods.${e}.${t}`]))}function W(e,t){t=t||e.storageMgr;const n="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,r=e.config.storage.name;return function(e,o,s){t.setCookie(r+(e||""),o,s,"Lax",n)}}function G(e,t){const n=e.config.storage;try{const r=new Date(Date.now()+864e5*n.expires).toUTCString(),o=(0,u.Qd)(t)?JSON.stringify(t):t;e.enabledStorageTypes.forEach((t=>{switch(t){case $:!function(e,t,n){const r=e.config.storage,o=W(e);o(null,t,n),o("_cst",me(),n),"number"==typeof r.refreshInSeconds&&o("_last",(new Date).toUTCString(),n)}(e,o,r);break;case j:!function(e,t,n){const r=e.config.storage,o=e.storageMgr;o.setDataInLocalStorage(`${r.name}_exp`,n),o.setDataInLocalStorage(`${r.name}_cst`,me()),o.setDataInLocalStorage(r.name,encodeURIComponent(t)),"number"==typeof r.refreshInSeconds&&o.setDataInLocalStorage(`${r.name}_last`,(new Date).toUTCString())}(e,o,r)}}))}catch(e){(0,u.vV)(e)}}function R(e){ve(e),e.enabledStorageTypes.forEach((t=>{switch(t){case $:!function(e){const t=W(e,U),n=new Date(Date.now()-864e5).toUTCString();["","_last","_cst"].forEach((e=>{try{t(e,"",n)}catch(e){(0,u.vV)(e)}}))}(e);break;case j:!function(e){["","_last","_exp","_cst"].forEach((t=>{try{U.removeDataFromLocalStorage(e.config.storage.name+t)}catch(e){(0,u.vV)(e)}}))}(e)}}))}function B(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=e.config.storage,r=t?`${n.name}_${t}`:n.name;let o;try{e.enabledStorageTypes.find((t=>{switch(t){case $:o=function(e,t){return e.storageMgr.getCookie(t)}(e,r);break;case j:o=function(e,t){const n=e.storageMgr,r=e.config.storage,o=n.getDataFromLocalStorage(`${r.name}_exp`);return""===o?n.getDataFromLocalStorage(t):o&&new Date(o).getTime()-Date.now()>0?decodeURIComponent(n.getDataFromLocalStorage(t)):void 0}(e,r)}return!!o})),"string"==typeof o&&"{"===o.trim().charAt(0)&&(o=JSON.parse(o))}catch(e){(0,u.vV)(e)}return o}function Q(e,t,n){t=V().fork().startTiming("userId.callbacks.total").stopBefore(t);const r=(0,u.U6)((()=>{clearTimeout(x),t()}),e.length);e.forEach((function(e){const t=F(e.submodule.name).startTiming("callback").stopBefore(r);try{e.callback((function(r){r?(e.config.storage&&G(e,r),e.idObj=e.submodule.decode(r,e.config),n.refresh(),he(n)):(0,u.fH)(`${k}: ${e.submodule.name} - request id responded with an empty value`),t()}),B.bind(null,e))}catch(n){(0,u.vV)(`Error in userID module '${e.submodule.name}':`,n),t()}e.callback=void 0}))}function K(e){return Object.fromEntries(Object.entries(e).map((e=>{let[t,n]=e;return[t,n()?.idObj?.[t]]})).filter((e=>{let[t,n]=e;return null!=n})))}function Y(e,t,n){const r={};return e.forEach((e=>{const o=n(e),s=function(e){if(e.primaryIds)return e.primaryIds;const t=Object.keys(e.eids??{});if(t.length>1)throw new Error(`ID submodule ${e.name} can provide multiple IDs, but does not specify 'primaryIds'`);return t}(o);t(e).forEach((t=>{const n=r[t]=r[t]??[],i=J[t]?.indexOf(o.name)??(s.includes(t)?0:-1),a=n.findIndex((e=>{let[t]=e;return t<i}));n.splice(-1===a?n.length:a,0,[i,e])}))})),Object.fromEntries(Object.entries(r).map((e=>{let[t,n]=e;return[t,n.map((e=>{let[t,n]=e;return n}))]})))}function z(){const e={submodules:[],global:{},bidder:{},combined:{},refresh(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const n=new Set(t.map((e=>e.submodule)));e.submodules=e.submodules.filter((e=>!n.has(e.submodule))).concat(t),function(){const t=Y(e.submodules,(e=>Object.keys(e.idObj??{})),(e=>e.submodule)),n={},r={};function o(e,t,n){return function(){for(const{allowed:r,bidders:o,module:s}of n){if(!T.isAllowed(S.yl,(0,D.s)(w.fW,s?.config?.name,{init:!1})))continue;const i=s.idObj?.[e];if(null!=i){if(r)return s;if(t){const t=e=>e.map((e=>e.module.submodule.name)).join(", ");return(0,u.JE)(`userID modules ${t(n)} provide the same ID ('${e}'); ${s.submodule.name} is the preferred source, but it's configured only for some bidders, unlike ${t(n.filter((e=>null==e.bidders)))}. Other bidders will not see the "${e}" ID.`),null}if(null==o)return null}}return null}}Object.entries(t).forEach((e=>{let[t,s]=e,i=!0;const a=new Set;s=s.map((e=>{let t=null;return Array.isArray(e.config.bidders)&&e.config.bidders.length>0?(t=e.config.bidders,t.forEach((e=>a.add(e)))):i=!1,{module:e,bidders:t}})),i||(n[t]=o(t,!0,s.map((e=>{let{bidders:t,module:n}=e;return{allowed:null==t,bidders:t,module:n}})))),a.forEach((e=>{r[e]=r[e]??{},r[e][t]=o(t,!1,s.map((t=>{let{bidders:n,module:r}=t;return{allowed:n?.includes(e),bidders:n,module:r}})))}))}));const s=Object.values(r).concat([n]).reduce(((e,t)=>Object.assign(e,t)),{});Object.assign(e,{global:n,bidder:r,combined:s})}()}};return e}function X(e){let{adUnits:t,ortb2Fragments:n}=e;if(n=n??{global:{},bidder:{}},function(e){const{global:t,bidder:n}=e,{global:r,bidder:o}=C,s=f(r);s.length>0&&(0,m.J)(t,"user.ext.eids",(t.user?.ext?.eids??[]).concat(s)),Object.entries(o).forEach((e=>{let[t,r]=e;const o=f(r);o.length>0&&(0,m.J)(n,`${t}.user.ext.eids`,(n[t]?.user?.ext?.eids??[]).concat(o))}))}(n),[t].some((e=>!Array.isArray(e)||!e.length)))return;const r=K(C.global),o=n.global.user?.ext?.eids||[];t.forEach((e=>{e.bids&&(0,u.cy)(e.bids)&&e.bids.forEach((e=>{const t=Object.assign({},r,K(C.bidder[e.bidder]??{})),s=o.concat(n.bidder?.[e.bidder]?.user?.ext?.eids||[]);Object.keys(t).length>0&&(e.userId=t),s.length>0&&(e.userIdAsEids=s)}))}))}const Z={};let ee;function te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie()||[];const t=_&&e.find((e=>e.source===_));if(t&&"string"==typeof t?.uids?.[0]?.id){const e=t.uids[0].id.replace(/[\W_]/g,"");if(e.length>=32&&e.length<=150)return e;(0,u.JE)(`User ID - Googletag Publisher Provided ID for ${_} is not between 32 and 150 characters - ${e}`)}}const ne=(0,p.Ak)("userId",(function(e,t){let{mkDelay:n=h.cb,getIds:r=ge}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};h.U9.race([r().catch((()=>null)),n(L)]).then((()=>{X(t),V().join((0,p.BO)(t.metrics),{propagate:!1,includeGroups:!0}),e.call(this,t)}))})),re=(0,p.Ak)("userId",(function(e,t){X(t),e.call(this,t)}));function oe(){return!!O.gH.getHooks({hook:ne}).length}function se(){return K(C.combined)}function ie(){return f(C.combined)}function ae(e){return ie().filter((t=>t.source===e))[0]}function ce(e,t,n){return de().then((()=>{let r={};if((0,u.fp)(n)){(0,u.fH)(`${k} - Getting encrypted signal from custom function : ${n.name} & source : ${e} `);const t=n(e);r[e]=t?ue(t):null}else{const n=ae(e);(0,u.fH)(`${k} - Getting encrypted signal for eids :${JSON.stringify(n)}`),(0,u.Im)(n)||(r[n.source]=!0===t?ue(n):n.uids[0].id)}return(0,u.fH)(`${k} - Fetching encrypted eids: ${r[e]}`),r[e]}))}function ue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n="";if(1===t)n="object"==typeof e?window.btoa(JSON.stringify(e)):window.btoa(e);return`${t}||${n}`}function le(){if(!(0,u.II)())return;window.googletag.secureSignalProviders=window.googletag.secureSignalProviders||[];const e=o.$W.getConfig("userSync.encryptedSignalSources");if(e){const t=e.registerDelay||0;setTimeout((()=>{e.sources&&e.sources.forEach((e=>{let{source:t,encrypt:n,customFunc:r}=e;t.forEach((e=>{window.googletag.secureSignalProviders.push({id:e,collectorFunction:()=>ce(e,n,r)})}))}))}),t)}else(0,u.JE)(`${k} - ESP : encryptedSignalSources config not defined under userSync Object`)}function de(e){return ee(e).then((()=>se()),(e=>e===Z?Promise.resolve().then(ge):((0,u.vV)("Error initializing userId",e),h.U9.reject(e))))}function fe(){let{submoduleNames:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return de({refresh:!0,submoduleNames:e}).then((e=>(t&&(0,u.fp)(t)&&t(),e)))}function ge(){return de()}function me(){let e=Number(I.SL.hash);const t=[];for(;e>0;)t.push(String.fromCharCode(255&e)),e>>>=8;return btoa(t.join())}function be(e,t){const n=I.SL.getConsentData();if(e.config.storage){let r,o=B(e),s=!1;if("number"==typeof e.config.storage.refreshInSeconds){const t=new Date(B(e,"last"));s=t&&Date.now()-t.getTime()>1e3*e.config.storage.refreshInSeconds}if(!o||s||t||function(e){const t=B(e,"cst");return!t||t!==me()}(e)){const t=Object.assign({enabledStorageTypes:e.enabledStorageTypes},e.config);r=e.submodule.getId(t,n,o)}else"function"==typeof e.submodule.extendId&&(r=e.submodule.extendId(e.config,n,o));(0,u.Qd)(r)&&(r.id&&(G(e,r.id),o=r.id),"function"==typeof r.callback&&(e.callback=r.callback)),o&&(e.idObj=e.submodule.decode(o,e.config))}else if(e.config.value)e.idObj=e.config.value;else{const t=e.submodule.getId(e.config,n);(0,u.Qd)(t)&&("function"==typeof t.callback&&(e.callback=t.callback),t.id&&(e.idObj=e.submodule.decode(t.id,e.config)))}}function he(e){const t=f(e.combined);if(t.length&&_){const e=te(t);e&&((0,u.II)()?window.googletag.pubads().setPublisherProvidedId(e):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(e)}))))}}function pe(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V().fork().measureTime("userId.init.modules",(function(){if(!t.length)return[];if(t.forEach((e=>ve(e))),!(t=t.filter((e=>(!e.config.storage||!!e.enabledStorageTypes.length)&&T.isAllowed(S.yl,(0,D.s)(w.fW,e.config.name))))).length)return(0,u.JE)(`${k} - no ID module configured`),[];const r=t.reduce(((e,t)=>F(t.submodule.name).measureTime("init",(()=>{try{be(t,n),e.push(t)}catch(e){(0,u.vV)(`Error in userID module '${t.submodule.name}':`,e)}return e}))),[]);return e.refresh(r),he(e),r}))}function ye(e){return e?.storage?.type?.trim().split(/\s*&\s*/)||[]}function Ie(e){function t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,u.JE)(`Invalid userSync.userId config: ${e}`,...n)}return Array.isArray(e)?e.filter((e=>{if(!e?.name)return t('must specify "name"',e);if(e.storage){if(!e.storage.name||!e.storage.type)return t('must specify "storage.name" and "storage.type"',e);if(!function(e){return ye(e).every((e=>we.has(e)))}(e))return t('invalid "storage.type"',e);["expires","refreshInSeconds"].forEach((n=>{let r=e.storage[n];null!=r&&"number"!=typeof r&&(r=Number(r),isNaN(r)?(t(`storage.${n} must be a number and will be ignored`,e),delete e.storage[n]):e.storage[n]=r)}))}return!0})):(null!=e&&t("must be an array",e),[])}const we=new Set([j,$]);function ve(e){if(e.enabledStorageTypes)return;const t=ye(e.config);e.enabledStorageTypes=t.filter((t=>{switch(t){case j:return function(e){return!(!e.storageMgr.localStorageIsEnabled()||U.getDataFromLocalStorage(A)&&((0,u.fH)(`${k} - opt-out localStorage found, storage disabled`),1))}(e);case $:return function(e){return!(!e.storageMgr.cookiesAreEnabled()||U.getCookie(A)&&((0,u.fH)(`${k} - opt-out cookie found, storage disabled`),1))}(e)}return!1}))}function Se(e){l.clear(),Object.entries(Y(e,(e=>Object.keys(e.eids||{})),(e=>e))).forEach((e=>{let[t,n]=e;return l.set(t,n[0].eids[t])}))}function De(){Se(q);const e=Ie(M);if(!e.length)return;const t=q.filter((e=>!(H||[]).find((t=>t.name===e.name))));H.splice(0,H.length),t.map((t=>{const n=(e||[]).find((e=>e.name&&(e.name.toLowerCase()===t.name.toLowerCase()||t.aliasName&&e.name.toLowerCase()===t.aliasName.toLowerCase())));return n&&t.name!==n.name&&(n.name=t.name),n?{submodule:t,config:n,callback:void 0,idObj:void 0,storageMgr:(0,g.vM)({moduleType:w.fW,moduleName:n.name})}:null})).filter((e=>null!==e)).forEach((e=>H.push(e))),H.length&&(oe()||(O.gH.getHooks({hook:re}).remove(),O.gH.before(ne,100),i.Ay.callDataDeletionRequest.before(Ee),b.Q.after((e=>e(te())))),(0,u.fH)(`${k} - usersync config updated for ${H.length} submodules: `,H.map((e=>e.submodule.name))))}function Ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(0,u.fH)("UserID: received data deletion request; deleting all stored IDs..."),H.forEach((e=>{if("function"==typeof e.submodule.onDataDeletionRequest)try{e.submodule.onDataDeletionRequest(e.config,e.idObj,...n)}catch(t){(0,u.vV)(`Error calling onDataDeletionRequest for ID submodule ${e.submodule.name}`,t)}R(e)})),e.apply(this,n)}function Oe(e){return function(){return Promise.resolve(e.apply(this,arguments))}}function ke(e){let{mkDelay:t=h.cb}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_=void 0,H=[],M=[],C=z(),ee=function(){let{mkDelay:e=h.cb}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,h.v6)(),n=(0,h.v6)();let r,o,i=!1;function l(e){return o=V().fork(),null!=r&&r.reject(Z),r=(0,h.v6)(),h.U9.race([e,r.promise]).finally(o.startTiming("userId.total"))}let d=C,f=H;function g(e){return function(){if(d===C&&f===H)return e(...arguments)}}function m(){return I.SL.promise.finally(o.startTiming("userId.init.consent"))}let b=l(h.U9.all([c.Gc,t.promise]).then(m).then(g((()=>{pe(d,f)}))).then((()=>n.promise.finally(o.startTiming("userId.callbacks.pending")))).then(g((()=>{const e=d.submodules.filter((e=>(0,u.fp)(e.callback)));if(e.length)return new h.U9((t=>Q(e,t,d)))}))));return function(){let{refresh:r=!1,submoduleNames:o=null,ready:c=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c&&!i&&(i=!0,t.resolve(),L>0?n.resolve():s.on(a.qY.AUCTION_END,(function t(){s.AU(a.qY.AUCTION_END,t),e(N).then(n.resolve)}))),r&&i&&(b=l(b.catch((()=>null)).then(m).then(g((()=>{const e=pe(d,f.filter((e=>null==o||o.includes(e.submodule.name))),!0).filter((e=>null!=e.callback));if(e.length)return new h.U9((t=>Q(e,t,d)))}))))),b}}({mkDelay:t}),null!=P&&P(),q=[],P=e.getConfig("userSync",(e=>{const t=e.userSync;t&&(_=t.ppid,t.userIds&&(M=t.userIds,N=(0,u.Et)(t.syncDelay)?t.syncDelay:E.qh.syncDelay,L=(0,u.Et)(t.auctionDelay)?t.auctionDelay:E.qh.auctionDelay,De(),function(e,t){if(e){const n={},r=new Map(t.map((e=>e.aliasName?[e.aliasName,e.name]:[])));Object.keys(e).forEach((t=>{const o=(0,u.cy)(e[t])?[...e[t]].reverse():[];n[t]=o.map((e=>r.has(e)?r.get(e):e))})),J=n}else J={};C.refresh(),Se(t)}(t.idPriority,q),ee({ready:!0})))})),(0,r.m)().getUserIds=se,(0,r.m)().getUserIdsAsEids=ie,(0,r.m)().getEncryptedEidsForSource=Oe(ce),(0,r.m)().registerSignalSources=le,(0,r.m)().refreshUserIds=Oe(fe),(0,r.m)().getUserIdsAsync=Oe(ge),(0,r.m)().getUserIdsAsEidBySource=ae,oe()||O.gH.before(re,100)}ke(o.$W),(0,c.xG)("userId",(function(e){e.findRootDomain=y.S,(q||[]).find((t=>t.name===e.name))||(q.push(e),I.o2.register(w.fW,e.name,e.gvlid),De(),ee({refresh:!0,submoduleNames:[e.name]}))}),{postInstallAllowed:!0}),(0,r.E)("userId")}},e=>{e.O(0,[802,7769,2139,1085],(()=>{return t=4836,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9380],{4668:(e,t,i)=>{var r=i(7873),n=i(1069),o=i(433),d=i(3172),a=i(1371),s=i(7377),c=i(5789);const p="USD",u=300,l=!0,m="https://prebid-outstream.yieldmo.com/bundle.js",g=["mimes","startdelay","placement","plcmt","skipafter","protocols","api","playbackmethod","maxduration","minduration","pos","skip","skippable"],f=["name","domain","cat","keywords"],b=(0,n.mb)(),v=2,h=0,y=["description","title","pr","page_url"],x={code:"yieldmo",supportedMediaTypes:[a.D4,a.G_],gvlid:173,isBidRequestValid:function(e){return!!(e&&e.adUnitCode&&e.bidId&&(A(e)||I(e))&&function(e){if(!I(e))return!0;const t=(e,t,i)=>{let r=`"${e}" is required`;throw i&&(r+=" when "+i),new Error(r)},i=(e,t,i)=>{throw i=i?", expected: "+i:"",t=JSON.stringify(t),new Error(`"${e}"=${t} is invalid${i}`)},r=e=>void 0!==e,d=(t,i,r,n)=>{if(0===t.indexOf("video")){const d="params."+t,a="mediaTypes."+t,s=(0,o.A)(e,d),c=(0,o.A)(e,a),p=i(s),u=i(c);return p?s:u||(p?u||r(a,c,n):r(d,s,n),s||c)}{const d=(0,o.A)(e,t);return i(d)||r(t,d,n),d}};try{return d("video.context",(e=>!(0,n.Im)(e)),t),d("params.placementId",(e=>!(0,n.Im)(e)),t),d("video.playerSize",(e=>(0,n.Uu)(e,2)||(0,n.cy)(e)&&e.every((e=>(0,n.Uu)(e,2)))),i,"array of 2 integers, ex: [640,480] or [[640,480]]"),d("video.mimes",(e=>r(e)),t),d("video.mimes",(e=>(0,n.cy)(e)&&e.every((e=>(0,n.O8)(e)))),i,'array of strings, ex: ["video/mp4"]'),d("video.protocols",(e=>r(e)),t),d("video.api",(e=>r(e)),t),d("video.api",(e=>(0,n.Uu)(e)&&e.every((e=>e>=1))),i,"array of numbers, ex: [2,3]"),d("video.playbackmethod",(e=>!r(e)||(0,n.Uu)(e)),i,"array of integers, ex: [2,6]"),d("video.maxduration",(e=>r(e)),t),d("video.maxduration",(e=>(0,n.Fq)(e)),i),d("video.minduration",(e=>!r(e)||(0,n.Et)(e)),i),d("video.skippable",(e=>!r(e)||(0,n.Lm)(e)),i),d("video.skipafter",(e=>!r(e)||(0,n.Et)(e)),i),d("video.pos",(e=>!r(e)||(0,n.Et)(e)),i),d("params.badv",(e=>!r(e)||(0,n.cy)(e)),i,'array of strings, ex: ["ford.com","pepsi.com"]'),d("params.bcat",(e=>!r(e)||(0,n.cy)(e)),i,'array of strings, ex: ["IAB1-5","IAB1-6"]'),!0}catch(e){return(0,n.vV)(e.message),!1}}(e))},buildRequests:function(e,t){const i=function(e){return!!e.refererInfo?.referer?.includes("pb_force_a")}(t),r=C("/exchange/prebid",i),s=C("/exchange/prebidvideo",i),c=e.filter((e=>A(e))),p=e.filter((e=>I(e)));let u=[];const l=function(e){if((0,o.A)(e,"userIdAsEids"))return e.userIdAsEids||[]}(e[0])||[],m=function(e){const t=(0,o.A)(e,"ortb2.user.data")||[],i=t.filter((e=>{const t=e.ext?.segtax;return t>=600&&t<=609}))[0];if(i){return{taxonomy:i.ext.segtax,classifier:i.ext.segclass,topics:Object.values(i.segment).map((e=>Number(e)))}}return null}(t),f=function(e){const t=(0,o.A)(e,"ortb2.device.ext.cdep")||null;return t}(t);if(c.length>0){let e={pbav:"9.50.0",p:[],page_url:t.refererInfo.page,bust:(new Date).getTime().toString(),dnt:"1"===window.doNotTrack||"1"===window.navigator.doNotTrack||!1,description:w(),tmax:t.timeout||400,userConsent:JSON.stringify({gdprApplies:(0,o.A)(t,"gdprConsent.gdprApplies")||"",cmp:(0,o.A)(t,"gdprConsent.consentString")||"",gpp:(0,o.A)(t,"gppConsent.gppString")||"",gpp_sid:(0,o.A)(t,"gppConsent.applicableSections")||[]}),us_privacy:(0,o.A)(t,"uspConsent")||""};m&&(e.topics=JSON.stringify(m));const i=k(t);i&&(e.gpc=i),f&&(e.cdep=f),function(){try{if((0,n.mb)().location.href)return!0}catch(e){return!1}}()&&(e.pr=b.document&&b.document.referrer||"",e.scrd=b.devicePixelRatio||0,e.title=b.document.title||"",e.w=(0,n.Ot)().innerWidth,e.h=(0,n.Ot)().innerHeight);const d=window.navigator.maxTouchPoints;d&&(e.mtp=d),c.forEach((t=>{e.p.push(function(e){const t=(0,o.A)(e,"ortb2Imp.ext.gpid")||(0,o.A)(e,"ortb2Imp.ext.data.pbadslot"),i=(0,o.A)(e,"ortb2Imp.ext.tagid"),r=(0,o.A)(e,"ortb2Imp.ext.divid"),n={placement_id:e.adUnitCode,callback_id:e.bidId,sizes:e.mediaTypes.banner.sizes};if(e.params){e.params.placementId&&(n.ym_placement_id=e.params.placementId);const t=S(e,a.D4);t&&(n.bidFloor=t)}t&&(n.gpid=t);i&&(n.tagid=i);r&&(n.divid=r);const d=(0,o.A)(e,"ortb2Imp.ext.tid");d&&(n.tid=d);e.auctionId&&(n.auctionId=e.auctionId);return JSON.stringify(n)}(t));const i=_(t,"pubcid");i?e.pubcid=i:t.crumbs&&t.crumbs.pubcid&&(e.pubcid=t.crumbs.pubcid);const r=_(t,"tdid");r&&(e.tdid=r);const n=_(t,"criteoId");n&&(e.cri_prebid=n),t.schain&&(e.schain=JSON.stringify(t.schain)),(0,o.A)(t,"params.lr_env")&&(e.ats_envelope=t.params.lr_env)})),e.p="["+e.p.toString()+"]",l.length&&(e.eids=JSON.stringify(l));let s=`${r}?${(0,n.bL)(e)}`.length-8e3;if(s>0)for(let t=0;t<y.length&&(s=E(s,e,y[t]),!(s<=0));t++);u.push({method:"GET",url:r,data:e})}if(p.length>0){const e=function(e,t){const i=e[0].schain;let r={id:e[0].bidderRequestId,tmax:t.timeout||400,at:1,imp:e.map((e=>function(e){const t=(0,o.A)(e,"ortb2Imp.ext.gpid")||(0,o.A)(e,"ortb2Imp.ext.data.pbadslot"),i=(0,o.A)(e,"ortb2Imp.ext.tagid"),r=(0,o.A)(e,"ortb2Imp.ext.divid"),d=function(e){const t=(0,o.A)(e,"mediaTypes.video.playerSize");if((0,n.Uu)(t,2))return t;if((0,n.cy)(t)&&(0,n.Uu)(t[0],2))return t[0];return null}(e),s={id:e.bidId,tagid:e.adUnitCode,bidfloor:S(e,a.G_),ext:{placement_id:e.params.placementId,tid:(0,o.A)(e,"ortb2Imp.ext.tid")},video:{w:d[0],h:d[1],linearity:1}},c=(0,o.A)(e,"mediaTypes.video",{});Object.keys(c).filter((e=>g.includes(e))).forEach((e=>s.video[e]=c[e]));const p=(0,o.A)(e,"params.video",{});Object.keys(p).filter((e=>g.includes(e))).forEach((e=>s.video[e]=p[e])),s.video.skippable&&(s.video.skip=1,delete s.video.skippable);1===s.video.plcmt&&1===s.video.placement||(s.video.startdelay=h,s.video.playbackmethod=[v]);t&&(s.ext.gpid=t);i&&(s.ext.tagid=i);r&&(s.ext.divid=r);return s}(e))),site:T(e[0],t),device:(0,o.A)(t,"ortb2.device"),badv:e[0].params.badv||[],bcat:(0,o.A)(t,"bcat")||e[0].params.bcat||[],ext:{prebid:"9.50.0"},ats_envelope:e[0].params.lr_env};i&&(r.schain=i);const s=k(t);s&&(0,d.J)(r,"regs.ext.gpc",s);e[0].auctionId&&(r.auctionId=e[0].auctionId);return function(e,t){const i=t.gdprConsent,r=(0,o.A)(t,"gppConsent.gppString"),n=(0,o.A)(t,"gppConsent.applicableSections");r?(0,d.J)(e,"regs.ext.gpp",r):((0,d.J)(e,"regs.ext.gdpr",i&&i.gdprApplies?1:0),(0,d.J)(e,"user.ext.consent",i&&i.consentString?i.consentString:""));n&&n.length>0&&(0,d.J)(e,"regs.ext.gpp_sid",n);const a=(0,o.A)(t,"uspConsent");!r&&a&&(0,d.J)(e,"regs.ext.us_privacy",a)}(r,t),r}(p,t);m&&(e.topics=m),l.length&&(0,d.J)(e,"user.ext.eids",l),u.push({method:"POST",url:s,data:e})}return u},interpretResponse:function(e,t){let i=[];const r=e.body;if(r.length>0&&r.forEach((e=>{e.cpm>0&&i.push(function(e){return{dealId:e.publisherDealId,requestId:e.callback_id,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.creative_id,currency:p,netRevenue:l,ttl:300,ad:e.ad,meta:{advertiserDomains:e.adomain||[],mediaType:a.D4}}}(e))})),r.seatbid){r.seatbid.reduce(((e,t)=>e.concat(t.bid)),[]).forEach((e=>i.push(function(e,t){const i=((0,o.A)(t,"data.imp")||[]).find((t=>t.id===e.impid));let r={dealId:e.dealid,requestId:i.id,cpm:e.price,width:i.video.w,height:i.video.h,creativeId:e.crid||e.adid,currency:p,netRevenue:l,mediaType:a.G_,ttl:u,vastXml:e.adm,meta:{advertiserDomains:e.adomain||[],mediaType:a.G_}};if(i.video.plcmt&&1!==i.video.plcmt){const e=c.A4.install({url:m,config:{width:r.width,height:r.height,vastTimeout:15e3,maxAllowedVastTagRedirects:5,allowVpaid:!0,autoPlay:!0,preload:!0,mute:!0},id:i.tagid,loaded:!1});e.setRender((function(e){e.renderer.push((()=>{const{id:t,config:i}=e.renderer;window.YMoutstreamPlayer(e,t,i)}))})),r.renderer=e}return r}(e,t))))}return i},getUserSyncs:function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const n=[],o="&gdpr="+(i.gdprApplies?1:0),d=`&gdpr_consent=${encodeURIComponent(i.consentString||"")}`,a=`https://ads.yieldmo.com/pbcas?${`us_privacy=${encodeURIComponent(r)}`}${o}${d}`;return e.iframeEnabled?n.push({type:"iframe",url:a+"&type=iframe"}):e.pixelEnabled&&n.push({type:"image",url:a+"&type=image"}),n}};function A(e){return!!(0,o.A)(e,"mediaTypes.banner")}function I(e){return!!(0,o.A)(e,"mediaTypes.video")}function w(){return document.querySelector('meta[name="description"]')&&document.querySelector('meta[name="description"]').getAttribute("content")||""}function _(e,t){return"object"==typeof(0,o.A)(e,"userId")?e.userId[t]:void 0}function k(e){return(0,o.A)(e,"ortb2.regs.ext.gpc")}function S(e,t){let i={};return"function"==typeof e.getFloor&&(i=e.getFloor({currency:p,mediaType:t,size:"*"})),i.floor||e.params.bidfloor||e.params.bidFloor||0}function T(e,t){let i={};const r=(0,n.Dl)((0,o.A)(t,"refererInfo.page"));(0,n.Im)(r)||(i.page=`${r.protocol}://${r.hostname}${r.pathname}`),t.refererInfo?.ref&&(i.ref=t.refererInfo.ref);const d=document.getElementsByTagName("meta").keywords;d&&d.content&&(i.keywords=d.content);const a=(0,o.A)(e,"params.site");return a&&Object.keys(a).filter((e=>f.includes(e))).forEach((e=>i[e]=a[e])),i}function E(e,t,i){if(t[i].length>e)return t[i]=t[i].substring(0,t[i].length-e),0;const r=e-t[i].length;return t[i]="",r}function C(e,t){return`${t?"https://ads-stg.yieldmo.com":"https://ads.yieldmo.com"}${e}`}(0,s.a$)(x),(0,r.E)("yieldmoBidAdapter")}},e=>{e.O(0,[802,7769,2139,1085],(()=>{return t=4668,e(e.s=t);var t}));e.O()}]);
})(),pbjs.processQueue();