(()=>{"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.127.11",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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1;if(!e.length||t>r)return null;var n=e.slice(t,r+1);return n[Math.floor(Math.random()*n.length)]}function p(e){return new Promise((t=>{e||t({status:"error"});var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=()=>t({status:"ok"}),r.onerror=()=>t({status:"error"})}))}function f(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((()=>{try{var a=document.querySelectorAll(e);a&&(clearInterval(o),n(a)),(i+=t)>=r&&(clearInterval(o),n(null))}catch(e){clearInterval(o),n(null)}}),t)}))}function m(e){return"[object Array]"===Object.prototype.toString.call(e)}function v(e){return null!==e&&"object"==typeof e}function g(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function w(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),m(e))for(var r=0,n=e.length;r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return Math.floor(Math.random()*(t-e)+e)}var k=function(){return k=Object.assign||function(e){for(var t,r=1,n=arguments.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,C(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2,n]}}))}))}function P(e){e.then(void 0,(function(){}))}function I(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 E(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 D(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 j(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=N(e=E(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=N(e=E(e,[3301882366,444984403]),[0,e[0]>>>1])}function R(e){return parseInt(e)}function H(e){return parseFloat(e)}function L(e,t){return"number"==typeof e&&isNaN(e)?t:e}function U(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function F(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function q(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 G(){var e=window,t=navigator;return U(["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 K(){var e=window,t=navigator;return U(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}var J={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var Y={fonts:function(){var e=this;return B((function(t,r){return _(e,[t,r],void 0,(function(e,t){var r,n,i,o,a,s,c,u,l,d,h,p=t.document;return x(this,(function(e){switch(e.label){case 0:return(r=p.body).style.fontSize="48px",(n=p.createElement("div")).style.setProperty("visibility","hidden","important"),i={},o={},a=function(e){var t=p.createElement("span"),r=t.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,t.textContent="mmMwWLliI0O&1",n.appendChild(t),t},s=function(e,t){return a("'".concat(e,"',").concat(t))},c=function(){for(var e={},t=function(t){e[t]=z.map((function(e){return s(t,e)}))},r=0,n=V;r')}((function(e,t){for(var r={},n={},i=0,o=Object.keys(J);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 L(H(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return L(R(e),null)},r=[t(e.width),t(e.height)];return r.sort().reverse(),r},hardwareConcurrency:function(){return L(R(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(H(new Date(n,0,1).getTimezoneOffset()),H(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(!(W()||(e=window,t=navigator,U(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!W())))try{return!!window.indexedDB}catch(e){return!0}},platform:function(){var e,t=navigator.platform;return"MacIntel"!==t||!K()||U(["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 U(["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=4}()?null:r.getExtension("WEBGL_debug_renderer_info");return n?null===(t=r.getParameter(n.UNMASKED_RENDERER_WEBGL))||void 0===t?void 0:t.toString():""}};function Q(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?k({name:(r=t).name,message:r.message,stack:null===(n=r.stack)||void 0===n?void 0:n.split("\n")},r):t;var r,n}),2)}function $(e){return function(e,t){t=t||0;var r,n=(e=e||"").length%16,i=e.length-n,o=[0,t],a=[0,t],s=[0,0],c=[0,0],u=[2277735313,289559509],l=[1291169091,658871167];for(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 ne(){return ie.apply(this,arguments)}function ie(){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=re(),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},ie=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){te(o,n,i,a,s,"next",e)}function s(e){te(o,n,i,a,s,"throw",e)}a(void 0)}))},ie.apply(this,arguments)}function oe(e){return"string"==typeof e}var ae={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()),oe(n)&&a.push("path="+n),oe(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 se(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{ue.set("__try",1),ue.get("__try"),ue.remove("__try")}catch(e){ue=ce}var le=ue;class de{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,le.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=le.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 he(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{we.set("__try",1),we.get("__try"),we.remove("__try")}catch(e){we=ge}var be=we;var ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{};var Se,ke,_e=(Se=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",D="Motorola",j="Opera",N="Samsung",M="Sharp",R="Sony",H="Xiaomi",L="Zebra",U="Facebook",F="Chromium OS",q="Mac OS",B=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=B([l,p,c]),Q.CPU=B([f]),Q.DEVICE=B([u,h,d,m,v,w,g,b,y]),Q.ENGINE=Q.OS=B([l,p]),e.exports&&(t=e.exports=Q),t.UAParser=Q;var $=typeof r!==o&&(r.jQuery||r.Zepto);if($&&!$.ua){var X=new Q;$.ua=X.getResult(),$.ua.get=function(){return X.getUA()},$.ua.set=function(e){X.setUA(e);var t=X.getResult();for(var r in t)$.ua[r]=t[r]}}}("object"==typeof window?window:ye)},Se(ke={exports:{}},ke.exports),ke.exports);var xe={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()),fe(n)&&a.push("path="+n),fe(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)}},Ae="source",Ce="promo",Te="source";var Oe="_adm_erd",Pe="_adm_erdso";function Ie(e,t){var r;try{r=window.top!==window&&window.location.origin===window.top.location.origin&&3826===t}catch(e){r=!1}Oe=r?Pe:Oe;var{referrer:n}=document,i=e.getItem(Oe),o=n.split("/")[2]||"",a="";return a=""===i||i?i:o,e.setItem(Oe,a),a}var Ee=new ve,De={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{De.set("__try",1),De.get("__try"),De.remove("__try")}catch(e){De=Ee}var je=De;function Ne(){var e="cb_gyro",t=je.get(e)||0;return t||window.addEventListener("deviceorientation",(t=>{null!==t.alpha&&je.set(e,1)})),Number(t)}function Me(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 Re(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 He(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?He(He({},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(Fe("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,i),s=null}},s.onabort=function(){s&&(r(Fe("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(Fe("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(Fe(t,e,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&me(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 Be(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}var ze=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)),qe(e).then((function(e){return e.data=Be(e.data),e}),(function(e){return e&&e.response&&(e.response.data=Be(e.response.data)),Promise.reject(e)}))}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(He(He({},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(He(He({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}};function Ve(e,t){if(!e||!t)return null;var r=60*t*1e3;return Date.now()-e>r}function We(){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 Ge="__adm-vid",Ke="__adm-vid_new",Je=10080;function Ye(){return Ye=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Le(o,n,i,a,s,"next",e)}function s(e){Le(o,n,i,a,s,"throw",e)}a(void 0)}))}}((function*(e,t,r){var n=window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,i=yield We();try{var o,a=yield ze.post("https://fp.metricswpsh.com/fp?tag_id=".concat(e),He(He({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}})),Ye.apply(this,arguments)}function Qe(){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(je.get(Ge)),t=JSON.parse(je.get(Ke));return t&&!Ve(t.createdAt,Je)?{fp:t.fpValue,fp_str:t.fpValueStr||""}:e&&"object"==typeof e.fpValue&&null!==e.fpValue&&!Ve(e.createdAt,Je)?{fp:e.fpValue.fp,fp_str:e.fpValue.fp_str||""}:e&&"number"==typeof e.fpValue&&!Ve(e.createdAt,Je)?{fp:e.fpValue,fp_str:e.fpValueStr||""}:null}();return n||function(e,t,r){return Ye.apply(this,arguments)}(e,t,r).then((e=>{return t=e,je.remove(Ge),void je.set(Ke,JSON.stringify({fpValue:t.fp,fpValueStr:t.fp_str,createdAt:Date.now()}));var t})),n}var $e={utm_source:"utm1",utm_medium:"utm2",utm_campaign:"utm3",utm_content:"utm4",campaign:"camp"};function Xe(e){return function(e){try{return new URL(e),!0}catch(e){return!1}}(e)&&"t.co"===new URL(e).hostname.toLowerCase()}function Ze(e){var{ua:t}=e,r=Xe(document.referrer),n=/android-app/i.test(document.referrer),i=/MicroMessenger|WeChat|Weixin/i.test(t),o=/snapchat/i.test(t),a=/FBAN|FBIOS|FBAV|FB_IAB|FB4A/i.test(t),s=/instagram/i.test(t);return r||n||i||o||a||s}var et="cc_dm",tt={devModeQueryStringParameter:et,utm_mapping:!1,iabcat:25,iab_extended:"25-3",label:1,script_defer:!1,tagId:null,default_keywords:[]};function rt(e){var t,{visitorId:r,isAdBlock:n,isTubeSite:i,fingerprint:o,userAgentData:a={},tagAbVersion:s="a",magmaClickResolverEnable:c,config:u=tt,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=je.get(n+e),a=t[e]||t[$e[e]]||t[r[e]];i[e]=a||o||"",a&&je.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!==xe.read(Ae)&&(t=xe.read(Ae)),[Ce,Te].forEach((r=>{e[r]&&(xe.write(Ae,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,_,x,A,C,T,O,P=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));je.set(r,JSON.stringify(t))}));var n=je.get(r);return n&&JSON.parse(n)||[]}return[]}catch(e){return[]}}(),I=((b=(new _e).getResult()).device.type=b.device.type||"desktop",b),E=Qe(u.tagId,o,I);return{userId:r,isAdBlock:n,isMetaMaskActive:m,isSslProtocol:"https:"===window.location.protocol,resolution:[+(screen&&screen.width||window.outerWidth),+(screen&&screen.height||window.outerHeight)],labels:be.get("labels")||"",sub:w,title:window.document.title,tags:"",debugMode:"1"===f[et],holdableQSParams:g,qs:f,ua:I,timezone:Math.trunc((new Date).getTimezoneOffset()/-60),timezoneOlson:window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,entryReferrerDomain:Ie(p,u.tagId),magmaSourceId:xe.read("magma_source"),keywords:encodeURIComponent(v),isAccelerometer:(T="cb_acce",O=je.get(T)||0,O||window.addEventListener("devicemotion",(e=>{null!==e.accelerationIncludingGravity.x&&je.set(T,1)})),Number(O)),isGyroscope:Ne(),isTubeSite:i,fingerprintParams:Me(o),page:encodeURIComponent(window.location.href).replace(/%2F/g,"/"),userAgentData:a,visitorId:E?E.fp:null,visitorIdString:E?E.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:P,isWebView:(y=navigator.userAgent||navigator.vendor||window.opera,S=/safari/i.test(y)&&!/chrome/i.test(y),k=/iPhone|iPod|iPad/i.test(y)&&!window.MSStream&&!S,_=!(!window.webkit||!window.webkit.messageHandlers),x=S&&void 0===navigator.standalone,A=/android/i.test(y)&&(/wv/.test(y)||/Android.*Version\/[0-9]+\.[0-9]+/.test(y)),C=!(!window.Android&&!window.JSInterface),k||_||x||A||C),isInApp:Ze(I)}}function nt(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 it(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){nt(o,n,i,a,s,"next",e)}function s(e){nt(o,n,i,a,s,"throw",e)}a(void 0)}))}}var ot=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]}},at={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{at.set("__try",1),at.get("__try"),at.remove("__try")}catch(e){at=ot}var st=at;class ct{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 it((function*(){st.set(e,JSON.stringify(t)),yield r.send("SET",e,t)}))()}get(e){var t=this;return it((function*(){return yield t.synchronize(e)}))()}remove(e){var t=this;return it((function*(){st.remove(e),yield t.send("REMOVE",e),yield t.synchronize(e)}))()}clear(){return this.send("CLEAR")}synchronize(e){var t=this;return it((function*(){var r,n;try{r=yield t.send("GET",e);var i=st.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?(st.set(e,JSON.stringify(r)),r):null}))()}}function ut(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 lt(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?lt(lt({},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(ft("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,i),s=null}},s.onabort=function(){s&&(r(ft("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(ft("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(ft(t,e,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&mt(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 gt(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}var wt=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)),vt(e).then((function(e){return e.data=gt(e.data),e}),(function(e){return e&&e.response&&(e.response.data=gt(e.response.data)),Promise.reject(e)}))}get(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(lt(lt({},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(lt(lt({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}},bt="_kwrds",yt={keywords:{},pages_count:0};class St{constructor(e){this.keywordsHistory=yt,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 ht((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 ht((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(bt,JSON.stringify(n.keywordsHistory)).catch((()=>null))}catch(e){return null}}))()}getFromStorage(){var e=this;return ht((function*(){var t,r=yield e.sharedStorage.get(bt).catch((()=>null));try{t=JSON.parse(r)||yt,t=e.filterHistoryFromExpired(t)}catch(e){t=yt}return t}))()}getFromAuctionAndMap(e,t,r){var n=this;return ht((function*(){var{data:i}=yield wt.post(e,{ad_tags:t,page:r}).catch((()=>({}))),o=yt;return i&&i.keywords&&i.keywords.length&&(o=n.mapForManager(i.keywords)),o}))()}}var kt=864e5,_t={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"}},xt=["inpage","native","push","popunder","resale-popunder","banner","extension","calendar","interstitial","direct_link"];function At(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(r&&!xt.includes(r))return e;return e.replace(".js",{modern:".m.js",legacy:".l.js"}[t])}function Ct(e,t,r){var n=_t[t];if(!e||!n)return null;var i=n[r];return"".concat(e.protocol,"//").concat(i.replace("$domain",e.host))}var Tt=["inpage","native","calendar","popunder"],Ot=[360974],Pt="noModule"in document.createElement("script");function It(e){var{label:t,iabcat:r,isPhpLoaderActive:n,adFormats:i,hashHelpers:o,isAdBlock:a,legacySpotsExtend:s,hashService:c,isTubeSite:u,customDomain:l}=e;return i.map((e=>{var{createHashPath:i}=o,d=Pt?"modern":"legacy",h=e.assets["".concat(d,"_js")],p=null!=h?h:function(e,t,r){return!xt.includes(e.type)||r?e.assets.js:e.assets.js.map((e=>e.includes(".m.js")||e.includes(".l.js")?e:At(e,t)))}(e,d,n),f=function(e){var t,r=e.customDomain,n=e.isTubeSite,i=e.formatType,o=e.source;try{if(r){var a=Ct(r,i,"js");t=new URL(a).origin}else t=n?"":new URL(o).origin}catch(e){t=""}return t}({customDomain:l,isTubeSite:u,formatType:e.type,source:p[0]});e.assets.js=p.map((t=>{var r={src:t,type:d};return!n&&i&&Tt.includes(e.type)&&(r.src=c.convertToHashedUrl(r.src,i)),r}));var v=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),Ot.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)),"inpage"===e.type&&(o.config.origin=f),v?m(v)&&v[s]?b(o,v[s]):b(o,v):o))),e}))}for(var Et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Dt=new Uint8Array(256),jt=0;jt<64;jt++)Dt[Et.charCodeAt(jt)]=jt;Dt[45]=62,Dt[95]=63;var Nt,Mt=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],Rt=(Nt={},Mt.forEach(((e,t)=>Nt[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+=Mt[(t=r<<16|n<<8|i)>>18&63]+Mt[t>>12&63]+Mt[t>>6&63]+Mt[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o});class Ht{constructor(e){var{wrappedUrlPath:t}=e;this.wrappedUrlPath=t}extendedEncode(e){return y(Rt(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 Lt=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]}},Ut={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{Ut.set("__try",1),Ut.get("__try"),Ut.remove("__try")}catch(e){Ut=Lt}var Ft=Ut,qt="__adm_user_id";function Bt(){var e=Ft.get(qt);if(e)return e;var t=S(1,0x10000000000000000);return Ft.set(qt,t),String(t)}window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};var zt=window.__adFormats,Vt=window.__formatsGetters;function Wt(e,t){if(zt[e])return t(zt[e]);Vt[e]||(Vt[e]=[]),Vt[e].push(t)}function Gt(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Object.keys(e).filter((t=>{var r=e[t];return!(!m(r)||!r.length)||!!v(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 Kt(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]===ae.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=>Gt(e,i)))?(n.warn("spot was excluded by ignore rules",e),!1):!e.bind||!e.bind.length||e.bind.some((t=>{var r=Gt(t,i,!0);return r||n.warn("spot was not bind by conditions",e),r}))))}function Jt(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 Yt{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){Jt(o,n,i,a,s,"next",e)}function s(e){Jt(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 Ft.remove(nr),e;try{var r=JSON.parse(Ft.get(nr));if(r&&r.ttl+kt>Date.now())return[e[r.version]]}catch(e){Ft.remove(nr)}var n=(e=>Math.floor(Math.random()*e.length))(e);return Ft.set(nr,JSON.stringify({version:n,ttl:Date.now()})),[e[n]]};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 ar(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 sr(e){for(var t=1;t{var r,n,i=sr(sr({},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=Ct(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=sr(sr({},r),e)),this.filterSpots([r]).length&&(this.loadAssets(),Wt(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)));Wt(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=S(1,100),o=h(e.test_options);return n.traffic_volumet(o,this.env,this.providedDependencies,i);r?setTimeout(a,r):a()}filterSpots(e){return Kt(e,{env:this.env,Logger:this.Logger})}loadAssets(){if(!this.isAssetsLoaded){this.isAssetsLoaded=!0;var e=this.jsLinks;"inpage"===this.type&&(e=ir(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=At(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:Ct(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 lr=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())}))},dr=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{fr.set("__try",1),fr.get("__try"),fr.remove("__try")}catch(e){fr=pr}var mr=fr;class vr{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=Ft.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();Ft.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=Ft.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=Ft.get(this.SESSION_KEY_DATA))&&void 0!==n?n:"{}";r=JSON.parse(i)}catch(e){r={}}r[e]=t,Ft.set(this.SESSION_KEY_DATA,JSON.stringify(r))}removeItem(e){Ft.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(mr),r=this.getFromStorage(Ft),n=Ft.get(this.SESSION_END_TIME_KEY);!t&&r&&n&&n>e&&(this.setToStorage(mr,r),t=r),this.sessionState=t||{id:Math.random().toString(36).substring(2),startTs:e},t||(this.setToStorage(mr,this.sessionState),this.setToStorage(Ft,this.sessionState)),setInterval((()=>{var e=Date.now()+this.localStorageExpiresMS;Ft.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 gr=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 yr(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 Sr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){yr(o,n,i,a,s,"next",e)}function s(e){yr(o,n,i,a,s,"throw",e)}a(void 0)}))}}var kr=[1411,1410],_r="pxlsStrSnt",xr="pxlsSnt";function Ar(e){return Ft.get(e)}function Cr(e){Ft.set(e,"1")}function Tr(e){return Or.apply(this,arguments)}function Or(){return Or=Sr((function*(e){e&&kr.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))))})),Or.apply(this,arguments)}function Pr(){return(Pr=Sr((function*(e){var t;if(e)return Ar(_r)||Ar(xr)?void(Ar(xr)&&Math.random()<.5&&(Tr(e),Cr(_r),t=xr,Ft.remove(t))):(Tr(e),void Cr(_r))}))).apply(this,arguments)}class Ir{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=b(t.imp[0].ext,e.imp[0].ext),n=b(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 Er(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 Dr(){return jr.apply(this,arguments)}function jr(){return jr=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Er(o,n,i,a,s,"next",e)}function s(e){Er(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}})),jr.apply(this,arguments)}var Nr="t_v_a";function Mr(){var e="";try{e=JSON.parse(Ft.get(Nr))}catch(e){}if(e&&e.ttl+6048e5>Date.now())return e.version;var t=h(["a","b","c","d"]);return Ft.set(Nr,JSON.stringify({version:t,ttl:Date.now()})),t}var Rr="in_stream_ad",Hr="popunder",Lr=function(){function e(){this.handlers=[]}return e.prototype.init=function(){var e=this;document.addEventListener("click",(function(t){return e.handleClick(t)}))},e.prototype.addHandler=function(e){this.handlers.push(e)},e.prototype.removeHandler=function(e){this.handlers=this.handlers.filter((function(t){return t!==e}))},e.prototype.handleClick=function(e){this.handlers.forEach((function(t){return t(e)}))},e}();function Ur(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 Fr=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())}))},qr=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 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){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)}))}}class Yr{constructor(){this.storageKey="_shrdstrg"}init(){}setToStorage(e){Ft.set(this.storageKey,JSON.stringify(e))}getFromStorage(){try{return JSON.parse(Ft.get(this.storageKey)||"{}")}catch(e){return{}}}set(e,t){var r=this;return Jr((function*(){var n=r.getFromStorage();n[e]=t,r.setToStorage(n)}))()}get(e){var t=this;return Jr((function*(){return t.getFromStorage()[e]}))()}remove(e){var t=this;return Jr((function*(){var r=t.getFromStorage();delete r[e],t.setToStorage(r)}))()}clear(){var e=this;return Jr((function*(){e.setToStorage({})}))()}}function Qr(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 $r(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 Xr="#qrrc";function Zr(){return Zr=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){Qr(o,n,i,a,s,"next",e)}function s(e){Qr(o,n,i,a,s,"throw",e)}a(void 0)}))}}((function*(e,t){if(e&&t){var r=yield f(Xr);if(r.length){var n=t.slice(-6).split("").map((e=>Number(e))),i=$r("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=$r(t),n=$r(t);return e.forEach((e=>{var t=e<=5;e%2==0?r.appendChild($r("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):r.appendChild($r("width: 8px; height: 4px; background-color: white","_whiteSquare")),t?n.appendChild($r("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):n.appendChild($r("width: 8px; height: 4px; background-color: white","_whiteSquare"))})),[r,n]}(n);i.appendChild(o),i.appendChild(a),r[0].appendChild(i)}}})),Zr.apply(this,arguments)}var en=function(){return en=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 hr({hashedDomain:this.HashService.generateHashedProxyDomain()}),metrics:this.metrics.trackers,SessionService:this.SessionService,PositionService:this.PositionService,AuctionService:this.AuctionService,cookies:ae,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 rn((function*(){var n,i=Ur(r.customDomain),{hostname:o}=window.location,a="version_name=".concat(r.tagAbVersion,"&domain=").concat(o);try{n=yield d.get("".concat(i,"/").concat(e,"?").concat(a)).then((e=>e.data))}catch(r){n=yield d.get("".concat(t,"/").concat(e,"?").concat(a)).then((e=>e.data))}return n}))()}loadTagConfig(e){var t=this;return rn((function*(){var{createHashTagUrl:n}=t.hashHelpers,i=n?n():r.tagConfigUrl,{hostname:o}=window.location,a="version_name=".concat(t.tagAbVersion,"&domain=").concat(o);return t.customDomain?t.loadCustomTagConfig(e,i):d.get("".concat(i,"/").concat(e,"?").concat(a)).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(Rr,0),([23106,58635].includes(this.tagId)||this.customSettings.isPopunderFirst)&&this.changeAdFormatOrder(Hr,0),this.adFormats=this.adFormats.map((e=>{var t=new ur(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:se}}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 Yr;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 ct(t)}this.SharedStorage.init(),this.KeywordsManager=new St(this.SharedStorage),this.providedDependencies.KeywordsManager=this.KeywordsManager,this.providedDependencies.SharedStorage=this.SharedStorage}init(){var e=arguments,t=this;return rn((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=v(n);t.tagId=v(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,p,f,g]=yield Promise.all([u,ee().then((e=>e.get())).then((e=>e)),Dr(),ne({useScriptLoadCheck:!l})]);if(!v(h)||!m(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 Fr(this,void 0,void 0,(function(){var o,a,s,c,u;return qr(this,(function(l){switch(l.label){case 0:if(null==(o=i.getItem(Br))&&(o=S(0,100),i.setItem(Br,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=Ur(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,k=t.cloakingConfig||h;t.cloakingConfig&&!t.cloakingConfig.med_script_url&&h.med_script_url&&(k.med_script_url=h.med_script_url),t.customSettings=(y=k.custom_settings||{},en({isLiteVersion:!1,areTopicsDisabled:!1,isInstreamFirst:!1,isPopunderFirst:!1},y));var _,x,A=t.tagIdsLiteVersion.includes(c)||t.customSettings.isLiteVersion;t.env=rt({visitorId:p.visitorId,isAdBlock:g,sessionService:t.SessionService,isTubeSite:w,fingerprint:p,userAgentData:f,tagAbVersion:(_=t.tagAbVersion,x=k.testId,x?"".concat(_,"_").concat(x):"".concat(_)),magmaClickResolverEnable:t.magmaClickResolverEnable,config:k,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=k.o_script,t.initializeSharedStorageAndKeywordsManager(w),A||function(e){Pr.apply(this,arguments)}(t.env.visitorIdString),function(e,t){Zr.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:f});var C=t.HashService.generateHashedProxyDomain(),T=(w||r.isMB||r.isOnCl?null:t.HashService.generateMetricHashDomain())||r.initTrackingUrl,O=performance.now();t.adFormats=It({tagId:t.tagId,label:k.label,iabcat:k.iabcat,isPhpLoaderActive:!!k.adm_loader,adFormats:k.adformats,hashHelpers:t.hashHelpers,isAdBlock:t.env.isAdBlock,hashedProxyDomain:C,legacySpotsExtend:t._paramReconciler,hashService:t.HashService,tagAbVersion:t.tagAbVersion,isTubeSite:w,customDomain:t.customDomain}),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(Rt(JSON.stringify(S))),_="".concat(e).concat(k),x="".concat(r.initTrackingUrl).concat(k);d.get(_).catch((function(){d.get(x)}))}(T,{label:k.label,subId:t.env.sub,userId:Bt(),timezone:t.env.timezone,adManagerVersion:r.version,tagId:k.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:((O-a)/1e3).toFixed(2),isCloaking:h.v2,isCloakingResponseEmpty:t.cloakingConfig,userKeywords:t.env.keywords});var P=t.getAdformatsUrls();t.adformatsUrls=[...t.adformatsUrls,...P];var I=new rr({formatMediationScript:t.formatMediationScript,mediationTrackingUrl:k.med_script_url});yield I.start(),t.runAdFormats()}))()}}var on=document.querySelector("script[".concat(r.tagIdIdentifier,"]")),an=Array.isArray(window[r.adManagerWindowNamespace])?window[r.adManagerWindowNamespace]:[];if(window[r.adManagerWindowNamespace]=window[r.adManagerWindowNamespace]instanceof nn||new nn,window.a3klsam=window[r.adManagerWindowNamespace],window[r.adManagerWindowNamespace]._paramReconciler=window[r.overrideConfigWindowNamespace]||{},an.forEach((e=>e())),on){var sn=on.getAttribute(r.tagIdIdentifier);on.removeAttribute(r.tagIdIdentifier);var cn=on.hasAttribute(r.noAutostartIdentifier),un=on.hasAttribute(r.customDomainIdentifier);if(sn&&(window[r.adManagerWindowNamespace].tagId=sn),un){var ln=new URL(on.getAttribute("src"));window[r.adManagerWindowNamespace].customDomain={host:ln.host.replace("ajs.",""),protocol:ln.protocol}}sn&&!cn&&window[r.adManagerWindowNamespace].init()}})();