(()=>{"use strict";var t={356:(t,e,n)=>{n.d(e,{Z:()=>s});var o=n(81),i=n.n(o),r=n(645),a=n.n(r)()(i());a.push([t.id,'.poper{background-color:#fff;border-radius:6px;box-shadow:4px 4px 11px -3px rgba(0,0,0,.5);color:#333;font-family:Noto,Helvetica Neue,Helvetica,Arial,sans-serif;left:75px;opacity:0;position:fixed;top:10px;transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s;visibility:hidden;width:320px;z-index:2258594000}.poper:before{border:11px solid transparent;border-bottom-color:#fff;content:"";height:0;left:20px;position:absolute;top:-22px;width:0}.poper-content{align-items:center;display:flex;font-size:16px;line-height:1.5;padding:18px 15px 15px 25px}.poper-close{cursor:pointer;height:25px;opacity:.3;position:absolute;right:10px;top:10px;width:25px}.poper-close:hover{opacity:1}.poper-close:after,.poper-close:before{background-color:#333;content:" ";height:25px;left:11px;position:absolute;width:2px}.poper-close:before{transform:rotate(45deg)}.poper-close:after{transform:rotate(-45deg)}.poper-button{background-color:transparent;border:none;color:#b8bbbd;cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;padding:7px 20px;text-transform:uppercase}.actor-positive{color:#1c72bd}.poper-buttons{-webkit-box-pack:end;-moz-box-pack:end;-ms-flex-pack:end;display:flex;justify-content:flex-end;padding:15px 19px}.poper_show{opacity:1;transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s;visibility:visible}.poper-icon{margin-right:20px}.poper-bell{width:30px}@media only screen and (max-width:768px){.poper{left:6vw;top:40%;width:87vw}.poper:before{display:none}}@media screen and (max-width:500px){.poper{border-radius:20px;box-shadow:none;font-family:Roboto,Helvetica,Arial,sans-serif}.puoverlay{background-color:rgba(0,0,0,.65)}.poper-content{font-size:16px;line-height:20px;padding:30px 24px 24px}.poper-buttons{align-items:center;display:flex;padding:12px 24px 24px}.poper-button{color:#2656c9;font-size:18px;font-weight:500;padding:0;text-transform:none}.actor-negative{margin-right:30px}.poper-icon{align-items:center;display:flex}.poper-bell{height:30px;margin:0 15px 0 10px;width:24px}}.puoverlay{background-color:rgba(0,0,0,.8);bottom:0;height:100%;left:0;position:fixed;right:0;top:0;width:100%;z-index:225859400}.puoverlay-box{margin:150px 0 0 200px;width:250px}.puoverlay-img{transform:scaleX(-1) rotate(90deg);width:150px}.puoverlay-text{-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;color:#fff;display:flex;flex-direction:column;font-family:Noto,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:18px;justify-content:center;margin-top:10px}.puoverlay-hidden{display:none}.noselect{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media only screen and (max-width:1200px){.puoverlay-box,.puoverlay-box_show{display:none}}',""]);const s=a},645:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,i,r){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(o)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=r),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},81:t=>{t.exports=function(t){return t[1]}}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={id:o,exports:{}};return t[o](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t={get:function(t){for(var e=t+"=",n=decodeURIComponent(document.cookie).split(";"),o=0;o1?e-1:0),o=1;o{var n=e.split("=");return t[n[0]]=n[1],t}),{});return void 0!==t?t.reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{}):e}function s(t){var e="_tcpu_",n=a(),o={};return t.forEach((function(t){var i=localStorage.getItem(e+t),r=n[t]||i;r&&(o[t]=r),n[t]&&localStorage.setItem(e+t,n[t])})),o}var c=(t,e,n)=>{if(e&&t&&n){document.body.addEventListener(t,(function(t){var o=Array.from(function(t){if(t.path)return t.path;for(var e=[],n=t.target;n.parentNode;)e.push(n),n=n.parentNode;return e.push(document,window),e}(t)).filter((t=>t!=document&&t!=window)).filter((t=>(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,e)))[0];o&&n.call(o,t)}))}};function u(){return!!window.matchMedia("(display-mode: standalone)").matches||!(!("standalone"in navigator)||!navigator.standalone)}function l(t){return"Mobile Safari"===t}function d(t){return"Safari"===t}function p(t){return-1!==t.indexOf("Edg")}const v={eventsStack:{},fireAll(t,e){var n=this.eventsStack[t];Array.isArray(n)&&n.forEach((function(t){t(e)}))},dispatch(t,e){this.fireAll(t,e)},on(t,e){if(null==typeof t)return new Error("Bad tcpusher messager event");if("function"!=typeof e)return new Error("tcpusher messager callback must be a function");var n=this.eventsStack[t];n?n.push(e):this.eventsStack[t]=[e]},sendParent(t,e){window.opener?window.opener.postMessage({event:t,data:e},"*"):console.warn("Cannot run in parent window")},init(t){window.addEventListener("message",(e=>{var n,o;e.origin===(n=t,(o=document.createElement("a")).href=n,o.protocol+"//"+o.host)&&this.dispatch(e.data.event,e.data.data)}))}};function h(t,e,n,o,i,r,a){try{var s=t[r](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,i)}class f{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.path=t,this.options=Object.assign(e,{updateViaCache:"none"})}register(){var t,e=this;return(t=function*(){try{var t=yield navigator.serviceWorker.register(e.path,e.options);return yield t.update(),t}catch(t){throw new Error("TCPusher service worker register error "+t)}},function(){var e=this,n=arguments;return new Promise((function(o,i){var r=t.apply(e,n);function a(t){h(r,o,i,a,s,"next",t)}function s(t){h(r,o,i,a,s,"throw",t)}a(void 0)}))})()}}const m={possEvents:["click"],made:!1,wait(t){var e=this;return new Promise((n=>{this.made&&n(!0),"object"==typeof t&&0!==Object.keys(t).length||n(!0),this.possEvents.indexOf(event)>-1&&n(!0);var o=function(o){Array.isArray(t[o])&&t[o].forEach((t=>{c(o,t,((t,o)=>{e.made=!0,n(!0)}))}))};for(var i in t)o(i)}))}};var w=Number("0"),b="https://p.wuporg.com",g=("".concat("https://protwq.com").concat("/in/multy"),"".concat(b).concat("/in/detect-ipv4"),"".concat(b,"/in/subscription-offers")),y="_calActivator",x="_calActivatorStarted",S="granted",P="denied",j={DENIED:"PermissionDenied",GRANTED:"PermissionAllowed",NOT_SUPPORTED:"WebPushNotSupported",ALREADY_DENIED:"AlreadyDenied",ALREADY_SUBSCRIBED:"AlreadySubscribed"},A=[10867,528214];function M(t,e,n,o,i,r,a){try{var s=t[r](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,i)}function D(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var r=t.apply(e,n);function a(t){M(r,o,i,a,s,"next",t)}function s(t){M(r,o,i,a,s,"throw",t)}a(void 0)}))}}const O={isPermissionDenied:()=>"denied"===Notification.permission,isPermissionGranted:()=>"granted"===Notification.permission,isPushAvailible:()=>"PushManager"in window,isNotPushAvailable:()=>!("PushManager"in window),isSslMode:()=>w||"https:"===location.protocol,isNotSslMode:()=>!(w||"https:"===location.protocol),isRemoteMode:()=>!(!opener||!a().remTSub),isFirefox:()=>null!==navigator.userAgent.match(/Firefox\/\d+/),isChrome:()=>null!==navigator.userAgent.match(/Chrome\/\d+/)&&!p(navigator.userAgent),isSafari:()=>!!navigator.userAgent.match(/Safari\/\d+/),isAndroid:t=>"Android"===t.os.name,isPrivateMode(){return new Promise((t=>{var e=()=>t(!0),n=()=>t(!1);if("https:"!==location.protocol)return n();if(this.isChrome())return void 0!==Promise&&void 0!==Promise.allSettled?void navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,o){var i;o<(void 0!==(i=window).performance&&void 0!==i.performance.memory&&void 0!==i.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824)?e():n()})):function(){if(window.webkitRequestFileSystem||window.RequestFileSystem){function t(){return o.apply(this,arguments)}function o(){return(o=D((function*(){if("storage"in navigator&&"estimate"in navigator.storage){var{usage:t,quota:o}=yield navigator.storage.estimate();return o<12e7?e():n()}}))).apply(this,arguments)}t()}}();if("MozAppearance"in document.documentElement.style){if(null===indexedDB)return e();var o=indexedDB.open("test");return o.onerror=e,void(o.onsuccess=n)}var i=navigator.userAgent.match(/Version\/([0-9._]+).*Safari/);if(i){if(parseInt(i[1],10)<11)return(()=>{try{localStorage.length||(localStorage.x=1,localStorage.removeItem("x")),n()}catch(t){navigator.cookieEnabled?e():n()}})();try{return window.openDatabase(null,null,null,null),n()}catch(t){return e()}}return window.indexedDB||!window.PointerEvent&&!window.MSPointerEvent?n():e()}))}},k="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTEyIDUxMjsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIiBjbGFzcz0iIj48Zz48Zz4KCTxnPgoJCTxwYXRoIGQ9Ik00NjcuODEyLDQzMS44NTFsLTM2LjYyOS02MS4wNTZjLTE2LjkxNy0yOC4xODEtMjUuODU2LTYwLjQ1OS0yNS44NTYtOTMuMzEyVjIyNGMwLTY3LjUyLTQ1LjA1Ni0xMjQuNjI5LTEwNi42NjctMTQzLjA0ICAgIFY0Mi42NjdDMjk4LjY2LDE5LjEzNiwyNzkuNTI0LDAsMjU1Ljk5Mywwcy00Mi42NjcsMTkuMTM2LTQyLjY2Nyw0Mi42NjdWODAuOTZDMTUxLjcxNiw5OS4zNzEsMTA2LjY2LDE1Ni40OCwxMDYuNjYsMjI0djUzLjQ4MyAgICBjMCwzMi44NTMtOC45MzksNjUuMTA5LTI1LjgzNSw5My4yOTFsLTM2LjYyOSw2MS4wNTZjLTEuOTg0LDMuMzA3LTIuMDI3LDcuNDAzLTAuMTI4LDEwLjc1MmMxLjg5OSwzLjM0OSw1LjQxOSw1LjQxOSw5LjI1OSw1LjQxOSAgICBINDU4LjY2YzMuODQsMCw3LjM4MS0yLjA2OSw5LjI4LTUuMzk3QzQ2OS44MzksNDM5LjI3NSw0NjkuNzc1LDQzNS4xMzYsNDY3LjgxMiw0MzEuODUxeiIgZGF0YS1vcmlnaW5hbD0iIzAwMDAwMCIgY2xhc3M9ImFjdGl2ZS1wYXRoIiBzdHlsZT0iZmlsbDojMUM3MkJEIiBkYXRhLW9sZF9jb2xvcj0iIzFjNzJiZCI + PC9wYXRoPgoJPC9nPgo8L2c + PGc + Cgk8Zz4KCQk8cGF0aCBkPSJNMTg4LjgxNSw0NjkuMzMzQzIwMC44NDcsNDk0LjQ2NCwyMjYuMzE5LDUxMiwyNTUuOTkzLDUxMnM1NS4xNDctMTcuNTM2LDY3LjE3OS00Mi42NjdIMTg4LjgxNXoiIGRhdGEtb3JpZ2luYWw9IiMwMDAwMDAiIGNsYXNzPSJhY3RpdmUtcGF0aCIgc3R5bGU9ImZpbGw6IzFDNzJCRCIgZGF0YS1vbGRfY29sb3I9IiMxYzcyYmQiPjwvcGF0aD4KCTwvZz4KPC9nPjwvZz4gPC9zdmc + ",L={en:{title:"Subscribe to our push notifications.",buttonAction:"Subscribe",buttonDecline:"No Thanks"},ru:{title:"Подпишитесь на наши push-уведомления!",buttonAction:"Подписаться",buttonDecline:"Позже"},de:{title:"Abonnieren Sie unsere Push-Benachrichtigungen!",buttonAction:"Ermöglichen",buttonDecline:"Später"},fr:{title:"Abonnez-vous à nos notifications push!",buttonAction:"Retirer",buttonDecline:"Plus tard"},it:{title:"Iscriviti alle nostre notifiche push!",buttonAction:"Permettere",buttonDecline:"Dopo"},es:{title:"Suscríbete a nuestras notificaciones push!",buttonAction:"Permitir",buttonDecline:"Luego"},ja:{title:"私たちのプッシュ通知を購読する!",buttonAction:"許可する",buttonDecline:"後"},hi:{title:"हमारे पुश सूचनाओं की सदस्यता लें!",buttonAction:"अनुमति दें",buttonDecline:"बाद में"}},I={en:{title:"".concat(window.location.hostname," has been asked to send notifications"),buttonAction:"Allow",buttonDecline:"Block"},ru:{title:"с сайта ".concat(window.location.hostname," поступил запрос на отправку уведомлений"),buttonAction:"Разрешить",buttonDecline:"Блокировать"},de:{title:"Es liegt eine Anfrage von ".concat(window.location.hostname," zum Senden von Benachrichtigungen vor"),buttonAction:"Ermöglichen",buttonDecline:"Block"},fr:{title:"".concat(window.location.hostname," a reçu une demande d'envoi de notifications"),buttonAction:"Retirer",buttonDecline:"Blocs"},it:{title:"".concat(window.location.hostname," ha ricevuto una richiesta di invio di notifiche"),buttonAction:"Permettere",buttonDecline:"Blocco"},es:{title:"".concat(window.location.hostname," ha recibido una solicitud para enviar notificaciones"),buttonAction:"Permitir",buttonDecline:"Bloque"},ja:{title:"".concat(window.location.hostname,"が通知の送信を依頼されました。"),buttonAction:"許可する",buttonDecline:"ブロック"},hi:{title:"".concat(window.location.hostname," को सूचनाएं भेजने के लिए कहा गया है"),buttonAction:"अनुमति दें",buttonDecline:"अवरोध पैदा करना"}};var N=L[e]||L.en,E=I[e]||I.en,_={negative:"actor-negative",positive:"actor-positive"};const T={pop:null,show(t){this.pop&&(this.pop.classList.add("poper_show"),o(t,this))},close(t){this.pop&&(this.pop.classList.remove("poper_show"),o(t,this))},setEvents(t,e){this.pop.addEventListener("click",(n=>{(n.target.matches(".actor-negative")||n.target.matches(".actor-negative font"))&&this.close(t),(n.target.matches(".actor-positive")||n.target.matches(".actor-positive font"))&&this.close(e)}),!1)},create(){var{title:t=N.title,buttonAction:e={},buttonDecline:n={},icon:o=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,a=[Object.assign(n,{text:n.text||(r?E.buttonDecline:N.buttonDecline),order:n.order||"0",style:n.style,type:"negative"}),Object.assign(e,{text:e.text||(r?E.buttonAction:N.buttonAction),order:e.order||"1",style:e.style,type:"positive"})].sort(((t,e)=>t.order-e.order)).map((t=>function(t){var e="";if(t.style)for(var n in t.style)e+="".concat(n,":").concat(t.style[n],";");return'")}(t))).join(""),s=i('
'+t+'
'+a+"
");return document.body.appendChild(s),s},init(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return this.pop=this.create({title:e?E.title:t.title,buttonAction:t.buttonAction||E.buttonAction,buttonDecline:t.buttonDecline||E.buttonDecline,icon:t.icon},e),this.setEvents(t.onClose,t.onAccept),this}};function z(t){return{get:function(e){try{return t.getItem(e)}catch(t){return console.warn(t),null}},add:function(e,n){try{t.setItem(e,n)}catch(t){console.warn(t)}},delete:function(e){try{t.removeItem(e)}catch(t){console.warn(t)}}}}function C(t){return Object.assign({},t,{get:function(e){var n=null;try{n=JSON.parse(t.get(e))}catch(t){console.error(t)}return!n||n.timestamp&&Date.now()>=n.timestamp?(t.delete(e),null):n.value},add:function(e,n,o){var i=60*o*1e3;return t.add(e,JSON.stringify({value:n,timestamp:Date.now()+i})),n}})}var R=z(window.sessionStorage),Y=(C(R),z(window.localStorage)),B=C(Y);var U,G,F;G=document.scrollingElement||document.documentElement,F=null,U=null;var H=function(){return F=G.scrollTop,U=document.body.style.cssText,document.body.style.cssText=";overflow: hidden; position: fixed; height: 100%; width: 100%; top:"+-F+"px; "},W=function(){return document.body.style.cssText=U,G.scrollTop=F};class Z{constructor(t){this.params=Object.assign(t,{transparency:t.transparency||".8",text:t.text||"Press “Allow” to continue!",onShow:t.onShow,onClose:t.onClose}),this.overlay=this.createOverlay(),this.is=!1}createOverlay(){var t=i('
\n
\n '],{type:"image/svg+xml"})),'">\n
').concat(this.params.text,"
\n
\n
"));return document.body.appendChild(t),t}show(){var{helperTopMargin:t=null,showHelper:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.is){if(e){var n=document.getElementById("puoverlay-box");t&&(n.style.marginTop=t),n.classList.remove("puoverlay-hidden")}this.overlay.classList.remove("puoverlay-hidden"),this.is=!0,H(),o(this.params.onShow)}}close(){this.is&&(this.overlay.classList.add("puoverlay-hidden"),this.is=!1,W(),o(this.params.onClose))}showHelper(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.is){var e=document.getElementById("puoverlay-box");t&&(e.style.marginTop=t),e.classList.remove("puoverlay-hidden")}}}var Q=n(356);function J(t,e,n,o,i,r,a){try{var s=t[r](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,i)}class X{constructor(t){var e,n;this.overlay=t?new Z(t):null,e=Q.Z,(n=document.createElement("style")).innerHTML=e.toString(),document.head.appendChild(n)}showNativePrompt(){var t,e=this;return(t=function*(){e.overlay&&e.overlay.show({showHelper:!0});var t=yield Notification.requestPermission();return e.overlay&&e.overlay.close(),t},function(){var e=this,n=arguments;return new Promise((function(o,i){var r=t.apply(e,n);function a(t){J(r,o,i,a,s,"next",t)}function s(t){J(r,o,i,a,s,"throw",t)}a(void 0)}))})()}canShow(t){return!B.get("tcPPopupStoper_".concat(t))}showPopupPrompt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((n=>{var i=t.id?"tcPPopupStoper_".concat(t.id):"tcPPopupStoper",r=T.init({title:t.title,buttonAction:t.buttonAction,buttonDecline:t.buttonDecline,icon:t.icon,onClose:()=>{var e;this.overlay&&this.overlay.close(),B.add(i,1,null!==(e=t.capping)&&void 0!==e?e:360),o(t.onClose),n({status:!1})},onAccept:()=>{var r;(o(t.onAccept),e)&&(this.overlay&&this.overlay.close(),B.add(i,1,null!==(r=t.capping)&&void 0!==r?r:360));n({status:!0,end:()=>{this.overlay&&this.overlay.close()}})}},e);setTimeout((()=>{this.overlay&&!t.noOverlay&&this.overlay.show({showHelper:t.showHelper,helperTopMargin:"170px"}),r.show(t.onShow)}),t.showDelay)}))}}window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};var q=window.__adFormats,K=window.__formatsGetters;function V(t){var e=window["_on".concat(t)];e&&e()}function $(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function tt(t){for(var e=1;e{var n=e||g;(new Image).src="".concat(n,"?").concat(t)};function ot(t){return(t=>Object.keys(t).map((e=>encodeURIComponent(e)+"="+encodeURIComponent(t[e]))).join("&"))(tt(tt({href:location.href,tcid:t.tcid,spot_id:t.spot_id,site:t.tube,source_id:t.sub},s(["utm_source","utm_medium","utm_campaign","utm_content"])),t.extSubParams))}var it=t=>{var e=new Image;e.referrerPolicy="no-referrer",e.src=t},rt=t=>{it("https://s.uuidksinc.net/match/1256/?remote_uid=".concat(t)),it("https://s.uuidksinc.net/match/1257/?remote_uid=".concat(t))};Error;Error;function at(t){t&&!window._rdrlnk&&(window._rdrlnk=t,window.location.replace(t))}function st(t){window.open(location.href,"_blank"),location.href=t}function ct(t){if(t){var e=!1,n=o=>(o.preventDefault(),e&&setTimeout((()=>{window.removeEventListener("beforeunload",n),window.location.replace(t)}),100),"*"),o=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e=t,window.addEventListener("beforeunload",n)};history.pushState({foo:"bar"},"back btn",window.location.href),history.replaceState(null,document.title,location.pathname+location.search);for(var i=0;i<2;i++)try{history.pushState(null,document.title,location.pathname+location.search)}catch(t){i=10}window.addEventListener("popstate",(function(){history.replaceState(null,document.title,location.pathname+location.search),window.removeEventListener("beforeunload",n),at(t)}),!1);try{window.performance.getEntriesByType("navigation").forEach((function(t){"reload"!==t.type&&("navigate"===t.type?o():o(!0))}))}catch(t){o(!0)}}}class ut{constructor(){this.CAPPING_KEY="_si_lst_shw"}show(t){if(this.canShow(t.capping))return setTimeout((()=>{T.init({onClose:()=>st(t.directLink),onAccept:()=>st(t.directLink)},!0).show(),t.contentBlocked&&new Z({}).show({})}),1e3*t.showDelay)}canShow(t){var e=JSON.parse(localStorage.getItem(this.CAPPING_KEY));if(!e)return localStorage.setItem(this.CAPPING_KEY,JSON.stringify(Date.now())),!0;var n=Date.now()-new Date(e)>1e3*t;return n&&localStorage.setItem(this.CAPPING_KEY,JSON.stringify(Date.now())),n}}function lt(){var t=new RegExp("(WebView|(iPhone|iPod|iPad)(?!.*Safari/)|Android.*(wv))","ig");return Boolean(window.navigator.userAgent.match(t))&&-1!==window.navigator.userAgent.indexOf("fb")||-1!==window.navigator.userAgent.indexOf("android")||-1!==window.navigator.userAgent.indexOf("wv")}function dt(t){return"intent://"+t+"#Intent;scheme=https;package=com.android.chrome;end"}function pt(t){document.body.addEventListener("click",(()=>{window.onbeforeunload=null,window.open(t,"_system")}))}function vt(t){return"".concat(1===t?y:3===t?"_startMBpush":4===t?"pushONclsuboffer":y)}function ht(t){return"".concat(1===t?x:3===t?"_startMBpushStarted":4===t?"pushONclStarted":x)}function ft(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=e||{};return Object.keys(t).forEach((e=>{t[e]&&(n[e]=t[e])})),n}function mt(t,e,n,o,i,r,a){try{var s=t[r](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,i)}function wt(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var r=t.apply(e,n);function a(t){mt(r,o,i,a,s,"next",t)}function s(t){mt(r,o,i,a,s,"throw",t)}a(void 0)}))}}class bt{constructor(t,e,n){this.promptManager=t,this.promptOptions=e,this.trackShowNotification=n,this.prompt=null}closeOverlay(){var t;null===(t=this.prompt)||void 0===t||t.end()}showPopupPrompt(){var t=this;return wt((function*(){return yield t.promptManager.showPopupPrompt(t.promptOptions)}))()}run(t){var e=this;return wt((function*(){return e.trackShowNotification(),e.prompt=yield e.showPopupPrompt(),e.prompt.status?t?yield t():S:P}))()}}function gt(t,e,n,o,i,r,a){try{var s=t[r](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,i)}class yt{constructor(t){this.trackShowNotification=t}run(t){var e,n=this;return(e=function*(){return n.trackShowNotification(),yield t()},function(){var t=this,n=arguments;return new Promise((function(o,i){var r=e.apply(t,n);function a(t){gt(r,o,i,a,s,"next",t)}function s(t){gt(r,o,i,a,s,"throw",t)}a(void 0)}))})()}}function xt(t,e,n,o,i,r,a){try{var s=t[r](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,i)}class St{constructor(t){this.trackShowNotification=t}run(t){var e=this;return new Promise((n=>{var o=function(){var i,r=(i=function*(){document.body.removeEventListener("click",o),e.trackShowNotification();var i=yield t();return n(i)},function(){var t=this,e=arguments;return new Promise((function(n,o){var r=i.apply(t,e);function a(t){xt(r,n,o,a,s,"next",t)}function s(t){xt(r,n,o,a,s,"throw",t)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();document.body.addEventListener("click",o)}))}}function Pt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function jt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},{_pdomain:n=null,_psubdomain:i=null,initActions:a=null,withoutPermissionRegister:c=!0,serviceWorkerPath:h="/tcpusher.js",serviceWorkerOptions:w={},isRemoteSW:b=!1,promptOptions:g={},subLocker:y=null,tube:x="tcpublisher",sub:M=e.magmaSourceId||e.sub||r(),subid1:D="",subid2:k="",subid3:L="",subid4:I="",tcid:N=0,spot_id:E=0,extSubParams:_={},skipsw:T=!1,onProcessPermission:z=null,onRequestPermission:C=null,onSubProcess:R=null,auction_url:Y,allowed_link:B="",denied_link:U="",already_subscribed_link:G="",unsupported_link:F="",back_button_link:H="",track_sub_url:W,subInterstitialSettings:Z={enabled:!1,onlyAndroid:!0},primary_auction_url:Q,options:J,isManualStart:q=!1,label:K}=t,$=new URLSearchParams(window.location.search),tt={activate:()=>Dt((function*(){if(null!=J&&J.redirect_chrome&<()){pt(dt(window.location.hostname+window.location.pathname+window.location.search))}else{var n=e=>{t.onSubscribed&&t.onSubscribed(e),at(B)},r=!Z.onlyAndroid||O.isAndroid(e.ua),q=Z.enabled&&r;ct(H);var tt=()=>(new ut).show(Z),et=ot({tcid:N,spot_id:E,tube:x,sub:M,extSubParams:_});if(e.visitorId&&rt(e.visitorId),T){if("object"!=typeof T)return;if(T.ff&&O.isFirefox())return}if((yield O.isPrivateMode())||!O.isPushAvailible())return V(j.NOT_SUPPORTED),void at(F);if(O.isSslMode()&&c){var it=new f(h,w);Lt.serviceWorkerRegistration=yield it.register()}a&&!O.isPermissionGranted()&&(yield m.wait(a));var st=new X(y);if(O.isPermissionDenied()&&q)tt();else if(O.isPermissionDenied())V(j.ALREADY_DENIED);else{var vt=new yt((()=>{nt(et,W)}));if(!O.isPermissionGranted()){if(o(z),l(e.ua.browser.name)&&!u())return;if(p(e.ua.browser.name))vt=new St((()=>{nt(et,W)}));else if(O.isFirefox()||d(e.ua.browser.name)||l(e.ua.browser.name)&&u()||Object.keys(g).length>0){if(!st.canShow("prompt"))return;var ht=Object.assign(g,{title:g.title,buttonAction:g.buttonAction,buttonDecline:g.buttonDecline,onAccept:g.onAccept,onClose:g.onClose,onShow:g.onShow,capping:g.closeCapping,showHelper:!1,id:"prompt"});vt=new bt(st,ht,(()=>{nt(et,W)}))}if(vt instanceof bt||!A.includes(E)||(vt=new bt(st,g,(()=>{nt(et,W)}))),(yield vt.run(Dt((function*(){var t=yield st.showNativePrompt();return o(C,t),V(j[t.toUpperCase()]),t!==S&&(Lt.isRemote&&v.sendParent("sub",t===P?2:3),q&&tt(),at(U)),t}))))!==S)return}if(!Lt.serviceWorkerRegistration){var mt=new f(h,w);Lt.serviceWorkerRegistration=yield mt.register()}var wt=e.clickId||$.get("clickid"),gt=s(["utm_source","utm_medium","utm_campaign","utm_content"]),xt=ft(e.pushUTMParams,gt);Lt.serviceWorkerRegistration.active.postMessage({adManagerEnv:e,language:navigator.language,auctionUrl:Y,primaryAuctionUrl:Q,subscribeSW:!0,subscribeParams:jt({_psubdomain:i,tube:x,sub:M,subid1:D,subid2:k,subid3:L,subid4:I,referrer:document.referrer,tcid:N,spot_id:E,is_adblock:e.isAdBlock,is_pwa_subscriber:l(e.ua.browser.name)&&u(),href:window.location.href,fp:e.userId,fp_str:e.visitorIdString,clickId:wt,extSubParams:_,utm:xt,label:K,isApprovedMainStream:e.isApprovedMainStream},b&&{uriParams:Lt.uriParams})});navigator.serviceWorker.addEventListener("message",(t=>{"subscribed"===t.data.status&&(o(n,t.data.data),Lt.isRemote&&v.sendParent("sub",t.data.data?1:3)),"failed"===t.data.status&&(console.error("Subscription error",t.data.data),Lt.isRemote&&v.sendParent("sub",3)),"progress"===t.data.status&&o(R),"subscriptionExist"===t.data.status&&(V(j.ALREADY_SUBSCRIBED),at(G),o(n,t.data.data))}))}}}))()};if(q){var et=e.cabsId,it=vt(et),st=ht(et);window["".concat(it)]=tt;var mt=new Event(st,{bubbles:!0,cancelable:!1});document.dispatchEvent(mt)}else tt.activate()})),Nt.apply(this,arguments)}window.init=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o{e(q[t])}))}(Ot),K[Ot]=null)})()})();