':""},n.getDefinedParams=function(e,n){return n.filter((function(n){return e[n]})).reduce((function(n,t){return l(n,r({},t,e[t]))}),{})},n.isValidMediaTypes=function(e){var n=["banner","native","video"],t=["instream","outstream"];return!!Object.keys(e).every((function(e){return n.includes(e)}))&&(!e.video||!e.video.context||t.includes(e.video.context))},n.unsupportedBidderMessage=function(e,n){var t=e.mediaType||Object.keys(e.mediaTypes).join(", "),r=1===n.length?"This bidder":"These bidders";return"\n "+e.code+" is a "+t+" ad unit\n containing bidders that don't support "+t+": "+n.join(", ")+".\n "+r+" won't fetch demand.\n "};var g=t(9),b=(function(e){return e&&e.__esModule?e:{default:e}})(t(46)),v=t(4),y=!1,m=Object.prototype.toString,h=null;try{h=console.info.bind(window.console)}catch(e){}n.replaceTokenInString=function(e,n,t){return this._each(n,(function(n,r){n=void 0===n?"":n;var i=t+r.toUpperCase()+t,o=new RegExp(i,"g");e=e.replace(o,n)})),e};var S=(function(){var e=0;return function(){return++e}})();n.getUniqueIdentifierStr=i,n.generateUUID=function e(n){return n?(n^16*Math.random()>>n/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},n.getBidIdParameter=function(e,n){return n&&n[e]?n[e]:""},n.tryAppendQueryString=function(e,n,t){return t?e+=n+"="+encodeURIComponent(t)+"&":e},n.parseQueryStringParameters=function(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n},n.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?c(e).map((function(n){return n+"="+encodeURIComponent(f(e,n))})).join("&"):""},n.getTopWindowLocation=function(){var e=void 0;try{window.top.location.toString(),e=window.top.location}catch(n){e=window.location}return e},n.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(n){e=""}return e},n.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},n.logWarn=function(e){E()&&console.warn&&console.warn("WARNING: "+e)},n.logInfo=function(e,n){E()&&a()&&h&&(n&&0!==n.length||(n=""),h("INFO: "+e+(""===n?"":" : params : "),n))},n.logMessage=function(e){E()&&a()&&console.log("MESSAGE: "+e)},n.hasConsoleLogger=a;var E=function(){if(!1===g.config.getConfig("debug")&&!1===y){var e="TRUE"===T(v.DEBUG_MODE).toUpperCase();g.config.setConfig({debug:e}),y=!0}return!!g.config.getConfig("debug")};n.debugTurnedOn=E,n.logError=function(){E()&&s()&&console.error.apply(console,arguments)},n.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=i(),e.height=0,e.width=0,e.border="0px",e.hspace="0",e.vspace="0",e.marginWidth="0",e.marginHeight="0",e.style.border="0",e.scrolling="no",e.frameBorder="0",e.src="about:blank",e.style.display="none",e};var T=function(e){var n="[\\?&]"+e+"=([^&#]*)",t=new RegExp(n).exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))};n.getParameterByName=T,n.hasValidBidRequest=function(e,n,t){for(var r=!1,i=0;i0);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0},n.isEmptyStr=function(e){return this.isStr(e)&&(!e||0===e.length)},n._each=function(e,n){if(!this.isEmpty(e)){if(this.isFn(e.forEach))return e.forEach(n,this);var t=0,r=e.length;if(r>0)for(;t'},n.createTrackPixelIframeHtml=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(t&&(e=encodeURI(e)),r&&(r='sandbox="'+r+'"'),"'):""},n.getIframeDocument=function(e){if(e){var n=void 0;try{n=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){this.logError("Cannot get iframe document",e)}return n}},n.getValueString=function(e,n,t){return void 0===n||null===n?t:this.isStr(n)?n:this.isNumber(n)?n.toString():void this.logWarn("Unsuported type for param: "+e+" required type: String")}},1:function(e,n,t){"use strict";function r(e){var n=e.bidderCode,t=e.requestId,r=e.bidderRequestId;return e.adUnits.map((function(e){return e.bids.filter((function(e){return e.bidder===n})).map((function(n){var i=e.sizes;if(e.sizeMapping){var o=(0,d.mapSizes)(e);if(""===o)return"";i=o}e.mediaTypes&&(f.isValidMediaTypes(e.mediaTypes)?n=a({},n,{mediaTypes:e.mediaTypes}):f.logError("mediaTypes is not correctly configured for adunit "+e.code));var c=e.nativeParams||f.deepAccess(e,"mediaTypes.native");return c&&(n=a({},n,{nativeParams:(0,u.processNativeAdUnitParams)(c)})),n=a({},n,(0,s.getDefinedParams)(e,["mediaType","renderer"])),a({},n,{placementCode:e.code,transactionId:e.transactionId,sizes:i,bidId:n.bid_id||f.getUniqueIdentifierStr(),bidderRequestId:r,requestId:t})}))})).reduce(s.flatten,[]).filter((function(e){return""!==e}))}function i(e){var n=[];return f.parseSizesInput(e.sizes).forEach((function(e){var t=e.split("x"),r={w:parseInt(t[0]),h:parseInt(t[1])};n.push(r)})),n}function o(e){var t=[];return n.videoAdapters.includes(e)&&t.push("video"),u.nativeAdapters.includes(e)&&t.push("native"),t}var a=Object.assign||function(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===r?[]:r;e&&t?"function"==typeof e.callBids?(b[t]=e,i.includes("video")&&n.videoAdapters.push(t),i.includes("native")&&u.nativeAdapters.push(t)):f.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):f.logError("bidAdaptor or bidderCode not specified")},n.aliasBidAdapter=function(e,n){if(void 0===b[n]){var t=b[e];if(void 0===t)f.logError('bidderCode "'+e+'" is not an existing bidder.',"adaptermanager.aliasBidAdapter");else try{var r=void 0,i=o(e);if(t.constructor.prototype!=Object.prototype)(r=new t.constructor).setBidderCode(n);else{var s=t.getSpec();r=(0,c.newBidder)(a({},s,{code:n}))}this.registerBidAdapter(r,n,{supportedMediaTypes:i})}catch(n){f.logError(e+" bidder does not currently support aliasing.","adaptermanager.aliasBidAdapter")}}else f.logMessage('alias name "'+n+'" has been already specified.')},n.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,m[t]=n):f.logError('Prebid Error: Analytics adaptor error for analytics "'+t+'"\n analytics adapter must implement an enableAnalytics() function'):f.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},n.enableAnalytics=function(e){f.isArray(e)||(e=[e]),f._each(e,(function(e){var n=m[e.provider];n?n.enableAnalytics(e):f.logError("Prebid Error: no analytics adapter found in registry for\n "+e.provider+".")}))},n.setBidderSequence=function(e){y[e]?h=e:f.logWarn("Invalid order: "+e+". Bidder Sequence was not set.")},n.getBidAdapter=function(e){return b[e]},n.setS2SConfig=function(e){v=e},n.setS2STestingModule=function(e){g=e}},11:function(e,n,t){"use strict";var r=Object.assign||function(e){for(var n=1;n0;)try{this.cmd.shift().call()}catch(e){o.logError("Error processing Renderer command: ",e)}}},18:function(e,n,t){"use strict";function r(e){function n(){return{image:[],iframe:[]}}function t(){if(g.syncEnabled&&e.browserSupportsCookies&&!l){try{r(),d()}catch(e){return a.logError("Error firing user syncs",e)}f=n(),l=!0}}function r(){g.pixelEnabled&&a.shuffle(f.image).forEach((function(e){var n=i(e,2),t=n[0],r=n[1];a.logMessage("Invoking image pixel user sync for bidder: "+t),a.triggerPixel(r)}))}function d(){g.iframeEnabled&&a.shuffle(f.iframe).forEach((function(e){var n=i(e,2),t=n[0],r=n[1];a.logMessage("Invoking iframe user sync for bidder: "+t),a.insertUserSyncIframe(r)}))}function u(e,n){return e[n]?e[n]+=1:e[n]=1,e}var c={},f=n(),l=!1,p={},g=e.config;return s.config.getConfig("userSync",(function(e){g=o(g,e.userSync)})),c.registerSync=function(e,n,t){return g.syncEnabled&&a.isArray(f[e])?n?Number(p[n])>=g.syncsPerBidder?a.logWarn('Number of user syncs exceeded for "{$bidder}"'):g.enabledBidders&&g.enabledBidders.length&&g.enabledBidders.indexOf(n)<0?a.logWarn('Bidder "'+n+'" not supported'):(f[e].push([n,t]),void(p=u(p,n))):a.logWarn("Bidder is required for registering sync"):a.logWarn('User sync type "'+e+'" not supported')},c.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return window.setTimeout(t,Number(e));t()},c.triggerUserSyncs=function(){g.enableOverride&&c.syncUsers()},c}Object.defineProperty(n,"__esModule",{value:!0}),n.userSync=void 0;var i=(function(){function e(e,n){var t=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return t}return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return e(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),o=Object.assign||function(e){for(var n=1;n0||e.dealId)&&(a=b(e.bidderCode,e)),e.adserverTargeting=T(e.adserverTargeting||{},a)}function l(e){if(e.timeToRespond>pbjs.cbTimeout+pbjs.timeoutBuffer){n.executeCallback(!0)}}function p(e){k.emit(N.EVENTS.BID_RESPONSE,e),pbjs._bidsReceived.push(e),e.adUnitCode&&a(e.adUnitCode)&&y(e.adUnitCode),d()&&n.executeCallback()}function g(e){B.config.getConfig("usePrebidCache")?(0,j.store)([e],(function(n,t){n?R.logWarn("Failed to save to the video cache: "+n+". Video bid must be discarded."):(e.videoCacheKey=t[0].uuid,e.vastUrl||(e.vastUrl=(0,j.getCacheUrl)(e.videoCacheKey)),p(e)),l(e)})):(p(e),l(e))}function b(e,n){var t={},r=pbjs.bidderSettings;return n&&r&&v(t,E(),n),e&&n&&r&&r[e]&&r[e][N.JSON_MAPPING.ADSERVER_TARGETING]?(v(t,r[e],n),n.alwaysUseBid=r[e].alwaysUseBid,n.sendStandardTargeting=r[e].sendStandardTargeting):x[e]&&(v(t,x[e],n),n.alwaysUseBid=x[e].alwaysUseBid,n.sendStandardTargeting=x[e].sendStandardTargeting),n.native&&(t=T({},t,(0,w.getNativeTargeting)(n))),t}function v(e,n,t){var r=n[N.JSON_MAPPING.ADSERVER_TARGETING];return t.size=t.getSize(),R._each(r,(function(r){var i=r.key,o=r.val;if(e[i]&&R.logWarn("The key: "+i+" is getting ovewritten"),R.isFn(o))try{o=o(t)}catch(e){R.logError("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&"hb_deal"!==i||!R.isEmptyStr(o)&&null!==o&&void 0!==o?e[i]=o:R.logInfo("suppressing empty key '"+i+"' from adserver targeting")})),e}function y(e){var n=[e];m(D.byAdUnit,n)}function m(e,n){var t=this;R.isArray(e)&&e.forEach((function(e){var r=n||pbjs._adUnitCodes,i=[pbjs._bidsReceived.filter(_.adUnitsFilter.bind(t,r)).reduce(h,{})];e.apply(pbjs,i)}))}function h(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}function S(e){var n=e.bidderCode,t=e.cpm,r=void 0;if(pbjs.bidderSettings&&(n&&pbjs.bidderSettings[n]&&"function"==typeof pbjs.bidderSettings[n].bidCpmAdjustment?r=pbjs.bidderSettings[n].bidCpmAdjustment:pbjs.bidderSettings[N.JSON_MAPPING.BD_SETTING_STANDARD]&&"function"==typeof pbjs.bidderSettings[N.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(r=pbjs.bidderSettings[N.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),r))try{t=r(e.cpm,T({},e))}catch(e){R.logError("Error during bid adjustment","bidmanager.js",e)}t>=0&&(e.cpm=t)}function E(){var e=B.config.getConfig("priceGranularity"),n=pbjs.bidderSettings;return n[N.JSON_MAPPING.BD_SETTING_STANDARD]||(n[N.JSON_MAPPING.BD_SETTING_STANDARD]={}),n[N.JSON_MAPPING.BD_SETTING_STANDARD][N.JSON_MAPPING.ADSERVER_TARGETING]||(n[N.JSON_MAPPING.BD_SETTING_STANDARD][N.JSON_MAPPING.ADSERVER_TARGETING]=[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(n){return e===N.GRANULARITY_OPTIONS.AUTO?n.pbAg:e===N.GRANULARITY_OPTIONS.DENSE?n.pbDg:e===N.GRANULARITY_OPTIONS.LOW?n.pbLg:e===N.GRANULARITY_OPTIONS.MEDIUM?n.pbMg:e===N.GRANULARITY_OPTIONS.HIGH?n.pbHg:e===N.GRANULARITY_OPTIONS.CUSTOM?n.pbCg:void 0}},{key:"hb_size",val:function(e){return e.size}},{key:"hb_deal",val:function(e){return e.dealId}}]),n[N.JSON_MAPPING.BD_SETTING_STANDARD]}var T=Object.assign||function(e){for(var n=1;n-1))return r({},t.substring(0,20),[e.adserverTargeting[t]])})).filter((function(e){return e})))})).filter((function(e){return e}))}function d(e){var n=v.TARGETING_KEYS.concat(p.NATIVE_TARGETING_KEYS),t=[],i=(0,f.groupBy)(pbjs._bidsReceived,"adUnitCode");return Object.keys(i).forEach((function(e){var n=(0,f.groupBy)(i[e],"bidderCode");Object.keys(n).forEach((function(e){return t.push(n[e].reduce(f.getHighestCpm,c()))}))})),t.map((function(e){if(e.adserverTargeting)return r({},e.adUnitCode,u(e,n.filter((function(n){return void 0!==e.adserverTargeting[n]}))))})).filter((function(e){return e}))}function u(e,n){return n.map((function(n){return r({},(n+"_"+e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}function c(e){return{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0}}var f=t(0),l=t(9),p=t(15),g=t(2),b=t(0),v=t(4),y=n,m=[];y.resetPresetTargeting=function(e){if((0,f.isGptPubadsDefined)()){var n=i(e),t=pbjs.adUnits.filter((function(e){return n.includes(e.code)}));window.googletag.pubads().getSlots().forEach((function(e){m.forEach((function(n){t.forEach((function(t){t.code!==e.getAdUnitPath()&&t.code!==e.getSlotElementId()||e.setTargeting(n,null)}))}))}))}},y.getAllTargeting=function(e){var n=i(e),t=o(n).concat(s(n)).concat(l.config.getConfig("enableSendAllBids")?d():[]);return t.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===m.indexOf(Object.keys(e)[0])&&(m=Object.keys(e).concat(m))}))}))})),t},y.setTargeting=function(e){window.googletag.pubads().getSlots().forEach((function(n){e.filter((function(e){return Object.keys(e)[0]===n.getAdUnitPath()||Object.keys(e)[0]===n.getSlotElementId()})).forEach((function(e){return e[Object.keys(e)[0]].forEach((function(e){e[Object.keys(e)[0]].map((function(t){return b.logMessage("Attempting to set key value for slot: "+n.getSlotElementId()+" key: "+Object.keys(e)[0]+" value: "+t),t})).forEach((function(t){n.setTargeting(Object.keys(e)[0],t)}))}))}))}))},y.getWinningBids=function(e){var n=i(e);return pbjs._bidsReceived.filter((function(e){return n.includes(e.adUnitCode)})).filter((function(e){return e.cpm>0})).map((function(e){return e.adUnitCode})).filter(f.uniques).map((function(e){return pbjs._bidsReceived.filter((function(n){return n.adUnitCode===e?n:null})).reduce(f.getHighestCpm,c(e))}))},y.setTargetingForAst=function(){var e=pbjs.getAdserverTargeting();Object.keys(e).forEach((function(n){return Object.keys(e[n]).forEach((function(t){if(b.logMessage("Attempting to set targeting for targetId: "+n+" key: "+t+" value: "+e[n][t]),b.isStr(e[n][t])||b.isArray(e[n][t])){var r={};r["hb_adid"===t.substring(0,"hb_adid".length)?t.toUpperCase():t]=e[n][t],window.apntag.setKeywords(n,r)}}))}))},y.isApntagDefined=function(){if(window.apntag&&b.isFn(window.apntag.setKeywords))return!0}},22:function(e,n,t){var r=t(344),i=t(349);e.exports=t(23)?function(e,n,t){return r.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}},23:function(e,n,t){e.exports=!t(24)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},24:function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},25:function(e,n){var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}},26:function(e,n,t){var r=t(35);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},27:function(e,n,t){var r=t(40)("unscopables"),i=Array.prototype;void 0==i[r]&&t(22)(i,r,{}),e.exports=function(e){i[r][e]=!0}},28:function(e,n,t){"use strict";function r(e,n,t){var r="";if(!i(n))return r;var a=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),d=n.buckets.find((function(n){if(e>a.max*t){var i=n.precision;void 0===i&&(i=s),r=(n.max*t).toFixed(i)}else if(e<=n.max*t&&e>=n.min*t)return n}));return d&&(r=o(e,d.increment,d.precision,t)),r}function i(e){if(a.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){void 0!==e.min&&e.max&&e.increment||(n=!1)})),n}function o(e,n,t,r){void 0===t&&(t=s);var i=1/(n*r);return(Math.floor(e*i)/i).toFixed(t)}Object.defineProperty(n,"__esModule",{value:!0});var a=t(0),s=2,d={buckets:[{min:0,max:5,increment:.5}]},u={buckets:[{min:0,max:20,increment:.1}]},c={buckets:[{min:0,max:20,increment:.01}]},f={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},l={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};n.getPriceBucketString=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=""),{low:""===i?"":r(e,d,t),med:""===i?"":r(e,u,t),high:""===i?"":r(e,c,t),auto:""===i?"":r(e,l,t),dense:""===i?"":r(e,f,t),custom:""===i?"":r(e,n,t)}},n.isValidPriceConfig=i},29:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasNonVideoBidder=n.videoBidder=n.videoAdUnit=void 0,n.isValidVideoBid=function(e){var n=(0,i.getBidRequest)(e.adId),t=n&&(0,i.deepAccess)(n,"mediaTypes.video"),r=t&&(0,i.deepAccess)(t,"context");return!n||t&&r!==a?o.config.getConfig("usePrebidCache")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)("\n This bid contains only vastXml and will not work when prebid-cache is disabled.\n Try enabling prebid-cache with pbjs.setConfig({ usePrebidCache: true });\n "),!1):r!==a||!(!e.renderer&&!n.renderer)};var r=t(1),i=t(0),o=t(9),a="outstream",s=(n.videoAdUnit=function(e){var n="video"===e.mediaType,t=(0,i.deepAccess)(e,"mediaTypes.video");return n||t},n.videoBidder=function(e){return r.videoAdapters.includes(e.bidder)});n.hasNonVideoBidder=function(e){return e.bids.filter((function(e){return!s(e)})).length}},3:function(e,n,t){"use strict";function r(e,n){var t=n&&n.bidId||i.getUniqueIdentifierStr(),r=e||0;this.bidderCode=n&&n.bidder||"",this.width=0,this.height=0,this.statusMessage=(function(){switch(r){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.adId=t,this.mediaType="banner",this.getStatusCode=function(){return r},this.getSize=function(){return this.width+"x"+this.height}}var i=t(0);n.createBid=function(e,n){return new r(e,n)}},30:function(e,n){var t;t=(function(){return this})();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},31:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]},32:function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},33:function(e,n,t){var r=t(351);e.exports=function(e,n,t){if(r(e),void 0===n)return e;switch(t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,i){return e.call(n,t,r,i)}}return function(){return e.apply(n,arguments)}}},339:function(e,n,t){e.exports=t(340)},34:function(e,n,t){var r=t(33),i=t(26),o=t(36),a=t(38),s=t(352);e.exports=function(e,n){var t=1==e,d=2==e,u=3==e,c=4==e,f=6==e,l=5==e||f,p=n||s;return function(n,s,g){for(var b,v,y=o(n),m=i(y),h=r(s,g,3),S=a(m.length),E=0,T=t?p(n,S):d?p(n,0):void 0;S>E;E++)if((l||E in m)&&(b=m[E],v=h(b,E,y),e))if(t)T[E]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return E;case 2:T.push(b)}else if(c)return!1;return f?-1:u||c?c:T}}},340:function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(){h._bidsRequested=[],h._bidsReceived=h._bidsReceived.filter((function(e){return!h._adUnitCodes.includes(e.adUnitCode)}))}function o(e,n,t){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=n,e.defaultView.frameElement.height=t)}function a(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){E.logError("Error processing command :","prebid.js",e)}}))}var s="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=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,o=e.adUnitCodes;I.emit("requestBids");var a=h.cbTimeout=t||m.config.getConfig("bidderTimeout");if(r=r||h.adUnits,E.logInfo("Invoking pbjs.requestBids",arguments),o&&o.length?r=r.filter((function(e){return o.includes(e.code)})):o=r&&r.map((function(e){return e.code})),r.filter(f.videoAdUnit).filter(f.hasNonVideoBidder).forEach((function(e){var n=e.bids.filter((function(e){return!(0,f.videoBidder)(e)})).map((function(e){return e.bidder}));E.logWarn(E.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter(f.videoBidder)})),r.filter(l.nativeAdUnit).filter(l.hasNonNativeBidder).forEach((function(e){var n=e.bids.filter((function(e){return!(0,l.nativeBidder)(e)})).map((function(e){return e.bidder}));E.logWarn(E.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter(l.nativeBidder)})),P)R.push((function(){h.requestBids({bidsBackHandler:n,timeout:a,adUnits:r,adUnitCodes:o})}));else{if(P=!0,h._adUnitCodes=o,T.externalCallbackReset(),i(),!r||0===r.length)return E.logMessage("No adUnits configured. No bids requested."),"function"==typeof n&&T.addOneTimeCallback(n,!1),void T.executeCallback();var s=T.executeCallback.bind(T,!0),d=setTimeout(s,a);(0,y.setAjaxTimeout)(a),"function"==typeof n&&T.addOneTimeCallback(n,d),A.callBids({adUnits:r,adUnitCodes:o,cbTimeout:a}),0===h._bidsRequested.length&&T.executeCallback()}},h.addAdUnits=function(e){E.logInfo("Invoking pbjs.addAdUnits",arguments),E.isArray(e)?(e.forEach((function(e){return e.transactionId=E.generateUUID()})),h.adUnits.push.apply(h.adUnits,e)):"object"===(void 0===e?"undefined":s(e))&&(e.transactionId=E.generateUUID(),h.adUnits.push(e)),I.emit(N)},h.onEvent=function(e,n,t){E.logInfo("Invoking pbjs.onEvent",arguments),E.isFn(n)?!t||k[e].call(null,t)?I.on(e,n,t):E.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):E.logError('The event handler provided is not a function and was not set on event "'+e+'".')},h.offEvent=function(e,n,t){E.logInfo("Invoking pbjs.offEvent",arguments),t&&!k[e].call(null,t)||I.off(e,n,t)},h.addCallback=function(e,n){E.logWarn("pbjs.addCallback will be removed in Prebid 1.0. Please use onEvent instead"),E.logInfo("Invoking pbjs.addCallback",arguments);var t=null;return e&&n&&"function"==typeof n?(t=E.getUniqueIdentifierStr,T.addCallback(t,n,e),t):(E.logError("error registering callback. Check method signature"),t)},h.removeCallback=function(){return E.logWarn("pbjs.removeCallback will be removed in Prebid 1.0. Please use offEvent instead."),null},h.registerBidAdapter=function(e,n){E.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{A.registerBidAdapter(e(),n)}catch(e){E.logError("Error registering bidder adapter : "+e.message)}},h.registerAnalyticsAdapter=function(e){E.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{A.registerAnalyticsAdapter(e)}catch(e){E.logError("Error registering analytics adapter : "+e.message)}},h.bidsAvailableForAdapter=function(e){E.logInfo("Invoking pbjs.bidsAvailableForAdapter",arguments),h._bidsRequested.find((function(n){return n.bidderCode===e})).bids.map((function(n){return d(n,_.createBid(1),{bidderCode:e,adUnitCode:n.placementCode})})).map((function(e){return h._bidsReceived.push(e)}))},h.createBid=function(e){return E.logInfo("Invoking pbjs.createBid",arguments),_.createBid(e)},h.addBidResponse=function(e,n){E.logWarn("pbjs.addBidResponse will be removed in Prebid 1.0. Each bidder will be passed a reference to addBidResponse function in callBids as an argument. See https://github.com/prebid/Prebid.js/issues/1087 for more details."),E.logInfo("Invoking pbjs.addBidResponse",arguments),T.addBidResponse(e,n)},h.loadScript=function(e,n,t){E.logInfo("Invoking pbjs.loadScript",arguments),(0,v.loadScript)(e,n,t)},h.enableAnalytics=function(e){e&&!E.isEmpty(e)?(E.logInfo("Invoking pbjs.enableAnalytics for: ",e),A.enableAnalytics(e)):E.logError("pbjs.enableAnalytics should be called with option {}")},h.aliasBidder=function(e,n){E.logInfo("Invoking pbjs.aliasBidder",arguments),e&&n?A.aliasBidAdapter(e,n):E.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},h.setPriceGranularity=function(e){E.logWarn("pbjs.setPriceGranularity will be removed in Prebid 1.0. Use pbjs.setConfig({ priceGranularity: }) instead."),E.logInfo("Invoking pbjs.setPriceGranularity",arguments),m.config.setConfig({priceGranularity:e})},h.enableSendAllBids=function(){m.config.setConfig({enableSendAllBids:!0})},h.getAllWinningBids=function(){return h._winningBids},h.buildMasterVideoTagFromAdserverTag=function(e,n){E.logWarn("pbjs.buildMasterVideoTagFromAdserverTag will be removed in Prebid 1.0. Include the dfpVideoSupport module in your build, and use the pbjs.adservers.dfp.buildVideoAdUrl function instead"),E.logInfo("Invoking pbjs.buildMasterVideoTagFromAdserverTag",arguments);var t=(0,p.parse)(e);if(0===h._bidsReceived.length)return e;if("dfp"===n.adserver.toLowerCase()){var r=w.dfpAdserver(n,t);return r.verifyAdserverTag()||E.logError("Invalid adserverTag, required google params are missing in query string"),r.appendQueryParams(),(0,p.format)(r.urlComponents)}E.logError("Only DFP adserver is supported")},h.setBidderSequence=A.setBidderSequence,h.getHighestCpmBids=function(e){return C.getWinningBids(e)},h.setS2SConfig=function(e){if(E.contains(Object.keys(e),"accountId"))if(E.contains(Object.keys(e),"bidders")){var n=d({enabled:!1,endpoint:S.S2S.DEFAULT_ENDPOINT,timeout:1e3,maxBids:1,adapter:S.S2S.ADAPTER,syncEndpoint:S.S2S.SYNC_ENDPOINT,cookieSet:!0,bidders:[]},e);A.setS2SConfig(n)}else E.logError("bidders missing in Server to Server config");else E.logError("accountId missing in Server to Server config")},h.getConfig=m.config.getConfig,h.setConfig=m.config.setConfig,h.que.push((function(){return(0,g.listenMessagesFromCreative)()})),h.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){E.logError("Error processing command :",e.message,e.stack)}else E.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},h.que.push=h.cmd.push,h.processQueue=function(){a(h.que),a(h.cmd)}},341:function(e,n,t){"use strict";t(342),t(355),t(357),t(360),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},342:function(e,n,t){t(343),e.exports=t(14).Array.find},343:function(e,n,t){"use strict";var r=t(19),i=t(34)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(27)("find")},344:function(e,n,t){var r=t(345),i=t(346),o=t(348),a=Object.defineProperty;n.f=t(23)?Object.defineProperty:function(e,n,t){if(r(e),n=o(n,!0),r(t),i)try{return a(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[n]=t.value),e}},345:function(e,n,t){var r=t(20);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},346:function(e,n,t){e.exports=!t(23)&&!t(24)((function(){return 7!=Object.defineProperty(t(347)("div"),"a",{get:function(){return 7}}).a}))},347:function(e,n,t){var r=t(20),i=t(16).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},348:function(e,n,t){var r=t(20);e.exports=function(e,n){if(!r(e))return e;var t,i;if(n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!r(i=t.call(e)))return i;if(!n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},349:function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},35:function(e,n){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},350:function(e,n,t){var r=t(16),i=t(22),o=t(32),a=t(25)("src"),s=Function.toString,d=(""+s).split("toString");t(14).inspectSource=function(e){return s.call(e)},(e.exports=function(e,n,t,s){var u="function"==typeof t;u&&(o(t,"name")||i(t,"name",n)),e[n]!==t&&(u&&(o(t,a)||i(t,a,e[n]?""+e[n]:d.join(String(n)))),e===r?e[n]=t:s?e[n]?e[n]=t:i(e,n,t):(delete e[n],i(e,n,t)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},351:function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},352:function(e,n,t){var r=t(353);e.exports=function(e,n){return new(r(e))(n)}},353:function(e,n,t){var r=t(20),i=t(354),o=t(40)("species");e.exports=function(e){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},354:function(e,n,t){var r=t(35);e.exports=Array.isArray||function(e){return"Array"==r(e)}},355:function(e,n,t){t(356),e.exports=t(14).Array.findIndex},356:function(e,n,t){"use strict";var r=t(19),i=t(34)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(27)(o)},357:function(e,n,t){t(358),e.exports=t(14).Array.includes},358:function(e,n,t){"use strict";var r=t(19),i=t(42)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(27)("includes")},359:function(e,n,t){var r=t(39),i=Math.max,o=Math.min;e.exports=function(e,n){return(e=r(e))<0?i(e+n,0):o(e,n)}},36:function(e,n,t){var r=t(37);e.exports=function(e){return Object(r(e))}},360:function(e,n,t){t(361),e.exports=t(14).Object.assign},361:function(e,n,t){var r=t(19);r(r.S+r.F,"Object",{assign:t(362)})},362:function(e,n,t){"use strict";var r=t(363),i=t(367),o=t(368),a=t(36),s=t(26),d=Object.assign;e.exports=!d||t(24)((function(){var e={},n={},t=Symbol(),r="abcdefghijklmnopqrst";return e[t]=7,r.split("").forEach((function(e){n[e]=e})),7!=d({},e)[t]||Object.keys(d({},n)).join("")!=r}))?function(e,n){for(var t=a(e),d=arguments.length,u=1,c=i.f,f=o.f;d>u;)for(var l,p=s(arguments[u++]),g=c?r(p).concat(c(p)):r(p),b=g.length,v=0;b>v;)f.call(p,l=g[v++])&&(t[l]=p[l]);return t}:d},363:function(e,n,t){var r=t(364),i=t(366);e.exports=Object.keys||function(e){return r(e,i)}},364:function(e,n,t){var r=t(32),i=t(43),o=t(42)(!1),a=t(365)("IE_PROTO");e.exports=function(e,n){var t,s=i(e),d=0,u=[];for(t in s)t!=a&&r(s,t)&&u.push(t);for(;n.length>d;)r(s,t=n[d++])&&(~o(u,t)||u.push(t));return u}},365:function(e,n,t){var r=t(41)("keys"),i=t(25);e.exports=function(e){return r[e]||(r[e]=i(e))}},366:function(e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},367:function(e,n){n.f=Object.getOwnPropertySymbols},368:function(e,n){n.f={}.propertyIsEnumerable},369:function(e,n,t){"use strict";function r(e){var n=e.message?"message":"data",t={};try{t=JSON.parse(e[n])}catch(e){return}if(t.adId){var r=pbjs._bidsReceived.find((function(e){return e.adId===t.adId}));"Prebid Request"===t.message&&(i(r,t.adServerDomain,e.source),pbjs._winningBids.push(r),a.default.emit(d,r)),"Prebid Native"===t.message&&((0,s.fireNativeTrackers)(t,r),pbjs._winningBids.push(r),a.default.emit(d,r))}}function i(e,n,t){var r=e.adId,i=e.ad,a=e.adUrl,s=e.width,d=e.height;r&&(o(e),t.postMessage(JSON.stringify({message:"Prebid Response",ad:i,adUrl:a,adId:r,width:s,height:d}),n))}function o(e){var n=e.adUnitCode,t=e.width,r=e.height,i=document.getElementById(window.googletag.pubads().getSlots().find((function(e){return e.getAdUnitPath()===n||e.getSlotElementId()===n})).getSlotElementId()).querySelector("iframe");i.width=""+t,i.height=""+r}Object.defineProperty(n,"__esModule",{value:!0}),n.listenMessagesFromCreative=function(){addEventListener("message",r,!1)};var a=(function(e){return e&&e.__esModule?e:{default:e}})(t(11)),s=t(15),d=t(4).EVENTS.BID_WON},37:function(e,n){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},370:function(e,n,t){"use strict";var r=t(12),i=t(21),o=function(e){this.name=e.adserver,this.code=e.code,this.getWinningBidByCode=function(){return(0,i.getWinningBids)(this.code)[0]}};n.dfpAdserver=function(e,n){var t=new o(e);t.urlComponents=n;var i={env:"vp",gdfp_req:"1",impl:"s",unviewed_position_start:"1"},a=["output","iu","sz","url","correlator","description_url","hl"],s=function(e){return encodeURIComponent((0,r.formatQS)(e))};return t.appendQueryParams=function(){var e=t.getWinningBidByCode();e&&(this.urlComponents.search.description_url=encodeURIComponent(e.vastUrl),this.urlComponents.search.cust_params=s(e.adserverTargeting),this.urlComponents.search.correlator=Date.now())},t.verifyAdserverTag=function(){for(var e in i)if(!this.urlComponents.search.hasOwnProperty(e)||this.urlComponents.search[e]!==i[e])return!1;for(var n in a)if(!this.urlComponents.search.hasOwnProperty(a[n]))return!1;return!0},t}},38:function(e,n,t){var r=t(39),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},39:function(e,n){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},4:function(e,n){e.exports={JSON_MAPPING:{PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},REPO_AND_VERSION:"prebid_prebid_0.34.1",DEBUG_MODE:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_WON:"bidWon",SET_TARGETING:"setTargeting",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:["hb_bidder","hb_adid","hb_pb","hb_size","hb_deal"],S2S:{DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/auction",SRC:"s2s",ADAPTER:"prebidServer",SYNC_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/cookie_sync",SYNCED_BIDDERS_KEY:"pbjsSyncs"}}},40:function(e,n,t){var r=t(41)("wks"),i=t(25),o=t(16).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},41:function(e,n,t){var r=t(16),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},42:function(e,n,t){var r=t(43),i=t(38),o=t(359);e.exports=function(e){return function(n,t,a){var s,d=r(n),u=i(d.length),c=o(a,u);if(e&&t!=t){for(;u>c;)if((s=d[c++])!=s)return!0}else for(;u>c;c++)if((e||c in d)&&d[c]===t)return e||c||0;return!e&&-1}}},43:function(e,n,t){var r=t(26),i=t(37);e.exports=function(e){return r(i(e))}},46:function(e,n){function t(e){var n=Array.isArray(e)?[]:{};for(var r in e){var i=e[r];n[r]=i&&"object"==typeof i?t(i):i}return n}e.exports=t},47:function(e,n,t){"use strict";function r(e){return!!(o.isArray(e)&&e.length>0)||(o.logInfo("No size mapping defined"),!1)}function i(e){var n=e||a||window,t=n.document;return n.innerWidth?n.innerWidth:t.body.clientWidth?t.body.clientWidth:t.documentElement.clientWidth?t.documentElement.clientWidth:0}Object.defineProperty(n,"__esModule",{value:!0}),n.setWindow=n.getScreenWidth=n.mapSizes=void 0;var o=(function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n})(t(0)),a=void 0;n.mapSizes=function(e){if(!r(e.sizeMapping))return e.sizes;var n=i();if(!n){var t=e.sizeMapping.reduce((function(e,n){return e.minWidth=e.minWidth}));return s&&s.sizes&&s.sizes.length?(a=s.sizes,o.logMessage("AdUnit : "+e.code+" resized based on device width to : "+a)):o.logMessage("AdUnit : "+e.code+" not mapped to any sizes for device width. This request will be suppressed."),a},n.getScreenWidth=i,n.setWindow=function(e){a=e}},48:function(e,n,t){"use strict";function r(e){return'\n \n \n prebid.org wrapper\n \n \n \n \n \n "}function i(e){return{type:"xml",value:e.vastXml?e.vastXml:r(e.vastUrl)}}function o(e){return{success:function(n){var t=void 0;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: "+n+": "+JSON.stringify(t)),[])}}}Object.defineProperty(n,"__esModule",{value:!0}),n.store=function(e,n){var t={puts:e.map(i)};(0,a.ajax)(s,o(n),JSON.stringify(t),{contentType:"text/plain",withCredentials:!0})},n.getCacheUrl=function(e){return s+"?uuid="+e};var a=t(7),s="https://prebid.adnxs.com/pbc/v1/cache"},49:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:10;"function"==typeof e&&(a.push({fn:e,priority:n}),a.sort((function(e,n){return n.priority-e.priority})))},removeHook:function(e){a=a.filter((function(t){return t.fn===n||t.fn!==e}))}};return"string"==typeof t&&(o[t]=d),r((function(){for(var t=arguments.length,r=Array(t),i=0;i3&&void 0!==arguments[3]?arguments[3]:{};try{var c=void 0,f=!1,l=u.method||(t?"POST":"GET"),p="object"===(void 0===n?"undefined":i(n))?n:{success:function(){a.logMessage("xhr success")},error:function(e){a.logError("xhr error",null,e)}};if("function"==typeof n&&(p.success=n),window.XMLHttpRequest?void 0===(c=new window.XMLHttpRequest).responseType&&(f=!0):f=!0,f?((c=new window.XDomainRequest).onload=function(){p.success(c.responseText,c)},c.onerror=function(){p.error("error",c)},c.ontimeout=function(){p.error("timeout",c)},c.onprogress=function(){a.logMessage("xhr onprogress")}):c.onreadystatechange=function(){if(c.readyState===s){var e=c.status;e>=200&&e<300||304===e?p.success(c.responseText,c):p.error(c.statusText,c)}},"GET"===l&&t){var g=(0,o.parse)(e,u);r(g.search,t),e=(0,o.format)(g)}c.open(l,e),c.timeout=d,f||(u.withCredentials&&(c.withCredentials=!0),a._each(u.customHeaders,(function(e,n){c.setRequestHeader(n,e)})),u.preflight&&c.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.setRequestHeader("Content-Type",u.contentType||"text/plain")),c.send("POST"===l&&t)}catch(e){a.logError("xhr construction",e)}};var o=t(12),a=t(0),s=4,d=3e3},8:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}},9:function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(){function e(e){return Object.keys(g).find((function(n){return e===g[n]}))}function n(n){if(!n)return d.logError("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof n)e(n)||d.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if("object"===(void 0===n?"undefined":a(n))&&!(0,s.isValidPriceConfig)(n))return d.logError("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}function t(e,n){var t=n;"string"!=typeof e&&(t=e,e=b);{if("function"==typeof t)return v.push({topic:e,callback:t}),function(){v.splice(v.indexOf(n),1)};d.logError("listener must be a function")}}function i(e){var n=Object.keys(e);v.filter((function(e){return n.includes(e.topic)})).forEach((function(n){n.callback(r({},n.topic,e[n.topic]))})),v.filter((function(e){return e.topic===b})).forEach((function(n){return n.callback(e)}))}var v=[],y={},m={_debug:u,get debug(){return pbjs.logging||!1===pbjs.logging?pbjs.logging:this._debug},set debug(e){this._debug=e},_bidderTimeout:c,get bidderTimeout(){return pbjs.bidderTimeout||this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:f,get publisherDomain(){return pbjs.publisherDomain||this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_cookieSyncDelay:l,get cookieSyncDelay(){return pbjs.cookieSyncDelay||this._cookieSyncDelay},set cookieSyncDelay(e){this._cookieSyncDelay=e},_priceGranularity:g.MEDIUM,set priceGranularity(t){n(t)&&("string"==typeof t?this._priceGranularity=e(t)?t:g.MEDIUM:"object"===(void 0===t?"undefined":a(t))&&(this._customPriceBucket=t,this._priceGranularity=g.CUSTOM,d.logMessage("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_sendAllBids:p,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},set bidderSequence(e){pbjs.setBidderSequence(e)},set s2sConfig(e){pbjs.setS2SConfig(e)}};return{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?d.deepAccess(m,e):m}return t.apply(void 0,arguments)},setConfig:function(e){if("object"===(void 0===e?"undefined":a(e))){var n={};Object.keys(e).forEach((function(t){var r=e[t];"object"===a(y[t])&&"object"===(void 0===r?"undefined":a(r))&&(r=o({},y[t],r)),n[t]=m[t]=r})),i(n)}else d.logError("setConfig options must be an object")},setDefaults:function(e){"object"===(void 0===y?"undefined":a(y))?(o(y,e),o(m,e)):d.logError("defaults must be an object")}}}Object.defineProperty(n,"__esModule",{value:!0}),n.config=void 0;var o=Object.assign||function(e){for(var n=1;n1?r-1:0),t=1;tif(!parent.pbjs.aolGlobals.pixelsDropped){parent.pbjs.aolGlobals.pixelsDropped=true;"+e.ext.pixels.replace(/<\/?script( type=('|")text\/javascript('|")|)?>/g,"")+"}<\/script>"),{bidderCode:r.bidderCode,requestId:r.bidId,ad:i,cpm:t,width:n.w,height:n.h,creativeId:n.crid,pubapiId:e.id,currency:e.cur,dealId:n.dealid,netRevenue:!0,ttl:k}}function f(e){return e===P.AOL||e===P.ONEDISPLAY}function m(e){return e===P.AOL||e===P.ONEMOBILE}function b(e){if(m(e.bidder)&&e.params.id&&e.params.imp&&e.params.imp[0]){var r=e.params.imp[0];return r.id&&r.tagid&&(r.banner&&r.banner.w&&r.banner.h||r.video&&r.video.mimes&&r.video.minduration&&r.video.maxduration)}}function v(e){return m(e.bidder)&&e.params.dcn&&e.params.pos}function E(e){return f(e.bidder)&&e.params.placement&&e.params.network}function g(e){return v(e)||b(e)}function O(e){return v(e)?G.MOBILE.GET:b(e)?G.MOBILE.POST:E(e)?G.DISPLAY.GET:void 0}function h(e,r){var n=void 0;switch(e){case G.DISPLAY.GET:n={url:s(r),method:"GET"};break;case G.MOBILE.GET:n={url:p(r),method:"GET"};break;case G.MOBILE.POST:n={url:u(r),method:"POST",data:r.params,options:{contentType:"application/json",customHeaders:{"x-openrtb-version":"2.2"}}}}return n.bidderCode=r.bidder,n.bidId=r.bidId,n.userSyncOn=r.params.userSyncOn,n}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var I=t(["//","/pubapi/3.0/","/","/","/","/ADTECH;v=2;cmd=bid;cors=yes;alias=","","",";misc=",""],["//","/pubapi/3.0/","/","/","/","/ADTECH;v=2;cmd=bid;cors=yes;alias=","","",";misc=",""]),x=t(["//","/bidRequest?"],["//","/bidRequest?"]),A=t(["dcn=","&pos=","&cmd=bid",""],["dcn=","&pos=","&cmd=bid",""]),y=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r})(n(0)),S=n(6),T=n(9),L=(function(e){return e&&e.__esModule?e:{default:e}})(n(4)),P={AOL:"aol",ONEMOBILE:"onemobile",ONEDISPLAY:"onedisplay"},G={DISPLAY:{GET:"display-get"},MOBILE:{GET:"mobile-get",POST:"mobile-post"}},j={IFRAME:{TAG:"iframe",TYPE:"iframe"},IMAGE:{TAG:"img",TYPE:"image"}},D=i(I,"host","network","placement","pageid","sizeid","alias","bidfloor","keyValues","misc"),M=i(x,"host"),w=i(A,"dcn","pos","ext"),C={us:"adserver-us.adtech.advertising.com",eu:"adserver-eu.adtech.advertising.com",as:"adserver-as.adtech.advertising.com"},N="hb.nexage.com",k=300;pbjs.aolGlobals={pixelsDropped:!1};var B=(function(){var e=!0;return function(){var r=pbjs.bidderSettings;e&&r&&r.aol&&"function"==typeof r.aol.bidCpmAdjustment&&(y.logWarn("bidCpmAdjustment is active for the AOL adapter. As of Prebid 0.14, AOL can bid in net ? please contact your accounts team to enable."),e=!1)}})(),R=r.spec={code:P.AOL,aliases:[P.ONEMOBILE,P.ONEDISPLAY],isBidRequestValid:function(e){return E(e)||g(e)},buildRequests:function(e){return e.map((function(e){var r=O(e);if(r)return h(r,e)}))},interpretResponse:function(e,r){var n=e.body;if(B(),n){var t=l(n,r);if(t)return t}else y.logError("Empty bid response",r.bidderCode,n)},getUserSyncs:function(e,r){var n=r[0];return T.config.getConfig("aol.userSyncOn")===L.default.EVENTS.BID_RESPONSE&&!pbjs.aolGlobals.pixelsDropped&&n.ext&&n.ext.pixels?(pbjs.aolGlobals.pixelsDropped=!0,o(n.ext.pixels)):[]}};(0,S.registerBidder)(R)},98:function(e,r){}},[96]);pbjsChunk([111],{104:function(e,r,a){e.exports=a(105)},105:function(e,r,a){"use strict";var t,d=Object.assign||function(e){for(var r=1;r0&&(o="size="+g[0],f>1)){o+="&promo_sizes=";for(var y=1;y\n let win = window;\n for (const i=0; i<10; ++i) {\n win = win.parent;\n if (win.criteo_pubtag && win.criteo_pubtag.native_slots) {\n let responseSlot = win.criteo_pubtag.native_slots["'+n.adId+'"];\n responseSlot.callback(responseSlot.nativeResponse);\n break;\n }\n }\n<\/script>'):(n.width=t.width,n.height=t.height,n.ad=t.creative)):n=c(),n}var u=("http:"===window.location.protocol?"http:":"https:")+"//static.criteo.net/js/ld/publishertag.js",l="criteo",w=125,v=1;return{callBids:function(i){!window.criteo_pubtag||window.criteo_pubtag instanceof Array?(t(i),a.loadScript(u,(function(){}),!0)):t(i)}}};o.registerBidAdapter(new d,"criteo"),t.exports=d}},[137]);pbjsChunk([75],{265:function(e,t,r){e.exports=r(266)},266:function(e,t,r){"use strict";function i(){return"https:"===location.protocol}function n(e,t){return(t.cpm||0)-(e.cpm||0)}function o(){return[window.screen.width,window.screen.height].join("x")}function a(){var e=(function(){var e=window.DigiTrust&&(v.config.getConfig("digiTrustId")||window.DigiTrust.getUser({member:"T9QSFKPDN9"}));return e&&e.success&&e.identity||null})();return!e||e.privacy&&e.privacy.optout?[]:["dt.id",e.id,"dt.keyv",e.keyv,"dt.pref",0]}function s(e,t){return"\n