‘:””},t.getDefinedParams=function(e,t){return t.filter(function(t){return e[t]}).reduce(function(t,n){return d(t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,e[n]))},{})},t.isValidMediaTypes=function(e){var t=[“banner”,”native”,”video”];return!!Object.keys(e).every(function(e){return(0,v.default)(t,e)})(!e.video||!e.video.context||(0,v.default)([“instream”,”outstream”],e.video.context))},t.getBidderRequest=function(e,t,n){return(0,h.default)(e,function(e){return e.bids.filter(function(e){return e.bidder===te.adUnitCode===n}).length0})||{start:null,auctionId:null}},t.getUserConfiguredParams=function(e,t,n){return e.filter(function(e){return e.code===t}).map(function(e){return e.bids}).reduce(c,[]).filter(function(e){return e.bidder===n}).map(function(e){return e.params||{}})},t.getOrigin=function(){return window.location.origin?window.location.origin:window.location.protocol+”//”+window.location.hostname+(window.location.port?”:”+window.location.port:””)},t.getDNT=function(){return”1″===navigator.doNotTrack||”1″===window.doNotTrack||”1″===navigator.msDoNotTrack||”yes”===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(e){return function(t){return x(e,t)}},t.isSlotMatchingAdUnitCode=function(e){return function(t){return x(t,e)}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes||{banner:”banner”}).join(“, “);return”n “+e.code+” is a “+n+” ad unitn containing bidders that don’t support “+n+”: “+t+”.n This bidder won’t fetch demand.n “},t.deletePropertyFromObject=function(e,t){var n=d({},e);return delete n[t],n},t.removeRequestId=function(e){return t.deletePropertyFromObject(e,”requestId”)},t.isInteger=function(e){return Number.isInteger?Number.isInteger(e):”number”==typeof eisFinite(e)Math.floor(e)===e},t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|.?)([A-Z])/g,function(e,t){return”_”+t.toLowerCase()}).replace(/^_/,””)};var p=n(3),g=r(n(63)),h=r(n(10)),v=r(n(8)),b=n(12),y=n(2),m=!1,_=Object.prototype.toString,w=null;try{w=console.info.bind(window.console)}catch(e){}t.replaceTokenInString=function(e,t,n){return this._each(t,function(t,r){t=void 0===t?””:t;var i=n+r.toUpperCase()+n,o=new RegExp(i,”g”);e=e.replace(o,t)}),e};var A,E=(A=0,function(){return++A});t.getUniqueIdentifierStr=i,t.generateUUID=function e(t){return t?(t^16*Math.random()t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){return tt[e]?t[e]:””},t.tryAppendQueryString=function(e,t,n){return n?e+(t+”=”)+encodeURIComponent(n)+””:e},t.parseQueryStringParameters=function(e){var t=””;for(var n in e)e.hasOwnProperty(n)(t+=n+”=”+encodeURIComponent(e[n])+””);return t},t.transformAdServerTargetingObj=function(e){return eObject.getOwnPropertyNames(e).length0?s(e).map(function(t){return t+”=”+encodeURIComponent(f(e,t))}).join(“”):””},t.getTopWindowLocation=function(){if(t.inIframe()){var e=void 0;try{e=t.getAncestorOrigins()||t.getTopFrameReferrer()}catch(e){logInfo(“could not obtain top window location”,e)}if(e)return(0,b.parse)(e,{decodeSearchAsString:!0})}return t.getWindowLocation()},t.getTopFrameReferrer=function(){try{window.top.location.toString();var e=””,t=void 0;do{(t=t?t.parent:window).documentt.document.referrer(e=t.document.referrer)}while(t!==window.top);return e}catch(e){return window.document.referrer}},t.getAncestorOrigins=function(){if(window.document.locationwindow.document.location.ancestorOriginswindow.document.location.ancestorOrigins.length=1)return window.document.location.ancestorOrigins[window.document.location.ancestorOrigins.length-1]},t.getWindowTop=function(){return window.top},t.getWindowSelf=function(){return window.self},t.getWindowLocation=function(){return window.location},t.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(t){e=””}return e},t.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},t.logWarn=function(e){S()console.warnconsole.warn(“WARNING: “+e)},t.logInfo=function(e,t){S()u()w(t0!==t.length||(t=””),w(“INFO: “+e+(“”===t?””:” : params : “),t))},t.logMessage=function(e){S()u()console.log(“MESSAGE: “+e)},t.hasConsoleLogger=u;var S=function(){if(!1===p.config.getConfig(“debug”)!1===m){var e=”TRUE”===T(y.DEBUG_MODE).toUpperCase();p.config.setConfig({debug:e}),m=!0}return!!p.config.getConfig(“debug”)};t.debugTurnedOn=S,t.logError=function(){S()window.consolewindow.console.errorconsole.error.apply(console,arguments)},t.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 t=new RegExp(“[\?]”+e+”=([^]*)”).exec(window.location.search);return null===t?””:decodeURIComponent(t[1].replace(/+/g,” “))};t.getParameterByName=T,t.hasValidBidRequest=function(e,t,n){function r(e,n){n===t[o](i=!0)}for(var i=!1,o=0;o0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0},t.isEmptyStr=function(e){return this.isStr(e)(!e||0===e.length)},t._each=function(e,t){if(!this.isEmpty(e)){if(this.isFn(e.forEach))return e.forEach(t,this);var n=0,r=e.length;if(r0)for(;n’},t.createTrackPixelIframeHtml=function(e){var n=!(arguments.length1void 0!==arguments[1])||arguments[1],r=arguments.length2void 0!==arguments[2]?arguments[2]:””;return e?(n(e=encodeURI(e)),r(r=’sandbox=”‘+r+'”‘),”‘):””},t.getIframeDocument=function(e){if(e){var t=void 0;try{t=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){this.logError(“Cannot get iframe document”,e)}return t}},t.getValueString=function(e,t,n){return null==t?n:this.isStr(t)?t:this.isNumber(t)?t.toString():void this.logWarn(“Unsuported type for param: “+e+” required type: String”)};var x=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t}},1:function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}function i(e){function t(t,n){if(e.getUserSyncs){var r=e.getUserSyncs({iframeEnabled:d.config.getConfig(“userSync.iframeEnabled”),pixelEnabled:d.config.getConfig(“userSync.pixelEnabled”)},t,n);r(Array.isArray(r)||(r=[r]),r.forEach(function(t){p.userSync.registerSync(t.type,e.code,t.url)}))}}function n(t){return!!e.isBidRequestValid(t)||((0,m.logWarn)(“Invalid bid sent to bidder “+e.code+”: “+JSON.stringify(t)),!1)}return c(new s.default(e.code),{getSpec:function(){return Object.freeze(e)},registerSyncs:t,callBids:function(r,i,u,s){function f(e){var n=(e?e[0]?e:[e]:[]).some(function(e){return”video”===e.mediaType}),i=d.config.getConfig(“cache.url”);ni||u(),b.default.emit(v.default.EVENTS.BIDDER_DONE,r),t(g,r.gdprConsent)}if(Array.isArray(r.bids)){var p={},g=[],h=r.bids.filter(n);if(0!==h.length){var y={};h.forEach(function(e){y[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)});var _=e.buildRequests(h,r);if(_0!==_.length){Array.isArray(_)||(_=[_]);var w=(0,m.delayExecution)(f,_.length);_.forEach(function(t){function n(n,u){function a(t){var n,u,a=y[t.requestId];if(a){var s=c(l.default.createBid(v.default.STATUS.GOOD,a),t);n=a.adUnitCode,u=s,p[n]=!0,o(n,u,[r])i(n,u)}else(0,m.logWarn)(“Bidder “+e.code+” made bid for unknown request ID: “+t.requestId+”. Ignoring.”)}try{n=JSON.parse(n)}catch(e){}n={body:n,headers:{get:u.getResponseHeader.bind(u)}},g.push(n);var s=void 0;try{s=e.interpretResponse(n,t)}catch(t){return(0,m.logError)(“Bidder “+e.code+” failed to interpret the server’s response. Continuing without bids”,null,t),void w()}s(s.forEach?s.forEach(a):a(s)),w(s)}function u(t){(0,m.logError)(“Server call for “+e.code+” failed: “+t+”. Continuing without bids.”),w()}switch(t.method){case”GET”:s(“”+t.url+function(e){return e?”?”+(“object”===(void 0===e?”undefined”:a(e))?(0,m.parseQueryStringParameters)(e):e):””}(t.data),{success:n,error:u},void 0,c({method:”GET”,withCredentials:!0},t.options));break;case”POST”:s(t.url,{success:n,error:u},”string”==typeof t.data?t.data:JSON.stringify(t.data),c({method:”POST”,contentType:”text/plain”,withCredentials:!0},t.options));break;default:(0,m.logWarn)(“Skipping invalid request from “+e.code+”. Request type “+t.type+” must be GET or POST”),w()}})}else f()}else f()}}})}function o(e,t,n){function r(e){return”Invalid bid from “+t.bidderCode+”. Ignoring bid: “+e}return e?t?(i=Object.keys(t),_.every(function(e){return(0,y.default)(i,e)})?”native”!==t.mediaType||(0,g.nativeBidIsValid)(t,n)?”video”!==t.mediaType||(0,h.isValidVideoBid)(t,n)?!(“banner”===t.mediaType!function(e,t,n){if((t.width||0===t.width)(t.height||0===t.height))return!0;var r=(0,m.getBidderRequest)(n,t.bidderCode,e),i=rr.bidsr.bids[0]r.bids[0].sizes,o=(0,m.parseSizesInput)(i);if(1===o.length){var a=o[0].split(“x”),c=u(a,2),s=c[0],f=c[1];return t.width=s,t.height=f,!0}return!1}(e,t,n)((0,m.logError)(r(“Banner bids require a width and height”)),1)):((0,m.logError)(r(“Video bid does not have required vastUrl or renderer property”)),!1):((0,m.logError)(r(“Native bid missing some required properties.”)),!1):((0,m.logError)(r(“Bidder “+t.bidderCode+” is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params.”)),!1)):((0,m.logWarn)(“Some adapter tried to add an undefined bid for “+e+”.”),!1):((0,m.logWarn)(“No adUnitCode was supplied to addBidResponse.”),!1);var i}Object.defineProperty(t,”__esModule”,{value:!0});var u=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!ra.returna.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}}(),a=”function”==typeof Symbol”symbol”==_typeof(Symbol.iterator)?function(e){return void 0===e?”undefined”:_typeof(e)}:function(e){return e”function”==typeof Symbole.constructor===Symbole!==Symbol.prototype?”symbol”:void 0===e?”undefined”:_typeof(e)},c=Object.assign||function(e){for(var t=1;t=f.syncsPerBidder?u.logWarn(‘Number of user syncs exceeded for “‘+t+'”‘):f.enabledBiddersf.enabledBidders.lengthf.enabledBidders.indexOf(t)0void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(t,Number(e));t()},n.triggerUserSyncs=function(){f.enableOverriden.syncUsers()},n}Object.defineProperty(t,”__esModule”,{value:!0}),t.userSync=void 0;var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!ra.returna.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}}(),o=Object.assign||function(e){for(var t=1;t0;)try{this.cmd.shift().call()}catch(e){o.logError(“Error processing Renderer command: “,e)}}},16:function(e,t,n){var r=n(20),i=n(14),o=n(28),u=n(44),a=n(51),c=”prototype”,s=function e(t,n,s){var f,d,l,p=te.F,g=te.G,h=te.S,v=te.P,b=te.B,y=te.W,m=g?i:i[n]||(i[n]={}),_=m[c],w=g?r:h?r[n]:(r[n]||{})[c];for(f in g(s=n),s)(d=!pwvoid 0!==w[f])a(m,f)||(l=d?w[f]:s[f],m[f]=g”function”!=typeof w[f]?s[f]:bd?o(l,r):yw[f]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(l):v”function”==typeof l?o(Function.call,l):l,v((m.virtual||(m.virtual={}))[f]=l,te.R_!_[f]u(_,f,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},166:function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}function i(e,t){t.timeToResponde.getTimeout()+b.config.getConfig(“timeoutBuffer”)e.executeCallback(!0)}function o(e,t){T.emit(I.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),i(e,t)}function u(){var e=b.config.getConfig(“priceGranularity”),t=pbjs.bidderSettings;return t[I.JSON_MAPPING.BD_SETTING_STANDARD]||(t[I.JSON_MAPPING.BD_SETTING_STANDARD]={}),t[I.JSON_MAPPING.BD_SETTING_STANDARD][I.JSON_MAPPING.ADSERVER_TARGETING]||(t[I.JSON_MAPPING.BD_SETTING_STANDARD][I.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(t){return e===I.GRANULARITY_OPTIONS.AUTO?t.pbAg:e===I.GRANULARITY_OPTIONS.DENSE?t.pbDg:e===I.GRANULARITY_OPTIONS.LOW?t.pbLg:e===I.GRANULARITY_OPTIONS.MEDIUM?t.pbMg:e===I.GRANULARITY_OPTIONS.HIGH?t.pbHg:e===I.GRANULARITY_OPTIONS.CUSTOM?t.pbCg:void 0}},{key:”hb_size”,val:function(e){return e.size}},{key:”hb_deal”,val:function(e){return e.dealId}},{key:”hb_source”,val:function(e){return e.source}},{key:”hb_format”,val:function(e){return e.mediaType}}]),t[I.JSON_MAPPING.BD_SETTING_STANDARD]}function a(e,t){if(!t)return{};var n={},r=pbjs.bidderSettings;return r(c(n,u(),t),er[e]r[e][I.JSON_MAPPING.ADSERVER_TARGETING](c(n,r[e],t),t.sendStandardTargeting=r[e].sendStandardTargeting)),t.native(n=d({},n,(0,g.getNativeTargeting)(t))),n}function c(e,t,n){var r=t[I.JSON_MAPPING.ADSERVER_TARGETING];return n.size=n.getSize(),E._each(r,function(r){var i=r.key,o=r.val;if(e[i]E.logWarn(“The key: “+i+” is getting ovewritten”),E.isFn(o))try{o=o(n)}catch(e){E.logError(“bidmanager”,”ERROR”,e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)”hb_deal”!==i||!E.isEmptyStr(o)null!=o?e[i]=o:E.logInfo(“suppressing empty key ‘”+i+”‘ from adserver targeting”)}),e}function s(e){var t=e.bidderCode,n=e.cpm,r=void 0;if(pbjs.bidderSettings(tpbjs.bidderSettings[t]”function”==typeof pbjs.bidderSettings[t].bidCpmAdjustment?r=pbjs.bidderSettings[t].bidCpmAdjustment:pbjs.bidderSettings[I.JSON_MAPPING.BD_SETTING_STANDARD]”function”==typeof pbjs.bidderSettings[I.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment(r=pbjs.bidderSettings[I.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),r))try{n=r(e.cpm,d({},e))}catch(e){E.logError(“Error during bid adjustment”,”bidmanager.js”,e)}n=0(e.cpm=n)}function f(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}Object.defineProperty(t,”__esModule”,{value:!0}),t.addBidResponse=t.AUCTION_COMPLETED=t.AUCTION_IN_PROGRESS=t.AUCTION_STARTED=void 0;var d=Object.assign||function(e){for(var t=1;t=1})(E.logInfo(“Bids Received for Auction with id: “+v,g),y=O,t(!1,!0))}var r=e.adUnits,i=e.adUnitCodes,o=e.callback,u=e.cbTimeout,a=e.labels,c=r,s=a,d=i,p=[],g=[],h=void 0,v=E.generateUUID(),y=void 0,m=o,R=void 0,B=u,k=[];return{addBidReceived:function(e){g=g.concat(e)},executeCallback:t,callBids:function(){e=t.bind(null,!0),r=setTimeout(e,B),R=r,y=x;var e,r,i={timestamp:h=Date.now(),auctionId:v,timeout:B};T.emit(I.EVENTS.AUCTION_INIT,i);var o=S.makeBidRequests(c,h,v,B,s);E.logInfo(“Bids Requested for Auction with id: “+v,o),o.forEach(function(e){var t;t=e,p=p.concat(t)}),y=j,S.callBids(c,o,C.bind(this),function(e){var t=e;return(0,l.delayExecution)(function(){(0,_.default)(p,function(e){return t===e.bidderRequestId}).doneCbCallCount+=1,n()},1)}.bind(this))},bidsBackAll:n,addWinningBid:function(e){k=k.concat(e)},getWinningBids:function(){return k},getTimeout:function(){return B},getAuctionId:function(){return v},getAuctionStatus:function(){return y},getAdUnits:function(){return c},getAdUnitCodes:function(){return d},getBidRequests:function(){return p},getBidsReceived:function(){return g}}},t.getStandardBidderSettings=u,t.getKeyValueTargetingPairs=a,t.adjustBids=s;var l=n(0),p=n(27),g=n(18),h=n(167),v=n(15),b=n(3),y=n(13),m=n(21),_=r(n(10)),w=r(n(8)),A=y.userSync.syncUsers,E=n(0),S=n(7),T=n(9),I=n(2),x=t.AUCTION_STARTED=”started”,j=t.AUCTION_IN_PROGRESS=”inProgress”,O=t.AUCTION_COMPLETED=”completed”;T.on(I.EVENTS.BID_ADJUSTMENT,function(e){s(e)});var C=t.addBidResponse=(0,m.createHook)(“asyncSeries”,function(e,t){var n,r,u,c,s=this.getBidRequests(),f=this.getAuctionId(),g=(0,l.getBidderRequest)(s,t.bidderCode,e),y=function(e){var t=e.adUnitCode,n=e.bid,r=e.bidRequest,i=e.auctionId,o=r.start,u=d({},n,{auctionId:i,responseTimestamp:(0,l.timestamp)(),requestTimestamp:o,cpm:parseFloat(n.cpm)||0,bidder:n.bidderCode,adUnitCode:t});u.timeToRespond=u.responseTimestamp-u.requestTimestamp,T.emit(I.EVENTS.BID_ADJUSTMENT,u);var c=r.bidsr.bids[0]r.bids[0].renderer;cc.url(u.renderer=v.Renderer.install({url:c.url}),u.renderer.setRender(c.render));var s,f=(0,p.getPriceBucketString)(u.cpm,b.config.getConfig(“customPriceBucket”),b.config.getConfig(“currency.granularityMultiplier”));return u.pbLg=f.low,u.pbMg=f.med,u.pbHg=f.high,u.pbAg=f.auto,u.pbDg=f.dense,u.pbCg=f.custom,u.bidderCode(u.cpm0||u.dealId)(s=a(u.bidderCode,u)),u.adserverTargeting=d(u.adserverTargeting||{},s),u}({adUnitCode:e,bid:t,bidRequest:g,auctionId:f});”video”===y.mediaType?(n=this,r=y,u=g,c=!0,b.config.getConfig(“cache.url”)(r.videoCacheKey?r.vastUrl||(E.logError(“videoCacheKey specified but not required vastUrl for video bid”),c=!1):(c=!1,(0,h.store)([r],function(e,t){e?(E.logWarn(“Failed to save to the video cache: “+e+”. Video bid must be discarded.”),i(n,r)):(r.videoCacheKey=t[0].uuid,r.vastUrl||(r.vastUrl=(0,h.getCacheUrl)(r.videoCacheKey)),u.doneCbCallCount+=1,o(n,r),n.bidsBackAll())}))),co(n,r)):o(this,y)},”addBidResponse”)},167:function(e,t,n){“use strict”;function r(e){var t,n;return{type:”xml”,value:e.vastXml?e.vastXml:(t=e.vastUrl,n=e.vastImpUrl,’n n n prebid.org wrappern n “+(n?””:””)+”n n n n “)}}Object.defineProperty(t,”__esModule”,{value:!0}),t.store=function(e,t){var n={puts:e.map(r)};(0,i.ajax)(o.config.getConfig(“cache.url”),(u=t,{success:function(e){var t=void 0;try{t=JSON.parse(e).responses}catch(e){return void u(e,[])}t?u(null,t):u(new Error(“The cache server didn’t respond with a responses property.”),[])},error:function(e,t){u(new Error(“Error storing video ad in the cache: “+e+”: “+JSON.stringify(t)),[])}}),JSON.stringify(n),{contentType:”text/plain”,withCredentials:!0});var u},t.getCacheUrl=function(e){return o.config.getConfig(“cache.url”)+”?uuid=”+e};var i=n(6),o=n(3)},17:function(e,t){e.exports=function(e){return”object”==(void 0===e?”undefined”:_typeof(e))?null!==e:”function”==typeof e}},18:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.hasNonNativeBidder=t.nativeBidder=t.nativeAdUnit=t.NATIVE_TARGETING_KEYS=t.NATIVE_KEYS=t.nativeAdapters=void 0;var r=”function”==typeof Symbol”symbol”==_typeof(Symbol.iterator)?function(e){return void 0===e?”undefined”:_typeof(e)}:function(e){return e”function”==typeof Symbole.constructor===Symbole!==Symbol.prototype?”symbol”:void 0===e?”undefined”:_typeof(e)};t.processNativeAdUnitParams=function(e){return ee.typefunction(e){return!(!e||!(0,a.default)(Object.keys(f),e))||((0,o.logError)(e+” nativeParam is not supported”),!1)}(e.type)?f[e.type]:e},t.nativeBidIsValid=function(e,t){var n=(0,o.getBidRequest)(e.adId,t);if(!n)return!1;if(!(0,o.deepAccess)(e,”native.clickUrl”))return!1;if((0,o.deepAccess)(e,”native.image”)(!(0,o.deepAccess)(e,”native.image.height”)||!(0,o.deepAccess)(e,”native.image.width”)))return!1;if((0,o.deepAccess)(e,”native.icon”)(!(0,o.deepAccess)(e,”native.icon.height”)||!(0,o.deepAccess)(e,”native.icon.width”)))return!1;var r=n.nativeParams;if(!r)return!0;var i=Object.keys(r).filter(function(e){return r[e].required}),u=Object.keys(e.native).filter(function(t){return e.native[t]});return i.every(function(e){return(0,a.default)(u,e)})},t.fireNativeTrackers=function(e,t){var n=void 0;”click”===e.action?n=t.nativet.native.clickTrackers:(n=t.nativet.native.impressionTrackers,t.nativet.native.javascriptTrackers(0,o.insertHtmlIntoIframe)(t.native.javascriptTrackers)),(n||[]).forEach(o.triggerPixel)},t.getNativeTargeting=function(e){var t={};return Object.keys(e.native).forEach(function(n){var i=s[n],o=e.native[n];”object”===(void 0===o?”undefined”:r(o))o.url(o=o.url),i(t[i]=o)}),t};var i,o=n(0),u=n(8),a=(i=u)i.__esModule?i:{default:i},c=t.nativeAdapters=[],s=t.NATIVE_KEYS={title:”hb_native_title”,body:”hb_native_body”,sponsoredBy:”hb_native_brand”,image:”hb_native_image”,icon:”hb_native_icon”,clickUrl:”hb_native_linkurl”,cta:”hb_native_cta”},f=(t.NATIVE_TARGETING_KEYS=Object.keys(s).map(function(e){return s[e]}),{image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}});t.nativeAdUnit=function(e){var t=”native”===e.mediaType,n=(0,o.deepAccess)(e,”mediaTypes.native”);return t||n};var d=t.nativeBidder=function(e){return(0,a.default)(c,e.bidder)};t.hasNonNativeBidder=function(e){return e.bids.filter(function(e){return!d(e)}).length}},19:function(e,t,n){“use strict”;var r=n(0);t.createBid=function(e,t){return new function(e,t){var n=tt.bidId||r.getUniqueIdentifierStr(),i=tt.src||”client”,o=ethis.bidderCode=tt.bidder||””,this.width=0,this.height=0,this.statusMessage=function(){switch(o){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=n,this.mediaType=”banner”,this.source=i,this.getStatusCode=function(){return o},this.getSize=function(){return this.width+”x”+this.height}}(e,t)}},2:function(e,t){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_1.10.0-pre”,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”,BIDDER_DONE:”bidderDone”,SET_TARGETING:”setTargeting”,REQUEST_BIDS:”requestBids”,ADD_AD_UNITS:”addAdUnits”,AD_RENDER_FAILED:”adRenderFailed”},AD_RENDER_FAILED_REASON:{PREVENT_WRITING_ON_MAIN_DOCUMENT:”preventWritingOnMainDocuemnt”,NO_AD:”noAd”,EXCEPTION:”exception”,CANNOT_FIND_AD:”cannotFindAd”,MISSING_DOC_OR_ADID:”missingDocOrAdid”},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”,”hb_source”,”hb_format”],S2S:{SRC:”s2s”,SYNCED_BIDDERS_KEY:”pbjsSyncs”}}},20:function(e,t){var n=e.exports=”undefined”!=typeof windowwindow.Math==Math?window:”undefined”!=typeof selfself.Math==Math?self:Function(“return this”)();”number”==typeof __g(__g=n)},21:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=Object.assign||function(e){for(var t=1;t1void 0!==arguments[1]?arguments[1]:10;”function”==typeof e(u.push({fn:e,priority:t}),u.sort(function(e,t){return t.priority-e.priority}))},removeHook:function(e){u=u.filter(function(n){return n.fn===t||n.fn!==e})}};return”string”==typeof n(o[n]=c),r(function(){for(var n=arguments.length,r=Array(n),i=0;it.max?e:t},{max:0}),h=(0,a.default)(t.buckets,function(t){if(eg.max*n){var i=t.precision;void 0===i(i=s),r=(t.max*n).toFixed(i)}else if(e=t.min*n)return t});return h(o=e,c=n,f=void 0!==(u=h).precision?u.precision:s,d=u.increment*c,l=u.min*c,p=Math.floor((o-l)/d)*d+l,r=(p=Number(p.toFixed(10))).toFixed(f)),r}function i(e){if(c.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach(function(e){void 0!==e.mine.maxe.increment||(t=!1)}),t}Object.defineProperty(t,”__esModule”,{value:!0}),t.isValidPriceConfig=t.getPriceBucketString=void 0;var o,u=n(10),a=(o=u)o.__esModule?o:{default:o},c=n(0),s=2,f={buckets:[{min:0,max:5,increment:.5}]},d={buckets:[{min:0,max:20,increment:.1}]},l={buckets:[{min:0,max:20,increment:.01}]},p={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},g={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};t.getPriceBucketString=function(e,t){var n=arguments.length2void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)(i=””),{low:””===i?””:r(e,f,n),med:””===i?””:r(e,d,n),high:””===i?””:r(e,l,n),auto:””===i?””:r(e,g,n),dense:””===i?””:r(e,p,n),custom:””===i?””:r(e,t,n)}},t.isValidPriceConfig=i},28:function(e,t,n){var r=n(43);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},29:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},3:function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}function i(){function e(){function e(e){return(0,c.default)(Object.keys(w),function(t){return e===w[t]})}n={},r={_debug:l,get debug(){return this._debug},set debug(e){this._debug=e},_bidderTimeout:p,get bidderTimeout(){return this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:g,get publisherDomain(){return this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_cookieSyncDelay:h,get cookieSyncDelay(){return pbjs.cookieSyncDelay||this._cookieSyncDelay},set cookieSyncDelay(e){this._cookieSyncDelay=e},_priceGranularity:w.MEDIUM,set priceGranularity(t){(function(t){if(!t)return d.logError(“Prebid Error: no value passed to `setPriceGranularity()`”),!1;if(“string”==typeof t)e(t)||d.logWarn(“Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.”);else if(“object”===(void 0===t?”undefined”:u(t))!(0,a.isValidPriceConfig)(t))return d.logError(“Invalid custom price value passed to `setPriceGranularity()`”),!1;return!0})(t)(“string”==typeof t?this._priceGranularity=e(t)?t:w.MEDIUM:”object”===(void 0===t?”undefined”:u(t))(this._customPriceBucket=t,this._priceGranularity=w.CUSTOM,d.logMessage(“Using custom price granularity”)))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_sendAllBids:v,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},_bidderSequence:_,get bidderSequence(){return this._bidderSequence},set bidderSequence(e){m[e]?this._bidderSequence=e:d.logWarn(“Invalid order: “+e+”. Bidder Sequence was not set.”)},_timoutBuffer:b,get timeoutBuffer(){return this._timoutBuffer},set timeoutBuffer(e){this._timoutBuffer=e}}}var t=[],n=void 0,r=void 0,i=(0,f.createHook)(“asyncSeries”,function(e){if(“object”===(void 0===e?”undefined”:u(e))){var i,a,c=Object.keys(e),f={};c.forEach(function(t){var i=e[t];”object”===u(n[t])”object”===(void 0===i?”undefined”:u(i))(i=o({},n[t],i)),f[t]=r[t]=i}),i=f,a=Object.keys(i),t.filter(function(e){return(0,s.default)(a,e.topic)}).forEach(function(e){var t,n,r;e.callback((t={},n=e.topic,r=i[e.topic],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))}),t.filter(function(e){return e.topic===A}).forEach(function(e){return e.callback(i)})}else d.logError(“setConfig options must be an object”)});return e(),{getConfig:function(){if(arguments.lengthw;w++)if((l||w in y)(v=m(h=y[w],w,b),e))if(n)A[w]=v;else if(v)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:A.push(h)}else if(f)return!1;return d?-1:s||f?f:A}}},31:function(e,t,n){var r=n(32);e.exports=Object(“z”).propertyIsEnumerable(0)?Object:function(e){return”String”==r(e)?e.split(“”):Object(e)}},32:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},33:function(e,t){e.exports=function(e){if(null==e)throw TypeError(“Can’t call method on “+e);return e}},34:function(e,t,n){var r=n(35),i=Math.min;e.exports=function(e){return e0?i(r(e),9007199254740991):0}},35:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e0?r:n)(e)}},36:function(e,t,n){var r=n(32);e.exports=Array.isArray||function(e){return”Array”==r(e)}},37:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]},38:function(e,t,n){“use strict”;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){function n(t){return”string”==typeof t?[t]:p.isArray(t)?t:e.getAdUnitCodes()||[]}function i(){return e.getBidsReceived().filter(m).filter(t.isBidExpired).filter(_)}function u(){return e.getStandardBidderAdServerTargeting().map(function(e){return e.key}).concat(g.TARGETING_KEYS).filter(a.uniques)}function f(e,t,n,r){return Object.keys(t.adserverTargeting).filter(d()).forEach(function(n){var r,i;e.lengthe.filter((i=n,function(e){return e.adUnitCode===t.adUnitCodee.adserverTargeting[i]})).forEach((r=n,function(e){p.isArray(e.adserverTargeting[r])||(e.adserverTargeting[r]=[e.adserverTargeting[r]]),e.adserverTargeting[r]=e.adserverTargeting[r].concat(t.adserverTargeting[r]).filter(a.uniques),delete t.adserverTargeting[r]}))}),e.push(t),e}function d(){var e=u();return function(t){return-1===e.indexOf(t)}}function b(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(d()).map(function(t){return r({},t.substring(0,y),[e.adserverTargeting[t]])}))}function w(e){return{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0}}var A={};return A.resetPresetTargeting=function(t){if((0,a.isGptPubadsDefined)()){var r=n(t),i=e.getAdUnits().filter(function(e){return(0,l.default)(r,e.code)});window.googletag.pubads().getSlots().forEach(function(e){h.forEach(function(t){i.forEach(function(n){n.code!==e.getAdUnitPath()n.code!==e.getSlotElementId()||e.setTargeting(t,null)})})})}},A.getAllTargeting=function(e){var t,d,m,_,E,S,T,I=arguments.length1void 0!==arguments[1]?arguments[1]:i(),x=n(e),j=function(e,t){var n=A.getWinningBids(e,t);n.forEach(function(e){e.status=v});var i=u();return n=n.map(function(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(function(t){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(t)}).map(function(t){return r({},”hb_deal”===t?(t+”_”+e.bidderCode).substring(0,y):t.substring(0,y),[e.adserverTargeting[t]])}))})}(x,I).concat((S=x,T=I,T.filter(function(e){return(0,l.default)(S,e.adUnitCode)}).map(function(e){return o({},e)}).reduce(f,[]).map(b).filter(function(e){return e}))).concat(c.config.getConfig(“enableSendAllBids”)?(t=x,d=I,m=g.TARGETING_KEYS.concat(s.NATIVE_TARGETING_KEYS),_=[],E=(0,a.groupBy)(d,”adUnitCode”),Object.keys(E).forEach(function(e){var t=(0,a.groupBy)(E[e],”bidderCode”);Object.keys(t).forEach(function(e){return _.push(t[e].reduce(a.getHighestCpm,w()))})}),_.map(function(e){if(e.adserverTargetingt(p.isArray(t)(0,l.default)(t,e.adUnitCode)||”string”==typeof te.adUnitCode===t))return r({},e.adUnitCode,(n=e,m.filter(function(t){return void 0!==e.adserverTargeting[t]}).map(function(e){return r({},(e+”_”+n.bidderCode).substring(0,y),[n.adserverTargeting[e]])})));var n}).filter(function(e){return e})):[]);return j.map(function(e){Object.keys(e).map(function(t){e[t].map(function(e){-1===h.indexOf(Object.keys(e)[0])(h=Object.keys(e).concat(h))})})}),j=j.map(function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].map(function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].join(“, “))}).reduce(function(e,t){return o(t,e)},{}))}).reduce(function(e,t){var n=Object.keys(t)[0];return e[n]=o({},e[n],t[n]),e},{})},A.setTargetingForGPT=function(e){window.googletag.pubads().getSlots().forEach(function(t){Object.keys(e).filter((0,a.isAdUnitCodeMatchingSlot)(t)).forEach(function(n){return Object.keys(e[n]).forEach(function(r){var i=e[n][r].split(“,”);(i=i.length1?[i]:i).map(function(e){return p.logMessage(“Attempting to set key value for slot: “+t.getSlotElementId()+” key: “+r+” value: “+e),e}).forEach(function(e){t.setTargeting(r,e)})})})})},A.getWinningBids=function(e){var t=arguments.length1void 0!==arguments[1]?arguments[1]:i(),r=n(e);return t.filter(function(e){return(0,l.default)(r,e.adUnitCode)}).filter(function(e){return e.cpm0}).map(function(e){return e.adUnitCode}).filter(a.uniques).map(function(e){return t.filter(function(t){return t.adUnitCode===e?t:null}).reduce(a.getHighestCpm,w(e))})},A.setTargetingForAst=function(){var e=A.getAllTargeting();Object.keys(e).forEach(function(t){return Object.keys(e[t]).forEach(function(n){if(p.logMessage(“Attempting to set targeting for targetId: “+t+” key: “+n+” value: “+e[t][n]),p.isStr(e[t][n])||p.isArray(e[t][n])){var r={};r[n.toUpperCase()]=e[t][n],window.apntag.setKeywords(t,r)}})})},A.isApntagDefined=function(){if(window.apntagp.isFn(window.apntag.setKeywords))return!0},A}Object.defineProperty(t,”__esModule”,{value:!0}),t.targeting=t.getOldestBid=t.isBidExpired=t.RENDERED=t.BID_TARGETING_SET=void 0;var o=Object.assign||function(e){for(var t=1;t(0,a.timestamp)()},function(e){return e(e.status!(0,l.default)([v,b],e.status)||!e.status)}),_=t.getOldestBid=function(e,t,n){var r=!0;return n.forEach(function(n,i){t!==ie.bidder===n.biddere.adUnitCode===n.adUnitCodee.responseTimestampn.responseTimestamp(r=!1)}),r};t.targeting=i(f.auctionManager)},39:function(e,t){var n;n=function(){return this}();try{n=n||Function(“return this”)()||(0,eval)(“this”)}catch(e){“object”==(“undefined”==typeof window?”undefined”:_typeof(window))(n=window)}e.exports=n},4:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.NATIVE=”native”,t.VIDEO=”video”,t.BANNER=”banner”},42:function(e,t,n){“use strict”;var r=n(16),i=n(30)(5),o=”find”,u=!0;o in[]Array(1)[o](function(){u=!1}),r(r.P+r.F*u,”Array”,{find:function(e){return i(this,e,arguments.length1?arguments[1]:void 0)}}),n(24)(o)},43:function(e,t){e.exports=function(e){if(“function”!=typeof e)throw TypeError(e+” is not a function!”);return e}},44:function(e,t,n){var r=n(45),i=n(50);e.exports=n(23)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},45:function(e,t,n){var r=n(46),i=n(47),o=n(49),u=Object.defineProperty;t.f=n(23)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return u(e,t,n)}catch(e){}if(“get”in n||”set”in n)throw TypeError(“Accessors not supported!”);return”value”in n(e[t]=n.value),e}},459:function(e,t,n){e.exports=n(460)},46:function(e,t,n){var r=n(17);e.exports=function(e){if(!r(e))throw TypeError(e+” is not an object!”);return e}},460:function(e,t,n){“use strict”;function r(e,t,n){e.defaultViewe.defaultView.frameElement(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}function i(e,t,n){var r={};r.reason=e,r.message=t,n(r.bid=n),A.logError(t),T.emit(B,r)}function o(e){e.forEach(function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){A.logError(“Error processing command :”,”prebid.js”,e)}})}var u,a=”function”==typeof Symbol”symbol”==_typeof(Symbol.iterator)?function(e){return void 0===e?”undefined”:_typeof(e)}:function(e){return e”function”==typeof Symbole.constructor===Symbole!==Symbol.prototype?”symbol”:void 0===e?”undefined”:_typeof(e)},c=Object.assign||function(e){for(var t=1;t0void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels;T.emit(C);var u=n||g.config.getConfig(“bidderTimeout”);if(r=r||_.adUnits,A.logInfo(“Invoking pbjs.requestBids”,arguments),ii.length?r=r.filter(function(e){return(0,m.default)(i,e.code)}):i=rr.map(function(e){return e.code}),r.forEach(function(e){var t=Object.keys(e.mediaTypes||{banner:”banner”}),n=e.bids.map(function(e){return e.bidder}),r=E.bidderRegistry;n.forEach(function(n){var i=r[n],o=ii.getSpeci.getSpec(),u=oo.supportedMediaTypes||[“banner”];t.some(function(e){return(0,m.default)(u,e)})||(A.logWarn(A.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter(function(e){return e.bidder!==n}))})}),r0!==r.length){var a=h.auctionManager.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:u,labels:o});return a.callBids(),a}if(A.logMessage(“No adUnits configured. No bids requested.”),”function”==typeof t)try{t()}catch(e){A.logError(“Error executing bidsBackHandler”,null,e)}}),_.addAdUnits=function(e){A.logInfo(“Invoking pbjs.addAdUnits”,arguments),A.isArray(e)?(e.forEach(function(e){return e.transactionId=A.generateUUID()}),_.adUnits.push.apply(_.adUnits,e)):”object”===(void 0===e?”undefined”:a(e))(e.transactionId=A.generateUUID(),_.adUnits.push(e)),T.emit(j)},_.onEvent=function(e,t,n){A.logInfo(“Invoking pbjs.onEvent”,arguments),A.isFn(t)?!n||q[e].call(null,n)?T.on(e,t,n):A.logError(‘The id provided is not valid for event “‘+e+'” and no handler was set.’):A.logError(‘The event handler provided is not a function and was not set on event “‘+e+'”.’)},_.offEvent=function(e,t,n){A.logInfo(“Invoking pbjs.offEvent”,arguments),n!q[e].call(null,n)||T.off(e,t,n)},_.registerBidAdapter=function(e,t){A.logInfo(“Invoking pbjs.registerBidAdapter”,arguments);try{E.registerBidAdapter(e(),t)}catch(e){A.logError(“Error registering bidder adapter : “+e.message)}},_.registerAnalyticsAdapter=function(e){A.logInfo(“Invoking pbjs.registerAnalyticsAdapter”,arguments);try{E.registerAnalyticsAdapter(e)}catch(e){A.logError(“Error registering analytics adapter : “+e.message)}},_.createBid=function(e){return A.logInfo(“Invoking pbjs.createBid”,arguments),S.createBid(e)},_.loadScript=function(e,t,n){A.logInfo(“Invoking pbjs.loadScript”,arguments),(0,p.loadScript)(e,t,n)},_.enableAnalytics=function(e){e!A.isEmpty(e)?(A.logInfo(“Invoking pbjs.enableAnalytics for: “,e),E.enableAnalytics(e)):A.logError(“pbjs.enableAnalytics should be called with option {}”)},_.aliasBidder=function(e,t){A.logInfo(“Invoking pbjs.aliasBidder”,arguments),et?E.aliasBidAdapter(e,t):A.logError(“bidderCode and alias must be passed as arguments”,”pbjs.aliasBidder”)},_.getAllWinningBids=function(){return h.auctionManager.getAllWinningBids().map(f.removeRequestId)},_.getAllPrebidWinningBids=function(){return h.auctionManager.getBidsReceived().filter(function(e){return e.status===v.BID_TARGETING_SET}).map(f.removeRequestId)},_.getHighestCpmBids=function(e){var t=h.auctionManager.getBidsReceived().filter(v.getOldestBid);return v.targeting.getWinningBids(e,t).map(f.removeRequestId)},_.getConfig=g.config.getConfig,_.setConfig=g.config.setConfig,_.que.push(function(){return(0,d.listenMessagesFromCreative)()}),_.cmd.push=function(e){if(“function”==typeof e)try{e.call()}catch(e){A.logError(“Error processing command :”,e.message,e.stack)}else A.logError(“Commands written into pbjs.cmd.push must be wrapped in a function”)},_.que.push=_.cmd.push,_.processQueue=function(){o(_.que),o(_.cmd)}},461:function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}function i(e){var t,n,r,i,a,l,p,g,h,v,b,y,m,_=e.message?”message”:”data”,w={};try{w=JSON.parse(e[_])}catch(e){return}if(w.adId){var A=(0,f.default)(s.auctionManager.getBidsReceived(),function(e){return e.adId===w.adId});”Prebid Request”===w.message(t=A,n=w.adServerDomain,r=e.source,i=t.adId,a=t.ad,l=t.adUrl,p=t.width,g=t.height,i(v=(h=t).adUnitCode,b=h.width,y=h.height,(m=document.getElementById((0,f.default)(window.googletag.pubads().getSlots().filter((0,c.isSlotMatchingAdUnitCode)(v)),function(e){return e}).getSlotElementId()).querySelector(“iframe”)).width=””+b,m.height=””+y,r.postMessage(JSON.stringify({message:”Prebid Response”,ad:a,adUrl:l,adId:i,width:p,height:g}),n)),s.auctionManager.addWinningBid(A),o.default.emit(d,A)),”Prebid Native”===w.message((0,u.fireNativeTrackers)(w,A),s.auctionManager.addWinningBid(A),o.default.emit(d,A))}}Object.defineProperty(t,”__esModule”,{value:!0}),t.listenMessagesFromCreative=function(){addEventListener(“message”,i,!1)};var o=r(n(9)),u=n(18),a=n(2),c=n(0),s=n(26),f=r(n(10)),d=a.EVENTS.BID_WON},47:function(e,t,n){e.exports=!n(23)!n(29)(function(){return 7!=Object.defineProperty(n(48)(“div”),”a”,{get:function(){return 7}}).a})},48:function(e,t,n){var r=n(17),i=n(20).document,o=r(i)r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},49:function(e,t,n){var r=n(17);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t”function”==typeof(n=e.toString)!r(i=n.call(e)))return i;if(“function”==typeof(n=e.valueOf)!r(i=n.call(e)))return i;if(!t”function”==typeof(n=e.toString)!r(i=n.call(e)))return i;throw TypeError(“Can’t convert object to primitive value”)}},50:function(e,t){e.exports=function(e,t){return{enumerable:!(1e),configurable:!(2e),writable:!(4e),value:t}}},51:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},52:function(e,t,n){var r=n(33);e.exports=function(e){return Object(r(e))}},53:function(e,t,n){var r=n(54);e.exports=function(e,t){return new(r(e))(t)}},54:function(e,t,n){var r=n(17),i=n(36),o=n(55)(“species”);e.exports=function(e){var t;return i(e)(“function”!=typeof(t=e.constructor)||t!==Array!i(t.prototype)||(t=void 0),r(t)null===(t=t[o])(t=void 0)),void 0===t?Array:t}},55:function(e,t,n){var r=n(56)(“wks”),i=n(58),o=n(20).Symbol,u=”function”==typeof o;(e.exports=function(e){return r[e]||(r[e]=uo[e]||(u?o:i)(“Symbol.”+e))}).store=r},56:function(e,t,n){var r=n(14),i=n(20),o=”__core-js_shared__”,u=i[o]||(i[o]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})(“versions”,[]).push({version:r.version,mode:n(57)?”pure”:”global”,copyright:”© 2018 Denis Pushkarev (zloirock.ru)”})},57:function(e,t){e.exports=!0},58:function(e,t){var n=0,r=Math.random();e.exports=function(e){return”Symbol(“.concat(void 0===e?””:e,”)_”,(++n+r).toString(36))}},59:function(e,t,n){“use strict”;var r=n(16),i=n(60)(!0);r(r.P,”Array”,{includes:function(e){return i(this,e,arguments.length1?arguments[1]:void 0)}}),n(24)(“includes”)},6:function(e,t,n){“use strict”;function r(){var e=arguments.length0void 0!==arguments[0]?arguments[0]:3e3;return function(t,n,r){var s=arguments.length3void 0!==arguments[3]?arguments[3]:{};try{var f=void 0,d=!1,l=s.method||(r?”POST”:”GET”),p=”object”===(void 0===n?”undefined”:o(n))null!==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===(f=new window.XMLHttpRequest).responseType(d=!0):d=!0,d?((f=new window.XDomainRequest).onload=function(){p.success(f.responseText,f)},f.onerror=function(){p.error(“error”,f)},f.ontimeout=function(){p.error(“timeout”,f)},f.onprogress=function(){a.logMessage(“xhr onprogress”)}):(f.onreadystatechange=function(){if(f.readyState===c){var e=f.status;e=200ef;)if((a=c[f++])!=a)return!0}else for(;sf;f++)if((e||f in c)c[f]===n)return e||freturn!e-1}}},61:function(e,t,n){var r=n(31),i=n(33);e.exports=function(e){return r(i(e))}},62:function(e,t,n){var r=n(35),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))0void 0!==arguments[0]?arguments[0]:{},n=t.labels,r=void 0===n?[]:n,o=t.labelAll,u=void 0!==oo,c=t.activeLabels,d=void 0===c?[]:c,l=arguments.length1void 0!==arguments[1]?arguments[1]:[],p=(e=arguments.length2void 0!==arguments[2]?arguments[2]:f,e.reduce(function(e,t){return”object”===(void 0===t?”undefined”:i(t))”string”==typeof t.mediaQuery?matchMedia(t.mediaQuery).matches(Array.isArray(t.sizesSupported)(e.shouldFilter=!0),[“labels”,”sizesSupported”].forEach(function(n){return(t[n]||[]).forEach(function(t){return e[n][t]=!0})})):(0,a.logWarn)(‘sizeConfig rule missing required property “mediaQuery”‘),e},{labels:{},sizesSupported:{},shouldFilter:!1})),g=void 0;return g=p.shouldFilter?l.filter(function(e){return p.sizesSupported[e]}):l,{active:g.length0(0===r.length||!u(r.some(function(e){return p.labels[e]})||r.some(function(e){return(0,s.default)(d,e)}))||ur.reduce(function(e,t){return e?p.labels[t]||(0,s.default)(d,t):e},!0)),sizes:g}};var o,u=n(3),a=n(0),c=n(8),s=(o=c)o.__esModule?o:{default:o},f=[];u.config.getConfig(“sizeConfig”,function(e){return r(e.sizeConfig)})},65:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.hasNonVideoBidder=t.videoBidder=t.videoAdUnit=void 0,t.isValidVideoBid=function(e,t){var n=(0,o.getBidRequest)(e.adId,t),r=n(0,o.deepAccess)(n,”mediaTypes.video”),i=r(0,o.deepAccess)(r,”context”);return!n||ri!==s?u.config.getConfig(“cache.url”)||!e.vastXml||e.vastUrl?!(!e.vastUrl!e.vastXml):((0,o.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 pbjs.setConfig({ cache: {url: “…”} });n ‘),!1):i!==s||!(!e.renderer!n.renderer)};var r,i=n(7),o=n(0),u=n(3),a=n(8),c=(r=a)r.__esModule?r:{default:r},s=”outstream”,f=(t.videoAdUnit=function(e){var t=”video”===e.mediaType,n=(0,o.deepAccess)(e,”mediaTypes.video”);return t||n},t.videoBidder=function(e){return(0,c.default)(i.videoAdapters,e.bidder)});t.hasNonVideoBidder=function(e){return e.bids.filter(function(e){return!f(e)}).length}},7:function(e,t,n){“use strict”;function r(e){return ee.__esModule?e:{default:e}}function i(e,t){return e.labelAll?{labelAll:!0,labels:e.labelAll,activeLabels:t}:{labelAll:!1,labels:e.labelAny,activeLabels:t}}function o(e){var t=e.bidderCode,n=e.auctionId,r=e.bidderRequestId,o=e.adUnits,u=e.labels;return o.reduce(function(e,o){var a=(0,f.resolveStatus)(i(o,u),o.sizes),l=a.active,p=a.sizes;return le.push(o.bids.filter(function(e){return e.bidder===t}).reduce(function(e,t){o.mediaTypes(b.isValidMediaTypes(o.mediaTypes)?t=c({},t,{mediaTypes:o.mediaTypes}):b.logError(“mediaTypes is not correctly configured for adunit “+o.code));var a=o.nativeParams||b.deepAccess(o,”mediaTypes.native”);a(t=c({},t,{nativeParams:(0,d.processNativeAdUnitParams)(a)})),t=c({},t,(0,s.getDefinedParams)(o,[“mediaType”,”renderer”]));var l=(0,f.resolveStatus)(i(t,u),p),g=l.active,h=l.sizes;return ge.push(c({},t,{adUnitCode:o.code,transactionId:o.transactionId,sizes:h,bidId:t.bid_id||b.getUniqueIdentifierStr(),bidderRequestId:r,auctionId:n})),e},[])),e},[]).reduce(s.flatten,[]).filter(function(e){return””!==e})}function u(){return AA.enabledA.testing_}var a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!ra.returna.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}}(),c=Object.assign||function(e){for(var t=1;t (eg mediaTypes.banner.sizes).”);var n=e.mediaTypes;if(nn.banner){var r=n.banner;r.sizes?e.sizes=r.sizes:(b.logError(“Detected a mediaTypes.banner object did not include sizes. This is a required field for the mediaTypes.banner object. Removing invalid mediaTypes.banner object from request.”),delete e.mediaTypes.banner)}if(nn.video){var i=n.video;if(i.playerSize)if(Array.isArray(i.playerSize)1===i.playerSize.lengthi.playerSize.every(t))e.sizes=i.playerSize;else if(t(i.playerSize)){var o=[];o.push(i.playerSize),b.logInfo(“Transforming video.playerSize from “+i.playerSize+” to “+o+” so it’s in the proper format.”),e.sizes=i.playerSize=o}else b.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 e.mediaTypes.video.playerSize}if(nn.native){var u=n.native;u.imageu.image.sizes!Array.isArray(u.image.sizes)(b.logError(“Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request.”),delete e.mediaTypes.native.image.sizes),u.imageu.image.aspect_ratios!Array.isArray(u.image.aspect_ratios)(b.logError(“Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request.”),delete e.mediaTypes.native.image.aspect_ratios),u.iconu.icon.sizes!Array.isArray(u.icon.sizes)(b.logError(“Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request.”),delete e.mediaTypes.native.icon.sizes)}}),e},t.callBids=function(e,t,n,r){if(t.length){var i=(0,p.ajaxBuilder)(t[0].timeout),o=t.reduce(function(e,t){return e[Number(void 0!==t.srct.src===y.S2S.SRC)].push(t),e},[[],[]]),u=a(o,2),c=u[0],f=u[1];if(f.length){var d=A.bidders,l=w[A.adapter],g=f[0].tid,_=f[0].adUnitsS2SCopy;if(_.forEach(function(e){var t=e.bids.filter(function(t){return(0,v.default)(f,function(n){return n.bidderCode===t.bidder(0,v.default)(n.bids,function(t){return t.adUnitCode===e.code})})});e.bids=t}),_=_.filter(function(e){return e.bids.length0}),l){var E={tid:g,ad_units:_};if(E.ad_units.length){var S=f.map(function(e){return e.start=(0,s.timestamp)(),e.doneCbCallCount=0,r(e.bidderRequestId)}),T=E.ad_units.reduce(function(e,t){return e.concat((t.bids||[]).reduce(function(e,t){return e.concat(t.bidder)},[]))},[]);b.logMessage(“CALLING S2S HEADER BIDDERS ==== “+d.filter(function(e){return(0,h.default)(T,e)}).join(“,”)),f.forEach(function(e){m.emit(y.EVENTS.BID_REQUESTED,e)}),l.callBids(E,f,n,function(){return S.forEach(function(e){return e()})},i)}}}c.forEach(function(e){e.start=(0,s.timestamp)();var t=w[e.bidderCode];if(t){b.logMessage(“CALLING BIDDER ======= “+e.bidderCode),m.emit(y.EVENTS.BID_REQUESTED,e),e.doneCbCallCount=0;var o=r(e.bidderRequestId);t.callBids(e,n,o,i)}else b.logError(“Adapter trying to be called which does not exist: “+e.bidderCode+” adaptermanager.callBids”)})}else b.logWarn(“callBids executed with no bidRequests. Were they filtered by labels or sizing?”)},t.videoAdapters=[],t.registerBidAdapter=function(e,n){var r=(arguments.length2void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===r?[]:r;en?”function”==typeof e.callBids?(w[n]=e,(0,h.default)(i,”video”)t.videoAdapters.push(n),(0,h.default)(i,”native”)d.nativeAdapters.push(n)):b.logError(“Bidder adaptor error for bidder code: “+n+”bidder must implement a callBids() function”):b.logError(“bidAdaptor or bidderCode not specified”)},t.aliasBidAdapter=function(e,n){var r,i;if(void 0===w[n]){var o=w[e];if(void 0===o)b.logError(‘bidderCode “‘+e+'” is not an existing bidder.’,”adaptermanager.aliasBidAdapter”);else try{var u=void 0,a=(r=e,i=[],(0,h.default)(t.videoAdapters,r)i.push(“video”),(0,h.default)(d.nativeAdapters,r)i.push(“native”),i);if(o.constructor.prototype!=Object.prototype)(u=new o.constructor).setBidderCode(n);else{var s=o.getSpec();u=(0,l.newBidder)(c({},s,{code:n})),t.aliasRegistry[n]=e}this.registerBidAdapter(u,n,{supportedMediaTypes:a})}catch(t){b.logError(e+” bidder does not currently support aliasing.”,”adaptermanager.aliasBidAdapter”)}}else b.logMessage(‘alias name “‘+n+'” has been already specified.’)},t.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code;tn?”function”==typeof t.enableAnalytics?(t.code=n,E[n]=t):b.logError(‘Prebid Error: Analytics adaptor error for analytics “‘+n+'”n analytics adapter must implement an enableAnalytics() function’):b.logError(“Prebid Error: analyticsAdapter or analyticsCode not specified”)},t.enableAnalytics=function(e){b.isArray(e)||(e=[e]),b._each(e,function(e){var t=E[e.provider];t?t.enableAnalytics(e):b.logError(“Prebid Error: no analytics adapter found in registry forn “+e.provider+”.”)})},t.getBidAdapter=function(e){return w[e]},t.setS2STestingModule=function(e){_=e},t.callTimedOutBidders=function(e,t,n){t=t.map(function(t){return t.params=b.getUserConfiguredParams(e,t.adUnitCode,t.bidder),t.timeout=n,t}),t=b.groupBy(t,”bidder”),Object.keys(t).forEach(function(e){try{var n=w[e].getSpec();nn.onTimeout”function”==typeof n.onTimeout(b.logInfo(“Invoking “+e+”.onTimeout”),n.onTimeout(t[e]))}catch(t){b.logWarn(“Error calling onTimeout of “+e)}})}},8:function(e,t,n){n(59),e.exports=n(14).Array.includes},9:function(e,t,n){“use strict”;var r=Object.assign||function(e){for(var t=1;t1?arguments[1]:void 0)}}),n(24)(o)}}),pbjsChunk([134],{111:function(e,t,n){e.exports=n(112)},112:function(e,t,n){“use strict”;function r(){if(_”object”===s(window[m])”function”==typeof window[m].getInstance){for(var e=0;e0){var t=i(e);w++,window[m].logEvent(“Prebid.js Bids”,t)}}),r()}function a(e){y.push(function(){d._each(e,function(e){var t=i(e);w++,window[m].logEvent(“Prebid.js Timeouts”,t)})}),r()}function c(e){y.push(function(){var t=i(e);w++,window[m].logEvent(“Prebid.js Wins”,t)}),r()}var s=”function”==typeof Symbol”symbol”==_typeof(Symbol.iterator)?function(e){return void 0===e?”undefined”:_typeof(e)}:function(e){return e”function”==typeof Symbole.constructor===Symbole!==Symbol.prototype?”symbol”:void 0===e?”undefined”:_typeof(e)},f=n(9),d=n(0),l=n(2),p=n(7),g=l.EVENTS.BID_REQUESTED,h=l.EVENTS.BID_TIMEOUT,v=l.EVENTS.BID_RESPONSE,b=l.EVENTS.BID_WON,y=[],m=null,_=!0,w=0,A=!0,E=[“bidder”,”bidderCode”,”size”,”cpm”,”statusMessage”,”timeToRespond”,”adUnitCode”];t.enableAnalytics=function(e){var t=e.provider,n=e.options;if(m=t||”amplitude”,A=void 0===n||void 0===n.sampling||Math.random()0(f.member_id=s),tt.gdprConsent(f.gdpr_consent={consent_string:t.gdprConsent.consentString,consent_required:t.gdprConsent.gdprApplies}),{method:”POST”,url:”//ib.adnxs.com/ut/v3/prebid”,data:JSON.stringify(f),bidderRequest:t}},interpretResponse:function(e,t){var n=this,r=t.bidderRequest;e=e.body;var i=[];if(!e||e.error){var o=”in response for “+r.bidderCode+” adapter”;return ee.error(o+=”: “+e.error),l.logError(o),i}return e.tagse.tags.forEach(function(e){var t,o,u=(t=e)t.adst.ads.length(0,h.default)(t.ads,function(e){return e.rtb});if(u0!==u.cpm(0,v.default)(n.supportedMediaTypes,u.ad_type)){var a=function(e,t,n){var r={requestId:e.uuid,cpm:t.cpm,creativeId:t.creative_id,dealId:t.deal_id,currency:”USD”,netRevenue:!0,ttl:300,appnexus:{buyerMemberId:t.buyer_member_id}};if(t.rtb.video){if(f(r,{width:t.rtb.video.player_width,height:t.rtb.video.player_height,vastUrl:t.rtb.video.asset_url,vastImpUrl:t.notify_url,ttl:3600}),t.renderer_url){var i=l.deepAccess(n.bids[0],”renderer.options”);f(r,{adResponse:e,renderer:function(e,t){var n=arguments.length2void 0!==arguments[2]?arguments[2]:{},r=d.Renderer.install({id:t.renderer_id,url:t.renderer_url,config:n,loaded:!1});try{r.setRender(c)}catch(e){l.logWarn(“Prebid Error calling setRender on renderer”,e)}return r.setEventHandlers({impression:function(){return l.logMessage(“AppNexus outstream video impression event”)},loaded:function(){return l.logMessage(“AppNexus outstream video loaded event”)},ended:function(){l.logMessage(“AppNexus outstream renderer video event”),document.querySelector(“#”+e).style.display=”none”}}),r}(r.adUnitCode,t,i)}),r.adResponse.ad=r.adResponse.ads[0],r.adResponse.ad.video=r.adResponse.ad.rtb.video}}else if(t.rtb[g.NATIVE]){var o=t.rtb[g.NATIVE];r[g.NATIVE]={title:o.title,body:o.desc,cta:o.ctatext,sponsoredBy:o.sponsored,clickUrl:o.link.url,clickTrackers:o.link.click_trackers,impressionTrackers:o.impression_trackers,javascriptTrackers:o.javascript_trackers},o.main_img(r.native.image={url:o.main_img.url,height:o.main_img.height,width:o.main_img.width}),o.icon(r.native.icon={url:o.icon.url,height:o.icon.height,width:o.icon.width})}else{f(r,{width:t.rtb.banner.width,height:t.rtb.banner.height,ad:t.rtb.banner.content});try{var u=t.rtb.trackers[0].impression_urls[0],a=l.createTrackPixelHtml(u);r.ad+=a}catch(e){l.logError(“Error appending tracking pixel”,e)}}return r}(e,u,r);a.mediaType=(o=u.ad_type)===g.VIDEO?g.VIDEO:o===g.NATIVE?g.NATIVE:g.BANNER,i.push(a)}}),i},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:”iframe”,url:”//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html”}]}};(0,p.registerBidder)(_)},120:function(e,t){}},[118]),pbjsChunk([132],{156:function(e,t,n){e.exports=n(157)},157:function _(module,exports,__webpack_require__){“use strict”;function _interopRequireWildcard(e){if(ee.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)(t[n]=e[n]);return t.default=e,t}function publisherTagAvailable(){return”undefined”!=typeof CriteoCriteo.PubTagCriteo.PubTag.AdaptersCriteo.PubTag.Adapters.Prebid}function buildContext(e){var t=utils.getTopWindowUrl(),n=(0,_url.parse)(t).search,r={url:t,debug:”1″===n.pbt_debug,noLog:”1″===n.pbt_nolog,integrationMode:void 0};return e.forEach(function(e){e.params.integrationMode(r.integrationMode=e.params.integrationMode)}),r}function buildCdbUrl(e){var t=CDB_ENDPOINT;return t+=”?profileId=”+PROFILE_ID,t+=”av=”+String(ADAPTER_VERSION),t+=”cb=”+String(Math.floor(99999999999*Math.random())),e.integrationMode in INTEGRATION_MODES(t+=”im=”+INTEGRATION_MODES[e.integrationMode]),e.debug(t+=”debug=1″),e.noLog(t+=”nolog=1″),t}function buildCdbRequest(e,t){var n=void 0,r={publisher:{url:e.url},slots:t.map(function(e){n=e.params.networkIdvar t={impid:e.adUnitCode,transactionid:e.transactionId,auctionId:e.auctionId,sizes:e.sizes.map(function(e){return e[0]+”x”+e[1]})};return e.params.zoneId(t.zoneid=e.params.zoneId),e.params.publisherSubId(t.publishersubid=e.params.publisherSubId),e.params.nativeCallback(t.native=!0),t})};return n(r.publisher.networkid=n),r}function createNativeAd(e,t,n){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[e]={callback:n,payload:t},’