From 3f40cd42c7bc6b4e8ec9ab3827c4aa639797257d Mon Sep 17 00:00:00 2001 From: Antoine Niek Date: Wed, 4 Dec 2024 16:01:28 -0500 Subject: [PATCH] Remove remnant demos/integration folder (#140) --- demos/integration/prebid.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 demos/integration/prebid.js diff --git a/demos/integration/prebid.js b/demos/integration/prebid.js deleted file mode 100644 index 77a42179..00000000 --- a/demos/integration/prebid.js +++ /dev/null @@ -1,16 +0,0 @@ -/* prebid.js v7.49.0-pre -Updated: 2023-05-16 -Modules: userId, lmpIdSystem, mabidderBidAdapter */ -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(){ -!function(){var e,n={5706:function(e,n,t){t.d(n,{Pd:function(){return s},Th:function(){return d},_U:function(){return f}});var r=t(5730),i=t(4358),o=t(265),a=t(4614),u=(0,t(8640).R)(),c="outstream";function d(e){var n=this,t=e.url,o=e.config,a=e.id,u=e.callback,d=e.loaded,s=e.adUnitCode,f=e.renderNow;this.url=t,this.config=o,this.handlers={},this.id=a,this.renderNow=f,this.loaded=d,this.cmd=[],this.push=function(e){"function"==typeof e?n.loaded?e.call():n.cmd.push(e):(0,i.H)("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){n.loaded=!0,n.process()},this.render=function(){var e=this,n=arguments,o=function(){e._render?e._render.apply(e,n):(0,i.yN)("No render function was provided, please use .setRender on the renderer")};l(s)?((0,i.yN)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(s)),o()):f?o():(this.cmd.unshift(o),(0,r.B)(t,c,this.callback,this.documentContext))}.bind(this)}function s(e){return!(!e||!e.url&&!e.renderNow)}function f(e,n,t){var r=null;e.config&&e.config.documentResolver&&(r=e.config.documentResolver(n,document,t)),r||(r=document),e.documentContext=r,e.render(n,e.documentContext)}function l(e){var n=u.adUnits,t=(0,a.sE)(n,(function(n){return n.code===e}));if(!t)return!1;var r=(0,o.Z)(t,"renderer"),i=!!(r&&r.url&&r.render),c=(0,o.Z)(t,"mediaTypes.video.renderer"),d=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||d&&!0!==c.backupOnly)}d.install=function(e){return new d({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode,renderNow:e.renderNow})},d.prototype.getConfig=function(){return this.config},d.prototype.setRender=function(e){this._render=e},d.prototype.setEventHandlers=function(e){this.handlers=e},d.prototype.handleVideoEvent=function(e){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.ji)("Prebid Renderer event for id ".concat(n," type ").concat(t))},d.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.H)("Error processing Renderer command: ",e)}}},9633:function(e,n,t){t.d(n,{UL:function(){return i},_U:function(){return a},ic:function(){return r},y2:function(){return o}});var r="core",i="bidder",o="userId",a="analytics"},875:function(e,n,t){t.d(n,{f:function(){return a}});var r=t(265),i={};function o(e,n,t){var r=function(e,n){var t=i[e]=i[e]||{bidders:{}};return n?t.bidders[n]=t.bidders[n]||{}:t}(e,t);return r[n]=(r[n]||0)+1,r[n]}var a={incrementRequestsCounter:function(e){return o(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,n){return o(e,"requestsCounter",n)},incrementBidderWinsCounter:function(e,n){return o(e,"winsCounter",n)},getRequestsCounter:function(e){return(0,r.Z)(i,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,n){return(0,r.Z)(i,"".concat(e,".bidders.").concat(n,".requestsCounter"))||0},getBidderWinsCounter:function(e,n){return(0,r.Z)(i,"".concat(e,".bidders.").concat(n,".winsCounter"))||0}}},1039:function(e,n,t){t.d(n,{ZP:function(){return Y},rp:function(){return F},uV:function(){return L},TJ:function(){return z},nX:function(){return M}});var r=t(9062),i=t(3324),o=t(4942),a=t(4358),u=t(265),c=t(1002),d=t(3193),s=t(4614),f=t(4679),l=[];function g(e,n){return e.labelAll?{labelAll:!0,labels:e.labelAll,activeLabels:n}:{labelAll:!1,labels:e.labelAny,activeLabels:n}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.labels,t=void 0===n?[]:n,r=e.labelAll,i=void 0!==r&&r,o=e.activeLabels,c=void 0===o?[]:o,d=arguments.length>1?arguments[1]:void 0,g=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l,h=v(p);(0,a.PO)(d)||(d=g?{banner:{sizes:g}}:{});var y=(0,u.Z)(d,"banner.sizes");h.shouldFilter&&y&&((d=(0,a.I8)(d)).banner.sizes=y.filter((function(e){return h.sizesSupported[e]})));var b={active:!d.hasOwnProperty(f.Mk)||(0,u.Z)(d,"banner.sizes.length")>0&&(0===t.length||!i&&(t.some((function(e){return h.labels[e]}))||t.some((function(e){return(0,s.q9)(c,e)})))||i&&t.reduce((function(e,n){return e?h.labels[n]||(0,s.q9)(c,n):e}),!0)),mediaTypes:d};return y&&y.length!==d.banner.sizes.length&&(b.filterResults={before:y,after:d.banner.sizes}),b}function v(e){return e.reduce((function(e,n){if("object"===(0,c.Z)(n)&&"string"==typeof n.mediaQuery&&n.mediaQuery.length>0){var t=!1;try{t=(0,a.Zy)().matchMedia(n.mediaQuery).matches}catch(e){(0,a.yN)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),t=matchMedia(n.mediaQuery).matches}t&&(Array.isArray(n.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach((function(t){return(n[t]||[]).forEach((function(n){return e[t][n]=!0}))})))}else(0,a.yN)('sizeConfig rule missing required property "mediaQuery"');return e}),{labels:{},sizesSupported:{},shouldFilter:!1})}d.vc.getConfig("sizeConfig",(function(e){return function(e){l=e}(e.sizeConfig)}));var h=t(59),y=t(5339),b=t(8928),m=t(2797),w=t(875),C=t(5102),A=t(2513),E=t(2021),T=t(5644),O=t(9128),k=t(1176),I=t(9633);function B(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?L:r;if(null==n)return e;var o=i(n);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit");function Z(e,n){var t=(0,a.I8)(e),r=!1;return t.forEach((function(e){var t=e.bids.filter((function(e){var t;return"pbsBidAdapter"===e.module&&(null===(t=e.params)||void 0===t?void 0:t.configName)===n.configName}));1===t.length?(e.s2sBid=t[0],r=!0,e.ortb2Imp=(0,a.Ee)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):t.length>1&&(0,a.yN)('Multiple "module" bids for the same s2s configuration; all will be ignored',t),e.bids=x(e.bids,n).map((function(e){return e.bid_id=(0,a._d)(),e}))})),{adUnits:t=t.filter((function(e){return 0!==e.bids.length||null!=e.s2sBid})),hasModuleBids:r}}function H(e){var n=(0,a.I8)(e);return n.forEach((function(e){e.bids=x(e.bids,null)})),n=n.filter((function(e){return 0!==e.bids.length}))}var F=new A.iK,M=new A.LO,z=new A.$e,W=(0,m.z3)("sync",(function(e,n){return function(e,n){return e.reduce((function(e,t){var r=p(g(t,n),t.mediaTypes,t.sizes),i=r.active,o=r.mediaTypes,u=r.filterResults;return i?(u&&(0,a.PN)('Size mapping filtered adUnit "'.concat(t.code,'" banner sizes from '),u.before,"to ",u.after),t.mediaTypes=o,t.bids=t.bids.reduce((function(e,r){var i=p(g(r,n),t.mediaTypes),o=i.active,u=i.mediaTypes,c=i.filterResults;return o?(c&&((0,a.PN)('Size mapping filtered adUnit "'.concat(t.code,'" bidder "').concat(r.bidder,'" banner sizes from '),c.before,"to ",c.after),r.mediaTypes=u),e.push(r)):(0,a.PN)('Size mapping deactivated adUnit "'.concat(t.code,'" bidder "').concat(r.bidder,'"')),e}),[]),e.push(t)):(0,a.PN)('Size mapping disabled adUnit "'.concat(t.code,'"')),e}),[])}(e,n)}),"setupAdUnitMediaTypes");function L(e){(0,a.kJ)(e)||(e=[e]);var n=new Set([null]);return e.filter((function(e){return e&&e.enabled})).flatMap((function(e){return e.bidders})).forEach((function(e){return n.add(e)})),n}var K=(0,m.z3)("sync",(function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getS2SBidders,u=void 0===i?L:i,c=u(n);return(0,a.pP)(e).reduce((function(e,n){return e[c.has(n)?U:S].push(n),e}),(t={},(0,o.Z)(t,S,[]),(0,o.Z)(t,U,[]),t))}),"partitionBidders");function G(e,n){var t=R[e],r=(null==t?void 0:t.getSpec)&&t.getSpec();if(r&&r[n]&&"function"==typeof r[n])return[r,r[n]]}function V(e,n,t,r){try{(0,a.PN)("Invoking ".concat(e,".").concat(n));for(var i=arguments.length,o=new Array(i>4?i-4:0),u=4;u5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6?arguments[6]:void 0;u=(0,O.Bf)(u),E.j8(T.FP.BEFORE_REQUEST_BIDS,e),(0,h.Fb)(e),e=W(e,i);var c=K(e,_),f=c[S],l=c[U];d.vc.getConfig("bidderSequence")===d.FD&&(f=(0,a.TV)(f));var g=(0,C.nH)(),p=[],v=o.global||{},y=o.bidder||{};function b(e){var n=Object.freeze((0,a.Ee)({},v,y[e.bidderCode]));return e.ortb2=n,e.bids.forEach((function(e){return e.ortb2=n})),e}_.forEach((function(r){if(r&&r.enabled){var i=Z(e,r),o=i.adUnits,c=i.hasModuleBids,d=(0,a.DO)();(0===l.length&&c?[null]:l).forEach((function(e){var i=(0,a._d)(),c=u.fork(),s=b({bidderCode:e,auctionId:t,bidderRequestId:i,uniquePbsTid:d,bids:D({bidderCode:e,auctionId:t,bidderRequestId:i,adUnits:(0,a.I8)(o),src:T.os.YZ,metrics:c}),auctionStart:n,timeout:r.timeout,src:T.os.YZ,refererInfo:g,metrics:c});0!==s.bids.length&&p.push(s)})),o.forEach((function(e){var n=e.bids.filter((function(e){return(0,s.sE)(p,(function(n){return(0,s.sE)(n.bids,(function(n){return n.bidId===e.bid_id}))}))}));e.bids=n})),p.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=o.filter((function(e){return e.bids.length>0||null!=e.s2sBid})))}))}}));var m=H(e);return f.forEach((function(e){var o=(0,a._d)(),c=u.fork(),d=b({bidderCode:e,auctionId:t,bidderRequestId:o,bids:D({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.I8)(m),labels:i,src:"client",metrics:c}),auctionStart:n,timeout:r,refererInfo:g,metrics:c}),s=R[e];s||(0,a.H)("Trying to make a request for bidder that does not exist: ".concat(e)),s&&d.bids&&0!==d.bids.length&&p.push(d)})),p.forEach((function(e){F.getConsentData()&&(e.gdprConsent=F.getConsentData()),M.getConsentData()&&(e.uspConsent=M.getConsentData()),z.getConsentData()&&(e.gppConsent=z.getConsentData())})),p}),"makeBidRequests"),P.callBids=function(e,n,t,r,o,u,c){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(n.length){var f=n.reduce((function(e,n){return e[Number(void 0!==n.src&&n.src===T.os.YZ)].push(n),e}),[[],[]]),l=(0,i.Z)(f,2),g=l[0],p=l[1],v=[];p.forEach((function(e){for(var n=-1,t=0;t0?m.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),l.forEach((function(e){E.j8(T.FP.BID_REQUESTED,j(j({},e),{},{tid:e.auctionId}))})),c.callBids(g,p,t,(function(){return y.forEach((function(e){return e()}))}),n)}}else(0,a.H)("missing "+e.adapter);h++}})),g.forEach((function(e){e.start=(0,a.AB)();var n=R[e.bidderCode];d.vc.runWithBidder(e.bidderCode,(function(){(0,a.ji)("CALLING BIDDER"),E.j8(T.FP.BID_REQUESTED,e)}));var i=(0,b.O)(u,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),s=r.bind(e);try{d.vc.runWithBidder(e.bidderCode,a.ak.call(n.callBids,n,e,t,s,i,c,d.vc.callbackWithBidder(e.bidderCode)))}catch(n){(0,a.H)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:n,bidRequest:e}),s()}}))}else(0,a.yN)("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},P.videoAdapters=[],P.registerBidAdapter=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.supportedMediaTypes,o=void 0===i?[]:i;e&&n?"function"==typeof e.callBids?(R[n]=e,A.qh.register(I.UL,n,null===(t=e.getSpec)||void 0===t?void 0:t.call(e).gvlid),(0,s.q9)(o,"video")&&P.videoAdapters.push(n),(0,s.q9)(o,"native")&&h.Sg.push(n)):(0,a.H)("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):(0,a.H)("bidAdapter or bidderCode not specified")},P.aliasBidAdapter=function(e,n,t){if(void 0===R[n]){var r=R[e];if(void 0===r){var i=[];_.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,s.q9)(r,n)?N[n]=e:i.push(e)}})),i.forEach((function(e){(0,a.H)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,u=function(e){var n=[];return(0,s.q9)(P.videoAdapters,e)&&n.push("video"),(0,s.q9)(h.Sg,e)&&n.push("native"),n}(e);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(n);else{var c=r.getSpec(),d=t&&t.gvlid,f=t&&t.skipPbsAliasing;o=(0,y.PZ)(Object.assign({},c,{code:n,gvlid:d,skipPbsAliasing:f})),N[n]=e}P.registerBidAdapter(o,n,{supportedMediaTypes:u})}catch(n){(0,a.H)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,a.ji)('alias name "'+n+'" has been already specified.')},P.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code,r=e.gvlid;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,q[t]={adapter:n,gvlid:r},A.qh.register(I._U,t,r)):(0,a.H)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n analytics adapter must implement an enableAnalytics() function')):(0,a.H)("Prebid Error: analyticsAdapter or analyticsCode not specified")},P.enableAnalytics=function(e){(0,a.kJ)(e)||(e=[e]),(0,a.yi)(e,(function(e){var n=q[e.provider];n&&n.adapter?n.adapter.enableAnalytics(e):(0,a.H)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},P.getBidAdapter=function(e){return R[e]},P.getAnalyticsAdapter=function(e){return q[e]},P.callTimedOutBidders=function(e,n,t){n=n.map((function(n){return n.params=(0,a.S0)(e,n.adUnitCode,n.bidder),n.timeout=t,n})),n=(0,a.vM)(n,"bidder"),Object.keys(n).forEach((function(e){J(e,"onTimeout",n[e])}))},P.callBidWonBidder=function(e,n,t){n.params=(0,a.S0)(t,n.adUnitCode,n.bidder),w.f.incrementBidderWinsCounter(n.adUnitCode,n.bidder),J(e,"onBidWon",n)},P.callBidBillableBidder=function(e){J(e.bidder,"onBidBillable",e)},P.callSetTargetingBidder=function(e,n){J(e,"onSetTargeting",n)},P.callBidViewableBidder=function(e,n){J(e,"onBidViewable",n)},P.callBidderError=function(e,n,t){J(e,"onBidderError",{error:n,bidderRequest:t})},P.callDataDeletionRequest=(0,m.z3)("sync",(function(){for(var e=arguments.length,n=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?C.K.index:t;function i(){var e=Object.keys(n);return O.every((function(t){return(0,p.q9)(e,t)&&!(0,p.q9)([void 0,null],n[t])}))}function o(e){return"Invalid bid from ".concat(n.bidderCode,". Ignoring bid: ").concat(e)}if(!e)return(0,h.yN)("No adUnitCode was supplied to addBidResponse."),!1;if(!n)return(0,h.yN)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1;if(!i())return(0,h.H)(o("Bidder ".concat(n.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1;if("native"===n.mediaType&&!(0,s.r4)(n,{index:r}))return(0,h.H)(o("Native bid missing some required properties.")),!1;if("video"===n.mediaType&&!(0,f.Dn)(n,{index:r}))return(0,h.H)(o("Video bid does not have required vastUrl or renderer property")),!1;if("banner"===n.mediaType&&!U(e,n,{index:r}))return(0,h.H)(o("Banner bids require a width and height")),!1;return!0}(e,n)}))?i(e,n):i.reject(e,n,l.Gw.UI)}function I(){o(),u.vc.runWithBidder(e.code,(function(){g.j8(l.FP.BIDDER_DONE,r),n(m,r.gdprConsent,r.uspConsent,r.gppConsent)}))}}});function n(n,t,r,i){j(e,n,t,r,i)}function t(n){return!!e.isBidRequestValid(n)||((0,h.yN)("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(n))),!1)}}var B=(0,m.z3)("sync",(function(e,n,t,r,o,a){var u=a.onRequest,c=a.onResponse,d=a.onFledgeAuctionConfigs,s=a.onError,f=a.onBid,l=a.onCompletion,g=P(t);l=g.startTiming("total").stopBefore(l);var p=g.measureTime("buildRequests",(function(){return e.buildRequests(n,t)}));if(p&&0!==p.length){Array.isArray(p)||(p=[p]);var v=(0,h.yx)(l,p.length);p.forEach((function(n){var t=g.fork();function a(e){null!=e&&(e.metrics=t.fork().renameWith()),f(e)}var l=o((function(r,i){y();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:i.getResponseHeader.bind(i)}},c(r);try{r=t.measureTime("interpretResponse",(function(){return e.interpretResponse(r,n)}))}catch(n){return(0,h.H)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,n),void v()}var o;r&&(0,h.kJ)(r.fledgeAuctionConfigs)?(d(r.fledgeAuctionConfigs),o=r.bids):o=r,o&&((0,h.kJ)(o)?o.forEach(a):a(o)),v()})),p=o((function(e,n){y(),s(e,n),v()}));u(n);var y=t.startTiming("net");switch(n.method){case"GET":r("".concat(n.url).concat(function(e){if(e)return"?".concat("object"===(0,i.Z)(e)?(0,h.Re)(e):e);return""}(n.data)),{success:l,error:p},void 0,Object.assign({method:"GET",withCredentials:!0},n.options));break;case"POST":r(n.url,{success:l,error:p},"string"==typeof n.data?n.data:JSON.stringify(n.data),Object.assign({method:"POST",contentType:"text/plain",withCredentials:!0},n.options));break;default:(0,h.yN)("Skipping invalid request from ".concat(e.code,". Request type ").concat(n.type," must be GET or POST")),v()}}))}else l()}),"processBidderRequests"),j=(0,m.z3)("async",(function(e,n,t,r,i){var o=u.vc.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!a.ZP.aliasRegistry[e.code])){var c=u.vc.getConfig("userSync.filterSettings"),s=e.getUserSyncs({iframeEnabled:!(!c||!c.iframe&&!c.all),pixelEnabled:!(!c||!c.image&&!c.all)},n,t,r,i);s&&(Array.isArray(s)||(s=[s]),s.forEach((function(n){d.k_.registerSync(n.type,e.code,n.url)})),d.k_.bidderDone(e.code))}}),"registerSyncs"),S=(0,m.z3)("sync",(function(e,n){}),"addComponentAuction");function U(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.index,o=void 0===i?C.K.index:i;if((n.width||0===parseInt(n.width,10))&&(n.height||0===parseInt(n.height,10)))return n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),!0;var a=o.getBidRequest(n),u=o.getMediaTypes(n),c=a&&a.sizes||u&&u.banner&&u.banner.sizes,d=(0,h.sF)(c);if(1===d.length){var s=d[0].split("x"),f=(0,r.Z)(s,2),l=f[0],g=f[1];return n.width=parseInt(l,10),n.height=parseInt(g,10),!0}return!1}function P(e){return(0,E.Bf)(e.metrics).renameWith((function(n){return["adapter.client.".concat(n),"adapters.client.".concat(e.bidderCode,".").concat(n)]}))}(0,m.v5)("checkAdUnitSetup").before((function(e,n){if(!u.vc.getConfig("adpod.brandCategoryExclusion"))return e.call(this,n);n.filter((function(e){return(0,y.Z)(e,"mediaTypes.video.context")===b.Oh})).map((function(e){return e.bids.map((function(e){return e.bidder}))})).reduce(h.xH,[]).filter(h.tT).forEach((function(e){var n=a.ZP.getBidAdapter(e);if(n.getSpec().getMappingFileInfo){var t=n.getSpec().getMappingFileInfo(),r=t.refreshInDays?t.refreshInDays:1,i=t.localStorageKey?t.localStorageKey:n.getSpec().code,o=T.getDataFromLocalStorage(i);try{(!(o=o?JSON.parse(o):void 0)||(0,h.AB)()>o.lastUpdated+24*r*60*60*1e3)&&(0,v.h)(t.url,{success:function(n){try{n=JSON.parse(n);var t={lastUpdated:(0,h.AB)(),mapping:n.mapping};T.setDataInLocalStorage(i,JSON.stringify(t))}catch(n){(0,h.H)("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){(0,h.H)("Failed to load ".concat(e," bidder translation file"))}})}catch(n){(0,h.H)("Failed to parse ".concat(e," bidder translation mapping file"))}}})),e.call(this,n)}))},5730:function(e,n,t){t.d(n,{B:function(){return u}});var r=t(4614),i=t(4358),o=new WeakMap,a=["debugging","adloox","criteo","outstream","adagio","spotx","browsi","brandmetrics","justtag","tncId","akamaidap","ftrackId","inskin","hadron","medianet","improvedigital","aaxBlockmeter","confiant","arcspan"];function u(e,n,t,u,c){if(n&&e){if((0,r.q9)(a,n)){u||(u=document);var d=l(u,e);if(d)return t&&"function"==typeof t&&(d.loaded?t():d.callbacks.push(t)),d.tag;var s=o.get(u)||{},f={loaded:!1,tag:null,callbacks:[]};return s[e]=f,o.set(u,s),t&&"function"==typeof t&&f.callbacks.push(t),(0,i.yN)("module ".concat(n," is loading external JavaScript")),function(n,t,r,o){r||(r=document);var a=r.createElement("script");a.type="text/javascript",a.async=!0;var u=l(r,e);u&&(u.tag=a);a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,t())}:a.onload=function(){t()};a.src=n,o&&(0,i.D9)(a,o);return(0,i.jC)(a,r),a}(e,(function(){f.loaded=!0;try{for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,a=n.done;return function(n,u,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var s,f=d.method||(c?"POST":"GET"),l=document.createElement("a");l.href=n;var g="object"===(0,r.Z)(u)&&null!==u?u:{success:function(){(0,o.ji)("xhr success")},error:function(e){(0,o.H)("xhr error",null,e)}};if("function"==typeof u&&(g.success=u),(s=new window.XMLHttpRequest).onreadystatechange=function(){if(4===s.readyState){"function"==typeof a&&a(l.origin);var e=s.status;e>=200&&e<300||304===e?g.success(s.responseText,s):g.error(s.statusText,s)}},i.vc.getConfig("disableAjaxTimeout")||(s.ontimeout=function(){(0,o.H)(" xhr timeout after ",s.timeout,"ms")}),"GET"===f&&c){var p=(0,o.en)(n,d);Object.assign(p.search,c),n=(0,o.Q2)(p)}s.open(f,n,!0),i.vc.getConfig("disableAjaxTimeout")||(s.timeout=e),d.withCredentials&&(s.withCredentials=!0),(0,o.yi)(d.customHeaders,(function(e,n){s.setRequestHeader(n,e)})),d.preflight&&s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.setRequestHeader("Content-Type",d.contentType||"text/plain"),"function"==typeof t&&t(l.origin),"POST"===f&&c?s.send(c):s.send()}catch(e){(0,o.H)("xhr construction",e),"object"===(0,r.Z)(u)&&null!==u&&u.error(e)}}}},1176:function(e,n,t){t.d(n,{K:function(){return te}});var r=t(4358),i=t(3324),o=t(1002),a=t(265),u=t(6463),c=t(59),d=t(8928),s=t(3193);function f(e,n){var t=n?""):"";return'\n \n \n prebid.org wrapper\n \n ").concat(t,"\n \n \n \n ")}function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?te.index:t,i=e.vastXml?e.vastXml:f(e.vastUrl,e.vastImpUrl),o=r.getAuction(e),a=Number(e.ttl)+15,u={type:"xml",value:i,ttlseconds:a};return s.vc.getConfig("cache.vasttrack")&&(u.bidder=e.bidder,u.bidid=e.requestId,u.aid=e.auctionId),null!=o&&(u.timestamp=o.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(u.key=e.customCacheKey),u}function g(e){return{success:function(n){var t;try{t=JSON.parse(n).responses}catch(n){return void e(n,[])}t?e(null,t):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(n,t){e(new Error("Error storing video ad in the cache: ".concat(n,": ").concat(JSON.stringify(t))),[])}}}var p=t(5706),v=t(1974),h=t(2797),y=t(4614),b=t(154),m=t(4679),w=t(5975),C=t(2021),A=t(1039),E=t(5644),T=t(8792),O=t(9128),k=t(9626);var I=t(8640),B=v.k_.syncUsers,j="completed";C.on(E.FP.BID_ADJUSTMENT,(function(e){!function(e){var n=function(e,n,t){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.index,u=void 0===a?te.index:a,c=o.bs,d=void 0===c?w.S:c;t=t||u.getBidRequest(n);var s=d.get((null==n?void 0:n.bidderCode)||(null===(i=t)||void 0===i?void 0:i.bidder),"bidCpmAdjustment");if(s&&"function"==typeof s)try{return s(e,Object.assign({},n),t)}catch(e){(0,r.H)("Error during bid adjustment",e)}return e}(e.cpm,e);n>=0&&(e.cpm=n)}(e)}));var S={},U={},P=[],R=(0,I.R)();function N(e){var n=e.adUnits,t=e.adUnitCodes,a=e.callback,u=e.cbTimeout,c=e.labels,d=e.auctionId,f=e.ortb2Fragments,l=e.metrics;l=(0,O.Bf)(l);var g,p,v,h,b=n,w=c,I=t,N=d||(0,r.DO)(),x=u,F=new Set,M=[],W=a,L=[],K=[],J=[],Q=[],Y=[];function X(){return{auctionId:N,timestamp:g,auctionEnd:p,auctionStatus:h,adUnits:b,adUnitCodes:I,labels:w,bidderRequests:L,noBids:J,bidsReceived:K,bidsRejected:M,winningBids:Q,timeout:x,metrics:l,seatNonBids:Y}}function $(e,t){if(t&&clearTimeout(v),void 0===p){var i=[];e&&((0,r.ji)("Auction ".concat(N," timedOut")),o=F,(i=L.map((function(e){return(e.bids||[]).filter((function(e){return!o.has(e.bidder)}))})).reduce(r.xH,[])).length&&C.j8(E.FP.BID_TIMEOUT,i)),h=j,p=Date.now(),l.checkpoint("auctionEnd"),l.timeBetween("requestBids","auctionEnd","requestBids.total"),l.timeBetween("callBids","auctionEnd","requestBids.callBids"),C.j8(E.FP.AUCTION_END,X()),D(b,(function(){try{if(null!=W){var t=I,o=K.filter(r.ak.call(r.IK,this,t)).reduce(ee,{});W.apply(R,[o,e,N]),W=null}}catch(e){(0,r.H)("Error executing bidsBackHandler",null,e)}finally{i.length&&A.ZP.callTimedOutBidders(n,i,x);var a=s.vc.getConfig("userSync")||{};a.enableOverride||B(a.syncDelay)}}))}var o}function ne(){s.vc.resetBidder(),(0,r.PN)("Bids Received for Auction with id: ".concat(N),K),h=j,$(!1,!0)}function re(e){F.add(e)}function ie(e){var n=this;e.forEach((function(e){var n;n=e,L=L.concat(n)}));var t={},a={bidRequests:e,run:function(){var a,d;a=$.bind(null,!0),d=setTimeout(a,x),v=d,h="inProgress",C.j8(E.FP.AUCTION_INIT,X());var l=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,a=void 0===t?te.index:t,u=0,c=!1,d=new Set,f={},l={};function g(e,n){null==l[e]&&(l[e]=T.Z.resolve()),l[e]=l[e].then((function(){return T.Z.resolve(n).catch((function(){}))}))}function p(e,t){var r=e.timeout;(null==r||r>n.getTimeout())&&(r=n.getTimeout());var i=n.getAuctionStart()+r-Date.now(),o=l[e.bidderRequestId],a=l[""];(null!=o||null!=a)&&i>0?T.Z.race([T.Z.timeout(i),T.Z.resolve(a).then((function(){return o}))]).then(t):t()}function v(){u--,c&&0===u&&e()}function h(e,n,t){return f[n.requestId]=!0,G(n,e),u++,t(v)}function b(e,t){h(e,t,(function(e){var r=V(t);r.mediaType===m.pX?H(n,r,e):(null!=r.native&&"object"===(0,o.Z)(r.native)&&z(r),Z(n,r),e())}))}function w(e,t,o){return h(e,t,(function(e){var a,u=(0,k.m)(E.Q_.H,null===(a=t.getIdentifiers)||void 0===a?void 0:a.call(t));return Object.assign(u,Object.fromEntries(Object.entries(t).filter((function(e){var n=(0,i.Z)(e,1)[0];return!u.hasOwnProperty(n)&&!["ad","adUrl","vastXml","vastUrl","native"].includes(n)})))),u.status=E.UE.G9,u.cpm=0,t.rejectionReason=o,(0,r.yN)("Bid from ".concat(t.bidder||"unknown bidder"," was rejected: ").concat(o),t),C.j8(E.FP.BID_REJECTED,t),n.addBidRejected(t),e(),u}))}function A(){var t=this,i=n.getBidRequests(),o=s.vc.getConfig("auctionOptions");if(d.add(t),o&&!(0,r.xb)(o)){var a=o.secondaryBidders;a&&!i.every((function(e){return(0,y.q9)(a,e.bidderCode)}))&&(i=i.filter((function(e){return!(0,y.q9)(a,e.bidderCode)})))}c=i.every((function(e){return d.has(e)})),t.bids.forEach((function(e){f[e.bidId]||(n.addNoBid(e),C.j8(E.FP.NO_BID,e))})),c&&0===u&&e()}return{addBidResponse:function(){function e(e,n){var t,r=a.getBidderRequest(n);g(r&&r.bidderRequestId||"",_.call({dispatch:b},e,n,(function(r){return null==t&&(t=w(e,n,r)),t})))}return e.reject=w,e}(),adapterDone:function(){p(this,A.bind(this))}}}(ne,n);A.ZP.callBids(b,e,l.addBidResponse,l.adapterDone,{request:function(e,n){c(S,n),c(t,e),U[e]||(U[e]={SRA:!0,origin:n}),t[e]>1&&(U[e].SRA=!1)},done:function(e){S[e]--,P[0]&&u(P[0])&&P.shift()}},x,re,f)}};function u(e){var n=!0,t=s.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===E.os.YZ?"s2s":e.bidderCode;return U[i]&&(!1===U[i].SRA&&(r=Math.min(e.bids.length,t)),S[U[i].origin]+r>t&&(n=!1)),!n})),n&&e.run(),n}function c(e,n){void 0===e[n]?e[n]=1:e[n]++}u(a)||((0,r.yN)("queueing auction due to limited endpoint capacity"),P.push(a))}return C.on(E.FP.SEAT_NON_BID,(function(e){var n;e.auctionId===N&&(n=e.seatnonbid,Y=Y.concat(n))})),{addBidReceived:function(e){K=K.concat(e)},addBidRejected:function(e){M=M.concat(e)},addNoBid:function(e){J=J.concat(e)},executeCallback:$,callBids:function(){h="started",g=Date.now();var e=l.measureTime("requestBids.makeRequests",(function(){return A.ZP.makeBidRequests(b,g,N,x,w,f,l)}));(0,r.PN)("Bids Requested for Auction with id: ".concat(N),e),l.checkpoint("callBids"),e.length<1?((0,r.yN)("No valid bid requests returned for auction"),ne()):q.call({dispatch:ie,context:this},e)},addWinningBid:function(e){var t=n.find((function(n){return n.transactionId===e.transactionId}));Q=Q.concat(e),A.ZP.callBidWonBidder(e.adapterCode||e.bidder,e,n),t&&!t.deferBilling&&A.ZP.callBidBillableBidder(e)},setBidTargeting:function(e){A.ZP.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:function(){return Q},getAuctionStart:function(){return g},getTimeout:function(){return x},getAuctionId:function(){return N},getAuctionStatus:function(){return h},getAdUnits:function(){return b},getAdUnitCodes:function(){return I},getBidRequests:function(){return L},getBidsReceived:function(){return K},getNoBids:function(){return J},getNonBids:function(){return Y},getFPD:function(){return f},getMetrics:function(){return l}}}var _=(0,h.z3)("sync",(function(e,n,t){this.dispatch.call(null,e,n)}),"addBidResponse"),q=(0,h.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),D=(0,h.z3)("async",(function(e,n){n&&n()}),"bidsBackCallback");function x(e,n){n.timeToRespond>e.getTimeout()+s.vc.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function Z(e,n){!function(e){var n,t=!0===w.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(t||e.dealId)&&(n=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?te.index:t;if(!n)return{};var i=r.getBidRequest(n),o={},a=X(n.mediaType,e);$(o,a,n,i),e&&w.S.getOwn(e,E.k2.xn)&&($(o,w.S.ownSettingsFor(e),n,i),n.sendStandardTargeting=w.S.get(e,"sendStandardTargeting"));n.native&&(o=Object.assign({},o,(0,c.Ur)(n)));return o}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},n)}(n),(0,O.Bf)(n.metrics).timeSince("addBidResponse","addBidResponse.total"),C.j8(E.FP.BID_RESPONSE,n),e.addBidReceived(n),x(e,n)}function H(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.index,u=void 0===o?te.index:o,c=!0,d=(0,a.Z)(u.getMediaTypes({requestId:n.originalRequestId||n.requestId,transactionId:n.transactionId}),"video"),f=d&&(0,a.Z)(d,"context"),l=d&&(0,a.Z)(d,"useCacheKey");s.vc.getConfig("cache.url")&&(l||f!==b.gZ)&&(!n.videoCacheKey||s.vc.getConfig("cache.ignoreBidderCacheKey")?(c=!1,K(e,n,t,d)):n.vastUrl||((0,r.H)("videoCacheKey specified but not required vastUrl for video bid"),c=!1)),c&&(Z(e,n),t())}var F,M,z=function(e){var n,t,r=null===(n=te.index.getAdUnit(e))||void 0===n?void 0:n.nativeOrtbRequest,i=null===(t=e.native)||void 0===t?void 0:t.ortb;if(r&&i){var o=(0,c.zq)(i,r);Object.assign(e.native,o)}},W=function(e){!function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.O,r={puts:e.map(l)};t(s.vc.getConfig("cache.timeout"))(s.vc.getConfig("cache.url"),g(n),JSON.stringify(r),{contentType:"text/plain",withCredentials:!0})}(e.map((function(e){return e.bidResponse})),(function(n,t){t.forEach((function(t,i){var o,a=e[i],u=a.auctionInstance,c=a.bidResponse,d=a.afterBidAdded;n?((0,r.yN)("Failed to save to the video cache: ".concat(n,". Video bid must be discarded.")),x(u,c)):""===t.uuid?((0,r.yN)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),x(u,c)):(c.videoCacheKey=t.uuid,c.vastUrl||(c.vastUrl=(o=c.videoCacheKey,"".concat(s.vc.getConfig("cache.url"),"?uuid=").concat(o))),Z(u,c),d())}))}))};s.vc.getConfig("cache",(function(e){F="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,M="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));var L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,t=[[]],r=!1,i=function(e){return e()};return function(o,a,u){var c=M>0?e:i;t[t.length-1].length>=F&&t.push([]),t[t.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:u}),r||(r=!0,c((function(){t.forEach(n),t=[[]],r=!1}),M))}}(),K=(0,h.z3)("async",(function(e,n,t,r){L(e,n,t)}),"callPrebidCache");function G(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.index,o=void 0===i?te.index:i,a=o.getBidderRequest(e),u=o.getAdUnit(e),c=a&&a.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,r.AB)(),requestTimestamp:e.requestTimestamp||c,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:n}),null!=(null==u?void 0:u.ttlBuffer)&&(e.ttlBuffer=u.ttlBuffer),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}function V(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?te.index:r;C.j8(E.FP.BID_ADJUSTMENT,e);var a=(null===(n=i.getBidRequest(e))||void 0===n?void 0:n.renderer)||i.getAdUnit(e).renderer,c=e.mediaType,d=i.getMediaTypes(e),f=d&&d[c],l=f&&f.renderer,g=null;l&&l.url&&l.render&&(!0!==l.backupOnly||!e.renderer)?g=l:a&&a.url&&a.render&&(!0!==a.backupOnly||!e.renderer)&&(g=a),g&&(e.renderer=p.Th.install({url:g.url,config:g.options}),e.renderer.setRender(g.render));var v=J(e.mediaType,d,s.vc.getConfig("mediaTypePriceGranularity")),h=(0,u.D)(e.cpm,"object"===(0,o.Z)(v)?v:s.vc.getConfig("customPriceBucket"),s.vc.getConfig("currency.granularityMultiplier"));return e.pbLg=h.low,e.pbMg=h.med,e.pbHg=h.high,e.pbAg=h.auto,e.pbDg=h.dense,e.pbCg=h.custom,e}function J(e,n,t){if(e&&t){if(e===m.pX){var r=(0,a.Z)(n,"".concat(m.pX,".context"),"instream");if(t["".concat(m.pX,"-").concat(r)])return t["".concat(m.pX,"-").concat(r)]}return t[e]}}var Q=function(e){return function(n){var t=e||function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,t=void 0===n?te.index:n,r=J(e.mediaType,t.getMediaTypes(e),s.vc.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&r?"string"==typeof r?r:"custom":s.vc.getConfig("priceGranularity")}(n);return t===E.Ql.B7?n.pbAg:t===E.Ql.uN?n.pbDg:t===E.Ql.yE?n.pbLg:t===E.Ql.M2?n.pbMg:t===E.Ql.lj?n.pbHg:t===E.Ql.qN?n.pbCg:void 0}};function Y(e,n){return{key:e,val:"function"==typeof n?function(e,t){return n(e,t)}:function(e){return(0,r.NA)(e,n)}}}function X(e,n){var t=E.TD,i=Object.assign({},w.S.settingsFor(null));if(i[E.k2.xn]||(i[E.k2.xn]=function(){var e=E.TD;return[Y(e.BIDDER,"bidderCode"),Y(e.AD_ID,"adId"),Y(e.PRICE_BUCKET,Q()),Y(e.SIZE,"size"),Y(e.DEAL,"dealId"),Y(e.SOURCE,"source"),Y(e.FORMAT,"mediaType"),Y(e.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:""})),Y(e.ACAT,(function(e){return e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:""}))]}()),"video"===e){var o=i[E.k2.xn].slice();if(i[E.k2.xn]=o,[t.UUID,t.CACHE_ID].forEach((function(e){void 0===(0,y.sE)(o,(function(n){return n.key===e}))&&o.push(Y(e,"videoCacheKey"))})),s.vc.getConfig("cache.url")&&(!n||!1!==w.S.get(n,"sendStandardTargeting"))){var u=(0,r.en)(s.vc.getConfig("cache.url"));void 0===(0,y.sE)(o,(function(e){return e.key===t.CACHE_HOST}))&&o.push(Y(t.CACHE_HOST,(function(e){return(0,a.Z)(e,"adserverTargeting.".concat(t.CACHE_HOST))?e.adserverTargeting[t.CACHE_HOST]:u.hostname})))}}return i}function $(e,n,t,i){var o=n[E.k2.xn];return t.size=t.getSize(),(0,r.yi)(o,(function(o){var a=o.key,u=o.val;if(e[a]&&(0,r.yN)("The key: "+a+" is being overwritten"),(0,r.LQ)(u))try{u=u(t,i)}catch(e){(0,r.H)("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&a!==E.TD.DEAL&&a!==E.TD.ACAT||!(0,r.jH)(u)&&null!=u?e[a]=u:(0,r.PN)("suppressing empty key '"+a+"' from adserver targeting")})),e}function ee(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}function ne(e){Object.assign(this,{getAuction:function(n){var t=n.auctionId;if(null!=t)return e().find((function(e){return e.getAuctionId()===t}))},getAdUnit:function(n){var t=n.transactionId;if(null!=t)return e().flatMap((function(e){return e.getAdUnits()})).find((function(e){return e.transactionId===t}))},getMediaTypes:function(e){var n=e.transactionId,t=e.requestId;if(null!=t){var r=this.getBidRequest({requestId:t});if(null!=r&&(null==n||r.transactionId===n))return r.mediaTypes}else if(null!=n){var i=this.getAdUnit({transactionId:n});if(null!=i)return i.mediaTypes}},getBidderRequest:function(n){var t=n.requestId,r=n.bidderRequestId;if(null!=t||null!=r){var i=e().flatMap((function(e){return e.getBidRequests()}));return null!=r&&(i=i.filter((function(e){return e.bidderRequestId===r}))),null==t?i[0]:i.find((function(e){return e.bids&&null!=e.bids.find((function(e){return e.bidId===t}))}))}},getBidRequest:function(n){var t=n.requestId;if(null!=t)return e().flatMap((function(e){return e.getBidRequests()})).flatMap((function(e){return e.bids})).find((function(e){return e&&e.bidId===t}))}})}var te=function(){var e=[],n={};return n.addWinningBid=function(n){var t=(0,O.Bf)(n.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","render.pending"),t.timeBetween("requestBids","bidWon","render.e2e");var i=(0,y.sE)(e,(function(e){return e.getAuctionId()===n.auctionId}));i?(n.status=E.UE.fe,i.addWinningBid(n)):(0,r.yN)("Auction not found when adding winning bid")},n.getAllWinningBids=function(){return e.map((function(e){return e.getWinningBids()})).reduce(r.xH,[])},n.getBidsRequested=function(){return e.map((function(e){return e.getBidRequests()})).reduce(r.xH,[])},n.getNoBids=function(){return e.map((function(e){return e.getNoBids()})).reduce(r.xH,[])},n.getBidsReceived=function(){return e.map((function(e){if(e.getAuctionStatus()===j)return e.getBidsReceived()})).reduce(r.xH,[]).filter((function(e){return e}))},n.getAllBidsForAdUnitCode=function(n){return e.map((function(e){return e.getBidsReceived()})).reduce(r.xH,[]).filter((function(e){return e&&e.adUnitCode===n}))},n.getAdUnits=function(){return e.map((function(e){return e.getAdUnits()})).reduce(r.xH,[])},n.getAdUnitCodes=function(){return e.map((function(e){return e.getAdUnitCodes()})).reduce(r.xH,[]).filter(r.tT)},n.createAuction=function(n){var t=N(n);return function(n){e.push(n)}(t),t},n.findBidByAdId=function(n){return(0,y.sE)(e.map((function(e){return e.getBidsReceived()})).reduce(r.xH,[]),(function(e){return e.adId===n}))},n.getStandardBidderAdServerTargeting=function(){return X()[E.k2.xn]},n.setStatusForBids=function(t,r){var i=n.findBidByAdId(t);if(i&&(i.status=r),i&&r===E.UE.CK){var o=(0,y.sE)(e,(function(e){return e.getAuctionId()===i.auctionId}));o&&o.setBidTargeting(i)}},n.getLastAuctionId=function(){return e.length&&e[e.length-1].getAuctionId()},n.clearAllAuctions=function(){e.length=0},n.index=new ne((function(){return e})),n}()},5975:function(e,n,t){t.d(n,{S:function(){return g}});var r=t(5671),i=t(3144),o=t(265),a=t(4358),u=t(8640),c=t(5644);function d(e,n){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.add(e)}function s(e,n,t){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var f=new WeakSet;function l(e){return null==e?this.defaultScope:e}var g=new(function(){function e(n,t){(0,r.Z)(this,e),d(this,f),this.getSettings=n,this.defaultScope=t}return(0,i.Z)(e,[{key:"get",value:function(e,n){var t=this.getOwn(e,n);return void 0===t&&(t=this.getOwn(null,n)),t}},{key:"getOwn",value:function(e,n){return e=s(this,f,l).call(this,e),(0,o.Z)(this.getSettings(),"".concat(e,".").concat(n))}},{key:"getScopes",value:function(){var e=this;return Object.keys(this.getSettings()).filter((function(n){return n!==e.defaultScope}))}},{key:"settingsFor",value:function(e){return(0,a.Ee)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}},{key:"ownSettingsFor",value:function(e){return e=s(this,f,l).call(this,e),this.getSettings()[e]||{}}}]),e}())((function(){return(0,u.R)().bidderSettings||{}}),c.k2.zF)},9626:function(e,n,t){t.d(n,{m:function(){return o}});var r=t(4358);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.src,i=void 0===t?"client":t,o=n.bidder,a=void 0===o?"":o,u=n.bidId,c=n.transactionId,d=n.auctionId,s=i,f=e||0;function l(){switch(f){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}this.bidderCode=a,this.width=0,this.height=0,this.statusMessage=l(),this.adId=(0,r._d)(),this.requestId=u,this.transactionId=c,this.auctionId=d,this.mediaType="banner",this.source=s,this.getStatusCode=function(){return f},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,auctionId:this.auctionId}}}function o(e,n){return new i(e,n)}},3193:function(e,n,t){t.d(n,{FD:function(){return g},vc:function(){return b}});var r=t(4942),i=t(1002),o=t(3324),a=t(6463),u=t(4614),c=t(4358),d=t(265),s=t(5644);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var l="TRUE"===(0,c.rD)(s.f).toUpperCase(),g="random",p={};p[g]=!0,p.fixed=!0;var v=g,h={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},y="*";var b=function(){var e,n,t,s=[],g=null;function b(){function r(e){return d[e].val}function i(e,n){d[e].val=n}e={};var d={publisherDomain:{set:function(e){null!=e&&(0,c.yN)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),i("publisherDomain",e)}},priceGranularity:{val:h.MEDIUM,set:function(e){g(e)&&("string"==typeof e?i("priceGranularity",f(e)?e:h.MEDIUM):(0,c.PO)(e)&&(i("customPriceBucket",e),i("priceGranularity",h.CUSTOM),(0,c.ji)("Using custom price granularity")))}},customPriceBucket:{val:{},set:function(){}},mediaTypePriceGranularity:{val:{},set:function(e){null!=e&&i("mediaTypePriceGranularity",Object.keys(e).reduce((function(n,t){return g(e[t])?"string"==typeof e?n[t]=f(e[t])?e[t]:r("priceGranularity"):(0,c.PO)(e)&&(n[t]=e[t],(0,c.ji)("Using custom price granularity for ".concat(t))):(0,c.yN)("Invalid price granularity for media type: ".concat(t)),n}),{}))}},bidderSequence:{val:v,set:function(e){p[e]?i("bidderSequence",e):(0,c.yN)("Invalid order: ".concat(e,". Bidder Sequence was not set."))}},auctionOptions:{val:{},set:function(e){(function(e){if(!(0,c.PO)(e))return(0,c.yN)("Auction Options must be an object"),!1;for(var n=0,t=Object.keys(e);n2&&void 0!==arguments[2]?arguments[2]:{},i=n;if("string"!=typeof e&&(i=e,e=y,t=n||{}),"function"==typeof i){var o={topic:e,callback:i};return s.push(o),t.init&&i(e===y?E():(0,r.Z)({},e,E(e))),function(){s.splice(s.indexOf(o),1)}}(0,c.H)("listener must be a function")}function S(e){var n=Object.keys(e);s.filter((function(e){return(0,u.q9)(n,e.topic)})).forEach((function(n){n.callback((0,r.Z)({},n.topic,e[n.topic]))})),s.filter((function(e){return e.topic===y})).forEach((function(n){return n.callback(e)}))}function U(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{r(e),e.bidders.forEach((function(r){t[r]||(t[r]={}),Object.keys(e.config).forEach((function(i){var o=e.config[i];if((0,c.PO)(o)){var a=n?c.Ee:Object.assign;t[r][i]=a({},t[r][i]||{},o)}else t[r][i]=o}))}))}catch(e){(0,c.H)(e)}function r(e){if(!(0,c.PO)(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,c.PO)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function P(e,n){g=e;try{return n()}finally{R()}}function R(){g=null}return b(),{getCurrentBidder:function(){return g},resetBidder:R,getConfig:E,getAnyConfig:A,readConfig:k,readAnyConfig:I,setConfig:B,mergeConfig:function(e){if((0,c.PO)(e)){var n=(0,c.Ee)(m(),e);return B(function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:(0,g.AB)();this.generatedTime=n,b(this,E,O).call(this,e)}},{key:"getConsentData",value:function(){return(0,f.Z)(this,w)}}]),e}();function O(e){(0,l.Z)(this,A,!0),(0,l.Z)(this,w,e),(0,f.Z)(this,C).resolve(e)}var k=function(e){i(t,e);var n=v(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,d.Z)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(T),I=function(e){i(t,e);var n=v(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,d.Z)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,g.d8)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}}]),t}(T),B=function(e){i(t,e);var n=v(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,d.Z)(t,[{key:"getConsentMeta",value:function(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}}]),t}(T);var j,S,U,P=(j={},S={},U={},{register:function(e,n,t){t&&((j[n]=j[n]||{})[e]=t,S.hasOwnProperty(n)?S[n]!==t&&(S[n]=U):S[n]=t)},get:function(e){var n={modules:j[e]||{}};return S.hasOwnProperty(e)&&S[e]!==U&&(n.gvlid=S[e]),n}})},6463:function(e,n,t){t.d(n,{D:function(){return f},t:function(){return g}});var r=t(4614),i=t(4358),o=t(3193),a={buckets:[{max:5,increment:.5}]},u={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},d={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},s={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":l(e,a,t),med:""===r?"":l(e,u,t),high:""===r?"":l(e,c,t),auto:""===r?"":l(e,s,t),dense:""===r?"":l(e,d,t),custom:""===r?"":l(e,n,t)}}function l(e,n,t){var a="";if(!g(n))return a;var u=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),c=0,d=(0,r.sE)(n.buckets,(function(n){if(e>u.max*t){var r=n.precision;void 0===r&&(r=2),a=(n.max*t).toFixed(r)}else{if(e<=n.max*t&&e>=c*t)return n.min=c,n;c=n.max}}));return d&&(a=function(e,n,t){var r=void 0!==n.precision?n.precision:2,a=n.increment*t,u=n.min*t,c=Math.floor,d=o.vc.getConfig("cpmRoundingFunction");"function"==typeof d&&(c=d);var s,f,l=Math.pow(10,r+2),g=(e*l-u*l)/(a*l);try{s=c(g)*a+u}catch(e){f=!0}(f||"number"!=typeof s)&&((0,i.yN)("Invalid rounding function passed in config"),s=Math.floor(g)*a+u);return(s=Number(s.toFixed(10))).toFixed(r)}(e,d,t)),a}function g(e){if((0,i.xb)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(n=!1)})),n}},2021:function(e,n,t){t.d(n,{S1:function(){return l},j8:function(){return p},on:function(){return f},vw:function(){return g}});var r=t(4358),i=t(5644),o=Array.prototype.slice,a=Array.prototype.push,u=r.HA(i.FP,(function(e){return e})),c=i.aI,d=[],s=function(){var e={},n={};function t(n,t){r.ji("Emitting event for: "+n);var i=t[0]||{},o=i[c[n]],u=e[n]||{que:[]},s=r.HA(u,(function(e,n){return n})),f=[];d.push({eventType:n,args:i,id:o,elapsedTime:r.bd()}),o&&r.r3(s,o)&&a.apply(f,u[o].que),a.apply(f,u.que),r.yi(f,(function(e){if(e)try{e.apply(null,t)}catch(e){r.H("Error executing handler:","events.js",e)}}))}return n.on=function(n,t,i){if(function(e){return r.r3(u,e)}(n)){var o=e[n]||{que:[]};i?(o[i]=o[i]||{que:[]},o[i].que.push(t)):o.que.push(t),e[n]=o}else r.H("Wrong event name : "+n+" Valid event names :"+u)},n.emit=function(e){var n=o.call(arguments,1);t(e,n)},n.off=function(n,t,i){var o=e[n];r.xb(o)||r.xb(o.que)&&r.xb(o[i])||i&&(r.xb(o[i])||r.xb(o[i].que))||(i?r.yi(o[i].que,(function(e){var n=o[i].que;e===t&&n.splice(n.indexOf(e),1)})):r.yi(o.que,(function(e){var n=o.que;e===t&&n.splice(n.indexOf(e),1)})),e[n]=o)},n.get=function(){return e},n.addEvents=function(e){u=u.concat(e)},n.getEvents=function(){var e=[];return r.yi(d,(function(n){var t=Object.assign({},n);e.push(t)})),e},n}();r.u2(s.emit.bind(s));var f=s.on,l=s.off,g=(s.get,s.getEvents),p=s.emit;s.addEvents},3790:function(e,n,t){t.d(n,{A_:function(){return o},Iq:function(){return i},Qg:function(){return a}});var r=t(4358),i=["dooh","app","site"];function o(e){return function(n){return i.reduce((function(t,i){return a(n,i)&&(null!=t?((0,r.yN)("".concat(e," specifies both '").concat(t,"' and '").concat(i,"'; dropping the latter.")),delete n[i]):t=i),t}),null),n}}function a(e,n){return null!=e[n]&&Object.keys(e[n]).length>0}},8196:function(e,n,t){t.d(n,{W:function(){return o}});var r=t(4358),i=(0,t(5164).eA)(),o=(0,r.HP)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!i.cookiesAreEnabled())return e;var n,t,o=e.split(".");if(2===o.length)return e;var a=-2,u="_rdc".concat(Date.now()),c="writeable";do{n=o.slice(a).join(".");var d=new Date((0,r.AB)()+1e4).toUTCString();i.setCookie(u,c,d,"Lax",n,void 0);var s=i.getCookie(u,void 0);s===c?(t=!1,i.setCookie(u,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(a+=-1,t=Math.abs(a)<=o.length)}while(t);return n}))},2797:function(e,n,t){t.d(n,{Bx:function(){return g},Cd:function(){return d},IF:function(){return p},bA:function(){return l},v5:function(){return s},z3:function(){return u}});var r=t(9062),i=t(1432),o=t.n(i),a=t(8792),u=o()({ready:o().SYNC|o().ASYNC|o().QUEUE}),c=(0,a.P)();u.ready=function(){var e=u.ready;return function(){try{return e.apply(u,arguments)}finally{c.resolve()}}}();var d=c.promise,s=u.get;var f={};function l(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.postInstallAllowed,o=void 0!==i&&i;u("async",(function(t){t.forEach((function(e){return n.apply(void 0,(0,r.Z)(e))})),o&&(f[e]=n)}),e)([])}function g(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(o.img.ext={aspectratios:s})}else(0,u.H)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,u.H)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,u.U)(r.sizes[0])&&(0,u.U)(r.sizes[1])?(o.img.w=r.sizes[0],o.img.h=r.sizes[1],delete o.img.hmin,delete o.img.wmin):(0,u.H)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===t?o.title={len:r.len||140}:"ext"===t&&(o.ext=r,delete o.required);n.assets.push(o)}else(0,u.H)("Unrecognized native asset code: ".concat(t,". Asset will be ignored."));return n}(e.nativeParams))}))}function j(e){var n=e.assets;if(!Array.isArray(n)||0===n.length)return(0,u.H)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",n),!1;var t=n.map((function(e){return e.id}));return n.length!==new Set(t).size||t.some((function(e){return e!==parseInt(e,10)}))?((0,u.H)("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,u.H)("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):n.every((function(e){return function(e){if(!(0,u.PO)(e))return(0,u.H)("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!(0,u.hj)(e.img.w)&&!(0,u.hj)(e.img.wmin))return(0,u.H)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,u.hj)(e.img.h)&&!(0,u.hj)(e.img.hmin))return(0,u.H)("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!(0,u.hj)(e.title.len))return(0,u.H)("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!(0,u.hj)(e.data.type))return(0,u.H)("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,u.hj)(e.video.minduration)&&(0,u.hj)(e.video.maxduration)))return(0,u.H)("video asset is not properly configured"),!1;return!0}(e)}))}function S(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?d.K.index:r,o=i.getAdUnit(e);if(!o)return!1;var a=o.nativeOrtbRequest,u=(null===(n=e.native)||void 0===n?void 0:n.ortb)||H(e.native,a);return U(u,a)}function U(e,n){if(!(0,a.Z)(e,"link.url"))return(0,u.H)("native response doesn't have 'link' property. Ortb response: ",e),!1;var t=n.assets.filter((function(e){return 1===e.required})).map((function(e){return e.id})),r=e.assets.map((function(e){return e.id})),i=t.every((function(e){return(0,c.q9)(r,e)}));return i||(0,u.H)("didn't receive a bid with all required assets. Required ids: ".concat(t,", but received ids in response: ").concat(r)),i}function P(e,n){var t=n.native.ortb||Z(n.native);return"click"===e.action?function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetchURL,r=void 0===t?u.hq:t;if(n){var i,o=(e.assets||[]).filter((function(e){return e.link})).reduce((function(e,n){return e[n.id]=n.link,e}),{}),a=(null===(i=e.link)||void 0===i?void 0:i.clicktrackers)||[],c=o[n],d=a;c&&(d=c.clicktrackers||[]),d.forEach((function(e){return r(e)}))}else{var s;((null===(s=e.link)||void 0===s?void 0:s.clicktrackers)||[]).forEach((function(e){return r(e)}))}}(t,null==e?void 0:e.assetId):function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.runMarkup,r=void 0===t?function(e){return(0,u.$8)(e)}:t,i=n.fetchURL,o=void 0===i?u.hq:i,a=(e.eventtrackers||[]).filter((function(e){return e.event===k})).reduce((function(e,n){return O.hasOwnProperty(n.method)&&e[O[n.method]].push(n.url),e}),{img:[],js:[]}),c=a.img,d=a.js;e.imptrackers&&(c=c.concat(e.imptrackers));c.forEach((function(e){return o(e)})),d=d.map((function(e){return'