/**
 * Assertive Yield - Yield Manager script.
 * v3.7.5
 *
 * © 2018-2025 Assertive Yield B.V. All Rights Reserved.
 */
!function(){var e,t,n,r,i,o,a=function(e){return e.BANNER="banner",e.VIDEO_OUTSTREAM="video - outstream",e.VIDEO_INSTREAM="video - instream",e}({}),c=function(e){return e.EXPERIMENTS="experiments",e.CUSTOM_1="custom_1",e.CUSTOM_2="custom_2",e.CUSTOM_3="custom_3",e.CUSTOM_4="custom_4",e.CUSTOM_5="custom_5",e.CUSTOM_6="custom_6",e.CUSTOM_7="custom_7",e.CUSTOM_8="custom_8",e.CUSTOM_9="custom_9",e.CUSTOM_10="custom_10",e.CUSTOM_11="custom_11",e.CUSTOM_12="custom_12",e.CUSTOM_13="custom_13",e.CUSTOM_14="custom_14",e.CUSTOM_15="custom_15",e}({}),s=function(e){return 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.SPLIT_TEST="SPLIT_TEST",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",e}({}),u=function(e){return e.AND="AND",e.OR="OR",e}({}),d=function(e){return 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",e}({}),l=function(e){return 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",e}({}),f=function(e){return e.BIDDER="BIDDER",e.ADVERTISER="ADVERTISER",e.ORDER="ORDER",e.SIZE="SIZE",e.LINE_ITEM="LINE_ITEM",e.LINE_ITEM_TYPE="LINE_ITEM_TYPE",e}({}),p=function(e){return e.MANUAL="manual",e.INCREMENTAL="history",e.REFRESH="REFRESH",e.RESET="RESET",e}({}),g="ayManagerEnv",v=window.ayManagerEnv,m=null!==(e=v.settings.prebidSettings.prebidScript.windowName)&&void 0!==e?e:"pbjs";v.cmd=null!==(o=v.cmd)&&void 0!==o?o:[],window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window[m]=window[m]||{},window[m].que=window[m].que||[],window.assertiveQueue=window.assertiveQueue||[];var h,y,E,b,w=null!==(t=v.settings.yieldScriptSettings.yieldScriptMode)&&void 0!==t?t:"PREBID",I=-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident/"),T="APS"===w||"BOTH"===w,_=!I&&("PREBID"===w||"BOTH"===w)&&null!=(null===(n=window[m])||void 0===n?void 0:n.libLoaded),O=null!==(r=null===(i=v.debug)||void 0===i?void 0:i.flags)&&void 0!==r?r:[],S=O.includes("all"),A=!!O.length,U=O.includes("no_refresh")||S,R=O.includes("highlight")||S,N=["advertiserIds","orderIds","lineItemTypes"].some((function(e){var t=v.settings.yieldScriptSettings.refreshLimits[e],n=t.include,r=t.exclude;return n.length>0||r.length>0})),C=v.settings.yieldScriptSettings.refreshLimits.lineItemTypes.include.length>0||v.settings.yieldScriptSettings.refreshLimits.lineItemTypes.exclude.length>0||Object.values(v.settings.definitions.refreshControls).some((function(e){return e.rules.some((function(e){return e.type===f.LINE_ITEM_TYPE}))})),P=new RegExp("(?:\\.".concat(/\w(?:[\w ]*\w)?/.source,")*")),M=new RegExp("(\\{\\{ *)"+"(".concat(/\w+/.source,")")+"(".concat(P.source,")")+"( *\\}\\})"),D=/\w(?:[\w ]*\w)?/,L=new RegExp("(".concat(D.source,")(?:\\.").concat(D.source,")*")),j=new RegExp("(\\[\\[ *)"+"(".concat(L.source,")")+"( *\\]\\])"),x=function(e){return 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",e.INSTANCE_STATE_CHANGED="instanceStateChanged",e.VARIABLE_EVAL="variableEval",e.STATE_EXCEPTION="stateException",e.URL_CHANGE="urlChange",e.MODULE_INIT_AUCTIONS="moduleInitAuctions",e.MODULE_INIT_LIFE_CYCLE="moduleInitLifeCycle",e.MODULE_INIT_ALL="moduleInitAll",e}({}),F=function(e){return e.DESTROY_FAR_UNITS="DESTROY_FAR_UNITS",e.PLACEMENT_QUERY_NO_ELEMENTS="PLACEMENT_QUERY_NO_ELEMENTS",e.CONTAINER_NOT_IN_THE_DOM="CONTAINER_NOT_IN_THE_DOM",e.PLACEHOLDER_NOT_IN_THE_DOM="PLACEHOLDER_NOT_IN_THE_DOM",e.PLACEMENT_CONDITIONS_NOT_MET="PLACEMENT_CONDITIONS_NOT_MET",e.AD_UNIT_CONDITIONS_NOT_MET="AD_UNIT_CONDITIONS_NOT_MET",e.PLACEMENT_TRIGGER_CONDITIONS_NOT_MET="PLACEMENT_TRIGGER_CONDITIONS_NOT_MET",e.PAGE_CHANGE_RESET_MODE="PAGE_CHANGE_RESET_MODE",e.VISIBILITY="VISIBILITY",e.LAZY_LOAD="LAZY_LOAD",e.LAZY_RENDER="LAZY_RENDER",e}({}),k=function(e){return e.REMOVE="REMOVE",e.RESET="RESET",e.SUSPEND="SUSPEND",e.IGNORE="IGNORE",e}({}),z=function(e){return e.INJECT="INJECT",e.FETCH_TRIGGER="FETCH_TRIGGER",e.RENDER_TRIGGER="RENDER_TRIGGER",e.REFRESH="REFRESH",e}({});function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function G(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 H(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(B(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 i=r.length;function o(e,n){if(n&&("object"===B(n)||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){o(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--i&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--i&&t(r)}for(var a=0;a<r.length;a++)o(a,r[a])}))}function V(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}function W(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 V(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=(h=Object.prototype.toString,y=function(e){return"function"==typeof e||"[object Function]"===h.call(e)},E=Math.pow(2,53)-1,b=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),E)},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(!y(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=b(t.length),a=y(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)}),V.prototype=Error.prototype;var q=setTimeout;function Y(e){return Boolean(e&&void 0!==e.length)}function J(){}function X(e){if(!(this instanceof X))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=[],te(e,this)}function Q(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,X._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 K(t.promise,e)}Z(t.promise,r)}else(1===e._state?Z:K)(t.promise,e._value)}))):e._deferreds.push(t)}function Z(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===B(t)||"function"==typeof t)){var n=t.then;if(t instanceof X)return e._state=3,e._value=t,void $(e);if("function"==typeof n)return void te((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,$(e)}catch(t){K(e,t)}var r,i}function K(e,t){e._state=2,e._value=t,$(e)}function $(e){2===e._state&&0===e._deferreds.length&&X._immediateFn((function(){e._handled||X._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)Q(e,e._deferreds[t]);e._deferreds=null}function ee(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function te(e,t){var n=!1;try{e((function(e){n||(n=!0,Z(t,e))}),(function(e){n||(n=!0,K(t,e))}))}catch(e){if(n)return;n=!0,K(t,e)}}X.prototype.catch=function(e){return this.then(null,e)},X.prototype.then=function(e,t){var n=new this.constructor(J);return Q(this,new ee(e,t,n)),n},X.prototype.finally=G,X.all=function(e){return new X((function(t,n){if(!Y(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,a){try{if(a&&("object"===B(a)||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void c.call(a,(function(t){o(e,t)}),n)}r[e]=a,0==--i&&t(r)}catch(e){n(e)}}for(var a=0;a<r.length;a++)o(a,r[a])}))},X.any=W,X.allSettled=H,X.resolve=function(e){return e&&"object"===B(e)&&e.constructor===X?e:new X((function(t){t(e)}))},X.reject=function(e){return new X((function(t,n){n(e)}))},X.race=function(e){return new X((function(t,n){if(!Y(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=e.length;r<i;r++)X.resolve(e[r]).then(t,n)}))},X._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){q(e,0)},X._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var ne=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 re(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 ie(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function oe(e,t){if(e){if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}function ae(e){return function(e){if(Array.isArray(e))return re(e)}(e)||ie(e)||oe(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 ce(e){if(Array.isArray(e))return e}function se(){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 ue(e,t){return ce(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)||oe(e,t)||se()}function de(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 le(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){de(o,r,i,a,c,"next",e)}function c(e){de(o,r,i,a,c,"throw",e)}a(void 0)}))}}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}"function"!=typeof ne.Promise?ne.Promise=X:(ne.Promise.prototype.finally||(ne.Promise.prototype.finally=G),ne.Promise.allSettled||(ne.Promise.allSettled=H),ne.Promise.any||(ne.Promise.any=W));var pe="\n    background: linear-gradient(-152deg, #100124, #3e007c 75%);\n    border-radius: 3px;\n    color: white;\n    padding: 1px 5px;\n    font-size: .6rem;\n",ge={group:A?window.console.groupCollapsed.bind(window.console,"%cYM",pe):function(){},groupEnd:A?window.console.groupEnd.bind(window.console):function(){},log:A?window.console.log.bind(window.console,"%cYM",pe):function(){},logt:A?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",pe].concat(r))}:function(){},warn:A?window.console.warn.bind(window.console,"%cYM",pe):function(){},error:window.console.error.bind(window.console,"%cYM",pe),table:A?window.console[null!=console.table?"table":"log"].bind(window.console):function(){},func:A?function(e){return e()}:function(){}},ve=Object.values(x),me=ve.reduce((function(e,t){return e[t]={que:[]},e}),{}),he=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=me[e];i.latestPayload=n,i.hasOccurred=!0,i.que.slice().forEach((function(t){try{t.apply(null,n)}catch(t){ge.error("Error while trying to execute the handler for the ".concat(e," event"),t)}}))},ye=function(e,t){if(ve.includes(e)){var n=me[e];if(n.hasOccurred){var r;ge.warn("Event '".concat(e,"' already happened. Will execute the handler with the latest payload received.")),t.apply(void 0,ae(null!==(r=n.latestPayload)&&void 0!==r?r:[]))}else{var i=function(){t.apply(void 0,arguments),be(e,i)};n.que.push(i)}}else ge.error("Invalid event name: '".concat(e,"'. Available event names: '").concat(ve.join(", "),"'"))},Ee=function(e,t){var n=[x.APS_BEFORE_INIT,x.APS_AFTER_INIT,x.MODULE_INIT_AUCTIONS,x.MODULE_INIT_LIFE_CYCLE,x.MODULE_INIT_ALL],r=ve.filter((function(e){return!n.includes(e)}));r.includes(e)?me[e].que.push(t):ge.error("Invalid event name: '".concat(e,"'. Available event names: ")+"'".concat(r.join(", "),". (For init events, use 'onceEvent' - e.g. beforeApsInit)'"))},be=function(e,t){if(ve.includes(e)){var n=me[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 ge.error("Invalid event name: '".concat(e,"'. Available event names: '").concat(ve.join(", "),"'"))},we=Object.freeze({__proto__:null,emit:he,once:ye,on:Ee,off:be});function Ie(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,u=i.adUnitInstanceCode,d=i.htmlUnitName,l=i.htmlUnitInstanceName,f=i.adUnitCodes,p=[e,{type:a,description:c,managerVersionId:r.versionId,adUnitName:s,adUnitInstanceCode:u,htmlUnitName:d,htmlUnitInstanceName:l,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"}]))})),he.apply(we,[x.ERROR].concat(p)),n&&ge.error(c+"\n",e)}var Te="object"==("undefined"==typeof global?"undefined":B(global))&&global&&global.Object===Object&&global,_e="object"==("undefined"==typeof self?"undefined":B(self))&&self&&self.Object===Object&&self,Oe=Te||_e||Function("return this")(),Se=Oe.Symbol,Ae=Object.prototype,Ue=Ae.hasOwnProperty,Re=Ae.toString,Ne=Se?Se.toStringTag:void 0;var Ce=Object.prototype.toString;var Pe=Se?Se.toStringTag:void 0;function Me(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Pe&&Pe in Object(e)?function(e){var t=Ue.call(e,Ne),n=e[Ne];try{e[Ne]=void 0;var r=!0}catch(e){}var i=Re.call(e);return r&&(t?e[Ne]=n:delete e[Ne]),i}(e):function(e){return Ce.call(e)}(e)}function De(e){return"symbol"==B(e)||function(e){return null!=e&&"object"==B(e)}(e)&&"[object Symbol]"==Me(e)}var Le=/\s/;var je=/^\s+/;function xe(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t}(e)+1).replace(je,""):e}function Fe(e){var t=B(e);return null!=e&&("object"==t||"function"==t)}var ke=/^[-+]0x[0-9a-f]+$/i,ze=/^0b[01]+$/i,Be=/^0o[0-7]+$/i,Ge=parseInt;function He(e){if("number"==typeof e)return e;if(De(e))return NaN;if(Fe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Fe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=xe(e);var n=ze.test(e);return n||Be.test(e)?Ge(e.slice(2),n?2:8):ke.test(e)?NaN:+e}var Ve,We=Oe["__core-js_shared__"],qe=(Ve=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||""))?"Symbol(src)_1."+Ve:"";var Ye=Function.prototype.toString;var Je=/^\[object .+?Constructor\]$/,Xe=Function.prototype,Qe=Object.prototype,Ze=Xe.toString,Ke=Qe.hasOwnProperty,$e=RegExp("^"+Ze.call(Ke).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function et(e){if(!Fe(e)||(t=e,qe&&qe in t))return!1;var t,n=function(e){if(!Fe(e))return!1;var t=Me(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?$e:Je;return n.test(function(e){if(null!=e){try{return Ye.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function tt(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return et(n)?n:void 0}function nt(e){return e!=e}function rt(e,t){return!!(null==e?0:e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,nt,n)}(e,t,0)>-1}var it=tt(Object,"create");var ot=Object.prototype.hasOwnProperty;var at=Object.prototype.hasOwnProperty;function ct(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function st(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}ct.prototype.clear=function(){this.__data__=it?it(null):{},this.size=0},ct.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ct.prototype.get=function(e){var t=this.__data__;if(it){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ot.call(t,e)?t[e]:void 0},ct.prototype.has=function(e){var t=this.__data__;return it?void 0!==t[e]:at.call(t,e)},ct.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=it&&void 0===t?"__lodash_hash_undefined__":t,this};var ut=Array.prototype.splice;function dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}dt.prototype.clear=function(){this.__data__=[],this.size=0},dt.prototype.delete=function(e){var t=this.__data__,n=st(t,e);return!(n<0)&&(n==t.length-1?t.pop():ut.call(t,n,1),--this.size,!0)},dt.prototype.get=function(e){var t=this.__data__,n=st(t,e);return n<0?void 0:t[n][1]},dt.prototype.has=function(e){return st(this.__data__,e)>-1},dt.prototype.set=function(e,t){var n=this.__data__,r=st(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var lt=tt(Oe,"Map");function ft(e,t){var n,r,i=e.__data__;return("string"==(r=B(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pt.prototype.clear=function(){this.size=0,this.__data__={hash:new ct,map:new(lt||dt),string:new ct}},pt.prototype.delete=function(e){var t=ft(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return ft(this,e).get(e)},pt.prototype.has=function(e){return ft(this,e).has(e)},pt.prototype.set=function(e,t){var n=ft(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var gt=tt(Oe,"Set");function vt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function mt(e,t){return e.has(t)}function ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}vt.prototype.add=vt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},vt.prototype.has=function(e){return this.__data__.has(e)};var yt=function(){return Oe.Date.now()},Et=Math.max,bt=Math.min;function wt(e,t,n){var r,i,o,a,c,s,u=0,d=!1,l=!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,u=t,a=e.apply(o,n)}function g(e){return u=e,c=setTimeout(m,t),d?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||l&&e-u>=o}function m(){var e=yt();if(v(e))return h(e);c=setTimeout(m,function(e){var n=t-(e-s);return l?bt(n,o-(e-u)):n}(e))}function h(e){return c=void 0,f&&r?p(e):(r=i=void 0,a)}function y(){var e=yt(),n=v(e);if(r=arguments,i=this,s=e,n){if(void 0===c)return g(s);if(l)return clearTimeout(c),c=setTimeout(m,t),p(s)}return void 0===c&&(c=setTimeout(m,t)),a}return t=He(t)||0,Fe(n)&&(d=!!n.leading,o=(l="maxWait"in n)?Et(He(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=s=i=c=void 0},y.flush=function(){return void 0===c?a:h(yt())},y}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Tt,_t=gt&&1/ht(new gt([,-0]))[1]==1/0?function(e){return new gt(e)}:function(){};function Ot(e){return e&&e.length?function(e,t,n){var r=-1,i=rt,o=e.length,a=!0,c=[],s=c;if(n)a=!1,i=It;else if(o>=200){var u=t?null:_t(e);if(u)return ht(u);a=!1,i=mt,s=new vt}else s=t?[]:c;e:for(;++r<o;){var d=e[r],l=t?t(d):d;if(d=n||0!==d?d:0,a&&l==l){for(var f=s.length;f--;)if(s[f]===l)continue e;t&&s.push(l),c.push(d)}else i(s,l,n)||(s!==c&&s.push(l),c.push(d))}return c}(e):[]}var St={Object:1,Array:2,String:3,Null:4,Undefined:5,Function:6,Boolean:7,Number:8,RegExp:9,Date:10};function At(e,t){var n,r,i,o,a,c=function(e){return null===e?4:void 0===e?5:St[Object.prototype.toString.call(e).slice(8,-1)]}(e);if(null==t&&(t=1),1===c){if(t>0){if(-1!==Tt.indexOf(e))return console.log("toSrc warning: Circular reference detected within object ",e),"undefined";for(r in Tt.push(e),n="{",e)e.hasOwnProperty(r)&&(n+='"'+r+'": '+At(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!==Tt.indexOf(e))return console.log("toSrc warning: Circular reference detected within array ",e),"undefined";for(Tt.push(e),n="[",i=0,o=e.length;i<o;i++)n+=At(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 Ut(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return Rt(u,"_invoke",function(n,r,i){var o,c,s,u=0,d=i||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function p(n,r){for(c=n,s=r,t=0;!l&&u&&!i&&t<d.length;t++){var i,o=d[t],p=f.p,g=o[2];n>3?(i=g===r)&&(c=o[4]||3,s=o[5]===e?o[3]:o[5],o[4]=3,o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(c=0,f.v=r,f.n=o[1]):p<g&&(i=n<3||o[0]>r||r>g)&&(o[4]=n,o[5]=r,f.n=g,c=0))}if(i||n>1)return a;throw l=!0,r}return function(i,d,g){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,g),c=d,s=g;(t=c<2?e:s)||!l;){o||(c?c<3?(c>1&&(f.n=-1),p(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(l=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:l}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Rt(t={},r,(function(){return this})),t),l=u.prototype=c.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Rt(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=u,Rt(l,"constructor",u),Rt(u,"constructor",s),s.displayName="GeneratorFunction",Rt(u,i,"GeneratorFunction"),Rt(l),Rt(l,i,"Generator"),Rt(l,r,(function(){return this})),Rt(l,"toString",(function(){return"[object Generator]"})),(Ut=function(){return{w:o,m:f}})()}function Rt(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Rt=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){Rt(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},Rt(e,t,n,r)}function Nt(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 Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(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 Mt(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function Dt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Ct({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}function Lt(e){var t,n=null===(t=window.assertive)||void 0===t||null===(t=t.analytics)||void 0===t||null===(t=t.override)||void 0===t||null===(t=t.utm)||void 0===t?void 0:t[e];return n&&(e=n),Pt(e)}function jt(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 xt(e,t){return Ft.apply(this,arguments)}function Ft(){return Ft=le(Ut().m((function e(t,n){var r;return Ut().w((function(e){for(;;)switch(e.n){case 0:return r=Symbol(),e.n=1,Promise.all(t.map(function(){var e=le(Ut().m((function e(t,i,o){var a;return Ut().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,n(t,i,o);case 1:return a=e.v,e.a(2,a?t:r)}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}()));case 1:return e.a(2,e.v.filter((function(e){return e!==r})))}}),e)}))),Ft.apply(this,arguments)}function kt(e,t,n){return!(t.length>0&&t.includes(n))&&(0===e.length||e.includes(n))}function zt(e,t){e.push=function(){return t.apply(e,arguments)}}function Bt(e,t){var n=window.ayManagerEnv,r=n.geoInfo,i=n.botInfo,o=n.settings,a=o.versionInfo.splitVarsEval,c=o.definitions.variables;if(!c[e])throw new Error("Unable to evaluate variable: Variable ".concat(e," not found."));var u,d,l=c[e],f=l.type,p=l.value,g=l.name;try{var v;switch(f){case s.SIMPLE_VALUE:v=p;break;case s.LOCAL_STORAGE_ENTRY:v=localStorage.getItem(p);break;case s.COOKIE_VALUE:v=Mt(p);break;case s.URL_PARAMETER:v=Pt(p);break;case s.JS_GLOBAL_VAR:try{v=p.split(".").reduce((function(e,t,n){return 0===n?window[t]:e[t]}),{})}catch(e){e instanceof Error&&Ie(e,{description:"Failed to evaluate global js var ".concat(g,". Falling back to undefined.")})}break;case s.JS_GLOBAL_FUNCTION:try{v=p.split(".").reduce((function(e,t,n){return 0===n?window[t]:e[t]}),null)()}catch(e){e instanceof Error&&Ie(e,{description:"Failed to evaluate global js function ".concat(g,". Falling back to undefined.")})}break;case s.JS_FUNCTION:v=Function("return (".concat(qt(p),")()"))();break;case s.VALUE_MAP:var m=p,h=m.variableId,y=m.valueMatches,E=m.defaultEnabled,b=m.defaultOutput,w=m.condition,I=Bt(h),T=y.find((function(e){var t=e.match;return Gt(I,t,w)}));v=null!=T?T.output:E?b:null;break;case s.SPLIT_TEST:var _=p,O=_.conditions,S=_.defaultValue,A=_.splitValues,U=_.enableReporting,R=a[e];v=U&&Vt(O)?A[R].value:S;break;case s.URL:v=window.location.href;break;case s.URL_PATHNAME:v=window.location.pathname;break;case s.DOMAIN:v=window.location.hostname.replace("www.","");break;case s.WINDOW_WIDTH:v=Math.max(document.documentElement.clientWidth,window.innerWidth||0);break;case s.WINDOW_HEIGHT:v=Math.max(document.documentElement.clientHeight,window.innerHeight||0);break;case s.IS_MOBILE:d=!1,u=navigator.userAgent||navigator.vendor||window.opera,(/(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(u)||/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(u.substr(0,4)))&&(d=!0),v=d;break;case s.UTM_SOURCE:v=Lt("utm_source");break;case s.UTM_MEDIUM:v=Lt("utm_medium");break;case s.UTM_CAMPAIGN:v=Lt("utm_campaign");break;case s.UTM_TERM:v=Lt("utm_term");break;case s.UTM_CONTENT:v=Lt("utm_content");break;case s.DEPLOYMENT_ID:v=window.ayManagerEnv.settings.versionInfo.deployId;break;case s.VERSION_ID:v=window.ayManagerEnv.settings.versionInfo.versionId;break;case s.DEPLOYMENT_PERCENTAGE:v=window.ayManagerEnv.settings.versionInfo.percentage;break;case s.COUNTRY:v=r.country;break;case s.IS_EU_COUNTRY:v=r.isEUCountry;break;case s.IS_EEA_OR_UK:v=r.isEEAOrUK;break;case s.CITY:v=r.city;break;case s.CONTINENT:v=r.continent;break;case s.LATITUDE:v=r.latitude;break;case s.LONGITUDE:v=r.longitude;break;case s.POSTAL_CODE:v=r.postalCode;break;case s.REGION:v=r.region;break;case s.REGION_CODE:v=r.regionCode;break;case s.TIMEZONE:v=r.timezone;break;case s.BOT_SCORE:v=i.score;break;case s.VERIFIED_BOT:v=i.verified}return he(x.VARIABLE_EVAL,e,v),v}catch(e){throw e instanceof Error&&(e.message="Unable to evaluate variable ".concat(g,": ")+e.message),e}}function Gt(e,t,n){try{switch(n){case d.EQ:return String(e)===String(t);case d.NE:return String(e)!==String(t);case d.ONE_OF:return t.includes(String(e));case d.NOT_ONE_OF:return!t.includes(String(e));case d.LT:return Number(e)<Number(t);case d.LE:return Number(e)<=Number(t);case d.GT:return Number(e)>Number(t);case d.GE:return Number(e)>=Number(t);case d.CONTAINS:return String(e).includes(String(t));case d.STARTS_WITH:return String(e).startsWith(String(t));case d.ENDS_WITH:return String(e).endsWith(String(t));case d.REGEX:return new RegExp(String(t)).test(String(e));case d.DOESNT_CONTAIN:return!String(e).includes(String(t));case d.DOESNT_STARTS_WITH:return!String(e).startsWith(String(t));case d.DOESNT_ENDS_WITH:return!String(e).endsWith(String(t));case d.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 Ht(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,o){return null==r?e(i,[].concat(ae(n),[o])):t.operator===u.AND?r&&(null!==(a=e(i,[].concat(ae(n),[o])))&&void 0!==a?a:r):r||(null!==(c=e(i,[].concat(ae(n),[o])))&&void 0!==c?c:r);var a,c}),null):null:Gt(Bt(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 Vt(e){try{return e.reduce((function(e,t){return e&&Ht(t)}),!0)}catch(t){return t instanceof Error&&Ie(t,{description:"Unable to evaluate list of conditions: ".concat(JSON.stringify(e))}),!1}}function Wt(e){try{return Function("return (".concat(qt(e),")"))()}catch(e){throw e instanceof Error&&(e.message="Unable to parse text inside evalTextWithVarIdsToJSValue: "+e.message),e}}function qt(e){return null==e?"":e.replace(new RegExp(M.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=Bt(n),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:(Tt=[],At(s,99))}catch(e){throw e instanceof Error&&(e.message="Unable to replace variable '".concat(n+r,"' by its value: ")+e.message),e}}))}var Yt={settings:{placements:v.settings.placements,adUnits:v.settings.adUnits,htmlUnits:v.settings.htmlUnits,definitions:v.settings.definitions,bidderSettings:v.settings.bidderSettings,yieldScriptSettings:v.settings.yieldScriptSettings,prebidSettings:v.settings.prebidSettings,experiments:v.settings.experiments,adUnitInstances:[],htmlUnitInstances:[]},context:{triggerEvents:fe(fe(fe(fe(fe({},l.SCRIPT_LOADED,!1),l.WINDOW_READY,!1),l.WINDOW_LOADED,!1),l.CONSENT_INITIALIZATION,!1),l.MANUAL_EVENT,!1),viewableSlots:{},adUnitCodeVariations:{},observers:{lazyLoad:void 0,lazyRender:void 0,farUnitsDestroy:void 0,farUnitsRestore:void 0},lineItemTypeMap:{},timeouts:{aps:{bidderTimeout:2900,cmpTimeout:50,uspTimeout:500},failsafeTimeout:{current:5e3,default:5e3}},isGPTCollapseSlotEnabled:!1,hasConsentInitRun:!1,isChangePagePending:!1},debug:{flags:O,conditionsEvaluation:{placements:[],adUnits:[],htmlUnits:[],bidders:[],paramsGroups:[]},runDebugConditionsEvaluation:void 0}};function Jt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return Xt(u,"_invoke",function(n,r,i){var o,c,s,u=0,d=i||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function p(n,r){for(c=n,s=r,t=0;!l&&u&&!i&&t<d.length;t++){var i,o=d[t],p=f.p,g=o[2];n>3?(i=g===r)&&(c=o[4]||3,s=o[5]===e?o[3]:o[5],o[4]=3,o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(c=0,f.v=r,f.n=o[1]):p<g&&(i=n<3||o[0]>r||r>g)&&(o[4]=n,o[5]=r,f.n=g,c=0))}if(i||n>1)return a;throw l=!0,r}return function(i,d,g){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,g),c=d,s=g;(t=c<2?e:s)||!l;){o||(c?c<3?(c>1&&(f.n=-1),p(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(l=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:l}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Xt(t={},r,(function(){return this})),t),l=u.prototype=c.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xt(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=u,Xt(l,"constructor",u),Xt(u,"constructor",s),s.displayName="GeneratorFunction",Xt(u,i,"GeneratorFunction"),Xt(l),Xt(l,i,"Generator"),Xt(l,r,(function(){return this})),Xt(l,"toString",(function(){return"[object Generator]"})),(Jt=function(){return{w:o,m:f}})()}function Xt(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Xt=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){Xt(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},Xt(e,t,n,r)}function Qt(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 Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e){try{var t=e.containerRef,n=window.getComputedStyle(t),r=null,i=function(t,n){var o=t.nodeName,a=t.offsetParent,c=n.position,s=n.display;if("BODY"===o)return"none"===s;if("fixed"!==c)return!a;if("none"===s||null==t.parentElement)return!0;var u=t.parentElement,d=window.getComputedStyle(u);return u===e.containerRef.parentElement&&(r=d),i(u,d)},o=function(e){var t=e.visibility;return"hidden"===t||"collapse"===t};return(Yt.context.isGPTCollapseSlotEnabled||!i(t,n))&&!o(n)&&null!=t.parentElement&&!o(null!=r?r:window.getComputedStyle(t.parentElement))}catch(t){return t instanceof Error&&Ie(t,{description:"Unable to detect if Ad Unit is visible",adUnitInstanceCode:e.code}),!0}}function $t(e,t){var n,r=(n=!1,function(){if(!n){n=!0;try{t()}catch(t){t instanceof Error&&Ie(t,{description:"Exception in onWindowEvent (".concat(e,") callback")})}}});if("ready"===e&&(/interactive/.test(document.readyState)||/complete/.test(document.readyState))||"loaded"===e&&/complete/.test(document.readyState))r();else{var i=function(t){var n=t.target;("ready"===e&&("interactive"===n.readyState||"complete"===n.readyState)||"loaded"===e&&"complete"===n.readyState)&&(r(),document.removeEventListener("readystatechange",i))};document.addEventListener("readystatechange",i)}}function en(e){var t,n=(t=!1,function(n){t||(t=!0,Yt.context.hasConsentInitRun=!0,e(n))});if(Yt.context.hasConsentInitRun)n(!0);else if("__tcfapi"in window)try{window.__tcfapi("addEventListener",2,(function(e,t){!1===e.gdprApplies||"tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus?(window.__tcfapi("removeEventListener",2,(function(e){}),e.listenerId),n(!0)):t||ge.log("Listener for 'TCF Load' event could not be registered!")}))}catch(e){e instanceof Error&&Ie(e,{description:"Exception in Consent Initialization listener"})}else if("__gpp"in window)try{window.__gpp("addEventListener",(function(e,t){var r=e.pingData,i=e.listenerId;"loaded"!==r.cmpStatus||"ready"!==r.signalStatus||"hidden"!==r.cmpDisplayStatus&&"disabled"!==r.cmpDisplayStatus?t||ge.log("Listener for 'TCF Load' event could not be registered!"):(window.__gpp("removeEventListener",(function(e){}),i),n(!0))}))}catch(e){e instanceof Error&&Ie(e,{description:"Exception in Consent Initialization listener"})}else ge.warn("__tcfapi or __gpp framework/stub not found"),n(!1)}function tn(e,t){return new Promise((function(n){try{var r=null!=t?t:{},i=r.aboveSight,o=void 0!==i&&i,a=r.nearInSight,c=void 0!==a&&a,s=r.pixelsOffset,u=void 0===s?430:s;if(null==e)n(!1);else{var d=new IntersectionObserver((function(e){var t=ue(e,1)[0];d.disconnect(),t.isIntersecting?n(!0):n(c&&o&&t.boundingClientRect.top>0)}),{rootMargin:"".concat(c?u:0,"px")});d.observe(e)}}catch(e){e instanceof Error&&Ie(e,{description:"Unable to detect if element is in view"}),n(!1)}}))}function nn(e){var t=[],n=[];return e.forEach((function(e){var r,i;(null===(r=window[m])||void 0===r?void 0:r.libLoaded)&&"cpm"in(null!==(i=window[m].getHighestUnusedBidResponseForAdUnitCode(e.code))&&void 0!==i?i:{})?t.push(e):n.push(e)})),{adUnitsWithBids:t,adUnitsWithoutBids:n}}function rn(e,t,n){return on.apply(this,arguments)}function on(){return on=le(Jt().m((function e(t,n,r){var i;return Jt().w((function(e){for(;;)switch(e.n){case 0:i=n,e.n="visible"===i?1:"near"===i?2:"page"===i?3:4;break;case 1:return e.a(2,xt(t,function(){var e=le(Jt().m((function e(t){return Jt().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,tn(t.containerRef,{nearInSight:!1});case 1:return e.a(2,e.v)}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:return e.a(2,xt(t,function(){var e=le(Jt().m((function e(t){return Jt().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,tn(t.containerRef,{nearInSight:!0,pixelsOffset:r});case 1:return e.a(2,e.v)}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 3:return e.a(2,t.slice());case 4:return ge.error("Invalid mode provided to filterAdUnits:",n),e.a(2,[])}}),e)}))),on.apply(this,arguments)}function an(e,t,n){return e.filter((function(e){var i="parentPlacement"in e?e.parentPlacement:e,o=("fetch"===n?i.fetchTrigger:"render"===n?i.trigger:Ot([].concat(ae(i.fetchTrigger),ae(i.trigger)))).map((function(e){return Yt.settings.definitions.triggers[e]})).filter((function(e){return null!=e}));return null==t?Object.values(l).some((function(e){return Yt.context.triggerEvents[e]&&r(e,o)})):r(t,o)}));function r(e,t){return t.some((function(t){var n;return t.event===e&&Vt(null!==(n=t.conditions)&&void 0!==n?n:[])}))}}function cn(e,t){return t.filter((function(t){return e.includes(t.parentPlacement.code)}))}function sn(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 dn(e){return e.includes("v")}function ln(e){return!e.includes("v")&&"fluid"!==e}function fn(){var e=Yt.settings.bidderSettings.params.find((function(e){return Vt(e.conditions)}));return Yt.settings.bidderSettings.bidders.filter((function(e){return e.conditions.reduce((function(t,n){try{return t&&Ht(n)}catch(t){return t instanceof Error&&Ie(t,{description:"Failed to evaluate bidder's condition (".concat(n,") for bidder: ").concat(e.name)}),!1}}),!0)})).map((function(t){var n,r;return Zt(Zt({},t),{},{paramsSettings:{paramsDefaults:null!==(n=Yt.settings.bidderSettings.paramsDefaults[t._id])&&void 0!==n?n:{},paramsGroup:null!==(r=null==e?void 0:e.bidders[t._id])&&void 0!==r?r:{}}})}))}function pn(e,t){return t.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 Zt(Zt({},t),{},fe({},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(g,"_undefined__"),r=0;return{value:e.replace(new RegExp(j.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=Wt(r)),{bidder:t.bidder,params:o}}catch(n){return n instanceof Error&&Ie(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)}))}function gn(e){var t;return e.responseTimestamp+1e3*(e.ttl-(null!==(t=e.ttlBuffer)&&void 0!==t?t:1))<=(new Date).getTime()}function vn(e){return(null!=e?e:"").trim().slice(1,(null!=e?e:"").length-2).trim()}function mn(e){return parseInt(e.replace("px",""),10)}function hn(e){var t=e.style,n=t.width,r=t.height;return!!(n&&r&&n.includes("px")&&r.includes("px"))}function yn(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(!hn(e)){var a=window.getComputedStyle(e);i=a.width,o=a.height}if(n.width=mn(i)||null,n.height=mn(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&&Ie(e,{description:"Error getting element size"})}return n}function En(e){return e.containerRef.querySelector('iframe[id^="google_ads_iframe_"]')}function bn(e){try{var t=En(e);if(t){var n=t.parentElement;return(n&&n.childElementCount>1||e.containerRef.childElementCount>1)&&!hn(t)?yn(e.containerRef,!0):yn(t,!1)}return null}catch(t){return t instanceof Error&&Ie(t,{description:"Unable to get ad element size",adUnitInstanceCode:e.code}),null}}function wn(e,t){t&&(t.width&&(!e.style.minWidth||mn(e.style.minWidth)<t.width)&&(e.style.minWidth="".concat(t.width,"px")),t.height&&(!e.style.minHeight||mn(e.style.minHeight)<t.height)&&(e.style.minHeight="".concat(t.height,"px")))}function In(e,t){e.forEach((function(e){t.getTargeting(e).length>0&&t.clearTargeting(e)}))}function Tn(e,t){return e.cpm!==t.cpm?t.cpm-e.cpm:e.timeToRespond-t.timeToRespond}function _n(e,t){return Tn(e.bid,t.bid)}function On(e){return null!=e.slot&&null!=e.parentAdUnit&&null!=e.path}function Sn(e){return e.includes("__".concat(g,"__"))}var An={};function Un(e,t,n){if(An[e]||(An[e]=0),null!=t){var r,i=null!=n?n:++An[e],o=t.slice(0,8);return Pn(r="".concat(e,"__").concat(g,"__").concat(i,"_").concat(o)),r}var a=++An[e];return"".concat(e,"__").concat(g,"__").concat(a)}function Rn(e){var t=ue(e.split("__".concat(g,"__")),2),n=t[0],r=t[1],i=ue((void 0===r?"0_0":r).split("_"),2),o=i[0],a=i[1];return{placementCode:n,instanceNumber:Number(o),adUnitId:a}}function Nn(e){var t=Rn(e),n=t.placementCode,r=t.instanceNumber;return"".concat(n,"__").concat(g,"__").concat(r)}function Cn(){var e=[].concat(ae(Yt.settings.adUnitInstances.map((function(e){return e.parentPlacement.code}))),ae(Yt.settings.htmlUnitInstances.map((function(e){return e.parentPlacement.code})))).reduce((function(e,t){return e.includes(t)?e:[].concat(ae(e),[t])}),[]);for(var t in An)e.includes(t)||delete An[t]}function Pn(e){var t,n,r=Rn(e).adUnitId;(null!==(n=(t=Yt.context.adUnitCodeVariations)[r])&&void 0!==n?n:t[r]={})[e]=!0}function Mn(){var e="".concat(g,"__persistent_bid_cache_bids_v2");localStorage.removeItem("".concat(g,"__persistent_bid_cache_bids")),window.addEventListener("beforeunload",(function(t){try{var n=Object.values(Yt.context.adUnitCodeVariations).reduce((function(e,t){return[].concat(ae(e),ae(Object.keys(t)))}),[]).reduce((function(e,t){var n=window[m].getBidResponsesForAdUnitCode(t).bids;return[].concat(ae(e),ae(n))}),[]).filter((function(e){return!gn(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"===B(e[r])&&n.push.apply(n,ae(t(e[r]).map((function(e){return"".concat(r,".").concat(e)}))))};for(var i in e)r(i);return n}}(e);return t.length>0?(Ie(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&&Ie(e,{description:"Failed to cache bids!"})}}));var t=function(n){var r,i=JSON.parse(null!==(r=localStorage.getItem(e))&&void 0!==r?r:"[]").filter((function(e){return!gn(e)&&"rendered"!==e.status&&"targetingSet"!==e.status&&e.cpm>0}));localStorage.setItem(e,JSON.stringify([])),i.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"===B(e.getIdentifiers)){var r=e.getIdentifiers;e.getIdentifiers=function(){return r}}})),i.forEach((function(e){if(Pn(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}}})),ge.log("Cached bids retrieved and reassigned to this auction: ",i),window[m].offEvent("auctionEnd",t)};window[m].onEvent("auctionEnd",t)}function Dn(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 Ln={prebidSettings:{prebidConfig:function(){var e=Yt.settings.prebidSettings.config;try{var t=Wt(e);return ge.log("Evaluated Prebid.config:",t),t}catch(e){return e instanceof Error&&Ie(e,{description:"Unable to evaluate Prebid.config"}),{}}}()},apsSettings:{apsConfig:function(){var e=Yt.settings.yieldScriptSettings.apsConfig;try{var t=Wt(e);return ge.log("Evaluated APS.config:",t),t}catch(e){return e instanceof Error&&Ie(e,{description:"Unable to evaluate APS.config"}),{pubID:""}}}()},trackerSettings:{trackerConfig:function(){var e=Yt.settings.yieldScriptSettings.trackerConfig;try{var t=Wt(e);return ge.log("Evaluated tracker config:",t),t}catch(e){return e instanceof Error&&Ie(e,{description:"Unable to evaluate Prebid.config"}),{}}}()},yieldScriptSettings:{lazyTrigger:{fetchMargin:function(){try{var e=Yt.settings.yieldScriptSettings.lazyTrigger,t=e.fetchMargin,n=t.value,r=t.isPercentage,i=e.mobileScaling;if(window.ayManagerEnv.customLazyLoadOffset)return ge.warn("customLazyLoadOffset will be deprecated, use Lazy Fetch/Render Margins instead."),window.ayManagerEnv.customLazyLoadOffset;var o=Wt(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&&Ie(e,{description:"Unable to parse lazy fetch offset value, falling back to default (1400)"}),1400}}(),renderMargin:function(){try{var e=Yt.settings.yieldScriptSettings.lazyTrigger,t=e.renderMargin,n=t.value,r=t.isPercentage,i=e.mobileScaling,o=Wt(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&&Ie(e,{description:"Unable to parse lazy render offset value, falling back to default (1400)"}),1400}}()}}};function jn(e){var t="";try{t=qt(e)}catch(t){t instanceof Error&&Ie(t,{description:"Unable to evaluate ad unit path: ".concat(e)})}return t}var xn=["bids"];function Fn(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 kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zn(e){var t=Yt.settings.prebidSettings.customBidPool.codes;return kt(t.include,t.exclude,Rn(e).placementCode)}function Bn(e,t){var n,r,i=Yt.settings.prebidSettings.customBidPool.enabled;if(t.includes(e))return!1;if(i&&(n=e.bidder,!kt((r=Yt.settings.prebidSettings.customBidPool.bidders).include,r.exclude,n)||!zn(e.adUnitCode)))return!1;var o="rendered"===e.status||"targetingSet"===e.status,a=gn(e);if(o||a)return!1;if(0===e.cpm)return!1;if(e.pooled)return!1;try{var c=Ln.prebidSettings.prebidConfig.bidCacheFilterFunction;if("function"==typeof c&&!c(e))return!1}catch(e){Ie(e,{description:"Failed to run prebid bidCacheFilterFunction"})}return!0}function Gn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ge.group(">>> Custom bid pool <<< - (".concat(e.length,")")),ge.log("auctionCodes:",e);try{var n=Yt.settings.prebidSettings.customBidPool.enabled,r=[],i=e.filter((function(e){return!n||zn(e)})).map((function(e){return Yt.settings.adUnitInstances.find((function(t){return t.code===e}))})).filter((function(e){if(!e||!e.parentAdUnit)return!1;var t=window[m].getHighestUnusedBidResponseForAdUnitCode(e.code);return null!=t&&"adId"in t&&r.push(t),!0})),o=i.reduce((function(e,t){var r,i,o=n?null!==(r=t.parentAdUnit.bidPoolGroupId)&&void 0!==r?r:"DEFAULT_CUSTOM_BID_POOL_GROUP":t.parentAdUnit._id.slice(0,8);return kn(kn({},e),{},fe({},o,[].concat(ae(null!==(i=e[o])&&void 0!==i?i:[]),[t])))}),{}),a=[],c={};return ge.log("Auction ad unit instances:",i),Object.entries(o).forEach((function(e){var i=ue(e,2),o=i[0],s=i[1];ge.group("Group ID: ".concat(o,". Group instances:"),s);try{var u=(n?Object.values(Yt.context.adUnitCodeVariations).reduce((function(e,t){return[].concat(ae(e),ae(Object.keys(t)))}),[]).reduce((function(e,t){var n=window[m].getBidResponsesForAdUnitCode(t).bids;return[].concat(ae(e),ae(n))}),[]):Object.keys(Yt.context.adUnitCodeVariations[o]).reduce((function(e,t){var n=window[m].getBidResponsesForAdUnitCode(t).bids;return[].concat(ae(e),ae(n))}),[])).filter((function(e){return Bn(e,r)})).sort(Tn);if(0===u.length)return A&&(ge.group("ORIGINAL - Custom Bid Pool & Highest Bids from Prebid auction: "),ge.log([]),s.forEach((function(e){var t=e.code,n=window[m].getHighestUnusedBidResponseForAdUnitCode(t);if(null!=n&&"adId"in n){var r=n.adId,i=n.bidder,o=n.cpm,a=n.size;ge.log("Highest Bid (Prebid auction) for ".concat(t,": "),{bidder:i,adId:r,cpm:o,size:a,bidObject:JSON.parse(JSON.stringify(n))})}else ge.log("No Bids     (Prebid auction) for ".concat(t,"."))})),ge.groupEnd()),ge.log("🔴 Skipping: Not enough Prebid bids."),ge.groupEnd(),[];var d=Wn(u,s,r),l=d.bids,f=Dn(d,xn);t&&Vn(l),jt(a,l,_n),f.reassignedInstances.forEach((function(e){return c[e]=!0})),ge.groupEnd()}catch(e){throw ge.groupEnd(),e}})),ge.groupEnd(),{bids:a,reassignedCodes:Object.keys(c)}}catch(t){return ge.groupEnd(),t instanceof Error&&Ie(t,{description:"Failed to run the Custom bid pool for code variations",adUnitCodes:e}),{bids:[],reassignedCodes:[]}}}function Hn(e){var t=Yt.settings.prebidSettings.customBidPool.enabled,n=Ln.prebidSettings.prebidConfig;if(!window[m].libLoaded)return ge.warn("ayManagerEnv.getHighestQualifiedBid() was called but Prebid is not loaded."),{};if(null==e||!function(e){return null!=e&&"object"===B(e)&&Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}(e))return ge.error("Invalid 'adUnitCodes' array provided to ayManagerEnv.getHighestQualifiedBid()"+JSON.stringify(e)),{};if(0===(e=e.filter((function(e){return Sn(e)}))).length)return{};if(t||n.useBidCache){var r=Gn(e,!1).bids;return e.reduce((function(e,t){var n;return kn(kn({},e),{},fe({},t,null===(n=r.find((function(e){return e.adUnitCode===t})))||void 0===n?void 0:n.bid))}),{})}return e.map((function(e){return window[m].getHighestUnusedBidResponseForAdUnitCode(e)})).filter((function(e){return null!=e&&"adId"in e})).reduce((function(e,t){return kn(kn({},e),{},fe({},t.adUnitCode,t))}),{})}function Vn(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 Wn(e,t,n){var r,i=Yt.settings.prebidSettings.customBidPool.enabled,o=e.map((function(e){return{bid:e,adUnitCode:e.adUnitCode,pooled:e.pooled,originalAdUnitCode:e.originalAdUnitCode,originalHighestBid:e.originalHighestBid}})),a=t.reduce((function(e,t){var r=n.find((function(e){return e.adUnitCode===t.code}));return kn(kn({},e),null!=r?fe({},t.code,{bid:r,adUnitCode:r.adUnitCode,pooled:r.pooled,originalAdUnitCode:r.originalAdUnitCode,originalHighestBid:r.originalHighestBid}):{})}),{});A&&(ge.group("ORIGINAL - Custom Bid Pool & Highest Bids from Prebid auction: "),ge.log(o.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=a[t];if(null!=n){var r=n.bid,i=r.adId,o=r.bidder,c=r.cpm,s=r.size;ge.log("Highest Bid (Prebid auction) for ".concat(t,": "),{bidder:o,adId:i,cpm:c,size:s,bidObject:JSON.parse(JSON.stringify(n.bid))})}else ge.log("No Bids     (Prebid auction) for ".concat(t,"."))})),ge.groupEnd());var c=0;do{r=!1,t.forEach((function(e){var t,n,s,u,d,l,f=a[e.code],p=i?o.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})):o[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)&&(ge.group("🟢 Reassigning Bid"),ge.log("bidId: ",p.bid.adId),ge.log("From: ",p.adUnitCode,"To: ",e.code),ge.log("Uplift: ",p.bid.cpm-(null!==(s=null==f||null===(u=f.bid)||void 0===u?void 0:u.cpm)&&void 0!==s?s:0)),ge.groupEnd(),p.pooled=!0,p.originalAdUnitCode=p.bid.adUnitCode,p.originalHighestBid=null!==(d=null==f||null===(l=f.bid)||void 0===l?void 0:l.cpm)&&void 0!==d?d:0,null!=f&&Bn(f.bid,[])&&(f.pooled&&f.originalAdUnitCode&&(f.adUnitCode=f.originalAdUnitCode,delete f.pooled,delete f.originalAdUnitCode,delete f.originalHighestBid),jt(o,[f],_n)),p.adUnitCode=e.code,o.splice(o.indexOf(p),1),a[e.code]=p,r=!0,c++)}))}while(r);0===c?ge.log("🟡 No changes done: No higher bids availaible."):A&&(ge.group("UPDATED - Custom Bid Pool & Highest Updated Bids (".concat(c," changes): ")),ge.log(o.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=a[t];if(null!=n){var r=n.bid,i=r.adId,o=r.bidder,c=r.cpm,s=r.size;ge.log("Highest Bid (Updated) for ".concat(t," ").concat(!0===n.pooled?"📈":"",": "),{bidder:o,adId:i,cpm:c,size:s,bidObject:JSON.parse(JSON.stringify(n.bid))})}else ge.log("No Bids     (Updated) for ".concat(t,"."))})),ge.groupEnd()),jt(o,Object.values(a).sort(_n),_n);var s=Object.entries(a).filter((function(e){var t=ue(e,2);t[0];var n=t[1];return null==n?void 0:n.pooled})).map((function(e){return ue(e,1)[0]}));return{bids:o,reassignedInstances:s}}var qn=["slotID","size","mediaType"];function Yn(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 Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return Qn(u,"_invoke",function(n,r,i){var o,c,s,u=0,d=i||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function p(n,r){for(c=n,s=r,t=0;!l&&u&&!i&&t<d.length;t++){var i,o=d[t],p=f.p,g=o[2];n>3?(i=g===r)&&(c=o[4]||3,s=o[5]===e?o[3]:o[5],o[4]=3,o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(c=0,f.v=r,f.n=o[1]):p<g&&(i=n<3||o[0]>r||r>g)&&(o[4]=n,o[5]=r,f.n=g,c=0))}if(i||n>1)return a;throw l=!0,r}return function(i,d,g){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,g),c=d,s=g;(t=c<2?e:s)||!l;){o||(c?c<3?(c>1&&(f.n=-1),p(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(l=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:l}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Qn(t={},r,(function(){return this})),t),l=u.prototype=c.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Qn(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=u,Qn(l,"constructor",u),Qn(u,"constructor",s),s.displayName="GeneratorFunction",Qn(u,i,"GeneratorFunction"),Qn(l),Qn(l,i,"Generator"),Qn(l,r,(function(){return this})),Qn(l,"toString",(function(){return"[object Generator]"})),(Xn=function(){return{w:o,m:f}})()}function Qn(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Qn=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){Qn(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},Qn(e,t,n,r)}var Zn={},Kn=[];function $n(e){return"object"===B(e)&&null!=e}function er(e){return $n(e)&&"amzniid"in e&&"string"==typeof e.amzniid&&"amznbid"in e&&"string"==typeof e.amznbid}function tr(e){return $n(e)&&"targeting"in e&&er(e.targeting)}var nr=function(e){var t=e.filter((function(e){return function(e){return $n(e)&&"slotID"in e&&"string"==typeof e.slotID&&"size"in e&&"string"==typeof e.size}(e)&&(tr(e)||function(e){return $n(e)&&!("targeting"in e)&&er(e)}(e))})),n=t.filter((function(e){return!["","1","2"].includes(tr(e)?e.targeting.amzniid:e.amzniid)})).map((function(e){if(tr(e))return e;var t=e.slotID,n=e.size,r=e.mediaType,i=Dn(e,qn);return{slotID:t,size:n,targeting:i,helpers:{targetingKeys:Object.keys(i)},mediaType:null!=r?r:"d"}}));Kn.push.apply(Kn,ae(n)),e.filter((function(e){return!t.find((function(t){return t===e}))})).forEach((function(e){Ie(new Error("Invalid bid format!"),{description:"format: ".concat(JSON.stringify(e).slice(0,300))})}))},rr=function(e){return null==e||null==e.targeting.amznbid?0:null!==(t=null===(n=Zn[e.targeting.amznbid])||void 0===n?void 0:n[0])&&void 0!==t?t:999;var t,n},ir=function(e){return{bids:Kn.filter((function(t){return t.slotID===e}))}},or=function(e){var t=ir(e).bids.filter((function(e){return"targetingSet"!==e.status&&"rendered"!==e.status}));if(0===t.length)return{};for(var n=t.length-1,r=rr(t[n]),i=n;i>=0;i--){var o=rr(t[i]);o>r&&(n=i,r=o)}return t[n]};function ar(e,t){return"video"!==e.mediaType&&(!t.includes(e)&&("rendered"!==e.status&&"targetingSet"!==e.status&&(0!==rr(e)&&!e.pooled)))}function cr(e){A&&(ge.group("ORIGINAL - Custom Bid Pool & Highest Bids from APS auctions: "),ge.log([]),e.forEach((function(e){var t=e.code,n=or(t);if("slotID"in n){var r=n.slotID,i=n.mediaType,o=n.targeting,a=o.amznbid,c=o.amzniid,s=o.amznp,u=o.amznsz;ge.log("Highest Bid (APS) for ".concat(t,": "),{slotID:r,mediaType:i,amznbid:a,amzniid:c,amznp:s,amznsz:u,bidObject:JSON.parse(JSON.stringify(n))})}else ge.log("No Bids     (APS) for ".concat(t,"."))})),ge.groupEnd()),ge.log("🔴 Skipping: Not enough APS bids."),ge.groupEnd()}function sr(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{ge.group(">>> APS Custom bid pool for code variations <<<");var n=[],r=Yt.settings.adUnitInstances.filter((function(t){if(!e.includes(t.code)||!On(t))return!1;var r=or(t.code);return"slotID"in r&&n.push(r),!0})),i=r.reduce((function(e,t){var n;return Jn(Jn({},e),{},fe({},t.parentAdUnit._id,[].concat(ae(null!==(n=e[t.parentAdUnit._id])&&void 0!==n?n:[]),[t])))}),{}),o=[];return ge.log("Auction ad unit instances:",r),Object.entries(i).forEach((function(e){var r=ue(e,2),i=r[0],a=r[1];ge.group("Parent ad unit id: ".concat(i,". Child instances:"),a);var c=Object.keys(Yt.context.adUnitCodeVariations[i.slice(0,8)]);ge.log("Adding to the bid pool bids from the following ad unit code variations:",c);var s=c.reduce((function(e,t){var n=ir(t).bids;return[].concat(ae(e),ae(n))}),[]).filter((function(e){return ar(e,n)})).sort((function(e,t){return rr(t)-rr(e)}));if(0!==s.length){var u=fr(s,a,n);t&&lr(u),o.push.apply(o,u),ge.groupEnd()}else cr(a)})),ge.groupEnd(),o}catch(t){return t instanceof Error&&Ie(t,{description:"Failed to run the APS Custom bid pool for code variations",adUnitCodes:e}),[]}}function ur(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{ge.group(">>> APS customBidPool feature is enabled <<<");var n=[],r=Yt.settings.adUnitInstances.filter((function(t){if(!e.includes(t.code)||!t.parentAdUnit)return!1;var r=or(t.code);return"slotID"in r&&n.push(r),!0})),i=Object.values(Yt.context.adUnitCodeVariations).reduce((function(e,t){return[].concat(ae(e),ae(Object.keys(t)))}),[]).reduce((function(e,t){var n=ir(t).bids;return[].concat(ae(e),ae(n))}),[]),o=i.filter((function(e){return ar(e,n)})).sort((function(e,t){return rr(t)-rr(e)}));if(0===o.length)return cr(r),[];var a=fr(o,r,n);return t&&lr(a),ge.groupEnd(),a}catch(t){return t instanceof Error&&Ie(t,{description:"Failed to run the APS Custom Bid Pool",adUnitCodes:e}),[]}}function dr(e){var t,n=null!==(t=Yt.settings.yieldScriptSettings.apsBidPool)&&void 0!==t?t:{enabled:!1,mode:"full"},r=n.enabled,i=n.mode;if(!T||null==window.apstag)return ge.warn("ayManagerEnv.getHighestQualifiedAPSBids() was called but APS is not enabled (or apstag is not available)."),{};if(null==e||!function(e){return null!=e&&"object"===B(e)&&Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}(e))return ge.error("Invalid 'adUnitCodes' array provided to ayManagerEnv.getHighestQualifiedAPSBids()"+JSON.stringify(e)),{};if(0===(e=e.filter((function(e){return Sn(e)}))).length)return{};if(r){var o="full"===i?ur(e,!1):sr(e,!1);return e.reduce((function(e,t){var n;return Jn(Jn({},e),{},fe({},t,null===(n=o.find((function(e){return e.adUnitCode===t})))||void 0===n?void 0:n.bid))}),{})}return e.map((function(e){return or(e)})).filter((function(e){return"targeting"in e})).reduce((function(e,t){return Jn(Jn({},e),{},fe({},t.slotID,t))}),{})}function lr(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 fr(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}})),o=t.reduce((function(e,t){var r=n.find((function(e){return e.slotID===t.code}));return Jn(Jn({},e),null!=r?fe({},t.code,{bid:r,adUnitCode:r.slotID,pooled:r.pooled,originalAdUnitCode:r.originalAdUnitCode,originalHighestBid:r.originalHighestBid}):{})}),{});A&&(ge.group("ORIGINAL - Custom Bid Pool & Highest Bids from APS: "),ge.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=o[t];if(null!=n){var r=n.bid,i=r.slotID,a=r.mediaType,c=r.targeting,s=c.amznbid,u=c.amzniid,d=c.amznp,l=c.amznsz;ge.log("Highest Bid (APS) for ".concat(t,": "),{slotID:i,mediaType:a,amznbid:s,amzniid:u,amznp:d,amznsz:l,bidObject:JSON.parse(JSON.stringify(n.bid))})}else ge.log("No Bids     (APS) for ".concat(t,"."))})),ge.groupEnd());var a=0;do{r=!1,t.forEach((function(e){var t=o[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&&rr(n.bid)>rr(null==t?void 0:t.bid)&&(ge.group("🟢 Reassigning Bid"),ge.log("bidId: ",n.bid.targeting.amzniid),ge.log("From: ",n.adUnitCode,"To: ",e.code),ge.log("Uplift: ",rr(n.bid)-rr(null==t?void 0:t.bid)),ge.groupEnd(),n.pooled=!0,n.originalAdUnitCode=n.bid.slotID,n.originalHighestBid=rr(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 rr(t.bid)-rr(e.bid)}))),n.adUnitCode=e.code,i.splice(i.indexOf(n),1),o[e.code]=n,r=!0,a++)}))}while(r);return 0===a?ge.log("🟡 No changes done: No higher bids availaible."):A&&(ge.group("UPDATED - Custom Bid Pool & Highest Updated Bids (".concat(a," changes): ")),ge.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=o[t];if(null!=n){var r=n.bid,i=r.slotID,a=r.mediaType,c=r.targeting,s=c.amznbid,u=c.amzniid,d=c.amznp,l=c.amznsz;ge.log("Highest Bid (Updated) for ".concat(t," ").concat(!0===n.pooled?"📈":"",": "),{slotID:i,mediaType:a,amznbid:s,amzniid:u,amznp:d,amznsz:l,bidObject:JSON.parse(JSON.stringify(n.bid))})}else ge.log("No Bids     (Updated) for ".concat(t,"."))})),ge.groupEnd()),i.unshift.apply(i,ae(Object.values(o).filter((function(e){return null!=e})))),i.sort((function(e,t){return rr(t.bid)-rr(e.bid)}))}function pr(e,t){var n=setTimeout((function(){be(x.FAILSAFE_TIMEOUT_CHANGED,r),e()}),t);function r(t){be(x.FAILSAFE_TIMEOUT_CHANGED,r),clearTimeout(n),pr(e,t)}Ee(x.FAILSAFE_TIMEOUT_CHANGED,r)}function gr(e){Yt.context.timeouts.failsafeTimeout.current=e,he(x.FAILSAFE_TIMEOUT_CHANGED,e)}var vr=[],mr=window,hr=!1;function yr(e){return"__gpp"===e}var Er=function(){var e={gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnatv1","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:""},t=arguments,n=mr.__gpp;if(n.queue=n.queue||[],n.events=n.events||[],!t.length)return n.queue;var r=t[0];if("queue"===r)return n.queue;if("events"===r)return n.events;var i=t.length>1?t[1]:null,o=t.length>2?t[2]:null;if("ping"===r)return e;if("addEventListener"===r){"lastId"in n||(n.lastId=0),n.lastId++;var a=n.lastId;return n.events.push({id:a,callback:i,parameter:o}),{eventName:"listenerRegistered",listenerId:a,data:!0,pingData:e}}if("removeEventListener"===r){var c=!1;n.events=n.events||[];for(var s=0;s<n.events.length;s++)if(n.events[s].id==o){n.events.splice(s,1),c=!0;break}return{eventName:"listenerRemoved",listenerId:o,data:c,pingData:e}}if("hasSection"===r||"getSection"===r||"getField"===r)return null;n.queue.push([].slice.apply(t))},br=function(e){!function(){if(!hr){hr=!0;var e=mr.googlefc=mr.googlefc||{};e.ccpa=e.ccpa||{},e.callbackQueue=e.callbackQueue||[];var t=e.controlledMessagingFunction;e.controlledMessagingFunction=function(n){vr.forEach((function(t){try{var n,r=t+"Locator",i=mr[t];delete mr[t],null!==(n=mr.frames[r])&&void 0!==n&&n.frameElement&&mr.frames[r].frameElement.remove(),e.callbackQueue.push({CONSENT_API_READY:function(){var e=yr(t)?i.queue:i();if(e&&e.length&&(mr[t]?e.forEach((function(e){try{mr[t].apply(null,e)}catch(e){Ie(e,{description:"Exception in execution of CMP stub queue for googlefc ready state"})}})):Ie(new Error('CMP stub "'.concat(t,'" has not been defined by googlefc!')))),yr(t)){var n=i.events,r=i.lastId;if(n){var o=function(e){mr[t]("addEventListener",e.callback,e.parameter)},a=function(e){mr[t]("removeEventListener",(function(){}),e.listenerId)};if(r!==n.length)for(var c=function(e){var t=n.find((function(t){return t.id===e}));o(t||{callback:a})},s=1;s<=r;s++)c(s);else n.forEach(o)}}}})}catch(e){Ie(e,{description:"Exception in CMP stub googlefc handler"})}})),t?t(n):n.proceed(!0),e.controlledMessagingFunction=t}}}();var t,n=e+"Locator",r=mr;for(;r;){try{if(r.frames[n]){t=r;break}}catch(e){}if(r===mr.top)break;r=r.parent}t||r[e]||(!function e(){var t=mr.document,r=!!mr.frames[n];if(!r)if(t.body){var i=t.createElement("iframe");i.style.cssText="display:none",i.name=n,t.body.appendChild(i)}else setTimeout(e,5);return!r}(),mr[e]=yr(e)?Er:function(){var e,t=[];return function(){var n=arguments;if(!n.length)return t;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):t.push(n)}}(),mr.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 i=null!==r&&"object"===B(r)?r[e+"Call"]:null;if(i){var o=function(r,o){var a=fe({},e+"Return",{returnValue:r,success:o,callId:i.callId});t&&t.source&&t.source.postMessage&&t.source.postMessage(n?JSON.stringify(a):a,"*")};yr(e)?window[e](i.command,o,"parameter"in i?i.parameter:null,"version"in i?i.version:"1.1"):window[e](i.command,i.version,o,i.parameter)}}),!1),vr.push(e))};function wr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=document.createElement("script"),o={name:Un(t.code),parentPlacement:t,parentHtmlUnit:e,placeholderRef:i,placementRef:n,state:"injected"};return Yt.settings.htmlUnitInstances.push(o),i.id=o.name,i.type="yield-manager/html-unit-placeholder",r?n.appendChild(i):n.insertAdjacentElement(t.position,i),ge.logt("📑 HTML unit instance injected ".concat(r?"- manual":""),[o.name],"(HTML Unit: ".concat(e.name,")")),o}function Ir(e,t){0!==e.length&&(ge.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)Ie(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=Yt.settings.htmlUnitInstances.findIndex((function(t){return t===e}));Yt.settings.htmlUnitInstances.splice(i,1)})))}function Tr(e,t){0!==(e=e.filter((function(e){return"injected"!==e.state}))).length&&(ge.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)Ie(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}),Ir([e],"Failed to reset HTML Unit Instance")}})))}function _r(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=qt(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(A){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;Ie(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&&Ie(e,{description:"Unable to execute script from HTMLUnit ".concat(t),htmlUnitInstanceName:t})}}(t,e.parentHtmlUnit.name)}))}catch(t){var c;if(t instanceof Error)Ie(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}),Tr([e],"Failed to trigger HTML unit instance")}}))}function Or(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return Sr(u,"_invoke",function(n,r,i){var o,c,s,u=0,d=i||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function p(n,r){for(c=n,s=r,t=0;!l&&u&&!i&&t<d.length;t++){var i,o=d[t],p=f.p,g=o[2];n>3?(i=g===r)&&(c=o[4]||3,s=o[5]===e?o[3]:o[5],o[4]=3,o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(c=0,f.v=r,f.n=o[1]):p<g&&(i=n<3||o[0]>r||r>g)&&(o[4]=n,o[5]=r,f.n=g,c=0))}if(i||n>1)return a;throw l=!0,r}return function(i,d,g){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,g),c=d,s=g;(t=c<2?e:s)||!l;){o||(c?c<3?(c>1&&(f.n=-1),p(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(l=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:l}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Sr(t={},r,(function(){return this})),t),l=u.prototype=c.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Sr(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=u,Sr(l,"constructor",u),Sr(u,"constructor",s),s.displayName="GeneratorFunction",Sr(u,i,"GeneratorFunction"),Sr(l),Sr(l,i,"Generator"),Sr(l,r,(function(){return this})),Sr(l,"toString",(function(){return"[object Generator]"})),(Or=function(){return{w:o,m:f}})()}function Sr(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Sr=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){Sr(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},Sr(e,t,n,r)}var Ar=[],Ur=!1,Rr=!1;function Nr(e){var t=function(){var t=le(Or().m((function t(){var n,r;return Or().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Mr();case 1:return n=t.v,t.p=2,t.n=3,e();case 3:t.n=5;break;case 4:t.p=4,(r=t.v)instanceof Error&&Ie(r,{description:"Exception in sync queue task"});case 5:return t.p=5,n(),t.f(5);case 6:return t.a(2)}}),t,null,[[2,4,5,6]])})));return function(){return t.apply(this,arguments)}}();Ar.push(t),Cr()}function Cr(){return Pr.apply(this,arguments)}function Pr(){return(Pr=le(Or().m((function e(){var t;return Or().w((function(e){for(;;)switch(e.n){case 0:if(!Ur&&!Rr&&0!==Ar.length){e.n=1;break}return e.a(2);case 1:if(null==(t=Ar.shift())){e.n=3;break}return Rr=!0,e.n=2,t();case 2:Rr=!1,Cr();case 3:return e.a(2)}}),e)})))).apply(this,arguments)}function Mr(){return Dr.apply(this,arguments)}function Dr(){return Dr=le(Or().m((function e(){return Or().w((function(e){for(;;)if(0===e.n)return e.a(2,new Promise((function(e){var t=function(){Ur?setTimeout(t,5):(Ur=!0,e((function(){Ur=!1,Cr()})))};t()})))}),e)}))),Dr.apply(this,arguments)}var Lr=["IFRAME","IMG","INPUT","svg","LINK","SCRIPT","FORM","STYLE"],jr={maxWait:1e3};function xr(e){var t=Yt.settings.experiments.mutationObserverInject;if(t){var n=[],r=t&&t.ignoredElements||Lr,i=t.observeTarget&&document.querySelector(t.observeTarget)||document.body,o=wt((function(t){if(n.length>1){for(var r=!0,i=0,o=n;i<o.length;i++){if(o[i]!==t){r=!1;break}}r||(t=document.body),n=[]}t.isConnected&&t.childElementCount&&(ge.logt("📑 Running observer inject:",[t]),e(t))}),500,jr);new MutationObserver((function(e,t){e.forEach((function(e){var t,i=Array.from(e.addedNodes).filter((function(e){if(1!==e.nodeType||r.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),o(t))}))})).observe(i,{childList:!0,subtree:!0})}}function Fr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return kr(u,"_invoke",function(n,r,i){var o,c,s,u=0,d=i||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function p(n,r){for(c=n,s=r,t=0;!l&&u&&!i&&t<d.length;t++){var i,o=d[t],p=f.p,g=o[2];n>3?(i=g===r)&&(c=o[4]||3,s=o[5]===e?o[3]:o[5],o[4]=3,o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(c=0,f.v=r,f.n=o[1]):p<g&&(i=n<3||o[0]>r||r>g)&&(o[4]=n,o[5]=r,f.n=g,c=0))}if(i||n>1)return a;throw l=!0,r}return function(i,d,g){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,g),c=d,s=g;(t=c<2?e:s)||!l;){o||(c?c<3?(c>1&&(f.n=-1),p(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(l=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:l}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(kr(t={},r,(function(){return this})),t),l=u.prototype=c.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,kr(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=u,kr(l,"constructor",u),kr(u,"constructor",s),s.displayName="GeneratorFunction",kr(u,i,"GeneratorFunction"),kr(l),kr(l,i,"Generator"),kr(l,r,(function(){return this})),kr(l,"toString",(function(){return"[object Generator]"})),(Fr=function(){return{w:o,m:f}})()}function kr(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}kr=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){kr(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},kr(e,t,n,r)}function zr(){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{var r=Yt.settings.placements.filter((function(e){var t=e.inject,n=e.conditions;return t&&Vt(n)}));for(var i in t||r.filter((function(e){return e.adUnits.length>0})).forEach((function(e){o(e).forEach((function(t){try{var n="true"===t.getAttribute("data-ay-manager-destroyed");Yt.settings.adUnitInstances.some((function(n){var r=n.placementRef,i=n.parentPlacement;return r===t&&i===e}))||n||Hi(e,t)}catch(t){t instanceof Error&&Ie(t,{description:"Failed to inject ad unit instance for placement ".concat(e.name,"; ")+"at location '".concat(e.placement,"'"),adUnitName:e.name})}}))})),r.filter((function(e){return e.htmlUnits.length>0})).forEach((function(e){o(e).forEach((function(t,n){try{Yt.settings.htmlUnitInstances.some((function(n){var r=n.placementRef,i=n.parentPlacement;return r===t&&i===e}))||e.htmlUnits.map((function(e){return Yt.settings.htmlUnits.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).forEach((function(n){return wr(n,e,t)}))}catch(t){t instanceof Error&&Ie(t,{description:"Failed to inject HTML unit instances for placement ".concat(e.name,"; ")+"at location '".concat(e.placement,"' at index ").concat(n),htmlUnitName:e.name})}}))})),Yt.context.triggerEvents)Yt.context.triggerEvents[i]&&Hr(i,n,t)}catch(e){e instanceof Error&&Ie(e,{description:"Failed to inject placements"})}function o(t){var r=e.querySelectorAll(t.placement);return 0===r.length?(he(x.STATE_EXCEPTION,{type:"placements",items:[t],reason:F.PLACEMENT_QUERY_NO_ELEMENTS,action:k.IGNORE,ignoredStep:z.INJECT}),n&&ge.warn("📑 Could not inject units for placement:",[t.name],"The placement query string returned no elements."),[]):Array.prototype.slice.apply(r)}}function Br(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;(ge.log("🔁 Page change".concat(r?" - HTML units only":"")),he(x.BEFORE_PAGE_CHANGE,{}),c?function(){var e=Yt.settings.adUnitInstances.filter((function(e){return e.parentPlacement.inject})),t=Yt.settings.htmlUnitInstances.filter((function(e){return e.parentPlacement.inject}));e.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:e,reason:F.PAGE_CHANGE_RESET_MODE,action:k.REMOVE}),Vi(e,"Page change - reset mode"));t.length>0&&(he(x.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t,reason:F.PAGE_CHANGE_RESET_MODE,action:k.REMOVE}),Ir(t,"Page change - reset mode"));var n=Yt.settings.adUnitInstances.filter((function(e){return!e.parentPlacement.inject})),r=Yt.settings.htmlUnitInstances.filter((function(e){return!e.parentPlacement.inject}));n.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:n,reason:F.PAGE_CHANGE_RESET_MODE,action:k.RESET}),Wi(n,"Page change - reset mode"));r.length>0&&(he(x.STATE_EXCEPTION,{type:"htmlUnitInstances",items:r,reason:F.PAGE_CHANGE_RESET_MODE,action:k.RESET}),Tr(r,"Page change - reset mode"))}():(Yr(),function(){try{var e=Yt.settings.adUnitInstances.filter((function(e){return!Vt(e.parentPlacement.conditions)}));e.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:e.slice(),reason:F.PLACEMENT_CONDITIONS_NOT_MET,action:k.REMOVE}),Vi(e,"Placement conditions are no longer valid"));var t=Yt.settings.htmlUnitInstances.filter((function(e){return!Vt(e.parentPlacement.conditions)}));t.length>0&&(he(x.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t.slice(),reason:F.PLACEMENT_CONDITIONS_NOT_MET,action:k.REMOVE}),Ir(t,"Placement conditions are no longer valid")),Cn()}catch(e){Ie(e,{description:"Failed to cleanup instances with invalid Placements"})}}(),function(){try{var e=Yt.settings.adUnitInstances.filter((function(e){return e.parentAdUnit&&!Vt(e.parentAdUnit.conditions)}));e.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:e.slice(),reason:F.AD_UNIT_CONDITIONS_NOT_MET,action:k.RESET}),Wi(e,"Ad Unit conditions are no longer valid"));var t=Yt.settings.htmlUnitInstances.filter((function(e){return"injected"!==e.state&&!Vt(e.parentHtmlUnit.conditions)}));t.length>0&&(he(x.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t.slice(),reason:F.AD_UNIT_CONDITIONS_NOT_MET,action:k.RESET}),Tr(t,"HTML Unit conditions are no longer valid")),function(){try{var e=Yt.settings.adUnitInstances.filter((function(e){return e.state.triggerFetchStep&&!e.state.triggerRenderStep&&0===an([e],void 0,"fetch").length||e.state.triggerRenderStep&&0===an([e],void 0,"render").length}));e.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:e.slice(),reason:F.PLACEMENT_TRIGGER_CONDITIONS_NOT_MET,action:k.RESET}),Wi(e,"Placement trigger conditions are no longer valid"));var t=Yt.settings.htmlUnitInstances.filter((function(e){return"injected"!==e.state&&0===an([e],void 0,"render").length}));t.length>0&&(he(x.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t.slice(),reason:F.PLACEMENT_TRIGGER_CONDITIONS_NOT_MET,action:k.RESET}),Tr(t,"Placement trigger conditions are no longer valid"))}catch(e){Ie(e,{description:"Failed to cleanup instances with invalid triggers"})}}()}catch(e){Ie(e,{description:"Failed to cleanup instances with invalid Ad Units"})}}()),o)&&Yi(Yt.settings.adUnitInstances.filter((function(e){return e.state.rendered&&On(e)})),!1);zr(document,r),he(x.AFTER_PAGE_CHANGE,{})}function Gr(e){Yr(),zr(e||document,!1,!1)}function Hr(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n?(t&&ge.logt("⚡ ".concat(e)),Yt.context.triggerEvents[e]=!0,qr(e)):Nr(le(Fr().m((function n(){return Fr().w((function(n){for(;;)switch(n.n){case 0:return t&&ge.logt("⚡ ".concat(e)),Yt.context.triggerEvents[e]=!0,n.n=1,Vr(e);case 1:qr(e);case 2:return n.a(2)}}),n)}))))}function Vr(e){return Wr.apply(this,arguments)}function Wr(){return Wr=le(Fr().m((function e(t){var n,r,i,o,a,c,s,u,d=arguments;return Fr().w((function(e){for(;;)switch(e.n){case 0:if(n=d.length>1&&void 0!==d[1]?d[1]:Yt.settings.adUnitInstances,r=n.filter((function(e){return!(e.state.triggerFetchStep||e.state.triggerRenderStep||e.state.rendered||e.state.suspended||e.state.waitingAuction||e.state.waitingGPTRender||e.state.waitingLazyLoad||e.state.waitingLazyRender)})),!((i=an(r,t,"any").filter((function(e){return e.parentPlacement.adUnits.map((function(e){return Yt.settings.adUnits.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).some((function(e){return Vt(e.conditions)}))}))).length>0)){e.n=1;break}return e.n=1,Qi(i,(function(e){Ji(an(e.filter((function(e){return!e.state.triggerRenderStep})),void 0,"render"))}));case 1:if(o=n.filter((function(e){return e.state.triggerFetchStep&&!e.state.triggerRenderStep&&!e.state.rendered&&!e.state.suspended&&!e.state.waitingAuction&&!e.state.waitingGPTRender&&!e.state.waitingLazyLoad&&!e.state.waitingLazyRender&&On(e)})),a=an(o,t,"render"),c=nn(a),s=c.adUnitsWithBids,u=c.adUnitsWithoutBids,!(s.length>0)){e.n=2;break}return e.n=2,Ji(s);case 2:u.length>0&&(ge.log("🎯 Render trigger will fire after auction for these Ad Units (Fetch trigger done - but expired/no bids):",u.map((function(e){return e.code}))),Ki(u,!1,(function(e){Ji(e)})));case 3:return e.a(2)}}),e)}))),Wr.apply(this,arguments)}function qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yt.settings.htmlUnitInstances,n=t.filter((function(e){return"injected"===e.state})),r=an(n,e,"render").filter((function(e){return Vt(e.parentHtmlUnit.conditions)}));r.length>0&&(ge.log("🎯 Render trigger fired for HTML Units:",r.map((function(e){return e.name}))),_r(r))}function Yr(){try{var e=Yt.settings.adUnitInstances.filter((function(e){var t=document.getElementById(e.code);return!t||t!==e.containerRef}));e.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:e.slice(),reason:F.CONTAINER_NOT_IN_THE_DOM,action:k.REMOVE}),Vi(e,"Container is no longer in the DOM"));var t=Yt.settings.htmlUnitInstances.filter((function(e){var t=document.getElementById(e.name);return!t||t!==e.placeholderRef}));t.length>0&&(he(x.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t.slice(),reason:F.PLACEHOLDER_NOT_IN_THE_DOM,action:k.REMOVE}),Ir(t,"Placeholder is no longer in the DOM")),Cn()}catch(e){Ie(e,{description:"Failed to cleanup unmounted/disconnected instances"})}}function Jr(){return Yt.settings.placements.filter((function(e){return Vt(e.conditions)}))}function Xr(){return Yt.settings.adUnits.filter((function(e){return Vt(e.conditions)}))}function Qr(){return Yt.settings.htmlUnits.filter((function(e){return Vt(e.conditions)}))}function Zr(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(B(e)+" is not iterable")}function Kr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return $r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(e,t):void 0}}(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 $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ei(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return ti(u,"_invoke",function(n,r,i){var o,c,s,u=0,d=i||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function p(n,r){for(c=n,s=r,t=0;!l&&u&&!i&&t<d.length;t++){var i,o=d[t],p=f.p,g=o[2];n>3?(i=g===r)&&(c=o[4]||3,s=o[5]===e?o[3]:o[5],o[4]=3,o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(c=0,f.v=r,f.n=o[1]):p<g&&(i=n<3||o[0]>r||r>g)&&(o[4]=n,o[5]=r,f.n=g,c=0))}if(i||n>1)return a;throw l=!0,r}return function(i,d,g){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,g),c=d,s=g;(t=c<2?e:s)||!l;){o||(c?c<3?(c>1&&(f.n=-1),p(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(l=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:l}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(ti(t={},r,(function(){return this})),t),l=u.prototype=c.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ti(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=u,ti(l,"constructor",u),ti(u,"constructor",s),s.displayName="GeneratorFunction",ti(u,i,"GeneratorFunction"),ti(l),ti(l,i,"Generator"),ti(l,r,(function(){return this})),ti(l,"toString",(function(){return"[object Generator]"})),(ei=function(){return{w:o,m:f}})()}function ti(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}ti=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){ti(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},ti(e,t,n,r)}function ni(){window.googletag.cmd.push((function(){C&&new Promise((function(e,t){try{var n=Yt.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){return Object.assign(Yt.context.lineItemTypeMap,e)})).catch((function(e){var t;return ge.warn(null!==(t=e.message)&&void 0!==t?t:"",e)})),window.googletag.pubads().addEventListener("impressionViewable",(function(e){ri(e.slot)})),window.googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=e.slot;e.isEmpty&&ri(t)})),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(Sn(c)){var s=Yt.settings.adUnitInstances.find((function(e){return e.code===c})),u=null==s||null===(t=s.parentAdUnit)||void 0===t?void 0:t.refresh.refreshControls;null!=s&&((u||N)&&(s.renderInfo[f.LINE_ITEM]=String(null!=o?o:""),s.renderInfo[f.ADVERTISER]=String(null!=r?r:""),s.renderInfo[f.ORDER]=String(null!=i?i:"")),u&&(s.renderInfo[f.SIZE]||function(e,t){var n=null;try{var r=En(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:mn(e||"0"),height:mn(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 u;null===(u=n)||void 0===u||u.disconnect(),t(null)}}))).observe(r,{attributes:!0,attributeFilter:["width","height","style"]}),e.renderInfo.obs=n}}catch(r){var s;r instanceof Error&&Ie(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[f.SIZE]=Object.values(e).join("x"))})))),a&&u&&(s.renderInfo[f.BIDDER]="",s.renderInfo[f.SIZE]="0x0")}})),window.googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t=e.slot,n=e.advertiserId,r=e.campaignId,i=e.lineItemId,o=e.isEmpty;Sn(t.getSlotElementId())&&(!o&&N&&ai({lineItemId:String(null!=i?i:""),advertiserId:String(null!=n?n:""),campaignId:String(null!=r?r:"")})&&ri(t,null))})),setInterval(le(ei().m((function e(){var t;return ei().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,ii();case 1:e.n=3;break;case 2:e.p=2,(t=e.v)instanceof Error&&Ie(t,{description:"Failed to refresh viewable slots at setInterval"});case 3:return e.a(2)}}),e,null,[[0,2]])}))),3e3)}))}function ri(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;try{var n=e.getSlotElementId(),r=Yt.settings.adUnitInstances.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,u=null===(null===(i=Yt.context.viewableSlots[n])||void 0===i?void 0:i.viewedAt);s||u||(Yt.context.viewableSlots[n]={slot:e,viewedAt:t,refreshControl:d(r.parentAdUnit.refresh)})}}catch(t){t instanceof Error&&Ie(t,{description:"Failed to update viewedAt timestamp",adUnitInstanceCode:e.getSlotElementId()})}function d(e){var t=e.refreshBasic,n=e.refreshControls;if(n){var r=n.find((function(e){var t,n;return Vt(null!==(t=null===(n=Yt.settings.definitions.refreshControls[e])||void 0===n?void 0:n.conditions)&&void 0!==t?t:[])}));return r?Yt.settings.definitions.refreshControls[r]:(ge.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 t}}function ii(){return oi.apply(this,arguments)}function oi(){return(oi=le(ei().m((function e(){var t,n,r,i,o,a,c,s,u;return ei().w((function(e){for(;;)switch(e.n){case 0:if(s=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 f.ADVERTISER:case f.ORDER:case f.LINE_ITEM:case f.SIZE:case f.BIDDER:return e.value.includes(t.renderInfo[e.type]);case f.LINE_ITEM_TYPE:var n,r=t.renderInfo[f.LINE_ITEM],i=null===(n=Yt.context.lineItemTypeMap[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(Yt.context.viewableSlots).filter((function(e){var t=ue(e,2);return t[0],null!==t[1].viewedAt})),!document.hidden){e.n=1;break}return e.a(2);case 1:r=Kr(n),e.p=2,o=ei().m((function e(){var n,r,o,a,c,u,d,l,f,p,g,v;return ei().w((function(e){for(;;)switch(e.n){case 0:if(n=ue(i.value,2),r=n[0],o=n[1],a=o.slot,c=o.viewedAt,u=o.refreshControl,e.p=1,(d=Yt.settings.adUnitInstances.find((function(e){return e.code===r})))&&d.parentAdUnit&&d.state.rendered){e.n=2;break}return delete Yt.context.viewableSlots[r],e.a(2,{v:void 0});case 2:if(0!==(l=s(u,d))){e.n=3;break}ri(a,null),e.n=6;break;case 3:if(f=c.getTime()<=Date.now()-1e3*Math.max(1,l-3),g=Yt.settings.experiments.refreshRegardlessOfView){e.n=5;break}return e.n=4,tn(d.containerRef);case 4:g=e.v;case 5:p=g,f&&p&&(delete Yt.context.viewableSlots[r],t.push(r));case 6:e.n=8;break;case 7:e.p=7,(v=e.v)instanceof Error&&Ie(v,{description:"Error while deciding whether to refresh viewable slot",adUnitInstanceCode:r});case 8:return e.a(2)}}),e,null,[[1,7]])})),r.s();case 3:if((i=r.n()).done){e.n=6;break}return e.d(Zr(o()),4);case 4:if(!(a=e.v)){e.n=5;break}return e.a(2,a.v);case 5:e.n=3;break;case 6:e.n=8;break;case 7:e.p=7,u=e.v,r.e(u);case 8:return e.p=8,r.f(),e.f(8);case 9:(c=t.map((function(e){return Yt.settings.adUnitInstances.find((function(t){return t.code===e}))})).filter((function(e){return null!=e&&e.state.rendered&&On(e)}))).length>0&&Yi(c,!1);case 10:return e.a(2)}}),e,null,[[2,7,8,9]])})))).apply(this,arguments)}function ai(e){var t=e.advertiserId,n=e.campaignId,r=e.lineItemId;try{var i,o=Yt.settings.yieldScriptSettings.refreshLimits,a=o.advertiserIds,c=o.orderIds,s=o.lineItemTypes,u=null===(i=Yt.context.lineItemTypeMap[r])||void 0===i?void 0:i[0],d=""!==t&&!kt(a.include,a.exclude,t.toString()),l=""!==n&&!kt(c.include,c.exclude,n.toString()),f=null!=u&&!kt(s.include,s.exclude,u);return d||l||f}catch(e){return e instanceof Error&&Ie(e,{description:"Error while checking refresh limits"}),!1}}function ci(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return si(u,"_invoke",function(n,r,i){var o,c,s,u=0,d=i||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function p(n,r){for(c=n,s=r,t=0;!l&&u&&!i&&t<d.length;t++){var i,o=d[t],p=f.p,g=o[2];n>3?(i=g===r)&&(c=o[4]||3,s=o[5]===e?o[3]:o[5],o[4]=3,o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(c=0,f.v=r,f.n=o[1]):p<g&&(i=n<3||o[0]>r||r>g)&&(o[4]=n,o[5]=r,f.n=g,c=0))}if(i||n>1)return a;throw l=!0,r}return function(i,d,g){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,g),c=d,s=g;(t=c<2?e:s)||!l;){o||(c?c<3?(c>1&&(f.n=-1),p(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(l=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:l}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(si(t={},r,(function(){return this})),t),l=u.prototype=c.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,si(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=u,si(l,"constructor",u),si(u,"constructor",s),s.displayName="GeneratorFunction",si(u,i,"GeneratorFunction"),si(l),si(l,i,"Generator"),si(l,r,(function(){return this})),si(l,"toString",(function(){return"[object Generator]"})),(ci=function(){return{w:o,m:f}})()}function si(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}si=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){si(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},si(e,t,n,r)}function ui(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 di(){window.ayManagerEnv.onEvent=Ee,window.ayManagerEnv.offEvent=be,window.ayManagerEnv.onceEvent=ye,window.ayManagerEnv.tools={getCookie:Mt,setCookie:Dt,getEnabledAdUnits:Xr,getEnabledPlacements:Jr,getEnabledHTMLUnits:Qr},window.ayManagerEnv.debug=Yt.debug,window.ayManagerEnv.viewableSlots=Yt.context.viewableSlots,window.ayManagerEnv.adUnitCodeVariations=Yt.context.adUnitCodeVariations,window.ayManagerEnv.settings.adUnitInstances=Yt.settings.adUnitInstances,window.ayManagerEnv.settings.htmlUnitInstances=Yt.settings.htmlUnitInstances,window.ayManagerEnv.getAdUnitAuctionInfo=Oi,window.ayManagerEnv.getHighestQualifiedBids=Hn,window.ayManagerEnv.getHighestQualifiedAPSBids=dr,window.ayManagerEnv.refresh=fi,window.ayManagerEnv.fetch=gi,window.ayManagerEnv.render=mi,window.ayManagerEnv.reset=yi,window.ayManagerEnv.destroy=bi,window.ayManagerEnv.restore=Ii,window.ayManagerEnv.trigger=Ti,window.ayManagerEnv.changePage=wt(Br,30),window.ayManagerEnv.display=li,window.ayManagerEnv.fakeTCLoad=Si,window.ayManagerEnv.dispatchManualEvent=Ai}function li(e){try{var t=function(e){return"string"==typeof e};if(t(e)&&Yt.settings.placements.some((function(t){var n=t.code,r=t.inject;return n===e&&!r})))!function(e){try{var t,n=null!==(t=document.querySelector("[data-ay-manager-id='".concat(e,"']")))&&void 0!==t?t:document.querySelector("#".concat(e,":not([data-manual-placement-group])"));if(null==n)return void ge.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.");n.removeAttribute("data-ay-manager-id"),n.setAttribute("data-manual-placement-group",e),null!=n.children[0]&&n.removeChild(n.children[0]),Yt.settings.placements.filter((function(t){var n=t.inject,r=t.code,i=t.conditions;return!n&&r===e&&Vt(i)})).forEach((function(e){try{if(e.adUnits.length>0){var t=Hi(e,n,!0);Yt.settings.yieldScriptSettings.spa.mode!==p.MANUAL&&Yt.context.isChangePagePending||Vr(void 0,[t])}e.htmlUnits.length>0&&qr(void 0,e.htmlUnits.map((function(e){return Yt.settings.htmlUnits.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).map((function(t){return wr(t,e,n)})))}catch(t){t instanceof Error&&Ie(t,{description:"Failed to manually inject instances for placement ".concat(e.name),adUnitName:e.name})}}))}catch(t){t instanceof Error&&Ie(t,{description:"Exception while manually injecting placements",adUnitCodes:[e]})}}(e);else{var n=e;window.googletag.cmd.push((function(){if(window.googletag._display(n),!window.googletag._wasInitialLoadDisabled){var e=null!=(r=n)&&"object"===B(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}))}}catch(t){t instanceof Error&&Ie(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({description:"Exception in display API call"},"string"==typeof e?{adUnitCodes:[e]}:{}))}}function fi(e,t){return pi.apply(this,arguments)}function pi(){return(pi=le(ci().m((function e(t,n){var r,i,o,a,c,s,u,d,l,p,g,v,m,h,y;return ci().w((function(e){for(;;)switch(e.n){case 0:if(e.p=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,u=void 0!==s&&s,d=r.preFetch,l=void 0!==d&&d,p=r.onlyUpdateViewedAt,g=void 0!==p&&p,v=r.ignoreRefreshLimits,m=void 0!==v&&v,h=[],!U){e.n=1;break}return ge.warn("Refresh cancelled due to 'no_refresh' debug flag!"),e.a(2);case 1:if(null!=t){e.n=2;break}h=Yt.settings.adUnitInstances.slice(),e.n=4;break;case 2:if(!Array.isArray(t)||!t.every((function(e){return"string"==typeof e}))){e.n=3;break}h=u?Yt.settings.adUnitInstances.filter((function(e){return t.includes(e.code)})):Yt.settings.adUnitInstances.filter((function(e){return t.includes(e.parentPlacement.code)})),e.n=4;break;case 3:return ge.error("Invalid 'placementCodes' provided to ayManagerEnv.refresh()"+JSON.stringify(t)),e.a(2);case 4:return h=h.filter((function(e){return e.state.rendered&&On(e)})),e.n=5,rn(h,o,c);case 5:h=e.v,N&&!m&&(h=h.filter((function(e){return!ai({lineItemId:e.renderInfo[f.LINE_ITEM],advertiserId:e.renderInfo[f.ADVERTISER],campaignId:e.renderInfo[f.ORDER]})}))),h.length>0&&(g?qi(h):Yi(h,l)),e.n=7;break;case 6:e.p=6,(y=e.v)instanceof Error&&Ie(y,{description:"Exception in refresh API call"});case 7:return e.a(2)}}),e,null,[[0,6]])})))).apply(this,arguments)}function gi(e,t){return vi.apply(this,arguments)}function vi(){return(vi=le(ci().m((function e(t,n){var r,i,o,a,c,s,u,d,l;return ci().w((function(e){for(;;)switch(e.n){case 0:if(e.p=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,u=void 0!==s&&s,d=[],null!=t){e.n=1;break}d=Yt.settings.adUnitInstances.slice(),e.n=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.n=2;break}d=u?Yt.settings.adUnitInstances.filter((function(e){return t.includes(e.code)})):cn(t,Yt.settings.adUnitInstances),e.n=3;break;case 2:return ge.error("Invalid 'placementCodes' provided to ayManagerEnv.fetch()"+JSON.stringify(t)),e.a(2);case 3:return d=d.filter((function(e){return On(e)})),e.n=4,rn(d,o,c);case 4:(d=e.v).length>0&&(ge.log("📩 Fetching bids for the following Ad Unit Instances:",d.map((function(e){return e.code}))),Ki(d,!1,(function(){}))),e.n=6;break;case 5:e.p=5,(l=e.v)instanceof Error&&Ie(l,{description:"Exception in fetch API call"});case 6:return e.a(2)}}),e,null,[[0,5]])})))).apply(this,arguments)}function mi(e,t){return hi.apply(this,arguments)}function hi(){return(hi=le(ci().m((function e(t,n){var r,i,o,a,c,s,u,d,l;return ci().w((function(e){for(;;)switch(e.n){case 0:if(e.p=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,u=void 0!==s&&s,d=[],null!=t){e.n=1;break}d=Yt.settings.adUnitInstances.slice(),e.n=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.n=2;break}d=u?Yt.settings.adUnitInstances.filter((function(e){return t.includes(e.code)})):cn(t,Yt.settings.adUnitInstances),e.n=3;break;case 2:return ge.error("Invalid 'placementCodes' provided to ayManagerEnv.render()"+JSON.stringify(t)),e.a(2);case 3:return d=d.filter((function(e){return On(e)})),e.n=4,rn(d,o,c);case 4:(d=e.v).length>0&&(ge.log("🎇 Rendering the following Ad Unit Instances:",d.map((function(e){return e.code}))),$i(d,!1)),e.n=6;break;case 5:e.p=5,(l=e.v)instanceof Error&&Ie(l,{description:"Exception in render API call"});case 6:return e.a(2)}}),e,null,[[0,5]])})))).apply(this,arguments)}function yi(e,t){return Ei.apply(this,arguments)}function Ei(){return Ei=le(ci().m((function e(t,n){var r,i,o,a,c,s,u,d,l;return ci().w((function(e){for(;;)switch(e.n){case 0:if(e.p=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,u=void 0!==s&&s,d=[],null!=t){e.n=1;break}d=Yt.settings.adUnitInstances.slice(),e.n=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.n=2;break}d=u?Yt.settings.adUnitInstances.filter((function(e){return t.includes(e.code)})):cn(t,Yt.settings.adUnitInstances),e.n=3;break;case 2:return ge.error("Invalid 'placementCodes' provided to ayManagerEnv.reset()"+JSON.stringify(t)),e.a(2);case 3:return d=d.filter((function(e){var t=e.state,n=t.suspended,r=t.triggerFetchStep,i=t.triggerRenderStep;return n||r||i})),e.n=4,rn(d,o,c);case 4:Wi(d=e.v,"reset API call"),e.n=6;break;case 5:e.p=5,(l=e.v)instanceof Error&&Ie(l,{description:"Exception in reset API call"});case 6:return e.a(2)}}),e,null,[[0,5]])}))),Ei.apply(this,arguments)}function bi(e,t){return wi.apply(this,arguments)}function wi(){return(wi=le(ci().m((function e(t,n){var r,i,o,a,c,s,u,d,l;return ci().w((function(e){for(;;)switch(e.n){case 0:if(e.p=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,u=void 0!==s&&s,d=[],null!=t){e.n=1;break}d=Yt.settings.adUnitInstances.slice(),e.n=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.n=2;break}d=u?Yt.settings.adUnitInstances.filter((function(e){return t.includes(e.code)})):cn(t,Yt.settings.adUnitInstances),e.n=3;break;case 2:return ge.error("Invalid 'placementCodes' provided to ayManagerEnv.destroy()"+JSON.stringify(t)),e.a(2);case 3:return e.n=4,rn(d,o,c);case 4:(d=e.v).forEach((function(e){e.placementRef&&e.placementRef.setAttribute("data-ay-manager-destroyed","true")})),Vi(d,"destroy API call"),e.n=6;break;case 5:e.p=5,(l=e.v)instanceof Error&&Ie(l,{description:"Exception in destroy API call"});case 6:return e.a(2)}}),e,null,[[0,5]])})))).apply(this,arguments)}function Ii(e){try{var t=[];if(null==e)t=Yt.settings.placements.slice();else{if(!(Array.isArray(e)&&e.length>0))return void ge.error("Invalid 'placementCodes' provided to ayManagerEnv.restore()"+JSON.stringify(e));t=Yt.settings.placements.filter((function(t){return e.includes(t.code)}))}t.length>0&&(ge.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&&Ie(e,{description:"Exception in restore API call"})}}function Ti(e,t){return _i.apply(this,arguments)}function _i(){return(_i=le(ci().m((function e(t,n){var r,i,o,a,c,s,u,d,l,f;return ci().w((function(e){for(;;)switch(e.n){case 0:if(e.p=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,u=void 0!==s&&s,d=[],null!=t){e.n=1;break}d=Yt.settings.adUnitInstances.slice(),e.n=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.n=2;break}u?(l=t.map((function(e){return e.replace(/_[^_]+$/,"")})),d=Yt.settings.adUnitInstances.filter((function(e){return l.includes(e.code)}))):d=cn(t,Yt.settings.adUnitInstances),e.n=3;break;case 2:return ge.error("Invalid 'placementCodes' provided to ayManagerEnv.trigger()"+JSON.stringify(t)),e.a(2);case 3:return d=d.filter((function(e){return!e.state.waitingAuction&&!e.state.triggerFetchStep&&!e.state.triggerRenderStep&&!e.state.suspended&&!e.state.waitingLazyLoad&&!e.state.waitingLazyRender||e.state.triggerFetchStep&&!e.state.triggerRenderStep&&!e.state.waitingLazyLoad&&!e.state.waitingLazyRender&&!e.state.waitingAuction&&On(e)})),e.n=4,rn(d,o,c);case 4:(d=e.v).length>0&&(ge.log("🎯 Triggering the following Ad Unit Instances:",d.map((function(e){return e.code}))),Vr(void 0,d)),e.n=6;break;case 5:e.p=5,(f=e.v)instanceof Error&&Ie(f,{description:"Exception in trigger API call"});case 6:return e.a(2)}}),e,null,[[0,5]])})))).apply(this,arguments)}function Oi(e){try{var t=Yt.settings.adUnits.find((function(t){return t.name===e}));return null==t?void ge.error('Ad Unit with name "'.concat(e,'" not found.')):{path:jn(t.path),bids:pn(t,fn())}}catch(e){e instanceof Error&&Ie(e,{description:"Exception in getBidsAndPathForAdUnit API call"})}}function Si(){try{Hr(l.CONSENT_INITIALIZATION)}catch(e){e instanceof Error&&Ie(e,{description:"Exception in fakeTCLoad API call"})}}function Ai(){window.ayManagerEnv.cmd.push((function(){Hr(l.MANUAL_EVENT)}))}function Ui(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 Ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ni=window.ayManagerEnv.startTime,Ci={},Pi=[];function Mi(){var e,t,n,r,i,o,a,c,s,u;!function(){if(Yt.settings.experiments.cmpStub){var e=Ln.prebidSettings.prebidConfig.consentManagement;null!=e&&e.gpp&&br("__gpp"),null!=e&&e.gdpr&&br("__tcfapi"),null!=e&&e.usp&&br("__uspapi")}}(),i=Yt.context.timeouts,o=Yt.settings.experiments,a=Ln.prebidSettings.prebidConfig,c=null!==(e=a.bidderTimeout)&&void 0!==e?e:3e3,s=(null===(t=a.consentManagement)||void 0===t||null===(t=t.gdpr)||void 0===t?void 0:t.timeout)||0,u=(null===(n=a.consentManagement)||void 0===n||null===(n=n.usp)||void 0===n?void 0:n.timeout)||0,i.aps.bidderTimeout=c-100,i.aps.cmpTimeout=Math.max(s-100,50),i.aps.uspTimeout=Math.max(u,500),i.failsafeTimeout.default=Math.max(null!==(r=o.failsafetimeout)&&void 0!==r?r:0,c+2e3),i.failsafeTimeout.current=Math.max(i.failsafeTimeout.default,s+500),en((function(){gr(Yt.context.timeouts.failsafeTimeout.default)})),window.googletag.cmd.push((function(){window.googletag.display=li,window.googletag.pubads().disableInitialLoad(),window.googletag.pubads().enableSingleRequest(),window.googletag.pubads().setCentering(!0),window.googletag.enableServices()})),function(){var e=Yt.settings.experiments,t=e.sandbox,n=e.sandboxObserve,r="allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation";if(!1!==t){"string"==typeof t&&(r=t);var i=new MutationObserver((function(e){var t=e[0].target;t.getAttribute("sandbox")!==r&&a(t)})),o=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return"IFRAME"===e.nodeName&&e.id&&e.id.startsWith("google_ads_iframe_")&&(a(e),n&&i.observe(e,{attributes:!0,attributeFilter:["sandbox"]})),o.apply(this,arguments)}}function a(e){e.setAttribute("sandbox",r)}}(),T&&function(){try{var e;(null!==(e=Yt.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)},i=function(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))},o=function(){var e=le(Xn().m((function e(t,r,o){var a,c,s,u,d,l;return Xn().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,crypto.subtle.importKey("raw",i(r),{name:"AES-CTR"},!1,["encrypt","decrypt"]);case 1:return a=e.v,s=n,u=Uint8Array,e.n=2,crypto.subtle.decrypt({name:"AES-CTR",counter:i(o),length:128},a,i(t));case 2:return d=e.v,l=new u(d),c=s(l),e.a(2,c)}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),a=Yt.settings.yieldScriptSettings.trackerId,c=new XMLHttpRequest;c.open("GET","https://".concat(a,".ay.delivery/data/").concat(a,"/m.json")),c.onload=function(){200===c.status?o(c.responseText,r.slice(0,24),r.slice(47)).then((function(n){try{var r=JSON.parse(n);"object"===B(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(c.status)))},c.onerror=function(){t(new Error("Request failed"))},c.send()}else t(new Error("'crypto' is not available in window"))}catch(e){t(e)}})).then((function(e){Object.assign(Zn,e)})).catch((function(e){var t;ge.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,r=Yt.settings.yieldScriptSettings.publisherId,i=Ln.apsSettings.apsConfig;if(!t&&(t=!0,i.pubID=r,i.adServer="googletag",i.videoAdServer="DFP",null==i.bidTimeout&&(i.bidTimeout=Yt.context.timeouts.aps.bidderTimeout),null==(null===(e=i.gdpr)||void 0===e?void 0:e.cmpTimeout)&&(i.gdpr=i.gdpr||{},i.gdpr.cmpTimeout=Yt.context.timeouts.aps.cmpTimeout),null!=window.apstag)){var o=function(e){he(x.APS_BEFORE_INIT,e),e.deals=!0,window.apstag.init(e,(function(){for(he(x.APS_AFTER_INIT,e);Pi.length;){var t;null===(t=Pi.pop())||void 0===t||t()}zt(Pi,(function(e){return e()}))}))};try{var a,c=Ri(Ri({},i),null!==(a=window.ayManagerEnv.apsTagInit)&&void 0!==a?a:{});null!=n&&(c.params=c.params||{},c.params.us_privacy=n),o(c)}catch(e){e instanceof Error&&Ie(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()}),Yt.context.timeouts.aps.uspTimeout)):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||!Sn(i))return;var o=!r&&!n?-1!==t.getHtml().lastIndexOf("apstag.renderImp(document,"):void 0,a=Kn.find((function(e){var t=e.slotID,n=e.status;return t===i&&"targetingSet"===n}));if(!Yt.settings.experiments.skipClearBidTargeting)In(null!=a&&a.helpers.targetingKeys.length>0?a.helpers.targetingKeys:["amzniid","amznp","amznsz","amznbid","amznactt"],t);null!=a&&(o?(a.status="rendered",Kn.splice(Kn.indexOf(a),1)):delete a.status)}catch(e){e instanceof Error&&Ie(e,{description:"Failed to detect if APS bid won"})}}))})),Ee(x.URL_CHANGE,(function(e,t){e!==t&&(Kn.length=0)}))}catch(e){e instanceof Error&&Ie(e,{description:"Exception during APS initialization"})}var r}(),_&&window[m].que.push((function(){try{var e,t=Yt.settings.prebidSettings,n=t.customBidPool.enabled,r=t.persistentBidCaching,i=Ln.prebidSettings.prebidConfig;void 0===i.disableAjaxTimeout&&(i.disableAjaxTimeout=!0),void 0===i.maxRequestsPerOrigin&&(i.maxRequestsPerOrigin=6),!1!==Yt.settings.experiments.minBidCacheTTL&&(i.minBidCacheTTL=null!==(e=Yt.settings.experiments.minBidCacheTTL)&&void 0!==e?e:60),n&&(i.useBidCache=!0),window[m].setConfig(i),Yt.settings.bidderSettings.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[m].aliasBidder(n,t,i)}})),Yt.settings.bidderSettings.bidders.forEach((function(e){var t=e.alias,n=e.bidder,r=e.cpmAdjustments,i=e.storageAllowed,o=null!=t?t:n,a=window[m].bidderSettings[o]=window[m].bidderSettings[o]||{};a.bidCpmAdjustment=function(e){return e*r},a.storageAllowed=i})),window[m].onEvent("bidResponse",(function(e){var t;"teads"===((null===(t=window[m].aliasRegistry)||void 0===t?void 0:t[e.bidderCode])||e.bidderCode)&&(e.ttl=140)})),r&&Mn(),Yt.settings.experiments.disableBidLostCheck||window.googletag.cmd.push((function(){window.googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t,n=e.slot,r=e.isEmpty,i=e.isBackfill;try{var o=n.getSlotElementId();if(!Sn(o))return;var a=window[m].getBidResponsesForAdUnitCode(o).bids.find((function(e){return"targetingSet"===e.status}));if(null!=a){var c=window.googletag.pubads().getSlots().filter((function(e){return e.getTargetingKeys().some((function(t){return e.getTargeting(t).includes(a.adId)}))})),s=ce(t=c)||ie(t)||oe(t)||se(),u=s[0],d=s.slice(1);if(null!=u&&u.getSlotElementId()!==o){var l=Object.entries(u.getTargetingMap()).find((function(e){var t=ue(e,2);return t[0],t[1].includes(a.adId)}));Ie(new Error("Prebid possibly resized the wrong slot"),{description:"Ad ID: ".concat(a.adId," - (Slot id/Prebid target) - ")+"Original Ad Unit Code: ".concat(a.originalAdUnitCode," - Pooled: ").concat(a.pooled," - ")+"Matched Targetings: ".concat(JSON.stringify(l)),adUnitCodes:[o,u.getSlotElementId()]})}d.length>0&&Ie(new Error("Found multiple slots with the targeting set for the same bid"),{description:"Number of additional slots: ".concat(d.length),adUnitCodes:[o].concat(ae(d.map((function(e){return e.getSlotElementId()}))))})}null!=a&&(r||i?p(a):Yt.settings.experiments.disableBidLostCheckPartially||(n.getHtml().includes(a.adId)?f(n.getHtml(),a)||setTimeout((function(){"targetingSet"===a.status&&p(a)}),1500):setTimeout((function(){"targetingSet"===a.status&&p(a)}),500))),n.getTargeting("aym_refresh").length>0?n.clearTargeting("aym_refresh"):Ie(new Error("Setting and removing a refresh targeting!"),{adUnitCodes:[o]})}catch(e){e instanceof Error&&Ie(e,{description:"Failed to reset bid that lost to dfp"})}function f(e,t){var n;if(e.includes("ayTag.renderAd(")||e.includes('apstag.renderImp(document,"'))return!1;var r=null===(n=window.assertive)||void 0===n||null===(n=n.analytics)||void 0===n||null===(n=n.override)||void 0===n?void 0:n.creativeRegex,i="(?:(?:".concat(window[m],'\\.renderAd\\(document,|adId:*|hb_adid":\\[)|(?:pbadid=)|(?:adId=))[\'"](',"[0-9]{1,16}[0-9a-z]{8,14}",")[\"']"),o=(r?new RegExp(r):new RegExp(i,"i")).exec(e.replace(/ /g,""));return(null==o?void 0:o[1])===t.adId}function p(e){try{A&&ge.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&&Ie(e,{description:"Failed to reset bid that lost to dfp"})}}}))})),window[m].onEvent("bidWon",(function(e){e.reset&&(e.status="rendered")})),window[m].onEvent("bidWon",(function(e){var t=Yt.settings.adUnitInstances.find((function(t){return t.code===e.adUnitCode}));t&&(t.renderInfo[f.BIDDER]=e.bidder)}))}catch(e){e instanceof Error&&Ie(e,{description:"Exception during Prebid initialization"})}})),he(x.MODULE_INIT_AUCTIONS,{})}function Di(e,t){if(0!==e.length){var n,r,i=new Date-Ni,o=(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;ge.logt("🕘 Request Bids -> YM     START  - ID: ".concat(o),e),Ci[o]={prebid:!1,aps:!1},_&&window[m].que.push((function(){var t=function(e){var t=fn();return e.map((function(e){return{code:e.code,mediaTypes:(n=e.parentAdUnit,r=sn(n.sizes.filter((function(e){return ln(e)}))),i=un(n.sizes.filter((function(e){return dn(e)}))),Zt(Zt({},n.mediaTypes.includes(a.BANNER)?{banner:{sizes:r}}:{}),n.mediaTypes.includes(a.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:pn(e.parentAdUnit,t),ortb2Imp:{ext:{gpid:e.path}}};var n,r,i}))}(e),n={adUnits:t,bidsBackHandler:function(e){window.googletag.cmd.push((function(){ge.logt("📩 Request Bids -> PREBID FINISH - ID: ".concat(o," - ").concat(c?"(TIMEDOUT) - ":"","auction time:"),new Date-Ni-i),A&&(ge.log("Prebid auction bids:"),ge.table(Object.values(null!=e?e:{}).reduce((function(e,t){return[].concat(ae(e),ae(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}})))),Ci[o]&&!Ci[o].prebid&&(Ci[o].prebid=!0,_&&!Ci[o].prebid||T&&!Ci[o].aps||(delete Ci[o],s()))}))}};he(x.PREBID_BEFORE_FETCH_BIDS,n),ge.logt("🕘 Request Bids -> PREBID START  - ID: ".concat(o),"Ad Units:",t),window[m].requestBids(n)})),T&&null!=window.apstag?Pi.push((function(){if(Ci[o]){var t=e.filter((function(e){var t=Yt.settings.yieldScriptSettings.apsIgnoredAdUnits;return kt(t.include,t.exclude,Rn(e.code).placementCode)})).map((function(e){var t,n,r,i=(t=e.parentAdUnit,n=sn(t.sizes.filter((function(e){return ln(e)}))),r=un(t.sizes.filter((function(e){return dn(e)}))),Zt(Zt({},t.mediaTypes.includes(a.BANNER)?{display:{sizes:n}}:{}),t.mediaTypes.includes(a.VIDEO_OUTSTREAM)?{video:{sizes:r}}:{})),o=i.display,c=i.video;return Yt.settings.experiments.apsMultiFormat&&null!=o&&null!=c?{slotName:e.path,slotID:e.code,mediaType:"multi-format",multiFormatProperties:{display:o,video:c}}:null!=o?{slotName:e.path,slotID:e.code,sizes:o.sizes}:null!=c?{slotName:e.path,slotID:e.code,sizes:c.sizes,mediaType:"video"}:void 0}));he(x.APS_BEFORE_FETCH_BIDS,{slots:t,bidTimeout:Yt.context.timeouts.aps.bidderTimeout}),0===t.length?(ge.logt("🕘 Request Bids -> APS    SKIP!  - ID: ".concat(o),"Ad Units:",t),Ci[o]&&!Ci[o].aps&&(Ci[o].aps=!0,_&&!Ci[o].prebid||T&&!Ci[o].aps||(delete Ci[o],s()))):(ge.logt("🕘 Request Bids -> APS    START  - ID: ".concat(o),"Ad Units:",t),window.apstag.fetchBids({slots:t,bidTimeout:Yt.context.timeouts.aps.bidderTimeout},(function(e){nr(e),window.googletag.cmd.push((function(){ge.logt("📩 Request Bids -> APS    FINISH - ID: ".concat(o," - ").concat(c?"(TIMEDOUT) - ":""),"bids: ",e,"auction time:",new Date-Ni-i),Ci[o]&&!Ci[o].aps&&(Ci[o].aps=!0,_&&!Ci[o].prebid||T&&!Ci[o].aps||(delete Ci[o],s()))}))})))}})):T&&null==window.apstag&&(Ci[o].aps=!0),_||T||window.googletag.cmd.push((function(){delete Ci[o],s()})),pr((function(){window.googletag.cmd.push((function(){Ci[o]&&(T&&window.apstag&&"function"==typeof window.apstag._getSlotIdToNameMapping&&void 0===window.apstag._getSlotIdToNameMapping()||Ie(new Error("Auction timedout!"),{description:"The fail-safe timeout was hit! "+"failSafeTimeout: ".concat(Yt.context.timeouts.failsafeTimeout.current,". finished: ").concat(JSON.stringify(Ci[o])),type:"yieldmanager"}),c=!0,ge.logt("⚠️ Request Bids -> YM   TIMEDOUT - ID: ".concat(o," - auction time: "),new Date-Ni-i),delete Ci[o],s())}))}),Yt.context.timeouts.failsafeTimeout.current)}function s(){ge.logt("📩 Request Bids -> YM     FINISH - ID: ".concat(o," auction time:"),new Date-Ni-i),t&&t()}}function Li(e,t,n){0!==e.length&&window.googletag.cmd.push((function(){try{var r,i=e.map((function(e){return e.code})),o=Yt.settings.prebidSettings.customBidPool.enabled,a=null!==(r=Yt.settings.yieldScriptSettings.apsBidPool)&&void 0!==r?r:{enabled:!1,mode:"full"},c=a.enabled,s=a.mode;if(ge.log("🎇 Render Ad Unit Instances".concat(t?" (refresh)":"",":"),i),_){var u=Ln.prebidSettings.prebidConfig,d=[];if(o||u.useBidCache){var l=Gn(i);d=l.reassignedCodes}"function"==typeof window[m].setTargetingForGPTAsync&&(Yt.settings.experiments.wrapPBTargetingCallInsidePBQueue?window[m].que.push((function(){window[m].setTargetingForGPTAsync(i)})):window[m].setTargetingForGPTAsync(i),e.filter((function(e){return d.includes(e.code)})).forEach((function(e){var t=window[m].getHighestUnusedBidResponseForAdUnitCode(e.code);null!=t&&"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)}))&&(In(Object.keys(t.adserverTargeting),n),!1!==u.enableSendAllBids&&In(Object.keys(t.adserverTargeting).map((function(e){return"".concat(e,"_").concat(t.bidderCode)})),n)))}))})))}T&&null!=window.apstag&&(c&&("full"===s?ur(i):sr(i)),function(e){e.forEach((function(e){var t,n=or(e.code),r=Kn.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=Yt.settings.yieldScriptSettings.apsBidPool)&&void 0!==t&&t.enabled&&999===rr(n)&&Ie(new Error("Bid not mapped"),{adUnitCodes:[e.code],adUnitName:"[".concat(n.targeting.amzniid,", ").concat(n.targeting.amznbid,"]")}))}))}(e));var f=e.map((function(e){return e.slot})).filter((function(e){return null!=e}));if(f.length>0){f.forEach((function(e){return e.setTargeting("aym_refresh","true")})),window.googletag.pubads().refresh(f),t&&he(x.AFTER_REFRESH,i);var p=setTimeout((function(){var t=e.filter((function(e){var t=e.slot;return null!=t&&f.includes(t)}));n(t),window.googletag.pubads().removeEventListener("slotResponseReceived",g)}),6e3),g=function(e){var t=e.slot;f.includes(t)&&(clearTimeout(p),window.googletag.pubads().removeEventListener("slotResponseReceived",g))};window.googletag.pubads().addEventListener("slotResponseReceived",g)}}catch(t){t instanceof Error&&(Ie(t,{description:"Failed to execute bidsBackHandler",adUnitCodes:e.map((function(e){return e.code}))}),n(e))}}))}function ji(e){try{var t,n=Yt.settings.yieldScriptSettings.destroyFarUnits.enabled,r=[].concat(ae(e.parentAdUnit.mediaTypes.includes(a.BANNER)?sn(e.parentAdUnit.sizes.filter((function(e){return ln(e)}))):[]),ae(e.parentAdUnit.mediaTypes.includes(a.VIDEO_OUTSTREAM)?un(e.parentAdUnit.sizes.filter((function(e){return dn(e)}))):[]),ae(e.parentAdUnit.sizes.some((function(e){return"fluid"===e}))?["fluid"]:[])),i={adUnitPath:e.path,size:r.length>0?r:[1,1],div:e.code};he(x.BEFORE_DEFINE_SLOT,e.code,i);var o=null===(t=window.googletag.defineSlot(i.adUnitPath,i.size,i.div))||void 0===t?void 0:t.addService(window.googletag.pubads());he(x.AFTER_DEFINE_SLOT,e.code,o),null!=o&&(e.slot=o,T&&o.setTargeting("uam","true"),n&&(o.getCollapseEmptyDiv()||o.getDivStartsCollapsed())&&(Yt.context.isGPTCollapseSlotEnabled=!0))}catch(t){var c;if(t instanceof Error)Ie(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 xi(e){window.googletag._display(e)}function Fi(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 ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return Bi(u,"_invoke",function(n,r,i){var o,c,s,u=0,d=i||[],l=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,c=0,s=e,f.n=n,a}};function p(n,r){for(c=n,s=r,t=0;!l&&u&&!i&&t<d.length;t++){var i,o=d[t],p=f.p,g=o[2];n>3?(i=g===r)&&(c=o[4]||3,s=o[5]===e?o[3]:o[5],o[4]=3,o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(c=0,f.v=r,f.n=o[1]):p<g&&(i=n<3||o[0]>r||r>g)&&(o[4]=n,o[5]=r,f.n=g,c=0))}if(i||n>1)return a;throw l=!0,r}return function(i,d,g){if(u>1)throw TypeError("Generator is already running");for(l&&1===d&&p(d,g),c=d,s=g;(t=c<2?e:s)||!l;){o||(c?c<3?(c>1&&(f.n=-1),p(c,s)):f.n=s:f.v=s);try{if(u=2,o){if(c||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,c<2&&(c=0)}else 1===c&&(t=o.return)&&t.call(o),c<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),c=1);o=e}else if((t=(l=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,c=1,s=t}finally{u=1}}return{value:t,done:l}}}(n,i,o),!0),u}var a={};function c(){}function s(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Bi(t={},r,(function(){return this})),t),l=u.prototype=c.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Bi(e,i,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=u,Bi(l,"constructor",u),Bi(u,"constructor",s),s.displayName="GeneratorFunction",Bi(u,i,"GeneratorFunction"),Bi(l),Bi(l,i,"Generator"),Bi(l,r,(function(){return this})),Bi(l,"toString",(function(){return"[object Generator]"})),(zi=function(){return{w:o,m:f}})()}function Bi(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}Bi=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{function o(t,n){Bi(e,t,(function(e){return this._invoke(t,n,e)}))}o("next",0),o("throw",1),o("return",2)}},Bi(e,t,n,r)}function Gi(){document.head.appendChild(document.createElement("style")).innerHTML="\n            .".concat(g,"_slug:before {\n                content: 'Ad';\n                display: block;\n                width: 100%;\n                text-align: center;\n                font-size: 10px;\n                color: #6a737c;\n            }\n        "),window.googletag.cmd.push((function(){googletag.pubads().addEventListener("slotRenderEnded",(function(e){var t,n=e.slot,r=Yt.settings.yieldScriptSettings.destroyFarUnits.enabled,i=Yt.settings.adUnitInstances.find((function(e){return e.slot===n}));i&&(i.state.rendered=!0,i.state.waitingGPTRender=!1,r&&(null===(t=Yt.context.observers.farUnitsDestroy)||void 0===t||t.observe(i.containerRef)))}))}))}function Hi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={code:Un(e.code),parentPlacement:e,containerRef:document.createElement("div"),placementRef:n?void 0:t,state:{triggerFetchStep:!1,triggerRenderStep:!1,waitingAuction:!1,suspended:!1,rendered:!1,waitingLazyLoad:!1,waitingLazyRender:!1,waitingGPTRender:!1},renderInfo:fe(fe(fe(fe(fe({count:0},f.ADVERTISER,""),f.ORDER,""),f.LINE_ITEM,""),f.SIZE,""),f.BIDDER,"")};return A&&(r.state=new Proxy(r.state,{set:function(e,t,n){return e[t]!==n&&he(x.INSTANCE_STATE_CHANGED,{instance:r,prop:t,prevValue:e[t],newValue:n}),e[t]=n,!0}})),r.containerRef.id=r.code,n?t.appendChild(r.containerRef):t.insertAdjacentElement(e.position,r.containerRef),Yt.settings.adUnitInstances.push(r),ge.logt("📑 Ad unit instance injected ".concat(n?"- manual":""),[r.code]),r}function Vi(e,t){var n=Yt.settings.yieldScriptSettings.destroyFarUnits.enabled;0!==e.length&&(ge.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,r,i,o,a;if(e.state.triggerFetchStep=!1,e.state.triggerRenderStep=!1,e.state.waitingAuction=!1,e.state.suspended=!1,e.state.rendered=!1,e.state.waitingLazyLoad=!1,e.state.waitingLazyRender=!1,e.state.waitingGPTRender=!1,delete Yt.context.viewableSlots[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),null===(r=Yt.context.observers.lazyLoad)||void 0===r||r.unobserve(e.containerRef),null===(i=Yt.context.observers.lazyRender)||void 0===i||i.unobserve(e.containerRef),n)null===(o=Yt.context.observers.farUnitsDestroy)||void 0===o||o.unobserve(e.containerRef),null===(a=Yt.context.observers.farUnitsRestore)||void 0===a||a.unobserve(e.containerRef);var c=e.containerRef;c&&c.parentNode&&(c.parentNode.removeAttribute("data-manual-placement-group"),c.parentNode.removeChild(c))}catch(t){var s;if(t instanceof Error)Ie(t,{description:"Failed to remove ad unit instance ".concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(s=e.parentAdUnit)||void 0===s?void 0:s.name})}var u=Yt.settings.adUnitInstances.indexOf(e);Yt.settings.adUnitInstances.splice(u,1)})))}function Wi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Yt.settings.yieldScriptSettings.destroyFarUnits.enabled;0!==e.length&&(ge.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=bn(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,o,a,c;if(e.state.triggerFetchStep=!1,e.state.triggerRenderStep=!1,e.state.waitingAuction=!1,e.state.suspended=n,e.state.rendered=!1,e.state.waitingLazyLoad=!1,e.state.waitingLazyRender=!1,e.state.waitingGPTRender=!1,delete e.slot,delete e.parentAdUnit,delete Yt.context.viewableSlots[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),e.renderInfo=fe(fe(fe(fe(fe({count:0,obs:void 0},f.ADVERTISER,""),f.ORDER,""),f.LINE_ITEM,""),f.SIZE,""),f.BIDDER,""),null===(i=Yt.context.observers.lazyLoad)||void 0===i||i.unobserve(e.containerRef),null===(o=Yt.context.observers.lazyRender)||void 0===o||o.unobserve(e.containerRef),r)null===(a=Yt.context.observers.farUnitsDestroy)||void 0===a||a.unobserve(e.containerRef),null===(c=Yt.context.observers.farUnitsRestore)||void 0===c||c.unobserve(e.containerRef);var s=e.code;e.code=Nn(e.code);var u=document.getElementById(s);if(u&&u.parentNode){var d,l=document.createElement("div");if(n&&wn(l,e.size),u.parentNode.replaceChild(l,u),l.id=e.code,e.containerRef=l,n&&r)null===(d=Yt.context.observers.farUnitsRestore)||void 0===d||d.observe(e.containerRef)}}catch(t){var p;if(t instanceof Error)Ie(t,{description:"Failed to ".concat(n?"suspend":"reset"," Ad Unit Instance ").concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(p=e.parentAdUnit)||void 0===p?void 0:p.name}),Vi([e],"Failed to ".concat(n?"suspend":"reset"," Instance"))}})))}function qi(e){var t=e.map((function(e){return e.code}));0!==e.length&&(ge.log("🔄 Updating the viewedAt info for the following Ad Unit instances:",t),e.map((function(e){return e.slot})).filter((function(e){return null!=e})).forEach((function(e){ri(e)})))}function Yi(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null===(t=window.ayManagerEnv.checkIfAdUnitIsVisible)||void 0===t||t,i=e.map((function(e){return e.code}));if(0!==e.length){if(he(x.BEFORE_REFRESH,i,e),r){var o=[];e=e.filter((function(e){return!!Kt(e)||(o.push(e),!1)})),o.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:o,reason:F.VISIBILITY,action:k.IGNORE,ignoredStep:z.REFRESH}),Wi(o,"Instances had no visibility when trying to refresh"))}if(e.forEach((function(e){var t;delete Yt.context.viewableSlots[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),e.renderInfo=fe(fe(fe(fe(fe({count:e.renderInfo.count+1,obs:void 0},f.ADVERTISER,""),f.ORDER,""),f.LINE_ITEM,""),f.SIZE,""),f.BIDDER,"")})),e.length>0)if(n){var a=nn(e),c=a.adUnitsWithBids,s=a.adUnitsWithoutBids;ge.log("🔄 Refreshing the following Ad Unit Instances:",i,"\nThe following will be rendered right away (pre-fetch):",c.map((function(e){return e.code}))),c.length>0&&($i(c,!0),Ki(c,!0,(function(){}))),s.length>0&&Ki(s,!0,(function(e){$i(e,!0),Ki(s,!0,(function(){}))}))}else ge.log("🔄 Refreshing the following Ad Unit Instances:",i),Ki(e,!0)}}function Ji(e){return Xi.apply(this,arguments)}function Xi(){return Xi=le(zi().m((function e(t){var n,r,i,o,a,c,s,u,d;return zi().w((function(e){for(;;)switch(e.n){case 0:if(r=Yt.settings.yieldScriptSettings.destroyFarUnits,i=r.enabled,o=r.destructionOffset,a=null===(n=window.ayManagerEnv.checkIfAdUnitIsVisible)||void 0===n||n,0!==t.length){e.n=1;break}return e.a(2);case 1:if(ge.log("🎯 Trigger Render step for ad units:",t.map((function(e){return e.code}))),t.forEach((function(e){e.state.triggerRenderStep=!0})),a&&(c=[],t=t.filter((function(e){return!!Kt(e)||(c.push(e),!1)})),c.forEach((function(e){e.state.triggerRenderStep=!1})),c.length>0&&(s=c.map((function(e){return e.code})),he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:c,reason:F.VISIBILITY,action:k.IGNORE,ignoredStep:z.RENDER_TRIGGER}),ge.warn("🚫 Trigger ignored for:",s,"Reason: visibility"))),!i){e.n=3;break}return u=[],e.n=2,xt(t,function(){var e=le(zi().m((function e(t){var n,r;return zi().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,tn(t.containerRef,{nearInSight:!0,pixelsOffset:o,aboveSight:null!==(n=Yt.settings.experiments.destroyFarUnitsAboveSightOnly)&&void 0!==n&&n});case 1:return(r=!e.v)&&u.push(t),e.a(2,!r)}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:t=e.v,u.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:u,reason:F.DESTROY_FAR_UNITS,action:k.SUSPEND}),ge.log("💤 Trigger Render step ignored for:",u,"Reason: Inside destroy far units offset"),u.forEach((function(e){e.state.triggerRenderStep=!1})),u.forEach((function(e){var t;e.state.suspended=!0,null===(t=Yt.context.observers.farUnitsRestore)||void 0===t||t.observe(e.containerRef)})));case 3:return d=[],e.n=4,xt(t,function(){var e=le(zi().m((function e(t){var n,r;return zi().w((function(e){for(;;)switch(e.n){case 0:if(t.parentPlacement.lazyRender){e.n=1;break}return e.a(2,!0);case 1:return n=Ln.yieldScriptSettings.lazyTrigger.renderMargin,e.n=2,tn(t.containerRef,{nearInSight:!0,pixelsOffset:n});case 2:if(!e.v){e.n=3;break}return e.a(2,!0);case 3:return t.state.triggerRenderStep=!1,t.state.waitingLazyRender=!0,null===(r=Yt.context.observers.lazyRender)||void 0===r||r.observe(t.containerRef),d.push(t),e.a(2,!1)}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:t=e.v,d.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:d,reason:F.LAZY_RENDER,action:k.IGNORE,ignoredStep:z.RENDER_TRIGGER}),ge.func((function(){return ge.log("💤 Trigger Render step ignored for:",d.map((function(e){return e.code})),"Reason: Out of lazy render offset")}))),t.length>0&&$i(t,!1);case 5:return e.a(2)}}),e)}))),Xi.apply(this,arguments)}function Qi(e,t){return Zi.apply(this,arguments)}function Zi(){return Zi=le(zi().m((function e(t,n){var r,i,o,a,c,s,u,d;return zi().w((function(e){for(;;)switch(e.n){case 0:if(i=null===(r=window.ayManagerEnv.checkIfAdUnitIsVisible)||void 0===r||r,0!==t.length){e.n=1;break}return e.a(2);case 1:return ge.log("🎯 Trigger Fetch step for ad units:",t.map((function(e){return e.code}))),i&&(o=[],t=t.filter((function(e){return!!Kt(e)||(o.push(e),!1)})),o.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:o,reason:F.VISIBILITY,action:k.IGNORE,ignoredStep:z.FETCH_TRIGGER}),ge.func((function(){ge.warn("🚫 Trigger ignored for:",o.map((function(e){return e.code})),"Reason: visibility")})))),a=[],e.n=2,xt(t,function(){var e=le(zi().m((function e(t){var n,r;return zi().w((function(e){for(;;)switch(e.n){case 0:if(t.parentPlacement.lazyLoad){e.n=1;break}return e.a(2,!0);case 1:return n=Ln.yieldScriptSettings.lazyTrigger.fetchMargin,e.n=2,tn(t.containerRef,{nearInSight:!0,pixelsOffset:n});case 2:if(!e.v){e.n=3;break}return e.a(2,!0);case 3:return t.state.waitingLazyLoad=!0,null===(r=Yt.context.observers.lazyLoad)||void 0===r||r.observe(t.containerRef),a.push(t),e.a(2,!1)}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:t=e.v,a.length>0&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:a,reason:F.LAZY_LOAD,action:k.IGNORE,ignoredStep:z.FETCH_TRIGGER}),ge.func((function(){ge.log("💤 Trigger Fetch step ignored for:",a.map((function(e){return e.code})),"Reason: Out of lazy load offset")}))),c={},s={},u=t.reduce((function(e,t){return ki(ki({},e),{},fe({},t.code,t.parentPlacement.adUnits.map((function(e){return Yt.settings.adUnits.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).filter((function(e){var t,n;return null!==(n=c[t=e._id])&&void 0!==n?n:c[t]=Vt(e.conditions)})).map((function(e){var n,r,i=null!==(r=s[n=e._id])&&void 0!==r?r:s[n]=jn(e.path),o={code:Un(t.parentPlacement.code,e._id,Rn(t.code).instanceNumber),parentAdUnit:e,path:i,parentPlacement:t.parentPlacement};return he(x.BEFORE_DEFINE_AD_UNIT_PATH,o),o}))))}),{}),t=t.filter((function(e){return u[e.code].length>0})),u=Object.entries(u).filter((function(e){var t=ue(e,2);return t[0],t[1].length>0})).reduce((function(e,t){var n=ue(t,2),r=n[0],i=n[1];return ki(ki({},e),{},fe({},r,i))}),{}),d=Object.values(u).reduce((function(e,t){return[].concat(ae(e),ae(t))}),[]),t.forEach((function(e){e.state.suspended&&wn(e.containerRef,e.size),e.state.waitingAuction=!0})),Di(d,(function(){var e=Object.entries(u).map((function(e){var n,r,i=ue(e,2),o=i[0],a=i[1],c=t.find((function(e){return e.code===o&&e.state.waitingAuction}));if(!c)return null;if(null!==(n=window[m])&&void 0!==n&&n.libLoaded){var s=a.map((function(e){var t=window[m].getHighestUnusedBidResponseForAdUnitCode(e.code);return{code:e.code,cpm:null!=t&&"cpm"in t?t.cpm:-1,partialIntance:e}}));r=s.reduce((function(e,t){return t.cpm>e.cpm?t:e}),s[0]).partialIntance}else r=a[Math.floor(Math.random()*a.length)];return ge.log("✏️ Renaming instance from:",c.code,"to:",r.code),c.containerRef.id=r.code,c.code=r.code,c.path=r.path,c.parentAdUnit=r.parentAdUnit,c})).filter((function(e){return null!=e}));Cn(),window.googletag.cmd.push((function(){var t=e.map((function(e){try{ji(e),xi(e.code);var t=vn(e.parentPlacement.style);try{e.containerRef.style.cssText=qt(t),R&&e.containerRef.classList.add("".concat(g,"_highlight"))}catch(t){t instanceof Error&&Ie(t,{description:"Unable to parse ad unit ".concat(e.code," styles")})}return e.parentPlacement.slug&&e.containerRef&&e.containerRef.classList.add("".concat(g,"_slug")),e.state.waitingAuction=!1,e.state.triggerFetchStep=!0,e}catch(t){var n;if(t instanceof Error)Ie(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 Vi([e],"Failed to trigger Instance"),null}})).filter((function(e){return null!=e&&On(e)}));n(t)}))}));case 3:return e.a(2)}}),e)}))),Zi.apply(this,arguments)}function Ki(e,t,n){var r=Yt.settings.yieldScriptSettings.destroyFarUnits.enabled;e.forEach((function(e){var t;(e.state.waitingAuction=!0,r)&&(null===(t=Yt.context.observers.farUnitsDestroy)||void 0===t||t.unobserve(e.containerRef))})),Di(e,(function(){var r=e.filter((function(e){return e.state.waitingAuction&&On(e)}));r.forEach((function(e){e.state.waitingAuction=!1})),n?n(r):$i(r,t)}))}function $i(e,t){(e=e.filter((function(e){return!e.state.waitingGPTRender}))).forEach((function(e){var t;e.state.waitingGPTRender=!0,null===(t=Yt.context.observers.lazyRender)||void 0===t||t.unobserve(e.containerRef)})),Li(e,t,(function(e){e.forEach((function(e){e.state.rendered=!0,e.state.waitingGPTRender=!1})),qi(e)}))}function eo(){var e=window.ayManagerEnv.settings.versionInfo,t=[];Object.entries(e.splitVarsEval).forEach((function(e){var n=ue(e,2),r=n[0],i=n[1];try{var o=Yt.settings.definitions.variables[r];null!=o&&o.value.enableReporting&&Vt(o.value.conditions)&&t.push("".concat(o.name,":").concat(o.value.splitValues[i].value))}catch(e){e instanceof Error&&Ie(e,{description:'Unable to evaluate split test variable "'.concat(r,'" for hash')})}})),window.ayManagerEnv.versionInfo.splitVarsHash=t;var n=Yt.settings.yieldScriptSettings,r=n.enableTracker,i=n.trackerId,o=Ln.trackerSettings.trackerConfig;!r||window.assertive&&window.assertive.initialized||(window.assertive=o,window.assertive.entityId=i,window.assertive.debug=A,function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("script");r.src=e,r.async=n;var i=null===(t=document.getElementsByTagName("script"))||void 0===t?void 0:t[0];i&&i.parentNode?i.parentNode.insertBefore(r,i):document.head.appendChild(r)}("https://".concat(i,".ay.delivery/client-v2.js"))),window.assertiveQueue.push((function(){var e;"function"==typeof window.assertive.setConfig&&(void 0===(null===(e=window.assertive.analytics)||void 0===e||null===(e=e.integrations)||void 0===e?void 0:e.fullErrorLogging)&&window.assertive.setConfig("analytics.integrations.fullErrorLogging",!0))})),window.assertiveQueue.push((function(){if("function"==typeof window.assertive.setConfig){var e=window.ayManagerEnv.settings.versionInfo,t=[];Object.entries(e.splitVarsEval).forEach((function(e){var n=ue(e,2),r=n[0],i=n[1];try{var o=Yt.settings.definitions.variables[r];null!=o&&null!=o.value.customDimension&&o.value.enableReporting&&Vt(o.value.conditions)&&(o.value.customDimension===c.EXPERIMENTS?t.push({name:o.name,group:o.value.splitValues[i].value}):window.assertive.setConfig("analytics.custom.".concat(o.value.customDimension),"".concat(o.name,"=").concat(o.value.splitValues[i].value)))}catch(e){e instanceof Error&&Ie(e,{description:'Unable to evaluate split test variable "'.concat(r,'" for analytics')})}})),window.assertive.setConfig("analytics.custom.experiments",t,!0)}}))}function to(){Yt.debug.runDebugConditionsEvaluation=ro,Ee(x.BEFORE_PAGE_CHANGE,(function(){ro()})),ye(x.MODULE_INIT_AUCTIONS,(function(){_&&window[m].que.push((function(){if(!window[m].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[m].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){ge.error(e)}}))}}))})),R&&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=Yt.settings.adUnitInstances.find((function(e){return e.code===r&&e.parentAdUnit}));if(o&&(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(){if(!R)return;var e="",t="".concat(g,"_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(g,"_debug_styles"),n.innerHTML=e}()}function no(e,t){return t.map((function(t){try{var n=t.name,r=Vt(t.conditions),i=t.conditions.map((function(e){var n=Yt.settings.definitions.conditions[e],r=n.name,i=n.group;return{name:r,evaluation:Ht(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=Yt.settings.definitions.variables[n.variable],o=i.name,a=Bt(i._id),c=Gt(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&&Ie(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&&Ie(n,{description:"Unable to get condition evaluation for ".concat(e,": ").concat(t.name),adUnitInstanceCode:t.name}),null}})).filter((function(e){return null!=e}))}function ro(){var e=Yt.debug.conditionsEvaluation,t=Yt.settings;try{e.placements=no("Placement",t.placements),e.adUnits=no("Ad unit",t.adUnits),e.htmlUnits=no("HTML unit",t.htmlUnits),e.bidders=no("Bidder",t.bidderSettings.bidders),e.paramsGroups=no("Params Group",t.bidderSettings.params)}catch(e){e instanceof Error&&Ie(e,{description:"Exception in runDebugConditionsEvaluation API call"})}return e}var io=function(e){try{var t=e.filter((function(e){return e.isIntersecting})).map((function(e){var t=e.target;Yt.context.observers.lazyLoad.unobserve(t);var n=Yt.settings.adUnitInstances.find((function(e){return e.containerRef===t}));return null==n?(Ie(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?(Ie(new Error("Lazy load observer detected an ad unit instance that is not in the 'standby' state")),Wi([n],"Non standby instance inside lazy load observer"),null):n})).filter((function(e){return null!=e}));t.length>0&&(ge.log("💤 Firing lazy fetch ad units:",t),t.forEach((function(e){e.state.waitingLazyLoad=!1})),Vr(void 0,t))}catch(e){e instanceof Error&&Ie(e,{description:"Exception in Lazy Load Units observer"})}},oo=function(e){try{var t=e.filter((function(e){return e.isIntersecting})).map((function(e){var t=e.target;Yt.context.observers.lazyRender.unobserve(t);var n=Yt.settings.adUnitInstances.find((function(e){return e.containerRef===t}));return null==n?(Ie(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?(Ie(new Error("Lazy render observer detected an ad unit instance that is not in the 'standby' state"),{adUnitInstanceCode:n.code}),Wi([n],"Non standby instance inside lazy render observer"),null):n})).filter((function(e){return null!=e&&On(e)}));t.length>0&&(ge.log("💤 Firing lazy render ad units:",t),t.forEach((function(e){e.state.waitingLazyRender=!1})),Vr(void 0,t))}catch(e){e instanceof Error&&Ie(e,{description:"Exception in Lazy Load Units observer"})}},ao=function(e){try{var t=e.filter((function(e){return!e.isIntersecting&&(!Yt.settings.experiments.destroyFarUnitsAboveSightOnly||e.boundingClientRect.bottom<=0)})).map((function(e){var t=e.target;Yt.context.observers.farUnitsDestroy.unobserve(t);var n=Yt.settings.adUnitInstances.find((function(e){return e.containerRef===t}));if(null==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&&(he(x.STATE_EXCEPTION,{type:"adUnitInstances",items:t.slice(),reason:F.DESTROY_FAR_UNITS,action:k.SUSPEND}),Wi(t,"Destroy far units feature",!0))}catch(e){e instanceof Error&&Ie(e,{description:"Exception in Far Units Destroy observer"})}},co=function(e){try{var t=e.filter((function(e){return e.isIntersecting})).map((function(e){var t=e.target;Yt.context.observers.farUnitsRestore.unobserve(t);var n=Yt.settings.adUnitInstances.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 Yt.settings.adUnits.find((function(t){return t._id===e}))})).filter((function(e){return null!=e})).some((function(e){return Vt(e.conditions)}))}));t.length>0&&(ge.log("🔙 Restoring the following ad units:",t),t.forEach((function(e){e.state.suspended=!1})),Vr(void 0,t))}catch(e){e instanceof Error&&Ie(e,{description:"Exception in Far Units Restore observer"})}};!function(){var e,t,n,r,i,o;ge.group("Yield Manager - Initializing..."),ge.log("pbjs loaded:",null!==(e=null===(t=window[m])||void 0===t?void 0:t.libLoaded)&&void 0!==e&&e),ge.log("Ad units:",Yt.settings.adUnits),ge.log("HTML units:",Yt.settings.htmlUnits),ge.groupEnd(),A&&to(),di(),function(){var e;ye(x.MODULE_INIT_ALL,(function(){for(;window.ayManagerEnv.cmd.length;)t(window.ayManagerEnv.cmd.pop());zt(window.ayManagerEnv.cmd,(function(e){return t(e)}))})),window.ayManagerEnv._cmd=null!==(e=window.ayManagerEnv._cmd)&&void 0!==e?e:[];for(;window.ayManagerEnv._cmd.length;)t(window.ayManagerEnv._cmd.pop());function t(e){try{"function"==typeof e&&e()}catch(e){e instanceof Error&&Ie(e,{description:"Exception in queued YM command"})}}zt(window.ayManagerEnv._cmd,(function(e){return t(e)}))}(),eo(),Mi(),function(){var e=history,t=e.pushState,n=e.replaceState,r=window.location.pathname;function i(){var e=window.location.pathname;he(x.URL_CHANGE,r,e),e!==r&&(r=e)}history.pushState=function(){t.apply(history,arguments),i()},history.replaceState=function(){n.apply(history,arguments),i()},window.addEventListener("popstate",(function(){i()}))}(),n=Yt.settings.yieldScriptSettings.destroyFarUnits,r=Ln.yieldScriptSettings.lazyTrigger,i=r.fetchMargin,o=r.renderMargin,Yt.context.observers.lazyLoad=new IntersectionObserver(io,{rootMargin:"".concat(i,"px")}),Yt.context.observers.lazyRender=new IntersectionObserver(oo,{rootMargin:"".concat(o,"px")}),n.enabled&&(Yt.context.observers.farUnitsDestroy=new IntersectionObserver(ao,{rootMargin:"".concat(n.destructionOffset,"px")}),n.restorationOffset>0&&(Yt.context.observers.farUnitsRestore=new IntersectionObserver(co,{rootMargin:"".concat(n.restorationOffset,"px")}))),Gi(),ni(),function(){Br({skipAdUnits:!0}),Hr(l.SCRIPT_LOADED,!0,!0),$t("ready",(function(){Br(),Hr(l.WINDOW_READY),en((function(e){gr(Yt.context.timeouts.failsafeTimeout.default),e&&Hr(l.CONSENT_INITIALIZATION)})),xr(Gr)})),$t("loaded",(function(){Hr(l.WINDOW_LOADED)})),Ee(x.URL_CHANGE,(function(){Yt.context.isChangePagePending=!0})),Ee(x.BEFORE_PAGE_CHANGE,(function(){Yt.context.isChangePagePending=!1}));var e=Yt.settings.yieldScriptSettings.spa,t=void 0===e?{mode:p.MANUAL}:e,n=wt(Br,50);t.mode!==p.MANUAL&&Ee(x.URL_CHANGE,(function(){requestAnimationFrame((function(){n({refresh:t.mode===p.REFRESH,reset:t.mode===p.RESET})}))})),he(x.MODULE_INIT_LIFE_CYCLE,{})}(),he(x.MODULE_INIT_ALL,{})}()}();
