if (window.owpbjs && window.PWT) { console.log('DEBUG - for identity only profile, detected duplicate owpbjs and pwt namespaces. Exiting Identity Hub'); } else {/* prebid.js v6.18.0Updated : 2022-09-06*//*! For license information please see prebid-core.js.LICENSE.txt */!function(){var e,n={4877:function(e,n,t){"use strict";t.d(n,{Pd:function(){return s},Th:function(){return c},_U:function(){return d}});var r=t(6996),i=t(9853),o=t(265),a=t(1879),u="outstream";function c(e){var n=this,t=e.url,o=e.config,a=e.id,c=e.callback,s=e.loaded,d=e.adUnitCode;this.url=t,this.config=o,this.handlers={},this.id=a,this.loaded=s,this.cmd=[],this.push=function(e){"function"==typeof e?n.loaded?e.call():n.cmd.push(e):(0,i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=c||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.logWarn)("No render function was provided, please use .setRender on the renderer")};f(d)?((0,i.logWarn)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(d)),o()):(this.cmd.unshift(o),(0,r.B)(t,u,this.callback))}.bind(this)}function s(e){return!(!e||!e.url)}function d(e,n){e.render(n)}function f(e){var n=owpbjs.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),u=(0,o.Z)(t,"mediaTypes.video.renderer"),c=!!(u&&u.url&&u.render);return!!(i&&!0!==r.backupOnly||c&&!0!==u.backupOnly)}c.install=function(e){return new c({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},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){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.logMessage)("Prebid Renderer event for id ".concat(n," type ").concat(t))},c.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.logError)("Error processing Renderer command: ",e)}}},7263:function(e,n,t){"use strict";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}}},2801:function(e,n,t){"use strict";function r(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}t.d(n,{Z:function(){return r}})},7602:function(e,n,t){"use strict";t.d(n,{qJ:function(){return G},VP:function(){return X},ZP:function(){return re},JO:function(){return Y},rp:function(){return J},uV:function(){return ee},Ct:function(){return ne},nX:function(){return Q}});var r=t(9853),i=t(265),o=t(1269),a=t(9017),u=t(1609),c=t(5755),s=t(8962),d=t(3494),f=t(1879),l=t(7263),g=t(2661);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function v(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}function y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=m(e);if(n){var i=m(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return h(this,t)}}function h(e,n){if(n&&("object"===p(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function E(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(e,n){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:(0,r.timestamp)();this.generatedTime=n,I(this,R).call(this,e)}},{key:"getConsentData",value:function(){return I(this,B)}}]),e}(),j=function(e){v(t,e);var n=b(t);function t(){return E(this,t),n.apply(this,arguments)}return A(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(_),k=function(e){v(t,e);var n=b(t);function t(){return E(this,t),n.apply(this,arguments)}return A(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,r.isStr)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}}]),t}(_);function N(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 P(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?ee:r;if(null==n)return e;var o=i(n);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit"),J=new k,Q=new j,X={getCoppa:function(){return!!s.vc.getConfig("coppa")}},$=(0,d.z3)("sync",(function(e,n){return(0,o.UB)(e,n)}),"setupAdUnitMediaTypes");function ee(e){(0,r.isArray)(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 ne=(0,d.z3)("sync",(function(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.getS2SBidders,a=void 0===o?ee:o,u=a(n);return(0,r.getBidderCodes)(e).reduce((function(e,n){return e[u.has(n)?G.SERVER:G.CLIENT].push(n),e}),(q(t={},G.CLIENT,[]),q(t,G.SERVER,[]),t))}),"partitionBidders");function te(e,n,t){try{var i=L[e].getSpec();i&&i[n]&&"function"==typeof i[n]&&((0,r.logInfo)("Invoking ".concat(e,".").concat(n)),s.vc.runWithBidder(e,r.bind.call(i[n],i,t)))}catch(t){(0,r.logWarn)("Error calling ".concat(n," of ").concat(e))}}z.makeBidRequests=(0,d.z3)("sync",(function(e,n,t,i,o){F.emit(W.EVENTS.BEFORE_REQUEST_BIDS,e),(0,a.Fb)(e),e=$(e,o);var u=ne(e,V),c=u[G.CLIENT],d=u[G.SERVER];s.vc.getConfig("bidderSequence")===s.FD&&(c=(0,r.shuffle)(c));var l=(0,g.n)(),p=[];V.forEach((function(i){if(i&&i.enabled){var o=function(e,n){var t=(0,r.deepClone)(e);return t.forEach((function(e){e.bids=Y(e.bids,n).map((function(e){return e.bid_id=(0,r.getUniqueIdentifierStr)(),e}))})),t.filter((function(e){return 0!==e.bids.length}))}(e,i),a=(0,r.generateUUID)();d.forEach((function(e){var u=(0,r.getUniqueIdentifierStr)(),c={bidderCode:e,auctionId:t,bidderRequestId:u,uniquePbsTid:a,bids:Z({bidderCode:e,auctionId:t,bidderRequestId:u,adUnits:(0,r.deepClone)(o),src:W.S2S.SRC}),auctionStart:n,timeout:i.timeout,src:W.S2S.SRC,refererInfo:l};0!==c.bids.length&&p.push(c)})),o.forEach((function(e){var n=e.bids.filter((function(e){return(0,f.sE)(p,(function(n){return(0,f.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})))}))}}));var v=function(e){var n=(0,r.deepClone)(e);return n.forEach((function(e){e.bids=Y(e.bids,null)})),n.filter((function(e){return 0!==e.bids.length}))}(e);return c.forEach((function(e){var a=(0,r.getUniqueIdentifierStr)(),u={bidderCode:e,auctionId:t,bidderRequestId:a,bids:Z({bidderCode:e,auctionId:t,bidderRequestId:a,adUnits:(0,r.deepClone)(v),labels:o,src:"client"}),auctionStart:n,timeout:i,refererInfo:l},c=L[e];c||(0,r.logError)("Trying to make a request for bidder that does not exist: ".concat(e)),c&&u.bids&&0!==u.bids.length&&p.push(u)})),J.getConsentData()&&p.forEach((function(e){e.gdprConsent=J.getConsentData()})),Q.getConsentData()&&p.forEach((function(e){e.uspConsent=Q.getConsentData()})),p}),"makeBidRequests"),z.callBids=function(e,n,t,i,o,a,u){if(n.length){var d=(y=n.reduce((function(e,n){return e[Number(void 0!==n.src&&n.src===W.S2S.SRC)].push(n),e}),[[],[]]),2,function(e){if(Array.isArray(e))return e}(y)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(u)throw i}}return o}}(y)||function(e,n){if(e){if("string"==typeof e)return x(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(e,2):void 0}}(y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=d[0],l=d[1],g=[];l.forEach((function(e){for(var n=-1,t=0;t0?m.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),y.forEach((function(e){F.emit(W.EVENTS.BID_REQUESTED,P(P({},e),{},{tid:v}))})),s.callBids(b,l,t,(function(){return h.forEach((function(e){return e()}))}),n)}}else(0,r.logError)("missing "+e.adapter);p++}})),f.forEach((function(e){e.start=(0,r.timestamp)();var n=L[e.bidderCode];s.vc.runWithBidder(e.bidderCode,(function(){(0,r.logMessage)("CALLING BIDDER"),F.emit(W.EVENTS.BID_REQUESTED,e)}));var d=(0,c.O)(a,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),f=i.bind(e);try{s.vc.runWithBidder(e.bidderCode,r.bind.call(n.callBids,n,e,t,f,d,u,s.vc.callbackWithBidder(e.bidderCode)))}catch(n){(0,r.logError)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:n,bidRequest:e}),f()}}))}else(0,r.logWarn)("callBids executed with no bidRequests. Were they filtered by labels or sizing?");var y},z.videoAdapters=[],z.registerBidAdapter=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.supportedMediaTypes,o=void 0===i?[]:i;e&&n?"function"==typeof e.callBids?(L[n]=e,(0,f.q9)(o,"video")&&z.videoAdapters.push(n),(0,f.q9)(o,"native")&&a.Sg.push(n)):(0,r.logError)("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):(0,r.logError)("bidAdapter or bidderCode not specified")},z.aliasBidAdapter=function(e,n,t){if(void 0===L[n]){var i=L[e];if(void 0===i){var o=[];V.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,f.q9)(r,n)?K[n]=e:o.push(e)}})),o.forEach((function(e){(0,r.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var c,s=function(e){var n=[];return(0,f.q9)(z.videoAdapters,e)&&n.push("video"),(0,f.q9)(a.Sg,e)&&n.push("native"),n}(e);if(i.constructor.prototype!=Object.prototype)(c=new i.constructor).setBidderCode(n);else{var d=i.getSpec(),l=t&&t.gvlid,g=t&&t.skipPbsAliasing;c=(0,u.newBidder)(M({},d,{code:n,gvlid:l,skipPbsAliasing:g})),K[n]=e}z.registerBidAdapter(c,n,{supportedMediaTypes:s})}catch(n){(0,r.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,r.logMessage)('alias name "'+n+'" has been already specified.')},z.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code,i=e.gvlid;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,H[t]={adapter:n,gvlid:i}):(0,r.logError)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n analytics adapter must implement an enableAnalytics() function')):(0,r.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},z.enableAnalytics=function(e){(0,r.isArray)(e)||(e=[e]),(0,r._each)(e,(function(e){var n=H[e.provider];n&&n.adapter?n.adapter.enableAnalytics(e):(0,r.logError)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},z.getBidAdapter=function(e){return L[e]},z.getAnalyticsAdapter=function(e){return H[e]},z.callTimedOutBidders=function(e,n,t){n=n.map((function(n){return n.params=(0,r.getUserConfiguredParams)(e,n.adUnitCode,n.bidder),n.timeout=t,n})),n=(0,r.groupBy)(n,"bidder"),Object.keys(n).forEach((function(e){te(e,"onTimeout",n[e])}))},z.callBidWonBidder=function(e,n,t){n.params=(0,r.getUserConfiguredParams)(t,n.adUnitCode,n.bidder),l.f.incrementBidderWinsCounter(n.adUnitCode,n.bidder),te(e,"onBidWon",n)},z.callSetTargetingBidder=function(e,n){te(e,"onSetTargeting",n)},z.callBidViewableBidder=function(e,n){te(e,"onBidViewable",n)},z.callBidderError=function(e,n,t){te(e,"onBidderError",{error:n,bidderRequest:t})};var re=z},1609:function(e,n,t){"use strict";t.r(n),t.d(n,{getIabSubCategory:function(){return D},isValid:function(){return j},newBidder:function(){return O},preloadBidderMappingFile:function(){return R},processBidderRequests:function(){return B},registerBidder:function(){return C},registerSyncInner:function(){return U},storage:function(){return I}});var r=t(2801),i=t(7602),o=t(8962),a=t(1477),u=t(7112),c=t(9017),s=t(1929),d=t(5644),f=t(2319),l=t(1879),g=t(5755),p=t(9853),v=t(265),y=t(8265),b=t(3494),h=t(5849),m=t(4766);function E(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);ta.lastUpdated+24*r*60*60*1e3)&&(0,g.h)(t.url,{success:function(n){try{n=JSON.parse(n);var t={lastUpdated:(0,p.timestamp)(),mapping:n.mapping};I.setDataInLocalStorage(o,JSON.stringify(t))}catch(n){(0,p.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){(0,p.logError)("Failed to load ".concat(e," bidder translation file"))}})}catch(n){(0,p.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}}})),e.call(this,n)}function D(e,n){var t=i.ZP.getBidAdapter(e);if(t.getSpec().getMappingFileInfo){var r=t.getSpec().getMappingFileInfo(),o=r.localStorageKey?r.localStorageKey:t.getBidderCode(),a=I.getDataFromLocalStorage(o);if(a){try{a=JSON.parse(a)}catch(n){(0,p.logError)("Failed to parse ".concat(e," mapping data stored in local storage"))}return a.mapping[n]?a.mapping[n]:null}}}function _(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?m.K.index:r;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 o=i.getBidRequest(n),a=i.getMediaTypes(n),u=o&&o.sizes||a&&a.banner&&a.banner.sizes,c=(0,p.parseSizesInput)(u);if(1===c.length){var s=c[0].split("x"),d=E(s,2),f=d[0],l=d[1];return n.width=parseInt(f,10),n.height=parseInt(l,10),!0}return!1}function j(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?m.K.index:r;function o(){var e=Object.keys(n);return w.every((function(t){return(0,l.q9)(e,t)&&!(0,l.q9)([void 0,null],n[t])}))}function a(e){return"Invalid bid from ".concat(n.bidderCode,". Ignoring bid: ").concat(e)}return e?n?o()?"native"!==n.mediaType||(0,c.r4)(n,{index:i})?"video"!==n.mediaType||(0,s.Dn)(n,{index:i})?!("banner"===n.mediaType&&!_(e,n,{index:i})&&((0,p.logError)(a("Banner bids require a width and height")),1)):((0,p.logError)(a("Video bid does not have required vastUrl or renderer property")),!1):((0,p.logError)(a("Native bid missing some required properties.")),!1):((0,p.logError)(a("Bidder ".concat(n.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1):((0,p.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):((0,p.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}(0,b.v5)("checkAdUnitSetup").before(R)},6996:function(e,n,t){"use strict";t.d(n,{B:function(){return u}});var r=t(1879),i=t(9853),o={},a=["adloox","criteo","outstream","adagio","browsi","brandmetrics","justtag"];function u(e,n,t){if(n&&e){if((0,r.q9)(a,n))return o[e]?(t&&"function"==typeof t&&(o[e].loaded?t():o[e].callbacks.push(t)),o[e].tag):(o[e]={loaded:!1,tag:null,callbacks:[]},t&&"function"==typeof t&&o[e].callbacks.push(t),(0,i.logWarn)("module ".concat(n," is loading external JavaScript")),function(n,t){var r=document.createElement("script");return r.type="text/javascript",r.async=!0,o[e].tag=r,r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,t())}:r.onload=function(){t()},r.src=n,(0,i.insertElement)(r),r}(e,(function(){o[e].loaded=!0;try{for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,u=n.done;return function(n,c,s){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var f,l=d.method||(s?"POST":"GET"),g=document.createElement("a");g.href=n;var p="object"===a(c)&&null!==c?c:{success:function(){(0,i.logMessage)("xhr success")},error:function(e){(0,i.logError)("xhr error",null,e)}};if("function"==typeof c&&(p.success=c),(f=new window.XMLHttpRequest).onreadystatechange=function(){if(4===f.readyState){"function"==typeof u&&u(g.origin);var e=f.status;e>=200&&e<300||304===e?p.success(f.responseText,f):p.error(f.statusText,f)}},r.vc.getConfig("disableAjaxTimeout")||(f.ontimeout=function(){(0,i.logError)(" xhr timeout after ",f.timeout,"ms")}),"GET"===l&&s){var v=(0,i.parseUrl)(n,d);o(v.search,s),n=(0,i.buildUrl)(v)}f.open(l,n,!0),r.vc.getConfig("disableAjaxTimeout")||(f.timeout=e),d.withCredentials&&(f.withCredentials=!0),(0,i._each)(d.customHeaders,(function(e,n){f.setRequestHeader(n,e)})),d.preflight&&f.setRequestHeader("X-Requested-With","XMLHttpRequest"),f.setRequestHeader("Content-Type",d.contentType||"text/plain"),"function"==typeof t&&t(g.origin),"POST"===l&&s?f.send(s):f.send()}catch(e){(0,i.logError)("xhr construction",e),"object"===a(c)&&null!==c&&c.error(e)}}}},4892:function(e,n,t){"use strict";t.d(n,{D$:function(){return N},LX:function(){return W},RH:function(){return q},Yt:function(){return U},Yw:function(){return T},dg:function(){return M},e0:function(){return R},lU:function(){return j},mv:function(){return I},sq:function(){return _},vO:function(){return B}});var r=t(9853),i=t(265),o=t(5553),a=t(9017),u=t(905),c=t(4877),s=t(8962),d=t(7112),f=t(3494),l=t(1879),g=t(1929),p=t(8265),v=t(4766),y=t(9624);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0&&(e.cpm=t)}(e)}));var w={},C={},O=[];function B(e){var n,t,i,o,a=e.adUnits,u=e.adUnitCodes,c=e.callback,d=e.cbTimeout,f=e.labels,g=e.auctionId,p=a,y=f,b=u,h=[],B=[],_=[],N=g||(0,r.generateUUID)(),x=c,q=d,M=[],G=new Set;function W(){return{auctionId:N,timestamp:n,auctionEnd:t,auctionStatus:i,adUnits:p,adUnitCodes:b,labels:y,bidderRequests:h,noBids:_,bidsReceived:B,winningBids:M,timeout:q}}function F(e,n){if(n&&clearTimeout(o),void 0===t){var u=[];e&&((0,r.logMessage)("Auction ".concat(N," timedOut")),c=G,(u=h.map((function(e){return(e.bids||[]).filter((function(e){return!c.has(e.bidder)}))})).reduce(r.flatten,[]).map((function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId}}))).length&&S.emit(A.EVENTS.BID_TIMEOUT,u)),i=I,t=Date.now(),S.emit(A.EVENTS.AUCTION_END,W()),D(p,(function(){try{if(null!=x){var n=b,t=B.filter(r.bind.call(r.adUnitsFilter,this,n)).reduce(z,{});x.apply(owpbjs,[t,e,N]),x=null}}catch(e){(0,r.logError)("Error executing bidsBackHandler",null,e)}finally{u.length&&E.callTimedOutBidders(a,u,q);var i=s.vc.getConfig("userSync")||{};i.enableOverride||m(i.syncDelay)}}))}var c}function L(){s.vc.resetBidder(),(0,r.logInfo)("Bids Received for Auction with id: ".concat(N),B),i=I,F(!1,!0)}function K(e){G.add(e)}function V(e){var n=this;e.forEach((function(e){var n;n=e,h=h.concat(n)}));var t={},a={bidRequests:e,run:function(){var a,d;a=F.bind(null,!0),d=setTimeout(a,q),o=d,i=T,S.emit(A.EVENTS.AUCTION_INIT,W());var f=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,i=void 0===t?v.K.index:t,o=0,a=!1,u=new Set,c={},d={};function f(e,n){null==d[e]&&(d[e]=Promise.resolve()),d[e]=d[e].then((function(){return Promise.resolve(n).catch((function(){}))}))}function g(e,t){var r=e.timeout;(null==r||r>n.getTimeout())&&(r=n.getTimeout());var i=n.getAuctionStart()+r-Date.now(),o=d[e.bidderRequestId],a=d[""];(null!=o||null!=a)&&i>0?Promise.race([new Promise((function(e){return setTimeout(e,i)})),Promise.resolve(a).then((function(){return o}))]).then(t):t()}function p(){o--,a&&0===o&&e()}function y(e,t){c[t.requestId]=!0,o++;var r=P({adUnitCode:e,bid:t,auctionId:n.getAuctionId()});"video"===r.mediaType?k(n,r,p):(j(n,r),p())}function b(){var t=n.getBidRequests(),i=s.vc.getConfig("auctionOptions");if(u.add(this),i&&!(0,r.isEmpty)(i)){var d=i.secondaryBidders;d&&!t.every((function(e){return(0,l.q9)(d,e.bidderCode)}))&&(t=t.filter((function(e){return!(0,l.q9)(d,e.bidderCode)})))}a=t.every((function(e){return u.has(e)})),this.bids.forEach((function(e){c[e.bidId]||(n.addNoBid(e),S.emit(A.EVENTS.NO_BID,e))})),a&&0===o&&e()}return{addBidResponse:function(e,n){var t=i.getBidderRequest(n);f(t&&t.bidderRequestId||"",U.call({dispatch:y},e,n))},adapterDone:function(){g(this,b.bind(this))}}}(L,n);E.callBids(p,e,f.addBidResponse,f.adapterDone,{request:function(e,n){c(w,n),c(t,e),C[e]||(C[e]={SRA:!0,origin:n}),t[e]>1&&(C[e].SRA=!1)},done:function(e){w[e]--,O[0]&&u(O[0])&&O.shift()}},q,K)}};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===A.S2S.SRC?"s2s":e.bidderCode;return C[i]&&(!1===C[i].SRA&&(r=Math.min(e.bids.length,t)),w[C[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.logWarn)("queueing auction due to limited endpoint capacity"),O.push(a))}return{addBidReceived:function(e){B=B.concat(e)},addNoBid:function(e){_=_.concat(e)},executeCallback:F,callBids:function(){i="started",n=Date.now();var e=E.makeBidRequests(p,n,N,q,y);(0,r.logInfo)("Bids Requested for Auction with id: ".concat(N),e),e.length<1?((0,r.logWarn)("No valid bid requests returned for auction"),L()):R.call({dispatch:V,context:this},e)},addWinningBid:function(e){M=M.concat(e),E.callBidWonBidder(e.bidder,e,a)},setBidTargeting:function(e){E.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return M},getAuctionStart:function(){return n},getTimeout:function(){return q},getAuctionId:function(){return N},getAuctionStatus:function(){return i},getAdUnits:function(){return p},getAdUnitCodes:function(){return b},getBidRequests:function(){return h},getBidsReceived:function(){return B},getNoBids:function(){return _}}}var U=(0,f.z3)("sync",(function(e,n){this.dispatch.call(null,e,n)}),"addBidResponse"),R=(0,f.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),D=(0,f.z3)("async",(function(e,n){n&&n()}),"bidsBackCallback");function _(e,n){n.timeToRespond>e.getTimeout()+s.vc.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function j(e,n){var t,r,i;t=n,i=!0===y.S.get(t.bidderCode,"allowZeroCpmBids")?t.cpm>=0:t.cpm>0,t.bidderCode&&(i||t.dealId)&&(r=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?v.K.index:t;if(!n)return{};var i=r.getBidRequest(n),o={},u=W(n.mediaType,e);return F(o,u,n,i),e&&y.S.getOwn(e,A.JSON_MAPPING.ADSERVER_TARGETING)&&(F(o,y.S.ownSettingsFor(e),n,i),n.sendStandardTargeting=y.S.get(e,"sendStandardTargeting")),n.native&&(o=h({},o,(0,a.Ur)(n))),o}(t.bidderCode,t)),t.adserverTargeting=h(t.adserverTargeting||{},r),S.emit(A.EVENTS.BID_RESPONSE,n),e.addBidReceived(n),_(e,n)}function k(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.index,u=void 0===a?v.K.index:a,c=!0,d=(0,i.Z)(u.getMediaTypes({requestId:n.originalRequestId||n.requestId,transactionId:n.transactionId}),"video"),f=d&&(0,i.Z)(d,"context");s.vc.getConfig("cache.url")&&f!==g.gZ&&(!n.videoCacheKey||s.vc.getConfig("cache.ignoreBidderCacheKey")?(c=!1,N(e,n,t,d)):n.vastUrl||((0,r.logError)("videoCacheKey specified but not required vastUrl for video bid"),c=!1)),c&&(j(e,n),t())}var N=(0,f.z3)("async",(function(e,n,t,i){(0,u.h)([n],(function(i,o){i?((0,r.logWarn)("Failed to save to the video cache: ".concat(i,". Video bid must be discarded.")),_(e,n)):""===o[0].uuid?((0,r.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),_(e,n)):(n.videoCacheKey=o[0].uuid,n.vastUrl||(n.vastUrl=(0,u.z)(n.videoCacheKey)),j(e,n),t())}))}),"callPrebidCache");function P(e){var n=e.adUnitCode,t=e.bid,i=e.auctionId,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=a.index,d=void 0===u?v.K.index:u,f=d.getBidderRequest(t),l=f&&f.start||t.requestTimestamp,g=h({},t,{auctionId:i,responseTimestamp:(0,r.timestamp)(),requestTimestamp:l,cpm:parseFloat(t.cpm)||0,bidder:t.bidderCode,adUnitCode:n});g.timeToRespond=g.responseTimestamp-g.requestTimestamp,S.emit(A.EVENTS.BID_ADJUSTMENT,g);var p=d.getAdUnit(g).renderer,y=g.mediaType,m=d.getMediaTypes(g),E=m&&m[y],T=E&&E.renderer,I=null;T&&T.url&&T.render&&(!0!==T.backupOnly||!t.renderer)?I=T:p&&p.url&&p.render&&(!0!==p.backupOnly||!t.renderer)&&(I=p),I&&(g.renderer=c.Th.install({url:I.url}),g.renderer.setRender(I.render));var w=x(t.mediaType,m,s.vc.getConfig("mediaTypePriceGranularity")),C=(0,o.D)(g.cpm,"object"===b(w)?w:s.vc.getConfig("customPriceBucket"),s.vc.getConfig("currency.granularityMultiplier"));return g.pbLg=C.low,g.pbMg=C.med,g.pbHg=C.high,g.pbAg=C.auto,g.pbDg=C.dense,g.pbCg=C.custom,g}function x(e,n,t){if(e&&t){if(e===p.pX){var r=(0,i.Z)(n,"".concat(p.pX,".context"),"instream");if(t["".concat(p.pX,"-").concat(r)])return t["".concat(p.pX,"-").concat(r)]}return t[e]}}var q=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?v.K.index:t,i=x(e.mediaType,r.getMediaTypes(e),s.vc.getConfig("mediaTypePriceGranularity")),o="string"==typeof e.mediaType&&i?"string"==typeof i?i:"custom":s.vc.getConfig("priceGranularity");return o},M=function(e){return function(n){var t=e||q(n);return t===A.GRANULARITY_OPTIONS.AUTO?n.pbAg:t===A.GRANULARITY_OPTIONS.DENSE?n.pbDg:t===A.GRANULARITY_OPTIONS.LOW?n.pbLg:t===A.GRANULARITY_OPTIONS.MEDIUM?n.pbMg:t===A.GRANULARITY_OPTIONS.HIGH?n.pbHg:t===A.GRANULARITY_OPTIONS.CUSTOM?n.pbCg:void 0}};function G(e,n){return{key:e,val:"function"==typeof n?function(e,t){return n(e,t)}:function(e){return(0,r.getValue)(e,n)}}}function W(e,n){var t=A.TARGETING_KEYS,o=h({},y.S.settingsFor(null));if(o[A.JSON_MAPPING.ADSERVER_TARGETING]||(o[A.JSON_MAPPING.ADSERVER_TARGETING]=function(){var e=A.TARGETING_KEYS;return[G(e.BIDDER,"bidderCode"),G(e.AD_ID,"adId"),G(e.PRICE_BUCKET,M()),G(e.SIZE,"size"),G(e.DEAL,"dealId"),G(e.SOURCE,"source"),G(e.FORMAT,"mediaType"),G(e.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?e.meta.advertiserDomains[0]:""}))]}()),"video"===e){var a=o[A.JSON_MAPPING.ADSERVER_TARGETING].slice();if(o[A.JSON_MAPPING.ADSERVER_TARGETING]=a,[t.UUID,t.CACHE_ID].forEach((function(e){void 0===(0,l.sE)(a,(function(n){return n.key===e}))&&a.push(G(e,"videoCacheKey"))})),s.vc.getConfig("cache.url")&&(!n||!1!==y.S.get(n,"sendStandardTargeting"))){var u=(0,r.parseUrl)(s.vc.getConfig("cache.url"));void 0===(0,l.sE)(a,(function(e){return e.key===t.CACHE_HOST}))&&a.push(G(t.CACHE_HOST,(function(e){return(0,i.Z)(e,"adserverTargeting.".concat(t.CACHE_HOST))?e.adserverTargeting[t.CACHE_HOST]:u.hostname})))}}return o}function F(e,n,t,i){var o=n[A.JSON_MAPPING.ADSERVER_TARGETING];return t.size=t.getSize(),(0,r._each)(o,(function(o){var a=o.key,u=o.val;if(e[a]&&(0,r.logWarn)("The key: "+a+" is being overwritten"),(0,r.isFn)(u))try{u=u(t,i)}catch(e){(0,r.logError)("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&a!==A.TARGETING_KEYS.DEAL||!(0,r.isEmptyStr)(u)&&null!=u?e[a]=u:(0,r.logInfo)("suppressing empty key '"+a+"' from adserver targeting")})),e}function z(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}},4766:function(e,n,t){"use strict";t.d(n,{K:function(){return s}});var r=t(9853),i=t(4892),o=t(1879);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n1&&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,s=n.auctionId,d=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.getUniqueIdentifierStr)(),this.requestId=u,this.transactionId=c,this.auctionId=s,this.mediaType="banner",this.source=d,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)}},8962:function(e,n,t){"use strict";t.d(n,{FD:function(){return v},vc:function(){return m}});var r=t(5553),i=t(1879),o=t(9853),a=t(265),u=["fpd"];function c(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 s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n1&&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 a="fpd"===i?"ortb2":i,u="fpd"===i?S(e.config[i]):e.config[i];if((0,o.isPlainObject)(u)){var c=n?o.mergeDeep:Object.assign;t[r][a]=c({},t[r][a]||{},u)}else t[r][a]=u}))}))}catch(e){(0,o.logError)(e)}function r(e){if(!(0,o.isPlainObject)(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,o.isPlainObject)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function O(e,n){v=e;try{return n()}finally{B()}}function B(){v=null}return m(),{getCurrentBidder:function(){return v},resetBidder:B,getConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?(0,a.Z)(E(),e):E()}return I.apply(void 0,arguments)},readConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0],n=(0,o.deepClone)(E());return e?(0,a.Z)(n,e):n}return I.apply(void 0,arguments)},setConfig:T,mergeConfig:function(e){if((0,o.isPlainObject)(e)){var n=Object.keys(e).reduce((function(n,t){var r=E()[t]||{};return n[t]=(0,o.mergeDeep)(r,e[t]),n}),{});return T(function(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(t,u)))):n.push(e)})),n},getLegacyFpd:function(e){if("object"===d(e)){var n={};return Object.keys(e).forEach((function(t){var r="site"===t?"context":t;n[r]="context"===r||"user"===r?Object.keys(e[t]).filter((function(e){return"data"!==e})).reduce((function(n,r){return"ext"===r?(0,o.mergeDeep)(n,e[t][r]):(0,o.mergeDeep)(n,s({},r,e[t][r])),n}),{}):e[t]})),n}},getLegacyImpFpd:function(e){if("object"===d(e)){var n={};return(0,a.Z)(e,"ext.data")&&Object.keys(e.ext.data).forEach((function(t){"pbadslot"===t?(0,o.mergeDeep)(n,{context:{pbAdSlot:e.ext.data[t]}}):"adserver"===t?(0,o.mergeDeep)(n,{context:{adServer:e.ext.data[t]}}):(0,o.mergeDeep)(n,{context:{data:s({},t,e.ext.data[t])}})})),n}}}}()},5553:function(e,n,t){"use strict";t.d(n,{D:function(){return d},t:function(){return l}});var r=t(1879),i=t(9853),o={buckets:[{max:5,increment:.5}]},a={buckets:[{max:20,increment:.1}]},u={buckets:[{max:20,increment:.01}]},c={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 d(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":f(e,o,t),med:""===r?"":f(e,a,t),high:""===r?"":f(e,u,t),auto:""===r?"":f(e,s,t),dense:""===r?"":f(e,c,t),custom:""===r?"":f(e,n,t)}}function f(e,n,t){var i="";if(!l(n))return i;var o=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),a=0,u=(0,r.sE)(n.buckets,(function(n){if(e>o.max*t){var r=n.precision;void 0===r&&(r=2),i=(n.max*t).toFixed(r)}else{if(e<=n.max*t&&e>=a*t)return n.min=a,n;a=n.max}}));return u&&(i=function(e,n,t){var r=void 0!==n.precision?n.precision:2,i=n.increment*t,o=n.min*t,a=Math.pow(10,r+2),u=(e*a-o*a)/(i*a),c=Math.floor(u)*i+o;return(c=Number(c.toFixed(10))).toFixed(r)}(e,u,t)),i}function l(e){if((0,i.isEmpty)(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}},3636:function(e,n,t){"use strict";t.d(n,{$8:function(){return A},JI:function(){return l},gF:function(){return g},wt:function(){return T}});var r,i,o=t(8962),a=t(4892),u=t(3494),c=(0,t(9853).prefixLog)("DEBUG:"),s=c.logWarn,d=c.logMessage,f="owpbjs:debugging",l=[function(e){p(),function(e){r=E.bind(e),a.Yt.before(r,5),i=S.bind(e),a.e0.before(i,5)}(e)}],g=[p];function p(){a.Yt.getHooks({hook:r}).remove(),a.e0.getHooks({hook:i}).remove()}function v(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.vc.setConfig({debug:!0}),l.forEach((function(n){return n(e)})),d("bidder overrides enabled".concat(n?" from session":""))}function y(){g.forEach((function(e){return e()})),d("bidder overrides disabled")}function b(e,n,t){return!(!e.bidder||e.bidder===n)||!(!e.adUnitCode||e.adUnitCode===t)}function h(e,n){return Array.isArray(e)&&-1===e.indexOf(n)}function m(e,n,t){return Object.keys(e).filter((function(e){return-1===["adUnitCode","bidder"].indexOf(e)})).reduce((function(n,r){return d("bidder overrides changed '".concat(n.adUnitCode,"/").concat(n.bidderCode,"' ").concat(t,".").concat(r," from '").concat(n[r],".js' to '").concat(e[r],"'")),n[r]=e[r],n.isDebug=!0,n}),n)}function E(e,n,t){var r=this;h(r.bidders,t.bidderCode)?s("bidder '".concat(t.bidderCode,"' excluded from auction by bidder overrides")):(Array.isArray(r.bids)&&r.bids.forEach((function(e){b(e,t.bidderCode,n)||m(e,t,"bidder")})),e(n,t))}function S(e,n){var t=this,r=n.filter((function(e){return!h(t.bidders,e.bidderCode)||(s("bidRequest '".concat(e.bidderCode,"' excluded from auction by bidder overrides")),!1)}));Array.isArray(t.bidRequests)&&r.forEach((function(e){t.bidRequests.forEach((function(n){e.bids.forEach((function(t){b(n,e.bidderCode,t.adUnitCode)||m(n,t,"bidRequest")}))}))})),e(r)}var A=(0,u.z3)("sync",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.sessionStorage,r=void 0===t?window.sessionStorage:t;if(e.enabled)try{r.setItem(f,JSON.stringify(e))}catch(e){}else try{r.removeItem(f)}catch(e){}}));function T(e){var n;try{e=e||window.sessionStorage,n=JSON.parse(e.getItem(f))}catch(e){}n&&v(n,!0)}o.vc.getConfig("debugging",(function(e){return function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).sessionStorage,t=void 0===n?window.sessionStorage:n;A(e,{sessionStorage:t}),e.enabled?v(e):y()}(e.debugging)}))},2319:function(e,n,t){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t2&&void 0!==arguments[2]?arguments[2]:15,r=e.getHooks({hook:n});0===r.length&&e.before(n,t)}var d={};function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.postInstallAllowed,i=void 0!==r&&r;u("async",(function(t){t.forEach((function(e){return n.apply(void 0,o(e))})),i&&(d[e]=n)}),e)([])}function l(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?a.K.index:t;if(!(0,r.Z)(e,"native.clickUrl"))return!1;var u=i.getAdUnit(e).nativeParams;if(!u)return!0;var c=Object.keys(u).filter((function(e){return u[e].required})),s=Object.keys(e.native).filter((function(n){return e.native[n]}));return c.every((function(e){return(0,o.q9)(s,e)}))}function h(e,n){var t;return"click"===e.action?t=n.native&&n.native.clickTrackers:(t=n.native&&n.native.impressionTrackers,n.native&&n.native.javascriptTrackers&&(0,i.insertHtmlIntoIframe)(n.native.javascriptTrackers)),(t||[]).forEach(i.triggerPixel),e.action}function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?a.K.index:t,o={},u=i.getAdUnit(e);(0,r.Z)(u,"nativeParams.rendererUrl")?e.native.rendererUrl=A(u.nativeParams.rendererUrl):(0,r.Z)(u,"nativeParams.adTemplate")&&(e.native.adTemplate=A(u.nativeParams.adTemplate));var c=!1!==(0,r.Z)(u,"nativeParams.sendTargetingKeys"),d=T(u),f=s(s({},e.native),e.native.ext);return delete f.ext,Object.keys(f).forEach((function(n){var t=d[n],i=A(e.native[n])||A((0,r.Z)(e,"native.ext.".concat(n)));if("adTemplate"!==n&&t&&i){var a=(0,r.Z)(u,"nativeParams.".concat(n,".sendId"));"boolean"!=typeof a&&(a=(0,r.Z)(u,"nativeParams.ext.".concat(n,".sendId"))),a&&(i="".concat(t,":").concat(e.adId));var s=(0,r.Z)(u,"nativeParams.".concat(n,".sendTargetingKeys"));"boolean"!=typeof s&&(s=(0,r.Z)(u,"nativeParams.ext.".concat(n,".sendTargetingKeys"))),("boolean"==typeof s?s:c)&&(o[t]=i)}})),o}function E(e,n){var t={message:"assetResponse",adId:e.adId,assets:[]};return n.native.hasOwnProperty("adTemplate")&&(t.adTemplate=A(n.native.adTemplate)),n.native.hasOwnProperty("rendererUrl")&&(t.rendererUrl=A(n.native.rendererUrl)),e.assets.forEach((function(e){var r=(0,i.getKeyByValue)(f.NATIVE_KEYS,e),o=A(n.native[r]);t.assets.push({key:r,value:o})})),t}function S(e,n){var t={message:"assetResponse",adId:e.adId,assets:[]};return Object.keys(n.native).forEach((function(e,r){if("adTemplate"===e&&n.native[e])t.adTemplate=A(n.native[e]);else if("rendererUrl"===e&&n.native[e])t.rendererUrl=A(n.native[e]);else if("ext"===e)Object.keys(n.native[e]).forEach((function(r){if(n.native[e][r]){var i=A(n.native[e][r]);t.assets.push({key:r,value:i})}}));else if(n.native[e]&&f.NATIVE_KEYS.hasOwnProperty(e)){var i=A(n.native[e]);t.assets.push({key:e,value:i})}})),t}function A(e){return"object"===u(e)&&e.url?e.url:e}function T(e){var n={};return(0,r.Z)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((function(e){n[e]="hb_native_".concat(e)})),s(s({},f.NATIVE_KEYS),n)}},1879:function(e,n,t){"use strict";function r(e,n,t){return e&&e.includes(n,t)||!1}function i(){return Array.from.apply(Array,arguments)}function o(e,n,t){return e&&e.find(n,t)}function a(e,n,t){return e&&e.findIndex(n,t)}t.d(n,{Oc:function(){return i},cx:function(){return a},q9:function(){return r},sE:function(){return o}})},2786:function(e,n,t){"use strict";t.d(n,{zh:function(){return oe},O5:function(){return ae}});var r=t(2528),i=t(9853),o=t(265),a=t(2319),u=t(9017),c=t(5644),s=t(4766),d=t(1879),f=t(4877),l=t(8962),g=c.EVENTS,p=g.AD_RENDER_FAILED,v=g.AD_RENDER_SUCCEEDED;function y(e){var n=e.reason,t=e.message,r=e.bid,o=e.id,u={reason:n,message:t};r&&(u.bid=r),o&&(u.adId=o),(0,i.logError)(t),a.emit(p,u)}function b(e){var n=e.doc,t=e.bid,r=e.id,i={doc:n};t&&(i.bid=t),r&&(i.adId=r),a.emit(v,i)}var h=c.EVENTS.BID_WON,m=c.EVENTS.STALE_RENDER,E={"Prebid Request":function(e,n,t){if(null!=t){if(t.status!==c.BID_STATUS.RENDERED||((0,i.logWarn)("Ad id ".concat(t.adId," has been rendered before")),a.emit(m,t),!(0,o.Z)(l.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{!function(e,n){var t=e.adId,r=e.ad,o=e.adUrl,a=e.width,u=e.height,c=e.renderer,s=e.cpm,d=e.originalCpm;(0,f.Pd)(c)?(0,f._U)(c,e):t&&(A(e),n({message:"Prebid Response",ad:(0,i.replaceAuctionPrice)(r,d||s),adUrl:(0,i.replaceAuctionPrice)(o,d||s),adId:t,width:a,height:u}))}(t,e)}catch(e){return void y({reason:c.AD_RENDER_FAILED_REASON.EXCEPTION,message:e.message,id:n.adId,bid:t})}s.K.addWinningBid(t),a.emit(h,t)}}else y({reason:c.AD_RENDER_FAILED_REASON.CANNOT_FIND_AD,message:"Cannot find ad '".concat(n.adId,"' for cross-origin render request"),id:n.adId})},"Prebid Native":function(e,n,t){if(null!=t)switch(n.action){case"assetRequest":e((0,u.eK)(n,t));break;case"allAssetRequest":e((0,u.JL)(n,t));break;case"resizeNativeHeight":t.height=n.height,t.width=n.width,A(t);break;default:if("click"===(0,u.e6)(n,t))return;s.K.addWinningBid(t),a.emit(h,t)}else(0,i.logError)("Cannot find ad '".concat(n.adId,"' for x-origin event request"))},"Prebid Event":function(e,n,t){if(null!=t)if(t.status===c.BID_STATUS.RENDERED)switch(n.event){case c.EVENTS.AD_RENDER_FAILED:y({bid:t,id:n.adId,reason:n.info.reason,message:n.info.message});break;case c.EVENTS.AD_RENDER_SUCCEEDED:b({doc:null,bid:t,id:n.adId});break;default:(0,i.logError)("Received x-origin event request for unsupported event: '".concat(n.event,"' (adId: '").concat(n.adId,"')"))}else(0,i.logWarn)("Received x-origin event request without corresponding render request for ad '".concat(n.adId,"'"));else(0,i.logError)("Cannot find ad '".concat(n.adId,"' for x-origin event request"))}};function S(e){var n=e.message?"message":"data",t={};try{t=JSON.parse(e[n])}catch(e){return}if(t&&t.adId&&t.message){var r=(0,d.sE)(s.K.getBidsReceived(),(function(e){return e.adId===t.adId}));E.hasOwnProperty(t.message)&&E[t.message](function(e){return null==e.origin&&0===e.ports.length?function(){var 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,i.logError)(e),new Error(e)}:e.ports.length>0?function(n){e.ports[0].postMessage(JSON.stringify(n))}:function(n){e.source.postMessage(JSON.stringify(n),e.origin)}}(e),t,r)}}function A(e){var n=e.adId,t=e.adUnitCode,r=e.width,o=e.height;["div","iframe"].forEach((function(e){var a=function(e){var r=function(e,n){return(0,i.isGptPubadsDefined)()?function(e){var n=(0,d.sE)(window.googletag.pubads().getSlots(),(function(n){return(0,d.sE)(n.getTargetingKeys(),(function(t){return(0,d.q9)(n.getTargeting(t),e)}))}));return n?n.getSlotElementId():null}(e):(0,i.isApnGetTagDefined)()?function(e){var n=window.apntag.getTag(e);return n&&n.targetId}(n):n}(n,t),o=document.getElementById(r);return o&&o.querySelector(e)}(e+':not([style*="display: none"])');if(a){var u=a.style;u.width=r+"px",u.height=o+"px"}else(0,i.logWarn)("Unable to locate matching page element for adUnitCode ".concat(t,". Can't resize it to ad's dimensions. Please review setup."))}))}var T=t(7112),I=t(9742),w=t(3494),C=t(3636),O=t(7263),B=t(1477),U=t(5849),R=t(7602);function D(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return _(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0)&&(e.every((function(e){return(0,i.isArrayOfNums)(e,2)}))?t=e:(0,i.isArrayOfNums)(e,2)&&t.push(e)),t}function ee(e){var n=(0,i.deepClone)(e),t=n.mediaTypes.banner,r=$(t.sizes);return r.length>0?(t.sizes=r,n.sizes=r):((0,i.logError)("Detected a mediaTypes.banner object without a proper sizes field. Please ensure the sizes are listed like: [[300, 250], ...]. Removing invalid mediaTypes.banner object from request."),delete n.mediaTypes.banner),n}function ne(e){var n=(0,i.deepClone)(e),t=n.mediaTypes.video;if(t.playerSize){var r="number"==typeof t.playerSize[0]?2:1,o=$(t.playerSize,r);o.length>0?(2===r&&(0,i.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),t.playerSize=o,n.sizes=o):((0,i.logError)("Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete n.mediaTypes.video.playerSize)}return n}function te(e){var n=(0,i.deepClone)(e),t=n.mediaTypes.native;return t.image&&t.image.sizes&&!Array.isArray(t.image.sizes)&&((0,i.logError)("Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request."),delete n.mediaTypes.native.image.sizes),t.image&&t.image.aspect_ratios&&!Array.isArray(t.image.aspect_ratios)&&((0,i.logError)("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete n.mediaTypes.native.image.aspect_ratios),t.icon&&t.icon.sizes&&!Array.isArray(t.icon.sizes)&&((0,i.logError)("Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request."),delete n.mediaTypes.native.icon.sizes),n}function re(e,n){var t=(0,o.Z)(e,"mediaTypes.".concat(n,".pos"));if(!(0,i.isNumber)(t)||isNaN(t)||!isFinite(t)){var r="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");(0,i.logWarn)(r),x.emit(N.EVENTS.AUCTION_DEBUG,{type:"WARNING",arguments:r}),delete e.mediaTypes[n].pos}return e}function ie(e){var n=function(n){return"adUnit.code '".concat(e.code,"' ").concat(n)},t=e.mediaTypes,r=e.bids;return null==r||(0,i.isArray)(r)?null==r&&null==e.ortb2Imp?((0,i.logError)(n("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):t&&0!==Object.keys(t).length?(null==e.ortb2Imp||null!=r&&0!==r.length||(e.bids=[{bidder:null}],(0,i.logMessage)(n("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),e):((0,i.logError)(n("does not define a 'mediaTypes' object. This is a required field for the auction, so this adUnit has been removed.")),null):((0,i.logError)(n("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}(0,C.wt)(),k.bidderSettings=k.bidderSettings||{},k.libLoaded=!0,k.version="v6.18.0",(0,i.logInfo)("Prebid.js v6.18.0 loaded"),k.installedModules=k.installedModules||[],k.adUnits=k.adUnits||[],k.triggerUserSyncs=q;var oe={validateAdUnit:ie,validateBannerMediaType:ee,validateVideoMediaType:ne,validateNativeMediaType:te,validateSizes:$},ae=(0,w.z3)("sync",(function(e){var n=[];return e.forEach((function(e){if(null!=(e=ie(e))){var t,r,i,o=e.mediaTypes;o.banner&&(t=ee(e),o.banner.hasOwnProperty("pos")&&(t=re(t,"banner"))),o.video&&(r=ne(t||e),o.video.hasOwnProperty("pos")&&(r=re(r,"video"))),o.native&&(i=te(r||t||e));var a=j({},t,r,i);n.push(a)}})),n}),"checkAdUnitSetup");function ue(e){var n=s.K[e]().filter(i.bind.call(i.adUnitsFilter,this,s.K.getAdUnitCodes())),t=s.K.getLastAuctionId();return n.map((function(e){return e.adUnitCode})).filter(i.uniques).map((function(e){return n.filter((function(n){return n.auctionId===t&&n.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return n={},r={bids:e},(t=e[0].adUnitCode)in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n;var n,t,r})).reduce((function(e,n){return j(e,n)}),{})}function ce(e,n,t){var r=n.querySelector(t);e.parentNode&&e.parentNode===r||(0,i.insertElement)(e,n,t)}k.getAdserverTargetingForAdUnitCodeStr=function(e){if((0,i.logInfo)("Invoking owpbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var n=k.getAdserverTargetingForAdUnitCode(e);return(0,i.transformAdServerTargetingObj)(n)}(0,i.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},k.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var n=s.K.getAllBidsForAdUnitCode(e).filter(I.u8.isUnusedBid).filter(I.u8.isBidNotExpired);return n.length?n.reduce(i.getHighestCpm):{}}(0,i.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},k.getAdserverTargetingForAdUnitCode=function(e){return k.getAdserverTargeting(e)[e]},k.getAdserverTargeting=function(e){return(0,i.logInfo)("Invoking owpbjs.getAdserverTargeting",arguments),I.q0.getAllTargeting(e)},k.getConsentMetadata=function(){return(0,i.logInfo)("Invoking owpbjs.getConsentMetadata"),{gdpr:R.rp.getConsentMeta(),usp:R.nX.getConsentMeta(),coppa:!!l.vc.getConfig("coppa")}},k.getNoBids=function(){return(0,i.logInfo)("Invoking owpbjs.getNoBids",arguments),ue("getNoBids")},k.getNoBidsForAdUnitCode=function(e){return{bids:s.K.getNoBids().filter((function(n){return n.adUnitCode===e}))}},k.getBidResponses=function(){return(0,i.logInfo)("Invoking owpbjs.getBidResponses",arguments),ue("getBidsReceived")},k.getBidResponsesForAdUnitCode=function(e){return{bids:s.K.getBidsReceived().filter((function(n){return n.adUnitCode===e}))}},k.setTargetingForGPTAsync=function(e,n){if((0,i.logInfo)("Invoking owpbjs.setTargetingForGPTAsync",arguments),(0,i.isGptPubadsDefined)()){var t=I.q0.getAllTargeting(e);I.q0.resetPresetTargeting(e,n),I.q0.setTargetingForGPT(t,n),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){"hb_adid"===n&&s.K.setStatusForBids(t[e][n],N.BID_STATUS.BID_TARGETING_SET)}))})),x.emit(z,t)}else(0,i.logError)("window.googletag is not defined on the page")},k.setTargetingForAst=function(e){(0,i.logInfo)("Invoking owpbjs.setTargetingForAn",arguments),I.q0.isApntagDefined()?(I.q0.setTargetingForAst(e),x.emit(z,I.q0.getAllTargeting())):(0,i.logError)("window.apntag is not defined on the page")},k.renderAd=(0,w.z3)("async",(function(e,n,t){if((0,i.logInfo)("Invoking owpbjs.renderAd",arguments),(0,i.logMessage)("Calling renderAd with adId :"+n),e&&n)try{var r=s.K.findBidByAdId(n);if(r){var a=!0;if(r&&r.status===N.BID_STATUS.RENDERED&&((0,i.logWarn)("Ad id ".concat(r.adId," has been rendered before")),x.emit(L,r),(0,o.Z)(l.vc.getConfig("auctionOptions"),"suppressStaleRender")&&(a=!1)),a){if(r.ad=(0,i.replaceAuctionPrice)(r.ad,r.originalCpm||r.cpm),r.adUrl=(0,i.replaceAuctionPrice)(r.adUrl,r.originalCpm||r.cpm),t&&t.clickThrough){var u=t.clickThrough;r.ad=(0,i.replaceClickThrough)(r.ad,u),r.adUrl=(0,i.replaceClickThrough)(r.adUrl,u)}s.K.addWinningBid(r),x.emit(W,r);var c=r.height,d=r.width,g=r.ad,p=r.mediaType,v=r.adUrl,h=r.renderer,m=document.createComment("Creative ".concat(r.creativeId," served by ").concat(r.bidder," Prebid.js Header Bidding"));if((0,i.insertElement)(m,e,"html"),(0,f.Pd)(h))(0,f._U)(h,r),ce(m,e,"html"),b({doc:e,bid:r,id:n});else if(e===document&&!(0,i.inIframe)()||"video"===p){var E="Error trying to write ad. Ad render call ad id ".concat(n," was prevented from writing to the main document.");y({reason:V,message:E,bid:r,id:n})}else if(g)e.write(g),e.close(),X(e,d,c),ce(m,e,"html"),(0,i.callBurl)(r),b({doc:e,bid:r,id:n});else if(v){var S=(0,i.createInvisibleIframe)();S.height=c,S.width=d,S.style.display="inline",S.style.overflow="hidden",S.src=v,(0,i.insertElement)(S,e,"body"),X(e,d,c),ce(m,e,"html"),(0,i.callBurl)(r),b({doc:e,bid:r,id:n})}else{var A="Error trying to write ad. No ad for bid response id: ".concat(n);y({reason:H,message:A,bid:r,id:n})}}}else{var T="Error trying to write ad. Cannot find ad by given id : ".concat(n);y({reason:Y,message:T,id:n})}}catch(e){var I="Error trying to write ad Id :".concat(n," to the page:").concat(e.message);y({reason:Z,message:I,id:n})}else{var w="Error trying to write ad Id :".concat(n," to the page. Missing document or adId");y({reason:J,message:w,id:n})}})),k.removeAdUnit=function(e){(0,i.logInfo)("Invoking owpbjs.removeAdUnit",arguments),e?((0,i.isArray)(e)?e:[e]).forEach((function(e){for(var n=k.adUnits.length-1;n>=0;n--)k.adUnits[n].code===e&&k.adUnits.splice(n,1)})):k.adUnits=[]},k.requestBids=(0,w.z3)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,o=e.adUnitCodes,a=e.labels,u=e.auctionId;x.emit(F);var c=t||l.vc.getConfig("bidderTimeout");r=r&&l.vc.convertAdUnitFpd((0,i.isArray)(r)?r:[r])||k.adUnits,(0,i.logInfo)("Invoking owpbjs.requestBids",arguments);var f=[],g=[];if(l.vc.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(f=Array.isArray(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])})),f.forEach((function(e){g.push.apply(g,D(e.bidders))})),r=ae(r),o&&o.length?r=r.filter((function(e){return(0,d.q9)(o,e.code)})):o=r&&r.map((function(e){return e.code})),r.forEach((function(e){var n=Object.keys(e.mediaTypes||{banner:"banner"}),t=e.bids.map((function(e){return e.bidder})),r=P.bidderRegistry,o=g?t.filter((function(e){return!(0,d.q9)(g,e)})):t;e.transactionId=(0,i.generateUUID)(),o.forEach((function(t){var o=r[t],a=o&&o.getSpec&&o.getSpec(),u=a&&a.supportedMediaTypes||["banner"];n.some((function(e){return(0,d.q9)(u,e)}))?O.f.incrementBidderRequestsCounter(e.code,t):((0,i.logWarn)((0,i.unsupportedBidderMessage)(e,t)),e.bids=e.bids.filter((function(e){return e.bidder!==t})))})),O.f.incrementRequestsCounter(e.code)})),r&&0!==r.length){var p=s.K.createAuction({adUnits:r,adUnitCodes:o,callback:n,cbTimeout:c,labels:a,auctionId:u}),v=r.length;v>15&&(0,i.logInfo)("Current auction ".concat(p.getAuctionId()," contains ").concat(v," adUnits."),r),o.forEach((function(e){return I.q0.setLatestAuctionForAdUnit(e,p.getAuctionId())})),p.callBids()}else if((0,i.logMessage)("No adUnits configured. No bids requested."),"function"==typeof n)try{n()}catch(e){(0,i.logError)("Error executing bidsBackHandler",null,e)}})),k.requestBids.before((function(e,n){function t(e){for(var n;n=e.shift();)n()}t(U.Ld),t(se),e.call(this,n)}),49),k.addAdUnits=function(e){(0,i.logInfo)("Invoking owpbjs.addAdUnits",arguments),k.adUnits.push.apply(k.adUnits,l.vc.convertAdUnitFpd((0,i.isArray)(e)?e:[e])),x.emit(G)},k.onEvent=function(e,n,t){(0,i.logInfo)("Invoking owpbjs.onEvent",arguments),(0,i.isFn)(n)?!t||Q[e].call(null,t)?x.on(e,n,t):(0,i.logError)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,i.logError)('The event handler provided is not a function and was not set on event "'+e+'".')},k.offEvent=function(e,n,t){(0,i.logInfo)("Invoking owpbjs.offEvent",arguments),t&&!Q[e].call(null,t)||x.off(e,n,t)},k.getEvents=function(){return(0,i.logInfo)("Invoking owpbjs.getEvents"),x.getEvents()},k.registerBidAdapter=function(e,n){(0,i.logInfo)("Invoking owpbjs.registerBidAdapter",arguments);try{P.registerBidAdapter(e(),n)}catch(e){(0,i.logError)("Error registering bidder adapter : "+e.message)}},k.registerAnalyticsAdapter=function(e){(0,i.logInfo)("Invoking owpbjs.registerAnalyticsAdapter",arguments);try{P.registerAnalyticsAdapter(e)}catch(e){(0,i.logError)("Error registering analytics adapter : "+e.message)}},k.createBid=function(e){return(0,i.logInfo)("Invoking owpbjs.createBid",arguments),(0,B.m)(e)};var se=[],de=(0,w.z3)("async",(function(e){e&&!(0,i.isEmpty)(e)?((0,i.logInfo)("Invoking owpbjs.enableAnalytics for: ",e),P.enableAnalytics(e)):(0,i.logError)("owpbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");function fe(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){(0,i.logError)("Error processing command :","prebid.js",e)}}))}k.enableAnalytics=function(e){se.push(de.bind(this,e))},k.aliasBidder=function(e,n,t){(0,i.logInfo)("Invoking owpbjs.aliasBidder",arguments),e&&n?P.aliasBidAdapter(e,n,t):(0,i.logError)("bidderCode and alias must be passed as arguments","owpbjs.aliasBidder")},k.getAllWinningBids=function(){return s.K.getAllWinningBids()},k.getAllPrebidWinningBids=function(){return s.K.getBidsReceived().filter((function(e){return e.status===N.BID_STATUS.BID_TARGETING_SET}))},k.getHighestCpmBids=function(e){return I.q0.getWinningBids(e)},k.markWinningBidAsUsed=function(e){var n=[];e.adUnitCode&&e.adId?n=s.K.getBidsReceived().filter((function(n){return n.adId===e.adId&&n.adUnitCode===e.adUnitCode})):e.adUnitCode?n=I.q0.getWinningBids(e.adUnitCode):e.adId?n=s.K.getBidsReceived().filter((function(n){return n.adId===e.adId})):(0,i.logWarn)("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),n.length>0&&(n[0].status=N.BID_STATUS.RENDERED)},k.getConfig=l.vc.getConfig,k.readConfig=l.vc.readConfig,k.mergeConfig=l.vc.mergeConfig,k.mergeBidderConfig=l.vc.mergeBidderConfig,k.setConfig=l.vc.setConfig,k.setBidderConfig=l.vc.setBidderConfig,k.que.push((function(){window.addEventListener("message",S,!1)})),k.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){(0,i.logError)("Error processing command :",e.message,e.stack)}else(0,i.logError)("Commands written into owpbjs.cmd.push must be wrapped in a function")},k.que.push=k.cmd.push,k.processQueue=function(){w.z3.ready(),fe(k.que),fe(k.cmd)}},2528:function(e,n,t){"use strict";function r(){return window.owpbjs}t.d(n,{R:function(){return r}}),window.owpbjs=window.owpbjs||{},window.owpbjs.cmd=window.owpbjs.cmd||[],window.owpbjs.que=window.owpbjs.que||[],window._pbjsGlobals=window._pbjsGlobals||[],window._pbjsGlobals.push("owpbjs")},2661:function(e,n,t){"use strict";t.d(n,{n:function(){return o}});var r=t(8962),i=t(9853),o=function(e){function n(e){var n=r.vc.getConfig("pageUrl");if(n)return n;try{var t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}return function(){var t,o,a,u=[],c=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(e),s=r.vc.getConfig("maxNestedIframes"),d=!1,f=0,l=!1,g=!1;do{var p=t,v=g,y=void 0,b=!1,h=null;g=!1,t=t?t.parent:e;try{y=t.location.href||null}catch(e){b=!0}if(b)if(v){var m=p.context;try{o=h=m.sourceUrl,l=!0,t===e.top&&(d=!0),m.canonicalUrl&&(a=m.canonicalUrl)}catch(e){}}else{(0,i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{var E=p.document.referrer;E&&(h=E,t===e.top&&(d=!0))}catch(e){}!h&&c&&c[f-1]&&(h=c[f-1]),h&&!l&&(o=h)}else{if(y&&(o=h=y,l=!1,t===e.top)){d=!0;var S=n(t.document);S&&(a=S)}t.context&&t.context.sourceUrl&&(g=!0)}u.push(h),f++}while(t!==e.top&&f1&&void 0!==arguments[1]?arguments[1]:c,t=l(n);return!t.shouldFilter||!!t.sizesSupported[e]}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.labels,t=void 0===n?[]:n,r=e.labelAll,u=void 0!==r&&r,s=e.activeLabels,d=void 0===s?[]:s,f=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]:c,v=l(p);f=(0,i.isPlainObject)(f)?(0,i.deepClone)(f):g?{banner:{sizes:g}}:{};var y=(0,o.Z)(f,"banner.sizes");v.shouldFilter&&y&&(f.banner.sizes=y.filter((function(e){return v.sizesSupported[e]})));var b=Object.keys(f),h={active:b.every((function(e){return"banner"!==e}))||b.some((function(e){return"banner"===e}))&&(0,o.Z)(f,"banner.sizes.length")>0&&(0===t.length||!u&&(t.some((function(e){return v.labels[e]}))||t.some((function(e){return(0,a.q9)(d,e)})))||u&&t.reduce((function(e,n){return e?v.labels[n]||(0,a.q9)(d,n):e}),!0)),mediaTypes:f};return y&&y.length!==f.banner.sizes.length&&(h.filterResults={before:y,after:f.banner.sizes}),h}function l(e){return e.reduce((function(e,n){if("object"===u(n)&&"string"==typeof n.mediaQuery&&n.mediaQuery.length>0){var t=!1;try{t=(0,i.getWindowTop)().matchMedia(n.mediaQuery).matches}catch(e){(0,i.logWarn)("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,i.logWarn)('sizeConfig rule missing required property "mediaQuery"');return e}),{labels:{},sizesSupported:{},shouldFilter:!1})}function g(e,n){return e.reduce((function(e,t){var r=f(s(t,n),t.mediaTypes,t.sizes),o=r.active,a=r.mediaTypes,u=r.filterResults;return o?(u&&(0,i.logInfo)('Size mapping filtered adUnit "'.concat(t.code,'" banner sizes from '),u.before,"to ",u.after),t.mediaTypes=a,t.bids=t.bids.reduce((function(e,r){var o=f(s(r,n),t.mediaTypes),a=o.active,u=o.mediaTypes,c=o.filterResults;return a?(c&&((0,i.logInfo)('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,i.logInfo)('Size mapping deactivated adUnit "'.concat(t.code,'" bidder "').concat(r.bidder,'"')),e}),[]),e.push(t)):(0,i.logInfo)('Size mapping disabled adUnit "'.concat(t.code,'"')),e}),[])}r.vc.getConfig("sizeConfig",(function(e){return function(e){c=e}(e.sizeConfig)}))},5849:function(e,n,t){"use strict";t.d(n,{Ld:function(){return c},S6:function(){return d},df:function(){return l},eA:function(){return f}});var r=t(3494),i=t(9853),o=t(1879),a=t(9624),u=["core","prebid-module"],c=[];function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.gvlid,t=e.moduleName,r=e.bidderCode,s=e.moduleType,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=f.bidderSettings,g=void 0===l?a.S:l;function p(){if(null==r)return!1;var e=g.get(r,"storageAllowed");return null!=e&&!e}function v(e){return(0,o.q9)(u,s)?e({valid:!0}):p()?((0,i.logInfo)("bidderSettings denied access to device storage for bidder '".concat(r,"'")),e({valid:!1})):(d(n,r||t,{hasEnforcementHook:!1},(function(n){if(n&&n.hasEnforcementHook)a=e(n);else{var t={hasEnforcementHook:!1,valid:(0,i.hasDeviceAccess)()};a=e(t)}})),a);var a}var y=function(e,n,t,r,i,o){var a=function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",u=t&&""!==t?" ;expires=".concat(t):"",c=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(n)).concat(u,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(c)}};if(!o||"function"!=typeof o)return v(a);c.push((function(){var e=v(a);o(e)}))},b=function(e,n){var t=function(n){if(n&&n.valid){var t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null};if(!n||"function"!=typeof n)return v(t);c.push((function(){var e=v(t);n(e)}))},h=function(e){var n=function(e){if(e&&e.valid)try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){}finally{try{localStorage.removeItem("prebid.cookieTest")}catch(e){}}return!1};if(!e||"function"!=typeof e)return v(n);c.push((function(){var t=v(n);e(t)}))},m=function(e){var n=function(e){return!(!e||!e.valid||!(0,i.checkCookieSupport)()&&(window.document.cookie="prebid.cookieTest",-1===window.document.cookie.indexOf("prebid.cookieTest")))};if(!e||"function"!=typeof e)return v(n);c.push((function(){var t=v(n);e(t)}))},E=function(e,n,t){var r=function(t){t&&t.valid&&T()&&window.localStorage.setItem(e,n)};if(!t||"function"!=typeof t)return v(r);c.push((function(){var e=v(r);t(e)}))},S=function(e,n){var t=function(n){return n&&n.valid&&T()?window.localStorage.getItem(e):null};if(!n||"function"!=typeof n)return v(t);c.push((function(){var e=v(t);n(e)}))},A=function(e,n){var t=function(n){n&&n.valid&&T()&&window.localStorage.removeItem(e)};if(!n||"function"!=typeof n)return v(t);c.push((function(){var e=v(t);n(e)}))},T=function(e){var n=function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){(0,i.logError)("Local storage api disabled")}return!1};if(!e||"function"!=typeof e)return v(n);c.push((function(){var t=v(n);e(t)}))},I=function(e,n){var t=function(n){if(n&&n.valid){var t=[];if((0,i.hasDeviceAccess)())for(var r=document.cookie.split(";");r.length;){var o=r.pop(),a=o.indexOf("=");a=a<0?o.length:a,decodeURIComponent(o.slice(0,a).replace(/^\s+/,"")).indexOf(e)>=0&&t.push(decodeURIComponent(o.slice(a+1)))}return t}};if(!n||"function"!=typeof n)return v(t);c.push((function(){var e=v(t);n(e)}))};return{setCookie:y,getCookie:b,localStorageIsEnabled:h,cookiesAreEnabled:m,setDataInLocalStorage:E,getDataFromLocalStorage:S,removeDataFromLocalStorage:A,hasLocalStorage:T,findSimilarCookies:I}}var d=(0,r.z3)("async",(function(e,n,t,r){r(t)}),"validateStorageEnforcement");function f(e){return s({moduleName:e,moduleType:"core"})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.gvlid,t=e.moduleName,r=e.bidderCode;if(arguments.length>1||arguments.length>0&&!(0,i.isPlainObject)(arguments[0]))throw new Error("Invalid invocation for getStorageManager");return s({gvlid:n,moduleName:t,bidderCode:r})}},9742:function(e,n,t){"use strict";t.d(n,{bP:function(){return w},ol:function(){return I},q0:function(){return C},u8:function(){return T}});var r=t(9853),i=t(265),o=t(8962),a=t(9017),u=t(4766),c=t(1269),s=t(8265),d=t(3494),f=t(9624),l=t(1879);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t(0,r.timestamp)()},isUnusedBid:function(e){return e&&(e.status&&!(0,l.q9)([b.BID_STATUS.RENDERED],e.status)||!e.status)}},I=(0,d.z3)("sync",(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!i){var a=[],u=o.vc.getConfig("sendBidsControl.dealPrioritization"),c=(0,r.groupBy)(e,"adUnitCode");return Object.keys(c).forEach((function(e){var i=[],o=(0,r.groupBy)(c[e],"bidderCode");Object.keys(o).forEach((function(e){return i.push(o[e].reduce(n))})),t>0?(i=u?i.sort(w(!0)):i.sort((function(e,n){return n.cpm-e.cpm})),a.push.apply(a,v(i.slice(0,t)))):a.push.apply(a,v(i))})),a}return e}));function w(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(n,t){return void 0!==n.adserverTargeting.hb_deal&&void 0===t.adserverTargeting.hb_deal?-1:void 0===n.adserverTargeting.hb_deal&&void 0!==t.adserverTargeting.hb_deal?1:e?t.cpm-n.cpm:t.adserverTargeting.hb_pb-n.adserverTargeting.hb_pb}}var C=function(e){var n={},t={};function u(e,n){return e.adserverTargeting&&n&&((0,r.isArray)(n)&&(0,l.q9)(n,e.adUnitCode)||"string"==typeof n&&e.adUnitCode===n)}function d(e,n){if(!0===o.vc.getConfig("targetingControls.alwaysIncludeDeals")){var t=A.concat(a.xc);return I(n,r.getHighestCpm).map((function(n){if(n.dealId&&u(n,e))return p({},n.adUnitCode,x(n,t.filter((function(e){return void 0!==n.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}function y(e,n){var t=g({},b.TARGETING_KEYS,b.NATIVE_KEYS),i=Object.keys(t),o={};(0,r.logInfo)("allowTargetingKeys - allowed keys [ ".concat(n.map((function(e){return t[e]})).join(", ")," ]")),e.map((function(e){var r=Object.keys(e)[0],a=e[r].filter((function(e){var r=Object.keys(e)[0],a=0===i.filter((function(e){return 0===r.indexOf(t[e])})).length||(0,l.sE)(n,(function(e){var n=t[e];return 0===r.indexOf(n)}));return o[r]=!a,a}));e[r]=a}));var a=Object.keys(o).filter((function(e){return o[e]}));return(0,r.logInfo)("allowTargetingKeys - removed keys [ ".concat(a.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}function C(e,n){var t=(0,r.deepClone)(e);return Object.keys(t).map((function(e){return{adUnitCode:e,adserverTargeting:t[e]}})).sort(w()).reduce((function(e,i,o,a){var u,c=(u=i.adserverTargeting,Object.keys(u).reduce((function(e,n){return e+"".concat(n,"%3d").concat(encodeURIComponent(u[n]),"%26")}),""));o+1===a.length&&(c=c.slice(0,-3));var s=i.adUnitCode,d=c.length;return d<=n?(n-=d,(0,r.logInfo)("AdUnit '".concat(s,"' auction keys comprised of ").concat(d," characters. Deducted from running threshold; new limit is ").concat(n),t[s]),e[s]=t[s]):(0,r.logWarn)("The following keys for adUnitCode '".concat(s,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(d,", the current allotted amount was ").concat(n,".\n"),t[s]),o+1===a.length&&0===Object.keys(e).length&&(0,r.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e}),{})}function O(e){var n=e.map((function(e){return p({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return p({},Object.keys(e)[0],e[Object.keys(e)[0]].join(","))})).reduce((function(e,n){return g(n,e)}),{}))})).reduce((function(e,n){var t=Object.keys(n)[0];return e[t]=g({},e[t],n[t]),e}),{});return n}function B(n){return"string"==typeof n?[n]:(0,r.isArray)(n)?n:e.getAdUnitCodes()||[]}function U(){var n=e.getBidsReceived();if(o.vc.getConfig("useBidCache")){var a=o.vc.getConfig("bidCacheFilterFunction");"function"==typeof a&&(n=n.filter((function(e){return t[e.adUnitCode]===e.auctionId||!!a(e)})))}else n=n.filter((function(e){return t[e.adUnitCode]===e.auctionId}));return n=n.filter((function(e){return(0,i.Z)(e,"video.context")!==s.Oh})).filter((function(e){return"banner"!==e.mediaType||(0,c.lO)([e.width,e.height])})).filter(T.isUnusedBid).filter(T.isBidNotExpired),I(n,r.getOldestHighestCpmBid)}function R(e,t){var r=n.getWinningBids(e,t),i=D();return r=r.map((function(e){return p({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(n){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(n)})).reduce((function(n,t){var r=[e.adserverTargeting[t]],i=p({},t.substring(0,20),r);if(t===b.TARGETING_KEYS.DEAL){var o=p({},"".concat(t,"_").concat(e.bidderCode).substring(0,20),r);return[].concat(v(n),[i,o])}return[].concat(v(n),[i])}),[]))})),r}function D(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(A).filter(r.uniques)}function _(e,n,t,i){return Object.keys(n.adserverTargeting).filter(j()).forEach((function(t){e.length&&e.filter(function(e){return function(t){return t.adUnitCode===n.adUnitCode&&t.adserverTargeting[e]}}(t)).forEach(function(e){return function(t){(0,r.isArray)(t.adserverTargeting[e])||(t.adserverTargeting[e]=[t.adserverTargeting[e]]),t.adserverTargeting[e]=t.adserverTargeting[e].concat(n.adserverTargeting[e]).filter(r.uniques),delete n.adserverTargeting[e]}}(t))})),e.push(n),e}function j(){var e=D().concat(a.xc);return function(n){return-1===e.indexOf(n)}}function k(e){return p({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(j()).map((function(n){return p({},n.substring(0,20),[e.adserverTargeting[n]])})))}function N(e,n){return n.filter((function(n){return(0,l.q9)(e,n.adUnitCode)})).map((function(e){return g({},e)})).reduce(_,[]).map(k).filter((function(e){return e}))}function P(e,n){var t=A.concat(a.xc),i=o.vc.getConfig("sendBidsControl.bidLimit"),c=I(n,r.getHighestCpm,i),s=o.vc.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),d=s?s.map((function(e){return b.TARGETING_KEYS[e]})):t;return c.map((function(n){if(u(n,e))return p({},n.adUnitCode,x(n,t.filter((function(e){return void 0!==n.adserverTargeting[e]&&-1!==d.indexOf(e)}))))})).filter((function(e){return e}))}function x(e,n){return n.map((function(n){return p({},"".concat(n,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}function q(n){function t(e){return(0,i.Z)(e,b.JSON_MAPPING.ADSERVER_TARGETING)}return e.getAdUnits().filter((function(e){return(0,l.q9)(n,e.code)&&t(e)})).map((function(e){return p({},e.code,function(e){var n=t(e);return Object.keys(n).map((function(e){return(0,r.isStr)(n[e])&&(n[e]=n[e].split(",").map((function(e){return e.trim()}))),(0,r.isArray)(n[e])||(n[e]=[n[e]]),p({},e,n[e])}))}(e))}))}return n.setLatestAuctionForAdUnit=function(e,n){t[e]=n},n.resetPresetTargeting=function(n,t){if((0,r.isGptPubadsDefined)()){var i=B(n),o=e.getAdUnits().filter((function(e){return(0,l.q9)(i,e.code)})),a=h.reduce((function(e,n){return e[n]=null,e}),{});window.googletag.pubads().getSlots().forEach((function(e){var n=(0,r.isFn)(t)&&t(e);o.forEach((function(t){(t.code===e.getAdUnitPath()||t.code===e.getSlotElementId()||(0,r.isFn)(n)&&n(t.code))&&e.updateTargetingFromMap(a)}))}))}},n.resetPresetTargetingAST=function(e){B(e).forEach((function(e){var n=window.apntag.getTag(e);if(n&&n.keywords){var t=Object.keys(n.keywords),r={};t.forEach((function(e){(0,l.q9)(h,e.toLowerCase())||(r[e]=n.keywords[e])})),window.apntag.modifyTag(e,{keywords:r})}}))},n.getAllTargeting=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U(),t=B(e),i=R(t,n).concat(N(t,n)).concat(o.vc.getConfig("enableSendAllBids")?P(t,n):d(t,n)).concat(q(t));i.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===h.indexOf(Object.keys(e)[0])&&(h=Object.keys(e).concat(h))}))}))}));var a=Object.keys(g({},b.DEFAULT_TARGETING_KEYS,b.NATIVE_KEYS)),u=o.vc.getConfig(m),c=o.vc.getConfig(E);if(null!=c&&null!=u)throw new Error(S);u=null!=c?a.concat(c):u||a,Array.isArray(u)&&u.length>0&&(i=y(i,u)),i=O(i);var s=o.vc.getConfig("targetingControls.auctionKeyMaxChars");return s&&((0,r.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(s," characters. Running checks on auction keys...")),i=C(i,s)),t.forEach((function(e){i[e]||(i[e]={})})),i},o.vc.getConfig("targetingControls",(function(e){null!=(0,i.Z)(e,m)&&null!=(0,i.Z)(e,E)&&(0,r.logError)(S)})),n.setTargetingForGPT=function(e,n){window.googletag.pubads().getSlots().forEach((function(t){Object.keys(e).filter(n?n(t):(0,r.isAdUnitCodeMatchingSlot)(t)).forEach((function(n){Object.keys(e[n]).forEach((function(t){var r=e[n][t];"string"==typeof r&&-1!==r.indexOf(",")&&(r=r.split(",")),e[n][t]=r})),(0,r.logMessage)("Attempting to set targeting-map for slot: ".concat(t.getSlotElementId()," with targeting-map:"),e[n]),t.updateTargetingFromMap(e[n])}))}))},n.getWinningBids=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U(),t=B(e);return n.filter((function(e){return(0,l.q9)(t,e.adUnitCode)})).filter((function(e){return!0===f.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0})).map((function(e){return e.adUnitCode})).filter(r.uniques).map((function(e){return n.filter((function(n){return n.adUnitCode===e?n:null})).reduce(r.getHighestCpm)}))},n.setTargetingForAst=function(e){var t=n.getAllTargeting(e);try{n.resetPresetTargetingAST(e)}catch(e){(0,r.logError)("unable to reset targeting for AST"+e)}Object.keys(t).forEach((function(e){return Object.keys(t[e]).forEach((function(n){if((0,r.logMessage)("Attempting to set targeting for targetId: ".concat(e," key: ").concat(n," value: ").concat(t[e][n])),(0,r.isStr)(t[e][n])||(0,r.isArray)(t[e][n])){var i={};n.search(/pt[0-9]/)<0?i[n.toUpperCase()]=t[e][n]:i[n]=t[e][n],window.apntag.setKeywords(e,i,{overrideKeyValue:!0})}}))}))},n.isApntagDefined=function(){if(window.apntag&&(0,r.isFn)(window.apntag.setKeywords))return!0},n}(u.K)},7112:function(e,n,t){"use strict";t.d(n,{k_:function(){return l}});var r=t(9853),i=t(8962),o=t(1879),a=t(5849);function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=f.syncsPerBidder?(0,r.logWarn)('Number of user syncs exceeded for "'.concat(i,'"')):n.canBidderRegisterSync(e,i)?(t[e].push([i,o]),void(c=function(e,n){return e[n]?e[n]+=1:e[n]=1,e}(c,i))):(0,r.logWarn)('Bidder "'.concat(i,'" not permitted to register their "').concat(e,'" userSync pixels.')):(0,r.logWarn)("Bidder is required for registering sync"):(0,r.logWarn)('User sync type "'.concat(e,'" not supported'))},n.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(l,Number(e));l()},n.triggerUserSyncs=function(){f.enableOverride&&n.syncUsers()},n.canBidderRegisterSync=function(e,n){return!f.filterSettings||!function(e,n){var t=f.filterSettings;if(function(e,n){if(e.all&&e[n])return(0,r.logWarn)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(n,'" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var t=e.all?e.all:e[n],i=e.all?"all":n;if(!t)return!1;var o=t.filter,a=t.bidders;return o&&"include"!==o&&"exclude"!==o?((0,r.logWarn)('UserSync "filterSettings.'.concat(i,".filter\" setting '").concat(o,"' is not a valid option; use either 'include' or 'exclude'.")),!1):!!("*"===a||Array.isArray(a)&&a.length>0&&a.every((function(e){return(0,r.isStr)(e)&&"*"!==e})))||((0,r.logWarn)('Detected an invalid setup in userSync "filterSettings.'.concat(i,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1)}(t,e)){d[e]=!0;var i=t.all?t.all:t[e],a="*"===i.bidders?[n]:i.bidders,u={include:function(e,n){return!(0,o.q9)(e,n)},exclude:function(e,n){return(0,o.q9)(e,n)}};return u[i.filter||"include"](a,n)}return!d[e]}(e,n)},n}({config:i.vc.getConfig("userSync"),browserSupportsCookies:f})},9853:function(e,n,t){"use strict";t.r(n),t.d(n,{_each:function(){return de},_map:function(){return le},adUnitsFilter:function(){return xe},bind:function(){return U},buildUrl:function(){return Sn},callBurl:function(){return be},checkCookieSupport:function(){return Ve},chunk:function(){return pn},cleanObj:function(){return cn},compareOn:function(){return bn},contains:function(){return fe},convertCamelToUnderscore:function(){return un},convertTypes:function(){return fn},createInvisibleIframe:function(){return $},createTrackPixelHtml:function(){return Ee},createTrackPixelIframeHtml:function(){return Se},cyrb53Hash:function(){return In},debugTurnedOn:function(){return X},deepAccess:function(){return u.Z},deepClone:function(){return qe},deepEqual:function(){return An},deepSetValue:function(){return c.Z},delayExecution:function(){return He},fill:function(){return gn},flatten:function(){return Ie},formatQS:function(){return mn},generateUUID:function(){return _},getAdUnitSizes:function(){return x},getBidIdParameter:function(){return j},getBidRequest:function(){return we},getBidderCodes:function(){return Ue},getDNT:function(){return $e},getDefinedParams:function(){return Ye},getGptSlotInfoForAdUnitCode:function(){return rn},getHighestCpm:function(){return _e},getKeyByValue:function(){return Be},getKeys:function(){return Ce},getLatestHighestCpmBid:function(){return ke},getMaxValueFromArray:function(){return yn},getMinValueFromArray:function(){return vn},getOldestHighestCpmBid:function(){return je},getOrigin:function(){return Xe},getParameterByName:function(){return ee},getPerformanceNow:function(){return Le},getPrebidInternal:function(){return C},getUniqueIdentifierStr:function(){return D},getUserConfiguredParams:function(){return Qe},getValue:function(){return Oe},getValueString:function(){return Ae},getWindowLocation:function(){return L},getWindowSelf:function(){return z},getWindowTop:function(){return F},groupBy:function(){return Ze},hasConsoleLogger:function(){return Q},hasDeviceAccess:function(){return Ke},hasOwn:function(){return ge},inIframe:function(){return Me},insertElement:function(){return pe},insertHtmlIntoIframe:function(){return he},insertUserSyncIframe:function(){return me},internal:function(){return I},isA:function(){return ne},isAdUnitCodeMatchingSlot:function(){return nn},isApnGetTagDefined:function(){return De},isArray:function(){return ie},isArrayOfNums:function(){return ln},isBoolean:function(){return ue},isEmpty:function(){return ce},isEmptyStr:function(){return se},isFn:function(){return te},isGptPubadsDefined:function(){return Re},isInteger:function(){return an},isNumber:function(){return oe},isPlainObject:function(){return ae},isSafariBrowser:function(){return Ge},isSlotMatchingAdUnitCode:function(){return tn},isStr:function(){return re},isValidMediaTypes:function(){return Je},logError:function(){return Z},logInfo:function(){return V},logMessage:function(){return K},logWarn:function(){return H},mergeDeep:function(){return Tn},parseGPTSingleSizeArray:function(){return M},parseGPTSingleSizeArrayToRtbSize:function(){return G},parseQS:function(){return hn},parseQueryStringParameters:function(){return N},parseSizesInput:function(){return q},parseUrl:function(){return En},pick:function(){return sn},prefixLog:function(){return Y},replaceAuctionPrice:function(){return We},replaceClickThrough:function(){return Fe},shuffle:function(){return Pe},skipUndefinedValues:function(){return wn},timestamp:function(){return ze},transformAdServerTargetingObj:function(){return P},transformBidderParamKeywords:function(){return dn},triggerPixel:function(){return ye},tryAppendQueryString:function(){return k},uniques:function(){return Te},unsupportedBidderMessage:function(){return on},waitForElementToLoad:function(){return ve}});var r=t(8962),i=t(7079),o=t.n(i),a=t(1879),u=t(265),c=t(4806);function s(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,n){if(e){if("string"==typeof e)return f(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,n):void 0}}function f(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,_)}function j(e,n){return n&&n[e]?n[e]:""}function k(e,n,t){return t?e+n+"="+encodeURIComponent(t)+"&":e}function N(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n.replace(/&$/,"")}function P(e){return e&&Object.getOwnPropertyNames(e).length>0?Ce(e).map((function(n){return"".concat(n,"=").concat(encodeURIComponent(Oe(e,n)))})).join("&"):""}function x(e){if(e){var n=[];if(e.mediaTypes&&e.mediaTypes.banner&&Array.isArray(e.mediaTypes.banner.sizes)){var t=e.mediaTypes.banner.sizes;Array.isArray(t[0])?n=t:n.push(t)}else Array.isArray(e.sizes)&&(Array.isArray(e.sizes[0])?n=e.sizes:n.push(e.sizes));return n}}function q(e){var n=[];if("string"==typeof e){var t=e.split(","),r=/^(\d)+x(\d)+$/i;if(t)for(var i in t)ge(t,i)&&t[i].match(r)&&n.push(t[i])}else if("object"===p(e)){var o=e.length;if(o>0)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])n.push(M(e));else for(var a=0;a0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0}function se(e){return re(e)&&(!e||0===e.length)}function de(e,n){if(!ce(e)){if(te(e.forEach))return e.forEach(n,this);var t=0,r=e.length;if(r>0)for(;t':""}function Se(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(n&&(e=encodeURI(e)),t&&(t='sandbox="'.concat(t,'"')),"')):""}function Ae(e,n,t){return null==n?t:re(n)?n:oe(n)?n.toString():void I.logWarn("Unsuported type for param: "+e+" required type: String")}function Te(e,n,t){return t.indexOf(e)===n}function Ie(e,n){return e.concat(n)}function we(e,n){var t;if(e)return n.some((function(n){var r=(0,a.sE)(n.bids,(function(n){return["bidId","adId","bid_id"].some((function(t){return n[t]===e}))}));return r&&(t=r),r})),t}function Ce(e){return Object.keys(e)}function Oe(e,n){return e[n]}function Be(e,n){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n)return t}function Ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:owpbjs.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(Ie,[])})).reduce(Ie,[]).filter(Te)}function Re(){if(window.googletag&&te(window.googletag.pubads)&&te(window.googletag.pubads().getSlots))return!0}function De(){if(window.apntag&&te(window.apntag.getTag))return!0}var _e=Ne("timeToRespond",(function(e,n){return e>n})),je=Ne("responseTimestamp",(function(e,n){return e>n})),ke=Ne("responseTimestamp",(function(e,n){return e0;){var t=Math.floor(Math.random()*n),r=e[--n];e[n]=e[t],e[t]=r}return e}function xe(e,n){return(0,a.q9)(e,n&&n.adUnitCode)}function qe(e){return o()(e)}function Me(){try{return I.getWindowSelf()!==I.getWindowTop()}catch(e){return!0}}function Ge(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function We(e,n){if(e)return e.replace(/\$\{AUCTION_PRICE\}/g,n)}function Fe(e,n){if(e&&n&&"string"==typeof n)return e.replace(/\${CLICKTHROUGH}/g,n)}function ze(){return(new Date).getTime()}function Le(){return window.performance&&window.performance.now&&window.performance.now()||0}function Ke(){return!1!==r.vc.getConfig("deviceAccess")}function Ve(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function He(e,n){if(n<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(n));var t=0;return function(){++t===n&&e.apply(this,arguments)}}function Ze(e,n){return e.reduce((function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e}),{})}function Ye(e,n){return n.filter((function(n){return e[n]})).reduce((function(n,t){return g(n,l({},t,e[t]))}),{})}function Je(e){var n=["banner","native","video"];return!!Object.keys(e).every((function(e){return(0,a.q9)(n,e)}))&&(!e.video||!e.video.context||(0,a.q9)(["instream","outstream","adpod"],e.video.context))}function Qe(e,n,t){return e.filter((function(e){return e.code===n})).map((function(e){return e.bids})).reduce(Ie,[]).filter((function(e){return e.bidder===t})).map((function(e){return e.params||{}}))}function Xe(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function $e(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}var en=function(e,n){return e.getAdUnitPath()===n||e.getSlotElementId()===n};function nn(e){return function(n){return en(e,n)}}function tn(e){return function(n){return en(n,e)}}function rn(e){var n;return Re()&&(n=(0,a.sE)(window.googletag.pubads().getSlots(),tn(e))),n?{gptSlot:n.getAdUnitPath(),divId:n.getSlotElementId()}:{}}function on(e,n){var t=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n ".concat(e.code," is a ").concat(t," ad unit\n containing bidders that don't support ").concat(t,": ").concat(n,".\n This bidder won't fetch demand.\n ")}function an(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function un(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,n){return"_"+n.toLowerCase()})).replace(/^_/,"")}function cn(e){return Object.keys(e).reduce((function(n,t){return void 0!==e[t]&&(n[t]=e[t]),n}),{})}function sn(e,n){return"object"!==p(e)?{}:n.reduce((function(t,r,i){if("function"==typeof r)return t;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var u=e[r];return"function"==typeof n[i+1]&&(u=n[i+1](u,t)),void 0!==u&&(t[o]=u),t}),{})}function dn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",t=[];return de(e,(function(e,r){if(ie(e)){var i=[];de(e,(function(e){((e=Ae(n+"."+r,e))||""===e)&&i.push(e)})),e=i}else{if(!re(e=Ae(n+"."+r,e)))return;e=[e]}t.push({key:r,value:e})})),t}function fn(e,n){return Object.keys(e).forEach((function(t){var r,i;n[t]&&(te(e[t])?n[t]=e[t](n[t]):n[t]=(r=e[t],i=n[t],"string"===r?i&&i.toString():"number"===r?Number(i):i),isNaN(n[t])&&delete n.key)})),n}function ln(e,n){return ie(e)&&(!n||e.length===n)&&e.every((function(e){return an(e)}))}function gn(e,n){for(var t=[],r=0;rt[e]?-1:0}}function hn(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,n){var t,r=(2,function(e){if(Array.isArray(e))return e}(t=n.split("="))||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(u)throw i}}return o}}(t)||d(t,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],o=r[1];return/\[\]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(o)):e[i]=o||"",e}),{}):{}}function mn(e){return Object.keys(e).map((function(n){return Array.isArray(e[n])?e[n].map((function(e){return"".concat(n,"[]=").concat(e)})).join("&"):"".concat(n,"=").concat(e[n])})).join("&")}function En(e,n){var t=document.createElement("a");n&&"noDecodeWholeURL"in n&&n.noDecodeWholeURL?t.href=e:t.href=decodeURIComponent(e);var r=n&&"decodeSearchAsString"in n&&n.decodeSearchAsString;return{href:t.href,protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r?t.search:I.parseQS(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host||window.location.host}}function Sn(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(I.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}function An(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.checkTypes,i=void 0!==r&&r;if(e===n)return!0;if("object"!==p(e)||null===e||"object"!==p(n)||null===n||i&&e.constructor!==n.constructor)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var o in e){if(!n.hasOwnProperty(o))return!1;if(!An(e[o],n[o],{checkTypes:i}))return!1}return!0}function Tn(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:0,r=function(e,n){if(te(Math.imul))return Math.imul(e,n);var t=(4194303&e)*(n|=0);return 4290772992&e&&(t+=(4290772992&e)*n|0),0|t},i=3735928559^t,o=1103547991^t,a=0;a>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()}function wn(e){var n,t={};for(n in e)e[n]&&(t[n]=e[n]);return t}},1929:function(e,n,t){"use strict";t.d(n,{Dn:function(){return d},LD:function(){return s},gZ:function(){return c},hD:function(){return f}});var r=t(265),i=t(9853),o=t(8962),a=t(3494),u=t(4766),c="outstream",s="instream";function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?u.K.index:t,o=(0,r.Z)(i.getMediaTypes(e),"video"),a=o&&(0,r.Z)(o,"context"),c=i.getAdUnit(e);return f(e,c,o,a)}var f=(0,a.z3)("sync",(function(e,n,t,r){return t&&r!==c?o.vc.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)('\n This bid contains only vastXml and will not work when a prebid cache url is not specified.\n Try enabling prebid cache with owpbjs.setConfig({ cache: {url: "..."} });\n '),!1):r!==c||!!(e.renderer||n&&n.renderer||t.renderer)}),"checkVideoBidSetup")},905:function(e,n,t){"use strict";t.d(n,{h:function(){return c},z:function(){return s}});var r=t(5755),i=t(8962),o=t(4766);function a(e,n){var t=n?""):"";return'\n \n \n prebid.org wrapper\n \n ").concat(t,"\n \n \n \n ")}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?o.K.index:t,u=e.vastXml?e.vastXml:a(e.vastUrl,e.vastImpUrl),c=r.getAuction(e);window&&window.PWT&&(u=window.PWT.UpdateVastWithTracker(e,u));var s={type:"xml",value:u,ttlseconds:Number(e.ttl)};return i.vc.getConfig("cache.vasttrack")&&(s.bidder=e.bidder,s.bidid=e.requestId,s.aid=e.auctionId),null!=c&&(s.timestamp=c.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(s.key=e.customCacheKey),s}function c(e,n){var t={puts:e.map(u)};(0,r.h)(i.vc.getConfig("cache.url"),function(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))),[])}}}(n),JSON.stringify(t),{contentType:"text/plain",withCredentials:!0})}function s(e){return"".concat(i.vc.getConfig("cache.url"),"?uuid=").concat(e)}},265:function(e,n,t){"use strict";function r(e,n,t,r,i){for(n=n.split?n.split("."):n,r=0;r-1?[]:{}}t.d(n,{Z:function(){return r}})},1432:function(e){a.SYNC=1,a.ASYNC=2,a.QUEUE=4;var n=Object.freeze({useProxy:!0,ready:0}),t=new WeakMap,r="2,1,0"===[1].reduce((function(e,n,t){return[e,n,t]}),2).toString()?Array.prototype.reduce:function(e,n){var t,r=Object(this),i=r.length>>>0,o=0;if(n)t=n;else{for(;o=o)&&Object.keys(r.O).every((function(e){return r.O[e](t[c])}))?t.splice(c--,1):(u=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[t,i,o]},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={5602:0};r.O.j=function(n){return 0===e[n]};var n=function(n,t){var i,o,a=t[0],u=t[1],c=t[2],s=0;if(a.some((function(n){return 0!==e[n]}))){for(i in u)r.o(u,i)&&(r.m[i]=u[i]);if(c)var d=c(r)}for(n&&n(t);s1&&void 0!==arguments[1]&&arguments[1],n=(0,t.parseUrl)(o,{noDecodeWholeURL:!0});return e?"".concat(n.hostname):"".concat(n.protocol,"://").concat(n.hostname).concat(n.port?":"+n.port:"","/")}function g(o){return d.getCookie(o)||d.getDataFromLocalStorage(o)}function b(o,e,n){o&&e&&(d.setDataInLocalStorage(o,e),m(o,e,p,n,!0))}function m(o,e,n,t,r){for(var c=t.split("."),i=0;i= 0 and <= 1");break;case"normal":(0,n.logInfo)(m+"A/B Testing - user is NOT in the Control Group"),(0,a.Z)(i,"id5id.ext.abTestingControlGroup",!1)}return(0,n.logInfo)(m+"Decoded ID",i),i}},getId:function(e,r,t){if(y(e)){var a,s="https://id5-sync.com/g/v2/".concat(e.params.partner,".json"),p=r&&"boolean"==typeof r.gdprApplies&&r.gdprApplies?1:0,u=d.nX.getConsentData(),b=(0,c.n)(),h=t&&t.signature?t.signature:(f.forEach((function(e){v.getCookie(e)&&(a=JSON.parse(v.getCookie(e))||a)})),a&&a.signature||""),k={partner:e.params.partner,gdpr:p,nbPage:D(e.params.partner),o:"pbjs",rf:b.referer,top:b.reachedTop?1:0,u:b.stack[0]||window.location.href,v:"6.18.0"};!p||void 0===r.consentString||(0,n.isEmpty)(r.consentString)||(0,n.isEmptyStr)(r.consentString)||(k.gdpr_consent=r.consentString),void 0===u||(0,n.isEmpty)(u)||(0,n.isEmptyStr)(u)||(k.us_privacy=u),void 0===h||(0,n.isEmptyStr)(h)||(k.s=h),void 0===e.params.pd||(0,n.isEmptyStr)(e.params.pd)||(k.pd=e.params.pd),void 0===e.params.provider||(0,n.isEmptyStr)(e.params.provider)||(k.provider=e.params.provider);var C=function(e){return(0,o.Z)(e,"params.abTesting",{enabled:!1})}(e);return!0===C.enabled&&(k.ab_testing={enabled:!0,control_group_pct:C.controlGroupPct}),{callback:function(r){var t={success:function(t){var o,a;if(t)try{o=JSON.parse(t),(0,n.logInfo)(m+"response received from the server",o),S(e.params.partner,0),o.privacy&&_(g,JSON.stringify(o.privacy),30),e.storage.type===l&&(a=e.params.partner,(0,n.logInfo)(m+"removing legacy cookies"),f.forEach((function(e){v.setCookie("".concat(e)," ",I(-1)),v.setCookie("".concat(e,"_nb")," ",I(-1)),v.setCookie("".concat(e,"_").concat(a,"_nb")," ",I(-1)),v.setCookie("".concat(e,"_last")," ",I(-1))})))}catch(e){(0,n.logError)(m+e)}r(o)},error:function(e){(0,n.logError)(m+"getId fetch encountered an error",e),r()}};(0,n.logInfo)(m+"requesting an ID from the server",k),(0,i.h)(s,t,JSON.stringify(k),{method:"POST",withCredentials:!0})}}}},extendId:function(e,r,t){return y(e),D(e&&e.params&&e.params.partner||0),(0,n.logInfo)(m+"using cached ID",t),t}};function y(e){return e&&e.params&&e.params.partner&&"number"==typeof e.params.partner?e.storage&&e.storage.type&&e.storage.name?(e.storage.type!==l&&(0,n.logWarn)(m+"storage type recommended to be '".concat(l,"'. In a future release this may become a strict requirement")),e.storage.name!==u&&(0,n.logWarn)(m+"storage name recommended to be '".concat(u,"'. In a future release this may become a strict requirement")),!0):((0,n.logError)(m+"storage required to be set"),!1):((0,n.logError)(m+"partner required to be defined as a number"),!1)}function I(e){return new Date(Date.now()+864e5*e).toUTCString()}function h(e){return"".concat(u,"_").concat(e,"_nb")}function S(e,r){_(h(e),r,30)}function D(e){var r=function(e){var r,t,o=(r=h(e),""===(t=v.getDataFromLocalStorage("".concat(r,"_exp")))||t&&new Date(t).getTime()-Date.now()>0?v.getDataFromLocalStorage(r):(v.removeDataFromLocalStorage(r),null));return o?parseInt(o):0}(e)+1;return S(e,r),r}function _(e,r,t){v.setDataInLocalStorage("".concat(e,"_exp"),I(t)),v.setDataInLocalStorage("".concat(e),r)}(0,s.Bx)("userId",b),window.owpbjs.installedModules.push("id5IdSystem")}},function(e){e(e.s=5954)}]);"use strict";(self.owpbjsChunk=self.owpbjsChunk||[]).push([[9114],{4160:function(e,t,n){var i=n(9853),o=n(265),r=n(5755),s=n(3494),d=(0,n(5849).df)(),c={name:"identityLink",gvlid:97,decode:function(e){return{idl_env:e}},getId:function(e,t){var n=e&&e.params||{};if(n&&"string"==typeof n.pid){var r=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies?1:0,s=r?t.consentString:"",d=2===o.Z(t,"vendorData.tcfPolicyVersion");if(!r||s&&""!==s){var c="https://api.rlcdn.com/api/identity/envelope?pid=".concat(n.pid).concat(r?(d?"&ct=4&cv=":"&ct=1&cv=")+s:"");return{callback:function(e){window.ats?(i.logInfo("identityLink: ATS exists!"),window.ats.retrieveEnvelope((function(t){t?(i.logInfo("identityLink: An envelope can be retrieved from ATS!"),a(!0),e(JSON.parse(t).envelope)):l(c,e,n)}))):l(c,e,n)}}}i.logInfo("identityLink: Consent string is required to call envelope API.")}else i.logError("identityLink: requires partner id to be defined")}};function l(e,t,n){var o,s={success:function(e){var n;if(e)try{n=JSON.parse(e)}catch(e){i.logInfo(e)}t(n&&n.envelope?n.envelope:"")},error:function(e){i.logInfo("identityLink: identityLink: ID fetch encountered an error",e),t()}};n.notUse3P||d.getCookie("_lr_retry_request")||((o=new Date).setTime(o.getTime()+36e5),d.setCookie("_lr_retry_request","true",o.toUTCString()),i.logInfo("identityLink: A 3P retrieval is attempted!"),a(!1),(0,r.h)(e,s,void 0,{method:"GET",withCredentials:!0}))}function a(e){var t=new Date;t.setTime(t.getTime()+2592e6),d.setCookie("_lr_env_src_ats",e,t.toUTCString())}(0,s.Bx)("userId",c),window.owpbjs.installedModules.push("identityLinkIdSystem")}},function(e){e(e.s=4160)}]);"use strict";(self.owpbjsChunk=self.owpbjsChunk||[]).push([[9299],{3911:function(e,o,t){var a,i=t(9853),r=t(5755),n=t(3494),s=t(5849),c=t(7602),d="panoramaId",p="".concat(d,"_expiry"),l="_cc_id",v="lotamePanoramaId",m=864e5,g=(0,s.df)({gvlid:95,moduleName:v});function u(e){var o=null;if(g.cookiesAreEnabled()&&(o=g.getCookie(e,void 0)),g.hasLocalStorage()&&null===o){var t=g.getDataFromLocalStorage("".concat(e,"_exp"),void 0);(""===t||t&&new Date(t).getTime()-Date.now()>0)&&(o=g.getDataFromLocalStorage(e,void 0))}return o}function f(e,o){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,i.timestamp)()+7*m;if(e&&o){var r=new Date(t).toUTCString();g.cookiesAreEnabled()&&g.setCookie(e,o,r,"Lax",a,void 0),g.hasLocalStorage()&&(g.setDataInLocalStorage("".concat(e,"_exp"),String(t),void 0),g.setDataInLocalStorage(e,o,void 0))}}function S(e){if(e){if(g.cookiesAreEnabled()){var o=new Date(0).toUTCString();g.setCookie(e,"",o,"Lax",a,void 0)}g.hasLocalStorage()&&g.removeDataFromLocalStorage(e,void 0)}}var _={name:v,gvlid:95,decode:function(e,o){return(0,i.isStr)(e)?{lotamePanoramaId:e}:void 0},getId:function(e,o,t){a=_.findRootDomain();var n=(e&&e.params||{}).clientId,s=!(0,i.isEmpty)(n),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,o={data:u(d),expiryTimestampMs:0,clientExpiryTimestampMs:0};try{if(e){var t=u("".concat(p,"_").concat(e));(0,i.isStr)(t)&&(o.clientExpiryTimestampMs=parseInt(t,10))}var a=u(p);(0,i.isStr)(a)&&(o.expiryTimestampMs=parseInt(a,10))}catch(e){(0,i.logError)(e)}return o}(n),m=Date.now()>v.expiryTimestampMs;if(s&&Date.now()0)return d.getDataFromLocalStorage(o)}}function m(o,e){return function(t){"function"==typeof e&&e(),t(o)}}function p(o){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(o){var t=(0,n.parseUrl)(o);t.search.id=encodeURIComponent("pubcid:"+e);var i=(0,n.buildUrl)(t);return function(){(0,n.triggerPixel)(i)}}}function v(){return!!(d.cookiesAreEnabled()&&s(l,u)||d.hasLocalStorage()&&s(l,c))}var g={name:"sharedId",aliasName:"pubCommonId",gvlid:887,decode:function(o,e){if(!v())return(0,n.logInfo)(" Decoded value PubCommonId "+o),{pubcid:o};(0,n.logInfo)("PubCommonId decode: Has opted-out")},getId:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(v())(0,n.logInfo)("PubCommonId: Has opted-out");else{var t=r.VP.getCoppa();if(!t){var i=o.params,d=(i=void 0===i?{}:i).create,u=void 0===d||d,c=i.pixelUrl,l=e;if(!l){try{"object"===a(window[f])&&(l=window[f].getId())}catch(o){}l||(l=u&&(0,n.hasDeviceAccess)()?(0,n.generateUUID)():void 0)}var s=p(c,l);return{id:l,callback:m(l,s)}}(0,n.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId")}},extendId:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(v())return(0,n.logInfo)("PubCommonId: Has opted-out"),{id:void 0};var t=r.VP.getCoppa();if(t)(0,n.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");else{var i=o.params,a=(i=void 0===i?{}:i).extend,d=void 0!==a&&a,u=i.pixelUrl;if(d){if(u){var c=p(u,e);return{callback:c}}return{id:e}}}},domainOverride:function(){for(var o,e,t=document.domain.split("."),n="_gd".concat(Date.now()),i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:void 0,o=n?"".concat(e.name,"_").concat(n):e.name;try{if(e.type===P)t=U.getCookie(o);else if(e.type===D){var r=U.getDataFromLocalStorage("".concat(e.name,"_exp"));""===r?t=U.getDataFromLocalStorage(o):r&&new Date(r).getTime()-Date.now()>0&&(t=decodeURIComponent(U.getDataFromLocalStorage(o)))}"string"==typeof t&&"{"===t.trim().charAt(0)&&(t=JSON.parse(t))}catch(e){(0,f.logError)(e)}return t}function G(e){var t={consentString:"",gdprApplies:!1,apiVersion:0};return e&&(t.consentString=e.consentString,t.gdprApplies=e.gdprApplies,t.apiVersion=e.apiVersion),(0,f.cyrb53Hash)(JSON.stringify(t))}function Z(e){try{var t=new Date(Date.now()+2592e6).toUTCString();U.setCookie(j,G(e),t,"Lax")}catch(e){(0,f.logError)(e)}}function J(){try{return U.getCookie(j)}catch(e){(0,f.logError)(e)}}function Q(e){if(e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies){if(!e.consentString)return!1;if(1===e.apiVersion&&!1===(0,g.Z)(e,"vendorData.purposeConsents.1"))return!1;if(2===e.apiVersion&&!1===(0,g.Z)(e,"vendorData.purpose.consents.1"))return!1}return!0}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname;if(!U.cookiesAreEnabled())return e;var t,n,o=e.split(".");if(2==o.length)return e;var r=-2,i="_rdc".concat(Date.now()),a="writeable";do{t=o.slice(r).join(".");var s=new Date((0,f.timestamp)()+1e4).toUTCString();U.setCookie(i,a,s,"Lax",t,void 0);var c=U.getCookie(i,void 0);c===a?(n=!1,U.setCookie(i,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,t,void 0)):(r+=-1,n=Math.abs(r)<=o.length)}while(n);return t}function Y(e,t){var n=function(){};t&&(n=(0,f.delayExecution)((function(){clearTimeout(O),t()}),e.length)),e.forEach((function(e){e.callback((function(t){t?(e.config.storage&&W(e,t),e.idObj=e.submodule.decode(t,e.config)):(0,f.logInfo)("".concat(x,": ").concat(e.submodule.name," - request id responded with an empty value")),n()})),e.callback=void 0}))}function K(e){return Array.isArray(e)&&e.length?e.filter((function(e){return(0,f.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).reduce((function(e,t){return Object.keys(t.idObj).forEach((function(n){e[n]=t.idObj[n]})),e}),{}):{}}function X(e){var t=!1;if(R&&void 0!==_)for(var n in _)T.push(_[n]);if((void 0===_||R)&&(R=!1,_=function(e,t){var n=le(e,t),o=n.userIdModules;if(!n.hasValidated&&!Q(t))return(0,f.logWarn)("".concat(x," - gdpr permission not valid for local storage or cookies, exit module")),[];var r=J();return Z(t),o.reduce((function(e,n){return fe(n,t,r,!1),e.push(n),e}),[])}(T,s.rp.getConsentData()),_.length)){N(_);var o=_.filter((function(e){return(0,f.isFn)(e.callback)}));if(o.length)if(e&&k>0){t=!0;var r=!1,a=function(){r||(r=!0,e())};(0,f.logInfo)("".concat(x," - auction delayed by ").concat(k," at most to fetch ids")),O=setTimeout(a,k),Y(o,a)}else i.on(c.EVENTS.REQUEST_BIDS,(function e(){i.off(c.EVENTS.REQUEST_BIDS,e),E>0?setTimeout((function(){Y(o)}),E):Y(o)}))}e&&!t&&e()}function ee(e,t){X((function(){!function(e,t){[e].some((function(e){return!Array.isArray(e)||!e.length}))||e.forEach((function(e){e.bids&&(0,f.isArray)(e.bids)&&e.bids.forEach((function(e){var n=function(e,t){return Array.isArray(e)&&e.length&&t?e.filter((function(e){return!e.config.bidders||!(0,f.isArray)(e.config.bidders)||(0,o.q9)(e.config.bidders,t)})).filter((function(e){return(0,f.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).reduce((function(e,t){return Object.keys(t.idObj).forEach((function(n){e[n]=t.idObj[n]})),e}),{}):{}}(t,e.bidder);Object.keys(n).length&&(e.userId=n,e.userIdAsEids=(0,d.HQ)(n))}))}))}(t.adUnits||(0,a.R)().adUnits,_);var n=A&&(te()||[]).find((function(e){return e.source===A}));if(n&&"string"==typeof(0,g.Z)(n,"uids.0.id")){var r=n.uids[0].id.replace(/[\W_]/g,"");r.length>=32&&r.length<=150?(0,f.isGptPubadsDefined)()?window.googletag.pubads().setPublisherProvidedId(r):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(r)}))):(0,f.logWarn)("User ID - Googletag Publisher Provided ID for ".concat(A," is not between 32 and 150 characters - ").concat(r))}e.call(this,t)}))}function te(){return X(),(0,d.HQ)(K(_))}function ne(e){return X(),(0,d.HQ)(function(e,t){if(!Array.isArray(e)||!e.length)return{};var n=e.filter((function(e){return(0,f.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length&&d.UR[Object.keys(e.idObj)[0]].source===t}));return(0,f.isEmpty)(n)?[]:n[0].idObj}(_,e))[0]}function oe(e,t,n){var o={};if((0,f.isFn)(n)){(0,f.logInfo)("".concat(x," - Getting encrypted signal from custom function : ").concat(n.name," & source : ").concat(e," "));var r=n(e);o[e]=r?re(r):null}else{var i=ne(e);(0,f.logInfo)("".concat(x," - Getting encrypted signal for eids :").concat(JSON.stringify(i))),(0,f.isEmpty)(i)||(o[i.source]=!0===t?re(i):i.uids[0].id)}var a=Promise.resolve(o[e]);return(0,f.logInfo)("".concat(x," - Fetching encrypted eids: ").concat(o[e])),a}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n="";return 1===t&&(n="object"===I(e)?window.btoa(JSON.stringify(e)):window.btoa(e)),"".concat(t,"||").concat(n)}function ie(e){var t=c.MODULE_PARAM_TO_UPDATE_FOR_SSO[e.name];if(t){var n=se()||{},o=window.PWT&&window.PWT.ssoEnabled&&n.emailHash?n.emailHash:n.pubProvidedEmailHash?n.pubProvidedEmailHash:void 0;t.forEach((function(t){e.params[t.key]="id5Id"===e.name?function(e,t){var n={1:e&&e.SHA256||void 0,5:t?btoa(t):void 0},o=Object.keys((0,f.skipUndefinedValues)(n)).map((function(e){return n[e]&&e+"="+n[e]})).join("&");return btoa(o)}(o,n.userID):o?o[t.hashType]:void 0}))}}function ae(){var e=c.REFRESH_IDMODULES_LIST.PRIMARY_MODULES,t=c.REFRESH_IDMODULES_LIST.SCRIPT_BASED_MODULES;for(var n in F){var o=F[n].name;e.indexOf(o)>=0&&(V.push(o),ie(F[n])),t.indexOf(o)>=0&&z.push(o)}}function se(){return M}function ce(e,t){var n={};"connected"===t.status?(window.PWT=window.PWT||{},window.PWT.fbAt=t.authResponse.accessToken,window.FB&&window.FB.api("/me?fields=email&access_token="+window.PWT.fbAt,(function(t){(0,f.logInfo)("SSO - Data received from FB API"),t.error?(0,f.logInfo)("SSO - User information could not be retrieved by facebook api [",t.error.message,"]"):((0,f.logInfo)("SSO - Information successfully retrieved by Facebook API."),ue(t.email||void 0,n),e.setUserIdentities({emailHash:n}))}))):(0,f.logInfo)("SSO - Error fetching login information from facebook")}function ue(e,t){e=void 0!==e?e.trim().toLowerCase():"",new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/).test(e)&&(t.MD5=h()(e).toString(),t.SHA1=v()(e).toString(),t.SHA256=b()(e).toString())}var de,le=(0,u.z3)("sync",(function(e,t){return{userIdModules:e,hasValidated:t&&t.hasValidated}}),"validateGdprEnforcement");function fe(e,t,n,o){if(e.config.storage){var r,i=q(e.config.storage),a=!1;if("number"==typeof e.config.storage.refreshInSeconds){var s=new Date(q(e.config.storage,"last"));a=s&&Date.now()-s.getTime()>1e3*e.config.storage.refreshInSeconds}!i||a||o||!function(e,t){return null!=e&&e===G(t)}(n,t)?r=e.submodule.getId(e.config,t,i):"function"==typeof e.submodule.extendId&&(r=e.submodule.extendId(e.config,t,i)),(0,f.isPlainObject)(r)&&(r.id&&(W(e,r.id),i=r.id),"function"==typeof r.callback&&(e.callback=r.callback)),i&&(e.idObj=e.submodule.decode(i,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var c=e.submodule.getId(e.config,t,void 0);(0,f.isPlainObject)(c)&&("function"==typeof c.callback&&(e.callback=c.callback),c.id&&(e.idObj=e.submodule.decode(c.id,e.config)))}}function ge(e){for(var t=!1,n=0;n<_.length;n++)if(e.config.name.toLowerCase()===_[n].config.name.toLowerCase()){t=!0,_[n]=e;break}t||_.push(e)}function pe(){var e=function(e,t,n){return Array.isArray(e)?e.reduce((function(e,t){return!t||(0,f.isEmptyStr)(t.name)||(!t.storage||(0,f.isEmptyStr)(t.storage.type)||(0,f.isEmptyStr)(t.storage.name)||-1===n.indexOf(t.storage.type)?(0,f.isPlainObject)(t.value)?e.push(t):t.storage||t.value||e.push(t):e.push(t)),e}),[]):[]}(F,0,B);if(e.length){ae();var t=L.filter((function(e){return!(0,o.sE)(T,(function(t){return t.name===e.name}))}));T=t.map((function(t){var n=(0,o.sE)(e,(function(e){return 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),t.findRootDomain=$,n?{submodule:t,config:n,callback:void 0,idObj:void 0}:null})).filter((function(e){return null!==e})),!C&&T.length&&((0,a.R)().requestBids.before(ee,40),(0,f.logInfo)("".concat(x," - usersync config updated for ").concat(T.length," submodules: "),T.map((function(e){return e.submodule.name}))),C=!0)}}de=r.vc,A=void 0,T=[],F=[],C=!1,_=void 0,-1!==(B=[U.localStorageIsEnabled()?D:null,U.cookiesAreEnabled()?P:null].filter((function(e){return null!==e}))).indexOf(P)&&U.getCookie(H)?(0,f.logInfo)("".concat(x," - opt-out cookie found, exit module")):-1!==B.indexOf(D)&&U.getDataFromLocalStorage(H)?(0,f.logInfo)("".concat(x," - opt-out localStorage found, exit module")):(de.getConfig("userSync",(function(e){var t=e.userSync;A=t.ppid,t&&t.userIds&&(F=t.userIds,E=(0,f.isNumber)(t.syncDelay)?t.syncDelay:500,k=(0,f.isNumber)(t.auctionDelay)?t.auctionDelay:0,pe())})),(0,a.R)().getUserIds=function(){return X(),K(_)},(0,a.R)().getUserIdsAsEids=te,(0,a.R)().getEncryptedEidsForSource=oe,(0,a.R)().registerSignalSources=function(){if(window.googletag){window.googletag.encryptedSignalProviders=window.googletag.encryptedSignalProviders||[];var e=r.vc.getConfig("userSync.encryptedSignalSources");if(e){var t=e.registerDelay||0;setTimeout((function(){e.sources&&e.sources.forEach((function(e){var t=e.source,n=e.encrypt,o=e.customFunc;t.forEach((function(e){window.googletag.encryptedSignalProviders.push({id:e,collectorFunction:function(){return oe(e,n,o)}})}))}))}),t)}else(0,f.logWarn)("".concat(x," - ESP : encryptedSignalSources config not defined under userSync Object"))}},(0,a.R)().refreshUserIds=function(e,t,n){void 0!==n&&(R=n);var o=e?e.submoduleNames:null;o||(o=[]),X((function(){var e=s.rp.getConsentData(),n=le(T,e),r=n.userIdModules;if(n.hasValidated||Q(e)){var i=J();Z(e);var a,c=[],u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e))){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(r);try{for(u.s();!(a=u.n()).done;){var d=a.value;o.length>0&&-1===o.indexOf(d.submodule.name)||((0,f.logInfo)("".concat(x," - refreshing ").concat(d.submodule.name)),fe(d,e,i,!0),ge(d),_.length&&N(_),(0,f.isFn)(d.callback)&&c.push(d))}}catch(e){u.e(e)}finally{u.f()}c.length>0&&Y(c),t&&t()}else(0,f.logWarn)("".concat(x," - gdpr permission not valid for local storage or cookies, exit module"))}))},(0,a.R)().setUserIdentities=function(e){if((0,f.isEmpty)(e))M={};else{var t={};e.pubProvidedEmail&&(ue(e.pubProvidedEmail,t),e.pubProvidedEmailHash=t,delete e.pubProvidedEmail),w(M,e),window.PWT&&window.PWT.loginEvent&&(ae(),(0,a.R)().refreshUserIds({submoduleNames:V}),function(e){var t=0,n=se()||{};for(t in e)switch(e[t]){case"zeotapIdPlus":if(window.zeotap&&(0,f.isFn)(window.zeotap.callMethod)){var o={email:n.emailHash.SHA256};window.zeotap.callMethod("setUserIdentities",o,!0)}break;case"identityLink":if(window.ats&&(0,f.isFn)(window.ats.start)){var r=window.ats.outputCurrentConfiguration();r.emailHashes=n.emailHash?[n.emailHash.MD5,n.emailHash.SHA1,n.emailHash.SHA256]:void 0,window.ats.start(r)}break;case"publinkId":if(window.conversant&&(0,f.isFn)(window.conversant.launch)){var i=window.conversant.getLauncherObject();i.emailHashes=n.emailHash?[n.emailHash.MD5,n.emailHash.SHA256]:void 0,window.conversant.launch("publink","start",i)}}}(z),window.PWT.loginEvent=!1)}},(0,a.R)().getUserIdentities=se,(0,a.R)().onSSOLogin=function(e){var t,n=this,o={};if(window.PWT&&window.PWT.ssoEnabled)switch(e.provider){case void 0:case"facebook":"facebook"===e.provider?window.FB&&window.FB.getLoginStatus((function(e){ce(n,e)}),!0):window.FB&&window.FB.Event.subscribe("auth.statusChange",(function(e){ce(n,e)}));break;case"google":t=e.googleUserObject.getBasicProfile().getEmail()||void 0,(0,f.logInfo)("SSO - Information successfully retrieved by Google API"),ue(t,o),n.setUserIdentities({emailHash:o})}},(0,a.R)().onSSOLogout=function(){this.setUserIdentities({})},(0,a.R)().getUserIdsAsEidBySource=ne),(0,u.bA)("userId",(function(e){(0,o.sE)(L,(function(t){return t.name===e.name}))||(L.push(e),pe())})),window.owpbjs.installedModules.push("userId")},8249:function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},r=o.lib={},i=r.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[o+i>>>2]|=a<<24-(o+i)%4*8}else for(i=0;i>>2]=n[i>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,o=[],r=function(t){var n=987654321,o=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&o)<<16)+(t=18e3*(65535&t)+(t>>16)&o)&o;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},i=0;i>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],r=0;r>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new a.init(n,t)}},d=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},l=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,o=n.words,r=n.sigBytes,i=this.blockSize,s=r/(4*i),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*i,u=e.min(4*c,r);if(c){for(var d=0;d>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,a=e[t+0],c=e[t+1],g=e[t+2],p=e[t+3],h=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],S=e[t+10],I=e[t+11],_=e[t+12],O=e[t+13],E=e[t+14],k=e[t+15],A=i[0],x=i[1],P=i[2],D=i[3];A=u(A,x,P,D,a,7,s[0]),D=u(D,A,x,P,c,12,s[1]),P=u(P,D,A,x,g,17,s[2]),x=u(x,P,D,A,p,22,s[3]),A=u(A,x,P,D,h,7,s[4]),D=u(D,A,x,P,m,12,s[5]),P=u(P,D,A,x,v,17,s[6]),x=u(x,P,D,A,y,22,s[7]),A=u(A,x,P,D,b,7,s[8]),D=u(D,A,x,P,w,12,s[9]),P=u(P,D,A,x,S,17,s[10]),x=u(x,P,D,A,I,22,s[11]),A=u(A,x,P,D,_,7,s[12]),D=u(D,A,x,P,O,12,s[13]),P=u(P,D,A,x,E,17,s[14]),A=d(A,x=u(x,P,D,A,k,22,s[15]),P,D,c,5,s[16]),D=d(D,A,x,P,v,9,s[17]),P=d(P,D,A,x,I,14,s[18]),x=d(x,P,D,A,a,20,s[19]),A=d(A,x,P,D,m,5,s[20]),D=d(D,A,x,P,S,9,s[21]),P=d(P,D,A,x,k,14,s[22]),x=d(x,P,D,A,h,20,s[23]),A=d(A,x,P,D,w,5,s[24]),D=d(D,A,x,P,E,9,s[25]),P=d(P,D,A,x,p,14,s[26]),x=d(x,P,D,A,b,20,s[27]),A=d(A,x,P,D,O,5,s[28]),D=d(D,A,x,P,g,9,s[29]),P=d(P,D,A,x,y,14,s[30]),A=l(A,x=d(x,P,D,A,_,20,s[31]),P,D,m,4,s[32]),D=l(D,A,x,P,b,11,s[33]),P=l(P,D,A,x,I,16,s[34]),x=l(x,P,D,A,E,23,s[35]),A=l(A,x,P,D,c,4,s[36]),D=l(D,A,x,P,h,11,s[37]),P=l(P,D,A,x,y,16,s[38]),x=l(x,P,D,A,S,23,s[39]),A=l(A,x,P,D,O,4,s[40]),D=l(D,A,x,P,a,11,s[41]),P=l(P,D,A,x,p,16,s[42]),x=l(x,P,D,A,v,23,s[43]),A=l(A,x,P,D,w,4,s[44]),D=l(D,A,x,P,_,11,s[45]),P=l(P,D,A,x,k,16,s[46]),A=f(A,x=l(x,P,D,A,g,23,s[47]),P,D,a,6,s[48]),D=f(D,A,x,P,y,10,s[49]),P=f(P,D,A,x,E,15,s[50]),x=f(x,P,D,A,m,21,s[51]),A=f(A,x,P,D,_,6,s[52]),D=f(D,A,x,P,p,10,s[53]),P=f(P,D,A,x,S,15,s[54]),x=f(x,P,D,A,c,21,s[55]),A=f(A,x,P,D,b,6,s[56]),D=f(D,A,x,P,k,10,s[57]),P=f(P,D,A,x,v,15,s[58]),x=f(x,P,D,A,O,21,s[59]),A=f(A,x,P,D,h,6,s[60]),D=f(D,A,x,P,I,10,s[61]),P=f(P,D,A,x,g,15,s[62]),x=f(x,P,D,A,w,21,s[63]),i[0]=i[0]+A|0,i[1]=i[1]+x|0,i[2]=i[2]+P|0,i[3]=i[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var i=e.floor(o/4294967296),a=o;n[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var d=c[u];c[u]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,o,r,i,a){var s=e+(t&n|~t&o)+r+a;return(s<>>32-i)+t}function d(e,t,n,o,r,i,a){var s=e+(t&o|n&~o)+r+a;return(s<>>32-i)+t}function l(e,t,n,o,r,i,a){var s=e+(t^n^o)+r+a;return(s<>>32-i)+t}function f(e,t,n,o,r,i,a){var s=e+(n^(t|~o))+r+a;return(s<>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),o.MD5)},2783:function(e,t,n){var o,r,i,a,s,c,u,d;e.exports=(r=(o=d=n(8249)).lib,i=r.WordArray,a=r.Hasher,s=o.algo,c=[],u=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],r=n[1],i=n[2],a=n[3],s=n[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var d=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=d<<1|d>>>31}var l=(o<<5|o>>>27)+s+c[u];l+=u<20?1518500249+(r&i|~r&a):u<40?1859775393+(r^i^a):u<60?(r&i|r&a|i&a)-1894007588:(r^i^a)-899497514,s=a,a=i,i=r<<30|r>>>2,r=o,o=l}n[0]=n[0]+o|0,n[1]=n[1]+r|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(o+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),o.SHA1=a._createHelper(u),o.HmacSHA1=a._createHmacHelper(u),d.SHA1)},2153:function(e,t,n){var o;e.exports=(o=n(8249),function(e){var t=o,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),o=2;o<=n;o++)if(!(t%o))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var o=2,r=0;r<64;)t(o)&&(r<8&&(s[r]=n(e.pow(o,.5))),c[r]=n(e.pow(o,1/3)),r++),o++}();var u=[],d=a.SHA256=i.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],r=n[1],i=n[2],a=n[3],s=n[4],d=n[5],l=n[6],f=n[7],g=0;g<64;g++){if(g<16)u[g]=0|e[t+g];else{var p=u[g-15],h=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=u[g-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[g]=h+u[g-7]+v+u[g-16]}var y=o&r^o&i^r&i,b=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&l)+c[g]+u[g];f=l,l=d,d=s,s=a+w|0,a=i,i=r,r=o,o=w+(b+y)|0}n[0]=n[0]+o|0,n[1]=n[1]+r|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+d|0,n[6]=n[6]+l|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(o/4294967296),n[15+(r+64>>>9<<4)]=o,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(d),t.HmacSHA256=i._createHmacHelper(d)}(Math),o.SHA256)}},function(e){e(e.s=9999)}]);owpbjs.processQueue();!(function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)})([(function(e,t,n){var r=n(1),i=n(5),a=i.getMetaInfo(window);window.PWT=window.PWT||{},window.PWT.bidMap=window.PWT.bidMap||{},window.PWT.bidIdMap=window.PWT.bidIdMap||{},window.PWT.isIframe=window.PWT.isIframe||a.isInIframe,window.PWT.protocol=window.PWT.protocol||a.protocol,window.PWT.secure=window.PWT.secure||a.secure,window.PWT.pageURL=window.PWT.pageURL||a.pageURL,window.PWT.refURL=window.PWT.refURL||a.refURL,window.PWT.isSafeFrame=window.PWT.isSafeFrame||!1,window.PWT.safeFrameMessageListenerAdded=window.PWT.safeFrameMessageListenerAdded||!1,window.PWT.udpv=window.PWT.udpv||i.findQueryParamInURL(a.isIframe?a.refURL:a.pageURL,"pwtv"),i.findQueryParamInURL(a.isIframe?a.refURL:a.pageURL,"pwtc")&&i.enableDebugLog(),i.findQueryParamInURL(a.isIframe?a.refURL:a.pageURL,"pwtvc")&&i.enableVisualDebugLog(),window.PWT.getUserIds=function(){return i.getUserIds()},window.PWT.versionDetails=i.getOWConfig(),r.init(window)}),(function(e,t,n){var r=n(2),i=n(4),a=n(5),s=this,o=i.COMMON.PREBID_NAMESPACE;s.setConfig=function(){if(a.isFunction(window[o].setConfig)||"function"==typeof window[o].setConfig){if(r.isIdentityOnly()){var e={debug:a.isDebugLogEnabled(),userSync:{syncDelay:2e3}};r.getGdpr()&&(e.consentManagement||(e.consentManagement={}),e.consentManagement.gdpr={cmpApi:r.getCmpApi(),timeout:r.getGdprTimeout(),allowAuctionWithoutConsent:r.getAwc()}),r.getCCPA()&&(e.consentManagement||(e.consentManagement={}),e.consentManagement.usp={cmpApi:r.getCCPACmpApi(),timeout:r.getCCPATimeout()}),window.PWT.ssoEnabled=r.isSSOEnabled()||!1,r.isUserIdModuleEnabled()&&(e.userSync.userIds=a.getUserIdConfiguration()),a.handleHook(i.HOOKS.PREBID_SET_CONFIG,[e]),window[o].setConfig(e)}window[o].requestBids([])}},t.initIdHub=function(e){r.isUserIdModuleEnabled()&&(s.setConfig(),r.isIdentityOnly()&&(r.getIdentityConsumers().indexOf(i.COMMON.PREBID)>-1&&!a.isUndefined(e[r.PBJS_NAMESPACE])&&!a.isUndefined(e[r.PBJS_NAMESPACE].que)?(e[r.PBJS_NAMESPACE].que.unshift((function(){var t=e[r.PBJS_NAMESPACE].version.split(".");if(3===t.length&&(+t[0].split("v")[1]>3||"v3"===t[0]&&+t[1]>=3))a.log("Adding On Event "+e[r.PBJS_NAMESPACE]+".addAddUnits()"),e[r.PBJS_NAMESPACE].onEvent("addAdUnits",(function(){a.updateAdUnits(e[r.PBJS_NAMESPACE].adUnits)})),e[r.PBJS_NAMESPACE].onEvent("beforeRequestBids",(function(e){a.updateAdUnits(e)}));else{a.log("Adding Hook on"+e[r.PBJS_NAMESPACE]+".addAddUnits()");var n=e[r.PBJS_NAMESPACE],i="addAdUnits";a.addHookOnFunction(n,!1,i,s.newAddAdUnitFunction)}})),a.log("Identity Only Enabled and setting config")):a.logWarning("window.pbjs is undefined")))},t.init=function(e){return a.isObject(e)?(s.initIdHub(e),!0):!1}}),(function(e,t,n){var r=n(3),i=n(4),a=null;a=this,a[i.COMMON.OWVERSION]=r[i.CONFIG.COMMON][i.COMMON.OWVERSION],a[i.COMMON.PBVERSION]=r[i.CONFIG.COMMON][i.COMMON.PBVERSION],t.getGdpr=function(){var e=r[i.CONFIG.COMMON][i.CONFIG.GDPR_CONSENT]||i.CONFIG.DEFAULT_GDPR_CONSENT;return"1"===e},t.getCmpApi=function(){return r[i.CONFIG.COMMON][i.CONFIG.GDPR_CMPAPI]||i.CONFIG.DEFAULT_GDPR_CMPAPI},t.getGdprTimeout=function(){var e=r[i.CONFIG.COMMON][i.CONFIG.GDPR_TIMEOUT];return e?window.parseInt(e):i.CONFIG.DEFAULT_GDPR_TIMEOUT},t.getAwc=function(){var e=r[i.CONFIG.COMMON][i.CONFIG.GDPR_AWC]||i.CONFIG.DEFAULT_GDPR_AWC;return"1"===e},t.isUserIdModuleEnabled=function(){return parseInt(r[i.CONFIG.COMMON][i.COMMON.ENABLE_USER_ID]||i.CONFIG.DEFAULT_USER_ID_MODULE)},t.getIdentityPartners=function(){return r[i.COMMON.IDENTITY_PARTNERS]},t.isIdentityOnly=function(){return parseInt(r[i.CONFIG.COMMON][i.COMMON.IDENTITY_ONLY]||i.CONFIG.DEFAULT_IDENTITY_ONLY)},t.getIdentityConsumers=function(){return(r[i.CONFIG.COMMON][i.COMMON.IDENTITY_CONSUMERS]||"").toLowerCase()},t.getCCPA=function(){var e=r[i.CONFIG.COMMON][i.CONFIG.CCPA_CONSENT]||i.CONFIG.DEFAULT_CCPA_CONSENT;return"1"===e},t.getCCPACmpApi=function(){return r[i.CONFIG.COMMON][i.CONFIG.CCPA_CMPAPI]||i.CONFIG.DEFAULT_CCPA_CMPAPI},t.getCCPATimeout=function(){var e=r[i.CONFIG.COMMON][i.CONFIG.CCPA_TIMEOUT];return e?window.parseInt(e):i.CONFIG.DEFAULT_CCPA_TIMEOUT},t.getProfileID=function(){return r.pwt[i.CONFIG.PROFILE_ID]||"0"},t.getProfileDisplayVersionID=function(){return r.pwt[i.CONFIG.PROFILE_VERSION_ID]||"0"},t.isSSOEnabled=function(){return 1===parseInt(r[i.CONFIG.COMMON][i.CONFIG.SSO_ENABLED])},t.PBJS_NAMESPACE=r[i.CONFIG.COMMON][i.COMMON.PBJS_NAMESPACE]||"pbjs"}),(function(e,t){t.pwt={identityOnly:"1",gcv:"183",pdvid:"9",pubid:"159637",dataURL:"t.pubmatic.com/wl?",winURL:"t.pubmatic.com/wt?",owv:"v24.2.0",pbv:"v6.18.0",usePBSAdapter:"0",reduceCodeSize:"1",metaDataPattern:0,sendAllBids:"0",adserver:"IDHUB",gdpr:"0",cmp:0,gdprTimeout:0,awc:0,platform:"display",refreshInterval:0,priceGranularity:0,adServerCurrency:0,singleImpression:"0",identityEnabled:"1",identityConsumers:"Prebid",ccpa:"0",ccpaCmpApi:0,ccpaTimeout:0,sChain:"0",sChainObj:0,auTimeout:"1000",t:"1000",ssTimeout:0,prebidObjName:"pbjs",pubAnalyticsAdapter:"0",usePBJSKeys:"0",abTestEnabled:"0",testGroupSize:0,testType:0,granularityMultiplier:0,floorPriceModuleEnabled:"0",floorSource:0,floorAuctionDelay:0,jsonUrl:0,ssoEnabled:"0",autoRefreshAdslots:0,videoLengths:0,videoLengthMatching:0,adPodsEnabled:0},t.adapters={},t.identityPartners={criteo:{name:"criteo",rev_share:"0.0",timeout:0,throttle:"100",display:0},identityLink:{name:"identityLink","storage.type":"cookie","storage.expires":"30","storage.name":"idl_env","params.pid":"1258","params.loadATS":0,"params.storageType":0,"params.detectionType":0,"params.urlParameter":0,"params.cssSelectors":0,"params.logging":0,"params.detectDynamicNodes":0,"params.enableCustomId":0,"params.accountID":0,"params.customerIDRegex":0,"params.detectionMechanism":0,"params.detectionEventType":0,"params.triggerElements":0,rev_share:"0.0",timeout:0,throttle:"100",display:0},lotamePanoramaId:{name:"lotamePanoramaId","params.clientId":0,rev_share:"0.0",timeout:0,throttle:"100",display:0},unifiedId:{name:"unifiedId","storage.type":"cookie","storage.name":"pbjs-unifiedid","storage.expires":"60","params.url":"//match.adsrvr.org/track/rid?ttd_pid=pubmatic&fmt=json",rev_share:"0.0",timeout:0,throttle:"100",display:0},id5Id:{name:"id5Id","storage.type":"html5","storage.expires":"90","storage.name":"id5id","storage.refreshInSeconds":"28800","params.partner":"751","params.abTesting.enabled":0,"params.abTesting.controlGroupPct":0,rev_share:"0.0",timeout:0,throttle:"100",display:0},sharedId:{name:"sharedId","params.syncTime":0,"storage.type":"cookie","storage.name":"_pubcid","storage.expires":"180","params.pixelUrl":0,rev_share:"0.0",timeout:0,throttle:"100",display:0},"33acrossId":{name:"33acrossId","storage.type":"html5","storage.expires":"90","storage.name":"33acrossId","storage.refreshInSeconds":"28800","params.pid":"0015a0000344WNWAA2",display:0,rev_share:"0.0",throttle:"100"}},t.testConfigDetails={},t.test_pwt={},t.identityPartners={}}),(function(e,t){t.COMMON={BID_PRECISION:2,DEAL_KEY_FIRST_PART:"pwtdeal_",DEAL_KEY_VALUE_SEPARATOR:"_-_",PREBID_PREFIX:"PB_",CONFIG:"config",DIV_ID:"divID",PARAMS:"params",SIZES:"sizes",HEIGHT:"height",WIDTH:"width",SLOTS:"slots",KEY_GENERATION_PATTERN_VALUE:"kgpv",KEY_VALUE_PAIRS:"kvp",IMPRESSION_ID:"iid",PARENT_ADAPTER_PREBID:"prebid",ANALYTICS_CURRENCY:"USD",NATIVE_MEDIA_TYPE_CONFIG:"nativeConfig",NATIVE_ONLY:"nativeOnly",OW_CLICK_NATIVE:"openwrap-native-click",BID_ID:"owbidid",AD_SERVER_CURRENCY:"adServerCurrency",SINGLE_IMPRESSION:"singleImpression",PREBID_NAMESPACE:"owpbjs",ENABLE_USER_ID:"identityEnabled",IDENTITY_PARTNERS:"identityPartners",IDENTITY_CONSUMERS:"identityConsumers",IDENTITY_ONLY:"identityOnly",PREBID:"prebid",PROTOCOL:"https://",SLOT_CONFIG:"slotConfig",DEFAULT:"default",ADSERVER:"adserver",OWVERSION:"owv",PBVERSION:"pbv",SCHAINOBJECT:"sChainObj",SCHAIN:"sChain",PBJS_NAMESPACE:"prebidObjName",TEST_GROUP_DETAILS:"testConfigDetails",TEST_PWT:"test_pwt",PRICE_GRANULARITY:"priceGranularity",GRANULARITY_MULTIPLIER:"granularityMultiplier",TEST_PARTNER:"test_adapters",REDUCE_CODE_SIZE:"reduceCodeSize",TEST_IDENTITY_PARTNER:"test_identityPartners"},t.CONFIG={GLOBAL:"global",ADAPTERS:"adapters",COMMON:"pwt",TIMEOUT:"t",KEY_GENERATION_PATTERN:"kgp",REGEX_KEY_GENERATION_PATTERN:"kgp_rx",REGEX_KEY_LOOKUP_MAP:"klm_rx",KEY_LOOKUP_MAP:"klm",SERVER_SIDE_KEY:"sk",PUBLISHER_ID:"pubid",PROFILE_ID:"pid",PROFILE_VERSION_ID:"pdvid",LOGGER_URL:"dataURL",TRACKER_URL:"winURL",REV_SHARE:"rev_share",THROTTLE:"throttle",BID_PASS_THROUGH:"pt",GLOBAL_KEY_VALUE:"gkv",MASK_BIDS:"maksBids",META_DATA_PATTERN:"metaDataPattern",SEND_ALL_BIDS:"sendAllBids",SERVER_SIDE_ENABLED:"serverSideEnabled",GDPR_CONSENT:"gdpr",CONSENT_STRING:"cns",GDPR_CMPAPI:"cmpApi",GDPR_TIMEOUT:"gdprTimeout",GDPR_AWC:"awc",DEFAULT_GDPR_CMPAPI:"iab",DEFAULT_GDPR_TIMEOUT:1e4,DEFAULT_GDPR_AWC:"0",DEFAULT_SINGLE_IMPRESSION:"0",DEFAULT_USER_ID_MODULE:"0",DEFAULT_IDENTITY_ONLY:"0",DEFAULT_GDPR_CONSENT:"0",DISABLE_AJAX_TIMEOUT:"disableAjaxTimeout",CCPA_CONSENT:"ccpa",CCPA_CMPAPI:"ccpaCmpApi",CCPA_TIMEOUT:"ccpaTimeout",DEFAULT_CCPA_CMPAPI:"iab",DEFAULT_CCPA_TIMEOUT:1e4,CACHE_PATH:"/cache",CACHE_URL:"https://ow.pubmatic.com",VIDEO_PARAM:"video",ENABLE_PB_PM_ANALYTICS:"pubAnalyticsAdapter",FLOOR_PRICE_MODULE_ENABLED:"floorPriceModuleEnabled",FLOOR_AUCTION_DELAY:"floorAuctionDelay",DEFAULT_FLOOR_AUCTION_DELAY:100,FLOOR_JSON_URL:"jsonUrl",FLOOR_ENFORCE_JS:"floorType",DEFAULT_FLOOR_ENFORCE_JS:!0,USE_PREBID_KEYS:"usePBJSKeys",AB_TEST_ENABLED:"abTestEnabled",TIMEOUT_ADJUSTMENT:50,SSO_ENABLED:"ssoEnabled"},t.METADATA_MACROS={WIDTH:"_W_",HEIGHT:"_H_",PARTNER:"_P_",GROSS_ECPM:"_GE_",NET_ECPM:"_NE_",BID_COUNT:"_BC_",PARTNER_COUNT:"_PC_"},t.MACROS={WIDTH:"_W_",HEIGHT:"_H_",AD_UNIT_ID:"_AU_",AD_UNIT_INDEX:"_AUI_",INTEGER:"_I_",DIV:"_DIV_"},t.SLOT_STATUS={CREATED:0,PARTNERS_CALLED:1,TARGETING_ADDED:2,DISPLAYED:3},t.WRAPPER_TARGETING_KEYS={BID_ID:"pwtsid",BID_STATUS:"pwtbst",BID_ECPM:"pwtecp",BID_DEAL_ID:"pwtdid",BID_ADAPTER_ID:"pwtpid",BID_SIZE:"pwtsz",PUBLISHER_ID:"pwtpubid",PROFILE_ID:"pwtprofid",PROFILE_VERSION_ID:"pwtverid",META_DATA:"pwtm",PLATFORM_KEY:"pwtplt",USER_IDS:"pwtuid",CACHE_ID:"pwtcid",CACHE_URL:"pwtcurl",CACHE_PATH:"pwtcpath"},t.IGNORE_PREBID_KEYS={hb_bidder:1,hb_adid:1,hb_pb:1,hb_size:1,hb_deal:1,hb_uuid:1,hb_cache_host:1,hb_cache_id:1,hb_adomain:1},t.LOGGER_PIXEL_PARAMS={TIMESTAMP:"tst",PAGE_URL:"purl",PAGE_DOMAIN:"orig",TIMEOUT:"to"},t.MESSAGES={M1:": In fetchbids.",M2:": Throttled.",M3:": adapter must implement the fetchBids() function.",M4:"BidManager: entry ",M5:": Callback.",M6:"bidAlreadExists : ",M7:": Exiting from fetchBids.",M8:". Config not found, ignored.",M10:"Bid is rejected as ecpm is NULL.",M11:"Bid is rejected as ecpm is NaN: ",M12:"Existing bid ecpm: ",M13:", is lower than new bid ecpm ",M14:", so we are replacing bid from partner ",M15:", is greater than new bid ecpm ",M16:", so we are not replacing bid from partner ",M17:"Post timeout bid, ignored.",M18:"Bid is selected for partner ",M19:": Found winning adapterID: ",M20:"Bid is rejected as ecpm is empty string.",M21:": error in respose handler.",M22:"Bid is rejected as ecpm is <= 0.",M23:"Existing bid is default-bid with zero ecpm, thus replacing it with the new bid from partner ",M24:"Passsed argument is not a bidAdaptor",M25:"Bid details not found for bidID: ",M26:"Currency Module is Activated. Ad Server Currency is: ",M27:"Invalid regex pattern ",M28:"Unable to match regex pattern as kgpv length is not 3",M29:"Unable to parse Partner configuration",M30:"AB Test Enabled With Config",M31:"AB Test Enabled With Partner Config",IDENTITY:{M1:"Unable to get User Id from OpenIdentity",M2:"Setting UserIds to EB ",M3:"Unable to parse User ID configuration",M4:"User Id Condiguration Sent to prebid ",M5:"Identity only enabled, no need to process. Calling Original function ",M6:" function is not available. Make sure userId module is included."}},t.PLATFORM_VALUES={DISPLAY:"display",NATIVE:"native",VIDEO:"video"},t.FORMAT_VALUES={BANNER:"banner",VIDEO:"video",NATIVE:"native",OTHER:"other"},t.HOOKS={PREBID_SET_CONFIG:"HookForPrebidSetConfig",PREBID_REQUEST_BIDS:"HookForPrebidRequestBids",BID_RECEIVED:"HookForBidReceived",POST_AUCTION_KEY_VALUES:"HookForPostAuctionKeyValues"},t.SRA_ENABLED_BIDDERS={rubicon:1,improvedigital:2},t.EXCLUDE_IDENTITY_PARAMS=["rev_share","timeout","throttle"],t.TOLOWERCASE_IDENTITY_PARAMS=["storage.type"],t.JSON_VALUE_KEYS=["params.clientIdentifier"],t.AD_SERVER={DFP:"DFP",CUSTOM:"CUSTOM"},t.SPECIAL_CASE_ID_PARTNERS={intentIqId:{"params.partner":"number"},sharedId:{"params.syncTime":"number"},id5Id:{"params.partner":"number"},parrableId:{"params.timezoneFilter.allowedZones":"array"},imuid:{"params.cid":"number"}},t.ID_PARTNERS_CUSTOM_VALUES={id5Id:[{key:"params.provider",value:"pubmatic-identity-hub"}]},t.EXCLUDE_PARTNER_LIST=["pubProvidedId"],t.MEDIATYPE={BANNER:0,VIDEO:1,NATIVE:2},t.BID_STATUS={BID_REJECTED:"bidRejected"},t.PUBMATIC_ALIASES=["pubmatic2"],t.PBSPARAMS={adapter:"prebidServer",endpoint:"https://ow.pubmatic.com/pbs/openrtb2/auction",syncEndpoint:"https://ow.pubmatic.com/cookie_sync/?sec=1"},t.TIMEOUT_CONFIG={MaxTimeout:500,MinTimeout:200},t.DEFAULT_ALIASES={adg:"adgeneration",districtm:"appnexus",districtmDMX:"dmx",pubmatic2:"pubmatic"},t.YAHOOSSP="yahoossp"}),(function(e,t,n){function r(e,t){return p.call(e)==="[object "+t+"]"}var i=n(2),a=n(4),s=!1;t.debugLogIsEnabled=s;var o="Array",d="String",c="Function",E="Number",p=Object.prototype.toString,u=this;u.idsAppendedToAdUnits=!1,t.isA=r,t.isFunction=function(e){return u.isA(e,c)},t.isString=function(e){return u.isA(e,d)},t.isArray=function(e){return u.isA(e,o)},t.isNumber=function(e){return u.isA(e,E)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isOwnProperty=function(e,t){return u.isObject(e)&&e.hasOwnProperty?Object.prototype.hasOwnProperty.call(e,t):!1},t.isUndefined=function(e){return"undefined"==typeof e},t.enableDebugLog=function(){u.debugLogIsEnabled=!0},t.isDebugLogEnabled=function(){return u.debugLogIsEnabled},t.enableVisualDebugLog=function(){u.debugLogIsEnabled=!0,u.visualDebugLogIsEnabled=!0},t.isEmptyObject=function(e){return u.isObject(e)&&0===Object.keys(e).length};var I="[OpenWrap] : ",l="[OpenWrap] : [Error]";t.log=function(e){u.debugLogIsEnabled&&console&&this.isFunction(console.log)&&(this.isString(e)?console.log((new Date).getTime()+" : "+I+e):console.log(e))},t.logError=function(e){u.debugLogIsEnabled&&console&&this.isFunction(console.log)&&(this.isString(e)?console.error((new Date).getTime()+" : "+I+e):console.error(e))},t.logWarning=function(e){u.debugLogIsEnabled&&console&&this.isFunction(console.log)&&(this.isString(e)?console.warn((new Date).getTime()+" : "+I+e):console.warn(e))},t.error=function(e){console.log((new Date).getTime()+" : "+l,e)},t.forEachOnObject=function(e,t){if(u.isObject(e)&&u.isFunction(t))for(var n in e)u.isOwnProperty(e,n)&&t(n,e[n])},t.getTopFrameOfSameDomain=function(e){try{if(e.parent.document!=e.document)return u.getTopFrameOfSameDomain(e.parent)}catch(t){}return e},t.metaInfo={},t.getMetaInfo=function(e){var t,n={},r=512;n.pageURL="",n.refURL="",n.protocol="https://",n.secure=1,n.isInIframe=u.isIframe(e);try{t=u.getTopFrameOfSameDomain(e),n.refURL=(t.refurl||t.document.referrer||"").substr(0,r),n.pageURL=(t!==window.top&&""!=t.document.referrer?t.document.referrer:t.location.href).substr(0,r),n.protocol=(function(e){return"http:"===e.location.protocol?(n.secure=0,"http://"):(n.secure=1,"https://")})(t)}catch(i){}return n.pageDomain=u.getDomainFromURL(n.pageURL),u.metaInfo=n,n},t.isIframe=function(e){try{return e.self!==e.top}catch(t){return!1}},t.findQueryParamInURL=function(e,t){return u.isOwnProperty(u.parseQueryParams(e),t)},t.parseQueryParams=function(e){var t=u.createDocElement(window,"a");t.href=e;var n={};if(t.search){var r=t.search.replace("?","");r=r.split("&"),u.forEachOnArray(r,(function(e,t){t=t.split("=");var r=t[0]||"",i=t[1]||"";n[r]=i}))}return n},t.createDocElement=function(e,t){return e.document.createElement(t)},t.addHookOnFunction=function(e,t,n,r){var i=e;if(e=t?e.__proto__:e,u.isObject(e)&&u.isFunction(e[n])){var a=e[n];e[n]=r(i,a)}else u.logWarning("in assignNewDefination: oldReference is not a function")},t.getUserIdConfiguration=function(){var e=[];return owpbjs.onSSOLogin({}),u.forEachOnObject(i.getIdentityPartners(),(function(t,n){a.EXCLUDE_PARTNER_LIST.includes(t)||e.push(u.getUserIdParams(n))})),u.log(a.MESSAGES.IDENTITY.M4+JSON.stringify(e)),e},t.getUserIdParams=function(e){var t={};u.applyDataTypeChangesIfApplicable(e),u.applyCustomParamValuesfApplicable(e);for(var n in e)try{-1==a.EXCLUDE_IDENTITY_PARAMS.indexOf(n)&&(a.TOLOWERCASE_IDENTITY_PARAMS.indexOf(n)>-1&&(e[n]=e[n].toLowerCase()),a.JSON_VALUE_KEYS.indexOf(n)>-1&&(e[n]=JSON.parse(e[n])),t=u.getNestedObjectFromString(t,".",n,e[n]))}catch(r){u.logWarning(a.MESSAGES.IDENTITY.M3,r)}return t&&t.params&&"true"==t.params.loadATS&&u.initLiveRampAts(t),t&&t.params&&"true"==t.params.loadIDP&&u.initZeoTapJs(t),t&&t.params&&"true"==t.params.loadLauncher&&u.initLauncherJs(t),t},t.getUserIds=function(){return u.isFunction(window[a.COMMON.PREBID_NAMESPACE].getUserIds)?window[a.COMMON.PREBID_NAMESPACE].getUserIds():(u.logWarning("getUserIds"+a.MESSAGES.IDENTITY.M6),void 0)},t.getDomainFromURL=function(e){var t=window.document.createElement("a");return t.href=e,t.hostname},t.handleHook=function(e,t){u.isFunction(window.PWT[e])&&(u.log("For Hook-name: "+e+", calling window.PWT."+e+"function."),window.PWT[e].apply(window.PWT,t))},t.forEachOnArray=function(e,t){if(u.isArray(e)&&u.isFunction(t))for(var n=0,r=e.length;r>n;n++)t(n,e[n])},t.getUserIdsAsEids=function(){return u.isFunction(window[a.COMMON.PREBID_NAMESPACE].getUserIdsAsEids)?window[a.COMMON.PREBID_NAMESPACE].getUserIdsAsEids():(u.logWarning("getUserIdsAsEids"+a.MESSAGES.IDENTITY.M6),void 0)},t.getNestedObjectFromArray=function(e,t,n){for(var r=e,i=r,a=0;a0&&(e.params.cssSelectors=e.params.cssSelectors.split(","));var t=owpbjs.getUserIdentities()||{},n=i.isSSOEnabled()||!1,r=e.params.detectionMechanism,a="true"===e.params.enableCustomId?!0:!1,s={placementID:e.params.pid,storageType:e.params.storageType,logging:e.params.logging};switch(a&&(s.accountID=e.params.accountID,s.customerIDRegex=e.params.customerIDRegex,s.detectionSubject="customerIdentifier"),r){case void 0:case"detect":s.detectionType=e.params.detectionType,s.urlParameter=e.params.urlParameter,s.cssSelectors=e.params.cssSelectors,s.detectDynamicNodes=e.params.detectDynamicNodes,s.detectionEventType=e.params.detectionEventType,e.params.triggerElements&&e.params.triggerElements.length>0&&(e.params.triggerElements=e.params.triggerElements.split(","),s.triggerElements=e.params.triggerElements);break;case"direct":var o=n&&t.emailHash?t.emailHash:t.pubProvidedEmailHash?t.pubProvidedEmailHash:void 0;s.emailHashes=o&&[o.MD5,o.SHA1,o.SHA256]||void 0,a&&u.isFunction(owpbjs.getUserIdentities)&&void 0!==owpbjs.getUserIdentities()&&(s.customerID=owpbjs.getUserIdentities().customerID||void 0)}return s},t.initLiveRampAts=function(e){function t(){var t=document.createElement("script"),n=u.getLiverampParams(e);t.onload=function(){window.ats&&window.ats.start(n)},t.src="https://ats.rlcdn.com/ats.js",document.body.appendChild(t)}"complete"==document.readyState?t():window.addEventListener("load",(function(){setTimeout(t,1e3)}))},t.initLauncherJs=function(e){function t(){var t=document.createElement("script"),n=u.getPublinkLauncherParams(e);t.onload=function(){window.conversant.getLauncherObject=function(){return n},window.conversant&&window.conversant.launch("publink","start",n)},t.src="https://secure.cdn.fastclick.net/js/cnvr-launcher/latest/launcher-stub.min.js",document.body.appendChild(t)}window.cnvr_launcher_options={lid:e.params.launcher_id},"complete"==document.readyState?t():window.addEventListener("load",(function(){setTimeout(t,1e3)}))},t.getPublinkLauncherParams=function(e){e.params.cssSelectors&&e.params.cssSelectors.length>0&&(e.params.cssSelectors=e.params.cssSelectors.split(","));var t=owpbjs.getUserIdentities()||{},n=i.isSSOEnabled()||!1,r=e.params.detectionMechanism,a={apiKey:e.params.api_key,siteId:e.params.site_id};switch(r){case void 0:case"detect":a.urlParameter=e.params.urlParameter,a.cssSelectors=e.params.cssSelectors,a.detectionSubject="email";break;case"direct":var s=n&&t.emailHash?t.emailHash:t.pubProvidedEmailHash?t.pubProvidedEmailHash:void 0;a.emailHashes=s&&[s.MD5,s.SHA256]||void 0}return a},t.initZeoTapJs=function(e){function t(){var t=document,n=window,r=owpbjs.getUserIdentities()||{},a=i.isSSOEnabled()||!1,s={email:a&&r.emailHash?r.emailHash.SHA256:r.pubProvidedEmailHash?r.pubProvidedEmailHash.SHA256:void 0},o=t.createElement("script");o.type="text/javascript",o.crossorigin="anonymous",o.async=!0,o.src="https://content.zeotap.com/sdk/idp.min.js",o.onload=function(){},t=t.getElementsByTagName("script")[0];var d={partnerId:e.partnerId,allowIDP:!0,useConsent:i.getCCPA()||i.getGdpr(),checkForCMP:i.getCCPA()||i.getGdpr()};t.parentNode.insertBefore(o,t),t=n.zeotap||{_q:[],_qcmp:[]},!(function(e,t,n){for(var r=0;r0&&(n=n.filter((function(e){if(e.source){if(t.has(e.source))return!1;t.add(e.source)}return!0}))),e.userIdAsEids=n}},t.applyDataTypeChangesIfApplicable=function(e){var t;if(e.name in a.SPECIAL_CASE_ID_PARTNERS)for(partnerName in a.SPECIAL_CASE_ID_PARTNERS)if(partnerName===e.name)for(key in a.SPECIAL_CASE_ID_PARTNERS[partnerName]){var n=e[key];switch(a.SPECIAL_CASE_ID_PARTNERS[partnerName][key]){case"number":n&&"number"!=typeof n&&(t=parseInt(n),isNaN(t)?u.logError(partnerName+": Invalid parameter value '"+n+"' for parameter "+key):e[key]=t);break;case"array":if(n)if("string"==typeof n){var r=n.split(",").map((function(e){return e.trim()}));r.length>0&&(e[key]=r)}else"number"==typeof n&&(e[key]=[n]);default:return}}},t.applyCustomParamValuesfApplicable=function(e){if(e.name in a.ID_PARTNERS_CUSTOM_VALUES)for(var t=a.ID_PARTNERS_CUSTOM_VALUES[e.name],n=0;n