/**
 * Assertive Yield - Yield Manager script.
 * v3.5.0
 *
 * © 2018-2025 Assertive Yield B.V. All Rights Reserved.
 */
!function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){if(e){if("string"==typeof e)return t(e,n);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)?t(e,n):void 0}}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t,n,r,i,o,a){try{var c=e[o](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function c(e){a(o,r,i,c,s,"next",e)}function s(e){a(o,r,i,c,s,"throw",e)}c(void 0)}))}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l,d=Object.prototype,u=d.hasOwnProperty,f="function"==typeof Symbol?Symbol:{},p=f.iterator||"@@iterator",g=f.asyncIterator||"@@asyncIterator",h=f.toStringTag||"@@toStringTag";function v(e,t,n,r){var i=t&&t.prototype instanceof I?t:I,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r=y;return function(i,o){if(r===b)throw new Error("Generator is already running");if(r===w){if("throw"===i)throw o;return j()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=L(a,n);if(c){if(c===T)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===y)throw r=w,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=b;var s=m(e,t,n);if("normal"===s.type){if(r=n.done?w:E,s.arg===T)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=w,n.method="throw",n.arg=s.arg)}}}(e,n,a),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}var y="suspendedStart",E="suspendedYield",b="executing",w="completed",T={};function I(){}function S(){}function O(){}var A={};A[p]=function(){return this};var R=Object.getPrototypeOf,_=R&&R(R(B([])));_&&_!==d&&u.call(_,p)&&(A=_);var N=O.prototype=I.prototype=Object.create(A);function U(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function P(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))}function D(e,t){function n(r,o,a,c){var s=m(e[r],e,o);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"===i(d)&&u.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var r;this._invoke=function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}}function L(e,t){var n=e.iterator[t.method];if(n===l){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=l,L(e,t),"throw"===t.method))return T;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var r=m(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,T;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=l),t.delegate=null,T):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,T)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function B(e){if(e){var t=e[p];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(u.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=l,t.done=!0,t};return r.next=r}}return{next:j}}function j(){return{value:l,done:!0}}S.prototype=N.constructor=O,O.constructor=S,O[h]=S.displayName="GeneratorFunction",U(D.prototype),D.prototype[g]=function(){return this},U(N),N[h]="Generator",N[p]=function(){return this},N.toString=function(){return"[object Generator]"},x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&u.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=l),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=u.call(i,"catchLoc"),c=u.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&u.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,T):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),T},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),T}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:B(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=l),T}};var F,k,H,z,G={wrap:v,isGeneratorFunction:P,AsyncIterator:D,mark:function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,h in e||(e[h]="GeneratorFunction")),e.prototype=Object.create(N),e},awrap:function(e){return{__await:e}},async:function(e,t,n,r,i){void 0===i&&(i=Promise);var o=new D(v(e,t,n,r),i);return P(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},keys:function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},values:B};function W(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}function V(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(i(e)+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function a(e,n){if(n&&("object"===i(n)||"function"==typeof n)){var c=n.then;if("function"==typeof c)return void c.call(n,(function(t){a(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--o&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--o&&t(r)}for(var c=0;c<r.length;c++)a(c,r[c])}))}function Y(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}function q(e){var t=this;return new t((function(n,r){if(!e||void 0===e.length)return r(new TypeError("Promise.any accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return r();for(var o=[],a=0;a<i.length;a++)try{t.resolve(i[a]).then(n).catch((function(e){o.push(e),o.length===i.length&&r(new Y(o,"All promises were rejected"))}))}catch(e){r(e)}}))}Array.prototype.find||(Array.prototype.find=function(e){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=void 0,o=0;o<n;o++)if(i=t[o],e.call(r,i,o,t))return i}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return i;i++}return-1}}),Array.prototype.includes||(Array.prototype.includes=function(e){if(null==this)throw new TypeError("Array.prototype.includes called on null or undefined");var t=Object(this),n=parseInt(t.length,10)||0;if(0===n)return!1;var r,i,o=parseInt(arguments[1],10)||0;for(0<=o?r=o:(r=n+o)<0&&(r=0);r<n;){if(e===(i=t[r])||e!=e&&i!=i)return!0;r++}return!1}),Array.from||(Array.from=(F=Object.prototype.toString,k=function(e){return"function"==typeof e||"[object Function]"===F.call(e)},H=Math.pow(2,53)-1,z=function(e){var t,n=(t=Number(e),isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t);return Math.min(Math.max(n,0),H)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=1<arguments.length?arguments[1]:void 0;if(void 0!==r){if(!k(r))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(n=arguments[2])}for(var i,o=z(t.length),a=k(this)?Object(new this(o)):new Array(o),c=0;c<o;)i=t[c],a[c]=r?void 0===n?r(i,c):r.call(n,i,c):i,c+=1;return a.length=o,a})),"function"!=typeof Object.entries&&(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}),"function"!=typeof Object.values&&(Object.values=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r}),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}),String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),Y.prototype=Error.prototype;var J=setTimeout;function K(e){return Boolean(e&&void 0!==e.length)}function X(){}function Z(e){if(!(this instanceof Z))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],re(e,this)}function Q(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,Z._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void ee(t.promise,e)}$(t.promise,r)}else(1===e._state?$:ee)(t.promise,e._value)}))):e._deferreds.push(t)}function $(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===i(t)||"function"==typeof t)){var n=t.then;if(t instanceof Z)return e._state=3,e._value=t,void te(e);if("function"==typeof n)return void re((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,te(e)}catch(t){ee(e,t)}var r,o}function ee(e,t){e._state=2,e._value=t,te(e)}function te(e){2===e._state&&0===e._deferreds.length&&Z._immediateFn((function(){e._handled||Z._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)Q(e,e._deferreds[t]);e._deferreds=null}function ne(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function re(e,t){var n=!1;try{e((function(e){n||(n=!0,$(t,e))}),(function(e){n||(n=!0,ee(t,e))}))}catch(e){if(n)return;n=!0,ee(t,e)}}Z.prototype.catch=function(e){return this.then(null,e)},Z.prototype.then=function(e,t){var n=new this.constructor(X);return Q(this,new ne(e,t,n)),n},Z.prototype.finally=W,Z.all=function(e){return new Z((function(t,n){if(!K(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function a(e,c){try{if(c&&("object"===i(c)||"function"==typeof c)){var s=c.then;if("function"==typeof s)return void s.call(c,(function(t){a(e,t)}),n)}r[e]=c,0==--o&&t(r)}catch(e){n(e)}}for(var c=0;c<r.length;c++)a(c,r[c])}))},Z.any=q,Z.allSettled=V,Z.resolve=function(e){return e&&"object"===i(e)&&e.constructor===Z?e:new Z((function(t){t(e)}))},Z.reject=function(e){return new Z((function(t,n){n(e)}))},Z.race=function(e){return new Z((function(t,n){if(!K(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=e.length;r<i;r++)Z.resolve(e[r]).then(t,n)}))},Z._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){J(e,0)},Z._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var ie,oe,ae,ce,se,le,de,ue,fe=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function ge(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:t+""}function he(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}"function"!=typeof fe.Promise?fe.Promise=Z:(fe.Promise.prototype.finally||(fe.Promise.prototype.finally=W),fe.Promise.allSettled||(fe.Promise.allSettled=V),fe.Promise.any||(fe.Promise.any=q));var ve,me="ayManagerEnv";!function(e){e.BETA="beta",e.STABLE="stable",e.LEGACY="legacy"}(ve||(ve={}));var ye,Ee,be,we;he(ie={},ve.BETA,"3.5.0"),he(ie,ve.STABLE,"3.0.16-hotfix.9"),he(ie,ve.LEGACY,"3.0.16-hotfix.9");!function(e){e.MANUAL="manual",e.INCREMENTAL="history",e.REFRESH="REFRESH",e.RESET="RESET"}(ye||(ye={})),he(oe={},ye.MANUAL,"Manual"),he(oe,ye.INCREMENTAL,"Incremental"),he(oe,ye.REFRESH,"Refresh"),he(oe,ye.RESET,"Reset"),function(e){e.PLACEMENTS="placements",e.BIDDERS="bidders",e.NAMESPACE="namespace",e.VERSIONS="versions",e.SETTINGS="settings"}(Ee||(Ee={})),function(e){e.PLACEMENTS="Placements",e.BIDDERS="Bidders",e.NAMESPACE="Namespace",e.VERSIONS="Versions",e.SETTINGS="Settings"}(be||(be={})),function(e){e.INSTALLED="INSTALLED",e.NOT_INSTALLED="NOT_INSTALLED",e.INSTALLING="INSTALLING"}(we||(we={}));var Te=/\w(?:[\w ]*\w)?/,Ie=new RegExp("(?:\\.".concat(Te.source,")*")),Se=new RegExp("((".concat(/GLOBAL\./.source,")?(").concat(Te.source,"))"));new RegExp("(\\{\\{ *)"+"(".concat(Se.source,")")+"(".concat(Ie.source,")")+"( *\\}\\})");var Oe,Ae=new RegExp("(\\{\\{ *)"+"(".concat(/\w+/.source,")")+"(".concat(Ie.source,")")+"( *\\}\\})"),Re=/\w(?:[\w ]*\w)?/,_e=new RegExp("(".concat(Re.source,")(?:\\.").concat(Re.source,")*")),Ne=new RegExp("(\\[\\[ *)"+"(".concat(_e.source,")")+"( *\\]\\])");!function(e){e.JAVASCRIPT="JAVASCRIPT",e.DROPDOWN="DROPDOWN",e.DROPDOWN_CREATABLE="DROPDOWN_CREATABLE",e.DROPDOWNMULTI="DROPDOWNMULTI",e.DROPDOWNMULTI_CREATABLE="DROPDOWNMULTI_CREATABLE",e.TEXT="TEXT",e.SWITCHER="SWITCHER",e.CSS="CSS",e.HTML="HTML",e._SIZES="_SIZES",e._PARAMS_LIST="_PARAMS_LIST",e._REFRESH="_REFRESH",e._PATH="_PATH"}(Oe||(Oe={}));var Ue,Pe,De,Le,Me,Ce,xe,Be,je,Fe,ke,He,ze,Ge,We,Ve,Ye,qe,Je,Ke,Xe,Ze,Qe,$e,et=["beforebegin","afterbegin","beforeend","afterend"];!function(e){e.BANNER="banner",e.VIDEO_OUTSTREAM="video - outstream"}(Ue||(Ue={})),function(e){e.HTML5="html5",e.COOKIE="cookie"}(Pe||(Pe={})),function(e){e.AD_UNIT_DEFAULTS="AD_UNIT_DEFAULTS",e.AD_UNITS="AD_UNITS",e.PLACEMENT_DEFAULTS="PLACEMENT_DEFAULTS",e.PLACEMENTS="PLACEMENTS",e.HTML_UNITS="HTML_UNITS",e.BIDDERS="BIDDERS",e.PARAMS_OVERRIDE="PARAMS_OVERRIDE",e.REFRESH_CONTROLS="REFRESH_CONTROLS"}(De||(De={})),function(e){e[e.PLACEMENTS=500]="PLACEMENTS",e[e.AD_UNITS=500]="AD_UNITS",e[e.AD_UNITS_REFS=500]="AD_UNITS_REFS",e[e.HTML_UNITS_REFS=500]="HTML_UNITS_REFS",e[e.HTML_UNITS=200]="HTML_UNITS",e[e.PARAMS_GROUPS=200]="PARAMS_GROUPS",e[e.BIDDERS=150]="BIDDERS",e[e.GLOBAL_VARIABLES=500]="GLOBAL_VARIABLES",e[e.VARIABLES=500]="VARIABLES",e[e.CONDITIONS=200]="CONDITIONS",e[e.TRIGGERS=50]="TRIGGERS",e[e.REFRESH_CONTROLS=50]="REFRESH_CONTROLS",e[e.SPLIT_TEST=7]="SPLIT_TEST",e[e.CONDITION_GROUP_NODES=15]="CONDITION_GROUP_NODES",e[e.TRIGGER_CONDITIONS=10]="TRIGGER_CONDITIONS",e[e.REFRESH_CONTROL_RULES=20]="REFRESH_CONTROL_RULES",e[e.PARAMS_GROUPS_CONDITIONS=10]="PARAMS_GROUPS_CONDITIONS"}(Le||(Le={})),he(ae={},De.AD_UNITS,{enabled:{renderType:Oe.SWITCHER,isPopOver:!1,label:"Enabled"},path:{renderType:Oe._PATH,needsParsing:!0,trimValueOnSave:!0,isPopOver:!1,label:"Ad Unit path",isDynamicOptions:!1,invertTruncatedDisplay:!0,explanation:'The GPT full Ad Unit path (e.g. /19968336/header-bid-tag-0). \nMore info: https://developers.google.com/publisher-tag/guides/get-started#ad-unit-path. \n\nNote: You can also place the Ad Unit path "inside" a Yield Manager variable and use that variable name here. \nThis can be useful to reduce the number of variables in the workspace.'},name:{renderType:Oe.TEXT,trimValueOnSave:!0,isPopOver:!1,label:"Internal Name",explanation:"A unique name to identify this Ad Unit."},conditions:{renderType:Oe.DROPDOWNMULTI,isPopOver:!0,label:"Enable if",isDynamicOptions:!0,allowEmpty:!0,emptyPlaceholder:"always",explanation:"If provided, the Ad Unit will only be enabled if all conditions evaluate to be true.",emptyValue:[]},mediaTypes:{renderType:Oe.DROPDOWNMULTI,options:Object.values(Ue),isPopOver:!0,label:"Media types"},sizes:{renderType:Oe._SIZES,isPopOver:!0,label:"Sizes",isDynamicOptions:!0,explanation:"All sizes this Ad Unit can accept. Prebid recommends that the AdUnit sizes should match the GPT sizes. \n\nThe size of the video player for video media types can be specified by appending the 'v' letter to it.\n\nThe 'fluid' size will only take effect for GAM."},refresh:{renderType:Oe._REFRESH,isPopOver:!0,label:"Refresh",explanation:"Use either a simple numeric value (in seconds) or select 'refresh controls' that you've created (Namespace > Refresh Controls).",emptyValue:null}}),he(ae,De.PLACEMENTS,{enabled:{renderType:Oe.SWITCHER,isPopOver:!1,label:"Enabled"},code:{renderType:Oe.TEXT,isPopOver:!1,trimValueOnSave:!0,label:"Identifier Name",explanation:"GPT HTML div ID (ID of the div that will contain this Ad Unit). e.g. div-gpt-ad-header.\n\nIf you have two Placements with the same Identifier Name, be sure to add conditions so that they are never enabled at the same time."},name:{renderType:Oe.TEXT,trimValueOnSave:!0,isPopOver:!1,label:"Internal Name",explanation:"A unique name to identify this Placement in Yield Manager."},conditions:{renderType:Oe.DROPDOWNMULTI,isPopOver:!0,label:"Enable if",isDynamicOptions:!0,allowEmpty:!0,emptyPlaceholder:"always",explanation:"If provided, the Placement will only be enabled if all conditions evaluate to be true.",emptyValue:[]},fetchTrigger:{renderType:Oe.DROPDOWNMULTI,isPopOver:!0,label:"Fetch Trigger",isDynamicOptions:!0,emptyValue:[],explanation:"When the Prebid auction for this placement should kick off. You can set multiple triggers and the auction will run as soon as any of the triggers fire."},trigger:{renderType:Oe.DROPDOWNMULTI,isPopOver:!0,label:"Render Trigger",isDynamicOptions:!0,emptyValue:[],explanation:"When the given placement should be rendered on the page. You can set multiple triggers and the placement will be activated as soon as any of the triggers fire."},inject:{renderType:Oe.SWITCHER,isPopOver:!1,label:"Inject",explanation:"Whether Yield Manager should inject the ad unit placeholder on the page for you.\n\nIf enabled, it will inject Ad Units in the element found by the 'Placement' selector using the 'Position'. \n\nIf disabled, you'll have to add the Placement snippet code to the page yourself. Also, the 'Placement' and 'Position' columns will be ignored.\n\nDisabling this is useful for infinite scroll layouts."},placement:{renderType:Oe.TEXT,trimValueOnSave:!0,isPopOver:!1,label:"Placement",needsParsing:!0,explanation:"A CSS query string matching the elements on which Ad Units should be placed. The 'Position' column will be used to place the Ad Unit relative to this element. Note that the Yield Manager script will do a 'querySelectorAll', meaning that every element that matches this placement string will get the Ad Unit attached to it."},position:{renderType:Oe.DROPDOWN,options:et,isPopOver:!0,label:"Position",explanation:"'beforebegin': Before the element. 'afterbegin': Inside the element, before its first child. 'beforeend': Inside the element, after its last child. 'afterend': After the element. "},lazyLoad:{renderType:Oe.SWITCHER,isPopOver:!1,label:"Lazy Fetch",explanation:"The auction will only run when the placement's target location is in view or about to be. Choose the margin offset in the settings page.\n\nIf disabled while Lazy Render is enabled, it will fetch bids as soon as the trigger fires, but will only render it once the Render Trigger fires and it is within its margin."},lazyRender:{renderType:Oe.SWITCHER,isPopOver:!1,label:"Lazy Render",explanation:"The ads rendering process will only start when the placement's target location is in view or about to be. Choose the margin offset in the settings page.\n\nIf disabled while Lazy Fetch is enabled, it will only fetch bids once the Fetch Trigger fires and it is within its margin, but will render it as soon as the Render Trigger fires and the bids are available."},slug:{renderType:Oe.SWITCHER,isPopOver:!1,label:"Slug",explanation:"If enabled, a placeholder with the text 'Ad' will be placed above the ad."},style:{renderType:Oe.CSS,trimValueOnSave:!0,isPopOver:!0,label:"Style",needsParsing:!0,allowVarRef:!0,emptyValue:"{}"},adUnits:{label:"Ad Units",explanation:"Which Ad Units should be placed based on this placement"},htmlUnits:{label:"HTML Units",explanation:"Which HTML Units should be placed based on this placement"}}),he(ae,De.HTML_UNITS,{enabled:{renderType:Oe.SWITCHER,isPopOver:!1,label:"Enabled"},name:{renderType:Oe.TEXT,trimValueOnSave:!0,isPopOver:!1,label:"Name",explanation:"A unique name to identify this HTML Unit."},conditions:{renderType:Oe.DROPDOWNMULTI,isPopOver:!0,label:"Enable if",isDynamicOptions:!0,allowEmpty:!0,emptyPlaceholder:"always",explanation:"If provided, the HTML Unit will only be enabled if all conditions evaluate to be true."},htmlCode:{renderType:Oe.HTML,trimValueOnSave:!0,isPopOver:!0,label:"HTML Code",allowVarRef:!0,needsParsing:!0}}),he(ae,De.BIDDERS,{enabled:{renderType:Oe.SWITCHER,isPopOver:!1,label:"Enabled"},bidder:{renderType:Oe.TEXT,trimValueOnSave:!0,isPopOver:!1,label:"Bidder",explanation:"The Bidder Adapter's name."},alias:{renderType:Oe.TEXT,trimValueOnSave:!0,isPopOver:!1,label:"Alias",explanation:"An alias for the Bidder's name. The alias can help avoid user confusion since it's possible to send parameters to the same adapter but in different contexts.\n\nAn alias will only be used if this field is set. If left unset (\"default value\"), no alias will be applied."},name:{renderType:Oe.TEXT,trimValueOnSave:!0,isPopOver:!1,label:"Name",explanation:"A unique name to identify this Bidder."},conditions:{renderType:Oe.DROPDOWNMULTI,isPopOver:!0,label:"Enable if",isDynamicOptions:!0,allowEmpty:!0,emptyPlaceholder:"always",explanation:"If provided, the Bidder will only be enabled if all conditions evaluate to be true."},params:{renderType:Oe.JAVASCRIPT,trimValueOnSave:!0,disableSaveOnBlurIfNotDirty:!0,isPopOver:!0,label:"Params Template",needsParsing:!0,allowVarRef:!0,allowPlaceholderRef:!0,emptyValue:null,explanation:'The base params for this bidder. By manually editing this field, the params column will be ignored and only referenced params will be in the PlacementID table.\n\nYou can directly add param values that are static, e.g.: { floor: 0.5 }, while for params whose values change based on the Ad Unit ID or page Domain (e.g. placementId, siteId), you should add them as: { siteId: [[siteId]] }. \n\nPlease note that if the param is a string you should add the reference inside quotes: { siteId: "[[siteId]]" }'},paramsList:{renderType:Oe._PARAMS_LIST,isPopOver:!0,label:"Params",needsParsing:!1,explanation:"The base params for this bidder.\n\nYou can toggle built-in parameters for built-in bidders as well as add custom ones by specifying the name and type.\n\nThese params will be used to populate the Placement IDs table as columns under each bidder."},cpmAdjustments:{renderType:Oe.TEXT,trimValueOnSave:!0,isPopOver:!1,label:"CPM Adj.",needsParsing:!0,explanation:"A decimal number that will be used to adjust the bid price returned by the bidder. This can be useful if the bidder returns gross prices instead of net prices"},storageAllowed:{renderType:Oe.DROPDOWNMULTI,options:Object.values(Pe),isPopOver:!0,allowEmpty:!0,emptyPlaceholder:"None",label:"Storage",explanation:"Whether the bidder is allowed to store cookies or other data on the user's device and which method. \n\n 'html5': local storage. 'cookie': cookies. 'html5' + 'cookie': both. empty: none."},gvlid:{renderType:Oe.TEXT,isPopOver:!1,label:"GVLID",needsParsing:!0,explanation:"The Global Vendor List ID is used in Prebid.js as an identifier for vendors participating in the TCF Framework managed by IAB.\n\nIf set to 0, no ID will be set.\n\nIf left unset (\"default value\"), it will set the 'useBaseGvlid' flag (PBJS 9.14+), which uses the GVLID of the original adapter."}}),he(ae,De.PARAMS_OVERRIDE,{params:{renderType:Oe.JAVASCRIPT,trimValueOnSave:!0,disableSaveOnBlurIfNotDirty:!0,isPopOver:!0,label:"Params",needsParsing:!0,allowVarRef:!0,allowPlaceholderRef:!0,emptyValue:null,explanation:'Will replace the params for this bidder.\n\nYou should directly add param values that are static, e.g.: { floor: 0.5 }. But params whose values change based on the Ad Unit ID or page Domain (e.g. placementId, siteId), you should add them like this: { siteId: [[siteId]] }. \n\nPlease note that if the param is a string you should add the reference inside quotes: { siteId: "[[siteId]]" }'}}),he(ae,De.REFRESH_CONTROLS,{name:{renderType:Oe.TEXT,isPopOver:!1,label:"Name",explanation:"A unique name to identify this Refresh Control."},conditions:{renderType:Oe.DROPDOWNMULTI,isPopOver:!0,label:"Enable if",isDynamicOptions:!0,allowEmpty:!0,emptyPlaceholder:"always",explanation:"If provided, the refresh control group will only be enabled if all conditions evaluate to be true."},defaultRefresh:{renderType:Oe.TEXT,isPopOver:!1,label:"Default Refresh",needsParsing:!0,explanation:"The default refresh is used as fallback when no rule is matching the impression."},refreshCallsLimit:{renderType:Oe.TEXT,isPopOver:!1,label:"Refresh Limit",needsParsing:!0,explanation:"If set to a value greater than 0, it stops refreshing the ad unit instance after reaching the limit."}}),function(e){e.CHANGED="changed",e.ADDED="added",e.REMOVED="removed"}(Me||(Me={})),function(e){e.AD_UNIT_DEFAULTS="Ad unit Defaults",e.AD_UNITS="Ad units",e.BIDDERS="Bidders",e.PARAMS_DEFAULTS="Params Defaults",e.PARAMS_GROUPS="Params Groups",e.PLACEMENT_DEFAULTS="Placement Defaults",e.PLACEMENTS="Placements",e.HTML_UNITS="HTML units",e.PREBID_SCRIPT="Prebid script",e.YIELD_MANAGER_SCRIPT="Yield Manager script",e.VARIABLES="Variables",e.CONDITIONS="Conditions",e.TRIGGERS="Triggers",e.SETTINGS="settings",e.REFRESH_CONTROLS="Refresh Controls",e.GLOBAL_VARIABLES="Global Variables"}(Ce||(Ce={})),function(e){e.GEOLOCATION_DATA="Geolocation data",e.DEPLOYMENT_DATA="Deployment data",e.BROWSER_DATA="Browser data",e.BOT_MANAGEMENT="Bot Management",e.CUSTOM="Custom"}(xe||(xe={})),function(e){e.LOCAL_STORAGE_ENTRY="LOCAL_STORAGE_ENTRY",e.COOKIE_VALUE="COOKIE_VALUE",e.JS_GLOBAL_VAR="JS_GLOBAL_VAR",e.JS_GLOBAL_FUNCTION="JS_GLOBAL_FUNCTION",e.JS_FUNCTION="JS_FUNCTION",e.URL_PARAMETER="URL_PARAMETER",e.SIMPLE_VALUE="SIMPLE_VALUE",e.VALUE_MAP="VALUE_MAP",e.URL="URL",e.URL_PATHNAME="URL_PATHNAME",e.DOMAIN="DOMAIN",e.WINDOW_WIDTH="WINDOW_WIDTH",e.WINDOW_HEIGHT="WINDOW_HEIGHT",e.IS_MOBILE="IS_MOBILE",e.UTM_SOURCE="UTM_SOURCE",e.UTM_MEDIUM="UTM_MEDIUM",e.UTM_CAMPAIGN="UTM_CAMPAIGN",e.UTM_TERM="UTM_TERM",e.UTM_CONTENT="UTM_CONTENT",e.DEPLOYMENT_ID="DEPLOYMENT_ID",e.VERSION_ID="VERSION_ID",e.DEPLOYMENT_PERCENTAGE="DEPLOYMENT_PERCENTAGE",e.COUNTRY="COUNTRY",e.IS_EU_COUNTRY="IS_EU_COUNTRY",e.IS_EEA_OR_UK="IS_EEA_OR_UK",e.CITY="CITY",e.CONTINENT="CONTINENT",e.LATITUDE="LATITUDE",e.LONGITUDE="LONGITUDE",e.POSTAL_CODE="POSTAL_CODE",e.REGION="REGION",e.REGION_CODE="REGION_CODE",e.TIMEZONE="TIMEZONE",e.BOT_SCORE="BOT_SCORE",e.VERIFIED_BOT="VERIFIED_BOT"}(Be||(Be={})),he(ce={},Be.LOCAL_STORAGE_ENTRY,{type:"Local storage entry",description:xe.CUSTOM,returnType:"string | null",tooltip:"The variable value will evaluate to a string containing the local storage value for the entry matching the provided name. The return type is string or null."}),he(ce,Be.COOKIE_VALUE,{type:"Cookie value",description:xe.CUSTOM,returnType:"string | null",tooltip:"The variable value will evaluate to a string containing the cookie value for the entry matching the provided name. The return type is string or null.",YMSupport:"1.4.0"}),he(ce,Be.JS_GLOBAL_VAR,{type:"Javascript variable",description:xe.CUSTOM,returnType:"any",tooltip:"The variable value will evaluate to that of the global Javascript variable with the provided name."}),he(ce,Be.JS_GLOBAL_FUNCTION,{type:"Javascript function",description:xe.CUSTOM,returnType:"any",tooltip:"The variable value will evaluate to that of the global Javascript function with the provided name."}),he(ce,Be.JS_FUNCTION,{type:"Custom Javascript",description:xe.CUSTOM,returnType:"any",tooltip:"The variable will use the provided JavaScript function to calculate its value in the browser. Each time the variable is found, the function will be executed and the return value at that time will be used."}),he(ce,Be.URL_PARAMETER,{type:"URL parameter",description:xe.CUSTOM,returnType:"string | null",tooltip:"The variable will evaluate to a string containing the value of the URL parameter with the provided name or null if not found.",YMSupport:"1.4.0"}),he(ce,Be.SIMPLE_VALUE,{type:"Simple Value",description:xe.CUSTOM,returnType:"string",tooltip:"The variable will simply evaluate to the entered value.",YMSupport:"1.4.0"}),he(ce,Be.VALUE_MAP,{type:"Value Map",description:xe.CUSTOM,returnType:"string | null",tooltip:"The variable will use specified conditions to match against variable values and return a defined output or a default value if no match is found.",YMSupport:"3.3.3"}),he(ce,Be.URL,{type:xe.BROWSER_DATA,description:"The Browser's URL",returnType:"string",tooltip:"The variable will evaluate to a string containing the website's URL, obtained with the 'window.location.href' method (e.g. 'https://www.assertiveyield.com/')."}),he(ce,Be.URL_PATHNAME,{type:xe.BROWSER_DATA,description:"The Browser's URL path",returnType:"string",tooltip:"The variable will evaluate to a string containing the website's URL path, obtained with the 'window.location.pathname' method (e.g. '/manager/namespace').",YMSupport:"1.4.0"}),he(ce,Be.DOMAIN,{type:xe.BROWSER_DATA,description:"The website's domain",returnType:"string",tooltip:"The variable will evaluate to a string containing the website's domain without 'www.', obtained with the 'window.location.hostname' method (e.g. 'assertiveyield.com').",YMSupport:"1.4.0"}),he(ce,Be.WINDOW_WIDTH,{type:xe.BROWSER_DATA,description:"The width of the browser's window",returnType:"number",tooltip:"The variable will evaluate to a number containing the width of the user's browser window."}),he(ce,Be.WINDOW_HEIGHT,{type:xe.BROWSER_DATA,description:"The height of the browser's window",returnType:"number",tooltip:"The variable will evaluate to a number containing the height of the user's browser window."}),he(ce,Be.IS_MOBILE,{type:xe.BROWSER_DATA,description:"Whether a mobile device was detected",returnType:"boolean",tooltip:"The variable will evaluate to a boolean whose value will depend on whether the user's browser is a mobile or not. This is obtained from the 'navigator.userAgent', with a fallback to 'navigator.vendor' and 'window.opera'.",isBoolean:!0}),he(ce,Be.UTM_SOURCE,{type:xe.BROWSER_DATA,description:"Value of the utm_source URL parameter",returnType:"string | null",tooltip:"The variable will evaluate to a string containing the value of the URL parameter or null if not found.",YMSupport:"1.4.0"}),he(ce,Be.UTM_MEDIUM,{type:xe.BROWSER_DATA,description:"Value of the utm_medium URL parameter",returnType:"string | null",tooltip:"The variable will evaluate to a string containing the value of the URL parameter or null if not found.",YMSupport:"1.4.0"}),he(ce,Be.UTM_CAMPAIGN,{type:xe.BROWSER_DATA,description:"Value of the utm_campaign URL parameter",returnType:"string | null",tooltip:"The variable will evaluate to a string containing the value of the URL parameter or null if not found.",YMSupport:"1.4.0"}),he(ce,Be.UTM_TERM,{type:xe.BROWSER_DATA,description:"Value of the utm_term URL parameter",returnType:"string | null",tooltip:"The variable will evaluate to a string containing the value of the URL parameter or null if not found.",YMSupport:"1.4.0"}),he(ce,Be.UTM_CONTENT,{type:xe.BROWSER_DATA,description:"Value of the utm_content URL parameter",returnType:"string | null",tooltip:"The variable will evaluate to a string containing the value of the URL parameter or null if not found.",YMSupport:"1.4.0"}),he(ce,Be.DEPLOYMENT_ID,{type:xe.DEPLOYMENT_DATA,description:"Yield Manager deployment ID",returnType:"string | undefined",tooltip:"The variable will evaluate to a string containing the version's deployment ID."}),he(ce,Be.VERSION_ID,{type:xe.DEPLOYMENT_DATA,description:"Yield Manager version ID",returnType:"number",tooltip:"The variable will evaluate to a string containing the version's ID"}),he(ce,Be.DEPLOYMENT_PERCENTAGE,{type:xe.DEPLOYMENT_DATA,description:"Yield Manager deployment percentage",returnType:"number",tooltip:"In case of a split test, the variable will evaluate to a decimal containing the percentage of users that are exposed to that version."}),he(ce,Be.COUNTRY,{type:xe.GEOLOCATION_DATA,description:"The two-letter country code",returnType:"string | null",tooltip:"The variable will evaluate to a string containing the user's two-letter country code.",hasSuggestions:!0}),he(ce,Be.IS_EU_COUNTRY,{type:xe.GEOLOCATION_DATA,description:"Whether the country is in the EU",returnType:"boolean",tooltip:"The variable will evaluate to a boolean indicating whether the country is part of the EU.",isBoolean:!0}),he(ce,Be.IS_EEA_OR_UK,{type:xe.GEOLOCATION_DATA,description:"Whether the user is in the EEA, UK or Switzerland",returnType:"boolean",tooltip:"The variable will evaluate to a boolean indicating whether the user is in a European Economic Area country, in the United Kingdom or Switzerland.",YMSupport:"1.4.0",isBoolean:!0}),he(ce,Be.CITY,{type:xe.GEOLOCATION_DATA,description:'The city name, for example, "Austin".',returnType:"string | null",tooltip:"The variable will evaluate to a string containing the user's city name."}),he(ce,Be.CONTINENT,{type:xe.GEOLOCATION_DATA,description:'The two-letter continent code, for example, "NA"',returnType:"string | null",tooltip:"The variable will evaluate to a string containing the two-letter continent code of the user.",hasSuggestions:!0}),he(ce,Be.LATITUDE,{type:xe.GEOLOCATION_DATA,description:'The latitude value, for example, "30.27130"',returnType:"string | null",tooltip:"The variable will evaluate to a string containing the user's latitude."}),he(ce,Be.LONGITUDE,{type:xe.GEOLOCATION_DATA,description:'The longitude value, for example, "-97.74260"',returnType:"string | null",tooltip:"The variable will evaluate to a string containing the user's longitude."}),he(ce,Be.POSTAL_CODE,{type:xe.GEOLOCATION_DATA,description:'The postal code value, for example, "78701"',returnType:"string | null",tooltip:"The variable will evaluate to a string containing the user's postal code."}),he(ce,Be.REGION,{type:xe.GEOLOCATION_DATA,description:'The ISO 3166-2 name for the first level region, for example, "Texas".',returnType:"string | null",tooltip:"If known, the variable will evaluate to a string containing the ISO 3166-2 name for the first level region of the user.",hasSuggestions:!0}),he(ce,Be.REGION_CODE,{type:xe.GEOLOCATION_DATA,description:'The ISO 3166-2 code for the first level region, for example, "TX".',returnType:"string | null",tooltip:"If known, the variable will evaluate to a string containing the ISO 3166-2 code for the first level region of the user.",hasSuggestions:!0}),he(ce,Be.TIMEZONE,{type:xe.GEOLOCATION_DATA,description:'The time zone name, for example, "America/Chicago"',returnType:"string",tooltip:"The variable will evaluate to a string containing the user's time zone name.",hasSuggestions:!0}),he(ce,Be.BOT_SCORE,{type:xe.BOT_MANAGEMENT,description:"An integer between 1-99, that indicates how likely that request came from a bot. The lower the value, the more likely the request came from a bot.",returnType:"number",tooltip:"The variable will evaluate to an integer between 1-99 which indicates Cloudflare's level of certainty that it's a bot request. The lower the value, the more likely the request came from a bot.",YMSupport:"3.0.0"}),he(ce,Be.VERIFIED_BOT,{type:xe.BOT_MANAGEMENT,description:"A boolean value set to 'true' when the request originates from a good bot, such as Google or Bing. Many users opt to permit such traffic.",returnType:"boolean",tooltip:"The variable will evaluate to a boolean whose value will be true based on the request origin being from a good bot.",YMSupport:"3.0.0"}),Be.URL,Be.URL_PATHNAME,Be.DOMAIN,Be.WINDOW_WIDTH,Be.WINDOW_HEIGHT,Be.IS_MOBILE,Be.UTM_SOURCE,Be.UTM_MEDIUM,Be.UTM_CAMPAIGN,Be.UTM_TERM,Be.UTM_CONTENT,Be.DEPLOYMENT_ID,Be.VERSION_ID,Be.DEPLOYMENT_PERCENTAGE,Be.COUNTRY,Be.IS_EU_COUNTRY,Be.IS_EEA_OR_UK,Be.CITY,Be.CONTINENT,Be.LATITUDE,Be.LONGITUDE,Be.POSTAL_CODE,Be.REGION,Be.REGION_CODE,Be.TIMEZONE,Be.BOT_SCORE,Be.VERIFIED_BOT,function(e){e.SCRIPT_LOADED="Script Loaded",e.WINDOW_READY="Window Ready",e.WINDOW_LOADED="Window Loaded",e.CONSENT_INITIALIZATION="Consent Initialization",e.MANUAL_EVENT="Manual event"}(je||(je={})),he(se={},je.SCRIPT_LOADED,"The Yield Manager Script is running."),he(se,je.WINDOW_READY,"The document has finished loading and the document has been parsed but sub-resources such as scripts, images, stylesheets and frames are still loading."),he(se,je.WINDOW_LOADED,"The document and all sub-resources have finished loading. The state indicates that the load event is about to fire."),he(se,je.CONSENT_INITIALIZATION,"A CMP is loaded and is prepared to surface a TC String to any calling scripts on the page."),he(se,je.MANUAL_EVENT,"Will fire when your page calls the dispatchManualEvent API method (i.e. ayManagerEnv.dispatchManualEvent())."),function(e){e.onScriptLoad="_onScriptLoad",e.onReady="_onReady",e.onLoad="_onLoad",e.onConsentInitialization="_onConsentInitialization",e.manualTrigger="_manualTrigger"}(Fe||(Fe={})),Fe.onScriptLoad,je.SCRIPT_LOADED,Fe.onReady,je.WINDOW_READY,Fe.onLoad,je.WINDOW_LOADED,Fe.onConsentInitialization,je.CONSENT_INITIALIZATION,Fe.manualTrigger,je.MANUAL_EVENT,function(e){e.AND="AND",e.OR="OR"}(ke||(ke={})),function(e){e.EQ="equal",e.NE="not equal",e.ONE_OF="one of",e.NOT_ONE_OF="not one of",e.LT="less than",e.LE="less than or equal",e.GT="greater than",e.GE="greater than or equal",e.CONTAINS="contains",e.STARTS_WITH="starts with",e.ENDS_WITH="ends with",e.REGEX="regex",e.DOESNT_CONTAIN="does not contain",e.DOESNT_STARTS_WITH="does not start with",e.DOESNT_ENDS_WITH="does not end with",e.NOT_REGEX="not regex"}(He||(He={})),He.ONE_OF,He.NOT_ONE_OF,function(e){e.fileUpload="Prebid.js file",e.config="Prebid config object",e.yieldScript="Yield Manager Inline script",e.destroyFarUnits="Destroy distant ad units",e.yieldScriptMode="Yield Manager Script Mode",e.yieldScriptVersion="Yield Manager Script Version",e.publisherId="APS Publisher ID",e.apsConfigObject="APS config object",e.spa="Single Page Application",e.serviceSupport="Enable service",e.customBidPool="Custom bid pool",e.persistentBidCaching="Persistent bid caching",e.preScript="Pre-Script (Advanced)",e.refreshLimits="Refresh Limits",e.apsIgnoreAdUnits="Ignore Ad Units from APS Auction",e.prefetchUrls="Prefetch URLs",e.lazyTrigger="Lazy Fetch/Render Margins",e.adSizes="Ad Sizes",e.enableTracker="Enable Tracker",e.trackerId="Entity ID",e.trackerConfig="Tracker Config",e.migrateLegacyToNext="Migrate Legacy Data"}(ze||(ze={})),function(e){e.VERSION="version",e.SPLIT_TEST="split test"}(Ge||(Ge={})),function(e){e.PREBID="PREBID",e.APS="APS",e.BOTH="BOTH"}(We||(We={})),function(e){e.DIRECT_UPLOAD="Direct Upload",e.GENERATE_BUILD="Generate Build",e.DOWNLOAD_PAGE="Prebid Download Page"}(Ve||(Ve={})),he(le={},Ce.AD_UNITS,!0),he(le,Ce.AD_UNIT_DEFAULTS,!0),he(le,Ce.PLACEMENT_DEFAULTS,!0),he(le,Ce.PLACEMENTS,!0),he(le,Ce.HTML_UNITS,!0),he(le,Ce.BIDDERS,!0),he(le,Ce.PARAMS_DEFAULTS,!0),he(le,Ce.PARAMS_GROUPS,!0),he(le,Ce.VARIABLES,!0),he(le,Ce.CONDITIONS,!0),he(le,Ce.TRIGGERS,!0),he(le,Ce.REFRESH_CONTROLS,!0),he(le,Ce.SETTINGS,!0),he(le,"scripts",!0),he(le,Ce.YIELD_MANAGER_SCRIPT,!0),he(le,Ce.PREBID_SCRIPT,!0),he(le,Ce.GLOBAL_VARIABLES,!0),Pe.COOKIE,Pe.HTML5,Ue.BANNER,Fe.onReady,ve.STABLE,ve.STABLE,ye.INCREMENTAL,We.PREBID,function(e){e.ERROR="error",e.BEFORE_PAGE_CHANGE="beforePageChange",e.AFTER_PAGE_CHANGE="afterPageChange",e.FAILSAFE_TIMEOUT_CHANGED="failSafeTimeoutChanged",e.BEFORE_DEFINE_SLOT="beforeDefineSlot",e.AFTER_DEFINE_SLOT="afterDefineSlot",e.BEFORE_REFRESH="beforeRefresh",e.AFTER_REFRESH="afterRefresh",e.APS_BEFORE_INIT="beforeApsInit",e.APS_AFTER_INIT="afterApsInit",e.APS_BEFORE_FETCH_BIDS="apsBeforeFetchBids",e.PREBID_BEFORE_FETCH_BIDS="prebidBeforeFetchBids",e.BEFORE_DEFINE_AD_UNIT_PATH="beforeDefineAdUnitPath"}(Ye||(Ye={})),function(e){e.BIDDER="BIDDER",e.ADVERTISER="ADVERTISER",e.ORDER="ORDER",e.SIZE="SIZE",e.LINE_ITEM="LINE_ITEM",e.LINE_ITEM_TYPE="LINE_ITEM_TYPE"}(qe||(qe={})),he(de={},qe.BIDDER,"Bidder"),he(de,qe.ADVERTISER,"Advertiser"),he(de,qe.ORDER,"Order"),he(de,qe.SIZE,"Size"),he(de,qe.LINE_ITEM,"Line Item"),he(de,qe.LINE_ITEM_TYPE,"Line Item Type"),function(e){e.SPONSORSHIP="SPONSORSHIP",e.STANDARD="STANDARD",e.AD_SENSE="AD_SENSE",e.AD_EXCHANGE="AD_EXCHANGE",e.NETWORK="NETWORK",e.BULK="BULK",e.PRICE_PRIORITY="PRICE_PRIORITY",e.HOUSE="HOUSE"}(Je||(Je={})),he(ue={},Je.SPONSORSHIP,"Sponsorship"),he(ue,Je.STANDARD,"Standard"),he(ue,Je.AD_SENSE,"AdSense"),he(ue,Je.AD_EXCHANGE,"AdExchange"),he(ue,Je.NETWORK,"Network"),he(ue,Je.BULK,"Bulk"),he(ue,Je.PRICE_PRIORITY,"Price priority"),he(ue,Je.HOUSE,"House");var tt=window.ayManagerEnv,nt=null!==(Ke=tt.settings.prebidSettings.prebidScript.windowName)&&void 0!==Ke?Ke:"pbjs",rt=tt.settings.bidderSettings,it=tt.settings.placements,ot=tt.settings.adUnits,at=tt.settings.htmlUnits,ct=tt.settings.adUnitInstances=[],st=tt.settings.htmlUnitInstances=[],lt=null!==(Xe=tt.settings.yieldScriptSettings.yieldScriptMode)&&void 0!==Xe?Xe:"PREBID",dt=-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident/"),ut="APS"===lt||"BOTH"===lt,ft=!dt&&("PREBID"===lt||"BOTH"===lt)&&null!=(null===(Ze=window[nt])||void 0===Ze?void 0:Ze.libLoaded),pt=null!==(Qe=null===($e=tt.debug)||void 0===$e?void 0:$e.flags)&&void 0!==Qe?Qe:[],gt=pt.includes("all"),ht=!!pt.length,vt=pt.includes("no_refresh")||gt,mt=pt.includes("highlight")||gt;window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window[nt]=window[nt]||{},window[nt].que=window[nt].que||[],window.assertiveQueue=window.assertiveQueue||[];var yt,Et,bt={},wt=["advertiserIds","orderIds","lineItemTypes"].some((function(e){var t=tt.settings.yieldScriptSettings.refreshLimits[e],n=t.include,r=t.exclude;return n.length>0||r.length>0})),Tt=tt.settings.yieldScriptSettings.refreshLimits.lineItemTypes.include.length>0||tt.settings.yieldScriptSettings.refreshLimits.lineItemTypes.exclude.length>0||Object.values(tt.settings.definitions.refreshControls).some((function(e){return e.rules.some((function(e){return e.type===qe.LINE_ITEM_TYPE}))})),It="\n    background: linear-gradient(-152deg, #100124, #3e007c 75%);\n    border-radius: 3px;\n    color: white;\n    padding: 1px 5px;\n    font-size: .6rem;\n",St={group:ht?window.console.groupCollapsed.bind(window.console,"%cYM",It):function(){},groupEnd:ht?window.console.groupEnd.bind(window.console):function(){},log:ht?window.console.log.bind(window.console,"%cYM",It):function(){},logt:ht?function(){for(var e,t=Date.now()-window.ayManagerEnv.startTime,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.push(" - time:"),r.push(t),(e=window.console.log).call.apply(e,[window.console,"%cYM",It].concat(r))}:function(){},warn:ht?window.console.warn.bind(window.console,"%cYM",It):function(){},error:window.console.error.bind(window.console,"%cYM",It),table:ht?window.console[null!=console.table?"table":"log"].bind(window.console):function(){},func:ht?function(e){return e()}:function(){}},Ot=Object.values(Ye),At=(s(yt={},Ye.ERROR,{que:[]}),s(yt,Ye.BEFORE_PAGE_CHANGE,{que:[]}),s(yt,Ye.AFTER_PAGE_CHANGE,{que:[]}),s(yt,Ye.FAILSAFE_TIMEOUT_CHANGED,{que:[]}),s(yt,Ye.BEFORE_DEFINE_SLOT,{que:[]}),s(yt,Ye.AFTER_DEFINE_SLOT,{que:[]}),s(yt,Ye.BEFORE_REFRESH,{que:[]}),s(yt,Ye.AFTER_REFRESH,{que:[]}),s(yt,Ye.APS_BEFORE_INIT,{que:[]}),s(yt,Ye.APS_AFTER_INIT,{que:[]}),s(yt,Ye.APS_BEFORE_FETCH_BIDS,{que:[]}),s(yt,Ye.PREBID_BEFORE_FETCH_BIDS,{que:[]}),s(yt,Ye.BEFORE_DEFINE_AD_UNIT_PATH,{que:[]}),yt),Rt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=At[e];i.latestPayload=n,i.hasOccurred=!0,i.que.slice().forEach((function(t){try{t.apply(null,n)}catch(t){St.error("Error while trying to execute the handler for the ".concat(e," event"),t)}}))},_t=function(e,t){if(Ot.includes(e)){var n=At[e];if(n.hasOccurred){var r;St.warn("Event '".concat(e,"' already happened. Will execute the handler with the latest payload received.")),t.apply(void 0,o(null!==(r=n.latestPayload)&&void 0!==r?r:[]))}else{n.que.push((function n(){t.apply(void 0,arguments),Ut(e,n)}))}}else St.error("Invalid event name: '".concat(e,"'. Available event names: '").concat(Ot.join(", "),"'"))},Nt=function(e,t){var n=Ot.filter((function(e){return e!==Ye.APS_BEFORE_INIT&&e!==Ye.APS_AFTER_INIT}));n.includes(e)?At[e].que.push(t):St.error("Invalid event name: '".concat(e,"'. Available event names: ")+"'".concat(n.join(", "),". (For init events, use 'onceEvent' - e.g. beforeApsInit)'"))},Ut=function(e,t){if(Ot.includes(e)){var n=At[e];if(0===n.que.length)return;n.que.slice().reverse().forEach((function(e,r,i){e===t&&n.que.splice(i.length-1-r,1)}))}else St.error("Invalid event name: '".concat(e,"'. Available event names: '").concat(Ot.join(", "),"'"))},Pt=Object.freeze({__proto__:null,emit:Rt,once:_t,on:Nt,off:Ut});function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=window.ayManagerEnv.settings.versionInfo,i=null!=t?t:{},o=i.type,a=void 0===o?"yieldmanager":o,c=i.description,s=i.adUnitName,l=i.adUnitInstanceCode,d=i.htmlUnitName,u=i.htmlUnitInstanceName,f=i.adUnitCodes,p=[e,{type:a,description:c,managerVersionId:r.versionId,adUnitName:s,adUnitInstanceCode:l,htmlUnitName:d,htmlUnitInstanceName:u,adUnitCodes:f}];null!=window.assertiveQueue&&-2!==r.versionId&&window.assertiveQueue.push((function(){var e;(e=window.assertive).logError.apply(e,p.concat([{skipConsole:!0,source:"manager"}]))})),Rt.apply(Pt,[Ye.ERROR].concat(p)),n&&St.error(c+"\n",e)}var Lt={Object:1,Array:2,String:3,Null:4,Undefined:5,Function:6,Boolean:7,Number:8,RegExp:9,Date:10};function Mt(e,t){var n,r,i,o,a,c=function(e){return null===e?4:void 0===e?5:Lt[Object.prototype.toString.call(e).slice(8,-1)]}(e);if(null==t&&(t=1),1===c){if(t>0){if(-1!==Et.indexOf(e))return console.log("toSrc warning: Circular reference detected within object ",e),"undefined";for(r in Et.push(e),n="{",e)e.hasOwnProperty(r)&&(n+='"'+r+'": '+Mt(e[r],t-1)+", ");n.length>1&&(n=n.substring(0,n.length-2)),n+="}"}else n="undefined";return n}if(2===c){if(t>0){if(-1!==Et.indexOf(e))return console.log("toSrc warning: Circular reference detected within array ",e),"undefined";for(Et.push(e),n="[",i=0,o=e.length;i<o;i++)n+=Mt(e[i],t-1)+", ";n.length>1&&(n=n.substring(0,n.length-2)),n+="]"}else n="undefined";return n}return 3===c?JSON.stringify(e):4===c?"null":5===c?"undefined":6===c?-1===(a=e.toString()).search(/^function \w+\(\) \{\s*\[native code\]\s*\}$/)?a:a.match(/^function (\w+)\(\) \{\s*\[native code\]\s*\}$/)[1]:7===c?e.toString():8===c?e===Number.MAX_VALUE?"Number.MAX_VALUE":e===Number.MIN_VALUE?"Number.MIN_VALUE":e===Math.E?"Math.E":e===Math.LN2?"Math.LN2":e===Math.LN10?"Math.LN10":e===Math.LOG2E?"Math.LOG2E":e===Math.LOG10E?"Math.LOG10E":e===Math.PI?"Math.PI":e===Math.SQRT1_2?"Math.SQRT1_2":e===Math.SQRT2?"Math.SQRT2":e.toString():9===c?e.toString():10===c?"new Date("+e.getTime()+")":"undefined"}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t,n){var r=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),i=new RegExp("[\\?&#]"+r+"(?:=([^&#]*))?",t?"i":"").exec(n||window.location.href);return null===i?null:void 0===i[1]?"":decodeURIComponent(i[1].replace(/\+/g," "))}function jt(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function Ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=xt({path:"/"},n);var r,i=encodeURIComponent(e)+"="+encodeURIComponent(t);if(i+=";path="+n.path,n.domain&&(i+="; domain="+n.domain),n.expiresDays?r=864e5*n.expiresDays:n.expiresHours?r=36e5*n.expiresHours:n.expiresSeconds&&(r=1e3*n.expiresSeconds),r){var o=new Date;o.setTime(o.getTime()+r),i+="; expires="+o.toUTCString()}n.sameSite&&(i+="; samesite="+n.sameSite),n.secure&&(i+="; secure"),document.cookie=i}var kt=function(e,t){return t.map((function(t){try{var n=t.name,r=t.conditions.reduce((function(e,t){return e&&Vt(t)}),!0),i=t.conditions.map((function(e){var n=window.ayManagerEnv.settings.definitions.conditions[e],r=n.name,i=n.group;return{name:r,evaluation:Vt(e),conditions:function e(n){if(null!=n.conditions)return n.conditions.reduce((function(t,r,i){return"".concat(t," ").concat(i>0?n.operator+" ":"","( ").concat(e(r)," )")}),"");try{var i=window.ayManagerEnv.settings.definitions.variables[n.variable],o=i.name,a=Gt(i._id,null),c=Wt(a,n.value,n.operation);return"<<var: ".concat(o,">> '").concat(a,"' ").concat(n.operation," '").concat(n.value,"' <<eval: ").concat(c,">>")}catch(e){return e instanceof Error&&Dt(e,{description:"Unable to evaluate condition for getConditionsEvaluation: var: ".concat(r,", op: ").concat(n.operation,", value: ").concat(n.value),adUnitName:t.name}),"<<var: ".concat(r,">> <<unable to evaluate>> ").concat(n.operation," '").concat(n.value,"' <<eval: ",!1,">>")}}(i)}}));return{name:n,type:e,evaluation:r,conditionSets:i}}catch(n){return n instanceof Error&&Dt(n,{description:"Unable to get condition evaluation for ".concat(e,": ").concat(t.name),adUnitInstanceCode:t.name}),null}})).filter((function(e){return null!=e}))};function Ht(e){try{return Function("return (".concat(zt(e),")"))()}catch(e){throw e instanceof Error&&(e.message="Unable to parse text inside evalTextWithVarIdsToJSValue: "+e.message),e}}function zt(e){return null==e?"":e.replace(new RegExp(Ae.source,"g"),(function(e,t,n,r){try{var i=window.ayManagerEnv.settings.definitions.variables;if(!i[n])throw new Error("Variable not found.");var o=i[n].directString,a=void 0===o||o,c=Gt(n,null),s=r&&""!==r?r.slice(1).split(".").reduce((function(e,t,n){return 0===n?c[t]:e[t]}),null):c;return"string"==typeof s&&a?s:(Et=[],Mt(s,99))}catch(e){throw e instanceof Error&&(e.message="Unable to replace variable '".concat(n+r,"' by its value: ")+e.message),e}}))}function Gt(e,t){var n=window.ayManagerEnv,r=n.geoInfo,i=n.botInfo,o=n.settings.definitions.variables;if(!o[e])throw new Error("Unable to evaluate variable: Variable ".concat(e," not found."));var a,c,s=o[e],l=s.type,d=s.value,u=s.name;try{switch(l){case Be.SIMPLE_VALUE:return d;case Be.LOCAL_STORAGE_ENTRY:return localStorage.getItem(d);case Be.COOKIE_VALUE:return jt(d);case Be.URL_PARAMETER:return Bt(d);case Be.JS_GLOBAL_VAR:var f=void 0;try{f=d.split(".").reduce((function(e,t,n){return 0===n?window[t]:e[t]}),{})}catch(e){e instanceof Error&&Dt(e,{description:"Failed to evaluate global js var ".concat(u,". Falling back to undefined.")})}return f;case Be.JS_GLOBAL_FUNCTION:var p=void 0;try{p=d.split(".").reduce((function(e,t,n){return 0===n?window[t]:e[t]}),null)()}catch(e){e instanceof Error&&Dt(e,{description:"Failed to evaluate global js function ".concat(u,". Falling back to undefined.")})}return p;case Be.JS_FUNCTION:return Function("return (".concat(zt(d),")()"))();case Be.VALUE_MAP:var g=d,h=Gt(g.variableId),v=g.valueMatches.find((function(e){var t=e.match;return Wt(h,t,g.condition)}));return null!=v?v.output:g.defaultEnabled?g.defaultOutput:null;case Be.URL:return window.location.href;case Be.URL_PATHNAME:return window.location.pathname;case Be.DOMAIN:return window.location.hostname.replace("www.","");case Be.WINDOW_WIDTH:return Math.max(document.documentElement.clientWidth,window.innerWidth||0);case Be.WINDOW_HEIGHT:return Math.max(document.documentElement.clientHeight,window.innerHeight||0);case Be.IS_MOBILE:return c=!1,a=navigator.userAgent||navigator.vendor||window.opera,void((/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))&&(c=!0)),c;case Be.UTM_SOURCE:return qt("utm_source");case Be.UTM_MEDIUM:return qt("utm_medium");case Be.UTM_CAMPAIGN:return qt("utm_campaign");case Be.UTM_TERM:return qt("utm_term");case Be.UTM_CONTENT:return qt("utm_content");case Be.DEPLOYMENT_ID:return window.ayManagerEnv.settings.versionInfo.deployId;case Be.VERSION_ID:return window.ayManagerEnv.settings.versionInfo.versionId;case Be.DEPLOYMENT_PERCENTAGE:return window.ayManagerEnv.settings.versionInfo.percentage;case Be.COUNTRY:return r.country;case Be.IS_EU_COUNTRY:return r.isEUCountry;case Be.IS_EEA_OR_UK:return r.isEEAOrUK;case Be.CITY:return r.city;case Be.CONTINENT:return r.continent;case Be.LATITUDE:return r.latitude;case Be.LONGITUDE:return r.longitude;case Be.POSTAL_CODE:return r.postalCode;case Be.REGION:return r.region;case Be.REGION_CODE:return r.regionCode;case Be.TIMEZONE:return r.timezone;case Be.BOT_SCORE:return i.score;case Be.VERIFIED_BOT:return i.verified}}catch(e){throw e instanceof Error&&(e.message="Unable to evaluate variable ".concat(u,": ")+e.message),e}}function Wt(e,t,n){try{switch(n){case He.EQ:return String(e)===String(t);case He.NE:return String(e)!==String(t);case He.ONE_OF:return t.includes(String(e));case He.NOT_ONE_OF:return!t.includes(String(e));case He.LT:return Number(e)<Number(t);case He.LE:return Number(e)<=Number(t);case He.GT:return Number(e)>Number(t);case He.GE:return Number(e)>=Number(t);case He.CONTAINS:return String(e).includes(String(t));case He.STARTS_WITH:return String(e).startsWith(String(t));case He.ENDS_WITH:return String(e).endsWith(String(t));case He.REGEX:return new RegExp(String(t)).test(String(e));case He.DOESNT_CONTAIN:return!String(e).includes(String(t));case He.DOESNT_STARTS_WITH:return!String(e).startsWith(String(t));case He.DOESNT_ENDS_WITH:return!String(e).endsWith(String(t));case He.NOT_REGEX:return!new RegExp(String(t)).test(String(e));default:throw new Error("ERROR: invalid op: ".concat(n))}}catch(e){throw e instanceof Error&&(e.message="Unable to evaluate expression: "+e.message),e}}function Vt(e,t){try{var n=!0,r=window.ayManagerEnv.settings.definitions;if(r.conditions[e])return n=function e(t,n){var r=function(e){return"conditions"in e};return"conditions"in t?r(t)&&t.conditions.length>0?t.conditions.reduce((function(r,i,a){return null==r?e(i,[].concat(o(n),[a])):t.operator===ke.AND?r&&(null!==(c=e(i,[].concat(o(n),[a])))&&void 0!==c?c:r):r||(null!==(s=e(i,[].concat(o(n),[a])))&&void 0!==s?s:r);var c,s}),null):null:Wt(Gt(t.variable),t.value,t.operation)}(r.conditions[e].group,[]),n;throw new Error("Condition not found. id: ".concat(e))}catch(t){throw t instanceof Error&&(t.message="Unable to evaluate condition ".concat(e,": ")+t.message),t}}function Yt(e){try{return e.reduce((function(e,t){return e&&Vt(t)}),!0)}catch(t){return t instanceof Error&&Dt(t,{description:"Unable to evaluate list of conditions: ".concat(JSON.stringify(e))}),!1}}function qt(e){var t,n,r,i,o=null===(t=window.assertive)||void 0===t||null===(n=t.analytics)||void 0===n||null===(r=n.override)||void 0===r||null===(i=r.utm)||void 0===i?void 0:i[e];return o&&(e=o),Bt(e)}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xt=!1;function Zt(e){try{var t=e.containerRef,n=window.getComputedStyle(t),r=null,i=function(e){var t=e.visibility;return"hidden"===t||"collapse"===t};return(Xt||!function t(n,i){var o=n.nodeName,a=n.offsetParent,c=i.position,s=i.display;if("BODY"===o)return"none"===s;if("fixed"!==c)return!a;if("none"===s||null==n.parentElement)return!0;var l=n.parentElement,d=window.getComputedStyle(l);return l===e.containerRef.parentElement&&(r=d),t(l,d)}(t,n))&&!i(n)&&null!=t.parentElement&&!i(null!=r?r:window.getComputedStyle(t.parentElement))}catch(t){return t instanceof Error&&Dt(t,{description:"Unable to detect if Ad Unit is visible",adUnitInstanceCode:e.code}),!0}}function Qt(e){var t="";try{t=zt(e)}catch(t){t instanceof Error&&Dt(t,{description:"Unable to evaluate ad unit path: ".concat(e)})}return t}var $t,en=function(){var e;return function(){var t;return null!==(t=e)&&void 0!==t?t:e=function(){var e=window.ayManagerEnv.settings.prebidSettings.config;try{var t=Ht(e);return St.log("Evaluated Prebid.config:",t),t}catch(e){return e instanceof Error&&Dt(e,{description:"Unable to evaluate Prebid.config"}),{}}}()}}(),tn=function(){var e;return null!==(e=$t)&&void 0!==e?e:$t=function(){var e=window.ayManagerEnv.settings.yieldScriptSettings.apsConfig;try{var t=Ht(e);return St.log("Evaluated APS.config:",t),t}catch(e){return e instanceof Error&&Dt(e,{description:"Unable to evaluate APS.config"}),{pubID:""}}}()};function nn(e,t){e.push=function(){return t.apply(e,arguments)}}function rn(e,t){return new Promise((function(n){try{var i=null!=t?t:{},o=i.aboveSight,a=void 0!==o&&o,c=i.nearInSight,s=void 0!==c&&c,l=i.pixelsOffset,d=void 0===l?430:l;if(null==e)n(!1);else{var u=new IntersectionObserver((function(e){var t=r(e,1)[0];u.disconnect(),t.isIntersecting?n(!0):n(s&&a&&t.boundingClientRect.top>0)}),{rootMargin:"".concat(s?d:0,"px")});u.observe(e)}}catch(e){e instanceof Error&&Dt(e,{description:"Unable to detect if element is in view"}),n(!1)}}))}function on(e){var t=[],n=[];return e.forEach((function(e){var r;(null===(r=window[nt])||void 0===r?void 0:r.libLoaded)&&"cpm"in window[nt].getHighestUnusedBidResponseForAdUnitCode(e.code)?t.push(e):n.push(e)})),{adUnitsWithBids:t,adUnitsWithoutBids:n}}function an(e,t,n){return cn.apply(this,arguments)}function cn(){return cn=c(G.mark((function e(t,n,r){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=n,e.next="visible"===e.t0?3:"near"===e.t0?4:"page"===e.t0?5:6;break;case 3:return e.abrupt("return",Sn(t,function(){var e=c(G.mark((function e(t){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rn(t.containerRef,{nearInSight:!1});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:return e.abrupt("return",Sn(t,function(){var e=c(G.mark((function e(t){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rn(t.containerRef,{nearInSight:!0,pixelsOffset:r});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return e.abrupt("return",t.slice());case 6:return St.error("Invalid mode provided to filterAdUnits:",n),e.abrupt("return",[]);case 8:case"end":return e.stop()}}),e)}))),cn.apply(this,arguments)}function sn(e,t,n){return e.filter((function(e){var r="parentPlacement"in e?e.parentPlacement:e,i=("fetch"===n?r.fetchTrigger:r.trigger).map((function(e){return window.ayManagerEnv.settings.definitions.triggers[e]})).filter((function(e){return null!=e}));return i.some((function(e){var n,r;return null===(n=e.event===t&&(null===(r=e.conditions)||void 0===r?void 0:r.reduce((function(t,n){try{return t&&Vt(n)}catch(t){return t instanceof Error&&Dt(t,{description:"Unable to evaluate trigger's (".concat(e.name,") condition (").concat(n,")")}),!1}}),!0)))||void 0===n||n}))}))}function ln(e,t){return t.filter((function(t){return e.includes(t.parentPlacement.code)}))}function dn(e){return(null!=e?e:[]).map((function(e){return e.split("x").map((function(e){return parseInt(e.trim())}))}))}function un(e){return(null!=e?e:[]).map((function(e){return e.split("x").map((function(e,t){return parseInt(0===t?e.trim().slice(1):e.trim())}))}))}function fn(e){return e.includes("v")}function pn(e){return!e.includes("v")&&"fluid"!==e}function gn(e){var t=rt.params.find((function(e){return e.conditions.reduce((function(t,n){try{return t&&Vt(n)}catch(t){return t instanceof Error&&Dt(t,{description:"Unable to evaluate conditions (".concat(n,") for param group: ").concat(e.name)}),!1}}),!0)})),n=rt.bidders.filter((function(e){return e.conditions.reduce((function(t,n){try{return t&&Vt(n)}catch(t){return t instanceof Error&&Dt(t,{description:"Failed to evaluate bidder's condition (".concat(n,") for bidder: ").concat(e.name)}),!1}}),!0)})).map((function(e){var n,r;return Kt(Kt({},e),{},{paramsSettings:{paramsDefaults:null!==(n=rt.paramsDefaults[e._id])&&void 0!==n?n:{},paramsGroup:null!==(r=null==t?void 0:t.bidders[e._id])&&void 0!==r?r:{}}})}));function r(e){return n.map((function(t){var n,r,i,o,a;return{bidder:null!==(n=t.alias)&&void 0!==n?n:t.bidder,conditions:t.conditions,paramsTemplate:null!==(r=null===(i=t.paramsOverrides.find((function(t){return t.adUnitId===e._id})))||void 0===i?void 0:i.params)&&void 0!==r?r:t.params,paramsDefaultValues:null!==(o=t.paramsSettings.paramsDefaults[e._id])&&void 0!==o?o:{},paramsGroupValues:null!==(a=t.paramsSettings.paramsGroup[e._id])&&void 0!==a?a:{}}})).map((function(e){var t=Object.keys(e.paramsDefaultValues),n=t.reduce((function(t,n){var r;return Kt(Kt({},t),{},s({},n,null!==(r=e.paramsGroupValues[n])&&void 0!==r?r:e.paramsDefaultValues[n]))}),{});return{bidder:e.bidder,paramsTemplate:e.paramsTemplate,placeholders:t,parsedParams:n}})).map((function(t){try{var n=function(e,t){var n="__".concat(me,"_undefined__"),r=0;return{value:e.replace(new RegExp(Ne.source,"g"),(function(e,i,o){try{r++;var a=t[o];return null==a||""===a?n:a}catch(e){throw e instanceof Error&&(e.message="Unable to replace placeholder '".concat(o,"' by its value: ")+e.message),e}})).replace(new RegExp("([\"'])".concat(n,"\\1"),"g"),"undefined").replace(new RegExp("".concat(n),"g"),"undefined"),count:r}}(t.paramsTemplate,t.parsedParams),r=n.value,i=n.count,o={};return(0===i||0!==t.placeholders.length&&!t.placeholders.every((function(e){return""===t.parsedParams[e]})))&&(o=Ht(r)),{bidder:t.bidder,params:o}}catch(n){return n instanceof Error&&Dt(n,{description:"Unable to parse bidder params. ad unit: ".concat(e.name," bidder: ").concat(t.bidder),adUnitName:e.name}),{bidder:t.bidder,params:{}}}})).filter((function(e){return!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(e.params)}))}return e.map((function(e){return{code:e.code,mediaTypes:(t=e.parentAdUnit,n=dn(t.sizes.filter((function(e){return pn(e)}))),i=un(t.sizes.filter((function(e){return fn(e)}))),Kt(Kt({},t.mediaTypes.includes(Ue.BANNER)?{banner:{sizes:n}}:{}),t.mediaTypes.includes(Ue.VIDEO_OUTSTREAM)?{video:{context:"outstream",playerSize:i.length>0?i[0]:[640,480],mimes:["video/mp4","video/webm","application/javascript"],api:[1,2],protocols:[1,2,3,4,5,6,7,8],playbackmethod:[2],skip:0,placement:2,minduration:5,maxduration:30}}:{})),bids:r(e.parentAdUnit),ortb2Imp:{ext:{gpid:e.path}}};var t,n,i}))}function hn(e){var t;return e.responseTimestamp+1e3*(e.ttl-(null!==(t=e.ttlBuffer)&&void 0!==t?t:1))<=(new Date).getTime()}function vn(e,t,n){return!(t.length>0&&t.includes(n))&&(0===e.length||e.includes(n))}function mn(e){return(null!=e?e:"").trim().slice(1,(null!=e?e:"").length-2).trim()}function yn(e){return parseInt(e.replace("px",""),10)}function En(e){var t=e.style,n=t.width,r=t.height;return!!(n&&r&&n.includes("px")&&r.includes("px"))}function bn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={width:null,height:null};try{var r=e.style,i=r.width,o=r.height;if(En(e));else{var a=window.getComputedStyle(e);i=a.width,o=a.height}if(n.width=yn(i)||null,n.height=yn(o)||null,t&&(null===n.width||null===n.height)){var c=e.getBoundingClientRect();n.width=c.width,n.height=c.height}}catch(e){e instanceof Error&&Dt(e,{description:"Error getting element size"})}return n}function wn(e){return e.containerRef.querySelector('iframe[id^="google_ads_iframe_"]')}function Tn(e){try{var t=wn(e);if(t){var n=t.parentElement;return(n&&n.childElementCount>1||e.containerRef.childElementCount>1)&&!En(t)?bn(e.containerRef,!0):bn(t,!1)}return null}catch(t){return t instanceof Error&&Dt(t,{description:"Unable to get ad element size",adUnitInstanceCode:e.code}),null}}function In(e,t){t&&(t.width&&(!e.style.minWidth||yn(e.style.minWidth)<t.width)&&(e.style.minWidth="".concat(t.width,"px")),t.height&&(!e.style.minHeight||yn(e.style.minHeight)<t.height)&&(e.style.minHeight="".concat(t.height,"px")))}function Sn(e,t){return On.apply(this,arguments)}function On(){return On=c(G.mark((function e(t,n){var r;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Symbol(),e.next=3,Promise.all(t.map(function(){var e=c(G.mark((function e(t,i,o){var a;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t,i,o);case 2:return a=e.sent,e.abrupt("return",a?t:r);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()));case 3:return e.abrupt("return",e.sent.filter((function(e){return e!==r})));case 4:case"end":return e.stop()}}),e)}))),On.apply(this,arguments)}function An(e){var t,n=null===(t=document.getElementsByTagName("script"))||void 0===t?void 0:t[0];n&&n.parentNode?n.parentNode.insertBefore(e,n):document.head.appendChild(e)}function Rn(e,t){e.forEach((function(e){t.getTargeting(e).length>0&&t.clearTargeting(e)}))}function _n(e,t,n){for(var r=0,i=0;r<e.length&&i<t.length;)n(e[r],t[i])<=0||(e.splice(r,0,t[i]),i++),r++;for(;i<t.length;)e.push(t[i]),i++;return e}function Nn(e,t){return e.cpm!==t.cpm?t.cpm-e.cpm:e.timeToRespond-t.timeToRespond}function Un(e,t){return Nn(e.bid,t.bid)}function Pn(e){return null!=e.slot&&null!=e.parentAdUnit&&null!=e.path}var Dn="object"==("undefined"==typeof global?"undefined":i(global))&&global&&global.Object===Object&&global,Ln="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,Mn=Dn||Ln||Function("return this")(),Cn=Mn.Symbol,xn=Object.prototype,Bn=xn.hasOwnProperty,jn=xn.toString,Fn=Cn?Cn.toStringTag:void 0;var kn=Object.prototype.toString;var Hn=Cn?Cn.toStringTag:void 0;function zn(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Hn&&Hn in Object(e)?function(e){var t=Bn.call(e,Fn),n=e[Fn];try{e[Fn]=void 0;var r=!0}catch(e){}var i=jn.call(e);return r&&(t?e[Fn]=n:delete e[Fn]),i}(e):function(e){return kn.call(e)}(e)}function Gn(e){return"symbol"==i(e)||function(e){return null!=e&&"object"==i(e)}(e)&&"[object Symbol]"==zn(e)}var Wn=/\s/;var Vn=/^\s+/;function Yn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Wn.test(e.charAt(t)););return t}(e)+1).replace(Vn,""):e}function qn(e){var t=i(e);return null!=e&&("object"==t||"function"==t)}var Jn=/^[-+]0x[0-9a-f]+$/i,Kn=/^0b[01]+$/i,Xn=/^0o[0-7]+$/i,Zn=parseInt;function Qn(e){if("number"==typeof e)return e;if(Gn(e))return NaN;if(qn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yn(e);var n=Kn.test(e);return n||Xn.test(e)?Zn(e.slice(2),n?2:8):Jn.test(e)?NaN:+e}var $n,er,tr=function(){return Mn.Date.now()},nr=Math.max,rr=Math.min;function ir(e,t,n){var r,i,o,a,c,s,l=0,d=!1,u=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function g(e){return l=e,c=setTimeout(v,t),d?p(e):a}function h(e){var n=e-s;return void 0===s||n>=t||n<0||u&&e-l>=o}function v(){var e=tr();if(h(e))return m(e);c=setTimeout(v,function(e){var n=t-(e-s);return u?rr(n,o-(e-l)):n}(e))}function m(e){return c=void 0,f&&r?p(e):(r=i=void 0,a)}function y(){var e=tr(),n=h(e);if(r=arguments,i=this,s=e,n){if(void 0===c)return g(s);if(u)return clearTimeout(c),c=setTimeout(v,t),p(s)}return void 0===c&&(c=setTimeout(v,t)),a}return t=Qn(t)||0,qn(n)&&(d=!!n.leading,o=(u="maxWait"in n)?nr(Qn(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=s=i=c=void 0},y.flush=function(){return void 0===c?a:m(tr())},y}var or={};function ar(e,t,n){if(or[e]||(or[e]=0),null!=t){var r,i=null!=n?n:++or[e],o=t.slice(0,8);return fr(r="".concat(e,"__").concat(me,"__").concat(i,"_").concat(o)),r}var a=++or[e];return"".concat(e,"__").concat(me,"__").concat(a)}function cr(e){return e.includes("__".concat(me,"__"))}function sr(e){var t=r(e.split("__".concat(me,"__")),2),n=t[0],i=r(t[1].split("_"),2),o=i[0],a=i[1];return{placementCode:n,instanceNumber:Number(o),adUnitId:a}}function lr(e){var t=sr(e),n=t.placementCode,r=t.instanceNumber;return"".concat(n,"__").concat(me,"__").concat(r)}function dr(){var e=[].concat(o(ct.map((function(e){return e.parentPlacement.code}))),o(st.map((function(e){return e.parentPlacement.code})))).reduce((function(e,t){return e.includes(t)?e:[].concat(o(e),[t])}),[]);for(var t in or)e.includes(t)||delete or[t]}var ur={};function fr(e){var t,n=sr(e).adUnitId;(null!==(t=ur[n])&&void 0!==t?t:ur[n]={})[e]=!0}null!==(er=($n=window.ayManagerEnv).adUnitCodeVariations)&&void 0!==er||($n.adUnitCodeVariations=ur),ht&&(Nt(Ye.BEFORE_PAGE_CHANGE,(function(){pr()})),ft&&window[nt].que.push((function(){if(!window[nt].getConfig("debug")){var e=function(e,t){return(e=Array.from(e)).unshift("%cPrebid","display: inline-block; color: #fff; background: #3b88c3; padding: 1px 4px; border-radius: 3px;",t),e};window[nt].onEvent("auctionDebug",(function(t){var n=t.type,r=t.arguments;try{"ERROR"===n?console.error.apply(console,e(r,"ERROR:")):"WARNING"===n&&console.warn.apply(console,e(r,"WARNING:"))}catch(e){St.error(e)}}))}})),mt&&window.googletag.cmd.push((function(){window.googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=e.slot,n=e.isEmpty,r=t.getSlotElementId();if(n&&!document.querySelector("#".concat(r," > span, #").concat(r," > div > iframe"))){var i,o=ct.find((function(e){return e.code===r&&e.parentAdUnit}));if(o)if(o.parentAdUnit.sizes.forEach((function(e){var t=e.split("x");(!i||t[0]*t[1]>i[0]*i[1])&&(i=t)})),i){var a=document.createElement("div");a.style.minWidth=i[0]+"px",a.style.minHeight=i[1]+"px",o.containerRef.appendChild(a);var c=document.createElement("span");c.innerText=i.join("x"),o.containerRef.appendChild(c)}}}))})));function pr(){var e={placements:[],adUnits:[],htmlUnits:[],bidders:[]};try{e=window.ayManagerEnv.debug.conditionsEvaluation={placements:kt("Placement",it),adUnits:kt("Ad unit",ot),htmlUnits:kt("HTML unit",at),bidders:kt("Bidder",rt.bidders)}}catch(e){e instanceof Error&&Dt(e,{description:"Exception in runDebugConditionsEvaluation API call"})}return e}function gr(){var e="".concat(me,"__persistent_bid_cache_bids_v2");localStorage.removeItem("".concat(me,"__persistent_bid_cache_bids")),window.addEventListener("beforeunload",(function(t){try{var n=Object.values(ur).reduce((function(e,t){return[].concat(o(e),o(Object.keys(t)))}),[]).reduce((function(e,t){var n=window[nt].getBidResponsesForAdUnitCode(t).bids;return[].concat(o(e),o(n))}),[]).filter((function(e){return!hn(e)&&"rendered"!==e.status&&e.cpm>0}));n=n.map((function(e){e.metrics=!1;var t=function(e){return t(e).filter((function(e){return!["getStatusCode","getSize","getIdentifiers","metrics.startTiming","metrics.measureTime","metrics.measureHookTime","metrics.checkpoint","metrics.timeSince","metrics.timeBetween","metrics.setMetric","metrics.getMetrics","metrics.fork","metrics.join","metrics.newMetrics","metrics.renameWith","metrics.toJSON","getCpmInNewCurrency"].includes(e)}));function t(e){var n=[],r=function(r){"function"==typeof e[r]?n.push(r):"object"===i(e[r])&&n.push.apply(n,o(t(e[r]).map((function(e){return"".concat(r,".").concat(e)}))))};for(var a in e)r(a);return n}}(e);return t.length>0?(Dt(new Error("Unknown bid method detected when caching bid"),{description:JSON.stringify(t)}),null):("function"==typeof e.getSize&&(e.getSize=e.getSize()),"function"==typeof e.getStatusCode&&(e.getStatusCode=e.getStatusCode()),"function"==typeof e.getIdentifiers&&(e.getIdentifiers=e.getIdentifiers()),e)})).filter((function(e){return null!=e})),localStorage.setItem(e,JSON.stringify(n))}catch(e){e instanceof Error&&Dt(e,{description:"Failed to cache bids!"})}}));window[nt].onEvent("auctionEnd",(function t(n){var r,o=JSON.parse(null!==(r=localStorage.getItem(e))&&void 0!==r?r:"[]").filter((function(e){return!hn(e)&&"rendered"!==e.status&&"targetingSet"!==e.status&&e.cpm>0}));localStorage.setItem(e,JSON.stringify([])),o.forEach((function(e){if("string"==typeof e.getSize){var t=e.getSize;e.getSize=function(){return t}}if("number"==typeof e.getStatusCode){var n=e.getStatusCode;e.getStatusCode=function(){return n}}else void 0===e.getStatusCode&&(e.getStatusCode=function(){return 1});if("object"===i(e.getIdentifiers)){var r=e.getIdentifiers;e.getIdentifiers=function(){return r}}})),o.forEach((function(e){if(fr(e.adUnitCode),e.persistentCache=!0,e.auctionId=n.auctionId,n.bidsReceived.push(e),"function"==typeof e.getIdentifiers){var t=e.getIdentifiers();t.auctionId=e.auctionId,e.getIdentifiers=function(){return t}}})),St.log("Cached bids retrieved and reassigned to this auction: ",o),window[nt].offEvent("auctionEnd",t)}))}function hr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var vr=["bids"];function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Er=en(),br="function"==typeof Er.bidCacheFilterFunction;function wr(e){var t=window.ayManagerEnv.settings.prebidSettings.customBidPool.codes;return vn(t.include,t.exclude,e.split("__".concat(me,"__"))[0])}function Tr(e,t){var n=window.ayManagerEnv.settings.prebidSettings.customBidPool.enabled;if(t.includes(e))return!1;if(n&&(!function(e){var t=window.ayManagerEnv.settings.prebidSettings.customBidPool.bidders;return vn(t.include,t.exclude,e)}(e.bidder)||!wr(e.adUnitCode)))return!1;var r="rendered"===e.status||"targetingSet"===e.status,i=hn(e);if(r||i)return!1;if(0===e.cpm)return!1;if(e.pooled)return!1;try{if(br&&!Er.bidCacheFilterFunction(e))return!1}catch(e){Dt(e,{description:"Failed to run prebid bidCacheFilterFunction"})}return!0}function Ir(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];St.group(">>> Custom bid pool <<< - (".concat(e.length,")")),St.log("auctionCodes:",e);try{var n=window.ayManagerEnv.settings,i=n.prebidSettings.customBidPool.enabled,a=n.adUnitInstances,c=[],l=e.filter((function(e){return!i||wr(e)})).map((function(e){return a.find((function(t){return t.code===e}))})).filter((function(e){if(!e||!e.parentAdUnit)return!1;var t=window[nt].getHighestUnusedBidResponseForAdUnitCode(e.code);return"adId"in t&&c.push(t),!0})),d=l.reduce((function(e,t){var n,r,a=i?null!==(n=t.parentAdUnit.bidPoolGroupId)&&void 0!==n?n:"DEFAULT_CUSTOM_BID_POOL_GROUP":t.parentAdUnit._id.slice(0,8);return yr(yr({},e),{},s({},a,[].concat(o(null!==(r=e[a])&&void 0!==r?r:[]),[t])))}),{}),u=[],f={};return St.log("Auction ad unit instances:",l),Object.entries(d).forEach((function(e){var n=r(e,2),a=n[0],s=n[1];St.group("Group ID: ".concat(a,". Group instances:"),s);try{var l=(i?Object.values(ur).reduce((function(e,t){return[].concat(o(e),o(Object.keys(t)))}),[]).reduce((function(e,t){var n=window[nt].getBidResponsesForAdUnitCode(t).bids;return[].concat(o(e),o(n))}),[]):Object.keys(ur[a]).reduce((function(e,t){var n=window[nt].getBidResponsesForAdUnitCode(t).bids;return[].concat(o(e),o(n))}),[])).filter((function(e){return Tr(e,c)})).sort(Nn);if(0===l.length)return ht&&(St.group("ORIGINAL - Custom Bid Pool & Highest Bids from Prebid auction: "),St.log([]),s.forEach((function(e){var t=e.code,n=window[nt].getHighestUnusedBidResponseForAdUnitCode(t);if("adId"in n){var r=n.adId,i=n.bidder,o=n.cpm,a=n.size;St.log("Highest Bid (Prebid auction) for ".concat(t,": "),{bidder:i,adId:r,cpm:o,size:a,bidObject:JSON.parse(JSON.stringify(n))})}else St.log("No Bids     (Prebid auction) for ".concat(t,"."))})),St.groupEnd()),St.log("🔴 Skipping: Not enough Prebid bids."),St.groupEnd(),[];var d=Or(l,s,c),p=d.bids,g=hr(d,vr);t&&Sr(p),_n(u,p,Un),g.reassignedInstances.forEach((function(e){return f[e]=!0})),St.groupEnd()}catch(e){throw St.groupEnd(),e}})),St.groupEnd(),{bids:u,reassignedCodes:Object.keys(f)}}catch(t){return St.groupEnd(),t instanceof Error&&Dt(t,{description:"Failed to run the Custom bid pool for code variations",adUnitCodes:e}),{bids:[],reassignedCodes:[]}}}function Sr(e){e.forEach((function(e){var t=e.bid;null!=e.originalAdUnitCode&&(t.adUnitCode=e.adUnitCode,t.pooled=e.pooled,t.originalAdUnitCode=e.originalAdUnitCode,t.originalHighestBid=e.originalHighestBid)}))}function Or(e,t,n){var i,o=window.ayManagerEnv.settings.prebidSettings.customBidPool.enabled,a=e.map((function(e){return{bid:e,adUnitCode:e.adUnitCode,pooled:e.pooled,originalAdUnitCode:e.originalAdUnitCode,originalHighestBid:e.originalHighestBid}})),c=t.reduce((function(e,t){var r=n.find((function(e){return e.adUnitCode===t.code}));return yr(yr({},e),null!=r?s({},t.code,{bid:r,adUnitCode:r.adUnitCode,pooled:r.pooled,originalAdUnitCode:r.originalAdUnitCode,originalHighestBid:r.originalHighestBid}):{})}),{});ht&&(St.group("ORIGINAL - Custom Bid Pool & Highest Bids from Prebid auction: "),St.log(a.map((function(e){var t=e.bid;return{adId:t.adId,bidder:t.bidder,cpm:t.cpm,size:t.size,bidObject:JSON.parse(JSON.stringify(t))}}))),t.forEach((function(e){var t=e.code,n=c[t];if(null!=n){var r=n.bid,i=r.adId,o=r.bidder,a=r.cpm,s=r.size;St.log("Highest Bid (Prebid auction) for ".concat(t,": "),{bidder:o,adId:i,cpm:a,size:s,bidObject:JSON.parse(JSON.stringify(n.bid))})}else St.log("No Bids     (Prebid auction) for ".concat(t,"."))})),St.groupEnd());var l=0;do{i=!1,t.forEach((function(e){var t,n,r,s,d,u,f=c[e.code],p=o?a.find((function(t){var n=t.bid,r=e.parentAdUnit.sizes.includes("video"===n.mediaType?"v".concat(n.size):n.size),i=e.parentAdUnit.mediaTypes.some((function(e){return-1!==e.indexOf(n.mediaType)}));return r&&i})):a[0];null!=p&&p.bid.cpm>(null!==(t=null==f||null===(n=f.bid)||void 0===n?void 0:n.cpm)&&void 0!==t?t:0)&&(St.group("🟢 Reassigning Bid"),St.log("bidId: ",p.bid.adId),St.log("From: ",p.adUnitCode,"To: ",e.code),St.log("Uplift: ",p.bid.cpm-(null!==(r=null==f||null===(s=f.bid)||void 0===s?void 0:s.cpm)&&void 0!==r?r:0)),St.groupEnd(),p.pooled=!0,p.originalAdUnitCode=p.bid.adUnitCode,p.originalHighestBid=null!==(d=null==f||null===(u=f.bid)||void 0===u?void 0:u.cpm)&&void 0!==d?d:0,null!=f&&Tr(f.bid,[])&&(f.pooled&&f.originalAdUnitCode&&(f.adUnitCode=f.originalAdUnitCode,delete f.pooled,delete f.originalAdUnitCode,delete f.originalHighestBid),_n(a,[f],Un)),p.adUnitCode=e.code,a.splice(a.indexOf(p),1),c[e.code]=p,i=!0,l++)}))}while(i);0===l?St.log("🟡 No changes done: No higher bids availaible."):ht&&(St.group("UPDATED - Custom Bid Pool & Highest Updated Bids (".concat(l," changes): ")),St.log(a.map((function(e){var t=e.bid;return{adId:t.adId,bidder:t.bidder,cpm:t.cpm,size:t.size,bidObject:t}}))),t.forEach((function(e){var t=e.code,n=c[t];if(null!=n){var r=n.bid,i=r.adId,o=r.bidder,a=r.cpm,s=r.size;St.log("Highest Bid (Updated) for ".concat(t," ").concat(!0===n.pooled?"📈":"",": "),{bidder:o,adId:i,cpm:a,size:s,bidObject:JSON.parse(JSON.stringify(n.bid))})}else St.log("No Bids     (Updated) for ".concat(t,"."))})),St.groupEnd()),_n(a,Object.values(c).sort(Un),Un);var d=Object.entries(c).filter((function(e){var t=r(e,2);t[0];var n=t[1];return null==n?void 0:n.pooled})).map((function(e){return r(e,1)[0]}));return{bids:a,reassignedInstances:d}}var Ar=[],Rr=window,_r=!1,Nr=function(e){!function(){if(!_r){_r=!0;var e=Rr.googlefc=Rr.googlefc||{};e.ccpa=e.ccpa||{},e.callbackQueue=e.callbackQueue||[];var t=e.controlledMessagingFunction;e.controlledMessagingFunction=function(n){Ar.forEach((function(t){try{var n,r=t+"Locator",i=Rr[t];delete Rr[t],null!==(n=Rr.frames[r])&&void 0!==n&&n.frameElement&&Rr.frames[r].frameElement.remove(),e.callbackQueue.push({CONSENT_DATA_READY:function(){var e=i();e.length&&(Rr[t]?Dt(new Error('CMP stub "'.concat(t,'" has not been defined by googlefc!'))):e.forEach((function(e){try{Rr[t].apply(null,e)}catch(e){Dt(e,{description:"Exception in execution of CMP stub queue for googlefc ready state"})}})))}})}catch(e){Dt(e,{description:"Exception in CMP stub googlefc handler"})}})),t?t(n):n.proceed(!0),e.controlledMessagingFunction=t}}}();var t,n,r=e+"Locator",o=[],a=Rr;for(;a;){try{if(a.frames[r]){t=a;break}}catch(e){}if(a===Rr.top)break;a=a.parent}t||a[e]||(!function e(){var t=Rr.document,n=!!Rr.frames[r];if(!n)if(t.body){var i=t.createElement("iframe");i.style.cssText="display:none",i.name=r,t.body.appendChild(i)}else setTimeout(e,5);return!n}(),Rr[e]=function(){var e=arguments;if(!e.length)return o;"setGdprApplies"===e[0]?e.length>3&&2===parseInt(e[1],10)&&"boolean"==typeof e[3]&&(n=e[3],"function"==typeof e[2]&&e[2]("set",!0)):"ping"===e[0]?"function"==typeof e[2]&&e[2]({gdprApplies:n,cmpLoaded:!1,cmpStatus:"stub"}):o.push(e)},Rr.addEventListener("message",(function(t){var n="string"==typeof t.data,r={};if(n)try{r=JSON.parse(t.data)}catch(e){}else r=t.data;var o=null!==r&&"object"===i(r)?r[e+"Call"]:null;o&&window[e](o.command,o.version,(function(r,i){var a=s({},e+"Return",{returnValue:r,success:i,callId:o.callId});t&&t.source&&t.source.postMessage&&t.source.postMessage(n?JSON.stringify(a):a,"*")}),o.parameter)}),!1),Ar.push(e))},Ur=["slotID","size","mediaType"];function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lr={},Mr=[];function Cr(e){return"object"===i(e)&&null!=e}function xr(e){return Cr(e)&&"amzniid"in e&&"string"==typeof e.amzniid&&"amznbid"in e&&"string"==typeof e.amznbid}function Br(e){return Cr(e)&&"targeting"in e&&xr(e.targeting)}var jr,Fr,kr,Hr,zr,Gr,Wr=function(e){var t=e.filter((function(e){return function(e){return Cr(e)&&"slotID"in e&&"string"==typeof e.slotID&&"size"in e&&"string"==typeof e.size}(e)&&(Br(e)||function(e){return Cr(e)&&!("targeting"in e)&&xr(e)}(e))})),n=t.filter((function(e){return!["","1","2"].includes(Br(e)?e.targeting.amzniid:e.amzniid)})).map((function(e){if(Br(e))return e;var t=e.slotID,n=e.size,r=e.mediaType,i=hr(e,Ur);return{slotID:t,size:n,targeting:i,helpers:{targetingKeys:Object.keys(i)},mediaType:null!=r?r:"d"}}));Mr.push.apply(Mr,o(n)),e.filter((function(e){return!t.find((function(t){return t===e}))})).forEach((function(e){Dt(new Error("Invalid bid format!"),{description:"format: ".concat(JSON.stringify(e).slice(0,300))})}))},Vr=function(e){return null==e||null==e.targeting.amznbid?0:null!==(t=null===(n=Lr[e.targeting.amznbid])||void 0===n?void 0:n[0])&&void 0!==t?t:999;var t,n},Yr=function(e){return{bids:Mr.filter((function(t){return t.slotID===e}))}},qr=function(e){var t=Yr(e).bids.filter((function(e){return"targetingSet"!==e.status&&"rendered"!==e.status}));if(0===t.length)return{};for(var n=t.length-1,r=Vr(t[n]),i=n;i>=0;i--){var o=Vr(t[i]);o>r&&(n=i,r=o)}return t[n]};function Jr(e,t){return"video"!==e.mediaType&&(!t.includes(e)&&("rendered"!==e.status&&"targetingSet"!==e.status&&(0!==Vr(e)&&!e.pooled)))}function Kr(e){ht&&(St.group("ORIGINAL - Custom Bid Pool & Highest Bids from APS auctions: "),St.log([]),e.forEach((function(e){var t=e.code,n=qr(t);if("slotID"in n){var r=n.slotID,i=n.mediaType,o=n.targeting,a=o.amznbid,c=o.amzniid,s=o.amznp,l=o.amznsz;St.log("Highest Bid (APS) for ".concat(t,": "),{slotID:r,mediaType:i,amznbid:a,amzniid:c,amznp:s,amznsz:l,bidObject:JSON.parse(JSON.stringify(n))})}else St.log("No Bids     (APS) for ".concat(t,"."))})),St.groupEnd()),St.log("🔴 Skipping: Not enough APS bids."),St.groupEnd()}function Xr(e){e.forEach((function(e){var t=e.bid;null!=e.originalAdUnitCode&&(t.slotID=e.adUnitCode,t.pooled=e.pooled,t.originalAdUnitCode=e.originalAdUnitCode,t.originalHighestBid=e.originalHighestBid)}))}function Zr(e,t,n){var r,i=e.map((function(e){return{bid:e,adUnitCode:e.slotID,pooled:e.pooled,originalAdUnitCode:e.originalAdUnitCode,originalHighestBid:e.originalHighestBid}})),a=t.reduce((function(e,t){var r=n.find((function(e){return e.slotID===t.code}));return Dr(Dr({},e),null!=r?s({},t.code,{bid:r,adUnitCode:r.slotID,pooled:r.pooled,originalAdUnitCode:r.originalAdUnitCode,originalHighestBid:r.originalHighestBid}):{})}),{});ht&&(St.group("ORIGINAL - Custom Bid Pool & Highest Bids from APS: "),St.log(i.map((function(e){var t=e.bid,n=t.slotID,r=t.mediaType,i=t.targeting;return{slotID:n,mediaType:r,amznbid:i.amznbid,amzniid:i.amzniid,amznp:i.amznp,amznsz:i.amznsz,bidObject:JSON.parse(JSON.stringify(t))}}))),t.forEach((function(e){var t=e.code,n=a[t];if(null!=n){var r=n.bid,i=r.slotID,o=r.mediaType,c=r.targeting,s=c.amznbid,l=c.amzniid,d=c.amznp,u=c.amznsz;St.log("Highest Bid (APS) for ".concat(t,": "),{slotID:i,mediaType:o,amznbid:s,amzniid:l,amznp:d,amznsz:u,bidObject:JSON.parse(JSON.stringify(n.bid))})}else St.log("No Bids     (APS) for ".concat(t,"."))})),St.groupEnd());var c=0;do{r=!1,t.forEach((function(e){var t=a[e.code],n=i.filter((function(t){var n=t.bid,r=e.parentAdUnit.sizes.includes("video"===n.mediaType?"v".concat(n.size):n.size),i="video"===n.mediaType?e.parentAdUnit.mediaTypes.some((function(e){return-1!==e.indexOf("video")})):e.parentAdUnit.mediaTypes.some((function(e){return-1!==e.indexOf("banner")}));return r&&i}))[0];null!=n&&Vr(n.bid)>Vr(null==t?void 0:t.bid)&&(St.group("🟢 Reassigning Bid"),St.log("bidId: ",n.bid.targeting.amzniid),St.log("From: ",n.adUnitCode,"To: ",e.code),St.log("Uplift: ",Vr(n.bid)-Vr(null==t?void 0:t.bid)),St.groupEnd(),n.pooled=!0,n.originalAdUnitCode=n.bid.slotID,n.originalHighestBid=Vr(null==t?void 0:t.bid),null!=t&&"video"!==t.bid.mediaType&&(t.pooled&&t.originalAdUnitCode&&(t.adUnitCode=t.originalAdUnitCode,delete t.pooled,delete t.originalAdUnitCode,delete t.originalHighestBid),i.push(t),i.sort((function(e,t){return Vr(t.bid)-Vr(e.bid)}))),n.adUnitCode=e.code,i.splice(i.indexOf(n),1),a[e.code]=n,r=!0,c++)}))}while(r);return 0===c?St.log("🟡 No changes done: No higher bids availaible."):ht&&(St.group("UPDATED - Custom Bid Pool & Highest Updated Bids (".concat(c," changes): ")),St.log(i.map((function(e){var t=e.bid,n=t.slotID,r=t.mediaType,i=t.targeting;return{slotID:n,mediaType:r,amznbid:i.amznbid,amzniid:i.amzniid,amznp:i.amznp,amznsz:i.amznsz,bidObject:JSON.parse(JSON.stringify(t))}}))),t.forEach((function(e){var t=e.code,n=a[t];if(null!=n){var r=n.bid,i=r.slotID,o=r.mediaType,c=r.targeting,s=c.amznbid,l=c.amzniid,d=c.amznp,u=c.amznsz;St.log("Highest Bid (Updated) for ".concat(t," ").concat(!0===n.pooled?"📈":"",": "),{slotID:i,mediaType:o,amznbid:s,amzniid:l,amznp:d,amznsz:u,bidObject:JSON.parse(JSON.stringify(n.bid))})}else St.log("No Bids     (Updated) for ".concat(t,"."))})),St.groupEnd()),i.unshift.apply(i,o(Object.values(a).filter((function(e){return null!=e})))),i.sort((function(e,t){return Vr(t.bid)-Vr(e.bid)}))}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ei,ti,ni=window.ayManagerEnv.startTime,ri={},ii=en();window.ayManagerEnv.settings.experiments.cmpStub&&(null!==(ei=ii.consentManagement)&&void 0!==ei&&ei.gdpr&&Nr("__tcfapi"),null!==(ti=ii.consentManagement)&&void 0!==ti&&ti.usp&&Nr("__uspapi"));var oi=null!==(jr=ii.bidderTimeout)&&void 0!==jr?jr:3e3,ai=oi-100,ci=(null===(Fr=ii.consentManagement)||void 0===Fr||null===(kr=Fr.gdpr)||void 0===kr?void 0:kr.timeout)||0,si=(null===(Hr=ii.consentManagement)||void 0===Hr||null===(zr=Hr.usp)||void 0===zr?void 0:zr.timeout)||0,li=Math.max(ci-100,50),di=Math.max(si,500),ui=Math.max(null!==(Gr=window.ayManagerEnv.settings.experiments.failsafetimeout)&&void 0!==Gr?Gr:0,oi+2e3),fi=Math.max(ui,ci+500);function pi(e){fi=e,Rt(Ye.FAILSAFE_TIMEOUT_CHANGED,e)}function gi(e,t){var n=setTimeout((function(){Ut(Ye.FAILSAFE_TIMEOUT_CHANGED,r),e()}),t);function r(t){Ut(Ye.FAILSAFE_TIMEOUT_CHANGED,r),clearTimeout(n),gi(e,t)}Nt(Ye.FAILSAFE_TIMEOUT_CHANGED,r)}var hi=[];function vi(e,t){if(0!==e.length){var n,r,i=new Date-ni,a=(n=(new Date).getTime(),r="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random();return n>0?(t=(n+t)%16|0,n=Math.floor(n/16)):(t=(r+t)%16|0,r=Math.floor(r/16)),("x"===e?t:3&t|8).toString(16)}))),c=!1;St.logt("🕘 Request Bids -> YM     START  - ID: ".concat(a),e),ri[a]={prebid:!1,aps:!1},ft&&window[nt].que.push((function(){var t=gn(e),n={adUnits:t,bidsBackHandler:function(e){window.googletag.cmd.push((function(){St.logt("📩 Request Bids -> PREBID FINISH - ID: ".concat(a," - ").concat(c?"(TIMEDOUT) - ":"","auction time:"),new Date-ni-i),ht&&(St.log("Prebid auction bids:"),St.table(Object.values(null!=e?e:{}).reduce((function(e,t){return[].concat(o(e),o(t.bids))}),[]).sort((function(e,t){return t.cpm-e.cpm})).map((function(e){var t;return{bidder:e.bidderCode,cpm:e.cpm,size:e.size,mediaType:e.mediaType,currency:e.currency,source:e.source,floor:null===(t=e.floorData)||void 0===t?void 0:t.floorValue,adId:e.adId}})))),ri[a]&&!ri[a].prebid&&(ri[a].prebid=!0,ft&&!ri[a].prebid||ut&&!ri[a].aps||(delete ri[a],s()))}))}};Rt(Ye.PREBID_BEFORE_FETCH_BIDS,n),St.logt("🕘 Request Bids -> PREBID START  - ID: ".concat(a),"Ad Units:",t),window[nt].requestBids(n)})),ut&&null!=window.apstag?hi.push((function(){if(ri[a]){var t=e.filter((function(e){var t=window.ayManagerEnv.settings.yieldScriptSettings.apsIgnoredAdUnits;return vn(t.include,t.exclude,sr(e.code).placementCode)})).map((function(e){var t,n,r,i=(t=e.parentAdUnit,n=dn(t.sizes.filter((function(e){return pn(e)}))),r=un(t.sizes.filter((function(e){return fn(e)}))),Kt(Kt({},t.mediaTypes.includes(Ue.BANNER)?{display:{sizes:n}}:{}),t.mediaTypes.includes(Ue.VIDEO_OUTSTREAM)?{video:{sizes:r}}:{})),o=i.display,a=i.video;return window.ayManagerEnv.settings.experiments.apsMultiFormat&&null!=o&&null!=a?{slotName:e.path,slotID:e.code,mediaType:"multi-format",multiFormatProperties:{display:o,video:a}}:null!=o?{slotName:e.path,slotID:e.code,sizes:o.sizes}:null!=a?{slotName:e.path,slotID:e.code,sizes:a.sizes,mediaType:"video"}:void 0}));Rt(Ye.APS_BEFORE_FETCH_BIDS,{slots:t,bidTimeout:ai}),0===t.length?(St.logt("🕘 Request Bids -> APS    SKIP!  - ID: ".concat(a),"Ad Units:",t),ri[a]&&!ri[a].aps&&(ri[a].aps=!0,ft&&!ri[a].prebid||ut&&!ri[a].aps||(delete ri[a],s()))):(St.logt("🕘 Request Bids -> APS    START  - ID: ".concat(a),"Ad Units:",t),window.apstag.fetchBids({slots:t,bidTimeout:ai},(function(e){Wr(e),window.googletag.cmd.push((function(){St.logt("📩 Request Bids -> APS    FINISH - ID: ".concat(a," - ").concat(c?"(TIMEDOUT) - ":""),"bids: ",e,"auction time:",new Date-ni-i),ri[a]&&!ri[a].aps&&(ri[a].aps=!0,ft&&!ri[a].prebid||ut&&!ri[a].aps||(delete ri[a],s()))}))})))}})):ut&&null==window.apstag&&(ri[a].aps=!0),ft||ut||window.googletag.cmd.push((function(){delete ri[a],s()})),gi((function(){window.googletag.cmd.push((function(){ri[a]&&(ut&&window.apstag&&"function"==typeof window.apstag._getSlotIdToNameMapping&&void 0===window.apstag._getSlotIdToNameMapping()||Dt(new Error("Auction timedout!"),{description:"The fail-safe timeout was hit! "+"failSafeTimeout: ".concat(fi,". finished: ").concat(JSON.stringify(ri[a])),type:"yieldmanager"}),c=!0,St.logt("⚠️ Request Bids -> YM   TIMEDOUT - ID: ".concat(a," - auction time: "),new Date-ni-i),delete ri[a],s())}))}),fi)}function s(){St.logt("📩 Request Bids -> YM     FINISH - ID: ".concat(a," auction time:"),new Date-ni-i),t&&t()}}function mi(e,t){window.googletag.cmd.push((function(){try{var n;(e=e.filter((function(e){return!e.state.waitingGPTRender}))).forEach((function(e){return e.state.waitingGPTRender=!0}));var i=e.map((function(e){return e.code})),a=window.ayManagerEnv.settings.prebidSettings.customBidPool.enabled,c=null!==(n=window.ayManagerEnv.settings.yieldScriptSettings.apsBidPool)&&void 0!==n?n:{enabled:!1,mode:"full"},l=c.enabled,d=c.mode;St.log("🎇 Render Ad Unit Instances".concat(t?" (refresh)":"",":"),i);var u=[];if(a||ii.useBidCache){var f=Ir(i);u=f.reassignedCodes}ft&&"function"==typeof window[nt].setTargetingForGPTAsync&&(window.ayManagerEnv.settings.experiments.wrapPBTargetingCallInsidePBQueue?window[nt].que.push((function(){window[nt].setTargetingForGPTAsync(i)})):window[nt].setTargetingForGPTAsync(i),e.filter((function(e){return u.includes(e.code)})).forEach((function(e){var t=window[nt].getHighestUnusedBidResponseForAdUnitCode(e.code);"adId"in t&&window.googletag.pubads().getSlots().forEach((function(n){n!==e.slot&&(n.getTargetingKeys().some((function(e){return n.getTargeting(e).includes(t.adId)}))&&Rn(Object.keys(t.adserverTargeting),n))}))}))),ut&&null!=window.apstag&&(l&&("full"===d?function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=window.ayManagerEnv.settings.adUnitInstances;St.group(">>> APS customBidPool feature is enabled <<<");var r=[],i=n.filter((function(t){if(!e.includes(t.code)||!t.parentAdUnit)return!1;var n=qr(t.code);return"slotID"in n&&r.push(n),!0})),a=Object.values(ur).reduce((function(e,t){return[].concat(o(e),o(Object.keys(t)))}),[]).reduce((function(e,t){var n=Yr(t).bids;return[].concat(o(e),o(n))}),[]).filter((function(e){return Jr(e,r)})).sort((function(e,t){return Vr(t)-Vr(e)}));if(0===a.length)return Kr(i),[];var c=Zr(a,i,r);t&&Xr(c),St.groupEnd()}catch(t){return t instanceof Error&&Dt(t,{description:"Failed to run the APS Custom Bid Pool",adUnitCodes:e}),[]}}(i):function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=window.ayManagerEnv.settings.adUnitInstances;St.group(">>> APS Custom bid pool for code variations <<<");var i=[],a=n.filter((function(t){if(!e.includes(t.code)||!Pn(t))return!1;var n=qr(t.code);return"slotID"in n&&i.push(n),!0})),c=a.reduce((function(e,t){var n;return Dr(Dr({},e),{},s({},t.parentAdUnit._id,[].concat(o(null!==(n=e[t.parentAdUnit._id])&&void 0!==n?n:[]),[t])))}),{}),l=[];St.log("Auction ad unit instances:",a),Object.entries(c).forEach((function(e){var n=r(e,2),a=n[0],c=n[1];St.group("Parent ad unit id: ".concat(a,". Child instances:"),c);var s=Object.keys(ur[a.slice(0,8)]);St.log("Adding to the bid pool bids from the following ad unit code variations:",s);var d=s.reduce((function(e,t){var n=Yr(t).bids;return[].concat(o(e),o(n))}),[]).filter((function(e){return Jr(e,i)})).sort((function(e,t){return Vr(t)-Vr(e)}));if(0!==d.length){var u=Zr(d,c,i);t&&Xr(u),l.push.apply(l,u),St.groupEnd()}else Kr(c)})),St.groupEnd()}catch(t){return t instanceof Error&&Dt(t,{description:"Failed to run the APS Custom bid pool for code variations",adUnitCodes:e}),[]}}(i)),function(e){e.forEach((function(e){var t,n=qr(e.code),r=Mr.find((function(t){return"targetingSet"===t.status&&t.slotID===e.code}));"targeting"in n&&null==r&&(n.status="targetingSet",e.slot.updateTargetingFromMap(n.targeting),null!==(t=window.ayManagerEnv.settings.yieldScriptSettings.apsBidPool)&&void 0!==t&&t.enabled&&999===Vr(n)&&Dt(new Error("Bid not mapped"),{adUnitCodes:[e.code],adUnitName:"[".concat(n.targeting.amzniid,", ").concat(n.targeting.amznbid,"]")}))}))}(e));var p=e.map((function(e){return e.slot})).filter((function(e){return null!=e}));if(p.length>0){p.forEach((function(e){return e.setTargeting("aym_refresh","true")})),window.googletag.pubads().refresh(p);var g=setTimeout((function(){var t=e.filter((function(e){var t=e.slot;return null!=t&&p.includes(t)}));t.forEach((function(e){e.state.rendered=!0,e.state.waitingGPTRender=!1})),window.ayManagerEnv.refresh(t.map((function(e){return e.code})),{useInstanceCodes:!0,onlyUpdateViewedAt:!0}),window.googletag.pubads().removeEventListener("slotResponseReceived",h)}),6e3),h=function e(t){var n=t.slot;p.includes(n)&&(clearTimeout(g),window.googletag.pubads().removeEventListener("slotResponseReceived",e))};window.googletag.pubads().addEventListener("slotResponseReceived",h)}t&&Rt(Ye.AFTER_REFRESH,e.map((function(e){return e.code})))}catch(t){t instanceof Error&&(Dt(t,{description:"Failed to execute bidsBackHandler",adUnitCodes:e.map((function(e){return e.code}))}),e.forEach((function(e){e.state.waitingGPTRender=!1})))}}))}function yi(e){try{var t,n=window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.enabled,r=[].concat(o(e.parentAdUnit.mediaTypes.includes(Ue.BANNER)?dn(e.parentAdUnit.sizes.filter((function(e){return pn(e)}))):[]),o(e.parentAdUnit.mediaTypes.includes(Ue.VIDEO_OUTSTREAM)?un(e.parentAdUnit.sizes.filter((function(e){return fn(e)}))):[]),o(e.parentAdUnit.sizes.some((function(e){return"fluid"===e}))?["fluid"]:[])),i={adUnitPath:e.path,size:r.length>0?r:[1,1],div:e.code};Rt(Ye.BEFORE_DEFINE_SLOT,e.code,i);var a=null===(t=window.googletag.defineSlot(i.adUnitPath,i.size,i.div))||void 0===t?void 0:t.addService(window.googletag.pubads());Rt(Ye.AFTER_DEFINE_SLOT,e.code,a),null!=a&&(e.slot=a,ut&&a.setTargeting("uam","true"),n&&(a.getCollapseEmptyDiv()||a.getDivStartsCollapsed())&&(Xt=!0))}catch(t){var c;if(t instanceof Error)Dt(t,{description:"Unable to define slot for ad unit ".concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(c=e.parentAdUnit)||void 0===c?void 0:c.name})}}function Ei(e){window.googletag._display(e)}var bi="allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation";function wi(e){e.setAttribute("sandbox",bi)}function Ti(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ii(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ii(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function Ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Si=window.ayManagerEnv.settings.experiments.mutationObserverInject,Oi=Si&&Si.ignoredElements||["IFRAME","IMG","INPUT","svg","LINK","SCRIPT","FORM","STYLE"],Ai={maxWait:1e3};function Ri(e){if(Si){var t=Si.observeTarget&&document.querySelector(Si.observeTarget)||document.body,n=[],r=ir((function(t){if(n.length>1){var r,i=!0,o=Ti(n);try{for(o.s();!(r=o.n()).done;){if(r.value!==t){i=!1;break}}}catch(e){o.e(e)}finally{o.f()}i||(t=document.body),n=[]}t.isConnected&&t.childElementCount&&(St.logt("📑 Running observer inject:",[t]),e(t))}),500,Ai);new MutationObserver((function(e,t){e.forEach((function(e){var t,i=Array.from(e.addedNodes).filter((function(e){if(1!==e.nodeType||Oi.includes(e.nodeName))return!1;var t=e;return"string"!=typeof t.id||!t.id.includes("__ayManagerEnv__")&&!t.id.includes("google_ads_iframe_/")}));i.length&&(t=i[0].parentElement)&&(n.push(t),r(t))}))})).observe(t,{childList:!0,subtree:!0})}}function _i(){return it.filter((function(e){return Yt(e.conditions)}))}function Ni(){return ot.filter((function(e){return Yt(e.conditions)}))}function Ui(){return at.filter((function(e){return Yt(e.conditions)}))}var Pi=[],Di=!1,Li=!1;function Mi(e){var t=function(){var t=c(G.mark((function t(){var n;return G.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Bi();case 2:return n=t.sent,t.prev=3,t.next=6,e();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(3),t.t0 instanceof Error&&Dt(t.t0,{description:"Exception in sync queue task"});case 11:return t.prev=11,n(),t.finish(11);case 14:case"end":return t.stop()}}),t,null,[[3,8,11,14]])})));return function(){return t.apply(this,arguments)}}();Pi.push(t),Ci()}function Ci(){return xi.apply(this,arguments)}function xi(){return(xi=c(G.mark((function e(){var t;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Di&&!Li&&0!==Pi.length){e.next=2;break}return e.abrupt("return");case 2:if(null==(t=Pi.shift())){e.next=9;break}return Li=!0,e.next=7,t();case 7:Li=!1,Ci();case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bi(){return ji.apply(this,arguments)}function ji(){return ji=c(G.mark((function e(){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){!function t(){Di?setTimeout(t,5):(Di=!0,e((function(){Di=!1,Ci()})))}()})));case 1:case"end":return e.stop()}}),e)}))),ji.apply(this,arguments)}var Fi;function ki(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hi(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function Hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wi,Vi,Yi=window.ayManagerEnv.startTime,qi=function(){try{var e=window.ayManagerEnv.settings.yieldScriptSettings.lazyTrigger,t=e.fetchMargin,n=t.value,r=t.isPercentage,i=e.mobileScaling;if(window.ayManagerEnv.customLazyLoadOffset)return St.warn("customLazyLoadOffset will be deprecated, use Lazy Fetch/Render Margins instead."),window.ayManagerEnv.customLazyLoadOffset;var o=Ht(n),a=(window.innerWidth||document.documentElement.clientWidth)<992?i:1;if(isNaN(o))throw new Error("lazy fetch offset value did not evaluate to a number");return Math.floor(r?window.innerHeight*(o/100)*a:o*a)}catch(e){return e instanceof Error&&Dt(e,{description:"Unable to parse lazy fetch offset value, falling back to default (1400)"}),1400}}(),Ji=function(){try{var e=window.ayManagerEnv.settings.yieldScriptSettings.lazyTrigger,t=e.renderMargin,n=t.value,r=t.isPercentage,i=e.mobileScaling,o=Ht(n),a=(window.innerWidth||document.documentElement.clientWidth)<992?i:1;if(isNaN(o))throw new Error("lazy render offset value did not evaluate to a number");return Math.floor(r?window.innerHeight*(o/100)*a:o*a)}catch(e){return e instanceof Error&&Dt(e,{description:"Unable to parse lazy render offset value, falling back to default (1400)"}),1400}}(),Ki={},Xi=(s(Fi={},je.SCRIPT_LOADED,!1),s(Fi,je.WINDOW_READY,!1),s(Fi,je.WINDOW_LOADED,!1),s(Fi,je.CONSENT_INITIALIZATION,!1),s(Fi,je.MANUAL_EVENT,!1),Fi),Zi=new IntersectionObserver((function(e){try{var t=e.filter((function(e){return e.isIntersecting})).map((function(e){var t=e.target;Zi.unobserve(t);var n=ct.find((function(e){return e.containerRef===t}));return null==n?(Dt(new Error("Lazy load observer detected an ad unit instance that is no longer in memory")),null):!n.state.waitingLazyLoad||n.state.triggerFetchStep||n.state.triggerRenderStep||n.state.waitingAuction||n.state.suspended||n.state.rendered?(Dt(new Error("Lazy load observer detected an ad unit instance that is not in the 'standby' state")),so([n],"Non standby instance inside lazy load observer"),null):n})).filter((function(e){return null!=e}));t.length>0&&(St.log("💤 Firing lazy fetch ad units:",t),t.forEach((function(e){e.state.waitingLazyLoad=!1})),go(t,(function(e){fo(e.filter((function(e){return!e.state.triggerRenderStep&&Object.values(je).some((function(t){return Xi[t]&&sn([e],t,"render").length>0}))})))})))}catch(e){e instanceof Error&&Dt(e,{description:"Exception in Lazy Load Units observer"})}}),{rootMargin:"".concat(qi,"px")}),Qi=new IntersectionObserver((function(e){try{var t=e.filter((function(e){return e.isIntersecting})).map((function(e){var t=e.target;Qi.unobserve(t);var n=ct.find((function(e){return e.containerRef===t}));return null==n?(Dt(new Error("Lazy render observer detected an ad unit instance that is no longer in memory")),null):!n.state.waitingLazyRender||!n.state.triggerFetchStep||n.state.triggerRenderStep||n.state.suspended||n.state.rendered?(Dt(new Error("Lazy render observer detected an ad unit instance that is not in the 'standby' state"),{adUnitInstanceCode:n.code}),so([n],"Non standby instance inside lazy render observer"),null):n})).filter((function(e){return null!=e&&Pn(e)}));if(t.length>0){St.log("💤 Firing lazy render ad units:",t),t.forEach((function(e){e.state.waitingLazyRender=!1}));var n=on(t),r=n.adUnitsWithBids,i=n.adUnitsWithoutBids;r.length>0&&fo(r),i.length>0&&mo(i,!1,(function(){fo(i)}))}}catch(e){e instanceof Error&&Dt(e,{description:"Exception in Lazy Load Units observer"})}}),{rootMargin:"".concat(Ji,"px")}),$i=window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.enabled?new IntersectionObserver((function(e){try{var t=e.filter((function(e){return!e.isIntersecting&&(!window.ayManagerEnv.settings.experiments.destroyFarUnitsAboveSightOnly||e.boundingClientRect.bottom<=0)})).map((function(e){var t=e.target;$i.unobserve(t);var n=ct.find((function(e){return e.containerRef===t}));if(!n)throw new Error("farUnitsDestroy observer detected an ad unit instance that is no longer in memory");if(!n.state.rendered)throw new Error("farUnitsDestroy detected an ad unit instance that is not in the 'rendered' state");return n}));t.length>0&&so(t,"Destroy far units feature",!0)}catch(e){e instanceof Error&&Dt(e,{description:"Exception in Far Units Destroy observer"})}}),{rootMargin:"".concat(window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.destructionOffset,"px")}):null,eo=window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.enabled&&window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.restorationOffset>0?new IntersectionObserver((function(e){try{var t=e.filter((function(e){return e.isIntersecting})).map((function(e){var t=e.target;eo.unobserve(t);var n=ct.find((function(e){return e.containerRef===t}));if(!n)throw new Error("farUnitsDestroy observer detected an ad unit instance that is no longer in memory");if(!n.state.suspended)throw new Error("farUnitsDestroy detected an ad unit instance that is not in the 'suspended' state");return n})).filter((function(e){return e.parentPlacement.adUnits.map((function(e){return ot.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).some((function(e){return Yt(e.conditions)}))}));t.length>0&&(St.log("🔙 Restoring the following ad units:",t),t.forEach((function(e){return e.state.suspended=!1})),fo(t.filter((function(e){return e.state.triggerFetchStep&&Pn(e)}))),go(t.filter((function(e){return!e.state.triggerFetchStep})),(function(e){return fo(e)})))}catch(e){e instanceof Error&&Dt(e,{description:"Exception in Far Units Restore observer"})}}),{rootMargin:"".concat(window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.restorationOffset,"px")}):null;function to(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{for(var r in t||it.filter((function(e){return e.inject&&Yt(e.conditions)&&e.adUnits.length>0})).forEach((function(t){var r=e.querySelectorAll(t.placement);0!==r.length?Array.prototype.slice.apply(r).forEach((function(e,n){try{var r="true"===e.getAttribute("data-ay-manager-destroyed");if(!ct.some((function(n){return n.placementRef===e&&n.parentPlacement===t}))&&!r){var i,o=document.createElement("div"),a={code:ar(t.code),parentPlacement:t,containerRef:o,placementRef:e,state:{triggerFetchStep:!1,triggerRenderStep:!1,waitingAuction:!1,suspended:!1,rendered:!1,waitingLazyLoad:!1,waitingLazyRender:!1,waitingGPTRender:!1},renderInfo:(i={count:0},s(i,qe.ADVERTISER,""),s(i,qe.ORDER,""),s(i,qe.LINE_ITEM,""),s(i,qe.SIZE,""),s(i,qe.BIDDER,""),i)};ct.push(a),o.id=a.code,e.insertAdjacentElement(t.position,o),St.logt("📑 Ad unit instance injected - automatic:",[a.code])}}catch(e){e instanceof Error&&Dt(e,{description:"Failed to inject ad unit for placement ".concat(t.name," at location '").concat(t.placement,"' at index ").concat(n),adUnitName:t.name})}})):n&&St.warn("📑 Could not inject ad unit instance for placement:",[t.name],"The placement query string returned no elements:",t.placement,"time:"+(new Date-Yi))})),it.filter((function(e){return e.inject&&Yt(e.conditions)&&e.htmlUnits.length>0})).forEach((function(t){var r=e.querySelectorAll(t.placement);0!==r.length?Array.prototype.slice.apply(r).forEach((function(e,n){try{st.some((function(n){return n.placementRef===e&&n.parentPlacement===t}))||t.htmlUnits.map((function(e){return at.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).forEach((function(n){var r=document.createElement("script"),i={name:ar(t.code),parentPlacement:t,parentHtmlUnit:n,placeholderRef:r,placementRef:e,state:"injected"};st.push(i),r.id=i.name,r.type="yield-manager/html-unit-placeholder",e.insertAdjacentElement(t.position,r),St.logt("📑 HTML unit instance injected:",[i.name],"(HTML Unit: ".concat(i.parentHtmlUnit.name,")"))}))}catch(e){e instanceof Error&&Dt(e,{description:"Failed to inject HTML unit instances for placement ".concat(t.name," ")+"at placement location '".concat(t.placement,"' at index ").concat(n),htmlUnitName:t.name})}})):n&&St.warn("📑 Could not inject HTML unit instance for placement:",[t.name],"The placement query string returned no elements.","time:"+(new Date-Yi))})),Xi)Xi[r]&&uo(r,n)}catch(e){e instanceof Error&&Dt(e,{description:"Failed to inject placements"})}}function no(){try{ao(ct.filter((function(e){var t=document.getElementById(e.code);return!t||t!==e.containerRef})),"Container is no longer in the DOM"),co(st.filter((function(e){var t=document.getElementById(e.name);return!t||t!==e.placeholderRef})),"Placeholder is no longer in the DOM"),dr()}catch(e){Dt(e,{description:"Failed to cleanup unmounted/disconnected instances"})}}function ro(){try{so(ct.filter((function(e){return e.state.triggerFetchStep&&!e.state.triggerRenderStep&&!Object.values(je).some((function(t){return Xi[t]&&sn([e],t,"fetch").length>0}))||e.state.triggerRenderStep&&!Object.values(je).some((function(t){return Xi[t]&&sn([e],t,"render").length>0}))})),"Placement trigger conditions are no longer valid"),lo(st.filter((function(e){return"injected"!==e.state})).filter((function(e){return!Object.values(je).some((function(t){return Xi[t]&&sn([e],t,"render").length>0}))})),"Placement trigger conditions are no longer valid")}catch(e){Dt(e,{description:"Failed to cleanup instances with invalid triggers"})}}function io(e){var t=null!=e?e:{},n=t.skipAdUnits,r=void 0!==n&&n,i=t.refresh,o=void 0!==i&&i,a=t.reset,c=void 0!==a&&a;St.log("🔁 Page change".concat(r?" - HTML units only":"")),Rt(Ye.BEFORE_PAGE_CHANGE,{}),c?(ao(ct,"Page change - reset mode"),co(st,"Page change - reset mode")):(no(),function(){try{ao(ct.filter((function(e){return!Yt(e.parentPlacement.conditions)})),"Placement conditions are no longer valid"),co(st.filter((function(e){return!Yt(e.parentPlacement.conditions)})),"Placement conditions are no longer valid"),dr()}catch(e){Dt(e,{description:"Failed to cleanup instances with invalid Placements"})}}(),function(){try{so(ct.filter((function(e){return e.parentAdUnit&&!Yt(e.parentAdUnit.conditions)})),"Ad Unit conditions are no longer valid"),lo(st.filter((function(e){return"injected"!==e.state&&!Yt(e.parentHtmlUnit.conditions)})),"HTML Unit conditions are no longer valid"),ro()}catch(e){Dt(e,{description:"Failed to cleanup instances with invalid Ad Units"})}}()),o&&wo(void 0,{ignoreRefreshLimits:!0}),to(document,r),Rt(Ye.AFTER_PAGE_CHANGE,{})}function oo(e){no(),to(e||document,!1,!1)}function ao(e,t){var n=window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.enabled;0!==e.length&&(St.log("Removing the following ad unit instances:",e.map((function(e){return e.code})),"Reason: ".concat(t)),window.googletag.cmd.push((function(){window.googletag.destroySlots(e.map((function(e){return e.slot})).filter((function(e){return null!=e})))})),e.forEach((function(e){try{var t;e.state={triggerFetchStep:!1,triggerRenderStep:!1,waitingAuction:!1,suspended:!1,rendered:!1,waitingLazyLoad:!1,waitingLazyRender:!1,waitingGPTRender:!1},delete Ki[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),Zi.unobserve(e.containerRef),Qi.unobserve(e.containerRef),n&&($i.unobserve(e.containerRef),null==eo||eo.unobserve(e.containerRef));var r=document.getElementById(e.code);r&&r.parentNode&&(r.parentNode.removeAttribute("data-manual-placement-group"),r.parentNode.removeChild(r))}catch(t){var i;if(t instanceof Error)Dt(t,{description:"Failed to remove ad unit instance ".concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(i=e.parentAdUnit)||void 0===i?void 0:i.name})}var o=ct.findIndex((function(t){return t===e}));ct.splice(o,1)})))}function co(e,t){0!==e.length&&(St.log("Removing the following HTML unit instances:",e.map((function(e){return e.name})),"Reason: ".concat(t)),e.forEach((function(e){try{e.state="injected";var t=document.getElementById(e.name);t&&t.parentNode&&t.parentNode.removeChild(t);var n=document.querySelectorAll("[data-ay-manager-placement-id='".concat(e.name,"']"));Array.prototype.slice.apply(n).forEach((function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}catch(t){var r;if(t instanceof Error)Dt(t,{description:"Failed to remove HTML unit instance ".concat(e.name),htmlUnitName:null===(r=e.parentHtmlUnit)||void 0===r?void 0:r.name,htmlUnitInstanceName:e.name})}var i=st.findIndex((function(t){return t===e}));st.splice(i,1)})))}function so(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.enabled;0!==e.length&&(St.log("".concat(n?"Suspending":"Reseting"," the following ad unit instances:"),e.map((function(e){return e.code})),"Reason: ".concat(t)),n&&e.forEach((function(e){var t=Tn(e);t&&(e.size=t)})),window.googletag.cmd.push((function(){window.googletag.destroySlots(e.map((function(e){return e.slot})).filter((function(e){return null!=e})))})),e.forEach((function(e){try{var t,i;e.state={triggerFetchStep:!1,triggerRenderStep:!1,waitingAuction:!1,suspended:n,rendered:!1,waitingLazyLoad:!1,waitingLazyRender:!1,waitingGPTRender:!1},delete e.slot,delete e.parentAdUnit,delete Ki[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),e.renderInfo=(s(i={count:0,obs:void 0},qe.ADVERTISER,""),s(i,qe.ORDER,""),s(i,qe.LINE_ITEM,""),s(i,qe.SIZE,""),s(i,qe.BIDDER,""),i),Zi.unobserve(e.containerRef),Qi.unobserve(e.containerRef),r&&($i.unobserve(e.containerRef),null==eo||eo.unobserve(e.containerRef));var o=e.code;e.code=lr(e.code);var a=document.getElementById(o);if(a&&a.parentNode){var c=document.createElement("div");n&&In(c,e.size),a.parentNode.replaceChild(c,a),c.id=e.code,e.containerRef=c,n&&r&&(null==eo||eo.observe(e.containerRef))}}catch(t){var l;if(t instanceof Error)Dt(t,{description:"Failed to ".concat(n?"suspend":"reset"," Ad Unit Instance ").concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(l=e.parentAdUnit)||void 0===l?void 0:l.name}),ao([e],"Failed to ".concat(n?"suspend":"reset"," Instance"))}})))}function lo(e,t){0!==(e=e.filter((function(e){return"injected"!==e.state}))).length&&(St.log("Reseting the following HTML unit instances:",e.map((function(e){return e.name})),"Reason: ".concat(t)),e.forEach((function(e){try{var t=document.querySelectorAll("[data-ay-manager-placement-id='".concat(e.name,"']"));Array.prototype.slice.apply(t).forEach((function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})),e.state="injected"}catch(t){var n;if(t instanceof Error)Dt(t,{description:"Failed to reset HTML unit instance ".concat(e.name),htmlUnitInstanceName:e.name,htmlUnitName:null===(n=e.parentHtmlUnit)||void 0===n?void 0:n.name}),co([e],"Failed to reset HTML Unit Instance")}})))}function uo(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];function r(){return i.apply(this,arguments)}function i(){return(i=c(G.mark((function t(){var n,r,i,a,c,s,l;return G.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=ct.filter((function(e){var t=e.state,n=t.triggerFetchStep,r=t.waitingAuction,i=t.triggerRenderStep,o=t.suspended,a=t.waitingLazyLoad,c=t.waitingLazyRender;return!(r||n||i||o||a||c)})),!((r=[].concat(o(sn(n,e,"fetch")),o(sn(n,e,"render"))).filter((function(e,t,n){return t===n.findIndex((function(t){return t===e}))})).filter((function(e){return e.parentPlacement.adUnits.map((function(e){return ot.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).some((function(e){return Yt(e.conditions)}))}))).length>0)){t.next=6;break}return St.log("🎯 Fetch/Render trigger fired for Ad Units:",r.map((function(e){return e.code}))),t.next=6,go(r,(function(e){var t=e.filter((function(e){return!e.state.triggerRenderStep&&Object.values(je).some((function(t){return Xi[t]&&sn([e],t,"render").length>0}))}));fo(t)}));case 6:if(i=ct.filter((function(e){var t=e.state,n=t.triggerFetchStep,r=t.triggerRenderStep,i=t.waitingLazyLoad,o=t.waitingLazyRender,a=t.waitingAuction;return n&&!r&&!i&&!o&&!a&&Pn(e)})),a=sn(i,e,"render"),c=on(a),s=c.adUnitsWithBids,l=c.adUnitsWithoutBids,!(s.length>0)){t.next=13;break}return St.log("🎯 Render trigger fired for Ad Units (Fetch trigger done):",s.map((function(e){return e.code}))),t.next=13,fo(s);case 13:l.length>0&&(St.log("🎯 Render trigger will fire after auction for Ad Units (Fetch trigger done - but expired/no bids):",l.map((function(e){return e.code}))),mo(l,!1,(function(){fo(l)})));case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function a(){var t=sn(st,e,"render").filter((function(e){return"injected"===e.state})).filter((function(e){return Yt(e.parentHtmlUnit.conditions)}));t.length>0&&(St.log("🎯 Render trigger fired for HTML Units:",t.map((function(e){return e.name}))),vo(t))}n?(t&&St.logt("⚡ ".concat(e)),Xi[e]=!0,a()):Mi(c(G.mark((function n(){return G.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t&&St.logt("⚡ ".concat(e)),Xi[e]=!0,n.next=4,r();case 4:a();case 5:case"end":return n.stop()}}),n)}))))}function fo(e){return po.apply(this,arguments)}function po(){return po=c(G.mark((function e(t){var n,r,i,o,a,s,l,d,u,f;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits,i=r.enabled,o=r.destructionOffset,a=null===(n=window.ayManagerEnv.checkIfAdUnitIsVisible)||void 0===n||n,0!==t.length){e.next=4;break}return e.abrupt("return");case 4:if(St.log("🎯 Trigger Render step for ad units:",t.map((function(e){return e.code}))),t.forEach((function(e){e.state.triggerRenderStep=!0})),a&&(s=[],t=t.filter((function(e){return!!Zt(e)||(s.push(e),!1)})),s.forEach((function(e){e.state.triggerRenderStep=!1})),St.func((function(){s.length&&St.warn("🚫 Trigger ignored for:",s.map((function(e){return e.code})),"Reason: visibility")}))),!i){e.next=16;break}return l=window.ayManagerEnv.settings.experiments.destroyFarUnitsAboveSightOnly,d=void 0!==l&&l,u=[],e.next=12,Sn(t,function(){var e=c(G.mark((function e(t){var n;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rn(t.containerRef,{nearInSight:!0,pixelsOffset:o,aboveSight:d});case 2:return(n=!e.sent)&&u.push(t),e.abrupt("return",!n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 12:t=e.sent,u.forEach((function(e){e.state.triggerRenderStep=!1})),St.func((function(){u.length&&St.log("💤 Trigger Render step ignored for:",u,"Reason: Inside destroy far units offset")})),u.forEach((function(e){e.state.suspended=!0,null==eo||eo.observe(e.containerRef)}));case 16:return f=[],e.next=19,Sn(t,function(){var e=c(G.mark((function e(t){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.parentPlacement.lazyRender){e.next=4;break}return e.abrupt("return",!0);case 4:return e.next=6,rn(t.containerRef,{nearInSight:!0,pixelsOffset:Ji});case 6:if(!e.sent){e.next=11;break}return e.abrupt("return",!0);case 11:return t.state.triggerRenderStep=!1,t.state.waitingLazyRender=!0,Qi.observe(t.containerRef),f.push(t.code),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 19:t=e.sent,St.func((function(){f.length&&St.log("💤 Trigger Render step ignored for:",f,"Reason: Out of lazy render offset")})),t.length>0&&mi(t,!1);case 22:case"end":return e.stop()}}),e)}))),po.apply(this,arguments)}function go(e,t){return ho.apply(this,arguments)}function ho(){return ho=c(G.mark((function e(t,n){var i,a,l,d,u,f,p,g;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=null===(i=window.ayManagerEnv.checkIfAdUnitIsVisible)||void 0===i||i,0!==t.length){e.next=3;break}return e.abrupt("return");case 3:return St.log("🎯 Trigger Fetch step for ad units:",t.map((function(e){return e.code}))),a&&(l=[],t=t.filter((function(e){return!!Zt(e)||(l.push(e.code),!1)})),St.func((function(){l.length&&St.warn("🚫 Trigger ignored for:",l,"Reason: visibility")}))),d=[],e.next=8,Sn(t,function(){var e=c(G.mark((function e(t){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.parentPlacement.lazyLoad){e.next=4;break}return e.abrupt("return",!0);case 4:return e.next=6,rn(t.containerRef,{nearInSight:!0,pixelsOffset:qi});case 6:if(!e.sent){e.next=11;break}return e.abrupt("return",!0);case 11:return t.state.waitingLazyLoad=!0,Zi.observe(t.containerRef),d.push(t.code),e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:t=e.sent,St.func((function(){d.length&&St.log("💤 Trigger Fetch step ignored for:",d,"Reason: Out of lazy load offset")})),u={},f={},p=t.reduce((function(e,t){return Gi(Gi({},e),{},s({},t.code,t.parentPlacement.adUnits.map((function(e){return ot.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).filter((function(e){var t;return u[e._id]=null!==(t=u[e._id])&&void 0!==t?t:Yt(e.conditions)})).map((function(e){var n,r=f[e._id]=null!==(n=f[e._id])&&void 0!==n?n:Qt(e.path),i={code:ar(t.parentPlacement.code,e._id,sr(t.code).instanceNumber),parentAdUnit:e,path:r,parentPlacement:t.parentPlacement};return Rt(Ye.BEFORE_DEFINE_AD_UNIT_PATH,i),i}))))}),{}),t=t.filter((function(e){return p[e.code].length>0})),p=Object.entries(p).filter((function(e){var t=r(e,2);return t[0],t[1].length>0})).reduce((function(e,t){var n=r(t,2),i=n[0],o=n[1];return Gi(Gi({},e),{},s({},i,o))}),{}),g=Object.values(p).reduce((function(e,t){return[].concat(o(e),o(t))}),[]),t.forEach((function(e){e.state.suspended&&In(e.containerRef,e.size),e.state.waitingAuction=!0})),vi(g,(function(){var e=Object.entries(p).map((function(e){var n,i,o=r(e,2),a=o[0],c=o[1],s=t.find((function(e){return e.code===a&&e.state.waitingAuction}));if(!s)return null;if(null!==(n=window[nt])&&void 0!==n&&n.libLoaded){var l=c.map((function(e){var t=window[nt].getHighestUnusedBidResponseForAdUnitCode(e.code);return{code:e.code,cpm:"cpm"in t?t.cpm:-1,partialIntance:e}}));i=l.reduce((function(e,t){return t.cpm>e.cpm?t:e}),l[0]).partialIntance}else i=c[Math.floor(Math.random()*c.length)];return St.log("✏️ Renaming instance from:",s.code,"to:",i.code),s.containerRef.id=i.code,s.code=i.code,s.path=i.path,s.parentAdUnit=i.parentAdUnit,s})).filter((function(e){return null!=e}));dr(),window.googletag.cmd.push((function(){var t=e.map((function(e){try{yi(e),Ei(e.code);var t=mn(e.parentPlacement.style);try{e.containerRef.style.cssText=zt(t),mt&&e.containerRef.classList.add("".concat(me,"_highlight"))}catch(t){t instanceof Error&&Dt(t,{description:"Unable to parse ad unit ".concat(e.code," styles")})}return e.parentPlacement.slug&&e.containerRef&&e.containerRef.classList.add("".concat(me,"_slug")),e.state.waitingAuction=!1,e.state.triggerFetchStep=!0,e}catch(t){var n;if(t instanceof Error)Dt(t,{description:"Failed to trigger Ad Unit Instance ".concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(n=e.parentAdUnit)||void 0===n?void 0:n.name});return ao([e],"Failed to trigger Instance"),null}})).filter((function(e){return null!=e&&Pn(e)}));n(t)}))}));case 18:case"end":return e.stop()}}),e)}))),ho.apply(this,arguments)}function vo(e){e.forEach((function(e){try{e.state="rendered";var t=document.createElement("div"),n=e.parentPlacement,r=n.position,i=n.inject;t.innerHTML=zt(e.parentHtmlUnit.htmlCode);var o=Array.from(t.children).slice(),a=[];(i&&("afterbegin"===r||"afterend"===r)?o.slice().reverse():o).forEach((function(t){t.setAttribute("data-ay-manager-placement-id",e.name),i?e.placementRef.insertAdjacentElement(r,t):e.placementRef.appendChild(t)})),o.forEach((function(e){"SCRIPT"===e.tagName&&a.push(e),Array.from(e.getElementsByTagName("SCRIPT")).slice().forEach((function(e){return a.push(e)}))})),a.forEach((function(t){return function(e,t){try{var n=document.createElement("script"),r=!e.src,i=Array.prototype.slice.call(e.attributes);if(n.async=!1,i.forEach((function(e){return n.setAttribute(e.name,e.value)})),r){n.type="text/javascript";var o=e.innerHTML;if(ht){var a="ayManagerEnv/"+t.replace(/\s/g,"_");o+="\n//# sourceURL=".concat(a)}n.appendChild(document.createTextNode(o))}else n.addEventListener("error",(function(e){var n=e.error;Dt(n instanceof Error?n:new Error(n),{type:"script.onerror",description:"Error while trying to trigger HTML unit instance: ".concat(t,". ")+"One of its external scripts failed to load!",htmlUnitName:t},!1)}));e.parentElement&&e.parentElement.replaceChild(n,e)}catch(e){e instanceof Error&&Dt(e,{description:"Unable to execute script from HTMLUnit ".concat(t),htmlUnitInstanceName:t})}}(t,e.parentHtmlUnit.name)}))}catch(t){var c;if(t instanceof Error)Dt(t,{description:"Failed to trigger HTML unit instance: ".concat(e.name),htmlUnitInstanceName:e.name,htmlUnitName:null===(c=e.parentHtmlUnit)||void 0===c?void 0:c.name}),lo([e],"Failed to trigger HTML unit instance")}}))}function mo(e,t,n){var r=window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.enabled;e.forEach((function(e){e.state.waitingAuction=!0,r&&$i.unobserve(e.containerRef)})),vi(e,(function(){var r=e.filter((function(e){return e.state.waitingAuction&&e.parentAdUnit&&e.slot}));r.forEach((function(e){e.state.waitingAuction=!1})),n?n(r):mi(r,t)}))}function yo(e){try{var t=function(e){return"string"==typeof e};if(!t(e)||!it.some((function(t){return t.code===e}))){var n=e;return void window.googletag.cmd.push((function(){if(window.googletag._display(n),!window.googletag._wasInitialLoadDisabled){var e=null!=(r=n)&&"object"===i(r)&&"id"in r?window.googletag.pubads().getSlots().find((function(e){return e.getSlotElementId()===n.id})):t(n)?window.googletag.pubads().getSlots().find((function(e){return e.getSlotElementId()===n})):n;null!=e&&window.googletag.pubads().refresh([e])}var r}))}var r=document.querySelector("[data-ay-manager-id='".concat(e,"']"))||document.querySelector("#".concat(e,":not([data-manual-placement-group])"));if(!r)return void St.warn("🚫 Manual placement container not found or display called twice for same placement container.","Make sure the whole manual placement snippet is being inserted on the page.");r.removeAttribute("data-ay-manager-id"),r.setAttribute("data-manual-placement-group",e),r.children[0]&&r.removeChild(r.children[0]),it.filter((function(t){return!1===t.inject&&t.code===e&&Yt(t.conditions)})).forEach((function(e){try{if(e.adUnits.length>0){var t,n=document.createElement("div"),i={code:ar(e.code),parentPlacement:e,containerRef:n,state:{triggerFetchStep:!1,triggerRenderStep:!1,waitingAuction:!1,suspended:!1,rendered:!1,waitingLazyLoad:!1,waitingLazyRender:!1,waitingGPTRender:!1},renderInfo:(t={count:0},s(t,qe.ADVERTISER,""),s(t,qe.ORDER,""),s(t,qe.LINE_ITEM,""),s(t,qe.SIZE,""),s(t,qe.BIDDER,""),t)};if(ct.push(i),n.id=i.code,r.appendChild(n),St.logt("📑 Ad unit instance injected - manual:",[i.code]),Object.values(je).some((function(e){return Xi[e]&&(sn([i],e,"fetch").length>0||sn([i],e,"render").length>0)})))i.parentPlacement.adUnits.map((function(e){return ot.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).some((function(e){return Yt(e.conditions)}))&&(St.logt("🎯 Trigger fired for:",[i.code]),go([i],(function(e){fo(e.filter((function(e){return Object.values(je).some((function(t){return Xi[t]&&sn([e],t,"render").length>0}))&&!e.state.triggerRenderStep})))})))}if(e.htmlUnits.length>0){var o=e.htmlUnits.map((function(e){return at.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).filter((function(e){return Yt(e.conditions)}));if(o.length>0){var a=o.map((function(t){var n=document.createElement("script"),i={name:ar(e.code),parentPlacement:e,parentHtmlUnit:t,placeholderRef:n,placementRef:r,state:"injected"};return st.push(i),n.id=i.name,n.type="yield-manager/html-unit-placeholder",r.appendChild(n),i}));St.logt("📑 HTML unit instances injected - manual:",st.map((function(e){return e.name}))),Object.values(je).some((function(t){return Xi[t]&&sn([e],t,"render").length>0}))&&(St.logt("🎯 Trigger fired for:",st.map((function(e){return e.name}))),vo(a))}}}catch(t){t instanceof Error&&Dt(t,{description:"Failed to manually inject placement ".concat(e.name),adUnitName:e.name})}}))}catch(t){t instanceof Error&&Dt(t,Gi({description:"Exception in display API call"},"string"==typeof e?{adUnitCodes:[e]}:{}))}}function Eo(){return bo.apply(this,arguments)}function bo(){return(bo=c(G.mark((function e(){var t,n,o,a,c,s,l;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=function(e,t){var n;if("number"==typeof e)return e;var r=e.refreshCallsLimit;if(r>0&&t.renderInfo.count>=r)return 0;var i=null===(n=e.rules.find((function(e){if(!e.enabled)return!1;switch(e.type){case qe.ADVERTISER:case qe.ORDER:case qe.LINE_ITEM:case qe.SIZE:case qe.BIDDER:return e.value.includes(t.renderInfo[e.type]);case qe.LINE_ITEM_TYPE:var n,r=t.renderInfo[qe.LINE_ITEM],i=null===(n=bt[r])||void 0===n?void 0:n[0];return null!=i&&e.value.includes(i);default:return!1}})))||void 0===n?void 0:n.seconds;return null!=i?i:e.defaultRefresh},t=[],n=Object.entries(Ki).filter((function(e){var t=r(e,2);return t[0],null!==t[1].viewedAt})),!document.hidden){e.next=5;break}return e.abrupt("return");case 5:o=ki(n),e.prev=6,c=G.mark((function e(){var n,i,o,c,s,d,u,f,p,g;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r(a.value,2),i=n[0],o=n[1],c=o.slot,s=o.viewedAt,d=o.refreshControl,e.prev=1,(u=ct.find((function(e){return e.code===i})))&&u.parentAdUnit&&u.state.rendered){e.next=6;break}return delete Ki[i],e.abrupt("return",{v:void 0});case 6:if(0!==(f=l(d,u))){e.next=11;break}qo(c,null),e.next=19;break;case 11:if(p=s.getTime()<=Date.now()-1e3*Math.max(1,f-3),e.t0=window.ayManagerEnv.settings.experiments.refreshRegardlessOfView,e.t0){e.next=17;break}return e.next=16,rn(u.containerRef);case 16:e.t0=e.sent;case 17:g=e.t0,p&&g&&(delete Ki[i],t.push(i));case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(1),e.t1 instanceof Error&&Dt(e.t1,{description:"Error while deciding whether to refresh viewable slot",adUnitInstanceCode:i});case 24:case"end":return e.stop()}}),e,null,[[1,21]])})),o.s();case 9:if((a=o.n()).done){e.next=16;break}return e.delegateYield(c(),"t0",11);case 11:if("object"!==i(s=e.t0)){e.next=14;break}return e.abrupt("return",s.v);case 14:e.next=9;break;case 16:e.next=21;break;case 18:e.prev=18,e.t1=e.catch(6),o.e(e.t1);case 21:return e.prev=21,o.f(),e.finish(21);case 24:t.length>0&&wo(t,{useInstanceCodes:!0,mode:"page",ignoreRefreshLimits:!0});case 25:case"end":return e.stop()}}),e,null,[[6,18,21,24]])})))).apply(this,arguments)}function wo(e,t){return To.apply(this,arguments)}function To(){return(To=c(G.mark((function e(t,n){var r,i,o,a,c,l,d,u,f,p,g,h,v,m,y,E,b,w;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,c=void 0===a?400:a,l=r.useInstanceCodes,d=void 0!==l&&l,u=r.preFetch,f=void 0!==u&&u,p=r.onlyUpdateViewedAt,g=void 0!==p&&p,h=r.ignoreRefreshLimits,v=void 0!==h&&h,m=[],!vt){e.next=6;break}return St.warn("Refresh cancelled due 'no_refresh' debug flag!"),e.abrupt("return");case 6:if(null!=t){e.next=10;break}m=ct.slice(),e.next=16;break;case 10:if(!Array.isArray(t)||!t.every((function(e){return"string"==typeof e}))){e.next=14;break}m=d?ct.filter((function(e){return t.includes(e.code)})):ct.filter((function(e){return t.includes(e.parentPlacement.code)})),e.next=16;break;case 14:return St.error("Invalid 'placementCodes' provided to ayManagerEnv.refresh()"+JSON.stringify(t)),e.abrupt("return");case 16:return m=m.filter((function(e){try{if(!e.state.rendered)return!1;if(!Pn(e))return!1;var t;if((null===(t=window.ayManagerEnv.checkIfAdUnitIsVisible)||void 0===t||t)&&!Zt(e))return so([e],"Instance had no visibility when trying to refresh"),!1;if(wt&&!v)try{var n,r=window.ayManagerEnv.settings.yieldScriptSettings.refreshLimits,i=r.advertiserIds,o=r.orderIds,a=r.lineItemTypes,c=e.renderInfo[qe.ADVERTISER],s=e.renderInfo[qe.ORDER],l=e.renderInfo[qe.LINE_ITEM],d=null===(n=bt[l])||void 0===n?void 0:n[0],u=""!==c&&!vn(i.include,i.exclude,c.toString()),f=""!==s&&!vn(o.include,o.exclude,s.toString()),p=null!=d&&!vn(a.include,a.exclude,d);if(u||f||p)return!1}catch(t){return t instanceof Error&&Dt(t,{description:"Error while checking refresh limits for ad unit instance",adUnitInstanceCode:e.code}),!1}return!0}catch(t){return t instanceof Error&&Dt(t,{description:"Error while deciding whether to refresh ad unit instance",adUnitInstanceCode:e.code}),!1}})),e.next=19,an(m,o,c);case 19:(m=e.sent).length>0&&(y=m.map((function(e){return e.code})),g?(St.log("🔄 Updating the viewedAt info for the following Ad Unit instances:",y),m.map((function(e){return e.slot})).filter((function(e){return null!=e})).forEach((function(e){qo(e)}))):(Rt(Ye.BEFORE_REFRESH,y,m),m.forEach((function(e){var t,n;delete Ki[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),e.renderInfo=(s(n={count:e.renderInfo.count+1,obs:void 0},qe.ADVERTISER,""),s(n,qe.ORDER,""),s(n,qe.LINE_ITEM,""),s(n,qe.SIZE,""),s(n,qe.BIDDER,""),n)})),f?(E=on(m),b=E.adUnitsWithBids,w=E.adUnitsWithoutBids,St.log("🔄 Refreshing the following Ad Unit Instances:",y,"\nThe following will be rendered right away (pre-fetch):",b.map((function(e){return e.code}))),b.length>0&&(mi(b,!0),mo(b,!0,(function(){}))),w.length>0&&mo(w,!0,(function(e){mi(e,!0),mo(w,!0,(function(){}))}))):(St.log("🔄 Refreshing the following Ad Unit Instances:",y),mo(m,!0)))),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(0),e.t0 instanceof Error&&Dt(e.t0,{description:"Exception in refresh API call"});case 26:case"end":return e.stop()}}),e,null,[[0,23]])})))).apply(this,arguments)}function Io(e,t){return So.apply(this,arguments)}function So(){return(So=c(G.mark((function e(t,n){var r,i,o,a,c,s,l,d;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,c=void 0===a?400:a,s=r.useInstanceCodes,l=void 0!==s&&s,d=[],null!=t){e.next=7;break}d=ct.slice(),e.next=13;break;case 7:if(!(Array.isArray(t)&&t.length>0)){e.next=11;break}d=l?ct.filter((function(e){return t.includes(e.code)})):ln(t,ct),e.next=13;break;case 11:return St.error("Invalid 'placementCodes' provided to ayManagerEnv.fetch()"+JSON.stringify(t)),e.abrupt("return");case 13:return d=d.filter((function(e){return Pn(e)})),e.next=16,an(d,o,c);case 16:(d=e.sent).length>0&&(St.log("📩 Fetching bids for the following Ad Unit Instances:",d.map((function(e){return e.code}))),mo(d,!1,(function(){}))),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),e.t0 instanceof Error&&Dt(e.t0,{description:"Exception in fetch API call"});case 23:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}function Oo(e,t){return Ao.apply(this,arguments)}function Ao(){return(Ao=c(G.mark((function e(t,n){var r,i,o,a,c,s,l,d;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,c=void 0===a?400:a,s=r.useInstanceCodes,l=void 0!==s&&s,d=[],null!=t){e.next=7;break}d=ct.slice(),e.next=13;break;case 7:if(!(Array.isArray(t)&&t.length>0)){e.next=11;break}d=l?ct.filter((function(e){return t.includes(e.code)})):ln(t,ct),e.next=13;break;case 11:return St.error("Invalid 'placementCodes' provided to ayManagerEnv.render()"+JSON.stringify(t)),e.abrupt("return");case 13:return d=d.filter((function(e){return Pn(e)})),e.next=16,an(d,o,c);case 16:(d=e.sent).length>0&&(St.log("🎇 Rendering the following Ad Unit Instances:",d.map((function(e){return e.code}))),d.forEach((function(e){return Qi.unobserve(e.containerRef)})),mi(d,!1)),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),e.t0 instanceof Error&&Dt(e.t0,{description:"Exception in render API call"});case 23:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}function Ro(e,t){return _o.apply(this,arguments)}function _o(){return _o=c(G.mark((function e(t,n){var r,i,o,a,c,s,l,d;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,c=void 0===a?400:a,s=r.useInstanceCodes,l=void 0!==s&&s,d=[],null!=t){e.next=7;break}d=ct.slice(),e.next=13;break;case 7:if(!(Array.isArray(t)&&t.length>0)){e.next=11;break}d=l?ct.filter((function(e){return t.includes(e.code)})):ln(t,ct),e.next=13;break;case 11:return St.error("Invalid 'placementCodes' provided to ayManagerEnv.reset()"+JSON.stringify(t)),e.abrupt("return");case 13:return d=d.filter((function(e){var t=e.state,n=t.suspended,r=t.triggerFetchStep,i=t.triggerRenderStep;return n||r||i})),e.next=16,an(d,o,c);case 16:so(d=e.sent,"reset API call"),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),e.t0 instanceof Error&&Dt(e.t0,{description:"Exception in reset API call"});case 23:case"end":return e.stop()}}),e,null,[[0,20]])}))),_o.apply(this,arguments)}function No(e,t){return Uo.apply(this,arguments)}function Uo(){return(Uo=c(G.mark((function e(t,n){var r,i,o,a,c,s,l,d;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,c=void 0===a?400:a,s=r.useInstanceCodes,l=void 0!==s&&s,d=[],null!=t){e.next=7;break}d=ct.slice(),e.next=13;break;case 7:if(!(Array.isArray(t)&&t.length>0)){e.next=11;break}d=l?ct.filter((function(e){return t.includes(e.code)})):ln(t,ct),e.next=13;break;case 11:return St.error("Invalid 'placementCodes' provided to ayManagerEnv.destroy()"+JSON.stringify(t)),e.abrupt("return");case 13:return e.next=15,an(d,o,c);case 15:(d=e.sent).forEach((function(e){e.placementRef&&e.placementRef.setAttribute("data-ay-manager-destroyed","true")})),ao(d,"destroy API call"),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),e.t0 instanceof Error&&Dt(e.t0,{description:"Exception in destroy API call"});case 23:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}function Po(e){try{var t=[];if(null==e)t=it.slice();else{if(!(Array.isArray(e)&&e.length>0))return void St.error("Invalid 'placementCodes' provided to ayManagerEnv.restore()"+JSON.stringify(e));t=it.filter((function(t){return e.includes(t.code)}))}t.length>0&&(St.log("🔙 Restoring the following placements:",t.map((function(e){return e.name}))),t.forEach((function(e){var t=document.querySelectorAll(e.placement);Array.prototype.slice.apply(t).forEach((function(e){return e.removeAttribute("data-ay-manager-destroyed")}))})))}catch(e){e instanceof Error&&Dt(e,{description:"Exception in restore API call"})}}function Do(e,t){return Lo.apply(this,arguments)}function Lo(){return(Lo=c(G.mark((function e(t,n){var r,i,o,a,c,s,l,d,u;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,c=void 0===a?400:a,s=r.useInstanceCodes,l=void 0!==s&&s,d=[],null!=t){e.next=7;break}d=ct.slice(),e.next=13;break;case 7:if(!(Array.isArray(t)&&t.length>0)){e.next=11;break}l?(u=t.map((function(e){return e.replace(/_[^_]+$/,"")})),d=ct.filter((function(e){return u.includes(e.code)}))):d=ln(t,ct),e.next=13;break;case 11:return St.error("Invalid 'placementCodes' provided to ayManagerEnv.trigger()"+JSON.stringify(t)),e.abrupt("return");case 13:return d=d.filter((function(e){return!e.state.triggerFetchStep&&!e.state.triggerRenderStep&&Object.values(je).some((function(t){return Xi[t]&&(sn([e],t,"fetch").length>0||sn([e],t,"render").length>0)}))})),e.next=16,an(d,o,c);case 16:(d=e.sent).length>0&&(St.log("🔙 Triggering the following Ad Unit Instances:",d.map((function(e){return e.code}))),go(d,(function(e){fo(e.filter((function(e){return Object.values(je).some((function(t){return Xi[t]&&sn([e],t,"render").length>0}))&&!e.state.triggerRenderStep})))}))),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(0),e.t0 instanceof Error&&Dt(e.t0,{description:"Exception in trigger API call"});case 23:case"end":return e.stop()}}),e,null,[[0,20]])})))).apply(this,arguments)}function Mo(){try{uo(je.CONSENT_INITIALIZATION)}catch(e){e instanceof Error&&Dt(e,{description:"Exception in fakeTCLoad API call"})}}function Co(){window.ayManagerEnv.cmd.push((function(){ro(),uo(je.MANUAL_EVENT)}))}St.group("Yield Manager - Initializing..."),St.log("pbjs loaded:",null!==(Wi=null===(Vi=window[nt])||void 0===Vi?void 0:Vi.libLoaded)&&void 0!==Wi&&Wi),St.log("Ad units:",ot),St.log("HTML units:",at),St.groupEnd(),function(){var e=window.ayManagerEnv.settings.yieldScriptSettings,t=e.enableTracker,n=e.trackerId,r=e.trackerConfig;if(t&&(!window.assertive||!window.assertive.initialized)){var i;try{i=Ht(r)}catch(e){e instanceof Error&&Dt(e,{description:"Unable to evaluate tracker config"})}window.assertive=i||{},window.assertive.entityId=n,window.assertive.debug=ht,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("script");n.src=e,n.async=t,An(n)}("https://".concat(n,".ay.delivery/client-v2.js"))}}(),Tt&&new Promise((function(e,t){try{var n=window.ayManagerEnv.settings.yieldScriptSettings.trackerId,r=new XMLHttpRequest;r.open("GET","https://".concat(n,".ay.delivery/data/").concat(n,"/lineitems.json")),r.onload=function(){if(200===r.status)try{var n=JSON.parse(r.response);e(n)}catch(e){e.message&&(e.message="Failed to parse line item type map: "+e.message),t(e)}else 404===r.status?t("No line item type map available yet."):t("Request failed with status ".concat(r.status))},r.onerror=function(){t(new Error("Request failed"))},r.send()}catch(e){t(e)}})).then((function(e){Object.assign(bt,e)})).catch((function(e){var t;St.warn(null!==(t=e.message)&&void 0!==t?t:"",e)})),function(e){window.googletag.cmd.push((function(){window.googletag.display=e,window.googletag.pubads().disableInitialLoad(),window.googletag.pubads().enableSingleRequest(),window.googletag.pubads().setCentering(!0),window.googletag.enableServices()}))}(yo),ut&&function(){try{var e;(null!==(e=window.ayManagerEnv.settings.yieldScriptSettings.apsBidPool)&&void 0!==e?e:{enabled:!1}).enabled&&(r="KYjhyGIHnjBUB+cBsT8tyg==62bSNrO3b3==YCt5D4F7q5GclDDPMr6KphYGcR1tPtirQ==",new Promise((function(e,t){try{if("crypto"in window&&"subtle"in window.crypto){var n=function(e){return String.fromCharCode.apply(null,e)},o=function(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))},a=function(){var e=c(G.mark((function e(t,r,i){var a,c;return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,crypto.subtle.importKey("raw",o(r),{name:"AES-CTR"},!1,["encrypt","decrypt"]);case 2:return a=e.sent,e.t0=n,e.t1=Uint8Array,e.next=7,crypto.subtle.decrypt({name:"AES-CTR",counter:o(i),length:128},a,o(t));case 7:return e.t2=e.sent,e.t3=new e.t1(e.t2),c=(0,e.t0)(e.t3),e.abrupt("return",c);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),s=window.ayManagerEnv.settings.yieldScriptSettings.trackerId,l=new XMLHttpRequest;l.open("GET","https://".concat(s,".ay.delivery/data/").concat(s,"/m.json")),l.onload=function(){200===l.status?a(l.responseText,r.slice(0,24),r.slice(47)).then((function(n){try{var r=JSON.parse(n);"object"===i(r)&&null!=r&&Object.keys(r).length>0?e(r):t("Data is empty or invalid")}catch(e){t(e)}})).catch((function(e){t(e)})):t(new Error("Request failed with status ".concat(l.status)))},l.onerror=function(){t(new Error("Request failed"))},l.send()}else t(new Error("'crypto' is not available in window"))}catch(e){t(e)}})).then((function(e){Object.assign(Lr,e)})).catch((function(e){var t;St.warn("Amazon setup is likely not synchronized yet (this can take up to 4h)! "+(null!==(t=e.message)&&void 0!==t?t:""),e)})));var t=!1,n=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!t){t=!0;var r=window.ayManagerEnv.settings.yieldScriptSettings.publisherId,i=tn();if(i.pubID=r,i.adServer="googletag",i.videoAdServer="DFP",null==i.bidTimeout&&(i.bidTimeout=ai),null==(null===(e=i.gdpr)||void 0===e?void 0:e.cmpTimeout)&&(i.gdpr=i.gdpr||{},i.gdpr.cmpTimeout=li),null!=window.apstag){var o=function(e){Rt(Ye.APS_BEFORE_INIT,e),e.deals=!0,window.apstag.init(e,(function(){for(Rt(Ye.APS_AFTER_INIT,e);hi.length;){var t;null===(t=hi.pop())||void 0===t||t()}nn(hi,(function(e){return e()}))}))};try{var a=$r($r({},i),window.ayManagerEnv.apsTagInit?window.ayManagerEnv.apsTagInit:{});null!=n&&(a.params=a.params||{},a.params.us_privacy=n),o(a)}catch(e){e instanceof Error&&Dt(e,{description:"Unable to read apsTagInit data, falling back to default APS initialization"}),o(i)}}}};"__uspapi"in window?(window.__uspapi("getUSPData",1,(function(e,t){t?n(e.uspString):n()})),setTimeout((function(){n()}),di)):n(),window.googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=e.slot,n=e.isBackfill,r=e.isEmpty;try{var i=t.getSlotElementId();if(null==window.apstag||!cr(i))return;var o=r||n?void 0:-1!==t.getHtml().lastIndexOf("apstag.renderImp(document,"),a=Mr.find((function(e){var t=e.slotID,n=e.status;return t===i&&"targetingSet"===n}));window.ayManagerEnv.settings.experiments.skipClearBidTargeting||Rn(null!=a&&a.helpers.targetingKeys.length>0?a.helpers.targetingKeys:["amzniid","amznp","amznsz","amznbid","amznactt"],t),null!=a&&(o?(a.status="rendered",Mr.splice(Mr.indexOf(a),1)):delete a.status)}catch(e){e instanceof Error&&Dt(e,{description:"Failed to detect if APS bid won"})}}))}))}catch(e){e instanceof Error&&Dt(e,{description:"Exception during APS initialization"})}var r}(),ft&&window[nt].que.push((function(){try{var e,t=window.ayManagerEnv.settings.prebidSettings,n=t.customBidPool.enabled,r=t.persistentBidCaching;void 0===ii.disableAjaxTimeout&&(ii.disableAjaxTimeout=!0),void 0===ii.maxRequestsPerOrigin&&(ii.maxRequestsPerOrigin=6),!1!==window.ayManagerEnv.settings.experiments.minBidCacheTTL&&(ii.minBidCacheTTL=null!==(e=window.ayManagerEnv.settings.experiments.minBidCacheTTL)&&void 0!==e?e:60),n&&(ii.useBidCache=!0),window[nt].setConfig(ii),rt.bidders.forEach((function(e){var t=e.alias,n=e.bidder,r=e.gvlid;if(t){var i=void 0===r?{useBaseGvlid:!0}:0!==r?{gvlid:r}:{};window[nt].aliasBidder(n,t,i)}})),rt.bidders.forEach((function(e){var t=e.alias,n=e.bidder,r=e.cpmAdjustments,i=e.storageAllowed,o=null!=t?t:n,a=window[nt].bidderSettings[o]=window[nt].bidderSettings[o]||{};a.bidCpmAdjustment=function(e){return e*r},a.storageAllowed=i})),window[nt].onEvent("bidResponse",(function(e){var t;"teads"===((null===(t=window[nt].aliasRegistry)||void 0===t?void 0:t[e.bidderCode])||e.bidderCode)&&(e.ttl=140)})),r&&gr(),window.ayManagerEnv.settings.experiments.disableBidLostCheck||window.googletag.cmd.push((function(){window.googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=e.slot,n=e.isEmpty,r=e.isBackfill;try{var i=t.getSlotElementId();if(!cr(i))return;var o=window[nt].getBidResponsesForAdUnitCode(i).bids.find((function(e){return"targetingSet"===e.status}));o&&(n||r?a(o):window.ayManagerEnv.settings.experiments.disableBidLostCheckPartially||setTimeout((function(){"targetingSet"===o.status&&a(o)}),500)),t.getTargeting("aym_refresh").length>0?t.clearTargeting("aym_refresh"):Dt(new Error("Setting and removing a refresh targeting!"),{adUnitCodes:[i]})}catch(e){e instanceof Error&&Dt(e,{description:"Failed to reset bid that lost to dfp"})}function a(e){try{ht&&St.log("'slotRenderEnded' timer - Bid lost to dfp. Slot element ID: ".concat(e.adUnitCode,". Refreshing bid: ").concat(e.adId),JSON.parse(JSON.stringify(e))),e.pooled&&e.originalAdUnitCode&&(e.adUnitCode=e.originalAdUnitCode,delete e.pooled,delete e.originalAdUnitCode,delete e.originalHighestBid),delete e.status,e.reset=!0}catch(e){e instanceof Error&&Dt(e,{description:"Failed to reset bid that lost to dfp"})}}}))})),window[nt].onEvent("bidWon",(function(e){e.reset&&(e.status="rendered")})),window[nt].onEvent("bidWon",(function(e){var t=ct.find((function(t){return t.code===e.adUnitCode}));t&&(t.renderInfo[qe.BIDDER]=e.bidder)}))}catch(e){e instanceof Error&&Dt(e,{description:"Exception during Prebid initialization"})}})),window.assertiveQueue.push((function(){var e,t;"function"==typeof window.assertive.setConfig&&void 0===(null===(e=window.assertive.analytics)||void 0===e||null===(t=e.integrations)||void 0===t?void 0:t.fullErrorLogging)&&window.assertive.setConfig("analytics.integrations.fullErrorLogging",!0)})),window.ayManagerEnv.refresh=wo,window.ayManagerEnv.fetch=Io,window.ayManagerEnv.render=Oo,window.ayManagerEnv.reset=Ro,window.ayManagerEnv.destroy=No,window.ayManagerEnv.restore=Po,window.ayManagerEnv.trigger=Do,window.ayManagerEnv.changePage=ir(io,30),window.ayManagerEnv.display=yo,window.ayManagerEnv.fakeTCLoad=Mo,window.ayManagerEnv.dispatchManualEvent=Co,window.ayManagerEnv.onEvent=Nt,window.ayManagerEnv.offEvent=Ut,window.ayManagerEnv.onceEvent=_t,window.ayManagerEnv.viewableSlots=Ki,window.ayManagerEnv.debug={flags:pt,conditionsEvaluation:{placements:[],adUnits:[],htmlUnits:[],bidders:[]},runDebugConditionsEvaluation:pr},window.ayManagerEnv.tools={getCookie:jt,setCookie:Ft,getEnabledAdUnits:Ni,getEnabledPlacements:_i,getEnabledHTMLUnits:Ui},window.ayManagerEnv.getHighestQualifiedBids=function(e){var t=window.ayManagerEnv.settings.prebidSettings.customBidPool.enabled;if(!window[nt].libLoaded)return St.warn("ayManagerEnv.getHighestQualifiedBid() was called but Prebid is not loaded."),{};if(null==e||!function(e){return null!=e&&"object"===i(e)&&Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}(e))return St.error("Invalid 'adUnitCodes' array provided to ayManagerEnv.getHighestQualifiedBid()"+JSON.stringify(e)),{};if(0===(e=e.filter((function(e){return cr(e)}))).length)return{};if(t||Er.useBidCache){var n=Ir(e,!1).bids;return e.reduce((function(e,t){var r;return yr(yr({},e),{},s({},t,null===(r=n.find((function(e){return e.adUnitCode===t})))||void 0===r?void 0:r.bid))}),{})}return e.map((function(e){return window[nt].getHighestUnusedBidResponseForAdUnitCode(e)})).filter((function(e){return"adId"in e})).reduce((function(e,t){return yr(yr({},e),{},s({},t.adUnitCode,t))}),{})},document.head.appendChild(document.createElement("style")).innerHTML="\n            .".concat(me,"_slug:before {\n                content: 'Ad';\n                display: block;\n                width: 100%;\n                text-align: center;\n                font-size: 10px;\n                color: #6a737c;\n            }\n        "),function(){if(mt){var e="",t="".concat(me,"_highlight");e+=".".concat(t," { background-color: #eee; outline: solid 2px #0f0; outline-offset: -2px; }"),e+=".".concat(t," > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2vw; font-family: monospace; }");var n=document.head.appendChild(document.createElement("style"));n.id="".concat(me,"_debug_styles"),n.innerHTML=e}}(),function(){var e=window.ayManagerEnv.settings.experiments,t=e.sandbox,n=e.sandboxObserve;if(!1!==t){"string"==typeof t&&(bi=t);var r=new MutationObserver((function(e){var t=e[0].target;t.getAttribute("sandbox")!==bi&&wi(t)})),i=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return"IFRAME"===e.nodeName&&e.id&&e.id.startsWith("google_ads_iframe_")&&(wi(e),n&&r.observe(e,{attributes:!0,attributeFilter:["sandbox"]})),i.apply(this,arguments)}}}(),io({skipAdUnits:!0}),uo(je.SCRIPT_LOADED,!0,!0),window.googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=e.slot.getSlotElementId();if(cr(t)){var n=window.ayManagerEnv.settings.yieldScriptSettings.destroyFarUnits.enabled,r=ct.find((function(e){return e.code===t}));r&&(r.state.rendered=!0,r.state.waitingGPTRender=!1,n&&$i.observe(r.containerRef))}}))}));var xo=history,Bo=xo.pushState,jo=xo.replaceState,Fo=window.ayManagerEnv.settings.yieldScriptSettings.spa,ko=void 0===Fo?{mode:ye.MANUAL}:Fo,Ho=ir(io,50),zo=window.location.pathname,Go=function(){var e=window.location.pathname;e!==zo&&(Mr.length=0,zo=e),ko.mode!==ye.MANUAL&&requestAnimationFrame((function(){Ho({refresh:ko.mode===ye.REFRESH,reset:ko.mode===ye.RESET})}))};history.pushState=function(){Bo.apply(history,arguments),Go()},history.replaceState=function(){jo.apply(history,arguments),Go()},window.addEventListener("popstate",(function(e){e.state&&Go()}));var Wo=function(){try{io();for(var e=function(e){try{"function"==typeof e&&e()}catch(e){e instanceof Error&&Dt(e,{description:"Exception in queued YM command"})}};window.ayManagerEnv.cmd.length;)e(window.ayManagerEnv.cmd.pop());nn(window.ayManagerEnv.cmd,(function(t){return e(t)})),uo(je.WINDOW_READY),Vo(),Ri(oo)}catch(e){e instanceof Error&&Dt(e,{description:"Exception in onReady listener"})}},Vo=function(){if("__tcfapi"in window)try{window.__tcfapi("addEventListener",2,(function(e,t){Xi[je.CONSENT_INITIALIZATION]||!1!==e.gdprApplies&&"tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus?t||St.log("Listener for 'TCF Load' event could not be registered!"):(pi(ui),uo(je.CONSENT_INITIALIZATION),window.__tcfapi("removeEventListener",2,(function(e){}),e.listenerId))}))}catch(e){e instanceof Error&&Dt(e,{description:"Exception in Consent Initialization listener"})}else pi(ui),St.warn("__tcfapi framework/stub not found")};/interactive/.test(document.readyState)||/complete/.test(document.readyState)?Wo():document.addEventListener("readystatechange",(function(e){"interactive"===e.target.readyState&&Wo()}));var Yo=function(){try{uo(je.WINDOW_LOADED)}catch(e){e instanceof Error&&Dt(e,{description:"Exception in onLoad listener"})}};function qo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;try{var n=e.getSlotElementId(),r=ct.find((function(e){return e.code===n}));if(r&&r.parentAdUnit){var i,o=r.parentAdUnit.refresh,a=o.refreshBasic,c=o.refreshControls,s=null==c&&0===a,l=null===(null===(i=Ki[n])||void 0===i?void 0:i.viewedAt);s||l||(Ki[n]={slot:e,viewedAt:t,refreshControl:d(r.parentAdUnit.refresh)})}}catch(t){t instanceof Error&&Dt(t,{description:"Failed to update viewedAt timestamp",adUnitInstanceCode:e.getSlotElementId()})}function d(e){var t=window.ayManagerEnv.settings.definitions,n=e.refreshBasic,r=e.refreshControls;if(r){var i=r.find((function(e){var n,r;return Yt(null!==(n=null===(r=t.refreshControls[e])||void 0===r?void 0:r.conditions)&&void 0!==n?n:[])}));return i?t.refreshControls[i]:(St.warn("The conditions of all refresh controls associated with this Ad Unit evaluated to false. This will cause the Ad Unit not to refresh."),0)}return n}}/complete/.test(document.readyState)?Yo():document.addEventListener("readystatechange",(function(e){"complete"===e.target.readyState&&Yo()})),window.googletag.cmd.push((function(){window.googletag.pubads().addEventListener("impressionViewable",(function(e){qo(e.slot)})),window.googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t,n=e.slot,r=e.advertiserId,i=e.campaignId,o=e.lineItemId,a=e.isEmpty,c=n.getSlotElementId();if(cr(c)){var s=ct.find((function(e){return e.code===c})),l=null==s||null===(t=s.parentAdUnit)||void 0===t?void 0:t.refresh.refreshControls;if(null!=s&&((l||wt)&&(s.renderInfo[qe.LINE_ITEM]=String(null!=o?o:""),s.renderInfo[qe.ADVERTISER]=String(null!=r?r:""),s.renderInfo[qe.ORDER]=String(null!=i?i:"")),l&&(s.renderInfo[qe.SIZE]||function(e,t){var n=null;try{var r=wn(e);if(!r)return void t(null);var i=function(){var e=r.width,n=r.height;"1"===e&&r.style.width&&(e=r.style.width),"1"===n&&r.style.height&&(n=r.style.height),t({width:yn(e||"0"),height:yn(n||"0")})};if("1"!==r.width||"1"!==r.height||r.style.width||r.style.height)i();else{var o={width:r.style.width,height:r.style.height},a=0,c=0;(n=new MutationObserver((function(e){try{var s;e.forEach((function(e){var t=e.attributeName;"width"===t||"height"===t?a++:"style"===t&&(r.style.width!==o.width&&c++,r.style.height!==o.height&&c++)})),(a>=2||c>=2)&&(null===(s=n)||void 0===s||s.disconnect(),i())}catch(e){var l;null===(l=n)||void 0===l||l.disconnect(),t(null)}}))).observe(r,{attributes:!0,attributeFilter:["width","height","style"]}),e.renderInfo.obs=n}}catch(r){var s;r instanceof Error&&Dt(r,{description:"Unable to get ad creative size",adUnitInstanceCode:e.code}),null===(s=n)||void 0===s||s.disconnect(),t(null)}}(s,(function(e){e&&e.height&&e.width&&(s.renderInfo[qe.SIZE]=Object.values(e).join("x"))})))),a)l&&(s.renderInfo[qe.BIDDER]="",s.renderInfo[qe.SIZE]="0x0"),qo(n);else if(wt)try{var d,u=window.ayManagerEnv.settings.yieldScriptSettings.refreshLimits,f=u.advertiserIds,p=u.orderIds,g=u.lineItemTypes,h=null===(d=bt[String(null!=o?o:"")])||void 0===d?void 0:d[0],v=r&&!vn(f.include,f.exclude,r.toString()),m=i&&!vn(p.include,p.exclude,i.toString()),y=null!=h&&!vn(g.include,g.exclude,h);(v||m||y)&&qo(n,null)}catch(e){e instanceof Error&&Dt(e,{description:"Failed to handle Refresh Limits",adUnitInstanceCode:n.getSlotElementId()})}}}))})),setInterval(c(G.mark((function e(){return G.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Eo();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),e.t0 instanceof Error&&Dt(e.t0,{description:"Failed to refresh viewable slots at setInterval"});case 8:case"end":return e.stop()}}),e,null,[[0,5]])}))),3e3),e.changePage=io,e.destroy=No,e.dispatchManualEvent=Co,e.display=yo,e.fakeTCLoad=Mo,e.fetch=Io,e.refresh=wo,e.render=Oo,e.reset=Ro,e.restore=Po,e.trigger=Do,Object.defineProperty(e,"__esModule",{value:!0})}({});
