!function(){var t,n={20265:function(t,n,r){function e(t,n,r,e,o){for(n=n.split?n.split("."):n,e=0;e<n.length;e++)t=t?t[n[e]]:o;return t===o?r:t}r.d(n,{Z:function(){return e}})},81432:function(t){
/*
* @license MIT
* Fun Hooks v0.9.10
* (c) @snapwich
*/
i.SYNC=1,i.ASYNC=2,i.QUEUE=4;var n=Object.freeze({useProxy:!0,ready:0}),r=new WeakMap,e="2,1,0"===[1].reduce((function(t,n,r){return[t,n,r]}),2).toString()?Array.prototype.reduce:function(t,n){var r,e=Object(this),o=e.length>>>0,u=0;if(n)r=n;else{for(;u<o&&!(u in e);)u++;r=e[u++]}for(;u<o;)u in e&&(r=t(r,e[u],u,e)),u++;return r};function o(t,n){return Array.prototype.slice.call(t,n)}var u=Object.assign||function(t){return e.call(o(arguments,1),(function(t,n){return n&&Object.keys(n).forEach((function(r){t[r]=n[r]})),t}),t)};function i(t){var f,c={},a=[];function l(t,n){return"function"==typeof t?d.call(null,"sync",t,n):"string"==typeof t&&"function"==typeof n?d.apply(null,arguments):"object"==typeof t?p.apply(null,arguments):void 0}function p(t,n,r){var e=!0;void 0===n&&(n=Object.getOwnPropertyNames(t),e=!1);var o={},u=["constructor"];do{(n=n.filter((function(n){return!("function"!=typeof t[n]||-1!==u.indexOf(n)||n.match(/^_/))}))).forEach((function(n){var e=n.split(":"),u=e[0],i=e[1]||"sync";if(!o[u]){var f=t[u];o[u]=t[u]=d(i,f,r?[r,u]:void 0)}})),t=Object.getPrototypeOf(t)}while(e&&t);return o}function y(t){var n=Array.isArray(t)?t:t.split(".");return e.call(n,(function(r,e,o){var u=r[e],i=!1;return u||(o===n.length-1?(f||a.push((function(){i||console.warn("fun-hooks: referenced '"+t+"' but it was never created")})),r[e]=s((function(t){r[e]=t,i=!0}))):r[e]={})}),c)}function s(t){var n=[],e=[],o=function(){},i={before:function(t,r){return c.call(this,n,"before",t,r)},after:function(t,n){return c.call(this,e,"after",t,n)},getHooks:function(t){var r=n.concat(e);"object"==typeof t&&(r=r.filter((function(n){return Object.keys(t).every((function(r){return n[r]===t[r]}))})));try{u(r,{remove:function(){return r.forEach((function(t){t.remove()})),this}})}catch(t){console.error("error adding `remove` to array, did you modify Array.prototype?")}return r},removeAll:function(){return this.getHooks().remove()}},f={install:function(r,u,i){this.type=r,o=i,i(n,e),t&&t(u)}};return r.set(i.after,f),i;function c(t,r,u,i){var f={hook:u,type:r,priority:i||10,remove:function(){var r=t.indexOf(f);-1!==r&&(t.splice(r,1),o(n,e))}};return t.push(f),t.sort((function(t,n){return n.priority-t.priority})),o(n,e),this}}function d(n,e,c){var l=e.after&&r.get(e.after);if(l){if(l.type!==n)throw"fun-hooks: recreated hookable with different type";return e}var p,d,b=c?y(c):s(),v={get:function(t,n){return b[n]||Reflect.get.apply(Reflect,arguments)}};return f||a.push(h),t.useProxy&&"function"==typeof Proxy&&Proxy.revocable?d=new Proxy(e,v):(d=function(){return v.apply?v.apply(e,this,o(arguments)):e.apply(this,arguments)},u(d,b)),r.get(d.after).install(n,d,(function(t,r){var e,u=[];t.length||r.length?(t.forEach(i),e=u.push(void 0)-1,r.forEach(i),p=function(t,r,i){var f,c=0,a="async"===n&&"function"==typeof i[i.length-1]&&i.pop();function l(t){"sync"===n?f=t:a&&a.apply(null,arguments)}function p(t){if(u[c]){var e=o(arguments);return p.bail=l,e.unshift(p),u[c++].apply(r,e)}"sync"===n?f=t:a&&a.apply(null,arguments)}return u[e]=function(){var e=o(arguments,1);"async"===n&&a&&(delete p.bail,e.push(p));var u=t.apply(r,e);"sync"===n&&p(u)},p.apply(null,i),f}):p=void 0;function i(t){u.push(t.hook)}h()})),d;function h(){!f&&("sync"!==n||t.ready&i.SYNC)&&("async"!==n||t.ready&i.ASYNC)?"sync"!==n&&t.ready&i.QUEUE?v.apply=function(){var t=arguments;a.push((function(){d.apply(t[1],t[2])}))}:v.apply=function(){throw"fun-hooks: hooked function not ready"}:v.apply=p}}return(t=u({},n,t)).ready?l.ready=function(){f=!0,function(t){for(var n;n=t.shift();)n()}(a)}:f=!0,l.get=y,l}t.exports=i},30907:function(t,n,r){function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}r.d(n,{Z:function(){return e}})},97326:function(t,n,r){function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(n,{Z:function(){return e}})},15671:function(t,n,r){function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}r.d(n,{Z:function(){return e}})},1519:function(t,n,r){function e(t,n,r){if(!n.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return n.get(t)}r.d(n,{Z:function(){return e}})},86033:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(1519);function o(t,n){return function(t,n){return n.get?n.get.call(t):n.value}(t,(0,e.Z)(t,n,"get"))}},13092:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(1519);function o(t,n,r){return function(t,n,r){if(n.set)n.set.call(t,r);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=r}}(t,(0,e.Z)(t,n,"set"),r),r}},43144:function(t,n,r){function e(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function o(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}r.d(n,{Z:function(){return o}})},4942:function(t,n,r){function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,{Z:function(){return e}})},61120:function(t,n,r){function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},e(t)}r.d(n,{Z:function(){return e}})},60136:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(89611);function o(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&(0,e.Z)(t,n)}},82963:function(t,n,r){r.d(n,{Z:function(){return u}});var e=r(71002),o=r(97326);function u(t,n){if(n&&("object"===(0,e.Z)(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(t)}},89611:function(t,n,r){function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},e(t,n)}r.d(n,{Z:function(){return e}})},70885:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(40181);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,o,u=[],i=!0,f=!1;try{for(r=r.call(t);!(i=(e=r.next()).done)&&(u.push(e.value),!n||u.length!==n);i=!0);}catch(t){f=!0,o=t}finally{try{i||null==r.return||r.return()}finally{if(f)throw o}}return u}}(t,n)||(0,e.Z)(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},42982:function(t,n,r){r.d(n,{Z:function(){return u}});var e=r(30907);var o=r(40181);function u(t){return function(t){if(Array.isArray(t))return(0,e.Z)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,o.Z)(t)||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.")}()}},71002:function(t,n,r){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}r.d(n,{Z:function(){return e}})},40181:function(t,n,r){r.d(n,{Z:function(){return o}});var e=r(30907);function o(t,n){if(t){if("string"==typeof t)return(0,e.Z)(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,e.Z)(t,n):void 0}}},96475:function(t,n,r){function e(t,n,r){n.split&&(n=n.split("."));for(var e,o,u=0,i=n.length,f=t;u<i&&"__proto__"!==(o=n[u++])&&"constructor"!==o&&"prototype"!==o;)f=f[o]=u===i?r:typeof(e=f[o])==typeof n?e:0*n[u]!=0||~(""+n[u]).indexOf(".")?{}:[]}r.d(n,{N:function(){return e}})},18812:function(t,n,r){function e(t){var n,r,o;if(Array.isArray(t)){for(r=Array(n=t.length);n--;)r[n]=(o=t[n])&&"object"==typeof o?e(o):o;return r}if("[object Object]"===Object.prototype.toString.call(t)){for(n in r={},t)"__proto__"===n?Object.defineProperty(r,n,{value:e(t[n]),configurable:!0,enumerable:!0,writable:!0}):r[n]=(o=t[n])&&"object"==typeof o?e(o):o;return r}return t}r.d(n,{Y:function(){return e}})}},r={};function e(t){var o=r[t];if(void 0!==o)return o.exports;var u=r[t]={exports:{}};return n[t].call(u.exports,u,u.exports,e),u.exports}e.m=n,t=[],e.O=function(n,r,o,u){if(!r){var i=1/0;for(l=0;l<t.length;l++){r=t[l][0],o=t[l][1],u=t[l][2];for(var f=!0,c=0;c<r.length;c++)(!1&u||i>=u)&&Object.keys(e.O).every((function(t){return e.O[t](r[c])}))?r.splice(c--,1):(f=!1,u<i&&(i=u));if(f){t.splice(l--,1);var a=o();void 0!==a&&(n=a)}}return n}u=u||0;for(var l=t.length;l>0&&t[l-1][2]>u;l--)t[l]=t[l-1];t[l]=[r,o,u]},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t={25602:0};e.O.j=function(n){return 0===t[n]};var n=function(n,r){var o,u,i=r[0],f=r[1],c=r[2],a=0;if(i.some((function(n){return 0!==t[n]}))){for(o in f)e.o(f,o)&&(e.m[o]=f[o]);if(c)var l=c(e)}for(n&&n(r);a<i.length;a++)u=i[a],e.o(t,u)&&t[u]&&t[u][0](),t[u]=0;return e.O(l)},r=self.pbjsChunk=self.pbjsChunk||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}();var o=e.O(void 0,[25823,79270],(function(){return e(20327)}));o=e.O(o)}();(self.pbjsChunk=self.pbjsChunk||[]).push([[21266],{55630:function(n,e,t){var o,r,i,a,c,s,l=t(71002),u=t(78640),d=t(64358),p=t(96475),g=t(3193),f=t(34516),m=t(34614),v=t(99128),b=t(26372),C=t(54078),y=t(52712),M=!1,S={iab:function(n){var e=n.onSuccess,t=n.onError,o=n.onEvent;var r=(0,y.b6)({apiName:"__tcfapi",apiVersion:2,apiArgs:["command","version","callback","parameter"]});if(!r)return t("TCF2 CMP not found.");r.isDirect?(0,d.logInfo)("Detected CMP API is directly accessible, calling it now..."):(0,d.logInfo)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now...");r({command:"addEventListener",callback:function(n,r){(0,d.logInfo)("Received a response from CMP",n),r?(o(n),!1!==n.gdprApplies&&"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||k(n,{onSuccess:e,onError:t})):t("CMP unable to register callback function.  Please check CMP setup.")}})},static:function(n){var e=n.onSuccess,t=n.onError;k(a,{onSuccess:e,onError:t})}};function A(n){var e,t,i=!1,a=null,s=!1;function l(n){null!=a&&clearTimeout(a),i||null==n||(0===n?e():a=setTimeout(e,n))}function u(e,t,o){if(l(null),i=!0,f.rp.setConsentData(e),"function"==typeof n){for(var r=arguments.length,a=new Array(r>3?r-3:0),c=3;c<r;c++)a[c-3]=arguments[c];n.apply(void 0,[t,o].concat(a))}}if((0,m.q9)(Object.keys(S),o)){var d={onSuccess:function(n){return u(n,!1)},onError:function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];u.apply(void 0,[null,!0,n].concat(t))},onEvent:function(n){t=n,s||(s=!0,null!=c&&l(c))}};e=function(){var n=function(n){u(n,!1,"".concat(s?"Timeout waiting for user action on CMP":"CMP did not load",", continuing auction..."))};k(t,{onSuccess:n,onError:function(){return n(E(void 0))}})},S[o](d),null!=c&&s||l(r)}else u(null,!1,"CMP framework (".concat(o,") is not a supported framework.  Aborting consentManagement module and resuming auction."))}var P=(0,v.g3)("gdpr",(function(n,e){var t;t=function(t,o){if(o){var r=d.logWarn;t&&(r=d.logError,o="".concat(o," Canceling auction as per consentManagement config."));for(var i=arguments.length,a=new Array(i>2?i-2:0),c=2;c<i;c++)a[c-2]=arguments[c];r.apply(void 0,[o].concat(a))}t?(n.stopTiming(),"function"==typeof e.bidsBackHandler?e.bidsBackHandler():(0,d.logError)("Error executing bidsBackHandler")):n.call(this,e)},s?((0,d.logInfo)("User consent information already known.  Pulling internally stored information..."),t(!1)):A(t)}));function k(n,e){var t,o,r=e.onSuccess,a=e.onError;t=n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:i,o=n&&n.tcString,"boolean"==typeof t&&(!0!==t||o&&(0,d.isStr)(o))?r(E(n)):a("CMP returned unexpected value during lookup process.",n)}function E(n){return s={consentString:n?n.tcString:void 0,vendorData:n||void 0,gdprApplies:n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:i},n&&n.addtlConsent&&(0,d.isStr)(n.addtlConsent)&&(s.addtlConsent=n.addtlConsent),s.apiVersion=2,s}g.vc.getConfig("consentManagement",(function(n){return function(n){if((n=n&&(n.gdpr||n.usp||n.gpp?n.gdpr:n))&&"object"===(0,l.Z)(n)){var e;(0,d.isStr)(n.cmpApi)?o=n.cmpApi:(o="iab",(0,d.logInfo)("consentManagement config did not specify cmp.  Using system default setting (".concat("iab",")."))),(0,d.isNumber)(n.timeout)?r=n.timeout:(r=1e4,(0,d.logInfo)("consentManagement config did not specify timeout.  Using system default setting (".concat(1e4,")."))),c=(0,d.isNumber)(n.actionTimeout)?n.actionTimeout:null,i=!0===n.defaultGdprScope,(0,d.logInfo)("consentManagement module has been activated..."),"static"===o&&((0,d.isPlainObject)(n.consentData)?(null!=(null===(e=a=n.consentData)||void 0===e?void 0:e.getTCData)&&(a=a.getTCData),r=0):(0,d.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),M||(0,u.R)().requestBids.before(P,50),M=!0,f.rp.enable(),A()}else(0,d.logWarn)("consentManagement (gdpr) config not defined, exiting consent manager")}(n.consentManagement)})),C.S.before((function(n,e){return n(e.then((function(n){var e=f.rp.getConsentData();return e&&("boolean"==typeof e.gdprApplies&&(0,p.N)(n,"regs.ext.gdpr",e.gdprApplies?1:0),(0,p.N)(n,"user.ext.consent",e.consentString)),n})))})),(0,b.f8)({type:b.Z,name:"gdprAddtlConsent",fn:function(n,e){var t,o=null===(t=e.gdprConsent)||void 0===t?void 0:t.addtlConsent;o&&"string"==typeof o&&(0,p.N)(n,"user.ext.ConsentedProvidersSettings.consented_providers",o)}}),(0,u.z)("consentManagement")}},function(n){n.O(0,[25823,17968,79270],(function(){return e=55630,n(n.s=e);var e}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5160],{9099:function(n,t,e){var o,a,c=e(71002),i=e(78640),r=e(64358),s=e(96475),u=e(3193),l=e(93304),g=e(34516),f=e(99128),p=e(92797),d=e(54078),m=e(52712),v="iab",P=v,b=50,S=!1,D={iab:function(n){var t=n.onSuccess,e=n.onError;var o=(c={},{consentDataCallback:function(n,o){o&&n.uspString&&(c.usPrivacy=n.uspString),c.usPrivacy?U(c,{onSuccess:t,onError:e}):e("Unable to get USP consent string.")}}),a=(0,m.b6)({apiName:"__uspapi",apiVersion:1,apiArgs:["command","version","callback"]});var c;if(!a)return e("USP CMP not found.");a.isDirect?(0,r.logInfo)("Detected USP CMP is directly accessible, calling it now..."):(0,r.logInfo)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now...");a({command:"getUSPData",callback:o.consentDataCallback}),a({command:"registerDeletion",callback:function(n,t){return(null==t||t)&&l.ZP.callDataDeletionRequest(n)}}).catch((function(n){(0,r.logError)("Error invoking CMP `registerDeletion`:",n)}))},static:function(n){var t=n.onSuccess,e=n.onError;U(o,{onSuccess:t,onError:e})}};function y(n){var t=null,e=!1;function o(o,a){if(null!=t&&clearTimeout(t),e=!0,g.nX.setConsentData(o),null!=n){for(var c=arguments.length,i=new Array(c>2?c-2:0),r=2;r<c;r++)i[r-2]=arguments[r];n.apply(void 0,[a].concat(i))}}if(D[P]){var a={onSuccess:o,onError:function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),a=1;a<t;a++)e[a-1]=arguments[a];o.apply(void 0,[null,"".concat(n," Resuming auction without consent data as per consentManagement config.")].concat(e))}};D[P](a),e||(0===b?U(void 0,a):t=setTimeout(a.onError.bind(null,"USPAPI workflow exceeded timeout threshold."),b))}else o(null,"USP framework (".concat(P,") is not a supported framework. Aborting consentManagement module and resuming auction."))}var h=(0,f.g3)("usp",(function(n,t){var e=this;S||M(),y((function(o){if(null!=o){for(var a=arguments.length,c=new Array(a>1?a-1:0),i=1;i<a;i++)c[i-1]=arguments[i];r.logWarn.apply(void 0,[o].concat(c))}n.call(e,t)}))}));function U(n,t){var e=t.onSuccess,o=t.onError;!n||!n.usPrivacy?o("USPAPI returned unexpected value during lookup process.",n):(!function(n){n&&n.usPrivacy&&(a=n.usPrivacy)}(n),e(a))}function M(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];S||((0,r.logInfo)("USPAPI consentManagement module has been activated".concat(n?"":" using default values (api: '".concat(P,"', timeout: ").concat(b,"ms)"))),S=!0,g.nX.enable()),y()}u.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&n.usp)&&"object"===(0,c.Z)(n)||(0,r.logWarn)("consentManagement.usp config not defined, using defaults"),n&&(0,r.isStr)(n.cmpApi)?P=n.cmpApi:(P=v,(0,r.logInfo)("consentManagement.usp config did not specify cmpApi. Using system default setting (".concat(v,")."))),n&&(0,r.isNumber)(n.timeout)?b=n.timeout:(b=50,(0,r.logInfo)("consentManagement.usp config did not specify timeout. Using system default setting (".concat(50,")."))),"static"===P&&((0,r.isPlainObject)(n.consentData)&&(0,r.isPlainObject)(n.consentData.getUSPData)?(n.consentData.getUSPData.uspString&&(o={usPrivacy:n.consentData.getUSPData.uspString}),b=0):(0,r.logError)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),M(!0)}(n.consentManagement)})),(0,p.v5)("requestBids").before(h,50),d.S.before((function(n,t){return n(t.then((function(n){var t=g.nX.getConsentData();return t&&(0,s.N)(n,"regs.ext.us_privacy",t),n})))})),(0,i.z)("consentManagementUsp")}},function(n){n.O(0,[17968,25823,79270],(function(){return t=9099,n(n.s=t);var t}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[69168],{30277:function(n,t,e){var r=e(71002),i=e(97326),o=e(60136),a=e(82963),c=e(61120);function u(n,t){for(;!Object.prototype.hasOwnProperty.call(n,t)&&null!==(n=(0,c.Z)(n)););return n}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(n,t,e){var r=u(n,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?n:e):i.value}},s.apply(this,arguments)}var l=e(70885),p=e(4942),f=e(86033),g=e(43144),v=e(15671),d=e(42982),h=e(78640),m=e(64358),y=e(96475),b=e(3193),P=e(34516),w=e(99128),S=e(54078),Z=e(52712),C=e(68792),O=e(16310);function k(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,r=(0,c.Z)(n);if(t){var i=(0,c.Z)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,a.Z)(this,e)}}function M(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function j(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?M(Object(e),!0).forEach((function(t){(0,p.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):M(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function E(n,t,e){!function(n,t){if(t.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n,t),t.set(n,e)}function T(n,t){var e=function(n,t,e){if(!t.has(n))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(n)}(n,t,"set");return function(n,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(e){t.set.call(n,e)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}(n,e)}var D,R,G,I,A=!1;function N(n,t){var e=t.onSuccess,r=t.onError;new C.Z((function(t){return t(n())})).then(e,(function(n){n instanceof _?r.apply(void 0,[n.message].concat((0,d.Z)(n.args))):r("GPP error:",n)}))}var W="1.0",_=(0,g.Z)((function n(t,e){(0,v.Z)(this,n),this.message=t,this.args=null==e?[]:[e]})),x=new WeakMap,z=new WeakMap,L=new WeakMap,U=function(){function n(t,e){var r=this;(0,v.Z)(this,n),E(this,x,{writable:!0,value:void 0}),E(this,z,{writable:!0,value:void 0}),E(this,L,{writable:!0,value:[]}),(0,p.Z)(this,"initialized",!1),this.apiVersion=this.constructor.apiVersion,this.cmpVersion=e,this.cmp=e;var i=[0,1].map((function(n){return function(t){for(;(0,f.Z)(r,L).length;)(0,f.Z)(r,L).pop()[n](t)}})),o=(0,l.Z)(i,2);T(this,x).value=o[0],T(this,z).value=o[1]}return(0,g.Z)(n,[{key:"init",value:function(n){var t=this,e=this.updateWhenReady(n);return this.initialized||(this.initialized=!0,this.cmp({command:"addEventListener",callback:function(n,e){var r;null==e||e?"error"===(null==n||null===(r=n.pingData)||void 0===r?void 0:r.cmpStatus)?(0,f.Z)(t,z).call(t,new _('CMP status is "error"; please check CMP setup',n)):t.isCMPReady((null==n?void 0:n.pingData)||{})&&t.events.includes(null==n?void 0:n.eventName)&&(0,f.Z)(t,x).call(t,t.updateConsent(n.pingData)):(0,f.Z)(t,z).call(t,new _("Received error response from CMP",n))}})),e}},{key:"refresh",value:function(){return this.cmp({command:"ping"}).then(this.updateWhenReady.bind(this))}},{key:"updateConsent",value:function(n){return this.getGPPData(n).then((function(n){if(null==n||(0,m.isEmpty)(n))throw new _("Received empty response from CMP",n);return X(n)})).then((function(n){return(0,m.logInfo)("Retrieved GPP consent from CMP:",n),n}))}},{key:"nextUpdate",value:function(){var n=this;return new C.Z((function(t,e){(0,f.Z)(n,L).push([t,e])}))}},{key:"updateWhenReady",value:function(n){return this.isCMPReady(n)?this.updateConsent(n):this.nextUpdate()}}],[{key:"register",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.apiVersion=n,this.CLIENTS[n]=this,t&&(this.CLIENTS.default=this)}},{key:"init",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z.b6,e=this.INST;if(!e){var r,i=function(){return r&&(n.INST=null)};e=this.INST=this.ping(t).catch((function(n){throw r=!0,i(),n})),i()}return e.then((function(n){var t=(0,l.Z)(n,2),e=t[0],r=t[1];return[e,e.initialized?e.refresh():e.init(r)]}))}},{key:"ping",value:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z.b6,e={apiName:"__gpp",apiArgs:["command","callback","parameter"]},r=t(j(j({},e),{},{mode:Z.kX}));return new C.Z((function(i,o){if(null!=r){var a=!1,c=function(r,c){if(!a)if(null==c||c){if(null!=r){a=!0;var u=null==r?void 0:r.gppVersion,s=n.getClient(u);u!==s.apiVersion?(0,m.logWarn)("Unrecognized GPP CMP version: ".concat(u,". Continuing using GPP API version ").concat(s,"...")):(0,m.logInfo)("Using GPP version ".concat(u));var l=s.apiVersion===W?Z.sM:Z.m1,p=new s(u,t(j(j({},e),{},{mode:l})));i([p,r])}}else o(r)};r({command:"ping",callback:c}).then((function(n){return c(n,!0)}),o)}else o(new _("GPP CMP not found"))})).finally((function(){r&&r.close()}))}},{key:"getClient",value:function(n){return this.CLIENTS.hasOwnProperty(n)?this.CLIENTS[n]:this.CLIENTS.default}}]),n}();(0,p.Z)(U,"CLIENTS",{}),(0,p.Z)(U,"INST",void 0);var V=function(n){(0,o.Z)(e,n);var t=k(e);function e(){var n;(0,v.Z)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),(0,p.Z)((0,i.Z)(n),"events",["sectionChange","cmpStatus"]),n}return(0,g.Z)(e,[{key:"isCMPReady",value:function(n){return"loaded"===n.cmpStatus}},{key:"getGPPData",value:function(n){var t=this,e=C.Z.all((n.supportedAPIs||n.apiSupport||[]).map((function(n){return t.cmp({command:"getSection",parameter:n}).catch((function(t){(0,m.logWarn)("Could not retrieve GPP section '".concat(n,"'"),t)})).then((function(t){return[n,t]}))}))).then((function(n){return Object.fromEntries(n.filter((function(n){var t=(0,l.Z)(n,2);t[0];return null!=t[1]})).map((function(n){var t=(0,l.Z)(n,2),e=t[0],r=t[1],i=[Object.fromEntries(Object.entries(r).filter((function(n){return"Gpc"!==(0,l.Z)(n,1)[0]})))];return null!=r.Gpc&&i.push({SubsectionType:1,Gpc:r.Gpc}),[e,i]})))}));return C.Z.all([this.cmp({command:"getGPPData"}),e]).then((function(n){var t=(0,l.Z)(n,2),e=t[0],r=t[1];return Object.assign({},e,{parsedSections:r})}))}}]),e}(U);s((0,c.Z)(V),"register",V).call(V,W);var B=function(n){(0,o.Z)(e,n);var t=k(e);function e(){var n;(0,v.Z)(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),(0,p.Z)((0,i.Z)(n),"events",["sectionChange","signalStatus"]),n}return(0,g.Z)(e,[{key:"isCMPReady",value:function(n){return"ready"===n.signalStatus}},{key:"getGPPData",value:function(n){return C.Z.resolve(n)}}]),e}(U);s((0,c.Z)(B),"register",B).call(B,"1.1",!0);var J={iab:function(n){var t=n.onSuccess,e=n.onError,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z.b6;N((function(){return U.init(r).then((function(n){var t=(0,l.Z)(n,2);t[0];return t[1]}))}),{onSuccess:t,onError:e})},static:function(n){return N((function(){return X(G)}),n)}};function H(n){var t=!1,e=null;function r(r,i,o){if(null!=e&&clearTimeout(e),t=!0,P.TJ.setConsentData(r),"function"==typeof n){for(var a=arguments.length,c=new Array(a>3?a-3:0),u=3;u<a;u++)c[u-3]=arguments[u];n.apply(void 0,[i,o].concat(c))}}if(J.hasOwnProperty(D)){var i={onSuccess:function(n){return r(n,!1)},onError:function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];r.apply(void 0,[null,!0,n].concat(e))}};if(J[D](i),!t){var o=function(){var n=function(n){r(n,!1,"GPP CMP did not load, continuing auction...")};N((function(){return X(I)}),{onSuccess:n,onError:function(){return n(F())}})};0===R?o():e=setTimeout(o,R)}}else r(null,!1,"GPP CMP framework (".concat(D,") is not a supported framework.  Aborting consentManagement module and resuming auction."))}var q=(0,w.g3)("gpp",(function(n,t){var e;e=function(e,r){if(r){var i=m.logWarn;e&&(i=m.logError,r="".concat(r," Canceling auction as per consentManagement config."));for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c<o;c++)a[c-2]=arguments[c];i.apply(void 0,[r].concat(a))}e?(n.stopTiming(),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():(0,m.logError)("Error executing bidsBackHandler")):n.call(this,t)},I?((0,m.logInfo)("User consent information already known.  Pulling internally stored information..."),e(!1)):H(e)}));function X(n){if(null!=(null==n?void 0:n.applicableSections)&&!Array.isArray(n.applicableSections)||null!=(null==n?void 0:n.gppString)&&!(0,m.isStr)(n.gppString)||null!=(null==n?void 0:n.parsedSections)&&!(0,m.isPlainObject)(n.parsedSections))throw new _("CMP returned unexpected value during lookup process.",n);return["usnatv1","uscav1"].forEach((function(t){var e;null!=n&&null!==(e=n.parsedSections)&&void 0!==e&&e[t]&&(0,m.logWarn)("Received invalid section from cmp: '".concat(t,"'. Some functionality may not work as expected"),n)})),F(n)}function F(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return I={gppString:null==n?void 0:n.gppString,applicableSections:(null==n?void 0:n.applicableSections)||[],parsedSections:(null==n?void 0:n.parsedSections)||{},gppData:n},P.TJ.setConsentData(n),I}b.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&n.gpp)&&"object"===(0,r.Z)(n)?((0,m.isStr)(n.cmpApi)?D=n.cmpApi:(D="iab",(0,m.logInfo)("consentManagement.gpp config did not specify cmp.  Using system default setting (".concat("iab",")."))),(0,m.isNumber)(n.timeout)?R=n.timeout:(R=1e4,(0,m.logInfo)("consentManagement.gpp config did not specify timeout.  Using system default setting (".concat(1e4,")."))),"static"===D&&((0,m.isPlainObject)(n.consentData)?(G=n.consentData,R=0):(0,m.logError)("consentManagement.gpp config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),(0,m.logInfo)("consentManagement.gpp module has been activated..."),A||((0,h.R)().requestBids.before(q,50),O.Ww.before((function(n,t){return n(Object.assign({gppConsent:P.TJ.getConsentData()},t))}))),A=!0,P.TJ.enable(),H()):(0,m.logWarn)("consentManagement.gpp config not defined, exiting consent manager module")}(n.consentManagement)})),S.S.before((function(n,t){return n(t.then((function(n){var t=P.TJ.getConsentData();return t&&(Array.isArray(t.applicableSections)&&(0,y.N)(n,"regs.gpp_sid",t.applicableSections),(0,y.N)(n,"regs.gpp",t.gppString)),n})))})),(0,h.z)("consentManagementGpp")}},function(n){n.O(0,[17968,25823,79270],(function(){return t=30277,n(n.s=t);var t}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[79073],{7713:function(e,o,n){var t=n(78640),r=n(64358),a=n(48928),i=n(25102),c=n(92797),l=n(15164),d=n(9633),u=n(34516),s="criteo",p=(0,l.df)({moduleType:d.y2,moduleName:s}),g="cto_bidid",v="cto_bundle",m="html5",f="cookie",b=new Date(0).toString(),y=new Date((0,r.timestamp)()+33696e6).toString();function I(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,r.parseUrl)(e,{noDecodeWholeURL:!0});return o?"".concat(n.hostname):"".concat(n.protocol,"://").concat(n.hostname).concat(n.port?":"+n.port:"","/")}function h(e,o){var n,t;return(null==e||null===(n=e.storage)||void 0===n?void 0:n.type)===m?p.getDataFromLocalStorage(o):(null==e||null===(t=e.storage)||void 0===t?void 0:t.type)===f?p.getCookie(o):p.getCookie(o)||p.getDataFromLocalStorage(o)}function S(e,o,n,t){var r,a;o&&n&&((null==e||null===(r=e.storage)||void 0===r?void 0:r.type)===m?p.setDataInLocalStorage(o,n):((null==e||null===(a=e.storage)||void 0===a?void 0:a.type)===f||p.setDataInLocalStorage(o,n),C(o,n,y,t,!0)))}function C(e,o,n,t,r){for(var a=t.split("."),i=0;i<a.length;++i){var c=a.slice(a.length-i-1,a.length).join(".");try{if(p.setCookie(e,o,n,null,"."+c),r){var l=p.getCookie(e);if(l&&l===o)break}}catch(e){}}}function U(e,o,n){var t,c,l,d,s=(void 0===(null==e||null===(t=e.storage)||void 0===t?void 0:t.type)||(null==e||null===(c=e.storage)||void 0===c?void 0:c.type)===f)&&p.cookiesAreEnabled(),y=(void 0===(null==e||null===(l=e.storage)||void 0===l?void 0:l.type)||(null==e||null===(d=e.storage)||void 0===d?void 0:d.type)===m)&&p.localStorageIsEnabled(),h=I((0,i.nH)().page),U=I(document.location.href,!0),w="undefined"!=typeof criteo_pubtag,D=function(e,o,n,t,r,a,i){var c="https://gum.criteo.com/sid/json?origin=prebid"+"".concat(e?"&topUrl="+encodeURIComponent(e):"")+"".concat(o?"&domain="+encodeURIComponent(o):"")+"".concat(n?"&bundle="+encodeURIComponent(n):"")+"".concat(t?"&info="+encodeURIComponent(t):"")+"".concat(r?"&cw=1":"")+"".concat(i?"&pbt=1":"")+"".concat(a?"&lsw=1":""),l=u.nX.getConsentData();l&&(c+="&us_privacy=".concat(encodeURIComponent(l)));var d=u.rp.getConsentData();d&&(c+="".concat(d.consentString?"&gdprString="+encodeURIComponent(d.consentString):""),c+="&gdpr=".concat(!0===d.gdprApplies?1:0));var s=u.TJ.getConsentData();return s&&(c+="".concat(s.gppString?"&gpp="+encodeURIComponent(s.gppString):""),c+="".concat(s.applicableSections?"&gpp_sid="+encodeURIComponent(s.applicableSections):"")),c}(h,U,o.bundle,o.dnaBundle,s,y,w),k={success:function(o){var t,i=JSON.parse(o);(i.pixels&&i.pixels.forEach((function(o){return function(e,o,n){n.writeBundleInStorage&&n.bundlePropertyName&&n.storageKeyName?(0,a.hj)(n.pixelUrl,{success:function(t){if(t){var r=JSON.parse(t);r&&r[n.bundlePropertyName]&&S(e,n.storageKeyName,r[n.bundlePropertyName],o)}},error:function(e){(0,r.logError)("criteoIdSystem: unable to sync user id",e)}},void 0,{method:"GET",withCredentials:!0}):(0,r.triggerPixel)(n.pixelUrl)}(e,U,o)})),i.acwsUrl)?("string"==typeof i.acwsUrl?[i.acwsUrl]:i.acwsUrl).forEach((function(e){return(0,r.triggerPixel)(e)})):i.bundle&&S(e,v,i.bundle,U);if(i.bidId){S(e,g,i.bidId,U);var c={criteoId:i.bidId};n(c)}else C(t=g,"",b,U,!0),p.removeDataFromLocalStorage(t),n()},error:function(e){(0,r.logError)("criteoIdSystem: unable to sync user id",e),n()}};(0,a.hj)(D,k,void 0,{method:"GET",contentType:"application/json",withCredentials:!0})}var w={name:s,gvlid:91,decode:function(e){return e},getId:function(e){var o=function(e){return{bundle:h(e,v),dnaBundle:h(e,"cto_dna_bundle"),bidId:h(e,g)}}(e);return{id:o.bidId?{criteoId:o.bidId}:void 0,callback:function(n){return U(e,o,n)}}},eids:{criteoId:{source:"criteo.com",atype:1}}};(0,c.Bx)("userId",w),(0,t.z)("criteoIdSystem")}},function(e){e.O(0,[25823,79270],(function(){return o=7713,e(e.s=o);var o}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[99226],{72663:function(e,n,r){var o,c,t=r(70885),i=r(71002),s=r(78640),u=r(64358),a=r(62200),f=r(48928),l=r(3193),d=r(92797),v=r(68792),y=r(26372),g=r(99128),C=r(52021),p="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",h=[],R={},b=!1,I=!0,O="USD",N=!1,S={},T={},w=(0,v.P)();function F(e){c?((0,u.logWarn)(e),(0,u.logWarn)("Currency failed loading rates, falling back to currency.defaultRates")):(0,u.logError)(e)}function U(){I?(I=!1,b=!1,(0,f.hj)(o,{success:function(e){try{S=JSON.parse(e),(0,u.logInfo)("currencyRates set to "+JSON.stringify(S)),R={},b=!0,k()}catch(n){F("Failed to parse currencyRates response: "+e)}},error:function(){F.apply(void 0,arguments),b=!0,k(),I=!0}})):k()}function m(){R={},N||(N=!0,(0,s.R)().convertCurrency=function(e,n,r){return parseFloat(e)*$(n,r)},(0,d.v5)("addBidResponse").before(A,100),(0,d.v5)("responsesReady").before(E),(0,C.on)(a.FP.AUCTION_TIMEOUT,j),(0,C.on)(a.FP.AUCTION_INIT,U),U())}function D(){N&&((0,d.v5)("addBidResponse").getHooks({hook:A}).remove(),(0,d.v5)("responsesReady").getHooks({hook:E}).remove(),(0,C.off)(a.FP.AUCTION_TIMEOUT,j),(0,C.off)(a.FP.AUCTION_INIT,U),delete(0,s.R)().convertCurrency,O="USD",R={},N=!1,b=!1,I=!0,S={},T={},w=(0,v.P)())}function E(e,n){e(n.then((function(){return w.promise})))}l.vc.getConfig("currency",(function(e){return function(e){if(o=p,"object"===(0,i.Z)(e.rates)&&(S.conversions=e.rates,b=!0,I=!1),"object"===(0,i.Z)(e.defaultRates)&&(c=e.defaultRates,S.conversions=c,b=!0),"string"==typeof e.adServerCurrency){(0,u.logInfo)("enabling currency support",arguments),O=e.adServerCurrency,e.conversionRateFile&&((0,u.logInfo)("currency using override conversionRateFile:",e.conversionRateFile),o=e.conversionRateFile);var n=o.indexOf("$$TODAY$$");if(-1!==n){var r=new Date,t="".concat(r.getMonth()+1),s="".concat(r.getDate());t.length<2&&(t="0".concat(t)),s.length<2&&(s="0".concat(s));var a="".concat(r.getFullYear()).concat(t).concat(s);o="".concat(o.substring(0,n)).concat(a).concat(o.substring(n+9,o.length))}m()}else(0,u.logInfo)("disabling currency support"),D();"object"===(0,i.Z)(e.bidderCurrencyDefault)&&(T=e.bidderCurrencyDefault)}(e.currency)}));var A=(0,g.A)("currency",(function(e,n,r,o){if(!r)return e.call(this,n,r,o);var c=r.bidderCode||r.bidder;if(T[c]){var t=T[c];r.currency&&t!==r.currency?(0,u.logWarn)("Currency default '".concat(c,": ").concat(t,"' ignored. adapter specified '").concat(r.currency,"'")):r.currency=t}if(r.currency||((0,u.logWarn)('Currency not specified on bid.  Defaulted to "USD"'),r.currency="USD"),r.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*$(this.currency,e)).toFixed(3)},r.currency===O)return e.call(this,n,r,o);h.push([e,this,n,r,o]),N&&!b||k()}));function j(e){var n=e.auctionId;h=h.filter((function(e){var r=(0,t.Z)(e,5),o=(r[0],r[1],r[2],r[3]),c=r[4];if(o.auctionId!==n)return!0;c(a.Gw.CANNOT_CONVERT_CURRENCY)}))}function k(){for(;h.length>0;){var e=h.shift(),n=(0,t.Z)(e,5),r=n[0],o=n[1],c=n[2],i=n[3],s=n[4];if(void 0!==i&&"currency"in i&&"cpm"in i){var f=i.currency;try{var l=$(f);1!==l&&(i.cpm=(parseFloat(i.cpm)*l).toFixed(4),i.currency=O)}catch(e){(0,u.logWarn)("getCurrencyConversion threw error: ",e),s(a.Gw.CANNOT_CONVERT_CURRENCY);continue}}r.call(o,c,i,s)}w.resolve()}function $(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,o=null,c="".concat(e,"->").concat(r);if(c in R)o=R[c],(0,u.logMessage)("Using conversionCache value "+o+" for "+c);else if(!1===N){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");o=1}else if(e===r)o=1;else if(e in S.conversions){if(!(r in(n=S.conversions[e])))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");o=n[r],(0,u.logInfo)("getCurrencyConversion using direct "+e+" to "+r+" conversionRate "+o)}else if(r in S.conversions){if(!(e in(n=S.conversions[r])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");o=_(1/n[e],4),(0,u.logInfo)("getCurrencyConversion using reciprocal "+e+" to "+r+" conversionRate "+o)}else{var t=Object.keys(S.conversions)[0];if(!(e in S.conversions[t]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var i=1/S.conversions[t][e];if(!(r in S.conversions[t]))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");var s=S.conversions[t][r];o=_(i*s,4),(0,u.logInfo)("getCurrencyConversion using intermediate "+e+" thru "+t+" to "+r+" conversionRate "+o)}return c in R||((0,u.logMessage)("Adding conversionCache value "+o+" for "+c),R[c]=o),o}function _(e,n){for(var r=1,o=0;o<n;o++)r+="0";return Math.round(e*r)/r}(0,y.f8)({type:y.Z,name:"currency",fn:function(e,n,r){N&&(e.cur=e.cur||[r.currency||O])}}),(0,s.z)("currency")}},function(e){e.O(0,[25823,79270],(function(){return n=72663,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[65296],{96787:function(t,o,e){var n=e(78640),a=e(64358),r=e(96475),d=e(20265),i=e(3193),u=e(92797),c=e(34614),s=void 0,f={},l=!1,p=function(t){var o=f.customGptSlotMatching;if((0,a.isGptPubadsDefined)()){var e=t.reduce((function(t,o){return t[o.code]=t[o.code]||[],t[o.code].push(o),t}),{});window.googletag.pubads().getSlots().forEach((function(t){var n=(0,c.sE)(Object.keys(e),o?o(t):(0,a.isAdUnitCodeMatchingSlot)(t));if(n){var d={name:"gam",adslot:b(t.getAdUnitPath())};e[n].forEach((function(t){var o,e,n;(0,r.N)(t,"ortb2Imp.ext.data.adserver",Object.assign({},null===(o=t.ortb2Imp)||void 0===o||null===(e=o.ext)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.adserver,d))}))}}))}},b=function(t){return(i.vc.getConfig("gptPreAuction")||{}).mcmEnabled?t.replace(/(^\/\d*),\d*\//,"$1/"):t},g=function(t,o){var e=t.ortb2Imp.ext.data;if(e.pbadslot)return e.pbadslot;if((0,a.isGptPubadsDefined)()){var n=window.googletag.pubads().getSlots().filter((function(t){return t.getAdUnitPath()===o}));if(0!==n.length)return 1===n.length?o:"".concat(o,"#").concat(t.code)}},v=function(t){var o=t.ortb2Imp.ext.data,e=f.customPbAdSlot;if(!o.pbadslot)if(e)o.pbadslot=e(t.code,(0,d.Z)(o,"adserver.adslot"));else{try{var n=document.getElementById(t.code);if(n.dataset.adslotid)return void(o.pbadslot=n.dataset.adslotid)}catch(t){}if(!(0,d.Z)(o,"adserver.adslot"))return o.pbadslot=t.code,!0;o.pbadslot=o.adserver.adslot}},m=function(t,o){p(o);var e=f,n=e.useDefaultPreAuction,a=e.customPreAuction;o.forEach((function(t){t.ortb2Imp=t.ortb2Imp||{},t.ortb2Imp.ext=t.ortb2Imp.ext||{},t.ortb2Imp.ext.data=t.ortb2Imp.ext.data||{};var o=t.ortb2Imp.ext;if(a||n){var e,r=(0,d.Z)(o,"data.adserver.adslot");a?e=a(t,r):n&&(e=g(t,r)),e&&(o.gpid=o.data.pbadslot=e)}else{var i=v(t);o.gpid||i||(o.gpid=o.data.pbadslot)}}));for(var r=arguments.length,i=new Array(r>2?r-2:0),u=2;u<r;u++)i[u-2]=arguments[u];return t.call.apply(t,[s,o].concat(i))},h=function(t){(f=(0,a.pick)(t,["enabled",function(t){return!1!==t},"customGptSlotMatching",function(t){return"function"==typeof t&&t},"customPbAdSlot",function(t){return"function"==typeof t&&t},"customPreAuction",function(t){return"function"==typeof t&&t},"useDefaultPreAuction",function(t){return!0===t}])).enabled?l||((0,u.v5)("makeBidRequests").before(m),l=!0):((0,a.logInfo)("".concat("GPT Pre-Auction",": Turning off module")),f={},(0,u.v5)("makeBidRequests").getHooks({hook:m}).remove(),l=!1)};i.vc.getConfig("gptPreAuction",(function(t){return h(t.gptPreAuction)})),h({}),(0,n.z)("gptPreAuction")}},function(t){t.O(0,[25823,79270],(function(){return o=96787,t(t.s=o);var o}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[61618],{10272:function(t,e,r){var n=r(4942),o=r(15861),i=r(15671),a=r(43144),s=r(64687),c=r.n(s),u=r(78640),p=r(64358),l=r(20265),f=r(96475),h=r(48928),d=r(92797),g=r(25102),v=r(15164),y=r(34516),m=r(9633),b=r(68792),w=r(55730);function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}function D(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var O="id5id",k="".concat(O,"_privacy"),I="html5",j="User ID - ID5 submodule: ",_="https://id5-sync.com/api/config/prebid",L="id5-sync.com",P=["pbjs-id5id","id5id.1st","id5id"],C=(0,v.df)({moduleType:m.y2,moduleName:"id5Id"}),T={name:"id5Id",gvlid:131,decode:function(t,e){var r={};if(t&&"string"==typeof t.universal_uid){var n={id5id:{uid:t.universal_uid,ext:r=t.ext||r}};switch((0,p.isPlainObject)(r.euid)&&(n.euid={uid:r.euid.uids[0].id,source:r.euid.source,ext:{provider:L}}),(0,l.Z)(t,"ab_testing.result")){case"control":(0,p.logInfo)(j+"A/B Testing - user is in the Control Group: ID5 ID is NOT exposed"),(0,f.N)(n,"id5id.ext.abTestingControlGroup",!0);break;case"error":(0,p.logError)(j+"A/B Testing ERROR! controlGroupPct must be a number >= 0 and <= 1");break;case"normal":(0,p.logInfo)(j+"A/B Testing - user is NOT in the Control Group"),(0,f.N)(n,"id5id.ext.abTestingControlGroup",!1)}return(0,p.logInfo)(j+"Decoded ID",n),n}},getId:function(t,e,r){if(at(t)){if(ft(e)){return{callback:function(n){new M(t,e,r,y.nX.getConsentData(),y.TJ.getConsentData()).execute().then((function(t){n(t)})).catch((function(t){(0,p.logError)(j+"getId fetch encountered an error",t),n()}))}}}(0,p.logInfo)(j+"Skipping ID5 local storage write because no consent given.")}},extendId:function(t,e,r){return ft(e)?(pt(at(t)?t.params.partner:0),(0,p.logInfo)(j+"using cached ID",r),r):((0,p.logInfo)(j+"No consent given for ID5 local storage writing, skipping nb increment."),r)},eids:{id5id:{getValue:function(t){return t.uid},source:L,atype:1,getUidExt:function(t){if(t.ext)return t.ext}},euid:{getValue:function(t){return t.uid},getSource:function(t){return t.source},atype:3,getUidExt:function(t){if(t.ext)return t.ext}}}},N=new WeakSet,G=new WeakSet,Z=new WeakSet,W=new WeakSet,F=new WeakSet,A=new WeakSet,U=new WeakSet,q=new WeakSet,J=new WeakSet,M=function(){function t(e,r,n,o,a){(0,i.Z)(this,t),E(this,J),E(this,q),E(this,U),E(this,A),E(this,F),E(this,W),E(this,Z),E(this,G),E(this,N),this.submoduleConfig=e,this.gdprConsentData=r,this.cacheIdObj=n,this.usPrivacyData=o,this.gppData=a}var e;return(0,a.Z)(t,[{key:"execute",value:(e=(0,o.Z)(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=D(this,F,X).call(this),!D(this,N,R).call(this)){t.next=14;break}return t.prev=2,t.next=5,D(this,G,B).call(this,e);case 5:return t.abrupt("return",t.sent);case 8:return t.prev=8,t.t0=t.catch(2),(0,p.logError)(j+"Error while performing ID5 external module flow. Continuing with regular flow.",t.t0),t.abrupt("return",D(this,W,V).call(this,e));case 12:t.next=15;break;case 14:return t.abrupt("return",D(this,W,V).call(this,e));case 15:case"end":return t.stop()}}),t,this,[[2,8]])}))),function(){return e.apply(this,arguments)})}]),t}();function R(){return"string"==typeof this.submoduleConfig.params.externalModuleUrl}function B(t){return z.apply(this,arguments)}function z(){return(z=(0,o.Z)(c().mark((function t(e){var r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot(this.submoduleConfig.params.externalModuleUrl);case 2:return t.next=4,e;case 4:return r=t.sent,t.abrupt("return",D(this,Z,H).call(this).fetchId5Id(r,this.submoduleConfig.params,(0,g.nH)(),this.gdprConsentData,this.usPrivacyData,this.gppData));case 6:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function H(){return window.id5Prebid&&window.id5Prebid.integration}function V(t){return Y.apply(this,arguments)}function Y(){return(Y=(0,o.Z)(c().mark((function t(e){var r,n,o;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return r=t.sent,t.next=5,D(this,A,Q).call(this,r.extensionsCall);case 5:return n=t.sent,t.next=8,D(this,U,tt).call(this,r.fetchCall,n);case 8:return o=t.sent,t.abrupt("return",D(this,J,nt).call(this,o));case 10:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function X(){return K.apply(this,arguments)}function K(){return(K=(0,o.Z)(c().mark((function t(){var e,r,n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.submoduleConfig.params.configUrl||_,t.next=3,(0,h.he)(e,{method:"POST",body:JSON.stringify(S(S({},this.submoduleConfig),{},{bounce:!0})),credentials:"include"});case 3:if((r=t.sent).ok){t.next=6;break}throw new Error("Error while calling config endpoint: ",r);case 6:return t.next=8,r.json();case 8:return n=t.sent,(0,p.logInfo)(j+"config response received from the server",n),t.abrupt("return",n);case 11:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Q(t){return $.apply(this,arguments)}function $(){return($=(0,o.Z)(c().mark((function t(e){var r,n,o,i,a;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==e){t.next=2;break}return t.abrupt("return",void 0);case 2:return r=e.url,n=e.method||"GET",o="GET"===n?void 0:JSON.stringify(e.body||{}),t.next=7,(0,h.he)(r,{method:n,body:o});case 7:if((i=t.sent).ok){t.next=10;break}throw new Error("Error while calling extensions endpoint: ",i);case 10:return t.next=12,i.json();case 12:return a=t.sent,(0,p.logInfo)(j+"extensions response received from the server",a),t.abrupt("return",a);case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tt(t,e){return et.apply(this,arguments)}function et(){return(et=(0,o.Z)(c().mark((function t(e,r){var n,o,i,a,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.url,o=e.overrides||{},i=JSON.stringify(S(S(S({},D(this,q,rt).call(this)),o),{},{extensions:r})),t.next=5,(0,h.he)(n,{method:"POST",body:i,credentials:"include"});case 5:if((a=t.sent).ok){t.next=8;break}throw new Error("Error while calling fetch endpoint: ",a);case 8:return t.next=10,a.json();case 10:return s=t.sent,(0,p.logInfo)(j+"fetch response received from the server",s),t.abrupt("return",s);case 13:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function rt(){var t,e,r,n=this.submoduleConfig.params,o=this.gdprConsentData&&"boolean"==typeof this.gdprConsentData.gdprApplies&&this.gdprConsentData.gdprApplies?1:0,i=(0,g.nH)(),a=this.cacheIdObj&&this.cacheIdObj.signature?this.cacheIdObj.signature:(P.forEach((function(e){C.getCookie(e)&&(t=(0,p.safeJSONParse)(C.getCookie(e))||t)})),t&&t.signature||""),s=(e=n.partner,r=pt(e),ct(e,0),r),c={partner:n.partner,gdpr:o,nbPage:s,o:"pbjs",tml:i.topmostLocation,ref:i.ref,cu:i.canonicalUrl,top:i.reachedTop?1:0,u:i.stack[0]||window.location.href,v:"8.51.0",storage:this.submoduleConfig.storage,localStorage:C.localStorageIsEnabled()?1:0};!o||void 0===this.gdprConsentData.consentString||(0,p.isEmpty)(this.gdprConsentData.consentString)||(0,p.isEmptyStr)(this.gdprConsentData.consentString)||(c.gdpr_consent=this.gdprConsentData.consentString),void 0===this.usPrivacyData||(0,p.isEmpty)(this.usPrivacyData)||(0,p.isEmptyStr)(this.usPrivacyData)||(c.us_privacy=this.usPrivacyData),this.gppData&&(c.gpp_string=this.gppData.gppString,c.gpp_sid=this.gppData.applicableSections),void 0===a||(0,p.isEmptyStr)(a)||(c.s=a),void 0===n.pd||(0,p.isEmptyStr)(n.pd)||(c.pd=n.pd),void 0===n.provider||(0,p.isEmptyStr)(n.provider)||(c.provider=n.provider);var u=n.abTesting||{enabled:!1};return u.enabled&&(c.ab_testing={enabled:!0,control_group_pct:u.controlGroupPct}),c}function nt(t){try{t.privacy&&lt(k,JSON.stringify(t.privacy),30)}catch(t){(0,p.logError)(j+"Error while writing privacy info into local storage.",t)}return t}function ot(t){return it.apply(this,arguments)}function it(){return(it=(0,o.Z)(c().mark((function t(e){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new b.Z((function(t,r){if(window.id5Prebid)t();else try{(0,w.B)(e,"id5",t)}catch(t){r(t)}})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function at(t){if(!t||!t.params||!t.params.partner)return(0,p.logError)(j+"partner required to be defined"),!1;var e=t.params.partner;if("string"==typeof e||e instanceof String){var r=parseInt(e);if(isNaN(r)||r<0)return(0,p.logError)(j+"partner required to be a number or a String parsable to a positive integer"),!1;t.params.partner=r}else if("number"!=typeof e)return(0,p.logError)(j+"partner required to be a number or a String parsable to a positive integer"),!1;return t.storage&&t.storage.type&&t.storage.name?(t.storage.type!==I&&(0,p.logWarn)(j+"storage type recommended to be '".concat(I,"'. In a future release this may become a strict requirement")),t.storage.name!==O&&(0,p.logWarn)(j+"storage name recommended to be '".concat(O,"'. In a future release this may become a strict requirement")),!0):((0,p.logError)(j+"storage required to be set"),!1)}function st(t){return"".concat(O,"_").concat(t,"_nb")}function ct(t,e){lt(st(t),e,30)}function ut(t){var e=function(t){var e=C.getDataFromLocalStorage("".concat(t,"_exp"));if(""===e)return C.getDataFromLocalStorage(t);if(e&&new Date(e).getTime()-Date.now()>0)return C.getDataFromLocalStorage(t);return C.removeDataFromLocalStorage(t),null}(st(t));return e?parseInt(e):0}function pt(t){var e=ut(t)+1;return ct(t,e),e}function lt(t,e,r){C.setDataInLocalStorage("".concat(t,"_exp"),function(t){return new Date(Date.now()+864e5*t).toUTCString()}(r)),C.setDataInLocalStorage("".concat(t),e)}function ft(t){var e=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies,r=(0,l.Z)(t,"vendorData.purpose.consents.1"),n=(0,l.Z)(t,"vendorData.vendor.consents.".concat(131..toString()));return!!(!e||r&&n)}(0,d.Bx)("userId",T),(0,u.z)("id5IdSystem")},17061:function(t,e,r){var n=r(18698).default;function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),s=new j(n||[]);return a(i,"_invoke",{value:D(t,r,s)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function g(){}function v(){}function y(){}var m={};l(m,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==r&&i.call(w,c)&&(m=w);var x=y.prototype=g.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,a,s,c){var u=h(t[o],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function D(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function _(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return v.prototype=y,a(x,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,p,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(E.prototype),l(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),l(x,p,"Generator"),l(x,c,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=_,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},18698:function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},64687:function(t,e,r){var n=r(17061)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},15861:function(t,e,r){function n(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,c,"next",t)}function c(t){n(a,o,i,s,c,"throw",t)}s(void 0)}))}}r.d(e,{Z:function(){return o}})}},function(t){t.O(0,[25823,79270],(function(){return e=10272,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[79114],{45407:function(e,t,n){var i=n(78640),o=n(64358),r=n(48928),a=n(92797),p=n(15164),s=n(9633),l=n(34516),d="identityLink",c=(0,p.df)({moduleType:s.y2,moduleName:d}),v="_lr_env",g={name:d,gvlid:97,decode:function(e){return{idl_env:e}},getId:function(e,t){var n=e&&e.params||{};if(n&&"string"==typeof n.pid){var i=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies?1:0,r=i?t.consentString:"";if(!i||r&&""!==r){var a=l.TJ.getConsentData(),p=!(!a||!a.gppString)&&a.gppString,s=!!(a&&a.gppString&&a.applicableSections.length>0&&-1!==a.applicableSections[0])&&a.applicableSections[0],d=p&&s,g="https://api.rlcdn.com/api/identity/envelope?pid=".concat(n.pid).concat(i?"&ct=4&cv="+r:"").concat(d?"&gpp="+p+"&gpp_sid="+s:"");return{callback:function(e){if(window.ats&&window.ats.retrieveEnvelope)o.logInfo("identityLink: ATS exists!"),window.ats.retrieveEnvelope((function(t){t?(o.logInfo("identityLink: An envelope can be retrieved from ATS!"),u(!0),e(JSON.parse(t).envelope)):f(g,e,n)}));else{var t=(i=c.getCookie(v)||c.getDataFromLocalStorage(v))?window.atob(i):void 0;t?(o.logInfo("identityLink: LiveRamp envelope successfully retrieved from storage!"),e(JSON.parse(t).envelope)):f(g,e,n)}var i}}}o.logInfo("identityLink: Consent string is required to call envelope API.")}else o.logError("identityLink: requires partner id to be defined")},eids:{idl_env:{source:"liveramp.com",atype:3}}};function f(e,t,n){var i,a={success:function(e){var n;if(e)try{n=JSON.parse(e)}catch(e){o.logInfo(e)}t(n&&n.envelope?n.envelope:"")},error:function(e){o.logInfo("identityLink: identityLink: ID fetch encountered an error",e),t()}};n.notUse3P||c.getCookie("_lr_retry_request")||((i=new Date).setTime(i.getTime()+36e5),c.setCookie("_lr_retry_request","true",i.toUTCString()),o.logInfo("identityLink: A 3P retrieval is attempted!"),u(!1),(0,r.hj)(e,a,void 0,{method:"GET",withCredentials:!0}))}function u(e){var t=new Date;t.setTime(t.getTime()+2592e6),c.setCookie("_lr_env_src_ats",e,t.toUTCString())}(0,a.Bx)("userId",g),(0,i.z)("identityLinkIdSystem")}},function(e){e.O(0,[25823,79270],(function(){return t=45407,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2563],{29312:function(n,d,e){var i=e(78640),o=e(92797),u=e(64358),r={name:"pubProvidedId",gvlid:e(34516).$P,decode:function(n){var d=n?{pubProvidedId:n}:void 0;return(0,u.logInfo)("PubProvidedId: Decoded value "+JSON.stringify(d)),d},getId:function(n){var d=n&&n.params||{},e=[];return(0,u.isArray)(d.eids)&&(e=e.concat(d.eids)),"function"==typeof d.eidsFunction&&(e=e.concat(d.eidsFunction())),{id:e}}};(0,o.Bx)("userId",r),(0,i.z)("pubProvidedIdSystem")}},function(n){n.O(0,[25823,79270],(function(){return d=29312,n(n.s=d);var d}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[13184],{95456:function(t,n,e){var r=e(71002),o=e(70885),a=e(4942),i=e(78640),c=e(3193),u=e(92797),f=e(64358),s=e(52021),g=e(62200),l=e(93304),p=e(34516),v=e(34614),h=e(99128),d=e(9633),D=e(67172);function E(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function b(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?E(Object(e),!0).forEach((function(n){(0,a.Z)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):E(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var O,m,y=(0,e(16310).Oj)((function(t){return l.ZP.resolveAlias(t)})),P=[],T=[],j=[];var R,A=(R=!1,function(){var t;R||(Object.entries((t={},(0,a.Z)(t,g.FP.AUCTION_INIT,["onAuctionInitEvent"]),(0,a.Z)(t,g.FP.AUCTION_END,["onAuctionEndEvent",q]),(0,a.Z)(t,g.FP.BID_RESPONSE,["onBidResponseEvent"]),(0,a.Z)(t,g.FP.BID_REQUESTED,["onBidRequestEvent"]),(0,a.Z)(t,g.FP.BID_ACCEPTED,["onBidAcceptedEvent"]),t)).forEach((function(t){var n=(0,o.Z)(t,2),e=n[0],r=(0,o.Z)(n[1],2),a=r[0],i=r[1];s.on(e,(function(t){i&&i(t),T.forEach((function(n){try{n[a]&&n[a](t,n.config,m)}catch(t){(0,f.logError)("RTD provider '".concat(n.name,"': error in '").concat(a,"':"),t)}}))}))})),R=!0)});function I(){return{gdpr:p.rp.getConsentData(),usp:p.nX.getConsentData(),gpp:p.TJ.getConsentData(),coppa:!!c.vc.getConfig("coppa")}}function C(){m=I();var t=[];j.forEach((function(n){var e=(0,v.sE)(P,(function(t){return t.name===n.name}));e&&e.init&&e.init(n,m)&&t.push(Object.assign(e,{config:n}))})),T=t,(0,f.logInfo)("Real time data module enabled, using submodules: ".concat(T.map((function(t){return t.name})).join(", ")))}var w,Z,F=(0,h.g3)("rtd",(function(t,n){m=I();var e=[],r=[];T.forEach((function(t){if("function"==typeof t.getBidRequestData){e.push(t);var n=t.config;n&&n.waitForIt&&r.push(t)}}));var o,a=r.length&&O.auctionDelay&&O.auctionDelay>0,i=r.length,c=!1,u=[];if(!e.length)return s();function f(){c||(this.config&&this.config.waitForIt&&i--,0===i&&setTimeout(s,0))}function s(){c||(c=!0,clearTimeout(o),u.forEach((function(t){return t()})),t.call(this,n))}o=setTimeout(s,a?O.auctionDelay:0),e.forEach((function(t){var e=(0,D.fC)(n.ortb2Fragments||{},y(d.XG,t.name));u.push(e.verify),t.getBidRequestData(b(b({},n),{},{ortb2Fragments:e.obj}),f.bind(t),t.config,m)}))}));function q(t){var n=T.filter((function(t){return"function"==typeof t.getTargetingData}));if(n.length){var e=t.adUnitCodes;if(e){for(var o=[],a=n.length-1;a>=0;a--){var i=n[a].getTargetingData(e,n[a].config,m,t);i&&"object"===(0,r.Z)(i)?o.push(i):(0,f.logWarn)("invalid getTargetingData response for sub module",n[a].name)}var c=function(t){if(!Array.isArray(t)||!t.length)return{};return t.reduce((function(t,n){for(var e in n)if(n.hasOwnProperty(e))if(t.hasOwnProperty(e)){var r=n[e];for(var o in r)r.hasOwnProperty(o)&&(t[e][o]=r[o])}else t[e]=n[e];return t}),{})}(o);return t.adUnits.forEach((function(t){var n=t.code&&c[t.code];n&&((0,f.logInfo)("RTD set ad unit targeting of",n,"for",t),t[g.k2.ADSERVER_TARGETING]=Object.assign(t[g.k2.ADSERVER_TARGETING]||{},n))})),t.adUnits}}}function B(t){T.forEach((function(t){if("function"==typeof t.onDataDeletionRequest)try{t.onDataDeletionRequest(t.config)}catch(n){(0,f.logError)("Error executing ".concat(t.name,".onDataDeletionRequest"),n)}}));for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];t.apply(this,e)}(0,u.bA)("realTimeData",(function(t){return P.push(t),p.qh.register(d.XG,t.name,t.gvlid),function(){var n=P.indexOf(t);n>=0&&(P.splice(n,1),C())}})),w=c.vc,Z=w.getConfig("realTimeData",(function(t){var n=t.realTimeData;n.dataProviders?(Z(),O=n,j=n.dataProviders,A(),(0,u.v5)("startAuction").before(F,20),l.ZP.callDataDeletionRequest.before(B),C()):(0,f.logError)("missing parameters for real time module")})),(0,i.z)("rtdModule")}},function(t){t.O(0,[72075,25823,79270],(function(){return n=95456,t(t.s=n);var n}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[39225],{28689:function(n,i,e){var o=e(78640),t=e(3193),c=e(93304),s=e(64358),a=e(20265),r=e(96475),f=e(26372),h="Invalid schain object found: ",d=" should be a string",u=" should be an Integer",g=" should be an object",l={STRICT:"strict",RELAXED:"relaxed",OFF:"off"},b=[];function v(n,i){var e=l.STRICT;if(function(n){return!(void 0===n||!(0,s.isPlainObject)(n)&&((0,s.logError)(h+"the following schain config will not be used as schain is not an object.",n),1))}(n)){if((0,s.isStr)(n.validation)&&-1!=b.indexOf(n.validation)&&(e=n.validation),e===l.OFF)return n.config;if(function(n,i){var e="Detected something wrong within an schain config:",o="";function t(n){o+="\n"+n}function c(){!0===i?(0,s.logError)(e,n,o):(0,s.logWarn)(e,n,o)}if(!(0,s.isPlainObject)(n)&&(t("schain.config"+g),c(),i))return!1;if((0,s.isNumber)(n.complete)&&(0,s.isInteger)(n.complete)||t("schain.config.complete"+u),(0,s.isStr)(n.ver)||t("schain.config.ver"+d),n.hasOwnProperty("ext")&&((0,s.isPlainObject)(n.ext)||t("schain.config.ext"+g)),(0,s.isArray)(n.nodes))n.nodes.forEach((function(n,i){(0,s.isStr)(n.asi)||t("schain.config.nodes[".concat(i,"].asi")+d),(0,s.isStr)(n.sid)||t("schain.config.nodes[".concat(i,"].sid")+d),(0,s.isNumber)(n.hp)&&(0,s.isInteger)(n.hp)||t("schain.config.nodes[".concat(i,"].hp")+u),n.hasOwnProperty("rid")&&((0,s.isStr)(n.rid)||t("schain.config.nodes[".concat(i,"].rid")+d)),n.hasOwnProperty("name")&&((0,s.isStr)(n.name)||t("schain.config.nodes[".concat(i,"].name")+d)),n.hasOwnProperty("domain")&&((0,s.isStr)(n.domain)||t("schain.config.nodes[".concat(i,"].domain")+d)),n.hasOwnProperty("ext")&&((0,s.isPlainObject)(n.ext)||t("schain.config.nodes[".concat(i,"].ext")+g))}));else if(t("schain.config.nodes should be an Array"),c(),i)return!1;return!(o.length>0&&(c(),i))}(n.config,!(e!==l.STRICT)))return n.config;(0,s.logError)(h+"due to the 'strict' validation setting, this schain config will not be passed to bidder '".concat(i,"'.  See above error for details."))}return null}function p(n,i){var e=t.vc.getConfig("schain"),o=t.vc.getBidderConfig();i.forEach((function(n){var i=n.bidderCode,t=function(n){return o[n]&&o[n].schain||e}(i);n.bids.forEach((function(n){var e=v(t,i);e&&(n.schain=(0,s.deepClone)(e))}))})),n(i)}(0,s._each)(l,(function(n){return b.push(n)})),c.ZP.makeBidRequests.after(p),(0,f.f8)({type:f.Z,name:"sourceExtSchain",fn:function(n,i,e){if(!(0,a.Z)(n,"source.ext.schain")){var o=(0,a.Z)(e,"bidRequests.0.schain");o&&(0,r.N)(n,"source.ext.schain",o)}}}),(0,o.z)("schain")}},function(n){n.O(0,[25823,79270],(function(){return i=28689,n(n.s=i);var i}));n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[92972],{54834:function(o,e,n){var t=n(71002),r=n(78640),i=n(64358),d=n(92797),a=n(34516),u=n(15164),c=n(9633),l=n(81694),f=(0,u.df)({moduleType:c.y2,moduleName:"sharedId"}),s="cookie",m="html5",g="_pubcid_optout",p="PublisherCommonId";function v(o,e){if(e===s)return f.getCookie(o);if(e===m&&f.hasLocalStorage()){var n=f.getDataFromLocalStorage("".concat(o,"_exp"));if(!n)return f.getDataFromLocalStorage(o);if(new Date(n).getTime()-Date.now()>0)return f.getDataFromLocalStorage(o)}}function I(o,e){return function(n,t){e?b(e,o,(function(){n(t()||o)}))():n(o)}}function b(o){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(o){var t=(0,i.parseUrl)(o);t.search.id=encodeURIComponent("pubcid:"+e);var r=(0,i.buildUrl)(t);return function(){(0,i.triggerPixel)(r,n)}}}function h(){return!!(f.cookiesAreEnabled()&&v(g,s)||f.hasLocalStorage()&&v(g,m))}var C={name:"sharedId",aliasName:"pubCommonId",gvlid:a.$P,decode:function(o,e){if(!h())return(0,i.logInfo)(" Decoded value PubCommonId "+o),{pubcid:o};(0,i.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(h())(0,i.logInfo)("PubCommonId: Has opted-out");else{var n=a.VP.getCoppa();if(!n){var r=o.params,d=(r=void 0===r?{}:r).create,u=void 0===d||d,c=r.pixelUrl,l=e;if(!l){try{"object"===(0,t.Z)(window[p])&&(l=window[p].getId())}catch(o){}l||(l=u&&(0,i.hasDeviceAccess)()?(0,i.generateUUID)():void 0)}return{id:l,callback:I(l,c)}}(0,i.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(h())return(0,i.logInfo)("PubCommonId: Has opted-out"),{id:void 0};var n=a.VP.getCoppa();if(n)(0,i.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");else{var t=o.params,r=(t=void 0===t?{}:t).extend,d=void 0!==r&&r,u=t.pixelUrl;if(d){if(u){var c=b(u,e);return{callback:c}}return{id:e}}}},domainOverride:(0,l.U)(f,"sharedId"),eids:{pubcid:{source:"pubcid.org",atype:1}}};(0,d.Bx)("userId",C),(0,r.z)("sharedIdSystem")}},function(o){o.O(0,[57748,25823,79270],(function(){return e=54834,o(o.s=e);var e}));o.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[34579],{98709:function(r,e,t){var n=t(4942),o=t(78640),c=t(64358),i=t(48928),u=t(92797),s=t(93253);function f(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}var a="unifiedId",d={name:a,gvlid:21,decode:function(r){return r&&"string"==typeof r.TDID?{tdid:r.TDID}:void 0},getId:function(r){var e=r&&r.params||{};if(e&&("string"==typeof e.partner||"string"==typeof e.url)){var t=e.url||"https://match.adsrvr.org/track/rid?ttd_pid=".concat(e.partner,"&fmt=json");return{callback:function(r){var e={success:function(e){var t;if(e)try{t=JSON.parse(e)}catch(r){(0,c.logError)(r)}r(t)},error:function(e){(0,c.logError)("".concat(a,": ID fetch encountered an error"),e),r()}};(0,i.hj)(t,e,void 0,{method:"GET",withCredentials:!0})}}}(0,c.logError)("User ID - unifiedId submodule requires either partner or url to be defined")},eids:function(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,n.Z)(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}({},s.u)};(0,u.Bx)("userId",d),(0,o.z)("unifiedIdSystem")}},function(r){r.O(0,[85240,25823,79270],(function(){return e=98709,r(r.s=e);var e}));r.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9215],{82547:function(e,n,r){var t=r(42982),o=r(71002),i=r(70885),a=r(4942),u=r(78640),c=r(34614),s=r(3193),l=r(52021),f=r(34516),d=r(93304),g=r(62200),m=r(92797),v=r(64358),b=r(20265),h=new Map;function y(e){var n={};function r(e){var r,o,i=JSON.stringify([null===(r=e.source)||void 0===r?void 0:r.toLowerCase(),e.ext]);n.hasOwnProperty(i)?(o=n[i].uids).push.apply(o,(0,t.Z)(e.uids)):n[i]=e}return Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],o=n[1];o=Array.isArray(o)?o:[o],("pubProvidedId"===t?(0,v.deepClone)(o):o.map((function(e){return function(e,n){var r=h.get(n);if(r&&e){var t={};t.source=(0,v.isFn)(r.getSource)?r.getSource(e):r.source;var o=(0,v.isFn)(r.getValue)?r.getValue(e):e;if((0,v.isStr)(o)){var i={id:o,atype:r.atype};if((0,v.isFn)(r.getUidExt)){var a=r.getUidExt(e);a&&(i.ext=a)}if(t.uids=[i],(0,v.isFn)(r.getEidExt)){var u=r.getEidExt(e);u&&(t.ext=u)}return t}}return null}(e,t)}))).filter((function(e){return null!=e})).forEach(r)})),Object.values(n)}var p,E,I,S,w,D,O=r(15164),j=r(96475),k=r(7563),A=r(68792),P=r(26372),C=r(99128),T=r(38196),N=r(9633),Z=r(50571),U=r(74947),x=r(10286),F="User ID",L=O.c$,_=O.Dp,R="_pbjs_id_optout",q=(0,O.eA)("userId"),M={isAllowed:Z.xD},G=!1,W=[],B=[],J={},V=[],z=function(){return null==D&&(D=(0,C.V6)()),D};function $(e){return z().fork().renameWith((function(n){return["userId.mod.".concat(n),"userId.mods.".concat(e,".").concat(n)]}))}function H(e,n){n=n||e.storageMgr;var r="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,t=e.config.storage.name;return function(e,o,i){n.setCookie(t+(e||""),o,i,"Lax",r)}}function K(e,n){var r=e.config.storage;try{var t=new Date(Date.now()+864e5*r.expires).toUTCString(),o=(0,v.isPlainObject)(n)?JSON.stringify(n):n;e.enabledStorageTypes.forEach((function(n){switch(n){case L:!function(e,n,r){var t=e.config.storage,o=H(e);o(null,n,r),o("_cst",Ee(),r),"number"==typeof t.refreshInSeconds&&o("_last",(new Date).toUTCString(),r)}(e,o,t);break;case _:!function(e,n,r){var t=e.config.storage,o=e.storageMgr;o.setDataInLocalStorage("".concat(t.name,"_exp"),r),o.setDataInLocalStorage("".concat(t.name,"_cst"),Ee()),o.setDataInLocalStorage(t.name,encodeURIComponent(n)),"number"==typeof t.refreshInSeconds&&o.setDataInLocalStorage("".concat(t.name,"_last"),(new Date).toUTCString())}(e,o,t)}}))}catch(e){(0,v.logError)(e)}}function Q(e){Ae(e),e.enabledStorageTypes.forEach((function(n){switch(n){case L:!function(e){var n=H(e,q),r=new Date(Date.now()-864e5).toUTCString();["","_last","_cst"].forEach((function(e){try{n(e,"",r)}catch(e){(0,v.logError)(e)}}))}(e);break;case _:!function(e){["","_last","_exp","_cst"].forEach((function(n){try{q.removeDataFromLocalStorage(e.config.storage.name+n)}catch(e){(0,v.logError)(e)}}))}(e)}}))}function X(e){var n=(0,v.getPrebidInternal)().setEidPermissions;"function"==typeof n&&(0,v.isArray)(e)&&n(function(e){var n=[];return e.filter((function(e){return(0,v.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){var t=h.get(r)||{};(0,b.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&t.source&&n.push({source:t.source,bidders:e.config.bidders})}))})),n}(e))}function Y(e,n){return e.storageMgr.getCookie(n)}function ee(e,n){var r=e.storageMgr,t=e.config.storage,o=r.getDataFromLocalStorage("".concat(t.name,"_exp"));return""===o?r.getDataFromLocalStorage(n):o&&new Date(o).getTime()-Date.now()>0?decodeURIComponent(r.getDataFromLocalStorage(n)):void 0}function ne(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=e.config.storage,o=r?"".concat(t.name,"_").concat(r):t.name;try{e.enabledStorageTypes.find((function(r){switch(r){case L:n=Y(e,o);break;case _:n=ee(e,o)}return!!n})),"string"==typeof n&&"{"===n.trim().charAt(0)&&(n=JSON.parse(n))}catch(e){(0,v.logError)(e)}return n}function re(e,n,r){n=z().fork().startTiming("userId.callbacks.total").stopBefore(n);var t=(0,v.delayExecution)((function(){clearTimeout(undefined),n()}),e.length);e.forEach((function(e){var n=$(e.submodule.name).startTiming("callback").stopBefore(t);try{e.callback((function(t){t?(e.config.storage&&K(e,t),e.idObj=e.submodule.decode(t,e.config),Se(te(r))):(0,v.logInfo)("".concat(F,": ").concat(e.submodule.name," - request id responded with an empty value")),n()}),ne.bind(null,e))}catch(r){(0,v.logError)("Error in userID module '".concat(e.submodule.name,"':"),r),n()}e.callback=void 0}))}function te(e){return Array.isArray(e)&&e.length?ie(e):{}}function oe(e,n,r){return Object.fromEntries(Object.entries(e.reduce((function(e,t){var o=n(t);return o&&Object.keys(o).forEach((function(n){var i,a=null===(i=J[n])||void 0===i?void 0:i.indexOf(r(t)),u={priority:(0,v.isNumber)(a)?a:-1,value:o[n]};if(e[n]){var c=u.priority>e[n].priority?u:e[n];e[n]=c}else e[n]=u})),e}),{})).map((function(e){var n=(0,i.Z)(e,2);return[n[0],n[1].value]})))}function ie(e){return oe(e.filter((function(e){return(0,v.isPlainObject)(e.idObj)&&Object.keys(e.idObj).length})),(function(e){return e.idObj}),(function(e){return e.submodule.name}))}function ae(e,n){[e].some((function(e){return!Array.isArray(e)||!e.length}))||e.forEach((function(e){e.bids&&(0,v.isArray)(e.bids)&&e.bids.forEach((function(e){var r=function(e,n){return Array.isArray(e)&&e.length&&n?ie(e.filter((function(e){return!e.config.bidders||!(0,v.isArray)(e.config.bidders)||(0,c.q9)(e.config.bidders,n)}))):{}}(n,e.bidder);Object.keys(r).length&&(e.userId=r,e.userIdAsEids=y(r))}))}))}var ue,ce={};function se(){var e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.delay,o=void 0===t?A.Z.timeout:t,i=(0,A.P)(),a=(0,A.P)(),u=!1;function c(r){return n=z().fork(),null!=e&&e.reject(ce),e=(0,A.P)(),A.Z.race([r,e.promise]).finally(n.startTiming("userId.total"))}var s=p,d=W;function b(e){return function(){if(s===p&&d===W)return e.apply(void 0,arguments)}}function h(){return f.NO.promise.finally(n.startTiming("userId.init.consent"))}var y=c(A.Z.all([m.Cd,i.promise]).then(h).then(b((function(){we(s,d)}))).then((function(){return a.promise.finally(n.startTiming("userId.callbacks.pending"))})).then(b((function(){var e=s.filter((function(e){return(0,v.isFn)(e.callback)}));if(e.length)return new A.Z((function(n){return re(e,n,s)}))}))));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refresh,r=void 0!==n&&n,t=e.submoduleNames,f=void 0===t?null:t,m=e.ready,v=void 0!==m&&m;return v&&!u&&(u=!0,i.resolve(),I>0?a.resolve():l.on(g.FP.AUCTION_END,(function e(){l.off(g.FP.AUCTION_END,e),o(E).then(a.resolve)}))),r&&u&&(y=c(y.catch((function(){return null})).then(h).then(b((function(){var e=we(s,d.filter((function(e){return null==f||f.includes(e.submodule.name)})),!0).filter((function(e){return null!=e.callback}));if(e.length)return new A.Z((function(n){return re(e,n,s)}))}))))),y}}function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge()||[],n=S&&e.find((function(e){return e.source===S}));if(n&&"string"==typeof(0,b.Z)(n,"uids.0.id")){var r=n.uids[0].id.replace(/[\W_]/g,"");if(r.length>=32&&r.length<=150)return r;(0,v.logWarn)("User ID - Googletag Publisher Provided ID for ".concat(S," is not between 32 and 150 characters - ").concat(r))}}var fe=(0,C.g3)("userId",(function(e,n){var r=this,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.delay,i=void 0===o?A.Z.timeout:o,a=t.getIds,c=void 0===a?pe:a;A.Z.race([c().catch((function(){return null})),i(I)]).then((function(){ae(n.adUnits||(0,u.R)().adUnits,p),z().join((0,C.Bf)(n.metrics),{propagate:!1,includeGroups:!0}),e.call(r,n)}))}));function de(){return te(p)}function ge(){return y(de())}function me(e){return y(function(e,n){if(!Array.isArray(e)||!e.length)return{};var r=ie(e),t=Object.keys(r).find((function(e){var r=h.get(e);return(null==r?void 0:r.source)===n||(0,v.isFn)(null==r?void 0:r.getSource)&&r.getSource()===n}));return t?(0,a.Z)({},t,r[t]):[]}(p,e))[0]}function ve(e,n,r){return ue().then((function(){var t={};if((0,v.isFn)(r)){(0,v.logInfo)("".concat(F," - Getting encrypted signal from custom function : ").concat(r.name," & source : ").concat(e," "));var o=r(e);t[e]=o?be(o):null}else{var i=me(e);(0,v.logInfo)("".concat(F," - Getting encrypted signal for eids :").concat(JSON.stringify(i))),(0,v.isEmpty)(i)||(t[i.source]=!0===n?be(i):i.uids[0].id)}return(0,v.logInfo)("".concat(F," - Fetching encrypted eids: ").concat(t[e])),t[e]}))}function be(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r="";if(1===n)r="object"===(0,o.Z)(e)?window.btoa(JSON.stringify(e)):window.btoa(e);return"".concat(n,"||").concat(r)}function he(){if((0,v.isGptPubadsDefined)()){window.googletag.secureSignalProviders=window.googletag.secureSignalProviders||[];var e=s.vc.getConfig("userSync.encryptedSignalSources");if(e){var n=e.registerDelay||0;setTimeout((function(){e.sources&&e.sources.forEach((function(e){var n=e.source,r=e.encrypt,t=e.customFunc;n.forEach((function(e){window.googletag.secureSignalProviders.push({id:e,collectorFunction:function(){return ve(e,r,t)}})}))}))}),n)}else(0,v.logWarn)("".concat(F," - ESP : encryptedSignalSources config not defined under userSync Object"))}}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.submoduleNames,r=arguments.length>1?arguments[1]:void 0;return ue({refresh:!0,submoduleNames:n}).then((function(){return r&&(0,v.isFn)(r)&&r(),de()}))}function pe(){return ue().then((function(){return de()}),(function(e){return e===ce?Promise.resolve().then(pe):((0,v.logError)("Error initializing userId",e),A.Z.reject(e))}))}function Ee(){for(var e=Number(f.NO.hash),n=[];e>0;)n.push(String.fromCharCode(255&e)),e>>>=8;return btoa(n.join())}function Ie(e,n,r){var t=f.rp.getConsentData();if(e.config.storage){var o,i=ne(e),a=!1;if("number"==typeof e.config.storage.refreshInSeconds){var u=new Date(ne(e,"last"));a=u&&Date.now()-u.getTime()>1e3*e.config.storage.refreshInSeconds}if(!i||a||n||function(e){var n=ne(e,"cst");return!n||n!==Ee()}(e)){var c=Object.assign({enabledStorageTypes:e.enabledStorageTypes},e.config);o=e.submodule.getId(c,t,i)}else"function"==typeof e.submodule.extendId&&(o=e.submodule.extendId(e.config,t,i));(0,v.isPlainObject)(o)&&(o.id&&(K(e,o.id),i=o.id),"function"==typeof o.callback&&(e.callback=o.callback)),i&&(e.idObj=e.submodule.decode(i,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var s=e.submodule.getId(e.config,t,void 0);(0,v.isPlainObject)(s)&&("function"==typeof s.callback&&(e.callback=s.callback),s.id&&(e.idObj=e.submodule.decode(s.id,e.config)))}Se(te(r))}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de();if(e&&S){var n=le(y(e));n&&((0,v.isGptPubadsDefined)()?window.googletag.pubads().setPublisherProvidedId(n):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(n)}))))}}function we(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return z().fork().measureTime("userId.init.modules",(function(){if(!n.length)return[];if(n.forEach((function(e){return Ae(e)})),!(n=n.filter((function(e){return(!e.config.storage||Pe(e))&&M.isAllowed(U.EL,(0,x.T)(N.y2,e.config.name))}))).length)return(0,v.logWarn)("".concat(F," - no ID module configured")),[];var t=n.reduce((function(e,t){return $(t.submodule.name).measureTime("init",(function(){try{Ie(t,r,n),e.push(t)}catch(e){(0,v.logError)("Error in userID module '".concat(t.submodule.name,"':"),e)}return e}))}),[]);return t.length&&X(t),t.forEach(De.bind(null,e)),t}))}function De(e,n){for(var r=!1,t=0;t<e.length;t++)if(n.config.name.toLowerCase()===e[t].config.name.toLowerCase()){r=!0,e[t]=n;break}r||e.push(n)}function Oe(e){var n,r;return(null==e||null===(n=e.storage)||void 0===n||null===(r=n.type)||void 0===r?void 0:r.trim().split(/\s*&\s*/))||[]}function je(e){return Array.isArray(e)?e.reduce((function(e,n){return!n||(0,v.isEmptyStr)(n.name)||(n.storage&&!(0,v.isEmptyStr)(n.storage.type)&&!(0,v.isEmptyStr)(n.storage.name)&&function(e){return Oe(e).every((function(e){return ke.has(e)}))}(n)||(0,v.isPlainObject)(n.value)?e.push(n):n.storage||n.value||e.push(n)),e}),[]):[]}var ke=new Set([_,L]);function Ae(e){if(!e.enabledStorageTypes){var n=Oe(e.config);e.enabledStorageTypes=n.filter((function(n){switch(n){case _:return function(e){return!(!e.storageMgr.localStorageIsEnabled()||q.getDataFromLocalStorage(R)&&((0,v.logInfo)("".concat(F," - opt-out localStorage found, storage disabled")),1))}(e);case L:return function(e){return!(!e.storageMgr.cookiesAreEnabled()||q.getCookie(R)&&((0,v.logInfo)("".concat(F," - opt-out cookie found, storage disabled")),1))}(e)}return!1}))}}function Pe(e){return!!e.enabledStorageTypes.length}function Ce(e){h.clear(),Object.entries(oe(e,(function(e){return e.eids}),(function(e){return e.name}))).forEach((function(e){var n=(0,i.Z)(e,2),r=n[0],t=n[1];return h.set(r,t)}))}function Te(){Ce(V);var e=je(B);if(e.length){var n=V.filter((function(e){return!(0,c.sE)(W,(function(n){return n.name===e.name}))}));W.splice(0,W.length),n.map((function(n){var r=(0,c.sE)(e,(function(e){return e.name&&(e.name.toLowerCase()===n.name.toLowerCase()||n.aliasName&&e.name.toLowerCase()===n.aliasName.toLowerCase())}));return r&&n.name!==r.name&&(r.name=n.name),n.findRootDomain=T.W,r?{submodule:n,config:r,callback:void 0,idObj:void 0,storageMgr:(0,O.df)({moduleType:N.y2,moduleName:r.name})}:null})).filter((function(e){return null!==e})).forEach((function(e){return W.push(e)})),!G&&W.length&&((0,u.R)().requestBids.before(fe,40),d.ZP.callDataDeletionRequest.before(Ze),k.G.after((function(e){return e(le())})),(0,v.logInfo)("".concat(F," - usersync config updated for ").concat(W.length," submodules: "),W.map((function(e){return e.submodule.name}))),G=!0)}}function Ne(e,n){if(e){var r={},o=new Map(n.map((function(e){return e.submodule.aliasName?[e.submodule.aliasName,e.submodule.name]:[]})));Object.keys(e).forEach((function(n){var i=(0,v.isArray)(e[n])?(0,t.Z)(e[n]).reverse():[];r[n]=i.map((function(e){return o.has(e)?o.get(e):e}))})),J=r}else J={}}function Ze(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),t=1;t<n;t++)r[t-1]=arguments[t];(0,v.logInfo)("UserID: received data deletion request; deleting all stored IDs..."),W.forEach((function(e){if("function"==typeof e.submodule.onDataDeletionRequest)try{var n;(n=e.submodule).onDataDeletionRequest.apply(n,[e.config,e.idObj].concat(r))}catch(n){(0,v.logError)("Error calling onDataDeletionRequest for ID submodule ".concat(e.submodule.name),n)}Q(e)})),e.apply(this,r)}function Ue(e){return function(){return Promise.resolve(e.apply(this,arguments))}}!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.delay,t=void 0===r?A.Z.timeout:r;S=void 0,W=[],B=[],G=!1,p=[],ue=se({delay:t}),null!=w&&w(),V=[],w=e.getConfig("userSync",(function(e){var n=e.userSync;n&&(S=n.ppid,n.userIds&&(B=n.userIds,E=(0,v.isNumber)(n.syncDelay)?n.syncDelay:500,I=(0,v.isNumber)(n.auctionDelay)?n.auctionDelay:0,Te(),Ne(n.idPriority,W),ue({ready:!0})))})),(0,u.R)().getUserIds=de,(0,u.R)().getUserIdsAsEids=ge,(0,u.R)().getEncryptedEidsForSource=Ue(ve),(0,u.R)().registerSignalSources=he,(0,u.R)().refreshUserIds=Ue(ye),(0,u.R)().getUserIdsAsync=Ue(pe),(0,u.R)().getUserIdsAsEidBySource=me}(s.vc),(0,m.bA)("userId",(function(e){(0,c.sE)(V,(function(n){return n.name===e.name}))||(V.push(e),f.qh.register(N.y2,e.name,e.gvlid),Te(),ue({refresh:!0,submoduleNames:[e.name]}))}),{postInstallAllowed:!0}),(0,P.f8)({type:P.Z,name:"userExtEids",fn:function(e,n,r){var t=(0,b.Z)(r,"bidRequests.0.userIdAsEids");t&&Object.keys(t).length>0&&(0,j.N)(e,"user.ext.eids",t)}}),(0,u.z)("userId")}},function(e){e.O(0,[25823,79270],(function(){return n=82547,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[25307],{24283:function(e,n,t){var r=t(78640),i=t(64358),o=t(20265),a=t(14699),d=t(24679),c=t(15164),s=t(3193),u="exchange",p="kueezrtb",g="1.0.0",l=9e5,b=(0,c.df)({bidderCode:p});function f(){try{return(0,i.parseUrl)(window.top.document.URL,{decodeSearchAsString:!0}).search}catch(e){return""}}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return"https://".concat(e,".kueezrtb.com")}function h(e){return e.cId||e.CID||e.cID||e.CId||e.cid||e.ciD||e.Cid||e.CiD}function m(e){return e.pId||e.PID||e.pID||e.PId||e.pid||e.piD||e.Pid||e.PiD}function I(e,n,t,r,a){var d,c,s=e.params,u=e.bidId,p=e.userId,b=e.adUnitCode,I=e.schain,S=e.mediaTypes,D=e.auctionId,R=e.transactionId,U=e.bidderRequestId,k=e.bidRequestsCount,q=e.bidderRequestsCount,O=e.bidderWinsCount,z=s.bidFloor,w=s.ext,T=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_",t=e.length,r=0,i=0;if(t>0)for(;i<t;)r=(r<<5)-r+e.charCodeAt(i++)|0;return n+r}(n),_=function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,r="u_".concat(e),i=Date.now(),o=C(r);!o||!o.value||i-o.created>t?y(r,n="".concat(e,"_").concat(i.toString())):n=o.value;return n}(T),j=h(s),x=m(s),A=function(e){return e.subDomain||e.SubDomain||e.Subdomain||e.subdomain||e.SUBDOMAIN||e.subDOMAIN}(s),F=(0,o.Z)(e,"ortb2Imp.ext.gpid")||(0,o.Z)(e,"ortb2Imp.ext.data.pbadslot","");if((0,i.isFn)(e.getFloor)){var M=e.getFloor({currency:"USD",mediaType:"*",size:"*"});"USD"===M.currency&&(z=M.floor)}var P,Z,E,L={url:encodeURIComponent(n),uqs:f(),cb:Date.now(),bidFloor:z,bidId:u,referrer:r.refererInfo.ref,adUnitCode:b,publisherId:x,sizes:t,uniqueDealId:_,bidderVersion:g,prebidVersion:"8.51.0",res:"".concat(screen.width,"x").concat(screen.height),schain:I,mediaTypes:S,gpid:F,auctionId:D,transactionId:R,bidderRequestId:U,bidRequestsCount:k,bidderRequestsCount:q,bidderWinsCount:O,bidderTimeout:a};P=L,Z=p,(0,i._each)(Z,(function(e,n){switch(E="uid.".concat(n),n){case"digitrustid":P[E]=(0,o.Z)(e,"data.id");break;case"lipb":P[E]=e.lipbid;break;case"parrableId":P[E]=e.eid;break;case"id5id":P[E]=e.uid;break;default:P[E]=e}}));var N=(0,o.Z)(r,"ortb2.device.sua");N&&(L.sua=N),r.gdprConsent&&(r.gdprConsent.consentString&&(L.gdprConsent=r.gdprConsent.consentString),void 0!==r.gdprConsent.gdprApplies&&(L.gdpr=r.gdprConsent.gdprApplies?1:0)),r.uspConsent&&(L.usPrivacy=r.uspConsent),r.gppConsent?(L.gppString=r.gppConsent.gppString,L.gppSid=r.gppConsent.applicableSections):null!==(d=r.ortb2)&&void 0!==d&&null!==(c=d.regs)&&void 0!==c&&c.gpp&&(L.gppString=r.ortb2.regs.gpp,L.gppSid=r.ortb2.regs.gpp_sid);var X={method:"POST",url:"".concat(v(A),"/prebid/multi/").concat(j),data:L};return(0,i._each)(w,(function(e,n){X.data["ext."+n]=e})),X}function C(e){try{return function(e){try{return JSON.parse(e)}catch(n){return e}}(b.getDataFromLocalStorage(e))}catch(e){}return null}function y(e,n,t){try{var r=t||Date.now(),i=JSON.stringify({value:n,created:r});b.setDataInLocalStorage(e,i)}catch(e){}}var S={code:p,version:g,gvlid:1165,supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){var n=e.params||{};return!(!h(n)||!m(n))},buildRequests:function(e,n){var t,r=n.refererInfo.page||n.refererInfo.topmostLocation,o=null!==(t=n.timeout)&&void 0!==t?t:s.vc.getConfig("bidderTimeout"),a=[];return e.forEach((function(e){var t=(0,i.parseSizesInput)(e.sizes),d=I(e,r,t,n,o);a.push(d)})),a},interpretResponse:function(e,n){if(!e||!e.body)return[];var t=n.data.bidId,r=e.body.results,i=[];try{return r.forEach((function(e){var n=e.creativeId,r=e.ad,o=e.price,a=e.exp,c=e.width,s=e.height,u=e.currency,p=e.metaData,g=e.advertiserDomains,l=e.mediaType,b=void 0===l?d.Mk:l;if(r&&o){var f={requestId:t,cpm:o,width:c,height:s,creativeId:n,currency:u||"USD",netRevenue:!0,ttl:a||300};p?Object.assign(f,{meta:p}):Object.assign(f,{meta:{advertiserDomains:g||[]}}),b===d.Mk?Object.assign(f,{ad:r}):Object.assign(f,{vastXml:r,mediaType:d.pX}),i.push(f)}})),i}catch(e){return[]}},getUserSyncs:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d=[],c=e.iframeEnabled,s=e.pixelEnabled,u=t.gdprApplies,p=t.consentString,g=void 0===p?"":p,l=a.gppString,b=a.applicableSections,f=n.filter((function(e){return(0,o.Z)(e,"body.cid")})).map((function(e){return e.body.cid})).filter(i.uniques),v="?cid=".concat(encodeURIComponent(f.join(",")),"&gdpr=").concat(u?1:0,"&gdpr_consent=").concat(encodeURIComponent(g||""),"&us_privacy=").concat(encodeURIComponent(r||""));return l&&null!=b&&b.length&&(v+="&gpp="+encodeURIComponent(l),v+="&gpp_sid="+encodeURIComponent(b.join(","))),c&&d.push({type:"iframe",url:"https://sync.kueezrtb.com/api/sync/iframe/".concat(v)}),s&&d.push({type:"image",url:"https://sync.kueezrtb.com/api/sync/image/".concat(v)}),d}};(0,a.dX)(S),(0,r.z)("kueezRtbBidAdapter")}},function(e){e.O(0,[25823,79270],(function(){return n=24283,e(e.s=n);var n}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[79114],{45407:function(e,t,n){var i=n(78640),o=n(64358),r=n(48928),a=n(92797),p=n(15164),s=n(9633),l=n(34516),d="identityLink",c=(0,p.df)({moduleType:s.y2,moduleName:d}),v="_lr_env",g={name:d,gvlid:97,decode:function(e){return{idl_env:e}},getId:function(e,t){var n=e&&e.params||{};if(n&&"string"==typeof n.pid){var i=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies?1:0,r=i?t.consentString:"";if(!i||r&&""!==r){var a=l.TJ.getConsentData(),p=!(!a||!a.gppString)&&a.gppString,s=!!(a&&a.gppString&&a.applicableSections.length>0&&-1!==a.applicableSections[0])&&a.applicableSections[0],d=p&&s,g="https://api.rlcdn.com/api/identity/envelope?pid=".concat(n.pid).concat(i?"&ct=4&cv="+r:"").concat(d?"&gpp="+p+"&gpp_sid="+s:"");return{callback:function(e){if(window.ats&&window.ats.retrieveEnvelope)o.logInfo("identityLink: ATS exists!"),window.ats.retrieveEnvelope((function(t){t?(o.logInfo("identityLink: An envelope can be retrieved from ATS!"),u(!0),e(JSON.parse(t).envelope)):f(g,e,n)}));else{var t=(i=c.getCookie(v)||c.getDataFromLocalStorage(v))?window.atob(i):void 0;t?(o.logInfo("identityLink: LiveRamp envelope successfully retrieved from storage!"),e(JSON.parse(t).envelope)):f(g,e,n)}var i}}}o.logInfo("identityLink: Consent string is required to call envelope API.")}else o.logError("identityLink: requires partner id to be defined")},eids:{idl_env:{source:"liveramp.com",atype:3}}};function f(e,t,n){var i,a={success:function(e){var n;if(e)try{n=JSON.parse(e)}catch(e){o.logInfo(e)}t(n&&n.envelope?n.envelope:"")},error:function(e){o.logInfo("identityLink: identityLink: ID fetch encountered an error",e),t()}};n.notUse3P||c.getCookie("_lr_retry_request")||((i=new Date).setTime(i.getTime()+36e5),c.setCookie("_lr_retry_request","true",i.toUTCString()),o.logInfo("identityLink: A 3P retrieval is attempted!"),u(!1),(0,r.hj)(e,a,void 0,{method:"GET",withCredentials:!0}))}function u(e){var t=new Date;t.setTime(t.getTime()+2592e6),c.setCookie("_lr_env_src_ats",e,t.toUTCString())}(0,a.Bx)("userId",g),(0,i.z)("identityLinkIdSystem")}},function(e){e.O(0,[25823,79270],(function(){return t=45407,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[61618],{10272:function(t,e,r){var n=r(4942),o=r(15861),i=r(15671),a=r(43144),s=r(64687),c=r.n(s),u=r(78640),p=r(64358),l=r(20265),f=r(96475),h=r(48928),d=r(92797),g=r(25102),v=r(15164),y=r(34516),m=r(9633),b=r(68792),w=r(55730);function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}function D(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var O="id5id",k="".concat(O,"_privacy"),I="html5",j="User ID - ID5 submodule: ",_="https://id5-sync.com/api/config/prebid",L="id5-sync.com",P=["pbjs-id5id","id5id.1st","id5id"],C=(0,v.df)({moduleType:m.y2,moduleName:"id5Id"}),T={name:"id5Id",gvlid:131,decode:function(t,e){var r={};if(t&&"string"==typeof t.universal_uid){var n={id5id:{uid:t.universal_uid,ext:r=t.ext||r}};switch((0,p.isPlainObject)(r.euid)&&(n.euid={uid:r.euid.uids[0].id,source:r.euid.source,ext:{provider:L}}),(0,l.Z)(t,"ab_testing.result")){case"control":(0,p.logInfo)(j+"A/B Testing - user is in the Control Group: ID5 ID is NOT exposed"),(0,f.N)(n,"id5id.ext.abTestingControlGroup",!0);break;case"error":(0,p.logError)(j+"A/B Testing ERROR! controlGroupPct must be a number >= 0 and <= 1");break;case"normal":(0,p.logInfo)(j+"A/B Testing - user is NOT in the Control Group"),(0,f.N)(n,"id5id.ext.abTestingControlGroup",!1)}return(0,p.logInfo)(j+"Decoded ID",n),n}},getId:function(t,e,r){if(at(t)){if(ft(e)){return{callback:function(n){new M(t,e,r,y.nX.getConsentData(),y.TJ.getConsentData()).execute().then((function(t){n(t)})).catch((function(t){(0,p.logError)(j+"getId fetch encountered an error",t),n()}))}}}(0,p.logInfo)(j+"Skipping ID5 local storage write because no consent given.")}},extendId:function(t,e,r){return ft(e)?(pt(at(t)?t.params.partner:0),(0,p.logInfo)(j+"using cached ID",r),r):((0,p.logInfo)(j+"No consent given for ID5 local storage writing, skipping nb increment."),r)},eids:{id5id:{getValue:function(t){return t.uid},source:L,atype:1,getUidExt:function(t){if(t.ext)return t.ext}},euid:{getValue:function(t){return t.uid},getSource:function(t){return t.source},atype:3,getUidExt:function(t){if(t.ext)return t.ext}}}},N=new WeakSet,G=new WeakSet,Z=new WeakSet,W=new WeakSet,F=new WeakSet,A=new WeakSet,U=new WeakSet,q=new WeakSet,J=new WeakSet,M=function(){function t(e,r,n,o,a){(0,i.Z)(this,t),E(this,J),E(this,q),E(this,U),E(this,A),E(this,F),E(this,W),E(this,Z),E(this,G),E(this,N),this.submoduleConfig=e,this.gdprConsentData=r,this.cacheIdObj=n,this.usPrivacyData=o,this.gppData=a}var e;return(0,a.Z)(t,[{key:"execute",value:(e=(0,o.Z)(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=D(this,F,X).call(this),!D(this,N,R).call(this)){t.next=14;break}return t.prev=2,t.next=5,D(this,G,B).call(this,e);case 5:return t.abrupt("return",t.sent);case 8:return t.prev=8,t.t0=t.catch(2),(0,p.logError)(j+"Error while performing ID5 external module flow. Continuing with regular flow.",t.t0),t.abrupt("return",D(this,W,V).call(this,e));case 12:t.next=15;break;case 14:return t.abrupt("return",D(this,W,V).call(this,e));case 15:case"end":return t.stop()}}),t,this,[[2,8]])}))),function(){return e.apply(this,arguments)})}]),t}();function R(){return"string"==typeof this.submoduleConfig.params.externalModuleUrl}function B(t){return z.apply(this,arguments)}function z(){return(z=(0,o.Z)(c().mark((function t(e){var r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot(this.submoduleConfig.params.externalModuleUrl);case 2:return t.next=4,e;case 4:return r=t.sent,t.abrupt("return",D(this,Z,H).call(this).fetchId5Id(r,this.submoduleConfig.params,(0,g.nH)(),this.gdprConsentData,this.usPrivacyData,this.gppData));case 6:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function H(){return window.id5Prebid&&window.id5Prebid.integration}function V(t){return Y.apply(this,arguments)}function Y(){return(Y=(0,o.Z)(c().mark((function t(e){var r,n,o;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return r=t.sent,t.next=5,D(this,A,Q).call(this,r.extensionsCall);case 5:return n=t.sent,t.next=8,D(this,U,tt).call(this,r.fetchCall,n);case 8:return o=t.sent,t.abrupt("return",D(this,J,nt).call(this,o));case 10:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function X(){return K.apply(this,arguments)}function K(){return(K=(0,o.Z)(c().mark((function t(){var e,r,n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.submoduleConfig.params.configUrl||_,t.next=3,(0,h.he)(e,{method:"POST",body:JSON.stringify(S(S({},this.submoduleConfig),{},{bounce:!0})),credentials:"include"});case 3:if((r=t.sent).ok){t.next=6;break}throw new Error("Error while calling config endpoint: ",r);case 6:return t.next=8,r.json();case 8:return n=t.sent,(0,p.logInfo)(j+"config response received from the server",n),t.abrupt("return",n);case 11:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Q(t){return $.apply(this,arguments)}function $(){return($=(0,o.Z)(c().mark((function t(e){var r,n,o,i,a;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==e){t.next=2;break}return t.abrupt("return",void 0);case 2:return r=e.url,n=e.method||"GET",o="GET"===n?void 0:JSON.stringify(e.body||{}),t.next=7,(0,h.he)(r,{method:n,body:o});case 7:if((i=t.sent).ok){t.next=10;break}throw new Error("Error while calling extensions endpoint: ",i);case 10:return t.next=12,i.json();case 12:return a=t.sent,(0,p.logInfo)(j+"extensions response received from the server",a),t.abrupt("return",a);case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function tt(t,e){return et.apply(this,arguments)}function et(){return(et=(0,o.Z)(c().mark((function t(e,r){var n,o,i,a,s;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.url,o=e.overrides||{},i=JSON.stringify(S(S(S({},D(this,q,rt).call(this)),o),{},{extensions:r})),t.next=5,(0,h.he)(n,{method:"POST",body:i,credentials:"include"});case 5:if((a=t.sent).ok){t.next=8;break}throw new Error("Error while calling fetch endpoint: ",a);case 8:return t.next=10,a.json();case 10:return s=t.sent,(0,p.logInfo)(j+"fetch response received from the server",s),t.abrupt("return",s);case 13:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function rt(){var t,e,r,n=this.submoduleConfig.params,o=this.gdprConsentData&&"boolean"==typeof this.gdprConsentData.gdprApplies&&this.gdprConsentData.gdprApplies?1:0,i=(0,g.nH)(),a=this.cacheIdObj&&this.cacheIdObj.signature?this.cacheIdObj.signature:(P.forEach((function(e){C.getCookie(e)&&(t=(0,p.safeJSONParse)(C.getCookie(e))||t)})),t&&t.signature||""),s=(e=n.partner,r=pt(e),ct(e,0),r),c={partner:n.partner,gdpr:o,nbPage:s,o:"pbjs",tml:i.topmostLocation,ref:i.ref,cu:i.canonicalUrl,top:i.reachedTop?1:0,u:i.stack[0]||window.location.href,v:"8.51.0",storage:this.submoduleConfig.storage,localStorage:C.localStorageIsEnabled()?1:0};!o||void 0===this.gdprConsentData.consentString||(0,p.isEmpty)(this.gdprConsentData.consentString)||(0,p.isEmptyStr)(this.gdprConsentData.consentString)||(c.gdpr_consent=this.gdprConsentData.consentString),void 0===this.usPrivacyData||(0,p.isEmpty)(this.usPrivacyData)||(0,p.isEmptyStr)(this.usPrivacyData)||(c.us_privacy=this.usPrivacyData),this.gppData&&(c.gpp_string=this.gppData.gppString,c.gpp_sid=this.gppData.applicableSections),void 0===a||(0,p.isEmptyStr)(a)||(c.s=a),void 0===n.pd||(0,p.isEmptyStr)(n.pd)||(c.pd=n.pd),void 0===n.provider||(0,p.isEmptyStr)(n.provider)||(c.provider=n.provider);var u=n.abTesting||{enabled:!1};return u.enabled&&(c.ab_testing={enabled:!0,control_group_pct:u.controlGroupPct}),c}function nt(t){try{t.privacy&&lt(k,JSON.stringify(t.privacy),30)}catch(t){(0,p.logError)(j+"Error while writing privacy info into local storage.",t)}return t}function ot(t){return it.apply(this,arguments)}function it(){return(it=(0,o.Z)(c().mark((function t(e){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new b.Z((function(t,r){if(window.id5Prebid)t();else try{(0,w.B)(e,"id5",t)}catch(t){r(t)}})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function at(t){if(!t||!t.params||!t.params.partner)return(0,p.logError)(j+"partner required to be defined"),!1;var e=t.params.partner;if("string"==typeof e||e instanceof String){var r=parseInt(e);if(isNaN(r)||r<0)return(0,p.logError)(j+"partner required to be a number or a String parsable to a positive integer"),!1;t.params.partner=r}else if("number"!=typeof e)return(0,p.logError)(j+"partner required to be a number or a String parsable to a positive integer"),!1;return t.storage&&t.storage.type&&t.storage.name?(t.storage.type!==I&&(0,p.logWarn)(j+"storage type recommended to be '".concat(I,"'. In a future release this may become a strict requirement")),t.storage.name!==O&&(0,p.logWarn)(j+"storage name recommended to be '".concat(O,"'. In a future release this may become a strict requirement")),!0):((0,p.logError)(j+"storage required to be set"),!1)}function st(t){return"".concat(O,"_").concat(t,"_nb")}function ct(t,e){lt(st(t),e,30)}function ut(t){var e=function(t){var e=C.getDataFromLocalStorage("".concat(t,"_exp"));if(""===e)return C.getDataFromLocalStorage(t);if(e&&new Date(e).getTime()-Date.now()>0)return C.getDataFromLocalStorage(t);return C.removeDataFromLocalStorage(t),null}(st(t));return e?parseInt(e):0}function pt(t){var e=ut(t)+1;return ct(t,e),e}function lt(t,e,r){C.setDataInLocalStorage("".concat(t,"_exp"),function(t){return new Date(Date.now()+864e5*t).toUTCString()}(r)),C.setDataInLocalStorage("".concat(t),e)}function ft(t){var e=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies,r=(0,l.Z)(t,"vendorData.purpose.consents.1"),n=(0,l.Z)(t,"vendorData.vendor.consents.".concat(131..toString()));return!!(!e||r&&n)}(0,d.Bx)("userId",T),(0,u.z)("id5IdSystem")},17061:function(t,e,r){var n=r(18698).default;function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",p=s.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),s=new j(n||[]);return a(i,"_invoke",{value:D(t,r,s)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function g(){}function v(){}function y(){}var m={};l(m,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&w!==r&&i.call(w,c)&&(m=w);var x=y.prototype=g.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(o,a,s,c){var u=h(t[o],t,a);if("throw"!==u.type){var p=u.arg,l=p.value;return l&&"object"==n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(l).then((function(t){p.value=t,s(p)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function D(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=h(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function _(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return v.prototype=y,a(x,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,p,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,p,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(E.prototype),l(E.prototype,u,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(x),l(x,p,"Generator"),l(x,c,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=_,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},18698:function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},64687:function(t,e,r){var n=r(17061)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},15861:function(t,e,r){function n(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,c,"next",t)}function c(t){n(a,o,i,s,c,"throw",t)}s(void 0)}))}}r.d(e,{Z:function(){return o}})}},function(t){t.O(0,[25823,79270],(function(){return e=10272,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[92972],{54834:function(o,e,n){var t=n(71002),r=n(78640),i=n(64358),d=n(92797),a=n(34516),u=n(15164),c=n(9633),l=n(81694),f=(0,u.df)({moduleType:c.y2,moduleName:"sharedId"}),s="cookie",m="html5",g="_pubcid_optout",p="PublisherCommonId";function v(o,e){if(e===s)return f.getCookie(o);if(e===m&&f.hasLocalStorage()){var n=f.getDataFromLocalStorage("".concat(o,"_exp"));if(!n)return f.getDataFromLocalStorage(o);if(new Date(n).getTime()-Date.now()>0)return f.getDataFromLocalStorage(o)}}function I(o,e){return function(n,t){e?b(e,o,(function(){n(t()||o)}))():n(o)}}function b(o){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(o){var t=(0,i.parseUrl)(o);t.search.id=encodeURIComponent("pubcid:"+e);var r=(0,i.buildUrl)(t);return function(){(0,i.triggerPixel)(r,n)}}}function h(){return!!(f.cookiesAreEnabled()&&v(g,s)||f.hasLocalStorage()&&v(g,m))}var C={name:"sharedId",aliasName:"pubCommonId",gvlid:a.$P,decode:function(o,e){if(!h())return(0,i.logInfo)(" Decoded value PubCommonId "+o),{pubcid:o};(0,i.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(h())(0,i.logInfo)("PubCommonId: Has opted-out");else{var n=a.VP.getCoppa();if(!n){var r=o.params,d=(r=void 0===r?{}:r).create,u=void 0===d||d,c=r.pixelUrl,l=e;if(!l){try{"object"===(0,t.Z)(window[p])&&(l=window[p].getId())}catch(o){}l||(l=u&&(0,i.hasDeviceAccess)()?(0,i.generateUUID)():void 0)}return{id:l,callback:I(l,c)}}(0,i.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(h())return(0,i.logInfo)("PubCommonId: Has opted-out"),{id:void 0};var n=a.VP.getCoppa();if(n)(0,i.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");else{var t=o.params,r=(t=void 0===t?{}:t).extend,d=void 0!==r&&r,u=t.pixelUrl;if(d){if(u){var c=b(u,e);return{callback:c}}return{id:e}}}},domainOverride:(0,l.U)(f,"sharedId"),eids:{pubcid:{source:"pubcid.org",atype:1}}};(0,d.Bx)("userId",C),(0,r.z)("sharedIdSystem")}},function(o){o.O(0,[57748,25823,79270],(function(){return e=54834,o(o.s=e);var e}));o.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[34579],{98709:function(r,e,t){var n=t(4942),o=t(78640),c=t(64358),i=t(48928),u=t(92797),s=t(93253);function f(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}var a="unifiedId",d={name:a,gvlid:21,decode:function(r){return r&&"string"==typeof r.TDID?{tdid:r.TDID}:void 0},getId:function(r){var e=r&&r.params||{};if(e&&("string"==typeof e.partner||"string"==typeof e.url)){var t=e.url||"https://match.adsrvr.org/track/rid?ttd_pid=".concat(e.partner,"&fmt=json");return{callback:function(r){var e={success:function(e){var t;if(e)try{t=JSON.parse(e)}catch(r){(0,c.logError)(r)}r(t)},error:function(e){(0,c.logError)("".concat(a,": ID fetch encountered an error"),e),r()}};(0,i.hj)(t,e,void 0,{method:"GET",withCredentials:!0})}}}(0,c.logError)("User ID - unifiedId submodule requires either partner or url to be defined")},eids:function(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,n.Z)(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}({},s.u)};(0,u.Bx)("userId",d),(0,o.z)("unifiedIdSystem")}},function(r){r.O(0,[85240,25823,79270],(function(){return e=98709,r(r.s=e);var e}));r.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[79073],{7713:function(e,o,n){var t=n(78640),r=n(64358),a=n(48928),i=n(25102),c=n(92797),l=n(15164),d=n(9633),u=n(34516),s="criteo",p=(0,l.df)({moduleType:d.y2,moduleName:s}),g="cto_bidid",v="cto_bundle",m="html5",f="cookie",b=new Date(0).toString(),y=new Date((0,r.timestamp)()+33696e6).toString();function I(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,r.parseUrl)(e,{noDecodeWholeURL:!0});return o?"".concat(n.hostname):"".concat(n.protocol,"://").concat(n.hostname).concat(n.port?":"+n.port:"","/")}function h(e,o){var n,t;return(null==e||null===(n=e.storage)||void 0===n?void 0:n.type)===m?p.getDataFromLocalStorage(o):(null==e||null===(t=e.storage)||void 0===t?void 0:t.type)===f?p.getCookie(o):p.getCookie(o)||p.getDataFromLocalStorage(o)}function S(e,o,n,t){var r,a;o&&n&&((null==e||null===(r=e.storage)||void 0===r?void 0:r.type)===m?p.setDataInLocalStorage(o,n):((null==e||null===(a=e.storage)||void 0===a?void 0:a.type)===f||p.setDataInLocalStorage(o,n),C(o,n,y,t,!0)))}function C(e,o,n,t,r){for(var a=t.split("."),i=0;i<a.length;++i){var c=a.slice(a.length-i-1,a.length).join(".");try{if(p.setCookie(e,o,n,null,"."+c),r){var l=p.getCookie(e);if(l&&l===o)break}}catch(e){}}}function U(e,o,n){var t,c,l,d,s=(void 0===(null==e||null===(t=e.storage)||void 0===t?void 0:t.type)||(null==e||null===(c=e.storage)||void 0===c?void 0:c.type)===f)&&p.cookiesAreEnabled(),y=(void 0===(null==e||null===(l=e.storage)||void 0===l?void 0:l.type)||(null==e||null===(d=e.storage)||void 0===d?void 0:d.type)===m)&&p.localStorageIsEnabled(),h=I((0,i.nH)().page),U=I(document.location.href,!0),w="undefined"!=typeof criteo_pubtag,D=function(e,o,n,t,r,a,i){var c="https://gum.criteo.com/sid/json?origin=prebid"+"".concat(e?"&topUrl="+encodeURIComponent(e):"")+"".concat(o?"&domain="+encodeURIComponent(o):"")+"".concat(n?"&bundle="+encodeURIComponent(n):"")+"".concat(t?"&info="+encodeURIComponent(t):"")+"".concat(r?"&cw=1":"")+"".concat(i?"&pbt=1":"")+"".concat(a?"&lsw=1":""),l=u.nX.getConsentData();l&&(c+="&us_privacy=".concat(encodeURIComponent(l)));var d=u.rp.getConsentData();d&&(c+="".concat(d.consentString?"&gdprString="+encodeURIComponent(d.consentString):""),c+="&gdpr=".concat(!0===d.gdprApplies?1:0));var s=u.TJ.getConsentData();return s&&(c+="".concat(s.gppString?"&gpp="+encodeURIComponent(s.gppString):""),c+="".concat(s.applicableSections?"&gpp_sid="+encodeURIComponent(s.applicableSections):"")),c}(h,U,o.bundle,o.dnaBundle,s,y,w),k={success:function(o){var t,i=JSON.parse(o);(i.pixels&&i.pixels.forEach((function(o){return function(e,o,n){n.writeBundleInStorage&&n.bundlePropertyName&&n.storageKeyName?(0,a.hj)(n.pixelUrl,{success:function(t){if(t){var r=JSON.parse(t);r&&r[n.bundlePropertyName]&&S(e,n.storageKeyName,r[n.bundlePropertyName],o)}},error:function(e){(0,r.logError)("criteoIdSystem: unable to sync user id",e)}},void 0,{method:"GET",withCredentials:!0}):(0,r.triggerPixel)(n.pixelUrl)}(e,U,o)})),i.acwsUrl)?("string"==typeof i.acwsUrl?[i.acwsUrl]:i.acwsUrl).forEach((function(e){return(0,r.triggerPixel)(e)})):i.bundle&&S(e,v,i.bundle,U);if(i.bidId){S(e,g,i.bidId,U);var c={criteoId:i.bidId};n(c)}else C(t=g,"",b,U,!0),p.removeDataFromLocalStorage(t),n()},error:function(e){(0,r.logError)("criteoIdSystem: unable to sync user id",e),n()}};(0,a.hj)(D,k,void 0,{method:"GET",contentType:"application/json",withCredentials:!0})}var w={name:s,gvlid:91,decode:function(e){return e},getId:function(e){var o=function(e){return{bundle:h(e,v),dnaBundle:h(e,"cto_dna_bundle"),bidId:h(e,g)}}(e);return{id:o.bidId?{criteoId:o.bidId}:void 0,callback:function(n){return U(e,o,n)}}},eids:{criteoId:{source:"criteo.com",atype:1}}};(0,c.Bx)("userId",w),(0,t.z)("criteoIdSystem")}},function(e){e.O(0,[25823,79270],(function(){return o=7713,e(e.s=o);var o}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[25823],{35706:function(e,n,t){t.d(n,{Pd:function(){return d},Th:function(){return s},_U:function(){return f}});var r=t(55730),i=t(64358),o=t(20265),a=t(34614),u=(0,t(78640).R)(),c="outstream";function s(e){var n=this,t=e.url,o=e.config,a=e.id,u=e.callback,s=e.loaded,d=e.adUnitCode,f=e.renderNow;this.url=t,this.config=o,this.handlers={},this.id=a,this.renderNow=f,this.loaded=s,this.cmd=[],this.push=function(e){"function"==typeof e?n.loaded?e.call():n.cmd.push(e):(0,i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){n.loaded=!0,n.process()},this.render=function(){var e=this,n=arguments,o=function(){e._render?e._render.apply(e,n):(0,i.logWarn)("No render function was provided, please use .setRender on the renderer")};l(d)?((0,i.logWarn)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(d)),o()):f?o():(this.cmd.unshift(o),(0,r.B)(t,c,this.callback,this.documentContext))}.bind(this)}function d(e){return!(!e||!e.url&&!e.renderNow)}function f(e,n,t){var r=null;e.config&&e.config.documentResolver&&(r=e.config.documentResolver(n,document,t)),r||(r=document),e.documentContext=r,e.render(n,e.documentContext)}function l(e){var n=u.adUnits,t=(0,a.sE)(n,(function(n){return n.code===e}));if(!t)return!1;var r=(0,o.Z)(t,"renderer"),i=!!(r&&r.url&&r.render),c=(0,o.Z)(t,"mediaTypes.video.renderer"),s=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||s&&!0!==c.backupOnly)}s.install=function(e){return new s({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode,renderNow:e.renderNow})},s.prototype.getConfig=function(){return this.config},s.prototype.setRender=function(e){this._render=e},s.prototype.setEventHandlers=function(e){this.handlers=e},s.prototype.handleVideoEvent=function(e){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.logMessage)("Prebid Renderer event for id ".concat(n," type ").concat(t))},s.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.logError)("Error processing Renderer command: ",e)}}},74947:function(e,n,t){t.d(n,{EL:function(){return a},Jt:function(){return l},K$:function(){return i},S1:function(){return r},S5:function(){return o},UE:function(){return u},e:function(){return s},g0:function(){return f},oK:function(){return d},x$:function(){return c}});var r="accessDevice",i="syncUser",o="enrichUfpd",a="enrichEids",u="fetchBids",c="reportAnalytics",s="transmitEids",d="transmitUfpd",f="transmitPreciseGeo",l="transmitTid"},10286:function(e,n,t){t.d(n,{T:function(){return i}});var r=t(93304),i=(0,t(16310).Oj)((function(e){return r.ZP.resolveAlias(e)}))},9633:function(e,n,t){t.d(n,{UL:function(){return i},XG:function(){return a},_U:function(){return u},wu:function(){return r},y2:function(){return o}});var r="prebid",i="bidder",o="userId",a="rtd",u="analytics"},16310:function(e,n,t){t.d(n,{$k:function(){return u},Hw:function(){return v},IV:function(){return g},JR:function(){return a},Ki:function(){return s},Oj:function(){return p},Qf:function(){return f},Ww:function(){return m},bL:function(){return d},bp:function(){return c},cx:function(){return l}});var r=t(4942),i=t(9633),o=t(92797),a="component",u=a+"Type",c=a+"Name",s="adapterCode",d="storageType",f="configName",l="syncType",g="syncUrl",v="_config";function p(e){return function(n,t,o){var d,f=(d={},(0,r.Z)(d,u,n),(0,r.Z)(d,c,t),(0,r.Z)(d,a,"".concat(n,".").concat(t)),d);return n===i.UL&&(f[s]=e(t)),m(Object.assign(f,o))}}var m=(0,o.z3)("sync",(function(e){return e}))},41087:function(e,n,t){t.d(n,{$8:function(){return f},Db:function(){return p},Mp:function(){return E},RD:function(){return m},ZZ:function(){return l},a:function(){return h},hb:function(){return w},js:function(){return b}});var r=t(71002),i=t(70885),o=t(20265),a=t(3193),u=t(50571),c=t(74947);function s(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return d(e,n);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 d(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var f=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((function(e){return"user.".concat(e)})).concat("device.ext.cdep"),l=["user.eids","user.ext.eids"],g=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"];function v(e){return Object.assign({get:function(){},run:function(e,n,t,r,i){var o=t&&t[r];if(h(o)&&i()){var a=this.get(o);void 0===a?delete t[r]:t[r]=a}}},e)}function p(e){return e.forEach((function(e){e.paths=e.paths.map((function(e){var n=e.split("."),t=n.pop();return[n.length>0?n.join("."):null,t]}))})),function(n,t){for(var r=[],a=arguments.length,u=new Array(a>2?a-2:0),c=2;c<a;c++)u[c-2]=arguments[c];var d=m.apply(void 0,[n].concat(u));return e.forEach((function(e){if(!1!==n[e.name]){var a,u=s(e.paths);try{for(u.s();!(a=u.n()).done;){var c=(0,i.Z)(a.value,2),f=c[0],l=c[1],g=null==f?t:(0,o.Z)(t,f);if(r.push(e.run(t,f,g,l,d.bind(null,e))),!1===n[e.name])return}}catch(e){u.e(e)}finally{u.f()}}})),r.filter((function(e){return null!=e}))}}function m(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return function(n){return e.hasOwnProperty(n.name)||(e[n.name]=!!n.applies.apply(n,t)),e[n.name]}}function h(e){return null!=e&&("object"!==(0,r.Z)(e)||Object.keys(e).length>0)}function b(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.xD;return function(t){return!n(e,t)}}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD;return[{name:c.e,paths:["userId","userIdAsEids"],applies:b(c.e,e)},{name:c.Jt,paths:["ortb2Imp.ext.tid"],applies:b(c.Jt,e)}].map(v)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD;return[{name:c.oK,paths:f,applies:b(c.oK,e)},{name:c.e,paths:l,applies:b(c.e,e)},{name:c.g0,paths:g,applies:b(c.g0,e),get:function(e){return Math.round(100*(e+Number.EPSILON))/100}},{name:c.Jt,paths:["source.tid"],applies:b(c.Jt,e)}].map(v)}var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD,n=p(E(e)),t=p(y(e));return function(e){var r={};return{ortb2:function(t){return n(r,t,e),t},bidRequest:function(n){return t(r,n,e),n}}}}();(0,u.oB)(c.Jt,"enableTIDs config",(function(){if(!a.vc.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},50571:function(e,n,t){t.d(n,{oB:function(){return d},xD:function(){return f}});var r=t(70885),i=t(64358),o=t(16310);function a(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return u(e,n);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 u(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.prefixLog)("Activity control:"),n={};function t(e){return n[e]=n[e]||[]}function u(n,t,r,i){var a;try{a=r(i)}catch(r){e.logError("Exception in rule ".concat(t," for '").concat(n,"'"),r),a={allow:!1,reason:r}}return a&&Object.assign({activity:n,name:t,component:i[o.JR]},a)}var c={},s=1e3;function d(n){var t=n.activity,r=n.name,i=n.allow,o=n.reason,a=n.component,u="".concat(r," ").concat(i?"allowed":"denied"," '").concat(t,"' for '").concat(a,"'").concat(o?":":""),d=c.hasOwnProperty(u);if(d&&clearTimeout(c[u]),c[u]=setTimeout((function(){return delete c[u]}),s),!d){var f=[u];o&&f.push(o),(i?e.logInfo:e.logWarn).apply(e,f)}}return[function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=t(e),u=a.findIndex((function(e){var n=(0,r.Z)(e,1)[0];return o<n})),c=[o,n,i];return a.splice(u<0?a.length:u,0,c),function(){var e=a.indexOf(c);e>=0&&a.splice(e,1)}},function(e,n){var i,o,c,s=a(t(e));try{for(s.s();!(c=s.n()).done;){var f=(0,r.Z)(c.value,3),l=f[0],g=f[1],v=f[2];if(i!==l&&o)break;i=l;var p=u(e,g,v,n);if(p){if(!p.allow)return d(p),!1;o=p}}}catch(e){s.e(e)}finally{s.f()}return o&&d(o),!0}]}(),s=(0,r.Z)(c,2),d=s[0],f=s[1]},13667:function(e,n,t){t.d(n,{E$:function(){return I},Lj:function(){return C},XD:function(){return S},XF:function(){return O},oc:function(){return T},tV:function(){return B}});var r=t(4942),i=t(64358),o=t(20265),a=t(52021),u=t(62200),c=t(3193),s=t(35706),d=t(24679),f=t(78653),l=t(88099),g=t(92797),v=t(70059),p=u.FP.AD_RENDER_FAILED,m=u.FP.AD_RENDER_SUCCEEDED,h=u.FP.STALE_RENDER,b=u.FP.BID_WON,y=u.q_.EXCEPTION;function E(e){var n=e.reason,t=e.message,r=e.bid,o=e.id,u={reason:n,message:t};r&&(u.bid=r,u.adId=r.adId),o&&(u.adId=o),(0,i.logError)("Error rendering ad (id: ".concat(o,"): ").concat(t)),a.emit(p,u)}function w(e){var n=e.doc,t=e.bid,r=e.id,i={doc:n};t&&(i.bid=t),r&&(i.adId=r),a.emit(m,i)}function T(e,n){switch(e.event){case u.FP.AD_RENDER_FAILED:E({bid:n,id:n.adId,reason:e.info.reason,message:e.info.message});break;case u.FP.AD_RENDER_SUCCEEDED:w({doc:null,bid:n,id:n.adId});break;default:(0,i.logError)("Received event request for unsupported event: '".concat(e.event,"' (adId: '").concat(n.adId,"')"))}}function I(e,n,t){var r=t.resizeFn,i=t.fireTrackers,o=void 0===i?v.e6:i;if("resizeNativeHeight"===e.action)r(e.width,e.height);else o(e,n)}var A=(0,r.Z)({},u.X3.EVENT,T);A[u.X3.NATIVE]=I;var C=(0,g.z3)("sync",(function(e,n){var t=e.ad,r=e.adUrl,o=e.cpm,a=e.originalCpm,u=e.width,c=e.height,s={AUCTION_PRICE:a||o,CLICKTHROUGH:(null==n?void 0:n.clickUrl)||""};return{ad:(0,i.replaceMacros)(t,s),adUrl:(0,i.replaceMacros)(r,s),width:u,height:c}})),O=(0,g.z3)("sync",(function(e){var n=e.renderFn,t=e.resizeFn,r=e.bidResponse,i=e.options;if(r.mediaType!==d.pX){var o=C(r,i);n(Object.assign({adId:r.adId},o));var a=o.width,c=o.height;null!=(null!=a?a:c)&&t(a,c)}else E({reason:u.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:r,id:r.adId})}));function S(e){var n=e.renderFn,t=e.resizeFn,r=e.adId,s=e.options,d=e.bidResponse,l=e.doc;if(null!=d){if(d.status!==u.UE.RENDERED||((0,i.logWarn)("Ad id ".concat(r," has been rendered before")),a.emit(h,d),!(0,o.Z)(c.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{O({renderFn:n,resizeFn:t,bidResponse:d,options:s,doc:l})}catch(e){E({reason:u.q_.EXCEPTION,message:e.message,id:r,bid:d})}f.K.addWinningBid(d),a.emit(b,d)}}else E({reason:u.q_.CANNOT_FIND_AD,message:"Cannot find ad '".concat(r,"'"),id:r})}function B(e,n,t){var r;function o(e,t){E(Object.assign({id:n,bid:r},{reason:e,message:t}))}function a(n,t){e.defaultView&&e.defaultView.frameElement&&(n&&(e.defaultView.frameElement.width=n),t&&(e.defaultView.frameElement.height=t))}var c,s=(c={resizeFn:a},function(e,n,t){A.hasOwnProperty(e)&&A[e](n,t,c)});try{n&&e?(r=f.K.findBidByAdId(n),e!==document||(0,i.inIframe)()?S({renderFn:function(n){n.ad?(e.write(n.ad),e.close(),w({doc:e,bid:r,adId:r.adId})):(0,l.W)(r).then((function(t){return t(n,{sendMessage:function(e,n){return s(e,n,r)},mkFrame:i.createIframe},e.defaultView)})).then((function(){return w({doc:e,bid:r,adId:r.adId})}),(function(e){o((null==e?void 0:e.reason)||u.q_.EXCEPTION,null==e?void 0:e.message),(null==e?void 0:e.stack)&&(0,i.logError)(e)}));var t=document.createComment("Creative ".concat(r.creativeId," served by ").concat(r.bidder," Prebid.js Header Bidding"));(0,i.insertElement)(t,e,"html")},resizeFn:a,adId:n,options:{clickUrl:null==t?void 0:t.clickThrough},bidResponse:r,doc:e}):o(u.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document.")):o(u.q_.MISSING_DOC_OR_ADID,"missing ".concat(n?"doc":"adId"))}catch(e){o(y,e.message)}}O.before((function(e,n){var t=n.bidResponse,r=n.doc;(0,s.Pd)(t.renderer)?((0,s._U)(t.renderer,t,r),w({doc:r,bid:t,id:t.adId}),e.bail()):e(n)}),100)},54284:function(e,n,t){t.d(n,{W:function(){return a}});var r=t(78640),i=t(64358),o=(0,r.R)();function a(e,n){o.adServers=o.adServers||{},o.adServers[e]=o.adServers[e]||{},Object.keys(n).forEach((function(t){o.adServers[e][t]?(0,i.logWarn)("Attempting to add an already registered function property ".concat(t," for AdServer ").concat(e,".")):o.adServers[e][t]=n[t]}))}},48525:function(e,n,t){function r(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}t.d(n,{Z:function(){return r}})},93304:function(e,n,t){t.d(n,{qJ:function(){return P},ZP:function(){return ee},JO:function(){return z},uV:function(){return V},Ct:function(){return J},O6:function(){return F},_x:function(){return K}});var r=t(42982),i=t(70885),o=t(4942),a=t(64358),u=t(20265),c=t(70059),s=t(14699),d=t(48928),f=t(3193),l=t(92797),g=t(34614),v={};function p(e,n,t){var r=function(e,n){var t=v[e]=v[e]||{bidders:{}};return n?t.bidders[n]=t.bidders[n]||{}:t}(e,t);return r[n]=(r[n]||0)+1,r[n]}function m(e){return p(e,"requestsCounter")}function h(e){return(0,u.Z)(v,"".concat(e,".requestsCounter"))||0}function b(e,n){return(0,u.Z)(v,"".concat(e,".bidders.").concat(n,".requestsCounter"))||0}function y(e,n){return(0,u.Z)(v,"".concat(e,".bidders.").concat(n,".winsCounter"))||0}var E=t(25102),w=t(34516),T=t(52021),I=t(62200),A=t(99128),C=t(78653),O=t(9633),S=t(50571),B=t(74947),k=t(16310),R=t(41087);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U="pbsBidAdapter",P={CLIENT:"client",SERVER:"server"},_={isAllowed:S.xD,redact:R.hb},q={},N=q.bidderRegistry={},x=q.aliasRegistry={},Z=[];f.vc.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(Z=(0,a.isArray)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var M={},W=(0,k.Oj)((function(e){return q.resolveAlias(e)}));function F(e){return W(O.wu,U,(0,o.Z)({},k.Qf,e.configName))}var L=(0,l.z3)("sync",(function(e){var n=e.bidderCode,t=e.auctionId,r=e.bidderRequestId,i=e.adUnits,o=e.src,c=e.metrics;return i.reduce((function(e,i){var s=i.bids.filter((function(e){return e.bidder===n}));return null==n&&0===s.length&&null!=i.s2sBid&&s.push({bidder:null}),e.push(s.reduce((function(e,s){var d=null==(s=Object.assign({},s,{ortb2Imp:(0,a.mergeDeep)({},i.ortb2Imp,s.ortb2Imp)},(0,a.getDefinedParams)(i,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?i.mediaTypes:s.mediaTypes;return(0,a.isValidMediaTypes)(d)?s=Object.assign({},s,{mediaTypes:d}):(0,a.logError)("mediaTypes is not correctly configured for adunit ".concat(i.code)),"client"===o&&function(e,n){p(e,"requestsCounter",n)}(i.code,n),e.push(Object.assign({},s,{adUnitCode:i.code,transactionId:i.transactionId,adUnitId:i.adUnitId,sizes:(0,u.Z)(d,"banner.sizes")||(0,u.Z)(d,"video.playerSize")||[],bidId:s.bid_id||(0,a.getUniqueIdentifierStr)(),bidderRequestId:r,auctionId:t,src:o,metrics:c,bidRequestsCount:h(i.code),bidderRequestsCount:b(i.code,s.bidder),bidderWinsCount:y(i.code,s.bidder)})),e}),[])),e}),[]).reduce(a.flatten,[]).filter((function(e){return""!==e}))}),"getBids");var z=(0,l.z3)("sync",(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?V:r;if(null==n)return e;var o=i(n);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit");function G(e,n){var t=(0,a.deepClone)(e),r=!1;return t.forEach((function(e){var t=e.bids.filter((function(e){var t;return e.module===U&&(null===(t=e.params)||void 0===t?void 0:t.configName)===n.configName}));1===t.length?(e.s2sBid=t[0],r=!0,e.ortb2Imp=(0,a.mergeDeep)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):t.length>1&&(0,a.logWarn)('Multiple "module" bids for the same s2s configuration; all will be ignored',t),e.bids=z(e.bids,n).map((function(e){return e.bid_id=(0,a.getUniqueIdentifierStr)(),e}))})),{adUnits:t=t.filter((function(e){return 0!==e.bids.length||null!=e.s2sBid})),hasModuleBids:r}}function H(e){var n=(0,a.deepClone)(e);return n.forEach((function(e){e.bids=z(e.bids,null)})),n=n.filter((function(e){return 0!==e.bids.length}))}var K=(0,l.z3)("sync",(function(e,n){return e}),"setupAdUnitMediaTypes");function V(e){(0,a.isArray)(e)||(e=[e]);var n=new Set([null]);return e.filter((function(e){return e&&e.enabled})).flatMap((function(e){return e.bidders})).forEach((function(e){return n.add(e)})),n}var J=(0,l.z3)("sync",(function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getS2SBidders,u=void 0===i?V:i,c=u(n);return(0,a.getBidderCodes)(e).reduce((function(e,n){return e[c.has(n)?P.SERVER:P.CLIENT].push(n),e}),(t={},(0,o.Z)(t,P.CLIENT,[]),(0,o.Z)(t,P.SERVER,[]),t))}),"partitionBidders");function $(e,n){var t=N[e],r=(null==t?void 0:t.getSpec)&&t.getSpec();if(r&&r[n]&&"function"==typeof r[n])return[r,r[n]]}function Q(e,n,t,r){try{(0,a.logInfo)("Invoking ".concat(e,".").concat(n));for(var i=arguments.length,o=new Array(i>4?i-4:0),u=4;u<i;u++)o[u-4]=arguments[u];f.vc.runWithBidder(e,r.bind.apply(r,[t].concat(o)))}catch(t){(0,a.logWarn)("Error calling ".concat(n," of ").concat(e))}}function X(e,n,t){if((null==t?void 0:t.src)!==I.os.SRC){var i=$(e,n);null!=i&&Q.apply(void 0,[e,n].concat((0,r.Z)(i),[t]))}}function Y(e){for(var n=new Set;x.hasOwnProperty(e)&&!n.has(e);)n.add(e),e=x[e];return e}q.makeBidRequests=(0,l.z3)("sync",(function(e,n,t,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6?arguments[6]:void 0;u=(0,A.Bf)(u),T.emit(I.FP.BEFORE_REQUEST_BIDS,e),(0,c.Fb)(e),e.forEach((function(e){(0,a.isPlainObject)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((function(e){return!e.bidder||_.isAllowed(B.UE,W(O.UL,e.bidder))})),m(e.code)})),e=K(e,i);var s=J(e,Z),d=s[P.CLIENT],l=s[P.SERVER];f.vc.getConfig("bidderSequence")===f.FD&&(d=(0,a.shuffle)(d));var v=(0,E.nH)(),p=[],h=o.global||{},b=o.bidder||{};function y(e,n){var r=_.redact(null!=n?n:W(O.UL,e.bidderCode)),i=Object.freeze(r.ortb2((0,a.mergeDeep)({source:{tid:t}},h,b[e.bidderCode])));return e.ortb2=i,e.bids=e.bids.map((function(e){return e.ortb2=i,r.bidRequest(e)})),e}Z.forEach((function(r){var i=F(r);if(r&&r.enabled&&_.isAllowed(B.UE,i)){var o=G(e,r),c=o.adUnits,s=o.hasModuleBids,d=(0,a.generateUUID)();(0===l.length&&s?[null]:l).forEach((function(e){var o=(0,a.getUniqueIdentifierStr)(),s=u.fork(),f=y({bidderCode:e,auctionId:t,bidderRequestId:o,uniquePbsTid:d,bids:L({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.deepClone)(c),src:I.os.SRC,metrics:s}),auctionStart:n,timeout:r.timeout,src:I.os.SRC,refererInfo:v,metrics:s},i);0!==f.bids.length&&p.push(f)})),c.forEach((function(e){var n=e.bids.filter((function(e){return(0,g.sE)(p,(function(n){return(0,g.sE)(n.bids,(function(n){return n.bidId===e.bid_id}))}))}));e.bids=n})),p.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=c.filter((function(e){return e.bids.length>0||null!=e.s2sBid})))}))}}));var C=H(e);return d.forEach((function(e){var o=(0,a.getUniqueIdentifierStr)(),c=u.fork(),s=y({bidderCode:e,auctionId:t,bidderRequestId:o,bids:L({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.deepClone)(C),labels:i,src:"client",metrics:c}),auctionStart:n,timeout:r,refererInfo:v,metrics:c}),d=N[e];d||(0,a.logError)("Trying to make a request for bidder that does not exist: ".concat(e)),d&&s.bids&&0!==s.bids.length&&p.push(s)})),p.forEach((function(e){w.rp.getConsentData()&&(e.gdprConsent=w.rp.getConsentData()),w.nX.getConsentData()&&(e.uspConsent=w.nX.getConsentData()),w.TJ.getConsentData()&&(e.gppConsent=w.TJ.getConsentData())})),p}),"makeBidRequests"),q.callBids=function(e,n,t,r,o,u,c){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(n.length){var l=n.reduce((function(e,n){return e[Number(void 0!==n.src&&n.src===I.os.SRC)].push(n),e}),[[],[]]),g=(0,i.Z)(l,2),v=g[0],p=g[1],m=[];p.forEach((function(e){for(var n=-1,t=0;t<m.length;++t)if(e.uniquePbsTid===m[t].uniquePbsTid){n=t;break}n<=-1&&m.push(e)}));var h=0;Z.forEach((function(e){if(e&&m[h]&&V(e).has(m[h].bidderCode)){var n=(0,d.OI)(u,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),i=e.bidders,f=N[e.adapter],l=m[h].uniquePbsTid,g=m[h].adUnitsS2SCopy,v=p.filter((function(e){return e.uniquePbsTid===l}));if(f){var b={ad_units:g,s2sConfig:e,ortb2Fragments:s};if(b.ad_units.length){var y=v.map((function(e){return e.start=(0,a.timestamp)(),function(n){n||c(e.bidderRequestId),r.apply(e,arguments)}})),E=(0,a.getBidderCodes)(b.ad_units).filter((function(e){return i.includes(e)}));(0,a.logMessage)("CALLING S2S HEADER BIDDERS ==== ".concat(E.length>0?E.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),v.forEach((function(e){T.emit(I.FP.BID_REQUESTED,j(j({},e),{},{tid:e.auctionId}))})),f.callBids(b,p,t,(function(e){return y.forEach((function(n){return n(e)}))}),n)}}else(0,a.logError)("missing "+e.adapter);h++}})),v.forEach((function(e){e.start=(0,a.timestamp)();var n=N[e.bidderCode];f.vc.runWithBidder(e.bidderCode,(function(){(0,a.logMessage)("CALLING BIDDER"),T.emit(I.FP.BID_REQUESTED,e)}));var i=(0,d.OI)(u,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),s=r.bind(e);try{f.vc.runWithBidder(e.bidderCode,n.callBids.bind(n,e,t,s,i,(function(){return c(e.bidderRequestId)}),f.vc.callbackWithBidder(e.bidderCode)))}catch(n){(0,a.logError)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:n,bidRequest:e}),s()}}))}else(0,a.logWarn)("callBids executed with no bidRequests.  Were they filtered by labels or sizing?")},q.videoAdapters=[],q.registerBidAdapter=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.supportedMediaTypes,o=void 0===i?[]:i;e&&n?"function"==typeof e.callBids?(N[n]=e,w.qh.register(O.UL,n,null===(t=e.getSpec)||void 0===t?void 0:t.call(e).gvlid),(0,g.q9)(o,"video")&&q.videoAdapters.push(n),(0,g.q9)(o,"native")&&c.Sg.push(n)):(0,a.logError)("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):(0,a.logError)("bidAdapter or bidderCode not specified")},q.aliasBidAdapter=function(e,n,t){if(void 0===N[n]){var r=N[e];if(void 0===r){var i=[];Z.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,g.q9)(r,n)?x[n]=e:i.push(e)}})),i.forEach((function(e){(0,a.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,u=function(e){var n=[];return(0,g.q9)(q.videoAdapters,e)&&n.push("video"),(0,g.q9)(c.Sg,e)&&n.push("native"),n}(e);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(n);else{var d=r.getSpec(),f=t&&t.gvlid;null!=d.gvlid&&null==f&&(0,a.logWarn)("Alias '".concat(n,"' will NOT re-use the GVL ID of the original adapter ('").concat(d.code,"', gvlid: ").concat(d.gvlid,"). Functionality that requires TCF consent may not work as expected."));var l=t&&t.skipPbsAliasing;o=(0,s.PZ)(Object.assign({},d,{code:n,gvlid:f,skipPbsAliasing:l})),x[n]=e}q.registerBidAdapter(o,n,{supportedMediaTypes:u})}catch(n){(0,a.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,a.logMessage)('alias name "'+n+'" has been already specified.')},q.resolveAlias=function(e){for(var n,t=e;x[t]&&(!n||!n.has(t));)t=x[t],(n=n||new Set).add(t);return t},q.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code,r=e.gvlid;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,M[t]={adapter:n,gvlid:r},w.qh.register(O._U,t,r)):(0,a.logError)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n        analytics adapter must implement an enableAnalytics() function')):(0,a.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},q.enableAnalytics=function(e){(0,a.isArray)(e)||(e=[e]),e.forEach((function(e){var n=M[e.provider];n&&n.adapter?_.isAllowed(B.x$,W(O._U,e.provider,(0,o.Z)({},k.Hw,e)))&&n.adapter.enableAnalytics(e):(0,a.logError)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},q.getBidAdapter=function(e){return N[e]},q.getAnalyticsAdapter=function(e){return M[e]},q.callTimedOutBidders=function(e,n,t){n=n.map((function(n){return n.params=(0,a.getUserConfiguredParams)(e,n.adUnitCode,n.bidder),n.timeout=t,n})),n=(0,a.groupBy)(n,"bidder"),Object.keys(n).forEach((function(e){X(e,"onTimeout",n[e])}))},q.callBidWonBidder=function(e,n,t){var r,i;n.params=(0,a.getUserConfiguredParams)(t,n.adUnitCode,n.bidder),r=n.adUnitCode,i=n.bidder,p(r,"winsCounter",i),X(e,"onBidWon",n)},q.callBidBillableBidder=function(e){X(e.bidder,"onBidBillable",e)},q.callSetTargetingBidder=function(e,n){X(e,"onSetTargeting",n)},q.callBidViewableBidder=function(e,n){X(e,"onBidViewable",n)},q.callBidderError=function(e,n,t){X(e,"onBidderError",{error:n,bidderRequest:t})},q.callDataDeletionRequest=(0,l.z3)("sync",(function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o="onDataDeletionRequest";Object.keys(N).filter((function(e){return!x.hasOwnProperty(e)})).forEach((function(e){var t=$(e,o);if(null!=t){var i=C.K.getBidsRequested().filter((function(n){return Y(n.bidderCode)===e}));Q.apply(void 0,[e,o].concat((0,r.Z)(t),[i],n))}})),Object.entries(M).forEach((function(e){var t,r=(0,i.Z)(e,2),u=r[0],c=r[1],s=null==c||null===(t=c.adapter)||void 0===t?void 0:t[o];if("function"==typeof s)try{s.apply(c.adapter,n)}catch(e){(0,a.logError)("error calling ".concat(o," of ").concat(u),e)}}))}));var ee=q},14699:function(e,n,t){t.d(n,{BF:function(){return j},JY:function(){return P},PZ:function(){return S},dX:function(){return O}});var r=t(71002),i=t(70885),o=t(48525),a=t(93304),u=t(3193),c=t(69626),s=t(11974),d=t(70059),f=t(90154),l=t(62200),g=t(52021),v=t(34614),p=t(64358),m=t(92797),h=t(78653),b=t(55975),y=t(99128),E=t(50571),w=t(10286),T=t(9633),I=t(74947),A=["cpm","ttl","creativeId","netRevenue","currency"],C=["auctionId","transactionId"];function O(e){var n=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function t(e){var t=S(e);a.ZP.registerBidAdapter(t,e.code,n)}t(e),Array.isArray(e.aliases)&&e.aliases.forEach((function(n){var r,i,o=n;(0,p.isPlainObject)(n)&&(o=n.code,r=n.gvlid,i=n.skipPbsAliasing),a.ZP.aliasRegistry[o]=e.code,t(Object.assign({},e,{code:o,gvlid:r,skipPbsAliasing:i}))}))}function S(e){return Object.assign(new o.Z(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:n,callBids:function(t,r,o,s,d,f){if(Array.isArray(t.bids)){var v=function(e){if((0,E.xD)(I.Jt,(0,w.T)(T.UL,e)))return{bidRequest:function(e){return e},bidderRequest:function(e){return e}};function n(e,n,t){return C.includes(n)?null:Reflect.get(e,n,t)}function t(e,n){var t=new Proxy(e,n);return Object.entries(e).filter((function(e){var n=(0,i.Z)(e,2);return n[0],"function"==typeof n[1]})).forEach((function(n){var r=(0,i.Z)(n,2),o=r[0],a=r[1];return t[o]=a.bind(e)})),t}var r=(0,p.memoize)((function(e){return t(e,{get:n})}),(function(e){return e.bidId}));return{bidRequest:r,bidderRequest:function(e){return t(e,{get:function(t,i,o){return"bids"===i?e.bids.map(r):n(t,i,o)}})}}}(t.bidderCode),m={},h=[],A=_(t).measureTime("validate",(function(){return t.bids.filter((function(n){return function(n){if(!e.isBidRequestValid(n))return(0,p.logWarn)("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(n))),!1;return!0}(v.bidRequest(n))}))}));if(0!==A.length){var O={};A.forEach((function(e){O[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),R(e,A.map(v.bidRequest),v.bidderRequest(t),s,f,{onRequest:function(e){return g.emit(l.FP.BEFORE_BIDDER_HTTP,t,e)},onResponse:function(n){d(e.code),h.push(n)},onPaapi:function(e){var n=O[e.bidId];n?j(n,e.config):(0,p.logWarn)("Received fledge auction configuration for an unknown bidId",e)},onError:function(n,r){r.timedOut||d(e.code),a.ZP.callBidderError(e.code,r,t),g.emit(l.FP.BIDDER_ERROR,{error:r,bidderRequest:t}),(0,p.logError)("Server call for ".concat(e.code," failed: ").concat(n," ").concat(r.status,". Continuing without bids."))},onBid:function(n){var t=O[n.requestId];if(t){if(n.adapterCode=t.bidder,function(e,n){var t=b.S.get(n,"allowAlternateBidderCodes")||!1,r=b.S.get(n,"allowedAlternateBidderCodes");if(e&&n&&n!==e&&(r=(0,p.isArray)(r)?r.map((function(e){return e.trim().toLowerCase()})).filter((function(e){return!!e})).filter(p.uniques):r,!t||(0,p.isArray)(r)&&"*"!==r[0]&&!r.includes(e)))return!0;return!1}(n.bidderCode,t.bidder))return(0,p.logWarn)("".concat(n.bidderCode," is not a registered partner or known bidder of ").concat(t.bidder,", hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.")),void r.reject(t.adUnitCode,n,l.Gw.BIDDER_DISALLOWED);n.originalCpm=n.cpm,n.originalCurrency=n.currency,n.meta=n.meta||Object.assign({},n[t.bidder]);var i=Object.assign((0,c.m)(l.Q_.GOOD,t),n,(0,p.pick)(t,C));!function(e,n){var t=(0,y.Bf)(n.metrics);t.checkpoint("addBidResponse"),m[e]=!0,t.measureTime("addBidResponse.validate",(function(){return P(e,n)}))?r(e,n):r.reject(e,n,l.Gw.INVALID)}(t.adUnitCode,i)}else(0,p.logWarn)("Bidder ".concat(e.code," made bid for unknown request ID: ").concat(n.requestId,". Ignoring.")),r.reject(null,n,l.Gw.INVALID_REQUEST_ID)},onCompletion:S})}else S()}function S(){o(),u.vc.runWithBidder(e.code,(function(){g.emit(l.FP.BIDDER_DONE,t),n(h,t.gdprConsent,t.uspConsent,t.gppConsent)}))}}});function n(n,t,r,i){D(e,n,t,r,i)}}var B=["paapiAuctionConfigs","fledgeAuctionConfigs"],k=["bids"].concat(B);var R=(0,m.z3)("sync",(function(e,n,t,o,a,u){var c=u.onRequest,s=u.onResponse,d=u.onPaapi,f=u.onError,l=u.onBid,g=u.onCompletion,v=_(t);g=v.startTiming("total").stopBefore(g);var m=v.measureTime("buildRequests",(function(){return e.buildRequests(n,t)}));if(m&&0!==m.length){Array.isArray(m)||(m=[m]);var h=(0,p.delayExecution)(g,m.length);m.forEach((function(n){var t=v.fork();function u(e){null!=e&&(e.metrics=t.fork().renameWith()),l(e)}var g=a((function(r,o){y();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:o.getResponseHeader.bind(o)}},s(r);try{r=t.measureTime("interpretResponse",(function(){return e.interpretResponse(r,n)}))}catch(n){return(0,p.logError)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,n),void h()}var a,c;r&&!Object.keys(r).some((function(e){return!k.includes(e)}))?(a=r.bids,c=function(e){var n=B.map((function(n){return e[n]})),t=(0,i.Z)(n,2),r=t[0],o=t[1];if(null!=r&&null!=o)throw new Error("Adapter response should use ".concat(B[0]," over ").concat(B[1],", not both"));return null!=r?r:o}(r)):a=r,(0,p.isArray)(c)&&c.forEach(d),a&&((0,p.isArray)(a)?a.forEach(u):u(a)),h()})),m=a((function(e,n){y(),f(e,n),h()}));c(n);var y=t.startTiming("net");function A(t){var r,i=n.options;return Object.assign(t,i,{browsingTopics:!(null!=i&&i.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&((null===(r=b.S.get(e.code,"topicsHeader"))||void 0===r||r)&&(0,E.xD)(I.oK,(0,w.T)(T.UL,e.code)))})}switch(n.method){case"GET":o("".concat(n.url).concat(function(e){if(e)return"?".concat("object"===(0,r.Z)(e)?(0,p.parseQueryStringParameters)(e):e);return""}(n.data)),{success:g,error:m},void 0,A({method:"GET",withCredentials:!0}));break;case"POST":o(n.url,{success:g,error:m},"string"==typeof n.data?n.data:JSON.stringify(n.data),A({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,p.logWarn)("Skipping invalid request from ".concat(e.code,". Request type ").concat(n.type," must be GET or POST")),h()}}))}else g()}),"processBidderRequests"),D=(0,m.z3)("async",(function(e,n,t,r,i){var o=u.vc.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!a.ZP.aliasRegistry[e.code])){var c=u.vc.getConfig("userSync.filterSettings"),d=e.getUserSyncs({iframeEnabled:!(!c||!c.iframe&&!c.all),pixelEnabled:!(!c||!c.image&&!c.all)},n,t,r,i);d&&(Array.isArray(d)||(d=[d]),d.forEach((function(n){s.k_.registerSync(n.type,e.code,n.url)})),s.k_.bidderDone(e.code))}}),"registerSyncs"),j=(0,m.z3)("sync",(function(e,n){}),"addComponentAuction");function U(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,o=void 0===r?h.K.index:r;if((n.width||0===parseInt(n.width,10))&&(n.height||0===parseInt(n.height,10)))return n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),!0;var a=o.getBidRequest(n),u=o.getMediaTypes(n),c=a&&a.sizes||u&&u.banner&&u.banner.sizes,s=(0,p.parseSizesInput)(c);if(1===s.length){var d=s[0].split("x"),f=(0,i.Z)(d,2),l=f[0],g=f[1];return n.width=parseInt(l,10),n.height=parseInt(g,10),!0}return!1}function P(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?h.K.index:r;function o(){var e=Object.keys(n);return A.every((function(t){return(0,v.q9)(e,t)&&!(0,v.q9)([void 0,null],n[t])}))}function a(e){return"Invalid bid from ".concat(n.bidderCode,". Ignoring bid: ").concat(e)}return e?n?o()?"native"!==n.mediaType||(0,d.r4)(n,{index:i})?"video"!==n.mediaType||(0,f.Dn)(n,{index:i})?!("banner"===n.mediaType&&!U(e,n,{index:i}))||((0,p.logError)(a("Banner bids require a width and height")),!1):((0,p.logError)(a("Video bid does not have required vastUrl or renderer property")),!1):((0,p.logError)(a("Native bid missing some required properties.")),!1):((0,p.logError)(a("Bidder ".concat(n.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1):((0,p.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):((0,p.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}function _(e){return(0,y.Bf)(e.metrics).renameWith((function(n){return["adapter.client.".concat(n),"adapters.client.".concat(e.bidderCode,".").concat(n)]}))}},55730:function(e,n,t){t.d(n,{B:function(){return u}});var r=t(34614),i=t(64358),o=new WeakMap,a=["debugging","adloox","criteo","outstream","adagio","spotx","browsi","brandmetrics","justtag","tncId","akamaidap","ftrackId","inskin","hadron","medianet","improvedigital","azerionedge","aaxBlockmeter","confiant","arcspan","airgrid","clean.io","a1Media","geoedge","mediafilter","qortex","dynamicAdBoost","contxtful","id5","51Degrees"];function u(e,n,t,u,c){if(n&&e){if((0,r.q9)(a,n)){u||(u=document);var s=l(u,e);if(s)return t&&"function"==typeof t&&(s.loaded?t():s.callbacks.push(t)),s.tag;var d=o.get(u)||{},f={loaded:!1,tag:null,callbacks:[]};return d[e]=f,o.set(u,d),t&&"function"==typeof t&&f.callbacks.push(t),(0,i.logWarn)("module ".concat(n," is loading external JavaScript")),function(n,t,r,o){r||(r=document);var a=r.createElement("script");a.type="text/javascript",a.async=!0;var u=l(r,e);u&&(u.tag=a);a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,t())}:a.onload=function(){t()};a.src=n,o&&(0,i.setScriptAttributes)(a,o);return(0,i.insertElement)(a,r),a}(e,(function(){f.loaded=!0;try{for(var e=0;e<f.callbacks.length;e++)f.callbacks[e]()}catch(e){(0,i.logError)("Error executing callback","adloader.js:loadExternalScript",e)}}),u,c)}(0,i.logError)("".concat(n," not whitelisted for loading external JavaScript"))}else(0,i.logError)("cannot load external script without url and moduleCode");function l(e,n){var t=o.get(e);return t&&t[n]?t[n]:null}}},7563:function(e,n,t){t.d(n,{G:function(){return r}});var r=(0,t(92797).z3)("sync",(function(){}))},48928:function(e,n,t){t.d(n,{OI:function(){return p},he:function(){return h},hj:function(){return m}});var r=t(70885),i=t(71002),o=t(3193),a=t(64358),u={fetch:window.fetch.bind(window),makeRequest:function(e,n){return new Request(e,n)},timeout:function(e,n){var t=new AbortController,r=setTimeout((function(){t.abort(),(0,a.logError)("Request timeout after ".concat(e,"ms"),n),r=null}),e);return{signal:t.signal,done:function(){r&&clearTimeout(r)}}}},c="GET",s="POST",d="Content-Type";function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.method||(n?s:c);if(r===c&&n){var i=(0,a.parseUrl)(e,t);Object.assign(i.search,n),e=(0,a.buildUrl)(i)}var o=new Headers(t.customHeaders);o.set(d,t.contentType||"text/plain");var f={method:r,headers:o};return r!==c&&n&&(f.body=n),t.withCredentials&&(f.credentials="include"),t.browsingTopics&&isSecureContext&&(f.browsingTopics=!0),u.makeRequest(e,f)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,r=n.done,i=function(n,t){var r,i,a;null==e||null!=(null===(r=t)||void 0===r?void 0:r.signal)||o.vc.getConfig("disableAjaxTimeout")||(a=u.timeout(e,n),t=Object.assign({signal:a.signal},t));var c=u.fetch(n,t);return null!=(null===(i=a)||void 0===i?void 0:i.done)&&(c=c.finally(a.done)),c};return null==t&&null==r||(i=function(e){return function(n,i){var o=new URL(null==(null==n?void 0:n.url)?n:n.url,document.location).origin,a=e(n,i);return t&&t(o),r&&(a=a.finally((function(){return r(o)}))),a}}(i)),i}function g(e,n){var t=e.status,r=e.statusText,i=void 0===r?"":r,o=e.headers,u=e.url,c=0;function s(e){if(0===c)try{var t,r;c=(new DOMParser).parseFromString(n,null==o||null===(t=o.get(d))||void 0===t||null===(r=t.split(";"))||void 0===r?void 0:r[0])}catch(n){c=null,e&&e(n)}return c}return{readyState:XMLHttpRequest.DONE,status:t,statusText:i,responseText:n,response:n,responseType:"",responseURL:u,get responseXML(){return s(a.logError)},getResponseHeader:function(e){return null!=o&&o.has(e)?o.get(e):null},toJSON:function(){return Object.assign({responseXML:s()},this)},timedOut:!1}}function v(e,n){var t="object"===(0,i.Z)(n)&&null!=n?n:{success:"function"==typeof n?n:function(){return null},error:function(e,n){return(0,a.logError)("Network error",e,n)}},o=t.success,u=t.error;e.then((function(e){return e.text().then((function(n){return[e,n]}))})).then((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],a=g(t,i);t.ok||304===t.status?o(i,a):u(t.statusText,a)}),(function(e){return u("",Object.assign(g({status:0},""),{reason:e,timedOut:"AbortError"===(null==e?void 0:e.name)}))}))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,r=n.done,i=l(e,{request:t,done:r});return function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};v(i(f(e,t,r)),n)}}var m=p(),h=l()},25686:function(e,n,t){t.d(n,{LX:function(){return $},RH:function(){return K},Yt:function(){return U},Yw:function(){return O},dg:function(){return V},e0:function(){return _},lU:function(){return N},mv:function(){return S},vO:function(){return j}});var r=t(71002),i=t(64358),o=t(20265),a=t(56463),u=t(70059),c=t(79885),s=t(35706),d=t(3193),f=t(11974),l=t(92797),g=t(34614),v=t(90154),p=t(24679),m=t(78653),h=t(55975),b=t(52021),y=t(93304),E=t(62200),w=t(68792),T=t(99128),I=t(36066),A=t(78640),C=f.k_.syncUsers,O="inProgress",S="completed";b.on(E.FP.BID_ADJUSTMENT,(function(e){!function(e){var n=(0,I.O)(e.cpm,e);n>=0&&(e.cpm=n)}(e)}));var B={},k={},R=[],D=(0,A.R)();function j(e){var n=e.adUnits,t=e.adUnitCodes,r=e.callback,o=e.cbTimeout,a=e.labels,c=e.auctionId,s=e.ortb2Fragments,f=e.metrics;f=(0,T.Bf)(f);var l,v,h,I,A=n,j=a,Z=t,M=c||(0,i.generateUUID)(),W=o,F=new Set,L=(0,w.P)(),H=[],K=r,V=[],J=[],$=[],Q=[],Y=[];function ee(){return{auctionId:M,timestamp:l,auctionEnd:v,auctionStatus:I,adUnits:A,adUnitCodes:Z,labels:j,bidderRequests:V,noBids:$,bidsReceived:J,bidsRejected:H,winningBids:Q,timeout:W,metrics:f,seatNonBids:Y}}function ne(e){if(e?b.emit(E.FP.AUCTION_TIMEOUT,ee()):clearTimeout(h),void 0===v){var t=[];e&&((0,i.logMessage)("Auction ".concat(M," timedOut")),(t=V.filter((function(e){return!F.has(e.bidderRequestId)})).flatMap((function(e){return e.bids}))).length&&b.emit(E.FP.BID_TIMEOUT,t)),I=S,v=Date.now(),f.checkpoint("auctionEnd"),f.timeBetween("requestBids","auctionEnd","requestBids.total"),f.timeBetween("callBids","auctionEnd","requestBids.callBids"),L.resolve(),b.emit(E.FP.AUCTION_END,ee()),q(A,(function(){try{if(null!=K){var r=J.filter((function(e){return Z.includes(e.adUnitCode)})).reduce(X,{});K.apply(D,[r,e,M]),K=null}}catch(e){(0,i.logError)("Error executing bidsBackHandler",null,e)}finally{t.length&&y.ZP.callTimedOutBidders(n,t,W);var o=d.vc.getConfig("userSync")||{};o.enableOverride||C(o.syncDelay)}}))}}function te(){d.vc.resetBidder(),(0,i.logInfo)("Bids Received for Auction with id: ".concat(M),J),I=S,ne(!1)}function re(e){F.add(e)}function ie(e){var n=this;e.forEach((function(e){var n;n=e,V=V.concat(n)}));var t={},r={bidRequests:e,run:function(){h=setTimeout((function(){return ne(!0)}),W),I=O,b.emit(E.FP.AUCTION_INIT,ee());var r=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?m.K.index:t,o=0,a=!1,c=new Set,s={};function f(){o--,a&&0===o&&e()}function l(e,n,t){return s[n.requestId]=!0,z(n,e),o++,t(f)}function v(e,t){l(e,t,(function(e){var i=G(t);b.emit(E.FP.BID_ACCEPTED,i),i.mediaType===p.pX?x(n,i,e):((0,u.ub)(i)&&(0,u.kH)(i,r.getAdUnit(i)),N(n,i),e())}))}function h(e,t,r){return l(e,t,(function(e){t.rejectionReason=r,(0,i.logWarn)("Bid from ".concat(t.bidder||"unknown bidder"," was rejected: ").concat(r),t),b.emit(E.FP.BID_REJECTED,t),n.addBidRejected(t),e()}))}function y(){var t=this,r=n.getBidRequests(),u=d.vc.getConfig("auctionOptions");if(c.add(t),u&&!(0,i.isEmpty)(u)){var f=u.secondaryBidders;f&&!r.every((function(e){return(0,g.q9)(f,e.bidderCode)}))&&(r=r.filter((function(e){return!(0,g.q9)(f,e.bidderCode)})))}a=r.every((function(e){return c.has(e)})),t.bids.forEach((function(e){s[e.bidId]||(n.addNoBid(e),b.emit(E.FP.NO_BID,e))})),a&&0===o&&e()}return{addBidResponse:function(){function e(e,n){var t;U.call({dispatch:v},e,n,(t=!1,function(r){t||(h(e,n,r),t=!0)}))}return e.reject=h,e}(),adapterDone:function(){var e=this;P(w.Z.resolve()).finally((function(){return y.call(e)}))}}}(te,n);y.ZP.callBids(A,e,r.addBidResponse,r.adapterDone,{request:function(e,n){a(B,n),a(t,e),k[e]||(k[e]={SRA:!0,origin:n}),t[e]>1&&(k[e].SRA=!1)},done:function(e){B[e]--,R[0]&&o(R[0])&&R.shift()}},W,re,s)}};function o(e){var n=!0,t=d.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===E.os.SRC?"s2s":e.bidderCode;return k[i]&&(!1===k[i].SRA&&(r=Math.min(e.bids.length,t)),B[k[i].origin]+r>t&&(n=!1)),!n})),n&&e.run(),n}function a(e,n){void 0===e[n]?e[n]=1:e[n]++}o(r)||((0,i.logWarn)("queueing auction due to limited endpoint capacity"),R.push(r))}return b.on(E.FP.SEAT_NON_BID,(function(e){var n;e.auctionId===M&&(n=e.seatnonbid,Y=Y.concat(n))})),{addBidReceived:function(e){J=J.concat(e)},addBidRejected:function(e){H=H.concat(e)},addNoBid:function(e){$=$.concat(e)},callBids:function(){I="started",l=Date.now();var e=f.measureTime("requestBids.makeRequests",(function(){return y.ZP.makeBidRequests(A,l,M,W,j,s,f)}));(0,i.logInfo)("Bids Requested for Auction with id: ".concat(M),e),f.checkpoint("callBids"),e.length<1?((0,i.logWarn)("No valid bid requests returned for auction"),te()):_.call({dispatch:ie,context:this},e)},addWinningBid:function(e){var t=n.find((function(n){return n.adUnitId===e.adUnitId}));Q=Q.concat(e),(0,i.callBurl)(e),y.ZP.callBidWonBidder(e.adapterCode||e.bidder,e,n),t&&!t.deferBilling&&y.ZP.callBidBillableBidder(e)},setBidTargeting:function(e){y.ZP.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:function(){return Q},getAuctionStart:function(){return l},getAuctionEnd:function(){return v},getTimeout:function(){return W},getAuctionId:function(){return M},getAuctionStatus:function(){return I},getAdUnits:function(){return A},getAdUnitCodes:function(){return Z},getBidRequests:function(){return V},getBidsReceived:function(){return J},getNoBids:function(){return $},getNonBids:function(){return Y},getFPD:function(){return s},getMetrics:function(){return f},end:L.promise}}var U=(0,l.z3)("sync",(function(e,n,t){!function(e){var n=d.vc.getConfig("maxBid");return!n||!e.cpm||n>=Number(e.cpm)}(n)?t(E.Gw.PRICE_TOO_HIGH):this.dispatch.call(null,e,n)}),"addBidResponse"),P=(0,l.z3)("sync",(function(e){return e}),"responsesReady"),_=(0,l.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),q=(0,l.z3)("async",(function(e,n){n&&n()}),"bidsBackCallback");function N(e,n){!function(e){var n,t=!0===h.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(t||e.dealId)&&(n=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?m.K.index:t;if(!n)return{};var i=r.getBidRequest(n),o={},a=$(n.mediaType,e);Q(o,a,n,i),e&&h.S.getOwn(e,E.k2.ADSERVER_TARGETING)&&(Q(o,h.S.ownSettingsFor(e),n,i),n.sendStandardTargeting=h.S.get(e,"sendStandardTargeting"));n.native&&(o=Object.assign({},o,(0,u.Ur)(n)));return o}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},n)}(n),(0,T.Bf)(n.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(n),b.emit(E.FP.BID_RESPONSE,n)}function x(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.index,u=void 0===a?m.K.index:a,c=!0,s=(0,o.Z)(u.getMediaTypes({requestId:n.originalRequestId||n.requestId,adUnitId:n.adUnitId}),"video"),f=s&&(0,o.Z)(s,"context"),l=s&&(0,o.Z)(s,"useCacheKey");d.vc.getConfig("cache.url")&&(l||f!==v.gZ)&&(!n.videoCacheKey||d.vc.getConfig("cache.ignoreBidderCacheKey")?(c=!1,L(e,n,t,s)):n.vastUrl||((0,i.logError)("videoCacheKey specified but not required vastUrl for video bid"),c=!1)),c&&(N(e,n),t())}var Z,M,W=function(e){(0,c.h)(e.map((function(e){return e.bidResponse})),(function(n,t){t.forEach((function(t,r){var o=e[r],a=o.auctionInstance,u=o.bidResponse,s=o.afterBidAdded;n?(0,i.logWarn)("Failed to save to the video cache: ".concat(n,". Video bid must be discarded.")):""===t.uuid?(0,i.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(u.videoCacheKey=t.uuid,u.vastUrl||(u.vastUrl=(0,c.z)(u.videoCacheKey)),N(a,u),s())}))}))};d.vc.getConfig("cache",(function(e){Z="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,M="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));var F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,t=[[]],r=!1,i=function(e){return e()};return function(o,a,u){var c=M>0?e:i;t[t.length-1].length>=Z&&t.push([]),t[t.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:u}),r||(r=!0,c((function(){t.forEach(n),t=[[]],r=!1}),M))}}(),L=(0,l.z3)("async",(function(e,n,t,r){F(e,n,t)}),"callPrebidCache");function z(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,o=void 0===r?m.K.index:r,a=o.getBidderRequest(e),u=o.getAdUnit(e),c=a&&a.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,i.timestamp)(),requestTimestamp:e.requestTimestamp||c,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:n}),null!=(null==u?void 0:u.ttlBuffer)&&(e.ttlBuffer=u.ttlBuffer),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}function G(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.index,o=void 0===i?m.K.index:i;b.emit(E.FP.BID_ADJUSTMENT,e);var u=(null===(n=o.getBidRequest(e))||void 0===n?void 0:n.renderer)||o.getAdUnit(e).renderer,c=e.mediaType,f=o.getMediaTypes(e),l=f&&f[c],g=l&&l.renderer,v=null;g&&g.url&&g.render&&(!0!==g.backupOnly||!e.renderer)?v=g:u&&u.url&&u.render&&(!0!==u.backupOnly||!e.renderer)&&(v=u),v&&(e.renderer=s.Th.install({url:v.url,config:v.options}),e.renderer.setRender(v.render));var p=H(e.mediaType,f,d.vc.getConfig("mediaTypePriceGranularity")),h=(0,a.D)(e.cpm,"object"===(0,r.Z)(p)?p:d.vc.getConfig("customPriceBucket"),d.vc.getConfig("currency.granularityMultiplier"));return e.pbLg=h.low,e.pbMg=h.med,e.pbHg=h.high,e.pbAg=h.auto,e.pbDg=h.dense,e.pbCg=h.custom,e}function H(e,n,t){if(e&&t){if(e===p.pX){var r=(0,o.Z)(n,"".concat(p.pX,".context"),"instream");if(t["".concat(p.pX,"-").concat(r)])return t["".concat(p.pX,"-").concat(r)]}return t[e]}}var K=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?m.K.index:t,i=H(e.mediaType,r.getMediaTypes(e),d.vc.getConfig("mediaTypePriceGranularity")),o="string"==typeof e.mediaType&&i?"string"==typeof i?i:"custom":d.vc.getConfig("priceGranularity");return o},V=function(e){return function(n){var t=e||K(n);return t===E.Ql.AUTO?n.pbAg:t===E.Ql.DENSE?n.pbDg:t===E.Ql.LOW?n.pbLg:t===E.Ql.MEDIUM?n.pbMg:t===E.Ql.HIGH?n.pbHg:t===E.Ql.CUSTOM?n.pbCg:void 0}};function J(e,n){return{key:e,val:"function"==typeof n?function(e,t){return n(e,t)}:function(e){return(0,i.getValue)(e,n)}}}function $(e,n){var t=Object.assign({},h.S.settingsFor(null));if(t[E.k2.ADSERVER_TARGETING]||(t[E.k2.ADSERVER_TARGETING]=[J(E.TD.BIDDER,"bidderCode"),J(E.TD.AD_ID,"adId"),J(E.TD.PRICE_BUCKET,V()),J(E.TD.SIZE,"size"),J(E.TD.DEAL,"dealId"),J(E.TD.SOURCE,"source"),J(E.TD.FORMAT,"mediaType"),J(E.TD.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:""})),J(E.TD.ACAT,(function(e){return e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:""})),J(E.TD.DSP,(function(e){return e.meta&&(e.meta.networkId||e.meta.networkName)?(0,o.Z)(e,"meta.networkName")||(0,o.Z)(e,"meta.networkId"):""})),J(E.TD.CRID,(function(e){return e.creativeId?e.creativeId:""}))]),"video"===e){var r=t[E.k2.ADSERVER_TARGETING].slice();if(t[E.k2.ADSERVER_TARGETING]=r,[E.TD.UUID,E.TD.CACHE_ID].forEach((function(e){void 0===(0,g.sE)(r,(function(n){return n.key===e}))&&r.push(J(e,"videoCacheKey"))})),d.vc.getConfig("cache.url")&&(!n||!1!==h.S.get(n,"sendStandardTargeting"))){var a=(0,i.parseUrl)(d.vc.getConfig("cache.url"));void 0===(0,g.sE)(r,(function(e){return e.key===E.TD.CACHE_HOST}))&&r.push(J(E.TD.CACHE_HOST,(function(e){return(0,o.Z)(e,"adserverTargeting.".concat(E.TD.CACHE_HOST))?e.adserverTargeting[E.TD.CACHE_HOST]:a.hostname})))}}return t}function Q(e,n,t,r){var o=n[E.k2.ADSERVER_TARGETING];return t.size=t.getSize(),(o||[]).forEach((function(o){var a=o.key,u=o.val;if(e[a]&&(0,i.logWarn)("The key: "+a+" is being overwritten"),(0,i.isFn)(u))try{u=u(t,r)}catch(e){(0,i.logError)("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&a!==E.TD.DEAL&&a!==E.TD.ACAT&&a!==E.TD.DSP&&a!==E.TD.CRID||!(0,i.isEmptyStr)(u)&&null!=u?e[a]=u:(0,i.logInfo)("suppressing empty key '"+a+"' from adserver targeting")})),e}function X(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}},78653:function(e,n,t){t.d(n,{K:function(){return m}});var r=t(70885),i=t(42982),o=t(64358),a=t(25686);function u(e){Object.assign(this,{getAuction:function(n){var t=n.auctionId;if(null!=t)return e().find((function(e){return e.getAuctionId()===t}))},getAdUnit:function(n){var t=n.adUnitId;if(null!=t)return e().flatMap((function(e){return e.getAdUnits()})).find((function(e){return e.adUnitId===t}))},getMediaTypes:function(e){var n=e.adUnitId,t=e.requestId;if(null!=t){var r=this.getBidRequest({requestId:t});if(null!=r&&(null==n||r.adUnitId===n))return r.mediaTypes}else if(null!=n){var i=this.getAdUnit({adUnitId:n});if(null!=i)return i.mediaTypes}},getBidderRequest:function(n){var t=n.requestId,r=n.bidderRequestId;if(null!=t||null!=r){var i=e().flatMap((function(e){return e.getBidRequests()}));return null!=r&&(i=i.filter((function(e){return e.bidderRequestId===r}))),null==t?i[0]:i.find((function(e){return e.bids&&null!=e.bids.find((function(e){return e.bidId===t}))}))}},getBidRequest:function(n){var t=n.requestId;if(null!=t)return e().flatMap((function(e){return e.getBidRequests()})).flatMap((function(e){return e.bids})).find((function(e){return e&&e.bidId===t}))}})}var c=t(62200),s=t(99128),d=t(10613),f=t(8833),l=t(3193);function g(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);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 v(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p="minBidCacheTTL";var m=function(){var e=null,n=(0,d.Z)({startTime:function(e){return e.end.then((function(){return e.getAuctionEnd()}))},ttl:function(n){return null==e?null:n.end.then((function(){return 1e3*Math.max.apply(Math,[e].concat((0,i.Z)(n.getBidsReceived().map(f.N))))}))}});(0,f.l)((function(){null!=e&&n.refresh()})),l.vc.getConfig(p,(function(t){e!==(e="number"==typeof(e=null==t?void 0:t.minBidCacheTTL)?e:null)&&n.refresh()}));var t={onExpiry:n.onExpiry};function v(e){var t,r=g(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.getAuctionId()===e)return i}}catch(e){r.e(e)}finally{r.f()}}function m(){return n.toArray().flatMap((function(e){return e.getBidsReceived()}))}return t.addWinningBid=function(e){var n=(0,s.Bf)(e.metrics);n.checkpoint("bidWon"),n.timeBetween("auctionEnd","bidWon","render.pending"),n.timeBetween("requestBids","bidWon","render.e2e");var t=v(e.auctionId);t?(e.status=c.UE.RENDERED,t.addWinningBid(e)):(0,o.logWarn)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:function(e){return e.getAuctionStatus()===a.mv}},getAdUnitCodes:{post:o.uniques}}).forEach((function(e){var i=(0,r.Z)(e,2),o=i[0],a=i[1],u=a.name,c=void 0===u?o:u,s=a.pre,d=a.post,f=null==s?function(e){return e[c]()}:function(e){return s(e)?e[c]():[]},l=null==d?function(e){return e}:function(e){return e.filter(d)};t[o]=function(){return l(n.toArray().flatMap(f))}})),t.getAllBidsForAdUnitCode=function(e){return m().filter((function(n){return n&&n.adUnitCode===e}))},t.createAuction=function(e){var t=(0,a.vO)(e);return function(e){n.add(e)}(t),t},t.findBidByAdId=function(e){return m().find((function(n){return n.adId===e}))},t.getStandardBidderAdServerTargeting=function(){return(0,a.LX)()[c.k2.ADSERVER_TARGETING]},t.setStatusForBids=function(e,n){var r=t.findBidByAdId(e);if(r&&(r.status=n),r&&n===c.UE.BID_TARGETING_SET){var i=v(r.auctionId);i&&i.setBidTargeting(r)}},t.getLastAuctionId=function(){var e=n.toArray();return e.length&&e[e.length-1].getAuctionId()},t.clearAllAuctions=function(){n.clear()},t.index=new u((function(){return n.toArray()})),t}()},8833:function(e,n,t){t.d(n,{N:function(){return u},l:function(){return c}});var r=t(3193),i=t(64358),o=1,a=[];function u(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:o)}function c(e){a.push(e)}r.vc.getConfig("ttlBuffer",(function(e){"number"==typeof e.ttlBuffer?o!==(o=e.ttlBuffer)&&a.forEach((function(e){return e(o)})):(0,i.logError)("Invalid value for ttlBuffer",e.ttlBuffer)}))},55975:function(e,n,t){t.d(n,{S:function(){return g}});var r=t(15671),i=t(43144),o=t(20265),a=t(64358),u=t(78640),c=t(62200);function s(e,n){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.add(e)}function d(e,n,t){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var f=new WeakSet;function l(e){return null==e?this.defaultScope:e}var g=new(function(){function e(n,t){(0,r.Z)(this,e),s(this,f),this.getSettings=n,this.defaultScope=t}return(0,i.Z)(e,[{key:"get",value:function(e,n){var t=this.getOwn(e,n);return void 0===t&&(t=this.getOwn(null,n)),t}},{key:"getOwn",value:function(e,n){return e=d(this,f,l).call(this,e),(0,o.Z)(this.getSettings(),"".concat(e,".").concat(n))}},{key:"getScopes",value:function(){var e=this;return Object.keys(this.getSettings()).filter((function(n){return n!==e.defaultScope}))}},{key:"settingsFor",value:function(e){return(0,a.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}},{key:"ownSettingsFor",value:function(e){return e=d(this,f,l).call(this,e),this.getSettings()[e]||{}}}]),e}())((function(){return(0,u.R)().bidderSettings||{}}),c.k2.BD_SETTING_STANDARD)},69626:function(e,n,t){t.d(n,{m:function(){return o}});var r=t(64358);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.src,i=void 0===t?"client":t,o=n.bidder,a=void 0===o?"":o,u=n.bidId,c=n.transactionId,s=n.adUnitId,d=n.auctionId,f=i,l=e||0;function g(){switch(l){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}Object.assign(this,{bidderCode:a,width:0,height:0,statusMessage:g(),adId:(0,r.getUniqueIdentifierStr)(),requestId:u,transactionId:c,adUnitId:s,auctionId:d,mediaType:"banner",source:f}),this.getStatusCode=function(){return l},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,adUnitId:this.adUnitId,auctionId:this.auctionId}}}function o(e,n){return new i(e,n)}},3193:function(e,n,t){t.d(n,{FD:function(){return g},vc:function(){return b}});var r=t(4942),i=t(71002),o=t(70885),a=t(56463),u=t(34614),c=t(64358),s=t(20265),d=t(62200);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var l="TRUE"===(0,c.getParameterByName)(d.f).toUpperCase(),g="random",v={};v[g]=!0,v.fixed=!0;var p=g,m={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},h="*";var b=function(){var e,n,t,d=[],g=null;function b(){function r(e){return s[e].val}function i(e,n){s[e].val=n}e={};var s={publisherDomain:{set:function(e){null!=e&&(0,c.logWarn)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),i("publisherDomain",e)}},priceGranularity:{val:m.MEDIUM,set:function(e){g(e)&&("string"==typeof e?i("priceGranularity",f(e)?e:m.MEDIUM):(0,c.isPlainObject)(e)&&(i("customPriceBucket",e),i("priceGranularity",m.CUSTOM),(0,c.logMessage)("Using custom price granularity")))}},customPriceBucket:{val:{},set:function(){}},mediaTypePriceGranularity:{val:{},set:function(e){null!=e&&i("mediaTypePriceGranularity",Object.keys(e).reduce((function(n,t){return g(e[t])?"string"==typeof e?n[t]=f(e[t])?e[t]:r("priceGranularity"):(0,c.isPlainObject)(e)&&(n[t]=e[t],(0,c.logMessage)("Using custom price granularity for ".concat(t))):(0,c.logWarn)("Invalid price granularity for media type: ".concat(t)),n}),{}))}},bidderSequence:{val:p,set:function(e){v[e]?i("bidderSequence",e):(0,c.logWarn)("Invalid order: ".concat(e,". Bidder Sequence was not set."))}},auctionOptions:{val:{},set:function(e){(function(e){if(!(0,c.isPlainObject)(e))return(0,c.logWarn)("Auction Options must be an object"),!1;for(var n=0,t=Object.keys(e);n<t.length;n++){var r=t[n];if("secondaryBidders"!==r&&"suppressStaleRender"!==r)return(0,c.logWarn)("Auction Options given an incorrect param: ".concat(r)),!1;if("secondaryBidders"===r){if(!(0,c.isArray)(e[r]))return(0,c.logWarn)("Auction Options ".concat(r," must be of type Array")),!1;if(!e[r].every(c.isStr))return(0,c.logWarn)("Auction Options ".concat(r," must be only string")),!1}else if("suppressStaleRender"===r&&!(0,c.isBoolean)(e[r]))return(0,c.logWarn)("Auction Options ".concat(r," must be of type boolean")),!1}return!0})(e)&&i("auctionOptions",e)}}},d={debug:l,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,timeoutBuffer:400,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3};function f(e){return(0,u.sE)(Object.keys(m),(function(n){return e===m[n]}))}function g(e){if(!e)return(0,c.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)f(e)||(0,c.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,c.isPlainObject)(e)&&!(0,a.t)(e))return(0,c.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}Object.defineProperties(d,Object.fromEntries(Object.entries(s).map((function(e){var n=(0,o.Z)(e,2),t=n[0],a=n[1];return[t,Object.assign({get:r.bind(null,t),set:i.bind(null,t),enumerable:!0},a)]})))),n&&R(Object.keys(n).reduce((function(e,t){return n[t]!==d[t]&&(e[t]=d[t]||{}),e}),{})),n=d,t={}}function y(){if(g&&t&&(0,c.isPlainObject)(t[g])){var e=t[g],r=new Set(Object.keys(n).concat(Object.keys(e)));return(0,u.Oc)(r).reduce((function(t,r){return void 0===e[r]?t[r]=n[r]:void 0===n[r]?t[r]=e[r]:(0,c.isPlainObject)(e[r])?t[r]=(0,c.mergeDeep)({},n[r],e[r]):t[r]=e[r],t}),{})}return Object.assign({},n)}var E=[y,function(){var e=y();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map((function(e){return function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var n=arguments.length<=0?void 0:arguments[0];return n?(0,s.Z)(e(),n):y()}return k.apply(void 0,arguments)}})),w=(0,o.Z)(E,2),T=w[0],I=w[1],A=[I,T].map((function(e){return function(){var n=e.apply(void 0,arguments);return n&&"object"===(0,i.Z)(n)&&(n=(0,c.deepClone)(n)),n}})),C=(0,o.Z)(A,2),O=C[0],S=C[1];function B(t){if((0,c.isPlainObject)(t)){var r=Object.keys(t),i={};r.forEach((function(r){var o=t[r];(0,c.isPlainObject)(e[r])&&(0,c.isPlainObject)(o)&&(o=Object.assign({},e[r],o));try{i[r]=n[r]=o}catch(e){(0,c.logWarn)("Cannot set config for property ".concat(r," : "),e)}})),R(i)}else(0,c.logError)("setConfig options must be an object")}function k(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n;if("string"!=typeof e&&(i=e,e=h,t=n||{}),"function"==typeof i){var o={topic:e,callback:i};return d.push(o),t.init&&i(e===h?I():(0,r.Z)({},e,I(e))),function(){d.splice(d.indexOf(o),1)}}(0,c.logError)("listener must be a function")}function R(e){var n=Object.keys(e);d.filter((function(e){return(0,u.q9)(n,e.topic)})).forEach((function(n){n.callback((0,r.Z)({},n.topic,e[n.topic]))})),d.filter((function(e){return e.topic===h})).forEach((function(n){return n.callback(e)}))}function D(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{r(e),e.bidders.forEach((function(r){t[r]||(t[r]={}),Object.keys(e.config).forEach((function(i){var o=e.config[i];if((0,c.isPlainObject)(o)){var a=n?c.mergeDeep:Object.assign;t[r][i]=a({},t[r][i]||{},o)}else t[r][i]=o}))}))}catch(e){(0,c.logError)(e)}function r(e){if(!(0,c.isPlainObject)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,c.isPlainObject)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function j(e,n){g=e;try{return n()}finally{U()}}function U(){g=null}return b(),{getCurrentBidder:function(){return g},resetBidder:U,getConfig:I,getAnyConfig:T,readConfig:O,readAnyConfig:S,setConfig:B,mergeConfig:function(e){if((0,c.isPlainObject)(e)){var n=(0,c.mergeDeep)(y(),e);return B(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},n)),n}(0,c.logError)("mergeConfig input must be an object")},setDefaults:function(t){(0,c.isPlainObject)(e)?(Object.assign(e,t),Object.assign(n,t)):(0,c.logError)("defaults must be an object")},resetConfig:b,runWithBidder:j,callbackWithBidder:function(e){return function(n){return function(){if("function"==typeof n){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return j(e,n.bind.apply(n,[this].concat(r)))}(0,c.logWarn)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:D,getBidderConfig:function(){return t},mergeBidderConfig:function(e){return D(e,!0)}}}()},34516:function(e,n,t){t.d(n,{$P:function(){return E},Lw:function(){return w},NO:function(){return L},TJ:function(){return Z},VP:function(){return M},nX:function(){return x},qh:function(){return W},rp:function(){return N}});var r=t(70885),i=t(97326),o=t(60136),a=t(82963),u=t(61120),c=t(15671),s=t(43144),d=t(4942),f=t(86033),l=t(13092),g=t(64358),v=t(68792),p=t(3193);function m(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,u.Z)(e);if(n){var i=(0,u.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,a.Z)(this,t)}}function h(e,n,t){b(e,n),n.set(e,t)}function b(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,n,t){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var E=Object.freeze({}),w=Object.freeze({}),T=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,O=new WeakMap,S=new WeakMap,B=new WeakSet,k=function(){function e(){var n,t;(0,c.Z)(this,e),b(n=this,t=B),t.add(n),h(this,T,{writable:!0,value:void 0}),h(this,I,{writable:!0,value:void 0}),h(this,A,{writable:!0,value:void 0}),h(this,C,{writable:!0,value:void 0}),h(this,O,{writable:!0,value:!0}),h(this,S,{writable:!0,value:void 0}),(0,d.Z)(this,"generatedTime",void 0),(0,d.Z)(this,"hashFields",void 0),this.reset()}return(0,s.Z)(e,[{key:"reset",value:function(){(0,l.Z)(this,A,(0,v.P)()),(0,l.Z)(this,T,!1),(0,l.Z)(this,I,null),(0,l.Z)(this,C,!1),this.generatedTime=null}},{key:"enable",value:function(){(0,l.Z)(this,T,!0)}},{key:"enabled",get:function(){return(0,f.Z)(this,T)}},{key:"ready",get:function(){return(0,f.Z)(this,C)}},{key:"promise",get:function(){return(0,f.Z)(this,C)?v.Z.resolve((0,f.Z)(this,I)):((0,f.Z)(this,T)||y(this,B,R).call(this,null),(0,f.Z)(this,A).promise)}},{key:"setConsentData",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,g.timestamp)();this.generatedTime=n,(0,l.Z)(this,O,!0),y(this,B,R).call(this,e)}},{key:"getConsentData",value:function(){return(0,f.Z)(this,I)}},{key:"hash",get:function(){var e=this;return(0,f.Z)(this,O)&&((0,l.Z)(this,S,(0,g.cyrb53Hash)(JSON.stringify((0,f.Z)(this,I)&&this.hashFields?this.hashFields.map((function(n){return(0,f.Z)(e,I)[n]})):(0,f.Z)(this,I)))),(0,l.Z)(this,O,!1)),(0,f.Z)(this,S)}}]),e}();function R(e){(0,l.Z)(this,C,!0),(0,l.Z)(this,I,e),(0,f.Z)(this,A).resolve(e)}var D=function(e){(0,o.Z)(t,e);var n=m(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,s.Z)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(k),j=function(e){(0,o.Z)(t,e);var n=m(t);function t(){var e;(0,c.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),(0,d.Z)((0,i.Z)(e),"hashFields",["gdprApplies","consentString"]),e}return(0,s.Z)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,g.isStr)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}}]),t}(k),U=function(e){(0,o.Z)(t,e);var n=m(t);function t(){var e;(0,c.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),(0,d.Z)((0,i.Z)(e),"hashFields",["applicableSections","gppString"]),e}return(0,s.Z)(t,[{key:"getConsentMeta",value:function(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}}]),t}(k);var P,_,q,N=new j,x=new D,Z=new U,M=function(){function e(){return!!p.vc.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset:function(){},get promise(){return v.Z.resolve(e())},get hash(){return e()?"1":"0"}}}(),W=(P={},_={},q={},{register:function(e,n,t){t&&((P[n]=P[n]||{})[e]=t,_.hasOwnProperty(n)?_[n]!==t&&(_[n]=q):_[n]=t)},get:function(e){var n={modules:P[e]||{}};return _.hasOwnProperty(e)&&_[e]!==q&&(n.gvlid=_[e]),n}}),F={gdpr:N,usp:x,gpp:Z,coppa:M};var L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;function n(n){return function(){return Object.fromEntries(e.map((function(e){var t=(0,r.Z)(e,2);return[t[0],t[1][n]()]})))}}return e=Object.entries(e),Object.assign({get promise(){return v.Z.all(e.map((function(e){var n=(0,r.Z)(e,2),t=n[0];return n[1].promise.then((function(e){return[t,e]}))}))).then((function(e){return Object.fromEntries(e)}))},get hash(){return(0,g.cyrb53Hash)(e.map((function(e){var n=(0,r.Z)(e,2);n[0];return n[1].hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((function(e){return[e,n(e)]}))))}()},62200:function(e,n,t){t.d(n,{FP:function(){return a},FY:function(){return l},Gw:function(){return p},Q_:function(){return o},Ql:function(){return s},TD:function(){return d},UE:function(){return v},V1:function(){return m},X3:function(){return E},aI:function(){return c},f:function(){return i},k2:function(){return r},kF:function(){return f},oF:function(){return b},os:function(){return g},q_:function(){return u},s$:function(){return h},zA:function(){return y}});var r={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"},i="pbjs_debug",o={GOOD:1},a={AUCTION_INIT:"auctionInit",AUCTION_TIMEOUT:"auctionTimeout",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",SEAT_NON_BID:"seatNonBid",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",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted"},u={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},c={bidWon:"adUnitCode"},s={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},d={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",ACAT:"hb_acat",CRID:"hb_crid",DSP:"hb_dsp"},f={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"},l={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"},g={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},v={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},p={INVALID:"Bid has missing or invalid properties",INVALID_REQUEST_ID:"Invalid request ID",BIDDER_DISALLOWED:"Bidder code is not allowed by allowedAlternateBidderCodes / allowUnknownBidderCodes",FLOOR_NOT_MET:"Bid does not meet price floor",CANNOT_CONVERT_CURRENCY:"Unable to convert currency",DSA_REQUIRED:"Bid does not provide required DSA transparency info",DSA_MISMATCH:"Bid indicates inappropriate DSA rendering method",PRICE_TOO_HIGH:"Bid price exceeds maximum value"},m={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},h={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},b={ICON:1,MAIN:3},y=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],E={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"}},56463:function(e,n,t){t.d(n,{D:function(){return f},t:function(){return g}});var r=t(34614),i=t(64358),o=t(3193),a={buckets:[{max:5,increment:.5}]},u={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},s={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},d={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":l(e,a,t),med:""===r?"":l(e,u,t),high:""===r?"":l(e,c,t),auto:""===r?"":l(e,d,t),dense:""===r?"":l(e,s,t),custom:""===r?"":l(e,n,t)}}function l(e,n,t){var a="";if(!g(n))return a;var u=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),c=0,s=(0,r.sE)(n.buckets,(function(n){if(e>u.max*t){var r=n.precision;void 0===r&&(r=2),a=(n.max*t).toFixed(r)}else{if(e<=n.max*t&&e>=c*t)return n.min=c,n;c=n.max}}));return s&&(a=function(e,n,t){var r=void 0!==n.precision?n.precision:2,a=n.increment*t,u=n.min*t,c=Math.floor,s=o.vc.getConfig("cpmRoundingFunction");"function"==typeof s&&(c=s);var d,f,l=Math.pow(10,r+2),g=(e*l-u*l)/(a*l);try{d=c(g)*a+u}catch(e){f=!0}(f||"number"!=typeof d)&&((0,i.logWarn)("Invalid rounding function passed in config"),d=Math.floor(g)*a+u);return(d=Number(d.toFixed(10))).toFixed(r)}(e,s,t)),a}function g(e){if((0,i.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(n=!1)})),n}},88099:function(e,n,t){t.d(n,{W:function(){return c},m:function(){return u}});var r,i=t(68792),o=t(64358),a=t(68304),u=(0,t(92797).z3)("sync",(function(e){return a._})),c=(r={},function(e){var n=u(e);return r.hasOwnProperty(n)||(r[n]=new i.Z((function(e){var t=(0,o.createInvisibleIframe)();t.srcdoc="<script>".concat(n,"<\/script>"),t.onload=function(){return e(t.contentWindow.render)},document.body.appendChild(t)}))),r[n]})},53777:function(e,n,t){t.d(n,{Jc:function(){return d},dF:function(){return p}});var r=t(3193),i=t(92797),o=t(78640),a=t(64358),u=t(69626),c=t(55730),s=t(68792),d="__pbjs_debugging__";function f(){return(0,o.R)().installedModules.includes("debugging")}function l(e){return new s.Z((function(n){(0,c.B)(e,"debugging",n)}))}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.alreadyInstalled,t=void 0===n?f:n,c=e.script,g=void 0===c?l:c,v=null;return function(){return null==v&&(v=new s.Z((function(e,n){setTimeout((function(){if(t())e();else{var c="https://cdn.jsdelivr.net/npm/prebid.js@8.51.0/dist/debugging-standalone.js";(0,a.logMessage)('Debugging module not installed, loading it from "'.concat(c,'"...')),(0,o.R)()._installDebugging=!0,g(c).then((function(){(0,o.R)()._installDebugging({DEBUG_KEY:d,hook:i.z3,config:r.vc,createBid:u.m,logger:(0,a.prefixLog)("DEBUG:")})})).then(e,n)}}))}))),v}}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.load,t=void 0===n?g():n,r=e.hook,o=void 0===r?(0,i.v5)("requestBids"):r,a=null,u=!1;function c(e){for(var n=this,t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return(a||s.Z.resolve()).then((function(){return e.apply(n,r)}))}function d(){u||(a=t(),o.before(c,99),u=!0)}function f(){o.getHooks({hook:c}).remove(),u=!1}function l(){a=null,f()}return{enable:d,disable:f,reset:l}}();v.reset;function p(){var e=null;try{e=window.sessionStorage}catch(e){}if(null!==e){var n=v,t=null;try{t=e.getItem(d)}catch(e){}null!==t&&n.enable()}}r.vc.getConfig("debugging",(function(e){var n=e.debugging;null!=n&&n.enabled?v.enable():v.disable()}))},52021:function(e,n,t){t.r(n),t.d(n,{addEvents:function(){return E},clearEvents:function(){return T},emit:function(){return y},get:function(){return h},getEvents:function(){return b},has:function(){return w},off:function(){return m},on:function(){return p}});var r=t(64358),i=t(62200),o=t(10613),a=t(3193),u="eventHistoryTTL",c=null,s=(0,o.Z)({monotonic:!0,ttl:function(){return c}});a.vc.getConfig(u,(function(e){var n,t=c;e=null===(n=e)||void 0===n?void 0:n[u],t!==(c="number"==typeof e?1e3*e:null)&&s.refresh()}));var d=Array.prototype.slice,f=Array.prototype.push,l=Object.values(i.FP),g=i.aI,v=function(){var e={},n={};function t(n,t){r.logMessage("Emitting event for: "+n);var i=t[0]||{},o=i[g[n]],a=e[n]||{que:[]},u=Object.keys(a),c=[];s.add({eventType:n,args:i,id:o,elapsedTime:r.getPerformanceNow()}),o&&u.includes(o)&&f.apply(c,a[o].que),f.apply(c,a.que),(c||[]).forEach((function(e){if(e)try{e.apply(null,t)}catch(e){r.logError("Error executing handler:","events.js",e,n)}}))}function i(e){return l.includes(e)}return n.has=i,n.on=function(n,t,o){if(i(n)){var a=e[n]||{que:[]};o?(a[o]=a[o]||{que:[]},a[o].que.push(t)):a.que.push(t),e[n]=a}else r.logError("Wrong event name : "+n+" Valid event names :"+l)},n.emit=function(e){var n=d.call(arguments,1);t(e,n)},n.off=function(n,t,i){var o=e[n];r.isEmpty(o)||r.isEmpty(o.que)&&r.isEmpty(o[i])||i&&(r.isEmpty(o[i])||r.isEmpty(o[i].que))||(i?(o[i].que||[]).forEach((function(e){var n=o[i].que;e===t&&n.splice(n.indexOf(e),1)})):(o.que||[]).forEach((function(e){var n=o.que;e===t&&n.splice(n.indexOf(e),1)})),e[n]=o)},n.get=function(){return e},n.addEvents=function(e){l=l.concat(e)},n.getEvents=function(){return s.toArray().map((function(e){return Object.assign({},e)}))},n}();r._setEventEmitter(v.emit.bind(v));var p=v.on,m=v.off,h=v.get,b=v.getEvents,y=v.emit,E=v.addEvents,w=v.has;function T(){s.clear()}},54078:function(e,n,t){t.d(n,{S:function(){return C}});var r=t(70885),i=t(92797),o=t(25102),a=t(38196),u=t(64358),c=t(96475),s=t(3193),d=t(68792),f=["architecture","bitness","model","platformVersion","fullVersionList"],l=["brands","mobile","platform"],g=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,t=n&&l.some((function(e){return void 0!==n[e]}))?Object.freeze(p(1,n)):null;return function(){return t}}(),v=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,t={},r=new WeakMap;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;if(!r.has(e)){var i=Array.from(e);i.sort(),r.set(e,i.join("|"))}var o=r.get(e);if(!t.hasOwnProperty(o))try{t[o]=n.getHighEntropyValues(e).then((function(e){return(0,u.isEmpty)(e)?null:Object.freeze(p(2,e))})).catch((function(){return null}))}catch(e){t[o]=d.Z.resolve(null)}return t[o]}}();function p(e,n){function t(e,n){var t={brand:e};return(0,u.isStr)(n)&&!(0,u.isEmptyStr)(n)&&(t.version=n.split(".")),t}var r={source:e};return n.platform&&(r.platform=t(n.platform,n.platformVersion)),(n.fullVersionList||n.brands)&&(r.browsers=(n.fullVersionList||n.brands).map((function(e){return t(e.brand,e.version)}))),void 0!==n.mobile&&(r.mobile=n.mobile?1:0),["model","bitness","architecture"].forEach((function(e){var t=n[e];(0,u.isStr)(t)&&(r[e]=t)})),r}var m=t(83790),h=t(50571),b=t(10286),y=t(74947),E=t(9633);function w(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return T(e,n);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 T(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var I={getRefererInfo:o.nH,findRootDomain:a.W,getWindowTop:u.getWindowTop,getWindowSelf:u.getWindowSelf,getHighEntropySUA:v,getLowEntropySUA:g},A=(0,m.A_)("FPD"),C=(0,i.z3)("sync",(function(e){var n,t=[e,(n=s.vc.getConfig("firstPartyData.uaHints"),Array.isArray(n)&&0!==n.length?I.getHighEntropySUA(n):d.Z.resolve(I.getLowEntropySUA())).catch((function(){return null})),d.Z.resolve("cookieDeprecationLabel"in navigator&&(0,h.xD)(y.S1,(0,b.T)(E.wu,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch((function(){return null}))];return d.Z.all(t).then((function(e){var n=(0,r.Z)(e,3),t=n[0],i=n[1],o=n[2],a=I.getRefererInfo();if(function(e){["app","site","device"].forEach((function(n){var t=s.vc.getConfig(n);null!=t&&(e[n]=(0,u.mergeDeep)({},t,e[n]))}))}(t),Object.entries(B).forEach((function(e){var n=(0,r.Z)(e,2),i=n[0],o=(0,n[1])(t,a);o&&Object.keys(o).length>0&&(t[i]=(0,u.mergeDeep)({},o,t[i]))})),i&&(0,c.N)(t,"device.sua",Object.assign({},i,t.device.sua)),o){var d={cdep:o};(0,c.N)(t,"device.ext",Object.assign({},d,t.device.ext))}t=A(t);var f,l=w(m.Iq);try{for(l.s();!(f=l.n()).done;){var g=f.value;if((0,m.Qg)(t,g)){t[g]=(0,u.mergeDeep)({},k(t,a),t[g]);break}}}catch(e){l.e(e)}finally{l.f()}return t}))}));function O(e){try{return e(I.getWindowTop())}catch(n){return e(I.getWindowSelf())}}function S(e){return(0,u.getDefinedParams)(e,Object.keys(e))}var B={site:function(e,n){if(!m.Iq.filter((function(e){return"site"!==e})).some(m.Qg.bind(null,e)))return S({page:n.page,ref:n.ref})},device:function(){return O((function(e){var n,t={w:e.innerWidth||e.document.documentElement.clientWidth||e.document.body.clientWidth,h:e.innerHeight||e.document.documentElement.clientHeight||e.document.body.clientHeight,dnt:(0,u.getDNT)()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift()};return null!==(n=e.navigator)&&void 0!==n&&n.webdriver&&(0,c.N)(t,"ext.webdriver",!0),t}))},regs:function(){var e={};O((function(e){return e.navigator.globalPrivacyControl}))&&(0,c.N)(e,"ext.gpc",1);var n=s.vc.getConfig("coppa");return"boolean"==typeof n&&(e.coppa=n?1:0),e}};function k(e,n){var t,r,i,a=(0,o.hh)(n.page,{noLeadingWww:!0});return S({domain:a,keywords:null===(t=O((function(e){return e.document.querySelector("meta[name='keywords']")})))||void 0===t||null===(r=t.content)||void 0===r||null===(i=r.replace)||void 0===i?void 0:i.call(r,/\s/g,""),publisher:S({domain:I.findRootDomain(a)})})}},83790:function(e,n,t){t.d(n,{A_:function(){return o},Iq:function(){return i},Qg:function(){return a}});var r=t(64358),i=["dooh","app","site"];function o(e){return function(n){return i.reduce((function(t,i){return a(n,i)&&(null!=t?((0,r.logWarn)("".concat(e," specifies both '").concat(t,"' and '").concat(i,"'; dropping the latter.")),delete n[i]):t=i),t}),null),n}}function a(e,n){return null!=e[n]&&Object.keys(e[n]).length>0}},38196:function(e,n,t){t.d(n,{W:function(){return o}});var r=t(64358),i=(0,t(15164).eA)("fpdEnrichment"),o=(0,r.memoize)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!i.cookiesAreEnabled())return e;var n,t,o=e.split(".");if(2===o.length)return e;var a=-2,u="_rdc".concat(Date.now()),c="writeable";do{n=o.slice(a).join(".");var s=new Date((0,r.timestamp)()+1e4).toUTCString();i.setCookie(u,c,s,"Lax",n,void 0);var d=i.getCookie(u,void 0);d===c?(t=!1,i.setCookie(u,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(a+=-1,t=Math.abs(a)<=o.length)}while(t);return n}))},92797:function(e,n,t){t.d(n,{Bx:function(){return v},Cd:function(){return s},IF:function(){return p},bA:function(){return g},o0:function(){return f},v5:function(){return d},z3:function(){return u}});var r=t(42982),i=t(81432),o=t.n(i),a=t(68792),u=o()({ready:o().SYNC|o().ASYNC|o().QUEUE}),c=(0,a.P)();u.ready=function(){var e=u.ready;return function(){try{return e.apply(u,arguments)}finally{c.resolve()}}}();var s=c.promise,d=u.get;function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,r=e.getHooks({hook:n});0===r.length&&e.before(n,t)}var l={};function g(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.postInstallAllowed,o=void 0!==i&&i;u("async",(function(t){t.forEach((function(e){return n.apply(void 0,(0,r.Z)(e))})),o&&(l[e]=n)}),e)([])}function v(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var i=l[e];if(i)return i.apply(void 0,t);d(e).before((function(e,n){n.push(t),e(n)}))}function p(e,n){return Object.defineProperties(n,Object.fromEntries(["before","after","getHooks","removeAll"].map((function(n){return[n,{get:function(){return e[n]}}]})))),n}},24679:function(e,n,t){t.d(n,{B5:function(){return r},Mk:function(){return o},Oh:function(){return a},pX:function(){return i}});var r="native",i="video",o="banner",a="adpod"},70059:function(e,n,t){t.d(n,{FB:function(){return L},Fb:function(){return B},JL:function(){return M},Sg:function(){return y},Ur:function(){return P},a$:function(){return q},e6:function(){return j},eK:function(){return Z},kH:function(){return U},lY:function(){return G},r4:function(){return R},ub:function(){return O},xc:function(){return E},zq:function(){return V}});var r=t(42982),i=t(70885),o=t(4942),a=t(71002),u=t(20265),c=t(64358),s=t(34614),d=t(78653),f=t(62200),l=t(24679),g=t(13667),v=t(88099);function p(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return m(e,n);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 m(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=[],E=Object.keys(f.FY).map((function(e){return f.FY[e]})),w={image:{ortb:{ver:"1.2",assets:[{required:1,id:1,img:{type:3,wmin:100,hmin:100}},{required:1,id:2,title:{len:140}},{required:1,id:3,data:{type:1}},{required:0,id:4,data:{type:2}},{required:0,id:5,img:{type:1,wmin:20,hmin:20}}]},image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}},T=J(f.V1),I=J(f.s$),A={img:1,js:2,1:"img",2:"js"},C=1;function O(e){return e.native&&"object"===(0,a.Z)(e.native)}function S(e){if(e&&e.type&&function(e){if(!e||!(0,s.q9)(Object.keys(w),e))return(0,c.logError)("".concat(e," nativeParam is not supported")),!1;return!0}(e.type)&&(e=w[e.type]),!e||!e.ortb||k(e.ortb))return e}function B(e){e.forEach((function(e){var n=e.nativeParams||(0,u.Z)(e,"mediaTypes.native");n&&(e.nativeParams=S(n)),e.nativeParams&&(e.nativeOrtbRequest=e.nativeParams.ortb||L(e.nativeParams))}))}function k(e){var n=e.assets;if(!Array.isArray(n)||0===n.length)return(0,c.logError)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",n),!1;var t=n.map((function(e){return e.id}));return n.length!==new Set(t).size||t.some((function(e){return e!==parseInt(e,10)}))?((0,c.logError)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):e.hasOwnProperty("eventtrackers")&&!Array.isArray(e.eventtrackers)?((0,c.logError)("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):n.every((function(e){return function(e){if(!(0,c.isPlainObject)(e))return(0,c.logError)("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!(0,c.isNumber)(e.img.w)&&!(0,c.isNumber)(e.img.wmin))return(0,c.logError)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,c.isNumber)(e.img.h)&&!(0,c.isNumber)(e.img.hmin))return(0,c.logError)("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!(0,c.isNumber)(e.title.len))return(0,c.logError)("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!(0,c.isNumber)(e.data.type))return(0,c.logError)("for data asset 'type' property must be a number"),!1}else if(e.video&&!(Array.isArray(e.video.mimes)&&Array.isArray(e.video.protocols)&&(0,c.isNumber)(e.video.minduration)&&(0,c.isNumber)(e.video.maxduration)))return(0,c.logError)("video asset is not properly configured"),!1;return!0}(e)}))}function R(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?d.K.index:r,o=i.getAdUnit(e);if(!o)return!1;var a=o.nativeOrtbRequest,u=(null===(n=e.native)||void 0===n?void 0:n.ortb)||K(e.native,a);return D(u,a)}function D(e,n){if(!(0,u.Z)(e,"link.url"))return(0,c.logError)("native response doesn't have 'link' property. Ortb response: ",e),!1;var t=n.assets.filter((function(e){return 1===e.required})).map((function(e){return e.id})),r=e.assets.map((function(e){return e.id})),i=t.every((function(e){return(0,s.q9)(r,e)}));return i||(0,c.logError)("didn't receive a bid with all required assets. Required ids: ".concat(t,", but received ids in response: ").concat(r)),i}function j(e,n){var t=n.native.ortb||H(n.native);return"click"===e.action?function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetchURL,r=void 0===t?c.triggerPixel:t;if(n){var i,o=(e.assets||[]).filter((function(e){return e.link})).reduce((function(e,n){return e[n.id]=n.link,e}),{}),a=(null===(i=e.link)||void 0===i?void 0:i.clicktrackers)||[],u=o[n],s=a;u&&(s=u.clicktrackers||[]),s.forEach((function(e){return r(e)}))}else{var d;((null===(d=e.link)||void 0===d?void 0:d.clicktrackers)||[]).forEach((function(e){return r(e)}))}}(t,null==e?void 0:e.assetId):function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.runMarkup,r=void 0===t?function(e){return(0,c.insertHtmlIntoIframe)(e)}:t,i=n.fetchURL,o=void 0===i?c.triggerPixel:i,a=(e.eventtrackers||[]).filter((function(e){return e.event===C})).reduce((function(e,n){return A.hasOwnProperty(n.method)&&e[A[n.method]].push(n.url),e}),{img:[],js:[]}),u=a.img,s=a.js;e.imptrackers&&(u=u.concat(e.imptrackers));u.forEach((function(e){return o(e)})),s=s.map((function(e){return'<script async src="'.concat(e,'"><\/script>')})),e.jstracker&&(s=s.concat([e.jstracker]));s.length&&r(s.join("\n"))}(t),e.action}function U(e,n){var t,r=null==n?void 0:n.nativeOrtbRequest,i=null===(t=e.native)||void 0===t?void 0:t.ortb;if(r&&i){var o=V(i,r);Object.assign(e.native,o)}["rendererUrl","adTemplate"].forEach((function(t){var r,i=null==n||null===(r=n.nativeParams)||void 0===r?void 0:r[t];i&&(e.native[t]=W(i))}))}function P(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?d.K.index:t,i={},o=r.getAdUnit(e),a=!1!==(0,u.Z)(o,"nativeParams.sendTargetingKeys"),c=F(o),s=b(b({},e.native),e.native.ext);return delete s.ext,Object.keys(s).forEach((function(n){var t=c[n],r=W(e.native[n])||W((0,u.Z)(e,"native.ext.".concat(n)));if("adTemplate"!==n&&t&&r){var s=(0,u.Z)(o,"nativeParams.".concat(n,".sendId"));if("boolean"!=typeof s&&(s=(0,u.Z)(o,"nativeParams.ext.".concat(n,".sendId"))),s)r="".concat(t,":").concat(e.adId);var d=(0,u.Z)(o,"nativeParams.".concat(n,".sendTargetingKeys"));"boolean"!=typeof d&&(d=(0,u.Z)(o,"nativeParams.ext.".concat(n,".sendTargetingKeys"))),("boolean"==typeof d?d:a)&&(i[t]=r)}})),i}function _(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return Object.entries(e).filter((function(e){var r=(0,i.Z)(e,2),o=r[0];return r[1]&&(!1===t&&"ext"===o||null==n||n.includes(o))})).forEach((function(e){var a=(0,i.Z)(e,2),u=a[0],c=a[1];!1===t&&"ext"===u?o.push.apply(o,(0,r.Z)(_(c,n,!0))):(t||f.FY.hasOwnProperty(u))&&o.push({key:u,value:W(c)})})),o}function q(e,n,t){var r,i,o=b(b({},(0,c.getDefinedParams)(e.native,["rendererUrl","adTemplate"])),{},{assets:_(e.native,t),nativeKeys:f.FY});return e.native.ortb?o.ortb=e.native.ortb:null!==(r=n.mediaTypes)&&void 0!==r&&null!==(i=r.native)&&void 0!==i&&i.ortb&&(o.ortb=K(e.native,n.nativeOrtbRequest)),o}function N(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.index,o=void 0===i?d.K.index:i,a={message:"assetResponse",adId:e.adId},u=(0,g.Lj)(n).native;return u?(a.native=Object.assign({},u),a.renderer=(0,v.m)(n),null!=t&&(u.assets=u.assets.filter((function(e){var n=e.key;return t.includes(n)})))):u=q(n,o.getAdUnit(n),t),Object.assign(a,u)}var x=Object.fromEntries(Object.entries(f.FY).map((function(e){var n=(0,i.Z)(e,2),t=n[0];return[n[1],t]})));function Z(e,n){var t=e.assets.map((function(e){return x[e]}));return N(e,n,t)}function M(e,n){return N(e,n,null)}function W(e){return(null==e?void 0:e.url)||e}function F(e){var n={};return(0,u.Z)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((function(e){n[e]="hb_native_".concat(e)})),b(b({},f.FY),n)}function L(e){if(e||(0,c.isPlainObject)(e)){var n={ver:"1.2",assets:[]};for(var t in e)if(!f.zA.includes(t))if(f.FY.hasOwnProperty(t))if("privacyLink"!==t){var r=e[t],i=0;r.required&&(0,c.isBoolean)(r.required)&&(i=Number(r.required));var o={id:n.assets.length,required:i};if(t in f.V1)o.data={type:f.s$[f.V1[t]]},r.len&&(o.data.len=r.len);else if("icon"===t||"image"===t){if(o.img={type:"icon"===t?f.oF.ICON:f.oF.MAIN},r.aspect_ratios)if((0,c.isArray)(r.aspect_ratios))if(r.aspect_ratios.length){var a=r.aspect_ratios[0],u=a.min_width,s=a.min_height;(0,c.isInteger)(u)&&(0,c.isInteger)(s)?(o.img.wmin=u,o.img.hmin=s):(0,c.logError)("image.aspect_ratios min_width or min_height are invalid: ",u,s);var d=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)}));d.length>0&&(o.img.ext={aspectratios:d})}else(0,c.logError)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,c.logError)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,c.isInteger)(r.sizes[0])&&(0,c.isInteger)(r.sizes[1])?(o.img.w=r.sizes[0],o.img.h=r.sizes[1],delete o.img.hmin,delete o.img.wmin):(0,c.logError)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===t?o.title={len:r.len||140}:"ext"===t&&(o.ext=r,delete o.required);n.assets.push(o)}else n.privacy=1;else(0,c.logError)("Unrecognized native asset code: ".concat(t,". Asset will be ignored."));return n}(0,c.logError)("Native assets object is empty or not an object: ",e)}function z(e){if(k(e)){var n,t={},r=p(e.assets);try{var i=function(){var r=n.value;if(r.title){var i={required:!!r.required&&Boolean(r.required),len:r.title.len};t.title=i}else if(r.img){var o={required:!!r.required&&Boolean(r.required)};if(r.img.w&&r.img.h)o.sizes=[r.img.w,r.img.h];else if(r.img.wmin&&r.img.hmin){var a=function(e,n){for(;e&&n&&e!==n;)e>n?e-=n:n-=e;return e||n}(r.img.wmin,r.img.hmin);o.aspect_ratios=[{min_width:r.img.wmin,min_height:r.img.hmin,ratio_width:r.img.wmin/a,ratio_height:r.img.hmin/a}]}r.img.type===f.oF.MAIN?t.image=o:t.icon=o}else if(r.data){var u=Object.keys(f.s$).find((function(e){return f.s$[e]===r.data.type})),c=Object.keys(f.V1).find((function(e){return f.V1[e]===u}));t[c]={required:!!r.required&&Boolean(r.required)},r.data.len&&(t[c].len=r.data.len)}e.privacy&&(t.privacyLink={required:!1})};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}return t}}function G(e){if(!e||!(0,c.isArray)(e))return e;if(!e.some((function(e){var n;return null===(n=((null==e?void 0:e.mediaTypes)||{})[l.B5])||void 0===n?void 0:n.ortb})))return e;var n,t=(0,c.deepClone)(e),r=p(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.mediaTypes&&i.mediaTypes[l.B5]&&i.mediaTypes[l.B5].ortb&&(i.mediaTypes[l.B5]=Object.assign((0,c.pick)(i.mediaTypes[l.B5],f.zA),z(i.mediaTypes[l.B5].ortb)),i.nativeParams=S(i.mediaTypes[l.B5]))}}catch(e){r.e(e)}finally{r.f()}return t}function H(e){var n={link:{},eventtrackers:[]};return Object.entries(e).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];switch(r){case"clickUrl":n.link.url=o;break;case"clickTrackers":n.link.clicktrackers=Array.isArray(o)?o:[o];break;case"impressionTrackers":(Array.isArray(o)?o:[o]).forEach((function(e){n.eventtrackers.push({event:C,method:A.img,url:e})}));break;case"javascriptTrackers":n.jstracker=Array.isArray(o)?o.join(""):o;break;case"privacyLink":n.privacy=o}})),n}function K(e,n){var t=b(b({},H(e)),{},{assets:[]});function r(e,r){var i=n.assets.find(e);null!=i&&(r(i=(0,c.deepClone)(i)),t.assets.push(i))}return Object.keys(e).filter((function(n){return!!e[n]})).forEach((function(n){var t=W(e[n]);switch(n){case"title":r((function(e){return null!=e.title}),(function(e){e.title={text:t}}));break;case"image":case"icon":var i="image"===n?f.oF.MAIN:f.oF.ICON;r((function(e){return null!=e.img&&e.img.type===i}),(function(e){e.img={url:t}}));break;default:n in f.V1&&r((function(e){return null!=e.data&&e.data.type===f.s$[f.V1[n]]}),(function(e){e.data={value:t}}))}})),t}function V(e,n){var t={},i=(null==n?void 0:n.assets)||[];t.clickUrl=e.link.url,t.privacyLink=e.privacy;var o,a=p((null==e?void 0:e.assets)||[]);try{var u=function(){var e=o.value,n=i.find((function(n){return e.id===n.id}));e.title?t.title=e.title.text:e.img?t[n.img.type===f.oF.MAIN?"image":"icon"]={url:e.img.url,width:e.img.w,height:e.img.h}:e.data&&(t[T[I[n.data.type]]]=e.data.value)};for(a.s();!(o=a.n()).done;)u()}catch(e){a.e(e)}finally{a.f()}t.impressionTrackers=[];var c,s=[];e.imptrackers&&(c=t.impressionTrackers).push.apply(c,(0,r.Z)(e.imptrackers));var d,l=p((null==e?void 0:e.eventtrackers)||[]);try{for(l.s();!(d=l.n()).done;){var g=d.value;g.event===C&&g.method===A.img&&t.impressionTrackers.push(g.url),g.event===C&&g.method===A.js&&s.push(g.url)}}catch(e){l.e(e)}finally{l.f()}return s=s.map((function(e){return'<script async src="'.concat(e,'"><\/script>')})),null!=e&&e.jstracker&&s.push(e.jstracker),s.length&&(t.javascriptTrackers=s.join("\n")),t}function J(e){var n={};for(var t in e)n[e[t]]=t;return n}},26372:function(e,n,t){t.d(n,{DZ:function(){return a},Px:function(){return u},TP:function(){return s},YC:function(){return c},Z:function(){return o},f8:function(){return v},fP:function(){return p},gm:function(){return r},md:function(){return d}});var r=["request","imp","bidResponse","response"],i=["default","pbs"],o=r[0],a=r[1],u=r[2],c=r[3],s=i[0],d=i[1],f=new Set(r);var l,g=(l={},{registerOrtbProcessor:function(e){var n=e.type,t=e.name,i=e.fn,o=e.priority,a=void 0===o?0:o,u=e.dialects,c=void 0===u?[s]:u;if(!f.has(n))throw new Error("ORTB processor type must be one of: ".concat(r.join(", ")));c.forEach((function(e){l.hasOwnProperty(e)||(l[e]={}),l[e].hasOwnProperty(n)||(l[e][n]={}),l[e][n][t]={priority:a,fn:i}}))},getProcessors:function(e){return l[e]||{}}}),v=g.registerOrtbProcessor,p=g.getProcessors},34614:function(e,n,t){function r(e,n,t){return e&&e.includes(n,t)||!1}function i(){return Array.from.apply(Array,arguments)}function o(e,n,t){return e&&e.find(n,t)}function a(e,n,t){return e&&e.findIndex(n,t)}t.d(n,{Oc:function(){return i},cx:function(){return a},q9:function(){return r},sE:function(){return o}})},20327:function(e,n,t){t.d(n,{zh:function(){return Y},O5:function(){return ne},ew:function(){return ie}});var r,i=t(70885),o=t(4942),a=t(78640),u=t(64358),c=t(20265),s=t(96475),d=t(52021),f=t(70059),l=t(62200),g=t(78653),v=t(34614),p=t(13667),m=t(88099);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=l.X3.REQUEST,E=l.X3.RESPONSE,w=l.X3.NATIVE,T=l.X3.EVENT,I=l.FP.BID_WON,A=(r={},(0,o.Z)(r,y,(function(e,n,t){(0,p.XD)({renderFn:function(n){e(Object.assign({message:E,renderer:(0,m.m)(t)},n))},resizeFn:O(t),options:n.options,adId:n.adId,bidResponse:t})})),(0,o.Z)(r,T,(function(e,n,t){if(null==t)return void(0,u.logError)("Cannot find ad '".concat(n.adId,"' for x-origin event request"));if(t.status!==l.UE.RENDERED)return void(0,u.logWarn)("Received x-origin event request without corresponding render request for ad '".concat(t.adId,"'"));return(0,p.oc)(n,t)})),r);function C(e){var n=e.message?"message":"data",t={};try{t=JSON.parse(e[n])}catch(e){return}if(t&&t.adId&&t.message){var r=(0,v.sE)(g.K.getBidsReceived(),(function(e){return e.adId===t.adId}));A.hasOwnProperty(t.message)&&A[t.message](function(e){return null==e.origin&&0===e.ports.length?function(){var e="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw(0,u.logError)(e),new Error(e)}:e.ports.length>0?function(n){e.ports[0].postMessage(JSON.stringify(n))}:function(n){e.source.postMessage(JSON.stringify(n),e.origin)}}(e),t,r)}}function O(e){return function(n,t){!function(e){var n=e.adId,t=e.adUnitCode,r=e.width,i=e.height;function o(e){return e?e+"px":"100%"}function a(e){var r=c(n,t),i=document.getElementById(r);return i&&i.querySelector(e)}function c(e,n){return(0,u.isGptPubadsDefined)()?s(e):(0,u.isApnGetTagDefined)()?d(n):n}function s(e){var n=(0,v.sE)(window.googletag.pubads().getSlots(),(function(n){return(0,v.sE)(n.getTargetingKeys(),(function(t){return(0,v.q9)(n.getTargeting(t),e)}))}));return n?n.getSlotElementId():null}function d(e){var n=window.apntag.getTag(e);return n&&n.targetId}["div","iframe"].forEach((function(e){var n=a(e+':not([style*="display: none"])');if(n){var c=n.style;c.width=o(r),c.height=o(i)}else(0,u.logWarn)("Unable to locate matching page element for adUnitCode ".concat(t,".  Can't resize it to ad's dimensions.  Please review setup."))}))}(b(b({},e),{},{width:n,height:t}))}}Object.assign(A,(0,o.Z)({},w,(function(e,n,t){if(null==t)return void(0,u.logError)("Cannot find ad for x-origin event request: '".concat(n.adId,"'"));t.status!==l.UE.RENDERED&&(g.K.addWinningBid(t),d.emit(I,t));switch(n.action){case"assetRequest":e((0,f.eK)(n,t));break;case"allAssetRequest":e((0,f.JL)(n,t));break;default:(0,p.E$)(n,t,{resizeFn:O(t)})}})));var S=t(11974),B=t(3193),k=t(18621),R=t(92797),D=t(53777),j=t(69626),U=t(15164),P=t(93304),_=t(99128),q=t(68792),N=t(54078),x=t(34516),Z=t(31136),M=t(90154),W=(0,a.R)(),F=S.k_.triggerUserSyncs,L=l.FP.ADD_AD_UNITS,z=l.FP.REQUEST_BIDS,G=l.FP.SET_TARGETING,H={bidWon:function(e){if(!g.K.getBidsRequested().map((function(e){return e.bids.map((function(e){return e.adUnitCode}))})).reduce(u.flatten).filter(u.uniques).includes(e))return void(0,u.logError)('The "'+e+'" placement is not defined.');return!0}};function K(e,n){var t=[];return(0,u.isArray)(e)&&(n?e.length===n:e.length>0)&&(e.every((function(e){return(0,u.isArrayOfNums)(e,2)}))?t=e:(0,u.isArrayOfNums)(e,2)&&t.push(e)),t}function V(e){var n=(0,u.deepClone)(e),t=n.mediaTypes.banner,r=K(t.sizes);return r.length>0?(t.sizes=r,n.sizes=r):((0,u.logError)("Detected a mediaTypes.banner object without a proper sizes field.  Please ensure the sizes are listed like: [[300, 250], ...].  Removing invalid mediaTypes.banner object from request."),delete n.mediaTypes.banner),n}function J(e){var n=(0,u.deepClone)(e),t=n.mediaTypes.video;if(t.playerSize){var r="number"==typeof t.playerSize[0]?2:1,i=K(t.playerSize,r);i.length>0?(2===r&&(0,u.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),t.playerSize=i,n.sizes=i):((0,u.logError)("Detected incorrect configuration of mediaTypes.video.playerSize.  Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete n.mediaTypes.video.playerSize)}return n}function $(e){var n=(0,u.deepClone)(e),t=n.mediaTypes.native;if(t.ortb){var r=Object.keys(l.FY).filter((function(e){return l.FY[e].includes("hb_native_")})),i=Object.keys(t).filter((function(e){return r.includes(e)}));i.length>0&&((0,u.logError)("when using native OpenRTB format, you cannot use legacy native properties. Deleting ".concat(i," keys from request.")),i.forEach((function(e){return delete n.mediaTypes.native[e]})))}return t.image&&t.image.sizes&&!Array.isArray(t.image.sizes)&&((0,u.logError)("Please use an array of sizes for native.image.sizes field.  Removing invalid mediaTypes.native.image.sizes property from request."),delete n.mediaTypes.native.image.sizes),t.image&&t.image.aspect_ratios&&!Array.isArray(t.image.aspect_ratios)&&((0,u.logError)("Please use an array of sizes for native.image.aspect_ratios field.  Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete n.mediaTypes.native.image.aspect_ratios),t.icon&&t.icon.sizes&&!Array.isArray(t.icon.sizes)&&((0,u.logError)("Please use an array of sizes for native.icon.sizes field.  Removing invalid mediaTypes.native.icon.sizes property from request."),delete n.mediaTypes.native.icon.sizes),n}function Q(e,n){var t=(0,c.Z)(e,"mediaTypes.".concat(n,".pos"));if(!(0,u.isNumber)(t)||isNaN(t)||!isFinite(t)){var r="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");(0,u.logWarn)(r),d.emit(l.FP.AUCTION_DEBUG,{type:"WARNING",arguments:r}),delete e.mediaTypes[n].pos}return e}function X(e){var n=function(n){return"adUnit.code '".concat(e.code,"' ").concat(n)},t=e.mediaTypes,r=e.bids;return null==r||(0,u.isArray)(r)?null==r&&null==e.ortb2Imp?((0,u.logError)(n("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):t&&0!==Object.keys(t).length?(null==e.ortb2Imp||null!=r&&0!==r.length||(e.bids=[{bidder:null}],(0,u.logMessage)(n("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),e):((0,u.logError)(n("does not define a 'mediaTypes' object.  This is a required field for the auction, so this adUnit has been removed.")),null):((0,u.logError)(n("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}(0,D.dF)(),W.bidderSettings=W.bidderSettings||{},W.libLoaded=!0,W.version="v8.51.0",(0,u.logInfo)("Prebid.js v8.51.0 loaded"),W.installedModules=W.installedModules||[],W.adUnits=W.adUnits||[],W.triggerUserSyncs=F;var Y={validateAdUnit:X,validateBannerMediaType:V,validateSizes:K};Object.assign(Y,{validateNativeMediaType:$}),Object.assign(Y,{validateVideoMediaType:J});var ee,ne=(0,R.z3)("sync",(function(e){var n=[];return e.forEach((function(e){if(null!=(e=X(e))){var t,r,i,o=e.mediaTypes;o.banner&&(t=V(e),o.banner.hasOwnProperty("pos")&&(t=Q(t,"banner"))),o.video&&(r=J(t||e),o.video.hasOwnProperty("pos")&&(r=Q(r,"video"))),o.native&&(i=$(r||(t||e)));var a=Object.assign({},t,r,i);n.push(a)}})),n}),"checkAdUnitSetup");function te(e){e.forEach((function(e){return(0,M.cx)(e)}))}function re(e){var n=g.K[e]().filter((function(e){return g.K.getAdUnitCodes().includes(e.adUnitCode)})),t=g.K.getLastAuctionId();return n.map((function(e){return e.adUnitCode})).filter(u.uniques).map((function(e){return n.filter((function(n){return n.auctionId===t&&n.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return(0,o.Z)({},e[0].adUnitCode,{bids:e})})).reduce((function(e,n){return Object.assign(e,n)}),{})}W.getAdserverTargetingForAdUnitCodeStr=function(e){if((0,u.logInfo)("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var n=W.getAdserverTargetingForAdUnitCode(e);return(0,u.transformAdServerTargetingObj)(n)}(0,u.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},W.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var n=g.K.getAllBidsForAdUnitCode(e).filter(k.TL);return n.length?n.reduce(Z.ZH):{}}(0,u.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},W.getAdserverTargetingForAdUnitCode=function(e){return W.getAdserverTargeting(e)[e]},W.getAdserverTargeting=function(e){return(0,u.logInfo)("Invoking pbjs.getAdserverTargeting",arguments),k.q0.getAllTargeting(e)},W.getConsentMetadata=function(){return(0,u.logInfo)("Invoking pbjs.getConsentMetadata"),x.NO.getConsentMeta()},W.getNoBids=function(){return(0,u.logInfo)("Invoking pbjs.getNoBids",arguments),re("getNoBids")},W.getNoBidsForAdUnitCode=function(e){return{bids:g.K.getNoBids().filter((function(n){return n.adUnitCode===e}))}},W.getBidResponses=function(){return(0,u.logInfo)("Invoking pbjs.getBidResponses",arguments),re("getBidsReceived")},W.getBidResponsesForAdUnitCode=function(e){return{bids:g.K.getBidsReceived().filter((function(n){return n.adUnitCode===e}))}},W.setTargetingForGPTAsync=function(e,n){if((0,u.logInfo)("Invoking pbjs.setTargetingForGPTAsync",arguments),(0,u.isGptPubadsDefined)()){var t=k.q0.getAllTargeting(e);k.q0.resetPresetTargeting(e,n),k.q0.setTargetingForGPT(t,n),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){"hb_adid"===n&&g.K.setStatusForBids(t[e][n],l.UE.BID_TARGETING_SET)}))})),d.emit(G,t)}else(0,u.logError)("window.googletag is not defined on the page")},W.setTargetingForAst=function(e){(0,u.logInfo)("Invoking pbjs.setTargetingForAn",arguments),k.q0.isApntagDefined()?(k.q0.setTargetingForAst(e),d.emit(G,k.q0.getAllTargeting())):(0,u.logError)("window.apntag is not defined on the page")},W.renderAd=(0,R.z3)("async",(function(e,n,t){(0,u.logInfo)("Invoking pbjs.renderAd",arguments),(0,u.logMessage)("Calling renderAd with adId :"+n),(0,p.tV)(e,n,t)})),W.removeAdUnit=function(e){((0,u.logInfo)("Invoking pbjs.removeAdUnit",arguments),e)?((0,u.isArray)(e)?e:[e]).forEach((function(e){for(var n=W.adUnits.length-1;n>=0;n--)W.adUnits[n].code===e&&W.adUnits.splice(n,1)})):W.adUnits=[]},W.requestBids=(ee=(0,R.z3)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,o=e.adUnitCodes,a=e.labels,c=e.auctionId,s=e.ttlBuffer,f=e.ortb2,l=e.metrics,g=e.defer;d.emit(z);var p=t||B.vc.getConfig("bidderTimeout");(0,u.logInfo)("Invoking pbjs.requestBids",arguments),o&&o.length?r=r.filter((function(e){return(0,v.q9)(o,e.code)})):o=r&&r.map((function(e){return e.code}));var m={global:(0,u.mergeDeep)({},B.vc.getAnyConfig("ortb2")||{},f||{}),bidder:Object.fromEntries(Object.entries(B.vc.getBidderConfig()).map((function(e){var n=(0,i.Z)(e,2);return[n[0],n[1].ortb2]})).filter((function(e){var n=(0,i.Z)(e,2);return n[0],null!=n[1]})))};return(0,N.S)(q.Z.resolve(m.global)).then((function(e){return m.global=e,ie({bidsBackHandler:n,timeout:p,adUnits:r,adUnitCodes:o,labels:a,auctionId:c,ttlBuffer:s,ortb2Fragments:m,metrics:l,defer:g})}))}),"requestBids"),(0,R.IF)(ee,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.adUnits||W.adUnits;return e.adUnits=(0,u.isArray)(n)?n.slice():[n],e.metrics=(0,_.V6)(),e.metrics.checkpoint("requestBids"),e.defer=(0,q.P)({promiseFactory:function(e){return new Promise(e)}}),ee.call(this,e),e.defer.promise})));var ie=(0,R.z3)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,i=e.ttlBuffer,o=e.adUnitCodes,a=e.labels,c=e.auctionId,d=e.ortb2Fragments,f=e.metrics,l=e.defer,p=(0,P.uV)(B.vc.getConfig("s2sConfig")||[]);function m(e,t,r){if("function"==typeof n)try{n(e,t,r)}catch(e){(0,u.logError)("Error executing bidsBackHandler",null,e)}l.resolve({bids:e,timedOut:t,auctionId:r})}te(r),r=(0,_.Bf)(f).measureTime("requestBids.validate",(function(){return ne(r)}));var h={};if(r.forEach((function(e){var n,t,r=Object.keys(e.mediaTypes||{banner:"banner"}),o=e.bids.map((function(e){return e.bidder})),a=P.ZP.bidderRegistry,c=o.filter((function(e){return!p.has(e)}));e.adUnitId=(0,u.generateUUID)();var s=null===(n=e.ortb2Imp)||void 0===n||null===(t=n.ext)||void 0===t?void 0:t.tid;s&&(h.hasOwnProperty(e.code)?(0,u.logWarn)("Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '".concat(e.code,"'")):h[e.code]=s),null==i||e.hasOwnProperty("ttlBuffer")||(e.ttlBuffer=i),c.forEach((function(n){var t=a[n],i=t&&t.getSpec&&t.getSpec(),o=i&&i.supportedMediaTypes||["banner"];r.some((function(e){return(0,v.q9)(o,e)}))||((0,u.logWarn)((0,u.unsupportedBidderMessage)(e,n)),e.bids=e.bids.filter((function(e){return e.bidder!==n})))}))})),r&&0!==r.length){r.forEach((function(e){var n,t,r=(null===(n=e.ortb2Imp)||void 0===n||null===(t=n.ext)||void 0===t?void 0:t.tid)||h[e.code]||(0,u.generateUUID)();h.hasOwnProperty(e.code)||(h[e.code]=r),e.transactionId=r,(0,s.N)(e,"ortb2Imp.ext.tid",r)}));var b=g.K.createAuction({adUnits:r,adUnitCodes:o,callback:m,cbTimeout:t,labels:a,auctionId:c,ortb2Fragments:d,metrics:f}),y=r.length;y>15&&(0,u.logInfo)("Current auction ".concat(b.getAuctionId()," contains ").concat(y," adUnits."),r),o.forEach((function(e){return k.q0.setLatestAuctionForAdUnit(e,b.getAuctionId())})),b.callBids()}else(0,u.logMessage)("No adUnits configured. No bids requested."),m()}),"startAuction");W.requestBids.before((function(e,n){function t(e){for(var n;n=e.shift();)n()}t(U.Ld),t(oe),e.call(this,n)}),49),W.addAdUnits=function(e){(0,u.logInfo)("Invoking pbjs.addAdUnits",arguments),W.adUnits.push.apply(W.adUnits,(0,u.isArray)(e)?e:[e]),d.emit(L)},W.onEvent=function(e,n,t){(0,u.logInfo)("Invoking pbjs.onEvent",arguments),(0,u.isFn)(n)?!t||H[e].call(null,t)?d.on(e,n,t):(0,u.logError)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,u.logError)('The event handler provided is not a function and was not set on event "'+e+'".')},W.offEvent=function(e,n,t){(0,u.logInfo)("Invoking pbjs.offEvent",arguments),t&&!H[e].call(null,t)||d.off(e,n,t)},W.getEvents=function(){return(0,u.logInfo)("Invoking pbjs.getEvents"),d.getEvents()},W.registerBidAdapter=function(e,n){(0,u.logInfo)("Invoking pbjs.registerBidAdapter",arguments);try{P.ZP.registerBidAdapter(e(),n)}catch(e){(0,u.logError)("Error registering bidder adapter : "+e.message)}},W.registerAnalyticsAdapter=function(e){(0,u.logInfo)("Invoking pbjs.registerAnalyticsAdapter",arguments);try{P.ZP.registerAnalyticsAdapter(e)}catch(e){(0,u.logError)("Error registering analytics adapter : "+e.message)}},W.createBid=function(e){return(0,u.logInfo)("Invoking pbjs.createBid",arguments),(0,j.m)(e)};var oe=[],ae=(0,R.z3)("async",(function(e){e&&!(0,u.isEmpty)(e)?((0,u.logInfo)("Invoking pbjs.enableAnalytics for: ",e),P.ZP.enableAnalytics(e)):(0,u.logError)("pbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");W.enableAnalytics=function(e){oe.push(ae.bind(this,e))},W.aliasBidder=function(e,n,t){(0,u.logInfo)("Invoking pbjs.aliasBidder",arguments),e&&n?P.ZP.aliasBidAdapter(e,n,t):(0,u.logError)("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},W.aliasRegistry=P.ZP.aliasRegistry,B.vc.getConfig("aliasRegistry",(function(e){"private"===e.aliasRegistry&&delete W.aliasRegistry})),W.getAllWinningBids=function(){return g.K.getAllWinningBids()},W.getAllPrebidWinningBids=function(){return g.K.getBidsReceived().filter((function(e){return e.status===l.UE.BID_TARGETING_SET}))},W.getHighestCpmBids=function(e){return k.q0.getWinningBids(e)},W.markWinningBidAsUsed=function(e){var n=ue(e,"Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function.");n.length>0&&g.K.addWinningBid(n[0])};var ue=function(e,n){var t=[];return e.adUnitCode&&e.adId?t=g.K.getBidsReceived().filter((function(n){return n.adId===e.adId&&n.adUnitCode===e.adUnitCode})):e.adUnitCode?t=k.q0.getWinningBids(e.adUnitCode):e.adId?t=g.K.getBidsReceived().filter((function(n){return n.adId===e.adId})):(0,u.logWarn)(n),t};function ce(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){(0,u.logError)("Error processing command :","prebid.js",e)}}))}W.getConfig=B.vc.getAnyConfig,W.readConfig=B.vc.readAnyConfig,W.mergeConfig=B.vc.mergeConfig,W.mergeBidderConfig=B.vc.mergeBidderConfig,W.setConfig=B.vc.setConfig,W.setBidderConfig=B.vc.setBidderConfig,W.que.push((function(){window.addEventListener("message",C,!1)})),W.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){(0,u.logError)("Error processing command :",e.message,e.stack)}else(0,u.logError)("Commands written into pbjs.cmd.push must be wrapped in a function")},W.que.push=W.cmd.push,W.processQueue=function(){R.z3.ready(),ce(W.que),ce(W.cmd)},W.triggerBilling=function(e){var n=ue(e,"Improper use of triggerBilling. It requires a bid with at least an adUnitCode or an adId to function."),t=n.find((function(n){return n.requestId===e.requestId}))||n[0];if(n.length>0&&t)try{P.ZP.callBidBillableBidder(t)}catch(e){(0,u.logError)("Error when triggering billing :",e)}else(0,u.logWarn)("The bid provided to triggerBilling did not match any bids received.")}},78640:function(e,n,t){t.d(n,{R:function(){return o},z:function(){return a}});var r=window,i=r.pbjs=r.pbjs||{};function o(){return i}function a(e){i.installedModules.push(e)}i.cmd=i.cmd||[],i.que=i.que||[],r===window&&(r._pbjsGlobals=r._pbjsGlobals||[],r._pbjsGlobals.push("pbjs"))},25102:function(e,n,t){t.d(n,{hh:function(){return a},nH:function(){return s}});var r=t(3193),i=t(64358);function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!e)return e;if(/\w+:\/\//.exec(e))return e;var t=n.location.protocol;try{t=n.top.location.protocol}catch(e){}return/^\/\//.exec(e)?t+e:"".concat(t,"//").concat(e)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.noLeadingWww,r=void 0!==t&&t,i=n.noPort,a=void 0!==i&&i;try{e=new URL(o(e))}catch(e){return}return e=a?e.hostname:e.host,r&&e.startsWith("www.")&&(e=e.substring(4)),e}function u(e){try{var n=e.querySelector("link[rel='canonical']");if(null!==n)return n.href}catch(e){}return null}var c,s=function(e){var n,t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return i.top!==i?e:function(){var o=u(i.document),a=i.location.href;return n===o&&a===t||(n=o,t=a,r=e()),r}}((c=window,function(){var e,n,t,s,d=[],f=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(c),l=r.vc.getConfig("maxNestedIframes"),g=!1,v=0,p=!1,m=!1,h=!1;do{var b=e,y=m,E=void 0,w=!1,T=null;m=!1,e=e?e.parent:c;try{E=e.location.href||null}catch(e){w=!0}if(w)if(y){var I=b.context;try{n=T=I.sourceUrl,h=!0,p=!0,e===c.top&&(g=!0),I.canonicalUrl&&(t=I.canonicalUrl)}catch(e){}}else{(0,i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{var A=b.document.referrer;A&&(T=A,e===c.top&&(g=!0))}catch(e){}!T&&f&&f[v-1]&&(T=f[v-1],e===c.top&&(h=!0)),T&&!p&&(n=T)}else{if(E&&(n=T=E,p=!1,e===c.top)){g=!0;var C=u(e.document);C&&(t=C)}e.context&&e.context.sourceUrl&&(m=!0)}d.push(T),v++}while(e!==c.top&&v<l);d.reverse();try{s=c.top.document.referrer}catch(e){}var O=g||h?n:null,S=r.vc.getConfig("pageUrl")||t||null,B=r.vc.getConfig("pageUrl")||O||o(S,c);return O&&O.indexOf("?")>-1&&-1===B.indexOf("?")&&(B="".concat(B).concat(O.substring(O.indexOf("?")))),{reachedTop:g,isAmp:p,numIframes:v-1,stack:d,topmostLocation:n||null,location:O,canonicalUrl:S,page:B,domain:a(B)||null,ref:s||null,legacy:{reachedTop:g,isAmp:p,numIframes:v-1,stack:d,referer:n||null,canonicalUrl:S}}}))},15164:function(e,n,t){t.d(n,{Dp:function(){return g},Ld:function(){return p},c$:function(){return v},df:function(){return h},eA:function(){return b}});var r=t(4942),i=t(64358),o=t(55975),a=t(9633),u=t(50571),c=t(16310),s=t(74947),d=t(3193),f=t(93304),l=t(10286),g="html5",v="cookie",p=[];function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.moduleName,t=e.moduleType,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=o.isAllowed,h=void 0===m?u.xD:m;function b(e,i){var o=n,u=d.vc.getCurrentBidder();return u&&t===a.UL&&f.ZP.aliasRegistry[u]===n&&(o=u),e({valid:h(s.S1,(0,l.T)(t,o,(0,r.Z)({},c.bL,i)))})}function y(e,n,t){if(!t||"function"!=typeof t)return b(e,n);p.push((function(){var r=b(e,n);t(r)}))}var E=function(e,n,t,r,i,o){return y((function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",u=t&&""!==t?" ;expires=".concat(t):"",c=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(n)).concat(u,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(c)}}),v,o)},w=function(e,n){return y((function(n){if(n&&n.valid){var t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}),v,n)},T=function(e){return y((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}),g,e)},I=function(e){return y((function(e){return!(!e||!e.valid)&&(0,i.checkCookieSupport)()}),v,e)},A=function(e,n,t){return y((function(t){t&&t.valid&&S()&&window.localStorage.setItem(e,n)}),g,t)},C=function(e,n){return y((function(n){return n&&n.valid&&S()?window.localStorage.getItem(e):null}),g,n)},O=function(e,n){return y((function(n){n&&n.valid&&S()&&window.localStorage.removeItem(e)}),g,n)},S=function(e){return y((function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){(0,i.logError)("Local storage api disabled")}return!1}),g,e)},B=function(e,n){return y((function(n){if(n&&n.valid){var t=[];if((0,i.hasDeviceAccess)())for(var r=document.cookie.split(";");r.length;){var o=r.pop(),a=o.indexOf("=");a=a<0?o.length:a,decodeURIComponent(o.slice(0,a).replace(/^\s+/,"")).indexOf(e)>=0&&t.push(decodeURIComponent(o.slice(a+1)))}return t}}),v,n)};return{setCookie:E,getCookie:w,localStorageIsEnabled:T,cookiesAreEnabled:I,setDataInLocalStorage:A,getDataFromLocalStorage:C,removeDataFromLocalStorage:O,hasLocalStorage:S,findSimilarCookies:B}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.moduleType,t=e.moduleName,r=e.bidderCode;function i(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return r?((n&&n!==a.UL||t)&&i(),n=a.UL,t=r):t&&n||i(),m({moduleType:n,moduleName:t})}function b(e){return m({moduleName:e,moduleType:a.wu})}(0,u.oB)(s.S1,"deviceAccess config",(function(){if(!(0,i.hasDeviceAccess)())return{allow:!1}})),(0,u.oB)(s.S1,"bidderSettings.*.storageAllowed",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.S;if(e[c.$k]===a.UL){var t=n.get(e[c.Ki],"storageAllowed");if(t&&!0!==t){var r=e[c.bL];t=Array.isArray(t)?t.some((function(e){return e===r})):t===r}else t=!!t;return t?void 0:{allow:t}}}))},18621:function(e,n,t){t.d(n,{TL:function(){return I},bP:function(){return C},ol:function(){return A},q0:function(){return O}});var r=t(4942),i=t(42982),o=t(64358),a=t(20265),u=t(3193),c=t(70059),s=t(78653),d=t(24679),f=t(92797),l=t(55975),g=t(34614),v=t(62200),p=t(31136),m=t(8833),h=[],b="targetingControls.allowTargetingKeys",y="targetingControls.addTargetingKeys",E='Only one of "'.concat(b,'" or "').concat(y,'" can be set'),w=Object.keys(v.TD).map((function(e){return v.TD[e]})),T={isActualBid:function(e){return e.getStatusCode()===v.Q_.GOOD},isBidNotExpired:function(e){return e.responseTimestamp+1e3*(0,m.N)(e)>(0,o.timestamp)()},isUnusedBid:function(e){return e&&(e.status&&!(0,g.q9)([v.UE.RENDERED],e.status)||!e.status)}};function I(e){return!Object.values(T).some((function(n){return!n(e)}))}var A=(0,f.z3)("sync",(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r){var a=[],c=u.vc.getConfig("sendBidsControl.dealPrioritization"),s=(0,o.groupBy)(e,"adUnitCode");return Object.keys(s).forEach((function(e){var r=[],u=(0,o.groupBy)(s[e],"bidderCode");Object.keys(u).forEach((function(e){return r.push(u[e].reduce(n))})),t>0?(r=c?r.sort(C(!0)):r.sort((function(e,n){return n.cpm-e.cpm})),a.push.apply(a,(0,i.Z)(r.slice(0,t)))):a.push.apply(a,(0,i.Z)(r))})),a}return e}));function C(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(n,t){return void 0!==n.adserverTargeting.hb_deal&&void 0===t.adserverTargeting.hb_deal?-1:void 0===n.adserverTargeting.hb_deal&&void 0!==t.adserverTargeting.hb_deal?1:e?t.cpm-n.cpm:t.adserverTargeting.hb_pb-n.adserverTargeting.hb_pb}}var O=function(e){var n={},t={};function s(e,n){return e.adserverTargeting&&n&&((0,o.isArray)(n)&&(0,g.q9)(n,e.adUnitCode)||"string"==typeof n&&e.adUnitCode===n)}function f(e,n){if(!0===u.vc.getConfig("targetingControls.alwaysIncludeDeals")){var t=w.concat(c.xc);return A(n,p.ZH).map((function(n){if(n.dealId&&s(n,e))return(0,r.Z)({},n.adUnitCode,q(n,t.filter((function(e){return void 0!==n.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}function m(e,n){var t=Object.assign({},v.TD,v.FY),r=Object.keys(t),i={};(0,o.logInfo)("allowTargetingKeys - allowed keys [ ".concat(n.map((function(e){return t[e]})).join(", ")," ]")),e.map((function(e){var o=Object.keys(e)[0],a=e[o].filter((function(e){var o=Object.keys(e)[0],a=0===r.filter((function(e){return 0===o.indexOf(t[e])})).length||(0,g.sE)(n,(function(e){var n=t[e];return 0===o.indexOf(n)}));return i[o]=!a,a}));e[o]=a}));var a=Object.keys(i).filter((function(e){return i[e]}));return(0,o.logInfo)("allowTargetingKeys - removed keys [ ".concat(a.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}function T(e,n){var t=(0,o.deepClone)(e);return Object.keys(t).map((function(e){return{adUnitCode:e,adserverTargeting:t[e]}})).sort(C()).reduce((function(e,r,i,a){var u,c=(u=r.adserverTargeting,Object.keys(u).reduce((function(e,n){return e+"".concat(n,"%3d").concat(encodeURIComponent(u[n]),"%26")}),""));i+1===a.length&&(c=c.slice(0,-3));var s=r.adUnitCode,d=c.length;return d<=n?(n-=d,(0,o.logInfo)("AdUnit '".concat(s,"' auction keys comprised of ").concat(d," characters.  Deducted from running threshold; new limit is ").concat(n),t[s]),e[s]=t[s]):(0,o.logWarn)("The following keys for adUnitCode '".concat(s,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(d,", the current allotted amount was ").concat(n,".\n"),t[s]),i+1===a.length&&0===Object.keys(e).length&&(0,o.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars).  Please review setup and consider adjusting."),e}),{})}function O(e){var n=e.map((function(e){return(0,r.Z)({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return(0,r.Z)({},Object.keys(e)[0],e[Object.keys(e)[0]].join(","))})).reduce((function(e,n){return Object.assign(n,e)}),{}))})).reduce((function(e,n){var t=Object.keys(n)[0];return e[t]=Object.assign({},e[t],n[t]),e}),{});return n}function S(n){return"string"==typeof n?[n]:(0,o.isArray)(n)?n:e.getAdUnitCodes()||[]}function B(){var n=e.getBidsReceived();if(u.vc.getConfig("useBidCache")){var r=u.vc.getConfig("bidCacheFilterFunction");"function"==typeof r&&(n=n.filter((function(e){return t[e.adUnitCode]===e.auctionId||!!r(e)})))}else n=n.filter((function(e){return t[e.adUnitCode]===e.auctionId}));return(n=n.filter((function(e){return(0,a.Z)(e,"video.context")!==d.Oh})).filter(I)).forEach((function(e){return e.latestTargetedAuctionId=t[e.adUnitCode],e})),A(n,p.K$)}function k(e,t){var o=n.getWinningBids(e,t),a=R();return o=o.map((function(e){return(0,r.Z)({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(n){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===a.indexOf(n)})).reduce((function(n,t){var o=[e.adserverTargeting[t]],a=(0,r.Z)({},t.substring(0,20),o);if(t===v.TD.DEAL){var u="".concat(t,"_").concat(e.bidderCode).substring(0,20),c=(0,r.Z)({},u,o);return[].concat((0,i.Z)(n),[a,c])}return[].concat((0,i.Z)(n),[a])}),[]))})),o}function R(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(w).filter(o.uniques)}function D(e,n,t,r){return Object.keys(n.adserverTargeting).filter(j()).forEach((function(t){e.length&&e.filter(function(e){return function(t){return t.adUnitCode===n.adUnitCode&&t.adserverTargeting[e]}}(t)).forEach(function(e){return function(t){(0,o.isArray)(t.adserverTargeting[e])||(t.adserverTargeting[e]=[t.adserverTargeting[e]]),t.adserverTargeting[e]=t.adserverTargeting[e].concat(n.adserverTargeting[e]).filter(o.uniques),delete n.adserverTargeting[e]}}(t))})),e.push(n),e}function j(){var e=R();return e=e.concat(c.xc),function(n){return-1===e.indexOf(n)}}function U(e){return(0,r.Z)({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(j()).map((function(n){return(0,r.Z)({},n.substring(0,20),[e.adserverTargeting[n]])})))}function P(e,n){return n.filter((function(n){return(0,g.q9)(e,n.adUnitCode)})).map((function(e){return Object.assign({},e)})).reduce(D,[]).map(U).filter((function(e){return e}))}function _(e,n){var t=w.concat(c.xc),i=u.vc.getConfig("sendBidsControl.bidLimit"),o=A(n,p.ZH,i),a=u.vc.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),d=a?a.map((function(e){return v.TD[e]})):t;return o.map((function(n){if(s(n,e))return(0,r.Z)({},n.adUnitCode,q(n,t.filter((function(e){return void 0!==n.adserverTargeting[e]&&-1!==d.indexOf(e)}))))})).filter((function(e){return e}))}function q(e,n){return n.map((function(n){return(0,r.Z)({},"".concat(n,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}function N(n){function t(e){return(0,a.Z)(e,v.k2.ADSERVER_TARGETING)}return e.getAdUnits().filter((function(e){return(0,g.q9)(n,e.code)&&t(e)})).map((function(e){return(0,r.Z)({},e.code,function(e){var n=t(e);return Object.keys(n).map((function(e){return(0,o.isStr)(n[e])&&(n[e]=n[e].split(",").map((function(e){return e.trim()}))),(0,o.isArray)(n[e])||(n[e]=[n[e]]),(0,r.Z)({},e,n[e])}))}(e))}))}return n.setLatestAuctionForAdUnit=function(e,n){t[e]=n},n.resetPresetTargeting=function(n,t){if((0,o.isGptPubadsDefined)()){var r=S(n),i=e.getAdUnits().filter((function(e){return(0,g.q9)(r,e.code)})),a=h.reduce((function(e,n){return e[n]=null,e}),{});window.googletag.pubads().getSlots().forEach((function(e){var n=(0,o.isFn)(t)&&t(e);i.forEach((function(t){(t.code===e.getAdUnitPath()||t.code===e.getSlotElementId()||(0,o.isFn)(n)&&n(t.code))&&e.updateTargetingFromMap(a)}))}))}},n.resetPresetTargetingAST=function(e){S(e).forEach((function(e){var n=window.apntag.getTag(e);if(n&&n.keywords){var t=Object.keys(n.keywords),r={};t.forEach((function(e){(0,g.q9)(h,e.toLowerCase())||(r[e]=n.keywords[e])})),window.apntag.modifyTag(e,{keywords:r})}}))},n.getAllTargeting=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B(),t=S(e),r=k(t,n).concat(P(t,n)).concat(u.vc.getConfig("enableSendAllBids")?_(t,n):f(t,n)).concat(N(t));r.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===h.indexOf(Object.keys(e)[0])&&(h=Object.keys(e).concat(h))}))}))}));var i=Object.keys(Object.assign({},v.kF,v.FY)),a=u.vc.getConfig(b),c=u.vc.getConfig(y);if(null!=c&&null!=a)throw new Error(E);a=null!=c?i.concat(c):a||i,Array.isArray(a)&&a.length>0&&(r=m(r,a)),r=O(r);var s=u.vc.getConfig("targetingControls.auctionKeyMaxChars");return s&&((0,o.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(s," characters.  Running checks on auction keys...")),r=T(r,s)),t.forEach((function(e){r[e]||(r[e]={})})),r},u.vc.getConfig("targetingControls",(function(e){null!=(0,a.Z)(e,b)&&null!=(0,a.Z)(e,y)&&(0,o.logError)(E)})),n.setTargetingForGPT=function(e,n){window.googletag.pubads().getSlots().forEach((function(t){Object.keys(e).filter(n?n(t):(0,o.isAdUnitCodeMatchingSlot)(t)).forEach((function(n){Object.keys(e[n]).forEach((function(t){var r=e[n][t];"string"==typeof r&&-1!==r.indexOf(",")&&(r=r.split(",")),e[n][t]=r})),(0,o.logMessage)("Attempting to set targeting-map for slot: ".concat(t.getSlotElementId()," with targeting-map:"),e[n]),t.updateTargetingFromMap(e[n])}))}))},n.getWinningBids=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B(),t=S(e);return n.filter((function(e){return(0,g.q9)(t,e.adUnitCode)})).filter((function(e){return!0===l.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0})).map((function(e){return e.adUnitCode})).filter(o.uniques).map((function(e){return n.filter((function(n){return n.adUnitCode===e?n:null})).reduce(p.ZH)}))},n.setTargetingForAst=function(e){var t=n.getAllTargeting(e);try{n.resetPresetTargetingAST(e)}catch(e){(0,o.logError)("unable to reset targeting for AST"+e)}Object.keys(t).forEach((function(e){return Object.keys(t[e]).forEach((function(n){if((0,o.logMessage)("Attempting to set targeting for targetId: ".concat(e," key: ").concat(n," value: ").concat(t[e][n])),(0,o.isStr)(t[e][n])||(0,o.isArray)(t[e][n])){var r={};n.search(/pt[0-9]/)<0?r[n.toUpperCase()]=t[e][n]:r[n]=t[e][n],window.apntag.setKeywords(e,r,{overrideKeyValue:!0})}}))}))},n.isApntagDefined=function(){if(window.apntag&&(0,o.isFn)(window.apntag.setKeywords))return!0},n}(s.K)},11974:function(e,n,t){t.d(n,{k_:function(){return m},oS:function(){return v}});var r=t(4942),i=t(70885),o=t(64358),a=t(3193),u=t(34614),c=t(15164),s=t(50571),d=t(74947),f=t(16310),l=t(9633),g=t(10286),v={syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:0};a.vc.setDefaults({userSync:(0,o.deepClone)(v)});var p=(0,c.eA)("usersync");var m=function(e){var n={},t={image:[],iframe:[]},c=new Set,s={},v={image:!0,iframe:!1},p=e.config;function m(){if(p.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!v.iframe)return;h(t.iframe,(function(e){var n=(0,i.Z)(e,2),r=n[0],a=n[1];(0,o.logMessage)("Invoking iframe user sync for bidder: ".concat(r)),(0,o.insertUserSyncIframe)(a),function(e,n){e.image=e.image.filter((function(e){return e[0]!==n}))}(t,r)}))}(),function(){if(!v.image)return;h(t.image,(function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];(0,o.logMessage)("Invoking image pixel user sync for bidder: ".concat(t)),(0,o.triggerPixel)(r)}))}()}catch(e){return(0,o.logError)("Error firing user syncs",e)}t={image:[],iframe:[]}}}function h(e,n){(0,o.shuffle)(e).forEach(n)}function b(e,n){var t=p.filterSettings;if(function(e,n){if(e.all&&e[n])return(0,o.logWarn)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(n,'" in userSync config.  You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var t=e.all?e.all:e[n],r=e.all?"all":n;if(!t)return!1;var i=t.filter,a=t.bidders;if(i&&"include"!==i&&"exclude"!==i)return(0,o.logWarn)('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(i,"' is not a valid option; use either 'include' or 'exclude'.")),!1;if("*"!==a&&!(Array.isArray(a)&&a.length>0&&a.every((function(e){return(0,o.isStr)(e)&&"*"!==e}))))return(0,o.logWarn)('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1;return!0}(t,e)){v[e]=!0;var r=t.all?t.all:t[e],i="*"===r.bidders?[n]:r.bidders,a={include:function(e,n){return!(0,u.q9)(e,n)},exclude:function(e,n){return(0,u.q9)(e,n)}};return a[r.filter||"include"](i,n)}return!v[e]}return a.vc.getConfig("userSync",(function(e){if(e.userSync){var n=e.userSync.filterSettings;(0,o.isPlainObject)(n)&&(n.image||n.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}p=Object.assign(p,e.userSync)})),e.regRule(d.K$,"userSync config",(function(e){if(!p.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(e[f.$k]===l.UL){var t=e[f.cx],r=e[f.bp];if(!n.canBidderRegisterSync(t,r))return{allow:!1,reason:"".concat(t," syncs are not enabled for ").concat(r)}}})),n.registerSync=function(n,i,a){var u;return c.has(i)?(0,o.logMessage)('already fired syncs for "'.concat(i,'", ignoring registerSync call')):p.syncEnabled&&(0,o.isArray)(t[n])?i?0!==p.syncsPerBidder&&Number(s[i])>=p.syncsPerBidder?(0,o.logWarn)('Number of user syncs exceeded for "'.concat(i,'"')):void(e.isAllowed(d.K$,(0,g.T)(l.UL,i,(u={},(0,r.Z)(u,f.cx,n),(0,r.Z)(u,f.IV,a),u)))&&(t[n].push([i,a]),s=function(e,n){return e[n]?e[n]+=1:e[n]=1,e}(s,i))):(0,o.logWarn)("Bidder is required for registering sync"):(0,o.logWarn)('User sync type "'.concat(n,'" not supported'))},n.bidderDone=c.add.bind(c),n.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(m,Number(e));m()},n.triggerUserSyncs=function(){p.enableOverride&&n.syncUsers()},n.canBidderRegisterSync=function(e,n){return!p.filterSettings||!b(e,n)},n}(Object.defineProperties({config:a.vc.getConfig("userSync"),isAllowed:s.xD,regRule:s.oB},{browserSupportsCookies:{get:function(){return!(0,o.isSafariBrowser)()&&p.cookiesAreEnabled()}}}))},64358:function(e,n,t){t.r(n),t.d(n,{_each:function(){return de},_map:function(){return le},_setEventEmitter:function(){return I},binarySearch:function(){return fn},buildUrl:function(){return rn},callBurl:function(){return me},canAccessWindowTop:function(){return F},checkCookieSupport:function(){return Me},cleanObj:function(){return Qe},compareCodeAndSlot:function(){return Ke},contains:function(){return fe},createIframe:function(){return X},createInvisibleIframe:function(){return Y},createTrackPixelHtml:function(){return ye},createTrackPixelIframeHtml:function(){return we},cyrb53Hash:function(){return un},debugTurnedOn:function(){return $},deepAccess:function(){return v.Z},deepClone:function(){return Re},deepEqual:function(){return on},deepSetValue:function(){return p.N},delayExecution:function(){return We},encodeMacroURI:function(){return Ee},flatten:function(){return Ie},formatQS:function(){return nn},generateUUID:function(){return D},getBidIdParameter:function(){return j},getBidRequest:function(){return Ae},getBidderCodes:function(){return Oe},getDNT:function(){return He},getDefinedParams:function(){return Le},getParameterByName:function(){return ee},getPerformanceNow:function(){return xe},getPrebidInternal:function(){return S},getUniqueIdentifierStr:function(){return R},getUserConfiguredParams:function(){return Ge},getValue:function(){return Ce},getWindowLocation:function(){return W},getWindowSelf:function(){return M},getWindowTop:function(){return Z},groupBy:function(){return Fe},hasConsoleLogger:function(){return J},hasDeviceAccess:function(){return Ze},inIframe:function(){return De},insertElement:function(){return ge},insertHtmlIntoIframe:function(){return he},insertUserSyncIframe:function(){return be},internal:function(){return C},isA:function(){return ne},isAdUnitCodeMatchingSlot:function(){return Ve},isApnGetTagDefined:function(){return Be},isArray:function(){return ie},isArrayOfNums:function(){return Ye},isBoolean:function(){return ue},isEmpty:function(){return ce},isEmptyStr:function(){return se},isFn:function(){return te},isGptPubadsDefined:function(){return Se},isInteger:function(){return $e},isNumber:function(){return oe},isPlainObject:function(){return ae},isSafariBrowser:function(){return Ue},isSafeFrameWindow:function(){return je},isStr:function(){return re},isValidMediaTypes:function(){return ze},logError:function(){return H},logInfo:function(){return z},logMessage:function(){return L},logWarn:function(){return G},memoize:function(){return sn},mergeDeep:function(){return an},parseGPTSingleSizeArray:function(){return q},parseGPTSingleSizeArrayToRtbSize:function(){return N},parseQS:function(){return en},parseQueryStringParameters:function(){return U},parseSizesInput:function(){return _},parseUrl:function(){return tn},pick:function(){return Xe},prefixLog:function(){return K},replaceAuctionPrice:function(){return _e},replaceClickThrough:function(){return qe},replaceMacros:function(){return Pe},safeJSONParse:function(){return cn},setScriptAttributes:function(){return dn},shuffle:function(){return ke},timestamp:function(){return Ne},transformAdServerTargetingObj:function(){return P},triggerPixel:function(){return pe},uniques:function(){return Te},unsupportedBidderMessage:function(){return Je},waitForElementToLoad:function(){return ve}});var r,i=t(42982),o=t(4942),a=t(70885),u=t(71002),c=t(3193),s=t(18812),d=t(34614),f=t(62200),l=t(68792),g=t(78640),v=t(20265),p=t(96475),m=Object.prototype.toString,h=Boolean(window.console),b=Boolean(h&&window.console.log),y=Boolean(h&&window.console.info),E=Boolean(h&&window.console.warn),w=Boolean(h&&window.console.error),T=(0,g.R)();function I(e){r=e}function A(){null!=r&&r.apply(void 0,arguments)}var C={checkCookieSupport:Me,createTrackPixelIframeHtml:we,getWindowSelf:M,getWindowTop:Z,canAccessWindowTop:F,getWindowLocation:W,insertUserSyncIframe:be,insertElement:ge,isFn:te,triggerPixel:pe,logError:H,logWarn:G,logMessage:L,logInfo:z,parseQS:en,formatQS:nn,deepEqual:on},O={};function S(){return O}var B,k=(B=0,function(){return++B});function R(){return k()+Math.random().toString(16).substr(2)}function D(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,D)}function j(e,n){return(null==n?void 0:n[e])||""}function U(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n=n.replace(/&$/,"")}function P(e){return e&&Object.getOwnPropertyNames(e).length>0?Object.keys(e).map((function(n){return"".concat(n,"=").concat(encodeURIComponent(e[n]))})).join("&"):""}function _(e){return"string"==typeof e?e.split(",").filter((function(e){return e.match(/^(\d)+x(\d)+$/i)})):"object"===(0,u.Z)(e)?2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]?[q(e)]:e.map(q):[]}function q(e){if(x(e))return e[0]+"x"+e[1]}function N(e){if(x(e))return{w:e[0],h:e[1]}}function x(e){return ie(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function Z(){return window.top}function M(){return window.self}function W(){return window.location}function F(){try{if(C.getWindowTop().location.href)return!0}catch(e){return!1}}function L(){$()&&b&&console.log.apply(console,V(arguments,"MESSAGE:"))}function z(){$()&&y&&console.info.apply(console,V(arguments,"INFO:"))}function G(){$()&&E&&console.warn.apply(console,V(arguments,"WARNING:")),A(f.FP.AUCTION_DEBUG,{type:"WARNING",arguments:arguments})}function H(){$()&&w&&console.error.apply(console,V(arguments,"ERROR:")),A(f.FP.AUCTION_DEBUG,{type:"ERROR",arguments:arguments})}function K(e){function n(n){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];n.apply(void 0,[e].concat(r))}}return{logError:n(H),logWarn:n(G),logMessage:n(L),logInfo:n(z)}}function V(e,n){e=[].slice.call(e);var t=c.vc.getCurrentBidder();return n&&e.unshift(n),t&&e.unshift(r("#aaa")),e.unshift(r("#3b88c3")),e.unshift("%cPrebid"+(t?"%c".concat(t):"")),e;function r(e){return"display: inline-block; color: #fff; background: ".concat(e,"; padding: 1px 4px; border-radius: 3px;")}}function J(){return b}function $(){return!!c.vc.getConfig("debug")}var Q,X=(Q={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"},function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("iframe");return Object.assign(r,Object.assign({},Q,n)),Object.assign(r.style,t),r});function Y(){return X(document,{id:R(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function ee(e){return en(W().search)[e]||""}function ne(e,n){return m.call(e)==="[object "+n+"]"}function te(e){return ne(e,"Function")}function re(e){return ne(e,"String")}var ie=Array.isArray.bind(Array);function oe(e){return ne(e,"Number")}function ae(e){return ne(e,"Object")}function ue(e){return ne(e,"Boolean")}function ce(e){return!e||(ie(e)||re(e)?!(e.length>0):Object.keys(e).length<=0)}function se(e){return re(e)&&(!e||0===e.length)}function de(e,n){var t=this;if(te(null==e?void 0:e.forEach))return e.forEach(n,this);Object.entries(e||{}).forEach((function(e){var r=(0,a.Z)(e,2),i=r[0],o=r[1];return n.call(t,o,i)}))}function fe(e,n){return te(null==e?void 0:e.includes)&&e.includes(n)}function le(e,n){return te(null==e?void 0:e.map)?e.map(n):Object.entries(e||{}).map((function(t){var r=(0,a.Z)(t,2),i=r[0],o=r[1];return n(o,i,e)}))}function ge(e,n,t,r){var i;n=n||document,i=t?n.getElementsByTagName(t):n.getElementsByTagName("head");try{if((i=i.length?i:n.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(e,o)}}catch(e){}}function ve(e,n){var t=null;return new l.Z((function(r){var i=function n(){e.removeEventListener("load",n),e.removeEventListener("error",n),null!=t&&window.clearTimeout(t),r()};e.addEventListener("load",i),e.addEventListener("error",i),null!=n&&(t=window.setTimeout(i,n))}))}function pe(e,n,t){var r=new Image;n&&C.isFn(n)&&ve(r,t).then(n),r.src=e}function me(e){var n=e.source,t=e.burl;n===f.os.SRC&&t&&C.triggerPixel(t)}function he(e){if(e){var n,t=Y();C.insertElement(t,document,"body"),(n=t.contentWindow.document).open(),n.write(e),n.close()}}function be(e,n,t){var r=C.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=r;var o=i.firstChild;n&&C.isFn(n)&&ve(o,t).then(n),C.insertElement(o,document,"html",!0)}function ye(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURI;if(!e)return"";var t=n(e),r='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return r+='<img src="'+t+'"></div>'}function Ee(e){return Array.from(e.matchAll(/\$({[^}]+})/g)).map((function(e){return e[1]})).reduce((function(e,n){return e.replace("$"+encodeURIComponent(n),"$"+n)}),encodeURI(e))}function we(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(n&&(e=encodeURI(e)),t&&(t='sandbox="'.concat(t,'"')),"<iframe ".concat(t,' id="').concat(R(),'"\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 Te(e,n,t){return t.indexOf(e)===n}function Ie(e,n){return e.concat(n)}function Ae(e,n){if(e)return n.flatMap((function(e){return e.bids})).find((function(n){return["bidId","adId","bid_id"].some((function(t){return n[t]===e}))}))}function Ce(e,n){return e[n]}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(Ie,[])})).reduce(Ie,[]).filter((function(e){return void 0!==e})).filter(Te)}function Se(){if(window.googletag&&te(window.googletag.pubads)&&te(window.googletag.pubads().getSlots))return!0}function Be(){if(window.apntag&&te(window.apntag.getTag))return!0}function ke(e){for(var n=e.length;n>0;){var t=Math.floor(Math.random()*n),r=e[--n];e[n]=e[t],e[t]=r}return e}function Re(e){return(0,s.Y)(e)||{}}function De(){try{return C.getWindowSelf()!==C.getWindowTop()}catch(e){return!0}}function je(){if(!De())return!1;var e=C.getWindowSelf();return!(!e.$sf||!e.$sf.ext)}function Ue(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function Pe(e,n){if(e)return Object.entries(n).reduce((function(e,n){var t=(0,a.Z)(n,2),r=t[0],i=t[1];return e.replace(new RegExp("\\$\\{"+r+"\\}","g"),i||"")}),e)}function _e(e,n){return Pe(e,{AUCTION_PRICE:n})}function qe(e,n){if(e&&n&&"string"==typeof n)return e.replace(/\${CLICKTHROUGH}/g,n)}function Ne(){return(new Date).getTime()}function xe(){return window.performance&&window.performance.now&&window.performance.now()||0}function Ze(){return!1!==c.vc.getConfig("deviceAccess")}function Me(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function We(e,n){if(n<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(n));var t=0;return function(){++t===n&&e.apply(this,arguments)}}function Fe(e,n){return e.reduce((function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e}),{})}function Le(e,n){return n.filter((function(n){return e[n]})).reduce((function(n,t){return Object.assign(n,(0,o.Z)({},t,e[t]))}),{})}function ze(e){var n=["banner","native","video"];return!!Object.keys(e).every((function(e){return(0,d.q9)(n,e)}))&&(!e.video||!e.video.context||(0,d.q9)(["instream","outstream","adpod"],e.video.context))}function Ge(e,n,t){return e.filter((function(e){return e.code===n})).flatMap((function(e){return e.bids})).filter((function(e){return e.bidder===t})).map((function(e){return e.params||{}}))}function He(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}var Ke=function(e,n){return e.getAdUnitPath()===n||e.getSlotElementId()===n};function Ve(e){return function(n){return Ke(e,n)}}function Je(e,n){var t=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n    ".concat(e.code," is a ").concat(t," ad unit\n    containing bidders that don't support ").concat(t,": ").concat(n,".\n    This bidder won't fetch demand.\n  ")}var $e=Number.isInteger.bind(Number);function Qe(e){return Object.fromEntries(Object.entries(e).filter((function(e){var n=(0,a.Z)(e,2);n[0];return void 0!==n[1]})))}function Xe(e,n){return"object"!==(0,u.Z)(e)?{}:n.reduce((function(t,r,i){if("function"==typeof r)return t;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var u=e[r];return"function"==typeof n[i+1]&&(u=n[i+1](u,t)),void 0!==u&&(t[o]=u),t}),{})}function Ye(e,n){return ie(e)&&(!n||e.length===n)&&e.every((function(e){return $e(e)}))}function en(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,n){var t=n.split("="),r=(0,a.Z)(t,2),i=r[0],o=r[1];return/\[\]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(o)):e[i]=o||"",e}),{}):{}}function nn(e){return Object.keys(e).map((function(n){return Array.isArray(e[n])?e[n].map((function(e){return"".concat(n,"[]=").concat(e)})).join("&"):"".concat(n,"=").concat(e[n])})).join("&")}function tn(e,n){var t=document.createElement("a");n&&"noDecodeWholeURL"in n&&n.noDecodeWholeURL?t.href=e:t.href=decodeURIComponent(e);var r=n&&"decodeSearchAsString"in n&&n.decodeSearchAsString;return{href:t.href,protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r?t.search:C.parseQS(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host||window.location.host}}function rn(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(C.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}function on(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.checkTypes,i=void 0!==r&&r;if(e===n)return!0;if("object"!==(0,u.Z)(e)||null===e||"object"!==(0,u.Z)(n)||null===n||i&&e.constructor!==n.constructor)return!1;var o=Object.keys(e);if(o.length!==Object.keys(n).length)return!1;for(var a=0,c=o;a<c.length;a++){var s=c[a];if(!n.hasOwnProperty(s))return!1;if(!on(e[s],n[s],{checkTypes:i}))return!1}return!0}function an(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if(!t.length)return e;var a=t.shift();if(ae(e)&&ae(a)){var u=function(n){ae(a[n])?(e[n]||Object.assign(e,(0,o.Z)({},n,{})),an(e[n],a[n])):ie(a[n])?e[n]?ie(e[n])&&a[n].forEach((function(t){for(var r=1,i=0;i<e[n].length;i++)if(on(e[n][i],t)){r=0;break}r&&e[n].push(t)})):Object.assign(e,(0,o.Z)({},n,(0,i.Z)(a[n]))):Object.assign(e,(0,o.Z)({},n,a[n]))};for(var c in a)u(c)}return an.apply(void 0,[e].concat(t))}function un(e){for(var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=function(e,n){if(te(Math.imul))return Math.imul(e,n);var t=(4194303&e)*(n|=0);return 4290772992&e&&(t+=(4290772992&e)*n|0),0|t},i=3735928559^t,o=1103547991^t,a=0;a<e.length;a++)i=r(i^(n=e.charCodeAt(a)),2654435761),o=r(o^n,1597334677);return i=r(i^i>>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()}function cn(e){try{return JSON.parse(e)}catch(e){}}function sn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},t=new Map,r=function(){var r=n.apply(this,arguments);return t.has(r)||t.set(r,e.apply(this,arguments)),t.get(r)};return r.clear=t.clear.bind(t),r}function dn(e,n){Object.entries(n).forEach((function(n){var t=(0,a.Z)(n,2),r=t[0],i=t[1];return e.setAttribute(r,i)}))}function fn(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=0,i=e.length&&e.length-1,o=t(n);i-r>1;){var a=r+Math.round((i-r)/2);o>t(e[a])?r=a:i=a}for(;e.length>r&&o>t(e[r]);)r++;return r}},36066:function(e,n,t){t.d(n,{O:function(){return a}});var r=t(78653),i=t(55975),o=t(64358);function a(e,n,t){var a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=u.index,s=void 0===c?r.K.index:c,d=u.bs,f=void 0===d?i.S:d;t=t||s.getBidRequest(n);var l=null==n?void 0:n.adapterCode,g=(null==n?void 0:n.bidderCode)||(null===(a=t)||void 0===a?void 0:a.bidder),v=f.get(null==n?void 0:n.adapterCode,"adjustAlternateBids"),p=f.getOwn(g,"bidCpmAdjustment")||f.get(v?l:g,"bidCpmAdjustment");if(p&&"function"==typeof p)try{return p(e,Object.assign({},n),t)}catch(e){(0,o.logError)("Error during bid adjustment",e)}return e}},17673:function(e,n,t){t.d(n,{h:function(){return i}});var r=t(20265);function i(e){return null==e||!e.gdprApplies||!0===(0,r.Z)(e,"vendorData.purpose.consents.1")}},99128:function(e,n,t){t.d(n,{A:function(){return w},Bf:function(){return m},V6:function(){return b},g3:function(){return E}});var r=t(70885),i=t(3193);function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);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 a(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,u=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==t.return||t.return()}finally{if(c)throw o}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var u="performanceMetrics",c=window.performance&&window.performance.now?function(){return window.performance.now()}:function(){return Date.now()},s=new WeakMap;function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.now,t=void 0===n?c:n,r=e.mkNode,i=void 0===r?g:r,o=e.mkTimer,a=void 0===o?l:o,u=e.mkRenamer,d=void 0===u?function(e){return e}:u,f=e.nodes,v=void 0===f?s:f;return function(){return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return{forEach:function(n){n(e)}}};function o(e){return function(t){return n.dfWalk({visit:function(n,r){var i=r[e];if(i.hasOwnProperty(t))return i[t]}})}}r=d(r);var u=o("timestamps");function c(e,t){var i=r(e);n.dfWalk({follow:function(e,n){return n.propagate&&(!e||!e.stopPropagation)},visit:function(e,n){i.forEach((function(r){null==e?n.metrics[r]=t:(n.groups.hasOwnProperty(r)||(n.groups[r]=[]),n.groups[r].push(t))}))}})}function s(e){n.timestamps[e]=t()}function f(e,n){var r=u(e),i=null!=r?t()-r:null;return null!=n&&c(n,i),i}function l(e,n,t){var r=u(e),i=u(n),o=null!=r&&null!=i?i-r:null;return null!=t&&c(t,o),o}function g(e){return a(t,(function(n){return c(e,n)}))}function p(e,n){return g(e).stopAfter(n)()}function m(e,n,t){var r=g(e);return t(function(e){var n=r.stopBefore(e);return n.bail=e.bail&&r.stopBefore(e.bail),n.stopTiming=r,n.untimed=e,n}(n))}function h(){var e={};return n.dfWalk({visit:function(n,t){e=Object.assign({},!n||n.includeGroups?t.groups:null,t.metrics,e)}}),e}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.propagate,a=void 0===o||o,u=t.stopPropagation,c=void 0!==u&&u,s=t.includeGroups,d=void 0!==s&&s;return e(i([[n,{propagate:a,stopPropagation:c,includeGroups:d}]]),r)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.propagate,i=void 0===r||r,o=t.stopPropagation,a=void 0!==o&&o,u=t.includeGroups,c=void 0!==u&&u,s=v.get(e);null!=s&&s.addParent(n,{propagate:i,stopPropagation:a,includeGroups:c})}function E(t){return e(n,t)}function w(){return e(n.newSibling(),r)}var T={startTiming:g,measureTime:p,measureHookTime:m,checkpoint:s,timeSince:f,timeBetween:l,setMetric:c,getMetrics:h,fork:b,join:y,newMetrics:w,renameWith:E,toJSON:function(){return h()}};return v.set(T,n),T}(i([]))}}function f(e,n,t){return function(){n&&n();try{return e.apply(this,arguments)}finally{t&&t()}}}function l(e,n){var t=e(),r=!1;function i(){r||(n(e()-t),r=!0)}return i.stopBefore=function(e){return f(e,i)},i.stopAfter=function(e){return f(e,null,i)},i}function g(e){return{metrics:{},timestamps:{},groups:{},addParent:function(n,t){e.push([n,t])},newSibling:function(){return g(e.slice())},dfWalk:function(){var n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.visit,a=t.follow,u=void 0===a?function(){return!0}:a,c=t.visited,s=void 0===c?new Set:c,d=t.inEdge;if(!s.has(this)){if(s.add(this),null!=(n=i(d,this)))return n;var f,l=o(e);try{for(l.s();!(f=l.n()).done;){var g=(0,r.Z)(f.value,2),v=g[0],p=g[1];if(u(d,p)&&null!=(n=v.dfWalk({visit:i,follow:u,visited:s,inEdge:p})))return n}}catch(e){l.e(e)}finally{l.f()}}}}}var v=function(){var e=function(){},n=function(){return{}},t={forEach:e},r=function(){return null};r.stopBefore=function(e){return e},r.stopAfter=function(e){return e};var i=Object.defineProperties({dfWalk:e,newSibling:function(){return i},addParent:e},Object.fromEntries(["metrics","timestamps","groups"].map((function(e){return[e,{get:n}]}))));return d({now:function(){return 0},mkNode:function(){return i},mkRenamer:function(){return function(){return t}},mkTimer:function(){return r},nodes:{get:e,set:e}})()}(),p=!0;function m(e){return p&&e||v}i.vc.getConfig(u,(function(e){p=!!e[u]}));var h,b=(h=d(),function(){return p?h():v});function y(e,n){return function(t,r){return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];var c=this;return m(n.apply(c,a)).measureHookTime(e+t,i,(function(e){return r.call.apply(r,[c,e].concat(a))}))}}}var E=y("requestBids.",(function(e){return e.metrics})),w=y("addBidResponse.",(function(e,n){return n.metrics}))},68792:function(e,n,t){t.d(n,{P:function(){return m},Z:function(){return v}});var r=t(70885),i=t(15671),o=t(43144),a=t(86033),u=t(13092);function c(e,n,t){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.set(e,t)}function s(e,n,t){return function(e,n){if(e!==n)throw new TypeError("Private static access of wrong provenance")}(e,n),t}var d=0,f=1,l=new WeakMap,g=new WeakMap,v=function(){function e(n){if((0,i.Z)(this,e),c(this,l,{writable:!0,value:void 0}),c(this,g,{writable:!0,value:void 0}),"function"!=typeof n)throw new Error("resolver not a function");var t=[],o=[],a=[d,f].map((function(e){return function(n){if(e===d&&"function"==typeof(null==n?void 0:n.then))n.then(v,p);else if(!t.length)for(t.push(e,n);o.length;)o.shift()()}})),s=(0,r.Z)(a,2),v=s[0],p=s[1];try{n(v,p)}catch(e){p(e)}(0,u.Z)(this,l,t),(0,u.Z)(this,g,o)}return(0,o.Z)(e,[{key:"then",value:function(e,n){var t=this,i=(0,a.Z)(this,l);return new this.constructor((function(o,u){var c=function(){var t=i[1],a=i[0]===d?[e,o]:[n,u],c=(0,r.Z)(a,2),s=c[0],f=c[1];if("function"==typeof s){try{t=s(t)}catch(e){return void u(e)}f=o}f(t)};i.length?c():(0,a.Z)(t,g).push(c)}))}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"finally",value:function(e){var n,t=this;return this.then((function(t){return n=t,e()}),(function(r){return n=t.constructor.reject(r),e()})).then((function(){return n}))}}],[{key:"timeout",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new e((function(e){0===n?e():setTimeout(e,n)}))}},{key:"race",value:function(n){var t=this;return new this((function(r,i){s(t,e,p).call(t,n,(function(e,n){return e?r(n):i(n)}))}))}},{key:"all",value:function(n){var t=this;return new this((function(r,i){var o=[];s(t,e,p).call(t,n,(function(e,n,t){return e?o[t]=n:i(n)}),(function(){return r(o)}))}))}},{key:"allSettled",value:function(n){var t=this;return new this((function(r){var i=[];s(t,e,p).call(t,n,(function(e,n,t){return i[t]=e?{status:"fulfilled",value:n}:{status:"rejected",reason:n}}),(function(){return r(i)}))}))}},{key:"resolve",value:function(e){return new this((function(n){return n(e)}))}},{key:"reject",value:function(e){return new this((function(n,t){return t(e)}))}}]),e}();function p(e,n,t){var r=this,i=e.length;function o(){n.apply(this,arguments),--i<=0&&t&&t()}0===e.length&&t?t():e.forEach((function(e,n){return r.resolve(e).then((function(e){return o(!0,e,n)}),(function(e){return o(!1,e,n)}))}))}function m(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.promiseFactory,i=void 0===r?function(e){return new v(e)}:r;function o(e){return function(n){return e(n)}}return{promise:i((function(t,r){e=t,n=r})),resolve:o(e),reject:o(n)}}},31136:function(e,n,t){function r(e,n){return e===n?0:e<n?-1:1}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return function(n,t){return r(e(n),e(t))}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return function(n,t){return-e(n,t)||0}}function a(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(e,t){for(var r=0,i=n;r<i.length;r++){var o=(0,i[r])(e,t);if(0!==o)return o}return 0}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return function(n,t){return e(t,n)<0?t:n}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return u(o(e))}t.d(n,{K$:function(){return l},LT:function(){return u},ZH:function(){return f},gW:function(){return c},xI:function(){return i}});var s=i((function(e){return e.cpm})),d=i((function(e){return e.responseTimestamp})),f=c(a(s,o(i((function(e){return e.timeToRespond}))))),l=c(a(s,o(d)));c(a(s,d))},10613:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(4942),i=t(70885),o=t(68792),a=t(64358);function u(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return c(e,n);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 c(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(){var e,n,t,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=c.startTime,d=void 0===s?a.timestamp:s,f=c.ttl,l=void 0===f?function(){return null}:f,g=c.monotonic,v=void 0!==g&&g,p=c.slack,m=void 0===p?5e3:p,h=new Map,b=[],y=[],E=v?function(e){return y.push(e)}:function(e){return y.splice((0,a.binarySearch)(y,e,(function(e){return e.expiry})),0,e)};function w(){if(t&&clearTimeout(t),y.length>0){var e=(0,a.timestamp)();n=Math.max(e,y[0].expiry+m),t=setTimeout((function(){for(var e=(0,a.timestamp)(),n=0,r=function(){var t=o[i];if(t.expiry>e)return"break";b.forEach((function(e){try{e(t.item)}catch(e){(0,a.logError)(e)}})),h.delete(t.item),n++},i=0,o=y;i<o.length;i++){if("break"===r())break}y.splice(0,n),t=null,w()}),n-e)}else t=null}function T(e){var r,a={},u=I;var c=Object.entries({start:d,delta:l}).map((function(c){var s,d=(0,i.Z)(c,2),f=d[0],l=d[1];return function(){var i=s={};o.Z.resolve(l(e)).then((function(e){i===s&&(a[f]=e,u===I&&null!=a.start&&null!=a.delta&&(r=a.start+a.delta,E(v),(null==t||n>r+m)&&w()))}))}})),s=(0,i.Z)(c,2),f=s[0],g=s[1],v={item:e,refresh:g,get expiry(){return r}};return f(),g(),v}var I={};return e={},(0,r.Z)(e,Symbol.iterator,(function(){return h.keys()})),(0,r.Z)(e,"add",(function(e){!h.has(e)&&h.set(e,T(e))})),(0,r.Z)(e,"clear",(function(){y.length=0,w(),h.clear(),I={}})),(0,r.Z)(e,"toArray",(function(){return Array.from(h.keys())})),(0,r.Z)(e,"refresh",(function(){y.length=0,w();var e,n=u(h.values());try{for(n.s();!(e=n.n()).done;){e.value.refresh()}}catch(e){n.e(e)}finally{n.f()}})),(0,r.Z)(e,"onExpiry",(function(e){return b.push(e),function(){var n=b.indexOf(e);n>=0&&b.splice(n,1)}})),e}},90154:function(e,n,t){t.d(n,{Dn:function(){return f},LD:function(){return s},cx:function(){return d},gZ:function(){return c},hD:function(){return l}});var r=t(20265),i=t(64358),o=t(3193),a=t(92797),u=t(78653),c="outstream",s="instream";function d(e){var n,t=null==e||null===(n=e.mediaTypes)||void 0===n?void 0:n.video;null!=t&&null==t.plcmt&&(t.context===c||[2,3,4].includes(t.placement)?t.plcmt=4:t.context!==c&&[2,6].includes(t.playbackmethod)&&(t.plcmt=2))}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?u.K.index:t,o=(0,r.Z)(i.getMediaTypes(e),"video"),a=o&&(0,r.Z)(o,"context"),c=o&&(0,r.Z)(o,"useCacheKey"),s=i.getAdUnit(e);return l(e,s,o,a,c)}var l=(0,a.z3)("sync",(function(e,n,t,r,a){return t&&(a||r!==c)?o.vc.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)('\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling prebid cache with pbjs.setConfig({ cache: {url: "..."} });\n      '),!1):!(r===c&&!a)||!!(e.renderer||n&&n.renderer||t.renderer)}),"checkVideoBidSetup")},79885:function(e,n,t){t.d(n,{h:function(){return s},z:function(){return d}});var r=t(48928),i=t(3193),o=t(78653);function a(e,n){var t=(n=n&&(Array.isArray(n)?n:[n]))?n.map((function(e){return"<Impression><![CDATA[".concat(e,"]]></Impression>")})).join(""):"";return'<VAST version="3.0">\n    <Ad>\n      <Wrapper>\n        <AdSystem>prebid.org wrapper</AdSystem>\n        <VASTAdTagURI><![CDATA['.concat(e,"]]></VASTAdTagURI>\n        ").concat(t,"\n        <Creatives></Creatives>\n      </Wrapper>\n    </Ad>\n  </VAST>")}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?o.K.index:t,u=e.vastXml?e.vastXml:a(e.vastUrl,e.vastImpUrl),c=r.getAuction(e),s=Number(e.ttl)+15,d={type:"xml",value:u,ttlseconds:s};return i.vc.getConfig("cache.vasttrack")&&(d.bidder=e.bidder,d.bidid=e.requestId,d.aid=e.auctionId),null!=c&&(d.timestamp=c.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(d.key=e.customCacheKey),d}function c(e){return{success:function(n){var t;try{t=JSON.parse(n).responses}catch(n){return void e(n,[])}t?e(null,t):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(n,t){e(new Error("Error storing video ad in the cache: ".concat(n,": ").concat(JSON.stringify(t))),[])}}}function s(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.OI,o={puts:e.map(u)},a=t(i.vc.getConfig("cache.timeout"));a(i.vc.getConfig("cache.url"),c(n),JSON.stringify(o),{contentType:"text/plain",withCredentials:!0})}function d(e){return"".concat(i.vc.getConfig("cache.url"),"?uuid=").concat(e)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[79270],{68304:function(n,s,d){d.d(s,{_:function(){return i}});var i='!function(){"use strict";window.render=function({ad:d,adUrl:i,width:n,height:e},{mkFrame:o},r){if(!d&&!i)throw{reason:"noAd",message:"Missing ad markup or URL"};{const t=r.document,s={width:n,height:e};i&&!d?s.src=i:s.srcdoc=d,t.body.appendChild(o(t,s))}}}();'}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[93157],{20676:function(n,r,t){t.d(r,{c:function(){return f}});var e=t(42982),u=t(83790),c=t(20265),o=["user.keywords"].concat(u.Iq.flatMap((function(n){return["keywords","content.keywords"].map((function(r){return"".concat(n,".").concat(r)}))})));function a(){for(var n=new Set,r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.filter((function(n){return n})).flatMap((function(n){return Array.isArray(n)?n:n.split(",")})).map((function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")})).filter((function(n){return n})).forEach((function(r){return n.add(r)})),Array.from(n.keys())}function f(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return a.apply(void 0,(0,e.Z)(o.map((function(r){return(0,c.Z)(n,r)}))).concat(t))}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[42277],{19050:function(n,r,t){t.d(r,{Bq:function(){return l},bn:function(){return y},cM:function(){return h},gw:function(){return g}});var e=t(70885),u=t(42982),i=t(64358),o=t(20265),c=t(20676),a=t(83790),f={526:"1plusX",527:"1plusX",541:"captify_segments",540:"perid"},s=["user.data"].concat(a.Iq.map((function(n){return"".concat(n,".content.data")})));function p(n,r,t){return null==r?t:(0,i.isStr)(r)?r:(0,i.isNumber)(r)?r.toString():void(0,i.logWarn)("Unsuported type for param: "+n+" required type: String")}function l(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",t=[];return(0,i._each)(n,(function(n,e){if((0,i.isArray)(n)){var u=[];(0,i._each)(n,(function(n){((n=p(r+"."+e,n))||""===n)&&u.push(n)})),n=u}else{if(n=p(r+"."+e,n),!(0,i.isStr)(n))return;n=[n]}n=n.filter((function(n){return""!==n}));var o={key:e};n.length>0&&(o.value=n),t.push(o)})),t}function h(n){return(0,i.isStr)(n)&&""!==n?v(n.split(/\s*(?:,)\s*/)):{}}function v(n){var r={};return n.forEach((function(n){if(-1!==n.indexOf("=")){var t=n.split("="),e=t[0],u=t[1];r.hasOwnProperty(e)?r[e].push(u):r[e]=[u]}else r.hasOwnProperty(n)||(r[n]=[])})),r}function d(n){return v((0,c.c)(n))}function g(){for(var n=arguments.length,r=new Array(n),t=0;t<n;t++)r[t]=arguments[t];return l(i.mergeDeep.apply(void 0,(0,u.Z)(r.map((function(n){return Object.fromEntries(Object.entries(n||{}).map((function(n){var r=(0,e.Z)(n,2),t=r[0],u=r[1];return[t,(0,i.isNumber)(u)||(0,i.isStr)(u)?[u]:u]})))})))))}function y(n){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return g.apply(void 0,[d(n),m(n)].concat(t))}function m(n){var r={};return s.forEach((function(t){((0,o.Z)(n,t)||[]).forEach((function(n){var t=f[(0,o.Z)(n,"ext.segtax")];t&&n.segment.forEach((function(n){r[t]?r[t].push(n.id):r[t]=[n.id]}))}))})),r}},27374:function(n,r,t){t.d(r,{G:function(){return u},h:function(){return i}});var e=t(64358);function u(n){return n.replace(/(?:^|\.?)([A-Z])/g,(function(n,r){return"_"+r.toLowerCase()})).replace(/^_/,"")}function i(n,r){for(var t=[],u=0;u<r;u++){var i=(0,e.isPlainObject)(n)?(0,e.deepClone)(n):n;t.push(i)}return t}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[2284],{26296:function(n,u,e){function r(n,u){for(var e=[],r=0;r<Math.ceil(n.length/u);r++){var s=r*u,t=s+u;e.push(n.slice(s,t))}return e}e.d(u,{y:function(){return r}})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[33402],{85370:function(n,e,u){u.d(e,{u:function(){return t}});var r=u(64358);function t(n,e){return Object.keys(n).forEach((function(u){var t,s;e[u]&&((0,r.isFn)(n[u])?e[u]=n[u](e[u]):e[u]=(t=n[u],s=e[u],"string"===t?s&&s.toString():"number"===t?Number(s):s),isNaN(e[u])&&delete e.key)})),e}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[86190],{34292:function(A,B,I){I.d(B,{m:function(){return n}});var n={1:"IAB20-3",2:"IAB18-5",3:"IAB10-1",4:"IAB2-3",5:"IAB19-8",6:"IAB22-1",7:"IAB18-1",8:"IAB12-3",9:"IAB5-1",10:"IAB4-5",11:"IAB13-4",12:"IAB8-7",13:"IAB9-7",14:"IAB7-1",15:"IAB20-18",16:"IAB10-7",17:"IAB19-18",18:"IAB13-6",19:"IAB18-4",20:"IAB1-5",21:"IAB1-6",22:"IAB3-4",23:"IAB19-13",24:"IAB22-2",25:"IAB3-9",26:"IAB17-18",27:"IAB19-6",28:"IAB1-7",29:"IAB9-30",30:"IAB20-7",31:"IAB20-17",32:"IAB7-32",33:"IAB16-5",34:"IAB19-34",35:"IAB11-5",36:"IAB12-3",37:"IAB11-4",38:"IAB12-3",39:"IAB9-30",41:"IAB7-44",42:"IAB7-1",43:"IAB7-30",50:"IAB19-30",51:"IAB17-12",52:"IAB19-30",53:"IAB3-1",55:"IAB13-2",56:"IAB19-30",57:"IAB19-30",58:"IAB7-39",59:"IAB22-1",60:"IAB7-39",61:"IAB21-3",62:"IAB5-1",63:"IAB12-3",64:"IAB20-18",65:"IAB11-2",66:"IAB17-18",67:"IAB9-9",68:"IAB9-5",69:"IAB7-44",71:"IAB22-3",73:"IAB19-30",74:"IAB8-5",78:"IAB22-1",85:"IAB12-2",86:"IAB22-3",87:"IAB11-3",112:"IAB7-32",113:"IAB7-32",114:"IAB7-32",115:"IAB7-32",118:"IAB9-5",119:"IAB9-5",120:"IAB9-5",121:"IAB9-5",122:"IAB9-5",123:"IAB9-5",124:"IAB9-5",125:"IAB9-5",126:"IAB9-5",127:"IAB22-1",132:"IAB1-2",133:"IAB19-30",137:"IAB3-9",138:"IAB19-3",140:"IAB2-3",141:"IAB2-1",142:"IAB2-3",143:"IAB17-13",166:"IAB11-4",175:"IAB3-1",176:"IAB13-4",182:"IAB8-9",183:"IAB3-5"}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[29703],{10075:function(n,t,u){u.d(t,{CS:function(){return o},aE:function(){return i},ky:function(){return d}});var e=u(34614),r=u(64358);function o(n){return function(t){return(0,r.compareCodeAndSlot)(t,n)}}function i(n){var t;return(0,r.isGptPubadsDefined)()&&(t=(0,e.sE)(window.googletag.pubads().getSlots(),o(n))),t}function d(n){var t=i(n);return t?{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()}:{}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[54213],{29865:function(n,u,e){function t(n,u,e){return e?n+u+"="+encodeURIComponent(e)+"&":n}e.d(u,{t:function(){return t}})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[85279],{24980:function(e,r,t){t.d(r,{T:function(){return O},x:function(){return g}});var n=t(70885),i=new WeakMap;function o(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i.has(e)){var t=Object.entries(e);t.sort((function(e,r){return(e=e[1].priority||0)===(r=r[1].priority||0)?0:e>r?-1:1})),i.set(e,t.map((function(e){var r=(0,n.Z)(e,2);return[r[0],r[1].fn]})))}var o=i.get(e).filter((function(e){var t=(0,n.Z)(e,1)[0];return!r.hasOwnProperty(t)||r[t]})).map((function(e){var t=(0,n.Z)(e,2),i=t[0],o=t[1];return r.hasOwnProperty(i)?r[i].bind(this,o):o}));return function(){var e=this,r=Array.from(arguments);o.forEach((function(t){t.apply(e,r)}))}}var a=t(64358),s=t(4942),d=t(20265),p=t(24679);function u(e){return(e=(0,a.parseSizesInput)(e)).map((function(e){var r=e.split("x"),t=(0,n.Z)(r,2),i=t[0],o=t[1];return{w:parseInt(i,10),h:parseInt(o,10)}}))}var c=new Set(["pos","placement","plcmt","api","mimes","protocols","playbackmethod","minduration","maxduration","w","h","startdelay","placement","linearity","skip","skipmin","skipafter","minbitrate","maxbitrate","delivery","playbackend"]),f={instream:1};var m=t(15840);var l,v=t(26372),b=t(83790),y=(l={},(0,s.Z)(l,v.Z,{fpd:{priority:99,fn:function(e,r){(0,a.mergeDeep)(e,r.ortb2)}},onlyOneClient:{priority:-99,fn:(0,b.A_)("ORTB request")},props:{fn:function(e,r){Object.assign(e,{id:e.id||(0,a.generateUUID)(),test:e.test||0});var t=parseInt(r.timeout,10);isNaN(t)||(e.tmax=t)}}}),(0,s.Z)(l,v.DZ,{fpd:{priority:99,fn:function(e,r){(0,a.mergeDeep)(e,r.ortb2Imp)}},id:{fn:function(e,r){e.id=r.bidId}},banner:{fn:function(e,r,t){if(!t.mediaType||t.mediaType===p.Mk){var n=(0,d.Z)(r,"mediaTypes.banner");if(n){var i={topframe:!0===(0,a.inIframe)()?0:1};n.sizes&&(i.format=u(n.sizes)),n.hasOwnProperty("pos")&&(i.pos=n.pos),e.banner=(0,a.mergeDeep)(i,e.banner)}}}},pbadslot:{fn:function(e){var r,t,n,i,o=null===(r=e.ext)||void 0===r||null===(t=r.data)||void 0===t?void 0:t.pbadslot;o&&"string"==typeof o||(null===(n=e.ext)||void 0===n||(null===(i=n.data)||void 0===i||delete i.pbadslot))}}}),(0,s.Z)(l,v.Px,{mediaType:{priority:99,fn:m.R},banner:{fn:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.createPixel,t=void 0===r?function(e){return(0,a.createTrackPixelHtml)(decodeURIComponent(e),a.encodeMacroURI)}:r;return function(e,r){e.mediaType===p.Mk&&(r.adm&&r.nurl?(e.ad=r.adm,e.ad+=t(r.nurl)):r.adm?e.ad=r.adm:r.nurl&&(e.adUrl=r.nurl))}}()},props:{fn:function(e,r,t){var i,o;Object.entries({requestId:null===(i=t.bidRequest)||void 0===i?void 0:i.bidId,seatBidId:r.id,cpm:r.price,currency:t.ortbResponse.cur||t.currency,width:r.w,height:r.h,dealId:r.dealid,creative_id:r.crid,creativeId:r.crid,burl:r.burl,ttl:r.exp||t.ttl,netRevenue:t.netRevenue}).filter((function(e){var r=(0,n.Z)(e,2);r[0];return void 0!==r[1]})).forEach((function(r){var t=(0,n.Z)(r,2),i=t[0],o=t[1];return e[i]=o})),e.meta||(e.meta={}),r.adomain&&(e.meta.advertiserDomains=r.adomain),null!==(o=r.ext)&&void 0!==o&&o.dsa&&(e.meta.dsa=r.ext.dsa)}}}),l);y[v.DZ].native={fn:function(e,r,t){if(!t.mediaType||t.mediaType===p.B5){var n,i=r.nativeOrtbRequest;i&&(null!==(n=(i=Object.assign({},t.nativeRequest,i)).assets)&&void 0!==n&&n.length?e.native=(0,a.mergeDeep)({},{request:JSON.stringify(i),ver:i.ver},e.native):(0,a.logWarn)("mediaTypes.native is set, but no assets were specified. Native request skipped.",r))}}},y[v.Px].native={fn:function(e,r){if(e.mediaType===p.B5){var t;if(t="string"==typeof r.adm?JSON.parse(r.adm):r.adm,!(0,a.isPlainObject)(t)||!Array.isArray(t.assets))throw new Error("ORTB native response contained no assets");e.native={ortb:t}}}},y[v.DZ].video={fn:function(e,r,t){if(!t.mediaType||t.mediaType===p.pX){var i=(0,d.Z)(r,"mediaTypes.video");if(!(0,a.isEmpty)(i)){var o=Object.fromEntries(Object.entries(i).filter((function(e){var r=(0,n.Z)(e,1)[0];return c.has(r)})));if(i.playerSize){var s=u(i.playerSize);s.length>1&&(0,a.logWarn)("video request specifies more than one playerSize; all but the first will be ignored"),Object.assign(o,s[0])}var m=f[i.context];null!=m&&(o.placement=m),e.video=(0,a.mergeDeep)(o,e.video)}}}},y[v.Px].video={fn:function(e,r,t){if(e.mediaType===p.pX){if((0,d.Z)(t.imp,"video.w")&&(0,d.Z)(t.imp,"video.h")){var n=[t.imp.video.w,t.imp.video.h];e.playerWidth=n[0],e.playerHeight=n[1]}r.adm&&(e.vastXml=r.adm),r.nurl&&(e.vastUrl=r.nurl)}}};var h=t(61283);function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.context,t=void 0===r?{}:r,n=e.processors,i=void 0===n?O:n,s=e.overrides,d=void 0===s?{}:s,p=e.imp,u=e.request,c=e.bidResponse,f=e.response,m=new WeakMap;function l(e,r,t,n){var a;return function(){return null==a&&(a=function(){var a=t.bind(this,o(i()[e]||{},d[e]||{}));return r&&(a=r.bind(this,a)),function(){try{return a.apply(this,arguments)}catch(e){n.call.apply(n,[this,e].concat(Array.prototype.slice.call(arguments)))}}}()),a.apply(this,arguments)}}var b=l(v.DZ,p,(function(e,r,t){var n={};return e(n,r,t),n}),(function(e,r,t){(0,a.logError)("Error while converting bidRequest to ORTB imp; request skipped.",{error:e,bidRequest:r,context:t})})),y=l(v.Z,u,(function(e,r,t,n){var i={imp:r};return e(i,t,n),i}),(function(e,r,t,n){throw(0,a.logError)("Error while converting to ORTB request",{error:e,imps:r,bidderRequest:t,context:n}),e})),h=l(v.Px,c,(function(e,r,t){var n={};return e(n,r,t),n}),(function(e,r,t){(0,a.logError)("Error while converting ORTB seatbid.bid to bidResponse; bid skipped.",{error:e,bid:r,context:t})})),g=l(v.YC,f,(function(e,r,t,n){var i={bids:r};return e(i,t,n),i}),(function(e,r,t,n){throw(0,a.logError)("Error while converting from ORTB response",{error:e,bidResponses:r,ortbResponse:t,context:n}),e}));return{toORTB:function(e){var r=e.bidderRequest,n=e.bidRequests,i=e.context,o=void 0===i?{}:i;n=n||r.bids;var s={req:Object.assign({bidRequests:n},t,o),imp:{}};s.req.impContext=s.imp;var d=n.map((function(e){var n=Object.assign({bidderRequest:r,reqContext:s.req},t,o),i=b(e,n);if(null!=i){if(i.hasOwnProperty("id"))return Object.assign(n,{bidRequest:e,imp:i}),s.imp[i.id]=n,i;(0,a.logError)("Converted ORTB imp does not specify an id, ignoring bid request",e,i)}})).filter(Boolean),p=y(d,r,s.req);return s.req.bidderRequest=r,null!=p&&m.set(p,s),p},fromORTB:function(e){var r=e.request,t=e.response,n=m.get(r);if(null==n)throw new Error("ortbRequest passed to `fromORTB` must be the same object returned by `toORTB`");function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign(e,{ortbRequest:r},t,e)}var o=Object.fromEntries((r.imp||[]).map((function(e){return[e.id,e]}))),s=(t.seatbid||[]).flatMap((function(e){return(e.bid||[]).map((function(r){if(o.hasOwnProperty(r.impid)&&n.imp.hasOwnProperty(r.impid))return h(r,i(n.imp[r.impid],{imp:o[r.impid],seatbid:e,ortbResponse:t}));(0,a.logError)("ORTB response seatbid[].bid[].impid does not match any imp in request; ignoring bid",r)}))})).filter(Boolean);return g(s,t,i(n.req))}}}var O=(0,a.memoize)((function(){return(0,h.F)(y,(0,v.fP)(v.TP))}))},61283:function(e,r,t){t.d(r,{F:function(){return i}});var n=t(26372);function i(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var o=r.shift(),a=r.length>1?i.apply(void 0,r):r[0];return Object.fromEntries(n.gm.map((function(e){return[e,Object.assign({},o[e],a[e])]})))}},15840:function(e,r,t){t.d(r,{R:function(){return o},e:function(){return i}});var n=t(24679),i={1:n.Mk,2:n.pX,4:n.B5};function o(e,r,t){if(!e.mediaType){var n=t.mediaType;if(!n&&!i.hasOwnProperty(r.mtype))throw new Error("Cannot determine mediaType for response");e.mediaType=n||i[r.mtype]}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[70951],{99933:function(e,i,r){r.d(i,{X:function(){return x}});var t=r(61283),d=r(4942),n=r(70885),a=r(26372),o=r(20265),s=r(64358),c=r(11021),b=r(93304),u=r(96475);var p=r(39702);var v=r(3193),f=r(78640);var l,g=r(24679);var m=(l={},(0,d.Z)(l,a.Z,{extPrebid:{fn:function(e,i){var r;(0,u.N)(e,"ext.prebid",(0,s.mergeDeep)({auctiontimestamp:i.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}},null===(r=e.ext)||void 0===r?void 0:r.prebid)),v.vc.getConfig("debug")&&(e.ext.prebid.debug=!0)}},extPrebidChannel:{fn:function(e){var i,r;(0,u.N)(e,"ext.prebid.channel",Object.assign({name:"pbjs",version:(0,f.R)().version},null===(i=e.ext)||void 0===i||null===(r=i.prebid)||void 0===r?void 0:r.channel))}},extPrebidAliases:{fn:function(e,i,r){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=t.am,n=void 0===d?b.ZP:d;if(n.aliasRegistry[i.bidderCode]){var a=n.bidderRegistry[i.bidderCode];a&&a.getSpec().skipPbsAliasing||(0,u.N)(e,"ext.prebid.aliases.".concat(i.bidderCode),n.aliasRegistry[i.bidderCode])}}}}),(0,d.Z)(l,a.DZ,{params:{fn:p.j},adUnitCode:{fn:function(e,i){var r=i.adUnitCode;r&&(0,u.N)(e,"ext.prebid.adunitcode",r)}}}),(0,d.Z)(l,a.Px,{mediaType:{fn:c.P,priority:99},videoCache:{fn:function(e,i){if(e.mediaType===g.pX){var r=(0,o.Z)(i,"ext.prebid.cache.vastXml")||{},t=r.cacheId,d=r.url;if(!t||!d){var n=(0,o.Z)(i,"ext.prebid.targeting")||{},a=n.hb_uuid,s=n.hb_cache_host,c=n.hb_cache_path;a&&s&&c&&(t=a,d="https://".concat(s).concat(c,"?uuid=").concat(a))}t&&d&&Object.assign(e,{videoCacheKey:t,vastUrl:d})}},priority:-10},bidderCode:{fn:function(e,i,r){var t;e.bidderCode=r.seatbid.seat,e.adapterCode=(0,o.Z)(i,"ext.prebid.meta.adaptercode")||(null===(t=r.bidRequest)||void 0===t?void 0:t.bidder)||e.bidderCode}},pbsBidId:{fn:function(e,i){var r=(0,o.Z)(i,"ext.prebid.bidid");(0,s.isStr)(r)&&(e.pbsBidId=r)}},adserverTargeting:{fn:function(e,i){var r=(0,o.Z)(i,"ext.prebid.targeting");(0,s.isPlainObject)(r)&&(e.adserverTargeting=r)}},extPrebidMeta:{fn:function(e,i){e.meta=(0,s.mergeDeep)({},(0,o.Z)(i,"ext.prebid.meta"),e.meta)}},pbsWurl:{fn:function(e,i){var r=(0,o.Z)(i,"ext.prebid.events.win");(0,s.isStr)(r)&&(e.pbsWurl=r)}}}),(0,d.Z)(l,a.YC,{serverSideStats:{fn:function(e,i,r){Object.entries({errors:"serverErrors",responsetimemillis:"serverResponseTimeMs"}).forEach((function(e){var t=(0,n.Z)(e,2),d=t[0],a=t[1],s=(0,o.Z)(i,"ext.".concat(d,".").concat(r.bidderRequest.bidderCode));s&&(r.bidderRequest[a]=s,r.bidRequests.forEach((function(e){return e[a]=s})))}))}}}),l),h=r(24980),x=(0,s.memoize)((function(){return(0,t.F)((0,h.T)(),m,(0,a.fP)(a.md))}))},11021:function(e,i,r){r.d(i,{E:function(){return o},P:function(){return s}});var t,d=r(4942),n=r(24679),a=r(15840),o=(t={},(0,d.Z)(t,n.Mk,"banner"),(0,d.Z)(t,n.B5,"native"),(0,d.Z)(t,n.pX,"video"),t);function s(e,i,r){var t,d,s=r.mediaType;s||(s=a.e.hasOwnProperty(i.mtype)?a.e[i.mtype]:null===(t=i.ext)||void 0===t||null===(d=t.prebid)||void 0===d?void 0:d.type,o.hasOwnProperty(s)||(s=n.Mk));e.mediaType=s}},39702:function(e,i,r){r.d(i,{j:function(){return a}});var t=r(78653),d=r(93304),n=r(96475);function a(e,i,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a.adUnit,s=a.bidderRequests,c=a.index,b=void 0===c?t.K.index:c,u=a.bidderRegistry,p=void 0===u?d.ZP.bidderRegistry:u,v=i.params,f=p[i.bidder];f&&f.getSpec().transformBidParams&&(o=o||b.getAdUnit(i),s=s||[r.bidderRequest],v=f.getSpec().transformBidParams(v,!0,o,s)),v&&(0,n.N)(e,"ext.prebid.bidder.".concat(i.bidder),v)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[57748],{81694:function(n,o,t){function e(n,o){return function(){for(var t,e,i=document.domain.split("."),u="_gd".concat(Date.now(),"_").concat(o),c=0;c<i.length;c++){var r=i.slice(c).join(".");if(n.setCookie(u,"1",void 0,void 0,r),e=n.getCookie(u),n.setCookie(u,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,r),"1"!==e)return t;t=r}}}t.d(o,{U:function(){return e}})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[85240],{93253:function(e,r,t){t.d(r,{u:function(){return u}});var n=t(4942);function o(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 c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var u={tdid:{source:"adserver.org",atype:1,getValue:function(e){return e.id?e.id:e},getUidExt:function(e){return c(c({},{rtiPartner:"TDID"}),e.ext)}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[17968],{52712:function(n,t,r){r.d(t,{b6:function(){return p},kX:function(){return f},m1:function(){return s},sM:function(){return u}});var e=r(4942),a=r(70885),c=r(42982),o=r(68792);function i(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.push.apply(r,e)}return r}function l(n){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,e.Z)(n,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))}))}return n}var u=0,f=1,s=2;function p(n){var t=n.apiName,r=n.apiVersion,i=n.apiArgs,p=void 0===i?["command","callback","parameter","version"]:i,v=n.callbackArgs,b=void 0===v?["returnValue","success"]:v,d=n.mode,O=void 0===d?u:d,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,g={},m="".concat(t,"Call"),j="".concat(t,"Return");function k(n){var t,r="string"==typeof n.data&&n.data.includes(j)?JSON.parse(n.data):n.data;if(null!=r&&null!==(t=r[j])&&void 0!==t&&t.callId){var e=r[j];g.hasOwnProperty(e.callId)&&g[e.callId].apply(g,(0,c.Z)(b.map((function(n){return e[n]}))))}}function h(){for(var n,r=y,e=!1;null!=r;){try{if("function"==typeof r[t]){n=r,e=!0;break}}catch(n){}try{if(r.frames["".concat(t,"Locator")]){n=r;break}}catch(n){}if(r===y.top)break;r=r.parent}return[n,e]}var w,P=h(),Z=(0,a.Z)(P,2),D=Z[0],E=Z[1];if(D)return E?w=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new o.Z((function(r,e){var o=D[t].apply(D,(0,c.Z)(I(l(l({},n),{},{callback:n.callback||O===s?S(n.callback,r,e):void 0})).map((function(n){var t=(0,a.Z)(n,2);t[0];return t[1]}))));(O===f||null==n.callback&&O===u)&&r(o)}))}:(y.addEventListener("message",k,!1),w=function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new o.Z((function(r,c){var o=Math.random().toString(),i=(0,e.Z)({},m,l(l({},Object.fromEntries(I(n).filter((function(n){return"callback"!==(0,a.Z)(n,1)[0]})))),{},{callId:o}));g[o]=S(null==n?void 0:n.callback,r,c,(t||null==(null==n?void 0:n.callback))&&function(){delete g[o]}),D.postMessage(i,"*"),O===f&&r()}))}),Object.assign(w,{isDirect:E,close:function(){!E&&y.removeEventListener("message",k)}});function I(n){return n=Object.assign({version:r},n),p.map((function(t){return[t,n[t]]}))}function S(n,t,r,e){var a="function"==typeof n;return function(c,o){if(e&&e(),O!==f){var i=null==o||o?t:r;i(a?void 0:c)}a&&n.apply(this,arguments)}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[72075],{67172:function(n,r,e){e.d(r,{fC:function(){return b}});var t=e(70885),i=e(50571),o=e(74947),u=e(41087),c=e(71002),a=e(64358),f=e(20265),l=e(96475);function d(n){var r={},e=[];n.forEach((function(n){n.wp&&e.push(n),n.get&&n.paths.forEach((function(e){var t=r;e.split(".").forEach((function(n){t.children=t.children||{},t.children[n]=t.children[n]||{},t=t.children[n]})),t.rule=n}))}));var t=(0,u.Db)(e);function i(n,r,e){return new Proxy(n,{get:function(n,t,o){var a=Reflect.get(n,t,o);if(r.hasOwnProperty(t)){var f=r[t],l=f.children,d=f.rule;if(l&&null!=a&&"object"===(0,c.Z)(a))return i(a,l,e);if(d&&(0,u.a)(a)&&e(d))return d.get(a)}return a}})}function o(n){return function(){n.forEach((function(n){return n()}))}}return function(n){for(var e={},c=arguments.length,a=new Array(c>1?c-1:0),f=1;f<c;f++)a[f-1]=arguments[f];return{obj:i(n,r.children||{},u.RD.apply(void 0,[e].concat(a))),verify:o(t.apply(void 0,[e,n].concat(a)))}}}function v(n){return Object.assign({wp:!0,run:function(n,r,e,t,i){var o=e&&e.hasOwnProperty(t),d=o?e[t]:void 0,v=o&&null!=d&&"object"===(0,c.Z)(d)?(0,a.deepClone)(d):d;return function(){var e=null==r?n:(0,f.Z)(n,r),c=e&&(0,u.a)(e[t]),h=c?e[t]:void 0;!o&&c&&i()?delete e[t]:o===c&&h===d&&(0,a.deepEqual)(h,v)||!i()||(0,l.N)(n,(null==r?[]:[r]).concat(t).join("."),v)}}},n)}function h(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.xD;return[{name:o.EL,paths:u.ZZ,applies:(0,u.js)(o.EL,n)},{name:o.S5,paths:u.$8,applies:(0,u.js)(o.S5,n)}].map(v)}var p=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.xD;return d((0,u.Mp)(n).concat(h(n)))}();var b=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return function(r,e){r.global=r.global||{},r.bidder=r.bidder||{};var i=new Set(Object.keys(r.bidder)),o=[];function u(r){var t=n(r,e);return o.push(t.verify),t.obj}var c={global:u(r.global),bidder:Object.fromEntries(Object.entries(r.bidder).map((function(n){var r=(0,t.Z)(n,2);return[r[0],u(r[1])]})))};return{obj:c,verify:function(){Object.entries(c.bidder).filter((function(n){var r=(0,t.Z)(n,1)[0];return!i.has(r)})).forEach((function(i){var o=(0,t.Z)(i,2),u=o[0],c=o[1],f={},l=n(f,e);(0,a.mergeDeep)(l.obj,c),l.verify(),r.bidder[u]=f})),o.forEach((function(n){return n()}))}}}}()}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[25823],{35706:function(e,n,t){t.d(n,{Pd:function(){return d},Th:function(){return s},_U:function(){return f}});var r=t(55730),i=t(64358),o=t(20265),a=t(34614),u=(0,t(78640).R)(),c="outstream";function s(e){var n=this,t=e.url,o=e.config,a=e.id,u=e.callback,s=e.loaded,d=e.adUnitCode,f=e.renderNow;this.url=t,this.config=o,this.handlers={},this.id=a,this.renderNow=f,this.loaded=s,this.cmd=[],this.push=function(e){"function"==typeof e?n.loaded?e.call():n.cmd.push(e):(0,i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){n.loaded=!0,n.process()},this.render=function(){var e=this,n=arguments,o=function(){e._render?e._render.apply(e,n):(0,i.logWarn)("No render function was provided, please use .setRender on the renderer")};l(d)?((0,i.logWarn)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(d)),o()):f?o():(this.cmd.unshift(o),(0,r.B)(t,c,this.callback,this.documentContext))}.bind(this)}function d(e){return!(!e||!e.url&&!e.renderNow)}function f(e,n,t){var r=null;e.config&&e.config.documentResolver&&(r=e.config.documentResolver(n,document,t)),r||(r=document),e.documentContext=r,e.render(n,e.documentContext)}function l(e){var n=u.adUnits,t=(0,a.sE)(n,(function(n){return n.code===e}));if(!t)return!1;var r=(0,o.Z)(t,"renderer"),i=!!(r&&r.url&&r.render),c=(0,o.Z)(t,"mediaTypes.video.renderer"),s=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||s&&!0!==c.backupOnly)}s.install=function(e){return new s({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode,renderNow:e.renderNow})},s.prototype.getConfig=function(){return this.config},s.prototype.setRender=function(e){this._render=e},s.prototype.setEventHandlers=function(e){this.handlers=e},s.prototype.handleVideoEvent=function(e){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.logMessage)("Prebid Renderer event for id ".concat(n," type ").concat(t))},s.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.logError)("Error processing Renderer command: ",e)}}},74947:function(e,n,t){t.d(n,{EL:function(){return a},Jt:function(){return l},K$:function(){return i},S1:function(){return r},S5:function(){return o},UE:function(){return u},e:function(){return s},g0:function(){return f},oK:function(){return d},x$:function(){return c}});var r="accessDevice",i="syncUser",o="enrichUfpd",a="enrichEids",u="fetchBids",c="reportAnalytics",s="transmitEids",d="transmitUfpd",f="transmitPreciseGeo",l="transmitTid"},10286:function(e,n,t){t.d(n,{T:function(){return i}});var r=t(93304),i=(0,t(16310).Oj)((function(e){return r.ZP.resolveAlias(e)}))},9633:function(e,n,t){t.d(n,{UL:function(){return i},XG:function(){return a},_U:function(){return u},wu:function(){return r},y2:function(){return o}});var r="prebid",i="bidder",o="userId",a="rtd",u="analytics"},16310:function(e,n,t){t.d(n,{$k:function(){return u},Hw:function(){return v},IV:function(){return g},JR:function(){return a},Ki:function(){return s},Oj:function(){return p},Qf:function(){return f},Ww:function(){return m},bL:function(){return d},bp:function(){return c},cx:function(){return l}});var r=t(4942),i=t(9633),o=t(92797),a="component",u=a+"Type",c=a+"Name",s="adapterCode",d="storageType",f="configName",l="syncType",g="syncUrl",v="_config";function p(e){return function(n,t,o){var d,f=(d={},(0,r.Z)(d,u,n),(0,r.Z)(d,c,t),(0,r.Z)(d,a,"".concat(n,".").concat(t)),d);return n===i.UL&&(f[s]=e(t)),m(Object.assign(f,o))}}var m=(0,o.z3)("sync",(function(e){return e}))},41087:function(e,n,t){t.d(n,{$8:function(){return f},Db:function(){return p},Mp:function(){return E},RD:function(){return m},ZZ:function(){return l},a:function(){return h},hb:function(){return w},js:function(){return b}});var r=t(71002),i=t(70885),o=t(20265),a=t(3193),u=t(50571),c=t(74947);function s(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return d(e,n);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 d(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var f=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((function(e){return"user.".concat(e)})).concat("device.ext.cdep"),l=["user.eids","user.ext.eids"],g=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"];function v(e){return Object.assign({get:function(){},run:function(e,n,t,r,i){var o=t&&t[r];if(h(o)&&i()){var a=this.get(o);void 0===a?delete t[r]:t[r]=a}}},e)}function p(e){return e.forEach((function(e){e.paths=e.paths.map((function(e){var n=e.split("."),t=n.pop();return[n.length>0?n.join("."):null,t]}))})),function(n,t){for(var r=[],a=arguments.length,u=new Array(a>2?a-2:0),c=2;c<a;c++)u[c-2]=arguments[c];var d=m.apply(void 0,[n].concat(u));return e.forEach((function(e){if(!1!==n[e.name]){var a,u=s(e.paths);try{for(u.s();!(a=u.n()).done;){var c=(0,i.Z)(a.value,2),f=c[0],l=c[1],g=null==f?t:(0,o.Z)(t,f);if(r.push(e.run(t,f,g,l,d.bind(null,e))),!1===n[e.name])return}}catch(e){u.e(e)}finally{u.f()}}})),r.filter((function(e){return null!=e}))}}function m(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return function(n){return e.hasOwnProperty(n.name)||(e[n.name]=!!n.applies.apply(n,t)),e[n.name]}}function h(e){return null!=e&&("object"!==(0,r.Z)(e)||Object.keys(e).length>0)}function b(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.xD;return function(t){return!n(e,t)}}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD;return[{name:c.e,paths:["userId","userIdAsEids"],applies:b(c.e,e)},{name:c.Jt,paths:["ortb2Imp.ext.tid"],applies:b(c.Jt,e)}].map(v)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD;return[{name:c.oK,paths:f,applies:b(c.oK,e)},{name:c.e,paths:l,applies:b(c.e,e)},{name:c.g0,paths:g,applies:b(c.g0,e),get:function(e){return Math.round(100*(e+Number.EPSILON))/100}},{name:c.Jt,paths:["source.tid"],applies:b(c.Jt,e)}].map(v)}var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD,n=p(E(e)),t=p(y(e));return function(e){var r={};return{ortb2:function(t){return n(r,t,e),t},bidRequest:function(n){return t(r,n,e),n}}}}();(0,u.oB)(c.Jt,"enableTIDs config",(function(){if(!a.vc.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},50571:function(e,n,t){t.d(n,{oB:function(){return d},xD:function(){return f}});var r=t(70885),i=t(64358),o=t(16310);function a(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return u(e,n);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 u(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.prefixLog)("Activity control:"),n={};function t(e){return n[e]=n[e]||[]}function u(n,t,r,i){var a;try{a=r(i)}catch(r){e.logError("Exception in rule ".concat(t," for '").concat(n,"'"),r),a={allow:!1,reason:r}}return a&&Object.assign({activity:n,name:t,component:i[o.JR]},a)}var c={},s=1e3;function d(n){var t=n.activity,r=n.name,i=n.allow,o=n.reason,a=n.component,u="".concat(r," ").concat(i?"allowed":"denied"," '").concat(t,"' for '").concat(a,"'").concat(o?":":""),d=c.hasOwnProperty(u);if(d&&clearTimeout(c[u]),c[u]=setTimeout((function(){return delete c[u]}),s),!d){var f=[u];o&&f.push(o),(i?e.logInfo:e.logWarn).apply(e,f)}}return[function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=t(e),u=a.findIndex((function(e){var n=(0,r.Z)(e,1)[0];return o<n})),c=[o,n,i];return a.splice(u<0?a.length:u,0,c),function(){var e=a.indexOf(c);e>=0&&a.splice(e,1)}},function(e,n){var i,o,c,s=a(t(e));try{for(s.s();!(c=s.n()).done;){var f=(0,r.Z)(c.value,3),l=f[0],g=f[1],v=f[2];if(i!==l&&o)break;i=l;var p=u(e,g,v,n);if(p){if(!p.allow)return d(p),!1;o=p}}}catch(e){s.e(e)}finally{s.f()}return o&&d(o),!0}]}(),s=(0,r.Z)(c,2),d=s[0],f=s[1]},13667:function(e,n,t){t.d(n,{E$:function(){return I},Lj:function(){return C},XD:function(){return S},XF:function(){return O},oc:function(){return T},tV:function(){return B}});var r=t(4942),i=t(64358),o=t(20265),a=t(52021),u=t(62200),c=t(3193),s=t(35706),d=t(24679),f=t(78653),l=t(88099),g=t(92797),v=t(70059),p=u.FP.AD_RENDER_FAILED,m=u.FP.AD_RENDER_SUCCEEDED,h=u.FP.STALE_RENDER,b=u.FP.BID_WON,y=u.q_.EXCEPTION;function E(e){var n=e.reason,t=e.message,r=e.bid,o=e.id,u={reason:n,message:t};r&&(u.bid=r,u.adId=r.adId),o&&(u.adId=o),(0,i.logError)("Error rendering ad (id: ".concat(o,"): ").concat(t)),a.emit(p,u)}function w(e){var n=e.doc,t=e.bid,r=e.id,i={doc:n};t&&(i.bid=t),r&&(i.adId=r),a.emit(m,i)}function T(e,n){switch(e.event){case u.FP.AD_RENDER_FAILED:E({bid:n,id:n.adId,reason:e.info.reason,message:e.info.message});break;case u.FP.AD_RENDER_SUCCEEDED:w({doc:null,bid:n,id:n.adId});break;default:(0,i.logError)("Received event request for unsupported event: '".concat(e.event,"' (adId: '").concat(n.adId,"')"))}}function I(e,n,t){var r=t.resizeFn,i=t.fireTrackers,o=void 0===i?v.e6:i;if("resizeNativeHeight"===e.action)r(e.width,e.height);else o(e,n)}var A=(0,r.Z)({},u.X3.EVENT,T);A[u.X3.NATIVE]=I;var C=(0,g.z3)("sync",(function(e,n){var t=e.ad,r=e.adUrl,o=e.cpm,a=e.originalCpm,u=e.width,c=e.height,s={AUCTION_PRICE:a||o,CLICKTHROUGH:(null==n?void 0:n.clickUrl)||""};return{ad:(0,i.replaceMacros)(t,s),adUrl:(0,i.replaceMacros)(r,s),width:u,height:c}})),O=(0,g.z3)("sync",(function(e){var n=e.renderFn,t=e.resizeFn,r=e.bidResponse,i=e.options;if(r.mediaType!==d.pX){var o=C(r,i);n(Object.assign({adId:r.adId},o));var a=o.width,c=o.height;null!=(null!=a?a:c)&&t(a,c)}else E({reason:u.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:r,id:r.adId})}));function S(e){var n=e.renderFn,t=e.resizeFn,r=e.adId,s=e.options,d=e.bidResponse,l=e.doc;if(null!=d){if(d.status!==u.UE.RENDERED||((0,i.logWarn)("Ad id ".concat(r," has been rendered before")),a.emit(h,d),!(0,o.Z)(c.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{O({renderFn:n,resizeFn:t,bidResponse:d,options:s,doc:l})}catch(e){E({reason:u.q_.EXCEPTION,message:e.message,id:r,bid:d})}f.K.addWinningBid(d),a.emit(b,d)}}else E({reason:u.q_.CANNOT_FIND_AD,message:"Cannot find ad '".concat(r,"'"),id:r})}function B(e,n,t){var r;function o(e,t){E(Object.assign({id:n,bid:r},{reason:e,message:t}))}function a(n,t){e.defaultView&&e.defaultView.frameElement&&(n&&(e.defaultView.frameElement.width=n),t&&(e.defaultView.frameElement.height=t))}var c,s=(c={resizeFn:a},function(e,n,t){A.hasOwnProperty(e)&&A[e](n,t,c)});try{n&&e?(r=f.K.findBidByAdId(n),e!==document||(0,i.inIframe)()?S({renderFn:function(n){n.ad?(e.write(n.ad),e.close(),w({doc:e,bid:r,adId:r.adId})):(0,l.W)(r).then((function(t){return t(n,{sendMessage:function(e,n){return s(e,n,r)},mkFrame:i.createIframe},e.defaultView)})).then((function(){return w({doc:e,bid:r,adId:r.adId})}),(function(e){o((null==e?void 0:e.reason)||u.q_.EXCEPTION,null==e?void 0:e.message),(null==e?void 0:e.stack)&&(0,i.logError)(e)}));var t=document.createComment("Creative ".concat(r.creativeId," served by ").concat(r.bidder," Prebid.js Header Bidding"));(0,i.insertElement)(t,e,"html")},resizeFn:a,adId:n,options:{clickUrl:null==t?void 0:t.clickThrough},bidResponse:r,doc:e}):o(u.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document.")):o(u.q_.MISSING_DOC_OR_ADID,"missing ".concat(n?"doc":"adId"))}catch(e){o(y,e.message)}}O.before((function(e,n){var t=n.bidResponse,r=n.doc;(0,s.Pd)(t.renderer)?((0,s._U)(t.renderer,t,r),w({doc:r,bid:t,id:t.adId}),e.bail()):e(n)}),100)},54284:function(e,n,t){t.d(n,{W:function(){return a}});var r=t(78640),i=t(64358),o=(0,r.R)();function a(e,n){o.adServers=o.adServers||{},o.adServers[e]=o.adServers[e]||{},Object.keys(n).forEach((function(t){o.adServers[e][t]?(0,i.logWarn)("Attempting to add an already registered function property ".concat(t," for AdServer ").concat(e,".")):o.adServers[e][t]=n[t]}))}},48525:function(e,n,t){function r(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}t.d(n,{Z:function(){return r}})},93304:function(e,n,t){t.d(n,{qJ:function(){return P},ZP:function(){return ee},JO:function(){return z},uV:function(){return V},Ct:function(){return J},O6:function(){return F},_x:function(){return K}});var r=t(42982),i=t(70885),o=t(4942),a=t(64358),u=t(20265),c=t(70059),s=t(14699),d=t(48928),f=t(3193),l=t(92797),g=t(34614),v={};function p(e,n,t){var r=function(e,n){var t=v[e]=v[e]||{bidders:{}};return n?t.bidders[n]=t.bidders[n]||{}:t}(e,t);return r[n]=(r[n]||0)+1,r[n]}function m(e){return p(e,"requestsCounter")}function h(e){return(0,u.Z)(v,"".concat(e,".requestsCounter"))||0}function b(e,n){return(0,u.Z)(v,"".concat(e,".bidders.").concat(n,".requestsCounter"))||0}function y(e,n){return(0,u.Z)(v,"".concat(e,".bidders.").concat(n,".winsCounter"))||0}var E=t(25102),w=t(34516),T=t(52021),I=t(62200),A=t(99128),C=t(78653),O=t(9633),S=t(50571),B=t(74947),k=t(16310),R=t(41087);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U="pbsBidAdapter",P={CLIENT:"client",SERVER:"server"},_={isAllowed:S.xD,redact:R.hb},q={},N=q.bidderRegistry={},x=q.aliasRegistry={},Z=[];f.vc.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(Z=(0,a.isArray)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var M={},W=(0,k.Oj)((function(e){return q.resolveAlias(e)}));function F(e){return W(O.wu,U,(0,o.Z)({},k.Qf,e.configName))}var L=(0,l.z3)("sync",(function(e){var n=e.bidderCode,t=e.auctionId,r=e.bidderRequestId,i=e.adUnits,o=e.src,c=e.metrics;return i.reduce((function(e,i){var s=i.bids.filter((function(e){return e.bidder===n}));return null==n&&0===s.length&&null!=i.s2sBid&&s.push({bidder:null}),e.push(s.reduce((function(e,s){var d=null==(s=Object.assign({},s,{ortb2Imp:(0,a.mergeDeep)({},i.ortb2Imp,s.ortb2Imp)},(0,a.getDefinedParams)(i,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?i.mediaTypes:s.mediaTypes;return(0,a.isValidMediaTypes)(d)?s=Object.assign({},s,{mediaTypes:d}):(0,a.logError)("mediaTypes is not correctly configured for adunit ".concat(i.code)),"client"===o&&function(e,n){p(e,"requestsCounter",n)}(i.code,n),e.push(Object.assign({},s,{adUnitCode:i.code,transactionId:i.transactionId,adUnitId:i.adUnitId,sizes:(0,u.Z)(d,"banner.sizes")||(0,u.Z)(d,"video.playerSize")||[],bidId:s.bid_id||(0,a.getUniqueIdentifierStr)(),bidderRequestId:r,auctionId:t,src:o,metrics:c,bidRequestsCount:h(i.code),bidderRequestsCount:b(i.code,s.bidder),bidderWinsCount:y(i.code,s.bidder)})),e}),[])),e}),[]).reduce(a.flatten,[]).filter((function(e){return""!==e}))}),"getBids");var z=(0,l.z3)("sync",(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?V:r;if(null==n)return e;var o=i(n);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit");function G(e,n){var t=(0,a.deepClone)(e),r=!1;return t.forEach((function(e){var t=e.bids.filter((function(e){var t;return e.module===U&&(null===(t=e.params)||void 0===t?void 0:t.configName)===n.configName}));1===t.length?(e.s2sBid=t[0],r=!0,e.ortb2Imp=(0,a.mergeDeep)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):t.length>1&&(0,a.logWarn)('Multiple "module" bids for the same s2s configuration; all will be ignored',t),e.bids=z(e.bids,n).map((function(e){return e.bid_id=(0,a.getUniqueIdentifierStr)(),e}))})),{adUnits:t=t.filter((function(e){return 0!==e.bids.length||null!=e.s2sBid})),hasModuleBids:r}}function H(e){var n=(0,a.deepClone)(e);return n.forEach((function(e){e.bids=z(e.bids,null)})),n=n.filter((function(e){return 0!==e.bids.length}))}var K=(0,l.z3)("sync",(function(e,n){return e}),"setupAdUnitMediaTypes");function V(e){(0,a.isArray)(e)||(e=[e]);var n=new Set([null]);return e.filter((function(e){return e&&e.enabled})).flatMap((function(e){return e.bidders})).forEach((function(e){return n.add(e)})),n}var J=(0,l.z3)("sync",(function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getS2SBidders,u=void 0===i?V:i,c=u(n);return(0,a.getBidderCodes)(e).reduce((function(e,n){return e[c.has(n)?P.SERVER:P.CLIENT].push(n),e}),(t={},(0,o.Z)(t,P.CLIENT,[]),(0,o.Z)(t,P.SERVER,[]),t))}),"partitionBidders");function $(e,n){var t=N[e],r=(null==t?void 0:t.getSpec)&&t.getSpec();if(r&&r[n]&&"function"==typeof r[n])return[r,r[n]]}function Q(e,n,t,r){try{(0,a.logInfo)("Invoking ".concat(e,".").concat(n));for(var i=arguments.length,o=new Array(i>4?i-4:0),u=4;u<i;u++)o[u-4]=arguments[u];f.vc.runWithBidder(e,r.bind.apply(r,[t].concat(o)))}catch(t){(0,a.logWarn)("Error calling ".concat(n," of ").concat(e))}}function X(e,n,t){if((null==t?void 0:t.src)!==I.os.SRC){var i=$(e,n);null!=i&&Q.apply(void 0,[e,n].concat((0,r.Z)(i),[t]))}}function Y(e){for(var n=new Set;x.hasOwnProperty(e)&&!n.has(e);)n.add(e),e=x[e];return e}q.makeBidRequests=(0,l.z3)("sync",(function(e,n,t,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6?arguments[6]:void 0;u=(0,A.Bf)(u),T.emit(I.FP.BEFORE_REQUEST_BIDS,e),(0,c.Fb)(e),e.forEach((function(e){(0,a.isPlainObject)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((function(e){return!e.bidder||_.isAllowed(B.UE,W(O.UL,e.bidder))})),m(e.code)})),e=K(e,i);var s=J(e,Z),d=s[P.CLIENT],l=s[P.SERVER];f.vc.getConfig("bidderSequence")===f.FD&&(d=(0,a.shuffle)(d));var v=(0,E.nH)(),p=[],h=o.global||{},b=o.bidder||{};function y(e,n){var r=_.redact(null!=n?n:W(O.UL,e.bidderCode)),i=Object.freeze(r.ortb2((0,a.mergeDeep)({source:{tid:t}},h,b[e.bidderCode])));return e.ortb2=i,e.bids=e.bids.map((function(e){return e.ortb2=i,r.bidRequest(e)})),e}Z.forEach((function(r){var i=F(r);if(r&&r.enabled&&_.isAllowed(B.UE,i)){var o=G(e,r),c=o.adUnits,s=o.hasModuleBids,d=(0,a.generateUUID)();(0===l.length&&s?[null]:l).forEach((function(e){var o=(0,a.getUniqueIdentifierStr)(),s=u.fork(),f=y({bidderCode:e,auctionId:t,bidderRequestId:o,uniquePbsTid:d,bids:L({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.deepClone)(c),src:I.os.SRC,metrics:s}),auctionStart:n,timeout:r.timeout,src:I.os.SRC,refererInfo:v,metrics:s},i);0!==f.bids.length&&p.push(f)})),c.forEach((function(e){var n=e.bids.filter((function(e){return(0,g.sE)(p,(function(n){return(0,g.sE)(n.bids,(function(n){return n.bidId===e.bid_id}))}))}));e.bids=n})),p.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=c.filter((function(e){return e.bids.length>0||null!=e.s2sBid})))}))}}));var C=H(e);return d.forEach((function(e){var o=(0,a.getUniqueIdentifierStr)(),c=u.fork(),s=y({bidderCode:e,auctionId:t,bidderRequestId:o,bids:L({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.deepClone)(C),labels:i,src:"client",metrics:c}),auctionStart:n,timeout:r,refererInfo:v,metrics:c}),d=N[e];d||(0,a.logError)("Trying to make a request for bidder that does not exist: ".concat(e)),d&&s.bids&&0!==s.bids.length&&p.push(s)})),p.forEach((function(e){w.rp.getConsentData()&&(e.gdprConsent=w.rp.getConsentData()),w.nX.getConsentData()&&(e.uspConsent=w.nX.getConsentData()),w.TJ.getConsentData()&&(e.gppConsent=w.TJ.getConsentData())})),p}),"makeBidRequests"),q.callBids=function(e,n,t,r,o,u,c){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(n.length){var l=n.reduce((function(e,n){return e[Number(void 0!==n.src&&n.src===I.os.SRC)].push(n),e}),[[],[]]),g=(0,i.Z)(l,2),v=g[0],p=g[1],m=[];p.forEach((function(e){for(var n=-1,t=0;t<m.length;++t)if(e.uniquePbsTid===m[t].uniquePbsTid){n=t;break}n<=-1&&m.push(e)}));var h=0;Z.forEach((function(e){if(e&&m[h]&&V(e).has(m[h].bidderCode)){var n=(0,d.OI)(u,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),i=e.bidders,f=N[e.adapter],l=m[h].uniquePbsTid,g=m[h].adUnitsS2SCopy,v=p.filter((function(e){return e.uniquePbsTid===l}));if(f){var b={ad_units:g,s2sConfig:e,ortb2Fragments:s};if(b.ad_units.length){var y=v.map((function(e){return e.start=(0,a.timestamp)(),function(n){n||c(e.bidderRequestId),r.apply(e,arguments)}})),E=(0,a.getBidderCodes)(b.ad_units).filter((function(e){return i.includes(e)}));(0,a.logMessage)("CALLING S2S HEADER BIDDERS ==== ".concat(E.length>0?E.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),v.forEach((function(e){T.emit(I.FP.BID_REQUESTED,j(j({},e),{},{tid:e.auctionId}))})),f.callBids(b,p,t,(function(e){return y.forEach((function(n){return n(e)}))}),n)}}else(0,a.logError)("missing "+e.adapter);h++}})),v.forEach((function(e){e.start=(0,a.timestamp)();var n=N[e.bidderCode];f.vc.runWithBidder(e.bidderCode,(function(){(0,a.logMessage)("CALLING BIDDER"),T.emit(I.FP.BID_REQUESTED,e)}));var i=(0,d.OI)(u,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),s=r.bind(e);try{f.vc.runWithBidder(e.bidderCode,n.callBids.bind(n,e,t,s,i,(function(){return c(e.bidderRequestId)}),f.vc.callbackWithBidder(e.bidderCode)))}catch(n){(0,a.logError)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:n,bidRequest:e}),s()}}))}else(0,a.logWarn)("callBids executed with no bidRequests.  Were they filtered by labels or sizing?")},q.videoAdapters=[],q.registerBidAdapter=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.supportedMediaTypes,o=void 0===i?[]:i;e&&n?"function"==typeof e.callBids?(N[n]=e,w.qh.register(O.UL,n,null===(t=e.getSpec)||void 0===t?void 0:t.call(e).gvlid),(0,g.q9)(o,"video")&&q.videoAdapters.push(n),(0,g.q9)(o,"native")&&c.Sg.push(n)):(0,a.logError)("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):(0,a.logError)("bidAdapter or bidderCode not specified")},q.aliasBidAdapter=function(e,n,t){if(void 0===N[n]){var r=N[e];if(void 0===r){var i=[];Z.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,g.q9)(r,n)?x[n]=e:i.push(e)}})),i.forEach((function(e){(0,a.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,u=function(e){var n=[];return(0,g.q9)(q.videoAdapters,e)&&n.push("video"),(0,g.q9)(c.Sg,e)&&n.push("native"),n}(e);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(n);else{var d=r.getSpec(),f=t&&t.gvlid;null!=d.gvlid&&null==f&&(0,a.logWarn)("Alias '".concat(n,"' will NOT re-use the GVL ID of the original adapter ('").concat(d.code,"', gvlid: ").concat(d.gvlid,"). Functionality that requires TCF consent may not work as expected."));var l=t&&t.skipPbsAliasing;o=(0,s.PZ)(Object.assign({},d,{code:n,gvlid:f,skipPbsAliasing:l})),x[n]=e}q.registerBidAdapter(o,n,{supportedMediaTypes:u})}catch(n){(0,a.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,a.logMessage)('alias name "'+n+'" has been already specified.')},q.resolveAlias=function(e){for(var n,t=e;x[t]&&(!n||!n.has(t));)t=x[t],(n=n||new Set).add(t);return t},q.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code,r=e.gvlid;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,M[t]={adapter:n,gvlid:r},w.qh.register(O._U,t,r)):(0,a.logError)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n        analytics adapter must implement an enableAnalytics() function')):(0,a.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},q.enableAnalytics=function(e){(0,a.isArray)(e)||(e=[e]),e.forEach((function(e){var n=M[e.provider];n&&n.adapter?_.isAllowed(B.x$,W(O._U,e.provider,(0,o.Z)({},k.Hw,e)))&&n.adapter.enableAnalytics(e):(0,a.logError)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},q.getBidAdapter=function(e){return N[e]},q.getAnalyticsAdapter=function(e){return M[e]},q.callTimedOutBidders=function(e,n,t){n=n.map((function(n){return n.params=(0,a.getUserConfiguredParams)(e,n.adUnitCode,n.bidder),n.timeout=t,n})),n=(0,a.groupBy)(n,"bidder"),Object.keys(n).forEach((function(e){X(e,"onTimeout",n[e])}))},q.callBidWonBidder=function(e,n,t){var r,i;n.params=(0,a.getUserConfiguredParams)(t,n.adUnitCode,n.bidder),r=n.adUnitCode,i=n.bidder,p(r,"winsCounter",i),X(e,"onBidWon",n)},q.callBidBillableBidder=function(e){X(e.bidder,"onBidBillable",e)},q.callSetTargetingBidder=function(e,n){X(e,"onSetTargeting",n)},q.callBidViewableBidder=function(e,n){X(e,"onBidViewable",n)},q.callBidderError=function(e,n,t){X(e,"onBidderError",{error:n,bidderRequest:t})},q.callDataDeletionRequest=(0,l.z3)("sync",(function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var o="onDataDeletionRequest";Object.keys(N).filter((function(e){return!x.hasOwnProperty(e)})).forEach((function(e){var t=$(e,o);if(null!=t){var i=C.K.getBidsRequested().filter((function(n){return Y(n.bidderCode)===e}));Q.apply(void 0,[e,o].concat((0,r.Z)(t),[i],n))}})),Object.entries(M).forEach((function(e){var t,r=(0,i.Z)(e,2),u=r[0],c=r[1],s=null==c||null===(t=c.adapter)||void 0===t?void 0:t[o];if("function"==typeof s)try{s.apply(c.adapter,n)}catch(e){(0,a.logError)("error calling ".concat(o," of ").concat(u),e)}}))}));var ee=q},14699:function(e,n,t){t.d(n,{BF:function(){return j},JY:function(){return P},PZ:function(){return S},dX:function(){return O}});var r=t(71002),i=t(70885),o=t(48525),a=t(93304),u=t(3193),c=t(69626),s=t(11974),d=t(70059),f=t(90154),l=t(62200),g=t(52021),v=t(34614),p=t(64358),m=t(92797),h=t(78653),b=t(55975),y=t(99128),E=t(50571),w=t(10286),T=t(9633),I=t(74947),A=["cpm","ttl","creativeId","netRevenue","currency"],C=["auctionId","transactionId"];function O(e){var n=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function t(e){var t=S(e);a.ZP.registerBidAdapter(t,e.code,n)}t(e),Array.isArray(e.aliases)&&e.aliases.forEach((function(n){var r,i,o=n;(0,p.isPlainObject)(n)&&(o=n.code,r=n.gvlid,i=n.skipPbsAliasing),a.ZP.aliasRegistry[o]=e.code,t(Object.assign({},e,{code:o,gvlid:r,skipPbsAliasing:i}))}))}function S(e){return Object.assign(new o.Z(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:n,callBids:function(t,r,o,s,d,f){if(Array.isArray(t.bids)){var v=function(e){if((0,E.xD)(I.Jt,(0,w.T)(T.UL,e)))return{bidRequest:function(e){return e},bidderRequest:function(e){return e}};function n(e,n,t){return C.includes(n)?null:Reflect.get(e,n,t)}function t(e,n){var t=new Proxy(e,n);return Object.entries(e).filter((function(e){var n=(0,i.Z)(e,2);return n[0],"function"==typeof n[1]})).forEach((function(n){var r=(0,i.Z)(n,2),o=r[0],a=r[1];return t[o]=a.bind(e)})),t}var r=(0,p.memoize)((function(e){return t(e,{get:n})}),(function(e){return e.bidId}));return{bidRequest:r,bidderRequest:function(e){return t(e,{get:function(t,i,o){return"bids"===i?e.bids.map(r):n(t,i,o)}})}}}(t.bidderCode),m={},h=[],A=_(t).measureTime("validate",(function(){return t.bids.filter((function(n){return function(n){if(!e.isBidRequestValid(n))return(0,p.logWarn)("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(n))),!1;return!0}(v.bidRequest(n))}))}));if(0!==A.length){var O={};A.forEach((function(e){O[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),R(e,A.map(v.bidRequest),v.bidderRequest(t),s,f,{onRequest:function(e){return g.emit(l.FP.BEFORE_BIDDER_HTTP,t,e)},onResponse:function(n){d(e.code),h.push(n)},onPaapi:function(e){var n=O[e.bidId];n?j(n,e.config):(0,p.logWarn)("Received fledge auction configuration for an unknown bidId",e)},onError:function(n,r){r.timedOut||d(e.code),a.ZP.callBidderError(e.code,r,t),g.emit(l.FP.BIDDER_ERROR,{error:r,bidderRequest:t}),(0,p.logError)("Server call for ".concat(e.code," failed: ").concat(n," ").concat(r.status,". Continuing without bids."))},onBid:function(n){var t=O[n.requestId];if(t){if(n.adapterCode=t.bidder,function(e,n){var t=b.S.get(n,"allowAlternateBidderCodes")||!1,r=b.S.get(n,"allowedAlternateBidderCodes");if(e&&n&&n!==e&&(r=(0,p.isArray)(r)?r.map((function(e){return e.trim().toLowerCase()})).filter((function(e){return!!e})).filter(p.uniques):r,!t||(0,p.isArray)(r)&&"*"!==r[0]&&!r.includes(e)))return!0;return!1}(n.bidderCode,t.bidder))return(0,p.logWarn)("".concat(n.bidderCode," is not a registered partner or known bidder of ").concat(t.bidder,", hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.")),void r.reject(t.adUnitCode,n,l.Gw.BIDDER_DISALLOWED);n.originalCpm=n.cpm,n.originalCurrency=n.currency,n.meta=n.meta||Object.assign({},n[t.bidder]);var i=Object.assign((0,c.m)(l.Q_.GOOD,t),n,(0,p.pick)(t,C));!function(e,n){var t=(0,y.Bf)(n.metrics);t.checkpoint("addBidResponse"),m[e]=!0,t.measureTime("addBidResponse.validate",(function(){return P(e,n)}))?r(e,n):r.reject(e,n,l.Gw.INVALID)}(t.adUnitCode,i)}else(0,p.logWarn)("Bidder ".concat(e.code," made bid for unknown request ID: ").concat(n.requestId,". Ignoring.")),r.reject(null,n,l.Gw.INVALID_REQUEST_ID)},onCompletion:S})}else S()}function S(){o(),u.vc.runWithBidder(e.code,(function(){g.emit(l.FP.BIDDER_DONE,t),n(h,t.gdprConsent,t.uspConsent,t.gppConsent)}))}}});function n(n,t,r,i){D(e,n,t,r,i)}}var B=["paapiAuctionConfigs","fledgeAuctionConfigs"],k=["bids"].concat(B);var R=(0,m.z3)("sync",(function(e,n,t,o,a,u){var c=u.onRequest,s=u.onResponse,d=u.onPaapi,f=u.onError,l=u.onBid,g=u.onCompletion,v=_(t);g=v.startTiming("total").stopBefore(g);var m=v.measureTime("buildRequests",(function(){return e.buildRequests(n,t)}));if(m&&0!==m.length){Array.isArray(m)||(m=[m]);var h=(0,p.delayExecution)(g,m.length);m.forEach((function(n){var t=v.fork();function u(e){null!=e&&(e.metrics=t.fork().renameWith()),l(e)}var g=a((function(r,o){y();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:o.getResponseHeader.bind(o)}},s(r);try{r=t.measureTime("interpretResponse",(function(){return e.interpretResponse(r,n)}))}catch(n){return(0,p.logError)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,n),void h()}var a,c;r&&!Object.keys(r).some((function(e){return!k.includes(e)}))?(a=r.bids,c=function(e){var n=B.map((function(n){return e[n]})),t=(0,i.Z)(n,2),r=t[0],o=t[1];if(null!=r&&null!=o)throw new Error("Adapter response should use ".concat(B[0]," over ").concat(B[1],", not both"));return null!=r?r:o}(r)):a=r,(0,p.isArray)(c)&&c.forEach(d),a&&((0,p.isArray)(a)?a.forEach(u):u(a)),h()})),m=a((function(e,n){y(),f(e,n),h()}));c(n);var y=t.startTiming("net");function A(t){var r,i=n.options;return Object.assign(t,i,{browsingTopics:!(null!=i&&i.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&((null===(r=b.S.get(e.code,"topicsHeader"))||void 0===r||r)&&(0,E.xD)(I.oK,(0,w.T)(T.UL,e.code)))})}switch(n.method){case"GET":o("".concat(n.url).concat(function(e){if(e)return"?".concat("object"===(0,r.Z)(e)?(0,p.parseQueryStringParameters)(e):e);return""}(n.data)),{success:g,error:m},void 0,A({method:"GET",withCredentials:!0}));break;case"POST":o(n.url,{success:g,error:m},"string"==typeof n.data?n.data:JSON.stringify(n.data),A({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,p.logWarn)("Skipping invalid request from ".concat(e.code,". Request type ").concat(n.type," must be GET or POST")),h()}}))}else g()}),"processBidderRequests"),D=(0,m.z3)("async",(function(e,n,t,r,i){var o=u.vc.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!a.ZP.aliasRegistry[e.code])){var c=u.vc.getConfig("userSync.filterSettings"),d=e.getUserSyncs({iframeEnabled:!(!c||!c.iframe&&!c.all),pixelEnabled:!(!c||!c.image&&!c.all)},n,t,r,i);d&&(Array.isArray(d)||(d=[d]),d.forEach((function(n){s.k_.registerSync(n.type,e.code,n.url)})),s.k_.bidderDone(e.code))}}),"registerSyncs"),j=(0,m.z3)("sync",(function(e,n){}),"addComponentAuction");function U(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,o=void 0===r?h.K.index:r;if((n.width||0===parseInt(n.width,10))&&(n.height||0===parseInt(n.height,10)))return n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),!0;var a=o.getBidRequest(n),u=o.getMediaTypes(n),c=a&&a.sizes||u&&u.banner&&u.banner.sizes,s=(0,p.parseSizesInput)(c);if(1===s.length){var d=s[0].split("x"),f=(0,i.Z)(d,2),l=f[0],g=f[1];return n.width=parseInt(l,10),n.height=parseInt(g,10),!0}return!1}function P(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?h.K.index:r;function o(){var e=Object.keys(n);return A.every((function(t){return(0,v.q9)(e,t)&&!(0,v.q9)([void 0,null],n[t])}))}function a(e){return"Invalid bid from ".concat(n.bidderCode,". Ignoring bid: ").concat(e)}return e?n?o()?"native"!==n.mediaType||(0,d.r4)(n,{index:i})?"video"!==n.mediaType||(0,f.Dn)(n,{index:i})?!("banner"===n.mediaType&&!U(e,n,{index:i}))||((0,p.logError)(a("Banner bids require a width and height")),!1):((0,p.logError)(a("Video bid does not have required vastUrl or renderer property")),!1):((0,p.logError)(a("Native bid missing some required properties.")),!1):((0,p.logError)(a("Bidder ".concat(n.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1):((0,p.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):((0,p.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}function _(e){return(0,y.Bf)(e.metrics).renameWith((function(n){return["adapter.client.".concat(n),"adapters.client.".concat(e.bidderCode,".").concat(n)]}))}},55730:function(e,n,t){t.d(n,{B:function(){return u}});var r=t(34614),i=t(64358),o=new WeakMap,a=["debugging","adloox","criteo","outstream","adagio","spotx","browsi","brandmetrics","justtag","tncId","akamaidap","ftrackId","inskin","hadron","medianet","improvedigital","azerionedge","aaxBlockmeter","confiant","arcspan","airgrid","clean.io","a1Media","geoedge","mediafilter","qortex","dynamicAdBoost","contxtful","id5","51Degrees"];function u(e,n,t,u,c){if(n&&e){if((0,r.q9)(a,n)){u||(u=document);var s=l(u,e);if(s)return t&&"function"==typeof t&&(s.loaded?t():s.callbacks.push(t)),s.tag;var d=o.get(u)||{},f={loaded:!1,tag:null,callbacks:[]};return d[e]=f,o.set(u,d),t&&"function"==typeof t&&f.callbacks.push(t),(0,i.logWarn)("module ".concat(n," is loading external JavaScript")),function(n,t,r,o){r||(r=document);var a=r.createElement("script");a.type="text/javascript",a.async=!0;var u=l(r,e);u&&(u.tag=a);a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,t())}:a.onload=function(){t()};a.src=n,o&&(0,i.setScriptAttributes)(a,o);return(0,i.insertElement)(a,r),a}(e,(function(){f.loaded=!0;try{for(var e=0;e<f.callbacks.length;e++)f.callbacks[e]()}catch(e){(0,i.logError)("Error executing callback","adloader.js:loadExternalScript",e)}}),u,c)}(0,i.logError)("".concat(n," not whitelisted for loading external JavaScript"))}else(0,i.logError)("cannot load external script without url and moduleCode");function l(e,n){var t=o.get(e);return t&&t[n]?t[n]:null}}},7563:function(e,n,t){t.d(n,{G:function(){return r}});var r=(0,t(92797).z3)("sync",(function(){}))},48928:function(e,n,t){t.d(n,{OI:function(){return p},he:function(){return h},hj:function(){return m}});var r=t(70885),i=t(71002),o=t(3193),a=t(64358),u={fetch:window.fetch.bind(window),makeRequest:function(e,n){return new Request(e,n)},timeout:function(e,n){var t=new AbortController,r=setTimeout((function(){t.abort(),(0,a.logError)("Request timeout after ".concat(e,"ms"),n),r=null}),e);return{signal:t.signal,done:function(){r&&clearTimeout(r)}}}},c="GET",s="POST",d="Content-Type";function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.method||(n?s:c);if(r===c&&n){var i=(0,a.parseUrl)(e,t);Object.assign(i.search,n),e=(0,a.buildUrl)(i)}var o=new Headers(t.customHeaders);o.set(d,t.contentType||"text/plain");var f={method:r,headers:o};return r!==c&&n&&(f.body=n),t.withCredentials&&(f.credentials="include"),t.browsingTopics&&isSecureContext&&(f.browsingTopics=!0),u.makeRequest(e,f)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,r=n.done,i=function(n,t){var r,i,a;null==e||null!=(null===(r=t)||void 0===r?void 0:r.signal)||o.vc.getConfig("disableAjaxTimeout")||(a=u.timeout(e,n),t=Object.assign({signal:a.signal},t));var c=u.fetch(n,t);return null!=(null===(i=a)||void 0===i?void 0:i.done)&&(c=c.finally(a.done)),c};return null==t&&null==r||(i=function(e){return function(n,i){var o=new URL(null==(null==n?void 0:n.url)?n:n.url,document.location).origin,a=e(n,i);return t&&t(o),r&&(a=a.finally((function(){return r(o)}))),a}}(i)),i}function g(e,n){var t=e.status,r=e.statusText,i=void 0===r?"":r,o=e.headers,u=e.url,c=0;function s(e){if(0===c)try{var t,r;c=(new DOMParser).parseFromString(n,null==o||null===(t=o.get(d))||void 0===t||null===(r=t.split(";"))||void 0===r?void 0:r[0])}catch(n){c=null,e&&e(n)}return c}return{readyState:XMLHttpRequest.DONE,status:t,statusText:i,responseText:n,response:n,responseType:"",responseURL:u,get responseXML(){return s(a.logError)},getResponseHeader:function(e){return null!=o&&o.has(e)?o.get(e):null},toJSON:function(){return Object.assign({responseXML:s()},this)},timedOut:!1}}function v(e,n){var t="object"===(0,i.Z)(n)&&null!=n?n:{success:"function"==typeof n?n:function(){return null},error:function(e,n){return(0,a.logError)("Network error",e,n)}},o=t.success,u=t.error;e.then((function(e){return e.text().then((function(n){return[e,n]}))})).then((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],a=g(t,i);t.ok||304===t.status?o(i,a):u(t.statusText,a)}),(function(e){return u("",Object.assign(g({status:0},""),{reason:e,timedOut:"AbortError"===(null==e?void 0:e.name)}))}))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,r=n.done,i=l(e,{request:t,done:r});return function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};v(i(f(e,t,r)),n)}}var m=p(),h=l()},25686:function(e,n,t){t.d(n,{LX:function(){return $},RH:function(){return K},Yt:function(){return U},Yw:function(){return O},dg:function(){return V},e0:function(){return _},lU:function(){return N},mv:function(){return S},vO:function(){return j}});var r=t(71002),i=t(64358),o=t(20265),a=t(56463),u=t(70059),c=t(79885),s=t(35706),d=t(3193),f=t(11974),l=t(92797),g=t(34614),v=t(90154),p=t(24679),m=t(78653),h=t(55975),b=t(52021),y=t(93304),E=t(62200),w=t(68792),T=t(99128),I=t(36066),A=t(78640),C=f.k_.syncUsers,O="inProgress",S="completed";b.on(E.FP.BID_ADJUSTMENT,(function(e){!function(e){var n=(0,I.O)(e.cpm,e);n>=0&&(e.cpm=n)}(e)}));var B={},k={},R=[],D=(0,A.R)();function j(e){var n=e.adUnits,t=e.adUnitCodes,r=e.callback,o=e.cbTimeout,a=e.labels,c=e.auctionId,s=e.ortb2Fragments,f=e.metrics;f=(0,T.Bf)(f);var l,v,h,I,A=n,j=a,Z=t,M=c||(0,i.generateUUID)(),W=o,F=new Set,L=(0,w.P)(),H=[],K=r,V=[],J=[],$=[],Q=[],Y=[];function ee(){return{auctionId:M,timestamp:l,auctionEnd:v,auctionStatus:I,adUnits:A,adUnitCodes:Z,labels:j,bidderRequests:V,noBids:$,bidsReceived:J,bidsRejected:H,winningBids:Q,timeout:W,metrics:f,seatNonBids:Y}}function ne(e){if(e?b.emit(E.FP.AUCTION_TIMEOUT,ee()):clearTimeout(h),void 0===v){var t=[];e&&((0,i.logMessage)("Auction ".concat(M," timedOut")),(t=V.filter((function(e){return!F.has(e.bidderRequestId)})).flatMap((function(e){return e.bids}))).length&&b.emit(E.FP.BID_TIMEOUT,t)),I=S,v=Date.now(),f.checkpoint("auctionEnd"),f.timeBetween("requestBids","auctionEnd","requestBids.total"),f.timeBetween("callBids","auctionEnd","requestBids.callBids"),L.resolve(),b.emit(E.FP.AUCTION_END,ee()),q(A,(function(){try{if(null!=K){var r=J.filter((function(e){return Z.includes(e.adUnitCode)})).reduce(X,{});K.apply(D,[r,e,M]),K=null}}catch(e){(0,i.logError)("Error executing bidsBackHandler",null,e)}finally{t.length&&y.ZP.callTimedOutBidders(n,t,W);var o=d.vc.getConfig("userSync")||{};o.enableOverride||C(o.syncDelay)}}))}}function te(){d.vc.resetBidder(),(0,i.logInfo)("Bids Received for Auction with id: ".concat(M),J),I=S,ne(!1)}function re(e){F.add(e)}function ie(e){var n=this;e.forEach((function(e){var n;n=e,V=V.concat(n)}));var t={},r={bidRequests:e,run:function(){h=setTimeout((function(){return ne(!0)}),W),I=O,b.emit(E.FP.AUCTION_INIT,ee());var r=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?m.K.index:t,o=0,a=!1,c=new Set,s={};function f(){o--,a&&0===o&&e()}function l(e,n,t){return s[n.requestId]=!0,z(n,e),o++,t(f)}function v(e,t){l(e,t,(function(e){var i=G(t);b.emit(E.FP.BID_ACCEPTED,i),i.mediaType===p.pX?x(n,i,e):((0,u.ub)(i)&&(0,u.kH)(i,r.getAdUnit(i)),N(n,i),e())}))}function h(e,t,r){return l(e,t,(function(e){t.rejectionReason=r,(0,i.logWarn)("Bid from ".concat(t.bidder||"unknown bidder"," was rejected: ").concat(r),t),b.emit(E.FP.BID_REJECTED,t),n.addBidRejected(t),e()}))}function y(){var t=this,r=n.getBidRequests(),u=d.vc.getConfig("auctionOptions");if(c.add(t),u&&!(0,i.isEmpty)(u)){var f=u.secondaryBidders;f&&!r.every((function(e){return(0,g.q9)(f,e.bidderCode)}))&&(r=r.filter((function(e){return!(0,g.q9)(f,e.bidderCode)})))}a=r.every((function(e){return c.has(e)})),t.bids.forEach((function(e){s[e.bidId]||(n.addNoBid(e),b.emit(E.FP.NO_BID,e))})),a&&0===o&&e()}return{addBidResponse:function(){function e(e,n){var t;U.call({dispatch:v},e,n,(t=!1,function(r){t||(h(e,n,r),t=!0)}))}return e.reject=h,e}(),adapterDone:function(){var e=this;P(w.Z.resolve()).finally((function(){return y.call(e)}))}}}(te,n);y.ZP.callBids(A,e,r.addBidResponse,r.adapterDone,{request:function(e,n){a(B,n),a(t,e),k[e]||(k[e]={SRA:!0,origin:n}),t[e]>1&&(k[e].SRA=!1)},done:function(e){B[e]--,R[0]&&o(R[0])&&R.shift()}},W,re,s)}};function o(e){var n=!0,t=d.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===E.os.SRC?"s2s":e.bidderCode;return k[i]&&(!1===k[i].SRA&&(r=Math.min(e.bids.length,t)),B[k[i].origin]+r>t&&(n=!1)),!n})),n&&e.run(),n}function a(e,n){void 0===e[n]?e[n]=1:e[n]++}o(r)||((0,i.logWarn)("queueing auction due to limited endpoint capacity"),R.push(r))}return b.on(E.FP.SEAT_NON_BID,(function(e){var n;e.auctionId===M&&(n=e.seatnonbid,Y=Y.concat(n))})),{addBidReceived:function(e){J=J.concat(e)},addBidRejected:function(e){H=H.concat(e)},addNoBid:function(e){$=$.concat(e)},callBids:function(){I="started",l=Date.now();var e=f.measureTime("requestBids.makeRequests",(function(){return y.ZP.makeBidRequests(A,l,M,W,j,s,f)}));(0,i.logInfo)("Bids Requested for Auction with id: ".concat(M),e),f.checkpoint("callBids"),e.length<1?((0,i.logWarn)("No valid bid requests returned for auction"),te()):_.call({dispatch:ie,context:this},e)},addWinningBid:function(e){var t=n.find((function(n){return n.adUnitId===e.adUnitId}));Q=Q.concat(e),(0,i.callBurl)(e),y.ZP.callBidWonBidder(e.adapterCode||e.bidder,e,n),t&&!t.deferBilling&&y.ZP.callBidBillableBidder(e)},setBidTargeting:function(e){y.ZP.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:function(){return Q},getAuctionStart:function(){return l},getAuctionEnd:function(){return v},getTimeout:function(){return W},getAuctionId:function(){return M},getAuctionStatus:function(){return I},getAdUnits:function(){return A},getAdUnitCodes:function(){return Z},getBidRequests:function(){return V},getBidsReceived:function(){return J},getNoBids:function(){return $},getNonBids:function(){return Y},getFPD:function(){return s},getMetrics:function(){return f},end:L.promise}}var U=(0,l.z3)("sync",(function(e,n,t){!function(e){var n=d.vc.getConfig("maxBid");return!n||!e.cpm||n>=Number(e.cpm)}(n)?t(E.Gw.PRICE_TOO_HIGH):this.dispatch.call(null,e,n)}),"addBidResponse"),P=(0,l.z3)("sync",(function(e){return e}),"responsesReady"),_=(0,l.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),q=(0,l.z3)("async",(function(e,n){n&&n()}),"bidsBackCallback");function N(e,n){!function(e){var n,t=!0===h.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(t||e.dealId)&&(n=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?m.K.index:t;if(!n)return{};var i=r.getBidRequest(n),o={},a=$(n.mediaType,e);Q(o,a,n,i),e&&h.S.getOwn(e,E.k2.ADSERVER_TARGETING)&&(Q(o,h.S.ownSettingsFor(e),n,i),n.sendStandardTargeting=h.S.get(e,"sendStandardTargeting"));n.native&&(o=Object.assign({},o,(0,u.Ur)(n)));return o}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},n)}(n),(0,T.Bf)(n.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(n),b.emit(E.FP.BID_RESPONSE,n)}function x(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.index,u=void 0===a?m.K.index:a,c=!0,s=(0,o.Z)(u.getMediaTypes({requestId:n.originalRequestId||n.requestId,adUnitId:n.adUnitId}),"video"),f=s&&(0,o.Z)(s,"context"),l=s&&(0,o.Z)(s,"useCacheKey");d.vc.getConfig("cache.url")&&(l||f!==v.gZ)&&(!n.videoCacheKey||d.vc.getConfig("cache.ignoreBidderCacheKey")?(c=!1,L(e,n,t,s)):n.vastUrl||((0,i.logError)("videoCacheKey specified but not required vastUrl for video bid"),c=!1)),c&&(N(e,n),t())}var Z,M,W=function(e){(0,c.h)(e.map((function(e){return e.bidResponse})),(function(n,t){t.forEach((function(t,r){var o=e[r],a=o.auctionInstance,u=o.bidResponse,s=o.afterBidAdded;n?(0,i.logWarn)("Failed to save to the video cache: ".concat(n,". Video bid must be discarded.")):""===t.uuid?(0,i.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(u.videoCacheKey=t.uuid,u.vastUrl||(u.vastUrl=(0,c.z)(u.videoCacheKey)),N(a,u),s())}))}))};d.vc.getConfig("cache",(function(e){Z="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,M="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));var F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,t=[[]],r=!1,i=function(e){return e()};return function(o,a,u){var c=M>0?e:i;t[t.length-1].length>=Z&&t.push([]),t[t.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:u}),r||(r=!0,c((function(){t.forEach(n),t=[[]],r=!1}),M))}}(),L=(0,l.z3)("async",(function(e,n,t,r){F(e,n,t)}),"callPrebidCache");function z(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,o=void 0===r?m.K.index:r,a=o.getBidderRequest(e),u=o.getAdUnit(e),c=a&&a.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,i.timestamp)(),requestTimestamp:e.requestTimestamp||c,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:n}),null!=(null==u?void 0:u.ttlBuffer)&&(e.ttlBuffer=u.ttlBuffer),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}function G(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.index,o=void 0===i?m.K.index:i;b.emit(E.FP.BID_ADJUSTMENT,e);var u=(null===(n=o.getBidRequest(e))||void 0===n?void 0:n.renderer)||o.getAdUnit(e).renderer,c=e.mediaType,f=o.getMediaTypes(e),l=f&&f[c],g=l&&l.renderer,v=null;g&&g.url&&g.render&&(!0!==g.backupOnly||!e.renderer)?v=g:u&&u.url&&u.render&&(!0!==u.backupOnly||!e.renderer)&&(v=u),v&&(e.renderer=s.Th.install({url:v.url,config:v.options}),e.renderer.setRender(v.render));var p=H(e.mediaType,f,d.vc.getConfig("mediaTypePriceGranularity")),h=(0,a.D)(e.cpm,"object"===(0,r.Z)(p)?p:d.vc.getConfig("customPriceBucket"),d.vc.getConfig("currency.granularityMultiplier"));return e.pbLg=h.low,e.pbMg=h.med,e.pbHg=h.high,e.pbAg=h.auto,e.pbDg=h.dense,e.pbCg=h.custom,e}function H(e,n,t){if(e&&t){if(e===p.pX){var r=(0,o.Z)(n,"".concat(p.pX,".context"),"instream");if(t["".concat(p.pX,"-").concat(r)])return t["".concat(p.pX,"-").concat(r)]}return t[e]}}var K=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?m.K.index:t,i=H(e.mediaType,r.getMediaTypes(e),d.vc.getConfig("mediaTypePriceGranularity")),o="string"==typeof e.mediaType&&i?"string"==typeof i?i:"custom":d.vc.getConfig("priceGranularity");return o},V=function(e){return function(n){var t=e||K(n);return t===E.Ql.AUTO?n.pbAg:t===E.Ql.DENSE?n.pbDg:t===E.Ql.LOW?n.pbLg:t===E.Ql.MEDIUM?n.pbMg:t===E.Ql.HIGH?n.pbHg:t===E.Ql.CUSTOM?n.pbCg:void 0}};function J(e,n){return{key:e,val:"function"==typeof n?function(e,t){return n(e,t)}:function(e){return(0,i.getValue)(e,n)}}}function $(e,n){var t=Object.assign({},h.S.settingsFor(null));if(t[E.k2.ADSERVER_TARGETING]||(t[E.k2.ADSERVER_TARGETING]=[J(E.TD.BIDDER,"bidderCode"),J(E.TD.AD_ID,"adId"),J(E.TD.PRICE_BUCKET,V()),J(E.TD.SIZE,"size"),J(E.TD.DEAL,"dealId"),J(E.TD.SOURCE,"source"),J(E.TD.FORMAT,"mediaType"),J(E.TD.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:""})),J(E.TD.ACAT,(function(e){return e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:""})),J(E.TD.DSP,(function(e){return e.meta&&(e.meta.networkId||e.meta.networkName)?(0,o.Z)(e,"meta.networkName")||(0,o.Z)(e,"meta.networkId"):""})),J(E.TD.CRID,(function(e){return e.creativeId?e.creativeId:""}))]),"video"===e){var r=t[E.k2.ADSERVER_TARGETING].slice();if(t[E.k2.ADSERVER_TARGETING]=r,[E.TD.UUID,E.TD.CACHE_ID].forEach((function(e){void 0===(0,g.sE)(r,(function(n){return n.key===e}))&&r.push(J(e,"videoCacheKey"))})),d.vc.getConfig("cache.url")&&(!n||!1!==h.S.get(n,"sendStandardTargeting"))){var a=(0,i.parseUrl)(d.vc.getConfig("cache.url"));void 0===(0,g.sE)(r,(function(e){return e.key===E.TD.CACHE_HOST}))&&r.push(J(E.TD.CACHE_HOST,(function(e){return(0,o.Z)(e,"adserverTargeting.".concat(E.TD.CACHE_HOST))?e.adserverTargeting[E.TD.CACHE_HOST]:a.hostname})))}}return t}function Q(e,n,t,r){var o=n[E.k2.ADSERVER_TARGETING];return t.size=t.getSize(),(o||[]).forEach((function(o){var a=o.key,u=o.val;if(e[a]&&(0,i.logWarn)("The key: "+a+" is being overwritten"),(0,i.isFn)(u))try{u=u(t,r)}catch(e){(0,i.logError)("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&a!==E.TD.DEAL&&a!==E.TD.ACAT&&a!==E.TD.DSP&&a!==E.TD.CRID||!(0,i.isEmptyStr)(u)&&null!=u?e[a]=u:(0,i.logInfo)("suppressing empty key '"+a+"' from adserver targeting")})),e}function X(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}},78653:function(e,n,t){t.d(n,{K:function(){return m}});var r=t(70885),i=t(42982),o=t(64358),a=t(25686);function u(e){Object.assign(this,{getAuction:function(n){var t=n.auctionId;if(null!=t)return e().find((function(e){return e.getAuctionId()===t}))},getAdUnit:function(n){var t=n.adUnitId;if(null!=t)return e().flatMap((function(e){return e.getAdUnits()})).find((function(e){return e.adUnitId===t}))},getMediaTypes:function(e){var n=e.adUnitId,t=e.requestId;if(null!=t){var r=this.getBidRequest({requestId:t});if(null!=r&&(null==n||r.adUnitId===n))return r.mediaTypes}else if(null!=n){var i=this.getAdUnit({adUnitId:n});if(null!=i)return i.mediaTypes}},getBidderRequest:function(n){var t=n.requestId,r=n.bidderRequestId;if(null!=t||null!=r){var i=e().flatMap((function(e){return e.getBidRequests()}));return null!=r&&(i=i.filter((function(e){return e.bidderRequestId===r}))),null==t?i[0]:i.find((function(e){return e.bids&&null!=e.bids.find((function(e){return e.bidId===t}))}))}},getBidRequest:function(n){var t=n.requestId;if(null!=t)return e().flatMap((function(e){return e.getBidRequests()})).flatMap((function(e){return e.bids})).find((function(e){return e&&e.bidId===t}))}})}var c=t(62200),s=t(99128),d=t(10613),f=t(8833),l=t(3193);function g(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return v(e,n);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 v(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var p="minBidCacheTTL";var m=function(){var e=null,n=(0,d.Z)({startTime:function(e){return e.end.then((function(){return e.getAuctionEnd()}))},ttl:function(n){return null==e?null:n.end.then((function(){return 1e3*Math.max.apply(Math,[e].concat((0,i.Z)(n.getBidsReceived().map(f.N))))}))}});(0,f.l)((function(){null!=e&&n.refresh()})),l.vc.getConfig(p,(function(t){e!==(e="number"==typeof(e=null==t?void 0:t.minBidCacheTTL)?e:null)&&n.refresh()}));var t={onExpiry:n.onExpiry};function v(e){var t,r=g(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.getAuctionId()===e)return i}}catch(e){r.e(e)}finally{r.f()}}function m(){return n.toArray().flatMap((function(e){return e.getBidsReceived()}))}return t.addWinningBid=function(e){var n=(0,s.Bf)(e.metrics);n.checkpoint("bidWon"),n.timeBetween("auctionEnd","bidWon","render.pending"),n.timeBetween("requestBids","bidWon","render.e2e");var t=v(e.auctionId);t?(e.status=c.UE.RENDERED,t.addWinningBid(e)):(0,o.logWarn)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:function(e){return e.getAuctionStatus()===a.mv}},getAdUnitCodes:{post:o.uniques}}).forEach((function(e){var i=(0,r.Z)(e,2),o=i[0],a=i[1],u=a.name,c=void 0===u?o:u,s=a.pre,d=a.post,f=null==s?function(e){return e[c]()}:function(e){return s(e)?e[c]():[]},l=null==d?function(e){return e}:function(e){return e.filter(d)};t[o]=function(){return l(n.toArray().flatMap(f))}})),t.getAllBidsForAdUnitCode=function(e){return m().filter((function(n){return n&&n.adUnitCode===e}))},t.createAuction=function(e){var t=(0,a.vO)(e);return function(e){n.add(e)}(t),t},t.findBidByAdId=function(e){return m().find((function(n){return n.adId===e}))},t.getStandardBidderAdServerTargeting=function(){return(0,a.LX)()[c.k2.ADSERVER_TARGETING]},t.setStatusForBids=function(e,n){var r=t.findBidByAdId(e);if(r&&(r.status=n),r&&n===c.UE.BID_TARGETING_SET){var i=v(r.auctionId);i&&i.setBidTargeting(r)}},t.getLastAuctionId=function(){var e=n.toArray();return e.length&&e[e.length-1].getAuctionId()},t.clearAllAuctions=function(){n.clear()},t.index=new u((function(){return n.toArray()})),t}()},8833:function(e,n,t){t.d(n,{N:function(){return u},l:function(){return c}});var r=t(3193),i=t(64358),o=1,a=[];function u(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:o)}function c(e){a.push(e)}r.vc.getConfig("ttlBuffer",(function(e){"number"==typeof e.ttlBuffer?o!==(o=e.ttlBuffer)&&a.forEach((function(e){return e(o)})):(0,i.logError)("Invalid value for ttlBuffer",e.ttlBuffer)}))},55975:function(e,n,t){t.d(n,{S:function(){return g}});var r=t(15671),i=t(43144),o=t(20265),a=t(64358),u=t(78640),c=t(62200);function s(e,n){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.add(e)}function d(e,n,t){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var f=new WeakSet;function l(e){return null==e?this.defaultScope:e}var g=new(function(){function e(n,t){(0,r.Z)(this,e),s(this,f),this.getSettings=n,this.defaultScope=t}return(0,i.Z)(e,[{key:"get",value:function(e,n){var t=this.getOwn(e,n);return void 0===t&&(t=this.getOwn(null,n)),t}},{key:"getOwn",value:function(e,n){return e=d(this,f,l).call(this,e),(0,o.Z)(this.getSettings(),"".concat(e,".").concat(n))}},{key:"getScopes",value:function(){var e=this;return Object.keys(this.getSettings()).filter((function(n){return n!==e.defaultScope}))}},{key:"settingsFor",value:function(e){return(0,a.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}},{key:"ownSettingsFor",value:function(e){return e=d(this,f,l).call(this,e),this.getSettings()[e]||{}}}]),e}())((function(){return(0,u.R)().bidderSettings||{}}),c.k2.BD_SETTING_STANDARD)},69626:function(e,n,t){t.d(n,{m:function(){return o}});var r=t(64358);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.src,i=void 0===t?"client":t,o=n.bidder,a=void 0===o?"":o,u=n.bidId,c=n.transactionId,s=n.adUnitId,d=n.auctionId,f=i,l=e||0;function g(){switch(l){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}Object.assign(this,{bidderCode:a,width:0,height:0,statusMessage:g(),adId:(0,r.getUniqueIdentifierStr)(),requestId:u,transactionId:c,adUnitId:s,auctionId:d,mediaType:"banner",source:f}),this.getStatusCode=function(){return l},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,adUnitId:this.adUnitId,auctionId:this.auctionId}}}function o(e,n){return new i(e,n)}},3193:function(e,n,t){t.d(n,{FD:function(){return g},vc:function(){return b}});var r=t(4942),i=t(71002),o=t(70885),a=t(56463),u=t(34614),c=t(64358),s=t(20265),d=t(62200);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var l="TRUE"===(0,c.getParameterByName)(d.f).toUpperCase(),g="random",v={};v[g]=!0,v.fixed=!0;var p=g,m={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},h="*";var b=function(){var e,n,t,d=[],g=null;function b(){function r(e){return s[e].val}function i(e,n){s[e].val=n}e={};var s={publisherDomain:{set:function(e){null!=e&&(0,c.logWarn)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),i("publisherDomain",e)}},priceGranularity:{val:m.MEDIUM,set:function(e){g(e)&&("string"==typeof e?i("priceGranularity",f(e)?e:m.MEDIUM):(0,c.isPlainObject)(e)&&(i("customPriceBucket",e),i("priceGranularity",m.CUSTOM),(0,c.logMessage)("Using custom price granularity")))}},customPriceBucket:{val:{},set:function(){}},mediaTypePriceGranularity:{val:{},set:function(e){null!=e&&i("mediaTypePriceGranularity",Object.keys(e).reduce((function(n,t){return g(e[t])?"string"==typeof e?n[t]=f(e[t])?e[t]:r("priceGranularity"):(0,c.isPlainObject)(e)&&(n[t]=e[t],(0,c.logMessage)("Using custom price granularity for ".concat(t))):(0,c.logWarn)("Invalid price granularity for media type: ".concat(t)),n}),{}))}},bidderSequence:{val:p,set:function(e){v[e]?i("bidderSequence",e):(0,c.logWarn)("Invalid order: ".concat(e,". Bidder Sequence was not set."))}},auctionOptions:{val:{},set:function(e){(function(e){if(!(0,c.isPlainObject)(e))return(0,c.logWarn)("Auction Options must be an object"),!1;for(var n=0,t=Object.keys(e);n<t.length;n++){var r=t[n];if("secondaryBidders"!==r&&"suppressStaleRender"!==r)return(0,c.logWarn)("Auction Options given an incorrect param: ".concat(r)),!1;if("secondaryBidders"===r){if(!(0,c.isArray)(e[r]))return(0,c.logWarn)("Auction Options ".concat(r," must be of type Array")),!1;if(!e[r].every(c.isStr))return(0,c.logWarn)("Auction Options ".concat(r," must be only string")),!1}else if("suppressStaleRender"===r&&!(0,c.isBoolean)(e[r]))return(0,c.logWarn)("Auction Options ".concat(r," must be of type boolean")),!1}return!0})(e)&&i("auctionOptions",e)}}},d={debug:l,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,timeoutBuffer:400,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3};function f(e){return(0,u.sE)(Object.keys(m),(function(n){return e===m[n]}))}function g(e){if(!e)return(0,c.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)f(e)||(0,c.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,c.isPlainObject)(e)&&!(0,a.t)(e))return(0,c.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}Object.defineProperties(d,Object.fromEntries(Object.entries(s).map((function(e){var n=(0,o.Z)(e,2),t=n[0],a=n[1];return[t,Object.assign({get:r.bind(null,t),set:i.bind(null,t),enumerable:!0},a)]})))),n&&R(Object.keys(n).reduce((function(e,t){return n[t]!==d[t]&&(e[t]=d[t]||{}),e}),{})),n=d,t={}}function y(){if(g&&t&&(0,c.isPlainObject)(t[g])){var e=t[g],r=new Set(Object.keys(n).concat(Object.keys(e)));return(0,u.Oc)(r).reduce((function(t,r){return void 0===e[r]?t[r]=n[r]:void 0===n[r]?t[r]=e[r]:(0,c.isPlainObject)(e[r])?t[r]=(0,c.mergeDeep)({},n[r],e[r]):t[r]=e[r],t}),{})}return Object.assign({},n)}var E=[y,function(){var e=y();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map((function(e){return function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var n=arguments.length<=0?void 0:arguments[0];return n?(0,s.Z)(e(),n):y()}return k.apply(void 0,arguments)}})),w=(0,o.Z)(E,2),T=w[0],I=w[1],A=[I,T].map((function(e){return function(){var n=e.apply(void 0,arguments);return n&&"object"===(0,i.Z)(n)&&(n=(0,c.deepClone)(n)),n}})),C=(0,o.Z)(A,2),O=C[0],S=C[1];function B(t){if((0,c.isPlainObject)(t)){var r=Object.keys(t),i={};r.forEach((function(r){var o=t[r];(0,c.isPlainObject)(e[r])&&(0,c.isPlainObject)(o)&&(o=Object.assign({},e[r],o));try{i[r]=n[r]=o}catch(e){(0,c.logWarn)("Cannot set config for property ".concat(r," : "),e)}})),R(i)}else(0,c.logError)("setConfig options must be an object")}function k(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n;if("string"!=typeof e&&(i=e,e=h,t=n||{}),"function"==typeof i){var o={topic:e,callback:i};return d.push(o),t.init&&i(e===h?I():(0,r.Z)({},e,I(e))),function(){d.splice(d.indexOf(o),1)}}(0,c.logError)("listener must be a function")}function R(e){var n=Object.keys(e);d.filter((function(e){return(0,u.q9)(n,e.topic)})).forEach((function(n){n.callback((0,r.Z)({},n.topic,e[n.topic]))})),d.filter((function(e){return e.topic===h})).forEach((function(n){return n.callback(e)}))}function D(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{r(e),e.bidders.forEach((function(r){t[r]||(t[r]={}),Object.keys(e.config).forEach((function(i){var o=e.config[i];if((0,c.isPlainObject)(o)){var a=n?c.mergeDeep:Object.assign;t[r][i]=a({},t[r][i]||{},o)}else t[r][i]=o}))}))}catch(e){(0,c.logError)(e)}function r(e){if(!(0,c.isPlainObject)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,c.isPlainObject)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function j(e,n){g=e;try{return n()}finally{U()}}function U(){g=null}return b(),{getCurrentBidder:function(){return g},resetBidder:U,getConfig:I,getAnyConfig:T,readConfig:O,readAnyConfig:S,setConfig:B,mergeConfig:function(e){if((0,c.isPlainObject)(e)){var n=(0,c.mergeDeep)(y(),e);return B(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},n)),n}(0,c.logError)("mergeConfig input must be an object")},setDefaults:function(t){(0,c.isPlainObject)(e)?(Object.assign(e,t),Object.assign(n,t)):(0,c.logError)("defaults must be an object")},resetConfig:b,runWithBidder:j,callbackWithBidder:function(e){return function(n){return function(){if("function"==typeof n){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return j(e,n.bind.apply(n,[this].concat(r)))}(0,c.logWarn)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:D,getBidderConfig:function(){return t},mergeBidderConfig:function(e){return D(e,!0)}}}()},34516:function(e,n,t){t.d(n,{$P:function(){return E},Lw:function(){return w},NO:function(){return L},TJ:function(){return Z},VP:function(){return M},nX:function(){return x},qh:function(){return W},rp:function(){return N}});var r=t(70885),i=t(97326),o=t(60136),a=t(82963),u=t(61120),c=t(15671),s=t(43144),d=t(4942),f=t(86033),l=t(13092),g=t(64358),v=t(68792),p=t(3193);function m(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,u.Z)(e);if(n){var i=(0,u.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,a.Z)(this,t)}}function h(e,n,t){b(e,n),n.set(e,t)}function b(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,n,t){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var E=Object.freeze({}),w=Object.freeze({}),T=new WeakMap,I=new WeakMap,A=new WeakMap,C=new WeakMap,O=new WeakMap,S=new WeakMap,B=new WeakSet,k=function(){function e(){var n,t;(0,c.Z)(this,e),b(n=this,t=B),t.add(n),h(this,T,{writable:!0,value:void 0}),h(this,I,{writable:!0,value:void 0}),h(this,A,{writable:!0,value:void 0}),h(this,C,{writable:!0,value:void 0}),h(this,O,{writable:!0,value:!0}),h(this,S,{writable:!0,value:void 0}),(0,d.Z)(this,"generatedTime",void 0),(0,d.Z)(this,"hashFields",void 0),this.reset()}return(0,s.Z)(e,[{key:"reset",value:function(){(0,l.Z)(this,A,(0,v.P)()),(0,l.Z)(this,T,!1),(0,l.Z)(this,I,null),(0,l.Z)(this,C,!1),this.generatedTime=null}},{key:"enable",value:function(){(0,l.Z)(this,T,!0)}},{key:"enabled",get:function(){return(0,f.Z)(this,T)}},{key:"ready",get:function(){return(0,f.Z)(this,C)}},{key:"promise",get:function(){return(0,f.Z)(this,C)?v.Z.resolve((0,f.Z)(this,I)):((0,f.Z)(this,T)||y(this,B,R).call(this,null),(0,f.Z)(this,A).promise)}},{key:"setConsentData",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,g.timestamp)();this.generatedTime=n,(0,l.Z)(this,O,!0),y(this,B,R).call(this,e)}},{key:"getConsentData",value:function(){return(0,f.Z)(this,I)}},{key:"hash",get:function(){var e=this;return(0,f.Z)(this,O)&&((0,l.Z)(this,S,(0,g.cyrb53Hash)(JSON.stringify((0,f.Z)(this,I)&&this.hashFields?this.hashFields.map((function(n){return(0,f.Z)(e,I)[n]})):(0,f.Z)(this,I)))),(0,l.Z)(this,O,!1)),(0,f.Z)(this,S)}}]),e}();function R(e){(0,l.Z)(this,C,!0),(0,l.Z)(this,I,e),(0,f.Z)(this,A).resolve(e)}var D=function(e){(0,o.Z)(t,e);var n=m(t);function t(){return(0,c.Z)(this,t),n.apply(this,arguments)}return(0,s.Z)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(k),j=function(e){(0,o.Z)(t,e);var n=m(t);function t(){var e;(0,c.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),(0,d.Z)((0,i.Z)(e),"hashFields",["gdprApplies","consentString"]),e}return(0,s.Z)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,g.isStr)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}}]),t}(k),U=function(e){(0,o.Z)(t,e);var n=m(t);function t(){var e;(0,c.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=n.call.apply(n,[this].concat(o)),(0,d.Z)((0,i.Z)(e),"hashFields",["applicableSections","gppString"]),e}return(0,s.Z)(t,[{key:"getConsentMeta",value:function(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}}]),t}(k);var P,_,q,N=new j,x=new D,Z=new U,M=function(){function e(){return!!p.vc.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset:function(){},get promise(){return v.Z.resolve(e())},get hash(){return e()?"1":"0"}}}(),W=(P={},_={},q={},{register:function(e,n,t){t&&((P[n]=P[n]||{})[e]=t,_.hasOwnProperty(n)?_[n]!==t&&(_[n]=q):_[n]=t)},get:function(e){var n={modules:P[e]||{}};return _.hasOwnProperty(e)&&_[e]!==q&&(n.gvlid=_[e]),n}}),F={gdpr:N,usp:x,gpp:Z,coppa:M};var L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;function n(n){return function(){return Object.fromEntries(e.map((function(e){var t=(0,r.Z)(e,2);return[t[0],t[1][n]()]})))}}return e=Object.entries(e),Object.assign({get promise(){return v.Z.all(e.map((function(e){var n=(0,r.Z)(e,2),t=n[0];return n[1].promise.then((function(e){return[t,e]}))}))).then((function(e){return Object.fromEntries(e)}))},get hash(){return(0,g.cyrb53Hash)(e.map((function(e){var n=(0,r.Z)(e,2);n[0];return n[1].hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((function(e){return[e,n(e)]}))))}()},62200:function(e,n,t){t.d(n,{FP:function(){return a},FY:function(){return l},Gw:function(){return p},Q_:function(){return o},Ql:function(){return s},TD:function(){return d},UE:function(){return v},V1:function(){return m},X3:function(){return E},aI:function(){return c},f:function(){return i},k2:function(){return r},kF:function(){return f},oF:function(){return b},os:function(){return g},q_:function(){return u},s$:function(){return h},zA:function(){return y}});var r={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"},i="pbjs_debug",o={GOOD:1},a={AUCTION_INIT:"auctionInit",AUCTION_TIMEOUT:"auctionTimeout",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",SEAT_NON_BID:"seatNonBid",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",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted"},u={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},c={bidWon:"adUnitCode"},s={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},d={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",ACAT:"hb_acat",CRID:"hb_crid",DSP:"hb_dsp"},f={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"},l={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"},g={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},v={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},p={INVALID:"Bid has missing or invalid properties",INVALID_REQUEST_ID:"Invalid request ID",BIDDER_DISALLOWED:"Bidder code is not allowed by allowedAlternateBidderCodes / allowUnknownBidderCodes",FLOOR_NOT_MET:"Bid does not meet price floor",CANNOT_CONVERT_CURRENCY:"Unable to convert currency",DSA_REQUIRED:"Bid does not provide required DSA transparency info",DSA_MISMATCH:"Bid indicates inappropriate DSA rendering method",PRICE_TOO_HIGH:"Bid price exceeds maximum value"},m={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},h={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},b={ICON:1,MAIN:3},y=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],E={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"}},56463:function(e,n,t){t.d(n,{D:function(){return f},t:function(){return g}});var r=t(34614),i=t(64358),o=t(3193),a={buckets:[{max:5,increment:.5}]},u={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},s={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},d={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":l(e,a,t),med:""===r?"":l(e,u,t),high:""===r?"":l(e,c,t),auto:""===r?"":l(e,d,t),dense:""===r?"":l(e,s,t),custom:""===r?"":l(e,n,t)}}function l(e,n,t){var a="";if(!g(n))return a;var u=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),c=0,s=(0,r.sE)(n.buckets,(function(n){if(e>u.max*t){var r=n.precision;void 0===r&&(r=2),a=(n.max*t).toFixed(r)}else{if(e<=n.max*t&&e>=c*t)return n.min=c,n;c=n.max}}));return s&&(a=function(e,n,t){var r=void 0!==n.precision?n.precision:2,a=n.increment*t,u=n.min*t,c=Math.floor,s=o.vc.getConfig("cpmRoundingFunction");"function"==typeof s&&(c=s);var d,f,l=Math.pow(10,r+2),g=(e*l-u*l)/(a*l);try{d=c(g)*a+u}catch(e){f=!0}(f||"number"!=typeof d)&&((0,i.logWarn)("Invalid rounding function passed in config"),d=Math.floor(g)*a+u);return(d=Number(d.toFixed(10))).toFixed(r)}(e,s,t)),a}function g(e){if((0,i.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(n=!1)})),n}},88099:function(e,n,t){t.d(n,{W:function(){return c},m:function(){return u}});var r,i=t(68792),o=t(64358),a=t(68304),u=(0,t(92797).z3)("sync",(function(e){return a._})),c=(r={},function(e){var n=u(e);return r.hasOwnProperty(n)||(r[n]=new i.Z((function(e){var t=(0,o.createInvisibleIframe)();t.srcdoc="<script>".concat(n,"<\/script>"),t.onload=function(){return e(t.contentWindow.render)},document.body.appendChild(t)}))),r[n]})},53777:function(e,n,t){t.d(n,{Jc:function(){return d},dF:function(){return p}});var r=t(3193),i=t(92797),o=t(78640),a=t(64358),u=t(69626),c=t(55730),s=t(68792),d="__pbjs_debugging__";function f(){return(0,o.R)().installedModules.includes("debugging")}function l(e){return new s.Z((function(n){(0,c.B)(e,"debugging",n)}))}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.alreadyInstalled,t=void 0===n?f:n,c=e.script,g=void 0===c?l:c,v=null;return function(){return null==v&&(v=new s.Z((function(e,n){setTimeout((function(){if(t())e();else{var c="https://cdn.jsdelivr.net/npm/prebid.js@8.51.0/dist/debugging-standalone.js";(0,a.logMessage)('Debugging module not installed, loading it from "'.concat(c,'"...')),(0,o.R)()._installDebugging=!0,g(c).then((function(){(0,o.R)()._installDebugging({DEBUG_KEY:d,hook:i.z3,config:r.vc,createBid:u.m,logger:(0,a.prefixLog)("DEBUG:")})})).then(e,n)}}))}))),v}}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.load,t=void 0===n?g():n,r=e.hook,o=void 0===r?(0,i.v5)("requestBids"):r,a=null,u=!1;function c(e){for(var n=this,t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return(a||s.Z.resolve()).then((function(){return e.apply(n,r)}))}function d(){u||(a=t(),o.before(c,99),u=!0)}function f(){o.getHooks({hook:c}).remove(),u=!1}function l(){a=null,f()}return{enable:d,disable:f,reset:l}}();v.reset;function p(){var e=null;try{e=window.sessionStorage}catch(e){}if(null!==e){var n=v,t=null;try{t=e.getItem(d)}catch(e){}null!==t&&n.enable()}}r.vc.getConfig("debugging",(function(e){var n=e.debugging;null!=n&&n.enabled?v.enable():v.disable()}))},52021:function(e,n,t){t.r(n),t.d(n,{addEvents:function(){return E},clearEvents:function(){return T},emit:function(){return y},get:function(){return h},getEvents:function(){return b},has:function(){return w},off:function(){return m},on:function(){return p}});var r=t(64358),i=t(62200),o=t(10613),a=t(3193),u="eventHistoryTTL",c=null,s=(0,o.Z)({monotonic:!0,ttl:function(){return c}});a.vc.getConfig(u,(function(e){var n,t=c;e=null===(n=e)||void 0===n?void 0:n[u],t!==(c="number"==typeof e?1e3*e:null)&&s.refresh()}));var d=Array.prototype.slice,f=Array.prototype.push,l=Object.values(i.FP),g=i.aI,v=function(){var e={},n={};function t(n,t){r.logMessage("Emitting event for: "+n);var i=t[0]||{},o=i[g[n]],a=e[n]||{que:[]},u=Object.keys(a),c=[];s.add({eventType:n,args:i,id:o,elapsedTime:r.getPerformanceNow()}),o&&u.includes(o)&&f.apply(c,a[o].que),f.apply(c,a.que),(c||[]).forEach((function(e){if(e)try{e.apply(null,t)}catch(e){r.logError("Error executing handler:","events.js",e,n)}}))}function i(e){return l.includes(e)}return n.has=i,n.on=function(n,t,o){if(i(n)){var a=e[n]||{que:[]};o?(a[o]=a[o]||{que:[]},a[o].que.push(t)):a.que.push(t),e[n]=a}else r.logError("Wrong event name : "+n+" Valid event names :"+l)},n.emit=function(e){var n=d.call(arguments,1);t(e,n)},n.off=function(n,t,i){var o=e[n];r.isEmpty(o)||r.isEmpty(o.que)&&r.isEmpty(o[i])||i&&(r.isEmpty(o[i])||r.isEmpty(o[i].que))||(i?(o[i].que||[]).forEach((function(e){var n=o[i].que;e===t&&n.splice(n.indexOf(e),1)})):(o.que||[]).forEach((function(e){var n=o.que;e===t&&n.splice(n.indexOf(e),1)})),e[n]=o)},n.get=function(){return e},n.addEvents=function(e){l=l.concat(e)},n.getEvents=function(){return s.toArray().map((function(e){return Object.assign({},e)}))},n}();r._setEventEmitter(v.emit.bind(v));var p=v.on,m=v.off,h=v.get,b=v.getEvents,y=v.emit,E=v.addEvents,w=v.has;function T(){s.clear()}},54078:function(e,n,t){t.d(n,{S:function(){return C}});var r=t(70885),i=t(92797),o=t(25102),a=t(38196),u=t(64358),c=t(96475),s=t(3193),d=t(68792),f=["architecture","bitness","model","platformVersion","fullVersionList"],l=["brands","mobile","platform"],g=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,t=n&&l.some((function(e){return void 0!==n[e]}))?Object.freeze(p(1,n)):null;return function(){return t}}(),v=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,t={},r=new WeakMap;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;if(!r.has(e)){var i=Array.from(e);i.sort(),r.set(e,i.join("|"))}var o=r.get(e);if(!t.hasOwnProperty(o))try{t[o]=n.getHighEntropyValues(e).then((function(e){return(0,u.isEmpty)(e)?null:Object.freeze(p(2,e))})).catch((function(){return null}))}catch(e){t[o]=d.Z.resolve(null)}return t[o]}}();function p(e,n){function t(e,n){var t={brand:e};return(0,u.isStr)(n)&&!(0,u.isEmptyStr)(n)&&(t.version=n.split(".")),t}var r={source:e};return n.platform&&(r.platform=t(n.platform,n.platformVersion)),(n.fullVersionList||n.brands)&&(r.browsers=(n.fullVersionList||n.brands).map((function(e){return t(e.brand,e.version)}))),void 0!==n.mobile&&(r.mobile=n.mobile?1:0),["model","bitness","architecture"].forEach((function(e){var t=n[e];(0,u.isStr)(t)&&(r[e]=t)})),r}var m=t(83790),h=t(50571),b=t(10286),y=t(74947),E=t(9633);function w(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return T(e,n);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 T(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var I={getRefererInfo:o.nH,findRootDomain:a.W,getWindowTop:u.getWindowTop,getWindowSelf:u.getWindowSelf,getHighEntropySUA:v,getLowEntropySUA:g},A=(0,m.A_)("FPD"),C=(0,i.z3)("sync",(function(e){var n,t=[e,(n=s.vc.getConfig("firstPartyData.uaHints"),Array.isArray(n)&&0!==n.length?I.getHighEntropySUA(n):d.Z.resolve(I.getLowEntropySUA())).catch((function(){return null})),d.Z.resolve("cookieDeprecationLabel"in navigator&&(0,h.xD)(y.S1,(0,b.T)(E.wu,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch((function(){return null}))];return d.Z.all(t).then((function(e){var n=(0,r.Z)(e,3),t=n[0],i=n[1],o=n[2],a=I.getRefererInfo();if(function(e){["app","site","device"].forEach((function(n){var t=s.vc.getConfig(n);null!=t&&(e[n]=(0,u.mergeDeep)({},t,e[n]))}))}(t),Object.entries(B).forEach((function(e){var n=(0,r.Z)(e,2),i=n[0],o=(0,n[1])(t,a);o&&Object.keys(o).length>0&&(t[i]=(0,u.mergeDeep)({},o,t[i]))})),i&&(0,c.N)(t,"device.sua",Object.assign({},i,t.device.sua)),o){var d={cdep:o};(0,c.N)(t,"device.ext",Object.assign({},d,t.device.ext))}t=A(t);var f,l=w(m.Iq);try{for(l.s();!(f=l.n()).done;){var g=f.value;if((0,m.Qg)(t,g)){t[g]=(0,u.mergeDeep)({},k(t,a),t[g]);break}}}catch(e){l.e(e)}finally{l.f()}return t}))}));function O(e){try{return e(I.getWindowTop())}catch(n){return e(I.getWindowSelf())}}function S(e){return(0,u.getDefinedParams)(e,Object.keys(e))}var B={site:function(e,n){if(!m.Iq.filter((function(e){return"site"!==e})).some(m.Qg.bind(null,e)))return S({page:n.page,ref:n.ref})},device:function(){return O((function(e){var n,t={w:e.innerWidth||e.document.documentElement.clientWidth||e.document.body.clientWidth,h:e.innerHeight||e.document.documentElement.clientHeight||e.document.body.clientHeight,dnt:(0,u.getDNT)()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift()};return null!==(n=e.navigator)&&void 0!==n&&n.webdriver&&(0,c.N)(t,"ext.webdriver",!0),t}))},regs:function(){var e={};O((function(e){return e.navigator.globalPrivacyControl}))&&(0,c.N)(e,"ext.gpc",1);var n=s.vc.getConfig("coppa");return"boolean"==typeof n&&(e.coppa=n?1:0),e}};function k(e,n){var t,r,i,a=(0,o.hh)(n.page,{noLeadingWww:!0});return S({domain:a,keywords:null===(t=O((function(e){return e.document.querySelector("meta[name='keywords']")})))||void 0===t||null===(r=t.content)||void 0===r||null===(i=r.replace)||void 0===i?void 0:i.call(r,/\s/g,""),publisher:S({domain:I.findRootDomain(a)})})}},83790:function(e,n,t){t.d(n,{A_:function(){return o},Iq:function(){return i},Qg:function(){return a}});var r=t(64358),i=["dooh","app","site"];function o(e){return function(n){return i.reduce((function(t,i){return a(n,i)&&(null!=t?((0,r.logWarn)("".concat(e," specifies both '").concat(t,"' and '").concat(i,"'; dropping the latter.")),delete n[i]):t=i),t}),null),n}}function a(e,n){return null!=e[n]&&Object.keys(e[n]).length>0}},38196:function(e,n,t){t.d(n,{W:function(){return o}});var r=t(64358),i=(0,t(15164).eA)("fpdEnrichment"),o=(0,r.memoize)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!i.cookiesAreEnabled())return e;var n,t,o=e.split(".");if(2===o.length)return e;var a=-2,u="_rdc".concat(Date.now()),c="writeable";do{n=o.slice(a).join(".");var s=new Date((0,r.timestamp)()+1e4).toUTCString();i.setCookie(u,c,s,"Lax",n,void 0);var d=i.getCookie(u,void 0);d===c?(t=!1,i.setCookie(u,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(a+=-1,t=Math.abs(a)<=o.length)}while(t);return n}))},92797:function(e,n,t){t.d(n,{Bx:function(){return v},Cd:function(){return s},IF:function(){return p},bA:function(){return g},o0:function(){return f},v5:function(){return d},z3:function(){return u}});var r=t(42982),i=t(81432),o=t.n(i),a=t(68792),u=o()({ready:o().SYNC|o().ASYNC|o().QUEUE}),c=(0,a.P)();u.ready=function(){var e=u.ready;return function(){try{return e.apply(u,arguments)}finally{c.resolve()}}}();var s=c.promise,d=u.get;function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15,r=e.getHooks({hook:n});0===r.length&&e.before(n,t)}var l={};function g(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.postInstallAllowed,o=void 0!==i&&i;u("async",(function(t){t.forEach((function(e){return n.apply(void 0,(0,r.Z)(e))})),o&&(l[e]=n)}),e)([])}function v(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var i=l[e];if(i)return i.apply(void 0,t);d(e).before((function(e,n){n.push(t),e(n)}))}function p(e,n){return Object.defineProperties(n,Object.fromEntries(["before","after","getHooks","removeAll"].map((function(n){return[n,{get:function(){return e[n]}}]})))),n}},24679:function(e,n,t){t.d(n,{B5:function(){return r},Mk:function(){return o},Oh:function(){return a},pX:function(){return i}});var r="native",i="video",o="banner",a="adpod"},70059:function(e,n,t){t.d(n,{FB:function(){return L},Fb:function(){return B},JL:function(){return M},Sg:function(){return y},Ur:function(){return P},a$:function(){return q},e6:function(){return j},eK:function(){return Z},kH:function(){return U},lY:function(){return G},r4:function(){return R},ub:function(){return O},xc:function(){return E},zq:function(){return V}});var r=t(42982),i=t(70885),o=t(4942),a=t(71002),u=t(20265),c=t(64358),s=t(34614),d=t(78653),f=t(62200),l=t(24679),g=t(13667),v=t(88099);function p(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return m(e,n);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 m(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=[],E=Object.keys(f.FY).map((function(e){return f.FY[e]})),w={image:{ortb:{ver:"1.2",assets:[{required:1,id:1,img:{type:3,wmin:100,hmin:100}},{required:1,id:2,title:{len:140}},{required:1,id:3,data:{type:1}},{required:0,id:4,data:{type:2}},{required:0,id:5,img:{type:1,wmin:20,hmin:20}}]},image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}},T=J(f.V1),I=J(f.s$),A={img:1,js:2,1:"img",2:"js"},C=1;function O(e){return e.native&&"object"===(0,a.Z)(e.native)}function S(e){if(e&&e.type&&function(e){if(!e||!(0,s.q9)(Object.keys(w),e))return(0,c.logError)("".concat(e," nativeParam is not supported")),!1;return!0}(e.type)&&(e=w[e.type]),!e||!e.ortb||k(e.ortb))return e}function B(e){e.forEach((function(e){var n=e.nativeParams||(0,u.Z)(e,"mediaTypes.native");n&&(e.nativeParams=S(n)),e.nativeParams&&(e.nativeOrtbRequest=e.nativeParams.ortb||L(e.nativeParams))}))}function k(e){var n=e.assets;if(!Array.isArray(n)||0===n.length)return(0,c.logError)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",n),!1;var t=n.map((function(e){return e.id}));return n.length!==new Set(t).size||t.some((function(e){return e!==parseInt(e,10)}))?((0,c.logError)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):e.hasOwnProperty("eventtrackers")&&!Array.isArray(e.eventtrackers)?((0,c.logError)("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):n.every((function(e){return function(e){if(!(0,c.isPlainObject)(e))return(0,c.logError)("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!(0,c.isNumber)(e.img.w)&&!(0,c.isNumber)(e.img.wmin))return(0,c.logError)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,c.isNumber)(e.img.h)&&!(0,c.isNumber)(e.img.hmin))return(0,c.logError)("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!(0,c.isNumber)(e.title.len))return(0,c.logError)("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!(0,c.isNumber)(e.data.type))return(0,c.logError)("for data asset 'type' property must be a number"),!1}else if(e.video&&!(Array.isArray(e.video.mimes)&&Array.isArray(e.video.protocols)&&(0,c.isNumber)(e.video.minduration)&&(0,c.isNumber)(e.video.maxduration)))return(0,c.logError)("video asset is not properly configured"),!1;return!0}(e)}))}function R(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?d.K.index:r,o=i.getAdUnit(e);if(!o)return!1;var a=o.nativeOrtbRequest,u=(null===(n=e.native)||void 0===n?void 0:n.ortb)||K(e.native,a);return D(u,a)}function D(e,n){if(!(0,u.Z)(e,"link.url"))return(0,c.logError)("native response doesn't have 'link' property. Ortb response: ",e),!1;var t=n.assets.filter((function(e){return 1===e.required})).map((function(e){return e.id})),r=e.assets.map((function(e){return e.id})),i=t.every((function(e){return(0,s.q9)(r,e)}));return i||(0,c.logError)("didn't receive a bid with all required assets. Required ids: ".concat(t,", but received ids in response: ").concat(r)),i}function j(e,n){var t=n.native.ortb||H(n.native);return"click"===e.action?function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetchURL,r=void 0===t?c.triggerPixel:t;if(n){var i,o=(e.assets||[]).filter((function(e){return e.link})).reduce((function(e,n){return e[n.id]=n.link,e}),{}),a=(null===(i=e.link)||void 0===i?void 0:i.clicktrackers)||[],u=o[n],s=a;u&&(s=u.clicktrackers||[]),s.forEach((function(e){return r(e)}))}else{var d;((null===(d=e.link)||void 0===d?void 0:d.clicktrackers)||[]).forEach((function(e){return r(e)}))}}(t,null==e?void 0:e.assetId):function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.runMarkup,r=void 0===t?function(e){return(0,c.insertHtmlIntoIframe)(e)}:t,i=n.fetchURL,o=void 0===i?c.triggerPixel:i,a=(e.eventtrackers||[]).filter((function(e){return e.event===C})).reduce((function(e,n){return A.hasOwnProperty(n.method)&&e[A[n.method]].push(n.url),e}),{img:[],js:[]}),u=a.img,s=a.js;e.imptrackers&&(u=u.concat(e.imptrackers));u.forEach((function(e){return o(e)})),s=s.map((function(e){return'<script async src="'.concat(e,'"><\/script>')})),e.jstracker&&(s=s.concat([e.jstracker]));s.length&&r(s.join("\n"))}(t),e.action}function U(e,n){var t,r=null==n?void 0:n.nativeOrtbRequest,i=null===(t=e.native)||void 0===t?void 0:t.ortb;if(r&&i){var o=V(i,r);Object.assign(e.native,o)}["rendererUrl","adTemplate"].forEach((function(t){var r,i=null==n||null===(r=n.nativeParams)||void 0===r?void 0:r[t];i&&(e.native[t]=W(i))}))}function P(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?d.K.index:t,i={},o=r.getAdUnit(e),a=!1!==(0,u.Z)(o,"nativeParams.sendTargetingKeys"),c=F(o),s=b(b({},e.native),e.native.ext);return delete s.ext,Object.keys(s).forEach((function(n){var t=c[n],r=W(e.native[n])||W((0,u.Z)(e,"native.ext.".concat(n)));if("adTemplate"!==n&&t&&r){var s=(0,u.Z)(o,"nativeParams.".concat(n,".sendId"));if("boolean"!=typeof s&&(s=(0,u.Z)(o,"nativeParams.ext.".concat(n,".sendId"))),s)r="".concat(t,":").concat(e.adId);var d=(0,u.Z)(o,"nativeParams.".concat(n,".sendTargetingKeys"));"boolean"!=typeof d&&(d=(0,u.Z)(o,"nativeParams.ext.".concat(n,".sendTargetingKeys"))),("boolean"==typeof d?d:a)&&(i[t]=r)}})),i}function _(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=[];return Object.entries(e).filter((function(e){var r=(0,i.Z)(e,2),o=r[0];return r[1]&&(!1===t&&"ext"===o||null==n||n.includes(o))})).forEach((function(e){var a=(0,i.Z)(e,2),u=a[0],c=a[1];!1===t&&"ext"===u?o.push.apply(o,(0,r.Z)(_(c,n,!0))):(t||f.FY.hasOwnProperty(u))&&o.push({key:u,value:W(c)})})),o}function q(e,n,t){var r,i,o=b(b({},(0,c.getDefinedParams)(e.native,["rendererUrl","adTemplate"])),{},{assets:_(e.native,t),nativeKeys:f.FY});return e.native.ortb?o.ortb=e.native.ortb:null!==(r=n.mediaTypes)&&void 0!==r&&null!==(i=r.native)&&void 0!==i&&i.ortb&&(o.ortb=K(e.native,n.nativeOrtbRequest)),o}function N(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.index,o=void 0===i?d.K.index:i,a={message:"assetResponse",adId:e.adId},u=(0,g.Lj)(n).native;return u?(a.native=Object.assign({},u),a.renderer=(0,v.m)(n),null!=t&&(u.assets=u.assets.filter((function(e){var n=e.key;return t.includes(n)})))):u=q(n,o.getAdUnit(n),t),Object.assign(a,u)}var x=Object.fromEntries(Object.entries(f.FY).map((function(e){var n=(0,i.Z)(e,2),t=n[0];return[n[1],t]})));function Z(e,n){var t=e.assets.map((function(e){return x[e]}));return N(e,n,t)}function M(e,n){return N(e,n,null)}function W(e){return(null==e?void 0:e.url)||e}function F(e){var n={};return(0,u.Z)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((function(e){n[e]="hb_native_".concat(e)})),b(b({},f.FY),n)}function L(e){if(e||(0,c.isPlainObject)(e)){var n={ver:"1.2",assets:[]};for(var t in e)if(!f.zA.includes(t))if(f.FY.hasOwnProperty(t))if("privacyLink"!==t){var r=e[t],i=0;r.required&&(0,c.isBoolean)(r.required)&&(i=Number(r.required));var o={id:n.assets.length,required:i};if(t in f.V1)o.data={type:f.s$[f.V1[t]]},r.len&&(o.data.len=r.len);else if("icon"===t||"image"===t){if(o.img={type:"icon"===t?f.oF.ICON:f.oF.MAIN},r.aspect_ratios)if((0,c.isArray)(r.aspect_ratios))if(r.aspect_ratios.length){var a=r.aspect_ratios[0],u=a.min_width,s=a.min_height;(0,c.isInteger)(u)&&(0,c.isInteger)(s)?(o.img.wmin=u,o.img.hmin=s):(0,c.logError)("image.aspect_ratios min_width or min_height are invalid: ",u,s);var d=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)}));d.length>0&&(o.img.ext={aspectratios:d})}else(0,c.logError)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,c.logError)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,c.isInteger)(r.sizes[0])&&(0,c.isInteger)(r.sizes[1])?(o.img.w=r.sizes[0],o.img.h=r.sizes[1],delete o.img.hmin,delete o.img.wmin):(0,c.logError)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===t?o.title={len:r.len||140}:"ext"===t&&(o.ext=r,delete o.required);n.assets.push(o)}else n.privacy=1;else(0,c.logError)("Unrecognized native asset code: ".concat(t,". Asset will be ignored."));return n}(0,c.logError)("Native assets object is empty or not an object: ",e)}function z(e){if(k(e)){var n,t={},r=p(e.assets);try{var i=function(){var r=n.value;if(r.title){var i={required:!!r.required&&Boolean(r.required),len:r.title.len};t.title=i}else if(r.img){var o={required:!!r.required&&Boolean(r.required)};if(r.img.w&&r.img.h)o.sizes=[r.img.w,r.img.h];else if(r.img.wmin&&r.img.hmin){var a=function(e,n){for(;e&&n&&e!==n;)e>n?e-=n:n-=e;return e||n}(r.img.wmin,r.img.hmin);o.aspect_ratios=[{min_width:r.img.wmin,min_height:r.img.hmin,ratio_width:r.img.wmin/a,ratio_height:r.img.hmin/a}]}r.img.type===f.oF.MAIN?t.image=o:t.icon=o}else if(r.data){var u=Object.keys(f.s$).find((function(e){return f.s$[e]===r.data.type})),c=Object.keys(f.V1).find((function(e){return f.V1[e]===u}));t[c]={required:!!r.required&&Boolean(r.required)},r.data.len&&(t[c].len=r.data.len)}e.privacy&&(t.privacyLink={required:!1})};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}return t}}function G(e){if(!e||!(0,c.isArray)(e))return e;if(!e.some((function(e){var n;return null===(n=((null==e?void 0:e.mediaTypes)||{})[l.B5])||void 0===n?void 0:n.ortb})))return e;var n,t=(0,c.deepClone)(e),r=p(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.mediaTypes&&i.mediaTypes[l.B5]&&i.mediaTypes[l.B5].ortb&&(i.mediaTypes[l.B5]=Object.assign((0,c.pick)(i.mediaTypes[l.B5],f.zA),z(i.mediaTypes[l.B5].ortb)),i.nativeParams=S(i.mediaTypes[l.B5]))}}catch(e){r.e(e)}finally{r.f()}return t}function H(e){var n={link:{},eventtrackers:[]};return Object.entries(e).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];switch(r){case"clickUrl":n.link.url=o;break;case"clickTrackers":n.link.clicktrackers=Array.isArray(o)?o:[o];break;case"impressionTrackers":(Array.isArray(o)?o:[o]).forEach((function(e){n.eventtrackers.push({event:C,method:A.img,url:e})}));break;case"javascriptTrackers":n.jstracker=Array.isArray(o)?o.join(""):o;break;case"privacyLink":n.privacy=o}})),n}function K(e,n){var t=b(b({},H(e)),{},{assets:[]});function r(e,r){var i=n.assets.find(e);null!=i&&(r(i=(0,c.deepClone)(i)),t.assets.push(i))}return Object.keys(e).filter((function(n){return!!e[n]})).forEach((function(n){var t=W(e[n]);switch(n){case"title":r((function(e){return null!=e.title}),(function(e){e.title={text:t}}));break;case"image":case"icon":var i="image"===n?f.oF.MAIN:f.oF.ICON;r((function(e){return null!=e.img&&e.img.type===i}),(function(e){e.img={url:t}}));break;default:n in f.V1&&r((function(e){return null!=e.data&&e.data.type===f.s$[f.V1[n]]}),(function(e){e.data={value:t}}))}})),t}function V(e,n){var t={},i=(null==n?void 0:n.assets)||[];t.clickUrl=e.link.url,t.privacyLink=e.privacy;var o,a=p((null==e?void 0:e.assets)||[]);try{var u=function(){var e=o.value,n=i.find((function(n){return e.id===n.id}));e.title?t.title=e.title.text:e.img?t[n.img.type===f.oF.MAIN?"image":"icon"]={url:e.img.url,width:e.img.w,height:e.img.h}:e.data&&(t[T[I[n.data.type]]]=e.data.value)};for(a.s();!(o=a.n()).done;)u()}catch(e){a.e(e)}finally{a.f()}t.impressionTrackers=[];var c,s=[];e.imptrackers&&(c=t.impressionTrackers).push.apply(c,(0,r.Z)(e.imptrackers));var d,l=p((null==e?void 0:e.eventtrackers)||[]);try{for(l.s();!(d=l.n()).done;){var g=d.value;g.event===C&&g.method===A.img&&t.impressionTrackers.push(g.url),g.event===C&&g.method===A.js&&s.push(g.url)}}catch(e){l.e(e)}finally{l.f()}return s=s.map((function(e){return'<script async src="'.concat(e,'"><\/script>')})),null!=e&&e.jstracker&&s.push(e.jstracker),s.length&&(t.javascriptTrackers=s.join("\n")),t}function J(e){var n={};for(var t in e)n[e[t]]=t;return n}},26372:function(e,n,t){t.d(n,{DZ:function(){return a},Px:function(){return u},TP:function(){return s},YC:function(){return c},Z:function(){return o},f8:function(){return v},fP:function(){return p},gm:function(){return r},md:function(){return d}});var r=["request","imp","bidResponse","response"],i=["default","pbs"],o=r[0],a=r[1],u=r[2],c=r[3],s=i[0],d=i[1],f=new Set(r);var l,g=(l={},{registerOrtbProcessor:function(e){var n=e.type,t=e.name,i=e.fn,o=e.priority,a=void 0===o?0:o,u=e.dialects,c=void 0===u?[s]:u;if(!f.has(n))throw new Error("ORTB processor type must be one of: ".concat(r.join(", ")));c.forEach((function(e){l.hasOwnProperty(e)||(l[e]={}),l[e].hasOwnProperty(n)||(l[e][n]={}),l[e][n][t]={priority:a,fn:i}}))},getProcessors:function(e){return l[e]||{}}}),v=g.registerOrtbProcessor,p=g.getProcessors},34614:function(e,n,t){function r(e,n,t){return e&&e.includes(n,t)||!1}function i(){return Array.from.apply(Array,arguments)}function o(e,n,t){return e&&e.find(n,t)}function a(e,n,t){return e&&e.findIndex(n,t)}t.d(n,{Oc:function(){return i},cx:function(){return a},q9:function(){return r},sE:function(){return o}})},20327:function(e,n,t){t.d(n,{zh:function(){return Y},O5:function(){return ne},ew:function(){return ie}});var r,i=t(70885),o=t(4942),a=t(78640),u=t(64358),c=t(20265),s=t(96475),d=t(52021),f=t(70059),l=t(62200),g=t(78653),v=t(34614),p=t(13667),m=t(88099);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=l.X3.REQUEST,E=l.X3.RESPONSE,w=l.X3.NATIVE,T=l.X3.EVENT,I=l.FP.BID_WON,A=(r={},(0,o.Z)(r,y,(function(e,n,t){(0,p.XD)({renderFn:function(n){e(Object.assign({message:E,renderer:(0,m.m)(t)},n))},resizeFn:O(t),options:n.options,adId:n.adId,bidResponse:t})})),(0,o.Z)(r,T,(function(e,n,t){if(null==t)return void(0,u.logError)("Cannot find ad '".concat(n.adId,"' for x-origin event request"));if(t.status!==l.UE.RENDERED)return void(0,u.logWarn)("Received x-origin event request without corresponding render request for ad '".concat(t.adId,"'"));return(0,p.oc)(n,t)})),r);function C(e){var n=e.message?"message":"data",t={};try{t=JSON.parse(e[n])}catch(e){return}if(t&&t.adId&&t.message){var r=(0,v.sE)(g.K.getBidsReceived(),(function(e){return e.adId===t.adId}));A.hasOwnProperty(t.message)&&A[t.message](function(e){return null==e.origin&&0===e.ports.length?function(){var e="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw(0,u.logError)(e),new Error(e)}:e.ports.length>0?function(n){e.ports[0].postMessage(JSON.stringify(n))}:function(n){e.source.postMessage(JSON.stringify(n),e.origin)}}(e),t,r)}}function O(e){return function(n,t){!function(e){var n=e.adId,t=e.adUnitCode,r=e.width,i=e.height;function o(e){return e?e+"px":"100%"}function a(e){var r=c(n,t),i=document.getElementById(r);return i&&i.querySelector(e)}function c(e,n){return(0,u.isGptPubadsDefined)()?s(e):(0,u.isApnGetTagDefined)()?d(n):n}function s(e){var n=(0,v.sE)(window.googletag.pubads().getSlots(),(function(n){return(0,v.sE)(n.getTargetingKeys(),(function(t){return(0,v.q9)(n.getTargeting(t),e)}))}));return n?n.getSlotElementId():null}function d(e){var n=window.apntag.getTag(e);return n&&n.targetId}["div","iframe"].forEach((function(e){var n=a(e+':not([style*="display: none"])');if(n){var c=n.style;c.width=o(r),c.height=o(i)}else(0,u.logWarn)("Unable to locate matching page element for adUnitCode ".concat(t,".  Can't resize it to ad's dimensions.  Please review setup."))}))}(b(b({},e),{},{width:n,height:t}))}}Object.assign(A,(0,o.Z)({},w,(function(e,n,t){if(null==t)return void(0,u.logError)("Cannot find ad for x-origin event request: '".concat(n.adId,"'"));t.status!==l.UE.RENDERED&&(g.K.addWinningBid(t),d.emit(I,t));switch(n.action){case"assetRequest":e((0,f.eK)(n,t));break;case"allAssetRequest":e((0,f.JL)(n,t));break;default:(0,p.E$)(n,t,{resizeFn:O(t)})}})));var S=t(11974),B=t(3193),k=t(18621),R=t(92797),D=t(53777),j=t(69626),U=t(15164),P=t(93304),_=t(99128),q=t(68792),N=t(54078),x=t(34516),Z=t(31136),M=t(90154),W=(0,a.R)(),F=S.k_.triggerUserSyncs,L=l.FP.ADD_AD_UNITS,z=l.FP.REQUEST_BIDS,G=l.FP.SET_TARGETING,H={bidWon:function(e){if(!g.K.getBidsRequested().map((function(e){return e.bids.map((function(e){return e.adUnitCode}))})).reduce(u.flatten).filter(u.uniques).includes(e))return void(0,u.logError)('The "'+e+'" placement is not defined.');return!0}};function K(e,n){var t=[];return(0,u.isArray)(e)&&(n?e.length===n:e.length>0)&&(e.every((function(e){return(0,u.isArrayOfNums)(e,2)}))?t=e:(0,u.isArrayOfNums)(e,2)&&t.push(e)),t}function V(e){var n=(0,u.deepClone)(e),t=n.mediaTypes.banner,r=K(t.sizes);return r.length>0?(t.sizes=r,n.sizes=r):((0,u.logError)("Detected a mediaTypes.banner object without a proper sizes field.  Please ensure the sizes are listed like: [[300, 250], ...].  Removing invalid mediaTypes.banner object from request."),delete n.mediaTypes.banner),n}function J(e){var n=(0,u.deepClone)(e),t=n.mediaTypes.video;if(t.playerSize){var r="number"==typeof t.playerSize[0]?2:1,i=K(t.playerSize,r);i.length>0?(2===r&&(0,u.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),t.playerSize=i,n.sizes=i):((0,u.logError)("Detected incorrect configuration of mediaTypes.video.playerSize.  Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete n.mediaTypes.video.playerSize)}return n}function $(e){var n=(0,u.deepClone)(e),t=n.mediaTypes.native;if(t.ortb){var r=Object.keys(l.FY).filter((function(e){return l.FY[e].includes("hb_native_")})),i=Object.keys(t).filter((function(e){return r.includes(e)}));i.length>0&&((0,u.logError)("when using native OpenRTB format, you cannot use legacy native properties. Deleting ".concat(i," keys from request.")),i.forEach((function(e){return delete n.mediaTypes.native[e]})))}return t.image&&t.image.sizes&&!Array.isArray(t.image.sizes)&&((0,u.logError)("Please use an array of sizes for native.image.sizes field.  Removing invalid mediaTypes.native.image.sizes property from request."),delete n.mediaTypes.native.image.sizes),t.image&&t.image.aspect_ratios&&!Array.isArray(t.image.aspect_ratios)&&((0,u.logError)("Please use an array of sizes for native.image.aspect_ratios field.  Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete n.mediaTypes.native.image.aspect_ratios),t.icon&&t.icon.sizes&&!Array.isArray(t.icon.sizes)&&((0,u.logError)("Please use an array of sizes for native.icon.sizes field.  Removing invalid mediaTypes.native.icon.sizes property from request."),delete n.mediaTypes.native.icon.sizes),n}function Q(e,n){var t=(0,c.Z)(e,"mediaTypes.".concat(n,".pos"));if(!(0,u.isNumber)(t)||isNaN(t)||!isFinite(t)){var r="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");(0,u.logWarn)(r),d.emit(l.FP.AUCTION_DEBUG,{type:"WARNING",arguments:r}),delete e.mediaTypes[n].pos}return e}function X(e){var n=function(n){return"adUnit.code '".concat(e.code,"' ").concat(n)},t=e.mediaTypes,r=e.bids;return null==r||(0,u.isArray)(r)?null==r&&null==e.ortb2Imp?((0,u.logError)(n("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):t&&0!==Object.keys(t).length?(null==e.ortb2Imp||null!=r&&0!==r.length||(e.bids=[{bidder:null}],(0,u.logMessage)(n("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),e):((0,u.logError)(n("does not define a 'mediaTypes' object.  This is a required field for the auction, so this adUnit has been removed.")),null):((0,u.logError)(n("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}(0,D.dF)(),W.bidderSettings=W.bidderSettings||{},W.libLoaded=!0,W.version="v8.51.0",(0,u.logInfo)("Prebid.js v8.51.0 loaded"),W.installedModules=W.installedModules||[],W.adUnits=W.adUnits||[],W.triggerUserSyncs=F;var Y={validateAdUnit:X,validateBannerMediaType:V,validateSizes:K};Object.assign(Y,{validateNativeMediaType:$}),Object.assign(Y,{validateVideoMediaType:J});var ee,ne=(0,R.z3)("sync",(function(e){var n=[];return e.forEach((function(e){if(null!=(e=X(e))){var t,r,i,o=e.mediaTypes;o.banner&&(t=V(e),o.banner.hasOwnProperty("pos")&&(t=Q(t,"banner"))),o.video&&(r=J(t||e),o.video.hasOwnProperty("pos")&&(r=Q(r,"video"))),o.native&&(i=$(r||(t||e)));var a=Object.assign({},t,r,i);n.push(a)}})),n}),"checkAdUnitSetup");function te(e){e.forEach((function(e){return(0,M.cx)(e)}))}function re(e){var n=g.K[e]().filter((function(e){return g.K.getAdUnitCodes().includes(e.adUnitCode)})),t=g.K.getLastAuctionId();return n.map((function(e){return e.adUnitCode})).filter(u.uniques).map((function(e){return n.filter((function(n){return n.auctionId===t&&n.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return(0,o.Z)({},e[0].adUnitCode,{bids:e})})).reduce((function(e,n){return Object.assign(e,n)}),{})}W.getAdserverTargetingForAdUnitCodeStr=function(e){if((0,u.logInfo)("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var n=W.getAdserverTargetingForAdUnitCode(e);return(0,u.transformAdServerTargetingObj)(n)}(0,u.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},W.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var n=g.K.getAllBidsForAdUnitCode(e).filter(k.TL);return n.length?n.reduce(Z.ZH):{}}(0,u.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},W.getAdserverTargetingForAdUnitCode=function(e){return W.getAdserverTargeting(e)[e]},W.getAdserverTargeting=function(e){return(0,u.logInfo)("Invoking pbjs.getAdserverTargeting",arguments),k.q0.getAllTargeting(e)},W.getConsentMetadata=function(){return(0,u.logInfo)("Invoking pbjs.getConsentMetadata"),x.NO.getConsentMeta()},W.getNoBids=function(){return(0,u.logInfo)("Invoking pbjs.getNoBids",arguments),re("getNoBids")},W.getNoBidsForAdUnitCode=function(e){return{bids:g.K.getNoBids().filter((function(n){return n.adUnitCode===e}))}},W.getBidResponses=function(){return(0,u.logInfo)("Invoking pbjs.getBidResponses",arguments),re("getBidsReceived")},W.getBidResponsesForAdUnitCode=function(e){return{bids:g.K.getBidsReceived().filter((function(n){return n.adUnitCode===e}))}},W.setTargetingForGPTAsync=function(e,n){if((0,u.logInfo)("Invoking pbjs.setTargetingForGPTAsync",arguments),(0,u.isGptPubadsDefined)()){var t=k.q0.getAllTargeting(e);k.q0.resetPresetTargeting(e,n),k.q0.setTargetingForGPT(t,n),Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(n){"hb_adid"===n&&g.K.setStatusForBids(t[e][n],l.UE.BID_TARGETING_SET)}))})),d.emit(G,t)}else(0,u.logError)("window.googletag is not defined on the page")},W.setTargetingForAst=function(e){(0,u.logInfo)("Invoking pbjs.setTargetingForAn",arguments),k.q0.isApntagDefined()?(k.q0.setTargetingForAst(e),d.emit(G,k.q0.getAllTargeting())):(0,u.logError)("window.apntag is not defined on the page")},W.renderAd=(0,R.z3)("async",(function(e,n,t){(0,u.logInfo)("Invoking pbjs.renderAd",arguments),(0,u.logMessage)("Calling renderAd with adId :"+n),(0,p.tV)(e,n,t)})),W.removeAdUnit=function(e){((0,u.logInfo)("Invoking pbjs.removeAdUnit",arguments),e)?((0,u.isArray)(e)?e:[e]).forEach((function(e){for(var n=W.adUnits.length-1;n>=0;n--)W.adUnits[n].code===e&&W.adUnits.splice(n,1)})):W.adUnits=[]},W.requestBids=(ee=(0,R.z3)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,o=e.adUnitCodes,a=e.labels,c=e.auctionId,s=e.ttlBuffer,f=e.ortb2,l=e.metrics,g=e.defer;d.emit(z);var p=t||B.vc.getConfig("bidderTimeout");(0,u.logInfo)("Invoking pbjs.requestBids",arguments),o&&o.length?r=r.filter((function(e){return(0,v.q9)(o,e.code)})):o=r&&r.map((function(e){return e.code}));var m={global:(0,u.mergeDeep)({},B.vc.getAnyConfig("ortb2")||{},f||{}),bidder:Object.fromEntries(Object.entries(B.vc.getBidderConfig()).map((function(e){var n=(0,i.Z)(e,2);return[n[0],n[1].ortb2]})).filter((function(e){var n=(0,i.Z)(e,2);return n[0],null!=n[1]})))};return(0,N.S)(q.Z.resolve(m.global)).then((function(e){return m.global=e,ie({bidsBackHandler:n,timeout:p,adUnits:r,adUnitCodes:o,labels:a,auctionId:c,ttlBuffer:s,ortb2Fragments:m,metrics:l,defer:g})}))}),"requestBids"),(0,R.IF)(ee,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.adUnits||W.adUnits;return e.adUnits=(0,u.isArray)(n)?n.slice():[n],e.metrics=(0,_.V6)(),e.metrics.checkpoint("requestBids"),e.defer=(0,q.P)({promiseFactory:function(e){return new Promise(e)}}),ee.call(this,e),e.defer.promise})));var ie=(0,R.z3)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,i=e.ttlBuffer,o=e.adUnitCodes,a=e.labels,c=e.auctionId,d=e.ortb2Fragments,f=e.metrics,l=e.defer,p=(0,P.uV)(B.vc.getConfig("s2sConfig")||[]);function m(e,t,r){if("function"==typeof n)try{n(e,t,r)}catch(e){(0,u.logError)("Error executing bidsBackHandler",null,e)}l.resolve({bids:e,timedOut:t,auctionId:r})}te(r),r=(0,_.Bf)(f).measureTime("requestBids.validate",(function(){return ne(r)}));var h={};if(r.forEach((function(e){var n,t,r=Object.keys(e.mediaTypes||{banner:"banner"}),o=e.bids.map((function(e){return e.bidder})),a=P.ZP.bidderRegistry,c=o.filter((function(e){return!p.has(e)}));e.adUnitId=(0,u.generateUUID)();var s=null===(n=e.ortb2Imp)||void 0===n||null===(t=n.ext)||void 0===t?void 0:t.tid;s&&(h.hasOwnProperty(e.code)?(0,u.logWarn)("Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '".concat(e.code,"'")):h[e.code]=s),null==i||e.hasOwnProperty("ttlBuffer")||(e.ttlBuffer=i),c.forEach((function(n){var t=a[n],i=t&&t.getSpec&&t.getSpec(),o=i&&i.supportedMediaTypes||["banner"];r.some((function(e){return(0,v.q9)(o,e)}))||((0,u.logWarn)((0,u.unsupportedBidderMessage)(e,n)),e.bids=e.bids.filter((function(e){return e.bidder!==n})))}))})),r&&0!==r.length){r.forEach((function(e){var n,t,r=(null===(n=e.ortb2Imp)||void 0===n||null===(t=n.ext)||void 0===t?void 0:t.tid)||h[e.code]||(0,u.generateUUID)();h.hasOwnProperty(e.code)||(h[e.code]=r),e.transactionId=r,(0,s.N)(e,"ortb2Imp.ext.tid",r)}));var b=g.K.createAuction({adUnits:r,adUnitCodes:o,callback:m,cbTimeout:t,labels:a,auctionId:c,ortb2Fragments:d,metrics:f}),y=r.length;y>15&&(0,u.logInfo)("Current auction ".concat(b.getAuctionId()," contains ").concat(y," adUnits."),r),o.forEach((function(e){return k.q0.setLatestAuctionForAdUnit(e,b.getAuctionId())})),b.callBids()}else(0,u.logMessage)("No adUnits configured. No bids requested."),m()}),"startAuction");W.requestBids.before((function(e,n){function t(e){for(var n;n=e.shift();)n()}t(U.Ld),t(oe),e.call(this,n)}),49),W.addAdUnits=function(e){(0,u.logInfo)("Invoking pbjs.addAdUnits",arguments),W.adUnits.push.apply(W.adUnits,(0,u.isArray)(e)?e:[e]),d.emit(L)},W.onEvent=function(e,n,t){(0,u.logInfo)("Invoking pbjs.onEvent",arguments),(0,u.isFn)(n)?!t||H[e].call(null,t)?d.on(e,n,t):(0,u.logError)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,u.logError)('The event handler provided is not a function and was not set on event "'+e+'".')},W.offEvent=function(e,n,t){(0,u.logInfo)("Invoking pbjs.offEvent",arguments),t&&!H[e].call(null,t)||d.off(e,n,t)},W.getEvents=function(){return(0,u.logInfo)("Invoking pbjs.getEvents"),d.getEvents()},W.registerBidAdapter=function(e,n){(0,u.logInfo)("Invoking pbjs.registerBidAdapter",arguments);try{P.ZP.registerBidAdapter(e(),n)}catch(e){(0,u.logError)("Error registering bidder adapter : "+e.message)}},W.registerAnalyticsAdapter=function(e){(0,u.logInfo)("Invoking pbjs.registerAnalyticsAdapter",arguments);try{P.ZP.registerAnalyticsAdapter(e)}catch(e){(0,u.logError)("Error registering analytics adapter : "+e.message)}},W.createBid=function(e){return(0,u.logInfo)("Invoking pbjs.createBid",arguments),(0,j.m)(e)};var oe=[],ae=(0,R.z3)("async",(function(e){e&&!(0,u.isEmpty)(e)?((0,u.logInfo)("Invoking pbjs.enableAnalytics for: ",e),P.ZP.enableAnalytics(e)):(0,u.logError)("pbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");W.enableAnalytics=function(e){oe.push(ae.bind(this,e))},W.aliasBidder=function(e,n,t){(0,u.logInfo)("Invoking pbjs.aliasBidder",arguments),e&&n?P.ZP.aliasBidAdapter(e,n,t):(0,u.logError)("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},W.aliasRegistry=P.ZP.aliasRegistry,B.vc.getConfig("aliasRegistry",(function(e){"private"===e.aliasRegistry&&delete W.aliasRegistry})),W.getAllWinningBids=function(){return g.K.getAllWinningBids()},W.getAllPrebidWinningBids=function(){return g.K.getBidsReceived().filter((function(e){return e.status===l.UE.BID_TARGETING_SET}))},W.getHighestCpmBids=function(e){return k.q0.getWinningBids(e)},W.markWinningBidAsUsed=function(e){var n=ue(e,"Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function.");n.length>0&&g.K.addWinningBid(n[0])};var ue=function(e,n){var t=[];return e.adUnitCode&&e.adId?t=g.K.getBidsReceived().filter((function(n){return n.adId===e.adId&&n.adUnitCode===e.adUnitCode})):e.adUnitCode?t=k.q0.getWinningBids(e.adUnitCode):e.adId?t=g.K.getBidsReceived().filter((function(n){return n.adId===e.adId})):(0,u.logWarn)(n),t};function ce(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){(0,u.logError)("Error processing command :","prebid.js",e)}}))}W.getConfig=B.vc.getAnyConfig,W.readConfig=B.vc.readAnyConfig,W.mergeConfig=B.vc.mergeConfig,W.mergeBidderConfig=B.vc.mergeBidderConfig,W.setConfig=B.vc.setConfig,W.setBidderConfig=B.vc.setBidderConfig,W.que.push((function(){window.addEventListener("message",C,!1)})),W.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){(0,u.logError)("Error processing command :",e.message,e.stack)}else(0,u.logError)("Commands written into pbjs.cmd.push must be wrapped in a function")},W.que.push=W.cmd.push,W.processQueue=function(){R.z3.ready(),ce(W.que),ce(W.cmd)},W.triggerBilling=function(e){var n=ue(e,"Improper use of triggerBilling. It requires a bid with at least an adUnitCode or an adId to function."),t=n.find((function(n){return n.requestId===e.requestId}))||n[0];if(n.length>0&&t)try{P.ZP.callBidBillableBidder(t)}catch(e){(0,u.logError)("Error when triggering billing :",e)}else(0,u.logWarn)("The bid provided to triggerBilling did not match any bids received.")}},78640:function(e,n,t){t.d(n,{R:function(){return o},z:function(){return a}});var r=window,i=r.pbjs=r.pbjs||{};function o(){return i}function a(e){i.installedModules.push(e)}i.cmd=i.cmd||[],i.que=i.que||[],r===window&&(r._pbjsGlobals=r._pbjsGlobals||[],r._pbjsGlobals.push("pbjs"))},25102:function(e,n,t){t.d(n,{hh:function(){return a},nH:function(){return s}});var r=t(3193),i=t(64358);function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!e)return e;if(/\w+:\/\//.exec(e))return e;var t=n.location.protocol;try{t=n.top.location.protocol}catch(e){}return/^\/\//.exec(e)?t+e:"".concat(t,"//").concat(e)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.noLeadingWww,r=void 0!==t&&t,i=n.noPort,a=void 0!==i&&i;try{e=new URL(o(e))}catch(e){return}return e=a?e.hostname:e.host,r&&e.startsWith("www.")&&(e=e.substring(4)),e}function u(e){try{var n=e.querySelector("link[rel='canonical']");if(null!==n)return n.href}catch(e){}return null}var c,s=function(e){var n,t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return i.top!==i?e:function(){var o=u(i.document),a=i.location.href;return n===o&&a===t||(n=o,t=a,r=e()),r}}((c=window,function(){var e,n,t,s,d=[],f=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(c),l=r.vc.getConfig("maxNestedIframes"),g=!1,v=0,p=!1,m=!1,h=!1;do{var b=e,y=m,E=void 0,w=!1,T=null;m=!1,e=e?e.parent:c;try{E=e.location.href||null}catch(e){w=!0}if(w)if(y){var I=b.context;try{n=T=I.sourceUrl,h=!0,p=!0,e===c.top&&(g=!0),I.canonicalUrl&&(t=I.canonicalUrl)}catch(e){}}else{(0,i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{var A=b.document.referrer;A&&(T=A,e===c.top&&(g=!0))}catch(e){}!T&&f&&f[v-1]&&(T=f[v-1],e===c.top&&(h=!0)),T&&!p&&(n=T)}else{if(E&&(n=T=E,p=!1,e===c.top)){g=!0;var C=u(e.document);C&&(t=C)}e.context&&e.context.sourceUrl&&(m=!0)}d.push(T),v++}while(e!==c.top&&v<l);d.reverse();try{s=c.top.document.referrer}catch(e){}var O=g||h?n:null,S=r.vc.getConfig("pageUrl")||t||null,B=r.vc.getConfig("pageUrl")||O||o(S,c);return O&&O.indexOf("?")>-1&&-1===B.indexOf("?")&&(B="".concat(B).concat(O.substring(O.indexOf("?")))),{reachedTop:g,isAmp:p,numIframes:v-1,stack:d,topmostLocation:n||null,location:O,canonicalUrl:S,page:B,domain:a(B)||null,ref:s||null,legacy:{reachedTop:g,isAmp:p,numIframes:v-1,stack:d,referer:n||null,canonicalUrl:S}}}))},15164:function(e,n,t){t.d(n,{Dp:function(){return g},Ld:function(){return p},c$:function(){return v},df:function(){return h},eA:function(){return b}});var r=t(4942),i=t(64358),o=t(55975),a=t(9633),u=t(50571),c=t(16310),s=t(74947),d=t(3193),f=t(93304),l=t(10286),g="html5",v="cookie",p=[];function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.moduleName,t=e.moduleType,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=o.isAllowed,h=void 0===m?u.xD:m;function b(e,i){var o=n,u=d.vc.getCurrentBidder();return u&&t===a.UL&&f.ZP.aliasRegistry[u]===n&&(o=u),e({valid:h(s.S1,(0,l.T)(t,o,(0,r.Z)({},c.bL,i)))})}function y(e,n,t){if(!t||"function"!=typeof t)return b(e,n);p.push((function(){var r=b(e,n);t(r)}))}var E=function(e,n,t,r,i,o){return y((function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",u=t&&""!==t?" ;expires=".concat(t):"",c=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(n)).concat(u,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(c)}}),v,o)},w=function(e,n){return y((function(n){if(n&&n.valid){var t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}),v,n)},T=function(e){return y((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}),g,e)},I=function(e){return y((function(e){return!(!e||!e.valid)&&(0,i.checkCookieSupport)()}),v,e)},A=function(e,n,t){return y((function(t){t&&t.valid&&S()&&window.localStorage.setItem(e,n)}),g,t)},C=function(e,n){return y((function(n){return n&&n.valid&&S()?window.localStorage.getItem(e):null}),g,n)},O=function(e,n){return y((function(n){n&&n.valid&&S()&&window.localStorage.removeItem(e)}),g,n)},S=function(e){return y((function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){(0,i.logError)("Local storage api disabled")}return!1}),g,e)},B=function(e,n){return y((function(n){if(n&&n.valid){var t=[];if((0,i.hasDeviceAccess)())for(var r=document.cookie.split(";");r.length;){var o=r.pop(),a=o.indexOf("=");a=a<0?o.length:a,decodeURIComponent(o.slice(0,a).replace(/^\s+/,"")).indexOf(e)>=0&&t.push(decodeURIComponent(o.slice(a+1)))}return t}}),v,n)};return{setCookie:E,getCookie:w,localStorageIsEnabled:T,cookiesAreEnabled:I,setDataInLocalStorage:A,getDataFromLocalStorage:C,removeDataFromLocalStorage:O,hasLocalStorage:S,findSimilarCookies:B}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.moduleType,t=e.moduleName,r=e.bidderCode;function i(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return r?((n&&n!==a.UL||t)&&i(),n=a.UL,t=r):t&&n||i(),m({moduleType:n,moduleName:t})}function b(e){return m({moduleName:e,moduleType:a.wu})}(0,u.oB)(s.S1,"deviceAccess config",(function(){if(!(0,i.hasDeviceAccess)())return{allow:!1}})),(0,u.oB)(s.S1,"bidderSettings.*.storageAllowed",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.S;if(e[c.$k]===a.UL){var t=n.get(e[c.Ki],"storageAllowed");if(t&&!0!==t){var r=e[c.bL];t=Array.isArray(t)?t.some((function(e){return e===r})):t===r}else t=!!t;return t?void 0:{allow:t}}}))},18621:function(e,n,t){t.d(n,{TL:function(){return I},bP:function(){return C},ol:function(){return A},q0:function(){return O}});var r=t(4942),i=t(42982),o=t(64358),a=t(20265),u=t(3193),c=t(70059),s=t(78653),d=t(24679),f=t(92797),l=t(55975),g=t(34614),v=t(62200),p=t(31136),m=t(8833),h=[],b="targetingControls.allowTargetingKeys",y="targetingControls.addTargetingKeys",E='Only one of "'.concat(b,'" or "').concat(y,'" can be set'),w=Object.keys(v.TD).map((function(e){return v.TD[e]})),T={isActualBid:function(e){return e.getStatusCode()===v.Q_.GOOD},isBidNotExpired:function(e){return e.responseTimestamp+1e3*(0,m.N)(e)>(0,o.timestamp)()},isUnusedBid:function(e){return e&&(e.status&&!(0,g.q9)([v.UE.RENDERED],e.status)||!e.status)}};function I(e){return!Object.values(T).some((function(n){return!n(e)}))}var A=(0,f.z3)("sync",(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r){var a=[],c=u.vc.getConfig("sendBidsControl.dealPrioritization"),s=(0,o.groupBy)(e,"adUnitCode");return Object.keys(s).forEach((function(e){var r=[],u=(0,o.groupBy)(s[e],"bidderCode");Object.keys(u).forEach((function(e){return r.push(u[e].reduce(n))})),t>0?(r=c?r.sort(C(!0)):r.sort((function(e,n){return n.cpm-e.cpm})),a.push.apply(a,(0,i.Z)(r.slice(0,t)))):a.push.apply(a,(0,i.Z)(r))})),a}return e}));function C(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(n,t){return void 0!==n.adserverTargeting.hb_deal&&void 0===t.adserverTargeting.hb_deal?-1:void 0===n.adserverTargeting.hb_deal&&void 0!==t.adserverTargeting.hb_deal?1:e?t.cpm-n.cpm:t.adserverTargeting.hb_pb-n.adserverTargeting.hb_pb}}var O=function(e){var n={},t={};function s(e,n){return e.adserverTargeting&&n&&((0,o.isArray)(n)&&(0,g.q9)(n,e.adUnitCode)||"string"==typeof n&&e.adUnitCode===n)}function f(e,n){if(!0===u.vc.getConfig("targetingControls.alwaysIncludeDeals")){var t=w.concat(c.xc);return A(n,p.ZH).map((function(n){if(n.dealId&&s(n,e))return(0,r.Z)({},n.adUnitCode,q(n,t.filter((function(e){return void 0!==n.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}function m(e,n){var t=Object.assign({},v.TD,v.FY),r=Object.keys(t),i={};(0,o.logInfo)("allowTargetingKeys - allowed keys [ ".concat(n.map((function(e){return t[e]})).join(", ")," ]")),e.map((function(e){var o=Object.keys(e)[0],a=e[o].filter((function(e){var o=Object.keys(e)[0],a=0===r.filter((function(e){return 0===o.indexOf(t[e])})).length||(0,g.sE)(n,(function(e){var n=t[e];return 0===o.indexOf(n)}));return i[o]=!a,a}));e[o]=a}));var a=Object.keys(i).filter((function(e){return i[e]}));return(0,o.logInfo)("allowTargetingKeys - removed keys [ ".concat(a.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}function T(e,n){var t=(0,o.deepClone)(e);return Object.keys(t).map((function(e){return{adUnitCode:e,adserverTargeting:t[e]}})).sort(C()).reduce((function(e,r,i,a){var u,c=(u=r.adserverTargeting,Object.keys(u).reduce((function(e,n){return e+"".concat(n,"%3d").concat(encodeURIComponent(u[n]),"%26")}),""));i+1===a.length&&(c=c.slice(0,-3));var s=r.adUnitCode,d=c.length;return d<=n?(n-=d,(0,o.logInfo)("AdUnit '".concat(s,"' auction keys comprised of ").concat(d," characters.  Deducted from running threshold; new limit is ").concat(n),t[s]),e[s]=t[s]):(0,o.logWarn)("The following keys for adUnitCode '".concat(s,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(d,", the current allotted amount was ").concat(n,".\n"),t[s]),i+1===a.length&&0===Object.keys(e).length&&(0,o.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars).  Please review setup and consider adjusting."),e}),{})}function O(e){var n=e.map((function(e){return(0,r.Z)({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return(0,r.Z)({},Object.keys(e)[0],e[Object.keys(e)[0]].join(","))})).reduce((function(e,n){return Object.assign(n,e)}),{}))})).reduce((function(e,n){var t=Object.keys(n)[0];return e[t]=Object.assign({},e[t],n[t]),e}),{});return n}function S(n){return"string"==typeof n?[n]:(0,o.isArray)(n)?n:e.getAdUnitCodes()||[]}function B(){var n=e.getBidsReceived();if(u.vc.getConfig("useBidCache")){var r=u.vc.getConfig("bidCacheFilterFunction");"function"==typeof r&&(n=n.filter((function(e){return t[e.adUnitCode]===e.auctionId||!!r(e)})))}else n=n.filter((function(e){return t[e.adUnitCode]===e.auctionId}));return(n=n.filter((function(e){return(0,a.Z)(e,"video.context")!==d.Oh})).filter(I)).forEach((function(e){return e.latestTargetedAuctionId=t[e.adUnitCode],e})),A(n,p.K$)}function k(e,t){var o=n.getWinningBids(e,t),a=R();return o=o.map((function(e){return(0,r.Z)({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(n){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===a.indexOf(n)})).reduce((function(n,t){var o=[e.adserverTargeting[t]],a=(0,r.Z)({},t.substring(0,20),o);if(t===v.TD.DEAL){var u="".concat(t,"_").concat(e.bidderCode).substring(0,20),c=(0,r.Z)({},u,o);return[].concat((0,i.Z)(n),[a,c])}return[].concat((0,i.Z)(n),[a])}),[]))})),o}function R(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(w).filter(o.uniques)}function D(e,n,t,r){return Object.keys(n.adserverTargeting).filter(j()).forEach((function(t){e.length&&e.filter(function(e){return function(t){return t.adUnitCode===n.adUnitCode&&t.adserverTargeting[e]}}(t)).forEach(function(e){return function(t){(0,o.isArray)(t.adserverTargeting[e])||(t.adserverTargeting[e]=[t.adserverTargeting[e]]),t.adserverTargeting[e]=t.adserverTargeting[e].concat(n.adserverTargeting[e]).filter(o.uniques),delete n.adserverTargeting[e]}}(t))})),e.push(n),e}function j(){var e=R();return e=e.concat(c.xc),function(n){return-1===e.indexOf(n)}}function U(e){return(0,r.Z)({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(j()).map((function(n){return(0,r.Z)({},n.substring(0,20),[e.adserverTargeting[n]])})))}function P(e,n){return n.filter((function(n){return(0,g.q9)(e,n.adUnitCode)})).map((function(e){return Object.assign({},e)})).reduce(D,[]).map(U).filter((function(e){return e}))}function _(e,n){var t=w.concat(c.xc),i=u.vc.getConfig("sendBidsControl.bidLimit"),o=A(n,p.ZH,i),a=u.vc.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),d=a?a.map((function(e){return v.TD[e]})):t;return o.map((function(n){if(s(n,e))return(0,r.Z)({},n.adUnitCode,q(n,t.filter((function(e){return void 0!==n.adserverTargeting[e]&&-1!==d.indexOf(e)}))))})).filter((function(e){return e}))}function q(e,n){return n.map((function(n){return(0,r.Z)({},"".concat(n,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}function N(n){function t(e){return(0,a.Z)(e,v.k2.ADSERVER_TARGETING)}return e.getAdUnits().filter((function(e){return(0,g.q9)(n,e.code)&&t(e)})).map((function(e){return(0,r.Z)({},e.code,function(e){var n=t(e);return Object.keys(n).map((function(e){return(0,o.isStr)(n[e])&&(n[e]=n[e].split(",").map((function(e){return e.trim()}))),(0,o.isArray)(n[e])||(n[e]=[n[e]]),(0,r.Z)({},e,n[e])}))}(e))}))}return n.setLatestAuctionForAdUnit=function(e,n){t[e]=n},n.resetPresetTargeting=function(n,t){if((0,o.isGptPubadsDefined)()){var r=S(n),i=e.getAdUnits().filter((function(e){return(0,g.q9)(r,e.code)})),a=h.reduce((function(e,n){return e[n]=null,e}),{});window.googletag.pubads().getSlots().forEach((function(e){var n=(0,o.isFn)(t)&&t(e);i.forEach((function(t){(t.code===e.getAdUnitPath()||t.code===e.getSlotElementId()||(0,o.isFn)(n)&&n(t.code))&&e.updateTargetingFromMap(a)}))}))}},n.resetPresetTargetingAST=function(e){S(e).forEach((function(e){var n=window.apntag.getTag(e);if(n&&n.keywords){var t=Object.keys(n.keywords),r={};t.forEach((function(e){(0,g.q9)(h,e.toLowerCase())||(r[e]=n.keywords[e])})),window.apntag.modifyTag(e,{keywords:r})}}))},n.getAllTargeting=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B(),t=S(e),r=k(t,n).concat(P(t,n)).concat(u.vc.getConfig("enableSendAllBids")?_(t,n):f(t,n)).concat(N(t));r.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===h.indexOf(Object.keys(e)[0])&&(h=Object.keys(e).concat(h))}))}))}));var i=Object.keys(Object.assign({},v.kF,v.FY)),a=u.vc.getConfig(b),c=u.vc.getConfig(y);if(null!=c&&null!=a)throw new Error(E);a=null!=c?i.concat(c):a||i,Array.isArray(a)&&a.length>0&&(r=m(r,a)),r=O(r);var s=u.vc.getConfig("targetingControls.auctionKeyMaxChars");return s&&((0,o.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(s," characters.  Running checks on auction keys...")),r=T(r,s)),t.forEach((function(e){r[e]||(r[e]={})})),r},u.vc.getConfig("targetingControls",(function(e){null!=(0,a.Z)(e,b)&&null!=(0,a.Z)(e,y)&&(0,o.logError)(E)})),n.setTargetingForGPT=function(e,n){window.googletag.pubads().getSlots().forEach((function(t){Object.keys(e).filter(n?n(t):(0,o.isAdUnitCodeMatchingSlot)(t)).forEach((function(n){Object.keys(e[n]).forEach((function(t){var r=e[n][t];"string"==typeof r&&-1!==r.indexOf(",")&&(r=r.split(",")),e[n][t]=r})),(0,o.logMessage)("Attempting to set targeting-map for slot: ".concat(t.getSlotElementId()," with targeting-map:"),e[n]),t.updateTargetingFromMap(e[n])}))}))},n.getWinningBids=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B(),t=S(e);return n.filter((function(e){return(0,g.q9)(t,e.adUnitCode)})).filter((function(e){return!0===l.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0})).map((function(e){return e.adUnitCode})).filter(o.uniques).map((function(e){return n.filter((function(n){return n.adUnitCode===e?n:null})).reduce(p.ZH)}))},n.setTargetingForAst=function(e){var t=n.getAllTargeting(e);try{n.resetPresetTargetingAST(e)}catch(e){(0,o.logError)("unable to reset targeting for AST"+e)}Object.keys(t).forEach((function(e){return Object.keys(t[e]).forEach((function(n){if((0,o.logMessage)("Attempting to set targeting for targetId: ".concat(e," key: ").concat(n," value: ").concat(t[e][n])),(0,o.isStr)(t[e][n])||(0,o.isArray)(t[e][n])){var r={};n.search(/pt[0-9]/)<0?r[n.toUpperCase()]=t[e][n]:r[n]=t[e][n],window.apntag.setKeywords(e,r,{overrideKeyValue:!0})}}))}))},n.isApntagDefined=function(){if(window.apntag&&(0,o.isFn)(window.apntag.setKeywords))return!0},n}(s.K)},11974:function(e,n,t){t.d(n,{k_:function(){return m},oS:function(){return v}});var r=t(4942),i=t(70885),o=t(64358),a=t(3193),u=t(34614),c=t(15164),s=t(50571),d=t(74947),f=t(16310),l=t(9633),g=t(10286),v={syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:0};a.vc.setDefaults({userSync:(0,o.deepClone)(v)});var p=(0,c.eA)("usersync");var m=function(e){var n={},t={image:[],iframe:[]},c=new Set,s={},v={image:!0,iframe:!1},p=e.config;function m(){if(p.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!v.iframe)return;h(t.iframe,(function(e){var n=(0,i.Z)(e,2),r=n[0],a=n[1];(0,o.logMessage)("Invoking iframe user sync for bidder: ".concat(r)),(0,o.insertUserSyncIframe)(a),function(e,n){e.image=e.image.filter((function(e){return e[0]!==n}))}(t,r)}))}(),function(){if(!v.image)return;h(t.image,(function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];(0,o.logMessage)("Invoking image pixel user sync for bidder: ".concat(t)),(0,o.triggerPixel)(r)}))}()}catch(e){return(0,o.logError)("Error firing user syncs",e)}t={image:[],iframe:[]}}}function h(e,n){(0,o.shuffle)(e).forEach(n)}function b(e,n){var t=p.filterSettings;if(function(e,n){if(e.all&&e[n])return(0,o.logWarn)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(n,'" in userSync config.  You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var t=e.all?e.all:e[n],r=e.all?"all":n;if(!t)return!1;var i=t.filter,a=t.bidders;if(i&&"include"!==i&&"exclude"!==i)return(0,o.logWarn)('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(i,"' is not a valid option; use either 'include' or 'exclude'.")),!1;if("*"!==a&&!(Array.isArray(a)&&a.length>0&&a.every((function(e){return(0,o.isStr)(e)&&"*"!==e}))))return(0,o.logWarn)('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1;return!0}(t,e)){v[e]=!0;var r=t.all?t.all:t[e],i="*"===r.bidders?[n]:r.bidders,a={include:function(e,n){return!(0,u.q9)(e,n)},exclude:function(e,n){return(0,u.q9)(e,n)}};return a[r.filter||"include"](i,n)}return!v[e]}return a.vc.getConfig("userSync",(function(e){if(e.userSync){var n=e.userSync.filterSettings;(0,o.isPlainObject)(n)&&(n.image||n.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}p=Object.assign(p,e.userSync)})),e.regRule(d.K$,"userSync config",(function(e){if(!p.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(e[f.$k]===l.UL){var t=e[f.cx],r=e[f.bp];if(!n.canBidderRegisterSync(t,r))return{allow:!1,reason:"".concat(t," syncs are not enabled for ").concat(r)}}})),n.registerSync=function(n,i,a){var u;return c.has(i)?(0,o.logMessage)('already fired syncs for "'.concat(i,'", ignoring registerSync call')):p.syncEnabled&&(0,o.isArray)(t[n])?i?0!==p.syncsPerBidder&&Number(s[i])>=p.syncsPerBidder?(0,o.logWarn)('Number of user syncs exceeded for "'.concat(i,'"')):void(e.isAllowed(d.K$,(0,g.T)(l.UL,i,(u={},(0,r.Z)(u,f.cx,n),(0,r.Z)(u,f.IV,a),u)))&&(t[n].push([i,a]),s=function(e,n){return e[n]?e[n]+=1:e[n]=1,e}(s,i))):(0,o.logWarn)("Bidder is required for registering sync"):(0,o.logWarn)('User sync type "'.concat(n,'" not supported'))},n.bidderDone=c.add.bind(c),n.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(m,Number(e));m()},n.triggerUserSyncs=function(){p.enableOverride&&n.syncUsers()},n.canBidderRegisterSync=function(e,n){return!p.filterSettings||!b(e,n)},n}(Object.defineProperties({config:a.vc.getConfig("userSync"),isAllowed:s.xD,regRule:s.oB},{browserSupportsCookies:{get:function(){return!(0,o.isSafariBrowser)()&&p.cookiesAreEnabled()}}}))},64358:function(e,n,t){t.r(n),t.d(n,{_each:function(){return de},_map:function(){return le},_setEventEmitter:function(){return I},binarySearch:function(){return fn},buildUrl:function(){return rn},callBurl:function(){return me},canAccessWindowTop:function(){return F},checkCookieSupport:function(){return Me},cleanObj:function(){return Qe},compareCodeAndSlot:function(){return Ke},contains:function(){return fe},createIframe:function(){return X},createInvisibleIframe:function(){return Y},createTrackPixelHtml:function(){return ye},createTrackPixelIframeHtml:function(){return we},cyrb53Hash:function(){return un},debugTurnedOn:function(){return $},deepAccess:function(){return v.Z},deepClone:function(){return Re},deepEqual:function(){return on},deepSetValue:function(){return p.N},delayExecution:function(){return We},encodeMacroURI:function(){return Ee},flatten:function(){return Ie},formatQS:function(){return nn},generateUUID:function(){return D},getBidIdParameter:function(){return j},getBidRequest:function(){return Ae},getBidderCodes:function(){return Oe},getDNT:function(){return He},getDefinedParams:function(){return Le},getParameterByName:function(){return ee},getPerformanceNow:function(){return xe},getPrebidInternal:function(){return S},getUniqueIdentifierStr:function(){return R},getUserConfiguredParams:function(){return Ge},getValue:function(){return Ce},getWindowLocation:function(){return W},getWindowSelf:function(){return M},getWindowTop:function(){return Z},groupBy:function(){return Fe},hasConsoleLogger:function(){return J},hasDeviceAccess:function(){return Ze},inIframe:function(){return De},insertElement:function(){return ge},insertHtmlIntoIframe:function(){return he},insertUserSyncIframe:function(){return be},internal:function(){return C},isA:function(){return ne},isAdUnitCodeMatchingSlot:function(){return Ve},isApnGetTagDefined:function(){return Be},isArray:function(){return ie},isArrayOfNums:function(){return Ye},isBoolean:function(){return ue},isEmpty:function(){return ce},isEmptyStr:function(){return se},isFn:function(){return te},isGptPubadsDefined:function(){return Se},isInteger:function(){return $e},isNumber:function(){return oe},isPlainObject:function(){return ae},isSafariBrowser:function(){return Ue},isSafeFrameWindow:function(){return je},isStr:function(){return re},isValidMediaTypes:function(){return ze},logError:function(){return H},logInfo:function(){return z},logMessage:function(){return L},logWarn:function(){return G},memoize:function(){return sn},mergeDeep:function(){return an},parseGPTSingleSizeArray:function(){return q},parseGPTSingleSizeArrayToRtbSize:function(){return N},parseQS:function(){return en},parseQueryStringParameters:function(){return U},parseSizesInput:function(){return _},parseUrl:function(){return tn},pick:function(){return Xe},prefixLog:function(){return K},replaceAuctionPrice:function(){return _e},replaceClickThrough:function(){return qe},replaceMacros:function(){return Pe},safeJSONParse:function(){return cn},setScriptAttributes:function(){return dn},shuffle:function(){return ke},timestamp:function(){return Ne},transformAdServerTargetingObj:function(){return P},triggerPixel:function(){return pe},uniques:function(){return Te},unsupportedBidderMessage:function(){return Je},waitForElementToLoad:function(){return ve}});var r,i=t(42982),o=t(4942),a=t(70885),u=t(71002),c=t(3193),s=t(18812),d=t(34614),f=t(62200),l=t(68792),g=t(78640),v=t(20265),p=t(96475),m=Object.prototype.toString,h=Boolean(window.console),b=Boolean(h&&window.console.log),y=Boolean(h&&window.console.info),E=Boolean(h&&window.console.warn),w=Boolean(h&&window.console.error),T=(0,g.R)();function I(e){r=e}function A(){null!=r&&r.apply(void 0,arguments)}var C={checkCookieSupport:Me,createTrackPixelIframeHtml:we,getWindowSelf:M,getWindowTop:Z,canAccessWindowTop:F,getWindowLocation:W,insertUserSyncIframe:be,insertElement:ge,isFn:te,triggerPixel:pe,logError:H,logWarn:G,logMessage:L,logInfo:z,parseQS:en,formatQS:nn,deepEqual:on},O={};function S(){return O}var B,k=(B=0,function(){return++B});function R(){return k()+Math.random().toString(16).substr(2)}function D(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,D)}function j(e,n){return(null==n?void 0:n[e])||""}function U(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n=n.replace(/&$/,"")}function P(e){return e&&Object.getOwnPropertyNames(e).length>0?Object.keys(e).map((function(n){return"".concat(n,"=").concat(encodeURIComponent(e[n]))})).join("&"):""}function _(e){return"string"==typeof e?e.split(",").filter((function(e){return e.match(/^(\d)+x(\d)+$/i)})):"object"===(0,u.Z)(e)?2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]?[q(e)]:e.map(q):[]}function q(e){if(x(e))return e[0]+"x"+e[1]}function N(e){if(x(e))return{w:e[0],h:e[1]}}function x(e){return ie(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function Z(){return window.top}function M(){return window.self}function W(){return window.location}function F(){try{if(C.getWindowTop().location.href)return!0}catch(e){return!1}}function L(){$()&&b&&console.log.apply(console,V(arguments,"MESSAGE:"))}function z(){$()&&y&&console.info.apply(console,V(arguments,"INFO:"))}function G(){$()&&E&&console.warn.apply(console,V(arguments,"WARNING:")),A(f.FP.AUCTION_DEBUG,{type:"WARNING",arguments:arguments})}function H(){$()&&w&&console.error.apply(console,V(arguments,"ERROR:")),A(f.FP.AUCTION_DEBUG,{type:"ERROR",arguments:arguments})}function K(e){function n(n){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];n.apply(void 0,[e].concat(r))}}return{logError:n(H),logWarn:n(G),logMessage:n(L),logInfo:n(z)}}function V(e,n){e=[].slice.call(e);var t=c.vc.getCurrentBidder();return n&&e.unshift(n),t&&e.unshift(r("#aaa")),e.unshift(r("#3b88c3")),e.unshift("%cPrebid"+(t?"%c".concat(t):"")),e;function r(e){return"display: inline-block; color: #fff; background: ".concat(e,"; padding: 1px 4px; border-radius: 3px;")}}function J(){return b}function $(){return!!c.vc.getConfig("debug")}var Q,X=(Q={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"},function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("iframe");return Object.assign(r,Object.assign({},Q,n)),Object.assign(r.style,t),r});function Y(){return X(document,{id:R(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function ee(e){return en(W().search)[e]||""}function ne(e,n){return m.call(e)==="[object "+n+"]"}function te(e){return ne(e,"Function")}function re(e){return ne(e,"String")}var ie=Array.isArray.bind(Array);function oe(e){return ne(e,"Number")}function ae(e){return ne(e,"Object")}function ue(e){return ne(e,"Boolean")}function ce(e){return!e||(ie(e)||re(e)?!(e.length>0):Object.keys(e).length<=0)}function se(e){return re(e)&&(!e||0===e.length)}function de(e,n){var t=this;if(te(null==e?void 0:e.forEach))return e.forEach(n,this);Object.entries(e||{}).forEach((function(e){var r=(0,a.Z)(e,2),i=r[0],o=r[1];return n.call(t,o,i)}))}function fe(e,n){return te(null==e?void 0:e.includes)&&e.includes(n)}function le(e,n){return te(null==e?void 0:e.map)?e.map(n):Object.entries(e||{}).map((function(t){var r=(0,a.Z)(t,2),i=r[0],o=r[1];return n(o,i,e)}))}function ge(e,n,t,r){var i;n=n||document,i=t?n.getElementsByTagName(t):n.getElementsByTagName("head");try{if((i=i.length?i:n.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(e,o)}}catch(e){}}function ve(e,n){var t=null;return new l.Z((function(r){var i=function n(){e.removeEventListener("load",n),e.removeEventListener("error",n),null!=t&&window.clearTimeout(t),r()};e.addEventListener("load",i),e.addEventListener("error",i),null!=n&&(t=window.setTimeout(i,n))}))}function pe(e,n,t){var r=new Image;n&&C.isFn(n)&&ve(r,t).then(n),r.src=e}function me(e){var n=e.source,t=e.burl;n===f.os.SRC&&t&&C.triggerPixel(t)}function he(e){if(e){var n,t=Y();C.insertElement(t,document,"body"),(n=t.contentWindow.document).open(),n.write(e),n.close()}}function be(e,n,t){var r=C.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=r;var o=i.firstChild;n&&C.isFn(n)&&ve(o,t).then(n),C.insertElement(o,document,"html",!0)}function ye(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURI;if(!e)return"";var t=n(e),r='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return r+='<img src="'+t+'"></div>'}function Ee(e){return Array.from(e.matchAll(/\$({[^}]+})/g)).map((function(e){return e[1]})).reduce((function(e,n){return e.replace("$"+encodeURIComponent(n),"$"+n)}),encodeURI(e))}function we(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(n&&(e=encodeURI(e)),t&&(t='sandbox="'.concat(t,'"')),"<iframe ".concat(t,' id="').concat(R(),'"\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 Te(e,n,t){return t.indexOf(e)===n}function Ie(e,n){return e.concat(n)}function Ae(e,n){if(e)return n.flatMap((function(e){return e.bids})).find((function(n){return["bidId","adId","bid_id"].some((function(t){return n[t]===e}))}))}function Ce(e,n){return e[n]}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(Ie,[])})).reduce(Ie,[]).filter((function(e){return void 0!==e})).filter(Te)}function Se(){if(window.googletag&&te(window.googletag.pubads)&&te(window.googletag.pubads().getSlots))return!0}function Be(){if(window.apntag&&te(window.apntag.getTag))return!0}function ke(e){for(var n=e.length;n>0;){var t=Math.floor(Math.random()*n),r=e[--n];e[n]=e[t],e[t]=r}return e}function Re(e){return(0,s.Y)(e)||{}}function De(){try{return C.getWindowSelf()!==C.getWindowTop()}catch(e){return!0}}function je(){if(!De())return!1;var e=C.getWindowSelf();return!(!e.$sf||!e.$sf.ext)}function Ue(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function Pe(e,n){if(e)return Object.entries(n).reduce((function(e,n){var t=(0,a.Z)(n,2),r=t[0],i=t[1];return e.replace(new RegExp("\\$\\{"+r+"\\}","g"),i||"")}),e)}function _e(e,n){return Pe(e,{AUCTION_PRICE:n})}function qe(e,n){if(e&&n&&"string"==typeof n)return e.replace(/\${CLICKTHROUGH}/g,n)}function Ne(){return(new Date).getTime()}function xe(){return window.performance&&window.performance.now&&window.performance.now()||0}function Ze(){return!1!==c.vc.getConfig("deviceAccess")}function Me(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function We(e,n){if(n<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(n));var t=0;return function(){++t===n&&e.apply(this,arguments)}}function Fe(e,n){return e.reduce((function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e}),{})}function Le(e,n){return n.filter((function(n){return e[n]})).reduce((function(n,t){return Object.assign(n,(0,o.Z)({},t,e[t]))}),{})}function ze(e){var n=["banner","native","video"];return!!Object.keys(e).every((function(e){return(0,d.q9)(n,e)}))&&(!e.video||!e.video.context||(0,d.q9)(["instream","outstream","adpod"],e.video.context))}function Ge(e,n,t){return e.filter((function(e){return e.code===n})).flatMap((function(e){return e.bids})).filter((function(e){return e.bidder===t})).map((function(e){return e.params||{}}))}function He(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}var Ke=function(e,n){return e.getAdUnitPath()===n||e.getSlotElementId()===n};function Ve(e){return function(n){return Ke(e,n)}}function Je(e,n){var t=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n    ".concat(e.code," is a ").concat(t," ad unit\n    containing bidders that don't support ").concat(t,": ").concat(n,".\n    This bidder won't fetch demand.\n  ")}var $e=Number.isInteger.bind(Number);function Qe(e){return Object.fromEntries(Object.entries(e).filter((function(e){var n=(0,a.Z)(e,2);n[0];return void 0!==n[1]})))}function Xe(e,n){return"object"!==(0,u.Z)(e)?{}:n.reduce((function(t,r,i){if("function"==typeof r)return t;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var u=e[r];return"function"==typeof n[i+1]&&(u=n[i+1](u,t)),void 0!==u&&(t[o]=u),t}),{})}function Ye(e,n){return ie(e)&&(!n||e.length===n)&&e.every((function(e){return $e(e)}))}function en(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,n){var t=n.split("="),r=(0,a.Z)(t,2),i=r[0],o=r[1];return/\[\]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(o)):e[i]=o||"",e}),{}):{}}function nn(e){return Object.keys(e).map((function(n){return Array.isArray(e[n])?e[n].map((function(e){return"".concat(n,"[]=").concat(e)})).join("&"):"".concat(n,"=").concat(e[n])})).join("&")}function tn(e,n){var t=document.createElement("a");n&&"noDecodeWholeURL"in n&&n.noDecodeWholeURL?t.href=e:t.href=decodeURIComponent(e);var r=n&&"decodeSearchAsString"in n&&n.decodeSearchAsString;return{href:t.href,protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r?t.search:C.parseQS(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host||window.location.host}}function rn(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(C.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}function on(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.checkTypes,i=void 0!==r&&r;if(e===n)return!0;if("object"!==(0,u.Z)(e)||null===e||"object"!==(0,u.Z)(n)||null===n||i&&e.constructor!==n.constructor)return!1;var o=Object.keys(e);if(o.length!==Object.keys(n).length)return!1;for(var a=0,c=o;a<c.length;a++){var s=c[a];if(!n.hasOwnProperty(s))return!1;if(!on(e[s],n[s],{checkTypes:i}))return!1}return!0}function an(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if(!t.length)return e;var a=t.shift();if(ae(e)&&ae(a)){var u=function(n){ae(a[n])?(e[n]||Object.assign(e,(0,o.Z)({},n,{})),an(e[n],a[n])):ie(a[n])?e[n]?ie(e[n])&&a[n].forEach((function(t){for(var r=1,i=0;i<e[n].length;i++)if(on(e[n][i],t)){r=0;break}r&&e[n].push(t)})):Object.assign(e,(0,o.Z)({},n,(0,i.Z)(a[n]))):Object.assign(e,(0,o.Z)({},n,a[n]))};for(var c in a)u(c)}return an.apply(void 0,[e].concat(t))}function un(e){for(var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=function(e,n){if(te(Math.imul))return Math.imul(e,n);var t=(4194303&e)*(n|=0);return 4290772992&e&&(t+=(4290772992&e)*n|0),0|t},i=3735928559^t,o=1103547991^t,a=0;a<e.length;a++)i=r(i^(n=e.charCodeAt(a)),2654435761),o=r(o^n,1597334677);return i=r(i^i>>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()}function cn(e){try{return JSON.parse(e)}catch(e){}}function sn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},t=new Map,r=function(){var r=n.apply(this,arguments);return t.has(r)||t.set(r,e.apply(this,arguments)),t.get(r)};return r.clear=t.clear.bind(t),r}function dn(e,n){Object.entries(n).forEach((function(n){var t=(0,a.Z)(n,2),r=t[0],i=t[1];return e.setAttribute(r,i)}))}function fn(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=0,i=e.length&&e.length-1,o=t(n);i-r>1;){var a=r+Math.round((i-r)/2);o>t(e[a])?r=a:i=a}for(;e.length>r&&o>t(e[r]);)r++;return r}},36066:function(e,n,t){t.d(n,{O:function(){return a}});var r=t(78653),i=t(55975),o=t(64358);function a(e,n,t){var a,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=u.index,s=void 0===c?r.K.index:c,d=u.bs,f=void 0===d?i.S:d;t=t||s.getBidRequest(n);var l=null==n?void 0:n.adapterCode,g=(null==n?void 0:n.bidderCode)||(null===(a=t)||void 0===a?void 0:a.bidder),v=f.get(null==n?void 0:n.adapterCode,"adjustAlternateBids"),p=f.getOwn(g,"bidCpmAdjustment")||f.get(v?l:g,"bidCpmAdjustment");if(p&&"function"==typeof p)try{return p(e,Object.assign({},n),t)}catch(e){(0,o.logError)("Error during bid adjustment",e)}return e}},17673:function(e,n,t){t.d(n,{h:function(){return i}});var r=t(20265);function i(e){return null==e||!e.gdprApplies||!0===(0,r.Z)(e,"vendorData.purpose.consents.1")}},99128:function(e,n,t){t.d(n,{A:function(){return w},Bf:function(){return m},V6:function(){return b},g3:function(){return E}});var r=t(70885),i=t(3193);function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);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 a(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,u=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==t.return||t.return()}finally{if(c)throw o}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var u="performanceMetrics",c=window.performance&&window.performance.now?function(){return window.performance.now()}:function(){return Date.now()},s=new WeakMap;function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.now,t=void 0===n?c:n,r=e.mkNode,i=void 0===r?g:r,o=e.mkTimer,a=void 0===o?l:o,u=e.mkRenamer,d=void 0===u?function(e){return e}:u,f=e.nodes,v=void 0===f?s:f;return function(){return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return{forEach:function(n){n(e)}}};function o(e){return function(t){return n.dfWalk({visit:function(n,r){var i=r[e];if(i.hasOwnProperty(t))return i[t]}})}}r=d(r);var u=o("timestamps");function c(e,t){var i=r(e);n.dfWalk({follow:function(e,n){return n.propagate&&(!e||!e.stopPropagation)},visit:function(e,n){i.forEach((function(r){null==e?n.metrics[r]=t:(n.groups.hasOwnProperty(r)||(n.groups[r]=[]),n.groups[r].push(t))}))}})}function s(e){n.timestamps[e]=t()}function f(e,n){var r=u(e),i=null!=r?t()-r:null;return null!=n&&c(n,i),i}function l(e,n,t){var r=u(e),i=u(n),o=null!=r&&null!=i?i-r:null;return null!=t&&c(t,o),o}function g(e){return a(t,(function(n){return c(e,n)}))}function p(e,n){return g(e).stopAfter(n)()}function m(e,n,t){var r=g(e);return t(function(e){var n=r.stopBefore(e);return n.bail=e.bail&&r.stopBefore(e.bail),n.stopTiming=r,n.untimed=e,n}(n))}function h(){var e={};return n.dfWalk({visit:function(n,t){e=Object.assign({},!n||n.includeGroups?t.groups:null,t.metrics,e)}}),e}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.propagate,a=void 0===o||o,u=t.stopPropagation,c=void 0!==u&&u,s=t.includeGroups,d=void 0!==s&&s;return e(i([[n,{propagate:a,stopPropagation:c,includeGroups:d}]]),r)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.propagate,i=void 0===r||r,o=t.stopPropagation,a=void 0!==o&&o,u=t.includeGroups,c=void 0!==u&&u,s=v.get(e);null!=s&&s.addParent(n,{propagate:i,stopPropagation:a,includeGroups:c})}function E(t){return e(n,t)}function w(){return e(n.newSibling(),r)}var T={startTiming:g,measureTime:p,measureHookTime:m,checkpoint:s,timeSince:f,timeBetween:l,setMetric:c,getMetrics:h,fork:b,join:y,newMetrics:w,renameWith:E,toJSON:function(){return h()}};return v.set(T,n),T}(i([]))}}function f(e,n,t){return function(){n&&n();try{return e.apply(this,arguments)}finally{t&&t()}}}function l(e,n){var t=e(),r=!1;function i(){r||(n(e()-t),r=!0)}return i.stopBefore=function(e){return f(e,i)},i.stopAfter=function(e){return f(e,null,i)},i}function g(e){return{metrics:{},timestamps:{},groups:{},addParent:function(n,t){e.push([n,t])},newSibling:function(){return g(e.slice())},dfWalk:function(){var n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.visit,a=t.follow,u=void 0===a?function(){return!0}:a,c=t.visited,s=void 0===c?new Set:c,d=t.inEdge;if(!s.has(this)){if(s.add(this),null!=(n=i(d,this)))return n;var f,l=o(e);try{for(l.s();!(f=l.n()).done;){var g=(0,r.Z)(f.value,2),v=g[0],p=g[1];if(u(d,p)&&null!=(n=v.dfWalk({visit:i,follow:u,visited:s,inEdge:p})))return n}}catch(e){l.e(e)}finally{l.f()}}}}}var v=function(){var e=function(){},n=function(){return{}},t={forEach:e},r=function(){return null};r.stopBefore=function(e){return e},r.stopAfter=function(e){return e};var i=Object.defineProperties({dfWalk:e,newSibling:function(){return i},addParent:e},Object.fromEntries(["metrics","timestamps","groups"].map((function(e){return[e,{get:n}]}))));return d({now:function(){return 0},mkNode:function(){return i},mkRenamer:function(){return function(){return t}},mkTimer:function(){return r},nodes:{get:e,set:e}})()}(),p=!0;function m(e){return p&&e||v}i.vc.getConfig(u,(function(e){p=!!e[u]}));var h,b=(h=d(),function(){return p?h():v});function y(e,n){return function(t,r){return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];var c=this;return m(n.apply(c,a)).measureHookTime(e+t,i,(function(e){return r.call.apply(r,[c,e].concat(a))}))}}}var E=y("requestBids.",(function(e){return e.metrics})),w=y("addBidResponse.",(function(e,n){return n.metrics}))},68792:function(e,n,t){t.d(n,{P:function(){return m},Z:function(){return v}});var r=t(70885),i=t(15671),o=t(43144),a=t(86033),u=t(13092);function c(e,n,t){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.set(e,t)}function s(e,n,t){return function(e,n){if(e!==n)throw new TypeError("Private static access of wrong provenance")}(e,n),t}var d=0,f=1,l=new WeakMap,g=new WeakMap,v=function(){function e(n){if((0,i.Z)(this,e),c(this,l,{writable:!0,value:void 0}),c(this,g,{writable:!0,value:void 0}),"function"!=typeof n)throw new Error("resolver not a function");var t=[],o=[],a=[d,f].map((function(e){return function(n){if(e===d&&"function"==typeof(null==n?void 0:n.then))n.then(v,p);else if(!t.length)for(t.push(e,n);o.length;)o.shift()()}})),s=(0,r.Z)(a,2),v=s[0],p=s[1];try{n(v,p)}catch(e){p(e)}(0,u.Z)(this,l,t),(0,u.Z)(this,g,o)}return(0,o.Z)(e,[{key:"then",value:function(e,n){var t=this,i=(0,a.Z)(this,l);return new this.constructor((function(o,u){var c=function(){var t=i[1],a=i[0]===d?[e,o]:[n,u],c=(0,r.Z)(a,2),s=c[0],f=c[1];if("function"==typeof s){try{t=s(t)}catch(e){return void u(e)}f=o}f(t)};i.length?c():(0,a.Z)(t,g).push(c)}))}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"finally",value:function(e){var n,t=this;return this.then((function(t){return n=t,e()}),(function(r){return n=t.constructor.reject(r),e()})).then((function(){return n}))}}],[{key:"timeout",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new e((function(e){0===n?e():setTimeout(e,n)}))}},{key:"race",value:function(n){var t=this;return new this((function(r,i){s(t,e,p).call(t,n,(function(e,n){return e?r(n):i(n)}))}))}},{key:"all",value:function(n){var t=this;return new this((function(r,i){var o=[];s(t,e,p).call(t,n,(function(e,n,t){return e?o[t]=n:i(n)}),(function(){return r(o)}))}))}},{key:"allSettled",value:function(n){var t=this;return new this((function(r){var i=[];s(t,e,p).call(t,n,(function(e,n,t){return i[t]=e?{status:"fulfilled",value:n}:{status:"rejected",reason:n}}),(function(){return r(i)}))}))}},{key:"resolve",value:function(e){return new this((function(n){return n(e)}))}},{key:"reject",value:function(e){return new this((function(n,t){return t(e)}))}}]),e}();function p(e,n,t){var r=this,i=e.length;function o(){n.apply(this,arguments),--i<=0&&t&&t()}0===e.length&&t?t():e.forEach((function(e,n){return r.resolve(e).then((function(e){return o(!0,e,n)}),(function(e){return o(!1,e,n)}))}))}function m(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.promiseFactory,i=void 0===r?function(e){return new v(e)}:r;function o(e){return function(n){return e(n)}}return{promise:i((function(t,r){e=t,n=r})),resolve:o(e),reject:o(n)}}},31136:function(e,n,t){function r(e,n){return e===n?0:e<n?-1:1}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return function(n,t){return r(e(n),e(t))}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return function(n,t){return-e(n,t)||0}}function a(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(e,t){for(var r=0,i=n;r<i.length;r++){var o=(0,i[r])(e,t);if(0!==o)return o}return 0}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return function(n,t){return e(t,n)<0?t:n}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return u(o(e))}t.d(n,{K$:function(){return l},LT:function(){return u},ZH:function(){return f},gW:function(){return c},xI:function(){return i}});var s=i((function(e){return e.cpm})),d=i((function(e){return e.responseTimestamp})),f=c(a(s,o(i((function(e){return e.timeToRespond}))))),l=c(a(s,o(d)));c(a(s,d))},10613:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(4942),i=t(70885),o=t(68792),a=t(64358);function u(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return c(e,n);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 c(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function s(){var e,n,t,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=c.startTime,d=void 0===s?a.timestamp:s,f=c.ttl,l=void 0===f?function(){return null}:f,g=c.monotonic,v=void 0!==g&&g,p=c.slack,m=void 0===p?5e3:p,h=new Map,b=[],y=[],E=v?function(e){return y.push(e)}:function(e){return y.splice((0,a.binarySearch)(y,e,(function(e){return e.expiry})),0,e)};function w(){if(t&&clearTimeout(t),y.length>0){var e=(0,a.timestamp)();n=Math.max(e,y[0].expiry+m),t=setTimeout((function(){for(var e=(0,a.timestamp)(),n=0,r=function(){var t=o[i];if(t.expiry>e)return"break";b.forEach((function(e){try{e(t.item)}catch(e){(0,a.logError)(e)}})),h.delete(t.item),n++},i=0,o=y;i<o.length;i++){if("break"===r())break}y.splice(0,n),t=null,w()}),n-e)}else t=null}function T(e){var r,a={},u=I;var c=Object.entries({start:d,delta:l}).map((function(c){var s,d=(0,i.Z)(c,2),f=d[0],l=d[1];return function(){var i=s={};o.Z.resolve(l(e)).then((function(e){i===s&&(a[f]=e,u===I&&null!=a.start&&null!=a.delta&&(r=a.start+a.delta,E(v),(null==t||n>r+m)&&w()))}))}})),s=(0,i.Z)(c,2),f=s[0],g=s[1],v={item:e,refresh:g,get expiry(){return r}};return f(),g(),v}var I={};return e={},(0,r.Z)(e,Symbol.iterator,(function(){return h.keys()})),(0,r.Z)(e,"add",(function(e){!h.has(e)&&h.set(e,T(e))})),(0,r.Z)(e,"clear",(function(){y.length=0,w(),h.clear(),I={}})),(0,r.Z)(e,"toArray",(function(){return Array.from(h.keys())})),(0,r.Z)(e,"refresh",(function(){y.length=0,w();var e,n=u(h.values());try{for(n.s();!(e=n.n()).done;){e.value.refresh()}}catch(e){n.e(e)}finally{n.f()}})),(0,r.Z)(e,"onExpiry",(function(e){return b.push(e),function(){var n=b.indexOf(e);n>=0&&b.splice(n,1)}})),e}},90154:function(e,n,t){t.d(n,{Dn:function(){return f},LD:function(){return s},cx:function(){return d},gZ:function(){return c},hD:function(){return l}});var r=t(20265),i=t(64358),o=t(3193),a=t(92797),u=t(78653),c="outstream",s="instream";function d(e){var n,t=null==e||null===(n=e.mediaTypes)||void 0===n?void 0:n.video;null!=t&&null==t.plcmt&&(t.context===c||[2,3,4].includes(t.placement)?t.plcmt=4:t.context!==c&&[2,6].includes(t.playbackmethod)&&(t.plcmt=2))}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?u.K.index:t,o=(0,r.Z)(i.getMediaTypes(e),"video"),a=o&&(0,r.Z)(o,"context"),c=o&&(0,r.Z)(o,"useCacheKey"),s=i.getAdUnit(e);return l(e,s,o,a,c)}var l=(0,a.z3)("sync",(function(e,n,t,r,a){return t&&(a||r!==c)?o.vc.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)('\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling prebid cache with pbjs.setConfig({ cache: {url: "..."} });\n      '),!1):!(r===c&&!a)||!!(e.renderer||n&&n.renderer||t.renderer)}),"checkVideoBidSetup")},79885:function(e,n,t){t.d(n,{h:function(){return s},z:function(){return d}});var r=t(48928),i=t(3193),o=t(78653);function a(e,n){var t=(n=n&&(Array.isArray(n)?n:[n]))?n.map((function(e){return"<Impression><![CDATA[".concat(e,"]]></Impression>")})).join(""):"";return'<VAST version="3.0">\n    <Ad>\n      <Wrapper>\n        <AdSystem>prebid.org wrapper</AdSystem>\n        <VASTAdTagURI><![CDATA['.concat(e,"]]></VASTAdTagURI>\n        ").concat(t,"\n        <Creatives></Creatives>\n      </Wrapper>\n    </Ad>\n  </VAST>")}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?o.K.index:t,u=e.vastXml?e.vastXml:a(e.vastUrl,e.vastImpUrl),c=r.getAuction(e),s=Number(e.ttl)+15,d={type:"xml",value:u,ttlseconds:s};return i.vc.getConfig("cache.vasttrack")&&(d.bidder=e.bidder,d.bidid=e.requestId,d.aid=e.auctionId),null!=c&&(d.timestamp=c.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(d.key=e.customCacheKey),d}function c(e){return{success:function(n){var t;try{t=JSON.parse(n).responses}catch(n){return void e(n,[])}t?e(null,t):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(n,t){e(new Error("Error storing video ad in the cache: ".concat(n,": ").concat(JSON.stringify(t))),[])}}}function s(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.OI,o={puts:e.map(u)},a=t(i.vc.getConfig("cache.timeout"));a(i.vc.getConfig("cache.url"),c(n),JSON.stringify(o),{contentType:"text/plain",withCredentials:!0})}function d(e){return"".concat(i.vc.getConfig("cache.url"),"?uuid=").concat(e)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[83864],{46319:function(e,r,a){a.d(r,{p:function(){return Z}});var t=a(71002),n=a(42982),i=a(78640),s=a(64358),o=a(20265),d=a(35706),p=a(3193),c=a(14699),u=a(24679),l=a(34614),m=a(90154),f=a(15164),v=a(55975),g=a(17673),_=a(70059),b=a(34292),y=a(19050),h=a(27374),k=a(85370),x=a(26296),w="appnexus",C="https://ib.adnxs.com/ut/v3/prebid",I="https://ib.adnxs-simple.com/ut/v3/prebid",E=["id","minduration","maxduration","skippable","playback_method","frameworks","context","skipoffset"],O=["minduration","maxduration","skip","skipafter","playbackmethod","api","startdelay","placement","plcmt"],A=["age","externalUid","external_uid","segments","gender","dnt","language"],j=["geo","device_id"],S=["enabled","dongle","member_id","debug_timeout"],q={apn_debug_dongle:"dongle",apn_debug_member_id:"member_id",apn_debug_timeout:"debug_timeout"},T={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,"in-feed":6,interstitial:7,accompanying_content_pre_roll:8,accompanying_content_mid_roll:9,accompanying_content_post_roll:10}},N={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"},U="<script",R=/\/\/cdn\.adnxs\.com\/v|\/\/cdn\.adnxs\-simple\.com\/v/,P="trk.js",B=(0,f.df)({bidderCode:w}),Z={code:w,gvlid:32,aliases:[{code:"appnexusAst",gvlid:32},{code:"emxdigital",gvlid:183},{code:"emetriq",gvlid:213},{code:"pagescience",gvlid:32},{code:"gourmetads",gvlid:32},{code:"matomy",gvlid:32},{code:"featureforward",gvlid:32},{code:"oftmedia",gvlid:32},{code:"adasta",gvlid:32},{code:"beintoo",gvlid:618},{code:"projectagora",gvlid:1032},{code:"uol",gvlid:32},{code:"adzymic",gvlid:723}],supportedMediaTypes:[u.Mk,u.pX,u.B5],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.placement_id||e.params.member&&(e.params.invCode||e.params.inv_code))},buildRequests:function(e,r){var a,t,i,o,d,c=(e=(0,_.lY)(e)).map(M),u=(0,l.sE)(e,D),m={};!0===p.vc.getConfig("coppa")&&(m={coppa:!0}),u&&Object.keys(u.params.user).filter((function(e){return(0,l.q9)(A,e)})).forEach((function(e){var r=(0,h.G)(e);if("segments"===e&&(0,s.isArray)(u.params.user[e])){var a=[];u.params.user[e].forEach((function(e){(0,s.isNumber)(e)?a.push({id:e}):(0,s.isPlainObject)(e)&&a.push(e)})),m[r]=a}else"segments"!==e&&(m[r]=u.params.user[e])}));var f,v=(0,l.sE)(e,L);v&&v.params&&v.params.app&&(f={},Object.keys(v.params.app).filter((function(e){return(0,l.q9)(j,e)})).forEach((function(e){return f[e]=v.params.app[e]})));var b,w=(0,l.sE)(e,J);w&&w.params&&v.params.app&&v.params.app.id&&(b={appid:w.params.app.id});var E={},O={},T=B.getCookie("apn_prebid_debug")||null;if(T)try{E=JSON.parse(T)}catch(e){(0,s.logError)("AppNexus Debug Auction Cookie Error:\n\n"+e)}else{Object.keys(q).forEach((function(e){var r=(0,s.getParameterByName)(e);(0,s.isStr)(r)&&""!==r&&(E[q[e]]=r,E.enabled=!0)})),E=(0,k.u)({member_id:"number",debug_timeout:"number"},E);var N=(0,l.sE)(e,V);N&&N.debug&&(E=N.debug)}E&&E.enabled&&Object.keys(E).filter((function(e){return(0,l.q9)(S,e)})).forEach((function(e){O[e]=E[e]}));var U=(0,l.sE)(e,X),R=U?parseInt(U.params.member,10):0,P=e[0].schain,Z=(0,l.sE)(e,G),z={tags:(0,n.Z)(c),user:m,sdk:{source:"pbjs",version:"8.51.0"},schain:P};Z&&(z.iab_support={omidpn:"Appnexus",omidpv:"8.51.0"}),R>0&&(z.member_id=R),v&&(z.device=f),w&&(z.app=b);var W=(0,s.deepClone)(r&&r.ortb2),$=(0,s.deepClone)(p.vc.getConfig("appnexusAuctionKeywords"))||{},K=(0,y.bn)(W,$);if(K.length>0&&(z.keywords=K),p.vc.getConfig("adpod.brandCategoryExclusion")&&(z.brand_category_uniqueness=!0),O.enabled&&(z.debug=O,(0,s.logInfo)("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(O,null,4))),r&&r.gdprConsent&&(z.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies},r.gdprConsent.addtlConsent&&-1!==r.gdprConsent.addtlConsent.indexOf("~"))){var Y=r.gdprConsent.addtlConsent,Q=Y.substring(Y.indexOf("~")+1);z.gdpr_consent.addtl_consent=Q.split(".").map((function(e){return parseInt(e,10)}))}if(r&&r.uspConsent&&(z.us_privacy=r.uspConsent),null!=r&&r.gppConsent?z.privacy={gpp:r.gppConsent.gppString,gpp_sid:r.gppConsent.applicableSections}:null!=r&&null!==(a=r.ortb2)&&void 0!==a&&null!==(t=a.regs)&&void 0!==t&&t.gpp&&(z.privacy={gpp:r.ortb2.regs.gpp,gpp_sid:r.ortb2.regs.gpp_sid}),r&&r.refererInfo){var ee={rd_ref:encodeURIComponent(r.refererInfo.topmostLocation),rd_top:r.refererInfo.reachedTop,rd_ifs:r.refererInfo.numIframes,rd_stk:r.refererInfo.stack.map((function(e){return encodeURIComponent(e)})).join(",")},re=r.refererInfo.canonicalUrl;(0,s.isStr)(re)&&""!==re&&(ee.rd_can=re),z.referrer_detection=ee}if((0,l.sE)(e,F)&&e.filter(F).forEach((function(e){var r=function(e,r){var a=r.mediaTypes.video,t=a.durationRangeSec,i=a.requireExactDuration,s=function(e){var r=e.adPodDurationSec,a=e.durationRangeSec,t=e.requireExactDuration,i=Math.min.apply(Math,(0,n.Z)(a)),s=Math.floor(r/i);return t?Math.max(s,a.length):s}(r.mediaTypes.video),o=Math.max.apply(Math,(0,n.Z)(t)),d=e.filter((function(e){return e.uuid===r.bidId})),p=h.h.apply(void 0,(0,n.Z)(d).concat([s]));if(i){var c=Math.ceil(s/t.length),u=(0,x.y)(p,c);t.forEach((function(e,r){u[r].map((function(r){H(r,"minduration",e),H(r,"maxduration",e)}))}))}else p.map((function(e){return H(e,"maxduration",o)}));return p}(c,e),a=z.tags.filter((function(r){return r.uuid!==e.bidId}));z.tags=[].concat((0,n.Z)(a),(0,n.Z)(r))})),e[0].userId){var ae=[];e[0].userIdAsEids.forEach((function(e){!e||!e.uids||e.uids.length<1||e.uids.forEach((function(r){var a={source:e.source,id:r.id};"adserver.org"==e.source?a.rti_partner="TDID":"uidapi.com"==e.source&&(a.rti_partner="UID2"),ae.push(a)}))})),ae.length&&(z.eids=ae)}if(null!=r&&null!==(i=r.ortb2)&&void 0!==i&&null!==(o=i.regs)&&void 0!==o&&null!==(d=o.ext)&&void 0!==d&&d.dsa){var te=r.ortb2.regs.ext.dsa,ne={};if(["dsarequired","pubrender","datatopub"].forEach((function(e){(0,s.isNumber)(te[e])&&(ne[e]=te[e])})),(0,s.isArray)(te.transparency)&&te.transparency.every((function(e){return(0,s.isPlainObject)(e)}))){var ie=[];te.transparency.forEach((function(e){(0,s.isStr)(e.domain)&&""!=e.domain&&(0,s.isArray)(e.dsaparams)&&e.dsaparams.every((function(e){return(0,s.isNumber)(e)}))&&ie.push(e)})),ie.length>0&&(ne.transparency=ie)}(0,s.isEmpty)(ne)||(z.dsa=ne)}c[0].publisher_id&&(z.publisher_id=c[0].publisher_id);var se=function(e,r){var a=[],t={withCredentials:!0},n=C;(0,g.h)(null==r?void 0:r.gdprConsent)||(n=I);"TRUE"!==(0,s.getParameterByName)("apn_test").toUpperCase()&&!0!==p.vc.getConfig("apn_test")||(t.customHeaders={"X-Is-Test":1});if(e.tags.length>15){var i=(0,s.deepClone)(e);(0,x.y)(e.tags,15).forEach((function(e){i.tags=e;var s=JSON.stringify(i);a.push({method:"POST",url:n,data:s,bidderRequest:r,options:t})}))}else{var o=JSON.stringify(e);a={method:"POST",url:n,data:o,bidderRequest:r,options:t}}return a}(z,r);return se},interpretResponse:function(e,r){var a=this,t=r.bidderRequest;e=e.body;var n=[];if(!e||e.error){var i="in response for ".concat(t.bidderCode," adapter");return e&&e.error&&(i+=": ".concat(e.error)),(0,s.logError)(i),n}if(e.tags&&e.tags.forEach((function(e){var r,i=(r=e)&&r.ads&&r.ads.length&&(0,l.sE)(r.ads,(function(e){return e.rtb}));if(i&&((!0===v.S.get(t.bidderCode,"allowZeroCpmBids")?i.cpm>=0:i.cpm>0)&&(0,l.q9)(a.supportedMediaTypes,i.ad_type))){var p=function(e,r,a){var t=(0,s.getBidRequest)(e.uuid,[a]),n=(0,s.getUniqueIdentifierStr)(),i={adId:n,requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:r.publisher_currency_codename||"USD",netRevenue:!0,ttl:300,adUnitCode:t.adUnitCode,appnexus:{buyerMemberId:r.buyer_member_id,dealPriority:r.deal_priority,dealCode:r.deal_code}};r.adomain&&(i.meta=Object.assign({},i.meta,{advertiserDomains:[r.adomain]}));r.advertiser_id&&(i.meta=Object.assign({},i.meta,{advertiserId:r.advertiser_id}));r.dsa&&(i.meta=Object.assign({},i.meta,{dsa:r.dsa}));function p(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}r.buyer_member_id&&(i.meta=Object.assign({},i.meta,{dchain:p(r)}));r.brand_id&&(i.meta=Object.assign({},i.meta,{brandId:r.brand_id}));if(r.rtb.video){switch(Object.assign(i,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastImpUrl:r.notify_url,ttl:3600}),(0,o.Z)(t,"mediaTypes.video.context")){case u.Oh:var c=b.m[r.brand_category_id]?b.m[r.brand_category_id]:null;i.meta=Object.assign({},i.meta,{primaryCatId:c});var f=r.deal_priority;i.video={context:u.Oh,durationSeconds:Math.floor(r.rtb.video.duration_ms/1e3),dealTier:f},i.vastUrl=r.rtb.video.asset_url;break;case m.gZ:if(i.adResponse=e,i.adResponse.ad=i.adResponse.ads[0],i.adResponse.ad.video=i.adResponse.ad.rtb.video,i.vastXml=r.rtb.video.content,r.renderer_url){var v=(0,l.sE)(a.bids,(function(r){return r.bidId===e.uuid})),g=(0,o.Z)(v,"mediaTypes.video.renderer.options");g||(g=(0,o.Z)(v,"renderer.options")),i.renderer=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=d.Th.install({id:r.renderer_id,url:r.renderer_url,config:a,loaded:!1,adUnitCode:e});try{t.setRender(W)}catch(e){(0,s.logWarn)("Prebid Error calling setRender on renderer",e)}return t.setEventHandlers({impression:function(){return(0,s.logMessage)("AppNexus outstream video impression event")},loaded:function(){return(0,s.logMessage)("AppNexus outstream video loaded event")},ended:function(){(0,s.logMessage)("AppNexus outstream renderer video event"),document.querySelector("#".concat(e)).style.display="none"}}),t}(i.adUnitCode,r,g)}break;case m.LD:i.vastUrl=r.notify_url+"&redir="+encodeURIComponent(r.rtb.video.asset_url)}}else if(r.rtb[u.B5]){var _,y=r.rtb[u.B5];if(function(e){if(!e||""===e)return!1;var r=e.match(R),a=null!=r&&r.length>=1,t=e.match(P),n=null!=t&&t.length>=1;return e.startsWith(U)&&n&&a}(r.viewability.config)){var h="pbjs_adid="+n+";pbjs_auc="+t.adUnitCode;_=r.viewability.config.replace("dom_id=%native_dom_id%",h)}var k=y.javascript_trackers;null==k?k=_:(0,s.isStr)(k)?k=[k,_]:k.push(_),i[u.B5]={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,video:y.video,javascriptTrackers:k},y.main_img&&(i.native.image={url:y.main_img.url,height:y.main_img.height,width:y.main_img.width}),y.icon&&(i.native.icon={url:y.icon.url,height:y.icon.height,width:y.icon.width})}else{Object.assign(i,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{if(r.rtb.trackers)for(var x=0;x<r.rtb.trackers[0].impression_urls.length;x++){var w=r.rtb.trackers[0].impression_urls[x],C=(0,s.createTrackPixelHtml)(w);i.ad+=C}}catch(e){(0,s.logError)("Error appending tracking pixel",e)}}return i}(e,i,t);p.mediaType=function(e){var r=e.ad_type;return r===u.pX?u.pX:r===u.B5?u.B5:u.Mk}(i),n.push(p)}})),e.debug&&e.debug.debug_info){var p="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;p=p.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,""),(0,s.logMessage)("https://console.appnexus.com/docs/understanding-the-debug-auction"),(0,s.logMessage)(p)}return n},getUserSyncs:function(e,r,a,t,n){if(e.iframeEnabled&&(0,g.h)(a))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}]},transformBidParams:function(e,r,a,t){var n=y.Bq;if(!0===r){var i=null,d=p.vc.getConfig("s2sConfig");(0,s.isPlainObject)(d)?i=(0,o.Z)(d,"endpoint.p1Consent"):(0,s.isArray)(d)&&d.forEach((function(e){(0,l.q9)(e.bidders,a.bids[0].bidder)&&(i=(0,o.Z)(e,"endpoint.p1Consent"))})),i&&i.match("/openrtb2/prebid")&&(n=K)}return e=(0,k.u)({member:"string",invCode:"string",placementId:"number",keywords:n,publisherId:"number"},e),r&&(Object.keys(e).forEach((function(r){var a=(0,h.G)(r);a!==r&&(e[a]=e[r],delete e[r])})),e.use_pmt_rule="boolean"==typeof e.use_payment_rule&&e.use_payment_rule,e.use_payment_rule&&delete e.use_payment_rule),e}};function M(e){var r,a={};Object.keys(e.params).forEach((function(r){var a=(0,h.G)(r);a!==r&&(e.params[a]=e.params[r],delete e.params[r])})),a.sizes=z(e.sizes),a.primary_size=a.sizes[0],a.ad_types=[],a.uuid=e.bidId,e.params.placement_id?a.id=parseInt(e.params.placement_id,10):a.code=e.params.inv_code;var t=(0,s.getParameterByName)("ast_override_div");if((0,s.isStr)(t)&&""!==t){var n=t.split(",").find((function(r){return r.startsWith("".concat(e.adUnitCode,":"))}));if(n){var i=n.split(":")[1];i&&(a.force_creative_id=parseInt(i,10))}}a.allow_smaller_sizes=e.params.allow_smaller_sizes||!1,a.use_pmt_rule="boolean"==typeof e.params.use_payment_rule?e.params.use_payment_rule:"boolean"==typeof e.params.use_pmt_rule&&e.params.use_pmt_rule,a.prebid=!0,a.disable_psa=!0;var d=function(e){if(!(0,s.isFn)(e.getFloor))return e.params.reserve?e.params.reserve:null;var r=e.getFloor({currency:"USD",mediaType:"*",size:"*"});if((0,s.isPlainObject)(r)&&!isNaN(r.floor)&&"USD"===r.currency)return r.floor;return null}(e);if(d&&(a.reserve=d),e.params.position)a.position={above:1,below:2}[e.params.position]||0;else{var p=(0,o.Z)(e,"mediaTypes.banner.pos")||(0,o.Z)(e,"mediaTypes.video.pos");0!==p&&1!==p&&3!==p||(a.position=3===p?2:p)}e.params.traffic_source_code&&(a.traffic_source_code=e.params.traffic_source_code),e.params.private_sizes&&(a.private_sizes=z(e.params.private_sizes)),e.params.supply_type&&(a.supply_type=e.params.supply_type),e.params.pub_click&&(a.pubclick=e.params.pub_click),e.params.ext_inv_code&&(a.ext_inv_code=e.params.ext_inv_code),e.params.publisher_id&&(a.publisher_id=parseInt(e.params.publisher_id,10)),e.params.external_imp_id&&(a.external_imp_id=e.params.external_imp_id);var c=(0,y.gw)((0,y.cM)((0,o.Z)(e,"ortb2Imp.ext.data.keywords")),null===(r=e.params)||void 0===r?void 0:r.keywords);c.length>0&&(a.keywords=c);var m,f,v=(0,o.Z)(e,"ortb2Imp.ext.gpid")||(0,o.Z)(e,"ortb2Imp.ext.data.pbadslot");if(v&&(a.gpid=v),(e.mediaType===u.B5||(0,o.Z)(e,"mediaTypes.".concat(u.B5)))&&(a.ad_types.push(u.B5),0===a.sizes.length&&(a.sizes=z([1,1])),e.nativeParams)){var g=(m=e.nativeParams,f={},Object.keys(m).forEach((function(e){var r=N[e]&&N[e].serverName||N[e]||e,a=N[e]&&N[e].requiredParams;if(f[r]=Object.assign({},a,m[e]),(r===N.image.serverName||r===N.icon.serverName)&&f[r].sizes){var t=f[r].sizes;((0,s.isArrayOfNums)(t)||(0,s.isArray)(t)&&t.length>0&&t.every((function(e){return(0,s.isArrayOfNums)(e)})))&&(f[r].sizes=z(f[r].sizes))}r===N.privacyLink&&(f.privacy_supported=!0)})),f);a[u.B5]={layouts:[g]}}var _=(0,o.Z)(e,"mediaTypes.".concat(u.pX)),b=(0,o.Z)(e,"mediaTypes.video.context");return a.hb_source=_&&"adpod"===b?7:1,(e.mediaType===u.pX||_)&&a.ad_types.push(u.pX),(e.mediaType===u.pX||_&&"outstream"!==b)&&(a.require_asset_url=!0),e.params.video&&(a.video={},Object.keys(e.params.video).filter((function(e){return(0,l.q9)(E,e)})).forEach((function(r){switch(r){case"context":case"playback_method":var t=e.params.video[r];t=(0,s.isArray)(t)?t[0]:t,a.video[r]=T[r][t];break;case"frameworks":break;default:a.video[r]=e.params.video[r]}})),e.params.video.frameworks&&(0,s.isArray)(e.params.video.frameworks)&&(a.video_frameworks=e.params.video.frameworks)),_&&(a.video=a.video||{},Object.keys(_).filter((function(e){return(0,l.q9)(O,e)})).forEach((function(e){switch(e){case"minduration":case"maxduration":"number"!=typeof a.video[e]&&(a.video[e]=_[e]);break;case"skip":"boolean"!=typeof a.video.skippable&&(a.video.skippable=1===_[e]);break;case"skipafter":"number"!=typeof a.video.skipoffset&&(a.video.skippoffset=_[e]);break;case"playbackmethod":if("number"!=typeof a.video.playback_method){var r=_[e];(r=(0,s.isArray)(r)?r[0]:r)>=1&&r<=4&&(a.video.playback_method=r)}break;case"api":if(!a.video_frameworks&&(0,s.isArray)(_[e])){var t=_[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}));a.video_frameworks=t}break;case"startdelay":case"plcmt":case"placement":if("number"!=typeof a.video.context){var n=_.plcmt,i=_.placement,o=_.startdelay,d=function(e,r){if(!e)return;if(2===e){if(void 0===r)return;if(0===r)return"accompanying_content_pre_roll";if(-1===r)return"accompanying_content_mid_roll";if(-2===r)return"accompanying_content_post_roll"}else{if(3===e)return"interstitial";if(4===e)return"outstream"}}(n,o)||function(e){if(!e)return;if(2===e)return"in-banner";if(3===e)return"outstream";if(4===e)return"in-feed";if(5===e)return"intersitial"}(i)||function(e){if(!e)return;if(0===e)return"pre_roll";if(-1===e)return"mid_roll";if(-2===e)return"post_roll"}(o);a.video.context=T.context[d]}}}))),e.renderer&&(a.video=Object.assign({},a.video,{custom_renderer_present:!0})),e.params.frameworks&&(0,s.isArray)(e.params.frameworks)&&(a.banner_frameworks=e.params.frameworks),(0,o.Z)(e,"mediaTypes.".concat(u.Mk))&&a.ad_types.push(u.Mk),0===a.ad_types.length&&delete a.ad_types,a}function z(e){var r=[],a={};if((0,s.isArray)(e)&&2===e.length&&!(0,s.isArray)(e[0]))a.width=parseInt(e[0],10),a.height=parseInt(e[1],10),r.push(a);else if("object"===(0,t.Z)(e))for(var n=0;n<e.length;n++){var i=e[n];(a={}).width=parseInt(i[0],10),a.height=parseInt(i[1],10),r.push(a)}return r}function D(e){return!!e.params.user}function X(e){return!!parseInt(e.params.member,10)}function L(e){if(e.params)return!!e.params.app}function J(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function V(e){return!!e.debug}function F(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===u.Oh}function G(e){var r=!1,a=e.params,t=e.params.video;return a.frameworks&&(0,s.isArray)(a.frameworks)&&(r=(0,l.q9)(e.params.frameworks,6)),!r&&t&&t.frameworks&&(0,s.isArray)(t.frameworks)&&(r=(0,l.q9)(e.params.video.frameworks,6)),r}function H(e,r,a){(0,s.isEmpty)(e.video)&&(e.video={}),e.video[r]=a}function W(e,r){!function(e){try{var r=document.getElementById(e).querySelectorAll("div[id^='google_ads']");r[0]&&r[0].style.setProperty("display","none")}catch(e){}}(e.adUnitCode),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(){((null==r?void 0:r.defaultView)||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,a){e.renderer.handleVideoEvent({id:r,eventName:a})}function K(e){var r="";return Object.keys(e).forEach((function(a){(0,s.isStr)(e[a])?""!==e[a]?r+="".concat(a,"=").concat(e[a],","):r+="".concat(a,","):(0,s.isArray)(e[a])&&(""===e[a][0]?r+="".concat(a,","):e[a].forEach((function(e){r+="".concat(a,"=").concat(e,",")})))})),r=r.substring(0,r.length-1)}(0,c.dX)(Z),(0,i.z)("appnexusBidAdapter")}},function(e){e.O(0,[25823,93157,42277,2284,33402,86190,79270],(function(){return r=46319,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[40155],{33390:function(e,t,r){var i=r(70885),n=r(42982),a=r(4942),o=r(71002),d=r(78640),s=r(20265),p=r(64358),u=r(96475),l=r(24679),c=r(3193),f=r(15164),m=r(34614),g=r(14699),v=r(90154),b=r(35706),y=r(10075);function x(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Z(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 Z(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);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,d=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){d=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(d)throw a}}}}function Z(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}var w="ix",O="roundel",C=[l.Mk,l.pX,l.B5],S=[144,144],U={JPY:1},E="p",P="x",T={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"]},k={"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":"","utiq.com":"","criteo.com":"","euid.eu":"","intimatemerger.com":"","33across.com":"","liveintent.indexexchange.com":"","google.com":""},j=["britepoolid","lipbid","criteoId","merkleId","parrableId","connectid","tapadId","quantcastId","pubProvidedId","pairId"],A=["mimes","minduration","maxduration"],D=["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","plcmt"],N="".concat(w,"_features"),_=(0,f.df)({bidderCode:w}),B={REQUESTED_FEATURE_TOGGLES:["pbjs_enable_multiformat","pbjs_allow_all_eids"],featureToggles:{},isFeatureEnabled:function(e){return(0,s.Z)(this.featureToggles,"features.".concat(e,".activated"),!1)},getFeatureToggles:function(){if(_.localStorageIsEnabled()){var e=(0,p.safeJSONParse)(_.getDataFromLocalStorage(N));(0,s.Z)(e,"expiry")&&e.expiry>=(new Date).getTime()?this.featureToggles=e:this.clearFeatureToggles()}},setFeatureToggles:function(e){var t=e.body,r=new Date,i=(0,s.Z)(t,"ext.features");i&&(this.featureToggles={expiry:r.setHours(r.getHours()+1),features:i},_.localStorageIsEnabled()&&_.setDataInLocalStorage(N,JSON.stringify(this.featureToggles)))},clearFeatureToggles:function(){this.featureToggles={},_.localStorageIsEnabled()&&_.removeDataFromLocalStorage(N)}},F=0,X="",z="",R=!1,q=2;function L(e){var t=M(e,l.pX),r=(0,s.Z)(e,"mediaTypes.video"),i=(0,s.Z)(e,"params.video");if(H(r,i).length)return{};t.video=i?(0,p.deepClone)(e.params.video):{};var n=(0,s.Z)(e,"ortb2Imp.ext.tid");for(var a in n&&(0,u.N)(t,"ext.tid",n),function(e,t){if((0,s.Z)(t,"mediaTypes.video.context")===v.gZ){var r=(0,s.Z)(t,"mediaTypes.video.renderer");if(r||(r=(0,s.Z)(t,"renderer")),(0,s.Z)(t,"schain",!1))e.displaymanager="pbjs_wrapper";else if(r&&"object"===(0,o.Z)(r)){if(void 0!==r.url){var i="";try{i=new URL(r.url).hostname}catch(e){return}i.includes("js-sec.indexww")?e.displaymanager="ix":e.displaymanager=r.url}}else e.displaymanager="ix"}}(t,e),re(t,e),r)-1===D.indexOf(a)||t.video.hasOwnProperty(a)||(t.video[a]=r[a]);if(t.video.minduration>t.video.maxduration)return(0,p.logError)("IX Bid Adapter: video minduration [".concat(t.video.minduration,"] cannot be greater than video maxduration [").concat(t.video.maxduration,"]")),{};var d=i&&i.context||r&&r.context;if(function(e){e.video.hasOwnProperty("plcmt")&&(!(0,p.isInteger)(e.video.plcmt)||e.video.plcmt<1||e.video.plcmt>4)&&((0,p.logWarn)("IX Bid Adapter: video.plcmt [".concat(e.video.plcmt,"] must be an integer between 1-4 inclusive")),delete e.video.plcmt)}(t),d&&!t.video.hasOwnProperty("placement")&&(d===v.LD?t.video.placement=1:d===v.gZ?(0,s.Z)(i,"playerConfig.floatOnScroll")?t.video.placement=5:(t.video.placement=3,R=!0):(0,p.logWarn)("IX Bid Adapter: Video context '".concat(d,"' is not supported"))),!t.video.w||!t.video.h){var c=Q((0,s.Z)(t,"video.playerSize"))||Q((0,s.Z)(e,"params.size"));if(!c)return(0,p.logWarn)("IX Bid Adapter: Video size is missing in [mediaTypes.video]"),{};t.video.w=c[0],t.video.h=c[1]}return W(e,t,l.pX),t}function M(e,t){var r={};if(r.id=e.bidId,fe()&&(0,s.Z)(e,"params.externalId")&&(0,u.N)(r,"ext.externalID",e.params.externalId),(0,s.Z)(e,"params.".concat(t,".siteId"))&&!isNaN(Number(e.params[t].siteId)))switch(t){case l.Mk:(0,u.N)(r,"ext.siteID",e.params.banner.siteId.toString());break;case l.pX:(0,u.N)(r,"ext.siteID",e.params.video.siteId.toString());break;case l.B5:(0,u.N)(r,"ext.siteID",e.params.native.siteId.toString())}else e.params.siteId&&(0,u.N)(r,"ext.siteID",e.params.siteId.toString());return!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||(0,u.N)(r,"ext.sid",String(e.params.id)),r}function W(e,t,r){var i=null,n=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(i={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),(0,p.isFn)(e.getFloor)){var a="*",o="*";if(r&&(0,p.contains)(C,r)){var d=t[r];a=r,o=[d.w,d.h]}try{n=e.getFloor({mediaType:a,size:o})}catch(e){(0,p.logWarn)("priceFloors module call getFloor failed, error : ",e)}}var s=!1;n?(t.bidfloor=n.floor,t.bidfloorcur=n.currency,(0,u.N)(t,"ext.fl",E),s=!0):i&&(t.bidfloor=i.floor,t.bidfloorcur=i.currency,(0,u.N)(t,"ext.fl",P),s=!0),s&&(r==l.Mk?((0,u.N)(t,"banner.ext.bidfloor",t.bidfloor),(0,u.N)(t,"banner.ext.fl",t.ext.fl)):r==l.pX?((0,u.N)(t,"video.ext.bidfloor",t.bidfloor),(0,u.N)(t,"video.ext.fl",t.ext.fl)):((0,u.N)(t,"native.ext.bidfloor",t.bidfloor),(0,u.N)(t,"native.ext.fl",t.ext.fl)))}function J(e,t,r){var i,n={},a=!(!(0,s.Z)(e,"exp")||!(0,p.isInteger)(e.exp)),o=(0,s.Z)(e,"dealid")||(0,s.Z)(e,"ext.dealid");U.hasOwnProperty(t)?n.cpm=e.price/U[t]:n.cpm=e.price/100,n.requestId=e.impid,o&&(n.dealId=o),n.netRevenue=true,n.currency=t,n.creativeId=e.hasOwnProperty("crid")?e.crid:"-",e.mtype!=q||(!e.ext||e.ext.vasturl)&&e.ext?e.ext&&e.ext.vasturl&&(n.vastUrl=e.ext.vasturl):n.vastXml=e.adm;var d=null;if("string"==typeof e.adm&&"{"===e.adm[0]&&"}"===e.adm[e.adm.length-1])try{d=JSON.parse(e.adm)}catch(e){(0,p.logWarn)("adm looks like JSON but failed to parse: ",e)}return e.ext&&e.ext.vasturl||e.mtype==q?(n.width=r.video.w,n.height=r.video.h,n.mediaType=l.pX,n.mediaTypes=r.mediaTypes,n.ttl=a?e.exp:3600):d&&d.native?(n.native={ortb:d.native},n.width=e.w?e.w:1,n.height=e.h?e.h:1,n.mediaType=l.B5,n.ttl=a?e.exp:3600):(n.ad=e.adm,n.width=e.w,n.height=e.h,n.mediaType=l.Mk,n.ttl=a?e.exp:300),n.meta={},n.meta.networkId=(0,s.Z)(e,"ext.dspid"),n.meta.brandId=(0,s.Z)(e,"ext.advbrandid"),n.meta.brandName=(0,s.Z)(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(n.meta.advertiserDomains=e.adomain),null!==(i=e.ext)&&void 0!==i&&i.dsa&&(n.meta.dsa=e.ext.dsa),n}function G(e){return Array.isArray(e)&&2===e.length&&(0,p.isInteger)(e[0])&&(0,p.isInteger)(e[1])}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(G(e))return e[0]===t[0]&&e[1]===t[1];for(var r=0;r<e.length;r++)if(e[r][0]===t[0]&&e[r][1]===t[1])return!0;return!1}function H(e,t){var r=[];e||(0,p.logWarn)("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");var i,n=I(A);try{for(n.s();!(i=n.n()).done;){var a=i.value,o=e&&e.hasOwnProperty(a),d=t&&t.hasOwnProperty(a);o||d||r.push("IX Bid Adapter: ".concat(a," is not included in either the adunit or params level"))}}catch(e){n.e(e)}finally{n.f()}var s=e&&e.hasOwnProperty("protocol"),u=e&&e.hasOwnProperty("protocols"),l=t&&t.hasOwnProperty("protocol"),c=t&&t.hasOwnProperty("protocols");return s||u||l||c||r.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),r}function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return G(e)?e:!!G(e[0])&&e[0]}function $(e,t,r){if(e)return h(h({},(0,m.sE)(r,(function(t){return t.bidId===e}))),(0,m.sE)(t,(function(t){return t.id===e})))}function Y(e,t,r,i){var n="https://htlb.casalemedia.com/openrtb/pbjs",a=function(e){var t=[],r={};if((0,p.isArray)(e)){var i,n=I(e);try{for(n.s();!(i=n.n()).done;){var a=i.value,o=k.hasOwnProperty(a.source),d=B.isFeatureEnabled("pbjs_allow_all_eids"),u=(0,s.Z)(a,"uids.0");if((o||d)&&u&&(r[a.source]=!0,o&&""!==k[a.source]&&(a.uids[0].ext={rtiPartner:k[a.source]}),delete a.uids[0].atype,t.push(a),t.length>=50))break}}catch(e){n.e(e)}finally{n.f()}}return{toSend:t,seenSources:r}}((0,s.Z)(e,"0.userIdAsEids")),d=a.toSend;if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo&&function(e,t){var r=window.headertag.getIdentityInfo();if(r&&"object"===(0,o.Z)(r))for(var i in r){if(e.length>=50)return;if(r.hasOwnProperty(i)){var n=r[i];!n.responsePending&&n.data&&"object"===(0,o.Z)(n.data)&&Object.keys(n.data).length&&!t.seenSources[n.data.source]&&e.push(n.data)}}}(d,a),t&&t.bidderCode===O&&!a.seenSources["liveramp.com"])return[];var l=[],f=function(e){var t={};return t.id=e[0].bidderRequestId.toString(),t.site={},t.ext={},t.ext.source="prebid",t.ext.ixdiag={},t.ext.ixdiag.ls=_.localStorageIsEnabled(),t.imp=[],t.at=1,t}(e);f=function(e,t){t.length>0&&(e.ext.features={},t.forEach((function(t){e.ext.features[t]={activated:B.isFeatureEnabled(t)}})));return e}(f,B.REQUESTED_FEATURE_TOGGLES);var m=function(e,t){var r,i=e.map((function(e){return e.adUnitCode})).filter((function(e,t,r){return r.indexOf(e)===t})),n=(0,s.Z)(e,"0.userIdAsEids",[]),a={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"8.51.0",userIds:ne(e[0]),url:window.location.href.split("?")[0],vpd:R,ae:t,eidLength:n.length},o=I(i);try{var d=function(){var t=r.value,i=e.filter((function(e){return e.adUnitCode===t}))[0];(0,s.Z)(i,"mediaTypes")&&(Object.keys(i.mediaTypes).length>1&&a.mfu++,(0,s.Z)(i,"mediaTypes.native")&&a.nu++,(0,s.Z)(i,"mediaTypes.banner")&&a.bu++,"outstream"===(0,s.Z)(i,"mediaTypes.video.context")&&(a.ou++,ce(i)&&(a.ren=!0)),"instream"===(0,s.Z)(i,"mediaTypes.video.context")&&a.iu++,a.allu++)};for(o.s();!(r=o.n()).done;)d()}catch(e){o.e(e)}finally{o.f()}return a}(e,(0,s.Z)(t,"fledgeEnabled"));for(var g in m)f.ext.ixdiag[g]=m[g];f=function(e,t,r,i,n){var a,o,d=(0,s.Z)(t,"timeout");d&&(e.ext.ixdiag.tmax=d);c.vc.getConfig("userSync")&&(e.ext.ixdiag.syncsPerBidder=c.vc.getConfig("userSync").syncsPerBidder);e.ext.ixdiag.imps=Object.keys(r).length,e.source={tid:null==t||null===(a=t.ortb2)||void 0===a||null===(o=a.source)||void 0===o?void 0:o.tid},i[0].schain&&(e.source.ext={},e.source.ext.schain=i[0].schain);n.length>0&&(e.user={},e.user.eids=n);document.referrer&&""!==document.referrer&&(e.site.ref=document.referrer);return e}(f,t,r,e,d),f=function(e,t){if(t){t.gdprConsent&&((X=t.gdprConsent).hasOwnProperty("gdprApplies")&&(e.regs={ext:{gdpr:X.gdprApplies?1:0}}),X.hasOwnProperty("consentString")&&(e.user=e.user||{},e.user.ext={consent:X.consentString||""},X.hasOwnProperty("addtlConsent")&&X.addtlConsent&&(e.user.ext.consented_providers_settings={addtl_consent:X.addtlConsent}))),t.uspConsent&&((0,u.N)(e,"regs.ext.us_privacy",t.uspConsent),z=t.uspConsent);var r=(0,s.Z)(t,"refererInfo.page");r&&(e.site.page=r),t.gppConsent&&((0,u.N)(e,"regs.gpp",t.gppConsent.gppString),(0,u.N)(e,"regs.gpp_sid",t.gppConsent.applicableSections))}c.vc.getConfig("coppa")&&(0,u.N)(e,"regs.coppa",1);return e}(f,t);var v={};e[0].params.siteId&&(F=e[0].params.siteId,v.s=F);for(var b=Object.keys(r),y=!1,x=0;x<b.length&&!(l.length>=4);x++){f=K(r,b,f,x);var Z=(0,s.Z)(t,"ortb2")||{},w=h({},Z.site||Z.context);w.page=ee(t);var C=h({},Z.user);(0,p.isEmpty)(Z)||y||((f=te(t,f,Z,w,C)).site=(0,p.mergeDeep)({},f.site,w),f.user=(0,p.mergeDeep)({},f.user,C),y=!0),f=ie(r,f,b,x,v,n);var S=x===b.length-1;if(f=be(f=ve(f=xe(f))),S){var U="".concat(n,"?");0!==F&&(U+="s=".concat(F)),fe()&&(U+=0!==F?"&":"",U+="p=".concat(c.vc.getConfig("exchangeId"))),l.push({method:"POST",url:U,data:(0,p.deepClone)(f),option:{contentType:"text/plain"},validBidRequests:e}),f.imp=[],y=!1}}return l}function K(e,t,r,i){var a=e[t[i]],o=a.missingImps,d=void 0===o?[]:o,c=a.ixImps,f={ixImps:void 0===c?[]:c,missingBannerImpressions:d},m=Object.keys(f).map((function(e){return f[e]})).filter((function(e){return Array.isArray(e)})).reduce((function(e,t){return e.concat.apply(e,(0,n.Z)(t))}),[]),g=e[t[i]].gpid,v=e[t[i]].dfp_ad_unit_code,b=e[t[i]].tid,y=e[t[i]].sid,x=e[t[i]].ae,h=m.filter((function(e){return l.Mk in e})),I=m.filter((function(e){return!(l.Mk in e)}));if(h.length>0){var Z=h.reduce((function(e,t){return e[t.adunitCode]||(e[t.adunitCode]=[]),e[t.adunitCode].push(t),e}),{});for(var w in Z){for(var O=Z[w],C=O[0],S=C.id,U=C.banner.topframe,E=(0,s.Z)(O[0],"ext.externalID"),P={id:S,banner:{topframe:U,format:O.map((function(e){var t=e.banner;return{w:t.w,h:t.h,ext:e.ext}}))}},T=0;T<P.banner.format.length;T++)null!=P.banner.format[T].ext&&(null!=P.banner.format[T].ext.sid&&delete P.banner.format[T].ext.sid,null!=P.banner.format[T].ext.externalID&&delete P.banner.format[T].ext.externalID),"bidfloor"in O[T]&&(P.banner.format[T].ext.bidfloor=O[T].bidfloor),"{}"===JSON.stringify(P.banner.format[T].ext)&&delete P.banner.format[T].ext;var k=e[t[i]].pos;(0,p.isInteger)(k)&&(P.banner.pos=k),(v||g||b||y||x||E)&&(P.ext={},P.ext.dfp_ad_unit_code=v,P.ext.gpid=g,P.ext.tid=b,P.ext.sid=y,P.ext.externalID=E,1==x&&(P.ext.ae=1)),"bidfloor"in O[0]&&(P.bidfloor=O[0].bidfloor),"bidfloorcur"in O[0]&&(P.bidfloorcur=O[0].bidfloorcur);var j=e[t[i]].adUnitFPD;j&&(0,u.N)(P,"ext.data",j),r.imp.push(P)}}return I.length>0&&I.forEach((function(e){if(g&&(0,u.N)(e,"ext.gpid",g),r.imp.length>0){var t=!1;r.imp.forEach((function(i,n){e.id===i.id&&l.pX in e?(i.video=e.video,i.video.ext=Object.assign({},e.video.ext,e.ext),(0,s.Z)(i,"video.ext.bidfloor",!1)&&(0,s.Z)(i,"bidfloor",!1)&&i.video.ext.bidfloor<i.bidfloor&&(i.bidfloor=i.video.ext.bidfloor),!(0,s.Z)(i,"ext.siteID",!1)&&(0,s.Z)(e,"video.ext.siteID")&&((0,u.N)(i,"ext.siteID",e.video.ext.siteID),(0,u.N)(r,"ext.ixdiag.usid",!0)),t=!0):e.id===i.id&&l.B5 in e&&(i.native=e.native,i.native.ext=Object.assign({},e.native.ext,e.ext),(0,s.Z)(i,"native.ext.bidfloor",!1)&&(0,s.Z)(i,"bidfloor",!1)&&i.native.ext.bidfloor<i.bidfloor&&(i.bidfloor=i.native.ext.bidfloor),!(0,s.Z)(i,"ext.siteID",!1)&&(0,s.Z)(e,"native.ext.siteID",!1)&&((0,u.N)(i,"ext.siteID",e.native.ext.siteID),(0,u.N)(r,"ext.ixdiag.usid",!0)),t=!0)})),t||r.imp.push(e)}else r.imp.push(e)})),r}function ee(e){var t=e&&e.bidderCode||"ix",r=c.vc.getConfig(t),n="";if((n=(0,s.Z)(e,"ortb2.site.page")?e.ortb2.site.page:(0,s.Z)(e,"refererInfo.page"),r)&&"object"===(0,o.Z)(r.firstPartyData))return function(e,t,r){var n;try{n=new URL(t)}catch(r){(0,p.logWarn)("IX Bid Adapter: Invalid URL set in ortb2.site.page: ".concat(t,". Using referer URL instead.")),n=new URL((0,s.Z)(e,"refererInfo.page"))}for(var a=new URLSearchParams(n.search),o=0,d=Object.entries(r);o<d.length;o++){var u=(0,i.Z)(d[o],2),l=u[0],c=u[1];a.has(l)||a.append(l,c)}return n.search=a.toString(),n.toString()}(e,n,r.firstPartyData);return n}function te(e,t,r,i,n){if(t.ext.ixdiag.fpd=!0,Object.keys(i).forEach((function(e){-1===T.SITE.indexOf(e)&&delete i[e]})),Object.keys(n).forEach((function(e){-1===T.USER.indexOf(e)&&delete n[e]})),r.device){var a=h({},r.device.sua);(0,p.isEmpty)(a)||(0,u.N)(t,"device.sua",a)}var o;if(r.hasOwnProperty("regs")&&!e.gppConsent&&(r.regs.hasOwnProperty("gpp")&&"string"==typeof r.regs.gpp&&(0,u.N)(t,"regs.gpp",r.regs.gpp),r.regs.hasOwnProperty("gpp_sid")&&Array.isArray(r.regs.gpp_sid)&&(0,u.N)(t,"regs.gpp_sid",r.regs.gpp_sid),null!==(o=r.regs.ext)&&void 0!==o&&o.dsa)){var d=r.regs.ext.dsa,s={};if(["dsarequired","pubrender","datatopub"].forEach((function(e){(0,p.isNumber)(d[e])&&(s[e]=d[e])})),(0,p.isArray)(d.transparency)){var l=[];d.transparency.forEach((function(e){(0,p.isPlainObject)(e)&&(0,p.isStr)(e.domain)&&""!=e.domain&&(0,p.isArray)(e.dsaparams)&&e.dsaparams.every((function(e){return(0,p.isNumber)(e)}))&&l.push(e)})),l.length>0&&(s.transparency=l)}(0,p.isEmpty)(s)||(0,u.N)(t,"regs.ext.dsa",s)}return t}function re(e,t){var r=(0,s.Z)(t,"ortb2Imp.ext.data");r&&(0,u.N)(e,"ext.data",r)}function ie(e,t,r,i,n,a){var o=e[r[i]].pbadslot,d=e[r[i]].tagId,s=e[r[i]].adUnitCode,p=e[r[i]].divId;return(o||d||s||p)&&(t.ext.ixdiag.pbadslot=o,t.ext.ixdiag.tagid=d,t.ext.ixdiag.adunitcode=s,t.ext.ixdiag.divId=p),t}function ne(e){var t=e.userId||{};return j.filter((function(e){return t[e]}))}function ae(e,t){if(t)for(var r=0;r<e.length;r++){var i=e[r];if(t[0]===i[0]&&t[1]===i[1]){e.splice(r,1);break}}}function oe(e,t){var r=function(e){var t=M(e,l.B5),r=e.nativeOrtbRequest;r.eventtrackers=[{event:1,methods:[1,2]}],r.privacy=1,t.native={request:JSON.stringify(r),ver:"1.2"};var i=(0,s.Z)(e,"ortb2Imp.ext.tid");return i&&(0,u.N)(t,"ext.tid",i),re(t,e),W(e,t,l.B5),t}(e);if(0!=Object.keys(r).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(r),t[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId");var i=e.adUnitCode,n=document.getElementById(i)?i:(0,y.ky)(i).divId;t[e.adUnitCode].adUnitCode=i,t[e.adUnitCode].divId=n}}function de(e,t){var r=L(e);if(0!=Object.keys(r).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(r),t[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId");var i=e.adUnitCode,n=document.getElementById(i)?i:(0,y.ky)(i).divId;t[e.adUnitCode].adUnitCode=i,t[e.adUnitCode].divId=n}}function se(e,t,r,i){var n=function(e){var t=M(e,l.Mk);t.banner={},t.adunitCode=e.adUnitCode;var r=(0,s.Z)(e,"params.size");return r&&(t.banner.w=r[0],t.banner.h=r[1]),t.banner.topframe=(0,p.inIframe)()?0:1,W(e,t,l.Mk),t}(e),a=V((0,s.Z)(e,"mediaTypes.banner.sizes"),(0,s.Z)(e,"params.size"));if(r.hasOwnProperty(e.adUnitCode)||(r[e.adUnitCode]={}),r[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),r[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),r[e.adUnitCode].tid=(0,s.Z)(e,"ortb2Imp.ext.tid"),r[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),r[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId"),r[e.adUnitCode].pos=(0,s.Z)(e,"mediaTypes.banner.pos"),(0,s.Z)(i,"fledgeEnabled")){var o=(0,s.Z)(e,"ortb2Imp.ext.ae");o?(0,p.isInteger)(o)?r[e.adUnitCode].ae=o:(0,p.logWarn)("error setting auction environment flag - must be an integer"):1==(0,s.Z)(i,"defaultForSlots")&&(r[e.adUnitCode].ae=1)}var d=(0,s.Z)(e,"ortb2Imp.ext.data");d&&(r[e.adUnitCode].adUnitFPD=d);var u=(0,s.Z)(e,"params.id");!u||"string"!=typeof u&&"number"!=typeof u||(r[e.adUnitCode].sid=String(u));var c=e.adUnitCode,f=document.getElementById(c)?c:(0,y.ky)(c).divId;r[e.adUnitCode].adUnitCode=c,r[e.adUnitCode].divId=f,a&&(r[e.adUnitCode].hasOwnProperty("ixImps")||(r[e.adUnitCode].ixImps=[]),r[e.adUnitCode].ixImps.push(n)),function(e,t,r){if(t.hasOwnProperty(e.adUnitCode)){var i=[];t[e.adUnitCode].hasOwnProperty("missingSizes")&&(i=t[e.adUnitCode].missingSizes),ae(i,e.params.size),t[e.adUnitCode].missingSizes=i}else if((0,s.Z)(e,"mediaTypes.banner.sizes")){var n=(0,p.deepClone)(e.mediaTypes.banner.sizes);ae(n,e.params.size);var a={missingSizes:n,impression:r};t[e.adUnitCode]=a}}(e,t,n)}function pe(e,t,r){var i=(0,p.deepClone)(t);return i.banner.w=r[0],i.banner.h=r[1],W(e,i,l.Mk),i}function ue(e){e.renderer.push((function(){var t=e.adUnitCode,r=document.getElementById(t)?t:(0,y.ky)(t).divId;r?window.createIXPlayer(r,e):(0,p.logWarn)("IX Bid Adapter: adUnitCode: ".concat(r," not found on page."))}))}function le(e,t){var r=b.Th.install({id:e,url:t,loaded:!1});try{r.setRender(ue)}catch(e){return(0,p.logWarn)("Prebid Error calling setRender on renderer",e),null}return t?r:((0,p.logWarn)("Outstream renderer URL not found"),null)}function ce(e){if("outstream"!==(0,s.Z)(e,"mediaTypes.video.context"))return!1;var t=(0,s.Z)(e,"mediaTypes.video.renderer");return t||(t=(0,s.Z)(e,"renderer")),!!("object"!==(0,o.Z)(t)||!t.url||!t.render)||t.backupOnly}function fe(){var e=c.vc.getConfig("exchangeId");return!("number"!=typeof e||!isFinite(e))||!("string"!=typeof e||""===e.trim()||!isFinite(Number(e)))}var me={code:w,gvlid:10,aliases:[{code:O,gvlid:10,skipPbsAliasing:!1}],supportedMediaTypes:C,isBidRequestValid:function(e){var t,r,i=(0,s.Z)(e,"params.video"),n=(0,s.Z)(e,"params.size"),a=(0,s.Z)(e,"mediaTypes.banner.sizes"),o=(0,s.Z)(e,"mediaTypes.video"),d=(0,s.Z)(e,"mediaTypes.video.playerSize"),u=e.params.hasOwnProperty("bidFloor"),l=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!(0,p.contains)(C,e.mediaType))return(0,p.logWarn)("IX Bid Adapter: media type is not supported."),!1;if((0,s.Z)(e,"mediaTypes.banner")&&!a)return!1;if(n){var c=Q(n);if(!c)return(0,p.logError)("IX Bid Adapter: size has invalid format."),!1;if(!V(e.sizes,c)&&!V(d,c)&&!V(a,c))return(0,p.logError)("IX Bid Adapter: bid size is not included in ad unit sizes or player size."),!1}if(!fe()&&null==e.params.siteId)return(0,p.logError)("IX Bid Adapter: Invalid configuration - either siteId or exchangeId must be configured."),!1;if(void 0!==e.params.siteId){if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return(0,p.logError)("IX Bid Adapter: siteId must be string or number type."),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return(0,p.logError)("IX Bid Adapter: siteId must valid value"),!1}if((u||l)&&!(u&&l&&(t=e.params.bidFloor,r=e.params.bidFloorCur,Boolean("number"==typeof t&&"string"==typeof r&&r.match(/^[A-Z]{3}$/)))))return(0,p.logError)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format."),!1;if(o&&i){var f=L(e).video,m=H(o,i);if((0,s.Z)(e,"mediaTypes.video.context")===v.gZ&&ce(e)&&f){var g=[(0,s.Z)(f,"w"),(0,s.Z)(f,"h")];if(!(g[0]>=S[0]&&g[1]>=S[1]))return(0,p.logError)("IX Bid Adapter: ".concat(g," is an invalid size for IX outstream renderer")),!1}if(m.length)return m.forEach((function(e){(0,p.logError)(e)})),!1}return function(e){return void 0===(0,s.Z)(e,"mediaTypes.native")||e.nativeOrtbRequest&&Array.isArray(e.nativeOrtbRequest.assets)&&e.nativeOrtbRequest.assets.length>0}(e)},resetSiteID:function(){F=0},buildRequests:function(e,t){var r=[],i={},a={},o={},d={};for(var u in B.getFeatureToggles(),e.forEach((function(e){var r=Object.keys((0,s.Z)(e,"mediaTypes",{}));for(var n in r)switch(r[n]){case l.Mk:se(e,d,i,t);break;case l.pX:de(e,a);break;case l.B5:oe(e,o);break;default:(0,p.logWarn)("IX Bid Adapter: ad unit mediaTypes ".concat(n," is not supported"))}})),d)if(d.hasOwnProperty(u)){var c=d[u].missingSizes;i.hasOwnProperty(u)||(i[u]={}),i[u].hasOwnProperty("missingImps")||(i[u].missingImps=[],i[u].missingCount=0);for(var f=d[u].impression,m=0;m<c.length;m++){var g=pe(e[0],f,c[m]);i[u].missingImps.push(g),i[u].missingCount++}}var v,b=[];return Object.keys(i).length>0&&b.push(i),Object.keys(a).length>0&&b.push(a),Object.keys(o).length>0&&b.push(o),B.isFeatureEnabled("pbjs_enable_multiformat")?r.push.apply(r,(0,n.Z)(Y(e,t,(v={},b.forEach((function(e){Object.keys(e).forEach((function(t){Object.keys(v).includes(t)?v[t].hasOwnProperty("ixImps")&&e[t].hasOwnProperty("ixImps")?v[t].ixImps=[].concat((0,n.Z)(v[t].ixImps),(0,n.Z)(e[t].ixImps)):v[t].hasOwnProperty("missingImps")&&e[t].hasOwnProperty("missingImps")?v[t].missingImps=[].concat((0,n.Z)(v[t].missingImps),(0,n.Z)(e[t].missingImps)):e[t].hasOwnProperty("ixImps")?v[t].ixImps=e[t].ixImps:e[t].hasOwnProperty("missingImps")&&(v[t].missingImps=e[t].missingImps):v[t]=e[t]}))})),v)))):(Object.keys(i).length>0&&r.push.apply(r,(0,n.Z)(Y(e,t,i))),Object.keys(a).length>0&&r.push.apply(r,(0,n.Z)(Y(e,t,a))),Object.keys(o).length>0&&r.push.apply(r,(0,n.Z)(Y(e,t,o)))),r},interpretResponse:function(e,t){var r=[],i=null,n=(0,s.Z)(e,"body.ext.protectedAudienceAuctionConfigs")||[];if(B.setFeatureToggles(e),!e.hasOwnProperty("body"))return r;for(var a=e.body,d=a.seatbid||[],u=0;u<d.length;u++)if(d[u].hasOwnProperty("bid")){for(var c=d[u].bid,f=t.data,m=0;m<c.length;m++){var g=$(c[m].impid,f.imp,t.validBidRequests);if((i=J(c[m],a.cur,g)).mediaType===l.pX&&ce(g)){var v=(0,s.Z)(a,"ext.videoplayerurl");if(i.renderer=le(c[m].bidId,v),!i.renderer)continue}r.push(i)}if((0,s.Z)(f,"ext.ixdiag.err")&&_.localStorageIsEnabled())try{_.removeDataFromLocalStorage("ixdiag")}catch(e){(0,p.logError)("ix can not clear ixdiag from localStorage.")}}if(!(Array.isArray(n)&&n.length>0))return r;n=n.filter((function(e){return!!function(e){return"object"===(0,o.Z)(e)&&null!==e}(e)||((0,p.logWarn)("Malformed auction config detected:",e),!1)}));try{return{bids:r,fledgeAuctionConfigs:n}}catch(e){return(0,p.logWarn)("Error attaching AuctionConfigs",e),r}},getUserSyncs:function(e,t){var r=[],i=null;if(t.length>0&&(i=(0,s.Z)(t[0],"body.ext.publishersyncsperbidderoverride")),void 0!==i&&0==i)return[];if(e.iframeEnabled)r.push({type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"});else{var n=null;c.vc.getConfig("userSync")&&(n=c.vc.getConfig("userSync").syncsPerBidder),0===n&&(n=i),n=i&&(0===n||n)?i>n?n:i:1;for(var a=0;a<n;a++)r.push({type:"image",url:ge(n,a)})}return r}};function ge(e,t){var r="",i="0";return X&&X.hasOwnProperty("gdprApplies")&&(i=X.gdprApplies?"1":"0"),X&&X.hasOwnProperty("consentString")&&(r=X.consentString||""),"https://dsum.casalemedia.com/pbusermatch?origin=prebid"+(0!==F?"&site_id="+F.toString():"")+"&p="+e.toString()+"&i="+t.toString()+"&gdpr="+i+"&gdpr_consent="+r+"&us_privacy="+(z||"")}function ve(e){return e.imp.forEach((function(t,r){var i=t.ext;if(null==i)return e;ye(t)<2||Object.keys(i).forEach((function(n){if(l.Mk in t){var a=t.banner.ext;if(void 0!==a&&void 0!==a[n]&&a[n]==i[n]&&delete e.imp[r].banner.ext[n],void 0!==t.banner.format)for(var o=0;o<t.banner.format.length;o++)null!=t.banner.format[o].ext&&null!=t.banner.format[o].ext[n]&&t.banner.format[o].ext[n]==i[n]&&delete e.imp[r].banner.format[o].ext[n]}if(l.pX in t){var d=t.video.ext;void 0!==d&&void 0!==d[n]&&d[n]==i[n]&&delete e.imp[r].video.ext[n]}if(l.B5 in t){var s=t.native.ext;void 0!==s&&void 0!==s[n]&&s[n]==i[n]&&delete e.imp[r].native.ext[n]}}))})),e}function be(e){return e.imp.forEach((function(t,r){if(null==t.ext)return e;if(!(ye(t)<2)){if(l.Mk in t){var i=t.banner.ext;if(void 0!==i&&void 0!==i.siteID&&delete e.imp[r].banner.ext.siteID,void 0!==t.banner.format)for(var n=0;n<t.banner.format.length;n++)void 0!==t.banner.format[n].ext&&void 0!==t.banner.format[n].ext.siteID&&((0,u.N)(e.imp[r],"ext.siteID",t.banner.format[n].ext.siteID),(0,u.N)(e,"ext.ixdiag.usid",!0),delete e.imp[r].banner.format[n].ext.siteID)}if(l.pX in t){var a=t.video.ext;void 0!==a&&void 0!==a.siteID&&delete e.imp[r].video.ext.siteID}if(l.B5 in t){var o=t.native.ext;void 0!==o&&void 0!==o.siteID&&delete e.imp[r].native.ext.siteID}}})),e}function ye(e){var t=0;return void 0!==e.banner&&(t+=1),void 0!==e.video&&(t+=1),void 0!==e.native&&(t+=1),t}function xe(e){return null==e.device&&(e.device={}),e.device.h=window.screen.height,e.device.w=window.screen.width,e}(0,g.dX)(me),(0,d.z)("ixBidAdapter")}},function(e){e.O(0,[29703,25823,79270],(function(){return t=33390,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[55126],{15817:function(e,r,t){var a=t(70885),i=t(42982),n=t(4942),o=t(71002),s=t(78640),d=t(64358),p=t(20265),c=t(96475),l=t(14699),u=t(24679),m=t(3193),g=t(35706),f=t(55975),h=t(62200);function b(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 v(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?b(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var y="pubmatic",w="PubMatic: ",x="USD",I=void 0,O="https://pubmatic.bbvms.com/r/".concat("$RENDERER",".js"),P={kadpageurl:"",gender:"",yob:"",lat:"",lon:"",wiid:"",profId:"",verId:""},T="number",S="string",z="boolean",C="array",k={mimes:C,minduration:T,maxduration:T,startdelay:T,playbackmethod:C,api:C,protocols:C,w:T,h:T,battr:C,linearity:T,placement:T,plcmt:T,minbitrate:T,maxbitrate:T,skip:T},E=1,j=3,R={1:"PMP",5:"PREF",6:"PMPG"},_={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,a=_.getRendererId("pubmatic",e.rendererCode),i=document.getElementById(e.adUnitCode),n=0;n<window.bluebillywig.renderers.length;n++)if(window.bluebillywig.renderers[n]._id===a){t=window.bluebillywig.renderers[n];break}t?t.bootstrap(r,i):(0,d.logWarn)("".concat(w,": Couldn't find a renderer with ").concat(a))}else(0,d.logWarn)("".concat(w,": No vastXml or vastUrl on bid, bailing..."))},newRenderer:function(e,r){var t=O.replace("$RENDERER",e),a=g.Th.install({url:t,loaded:!1,adUnitCode:r});try{a.setRender(_.outstreamRender)}catch(e){(0,d.logWarn)("".concat(w,": Error tying to setRender on renderer"),e)}return a},outstreamRender:function(e){e.renderer.push((function(){_.bootstrapPlayer(e)}))},getRendererId:function(e,r){return"".concat(e,"-").concat(r)}},N=[u.Mk,u.pX,u.B5],M=0,U=!1,W=["pubmatic"],A=["all"];function q(e,r){if(!(0,d.isStr)(r))return r&&(0,d.logWarn)("PubMatic: Ignoring param key: "+e+", expects string-value, found "+(0,o.Z)(r)),I;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)||I;case"yob":return parseInt(r)||I;default:return r}}function Z(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,(0,d.isStr)(r)?r.replace(/^\s+/g,"").replace(/\s+$/g,""):(r&&(0,d.logWarn)("pubmatic: adSlot must be a string. Ignoring adSlot"),""));var t=e.params.adSlot,a=t.split(":");if(t=a[0],2==a.length&&(e.params.adUnitIndex=a[1]),a=t.split("@"),e.params.adUnit=a[0],a.length>1){if(2!=(a=a[1].split("x")).length)return void(0,d.logWarn)("PubMatic: AdSlot Error: adSlot not in required format");e.params.width=parseInt(a[0],10),e.params.height=parseInt(a[1],10)}else if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(u.Mk)&&e.mediaTypes.banner.hasOwnProperty("sizes")){for(var i=0,n=[];i<e.mediaTypes.banner.sizes.length;i++)2===e.mediaTypes.banner.sizes[i].length&&n.push(e.mediaTypes.banner.sizes[i]);e.mediaTypes.banner.sizes=n,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 B(){var e=window.navigator&&(window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection);switch(null==e?void 0:e.effectiveType){case"ethernet":return 1;case"wifi":return 2;case"slow-2g":case"2g":return 4;case"3g":return 5;case"4g":return 6;default:return 0}}function X(e,r,t){var a,i="Ignoring param key: "+e+", expects "+t+", found "+(0,o.Z)(r);switch(t){case z:a=d.isBoolean;break;case T:a=d.isNumber;break;case S:a=d.isStr;break;case C:a=d.isArray}return a(r)?r:((0,d.logWarn)(w+i),I)}var D={desc:"desc",desc2:"desc2",body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl",saleprice:"saleprice",displayurl:"displayurl"},F=Object.values(D);function J(e){var r;if(e.ortb){e=e.ortb,r=v(v({ver:"1.2"},e),{},{assets:[]});var t=e.assets,a=function(e){return e.title||e.img||e.data||e.video};if(t.length<1||!t.some((function(e){return a(e)})))return(0,d.logWarn)("".concat(w,": Native assets object is empty or contains some invalid object")),U=!0,r;t.forEach((function(e){var t=e;t.img&&(t.img.type==j?(t.w=t.w||t.width||(t.sizes?t.sizes[0]:I),t.h=t.h||t.height||(t.sizes?t.sizes[1]:I),t.wmin=t.wmin||t.minimumWidth||(t.minsizes?t.minsizes[0]:I),t.hmin=t.hmin||t.minimumHeight||(t.minsizes?t.minsizes[1]:I)):t.img.type==E&&(t.w=t.w||t.width||(t.sizes?t.sizes[0]:I),t.h=t.h||t.height||(t.sizes?t.sizes[1]:I))),t&&void 0!==t.id&&a(t)&&r.assets.push(t)}))}else r=function(e){if(!e&&!(0,d.isPlainObject)(e))return(0,d.logWarn)("".concat(w,": Native assets object is empty or not an object: ").concat(e)),void(U=!0);var r={ver:"1.2",assets:[]};for(var t in e)if(!h.zA.includes(t))if(h.FY.hasOwnProperty(t)||F.includes(t)){var a=e[t],i=0;a.required&&(0,d.isBoolean)(a.required)&&(i=Number(a.required));var n={id:r.assets.length,required:i};if(t in D)n.data={type:h.s$[D[t]]},(a.len||a.length)&&(n.data.len=a.len||a.length),a.ext&&(n.data.ext=a.ext);else if("icon"===t||"image"===t){if(n.img={type:"icon"===t?h.oF.ICON:h.oF.MAIN},a.aspect_ratios)if((0,d.isArray)(a.aspect_ratios))if(a.aspect_ratios.length){var o=a.aspect_ratios[0],s=o.min_width,p=o.min_height;(0,d.isInteger)(s)&&(0,d.isInteger)(p)?(n.img.wmin=s,n.img.hmin=p):(0,d.logWarn)("".concat(w,": image.aspect_ratios min_width or min_height are invalid: ").concat(s,", ").concat(p));var c=a.aspect_ratios.filter((function(e){return e.ratio_width&&e.ratio_height})).map((function(e){return"".concat(e.ratio_width,":").concat(e.ratio_height)}));c.length>0&&(n.img.ext={aspectratios:c})}else(0,d.logWarn)("".concat(w,": image.aspect_ratios was passed, but it's empty: ").concat(a.aspect_ratios));else(0,d.logWarn)("".concat(w,": image.aspect_ratios was passed, but it's not a an array: ").concat(a.aspect_ratios));n.img.w=a.w||a.width,n.img.h=a.h||a.height,n.img.wmin=a.wmin||a.minimumWidth||(a.minsizes?a.minsizes[0]:I),n.img.hmin=a.hmin||a.minimumHeight||(a.minsizes?a.minsizes[1]:I),a.sizes&&(2===a.sizes.length&&(0,d.isInteger)(a.sizes[0])&&(0,d.isInteger)(a.sizes[1])?((0,d.logInfo)("".concat(w,": if asset.sizes exist, by OpenRTB spec we should remove wmin and hmin")),n.img.w=a.sizes[0],n.img.h=a.sizes[1],delete n.img.hmin,delete n.img.wmin):(0,d.logWarn)("".concat(w,": image.sizes was passed, but its value is not an array of integers: ").concat(a.sizes))),a.ext&&(n.img.ext=a.ext),a.mimes&&(n.img.mimes=a.mimes)}else"title"===t?(n.title={len:a.len||a.length||140},a.ext&&(n.title.ext=a.ext)):"ext"===t&&(n.ext=a,delete n.required);r.assets.push(n)}else(0,d.logWarn)("".concat(w,": Unrecognized native asset code: ").concat(t,". Asset will be ignored."));return r.assets.length<1?((0,d.logWarn)("".concat(w,": Could not find any valid asset")),void(U=!0)):r}(e);return r}function L(e){var r,t=e.mediaTypes.banner.sizes,a=[];if(t!==I&&(0,d.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=I,(0,d.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&&(a=[],t.forEach((function(e){e.length>1&&a.push({w:e[0],h:e[1]})})),a.length>0&&(r.format=a)),r.pos=0,r.topframe=(0,d.inIframe)()?0:1}else(0,d.logWarn)("PubMatic: Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),r=I;return r}function V(e){var r,t=(0,d.mergeDeep)((0,p.Z)(e.mediaTypes,"video"),e.params.video);if(t!==I){for(var a in r={},function(e,r){(0,p.Z)(e,"plcmt")||(0,d.logWarn)("Video.plcmt param missing for "+r)}(t,e.adUnitCode),k)t.hasOwnProperty(a)&&(r[a]=X(a,t[a],k[a]));(0,d.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)):(0,d.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=I,(0,d.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 $(e,r){var t,a,i={},n={},s=e.hasOwnProperty("sizes")?e.sizes:[],l="",g=[],f=null==r?void 0:r.fledgeEnabled;if(function(e,r){r.params.deals&&((0,d.isArray)(r.params.deals)?r.params.deals.forEach((function(r){(0,d.isStr)(r)&&r.length>3?(e.pmp||(e.pmp={private_auction:0,deals:[]}),e.pmp.deals.push({id:r})):(0,d.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)})):(0,d.logWarn)("PubMatic: Error: bid.params.deals should be an array of strings."))}(i={id:e.bidId,tagid:e.params.adUnit||void 0,bidfloor:q("kadfloor",e.params.kadfloor),secure:1,ext:{pmZoneId:q("pmzoneid",e.params.pmzoneid)},bidfloorcur:e.params.currency?q("currency",e.params.currency):x,displaymanager:"Prebid.js",displaymanagerver:"8.51.0"},e),function(e,r){var t,a="";if(r.params.dctr)if(a=r.params.dctr,(0,d.isStr)(a)&&a.length>0){var i=a.split("|");a="",i.forEach((function(e){a+=e.length>0?e.trim()+"|":""})),t=a.length,"|"===a.substring(t,t-1)&&(a=a.substring(0,t-1)),e.ext.key_val=a.trim()}else(0,d.logWarn)("PubMatic: Ignoring param : dctr with value : "+a+", expects string-value, found empty or non-string value")}(i,e),function(e,r){var t=r.rtd&&r.rtd.jwplayer&&r.rtd.jwplayer.targeting||void 0,a="";if(void 0!==t&&""!==t&&t.hasOwnProperty("segments")){var i,n=t.segments.length;a+="jw-id="+t.content.id;for(var o=0;o<n;o++)a+="|jw-"+t.segments[o]+"=1";(i=e.ext)&&void 0===i.key_val?i.key_val=a:i.key_val+="|"+a}}(i,e),e.hasOwnProperty("mediaTypes"))for(l in e.mediaTypes)switch(l){case u.Mk:(t=L(e))!==I&&(i.banner=t);break;case u.B5:n.request=JSON.stringify(J(e.nativeParams)),U?((0,d.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."),U=!1):i.native=n;break;case u.pX:(a=V(e))!==I&&(i.video=a)}else t={pos:0,w:e.params.width,h:e.params.height,topframe:(0,d.inIframe)()?0:1},(0,d.isArray)(s)&&s.length>1&&((s=s.splice(1,s.length-1)).forEach((function(e){g.push({w:e[0],h:e[1]})})),t.format=g),i.banner=t;return function(e,r){var t=v({},(0,p.Z)(r,"ortb2Imp.ext.data"));Object.keys(t).forEach((function(r){"pbadslot"===r?"string"==typeof t[r]&&t[r]&&(0,c.N)(e,"ext.data.pbadslot",t[r]):"adserver"===r?["name","adslot"].forEach((function(r){var a=(0,p.Z)(t,"adserver.".concat(r));"string"==typeof a&&a&&((0,c.N)(e,"ext.data.adserver.".concat(r.toLowerCase()),a),"adslot"===r&&(0,c.N)(e,"ext.dfp_ad_unit_code",a))})):(0,c.N)(e,"ext.data.".concat(r),t[r])}));var a=(0,p.Z)(r,"ortb2Imp.ext.gpid");a&&(0,c.N)(e,"ext.gpid",a)}(i,e),function(e,r){var t=-1;"function"!=typeof r.getFloor||m.vc.getConfig("pubmatic.disableFloors")||[u.Mk,u.pX,u.B5].forEach((function(a){if(e.hasOwnProperty(a)){var i=[];"banner"===a&&(e[a].w&&e[a].h&&i.push([e[a].w,e[a].h]),(0,d.isArray)(e[a].format)&&e[a].format.forEach((function(e){return i.push([e.w,e.h])}))),0===i.length&&i.push("*"),i.forEach((function(i){var n=r.getFloor({currency:e.bidfloorcur,mediaType:a,size:i});if((0,d.logInfo)(w,"floor from floor module returned for mediatype:",a," and size:",i," is: currency",n.currency,"floor",n.floor),"object"===(0,o.Z)(n)&&n.currency===e.bidfloorcur&&!isNaN(parseInt(n.floor))){var s=parseFloat(n.floor);(0,d.logInfo)(w,"floor from floor module:",s,"previous floor value",t,"Min:",Math.min(s,t)),t=-1===t?s:Math.min(s,t),(0,d.logInfo)(w,"new floor value:",t)}}))}}));e.bidfloor&&((0,d.logInfo)(w,"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:I,(0,d.logInfo)(w,"new impObj.bidfloor value:",e.bidfloor)}(i,e),function(e,r,t){if(t){var a,i;e.ext=e.ext||{},void 0!==(null==r||null===(a=r.ortb2Imp)||void 0===a||null===(i=a.ext)||void 0===i?void 0:i.ae)&&(e.ext.ae=r.ortb2Imp.ext.ae)}else{var n;null!==(n=e.ext)&&void 0!==n&&n.ae&&delete e.ext.ae}}(i,e,f),i.hasOwnProperty(u.Mk)||i.hasOwnProperty(u.B5)||i.hasOwnProperty(u.pX)?i:I}function H(e,r){(r=r.filter((function(e){return"string"==typeof e||((0,d.logWarn)("PubMatic: acat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,r,t){return t.indexOf(e)===r}))).length>0&&((0,d.logWarn)("PubMatic: acat: Selected: ",r),e.ext.acat=r)}function G(e){return!0===(0,d.isArray)(e)&&e.length>0}var Y={code:y,gvlid:76,supportedMediaTypes:[u.Mk,u.pX,u.B5],isBidRequestValid:function(e){if(e&&e.params){if(!(0,d.isStr)(e.params.publisherId))return(0,d.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(u.pX)){var r=(0,p.Z)(e.mediaTypes,"video.mimes"),t=(0,p.Z)(e,"params.video.mimes");if(!1===G(r)&&!1===G(t))return(0,d.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[u.pX].hasOwnProperty("context"))return(0,d.logError)("".concat(w,": no context specified in bid. Rejecting bid: "),e),!1;if("outstream"===e.mediaTypes[u.pX].context&&!(0,d.isStr)(e.params.outstreamAU)&&!e.hasOwnProperty("renderer")&&!e.mediaTypes[u.pX].hasOwnProperty("renderer"))return e.mediaTypes.hasOwnProperty(u.Mk)||e.mediaTypes.hasOwnProperty(u.B5)?(delete e.mediaTypes[u.pX],(0,d.logWarn)("".concat(w,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting mediatype Video of bid: '),e),!0):((0,d.logError)("".concat(w,': 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,a,n,s,l,g,h,b,y,w,O,T,S,z;r&&r.refererInfo&&(z=r.refererInfo);var C,k=function(e){return{pageURL:(null==e?void 0:e.page)||window.location.href,refURL:(null==e?void 0:e.ref)||window.document.referrer}}(z),E=function(e){return{id:""+(new Date).getTime(),at:1,cur:[x],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,connectiontype:B()},user:{},ext:{}}}(k),j="",R=[],_=[],N=[],U=(0,d.generateUUID)();if(e.forEach((function(e){var t,a;if(e.params.wiid=e.params.wiid||r.auctionId||U,(C=(0,d.deepClone)(e)).params.adSlot=C.params.adSlot||"",Z(C),C.mediaTypes&&C.mediaTypes.hasOwnProperty("video")||C.params.hasOwnProperty("video"));else if(!(C.hasOwnProperty("mediaTypes")&&C.mediaTypes.hasOwnProperty(u.B5)||0!==C.params.width||0!==C.params.height))return void(0,d.logWarn)("PubMatic: Skipping the non-standard adslot: ",C.params.adSlot,JSON.stringify(C));k.pubId=k.pubId||C.params.publisherId,(k=function(e,r){var t,a,i;for(t in r.kadpageurl||(r.kadpageurl=r.pageURL),P)P.hasOwnProperty(t)&&(a=e[t])&&(i=P[t],"object"===(0,o.Z)(i)&&(a=i.f(a,r)),(0,d.isStr)(a)?r[t]=a:(0,d.logWarn)("PubMatic: Ignoring param : "+t+" with value : "+P[t]+", expects string-value, found "+(0,o.Z)(a)));return r}(C.params,k)).transactionId=null===(t=C.ortb2Imp)||void 0===t||null===(a=t.ext)||void 0===a?void 0:a.tid,""===j?j=C.params.currency||I:C.params.hasOwnProperty("currency")&&j!==C.params.currency&&(0,d.logWarn)("PubMatic: Currency specifier ignored. Only one currency permitted."),C.params.currency=j,C.params.hasOwnProperty("dctr")&&(0,d.isStr)(C.params.dctr)&&R.push(C.params.dctr),C.params.hasOwnProperty("bcat")&&(0,d.isArray)(C.params.bcat)&&(_=_.concat(C.params.bcat)),C.params.hasOwnProperty("acat")&&(0,d.isArray)(C.params.acat)&&(N=N.concat(C.params.acat));var i=$(C,r);i&&E.imp.push(i)})),0!=E.imp.length){E.site.publisher.id=k.pubId.trim(),M=k.pubId.trim(),E.ext.wrapper={},E.ext.wrapper.profile=parseInt(k.profId)||I,E.ext.wrapper.version=parseInt(k.verId)||I,E.ext.wrapper.wiid=k.wiid||r.auctionId,E.ext.wrapper.wv="prebid_prebid_8.51.0",E.ext.wrapper.transactionId=k.transactionId,E.ext.wrapper.wp="pbjs";var X,D,F=r?f.S.get(r.bidderCode,"allowAlternateBidderCodes"):void 0;if(void 0!==F){if(E.ext.marketplace={},r&&1==F){var J=f.S.get(r.bidderCode,"allowedAlternateBidderCodes");(0,d.isArray)(J)?(J=J.map((function(e){return e.trim().toLowerCase()})).filter((function(e){return!!e})).filter(d.uniques),W=J.includes("*")?A:[].concat((0,i.Z)(W),(0,i.Z)(J))):W=A}E.ext.marketplace.allowedbidders=W.filter(d.uniques)}E.user.gender=k.gender?k.gender.trim():I,E.user.geo={},E.user.yob=q("yob",k.yob),E.site.page=k.kadpageurl.trim()||E.site.page.trim(),E.site.domain=(X=E.site.page,(D=document.createElement("a")).href=X,D.hostname),"object"===(0,o.Z)(m.vc.getConfig("content"))&&(E.site.content=m.vc.getConfig("content")),"object"===(0,o.Z)(m.vc.getConfig("device"))&&(E.device=Object.assign(E.device,m.vc.getConfig("device"))),E.device.language=E.device.language&&E.device.language.split("-")[0],(0,c.N)(E,"source.tid",null==r||null===(t=r.ortb2)||void 0===t||null===(a=t.source)||void 0===a?void 0:a.tid),-1!==window.location.href.indexOf("pubmaticTest=true")&&(E.test=1),e[0].schain&&(0,c.N)(E,"source.ext.schain",e[0].schain),r&&r.gdprConsent&&((0,c.N)(E,"user.ext.consent",r.gdprConsent.consentString),(0,c.N)(E,"regs.ext.gdpr",r.gdprConsent.gdprApplies?1:0)),r&&r.uspConsent&&(0,c.N)(E,"regs.ext.us_privacy",r.uspConsent),null!=r&&null!==(n=r.gppConsent)&&void 0!==n&&n.gppString?((0,c.N)(E,"regs.gpp",r.gppConsent.gppString),(0,c.N)(E,"regs.gpp_sid",r.gppConsent.applicableSections)):null!=r&&null!==(s=r.ortb2)&&void 0!==s&&null!==(l=s.regs)&&void 0!==l&&l.gpp&&((0,c.N)(E,"regs.gpp",r.ortb2.regs.gpp),(0,c.N)(E,"regs.gpp_sid",r.ortb2.regs.gpp_sid)),!0===m.vc.getConfig("coppa")&&(0,c.N)(E,"regs.coppa",1),null!=r&&null!==(g=r.ortb2)&&void 0!==g&&null!==(h=g.regs)&&void 0!==h&&null!==(b=h.ext)&&void 0!==b&&b.dsa&&(0,c.N)(E,"regs.ext.dsa",r.ortb2.regs.ext.dsa),function(e,r){var t=(0,p.Z)(r,"0.userIdAsEids");(0,d.isArray)(t)&&t.length>0&&(0,c.N)(e,"user.eids",t)}(E,e);var L,V,G,Y=r&&r.ortb2||{},K=Y.user,Q=Y.device,ee=Y.site,re=Y.bcat,te=Y.badv;if(ee){var ae=E.site,ie=ae.page,ne=ae.domain,oe=ae.ref;(0,d.mergeDeep)(E,{site:ee}),E.site.page=ie,E.site.domain=ne,E.site.ref=oe}if(K&&(0,d.mergeDeep)(E,{user:K}),te&&(0,d.mergeDeep)(E,{badv:te}),re&&(_=_.concat(re)),null!=Q&&Q.sua&&(E.device.sua=null==Q?void 0:Q.sua),null!=Q&&null!==(y=Q.ext)&&void 0!==y&&y.cdep&&(0,c.N)(E,"device.ext.cdep",Q.ext.cdep),null!=K&&K.geo&&null!=Q&&Q.geo?(E.device.geo=v(v({},E.device.geo),Q.geo),E.user.geo=v(v({},E.user.geo),K.geo)):(null!=K&&K.geo||null!=Q&&Q.geo)&&(E.user.geo=E.device.geo=null!=K&&K.geo?v(v({},E.user.geo),K.geo):v(v({},E.user.geo),Q.geo)),null!==(w=Y.ext)&&void 0!==w&&null!==(O=w.prebid)&&void 0!==O&&null!==(T=O.bidderparams)&&void 0!==T&&null!==(S=T[r.bidderCode])&&void 0!==S&&S.acat){var se=Y.ext.prebid.bidderparams[r.bidderCode].acat;H(E,se)}else N.length&&H(E,N);if(function(e,r){(r=r.filter((function(e){return"string"==typeof e||((0,d.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;(0,d.logWarn)("PubMatic: bcat: Each category should have a value of a length of more than 3 characters, ignoring category: "+e)}))).length>0&&((0,d.logWarn)("PubMatic: bcat: Selected: ",r),e.bcat=r)}(E,_),null!=r&&r.timeout)E.tmax=r.timeout;else E.tmax=null===(L=window)||void 0===L||null===(V=L.PWT)||void 0===V||null===(G=V.versionDetails)||void 0===G?void 0:G.timeout;return E.ext.epoch=(new Date).getTime(),"object"===(0,o.Z)(m.vc.getConfig("app"))&&(E.app=m.vc.getConfig("app"),E.app.publisher=E.site.publisher,E.app.ext=E.site.ext||I,"object"!==(0,o.Z)(E.app.content)&&(E.app.content=E.site.content||I),delete E.site),{method:"POST",url:"https://hbopenbid.pubmatic.com/translator?source=prebid-client",data:JSON.stringify(E),bidderRequest:r}}},interpretResponse:function(e,r){var t=[],i=x,n=JSON.parse(r.data),o=n.site&&n.site.ref?n.site.ref:"";try{e.body&&e.body.seatbid&&(0,d.isArray)(e.body.seatbid)&&(i=e.body.cur||i,e.body.seatbid.forEach((function(e){e.bid&&(0,d.isArray)(e.bid)&&e.bid.forEach((function(a){var s={requestId:a.impid,cpm:parseFloat((a.price||0).toFixed(2)),width:a.w,height:a.h,creativeId:a.crid||a.id,dealId:a.dealid,currency:i,netRevenue:true,ttl:300,referrer:o,ad:a.adm,pm_seat:e.seat||null,pm_dspid:a.ext&&a.ext.dspid?a.ext.dspid:null,partnerImpId:a.id||""};n.imp&&n.imp.length>0&&n.imp.forEach((function(e){if(a.impid===e.id)switch(function(e,r){if(e.ext&&null!=e.ext.bidtype)r.mediaType=N[e.ext.bidtype];else{(0,d.logInfo)("PubMatic: bid.ext.bidtype does not exist, checking alternatively for mediaType");var t=e.adm,a="",i=new RegExp(/VAST\s+version/);if(t.indexOf('span class="PubAPIAd"')>=0)r.mediaType=u.Mk;else if(i.test(t))r.mediaType=u.pX;else try{(a=JSON.parse(t.replace(/\\/g,"")))&&a.native&&(r.mediaType=u.B5)}catch(e){(0,d.logWarn)("PubMatic: Error: Cannot parse native reponse for ad response: "+t)}}}(a,s),s.mediaType){case u.Mk:break;case u.pX:s.width=a.hasOwnProperty("w")?a.w:e.video.w,s.height=a.hasOwnProperty("h")?a.h:e.video.h,s.vastXml=a.adm,function(e,r){var t,a,i;if(r.bidderRequest&&r.bidderRequest.bids){for(var n=0;n<r.bidderRequest.bids.length;n++)r.bidderRequest.bids[n].bidId===e.requestId&&(t=r.bidderRequest.bids[n].params,a=r.bidderRequest.bids[n].mediaTypes[u.pX].context,i=r.bidderRequest.bids[n].adUnitCode);a&&"outstream"===a&&t&&t.outstreamAU&&i&&(e.rendererCode=t.outstreamAU,e.renderer=_.newRenderer(e.rendererCode,i))}}(s,r),function(e,r,t){var a,i,n;if(null!=r&&null!==(a=r.ext)&&void 0!==a&&a.prebiddealpriority){var o=(0,d.getBidRequest)(e.requestId,[t.bidderRequest]),s=(0,p.Z)(o,"mediaTypes.video");if((null==s?void 0:s.context)==u.Oh){var c=(null==r||null===(i=r.ext)||void 0===i||null===(n=i.video)||void 0===n?void 0:n.duration)||(null==s?void 0:s.maxduration);e.video={context:u.Oh,durationSeconds:c,dealTier:r.ext.prebiddealpriority}}}}(s,a,r);break;case u.B5:!function(e,r){if(e.hasOwnProperty("adm")){var t="";try{t=JSON.parse(e.adm.replace(/\\/g,""))}catch(e){return void(0,d.logWarn)("PubMatic: Error: Cannot parse native reponse for ad response: "+r.adm)}r.native={ortb:v({},t.native)},r.mediaType=u.B5,r.width||(r.width=0),r.height||(r.height=0)}}(a,s)}})),a.ext&&a.ext.deal_channel&&(s.dealChannel=R[a.ext.deal_channel]||null),function(e,r,t){e.meta={},r.ext&&r.ext.dspid&&(e.meta.networkId=r.ext.dspid,e.meta.demandSource=r.ext.dspid),r.ext&&r.ext.dchain&&(e.meta.dchain=r.ext.dchain);var a=t||r.ext&&r.ext.advid;a&&(e.meta.advertiserId=a,e.meta.agencyId=a,e.meta.buyerId=a),r.adomain&&G(r.adomain)&&(e.meta.advertiserDomains=r.adomain,e.meta.clickUrl=r.adomain[0],e.meta.brandId=r.adomain[0]),r.cat&&G(r.cat)&&(e.meta.secondaryCatIds=r.cat,e.meta.primaryCatId=r.cat[0]),r.ext&&r.ext.dsa&&Object.keys(r.ext.dsa).length&&(e.meta.dsa=r.ext.dsa)}(s,a,e.seat),e.ext&&e.ext.buyid&&(s.adserverTargeting={hb_buyid_pubmatic:e.ext.buyid}),a.ext&&a.ext.marketplace&&(s.bidderCode=a.ext.marketplace),t.push(s)}))})));var s=(0,p.Z)(e.body,"ext.fledge_auction_configs");if(s)return s=Object.entries(s).map((function(e){var r=(0,a.Z)(e,2),t=r[0],i=r[1];return{bidId:t,config:Object.assign({auctionSignals:{}},i)}})),{bids:t,fledgeAuctionConfigs:s}}catch(e){(0,d.logError)(e)}return t},getUserSyncs:function(e,r,t,a,i){var n,o,s=""+M;(t&&(s+="&gdpr="+(t.gdprApplies?1:0),s+="&gdpr_consent="+encodeURIComponent(t.consentString||"")),a&&(s+="&us_privacy="+encodeURIComponent(a)),null!=i&&i.gppString&&null!=i&&null!==(n=i.applicableSections)&&void 0!==n&&n.length)&&(s+="&gpp="+encodeURIComponent(i.gppString),s+="&gpp_sid="+encodeURIComponent(null==i||null===(o=i.applicableSections)||void 0===o?void 0:o.join(",")));return!0===m.vc.getConfig("coppa")&&(s+="&coppa=1"),e.iframeEnabled?[{type:"iframe",url:"https://ads.pubmatic.com/AdServer/js/user_sync.html?kdntuid=1&p="+s}]:[{type:"image",url:"https://image8.pubmatic.com/AdServer/ImgSync?p="+s}]}};(0,l.dX)(Y),(0,s.z)("pubmaticBidAdapter")}},function(e){e.O(0,[25823,79270],(function(){return r=15817,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[82599],{70789:function(e,t,r){var n=r(71002),i=r(4942),o=r(78640),a=r(20265),s=r(64358),p=r(24679),c=r(14699),d=r(3193),l=r(15164),u=r(29865);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 f(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){(0,i.Z)(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}var g="triplelift",b=null,y=null,v=(0,l.df)({bidderCode:g}),h={gvlid:28,code:g,supportedMediaTypes:[p.Mk,p.pX],isBidRequestValid:function(e){return void 0!==e.params.inventoryCode},buildRequests:function(e,t){var r="https://tlx.3lift.com/header/auction?",n=function(e,t){var r,n,i={},o=e[0].schain,p=function(e){var t={},r={},n={},i=e.ortb2||{},o=function(){var e=v.getDataFromLocalStorage("opecloud_ctx");if(!e)return null;try{return JSON.parse(e)}catch(e){return(0,s.logError)("Triplelift: error parsing JSON: ",e),null}}(),a=Object.assign({},i.site),p=Object.assign({},i.user);if(o){p.data=p.data||[];try{p.data.push({name:"www.1plusx.com",ext:o})}catch(e){(0,s.logError)("Triplelift: error adding 1plusX segments: ",e)}}j(r,a),j(n,p),(0,s.isEmpty)(r)||(t.context=r);(0,s.isEmpty)(n)||(t.user=n);return t}(t);i.imp=e.map((function(e,t){var r={id:t,tagid:e.params.inventoryCode,floor:S(e)};return O(e)&&(r.video=function(e){var t=f(f({},e.params.video),e.mediaTypes.video);try{t.w||(t.w=t.playerSize[0][0]),t.h||(t.h=t.playerSize[0][1])}catch(e){(0,s.logWarn)("Video size not defined",e)}"instream"===t.context&&(t.placement||(t.placement=1));"outstream"===t.context&&(t.placement?-1===[3,4,5].indexOf(t.placement)&&((0,s.logMessage)("video.placement value of ".concat(t.placement," is invalid for outstream context. Setting placement to 3")),t.placement=3):t.placement=3);t.playbackmethod&&Number.isInteger(t.playbackmethod)&&(t.playbackmethod=Array.from(String(t.playbackmethod),Number));return delete t.playerSize,t}(e)),e.mediaTypes.banner&&!x(e)&&(r.banner={format:_(e.sizes)}),(0,s.isEmpty)(e.ortb2Imp)||(r.fpd=function(e){var t={},r={};j(r,e.ext),(0,s.isEmpty)(r)||(t.context=r);return t}(e.ortb2Imp),(0,s.isEmpty)(e.ortb2Imp.ext)||(r.ext=f({},e.ortb2Imp.ext))),r}));var c=[];e[0].userIdAsEids&&(c=a.Z(e[0],"userIdAsEids"),i.user={ext:{eids:c}});var d=function(e,t){var r={};(0,s.isEmpty)(e)||(r.schain=f({},e));(0,s.isEmpty)(t)||(r.fpd=f({},t));return r}(o,p);(0,s.isEmpty)(d)||(i.ext=d);null!=t&&null!==(r=t.ortb2)&&void 0!==r&&null!==(n=r.regs)&&void 0!==n&&n.gpp&&(i.regs=Object.assign({},t.ortb2.regs));null!=t&&t.ortb2&&(i.ext.ortb2=Object.assign({},t.ortb2));return i}(e,t);if(r=(0,u.t)(r,"lib","prebid"),r=(0,u.t)(r,"v","8.51.0"),t&&t.refererInfo){var i=t.refererInfo.page;r=(0,u.t)(r,"referrer",i)}return t&&t.timeout&&(r=(0,u.t)(r,"tmax",t.timeout)),t&&t.gdprConsent&&(b=void 0===t.gdprConsent.gdprApplies||t.gdprConsent.gdprApplies,r=(0,u.t)(r,"gdpr",b.toString()),void 0!==t.gdprConsent.consentString&&(y=t.gdprConsent.consentString,r=(0,u.t)(r,"cmp_cs",y))),t&&t.uspConsent&&(r=(0,u.t)(r,"us_privacy",t.uspConsent)),t&&t.fledgeEnabled&&(r=(0,u.t)(r,"fledge",t.fledgeEnabled)),!0===d.vc.getConfig("coppa")&&(r=(0,u.t)(r,"coppa",!0)),r.lastIndexOf("&")===r.length-1&&(r=r.substring(0,r.length-1)),(0,s.logMessage)("tlCall request built: "+r),{method:"POST",url:r,data:n,bidderRequest:t}},interpretResponse:function(e,t){var r=t.bidderRequest,n=e.body.bids||[],i=e.body.paapi||[];if(n=n.map((function(e){return function(e,t){var r={},n=t.width||1,i=t.height||1,o=t.deal_id||"",a=t.crid||"",s=e.bids[t.imp_id];0!=t.cpm&&t.ad&&(r={requestId:s.bidId,cpm:t.cpm,width:n,height:i,netRevenue:!0,ad:t.ad,creativeId:a,dealId:o,currency:"USD",ttl:300,tl_source:t.tl_source,meta:{}},O(s)&&"video"===t.media_type&&(r.vastXml=t.ad,r.mediaType="video",r.ttl=3600),t.advertiser_name&&(r.meta.advertiserName=t.advertiser_name),t.adomain&&t.adomain.length&&(r.meta.advertiserDomains=t.adomain),t.tl_source&&"hdx"==t.tl_source&&(O(s)&&"video"===t.media_type?r.meta.mediaType="video":r.meta.mediaType="banner"),t.tl_source&&"tlx"==t.tl_source&&(r.meta.mediaType="native"),a&&(r.meta.networkId=a.slice(0,a.indexOf("_"))));return r}(r,e)})),i.length>0){var o=i.map((function(e){return{bidId:r.bids[e.imp_id].bidId,config:e.auctionConfig}}));return(0,s.logMessage)("Response with FLEDGE:",{bids:n,fledgeAuctionConfigs:o}),{bids:n,fledgeAuctionConfigs:o}}return n},getUserSyncs:function(e,t,r,n,i){var o=function(e){if(!e)return;if(e.iframeEnabled)return"iframe";if(e.pixelEnabled)return"image"}(e);if(o){var a="https://eb2.3lift.com/sync?";return"image"===o&&(a=(0,u.t)(a,"px",1),a=(0,u.t)(a,"src","prebid")),(null!==y||b)&&(a=(0,u.t)(a,"gdpr",b),a=(0,u.t)(a,"cmp_cs",y)),n&&(a=(0,u.t)(a,"us_privacy",n)),i&&(i.gppString&&(a=(0,u.t)(a,"gpp",i.gppString)),i.applicableSections&&0!==i.applicableSections.length&&(a=(0,u.t)(a,"gpp_sid",i.applicableSections.filter((function(e){return Number.isInteger(e)})).join(",")))),[{type:o,url:a}]}}};function O(e){return E(e)&&(x(e)||function(e){return E(e)&&"outstream"===e.mediaTypes.video.context.toLowerCase()}(e))}function x(e){return E(e)&&"instream"===e.mediaTypes.video.context.toLowerCase()}function E(e){return e.mediaTypes.video&&e.mediaTypes.video.context}function S(e){var t=null;if("function"==typeof e.getFloor)try{var r=e.getFloor({currency:"USD",mediaType:O(e)?"video":"banner",size:"*"});"object"!==(0,n.Z)(r)||"USD"!==r.currency||isNaN(parseFloat(r.floor))||(t=parseFloat(r.floor))}catch(e){(0,s.logError)("Triplelift: getFloor threw an error: ",e)}return null!==t?t:e.params.floor}function j(e,t){(0,s.isEmpty)(t)||Object.keys(t).forEach((function(r){null!=t[r]&&(e[r]=t[r])}))}function _(e){return e.filter(w).map((function(e){return{w:e[0],h:e[1]}}))}function w(e){return 2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}(0,c.dX)(h),(0,o.z)("tripleliftBidAdapter")}},function(e){e.O(0,[54213,25823,79270],(function(){return t=70789,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[68514],{53934:function(t,e,r){var n=r(4942),a=r(78640),i=r(34614),o=r(64358),s=r(20265),d=r(3193),c=r(14699),u=r(55730),p=r(1582),f=r(15164),l=r(25102),m=r(24679),h=r(35706),g=r(90154),v=r(70059),y=r(11974),b=r(10075);function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var w,I,S,D="adagio",O="Adagio:",R=[m.Mk,m.B5,m.pX],E="adagioScript",x=(0,f.df)({bidderCode:D}),C="adagio",k="https://".concat(C,".bbvms.com/r/$RENDERER.js"),W={mimes:function(t){return Array.isArray(t)&&t.length>0&&t.every((function(t){return"string"==typeof t}))},minduration:function(t){return(0,o.isInteger)(t)},maxduration:function(t){return(0,o.isInteger)(t)},protocols:function(t){return(0,o.isArrayOfNums)(t)},w:function(t){return(0,o.isInteger)(t)},h:function(t){return(0,o.isInteger)(t)},startdelay:function(t){return(0,o.isInteger)(t)},placement:function(t){return(0,o.logWarn)(O,"The OpenRTB video param `placement` is deprecated and should not be used anymore."),(0,o.isInteger)(t)},plcmt:function(t){return(0,o.isInteger)(t)},linearity:function(t){return(0,o.isInteger)(t)},skip:function(t){return[1,0].includes(t)},skipmin:function(t){return(0,o.isInteger)(t)},skipafter:function(t){return(0,o.isInteger)(t)},sequence:function(t){return(0,o.isInteger)(t)},battr:function(t){return(0,o.isArrayOfNums)(t)},maxextended:function(t){return(0,o.isInteger)(t)},minbitrate:function(t){return(0,o.isInteger)(t)},maxbitrate:function(t){return(0,o.isInteger)(t)},boxingallowed:function(t){return(0,o.isInteger)(t)},playbackmethod:function(t){return(0,o.isArrayOfNums)(t)},playbackend:function(t){return(0,o.isInteger)(t)},delivery:function(t){return(0,o.isArrayOfNums)(t)},pos:function(t){return(0,o.isInteger)(t)},api:function(t){return(0,o.isArrayOfNums)(t)}},U=(S={},{clearFeatures:function(){I=void 0},clearExchangeData:function(){S={}},getOrSetGlobalFeatures:function(){return I||(I={type:"bidAdapter",page_dimensions:P().toString(),viewport_dimensions:F().toString(),user_timestamp:(Math.floor((new Date).getTime()/1e3)-60*(new Date).getTimezoneOffset()).toString(),dom_loading:z().toString()}),A({},I)},prepareExchangeData:function(t){var e=JSON.parse(t,(function(t,e){if("_"!==t.charAt(0)||""===t)return e})),r=(0,s.Z)(e,"session.rnd"),n=!1;N.isNewSession(e)&&(n=!0,r=Math.random());var a={session:{new:n,rnd:r}};(0,o.mergeDeep)(S,e,a),N.enqueue({action:"session",ts:Date.now(),data:S})},getExchangeData:function(){return S}});function j(){return w||(0,o.getWindowSelf)()}var N={enqueue:function(t){var e=N.getCurrentWindow();e.ADAGIO=e.ADAGIO||{},e.ADAGIO.queue=e.ADAGIO.queue||[],e.ADAGIO.queue.push(t)},getPageviewId:function(){var t=N.getCurrentWindow();return t.ADAGIO=t.ADAGIO||{},t.ADAGIO.pageviewId=t.ADAGIO.pageviewId||(0,o.generateUUID)(),t.ADAGIO.pageviewId},getDevice:function(){var t=navigator.language?"language":"userLanguage";return{userAgent:navigator.userAgent,language:navigator[t],dnt:(0,o.getDNT)()?1:0,geo:{},js:1}},getSite:function(t){var e=t.refererInfo;return{domain:(0,l.hh)(e.topmostLocation)||"",page:e.topmostLocation||"",referrer:e.ref||(0,o.getWindowSelf)().document.referrer||"",top:e.reachedTop}},getElementFromTopWindow:function t(e,r){try{if((0,o.getWindowTop)()===r)return e.getAttribute("id")||e.setAttribute("id","adg-".concat((0,o.getUniqueIdentifierStr)())),e;var n=r.frameElement,a=n.getBoundingClientRect(),i=e.getBoundingClientRect();return a.width===i.width&&a.height===i.height&&t(n,r.parent)}catch(t){return(0,o.logWarn)("".concat(O),t),!1}},getRefererInfo:l.nH,adagioScriptFromLocalStorageCb:function(t){try{if(!t)return void(0,o.logWarn)("".concat(O," script not found."));var e=/^(\/\/ hash: (.+)\n)(.+\n)$/;if(e.test(t)){var r=t.match(e),n=r[2],a=r[3];(0,p.T)(a,n,"AL16XT44Sfp+8SHVF1UdC7hydPSMVLMhsYknKDdwqq+0ToDSJrP0+Qh0ki9JJI2uYm/6VEYo8TJED9WfMkiJ4vf02CW3RvSWwc35bif2SK1L8Nn/GfFYr/2/GG/Rm0vUsv+vBHky6nuuYls20Og0HDhMgaOlXoQ/cxMuiy5QSktp",65537)?((0,o.logInfo)("".concat(O," start script.")),Function(t)()):((0,o.logWarn)("".concat(O," invalid script found.")),x.removeDataFromLocalStorage(E))}else(0,o.logWarn)("".concat(O," no hash found.")),x.removeDataFromLocalStorage(E)}catch(t){(0,o.logError)(O,t)}},getCurrentWindow:j,canAccessWindowTop:o.canAccessWindowTop,isRendererPreferredFromPublisher:function(t){var e=(0,s.Z)(t,"renderer"),r=!!(e&&e.url&&e.render),n=(0,s.Z)(t,"mediaTypes.video.renderer"),a=!!(n&&n.url&&n.render);return!!(r&&!0!==e.backupOnly||a&&!0!==n.backupOnly)},isNewSession:function(t){var e=Date.now(),r=(0,s.Z)(t,"session",{}),n=r.lastActivityTime,a=r.vwSmplg;return!(0,o.isNumber)(n)||!(0,o.isNumber)(a)||e-n>18e5},hasRtd:function(){var t=N.getCurrentWindow();return!(!t.ADAGIO||!t.ADAGIO.hasRtd)}};function B(t){var e=(0,s.Z)(t,"mediaTypes.video",{}),r=(0,s.Z)(t,"params.video",{}),n={};if(Array.isArray(e.playerSize)){var a=Array.isArray(e.playerSize[0])?e.playerSize[0]:e.playerSize;n.w=a[0],n.h=a[1]}var i=A(A(A({},n),e),r);i.context&&i.context===g.gZ&&(t.mediaTypes.video.playerName=function(t){var e=N.isRendererPreferredFromPublisher(t)?"other":"adagio";return"other"===e&&(0,o.logWarn)("".concat(O," renderer.backupOnly has not been set. Adagio recommends to use its own player to get expected behavior.")),e}(t)),Object.keys(W).forEach((function(e){i.hasOwnProperty(e)&&(W[e](i[e])?t.mediaTypes.video[e]=i[e]:(delete t.mediaTypes.video[e],(0,o.logWarn)("".concat(O," The OpenRTB video param ").concat(e," has been skipped due to misformating. Please refer to OpenRTB 2.5 spec."))))}))}function Z(t){if(t.admNative&&Array.isArray(t.admNative.assets)){var e={};t.admNative.assets.forEach((function(t){if(t.title)e.title=t.title.text;else if(t.data)r=t.data,(n={1:"sponsoredBy",2:"body",3:"rating",4:"likes",5:"downloads",6:"price",7:"salePrice",8:"phone",9:"address",10:"body2",11:"displayUrl",12:"cta"}).hasOwnProperty(r.type)&&"string"==typeof r.value&&(e[n[r.type]]=r.value);else if(t.img)if(1===t.img.type)e.icon={url:t.img.url,width:t.img.w,height:t.img.h};else e.image={url:t.img.url,width:t.img.w,height:t.img.h};var r,n})),t.admNative.link&&(t.admNative.link.url&&(e.clickUrl=t.admNative.link.url),Array.isArray(t.admNative.link.clicktrackers)&&(e.clickTrackers=t.admNative.link.clicktrackers)),Array.isArray(t.admNative.eventtrackers)?(e.impressionTrackers=[],t.admNative.eventtrackers.forEach((function(t){if(1===t.event)switch(t.method){case 1:e.impressionTrackers.push(t.url);break;case 2:var r='<script async src="'.concat(t.url,'"><\/script>');e.javascriptTrackers?e.javascriptTrackers+="\n".concat(r):e.javascriptTrackers=r}}))):(e.impressionTrackers=Array.isArray(t.admNative.imptrackers)?t.admNative.imptrackers:[],t.admNative.jstracker&&(e.javascriptTrackers=t.admNative.jstracker)),t.admNative.privacy&&(e.privacyLink=t.admNative.privacy),t.admNative.ext&&(e.ext={},t.admNative.ext.bvw&&(e.ext.adagio_bvw=t.admNative.ext.bvw)),t.native=e}else(0,o.logError)("".concat(O," Invalid native response"))}function M(t,e){if(t.params=t.params||{},!t.params[e]){var r=d.vc.getConfig("adagio")||{},n=t.ortb2,a=r[e]||(0,s.Z)(n,"site.ext.data.".concat(e),null);if(a){if(Array.isArray(a))return void(a.length&&(t.params[e]=a[0].toString()));t.params[e]=a.toString()}}}function G(t){var e=d.vc.getConfig("adagio")||{};t.params=t.params||{},e.siteId&&(t.params.organizationId=e.siteId.split(":")[0],t.params.site=e.siteId.split(":")[1]),t.params.placement=(0,s.Z)(t,"ortb2Imp.ext.data.placement",t.params.placement),t.params.placement||!0!==e.useAdUnitCodeAsPlacement&&!0!==t.params.useAdUnitCodeAsPlacement||(t.params.placement=t.adUnitCode),t.params.adUnitElementId=(0,s.Z)(t,"ortb2Imp.ext.data.divId",t.params.adUnitElementId),t.params.adUnitElementId||(!0===e.useAdUnitCodeAsAdUnitElementId||!0===t.params.useAdUnitCodeAsAdUnitElementId?t.params.adUnitElementId=t.adUnitCode:t.params.adUnitElementId=function(t){var e=(0,b.ky)(t);if(e.divId)return e.divId}(t.adUnitCode)),M(t,"pagetype"),M(t,"category")}function P(){if((0,o.isSafeFrameWindow)()||!(0,o.canAccessWindowTop)())return"";var t=(0,o.getWindowTop)(),e=t.document.querySelector("body");if(!e)return"";var r=t.document.documentElement,n=Math.max(e.scrollWidth,e.offsetWidth,r.clientWidth,r.scrollWidth,r.offsetWidth),a=Math.max(e.scrollHeight,e.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);return"".concat(n,"x").concat(a)}function F(){if(!(0,o.isSafeFrameWindow)()&&!(0,o.canAccessWindowTop)())return"";var t={w:0,h:0};if((0,o.isSafeFrameWindow)()){var e=(0,o.getWindowSelf)();if("function"!=typeof e.$sf.ext.geom)return(0,o.logWarn)(O,"Unable to compute from safeframe api."),"";var r=e.$sf.ext.geom();if(!r||!r.win)return(0,o.logWarn)(O,"Unable to compute from safeframe api. Missing `geom().win` property"),"";t.w=Math.round(r.w),t.h=Math.round(r.h)}else{var n=(0,o.getWindowTop)();t.w=n.innerWidth,t.h=n.innerHeight}return"".concat(t.w,"x").concat(t.h)}function z(){var t,e=-1;if((t=(0,o.canAccessWindowTop)()?(0,o.getWindowTop)().performance:(0,o.getWindowSelf)().performance)&&t.timing&&t.timing.navigationStart>0){var r=t.timing.domLoading-t.timing.navigationStart;r>0&&(e=r)}return e}var q,L={bootstrapPlayer:function(t){var e=t.outstreamRendererCode,r={code:t.adUnitCode};if(t.vastXml?r.vastXml=t.vastXml:t.vastUrl&&(r.vastUrl=t.vastUrl),t.vastXml||t.vastUrl)if(window.bluebillywig&&window.bluebillywig.renderers&&window.bluebillywig.renderers.length){var n=this.getRendererId(C,e),a={};t.skipOffset&&(a.skipOffset=t.skipOffset.toString());var i=window.bluebillywig.renderers.find((function(t){return t._id===n}));if(i){var s=document.getElementById(t.adUnitCode);i.bootstrap(r,s,a)}else(0,o.logError)("".concat(O," couldn't find a renderer with ID ").concat(n))}else(0,o.logError)("".concat(O," no BlueBillywig renderers found!"));else(0,o.logError)("".concat(O," no vastXml or vastUrl on bid"))},newRenderer:function(t,e){var r=k.replace("$RENDERER",e),n=h.Th.install({url:r,loaded:!1,adUnitCode:t});try{n.setRender(this.outstreamRender)}catch(t){(0,o.logError)("".concat(O," error trying to setRender"),t)}return n},outstreamRender:function(t){t.renderer.push((function(){L.bootstrapPlayer(t)}))},getRendererId:function(t,e){return"".concat(t,"-").concat(e)}},_=function(t){var e=A({},(0,s.Z)(t,"ortb2.site.ext.data.adg_rtd.features",U.getOrSetGlobalFeatures()))||{};return e.print_number=(0,s.Z)(t,"bidderRequestsCount",1).toString(),"bidAdapter"===e.type?e.adunit_position=function(t){if(!t)return"";if(!(0,o.isSafeFrameWindow)()&&!(0,o.canAccessWindowTop)())return"";var e={x:0,y:0};if((0,o.isSafeFrameWindow)()){var r=(0,o.getWindowSelf)();if("function"!=typeof r.$sf.ext.geom)return(0,o.logWarn)(O,"Unable to compute from safeframe api."),"";var n=r.$sf.ext.geom();if(!n||!n.self)return(0,o.logWarn)(O,"Unable to compute from safeframe api. Missing `geom().self` property"),"";e.x=Math.round(n.t),e.y=Math.round(n.l)}else{if(!(0,o.canAccessWindowTop)())return"";try{var a,i=(0,o.getWindowTop)(),s=i.document;if(!0===(0,o.inIframe)()){var d=(0,o.getWindowSelf)(),c=d.document.getElementById(t);a=N.getElementFromTopWindow(c,d)}else a=i.document.getElementById(t);if(!a)return"";var u=a.getBoundingClientRect(),p=s.documentElement,f=s.body,l=s.clientTop||f.clientTop||0,m=s.clientLeft||f.clientLeft||0,h=i.pageYOffset||p.scrollTop||f.scrollTop,g=i.pageXOffset||p.scrollLeft||f.scrollLeft;"none"===i.getComputedStyle(a,null).display&&(0,o.logWarn)(O,"The element is hidden. The slot position cannot be computed."),e.x=Math.round(u.left+g-m),e.y=Math.round(u.top+h-l)}catch(t){return(0,o.logError)(O,t),""}}return"".concat(e.x,"x").concat(e.y)}(t.params.adUnitElementId):e.adunit_position=(0,s.Z)(t,"ortb2Imp.ext.data.adg_rtd.adunit_position"),Object.keys(e).forEach((function(t){""===e[t]&&delete e[t]})),e},H={code:D,gvlid:617,supportedMediaTypes:R,isBidRequestValid:function(t){return t.params=t.params||{},G(t),!!(t.params.organizationId&&t.params.site&&t.params.placement)||((0,o.logWarn)("".concat(O," at least one required param is missing.")),!1)},buildRequests:function(t,e){t=(0,v.lY)(t);var r,n="https:"===location.protocol?1:0,i=N.getDevice(),c=N.getSite(e),u=N.getPageviewId(),p=N.hasRtd(),f=function(t){if(!(0,s.Z)(t,"gdprConsent"))return!1;var e=t.gdprConsent,r=e.apiVersion,n=e.gdprApplies,a=e.consentString,i=e.allowAuctionWithoutConsent;return(0,o.cleanObj)({apiVersion:r,consentString:a,consentRequired:n?1:0,allowAuctionWithoutConsent:i?1:0})}(e)||{},l=function(t){return!!(0,s.Z)(t,"uspConsent")&&{uspConsent:t.uspConsent}}(e)||{},h={required:!0===d.vc.getConfig("coppa")?1:0},g=function(t){var e=(0,s.Z)(t,"gppConsent.gppString"),r=(0,s.Z)(t,"gppConsent.applicableSections");return e&&r||(e=(0,s.Z)(t,"ortb2.regs.gpp",""),r=(0,s.Z)(t,"ortb2.regs.gpp_sid",[])),{gpp:e,gppSid:r}}(e),b=(r=t[0],(0,s.Z)(r,"schain")),T=function(t){if((0,s.Z)(t,"userIdAsEids"))return t.userIdAsEids}(t[0])||[],w=(0,s.Z)(d.vc.getConfig("userSync"),"syncEnabled")&&y.k_.canBidderRegisterSync("iframe","adagio"),I=(0,s.Z)(e,"ortb2.regs.ext.dsa"),S=(0,s.Z)(e,"ortb2.site.ext.data.adg_rtd.session"),D=S?{session:S}:U.getExchangeData(),E=(0,o.generateUUID)(),C=t.map((function(t){var e=(0,o.deepClone)(t);if(e.auctionId=E,e.params.splitKeyword&&((0,o.isStr)(e.params.splitKeyword)||(0,o.isNumber)(e.params.splitKeyword)?e.params.splitKeyword=e.params.splitKeyword.toString():(delete e.params.splitKeyword,(0,o.logWarn)(O,"The splitKeyword param have been removed because the type is invalid, accepted type: number or string."))),e.params.organizationId=e.params.organizationId.toString(),e.params.dataLayer)if((0,o.isStr)(e.params.dataLayer)||(0,o.isNumber)(e.params.dataLayer)||(0,o.isArray)(e.params.dataLayer)||(0,o.isFn)(e.params.dataLayer))(0,o.logWarn)(O,"The dataLayer param is invalid, only object is accepted as a type."),delete e.params.dataLayer;else{var r=!1;e.params.dl=e.params.dataLayer,delete e.params.dataLayer,Object.keys(e.params.dl).forEach((function(t){e.params.dl[t]&&((0,o.isStr)(e.params.dl[t])||(0,o.isNumber)(e.params.dl[t])?e.params.dl[t]=e.params.dl[t].toString():(r=!0,delete e.params.dl[t]))})),r&&(0,o.logWarn)(O,"Some parameters of the dataLayer property have been removed because the type is invalid, accepted type: number or string.")}var n=_(e);e.features=n,p||N.enqueue({action:"features",ts:Date.now(),data:{features:n,params:A({},e.params),adUnitCode:e.adUnitCode}});var i=function(t){if(!(0,o.isFn)(t.getFloor))return!1;var e=[],r=function(r,n){var a=t.getFloor({currency:"USD",mediaType:r,size:n});e.push((0,o.cleanObj)({mt:r,s:(0,o.isArray)(n)?"".concat(n[0],"x").concat(n[1]):void 0,f:isNaN(a.floor)||"USD"!==a.currency?void 0:a.floor}))};return Object.keys(t.mediaTypes).forEach((function(e){if(-1!==R.indexOf(e)){var n=e===m.pX?"playerSize":"sizes";t.mediaTypes[e][n]&&t.mediaTypes[e][n].length?(0,o.isArray)(t.mediaTypes[e][n][0])?t.mediaTypes[e][n].forEach((function(t){r(e,[t[0],t[1]])})):r(e,[t.mediaTypes[e][n][0],t.mediaTypes[e][n][1]]):r(e,"*")}})),e}(t);if((0,o.isArray)(i)&&i.length){if(e.floors=i,(0,s.Z)(e,"mediaTypes.banner")){var d=e.mediaTypes.banner,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r={size:t,floor:null},n=e.floors.filter((function(t){return t.mt===m.Mk})),a=n.find((function(e){return e.s===t.join("x")}));return r.floor=n?a?a.f:n[0].f:null,r};e.mediaTypes.banner.bannerSizes=(0,o.isArray)(d.sizes[0])?d.sizes.map((function(t){return c(t)})):c(d.sizes)}if((0,s.Z)(e,"mediaTypes.video")){var u=e.mediaTypes.video,f=e.floors.filter((function(t){return t.mt===m.pX})),l=u.playerSize&&(0,o.isArray)(u.playerSize[0])?u.playerSize[0]:u.playerSize,h=l?f.find((function(t){return t.s===l.join("x")})):void 0;e.mediaTypes.video.floor=f?h?h.f:f[0].f:null}if((0,s.Z)(e,"mediaTypes.native")){var g=e.floors.filter((function(t){return t.mt===m.B5}));g.length&&(e.mediaTypes.native.floor=g[0].f)}}(0,s.Z)(e,"mediaTypes.video")&&B(e);var v=(0,s.Z)(e,"ortb2Imp.ext.gpid")||(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot");return v&&(e.gpid=v),p||function(t){var e,r=j();r.ADAGIO=r.ADAGIO||{},r.ADAGIO.pbjsAdUnits=r.ADAGIO.pbjsAdUnits.filter((function(e){return e.code!==t.adUnitCode})),t.features&&t.features.print_number?e=t.features.print_number:t.params.features&&t.params.features.print_number&&(e=t.params.features.print_number),r.ADAGIO.pbjsAdUnits.push({code:t.adUnitCode,mediaTypes:t.mediaTypes||{},sizes:t.mediaTypes&&t.mediaTypes.banner&&Array.isArray(t.mediaTypes.banner.sizes)?t.mediaTypes.banner.sizes:t.sizes,bids:[{bidder:t.bidder,params:t.params}],auctionId:t.auctionId,pageviewId:N.getPageviewId(),printNumber:e,localPbjs:"pbjs",localPbjsRef:(0,a.R)()}),r.ADAGIO.adUnits[t.adUnitCode]={auctionId:t.auctionId,pageviewId:N.getPageviewId(),printNumber:e}}(e),delete e.params.siteId,{adUnitCode:e.adUnitCode,auctionId:e.auctionId,bidder:e.bidder,bidId:e.bidId,params:e.params,features:e.features,gpid:e.gpid,mediaTypes:e.mediaTypes,nativeParams:e.nativeParams,score:e.score,transactionId:e.transactionId}})),k=C.reduce((function(t,e){var r=e.params.organizationId;return t[r]=t[r]||[],t[r].push(e),t}),{});return t.forEach((function(t){t.params.adagioAuctionId=E,t.params.pageviewId=u})),Object.keys(k).map((function(t){return{method:"POST",url:"https://mp.4dex.io/prebid",data:{organizationId:t,hasRtd:p?1:0,secure:n,device:i,site:c,pageviewId:u,adUnits:k[t],data:D,regs:{gdpr:f,coppa:h,ccpa:l,gpp:g.gpp,gppSid:g.gppSid,dsa:I},schain:b,user:{eids:T},prebidVersion:"8.51.0",featuresVersion:"1",usIfr:w,adgjs:x.localStorageIsEnabled()},options:{contentType:"text/plain"}}}))},interpretResponse:function(t,e){var r=[];try{var n=t.body;n&&(n.data&&N.enqueue({action:"ssp-data",ts:Date.now(),data:n.data}),n.bids&&n.bids.forEach((function(t){var n=(0,i.sE)(e.data.adUnits,(function(e){return e.bidId===t.requestId}));if(n){if(t.meta=(0,s.Z)(t,"meta",{}),t.meta.mediaType=t.mediaType,t.meta.advertiserDomains=Array.isArray(t.aDomain)&&t.aDomain.length?t.aDomain:[],t.mediaType===m.pX){var a=(0,s.Z)(n,"mediaTypes.video.context");if(!t.vastUrl&&t.vastXml&&(t.vastUrl="data:text/xml;charset=utf-8;base64,"+window.btoa(t.vastXml.replace(/\\"/g,'"'))),a===g.gZ){if(t.outstreamRendererCode=(0,s.Z)(n,"params.rendererCode","renderer"),(0,s.Z)(n,"mediaTypes.video.skip")){var o=(0,s.Z)(n,"mediaTypes.video.skipafter",5);t.skipOffset=o}t.renderer=L.newRenderer(t.adUnitCode,t.outstreamRendererCode)}}t.mediaType===m.B5&&Z(t),t.site=n.params.site,t.placement=n.params.placement,t.pagetype=n.params.pagetype,t.category=n.params.category}r.push(t)})))}catch(t){(0,o.logError)(t)}return r},getUserSyncs:function(t,e){return!(!e.length||""===e[0].body||!e[0].body.userSyncs)&&e[0].body.userSyncs.map((function(t){return{type:"p"===t.t?"image":"iframe",url:t.u}}))}};(q=w=(0,o.canAccessWindowTop)()?(0,o.getWindowTop)():(0,o.getWindowSelf)()).ADAGIO=q.ADAGIO||{},q.ADAGIO.adUnits=q.ADAGIO.adUnits||{},q.ADAGIO.pbjsAdUnits=q.ADAGIO.pbjsAdUnits||[],q.ADAGIO.queue=q.ADAGIO.queue||[],q.ADAGIO.versions=q.ADAGIO.versions||{},q.ADAGIO.versions.pbjs="8.51.0",q.ADAGIO.isSafeFrameWindow=(0,o.isSafeFrameWindow)(),x.getDataFromLocalStorage("adagio",(function(t){try{!0!==q.ADAGIO.hasRtd&&((0,o.logInfo)("".concat(O," RTD module not found. Loading external script from adagioBidAdapter is deprecated and will be removed in Prebid.js 9.")),U.prepareExchangeData(t),x.getDataFromLocalStorage(E,(function(t){N.adagioScriptFromLocalStorageCb(t)})),x.localStorageIsEnabled((function(t){if(t)(0,u.B)("https://script.4dex.io/localstore.js",D);else try{window.localStorage.removeItem(E),window.localStorage.removeItem("adagio")}catch(t){(0,o.logInfo)("".concat(O," unable to clear Adagio scripts from localstorage."))}})))}catch(t){(0,o.logError)(O,t)}})),(0,c.dX)(H),(0,a.z)("adagioBidAdapter")},44611:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){null!==t&&this.fromHexString(t)}return t.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var t,e=!1,r="",n=this.t,a=this.DB-n*this.DB%4;if(n-- >0)for(a<this.DB&&(t=this[n]>>a)>0&&(e=!0,r=u(t));n>=0;)a<4?(t=(this[n]&(1<<a)-1)<<4-a,t|=this[--n]>>(a+=this.DB-4)):(t=this[n]>>(a-=4)&15,a<=0&&(a+=this.DB,--n)),t>0&&(e=!0),e&&(r+=u(t));return e?r:"0"},t.prototype.fromHexString=function(e){if(null!==e){this.t=0,this.s=0;for(var r=e.length,n=!1,a=0;--r>=0;){var i=c(e,r);i<0?"-"==e.charAt(r)&&(n=!0):(n=!1,0==a?this[this.t++]=i:a+4>this.DB?(this[this.t-1]|=(i&(1<<this.DB-a)-1)<<a,this[this.t++]=i>>this.DB-a):this[this.t-1]|=i<<a,(a+=4)>=this.DB&&(a-=this.DB))}0,this.clamp(),n&&t.ZERO.subTo(this,this)}},t.prototype.negate=function(){var e=a();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.mod=function(e){var r=a();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,n=this.DB-r,a=(1<<n)-1,i=Math.floor(t/this.DB),o=this.s<<r&this.DM,s=this.t-1;s>=0;--s)e[s+i+1]=this[s]>>n|o,o=(this[s]&a)<<r;for(s=i-1;s>=0;--s)e[s]=0;e[i]=o,e.t=this.t+i+1,e.s=this.s,e.clamp()},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},t.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},t.prototype.multiplyTo=function(e,r){var n=this.abs(),a=e.abs(),i=n.t;for(r.t=i+a.t;--i>=0;)r[i]=0;for(i=0;i<a.t;++i)r[i+n.t]=n.am(0,a[i],r,i,0,n.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.divRemTo=function(e,r,n){var o=e.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=r&&r.fromHexString("0"),void(null!=n&&this.copyTo(n));null==n&&(n=a());var d=a(),c=this.s,u=e.s,p=this.DB-i(o[o.t-1]);p>0?(o.lShiftTo(p,d),s.lShiftTo(p,n)):(o.copyTo(d),s.copyTo(n));var f=d.t,l=d[f-1];if(0!=l){var m=l*(1<<this.F1)+(f>1?d[f-2]>>this.F2:0),h=this.FV/m,g=(1<<this.F1)/m,v=1<<this.F2,y=n.t,b=y-f,T=null==r?a():r;for(d.dlShiftTo(b,T),n.compareTo(T)>=0&&(n[n.t++]=1,n.subTo(T,n)),t.ONE.dlShiftTo(f,T),T.subTo(d,d);d.t<f;)d[d.t++]=0;for(;--b>=0;){var A=n[--y]==l?this.DM:Math.floor(n[y]*h+(n[y-1]+v)*g);if((n[y]+=d.am(0,A,n,b,0,f))<A)for(d.dlShiftTo(b,T),n.subTo(T,n);n[y]<--A;)n.subTo(T,n)}null!=r&&(n.drShiftTo(f,r),c!=u&&t.ZERO.subTo(r,r)),n.t=f,n.clamp(),p>0&&n.rShiftTo(p,n),c<0&&t.ZERO.subTo(n,n)}}},t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,a=this.DB-n,i=(1<<n)-1;e[0]=this[r]>>n;for(var o=r+1;o<this.t;++o)e[o-r-1]|=(this[o]&i)<<a,e[o-r]=this[o]>>n;n>0&&(e[this.t-r-1]|=(this.s&i)<<a),e.t=this.t-r,e.clamp()}},t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.subTo=function(t,e){for(var r=0,n=0,a=Math.min(t.t,this.t);r<a;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new p(e):new f(e),this.exp(t,r)},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var n=a(),o=a(),s=r.convert(this),d=i(e)-1;for(s.copyTo(n);--d>=0;)if(r.sqrTo(n,o),(e&1<<d)>0)r.mulTo(o,s,n);else{var c=n;n=o,o=c}return r.revert(n)},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},t.prototype.am1=function(t,e,r,n,a,i){for(;--i>=0;){var o=e*this[t++]+r[n]+a;a=Math.floor(o/67108864),r[n++]=67108863&o}return a},t.prototype.am2=function(t,e,r,n,a,i){for(var o=32767&e,s=e>>15;--i>=0;){var d=32767&this[t],c=this[t++]>>15,u=s*d+c*o;a=((d=o*d+((32767&u)<<15)+r[n]+(1073741823&a))>>>30)+(u>>>15)+s*c+(a>>>30),r[n++]=1073741823&d}return a},t.prototype.am3=function(t,e,r,n,a,i){for(var o=16383&e,s=e>>14;--i>=0;){var d=16383&this[t],c=this[t++]>>14,u=s*d+c*o;a=((d=o*d+((16383&u)<<14)+r[n]+a)>>28)+(u>>14)+s*c,r[n++]=268435455&d}return a},t}();function a(){return new n(null)}function i(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}e.BigInteger=n,e.nbi=a,e.nbits=i;var o,s,d=[];for(o="0".charCodeAt(0),s=0;s<=9;++s)d[o++]=s;for(o="a".charCodeAt(0),s=10;s<36;++s)d[o++]=s;for(o="A".charCodeAt(0),s=10;s<36;++s)d[o++]=s;function c(t,e){var r=d[t.charCodeAt(e)];return null==r?-1:r}e.intAt=c;function u(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}e.int2char=u;e.b64toHex=function(t){var e,r="",n=0,a=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(e));i<0||(0==n?(r+=u(i>>2),a=3&i,n=1):1==n?(r+=u(a<<2|i>>4),a=15&i,n=2):2==n?(r+=u(a),r+=u(i>>2),a=3&i,n=3):(r+=u(a<<2|i>>4),r+=u(15&i),n=0))}return 1==n&&(r+=u(a<<2)),r},e.removeExtraSymbols=function(t){return t.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var p=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),f=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=a();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(n.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=a();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function l(t){var e=a();return e.fromHexString(t.toString()),e}e.nbv=l,n.ZERO=l(0),n.ONE=l(1),"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=n.prototype.am2,r=30):"Netscape"!=navigator.appName?(n.prototype.am=n.prototype.am1,r=26):(n.prototype.am=n.prototype.am3,r=28),n.prototype.DB=r,n.prototype.DM=(1<<r)-1,n.prototype.DV=1<<r;n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-r,n.prototype.F2=2*r-52},94950:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.hash=function(e){e=t.utf8Encode(e||"");for(var r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a=(e+=String.fromCharCode(128)).length/4+2,i=Math.ceil(a/16),o=new Array(i),s=0;s<i;s++){o[s]=new Array(16);for(var d=0;d<16;d++)o[s][d]=e.charCodeAt(64*s+4*d)<<24|e.charCodeAt(64*s+4*d+1)<<16|e.charCodeAt(64*s+4*d+2)<<8|e.charCodeAt(64*s+4*d+3)<<0}var c=8*(e.length-1)/Math.pow(2,32),u=8*(e.length-1)>>>0;o[i-1][14]=Math.floor(c),o[i-1][15]=u;for(s=0;s<i;s++){for(var p=new Array(64),f=0;f<16;f++)p[f]=o[s][f];for(f=16;f<64;f++)p[f]=t.q1(p[f-2])+p[f-7]+t.q0(p[f-15])+p[f-16]>>>0;var l=n[0],m=n[1],h=n[2],g=n[3],v=n[4],y=n[5],b=n[6],T=n[7];for(f=0;f<64;f++){var A=T+t.z1(v)+t.Ch(v,y,b)+r[f]+p[f],w=t.z0(l)+t.Maj(l,m,h);T=b,b=y,y=v,v=g+A>>>0,g=h,h=m,m=l,l=A+w>>>0}n[0]=n[0]+l>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+g>>>0,n[4]=n[4]+v>>>0,n[5]=n[5]+y>>>0,n[6]=n[6]+b>>>0,n[7]=n[7]+T>>>0}var I=new Array(n.length);for(T=0;T<n.length;T++)I[T]=("00000000"+n[T].toString(16)).slice(-8);return I.join("")},t.utf8Encode=function(t){try{return(new TextEncoder).encode(t).reduce((function(t,e){return t+String.fromCharCode(e)}),"")}catch(e){return unescape(encodeURIComponent(t))}},t.ROTR=function(t,e){return e>>>t|e<<32-t},t.z0=function(e){return t.ROTR(2,e)^t.ROTR(13,e)^t.ROTR(22,e)},t.z1=function(e){return t.ROTR(6,e)^t.ROTR(11,e)^t.ROTR(25,e)},t.q0=function(e){return t.ROTR(7,e)^t.ROTR(18,e)^e>>>3},t.q1=function(e){return t.ROTR(17,e)^t.ROTR(19,e)^e>>>10},t.Ch=function(t,e,r){return t&e^~t&r},t.Maj=function(t,e,r){return t&e^t&r^e&r},t}();e.Sha256=r},1582:function(t,e,r){var n=r(44611),a=r(94950);e.T=function(t,e,r,i){var o=new n.BigInteger(n.b64toHex(e)),s=new n.BigInteger(n.b64toHex(r)),d=o.modPowInt(i,s);return n.removeExtraSymbols(d.toHexString())===a.Sha256.hash(t)}}},function(t){t.O(0,[29703,25823,79270],(function(){return e=53934,t(t.s=e);var e}));t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[6406],{60241:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(42982),_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4942),_src_prebidGlobal_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(78640),_src_utils_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(64358),_src_utils_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(20265),_src_adloader_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(55730),_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(14699),_src_config_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3193),_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(24679),criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1582),_src_storageManager_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15164),_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(25102),_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(17673),_src_Renderer_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(35706),_src_video_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(90154),_src_ajax_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(48928);function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){(0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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 o,s=!0,n=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){n=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(n)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(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)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(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}var GVLID=91,ADAPTER_VERSION=36,BIDDER_CODE="criteo",CDB_ENDPOINT="https://bidder.criteo.com/cdb",PROFILE_ID_INLINE=207,PROFILE_ID_PUBLISHERTAG=185,storage=(0,_src_storageManager_js__WEBPACK_IMPORTED_MODULE_2__.df)({bidderCode:BIDDER_CODE}),LOG_PREFIX="Criteo: ",FAST_BID_VERSION_PLACEHOLDER="%FAST_BID_VERSION%",FAST_BID_VERSION_CURRENT=144,FAST_BID_VERSION_LATEST="latest",FAST_BID_VERSION_NONE="none",PUBLISHER_TAG_URL_TEMPLATE="https://static.criteo.net/js/ld/publishertag.prebid"+FAST_BID_VERSION_PLACEHOLDER+".js",PUBLISHER_TAG_OUTSTREAM_SRC="https://static.criteo.net/js/ld/publishertag.renderer.js",FAST_BID_PUBKEY_E=65537,FAST_BID_PUBKEY_N="ztQYwCE5BU7T9CDM5he6rKoabstXRmkzx54zFPZkWbK530dwtLBDeaWBMxHBUT55CYyboR/EZ4efghPi3CoNGfGWezpjko9P6p2EwGArtHEeS4slhu/SpSIFMjG6fdrpRoNuIAMhq1Z+Pr/+HOd1pThFKeGFr2/NhtAg+TXAzaU=",OPTOUT_COOKIE_NAME="cto_optout",BUNDLE_COOKIE_NAME="cto_bundle",GUID_RETENTION_TIME_HOUR=9360,OPTOUT_RETENTION_TIME_HOUR=43200,spec={code:BIDDER_CODE,gvlid:GVLID,supportedMediaTypes:[_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.Mk,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.pX,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.B5],getUserSyncs:function(e,t,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=a.gppString,s=void 0===o?"":o,n=a.applicableSections,_=void 0===n?[]:n;if(e.iframeEnabled&&(0,_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_4__.h)(r)){var d=_src_config_js__WEBPACK_IMPORTED_MODULE_5__.vc.getConfig("criteo.fastBidVersion");if(canFastBid(d))return[];var c=(0,_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_6__.nH)(),p="criteoPrebidAdapter",u=[];if(u.push("origin=".concat(p)),u.push("topUrl=".concat(c.domain)),r&&(r.gdprApplies&&u.push("gdpr=".concat(1==r.gdprApplies?1:0)),r.consentString&&u.push("gdpr_consent=".concat(r.consentString))),i&&u.push("us_privacy=".concat(i)),u.push("gpp=".concat(s)),Array.isArray(_)){var l,v=_createForOfIteratorHelper(_);try{for(v.s();!(l=v.n()).done;){var f=l.value;u.push("gpp_sid=".concat(f))}}catch(e){v.e(e)}finally{v.f()}}var h=Math.random().toString(),m={bundle:readFromAllStorages(BUNDLE_COOKIE_NAME),cw:storage.cookiesAreEnabled(),lsw:storage.localStorageIsEnabled(),optoutCookie:readFromAllStorages(OPTOUT_COOKIE_NAME),origin:p,requestId:h,tld:c.domain,topUrl:c.domain,version:"8.51.0".replace(/\./g,"_")};window.addEventListener("message",(function e(t){if(t.data&&"https://gum.criteo.com"==t.origin&&t.data.requestId===h){this.removeEventListener("message",e),t.stopImmediatePropagation();var r=t.data;r.optout?(deleteFromAllStorages(BUNDLE_COOKIE_NAME),saveOnAllStorages(OPTOUT_COOKIE_NAME,!0,OPTOUT_RETENTION_TIME_HOUR)):r.bundle&&saveOnAllStorages(BUNDLE_COOKIE_NAME,r.bundle,GUID_RETENTION_TIME_HOUR)}}),!0);var E=JSON.stringify(m).replace(/"/g,"%22");return[{type:"iframe",url:"https://gum.criteo.com/syncframe?".concat(u.join("&"),"#").concat(E)}]}if(e.pixelEnabled&&(0,_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_4__.h)(r)){var T=[];if(T.push("profile=207"),r&&(!0===r.gdprApplies&&T.push("gdprapplies=true"),r.consentString&&T.push("gdpr=".concat(r.consentString))),i&&T.push("ccpa=".concat(i)),T.push("gpp=".concat(s)),Array.isArray(_)){var b,O=_createForOfIteratorHelper(_);try{for(O.s();!(b=O.n()).done;){var g=b.value;T.push("gpp_sid=".concat(g))}}catch(e){O.e(e)}finally{O.f()}}return[{type:"image",url:"https://ssp-sync.criteo.com/user-sync/redirect?".concat(T.join("&"))}]}return[]},isBidRequestValid:function(e){return!(!e||!e.params||!e.params.zoneId&&!e.params.networkId)&&!(hasVideoMediaType(e)&&!hasValidVideoMediaType(e))},buildRequests:function(e,t){var r,i,a,o,s=t.ortb2||{};Object.assign(t,{publisherExt:null===(r=s.site)||void 0===r?void 0:r.ext,userExt:null===(i=s.user)||void 0===i?void 0:i.ext,ceh:_src_config_js__WEBPACK_IMPORTED_MODULE_5__.vc.getConfig("criteo.ceh"),coppa:_src_config_js__WEBPACK_IMPORTED_MODULE_5__.vc.getConfig("coppa")});var n=_src_config_js__WEBPACK_IMPORTED_MODULE_5__.vc.getConfig("criteo.fastBidVersion"),_=canFastBid(n);if(!publisherTagAvailable()&&_){window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid();var d=getFastBidUrl(n);setTimeout((function(){(0,_src_adloader_js__WEBPACK_IMPORTED_MODULE_7__.B)(d,BIDDER_CODE)}),t.timeout)}if(publisherTagAvailable()){var c=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,e,t,"8.51.0",{createOutstreamVideoRenderer:createOutstreamVideoRenderer});a=c.buildCdbUrl(),o=c.buildCdbRequest()}else{var p=buildContext(e,t);a=buildCdbUrl(p),o=buildCdbRequest(p,e,t)}if(o)return{method:"POST",url:a,data:o,bidRequests:e}},interpretResponse:function(e,t){var r,i=e.body||e;if(publisherTagAvailable()){var a=Criteo.PubTag.Adapters.Prebid.GetAdapter(t);if(a)return a.interpretResponse(i,t)}var o=[],s=[];return i&&i.slots&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.isArray)(i.slots)&&i.slots.forEach((function(r){var a=getAssociatedBidRequest(t.bidRequests,r);if(a){var s,n,_,d,c,p,u,l=a.bidId,v={requestId:l,cpm:r.cpm,currency:r.currency,netRevenue:!0,ttl:r.ttl||60,creativeId:r.creativecode,width:r.width,height:r.height,dealId:r.deal};if(null!==(s=i.ext)&&void 0!==s&&null!==(n=s.paf)&&void 0!==n&&n.transmission&&null!==(_=r.ext)&&void 0!==_&&null!==(d=_.paf)&&void 0!==d&&d.content_id){var f={content_id:r.ext.paf.content_id,transmission:e.ext.paf.transmission};v.meta=Object.assign({},v.meta,{paf:f})}if(r.adomain&&(v.meta=Object.assign({},v.meta,{advertiserDomains:[r.adomain].flat()})),null!==(c=r.ext)&&void 0!==c&&null!==(p=c.meta)&&void 0!==p&&p.networkName&&(v.meta=Object.assign({},v.meta,{networkName:r.ext.meta.networkName})),null!==(u=r.ext)&&void 0!==u&&u.dsa&&(v.meta=Object.assign({},v.meta,{dsa:r.ext.dsa})),r.native)a.params.nativeCallback?v.ad=createNativeAd(l,r.native,a.params.nativeCallback):(v.native=createPrebidNativeAd(r.native),v.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.B5);else if(r.video){v.vastUrl=r.displayurl,v.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.pX,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(a,"mediaTypes.video.context")===_src_video_js__WEBPACK_IMPORTED_MODULE_10__.gZ&&(v.renderer=createOutstreamVideoRenderer(r))}else v.ad=r.creative;o.push(v)}})),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.isArray)(null===(r=i.ext)||void 0===r?void 0:r.igi)&&i.ext.igi.forEach((function(e){(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.isArray)(null==e?void 0:e.igs)&&e.igs.forEach((function(e){s.push(e)}))})),s.length?{bids:o,fledgeAuctionConfigs:s}:o},onTimeout:function(e){if(publisherTagAvailable()&&Array.isArray(e)){var t=[];e.forEach((function(e){-1===t.indexOf(e.auctionId)&&(t.push(e.auctionId),Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleBidTimeout())}))}},onBidWon:function(e){publisherTagAvailable()&&e&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleBidWon(e)},onSetTargeting:function(e){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleSetTargeting(e)},onDataDeletionRequest:function(e){var t=readFromAllStorages(BUNDLE_COOKIE_NAME);t&&(deleteFromAllStorages(BUNDLE_COOKIE_NAME),(0,_src_ajax_js__WEBPACK_IMPORTED_MODULE_11__.hj)("https://privacy.criteo.com/api/privacy/datadeletionrequest",null,JSON.stringify({publisherUserId:t}),{contentType:"application/json",method:"POST"}))}};function readFromAllStorages(e){var t=storage.getCookie(e),r=storage.getDataFromLocalStorage(e);return t||r||void 0}function saveOnAllStorages(e,t,r){var i=new Date;i.setTime(i.getTime()+60*r*60*1e3);var a="expires=".concat(i.toUTCString());storage.setCookie(e,t,a),storage.setDataInLocalStorage(e,t)}function deleteFromAllStorages(e){storage.setCookie(e,"",0),storage.removeDataFromLocalStorage(e)}function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(e,t){var r,i="";t&&t.refererInfo&&(i=t.refererInfo.page);var a=(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.parseUrl)(null==t||null===(r=t.refererInfo)||void 0===r?void 0:r.topmostLocation).search,o={url:i,debug:"1"===a.pbt_debug,noLog:"1"===a.pbt_nolog,amp:!1};return e.forEach((function(e){"amp"===e.params.integrationMode&&(o.amp=!0)})),o}function buildCdbUrl(e){var t=CDB_ENDPOINT;t+="?profileId="+PROFILE_ID_INLINE,t+="&av="+String(ADAPTER_VERSION),t+="&wv="+encodeURIComponent("8.51.0"),t+="&cb="+String(Math.floor(99999999999*Math.random())),storage.localStorageIsEnabled()?t+="&lsavail=1":t+="&lsavail=0",e.amp&&(t+="&im=1"),e.debug&&(t+="&debug=1"),e.noLog&&(t+="&nolog=1");var r=readFromAllStorages(BUNDLE_COOKIE_NAME);return r&&(t+="&bundle=".concat(r)),readFromAllStorages(OPTOUT_COOKIE_NAME)&&(t+="&optout=1"),t}function checkNativeSendId(e){return!(e.nativeParams&&(e.nativeParams.image&&(!0!==e.nativeParams.image.sendId||!0===e.nativeParams.image.sendTargetingKeys)||e.nativeParams.icon&&(!0!==e.nativeParams.icon.sendId||!0===e.nativeParams.icon.sendTargetingKeys)||e.nativeParams.clickUrl&&(!0!==e.nativeParams.clickUrl.sendId||!0===e.nativeParams.clickUrl.sendTargetingKeys)||e.nativeParams.displayUrl&&(!0!==e.nativeParams.displayUrl.sendId||!0===e.nativeParams.displayUrl.sendTargetingKeys)||e.nativeParams.privacyLink&&(!0!==e.nativeParams.privacyLink.sendId||!0===e.nativeParams.privacyLink.sendTargetingKeys)||e.nativeParams.privacyIcon&&(!0!==e.nativeParams.privacyIcon.sendId||!0===e.nativeParams.privacyIcon.sendTargetingKeys)))}function buildCdbRequest(e,t,r){var i,a,o,s,n,_,d,c,p,u,l,v,f,h,m,E,T,b,O=Object.assign({},{coppa:!0===r.coppa?1:!1===r.coppa?0:void 0},null===(i=r.ortb2)||void 0===i?void 0:i.regs),g={id:(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.generateUUID)(),publisher:{url:e.url,ext:r.publisherExt},regs:O,slots:t.map((function(e){var t,i,a,o;E||(E=e.userIdAsEids),f=e.params.networkId||f,h=e.params.pubid||h,m=e.schain||m;var s={slotid:e.bidId,impid:e.adUnitCode,transactionid:null===(t=e.ortb2Imp)||void 0===t||null===(i=t.ext)||void 0===i?void 0:i.tid};if(e.params.zoneId&&(s.zoneid=e.params.zoneId),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"ortb2Imp.ext")&&(s.ext=e.ortb2Imp.ext),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"ortb2Imp.rwdd")&&(s.rwdd=e.ortb2Imp.rwdd),e.params.ext&&(s.ext=Object.assign({},s.ext,e.params.ext)),null!==(a=e.nativeOrtbRequest)&&void 0!==a&&a.assets&&(s.ext=Object.assign({},s.ext,{assets:e.nativeOrtbRequest.assets})),e.params.uid&&(s.ext=Object.assign({},s.ext,{bidder:{uid:e.params.uid}})),e.params.publisherSubId&&(s.publishersubid=e.params.publisherSubId),(e.params.nativeCallback||hasNativeMediaType(e))&&(s.native=!0,checkNativeSendId(e)||(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)(LOG_PREFIX+"all native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, displayUrl, privacyLink, privacyIcon)")),hasBannerMediaType(e)?s.sizes=parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.banner.sizes"),parseSize):s.sizes=[],hasVideoMediaType(e)){var n={context:e.mediaTypes.video.context,playersizes:parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.video.playerSize"),parseSize),mimes:e.mediaTypes.video.mimes,protocols:e.mediaTypes.video.protocols,maxduration:e.mediaTypes.video.maxduration,api:e.mediaTypes.video.api,skip:e.mediaTypes.video.skip,placement:e.mediaTypes.video.placement,minduration:e.mediaTypes.video.minduration,playbackmethod:e.mediaTypes.video.playbackmethod,startdelay:e.mediaTypes.video.startdelay,plcmt:e.mediaTypes.video.plcmt,w:e.mediaTypes.video.w,h:e.mediaTypes.video.h,linearity:e.mediaTypes.video.linearity,skipmin:e.mediaTypes.video.skipmin,skipafter:e.mediaTypes.video.skipafter,minbitrate:e.mediaTypes.video.minbitrate,maxbitrate:e.mediaTypes.video.maxbitrate,delivery:e.mediaTypes.video.delivery,pos:e.mediaTypes.video.pos,playbackend:e.mediaTypes.video.playbackend,adPodDurationSec:e.mediaTypes.video.adPodDurationSec,durationRangeSec:e.mediaTypes.video.durationRangeSec},_=e.params.video;void 0!==_&&(n.skip=n.skip||_.skip||0,n.placement=n.placement||_.placement,n.minduration=n.minduration||_.minduration,n.playbackmethod=n.playbackmethod||_.playbackmethod,n.startdelay=n.startdelay||_.startdelay||0),s.video=n}return enrichSlotWithFloors(s,e),!r.fledgeEnabled&&null!==(o=s.ext)&&void 0!==o&&o.ae&&delete s.ext.ae,s}))};(f&&(g.publisher.networkid=f),g.source={tid:null===(a=r.ortb2)||void 0===a||null===(o=a.source)||void 0===o?void 0:o.tid},m&&(g.source.ext={schain:m}),g.user=(null===(s=r.ortb2)||void 0===s?void 0:s.user)||{},g.site=(null===(n=r.ortb2)||void 0===n?void 0:n.site)||{},g.app=(null===(_=r.ortb2)||void 0===_?void 0:_.app)||{},h&&(g.site.publisher=_objectSpread(_objectSpread({},g.site.publisher),{id:h}),g.app.publisher=_objectSpread(_objectSpread({},g.app.publisher),{id:h})),g.device=(null===(d=r.ortb2)||void 0===d?void 0:d.device)||{},r&&r.ceh&&(g.user.ceh=r.ceh),r&&r.gdprConsent&&(g.gdprConsent={},void 0!==r.gdprConsent.gdprApplies&&(g.gdprConsent.gdprApplies=!!r.gdprConsent.gdprApplies),g.gdprConsent.version=r.gdprConsent.apiVersion,void 0!==r.gdprConsent.consentString&&(g.gdprConsent.consentData=r.gdprConsent.consentString)),r&&r.uspConsent&&(g.user.uspIab=r.uspConsent),r&&null!==(c=r.ortb2)&&void 0!==c&&null!==(p=c.device)&&void 0!==p&&p.sua)&&(g.user.ext=g.user.ext||{},g.user.ext.sua=(null===(T=r.ortb2)||void 0===T||null===(b=T.device)||void 0===b?void 0:b.sua)||{});return E&&(g.user.ext=g.user.ext||{},g.user.ext.eids=(0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_12__.Z)(E)),r&&null!==(u=r.ortb2)&&void 0!==u&&u.bcat&&(g.bcat=r.ortb2.bcat),r&&null!==(l=r.ortb2)&&void 0!==l&&l.badv&&(g.badv=r.ortb2.badv),r&&null!==(v=r.ortb2)&&void 0!==v&&v.bapp&&(g.bapp=r.ortb2.bapp),g.tmax=r.timeout,g}function parseSizes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return null==e?[]:Array.isArray(e[0])?e.map((function(e){return t(e)})):[t(e)]}function parseSize(e){return e[0]+"x"+e[1]}function hasVideoMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.video")}function hasBannerMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.banner")}function hasNativeMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.native")}function hasValidVideoMediaType(e){var t=!0;return["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach((function(r){void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"mediaTypes.video."+r)&&void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(e,"params.video."+r)&&(t=!1,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logError)("Criteo Bid Adapter: mediaTypes.video."+r+" is required"))})),t}function createPrebidNativeAd(e){return{sendTargetingKeys:!1,title:e.products[0].title,body:e.products[0].description,sponsoredBy:e.advertiser.description,icon:e.advertiser.logo,image:e.products[0].image,clickUrl:e.products[0].click_url,privacyLink:e.privacy.optout_click_url,privacyIcon:e.privacy.optout_image_url,cta:e.products[0].call_to_action,price:e.products[0].price,impressionTrackers:e.impression_pixels.map((function(e){return e.url}))}}function createNativeAd(e,t,r){var i="criteo_prebid_native_slots";return window[i]=window[i]||{},window[i][e]={callback:r,payload:t},'\n<script type="text/javascript">\nfor (var i = 0; i < 10; ++i) {\n var slots = window.parent.'.concat(i,';\n  if(!slots){continue;}\n  var responseSlot = slots["').concat(e,'"];\n  responseSlot.callback(responseSlot.payload);\n  break;\n}\n<\/script>')}function pickAvailableGetFloorFunc(e){if(e.getFloor)return e.getFloor;if(e.params.bidFloor&&e.params.bidFloorCur)try{var t=parseFloat(e.params.bidFloor);return function(){return{currency:e.params.bidFloorCur,floor:t}}}catch(e){}}function enrichSlotWithFloors(e,t){try{var r={},i=pickAvailableGetFloorFunc(t);if(i){var a,o,s;if(null!==(a=t.mediaTypes)&&void 0!==a&&a.banner)r.banner={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(t,"mediaTypes.banner.sizes")).forEach((function(e){return r.banner[parseSize(e).toString()]=i.call(t,{size:e,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.Mk})}));if(null!==(o=t.mediaTypes)&&void 0!==o&&o.video)r.video={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_9__.Z)(t,"mediaTypes.video.playerSize")).forEach((function(e){return r.video[parseSize(e).toString()]=i.call(t,{size:e,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.pX})}));null!==(s=t.mediaTypes)&&void 0!==s&&s.native&&(r.native={},r.native["*"]=i.call(t,{size:"*",mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_3__.B5})),Object.keys(r).length>0&&(e.ext||(e.ext={}),Object.assign(e.ext,{floors:r}))}}catch(e){(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logError)("Could not parse floors from Prebid: "+e)}}function canFastBid(e){return e!==FAST_BID_VERSION_NONE}function getFastBidUrl(e){var t;if(e===FAST_BID_VERSION_LATEST)t="";else if(e){String(e).split(".")[0]<102&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("Specifying a Fastbid version which is not supporting version selection."),t="."+e}else t="."+FAST_BID_VERSION_CURRENT;return PUBLISHER_TAG_URL_TEMPLATE.replace(FAST_BID_VERSION_PLACEHOLDER,t)}function createOutstreamVideoRenderer(e){if(void 0!==e.ext.videoPlayerConfig&&void 0!==e.ext.videoPlayerType){var t=_src_Renderer_js__WEBPACK_IMPORTED_MODULE_13__.Th.install({url:PUBLISHER_TAG_OUTSTREAM_SRC,config:{documentResolver:function(e,t,r){return null!=r?r:t}}});return t.setRender((function(t,r){var i={slotid:e.impid,vastUrl:e.displayurl,vastXml:e.creative,documentContext:r},a=e.ext.videoPlayerConfig;window.CriteoOutStream[e.ext.videoPlayerType].play(i,a)})),t}}function getAssociatedBidRequest(e,t){var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.adUnitCode===t.impid){var o,s;if(a.params.zoneId&&parseInt(a.params.zoneId)===t.zoneid)return a;if(t.native){if(null!==(s=a.mediaTypes)&&void 0!==s&&s.native||a.nativeParams)return a}else if(t.video){var n;if(null!==(n=a.mediaTypes)&&void 0!==n&&n.video)return a}else if(null!==(o=a.mediaTypes)&&void 0!==o&&o.banner||a.sizes)return a}}}catch(e){i.e(e)}finally{i.f()}}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=storage.getDataFromLocalStorage(fastBidStorageKey);if(null!==fastBidFromStorage){var firstLineEndPosition=fastBidFromStorage.indexOf("\n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim();if(firstLine.substr(0,hashPrefix.length)!==hashPrefix)(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("No hash found in FastBid"),storage.removeDataFromLocalStorage(fastBidStorageKey);else{var publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1);(0,criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_1__.T)(publisherTag,publisherTagHash,FAST_BID_PUBKEY_N,FAST_BID_PUBKEY_E)?((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logInfo)("Using Criteo FastBid"),eval(publisherTag)):((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.logWarn)("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))}}}catch(e){}}(0,_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_14__.dX)(spec),(0,_src_prebidGlobal_js__WEBPACK_IMPORTED_MODULE_15__.z)("criteoBidAdapter")},44611:function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){null!==e&&this.fromHexString(e)}return e.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var e,t=!1,r="",i=this.t,a=this.DB-i*this.DB%4;if(i-- >0)for(a<this.DB&&(e=this[i]>>a)>0&&(t=!0,r=c(e));i>=0;)a<4?(e=(this[i]&(1<<a)-1)<<4-a,e|=this[--i]>>(a+=this.DB-4)):(e=this[i]>>(a-=4)&15,a<=0&&(a+=this.DB,--i)),e>0&&(t=!0),t&&(r+=c(e));return t?r:"0"},e.prototype.fromHexString=function(t){if(null!==t){this.t=0,this.s=0;for(var r=t.length,i=!1,a=0;--r>=0;){var o=d(t,r);o<0?"-"==t.charAt(r)&&(i=!0):(i=!1,0==a?this[this.t++]=o:a+4>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,(a+=4)>=this.DB&&(a-=this.DB))}0,this.clamp(),i&&e.ZERO.subTo(this,this)}},e.prototype.negate=function(){var t=a();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.mod=function(t){var r=a();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,i=this.DB-r,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM,n=this.t-1;n>=0;--n)t[n+o+1]=this[n]>>i|s,s=(this[n]&a)<<r;for(n=o-1;n>=0;--n)t[n]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},e.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},e.prototype.multiplyTo=function(t,r){var i=this.abs(),a=t.abs(),o=i.t;for(r.t=o+a.t;--o>=0;)r[o]=0;for(o=0;o<a.t;++o)r[o+i.t]=i.am(0,a[o],r,o,0,i.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.divRemTo=function(t,r,i){var s=t.abs();if(!(s.t<=0)){var n=this.abs();if(n.t<s.t)return null!=r&&r.fromHexString("0"),void(null!=i&&this.copyTo(i));null==i&&(i=a());var _=a(),d=this.s,c=t.s,p=this.DB-o(s[s.t-1]);p>0?(s.lShiftTo(p,_),n.lShiftTo(p,i)):(s.copyTo(_),n.copyTo(i));var u=_.t,l=_[u-1];if(0!=l){var v=l*(1<<this.F1)+(u>1?_[u-2]>>this.F2:0),f=this.FV/v,h=(1<<this.F1)/v,m=1<<this.F2,E=i.t,T=E-u,b=null==r?a():r;for(_.dlShiftTo(T,b),i.compareTo(b)>=0&&(i[i.t++]=1,i.subTo(b,i)),e.ONE.dlShiftTo(u,b),b.subTo(_,_);_.t<u;)_[_.t++]=0;for(;--T>=0;){var O=i[--E]==l?this.DM:Math.floor(i[E]*f+(i[E-1]+m)*h);if((i[E]+=_.am(0,O,i,T,0,u))<O)for(_.dlShiftTo(T,b),i.subTo(b,i);i[E]<--O;)i.subTo(b,i)}null!=r&&(i.drShiftTo(u,r),d!=c&&e.ZERO.subTo(r,r)),i.t=u,i.clamp(),p>0&&i.rShiftTo(p,i),d<0&&e.ZERO.subTo(i,i)}}},e.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var i=e%this.DB,a=this.DB-i,o=(1<<i)-1;t[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&o)<<a,t[s-r]=this[s]>>i;i>0&&(t[this.t-r-1]|=(this.s&o)<<a),t.t=this.t-r,t.clamp()}},e.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.subTo=function(e,t){for(var r=0,i=0,a=Math.min(e.t,this.t);r<a;)i+=this[r]-e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i-=e[r],t[r++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new p(t):new u(t),this.exp(e,r)},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var i=a(),s=a(),n=r.convert(this),_=o(t)-1;for(n.copyTo(i);--_>=0;)if(r.sqrTo(i,s),(t&1<<_)>0)r.mulTo(s,n,i);else{var d=i;i=s,s=d}return r.revert(i)},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},e.prototype.am1=function(e,t,r,i,a,o){for(;--o>=0;){var s=t*this[e++]+r[i]+a;a=Math.floor(s/67108864),r[i++]=67108863&s}return a},e.prototype.am2=function(e,t,r,i,a,o){for(var s=32767&t,n=t>>15;--o>=0;){var _=32767&this[e],d=this[e++]>>15,c=n*_+d*s;a=((_=s*_+((32767&c)<<15)+r[i]+(1073741823&a))>>>30)+(c>>>15)+n*d+(a>>>30),r[i++]=1073741823&_}return a},e.prototype.am3=function(e,t,r,i,a,o){for(var s=16383&t,n=t>>14;--o>=0;){var _=16383&this[e],d=this[e++]>>14,c=n*_+d*s;a=((_=s*_+((16383&c)<<14)+r[i]+a)>>28)+(c>>14)+n*d,r[i++]=268435455&_}return a},e}();function a(){return new i(null)}function o(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}t.BigInteger=i,t.nbi=a,t.nbits=o;var s,n,_=[];for(s="0".charCodeAt(0),n=0;n<=9;++n)_[s++]=n;for(s="a".charCodeAt(0),n=10;n<36;++n)_[s++]=n;for(s="A".charCodeAt(0),n=10;n<36;++n)_[s++]=n;function d(e,t){var r=_[e.charCodeAt(t)];return null==r?-1:r}t.intAt=d;function c(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}t.int2char=c;t.b64toHex=function(e){var t,r="",i=0,a=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(t));o<0||(0==i?(r+=c(o>>2),a=3&o,i=1):1==i?(r+=c(a<<2|o>>4),a=15&o,i=2):2==i?(r+=c(a),r+=c(o>>2),a=3&o,i=3):(r+=c(a<<2|o>>4),r+=c(15&o),i=0))}return 1==i&&(r+=c(a<<2)),r},t.removeExtraSymbols=function(e){return e.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var p=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),u=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=a();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(i.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=a();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function l(e){var t=a();return t.fromHexString(e.toString()),t}t.nbv=l,i.ZERO=l(0),i.ONE=l(1),"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=i.prototype.am2,r=30):"Netscape"!=navigator.appName?(i.prototype.am=i.prototype.am1,r=26):(i.prototype.am=i.prototype.am3,r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r;i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-r,i.prototype.F2=2*r-52},94950:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.hash=function(t){t=e.utf8Encode(t||"");for(var r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a=(t+=String.fromCharCode(128)).length/4+2,o=Math.ceil(a/16),s=new Array(o),n=0;n<o;n++){s[n]=new Array(16);for(var _=0;_<16;_++)s[n][_]=t.charCodeAt(64*n+4*_)<<24|t.charCodeAt(64*n+4*_+1)<<16|t.charCodeAt(64*n+4*_+2)<<8|t.charCodeAt(64*n+4*_+3)<<0}var d=8*(t.length-1)/Math.pow(2,32),c=8*(t.length-1)>>>0;s[o-1][14]=Math.floor(d),s[o-1][15]=c;for(n=0;n<o;n++){for(var p=new Array(64),u=0;u<16;u++)p[u]=s[n][u];for(u=16;u<64;u++)p[u]=e.q1(p[u-2])+p[u-7]+e.q0(p[u-15])+p[u-16]>>>0;var l=i[0],v=i[1],f=i[2],h=i[3],m=i[4],E=i[5],T=i[6],b=i[7];for(u=0;u<64;u++){var O=b+e.z1(m)+e.Ch(m,E,T)+r[u]+p[u],g=e.z0(l)+e.Maj(l,v,f);b=T,T=E,E=m,m=h+O>>>0,h=f,f=v,v=l,l=O+g>>>0}i[0]=i[0]+l>>>0,i[1]=i[1]+v>>>0,i[2]=i[2]+f>>>0,i[3]=i[3]+h>>>0,i[4]=i[4]+m>>>0,i[5]=i[5]+E>>>0,i[6]=i[6]+T>>>0,i[7]=i[7]+b>>>0}var y=new Array(i.length);for(b=0;b<i.length;b++)y[b]=("00000000"+i[b].toString(16)).slice(-8);return y.join("")},e.utf8Encode=function(e){try{return(new TextEncoder).encode(e).reduce((function(e,t){return e+String.fromCharCode(t)}),"")}catch(t){return unescape(encodeURIComponent(e))}},e.ROTR=function(e,t){return t>>>e|t<<32-e},e.z0=function(t){return e.ROTR(2,t)^e.ROTR(13,t)^e.ROTR(22,t)},e.z1=function(t){return e.ROTR(6,t)^e.ROTR(11,t)^e.ROTR(25,t)},e.q0=function(t){return e.ROTR(7,t)^e.ROTR(18,t)^t>>>3},e.q1=function(t){return e.ROTR(17,t)^e.ROTR(19,t)^t>>>10},e.Ch=function(e,t,r){return e&t^~e&r},e.Maj=function(e,t,r){return e&t^e&r^t&r},e}();t.Sha256=r},1582:function(e,t,r){var i=r(44611),a=r(94950);t.T=function(e,t,r,o){var s=new i.BigInteger(i.b64toHex(t)),n=new i.BigInteger(i.b64toHex(r)),_=s.modPowInt(o,n);return i.removeExtraSymbols(_.toHexString())===a.Sha256.hash(e)}}},function(e){e.O(0,[25823,79270],(function(){return t=60241,e(e.s=t);var t}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[56187],{40060:function(e,r,t){var n=t(42982),i=t(4942),o=t(70885),a=t(71002),d=t(78640),s=t(24980),c=t(99933),u=t(14699),l=t(3193),p=t(24679),v=t(34614),f=t(35706),m=t(64358),g=t(96475),b=t(20265),x=t(20676);function y(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 h(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){(0,i.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var _="https://video-outstream.rubiconproject.com/apex-2.2.1.js",j=l.vc.getConfig("rubicon")||{};l.vc.getConfig("rubicon",(function(e){(0,m.mergeDeep)(j,e.rubicon)}));var k={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",261:"480x480",264:"970x1000",265:"1920x1080",274:"1800x200",278:"320x500",282:"320x400",288:"640x380",484:"720x1280",524:"1x2",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",622:"192x160",632:"1200x450",634:"340x450"};(0,m._each)(k,(function(e,r){return k[e]=r}));var O=(0,s.x)({request:function(e,r,t,i){var o,s,c,u=i.bidRequests,p=e(r,t,i);p.cur=["USD"],p.test=l.vc.getConfig("debug")?1:0,(0,g.N)(p,"ext.prebid.cache",{vastxml:{returnCreative:!0===j.returnVast}}),(0,g.N)(p,"ext.prebid.bidders",{rubicon:{integration:j.int_type||"pbjs"}}),(0,g.N)(p,"ext.prebid.targeting.pricegranularity",{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:(c=l.vc).getConfig("customPriceBucket")&&c.getConfig("customPriceBucket").buckets}[c.getConfig("priceGranularity")]});var v=(0,d.R)().installedModules;return!v||v.length&&-1===v.indexOf("rubiconAnalyticsAdapter")||(0,g.N)(p,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),function(e,r,t){var i,o,a={},d=x.c.apply(void 0,[t].concat((0,n.Z)(r.map((function(e){return e.params.keywords})))));r.forEach((function(r){var t,n,i,o,d,s={user:{ext:{data:h({},r.params.visitor)}},site:{ext:{data:h({},r.params.inventory)}}},c=e.imp.find((function(e){var r,t,n,i,o;return null===(r=e.ext)||void 0===r||null===(t=r.prebid)||void 0===t||null===(n=t.bidder)||void 0===n||null===(i=n.rubicon)||void 0===i||null===(o=i.video)||void 0===o?void 0:o.language}));c&&(s.site.content={language:null===(t=c.ext)||void 0===t||null===(n=t.prebid)||void 0===n||null===(i=n.bidder)||void 0===i||null===(o=i.rubicon)||void 0===o||null===(d=o.video)||void 0===d?void 0:d.language});a=(0,m.mergeDeep)(a,r.ortb2||{},s);var u=l.vc.getConfig("user.id");a.user.id=a.user.id||u})),(0,m.mergeDeep)(e,a),d&&d.length&&(0,g.N)(e,"site.keywords",d.join(","));null==e||(null===(i=e.ext)||void 0===i||(null===(o=i.prebid)||void 0===o||delete o.storedrequest))}(p,u,t.ortb2),null==p||(null===(o=p.ext)||void 0===o||(null===(s=o.prebid)||void 0===s||delete s.storedrequest)),!0===j.disableFloors&&delete p.ext.prebid.floors,u.filter((function(e){return"object"===(0,a.Z)(e.floorData)})).length>0&&(p.ext.prebid.floors={enabled:!1}),p},imp:function(e,r,t){var n,i,o=T(r);if(!o.includes(p.Mk)||1!=o.length){var a=e(r,t);return a.id=r.adUnitCode,delete a.banner,"atf"===r.params.position&&a.video&&(a.video.pos=1),"btf"===r.params.position&&a.video&&(a.video.pos=3),null===(n=a.ext)||void 0===n||(null===(i=n.prebid)||void 0===i||delete i.storedrequest),!0===r.params.bidonmultiformat&&o.length>1&&(0,g.N)(a,"ext.prebid.bidder.rubicon.formats",o),function(e,r){"USD"!=r.bidfloorcur&&(delete r.bidfloor,delete r.bidfloorcur);if(!r.bidfloor){var t=parseFloat((0,b.Z)(e,"params.floor"));isNaN(t)||(r.bidfloor=t,r.bidfloorcur="USD")}}(r,a),a}},bidResponse:function(e,r,t){var n,i=e(r,t);i.meta.mediaType=(0,b.Z)(r,"ext.prebid.type");var a=t.bidRequest,d="outstream"===(null===(n=a.mediaTypes.video)||void 0===n?void 0:n.context)?w(a,p.pX):[void 0,void 0],s=(0,o.Z)(d,2),c=s[0],u=s[1];return i.width=r.w||c||i.playerWidth,i.height=r.h||u||i.playerHeight,i.mediaType===p.pX&&"outstream"===a.mediaTypes.video.context&&(i.renderer=function(e){var r=f.Th.install({id:e.adId,url:j.rendererUrl||_,config:j.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{r.setRender(I)}catch(e){(0,m.logWarn)("Prebid Error calling setRender on renderer",e)}return r}(i)),(0,b.Z)(r,"ext.bidder.rp.advid")&&(0,g.N)(i,"meta.advertiserId",r.ext.bidder.rp.advid),i},context:{netRevenue:!1!==j.netRevenue,ttl:360},processors:c.X}),S={code:"rubicon",gvlid:52,supportedMediaTypes:[p.Mk,p.pX,p.B5],isBidRequestValid:function(e){var r=!0;if("object"!==(0,a.Z)(e.params))return!1;for(var t=0,n=["accountId","siteId","zoneId"];t<n.length;t++)if(e.params[n[t]]=parseInt(e.params[n[t]]),isNaN(e.params[n[t]]))return(0,m.logError)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;var i=T(e,!0);if(!i.length)return!1;i.includes(p.pX)&&(r=function(e){var r=!0,t=Object.prototype.toString.call([]),n=Object.prototype.toString.call(0),i={mimes:t,protocols:t,linearity:n};return Object.keys(i).forEach((function(t){Object.prototype.toString.call((0,b.Z)(e,"mediaTypes.video."+t))!==i[t]&&(r=!1,(0,m.logError)("Rubicon: mediaTypes.video."+t+" is required and must be of type: "+i[t]))})),r}(e));var o=[p.Mk,p.B5].filter((function(e){return i.includes(e)})).length>0;return o?r&&o:r},buildRequests:function(e,r){var t,n=[],i=[];if((t=e.filter((function(e){var r=T(e)||[],t=r.length,n=e.params||{},i=n.bidonmultiformat,o=n.video;return 1===t&&(r.includes(p.pX)||r.includes(p.B5))||2===t&&!r.includes(p.Mk)||o&&r.includes(p.pX)||i&&(r.includes(p.pX)||r.includes(p.B5))})))&&t.length){var o=O.toORTB({bidRequests:t,bidderRequest:r});i.push({method:"POST",url:"https://".concat(j.videoHost||"prebid-server",".rubiconproject.com/openrtb2/auction"),data:o,bidRequest:t})}var a=e.filter((function(e){var r=T(e)||[],t=e.params||{},n=t.bidonmultiformat,i=t.video;return r.includes(p.Mk)&&(1===r.length||n||!n&&!i||!n&&i&&!r.includes(p.pX))}));if(!0!==j.singleRequest)n=i.concat(a.map((function(e){var t=S.createSlotParams(e,r);return{method:"GET",url:"https://".concat(j.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:S.getOrderedParams(t).reduce((function(e,r){var n=t[r];return(0,m.isStr)(n)&&""!==n||(0,m.isNumber)(n)?"".concat(e).concat(E(r,n),"&"):e}),"")+"slots=1&rand=".concat(Math.random()),bidRequest:e}})));else{var d=a.reduce((function(e,r){return(e[r.params.siteId]=e[r.params.siteId]||[]).push(r),e}),{});n=i.concat(Object.keys(d).reduce((function(e,t){var n,i;return(n=d[t],i=10,n.map((function(e,r){return r%i==0?n.slice(r,r+i):null})).filter((function(e){return e}))).forEach((function(t){var n=S.combineSlotUrlParams(t.map((function(e){return S.createSlotParams(e,r)})));e.push({method:"GET",url:"https://".concat(j.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:S.getOrderedParams(n).reduce((function(e,r){var t=n[r];return(0,m.isStr)(t)&&""!==t||(0,m.isNumber)(t)?"".concat(e).concat(E(r,t),"&"):e}),"")+"slots=".concat(t.length,"&rand=").concat(Math.random()),bidRequest:t})})),e}),[]))}return n},getOrderedParams:function(e){var r=/^tg_v/,t=/^tg_i/,n=/^eid_|^tpid_/,i=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","gpp","gpp_sid","rp_schain"].concat(Object.keys(e).filter((function(e){return n.test(e)}))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter((function(e){return r.test(e)}))).concat(Object.keys(e).filter((function(e){return t.test(e)}))).concat(["tk_flint","x_source.tid","l_pb_bid_id","p_screen_res","o_ae","o_cdep","rp_floor","rp_secure","tk_user_key"]);return i.concat(Object.keys(e).filter((function(e){return-1===i.indexOf(e)})))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];var r=e.reduce((function(r,t,n){return Object.keys(t).forEach((function(i){r.hasOwnProperty(i)||(r[i]=new Array(e.length)),r[i].splice(n,1,t[i])})),r}),{}),t=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(r).forEach((function(e){var n=r[e].join(";"),i=n.match(t);r[e]=i?i[1]:n})),r},createSlotParams:function(e,r){var t,n,i,d,s,c,u,f,g,x;e.startTime=(new Date).getTime();var y=e.params,_=w(e,"banner"),k=y.latLong||[],O=(0,o.Z)(k,2),I=O[0],C=O[1],Z={account_id:y.accountId,site_id:y.siteId,zone_id:y.zoneId,size_id:_[0],alt_size_ids:_.slice(1).join(",")||void 0,rp_floor:(y.floor=parseFloat(y.floor))>=.01?y.floor:void 0,rp_secure:"1",tk_flint:"".concat(j.int_type||"pbjs_lite","_v8.51.0"),"x_source.tid":null===(t=r.ortb2)||void 0===t||null===(n=t.source)||void 0===n?void 0:n.tid,"x_imp.ext.tid":null===(i=e.ortb2Imp)||void 0===i||null===(d=i.ext)||void 0===d?void 0:d.tid,l_pb_bid_id:e.bidId,o_cdep:null===(s=e.ortb2)||void 0===s||null===(c=s.device)||void 0===c||null===(u=c.ext)||void 0===u?void 0:u.cdep,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:y.userId,"p_geo.latitude":isNaN(parseFloat(I))?void 0:parseFloat(I).toFixed(4),"p_geo.longitude":isNaN(parseFloat(C))?void 0:parseFloat(C).toFixed(4),"tg_fl.eid":e.code,rf:A(e,r)};if("function"==typeof e.getFloor&&!j.disableFloors){var T;try{T=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,m.logError)("Rubicon: getFloor threw an error: ",e)}Z.rp_hard_floor="object"!==(0,a.Z)(T)||"USD"!==T.currency||isNaN(parseInt(T.floor))?void 0:T.floor}!0===y.bidonmultiformat&&(0,b.Z)(e,"mediaTypes")&&Object.keys(e.mediaTypes).length>1&&(Z.p_formats=Object.keys(e.mediaTypes).join(","));var E={1:"atf",3:"btf"}[(0,b.Z)(e,"mediaTypes.banner.pos")]||"";Z.p_pos="atf"===y.position||"btf"===y.position?y.position:E;var N,U,q=l.vc.getConfig("user.id");(q&&(Z.ppuid=q),null!=e&&null!==(f=e.ortb2Imp)&&void 0!==f&&null!==(g=f.ext)&&void 0!==g&&g.ae&&(Z.o_ae=1),function(e,r){var t,n,i,o,a,d,s;if(!1===j.readTopics)return;var c=[1,2,5,6,7,507].concat((null===(t=j.sendSiteSegtax)||void 0===t?void 0:t.map((function(e){return Number(e)})))||[]),u=[4,508].concat((null===(n=j.sendUserSegtax)||void 0===n?void 0:n.map((function(e){return Number(e)})))||[]),l=(null===(i=e.ortb2)||void 0===i||null===(o=i.user)||void 0===o?void 0:o.data)||[],p=(null===(a=e.ortb2)||void 0===a||null===(d=a.site)||void 0===d||null===(s=d.content)||void 0===s?void 0:s.data)||[];l.forEach(R(r,"v",u)),p.forEach(R(r,"i",c))}(r,Z),e.userIdAsEids&&e.userIdAsEids.forEach((function(e){try{if("adserver.org"===e.source)Z.tpid_tdid=e.uids[0].id,Z["eid_adserver.org"]=e.uids[0].id;else if("liveintent.com"===e.source)Z["tpid_liveintent.com"]=e.uids[0].id,Z["eid_liveintent.com"]=e.uids[0].id,e.ext&&Array.isArray(e.ext.segments)&&e.ext.segments.length&&(Z["tg_v.LIseg"]=e.ext.segments.join(","));else if("liveramp.com"===e.source)Z.x_liverampidl=e.uids[0].id;else if("id5-sync.com"===e.source)Z["eid_id5-sync.com"]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype,"^").concat(e.uids[0].ext&&e.uids[0].ext.linkType||"");else{var r="rubiconproject.com"===e.source?e.uids[0].id:"".concat(e.uids[0].id,"^").concat(e.uids[0].atype||"");Z["eid_".concat(e.source)]=r}if(!Z.ppuid){var t=(0,v.sE)(e.uids,(function(e){return e.ext&&"ppuid"===e.ext.stype}));t&&t.id&&(Z.ppuid=t.id)}}catch(r){(0,m.logWarn)("Rubicon: error reading eid:",e,r)}})),r.gdprConsent&&("boolean"==typeof r.gdprConsent.gdprApplies&&(Z.gdpr=Number(r.gdprConsent.gdprApplies)),Z.gdpr_consent=r.gdprConsent.consentString),r.uspConsent&&(Z.us_privacy=encodeURIComponent(r.uspConsent)),null!==(x=r.gppConsent)&&void 0!==x&&x.gppString)&&(Z.gpp=r.gppConsent.gppString,Z.gpp_sid=null===(N=r.gppConsent)||void 0===N||null===(U=N.applicableSections)||void 0===U?void 0:U.toString());return Z.rp_maxbids=r.bidLimit||1,function(e,r,t){var n={user:{ext:{data:h({},e.params.visitor)}},site:{ext:{data:h({},e.params.inventory)}}};e.params.keywords&&(n.site.keywords=(0,m.isArray)(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);var i=(0,m.mergeDeep)({},e.ortb2||{},n),d=(0,b.Z)(e.ortb2Imp,"ext")||{},s=(0,b.Z)(e.ortb2Imp,"ext.data")||{},c=(0,b.Z)(e,"ortb2Imp.ext.gpid"),u=(0,b.Z)(i,"regs.ext.dsa"),l={user:[4],site:[1,2,5,6]},v={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},f=function(e,r,t){return"data"===r&&Array.isArray(e)?e.filter((function(e){return e.segment&&(0,b.Z)(e,"ext.segtax")&&l[t]&&-1!==l[t].indexOf((0,b.Z)(e,"ext.segtax"))})).map((function(e){var r=e.segment.filter((function(e){return e.id})).reduce((function(e,r){return e.push(r.id),e}),[]);if(r.length>0)return r.toString()})).toString():("object"!==(0,a.Z)(e)||Array.isArray(e))&&void 0!==e?Array.isArray(e)?e.filter((function(e){if("object"!==(0,a.Z)(e)&&void 0!==e)return e.toString();(0,m.logWarn)("Rubicon: Filtered value: ",e,"for key",r,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString():void 0},g=function(e,r,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=f(e,n,r),a=v[n]&&i?"".concat(v[n]):"data"===n?"".concat(v[r],"iab"):"".concat(v[r]).concat(n);t[a]=t[a]?t[a].concat(",",o):o};if(r===p.Mk){["site","user"].forEach((function(e){Object.keys(i[e]).forEach((function(r){"site"===e&&"content"===r&&i[e][r].data?g(i[e][r].data,e,"data"):"ext"!==r?g(i[e][r],e,r):i[e][r].data&&Object.keys(i[e].ext.data).forEach((function(r){g(i[e].ext.data[r],e,r,!1)}))}))})),Object.keys(s).forEach((function(e){"adserver"!==e?g(s[e],"site",e):"gam"===s[e].name&&g(s[e].adslot,name,e)})),c&&(t.p_gpid=c),u&&Object.keys(u).length&&(0,m.pick)(u,["dsainfo",function(e){return t.dsainfo=e},"dsarequired",function(e){return t.dsarequired=e},"pubrender",function(e){return t.dsapubrender=e},"datatopub",function(e){return t.dsadatatopubs=e},"transparency",function(e){Array.isArray(e)&&e.length&&(t.dsatransparency=e.reduce((function(e,r){var t=r.domain||"";if(!t)return e;var n=r.dsaparams||r.params;return Array.isArray(n)&&0!==n.length?(e&&(e+="~~"),e+"".concat(t,"~").concat(n.join("_"))):e}),""))}]),t["tg_i.pbadslot"]&&delete t["tg_i.dfp_ad_unit_code"];var x=(0,b.Z)(i,"device.sua");x&&!1!==j.chEnabled&&(0,m.pick)(x,["architecture",function(e){return t.m_ch_arch=e},"bitness",function(e){return t.m_ch_bitness=e},"browsers",function(e){var r,n;if(Array.isArray(e)){var i=e.reduce((function(e,r){var t,n,i;return e[0].push('"'.concat(null==r?void 0:r.brand,'"|v="').concat(null==r||null===(t=r.version)||void 0===t?void 0:t[0],'"')),e[1].push('"'.concat(null==r?void 0:r.brand,'"|v="').concat(null==r||null===(n=r.version)||void 0===n||null===(i=n.join)||void 0===i?void 0:i.call(n,"."),'"')),e}),[[],[]]),a=(0,o.Z)(i,2),d=a[0],s=a[1];t.m_ch_ua=null==d||null===(r=d.join)||void 0===r?void 0:r.call(d,","),t.m_ch_full_ver=null==s||null===(n=s.join)||void 0===n?void 0:n.call(s,",")}},"mobile",function(e){return t.m_ch_mobile="?".concat(e)},"model",function(e){return t.m_ch_model=e},"platform",function(e){var r,n;t.m_ch_platform=null==e?void 0:e.brand,t.m_ch_platform_ver=null==e||null===(r=e.version)||void 0===r||null===(n=r.join)||void 0===n?void 0:n.call(r,".")}])}else Object.keys(d).length&&(0,m.mergeDeep)(t.imp[0].ext,d),c&&(t.imp[0].ext.gpid=c),(0,m.mergeDeep)(t,i)}(e,p.Mk,Z),!0===l.vc.getConfig("coppa")&&(Z.coppa=1),e.schain&&z(e.schain)&&(Z.rp_schain=S.serializeSupplyChain(e.schain)),Z},serializeSupplyChain:function(e){if(!z(e))return"";var r=e.ver,t=e.complete,n=e.nodes;return"".concat(r,",").concat(t,"!").concat(S.serializeSupplyChainNodes(n))},serializeSupplyChainNodes:function(e){var r=["asi","sid","hp","rid","name","domain"];return e.map((function(e){return r.map((function(r){return encodeURIComponent(e[r]||"")})).join(",")})).join("!")},interpretResponse:function(e,r){var t;e=e.body;var n=r.data;if(!e||"object"!==(0,a.Z)(e))return[];if(e.seatbid){var i=(0,b.Z)(e,"ext.errors.rubicon");return Array.isArray(i)&&i.length>0&&(0,m.logWarn)("Rubicon: Error in video response"),O.fromORTB({request:n,response:e}).bids}var d,s=e.ads,c=0,u=r.bidRequest;if("object"===(0,a.Z)(u)&&!Array.isArray(u)&&T(u).includes(p.pX)&&"object"===(0,a.Z)(s)&&(s=s[u.adUnitCode]),!Array.isArray(s)||s.length<1)return[];var l=s.reduce((function(r,t,n){if(t.impression_id&&d===t.impression_id?c++:d=t.impression_id,"ok"!==t.status)return r;var i,s,l=Array.isArray(u)?u[n-c]:u;if(l&&"object"===(0,a.Z)(l)){var v={requestId:l.bidId,currency:"USD",creativeId:t.creative_id||"".concat(t.network||"","-").concat(t.advertiser||""),cpm:t.cpm||0,dealId:t.deal,ttl:360,netRevenue:!1!==j.netRevenue,rubicon:{advertiserId:t.advertiser,networkId:t.network},meta:{advertiserId:t.advertiser,networkId:t.network,mediaType:p.Mk}};if(t.creative_type&&(v.mediaType=t.creative_type),t.dsa&&Object.keys(t.dsa).length&&(v.meta.dsa=t.dsa),t.adomain&&(v.meta.advertiserDomains=Array.isArray(t.adomain)?t.adomain:[t.adomain]),t.creative_type===p.pX)v.width=l.params.video.playerWidth,v.height=l.params.video.playerHeight,v.vastUrl=t.creative_depot_url,v.impression_id=t.impression_id,v.videoCacheKey=t.impression_id;else{v.ad=(i=t.script,s=t.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(s,"'>\n<script type='text/javascript'>").concat(i,"<\/script>\n</div>\n</body>\n</html>"));var f=k[t.size_id].split("x").map((function(e){return Number(e)})),g=(0,o.Z)(f,2);v.width=g[0],v.height=g[1]}v.rubiconTargeting=(Array.isArray(t.targeting)?t.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:l.adUnitCode}),r.push(v)}else(0,m.logError)("Rubicon: bidRequest undefined at index position:".concat(n),u,e);return r}),[]).sort((function(e,r){return(r.cpm||0)-(e.cpm||0)})),v=null===(t=e.component_auction_config)||void 0===t?void 0:t.map((function(e){return{config:e,bidId:e.bidId}}));return v?{bids:l,fledgeAuctionConfigs:v}:l},getUserSyncs:function(e,r,t,n,i){if(!N&&e.iframeEnabled){var o,a={};if(t&&("boolean"==typeof t.gdprApplies&&(a.gdpr=Number(t.gdprApplies)),"string"==typeof t.consentString&&(a.gdpr_consent=t.consentString)),n&&(a.us_privacy=encodeURIComponent(n)),null!=i&&i.gppString)a.gpp=i.gppString,a.gpp_sid=null===(o=i.applicableSections)||void 0===o?void 0:o.toString();return a=Object.keys(a).length?"?".concat((0,m.formatQS)(a)):"",N=!0,{type:"iframe",url:"https://".concat(j.syncHost||"eus",".rubiconproject.com/usync.html")+a}}}};function A(e,r){var t;return t=e.params.referrer?e.params.referrer:r.refererInfo.page,e.params.secure?t.replace(/^http:/i,"https:"):t}function I(e){var r,t=document.getElementById(e.adUnitCode);(r=t.querySelector("div[id^='google_ads']"))&&r.style.setProperty("display","none"),function(e){var r=e.querySelector("script[id^='sas_script']"),t=r&&r.nextSibling;t&&"iframe"===t.localName&&t.style.setProperty("display","none")}(t);var n=h(h({},{align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0}),e.renderer.getConfig());e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:n.align,position:n.position},closeButton:n.closeButton,label:n.label,collapse:n.collapse})}))}function w(e,r){var t=e.params;if(r===p.pX){var n=[];return t.video&&t.video.playerWidth&&t.video.playerHeight?n=[t.video.playerWidth,t.video.playerHeight]:Array.isArray((0,b.Z)(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 i=[];return Array.isArray(t.sizes)?i=t.sizes:void 0!==(0,b.Z)(e,"mediaTypes.banner.sizes")?i=C(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=C(e.sizes):(0,m.logWarn)("Rubicon: no sizes are setup or found"),function(e){var r=[15,2,9];return e.sort((function(e,t){var n=r.indexOf(e),i=r.indexOf(t);return n>-1||i>-1?-1===n?1:-1===i?-1:n-i:e-t}))}(i)}function R(e,r,t){return function(n){var i,o,a=Number(null===(i=n.ext)||void 0===i?void 0:i.segtax);t.includes(a)&&(e["tg_".concat(r,".tax").concat(a)]=null===(o=n.segment)||void 0===o?void 0:o.map((function(e){return e.id})).join(","))}}function C(e){return(0,m.parseSizesInput)(e).reduce((function(e,r){var t=parseInt(k[r],10);return t&&e.push(t),e}),[])}function Z(e){var r=void 0!==(0,b.Z)(e,"mediaTypes.".concat(p.pX)),t=void 0!==(0,b.Z)(e,"mediaTypes.".concat(p.Mk)),n=void 0!==(0,b.Z)(e,"params.bidonmultiformat"),i="object"!==(0,a.Z)((0,b.Z)(e,"params.video"));return!(!r||!n)||(t&&i&&(r=!1),r&&i&&(0,g.N)(e,"params.video",{}),r)}function T(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=[];if(Z(e)){if(-1===["outstream","instream"].indexOf((0,b.Z)(e,"mediaTypes.".concat(p.pX,".context"))))return r&&(0,m.logError)("Rubicon: mediaTypes.video.context must be outstream or instream"),t;if(w(e,p.pX).length<2)return r&&(0,m.logError)("Rubicon: could not determine the playerSize of the video"),t;r&&(0,m.logMessage)("Rubicon: making video request for adUnit",e.adUnitCode),t.push(p.pX)}if(void 0!==(0,b.Z)(e,"mediaTypes.".concat(p.B5))&&t.push(p.B5),void 0!==(0,b.Z)(e,"mediaTypes.".concat(p.Mk))){if(0===w(e,p.Mk).length)return r&&(0,m.logError)("Rubicon: could not determine the sizes for banner request"),t;r&&(0,m.logMessage)("Rubicon: making banner request for adUnit",e.adUnitCode),t.push(p.Mk)}return t}function z(e){var r=!1,t=["asi","sid","hp"];return e.nodes?((r=e.nodes.reduce((function(e,r){return e?t.every((function(e){return r.hasOwnProperty(e)})):e}),!0))||(0,m.logError)("Rubicon: required schain params missing"),r):r}function E(e,r){return"rp_schain"===e?"rp_schain=".concat(r):"".concat(e,"=").concat(encodeURIComponent(r))}var N=!1;(0,u.dX)(S),(0,d.z)("rubiconBidAdapter")}},function(e){e.O(0,[25823,85279,93157,70951,79270],(function(){return r=40060,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[5901],{47602:function(e,r,t){var n=t(42982),a=t(78640),i=t(64358),o=t(20265),s=t(14699),d=t(24679),p=t(3193);function c(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return u(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 u(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,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,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw i}}}}function u(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 l=[d.Mk,d.pX],m="6.0.0",f="USD",v="hb-multi",y="hb-multi-test",g="iframe",b="pixel",h={code:"rise",aliases:[{code:"risexchange",gvlid:1043},{code:"openwebxchange",gvlid:280}],gvlid:1043,version:m,supportedMediaTypes:l,isBidRequestValid:function(e){return e.params?!!e.params.org||((0,i.logWarn)("org is a mandatory param for Rise adapter"),!1):((0,i.logWarn)("no params have been set to Rise adapter"),!1)},buildRequests:function(e,r){var t={},n=e[0],a=n.params.testMode,s=n.params.rtbDomain;return t.params=function(e,r){var t,n,a=window.location.hostname,s=p.vc.getConfig("userSync")||{},d=s.syncEnabled,c=s.filterSettings,u=r.bidderCode,l=e.params,f=r.timeout,v={wrapper_type:"prebidjs",wrapper_vendor:"pbjs",wrapper_version:"8.51.0",adapter_version:m,auction_start:(0,i.timestamp)(),publisher_id:l.org,publisher_name:a,site_domain:a,dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,device_type:_(navigator.userAgent),ua:navigator.userAgent,is_wrapper:!!l.isWrapper,session_id:l.sessionId||(0,i.getBidIdParameter)("bidderRequestId",e),tmax:f},y=(0,i.getBidIdParameter)("userId",e);y&&(v.userIds=JSON.stringify(y));var h=r.ortb2||{};h.site&&(v.site_metadata=JSON.stringify(h.site));h.user&&(v.user_metadata=JSON.stringify(h.user));if(d){var I=function(e,r){var t=["all","iframe"],n="image";if(e&&t.some((function(t){return w(e[t],r)})))return g;if(!e||!e[n]||w(e[n],r))return b}(c,u);I&&(v.cs_method=I)}r.uspConsent&&(v.us_privacy=r.uspConsent);r&&r.gdprConsent&&r.gdprConsent.gdprApplies&&(v.gdpr=r.gdprConsent.gdprApplies,v.gdpr_consent=r.gdprConsent.consentString);r&&r.gppConsent?(v.gpp=r.gppConsent.gppString,v.gpp_sid=r.gppConsent.applicableSections):null!==(t=r.ortb2)&&void 0!==t&&null!==(n=t.regs)&&void 0!==n&&n.gpp&&(v.gpp=r.ortb2.regs.gpp,v.gpp_sid=r.ortb2.regs.gpp_sid);l.ifa&&(v.ifa=l.ifa);e.schain&&(v.schain=function(e){if((0,i.isEmpty)(e))return"";var r="".concat(e.ver,",").concat(e.complete);return e.nodes.forEach((function(e){r+="!",r+="".concat(T(e.asi),","),r+="".concat(T(e.sid),","),r+="".concat(e.hp?encodeURIComponent(e.hp):"",","),r+="".concat(T(e.rid),","),r+="".concat(T(e.name),","),r+="".concat(T(e.domain))})),r}(e.schain));r&&r.refererInfo&&(v.referrer=(0,o.Z)(r,"refererInfo.ref"),v.page_url=(0,o.Z)(r,"refererInfo.page")||(0,o.Z)(window,"location.href"));return v}(n,r),t.bids=function(e,r){var t=[];e.length&&e.forEach((function(e){t.push(function(e,r){var t,n,a=e.params,s=function(e){return e.mediaTypes&&e.mediaTypes.banner}(e)?d.Mk:d.pX,p=function(e,r){var t=[];(0,o.Z)(e,"mediaTypes.".concat(r,".sizes"))?t=e.mediaTypes[r].sizes:Array.isArray(e.sizes)&&e.sizes.length>0&&(t=e.sizes);return t}(e,s);isNaN(a.floorPrice)&&(a.floorPrice=0);var c={mediaType:s,adUnitCode:(0,i.getBidIdParameter)("adUnitCode",e),sizes:p,floorPrice:Math.max(I(e,s),a.floorPrice),bidId:(0,i.getBidIdParameter)("bidId",e),bidderRequestId:(0,i.getBidIdParameter)("bidderRequestId",e),loop:(0,i.getBidIdParameter)("bidderRequestsCount",e),transactionId:null===(t=e.ortb2Imp)||void 0===t||null===(n=t.ext)||void 0===n?void 0:n.tid,coppa:0},u=(0,o.Z)(e,"mediaTypes.".concat(s,".pos"));u&&(c.pos=u);var l=(0,o.Z)(e,"ortb2Imp.ext.gpid");l&&(c.gpid=l);var m=a.placementId||(0,o.Z)(e,"mediaTypes.".concat(s,".name"));m&&(c.placementId=m);var f=(0,o.Z)(e,"mediaTypes.".concat(s,".mimes"));f&&(c.mimes=f);var v=(0,o.Z)(e,"mediaTypes.".concat(s,".api"));v&&(c.api=v);var y=(0,o.Z)(e,"ortb2.device.sua");y&&(c.sua=y);(0,o.Z)(e,"ortb2.regs.coppa")&&(c.coppa=1);if(s===d.pX){var g,b=(0,o.Z)(e,"mediaTypes.video.playbackmethod");Array.isArray(b)&&(0,i.isInteger)(b[0])?g=b[0]:(0,i.isInteger)(b)&&(g=b),g&&(c.playbackMethod=g);var h=(0,o.Z)(e,"mediaTypes.video.placement");h&&(c.placement=h);var T=(0,o.Z)(e,"mediaTypes.video.minduration");T&&(c.minDuration=T);var w=(0,o.Z)(e,"mediaTypes.video.maxduration");w&&(c.maxDuration=w);var C=(0,o.Z)(e,"mediaTypes.video.skip");C&&(c.skip=C);var _=(0,o.Z)(e,"mediaTypes.video.linearity");_&&(c.linearity=_);var S=(0,o.Z)(e,"mediaTypes.video.protocols");S&&(c.protocols=S);var Z=(0,o.Z)(e,"mediaTypes.video.plcmt");Z&&(c.plcmt=Z)}return c}(e))}));return t}(e),{method:"POST",url:C(a,s),data:t}},interpretResponse:function(e){var r=e.body,t=[];return r.bids&&r.bids.forEach((function(e){var r={requestId:e.requestId,cpm:e.cpm,currency:e.currency||f,width:e.width,height:e.height,ttl:e.ttl||360,creativeId:e.creativeId,netRevenue:e.netRevenue||!0,nurl:e.nurl,mediaType:e.mediaType,meta:{mediaType:e.mediaType}};e.mediaType===d.pX?r.vastXml=e.vastXml:e.mediaType===d.Mk&&(r.ad=e.ad),e.adomain&&e.adomain.length&&(r.meta.advertiserDomains=e.adomain),t.push(r)})),t},getUserSyncs:function(e,r){var t,a=[],o=c(r);try{for(o.s();!(t=o.n()).done;){var s=t.value;if(e.iframeEnabled&&s.body.params.userSyncURL&&a.push({type:"iframe",url:s.body.params.userSyncURL}),e.pixelEnabled&&(0,i.isArray)(s.body.params.userSyncPixels)){var d=s.body.params.userSyncPixels.map((function(e){return{type:"image",url:e}}));a.push.apply(a,(0,n.Z)(d))}}}catch(e){o.e(e)}finally{o.f()}return a},onBidWon:function(e){null!=e&&((0,i.logInfo)("onBidWon:",e),e.hasOwnProperty("nurl")&&e.nurl.length>0&&(0,i.triggerPixel)(e.nurl))}};function I(e,r){if(!(0,i.isFn)(e.getFloor))return 0;var t=e.getFloor({currency:f,mediaType:r,size:"*"});return t.currency===f&&t.floor?t.floor:0}function T(e){return(0,i.isEmpty)(e)?"":encodeURIComponent(e)}function w(e,r){if(!e)return!1;var t="include"===e.filter,n=(0,i.isArray)(e.bidders)?e.bidders:[r];return t&&(0,i.contains)(n,r)}function C(e,r){var t=r?"https://".concat(r,"/"):"https://hb.yellowblue.io/";return e?t+y:t+v}function _(e){return/ipad|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(e.toLowerCase())?"5":/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(e.toLowerCase())?"4":/smart[-_\s]?tv|hbbtv|appletv|googletv|hdmi|netcast|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b/i.test(e.toLowerCase())?"3":"1"}(0,s.dX)(h),(0,a.z)("riseBidAdapter")}},function(e){e.O(0,[25823,79270],(function(){return r=47602,e(e.s=r);var r}));e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[93769],{896:function(t,e,n){var i=n(42982),r=n(78640),a=n(64358),o=n(20265),d=n(14699),s=n(3193),u=n(24679),c=n(25102),l=n(35706),p=n(70059),m=n(10075),f="medianet",g="trustedstack",b="https://prebid.media.net/video/bundle.js",h=0,y=1,v=2,w="client_timeout",x="client_bid_won",_=(0,c.nH)(),I={};window.mnet=window.mnet||{},window.mnet.queue=window.mnet.queue||[],I.urlData={domain:_.domain,page:_.page,isTop:_.reachedTop};var T=[{code:g,gvlid:1288}];function E(){try{return window.top.document.referrer}catch(t){return document.referrer}}function O(t,e){var n=e.refererInfo,i={domain:(t=t||{}).domain||n.domain,page:t.page||n.page,ref:t.ref||E(),topMostLocation:n.topmostLocation,isTop:t.isTop||n.reachedTop};return Object.assign(i,function(){if(I.pageMeta)return I.pageMeta;var t=R('link[rel="canonical"]',"href"),e=R('meta[property="og:url"]',"content"),n=R('meta[name="twitter:url"]',"content");return I.pageMeta=Object.assign({},t&&{canonical_url:t},e&&{og_url:e},n&&{twitter_url:n}),I.pageMeta}())}function R(t,e){var n,i,r=function(t,e){try{var n=(0,a.getWindowTop)().document.querySelector(t);if(null!==n&&n[e])return n[e]}catch(t){}}(t,e);return r&&(n=r,(i=(0,a.getWindowTop)().document.createElement("a")).href=n,i.href)}function C(t,e){return t.filter((function(t){return t.type===e}))}function M(t){return{w:parseInt(t[0],10),h:parseInt(t[1],10)}}function S(t,e){var n=(0,o.Z)(t,"params"),i=(0,o.Z)(e,"gdprConsent"),d=(0,o.Z)(e,"uspConsent"),u=(0,o.Z)(t,"userId"),c=(0,o.Z)(t,"schain")||{},l=z.getWindowSize(),p=!(!i||!i.gdprApplies),m=!!d,f=!!s.vc.getConfig("coppa");return Object.assign({},{customer_id:n.cid},{prebid_version:(0,r.R)().version},{gdpr_applies:p},p&&{gdpr_consent_string:i.consentString||""},{usp_applies:m},m&&{usp_consent_string:d||""},{coppa_applies:f},-1!==l.w&&-1!==l.h&&{screen:l},u&&{user_id:u},(0,r.R)().medianetGlobals.analyticsEnabled&&{analytics:!0},!(0,a.isEmpty)(c)&&{schain:c})}function Z(t,e){var n,i,r={id:t.bidId,transactionId:null===(n=t.ortb2Imp)||void 0===n||null===(i=n.ext)||void 0===i?void 0:i.tid,ext:{dfp_id:t.adUnitCode,display_count:t.bidRequestsCount},all:t.params};t.ortb2Imp&&(r.ortb2Imp=t.ortb2Imp);var d,s=(0,o.Z)(t,"mediaTypes.banner.sizes")||[],c=(0,o.Z)(t,"mediaTypes.video")||{},l=(0,o.Z)(t,"params.video")||{},p=Object.assign({},l,c);if((0,a.isEmpty)(p)||(r.video=p),s.length>0&&(r.banner=(d=s,(0,a.isArray)(d)&&2===d.length&&!(0,a.isArray)(d[0])?[M(d)]:d.map((function(t){return M(t)})))),t.nativeParams)try{r.native=JSON.stringify(t.nativeParams)}catch(t){(0,a.logError)("".concat(f," : Incorrect JSON : bidRequest.nativeParams"))}t.params.crid&&(r.tagid=t.params.crid.toString());var g=parseFloat(t.params.bidfloor||t.params.bidFloor);g&&(r.bidfloor=g);var b=function(t){var e=document.getElementById(t);if(!e&&-1!==t.indexOf("/")){var n=(0,m.ky)(t).divId;(0,a.isStr)(n)&&(e=document.getElementById(n))}if(e&&e.getBoundingClientRect){var i=e.getBoundingClientRect(),r={};return r.top_left={y:i.top,x:i.left},r.bottom_right={y:i.bottom,x:i.right},r}return null}(t.adUnitCode);if(b&&r.banner&&0!==r.banner.length){var w=function(t){return{top_left:{x:t.top_left.x+window.pageXOffset,y:t.top_left.y+window.pageYOffset},bottom_right:{x:t.bottom_right.x+window.pageXOffset,y:t.bottom_right.y+window.pageYOffset}}}(b);r.ext.coordinates=w,r.ext.viewability=A(b.top_left,j(r.banner)),A(w.top_left,j(r.banner))>.5?r.ext.visibility=y:r.ext.visibility=v}else r.ext.visibility=h;var x,_,I=function(t){var e=[];"function"==typeof t.getFloor&&[u.Mk,u.pX,u.B5].forEach((function(n){t.mediaTypes.hasOwnProperty(n)&&(n==u.Mk?t.mediaTypes.banner.sizes.forEach((function(i){k(t,n,i,e)})):k(t,n,"*",e))}));return e}(t);(I&&I.length>0&&(r.bidfloors=I),e.fledgeEnabled)&&(r.ext.ae=null==t||null===(x=t.ortb2Imp)||void 0===x||null===(_=x.ext)||void 0===_?void 0:_.ae);return r}function k(t,e,n,i){var r=t.getFloor({currency:"USD",mediaType:e,size:n});n.length>1&&(r.size=n),r.mediaType=e,i.push(r)}function j(t){return t.reduce((function(t,e){return e.h*e.w<t.h*t.w?e:t}))}function A(t,e){var n=e.w*e.h,i=z.getWindowSize(),r={x:t.x+e.w,y:t.y+e.h};return 0===n||-1===i.w||-1===i.h?0:function(t,e,n,i){if(t.x>i.x||e.x<n.x||t.y>i.y||e.y<n.y)return 0;return(Math.min(e.x,i.x)-Math.max(t.x,n.x))*(Math.min(e.y,i.y)-Math.max(t.y,n.y))}(t,r,{x:0,y:0},{x:i.w,y:i.h})/n}function q(t,e){e=(0,a.isArray)(e)&&e||[];var n={logid:"kfk",evtid:"projectevents",project:"prebid"};return n.acid=(0,o.Z)(e,"0.auctionId")||"",n.cid=(0,r.R)().medianetGlobals.cid||"",n.crid=e.map((function(t){return(0,o.Z)(t,"params.0.crid")||t.adUnitCode})).join("|"),n.adunit_count=e.length||0,n.dn=I.urlData.domain||"",n.requrl=I.urlData.page||"",n.istop=I.urlData.isTop||"",n.event=t.name||"",n.value=t.value||"",n.rd=t.related_data||"",n}function B(t,e){var n={protocol:"https",hostname:"qsearch-a.akamaihd.net/log",search:q(t,e)};(0,a.triggerPixel)((0,a.buildUrl)(n))}function U(t){var e,n=(0,o.Z)(t,"context")||"",i=(0,o.Z)(t,"vto");"outstream"==n&&i&&(t.renderer=((e=l.Th.install({url:b})).setRender((function(t){window.mnet.queue.push((function(){var e={width:t.width,height:t.height,vastTimeout:t.vto,maxAllowedVastTagRedirects:t.mavtr,allowVpaid:t.avp,autoPlay:t.ap,preload:t.pl,mute:t.mt},n=t.dfp_id,i=(0,m.ky)(n).divId||n;window.mnet.mediaNetoutstreamPlayer(t,i,e)}))})),e))}(0,r.R)().medianetGlobals=(0,r.R)().medianetGlobals||{};var z={code:f,gvlid:142,aliases:T,supportedMediaTypes:[u.Mk,u.B5,u.pX],isBidRequestValid:function(t){return t.params?t.params.cid&&(0,a.isStr)(t.params.cid)&&!(0,a.isEmptyStr)(t.params.cid)?(Object.assign((0,r.R)().medianetGlobals,!(0,r.R)().medianetGlobals.cid&&{cid:t.params.cid}),!0):((0,a.logError)("".concat(f," : cid should be a string")),!1):((0,a.logError)("".concat(f," : Missing bid parameters")),!1)},buildRequests:function(t,e){var n,i,r=function(t,e){return{site:O(t[0].params.site,e),ext:S(t[0],e),id:t[0].auctionId,imp:t.map((function(t){return Z(t,e)})),ortb2:e.ortb2,tmax:e.timeout}}(t=(0,p.lY)(t),e);return{method:"POST",url:(n=e.bidderCode,i=r.ext.customer_id,(n===g?"https://prebid.trustedstack.com/rtb/trustedstack":"https://prebid.media.net/rtb/prebid")+"?cid="+encodeURIComponent(i)),data:JSON.stringify(r)}},interpretResponse:function(t,e){var n=[];if(!t||!t.body)return(0,a.logInfo)("".concat(f," : response is empty")),n;var r=t.body.bidList;(0,a.isArray)(r)&&0!==r.length?(n=r.filter((function(t){return function(t){return!1===t.no_bid&&parseFloat(t.cpm)>0}(t)}))).forEach(U):(0,a.logInfo)("".concat(f," : no bids"));var d=(0,o.Z)(t,"body.ext.paApiAuctionConfigs")||[],s=(0,o.Z)(t,"body.ext.igi")||[];return 0===d.length&&0===s.length?n:(s.length>0&&d.push.apply(d,(0,i.Z)(s.map((function(t){return t.igs||[]})).flat())),{bids:n,fledgeAuctionConfigs:d})},getUserSyncs:function(t,e){var n,i=(n=e,!(0,a.isEmpty)(n)&&n[0].body&&n[0].body.ext&&(0,a.isArray)(n[0].body.ext.csUrl)?n[0].body.ext.csUrl:[]);return t.iframeEnabled?C(i,"iframe"):t.pixelEnabled?C(i,"image"):void 0},onTimeout:function(t){try{B({name:w,value:t.length,related_data:t[0].timeout||s.vc.getConfig("bidderTimeout")},t)}catch(t){}},onBidWon:function(t){try{B({name:x,value:t.cpm},[t])}catch(t){}},clearMnData:function(){I={}},getWindowSize:function(){return{w:window.screen.width||-1,h:window.screen.height||-1}}};(0,d.dX)(z),(0,r.z)("medianetBidAdapter")}},function(t){t.O(0,[29703,25823,79270],(function(){return e=896,t(t.s=e);var e}));t.O()}]);
pbjs.processQueue();