':""},t.createTrackPixelIframeHtml=ce,t.getValueString=ue,t.uniques=de,t.flatten=fe,t.getBidRequest=function(e,t){return e?(t.some(function(t){var r=s()(t.bids,function(t){return["bidId","adId","bid_id"].some(function(n){return t[n]===e})});return r&&(n=r),r}),n):void 0;var n},t.getKeys=le,t.getValue=function(e,t){return e[t]},t.getKeyByValue=function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},t.getBidderCodes=function(){return(0n[e]?-1:0}},t.parseQS=Oe,t.formatQS=Ie,t.parseUrl=function(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var r=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:r?n.search:k.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}},t.buildUrl=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(k.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")},t.deepEqual=Ee,t.mergeDeep=function e(t){for(var n=arguments.length,r=new Array(1>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()};var r=n(3),i=n(160),o=n.n(i),a=n(10),s=n.n(a),c=n(12),u=n.n(c),d=n(161);n.d(t,"deepAccess",function(){return d.a});var f=n(162);function l(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n\n ')):""}function ue(e,t,n){return null==t?n:X(t)?t:ee(t)?t.toString():void k.logWarn("Unsuported type for param: "+e+" required type: String")}function de(e,t,n){return n.indexOf(e)===t}function fe(e,t){return e.concat(t)}function le(e){return Object.keys(e)}function pe(){if(window.googletag&&$(window.googletag.pubads)&&$(window.googletag.pubads().getSlots))return!0}var ge=ye("timeToRespond",function(e,t){return te.length)&&(t=e.length);for(var n=0,r=new Array(t);na.lastUpdated+24*r*60*60*1e3)&&Object(b.a)(n.url,{success:function(t){try{t=JSON.parse(t);var n={lastUpdated:Object(y.timestamp)(),mapping:t.mapping};I.setDataInLocalStorage(o,JSON.stringify(n))}catch(t){Object(y.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){Object(y.logError)("Failed to load ".concat(e," bidder translation file"))}})}catch(t){Object(y.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}}}),e.call(this,t)}function x(e,t,n){function r(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}return e?t?(i=Object.keys(t),E.every(function(e){return m()(i,e)&&!m()([void 0,null],t[e])})?"native"!==t.mediaType||Object(c.g)(t,n)?"video"!==t.mediaType||Object(u.d)(t,n)?!("banner"===t.mediaType&&!function(e,t,n){if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),1;var r=Object(y.getBidderRequest)(n,t.bidderCode,e),i=r&&r.bids&&r.bids[0]&&r.bids[0].sizes,o=Object(y.parseSizesInput)(i);if(1===o.length){var a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o[0].split("x"),2),s=a[0],c=a[1];return t.width=parseInt(s,10),t.height=parseInt(c,10),1}}(e,t,n)&&(Object(y.logError)(r("Banner bids require a width and height")),1)):(Object(y.logError)(r("Video bid does not have required vastUrl or renderer property")),!1):(Object(y.logError)(r("Native bid missing some required properties.")),!1):(Object(y.logError)(r("Bidder ".concat(t.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1)):(Object(y.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):(Object(y.logWarn)("No adUnitCode was supplied to addBidResponse."),!1);var i}Object(h.a)("checkAdUnitSetup").before(j)},10:function(e,t,n){var r=n(98);e.exports=r},100:function(e,t,n){var r=n(30),i=n(101),o=n(46),a=n(47),s=n(55),c=n(28),u=n(73),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=s(t,!0),u)try{return d(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},101:function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},102:function(e,t,n){function r(e,t){var n=s[a(e)];return n==u||n!=c&&("function"==typeof t?i(t):!!t)}var i=n(31),o=/#|\.prototype\./,a=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=r.data={},c=r.NATIVE="N",u=r.POLYFILL="P";e.exports=r},103:function(e,t,n){var r=n(27),i=n(104),o=n(21)("species");e.exports=function(e,t){var n;return i(e)&&("function"==typeof(n=e.constructor)&&(n===Array||i(n.prototype))||r(n)&&null===(n=n[o]))&&(n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},104:function(e,t,n){var r=n(48);e.exports=Array.isArray||function(e){return"Array"==r(e)}},105:function(e,t,n){var r=n(26),i=n(32);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},106:function(e,t,n){var r=n(77);e.exports=r&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator)},107:function(e,t,n){n(108);var r=n(52);e.exports=r("Array","includes")},108:function(e,t,n){var r=n(14),i=n(78).includes,o=n(51);r({target:"Array",proto:!0,forced:!n(60)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e,t){return i(this,e,1<0?i(n+t,0):o(n,t)}},11:function(e,t,n){t.a=c,t.c=function(e){return!(!e||!e.url)},t.b=function(e,t){e.render(t)};var r=n(40),i=n(0),o=n(10),a=n.n(o),s="outstream";function c(e){var t=this,n=e.url,o=e.config,c=e.id,u=e.callback,d=e.loaded,f=e.adUnitCode;this.url=n,this.config=o,this.handlers={},this.id=c,this.loaded=d,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):i.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){t.loaded=!0,t.process()},this.render=function(){!function(e){var t=pbjs.adUnits,n=a()(t,function(t){return t.code===e});if(!n)return!1;var r=i.deepAccess(n,"renderer"),o=!!(r&&r.url&&r.render),s=i.deepAccess(n,"mediaTypes.video.renderer"),c=!!(s&&s.url&&s.render);return!!(o&&!0!==r.backupOnly||c&&!0!==s.backupOnly)}(f)?Object(r.a)(n,s,this.callback):i.logWarn("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(f)),this._render?this._render.apply(this,arguments):i.logWarn("No render function was provided, please use .setRender on the renderer")}.bind(this)}c.install=function(e){return new c({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},c.prototype.getConfig=function(){return this.config},c.prototype.setRender=function(e){this._render=e},c.prototype.setEventHandlers=function(e){this.handlers=e},c.prototype.handleVideoEvent=function(e){var t=e.id,n=e.eventName;"function"==typeof this.handlers[n]&&this.handlers[n](),i.logMessage("Prebid Renderer event for id ".concat(t," type ").concat(n))},c.prototype.process=function(){for(;0c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},121:function(e,t,n){var r=n(29);e.exports=r("document","documentElement")},122:function(e,t,n){var r=n(86);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:r(e,i,t[i],n);return e}},123:function(e,t,n){function r(){return this}var i=n(87).IteratorPrototype,o=n(84),a=n(46),s=n(64),c=n(38);e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(i,{next:a(1,n)}),s(e,u,!1,!0),c[u]=r,e}},124:function(e,t,n){var r=n(31);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},125:function(e,t,n){var r=n(15),i=n(126);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(n){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},126:function(e,t,n){var r=n(27);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},127:function(e,t,n){var r=n(29),i=n(33),o=n(21),a=n(30),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},128:function(e,t){},129:function(e,t,n){function r(e){return function(t,n){var r,a,s=String(o(t)),c=i(n),u=s.length;return c<0||u<=c?e?"":void 0:(r=s.charCodeAt(c))<55296||56319e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},132:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},133:function(e,t,n){n(14)({target:"Set",stat:!0},{from:n(134)})},134:function(e,t,n){var r=n(19),i=n(24),o=n(17);e.exports=function(e,t,n){var a,s,c,u,d=arguments.length,f=1>>0,o=0;if(t)n=t;else{for(;o<2?r(i[e])||r(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]}},3:function(e,t,n){n.d(t,"a",function(){return h}),n.d(t,"b",function(){return w});var r=n(45),i=n(10),o=n.n(i),a=n(12),s=n.n(a),c=n(79),u=n.n(c),d=n(0);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l="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)})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?m.deepAccess(x(),e):x()}return function(e,t){var n=t;if("string"!=typeof e&&(n=e,e="*"),"function"==typeof n){var r={topic:e,callback:n};return I.push(r),function(){I.splice(I.indexOf(r),1)}}m.logError("listener must be a function")}.apply(void 0,arguments)},setConfig:function(e){var t,n;m.isPlainObject(e)?(t=Object.keys(e),n={},t.forEach(function(t){var r="fpd"===t?"ortb2":t,i="fpd"===t?P(e[t]):e[t];m.isPlainObject(S[r])&&m.isPlainObject(i)&&(i=p({},S[r],i)),n[r]=A[r]=i}),k(n)):m.logError("setConfig options must be an object")},setDefaults:function(e){m.isPlainObject(S)?(p(S,e),p(A,e)):m.logError("defaults must be an object")},resetConfig:j,runWithBidder:U,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n,r=arguments.length,i=new Array(r),o=0;o<=(e=l.status)&&e<300||304===e?b.success(l.responseText,l):b.error(l.statusText,l))},r.b.getConfig("disableAjaxTimeout")||(l.ontimeout=function(){a.logError(" xhr timeout after ",l.timeout,"ms")}),"GET"===p&&d&&(i((m=a.parseUrl(t,f)).search,d),t=a.buildUrl(m)),l.open(p,t,!0),r.b.getConfig("disableAjaxTimeout")||(l.timeout=e),f.withCredentials&&(l.withCredentials=!0),a._each(f.customHeaders,function(e,t){l.setRequestHeader(t,e)}),f.preflight&&l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.setRequestHeader("Content-Type",f.contentType||"text/plain"),"function"==typeof n&&n(g.origin),"POST"===p&&d?l.send(d):l.send()}catch(t){a.logError("xhr construction",t)}}}},40:function(e,t,n){t.a=function(e,t,n){if(t&&e){if(i()(s,t))return a[e]?(n&&"function"==typeof n&&(a[e].loaded?n():a[e].callbacks.push(n)),a[e].tag):(a[e]={loaded:!1,tag:null,callbacks:[]},n&&"function"==typeof n&&a[e].callbacks.push(n),o.logWarn("module ".concat(t," is loading external JavaScript")),function(t,n){var r=document.createElement("script");return r.type="text/javascript",r.async=!0,(a[e].tag=r).readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,n())}:r.onload=function(){n()},r.src=t,o.insertElement(r),r}(e,function(){a[e].loaded=!0;try{for(var t=0;tn&&(t=!1)),!t}),t&&e.run(),t}function f(e,t){void 0===e[t]?e[t]=1:e[t]++}d(u)||(h.logWarn("queueing auction due to limited endpoint capacity"),j.push(u))}return{addBidReceived:function(e){L=L.concat(e)},addNoBid:function(e){W=W.concat(e)},executeCallback:Y,callBids:function(){o=O,t=Date.now();var e=_.makeBidRequests(N,t,G,K,M);h.logInfo("Bids Requested for Auction with id: ".concat(G),e),e.length<1?(h.logWarn("No valid bid requests returned for auction"),$()):P.call({dispatch:Z,context:this},e)},addWinningBid:function(e){H=H.concat(e),_.callBidWonBidder(e.bidder,e,u)},setBidTargeting:function(e){_.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return H},getTimeout:function(){return K},getAuctionId:function(){return G},getAuctionStatus:function(){return o},getAdUnits:function(){return N},getAdUnitCodes:function(){return q},getBidRequests:function(){return z},getBidsReceived:function(){return L},getNoBids:function(){return W}}},n.d(t,"c",function(){return x}),n.d(t,"e",function(){return P}),t.g=k,t.d=U,n.d(t,"f",function(){return R}),n.d(t,"i",function(){return N}),n.d(t,"h",function(){return M}),t.j=z;var r=n(0),i=n(45),o=n(37),a=n(95),s=n(11),c=n(3),u=n(43),d=n(13),f=n(10),l=n.n(f),p=n(12),g=n.n(p),m=n(25),b=n(2);function y(){return(y=Object.assign||function(e){for(var t=1;t<=r&&(e.cpm=r)}(e)});var T=4,C={},w={},j=[],x=Object(d.b)("async",function(e,t){this.dispatch.call(this.bidderRequest,e,t)},"addBidResponse"),P=Object(d.b)("sync",function(e){this.dispatch.call(this.context,e)},"addBidderRequests"),D=Object(d.b)("async",function(e,t){t&&t()},"bidsBackCallback");function k(e,t){t.timeToRespond>e.getTimeout()+c.b.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function U(e,t){var n=e.getBidRequests(),r=l()(n,function(e){return e.bidderCode===t.bidderCode});!function(e,t){var n,r;e.bidderCode&&(0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=y.syncsPerBidder?r.logWarn('Number of user syncs exceeded for "'.concat(t,'"')):l.canBidderRegisterSync(e,t)?(p[e].push([t,n]),(i=m)[o=t]?i[o]+=1:i[o]=1,void(m=i)):r.logWarn('Bidder "'.concat(t,'" not permitted to register their "').concat(e,'" userSync pixels.')):r.logWarn("Bidder is required for registering sync"):r.logWarn('User sync type "'.concat(e,'" not supported'));var i,o},l.syncUsers=function(){var e=0e.length)&&(t=e.length);for(var n=0,r=new Array(t);nObject(r.timestamp)()},A=function(e){return e&&(e.status&&!d()([v.BID_STATUS.RENDERED],e.status)||!e.status)};function O(e,t,n){var o=2<=L?(L-=c,Object(r.logInfo)("AdUnit '".concat(s,"' auction keys comprised of ").concat(c," characters. Deducted from running threshold; new limit is ").concat(L),F[s]),e[s]=F[s]):Object(r.logWarn)("The following keys for adUnitCode '".concat(s,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(c,", the current allotted amount was ").concat(L,".\n"),F[s]),n+1===i.length&&0===Object.keys(e).length&&Object(r.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e},{})),w.forEach(function(e){U[e]||(U[e]={})}),U},T.setTargetingForGPT=function(e,t){window.googletag.pubads().getSlots().forEach(function(n){Object.keys(e).filter((t||Object(r.isAdUnitCodeMatchingSlot))(n)).forEach(function(t){return Object.keys(e[t]).forEach(function(r){var i=e[t][r];"string"==typeof i&&(i=i.split(",")),(i=1t.max?e:t},{max:0}),y=0,v=i()(t.buckets,function(t){if(e>b.max*n){var i=t.precision;void 0===i&&(i=a),r=(t.max*n).toFixed(i)}else{if(e<=t.max*n&&y*n<=e)return t.min=y,t;y=t.max}});return v&&(o=e,c=n,u=void 0!==(s=v).precision?s.precision:a,d=s.increment*c,f=s.min*c,p=(o*(l=Math.pow(10,u+2))-f*l)/(d*l),m=Math.floor(p)*d+f,r=(m=Number(m.toFixed(10))).toFixed(u)),r}function g(e){if(o.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach(function(e){e.max&&e.increment||(t=!1)}),t}},46:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},47:function(e,t,n){var r=n(72),i=n(49);e.exports=function(e){return r(i(e))}},48:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},49:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},5: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"},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",NO_BID:"noBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable"},AD_RENDER_FAILED_REASON:{PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",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:{BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host",ADOMAIN:"hb_adomain"},DEFAULT_TARGETING_KEYS:{BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host"},NATIVE_KEYS:{title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice",rendererUrl:"hb_renderer_url",adTemplate:"hb_adTemplate"},S2S:{SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},BID_STATUS:{BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"}}},50:function(e,t,n){var r=n(58),i=Math.min;e.exports=function(e){return 0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<(n=z(i.playerSize,t)).length?(2==t&&A.logInfo("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),i.playerSize=n,r.sizes=n):(A.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 r.mediaTypes.video.playerSize)),r}function W(e){var t=A.deepClone(e),n=t.mediaTypes.native;return n.image&&n.image.sizes&&!Array.isArray(n.image.sizes)&&(A.logError("Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request."),delete t.mediaTypes.native.image.sizes),n.image&&n.image.aspect_ratios&&!Array.isArray(n.image.aspect_ratios)&&(A.logError("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete t.mediaTypes.native.image.aspect_ratios),n.icon&&n.icon.sizes&&!Array.isArray(n.icon.sizes)&&(A.logError("Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request."),delete t.mediaTypes.native.icon.sizes),t}Object(f.a)(),_.bidderSettings=_.bidderSettings||{},_.libLoaded=!0,_.version="v4.30.0",A.logInfo("Prebid.js v4.30.0 loaded"),_.adUnits=_.adUnits||[],_.triggerUserSyncs=E;var G={validateBannerMediaType:L,validateVideoMediaType:F,validateNativeMediaType:W,validateSizes:z},V=Object(d.b)("sync",function(e){var t=[];return e.forEach(function(e){var n,r,i,o,a=e.mediaTypes,s=e.bids;s&&A.isArray(s)?a&&0!==Object.keys(a).length?(a.banner&&(n=L(e)),a.video&&(r=F(n||e)),a.native&&(i=W(r||n||e)),o=h({},n,r,i),t.push(o)):A.logError("Detected adUnit.code '".concat(e.code,"' did not have a 'mediaTypes' object defined. This is a required field for the auction, so this adUnit has been removed.")):A.logError("Detected adUnit.code '".concat(e.code,"' did not have 'adUnit.bids' defined or 'adUnit.bids' is not an array. Removing adUnit from auction."))}),t},"checkAdUnitSetup");function K(e){var t=c.a[e]().filter(A.bind.call(i.adUnitsFilter,this,c.a.getAdUnitCodes())),n=c.a.getLastAuctionId();return t.map(function(e){return e.adUnitCode}).filter(i.uniques).map(function(e){return t.filter(function(t){return t.auctionId===n&&t.adUnitCode===e})}).filter(function(e){return e&&e[0]&&e[0].adUnitCode}).map(function(e){return t={},r={bids:e},(n=e[0].adUnitCode)in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r}).reduce(function(e,t){return h(e,t)},{})}function H(e){var t=e.reason,n=e.message,r=e.bid,i=e.id,o={reason:t,message:n};r&&(o.bid=r),i&&(o.adId=i),A.logError(n),I.emit(P,o)}function J(e,t){function n(e){for(var t;t=e.shift();)t()}n(y.c),n(Q),e.call(this,t)}_.getAdserverTargetingForAdUnitCodeStr=function(e){if(A.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=_.getAdserverTargetingForAdUnitCode(e);return A.transformAdServerTargetingObj(t)}A.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},_.getAdserverTargetingForAdUnitCode=function(e){return _.getAdserverTargeting(e)[e]},_.getAdserverTargeting=function(e){return A.logInfo("Invoking pbjs.getAdserverTargeting",arguments),u.a.getAllTargeting(e)},_.getNoBids=function(){return A.logInfo("Invoking pbjs.getNoBids",arguments),K("getNoBids")},_.getNoBidsForAdUnitCode=function(e){return{bids:c.a.getNoBids().filter(function(t){return t.adUnitCode===e})}},_.getBidResponses=function(){return A.logInfo("Invoking pbjs.getBidResponses",arguments),K("getBidsReceived")},_.getBidResponsesForAdUnitCode=function(e){return{bids:c.a.getBidsReceived().filter(function(t){return t.adUnitCode===e})}},_.setTargetingForGPTAsync=function(e,t){var n;A.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),Object(i.isGptPubadsDefined)()?(n=u.a.getAllTargeting(e),u.a.resetPresetTargeting(e,t),u.a.setTargetingForGPT(n,t),Object.keys(n).forEach(function(e){Object.keys(n[e]).forEach(function(t){"hb_adid"===t&&c.a.setStatusForBids(n[e][t],S.BID_STATUS.BID_TARGETING_SET)})}),I.emit(x,n)):A.logError("window.googletag is not defined on the page")},_.setTargetingForAst=function(e){A.logInfo("Invoking pbjs.setTargetingForAn",arguments),u.a.isApntagDefined()?(u.a.setTargetingForAst(e),I.emit(x,u.a.getAllTargeting())):A.logError("window.apntag is not defined on the page")},_.renderAd=function(e,t,n){if(A.logInfo("Invoking pbjs.renderAd",arguments),A.logMessage("Calling renderAd with adId :"+t),e&&t)try{var r,i,o,a,s,u,d,f,l,p,g,b,y,v=c.a.findBidByAdId(t);v?(v.ad=A.replaceAuctionPrice(v.ad,v.cpm),v.adUrl=A.replaceAuctionPrice(v.adUrl,v.cpm),n&&n.clickThrough&&(r=n.clickThrough,v.ad=A.replaceClickThrough(v.ad,r),v.adUrl=A.replaceClickThrough(v.adUrl,r)),c.a.addWinningBid(v),I.emit(w,v),i=v.height,o=v.width,a=v.ad,s=v.mediaType,u=v.adUrl,d=v.renderer,f=document.createComment("Creative ".concat(v.creativeId," served by ").concat(v.bidder," Prebid.js Header Bidding")),A.insertElement(f,e,"body"),Object(m.c)(d)?Object(m.b)(d,v):e===document&&!A.inIframe()||"video"===s?(l="Error trying to write ad. Ad render call ad id ".concat(t," was prevented from writing to the main document."),H({reason:k,message:l,bid:v,id:t})):a?(navigator.userAgent&&-1e.length)&&(t=e.length);for(var n=0,r=new Array(t);n