!function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{decode:function(){return M},encode:function(){return I}}),window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};var r,n=window.__adFormats,o=window.__formatsGetters;!function(e){e.fatal="fatal",e.error="error",e.warning="warning",e.log="log",e.info="info",e.debug="debug",e.critical="critical"}(r||(r={}));const s=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l="?",c=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function u(e){return(e&&e.message||"No error message").split("\n").filter((e=>!!e))[0]}function d(e){try{const t=function(e){if(!e.stack)return null;const t=[],r=e.stack.split("\n");let n,o;for(let c=0;c{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function f(e,t){return"[object RegExp]"===Object.prototype.toString.call(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}function h(){return window}class m extends p{constructor(e,t=h()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};const{plugins:r=[],beforeSend:n=(e=>e),beforeBreadcrumb:o=(e=>e),blacklistUrls:s=[],ignoreErrors:i=[],release:a}=this.options||{};this.plugins=r.map((e=>new e(this))),this.beforeSend=n,this.beforeBreadcrumb=o,this.blacklistUrls=s,this.ignoreErrors=i,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){const e=new m({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){const t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach((e=>{e.destroy&&e.destroy()}))}isIgnoredError(e){return!!this.ignoreErrors.length&&this.getPossibleEventMessages(e).some((e=>this.ignoreErrors.some((t=>f(e,t)))))}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:r=""}=e.exception.values&&e.exception.values[0]||{};return[`${r}`,`${t}: ${r}`]}catch(e){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const t=this.getEventFilterUrl(e);return!!t&&this.blacklistUrls.some((e=>f(t,e)))}getEventFilterUrl(e){try{if(e.exception){const t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(e){return null}}extendState(e){this._state=Object.keys(e).reduce(((t,r)=>{const n=this._state[r],o=Array.isArray(n)?n:null,s=e[r],i=Array.isArray(s)?s:null;return{...t,[r]:o||i?[...o||[],...i||[]]:{..."string"!=typeof n?n:{},..."string"!=typeof s?s:{}}}}),this._state)}setKeyState(e,t){this._state[e]=t}}function y(e){var t,r,n,o;let{adManagerEnv:s,spotConfig:i,width:a,height:l,interestIds:c}=e;const u=s.isMetaMaskActive?"cryptocurrency":"",d=null!==(t=i.exoclick_zone_id)&&void 0!==t?t:null,p=s.magmaSourceId||s.sub,f=d?p:i.sub_id,h="about:blank"===window.location.href?null===(r=window)||void 0===r||null===(r=r.top)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.href:window.location.href;return{imp:[{secure:"https:"===window.location.protocol?1:0,ext:{user_keywords:u,tag_ab:s.tagAbVersion,labels:i.labels,title:encodeURIComponent(s.title),site_id:Number(i.siteId),spaceid:Number(i.id),userId:i.userId,type:i.options.in_stream_ad_type,subid:String(f),idzone:d,utm1:s.holdableQSParams.utm_source,utm2:s.holdableQSParams.utm_medium,utm3:s.holdableQSParams.utm_campaign?String(s.holdableQSParams.utm_campaign):null,utm4:s.holdableQSParams.utm_content,mo:s.ua.device.model,vmap:i.options.vmap?1:0,ve:s.ua.device.vendor,spot_id:Number(i.id),ad_tags:"".concat(s.keywords,",").concat(s.isMetaMaskActive?"cryptocurrency":""),refdomain:s.entryReferrerDomain,gyr:s.isGyroscope,accel:s.isAccelerometer,video:{w:a||0,h:l||0},skip:i.options.max_skip_time,v2:s.v2},pext:{ab:Boolean(s.isAdBlock)},metrics:{topics:s.topics}}],site:{id:String(i.id),cat:["IAB".concat(s.iabCategory)],page:encodeURIComponent(null!=h?h:"").replace(/%2F/g,"/"),ctid:null!==(n=s.cabsId)&&void 0!==n?n:1},device:{w:s.resolution[0],h:s.resolution[1]},user:{id:s.userId,fp:s.visitorId,fp_str:s.visitorIdString,interest_ids:c},ext:{dt:Date.now(),direct:null===(o=i.options)||void 0===o?void 0:o.ssp_direct}}}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=200&&r.status<300?e(r):t(S("Request failed with status code "+r.status,r.config,null,r.request,r))}(t,r,o),a=null}},a.onabort=function(){a&&(r(S("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){r(S("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of ".concat(e.timeout,"ms exceeded");e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(S(t,e,"ECONNABORTED",a)),a=null},"setRequestHeader"in a&&function(e,t){var r;if(null!=e)if("object"!==v(e)&&(e=[e]),r=e,"[object Array]"===Object.prototype.toString.call(r))for(var n=0,o=e.length;n1&&void 0!==arguments[1]?arguments[1]:{};return this.dispatchRequest(b(b({},t),{},{url:e,method:"get"}))}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.dispatchRequest(b(b({},r),{},{url:e,method:"post",data:r.data?r.data:t}))}}],r&&w(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),j=new O,R=async e=>{var t;const{adManagerDependencies:r}=e,n=await async function(e){if(!e)return[];try{let t=await e.get("_crtverts");return"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)?t:[]}catch{return[]}}(r.SharedStorage),o=y({...e,interestIds:n}),s=null!==(t=e.sspUrls[0])&&void 0!==t?t:e.sspUrls[1];return j.post(s,o).then((e=>{if(e.status<200||e.status>=400)throw new Error;return e.data})).catch((()=>j.post(e.sspUrls[1],o).then((e=>{let{data:t}=e;return t}))))},E={globalVarName:"__in-stream-ad-init",initEventName:"__in-stream-ad-event",rtbURL:"https://vast.yomeno.xyz",linkRequestTime:"linkRequestTime",sentryURL:"https://4d5ae83e4d7502c1053589b22c31178f@sentry.infra.infrapu.sh/36"};function A(e,t){for(var r=0;r>2],s+=t[(3&n[e])<<4|n[e+1]>>4],s+=t[(15&n[e+1])<<2|n[e+2]>>6],s+=t[63&n[e+2]];return o%3==2?s=s.slice(0,s.length-1)+r:o%3==1&&(s=s.slice(0,s.length-2)+r+r),s}function M(e,t=q){const r=e.length;let n=Math.floor(.75*e.length),o=0;"="===e[r-1]&&(n--,"="===e[r-2]&&n--);const s=new Uint8Array(n);for(let n=0;n>4,s[o++]=(15&i)<<4|a>>2,s[o++]=(3&a)<<6|63&l}return s}q[45]=62,q[95]=63;const B=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],D=((e=>{const t={};e.forEach(((e,r)=>t[e]=r))})(B),String.fromCharCode.bind(String),e=>{let t,r,n,o,s="";const i=e.length%3;for(let i=0;i255||(n=e.charCodeAt(i++))>255||(o=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,s+=B[t>>18&63]+B[t>>12&63]+B[t>>6&63]+B[63&t]}return i?s.slice(0,i-3)+"===".substring(i):s});class L{constructor({wrappedUrlPath:e}){this.wrappedUrlPath=e}extendedEncode(e){return function(e,t){for(const r in t)e=e.replace(new RegExp(r,"g"),t[r]);return e}(D(e),{sw:"gu1",Sw:"gu2",sW:"gu3",SW:"gu4"})}wrapVastUrl(e,t){return`${e.includes("http")?e:`https://${e}`}${this.wrappedUrlPath}${this.extendedEncode(t)}`}}const H={};async function $(e,t,r,n,o){(await function(e,t){return window[e]?Promise.resolve(window[e]):function(e){if(H[e])return H[e];const t=document.createElement("script");return t.src=e,document.head.appendChild(t),H[e]=new Promise((e=>{t.onload=e})),H[e]}(t).then((()=>window[e]))}(e,t))(r,n,o)}async function V(e,t){var r,n,o;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.debugMode&&console.log("Inst. Version: ".concat("1.73.0"));const i=null!==(r=e.vast_urls)&&void 0!==r?r:[],a=e.options.in_stream_ad_type,{selector:l}=e.options,{isAdBlock:c}=t;let u=null==s||null===(n=s.DisplayAdblockService)||void 0===n?void 0:n.hashedDomain;t.isTubeSite&&e.in_stream_ad_ad_block_domain&&(u=e.in_stream_ad_ad_block_domain);const d=e.primary_auction_url,p=null!==(o=e.in_stream_ad_ssp_url)&&void 0!==o?o:"".concat(E.rtbURL,"/vast"),f="https://mcpuwpsh.com/get",h=e.scripts,m=c&&u?function(e){let{adBlockDomain:t,originSspUrls:r}=e;const n=new L({wrappedUrlPath:"/a/"});return r.filter((e=>e)).map((e=>n.wrapVastUrl(t,e)))}({adBlockDomain:u,originSspUrls:[d,p]}):[d,p],g=async(r,n)=>R({sspUrls:m,spotConfig:e,adManagerEnv:t,adManagerDependencies:s,width:r,height:n});if("overlay"===a)return $("initCdOverlay",h.overlay,{vastUrls:i,mountTargetSelector:l,playerUrl:h.player,fetchCreatives:g,sspUrl:f},e,t);if("slider"===a)return $("initCdVideoSlider",h.slider,{...e,playerUrl:h.player,fetchCreatives:g,sspUrl:f},t,s);if("native"===a)return $("initCdNativeRoll",h.native,{vastUrls:i,selector:l,playerUrl:h.player,options:e.options,fetchCreatives:g,sspUrl:f},e,t);if("link"===a){if(!function(){const e=N.get(E.linkRequestTime);return!(e&&(t=e,!(t&&Date.now()-t>18e5))||(N.set(E.linkRequestTime,new Date),0));var t}())return!1;await(async e=>{const t=y(e);return j.post("".concat(E.rtbURL,"/prepare"),t)})({spotConfig:e,adManagerEnv:t})}return"jwpreroll"===a?$("initCdJwPreRoll",h.jwPreRoll,{...e,fetchCreatives:g},t,s):(console.error("Unknown in-stream ad type",a),!1)}const z=new m({dsn:E.sentryURL,release:"[instream]".concat("1.73.0")});try{const e=window[E.globalVarName];e&&"object"==typeof e&&V(e),window[E.globalVarName]=V,F=E.initEventName,J=V,n[F]=J,o[F]&&(function(e){o[e].forEach((function(t){t(n[e])}))}(F),o[F]=null)}catch(e){z.report(e)}var F,J}();