(()=>{"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();const e={tagConfigUrl:"https://na.nawpush.com/tags",version:"3.90.0",devModeQueryStringParameter:"adm_is_dev",adManagerWindowNamespace:"AdManager",helpersWindowNamespace:"_CAdM",overrideConfigWindowNamespace:"__adm_override",tagIdIdentifier:"data-admpid",noAutostartIdentifier:"data-admman",customDomainIdentifier:"data-custom-domain",devMode:!window.location.search.includes("_adm_debug=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",isMyBid:!!"MISSING_ENV_VAR".IS_MYBID,sharedStorageUrl:"https://storage.multstorage.com/log/count.html",keywordsServiceUrl:"https://ntvpforever.com/keywords"};function r(t,e){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.logPrefix=e,this.silentMode=r}var e,n,o;return e=t,n=[{key:"info",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;nt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=200&&r.status<300?t(r):e(d("Request failed with status code "+r.status,r.config,null,r.request,r))}(e,r,o),l=null}},l.onabort=function(){l&&(r(d("Request aborted",t,"ECONNABORTED",l)),l=null)},l.onerror=function(){r(d("Network Error",t,null,l)),l=null},l.ontimeout=function(){var e="timeout of ".concat(t.timeout,"ms exceeded");t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(d(e,t,"ECONNABORTED",l)),l=null},"setRequestHeader"in l&&h(s,(function(t,e){void 0===a&&"content-type"===e.toLowerCase()?delete s[e]:l.setRequestHeader(e,t)})),void 0!==t.withCredentials&&(l.withCredentials=!!t.withCredentials),t.responseType)try{l.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}a||(a=null),l.send(a)}))}function p(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}var m=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.defaults={timeout:0}}var e,r,n;return e=t,r=[{key:"dispatchRequest",value:function(t){var e;return null!==(e=t.data)&&"object"===a(e)&&(t.headers||(t.headers={}),t.headers["Content-Type"]="application/json;charset=utf-8",t.data=JSON.stringify(t.data)),f(t).then((function(t){return t.data=p(t.data),t}),(function(t){return t&&t.response&&(t.response.data=p(t.response.data)),Promise.reject(t)}))}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(i(i({},e),{},{url:t,method:"get"}))}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(i(i({},r),{},{url:t,method:"post",data:r.data?r.data:e}))}}],r&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),v=new m;function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function g(t){return"[object Array]"===Object.prototype.toString.call(t)}function b(t){return null!==t&&"object"===y(t)}function w(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function S(t,e){if(null!=t)if("object"!==y(t)&&(t=[t]),g(t))for(var r=0,n=t.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=n+r?(n=i,[4,E(0)]):[3,3]):[3,4];case 2:a.sent(),a.label=3;case 3:return++o,[3,1];case 4:return[2]}}))}))}function T(t){t.then(void 0,(function(){}))}function I(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]+e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]+e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]+e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]+e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function N(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var r=[0,0,0,0];return r[3]+=t[3]*e[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=t[2]*e[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=t[3]*e[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=t[1]*e[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[2]*e[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=t[3]*e[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function M(t,e){return 32===(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])}function R(t,e){return 0===(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),t=D(t=N(t,[4283543511,3981806797]),[0,t[0]>>>1]),t=D(t=N(t,[3301882366,444984403]),[0,t[0]>>>1])}function F(t){return parseInt(t)}function H(t){return parseFloat(t)}function W(t,e){return"number"==typeof t&&isNaN(t)?e:t}function G(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function Z(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var r=1/e;return Math.round(t*r)/r}function Y(t){return t&&"object"==typeof t&&"message"in t?t:{message:t}}function U(t,e,r){var n=Object.keys(t).filter((function(t){return!function(t,e){for(var r=0,n=t.length;r=4}function z(){var t=window,e=navigator;return G(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function J(){var t=window,e=navigator;return G(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function B(){var t=window;return G(["safari"in t,!("DeviceMotionEvent"in t),!("ongestureend"in t),!("standalone"in navigator)])>=3}function q(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function Q(){var t=z(),e=function(){var t,e,r=window;return G(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}();if(!t&&!e)return!1;var r=window;return G(["onorientationchange"in r,"orientation"in r,t&&!("SharedWorker"in r),e&&/android/i.test(navigator.appVersion)])>=2}function K(t){var e=new Error(t);return e.name=t,e}function $(t,e,r){var n,o,i;return void 0===r&&(r=50),L(this,void 0,void 0,(function(){var a,s;return A(this,(function(c){switch(c.label){case 0:a=document,c.label=1;case 1:return a.body?[3,3]:[4,E(r)];case 2:return c.sent(),[3,1];case 3:s=a.createElement("iframe"),c.label=4;case 4:return c.trys.push([4,,10,11]),[4,new Promise((function(t,r){var n=!1,o=function(){n=!0,t()};s.onload=o,s.onerror=function(t){n=!0,r(t)};var i=s.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",e&&"srcdoc"in s?s.srcdoc=e:s.src="about:blank",a.body.appendChild(s);var c=function(){var t,e;n||("complete"===(null===(e=null===(t=s.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?o():setTimeout(c,10))};c()}))];case 5:c.sent(),c.label=6;case 6:return(null===(o=null===(n=s.contentWindow)||void 0===n?void 0:n.document)||void 0===o?void 0:o.body)?[3,8]:[4,E(r)];case 7:return c.sent(),[3,6];case 8:return[4,t(s,s.contentWindow)];case 9:return[2,c.sent()];case 10:return null===(i=s.parentNode)||void 0===i||i.removeChild(s),[7];case 11:return[2]}}))}))}function tt(t){for(var e=function(t){for(var e,r,n="Unexpected syntax '"+t+"'",o=/^\s*([a-z-]*)(.*)$/i.exec(t),i=o[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,c=function(t,e){a[t]=a[t]||[],a[t].push(e)};;){var u=s.exec(o[2]);if(!u)break;var l=u[0];switch(l[0]){case".":c("class",l.slice(1));break;case"#":c("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(n);c(d[1],null!==(r=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==r?r:"");break;default:throw new Error(n)}}return[i,a]}(t),r=e[0],n=e[1],o=document.createElement(null!=r?r:"div"),i=0,a=Object.keys(n);i.6*r.length}))).sort(),[2,o]}var s}))}))},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return $((function(r,n){var o=n.document,i=o.body,a=i.style;a.width=e+"px",a.webkitTextSizeAdjust=a.textSizeAdjust="none",z()?i.style.zoom=""+1/n.devicePixelRatio:J()&&(i.style.zoom="reset");var s=o.createElement("div");return s.textContent=j(Array(e/20<<0)).map((function(){return"word"})).join(" "),i.appendChild(s),t(o,i)}),'')}((function(t,e){for(var r={},n={},o=0,i=Object.keys(wt);o=3}())return-1;var r=new e(1,5e3,44100),n=r.createOscillator();n.type="triangle",n.frequency.value=1e4;var o=r.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,n.connect(o),o.connect(r.destination),n.start(0);var i=function(t){var e=3,r=500,n=500,o=5e3,i=function(){},a=new Promise((function(a,s){var c=!1,u=0,l=0;t.oncomplete=function(t){return a(t.renderedBuffer)};var d=function(){setTimeout((function(){return s(K("timeout"))}),Math.min(n,l+o-Date.now()))},h=function(){try{switch(t.startRendering(),t.state){case"running":l=Date.now(),c&&d();break;case"suspended":document.hidden||u++,c&&u>=e?s(K("suspended")):setTimeout(h,r)}}catch(t){s(t)}};h(),i=function(){c||(c=!0,l>0&&d())}}));return[a,i]}(r),a=i[0],s=i[1],c=a.then((function(t){return function(t){for(var e=0,r=0;r=3||r.push(e.languages);else if("string"==typeof e.languages){var o=e.languages;o&&r.push(o.split(","))}return r},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return W(H(navigator.deviceMemory),void 0)},screenResolution:function(){var t=screen,e=function(t){return W(F(t),null)},r=[e(t.width),e(t.height)];return r.sort().reverse(),r},hardwareConcurrency:function(){return W(F(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var r=(new e).resolvedOptions().timeZone;if(r)return r}var n,o=(n=(new Date).getFullYear(),-Math.max(H(new Date(n,0,1).getTimezoneOffset()),H(new Date(n,6,1).getTimezoneOffset())));return"UTC"+(o>=0?"+":"")+Math.abs(o)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,e;if(!(X()||(t=window,e=navigator,G(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!X())))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&J()&&!B()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return G(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],r=0;r>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function(t){for(var e="",r=0,n=Object.keys(t).sort();r=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v"+C+"/npm-monitoring",!0),t.send()}catch(t){console.error(t)}}(),[4,At(r)];case 1:return t.sent(),[2,jt(U(St,{debug:n},[]),n)]}}))}))},hashComponents:Lt,componentsToDebugString:_t};function Et(){Et=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function d(){}function h(){}function f(){}var p={};s(p,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(_([])));v&&v!==e&&r.call(v,o)&&(p=v);var y=f.prototype=d.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Pt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function Ot(){var t=function(){var t=!1;try{var e=document.createElement("div");e.className="_adbchkr adsbygoogle Ad-Container sidebar-ad ad-slot ad ads doubleclick ad-placement ad-placeholder adbadge BannerAd adsbox",e.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),e.setAttribute("data-ad-manager-id","1"),e.setAttribute("data-ad-module","1"),e.setAttribute("data-ad-width","100"),e.setAttribute("data-adblockkey","200"),e.setAttribute("data-advadstrackid","1"),e.innerHTML='
',document.body.appendChild(e);var r=document.querySelector(".Ad-Container");t=!r||0===r.offsetHeight}catch(t){}return t}()||function(){var t=["AdHeader","AdContainer","AD_Top","homead","ad-lead"],e=document.createElement("div");e.className="_adbchkr",e.innerHTML=t.map((function(t){return'
')})).join(""),e.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),document.body.appendChild(e);for(var r=0,n=t;r0&&void 0!==i[0]?i[0]:{}).useScriptLoadCheck,r=void 0===e||e,window.self===window.top){t.next=3;break}return t.abrupt("return",!1);case 3:if(n=Ot(),t.t0=r,!t.t0){t.next=9;break}return t.next=8,new Promise((function(t){var e=document.createElement("script");e.async=!0,e.src="https://js.capndr.com/advertising.js",e.onload=function(){return t(!1)},e.onerror=function(){return t(!0)},document.head.appendChild(e)}));case 8:t.t0=t.sent;case 9:return o=t.t0,t.abrupt("return",o||n);case 11:case"end":return t.stop()}}),t)})),It=function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Pt(i,n,o,a,s,"next",t)}function s(t){Pt(i,n,o,a,s,"throw",t)}a(void 0)}))},It.apply(this,arguments)}function Nt(t){return"string"==typeof t}var Mt={write:function(t,e,r,n,o,i){var a=[];a.push("".concat(t,"=").concat(encodeURIComponent(e))),"number"==typeof r&&a.push("expires="+new Date(r).toUTCString()),Nt(n)&&a.push("path="+n),Nt(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}};function Rt(t){var e,r="0123456789abcdef";function n(t){var e,n="";for(e=0;e<=3;e++)n+=r.charAt(t>>8*e+4&15)+r.charAt(t>>8*e&15);return n}function o(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function i(t,e,r,n,i,a){return o(function(t,e){return t<>>32-e}(o(o(e,t),o(n,a)),i),r)}function a(t,e,r,n,o,a,s){return i(e&r|~e&n,t,e,o,a,s)}function s(t,e,r,n,o,a,s){return i(e&n|r&~n,t,e,o,a,s)}function c(t,e,r,n,o,a,s){return i(e^r^n,t,e,o,a,s)}function u(t,e,r,n,o,a,s){return i(r^(e|~n),t,e,o,a,s)}var l,d,h,f,p=function(t){var e,r=1+(t.length+8>>6),n=new Array(16*r);for(e=0;e<16*r;e++)n[e]=0;for(e=0;e>2]|=t.charCodeAt(e)<>2]|=128<1&&void 0!==arguments[1]?arguments[1]:null;this.authStatus=t,this.nextUpdate=e,Gt.set(this.localStoreKey,JSON.stringify({authStatus:t,nextUpdate:e}))}},{key:"isUpdatePossible",value:function(){return!this.nextUpdate||function(t,e){if(!t||!e)return null;var r=60*e*1e3;return Date.now()-t>r}(this.nextUpdate,this.betweenUpdateDelayMins)}},{key:"loadYoutubeAuthMarker",value:function(){var t=Gt.get(this.localStoreKey);if(t)try{var e=JSON.parse(t);this.authStatus=e.authStatus,this.nextUpdate=e.nextUpdate}catch(t){}}},{key:"detectYouTubeAuth",value:function(){var t=document.createElement("img");return t.referrerPolicy="no-referrer",t.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((function(e){t.onload=function(){e(!0)},t.onerror=function(){e(!1)}}))}}]),t}();function Yt(t,e){for(var r=0;r>8*e+4&15)+r.charAt(t>>8*e&15);return n}function o(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function i(t,e,r,n,i,a){return o(function(t,e){return t<>>32-e}(o(o(e,t),o(n,a)),i),r)}function a(t,e,r,n,o,a,s){return i(e&r|~e&n,t,e,o,a,s)}function s(t,e,r,n,o,a,s){return i(e&n|r&~n,t,e,o,a,s)}function c(t,e,r,n,o,a,s){return i(e^r^n,t,e,o,a,s)}function u(t,e,r,n,o,a,s){return i(r^(e|~n),t,e,o,a,s)}var l,d,h,f,p=function(t){var e,r=1+(t.length+8>>6),n=new Array(16*r);for(e=0;e<16*r;e++)n[e]=0;for(e=0;e>2]|=t.charCodeAt(e)<>2]|=128<=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Qt(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function Kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $t(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||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}},z=function(t,e){for(var r in e)if(typeof e[r]===a&&e[r].length>0){for(var o=0;o2&&(t[u]="iPad",t[d]=y),t},this.getEngine=function(){var t={};return t[l]=n,t[f]=n,X.call(t,g,w.engine),t},this.getOS=function(){var t={};return t[l]=n,t[f]=n,X.call(t,g,w.os),S&&!t[l]&&b&&"Unknown"!=b.platform&&(t[l]=b.platform.replace(/chrome os/i,H).replace(/macos/i,W)),t},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 g},this.setUA=function(t){return g=typeof t===s&&t.length>350?U(t,350):t,this},this.setUA(g),this};q.VERSION="1.0.35",q.BROWSER=G([l,f,c]),q.CPU=G([p]),q.DEVICE=G([u,h,d,m,v,g,y,b,w]),q.ENGINE=q.OS=G([l,f]),t.exports&&(e=t.exports=q),e.UAParser=q;var Q=typeof r!==i&&(r.jQuery||r.Zepto);if(Q&&!Q.ua){var K=new q;Q.ua=K.getResult(),Q.ua.get=function(){return K.getUA()},Q.ua.set=function(t){K.setUA(t);var e=K.getResult();for(var r in e)Q.ua[r]=e[r]}}}("object"==typeof window?window:le)},de(he={exports:{}},he.exports),he.exports);var pe={write:function(t,e,r,n,o,i){var a=[];a.push("".concat(t,"=").concat(encodeURIComponent(e))),"number"==typeof r&&a.push("expires="+new Date(r).toUTCString()),oe(n)&&a.push("path="+n),oe(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}},me="source",ve="promo",ye="source";var ge=new ae,be={set:function(t,e){return localStorage.setItem(t,e)},get:function(t){return localStorage.getItem(t)},remove:function(t){return localStorage.removeItem(t)}};try{be.set("__try",1),be.get("__try"),be.remove("__try")}catch(t){be=ge}var we=be,Se="_adm_erd",ke="_adm_erdso",xe="_session-key",_e="_session-key_so";function Le(t,e){var r;try{r=window.top!==window&&window.location.origin===window.top.location.origin&&3826===e}catch(t){r=!1}Se=r?ke:Se,xe=r?_e:xe;var n=document.referrer,o=we.get(xe),i=n.split("/")[2]||"",a="";return o?t===o?a=we.get(Se):t!==o&&(a=i,we.set(xe,t)):(a=i,we.set(xe,t)),we.set(Se,a),a}function Ae(){var t="cb_gyro",e=we.get(t)||0;return e||window.addEventListener("deviceorientation",(function(e){null!==e.alpha&&we.set(t,1)})),Number(e)}function je(t){var e,r;return{plugins:(null===(e=t.components.plugins.value)||void 0===e?void 0:e.reduce((function(t,e){return t.push(e.name),t}),[]))||[],languages:(null===(r=t.components.languages.value)||void 0===r?void 0:r.reduce((function(t,e){return e.forEach((function(e){t.includes(e)||t.push(e)})),t}),[]))||[],fonts:t.components.fonts.value||[],fontPreferences:t.components.fontPreferences.value||{},platform:t.components.platform.value||"",colorDepth:t.components.colorDepth.value||0,deviceMemory:t.components.deviceMemory.value||0,hardwareConcurrency:t.components.hardwareConcurrency.value||0,indexedDB:t.components.indexedDB.value||!1,sessionStorage:t.components.sessionStorage.value||!1,localStorage:t.components.localStorage.value||!1,cookiesEnabled:t.components.cookiesEnabled.value||!1,colorGamut:t.components.colorGamut.value||""}}function Ce(t,e,r,n,o){var i=new Error(t);return i.config=e,r&&(i.code=r),i.request=n,i.response=o,i.isHttpError=!0,i.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},i}function Ee(t){return new Promise((function(e,r){var n,o,i=t.data,a=t.headers,s=new XMLHttpRequest,c=(n=t.baseURL,o=t.url,n&&!function(t){return/^([a-z][a-z\d\\+\-\\.]*:)?\/\//i.test(t)}(o)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(n,o):o);if(s.open(t.method.toUpperCase(),function(t,e){if(!e)return t;var r=Object.keys(e).reduce((function(t,r,n,o){var i="".concat(t).concat(r,"=").concat(encodeURIComponent(e[r]));return n!==o.length-1&&(i+="&"),i}),"");return"".concat(t,"?").concat(r)}(c,t.params),!0),s.timeout=t.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((function(t,e){var r=re(e.split(": "),2),n=r[0],o=r[1];return n?Jt(Jt({},t),{},ee({},null==n?void 0:n.toLowerCase(),o)):t}),{}):null,o={data:t.responseType&&"text"!==t.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:t,request:s};!function(t,e,r){!r.status||r.status>=200&&r.status<300?t(r):e(Ce("Request failed with status code "+r.status,r.config,null,r.request,r))}(e,r,o),s=null}},s.onabort=function(){s&&(r(Ce("Request aborted",t,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(Ce("Network Error",t,null,s)),s=null},s.ontimeout=function(){var e="timeout of ".concat(t.timeout,"ms exceeded");t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(Ce(e,t,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&ie(a,(function(t,e){void 0===i&&"content-type"===e.toLowerCase()?delete a[e]:s.setRequestHeader(e,t)})),void 0!==t.withCredentials&&(s.withCredentials=!!t.withCredentials),t.responseType)try{s.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}i||(i=null),s.send(i)}))}function Pe(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}var Oe=function(){function t(e){Kt(this,t),this.defaults={timeout:0}}return te(t,[{key:"dispatchRequest",value:function(t){var e;return null!==(e=t.data)&&"object"===qt(e)&&(t.headers||(t.headers={}),t.headers["Content-Type"]="application/json;charset=utf-8",t.data=JSON.stringify(t.data)),Ee(t).then((function(t){return t.data=Pe(t.data),t}),(function(t){return t&&t.response&&(t.response.data=Pe(t.response.data)),Promise.reject(t)}))}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(Jt(Jt({},e),{},{url:t,method:"get"}))}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(Jt(Jt({},r),{},{url:t,method:"post",data:r.data?r.data:e}))}}]),t}(),Te=new Oe;function Ie(t,e){if(!t||!e)return null;var r=60*e*1e3;return Date.now()-t>r}function Ne(){return new Promise((function(t,e){var r,n,o="Unknown";function i(e){t({isPrivate:e,browserName:o})}function a(t){return t===eval.toString().length}function s(){void 0!==navigator.maxTouchPoints?function(){try{var t=window.indexedDB.open("test",1);t.onupgradeneeded&&(t.onupgradeneeded=function(t){var e=t.target.result;try{e.createObjectStore("test",{autoIncrement:!0}).put(new Blob),i(!1)}catch(t){/BlobURLs are not yet supported/.test(t.message)?i(!0):i(!1)}}),i(!1)}catch(t){i(!1)}}():function(){var t=window.openDatabase,e=window.localStorage;try{t(null,null,null,null)}catch(t){return i(!0)}try{e.setItem("test","1"),e.removeItem("test")}catch(t){return i(!0)}i(!1)}()}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,e){var r;i(e<(void 0!==(r=window).performance&&void 0!==r.performance.memory&&void 0!==r.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824))}),(function(t){e(new Error("detectIncognito somehow failed to query storage quota: "+t.message))}))}function u(){void 0!==Promise&&void 0!==Promise.allSettled?c():(0,window.webkitRequestFileSystem)(0,1,(function(){i(!1)}),(function(){i(!0)}))}void 0!==(n=navigator.vendor)&&0===n.indexOf("Apple")&&a(37)?(o="Safari",s()):function(){var t=navigator.vendor;return void 0!==t&&0===t.indexOf("Google")&&a(33)}()?(r=navigator.userAgent,o=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)?(o="Firefox",i(void 0===navigator.serviceWorker)):void 0!==navigator.msSaveBlob&&a(39)?(o="Internet Explorer",i(void 0===window.indexedDB)):e(new Error("detectIncognito cannot determine the browser"))}))}var Me="__adm-vid",Re="__adm-vid_new",De=10080;function Ve(){return Ve=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Qt(i,n,o,a,s,"next",t)}function s(t){Qt(i,n,o,a,s,"throw",t)}a(void 0)}))}}(Bt().mark((function t(e,r){var n,o,i,a;return Bt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,t.next=3,Ne();case 3:return o=t.sent,t.prev=4,t.next=7,Te.post("https://fp.metricswpsh.com/fp?tag_id=".concat(e),Jt({timezoneOlson:n,incognito:o.isPrivate},r.components),{withCredentials:!0});case 7:return a=t.sent,t.abrupt("return",{fp:a.data.fp,fp_str:(null==a||null===(i=a.data)||void 0===i?void 0:i.fp_str)||""});case 11:return t.prev=11,t.t0=t.catch(4),console.warn(t.t0),t.abrupt("return",null);case 15:case"end":return t.stop()}}),t,null,[[4,11]])}))),Ve.apply(this,arguments)}function Fe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(){var t=JSON.parse(we.get(Me)),e=JSON.parse(we.get(Re));return e&&!Ie(e.createdAt,De)?{fp:e.fpValue,fp_str:e.fpValueStr||""}:t&&"object"===qt(t.fpValue)&&null!==t.fpValue&&!Ie(t.createdAt,De)?{fp:t.fpValue.fp,fp_str:t.fpValue.fp_str||""}:t&&"number"==typeof t.fpValue&&!Ie(t.createdAt,De)?{fp:t.fpValue,fp_str:t.fpValueStr||""}:null}();return r||function(t,e){return Ve.apply(this,arguments)}(t,e).then((function(t){return e=t,we.remove(Me),void we.set(Re,JSON.stringify({fpValue:e.fp,fpValueStr:e.fp_str,createdAt:Date.now()}));var e})),r}var He={utm_source:"utm1",utm_medium:"utm2",utm_campaign:"utm3",utm_content:"utm4",campaign:"camp"};var We={devModeQueryStringParameter:"adm_is_dev",utm_mapping:!1,iabcat:25,iab_extended:"25-3",label:1,script_defer:!1,tagId:null,default_keywords:[]};function Ge(t){var e,r,n,o,i,a=t.visitorId,s=t.isAdBlock,c=t.sessionId,u=t.isTubeSite,l=t.fingerprint,d=t.userAgentData,h=void 0===d?{}:d,f=t.tagAbVersion,p=void 0===f?"a":f,m=t.magmaClickResolverEnable,v=t.config,y=void 0===v?We:v,g=t.v2,b=void 0===g?0:g,w=t.siteId,S=void 0===w?null:w,k=(e=location.search.split("?"))[e.length-1].split("&").reduce((function(t,e){var r=re(e.split("="),2),n=r[0],o=r[1];return n&&(t[n]=o),t}),{}),x=Boolean(window.web3||window.ethereum),_=(r=document.title,n=document.head.querySelector("meta[name=keywords]"),o=document.head.querySelector("meta[name=description]"),i=r,[n,o].forEach((function(t){i+=t?" ".concat(t.content):""})),i.trim().replace(/\s?[,.:;!?/|&-]?\s/g,(function(t){return"&"===t||"|"===t?"":","}))),L=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="_tp_",o={};return t.forEach((function(t){var i=we.get(n+t),a=e[t]||e[He[t]]||e[r[t]];o[t]=a||i||"",a&&we.set(n+t,a)})),o}(["utm_source","utm_medium","utm_campaign","utm_content","campaign"],k,y.utm_mapping),A=function(t){var e=0;return null!==pe.read(me)&&(e=pe.read(me)),[ve,ye].forEach((function(r){t[r]&&(pe.write(me,t[r],Date.now()+31536e6),e=t[r])})),Number(e)}(k);m&&0===A&&L.campaign&&(L.utm_source="mck",L.utm_medium=L.campaign,L.utm_campaign=S,A=Number(S));var j,C,E,P=function(){try{var t,e,r="topsids";if("browsingTopics"in document&&null!==(t=document)&&void 0!==t&&null!==(e=t.featurePolicy)&&void 0!==e&&e.allowsFeature("browsing-topics")){document.browsingTopics().then((function(t){var e=t.map((function(t){return t.topic}));we.set(r,JSON.stringify(e))}));var n=we.get(r);return n&&JSON.parse(n)||[]}return[]}catch(t){return[]}}(),O=Fe(y.tagId,l);return{userId:a,isAdBlock:s,isMetaMaskActive:x,isSslProtocol:"https:"===window.location.protocol,resolution:[+(screen&&screen.width||window.outerWidth),+(screen&&screen.height||window.outerHeight)],labels:ue.get("labels")||"",sub:A,title:window.document.title,tags:"",debugMode:"1"===k[y.devModeQueryStringParameter],holdableQSParams:L,qs:k,ua:(E=(new fe).getResult(),E.device.type=E.device.type||"desktop",E),timezone:Math.trunc((new Date).getTimezoneOffset()/-60),timezoneOlson:window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,entryReferrerDomain:Le(c,y.tagId),magmaSourceId:pe.read("magma_source"),keywords:encodeURIComponent(_),isAccelerometer:(j="cb_acce",C=we.get(j)||0,C||window.addEventListener("devicemotion",(function(t){null!==t.accelerationIncludingGravity.x&&we.set(j,1)})),Number(C)),isGyroscope:Ae(),isTubeSite:u,fingerprintParams:je(l),page:encodeURIComponent(window.location.href).replace(/%2F/g,"/"),userAgentData:h,visitorId:O?O.fp:null,visitorIdString:O?O.fp_str:"",v2:b,iabCategory:y.iabcat,iabCategoryExtended:y.iab_extended,mainCategory:y.label,scriptDefer:y.script_defer,tagAbVersion:p,defaultKeywords:y.default_keywords,topics:P}}function Ze(){Ze=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function d(){}function h(){}function f(){}var p={};s(p,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(_([])));v&&v!==e&&r.call(v,o)&&(p=v);var y=f.prototype=d.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function _(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Ye(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function Ue(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ye(i,n,o,a,s,"next",t)}function s(t){Ye(i,n,o,a,s,"throw",t)}a(void 0)}))}}function Xe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ze(t,e){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function nr(t){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(t)}function or(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function ir(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){or(i,n,o,a,s,"next",t)}function s(t){or(i,n,o,a,s,"throw",t)}a(void 0)}))}}function ar(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sr(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=200&&r.status<300?t(r):e(pr("Request failed with status code "+r.status,r.config,null,r.request,r))}(e,r,o),s=null}},s.onabort=function(){s&&(r(pr("Request aborted",t,"ECONNABORTED",s)),s=null)},s.onerror=function(){r(pr("Network Error",t,null,s)),s=null},s.ontimeout=function(){var e="timeout of ".concat(t.timeout,"ms exceeded");t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(pr(e,t,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&mr(a,(function(t,e){void 0===i&&"content-type"===e.toLowerCase()?delete a[e]:s.setRequestHeader(e,t)})),void 0!==t.withCredentials&&(s.withCredentials=!!t.withCredentials),t.responseType)try{s.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}i||(i=null),s.send(i)}))}function yr(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}var gr=function(){function t(e){ar(this,t),this.defaults={timeout:0}}return cr(t,[{key:"dispatchRequest",value:function(t){var e;return null!==(e=t.data)&&"object"===nr(e)&&(t.headers||(t.headers={}),t.headers["Content-Type"]="application/json;charset=utf-8",t.data=JSON.stringify(t.data)),vr(t).then((function(t){return t.data=yr(t.data),t}),(function(t){return t&&t.response&&(t.response.data=yr(t.response.data)),Promise.reject(t)}))}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(er(er({},e),{},{url:t,method:"get"}))}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(er(er({},r),{},{url:t,method:"post",data:r.data?r.data:e}))}}]),t}(),br=new gr,wr="_kwrds",Sr={keywords:{},pages_count:0},kr=function(){function t(e){ar(this,t),this.keywordsHistory=Sr,this.sharedStorage=e}var e,r,n,o;return cr(t,[{key:"mapForAuction",value:function(t){var e={keywords:[],pages_count:t.pages_count};return e.keywords=Object.keys(t.keywords).map((function(e){return{keyword:e,counter:t.keywords[e].length||0}})),e}},{key:"mapForManager",value:function(t){var e=Date.now();return{keywords:t.reduce((function(t,r){return t[r]||(t[r]=[]),t[r].push(e),t}),{}),pages_count:1}}},{key:"filterHistoryFromExpired",value:function(t){var e=new Set,r=t.keywords;return Object.keys(r).forEach((function(t){var n=r[t];r[t]=n.filter((function(t){var r=t+2592e5{var{createHashPath:i}=a;d&&(t.adb_protect="popunder"===t.type||825===e&&"banner"===t.type||825===e&&"inpage"===t.type);var h=Cr?"modern":"legacy",f=t.assets["".concat(h,"_js")],p=null!=f?f:function(t,e,r){return!Ar.includes(t.type)||r?t.assets.js:t.assets.js.map((t=>t.includes(".m.js")||t.includes(".l.js")?t:xr(t,e)))}(t,h,o);t.assets.js=p.map((e=>{var r={src:e,type:h};return!o&&i&&_r.includes(t.type)&&(r.src=l.convertToHashedUrl(r.src,i)),r}));var m=u[t.type];return t.spots=t.spots.map(((e,a)=>(e.config.label=r,e.config.iabcat=n,e.config.adm_loader=!!i||o,"banner"===t.type&&"1x1"===e.config.options.size&&(e.delay_ms=3e3),Lr.includes(e.config.spot_id)&&"in_stream_ad"===t.type&&(e.delay_ms=24e4),c&&jr.includes(t.type)&&!d&&(e.config.proxy_domain=c),s&&"popunder"===t.type&&(e.config.options.bind_to=null,e.config.options.ignore_to=null),i&&"popunder"===t.type&&(e.config.scripts.interstitial=l.convertToHashedUrl(e.config.scripts.interstitial)),d&&(e.config.is_url_hashing=!1,e.config.options&&(e.config.options.is_hash_ssp_url=!1)),m?g(m)&&m[a]?k(e,m[a]):k(e,m):e))),t}))}function Pr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r255||(n=t.charCodeAt(s++))>255||(o=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=Rr[(e=r<<16|n<<8|o)>>18&63]+Rr[e>>12&63]+Rr[e>>6&63]+Rr[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i});class Vr{constructor(t){var{wrappedUrlPath:e}=t;this.wrappedUrlPath=e}extendedEncode(t){return x(Dr(t),{sw:"gu1",Sw:"gu2",sW:"gu3",SW:"gu4"})}wrapVastUrl(t,e){var r=t.includes("http")?t:"https://".concat(t);return"".concat(r).concat(this.wrappedUrlPath).concat(this.extendedEncode(e))}}function Fr(t,e){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],n=Object.keys(t).filter((e=>{var r=t[e];return!(!g(r)||!r.length)||!!b(r)&&Object.keys(r).filter((t=>void 0!==r[t])).length}));return n.length?n.every((r=>e[r]&&e[r](t[r]))):r}function Kr(t,e){var{env:r,Logger:n}=e,o=function(t){var{ua:e,qs:r,entryReferrerDomain:n}=t;return{platforms:t=>t.includes(e.device.type||"desktop"),browsers:t=>t.includes(e.browser.name),urls:t=>t.some((t=>window.location.href.includes(t))),ls:t=>Object.keys(t).every((e=>localStorage.getItem(e)===t[e])),ss:t=>Object.keys(t).every((e=>localStorage.getItem(e)===t[e])),qs:t=>Object.keys(t).every((e=>r[e]===t[e])),cookies:t=>(t=Array.isArray(t)?t:[t]).some((t=>Object.keys(t).every((e=>t[e]===Mt.read(e))))),vars:t=>Object.keys(t).every((e=>window[e]===t[e])),entry_referrer:t=>t.some((t=>(":direct:"===t||""===t)&&""===n||t&&n.includes(t)))}}(r);return t.filter((t=>t.ignore&&t.ignore.length&&t.ignore.some((t=>Qr(t,o)))?(n.warn("spot was excluded by ignore rules",t),!1):!t.bind||!t.bind.length||t.bind.some((e=>{var r=Qr(e,o,!0);return r||n.warn("spot was not bind by conditions",t),r}))))}function $r(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}class tn{constructor(t){this.script=t}start(){return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$r(i,n,o,a,s,"next",t)}function s(t){$r(i,n,o,a,s,"throw",t)}a(void 0)}))}}((function*(){return!1}))()}runScript(){var t=document.createElement("div");return t.innerHTML=this.script,t.childNodes.forEach((t=>{var e=t.cloneNode(!0);if("SCRIPT"===t.nodeName){for(var r=document.createElement("script"),n=0;n{if(!e)return Zr.remove(dn),t;try{var r=JSON.parse(Zr.get(dn));if(r&&r.ttl+nn>Date.now())return[t[r.version]]}catch(t){Zr.remove(dn)}var n=(t=>Math.floor(Math.random()*t.length))(t);return Zr.set(dn,JSON.stringify({version:n,ttl:Date.now()})),[t[n]]};function fn(t,e,r){var n=on[e];if(!t||!n)return null;var o=n[r];return"".concat(t.protocol,"//").concat(o.replace("$domain",t.host))}function pn(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function mn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vn(t){for(var e=1;e{var r,n,o=vn(vn({},e),{},{autostart:null===(r=null!==(n=e.autostart)&&void 0!==n?n:t.autostart)||void 0===r||r});return t.customDomain&&t.isTagCD&&(o.config.primary_auction_url=fn(t.customDomain,t.type,"auction")),o})).filter((t=>t.autostart));n.length&&(t.loadAssets(),t.provideSpotsToLibrary(n))}}}))()}runSpot(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{spot_id:e}=t;if(e){var r=this.spots.find((t=>t.config.spot_id===e));r&&(t=vn(vn({},r),t)),this.filterSpots([r]).length&&(this.loadAssets(),Br(this.connectionName,(e=>{this.Logger.info("Run ".concat(this.type," spot"),t),this.provideSpotToLibrary(t,e)})))}}provideSpotsToLibrary(t){var e=e=>t.forEach((t=>this.provideSpotToLibrary(t,e)));Br(this.connectionName,(t=>e(t)));try{new Event("try"),window.addEventListener(this.connectionName,(t=>{"function"==typeof t._init&&e(t._init)}),!1)}catch(t){var r=window[this.connectionName];"function"!=typeof r&&(r=function(t,e,n){r._list.forEach((r=>{"function"==typeof r&&r(t,e,n)}))}),r._list||(r._list=[]),r._list.push((t=>{"function"==typeof t&&e(t)})),window[this.connectionName]=r}}applySpotConfigTests(t){var e,r,n=null==t||null===(e=t.options)||void 0===e?void 0:e.split_test;if(null==t||null===(r=t.options)||void 0===r||!r.has_split_tests||!n)return t;var o=Yr(1,100),i=qr(t.test_options);return n.traffic_volumee(i,this.env,this.providedDependencies,o);r?setTimeout(a,r):a()}filterSpots(t){return Kr(t,{env:this.env,Logger:this.Logger})}loadAssets(){if(!this.isAssetsLoaded){this.isAssetsLoaded=!0;var t=this.jsLinks;"inpage"===this.type&&(t=hn(this.jsLinks,this.isSplitTestActive));var e=document.querySelector("head, body");t.forEach((t=>{if(this.customDomain&&this.isTagCD)!function(t){var{node:e,scriptRecord:r,scriptDefer:n,customSrc:o}=t;if(!document.querySelector('[src="'.concat(r.src,'"]'))){var i=document.createElement("script");i.src=xr(o,r.type),n?i.defer=!0:i.async=!0,i.onerror=()=>{var t=document.createElement("script");t.src=r.src,n?t.defer=!0:t.async=!0,e.append(t)},e.append(i)}}({node:e,scriptRecord:t,scriptDefer:this.env.scriptDefer,customSrc:fn(this.customDomain,this.type,"js")});else{var r=function(t,e){if(document.querySelector('[src="'.concat(t.src,'"]')))return null;var r=document.createElement("script");return r.src=t.src,e?r.defer=!0:r.async=!0,r}(t,this.env.scriptDefer);r&&e.appendChild(r)}}))}}}function bn(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}class wn{constructor(t){var{hashedDomain:e}=t;this.hashedDomain=e,this.proxyPathname="/api/senddata",this.proxyIpv4Pathname="/api/ipv4check"}fetchCreatives(t){var e=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){bn(i,n,o,a,s,"next",t)}function s(t){bn(i,n,o,a,s,"throw",t)}a(void 0)}))}}((function*(){var{type:r,params:n,proxyDomain:o,proxyPathname:i,requestType:a="POST"}=t,s=o||e.hashedDomain,c=i||e.proxyPathname,u="".concat(s).concat(c,"?"),l=Dr(n);"GET"===a&&(u+="?site=".concat(r,"&tail=").concat(Dr(n)));var d={url:u,method:a.toLowerCase()};"POST"===a&&(d.data={site:r,tail:l});var{data:h}=yield v.dispatchRequest(d);return h}))()}sendIpv4Check(t){var{proxyDomain:e,proxyPathname:r,params:n}=t,o=e||this.hashedDomain,i=r||this.proxyIpv4Pathname;v.get("".concat(o).concat(i,"?mark=").concat(Dr(n)))}}function Sn(t,e){for(var r=0;rt&&(this.setToStorage(Ln,r),e=r),this.sessionState=e||{id:Math.random().toString(36).substring(2),startTs:t},e||(this.setToStorage(Ln,this.sessionState),this.setToStorage(Zr,this.sessionState))}getDurationTime(t){var e=Date.now()-this.sessionState.startTs;return"min"===t?Number((e/1e3/60).toFixed(2)):e}getSessionId(){return this.sessionState.id}}var jn="_admSptsInVw";class Cn{constructor(){this.spotsInView=window[jn]||[],window[jn]=this.spotsInView,this.deviceType=null,this.setWidgetPosition=(t,e)=>{t.positionOffset=e?10+e.positionOffset+e.widgetNode.offsetHeight:10,t.position.includes("top")&&(t.widgetNode.style.top="".concat(t.positionOffset,"px")),t.position.includes("bottom")&&(t.widgetNode.style.bottom="".concat(t.positionOffset,"px"))}}placeToPosition(t){var{spotId:e,widgetNode:r,position:n}=t;this.spotsInView.push({spotId:e,widgetNode:r,position:n}),this.reposition(n)}removeFromPosition(t,e){var r=this.spotsInView.filter((e=>e.spotId!==t));this.spotsInView.splice(0,this.spotsInView.length,...r),this.reposition(e)}reposition(t){var e=this.spotsInView.filter((e=>"mobile"===this.deviceType?e.position.split("-")[0]===t.split("-")[0]:e.position===t));e.forEach(((t,r)=>{this.setWidgetPosition(t,e[r-1])}))}}function En(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function Pn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){En(i,n,o,a,s,"next",t)}function s(t){En(i,n,o,a,s,"throw",t)}a(void 0)}))}}var On=[1411,1410],Tn="pxlsStrSnt",In="pxlsSnt";function Nn(t){return Zr.get(t)}function Mn(t){Zr.set(t,"1")}function Rn(t){return Dn.apply(this,arguments)}function Dn(){return Dn=Pn((function*(t){t&&On.forEach((e=>function(t){var e=document.createElement("iframe");e.referrerPolicy="no-referrer",e.src=t,e.width="1px",e.height="1px",e.setAttribute("allowtransparency",!0),e.setAttribute("style","padding:0;margin:0;border:0;position:absolute;width:1px!important;height:1px!important;top:0!important;"),e.marginheight="0",e.marginwidth="0",document.body.appendChild(e)}("https://s.uuidksinc.net/match/".concat(e,"/?remote_uid=").concat(t))))})),Dn.apply(this,arguments)}function Vn(){return(Vn=Pn((function*(t){var e;if(t)return Nn(Tn)||Nn(In)?void(Nn(In)&&Math.random()<.5&&(Rn(t),Mn(Tn),e=In,Zr.remove(e))):(Rn(t),void Mn(Tn))}))).apply(this,arguments)}class Fn{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(t){var{iabCategoryExtended:e,visitorId:r,userId:n,isMetaMask:o,sessionTime:i,tagAbVersion:a,publisherKeywords:s,cloaking:c,width:u,height:l,userAgentData:d}=t,h=window.top!==window.self;this.generalParameters.site.cat[0]=e,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=o,this.generalParameters.imp[0].ext.tag_ab=a,this.generalParameters.imp[0].ext.st=i,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(t){var e=this.generalParameters,r=k(e.imp[0].ext,t.imp[0].ext),n=k(e.imp[0].pext,t.imp[0].pext),o=t.imp[0].banner||null;return e.imp[0].ext=r,e.imp[0].pext=n,e.imp[0].banner=o,e.fp_params=t.fp_params||null,e.site.id=t.site.id,e}}function Hn(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function Wn(){return Gn.apply(this,arguments)}function Gn(){return Gn=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Hn(i,n,o,a,s,"next",t)}function s(t){Hn(i,n,o,a,s,"throw",t)}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(t){return null}})),Gn.apply(this,arguments)}var Zn="t_v_a";function Yn(){var t="";try{t=JSON.parse(Zr.get(Zn))}catch(t){}if(t&&t.ttl+nn>Date.now())return t.version;var e=qr(["a","b","c","d"]);return Zr.set(Zn,JSON.stringify({version:e,ttl:Date.now()})),e}var Un="in_stream_ad",Xn="popunder";class zn{constructor(){this.handlers=[]}init(){document.addEventListener("click",(t=>this.handleClick(t)))}addHandler(t){this.handlers.push(t)}removeHandler(t){this.handlers=this.handlers.filter((e=>e!==t))}handleClick(t){this.handlers.forEach((e=>e(t)))}}function Jn(t){if(!t)return"";var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"v2":"v1";return"".concat(t.protocol,"//").concat(e,".").concat(t.host,"/tags")}function Bn(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function qn(){return qn=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bn(i,n,o,a,s,"next",t)}function s(t){Bn(i,n,o,a,s,"throw",t)}a(void 0)}))}}((function*(t,e,r,n){var o="tag_id=".concat(t,"&timezone_olson=").concat(e,"&version_name=").concat(r),i="https://notification.tubecup.net/tags";if(!n||!["c","d"].includes(r))try{var{data:a}=yield v.get("".concat(i,"?").concat(o));return a}catch(t){return null}var s=Jn(n,!0);try{var{data:c}=yield v.get("".concat(s,"?").concat(o));return c}catch(t){try{var{data:u}=yield v.get("".concat(i,"?").concat(o));return u}catch(t){return null}}})),qn.apply(this,arguments)}var Qn=function(){function t(t,e){var r,n,o=this;this.LSfield="usCC",this.handler=function(t){o.clickHandler(),o.emptyClicksHandler(t)},this.globalClickHandler=t,this.sessionService=e;var i=this.sessionService.getItem(this.LSfield);this.clickCount=null!==(r=null==i?void 0:i.cls)&&void 0!==r?r:0,this.emptyClicks=null!==(n=null==i?void 0:i.emt)&&void 0!==n?n:0,this.setHandler()}return t.prototype.setHandler=function(){this.globalClickHandler.addHandler(this.handler)},t.prototype.clickHandler=function(){this.firstActionTS||(this.firstActionTS=Date.now()),this.clickCount+=1,this.saveToLS()},t.prototype.emptyClicksHandler=function(t){var e=t.target,r=e.parentElement,n=["a","input","img","svg","path","label","button","video","textarea"],o=["button","textbox"],i=!1;[e,r,null==r?void 0:r.parentElement].forEach((function(t){t&&!i&&(n.includes(t.tagName.toLowerCase())||t.className.match(/btn|button|jw-|video-/gi)||t.hasAttribute("contenteditable")||o.includes(t.getAttribute("role")||""))&&(i=!0)})),i||(this.emptyClicks+=1,this.saveToLS())},t.prototype.saveToLS=function(){var t={cls:this.clickCount,emt:this.emptyClicks};this.sessionService.setItem(this.LSfield,t)},Object.defineProperty(t.prototype,"count",{get:function(){return this.clickCount||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyCount",{get:function(){return this.emptyClicks||0},enumerable:!1,configurable:!0}),t}(),Kn=function(){function t(t){var e=this;this.isTracking=!1,this.LSfield="maxScP",this.maxScrollPercentage=0,this.prevPixelScrolled=0,this.totalPixelScrolled=0,this.totalPercentScrolled=0,this.computeScrollPercentage=function(){var t=window.pageYOffset||document.documentElement.scrollTop,r=document.documentElement.scrollHeight-window.innerHeight,n=t;return e.totalPixelScrolled+=Math.round(Math.abs(n-e.prevPixelScrolled)),e.totalPercentScrolled=Math.round(e.totalPixelScrolled/r*100),e.prevPixelScrolled=n,Math.round(Math.min(100,Math.max(0,n/r*100)))},this.sessionService=t;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 e.startTracking()}),100)}return t.prototype.throttle=function(t,e){var r,n;return function(){for(var o=[],i=0;i{this.sessionService.setItem(this.ClickCounterLSfield,this.clickCount+=1)}))}get count(){var t;return null!==(t=this.sessionService.getItem(this.ClickCounterLSfield))&&void 0!==t?t:0}}function eo(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function ro(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){eo(i,n,o,a,s,"next",t)}function s(t){eo(i,n,o,a,s,"throw",t)}a(void 0)}))}}class no{constructor(){this.storageKey="_shrdstrg"}init(){}setToStorage(t){Zr.set(this.storageKey,JSON.stringify(t))}getFromStorage(){try{return JSON.parse(Zr.get(this.storageKey)||"{}")}catch(t){return{}}}set(t,e){var r=this;return ro((function*(){var n=r.getFromStorage();n[t]=e,r.setToStorage(n)}))()}get(t){var e=this;return ro((function*(){return e.getFromStorage()[t]}))()}remove(t){var e=this;return ro((function*(){var r=e.getFromStorage();delete r[t],e.setToStorage(r)}))()}clear(){var t=this;return ro((function*(){t.setToStorage({})}))()}}function oo(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function io(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=document.createElement("div");return r.style="".concat(t),e&&(r.className=e),r}var ao="#qrrc";function so(){return so=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){oo(i,n,o,a,s,"next",t)}function s(t){oo(i,n,o,a,s,"throw",t)}a(void 0)}))}}((function*(t,e){if(t&&e){var r=yield function(t){var e=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 o=0,i=setInterval((()=>{var a=document.querySelector(t);a&&(clearInterval(i),n(a)),(o+=e)>=r&&(clearInterval(i),n(null))}),e)}))}(ao);if(r){var n=e.slice(-6).split("").map((t=>Number(t))),o=io("width: 60px; height: 10px; overflow: hidden;"),[i,a]=function(t){var e="width: 60px; height: 5px; overflow: hidden; display: flex; justify-content: space-between",r=io(e),n=io(e);return t.forEach((t=>{var e=t<=5;t%2==0?r.appendChild(io("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):r.appendChild(io("width: 8px; height: 4px; background-color: white","_whiteSquare")),e?n.appendChild(io("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):n.appendChild(io("width: 8px; height: 4px; background-color: white","_whiteSquare"))})),[r,n]}(n);o.appendChild(i),o.appendChild(a),r.appendChild(o)}}})),so.apply(this,arguments)}function co(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function uo(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){co(i,n,o,a,s,"next",t)}function s(t){co(i,n,o,a,s,"throw",t)}a(void 0)}))}}class lo{constructor(){this.tagId=null,this.tagAbVersion=Yn(),this.siteId=null,this.magmaClickResolverEnable=!1,this.adFormats=[],this.env=null,this.cloakingConfig=null,this.SessionService=new An,this.SessionService.startSession(),this.PositionService=new Cn,this.HashService=new Xt,this.AuctionService=new Fn,this.Logger=new n("AdManager",e.devMode),this.ytAuthDetector=new Zt,this.ytAuthDetector.loadYoutubeAuthMarker(),this.oScript=null,this.globalClickHandler=new zn,this.clickCounter=new to(this.globalClickHandler,this.SessionService),this.metrics=new $n(this.SessionService,this.globalClickHandler),this.customDomain=null,this.globalClickHandler.init(),this.providedDependencies={GlobalClickHandler:this.globalClickHandler,ClickCounter:this.clickCounter,VastProxyService:new Vr({wrappedUrlPath:e.vastProxyWrappedUrlPath}),hashGenerator:{md5:Rt,getDate:this.HashService.getDateForHash,generateCdnDomain:()=>this.HashService.generateCdnDomain(),generateAuctionUrl:t=>this.HashService.generateAuctionUrl(t),generateNativeAuctionUrl:()=>this.HashService.generateNativeAuctionUrl(),convertToHashedUrl:t=>this.HashService.convertToHashedUrl(t)},DisplayAdblockService:new wn({hashedDomain:this.HashService.generateHashedProxyDomain()}),metrics:this.metrics.trackers,SessionService:this.SessionService,PositionService:this.PositionService,AuctionService:this.AuctionService,cookies:Mt,ytAuthDetector:this.ytAuthDetector},this.hashHelpers={},this.Logger.info("version ".concat(e.version)),this._paramReconciler={},this.isTagCD=["c","d"].includes(this.tagAbVersion)}addReconsileParams(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this._paramReconciler[e]=t[e])}getLocalConfig(){var t=window["{{CONFIG_ADM}}"];return this.getActualConfig(t)}getActualConfig(t){return t.tag_configs?t.tag_configs[this.tagAbVersion]:t}loadCustomTagConfig(t,e){var r=this;return uo((function*(){var n,o=Jn(r.customDomain);try{n=yield v.get("".concat(o,"/").concat(t,"?version_name=").concat(r.tagAbVersion)).then((t=>t.data))}catch(o){n=yield v.get("".concat(e,"/").concat(t,"?version_name=").concat(r.tagAbVersion)).then((t=>t.data))}return n}))()}loadTagConfig(t){var r=this;return uo((function*(){var{createHashTagUrl:n}=r.hashHelpers,o=n?n():e.tagConfigUrl;return r.customDomain&&r.isTagCD?r.loadCustomTagConfig(t,o):v.get("".concat(o,"/").concat(t,"?version_name=").concat(r.tagAbVersion)).then((t=>t.data))}))()}runFormatSpot(t,e){var r=this.adFormats.find((e=>e.type===t));r?r.runSpot(e):this.Logger.warn("AdFormat ".concat(r," no found in config"))}getConfigHelpers(t){var e=e=>t.adformats.find((t=>t.type===e));return{findFormat:e,addSpotToFormat:(t,r)=>{var n=e(t);n&&n.spots.push(r)},findFormatSpot:(t,r)=>{var n=e(t);return n&&n.spots.length?n.spots.find((t=>t.config.spot_id===r)):(this.Logger.warn("Spot ".concat(r," doesn't exist in config")),{config:{},ignore:[],bind:[]})}}}push(t){"function"==typeof t&&t()}enableMagmaClickResolver(t){if(!t)throw Error("siteId - must be passed for magma click resolver proper work");this.magmaClickResolverEnable=!0,this.siteId=t}changeAdFormatOrder(t,e){var r=this.adFormats.findIndex((e=>e.type===t));if(-1!==r){var[n]=this.adFormats.splice(r,1);this.adFormats.splice(e,0,n)}}runAdFormats(){this.adFormats.length&&(this.Logger.info("run tag formats"),10149===this.tagId&&this.changeAdFormatOrder(Un,0),[23106,58635].includes(this.tagId)&&this.changeAdFormatOrder(Xn,0),this.adFormats=this.adFormats.map((t=>{var e=new gn(t,this.env,this.providedDependencies,this.Logger,this.tagId,this.tagAbVersion,this.oScript,this.customDomain);return e.start(),e})))}ph(){var t=this;this.hashHelpers={createHashPath:function(){return t.HashService.createHashPath(...arguments)},createHashTagUrl:function(){return t.HashService.createHashTagUrl(...arguments)},domainHashed:function(){return t.HashService.generateCdnDomain(...arguments)},date:function(){return t.HashService.getDateForHash(...arguments)},md5:Rt}}getAdformatsUrls(){return this.adFormats.flatMap((t=>{var e=t.assets.js.map((t=>{var{src:e}=t;return e}));return"in_stream_ad"===t.type?[...Object.values(t.spots[0].config.scripts),...e]:e}))}initializeSharedStorageAndKeywordsManager(t){this.isDonnyFriendly=t=>("31134"===this.env.qs.promo||"10146"===this.env.qs.campaign)&&t,this.isDonnyFriendly(t)?this.SharedStorage=new no:this.SharedStorage=new $e(e.sharedStorageUrl),this.SharedStorage.init(),this.KeywordsManager=new kr(this.SharedStorage),this.providedDependencies.KeywordsManager=this.KeywordsManager,this.providedDependencies.SharedStorage=this.SharedStorage}init(){var t=arguments,r=this;return uo((function*(){var n=t.length>0&&void 0!==t[0]?t[0]:r.tagId,o=t.length>1?t[1]:void 0;if(!n)throw new Error("[Admanager] - method init accept only string | number | object param");var i=performance.now(),a=b(n);r.tagId=b(n)?n.tagId:n;var s=a?r.getActualConfig(n):r.loadTagConfig(n),c=e.isMyBid||a&&s.is_tnet,[u,l,d,h]=yield Promise.all([s,Ct.load().then((function(t){return t.get()})).then((function(t){return t})),Wn(),Tt({useScriptLoadCheck:!c})]);if(!b(u)||!g(u.adformats))throw new Error("[Admanager] - tag config must be object type and its adformats field must be an array type");var f=!!u.is_tnet,p=window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone;u.v2&&(r.cloakingConfig=yield function(t,e,r,n){return qn.apply(this,arguments)}(u.tagId,p,r.tagAbVersion,r.customDomain));var m,y,w=r.cloakingConfig||u;r.env=Ge({visitorId:l.visitorId,isAdBlock:h,sessionId:r.SessionService.getSessionId(),isTubeSite:f,fingerprint:l,userAgentData:d,tagAbVersion:(m=r.tagAbVersion,y=w.testId,y?"".concat(m,"_").concat(y):"".concat(m)),magmaClickResolverEnable:r.magmaClickResolverEnable,config:w,v2:r.cloakingConfig?1:0,siteId:r.siteId}),r.oScript=w.o_script,r.initializeSharedStorageAndKeywordsManager(f),"b"===r.tagAbVersion&&r.KeywordsManager.asyncProcessKeywords(e.keywordsServiceUrl,r.env.keywords).catch(null),function(t){Vn.apply(this,arguments)}(r.env.visitorIdString),function(t,e){so.apply(this,arguments)}(f,r.env.visitorIdString),r.PositionService.deviceType=r.env.ua.device.type,r.AuctionService.fillGeneralParameters({iabCategoryExtended:"IAB".concat(r.env.iabCategoryExtended),visitorId:r.env.visitorId,isMetaMask:r.env.sessionTime,tagAbVersion:r.env.tagAbVersion,sessionTime:r.SessionService.getDurationTime("min"),publisherKeywords:r.env.keywords,cloaking:r.env.v2,width:r.env.resolution[0],height:r.env.resolution[1],userId:r.env.userId,userAgentData:d});var S=r.HashService.generateHashedProxyDomain(),k=(f||e.isMyBid?null:r.HashService.generateMetricHashDomain())||e.initTrackingUrl,x=performance.now();r.adFormats=Er({tagId:r.tagId,label:w.label,iabcat:w.iabcat,isPhpLoaderActive:!!w.adm_loader,adFormats:w.adformats,hashHelpers:r.hashHelpers,isAdBlock:r.env.isAdBlock,hashedProxyDomain:S,legacySpotsExtend:r._paramReconciler,hashService:r.HashService,tagAbVersion:r.tagAbVersion,isTubeSite:f}),o&&o(),function(t,r){var{label:n,subId:o,userId:i,timezone:a,adManagerVersion:s,tagId:c,screenResolution:u,isAdBlock:l,timezoneOlson:d,utmSource:h,utmMedium:f,utmCampaign:p,utmContent:m,isMetaMaskActive:y,initToStartLatency:g,isCloaking:b,isCloakingResponseEmpty:w,userKeywords:S}=r,k={wl:n,subid:o,user_id:i,timezone:a,ver:s,tag_id:Number(c),screen_resolution:u.join("x"),adblock:Number(l),timezone_olson:d,utm_source:h,utm_medium:f,utm_campaign:p,utm_content:m,mm:Number(y),init_start_latency:Number(g),is_v2:Number(b),is_v2_empty:Number(w),user_keywords:S},x="/in/track?data=".concat(Dr(JSON.stringify(k))),_="".concat(t).concat(x),L="".concat(e.initTrackingUrl).concat(x);v.get(_).catch((()=>{v.get(L)}))}(k,{label:w.label,subId:r.env.sub,userId:Xr(),timezone:r.env.timezone,adManagerVersion:e.version,tagId:w.tagId||0,screenResolution:r.env.resolution,isAdBlock:r.env.isAdBlock,timezoneOlson:r.env.timezoneOlson,utmSource:r.env.holdableQSParams.utm_source,utmMedium:r.env.holdableQSParams.utm_medium,utmCampaign:r.env.holdableQSParams.utm_campaign,utmContent:r.env.holdableQSParams.utm_content,isMetaMaskActive:r.env.isMetaMaskActive,initToStartLatency:((x-i)/1e3).toFixed(2),isCloaking:u.v2||!1,isCloakingResponseEmpty:r.cloakingConfig,userKeywords:r.env.keywords}),r.runAdFormats(),!f&&!e.isMyBid&&Math.random()<.2&&setTimeout((()=>{var t=document.createElement("iframe");t.src="https://adtrace.online/tag",t.setAttribute("style","display: none!important;"),document.body.appendChild(t)}),2e3)}))()}}var ho=document.querySelector("script[".concat(e.tagIdIdentifier,"]")),fo=Array.isArray(window[e.adManagerWindowNamespace])?window[e.adManagerWindowNamespace]:[];if(window[e.adManagerWindowNamespace]=window[e.adManagerWindowNamespace]instanceof lo||new lo,window.a3klsam=window[e.adManagerWindowNamespace],window[e.adManagerWindowNamespace]._paramReconciler=window[e.overrideConfigWindowNamespace]||{},fo.forEach((t=>t())),ho){var po=ho.getAttribute(e.tagIdIdentifier);ho.removeAttribute(e.tagIdIdentifier);var mo=ho.hasAttribute(e.noAutostartIdentifier),vo=ho.hasAttribute(e.customDomainIdentifier);if(po&&(window[e.adManagerWindowNamespace].tagId=po),vo){var yo=new URL(ho.getAttribute("src"));window[e.adManagerWindowNamespace].customDomain={host:yo.host.replace("ajs.",""),protocol:yo.protocol}}po&&!mo&&window[e.adManagerWindowNamespace].init()}})();