/*15.5.24*/ if(window.__gaprHAS=function(){return window.__gapr},window.__consHAS=function(){return window.__cons},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 l,t={20265:function(e,s,t){function o(e,s,t,o,i){for(s=s.split?s.split("."):s,o=0;o>>0,r=0;if(s)t=s;else{for(;re.length)&&(s=e.length);for(var t=0,o=new Array(s);to;r--)l[r]=l[r-1];l[r]=[s,t,o]},p.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(s,{a:s}),s},p.d=function(e,s){for(var t in s)p.o(s,t)&&!p.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:s[t]})},p.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),p.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var l={25602:0};function e(e,s){var t,o,i,r=s[0],n=s[1],a=s[2],c=0;if(r.some(function(e){return 0!==l[e]})){for(t in n)p.o(n,t)&&(p.m[t]=n[t]);a&&(i=a(p))}for(e&&e(s);ce.length)&&(s=e.length);for(var t=0,o=new Array(s);t=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:s}}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 i,r=!0,n=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){n=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(n)throw i}}}}(e.paths);try{for(s.s();!(i=s.n()).done;){var t=(0,l.Z)(i.value,2),o=t[0],i=t[1],t=null==o?n:(0,p.Z)(n,o);if(a.push(e.run(n,o,t,i,c.bind(null,e))),!1===r[e.name])return}}catch(e){s.e(e)}finally{s.f()}}}),a.filter(function(e){return null!=e})}}function m(s){for(var e=arguments.length,t=new Array(1e.length)&&(s=e.length);for(var t=0,o=new Array(s);t=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:s}}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 i,r=!0,n=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){n=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(n)throw i}}}}(l(e));try{for(i.s();!(a=i.n()).done;){var r=(0,u.Z)(a.value,3),n=r[0],a=r[1],r=r[2];if(t!==n&&o)break;t=n;r=function(e,s,t,o){var i;try{i=t(o)}catch(t){c.logError("Exception in rule ".concat(s," for '").concat(e,"'"),t),i={allow:!1,reason:t}}return i&&Object.assign({activity:e,name:s,component:o[d.JR]},i)}(e,a,r,s);if(r){if(!r.allow)return p(r),!1;o=r}}}catch(e){i.e(e)}finally{i.f()}return o&&p(o),!0}]}(),t=(0,u.Z)(t,2),i=t[0],r=t[1]},13667:function(e,s,t){t.d(s,{E$:function(){return k},Lj:function(){return C},XD:function(){return A},XF:function(){return S},oc:function(){return I},tV:function(){return R}});var o=t(4942),c=t(64358),a=t(20265),l=t(52021),p=t(62200),u=t(3193),i=t(35706),r=t(24679),d=t(78653),g=t(88099),s=t(92797),n=t(70059),f=p.FP.AD_RENDER_FAILED,m=p.FP.AD_RENDER_SUCCEEDED,v=p.FP.STALE_RENDER,h=p.FP.BID_WON,y=p.q_.EXCEPTION;function w(e){var s=e.reason,t=e.message,o=e.bid,e=e.id,s={reason:s,message:t};o&&(s.bid=o,s.adId=o.adId),e&&(s.adId=e),(0,c.logError)("Error rendering ad (id: ".concat(e,"): ").concat(t)),l.emit(f,s)}function b(e){var s=e.doc,t=e.bid,e=e.id,s={doc:s};t&&(s.bid=t),e&&(s.adId=e),l.emit(m,s)}function I(e,s){switch(e.event){case p.FP.AD_RENDER_FAILED:w({bid:s,id:s.adId,reason:e.info.reason,message:e.info.message});break;case p.FP.AD_RENDER_SUCCEEDED:b({doc:null,bid:s,id:s.adId});break;default:(0,c.logError)("Received event request for unsupported event: '".concat(e.event,"' (adId: '").concat(s.adId,"')"))}}function k(e,s,t){var o=t.resizeFn,t=t.fireTrackers,t=void 0===t?n.e6:t;"resizeNativeHeight"===e.action?o(e.width,e.height):t(e,s)}var P=(0,o.Z)({},p.X3.EVENT,I);P[p.X3.NATIVE]=k;var C=(0,s.z3)("sync",function(e,s){var t=e.ad,o=e.adUrl,i=e.cpm,r=e.originalCpm,n=e.width,e=e.height,s={AUCTION_PRICE:r||i,CLICKTHROUGH:(null==s?void 0:s.clickUrl)||""};return{ad:(0,c.replaceMacros)(t,s),adUrl:(0,c.replaceMacros)(o,s),width:n,height:e}}),S=(0,s.z3)("sync",function(e){var s=e.renderFn,t=e.resizeFn,o=e.bidResponse,e=e.options;o.mediaType!==r.pX?(e=C(o,e),s(Object.assign({adId:o.adId},e)),s=e.width,e=e.height,null!=(null!=s?s:e)&&t(s,e)):w({reason:p.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:o,id:o.adId})});function A(e){var s=e.renderFn,t=e.resizeFn,o=e.adId,i=e.options,r=e.bidResponse,n=e.doc;if(null!=r){if(r.status!==p.UE.RENDERED||((0,c.logWarn)("Ad id ".concat(o," has been rendered before")),l.emit(v,r),!(0,a.Z)(u.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{S({renderFn:s,resizeFn:t,bidResponse:r,options:i,doc:n})}catch(e){w({reason:p.q_.EXCEPTION,message:e.message,id:o,bid:r})}d.K.addWinningBid(r),l.emit(h,r)}}else w({reason:p.q_.CANNOT_FIND_AD,message:"Cannot find ad '".concat(o,"'"),id:o})}function R(t,o,e){var i;function r(e,s){w(Object.assign({id:o,bid:i},{reason:e,message:s}))}function s(e,s){t.defaultView&&t.defaultView.frameElement&&(e&&(t.defaultView.frameElement.width=e),s&&(t.defaultView.frameElement.height=s))}var n,a=(n={resizeFn:s},function(e,s,t){P.hasOwnProperty(e)&&P[e](s,t,n)});try{o&&t?(i=d.K.findBidByAdId(o),t!==document||(0,c.inIframe)()?A({renderFn:function(s){s.ad?(t.write(s.ad),t.close(),b({doc:t,bid:i,adId:i.adId})):(0,g.W)(i).then(function(e){return e(s,{sendMessage:function(e,s){return a(e,s,i)},mkFrame:c.createIframe},t.defaultView)}).then(function(){return b({doc:t,bid:i,adId:i.adId})},function(e){r((null==e?void 0:e.reason)||p.q_.EXCEPTION,null==e?void 0:e.message),null!=e&&e.stack&&(0,c.logError)(e)});var e=document.createComment("Creative ".concat(i.creativeId," served by ").concat(i.bidder," Prebid.js Header Bidding"));(0,c.insertElement)(e,t,"html")},resizeFn:s,adId:o,options:{clickUrl:null==e?void 0:e.clickThrough},bidResponse:i,doc:t}):r(p.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document.")):r(p.q_.MISSING_DOC_OR_ADID,"missing ".concat(o?"doc":"adId"))}catch(t){r(y,t.message)}}S.before(function(e,s){var t=s.bidResponse,o=s.doc;(0,i.Pd)(t.renderer)?((0,i._U)(t.renderer,t,o),b({doc:o,bid:t,id:t.adId}),e.bail()):e(s)},100)},54284:function(e,s,t){t.d(s,{W:function(){return r}});var s=t(78640),o=t(64358),i=(0,s.R)();function r(s,t){i.adServers=i.adServers||{},i.adServers[s]=i.adServers[s]||{},Object.keys(t).forEach(function(e){i.adServers[s][e]?(0,o.logWarn)("Attempting to add an already registered function property ".concat(e," for AdServer ").concat(s,".")):i.adServers[s][e]=t[e]})}},48525:function(e,s,t){function o(e){var s=e;return{callBids:function(){},setBidderCode:function(e){s=e},getBidderCode:function(){return s}}}t.d(s,{Z:function(){return o}})},93304:function(e,s,t){t.d(s,{qJ:function(){return E},ZP:function(){return V},JO:function(){return F},uV:function(){return B},Ct:function(){return z},O6:function(){return O},_x:function(){return L}});var i=t(42982),c=t(70885),r=t(4942),y=t(64358),p=t(20265),v=t(70059),u=t(14699),w=t(48928),b=t(3193),o=t(92797),h=t(34614),d={};function I(e,s,t){t=t,e=d[e]=d[e]||{bidders:{}},e=t?e.bidders[t]=e.bidders[t]||{}:e;return e[s]=(e[s]||0)+1,e[s]}var k=t(25102),P=t(34516),C=t(52021),S=t(62200),A=t(99128),l=t(78653),R=t(9633),s=t(50571),D=t(74947),n=t(16310),t=t(41087);function a(s,e){var t,o=Object.keys(s);return Object.getOwnPropertySymbols&&(t=Object.getOwnPropertySymbols(s),e&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})),o.push.apply(o,t)),o}function x(s){for(var e=1;ei&&(o=!1)),!o}),o&&e.run(),o}function r(e,s){void 0===e[s]?e[s]=1:e[s]++}i(e)||((0,M.logWarn)("queueing auction due to limited endpoint capacity"),$.push(e))}return q.on(V.FP.SEAT_NON_BID,function(e){e.auctionId===v&&(e=e.seatnonbid,A=A.concat(e))}),{addBidReceived:function(e){P=P.concat(e)},addBidRejected:function(e){b=b.concat(e)},addNoBid:function(e){C=C.concat(e)},callBids:function(){a="started",s=Date.now();var e=d.measureTime("requestBids.makeRequests",function(){return Z.ZP.makeBidRequests(g,s,v,h,f,u,d)});(0,M.logInfo)("Bids Requested for Auction with id: ".concat(v),e),d.checkpoint("callBids"),e.length<1?((0,M.logWarn)("No valid bid requests returned for auction"),x()):oe.call({dispatch:E,context:this},e)},addWinningBid:function(s){var e=r.find(function(e){return e.adUnitId===s.adUnitId});S=S.concat(s),(0,M.callBurl)(s),Z.ZP.callBidWonBidder(s.adapterCode||s.bidder,s,r),e&&!e.deferBilling&&Z.ZP.callBidBillableBidder(s)},setBidTargeting:function(e){Z.ZP.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:function(){return S},getAuctionStart:function(){return s},getAuctionEnd:function(){return i},getTimeout:function(){return h},getAuctionId:function(){return v},getAuctionStatus:function(){return a},getAdUnits:function(){return g},getAdUnitCodes:function(){return m},getBidRequests:function(){return k},getBidsReceived:function(){return P},getNoBids:function(){return C},getNonBids:function(){return A},getFPD:function(){return u},getMetrics:function(){return d},end:w.promise}}var se=(0,s.z3)("sync",function(e,s,t){this.dispatch.call(null,e,s)},"addBidResponse"),te=(0,s.z3)("sync",function(e){return e},"responsesReady"),oe=(0,s.z3)("sync",function(e){this.dispatch.call(this.context,e)},"addBidderRequests"),ie=(0,s.z3)("async",function(e,s){s&&s()},"bidsBackCallback");function re(e,s){var t,o,i;t=s,i=!0===r.S.get(t.bidderCode,"allowZeroCpmBids")?0<=t.cpm:0=p&&a.push([]),a[a.length-1].push({auctionInstance:e,bidResponse:s,afterBidAdded:t}),c||(c=!0,o(function(){a.forEach(n),c=!(a=[[]])},u))}}(),ne=(0,s.z3)("async",function(e,s,t,o){c(e,s,t)},"callPrebidCache");function ae(e,s,t){if(e&&t){if(e===z.pX){s=(0,U.Z)(s,"".concat(z.pX,".context"),"instream");if(t["".concat(z.pX,"-").concat(s)])return t["".concat(z.pX,"-").concat(s)]}return t[e]}}var d=function(e){var s=(1e.length)&&(s=e.length);for(var t=0,o=new Array(s);t=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:s}}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 i,r=!0,n=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){n=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(n)throw i}}}}(c);try{for(s.s();!(t=s.n()).done;){var t=t.value;if(t.getAuctionId()===e)return t}}catch(e){s.e(e)}finally{s.f()}}function e(){return c.toArray().flatMap(function(e){return e.getBidsReceived()})}return l.addWinningBid=function(e){var s=(0,d.Bf)(e.metrics);s.checkpoint("bidWon"),s.timeBetween("auctionEnd","bidWon","render.pending"),s.timeBetween("requestBids","bidWon","render.e2e");s=o(e.auctionId);s?(e.status=u.UE.RENDERED,s.addWinningBid(e)):(0,r.logWarn)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:function(e){return e.getAuctionStatus()===n.mv}},getAdUnitCodes:{post:r.uniques}}).forEach(function(e){var s=(0,p.Z)(e,2),t=s[0],e=s[1],s=e.name,o=void 0===s?t:s,i=e.pre,r=e.post,n=null==i?function(e){return e[o]()}:function(e){return i(e)?e[o]():[]},a=null==r?function(e){return e}:function(e){return e.filter(r)};l[t]=function(){return a(c.toArray().flatMap(n))}}),l.getAllBidsForAdUnitCode=function(s){return e().filter(function(e){return e&&e.adUnitCode===s})},l.createAuction=function(e){e=(0,n.vO)(e);return c.add(e),e},l.findBidByAdId=function(s){return e().find(function(e){return e.adId===s})},l.getStandardBidderAdServerTargeting=function(){return(0,n.LX)()[u.k2.ADSERVER_TARGETING]},l.setStatusForBids=function(e,s){var t,e=l.findBidByAdId(e);e&&(e.status=s),e&&s===u.UE.BID_TARGETING_SET&&(t=o(e.auctionId))&&t.setBidTargeting(e)},l.getLastAuctionId=function(){var e=c.toArray();return e.length&&e[e.length-1].getAuctionId()},l.clearAllAuctions=function(){c.clear()},l.index=new a(function(){return c.toArray()}),l}()},8833:function(e,s,t){t.d(s,{N:function(){return n},l:function(){return a}});var s=t(3193),o=t(64358),i=1,r=[];function n(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:i)}function a(e){r.push(e)}s.vc.getConfig("ttlBuffer",function(e){"number"==typeof e.ttlBuffer?i!==(i=e.ttlBuffer)&&r.forEach(function(e){return e(i)}):(0,o.logError)("Invalid value for ttlBuffer",e.ttlBuffer)})},55975:function(e,s,t){t.d(s,{S:function(){return p}});var i=t(15671),s=t(43144),o=t(20265),r=t(64358),n=t(78640),t=t(62200);function a(e,s,t){if(!s.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var c=new WeakSet;function l(e){return null==e?this.defaultScope:e}var p=((0,s.Z)(u,[{key:"get",value:function(e,s){e=this.getOwn(e,s);return void 0===e&&(e=this.getOwn(null,s)),e}},{key:"getOwn",value:function(e,s){return e=a(this,c,l).call(this,e),(0,o.Z)(this.getSettings(),"".concat(e,".").concat(s))}},{key:"getScopes",value:function(){var s=this;return Object.keys(this.getSettings()).filter(function(e){return e!==s.defaultScope})}},{key:"settingsFor",value:function(e){return(0,r.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}},{key:"ownSettingsFor",value:function(e){return e=a(this,c,l).call(this,e),this.getSettings()[e]||{}}}]),new u(function(){return(0,n.R)().bidderSettings||{}},t.k2.BD_SETTING_STANDARD));function u(e,s){var t,o;(0,i.Z)(this,u),t=this,o=c,function(){if(o.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(),o.add(t),this.getSettings=e,this.defaultScope=s}},69626:function(e,s,t){t.d(s,{m:function(){return i}});var c=t(64358);function o(e){var s=1s.max?e:s},{max:0}),r=0,p=(0,n.sE)(e.buckets,function(e){if(t>i.max*l){var s=e.precision;void 0===s&&(s=2),o=(e.max*l).toFixed(s)}else{if(t<=e.max*l&&r*l<=t)return e.min=r,e;r=e.max}});return p&&(o=function(e){var s=void 0!==p.precision?p.precision:2,t=p.increment*l,o=p.min*l,i=Math.floor,r=d.vc.getConfig("cpmRoundingFunction");"function"==typeof r&&(i=r);var n,a,r=Math.pow(10,s+2),c=(e*r-o*r)/(t*r);try{n=i(c)*t+o}catch(e){a=!0}return!a&&"number"==typeof n||((0,u.logWarn)("Invalid rounding function passed in config"),n=Math.floor(c)*t+o),(n=Number(n.toFixed(10))).toFixed(s)}(t)),o}function g(e){if((0,u.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var s=!0;return e.buckets.forEach(function(e){e.max&&e.increment||(s=!1)}),s}},88099:function(e,s,t){t.d(s,{W:function(){return c},m:function(){return a}});var o,i=t(68792),r=t(64358),n=t(68304),a=(0,t(92797).z3)("sync",function(e){return n._}),c=(o={},function(e){var t=a(e);return o.hasOwnProperty(t)||(o[t]=new i.Z(function(e){var s=(0,r.createInvisibleIframe)();s.srcdoc="