-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprebid.js
25 lines (25 loc) · 355 KB
/
prebid.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Ascendeum build - on prebid.js v6.7.0-pre
For: angular
Updated : 2022-01-11T09:19:36*/
!function(e){var t=window.pbjsChunk;window.pbjsChunk=function(r,o,a){for(var c,d,s,u=0,f=[];u<r.length;u++)d=r[u],n[d]&&f.push(n[d][0]),n[d]=0;for(c in o)Object.prototype.hasOwnProperty.call(o,c)&&(e[c]=o[c]);for(t&&t(r,o,a);f.length;)f.shift()();if(a)for(u=0;u<a.length;u++)s=i(i.s=a[u]);return s};var r={},n={401:0};function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e},i(i.s=125)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"internal",(function(){return w})),t.getPrebidInternal=function(){return x},r.d(t,"bind",(function(){return B})),t.getUniqueIdentifierStr=U,t.generateUUID=function e(t){return t?(t^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){if(t&&t[e])return t[e];return""},t.tryAppendQueryString=function(e,t,r){if(r)return e+t+"="+encodeURIComponent(r)+"&";return e},t.parseQueryStringParameters=function(e){var t="";for(var r in e)e.hasOwnProperty(r)&&(t+=r+"="+encodeURIComponent(e[r])+"&");return t=t.replace(/&$/,"")},t.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?se(e).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(ue(e,t)))})).join("&"):""},t.getAdUnitSizes=function(e){if(!e)return;var t=[];if(e.mediaTypes&&e.mediaTypes.banner&&Array.isArray(e.mediaTypes.banner.sizes)){var r=e.mediaTypes.banner.sizes;Array.isArray(r[0])?t=r:t.push(r)}else Array.isArray(e.sizes)&&(Array.isArray(e.sizes[0])?t=e.sizes:t.push(e.sizes));return t},t.parseSizesInput=function(e){var t=[];if("string"==typeof e){var r=e.split(","),n=/^(\d)+x(\d)+$/i;if(r)for(var i in r)ee(r,i)&&r[i].match(n)&&t.push(r[i])}else if("object"===y(e)){var o=e.length;if(o>0)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])t.push(k(e));else for(var a=0;a<o;a++)t.push(k(e[a]))}return t},t.parseGPTSingleSizeArray=k,t.parseGPTSingleSizeArrayToRtbSize=function(e){if(N(e))return{w:e[0],h:e[1]}},t.getWindowTop=P,t.getWindowSelf=M,t.getWindowLocation=z,t.logMessage=q,t.logInfo=F,t.logWarn=G,t.logError=W,t.hasConsoleLogger=function(){return I},t.debugTurnedOn=H,t.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=U(),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},t.getParameterByName=function(e){return Se(z().search)[e]||""},t.isA=V,t.isFn=K,t.isStr=J,t.isArray=Y,t.isNumber=X,t.isPlainObject=Q,t.isBoolean=function(e){return V(e,"Boolean")},t.isEmpty=$,t.isEmptyStr=function(e){return J(e)&&(!e||0===e.length)},t._each=Z,t.contains=function(e,t){if($(e))return!1;if(K(e.indexOf))return-1!==e.indexOf(t);var r=e.length;for(;r--;)if(e[r]===t)return!0;return!1},t._map=function(e,t){if($(e))return[];if(K(e.map))return e.map(t);var r=[];return Z(e,(function(n,i){r.push(t(n,i,e))})),r},t.hasOwn=ee,t.insertElement=te,t.waitForElementToLoad=re,t.triggerPixel=ne,t.callBurl=function(e){var t=e.source,r=e.burl;t===O.S2S.SRC&&r&&w.triggerPixel(r)},t.insertHtmlIntoIframe=function(e){if(!e)return;var t=document.createElement("iframe");t.id=U(),t.width=0,t.height=0,t.hspace="0",t.vspace="0",t.marginWidth="0",t.marginHeight="0",t.style.display="none",t.style.height="0px",t.style.width="0px",t.scrolling="no",t.frameBorder="0",t.allowtransparency="true",w.insertElement(t,document,"body"),t.contentWindow.document.open(),t.contentWindow.document.write(e),t.contentWindow.document.close()},t.insertUserSyncIframe=ie,t.createTrackPixelHtml=function(e){if(!e)return"";var t=encodeURI(e),r='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return r+='<img src="'+t+'"></div>'},t.createTrackPixelIframeHtml=oe,t.getValueString=ae,t.uniques=ce,t.flatten=de,t.getBidRequest=function(e,t){if(!e)return;var r;return t.some((function(t){var n=d()(t.bids,(function(t){return["bidId","adId","bid_id"].some((function(r){return t[r]===e}))}));return n&&(r=n),n})),r},t.getKeys=se,t.getValue=ue,t.getKeyByValue=function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t)return r},t.getBidderCodes=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(de,[])})).reduce(de).filter(ce)},t.isGptPubadsDefined=fe,t.isApnGetTagDefined=function(){if(window.apntag&&K(window.apntag.getTag))return!0},r.d(t,"getHighestCpm",(function(){return le})),r.d(t,"getOldestHighestCpmBid",(function(){return pe})),r.d(t,"getLatestHighestCpmBid",(function(){return be})),t.shuffle=function(e){var t=e.length;for(;t>0;){var r=Math.floor(Math.random()*t);t--;var n=e[t];e[t]=e[r],e[r]=n}return e},t.adUnitsFilter=function(e,t){return u()(e,t&&t.adUnitCode)},t.deepClone=me,t.inIframe=function(){try{return w.getWindowSelf()!==w.getWindowTop()}catch(e){return!0}},t.isSafariBrowser=function(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)},t.replaceAuctionPrice=function(e,t){if(!e)return;return e.replace(/\$\{AUCTION_PRICE\}/g,t)},t.replaceClickThrough=function(e,t){if(!e||!t||"string"!=typeof t)return;return e.replace(/\${CLICKTHROUGH}/g,t)},t.timestamp=function(){return(new Date).getTime()},t.getPerformanceNow=function(){return window.performance&&window.performance.now&&window.performance.now()||0},t.hasDeviceAccess=function(){return!1!==n.b.getConfig("deviceAccess")},t.checkCookieSupport=ve,t.delayExecution=function(e,t){if(t<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(t));var r=0;return function(){++r===t&&e.apply(this,arguments)}},t.groupBy=function(e,t){return e.reduce((function(e,r){return(e[r[t]]=e[r[t]]||[]).push(r),e}),{})},t.getDefinedParams=function(e,t){return t.filter((function(t){return e[t]})).reduce((function(t,r){return h(t,v({},r,e[r]))}),{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];if(!Object.keys(e).every((function(e){return u()(t,e)})))return!1;if(e.video&&e.video.context)return u()(["instream","outstream","adpod"],e.video.context);return!0},t.getBidderRequest=function(e,t,r){return d()(e,(function(e){return e.bids.filter((function(e){return e.bidder===t&&e.adUnitCode===r})).length>0}))||{start:null,auctionId:null}},t.getUserConfiguredParams=function(e,t,r){return e.filter((function(e){return e.code===t})).map((function(e){return e.bids})).reduce(de,[]).filter((function(e){return e.bidder===r})).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 he(e,t)}},t.isSlotMatchingAdUnitCode=ye,t.getGptSlotInfoForAdUnitCode=function(e){var t;fe()&&(t=d()(window.googletag.pubads().getSlots(),ye(e)));if(t)return{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()};return{}},t.unsupportedBidderMessage=function(e,t){var r=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n ".concat(e.code," is a ").concat(r," ad unit\n containing bidders that don't support ").concat(r,": ").concat(t,".\n This bidder won't fetch demand.\n ")},t.isInteger=Oe,t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},t.cleanObj=function(e){return Object.keys(e).reduce((function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t}),{})},t.pick=function(e,t){if("object"!==y(e))return{};return t.reduce((function(r,n,i){if("function"==typeof n)return r;var o=n,a=n.match(/^(.+?)\sas\s(.+?)$/i);a&&(n=a[1],o=a[2]);var c=e[n];return"function"==typeof t[i+1]&&(c=t[i+1](c,r)),void 0!==c&&(r[o]=c),r}),{})},t.transformBidderParamKeywords=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",r=[];return Z(e,(function(e,n){if(Y(e)){var i=[];Z(e,(function(e){((e=ae(t+"."+n,e))||""===e)&&i.push(e)})),e=i}else{if(!J(e=ae(t+"."+n,e)))return;e=[e]}r.push({key:n,value:e})})),r},t.convertTypes=function(e,t){return Object.keys(e).forEach((function(r){var n,i;t[r]&&(K(e[r])?t[r]=e[r](t[r]):t[r]=(n=e[r],i=t[r],"string"===n?i&&i.toString():"number"===n?Number(i):i),isNaN(t[r])&&delete t.key)})),t},t.isArrayOfNums=function(e,t){return Y(e)&&(!t||e.length===t)&&e.every((function(e){return Oe(e)}))},t.fill=function(e,t){for(var r=[],n=0;n<t;n++){var i=Q(e)?me(e):e;r.push(i)}return r},t.chunk=function(e,t){for(var r=[],n=0;n<Math.ceil(e.length/t);n++){var i=n*t,o=i+t;r.push(e.slice(i,o))}return r},t.getMinValueFromArray=function(e){return Math.min.apply(Math,b(e))},t.getMaxValueFromArray=function(e){return Math.max.apply(Math,b(e))},t.compareOn=function(e){return function(t,r){return t[e]<r[e]?1:t[e]>r[e]?-1:0}},t.parseQS=Se,t.formatQS=je,t.parseUrl=function(e,t){var r=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?r.href=e:r.href=decodeURIComponent(e);var n=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:r.href,protocol:(r.protocol||"").replace(/:$/,""),hostname:r.hostname,port:+r.port,pathname:r.pathname.replace(/^(?!\/)/,"/"),search:n?r.search:w.parseQS(r.search||""),hash:(r.hash||"").replace(/^#/,""),host:r.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(w.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")},t.deepEqual=Ie,t.mergeDeep=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];if(!n.length)return t;var o=n.shift();if(Q(t)&&Q(o)){var a=function(r){Q(o[r])?(t[r]||h(t,v({},r,{})),e(t[r],o[r])):Y(o[r])&&t[r]?Y(t[r])&&o[r].forEach((function(e){for(var n=1,i=0;i<t[r].length;i++)if(Ie(t[r][i],e)){n=0;break}n&&t[r].push(e)})):h(t,v({},r,o[r]))};for(var c in o)a(c)}return e.apply(void 0,[t].concat(n))},t.cyrb53Hash=function(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e,t){if(K(Math.imul))return Math.imul(e,t);var r=(4194303&e)*(t|=0);return 4290772992&e&&(r+=(4290772992&e)*t|0),0|r},i=3735928559^r,o=1103547991^r,a=0;a<e.length;a++)t=e.charCodeAt(a),i=n(i^t,2654435761),o=n(o^t,1597334677);return i=n(i^i>>>16,2246822507)^n(o^o>>>13,3266489909),(4294967296*(2097151&(o=n(o^o>>>16,2246822507)^n(i^i>>>13,3266489909)))+(i>>>0)).toString()},t.isAllowZeroCpmBidsEnabled=function(e){var t=Object(i.a)().bidderSettings;return t[e]&&!0===t[e].allowZeroCpmBids||t.standard&&!0===t.standard.allowZeroCpmBids};var n=r(3),i=r(14),o=r(189),a=r.n(o),c=r(11),d=r.n(c),s=r(12),u=r.n(s),f=r(190);r.d(t,"deepAccess",(function(){return f.a}));var l=r(191);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw i}}return o}(e,t)||g(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.")}()}function b(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(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 g(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function y(e){return(y="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)}r.d(t,"deepSetValue",(function(){return l.a}));var O=r(5),S=Object.prototype.toString,j=Boolean(window.console),I=Boolean(j&&window.console.log),A=Boolean(j&&window.console.info),E=Boolean(j&&window.console.warn),T=Boolean(j&&window.console.error),_=r(10),w={checkCookieSupport:ve,createTrackPixelIframeHtml:oe,getWindowSelf:M,getWindowTop:P,getWindowLocation:z,insertUserSyncIframe:ie,insertElement:te,isFn:K,triggerPixel:ne,logError:W,logWarn:G,logMessage:q,logInfo:F,parseQS:Se,formatQS:je,deepEqual:Ie},x={};var C,R={},B=function(e,t){return t}.bind(null,1,R)()===R?Function.prototype.bind:function(e){var t=this,r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,r.concat(Array.prototype.slice.call(arguments)))}},D=(C=0,function(){return++C});function U(){return D()+Math.random().toString(16).substr(2)}function k(e){if(N(e))return e[0]+"x"+e[1]}function N(e){return Y(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function P(){return window.top}function M(){return window.self}function z(){return window.location}function q(){H()&&I&&console.log.apply(console,L(arguments,"MESSAGE:"))}function F(){H()&&A&&console.info.apply(console,L(arguments,"INFO:"))}function G(){H()&&E&&console.warn.apply(console,L(arguments,"WARNING:")),_.emit(O.EVENTS.AUCTION_DEBUG,{type:"WARNING",arguments:arguments})}function W(){H()&&T&&console.error.apply(console,L(arguments,"ERROR:")),_.emit(O.EVENTS.AUCTION_DEBUG,{type:"ERROR",arguments:arguments})}function L(e,t){e=[].slice.call(e);var r=n.b.getCurrentBidder();return t&&e.unshift(t),r&&e.unshift(i("#aaa")),e.unshift(i("#3b88c3")),e.unshift("%cPrebid"+(r?"%c".concat(r):"")),e;function i(e){return"display: inline-block; color: #fff; background: ".concat(e,"; padding: 1px 4px; border-radius: 3px;")}}function H(){return!!n.b.getConfig("debug")}function V(e,t){return S.call(e)==="[object "+t+"]"}function K(e){return V(e,"Function")}function J(e){return V(e,"String")}function Y(e){return V(e,"Array")}function X(e){return V(e,"Number")}function Q(e){return V(e,"Object")}function $(e){if(!e)return!0;if(Y(e)||J(e))return!(e.length>0);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}function Z(e,t){if(!$(e)){if(K(e.forEach))return e.forEach(t,this);var r=0,n=e.length;if(n>0)for(;r<n;r++)t(e[r],r,e);else for(r in e)hasOwnProperty.call(e,r)&&t.call(this,e[r],r)}}function ee(e,t){return e.hasOwnProperty?e.hasOwnProperty(t):void 0!==e[t]&&e.constructor.prototype[t]!==e[t]}function te(e,t,r,n){var i;t=t||document,i=r?t.getElementsByTagName(r):t.getElementsByTagName("head");try{if((i=i.length?i:t.getElementsByTagName("body")).length){i=i[0];var o=n?null:i.firstChild;return i.insertBefore(e,o)}}catch(e){}}function re(e,t){var r=null;return new Promise((function(n){var i=function t(){e.removeEventListener("load",t),e.removeEventListener("error",t),null!=r&&window.clearTimeout(r),n()};e.addEventListener("load",i),e.addEventListener("error",i),null!=t&&(r=window.setTimeout(i,t))}))}function ne(e,t,r){var n=new Image;t&&w.isFn(t)&&re(n,r).then(t),n.src=e}function ie(e,t,r){var n=w.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=n;var o=i.firstChild;t&&w.isFn(t)&&re(o,r).then(t),w.insertElement(o,document,"html",!0)}function oe(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="'.concat(r,'"')),"<iframe ".concat(r,' id="').concat(U(),'"\n frameborder="0"\n allowtransparency="true"\n marginheight="0" marginwidth="0"\n width="0" hspace="0" vspace="0" height="0"\n style="height:0px;width:0px;display:none;"\n scrolling="no"\n src="').concat(e,'">\n </iframe>')):""}function ae(e,t,r){return null==t?r:J(t)?t:X(t)?t.toString():void w.logWarn("Unsuported type for param: "+e+" required type: String")}function ce(e,t,r){return r.indexOf(e)===t}function de(e,t){return e.concat(t)}function se(e){return Object.keys(e)}function ue(e,t){return e[t]}function fe(){if(window.googletag&&K(window.googletag.pubads)&&K(window.googletag.pubads().getSlots))return!0}var le=ge("timeToRespond",(function(e,t){return e>t})),pe=ge("responseTimestamp",(function(e,t){return e>t})),be=ge("responseTimestamp",(function(e,t){return e<t}));function ge(e,t){return function(r,n){return r.cpm===n.cpm?t(r[e],n[e])?n:r:r.cpm<n.cpm?n:r}}function me(e){return a()(e)}function ve(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}var he=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t};function ye(e){return function(t){return he(t,e)}}function Oe(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Se(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,t){var r=p(t.split("="),2),n=r[0],i=r[1];return/\[\]$/.test(n)?(e[n=n.replace("[]","")]=e[n]||[],e[n].push(i)):e[n]=i||"",e}),{}):{}}function je(e){return Object.keys(e).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(t,"[]=").concat(e)})).join("&"):"".concat(t,"=").concat(e[t])})).join("&")}function Ie(e,t){if(e===t)return!0;if("object"===y(e)&&null!==e&&"object"===y(t)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e){if(!t.hasOwnProperty(r))return!1;if(!Ie(e[r],t[r]))return!1}return!0}return!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"storage",(function(){return E})),t.registerBidder=function(e){var t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function r(e){var r=_(e);i.default.registerBidAdapter(r,e.code,t)}r(e),Array.isArray(e.aliases)&&e.aliases.forEach((function(t){var n,o,a=t;Object(v.isPlainObject)(t)&&(a=t.code,n=t.gvlid,o=t.skipPbsAliasing),i.default.aliasRegistry[a]=e.code,r(A({},e,{code:a,gvlid:n,skipPbsAliasing:o}))}))},t.newBidder=_,r.d(t,"registerSyncInner",(function(){return w})),t.preloadBidderMappingFile=x,t.getIabSubCategory=function(e,t){var r=i.default.getBidAdapter(e);if(r.getSpec().getMappingFileInfo){var n=r.getSpec().getMappingFileInfo(),o=n.localStorageKey?n.localStorageKey:r.getBidderCode(),a=E.getDataFromLocalStorage(o);if(a){try{a=JSON.parse(a)}catch(t){Object(v.logError)("Failed to parse ".concat(e," mapping data stored in local storage"))}return a.mapping[t]?a.mapping[t]:null}}},t.isValid=C;var n=r(113),i=r(8),o=r(3),a=r(40),c=r(66),d=r(39),s=r(19),u=r(5),f=r.n(u),l=r(10),p=r.n(l),b=r(12),g=r.n(b),m=r(4),v=r(0),h=r(2),y=r(9),O=r(7);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(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.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e){return(I="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 A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var E=Object(O.a)("bidderFactory"),T=["requestId","cpm","ttl","creativeId","netRevenue","currency"];function _(e){return A(new n.a(e.code),{getSpec:function(){return Object.freeze(e)},registerSyncs:t,callBids:function(n,c,d,s,u,l){if(Array.isArray(n.bids)){var b={},g=[],m=n.bids.filter(r);if(0!==m.length){var h={};m.forEach((function(e){h[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)}));var y=e.buildRequests(m,n);if(y&&0!==y.length){Array.isArray(y)||(y=[y]);var O=Object(v.delayExecution)(l(S),y.length);y.forEach((function(e){return p.a.emit(f.a.EVENTS.BEFORE_BIDDER_HTTP,n)})),y.forEach((function(t){switch(t.method){case"GET":s("".concat(t.url).concat(function(e){if(e)return"?".concat("object"===I(e)?Object(v.parseQueryStringParameters)(e):e);return""}(t.data)),{success:l(r),error:o},void 0,A({method:"GET",withCredentials:!0},t.options));break;case"POST":s(t.url,{success:l(r),error:o},"string"==typeof t.data?t.data:JSON.stringify(t.data),A({method:"POST",contentType:"text/plain",withCredentials:!0},t.options));break;default:Object(v.logWarn)("Skipping invalid request from ".concat(e.code,". Request type ").concat(t.type," must be GET or POST")),O()}function r(r,i){u(e.code);try{r=JSON.parse(r)}catch(e){}var o;r={body:r,headers:{get:i.getResponseHeader.bind(i)}},g.push(r);try{o=e.interpretResponse(r,t)}catch(t){return Object(v.logError)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,t),void O()}function d(t){var r=h[t.requestId];if(r){t.originalCpm=t.cpm,t.originalCurrency=t.currency,t.meta=t.meta||A({},t[r.bidder]);var i=A(Object(a.createBid)(f.a.STATUS.GOOD,r),t);!function(e,t){b[e]=!0,C(e,t,[n])&&c(e,t)}(r.adUnitCode,i)}else Object(v.logWarn)("Bidder ".concat(e.code," made bid for unknown request ID: ").concat(t.requestId,". Ignoring."))}o&&(Object(v.isArray)(o)?o.forEach(d):d(o)),O(o)}function o(t,r){u(e.code),i.default.callBidderError(e.code,r,n),p.a.emit(f.a.EVENTS.BIDDER_ERROR,{error:r,bidderRequest:n}),Object(v.logError)("Server call for ".concat(e.code," failed: ").concat(t," ").concat(r.status,". Continuing without bids.")),O()}}))}else S()}else S()}function S(){d(),o.b.runWithBidder(e.code,(function(){p.a.emit(f.a.EVENTS.BIDDER_DONE,n),t(g,n.gdprConsent,n.uspConsent)}))}}});function t(t,r,n){w(e,t,r,n)}function r(t){return!!e.isBidRequestValid(t)||(Object(v.logWarn)("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(t))),!1)}}var w=Object(y.b)("async",(function(e,t,r,n){var a=o.b.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(a||!i.default.aliasRegistry[e.code])){var d=o.b.getConfig("userSync.filterSettings"),s=e.getUserSyncs({iframeEnabled:!(!d||!d.iframe&&!d.all),pixelEnabled:!(!d||!d.image&&!d.all)},t,r,n);s&&(Array.isArray(s)||(s=[s]),s.forEach((function(t){c.a.registerSync(t.type,e.code,t.url)})))}}),"registerSyncs");function x(e,t){if(!o.b.getConfig("adpod.brandCategoryExclusion"))return e.call(this,t);t.filter((function(e){return Object(v.deepAccess)(e,"mediaTypes.video.context")===h.a})).map((function(e){return e.bids.map((function(e){return e.bidder}))})).reduce(v.flatten,[]).filter(v.uniques).forEach((function(e){var t=i.default.getBidAdapter(e);if(t.getSpec().getMappingFileInfo){var r=t.getSpec().getMappingFileInfo(),n=r.refreshInDays?r.refreshInDays:1,o=r.localStorageKey?r.localStorageKey:t.getSpec().code,a=E.getDataFromLocalStorage(o);try{(!(a=a?JSON.parse(a):void 0)||Object(v.timestamp)()>a.lastUpdated+24*n*60*60*1e3)&&Object(m.a)(r.url,{success:function(t){try{t=JSON.parse(t);var r={lastUpdated:Object(v.timestamp)(),mapping:t.mapping};E.setDataInLocalStorage(o,JSON.stringify(r))}catch(t){Object(v.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){Object(v.logError)("Failed to load ".concat(e," bidder translation file"))}})}catch(t){Object(v.logError)("Failed to parse ".concat(e," bidder translation mapping file"))}}})),e.call(this,t)}function C(e,t,r){function n(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}return e?t?(i=Object.keys(t),T.every((function(e){return g()(i,e)&&!g()([void 0,null],t[e])}))?"native"!==t.mediaType||Object(d.g)(t,r)?"video"!==t.mediaType||Object(s.d)(t,r)?!("banner"===t.mediaType&&!function(e,t,r){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),!0;var n=Object(v.getBidderRequest)(r,t.bidderCode,e),i=n&&n.bids&&n.bids[0]&&n.bids[0].sizes,o=Object(v.parseSizesInput)(i);if(1===o.length){var a=S(o[0].split("x"),2),c=a[0],d=a[1];return t.width=parseInt(c,10),t.height=parseInt(d,10),!0}return!1}(e,t,r))||(Object(v.logError)(n("Banner bids require a width and height")),!1):(Object(v.logError)(n("Video bid does not have required vastUrl or renderer property")),!1):(Object(v.logError)(n("Native bid missing some required properties.")),!1):(Object(v.logError)(n("Bidder ".concat(t.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1)):(Object(v.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):(Object(v.logWarn)("No adUnitCode was supplied to addBidResponse."),!1);var i}Object(y.a)("checkAdUnitSetup").before(x)},function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"d",(function(){return i})),r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var n="native",i="video",o="banner",a="adpod"},function(e,t,r){"use strict";r.d(t,"a",(function(){return S})),r.d(t,"b",(function(){return E}));var n=r(54),i=r(11),o=r.n(i),a=r(12),c=r.n(a),d=r(100),s=r.n(d),u=r(0),f=["fpd"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){return(g="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 m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var v=r(83),h=r(5),y="TRUE"===Object(u.getParameterByName)(h.DEBUG_MODE).toUpperCase(),O=window.location.origin,S="random",j={};j[S]=!0,j.fixed=!0;var I=S,A={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};var E=function(){var e,t,r,i=[],a=null;function d(){e={};var i={_debug:y,get debug(){return this._debug},set debug(e){this._debug=e},_bidderTimeout:3e3,get bidderTimeout(){return this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:O,get publisherDomain(){return this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_priceGranularity:A.MEDIUM,set priceGranularity(e){c(e)&&("string"==typeof e?this._priceGranularity=a(e)?e:A.MEDIUM:Object(u.isPlainObject)(e)&&(this._customPriceBucket=e,this._priceGranularity=A.CUSTOM,Object(u.logMessage)("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_mediaTypePriceGranularity:{},get mediaTypePriceGranularity(){return this._mediaTypePriceGranularity},set mediaTypePriceGranularity(e){var t=this;this._mediaTypePriceGranularity=Object.keys(e).reduce((function(r,n){return c(e[n])?"string"==typeof e?r[n]=a(e[n])?e[n]:t._priceGranularity:Object(u.isPlainObject)(e)&&(r[n]=e[n],Object(u.logMessage)("Using custom price granularity for ".concat(n))):Object(u.logWarn)("Invalid price granularity for media type: ".concat(n)),r}),{})},_sendAllBids:true,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},_useBidCache:false,get useBidCache(){return this._useBidCache},set useBidCache(e){this._useBidCache=e},_deviceAccess:true,get deviceAccess(){return this._deviceAccess},set deviceAccess(e){this._deviceAccess=e},_bidderSequence:I,get bidderSequence(){return this._bidderSequence},set bidderSequence(e){j[e]?this._bidderSequence=e:Object(u.logWarn)("Invalid order: ".concat(e,". Bidder Sequence was not set."))},_timeoutBuffer:400,get timeoutBuffer(){return this._timeoutBuffer},set timeoutBuffer(e){this._timeoutBuffer=e},_disableAjaxTimeout:false,get disableAjaxTimeout(){return this._disableAjaxTimeout},set disableAjaxTimeout(e){this._disableAjaxTimeout=e},_maxNestedIframes:10,get maxNestedIframes(){return this._maxNestedIframes},set maxNestedIframes(e){this._maxNestedIframes=e},_auctionOptions:{},get auctionOptions(){return this._auctionOptions},set auctionOptions(e){(function(e){if(!Object(u.isPlainObject)(e))return Object(u.logWarn)("Auction Options must be an object"),!1;for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];if("secondaryBidders"!==n&&"suppressStaleRender"!==n)return Object(u.logWarn)("Auction Options given an incorrect param: ".concat(n)),!1;if("secondaryBidders"===n){if(!Object(u.isArray)(e[n]))return Object(u.logWarn)("Auction Options ".concat(n," must be of type Array")),!1;if(!e[n].every(u.isStr))return Object(u.logWarn)("Auction Options ".concat(n," must be only string")),!1}else if("suppressStaleRender"===n&&!Object(u.isBoolean)(e[n]))return Object(u.logWarn)("Auction Options ".concat(n," must be of type boolean")),!1}return!0})(e)&&(this._auctionOptions=e)}};function a(e){return o()(Object.keys(A),(function(t){return e===A[t]}))}function c(e){if(!e)return Object(u.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)a(e)||Object(u.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if(Object(u.isPlainObject)(e)&&!Object(n.b)(e))return Object(u.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}t&&w(Object.keys(t).reduce((function(e,r){return t[r]!==i[r]&&(e[r]=i[r]||{}),e}),{})),t=i,r={}}function h(){if(a&&r&&Object(u.isPlainObject)(r[a])){var e=r[a],n=new s.a(Object.keys(t).concat(Object.keys(e)));return v(n).reduce((function(r,n){return void 0===e[n]?r[n]=t[n]:void 0===t[n]?r[n]=e[n]:Object(u.isPlainObject)(e[n])?r[n]=Object(u.mergeDeep)({},t[n],e[n]):r[n]=e[n],r}),{})}return m({},t)}function S(e){var t={};return Object.keys(e).forEach((function(r){var n="context"===r?"site":r;t[n]="site"===n||"user"===n?Object.keys(e[r]).reduce((function(t,n){return"data"===n?Object(u.mergeDeep)(t,{ext:{data:e[r][n]}}):Object(u.mergeDeep)(t,b({},n,e[r][n])),t}),{}):e[r]})),t}function E(e){var t={};return Object.keys(e).filter((function(e){return"context"===e})).forEach((function(r){Object.keys(e[r]).forEach((function(n){"data"===n?Object(u.mergeDeep)(t,{ext:{data:e[r][n]}}):"object"!==g(e[r][n])||Array.isArray(e[r][n])?Object(u.mergeDeep)(t,{ext:{data:b({},n.toLowerCase(),e[r][n])}}):Object.keys(e[r][n]).forEach((function(i){Object(u.mergeDeep)(t,{ext:{data:b({},n.toLowerCase(),b({},i.toLowerCase(),e[r][n][i]))}})}))}))})),t}function T(r){if(Object(u.isPlainObject)(r)){var n=Object.keys(r),i={};n.forEach((function(n){var o="fpd"===n?"ortb2":n,a="fpd"===n?S(r[n]):r[n];Object(u.isPlainObject)(e[o])&&Object(u.isPlainObject)(a)&&(a=m({},e[o],a)),i[o]=t[o]=a})),w(i)}else Object(u.logError)("setConfig options must be an object")}function _(e,t){var r=t;if("string"!=typeof e&&(r=e,e="*"),"function"==typeof r){var n={topic:e,callback:r};return i.push(n),function(){i.splice(i.indexOf(n),1)}}Object(u.logError)("listener must be a function")}function w(e){var t=Object.keys(e);i.filter((function(e){return c()(t,e.topic)})).forEach((function(t){t.callback(b({},t.topic,e[t.topic]))})),i.filter((function(e){return"*"===e.topic})).forEach((function(t){return t.callback(e)}))}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{n(e),e.bidders.forEach((function(n){r[n]||(r[n]={}),Object.keys(e.config).forEach((function(i){var o="fpd"===i?"ortb2":i,a="fpd"===i?S(e.config[i]):e.config[i];if(Object(u.isPlainObject)(a)){var c=t?u.mergeDeep:Object.assign;r[n][o]=c({},r[n][o]||{},a)}else r[n][o]=a}))}))}catch(e){Object(u.logError)(e)}function n(e){if(!Object(u.isPlainObject)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!Object(u.isPlainObject)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function C(e,t){a=e;try{return t()}finally{R()}}function R(){a=null}return d(),{getCurrentBidder:function(){return a},resetBidder:R,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?Object(u.deepAccess)(h(),e):h()}return _.apply(void 0,arguments)},readConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0],t=Object(u.deepClone)(h());return e?Object(u.deepAccess)(t,e):t}return _.apply(void 0,arguments)},setConfig:T,mergeConfig:function(e){if(Object(u.isPlainObject)(e)){var t=Object.keys(e).reduce((function(t,r){var n=h()[r]||{};return t[r]=Object(u.mergeDeep)(n,e[r]),t}),{});return T(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t)),t}Object(u.logError)("mergeConfig input must be an object")},setDefaults:function(r){Object(u.isPlainObject)(e)?(m(e,r),m(t,r)):Object(u.logError)("defaults must be an object")},resetConfig:d,runWithBidder:C,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return C(e,u.bind.call.apply(u.bind,[t,this].concat(n)))}Object(u.logWarn)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:x,getBidderConfig:function(){return r},mergeBidderConfig:function(e){return x(e,!0)},convertAdUnitFpd:function(e){var t=[];return e.forEach((function(e){e.fpd?(e.ortb2Imp?Object(u.mergeDeep)(e.ortb2Imp,E(e.fpd)):e.ortb2Imp=E(e.fpd),t.push(function(e){e.fpd;return p(e,f)}(e))):t.push(e)})),t},getLegacyFpd:function(e){if("object"===g(e)){var t={};return Object.keys(e).forEach((function(r){var n="site"===r?"context":r;t[n]="context"===n||"user"===n?Object.keys(e[r]).filter((function(e){return"data"!==e})).reduce((function(t,n){return"ext"===n?Object(u.mergeDeep)(t,e[r][n]):Object(u.mergeDeep)(t,b({},n,e[r][n])),t}),{}):e[r]})),t}},getLegacyImpFpd:function(e){if("object"===g(e)){var t={};return Object(u.deepAccess)(e,"ext.data")&&Object.keys(e.ext.data).forEach((function(r){"pbadslot"===r?Object(u.mergeDeep)(t,{context:{pbAdSlot:e.ext.data[r]}}):"adserver"===r?Object(u.mergeDeep)(t,{context:{adServer:e.ext.data[r]}}):Object(u.mergeDeep)(t,{context:{data:b({},r,e.ext.data[r])}})})),t}}}}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),t.b=d;var n=r(3),i=r(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e){return(a="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)}var c=d();function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.request,c=t.done;return function(t,d,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var f,l=u.method||(s?"POST":"GET"),p=document.createElement("a");p.href=t;var b="object"===a(d)&&null!==d?d:{success:function(){Object(i.logMessage)("xhr success")},error:function(e){Object(i.logError)("xhr error",null,e)}};if("function"==typeof d&&(b.success=d),(f=new window.XMLHttpRequest).onreadystatechange=function(){if(4===f.readyState){"function"==typeof c&&c(p.origin);var e=f.status;e>=200&&e<300||304===e?b.success(f.responseText,f):b.error(f.statusText,f)}},n.b.getConfig("disableAjaxTimeout")||(f.ontimeout=function(){Object(i.logError)(" xhr timeout after ",f.timeout,"ms")}),"GET"===l&&s){var g=Object(i.parseUrl)(t,u);o(g.search,s),t=Object(i.buildUrl)(g)}f.open(l,t,!0),n.b.getConfig("disableAjaxTimeout")||(f.timeout=e),u.withCredentials&&(f.withCredentials=!0),Object(i._each)(u.customHeaders,(function(e,t){f.setRequestHeader(t,e)})),u.preflight&&f.setRequestHeader("X-Requested-With","XMLHttpRequest"),f.setRequestHeader("Content-Type",u.contentType||"text/plain"),"function"==typeof r&&r(p.origin),"POST"===l&&s?f.send(s):f.send()}catch(e){Object(i.logError)("xhr construction",e),"object"===a(d)&&null!==d&&d.error(e)}}}},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",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",BEFORE_BIDDER_HTTP:"beforeBidderHttp",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",AD_RENDER_SUCCEEDED:"adRenderSucceeded",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable",STALE_RENDER:"staleRender"},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",FORMAT:"hb_format",UUID:"hb_uuid",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"}}},,function(e,t,r){"use strict";r.d(t,"c",(function(){return d})),r.d(t,"d",(function(){return u})),t.a=function(e){return s({moduleName:e,moduleType:"core"})},t.b=function(e,t){return s({gvlid:e,moduleName:t})};var n=r(9),i=r(0),o=r(12),a=r.n(o),c=["core","prebid-module"],d=[];function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gvlid,r=e.moduleName,n=e.moduleType;function o(e){if(a()(c,n)){return e({valid:!0})}var o;return u(t,r,{hasEnforcementHook:!1},(function(t){if(t&&t.hasEnforcementHook)o=e(t);else{var r={hasEnforcementHook:!1,valid:Object(i.hasDeviceAccess)()};o=e(r)}})),o}var s=function(e,t,r,n,i,a){var c=function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",c=r&&""!==r?" ;expires=".concat(r):"";document.cookie="".concat(e,"=").concat(encodeURIComponent(t)).concat(c,"; path=/").concat(a).concat(n?"; SameSite=".concat(n):"")}};if(!a||"function"!=typeof a)return o(c);d.push((function(){var e=o(c);a(e)}))},f=function(e,t){var r=function(t){if(t&&t.valid){var r=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return r?decodeURIComponent(r[2]):null}return null};if(!t||"function"!=typeof t)return o(r);d.push((function(){var e=o(r);t(e)}))},l=function(e){var t=function(e){if(e&&e.valid)try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){}finally{try{localStorage.removeItem("prebid.cookieTest")}catch(e){}}return!1};if(!e||"function"!=typeof e)return o(t);d.push((function(){var r=o(t);e(r)}))},p=function(e){var t=function(e){return!(!e||!e.valid)&&(!!Object(i.checkCookieSupport)()||(window.document.cookie="prebid.cookieTest",-1!==window.document.cookie.indexOf("prebid.cookieTest")))};if(!e||"function"!=typeof e)return o(t);d.push((function(){var r=o(t);e(r)}))},b=function(e,t,r){var n=function(r){r&&r.valid&&v()&&window.localStorage.setItem(e,t)};if(!r||"function"!=typeof r)return o(n);d.push((function(){var e=o(n);r(e)}))},g=function(e,t){var r=function(t){return t&&t.valid&&v()?window.localStorage.getItem(e):null};if(!t||"function"!=typeof t)return o(r);d.push((function(){var e=o(r);t(e)}))},m=function(e,t){var r=function(t){t&&t.valid&&v()&&window.localStorage.removeItem(e)};if(!t||"function"!=typeof t)return o(r);d.push((function(){var e=o(r);t(e)}))},v=function(e){var t=function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){Object(i.logError)("Local storage api disabled")}return!1};if(!e||"function"!=typeof e)return o(t);d.push((function(){var r=o(t);e(r)}))},h=function(e,t){var r=function(t){if(t&&t.valid){var r=[];if(Object(i.hasDeviceAccess)())for(var n=document.cookie.split(";");n.length;){var o=n.pop(),a=o.indexOf("=");a=a<0?o.length:a,decodeURIComponent(o.slice(0,a).replace(/^\s+/,"")).indexOf(e)>=0&&r.push(decodeURIComponent(o.slice(a+1)))}return r}};if(!t||"function"!=typeof t)return o(r);d.push((function(){var e=o(r);t(e)}))};return{setCookie:s,getCookie:f,localStorageIsEnabled:l,cookiesAreEnabled:p,setDataInLocalStorage:b,getDataFromLocalStorage:g,removeDataFromLocalStorage:m,hasLocalStorage:v,findSimilarCookies:h}}var u=Object(n.b)("async",(function(e,t,r,n){n(r)}),"validateStorageEnforcement")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"gdprDataHandler",(function(){return D})),r.d(t,"uspDataHandler",(function(){return U})),r.d(t,"coppaDataHandler",(function(){return k})),r.d(t,"clientTestAdapters",(function(){return N})),r.d(t,"allS2SBidders",(function(){return P})),t.getAllS2SBidders=M,t.setS2STestingModule=function(e){A=e};var n=r(0),i=r(112),o=r(39),a=r(1),c=r(4),d=r(3),s=r(9),u=r(12),f=r.n(u),l=r(11),p=r.n(l),b=r(84),g=r(20);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw i}}return o}(e,t)||S(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.")}()}function O(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(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 S(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var A,E=r(5),T=r(10),_={},w=_.bidderRegistry={},x=_.aliasRegistry={},C=[];d.b.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(C=Object(n.isArray)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var R={};var B=Object(s.b)("sync",(function(e){var t=e.bidderCode,r=e.auctionId,a=e.bidderRequestId,c=e.adUnits,d=e.labels,s=e.src;return c.reduce((function(e,c){var u=Object(i.b)(Object(i.a)(c,d),c.mediaTypes,c.sizes),f=u.active,l=u.mediaTypes,p=u.filterResults;return f?p&&Object(n.logInfo)('Size mapping filtered adUnit "'.concat(c.code,'" banner sizes from '),p.before,"to ",p.after):Object(n.logInfo)('Size mapping disabled adUnit "'.concat(c.code,'"')),f&&e.push(c.bids.filter((function(e){return e.bidder===t})).reduce((function(e,t){var u=c.nativeParams||Object(n.deepAccess)(c,"mediaTypes.native");u&&(t=I({},t,{nativeParams:Object(o.h)(u)})),t=I({},t,Object(n.getDefinedParams)(c,["ortb2Imp","mediaType","renderer","storedAuctionResponse"]));var f=Object(i.b)(Object(i.a)(t,d),l),p=f.active,g=f.mediaTypes,m=f.filterResults;return p?m&&Object(n.logInfo)('Size mapping filtered adUnit "'.concat(c.code,'" bidder "').concat(t.bidder,'" banner sizes from '),m.before,"to ",m.after):Object(n.logInfo)('Size mapping deactivated adUnit "'.concat(c.code,'" bidder "').concat(t.bidder,'"')),Object(n.isValidMediaTypes)(g)?t=I({},t,{mediaTypes:g}):Object(n.logError)("mediaTypes is not correctly configured for adunit ".concat(c.code)),p&&e.push(I({},t,{adUnitCode:c.code,transactionId:c.transactionId,sizes:Object(n.deepAccess)(g,"banner.sizes")||Object(n.deepAccess)(g,"video.playerSize")||[],bidId:t.bid_id||Object(n.getUniqueIdentifierStr)(),bidderRequestId:a,auctionId:r,src:s,bidRequestsCount:b.a.getRequestsCounter(c.code),bidderRequestsCount:b.a.getBidderRequestsCounter(c.code,t.bidder),bidderWinsCount:b.a.getBidderWinsCounter(c.code,t.bidder)})),e}),[])),e}),[]).reduce(n.flatten,[]).filter((function(e){return""!==e}))}),"getBids");var D={consentData:null,setConsentData:function(e){D.consentData=e},getConsentData:function(){return D.consentData}},U={consentData:null,setConsentData:function(e){U.consentData=e},getConsentData:function(){return U.consentData}},k={getCoppa:function(){return!!d.b.getConfig("coppa")}},N=[],P=[];function M(){_.s2STestingEnabled=!1,C.forEach((function(e){e&&e.enabled&&e.bidders&&e.bidders.length&&P.push.apply(P,O(e.bidders))}))}function z(e){return e&&e.enabled&&e.testing&&A}function q(e,t,r){try{var i=w[e].getSpec();i&&i[t]&&"function"==typeof i[t]&&(Object(n.logInfo)("Invoking ".concat(e,".").concat(t)),d.b.runWithBidder(e,n.bind.call(i[t],i,r)))}catch(r){Object(n.logWarn)("Error calling ".concat(t," of ").concat(e))}}_.makeBidRequests=Object(s.b)("sync",(function(e,t,r,i,o){T.emit(E.EVENTS.BEFORE_REQUEST_BIDS,e);var a=Object(n.getBidderCodes)(e);d.b.getConfig("bidderSequence")===d.a&&(a=Object(n.shuffle)(a));var c=Object(g.a)(),s=a,u=[];0===P.length&&M(),C.forEach((function(t){t&&t.enabled&&(z(t)&&(A.calculateBidSources(t),A.getSourceBidderMap(e,P)[A.CLIENT].forEach((function(e){f()(N,e)||N.push(e)}))))})),s=a.filter((function(e){return!f()(P,e)||f()(N,e)}));var l=P;C.forEach((function(i){if(i&&i.enabled){(function(e){return Boolean(z(e)&&e.testServerOnly)})(i)&&function(e,t){return Boolean(p()(e,(function(e){return p()(e.bids,(function(e){return(e.bidSource||t.bidderControl&&t.bidderControl[e.bidder])&&e.finalSource===A.SERVER}))})))}(e,i)&&(Object(n.logWarn)("testServerOnly: True. All client requests will be suppressed."),s.length=0);var a=function(e,t){var r=t.bidders,i=Object(n.deepClone)(e);return i.forEach((function(e){e.bids=e.bids.filter((function(e){return f()(r,e.bidder)&&(!z(t)||e.finalSource!==A.CLIENT)})).map((function(e){return e.bid_id=Object(n.getUniqueIdentifierStr)(),e}))})),i.filter((function(e){return 0!==e.bids.length}))}(e,i),d=Object(n.generateUUID)();l.forEach((function(e){var s=Object(n.getUniqueIdentifierStr)(),f={bidderCode:e,auctionId:r,bidderRequestId:s,uniquePbsTid:d,bids:B({bidderCode:e,auctionId:r,bidderRequestId:s,adUnits:Object(n.deepClone)(a),labels:o,src:E.S2S.SRC}),auctionStart:t,timeout:i.timeout,src:E.S2S.SRC,refererInfo:c};0!==f.bids.length&&u.push(f)})),a.forEach((function(e){var t=e.bids.filter((function(e){return p()(u,(function(t){return p()(t.bids,(function(t){return t.bidId===e.bid_id}))}))}));e.bids=t})),u.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=a.filter((function(e){return e.bids.length>0})))}))}}));var b=function(e){var t=Object(n.deepClone)(e);return t.forEach((function(e){e.bids=e.bids.filter((function(e){return!N.length||e.finalSource!==A.SERVER}))})),t.filter((function(e){return 0!==e.bids.length}))}(e);return s.forEach((function(e){var a=Object(n.getUniqueIdentifierStr)(),d={bidderCode:e,auctionId:r,bidderRequestId:a,bids:B({bidderCode:e,auctionId:r,bidderRequestId:a,adUnits:Object(n.deepClone)(b),labels:o,src:"client"}),auctionStart:t,timeout:i,refererInfo:c},s=w[e];s||Object(n.logError)("Trying to make a request for bidder that does not exist: ".concat(e)),s&&d.bids&&0!==d.bids.length&&u.push(d)})),D.getConsentData()&&u.forEach((function(e){e.gdprConsent=D.getConsentData()})),U.getConsentData()&&u.forEach((function(e){e.uspConsent=U.getConsentData()})),u}),"makeBidRequests"),_.callBids=function(e,t,r,i,o,a,s){if(t.length){var u=y(t.reduce((function(e,t){return e[Number(void 0!==t.src&&t.src===E.S2S.SRC)].push(t),e}),[[],[]]),2),l=u[0],p=u[1],b=[];p.forEach((function(e){for(var t=-1,r=0;r<b.length;++r)if(e.uniquePbsTid===b[r].uniquePbsTid){t=r;break}t<=-1&&b.push(e)}));var g=0,m=Object(n.generateUUID)();C.forEach((function(e){if(e&&b[g]&&f()(e.bidders,b[g].bidderCode)){var t=Object(c.b)(a,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),d=e.bidders,s=w[e.adapter],u=b[g].uniquePbsTid,l=b[g].adUnitsS2SCopy,h=p.filter((function(e){return e.uniquePbsTid===u}));if(s){var y={tid:m,ad_units:l,s2sConfig:e};if(y.ad_units.length){var O=h.map((function(e){return e.start=Object(n.timestamp)(),i.bind(e)})),S=y.ad_units.reduce((function(e,t){return e.concat((t.bids||[]).reduce((function(e,t){return e.concat(t.bidder)}),[]))}),[]);Object(n.logMessage)("CALLING S2S HEADER BIDDERS ==== ".concat(d.filter((function(e){return f()(S,e)})).join(","))),h.forEach((function(e){T.emit(E.EVENTS.BID_REQUESTED,v(v({},e),{},{tid:m}))})),s.callBids(y,p,(function(e,t){var i=Object(n.getBidderRequest)(p,t.bidderCode,e);i&&r.call(i,e,t)}),(function(){return O.forEach((function(e){return e()}))}),t)}}else Object(n.logError)("missing "+e.adapter);g++}})),l.forEach((function(e){e.start=Object(n.timestamp)();var t=w[e.bidderCode];d.b.runWithBidder(e.bidderCode,(function(){Object(n.logMessage)("CALLING BIDDER"),T.emit(E.EVENTS.BID_REQUESTED,e)}));var u=Object(c.b)(a,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),f=i.bind(e);try{d.b.runWithBidder(e.bidderCode,n.bind.call(t.callBids,t,e,r.bind(e),f,u,s,d.b.callbackWithBidder(e.bidderCode)))}catch(t){Object(n.logError)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:t,bidRequest:e}),f()}}))}else Object(n.logWarn)("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},_.videoAdapters=[],_.registerBidAdapter=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.supportedMediaTypes,a=void 0===i?[]:i;e&&t?"function"==typeof e.callBids?(w[t]=e,f()(a,"video")&&_.videoAdapters.push(t),f()(a,"native")&&o.f.push(t)):Object(n.logError)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):Object(n.logError)("bidAdapter or bidderCode not specified")},_.aliasBidAdapter=function(e,t,r){if(void 0===w[t]){var i=w[e];if(void 0===i){var c=[];C.forEach((function(r){if(r.bidders&&r.bidders.length){var n=r&&r.bidders;r&&f()(n,t)?x[t]=e:c.push(e)}})),c.forEach((function(e){Object(n.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var d,s=function(e){var t=[];return f()(_.videoAdapters,e)&&t.push("video"),f()(o.f,e)&&t.push("native"),t}(e);if(i.constructor.prototype!=Object.prototype)(d=new i.constructor).setBidderCode(t);else{var u=i.getSpec(),l=r&&r.gvlid,p=r&&r.skipPbsAliasing;d=Object(a.newBidder)(I({},u,{code:t,gvlid:l,skipPbsAliasing:p})),x[t]=e}_.registerBidAdapter(d,t,{supportedMediaTypes:s})}catch(t){Object(n.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else Object(n.logMessage)('alias name "'+t+'" has been already specified.')},_.registerAnalyticsAdapter=function(e){var t=e.adapter,r=e.code,i=e.gvlid;t&&r?"function"==typeof t.enableAnalytics?(t.code=r,R[r]={adapter:t,gvlid:i}):Object(n.logError)('Prebid Error: Analytics adaptor error for analytics "'.concat(r,'"\n analytics adapter must implement an enableAnalytics() function')):Object(n.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},_.enableAnalytics=function(e){Object(n.isArray)(e)||(e=[e]),Object(n._each)(e,(function(e){var t=R[e.provider].adapter;t?t.enableAnalytics(e):Object(n.logError)("Prebid Error: no analytics adapter found in registry for\n ".concat(e.provider,"."))}))},_.getBidAdapter=function(e){return w[e]},_.getAnalyticsAdapter=function(e){return R[e]},_.callTimedOutBidders=function(e,t,r){t=t.map((function(t){return t.params=Object(n.getUserConfiguredParams)(e,t.adUnitCode,t.bidder),t.timeout=r,t})),t=Object(n.groupBy)(t,"bidder"),Object.keys(t).forEach((function(e){q(e,"onTimeout",t[e])}))},_.callBidWonBidder=function(e,t,r){t.params=Object(n.getUserConfiguredParams)(r,t.adUnitCode,t.bidder),b.a.incrementBidderWinsCounter(t.adUnitCode,t.bidder),q(e,"onBidWon",t)},_.callSetTargetingBidder=function(e,t){q(e,"onSetTargeting",t)},_.callBidViewableBidder=function(e,t){q(e,"onBidViewable",t)},_.callBidderError=function(e,t,r){q(e,"onBidderError",{error:t,bidderRequest:r})},t.default=_},function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return d})),t.d=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,n=e.getHooks({hook:t});0===n.length&&e.before(t,r)},t.c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.postInstallAllowed,i=void 0!==n&&n;c("async",(function(r){r.forEach((function(e){return t.apply(void 0,o(e))})),i&&(s[e]=t)}),e)([])},t.e=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=s[e];if(i)return i.apply(void 0,r);d(e).before((function(e,t){t.push(r),e(t)}))};var n=r(193),i=r.n(n);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=i()({ready:i.a.SYNC|i.a.ASYNC|i.a.QUEUE}),d=c.get;var s={}},function(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var i=r(0),o=r(5),a=Array.prototype.slice,c=Array.prototype.push,d=i._map(o.EVENTS,(function(e){return e})),s=o.EVENT_ID_PATHS,u=[];e.exports=function(){var e={},t={};function r(t,r){i.logMessage("Emitting event for: "+t);var n=r[0]||{},o=n[s[t]],a=e[t]||{que:[]},d=i._map(a,(function(e,t){return t})),f=[];u.push({eventType:t,args:n,id:o,elapsedTime:i.getPerformanceNow()}),o&&i.contains(d,o)&&c.apply(f,a[o].que),c.apply(f,a.que),i._each(f,(function(e){if(e)try{e.apply(null,r)}catch(e){i.logError("Error executing handler:","events.js",e)}}))}return t.on=function(t,r,n){if(function(e){return i.contains(d,e)}(t)){var o=e[t]||{que:[]};n?(o[n]=o[n]||{que:[]},o[n].que.push(r)):o.que.push(r),e[t]=o}else i.logError("Wrong event name : "+t+" Valid event names :"+d)},t.emit=function(e){var t=a.call(arguments,1);r(e,t)},t.off=function(t,r,n){var o=e[t];i.isEmpty(o)||i.isEmpty(o.que)&&i.isEmpty(o[n])||n&&(i.isEmpty(o[n])||i.isEmpty(o[n].que))||(n?i._each(o[n].que,(function(e){var t=o[n].que;e===r&&t.splice(i.indexOf.call(t,e),1)})):i._each(o.que,(function(e){var t=o.que;e===r&&t.splice(i.indexOf.call(t,e),1)})),e[t]=o)},t.get=function(){return e},t.getEvents=function(){var e=[];return i._each(u,(function(t){var r=n({},t);e.push(r)})),e},t}()},function(e,t,r){var n=r(127);e.exports=n},function(e,t,r){var n=r(138);e.exports=n},function(e,t,r){"use strict";t.a=d,t.c=function(e){return!(!e||!e.url)},t.b=function(e,t){e.render(t)};var n=r(36),i=r(0),o=r(11),a=r.n(o),c="outstream";function d(e){var t=this,r=e.url,o=e.config,a=e.id,d=e.callback,u=e.loaded,f=e.adUnitCode;this.url=r,this.config=o,this.handlers={},this.id=a,this.loaded=u,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):Object(i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=d||function(){t.loaded=!0,t.process()},this.render=function(){var e=this,t=arguments,o=function(){e._render?e._render.apply(e,t):Object(i.logWarn)("No render function was provided, please use .setRender on the renderer")};s(f)?(Object(i.logWarn)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(f)),o()):(this.cmd.unshift(o),Object(n.a)(r,c,this.callback))}.bind(this)}function s(e){var t=pbjs.adUnits,r=a()(t,(function(t){return t.code===e}));if(!r)return!1;var n=Object(i.deepAccess)(r,"renderer"),o=!!(n&&n.url&&n.render),c=Object(i.deepAccess)(r,"mediaTypes.video.renderer"),d=!!(c&&c.url&&c.render);return!!(o&&!0!==n.backupOnly||d&&!0!==c.backupOnly)}d.install=function(e){return new d({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},d.prototype.getConfig=function(){return this.config},d.prototype.setRender=function(e){this._render=e},d.prototype.setEventHandlers=function(e){this.handlers=e},d.prototype.handleVideoEvent=function(e){var t=e.id,r=e.eventName;"function"==typeof this.handlers[r]&&this.handlers[r](),Object(i.logMessage)("Prebid Renderer event for id ".concat(t," type ").concat(r))},d.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){Object(i.logError)("Error processing Renderer command: ",e)}}},function(e,t,r){"use strict";t.a=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[],window._pbjsGlobals=window._pbjsGlobals||[],window._pbjsGlobals.push("pbjs")},,function(e,t,r){"use strict";var n=r(28),i=r(129).f,o=r(131),a=r(49),c=r(26),d=r(33),s=r(32),u=function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,f,l,p,b,g,m,v,h=e.target,y=e.global,O=e.stat,S=e.proto,j=y?n:O?n[h]:(n[h]||{}).prototype,I=y?a:a[h]||(a[h]={}),A=I.prototype;for(l in t)r=!o(y?l:h+(O?".":"#")+l,e.forced)&&j&&s(j,l),b=I[l],r&&(g=e.noTargetGet?(v=i(j,l))&&v.value:j[l]),p=r&&g?g:t[l],r&&typeof b==typeof p||(m=e.bind&&r?c(p,n):e.wrap&&r?u(p):S&&"function"==typeof p?c(Function.call,p):p,(e.sham||p&&p.sham||b&&b.sham)&&d(m,"sham",!0),I[l]=m,S&&(s(a,f=h+"Prototype")||d(a,f,{}),a[f][l]=p,e.real&&A&&!A[l]&&d(A,l,p)))}},function(e,t,r){var n=r(31);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=!0},function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return d})),t.d=function(e,t){var r=Object(n.getBidRequest)(e.requestId,t),i=r&&Object(n.deepAccess)(r,"mediaTypes.video"),o=i&&Object(n.deepAccess)(i,"context");return s(e,r,i,o)},r.d(t,"c",(function(){return s}));r(8);var n=r(0),i=r(3),o=r(12),a=(r.n(o),r(9)),c="outstream",d="instream";var s=Object(a.b)("sync",(function(e,t,r,o){return!t||r&&o!==c?i.b.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):(Object(n.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):o!==c||!!(e.renderer||t.renderer||r.renderer)}),"checkVideoBidSetup")},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(3),i=r(0);var o=function(e){function t(e){var t=n.b.getConfig("pageUrl");if(t)return t;try{var r=e.querySelector("link[rel='canonical']");if(null!==r)return r.href}catch(e){}return null}return function(){var r,o,a,c=[],d=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(e),s=n.b.getConfig("maxNestedIframes"),u=!1,f=0,l=!1,p=!1;do{var b=r,g=p,m=void 0,v=!1,h=null;p=!1,r=r?r.parent:e;try{m=r.location.href||null}catch(e){v=!0}if(v)if(g){var y=b.context;try{o=h=y.sourceUrl,l=!0,r===e.top&&(u=!0),y.canonicalUrl&&(a=y.canonicalUrl)}catch(e){}}else{Object(i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{var O=b.document.referrer;O&&(h=O,r===e.top&&(u=!0))}catch(e){}!h&&d&&d[f-1]&&(h=d[f-1]),h&&!l&&(o=h)}else{if(m&&(o=h=m,l=!1,r===e.top)){u=!0;var S=t(r.document);S&&(a=S)}r.context&&r.context.sourceUrl&&(p=!0)}c.push(h),f++}while(r!==e.top&&f<s);return c.reverse(),{referer:o||null,reachedTop:u,isAmp:l,numIframes:f-1,stack:c,canonicalUrl:a||null}}}(window)},function(e,t,r){var n=r(17),i=r(102),o=r(59),a=r(26),c=r(63),d=r(103),s=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var u,f,l,p,b,g,m,v=r&&r.that,h=!(!r||!r.AS_ENTRIES),y=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),S=a(t,v,1+h+O),j=function(e){return u&&d(u),new s(!0,e)},I=function(e){return h?(n(e),O?S(e[0],e[1],j):S(e[0],e[1])):O?S(e,j):S(e)};if(y)u=e;else{if("function"!=typeof(f=c(e)))throw TypeError("Target is not iterable");if(i(f)){for(l=0,p=o(e.length);p>l;l++)if((b=I(e[l]))&&b instanceof s)return b;return new s(!1)}u=f.call(e)}for(g=u.next;!(m=g.call(u)).done;){try{b=I(m.value)}catch(e){throw d(u),e}if("object"==typeof b&&b&&b instanceof s)return b}return new s(!1)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(0),i=r(29),o=r(11),a=r.n(o),c=r(5);var d=function(){var e=[],t={};return t.addWinningBid=function(t){var r=a()(e,(function(e){return e.getAuctionId()===t.auctionId}));r?(t.status=c.BID_STATUS.RENDERED,r.addWinningBid(t)):Object(n.logWarn)("Auction not found when adding winning bid")},t.getAllWinningBids=function(){return e.map((function(e){return e.getWinningBids()})).reduce(n.flatten,[])},t.getBidsRequested=function(){return e.map((function(e){return e.getBidRequests()})).reduce(n.flatten,[])},t.getNoBids=function(){return e.map((function(e){return e.getNoBids()})).reduce(n.flatten,[])},t.getBidsReceived=function(){return e.map((function(e){if(e.getAuctionStatus()===i.a)return e.getBidsReceived()})).reduce(n.flatten,[]).filter((function(e){return e}))},t.getAllBidsForAdUnitCode=function(t){return e.map((function(e){return e.getBidsReceived()})).reduce(n.flatten,[]).filter((function(e){return e&&e.adUnitCode===t}))},t.getAdUnits=function(){return e.map((function(e){return e.getAdUnits()})).reduce(n.flatten,[])},t.getAdUnitCodes=function(){return e.map((function(e){return e.getAdUnitCodes()})).reduce(n.flatten,[]).filter(n.uniques)},t.createAuction=function(t){var r=t.adUnits,n=t.adUnitCodes,o=t.callback,a=t.cbTimeout,c=t.labels,d=t.auctionId,s=Object(i.k)({adUnits:r,adUnitCodes:n,callback:o,cbTimeout:a,labels:c,auctionId:d});return function(t){e.push(t)}(s),s},t.findBidByAdId=function(t){return a()(e.map((function(e){return e.getBidsReceived()})).reduce(n.flatten,[]),(function(e){return e.adId===t}))},t.getStandardBidderAdServerTargeting=function(){return Object(i.j)()[c.JSON_MAPPING.ADSERVER_TARGETING]},t.setStatusForBids=function(r,n){var i=t.findBidByAdId(r);if(i&&(i.status=n),i&&n===c.BID_STATUS.BID_TARGETING_SET){var o=a()(e,(function(e){return e.getAuctionId()===i.auctionId}));o&&o.setBidTargeting(i)}},t.getLastAuctionId=function(){return e.length&&e[e.length-1].getAuctionId()},t.clearAllAuctions=function(){e.length=0},t}()},function(e,t,r){var n=r(28),i=r(97),o=r(32),a=r(75),c=r(98),d=r(137),s=i("wks"),u=n.Symbol,f=d?u:u&&u.withoutSetter||a;e.exports=function(e){return o(s,e)&&(c||"string"==typeof s[e])||(c&&o(u,e)?s[e]=u[e]:s[e]=f("Symbol."+e)),s[e]}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(24);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(49),i=r(28),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(t,r(25))},function(e,t,r){"use strict";r.d(t,"b",(function(){return I})),r.d(t,"a",(function(){return A})),t.k=function(e){var t,r,o,a,s=e.adUnits,u=e.adUnitCodes,f=e.callback,p=e.cbTimeout,m=e.labels,R=e.auctionId,k=s,N=m,P=u,M=[],q=[],F=[],G=R||Object(n.generateUUID)(),W=f,L=p,H=[],V=new Set;function K(){return{auctionId:G,timestamp:t,auctionEnd:r,auctionStatus:o,adUnits:k,adUnitCodes:P,labels:N,bidderRequests:M,noBids:F,bidsReceived:q,winningBids:H,timeout:L}}function J(e,t){if(t&&clearTimeout(a),void 0===r){var i=[];e&&(Object(n.logMessage)("Auction ".concat(G," timedOut")),c=V,(i=M.map((function(e){return(e.bids||[]).filter((function(e){return!c.has(e.bidder)}))})).reduce(n.flatten,[]).map((function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId}}))).length&&S.emit(j.EVENTS.BID_TIMEOUT,i)),o=A,r=Date.now(),S.emit(j.EVENTS.AUCTION_END,K()),C(k,(function(){try{if(null!=W){var t=P,r=q.filter(n.bind.call(n.adUnitsFilter,this,t)).reduce(z,{});W.apply(pbjs,[r,e,G]),W=null}}catch(e){Object(n.logError)("Error executing bidsBackHandler",null,e)}finally{i.length&&O.callTimedOutBidders(s,i,L);var o=d.b.getConfig("userSync")||{};o.enableOverride||y(o.syncDelay)}}))}var c}function Y(){d.b.resetBidder(),Object(n.logInfo)("Bids Received for Auction with id: ".concat(G),q),o=A,J(!1,!0)}function X(e){V.add(e)}function Q(e){var t=this;e.forEach((function(e){var t;t=e,M=M.concat(t)}));var r={},s={bidRequests:e,run:function(){var s,p;s=J.bind(null,!0),p=setTimeout(s,L),a=p,o=I,S.emit(j.EVENTS.AUCTION_INIT,K());var m=function(e,t){var r=0,o=!1,a=new Set,s={};function u(){r--,o&&0===r&&e()}function f(e,o){var a=this;s[o.requestId]=!0,r++;var f=function(e){var t=e.adUnitCode,r=e.bid,o=e.bidderRequest,a=e.auctionId,s=o.start,u=h({},r,{auctionId:a,responseTimestamp:Object(n.timestamp)(),requestTimestamp:s,cpm:parseFloat(r.cpm)||0,bidder:r.bidderCode,adUnitCode:t});u.timeToRespond=u.responseTimestamp-u.requestTimestamp,S.emit(j.EVENTS.BID_ADJUSTMENT,u);var f=o.bids&&l()(o.bids,(function(e){return e.adUnitCode==t&&e.bidId==u.requestId})),p=f&&f.renderer,b=u.mediaType,g=f&&f.mediaTypes&&f.mediaTypes[b],m=g&&g.renderer,y=null;m&&m.url&&m.render&&(!0!==m.backupOnly||!r.renderer)?y=m:p&&p.url&&p.render&&(!0!==p.backupOnly||!r.renderer)&&(y=p);y&&(u.renderer=c.a.install({url:y.url}),u.renderer.setRender(y.render));var O=U(r.mediaType,f,d.b.getConfig("mediaTypePriceGranularity")),I=Object(i.a)(u.cpm,"object"===v(O)?O:d.b.getConfig("customPriceBucket"),d.b.getConfig("currency.granularityMultiplier"));return u.pbLg=I.low,u.pbMg=I.med,u.pbHg=I.high,u.pbAg=I.auto,u.pbDg=I.dense,u.pbCg=I.custom,u}({adUnitCode:e,bid:o,bidderRequest:a,auctionId:t.getAuctionId()});"video"===f.mediaType?function(e,t,r,i){var o=!0,a=Object(n.getBidRequest)(t.originalRequestId||t.requestId,[r]),c=a&&Object(n.deepAccess)(a,"mediaTypes.video"),s=c&&Object(n.deepAccess)(c,"context");d.b.getConfig("cache.url")&&s!==g.b&&(!t.videoCacheKey||d.b.getConfig("cache.ignoreBidderCacheKey")?(o=!1,D(e,t,i,a)):t.vastUrl||(Object(n.logError)("videoCacheKey specified but not required vastUrl for video bid"),o=!1));o&&(B(e,t),i())}(t,f,a,u):(B(t,f),u())}function p(){var i=this,c=t.getBidRequests(),u=d.b.getConfig("auctionOptions");if(a.add(i),u&&!Object(n.isEmpty)(u)){var f=u.secondaryBidders;f&&!c.every((function(e){return b()(f,e.bidderCode)}))&&(c=c.filter((function(e){return!b()(f,e.bidderCode)})))}o=c.every((function(e){return a.has(e)})),i.bids.forEach((function(e){s[e.bidId]||(t.addNoBid(e),S.emit(j.EVENTS.NO_BID,e))})),o&&0===r&&e()}return{addBidResponse:f,adapterDone:p}}(Y,t);O.callBids(k,e,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];w.apply({dispatch:m.addBidResponse,bidderRequest:this},t)}),m.adapterDone,{request:function(e,t){f(E,t),f(r,e),T[e]||(T[e]={SRA:!0,origin:t}),r[e]>1&&(T[e].SRA=!1)},done:function(e){E[e]--,_[0]&&u(_[0])&&_.shift()}},L,X)}};function u(e){var t=!0,r=d.b.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var n=1,i=void 0!==e.src&&e.src===j.S2S.SRC?"s2s":e.bidderCode;return T[i]&&(!1===T[i].SRA&&(n=Math.min(e.bids.length,r)),E[T[i].origin]+n>r&&(t=!1)),!t})),t&&e.run(),t}function f(e,t){void 0===e[t]?e[t]=1:e[t]++}u(s)||(Object(n.logWarn)("queueing auction due to limited endpoint capacity"),_.push(s))}return{addBidReceived:function(e){q=q.concat(e)},addNoBid:function(e){F=F.concat(e)},executeCallback:J,callBids:function(){o="started",t=Date.now();var e=O.makeBidRequests(k,t,G,L,N);Object(n.logInfo)("Bids Requested for Auction with id: ".concat(G),e),e.length<1?(Object(n.logWarn)("No valid bid requests returned for auction"),Y()):x.call({dispatch:Q,context:this},e)},addWinningBid:function(e){H=H.concat(e),O.callBidWonBidder(e.bidder,e,s)},setBidTargeting:function(e){O.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return H},getTimeout:function(){return L},getAuctionId:function(){return G},getAuctionStatus:function(){return o},getAdUnits:function(){return k},getAdUnitCodes:function(){return P},getBidRequests:function(){return M},getBidsReceived:function(){return q},getNoBids:function(){return F}}},r.d(t,"c",(function(){return w})),r.d(t,"e",(function(){return x})),t.g=R,t.d=B,r.d(t,"f",(function(){return D})),r.d(t,"i",(function(){return k})),r.d(t,"h",(function(){return N})),t.j=P;var n=r(0),i=r(54),o=r(39),a=r(111),c=r(13),d=r(3),s=r(66),u=r(9),f=r(11),l=r.n(f),p=r(12),b=r.n(p),g=r(19),m=r(2);function v(e){return(v="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 h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var y=s.a.syncUsers,O=r(8).default,S=r(10),j=r(5),I="inProgress",A="completed";S.on(j.EVENTS.BID_ADJUSTMENT,(function(e){!function(e){var t,r=e.bidderCode,i=e.cpm;if(pbjs.bidderSettings&&(r&&pbjs.bidderSettings[r]&&"function"==typeof pbjs.bidderSettings[r].bidCpmAdjustment?t=pbjs.bidderSettings[r].bidCpmAdjustment:pbjs.bidderSettings[j.JSON_MAPPING.BD_SETTING_STANDARD]&&"function"==typeof pbjs.bidderSettings[j.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(t=pbjs.bidderSettings[j.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),t))try{i=t(e.cpm,h({},e))}catch(e){Object(n.logError)("Error during bid adjustment","bidmanager.js",e)}i>=0&&(e.cpm=i)}(e)}));var E={},T={},_=[];var w=Object(u.b)("async",(function(e,t){this.dispatch.call(this.bidderRequest,e,t)}),"addBidResponse"),x=Object(u.b)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),C=Object(u.b)("async",(function(e,t){t&&t()}),"bidsBackCallback");function R(e,t){t.timeToRespond>e.getTimeout()+d.b.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function B(e,t){var r=e.getBidRequests(),i=l()(r,(function(e){return e.bidderCode===t.bidderCode}));!function(e,t){var r,i=Object(n.isAllowZeroCpmBidsEnabled)(e.bidderCode)?e.cpm>=0:e.cpm>0;if(e.bidderCode&&(i||e.dealId)){var a=l()(t.bids,(function(t){return t.adUnitCode===e.adUnitCode&&t.bidId===e.requestId}));r=function(e,t,r){if(!t)return{};var n={},i=pbjs.bidderSettings;if(i){M(n,P(t.mediaType,e),t,r),e&&i[e]&&i[e][j.JSON_MAPPING.ADSERVER_TARGETING]&&(M(n,i[e],t,r),t.sendStandardTargeting=i[e].sendStandardTargeting)}t.native&&(n=h({},n,Object(o.e)(t,r)));return n}(e.bidderCode,e,a)}e.adserverTargeting=h(e.adserverTargeting||{},r)}(t,i),S.emit(j.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),R(e,t)}var D=Object(u.b)("async",(function(e,t,r,i){Object(a.b)([t],(function(i,o){i?(Object(n.logWarn)("Failed to save to the video cache: ".concat(i,". Video bid must be discarded.")),R(e,t)):""===o[0].uuid?(Object(n.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),R(e,t)):(t.videoCacheKey=o[0].uuid,t.vastUrl||(t.vastUrl=Object(a.a)(t.videoCacheKey)),B(e,t),r())}),i)}),"callPrebidCache");function U(e,t,r){if(e&&r){if(e===m.d){var i=Object(n.deepAccess)(t,"mediaTypes.".concat(m.d,".context"),"instream");if(r["".concat(m.d,"-").concat(i)])return r["".concat(m.d,"-").concat(i)]}return r[e]}}var k=function(e,t){var r=U(e,t,d.b.getConfig("mediaTypePriceGranularity"));return"string"==typeof e&&r?"string"==typeof r?r:"custom":d.b.getConfig("priceGranularity")},N=function(e){return function(t,r){return(e=e||k(t.mediaType,r))===j.GRANULARITY_OPTIONS.AUTO?t.pbAg:e===j.GRANULARITY_OPTIONS.DENSE?t.pbDg:e===j.GRANULARITY_OPTIONS.LOW?t.pbLg:e===j.GRANULARITY_OPTIONS.MEDIUM?t.pbMg:e===j.GRANULARITY_OPTIONS.HIGH?t.pbHg:e===j.GRANULARITY_OPTIONS.CUSTOM?t.pbCg:void 0}};function P(e,t){function r(e,t){return{key:e,val:"function"==typeof t?function(e,r){return t(e,r)}:function(e){return Object(n.getValue)(e,t)}}}var i=j.TARGETING_KEYS,o=pbjs.bidderSettings;if(o[j.JSON_MAPPING.BD_SETTING_STANDARD]||(o[j.JSON_MAPPING.BD_SETTING_STANDARD]={}),o[j.JSON_MAPPING.BD_SETTING_STANDARD][j.JSON_MAPPING.ADSERVER_TARGETING]||(o[j.JSON_MAPPING.BD_SETTING_STANDARD][j.JSON_MAPPING.ADSERVER_TARGETING]=[r(i.BIDDER,"bidderCode"),r(i.AD_ID,"adId"),r(i.PRICE_BUCKET,N()),r(i.SIZE,"size"),r(i.DEAL,"dealId"),r(i.SOURCE,"source"),r(i.FORMAT,"mediaType"),r(i.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?e.meta.advertiserDomains[0]:""}))]),"video"===e){var a=o[j.JSON_MAPPING.BD_SETTING_STANDARD][j.JSON_MAPPING.ADSERVER_TARGETING];if([i.UUID,i.CACHE_ID].forEach((function(e){void 0===l()(a,(function(t){return t.key===e}))&&a.push(r(e,"videoCacheKey"))})),d.b.getConfig("cache.url")&&(!t||!1!==Object(n.deepAccess)(o,"".concat(t,".sendStandardTargeting")))){var c=Object(n.parseUrl)(d.b.getConfig("cache.url"));void 0===l()(a,(function(e){return e.key===i.CACHE_HOST}))&&a.push(r(i.CACHE_HOST,(function(e){return Object(n.deepAccess)(e,"adserverTargeting.".concat(i.CACHE_HOST))?e.adserverTargeting[i.CACHE_HOST]:c.hostname})))}}return o[j.JSON_MAPPING.BD_SETTING_STANDARD]}function M(e,t,r,i){var o=t[j.JSON_MAPPING.ADSERVER_TARGETING];return r.size=r.getSize(),Object(n._each)(o,(function(o){var a=o.key,c=o.val;if(e[a]&&Object(n.logWarn)("The key: "+a+" is being overwritten"),Object(n.isFn)(c))try{c=c(r,i)}catch(e){Object(n.logError)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&a!==j.TARGETING_KEYS.DEAL||!Object(n.isEmptyStr)(c)&&null!=c?e[a]=c:Object(n.logInfo)("suppressing empty key '"+a+"' from adserver targeting")})),e}function z(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(58),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},function(e,t,r){var n=r(34),i=r(35),o=r(48);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(30);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(34),i=r(95),o=r(17),a=r(71),c=Object.defineProperty;t.f=n?c:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";t.a=function(e,t,r){if(!t||!e)return void Object(o.logError)("cannot load external script without url and moduleCode");if(!i()(c,t))return void Object(o.logError)("".concat(t," not whitelisted for loading external JavaScript"));if(a[e])return r&&"function"==typeof r&&(a[e].loaded?r():a[e].callbacks.push(r)),a[e].tag;a[e]={loaded:!1,tag:null,callbacks:[]},r&&"function"==typeof r&&a[e].callbacks.push(r);return Object(o.logWarn)("module ".concat(t," is loading external JavaScript")),function(t,r){var n=document.createElement("script");n.type="text/javascript",n.async=!0,a[e].tag=n,n.readyState?n.onreadystatechange=function(){"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,r())}:n.onload=function(){r()};return n.src=t,Object(o.insertElement)(n),n}(e,(function(){a[e].loaded=!0;try{for(var t=0;t<a[e].callbacks.length;t++)a[e].callbacks[t]()}catch(e){Object(o.logError)("Error executing callback","adloader.js:loadExternalScript",e)}}))};var n=r(12),i=r.n(n),o=r(0),a={},c=["adloox","criteo","outstream","adagio","browsi"]},,function(e,t,r){var n=r(18),i=r(82);e.exports=n?i:function(e){return Set.prototype.values.call(e)}},function(e,t,r){"use strict";r.d(t,"f",(function(){return f})),r.d(t,"a",(function(){return l})),t.h=function(e){if(e&&e.type&&function(e){if(!e||!o()(Object.keys(p),e))return Object(n.logError)("".concat(e," nativeParam is not supported")),!1;return!0}(e.type))return p[e.type];return e},t.g=function(e,t){var r=Object(n.getBidRequest)(e.requestId,t);if(!r)return!1;if(!Object(n.deepAccess)(e,"native.clickUrl"))return!1;var i=r.nativeParams;if(!i)return!0;var a=Object.keys(i).filter((function(e){return i[e].required})),c=Object.keys(e.native).filter((function(t){return e.native[t]}));return a.every((function(e){return o()(c,e)}))},t.b=function(e,t){var r;"click"===e.action?r=t.native&&t.native.clickTrackers:(r=t.native&&t.native.impressionTrackers,t.native&&t.native.javascriptTrackers&&Object(n.insertHtmlIntoIframe)(t.native.javascriptTrackers));return(r||[]).forEach(n.triggerPixel),e.action},t.e=function(e,t){var r={};Object(n.deepAccess)(t,"nativeParams.rendererUrl")?e.native.rendererUrl=b(t.nativeParams.rendererUrl):Object(n.deepAccess)(t,"nativeParams.adTemplate")&&(e.native.adTemplate=b(t.nativeParams.adTemplate));var i=!1!==Object(n.deepAccess)(t,"nativeParams.sendTargetingKeys"),o=function(e){var t={};Object(n.deepAccess)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((function(e){t[e]="hb_native_".concat(e)}));return d(d({},u.NATIVE_KEYS),t)}(t),a=d(d({},e.native),e.native.ext);return delete a.ext,Object.keys(a).forEach((function(a){var c=o[a],d=b(e.native[a])||b(Object(n.deepAccess)(e,"native.ext.".concat(a)));if("adTemplate"!==a&&c&&d){var s=Object(n.deepAccess)(t,"nativeParams.".concat(a,".sendId"));if("boolean"!=typeof s&&(s=Object(n.deepAccess)(t,"nativeParams.ext.".concat(a,".sendId"))),s)d="".concat(c,":").concat(e.adId);var u=Object(n.deepAccess)(t,"nativeParams.".concat(a,".sendTargetingKeys"));"boolean"!=typeof u&&(u=Object(n.deepAccess)(t,"nativeParams.ext.".concat(a,".sendTargetingKeys"))),("boolean"==typeof u?u:i)&&(r[c]=d)}})),r},t.d=function(e,t){var r={message:"assetResponse",adId:e.adId,assets:[]};t.native.hasOwnProperty("adTemplate")&&(r.adTemplate=b(t.native.adTemplate));t.native.hasOwnProperty("rendererUrl")&&(r.rendererUrl=b(t.native.rendererUrl));return e.assets.forEach((function(e){var i=Object(n.getKeyByValue)(u.NATIVE_KEYS,e),o=b(t.native[i]);r.assets.push({key:i,value:o})})),r},t.c=function(e,t){var r={message:"assetResponse",adId:e.adId,assets:[]};return Object.keys(t.native).forEach((function(e,n){if("adTemplate"===e&&t.native[e])r.adTemplate=b(t.native[e]);else if("rendererUrl"===e&&t.native[e])r.rendererUrl=b(t.native[e]);else if("ext"===e)Object.keys(t.native[e]).forEach((function(n){if(t.native[e][n]){var i=b(t.native[e][n]);r.assets.push({key:n,value:i})}}));else if(t.native[e]&&u.NATIVE_KEYS.hasOwnProperty(e)){var i=b(t.native[e]);r.assets.push({key:e,value:i})}})),r};var n=r(0),i=r(12),o=r.n(i);function a(e){return(a="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 c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(5),f=[],l=Object.keys(u.NATIVE_KEYS).map((function(e){return u.NATIVE_KEYS[e]})),p={image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}};function b(e){return"object"===a(e)&&e.url?e.url:e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBid=function(e,t){return new i(e,t)};var n=r(0);function i(e,t){var r=t&&t.src||"client",i=e||0;this.bidderCode=t&&t.bidder||"",this.width=0,this.height=0,this.statusMessage=function(){switch(i){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=Object(n.getUniqueIdentifierStr)(),this.requestId=t&&t.bidId,this.mediaType="banner",this.source=r,this.getStatusCode=function(){return i},this.getSize=function(){return this.width+"x"+this.height}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return A})),r.d(t,"b",(function(){return E})),t.c=T,r.d(t,"d",(function(){return _}));var n=r(0),i=r(3),o=r(39),a=r(22),c=r(112),d=r(2),s=r(9),u=r(12),f=r.n(u),l=r(11),p=r.n(l);function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=r(5),y=[],O="targetingControls.allowTargetingKeys",S="targetingControls.addTargetingKeys",j='Only one of "'.concat(O,'" or "').concat(S,'" can be set'),I=Object.keys(h.TARGETING_KEYS).map((function(e){return h.TARGETING_KEYS[e]})),A={isBidNotExpired:function(e){return e.responseTimestamp+1e3*e.ttl-1e3>Object(n.timestamp)()},isUnusedBid:function(e){return e&&(e.status&&!f()([h.BID_STATUS.RENDERED],e.status)||!e.status)}},E=Object(s.b)("sync",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!o){var a=[],c=i.b.getConfig("sendBidsControl.dealPrioritization"),d=Object(n.groupBy)(e,"adUnitCode");return Object.keys(d).forEach((function(e){var i=[],o=Object(n.groupBy)(d[e],"bidderCode");Object.keys(o).forEach((function(e){return i.push(o[e].reduce(t))})),r>0?(i=c?i.sort(T(!0)):i.sort((function(e,t){return t.cpm-e.cpm})),a.push.apply(a,m(i.slice(0,r)))):a.push.apply(a,m(i))})),a}return e}));function T(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,r){return void 0!==t.adserverTargeting.hb_deal&&void 0===r.adserverTargeting.hb_deal?-1:void 0===t.adserverTargeting.hb_deal&&void 0!==r.adserverTargeting.hb_deal?1:e?r.cpm-t.cpm:r.adserverTargeting.hb_pb-t.adserverTargeting.hb_pb}}var _=function(e){var t={},r={};function a(e,t){return e.adserverTargeting&&t&&(Object(n.isArray)(t)&&f()(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function s(e,t){if(!0===i.b.getConfig("targetingControls.alwaysIncludeDeals")){var r=I.concat(o.a);return E(t,n.getHighestCpm).map((function(t){if(t.dealId&&a(t,e))return g({},t.adUnitCode,N(t,r.filter((function(e){return void 0!==t.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}function u(e,t){var r=b({},h.TARGETING_KEYS,h.NATIVE_KEYS),i=Object.keys(r),o={};Object(n.logInfo)("allowTargetingKeys - allowed keys [ ".concat(t.map((function(e){return r[e]})).join(", ")," ]")),e.map((function(e){var n=Object.keys(e)[0],a=e[n].filter((function(e){var n=Object.keys(e)[0],a=0===i.filter((function(e){return 0===n.indexOf(r[e])})).length||p()(t,(function(e){var t=r[e];return 0===n.indexOf(t)}));return o[n]=!a,a}));e[n]=a}));var a=Object.keys(o).filter((function(e){return o[e]}));return Object(n.logInfo)("allowTargetingKeys - removed keys [ ".concat(a.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}function l(e,t){var r=Object(n.deepClone)(e);return Object.keys(r).map((function(e){return{adUnitCode:e,adserverTargeting:r[e]}})).sort(T()).reduce((function(e,i,o,a){var c,d=(c=i.adserverTargeting,Object.keys(c).reduce((function(e,t){return e+"".concat(t,"%3d").concat(encodeURIComponent(c[t]),"%26")}),""));o+1===a.length&&(d=d.slice(0,-3));var s=i.adUnitCode,u=d.length;return u<=t?(t-=u,Object(n.logInfo)("AdUnit '".concat(s,"' auction keys comprised of ").concat(u," characters. Deducted from running threshold; new limit is ").concat(t),r[s]),e[s]=r[s]):Object(n.logWarn)("The following keys for adUnitCode '".concat(s,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(u,", the current allotted amount was ").concat(t,".\n"),r[s]),o+1===a.length&&0===Object.keys(e).length&&Object(n.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e}),{})}function v(e){return e.map((function(e){return g({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return g({},Object.keys(e)[0],e[Object.keys(e)[0]].join(","))})).reduce((function(e,t){return b(t,e)}),{}))})).reduce((function(e,t){var r=Object.keys(t)[0];return e[r]=b({},e[r],t[r]),e}),{})}function _(t){return"string"==typeof t?[t]:Object(n.isArray)(t)?t:e.getAdUnitCodes()||[]}function w(){var t=e.getBidsReceived();return i.b.getConfig("useBidCache")||(t=t.filter((function(e){return r[e.adUnitCode]===e.auctionId}))),t=t.filter((function(e){return Object(n.deepAccess)(e,"video.context")!==d.a})).filter((function(e){return"banner"!==e.mediaType||Object(c.c)([e.width,e.height])})).filter(A.isUnusedBid).filter(A.isBidNotExpired),E(t,n.getOldestHighestCpmBid)}function x(e,r){var n=t.getWinningBids(e,r),i=C();return n=n.map((function(e){return g({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(t){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(t)})).reduce((function(t,r){var n=[e.adserverTargeting[r]],i=g({},r.substring(0,20),n);if(r===h.TARGETING_KEYS.DEAL){var o=g({},"".concat(r,"_").concat(e.bidderCode).substring(0,20),n);return[].concat(m(t),[i,o])}return[].concat(m(t),[i])}),[]))}))}function C(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(I).filter(n.uniques)}function R(e,t,r,i){return Object.keys(t.adserverTargeting).filter(B()).forEach((function(r){e.length&&e.filter(function(e){return function(r){return r.adUnitCode===t.adUnitCode&&r.adserverTargeting[e]}}(r)).forEach(function(e){return function(r){Object(n.isArray)(r.adserverTargeting[e])||(r.adserverTargeting[e]=[r.adserverTargeting[e]]),r.adserverTargeting[e]=r.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(n.uniques),delete t.adserverTargeting[e]}}(r))})),e.push(t),e}function B(){var e=C().concat(o.a);return function(t){return-1===e.indexOf(t)}}function D(e){return g({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(B()).map((function(t){return g({},t.substring(0,20),[e.adserverTargeting[t]])})))}function U(e,t){return t.filter((function(t){return f()(e,t.adUnitCode)})).map((function(e){return b({},e)})).reduce(R,[]).map(D).filter((function(e){return e}))}function k(e,t){var r=I.concat(o.a),c=i.b.getConfig("sendBidsControl.bidLimit"),d=E(t,n.getHighestCpm,c),s=i.b.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),u=s?s.map((function(e){return h.TARGETING_KEYS[e]})):r;return d.map((function(t){if(a(t,e))return g({},t.adUnitCode,N(t,r.filter((function(e){return void 0!==t.adserverTargeting[e]&&-1!==u.indexOf(e)}))))})).filter((function(e){return e}))}function N(e,t){return t.map((function(t){return g({},"".concat(t,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[t]])}))}function P(t){function r(e){return Object(n.deepAccess)(e,h.JSON_MAPPING.ADSERVER_TARGETING)}return e.getAdUnits().filter((function(e){return f()(t,e.code)&&r(e)})).map((function(e){return g({},e.code,function(e){var t=r(e);return Object.keys(t).map((function(e){return Object(n.isStr)(t[e])&&(t[e]=t[e].split(",").map((function(e){return e.trim()}))),Object(n.isArray)(t[e])||(t[e]=[t[e]]),g({},e,t[e])}))}(e))}))}return t.setLatestAuctionForAdUnit=function(e,t){r[e]=t},t.resetPresetTargeting=function(t,r){if(Object(n.isGptPubadsDefined)()){var i=_(t),o=e.getAdUnits().filter((function(e){return f()(i,e.code)})),a=y.reduce((function(e,t){return e[t]=null,e}),{});window.googletag.pubads().getSlots().forEach((function(e){var t=Object(n.isFn)(r)&&r(e);o.forEach((function(r){(r.code===e.getAdUnitPath()||r.code===e.getSlotElementId()||Object(n.isFn)(t)&&t(r.code))&&e.updateTargetingFromMap(a)}))}))}},t.resetPresetTargetingAST=function(e){_(e).forEach((function(e){var t=window.apntag.getTag(e);if(t&&t.keywords){var r=Object.keys(t.keywords),n={};r.forEach((function(e){f()(y,e.toLowerCase())||(n[e]=t.keywords[e])})),window.apntag.modifyTag(e,{keywords:n})}}))},t.getAllTargeting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w(),r=_(e),o=x(r,t).concat(U(r,t)).concat(i.b.getConfig("enableSendAllBids")?k(r,t):s(r,t)).concat(P(r));o.map((function(e){Object.keys(e).map((function(t){e[t].map((function(e){-1===y.indexOf(Object.keys(e)[0])&&(y=Object.keys(e).concat(y))}))}))}));var a=Object.keys(b({},h.DEFAULT_TARGETING_KEYS,h.NATIVE_KEYS)),c=i.b.getConfig(O),d=i.b.getConfig(S);if(null!=d&&null!=c)throw new Error(j);c=null!=d?a.concat(d):c||a,Array.isArray(c)&&c.length>0&&(o=u(o,c)),o=v(o);var f=i.b.getConfig("targetingControls.auctionKeyMaxChars");return f&&(Object(n.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(f," characters. Running checks on auction keys...")),o=l(o,f)),r.forEach((function(e){o[e]||(o[e]={})})),o},i.b.getConfig("targetingControls",(function(e){null!=Object(n.deepAccess)(e,O)&&null!=Object(n.deepAccess)(e,S)&&Object(n.logError)(j)})),t.setTargetingForGPT=function(e,t){window.googletag.pubads().getSlots().forEach((function(r){Object.keys(e).filter(t?t(r):Object(n.isAdUnitCodeMatchingSlot)(r)).forEach((function(t){Object.keys(e[t]).forEach((function(r){var n=e[t][r];"string"==typeof n&&-1!==n.indexOf(",")&&(n=n.split(",")),e[t][r]=n})),Object(n.logMessage)("Attempting to set targeting-map for slot: ".concat(r.getSlotElementId()," with targeting-map:"),e[t]),r.updateTargetingFromMap(e[t])}))}))},t.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w(),r=_(e);return t.filter((function(e){return f()(r,e.adUnitCode)})).filter((function(e){return Object(n.isAllowZeroCpmBidsEnabled)(e.bidderCode)?e.cpm>=0:e.cpm>0})).map((function(e){return e.adUnitCode})).filter(n.uniques).map((function(e){return t.filter((function(t){return t.adUnitCode===e?t:null})).reduce(n.getHighestCpm)}))},t.setTargetingForAst=function(e){var r=t.getAllTargeting(e);try{t.resetPresetTargetingAST(e)}catch(e){Object(n.logError)("unable to reset targeting for AST"+e)}Object.keys(r).forEach((function(e){return Object.keys(r[e]).forEach((function(t){if(Object(n.logMessage)("Attempting to set targeting for targetId: ".concat(e," key: ").concat(t," value: ").concat(r[e][t])),Object(n.isStr)(r[e][t])||Object(n.isArray)(r[e][t])){var i={};t.search(/pt[0-9]/)<0?i[t.toUpperCase()]=r[e][t]:i[t]=r[e][t],window.apntag.setKeywords(e,i,{overrideKeyValue:!0})}}))}))},t.isApntagDefined=function(){if(window.apntag&&Object(n.isFn)(window.apntag.setKeywords))return!0},t}(a.a)},,,,function(e,t){e.exports={}},function(e,t,r){var n=r(17),i=r(24),o=r(23)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,r){var n,i,o,a=r(146),c=r(28),d=r(31),s=r(33),u=r(32),f=r(74),l=r(78),p=r(62),b="Object already initialized",g=c.WeakMap;if(a||f.state){var m=f.state||(f.state=new g),v=m.get,h=m.has,y=m.set;n=function(e,t){if(h.call(m,e))throw new TypeError(b);return t.facade=e,y.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},o=function(e){return h.call(m,e)}}else{var O=l("state");p[O]=!0,n=function(e,t){if(u(e,O))throw new TypeError(b);return t.facade=e,s(e,O,t),t},i=function(e){return u(e,O)?e[O]:{}},o=function(e){return u(e,O)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!d(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},,function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return Object.keys(e).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(t,"[]=").concat(e)})).join("&"):"".concat(t,"=").concat(e[t])})).join("&")}t.b=i,t.c=function(e,t){var r=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?r.href=e:r.href=decodeURIComponent(e);var i=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:r.href,protocol:(r.protocol||"").replace(/:$/,""),hostname:r.hostname,port:+r.port,pathname:r.pathname.replace(/^(?!\/)/,"/"),search:i?r.search:(o=r.search||"",o?o.replace(/^\?/,"").split("&").reduce((function(e,t){var r,i,o=t.split("="),a=(i=2,function(e){if(Array.isArray(e))return e}(r=o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw i}}return o}}(r,i)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(r,i)||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.")}()),c=a[0],d=a[1];return/\[\]$/.test(c)?(c=c.replace("[]",""),e[c]=e[c]||[],e[c].push(d)):e[c]=d||"",e}),{}):{}),hash:(r.hash||"").replace(/^#/,""),host:r.host||window.location.host};var o},t.a=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(i(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}},,function(e,t,r){"use strict";r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return p}));var n=r(11),i=r.n(n),o=r(0),a={buckets:[{max:5,increment:.5}]},c={buckets:[{max:20,increment:.1}]},d={buckets:[{max:20,increment:.01}]},s={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},u={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=parseFloat(e);return isNaN(n)&&(n=""),{low:""===n?"":l(e,a,r),med:""===n?"":l(e,c,r),high:""===n?"":l(e,d,r),auto:""===n?"":l(e,u,r),dense:""===n?"":l(e,s,r),custom:""===n?"":l(e,t,r)}}function l(e,t,r){var n="";if(!p(t))return n;var o=t.buckets.reduce((function(e,t){return e.max>t.max?e:t}),{max:0}),a=0,c=i()(t.buckets,(function(t){if(e>o.max*r){var i=t.precision;void 0===i&&(i=2),n=(t.max*r).toFixed(i)}else{if(e<=t.max*r&&e>=a*r)return t.min=a,t;a=t.max}}));return c&&(n=function(e,t,r){var n=void 0!==t.precision?t.precision:2,i=t.increment*r,o=t.min*r,a=Math.pow(10,n+2),c=(e*a-o*a)/(i*a),d=Math.floor(c)*i+o;return(d=Number(d.toFixed(10))).toFixed(n)}(e,c,r)),n}function p(e){if(Object(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}},function(e,t,r){var n=r(94),i=r(57);e.exports=function(e){return n(i(e))}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(57);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(73),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){e.exports=function(){}},function(e,t,r){var n=r(27);e.exports=n},function(e,t){e.exports={}},function(e,t,r){var n=r(64),i=r(45),o=r(23)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(76),i=r(56),o=r(23)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?r:a?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n=r(76),i=r(35).f,o=r(33),a=r(32),c=r(145),d=r(23)("toStringTag");e.exports=function(e,t,r,s){if(e){var u=r?e:e.prototype;a(u,d)||i(u,d,{configurable:!0,value:t}),s&&!n&&o(u,"toString",c)}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(0),i=r(3),o=r(12),a=r.n(o),c=r(7);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}i.b.setDefaults({userSync:Object(n.deepClone)({syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:0})});var f=Object(c.a)("usersync");var l=!Object(n.isSafariBrowser)()&&f.cookiesAreEnabled(),p=function(e){var t={},r={image:[],iframe:[]},o=new Set,c={},s={image:!0,iframe:!1},f=e.config;function l(){if(f.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!s.iframe)return;p(r.iframe,(function(e){var t=d(e,2),i=t[0],o=t[1];Object(n.logMessage)("Invoking iframe user sync for bidder: ".concat(i)),Object(n.insertUserSyncIframe)(o),function(e,t){e.image=e.image.filter((function(e){return e[0]!==t}))}(r,i)}))}(),function(){if(!s.image)return;p(r.image,(function(e){var t=d(e,2),r=t[0],i=t[1];Object(n.logMessage)("Invoking image pixel user sync for bidder: ".concat(r)),Object(n.triggerPixel)(i)}))}()}catch(e){return Object(n.logError)("Error firing user syncs",e)}r={image:[],iframe:[]}}}function p(e,t){Object(n.shuffle)(e).forEach((function(e){t(e),o.add(e[0])}))}function b(e,t){var r=f.filterSettings;if(function(e,t){if(e.all&&e[t])return Object(n.logWarn)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(t,'" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var r=e.all?e.all:e[t],i=e.all?"all":t;if(!r)return!1;var o=r.filter,a=r.bidders;if(o&&"include"!==o&&"exclude"!==o)return Object(n.logWarn)('UserSync "filterSettings.'.concat(i,".filter\" setting '").concat(o,"' is not a valid option; use either 'include' or 'exclude'.")),!1;if("*"!==a&&!(Array.isArray(a)&&a.length>0&&a.every((function(e){return Object(n.isStr)(e)&&"*"!==e}))))return Object(n.logWarn)('Detected an invalid setup in userSync "filterSettings.'.concat(i,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1;return!0}(r,e)){s[e]=!0;var i=r.all?r.all:r[e],o="*"===i.bidders?[t]:i.bidders;return{include:function(e,t){return!a()(e,t)},exclude:function(e,t){return a()(e,t)}}[i.filter||"include"](o,t)}return!s[e]}return i.b.getConfig("userSync",(function(e){if(e.userSync){var t=e.userSync.filterSettings;Object(n.isPlainObject)(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}f=u(f,e.userSync)})),t.registerSync=function(e,i,a){return o.has(i)?Object(n.logMessage)('already fired syncs for "'.concat(i,'", ignoring registerSync call')):f.syncEnabled&&Object(n.isArray)(r[e])?i?0!==f.syncsPerBidder&&Number(c[i])>=f.syncsPerBidder?Object(n.logWarn)('Number of user syncs exceeded for "'.concat(i,'"')):t.canBidderRegisterSync(e,i)?(r[e].push([i,a]),void(c=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(c,i))):Object(n.logWarn)('Bidder "'.concat(i,'" not permitted to register their "').concat(e,'" userSync pixels.')):Object(n.logWarn)("Bidder is required for registering sync"):Object(n.logWarn)('User sync type "'.concat(e,'" not supported'))},t.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(l,Number(e));l()},t.triggerUserSyncs=function(){f.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=function(e,t){return!f.filterSettings||!b(e,t)},t}({config:i.b.getConfig("userSync"),browserSupportsCookies:l})},function(e,t,r){"use strict";t.a=function(e,t){o.adServers=o.adServers||{},o.adServers[e]=o.adServers[e]||{},Object.keys(t).forEach((function(r){o.adServers[e][r]?Object(i.logWarn)("Attempting to add an already registered function property ".concat(r," for AdServer ").concat(e,".")):o.adServers[e][r]=t[r]}))};var n=r(14),i=r(0),o=Object(n.a)()},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"adUnitSetupChecks",(function(){return K})),r.d(t,"checkAdUnitSetup",(function(){return J})),t.executeCallbacks=Z;var n=r(14),i=r(0),o=r(192),a=r(66),c=r(3),d=r(22),s=r(41),u=r(9),f=r(194),l=r(12),p=r.n(l),b=r(84),g=r(13),m=r(40),v=r(7);function h(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var S=Object(n.a)(),j=r(5),I=r(8).default,A=r(10),E=a.a.triggerUserSyncs,T=j.EVENTS,_=T.ADD_AD_UNITS,w=T.BID_WON,x=T.REQUEST_BIDS,C=T.SET_TARGETING,R=T.AD_RENDER_FAILED,B=T.AD_RENDER_SUCCEEDED,D=T.STALE_RENDER,U=j.AD_RENDER_FAILED_REASON,k=U.PREVENT_WRITING_ON_MAIN_DOCUMENT,N=U.NO_AD,P=U.EXCEPTION,M=U.CANNOT_FIND_AD,z=U.MISSING_DOC_OR_ADID,q={bidWon:function(e){var t=d.a.getBidsRequested().map((function(e){return e.bids.map((function(e){return e.adUnitCode}))})).reduce(i.flatten).filter(i.uniques);if(!Object(i.contains)(t,e))return void Object(i.logError)('The "'+e+'" placement is not defined.');return!0}};function F(e,t,r){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=r)}function G(e,t){var r=[];return Object(i.isArray)(e)&&(t?e.length===t:e.length>0)&&(e.every((function(e){return Object(i.isArrayOfNums)(e,2)}))?r=e:Object(i.isArrayOfNums)(e,2)&&r.push(e)),r}function W(e){var t=Object(i.deepClone)(e),r=t.mediaTypes.banner,n=G(r.sizes);return n.length>0?(r.sizes=n,t.sizes=n):(Object(i.logError)("Detected a mediaTypes.banner object without a proper sizes field. Please ensure the sizes are listed like: [[300, 250], ...]. Removing invalid mediaTypes.banner object from request."),delete t.mediaTypes.banner),t}function L(e){var t=Object(i.deepClone)(e),r=t.mediaTypes.video;if(r.playerSize){var n="number"==typeof r.playerSize[0]?2:1,o=G(r.playerSize,n);o.length>0?(2===n&&Object(i.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),r.playerSize=o,t.sizes=o):(Object(i.logError)("Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete t.mediaTypes.video.playerSize)}return t}function H(e){var t=Object(i.deepClone)(e),r=t.mediaTypes.native;return r.image&&r.image.sizes&&!Array.isArray(r.image.sizes)&&(Object(i.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),r.image&&r.image.aspect_ratios&&!Array.isArray(r.image.aspect_ratios)&&(Object(i.logError)("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete t.mediaTypes.native.image.aspect_ratios),r.icon&&r.icon.sizes&&!Array.isArray(r.icon.sizes)&&(Object(i.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}function V(e,t){var r=Object(i.deepAccess)(e,"mediaTypes.".concat(t,".pos"));if(!r||!Object(i.isNumber)(r)||!isFinite(r)){var n="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");Object(i.logWarn)(n),A.emit(j.EVENTS.AUCTION_DEBUG,{type:"WARNING",arguments:n}),delete e.mediaTypes[t].pos}return e}Object(f.a)(),S.bidderSettings=S.bidderSettings||{},S.libLoaded=!0,S.version="v6.7.0-pre",Object(i.logInfo)("Prebid.js v6.7.0-pre loaded"),S.installedModules=S.installedModules||[],S.adUnits=S.adUnits||[],S.triggerUserSyncs=E;var K={validateBannerMediaType:W,validateVideoMediaType:L,validateNativeMediaType:H,validateSizes:G},J=Object(u.b)("sync",(function(e){var t=[];return e.forEach((function(e){var r,n,o,a=e.mediaTypes,c=e.bids;if(c&&Object(i.isArray)(c))if(a&&0!==Object.keys(a).length){a.banner&&(r=W(e),a.banner.hasOwnProperty("pos")&&(r=V(r,"banner"))),a.video&&(n=L(r||e),a.video.hasOwnProperty("pos")&&(n=V(n,"video"))),a.native&&(o=H(n||(r||e)));var d=O({},r,n,o);t.push(d)}else Object(i.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."));else Object(i.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 Y(e){var t=d.a[e]().filter(i.bind.call(i.adUnitsFilter,this,d.a.getAdUnitCodes())),r=d.a.getLastAuctionId();return t.map((function(e){return e.adUnitCode})).filter(i.uniques).map((function(e){return t.filter((function(t){return t.auctionId===r&&t.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return t={},r=e[0].adUnitCode,n={bids:e},r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t;var t,r,n})).reduce((function(e,t){return O(e,t)}),{})}function X(e){var t=e.reason,r=e.message,n=e.bid,o=e.id,a={reason:t,message:r};n&&(a.bid=n),o&&(a.adId=o),Object(i.logError)(r),A.emit(R,a)}function Q(e){var t=e.doc,r=e.bid,n=e.id,i={doc:t};r&&(i.bid=r),n&&(i.adId=n),A.emit(B,i)}function $(e,t,r){var n=t.querySelector(r);e.parentNode&&e.parentNode===n||Object(i.insertElement)(e,t,r)}function Z(e,t){function r(e){for(var t;t=e.shift();)t()}r(v.c),r(ee),e.call(this,t)}S.getAdserverTargetingForAdUnitCodeStr=function(e){if(Object(i.logInfo)("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=S.getAdserverTargetingForAdUnitCode(e);return Object(i.transformAdServerTargetingObj)(t)}Object(i.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},S.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var t=d.a.getAllBidsForAdUnitCode(e).filter(s.a.isUnusedBid).filter(s.a.isBidNotExpired);return t.length?t.reduce(i.getHighestCpm):{}}Object(i.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},S.getAdserverTargetingForAdUnitCode=function(e){return S.getAdserverTargeting(e)[e]},S.getAdserverTargeting=function(e){return Object(i.logInfo)("Invoking pbjs.getAdserverTargeting",arguments),s.d.getAllTargeting(e)},S.getNoBids=function(){return Object(i.logInfo)("Invoking pbjs.getNoBids",arguments),Y("getNoBids")},S.getNoBidsForAdUnitCode=function(e){return{bids:d.a.getNoBids().filter((function(t){return t.adUnitCode===e}))}},S.getBidResponses=function(){return Object(i.logInfo)("Invoking pbjs.getBidResponses",arguments),Y("getBidsReceived")},S.getBidResponsesForAdUnitCode=function(e){return{bids:d.a.getBidsReceived().filter((function(t){return t.adUnitCode===e}))}},S.setTargetingForGPTAsync=function(e,t){if(Object(i.logInfo)("Invoking pbjs.setTargetingForGPTAsync",arguments),Object(i.isGptPubadsDefined)()){var r=s.d.getAllTargeting(e);s.d.resetPresetTargeting(e,t),s.d.setTargetingForGPT(r,t),Object.keys(r).forEach((function(e){Object.keys(r[e]).forEach((function(t){"hb_adid"===t&&d.a.setStatusForBids(r[e][t],j.BID_STATUS.BID_TARGETING_SET)}))})),A.emit(C,r)}else Object(i.logError)("window.googletag is not defined on the page")},S.setTargetingForAst=function(e){Object(i.logInfo)("Invoking pbjs.setTargetingForAn",arguments),s.d.isApntagDefined()?(s.d.setTargetingForAst(e),A.emit(C,s.d.getAllTargeting())):Object(i.logError)("window.apntag is not defined on the page")},S.renderAd=Object(u.b)("async",(function(e,t,r){if(Object(i.logInfo)("Invoking pbjs.renderAd",arguments),Object(i.logMessage)("Calling renderAd with adId :"+t),e&&t)try{var n=d.a.findBidByAdId(t);if(n){var o=!0;if(n&&n.status===j.BID_STATUS.RENDERED&&(Object(i.logWarn)("Ad id ".concat(n.adId," has been rendered before")),A.emit(D,n),Object(i.deepAccess)(c.b.getConfig("auctionOptions"),"suppressStaleRender")&&(o=!1)),o){if(n.ad=Object(i.replaceAuctionPrice)(n.ad,n.cpm),n.adUrl=Object(i.replaceAuctionPrice)(n.adUrl,n.cpm),r&&r.clickThrough){var a=r.clickThrough;n.ad=Object(i.replaceClickThrough)(n.ad,a),n.adUrl=Object(i.replaceClickThrough)(n.adUrl,a)}d.a.addWinningBid(n),A.emit(w,n);var s=n.height,u=n.width,f=n.ad,l=n.mediaType,p=n.adUrl,b=n.renderer,m=document.createComment("Creative ".concat(n.creativeId," served by ").concat(n.bidder," Prebid.js Header Bidding"));if(Object(i.insertElement)(m,e,"html"),Object(g.c)(b))Object(g.b)(b,n),$(m,e,"html"),Q({doc:e,bid:n,id:t});else if(e===document&&!Object(i.inIframe)()||"video"===l){var v="Error trying to write ad. Ad render call ad id ".concat(t," was prevented from writing to the main document.");X({reason:k,message:v,bid:n,id:t})}else if(f){if(navigator.userAgent&&navigator.userAgent.toLowerCase().indexOf("firefox/")>-1){var h=/firefox\/([\d\.]+)/,y=navigator.userAgent.toLowerCase().match(h)[1];y&&parseInt(y,10)<67&&e.open("text/html","replace")}e.write(f),e.close(),F(e,u,s),$(m,e,"html"),Object(i.callBurl)(n),Q({doc:e,bid:n,id:t})}else if(p){var O=Object(i.createInvisibleIframe)();O.height=s,O.width=u,O.style.display="inline",O.style.overflow="hidden",O.src=p,Object(i.insertElement)(O,e,"body"),F(e,u,s),$(m,e,"html"),Object(i.callBurl)(n),Q({doc:e,bid:n,id:t})}else{var S="Error trying to write ad. No ad for bid response id: ".concat(t);X({reason:N,message:S,bid:n,id:t})}}}else{var I="Error trying to write ad. Cannot find ad by given id : ".concat(t);X({reason:M,message:I,id:t})}}catch(e){var E="Error trying to write ad Id :".concat(t," to the page:").concat(e.message);X({reason:P,message:E,id:t})}else{var T="Error trying to write ad Id :".concat(t," to the page. Missing document or adId");X({reason:z,message:T,id:t})}})),S.removeAdUnit=function(e){(Object(i.logInfo)("Invoking pbjs.removeAdUnit",arguments),e)?(Object(i.isArray)(e)?e:[e]).forEach((function(e){for(var t=S.adUnits.length-1;t>=0;t--)S.adUnits[t].code===e&&S.adUnits.splice(t,1)})):S.adUnits=[]},S.requestBids=Object(u.b)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,r=e.timeout,n=e.adUnits,o=e.adUnitCodes,a=e.labels,u=e.auctionId;A.emit(x);var f=r||c.b.getConfig("bidderTimeout");n=n&&c.b.convertAdUnitFpd(Object(i.isArray)(n)?n:[n])||S.adUnits,Object(i.logInfo)("Invoking pbjs.requestBids",arguments);var l=[],g=[];if(c.b.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(l=Array.isArray(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])})),l.forEach((function(e){g.push.apply(g,h(e.bidders))})),n=J(n),o&&o.length?n=n.filter((function(e){return p()(o,e.code)})):o=n&&n.map((function(e){return e.code})),n.forEach((function(e){var t=Object.keys(e.mediaTypes||{banner:"banner"}),r=e.bids.map((function(e){return e.bidder})),n=I.bidderRegistry,o=g?r.filter((function(e){return!p()(g,e)})):r;e.transactionId=Object(i.generateUUID)(),o.forEach((function(r){var o=n[r],a=o&&o.getSpec&&o.getSpec(),c=a&&a.supportedMediaTypes||["banner"];t.some((function(e){return p()(c,e)}))?b.a.incrementBidderRequestsCounter(e.code,r):(Object(i.logWarn)(Object(i.unsupportedBidderMessage)(e,r)),e.bids=e.bids.filter((function(e){return e.bidder!==r})))})),b.a.incrementRequestsCounter(e.code)})),n&&0!==n.length){var m=d.a.createAuction({adUnits:n,adUnitCodes:o,callback:t,cbTimeout:f,labels:a,auctionId:u}),v=n.length;v>15&&Object(i.logInfo)("Current auction ".concat(m.getAuctionId()," contains ").concat(v," adUnits."),n),o.forEach((function(e){return s.d.setLatestAuctionForAdUnit(e,m.getAuctionId())})),m.callBids()}else if(Object(i.logMessage)("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){Object(i.logError)("Error executing bidsBackHandler",null,e)}})),S.requestBids.before(Z,49),S.addAdUnits=function(e){Object(i.logInfo)("Invoking pbjs.addAdUnits",arguments),S.adUnits.push.apply(S.adUnits,c.b.convertAdUnitFpd(Object(i.isArray)(e)?e:[e])),A.emit(_)},S.onEvent=function(e,t,r){Object(i.logInfo)("Invoking pbjs.onEvent",arguments),Object(i.isFn)(t)?!r||q[e].call(null,r)?A.on(e,t,r):Object(i.logError)('The id provided is not valid for event "'+e+'" and no handler was set.'):Object(i.logError)('The event handler provided is not a function and was not set on event "'+e+'".')},S.offEvent=function(e,t,r){Object(i.logInfo)("Invoking pbjs.offEvent",arguments),r&&!q[e].call(null,r)||A.off(e,t,r)},S.getEvents=function(){return Object(i.logInfo)("Invoking pbjs.getEvents"),A.getEvents()},S.registerBidAdapter=function(e,t){Object(i.logInfo)("Invoking pbjs.registerBidAdapter",arguments);try{I.registerBidAdapter(e(),t)}catch(e){Object(i.logError)("Error registering bidder adapter : "+e.message)}},S.registerAnalyticsAdapter=function(e){Object(i.logInfo)("Invoking pbjs.registerAnalyticsAdapter",arguments);try{I.registerAnalyticsAdapter(e)}catch(e){Object(i.logError)("Error registering analytics adapter : "+e.message)}},S.createBid=function(e){return Object(i.logInfo)("Invoking pbjs.createBid",arguments),Object(m.createBid)(e)};var ee=[],te=Object(u.b)("async",(function(e){e&&!Object(i.isEmpty)(e)?(Object(i.logInfo)("Invoking pbjs.enableAnalytics for: ",e),I.enableAnalytics(e)):Object(i.logError)("pbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");function re(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){Object(i.logError)("Error processing command :","prebid.js",e)}}))}S.enableAnalytics=function(e){ee.push(te.bind(this,e))},S.aliasBidder=function(e,t,r){Object(i.logInfo)("Invoking pbjs.aliasBidder",arguments),e&&t?I.aliasBidAdapter(e,t,r):Object(i.logError)("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},S.getAllWinningBids=function(){return d.a.getAllWinningBids()},S.getAllPrebidWinningBids=function(){return d.a.getBidsReceived().filter((function(e){return e.status===j.BID_STATUS.BID_TARGETING_SET}))},S.getHighestCpmBids=function(e){return s.d.getWinningBids(e)},S.markWinningBidAsUsed=function(e){var t=[];e.adUnitCode&&e.adId?t=d.a.getBidsReceived().filter((function(t){return t.adId===e.adId&&t.adUnitCode===e.adUnitCode})):e.adUnitCode?t=s.d.getWinningBids(e.adUnitCode):e.adId?t=d.a.getBidsReceived().filter((function(t){return t.adId===e.adId})):Object(i.logWarn)("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),t.length>0&&(t[0].status=j.BID_STATUS.RENDERED)},S.getConfig=c.b.getConfig,S.readConfig=c.b.readConfig,S.mergeConfig=c.b.mergeConfig,S.mergeBidderConfig=c.b.mergeBidderConfig,S.setConfig=c.b.setConfig,S.setBidderConfig=c.b.setBidderConfig,S.que.push((function(){return Object(o.a)()})),S.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){Object(i.logError)("Error processing command :",e.message,e.stack)}else Object(i.logError)("Commands written into pbjs.cmd.push must be wrapped in a function")},S.que.push=S.cmd.push,S.processQueue=function(){u.b.ready(),re(S.que),re(S.cmd)},t.default=S},function(e,t,r){var n=r(31);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(26),i=r(94),o=r(58),a=r(59),c=r(132),d=[].push,s=function(e){var t=1==e,r=2==e,s=3==e,u=4==e,f=6==e,l=7==e,p=5==e||f;return function(b,g,m,v){for(var h,y,O=o(b),S=i(O),j=n(g,m,3),I=a(S.length),A=0,E=v||c,T=t?E(b,I):r||l?E(b,0):void 0;I>A;A++)if((p||A in S)&&(y=j(h=S[A],A,O),e))if(t)T[A]=y;else if(y)switch(e){case 3:return!0;case 5:return h;case 6:return A;case 2:d.call(T,h)}else switch(e){case 4:return!1;case 7:d.call(T,h)}return f?-1:s||u?u:T}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterOut:s(7)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(28),i=r(134),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n={};n[r(23)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var n=r(97),i=r(75),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,r){var n,i=r(17),o=r(149),a=r(104),c=r(62),d=r(152),s=r(96),u=r(78),f=u("IE_PROTO"),l=function(){},p=function(e){return"<script>"+e+"</"+"script>"},b=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;b=n?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=s("iframe")).style.display="none",d.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var r=a.length;r--;)delete b.prototype[a[r]];return b()};c[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(l.prototype=i(e),r=new l,l.prototype=null,r[f]=e):r=b(),void 0===t?r:o(r,t)}},function(e,t,r){var n=r(33);e.exports=function(e,t,r,i){i&&i.enumerable?e[t]=r:n(e,t,r)}},function(e,t,r){"use strict";var n=r(16),i=r(106),o=r(108),a=r(154),c=r(65),d=r(33),s=r(80),u=r(23),f=r(18),l=r(45),p=r(107),b=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",h="values",y="entries",O=function(){return this};e.exports=function(e,t,r,u,p,S,j){i(r,t,u);var I,A,E,T=function(e){if(e===p&&R)return R;if(!g&&e in x)return x[e];switch(e){case v:case h:case y:return function(){return new r(this,e)}}return function(){return new r(this)}},_=t+" Iterator",w=!1,x=e.prototype,C=x[m]||x["@@iterator"]||p&&x[p],R=!g&&C||T(p),B="Array"==t&&x.entries||C;if(B&&(I=o(B.call(new e)),b!==Object.prototype&&I.next&&(f||o(I)===b||(a?a(I,b):"function"!=typeof I[m]&&d(I,m,O)),c(I,_,!0,!0),f&&(l[_]=O))),p==h&&C&&C.name!==h&&(w=!0,R=function(){return C.call(this)}),f&&!j||x[m]===R||d(x,m,R),l[t]=R,p)if(A={values:T(h),keys:S?R:T(v),entries:T(y)},j)for(E in A)(g||w||!(E in x))&&s(x,E,A[E]);else n({target:t,proto:!0,forced:g||w},A);return A}},function(e,t,r){var n=r(17),i=r(63);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},function(e,t,r){var n=r(183);e.exports=n},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i={};function o(e,t,r){var n=function(e,t){var r=i[e]=i[e]||{bidders:{}};return t?r.bidders[t]=r.bidders[t]||{}:r}(e,r);return n[t]=(n[t]||0)+1,n[t]}var a={incrementRequestsCounter:function(e){return o(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,t){return o(e,"requestsCounter",t)},incrementBidderWinsCounter:function(e,t){return o(e,"winsCounter",t)},getRequestsCounter:function(e){return Object(n.deepAccess)(i,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,t){return Object(n.deepAccess)(i,"".concat(e,".bidders.").concat(t,".requestsCounter"))||0},getBidderWinsCounter:function(e,t){return Object(n.deepAccess)(i,"".concat(e,".bidders.").concat(t,".winsCounter"))||0}}},,,,function(e,t,r){var n=r(244);e.exports=n},function(e,t,r){var n=r(407);e.exports=n},,,,,function(e,t,r){var n=r(30),i=r(56),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,r){var n=r(34),i=r(30),o=r(96);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(28),i=r(31),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,r){var n=r(18),i=r(74);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.1",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(135),i=r(30);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(e,t,r){var n=r(55),i=r(59),o=r(140),a=function(e){return function(t,r,a){var c,d=n(t),s=i(d.length),u=o(a,s);if(e&&r!=r){for(;s>u;)if((c=d[u++])!=c)return!0}else for(;s>u;u++)if((e||u in d)&&d[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(141);r(161),r(163),r(165),r(167),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),e.exports=n},function(e,t,r){var n=r(62),i=r(31),o=r(32),a=r(35).f,c=r(75),d=r(144),s=c("meta"),u=0,f=Object.isExtensible||function(){return!0},l=function(e){a(e,s,{value:{objectID:"O"+ ++u,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,s)){if(!f(e))return"F";if(!t)return"E";l(e)}return e[s].objectID},getWeakData:function(e,t){if(!o(e,s)){if(!f(e))return!0;if(!t)return!1;l(e)}return e[s].weakData},onFreeze:function(e){return d&&p.REQUIRED&&f(e)&&!o(e,s)&&l(e),e}};n[s]=!0},function(e,t,r){var n=r(23),i=r(45),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,r){var n=r(17);e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){var n=r(80);e.exports=function(e,t,r){for(var i in t)r&&r.unsafe&&e[i]?e[i]=t[i]:n(e,i,t[i],r);return e}},function(e,t,r){"use strict";var n=r(107).IteratorPrototype,i=r(79),o=r(48),a=r(65),c=r(45),d=function(){return this};e.exports=function(e,t,r){var s=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),a(e,s,!1,!0),c[s]=d,e}},function(e,t,r){"use strict";var n,i,o,a=r(30),c=r(108),d=r(33),s=r(32),u=r(23),f=r(18),l=u("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(n=i):p=!0);var b=null==n||a((function(){var e={};return n[l].call(e)!==e}));b&&(n={}),f&&!b||s(n,l)||d(n,l,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},function(e,t,r){var n=r(32),i=r(58),o=r(78),a=r(153),c=o("IE_PROTO"),d=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),n(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?d:null}},function(e,t,r){"use strict";var n=r(158).charAt,i=r(50),o=r(81),a="String Iterator",c=i.set,d=i.getterFor(a);o(String,"String",(function(e){c(this,{type:a,string:String(e),index:0})}),(function(){var e,t=d(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){"use strict";var n=r(55),i=r(60),o=r(45),a=r(50),c=r(81),d="Array Iterator",s=a.set,u=a.getterFor(d);e.exports=c(Array,"Array",(function(e,t){s(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,r){"use strict";t.b=function(e,t,r){var o={puts:e.map(a,r)};Object(n.a)(i.b.getConfig("cache.url"),function(e){return{success:function(t){var r;try{r=JSON.parse(t).responses}catch(t){return void e(t,[])}r?e(null,r):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,r){e(new Error("Error storing video ad in the cache: ".concat(t,": ").concat(JSON.stringify(r))),[])}}}(t),JSON.stringify(o),{contentType:"text/plain",withCredentials:!0})},t.a=function(e){return"".concat(i.b.getConfig("cache.url"),"?uuid=").concat(e)};var n=r(4),i=r(3),o=r(0);function a(e){var t,r,n,a={type:"xml",value:e.vastXml?e.vastXml:(t=e.vastUrl,r=e.vastImpUrl,n=r?"<![CDATA[".concat(r,"]]>"):"",'<VAST version="3.0">\n <Ad>\n <Wrapper>\n <AdSystem>prebid.org wrapper</AdSystem>\n <VASTAdTagURI><![CDATA['.concat(t,"]]></VASTAdTagURI>\n <Impression>").concat(n,"</Impression>\n <Creatives></Creatives>\n </Wrapper>\n </Ad>\n </VAST>")),ttlseconds:Number(e.ttl)};return i.b.getConfig("cache.vasttrack")&&(a.bidder=e.bidder,a.bidid=e.requestId,a.aid=e.auctionId,Object(o.isPlainObject)(this)&&this.hasOwnProperty("auctionStart")&&(a.timestamp=this.auctionStart)),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(a.key=e.customCacheKey),a}},function(e,t,r){"use strict";t.a=function(e,t){if(e.labelAll)return{labelAll:!0,labels:e.labelAll,activeLabels:t};return{labelAll:!1,labels:e.labelAny,activeLabels:t}},t.c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,r=s(t);if(!r.shouldFilter)return!0;return!!r.sizesSupported[e]},t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.labels,r=void 0===t?[]:t,n=e.labelAll,o=void 0!==n&&n,c=e.activeLabels,u=void 0===c?[]:c,f=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d,b=s(p);f=Object(i.isPlainObject)(f)?Object(i.deepClone)(f):l?{banner:{sizes:l}}:{};var g=Object(i.deepAccess)(f,"banner.sizes");b.shouldFilter&&g&&(f.banner.sizes=g.filter((function(e){return b.sizesSupported[e]})));var m=Object.keys(f),v={active:m.every((function(e){return"banner"!==e}))||m.some((function(e){return"banner"===e}))&&Object(i.deepAccess)(f,"banner.sizes.length")>0&&(0===r.length||!o&&(r.some((function(e){return b.labels[e]}))||r.some((function(e){return a()(u,e)})))||o&&r.reduce((function(e,t){return e?b.labels[t]||a()(u,t):e}),!0)),mediaTypes:f};g&&g.length!==f.banner.sizes.length&&(v.filterResults={before:g,after:f.banner.sizes});return v};var n=r(3),i=r(0),o=r(12),a=r.n(o);function c(e){return(c="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)}var d=[];function s(e){return e.reduce((function(e,t){if("object"===c(t)&&"string"==typeof t.mediaQuery&&t.mediaQuery.length>0){var r=!1;try{r=Object(i.getWindowTop)().matchMedia(t.mediaQuery).matches}catch(e){Object(i.logWarn)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),r=matchMedia(t.mediaQuery).matches}r&&(Array.isArray(t.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach((function(r){return(t[r]||[]).forEach((function(t){return e[r][t]=!0}))})))}else Object(i.logWarn)('sizeConfig rule missing required property "mediaQuery"');return e}),{labels:{},sizesSupported:{},shouldFilter:!1})}n.b.getConfig("sizeConfig",(function(e){return function(e){d=e}(e.sizeConfig)}))},function(e,t,r){"use strict";t.a=function(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}},,,,,,,,,,,,function(e,t,r){r(126),e.exports=r(70)},function(e,t){var r=window.googletag||{};r.cmd=r.cmd||[],window.googletag=r;var n=window.pbjs||{};n.que=n.que||[],window.pbjs=n;var i=i||[],o=o||[],a=window.adUnits;window.TIMEOUT,window.screenSizeMobile;n.detectWidth=window.detectWidth||function(){return window.screen.width||window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth},window.dfpAdunitsToRefresh=[];var c=window.EXCHANGE_RATE||1.35,d=0,s=[];var u=Math.floor(100*Math.random()),f="false";u<20&&(f=1),u<15&&(f=2),u<10&&(f=3),u<5&&(f=4);var l=function(){r.pubads().setTargeting("floortest",f.toString())};void 0===r.cmd.unshift?function(e,t){for(var r=e.length-1;r>=0;r--)e[r+1]=e[r];e[0]=t}(r.cmd,l):r.cmd.unshift(l),function(e,t,r,n,i,o,a){function c(r,n){t[e]._Q.push([r,n])}t[e]||(t[e]={init:function(){c("i",arguments)},fetchBids:function(){c("f",arguments)},setDisplayBids:function(){},_Q:[]},(o=r.createElement(n)).async=!0,o.src="//c.amazon-adsystem.com/aax2/apstag.js",(a=r.getElementsByTagName(n)[0]).parentNode.insertBefore(o,a))}("apstag",window,document,"script"),apstag.init({pubID:"5e2f090b-fc7b-4b72-9af4-9e1680c036e4",adServer:"googletag"}),n.que.push((function(){var e=window;e._clrm=e._clrm||{},e._clrm.renderAd=e._clrm.renderAd||n.renderAd;var t=e._clrm.prebid||{sandbox:4};e.confiant&&e.confiant.settings&&(t=e.confiant.settings);var r,i=function(e,t,r,n,i){function o(e){return(u(e)||"")[b]("/","_")[b]("+","-")}var a=t.bidder,c=t.size,d=e.parentWindow||e.defaultView,s=d.JSON,u=d.btoa,f=d.encodeURIComponent;if(!s||!u)return!1;var l="script",p="src",b="replace",g="error",m="stringify",v="write",h="https://"+r+"/?wrapper="+f(n)+"&tpid=",y={k:{hb_bidder:[a],hb_size:[c]}};return function(){var r=o(n+"/"+y.k.hb_bidder[0]+":"+y.k.hb_size[0]),a={wh:r,wd:s.parse(s[m](y)),wr:0};!function(t,r,n){var i=h+f(t)+"&d="+r,o="err__"+1*new Date;d[o]=n;var a="<"+l+" on"+g+'="void('+o+'())" '+p+'="'+i+'" type="text/java'+l+'" ></'+l+">";e[v](a)}(r,o(s[m](a)),(function(){e[v](t.ad)}));var c={prebid:{adId:t.adId,cpm:t.cpm}},u={d:a,t:t.ad,cb:i,id:c};d[n]={},d[n][r]=u}(),e.close(),!0};Node.prototype.appendChild=(r=Node.prototype.appendChild,function(e){var n,i,o,a,c;return"IFRAME"===(c=e).tagName&&c.id&&c.id.indexOf("google_ads_iframe_")>-1&&(n=/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile/i,i=/(.+)(iPhone|iPad|iPod)(.+)OS[\s|\_](\d)\_?(\d)?[\_]?(\d)?.+/i,o=/Android/i,"1"==(a=""+t.sandbox)||("2"===a?!navigator.userAgent.match(n):"3"===a?navigator.userAgent.match(n):"4"===a?navigator.userAgent.match(i):"5"===a&&navigator.userAgent.match(o)))&&!e.getAttribute("sandbox")&&(e.setAttribute("sandbox","allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation"),e.setAttribute("data-forced-sandbox",!0)),r.call(this,e)}),n.renderAd=function(e,r){if(e&&r)try{var o,a,c=[],d=n.getBidResponses(),s=n.getHighestCpmBids();for(var u in d)c=c.concat(d[u].bids);for(c=c.concat(s),a=0;a<c.length;a++)if(c[a].adId===r){o=c[a];break}var f=t.excludeBidders||[];if(o){var l=!1;for(a=0;a<f.length;a++)if(o.bidder===f[a]){l=!0;break}}if(o&&o.ad&&!l){e.write,e.close;e.write=e.close=function(){},window._clrm.renderAd(e,r),delete e.write,delete e.close;"undefined"==typeof getSerializedCaspr||getSerializedCaspr();return void(i(e,o,"clarium.global.ssl.fastly.net","hpZZBXt7VW7m1SA2o78XrRv3UJY",(function(e,t,r,n,i,o){console.log("w00t one more bad ad nixed.",arguments)}),t.devMode)||(e.write(o.ad),e.close()))}}catch(e){console.error(e)}window._clrm.renderAd(e,r)}})),function(){var e=window,t="clarium.global.ssl.fastly.net";e._clrm=e._clrm||{},e._clrm.gpt={propertyId:"hpZZBXt7VW7m1SA2o78XrRv3UJY",confiantCdn:t,sandbox:0,mapping:"W3siaSI6MiwidCI6Int7b319Ont7d319eHt7aH19IiwicCI6MCwiRCI6MSwiciI6W119LHsiaSI6NiwidCI6Int7Y299fTp7e3d9fXh7e2h9fSIsInAiOjUwLCJEIjowLCJyIjpbeyJ0IjoiZXgiLCJzIjpudWxsLCJ2IjoiY28ifV19XQ==",activation:"|||MjE3NTU1NTM1Mg==,|||MjMzNTA1MjUzNQ==",callback:function(e,t,r,n,i,o){console.log("w00t one more bad ad nixed.",arguments)}};var r=document.createElement("script");r.async=!0,r.src="//"+t+"/gpt/a/wrap.js?v2_1";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(r,n)}();var p=!1;Math.random()<.5&&(p=!1),r.cmd.push((function(){r.pubads().setTargeting("refreshIteration",d.toString())})),"function"==typeof r.cmd.pop&&r.cmd.splice(0,0,r.cmd.pop()),"function"==typeof r.cmd.unshift?r.cmd.unshift((function(){r.pubads().setTargeting("refreshTest",p.toString())})):r.cmd.push((function(){r.pubads().setTargeting("refreshTest",p.toString())})),r.cmd.push((function(){r.pubads().addEventListener("slotRenderEnded",(function(e){if(!e.isEmpty&&s.indexOf(e.advertiserId)>=0){for(var t=[],r=0,n=o.length;r<n;r++)o[r].code!=e.slot.getSlotElementId()&&t.push(o[r]);o=t}}))}));function b(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}b("indexTest");var g=[[728,90]],m=[[728,90],[970,250],[970,90]],v=[[300,250],[300,600],[336,280],[160,600]];if(n.detectWidth()<1024&&(g=[[468,60]],m=[[728,90]],v=[[160,600]]),n.detectWidth()<768&&(g=[[320,50]],m=[[320,50],[320,100]],v=[[300,250]]),i.push({adunit:"Fantrax_Desktop_Top_Horizontal",code:"div-gpt-ad-Fantrax_Top_Horizontal",mediaTypes:{banner:{sizes:g}},bids:n.detectWidth()>=1024?[{bidder:"aol",params:{placement:"4700273",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"12339159"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158890",zoneId:"761764"}},{bidder:"ix",params:{size:[728,90],siteId:"227467"}},{bidder:"sovrn",params:{tagid:"532906"}},{bidder:"conversant",params:{site_id:"117317"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200308}},{bidder:"districtm",params:{placementId:12940969}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Top_Horizontal@728x90"}},{bidder:"grid",params:{uid:3263}},{bidder:"gumgum",params:{inSlot:68135}}]:[{bidder:"appnexus",params:{placementId:"12339159"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158890",zoneId:"761764"}},{bidder:"ix",params:{size:[468,60],siteId:"227467"}},{bidder:"conversant",params:{site_id:"117317"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200308}},{bidder:"districtm",params:{placementId:12940969}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_320x50"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Top_Horizontal@468x60"}},{bidder:"grid",params:{uid:3263}},{bidder:"gumgum",params:{inSlot:68135}}]}),i.push({adunit:"Fantrax_Desktop_Bottom_Horizontal",code:"div-gpt-ad-Fantrax_Bottom_Horizontal",mediaTypes:{banner:{sizes:m}},bids:n.detectWidth()>=1024?[{bidder:"aol",params:{placement:"4700275",network:"11178.1"}},{bidder:"aol",params:{placement:"4700271",network:"11178.1"}},{bidder:"aol",params:{placement:"4700268",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"12339160"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158890",zoneId:"761768"}},{bidder:"ix",params:{size:[728,90],siteId:"227470"}},{bidder:"ix",params:{size:[970,250],siteId:"227470"}},{bidder:"ix",params:{size:[970,90],siteId:"227470"}},{bidder:"sovrn",params:{tagid:"532908"}},{bidder:"sovrn",params:{tagid:"532909"}},{bidder:"sovrn",params:{tagid:"532921"}},{bidder:"conversant",params:{site_id:"117318"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200309}},{bidder:"districtm",params:{placementId:12940970}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Bottom_Horizontal@728x90"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Bottom_Horizontal@970x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Bottom_Horizontal@970x90"}},{bidder:"grid",params:{uid:3254}},{bidder:"gumgum",params:{inSlot:68126}}]:[{bidder:"aol",params:{placement:"4700275",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"12339160"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158890",zoneId:"761768"}},{bidder:"ix",params:{size:[728,90],siteId:"227470"}},{bidder:"sovrn",params:{tagid:"532908"}},{bidder:"conversant",params:{site_id:"117318"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200309}},{bidder:"districtm",params:{placementId:12940970}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_320x50"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Bottom_Horizontal@728x90"}},{bidder:"grid",params:{uid:3254}},{bidder:"gumgum",params:{inSlot:68126}}]}),i.push({adunit:"Fantrax_Desktop_Right_Sidebar_A",code:"div-gpt-ad-Fantrax_Right_Sidebar_A",mediaTypes:{banner:{sizes:v}},bids:n.detectWidth()>=1024?[{bidder:"appnexus",params:{placementId:"12339161"}},{bidder:"ix",params:{size:[300,250],siteId:"227472"}},{bidder:"ix",params:{size:[160,600],siteId:"227472"}},{bidder:"ix",params:{size:[300,600],siteId:"227472"}},{bidder:"ix",params:{size:[336,280],siteId:"227472"}},{bidder:"sovrn",params:{tagid:"532910"}},{bidder:"sovrn",params:{tagid:"532911"}},{bidder:"sovrn",params:{tagid:"532912"}},{bidder:"conversant",params:{site_id:"117319"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200310}},{bidder:"districtm",params:{placementId:12940971}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_A@300x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_A@160x600"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_A@300x600"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_A@336x280"}},{bidder:"grid",params:{uid:3260}},{bidder:"gumgum",params:{inSlot:68132}}]:[{bidder:"appnexus",params:{placementId:"12339161"}},{bidder:"ix",params:{size:[160,600],siteId:"227472"}},{bidder:"sovrn",params:{tagid:"532912"}},{bidder:"conversant",params:{site_id:"117319"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200310}},{bidder:"districtm",params:{placementId:12940971}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_300x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_A@160x600"}},{bidder:"grid",params:{uid:3260}},{bidder:"gumgum",params:{inSlot:68132}}]}),i.push({adunit:"Fantrax_Desktop_Right_Sidebar_B",code:"div-gpt-ad-Fantrax_Right_Sidebar_B",mediaTypes:{banner:{sizes:v}},bids:n.detectWidth()>=1024?[{bidder:"appnexus",params:{placementId:"12339162"}},{bidder:"ix",params:{size:[300,250],siteId:"227475"}},{bidder:"ix",params:{size:[160,600],siteId:"227475"}},{bidder:"ix",params:{size:[300,600],siteId:"227475"}},{bidder:"ix",params:{size:[336,280],siteId:"227475"}},{bidder:"sovrn",params:{tagid:"532913"}},{bidder:"sovrn",params:{tagid:"532914"}},{bidder:"sovrn",params:{tagid:"532915"}},{bidder:"conversant",params:{site_id:"117320"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200311}},{bidder:"districtm",params:{placementId:12940972}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_B@300x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_B@160x600"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_B@300x600"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_B@336x280"}},{bidder:"grid",params:{uid:3261}},{bidder:"gumgum",params:{inSlot:68133}}]:[{bidder:"appnexus",params:{placementId:"12339162"}},{bidder:"ix",params:{size:[160,600],siteId:"227475"}},{bidder:"sovrn",params:{tagid:"532915"}},{bidder:"conversant",params:{site_id:"117320"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200311}},{bidder:"districtm",params:{placementId:12940972}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_300x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_B@160x600"}},{bidder:"grid",params:{uid:3261}},{bidder:"gumgum",params:{inSlot:68133}}]}),i.push({adunit:"Fantrax_Desktop_Right_Sidebar_C",code:"div-gpt-ad-Fantrax_Desktop_Right_Sidebar_C",mediaTypes:{banner:{sizes:[[300,250]]}},bids:[{bidder:"appnexus",params:{placementId:"12552576"}},{bidder:"ix",params:{size:[300,250],siteId:"239657"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158890",zoneId:"794154"}},{bidder:"sovrn",params:{tagid:"538773"}},{bidder:"conversant",params:{site_id:"120763"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:241496}},{bidder:"districtm",params:{placementId:13851457}},{bidder:"aol",params:{placement:"4935231",network:"11178.1"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Right_Sidebar_C@300x250"}},{bidder:"grid",params:{uid:3262}},{bidder:"gumgum",params:{inSlot:68134}}]}),i.push({adunit:"Fantrax_Mobile_320x50",code:"div-gpt-ad-Fantrax_Mobile_320x50",mediaTypes:{banner:{sizes:g}},bids:[{bidder:"aol",params:{placement:"5170923",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"18080953"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158902",zoneId:"1520574"}},{bidder:"ix",params:{size:[320,50],siteId:"445143"}},{bidder:"sovrn",params:{tagid:"670339"}},{bidder:"conversant",params:{site_id:"200892"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:479534}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_320x50"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Mobile_320x50@320x50"}},{bidder:"grid",params:{uid:3266}},{bidder:"gumgum",params:{inSlot:68138}}]}),i.push({adunit:"Fantrax_Mobile_Top_Horizontal",code:"div-gpt-ad-Fantrax_Top_Horizontal",mediaTypes:{banner:{sizes:g}},bids:[{bidder:"aol",params:{placement:"4700285",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"12339163"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158902",zoneId:"761786"}},{bidder:"ix",params:{size:[320,50],siteId:"227477"}},{bidder:"sovrn",params:{tagid:"532916"}},{bidder:"conversant",params:{site_id:"117321"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200312}},{bidder:"districtm",params:{placementId:12940973}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_320x50"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Mobile_Top_Horizontal@320x50"}},{bidder:"grid",params:{uid:3271}},{bidder:"gumgum",params:{inSlot:68143}}]}),i.push({adunit:"Fantrax_Mobile_Bottom_Horizontal",code:"div-gpt-ad-Fantrax_Bottom_Horizontal",mediaTypes:{banner:{sizes:[[300,250]]}},bids:[{bidder:"appnexus",params:{placementId:"12339164"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158902",zoneId:"761788"}},{bidder:"ix",params:{size:[300,250],siteId:"227480"}},{bidder:"conversant",params:{site_id:"117322"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200313}},{bidder:"districtm",params:{placementId:12940974}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_300x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Mobile_Bottom_Horizontal@300x250"}},{bidder:"grid",params:{uid:3267}},{bidder:"gumgum",params:{inSlot:68139}}]}),i.push({adunit:"Fantrax_Mobile_Right_Sidebar_A",code:"div-gpt-ad-Fantrax_Right_Sidebar_A",mediaTypes:{banner:{sizes:v}},bids:[{bidder:"aol",params:{placement:"4700282",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"12339166"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158902",zoneId:"761798"}},{bidder:"ix",params:{size:[300,250],siteId:"227483"}},{bidder:"sovrn",params:{tagid:"532918"}},{bidder:"conversant",params:{site_id:"117323"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200314}},{bidder:"districtm",params:{placementId:12940975}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_300x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Mobile_Right_Sidebar_A@300x250"}},{bidder:"grid",params:{uid:3268}},{bidder:"gumgum",params:{inSlot:68140}}]}),i.push({adunit:"Fantrax_Mobile_Right_Sidebar_B",code:"div-gpt-ad-Fantrax_Right_Sidebar_B",mediaTypes:{banner:{sizes:v}},bids:[{bidder:"aol",params:{placement:"4700283",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"12339167"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158902",zoneId:"761800"}},{bidder:"ix",params:{size:[300,250],siteId:"227485"}},{bidder:"sovrn",params:{tagid:"532919"}},{bidder:"conversant",params:{site_id:"117324"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:200315}},{bidder:"districtm",params:{placementId:12940976}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_300x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Mobile_Right_Sidebar_B@300x250"}},{bidder:"grid",params:{uid:3269}},{bidder:"gumgum",params:{inSlot:68141}}]}),i.push({adunit:"Fantrax_Mobile_Right_Sidebar_C",code:"div-gpt-ad-Fantrax_Mobile_Right_Sidebar_C",mediaTypes:{banner:{sizes:[[300,250]]}},bids:[{bidder:"appnexus",params:{placementId:"12552577"}},{bidder:"ix",params:{size:[300,250],siteId:"239658"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158902",zoneId:"794186"}},{bidder:"sovrn",params:{tagid:"538774"}},{bidder:"conversant",params:{site_id:"120764"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:241497}},{bidder:"districtm",params:{placementId:13851459}},{bidder:"aol",params:{placement:"4935232",network:"11178.1"}},{bidder:"onemobile",params:{dcn:"2c9d2b4f016868c78238c9cb4839000e",pos:"fantrax_mw_300x250"}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Mobile_Right_Sidebar_C@300x250"}},{bidder:"grid",params:{uid:3270}},{bidder:"gumgum",params:{inSlot:68142}}]}),i.push({adunit:"Fantrax_Mobile_160x600_A",code:"div-gpt-ad-Fantrax_Mobile_160x600_A",mediaTypes:{banner:{sizes:[[160,600]]}},bids:[{bidder:"aol",params:{placement:"4802538",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"13082682"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158902",zoneId:"900932"}},{bidder:"ix",params:{size:[160,600],siteId:"262936"}},{bidder:"sovrn",params:{tagid:"561384"}},{bidder:"conversant",params:{site_id:"118113"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:156941}},{bidder:"districtm",params:{placementId:13182259}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Mobile_160x600_A@160x600"}},{bidder:"grid",params:{uid:3264}},{bidder:"gumgum",params:{inSlot:68136}}]}),i.push({adunit:"Fantrax_Mobile_160x600_B",code:"div-gpt-ad-Fantrax_Mobile_160x600_B",mediaTypes:{banner:{sizes:[[160,600]]}},bids:[{bidder:"aol",params:{placement:"4802539",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"13082683"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158902",zoneId:"900934"}},{bidder:"ix",params:{size:[160,600],siteId:"262937"}},{bidder:"sovrn",params:{tagid:"561385"}},{bidder:"conversant",params:{site_id:"118114"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:156942}},{bidder:"districtm",params:{placementId:13182261}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Mobile_160x600_B@160x600"}},{bidder:"grid",params:{uid:3265}},{bidder:"gumgum",params:{inSlot:68137}}]}),i.push({adunit:"Fantrax_Desktop_LiveScoring_300x250",code:"div-gpt-ad-Fantrax_Desktop_LiveScoring_300x250",mediaTypes:{banner:{sizes:[[300,250]]}},bids:[{bidder:"aol",params:{placement:"4964051",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"14019375"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158890",zoneId:"1067216"}},{bidder:"ix",params:{size:[300,250],siteId:"305071"}},{bidder:"sovrn",params:{tagid:"585552"}},{bidder:"conversant",params:{site_id:"121372"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:250681}},{bidder:"districtm",params:{placementId:14019384}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_LiveScoring_300x250@300x250"}},{bidder:"grid",params:{uid:3257}},{bidder:"gumgum",params:{inSlot:68129}}]}),i.push({adunit:"Fantrax_Desktop_Horizontal_Middle",code:"div-gpt-ad-Fantrax_Desktop_Horizontal_Middle",mediaTypes:{banner:{sizes:[[728,90]]}},bids:[{bidder:"aol",params:{placement:"4964052",network:"11178.1"}},{bidder:"appnexus",params:{placementId:"14019377"}},{bidder:"rubicon",params:{accountId:"16136",siteId:"158890",zoneId:"1067218"}},{bidder:"ix",params:{size:[728,90],siteId:"305072"}},{bidder:"sovrn",params:{tagid:"585571"}},{bidder:"conversant",params:{site_id:"121373"}},{bidder:"districtmDMX",params:{memberid:101272,dmxid:250682}},{bidder:"districtm",params:{placementId:14019385}},{bidder:"pubmatic",params:{publisherId:"158314",adSlot:"Fantrax_Desktop_Horizontal_Middle@728x90"}},{bidder:"grid",params:{uid:3255}},{bidder:"gumgum",params:{inSlot:68127}}]}),"true"==b("testbids"))for(var h=[{bidder:"rubicon",params:{accountId:1001,siteId:113932,zoneId:535510}}],y=i.length-1;y>=0;y--)for(var O=h.length-1;O>=0;O--)i[y].bids.push(h[O]);n.que.push((function(){n.setConfig({userSync:{syncEnabled:!0,syncsPerBidder:5,syncDelay:3e3,filterSettings:{iframe:{bidders:"*",filter:"include"},image:{bidders:"*",filter:"include"}},userIds:[{name:"pubCommonId",storage:{type:"html5",name:"_pubcid",expires:365}}]}}),n.setConfig({schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"ascendeum.com",sid:"asc93933",hp:1}]}}}),n.bidderSettings={standard:{adserverTargeting:[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(e){return e.cpm>=20?"20.00":e.pbHg}},{key:"hb_size",val:function(e){return e.size}}]},sekindo:{bidCpmAdjustment:function(e){return e*c}},aol:{bidCpmAdjustment:function(e){return e*c}},sovrn:{bidCpmAdjustment:function(e){return e*c}},sekindoUM:{bidCpmAdjustment:function(e){return e*c}},pulsepoint:{bidCpmAdjustment:function(e){return e*c}},districtmDMX:{bidCpmAdjustment:function(e){return e*c}},districtm:{bidCpmAdjustment:function(e){return e*c*.85}},rhythmone:{bidCpmAdjustment:function(e){return e*c}},rubicon:{bidCpmAdjustment:function(e){return e*c*.8}},brealtime:{bidCpmAdjustment:function(e){return e*c*.85}},ix:{bidCpmAdjustment:function(e){return e*c}},appnexus:{bidCpmAdjustment:function(e){return e*c}},openx:{bidCpmAdjustment:function(e){return e*c}},pubmatic:{bidCpmAdjustment:function(e){return e*c*.8}},gumgum:{bidCpmAdjustment:function(e){return e*c}},grid:{bidCpmAdjustment:function(e){return e*c}}}})),n.que.push((function(){var e=n.setTargetingForGPTAsync;n.setTargetingForGPTAsync=function(){apstag.setDisplayBids(),e()}})),n.requestAds=function(e,t,r){o=[];var c=[];if((a=e).length>0)for(var d=0,s=a.length;d<s;d++)for(var u=0,f=i.length;u<f;u++)a[d].adunit!=i[u].adunit||(i[u].code=a[d].code,o.push(i[u]),c.push({slotID:a[d].code,slotName:a[d].network+"/"+a[d].adunit,sizes:a[d].size}));else o=i;apstag.fetchBids({slots:c,timeout:r},(function(e){console.log("A9 bids are back: ",e)})),n.que.push((function(){n.setConfig({s2sConfig:{accountId:"88d34d10-589a-4d82-875c-1e22123701e5",enabled:!0,bidders:["districtm","conversant"],timeout:1e3,adapter:"prebidServer",endpoint:"https://prebid.adnxs.com/pbs/v1/auction"}});for(var e=[],t=0,i=o.length;t<i;t++)e.push(o[t].code);n.requestBids({timeout:r,adUnits:o,bidsBackHandler:function(e){}})}))}},function(e,t,r){r(128);var n=r(61);e.exports=n("Array","find")},function(e,t,r){"use strict";var n=r(16),i=r(72).find,o=r(60),a="find",c=!0;a in[]&&Array(1).find((function(){c=!1})),n({target:"Array",proto:!0,forced:c},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},function(e,t,r){var n=r(34),i=r(130),o=r(48),a=r(55),c=r(71),d=r(32),s=r(95),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=a(e),t=c(t,!0),s)try{return u(e,t)}catch(e){}if(d(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(30),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r==s||r!=d&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},d=o.NATIVE="N",s=o.POLYFILL="P";e.exports=o},function(e,t,r){var n=r(31),i=r(133),o=r(23)("species");e.exports=function(e,t){var r;return i(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n=r(56);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(28),i=r(33);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n,i,o=r(28),a=r(136),c=o.process,d=c&&c.versions,s=d&&d.v8;s?i=(n=s.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},function(e,t,r){var n=r(27);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n=r(98);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){r(139);var n=r(61);e.exports=n("Array","includes")},function(e,t,r){"use strict";var n=r(16),i=r(99).includes,o=r(60);n({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,r){var n=r(73),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},function(e,t,r){r(142),r(157),r(109),r(159);var n=r(49);e.exports=n.Set},function(e,t,r){"use strict";var n=r(143),i=r(148);e.exports=n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,r){"use strict";var n=r(16),i=r(28),o=r(101),a=r(30),c=r(33),d=r(21),s=r(77),u=r(31),f=r(65),l=r(35).f,p=r(72).forEach,b=r(34),g=r(50),m=g.set,v=g.getterFor;e.exports=function(e,t,r){var g,h=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),O=h?"set":"add",S=i[e],j=S&&S.prototype,I={};if(b&&"function"==typeof S&&(y||j.forEach&&!a((function(){(new S).entries().next()})))){g=t((function(t,r){m(s(t,g,e),{type:e,collection:new S}),null!=r&&d(r,t[O],{that:t,AS_ENTRIES:h})}));var A=v(e);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in j)||y&&"clear"==e||c(g.prototype,e,(function(r,n){var i=A(this).collection;if(!t&&y&&!u(r))return"get"==e&&void 0;var o=i[e](0===r?0:r,n);return t?this:o}))})),y||l(g.prototype,"size",{configurable:!0,get:function(){return A(this).collection.size}})}else g=r.getConstructor(t,e,h,O),o.REQUIRED=!0;return f(g,e,!1,!0),I[e]=g,n({global:!0,forced:!0},I),y||r.setStrong(g,e,h),g}},function(e,t,r){var n=r(30);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){"use strict";var n=r(76),i=r(64);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,r){var n=r(28),i=r(147),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,r){var n=r(74),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},function(e,t,r){"use strict";var n=r(35).f,i=r(79),o=r(105),a=r(26),c=r(77),d=r(21),s=r(81),u=r(156),f=r(34),l=r(101).fastKey,p=r(50),b=p.set,g=p.getterFor;e.exports={getConstructor:function(e,t,r,s){var u=e((function(e,n){c(e,u,t),b(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=n&&d(n,e[s],{that:e,AS_ENTRIES:r})})),p=g(t),m=function(e,t,r){var n,i,o=p(e),a=v(e,t);return a?a.value=r:(o.last=a={index:i=l(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var r,n=p(e),i=l(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return o(u.prototype,{clear:function(){for(var e=p(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,r=p(t),n=v(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),f?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=p(this),n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,r?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&n(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",i=g(t),o=g(n);s(e,t,(function(e,t){b(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(t)}}},function(e,t,r){var n=r(34),i=r(35),o=r(17),a=r(150);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),c=n.length,d=0;c>d;)i.f(e,r=n[d++],t[r]);return e}},function(e,t,r){var n=r(151),i=r(104);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(32),i=r(55),o=r(99).indexOf,a=r(62);e.exports=function(e,t){var r,c=i(e),d=0,s=[];for(r in c)!n(a,r)&&n(c,r)&&s.push(r);for(;t.length>d;)n(c,r=t[d++])&&(~o(s,r)||s.push(r));return s}},function(e,t,r){var n=r(27);e.exports=n("document","documentElement")},function(e,t,r){var n=r(30);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(17),i=r(155);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},function(e,t,r){var n=r(31);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){"use strict";var n=r(27),i=r(35),o=r(23),a=r(34),c=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[c]&&r(t,c,{configurable:!0,get:function(){return this}})}},function(e,t){},function(e,t,r){var n=r(73),i=r(57),o=function(e){return function(t,r){var o,a,c=String(i(t)),d=n(r),s=c.length;return d<0||d>=s?e?"":void 0:(o=c.charCodeAt(d))<55296||o>56319||d+1===s||(a=c.charCodeAt(d+1))<56320||a>57343?e?c.charAt(d):o:e?c.slice(d,d+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,r){r(110);var n=r(160),i=r(28),o=r(64),a=r(33),c=r(45),d=r(23)("toStringTag");for(var s in n){var u=i[s],f=u&&u.prototype;f&&o(f)!==d&&a(f,d,s),c[s]=c.Array}},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}},function(e,t,r){r(16)({target:"Set",stat:!0},{from:r(162)})},function(e,t,r){"use strict";var n=r(24),i=r(26),o=r(21);e.exports=function(e){var t,r,a,c,d=arguments.length,s=d>1?arguments[1]:void 0;return n(this),(t=void 0!==s)&&n(s),null==e?new this:(r=[],t?(a=0,c=i(s,d>2?arguments[2]:void 0,2),o(e,(function(e){r.push(c(e,a++))}))):o(e,r.push,{that:r}),new this(r))}},function(e,t,r){r(16)({target:"Set",stat:!0},{of:r(164)})},function(e,t,r){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(166);n({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return o.apply(this,arguments)}})},function(e,t,r){"use strict";var n=r(17),i=r(24);e.exports=function(){for(var e=n(this),t=i(e.add),r=0,o=arguments.length;r<o;r++)t.call(e,arguments[r]);return e}},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(168);n({target:"Set",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},function(e,t,r){"use strict";var n=r(17),i=r(24);e.exports=function(){for(var e,t=n(this),r=i(t.delete),o=!0,a=0,c=arguments.length;a<c;a++)e=r.call(t,arguments[a]),o=o&&e;return!!o}},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(17),a=r(26),c=r(38),d=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{every:function(e){var t=o(this),r=c(t),n=a(e,arguments.length>1?arguments[1]:void 0,3);return!d(r,(function(e,r){if(!n(e,e,t))return r()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(27),a=r(17),c=r(24),d=r(46),s=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=a(this),r=new(d(t,o("Set")))(t),n=c(r.delete);return s(e,(function(e){n.call(r,e)})),r}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(27),a=r(17),c=r(24),d=r(26),s=r(46),u=r(38),f=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{filter:function(e){var t=a(this),r=u(t),n=d(e,arguments.length>1?arguments[1]:void 0,3),i=new(s(t,o("Set"))),l=c(i.add);return f(r,(function(e){n(e,e,t)&&l.call(i,e)}),{IS_ITERATOR:!0}),i}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(17),a=r(26),c=r(38),d=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{find:function(e){var t=o(this),r=c(t),n=a(e,arguments.length>1?arguments[1]:void 0,3);return d(r,(function(e,r){if(n(e,e,t))return r(e)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(27),a=r(17),c=r(24),d=r(46),s=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=a(this),r=new(d(t,o("Set"))),n=c(t.has),i=c(r.add);return s(e,(function(e){n.call(t,e)&&i.call(r,e)})),r}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(17),a=r(24),c=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:function(e){var t=o(this),r=a(t.has);return!c(e,(function(e,n){if(!0===r.call(t,e))return n()}),{INTERRUPTED:!0}).stopped}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(27),a=r(17),c=r(24),d=r(82),s=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=d(this),r=a(e),n=r.has;return"function"!=typeof n&&(r=new(o("Set"))(e),n=c(r.has)),!s(t,(function(e,t){if(!1===n.call(r,e))return t()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(17),a=r(24),c=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:function(e){var t=o(this),r=a(t.has);return!c(e,(function(e,n){if(!1===r.call(t,e))return n()}),{INTERRUPTED:!0}).stopped}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(17),a=r(38),c=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=o(this),r=a(t),n=void 0===e?",":String(e),i=[];return c(r,i.push,{that:i,IS_ITERATOR:!0}),i.join(n)}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(27),a=r(17),c=r(24),d=r(26),s=r(46),u=r(38),f=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{map:function(e){var t=a(this),r=u(t),n=d(e,arguments.length>1?arguments[1]:void 0,3),i=new(s(t,o("Set"))),l=c(i.add);return f(r,(function(e){l.call(i,n(e,e,t))}),{IS_ITERATOR:!0}),i}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(17),a=r(24),c=r(38),d=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(e){var t=o(this),r=c(t),n=arguments.length<2,i=n?void 0:arguments[1];if(a(e),d(r,(function(r){n?(n=!1,i=r):i=e(i,r,r,t)}),{IS_ITERATOR:!0}),n)throw TypeError("Reduce of empty set with no initial value");return i}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(17),a=r(26),c=r(38),d=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{some:function(e){var t=o(this),r=c(t),n=a(e,arguments.length>1?arguments[1]:void 0,3);return d(r,(function(e,r){if(n(e,e,t))return r()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(27),a=r(17),c=r(24),d=r(46),s=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=a(this),r=new(d(t,o("Set")))(t),n=c(r.delete),i=c(r.add);return s(e,(function(e){n.call(r,e)||i.call(r,e)})),r}})},function(e,t,r){"use strict";var n=r(16),i=r(18),o=r(27),a=r(17),c=r(24),d=r(46),s=r(21);n({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=a(this),r=new(d(t,o("Set")))(t);return s(e,c(r.add),{that:r}),r}})},function(e,t,r){r(109),r(184);var n=r(49);e.exports=n.Array.from},function(e,t,r){var n=r(16),i=r(185);n({target:"Array",stat:!0,forced:!r(188)((function(e){Array.from(e)}))},{from:i})},function(e,t,r){"use strict";var n=r(26),i=r(58),o=r(186),a=r(102),c=r(59),d=r(187),s=r(63);e.exports=function(e){var t,r,u,f,l,p,b=i(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,h=void 0!==v,y=s(b),O=0;if(h&&(v=n(v,m>2?arguments[2]:void 0,2)),null==y||g==Array&&a(y))for(r=new g(t=c(b.length));t>O;O++)p=h?v(b[O],O):b[O],d(r,O,p);else for(l=(f=y.call(b)).next,r=new g;!(u=l.call(f)).done;O++)p=h?o(f,v,[u.value,O],!0):u.value,d(r,O,p);return r.length=O,r}},function(e,t,r){var n=r(17),i=r(103);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){throw i(e),t}}},function(e,t,r){"use strict";var n=r(71),i=r(35),o=r(48);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},function(e,t,r){var n=r(23)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},function(e,t){e.exports=function e(t){var r=Array.isArray(t)?[]:{};for(var n in t){var i=t[n];r[n]=i&&"object"==typeof i?e(i):i}return r}},function(e,t,r){"use strict";t.a=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:i;return e===i?r:e}},function(e,t,r){"use strict";t.a=function(e,t,r){t.split&&(t=t.split("."));for(var n,i=0,o=t.length,a=e;i<o;++i)n=a[t[i]],a=a[t[i]]=i===o-1?r:null!=n?n:!~t[i+1].indexOf(".")&&+t[i+1]>-1?[]:{}}},function(e,t,r){"use strict";t.a=function(){window.addEventListener("message",h,!1)};var n=r(10),i=r.n(n),o=r(39),a=r(5),c=r.n(a),d=r(0),s=r(22),u=r(11),f=r.n(u),l=r(13),p=r(12),b=r.n(p),g=r(3),m=c.a.EVENTS.BID_WON,v=c.a.EVENTS.STALE_RENDER;function h(e){var t=e.message?"message":"data",r={};try{r=JSON.parse(e[t])}catch(e){return}if(r&&r.adId){var n=f()(s.a.getBidsReceived(),(function(e){return e.adId===r.adId}));if(n&&"Prebid Request"===r.message){if(n.status===c.a.BID_STATUS.RENDERED&&(Object(d.logWarn)("Ad id ".concat(n.adId," has been rendered before")),i.a.emit(v,n),Object(d.deepAccess)(g.b.getConfig("auctionOptions"),"suppressStaleRender")))return;!function(e,t){var r=e.adId,n=e.ad,i=e.adUrl,o=e.width,a=e.height,c=e.renderer,s=e.cpm;Object(l.c)(c)?Object(l.b)(c,e):r&&(y(e),t.source.postMessage(JSON.stringify({message:"Prebid Response",ad:Object(d.replaceAuctionPrice)(n,s),adUrl:Object(d.replaceAuctionPrice)(i,s),adId:r,width:o,height:a}),t.origin))}(n,e),s.a.addWinningBid(n),i.a.emit(m,n)}if(n&&"Prebid Native"===r.message)if("assetRequest"===r.action){var a=Object(o.d)(r,n);e.source.postMessage(JSON.stringify(a),e.origin)}else if("allAssetRequest"===r.action){var u=Object(o.c)(r,n);e.source.postMessage(JSON.stringify(u),e.origin)}else if("resizeNativeHeight"===r.action)n.height=r.height,n.width=r.width,y(n);else{if("click"===Object(o.b)(r,n))return;s.a.addWinningBid(n),i.a.emit(m,n)}}}function y(e){var t=e.adId,r=e.adUnitCode,n=e.width,i=e.height;["div","iframe"].forEach((function(e){var o=function(e){var n=function(e,t){return Object(d.isGptPubadsDefined)()?function(e){var t=f()(window.googletag.pubads().getSlots(),(function(t){return f()(t.getTargetingKeys(),(function(r){return b()(t.getTargeting(r),e)}))}));return t?t.getSlotElementId():null}(e):Object(d.isApnGetTagDefined)()?function(e){var t=window.apntag.getTag(e);return t&&t.targetId}(t):t}(t,r),i=document.getElementById(n);return i&&i.querySelector(e)}(e+':not([style*="display: none"])');if(o){var a=o.style;a.width=n+"px",a.height=i+"px"}else Object(d.logWarn)("Unable to locate matching page element for adUnitCode ".concat(r,". Can't resize it to ad's dimensions. Please review setup."))}))}},function(e,t){
/*
* @license MIT
* Fun Hooks v0.9.10
* (c) @snapwich
*/
c.SYNC=1,c.ASYNC=2,c.QUEUE=4;var r=Object.freeze({useProxy:!0,ready:0}),n=new WeakMap,i="2,1,0"===[1].reduce((function(e,t,r){return[e,t,r]}),2).toString()?Array.prototype.reduce:function(e,t){var r,n=Object(this),i=n.length>>>0,o=0;if(t)r=t;else{for(;o<i&&!(o in n);)o++;r=n[o++]}for(;o<i;)o in n&&(r=e(r,n[o],o,n)),o++;return r};function o(e,t){return Array.prototype.slice.call(e,t)}var a=Object.assign||function(e){return i.call(o(arguments,1),(function(e,t){return t&&Object.keys(t).forEach((function(r){e[r]=t[r]})),e}),e)};function c(e){var t,d={},s=[];function u(e,t){return"function"==typeof e?b.call(null,"sync",e,t):"string"==typeof e&&"function"==typeof t?b.apply(null,arguments):"object"==typeof e?f.apply(null,arguments):void 0}function f(e,t,r){var n=!0;void 0===t&&(t=Object.getOwnPropertyNames(e),n=!1);var i={},o=["constructor"];do{(t=t.filter((function(t){return!("function"!=typeof e[t]||-1!==o.indexOf(t)||t.match(/^_/))}))).forEach((function(t){var n=t.split(":"),o=n[0],a=n[1]||"sync";if(!i[o]){var c=e[o];i[o]=e[o]=b(a,c,r?[r,o]:void 0)}})),e=Object.getPrototypeOf(e)}while(n&&e);return i}function l(e){var r=Array.isArray(e)?e:e.split(".");return i.call(r,(function(n,i,o){var a=n[i],c=!1;return a||(o===r.length-1?(t||s.push((function(){c||console.warn("fun-hooks: referenced '"+e+"' but it was never created")})),n[i]=p((function(e){n[i]=e,c=!0}))):n[i]={})}),d)}function p(e){var t=[],r=[],i=function(){},o={before:function(e,r){return d.call(this,t,"before",e,r)},after:function(e,t){return d.call(this,r,"after",e,t)},getHooks:function(e){var n=t.concat(r);"object"==typeof e&&(n=n.filter((function(t){return Object.keys(e).every((function(r){return t[r]===e[r]}))})));try{a(n,{remove:function(){return n.forEach((function(e){e.remove()})),this}})}catch(e){console.error("error adding `remove` to array, did you modify Array.prototype?")}return n},removeAll:function(){return this.getHooks().remove()}},c={install:function(n,o,a){this.type=n,i=a,a(t,r),e&&e(o)}};return n.set(o.after,c),o;function d(e,n,o,a){var c={hook:o,type:n,priority:a||10,remove:function(){var n=e.indexOf(c);-1!==n&&(e.splice(n,1),i(t,r))}};return e.push(c),e.sort((function(e,t){return t.priority-e.priority})),i(t,r),this}}function b(r,i,d){var u=i.after&&n.get(i.after);if(u){if(u.type!==r)throw"fun-hooks: recreated hookable with different type";return i}var f,b,g=d?l(d):p(),m={get:function(e,t){return g[t]||Reflect.get.apply(Reflect,arguments)}};return t||s.push(v),e.useProxy&&"function"==typeof Proxy&&Proxy.revocable?b=new Proxy(i,m):a(b=function(){return m.apply?m.apply(i,this,o(arguments)):i.apply(this,arguments)},g),n.get(b.after).install(r,b,(function(e,t){var n,i=[];e.length||t.length?(e.forEach(a),n=i.push(void 0)-1,t.forEach(a),f=function(e,t,a){var c,d=0,s="async"===r&&"function"==typeof a[a.length-1]&&a.pop();function u(e){"sync"===r?c=e:s&&s.apply(null,arguments)}function f(e){if(i[d]){var n=o(arguments);return f.bail=u,n.unshift(f),i[d++].apply(t,n)}"sync"===r?c=e:s&&s.apply(null,arguments)}return i[n]=function(){var n=o(arguments,1);"async"===r&&s&&(delete f.bail,n.push(f));var i=e.apply(t,n);"sync"===r&&f(i)},f.apply(null,a),c}):f=void 0;function a(e){i.push(e.hook)}v()})),b;function v(){!t&&("sync"!==r||e.ready&c.SYNC)&&("async"!==r||e.ready&c.ASYNC)?"sync"!==r&&e.ready&c.QUEUE?m.apply=function(){var e=arguments;s.push((function(){b.apply(e[1],e[2])}))}:m.apply=function(){throw"fun-hooks: hooked function not ready"}:m.apply=f}}return(e=a({},r,e)).ready?u.ready=function(){t=!0,function(e){for(var t;t=e.shift();)t()}(s)}:t=!0,u.get=l,u}e.exports=c},function(e,t,r){"use strict";t.a=function(e){var t;try{e=e||window.sessionStorage,t=JSON.parse(e.getItem(d))}catch(e){}t&&p(t,!0)};var n,i,o=r(3),a=r(0),c=r(29),d="pbjs:debugging";function s(e){Object(a.logMessage)("DEBUG: "+e)}function u(e){Object(a.logWarn)("DEBUG: "+e)}function f(e){n=v.bind(e),c.c.before(n,5),i=h.bind(e),c.e.before(i,5)}function l(){c.c.getHooks({hook:n}).remove(),c.e.getHooks({hook:i}).remove()}function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.b.setConfig({debug:!0}),l(),f(e),s("bidder overrides enabled".concat(t?" from session":""))}function b(e,t,r){return!(!e.bidder||e.bidder===t)||!(!e.adUnitCode||e.adUnitCode===r)}function g(e,t){return Array.isArray(e)&&-1===e.indexOf(t)}function m(e,t,r){return Object.keys(e).filter((function(e){return-1===["adUnitCode","bidder"].indexOf(e)})).reduce((function(t,n){return s("bidder overrides changed '".concat(t.adUnitCode,"/").concat(t.bidderCode,"' ").concat(r,".").concat(n," from '").concat(t[n],".js' to '").concat(e[n],"'")),t[n]=e[n],t}),t)}function v(e,t,r){var n=this;g(n.bidders,r.bidderCode)?u("bidder '".concat(r.bidderCode,"' excluded from auction by bidder overrides")):(Array.isArray(n.bids)&&n.bids.forEach((function(e){b(e,r.bidderCode,t)||m(e,r,"bidder")})),e(t,r))}function h(e,t){var r=this,n=t.filter((function(e){return!g(r.bidders,e.bidderCode)||(u("bidRequest '".concat(e.bidderCode,"' excluded from auction by bidder overrides")),!1)}));Array.isArray(r.bidRequests)&&n.forEach((function(e){r.bidRequests.forEach((function(t){e.bids.forEach((function(r){b(t,e.bidderCode,r.adUnitCode)||m(t,r,"bidRequest")}))}))})),e(n)}function y(e){if(e.enabled){try{window.sessionStorage.setItem(d,JSON.stringify(e))}catch(e){}p(e)}else{l(),s("bidder overrides disabled");try{window.sessionStorage.removeItem(d)}catch(e){}}}o.b.getConfig("debugging",(function(e){return y(e.debugging)}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){r(245);var n=r(61);e.exports=n("Array","findIndex")},function(e,t,r){"use strict";var n=r(16),i=r(72).findIndex,o=r(60),a="findIndex",c=!0;a in[]&&Array(1).findIndex((function(){c=!1})),n({target:"Array",proto:!0,forced:c},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){r(408);var n=r(61);e.exports=n("String","includes")},function(e,t,r){"use strict";var n=r(16),i=r(409),o=r(57);n({target:"String",proto:!0,forced:!r(411)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(410);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var n=r(31),i=r(56),o=r(23)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,r){var n=r(23)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){r(491);var n=r(49);e.exports=n.URLSearchParams},function(e,t,r){"use strict";r(110);var n=r(16),i=r(27),o=r(492),a=r(80),c=r(105),d=r(65),s=r(106),u=r(50),f=r(77),l=r(32),p=r(26),b=r(64),g=r(17),m=r(31),v=r(79),h=r(48),y=r(82),O=r(63),S=r(23),j=i("fetch"),I=i("Headers"),A=S("iterator"),E="URLSearchParams",T="URLSearchParamsIterator",_=u.set,w=u.getterFor(E),x=u.getterFor(T),C=/\+/g,R=Array(4),B=function(e){return R[e-1]||(R[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},D=function(e){try{return decodeURIComponent(e)}catch(t){return e}},U=function(e){var t=e.replace(C," "),r=4;try{return decodeURIComponent(t)}catch(e){for(;r;)t=t.replace(B(r--),D);return t}},k=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},P=function(e){return N[e]},M=function(e){return encodeURIComponent(e).replace(k,P)},z=function(e,t){if(t)for(var r,n,i=t.split("&"),o=0;o<i.length;)(r=i[o++]).length&&(n=r.split("="),e.push({key:U(n.shift()),value:U(n.join("="))}))},q=function(e){this.entries.length=0,z(this.entries,e)},F=function(e,t){if(e<t)throw TypeError("Not enough arguments")},G=s((function(e,t){_(this,{type:T,iterator:y(w(e).entries),kind:t})}),"Iterator",(function(){var e=x(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r})),W=function(){f(this,W,E);var e,t,r,n,i,o,a,c,d,s=arguments.length>0?arguments[0]:void 0,u=this,p=[];if(_(u,{type:E,entries:p,updateURL:function(){},updateSearchParams:q}),void 0!==s)if(m(s))if("function"==typeof(e=O(s)))for(r=(t=e.call(s)).next;!(n=r.call(t)).done;){if((a=(o=(i=y(g(n.value))).next).call(i)).done||(c=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:c.value+""})}else for(d in s)l(s,d)&&p.push({key:d,value:s[d]+""});else z(p,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},L=W.prototype;c(L,{append:function(e,t){F(arguments.length,2);var r=w(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){F(arguments.length,1);for(var t=w(this),r=t.entries,n=e+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;t.updateURL()},get:function(e){F(arguments.length,1);for(var t=w(this).entries,r=e+"",n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){F(arguments.length,1);for(var t=w(this).entries,r=e+"",n=[],i=0;i<t.length;i++)t[i].key===r&&n.push(t[i].value);return n},has:function(e){F(arguments.length,1);for(var t=w(this).entries,r=e+"",n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){F(arguments.length,1);for(var r,n=w(this),i=n.entries,o=!1,a=e+"",c=t+"",d=0;d<i.length;d++)(r=i[d]).key===a&&(o?i.splice(d--,1):(o=!0,r.value=c));o||i.push({key:a,value:c}),n.updateURL()},sort:function(){var e,t,r,n=w(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(e=o[r],t=0;t<r;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===r&&i.push(e)}n.updateURL()},forEach:function(e){for(var t,r=w(this).entries,n=p(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new G(this,"keys")},values:function(){return new G(this,"values")},entries:function(){return new G(this,"entries")}},{enumerable:!0}),a(L,A,L.entries),a(L,"toString",(function(){for(var e,t=w(this).entries,r=[],n=0;n<t.length;)e=t[n++],r.push(M(e.key)+"="+M(e.value));return r.join("&")}),{enumerable:!0}),d(W,E),n({global:!0,forced:!o},{URLSearchParams:W}),o||"function"!=typeof j||"function"!=typeof I||n({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,r,n,i=[e];return arguments.length>1&&(m(t=arguments[1])&&(r=t.body,b(r)===E&&((n=t.headers?new I(t.headers):new I).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:h(0,String(r)),headers:h(0,n)}))),i.push(t)),j.apply(this,i)}}),e.exports={URLSearchParams:W,getState:w}},function(e,t,r){var n=r(30),i=r(23),o=r(18),a=i("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))}]);
pbjsChunk([356],{306:function(e,t,r){e.exports=r(307)},307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"spec",(function(){return k}));var n,i,a,o=r(0),s=r(1),c=r(2);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var l="aol",m="verizon",f="onemobile",b="onedisplay",h={GET:"display-get"},v={GET:"mobile-get",POST:"mobile-post"},g={TAG:"iframe",TYPE:"iframe"},y={TAG:"img",TYPE:"image"},O=["adserver.org","criteo.com","id5-sync.com","intentiq.com","liveintent.com","quantcast.com","verizonmedia.com","liveramp.com","yahoo.com"],P=C(n||(n=p(["","/pubapi/3.0/","/","/","/","/ADTECH;v=2;cmd=bid;cors=yes;alias=",";misc=",";",""])),"host","network","placement","pageid","sizeid","alias","misc","dynamicParams"),j=C(i||(i=p(["","/bidRequest?"])),"host"),E=C(a||(a=p(["dcn=","&pos=","&cmd=bid",""])),"dcn","pos","dynamicParams"),S={us:"adserver-us.adtech.advertising.com",eu:"adserver-eu.adtech.advertising.com",as:"adserver-as.adtech.advertising.com"},T="https",x=1;function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=n[n.length-1]||{},s=[e[0]];return r.forEach((function(t,r){var i=Object(o.isInteger)(t)?n[t]:a[t];s.push(i,e[r+1])})),s.join("")}}function I(e){return e===l||e===m||e===f}function w(e){if(I(e.bidder)&&e.params.id&&e.params.imp&&e.params.imp[0]){var t=e.params.imp[0];return t.id&&t.tagid&&t.banner&&t.banner.w&&t.banner.h}}function R(e){return I(e.bidder)&&e.params.dcn&&e.params.pos}function U(e){return((t=e.bidder)===l||t===m||t===b)&&e.params.placement&&e.params.network;var t}function M(e){return e.userIdAsEids.filter((function(e){return-1!==O.indexOf(e.source)}))}var k={code:l,gvlid:25,aliases:[f,b,m],supportedMediaTypes:[c.b],isBidRequestValid:function(e){return U(e)||function(e){return R(e)||w(e)}(e)},buildRequests:function(e,t){var r=this,n={};return t&&(n.gdpr=t.gdprConsent,n.uspConsent=t.uspConsent),e.map((function(e){var t=function(e){return R(e)?v.GET:w(e)?v.POST:U(e)?h.GET:void 0}(e);if(t)return r.formatBidRequest(t,e,n)}))},interpretResponse:function(e,t){var r=e.body;if(r){var n=this._parseBidResponse(r,t);if(n)return n}else Object(o.logError)("Empty bid response",t.bidderCode,r)},getUserSyncs:function(e,t){var r=!Object(o.isEmpty)(t)&&t[0].body;return r&&r.ext&&r.ext.pixels?this.parsePixelItems(r.ext.pixels):[]},formatBidRequest:function(e,t,r){var n;switch(e){case h.GET:n={url:this.buildMarketplaceUrl(t,r),method:"GET",ttl:60};break;case v.GET:n={url:this.buildOneMobileGetUrl(t,r),method:"GET",ttl:3600};break;case v.POST:n={url:this.buildOneMobileBaseUrl(t),method:"POST",ttl:3600,data:this.buildOpenRtbRequestData(t,r),options:{contentType:"application/json",customHeaders:{"x-openrtb-version":"2.2"}}}}return n.bidderCode=t.bidder,n.bidId=t.bidId,n.userSyncOn=t.params.userSyncOn,n},buildMarketplaceUrl:function(e,t){var r,n=e.params,i=n.server,a=n.region||"us";return S.hasOwnProperty(a)||(Object(o.logWarn)("Unknown region '".concat(a,"' for AOL bidder.")),a="us"),r=i||S[a],n.region=a,this.applyProtocol(P({host:r,network:n.network,placement:parseInt(n.placement),pageid:n.pageId||0,sizeid:n.sizeId||0,alias:n.alias||Object(o.getUniqueIdentifierStr)(),misc:(new Date).getTime(),dynamicParams:this.formatMarketplaceDynamicParams(n,t)}))},buildOneMobileGetUrl:function(e,t){var r=e.params,n=r.dcn,i=r.pos,a=r.ext;"object"===d(e.userId)&&(a=a||{},M(e).forEach((function(e){a["eid"+e.source]=e.uids[0].id})));var o=this.buildOneMobileBaseUrl(e);if(n&&i){var s=this.formatOneMobileDynamicParams(a,t);o+=E({dcn:n,pos:i,dynamicParams:s})}return o},buildOneMobileBaseUrl:function(e){return this.applyProtocol(j({host:e.params.host||"c2shb.ssp.yahoo.com"}))},applyProtocol:function(e){return/^https?:\/\//i.test(e)?e:0===e.indexOf("//")?"".concat(T,":").concat(e):"".concat(T,"://").concat(e)},formatMarketplaceDynamicParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};u(r,this.formatKeyValues(e.keyValues)),u(r,this.formatConsentData(t));var n="";return Object(o._each)(r,(function(e,t){n+="".concat(t,"=").concat(encodeURIComponent(e),";")})),n},formatOneMobileDynamicParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.isSecureProtocol()&&(e.secure=x),u(e,this.formatConsentData(t));var r="";return Object(o._each)(e,(function(e,t){r+="&".concat(t,"=").concat(encodeURIComponent(e))})),r},buildOpenRtbRequestData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={id:e.params.id,imp:e.params.imp};if(this.isEUConsentRequired(t)&&(Object(o.deepSetValue)(r,"regs.ext.gdpr",x),t.gdpr.consentString&&Object(o.deepSetValue)(r,"user.ext.consent",t.gdpr.consentString)),t.uspConsent&&Object(o.deepSetValue)(r,"regs.ext.us_privacy",t.uspConsent),"object"===d(e.userId)){r.user=r.user||{},r.user.ext=r.user.ext||{};var n=M(e);n.length>0&&(r.user.ext.eids=n)}return r},isEUConsentRequired:function(e){return!!(e&&e.gdpr&&e.gdpr.gdprApplies)},formatKeyValues:function(e){var t={};return Object(o._each)(e,(function(e,r){t["kv".concat(r)]=e})),t},formatConsentData:function(e){var t={};return this.isEUConsentRequired(e)&&(t.gdpr=x,e.gdpr.consentString&&(t.euconsent=e.gdpr.consentString)),e.uspConsent&&(t.us_privacy=e.uspConsent),t},parsePixelItems:function(e){var t=/\w*(?=\s)/,r=/src=("|')(.*?)\1/,n=[];if(e){var i=e.match(/(img|iframe)[\s\S]*?src\s*=\s*("|')(.*?)\2/gi);i&&i.forEach((function(e){var i=e.match(t)[0],a=e.match(r)[2];i&&a&&n.push({type:i===y.TAG?y.TYPE:g.TYPE,url:a})}))}return n},_parseBidResponse:function(e,t){var r,n;try{r=e.seatbid[0].bid[0]}catch(e){return}if(r.ext&&r.ext.encp)n=r.ext.encp;else if(null===(n=r.price)||isNaN(n))return void Object(o.logError)("Invalid price in bid response",l,r);return{bidderCode:t.bidderCode,requestId:t.bidId,ad:r.adm,cpm:n,width:r.w,height:r.h,creativeId:r.crid||0,pubapiId:e.id,currency:e.cur||"USD",dealId:r.dealid,netRevenue:!0,meta:{advertiserDomains:r&&r.adomain?r.adomain:[]},ttl:t.ttl}},isOneMobileBidder:I,isSecureProtocol:function(){return"https:"===document.location.protocol}};Object(s.registerBidder)(k),window.pbjs.installedModules.push("aolBidAdapter")}},[306]);
pbjsChunk([353],{316:function(e,r,t){e.exports=t(317)},317:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"spec",(function(){return E}));var a=t(0),n=t(13),i=t(3),s=t(1),o=t(2),d=t(22),c=t(11),p=t.n(c),u=t(12),l=t.n(u),m=t(19),f=t(7);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return(v=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function y(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return g(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,r)}(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 g(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}var h="appnexus",_="https://ib.adnxs.com/ut/v3/prebid",k="https://ib.adnxs-simple.com/ut/v3/prebid",O=["id","minduration","maxduration","skippable","playback_method","frameworks","context","skipoffset"],j=["minduration","maxduration","skip","skipafter","playbackmethod","api"],I=["age","externalUid","segments","gender","dnt","language"],A=["geo","device_id"],w=["enabled","dongle","member_id","debug_timeout"],x={playback_method:{unknown:0,auto_play_sound_on:1,auto_play_sound_off:2,click_to_play:3,mouse_over:4,auto_play_sound_unknown:5},context:{unknown:0,pre_roll:1,mid_roll:2,post_roll:3,outstream:4,"in-banner":5}},C={body:"description",body2:"desc2",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0}},icon:{serverName:"icon",requiredParams:{required:!0}},sponsoredBy:"sponsored_by",privacyLink:"privacy_link",salePrice:"saleprice",displayUrl:"displayurl"},S=/\/\/cdn\.adnxs\.com\/v|\/\/cdn\.adnxs\-simple\.com\/v/,T=Object(f.b)(32,h),E={code:h,gvlid:32,aliases:[{code:"appnexusAst",gvlid:32},{code:"brealtime"},{code:"emxdigital",gvlid:183},{code:"pagescience"},{code:"defymedia"},{code:"gourmetads"},{code:"matomy"},{code:"featureforward"},{code:"oftmedia"},{code:"districtm",gvlid:144},{code:"adasta"},{code:"beintoo",gvlid:618}],supportedMediaTypes:[o.b,o.d,o.c],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.member&&e.params.invCode)},buildRequests:function(e,r){var t=e.map(q),n=p()(e,z),s={};!0===i.b.getConfig("coppa")&&(s={coppa:!0}),n&&Object.keys(n.params.user).filter((function(e){return l()(I,e)})).forEach((function(e){var r=Object(a.convertCamelToUnderscore)(e);if("segments"===e&&Object(a.isArray)(n.params.user[e])){var t=[];n.params.user[e].forEach((function(e){Object(a.isNumber)(e)?t.push({id:e}):Object(a.isPlainObject)(e)&&t.push(e)})),s[r]=t}else"segments"!==e&&(s[r]=n.params.user[e])}));var o,d=p()(e,B);d&&d.params&&d.params.app&&(o={},Object.keys(d.params.app).filter((function(e){return l()(A,e)})).forEach((function(e){return o[e]=d.params.app[e]})));var c,u=p()(e,F);u&&u.params&&d.params.app&&d.params.app.id&&(c={appid:u.params.app.id});var m={},f={},b=T.getCookie("apn_prebid_debug")||null;if(b)try{m=JSON.parse(b)}catch(e){Object(a.logError)("AppNexus Debug Auction Cookie Error:\n\n"+e)}else{var v=p()(e,V);v&&v.debug&&(m=v.debug)}m&&m.enabled&&Object.keys(m).filter((function(e){return l()(w,e)})).forEach((function(e){f[e]=m[e]}));var g=p()(e,D),h=g?parseInt(g.params.member,10):0,O=e[0].schain,j=p()(e,W),x={tags:y(t),user:s,sdk:{source:"pbjs",version:"6.7.0-pre"},schain:O};if(j&&(x.iab_support={omidpn:"Appnexus",omidpv:"6.7.0-pre"}),h>0&&(x.member_id=h),d&&(x.device=o),u&&(x.app=c),i.b.getConfig("adpod.brandCategoryExclusion")&&(x.brand_category_uniqueness=!0),f.enabled&&(x.debug=f,Object(a.logInfo)("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(f,null,4))),r&&r.gdprConsent&&(x.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies},r.gdprConsent.addtlConsent&&-1!==r.gdprConsent.addtlConsent.indexOf("~"))){var C=r.gdprConsent.addtlConsent,S=C.substring(C.indexOf("~")+1);x.gdpr_consent.addtl_consent=S.split(".").map((function(e){return parseInt(e,10)}))}if(r&&r.uspConsent&&(x.us_privacy=r.uspConsent),r&&r.refererInfo){var E={rd_ref:encodeURIComponent(r.refererInfo.referer),rd_top:r.refererInfo.reachedTop,rd_ifs:r.refererInfo.numIframes,rd_stk:r.refererInfo.stack.map((function(e){return encodeURIComponent(e)})).join(",")};x.referrer_detection=E}if(p()(e,J)&&e.filter(J).forEach((function(e){var r=function(e,r){var t=r.mediaTypes.video,n=t.durationRangeSec,i=t.requireExactDuration,s=function(e){var r=e.adPodDurationSec,t=e.durationRangeSec,n=e.requireExactDuration,i=Object(a.getMinValueFromArray)(t),s=Math.floor(r/i);return n?Math.max(s,t.length):s}(r.mediaTypes.video),o=Object(a.getMaxValueFromArray)(n),d=e.filter((function(e){return e.uuid===r.bidId})),c=a.fill.apply(void 0,y(d).concat([s]));if(i){var p=Math.ceil(s/n.length),u=Object(a.chunk)(c,p);n.forEach((function(e,r){u[r].map((function(r){H(r,"minduration",e),H(r,"maxduration",e)}))}))}else c.map((function(e){return H(e,"maxduration",o)}));return c}(t,e),n=x.tags.filter((function(r){return r.uuid!==e.bidId}));x.tags=[].concat(y(n),y(r))})),e[0].userId){var R=[];K(R,Object(a.deepAccess)(e[0],"userId.flocId.id"),"chrome.com",null),K(R,Object(a.deepAccess)(e[0],"userId.criteoId"),"criteo.com",null),K(R,Object(a.deepAccess)(e[0],"userId.netId"),"netid.de",null),K(R,Object(a.deepAccess)(e[0],"userId.idl_env"),"liveramp.com",null),K(R,Object(a.deepAccess)(e[0],"userId.tdid"),"adserver.org","TDID"),K(R,Object(a.deepAccess)(e[0],"userId.uid2.id"),"uidapi.com","UID2"),R.length&&(x.eids=R)}return t[0].publisher_id&&(x.publisher_id=t[0].publisher_id),function(e,r){var t=[],n={withCredentials:!0},s=_;N(r)||(s=k);"TRUE"!==Object(a.getParameterByName)("apn_test").toUpperCase()&&!0!==i.b.getConfig("apn_test")||(n.customHeaders={"X-Is-Test":1});if(e.tags.length>15){var o=Object(a.deepClone)(e);Object(a.chunk)(e.tags,15).forEach((function(e){o.tags=e;var a=JSON.stringify(o);t.push({method:"POST",url:s,data:a,bidderRequest:r,options:n})}))}else{var d=JSON.stringify(e);t={method:"POST",url:s,data:d,bidderRequest:r,options:n}}return t}(x,r)},interpretResponse:function(e,r){var t=this,i=r.bidderRequest;e=e.body;var d=[];if(!e||e.error){var c="in response for ".concat(i.bidderCode," adapter");return e&&e.error&&(c+=": ".concat(e.error)),Object(a.logError)(c),d}if(e.tags&&e.tags.forEach((function(e){var r,c=(r=e)&&r.ads&&r.ads.length&&p()(r.ads,(function(e){return e.rtb}));if(c&&((Object(a.isAllowZeroCpmBidsEnabled)(i.bidderCode)?c.cpm>=0:c.cpm>0)&&l()(t.supportedMediaTypes,c.ad_type))){var u=function(e,r,t){var i=Object(a.getBidRequest)(e.uuid,[t]),d={requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:"USD",netRevenue:!0,ttl:300,adUnitCode:i.adUnitCode,appnexus:{buyerMemberId:r.buyer_member_id,dealPriority:r.deal_priority,dealCode:r.deal_code}};r.adomain&&(d.meta=v({},d.meta,{advertiserDomains:[]}));r.advertiser_id&&(d.meta=v({},d.meta,{advertiserId:r.advertiser_id}));function c(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}r.buyer_member_id&&(d.meta=v({},d.meta,{dchain:c(r)}));r.brand_id&&(d.meta=v({},d.meta,{brandId:r.brand_id}));if(r.rtb.video){switch(v(d,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastImpUrl:r.notify_url,ttl:3600}),Object(a.deepAccess)(i,"mediaTypes.video.context")){case o.a:var u=Object(s.getIabSubCategory)(i.bidder,r.brand_category_id);d.meta=v({},d.meta,{primaryCatId:u});var l=r.deal_priority;d.video={context:o.a,durationSeconds:Math.floor(r.rtb.video.duration_ms/1e3),dealTier:l},d.vastUrl=r.rtb.video.asset_url;break;case m.b:if(d.adResponse=e,d.adResponse.ad=d.adResponse.ads[0],d.adResponse.ad.video=d.adResponse.ad.rtb.video,d.vastXml=r.rtb.video.content,r.renderer_url){var f=p()(t.bids,(function(r){return r.bidId===e.uuid})),b=Object(a.deepAccess)(f,"renderer.options");d.renderer=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.a.install({id:r.renderer_id,url:r.renderer_url,config:t,loaded:!1,adUnitCode:e});try{i.setRender(L)}catch(e){Object(a.logWarn)("Prebid Error calling setRender on renderer",e)}return i.setEventHandlers({impression:function(){return Object(a.logMessage)("AppNexus outstream video impression event")},loaded:function(){return Object(a.logMessage)("AppNexus outstream video loaded event")},ended:function(){Object(a.logMessage)("AppNexus outstream renderer video event"),document.querySelector("#".concat(e)).style.display="none"}}),i}(d.adUnitCode,r,b)}break;case m.a:d.vastUrl=r.notify_url+"&redir="+encodeURIComponent(r.rtb.video.asset_url)}}else if(r.rtb[o.c]){var y=r.rtb[o.c],g=r.viewability.config.replace("src=","data-src="),h=y.javascript_trackers;null==h?h=g:Object(a.isStr)(h)?h=[h,g]:h.push(g),d[o.c]={title:y.title,body:y.desc,body2:y.desc2,cta:y.ctatext,rating:y.rating,sponsoredBy:y.sponsored,privacyLink:y.privacy_link,address:y.address,downloads:y.downloads,likes:y.likes,phone:y.phone,price:y.price,salePrice:y.saleprice,clickUrl:y.link.url,displayUrl:y.displayurl,clickTrackers:y.link.click_trackers,impressionTrackers:y.impression_trackers,javascriptTrackers:h},y.main_img&&(d.native.image={url:y.main_img.url,height:y.main_img.height,width:y.main_img.width}),y.icon&&(d.native.icon={url:y.icon.url,height:y.icon.height,width:y.icon.width})}else{v(d,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{if(r.rtb.trackers)for(var _=0;_<r.rtb.trackers[0].impression_urls.length;_++){var k=r.rtb.trackers[0].impression_urls[_],O=Object(a.createTrackPixelHtml)(k);d.ad+=O}}catch(e){Object(a.logError)("Error appending tracking pixel",e)}}return d}(e,c,i);u.mediaType=function(e){var r=e.ad_type;return r===o.d?o.d:r===o.c?o.c:o.b}(c),d.push(u)}})),e.debug&&e.debug.debug_info){var u="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;u=u.replace(/(<td>|<th>)/gm,"\t").replace(/(<\/td>|<\/th>)/gm,"\n").replace(/^<br>/gm,"").replace(/(<br>\n|<br>)/gm,"\n").replace(/<h1>(.*)<\/h1>/gm,"\n\n===== $1 =====\n\n").replace(/<h[2-6]>(.*)<\/h[2-6]>/gm,"\n\n*** $1 ***\n\n").replace(/(<([^>]+)>)/gim,""),Object(a.logMessage)("https://console.appnexus.com/docs/understanding-the-debug-auction"),Object(a.logMessage)(u)}return d},getMappingFileInfo:function(){return{url:"https://acdn.adnxs-simple.com/prebid/appnexus-mapping/mappings.json",refreshInDays:2}},getUserSyncs:function(e,r,t){if(e.iframeEnabled&&N({gdprConsent:t}))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}]},transformBidParams:function(e,r){return e=Object(a.convertTypes)({member:"string",invCode:"string",placementId:"number",keywords:a.transformBidderParamKeywords,publisherId:"number"},e),r&&(e.use_pmt_rule="boolean"==typeof e.usePaymentRule&&e.usePaymentRule,e.usePaymentRule&&delete e.usePaymentRule,R(e.keywords)&&e.keywords.forEach(P),Object.keys(e).forEach((function(r){var t=Object(a.convertCamelToUnderscore)(r);t!==r&&(e[t]=e[r],delete e[r])}))),e},onBidWon:function(e){e.native&&function(e){var r=function(e){var r;if(Object(a.isStr)(e)&&U(e))r=e;else if(Object(a.isArray)(e))for(var t=0;t<e.length;t++){var n=e[t];U(n)&&(r=n)}return r}(e.native.javascriptTrackers);if(r)for(var t="pbjs_adid="+e.adId+";pbjs_auc="+e.adUnitCode,n=function(e){var r=e.indexOf('src="')+5,t=e.indexOf('"',r);return e.substring(r,t)}(r),i=n.replace("dom_id=%native_dom_id%",t),s=document.getElementsByTagName("iframe"),o=!1,d=0;d<s.length&&!o;d++){var c=s[d];try{var p=c.contentDocument||c.contentWindow.document;if(p)for(var u=p.getElementsByTagName("script"),l=0;l<u.length&&!o;l++){var m=u[l];m.getAttribute("data-src")==n&&(m.setAttribute("src",i),m.setAttribute("data-src",""),m.removeAttribute&&m.removeAttribute("data-src"),o=!0)}}catch(e){if(!(e instanceof DOMException&&"SecurityError"===e.name))throw e}}}(e)}};function R(e){return!!(Object(a.isArray)(e)&&e.length>0)}function P(e){R(e.value)&&""===e.value[0]&&delete e.value}function U(e){var r=e.match(S),t=null!=r&&r.length>=1,a=e.match("trk.js"),n=null!=a&&a.length>=1;return e.startsWith("<script")&&n&&t}function N(e){var r=!0;return e&&e.gdprConsent&&e.gdprConsent.gdprApplies&&2===e.gdprConsent.apiVersion&&(r=!(!0!==Object(a.deepAccess)(e.gdprConsent,"vendorData.purpose.consents.1"))),r}function q(e){var r={};r.sizes=M(e.sizes),r.primary_size=r.sizes[0],r.ad_types=[],r.uuid=e.bidId,e.params.placementId?r.id=parseInt(e.params.placementId,10):r.code=e.params.invCode,r.allow_smaller_sizes=e.params.allowSmallerSizes||!1,r.use_pmt_rule=e.params.usePaymentRule||!1,r.prebid=!0,r.disable_psa=!0;var t=function(e){if(!Object(a.isFn)(e.getFloor))return e.params.reserve?e.params.reserve:null;var r=e.getFloor({currency:"USD",mediaType:"*",size:"*"});if(Object(a.isPlainObject)(r)&&!isNaN(r.floor)&&"USD"===r.currency)return r.floor;return null}(e);if(t&&(r.reserve=t),e.params.position&&(r.position={above:1,below:2}[e.params.position]||0),e.params.trafficSourceCode&&(r.traffic_source_code=e.params.trafficSourceCode),e.params.privateSizes&&(r.private_sizes=M(e.params.privateSizes)),e.params.supplyType&&(r.supply_type=e.params.supplyType),e.params.pubClick&&(r.pubclick=e.params.pubClick),e.params.extInvCode&&(r.ext_inv_code=e.params.extInvCode),e.params.publisherId&&(r.publisher_id=parseInt(e.params.publisherId,10)),e.params.externalImpId&&(r.external_imp_id=e.params.externalImpId),!Object(a.isEmpty)(e.params.keywords)){var n=Object(a.transformBidderParamKeywords)(e.params.keywords);n.length>0&&n.forEach(P),r.keywords=n}var i,s,c=Object(a.deepAccess)(e,"ortb2Imp.ext.data.pbadslot");if(c&&(r.gpid=c),(e.mediaType===o.c||Object(a.deepAccess)(e,"mediaTypes.".concat(o.c)))&&(r.ad_types.push(o.c),0===r.sizes.length&&(r.sizes=M([1,1])),e.nativeParams)){var u=(i=e.nativeParams,s={},Object.keys(i).forEach((function(e){var r=C[e]&&C[e].serverName||C[e]||e,t=C[e]&&C[e].requiredParams;if(s[r]=v({},t,i[e]),(r===C.image.serverName||r===C.icon.serverName)&&s[r].sizes){var n=s[r].sizes;(Object(a.isArrayOfNums)(n)||Object(a.isArray)(n)&&n.length>0&&n.every((function(e){return Object(a.isArrayOfNums)(e)})))&&(s[r].sizes=M(s[r].sizes))}r===C.privacyLink&&(s.privacy_supported=!0)})),s);r[o.c]={layouts:[u]}}var m=Object(a.deepAccess)(e,"mediaTypes.".concat(o.d)),f=Object(a.deepAccess)(e,"mediaTypes.video.context");r.hb_source=m&&"adpod"===f?7:1,(e.mediaType===o.d||m)&&r.ad_types.push(o.d),(e.mediaType===o.d||m&&"outstream"!==f)&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter((function(e){return l()(O,e)})).forEach((function(t){switch(t){case"context":case"playback_method":var n=e.params.video[t];n=Object(a.isArray)(n)?n[0]:n,r.video[t]=x[t][n];break;case"frameworks":break;default:r.video[t]=e.params.video[t]}})),e.params.video.frameworks&&Object(a.isArray)(e.params.video.frameworks)&&(r.video_frameworks=e.params.video.frameworks)),m&&(r.video=r.video||{},Object.keys(m).filter((function(e){return l()(j,e)})).forEach((function(e){switch(e){case"minduration":case"maxduration":"number"!=typeof r.video[e]&&(r.video[e]=m[e]);break;case"skip":"boolean"!=typeof r.video.skippable&&(r.video.skippable=1===m[e]);break;case"skipafter":"number"!=typeof r.video.skipoffset&&(r.video.skippoffset=m[e]);break;case"playbackmethod":if("number"!=typeof r.video.playback_method){var t=m[e];(t=Object(a.isArray)(t)?t[0]:t)>=1&&t<=4&&(r.video.playback_method=t)}break;case"api":if(!r.video_frameworks&&Object(a.isArray)(m[e])){var n=m[e].map((function(e){var r=4===e?5:5===e?4:e;if(r>=1&&r<=5)return r})).filter((function(e){return e}));r.video_frameworks=n}}}))),e.renderer&&(r.video=v({},r.video,{custom_renderer_present:!0})),e.params.frameworks&&Object(a.isArray)(e.params.frameworks)&&(r.banner_frameworks=e.params.frameworks);var b=p()(d.a.getAdUnits(),(function(r){return e.transactionId===r.transactionId}));return b&&b.mediaTypes&&b.mediaTypes.banner&&r.ad_types.push(o.b),0===r.ad_types.length&&delete r.ad_types,r}function M(e){var r=[],t={};if(Object(a.isArray)(e)&&2===e.length&&!Object(a.isArray)(e[0]))t.width=parseInt(e[0],10),t.height=parseInt(e[1],10),r.push(t);else if("object"===b(e))for(var n=0;n<e.length;n++){var i=e[n];(t={}).width=parseInt(i[0],10),t.height=parseInt(i[1],10),r.push(t)}return r}function z(e){return!!e.params.user}function D(e){return!!parseInt(e.params.member,10)}function B(e){if(e.params)return!!e.params.app}function F(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function V(e){return!!e.debug}function J(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===o.a}function W(e){var r=!1,t=e.params,n=e.params.video;return t.frameworks&&Object(a.isArray)(t.frameworks)&&(r=l()(e.params.frameworks,6)),!r&&n&&n.frameworks&&Object(a.isArray)(n.frameworks)&&(r=l()(e.params.video.frameworks,6)),r}function H(e,r,t){Object(a.isEmpty)(e.video)&&(e.video={}),e.video[r]=t}function L(e){var r,t;r=e.adUnitCode,(t=document.getElementById(r).querySelectorAll("div[id^='google_ads']"))[0]&&t[0].style.setProperty("display","none"),function(e){try{var r=document.getElementById(e).querySelectorAll("script[id^='sas_script']");r[0].nextSibling&&"iframe"===r[0].nextSibling.localName&&r[0].nextSibling.style.setProperty("display","none")}catch(e){}}(e.adUnitCode),e.renderer.push((function(){window.ANOutstreamVideo.renderAd({tagId:e.adResponse.tag_id,sizes:[e.getSize().split("x")],targetId:e.adUnitCode,uuid:e.adResponse.uuid,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},$.bind(null,e))}))}function $(e,r,t){e.renderer.handleVideoEvent({id:r,eventName:t})}function K(e,r,t,a){return r&&(a?e.push({source:t,id:r,rti_partner:a}):e.push({source:t,id:r})),e}Object(s.registerBidder)(E),window.pbjs.installedModules.push("appnexusBidAdapter")}},[316]);
pbjsChunk([298],{450:function(e,r,t){e.exports=t(451)},451:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"spec",(function(){return h})),r.getFloor=g,r.cleanSizes=v,r.shuffle=O,r.removeDuplicate=A,r.upto5=I,r.matchRequest=j,r.checkDeepArray=S,r.defaultSize=x,r.bindUserId=w,r.getApi=T,r.getPlaybackmethod=function(e){if(Array.isArray(e)&&e.length>0)return e.map((function(e){return b.playback_method[e]}));return[2]},r.getProtocols=z,r.cleanVast=_;var n=t(0),i=t(1),o=t(3),s=t(2);function a(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var n,i,o=[],s=!0,a=!1;try{for(t=t.call(e);!(s=(n=t.next()).done)&&(o.push(n.value),!r||o.length!==r);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==t.return||t.return()}finally{if(a)throw i}}return o}(e,r)||u(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(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 u(e,r){if(e){if("string"==typeof e)return d(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(e,r):void 0}}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach((function(r){f(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function f(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var y="https://dmx.districtm.io/b/v1",b={playback_method:{auto_play_sound_on:1,auto_play_sound_off:2,click_to_play:3,mouse_over:4,viewport_sound_on:5,viewport_sound_off:6}},h={code:"districtmDMX",gvlid:144,aliases:["dmx"],supportedFormat:[s.b,s.d],supportedMediaTypes:[s.d,s.b],isBidRequestValid:function(e){return!!e.params.memberid},interpretResponse:function(e,r){return(e=e.body||{}).seatbid&&Object(n.isArray)(e.seatbid)?e.seatbid.reduce((function(e,t){var n=t.bid.reduce((function(e,t){if(e.price<t.price){var n=j(t.impid,r),i=x(n),o=i.width,s=i.height;return t.cpm=parseFloat(t.price).toFixed(2),t.bidId=t.impid,t.requestId=t.impid,t.width=t.w||o,t.height=t.h||s,t.ttl=300,t.mediaType=n.mediaTypes&&n.mediaTypes.video?"video":"banner","video"===t.mediaType&&(t.vastXml=_(t.adm,t.nurl),t.ttl=3600),t.dealid&&(t.dealId=t.dealid),t.uuid=t.bidId,t.ad=t.adm,t.netRevenue=!0,t.creativeId=t.crid,t.currency="USD",t.meta=t.meta||{},t.adomain&&t.adomain.length>0&&(t.meta.advertiserDomains=t.adomain),t}return e.cpm=e.price,e}),{price:0});return n.adm&&e.push(n),e}),[]).filter((function(e){return!!e.bidId})):[]},buildRequests:function(e,r){var t=o.b.getConfig("bidderTimeout"),i=null,s={id:Object(n.generateUUID)(),cur:["USD"],tmax:t-300,test:this.test()||0,site:{publisher:{id:String(e[0].params.memberid)||null}}};try{var a=o.b.getConfig("dmx");s.user=a.user||{};var c=a.site||{};s.site=m(m({},s.site),c)}catch(e){}var u=[];e[0]&&e[0].userId&&(w(u,Object(n.deepAccess)(e[0],"userId.idl_env"),"liveramp.com",1),w(u,Object(n.deepAccess)(e[0],"userId.id5id.uid"),"id5-sync.com",1),w(u,Object(n.deepAccess)(e[0],"userId.pubcid"),"pubcid.org",1),w(u,Object(n.deepAccess)(e[0],"userId.tdid"),"adserver.org",1),w(u,Object(n.deepAccess)(e[0],"userId.criteoId"),"criteo.com",1),w(u,Object(n.deepAccess)(e[0],"userId.britepoolid"),"britepool.com",1),w(u,Object(n.deepAccess)(e[0],"userId.lipb.lipbid"),"liveintent.com",1),w(u,Object(n.deepAccess)(e[0],"userId.intentiqid"),"intentiq.com",1),w(u,Object(n.deepAccess)(e[0],"userId.lotamePanoramaId"),"lotame.com",1),w(u,Object(n.deepAccess)(e[0],"userId.parrableId"),"parrable.com",1),w(u,Object(n.deepAccess)(e[0],"userId.netId"),"netid.de",1),s.user=s.user||{},s.user.ext=s.user.ext||{},s.user.ext.eids=u),s.test||delete s.test,r.gdprConsent&&(s.regs={},s.regs.ext={},s.regs.ext.gdpr=!0===r.gdprConsent.gdprApplies?1:0,!0===r.gdprConsent.gdprApplies&&(s.user={},s.user.ext={},s.user.ext.consent=r.gdprConsent.consentString)),s.regs=s.regs||{},s.regs.coppa=!0===o.b.getConfig("coppa")?1:0,r&&r.uspConsent&&(s.regs=s.regs||{},s.regs.ext=s.regs.ext||{},s.regs.ext.us_privacy=r.uspConsent);try{i=e[0].schain,s.source={},s.source.ext={},s.source.ext.schain=i||{}}catch(e){}var d=e.map((function(e){var r={};return r.id=e.bidId,r.tagid=String(e.params.dmxid||e.adUnitCode),r.secure=1,r.bidfloor=g(e),e.mediaTypes&&e.mediaTypes.video?r.video={topframe:1,skip:e.mediaTypes.video.skip||0,linearity:e.mediaTypes.video.linearity||1,minduration:e.mediaTypes.video.minduration||5,maxduration:e.mediaTypes.video.maxduration||60,playbackmethod:e.mediaTypes.video.playbackmethod||[2],api:T(e.mediaTypes.video),mimes:e.mediaTypes.video.mimes||["video/mp4"],protocols:z(e.mediaTypes.video),h:e.mediaTypes.video.playerSize[0][1],w:e.mediaTypes.video.playerSize[0][0]}:r.banner={topframe:1,w:v(e.sizes,"w"),h:v(e.sizes,"h"),format:v(e.sizes).map((function(e){return{w:e[0],h:e[1]}})).filter((function(e){return"number"==typeof e.w&&"number"==typeof e.h}))},r}));return d.length<=5?(s.imp=d,{method:"POST",url:y,data:JSON.stringify(s),bidderRequest:r}):I(d,s,r,y)},test:function(){return-1!==window.location.href.indexOf("dmTest=true")?1:0},getUserSyncs:function(e,r,t,n){var i=[],o="https://cdn.districtm.io/ids/index.html";if(t&&t.gdprApplies&&"string"==typeof t.consentString&&i.push(["gdpr",t.consentString]),n&&i.push(["ccpa",n]),i.length>0&&(o+="?"+i.map((function(e){return e.join("=")})).join("&")),e.iframeEnabled)return[{type:"iframe",url:o}]}};function g(e){var r=null;if("function"==typeof e.getFloor){var t=e.getFloor({currency:"USD",mediaType:e.mediaTypes.video?"video":"banner",size:e.sizes.map((function(e){return{w:e[0],h:e[1]}}))});"object"!==p(t)||"USD"!==t.currency||isNaN(parseFloat(t.floor))||(r=parseFloat(t.floor))}return null!==r?r:e.params.floor}function v(e,r){var t=O(e,[{size:[300,250],s:100},{size:[728,90],s:95},{size:[320,50],s:90},{size:[160,600],s:88},{size:[300,600],s:85},{size:[300,50],s:80},{size:[970,250],s:75},{size:[970,90],s:60}]);switch(r){case"w":return t[0][0]||0;case"h":return t[0][1]||0;case"size":default:return t}}function O(e,r){var t=e.filter((function(e){return-1===r.map((function(e){return"".concat(e.size[0],"x").concat(e.size[1])})).indexOf("".concat(e[0],"x").concat(e[1]))})),n=e.reduce((function(e,t){return 0===e.length?(e.push(t),e):(e.push(t),(e=(e=r.filter((function(r){return-1!==e.map((function(e){return"".concat(e[0],"x").concat(e[1])})).indexOf("".concat(r.size[0],"x").concat(r.size[1]))}))).sort((function(e,r){return r.s-e.s}))).map((function(e){return e.size})))}),[]);return A([].concat(c(n),c(t)))}function A(e){return e.filter((function(r,t){return e.map((function(e){return"".concat(e[0],"x").concat(e[1])})).indexOf("".concat(r[0],"x").concat(r[1]))===t}))}function I(e,r,t,n){for(var i=[];0!==e.length;)e.length>=5?i.push(e.splice(0,5)):i.push(e.splice(0,e.length));return i.map((function(e){return r.imp=e,{method:"POST",url:n,data:JSON.stringify(r),bidderRequest:t}}))}function j(e,r){return a(r.bidderRequest.bids.filter((function(r){return r.bidId===e})),1)[0]}function S(e){return Array.isArray(e)&&Array.isArray(e[0])?e[0]:e}function x(e){var r=e.sizes,t={};return t.width=S(r)[0],t.height=S(r)[1],t}function w(e,r,t,i){Object(n.isStr)(r)&&Array.isArray(e)&&e.push({source:t,uids:[{id:r,atype:i}]})}function T(e){var r=e.api;return r&&Array.isArray(r)&&r.length>0?r:[2]}function z(e){var r=e.protocols;return r&&Array.isArray(r)&&r.length>0?r:[2,3,5,6,7,8]}function _(e,r){try{var t=/<img\s[^>]*?src\s*=\s*['\"]([^'\"]*?)['\"][^>]*?>/,n=a(e.match(t),2),i=n[0],o=n[1];if(e=e.replace(t,""),i&&o){var s="<Impression><![CDATA[".concat(o,"]]></Impression>");e=e.replace("</Impression>","</Impression>".concat(s))}return e}catch(t){if(!r)return e;var c="<Impression><![CDATA[".concat(r,"]]></Impression>");return e=e.replace("</Impression>","</Impression>".concat(c))}}Object(i.registerBidder)(h),window.pbjs.installedModules.push("districtmDMXBidAdapter")}},[450]);
pbjsChunk([263],{527:function(e,r,t){e.exports=t(528)},528:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"storage",(function(){return v})),t.d(r,"spec",(function(){return T})),r.resetUserSync=function(){I=!1},r.getSyncUrl=function(){return g};var n=t(0),i=t(1),o=t(13),a=t(2),s=t(3),d=t(7);function u(e){return(u="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 c(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var n,i,o=[],a=!0,s=!1;try{for(t=t.call(e);!(a=(n=t.next()).done)&&(o.push(n.value),!r||o.length!==r);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(s)throw i}}return o}(e,r)||p(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||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,r){if(e){if("string"==typeof e)return f(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,r):void 0}}function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var b="grid",g="https://x.bidswitch.net/sync?ssp=themediagrid",m="tmguid",y="https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js",v=Object(d.b)(686,b),h="Bid from response has no auid parameter - ",S="Bid from response has no adm parameter - ",j="Array of bid objects is empty",x="Seatbid array from response has empty item",w="Response is empty",O="Response has empty seatbid array",A="Seatbid from response has no array of bid objects - ",I=!1,T={code:b,aliases:["playwire","adlivetech"],supportedMediaTypes:[a.b,a.d],isBidRequestValid:function(e){return!!e.params.uid},buildRequests:function(e,r){if(!e.length)return null;var t=null,i=null,o=null,d=null,p=null,f=null,b=null,g=r||{},y=g.bidderRequestId,h=g.auctionId,S=g.gdprConsent,j=g.uspConsent,x=g.timeout,w=g.refererInfo,O=w?encodeURIComponent(w.referer):"",A=[],I={};e.forEach((function(e){y||(y=e.bidderRequestId),h||(h=e.auctionId),d||(d=e.schain),p||(p=e.userIdAsEids);var r=e.params,s=r.uid,l=r.keywords,f=e.mediaTypes,b=e.bidId,g=e.adUnitCode,m=e.rtd,v=e.ortb2Imp;I[b]=e;var S=function(e,r){var t=e.video?"video":"banner",n=r.params.bidFloor||0;if("function"==typeof r.getFloor){var i=r.getFloor({currency:"USD",mediaType:t,size:r.sizes.map((function(e){var r=c(e,2);return{w:r[0],h:r[1]}}))});"object"!==u(i)||"USD"!==i.currency||isNaN(parseFloat(i.floor))||(n=Math.max(n,parseFloat(i.floor)))}return n}(f||{},e),j=m&&m.jwplayer&&m.jwplayer.targeting;j&&(!i&&j.segments&&(i=j.segments),!o&&j.content&&(o=j.content));var x={id:b.toString(),tagid:s.toString(),ext:{divid:g.toString()}};if(v&&v.ext&&v.ext.data&&(x.ext.data=v.ext.data,x.ext.data.adserver&&x.ext.data.adserver.adslot?x.ext.gpid=x.ext.data.adserver.adslot.toString():x.ext.gpid=v.ext.data.pbadslot&&v.ext.data.pbadslot.toString()),Object(n.isEmpty)(l)||(t||(t=l),x.ext.bidder={keywords:l}),S&&(x.bidfloor=S),!f||f[a.b]){var w=function(e,r){var t=r.sizes||e.sizes;if(!t||!t.length)return;var i=t.map((function(e){return Object(n.parseGPTSingleSizeArrayToRtbSize)(e)})),o=Object(n.parseGPTSingleSizeArrayToRtbSize)(t[0]);i.length&&(o.format=i);return o}(e,f?f[a.b]:{});w&&(x.banner=w)}if(f&&f[a.d]){var O=function(e,r){var t=r.playerSize,i=r.mimes,o=r.durationRangeSec,a=r.protocols,s=(t||e.sizes||[])[0];if(!s)return;var d=Object(n.parseGPTSingleSizeArrayToRtbSize)(s);i&&(d.mimes=i);o&&2===o.length&&(d.minduration=o[0],d.maxduration=o[1]);a&&a.length&&(d.protocols=a);return d}(e,f[a.d]);O&&(x.video=O)}(x.banner||x.video)&&A.push(x)}));var T={tid:h&&h.toString(),ext:{wrapper:"Prebid_js",wrapper_version:"6.7.0-pre"}};d&&(T.ext.schain=d);var E=s.b.getConfig("bidderTimeout")||x,R=x?Math.min(E,x):E,k={id:y&&y.toString(),site:{page:O},tmax:R,source:T,imp:A};o&&(k.site.content=o),i&&i.length&&(f={data:[{name:"iow_labs_pub_data",segment:i.map((function(e){return{name:"jwpseg",value:e}}))}]}),S&&S.consentString&&(b={consent:S.consentString}),p&&p.length&&((b=b||{}).eids=l(p)),b&&Object.keys(b).length&&((f=f||{}).ext=b);var U=v.getDataFromLocalStorage(m)||function(){if(s.b.getConfig("localStorageWriteAllowed")){var e=Object(n.generateUUID)().replace(/-/g,"");return v.setDataInLocalStorage(m,e),e}return null}();U&&((f=f||{}).id=U.toString()),f&&(k.user=f);var z=Object(n.deepAccess)(s.b.getConfig("ortb2.user"),"keywords")||null,C=Object(n.deepAccess)(s.b.getConfig("ortb2.site"),"keywords")||null;return z&&((t=t||{}).user=t.user||{},t.user.ortb2=[{name:"keywords",keywords:z.split(",")}]),C&&((t=t||{}).site=t.site||{},t.site.ortb2=[{name:"keywords",keywords:C.split(",")}]),t&&(t=function(e){var r={};return Object.keys(e).forEach((function(t){var n=e[t];if(n)if("site"===t||"user"===t){var i={};Object.keys(n).forEach((function(e){if(Array.isArray(n[e])){var r=[];n[e].forEach((function(e){if("object"===u(e)&&e.name){var t={name:e.name,segments:[]};Object.keys(e).forEach((function(r){Array.isArray(e[r])&&e[r].forEach((function(e){e&&("string"==typeof e?t.segments.push({name:r,value:e}):"segments"===r&&"string"==typeof e.name&&"string"==typeof e.value&&t.segments.push(e))}))})),t.segments.length&&r.push(t)}})),r.length&&(i[e]=r)}})),r[t]=i}else r[t]=n})),Object.keys(r).length&&r}(t))&&(k.ext={keywords:t}),S&&S.gdprApplies&&(k.regs={ext:{gdpr:S.gdprApplies?1:0}}),j&&(k.regs||(k.regs={ext:{}}),k.regs.ext.us_privacy=j),!0===s.b.getConfig("coppa")&&(k.regs||(k.regs={}),k.regs.coppa=1),{method:"POST",url:"https://grid.bidswitch.net/hbjson",data:JSON.stringify(k),newFormat:!0,bidsMap:I}},interpretResponse:function(e,r){e=e&&e.body;var t,i=[];return e?e.seatbid&&!e.seatbid.length&&(t=O):t=w,!t&&e.seatbid&&e.seatbid.forEach((function(e){!function(e,r,t){if(!e)return;var i;e.auid||(i=h+JSON.stringify(e));if(i||e.adm||e.nurl){var s=r.bidsMap[e.impid];if(s){var d={requestId:s.bidId,cpm:e.price,width:e.w,height:e.h,creativeId:e.auid,currency:"USD",netRevenue:!0,ttl:360,meta:{advertiserDomains:e.adomain?e.adomain:[]},dealId:e.dealid};e.ext&&e.ext.bidder&&e.ext.bidder.grid&&e.ext.bidder.grid.demandSource&&(d.adserverTargeting={hb_ds:e.ext.bidder.grid.demandSource},d.meta.demandSource=e.ext.bidder.grid.demandSource),"video"===e.content_type?(e.adm?(d.vastXml=e.adm,d.adResponse={content:d.vastXml}):e.nurl&&(d.vastUrl=e.nurl),d.mediaType=a.d,s.renderer||s.mediaTypes&&s.mediaTypes.video&&"outstream"!==s.mediaTypes.video.context||(d.renderer=function(e,r){var t=o.a.install({id:r.id,url:r.url,loaded:!1});try{t.setRender(E)}catch(e){Object(n.logWarn)("Prebid Error calling setRender on renderer",e)}return t}(0,{id:s.bidId,url:y}))):(d.ad=e.adm,d.mediaType=a.b),t.push(d)}}else i=S+JSON.stringify(e);i&&Object(n.logError)(i)}(function(e){e?e.bid?e.bid[0]||Object(n.logError)(j):Object(n.logError)(A+JSON.stringify(e)):Object(n.logError)(x);return e&&e.bid&&e.bid[0]}(e),r,i)})),t&&Object(n.logError)(t),i},getUserSyncs:function(e,r,t,n){if(!I&&e.pixelEnabled){var i="";return t&&("boolean"==typeof t.gdprApplies&&(i+="&gdpr=".concat(Number(t.gdprApplies))),"string"==typeof t.consentString&&(i+="&gdpr_consent=".concat(t.consentString))),n&&(i+="&us_privacy=".concat(n)),I=!0,{type:"image",url:g+i}}}};function E(e){e.renderer.push((function(){window.ANOutstreamVideo.renderAd({targetId:e.adUnitCode,adResponse:e.adResponse})}))}Object(i.registerBidder)(T),window.pbjs.installedModules.push("gridBidAdapter")}},[527]);
pbjsChunk([260],{533:function(e,t,n){e.exports=n(534)},534:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){n.d(t,"spec",(function(){return C}));var r=n(2),i=n(0),o=n(3),a=n(7),c=n(12),u=n.n(c),d=n(1);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 m(e){return(m="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 b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(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.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=Object(a.b)(),g={t:0,rq:8,pbv:"6.7.0-pre"},h=[r.b,r.d],w={},O={},I=null;function j(t){var n,r,o,a,c,u,d,s;if(O.vw)return O;try{r=(n=e.top).screen,o=t||""}catch(e){return Object(i.logError)(e),O}return O={vw:n.innerWidth,vh:n.innerHeight,sw:r.width,sh:r.height,pu:o,ce:v.cookiesAreEnabled(),dpr:n.devicePixelRatio||1,jcsi:JSON.stringify(g),ogu:(u=(document&&document.getElementsByTagName("head")[0]).querySelector("meta[property='og:url']"),u?u.content:null)},d=window.navigator&&(window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection),(c=(s=d&&(d.downlink||d.bandwidth))?Math.round(1024*s):null)&&(O.ns=c),(a=(o.match(/#ggad=(\w+)$/)||[0,0])[1])&&(O[isNaN(a)?"eAdBuyId":"adBuyId"]=a),O}function S(e,t){return e.replace("AD_JSON",window.btoa(JSON.stringify(t)))}function x(e){var t=e.digitrustid&&e.digitrustid.data;return!t||t.privacy&&t.privacy.optout?{}:{dt:t.id}}function P(e){var t=0,n=0,r=0;return e.forEach((function(e){var i=b(e,2),o=i[0],a=i[1],c=o>a?o:a;(c>r||c===r&&o>=t&&a>=n)&&(r=c,t=o,n=a)})),[t,n]}var C={code:"gumgum",aliases:["gg"],isBidRequestValid:function(e){var t=e.params,n=e.adUnitCode,r=t.inScreen||t.inScreenPubID||t.inSlot||t.ICV||t.video||t.inVideo||t.slot||t.native||t.zone||t.pubID;if(w[r])return Object(i.logWarn)("[GumGum] Please check the implementation for ".concat(r," for the placement ").concat(n)),!1;switch(!0){case!!t.zone:case!!t.pubId:case!!t.inScreen:case!!t.inScreenPubID:case!!t.inSlot:case!!t.ICV:case!!t.video:case!!t.inVideo:case!!t.videoPubID:break;default:return Object(i.logWarn)("[GumGum] No product selected for the placement ".concat(n,", please check your implementation.")),!1}return!(t.bidfloor&&("number"!=typeof t.bidfloor||!isFinite(t.bidfloor)))||(Object(i.logWarn)("[GumGum] bidfloor must be a Number"),!1)},buildRequests:function(e,t){var n=[],r=t&&t.gdprConsent,a=t&&t.uspConsent,c=o.b.getConfig("bidderTimeout"),u=t&&t.refererInfo&&t.refererInfo.referer;return Object(i._each)(e,(function(e){var t,o,d=e.bidId,p=e.mediaTypes,f=void 0===p?{}:p,y=e.params,v=void 0===y?{}:y,g=e.schain,h=e.transactionId,w=e.userId,O=void 0===w?{}:w,S=e.ortb2Imp,C=e.adUnitCode,z=void 0===C?"":C,D=function(e,t,n){var r=Object.keys(e)[0]||"banner",i={floor:0,currency:"USD"};if("function"==typeof n.getFloor){var o=n.getFloor({mediaType:r,size:"*"}),a=o.currency,c=o.floor;c&&(i.floor=c),a&&(i.currency=a),t&&c&&"USD"===a&&(i.floor=Math.max(t,parseFloat(c)))}else t&&(i.floor=t);return i}(f,v.bidfloor,e),A=D.currency,T=D.floor,k=function(e){var t=["uid","eid","lipbid"];return Object.keys(e).reduce((function(n,r){var i=e[r];switch(m(i)){case"string":n[r]=i;break;case"object":var o=t.filter((function(e){return i.hasOwnProperty(e)}));o.length&&(n[r]=i[o[0]])}return n}),{})}(O),U=[1,1],R={},G="",V=new Date,E=V.getTime(),N=V.getTimezoneOffset();for(var q in R.lt=E,R.to=N,z&&(R.aun=z),k)R[q]=k[q];if(Object(i.deepAccess)(S,"ext.data.pbadslot")?G=Object(i.deepAccess)(S,"ext.data.pbadslot"):Object(i.deepAccess)(S,"ext.data.adserver.name")&&(G=S.ext.data.adserver.adslot),f.banner?U=f.banner.sizes:f.video&&(U=f.video.playerSize,R=function(e){var t=e.minduration,n=e.maxduration,r=e.linearity,o=e.startdelay,a=e.placement,c=e.protocols,u=void 0===c?[]:c,d=e.playerSize,s=void 0===d?[]:d,p=Object(i.parseSizesInput)(s),l=b(p[0]&&p[0].split("x"),2),f=l[0],m=l[1],y="";return u.length&&(y=u.join(",")),{mind:t,maxd:n,li:r,sd:o,pt:a,pr:y,viw:f,vih:m}}(f.video)),I&&(R.pv=I),T&&(R.fp=T,R.fpc=A),v.iriscat&&"string"==typeof v.iriscat&&(R.iriscat=v.iriscat),v.irisid&&"string"==typeof v.irisid&&(R.irisid=v.irisid),v.zone||v.pubId)if(v.zone?R.t=v.zone:R.pubId=v.pubId,R.pi=2,v.slot){var B=b(P(U),2),M=B[0],W=B[1];R.maxw=M,R.maxh=W,R.si=v.slot,R.pi=3,R.bf=U.reduce((function(e,t){return"".concat(e).concat(e&&",").concat(t[0],"x").concat(t[1])}),"")}else v.native?(R.ni=v.native,R.pi=5):f.video&&(R.pi=2===f.video.linearity?6:7);else R=l(l({},R),function(e,t){var n={};e.inScreenPubID&&(n.pubId=e.inScreenPubID,n.pi=2);e.inScreen&&(n.t=e.inScreen,n.pi=2);if(e.inSlot){var r=b(P(t),2),i=r[0],o=r[1];n.maxw=i,n.maxh=o,n.si=e.inSlot,n.pi=3,n.bf=t.reduce((function(e,t){return"".concat(e).concat(e&&",").concat(t[0],"x").concat(t[1])}),"")}e.ICV&&(n.ni=e.ICV,n.pi=5);e.videoPubID&&(n.pubId=e.videoPubID,n.pi=7);e.video&&(n.t=e.video,n.pi=7);e.inVideo&&(n.t=e.inVideo,n.pi=6);return n}(v,U));r&&(R.gdprApplies=r.gdprApplies?1:0),R.gdprApplies&&(R.gdprConsent=r.consentString),a&&(R.uspConsent=a),g&&g.nodes&&(R.schain=(o="".concat((t=g).ver,",").concat(t.complete),t.nodes.map((function(e){o+="!".concat(encodeURIComponent(e.asi||""),","),o+="".concat(encodeURIComponent(e.sid||""),","),o+="".concat(encodeURIComponent(e.hp||""),","),o+="".concat(encodeURIComponent(e.rid||""),","),o+="".concat(encodeURIComponent(e.name||""),","),o+="".concat(encodeURIComponent(e.domain||""))})),o)),n.push({id:d,tmax:c,tId:h,pi:R.pi,selector:v.selector,sizes:U,url:"https://g2.gumgum.com/hbid/imp",method:"GET",data:s(R,j(u),x(O),{gpid:G})})})),n},interpretResponse:function(e,t){var n=[],o=e.body;if(!o||o.err){var a=t.data||{},c=a.si||a.ni||a.t||a.pubId,d=o?o.err.drt:18e5;w[c]={productId:a.pi,timestamp:(new Date).getTime()},setTimeout((function(){w[c]&&delete w[c]}),d),Object(i.logWarn)("[GumGum] Please check the implementation for ".concat(c))}var p=s({ad:{price:0,id:0,markup:"",width:0,height:0},pag:{pvid:0},meta:{adomain:[],mediaType:""}},o),f=p.ad,m=f.price,y=f.id,v=f.markup,h=f.cur,O=f.width,j=f.height,x=f.maxw,P=f.maxh,C=p.cw,z=p.pag.pvid,D=p.jcsi,A=p.meta,T=A.adomain,k=A.mediaType,U=t.data||{},R=U.pi,G=6===R||7===R?r.d:r.b,V=3===R&&9===U.si,E={advertiserDomains:T||[],mediaType:k||G},N=Object(i.parseSizesInput)(t.sizes);if(x&&P)N=["".concat(x,"x").concat(P)];else if(5===R&&u()(N,"1x1"))N=["1x1"];else if(2===R&&u()(N,"1x1")){var q=t.sizes&&t.sizes.reduce((function(e,t){var n=b(t,2),r=n[0],i=n[1];return O!==r&&j!==i||e.push(t.join("x")),e}),[])||[];N=q.length?q:Object(i.parseSizesInput)(t.sizes)}var B=b(N[0].split("x"),2),M=B[0],W=B[1];return D&&(o.jcsi=g),I=z,y&&n.push(l(l({ad:C?S(C,s({},o,{bidRequest:t})):v},G===r.d&&{ad:v,vastXml:v}),{},{mediaType:G,cpm:V?.1:m,creativeId:y,currency:h||"USD",height:W,netRevenue:!0,requestId:t.id,ttl:60,width:M,meta:E})),n},getUserSyncs:function(e,t){return t.map((function(e){return e.body&&e.body.pxs&&e.body.pxs.scr||[]})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return{type:"f"===e.t?"iframe":"image",url:e.u}}))},supportedMediaTypes:h};Object(d.registerBidder)(C),window.pbjs.installedModules.push("gumgumBidAdapter")}.call(t,n(25))}},[533]);
pbjsChunk([235],{594:function(e,r,t){e.exports=t(595)},595:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t.d(r,"ERROR_CODES",(function(){return z})),t.d(r,"storage",(function(){return L})),t.d(r,"spec",(function(){return oe}));var i=t(0),n=t(2),a=t(3),o=t(5),s=t.n(o),d=t(7),c=t(10),p=t.n(c),u=t(11),l=t.n(u),m=t(1),b=t(19),f=t(12),y=t.n(f),g=t(13);function O(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(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 v(e){return(v="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 h(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function I(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?h(Object(t),!0).forEach((function(r){j(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function j(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function x(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=A(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw a}}}}function A(e,r){if(e){if("string"==typeof e)return S(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,r):void 0}}function S(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}var E="ix",w="roundel",_=[n.b,n.d],D=8e3,P={JPY:1},T="p",C="x",z={BID_SIZE_INVALID_FORMAT:1,BID_SIZE_NOT_INCLUDED:2,PROPERTY_NOT_INCLUDED:3,SITE_ID_INVALID_VALUE:4,BID_FLOOR_INVALID_FORMAT:5,IX_FPD_EXCEEDS_MAX_SIZE:6,EXCEEDS_MAX_SIZE:7,PB_FPD_EXCEEDS_MAX_SIZE:8,VIDEO_DURATION_INVALID:9},R={SITE:["id","name","domain","cat","sectioncat","pagecat","page","ref","search","mobile","privacypolicy","publisher","content","keywords","ext"],USER:["id","buyeruid","yob","gender","keywords","customdata","geo","data","ext"]},N={"liveramp.com":"idl","netid.de":"NETID","neustar.biz":"fabrickId","zeotap.com":"zeotapIdPlus","uidapi.com":"UID2","adserver.org":"TDID","id5-sync.com":"","crwdcntrl.net":"","epsilon.com":"","audigent.com":"","pubcid.org":""},X=["britepoolid","id5id","lipbid","haloId","criteoId","lotamePanoramaId","merkleId","parrableId","connectid","tapadId","quantcastId","pubcid","TDID","flocId","pubProvidedId"],k=["mimes","minduration","maxduration"],B=["mimes","minduration","maxduration","protocols","protocol","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext","playerSize","w","h"],F="ixdiag",U=!1,L=Object(d.b)(10,E),V=2;function M(e){var r={};r.id=e.bidId,r.ext={},r.ext.siteID=e.params.siteId.toString(),!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||(r.ext.sid=String(e.params.id));var t=Object(i.deepAccess)(e,"ortb2Imp.ext.data.adserver.adslot");return t&&(r.ext.dfp_ad_unit_code=t),r}function q(e,r,t){var n=null,a=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(n={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),Object(i.isFn)(e.getFloor)){var o="*",s="*";if(t&&Object(i.contains)(_,t)){var d=r[t];o=t,s=[d.w,d.h]}try{a=e.getFloor({mediaType:o,size:s})}catch(e){Object(i.logWarn)("priceFloors module call getFloor failed, error : ",e)}}a?(r.bidfloor=a.floor,r.bidfloorcur=a.currency,r.ext.fl=T):n&&(r.bidfloor=n.floor,r.bidfloorcur=n.currency,r.ext.fl=C)}function J(e,r,t){var a={},o=!(!Object(i.deepAccess)(e,"exp")||!Object(i.isInteger)(e.exp)),s=Object(i.deepAccess)(e,"dealid")||Object(i.deepAccess)(e,"ext.dealid");return P.hasOwnProperty(r)?a.cpm=e.price/P[r]:a.cpm=e.price/100,a.requestId=e.impid,s&&(a.dealId=s),a.netRevenue=true,a.currency=r,a.creativeId=e.hasOwnProperty("crid")?e.crid:"-",e.mtype==V?a.vastXml=e.adm:e.ext&&e.ext.vasturl&&(a.vastUrl=e.ext.vasturl),e.ext&&e.ext.vasturl||e.mtype==V?(a.width=t.video.w,a.height=t.video.h,a.mediaType=n.d,a.mediaTypes=t.mediaTypes,a.ttl=o?e.exp:3600):(a.ad=e.adm,a.width=e.w,a.height=e.h,a.mediaType=n.b,a.ttl=o?e.exp:300),a.meta={},a.meta.networkId=Object(i.deepAccess)(e,"ext.dspid"),a.meta.brandId=Object(i.deepAccess)(e,"ext.advbrandid"),a.meta.brandName=Object(i.deepAccess)(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(a.meta.advertiserDomains=e.adomain),a}function Z(e){return Array.isArray(e)&&2===e.length&&Object(i.isInteger)(e[0])&&Object(i.isInteger)(e[1])}function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(Z(e))return e[0]===r[0]&&e[1]===r[1];for(var t=0;t<e.length;t++)if(e[t][0]===r[0]&&e[t][1]===r[1])return!0;return!1}function G(e,r){var t=[];e||Object(i.logWarn)("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");var n,a=x(k);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=e&&e.hasOwnProperty(o),d=r&&r.hasOwnProperty(o);s||d||t.push("IX Bid Adapter: ".concat(o," is not included in either the adunit or params level"))}}catch(e){a.e(e)}finally{a.f()}var c=e&&e.hasOwnProperty("protocol"),p=e&&e.hasOwnProperty("protocols"),u=r&&r.hasOwnProperty("protocol"),l=r&&r.hasOwnProperty("protocols");return c||p||u||l||t.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),t}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Z(e)?e:!!Z(e[0])&&e[0]}function Q(e,r,t){if(e)return I(I({},l()(t,(function(r){return r.bidId===e}))),l()(r,(function(r){return r.id===e})))}function $(e,r,t,o){var s="https://htlb.casalemedia.com/cygnus",d=function(e,r){var t=[],n={};if(Object(i.isArray)(e)){var a,o=x(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;N.hasOwnProperty(s.source)&&Object(i.deepAccess)(s,"uids.0")&&(n[s.source]=!0,""!=N[s.source]&&(s.uids[0].ext={rtiPartner:N[s.source]}),delete s.uids[0].atype,t.push(s))}}catch(e){o.e(e)}finally{o.f()}}if(r&&r.id&&r.version){var d={source:"chrome.com",uids:[{id:r.id,ext:{rtiPartner:"flocId",ver:r.version}}]};t.push(d),n["chrome.com"]=!0}return{toSend:t,seenSources:n}}(Object(i.deepAccess)(e,"0.userIdAsEids"),Object(i.deepAccess)(e,"0.userId.flocId")),c=d.toSend;if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo){var p=window.headertag.getIdentityInfo();if(p&&"object"===v(p))for(var u in p)if(p.hasOwnProperty(u)){var l=p[u];!l.responsePending&&l.data&&"object"===v(l.data)&&Object.keys(l.data).length&&!d.seenSources[l.data.source]&&c.push(l.data)}}if(r&&r.bidderCode===w&&!d.seenSources["liveramp.com"])return[];var m={};m.id=e[0].bidderRequestId.toString(),m.site={},m.ext={},m.ext.source="prebid",m.ext.ixdiag={},m.ext.ixdiag.msd=0,m.ext.ixdiag.msi=0,m.imp=[],m.at=1;var b=function(e){for(var r=e.map((function(e){return e.transactionId})).filter((function(e,r,t){return t.indexOf(e)===r})),t={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"6.7.0-pre",userIds:H(e[0])},n=function(n){if(o=e.filter((function(e){return e.transactionId===r[n]}))[0],Object(i.deepAccess)(o,"mediaTypes")){if(Object.keys(o.mediaTypes).length>1&&t.mfu++,Object(i.deepAccess)(o,"mediaTypes.native")&&t.nu++,Object(i.deepAccess)(o,"mediaTypes.banner")&&t.bu++,"outstream"===Object(i.deepAccess)(o,"mediaTypes.video.context")){t.ou++;var a="object"===v(Object(i.deepAccess)(o,"renderer")||Object(i.deepAccess)(o,"mediaTypes.video.renderer"));t.ren=t.ren&&a?Object(i.deepAccess)(t,"ren"):a}"instream"===Object(i.deepAccess)(o,"mediaTypes.video.context")&&t.iu++,t.allu++}},a=0;a<r.length;a++){var o;n(a)}return t}(e);for(var f in b)m.ext.ixdiag[f]=b[f];var y=function(){if(!L.localStorageIsEnabled())return;var e,r={};try{e=JSON.parse(L.getDataFromLocalStorage(F)||"{}")}catch(e){return Object(i.logError)("ix can not read ixdiag from localStorage."),null}return Object.keys(e).forEach((function(t){Object.keys(e[t]).forEach((function(i){"number"==typeof e[t][i]&&(r[i]=r[i]?r[i]+e[t][i]:e[t][i])}))})),r}();if(Object(i.isEmpty)(y)||(m.ext.ixdiag.err=y),e[0].schain&&(m.source={ext:{schain:e[0].schain}}),c.length>0&&(m.user={},m.user.eids=c),document.referrer&&""!==document.referrer&&(m.site.ref=document.referrer),r){if(r.gdprConsent){var g=r.gdprConsent;g.hasOwnProperty("gdprApplies")&&(m.regs={ext:{gdpr:g.gdprApplies?1:0}}),g.hasOwnProperty("consentString")&&(m.user=m.user||{},m.user.ext={consent:g.consentString||""},g.hasOwnProperty("addtlConsent")&&g.addtlConsent&&(m.user.ext.consented_providers_settings={consented_providers:g.addtlConsent}))}r.uspConsent&&Object(i.deepSetValue)(m,"regs.ext.us_privacy",r.uspConsent),r.refererInfo&&(m.site.page=r.refererInfo.referer)}a.b.getConfig("coppa")&&Object(i.deepSetValue)(m,"regs.coppa",1);var h={};h.s=e[0].params.siteId,h.v=o,h.ac="j",h.sd=1,8.1===o&&(h.nf=1);var j=r&&r.bidderCode||"ix",A=a.b.getConfig(j),S=[],_=0,P=Object.keys(t),T="".concat(s).concat(Object(i.parseQueryStringParameters)(I(I({},h),{},{r:JSON.stringify(m)}))).length;if(T>D)return Object(i.logError)("IX Bid Adapter: Base request size has exceeded maximum request size.",{bidder:E,code:z.EXCEEDS_MAX_SIZE}),S;var C=T,X=0,k=!1;if(A){if("object"===v(A.firstPartyData)){var B=A.firstPartyData,U="?";for(var V in B)B.hasOwnProperty(V)&&(U+="".concat(encodeURIComponent(V),"=").concat(encodeURIComponent(B[V]),"&"));U=U.slice(0,-1),(X=encodeURIComponent(U).length)<D?("page"in m.site?m.site.page+=U:m.site.page=U,C+=X):Object(i.logError)("IX Bid Adapter: IX config FPD request size has exceeded maximum request size.",{bidder:E,code:z.IX_FPD_EXCEEDS_MAX_SIZE})}"number"==typeof A.timeout&&(h.t=A.timeout),"boolean"==typeof A.detectMissingSizes?m.ext.ixdiag.dms=A.detectMissingSizes:m.ext.ixdiag.dms=!0}for(var M=function(r){if(C>=D||S.length>=4)return"break";for(var o=t[P[r]],d=o.missingCount,c=void 0===d?0:d,p=o.missingImps,u=void 0===p?[]:p,l=o.ixImps,b=!1,f=D-C,y={ixImps:void 0===l?[]:l,missingBannerImpressions:u},g=Object.keys(y).map((function(e){return y[e]})).filter((function(e){return Array.isArray(e)})).reduce((function(e,r){return e.concat.apply(e,O(r))}),[]),v=encodeURIComponent(JSON.stringify({impressionObjects:g})).length;g.length&&v>f;)b=!0,g.pop(),v=encodeURIComponent(JSON.stringify({impressionObjects:g})).length;if(g.length&&n.b in g[0]){var j=g[0],x=j.id,A=j.banner.topframe,w=j.ext,N=t[P[r]].gpid,X={id:x,banner:{topframe:A,format:g.map((function(e){var r=e.banner;return{w:r.w,h:r.h,ext:e.ext}}))}};(w.dfp_ad_unit_code||N)&&(X.ext={},X.ext.dfp_ad_unit_code=w.dfp_ad_unit_code,X.ext.gpid=N),"bidfloor"in g[0]&&(X.bidfloor=g[0].bidfloor),"bidfloorcur"in g[0]&&(X.bidfloorcur=g[0].bidfloorcur),m.imp.push(X),m.ext.ixdiag.msd+=c,m.ext.ixdiag.msi+=u.length}else{var B;(B=m.imp).push.apply(B,O(g))}C+=v;var F=a.b.getConfig("ortb2")||{};if(!Object(i.isEmpty)(F)&&!k){m.ext.ixdiag.fpd=!0;var U=I({},F.site||F.context);Object.keys(U).forEach((function(e){-1===R.SITE.indexOf(e)&&delete U[e]}));var L=I({},F.user);Object.keys(L).forEach((function(e){-1===R.USER.indexOf(e)&&delete L[e]}));var V=Object(i.deepClone)(m);if(V.site=Object(i.mergeDeep)({},V.site,U),V.user=Object(i.mergeDeep)({},V.user,L),"".concat(s).concat(Object(i.parseQueryStringParameters)(I(I({},h),{},{r:JSON.stringify(V)}))).length<D){m.site=Object(i.mergeDeep)({},m.site,U),m.user=Object(i.mergeDeep)({},m.user,L),k=!0;var M=encodeURIComponent(JSON.stringify(I(I({},U),L))).length;C+=M}else Object(i.logError)("IX Bid Adapter: FPD request size has exceeded maximum request size.",{bidder:E,code:z.PB_FPD_EXCEEDS_MAX_SIZE})}var q=r===P.length-1;if(b||q){var J=Object(i.deepClone)(h);q&&!_||(m.ext.ixdiag.sn=_,J.sn=_),_++,J.r=JSON.stringify(m),S.push({method:"GET",url:s,data:J,validBidRequests:e}),C=T,m.imp=[],m.ext.ixdiag.msd=0,m.ext.ixdiag.msi=0,k=!1}},q=0;q<P.length;q++){if("break"===M(q))break}return S}function H(e){var r=e.userId||{};return X.filter((function(e){return r[e]}))}function K(e,r){if(r)for(var t=0;t<e.length;t++){var i=e[t];if(r[0]===i[0]&&r[1]===i[1]){e.splice(t,1);break}}}function ee(e,r){var t=function(e){var r=M(e),t=Object(i.deepAccess)(e,"mediaTypes.video"),a=Object(i.deepAccess)(e,"params.video");if(G(t,a).length)return{};for(var o in r.video=a?Object(i.deepClone)(e.params.video):{},t)-1===B.indexOf(o)||r.video.hasOwnProperty(o)||(r.video[o]=t[o]);if(r.video.minduration>r.video.maxduration)return Object(i.logError)("IX Bid Adapter: video minduration [".concat(r.video.minduration,"] cannot be greater than video maxduration [").concat(r.video.maxduration,"]"),{bidder:E,code:z.VIDEO_DURATION_INVALID}),{};var s=a&&a.context||t&&t.context;if(s&&!r.video.hasOwnProperty("placement")&&(s===b.a?r.video.placement=1:s===b.b?r.video.placement=4:Object(i.logWarn)("IX Bid Adapter: Video context '".concat(s,"' is not supported"))),!r.video.w||!r.video.h){var d=Y(Object(i.deepAccess)(r,"video.playerSize"))||Y(Object(i.deepAccess)(e,"params.size"));if(!d)return Object(i.logWarn)("IX Bid Adapter: Video size is missing in [mediaTypes.video] missing"),{};r.video.w=d[0],r.video.h=d[1],Object(i.deepAccess)(r,"ext.sid")||(r.ext.sid=Object(i.parseGPTSingleSizeArray)(d))}return q(e,r,n.d),r}(e);0!=Object.keys(t).length&&(r[e.transactionId]={},r[e.transactionId].ixImps=[],r[e.transactionId].ixImps.push(t))}function re(e,r,t){var o=I(I({},{detectMissingSizes:!0}),a.b.getConfig("ix")),s=function(e){var r=M(e);r.banner={};var t=Object(i.deepAccess)(e,"params.size");return t&&(r.banner.w=t[0],r.banner.h=t[1],Object(i.deepAccess)(r,"ext.sid")||(r.ext.sid=Object(i.parseGPTSingleSizeArray)(t))),r.banner.topframe=Object(i.inIframe)()?0:1,q(e,r,n.b),r}(e);W(Object(i.deepAccess)(e,"mediaTypes.banner.sizes"),Object(i.deepAccess)(e,"params.size"))&&(t.hasOwnProperty(e.transactionId)||(t[e.transactionId]={}),t[e.transactionId].hasOwnProperty("ixImps")||(t[e.transactionId].ixImps=[]),t[e.transactionId].ixImps.push(s),t[e.transactionId].gpid=Object(i.deepAccess)(e,"ortb2Imp.ext.gpid")),o.hasOwnProperty("detectMissingSizes")&&o.detectMissingSizes&&function(e,r,t){var n=e.transactionId;if(r.hasOwnProperty(n)){var a=[];r[n].hasOwnProperty("missingSizes")&&(a=r[n].missingSizes),K(a,e.params.size),r[n].missingSizes=a}else if(Object(i.deepAccess)(e,"mediaTypes.banner.sizes")){var o=Object(i.deepClone)(e.mediaTypes.banner.sizes);K(o,e.params.size);var s={missingSizes:o,impression:t};r[n]=s}}(e,r,s)}function te(e,r,t){var a=Object(i.deepClone)(r);return a.ext.sid=Object(i.parseGPTSingleSizeArray)(t),a.banner.w=t[0],a.banner.h=t[1],q(e,a,n.b),a}function ie(e){if("ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===E){var r={hasEnforcementHook:!1,valid:Object(i.hasDeviceAccess)()};Object(d.d)(10,E,r,(function(r){r.valid&&function(e){if(L.localStorageIsEnabled()){var r;try{r=JSON.parse(L.getDataFromLocalStorage(F)||"{}")}catch(e){Object(i.logWarn)("ix can not read ixdiag from localStorage.")}var t=new Date;if(Object.keys(r).map((function(e){var i=new Date(e);i.setDate(i.getDate()+7)-t<0&&delete r[e]})),"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===E){var n=t.toISOString().slice(0,10),a=e.arguments[1].code;a&&(r[n]=r[n]||{},Number(r[n][a])||(r[n][a]=0),r[n][a]++)}L.setDataInLocalStorage(F,JSON.stringify(r))}}(e)}))}}function ne(e){e.renderer.push((function(){var r={width:e.width,height:e.height,timeout:3e3};e.vastXml?window.IXOutstreamPlayer(e.vastXml,e.adUnitCode,r):window.IXOutstreamPlayer(e.vastUrl,e.adUnitCode,r)}))}function ae(e){var r=g.a.install({id:e,url:"https://js-sec.indexww.com/htv/video-player.js",loaded:!1});try{r.setRender(ne)}catch(e){Object(i.logWarn)("Prebid Error calling setRender on renderer",e)}return r}var oe={code:E,gvlid:10,aliases:[{code:w,gvlid:10,skipPbsAliasing:!1}],supportedMediaTypes:_,isBidRequestValid:function(e){U||(p.a.on(s.a.EVENTS.AUCTION_DEBUG,ie),p.a.on(s.a.EVENTS.AD_RENDER_FAILED,ie),U=!0);var r,t,n=Object(i.deepAccess)(e,"params.video"),a=Object(i.deepAccess)(e,"params.size"),o=Object(i.deepAccess)(e,"mediaTypes.banner.sizes"),d=Object(i.deepAccess)(e,"mediaTypes.video"),c=Object(i.deepAccess)(e,"mediaTypes.video.playerSize"),u=e.params.hasOwnProperty("bidFloor"),l=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!Object(i.contains)(_,e.mediaType))return Object(i.logWarn)("IX Bid Adapter: media type is not supported."),!1;if(Object(i.deepAccess)(e,"mediaTypes.banner")&&!o)return!1;if(a){var m=Y(a);if(!m)return Object(i.logError)("IX Bid Adapter: size has invalid format.",{bidder:E,code:z.BID_SIZE_INVALID_FORMAT}),!1;if(!W(e.sizes,m)&&!W(c,m)&&!W(o,m))return Object(i.logError)("IX Bid Adapter: bid size is not included in ad unit sizes or player size.",{bidder:E,code:z.BID_SIZE_NOT_INCLUDED}),!1}if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return Object(i.logError)("IX Bid Adapter: siteId must be string or number type.",{bidder:E,code:z.SITE_ID_INVALID_VALUE}),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return Object(i.logError)("IX Bid Adapter: siteId must valid value",{bidder:E,code:z.SITE_ID_INVALID_VALUE}),!1;if((u||l)&&!(u&&l&&(r=e.params.bidFloor,t=e.params.bidFloorCur,Boolean("number"==typeof r&&"string"==typeof t&&t.match(/^[A-Z]{3}$/)))))return Object(i.logError)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format.",{bidder:E,code:z.BID_FLOOR_INVALID_FORMAT}),!1;if(d&&n){var b=G(d,n);if(b.length)return b.forEach((function(e){Object(i.logError)(e,{bidder:E,code:z.PROPERTY_NOT_INCLUDED})})),!1}return!0},buildRequests:function(e,r){var t=[],a={},o={},s={},d={};for(var c in e.forEach((function(e){var r=Object.keys(Object(i.deepAccess)(e,"mediaTypes",{}));switch(function(e){return Object(i.deepAccess)(e,"params.video")&&Object(i.deepAccess)(e,"mediaTypes.video")?n.d:n.b}(e)){case n.b:re(e,d,a);break;case n.d:ee(e,o)}y()(r,n.b)&&y()(r,n.d)&&(s[e.transactionId]=e)})),Object.keys(s).forEach((function(e){var r=s[e];a[e]||re(r,d,a),o[e]||ee(r,o)})),d)if(d.hasOwnProperty(c)){var p=d[c].missingSizes;a.hasOwnProperty(c)||(a[c]={}),a[c].hasOwnProperty("missingImps")||(a[c].missingImps=[],a[c].missingCount=0);for(var u=d[c].impression,l=0;l<p.length;l++){var m=te(e[0],u,p[l]);a[c].missingImps.push(m),a[c].missingCount++}}return Object.keys(a).length>0&&t.push.apply(t,O($(e,r,a,7.2))),Object.keys(o).length>0&&t.push.apply(t,O($(e,r,o,8.1))),t},interpretResponse:function(e,r){var t=[],n=null;if(!e.hasOwnProperty("body")||!e.body.hasOwnProperty("seatbid"))return t;for(var a=e.body,o=a.seatbid,s=0;s<o.length;s++)if(o[s].hasOwnProperty("bid")){for(var d=o[s].bid,c=JSON.parse(r.data.r),p=0;p<d.length;p++){var u=Q(d[p].impid,c.imp,r.validBidRequests);n=J(d[p],a.cur,u),Object(i.deepAccess)(n,"mediaTypes.video.renderer")||"outstream"!==Object(i.deepAccess)(n,"mediaTypes.video.context")||(n.mediaTypes.video.renderer=ae(d[p].bidId)),t.push(n)}if(Object(i.deepAccess)(c,"ext.ixdiag.err")&&L.localStorageIsEnabled())try{L.removeDataFromLocalStorage(F)}catch(e){Object(i.logError)("ix can not clear ixdiag from localStorage.")}}return t},transformBidParams:function(e,r){return Object(i.convertTypes)({siteID:"number"},e)},getUserSyncs:function(e,r){return e.iframeEnabled?[{type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"}]:[]}};Object(m.registerBidder)(oe),window.pbjs.installedModules.push("ixBidAdapter")}},[594]);
pbjsChunk([185],{720:function(e,t,n){e.exports=n(721)},721:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"USER_ID_CODE_TO_QUERY_ARG",(function(){return b})),n.d(t,"spec",(function(){return f}));var r=n(0),a=n(3),i=n(1),o=n(2),d=n(12),c=n.n(d);function s(e){return(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})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,d=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){d=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(d)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(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.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=[o.b,o.d],l=["startdelay","mimes","minduration","maxduration","startdelay","skippable","playbackmethod","api","protocols","boxingallowed","linearity","delivery","protocol","placement","minbitrate","maxbitrate"],b={britepoolid:"britepoolid",criteoId:"criteoid",fabrickId:"nuestarid",haloId:"audigentid",id5id:"id5id",idl_env:"lre",IDP:"zeotapid",idxId:"idxid",intentIqId:"intentiqid",lipb:"lipbid",lotamePanoramaId:"lotameid",merkleId:"merkleid",netId:"netid",parrableId:"parrableid",pubcid:"pubcid",quantcastId:"quantcastid",tapadId:"tapadid",tdid:"ttduuid",uid2:"uid2",flocId:"floc",admixerId:"admixerid",deepintentId:"deepintentid",dmdId:"dmdid",nextrollId:"nextrollid",novatiq:"novatiqid",mwOpenLinkId:"mwopenlinkid",dapId:"dapid",amxId:"amxid",kpuid:"kpuid",publinkId:"publinkid",naveggId:"naveggid",imuid:"imuid",adtelligentId:"adtelligentid"},f={code:"openx",gvlid:69,supportedMediaTypes:m,isBidRequestValid:function(e){var t=e.params.delDomain||e.params.platform;return Object(r.deepAccess)(e,"mediaTypes.banner")&&t?!!e.params.unit||Object(r.deepAccess)(e,"mediaTypes.banner.sizes.length")>0:!(!e.params.unit||!t)},buildRequests:function(e,t){if(0===e.length)return[];var n=[],i=u(function(e){return e.reduce((function(e,t){var n;return n=t,Object(r.deepAccess)(n,"mediaTypes.video")&&!Object(r.deepAccess)(n,"mediaTypes.banner")||n.mediaType===o.d?e[0].push(t):e[1].push(t),e}),[[],[]])}(e),2),d=i[0],s=i[1];return s.length>0&&n.push(function(e,t){var n=[],i=!1,d=v(e,t),c=Object(r._map)(e,(function(e){return e.params.unit}));d.aus=Object(r._map)(e,(function(e){return Object(r.parseSizesInput)(e.mediaTypes.banner.sizes).join(",")})).join("|"),d.divids=Object(r._map)(e,(function(e){return encodeURIComponent(e.adUnitCode)})).join(","),d.aucs=Object(r._map)(e,(function(e){var t=Object(r.deepAccess)(e,"ortb2Imp.ext.data.pbadslot");return encodeURIComponent(t||"")})).join(","),c.some((function(e){return e}))&&(d.auid=c.join(","));e.some((function(e){return e.params.doNotTrack}))&&(d.ns=1);(!0===a.b.getConfig("coppa")||e.some((function(e){return e.params.coppa})))&&(d.tfcd=1);e.forEach((function(e){if(e.params.customParams){var t=Object(r._map)(Object.keys(e.params.customParams),(function(t){return function(e,t){var n=t[e];Object(r.isArray)(n)&&(n=n.join(","));return(e.toLowerCase()+"="+n.toLowerCase()).replace("+",".").replace("/","_")}(t,e.params.customParams)})),a=window.btoa(t.join("&"));i=!0,n.push(a)}else n.push("")})),i&&(d.tps=n.join(","));return g(d,o.b,e),{method:"GET",url:d.ph?"https://u.openx.net/w/1.0/arj":"https://".concat(e[0].params.delDomain,"/w/1.0/arj"),data:d,payload:{bids:e,startTime:new Date}}}(s,t)),d.length>0&&d.forEach((function(e){n.push(function(e,t){var n=function(e,t){var n,a,i=Object(r.deepAccess)(e,"mediaTypes.video"),d=v([e],t),s=Object(r.deepAccess)(e,"params.video")||{},u=Object(r.deepAccess)(e,"mediaTypes.video.context"),p=Object(r.deepAccess)(e,"mediaTypes.video.playerSize");Object(r.isArray)(e.sizes)&&2===e.sizes.length&&!Object(r.isArray)(e.sizes[0])?(n=parseInt(e.sizes[0],10),a=parseInt(e.sizes[1],10)):Object(r.isArray)(e.sizes)&&Object(r.isArray)(e.sizes[0])&&2===e.sizes[0].length?(n=parseInt(e.sizes[0][0],10),a=parseInt(e.sizes[0][1],10)):Object(r.isArray)(p)&&2===p.length&&(n=parseInt(p[0],10),a=parseInt(p[1],10));var m={w:n,h:a},b=e.params.video||e.params.openrtb||{};b.openrtb&&(b=b.openrtb);Object(r.isArray)(b.imp)&&(b=b.imp[0].video);Object.keys(b).filter((function(e){return c()(l,e)})).forEach((function(e){return m[e]=b[e]})),Object.keys(i).filter((function(e){return c()(l,e)})).forEach((function(e){return m[e]=i[e]}));var f={imp:[{video:m}]};d.openrtb=JSON.stringify(f),d.auid=e.params.unit,d.vwd=n||s.vwd,d.vht=a||s.vht,"outstream"===u&&(d.vos="101");s.mimes&&(d.vmimes=s.mimes);e.params.test&&(d.vtest=1);var h=Object(r.deepAccess)(e,"ortb2Imp.ext.data.pbadslot");h&&(d.aucs=encodeURIComponent(h));return g(d,o.d,[e]),d}(e,t);return{method:"GET",url:n.ph?"https://u.openx.net/v/1.0/avjp":"https://".concat(e.params.delDomain,"/v/1.0/avjp"),data:n,payload:{bid:e,startTime:new Date}}}(e,t))})),n},interpretResponse:function(e,t){var n=e.body;return function(e){return/avjp$/.test(e.url)?o.d:o.b}(t)===o.d?function(e,t){var n=t.bid,a=(t.startTime,[]);if(void 0!==e&&""!==e.vastUrl&&e.pub_rev>0){var i=Object(r.parseUrl)(e.vastUrl).search||{},d={};d.requestId=n.bidId,e.deal_id&&(d.dealId=e.deal_id),d.ttl=300,d.netRevenue=!0,d.currency=e.currency,d.cpm=parseInt(e.pub_rev,10)/1e3,d.width=parseInt(e.width,10),d.height=parseInt(e.height,10),d.creativeId=e.adid,d.vastUrl=e.vastUrl,d.mediaType=o.d,e.ph=i.ph,e.colo=i.colo,e.ts=i.ts,a.push(d)}return a}(n,t.payload):function(e,t){for(var n=t.bids,r=(t.startTime,e.ads.ad),a=[],i=0;i<r.length;i++){var o=r[i],d=parseInt(o.idx,10),c={};if(c.requestId=n[d].bidId,o.pub_rev){c.cpm=Number(o.pub_rev)/1e3;var s=o.creative[0];s&&(c.width=s.width,c.height=s.height),c.creativeId=s.id,c.ad=o.html,o.deal_id&&(c.dealId=o.deal_id),c.ttl=300,c.netRevenue=!0,c.currency=o.currency,o.tbd&&(c.tbd=o.tbd),c.ts=o.ts,c.meta={},o.brand_id&&(c.meta.brandId=o.brand_id),o.adomain&&length(o.adomain)>0?c.meta.advertiserDomains=o.adomain:c.meta.advertiserDomains=[],o.adv_id&&(c.meta.dspid=o.adv_id),a.push(c)}}return a}(n,t.payload)},getUserSyncs:function(e,t,n,a){if(e.iframeEnabled||e.pixelEnabled)return[{type:e.iframeEnabled?"iframe":"image",url:Object(r.deepAccess)(t,"0.body.ads.pixels")||Object(r.deepAccess)(t,"0.body.pixels")||function(e,t){var n="https://u.openx.net/w/1.0/pd",r=[];e&&(r.push("gdpr="+(e.gdprApplies?1:0)),r.push("gdpr_consent="+encodeURIComponent(e.consentString||"")));t&&r.push("us_privacy="+encodeURIComponent(t));return"".concat(n).concat(r.length>0?"?"+r.join("&"):"")}(n,a)}]},transformBidParams:function(e,t){return Object(r.convertTypes)({unit:"string",customFloor:"number"},e)}};function h(e){var t,n,r,a=window,i=document,o=i.documentElement;if(e){try{a=window.top,i=window.top.document}catch(e){return}o=i.documentElement,r=i.body,t=a.innerWidth||o.clientWidth||r.clientWidth,n=a.innerHeight||o.clientHeight||r.clientHeight}else o=i.documentElement,t=a.innerWidth||o.clientWidth,n=a.innerHeight||o.clientHeight;return"".concat(t,"x").concat(n)}function v(e,t){var n,i=Object(r.inIframe)();n={ju:a.b.getConfig("pageUrl")||t.refererInfo.referer,ch:document.charSet||document.characterSet,res:"".concat(screen.width,"x").concat(screen.height,"x").concat(screen.colorDepth),ifr:i,tz:(new Date).getTimezoneOffset(),tws:h(i),be:1,bc:e[0].params.bc||"".concat("hb_pb","_").concat("3.0.3"),dddid:Object(r._map)(e,(function(e){return e.transactionId})).join(","),nocache:(new Date).getTime()};var o=y("ortb2.user.data");o.length>0&&(n.sm=o);var d,c,s,u,p,m=y("ortb2.site.content.data");if(m.length>0&&(n.scsm=m),e[0].params.platform&&(n.ph=e[0].params.platform),t.gdprConsent){var l=t.gdprConsent;void 0!==l.consentString&&(n.gdpr_consent=l.consentString),void 0!==l.gdprApplies&&(n.gdpr=l.gdprApplies?1:0),"iab"===a.b.getConfig("consentManagement.cmpApi")&&(n.x_gdpr_f=1)}return t&&t.uspConsent&&(n.us_privacy=t.uspConsent),Object(r.deepAccess)(e[0],"crumbs.pubcid")&&Object(r.deepSetValue)(e[0],"userId.pubcid",Object(r.deepAccess)(e[0],"crumbs.pubcid")),d=n,c=e[0].userId,Object(r._each)(c,(function(e,t){var n=b[t];if(b.hasOwnProperty(t))switch(t){case"merkleId":case"flocId":case"uid2":d[n]=e.id;break;case"lipb":if(d[n]=e.lipbid,Array.isArray(e.segments)&&e.segments.length>0){var r="liveintent:"+e.segments.join("|");d.sm="".concat(d.sm?d.sm+",":"").concat(r)}break;case"parrableId":d[n]=e.eid;break;case"id5id":d[n]=e.uid;break;case"novatiq":d[n]=e.snowflake;break;default:d[n]=e}})),n=d,e[0].schain&&(n.schain=(s=e[0].schain,"".concat(s.ver,",").concat(s.complete,"!").concat((u=s.nodes,p=["asi","sid","hp","rid","name","domain"],u.map((function(e){return p.map((function(t){return e[t]||""})).join(",")})).join("!"))))),n}function y(e){var t=a.b.getConfig(e);if(!Array.isArray(t)||!t.length)return"";var n=t.filter((function(e){return Array.isArray(e.segment)&&e.segment.length>0&&void 0!==e.name&&e.name.length>0})).reduce((function(e,t){var n="object"===s(t.ext)&&t.ext.segtax?"".concat(t.name,"/").concat(t.ext.segtax):t.name;return e[n]=(e[n]||[]).concat(t.segment.map((function(e){return e.id}))),e}),{});return Object.keys(n).map((function(e,t){return e+":"+n[e].join("|")})).join(",")}function g(e,t,n){var r=[],i=!1;n.forEach((function(e){var n=function(e,t){var n={},r=a.b.getConfig("currency.adServerCurrency")||"USD";"function"==typeof e.getFloor&&(n=e.getFloor({currency:r,mediaType:t,size:"*"}));var i=n.floor||e.params.customFloor||0;return Math.round(1e3*i)}(e,t);n?(r.push(n),i=!0):r.push(0)})),i&&(e.aumfs=r.join(","))}Object(i.registerBidder)(f),window.pbjs.installedModules.push("openxBidAdapter")}},[720]);
pbjsChunk([39],{777:function(e,t,r){e.exports=r(778)},778:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetSyncedStatus=function(){T=0},t.resetWurlMap=function(){W={}},t.PrebidServer=K;var n=r(113),i=r(40),c=r(0),s=r(5),o=r.n(s),a=r(8),d=r(3),p=r(2),b=r(39),u=r(1),l=r(10),f=r.n(l),g=r(12),v=r.n(g),y=r(779),O=r(4),m=r(11),j=r.n(m);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,c=[],s=!0,o=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);s=!0);}catch(e){o=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(o)throw i}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(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.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function E(e){return(E="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)}var P,k,_=d.b.getConfig,I=o.a.S2S.SRC,T=0,B={timeout:1e3,syncTimeout:1e3,maxBids:1,adapter:"prebidServer",adapterOptions:{},syncUrlModifier:{}};function U(e){if(e){var t=Array.isArray(e)?e:[e],r=[];return t.every((function(t,n,i){if((function(e){["endpoint","syncEndpoint"].forEach((function(t){if(Object(c.isStr)(e[t])){var r=e[t];e[t]={p1Consent:r,noP1Consent:r}}!Object(c.isPlainObject)(e[t])||e[t].p1Consent&&e[t].noP1Consent||["p1Consent","noP1Consent"].forEach((function(r){e[t][r]||Object(c.logWarn)("s2sConfig.".concat(t,".").concat(r," not defined. PBS request will be skipped in some P1 scenarios."))}))}))}(e),!1!==function(e){if(e.defaultVendor){var t=e.defaultVendor,r=Object.keys(e);if(!y.a[t])return Object(c.logError)("Incorrect or unavailable prebid server default vendor option: "+t),!1;Object.keys(y.a[t]).forEach((function(n){B[n]!==e[n]&&v()(r,n)||(e[n]=y.a[t][n])}))}return e.enabled="boolean"==typeof e.enabled&&e.enabled}(t))&&!1!==function(e){var t=Object.keys(e);if(["accountId","bidders","endpoint"].filter((function(e){return!v()(t,e)&&(Object(c.logError)(e+" missing in server to server config"),!0)})).length>0)return!1}(t))return Array.isArray(t.bidders)&&(i[n].bidders=t.bidders.filter((function(e){return-1===r.indexOf(e)&&(r.push(e),!0)}))),!0;return Object(c.logWarn)("prebidServer: s2s config is disabled"),!1}))?P=t:void 0}}function D(e,t){if(0!==e.length){var r=e.shift();r.no_cookie?function(e,t,r,n,i){i.syncUrlModifier&&"function"==typeof i.syncUrlModifier[r]&&(t=i.syncUrlModifier[r](e,t,r));!function(e,t,r,n,i){t?"image"===e||"redirect"===e?(Object(c.logMessage)('Invoking image pixel user sync for bidder: "'.concat(r,'"')),Object(c.triggerPixel)(t,n,i)):"iframe"===e?(Object(c.logMessage)('Invoking iframe user sync for bidder: "'.concat(r,'"')),Object(c.insertUserSyncIframe)(t,n,i)):(Object(c.logError)('User sync type "'.concat(e,'" not supported for bidder: "').concat(r,'"')),n()):(Object(c.logError)('No sync url for bidder "'.concat(r,'": ').concat(t)),n())}(e,t,r,n,i.syncTimeout)}(r.usersync.type,r.usersync.url,r.bidder,c.bind.call(D,null,e,t),t):D(e,t)}}d.b.setDefaults({s2sConfig:B}),_("s2sConfig",(function(e){return U(e.s2sConfig)}));var V={sponsoredBy:1,body:2,rating:3,likes:4,downloads:5,price:6,salePrice:7,phone:8,address:9,body2:10,cta:12},R=Object.keys(V),N={icon:1,image:3},q={img:1,js:2};[V,N,{impression:1,"viewable-mrc50":2,"viewable-mrc100":3,"viewable-video50":4},q].forEach((function(e){Object.keys(e).forEach((function(t){e[e[t]]=t}))}));var M={},z={},W={};var J=function(e,t,r,n,i){var s=[],o={},p=t[0],u=new Set;if(r.forEach((function(e){for(var r=e.code,i=1;u.has(r);)i++,r="".concat(e.code,"-").concat(i);u.add(r);var l,f=Object(b.h)(Object(c.deepAccess)(e,"mediaTypes.native"));if(f)try{l=z[r]=Object.keys(f).reduce((function(e,t){var r=f[t];function n(e){return w({required:r.required?1:0},e?Object(c.cleanObj)(e):{})}switch(t){case"image":case"icon":var i=N[t],s=Object(c.cleanObj)({type:i,w:Object(c.deepAccess)(r,"sizes.0"),h:Object(c.deepAccess)(r,"sizes.1"),wmin:Object(c.deepAccess)(r,"aspect_ratios.0.min_width"),hmin:Object(c.deepAccess)(r,"aspect_ratios.0.min_height")});if(!(s.w&&s.h||s.hmin&&s.wmin))throw"invalid img sizes (must provide sizes or min_height & min_width if using aspect_ratios)";if(Array.isArray(r.aspect_ratios)){var o=r.aspect_ratios.filter((function(e){return e.ratio_width&&e.ratio_height})).map((function(e){return"".concat(e.ratio_width,":").concat(e.ratio_height)}));o.length>0&&(s.ext={aspectratios:o})}e.push(n({img:s}));break;case"title":if(!r.len)throw"invalid title.len";e.push(n({title:{len:r.len}}));break;default:var a=V[t];a&&e.push(n({data:{type:a,len:r.len}}))}return e}),[])}catch(e){Object(c.logError)("error creating native request: "+String(e))}var g=Object(c.deepAccess)(e,"mediaTypes.video"),v=Object(c.deepAccess)(e,"mediaTypes.banner");e.bids.forEach((function(e){if(M["".concat(r).concat(e.bidder)]=e.bid_id,a.default.aliasRegistry[e.bidder]){var t=a.default.bidderRegistry[e.bidder];t&&!t.getSpec().skipPbsAliasing&&(o[e.bidder]=a.default.aliasRegistry[e.bidder])}}));var y={};if(v&&v.sizes){var O=Object(c.parseSizesInput)(v.sizes).map((function(e){var t=x(e.split("x"),2),r=t[0],n=t[1];return{w:parseInt(r,10),h:parseInt(n,10)}}));y.banner={format:O},v.pos&&(y.banner.pos=v.pos)}if(Object(c.isEmpty)(g)||("outstream"!==g.context||g.renderer||e.renderer?("instream"!==g.context||g.hasOwnProperty("placement")||(g.placement=1),y.video=Object.keys(g).filter((function(e){return"context"!==e})).reduce((function(e,t){return"playerSize"===t?(e.w=Object(c.deepAccess)(g,"".concat(t,".0.0")),e.h=Object(c.deepAccess)(g,"".concat(t,".0.1"))):e[t]=g[t],e}),{})):Object(c.logError)("Outstream bid without renderer cannot be sent to Prebid Server.")),l)try{y.native={request:JSON.stringify({context:1,plcmttype:1,eventtrackers:[{event:1,methods:[1]}],assets:l}),ver:"1.2"}}catch(e){Object(c.logError)("error creating native request: "+String(e))}var m=e.bids.reduce((function(r,i){var c=a.default.bidderRegistry[i.bidder];return c&&c.getSpec().transformBidParams&&(i.params=c.getSpec().transformBidParams(i.params,!0,e,t)),r[i.bidder]=n.adapterOptions&&n.adapterOptions[i.bidder]?w({},i.params,n.adapterOptions[i.bidder]):i.params,r}),S({},Object(c.deepAccess)(e,"ortb2Imp.ext"))),h={id:r,ext:m,secure:n.secure},C=S({},Object(c.deepAccess)(e,"ortb2Imp.ext.data"));Object.keys(C).forEach((function(e){"pbadslot"===e?"string"==typeof C[e]&&C[e]?Object(c.deepSetValue)(h,"ext.data.pbadslot",C[e]):delete h.ext.data.pbadslot:"adserver"===e?["name","adslot"].forEach((function(e){var t=Object(c.deepAccess)(C,"adserver.".concat(e));"string"==typeof t&&t&&Object(c.deepSetValue)(h,"ext.data.adserver.".concat(e.toLowerCase()),t)})):Object(c.deepSetValue)(h,"ext.data.".concat(e),C[e])})),w(h,y);var A=j()(p.bids,(function(t){return t.adUnitCode===e.code&&t.storedAuctionResponse}));A&&Object(c.deepSetValue)(h,"ext.prebid.storedauctionresponse.id",A.storedAuctionResponse.toString());var E=j()(p.bids,(function(t){return t.adUnitCode===e.code&&"function"==typeof t.getFloor}));if(E){var P;try{P=E.getFloor({currency:d.b.getConfig("currency.adServerCurrency")||"USD"})}catch(e){Object(c.logError)("PBS: getFloor threw an error: ",e)}P&&P.currency&&!isNaN(parseFloat(P.floor))&&(h.bidfloor=parseFloat(P.floor),h.bidfloorcur=P.currency)}(h.banner||h.video||h.native)&&s.push(h)})),s.length){var l={id:p.auctionId,source:{tid:e.tid},tmax:n.timeout,imp:s,test:0,ext:{prebid:{auctiontimestamp:p.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}}}};l.ext.prebid=w(l.ext.prebid,{channel:{name:"pbjs",version:pbjs.version}}),_("debug")&&(l.ext.prebid=w(l.ext.prebid,{debug:!0})),n.extPrebid&&"object"===E(n.extPrebid)&&(l.ext.prebid=Object(c.mergeDeep)(l.ext.prebid,n.extPrebid));var f=d.b.getConfig("currency.adServerCurrency");f&&"string"==typeof f?l.cur=[f]:Array.isArray(f)&&f.length&&(l.cur=[f[0]]),function(e,t,r){e&&("object"===E(d.b.getConfig("app"))?(e.app=d.b.getConfig("app"),e.app.publisher={id:r}):(e.site={},Object(c.isPlainObject)(d.b.getConfig("site"))&&(e.site=d.b.getConfig("site")),Object(c.deepAccess)(e.site,"publisher.id")||Object(c.deepSetValue)(e.site,"publisher.id",r),e.site.page||(e.site.page=t)),"object"===E(d.b.getConfig("device"))&&(e.device=d.b.getConfig("device")),e.device||(e.device={}),e.device.w||(e.device.w=window.innerWidth),e.device.h||(e.device.h=window.innerHeight))}(l,t[0].refererInfo.referer,n.accountId);var g=Object(c.deepAccess)(t,"0.bids.0.schain");g&&(l.source.ext={schain:g}),Object(c.isEmpty)(o)||(l.ext.prebid.aliases=S(S({},l.ext.prebid.aliases),o));var y=Object(c.deepAccess)(t,"0.bids.0.userIdAsEids");Object(c.isArray)(y)&&y.length>0&&Object(c.deepSetValue)(l,"user.ext.eids",y),Object(c.isArray)(k)&&k.length>0&&(i&&Object(c.isArray)(i)&&k.forEach((function(e){e.bidders&&(e.bidders=e.bidders.filter((function(e){return v()(i,e)})))})),Object(c.deepSetValue)(l,"ext.prebid.data.eidpermissions",k));var O=d.b.getConfig("multibid");if(O&&Object(c.deepSetValue)(l,"ext.prebid.multibid",O.reduce((function(e,t){var r={};return Object.keys(t).forEach((function(e){r[e.toLowerCase()]=t[e]})),e.push(r),e}),[])),t){var m;if(p.gdprConsent)"boolean"==typeof p.gdprConsent.gdprApplies&&(m=p.gdprConsent.gdprApplies?1:0),Object(c.deepSetValue)(l,"regs.ext.gdpr",m),Object(c.deepSetValue)(l,"user.ext.consent",p.gdprConsent.consentString),p.gdprConsent.addtlConsent&&"string"==typeof p.gdprConsent.addtlConsent&&Object(c.deepSetValue)(l,"user.ext.ConsentedProvidersSettings.consented_providers",p.gdprConsent.addtlConsent);p.uspConsent&&Object(c.deepSetValue)(l,"regs.ext.us_privacy",p.uspConsent)}!0===_("coppa")&&Object(c.deepSetValue)(l,"regs.coppa",1);var h=_("ortb2")||{};return Object(c.mergeDeep)(l,h),function(e){var t=d.b.getBidderConfig(),r=Object.keys(t).reduce((function(e,r){var n=t[r];if(n.ortb2){var i=Object(c.mergeDeep)({},n.ortb2);e.push({bidders:[r],config:{ortb2:i}})}return e}),[]);r.length&&Object(c.deepSetValue)(e,"ext.prebid.bidderconfig",r)}(l),l}Object(c.logError)("Request to Prebid Server rejected due to invalid media type(s) in adUnit.")},X=function(e,t,r){var n=[];return[["errors","serverErrors"],["responsetimemillis","serverResponseTimeMs"]].forEach((function(r){return function(e,t,r,n){var i=Object(c.deepAccess)(t,"ext.".concat(r));i&&Object.keys(i).forEach((function(t){var r=j()(e,(function(e){return e.bidderCode===t}));r&&(r[n]=i[t])}))}(t,e,r[0],r[1])})),e.seatbid&&e.seatbid.forEach((function(s){(s.bid||[]).forEach((function(a){var d,b="".concat(a.impid).concat(s.seat);M[b]&&(d=Object(c.getBidRequest)(M[b],t));var u=a.price,l=0!==u?o.a.STATUS.GOOD:o.a.STATUS.NO_BID,f=Object(i.createBid)(l,d||{bidder:s.seat,src:I});f.cpm=u;var g=Object(c.deepAccess)(e,["ext","responsetimemillis",s.seat].join("."));d&&g&&(d.serverResponseTimeMs=g);var v,y,O,m=Object(c.deepAccess)(a,"ext.prebid.bidid");Object(c.isStr)(m)&&(f.pbsBidId=m),Object(c.isStr)(Object(c.deepAccess)(a,"ext.prebid.events.win"))&&(v=d.auctionId,y=f.adId,O=Object(c.deepAccess)(a,"ext.prebid.events.win"),[v,y].every(c.isStr)&&(W["".concat(v).concat(y)]=O));var j=Object(c.deepAccess)(a,"ext.prebid.targeting");if(Object(c.isPlainObject)(j)&&(Object(c.isStr)(Object(c.deepAccess)(a,"ext.prebid.events.win"))&&(j=Object(c.getDefinedParams)(j,Object.keys(j).filter((function(e){return-1===e.indexOf("hb_winurl")&&-1===e.indexOf("hb_bidid")})))),f.adserverTargeting=j),f.seatBidId=a.id,Object(c.deepAccess)(a,"ext.prebid.type")===p.d){f.mediaType=p.d;var h=d.sizes&&d.sizes[0];f.playerWidth=h[0],f.playerHeight=h[1],a.ext.prebid.cache&&"object"===E(a.ext.prebid.cache.vastXml)&&a.ext.prebid.cache.vastXml.cacheId&&a.ext.prebid.cache.vastXml.url?(f.videoCacheKey=a.ext.prebid.cache.vastXml.cacheId,f.vastUrl=a.ext.prebid.cache.vastXml.url):j&&j.hb_uuid&&j.hb_cache_host&&j.hb_cache_path&&(f.videoCacheKey=j.hb_uuid,f.vastUrl="https://".concat(j.hb_cache_host).concat(j.hb_cache_path,"?uuid=").concat(j.hb_uuid)),a.adm&&(f.vastXml=a.adm),!f.vastUrl&&a.nurl&&(f.vastUrl=a.nurl)}else if(Object(c.deepAccess)(a,"ext.prebid.type")===p.c){var S,x;f.mediaType=p.c,x="string"==typeof a.adm?f.adm=JSON.parse(a.adm):f.adm=a.adm;var A=(C(S={},q.img,x.imptrackers||[]),C(S,q.js,x.jstracker?[x.jstracker]:[]),S);if(x.eventtrackers&&x.eventtrackers.forEach((function(e){switch(e.method){case q.img:A[q.img].push(e.url);break;case q.js:A[q.js].push(e.url)}})),Object(c.isPlainObject)(x)&&Array.isArray(x.assets)){var w=z[a.impid];f.native=Object(c.cleanObj)(x.assets.reduce((function(e,t){var r=w[t.id];return Object(c.isPlainObject)(t.img)?e[r.img.type?N[r.img.type]:"image"]=Object(c.pick)(t.img,["url","w as width","h as height"]):Object(c.isPlainObject)(t.title)?e.title=t.title.text:Object(c.isPlainObject)(t.data)&&R.forEach((function(n){V[n]===r.data.type&&(e[n]=t.data.value)})),e}),Object(c.cleanObj)({clickUrl:x.link,clickTrackers:Object(c.deepAccess)(x,"link.clicktrackers"),impressionTrackers:A[q.img],javascriptTrackers:A[q.js]})))}else Object(c.logError)("prebid server native response contained no assets")}else a.adm&&a.nurl?(f.ad=a.adm,f.ad+=Object(c.createTrackPixelHtml)(decodeURIComponent(a.nurl))):a.adm?f.ad=a.adm:a.nurl&&(f.adUrl=a.nurl);f.width=a.w,f.height=a.h,a.dealid&&(f.dealId=a.dealid),f.requestId=d.bidId||d.bid_Id,f.creative_id=a.crid,f.creativeId=a.crid,a.burl&&(f.burl=a.burl),f.currency=e.cur?e.cur:"USD",f.meta={};var P=Object(c.deepAccess)(a,"ext.prebid.meta");P&&Object(c.isPlainObject)(P)&&(f.meta=Object(c.deepClone)(P)),a.adomain&&(f.meta.advertiserDomains=a.adomain);var k=r.defaultTtl||60;f.ttl=a.exp?a.exp:k,f.netRevenue=!a.netRevenue||a.netRevenue,n.push({adUnit:d.adUnitCode,bid:f})}))})),n};function F(e){var t,r,n=function(e,t){if([e,t].every(c.isStr))return W["".concat(e).concat(t)]}(e.auctionId,e.adId);Object(c.isStr)(n)&&(Object(c.logMessage)('Invoking image pixel for wurl on BID_WIN: "'.concat(n,'"')),Object(c.triggerPixel)(n),t=e.auctionId,r=e.adId,[t,r].every(c.isStr)&&(W["".concat(t).concat(r)]=void 0))}function H(e,t){return function(e){var t=!0;return e&&e.gdprApplies&&2===e.apiVersion&&(t=!(!0!==Object(c.deepAccess)(e,"vendorData.purpose.consents.1"))),t}(t)?e.p1Consent:e.noP1Consent}function L(e){var t,r;return Array.isArray(e)&&e.length>0&&(t=e[0].gdprConsent,r=e[0].uspConsent),{gdprConsent:t,uspConsent:r}}function K(){var e=new n.a("prebidServer");return e.callBids=function(e,t,r,n,i){var s=Object(c.deepClone)(e.ad_units),p=L(t),b=p.gdprConsent,l=p.uspConsent,g=s.filter((function(e){return e.mediaTypes&&(e.mediaTypes.native||e.mediaTypes.banner&&e.mediaTypes.banner.sizes||e.mediaTypes.video&&e.mediaTypes.video.playerSize)})),y=g.map((function(e){return e.bids.map((function(e){return e.bidder})).filter(c.uniques)})).reduce(c.flatten).filter(c.uniques);if(Array.isArray(P)){if(e.s2sConfig&&e.s2sConfig.syncEndpoint&&H(e.s2sConfig.syncEndpoint,b))!function(e,t,r,n){if(P.length!==T){T++;var i={uuid:Object(c.generateUUID)(),bidders:e,account:n.accountId},s=n.userSyncLimit;Object(c.isNumber)(s)&&s>0&&(i.limit=s),t&&(i.gdpr=t.gdprApplies?1:0,!1!==t.gdprApplies&&(i.gdpr_consent=t.consentString)),r&&(i.us_privacy=r),"boolean"==typeof n.coopSync&&(i.coopSync=n.coopSync);var o=JSON.stringify(i);Object(O.a)(H(n.syncEndpoint,t),(function(e){try{D((e=JSON.parse(e)).bidder_status,n)}catch(e){Object(c.logError)(e)}}),o,{contentType:"text/plain",withCredentials:!0})}}(e.s2sConfig.bidders.map((function(e){return a.default.aliasRegistry[e]||e})).filter((function(e,t,r){return r.indexOf(e)===t})),b,l,e.s2sConfig);var m=J(e,t,g,e.s2sConfig,y),j=m&&JSON.stringify(m);Object(c.logInfo)("BidRequest: "+j);var h=H(e.s2sConfig.endpoint,b);m&&j&&h?i(h,{success:function(i){return function(e,t,r,n,i,s){var p,b=L(r),l=b.gdprConsent,g=b.uspConsent;try{p=JSON.parse(e),X(p,r,s).forEach((function(e){var t=e.adUnit,i=e.bid;Object(u.isValid)(t,i,r)&&n(t,i)})),r.forEach((function(e){return f.a.emit(o.a.EVENTS.BIDDER_DONE,e)}))}catch(e){Object(c.logError)(e)}(!p||p.status&&v()(p.status,"Error"))&&Object(c.logError)("error parsing response: ",p.status);i(),function(e,t,r){e.forEach((function(e){var n=a.default.getBidAdapter(e);n&&n.registerSyncs&&d.b.runWithBidder(e,c.bind.call(n.registerSyncs,n,[],t,r))}))}(t,l,g)}(i,y,t,r,n,e.s2sConfig)},error:n},j,{contentType:"text/plain",withCredentials:!0}):Object(c.logError)("PBS request not made. Check endpoints.")}},f.a.on(o.a.EVENTS.BID_WON,F),w(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,type:I})}Object(c.getPrebidInternal)().setEidPermissions=function(e){k=e},a.default.registerBidAdapter(new K,"prebidServer"),window.pbjs.installedModules.push("prebidServerBidAdapter")},779:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n={appnexus:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",noP1Consent:"https://prebid.adnxs-simple.com/pbs/v1/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid.adnxs.com/pbs/v1/cookie_sync",noP1Consent:"https://prebid.adnxs-simple.com/pbs/v1/cookie_sync"},timeout:1e3},appnexuspsp:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ib.adnxs.com/openrtb2/prebid",noP1Consent:"https://ib.adnxs-simple.com/openrtb2/prebid"},timeout:1e3},rubicon:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction",noP1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid-server.rubiconproject.com/cookie_sync",noP1Consent:"https://prebid-server.rubiconproject.com/cookie_sync"},timeout:500},openx:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid.openx.net/openrtb2/auction",noP1Consent:"https://prebid.openx.net/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid.openx.net/cookie_sync",noP1Consent:"https://prebid.openx.net/cookie_sync"},timeout:1e3}}}},[777]);
pbjsChunk([166],{794:function(e,r,t){e.exports=t(795)},795:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkVideoPlacement=_,t.d(r,"spec",(function(){return X}));var a=t(0),i=t(1),n=t(2),s=t(3),o=t(13);function d(){return(d=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function u(e){return(u="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)}var l="pubmatic",m="PubMatic: ",b="USD",g=void 0,f="https://pubmatic.bbvms.com/r/".concat("$RENDERER",".js"),h={kadpageurl:"",gender:"",yob:"",lat:"",lon:"",wiid:"",profId:"",verId:""},y="number",v="string",O="boolean",E="array",I={mimes:E,minduration:y,maxduration:y,startdelay:y,playbackmethod:E,api:E,protocols:E,w:y,h:y,battr:E,linearity:y,placement:y,minbitrate:y,maxbitrate:y,skip:y},w={TITLE:{ID:1,KEY:"title",TYPE:0},IMAGE:{ID:2,KEY:"image",TYPE:0},ICON:{ID:3,KEY:"icon",TYPE:0},SPONSOREDBY:{ID:4,KEY:"sponsoredBy",TYPE:1},BODY:{ID:5,KEY:"body",TYPE:2},CLICKURL:{ID:6,KEY:"clickUrl",TYPE:0},VIDEO:{ID:7,KEY:"video",TYPE:0},EXT:{ID:8,KEY:"ext",TYPE:0},DATA:{ID:9,KEY:"data",TYPE:0},LOGO:{ID:10,KEY:"logo",TYPE:0},SPONSORED:{ID:11,KEY:"sponsored",TYPE:1},DESC:{ID:12,KEY:"data",TYPE:2},RATING:{ID:13,KEY:"rating",TYPE:3},LIKES:{ID:14,KEY:"likes",TYPE:4},DOWNLOADS:{ID:15,KEY:"downloads",TYPE:5},PRICE:{ID:16,KEY:"price",TYPE:6},SALEPRICE:{ID:17,KEY:"saleprice",TYPE:7},PHONE:{ID:18,KEY:"phone",TYPE:8},ADDRESS:{ID:19,KEY:"address",TYPE:9},DESC2:{ID:20,KEY:"desc2",TYPE:10},DISPLAYURL:{ID:21,KEY:"displayurl",TYPE:11},CTA:{ID:22,KEY:"cta",TYPE:12}},j=1,P=2,T=3,S=[{id:w.SPONSOREDBY.ID,required:!0,data:{type:1}},{id:w.TITLE.ID,required:!0},{id:w.IMAGE.ID,required:!0}],D={1:"PMP",5:"PREF",6:"PMPG"},x=1,Y=2,k={bootstrapPlayer:function(e){var r={code:e.adUnitCode};if(e.vastXml?r.vastXml=e.vastXml:e.vastUrl&&(r.vastUrl=e.vastUrl),e.vastXml||e.vastUrl){for(var t,i=k.getRendererId("pubmatic",e.rendererCode),n=document.getElementById(e.adUnitCode),s=0;s<window.bluebillywig.renderers.length;s++)if(window.bluebillywig.renderers[s]._id===i){t=window.bluebillywig.renderers[s];break}t?t.bootstrap(r,n):Object(a.logWarn)("".concat(m,": Couldn't find a renderer with ").concat(i))}else Object(a.logWarn)("".concat(m,": No vastXml or vastUrl on bid, bailing..."))},newRenderer:function(e,r){var t=f.replace("$RENDERER",e),i=o.a.install({url:t,loaded:!1,adUnitCode:r});try{i.setRender(k.outstreamRender)}catch(e){Object(a.logWarn)("".concat(m,": Error tying to setRender on renderer"),e)}return i},outstreamRender:function(e){e.renderer.push((function(){k.bootstrapPlayer(e)}))},getRendererId:function(e,r){return"".concat(e,"-").concat(r)}},R=[n.b,n.d,n.c],A=0,C=!1,z={},K={};function N(e,r){if(!Object(a.isStr)(r))return r&&Object(a.logWarn)("PubMatic: Ignoring param key: "+e+", expects string-value, found "+u(r)),g;switch(e){case"pmzoneid":return r.split(",").slice(0,50).map((function(e){return e.trim()})).join();case"kadfloor":case"lat":case"lon":return parseFloat(r)||g;case"yob":return parseInt(r)||g;default:return r}}function M(e){var r;e.params.adUnit="",e.params.adUnitIndex="0",e.params.width=0,e.params.height=0,e.params.adSlot=(r=e.params.adSlot,Object(a.isStr)(r)?r.replace(/^\s+/g,"").replace(/\s+$/g,""):(r&&Object(a.logWarn)("pubmatic: adSlot must be a string. Ignoring adSlot"),""));var t=e.params.adSlot,i=t.split(":");if(t=i[0],2==i.length&&(e.params.adUnitIndex=i[1]),i=t.split("@"),e.params.adUnit=i[0],i.length>1){if(2!=(i=i[1].split("x")).length)return void Object(a.logWarn)("PubMatic: AdSlot Error: adSlot not in required format");e.params.width=parseInt(i[0],10),e.params.height=parseInt(i[1],10)}else if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(n.b)&&e.mediaTypes.banner.hasOwnProperty("sizes")){for(var s=0,o=[];s<e.mediaTypes.banner.sizes.length;s++)2===e.mediaTypes.banner.sizes[s].length&&o.push(e.mediaTypes.banner.sizes[s]);e.mediaTypes.banner.sizes=o,e.mediaTypes.banner.sizes.length>=1&&(e.params.width=e.mediaTypes.banner.sizes[0][0],e.params.height=e.mediaTypes.banner.sizes[0][1],e.mediaTypes.banner.sizes=e.mediaTypes.banner.sizes.splice(1,e.mediaTypes.banner.sizes.length-1))}}function U(e,r,t){var i,n="Ignoring param key: "+e+", expects "+t+", found "+u(r);switch(t){case O:i=a.isBoolean;break;case y:i=a.isNumber;break;case v:i=a.isStr;break;case E:i=a.isArray}return i(r)?r:(Object(a.logWarn)(m+n),g)}function q(e,r){var t=e.KEY;return{id:e.ID,required:r[t].required?1:0,data:{type:e.TYPE,len:r[t].len,ext:r[t].ext}}}function L(e){var r={assets:[]};for(var t in e){if(e.hasOwnProperty(t)){var i={};if(!(r.assets&&r.assets.length>0&&r.assets.hasOwnProperty(t)))switch(t){case w.TITLE.KEY:e[t].len||e[t].length?i={id:w.TITLE.ID,required:e[t].required?1:0,title:{len:e[t].len||e[t].length,ext:e[t].ext}}:Object(a.logWarn)("PubMatic: Error: Title Length is required for native ad: "+JSON.stringify(e));break;case w.IMAGE.KEY:e[t].sizes&&e[t].sizes.length>0?i={id:w.IMAGE.ID,required:e[t].required?1:0,img:{type:T,w:e[t].w||e[t].width||(e[t].sizes?e[t].sizes[0]:g),h:e[t].h||e[t].height||(e[t].sizes?e[t].sizes[1]:g),wmin:e[t].wmin||e[t].minimumWidth||(e[t].minsizes?e[t].minsizes[0]:g),hmin:e[t].hmin||e[t].minimumHeight||(e[t].minsizes?e[t].minsizes[1]:g),mimes:e[t].mimes,ext:e[t].ext}}:Object(a.logWarn)("PubMatic: Error: Image sizes is required for native ad: "+JSON.stringify(e));break;case w.ICON.KEY:e[t].sizes&&e[t].sizes.length>0?i={id:w.ICON.ID,required:e[t].required?1:0,img:{type:j,w:e[t].w||e[t].width||(e[t].sizes?e[t].sizes[0]:g),h:e[t].h||e[t].height||(e[t].sizes?e[t].sizes[1]:g)}}:Object(a.logWarn)("PubMatic: Error: Icon sizes is required for native ad: "+JSON.stringify(e));break;case w.VIDEO.KEY:i={id:w.VIDEO.ID,required:e[t].required?1:0,video:{minduration:e[t].minduration,maxduration:e[t].maxduration,protocols:e[t].protocols,mimes:e[t].mimes,ext:e[t].ext}};break;case w.EXT.KEY:i={id:w.EXT.ID,required:e[t].required?1:0};break;case w.LOGO.KEY:i={id:w.LOGO.ID,required:e[t].required?1:0,img:{type:P,w:e[t].w||e[t].width||(e[t].sizes?e[t].sizes[0]:g),h:e[t].h||e[t].height||(e[t].sizes?e[t].sizes[1]:g)}};break;case w.SPONSOREDBY.KEY:case w.BODY.KEY:case w.RATING.KEY:case w.LIKES.KEY:case w.DOWNLOADS.KEY:case w.PRICE.KEY:case w.SALEPRICE.KEY:case w.PHONE.KEY:case w.ADDRESS.KEY:case w.DESC2.KEY:case w.DISPLAYURL.KEY:case w.CTA.KEY:i=q(K[t],e)}}i&&i.id&&(r.assets[r.assets.length]=i)}var n=S.length,s=0;return S.forEach((function(e){for(var t=r.assets.length,a=0;a<t;a++)if(e.id==r.assets[a].id){s++;break}})),C=n!=s,r}function W(e){var r,t=e.mediaTypes.banner.sizes,i=[];if(t!==g&&Object(a.isArray)(t)){if(r={},e.params.width||e.params.height)r.w=e.params.width,r.h=e.params.height;else{if(0===t.length)return r=g,Object(a.logWarn)("PubMatic: Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),r;r.w=parseInt(t[0][0],10),r.h=parseInt(t[0][1],10),t=t.splice(1,t.length-1)}t.length>0&&(i=[],t.forEach((function(e){e.length>1&&i.push({w:e[0],h:e[1]})})),i.length>0&&(r.format=i)),r.pos=0,r.topframe=Object(a.inIframe)()?0:1}else Object(a.logWarn)("PubMatic: Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),r=g;return r}function _(e,r){Object(a.deepAccess)(e,"placement")||Object(a.logWarn)("Video.Placement param missing for "+r)}function V(e){var r,t=Object(a.mergeDeep)(Object(a.deepAccess)(e.mediaTypes,"video"),e.params.video);if(t!==g){for(var i in r={},_(t,e.adUnitCode),I)t.hasOwnProperty(i)&&(r[i]=U(i,t[i],I[i]));Object(a.isArray)(e.mediaTypes.video.playerSize[0])?(r.w=parseInt(e.mediaTypes.video.playerSize[0][0],10),r.h=parseInt(e.mediaTypes.video.playerSize[0][1],10)):Object(a.isNumber)(e.mediaTypes.video.playerSize[0])&&(r.w=parseInt(e.mediaTypes.video.playerSize[0],10),r.h=parseInt(e.mediaTypes.video.playerSize[1],10))}else r=g,Object(a.logWarn)("PubMatic: Error: Video config params missing for adunit: "+e.params.adUnit+" with mediaType set as video. Ignoring video impression in the adunit.");return r}function B(e,r,t){var a=r.rtd&&r.rtd.jwplayer&&r.rtd.jwplayer.targeting||void 0,i="";if(void 0!==a&&""!==a&&a.hasOwnProperty("segments")){var n,s=a.segments.length;i+="jw-id="+a.content.id;for(var o=0;o<s;o++)i+="|jw-"+a.segments[o]+"=1";t?void 0===e.dctr||0==e.dctr.length?e.dctr=i:e.dctr+="|"+i:(n=e.ext)&&void 0===n.key_val?n.key_val=i:n.key_val+="|"+i}}function G(e,r){var t,i,o={},d={},l=e.hasOwnProperty("sizes")?e.sizes:[],f="",h=[];if(function(e,r){r.params.deals&&(Object(a.isArray)(r.params.deals)?r.params.deals.forEach((function(r){Object(a.isStr)(r)&&r.length>3?(e.pmp||(e.pmp={private_auction:0,deals:[]}),e.pmp.deals.push({id:r})):Object(a.logWarn)("PubMatic: Error: deal-id present in array bid.params.deals should be a strings with more than 3 charaters length, deal-id ignored: "+r)})):Object(a.logWarn)("PubMatic: Error: bid.params.deals should be an array of strings."))}(o={id:e.bidId,tagid:e.params.adUnit||void 0,bidfloor:N("kadfloor",e.params.kadfloor),secure:1,ext:{pmZoneId:N("pmzoneid",e.params.pmzoneid)},bidfloorcur:e.params.currency?N("currency",e.params.currency):b},e),function(e,r){var t,i="";if(r.params.dctr)if(i=r.params.dctr,Object(a.isStr)(i)&&i.length>0){var n=i.split("|");i="",n.forEach((function(e){i+=e.length>0?e.trim()+"|":""})),t=i.length,"|"===i.substring(t,t-1)&&(i=i.substring(0,t-1)),e.ext.key_val=i.trim()}else Object(a.logWarn)("PubMatic: Ignoring param : dctr with value : "+i+", expects string-value, found empty or non-string value")}(o,e),B(o,e),e.hasOwnProperty("mediaTypes"))for(f in e.mediaTypes)switch(f){case n.b:(t=W(e))!==g&&(o.banner=t);break;case n.c:d.request=JSON.stringify(L(e.nativeParams)),C?Object(a.logWarn)("PubMatic: Error: Error in Native adunit "+e.params.adUnit+". Ignoring the adunit. Refer to http://prebid.org/dev-docs/show-native-ads.html for more details."):o.native=d;break;case n.d:(i=V(e))!==g&&(o.video=i)}else t={pos:0,w:e.params.width,h:e.params.height,topframe:Object(a.inIframe)()?0:1},Object(a.isArray)(l)&&l.length>1&&((l=l.splice(1,l.length-1)).forEach((function(e){h.push({w:e[0],h:e[1]})})),t.format=h),o.banner=t;return function(e,r){var t=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},Object(a.deepAccess)(r,"ortb2Imp.ext.data"));Object.keys(t).forEach((function(r){"pbadslot"===r?"string"==typeof t[r]&&t[r]&&Object(a.deepSetValue)(e,"ext.data.pbadslot",t[r]):"adserver"===r?["name","adslot"].forEach((function(r){var i=Object(a.deepAccess)(t,"adserver.".concat(r));"string"==typeof i&&i&&(Object(a.deepSetValue)(e,"ext.data.adserver.".concat(r.toLowerCase()),i),"adslot"===r&&Object(a.deepSetValue)(e,"ext.dfp_ad_unit_code",i))})):Object(a.deepSetValue)(e,"ext.data.".concat(r),t[r])}))}(o,e),function(e,r){var t=-1;"function"!=typeof r.getFloor||s.b.getConfig("pubmatic.disableFloors")||[n.b,n.d,n.c].forEach((function(i){if(e.hasOwnProperty(i)){var n=[];"banner"===i&&(e[i].w&&e[i].h&&n.push([e[i].w,e[i].h]),Object(a.isArray)(e[i].format)&&e[i].format.forEach((function(e){return n.push([e.w,e.h])}))),0===n.length&&n.push("*"),n.forEach((function(n){var s=r.getFloor({currency:e.bidfloorcur,mediaType:i,size:n});if(Object(a.logInfo)(m,"floor from floor module returned for mediatype:",i," and size:",n," is: currency",s.currency,"floor",s.floor),"object"===u(s)&&s.currency===e.bidfloorcur&&!isNaN(parseInt(s.floor))){var o=parseFloat(s.floor);Object(a.logInfo)(m,"floor from floor module:",o,"previous floor value",t,"Min:",Math.min(o,t)),t=-1===t?o:Math.min(o,t),Object(a.logInfo)(m,"new floor value:",t)}}))}}));e.bidfloor&&(Object(a.logInfo)(m,"floor from floor module:",t,"impObj.bidfloor",e.bidfloor,"Max:",Math.max(t,e.bidfloor)),t=Math.max(t,e.bidfloor));e.bidfloor=!isNaN(t)&&t>0?t:g,Object(a.logInfo)(m,"new impObj.bidfloor value:",e.bidfloor)}(o,e),o.hasOwnProperty(n.b)||o.hasOwnProperty(n.c)||o.hasOwnProperty(n.d)?o:g}function F(e,r){var t=null,i=Object(a.deepAccess)(e,"0.userId.flocId");if(i&&i.id)switch(r){case Y:t={id:"FLOC",name:"FLOC",ext:{ver:i.version},segment:[{id:i.id,name:"chrome.com",value:i.id.toString()}]};break;case x:default:t={source:"chrome.com",uids:[{atype:1,id:i.id,ext:{ver:i.version}}]}}return t}function J(e){return!0===Object(a.isArray)(e)&&e.length>0}Object(a._each)(w,(function(e){z[e.ID]=e.KEY})),Object(a._each)(w,(function(e){K[e.KEY]=e}));var X={code:l,gvlid:76,supportedMediaTypes:[n.b,n.d,n.c],aliases:[{code:"groupm",gvlid:98}],isBidRequestValid:function(e){if(e&&e.params){if(!Object(a.isStr)(e.params.publisherId))return Object(a.logWarn)("PubMatic: Error: publisherId is mandatory and cannot be numeric (wrap it in quotes in your config). Call to OpenBid will not be sent for ad unit: "+JSON.stringify(e)),!1;if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(n.d)){var r=Object(a.deepAccess)(e.mediaTypes,"video.mimes"),t=Object(a.deepAccess)(e,"params.video.mimes");if(!1===J(r)&&!1===J(t))return Object(a.logWarn)("PubMatic: Error: For video ads, bid.mediaTypes.video.mimes OR bid.params.video.mimes should be present and must be a non-empty array. Call to OpenBid will not be sent for ad unit:"+JSON.stringify(e)),!1;if(!e.mediaTypes[n.d].hasOwnProperty("context"))return Object(a.logError)("".concat(m,": no context specified in bid. Rejecting bid: "),e),!1;if("outstream"===e.mediaTypes[n.d].context&&!Object(a.isStr)(e.params.outstreamAU)&&!e.hasOwnProperty("renderer")&&!e.mediaTypes[n.d].hasOwnProperty("renderer"))return e.mediaTypes.hasOwnProperty(n.b)||e.mediaTypes.hasOwnProperty(n.c)?(delete e.mediaTypes[n.d],Object(a.logWarn)("".concat(m,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting mediatype Video of bid: '),e),!0):(Object(a.logError)("".concat(m,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting bid: '),e),!1)}return!0}return!1},buildRequests:function(e,r){var t;r&&r.refererInfo&&(t=r.refererInfo);var i,o=function(e){return{pageURL:e&&e.referer?e.referer:window.location.href,refURL:window.document.referrer}}(t),c=function(e){return{id:""+(new Date).getTime(),at:1,cur:[b],imp:[],site:{page:e.pageURL,ref:e.refURL,publisher:{}},device:{ua:navigator.userAgent,js:1,dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,h:screen.height,w:screen.width,language:navigator.language},user:{},ext:{}}}(o),p="",l=[],m=[];if(e.forEach((function(e){if((i=Object(a.deepClone)(e)).params.adSlot=i.params.adSlot||"",M(i),i.params.hasOwnProperty("video"));else if(!(i.hasOwnProperty("mediaTypes")&&i.mediaTypes.hasOwnProperty(n.c)||0!==i.params.width||0!==i.params.height))return void Object(a.logWarn)("PubMatic: Skipping the non-standard adslot: ",i.params.adSlot,JSON.stringify(i));o.pubId=o.pubId||i.params.publisherId,(o=function(e,r){var t,i,n;for(t in r.kadpageurl||(r.kadpageurl=r.pageURL),h)h.hasOwnProperty(t)&&(i=e[t])&&("object"===u(n=h[t])&&(i=n.f(i,r)),Object(a.isStr)(i)?r[t]=i:Object(a.logWarn)("PubMatic: Ignoring param : "+t+" with value : "+h[t]+", expects string-value, found "+u(i)));return r}(i.params,o)).transactionId=i.transactionId,""===p?p=i.params.currency||g:i.params.hasOwnProperty("currency")&&p!==i.params.currency&&Object(a.logWarn)("PubMatic: Currency specifier ignored. Only one currency permitted."),i.params.currency=p,i.params.hasOwnProperty("dctr")&&Object(a.isStr)(i.params.dctr)&&l.push(i.params.dctr),i.params.hasOwnProperty("bcat")&&Object(a.isArray)(i.params.bcat)&&(m=m.concat(i.params.bcat));var r=G(i);r&&c.imp.push(r)})),0!=c.imp.length){var f,y;c.site.publisher.id=o.pubId.trim(),A=o.pubId.trim(),c.ext.wrapper={},c.ext.wrapper.profile=parseInt(o.profId)||g,c.ext.wrapper.version=parseInt(o.verId)||g,c.ext.wrapper.wiid=o.wiid||r.auctionId,c.ext.wrapper.wv="prebid_prebid_6.7.0-pre",c.ext.wrapper.transactionId=o.transactionId,c.ext.wrapper.wp="pbjs",c.user.gender=o.gender?o.gender.trim():g,c.user.geo={},c.user.geo.lat=N("lat",o.lat),c.user.geo.lon=N("lon",o.lon),c.user.yob=N("yob",o.yob),c.device.geo=c.user.geo,c.site.page=o.kadpageurl.trim()||c.site.page.trim(),c.site.domain=(f=c.site.page,(y=document.createElement("a")).href=f,y.hostname),"object"===u(s.b.getConfig("content"))&&(c.site.content=s.b.getConfig("content")),"object"===u(s.b.getConfig("device"))&&(c.device=d(c.device,s.b.getConfig("device"))),Object(a.deepSetValue)(c,"source.tid",o.transactionId),-1!==window.location.href.indexOf("pubmaticTest=true")&&(c.test=1),e[0].schain&&Object(a.deepSetValue)(c,"source.ext.schain",e[0].schain),r&&r.gdprConsent&&(Object(a.deepSetValue)(c,"user.ext.consent",r.gdprConsent.consentString),Object(a.deepSetValue)(c,"regs.ext.gdpr",r.gdprConsent.gdprApplies?1:0)),r&&r.uspConsent&&Object(a.deepSetValue)(c,"regs.ext.us_privacy",r.uspConsent),!0===s.b.getConfig("coppa")&&Object(a.deepSetValue)(c,"regs.coppa",1),function(e,r){var t=Object(a.deepAccess)(r,"0.userIdAsEids"),i=F(r,x);i&&(t||(t=[]),t.push(i)),Object(a.isArray)(t)&&t.length>0&&Object(a.deepSetValue)(e,"user.eids",t)}(c,e),function(e,r){(r=r.filter((function(e){return"string"==typeof e||(Object(a.logWarn)("PubMatic: bcat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,r,t){if(e.length>3)return t.indexOf(e)===r;Object(a.logWarn)("PubMatic: bcat: Each category should have a value of a length of more than 3 characters, ignoring category: "+e)}))).length>0&&(Object(a.logWarn)("PubMatic: bcat: Selected: ",r),e.bcat=r)}(c,m),function(e,r){var t=F(r,Y);t&&(e.user||(e.user={}),e.user.data||(e.user.data=[]),e.user.data.push(t))}(c,e);var v=s.b.getConfig("ortb2")||{};return v.site&&Object(a.mergeDeep)(c,{site:v.site}),v.user&&Object(a.mergeDeep)(c,{user:v.user}),"object"===u(s.b.getConfig("app"))&&(c.app=s.b.getConfig("app"),c.app.publisher=c.site.publisher,c.app.ext=c.site.ext||g,"object"!==u(c.app.content)&&(c.app.content=c.site.content||g),delete c.site),{method:"POST",url:"https://hbopenbid.pubmatic.com/translator?source=prebid-client",data:JSON.stringify(c),bidderRequest:r}}},interpretResponse:function(e,r){var t=[],i=b,s=JSON.parse(r.data),o=s.site&&s.site.ref?s.site.ref:"";try{e.body&&e.body.seatbid&&Object(a.isArray)(e.body.seatbid)&&(i=e.body.cur||i,e.body.seatbid.forEach((function(e){e.bid&&Object(a.isArray)(e.bid)&&e.bid.forEach((function(d){var c={requestId:d.impid,cpm:(parseFloat(d.price)||0).toFixed(2),width:d.w,height:d.h,creativeId:d.crid||d.id,dealId:d.dealid,currency:i,netRevenue:true,ttl:300,referrer:o,ad:d.adm,pm_seat:e.seat||null,pm_dspid:d.ext&&d.ext.dspid?d.ext.dspid:null,partnerImpId:d.id||""};s.imp&&s.imp.length>0&&s.imp.forEach((function(e){if(d.impid===e.id)switch(function(e,r){if(e.ext&&null!=e.ext.bidtype)r.mediaType=R[e.ext.bidtype];else{Object(a.logInfo)("PubMatic: bid.ext.bidtype does not exist, checking alternatively for mediaType");var t=e.adm,i="",s=new RegExp(/VAST\s+version/);if(t.indexOf('span class="PubAPIAd"')>=0)r.mediaType=n.b;else if(s.test(t))r.mediaType=n.d;else try{(i=JSON.parse(t.replace(/\\/g,"")))&&i.native&&(r.mediaType=n.c)}catch(e){Object(a.logWarn)("PubMatic: Error: Cannot parse native reponse for ad response: "+t)}}}(d,c),c.mediaType){case n.b:break;case n.d:c.width=d.hasOwnProperty("w")?d.w:e.video.w,c.height=d.hasOwnProperty("h")?d.h:e.video.h,c.vastXml=d.adm,function(e,r){var t,a,i;if(r.bidderRequest&&r.bidderRequest.bids){for(var s=0;s<r.bidderRequest.bids.length;s++)r.bidderRequest.bids[s].bidId===e.requestId&&(t=r.bidderRequest.bids[s].params,a=r.bidderRequest.bids[s].mediaTypes[n.d].context,i=r.bidderRequest.bids[s].adUnitCode);a&&"outstream"===a&&t&&t.outstreamAU&&i&&(e.rendererCode=t.outstreamAU,e.renderer=k.newRenderer(e.rendererCode,i))}}(c,r);break;case n.c:!function(e,r){if(r.native={},e.hasOwnProperty("adm")){var t="";try{t=JSON.parse(e.adm.replace(/\\/g,""))}catch(e){return void Object(a.logWarn)("PubMatic: Error: Cannot parse native reponse for ad response: "+r.adm)}if(t&&t.native&&t.native.assets&&t.native.assets.length>0){r.mediaType=n.c;for(var i=0,s=t.native.assets.length;i<s;i++)switch(t.native.assets[i].id){case w.TITLE.ID:r.native.title=t.native.assets[i].title&&t.native.assets[i].title.text;break;case w.IMAGE.ID:r.native.image={url:t.native.assets[i].img&&t.native.assets[i].img.url,height:t.native.assets[i].img&&t.native.assets[i].img.h,width:t.native.assets[i].img&&t.native.assets[i].img.w};break;case w.ICON.ID:r.native.icon={url:t.native.assets[i].img&&t.native.assets[i].img.url,height:t.native.assets[i].img&&t.native.assets[i].img.h,width:t.native.assets[i].img&&t.native.assets[i].img.w};break;case w.SPONSOREDBY.ID:case w.BODY.ID:case w.LIKES.ID:case w.DOWNLOADS.ID:case w.PRICE:case w.SALEPRICE.ID:case w.PHONE.ID:case w.ADDRESS.ID:case w.DESC2.ID:case w.CTA.ID:case w.RATING.ID:case w.DISPLAYURL.ID:r.native[z[t.native.assets[i].id]]=t.native.assets[i].data&&t.native.assets[i].data.value}r.native.clickUrl=t.native.link&&t.native.link.url,r.native.clickTrackers=t.native.link&&t.native.link.clicktrackers||[],r.native.impressionTrackers=t.native.imptrackers||[],r.native.jstracker=t.native.jstracker||[],r.width||(r.width=0),r.height||(r.height=0)}}}(d,c)}})),d.ext&&d.ext.deal_channel&&(c.dealChannel=D[d.ext.deal_channel]||null),c.meta={},d.ext&&d.ext.dspid&&(c.meta.networkId=d.ext.dspid),d.ext&&d.ext.advid&&(c.meta.buyerId=d.ext.advid),d.adomain&&d.adomain.length>0&&(c.meta.advertiserDomains=d.adomain,c.meta.clickUrl=d.adomain[0]),e.ext&&e.ext.buyid&&(c.adserverTargeting={hb_buyid_pubmatic:e.ext.buyid}),t.push(c)}))})))}catch(e){Object(a.logError)(e)}return t},getUserSyncs:function(e,r,t,a){var i=""+A;return t&&(i+="&gdpr="+(t.gdprApplies?1:0),i+="&gdpr_consent="+encodeURIComponent(t.consentString||"")),a&&(i+="&us_privacy="+encodeURIComponent(a)),!0===s.b.getConfig("coppa")&&(i+="&coppa=1"),e.iframeEnabled?[{type:"iframe",url:"https://ads.pubmatic.com/AdServer/js/user_sync.html?kdntuid=1&p="+i}]:[{type:"image",url:"https://image8.pubmatic.com/AdServer/ImgSync?p="+i}]},transformBidParams:function(e,r,t,i){return B(e,t.bids[0],!0),Object(a.convertTypes)({publisherId:"string",adSlot:"string"},e)}};Object(i.registerBidder)(X),window.pbjs.installedModules.push("pubmaticBidAdapter")}},[794]);
pbjsChunk([145],{858:function(e,t,r){e.exports=r(859)},859:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"spec",(function(){return j})),t.hasVideoMediaType=I,r.d(t,"resetRubiConf",(function(){return k})),t.masSizeOrdering=R,t.determineRubiconVideoSizeId=z,t.getPriceGranularity=T,t.hasValidVideoParams=E,t.hasValidSupplyChainParams=U,t.encodeParam=P,t.resetUserSync=function(){N=!1};var i=r(0),n=r(1),o=r(3),a=r(2),c=r(11),s=r.n(c),d=r(13),u=r(14);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var i,n,o=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){c=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw n}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(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.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){return(v="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)}var y="https://video-outstream.rubiconproject.com/apex-2.0.0.js",x={};o.b.getConfig("rubicon",(function(e){Object(i.mergeDeep)(x,e.rubicon)}));var h={1:"468x60",2:"728x90",5:"120x90",7:"125x125",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",42:"2x4",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",85:"300x120",90:"548x150",94:"970x310",95:"970x100",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",152:"1000x250",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",221:"1x1",229:"320x180",230:"2000x1400",232:"580x400",234:"6x6",251:"2x2",256:"480x820",257:"400x600",258:"500x200",259:"998x200",264:"970x1000",265:"1920x1080",274:"1800x200",278:"320x500",282:"320x400",288:"640x380",548:"500x1000",550:"980x480",552:"300x200",558:"640x640",562:"300x431",564:"320x431",566:"320x300",568:"300x150",570:"300x125",572:"250x350",574:"620x891",576:"610x877",578:"980x552",580:"505x656"};Object(i._each)(h,(function(e,t){return h[e]=t}));var j={code:"rubicon",gvlid:52,supportedMediaTypes:[a.b,a.d],isBidRequestValid:function(e){if("object"!==v(e.params))return!1;for(var t=0,r=["accountId","siteId","zoneId"];t<r.length;t++)if(e.params[r[t]]=parseInt(e.params[r[t]]),isNaN(e.params[r[t]]))return Object(i.logError)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;var n=w(e,!0);return!!n&&("video"!==n||E(e))},buildRequests:function(e,t){var r=[],n=e.filter((function(e){return"video"===w(e)})).map((function(e){e.startTime=(new Date).getTime();var r={id:e.transactionId,test:o.b.getConfig("debug")?1:0,cur:["USD"],source:{tid:e.transactionId},tmax:t.timeout,imp:[{exp:o.b.getConfig("s2sConfig.defaultTtl"),id:e.adUnitCode,secure:1,ext:g({},e.bidder,e.params),video:Object(i.deepAccess)(e,"mediaTypes.video")||{}}],ext:{prebid:{channel:{name:"pbjs",version:pbjs.version},cache:{vastxml:{returnCreative:!0===x.returnVast}},targeting:{includewinners:!0,includebidderkeys:!1,pricegranularity:T(o.b)},bidders:{rubicon:{integration:x.int_type||"pbjs"}}}}};"rubicon"!==e.bidder&&(r.ext.prebid.aliases=g({},e.bidder,"rubicon"));var n,c,s=Object(u.a)().installedModules;if(!s||s.length&&-1===s.indexOf("rubiconAnalyticsAdapter")||Object(i.deepSetValue)(r,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),"function"!=typeof e.getFloor||x.disableFloors)n=parseFloat(Object(i.deepAccess)(e,"params.floor"));else{var d;try{d=e.getFloor({currency:"USD",mediaType:"video",size:A(e,"video")})}catch(e){Object(i.logError)("Rubicon: getFloor threw an error: ",e)}n="object"!==v(d)||"USD"!==d.currency||isNaN(parseInt(d.floor))?void 0:parseFloat(d.floor)}(isNaN(n)||(r.imp[0].bidfloor=n),r.imp[0].ext[e.bidder].video.size_id=z(e),function(e,t,r){if(!e)return;"object"===v(o.b.getConfig("app"))?e.app=o.b.getConfig("app"):e.site={page:O(t,r)};"object"===v(o.b.getConfig("device"))&&(e.device=o.b.getConfig("device"));t.params.video.language&&["site","device"].forEach((function(r){e[r]&&("site"===r?e[r].content=b({language:t.params.video.language},e[r].content):e[r]=b({language:t.params.video.language},e[r]))}))}(r,e,t),function(e,t){"object"===v(e.imp[0].video)&&void 0===e.imp[0].video.skip&&(e.imp[0].video.skip=t.params.video.skip);"object"===v(e.imp[0].video)&&void 0===e.imp[0].video.skipafter&&(e.imp[0].video.skipafter=t.params.video.skipdelay);"object"===v(e.imp[0].video)&&void 0===e.imp[0].video.pos&&("atf"===t.params.position?e.imp[0].video.pos=1:"btf"===t.params.position&&(e.imp[0].video.pos=3));var r=A(t,"video");e.imp[0].video.w=r[0],e.imp[0].video.h=r[1]}(r,e),t.gdprConsent)&&("boolean"==typeof t.gdprConsent.gdprApplies&&(c=t.gdprConsent.gdprApplies?1:0),Object(i.deepSetValue)(r,"regs.ext.gdpr",c),Object(i.deepSetValue)(r,"user.ext.consent",t.gdprConsent.consentString));t.uspConsent&&Object(i.deepSetValue)(r,"regs.ext.us_privacy",t.uspConsent);var p=Object(i.deepAccess)(t,"bids.0.userIdAsEids");p&&p.length&&Object(i.deepSetValue)(r,"user.ext.eids",p);var l=o.b.getConfig("user.id");l&&Object(i.deepSetValue)(r,"user.id",l),!0===o.b.getConfig("coppa")&&Object(i.deepSetValue)(r,"regs.coppa",1),e.schain&&U(e.schain)&&Object(i.deepSetValue)(r,"source.ext.schain",e.schain);var m=o.b.getConfig("multibid");return m&&Object(i.deepSetValue)(r,"ext.prebid.multibid",m.reduce((function(e,t){var r={};return Object.keys(t).forEach((function(e){r[e.toLowerCase()]=t[e]})),e.push(r),e}),[])),S(e,a.d,r),e.storedAuctionResponse&&Object(i.deepSetValue)(r.imp[0],"ext.prebid.storedauctionresponse.id",e.storedAuctionResponse.toString()),Object(i.deepSetValue)(r.imp[0],"ext.prebid.auctiontimestamp",t.auctionStart),{method:"POST",url:"https://".concat(x.videoHost||"prebid-server",".rubiconproject.com/openrtb2/auction"),data:r,bidRequest:e}}));if(!0!==x.singleRequest)r=n.concat(e.filter((function(e){return"banner"===w(e)})).map((function(e){var r=j.createSlotParams(e,t);return{method:"GET",url:"https://".concat(x.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:j.getOrderedParams(r).reduce((function(e,t){var n=r[t];return Object(i.isStr)(n)&&""!==n||Object(i.isNumber)(n)?"".concat(e).concat(P(t,n),"&"):e}),"")+"slots=1&rand=".concat(Math.random()),bidRequest:e}})));else{var c=e.filter((function(e){return"banner"===w(e)})).reduce((function(e,t){return(e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e}),{});r=n.concat(Object.keys(c).reduce((function(e,r){var n,o;return(n=c[r],o=10,n.map((function(e,t){return t%o==0?n.slice(t,t+o):null})).filter((function(e){return e}))).forEach((function(r){var n=j.combineSlotUrlParams(r.map((function(e){return j.createSlotParams(e,t)})));e.push({method:"GET",url:"https://".concat(x.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:j.getOrderedParams(n).reduce((function(e,t){var r=n[t];return Object(i.isStr)(r)&&""!==r||Object(i.isNumber)(r)?"".concat(e).concat(P(t,r),"&"):e}),"")+"slots=".concat(r.length,"&rand=").concat(Math.random()),bidRequest:r})})),e}),[]))}return r},getOrderedParams:function(e){var t=/^tg_v/,r=/^tg_i/,i=/^eid_|^tpid_/,n=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","rp_schain"].concat(Object.keys(e).filter((function(e){return i.test(e)}))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter((function(e){return t.test(e)}))).concat(Object.keys(e).filter((function(e){return r.test(e)}))).concat(["tk_flint","x_source.tid","x_source.pchain","p_screen_res","rp_floor","rp_secure","tk_user_key"]);return n.concat(Object.keys(e).filter((function(e){return-1===n.indexOf(e)})))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];var t=e.reduce((function(t,r,i){return Object.keys(r).forEach((function(n){t.hasOwnProperty(n)||(t[n]=new Array(e.length)),t[n].splice(i,1,r[n])})),t}),{}),r=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(t).forEach((function(e){var i=t[e].join(";"),n=i.match(r);t[e]=n?n[1]:i})),t},createSlotParams:function(e,t){e.startTime=(new Date).getTime();var r=e.params,n=A(e,"banner"),c=m(r.latLong||[],2),d=c[0],u=c[1],p={account_id:r.accountId,site_id:r.siteId,zone_id:r.zoneId,size_id:n[0],alt_size_ids:n.slice(1).join(",")||void 0,rp_floor:(r.floor=parseFloat(r.floor))>=.01?r.floor:void 0,rp_secure:"1",tk_flint:"".concat(x.int_type||"pbjs_lite","_v6.7.0-pre"),"x_source.tid":e.transactionId,"x_source.pchain":r.pchain,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:r.userId,"p_geo.latitude":isNaN(parseFloat(d))?void 0:parseFloat(d).toFixed(4),"p_geo.longitude":isNaN(parseFloat(u))?void 0:parseFloat(u).toFixed(4),"tg_fl.eid":e.code,rf:O(e,t)};if("function"==typeof e.getFloor&&!x.disableFloors){var l;try{l=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){Object(i.logError)("Rubicon: getFloor threw an error: ",e)}p.rp_hard_floor="object"!==v(l)||"USD"!==l.currency||isNaN(parseInt(l.floor))?void 0:l.floor}var b={1:"atf",3:"btf"}[Object(i.deepAccess)(e,"mediaTypes.banner.pos")]||"";p.p_pos="atf"===r.position||"btf"===r.position?r.position:b;var f=o.b.getConfig("user.id");return f&&(p.ppuid=f),e.userIdAsEids&&e.userIdAsEids.forEach((function(e){try{if("adserver.org"===e.source?(p.tpid_tdid=e.uids[0].id,p["eid_adserver.org"]=e.uids[0].id):"liveintent.com"===e.source?(p["tpid_liveintent.com"]=e.uids[0].id,p["eid_liveintent.com"]=e.uids[0].id,e.ext&&Array.isArray(e.ext.segments)&&e.ext.segments.length&&(p["tg_v.LIseg"]=e.ext.segments.join(","))):"liveramp.com"===e.source?p.x_liverampidl=e.uids[0].id:"id5-sync.com"===e.source?p["eid_id5-sync.com"]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype,"^").concat(e.uids[0].ext&&e.uids[0].ext.linkType||""):p["eid_".concat(e.source)]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype||""),!p.ppuid){var t=s()(e.uids,(function(e){return e.ext&&"ppuid"===e.ext.stype}));t&&t.id&&(p.ppuid=t.id)}}catch(t){Object(i.logWarn)("Rubicon: error reading eid:",e,t)}})),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(p.gdpr=Number(t.gdprConsent.gdprApplies)),p.gdpr_consent=t.gdprConsent.consentString),t.uspConsent&&(p.us_privacy=encodeURIComponent(t.uspConsent)),p.rp_maxbids=t.bidLimit||1,S(e,a.b,p),!0===o.b.getConfig("coppa")&&(p.coppa=1),e.schain&&U(e.schain)&&(p.rp_schain=j.serializeSupplyChain(e.schain)),p},serializeSupplyChain:function(e){if(!U(e))return"";var t=e.ver,r=e.complete,i=e.nodes;return"".concat(t,",").concat(r,"!").concat(j.serializeSupplyChainNodes(i))},serializeSupplyChainNodes:function(e){var t=["asi","sid","hp","rid","name","domain"];return e.map((function(e){return t.map((function(t){return encodeURIComponent(e[t]||"")})).join(",")})).join("!")},interpretResponse:function(e,t){var r=t.bidRequest;if(!(e=e.body)||"object"!==v(e))return[];if(e.seatbid){var n=Object(i.deepAccess)(e,"ext.errors.rubicon");Array.isArray(n)&&n.length>0&&Object(i.logWarn)("Rubicon: Error in video response");var o=[];return e.seatbid.forEach((function(t){(t.bid||[]).forEach((function(n){var c={requestId:r.bidId,currency:e.cur||"USD",creativeId:n.crid,cpm:n.price||0,bidderCode:t.seat,ttl:300,netRevenue:!1!==x.netRevenue,width:n.w||Object(i.deepAccess)(r,"mediaTypes.video.w")||Object(i.deepAccess)(r,"params.video.playerWidth"),height:n.h||Object(i.deepAccess)(r,"mediaTypes.video.h")||Object(i.deepAccess)(r,"params.video.playerHeight")};n.id&&(c.seatBidId=n.id),n.dealid&&(c.dealId=n.dealid),n.adomain&&Object(i.deepSetValue)(c,"meta.advertiserDomains",Array.isArray(n.adomain)?n.adomain:[n.adomain]),Object(i.deepAccess)(n,"ext.bidder.rp.advid")&&Object(i.deepSetValue)(c,"meta.advertiserId",n.ext.bidder.rp.advid);var s=Object(i.deepAccess)(e,"ext.responsetimemillis.rubicon");if(r&&s&&(r.serverResponseTimeMs=s),Object(i.deepAccess)(n,"ext.prebid.type")===a.d){c.mediaType=a.d,Object(i.deepSetValue)(c,"meta.mediaType",a.d);var u=Object(i.deepAccess)(n,"ext.prebid.targeting");u&&"object"===v(u)&&(c.adserverTargeting=u),n.ext.prebid.cache&&"object"===v(n.ext.prebid.cache.vastXml)&&n.ext.prebid.cache.vastXml.cacheId&&n.ext.prebid.cache.vastXml.url?(c.videoCacheKey=n.ext.prebid.cache.vastXml.cacheId,c.vastUrl=n.ext.prebid.cache.vastXml.url):u&&u.hb_uuid&&u.hb_cache_host&&u.hb_cache_path&&(c.videoCacheKey=u.hb_uuid,c.vastUrl="https://".concat(u.hb_cache_host).concat(u.hb_cache_path,"?uuid=").concat(u.hb_uuid)),n.adm&&(c.vastXml=n.adm),n.nurl&&(c.vastUrl=n.nurl),!c.vastUrl&&n.nurl&&(c.vastUrl=n.nurl),"outstream"===Object(i.deepAccess)(r,"mediaTypes.video.context").toLowerCase()&&(c.renderer=function(e){var t=d.a.install({id:e.adId,url:x.rendererUrl||y,config:x.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{t.setRender(_)}catch(e){Object(i.logWarn)("Prebid Error calling setRender on renderer",e)}return t}(c))}else Object(i.logWarn)("Rubicon: video response received non-video media type");o.push(c)}))})),o}var c,s=e.ads,u=0;return"object"!==v(r)||Array.isArray(r)||"video"!==w(r)||"object"!==v(s)||(s=s[r.adUnitCode]),!Array.isArray(s)||s.length<1?[]:s.reduce((function(t,n,o){if(n.impression_id&&c===n.impression_id?u++:c=n.impression_id,"ok"!==n.status)return t;var s,d,p=Array.isArray(r)?r[o-u]:r;if(p&&"object"===v(p)){var l={requestId:p.bidId,currency:"USD",creativeId:n.creative_id||"".concat(n.network||"","-").concat(n.advertiser||""),cpm:n.cpm||0,dealId:n.deal,ttl:300,netRevenue:!1!==x.netRevenue,rubicon:{advertiserId:n.advertiser,networkId:n.network},meta:{advertiserId:n.advertiser,networkId:n.network,mediaType:a.b}};if(n.creative_type&&(l.mediaType=n.creative_type),n.adomain&&(l.meta.advertiserDomains=Array.isArray(n.adomain)?n.adomain:[n.adomain]),n.creative_type===a.d)l.width=p.params.video.playerWidth,l.height=p.params.video.playerHeight,l.vastUrl=n.creative_depot_url,l.impression_id=n.impression_id,l.videoCacheKey=n.impression_id;else{l.ad=(s=n.script,d=n.impression_id,"<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='".concat(d,"'>\n<script type='text/javascript'>").concat(s,"<\/script>\n</div>\n</body>\n</html>"));var b=m(h[n.size_id].split("x").map((function(e){return Number(e)})),2);l.width=b[0],l.height=b[1]}l.rubiconTargeting=(Array.isArray(n.targeting)?n.targeting:[]).reduce((function(e,t){return e[t.key]=t.values[0],e}),{rpfl_elemid:p.adUnitCode}),t.push(l)}else Object(i.logError)("Rubicon: bidRequest undefined at index position:".concat(o),r,e);return t}),[]).sort((function(e,t){return(t.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,t,r,n){if(!N&&e.iframeEnabled){var o={};return r&&("boolean"==typeof r.gdprApplies&&(o.gdpr=Number(r.gdprApplies)),"string"==typeof r.consentString&&(o.gdpr_consent=r.consentString)),n&&(o.us_privacy=encodeURIComponent(n)),o=Object.keys(o).length?"?".concat(Object(i.formatQS)(o)):"",N=!0,{type:"iframe",url:"https://".concat(x.syncHost||"eus",".rubiconproject.com/usync.html")+o}}},transformBidParams:function(e,t){return Object(i.convertTypes)({accountId:"number",siteId:"number",zoneId:"number"},e)}};function O(e,t){var r=o.b.getConfig("pageUrl");return e.params.referrer?r=e.params.referrer:r||(r=t.refererInfo.referer),e.params.secure?r.replace(/^http:/i,"https:"):r}function _(e){var t,r=document.getElementById(e.adUnitCode);(t=r.querySelector("div[id^='google_ads']"))&&t.style.setProperty("display","none"),function(e){var t=e.querySelector("script[id^='sas_script']"),r=t&&t.nextSibling;r&&"iframe"===r.localName&&r.style.setProperty("display","none")}(r);var i=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:"#".concat(e.adUnitCode),align:i.align||"center",position:i.position||"append"},closeButton:i.closeButton||!1,label:i.label||void 0,collapse:i.collapse||!0})}))}function A(e,t){var r=e.params;if("video"===t){var n=[];return r.video&&r.video.playerWidth&&r.video.playerHeight?n=[r.video.playerWidth,r.video.playerHeight]:Array.isArray(Object(i.deepAccess)(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?n=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(n=e.sizes[0]),n}var o=[];return Array.isArray(r.sizes)?o=r.sizes:void 0!==Object(i.deepAccess)(e,"mediaTypes.banner.sizes")?o=C(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?o=C(e.sizes):Object(i.logWarn)("Rubicon: no sizes are setup or found"),R(o)}function S(e,t,r){var n={user:{ext:{data:l({},e.params.visitor)}},site:{ext:{data:l({},e.params.inventory)}}};e.params.keywords&&(n.site.keywords=Object(i.isArray)(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);var c=Object(i.mergeDeep)({},o.b.getConfig("ortb2")||{},n),s=Object(i.deepAccess)(e.ortb2Imp,"ext.data")||{},d=Object(i.deepAccess)(e,"ortb2Imp.ext.gpid"),u={user:[4],site:[1,2,5,6]},p={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},b=function(e,t,r){if("data"===t&&Array.isArray(e))return e.filter((function(e){return e.segment&&Object(i.deepAccess)(e,"ext.segtax")&&u[r]&&-1!==u[r].indexOf(Object(i.deepAccess)(e,"ext.segtax"))})).map((function(e){var t=e.segment.filter((function(e){return e.id})).reduce((function(e,t){return e.push(t.id),e}),[]);if(t.length>0)return t.toString()})).toString();if("object"!==v(e)||Array.isArray(e)){if(void 0!==e)return Array.isArray(e)?e.filter((function(e){if("object"!==v(e)&&void 0!==e)return e.toString();Object(i.logWarn)("Rubicon: Filtered value: ",e,"for key",t,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString()}else Object(i.logWarn)("Rubicon: Filtered FPD key: ",t,": Expected value to be string, integer, or an array of strings/ints")},m=function(e,t,i){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=b(e,i,t),a=p[i]&&n?"".concat(p[i]):"data"===i?"".concat(p[t],"iab"):"".concat(p[t]).concat(i);r[a]=r[a]?r[a].concat(",",o):o};t===a.b?(["site","user"].forEach((function(e){Object.keys(c[e]).forEach((function(t){"site"===e&&"content"===t&&c[e][t].data?m(c[e][t].data,e,"data"):"ext"!==t?m(c[e][t],e,t):c[e][t].data&&Object.keys(c[e].ext.data).forEach((function(t){m(c[e].ext.data[t],e,t,!1)}))}))})),Object.keys(s).forEach((function(e){"adserver"!==e?m(s[e],"site",e):"gam"===s[e].name&&m(s[e].adslot,name,e)})),d&&(r.p_gpid=d),r["tg_i.pbadslot"]&&delete r["tg_i.dfp_ad_unit_code"]):(Object.keys(s).length&&Object(i.mergeDeep)(r.imp[0].ext,{data:s}),d&&(r.imp[0].ext.gpid=d),Object(i.mergeDeep)(r,c))}function C(e){return Object(i.parseSizesInput)(e).reduce((function(e,t){var r=parseInt(h[t],10);return r&&e.push(r),e}),[])}function I(e){return"object"===v(Object(i.deepAccess)(e,"params.video"))&&void 0!==Object(i.deepAccess)(e,"mediaTypes.".concat(a.d))}function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return I(e)?-1===["outstream","instream"].indexOf(Object(i.deepAccess)(e,"mediaTypes.".concat(a.d,".context")))?void(t&&Object(i.logError)("Rubicon: mediaTypes.video.context must be outstream or instream")):A(e,"video").length<2?void(t&&Object(i.logError)("Rubicon: could not determine the playerSize of the video")):(t&&Object(i.logMessage)("Rubicon: making video request for adUnit",e.adUnitCode),"video"):0===A(e,"banner").length?void(t&&Object(i.logError)("Rubicon: could not determine the sizes for banner request")):(t&&Object(i.logMessage)("Rubicon: making banner request for adUnit",e.adUnitCode),"banner")}var k=function(){return x={}};function R(e){var t=[15,2,9];return e.sort((function(e,r){var i=t.indexOf(e),n=t.indexOf(r);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-r}))}function z(e){var t=parseInt(Object(i.deepAccess)(e,"params.video.size_id"));return isNaN(t)?"outstream"===Object(i.deepAccess)(e,"mediaTypes.".concat(a.d,".context"))?203:201:t}function T(e){return{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:e.getConfig("customPriceBucket")&&e.getConfig("customPriceBucket").buckets}[e.getConfig("priceGranularity")]}}function E(e){var t=!0,r=Object.prototype.toString.call([]),n={mimes:r,protocols:r,linearity:Object.prototype.toString.call(0),api:r};return Object.keys(n).forEach((function(r){Object.prototype.toString.call(Object(i.deepAccess)(e,"mediaTypes.video."+r))!==n[r]&&(t=!1,Object(i.logError)("Rubicon: mediaTypes.video."+r+" is required and must be of type: "+n[r]))})),t}function U(e){var t=!1,r=["asi","sid","hp"];return e.nodes?((t=e.nodes.reduce((function(e,t){return e?r.every((function(e){return t.hasOwnProperty(e)})):e}),!0))||Object(i.logError)("Rubicon: required schain params missing"),t):t}function P(e,t){return"rp_schain"===e?"rp_schain=".concat(t):"".concat(e,"=").concat(encodeURIComponent(t))}var N=!1;Object(n.registerBidder)(j),window.pbjs.installedModules.push("rubiconBidAdapter")}},[858]);
pbjsChunk([142],{866:function(n,i,e){n.exports=e(867)},867:function(n,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isSchainObjectValid=h,i.isValidSchainConfig=u,i.makeBidRequestsHook=l,i.init=O;var t=e(3),c=e(8),o=e(0),s="Invalid schain object found: ",a=" should be a string",r=" should be an Integer",d=" should be an object",f={STRICT:"strict",RELAXED:"relaxed",OFF:"off"},b=[];function h(n,i){var e="Detected something wrong within an schain config:",t="";function c(n){t+="\n"+n}function s(){!0===i?Object(o.logError)(e,n,t):Object(o.logWarn)(e,n,t)}if(!Object(o.isPlainObject)(n)&&(c("schain.config"+d),s(),i))return!1;if(Object(o.isNumber)(n.complete)&&Object(o.isInteger)(n.complete)||c("schain.config.complete"+r),Object(o.isStr)(n.ver)||c("schain.config.ver"+a),Object(o.hasOwn)(n,"ext")&&(Object(o.isPlainObject)(n.ext)||c("schain.config.ext"+d)),Object(o.isArray)(n.nodes))n.nodes.forEach((function(n,i){Object(o.isStr)(n.asi)||c("schain.config.nodes[".concat(i,"].asi")+a),Object(o.isStr)(n.sid)||c("schain.config.nodes[".concat(i,"].sid")+a),Object(o.isNumber)(n.hp)&&Object(o.isInteger)(n.hp)||c("schain.config.nodes[".concat(i,"].hp")+r),Object(o.hasOwn)(n,"rid")&&(Object(o.isStr)(n.rid)||c("schain.config.nodes[".concat(i,"].rid")+a)),Object(o.hasOwn)(n,"name")&&(Object(o.isStr)(n.name)||c("schain.config.nodes[".concat(i,"].name")+a)),Object(o.hasOwn)(n,"domain")&&(Object(o.isStr)(n.domain)||c("schain.config.nodes[".concat(i,"].domain")+a)),Object(o.hasOwn)(n,"ext")&&(Object(o.isPlainObject)(n.ext)||c("schain.config.nodes[".concat(i,"].ext")+d))}));else if(c("schain.config.nodes should be an Array"),s(),i)return!1;return!(t.length>0&&(s(),i))}function u(n){return void 0!==n&&(!!Object(o.isPlainObject)(n)||(Object(o.logError)(s+"the following schain config will not be used as schain is not an object.",n),!1))}function l(n,i){var e=t.b.getConfig("schain"),c=t.b.getBidderConfig();i.forEach((function(n){var i=n.bidderCode,t=function(n){return c[n]&&c[n].schain||e}(i);n.bids.forEach((function(n){var e=function(n,i){var e=f.STRICT;if(u(n)){if(Object(o.isStr)(n.validation)&&-1!=b.indexOf(n.validation)&&(e=n.validation),e===f.OFF)return n.config;if(h(n.config,!(e!==f.STRICT)))return n.config;Object(o.logError)(s+"due to the 'strict' validation setting, this schain config will not be passed to bidder '".concat(i,"'. See above error for details."))}return null}(t,i);e&&(n.schain=e)}))})),n(i)}function O(){c.default.makeBidRequests.after(l)}Object(o._each)(f,(function(n){return b.push(n)})),O(),window.pbjs.installedModules.push("schain")}},[866]);
pbjsChunk([139],{872:function(o,e,t){o.exports=t(873)},873:function(o,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t.d(e,"storage",(function(){return c})),t.d(e,"sharedIdSystemSubmodule",(function(){return g}));var n=t(0),r=t(9),i=t(8),a=t(7);function d(o){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}var c=Object(a.b)(887,"pubCommonId"),u="cookie",l="html5",f="_pubcid_optout",s="PublisherCommonId";function m(o,e){if(e===u)return c.getCookie(o);if(e===l&&c.hasLocalStorage()){var t=c.getDataFromLocalStorage("".concat(o,"_exp"));if(!t)return c.getDataFromLocalStorage(o);if(new Date(t).getTime()-Date.now()>0)return c.getDataFromLocalStorage(o)}}function b(o,e){return function(t){"function"==typeof e&&e(),t(o)}}function p(o){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(o){var t=Object(n.parseUrl)(o);t.search.id=encodeURIComponent("pubcid:"+e);var r=Object(n.buildUrl)(t);return function(){Object(n.triggerPixel)(r)}}}function v(){return!!(c.cookiesAreEnabled()&&m(f,u)||c.hasLocalStorage()&&m(f,l))}var g={name:"sharedId",aliasName:"pubCommonId",gvlid:887,decode:function(o,e){if(!v())return Object(n.logInfo)(" Decoded value PubCommonId "+o),{pubcid:o};Object(n.logInfo)("PubCommonId decode: Has opted-out")},getId:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(v())Object(n.logInfo)("PubCommonId: Has opted-out");else{var t=i.coppaDataHandler.getCoppa();if(!t){var r=o.params,a=(r=void 0===r?{}:r).create,c=void 0===a||a,u=r.pixelUrl,l=e;if(!l){try{"object"===d(window[s])&&(l=window[s].getId())}catch(o){}l||(l=c&&Object(n.hasDeviceAccess)()?Object(n.generateUUID)():void 0)}var f=p(u,l);return{id:l,callback:b(l,f)}}Object(n.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId")}},extendId:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(v())return Object(n.logInfo)("PubCommonId: Has opted-out"),{id:void 0};var t=i.coppaDataHandler.getCoppa();if(t)Object(n.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");else{var r=o.params,a=(r=void 0===r?{}:r).extend,d=void 0!==a&&a,c=r.pixelUrl;if(d){if(c){var u=p(c,e);return{callback:u}}return{id:e}}}},domainOverride:function(){for(var o,e,t=document.domain.split("."),n="_gd".concat(Date.now()),r=0;r<t.length;r++){var i=t.slice(r).join(".");if(c.setCookie(n,"1",void 0,void 0,i),e=c.getCookie(n),c.setCookie(n,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,i),"1"!==e)return o;o=i}}};Object(r.e)("userId",g),window.pbjs.installedModules.push("sharedIdSystem")}},[872]);
pbjsChunk([17],{15:function(e,t,r){"use strict";t.b=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else{var i=a(e[r],r);i&&t.push(i)}return t},t.a=function(e){var t=[];return e.filter((function(e){return Object(i.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){Object(i.deepAccess)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&Object(i.deepAccess)(n,r+".source")&&t.push({source:n[r].source,bidders:e.config.bidders})}))})),t};var i=r(0),n={intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=Object(i.pick)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1}};function a(e,t){var r=n[t];if(r&&e){var a={};a.source=r.source;var o=Object(i.isFn)(r.getValue)?r.getValue(e):e;if(Object(i.isStr)(o)){var c={id:o,atype:r.atype};if(Object(i.isFn)(r.getUidExt)){var d=r.getUidExt(e);d&&(c.ext=d)}if(a.uids=[c],Object(i.isFn)(r.getEidExt)){var s=r.getEidExt(e);s&&(a.ext=s)}return a}}return null}},910:function(e,t,r){e.exports=r(911)},911:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"spec",(function(){return d}));var i=r(0),n=r(1),a=r(2),o=r(15),c=r(3),d={code:"sovrn",supportedMediaTypes:[a.b],gvlid:13,isBidRequestValid:function(e){return!(!e.params.tagid||isNaN(parseFloat(e.params.tagid))||!isFinite(e.params.tagid))},buildRequests:function(e,t){try{var r,n,a,d,s=[],u=[];Object(i._each)(e,(function(e){!a&&e.userId&&(a=Object(o.b)(e.userId)).forEach((function(e){e.uids&&e.uids[0]&&("criteo.com"===e.source&&(d=e.uids[0].id),u.push({source:e.source,uid:e.uids[0].id}))})),e.schain&&(n=n||e.schain),r=r||Object(i.getBidIdParameter)("iv",e.params);var t=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes||e.sizes,c=(t=(t=Object(i.isArray)(t)&&Object(i.isArray)(t[0])?t:[t]).filter((function(e){return Object(i.isArray)(e)}))).map((function(e){return{w:parseInt(e[0],10),h:parseInt(e[1],10)}})),p=e.getFloor&&"function"==typeof e.getFloor?e.getFloor({currency:"USD",mediaType:"banner",size:"*"}):{};p.floor=p.floor||Object(i.getBidIdParameter)("bidfloor",e.params);var l={adunitcode:e.adUnitCode,id:e.bidId,banner:{format:c,w:1,h:1},tagid:String(Object(i.getBidIdParameter)("tagid",e.params)),bidfloor:p.floor};l.ext=Object(i.getBidIdParameter)("ext",e.ortb2Imp)||void 0;var b=Object(i.getBidIdParameter)("segments",e.params);b&&(l.ext=l.ext||{},l.ext.deals=b.split(",").map((function(e){return e.trim()}))),s.push(l)}));var p=Object(i.deepClone)(c.b.getConfig("ortb2")),l=p.site||{};l.page=t.refererInfo.referer,l.domain=Object(i.parseUrl)(l.page).hostname;var b={id:Object(i.getUniqueIdentifierStr)(),imp:s,site:l,user:p.user||{}};n&&(b.source={ext:{schain:n}}),t.gdprConsent&&(Object(i.deepSetValue)(b,"regs.ext.gdpr",+t.gdprConsent.gdprApplies),Object(i.deepSetValue)(b,"user.ext.consent",t.gdprConsent.consentString)),t.uspConsent&&Object(i.deepSetValue)(b,"regs.ext.us_privacy",t.uspConsent),a&&(Object(i.deepSetValue)(b,"user.ext.eids",a),Object(i.deepSetValue)(b,"user.ext.tpid",u),d&&Object(i.deepSetValue)(b,"user.ext.prebid_criteoid",d));var m="https://ap.lijit.com/rtb/bid?src=prebid_prebid_6.7.0-pre";return r&&(m+="&iv=".concat(r)),{method:"POST",url:m,data:JSON.stringify(b),options:{contentType:"text/plain"}}}catch(e){Object(i.logError)("Could not build bidrequest, error deatils:",e)}},interpretResponse:function(e){var t=e.body,r=t.id,n=t.seatbid;try{var o=[];return r&&n&&n.length>0&&n[0].bid&&n[0].bid.length>0&&n[0].bid.map((function(e){o.push({requestId:e.impid,cpm:parseFloat(e.price),width:parseInt(e.w),height:parseInt(e.h),creativeId:e.crid||e.id,dealId:e.dealid||null,currency:"USD",netRevenue:!0,mediaType:a.b,ad:decodeURIComponent("".concat(e.adm,'<img src="').concat(e.nurl,'">')),ttl:e.ext&&e.ext.ttl||90,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]}})})),o}catch(e){Object(i.logError)("Could not intrepret bidresponse, error deatils:",e)}},getUserSyncs:function(e,t,r,n){try{var a=[];if(t&&0!==t.length){if(e.iframeEnabled){var o=t.filter((function(e){return Object(i.deepAccess)(e,"body.ext.iid")})).map((function(e){return e.body.ext.iid})),c=[];r&&r.gdprApplies&&"string"==typeof r.consentString&&c.push(["gdpr_consent",r.consentString]),n&&c.push(["us_privacy",n]),o[0]&&(c.push(["informer",o[0]]),a.push({type:"iframe",url:"https://ap.lijit.com/beacon?"+c.map((function(e){return e.join("=")})).join("&")}))}e.pixelEnabled&&t.filter((function(e){return Object(i.deepAccess)(e,"body.ext.sync.pixels")})).reduce((function(e,t){return e.concat(t.body.ext.sync.pixels)}),[]).map((function(e){return e.url})).forEach((function(e){return a.push({type:"image",url:e})}))}return a}catch(e){return[]}}};Object(n.registerBidder)(d),window.pbjs.installedModules.push("sovrnBidAdapter")}},[910]);
pbjsChunk([13],{15:function(e,t,n){"use strict";t.b=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n))if("pubProvidedId"===n)t=t.concat(e.pubProvidedId);else{var o=a(e[n],n);o&&t.push(o)}return t},t.a=function(e){var t=[];return e.filter((function(e){return Object(o.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(n){Object(o.deepAccess)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&Object(o.deepAccess)(r,n+".source")&&t.push({source:r[n].source,bidders:e.config.bidders})}))})),t};var o=n(0),r={intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=Object(o.pick)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1}};function a(e,t){var n=r[t];if(n&&e){var a={};a.source=n.source;var i=Object(o.isFn)(n.getValue)?n.getValue(e):e;if(Object(o.isStr)(i)){var c={id:i,atype:n.atype};if(Object(o.isFn)(n.getUidExt)){var u=n.getUidExt(e);u&&(c.ext=u)}if(a.uids=[c],Object(o.isFn)(n.getEidExt)){var s=n.getEidExt(e);s&&(a.ext=s)}return a}}return null}},972:function(e,t,n){e.exports=n(973)},973:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"PBJS_USER_ID_OPTOUT_NAME",(function(){return C})),n.d(t,"coreStorage",(function(){return P})),n.d(t,"syncDelay",(function(){return I})),n.d(t,"auctionDelay",(function(){return k})),t.setSubmoduleRegistry=function(e){L=e},t.setStoredValue=N,t.setStoredConsentData=R,t.findRootDomain=H,t.requestBidsHook=K,n.d(t,"validateGdprEnforcement",(function(){return Z})),t.attachIdSystem=oe,t.init=re;var o=n(11),r=n.n(o),a=n(3),i=n(10),c=n.n(i),u=n(14),s=n(8),d=n(5),l=n.n(d),f=n(9),g=n(15),b=n(7),p=n(0),m=n(12),y=n.n(m);function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var j,h,I,k,w,D="User ID",S="cookie",E="html5",x="_pbjs_userid_consent_data",A=30,C="_pbjs_id_optout",P=Object(b.a)("userid"),U=[],_=!1,T=[],V=[],L=[];function N(e,t){var n=e.config.storage,o="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null;try{var r=Object(p.isPlainObject)(t)?JSON.stringify(t):t,a=new Date(Date.now()+864e5*n.expires).toUTCString();n.type===S?(P.setCookie(n.name,r,a,"Lax",o),"number"==typeof n.refreshInSeconds&&P.setCookie("".concat(n.name,"_last"),(new Date).toUTCString(),a,"Lax",o)):n.type===E&&(P.setDataInLocalStorage("".concat(n.name,"_exp"),a),P.setDataInLocalStorage(n.name,encodeURIComponent(r)),"number"==typeof n.refreshInSeconds&&P.setDataInLocalStorage("".concat(n.name,"_last"),(new Date).toUTCString()))}catch(e){Object(p.logError)(e)}}function q(e){var t=Object(p.getPrebidInternal)().setEidPermissions;"function"==typeof t&&Object(p.isArray)(e)&&t(Object(g.a)(e))}function F(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=n?"".concat(e.name,"_").concat(n):e.name;try{if(e.type===S)t=P.getCookie(o);else if(e.type===E){var r=P.getDataFromLocalStorage("".concat(e.name,"_exp"));""===r?t=P.getDataFromLocalStorage(o):r&&new Date(r).getTime()-Date.now()>0&&(t=decodeURIComponent(P.getDataFromLocalStorage(o)))}"string"==typeof t&&"{"===t.trim().charAt(0)&&(t=JSON.parse(t))}catch(e){Object(p.logError)(e)}return t}function M(e){var t={consentString:"",gdprApplies:!1,apiVersion:0};return e&&(t.consentString=e.consentString,t.gdprApplies=e.gdprApplies,t.apiVersion=e.apiVersion),Object(p.cyrb53Hash)(JSON.stringify(t))}function R(e){try{var t=new Date(Date.now()+864e5*A).toUTCString();P.setCookie(x,M(e),t,"Lax")}catch(e){Object(p.logError)(e)}}function G(){try{return P.getCookie(x)}catch(e){Object(p.logError)(e)}}function J(e){if(e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies){if(!e.consentString)return!1;if(1===e.apiVersion&&!1===Object(p.deepAccess)(e,"vendorData.purposeConsents.1"))return!1;if(2===e.apiVersion&&!1===Object(p.deepAccess)(e,"vendorData.purpose.consents.1"))return!1}return!0}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname;if(!P.cookiesAreEnabled())return e;var t,n,o=e.split(".");if(2==o.length)return e;var r=-2,a="_rdc".concat(Date.now()),i="writeable";do{t=o.slice(r).join(".");var c=new Date(Object(p.timestamp)()+1e4).toUTCString();P.setCookie(a,i,c,"Lax",t,void 0);var u=P.getCookie(a,void 0);u===i?(n=!1,P.setCookie(a,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,t,void 0)):(r+=-1,n=Math.abs(r)<=o.length)}while(n);return t}function W(e,t){var n=function(){};t&&(n=Object(p.delayExecution)((function(){clearTimeout(h),t()}),e.length)),e.forEach((function(e){e.callback((function(t){t?(e.config.storage&&N(e,t),e.idObj=e.submodule.decode(t,e.config)):Object(p.logInfo)("".concat(D,": ").concat(e.submodule.name," - request id responded with an empty value")),n()})),e.callback=void 0}))}function z(e){return Array.isArray(e)&&e.length?e.filter((function(e){return Object(p.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).reduce((function(e,t){return Object.keys(t.idObj).forEach((function(n){e[n]=t.idObj[n]})),e}),{}):{}}function B(e,t){[e].some((function(e){return!Array.isArray(e)||!e.length}))||e.forEach((function(e){e.bids&&Object(p.isArray)(e.bids)&&e.bids.forEach((function(e){var n=function(e,t){return Array.isArray(e)&&e.length&&t?e.filter((function(e){return!e.config.bidders||!Object(p.isArray)(e.config.bidders)||y()(e.config.bidders,t)})).filter((function(e){return Object(p.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).reduce((function(e,t){return Object.keys(t.idObj).forEach((function(n){e[n]=t.idObj[n]})),e}),{}):{}}(t,e.bidder);Object.keys(n).length&&(e.userId=n,e.userIdAsEids=Object(g.b)(n))}))}))}function $(e){var t=!1;if(void 0===j&&(j=function(e,t){var n=Z(e,t),o=n.userIdModules;if(!n.hasValidated&&!J(t))return Object(p.logWarn)("".concat(D," - gdpr permission not valid for local storage or cookies, exit module")),[];var r=G();return R(t),o.reduce((function(e,n){return ee(n,t,r,!1),e.push(n),e}),[])}(T,s.gdprDataHandler.getConsentData())).length){q(j);var n=j.filter((function(e){return Object(p.isFn)(e.callback)}));if(n.length)if(e&&k>0){t=!0;var o=!1,r=function(){o||(o=!0,e())};Object(p.logInfo)("".concat(D," - auction delayed by ").concat(k," at most to fetch ids")),h=setTimeout(r,k),W(n,r)}else c.a.on(l.a.EVENTS.AUCTION_END,(function e(){c.a.off(l.a.EVENTS.AUCTION_END,e),I>0?setTimeout((function(){W(n)}),I):W(n)}))}e&&!t&&e()}function K(e,t){$((function(){B(t.adUnits||Object(u.a)().adUnits,j);var n=w&&(X()||[]).find((function(e){return e.source===w}));if(n&&"string"==typeof Object(p.deepAccess)(n,"uids.0.id")){var o=n.uids[0].id.replace(/[\W_]/g,"");o.length>=32&&o.length<=150?Object(p.isGptPubadsDefined)()?window.googletag.pubads().setPublisherProvidedId(o):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(o)}))):Object(p.logWarn)("User ID - Googletag Publisher Provided ID for ".concat(w," is not between 32 and 150 characters - ").concat(o))}e.call(this,t)}))}function Q(){return $(),z(j)}function X(){return $(),Object(g.b)(z(j))}function Y(e,t){var n=e?e.submoduleNames:null;n||(n=[]),$((function(){var e=s.gdprDataHandler.getConsentData(),o=Z(T,e),r=o.userIdModules;if(o.hasValidated||J(e)){var a=G();R(e);var i,c=[],u=O(r);try{for(u.s();!(i=u.n()).done;){var d=i.value;n.length>0&&-1===n.indexOf(d.submodule.name)||(Object(p.logInfo)("".concat(D," - refreshing ").concat(d.submodule.name)),ee(d,e,a,!0),te(d),j.length&&q(j),Object(p.isFn)(d.callback)&&c.push(d))}}catch(e){u.e(e)}finally{u.f()}c.length>0&&W(c),t&&t()}else Object(p.logWarn)("".concat(D," - gdpr permission not valid for local storage or cookies, exit module"))}))}var Z=Object(f.b)("sync",(function(e,t){return{userIdModules:e,hasValidated:t&&t.hasValidated}}),"validateGdprEnforcement");function ee(e,t,n,o){if(e.config.storage){var r,a=F(e.config.storage),i=!1;if("number"==typeof e.config.storage.refreshInSeconds){var c=new Date(F(e.config.storage,"last"));i=c&&Date.now()-c.getTime()>1e3*e.config.storage.refreshInSeconds}!a||i||o||!function(e,t){return null!=e&&e===M(t)}(n,t)?r=e.submodule.getId(e.config,t,a):"function"==typeof e.submodule.extendId&&(r=e.submodule.extendId(e.config,t,a)),Object(p.isPlainObject)(r)&&(r.id&&(N(e,r.id),a=r.id),"function"==typeof r.callback&&(e.callback=r.callback)),a&&(e.idObj=e.submodule.decode(a,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var u=e.submodule.getId(e.config,t,void 0);Object(p.isPlainObject)(u)&&("function"==typeof u.callback&&(e.callback=u.callback),u.id&&(e.idObj=e.submodule.decode(u.id,e.config)))}}function te(e){for(var t=!1,n=0;n<j.length;n++)if(e.config.name.toLowerCase()===j[n].config.name.toLowerCase()){t=!0,j[n]=e;break}t||j.push(e)}function ne(){var e=function(e,t,n){return Array.isArray(e)?e.reduce((function(e,t){return!t||Object(p.isEmptyStr)(t.name)||(!t.storage||Object(p.isEmptyStr)(t.storage.type)||Object(p.isEmptyStr)(t.storage.name)||-1===n.indexOf(t.storage.type)?Object(p.isPlainObject)(t.value)?e.push(t):t.storage||t.value||e.push(t):e.push(t)),e}),[]):[]}(V,0,U);if(e.length){var t=L.filter((function(e){return!r()(T,(function(t){return t.name===e.name}))}));T=t.map((function(t){var n=r()(e,(function(e){return e.name&&(e.name.toLowerCase()===t.name.toLowerCase()||t.aliasName&&e.name.toLowerCase()===t.aliasName.toLowerCase())}));return n&&t.name!==n.name&&(n.name=t.name),t.findRootDomain=H,n?{submodule:t,config:n,callback:void 0,idObj:void 0}:null})).filter((function(e){return null!==e})),!_&&T.length&&(Object(u.a)().requestBids.before(K,40),Object(p.logInfo)("".concat(D," - usersync config updated for ").concat(T.length," submodules: "),T.map((function(e){return e.submodule.name}))),_=!0)}}function oe(e){r()(L,(function(t){return t.name===e.name}))||(L.push(e),ne())}function re(e){w=void 0,T=[],V=[],_=!1,j=void 0,-1!==(U=[P.localStorageIsEnabled()?E:null,P.cookiesAreEnabled()?S:null].filter((function(e){return null!==e}))).indexOf(S)&&P.getCookie(C)?Object(p.logInfo)("".concat(D," - opt-out cookie found, exit module")):-1!==U.indexOf(E)&&P.getDataFromLocalStorage(C)?Object(p.logInfo)("".concat(D," - opt-out localStorage found, exit module")):(e.getConfig("userSync",(function(e){var t=e.userSync;w=t.ppid,t&&t.userIds&&(V=t.userIds,I=Object(p.isNumber)(t.syncDelay)?t.syncDelay:500,k=Object(p.isNumber)(t.auctionDelay)?t.auctionDelay:0,ne())})),Object(u.a)().getUserIds=Q,Object(u.a)().getUserIdsAsEids=X,Object(u.a)().refreshUserIds=Y)}re(a.b),Object(f.c)("userId",oe),window.pbjs.installedModules.push("userId")}},[972]);
pbjs.processQueue();