(()=>{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var t="cc_dm";const r={tagConfigUrl:"https://na.nawpush.com/tags",version:"3.122.1",devModeQueryStringParameter:t,adManagerWindowNamespace:"AdManager",helpersWindowNamespace:"_CAdM",overrideConfigWindowNamespace:"__adm_override",tagIdIdentifier:"data-admpid",noAutostartIdentifier:"data-admman",customDomainIdentifier:"data-custom-domain",devMode:window.location.search.includes("".concat(t,"=1")),auctionUrl:"https://ssp.zog.link/get/",initTrackingUrl:"https://metricswpsh.com",subCookieName:"source",subQueryStringKey1:"promo",subQueryStringKey2:"source",vastProxyAuctionRoute:"/a/",vastProxyWrappedUrlPath:"/c/",adManagerTrackingProxyPath:"/api/track",sentryDSNUrl:"MISSING_ENV_VAR".SENTRY_DSN,buildEnv:"production",buildUrl:"https://js.wpadmngr.com/static/adManager",isMB:!!parseInt("0",10),isOnCl:!!parseInt("0",10),sharedStorageUrl:"https://storage.multstorage.com/log/count.html",keywordsServiceUrl:"https://ntvpforever.com/keywords",cabsId:parseInt("1",10)};class n{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.logPrefix=e,this.silentMode=t}info(){for(var e=arguments.length,t=new Array(e),r=0;r{var o="".concat(e).concat(r,"=").concat(encodeURIComponent(t[r]));return n!==i.length-1&&(o+="&"),o}),"");return"".concat(e,"?").concat(r)}(d,e.params),!0),l.timeout=e.timeout,l.onreadystatechange=function(){if(l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in l?l.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{var[r,n]=t.split(": ");return r?o(o({},e),{},{[null==r?void 0:r.toLowerCase()]:n}):e}),{}):null,i={data:e.responseType&&"text"!==e.responseType?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l};!function(e,t,r){!r.status||r.status>=200&&r.status<300?e(r):t(s("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,i),l=null}},l.onabort=function(){l&&(r(s("Request aborted",e,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(s("Network Error",e,null,l)),l=null},l.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(s(t,e,"ECONNABORTED",l)),l=null},"setRequestHeader"in l&&c(u,(function(e,t){void 0===a&&"content-type"===t.toLowerCase()?delete u[t]:l.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(l.withCredentials=!!e.withCredentials),e.responseType)try{l.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}a||(a=null),l.send(a)}))}function l(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}var d=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),u(e).then((function(e){return e.data=l(e.data),e}),(function(e){return e&&e.response&&(e.response.data=l(e.response.data)),Promise.reject(e)}))}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(o(o({},t),{},{url:e,method:"get"}))}post(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(o(o({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}};function h(e){return new Promise((t=>{e||t({status:"error"});var r=new Image;r.src=e,r.crossOrigin="anonymous",r.onload=()=>t({status:"ok"}),r.onerror=()=>t({status:"error"})}))}function p(e){return"[object Array]"===Object.prototype.toString.call(e)}function f(e){return null!==e&&"object"==typeof e}function m(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function v(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),p(e))for(var r=0,n=e.length;r0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=i+r?(i=a,[4,_(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2,n]}}))}))}function C(e){e.then(void 0,(function(){}))}function T(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function O(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function P(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function I(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=E(e=O(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=E(e=O(e,[3301882366,444984403]),[0,e[0]>>>1])}function D(e){return parseInt(e)}function N(e){return parseFloat(e)}function M(e,t){return"number"==typeof e&&isNaN(e)?t:e}function R(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function H(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function L(e,t,r){var n=Object.keys(e).filter((function(e){return!function(e,t){for(var r=0,n=e.length;r=4}function B(){var e=window,t=navigator;return R(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function z(){var e=window,t=navigator;return R(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}var W={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var G={fonts:function(){var e=this;return U((function(t,r){var n=r.document;return y(e,void 0,void 0,(function(){var e,t,r,i,o,a,s,c,u,l,d;return S(this,(function(h){switch(h.label){case 0:return(e=n.body).style.fontSize="48px",(t=n.createElement("div")).style.setProperty("visibility","hidden","important"),r={},i={},o=function(e){var r=n.createElement("span"),i=r.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,r.textContent="mmMwWLliI0O&1",t.appendChild(r),r},a=function(e,t){return o("'".concat(e,"',").concat(t))},s=function(){for(var e={},t=function(t){e[t]=F.map((function(e){return a(t,e)}))},r=0,n=q;r')}((function(e,t){for(var r={},n={},i=0,o=Object.keys(W);i=3||r.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&r.push(i.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return M(N(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return M(D(e),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r},hardwareConcurrency:function(){return M(D(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var r=(new t).resolvedOptions().timeZone;if(r)return r}var n,i=(n=(new Date).getFullYear(),-Math.max(N(new Date(n,0,1).getTimezoneOffset()),N(new Date(n,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(Math.abs(i))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(V()||(e=window,t=navigator,R(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!V())))try{return!!window.indexedDB}catch(e){return!0}},platform:function(){var e,t=navigator.platform;return"MacIntel"!==t||!z()||R(["safari"in(e=window),!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3?t:function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return R(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone"},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],r=0;r>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",r=0,n=Object.keys(e).sort();r'
'))).join(""),t.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),document.body.appendChild(t),e))if(!document.querySelector("#".concat(r)))return!0;return!1}();return document.querySelectorAll("._adbchkr").forEach((e=>document.body.removeChild(e))),e}function ee(){return te.apply(this,arguments)}function te(){var e;return e=function*(){var{useScriptLoadCheck:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(window.self!==window.top)return!1;var t=X(),r=e&&(yield new Promise((e=>{var t=document.createElement("script");t.async=!0,t.src="https://js.capndr.com/advertising.js",t.onload=()=>e(!1),t.onerror=()=>e(!0),document.head.appendChild(t)})));return r||t},te=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Z(o,n,i,a,s,"next",e)}function s(e){Z(o,n,i,a,s,"throw",e)}a(void 0)}))},te.apply(this,arguments)}function re(e){return"string"==typeof e}var ne={write:function(e,t,r,n,i,o){var a=[];a.push("".concat(e,"=").concat(encodeURIComponent(t))),"number"==typeof r&&a.push("expires="+new Date(r).toUTCString()),re(n)&&a.push("path="+n),re(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}};function ie(e){var t,r="0123456789abcdef";function n(e){var t,n="";for(t=0;t<=3;t++)n+=r.charAt(e>>8*t+4&15)+r.charAt(e>>8*t&15);return n}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,o,a){return i(function(e,t){return e<>>32-t}(i(i(t,e),i(n,a)),o),r)}function a(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}var l,d,h,p,f=function(e){var t,r=1+(e.length+8>>6),n=new Array(16*r);for(t=0;t<16*r;t++)n[t]=0;for(t=0;t>2]|=e.charCodeAt(t)<>2]|=128<localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{ae.set("__try",1),ae.get("__try"),ae.remove("__try")}catch(e){ae=oe}var se=ae;class ce{constructor(){this.localStoreKey="_ytbaсс",this.betweenUpdateDelayMins=60,this.authStatus=!1,this.nextUpdate=null}lazyAccountCheck(){return!!this.authStatus||(this.detectYouTubeAuth().then((e=>{this.setYoutubeAuthMarker(e,e?null:Date.now())})).catch((()=>null)),!1)}setYoutubeAuthMarker(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.authStatus=e,this.nextUpdate=t,se.set(this.localStoreKey,JSON.stringify({authStatus:e,nextUpdate:t}))}isUpdatePossible(){return!this.nextUpdate||function(e,t){if(!e||!t)return null;var r=60*t*1e3;return Date.now()-e>r}(this.nextUpdate,this.betweenUpdateDelayMins)}loadYoutubeAuthMarker(){var e=se.get(this.localStoreKey);if(e)try{var t=JSON.parse(e);this.authStatus=t.authStatus,this.nextUpdate=t.nextUpdate}catch(e){}}detectYouTubeAuth(){var e=document.createElement("img");return e.referrerPolicy="no-referrer",e.src="https://accounts.google.com/ServiceLogin?passive=true&continue=https%3A%2F%2Fm.youtube.com%2Ffavicon.ico&uilel=3&hl=en&service=youtube",new Promise((t=>{e.onload=()=>{t(!0)},e.onerror=()=>{t(!1)}}))}}function ue(e){var t,r="0123456789abcdef";function n(e){var t,n="";for(t=0;t<=3;t++)n+=r.charAt(e>>8*t+4&15)+r.charAt(e>>8*t&15);return n}function i(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,o,a){return i(function(e,t){return e<>>32-t}(i(i(t,e),i(n,a)),o),r)}function a(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}var l,d,h,p,f=function(e){var t,r=1+(e.length+8>>6),n=new Array(16*r);for(t=0;t<16*r;t++)n[t]=0;for(t=0;t>2]|=e.charCodeAt(t)<>2]|=128<sessionStorage.setItem(e,t),get:e=>sessionStorage.getItem(e),remove:e=>sessionStorage.removeItem(e)};try{me.set("__try",1),me.get("__try"),me.remove("__try")}catch(e){me=fe}var ve=me;var ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{};var we,be,ye=(we=function(e,t){!function(r,n){var i="function",o="undefined",a="object",s="string",c="major",u="model",l="name",d="type",h="vendor",p="version",f="architecture",m="console",v="mobile",g="tablet",w="smarttv",b="wearable",y="embedded",S="Amazon",k="Apple",_="ASUS",x="BlackBerry",A="Browser",C="Chrome",T="Firefox",O="Google",P="Huawei",I="LG",E="Microsoft",j="Motorola",D="Opera",N="Samsung",M="Sharp",R="Sony",H="Xiaomi",L="Zebra",U="Facebook",F="Chromium OS",q="Mac OS",V=function(e){for(var t={},r=0;r0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):n:this[c[0]]=l?c[1].call(this,l,c[2]):n:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):n):this[c]=l||n;d+=2}},K=function(e,t){for(var r in t)if(typeof t[r]===a&&t[r].length>0){for(var i=0;i2&&(e[u]="iPad",e[d]=g),e},this.getEngine=function(){var e={};return e[l]=n,e[p]=n,G.call(e,w,y.engine),e},this.getOS=function(){var e={};return e[l]=n,e[p]=n,G.call(e,w,y.os),S&&!e[l]&&b&&"Unknown"!=b.platform&&(e[l]=b.platform.replace(/chrome os/i,F).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return w},this.setUA=function(e){return w=typeof e===s&&e.length>350?W(e,350):e,this},this.setUA(w),this};Q.VERSION="1.0.35",Q.BROWSER=V([l,p,c]),Q.CPU=V([f]),Q.DEVICE=V([u,h,d,m,v,w,g,b,y]),Q.ENGINE=Q.OS=V([l,p]),e.exports&&(t=e.exports=Q),t.UAParser=Q;var $=typeof r!==o&&(r.jQuery||r.Zepto);if($&&!$.ua){var Z=new Q;$.ua=Z.getResult(),$.ua.get=function(){return Z.getUA()},$.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var r in t)$.ua[r]=t[r]}}}("object"==typeof window?window:ge)},we(be={exports:{}},be.exports),be.exports);var Se={write:function(e,t,r,n,i,o){var a=[];a.push("".concat(e,"=").concat(encodeURIComponent(t))),"number"==typeof r&&a.push("expires="+new Date(r).toUTCString()),de(n)&&a.push("path="+n),de(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}},ke="source",_e="promo",xe="source";var Ae="_adm_erd",Ce="_adm_erdso";function Te(e,t){var r;try{r=window.top!==window&&window.location.origin===window.top.location.origin&&3826===t}catch(e){r=!1}Ae=r?Ce:Ae;var{referrer:n}=document,i=e.getItem(Ae),o=n.split("/")[2]||"",a="";return a=""===i||i?i:o,e.setItem(Ae,a),a}var Oe=new pe,Pe={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{Pe.set("__try",1),Pe.get("__try"),Pe.remove("__try")}catch(e){Pe=Oe}var Ie=Pe;function Ee(){var e="cb_gyro",t=Ie.get(e)||0;return t||window.addEventListener("deviceorientation",(t=>{null!==t.alpha&&Ie.set(e,1)})),Number(t)}function je(e){var t,r;return{plugins:(null===(t=e.components.plugins.value)||void 0===t?void 0:t.reduce(((e,t)=>(e.push(t.name),e)),[]))||[],languages:(null===(r=e.components.languages.value)||void 0===r?void 0:r.reduce(((e,t)=>(t.forEach((t=>{e.includes(t)||e.push(t)})),e)),[]))||[],fonts:e.components.fonts.value||[],fontPreferences:e.components.fontPreferences.value||{},platform:e.components.platform.value||"",colorDepth:e.components.colorDepth.value||0,deviceMemory:e.components.deviceMemory.value||0,hardwareConcurrency:e.components.hardwareConcurrency.value||0,indexedDB:e.components.indexedDB.value||!1,sessionStorage:e.components.sessionStorage.value||!1,localStorage:e.components.localStorage.value||!1,cookiesEnabled:e.components.cookiesEnabled.value||!1,colorGamut:e.components.colorGamut.value||""}}function De(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t{var o="".concat(e).concat(r,"=").concat(encodeURIComponent(t[r]));return n!==i.length-1&&(o+="&"),o}),"");return"".concat(e,"?").concat(r)}(c,e.params),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in s?s.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{var[r,n]=t.split(": ");return r?Ne(Ne({},e),{},{[null==r?void 0:r.toLowerCase()]:n}):e}),{}):null,i={data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:e,request:s};!function(e,t,r){!r.status||r.status>=200&&r.status<300?e(r):t(He("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,i),s=null}},s.onabort=function(){s&&(r(He("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(He("Network Error",e,null,s)),s=null},s.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(He(t,e,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&he(a,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete a[t]:s.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}o||(o=null),s.send(o)}))}function Ue(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}var Fe=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),Le(e).then((function(e){return e.data=Ue(e.data),e}),(function(e){return e&&e.response&&(e.response.data=Ue(e.response.data)),Promise.reject(e)}))}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(Ne(Ne({},t),{},{url:e,method:"get"}))}post(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(Ne(Ne({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}};function qe(e,t){if(!e||!t)return null;var r=60*t*1e3;return Date.now()-e>r}function Ve(){return new Promise((function(e,t){var r,n,i="Unknown";function o(t){e({isPrivate:t,browserName:i})}function a(e){return e===eval.toString().length}function s(){void 0!==navigator.maxTouchPoints?function(){try{var e=window.indexedDB.open("test",1);e.onupgradeneeded&&(e.onupgradeneeded=function(e){var t=e.target.result;try{t.createObjectStore("test",{autoIncrement:!0}).put(new Blob),o(!1)}catch(e){/BlobURLs are not yet supported/.test(e.message)?o(!0):o(!1)}}),o(!1)}catch(e){o(!1)}}():function(){var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch(e){return o(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch(e){return o(!0)}o(!1)}()}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(e,t){var r;o(t<(void 0!==(r=window).performance&&void 0!==r.performance.memory&&void 0!==r.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824))}),(function(e){t(new Error("detectIncognito somehow failed to query storage quota: "+e.message))}))}function u(){void 0!==Promise&&void 0!==Promise.allSettled?c():(0,window.webkitRequestFileSystem)(0,1,(function(){o(!1)}),(function(){o(!0)}))}void 0!==(n=navigator.vendor)&&0===n.indexOf("Apple")&&a(37)?(i="Safari",s()):function(){var e=navigator.vendor;return void 0!==e&&0===e.indexOf("Google")&&a(33)}()?(r=navigator.userAgent,i=r.match(/Chrome/)?void 0!==navigator.brave?"Brave":r.match(/Edg/)?"Edge":r.match(/OPR/)?"Opera":"Chrome":"Chromium",u()):void 0!==document.documentElement&&void 0!==document.documentElement.style.MozAppearance&&a(37)?(i="Firefox",o(void 0===navigator.serviceWorker)):void 0!==navigator.msSaveBlob&&a(39)?(i="Internet Explorer",o(void 0===window.indexedDB)):t(new Error("detectIncognito cannot determine the browser"))}))}var Be="__adm-vid",ze="__adm-vid_new",We=10080;function Ge(){return Ge=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Me(o,n,i,a,s,"next",e)}function s(e){Me(o,n,i,a,s,"throw",e)}a(void 0)}))}}((function*(e,t,r){var n=window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,i=yield Ve();try{var o,a=yield Fe.post("https://fp.metricswpsh.com/fp?tag_id=".concat(e),Ne(Ne({timezoneOlson:n,incognito:i.isPrivate},t.components),{},{brand:r.device.vendor||"",device:r.device.model||"",os_type:r.device.type,os_family:r.os.name}),{withCredentials:!0});return{fp:a.data.fp,fp_str:(null==a||null===(o=a.data)||void 0===o?void 0:o.fp_str)||""}}catch(e){return console.warn(e),null}})),Ge.apply(this,arguments)}function Ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=function(){var e=JSON.parse(Ie.get(Be)),t=JSON.parse(Ie.get(ze));return t&&!qe(t.createdAt,We)?{fp:t.fpValue,fp_str:t.fpValueStr||""}:e&&"object"==typeof e.fpValue&&null!==e.fpValue&&!qe(e.createdAt,We)?{fp:e.fpValue.fp,fp_str:e.fpValue.fp_str||""}:e&&"number"==typeof e.fpValue&&!qe(e.createdAt,We)?{fp:e.fpValue,fp_str:e.fpValueStr||""}:null}();return n||function(e,t,r){return Ge.apply(this,arguments)}(e,t,r).then((e=>{return t=e,Ie.remove(Be),void Ie.set(ze,JSON.stringify({fpValue:t.fp,fpValueStr:t.fp_str,createdAt:Date.now()}));var t})),n}var Je={utm_source:"utm1",utm_medium:"utm2",utm_campaign:"utm3",utm_content:"utm4",campaign:"camp"};var Ye="cc_dm",Qe={devModeQueryStringParameter:Ye,utm_mapping:!1,iabcat:25,iab_extended:"25-3",label:1,script_defer:!1,tagId:null,default_keywords:[]};function $e(e){var t,{visitorId:r,isAdBlock:n,isTubeSite:i,fingerprint:o,userAgentData:a={},tagAbVersion:s="a",magmaClickResolverEnable:c,config:u=Qe,v2:l=0,siteId:d=null,isGoogleTopicsDisallowed:h=!1,sessionService:p}=e,f=(t=location.search.split("?"))[t.length-1].split("&").reduce(((e,t)=>{var[r,n]=t.split("=");return r&&(e[r]=n),e}),{}),m=Boolean(window.web3||window.ethereum),v=function(){var{title:e}=document,t=document.head.querySelector("meta[name=keywords]"),r=document.head.querySelector("meta[name=description]"),n=e;return[t,r].forEach((e=>{n+=e?" ".concat(e.content):""})),n.trim().replace(/\s?[,.:;!?/|&-]?\s/g,(e=>"&"===e||"|"===e?"":","))}(),g=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="_tp_",i={};return e.forEach((e=>{var o=Ie.get(n+e),a=t[e]||t[Je[e]]||t[r[e]];i[e]=a||o||"",a&&Ie.set(n+e,a)})),i}(["utm_source","utm_medium","utm_campaign","utm_content","campaign"],f,u.utm_mapping),w=function(e){var t=0;return null!==Se.read(ke)&&(t=Se.read(ke)),[_e,xe].forEach((r=>{e[r]&&(Se.write(ke,e[r],Date.now()+31536e6),t=e[r])})),Number(t)}(f);c&&0===w&&g.campaign&&(g.utm_source="mck",g.utm_medium=g.campaign,g.utm_campaign=d,w=Number(d));var b,y,S,k=h?[]:function(){try{var e,t,r="topsids";if("browsingTopics"in document&&null!==(e=document)&&void 0!==e&&null!==(t=e.featurePolicy)&&void 0!==t&&t.allowsFeature("browsing-topics")){document.browsingTopics().then((e=>{var t=e.map((e=>e.topic));Ie.set(r,JSON.stringify(t))}));var n=Ie.get(r);return n&&JSON.parse(n)||[]}return[]}catch(e){return[]}}(),_=((b=(new ye).getResult()).device.type=b.device.type||"desktop",b),x=Ke(u.tagId,o,_);return{userId:r,isAdBlock:n,isMetaMaskActive:m,isSslProtocol:"https:"===window.location.protocol,resolution:[+(screen&&screen.width||window.outerWidth),+(screen&&screen.height||window.outerHeight)],labels:ve.get("labels")||"",sub:w,title:window.document.title,tags:"",debugMode:"1"===f[Ye],holdableQSParams:g,qs:f,ua:_,timezone:Math.trunc((new Date).getTimezoneOffset()/-60),timezoneOlson:window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,entryReferrerDomain:Te(p,u.tagId),magmaSourceId:Se.read("magma_source"),keywords:encodeURIComponent(v),isAccelerometer:(y="cb_acce",S=Ie.get(y)||0,S||window.addEventListener("devicemotion",(e=>{null!==e.accelerationIncludingGravity.x&&Ie.set(y,1)})),Number(S)),isGyroscope:Ee(),isTubeSite:i,fingerprintParams:je(o),page:encodeURIComponent(window.location.href).replace(/%2F/g,"/"),userAgentData:a,visitorId:x?x.fp:null,visitorIdString:x?x.fp_str:"",v2:l,iabCategory:u.iabcat,iabCategoryExtended:u.iab_extended,mainCategory:u.label,scriptDefer:u.script_defer,tagAbVersion:s,defaultKeywords:u.default_keywords,topics:k}}function Ze(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Xe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Ze(o,n,i,a,s,"next",e)}function s(e){Ze(o,n,i,a,s,"throw",e)}a(void 0)}))}}var et=new class{constructor(){this.state={}}set(e,t){this.state[e]=t}get(e){return this.state[e]||null}remove(e){delete this.state[e]}},tt={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{tt.set("__try",1),tt.get("__try"),tt.remove("__try")}catch(e){tt=et}var rt=tt;class nt{constructor(e){this.iframeUrl=e,this.iframe=null,this.iframeLoaded=!1,this.eventsQueue=[],this.messagesQueue={}}init(){this.iframe=document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.iframeUrl,document.body.appendChild(this.iframe),this.iframe.onload=()=>{this.iframeLoaded=!0,this.eventsQueue.forEach((e=>{this.iframe.contentWindow.postMessage(e,"*")})),this.eventsQueue=[]},window.addEventListener("message",(e=>this.handleIframeResponse(e.data)))}handleIframeResponse(e){var{messageId:t,value:r}=e;t&&this.messagesQueue[t]&&(this.messagesQueue[t].resolve(r),clearTimeout(this.messagesQueue[t].rejectTimeout),delete this.messagesQueue[t])}send(e,t,r){return new Promise(((n,i)=>{var o=(Math.random()+1).toString(36).substring(5);this.iframeLoaded?this.iframe.contentWindow.postMessage({action:e,messageId:o,key:t,value:r},"*"):this.eventsQueue.push({action:e,messageId:o,key:t,value:r}),this.messagesQueue[o]={resolve:e=>n(e),rejectTimeout:setTimeout((()=>i(new Error("iFrame did not respond"))),50)}}))}set(e,t){var r=this;return Xe((function*(){rt.set(e,JSON.stringify(t)),yield r.send("SET",e,t)}))()}get(e){var t=this;return Xe((function*(){return yield t.synchronize(e)}))()}remove(e){var t=this;return Xe((function*(){rt.remove(e),yield t.send("REMOVE",e),yield t.synchronize(e)}))()}clear(){return this.send("CLEAR")}synchronize(e){var t=this;return Xe((function*(){var r,n;try{r=yield t.send("GET",e);var i=rt.get(e)||null;n=i?JSON.parse(i):null}catch(e){n=null}if(!r&&n){try{yield t.send("SET",e,n)}catch(e){}return n}return r?(rt.set(e,JSON.stringify(r)),r):null}))()}}function it(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t{var o="".concat(e).concat(r,"=").concat(encodeURIComponent(t[r]));return n!==i.length-1&&(o+="&"),o}),"");return"".concat(e,"?").concat(r)}(c,e.params),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in s?s.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{var[r,n]=t.split(": ");return r?ot(ot({},e),{},{[null==r?void 0:r.toLowerCase()]:n}):e}),{}):null,i={data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:e,request:s};!function(e,t,r){!r.status||r.status>=200&&r.status<300?e(r):t(ut("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,i),s=null}},s.onabort=function(){s&&(r(ut("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(ut("Network Error",e,null,s)),s=null},s.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(ut(t,e,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&<(a,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete a[t]:s.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}o||(o=null),s.send(o)}))}function ht(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}var pt=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),dt(e).then((function(e){return e.data=ht(e.data),e}),(function(e){return e&&e.response&&(e.response.data=ht(e.response.data)),Promise.reject(e)}))}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(ot(ot({},t),{},{url:e,method:"get"}))}post(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(ot(ot({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}},ft="_kwrds",mt={keywords:{},pages_count:0};class vt{constructor(e){this.keywordsHistory=mt,this.sharedStorage=e}mapForAuction(e){var t={keywords:[],pages_count:e.pages_count};return t.keywords=Object.keys(e.keywords).map((t=>({keyword:t,counter:e.keywords[t].length||0}))),t}mapForManager(e){var t=Date.now();return{keywords:e.reduce(((e,r)=>(e[r]||(e[r]=[]),e[r].push(t),e)),{}),pages_count:1}}filterHistoryFromExpired(e){var t=new Set,{keywords:r}=e;return Object.keys(r).forEach((e=>{var n=r[e];r[e]=n.filter((e=>{var r=e+2592e5{var[t,n]=e;r[t]||(r[t]=[]),r[t].push(...n)})),r}getCurrentHistory(){var e=this;return st((function*(){if(!e.keywordsHistory.pages_count){var t=yield e.getFromStorage();e.keywordsHistory=t}return e.mapForAuction(e.keywordsHistory)}))()}asyncProcessKeywords(e,t,r){var n=this;return st((function*(){try{var i=yield n.getFromAuctionAndMap(e,t,r),o=yield n.getFromStorage(),a=n.mergeKeywords(o.keywords,i.keywords),s=o.pages_count+i.pages_count;n.keywordsHistory={keywords:a,pages_count:s},n.sharedStorage.set(ft,JSON.stringify(n.keywordsHistory)).catch((()=>null))}catch(e){return null}}))()}getFromStorage(){var e=this;return st((function*(){var t,r=yield e.sharedStorage.get(ft).catch((()=>null));try{t=JSON.parse(r)||mt,t=e.filterHistoryFromExpired(t)}catch(e){t=mt}return t}))()}getFromAuctionAndMap(e,t,r){var n=this;return st((function*(){var{data:i}=yield pt.post(e,{ad_tags:t,page:r}).catch((()=>({}))),o=mt;return i&&i.keywords&&i.keywords.length&&(o=n.mapForManager(i.keywords)),o}))()}}var gt=864e5,wt={popunder:{js:"pjs.$domain/popunder-admanager/build.js",auction:"p.$domain/get"},in_stream_ad:{js:"vjs.$domain/in-stream-ad-admanager/build.js",auction:"v.$domain/vast"},banner:{js:"bjs.$domain/banner-admanager/build.js",auction:"b.$domain/get"},interstitial:{js:"sjs.$domain/interstitial-admanager/build.js",auction:"s.$domain/get"},native:{js:"njs.$domain/npc/sdk/native.js",auction:"n.$domain/in/multy"},inpage:{js:"ijs.$domain/npc/sdk/wpu/npush.js",auction:"i.$domain/in/multy"},push:{js:"wjs.$domain/npc/sdk/push.js?v=1",auction:"w.$domain/in/multy"}},bt=["inpage","native","push","popunder","resale-popunder","banner","extension","calendar","interstitial","direct_link"];function yt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(r&&!bt.includes(r))return e;return e.replace(".js",{modern:".m.js",legacy:".l.js"}[t])}var St=["inpage","native","calendar","popunder"],kt=[360974],_t="noModule"in document.createElement("script");function xt(e){var{label:t,iabcat:r,isPhpLoaderActive:n,adFormats:i,hashHelpers:o,isAdBlock:a,legacySpotsExtend:s,hashService:c}=e;return i.map((e=>{var{createHashPath:i}=o,u=_t?"modern":"legacy",l=e.assets["".concat(u,"_js")],d=null!=l?l:function(e,t,r){return!bt.includes(e.type)||r?e.assets.js:e.assets.js.map((e=>e.includes(".m.js")||e.includes(".l.js")?e:yt(e,t)))}(e,u,n);e.assets.js=d.map((t=>{var r={src:t,type:u};return!n&&i&&St.includes(e.type)&&(r.src=c.convertToHashedUrl(r.src,i)),r}));var h=s[e.type];return e.spots=e.spots.map(((o,s)=>(o.config.label=t,o.config.iabcat=r,o.config.adm_loader=!!i||n,"banner"===e.type&&"1x1"===o.config.options.size&&(o.delay_ms=3e3),kt.includes(o.config.spot_id)&&"in_stream_ad"===e.type&&(o.delay_ms=24e4),a&&"popunder"===e.type&&(o.config.options.bind_to=null,o.config.options.ignore_to=null),i&&"popunder"===e.type&&(o.config.scripts.interstitial=c.convertToHashedUrl(o.config.scripts.interstitial)),h?p(h)&&h[s]?g(o,h[s]):g(o,h):o))),e}))}for(var At="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Ct=new Uint8Array(256),Tt=0;Tt<64;Tt++)Ct[At.charCodeAt(Tt)]=Tt;Ct[45]=62,Ct[95]=63;var Ot,Pt=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],It=(Ot={},Pt.forEach(((e,t)=>Ot[e]=t)),String.fromCharCode.bind(String),e=>{for(var t,r,n,i,o="",a=e.length%3,s=0;s255||(n=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");o+=Pt[(t=r<<16|n<<8|i)>>18&63]+Pt[t>>12&63]+Pt[t>>6&63]+Pt[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o});class Et{constructor(e){var{wrappedUrlPath:t}=e;this.wrappedUrlPath=t}extendedEncode(e){return w(It(e),{sw:"gu1",Sw:"gu2",sW:"gu3",SW:"gu4"})}wrapVastUrl(e,t){var r=e.includes("http")?e:"https://".concat(e);return"".concat(r).concat(this.wrappedUrlPath).concat(this.extendedEncode(t))}}var jt=new class{constructor(){this.state={}}set(e,t){this.state[e]=t}get(e){return this.state[e]||null}remove(e){delete this.state[e]}},Dt={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{Dt.set("__try",1),Dt.get("__try"),Dt.remove("__try")}catch(e){Dt=jt}var Nt=Dt;function Mt(e,t){return Math.floor(Math.random()*(t-e)+e)}var Rt="__adm_user_id";function Ht(){var e=Nt.get(Rt);if(e)return e;var t=Mt(1,0x10000000000000000);return Nt.set(Rt,t),String(t)}window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};var Lt=window.__adFormats,Ut=window.__formatsGetters;function Ft(e,t){if(Lt[e])return t(Lt[e]);Ut[e]||(Ut[e]=[]),Ut[e].push(t)}function qt(e){return e[Math.floor(Math.random()*e.length)]}function Vt(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object.keys(e).filter((t=>{var r=e[t];return!(!p(r)||!r.length)||!!f(r)&&Object.keys(r).filter((e=>void 0!==r[e])).length}));return n.length?n.every((r=>t[r]&&t[r](e[r]))):r}function Bt(e,t){var{env:r,Logger:n}=t,i=function(e){var{ua:t,qs:r,entryReferrerDomain:n}=e;return{platforms:e=>e.includes(t.device.type||"desktop"),browsers:e=>e.includes(t.browser.name),urls:e=>e.some((e=>{if(0===e.indexOf("[regExp]")){var t=e.replace(/^\[regExp]\s*/,"");return new RegExp(t).test(window.location.href)}return window.location.href.includes(e)})),ls:e=>Object.keys(e).every((t=>localStorage.getItem(t)===e[t])),ss:e=>Object.keys(e).every((t=>localStorage.getItem(t)===e[t])),qs:e=>Object.keys(e).every((t=>r[t]===e[t])),cookies:e=>(e=Array.isArray(e)?e:[e]).some((e=>Object.keys(e).every((t=>e[t]===ne.read(t))))),vars:e=>Object.keys(e).every((t=>window[t]===e[t])),entry_referrer:e=>e.some((e=>(":direct:"===e||""===e)&&""===n||e&&n.includes(e)))}}(r);return e.filter((e=>e.ignore&&e.ignore.length&&e.ignore.some((e=>Vt(e,i)))?(n.warn("spot was excluded by ignore rules",e),!1):!e.bind||!e.bind.length||e.bind.some((t=>{var r=Vt(t,i,!0);return r||n.warn("spot was not bind by conditions",e),r}))))}function zt(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}class Wt{constructor(e){this.script=e}start(){return function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){zt(o,n,i,a,s,"next",e)}function s(e){zt(o,n,i,a,s,"throw",e)}a(void 0)}))}}((function*(){return!1}))()}runScript(){var e=document.createElement("div");return e.innerHTML=this.script,e.childNodes.forEach((e=>{var t=e.cloneNode(!0);if("SCRIPT"===e.nodeName){for(var r=document.createElement("script"),n=0;n{if(!t)return Nt.remove(Xt),e;try{var r=JSON.parse(Nt.get(Xt));if(r&&r.ttl+gt>Date.now())return[e[r.version]]}catch(e){Nt.remove(Xt)}var n=(e=>Math.floor(Math.random()*e.length))(e);return Nt.set(Xt,JSON.stringify({version:n,ttl:Date.now()})),[e[n]]};function tr(e,t,r){var n=wt[t];if(!e||!n)return null;var i=n[r];return"".concat(e.protocol,"//").concat(i.replace("$domain",e.host))}function rr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t{var r,n,i=ir(ir({},t),{},{autostart:null===(r=null!==(n=t.autostart)&&void 0!==n?n:e.autostart)||void 0===r||r});return e.customDomain&&(i.config.primary_auction_url=tr(e.customDomain,e.type,"auction")),i})).filter((e=>e.autostart));n.length&&(e.loadAssets(),e.provideSpotsToLibrary(n))}}))()}runSpot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{spot_id:t}=e;if(t){var r=this.spots.find((e=>e.config.spot_id===t));r&&(e=ir(ir({},r),e)),this.filterSpots([r]).length&&(this.loadAssets(),Ft(this.connectionName,(t=>{this.Logger.info("Run ".concat(this.type," spot"),e),this.provideSpotToLibrary(e,t)})))}}provideSpotsToLibrary(e){var t=t=>e.forEach((e=>this.provideSpotToLibrary(e,t)));Ft(this.connectionName,(e=>t(e)));try{new Event("try"),window.addEventListener(this.connectionName,(e=>{"function"==typeof e._init&&t(e._init)}),!1)}catch(e){var r=window[this.connectionName];"function"!=typeof r&&(r=function(e,t,n){r._list.forEach((r=>{"function"==typeof r&&r(e,t,n)}))}),r._list||(r._list=[]),r._list.push((e=>{"function"==typeof e&&t(e)})),window[this.connectionName]=r}}applySpotConfigTests(e){var t,r,n=null==e||null===(t=e.options)||void 0===t?void 0:t.split_test;if(null==e||null===(r=e.options)||void 0===r||!r.has_split_tests||!n)return e;var i=Mt(1,100),o=qt(e.test_options);return n.traffic_volumet(o,this.env,this.providedDependencies,i);r?setTimeout(a,r):a()}filterSpots(e){return Bt(e,{env:this.env,Logger:this.Logger})}loadAssets(){if(!this.isAssetsLoaded){this.isAssetsLoaded=!0;var e=this.jsLinks;"inpage"===this.type&&(e=er(this.jsLinks,this.isSplitTestActive));var t=document.querySelector("head, body");e.forEach((e=>{if(this.customDomain)!function(e){var{node:t,scriptRecord:r,scriptDefer:n,customSrc:i,adFormat:o}=e;if(!document.querySelector('[src="'.concat(r.src,'"]'))){var a=document.createElement("script");a.src=yt(i,r.type,o),n?a.defer=!0:a.async=!0,a.onerror=()=>{var e=document.createElement("script");e.src=r.src,n?e.defer=!0:e.async=!0,t.append(e)},t.append(a)}}({node:t,scriptRecord:e,scriptDefer:this.env.scriptDefer,customSrc:tr(this.customDomain,this.type,"js"),adFormat:this.type});else{var r=function(e,t){if(document.querySelector('[src="'.concat(e.src,'"]')))return null;var r=document.createElement("script");return r.src=e.src,t?r.defer=!0:r.async=!0,r}(e,this.env.scriptDefer);r&&t.appendChild(r)}}))}}}var sr=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},cr=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]sessionStorage.setItem(e,t),get:e=>sessionStorage.getItem(e),remove:e=>sessionStorage.removeItem(e)};try{dr.set("__try",1),dr.get("__try"),dr.remove("__try")}catch(e){dr=lr}var hr=dr;class pr{constructor(){this.SESSION_KEY="a_s_ts",this.SESSION_KEY_DATA="_ses_dt",this.INITIAL_SESSION_KEY="lastId",this.SESSION_END_TIME_KEY="_ses_tmend",this.initialSessionId=Nt.get(this.INITIAL_SESSION_KEY)||"",this.localStorageExpiresMS=6e4,this.sessionState={id:null,startTs:null}}isSessionTheSame(){return this.initialSessionId===this.getSessionId()}replaceLastSessionData(){var e=this.getSessionId();Nt.set(this.INITIAL_SESSION_KEY,e),this.initialSessionId=e}getItem(e){if(!this.isSessionTheSame())return this.replaceLastSessionData(),this.removeItem(this.SESSION_KEY_DATA),null;try{var t=Nt.get(this.SESSION_KEY_DATA),r=JSON.parse(t);return"object"==typeof r?r[e]:null}catch(e){return null}}setItem(e,t){var r;this.isSessionTheSame()||(this.replaceLastSessionData(),this.removeItem(this.SESSION_KEY_DATA));try{var n,i=null!==(n=Nt.get(this.SESSION_KEY_DATA))&&void 0!==n?n:"{}";r=JSON.parse(i)}catch(e){r={}}r[e]=t,Nt.set(this.SESSION_KEY_DATA,JSON.stringify(r))}removeItem(e){Nt.remove(e)}getFromStorage(e){try{var t=e.get(this.SESSION_KEY),r=JSON.parse(t);return"object"==typeof r?r:null}catch(e){return null}}setToStorage(e,t){e.set(this.SESSION_KEY,JSON.stringify(t))}startSession(){var e=Date.now(),t=this.getFromStorage(hr),r=this.getFromStorage(Nt),n=Nt.get(this.SESSION_END_TIME_KEY);!t&&r&&n&&n>e&&(this.setToStorage(hr,r),t=r),this.sessionState=t||{id:Math.random().toString(36).substring(2),startTs:e},t||(this.setToStorage(hr,this.sessionState),this.setToStorage(Nt,this.sessionState)),setInterval((()=>{var e=Date.now()+this.localStorageExpiresMS;Nt.set(this.SESSION_END_TIME_KEY,e)}),5e3)}getDurationTime(e){var t=Date.now()-this.sessionState.startTs;return"min"===e?Number((t/1e3/60).toFixed(2)):t}getSessionId(){return this.sessionState.id}}var fr=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;ie?t.margin:e}),0);r.forEach((function(e,i){t.setWidgetPosition(e,r[i-1],n)}))},e}();function gr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function wr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){gr(o,n,i,a,s,"next",e)}function s(e){gr(o,n,i,a,s,"throw",e)}a(void 0)}))}}var br=[1411,1410],yr="pxlsStrSnt",Sr="pxlsSnt";function kr(e){return Nt.get(e)}function _r(e){Nt.set(e,"1")}function xr(e){return Ar.apply(this,arguments)}function Ar(){return Ar=wr((function*(e){e&&br.forEach((t=>function(e){var t=document.createElement("iframe");t.referrerPolicy="no-referrer",t.src=e,t.width="1px",t.height="1px",t.setAttribute("allowtransparency",!0),t.setAttribute("style","padding:0;margin:0;border:0;position:absolute;width:1px!important;height:1px!important;top:0!important;"),t.marginheight="0",t.marginwidth="0",document.body.appendChild(t)}("https://s.uuidksinc.net/match/".concat(t,"/?remote_uid=").concat(e))))})),Ar.apply(this,arguments)}function Cr(){return(Cr=wr((function*(e){var t;if(e)return kr(yr)||kr(Sr)?void(kr(Sr)&&Math.random()<.5&&(xr(e),_r(yr),t=Sr,Nt.remove(t))):(xr(e),void _r(yr))}))).apply(this,arguments)}class Tr{constructor(){this.generalParameters={imp:[{secure:"https:"===window.location.protocol?1:0,ext:{v2:!1,tag_ab:"",mm:0,st:0,ad_tags:""},pext:{},banner:{w:0,h:0}}],site:{id:"",cat:[],page:""},device:{w:0,h:0},ext:{dt:Date.now()},user:{fp:0,id:""}}}fillGeneralParameters(e){var{iabCategoryExtended:t,visitorId:r,userId:n,isMetaMask:i,sessionTime:o,tagAbVersion:a,publisherKeywords:s,cloaking:c,width:u,height:l,userAgentData:d}=e,h=window.top!==window.self;this.generalParameters.site.cat[0]=t,this.generalParameters.site.page=h?document.referrer:document.URL,this.generalParameters.user.fp=r,this.generalParameters.user.id=n,this.generalParameters.imp[0].ext.v2=c,this.generalParameters.imp[0].ext.mm=i,this.generalParameters.imp[0].ext.tag_ab=a,this.generalParameters.imp[0].ext.st=o,this.generalParameters.imp[0].ext.ad_tags=s,this.generalParameters.device.w=u,this.generalParameters.device.h=l,this.generalParameters.user.ua_data=d}createRequestData(e){var t=this.generalParameters,r=g(t.imp[0].ext,e.imp[0].ext),n=g(t.imp[0].pext,e.imp[0].pext),i=e.imp[0].banner||null;return t.imp[0].ext=r,t.imp[0].pext=n,t.imp[0].banner=i,t.fp_params=e.fp_params||null,t.site.id=e.site.id,t}}function Or(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Pr(){return Ir.apply(this,arguments)}function Ir(){return Ir=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Or(o,n,i,a,s,"next",e)}function s(e){Or(o,n,i,a,s,"throw",e)}a(void 0)}))}}((function*(){if(!navigator.userAgentData||!navigator.userAgentData.getHighEntropyValues)return null;try{return yield navigator.userAgentData.getHighEntropyValues(["uaFullVersion","architecture","bitness","brands","mobile","model","platform","platformVersion","fullVersionList","wow64"])}catch(e){return null}})),Ir.apply(this,arguments)}var Er="t_v_a";function jr(){var e="";try{e=JSON.parse(Nt.get(Er))}catch(e){}if(e&&e.ttl+6048e5>Date.now())return e.version;var t=qt(["a","b","c","d"]);return Nt.set(Er,JSON.stringify({version:t,ttl:Date.now()})),t}var Dr="in_stream_ad",Nr="popunder";class Mr{constructor(){this.handlers=[]}init(){document.addEventListener("click",(e=>this.handleClick(e)))}addHandler(e){this.handlers.push(e)}removeHandler(e){this.handlers=this.handlers.filter((t=>t!==e))}handleClick(e){this.handlers.forEach((t=>t(e)))}}function Rr(e,t){if(void 0===t&&(t=!1),!e)return"";var r=t?"v2":"v1";return"".concat(e.protocol,"//").concat(r,".").concat(e.host,"/tags")}var Hr=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},Lr=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]t.prevPixelScrolled&&(t.totalPixelScrolled+=e-t.prevPixelScrolled,t.totalPercentScrolled=Math.round(t.totalPixelScrolled/r*100)),t.prevPixelScrolled=e,Math.round(Math.min(100,Math.max(0,e/r*100)))},this.sessionService=e;var r=this.sessionService.getItem(this.LSfield)||{};this.maxScrollPercentage=r.maxScrollPercentage||0,this.totalPercentScrolled=r.totalPercentScrolled||0,this.totalPixelScrolled=r.totalPixelScrolled||0,setTimeout((function(){return t.startTracking()}),100)}return e.prototype.throttle=function(e,t){var r,n;return function(){for(var i=[],o=0;o{this.sessionService.setItem(this.ClickCounterLSfield,this.clickCount+=1)}))}get count(){var e;return null!==(e=this.sessionService.getItem(this.ClickCounterLSfield))&&void 0!==e?e:0}}function zr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Wr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){zr(o,n,i,a,s,"next",e)}function s(e){zr(o,n,i,a,s,"throw",e)}a(void 0)}))}}class Gr{constructor(){this.storageKey="_shrdstrg"}init(){}setToStorage(e){Nt.set(this.storageKey,JSON.stringify(e))}getFromStorage(){try{return JSON.parse(Nt.get(this.storageKey)||"{}")}catch(e){return{}}}set(e,t){var r=this;return Wr((function*(){var n=r.getFromStorage();n[e]=t,r.setToStorage(n)}))()}get(e){var t=this;return Wr((function*(){return t.getFromStorage()[e]}))()}remove(e){var t=this;return Wr((function*(){var r=t.getFromStorage();delete r[e],t.setToStorage(r)}))()}clear(){var e=this;return Wr((function*(){e.setToStorage({})}))()}}function Kr(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function Jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=document.createElement("div");return r.style="".concat(e),t&&(r.className=t),r}var Yr="#qrrc";function Qr(){return Qr=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Kr(o,n,i,a,s,"next",e)}function s(e){Kr(o,n,i,a,s,"throw",e)}a(void 0)}))}}((function*(e,t){if(e&&t){var r=yield function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;return new Promise((n=>{var i=0,o=setInterval((()=>{var a=document.querySelector(e);a&&(clearInterval(o),n(a)),(i+=t)>=r&&(clearInterval(o),n(null))}),t)}))}(Yr);if(r){var n=t.slice(-6).split("").map((e=>Number(e))),i=Jr("width: 60px; height: 10px; overflow: hidden;"),[o,a]=function(e){var t="width: 60px; height: 5px; overflow: hidden; display: flex; justify-content: space-between",r=Jr(t),n=Jr(t);return e.forEach((e=>{var t=e<=5;e%2==0?r.appendChild(Jr("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):r.appendChild(Jr("width: 8px; height: 4px; background-color: white","_whiteSquare")),t?n.appendChild(Jr("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):n.appendChild(Jr("width: 8px; height: 4px; background-color: white","_whiteSquare"))})),[r,n]}(n);i.appendChild(o),i.appendChild(a),r.appendChild(i)}}})),Qr.apply(this,arguments)}var $r=function(){return $r=Object.assign||function(e){for(var t,r=1,n=arguments.length;rthis.HashService.generateCdnDomain(),generateAuctionUrl:e=>this.HashService.generateAuctionUrl(e),generateNativeAuctionUrl:()=>this.HashService.generateNativeAuctionUrl(),convertToHashedUrl:e=>this.HashService.convertToHashedUrl(e)},DisplayAdblockService:new ur({hashedDomain:this.HashService.generateHashedProxyDomain()}),metrics:this.metrics.trackers,SessionService:this.SessionService,PositionService:this.PositionService,AuctionService:this.AuctionService,cookies:ne,ytAuthDetector:this.ytAuthDetector},this.hashHelpers={},this.Logger.info("version ".concat(r.version)),this._paramReconciler={},this.adformatsUrls=[null===(e=document.currentScript)||void 0===e?void 0:e.src],this.tagIdsLiteVersion=[123481,114039,83975,26075,41577],this.tagIdsDisabledTopics=[83571],this.tagIdsDisabledAdBlockCheck=[123481,114039,83975,26075,41577]}addReconsileParams(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this._paramReconciler[t]=e[t])}getLocalConfig(){var e=window["{{CONFIG_ADM}}"];return this.getActualConfig(e)}getActualConfig(e){return e.tag_configs?e.tag_configs[this.tagAbVersion]:e}loadCustomTagConfig(e,t){var r=this;return Xr((function*(){var n,i=Rr(r.customDomain);try{n=yield d.get("".concat(i,"/").concat(e,"?version_name=").concat(r.tagAbVersion)).then((e=>e.data))}catch(i){n=yield d.get("".concat(t,"/").concat(e,"?version_name=").concat(r.tagAbVersion)).then((e=>e.data))}return n}))()}loadTagConfig(e){var t=this;return Xr((function*(){var{createHashTagUrl:n}=t.hashHelpers,i=n?n():r.tagConfigUrl;return t.customDomain?t.loadCustomTagConfig(e,i):d.get("".concat(i,"/").concat(e,"?version_name=").concat(t.tagAbVersion)).then((e=>e.data))}))()}runFormatSpot(e,t){var r=this.adFormats.find((t=>t.type===e));r?r.runSpot(t):this.Logger.warn("AdFormat ".concat(r," no found in config"))}getConfigHelpers(e){var t=t=>e.adformats.find((e=>e.type===t));return{findFormat:t,addSpotToFormat:(e,r)=>{var n=t(e);n&&n.spots.push(r)},findFormatSpot:(e,r)=>{var n=t(e);return n&&n.spots.length?n.spots.find((e=>e.config.spot_id===r)):(this.Logger.warn("Spot ".concat(r," doesn't exist in config")),{config:{},ignore:[],bind:[]})}}}push(e){"function"==typeof e&&e()}enableMagmaClickResolver(e){if(!e)throw Error("siteId - must be passed for magma click resolver proper work");this.magmaClickResolverEnable=!0,this.siteId=e}changeAdFormatOrder(e,t){var r=this.adFormats.findIndex((t=>t.type===e));if(-1!==r){var[n]=this.adFormats.splice(r,1);this.adFormats.splice(t,0,n)}}runAdFormats(){this.adFormats.length&&(this.Logger.info("run tag formats"),(10149===this.tagId||this.customSettings.isInstreamFirst)&&this.changeAdFormatOrder(Dr,0),([23106,58635].includes(this.tagId)||this.customSettings.isPopunderFirst)&&this.changeAdFormatOrder(Nr,0),this.adFormats=this.adFormats.map((e=>{var t=new ar(e,this.env,this.providedDependencies,this.Logger,this.tagId,this.tagAbVersion,this.formatMediationScript,this.customDomain);return t.start(),t})))}ph(){var e=this;this.hashHelpers={createHashPath:function(){return e.HashService.createHashPath(...arguments)},createHashTagUrl:function(){return e.HashService.createHashTagUrl(...arguments)},domainHashed:function(){return e.HashService.generateCdnDomain(...arguments)},date:function(){return e.HashService.getDateForHash(...arguments)},md5:ie}}getAdformatsUrls(){return this.adFormats.reduce(((e,t)=>{var r=t.assets.js.map((e=>{var{src:t}=e;return t}));if("in_stream_ad"===t.type){var n=Object.values(t.spots[0].config.scripts);return e.concat([...n,...r])}return e.concat(r)}),[])}initializeSharedStorageAndKeywordsManager(e){if(this.isDonnyFriendly=e=>("31134"===this.env.qs.promo||"10146"===this.env.qs.campaign)&&e,this.isDonnyFriendly(e))this.SharedStorage=new Gr;else{var t=this.customDomain?function(e){return"".concat(e.protocol,"//ajs.").concat(e.host,"/log/count.html")}(this.customDomain):r.sharedStorageUrl;this.SharedStorage=new nt(t)}this.SharedStorage.init(),this.KeywordsManager=new vt(this.SharedStorage),this.providedDependencies.KeywordsManager=this.KeywordsManager,this.providedDependencies.SharedStorage=this.SharedStorage}init(){var e=arguments,t=this;return Xr((function*(){var n=e.length>0&&void 0!==e[0]?e[0]:t.tagId,i=e.length>1?e[1]:void 0;if(!n)throw new Error("[Admanager] - method init accept only string | number | object param");var o=Date.now(),a=performance.now(),s=f(n);t.tagId=f(n)?n.tagId:n;var c=Number(t.tagId),u=s?t.getActualConfig(n):t.loadTagConfig(n),l=r.isMB||r.isOnCl||s&&u.is_tnet||t.tagIdsDisabledAdBlockCheck.includes(c),[h,m,v,g]=yield Promise.all([u,$().then((e=>e.get())).then((e=>e)),Pr(),ee({useScriptLoadCheck:!l})]);if(!f(h)||!p(h.adformats))throw new Error("[Admanager] - tag config must be object type and its adformats field must be an array type");var w=!!h.is_tnet,b=window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone;h.v2&&(t.cloakingConfig=yield function(e,t,r,n,i){return Hr(this,void 0,void 0,(function(){var o,a,s,c,u;return Lr(this,(function(l){switch(l.label){case 0:if(null==(o=i.getItem(Ur))&&(o=Mt(0,100),i.setItem(Ur,o)),a=encodeURIComponent(window.location.href).replace(/%2F/g,"/"),s="tag_id=".concat(e,"&timezone_olson=").concat(t,"&version_name=").concat(r,"&med_script_id=").concat(o,"&page=").concat(a),c="https://notification.tubecup.net/tags",n)return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,d.get("".concat(c,"?").concat(s))];case 2:return[2,l.sent().data];case 3:return l.sent(),[2,null];case 4:u=Rr(n,!0),l.label=5;case 5:return l.trys.push([5,7,,12]),[4,d.get("".concat(u,"?").concat(s))];case 6:return[2,l.sent().data];case 7:l.sent(),l.label=8;case 8:return l.trys.push([8,10,,11]),[4,d.get("".concat(c,"?").concat(s))];case 9:return[2,l.sent().data];case 10:return l.sent(),[2,null];case 11:return[3,12];case 12:return[2]}}))}))}(h.tagId,b,t.tagAbVersion,t.customDomain,t.SessionService));var y,S=t.cloakingConfig||h;t.cloakingConfig&&!t.cloakingConfig.med_script_url&&h.med_script_url&&(S.med_script_url=h.med_script_url),t.customSettings=(y=S.custom_settings||{},$r({isLiteVersion:!1,areTopicsDisabled:!1,isInstreamFirst:!1,isPopunderFirst:!1},y));var k,_,x=t.tagIdsLiteVersion.includes(c)||t.customSettings.isLiteVersion;t.env=$e({visitorId:m.visitorId,isAdBlock:g,sessionService:t.SessionService,isTubeSite:w,fingerprint:m,userAgentData:v,tagAbVersion:(k=t.tagAbVersion,_=S.testId,_?"".concat(k,"_").concat(_):"".concat(k)),magmaClickResolverEnable:t.magmaClickResolverEnable,config:S,v2:t.cloakingConfig?1:0,siteId:t.siteId,isGoogleTopicsDisallowed:t.tagIdsDisabledTopics.includes(c)||t.customSettings.areTopicsDisabled}),t.env.isMB=r.isMB,t.env.cabsId=r.cabsId,t.env.loadedAt=o,t.formatMediationScript=S.o_script,t.initializeSharedStorageAndKeywordsManager(w),x||function(e){Cr.apply(this,arguments)}(t.env.visitorIdString),function(e,t){Qr.apply(this,arguments)}(w,t.env.visitorIdString),t.PositionService.deviceType=t.env.ua.device.type,t.AuctionService.fillGeneralParameters({iabCategoryExtended:"IAB".concat(t.env.iabCategoryExtended),visitorId:t.env.visitorId,isMetaMask:t.env.sessionTime,tagAbVersion:t.env.tagAbVersion,sessionTime:t.SessionService.getDurationTime("min"),publisherKeywords:t.env.keywords,cloaking:t.env.v2,width:t.env.resolution[0],height:t.env.resolution[1],userId:t.env.userId,userAgentData:v});var A=t.HashService.generateHashedProxyDomain(),C=(w||r.isMB||r.isOnCl?null:t.HashService.generateMetricHashDomain())||r.initTrackingUrl,T=performance.now();t.adFormats=xt({tagId:t.tagId,label:S.label,iabcat:S.iabcat,isPhpLoaderActive:!!S.adm_loader,adFormats:S.adformats,hashHelpers:t.hashHelpers,isAdBlock:t.env.isAdBlock,hashedProxyDomain:A,legacySpotsExtend:t._paramReconciler,hashService:t.HashService,tagAbVersion:t.tagAbVersion,isTubeSite:w}),i&&i(),function(e,t){var n=t.label,i=t.subId,o=t.userId,a=t.timezone,s=t.adManagerVersion,c=t.tagId,u=t.screenResolution,l=t.isAdBlock,h=t.timezoneOlson,p=t.utmSource,f=t.utmMedium,m=t.utmCampaign,v=t.utmContent,g=t.isMetaMaskActive,w=t.initToStartLatency,b=t.isCloaking,y=t.isCloakingResponseEmpty,S={wl:n,subid:i,user_id:o,timezone:a,ver:s,tag_id:Number(c||0),screen_resolution:u.join("x"),adblock:Number(l),timezone_olson:h,utm_source:p,utm_medium:f,utm_campaign:m,utm_content:v,mm:Number(g),init_start_latency:Number(w),is_v2:Number(b||!1),is_v2_empty:Number(y||!1)},k="/in/track?data=".concat(It(JSON.stringify(S))),_="".concat(e).concat(k),x="".concat(r.initTrackingUrl).concat(k);d.get(_).catch((function(){d.get(x)}))}(C,{label:S.label,subId:t.env.sub,userId:Ht(),timezone:t.env.timezone,adManagerVersion:r.version,tagId:S.tagId,screenResolution:t.env.resolution,isAdBlock:t.env.isAdBlock,timezoneOlson:t.env.timezoneOlson,utmSource:t.env.holdableQSParams.utm_source,utmMedium:t.env.holdableQSParams.utm_medium,utmCampaign:t.env.holdableQSParams.utm_campaign,utmContent:t.env.holdableQSParams.utm_content,isMetaMaskActive:t.env.isMetaMaskActive,initToStartLatency:((T-a)/1e3).toFixed(2),isCloaking:h.v2,isCloakingResponseEmpty:t.cloakingConfig,userKeywords:t.env.keywords});var O=t.getAdformatsUrls();t.adformatsUrls=[...t.adformatsUrls,...O];var P=new Zt({formatMediationScript:t.formatMediationScript,mediationTrackingUrl:S.med_script_url});yield P.start(),t.runAdFormats()}))()}}var tn=document.querySelector("script[".concat(r.tagIdIdentifier,"]")),rn=Array.isArray(window[r.adManagerWindowNamespace])?window[r.adManagerWindowNamespace]:[];if(window[r.adManagerWindowNamespace]=window[r.adManagerWindowNamespace]instanceof en||new en,window.a3klsam=window[r.adManagerWindowNamespace],window[r.adManagerWindowNamespace]._paramReconciler=window[r.overrideConfigWindowNamespace]||{},rn.forEach((e=>e())),tn){var nn=tn.getAttribute(r.tagIdIdentifier);tn.removeAttribute(r.tagIdIdentifier);var on=tn.hasAttribute(r.noAutostartIdentifier),an=tn.hasAttribute(r.customDomainIdentifier);if(nn&&(window[r.adManagerWindowNamespace].tagId=nn),an){var sn=new URL(tn.getAttribute("src"));window[r.adManagerWindowNamespace].customDomain={host:sn.host.replace("ajs.",""),protocol:sn.protocol}}nn&&!on&&window[r.adManagerWindowNamespace].init()}})();