1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[293],{37536:e=>{self,e.exports=(()=>{var e={61:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{}s.Products={VIDEO_ANALYTICS:"videoAnalytics",BALANCER:"balancer",DEVICE_ANALYTICS:"deviceAnalytics"},s.AnalyticsVariables={VIEW_CODE:"viewCode",METHOD_OPTION:"methodOption"},s.BalancerVariables={AS_ENABLED:"activeSwitchingEnabled",PROFILE_NAME:"profileName",BUCKET:"bucket",DECISION_FINISHED:"decisionFinished",LAST_USED_CDN:"lastUsedCdn",BALANCER_TRAFFIC:"balancerTraffic",BALANCER_BITRATE:"balancerBitrate"},s.Consumer={NQS:"NQS",PERSISTENT:"PERSISTENT",BLACK_HOLE:"BLACK_HOLE"},s.DeviceVariables={APP_ANALYTICS_DEVICE_STRING:"deviceString"}},108:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});class s{}s.VideoService={INIT:"/init",START:"/start",JOIN:"/joinTime",PAUSE:"/pause",RESUME:"/resume",SEEK:"/seek",BUFFER:"/bufferUnderrun",ERROR:"/error",STOP:"/stop",PING:"/ping",DATA_OBJECT:"/data"},s.Service=Object.assign(Object.assign({DATA:"/data",ADAPTERS:"/adapters",CONFIGURATION:"/configuration",APP_ANALYTICS_PLUGIN_LOGS:"/infinity/session/pluginLogs",VIDEO_PLUGIN_LOGS:"/infinity/video/pluginLogs"},s.VideoService),{CDN:"/cdn",VIDEO_EVENT:"/infinity/video/event",AD_INIT:"/adInit",AD_START:"/adStart",AD_JOIN:"/adJoin",AD_PAUSE:"/adPause",AD_RESUME:"/adResume",AD_BUFFER:"/adBufferUnderrun",AD_STOP:"/adStop",AD_CLICK:"/adClick",AD_ERROR:"/adError",AD_MANIFEST:"/adManifest",AD_POD_START:"/adBreakStart",AD_POD_STOP:"/adBreakStop",AD_QUARTILE:"/adQuartile",EVENT:"/infinity/session/event",SESSION_START:"/infinity/session/start",SESSION_STOP:"/infinity/session/stop",NAV:"/infinity/session/nav",BEAT:"/infinity/session/beat",OFFLINE_EVENTS:"/offlineEvents"});let n=s},245:(e,t,i)=>{e.exports=i(3948).extend({constructor:function(e){this.plugin=e},getAllData:function(){var e=this.getNonRandomData();return e.timestamp=this.getTimestamp(),e},getNonRandomData:function(){var e={};return e.userAgent=this.getUserAgent(),e.threads=this.getVirtualCores(),e.language=this.getLanguage(),e.langList=this.getAvailableLanguages(),e.resolution=this.getResolution(),e.colorDepth=this.getColorDepth(),e.deviceMemory=this.getMemory(),e.touchscreen=this.getTouchscreen(),e.localStorage=this.getLocalStorage(),e.sessionStorage=this.getSessionStorage(),e.cookiesAvailable=this.getCookiesAvailable(),e.flashAvailable=this.getHasFlash(),e.timeZone=this.getTimeZone(),e.plugins=this.getPluginList(),e},getUserAgent:function(){return this._getNavigatorValue("userAgent")},getVirtualCores:function(){return this._getNavigatorValue("hardwareConcurrency")},getLanguage:function(){return this._getNavigatorValue("language")},getAvailableLanguages:function(){return this._getNavigatorValue("languages")},getResolution:function(){var e=null;try{this._getNavigatorValue("screen")&&(e=navigator.screen.width.toString()+navigator.screen.height.toString())}catch(e){}return e},getColorDepth:function(){var e=null;try{this._getNavigatorValue("screen")&&(e=navigator.screen.colorDepth)}catch(e){}return e},getMemory:function(){return this._getNavigatorValue("deviceMemory")},getTouchscreen:function(){return this._getNavigatorValue("maxTouchPoints")||!1},getLocalStorage:function(){var e=!1;try{e="undefined"!=typeof localStorage}catch(e){}return e},getSessionStorage:function(){var e=!1;try{e="undefined"!=typeof sessionStorage}catch(e){}return e},getCookiesAvailable:function(){return this._getNavigatorValue("cookieEnabled")||!1},getHasFlash:function(){var e=!1;try{var t=this._getNavigatorValue("plugins");e=t&&"object"==typeof t["Shockwave Flash"]||"undefined"!=typeof window&&window.ActiveXObject&&(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0)}catch(e){}return e},getPluginList:function(){var e=null;try{var t=this._getNavigatorValue("plugins");if(t&&0!==t.length){for(var i="",s=0;s<navigator.plugins.length;s++)i+=navigator.plugins[s].description+" "+navigator.plugins[s].filename+" "+navigator.plugins[s].name+" ";e=i}}catch(e){}return e},getTimeZone:function(){var e=null;try{e=(new Date).getTimezoneOffset().toString()}catch(e){}return e},getTimestamp:function(){return(new Date).getTime()},_navigatorCheck:function(){return"undefined"!=typeof navigator},_getNavigatorValue:function(e){var t=null;try{this._navigatorCheck()&&(t=navigator[e])}catch(e){}return t}})},470:(e,t,i)=>{var s=i(3948);let{default:n}=i(7276),{AnalyticsTag:r}=i(2784);e.exports=s.extend({constructor:function(e,t,i,s){this.prefix=e||"npaw",this.disableCookies=t,this.forceCookies=i,this.disabled=s},updateStorageOptions:function(e,t,i){this.disableCookies=e,this.forceCookies=t,this.disabled=i},isEnabled:function(){if(this.disabled)return!1;var e=!0;if(!this.forceCookies)try{localStorage.setItem(this.prefix+".test","true"),localStorage.removeItem(this.prefix+".test")}catch(t){e=!1}return e},setLocal:function(e,t){if(this.disabled)return null;var i=null;try{!this.forceCookies&&("undefined"!=typeof localStorage&&localStorage||this.disableCookies)?"undefined"!=typeof localStorage&&localStorage&&(i=localStorage.setItem(this.prefix+"."+e,t)):i=this._setCookie(this.prefix+".local."+e,t)}catch(e){n.error(r,"Npaw App Analytics needs localStorage or cookies, not supported by your browser.")}return i},getLocal:function(e){return this.disabled?null:this._localGetRemove("getItem","_getCookie",e)},removeLocal:function(e){return this.disabled?null:this._localGetRemove("removeItem","_removeCookie",e)},_localGetRemove:function(e,t,i){var s=null;try{!this.forceCookies&&("undefined"!=typeof localStorage&&localStorage||this.disableCookies)?"undefined"!=typeof localStorage&&localStorage&&(s=localStorage[e](this.prefix+"."+i)):s=this[t](this.prefix+".local."+i)}catch(e){n.error(r,"Npaw App Analytics needs localStorage or cookies, not supported by your browser.")}return s},setSession:function(e,t){if(this.disabled)return null;var i=null;try{i=!this.forceCookies&&("undefined"!=typeof sessionStorage&&sessionStorage||this.disableCookies)?sessionStorage.setItem(this.prefix+"."+e,t):this._setCookie(this.prefix+".session."+e,t)}catch(e){n.error(r,"Npaw App Analytics needs sessionStorage or cookies, not supported by your browser.")}return i},getSession:function(e){return this.disabled?null:this._sessionGetRemove("getItem","_getCookie",e)},removeSession:function(e){return this.disabled?null:this._sessionGetRemove("removeItem","_removeCookie",e)},_sessionGetRemove:function(e,t,i){var s=null;try{s=!this.forceCookies&&("undefined"!=typeof sessionStorage&&sessionStorage||this.disableCookies)?sessionStorage[e](this.prefix+"."+i):this[t](this.prefix+".session."+i)}catch(e){n.error(r,"Npaw App Analytics needs sessionStorage or cookies, not supported by your browser.")}return s},getStorages:function(e){return this.disabled?null:this.getSession(e)||this.getLocal(e)},setStorages:function(e,t){if(this.disabled)return null;this.setSession(e,t),this.setLocal(e,t)},removeStorages:function(e){if(this.disabled)return null;this.removeSession(e),this.removeLocal(e)}
1,_setCookie:function(e,t){if("undefined"!=typeof document){var i=";";"undefined"!=typeof location&&(i+="domain="+location.host.split(".").reverse().splice(0,2).reverse().join(".")+";path=/;"),document.cookie=e+"="+t+i}},_getCookie:function(e){if("undefined"!=typeof document)for(var t=e+"=",i=decodeURIComponent(document.cookie).split(";"),s=0;s<i.length;s++){for(var n=i[s];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},_removeCookie:function(e){this._setCookie(e,"")}})},525:(e,t)=>{"use strict";function i(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var s=i({HTML:"text/html",isHTML:function(e){return e===s.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),n=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===n.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw TypeError("target is not an object");for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.find=function(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"==typeof i.find)return i.find.call(e,t);for(var s=0;s<e.length;s++)if(Object.prototype.hasOwnProperty.call(e,s)){var n=e[s];if(t.call(void 0,n,s,e))return n}},t.freeze=i,t.MIME_TYPE=s,t.NAMESPACE=n},563:e=>{e.exports={cdnName:"FASTLY",parsers:[{element:"host",headerName:"X-Served-By",regex:/([^,\s]+)$/},{element:"type",headerName:"X-Cache",regex:/([^,\s]+)$/}],parseType:function(e){switch(e){case"HIT":return 1;case"MISS":return 2;default:return 0}}}},594:(e,t,i)=>{var s=i(7086);let{default:n}=i(7276),{AnalyticsTag:r}=i(2784);e.exports={getPlayrate:function(){return+!this.flags.isPaused},getFramesPerSecond:function(){},getDroppedFrames:function(){},getThroughput:function(){},getRendition:function(){},getTitle2:function(){},getIsLive:function(){},getCdnTraffic:function(){},getP2PTraffic:function(){},getUploadTraffic:function(){},getIsP2PEnabled:function(){},getSegmentDuration:function(){},getHouseholdId:function(){},getLatency:function(){},getPacketLoss:function(){},getPacketSent:function(){},getMetrics:function(){},getAudioCodec:function(){},getVideoCodec:function(){},setUrlToParse:function(e){this._urlToParse=e},getURLToParse:function(){return this._urlToParse||void 0},fireSeekBegin:function(e,t,i){if(this._discardFalseBuffers(),!(this.getVideo()&&this.getVideo().getIsLive()&&this.plugin.options["content.isLive.noSeek"])&&this.flags.isJoined&&!this.flags.isSeeking){if(this.flags.isBuffering){if(!1===t)return;n.notice(r,"Converting current buffer to seek"),this.chronos.seek=this.chronos.buffer.clone(),this.chronos.buffer.reset(),this.flags.isBuffering=!1}else this.chronos.seek.start();try{this.fireEventsStruct.seek=[],i?this.fireEventsStruct.seek.push(i):this.fireEventsStruct.seek.push("undefinedEvent")}catch(e){}this.flags.isSeeking=!0,this.emit(s.Event.SEEK_BEGIN,{params:e})}},fireSeekEnd:function(e,t){if(!(this.getVideo()&&this.getVideo().getIsLive()&&this.plugin.options["content.isLive.noSeek"])&&this.flags.isJoined&&this.flags.isSeeking){try{t?this.fireEventsStruct.seek.push(t):this.fireEventsStruct.seek.push("undefinedEvent")}catch(e){}(e=e||{}).triggeredEvents=this.fireEventsStruct.seek,this.cancelSeek(),this.emit(s.Event.SEEK_END,{params:e});try{this.chronos.pause.getDeltaTime(!1)>0&&this.chronos.pause.resume()}catch(e){}}},cancelSeek:function(e){this.flags.isJoined&&this.flags.isSeeking&&(this.flags.isSeeking=!1,this.chronos.seek.stop(),this.monitor&&this.monitor.skipNextTick())},fireEvent:function(e,t,i,n,r){if("data"===e)this.emit(s.Event.DATA_OBJECT,{params:n});else{var a=n||{};a.name=e||"",a.dimensions=t||{},a.values=i||{},r&&(a.hasEndDatetime=r||!1),this.emit(s.Event.VIDEO_EVENT,{params:a})}},fireEventEnd:function(e){var t={};t.name=e||"",this.emit(s.Event.VIDEO_EVENT_END,{params:t})},storeNewRendition:function(e){this.getVideo().triggerUpdateRendition(e)}}},703:e=>{e.exports={Preroll:"pre",Midroll:"mid",Postroll:"post"}},825:e=>{e.exports={WILL_SEND_LOG_PLUGIN_INIT:"will-send-log-plugin-init",WILL_SEND_LOG_PLUGIN_SET_OPTIONS:"will-send-log-plugin-set-options",WILL_SEND_LOG_PLUGIN_RECEIVE_DATA:"will-send-log-plugin-receive-data",WILL_SEND_LOG_INFINITY_BEGIN:"will-send-log-infinity-begin",WILL_SEND_LOG_INFINITY_START:"will-send-log-infinity-start",WILL_SEND_LOG_INFINITY_EVENT:"will-send-log-infinity-event",WILL_SEND_LOG_INFINITY_EVENT_END:"will-send-log-infinity-event-end",WILL_SEND_LOG_INFINITY_NAV:"will-send-log-infinity-nav",WILL_SEND_LOG_INFINITY_NEW_SESSION:"will-send-log-infinity-new-session"}},1048:(e,t,i)=>{"use strict";let s=i(7991),n=i(9318),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>
10x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,i){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,i)}function l(e,t,i){if("string"==typeof e){var s=t;if("string"==typeof s&&""!==s||(s="utf8"),!o.isEncoding(s))throw TypeError("Unknown encoding: "+s);let i=0|f(e,s),n=a(i),r=n.write(e,s);return r!==i&&(n=n.slice(0,r)),n}if(ArrayBuffer.isView(e)){if(U(e,Uint8Array)){let t=new Uint8Array(e);return c(t.buffer,t.byteOffset,t.byteLength)}return h(e)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return c(e,t,i);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,i);let r=function(e){var t;if(o.isBuffer(e)){let t=0|p(e.length),i=a(t);return 0===i.length||e.copy(i,0,0,t),i}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),a(e<0?0:0|p(e))}function h(e){let t=e.length<0?0:0|p(e.length),i=a(t);for(let s=0;s<t;s+=1)i[s]=255&e[s];return i}function c(e,t,i){let s;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(s=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i),o.prototype),s}function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let i=e.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===i)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return k(e).length;default:if(n)return s?-1:x(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,i){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0)||(i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,i){let s=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>s)&&(i=s);let n="";for(let s=t;s<i;++s)n+=V[e[s]];return n}(this,t,i);case"utf8":case"utf-8":return T(this,t,i);case"ascii":return function(e,t,i){let s="";i=Math.min(e.length,i);for(let n=t;n<i;++n)s+=String.fromCharCode(127&e[n]);return s}(this,t,i);case"latin1":case"binary":return function(e,t,i){let s="";i=Math.min(e.length,i);for(let n=t;n<i;++n)s+=String.fromCharCode(e[n]);return s}(this,t,i);case"base64":var r,a,o;return r=this,a=t,o=i,0===a&&o===r.length?s.fromByteArray(r):s.fromByteArray(r.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,i){let s=e.slice(t,i),n="";for(let e=0;e<s.length-1;e+=2)n+=String.fromCharCode(s[e]+256*s[e+1]);return n}(this,t,i);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,i){let s=e[t];e[t]=e[i],e[i]=s}function v(e,t,i,s,n){var r;if(0===e.length)return -1;if("string"==typeof i?(s=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),(r=i*=1)!=r&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return -1;i=e.length-1}else if(i<0){if(!n)return -1;i=0}if("string"==typeof t&&(t=o.from(t,s)),o.isBuffer(t))return 0===t.length?-1:y(e,t,i,s,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):y(e,[t],i,s,n);throw TypeError("val must be string, number or Buffer")}function y(e,t,i,s,n){let r,a=1,o=e.length,l=t.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(e.length<2||t.length<2)return -1;a=2,o/=2,l/=2,i/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let s=-1;for(r=i;r<o;r++)if(u(e,r)===u(t,-1===s?0:r-s)){if(-1===s&&(s=r),r-s+1===l)return s*
vendor: 17,724 bytes, line 1
1a}else -1!==s&&(r-=r-s),s=-1}else for(i+l>o&&(i=o-l),r=i;r>=0;r--){let i=!0;for(let s=0;s<l;s++)if(u(e,r+s)!==u(t,s)){i=!1;break}if(i)return r}return -1}function T(e,t,i){i=Math.min(e.length,i);let s=[],n=t;for(;n<i;){let t=e[n],r=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=i){let i,s,o,l;switch(a){case 1:t<128&&(r=t);break;case 2:128==(192&(i=e[n+1]))&&(l=(31&t)<<6|63&i)>127&&(r=l);break;case 3:i=e[n+1],s=e[n+2],128==(192&i)&&128==(192&s)&&(l=(15&t)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(r=l);break;case 4:i=e[n+1],s=e[n+2],o=e[n+3],128==(192&i)&&128==(192&s)&&128==(192&o)&&(l=(15&t)<<18|(63&i)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(r=l)}}null===r?(r=65533,a=1):r>65535&&(r-=65536,s.push(r>>>10&1023|55296),r=56320|1023&r),s.push(r),n+=a}let r=s.length;if(r<=S)return String.fromCharCode.apply(String,s);let a="",o=0;for(;o<r;)a+=String.fromCharCode.apply(String,s.slice(o,o+=S));return a}t.hp=o,t.IS=50,o.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,i){return l(e,t,i)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,i){return u(e),e<=0?a(e):void 0!==t?"string"==typeof i?a(e).fill(t,i):a(e).fill(t):a(e)},o.allocUnsafe=function(e){return d(e)},o.allocUnsafeSlow=function(e){return d(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(U(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,s=t.length;for(let n=0,r=Math.min(i,s);n<r;++n)if(e[n]!==t[n]){i=e[n],s=t[n];break}return i<s?-1:+(s<i)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){let i;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;let s=o.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){let t=e[i];if(U(t,Uint8Array))n+t.length>s.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(s,n)):Uint8Array.prototype.set.call(s,t,n);else{if(!o.isBuffer(t))throw TypeError('"list" argument must be an Array of Buffers');t.copy(s,n)}n+=t.length}return s},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?T(this,0,e):g.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){let e="",i=t.IS;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),"<Buffer "+e+">"},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(e,t,i,s,n){if(U(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===s&&(s=0),void 0===n&&(n=this.length),t<0||i>e.length||s<0||n>this.length)throw RangeError("out of range index");if(s>=n&&t>=i)return 0;if(s>=n)return -1;if(t>=i)return 1;if(this===e)return 0;let r=(n>>>=0)-(s>>>=0),a=(i>>>=0)-(t>>>=0),l=Math.min(r,a),u=this.slice(s,n),d=e.slice(t,i);for(let e=0;e<l;++e)if(u[e]!==d[e]){r=u[e],a=d[e];break}return r<a?-1:+(a<r)},o.prototype.includes=function(e,t,i){return -1!==this.indexOf(e,t,i)},o.prototype.indexOf=function(e,t,i){return v(this,e,t,i,!0)},o.prototype.lastIndexOf=function(e,t,i){return v(this,e,t,i,!1)},o.prototype.write=function(e,t,i,s){var n,r,a,o,l,u,d,h;if(void 0===t)s="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)s=t,i=this.length,t=0;else{if(!isFinite(t))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===s&&(s="utf8")):(s=i,i=void 0)}let c=this.length-t;if((void 0===i||i>c)&&(i=c),e.length>0&&(i<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let p=!1;for(;;)switch(s){case"hex":return function(e,t,i,s){let n;i=Number(i)||0;let r=e.length-i;s?(s=Number(s))>r&&(s=r):s=r;let a=t.length;for(s>a/2&&(s=a/2),n=0;n<s;++n){var o;let s=parseInt(t.substr(2*n,2),16);if((o=s)!=o)break;e[i+n]=s}return n}(this,e,t,i);case"utf8":case"utf-8":return n=t,r=i,M(x(e,this.length-n),this,n,r);case"ascii":case"latin1":case"binary":return a=t,o=i,M(function(e){let t=[];for(let i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(e),this,a,o);case"base64":return l=t,u=i,M(k(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,h=i,M(function(e,t){let i,s,n=[];for(let r=0;r<e.length&&!((t-=2)<0);++r)s=(i=e.charCodeAt(r))>>8,n.push(i%256),n.push(s);return n}(e,this.length-d),this,d,h);default:if(p)throw TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),p=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let S=4096;function E(e,t,i){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>i)throw RangeError("Trying to access beyond buffer length")}function b(e,t,i,s,n,r){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<r)throw RangeError('"value" argument is out of bounds');if(i+s>e.length)throw RangeError("Index out of range")}function _(e,t,i,s,n){L(t,s,n,e,i,7);let r=Number(t&BigInt(0xffffffff));e[i++]=r,r>>=8,e[i++]=r,r>>=8,e[i++]=r,r>>=8,e[i++]=r;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a,i}function A(e,t,i,s,n){L(t,s,n,e,i,7);let r=Number(t&BigInt(0xffffffff));e[i+7]=r,r>>=8,e[i+6]=r,r>>=8,e[i+5]=r,r>>=8,e[i+4]=r;let a=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[i+3]=a,a>>=8,e[i+2]=a,a>>=8,e[i+1]=a,a>>=8,e[i]=a,i+8}function w(e,t,i,s,n,r){if(i+s>e.length||i<0)throw RangeError("Index out of range")}function I(e,t,i,s,r){return t*=1,i>>>=0,r||w(e,0,i,4),n.write(e,t,i,s,23,4),i+4}function P(e,t,i,s,r){return t*=1,i>>>=0,r||w(e,0,i,8),n.write(e,t,i,s,52,8),i+8}o.prototype.slice=function(e,t){let i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);let s=this.subarray(e,t);return Object.setPrototypeOf(s,o.prototype),s},o.prototype.readUintLE=o.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||E(e,t,this.length);let s=this[e],n=1,r=0;for(;++r<t&&(n*=256);)s+=this[e+r]*n;return s},o.prototype.readUintBE=o.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||E(e,t,this.length);let s=this[e+--t],n=1;for(;t>0&&(n*=256);)s+=this[e+--t]*n;return s},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=q(function(e){C(e>>>=0,"offset");let t=this[e],i=this[e+7];void 0!==t&&void 0!==i||O(e,this.length-8);let s=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],n=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*i;return BigInt(s)+(BigInt(n)<<BigInt(32))}),o.prototype.readBigUInt64BE=q(function(e){C(e>>>=0,"offset");let t=this[e],i=this[e+7];void 0!==t&&void 0!==i||O(e,this.length-8);let s=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],n=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+i;return(BigInt(s)<<BigInt(32))+BigInt(n)}),o.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||E(e,t,this.length);let s=this[e],n=1,r=0;for(;++r<t&&(n*=256);)s+=this[e+r]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},o.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||E(e,t,this.length);let s=t,n=1,r=this[e+--s];for(;s>0&&(n*=256);)r+=this[e+--s]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},o.prototype.readInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);let i=this[e]|this[e+1]<<8;return 32768&i?0xffff0000|i:i},o.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);let i=this[e+1]|this[e]<<8;return 32768&i?0xffff0000|i:i},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=q(function(e){C(e>>>=0,"offset");let t=this[e],i=this[e+7];return void 0!==t&&void 0!==i||O(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(i<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+0x1000000*this[++e])}),o.prototype.readBigInt64BE=q(function(e){C(e>>>=0,"offset");let t=this[e],i=this[e+7];return void 0!==t&&void 0!==i||O(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(0x1000000*this[++e]+65536*this[++e]+256*this[++e]+i)}),o.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,i,s){e*=1,t>>>=0,i>>>=0,s||b(this,e,t,i,Math.pow(2,8*i)-1,0);let n=1,r=0;for(this[t]=255&e;++r<i&&(n*=256);)this[t+r]=e/n&255;return t+i},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(e,t,i,s){e*=1,t>>>=0,i>>>=0,s||b(this,e,t,i,Math.pow(2,8*i)-1,0);let n=i-1,r=1;for(this[t+n]=255&e;--n>=0&&(r*=256);)this[t+n]=e/r&255;return t+i},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=q(function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=q(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,i,s){if(e*=1,t>>>=0,!s){let s=Math.pow(2,8*i-1);b(this,e,t,i,s-1,-s)}let n=0,r=1,a=0;for(this[t]=255&e;++n<i&&(r*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/r|0)-a&255;return t+i},o.prototype.writeIntBE=function(e,t,i,s){if(e*=1,t>>>=0,!s){let s=Math.pow(2,8*i-1);b(this,e,t,i,s-1,-s)}let n=i-1,r=1,a=0;for(this[t+n]=255&e;--n>=0&&(r*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/r|0)-a&255;return t+i},o.prototype.writeInt8=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,i){return e*=1,t>>>=0,i||b(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=q(function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=q(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,i){return I(this,e,t,!0,i)},o.prototype.writeFloatBE=function(e,t,i){return I(this,e,t,!1,i)},o.prototype.writeDoubleLE=function(e,t,i){return P(this,e,t,!0,i)},o.prototype.writeDoubleBE=function(e,t,i){return P(this,e,t,!1,i)},o.prototype.copy=function(e,t,i,s){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(i||(i=0),s||0===s||(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<i&&(s=i),s===i||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(s<0)throw RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-i&&(s=e.length-t+i);let n=s-i;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,i,s):Uint8Array.prototype.set.call(e,this.subarray(i,s),t),n},o.prototype.fill=function(e,t,i,s){let n;if("string"==typeof e){if("string"==typeof t?(s=t,t=0,i=this.length):"string"==typeof i&&(s=i,i=this.length),void 0!==s&&"string"!=typeof s)throw TypeError("encoding must be a string");if("string"==typeof s&&!o.isEncoding(s))throw TypeError("Unknown encoding: "+s);if(1===e.length){let t=e.charCodeAt(0);("utf8"===s&&t<128||"latin1"===s)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw RangeError("Out of range index");if(i<=t)return this;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n<i;++n)this[n]=e;else{let r=o.isBuffer(e)?e:o.from(e,s),a=r.length;if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<i-t;++n)this[n+t]=r[n%a]}return this};let R={};function N(e,t,i){R[e]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function D(e){let t="",i=e.length,s=+("-"===e[0]);for(;i>=s+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function L(e,t,i,s,n,r){if(e>i||e<t){let s,n="bigint"==typeof t?"n":"";throw s=r>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(r+1)}${n}`:`>= -(2${n} ** ${8*(r+1)-1}${n}) and < 2 ** ${8*(r+1)-1}${n}`:`>= ${t}${n} and <= ${i}${n}`,new R.ERR_OUT_OF_RANGE("value",s,e)}C(n,"offset"),void 0!==s[n]&&void 0!==s[n+r]||O(n,s.length-(r+1))}function C(e,t){if("number"!=typeof e)throw new R.ERR_INVALID_ARG_TYPE(t,"number",e)}function O(e,t,i){if(Math.floor(e)!==e)throw C(e,i),new R.ERR_OUT_OF_RANGE(i||"offset","an integer",e);if(t<0)throw new R.ERR_BUFFER_OUT_OF_BOUNDS;throw new R.ERR_OUT_OF_RANGE(i||"offset",`>= ${+!!i} and <= ${t}`,e)}N("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),N("ERR_OUT_OF_RANGE",function(e,t,i){let s=`The value of "${e}" is out of range.`,n=i;return Number.isInteger(i)&&Math.abs(i)>0x100000000?n=D(String(i)):"bigint"==typeof i&&(n=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(n=D(n)),n+="n"),s+=` It must be ${t}. Received ${n}`},RangeError);let B=/[^+/0-9A-Za-z-_]/g;function x(e,t){let i;t=t||1/0;let s=e.length,n=null,r=[];for(let a=0;a<s;++a){if((i=e.charCodeAt(a))>
155295&&i<57344){if(!n){if(i>56319||a+1===s){(t-=3)>-1&&r.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&r.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw Error("Invalid code point");if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function k(e){return s.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,i,s){let n;for(n=0;n<s&&!(n+i>=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let V=function(){let e="0123456789abcdef",t=Array(256);for(let i=0;i<16;++i){let s=16*i;for(let n=0;n<16;++n)t[s+n]=e[i]+e[n]}return t}();function q(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},1083:e=>{e.exports={ClientSide:"csai",ServerSide:"ssai"}},1129:(e,t,i)=>{var s=i(525),n=s.find,r=s.NAMESPACE;function a(e){return""!==e}function o(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){return e?Object.keys((e?e.split(/[\t\n\f\r ]+/).filter(a):[]).reduce(o,{})):[]}function u(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function d(e,t){var i=e.prototype;if(!(i instanceof t)){function s(){}s.prototype=t.prototype,u(i,s=new s),e.prototype=i=s}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.constructor=e)}var h={},c=h.ELEMENT_NODE=1,p=h.ATTRIBUTE_NODE=2,f=h.TEXT_NODE=3,g=h.CDATA_SECTION_NODE=4,m=h.ENTITY_REFERENCE_NODE=5,v=h.ENTITY_NODE=6,y=h.PROCESSING_INSTRUCTION_NODE=7,T=h.COMMENT_NODE=8,S=h.DOCUMENT_NODE=9,E=h.DOCUMENT_TYPE_NODE=10,b=h.DOCUMENT_FRAGMENT_NODE=11,_=h.NOTATION_NODE=12,A={},w={},I=(w[1]="Index size error",A.INDEX_SIZE_ERR=1,w[2]="DOMString size error",A.DOMSTRING_SIZE_ERR=2,w[3]="Hierarchy request error",A.HIERARCHY_REQUEST_ERR=3),P=(w[4]="Wrong document",A.WRONG_DOCUMENT_ERR=4,w[5]="Invalid character",A.INVALID_CHARACTER_ERR=5,w[6]="No data allowed",A.NO_DATA_ALLOWED_ERR=6,w[7]="No modification allowed",A.NO_MODIFICATION_ALLOWED_ERR=7,w[8]="Not found",A.NOT_FOUND_ERR=8),R=(w[9]="Not supported",A.NOT_SUPPORTED_ERR=9,w[10]="Attribute in use",A.INUSE_ATTRIBUTE_ERR=10);function N(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,w[e]),this.message=w[e],Error.captureStackTrace&&Error.captureStackTrace(this,N);return i.code=e,t&&(this.message=this.message+": "+t),i}function D(){}function L(e,t){this._node=e,this._refresh=t,C(this)}function C(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(em(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var s=i.length;s in e;s++)Object.prototype.hasOwnProperty.call(e,s)&&delete e[s];u(i,e),e._inc=t}}function O(){}function B(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function x(e,t,i,s){if(s?t[B(t,s)]=i:t[t.length++]=i,e){i.ownerElement=e;var n=e.ownerDocument;n&&(s&&X(n,e,s),n&&n._inc++,i.namespaceURI===r.XMLNS&&(e._nsMap[i.prefix?i.localName:""]=i.value))}}function k(e,t,i){var s=B(t,i);if(!(s>=0))throw new N(P,Error(e.tagName+"@"+i));for(var n=t.length-1;s<n;)t[s]=t[++s];if(t.length=n,e){var r=e.ownerDocument;r&&(X(r,e,i),i.ownerElement=null)}}function M(){}function U(){}function V(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function q(e,t){if(t(e))return!0;if(e=e.firstChild)do if(q(e,t))return!0;while(e=e.nextSibling)}function F(){this.ownerDocument=this}function X(e,t,i,s){e&&e._inc++,i.namespaceURI===r.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function H(e,t,i){if(e&&e._inc){e._inc++;var s=t.childNodes;if(i)s[s.length++]=i;else{for(var n=t.firstChild,r=0;n;)s[r++]=n,n=n.nextSibling;s.length=r,delete s[s.length]}}}function G(e,t){var i=t.previousSibling,s=t.nextSibling;return i?i.nextSibling=s:e.firstChild=s,s?s.previousSibling=i:e.last
1Child=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,H(e.ownerDocument,e),t}function j(e){return e&&e.nodeType===U.DOCUMENT_TYPE_NODE}function W(e){return e&&e.nodeType===U.ELEMENT_NODE}function Y(e){return e&&e.nodeType===U.TEXT_NODE}function K(e,t){var i=e.childNodes||[];if(n(i,W)||j(t))return!1;var s=n(i,j);return!(t&&s&&i.indexOf(s)>i.indexOf(t))}function z(e,t){var i=e.childNodes||[];if(n(i,function(e){return W(e)&&e!==t}))return!1;var s=n(i,j);return!(t&&s&&i.indexOf(s)>i.indexOf(t))}function J(e,t,i){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===U.DOCUMENT_FRAGMENT_NODE){var a=r.filter(W);if(a.length>1||n(r,Y))throw new N(I,"More than one element or text in fragment");if(1===a.length&&!z(e,i))throw new N(I,"Element in fragment can not be inserted before doctype")}if(W(t)&&!z(e,i))throw new N(I,"Only one element can be added and only after doctype");if(j(t)){if(n(s,function(e){return j(e)&&e!==i}))throw new N(I,"Only one doctype is allowed");var o=n(s,W);if(i&&s.indexOf(o)<s.indexOf(i))throw new N(I,"Doctype can only be inserted before an element")}}function Q(e,t,i,s){(function(e,t,i){if(!(e&&(e.nodeType===U.DOCUMENT_NODE||e.nodeType===U.DOCUMENT_FRAGMENT_NODE||e.nodeType===U.ELEMENT_NODE)))throw new N(I,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new N(P,"child not in parent");if(!(t&&(W(t)||Y(t)||j(t)||t.nodeType===U.DOCUMENT_FRAGMENT_NODE||t.nodeType===U.COMMENT_NODE||t.nodeType===U.PROCESSING_INSTRUCTION_NODE))||j(t)&&e.nodeType!==U.DOCUMENT_NODE)throw new N(I,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,i),e.nodeType===U.DOCUMENT_NODE&&(s||function(e,t,i){var s=e.childNodes||[],r=t.childNodes||[];
vendor: 10,461 bytes, line 1
1if(t.nodeType===U.DOCUMENT_FRAGMENT_NODE){var a=r.filter(W);if(a.length>1||n(r,Y))throw new N(I,"More than one element or text in fragment");if(1===a.length&&!K(e,i))throw new N(I,"Element in fragment can not be inserted before doctype")}if(W(t)&&!K(e,i))throw new N(I,"Only one element can be added and only after doctype");if(j(t)){if(n(s,j))throw new N(I,"Only one doctype is allowed");var o=n(s,W);if(i&&s.indexOf(o)<s.indexOf(i))throw new N(I,"Doctype can only be inserted before an element");if(!i&&o)throw new N(I,"Doctype can not be appended since element is present")}})(e,t,i);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===b){var a=t.firstChild;if(null==a)return t;var o=t.lastChild}else a=o=t;var l=i?i.previousSibling:e.lastChild;a.previousSibling=l,o.nextSibling=i,l?l.nextSibling=a:e.firstChild=a,null==i?e.lastChild=o:i.previousSibling=o;do a.parentNode=e,$(a,e.ownerDocument||e);while(a!==o&&(a=a.nextSibling));return H(e.ownerDocument||e,e),t.nodeType==b&&(t.firstChild=t.lastChild=null),t}function $(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===c&&e.attributes)for(var i=0;i<e.attributes.length;i++){var s=e.attributes.item(i);s&&(s.ownerDocument=t)}for(var n=e.firstChild;n;)$(n,t),n=n.nextSibling}}function Z(){this._nsMap={}}function ee(){}function et(){}function ei(){}function es(){}function en(){}function er(){}function ea(){}function eo(){}function el(){}function eu(){}function ed(){}function eh(){}function ec(e,t){var i=[],s=9==this.nodeType&&this.documentElement||this,n=s.prefix,r=s.namespaceURI;if(r&&null==n&&null==(n=s.lookupPrefix(r)))var a=[{namespace:r,prefix:null}];return eg(this,i,e,t,a),i.join("")}function ep(e,t,i){var s=e.prefix||"",n=e.namespaceURI;if(!n||"xml"===s&&n===r.XML||n===r.XMLNS)return!1;for(var a=i.length;a--;){var o=i[a];if(o.prefix===s)return o.namespace!==n}return!0}function ef(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,V),'"')}function eg(e,t,i,s,n){if(n||(n=[]),s){if(!(e=s(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case c:var a,o,l,u=e.attributes,d=u.length,h=e.firstChild,v=e.tagName,_=v;if(!(i=r.isHTML(e.namespaceURI)||i)&&!e.prefix&&e.namespaceURI){for(var A,w,I=0;I<u.length;I++)if("xmlns"===u.item(I).name){w=u.item(I).value;break}if(!w){for(var P=n.length-1;P>=0;P--)if(""===(A=n[P]).prefix&&A.namespace===e.namespaceURI){w=A.namespace;break}}if(w!==e.namespaceURI){for(P=n.length-1;P>=0;P--)if((A=n[P]).namespace===e.namespaceURI){A.prefix&&(_=A.prefix+":"+v);break}}}t.push("<",_);for(var R=0;R<d;R++)"xmlns"==(a=u.item(R)).prefix?n.push({prefix:a.localName,namespace:a.value}):"xmlns"==a.nodeName&&n.push({prefix:"",namespace:a.value});for(R=0;R<d;R++)ep(a=u.item(R),0,n)&&(ef(t,(o=a.prefix||"")?"xmlns:"+o:"xmlns",l=a.namespaceURI),n.push({prefix:o,namespace:l})),eg(a,t,i,s,n);if(v===_&&ep(e,0,n)&&(ef(t,(o=e.prefix||"")?"xmlns:"+o:"xmlns",l=e.namespaceURI),n.push({prefix:o,namespace:l})),h||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(t.push(">"),i&&/^script$/i.test(v))for(;h;)h.data?t.push(h.data):eg(h,t,i,s,n.slice()),h=h.nextSibling;else for(;h;)eg(h,t,i,s,n.slice()),h=h.nextSibling;t.push("</",_,">")}else t.push("/>");return;case S:case b:for(h=e.firstChild;h;)eg(h,t,i,s,n.slice()),h=h.nextSibling;return;case p:return ef(t,e.name,e.value);case f:return t.push(e.data.replace(/[<&>]/g,V));case g:return t.push("<![CDATA[",e.data,"]]>");case T:return t.push("\x3c!--",e.data,"--\x3e");case E:var N=e.publicId,D=e.systemId;if(t.push("<!DOCTYPE ",e.name),N)t.push(" PUBLIC ",N),D&&"."!=D&&t.push(" ",D),t.push(">");else if(D&&"."!=D)t.push(" SYSTEM ",D,">");else{var L=e.internalSubset;L&&t.push(" [",L,"]"),t.push(">")}return;case y:return t.push("<?",e.target," ",e.data,"?>");case m:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function em(e,t,i){e[t]=i}w[11]="Invalid state",A.INVALID_STATE_ERR=11,w[12]="Syntax error",A.SYNTAX_ERR=12,w[13]="Invalid modification",A.INVALID_MODIFICATION_ERR=13,w[14]="Invalid namespace",A.NAMESPACE_ERR=14,w[15]="Invalid access",A.INVALID_ACCESS_ERR=15,N.prototype=Error.prototype,u(A,N),D.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var i=[],s=0;s<this.length;s++)eg(this[s],i,e,t);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},L.prototype.item=function(e){return C(this),this[e]||null},d(L,D),O.prototype={length:0,item:D.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new N(R);var i=this.getNamedItem(e.nodeName);return x(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new N(R);return t=this.getNamedItemNS(e.namespaceURI,e.localName),x(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return k(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return k(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var s=this[i];if(s.localName==t&&s.namespaceURI==e)return s}return null}},M.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var s=new F;if(s.implementation=this,s.childNodes=new D,s.doctype=i||null,i&&s.appendChild(i),t){var n=s.createElementNS(e,t);s.appendChild(n)}return s},createDocumentType:function(e,t,i){var s=new er;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=i||"",s}},U.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Q(this,e,t)},replaceChild:function(e,t){Q(this,e,t,J),t&&this.removeChild(t)},removeChild:function(e){return G(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,i,s){var n=new i.constructor;for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var a=i[r];"object"!=typeof a&&a!=n[r]&&(n[r]=a)}switch(i.childNodes&&(n.childNodes=new D),n.ownerDocument=t,n.nodeType){case c:var o=i.attributes,l=n.attributes=new O,u=o.length;l._ownerElement=n;for(var d=0;d<u;d++)n.setAttributeNode(e(t,o.item(d),!0));break;case p:s=!0}if(s)for(var h=i.firstChild;h;)n.appendChild(e(t,h,s)),h=h.nextSibling;return n}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==f&&e.nodeType==f?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i){for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&i[s]===e)return s}t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},u(h,U),u(h,U.prototype),F.prototype={nodeName:"#document",nodeType:S,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==b){for(var i=e.firstChild;i;){var s=i.nextSibling;this.insertBefore(i,t),i=s}return e}return Q(this,e,t),$(e,this),null===this.documentElement&&e.nodeType===c&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),G(this,e)},replaceChild:function(e,t){Q(this,e,t,J),$(e,this),t&&this.removeChild(t),W(e)&&(this.documentElement=e)},importNode:function(e,t){return function e(t,i,s){var n;switch(i.nodeType){case c:(n=i.cloneNode(!1)).ownerDocument=t;case b:break;case p:s=!0}if(n||(n=i.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,s)for(var r=i.firstChild;r;)n.appendChild(e(t,r,s)),r=r.nextSibling;return n}(this,e,t)},getElementById:function(e){var t=null;return q(this.documentElement,function(i){if(i.nodeType==c&&i.getAttribute("id")==e)return t=i,!0}),t},getElementsByClassName:function(e){var t=l(e);return new L(this,function(i){var s=[];return t.length>0&&q(i.documentElement,function(n){if(n!==i&&n.nodeType===c){var r=n.getAttribute("class");if(r){var a=e===r;if(!a){var o=l(r);a=t.every(function(e){return o&&-1!==o.indexOf(e)})}a&&s.push(n)}}}),s})},createElement:function(e){var t=new Z;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new D,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new eu;return e.ownerDocument=this,e.childNodes=new D,e},createTextNode:function(e){var t=new ei;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new es;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new en;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new ed;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new ee;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new el;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new Z,s=t.split(":"),n=i.attributes=new O;return i.childNodes=new D,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,n._ownerElement=i,i},createAttributeNS:function(e,t){var i=new ee,s=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,i}},d(F,U),Z.prototype={nodeType:c,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
1,appendChild:function(e){return e.nodeType===b?this.insertBefore(e,null):(e.parentNode&&e.parentNode.removeChild(e),e.parentNode=this,e.previousSibling=this.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:this.firstChild=e,this.lastChild=e,H(this.ownerDocument,this,e),$(e,this.ownerDocument||this),e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i&&i.value||""},setAttributeNS:function(e,t,i){var s=this.ownerDocument.createAttributeNS(e,t);s.value=s.nodeValue=""+i,this.setAttributeNode(s)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new L(this,function(t){var i=[];return q(t,function(s){s===t||s.nodeType!=c||"*"!==e&&s.tagName!=e||i.push(s)}),i})},getElementsByTagNameNS:function(e,t){return new L(this,function(i){var s=[];return q(i,function(n){n===i||n.nodeType!==c||"*"!==e&&n.namespaceURI!==e||"*"!==t&&n.localName!=t||s.push(n)}),s})}},F.prototype.getElementsByTagName=Z.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=Z.prototype.getElementsByTagNameNS,d(Z,U),ee.prototype.nodeType=p,d(ee,U),et.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(w[I])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){i=this.data.substring(0,e)+i+this.data.substring(e+t),this.nodeValue=this.data=i,this.length=i.length}},d(et,U),ei.prototype={nodeName:"#text",nodeType:f,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var s=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}},d(ei,et),es.prototype={nodeName:"#comment",nodeType:T},d(es,et),en.prototype={nodeName:"#cdata-section",nodeType:g},d(en,et),er.prototype.nodeType=E,d(er,U),ea.prototype.nodeType=_,d(ea,U),eo.prototype.nodeType=v,d(eo,U),el.prototype.nodeType=m,d(el,U),eu.prototype.nodeName="#document-fragment",eu.prototype.nodeType=b,d(eu,U),ed.prototype.nodeType=y,d(ed,U),eh.prototype.serializeToString=function(e,t,i){return ec.call(e,t,i)},U.prototype.toString=ec;try{Object.defineProperty&&(Object.defineProperty(L.prototype,"length",{get:function(){return C(this),this.$$length}}),Object.defineProperty(U.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case c:case b:var i=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&i.push(e(t)),t=t.nextSibling;return i.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case c:case b:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),em=function(e,t,i){e["$$"+t]=i})}catch(e){}t.DocumentType=er,t.DOMException=N,t.DOMImplementation=M,t.Element=Z,t.Node=U,t.NodeList=D,t.XMLSerializer=eh},1146:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(9065),n=i(1577),r=i(9835),a=i.n(r),o=i(9637),l=i.n(o),u=i(5804),d=i.n(u);class h{constructor(e){this.options=e}getUsername(){return this.options.userId?this.options.userId:this.options["user.name"]}getProfileId(){return this.options.profileId}getPluginVersion(){return s.default.getPluginVersion()}getRequestNumber(){return Math.random()}getUserType(){return this.options["user.type"]}getAnonymousUser(){return this.options["user.anonymousId"]}getReferer(){let e=this.options.referer||"";return!e&&"undefined"!=typeof window&&window.location&&(e=window.location.href),e}getReferral(){let e=this.options.referral||"";return e||"undefined"==typeof document||(e=document.referrer),e}getPageName(){let e=this.options.title||"";return e||"undefined"==typeof document||(e=document.title),e}getLanguage(){return"undefined"!=typeof navigator?navigator.language:void 0}getScreenResolution(){let e;try{if(window&&window.screen){let t=window.devicePixelRatio||1;e=window.screen.width*t+"x"+window.screen.height*t}}catch(e){}return e}getDeviceInfo(){let e={};return this.getDeviceCode()&&(e.deviceCode=this.getDeviceCode()),this.getModel()&&(e.model=this.getModel()),this.getBrand()&&(e.brand=this.getBrand()),this.getDeviceType()&&(e.deviceType=this.getDeviceType()),this.getDeviceName()&&(e.deviceName=this.getDeviceName()),this.getOsName()&&(e.osName=this.getOsName()),this.getOsVersion()&&(e.osVersion=this.getOsVersion()),this.getBrowserName()&&(e.browserName=this.getBrowserName()),this.getBrowserVersion()&&(e.browserVersion=this.getBrowserVersion()),this.getBrowserType()&&(e.browserType=this.getBrowserType()),this.getBrowserEngine()&&(e.browserEngine=this.getBrowserEngine()),0!==Object.keys(e).length?e:void 0}getDeviceCode(){return this.options["device.code"]}getModel(){return this.options["device.model"]}getBrand(){return this.options["device.brand"]}getDeviceType(){return this.options["device.type"]}getDeviceName(){return this.options["device.name"]}getOsName(){return this.options["device.osName"]}getOsVersion(){return this.options["device.osVersion"]}getBrowserName(){return this.options["device.browserName"]}getBrowserVersion(){return this.options["device.browserVersion"]}getBrowserType(){return this.options["device.browserType"]}getBrowserEngine(){return this.options["device.browserEngine"]}getIsBlocked(){return this.options["ad.blockerDetected"]}isMethodPostEnabled(){return this.options.method&&this.options.method.toUpperCase()===l().POST}getDeviceUUID(){let e;return this.options["device.isAnonymous"]||(e=this.options["device.id"]||(new(d())).getKey()),e}getLibVersion(){return a()}getAppName(){return this.options["app.name"]}getAppReleaseVersion(){return this.options["app.releaseVersion"]}getIp(){return this.options["network.ip"]}getIsp(){return this.options["network.isp"]}getConnectionType(){return this.options["network.connectionType"]}getEDID(){let e=this.options["device.EDID"];return e?e.toString():void 0}getObfuscateIp(){return this.options["user.obfuscateIp"]}getPrivacyProtocol(){let e=this.options["user.privacyProtocol"];return"string"==typeof e&&(e=e.toLowerCase()),"optin"===e||"optout"===e?e:void 0}getCustomDimensions(){let e=this.options["content.customDimensions"];return"object"==typeof e?e:void 0}getExtraparam1(){return this.options["content.customDimension.1"]}getExtraparam2(){return this.options["content.customDimension.2"]}getExtraparam3(){return this.options["content.customDimension.3"]}getExtraparam4(){return this.options["content.customDimension.4"]}getExtraparam5(){return this.options["content.customDimension.5"]}getExtraparam6(){return this.options["content.customDimension.6"]}getExtraparam7(){return this.options["content.customDimension.7"]}getExtraparam8(){return this.options["content.customDimension.8"]}getExtraparam9(){return this.options["content.customDimension.9"]}getExtraparam10(){return this.options["content.customDimension.10"]}getExtraparam11(){return this.options["content.customDimension.11"]}getExtraparam12(){return this.options["content.customDimension.12"]}getExtraparam13(){return this.options["content.customDimension.13"]}getExtraparam14(){return this.options["content.customDimension.14"]}getExtraparam15(){return this.options["content.customDimension.15"]}getExtraparam16(){return this.options["content.customDimension.16"]}getExtraparam17(){return this.options["content.customDimension.17"]}getExtraparam18(){return this.options["content.customDimension.18"]}getExtraparam19(){return this.options["content.customDimension.19"]}getExtraparam20(){return this.options["content.customDimension.20"]}isParseManifest(){return this.options["parse.manifest"]}
1isParseLocationHeaderGetRequest(){return this.options["parse.locationHeader.get"]}isParseCdnNode(){return this.options["parse.cdnNode"]}isCdnSwitch(){return this.options["parse.cdnSwitchHeader"]}getParseCdnNodeList(){return this.options["parse.cdnNode.list"]}getParseCdnNodeNameHeader(){return this.options["parse.cdnNameHeader"]}getParseNodeHeader(){return this.options["parse.cdnNodeHeader"]}canOverwriteAdapters(){return n.default.parseBoolean(this.options["adapters.overwrite"])}getAdaptersProperties(){return this.options["adapters.properties"]}isAppAnalyticsAutoBegin(){return n.default.parseBoolean(this.options["check.appAnalytics.autoBegin"])}isAppAnalyticsEnabled(){return n.default.parseBoolean(this.options["check.appAnalytics.enabled"])}isVideoAnalyticsEnabled(){return n.default.parseBoolean(this.options["check.videoAnalytics.enabled"])}isRefreshLMAConfigurationEnabled(){return n.default.parseBoolean(this.options["lma.refresh.configuration.enabled"])}isPluginLogsEnabled(){return n.default.parseBoolean(this.options["debug.pluginLogs.enabled"])}isPlayerLogsEnabled(){return n.default.parseBoolean(this.options["debug.playerLogs.enabled"])}refreshLMAConfigurationSeconds(){return this.options["lma.refresh.configuration.seconds"]}getPlayheadMonitorEnabled(){return this.options["playhead.monitor"]}getReadyStateMonitorEnabled(){return this.options["readyState.monitor"]}}},1151:(e,t,i)=>{var s=i(2503),n=i(3168),r=i(3908),a=i(8187),o=i(3831),l=i(4387),u=i(1657),d=i(3782);let{AnalyticsTag:h}=i(2784),{default:c}=i(7276);var p=s.extend({constructor:function(e){p.__super__.constructor.apply(this,arguments),this.plugin=e,this._realResource=void 0,this._transportFormat=void 0,this._initResource=void 0,this._cdnName=void 0,this._cdnNodeHost=void 0,this._cdnNodeTypeString=void 0,this._cdnNodeType=void 0,this._responses={},this._processedResponses={},this._isBusy=!1,this.transformName="Resource"},getResource:function(){return this._realResource},_getInitialCdnResource:function(){return this._realResource||this._initResource},getTransportFormat:function(){return this._transportFormat},getCdnName:function(){return this._cdnName},getNodeHost:function(){return this._cdnNodeHost},getNodeTypeString:function(){return this._cdnNodeTypeString},getNodeType:function(){return this._cdnNodeType},getWaitParams:function(){if(this.isBlocking()){var e=[];return this.plugin.options["parse.cdnNode"]&&e.push("cdn"),this.plugin.options["parse.manifest"]&&e.push("parsedResource","transportFormat"),e}return[]},init:function(e){e?this._isBusy||(this._isBusy=!0,this._cdnName=void 0,this._cdnNodeHost=void 0,this._cdnNodeTypeString=void 0,this._cdnNodeType=void 0,this._initResource=e,this._parseManifestEnabled=this.plugin.isParseManifest(),this._cdnEnabled=this.plugin.isParseCdnNode(),this._cdnList=this.plugin.getParseCdnNodeList().slice(),r.setBalancerHeaderName(this.plugin.getParseCdnNodeNameHeader(),this.plugin.getParseNodeHeader()),this._setTimeout(),this._parseManifestEnabled?this._isFinalUrl(this._initResource)?(this._realResource=this._initResource,this.done()):this.parseManifest():this._parseCDN()):this.done()},_isFinalUrl:function(e){let t=[".ts",".mp4",".m4s",".cmfv",".mp3"];for(let i in e=e||"",t){let s=t[i];if(e.lastIndexOf(s)===e.length-s.length)return!0}return!1},_setTimeout:function(){let e=()=>{this._isBusy&&(this.done(),c.warn(h,"ResourceTransform has exceded the maximum execution time (3s) and will be aborted."))};try{this._parseTimeout=setTimeout(e,3e3)}catch(t){"undefined"!=typeof atv?this._parseTimeout=atv.setTimeout(e,3e3):c.error(h,t)}},parseManifest:function(e,t){let i=this.plugin.options["parse.manifest.auth"],s=this.plugin.isParseLocationHeaderGetRequest(),r=this.plugin.isParseManifest(),a=this.plugin.options["parse.manifest.lastChunk"]||!1,l=new u(i);l.setGetRequest(r||s);let d=new o(i);d.setParseLastChunk(a);let h=new n(i);h.setParseLastChunk(a);let c=[l,d,h];this._parseManifest(c,e,t||this._initResource)},_parseManifest:function(e,t,i,s){if(e.length>0){let n=e[0];n.shouldExecute(t)?(n.on(l.Event.DONE,()=>{this._parseManifest(e.slice(1,e.length),n.getLastManifest(),n.getResource(),n.getTransportFormat()||s)}),n.parse(i,t)):this._parseManifest(e.slice(1,e.length),t,i,s)}else this._transportFormat=s,this._realResource=i,this._parseCDN()},_parseCDN:function(){if(this.plugin.isCdnSwitch())this.switchDetector=new a(this.plugin),this.switchDetector.on(a.Events.DONE,e=>{this._cdnName=e.data,this.done()}),this.switchDetector.on(a.Events.ERROR,()=>{this.done()}),this.switchDetector.init();else if(this._cdnEnabled&&this._cdnList.length>0){let e=this._cdnList.shift(),t=r.create(e);if(t){this._cleanExpiredResponses();
1let e=this.plugin.isCDNParserHeaderGetRequest()?"GET":"HEAD";t.setRequestMethod(e),t.on(r.Event.DONE,()=>{this._responses[this._getInitialCdnResource()]=t.getResponses(),this._processedResponses[this._getInitialCdnResource()]=(new Date).getTime(),this._cdnName=t.getParsedCdnName(),this._cdnNodeHost=t.getParsedNodeHost(),this._cdnNodeTypeString=t.getParsedNodeTypeString(),this._cdnNodeType=t.getParsedNodeType(),this.getNodeHost()?this.done():this._parseCDN()}),t.parse(this._getInitialCdnResource(),this._responses[this._getInitialCdnResource()]||{})}else this._parseCDN()}else this.done()},_cleanExpiredResponses:function(){try{Object.keys(this._processedResponses).forEach(e=>{let t=this._processedResponses[e];(new Date).getTime()-t>6e4&&(delete this._processedResponses[e],delete this._responses[e])})}catch(e){}},parse:function(e){if(e.service===d.Service.START){let t=this.plugin.requestBuilder.lastSent;t.parsedResource=e.params.parsedResource=this.getResource()||e.params.parsedResource,t.transportFormat=e.params.transportFormat=this.getTransportFormat()||e.params.transportFormat,this._cdnEnabled&&(t.cdn=e.params.cdn=e.params.cdn||this.getCdnName(),t.nodeHost=e.params.nodeHost=this.getNodeHost()||e.params.nodeHost,t.nodeType=e.params.nodeType=this.getNodeType()||e.params.nodeType,t.nodeTypeString=e.params.nodeTypeString=this.getNodeTypeString()||e.params.nodeTypeString)}}});e.exports=p},1516:(e,t,i)=>{var s=i(1593),n=i(7680),r=i(7061);let{default:a}=i(7276);var o=i(3782),l=i(2507);let{default:u}=i(1577);var d=i(5292),h=i(2071),c=i(2995),p=i(6424);let{default:f}=i(3473),{default:g}=i(9065),{default:m}=i(3555),{default:v}=i(61),{ExpireDefault:y,Method:T,AnalyticsTag:S,CoreEvents:E}=i(2784);var b=s.extend({constructor:function(e,t,i,s){this._key=e,this.plugin=t,this.isInitiated=!1,this.isAdsManifestSent=!1,this.isAdsPreFinished=!1,this.isAdsPreJoined=!1,this.playedPostrolls=0,this.isBreakStarted=!1,this.initChrono=new n,this.options=new r(i),this._adNumber=0,this._adNumberInBreak=0,this._initialPrerollTime=0,this.expirationManager=new f(y.DEFAULT_VIEW_TIMEOUT_MS,y.DEFAULT_MAX_DURATION_VIEW_MS),g.getInstance().subscribeListener(this._coreEventListener.bind(this)),this._currentPingTime=void 0,this.requestBuilder=new h,this.hybridNetwork=new c,this.resizeScrollDetector=new p(t,this),this._adapter=null,this._adsAdapter=null,this._chronos=[],this._chronosObject={},s&&this.setAdapter(s,t),this._pluginLogsQueue=[],this.lastEventTime=null,this.lastKnownLocation=void 0,this.isFetchingLocation=!1,this._previousVideoMetrics=null,this.sendingPings=!1,this._startPings()},mergeOptions:function(e){e&&this.options.setOptions(e,this.options)},setVideoOptions:function(e){e&&this.options.setOptions(e)},updateCustomMetrics:function(e){e&&this.options.setOptions(e,void 0,!0)},getVideoKey:function(){return this._key},nextView:function(){return this._viewIndex=(new Date).getTime(),this._viewCode=g.getInstance().getFastDataSessionToken(),g.getInstance().registerCommonVariable(v.Products.VIDEO_ANALYTICS,v.AnalyticsVariables.VIEW_CODE,this._viewIndex),this.getViewCode()},getViewCode:function(){let e=g.getInstance().getFastDataSessionToken();return 0===e.length||this._viewCode&&this._viewCode===e||(this._viewCode=e),this._viewCode+(this._viewIndex?`_${this._viewIndex}`:"")},startChrono:function(e){e&&this._chronos&&Array.isArray(this._chronos)&&(this.removeChrono(e),this._chronos.push({event:e,start:(new Date).getTime()}))},stopChrono:function(e){if(e&&this._chronos&&Array.isArray(this._chronos)){for(let i=0;i<this._chronos.length;i++)if(this._chronos[i].event===e){var t=(new Date).getTime();this._chronos[i].end=t,this._chronos[i].start&&(this._chronos[i].duration=t-this._chronos[i].start);break}}},removeChrono:function(e){if(e&&this._chronos&&Array.isArray(this._chronos)){for(let t=0;t<this._chronos.length;t++)if(this._chronos[t].event===e){this._chronos.splice(t,1);break}}},setChronoDuration:function(e,t){if(e&&t&&this._chronos&&Array.isArray(this._chronos)){var i=!1;for(let s=0;s<this._chronos.length;s++)if(this._chronos[s].event===e){this._chronos[s].duration=t,i=!0;break}i||this._chronos.push({event:e,start:(new Date).getTime(),duration:t})}},getChronosEventParam:function(){let e=this._chronosObject||{};try{if(Object.keys(e).length>0||!this._chronos||0===this._chronos.length)return e;for(let t=0;t<this._chronos.length;t++){let i=this._chronos[t],s=this._chronos[t+1],n=i.duration?i.duration:i.end&&i.end>0?i.end-i.start:s?s.start-i.start:Date.now()-i.start;e[i.event]=n}this._chronosObject=e}catch(e){}return e},resetChronos:function(e){Array.isArray(this._chronos)||(this._chronos=[]),e&&e>0?this._chronos.length>0&&(this._chronos=this._chronos.filter(t=>t.start>=e)):this._chronos=[],this._chronosObject={}}
1,setAdapter:function(e,t){for(var i in this.plugin=t,this._adapter=e,this._adapter.setIsAds(!1),this._adapter._setAdapter=!0,this.contentAdapterListeners={},this.contentAdapterListeners[d.Event.START]=this._startListener.bind(this),this.contentAdapterListeners[d.Event.JOIN]=this._joinListener.bind(this),this.contentAdapterListeners[d.Event.DATA_OBJECT]=this._advancedDataListener.bind(this),this.contentAdapterListeners[d.Event.PAUSE]=this._pauseListener.bind(this),this.contentAdapterListeners[d.Event.RESUME]=this._resumeListener.bind(this),this.contentAdapterListeners[d.Event.SEEK_BEGIN]=this._seekBufferBeginListener.bind(this),this.contentAdapterListeners[d.Event.SEEK_END]=this._seekEndListener.bind(this),this.contentAdapterListeners[d.Event.BUFFER_BEGIN]=this._seekBufferBeginListener.bind(this),this.contentAdapterListeners[d.Event.BUFFER_END]=this._bufferEndListener.bind(this),this.contentAdapterListeners[d.Event.ERROR]=this._errorListener.bind(this),this.contentAdapterListeners[d.Event.STOP]=this._stopListener.bind(this),this.contentAdapterListeners[d.Event.VIDEO_EVENT]=this._videoEventListener.bind(this),this.contentAdapterListeners[d.Event.VIDEO_EVENT_END]=this._videoEventEndListener.bind(this),this.contentAdapterListeners)this._adapter.on(i,this.contentAdapterListeners[i]);this.options.enableExtraMetricCollection&&this.shouldStartRenditionTimer()},getAdapter:function(){return this._adapter},removeAdapter:function(){try{if(this._adapter){if(this._adapter.dispose(),this.contentAdapterListeners){for(var e in this.contentAdapterListeners)this._adapter.off(e,this.contentAdapterListeners[e]);delete this.contentAdapterListeners}this._adapter=null}}catch(e){a.error(S,"Is not possible to remove adapter for video: "+this._key)}},getAdsAdapter:function(){return this._adsAdapter},fetchLocation:function(){(this.isFetchingLocation=!0,navigator&&navigator.geolocation)?(this.lastKnownLocation=void 0,navigator.geolocation.getCurrentPosition(e=>{this.lastKnownLocation={latitude:e.coords.latitude,longitude:e.coords.longitude},this.isFetchingLocation=!1},e=>{this.isFetchingLocation=!1},{enableHighAccuracy:!0,timeout:1e4})):(this.lastKnownLocation=void 0,this.isFetchingLocation=!1)},shouldStartRenditionTimer:function(){if(!this._adapter.getAdapterClass("detectQualityChange")&&!this.renditionInterval){let e=this.options.renditionQueryInterval<100?100:this.options.renditionQueryInterval;this.renditionInterval=setInterval(()=>{let e=this._adapter.getRendition();e&&this.triggerUpdateRendition(e)},e||250)}},triggerUpdateRendition:function(e){this.lastObservedRendition?this.lastObservedRendition!=e&&(this.lastObservedRendition=e):this.lastObservedRendition=e},fireInit:function(e,t){this.isInitiated||(!this.getAdapter()||this.getAdapter()&&!this.getAdapter().flags.isStarted)&&(this._viewIndex||this.plugin.getNextViewIndex(this),this._startPings(),this.initChrono.start(),this.isInitiated=!0,e=e||{},t&&(e.triggeredEvents=[t]),this._send(o.WillSendEvent.WILL_SEND_INIT,o.Service.INIT,e),this._adSavedError(),this._adSavedManifest(),a.notice(S,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+o.Service.INIT+", title/res: "+(e.title||e.mediaResource)+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:"")))},fireError:function(e,t,i,s,n,r,u){this.fireInit();var d=l.buildErrorParams(e,t,i,u);d.entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),d.code&&delete d.code,n&&(d.triggeredEvents=[n]);try{(r=r||!1)&&this._adapter&&this._adapter.flags&&this._adapter.flags.isJoined&&((d=d||{}).errorType="fatal")}catch(e){}this._send(o.WillSendEvent.WILL_SEND_ERROR,o.Service.ERROR,d),this._adSavedError(),this._adSavedManifest(),a.notice(S,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+o.Service.ERROR+", errorType: "+d.errorType+", errorCode: "+d.errorCode+(d.triggeredEvents?", eventsTriggered: "+d.triggeredEvents:"")),"fatal"===d.errorType&&this.fireStop()},fireFatalError:function(e,t,i,s,n,r){this.fireError(e,t,i,s,n,!0,r)},fireStop:function(e,t){if(this.isInitiated||this.isStarted){this._adapter&&(this._adapter.flags.isStopped=!0,this._adapter.monitor&&this._adapter.monitor.stop()),this._adsAdapter&&this.isBreakStarted&&(this._adsAdapter.fireStop(),this._adsAdapter.fireAdBreakStop()),this.expirationManager&&this.expirationManager.reset(),(e=e||{}).entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),t&&(e.triggeredEvents=[t]),this._send(o.WillSendEvent.WILL_SEND_STOP,o.Service.STOP,e,void 0,void 0,()=>{});var i=this._adapter?this._adapter.chronos:null;i&&(i.total.stop(),i.join.reset(),i.pause.reset(),i.buffer.reset(),i.seek.reset()),this.lastKnownLocation=void 0,this.observedRenditions=[],this.renditionInterval&&(clearInterval(this.renditionInterval),this.renditionInterval=void 0),a.notice(S,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+o.Service.STOP+" at "+e.playhead+"s"+(e.triggeredEvents?", eventsTriggered: "+e.triggeredEvents:"")),this._reset()}},fireOfflineEvents:function(e){this.options&&!this.options.offline?this.isInitiated||this._adapter&&this._adapter.flags.isStarted||this._adsAdapter&&this._adsAdapter.flags.isStarted?a.error(S,"Adapters have to be stopped"):(this._offlineParams=e,g.getInstance().getFastDataService().getAccountCode()&&g.getInstance().getFastDataSessionToken()?this._generateAndSendOffline():this.offlineReference=this._generateAndSendOffline.bind(this)):a.error(S,"To send offline events, offline option must be disabled")},_generateAndSendOffline:function(){if(this.options.disableStorage)return null;let e=this._offlineParams;for(;;){var t=this.requestBuilder.buildBody(o.Service.OFFLINE_EVENTS,[this,this.plugin]).viewJson;if(null===t[0])break;var i=this.plugin.getNextViewIndex(this),s=t[0].replace(/CODE_PLACEHOLDER/g,i.toString()).replace(/,"sessionId":"SESSION_PLACEHOLDER"/g,"").replace(/,"sessionRoot":"ROOT_PLACEHOLDER"/g,"");this._send(o.WillSendEvent.WILL_SEND_OFFLINE_EVENTS,o.Service.OFFLINE_EVENTS,e,s,"POST",(function(e,t){this.plugin.offlineStorage.removeView(t.offlineId)}).bind(this),{offlineId:t[1]})}this.plugin.offlineStorage.sent(),this._offlineParams=null},_reset:function(){try{this._stopPings(),this.resetExpirationManager(),this._adapter&&this._adapter.flags.reset(),this._viewIndex=void 0,this.isInitiated=!1,this.isStarted=!1,this.startDelayed=!1,this.isAdsManifestSent=!1,this.isAdsPreFinished=!1,this.isAdsPreJoined=!1,this.initChrono.reset(),this._totalPrerollsTime=0,this._initialPrerollTime=0,this.requestBuilder.lastSent.breakNumber=0,this.requestBuilder.lastSent.adNumber=0,this._savedAdManifest=null,this._savedAdError=null,this.playedPostrolls=0,this.isBreakStarted=!1,this._adNumber=0,this._adNumberInBreak=0,this._previousVideoMetrics=null}catch(e){}},resetExpirationManager:function(){this.expirationManager&&this.expirationManager.reset()},_coreEventListener:function(e){if(e===E.FAST_DATA_READY){let e=1e3*g.getInstance().getFastDataService().getPingTime();return void("number"==typeof e&&e>0&&this._currentPingTime!==e&&(this._currentPingTime=e,this.sendingPings&&(this._stopPings(),this._startPings())))}e===E.SESSION_EXPIRE&&(a.notice(S,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Closing View by Session Expire Event"),this.fireStop())},_expiredSession:function(){return!(!this.expirationManager||!this.expirationManager.isExpired()||(a.notice(S,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Closing View by Expire Event"),this.fireStop(),0))},_send:function(e,t,i,s,n,r,a){if(t!==o.Service.STOP&&this._expiredSession())return;let l=u.methodFromString(n),d=(new Date).getTime();this.options.preventZombieViews&&this.lastEventTime&&d>this.lastEventTime+6e5&&this.plugin.getNextViewIndex(this),this.lastEventTime=t===o.Service.STOP?null:d;let h=new m(t,i,this.getVideoKey(),l,void 0,r,void 0,t!==o.Service.STOP?this.expirationManager:void 0);this.plugin.resourceTransform.parse(h),i=this.requestBuilder.buildParams(i,t,[this,this.plugin],this.options),!0===this.getIsLive()&&
1(i.mediaDuration=this.options["content.duration"],i.playhead=void 0),h.setParams(i),s&&h.setBody(s),h.setMethod(l),this.plugin.isMethodPostEnabled()&&h.setMethod(T.POST);let c={params:h.getParams(),plugin:this,adapter:this.getAdapter(),adsAdapter:this.getAdsAdapter()};this.emit(e,c),this.plugin.analyticsRequestHandler&&(null!==i||void 0!==n)&&this.options.enabled&&(this.plugin.lastServiceSent=t,this.plugin.analyticsRequestHandler.sendRequest(h))},firePlayerLog:function(e){try{if(this.plugin.isPlayerLogsEnabled())if(this._adapter&&!this._adapter.isStarted())e.timemark=(new Date).getTime(),this._pluginLogsQueue.push(e);else{for(;this._pluginLogsQueue.length>0;){var t=this._pluginLogsQueue.shift();this._sendPlayerLog(t)}this._sendPlayerLog(e)}}catch(e){}},_sendPlayerLog:function(e){try{e&&e.logType&&e.logAction&&a.notice(S,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") PlayerLog "+e.logType+": Action "+e.logAction),this.plugin._comm&&e&&null!==(e=this.requestBuilder.buildParams(e,o.Service.VIDEO_PLUGIN_LOGS,this,this.options))&&this._send(null,o.Service.VIDEO_PLUGIN_LOGS,e)}catch(e){}}});l.assign(b.prototype,i(8037)),l.assign(b.prototype,i(5710)),l.assign(b.prototype,i(7355)),l.assign(b.prototype,i(5031)),e.exports=b},1527:(e,t,i)=>{var s=i(1593),n=i(3782),r=i(2507);let{default:a}=i(7276);var o=i(5651);let{default:l}=i(6075);var u=i(7061),d=i(470),h=(i(3455),i(2071)),c=i(1151),p=i(2101),f=i(9773),g=i(2635),m=i(5804);let{default:v}=i(3555),{Method:y,AnalyticsTag:T,BalancerTag:S}=i(2784),{default:E}=i(9065),{default:b}=i(61),{default:_}=i(1577),{default:A}=i(1146);var w=s.extend({constructor:function(e,t,s,n){if(w.instance)return s&&(this.commonGetters||(this.commonGetters=new A(this.options)),a.notice(T,"Set Options for already existing instance"),w.instance.setOptions(s),w.instance.storage.updateStorageOptions(w.instance.options.disableCookies,w.instance.options.forceCookies,w.instance.options.disableStorage)),n&&(a.notice(T,"Set Adapter for already existing instance"),w.instance.setAdapter(n)),a.warn(T,"Only a single plugin instance can be created on npaw context"),w.instance;this.options=new u(s),this._checkOptionsValues(s),this.commonGetters||(this.commonGetters=new A(this.options)),this.storage=new d(null,this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.utils=i(2507),this.uuidGenerator=new m,this.videos=new o(this),this.analyticsRequestHandler=new l(this),this.adapterTemplates={},this.requestBuilder=new h,this.resourceTransform=new c(this),this.lastEventTime=null,this.browserLoadTimes=new p(e),this.deviceDetector=new g,this.backgroundDetector=new f(this,t),this.options["background.enabled"]&&this.backgroundDetector.startDetection(),n&&this.setAdapter(n),this._logInitPluginEvent(s),navigator&&navigator.userAgentData&&"Windows"===navigator.userAgentData.platform&&navigator.userAgentData.getHighEntropyValues&&navigator.userAgentData.getHighEntropyValues(["platformVersion"]).then(e=>{"Windows"===navigator.userAgentData.platform&&(this.majorPlatformVersion=parseInt(e.platformVersion.split(".")[0]))}),w.instance=this,this.fetchTvDeviceModelInfo()},addOnWillSendRequestListener(e){this.analyticsRequestHandler.onWillSendVideoRequestListeners.push(e)},removeOnWillSendRequestListener(e){this.analyticsRequestHandler.onWillSendVideoRequestListeners=this.analyticsRequestHandler.onWillSendVideoRequestListeners.filter(t=>t!==e)},destroy:function(){this.videos.removeAllAdapters(),this.videos.videos={}},_setAdapterTemplates:function(e){this.adapterTemplates=e},_receiveConfiguration:function(e){try{if(e.target.response.configurationOptions){var t=e.target.response.configurationOptions;this.options.setOptions(t,this.options),this.videos.updateAllOptions(t)}this.isRefreshLMAConfigurationEnabled()&&this.fastDataTransform&&this.fastDataTransform._createConfigurationInterval()}catch(e){}},_reset:function(e){this.videos.resetVideo(e)},setOptions:function(e){if(this._logSetOptionsEvent(e),e){for(let t of("boolean"==typeof e["parse.manifest"]&&e["parse.manifest"]&&(e.waitForMetadata=!0,e.pendingMetadata||(e.pendingMetadata=[]),e.pendingMetadata.push("parsedResource")),Ob
1ject.assign(this.options,e),this.storage.updateStorageOptions(this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.videos.getVideoKeys()))this.setVideoOptions(e,t);0===this.videos.getVideoKeys().length&&this._checkOptionsValues(this.options)}E.getInstance().registerCommonVariable(b.Products.VIDEO_ANALYTICS,b.AnalyticsVariables.METHOD_OPTION,_.methodFromString(e.method)),E.getInstance().registerCommonVariable(b.Products.DEVICE_ANALYTICS,b.DeviceVariables.APP_ANALYTICS_DEVICE_STRING,this.getDeviceInfoString())},setVideoOptions:function(e,t){if(t=t||"default",e&&t&&this.videos.existsVideo(t)&&Object.keys(e).length>0){let i=this.videos.getVideo(t);i&&(i.setVideoOptions(e),Object.assign(i.options,e),this._checkOptionsValues(i.options))}},updateCustomMetrics:function(e,t){t=t||"default",e&&this.videos.existsVideo(t)&&Object.keys(e).length>0&&this.videos.getVideo(t).updateCustomMetrics(e)},disable:function(){this.setOptions({enabled:!1})},enable:function(){this.setOptions({enabled:!0})},getPingTime:function(){return E.getInstance().getFastDataService().getPingTime()},fetchTvDeviceModelInfo(){if(!this.options["device.model"]){let e=this;"undefined"!=typeof webOS?webOS.service.request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName"]},onComplete:function(t){t.returnValue?e.lgDeviceModel=t.modelName:a.debug(T,"Could not get LG device model name")}}):"undefined"!=typeof webapis&&void 0!==webapis.productinfo&&(this.samsungDeviceModel=webapis.productinfo.getRealModel())}},_logInitPluginEvent:function(e){this._sendPluginLogs({logs:e,logAction:"initPlugin",logType:"pluginMethod"},this.isMethodPostEnabled())},_logSetAdapterEvent:function(e){this._sendPluginLogs({adapter:e,logAction:"setAdapter",logType:"pluginMethod"},this.isMethodPostEnabled())},_logSetOptionsEvent:function(e){this._sendPluginLogs({logs:e,logAction:"setOptions",logType:"pluginMethod"},this.isMethodPostEnabled())},_logReceiveDataEvent:function(e){var t="";e.data&&e.data.target&&e.data.target.response&&e.data.target.response.msg&&(t=JSON.parse(e.data.target.response.msg));var i={logs:t,logAction:"receiveData",logType:"internalMethod"};this._sendPluginLogs(i,this.isMethodPostEnabled())},_sendPluginLogs:function(e,t){if(t=t||!1,this.isPluginLogsEnabled()&&(e&&e.logType&&e.logAction&&a.notice(T,"PluginLog "+e.logType+": Action "+e.logAction),this.analyticsRequestHandler&&null!==(e=this.requestBuilder.buildParams(e,n.Service.VIDEO_PLUGIN_LOGS,this)))){var i=t?y.POST:y.GET;let s=new v(n.Service.VIDEO_PLUGIN_LOGS,e,"",i);this.analyticsRequestHandler.sendRequest(s)}},_checkOptionsValues:function(e){try{e&&Object.prototype.hasOwnProperty.call(e,"background.enabled")&&(e["background.enabled"]?this.backgroundDetector.startDetection():this.backgroundDetector.stopDetection())}catch(e){console.error(e)}},getDeviceInfoString:function(){try{if(this.options&&this.commonGetters){let e=this.commonGetters.getDeviceInfo();if(e)return JSON.stringify(Object.keys(e).reduce((t,i)=>(t[i.replace(/([A-Z])/g,"_$1").toLowerCase()]=e[i],t),{}))}}catch(e){console.error(e)}return JSON.stringify("{}")}},{Event:n.WillSendEvent});r.assign(w.prototype,i(9516)),r.assign(w.prototype,i(5901)),r.assign(w.prototype,i(1705)),r.assign(w.prototype,i(6083)),r.assign(w.prototype,i(6874)),w.instance=null,e.exports=w},1577:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(7276),n=i(2784);class r{static toQueryString(e){return"?"+Object.keys(e).map(t=>{if(null!==e[t]&&"object"==typeof e[t]){let i=JSON.stringify(e[t]);if("{}"!==i)return encodeURIComponent(t)+"="+encodeURIComponent(i)}else if(null!==e[t]&&void 0!==e[t]&&""!==e[t])return encodeURIComponent(t)+"="+encodeURIComponent(e[t]);return""}).filter(e=>""!=e).join("&")}static addProtocol(e,t){let i="http://localhost/";try{i="http://"+e,t||"undefined"!=typeof window&&0===window.location.protocol.indexOf("https")?i="https://"+e:"undefined"!=typeof window&&0===window.location.protocol.indexOf("http")&&(i="//"+e)}catch(e){s.default.warn(n.CoreTag,e)}return i}static parseBoolean(e){return"string"==typeof e?"true"===e.toLowerCase():!!e}static methodFromString(e){var t;let i=null!=(t=null==e?void 0:e.toUpperCase())?t:"";return i in n.Method?n.Method[i]:n.Method.GET}static generateRandomString(e){let t="";for(let i=0;i<e;i++)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t}}},1593:(e,t,i)=>{var s=i(3948),n=i(2467);e.exports=s.extend({on:function(e,t){if(this._listeners=this._listeners||{},"function"==typeof t)return this._listeners[e]=this._listeners[e]||[],this._listeners[e].push(t),this},off:function(e,t){if(this._listeners=this._listeners||{},this._listeners[e]){var i=this._listeners[e].indexOf(t);-1!==i&&this._listeners[e].splice(i,1)}return this},emit:function(e,t){return this._listeners=this._listeners||{},t=t||{},n(this._listeners[e])&&this._listeners[e].forEach(this._eachCallback.bind(this,e,t)),n(this._listeners["*"])&&this._listeners["*"].forEach(this._eachCallback.bind(this,e,t)),this},_eachCallback:function(e,t,i){"function"==typeof i&&i({type:e,data:t,target:this})}})},1657:(e,t,i)=>{var s=i(3821);e.exports=i(4387).extend({setGetRequest:function(e){this._getRequest=e},parse:function(e,t){if(t)this._parseWithManifest(t);else{this._realResource=e;var i={cache:!0,requestHeaders:this._headers};this._getRequest||(i.method="HEAD");var n=new s(e,null,null,i);n.on(s.Event.SUCCESS,(function(e){this._parseWithManifest(e)}).bind(this)),n.on(s.Event.ERROR,(function(e){this.done()}).bind(this)),n.send()}},_parseWithManifest:function(e){this._lastManifest=e;var t=e.getResponseHeaders(),i=!1;e&&e.xhr&&e.xhr.responseURL&&e.xhr.responseURL!==this._realResource?(this._realResource=e.xhr.responseURL,this.parse(this._realResource),i=!0):t.split("\n").forEach((function(e){e.startsWith("Location:")&&(this._realResource=e.slice(10),this.parse(this._realResource),i=!0)}).bind(this)),i||this.done()}})},1705:(e,t,i)=>{var s=i(2507),n=i(9637);let{default:r}=i(9065),{default:a}=i(61);e.exports={getAccountCode:function(){return r.getInstance().getFastDataService().getAccountCode()},getUsername:function(e){return this._getGenericOptionsValue("userId",e)?this._getGenericOptionsValue("userId",e):this._getGenericOptionsValue("user.n
1ame",e)},getProfileId:function(e){return this._getGenericOptionsValue("profileId",e)},getPluginVersion:function(){return r.getPluginVersion()},getRequestNumber:function(){return Math.random()},getUserType:function(e){return this._getGenericOptionsValue("user.type",e)},getAnonymousUser:function(e){return this._getGenericOptionsValue("user.anonymousId",e)},getReferer:function(){let e=this.options.referer||"";return!e&&"undefined"!=typeof window&&window.location&&(e=window.location.href),e},getReferral:function(){let e=this.options.referral||"";return e||"undefined"==typeof document||(e=document.referrer),e},getLanguage:function(){let e;return"undefined"!=typeof navigator&&(e=navigator.language),e},getScreenResolution:function(){let e;try{if(window&&window.screen){let t=window.devicePixelRatio||1;e=window.screen.width*t+"x"+window.screen.height*t}}catch(e){}return e},getDeviceInfo:function(e){let t={};return this.getDeviceCode(e)&&(t.deviceCode=this.getDeviceCode(e)),this.getModel(e)&&(t.model=this.getModel(e)),this.getBrand(e)&&(t.brand=this.getBrand(e)),this.getDeviceType(e)&&(t.deviceType=this.getDeviceType(e)),this.getDeviceName(e)&&(t.deviceName=this.getDeviceName(e)),this.getOsName(e)&&(t.osName=this.getOsName(e)),this.getOsVersion(e)&&(t.osVersion=this.getOsVersion(e)),this.getBrowserName(e)&&(t.browserName=this.getBrowserName(e)),this.getBrowserVersion(e)&&(t.browserVersion=this.getBrowserVersion(e)),this.getBrowserType(e)&&(t.browserType=this.getBrowserType(e)),this.getBrowserEngine(e)&&(t.browserEngine=this.getBrowserEngine(e)),Object.keys(t).length>0?t:void 0},getDeviceCode:function(e){return this._getGenericOptionsValue("device.code",e)},getModel:function(e){return this._getGenericOptionsValue("device.model",e)?this._getGenericOptionsValue("device.model",e):this.lgDeviceModel?this.lgDeviceModel:this.samsungDeviceModel?this.samsungDeviceModel:void 0},getBrand:function(e){return this._getGenericOptionsValue("device.brand",e)},getDeviceType:function(e){return this._getGenericOptionsValue("device.type",e)},getDeviceName:function(e){return this._getGenericOptionsValue("device.name",e)},getOsName:function(e){return this._getGenericOptionsValue("device.osName",e)},getOsVersion:function(e){let t=this._getGenericOptionsValue("device.osVersion",e);return void 0===t&&navigator&&navigator.userAgentData&&this.majorPlatformVersion&&"Windows"===navigator.userAgentData.platform&&this.majorPlatformVersion>=13&&(t="11"),t},getBrowserName:function(e){return this._getGenericOptionsValue("device.browserName",e)},getBrowserVersion:function(e){return this._getGenericOptionsValue("device.browserVersion",e)},getBrowserType:function(e){return this._getGenericOptionsValue("device.browserType",e)},getBrowserEngine:function(e){return this._getGenericOptionsValue("device.browserEngine",e)},getIsBlocked:function(e){return this._getGenericOptionsValue("ad.blockerDetected",e)},isMethodPostEnabled:function(){return this.options.method&&this.options.method.toUpperCase()===n.POST},getDeviceUUID:function(e){let t;return!e["device.isAnonymous"]&&e["device.id"]?e["device.id"]:(this.options["device.isAnonymous"]||(t=this.options["device.id"]||this.uuidGenerator.getKey()),t)},getLibVersion:function(){return r.getPluginVersion()},getAppName:function(e){return this._getGenericOptionsValue("app.name",e)},getAppReleaseVersion:function(e){return this._getGenericOptionsValue("app.releaseVersion",e)},getIp:function(e){return this._getGenericOptionsValue("network.ip",e)},getIsp:function(e){return this._getGenericOptionsValue("network.isp",e)},getConnectionType:function(e){return this._getGenericOptionsValue("network.connectionType",e)},getEDID:function(e){let t=this._getGenericOptionsValue("device.EDID",e);return t?t.toString():void 0},getObfuscateIp:function(e){return this._getGenericOptionsValue("user.obfuscateIp",e)},getPrivacyProtocol:function(e){let t=this._getGenericOptionsValue("user.privacyProtocol",e);return"string"==typeof t&&(t=t.toLowerCase()),"optin"===t||"optout"===t?t:void 0},getCustomDimensions:function(e){let t=this._getGenericOptionsValue("content.customDimensions",e);return"object"==typeof t?t:void 0},getExtraparam1:function(e){return this._getGenericOptionsValue("content.customDimension.1",e)},getExtraparam2:function(e){return this._getGenericOptionsValue("content.customDimension.2",e)},getExtraparam3:function(e){return this._getGenericOptionsValue("content.customDimension.3",e)},getExtraparam4:function(e){return this._getGenericOptionsValue("content.customDimension.4",e)},getExtraparam5:function(e){return this._getGenericOptionsValue("content.customDimension.5",e)},getExtraparam6:function(e){return this._getGenericOptionsValue("content.customDimension.6",e)},getExtraparam7:function(e){return this._getGenericOptionsValue("content.customDimension.7",e)},getExtraparam8:function(e){return this._getGenericOptionsValue("content.customDimension.8",e)},getExtraparam9:function(e){return this._getGenericOptionsValue("content.customDimension.9",e)}
1,getExtraparam10:function(e){return this._getGenericOptionsValue("content.customDimension.10",e)},getExtraparam11:function(e){return this._getGenericOptionsValue("content.customDimension.11",e)},getExtraparam12:function(e){return this._getGenericOptionsValue("content.customDimension.12",e)},getExtraparam13:function(e){return this._getGenericOptionsValue("content.customDimension.13",e)},getExtraparam14:function(e){return this._getGenericOptionsValue("content.customDimension.14",e)},getExtraparam15:function(e){return this._getGenericOptionsValue("content.customDimension.15",e)},getExtraparam16:function(e){return this._getGenericOptionsValue("content.customDimension.16",e)},getExtraparam17:function(e){return this._getGenericOptionsValue("content.customDimension.17",e)},getExtraparam18:function(e){return this._getGenericOptionsValue("content.customDimension.18",e)},getExtraparam19:function(e){return this._getGenericOptionsValue("content.customDimension.19",e)},getExtraparam20:function(e){return this._getGenericOptionsValue("content.customDimension.20",e)},isParseManifest:function(e){return this._getGenericOptionsValue("parse.manifest",e)},isParseLocationHeaderGetRequest:function(e){return this._getGenericOptionsValue("parse.locationHeader.get",e)},isParseLocationHeaderGetRequest:function(e){return this._getGenericOptionsValue("parse.locationHeader.get",e)},isParseCdnNode:function(e){return this._getGenericOptionsValue("parse.cdnNode",e)},isCdnSwitch:function(e){return this._getGenericOptionsValue("parse.cdnSwitchHeader",e)},getParseCdnNodeList:function(e){return this._getGenericOptionsValue("parse.cdnNode.list",e)},getParseCdnNodeNameHeader:function(e){return this._getGenericOptionsValue("parse.cdnNameHeader",e)},getParseNodeHeader:function(e){return this._getGenericOptionsValue("parse.cdnNodeHeader",e)},canOverwriteAdapters:function(e){return s.parseBoolean(this._getGenericOptionsValue("adapters.overwrite",e))},getAdaptersProperties:function(e){return this._getGenericOptionsValue("adapters.properties",e)},getNetworkConnectionType:function(){if(!this.options.enableExtraMetricCollection||!navigator||!navigator.connection)return;let e=navigator.connection.type;return["wimax"].includes(e)?void 0:e},getNetworkCellType:function(){if(this.options.enableExtraMetricCollection&&navigator&&navigator.connection)return this.getNetworkConnectionType()&&"wifi"!==this.getNetworkConnectionType()?navigator.connection.effectiveType:"none"},getNetworkSignalStrength:function(){},getCpuUsed:function(){},getMemoryUsed:function(){if(this.options.enableExtraMetricCollection&&performance&&performance.memory)return performance.memory.usedJSHeapSize/1024/1024},getCacheStorageUsed:function(){if(!this.options.enableExtraMetricCollection)return;let e=0;if("undefined"!=typeof localStorage&&localStorage)for(let t in localStorage)localStorage.hasOwnProperty(t)&&(e+=2*(localStorage[t].length+t.length));if("undefined"!=typeof sessionStorage&&sessionStorage)for(let t in sessionStorage)sessionStorage.hasOwnProperty(t)&&(e+=2*(sessionStorage[t].length+t.length));return 0!=e?e:void 0},getTransferredTraffic:function(){if(this.options.enableExtraMetricCollection)return r.getInstance().getCommonVariable(a.Products.BALANCER,a.BalancerVariables.BALANCER_TRAFFIC)},getImprovedBandwidth:function(){if(this.options.enableExtraMetricCollection)return r.getInstance().getCommonVariable(a.Products.BALANCER,a.BalancerVariables.BALANCER_BITRATE)},isAppAnalyticsAutoBegin:function(e){return s.parseBoolean(this._getGenericOptionsValue("check.appAnalytics.autoBegin",e))},isAppAnalyticsEnabled:function(e){return s.parseBoolean(this._getGenericOptionsValue("check.appAnalytics.enabled",e))},isVideoAnalyticsEnabled:function(e){return s.parseBoolean(this._getGenericOptionsValue("check.videoAnalytics.enabled",e))},isRefreshLMAConfigurationEnabled:function(e){return s.parseBoolean(this._getGenericOptionsValue("lma.refresh.configuration.enabled",e))},isPluginLogsEnabled:function(e){return s.parseBoolean(this._getGenericOptionsValue("debug.pluginLogs.enabled",e))},isPlayerLogsEnabled:function(e){return s.parseBoolean(this._getGenericOptionsValue("debug.playerLogs.enabled",e))},refreshLMAConfigurationSeconds:function(e){return this._getGenericOptionsValue("lma.refresh.configuration.seconds",e)},getPlayheadMonitorEnabled:function(e){return this._getGenericOptionsValue("playhead.monitor",e)}
1,getReadyStateMonitorEnabled:function(e){return this._getGenericOptionsValue("readyState.monitor",e)},getPageName:function(){return this.options["content.title"]},_getGenericOptionsValue:function(e,t){return t&&t[e]?t[e]:this.options[e]}}},2047:e=>{e.exports={cdnName:"HIGHNEGR",parsers:[{element:"host+type",headerName:"X-HW",regex:/.+,[0-9]+\.(.+)\.(.+)/}],parseType:function(e){switch(e){case"c":case"x":return 1;default:return 2}}}},2071:(e,t,i)=>{var s=i(3948);let{default:n}=i(7276),{AnalyticsTag:r}=i(2784);var a=["accountCode","username","profileId","anonymousUser","rendition","deviceInfo","player","title","title2","live","segmentDuration","mediaDuration","mediaResource","parsedResource","transactionCode","properties","cdn","profile","bucket","playerVersion","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","dimensions","playerStartupTime","obfuscateIp","privacyProtocol","p2pEnabled","pluginVersion","pluginInfo","isp","connectionType","ip","referer","referral","userType","streamingProtocol","transportFormat","householdId","adsBlocked","adsExpected","deviceUUID","smartswitchConfigCode","smartswitchGroupCode","smartswitchContractCode","libVersion","nodeHost","nodeType","appName","appReleaseVersion","package","saga","tvshow","season","titleEpisode","channel","imdbID","gracenoteID","contentType","genre","contentLanguage","subtitles","cost","price","playbackType","email","drm","videoCodec","audioCodec","codecSettings","codecProfile","containerFormat","contentId","contractedResolution","linkedViewId","edid","cdnBalancerResponseUUID","accur_geo_location","network_type","network_cell_type","network_signal_strengh","cpu_used","mem_used","cache_used"],o=["player","playhead","adTitle","position","adDuration","adCampaign","adCreativeId","adProvider","adResource","adPlayerVersion","adProperties","adAdapterVersion","adInsertionType","extraparam1","extraparam2","extraparam3","extraparam4","extraparam5","extraparam6","extraparam7","extraparam8","extraparam9","extraparam10","fullscreen","audio","skippable","adNumber","adNumberInBreak","breakNumber"],l=s.extend({constructor:function(){this.lastSent={}},fetchParams:function(e,t,i,s,a){e=e||{},t=t||[];for(let o=0;o<t.length;o++){let u=t[o];if(e[u])continue;let d=l.getters[u],h=!1;for(let t in s)if(s[t]&&s[t][d]){let n=s[t][d](a);void 0===n||i&&this.lastSent[u]===n||(e[u]=n,this.lastSent[u]=n),h=!0;break}h||n.warn(r,"Trying to call undefined getter "+u+":"+d)}return e},getGetters:function(){return l.getters},getRequiredMetadataParams:function(){return["live","rendition"]},buildBody:function(e,t){return this.fetchParams(void 0,l.bodyParams[e],!1,t)},buildParams:function(e,t,i,s){return e=e||{},this.fetchParams(e,l.params[t],!1,i,s),this.fetchParams(e,l.differentParams[t],!0,i,s),e},getChangedEntities:function(e,t){return this.fetchParams({},l.differentParams.entities,!0,e,t)}},{params:{"/data":["system","pluginVersion","requestNumber","username"],"/adapters":["system","pluginVersion","requestNumber"],"/configuration":["system","pluginVersion","requestNumber","appName","appReleaseVersion"],"/infinity/session/pluginLogs":["logAction","logType"],"/infinity/video/pluginLogs":["logAction","logType"],"/init":a,"/start":a,"/joinTime":["joinDuration","playhead","bitrate","accountCode","pluginVersion"],"/pause":["playhead","accountCode","pluginVersion"],"/resume":["pauseDuration","playhead","accountCode","pluginVersion"],"/seek":["seekDuration","playhead","accountCode","pluginVersion"],"/bufferUnderrun":["bufferDuration","playhead","accountCode","pluginVersion","bitrate","throughput"],"/error":["player","playhead"].concat(a),"/stop":["accur_geo_location","bitrate","totalBytes","playhead","pauseDuration","metrics","cdnDownloadedTraffic","multiCdnInfo","p2pDownloadedTraffic","uploadTraffic","profile","bucket","accountCode","pluginVersion"],"/infinity/video/event":["playhead"],"/adInit":o,"/adStart":o,"/adJoin":["playhead","position","adJoinDuration","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adPause":["playhead","position","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adResume":["playhead","position","adPlayhead","adPauseDuration","adNumber","adNumberInBreak","breakNumber"],"/adBufferUnderrun":["playhead","position","adPlayhead","adBufferDuration","adNumber","adNumberInBreak","breakNumber"],"/adStop":["playhead","position","adPlayhead","adTotalDuration","adViewedDuration","adViewability","adNumber","adNumberInBreak","breakNumber"],"/adClick":["playhead","position","adPlayhead","adNumber","adNumberInBreak","breakNumber"],"/adError":["adPlayhead"].concat(o),"/adManifest":["givenBreaks","expectedBreaks","expectedPattern","breaksTime"],"/adBreakStart":["position","givenAds","expectedAds","breakNumber","adInsertionType"],"/adBreakStop":["position","breakNumber"],"/adQuartile":["position","adViewedDuration","adViewability","adNumber","adNumberInBreak","breakNumber"],"/ping":["real_traffic","improved_bandwidth_estimation","network_type","network_cell_type","network_signal_strengh","cpu_used","mem_used","cache_used","accountCode","pluginVersion","droppedFrames","playrate","cdnDownloadedTraffic","multiCdnInfo","p2pDownloadedTraffic","uploadTraffic","latency","packetLoss","packetSent","metrics","totalBytes","segmentDuration"],"/infinity/session/start":["accountCode","username","profileId","userType","anonymousUser","route","page","referer","referral","screenResolution","language","deviceInfo","adsBlocked","deviceUUID","libVersion","appName","appReleaseVersion","isp","connectionType","ip","obfuscateIp","privacyProtocol","dimensions","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","edid"],"/infinity/session/stop":["sessionMetrics"],"/infinity/session/nav":["route","page","scrollDepth"],"/infinity/session/beat":["sessionMetrics"],"/infinity/session/event":["accountCode"],"/offlineEvents":{}},bodyParams:{"/offlineEvents":["viewJson"]}
1,differentParams:{entities:["pluginInfo","rendition","title","title2","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","cdn","nodeHost","nodeType","nodeTypeString","subtitles","contentLanguage","contentId","accur_geo_location","titleEpisode","season","audioCodec"]},getters:{requestNumber:"getRequestNumber",playhead:"getPlayhead",playrate:"getPlayrate",fps:"getFramesPerSecond",segmentDuration:"getSegmentDuration",droppedFrames:"getDroppedFrames",mediaDuration:"getDuration",bitrate:"getBitrate",totalBytes:"getTotalBytes",throughput:"getThroughput",rendition:"getRendition",title:"getTitle",title2:"getTitle2",live:"getIsLive",mediaResource:"getResource",parsedResource:"getParsedResource",transactionCode:"getTransactionCode",properties:"getMetadata",playerVersion:"getPlayerVersion",player:"getPlayerName",cdn:"getCdn",profile:"getProfileName",bucket:"getBucketName",pluginVersion:"getPluginVersion",libVersion:"getLibVersion",userType:"getUserType",streamingProtocol:"getStreamingProtocol",transportFormat:"getTransportFormat",obfuscateIp:"getObfuscateIp",privacyProtocol:"getPrivacyProtocol",householdId:"getHouseholdId",latency:"getLatency",packetLoss:"getPacketLoss",packetSent:"getPacketSent",metrics:"getVideoMetrics",dimensions:"getCustomDimensions",accur_geo_location:"getAccurateGeoLocation",network_type:"getNetworkConnectionType",network_cell_type:"getNetworkCellType",network_signal_strengh:"getNetworkSignalStrength",cpu_used:"getCpuUsed",mem_used:"getMemoryUsed",cache_used:"getCacheStorageUsed",real_traffic:"getTransferredTraffic",improved_bandwidth_estimation:"getImprovedBandwidth",param1:"getExtraparam1",param2:"getExtraparam2",param3:"getExtraparam3",param4:"getExtraparam4",param5:"getExtraparam5",param6:"getExtraparam6",param7:"getExtraparam7",param8:"getExtraparam8",param9:"getExtraparam9",param10:"getExtraparam10",param11:"getExtraparam11",param12:"getExtraparam12",param13:"getExtraparam13",param14:"getExtraparam14",param15:"getExtraparam15",param16:"getExtraparam16",param17:"getExtraparam17",param18:"getExtraparam18",param19:"getExtraparam19",param20:"getExtraparam20",extraparam1:"getAdExtraparam1",extraparam2:"getAdExtraparam2",extraparam3:"getAdExtraparam3",extraparam4:"getAdExtraparam4",extraparam5:"getAdExtraparam5",extraparam6:"getAdExtraparam6",extraparam7:"getAdExtraparam7",extraparam8:"getAdExtraparam8",extraparam9:"getAdExtraparam9",extraparam10:"getAdExtraparam10",position:"getAdPosition",adNumber:"getAdNumber",adNumberInBreak:"getAdNumberInBreak",breakNumber:"getBreakNumber",adPlayhead:"getAdPlayhead",adDuration:"getAdDuration",adCampaign:"getAdCampaign",adCreativeId:"getAdCreativeId",adBitrate:"getAdBitrate",adTitle:"getAdTitle",adResource:"getAdResource",adPlayerVersion:"getAdPlayerVersion",adProperties:"getAdMetadata",adAdapterVersion:"getAdAdapterVersion",givenBreaks:"getGivenBreaks",expectedBreaks:"getExpectedBreaks",expectedPattern:"getExpectedPattern",breaksTime:"getBreaksTime",givenAds:"getGivenAds",expectedAds:"getExpectedAds",adsExpected:"getAdsExpected",adViewedDuration:"getAdViewedDuration",adViewability:"getAdViewability",fullscreen:"getIsFullscreen",audio:"getAudioEnabled",skippable:"getIsSkippable",adProvider:"getAdProvider",adInsertionType:"getAdInsertionType",pluginInfo:"getPluginInfo",isp:"getIsp",connectionType:"getConnectionType",ip:"getIp",deviceInfo:"getDeviceInfo",edid:"getEDID",system:"getAccountCode",accountCode:"getAccountCode",username:"getUsername",profileId:"getProfileId",anonymousUser:"getAnonymousUser",joinDuration:"getJoinDuration",bufferDuration:"getBufferDuration",seekDuration:"getSeekDuration",pauseDuration:"getPauseDuration",adJoinDuration:"getAdJoinDuration",adBufferDuration:"getAdBufferDuration",adPauseDuration:"getAdPauseDuration",adTotalDuration:"getAdTotalDuration",referer:"getReferer",referral:"getReferral",language:"getLanguage",screenResolution:"getScreenResolution",nodeHost:"getNodeHost",nodeType:"getNodeType",nodeTypeString:"getNodeTypeString",route:"getReferer",page:"getPageName",playerStartupTime:"getPlayerStartupTime",pageLoadTime:"getPageLoadTime",cdnDownloadedTraffic:"getCdnTraffic",multiCdnInfo:"getMultiCdnInfo",p2pDownloadedTraffic:"getP2PTraffic",p2pEnabled:"getIsP2PEnabled",uploadTraffic:"getUploadTraffic",cdnBalancerResponseUUID:"getBalancerResponseId",viewJson:"getOfflineView",deviceUUID:"getDeviceUUID",sessionMetrics:"getSessionMetrics",scrollDepth:"getScrollDepth",adsBlocked:"getIsBlocked",linkedViewId:"getLinkedViewId",smartswitchConfigCode:"getSmartswitchConfigCode",smartswitchGroupCode:"getSmartswitchGroupCode",smartswitchContractCode:"getSmartswitchContractCode",appName:"getAppName",appReleaseVersion:"getAppReleaseVersion",package:"getPackage",saga:"getSaga",tvshow:"getTvShow",
1season:"getSeason",titleEpisode:"getEpisodeTitle",channel:"getChannel",drm:"getDRM",videoCodec:"getVideoCodec",audioCodec:"getAudioCodec",codecSettings:"getCodecSettings",codecProfile:"getCodecProfile",containerFormat:"getContainerFormat",contentId:"getID",imdbID:"getImdbId",gracenoteID:"getGracenoteID",contentType:"getType",genre:"getGenre",contentLanguage:"getVideoLanguage",subtitles:"getSubtitles",contractedResolution:"getContractedResolution",cost:"getCost",price:"getPrice",playbackType:"getPlaybackType",email:"getEmail"}});e.exports=l},2101:(e,t,i)=>{var s=i(3948),n=i(9474);e.exports=s.extend({constructor:function(e){if(this.appAnalytics=e,this.timeObject=void 0,this.playerSetup=void 0,this.myTimesObject={},this.perfObject=void 0,"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("load",this._windowLoaded.bind(this)),window.performance&&window.performance.timing)){try{"function"==typeof window.performance.getEntriesByType&&(this.perfObject=window.performance)}catch(e){}this.timeObject=window.performance.timing}try{if("function"==typeof PerformanceObserver){let e=new PerformanceObserver((e,t)=>{let i=e.getEntries();this.myTimesObject.largestContentfulPaint=i[i.length-1].renderTime});PerformanceObserver.supportedEntryTypes.indexOf("largest-contentful-paint")>-1&&e.observe({entryTypes:["largest-contentful-paint"]})}}catch(e){}},_windowLoaded:function(){this.myTimesObject.onLoad=(new Date).getTime(),this._getEnoughFPS(),setTimeout(this._fireLoadTimesEvent.bind(this),1e3)},_fireLoadTimesEvent:function(){this._getLastMetrics(),this.appAnalytics&&this.appAnalytics.isActive()&&this.appAnalytics.isStarted()&&this.appAnalytics.fireEvent("loadTimes",{},this._getAllValues())},_getAllValues:function(){let e={PageLoadTime:this.getPageLoadTime(),DNSTime:this.getDnsTime(),TCPTime:this.getTcpTime(),HandshakeTime:this.getHandshakeTime(),DomReadyTime:this.getDomReadyTime(),BackendTime:this.getBackendTime(),FrontendTime:this.getFrontendTime(),VisualReady:this.getTimeToVisuallyReady(),TimeToInteractive:this.getTimeToInteractive(),JsTime:this.getJSTime(),CssTime:this.getCSSTime(),ImageTime:this.getImageTime(),FontTime:this.getFontTime(),AvgReqLatency:this.getAvgReqLatency(),MaxReqLatency:this.getMaxReqLatency(),FirstPaint:this.getFirstPaint(),FirstContentfulPaint:this.getFirstContentfulPaint(),LargestContentfulPaint:this.getLargestContentfulPaint(),SpeedIndex:this.getSpeedIndex()};for(let t in e)null===e[t]||void 0===e[t]||e[t]<0?delete e[t]:e[t]=Math.round(e[t]);return e},getPageLoadTime:function(){let e;return this.timeObject&&(e=this.timeObject.loadEventEnd-this.timeObject.navigationStart),e},getPlayerStartupTime:function(){let e;return this.timeObject&&this.playerSetup&&(e=this.playerSetup-this.timeObject.navigationStart),e},getDnsTime:function(){let e;return this.timeObject&&(e=this.timeObject.domainLookupEnd-this.timeObject.domainLookupStart),e},getTcpTime:function(){let e;return this.timeObject&&(e=this.timeObject.connectEnd-this.timeObject.connectStart),e},getHandshakeTime:function(){let e;return this.timeObject&&this.timeObject.secureConnectionStart&&(e=this.timeObject.connectEnd-this.timeObject.secureConnectionStart),e},getDomReadyTime:function(){let e;return this.timeObject&&(e=this.timeObject.domComplete-this.timeObject.navigationStart),e},getBackendTime:function(){let e;return this.timeObject&&(e=this.timeObject.responseStart-this.timeObject.navigationStart),e},getFrontendTime:function(){let e;return this.timeObject&&(e=this.myTimesObject.onLoad-this.timeObject.responseStart),e},getTimeToVisuallyReady:function(){let e=this.myTimesObject.firstPaint||0;return this.timeObject?Math.max(e,this.timeObject.domContentLoadedEventEnd-this.timeObject.navigationStart||0):e||void 0},getTimeToInteractive:function(){if(this.myTimesObject.fps&&this.getTimeToVisuallyReady())return Math.max(this.myTimesObject.fps,this.getTimeToVisuallyReady());setTimeout(()=>{this.getTimeToInteractive()},500)},getJSTime:function(){return this._getXTime("script")},getCSSTime:function(){return this._getXTime("css")},getImageTime:function(){return this._getXTime("img")},getFontTime:function(){return this._getXTime("css",[".woff",".otf",".ttf"])},getAvgReqLatency:function(){try{if(this.perfObject&&"function"==typeof this.perfObject.getEntriesByType){let t=0,i=0,s=this.perfObject.getEntriesByType("resource");for(var e in s)s[e].requestStart&&s[e].responseStart&&(i+=s[e].responseStart-s[e].requestStart),t++;return i/t}}catch(e){}},getFirstPaint:function(){return this.myTimesObject?this.myTimesObject.firstPaint:void 0},getFirstContentfulPaint:function(){return this.myTimesObject?this.myTimesObject.firstContentfulPaint:void 0},getLargestContentfulPaint:function(){return this.myTimesObject?this.myTimesObject.largestContentfulPaint:void 0},getMaxReqLatency:function(){try{if(this.perfObject&&"function"==typeof this.perfObject.getEntriesByType){let e=this.perfObject.getEntriesByType("resource"),t=0;for(let i in e)e[i].requestStart&&e[i].responseStart&&(t=Math.max(t,e[i].responseStart-e[i].requestStart));return t}}catch(e){}},getSpeedIndex:function(){let e;if("undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.getEntriesByType)try{e=n()}catch(e){}return e},_getXTime:function(e,t){let i=0;try{if(this.perfObject&&"function"==typeof this.perfObject.getEntriesByType){let n=this.perfObject.getEntriesByType("resource");for(let r in n)if(n[r].initiatorType===e)if(t){let e=!1;for(var s in t)n[r].name.indexOf(t[s]>0)&&(e=!0);e&&(i+=n[r].duration)}else i+=n[r].duration}}catch(e){}return Math.round(i)||void 0},_getLastMetrics:function(){let e,t;try{if(this.perfObject&&"function"==typeof this.perfObject.getEntriesByType){let i=this.perfObject.getEntriesByType("paint");for(let s in i)"first-paint"===i[s].name?e=i[s].startTime:"first-contentful-paint"===i[s].name&&(t=i[s].startTime)}}catch(e){}!e&&this.timeObject&&(e=this.timeObject.msFirstPaint-this.timeObject.navigationStart),this.myTimesObject.firstPaint=e,this.myTimesObject.firstContentfulPaint=t,this.getTimeToInteractive()},_getEnoughFPS:function(){if(!this.timeObject||"undefined"==typeof window)return!0;{let e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(){};this.preFPS=(new Date).getTime(),e(()=>{let e=(new Date).getTime();e<this.preFPS+50?this.myTimesObject.fps=e-this.timeObject.navigationStart:setTimeout(()=>this._getEnoughFPS(),50)})}},setPlayerSetupTime:function(){this.playerSetup=this.playerSetup||(new Date).getTime()}})},2133:(e,t,i)=>{var s=i(525).NAMESPACE,n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function o(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,o)}function l(){}function u(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function d(e,t,i){for(var n,r=e.tagName,a=null,o=e.length;o--;){var l=e[o],u=l.qName,d=l.value;if((n=u.indexOf(":"))>0)var c=l.prefix=u.slice(0,n),p=u.slice(n+1),f="xmlns"===c&&p;else p=u,c=null,f="xmlns"===u&&"";l.localName=p,!1!==f&&(null==a&&(a={},h(i,i={})),i[f]=a[f]=d,l.uri=s.XMLNS,t.startPrefixMapping(f,d))}for(o=e.length;o--;)(c=(l=e[o]).prefix)&&("xml"===c&&(l.uri=s.XML),"xmlns"!==c&&(l.uri=i[c||""]));(n=r.indexOf(":"))>0?(c=e.prefix=r.slice(0,n),p=e.localName=r.slice(n+1)):(c=null,p=e.localName=r);var g=e.uri=i[c||""];if(t.startElement(g,p,r,e),!e.closed)return e.currentNSMap=i,e.localNSMap=a,!0;if(t.endElement(g,p,r),a)for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&t.endPrefixMapping(c)}function h(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function c(){this.attributeNames={}}o.prototype=Error(),o.prototype.name=o.name,l.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),h(t,t={}),function(e,t,i,n,r){function a(e){var t,s=e.slice(1,-1);return Object.hasOwnProperty.call(i,s)?i[s]:"#"===s.charAt(0)?(t=parseInt(s.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((t-=65536)>>
110),56320+(1023&t)):String.fromCharCode(t):(r.error("entity not found:"+e),e)}function l(t){if(t>T){var i=e.substring(T,t).replace(/&#?\w+;/g,a);m&&h(T),n.characters(i,0,t-T),T=t}}function h(t,i){for(;t>=f&&(i=g.exec(e));)f=(p=i.index)+i[0].length,m.lineNumber++;m.columnNumber=t-p+1}for(var p=0,f=0,g=/.*(?:\r\n?|\n)|.*$/g,m=n.locator,v=[{currentNSMap:t}],y={},T=0;;){try{var S=e.indexOf("<",T);if(S<0){if(!e.substr(T).match(/^\s*$/)){var E=n.doc,b=E.createTextNode(e.substr(T));E.appendChild(b),n.currentElement=b}return}switch(S>T&&l(S),e.charAt(S+1)){case"/":var _=e.indexOf(">",S+3),A=e.substring(S+2,_).replace(/[ \t\n\r]+$/g,""),w=v.pop();_<0?(A=e.substring(S+2).replace(/[\s<].*/,""),r.error("end tag name: "+A+" is not complete:"+w.tagName),_=S+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),r.error("end tag name: "+A+" maybe not complete"),_=S+1+A.length);var I=w.localNSMap,P=w.tagName==A;if(P||w.tagName&&w.tagName.toLowerCase()==A.toLowerCase()){if(n.endElement(w.uri,w.localName,A),I)for(var R in I)Object.prototype.hasOwnProperty.call(I,R)&&n.endPrefixMapping(R);P||r.fatalError("end tag name: "+A+" is not match the current start tagName:"+w.tagName)}else v.push(w);_++;break;case"?":m&&h(S),_=function(e,t,i){var s=e.indexOf("?>",t);if(s){var n=e.substring(t,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return n?(n[0].length,i.processingInstruction(n[1],n[2]),s+2):-1}return -1}(e,S,n);break;case"!":m&&h(S),_=function(e,t,i,s){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(n=e.indexOf("--\x3e",t+4))>t?(i.comment(e,t+4,n-t-4),n+3):(s.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var n=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,n-t-9),i.endCDATA(),n+3}var r=function(e,t){var i,s=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(n.lastIndex=t,n.exec(e);i=n.exec(e);)if(s.push(i),i[1])return s}(e,t),a=r.length;if(a>1&&/!doctype/i.test(r[0][0])){var o=r[1][0],l=!1,u=!1;a>3&&(/^public$/i.test(r[2][0])?(l=r[3][0],u=a>4&&r[4][0]):/^system$/i.test(r[2][0])&&(u=r[3][0]));var d=r[a-1];return i.startDTD(o,l,u),i.endDTD(),d.index+d[0].length}return -1}(e,S,n,r);break;default:m&&h(S);var N=new c,D=v[v.length-1].currentNSMap,L=(_=function(e,t,i,n,r,a){function o(e,t,s){i.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),s)}for(var l,u=++t,d=0;;){var h=e.charAt(u);switch(h){case"=":if(1===d)l=e.slice(t,u),d=3;else{if(2!==d)throw Error("attribute equal must after attrName");d=3}break;case"'":case'"':if(3===d||1===d){if(1===d&&(a.warning('attribute value must after "="'),l=e.slice(t,u)),t=u+1,!((u=e.indexOf(h,t))>0))throw Error("attribute value no end '"+h+"' match");o(l,c=e.slice(t,u),t-1),d=5}else{if(4!=d)throw Error('attribute value must after "="');o(l,c=e.slice(t,u),t),a.warning('attribute "'+l+'" missed start quot('+h+")!!"),t=u+1,d=5}break;case"/":switch(d){case 0:i.setTagName(e.slice(t,u));case 5:case 6:case 7:d=7,i.closed=!0;case 4:case 1:break;case 2:i.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==d&&i.setTagName(e.slice(t,u)),u;case">":switch(d){case 0:i.setTagName(e.slice(t,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=e.slice(t,u)).slice(-1)&&(i.closed=!0,c=c.slice(0,-1));case 2:2===d&&(c=l),4==d?(a.warning('attribute "'+c+'" missed quot(")!'),o(l,c,t)):(s.isHTML(n[""])&&c.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),o(c,c,t));break;case 3:throw Error("attribute value missed!!")}return u;case"\x80":h=" ";default:if(h<=" ")switch(d){case 0:i.setTagName(e.slice(t,u)),d=6;break;case 1:l=e.slice(t,u),d=2;break;case 4:var c=e.slice(t,u);a.warning('attribute "'+c+'" missed quot(")!!'),o(l,c,t);case 5:d=6}else switch(d){case 2:i.tagName,s.isHTML(n[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,t),t=u,d=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:d=1,t=u;break;case 3:d=4,t=u;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}u++}}(e,S,N,D,a,r),N.length);if(!N.closed&&function(e,t,i,s){var n=s[i];return null==n&&((n=e.lastIndexOf("</"+i+">"))<t&&(n=e.lastIndexOf("</"+i)),s[i]=n),n<t}(e,_,N.tagName,y)&&(N.closed=!0,i.nbsp||r.warning("unclosed xml attribute")),m&&L){for(var C=u(m,{}),O=0;O<L;O++){var B=N[O];h(B.offset),B.locator=u(m,{})}n.locator=C,d(N,n,D)&&v.push(N),n.locator=m}else d(N,n,D)&&v.push(N);s.isHTML(N.uri)&&!N.closed?_=function(e,t,i,s,n){if(/^(?:script|textarea)$/i.test(i)){var r=e.indexOf("</"+i+">",t),a=e.substring(t+1,r);if(/[&<]/.test(a))return/^script$/i.test(i)||(a=a.replace(/&#?\w+;/g,s)),n.characters(a,0,a.length),r}return t+1}(e,_,N.tagName,a,n):_++}}catch(e){if(e instanceof o)throw e;r.error("element parse error: "+e),_=-1}_>T?T=_:l(Math.max(S,T)+1)}}(e,t,i,n,this.errorHandler),n.endDocument()}},c.prototype={setTagName:function(e){if(!a.test(e))throw Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!a.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=l,t.ParseError=o},2370:e=>{e.exports={cdnName:"AMAZON",parsers:[{element:"host",headerName:"x-amz-cf-pop",regex:/(.+)/},{element:"type",headerName:"x-cache",regex:/(.+)\sfrom.+/}],parseType:function(e){return -1!==e.toLowerCase().indexOf("hit")?1:2*(-1!==e.toLowerCase().indexOf("miss"))}}},2467:e=>{e.exports=function(e){return"[object Array]"===Object.prototype.toString.call(e)}},2477:e=>{e.exports={INIT:"init",START:"start",JOIN:"join",JOIN_TIME:"joinTime",DATA_OBJECT:"data",PAUSE:"pause",RESUME:"resume",SEEK_BEGIN:"seek-begin",SEEK_END:"seek-end",BUFFER_BEGIN:"buffer-begin",BUFFER_END:"buffer-end",ERROR:"error",STOP:"stop",CLICK:"click",MANIFEST:"manifest",PODSTART:"break-start",PODSTOP:"break-stop",QUARTILE:"quartile",VIDEO_EVENT:"video-event",VIDEO_EVENT_END:"video-event-end"}},2503:(e,t,i)=>{var s=i(1593).extend({constructor:function(){this._isBusy=!0,this._sendRequest=!0,this.transformName="Transform"},parse:function(e){},isBlocking:function(e){return this._isBusy}
1,done:function(){this._isBusy=!1,this.emit(s.Event.DONE)},hasToSend:function(e){return this._sendRequest},getState:function(){return this._sendRequest?this._isBusy?this.STATE_BLOCKED:this.STATE_NO_BLOCKED:this.STATE_OFFLINE}},{STATE_OFFLINE:2,STATE_BLOCKED:1,STATE_NO_BLOCKED:0,Event:{DONE:"done"}});e.exports=s},2507:(e,t,i)=>{let{default:s,LogLevel:n}=i(7276),{AnalyticsTag:r}=i(2784);e.exports={stripProtocol:function(e){var t=e;try{t=e.replace(/^(.*?:\/\/|\/\/)/i,"")}catch(e){s.warn(r,e)}return t},parseBoolean:function(e){return"string"==typeof e||e instanceof String?"true"===e.toLowerCase():!!e},elementIsInPage:function(e){try{return"undefined"!=typeof document&&document.body&&"function"==typeof document.body.contains?e!==document.body&&document.body.contains(e):e&&("object"==typeof e||"function"==typeof e)}catch(e){s.warn(r,e)}return!0},addProtocol:function(e,t){var i="http://localhost/";try{i="http://"+e,t||"undefined"!=typeof window&&0===window.location.protocol.indexOf("https")?i="https://"+e:"undefined"!=typeof window&&0===window.location.protocol.indexOf("http")&&(i="//"+e)}catch(e){s.warn(r,e)}return i},parseNumber:function(e,t){return!isNaN(e)&&e>=0&&e!==1/0&&e!==-1/0&&null!=e?e:t},logAllEvents:function(e,t,i){try{if(s.logLevel<=n.DEBUG){i=i||function(e){s.debug(r,"Event: "+e.type)};var a=["canplay","buffering","waiting","ended","play","playing","pause","resume","error","abort","seek","seeking","seeked","stalled","dispose","loadeddata","loadstart"];t&&(null===t[0]?(t.shift(),a=t):a=a.concat(t));for(var o=0;o<a.length;o++)"function"==typeof e?e.call(window,a[o],i):e.on?e.on(a[o],i):e.addEventListener&&e.addEventListener(a[o],i)}}catch(e){s.error(r,e)}},buildRenditionString:function(e,t,i){1==arguments.length&&(i=e,e=null,t=null);var s=null;return e&&t&&(s=e+"x"+t),"number"==typeof i&&!isNaN(i)&&i>=1&&(s?s+="@":s="",s+=i<1e3?Math.round(i)+"bps":i<1e6?(i=Math.round(i/1e3))+"Kbps":(i=Math.round(i/1e4)/100)+"Mbps"),s},buildErrorParams:function(e,t,i,s){var n={};return s=null==s?0:s,"object"==typeof e&&null!==e?n=e:(n.errorCode=e||"FAILURE",n.msg=t||n.errorCode,n.errorMetadata=i,s&&s>0&&(n.errorDuration=s)),n},calculateAdViewability:function(e,t){var i=!0;if("undefined"!=typeof window&&e&&"function"==typeof e.getBoundingClientRect){var s=e.getBoundingClientRect();if(s.top>=window.innerHeight||s.bottom<=0||s.right<=0||s.left>=window.innerWidth)i=!1;else{var n=Math.trunc(s.height*s.width),r=s.top>0?s.top:0,a=s.bottom>window.innerHeight?window.innerHeight:s.bottom,o=s.left>0?s.left:0;i=((s.right>window.innerWidth?window.innerWidth:s.right)-o)*(a-r)*100>n*(t||50)}}return i},filterChangedMetrics:function(e,t){if(!t)return e;var i=!1,n=null;try{for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=e[a],l=t[a];Object.prototype.hasOwnProperty.call(t,a)&&("object"==typeof o&&null!==o&&Object.prototype.hasOwnProperty.call(o,"value")&&"object"==typeof l&&null!==l&&Object.prototype.hasOwnProperty.call(l,"value")?l.value===o.value:l===o)||(i=!0,n||(n={}),n[a]=o)}return i?n:{}}catch(t){return s.warn(r,"Error during metric filtering in Util.filterChangedMetrics.",t),e}},getMetricsFrom:function(e,t){var i=e||t;for(var s in i)if("object"!=typeof i[s]||!i[s].value){var n={};n.value=i[s],i[s]=n}return i},assign:i(4173),isArray:i(2467)}},2553:(e,t,i)=>{e.exports="undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{}},2580:e=>{e.exports={parsers:[{element:"name",headerName:null,regex:/(.+)/},{element:"host",headerName:null,regex:/(.+)/}]}},2602:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});class s{constructor(){this.host="lma.npaw.com",this.components={},this.host="lma.npaw.com",this.components={}}}},2635:(e,t,i)=>{e.exports=i(3948).extend({constructor:function(){"undefined"!=typeof navigator&&navigator.userAgent&&(this._isSmartTVDevice=navigator.userAgent.toLowerCase().match(/smarttv/)||navigator.userAgent.toLowerCase().match(/smart-tv/)||navigator.userAgent.toLowerCase().match(/appletv/)||navigator.userAgent.toLowerCase().match(/apple tv/),this._isPlaystationDevice=null!==navigator.userAgent.match(/PlayStation/),this._isIphoneDevice=null!==navigator.userAgent.match(/iPhone|iPad|iPod/i),this._isAndroidDevice=null!==navigator.userAgent.match(/Android/),this._isSmartphoneDevice=!this._isSmartTVDevice&&!this._isPlaystationDevice&&(this._isIphoneDevice||this._isAndroidDevice),this._isDesktopDevice=!this._isSmartphoneDevice&&!this._isSmartTVDevice&&!this._isPlaystationDevice)},isIphone:function(){return this._isIphoneDevice},isAndroid:function(){return this._isAndroidDevice},isSmartphone:function(){return this._isSmartphoneDevice},isDesktop:function(){return this._isDesktopDevice},isSmartTV:function(){return this._isSmartTVDevice},isPlayStation:function(){return this._isPlaystationDevice}})},2784:(e,t,i)=>{"use strict";var s,n,r;i.r(t),i.d(t,{AnalyticsTag:()=>o,AppAnalyticsTag:()=>l,BalancerTag:()=>d,CoreEvents:()=>r,CoreTag:()=>h,ExpireDefault:()=>n,Method:()=>s,ProductAnalyticsTag:()=>u,SessionsTag:()=>a}),function(e){e.GET="GET",e.POST="POST"}(s||(s={})),function(e){e[e.DEFAULT_VIEW_TIMEOUT_MS=12e4]="DEFAULT_VIEW_TIMEOUT_MS",e[e.DEFAULT_MAX_DURATION_VIEW_MS=864e5]="DEFAULT_MAX_DURATION_VIEW_MS",e[e.DEFAULT_SESSION_TIMEOUT_MS=18e4]="DEFAULT_SESSION_TIMEOUT_MS",e[e.DEFAULT_MAX_DURATION_SESSION_MS=1728e5]="DEFAULT_MAX_DURATION_SESSION_MS",e[e.STOP_VIEWS_AFTER_SESSION_EXPIRE_MS=2e3]="STOP_VIEWS_AFTER_SESSION_EXPIRE_MS"}(n||(n={})),function(e){e.SESSION_EXPIRE="SessionExpire",e.FAST_DATA_READY="FastDataReady"}(r||(r={}));let a="Sessions",o="Analytics",l="AppAnalytics",u="ProductAnalytics",d="Balancer",h="Core"},2995:(e,t,i)=>{e.exports=i(3948).extend({getCdnTraffic:function(){let e;if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.cdn)e=CdnBalancerStats.cdn.totalDownloadedBytes;else if("undefined"!=typeof Streamroot)e=this._getStreamrootPeerObject("cdn",!1)||this._getStreamrootInstanceObject("cdnDownload");else if("undefined"!=typeof peer5&&peer5.getStats)e=peer5.getStats().totalHttpDownloaded;else if("undefined"!=typeof teltoo&&teltoo.getStats){var t=teltoo.getStats();e=t.totalReceivedBytes-t.p2pReceivedBytes}return e},getMultiCdnInfo:function(){let e;if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.cdn&&CdnBalancerStats.cdn.cdns){let t=CdnBalancerStats.p2p;e={P2P:{downloaded_bytes:t.downloadedBytes,uploaded_bytes:t.uploadedBytes,downloaded_chunks:t.downloadedSegments,uploaded_chunks:t.uploadedSegments,errors:t.failedRequests?t.failedRequests.total:0,missed_downloaded_chunks:t.failedRequests?t.failedRequests.absent:0,timeout_errors:t.failedRequests?t.failedRequests.timeout:0,other_errors:t.failedRequests?t.failedRequests.error:0,late_uploaded_chunks:t.discardedUploadedSegments,late_uploaded_bytes:t.discardedUploadedBytes,late_downloaded_bytes:t.discardedDownloadedBytes,time:t.downloadMillis,active_peers:t.activePeers,peers:t.totalPeers}},CdnBalancerStats.cdn.cdns.forEach(function(t){e[t.name]={downloaded_bytes:t.bytes,downloaded_chunks:t.chunks,errors:t.failures,time:t.downloadMillis}})}return e},getSegmentDuration:function(){if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.segmentDuration)return CdnBalancerStats.segmentDuration},getBalancerResponseId:function(){if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.cdn)return CdnBalancerStats.cdn.responseUUID},getP2PTraffic:function(){let e;return"undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.p2p?e=CdnBalancerStats.p2p.downloadedBytes:"undefined"!=typeof Streamroot?e=this._getStreamrootPeerObject("p2p",!0)||this._getStreamrootInstanceObject("dnaDownload"):"undefined"!=typeof peer5&&peer5.getStats?e=peer5.getStats().totalP2PDownloaded:"undefined"!=typeof teltoo&&teltoo.getStats&&(e=teltoo.getStats().p2pReceivedBytes),e},getUploadTraffic:function(){let e;return"undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.p2p?e=CdnBalancerStats.p2p.uploadedBytes:"undefined"!=typeof Streamroot?e=this._getStreamrootPeerObject("upload",!0)||this._getStreamrootInstanceObject("dnaUpload"):"undefined"!=typeof peer5&&peer5.getStats&&(e=peer5.getStats().totalP2PUploaded),e},getIsP2PEnabled:function(){let e=!1;if("undefined"!=typeof CdnBalancerStats&&CdnBalancerStats.p2p)e=CdnBalancerStats.p2p.downloadEnabled;else if("undefined"!=typeof Streamroot)if(Streamroot.p2pAvailable&&Streamroot.peerAgents)for(var t in Streamroot.peerAgents)e=e||Streamroot.peerAgents[t].isP2PEnabled;
1else Streamroot.instances&&Streamroot.instances.forEach(function(t){e=e||t.dnaDownloadEnabled||t.dnaUploadEnabled});else"undefined"!=typeof peer5&&peer5.isEnabled?e=peer5.isEnabled():"undefined"!=typeof teltoo&&(e=!0);return e},_getStreamrootPeerObject:function(e,t){let i="";if(Streamroot.p2pAvailable&&Streamroot.peerAgents)for(let s in Streamroot.peerAgents){let n=Streamroot.peerAgents[s];n.stats&&(!t||n.isP2PEnabled)&&(i+=n.stats[e])}return i.length>0?i:void 0},_getStreamrootInstanceObject:function(e){let t="";return Streamroot.instances&&Streamroot.instances.forEach(function(i){i.stats&&i.stats.currentContent&&(t+=i.stats.currentContent[e])}),t.length>0?t:void 0}})},3003:e=>{e.exports={WILL_SEND_INIT:"will-send-init",WILL_SEND_START:"will-send-start",WILL_SEND_JOIN:"will-send-join",WILL_SEND_PAUSE:"will-send-pause",WILL_SEND_RESUME:"will-send-resume",WILL_SEND_SEEK:"will-send-seek",WILL_SEND_DATA_OBJECT:"will-send-data",WILL_SEND_BUFFER:"will-send-buffer",WILL_SEND_ERROR:"will-send-error",WILL_SEND_FATAL_ERROR:"will-send-fatal-error",WILL_SEND_STOP:"will-send-stop",WILL_SEND_PING:"will-send-ping",WILL_SEND_VIDEO_EVENT:"will-send-video-event",WILL_SEND_VIDEO_EVENT_END:"will-send-video-event-end",WILL_SEND_AD_START:"will-send-ad-start",WILL_SEND_AD_JOIN:"will-send-ad-join",WILL_SEND_AD_PAUSE:"will-send-ad-pause",WILL_SEND_AD_RESUME:"will-send-ad-resume",WILL_SEND_AD_BUFFER:"will-send-ad-buffer",WILL_SEND_AD_STOP:"will-send-ad-stop",WILL_SEND_AD_CLICK:"will-send-ad-click",WILL_SEND_AD_ERROR:"will-send-ad-error",WILL_SEND_AD_MANIFEST:"will-send-ad-manifest",WILL_SEND_AD_POD_START:"will-send-ad-break-start",WILL_SEND_AD_POD_STOP:"will-send-ad-break-stop",WILL_SEND_AD_QUARTILE:"will-send-ad-quartile",WILL_SEND_SESSION_START:"will-send-session-start",WILL_SEND_SESSION_STOP:"will-send-session-stop",WILL_SEND_NAV:"will-send-nav",WILL_SEND_BEAT:"will-send-beat",WILL_SEND_EVENT:"will-send-event",WILL_SEND_EVENT_END:"will-send-event-end",WILL_SEND_OFFLINE_EVENTS:"will-send-offline-events"}},3168:(e,t,i)=>{var s=i(3821),n=i(4387),r=i(7939);let{AnalyticsTag:a}=i(2784),{default:o}=i(7276);e.exports=n.extend({parse:function(e,t,i){i=i||"";var n=null;try{var l=this._findVideoStreamUrl(e);if(l)n=l;else{var u=e.replaceAll(",URI=","\n").replaceAll('"',"").replaceAll(",","\n");if(this._parseLastChunk){for(var d,h=[],c=/((\S*?)(\.m3u8|\.m3u|\.ts|\.m4s|\.mp4|\.cmfv|\.fmp4)((\?|;)\S*|\n|\r|$))/gi;null!==(d=c.exec(u));)h.push(d);if(h.length>0)n=h[h.length-1];else{var p=/((\S*?)(\.m4a|\.aac|\.mp3|\.ac3|\.ec3)((\?|;)\S*|\n|\r|$))/gi;for(h=[];null!==(d=p.exec(u));)h.push(d);h.length>0&&(n=h[h.length-1])}}else(n=/((\S*?)(\.m3u8|\.m3u|\.ts|\.m4s|\.mp4|\.cmfv|\.fmp4)((\?|;)\S*|\n|\r|$))/i.exec(u))||(n=/((\S*?)(\.m4a|\.aac|\.mp3|\.ac3|\.ec3)((\?|;)\S*|\n|\r|$))/i.exec(u))}}catch(e){o.warn(a,"Parse HLS Regex failed",e),this.done()}if(null!==n){var f=n[1].trim(),g="",m=i.lastIndexOf("/");if(0!==f.indexOf("http")&&-1!==m){if("/"===f[0]&&"/"!==f[1]){var v=i.indexOf("/")+1;v+=i.substr(v,i.length).indexOf("/")+1,v+=i.substr(v,i.length).indexOf("/"),f=i.slice(0,v)+f}else f=i.slice(0,m)+"/"+f;g=i.slice(0,m)+"/"}if(".m3u8"===n[3]||".m3u"===n[3])if(t)this._parseWithManifest(t,g,n);else{var y=new s(f,null,null,{cache:!0,requestHeaders:this._headers});y.on(s.Event.SUCCESS,(function(e){this._parseWithManifest(e,g,n)}).bind(this)),y.on(s.Event.ERROR,(function(e){this.done()}).bind(this)),y.send()}else{switch(n[3]){case".mp4":case".m4s":case".fmp4":case".m4a":case".aac":case".mp3":case".ac3":case".ec3":this._transportFormat=r.MP4;break;case".ts":this._transportFormat=r.MPEG2;break;case".cmfv":this._transportFormat=r.CMF}this._realResource=f,this.done()}}else this.done()},_parseWithManifest:function(e,t,i){this._lastManifest=e,this.parse(e.getResponseText(),null,t+i[2])},shouldExecute:function(e){var t=!0;return e&&(t=-1!==e.getResponseText().indexOf("#EXTM3U")),t},_findVideoStreamUrl:function(e){if(-1===e.indexOf("#EXTM3U"))return null;for(var t=e.split("\n"),i=0;i<t.length-1;i++){var s=t[i].trim();if(0===s.indexOf("#EXT-X-STREAM-INF:")){var n=-1!==s.indexOf("RESOLUTION="),r=-1!==s.indexOf("avc1.")||-1!==s.indexOf("hev1.")||-1!==s.indexOf("hvc1.");if(n||r){var a=t[i+1].trim(),o=/((\S*?)(\.m3u8|\.m3u)((\?|;)\S*|$))/i.exec(a);if(o)return o}}}return null}})},3381:(e,t,i)=>{var s=i(3948),n=i(4954),r=i(7680),a=s.extend({constructor:function(e,t,i){this._adapter=e,this._seekEnabled=t&a.Type.SEEK,this._bufferEnabled=t&a.Type.BUFFER,i=i||800,this._chrono=new r,this._lastPlayhead=0,i>0&&(this._timer=new n(this.progress.bind(this),i))},start:function(){this.stop(),this.canBeUsed()&&this._timer.start()},stop:function(){this._lastPlayhead=0,this._timer&&this._timer.stop()},skipNextTick:function(){this._lastPlayhead=0},progress:function(){var e=this._chrono.stop();this._chrono.start();var t=e*a.kBUFFER_THRESHOLD_RATIO,i=e*a.kSEEK_THRESHOLD_RATIO;this._adapter.getPlayrate&&this._adapter.getPlayrate()&&1!==this._adapter.getPlayrate()&&(t*=this._adapter.getPlayrate(),i*=this._adapter.getPlayrate());var s=this._getPlayhead(),n=1e3*Math.abs(this._lastPlayhead-s),r="function"==typeof this._adapter.getVideoBufferLength?this._adapter.getVideoBufferLength():null;if(n<t){if(this._bufferEnabled&&this._lastPlayhead>0&&!this._adapter.flags.isPaused&&!this._adapter.flags.isSeeking){let e=this._adapter.getPlugin();e&&e.options&&e.options.checkVideoBufferInPlayheadMonitor?(null===r||r<=0)&&this._adapter.fireBufferBegin(null,!1,"playheadMonitor"):this._adapter.fireBufferBegin(null,!1,"playheadMonitor")}}else n>i?this._seekEnabled&&this._lastPlayhead>0&&this._adapter.fireSeekBegin(null,!1,"playheadMonitor"):(this._seekEnabled&&this._adapter.fireSeekEnd(null,"playheadMonitor"),this._bufferEnabled&&this._adapter.fireBufferEnd(null,"playheadMonitor"));this._lastPlayhead=s},canBeUsed:function(){let e=this._adapter.getVideo(),t=this._adapter.getPlugin();return!(!t||!t.getPlayheadMonitorEnabled()||!this._seekEnabled&&!this._bufferEnabled||e&&e.getIsLive()&&t.options["content.isLive.noMonitor"])},_getPlayhead:function(){return this._adapter.getPlayhead()}},{Type:{NONE:0,BUFFER:1,SEEK:2},kBUFFER_THRESHOLD_RATIO:.5,kSEEK_THRESHOLD_RATIO:2});e.exports=a},3398:(e,t,i)=>{var s=i(3948);let{default:n}=i(7276),{AnalyticsTag:r}=i(2784);var a=s.extend({exists:function(e){return a.Dictionary.hasOwnProperty(e)},getNewName:function(e){var t=a.Dictionary[e];return n.warn(r,'The option "'+e+'" is deprecated, use "'+t+'" instead'),t}}
1,{Dictionary:{httpSecure:"app.https",username:"user.name",anonymousUser:"user.anonymousId",obfuscateIp:"user.obfuscateIp",userType:"user.type","content.title2":"content.program","background.settings.iphone":"background.settings.iOS","parse.hls":"parse.manifest","parse.dash":"parse.manifest","parse.locationHeader":"parse.manifest","extraparam.1":"content.customDimension.1","extraparam.2":"content.customDimension.2","extraparam.3":"content.customDimension.3","extraparam.4":"content.customDimension.4","extraparam.5":"content.customDimension.5","extraparam.6":"content.customDimension.6","extraparam.7":"content.customDimension.7","extraparam.8":"content.customDimension.8","extraparam.9":"content.customDimension.9","extraparam.10":"content.customDimension.10","extraparam.11":"content.customDimension.11","extraparam.12":"content.customDimension.12","extraparam.13":"content.customDimension.13","extraparam.14":"content.customDimension.14","extraparam.15":"content.customDimension.15","extraparam.16":"content.customDimension.16","extraparam.17":"content.customDimension.17","extraparam.18":"content.customDimension.18","extraparam.19":"content.customDimension.19","extraparam.20":"content.customDimension.20","ad.extraparam.1":"ad.customDimension.1","ad.extraparam.2":"ad.customDimension.2","ad.extraparam.3":"ad.customDimension.3","ad.extraparam.4":"ad.customDimension.4","ad.extraparam.5":"ad.customDimension.5","ad.extraparam.6":"ad.customDimension.6","ad.extraparam.7":"ad.customDimension.7","ad.extraparam.8":"ad.customDimension.8","ad.extraparam.9":"ad.customDimension.9","ad.extraparam.10":"ad.customDimension.10"}});e.exports=a},3455:(e,t,i)=>{var s=i(3948),n=i(470);e.exports=s.extend({constructor:function(){this.storage=new n("npawOffline",!0),this.actualView=null,this.viewList=[],this.givenIds=[],this._getOldViewList()},_newView:function(){var e=this._getValidId();this.storage.setLocal(e,""),this.viewList.push(e),this.storage.setLocal("views",this.viewList),this.actualView=e},addEvent:function(e,t){if("/start"===e&&this._newView(),"/init"===e||!this.actualView)return null;var i='{"request":"'+e.slice(1)+'",';for(var s in i+='"unixtime":'+Date.now()+",",t){if(void 0===t[s])break;i+='"'+s+'":',"code"===s?i+='"CODE_PLACEHOLDER",':"sessionId"===s?i+='"SESSION_PLACEHOLDER",':"sessionRoot"===s?i+='"ROOT_PLACEHOLDER",':"string"==typeof t[s]?i+='"'+t[s]+'",':"object"==typeof t[s]?i+='"'+JSON.stringify(t[s]).replace(/"/g,'\\"')+'",':i+=t[s]+","}i=i.slice(0,-1)+"}";var n=this.storage.getLocal(this.actualView);""!==n&&(n+=","),this.storage.setLocal(this.actualView,n+i)},getView:function(){if(this.viewList.length>this.givenIds.length)for(var e=0;;){var t=this.viewList[e];if(0>this.givenIds.indexOf(t))return this.givenIds.push(t),["["+this.storage.getLocal(t)+"]",t];e++}return[null,null]},removeView:function(e){this.storage.removeLocal(e);var t=this.viewList.indexOf(e);-1!==t&&this.viewList.splice(t,1),-1!==(t=this.givenIds.indexOf(e))&&this.givenIds.splice(t,1),this.storage.setLocal("views",this.viewList.toString()),e===this.actualView&&(this.actualView=null)},_getOldViewList:function(){var e="";this.storage.getLocal("views")?e=this.storage.getLocal("views"):this.storage.setLocal("views",""),""===e?this.viewList=[]:"function"==typeof e.split&&(this.viewList=e.split(","))},_getValidId:function(){var e=Math.floor(1e8*Math.random()).toString();return this.viewList.indexOf(e)>=0?this._getValidId():e},sent:function(){this.givenIds=[]}})},3473:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{constructor(e,t,i){if(this.timeoutMs=e,this.maxDurationMs=t,this.coreStorage=i,this.expired=!1,i)try{let e=i.getLocal("firstRequestTime");this.firstRequestTime=e?Number(e):void 0;let t=i.getLocal("lastRequestTime");this.lastRequestTime=t?Number(t):void 0}catch(e){}}onRequestSent(){let e=Date.now();void 0===this.firstRequestTime&&(this.firstRequestTime=e),this.lastRequestTime=e,this.coreStorage&&(void 0!==this.firstRequestTime&&this.coreStorage.setLocal("firstRequestTime",this.firstRequestTime.toString()),void 0!==this.lastRequestTime&&this.coreStorage.setLocal("lastRequestTime",this.lastRequestTime.toString()))}reset(){this.coreStorage&&(this.coreStorage.removeLocal("firstRequestTime"),this.coreStorage.removeLocal("lastRequestTime")),this.firstRequestTime=void 0,this.lastRequestTime=void 0,this.expired=!1}checkExpiration(e){void 0!==e&&e!==this.timeoutMs&&(this.timeoutMs=e);let t=Date.now(),i=this.lastRequestTime,s=this.firstRequestTime;if(this.coreStorage)try{let e=this.coreStorage.getLocal("lastRequestTime");i=e?Number(e):i;let t=this.coreStorage.getLocal("firstRequestTime");s=t?Number(t):s}catch(e){}let n=void 0!==i&&t-i>this.timeoutMs,r=void 0!==s&&t-s>this.maxDurationMs;(n||r)&&!this.expired&&(this.expired=!0)}isExpired(){return this.checkExpiration(),this.expired}isStarted(){return void 0!==this.firstRequestTime&&this.firstRequestTime>0}isActive(){return void 0!==this.firstRequestTime&&this.firstRequestTime>0&&(this.checkExpiration(),!this.expired)}}},3555:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(2784);class n{constructor(e,t,i,n,r,a,o,l){this.method=s.Method.GET,this.videoKey=i,this.service=e,this.method=n,this.params=t||{},this.expirationManager=l,this.body=r,this.onSuccessCallback=a,this.onFailCallback=o}getService(){return this.service}getMethod(){var e;return null!=(e=this.method)?e:s.Method.GET}setMethod(e){this.method=e}getParams(){return this.params}getOnSuccess(){return this.onSuccessCallback}getOnFail(){return this.onFailCallback}getVideoKey(){return this.videoKey}getExpirationManager(){return this.expirationManager}getParam(e){return this.params[e]}setParam(e,t){return this.params[e]=t,this}setParams(e){this.params=e}getBody(){return this.body}setBody(e){this.body=e}isPost(){return this.method===s.Method.POST}}},3713:e=>{e.exports={cdnName:"LEVEL3",parsers:[{element:"host+type",headerName:"X-WR-Diag",regex:/Host:(.+)\sType:(.+)/}],requestHeaders:{"X-WR-Diag":"host"}
1,parseType:function(e){if(e){if(0===e.indexOf("TCP_HIT")||0===e.indexOf("TCP_MEM_HIT")||0===e.indexOf("TCP_IMS_HIT"))return 1;if(0===e.indexOf("TCP_MISS"))return 2}return 0}}},3782:(e,t,i)=>{let s=i(703),n=i(7086);e.exports={AdPosition:s,ManifestError:i(8932),RequestMethod:i(9637),Service:i(7062),WillSendEvent:i(3003),WillSendLog:i(825),AdInsertionType:i(1083),Adapter:n,Metadata:i(8424)}},3821:(e,t,i)=>{var s=i(3948);let{default:n,LogLevel:r}=i(7276);var a=i(2507);let{AnalyticsTag:o}=i(2784);var l=s.extend({constructor:function(e,t,i,s,n){this.videoKey=n,this.xhr=this.createXHR(),this.host=e||"",this.service=t||"",this.params=i||{},this.options=a.assign({},l.defaultOptions,s),this.retries=0,this.sendPostRequest=!1,this.preparedPostRequest=!1,this.options.cache||this.params.timemark||this.setParam("timemark",(new Date).getTime())},createXHR:function(){var e={};try{e=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}catch(e){n.error(o,e)}return e},getXHR:function(){return this.xhr},getResponse:function(){return this.xhr.response},getResponseText:function(){return this.xhr.responseText},getResponseHeaders:function(){return this.xhr.getAllResponseHeaders()},getUrl:function(){return this.host+this.service+this.getParamString()},getVideoKey:function(){return this.videoKey},on:function(e,t,i){return this.xhr.addEventListener?this.xhr.addEventListener(e,t.bind(this,this,i)):e===l.Event.SUCCESS&&(this.xhr.onreadystatechange=(function(){4===this.xhr.readyState&&t.bind(this,this,i)}).bind(this)),this},off:function(e,t){return this.xhr.removeEventListener(e,t),this},getParamString:function(){try{var e="?";for(var t in this.params){var i=this.params[t];if(null!==i&&"object"==typeof i){var s=JSON.stringify(i);"{}"!==s&&(e+=encodeURIComponent(t)+"="+encodeURIComponent(s)+"&")}else null!=i&&""!==i&&(e+=encodeURIComponent(t)+"="+encodeURIComponent(i)+"&")}return e.slice(0,-1)}catch(e){return n.error(o,e),""}},getParam:function(e){return this.params[e]},setParam:function(e,t){return this.params[e]=t,this},setBody:function(e){this.body=e},setPostRequest:function(e){this.sendPostRequest=e},getParamsForPostMessages:function(){var e={};try{var t=this.getParam("timemark"),i=this.getParam("code"),s=this.getParam("sessionRoot"),r=this.getParam("sessionId");t&&(e.timemark=t),i&&(e.code=i),s&&(e.sessionRoot=s),r&&(e.sessionId=r)}catch(e){n.error(o,e)}return e},send:function(){try{try{this.sendPostRequest&&!this.preparedPostRequest&&(this.options.method="POST",this.body=JSON.stringify(this.params),this.params=this.getParamsForPostMessages(),this.preparedPostRequest=!0)}catch(e){}if(this.xhr.open(this.options.method,this.getUrl(),!0),this.options.requestHeaders)for(var e in this.options.requestHeaders)this.options.requestHeaders.hasOwnProperty(e)&&this.xhr.setRequestHeader(e,this.options.requestHeaders[e]);for(var t in this.options.retryAfter>0&&this.options.maxRetries>0&&0===this.retries&&this.on(l.Event.ERROR,(function(){if(this.retries>=this.options.maxRetries)n.error(o,'Aborting failed request "'+this.service+'". Max retries reached.');else{n.warn(o,'YBRequest "'+this.service+'" failed. Retry '+(this.retries+1)+" of "+this.options.maxRetries+" in "+this.options.retryAfter+"ms.");try{setTimeout((function(){this.retries+=1,this.send()}).bind(this),this.options.retryAfter)}catch(e){"undefined"!=typeof atv?atv.setTimeout((function(){this.retries+=1,this.send()}).bind(this),this.options.retryAfter):n.error(o,e)}}}).bind(this)),n.logLevel<=r.VERBOSE&&n.verbose(o,"XHR Req: "+this.getUrl()),l._globalListeners)l._globalListeners[t].forEach((function(e){this.on(t,e)}).bind(this));return this.xhr.send(this.body)}catch(e){n.error(o,e)}}},{Event:{SUCCESS:"load",LOAD:"load",ERROR:"error",ABORT:"abort"},defaultOptions:{method:"GET",requestHeaders:{},maxRetries:3,retryAfter:5e3,cache:!1},_globalListeners:{},onEvery:function(e,t){l._globalListeners[e]=l._globalListeners[e]||[],l._globalListeners[e].push(t)},offEvery:function(e,t){if(l._globalListeners[e]){var i=l._globalListeners[e].indexOf(t);-1!==i&&l._globalListeners[e].splice(i,1)}}});e.exports=l},3831:(e,t,i)=>{var s=i(3821),n=i(4387),r=i(7939);let{AnalyticsTag:a}=i(2784),{default:o}=i(7276);e.exports=n.extend({parse:function(e,t){if(t)this.parseLocation(t,e);else{var i=new s(e,null,null,{cache:!0,requestHeaders:this._headers});i.on(s.Event.SUCCESS,(function(t){this.parseLocation(t,e)}).bind(this)),i.on(s.Event.ERROR,(function(e){this.done()}).bind(this)),i.send()}},parseLocation:function(e,t){this.iterations--;var i=new RegExp(/<Location>([\s\S]+)<\/Location>/);try{this._lastManifest=e;var s=e.getResponseText(),n=i.exec(s);if(n&&n[1])var r=this._htmlDecode(n[1].replace("\n",""));r&&r!==t&&this.iterations>0?this.parse(r):this.parseFinalResource(s,t)}catch(e){o.warn(a,"Dash parse failed"),this.done()}},_htmlDecode:function(e){if("undefined"!=typeof document&&"function"==typeof document.createElement){var t=document.createElement("textarea");return t.innerHTML=e,t.childNodes&&t.childNodes.length?t.childNodes[0].nodeValue:e}return e},parseFinalResource:function(e,t){var i=new RegExp(/<BaseURL>[\r\n]*(.*?)[\r\n]*<\/BaseURL>/g),s=new RegExp(/<SegmentTemplate[\s\S]*?media="([^"]+)"/g),n=new RegExp(/<SegmentURL[\s\S]*?media="([^"]+)"/g),r=null;try{if(this._parseLastChunk){for(var l,u=[];null!==(l=i.exec(e));)l[1]&&this._isFullUrl(l[1])&&u.push(l);if(0===u.length)for(;null!==(l=s.exec(e));)l[1]&&u.push(l);if(0===u.length)for(;null!==(l=n.exec(e));)l[1]&&u.push(l);u.length>0&&(r=u[u.length-1])}else{var d=/<BaseURL>[\r\n]*(.*?)[\r\n]*<\/BaseURL>/.exec(e),h=/<SegmentTemplate[\s\S]*media="([^"]+)/.exec(e),c=/<SegmentURL[\s\S]*media="([^"]+)/.exec(e);r=d||h||c}this._getManifestMetadata(e),r&&r[1]&&this._isFullUrl(r[1])?r[1].indexOf('"')>0?this._realResource=r[1].substr(0,r[1].indexOf('"')).replace("\n",""):this._realResource=r[1].replace("\n",""):this._realResource=t}catch(e){o.warn(a,"Dash manifest parse failed")}this.done()},_getManifestMetadata:function(e){try{var t=new RegExp(/<AdaptationSet[\s\S]*mimeType="video\/([^"]+)/).exec(e),i=null;switch(t[1]){case"mp4":case"m4s":i=r.MP4;break;case"mp2t":i=r.MPEG2;break;case"cmfv":i=r.CMF}this._transportFormat=i}catch(e){o.warn(a,"Couldnt find the transport format")}},_isFullUrl:function(e){return -1!==e.indexOf("http")},shouldExecute:function(e){var t=!0;return e&&(t=-1!==e.getResponseText().indexOf("<MPD")),t}})},3908:(e,t,i)=>{var s=i(1593),n=i(2507);i(3821);let{AnalyticsTag:r}=i(2784),{default:a}=i(7276);var o=s.extend({constructor:function(e){this._options=n.assign({cdnName:null,parsers:[],requestMethod:"HEAD",requestHeaders:{},parseType:function(){return 0}},e),this._responses={}}
1,done:function(){this.emit(o.Event.DONE)},addParser:function(e){return this._options.parsers.push(e),this},setCdnName:function(e){return this._options.cdnName=e,this},setRequestMethod:function(e){return this._options.requestMethod=e,this},setRequestHeader:function(e,t){return this._options.requestHeaders[e]=t,this},setParseType:function(e){return this._options.parseType=e,this},getParsedCdnName:function(){return this._cdnName},getParsedNodeHost:function(){return this._cdnNodeHost},getParsedNodeTypeString:function(){return this._cdnNodeTypeString},getParsedNodeType:function(){return this._cdnNodeType},getResponses:function(){return this._responses},parse:function(e,t){this._responses=t||{};var i=JSON.stringify(this._options.requestHeaders);this._responses[i]?this._parseResponse(this._responses[i]):this._requestResponse(e)},_requestResponse:function(e){var t=JSON.stringify(this._options.requestHeaders),i="{}"!==t;let s=new XMLHttpRequest;for(let t in s.open(this._options.requestMethod,e),this._options.requestHeaders)Object.prototype.hasOwnProperty(this._options.requestHeaders,t)&&s.setRequestHeader(t,this._options.requestHeaders[t]);s.onreadystatechange=()=>{4===s.readyState&&(s.status>=200&&s.status<400?(this._responses[t]=s.getAllResponseHeaders(),this._parseResponse(this._responses[t])):i?(this._options.requestHeaders={},this._requestResponse(e)):this.done())},s.send()},_parseResponse:function(e){this._options.parsers.forEach((function(t){if("string"==typeof t.headerName)this._parseHeaderResponse(e,t,t.headerName);else if(Array.isArray(t.headerName))for(var i=0,s=t.headerName.length;i<s;i++){var n=t.headerName[i];"string"==typeof n&&this._parseHeaderResponse(e,t,n)}}).bind(this)),this.done()},_parseHeaderResponse:function(e,t,i){i&&(i=i?i.toLowerCase():"",e.split("\n").forEach((function(e){var s=e.indexOf(":");-1!==s&&e.slice(0,s).toLowerCase()===i&&this._executeParser(t,e.slice(s+1))}).bind(this)))},_executeParser:function(e,t){try{var i=e.regex.exec(t.trim());if(null!==i)switch(this._options.cdnName&&(this._cdnName=this._options.cdnName),e.element){case o.ElementType.HOST:this._cdnNodeHost=i[1];break;case o.ElementType.TYPE:this._cdnNodeTypeString=i[1],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString);break;case o.ElementType.HOST_AND_TYPE:this._cdnNodeHost=i[1],this._cdnNodeTypeString=i[2],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString);break;case o.ElementType.TYPE_AND_HOST:this._cdnNodeTypeString=i[1],this._cdnNodeType=this._options.parseType(this._cdnNodeTypeString),this._cdnNodeHost=i[2];break;case o.ElementType.NAME:this._cdnName=i[1].toUpperCase()}}catch(e){a.warn(r,"CDN parsing for "+this._options.cdnName+" could not parse header value "+t)}},shouldExecute:function(){return!0}},{Event:{DONE:"done"},ElementType:{HOST:"host",TYPE:"type",HOST_AND_TYPE:"host+type",TYPE_AND_HOST:"type+host",NAME:"name"},_cdnConfigs:{},setBalancerHeaderName:function(e,t){o._cdnConfigs.Balancer.parsers[0].headerName=e,o._cdnConfigs.Balancer.parsers[1].headerName=t},create:function(e){if(o._cdnConfigs[e])return new o(o._cdnConfigs[e]);a.warn(r,"Tried to create an unexisting CdnParser named "+e)},add:function(e,t){o._cdnConfigs[e]=t}});o.add("Level3",i(3713)),o.add("Cloudfront",i(7286)),o.add("Akamai",i(5298)),o.add("Highwinds",i(2047)),o.add("Fastly",i(563)),o.add("Telefonica",i(5040)),o.add("Amazon",i(2370)),o.add("Edgecast",i(7660)),o.add("Balancer",i(2580)),o.add("NosOtt",i(4335)),e.exports=o},3948:(e,t,i)=>{var s=i(4173),n=i(9600),r=function(){};r.prototype={constructor:function(){}},r.extend=function(e,t){var i,r=this;return s(i=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},r,t),i.prototype=n(r.prototype),e&&s(i.prototype,e),i.prototype.constructor=i,i.__super__=r.prototype,i},e.exports=r},4173:e=>{e.exports=function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var s=arguments[i];if(null!=s)for(var n in s)s.hasOwnProperty(n)&&(t[n]=s[n])}return t}},4335:e=>{e.exports={cdnName:"NOSOTT",parsers:[{element:"host",headerName:"X-NOS-Server",regex:/(.+)/},{element:"type",headerName:"X-Cache",regex:/(.*)/}],parseType:function(e){switch(e){case"Hit":return 1;case"Miss":return 2;default:return 0}}}},4387:(e,t,i)=>{let s=i(1593).extend({constructor:function(e){this._realResource=void 0,this._lastManifest=void 0,this._transportFormat=void 0,this.iterations=3,this._headers=e,this._parseLastChunk=!1},setParseLastChunk:function(e){this._parseLastChunk=e}
1,done:function(){this.iterations=3,this.emit(s.Event.DONE)},parse:function(e,t){},getResource:function(){return this._realResource},getTransportFormat:function(){return this._transportFormat},getLastManifest:function(){return this._lastManifest},shouldExecute:function(e){return!0}},{Event:{DONE:"done"}});e.exports=s},4607:e=>{e.exports=function(){Function.prototype.bind=Function.prototype.bind||function(e){var t=Array.prototype.slice,i=this,s=t.call(arguments,1);function n(){var n=i.prototype&&this instanceof i;return i.apply(!n&&e||this,s.concat(t.call(arguments)))}return n.prototype=i.prototype,n},Array.prototype.forEach=Array.prototype.forEach||function(e,t){if("function"!=typeof e)throw TypeError(e+" is not a function!");for(var i=this.length,s=0;s<i;s++)e.call(t,this[s],s,this)},Math.trunc=Math.trunc||function(e){return isNaN(e)?NaN:e>0?Math.floor(e):Math.ceil(e)}}},4954:(e,t,i)=>{var s=i(3948),n=i(7680);e.exports=s.extend({constructor:function(e,t){this.callback=e,this.interval=t||5e3,this.isRunning=!1,this._timer=null,this.chrono=new n},start:function(){this.isRunning||(this.isRunning=!0,this._setTick())},stop:function(){if(this.isRunning=!1,this._timer)try{clearTimeout(this._timer),this._timer=null}catch(e){"undefined"!=typeof atv&&(atv.clearTimeout(this._timer),this._timer=null)}},_setTick:function(){if(this.isRunning){this.chrono.start();try{this._timer=setTimeout((function(){this.callback(this.chrono.stop()),this._setTick()}).bind(this),this.interval)}catch(e){"undefined"!=typeof atv&&(this._timer=atv.setTimeout((function(){this.callback(this.chrono.stop()),this._setTick()}).bind(this),this.interval))}}}})},5031:(e,t,i)=>{let{default:s}=i(7276);var n=i(3782);let{default:r}=i(9065),{default:a}=i(3555),{AnalyticsTag:o,Method:l}=i(2784),{default:u}=i(1577),{default:d}=i(61);e.exports={_startPings:function(){if(!this.sendingPings){var e=this.plugin.isMethodPostEnabled()?l.POST:l.GET;let t=1e3*r.getInstance().getFastDataService().getPingTime();this._currentPingTime=t,r.getInstance().pushPeriodicDataFromCallback(this.plugin.options.offline?d.Consumer.PERSISTENT:d.Consumer.NQS,this.getVideoKey(),n.Service.PING,t,e,this._sendPing.bind(this),this._onPingSuccess.bind(this),void 0,this.expirationManager),this.sendingPings=!0}},_onPingSuccess:function(){this.lastEventTime=(new Date).getTime()},_stopPings:function(){r.getInstance().unregisterPeriodicPush(this.getVideoKey()),this.sendingPings=!1},_sendPing:function(){if(!this.plugin.analyticsRequestHandler.shouldSendStats()||!this.isInitiated&&!this._adapter.flags.isStarted||this._adapter.flags.isStopped||this._expiredSession())return;let e=(new Date).getTime(),t=this._currentPingTime||1e3*r.getInstance().getFastDataService().getPingTime()||5e3,i=this.timeSinceLastPing?e-this.timeSinceLastPing:t;this.timeSinceLastPing=e;var u={diffTime:i,entities:this.requestBuilder.getChangedEntities([this,this.plugin],this.options)};if(this._adapter&&(u=this._adapter.flags.isPaused?this.requestBuilder.fetchParams(u,["pauseDuration"],!1,[this,this.plugin],this.options):this.requestBuilder.fetchParams(u,["bitrate","throughput","fps"],!1,[this,this.plugin],this.options),this._adapter.flags.isJoined&&(u=this.requestBuilder.fetchParams(u,["playhead"],!1,[this,this.plugin],this.options)),this._adapter.flags.isBuffering&&(u=this.requestBuilder.fetchParams(u,["bufferDuration"],!1,[this,this.plugin],this.options)),this._adapter.flags.isSeeking&&(u=this.requestBuilder.fetchParams(u,["seekDuration"],!1,[this,this.plugin],this.options))),this._adsAdapter&&!this.options["ad.ignore"]&&(this._adsAdapter.flags.isStarted&&(u=this.requestBuilder.fetchParams(u,["adPlayhead","adViewedDuration","adViewability"],!1,[this,this.plugin],this.options),u=this._adsAdapter.flags.isPaused?this.requestBuilder.fetchParams(u,["adPauseDuration"],!1,[this,this.plugin],this.options):this.requestBuilder.fetchParams(u,["adBitrate"],!1,[this,this.plugin],this.options)),this._adsAdapter.flags.isBuffering&&(u=this.requestBuilder.fetchParams(u,["adBufferDuration"],!1,[this,this.plugin],this.options))),u=this.requestBuilder.buildParams(u,n.Service.PING,[this,this.plugin],this.options),this.controlPlayerExists()&&this._adapter&&!this._adapter.checkExistsPlayer())return s.debug(o,"Detected player no exists, and fire stop event"),void this._adapter.fireStop();var d=this.plugin.isMethodPostEnabled()?l.POST:l.GET;let h=new a(n.Service.PING,u,this.getVideoKey(),d,void 0,void 0,void 0,this.expirationManager),c=h.getVideoKey(),p=h.getService();for(let e of this.plugin.analyticsRequestHandler.onWillSendVideoRequestListeners)e(p,c,u);return this.plugin.analyticsRequestHandler.prepareParams(h),s.verbose(o,n.Service.PING),this.startDelayed&&this._retryStart(),h.getParams()}}},5040:e=>{e.exports={cdnName:"TELEFO",parsers:[{element:"host+type",headerName:"x-tcdn",regex:/Host:(.+)\sType:(.+)/}],requestHeaders:{"x-tcdn":"host"},parseType:function(e){if(e){if(-1!==e.indexOf("p")||-1!==e.indexOf("c"))return 1;if(-1!==e.indexOf("i")||-1!==e.indexOf("m"))return 2}return 0}}},5200:(e,t,i)=>{var s=i(3948),n=i(7680);e.exports=s.extend({constructor:function(){this.reset()},reset:function(){this.join=new n,this.seek=new n,this.pause=new n,this.buffer=new n,this.total=new n,this.viewedMax=[]}})},5292:(e,t,i)=>{var s=i(1593);let{default:n}=i(7276);
1var r=i(2507),a=i(9835),o=i(5200),l=i(7255),u=i(3381),d=i(8490),h=i(7086),c=i(6777);let{AnalyticsTag:p}=i(2784),{default:f}=i(9065),{default:g}=i(61);var m=s.extend({constructor:function(e,t,s,r,u,d){let h;this._key=e,this._setAdapter=!1,this._npawVideo=t,this._loadedAdapterImplementation=!1,this.flags=new l,this.chronos=new o,this._adapterClasses={},this.fireEventsStruct={},this.fireEventsStruct.buffer=[],this.fireEventsStruct.seek=[],this.monitor=null,this.plugin=s,this.player&&this.unregisterListeners(),this.player=null,this._isAdsAdapter=null,this.log=n,this.log.loadLevelFromUrl(),this.npaw=i(6014),this.setPlayer(u);let c="object"!=typeof d,f=c?JSON.parse(d):void 0;if(this._adapterName=c?this.getAdapterName(f):this.getAdapterNameFromClass(d),c&&this.plugin&&this.plugin.canOverwriteAdapters()&&(h=this._getAdapterFromTemplates(this._adapterName))&&n.notice(p,"Overwrite Adapter: "+this._adapterName),c&&!h)if(d)try{h=f}catch(e){n.warn(p,"Problem parsing adapter json code (to object conversion)")}else h=this._getAdapterFromTemplates(this._adapterName);this.tag=this.player,c&&h?(this.evalAdapterJson(h,!1),this.registerListeners()):!c&&d&&(this.loadAdapterClasses(d,!1),this.registerListeners()),this.plugin.options.enableExtraMetricCollection&&this._npawVideo.fetchLocation(),n.notice(p,"Adapter "+this.getVersion()+" with Lib "+a+" is ready.")},_updatePlayer:function(e){this.player&&this.unregisterListeners(),this.player=null,this.setPlayer(e),this.tag=this.player,this.registerListeners()},isSetAdapter:function(){return this._setAdapter},getVideo:function(){return this._npawVideo},getPlugin:function(){return this.plugin},getNpawUtils:function(){return this.plugin.utils},getNpawReference:function(){return this.npaw},getLog:function(){return this.log},isStarted:function(){return!!this.flags&&this.flags.isStarted},getAdapterClass:function(e){var t=this._adapterClasses;return t[e]?t[e]:null},getAdapterName:function(e){if(e&&e["adapter,getVersion"])try{return window.Function(e["adapter,getVersion"])()}catch(e){}return"undefined"},getAdapterNameFromClass:function(e){if(e&&e.getVersion)try{return e.getVersion()}catch(e){}return"undefined"},getAdapterClasses:function(){return this._adapterClasses},updateAdapterTemplates:function(e){if(this.plugin.canOverwriteAdapters()){var t=this._getAdapterFromTemplates(this._adapterName,e);t&&(this.evalAdapterJson(t,!0),this.registerListeners())}},_getAdapterFromTemplates:function(e,t){var i=null;t||(t=this.plugin.adapterTemplates);try{e&&t&&t[e.toLowerCase()]&&(i=JSON.parse(t[e.toLowerCase()]))}catch(t){n.warn(p,"Adapter "+e+" not found on repository")}return i},evalAdapterJson:function(e,t){t=t||!1;var i=0,s=0,r="";try{for(var a in e){var o=a.split(","),l=o.shift(),u=o.shift();r=u;var d=null;(d=o&&o.length>=1?window.Function(o,e[a]):window.Function(e[a]))&&("adapter"===l.toLowerCase()?(this[u]=d,i++):(l.indexOf(".adapter")>0?(l=l.replace(".adapter",""),this.getAdapterClasses()[l]||(this.getAdapterClasses()[l]=new m(this._key,this._npawVideo,this.getPlugin(),null,this.player,null,null,{}))):this.getAdapterClasses()[l]||(this.getAdapterClasses()[l]={},this.getAdapterClasses()[l].constructor=function(){},this.getAdapterClasses()[l].plugin=this.plugin,this.getAdapterClasses()[l].getNpawUtils=function(){return this.plugin.utils}),this.getAdapterClasses()[l][u]=d,s++))}this._loadedAdapterImplementation=!0,this._adapterEvaluatedCode=e;try{this.adapterHash=c("string"==typeof e?e.trim():JSON.stringify(e).trim())}catch(e){this.adapterHash="Undefined"}n.notice(p,"["+this.getAdapterKey()+"] Loaded adapter ("+this.getVersion()+") (Hash "+this.adapterHash+") implementation from JSON; From templates: "+t+"; Integrated adapter methods: "+i+", external methods: "+s)}catch(e){n.error(p,"Can't be evaluated adapter json correctly; From templates: "+t+", Last method evaluated: "+r)}},loadAdapterClasses:function(e,t){t=t||!1;let i=0,s=0,r="",a=Object.getPrototypeOf(e);try{let o="",l=new Map;for(;a!==Object.prototype;)Object.getOwnPropertyNames(a).forEach(e=>{"function"!=typeof a[e]||"constructor"===e||l.has(e)||l.set(e,a[e])}),a=Object.getPrototypeOf(a);if(l.forEach((e,t)=>{this[t]=e,o+=e.toString(),i++}),r="Adapter Class",void 0!==e.adsAdapters)for(let t of Object.keys(e.adsAdapters))this.getAdapterClasses()[t]=new m(this._key,this._npawVideo,this.getPlugin(),null,this.player,new e.adsAdapters[t]),r="Ads Adapter -> "+t;if(void 0!==e.additionalContexts){for(let t of Object.keys(e.additionalContexts)){this.getAdapterClasses()[t]||(this.getAdapterClasses()[t]={},this.getAdapterClasses()[t].constructor=function(){},this.getAdapterClasses()[t].plugin=this.plugin,this.getAdapterClasses()[t].getNpawUtils=function(){return this.plugin.utils});let i=new e.additionalContexts[t],n=Object.getPrototypeOf(i);for(let e of Object.getOwnPropertyNames(n).filter(e=>"function"==typeof i[e]&&"constructor"!==e))this.getAdapterClasses()[t][e]=i[e],s++}r="Additional Contexts"}this._loadedAdapterImplementation=!0;try{this.adapterHash=c(o.trim())}
1catch(e){this.adapterHash="Undefined"}n.notice(p,"["+this.getAdapterKey()+"] Loaded adapter ("+this.getVersion()+") (Hash "+this.adapterHash+") implementation from class; From templates: "+t+"; Integrated adapter methods: "+i+", external methods: "+s)}catch(e){n.error(p,"Can't be evaluated adapter class correctly; From templates: "+t+", Last method evaluated: "+r)}},getAdapterKey:function(){return this._key},setPlayer:function(e){"string"==typeof e&&"undefined"!=typeof document?this.player=document.getElementById(e):this.player=e},registerListeners:function(){},unregisterListeners:function(){},dispose:function(){try{this.stopMonitor(),this.stopReadyStateMonitor(),this.unregisterListeners(),this.player=null,this.tag=null}catch(e){n.error(p,"Can't process dispose for video "+this._key)}},monitorPlayhead:function(e,t,i){this.stopMonitor();var s=0;e&&(s|=u.Type.BUFFER),t&&(s|=u.Type.SEEK),this.monitor&&this.monitor._timer.isRunning?this.monitor.skipNextTick():this.monitor=new u(this,s,i)},stopMonitor:function(){this.monitor&&this.monitor.stop()},monitorReadyState:function(e){this.stopReadyStateMonitor(),this.stateMonitor=new d(this,e)},startReadyStateMonitor:function(){this.stateMonitor&&this.stateMonitor.start()},stopReadyStateMonitor:function(){this.stateMonitor&&this.stateMonitor.stop()},checkReadyState:function(e,t){try{this.plugin&&this.plugin.getReadyStateMonitorEnabled()&&e&&(e>3&&!this.flags.isSeeking?this.flags.isBuffering?this.fireBufferEnd({},t+"-readyState"):this.flags.isJoined||this.fireJoin({},t+"-readyState"):!(e<4)||this.flags.isBuffering||this.flags.isPaused||this.fireBufferBegin({},!1,t+"-readyState",!0))}catch(e){n.error(p,"Can't check readyState property correctly")}},getPlayhead:function(){return null},getDuration:function(){return null},getBitrate:function(){return null},getTotalBytes:function(){return null},getTitle:function(){return null},getResource:function(){return null},getPlayerVersion:function(){return null},getPlayerName:function(){return null},getVersion:function(){return a+"-generic-js"},getVideoObject:function(){return null},getLastUsedCdn:function(){return f.getInstance().getCommonVariable(g.Products.BALANCER,g.BalancerVariables.LAST_USED_CDN)||void 0},checkExistsPlayer:function(){return!0},checkExistsObjectOnPage:function(e){return r.elementIsInPage(e)},fireInit:function(e,t){if(this._npawVideo&&this._npawVideo.controlPlayerExists()&&!this.checkExistsPlayer())return n.warn(p,"Cannot fire init event because player not exists on the document"),null;this.adapterHash&&((e=e||{}).pluginHash=this.adapterHash),this._npawVideo&&this._npawVideo.fireInit(e,t)},fireStart:function(e,t){if(this._npawVideo&&this._npawVideo.controlPlayerExists()&&!this.checkExistsPlayer())return n.warn(p,"Cannot fire start event because player not exists on the document"),null;if(this.plugin&&this.plugin.backgroundDetector&&this.plugin.backgroundDetector.canBlockStartCalls())return null;if(!this.flags.isStarted){this.flags.isStarted=!0,this.chronos.total.start();let i=!this._npawVideo||this._npawVideo._joinTimeMeasureAfterAdBreakAvailable();this._isAds()||i||this.chronos.join.start(),t&&((e=e||{}).triggeredEvents=[t]),this.adapterHash&&((e=e||{}).pluginHash=this.adapterHash),this.startReadyStateMonitor(),this.emit(h.Event.START,{params:e}),this.plugin._logSetAdapterEvent(this._adapterEvaluatedCode)}},fireJoin:function(e,t){this.flags.isJoined||this.flags.isStarted||this._isAds()||!this._npawVideo||!this._npawVideo.isInitiated||this.fireStart(),this.flags.isStarted&&!this.flags.isJoined&&(this.flags.isStarted=!0,this.monitor&&this.monitor.start(),this.flags.isJoined=!0,this.chronos.join.stop(),t&&((e=e||{}).triggeredEvents=[t]),this.emit(h.Event.JOIN,{params:e}))},firePause:function(e,t){this._discardFalseBuffers(),this.flags.isBuffering&&this.fireBufferEnd(null,"firePauseCall"),this.flags.isJoined&&!this.flags.isPaused&&(this.flags.isPaused=!0,this.chronos.pause.start(),t&&((e=e||{}).triggeredEvents=[t]),this.emit(h.Event.PAUSE,{params:e}))},fireResume:function(e,t){if(this._discardFalseBuffers(),this.flags.isJoined&&this.flags.isPaused){this.flags.isPaused=!1;try{this._npawVideo.ignorePauseSmallEvents()&&50>=this.chronos.pause.getDeltaTime(!1)?this.chronos.pause.reset():this.chronos.pause.stop()}catch(e){this.chronos.pause.stop()}this.monitor&&this.monitor.skipNextTick(),t&&((e=e||{}
1).triggeredEvents=[t]),this.emit(h.Event.RESUME,{params:e})}},fireBufferBegin:function(e,t,i,s){if(s=s||!1,this.flags.isJoined&&!this.flags.isBuffering){if(this.flags.isSeeking){if(!t)return;n.notice(p,"Converting current buffer to seek"),this.chronos.buffer=this.chronos.seek.clone(),this.chronos.seek.reset(),this.flags.isSeeking=!1}else this.chronos.buffer.start();try{this.fireEventsStruct.buffer=[],i?this.fireEventsStruct.buffer.push(i):this.fireEventsStruct.buffer.push("undefinedEvent")}catch(e){}this.flags.isBuffering=!0,this.flags.isVideoStateBuffering=s,this.emit(h.Event.BUFFER_BEGIN,{params:e})}},fireBufferEnd:function(e,t){if(this.flags.isJoined&&this.flags.isBuffering){try{t?this.fireEventsStruct.buffer.push(t):this.fireEventsStruct.buffer.push("undefinedEvent")}catch(e){}(e=e||{}).triggeredEvents=this.fireEventsStruct.buffer,this.cancelBuffer(),this.emit(h.Event.BUFFER_END,{params:e});try{this.chronos.pause.getDeltaTime(!1)>0&&this.chronos.pause.resume()}catch(e){}}},_discardFalseBuffers:function(){try{this.flags.isBuffering&&this.flags.isVideoStateBuffering&&100>=this._getDeltaBufferTime()&&this.cancelBuffer()}catch(e){}},cancelBuffer:function(e){this.flags.isJoined&&this.flags.isBuffering&&(this.flags.isBuffering=!1,this.flags.isVideoStateBuffering=!1,this.chronos.buffer.stop(),this.monitor&&this.monitor.skipNextTick())},_getDeltaBufferTime:function(){return this.chronos&&this.chronos.buffer?this.chronos.buffer.getDeltaTime(!1):0},fireStop:function(e,t){try{if((this._isAds()||this._npawVideo._isStopReady())&&(this._isAds()&&this.flags.isStarted||!this._isAds()&&(this.flags.isStarted||this._npawVideo.isInitiated))){if(this.stopMonitor(),this.stopReadyStateMonitor(),this._isAds()&&(e=e||{},this.flags.isPaused)){let t=this.chronos.pause.getDeltaTime();e.adPauseDuration=t}this.flags.reset(),this.chronos.total.stop(),this.chronos.join.reset(),this.chronos.pause.stop(),this.chronos.buffer.stop(),this.chronos.seek.stop(),t&&((e=e||{}).triggeredEvents=[t]),this.emit(h.Event.STOP,{params:e}),this.chronos.pause.reset(),this.chronos.buffer.reset(),this.chronos.seek.reset(),this.chronos.viewedMax.splice(0,this.chronos.viewedMax.length),this._npawVideo&&this._npawVideo.resetExpirationManager()}}catch(e){n.warn(p,"Issue firing Stop event")}},firePlayerLog:function(e,t){this._npawVideo&&this._npawVideo.firePlayerLog({logs:t,logAction:e,logType:"playerEvent"})},setIsAds:function(e){this._isAdsAdapter=e},_isAds:function(){return this._isAdsAdapter},fireCasted:function(e,t){e||(e={}),e.casted=!0,this.fireStop(e,t)},fireError:function(e,t,i,s,n,a,o){let l=r.buildErrorParams(e,t,i,o);l.code&&delete l.code,n&&((l=l||{}).triggeredEvents=[n]);let u=this._npawVideo?this._npawVideo.options:{};if(void 0!==l.errorCode&&u["errors.ignore"]&&u["errors.ignore"].indexOf(l.errorCode.toString())>-1);else{a=a||!1;let e=u["errors.nonFatal"]||[],t=void 0!==l.errorCode&&e.indexOf(l.errorCode.toString())>-1;t&&a&&(a=!1),(a||void 0!==l.errorCode&&u["errors.fatal"]&&u["errors.fatal"].indexOf(l.errorCode.toString())>-1&&!t)&&this.flags.isJoined&&((l=l||{}).errorType="fatal"),this.emit(h.Event.ERROR,{params:l})}},fireFatalError:function(e,t,i,s,n,r){this.fireError(e,t,i,s,n,!0,r)},isLegacyBufferBehaviourEnabled:function(){return(this._npawVideo?this._npawVideo.options:{}).enableLegacyBufferBehaviour||!1}},{Event:h.Event});r.assign(m.prototype,i(9393)),r.assign(m.prototype,i(594)),e.exports=m},5298:e=>{e.exports={cdnName:"AKAMAI",parsers:[{element:"type+host",headerName:"X-Cache",regex:/(.+)\sfrom.+AkamaiGHost\/(.+)\).+/},{element:"host",headerName:"akamai-mon-iucid-del",regex:/(.*)/},{element:"type",headerName:"akamai-cache-status",regex:/(.+)\sfrom\schild/}],requestHeaders:{Pragma:"akamai-x-cache-on"},parseType:function(e){var t=e.toLowerCase();return -1!==t.indexOf("hit")?1:2*(-1!==t.indexOf("miss"))}}},5438:(e,t,i)=>{"use strict";i.d(t,{CE:()=>y,Ji:()=>A,LI:()=>S,Lg:()=>p,Ow:()=>g,Y4:()=>l,Zq:()=>I,_C:()=>_,b3:()=>T,dR:()=>b,df:()=>o,hj:()=>h,jQ:()=>E,m:()=>f,mH:()=>v,w2:()=>d,wc:()=>w,xC:()=>n,yL:()=>r,yl:()=>a,zU:()=>c});let s=u;!function(e){let t=u,i=e();for(;;)try{if(314494==-parseInt(t(159))/1+parseInt(t(170))/2+parseInt(t(167))/3+-parseInt(t(132))/4*(-parseInt(t(153))/5)+parseInt(t(129))/6+-parseInt(t(157))/7+-parseInt(t(163))/8*(parseInt(t(148))/9))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(m);let n={CDN:s(158)},r={Success:"ok",Fail:s(146),Progress:"pr"},a={Updated:s(151),Success:"ok",Fail:s(146)},o={host:s(128),devHost:s(131),devDomains:[s(168),s(126)],service:s(162),decisionCallWaitTime:3e4,decisionReloadIntervalPerManifestMilliseconds:3e4},l=[".mp4",".m4s",s(130),s(164),s(145),s(155),s(136),s(169)];function u(e,t){let i=m();return(u=function(e,t){return i[e-=124]})(e,t)}let d=[s(156),".mpd"],h=[s(142),s(141),s(165)],c=[s(127),".vtt",s(149),s(152),s(133)],p={connect:s(134),close:s(161),error:s(125),data:s(124),ping:"ping",pong:s(173)},f={optimizedScore:s(138),optimizedFeedback:"optimizedFeedback",bestScore:s(166),qualityPriority:s(139),cdnPriority:s(135)},g={max:25e6,min:2e5,default:2e5};function m(){let e=["nok","keys","18ZkmaHF",".ssa","SEGMENT_ABSENT","updated",".ass","1010EyzMrY","CANCEL_SEGMENT_REQUEST",".m4f",".m3u8","1397676uzfKKb","/cdn","208731aCCGpm","splits","close","/decision","1794792lReLej",".cmf",".m4a","bestScore","1211469oxUpLx","stage.npaw.com",".m4v","764220EJnVIr","data_spec_key","GET_RETRY_HEAD","pong","data","error","qa.npaw.com",".srt","gnsnpaw.com","151740eMXKxr",".ts","stage-smartswitchv2.youbora.com","7136aSDkmo",".webvtt","connect","cdnPriority",".cmfv","SEGMENT_REQUEST","optimizedScore","qualityPriority","command",".cmfa",".aac","SEGMENT_DATA","NEW_SEGMENT_AVAILABLE",".dash"];return(m=function(){return e})()}let v={data:s(143),absent:s(150),map:"SEGMENTS_MAP",newSegmentAvailable:s(144),request:s(137),cancel:s(154),ping:"PING",pong:"PONG"},y={command:s(140),id:s(171),size:"size",storageSize:"ss",map:s(147),identifier:"identifier",splits:s(160),time:0,simpleMapKeys:"k",simpleMapSize:"s",dateTime:"dt",createdAt:"ca"},T={bandwidth_test:2,message:1,data:0},S={maxMessageSize:65532,probability:1,timeout:2500,maxConcurrency:6,maxConnectedPeers:40,tracker:"wss://p2p-tracker.youbora.com/webrtc",upload:!1},E={version:2},b={expiration:3e5,count:60,safeMaxCount:300},_={retries:5,retryDelay:100,defaultBwThreshold:2e5,connectTimeoutMilliseconds:1e4,readTimeoutMilliseconds:3e3,minRequestSizeForBwEstimateKB:100},A={totalDataInterval:6e4},w={callTimeoutMilliseconds:500,timeBetweenCallsMilliseconds:1e3,timeBetweenBurstsMilliseconds:5e3},I={lastMeasurementWeight:.5,maximumRelativeDeltaForTrial:.2,minimumDurationSinceLastUsedForTrialMilliseconds:3e4,chunkExpirationProbingMs:3e4,probingPolicy:s(172)}},5651:(e,t,i)=>{var s=i(1593);let{default:n}=i(7276),{AnalyticsTag:r}=i(2784);e.exports=s.extend({constructor:function(e){this.plugin=e,this.videos={}},existsVideo:function(e){return e=e||"default",!!this.videos[e]},getVideo:function(e){if(e=e||"default",this.videos[e])return this.videos[e]},setVideo:function(e){this.videos[this._parseVideoKey(e.getVideoKey())]=e},getVideoKeys:function(){return Object.keys(this.videos)},existsAdapter:function(e){return e=e||"default",!(!this.videos[e]||!this.videos[e]._adapter)}
1,getAdapter:function(e){if(e=e||"default",this.videos[e])return this.videos[e].getAdapter()},setAdapter:function(e,t){t=t||"default",this.videos[t]&&this.videos[t].setAdapter(e,this.plugin)},getAdsAdapter:function(e){if(e=e||"default",this.videos[e])return this.videos[e].getAdsAdapter()},removeAdapter:function(e,t){t=t||"default";try{this.videos[t]&&this.videos[t].removeAdapter()}catch(e){n.error(r,"Is not possible to remove adapter for video: "+t)}},removeAllAdapters:function(){for(let e of Object.keys(this.videos))this.videos[e].removeAdapter(),this.videos[e].removeAdsAdapter()},sendRequest:function(e,t,i,s,a,o,l,u){e=e||"default",this.videos[e]?this.videos._send(this._key,t,i,s,a,o,l,u):n.error(r,"Can't send request for not existent video object")},updateAllOptions:function(e){for(let t in this.videos)for(let i in e)this.videos[t].options[i]=e[i];e["adapters.templates"]&&(this.plugin._setAdapterTemplates(e["adapters.templates"]),this.updateAdapterTemplates(e["adapters.templates"]))},updatePingInterval:function(e){for(var t in this.videos)this.videos[t]._ping.interval=e},updateAdapterTemplates:function(e){if(e&&this.videos)for(var t in this.videos)this.videos[t]._adapter&&this.videos[t]._adapter.updateAdapterTemplates(e)},resetVideo:function(e){e=e||"default",this.video[e]&&this.video[e]._reset()},_parseVideoKey:function(e){return e||"default"}})},5710:(e,t,i)=>{var s=i(3782);i(2477);let{default:n}=i(7276);var r=i(2507);i(5292);let{AnalyticsTag:a}=i(2784),{default:o}=i(61),{default:l}=i(9065);e.exports={_startListener:function(e){!this.plugin.options.enableExtraMetricCollection||this.lastKnownLocation||this.isFetchingLocation||this.fetchLocation(),this.isInitiated?0!==this.initChrono.startTime&&(this._joinTimeMeasureAfterAdBreakAvailable()||(this._adapter.chronos.join.startTime=this.initChrono.startTime)):(this._viewIndex||this.plugin.getNextViewIndex(this),this._startPings());var t=e.data.params||{},i=this.getResource()&&"boolean"==typeof this.getIsLive()&&(this.getIsLive()||"number"==typeof this.getDuration()&&this.getDuration()>0)&&this.getTitle(),r=l.getInstance().getCommonVariable(o.Products.BALANCER,o.BalancerVariables.DECISION_FINISHED);void 0===r&&(r=!0);var u=this.getChronosEventParam()||{};if(u&&Object.keys(u).length>0&&(t.chronos=u),this.plugin.resourceTransform&&this.getResource())try{if
1(this.plugin.resourceTransform.init(this.getResource()),this.plugin.resourceTransform.isBlocking()){var d=this.plugin.resourceTransform.getWaitParams();if(this.options.waitForMetadata=!0,d&&d.length>0){for(var h=this.options.pendingMetadata||[],c=0;c<d.length;c++)-1===h.indexOf(d[c])&&h.push(d[c]);this.options.pendingMetadata=h}else this.options.pendingMetadata=[]}}catch(e){}(i=!this.options.forceInit&&i&&this._isExtraMetadataReady()&&r&&this._isRequiredMetadataReady())&&!this.isInitiated?(this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,t,void 0,void 0,()=>{}),this._adSavedError(),this._adSavedManifest(),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.START+", title/res: "+(t.title||t.mediaResource)+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:"")),this.isStarted=!0):this.isInitiated||(this.isInitiated=!0,this._adapter.chronos.join.start(),this._send(s.WillSendEvent.WILL_SEND_INIT,s.Service.INIT,t,void 0,void 0,()=>{}),this._adSavedError(),this._adSavedManifest(),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.INIT+", title/res: "+(t.title||t.mediaResource)+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:""))),this.options.enableExtraMetricCollection&&this.shouldStartRenditionTimer()},_retryStart:function(e){var t=l.getInstance().getCommonVariable(o.Products.BALANCER,o.BalancerVariables.DECISION_FINISHED);void 0===t&&(t=!0),this._isExtraMetadataReady()&&t&&this._isRequiredMetadataReady()&&(this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,{triggeredEvents:["retryStart"]}),this.startDelayed=!1)},_joinListener:function(e){var t={};if(r.assign(t,e.data.params||{}),this._adsAdapter&&this._adsAdapter.flags.isStarted)this._adapter.monitor&&this._adapter.monitor.stop(),this._adapter.flags.isJoined=!1,this._adapter.chronos.join.stopTime=0;else{if(this._adapter){let e=this._joinTimeMeasureAfterAdBreakAvailable()?0:this._totalPrerollsTime||0;this._adapter.chronos.join.startTime=Math.min(this._adapter.chronos.join.startTime+e,(new Date).getTime()),this._totalPrerollsTime=0,this._initialPrerollTime=0}if(this.isInitiated&&!this.isStarted){var i=l.getInstance().getCommonVariable(o.Products.BALANCER,o.BalancerVariables.DECISION_FINISHED);if(void 0===i&&(i=!0),this._isExtraMetadataReady()&&i&&this._isRequiredMetadataReady()){var u=this.getChronosEventParam()||{};u&&Object.keys(u).length>0&&(t.chronos=u),this._send(s.WillSendEvent.WILL_SEND_START,s.Service.START,t,void 0,void 0,()=>{})}else this.startDelayed=!0;this._adSavedError(),this._adSavedManifest(),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.START+", title/res: "+(t.title||t.mediaResource)+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:"")),this.isStarted=!0}t=e.data.params||{},this._adsAdapter&&this.isBreakStarted&&this._adsAdapter.fireAdBreakStop(),this._send(s.WillSendEvent.WILL_SEND_JOIN,s.Service.JOIN,t,void 0,void 0,()=>{}),this.resetChronos(),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.JOIN+", duration: "+t.joinDuration+"ms"+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:""))}},_advancedDataListener:function(e){var t=e.data.params||{};this._send(s.WillSendEvent.WILL_SEND_DATA_OBJECT,s.Service.DATA_OBJECT,t),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.DATA_OBJECT+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:""))},_pauseListener:function(e){this._adapter&&(this._adapter.flags.isBuffering||this._adapter.flags.isSeeking||this._adsAdapter&&this._adsAdapter.flags.isStarted)&&this._adapter.chronos.pause.reset();var t=e.data.params||{};this._send(s.WillSendEvent.WILL_SEND_PAUSE,s.Service.PAUSE,t),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.PAUSE+" at "+t.playhead+"s"+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:""))},_resumeListener:function(e){this._adsAdapter&&this.isBreakStarted&&!this._adsAdapter.flags.isStarted&&this._adsAdapter.fireAdBreakStop();var t=e.data.params||{};this._send(s.WillSendEvent.WILL_SEND_RESUME,s.Service.RESUME,t),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.RESUME+", duration: "+t.pauseDuration+"ms"+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:"")),this._adapter.chronos.pause.reset()},_seekBufferBeginListener:function(e){this._adapter&&this._adapter.flags.isPaused&&this._adapter.chronos.pause.pause(),e.type&&e.type.includes("buffer")?n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+e.type+", eventsTriggered: "+this._adapter.fireEventsStruct.buffer):n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+e.type+", eventsTriggered: "+this._adapter.fireEventsStruct.seek)},_seekEndListener:function(e){var t=e.data.params||{};this._send(s.WillSendEvent.WILL_SEND_SEEK,s.Service.SEEK,t),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.SEEK+" to "+t.playhead+" in "+t.seekDuration+"ms"+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:""))},_bufferEndListener:function(e){var t=e.data.params||{};(t=this.requestBuilder.fetchParams(t,["throughput"],!1,[this,this.plugin],this.options)).entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),this._send(s.WillSendEvent.WILL_SEND_BUFFER,s.Service.BUFFER,t),n.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+s.Service.BUFFER+" to "+t.playhead+" in "+t.bufferDuration+"ms"+(t.triggeredEvents?", eventsTriggered: "+t.triggeredEvents:""))},_errorListener:function(e){this._blockError(e.data.params)||(this.fireError(e.data.params||{}),this._adSavedError(),this._adSavedManifest())},_blockError:function(e){var t=Date.now(),i=this.getResource();
1return this._lastErrorParams&&this._lastErrorParams.errorCode===e.errorCode&&this._lastErrorParams.msg===e.msg&&this._lastErrorResource===i&&this._lastErrorTime+5e3>t?(this._lastErrorTime=t,!0):(this._lastErrorTime=t,this._lastErrorParams=e,this._lastErrorResource=i,!1)},_stopListener:function(e){try{this.resetChronos(this._viewIndex||0)}catch(e){}this.fireStop(e.data.params||{})},_isStopReady:function(e){let t=!1;if(!this.requestBuilder.lastSent.live&&this._adsAdapter&&this._adapter&&(!this._adapter.getPlayhead()||this._adapter.getPlayhead()>=this.requestBuilder.lastSent.mediaDuration-1)){let e=0,i=this.options["ad.expectedPattern"];if(i&&i.post&&i.post[0])e=i.post[0];else if(this.requestBuilder.lastSent.breaksTime){if(this.requestBuilder.lastSent.position===s.AdPosition.Postroll&&(e=this.requestBuilder.lastSent.givenAds),!e&&this.requestBuilder.lastSent.breaksTime){let t=this.requestBuilder.lastSent.breaksTime;t.length>0&&this.requestBuilder.lastSent.mediaDuration&&Math.round(t[t.length-1])+1>=this.requestBuilder.lastSent.mediaDuration&&(e=1)}}else t=!0;e<=this.playedPostrolls&&(t=!0)}else t=!0;return t},_videoEventListener:function(e){this._send(s.WillSendEvent.WILL_SEND_VIDEO_EVENT,s.Service.VIDEO_EVENT,e.data.params)},_videoEventEndListener:function(e){this._send(s.WillSendEvent.WILL_SEND_VIDEO_EVENT_END,s.Service.VIDEO_EVENT_END,e.data.params)},_isExtraMetadataReady:function(e){if(!this.options.waitForMetadata||this.options.pendingMetadata.length<1)return!0;try{if(this._adapter.chronos.join.startTime>0&&(new Date).getTime()-this._adapter.chronos.join.startTime>=("number"==typeof this.options["waitForMetadata.timeout.milliseconds"]?this.options["waitForMetadata.timeout.milliseconds"]:s.Metadata.REQUIRED_METADATA_TIMEOUT))return!0;let e=this.requestBuilder.getGetters();return 0>this.options.pendingMetadata.map((function(t){if(e.hasOwnProperty(t)){if(this[e[t]])return!!this[e[t]]();if(this.plugin[e[t]])return!!this.plugin[e[t]]()}}).bind(this)).indexOf(!1)}catch(e){n.warn("["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Error processing isExtraMetadataReady method.")}return!0},_isRequiredMetadataReady:function(){if((new Date).getTime()-this._adapter.chronos.join.startTime<("number"==typeof this.options["waitForMetadata.timeout.milliseconds"]?this.options["waitForMetadata.timeout.milliseconds"]:s.Metadata.REQUIRED_METADATA_TIMEOUT)){try{let e=this.requestBuilder.getGetters();return this.requestBuilder.getRequiredMetadataParams().every((function(t){if(e.hasOwnProperty(t)){if("function"==typeof this[e[t]]){let i=this[e[t]]();if(null!=i&&!Number.isNaN(i))return!0}else if(this.plugin&&"function"==typeof this.plugin[e[t]]){let i=this.plugin[e[t]]();if(null!=i&&!Number.isNaN(i))return!0}}return!1}).bind(this))}catch(e){n.warn("["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Error processing _isRequiredMetadataReady method.")}return!1}return!0}}},5804:(e,t,i)=>{var s=i(245),n=i(3948),r=i(6777);let{default:a}=i(9065);e.exports=n.extend({constructor:function(){this.dataExtractor=new s,this.key=this.getPreviousKey()},generateHashKey:function(){if(!this.key){var e=this.dataExtractor.getAllData();this.key=this._hashFunction(e),a.getInstance().getCoreStorage().setLocal("npawDeviceUUID",this.key)}},getKey:function(){return this.key||this.generateHashKey(),this.key},_hashFunction:function(e){var t=e;return"string"!=typeof e&&(t=JSON.stringify(e)),r(t)},_reset:function(){this.key=void 0},getPreviousKey:function(){return a.getInstance().getCoreStorage().getLocal("npawDeviceUUID")}})},5901:(e,t,i)=>{var s=i(5292),n=i(1516);e.exports={registerAdsAdapter:function(e,t,i,r){if(t)if(r=r||"default",this.videos.existsVideo(r))this.videos.getVideo(r).mergeOptions(i),this.setAdsAdapter(new s(r,this.videos.getVideo(r),this,this.adapterTemplates,e,t),r);else{var a=new n(r,this,this.options,null,null);a.mergeOptions(i),this.videos.setVideo(a);var o=new s(r,a,this,this.adapterTemplates,e,t);this.setAdsAdapter(o,r)}else Log.error(AnalyticsTag,"Register Ads Adapter needs an adapter to initialize")},updateAdsAdapter:function(e,t){t=t||"default",e&&(videoObj=this.videos.getVideo(t))&&videoObj.getAdapter()&&(adsAdapter=videoObj.getAdapter().getAdapterClass(e))&&videoObj.setAdsAdapter(adsAdapter,this,!0)},getAdsAdapter:function(e){e=e||"default";let t=this.videos.getVideo(e);return void 0!==t?t.getAdsAdapter():void 0},setAdsAdapter:function(e,t){t=t||"default",this.videos.getVideo(t).setAdsAdapter(e,this)},removeAdsAdapter:function(e){e=e||"default",this.videos.existsVideo(e)&&this.videos.getVideo(e).removeAdsAdapter()}}},6014:(e,t,i)=>{var s=n,n={noConflict:function(){return n=s,this}};n.VERSION=i(9835),n.polyfills=i(4607),n.polyfills(),n.Object=i(3948),n.Emitter=i(1593);let{default:r}=i(7276);n.Log=r,n.Log.loadLevelFromUrl(),n.Util=i(2507),n.HybridNetwork=i(2995),n.Chrono=i(7680),n.Timer=i(4954),n.Constants=i(3782),n.Transform=i(2503),n.ResourceTransform=i(1151),n.CdnParser=i(3908),n.HlsParser=i(3168),n.DashParser=i(3831),n.LocationheaderParser=i(1657),n.Options=i(7061),n.Plugin=i(1527),n.Storage=i(470),n.RequestBuilder=i(2071),n.PlayheadMonitor=i(3381),n.Adapter=i(5292),n.adapters={}
1,n.BackgroundDetector=i(9773),n.DeviceDetector=i(2635),n.UUIDGenerator=i(5804),n.registerAdapter=(function(e,t){this.adapters[e]=t}).bind(n),n.unregisterAdapter=(function(e){this.adapters[e]=null}).bind(n),e.exports=n},6075:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(108),n=i(9065),r=i(3555),a=i(2784),o=i(61);class l{constructor(e){this.readyToSend=!1,this.servicesToWait=[s.A.Service.INIT,s.A.Service.START],this.onWillSendVideoRequestListeners=[],this.pluginRef=e,this._requests=[],this._waitingForToken=[],this._waitingForMetadata=[]}shouldSendStats(){return this.readyToSend}sendRequest(e){if(""===n.default.getInstance().getFastDataSessionToken())return void this._waitingForToken.push(e);this._waitingForToken.forEach(e=>this.prepareParams(e)),this._requests.push(...this._waitingForToken),this._waitingForToken=[];let t=e.getVideoKey(),i=e.getParams(),s=e.getService();for(let e of this.onWillSendVideoRequestListeners)e(s,t,i);this.prepareParams(e),this._requests.push(e),this._processRequests()}prepareParams(e){let t=e.getService();t!=s.A.Service.START&&t!=s.A.Service.PING||(e.setParam("pingTime",e.getParam("pingTime")||n.default.getInstance().getFastDataService().getPingTime()),n.default.getInstance().getCommonVariable("appAnalytics","isEnabled")&&e.setParam("sessionParent",e.getParam("sessionParent")||n.default.getInstance().getFastDataSessionToken()));let i=e.getVideoKey();this.pluginRef.videos.existsVideo(i)&&e.setParam("code",e.getParam("code")||this.pluginRef.videos.getVideo(i).getViewCode()),t!==s.A.Service.INIT&&t!==s.A.Service.START&&t!==s.A.Service.ERROR||n.default.getInstance().getCommonVariable("appAnalytics","isEnabled")&&(e.setParam("parentId",e.getParam("sessionRoot")),e.setParam("navContext",e.getParam("navContext")||n.default.getInstance().getCommonVariable("appAnalytics","context")))}buildRequest(e,t,i,s,n,o,l){i=null!=i?i:a.Method.GET;let u=new r.default(e,t,"",i,s,n,o,l);return u.setMethod(i),u}_processRequests(){let e=this._requests;this._requests=[],e.forEach(e=>{if(-1!==this.servicesToWait.indexOf(e.getService())&&(this.readyToSend=!0),this.readyToSend){for(;this._waitingForMetadata.length;){let e=this._waitingForMetadata.shift();n.default.getInstance().pushData(n.default.getInstance().getOptions().offline?o.default.Consumer.PERSISTENT:o.default.Consumer.NQS,e.getService(),e.getMethod(),e.getParams(),e.getOnSuccess(),e.getOnFail())}let t=e.getExpirationManager();t&&t.onRequestSent(),n.default.getInstance().pushData(n.default.getInstance().getOptions().offline?o.default.Consumer.PERSISTENT:o.default.Consumer.NQS,e.getService(),e.getMethod(),e.getParams(),e.getOnSuccess(),e.getOnFail())}else this._waitingForMetadata.push(e)})}}},6083:e=>{e.exports={setChronoDuration:function(e,t,i){i=i||"default",this.videos.existsVideo(i)||this._createVideoSpace(i,{}),this.videos.existsVideo(i)&&this.videos.getVideo(i).setChronoDuration(e,t)},startChrono:function(e,t){t=t||"default",this.videos.existsVideo(t)||this._createVideoSpace(t,{}),this.videos.existsVideo(t)&&this.videos.getVideo(t).startChrono(e)},stopChrono:function(e,t){t=t||"default",this.videos.existsVideo(t)||this._createVideoSpace(t,{}),this.videos.existsVideo(t)&&this.videos.getVideo(t).stopChrono(e)},fireInit:function(e,t,i){i=i||"default",this.videos.getVideo(i).fireInit(e,t)},fireError:function(e,t,i,s,n,r){r=r||"default",this.videos.getVideo(r).fireError(e,t,i,s,n)},fireFatalError:function(e,t,i,s,n,r){r=r||"default",this.videos.getVideo(r).fireFatalError(e,t,i,s,n)},fireStop:function(e,t,i){i=i||"default",this.videos.getVideo(i).fireStop(e,t)},fireOfflineEvents:function(e,t){t=t||"default",this.videos.getVideo(t).fireOfflineEvents(e)}}},6424:(e,t,i)=>{e.exports=i(3948).extend({constructor:function(e,t){this.plugin=e,this.video=t,this.listenerReference=this._changeListener.bind(this),this.loadReference=this._loadListener.bind(this),this.isEnabled=!1,this.pageHeight=0,this.maxHeight=0,this.startDetection()},startDetection:function(){this.isEnabled||"undefined"==typeof window||"function"!=typeof window.addEventListener||(window.addEventListener("scroll",this.listenerReference),window.addEventListener("resize",this.listenerReference),window.addEventListener("load",this.loadReference),this.isEnabled=!0)},stopDetection:function(){this.isEnabled&&"undefined"!=typeof window&&"function"==typeof window.removeEventListener&&(window.removeEventListener("scroll",this.listenerReference),window.removeEventListener("resize",this.listenerReference),window.removeEventListener("load",this.loadReference),this.isEnabled=!1)},getScrollDepth:function(){var e=null;return this.maxHeight&&this.pageHeight&&(e=Math.min(Math.trunc(this.maxHeight/this.pageHeight*100),100)),e},_loadListener:function(){if("undefined"!=typeof document){var e=document.documentElement;e&&(this.pageHeight=Math.round(e.scrollHeight,e.clientHeight,e.offsetHeight),this.maxHeight=window.innerHeight,this._updateCompletionRate())}},_changeListener:function(){if(this.pageHeight){var e=this.maxHeight;this.maxHeight=Math.max(this.maxHeight,window.pageYOffset+window.innerHeight),e!==this.maxHeight&&this._updateCompletionRate()}var t=this.video.getAdsAdapter();t&&t.flags.isStarted&&(t.getIsVisible()?t.startChronoView():t.stopChronoView())},_updateCompletionRate:function(){setTimeout((function(){this.plugin.storage.setSession("pageScrollDepth",this.get
1ScrollDepth())}).bind(this),3e3)}})},6598:(e,t,i)=>{"use strict";var s=i(525).freeze;t.XML_ENTITIES=s({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=s({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"Ð",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"â¡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"\xc5",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"\xa6",Bscr:"â¬",bscr:"\uD835\uDCB7",bsemi:"â",bsim:"â½",b
1sime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"â",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"\xae",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"\uD835\uDD54",coprod:"â",Coproduct:"â",COPY:"\xa9",copy:"\xa9",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"\xa4",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"\xb0",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"\xb4",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"\xa8",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"\xf7",divide:"\xf7",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"\xa8",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"\xc9",eacute:"\xe9",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"\xca",ecirc:"\xea",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"âª",Egrave:"\xc8",egrave:"\xe8",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"\xbd",frac13:"â
",frac14:"\xbc",frac15:"â
",frac16:"â
",frac18
1:"â
",frac23:"â
",frac25:"â
",frac34:"\xbe",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"\uD835\uDCA2",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"\xbd",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"\uD835\uDD25",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"\uD835\uDD59",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"\uD835\uDCBD",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"\xcd",iacute:"\xed",ic:"â£",Icirc:"\xce",icirc:"\xee",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"\xa1",iff:"â",Ifr:"â",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"â",iscr:"\uD835\uDCBE",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"È·",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"\xab",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â
1",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"\uD835\uDCC1",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"\xaf",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"â§",micro:"\xb5",mid:"â£",midast:"*",midcir:"â«°",middot:"\xb7",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"â",Mscr:"â³",mscr:"\uD835\uDCC2",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:"\xa0",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:"\xa0",Nopf:"â",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â
1 ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"â",ocir:"â",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"Ë",Ograve:"\xd2",ograve:"\xf2",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"\xaa",ordm:"\xba",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"\uD835\uDCAA",oscr:"â´",Oslash:"\xd8",oslash:"\xf8",osol:"â",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"\xb6",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"â¨",Qopf:"â",qopf:"\uD835\uDD62",qprime:"â",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"\xbb",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"\xae",reg:"\xae",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rf
1isht:"⥽",rfloor:"â",Rfr:"â",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"\uD835\uDCC7",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"\xa7",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"\xad",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"\xaf",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickS
1pace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"\xde",thorn:"\xfe",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"\xd7",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"\xda",uacute:"\xfa",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"\xa8",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"â",vrtri:"â³",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"â",wr:"â",wreath:"â",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ð",yicy:"Ñ",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"\uD835\uDD37",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"â",zwnj:"â"}),t.entityMap=t.HTML_ENTITIES},6777:e=>{e.exports=function(e){function t(e,t){return e<<t|e>>>32-t}function i(e,t){var i,s,n,r,a;return n=0x80000000&e,r=0x80000000&t,a=(0x3fffffff&e)+(0x3fffffff&t),
1(i=0x40000000&e)&(s=0x40000000&t)?0x80000000^a^n^r:i|s?0x40000000&a?0xc0000000^a^n^r:0x40000000^a^n^r:a^n^r}function s(e,s,n,r,a,o,l){return e=i(e,i(i(s&n|~s&r,a),l)),i(t(e,o),s)}function n(e,s,n,r,a,o,l){return e=i(e,i(i(s&r|n&~r,a),l)),i(t(e,o),s)}function r(e,s,n,r,a,o,l){return e=i(e,i(i(s^n^r,a),l)),i(t(e,o),s)}function a(e,s,n,r,a,o,l){return e=i(e,i(i(n^(s|~r),a),l)),i(t(e,o),s)}function o(e){var t,i="",s="";for(t=0;t<=3;t++)i+=(s="0"+(e>>>8*t&255).toString(16)).substr(s.length-2,2);return i}var l,u,d,h,c,p,f,g,m,v=[];for(v=function(e){for(var t,i=e.length,s=i+8,n=16*((s-s%64)/64+1),r=Array(n-1),a=0,o=0;o<i;)a=o%4*8,r[t=(o-o%4)/4]=r[t]|e.charCodeAt(o)<<a,o++;return a=o%4*8,r[t=(o-o%4)/4]=r[t]|128<<a,r[n-2]=i<<3,r[n-1]=i>>>29,r}(e=function(e){e=e.replace(/rn/g,"n");for(var t="",i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?t+=String.fromCharCode(s):(s>127&&s<2048?t+=String.fromCharCode(s>>6|192):(t+=String.fromCharCode(s>>12|224),t+=String.fromCharCode(s>>6&63|128)),t+=String.fromCharCode(63&s|128))}return t}(e)),p=0x67452301,f=0xefcdab89,g=0x98badcfe,m=0x10325476,l=0;l<v.length;l+=16)u=p,d=f,h=g,c=m,p=s(p,f,g,m,v[l+0],7,0xd76aa478),m=s(m,p,f,g,v[l+1],12,0xe8c7b756),g=s(g,m,p,f,v[l+2],17,0x242070db),f=s(f,g,m,p,v[l+3],22,0xc1bdceee),p=s(p,f,g,m,v[l+4],7,0xf57c0faf),m=s(m,p,f,g,v[l+5],12,0x4787c62a),g=s(g,m,p,f,v[l+6],17,0xa8304613),f=s(f,g,m,p,v[l+7],22,0xfd469501),p=s(p,f,g,m,v[l+8],7,0x698098d8),m=s(m,p,f,g,v[l+9],12,0x8b44f7af),g=s(g,m,p,f,v[l+10],17,0xffff5bb1),f=s(f,g,m,p,v[l+11],22,0x895cd7be),p=s(p,f,g,m,v[l+12],7,0x6b901122),m=s(m,p,f,g,v[l+13],12,0xfd987193),g=s(g,m,p,f,v[l+14],17,0xa679438e),p=n(p,f=s(f,g,m,p,v[l+15],22,0x49b40821),g,m,v[l+1],5,0xf61e2562),m=n(m,p,f,g,v[l+6],9,0xc040b340),g=n(g,m,p,f,v[l+11],14,0x265e5a51),f=n(f,g,m,p,v[l+0],20,0xe9b6c7aa),p=n(p,f,g,m,v[l+5],5,0xd62f105d),m=n(m,p,f,g,v[l+10],9,0x2441453),g=n(g,m,p,f,v[l+15],14,0xd8a1e681),f=n(f,g,m,p,v[l+4],20,0xe7d3fbc8),p=n(p,f,g,m,v[l+9],5,0x21e1cde6),m=n(m,p,f,g,v[l+14],9,0xc33707d6),g=n(g,m,p,f,v[l+3],14,0xf4d50d87),f=n(f,g,m,p,v[l+8],20,0x455a14ed),p=n(p,f,g,m,v[l+13],5,0xa9e3e905),m=n(m,p,f,g,v[l+2],9,0xfcefa3f8),g=n(g,m,p,f,v[l+7],14,0x676f02d9),p=r(p,f=n(f,g,m,p,v[l+12],20,0x8d2a4c8a),g,m,v[l+5],4,0xfffa3942),m=r(m,p,f,g,v[l+8],11,0x8771f681),g=r(g,m,p,f,v[l+11],16,0x6d9d6122),f=r(f,g,m,p,v[l+14],23,0xfde5380c),p=r(p,f,g,m,v[l+1],4,0xa4beea44),m=r(m,p,f,g,v[l+4],11,0x4bdecfa9),g=r(g,m,p,f,v[l+7],16,0xf6bb4b60),f=r(f,g,m,p,v[l+10],23,0xbebfbc70),p=r(p,f,g,m,v[l+13],4,0x289b7ec6),m=r(m,p,f,g,v[l+0],11,0xeaa127fa),g=r(g,m,p,f,v[l+3],16,0xd4ef3085),f=r(f,g,m,p,v[l+6],23,0x4881d05),p=r(p,f,g,m,v[l+9],4,0xd9d4d039),m=r(m,p,f,g,v[l+12],11,0xe6db99e5),g=r(g,m,p,f,v[l+15],16,0x1fa27cf8),p=a(p,f=r(f,g,m,p,v[l+2],23,0xc4ac5665),g,m,v[l+0],6,0xf4292244),m=a(m,p,f,g,v[l+7],10,0x432aff97),g=a(g,m,p,f,v[l+14],15,0xab9423a7),f=a(f,g,m,p,v[l+5],21,0xfc93a039),p=a(p,f,g,m,v[l+12],6,0x655b59c3),m=a(m,p,f,g,v[l+3],10,0x8f0ccc92),g=a(g,m,p,f,v[l+10],15,0xffeff47d),f=a(f,g,m,p,v[l+1],21,0x85845dd1),p=a(p,f,g,m,v[l+8],6,0x6fa87e4f),m=a(m,p,f,g,v[l+15],10,0xfe2ce6e0),g=a(g,m,p,f,v[l+6],15,0xa3014314),f=a(f,g,m,p,v[l+13],21,0x4e0811a1),p=a(p,f,g,m,v[l+4],6,0xf7537e82),m=a(m,p,f,g,v[l+11],10,0xbd3af235),g=a(g,m,p,f,v[l+2],15,0x2ad7d2bb),f=a(f,g,m,p,v[l+9],21,0xeb86d391),p=i(p,u),f=i(f,d),g=i(g,h),m=i(m,c);return(o(p)+o(f)+o(g)+o(m)).toLowerCase()}},6874:(e,t,i)=>{var s=i(2507);let{default:n}=i(9065);e.exports={getFastDataConfig:function(){return this.fastDataTransform.response.msg},getHost:function(){let e=n.getInstance().getOptions().getFastDataHost();return this.fastDataTransform&&this.fastDataTransform.response&&this.fastDataTransform.response.host&&(e=this.fastDataTransform.response.host),s.addProtocol(s.stripProtocol(e),this.options["app.https"])},getFastDataHost:function(){return s.addProtocol(s.stripProtocol(n.getInstance().getOptions().getFastDataHost()),this.options["app.https"])},getSession:function(){var e=n.getInstance().getCoreStorage().getStorages("session");if("undefined"===e&&(e=void 0),!e){var t=this.getStoredData();if(t)try{e=JSON.parse(t).q.c}catch(e){}}return e},getStorageHost:function(){let e=null,t=this.getStoredData();if(t)try{e=JSON.parse(t).q.h}catch(e){}return e?s.addProtocol(e,this.options["app.https"]):e},getStoredData:function(){return n.getInstance().getCoreStorage().getStorages("data")},getDataTime:function(){return n.getInstance().getCoreStorage().getStorages("dataTime")},setStoredData:function(e){this.storage.setStorages("data",e)},setSession:function(e){this.storage.setStorages("session",e)},setDataTime:function(e){this.storage.setStorages("dataTime",e)}}},7061:(e,t,i)=>{let s=i(3948),n=i(3398),{default:r}=i(7276),a=i(7939),o=i(8472),l=i(9637),{AnalyticsTag:u}=i(2784);var d=s.extend({constructor:function(e){this.enabled=!0,this.authToken=void 0,this.authType="Bearer",this.preventZombieViews=!0,this.offline=!1,this.referer=void 0,this.referral=void 0,this.disableCookies=!0,this.forceCookies=!1,this.disableStorage=!1,this.maxWaitingRequests=25,this["user.email"]=void 0,this["user.type"]=void 0,this["user.name"]=void 0,this.userId=void 0,this.profileId=void 0,this["user.obfuscateIp"]=!1,this["user.anonymousId"]=void 0,this["user.privacyProtocol"]=void 0,this["parse.manifest"]=!1,this["parse.cdnParser.get"]=!1,this["parse.manifest.lastChunk"]=!1,this["parse.locationHeader.get"]=!1,this["parse.manifest.auth"]={},this["parse.cdnNameHeader"]=["x-cdn-forward"],this["parse.cdnNodeHeader"]="",this["parse.cdnNode"]=!1,this["parse.cdnNode.list"]=["Akamai","Amazon","Cloudfront","Level3","Fastly","Highwinds","Telefonica","Edgecast","NosOtt"],this["parse.fdsResponseHost"]=void 0,this["parse.cdnSwitchHeader"]=!1,this["parse.cdnTTL"]=60,this["network.ip"]=void 0,this["network.isp"]=void 0,this["network.connectionType"]=void 0,this["device.id"]=void 0,this["device.code"]=void 0,this["device.model"]=void 0,this["device.brand"]=void 0,this["device.type"]=void 0,this["device.name"]=void 0,this["device.osName"]=void 0,this["device.osVersion"]=void 0,this["device.browserName"]=void 0,this["device.browserVersion"]=void 0,this["device.browserType"]=void 0,this["device.browserEngine"]=void 0,this["device.EDID"]=void 0,this["device.isAnonymous"]=!1,this["content.transactionCode"]=void 0,this["content.resource"]=void 0,this["content.isLive"]=void 0,this["content.isLive.noSeek"]=!1,this["content.isLive.noMonitor"]=!1,this["content.title"]=void 0,this["content.program"]=void 0,this["content.duration"]=void 0,this["content.fps"]=void 0,this["content.segmentDuration"]=void 0,this["content.bitrate"]=void 0,this["content.totalBytes"]=void 0,this["content.sendTotalBytes"]=!1,this["content.throughput"]=void 0,this["content.rendition"]=void 0,this["content.cdn"]=void 0,this["content.cdnNode"]=void 0,this["content.cdnType"]=void 0,this["content.metadata"]={},this["content.metrics"]={},this["content.streamingProtocol"]=void 0,this["content.transportFormat"]=void 0,this["content.package"]=void 0,this["content.saga"]=void 0,this["content.tvShow"]=void 0,this["content.season"]=void 0,this["content.episodeTitle"]=void 0,this["content.channel"]=void 0,this["content.id"]=void 0,this["content.imdbId"]=void 0,this["content.gracenoteId"]=void 0,this["content.type"]=void 0,this["content.genre"]=void 0,this["content.language"]=void 0,this["content.autodetect.language"]=!0,this["content.subtitles"]=void 0,this["content.autodetect.subtitles"]=!0,this["content.contractedResolution"]=void 0,this["content.cost"]=void 0,this["content.price"]=void 0,this["content.playbackType"]=void 0,this["content.drm"]=void 0,this["content.encoding.videoCodec"]=void 0,this["content.encoding.audioCodec"]=void 0,this["content.encoding.codecSett
1ings"]=void 0,this["content.encoding.codecProfile"]=void 0,this["content.encoding.containerFormat"]=void 0,this["ad.metadata"]={},this["ad.campaign"]=void 0,this["ad.creativeId"]=void 0,this["ad.provider"]=void 0,this["ad.resource"]=void 0,this["ad.title"]=void 0,this["ad.duration"]=void 0,this["ad.expectedPattern"]=void 0,this["ad.givenAds"]=void 0,this["ad.breaksTime"]=void 0,this["ad.expectedBreaks"]=void 0,this["ad.givenBreaks"]=void 0,this["ad.ignore"]=!1,this["ad.blockerDetected"]=void 0,this["ad.postRollTimeout"]=1e3,this["app.name"]=void 0,this["app.releaseVersion"]=void 0,this["app.https"]=!0,this["background.enabled"]=!0,this["background.settings"]=void 0,this["background.settings.android"]="stop",this["background.settings.iOS"]="stop",this["background.settings.desktop"]=void 0,this["background.settings.tv"]="stop",this["background.settings.playstation"]="stop",this["smartswitch.configCode"]=void 0,this["smartswitch.groupCode"]=void 0,this["smartswitch.contractCode"]=void 0,this["content.customDimensions"]={},this["content.customDimension.1"]=void 0,this["content.customDimension.2"]=void 0,this["content.customDimension.3"]=void 0,this["content.customDimension.4"]=void 0,this["content.customDimension.5"]=void 0,this["content.customDimension.6"]=void 0,this["content.customDimension.7"]=void 0,this["content.customDimension.8"]=void 0,this["content.customDimension.9"]=void 0,this["content.customDimension.10"]=void 0,this["content.customDimension.11"]=void 0,this["content.customDimension.12"]=void 0,this["content.customDimension.13"]=void 0,this["content.customDimension.14"]=void 0,this["content.customDimension.15"]=void 0,this["content.customDimension.16"]=void 0,this["content.customDimension.17"]=void 0,this["content.customDimension.18"]=void 0,this["content.customDimension.19"]=void 0,this["content.customDimension.20"]=void 0,this["ad.customDimension.1"]=void 0,this["ad.customDimension.2"]=void 0,this["ad.customDimension.3"]=void 0,this["ad.customDimension.4"]=void 0,this["ad.customDimension.5"]=void 0,this["ad.customDimension.6"]=void 0,this["ad.customDimension.7"]=void 0,this["ad.customDimension.8"]=void 0,this["ad.customDimension.9"]=void 0,this["ad.customDimension.10"]=void 0,this.forceInit=!1,this["joinTime.measureAfterAdBreak"]=!0,this.simpleNewSession=!1,this["session.metrics"]={},this["session.context"]=!1,this["errors.fatal"]=[],this["errors.nonFatal"]=[],this["errors.ignore"]=[],this["pause.ignoreSmallEvents"]=!0,this["check.playerExists"]=!0,this["check.appAnalytics.autoBegin"]=!1,this["check.appAnalytics.enabled"]=!0,this["debug.playerLogs.enabled"]=!1,this["debug.pluginLogs.enabled"]=!1,this["check.videoAnalytics.enabled"]=!0,this["lma.refresh.configuration.enabled"]=!1,this["lma.refresh.configuration.seconds"]=300,this.linkedViewId=void 0,this.waitForMetadata=!1,this["waitForMetadata.timeout.milliseconds"]=1e4,this.pendingMetadata=[],this.method=l.POST,this["playhead.monitor"]=!0,this["readyState.monitor"]=!0,this["adapters.overwrite"]=!1,this["adapters.templates"]={},this["adapters.properties"]={},this.enableExtraMetricCollection=!1,this.renditionQueryInterval=250,this.enableLegacyBufferBehaviour=!1,this.ignoreSeekInTimeUpdate=!1,this.checkVideoBufferInPlayheadMonitor=!1,this.setOptions(e)},setOptions:function(e,t,i=!1){let s,a=!1;if(void 0===t&&(t=this,a=!0,s=new n),void 0!==e)for(var o in e){let n,l=!1;a&&(this.hasOwnProperty(o)||(s.exists(o)?(n=s.getNewName(o),l=!0):"function"!=typeof e[o]&&r.warn(u,'The option "'+o+'" does not exist, so it cannot be set'))),i||"object"==typeof t[o]&&void 0!==t[o]&&!Array.isArray(t[o])&&"parse.cdnNode.list"===o?this.setOptions(e[o],t[o]):l?t[n]=e[o]:t[o]=e[o]}},setExtraParams:function(e){if("object"==typeof e&&e.length){for(e.length>=20&&(e=e.slice(0,20));e.length<20;)e.push(void 0);e.forEach((e,t)=>{this["content.customDimension."+(t+1).toString()]=e})}},setCustomDimensions:function(){d.prototype.setExtraParams.apply(this,arguments)},setAdExtraParams:function(e){if("object"==typeof e&&e.length){for(e.length>=10&&(e=e.slice(0,10));e.length<10;)e.push(void 0);e.forEach((e,t)=>{this["ad.customDimension."+(t+1).toString()]=e})}},setAdCustomDimensions:function(){d.prototype.setAdExtraParams.apply(this,arguments)},setEnableLegacyBufferBehaviour:function(){d.prototype.setEnableLegacyBufferBehaviour.apply(this,arguments)}},{StreamingProtocol:o,TransportFormat:a,RequestMethod:l});e.exports=d},7062:e=>{e.exports={DATA:"/data",ADAPTERS:"/adapters",CONFIGURATION:"/configuration",APP_ANALYTICS_PLUGIN_LOGS:"/infinity/session/pluginLogs",SESSION_PLUGIN_LOGS:"/infinity/session/pluginLogs",VIDEO_PLUGIN_LOGS:"/infinity/video/pluginLogs",INIT:"/init",START:"/start",JOIN:"/joinTime",DATA_OBJECT:"/data",PAUSE:"/pause",RESUME:"/resume",SEEK:"/seek",BUFFER:"/bufferUnderrun",ERROR:"/error",STOP:"/stop",PING:"/ping",CDN:"/cdn",VIDEO_EVENT:"/infinity/video/event",VIDEO_EVENT_END:"/infinity/video/event/stop",AD_INIT:"/adInit",AD_START:"/adStart",AD_JOIN:"/adJoin",AD_PAUSE:"/adPause",AD_RESUME:"/adResume",AD_BUFFER:"/adBufferUnderrun",AD_STOP:"/adStop",AD_CLICK:"/adClick",AD_ERROR:"/adError",AD_MANIFEST:"/adManifest",AD_POD_START:"/adBreakStart",AD_POD_STOP:"/adBreakStop",AD_QUARTILE:"/adQuartile",EVENT:"/infinity/session/event",EVENT_END:"/infinity/session/event/stop",SESSION_START:"/infinity/session/start",SESSION_STOP:"/infinity/session/stop",SESSION_ERROR:"/infinity/session/error",NAV:"/infinity/session/nav",BEAT:"/infinity/session/beat",OFFLINE_EVENTS:"/offlineEvents"}},7086:(e,t,i)=>{e.exports={Event:i(2477)}},7255:(e,t,i)=>{e.exports=i(3948).extend({constructor:function(){this.reset()},reset:function(){this.isStarted=!1,this.isJoined=!1,this.isPaused=!1,this.isSeeking=!1,this.isBuffering=!1,this.isVideoStateBuffering=!1,this.isEnded=!1,this.isStopped=!1,this.lastQuartileSent=0,this.isAdPaused=!1}})},7276:(e,t,i)=>{"use strict";var s;i.r(t),i.d(t,{LogLevel:()=>s,default:()=>n}),function(e){e[e.SILENT=6]="SILENT",e[e.ERROR=5]="ERROR",e[e.WARNING=4]="WARNING",e[e.NOTICE=3]="NOTICE",e[e.DEBUG=2]="DEBUG",e[e.VERBOSE=1]="VERBOSE"}(s||(s={}));
1class n{static report(e,t,i,r){if("undefined"!=typeof console&&console.log){r=r||"darkcyan";let a={5:"e",4:"w",3:"n",2:"d",1:"v"}[i=i||s.NOTICE],o=`[NPAW - ${e}]`+this._getCurrentTime()+" "+a+":";if(n.logLevel<=i)if(n.plainLogs||"undefined"!=typeof document&&document.documentMode)this._plainReport(t,o);else{let e;e=i===s.ERROR&&console.error?console.error:i===s.WARNING&&console.warn?console.warn:i===s.DEBUG&&console.debug?console.debug:console.log,o="%c"+o,"[object Array]"===Object.prototype.toString.call(t)?(t.splice(0,0,o,"color: "+r),e.apply(console,t)):e.call(console,o,"color: "+r,t)}}}static _getCurrentTime(){let e=new Date;return"["+("0"+e.getDate()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+"."+("00"+e.getMilliseconds()).slice(-3)+"]"}static _plainReport(e,t){if(e instanceof Array)for(let i in e)this._plainReport(e[i],t);else"string"==typeof e?console.log(t+" "+e):(console.log(t+" <next line>"),console.log(e))}static setLogLevel(e){this.logLevel=e}static getLogLevel(){return this.logLevel}static error(e){this.report(e,[].slice.call(arguments,1),s.ERROR,"darkred")}static warn(e){this.report(e,[].slice.call(arguments,1),s.WARNING,"darkorange")}static notice(e){this.report(e,[].slice.call(arguments,1),s.NOTICE,"darkgreen")}static debug(e){this.report(e,[].slice.call(arguments,1),s.DEBUG,"indigo")}static verbose(e){this.report(e,[].slice.call(arguments,1),s.VERBOSE,"navy")}static loadLevelFromUrl(){"undefined"!=typeof window&&window.location&&this._parseLevelFromUrl(window.location.search)}static _parseLevelFromUrl(e){if(e){let t=/\?.*&*npaw-debug=(.+)/i.exec(e);null!==t&&(this.logLevel=Number(t[1])),null!==/\?.*&*npaw-debug=plain/i.exec(e)&&(this.plainLogs=!0)}}}n.logLevel=s.ERROR,n.plainLogs=!1},7286:e=>{e.exports={cdnName:"CLOUDFRT",parsers:[{element:"host",headerName:"X-Amz-Cf-Id",regex:/(.+)/},{element:"type",headerName:"X-Cache",regex:/(\S+)\s.+/}],parseType:function(e){switch(e){case"Hit":return 1;case"Miss":return 2;default:return 0}}}},7355:(e,t,i)=>{let s=i(2507),{default:n}=i(7276),r=i(9835),a=i(8472),o=i(7939),l=i(3782),{default:u}=i(9065),{AnalyticsTag:d}=i(2784),{default:h}=i(61);e.exports={getPlayhead:function(){var e=this._safeGetterAdapter("getPlayhead");return s.parseNumber(e,0)},getPlayrate:function(){let e=0;if(this._adapter&&this._adapter.flags&&!this._adapter.flags.isPaused)try{e=this._adapter.getPlayrate()}catch(e){n.warn(d,"An error occured while calling getPlayrate",e)}return e},getFramesPerSecond:function(){return this._safeGetterAdapter("getFramesPerSecond","content.fps")},getSegmentDuration:function(){return this.hybridNetwork.getSegmentDuration()||this._safeGetterAdapter("getSegmentDuration","content.segmentDuration")},getDroppedFrames:function(){let e=this._safeGetterAdapter("getDroppedFrames");return e||(e=this.getWebkitDroppedFrames()),s.parseNumber(e,0)},getWebkitDroppedFrames:function(){if(this._adapter&&this._adapter.tag&&this._adapter.tag.webkitDroppedFrameCount)return this._adapter.tag.webkitDroppedFrameCount},getDuration:function(){let e=this._safeGetterAdapter("getDuration","content.duration")||void 0;return s.parseNumber(Math.round(e),void 0)},getBitrate:function(){let e=this._safeGetterAdapter("getBitrate","content.bitrate");return e&&-1!==e||(e=this.getWebkitBitrate()),s.parseNumber(e,-1)},getTotalBytes:function(){return this.options["content.sendTotalBytes"]?this._safeGetterAdapter("getTotalBytes","content.totalBytes"):void 0},getWebkitBitrate:function(){try{if(this._adapter&&this._adapter.tag&&this._adapter.tag.webkitVideoDecodedByteCount){let t=this._adapter.tag.webkitVideoDecodedByteCount;if(this._lastWebkitBitrate){var e=this._adapter.tag.webkitVideoDecodedByteCount-this._lastWebkitBitrate;t=Math.round(e/this.plugin.fastDataTransform.response.pingTime*8)}return this._lastWebkitBitrate=this._adapter.tag.webkitVideoDecodedByteCount,0!==t?t:-1}}catch(e){}return -1},getThroughput:function(){let e=this._safeGetterAdapter("getThroughput","content.throughput");return s.parseNumber(e,-1)},getRendition:function(){return this._safeGetterAdapter("getRendition","content.rendition")},getTitle:function(){return this._safeGetterAdapter("getTitle","content.title")},getTitle2:function(){return this._safeGetterAdapter("getTitle2","content.program")},getIsLive:function(){let e=this.options["content.isLive"];return e||!1===e||(e=this._safeGetterAdapter("getIsLive")||!1),e},getResource:function(){return this._safeGetterAdapter("getResource","content.resource")}
1,getParsedResource:function(){let e=this.plugin.resourceTransform.getResource();return(e=e||this._safeGetterAdapter("getURLToParse"))===this.getResource()?void 0:e},getTransactionCode:function(){return this.options["content.transactionCode"]},getMetadata:function(){return this.options["content.metadata"]},getPlayerVersion:function(){return this._safeGetterAdapter("getPlayerVersion")||""},getPlayerName:function(){return this._safeGetterAdapter("getPlayerName")||""},getCdn:function(){return(u.getInstance().getCommonVariable(h.Products.BALANCER,h.BalancerVariables.AS_ENABLED)?"ACTVSWIT":this.plugin.resourceTransform.getCdnName())||this.options["content.cdn"]},getProfileName:function(){return u.getInstance().getCommonVariable(h.Products.BALANCER,h.BalancerVariables.PROFILE_NAME)},getBucketName:function(){return u.getInstance().getCommonVariable(h.Products.BALANCER,h.BalancerVariables.BUCKET)},getPluginVersion:function(){return this.getAdapterVersion()},getAdapterVersion:function(){return this._safeGetterAdapter("getVersion")},getCdnTraffic:function(){return this._safeGetterAdapter("getCdnTraffic")||this.hybridNetwork.getCdnTraffic()},getMultiCdnInfo:function(){return this.hybridNetwork.getMultiCdnInfo()},getBalancerResponseId:function(){return this.hybridNetwork.getBalancerResponseId()},getP2PTraffic:function(){return this._safeGetterAdapter("getP2PTraffic")||this.hybridNetwork.getP2PTraffic()},getUploadTraffic:function(){return this._safeGetterAdapter("getUploadTraffic")||this.hybridNetwork.getUploadTraffic()},getIsP2PEnabled:function(){return this._safeGetterAdapter("getIsP2PEnabled")||this.hybridNetwork.getIsP2PEnabled()},getStreamingProtocol:function(){let e=this.options["content.streamingProtocol"];if(e){for(var t in a)if(a[t]===e)return e}},getTransportFormat:function(){let e=this.options["content.transportFormat"];if(!e&&this.options["parse.manifest"]&&(e=this.plugin.resourceTransform.getTransportFormat()),e){for(let t in o)if(o[t]===e)return e}},getHouseholdId:function(){return this._safeGetterAdapter("getHouseholdId")},getLatency:function(){return this.getIsLive()?this._safeGetterAdapter("getLatency"):void 0},getPacketLoss:function(){return this._safeGetterAdapter("getPacketLoss")},getPacketSent:function(){return this._safeGetterAdapter("getPacketSent")},getVideoMetrics:function(){let e=s.getMetricsFrom(this._adapter?this._adapter.getMetrics():void 0,this.options["content.metrics"])||{},t=s.filterChangedMetrics(e,this._previousVideoMetrics);try{this._previousVideoMetrics=JSON.parse(JSON.stringify(e))}catch(t){n.warn(d,"Failed to deep copy video metrics for previous state. Storing a shallow copy as fallback.",t),this._previousVideoMetrics={...e}}return t},getPlayerStartupTime:function(){return this.plugin.browserLoadTimes.getPlayerStartupTime()},getJoinDuration:function(){return this._adapter?this._adapter.chronos.join.getDeltaTime(!1):-1},getBufferDuration:function(){return this._adapter?this._adapter.chronos.buffer.getDeltaTime(!1):-1},getSeekDuration:function(){return this._adapter?this._adapter.chronos.seek.getDeltaTime(!1):-1},getPauseDuration:function(){return this._adapter?this._adapter.chronos.pause.getDeltaTime(!1):0},getPackage:function(){return this.options["content.package"]},getSaga:function(){return this.options["content.saga"]},getTvShow:function(){return this.options["content.tvShow"]},getSeason:function(){return this.options["content.season"]},getEpisodeTitle:function(){return this.options["content.episodeTitle"]},getChannel:function(){return this.options["content.channel"]},getID:function(){return this.options["content.id"]},getImdbId:function(){return this.options["content.imdbId"]},getGracenoteID:function(){return this.options["content.gracenoteId"]},getType:function(){return this.options["content.type"]},getGenre:function(){return this.options["content.genre"]},getVideoLanguage:function(){return this.options["content.language"]},getSubtitles:function(){return this.options["content.subtitles"]},getContractedResolution:function(){return this.options["content.contractedResolution"]},getCost:function(){return this.options["content.cost"]}
1,getPrice:function(){return this.options["content.price"]},getPlaybackType:function(){let e=this.options["content.playbackType"];if(!e){let t=this.options["content.isLive"];"boolean"!=typeof t&&(t=this._safeGetterAdapter("getIsLive")),"boolean"==typeof t&&(e=t?"Live":"VoD")}return e},getDRM:function(){return this.options["content.drm"]},getVideoCodec:function(){return this._safeGetterAdapter("getVideoCodec","content.encoding.videoCodec")},getAudioCodec:function(){return this._safeGetterAdapter("getAudioCodec","content.encoding.audioCodec")},getCodecSettings:function(){return this.options["content.encoding.codecSettings"]},getCodecProfile:function(){return this.options["content.encoding.codecProfile"]},getContainerFormat:function(){return this.options["content.encoding.containerFormat"]},getLinkedViewId:function(){return this.options.linkedViewId},_safeGetterAdapter:function(e,t){let i;if(t&&this.options[t])i=this.options[t];else try{this._adapter&&"function"==typeof this._adapter[e]&&(i=this._adapter[e]())}catch(t){n.warn(d,"An error occured while calling "+e,t)}return i||void 0},getCustomDimensions:function(){let e=this.options["content.customDimensions"];return"object"==typeof e?e:void 0},getAdExtraparam1:function(){return this.options["ad.customDimension.1"]},getAdExtraparam2:function(){return this.options["ad.customDimension.2"]},getAdExtraparam3:function(){return this.options["ad.customDimension.3"]},getAdExtraparam4:function(){return this.options["ad.customDimension.4"]},getAdExtraparam5:function(){return this.options["ad.customDimension.5"]},getAdExtraparam6:function(){return this.options["ad.customDimension.6"]},getAdExtraparam7:function(){return this.options["ad.customDimension.7"]},getAdExtraparam8:function(){return this.options["ad.customDimension.8"]},getAdExtraparam9:function(){return this.options["ad.customDimension.9"]},getAdExtraparam10:function(){return this.options["ad.customDimension.10"]},getJoinTimeMeasureAfterAdBreak:function(){return this.options["joinTime.measureAfterAdBreak"]},getPluginInfo:function(){return JSON.stringify({lib:r,adapter:this.getAdapterVersion(),adAdapter:this.getAdAdapterVersion()})},getAccountCode:function(){return u.getInstance().getFastDataService().getAccountCode()},getUsername:function(){return this.options.userId?this.options.userId:this.options["user.name"]},getProfileId:function(){return this.options.profileId},getEmail:function(){return this.options["user.email"]},getNodeHost:function(){return this.options["content.cdnNode"]||this.plugin.resourceTransform.getNodeHost()},getNodeType:function(){return this.options["content.cdnType"]||this.plugin.resourceTransform.getNodeType()},getNodeTypeString:function(){return this.plugin.resourceTransform.getNodeTypeString()},getRequestNumber:function(){return Math.random()},getOfflineView:function(){let e;return this.plugin.offlineStorage&&(e=this.plugin.offlineStorage.getView()),e},getSmartswitchConfigCode:function(){return this.options["smartswitch.configCode"]},getSmartswitchGroupCode:function(){return this.options["smartswitch.groupCode"]},getSmartswitchContractCode:function(){return this.options["smartswitch.contractCode"]},controlPlayerExists:function(){return this.options["check.playerExists"]},ignorePauseSmallEvents:function(){return this.options["pause.ignoreSmallEvents"]},getAdPlayerVersion:function(){return this._safeGetterAdsAdapter("getPlayerVersion")||""},getAdPosition:function(){let e=l.AdPosition.Preroll,t=!1;if(this._adsAdapter)try{var i=this._adsAdapter.getPosition();l.AdPosition.Preroll!==i&&l.AdPosition.Midroll!==i&&l.AdPosition.Postroll!==i||(e=i,t=!0)}catch(e){n.warn(d,"An error occured while calling getAdPosition",e)}return!t&&this._adapter&&(e=this._adapter.flags.isJoined?l.AdPosition.Midroll:l.AdPosition.Preroll),e},getAdNumber:function(){return this.requestBuilder.lastSent.adNumber||0},getAdNumberInBreak:function(){return this.requestBuilder.lastSent.adNumberInBreak||0},getBreakNumber:function(){return this.requestBuilder.lastSent.breakNumber||0},getAdPlayhead:function(){let e=this._safeGetterAdsAdapter("getPlayhead");return s.parseNumber(e,0)},getAdDuration:function(){let e=this._safeGetterAdsAdapter("getDuration","ad.duration");return s.parseNumber(e,0)},getAdBitrate:function(){let e=this._safeGetterAdsAdapter("getBitrate");return e&&-1!==e||(e=this.getWebkitAdBitrate()),s.parseNumber(e,-1)},getWebkitAdBitrate:function(){try{if(this._adsAdapter&&this._adsAdapter.tag&&this._adsAdapter.tag.webkitVideoDecodedByteCount){let e=this._adsAdapter.tag.webkitVideoDecodedByteCount;if(this._lastWebkitAdBitrate){let t=this._adsAdapter.tag.webkitVideoDecodedByteCount-this._lastWebkitAdBitrate;e=Math.round(t/this.plugin.fastDataTransform.response.pingTime*8)}return this._lastWebkitAdBitrate=this._adsAdapter.tag.webkitVideoDecodedByteCount,0!==e?e:-1}}catch(e){}return -1},getAdTitle:function(){return this._safeGetterAdsAdapter("getTitle","ad.title")},getAdResource:function(){return this._safeGetterAdsAdapter("getResource","ad.resource")},getAdCampaign:function(){return this._safeGetterAdsAdapter("getCampaign","ad.campaign")},getAdCreativeId:function(){return this._safeGetterAdsAdapter("getCreativeId","ad.creativeId")},getAdProvider:function(){return this._safeGetterAdsAdapter("getProvider","ad.provider")},getAdAdapterVersion:function(){return this._safeGetterAdsAdapter("getVersion")},getAdMetadata:function(){return this.options["ad.metadata"]},getAdInsertionType:function(){return this._safeGetterAdsAdapter("getAdInsertionType")},getGivenBreaks:function(){return this._safeGetterAdsAdapter("getGivenBreaks","ad.givenBreaks")},getExpectedBreaks:function(){let e,t=this.options["ad.expectedBreaks"],i=this.options["ad.expectedPattern"];if(t)e=t;else if(i)e=0,e=(i.pre?i.pre.length:0)+(i.mid?i.mid.length:0)+(i.post?i.post.length:0);else if(this._adsAdapter)try{e=this._adsAdapter.getExpectedBreaks()}catch(e){n.warn(d,"An error occured while calling expectedBreaks",e)}return e},getExpectedPattern:function(){return this._safeGetterAdsAdapter("getExpectedPattern","ad.expectedPattern")},getBreaksTime:function(){return this._safeGetterAdsAdapter("getBreaksTime","ad.breaksTime")},getGivenAds:function(){return this._safeGetterAdsAdapter("getGivenAds","ad.givenAds")},getExpectedAds:function(){let e;try{if(this._adsAdapter){let t=this.options["ad.expectedPattern"];if(t&&this.getAdPosition()){let i=[];if(t.pre&&(i=i.concat(t.pre)),t.mid&&(i=i.concat(t.mid)),t.post&&(i=i.concat(t.post)),i.length>0){let t=this.requestBuilder.lastSent.breakNumber;t>i.length&&(t=i.length),e=i[t-1]}}else e=this._adsAdapter.getExpectedAds()}}catch(e){n.warn(d,"An error occured while calling expectedAds",e)}return e},getAdsExpected:function(){let e;try{e=this.getExpectedPattern()||this.getGivenAds()||!1}catch(e){n.warn(d,"An error occured while calling givenAds or expectedPattern",e)}return e},getAdJoinDuration:function(){if(!this._adsAdapter)return n.warn(d,"["+this.getViewCode()+"] getAdJoinDuration called but NO ADS ADAPTER exists!"),-1;let e=this._adsAdapter.chronos.join.getDeltaTime(!1);if(!0===this.getJoinTimeMeasureAfterAdBreak()&&this.requestBuilder.lastSent.position===l.AdPosition.Preroll&&this._initialPrerollTime>0){let t=e>=0?e:0,i=this._initialPrerollTime+t;return n.debug(d,"["+this.getViewCode()+"] getAdJoinDuration - NEW calculation: T
11("+this._initialPrerollTime+") + T2("+t+") = "+i),i}return n.debug(d,"["+this.getViewCode()+"] getAdJoinDuration - OLD calculation: T2("+e+"), measureAfterAdBreak="+this.getJoinTimeMeasureAfterAdBreak()+", position="+this.requestBuilder.lastSent.position+", T1="+this._initialPrerollTime),e},getAdBufferDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.buffer.getDeltaTime(!1):-1},getAdPauseDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.pause.getDeltaTime(!1):0},getAdTotalDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.total.getDeltaTime(!1):-1},getAdViewedDuration:function(){return this._getTimeMaxOrAcum(!0)},getAdViewability:function(){return this._getTimeMaxOrAcum()},_getTimeMaxOrAcum:function(e){let t=0;return this._adsAdapter&&this._adsAdapter.chronos.viewedMax.forEach(function(i){e?t+=i.getDeltaTime(!1):t=Math.max(i.getDeltaTime(!1),t)}),t},getAudioEnabled:function(){return this._safeGetterAdsAdapter("getAudioEnabled")},getIsSkippable:function(){return this._safeGetterAdsAdapter("getIsSkippable")},getIsFullscreen:function(){return this._safeGetterAdsAdapter("getIsFullscreen")},_safeGetterAdsAdapter:function(e,t){let i;if(t&&this.options[t])i=this.options[t];else try{this._adsAdapter&&"function"==typeof this._adsAdapter[e]&&(i=this._adsAdapter[e]())}catch(t){n.warn(d,"An error occured while calling "+e,t)}return i},getNewAdNumber:function(){let e=this.requestBuilder.lastSent.adNumber;return e&&this.requestBuilder.lastSent.position===this.getAdPosition()?e+=1:e=1,this.requestBuilder.lastSent.adNumber=e,e},getNewAdNumberInBreak:function(){return this._adNumberInBreak++,this.requestBuilder.lastSent.adNumberInBreak=this._adNumberInBreak,this._adNumberInBreak},getNewBreakNumber:function(){let e=1;return this._adNumberInBreak=0,this.requestBuilder.lastSent.breakNumber&&(e=this.requestBuilder.lastSent.breakNumber+1),e&&this.requestBuilder.lastSent.position!==this.getAdPosition()&&(e=1),this.requestBuilder.lastSent.breakNumber=e,e},getAccurateGeoLocation:function(){return this.lastKnownLocation}}},7660:e=>{e.exports={cdnName:"EDGECAST",parsers:[{element:"host",headerName:"Server",regex:/\((.+)\/.+\)/},{element:"type",headerName:"X-Cache",regex:/(.+)/}],parseType:function(e){return"HIT"===e?1:2}}},7680:(e,t,i)=>{var s=i(3948).extend({constructor:function(){this.reset()},reset:function(){this.startTime=0,this.stopTime=0,this.pauseTime=0,this.offset=0},getDeltaTime:function(e){var t=-1,i=(new Date).getTime();if(this.startTime){e&&!this.stopTime&&(this.stopTime=i);var s=this.pauseTime?i-this.pauseTime:0,n=this.stopTime?this.stopTime:i;t=this.offset-s+(n-this.startTime)}return t},start:function(){this.startTime=(new Date).getTime(),this.stopTime=0,this.offset=0},stop:function(){return this.pauseTime&&this.resume(),this.stopTime=(new Date).getTime(),this.startTime?this.offset+(this.stopTime-this.startTime):-1},pause:function(){this.pauseTime=(new Date).getTime()},resume:function(){this.offset-=(new Date).getTime()-this.pauseTime,this.pauseTime=0},clone:function(){var e=new s;return e.startTime=this.startTime,e.stopTime=this.stopTime,e.offset=this.offset,e}});e.exports=s},7937:(e,t,i)=>{var s=i(1129);s.DOMImplementation,s.XMLSerializer,t.DOMParser=i(8633).DOMParser},7939:e=>{e.exports={MP4:"MP4",MPEG2:"TS",CMF:"CMF"}},7991:(e,t)=>{"use strict";t.byteLength=function(e){var t=o(e),i=t[0],s=t[1];return 3*(i+s)/4-s},t.toByteArray=function(e){var t,i,r=o(e),a=r[0],l=r[1],u=new n(3*(a+l)/4-l),d=0,h=l>0?a-4:a;for(i=0;i<h;i+=4)t=s[e.charCodeAt(i)]<<18|s[e.charCodeAt(i+1)]<<12|s[e.charCodeAt(i+2)]<<6|s[e.charCodeAt(i+3)],u[d++]=t>>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===l&&(t=s[e.charCodeAt(i)]<<2|s[e.charCodeAt(i+1)]>>4,u[d++]=255&t),1===l&&(t=s[e.charCodeAt(i)]<<10|s[e.charCodeAt(i+1)]<<4|s[e.charCodeAt(i+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u},t.fromByteArray=function(e){for(var t,s=e.length,n=s%3,r=[],a=0,o=s-n;a<o;a+=16383)r.push(function(e,t,s){for(var n,r=[],a=t;a<s;a+=3)r.push(i[(n=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return r.join("")}(e,a,a+16383>o?o:a+16383));return 1===n?r.push(i[(t=e[s-1])>>2]+i[t<<4&63]+"=="):2===n&&r.push(i[(t=(e[s-2]<<8)+e[s-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),r.join("")};for(var i=[],s=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",a=0;a<64;++a)i[a]=r[a],s[r.charCodeAt(a)]=a;function o(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return -1===i&&(i=t),[i,i===t?0:4-i%4]}s[45]=62,s[95]=63},8037:(e,t,i)=>{var s=i(3782),n=i(2507),r=i(5292);let{AnalyticsTag:a}=i(2784),{default:o}=i(7276);e.exports={getAdsAdapter:function(){return this._adsAdapter},setAdsAdapter:function(e,t,i){if(i=i||!1,e.isSetAdapter())o.warn(a,"Adapters can only be added to a single plugin");else try{for(var s in this.removeAdsAdapter(),this.plugin=t,this._adsAdapter=e,this._adsAdapter.setIsAds(!0),this.adsAdapterListeners={},this.adsAdapterListeners[r.Event.START]=this._adStartListener.bind(this),this.adsAdapterListeners[r.Event.JOIN]=this._adJoinListener.bind(this),this.adsAdapterListeners[r.Event.DATA_OBJECT]=this._adAdvancedDataListener.bind(this),this.adsAdapterListeners[r.Event.PAUSE]=this._adPauseListener.bind(this),this.adsAdapterListeners[r.Event.RESUME]=this._adResumeListener.bind(this),this.adsAdapterListeners[r.Event.BUFFER_BEGIN]=this._adBufferBeginListener.bind(this),this.adsAdapterListeners[r.Event.BUFFER_END]=this._adBufferEndListener.bind(this),this.adsAdapterListeners[r.Event.STOP]=this._adStopListener.bind(this),this.adsAdapterListeners[r.Event.ERROR]=this._adErrorListener.bind(this),this.adsAdapterListeners[r.Event.CLICK]=this._adClickListener.bind(this),this.adsAdapterListeners[r.Event.MANIFEST]=this._adManifestListener.bind(this),this.adsAdapterListeners[r.Event.PODSTART]=this._adBreakStartListener.bind(this),this.adsAdapterListeners[r.Event.PODSTOP]=this._adBreakStopListener.bind(this),this.adsAdapterListeners[r.Event.QUARTILE]=this._adQuartileListener.bind(this),this.adsAdapterListeners)this._adsAdapter.on(s,this.adsAdapterListeners[s]);i&&(o.notice(a,"Registering listeners for registered AdsAdapter"),this._adsAdapter.registerListeners())}catch(e){o.warn(a,"Problem during setAdsAdapter process")}},removeAdsAdapter:function(){if(this._adsAdapter){if(this._adsAdapter.dispose(),this.adsAdapterListeners){for(var e in this.adsAdapterListeners)this._adsAdapter.off(e,this.adsAdapterListeners[e]);delete this.adsAdapterListeners}this.resizeScrollDetector.stopDetection(),this._adsAdapter=void 0}},_adStartListener:function(e){this._adapter?(this._adapter.fireBufferEnd(null,"adStartListener"),this._adapter.fireSeekEnd(null,"adStartListener"),this.isInitiated||this._adapter.flags.isStarted||this._adapter.fireStart(),this._adapter.flags.isPaused&&this._adapter.chronos.pause.reset()):this.fireInit(),this._adsAdapter&&(this._adsAdapter.chronos.viewedMax=[]);let t=e.data.params||{};t.adNumber=this.getNewAdNumber(),(this.getAdResource()||this.getAdTitle())&&"number"==typeof this.getAdDuration()?(this.adStartSent=!0,this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart(),t.adNumberInBreak=this.getNewAdNumberInBreak(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_START,s.Service.AD_START,t)):(this.adInitSent=!0,t.adNumberInBreak=this.getNewAdNumberInBreak(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_INIT,s.Service.AD_INIT,t))},_adJoinListener:function(e){let t={};n.assign(t,e.data.params||{}),this.adInitSent&&!this.adStartSent&&(this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_START,s.Service.AD_START,t)),this._adsAdapter.startChronoView(),this.adConnected&&(this._adsAdapter.chronos.join.startTime=this.adConnectedTime,this._adsAdapter.chronos.total.startTime=this.adConnectedTime,this.adConnectedTime=0,this.adConnected=!1),t=e.data.params||{},this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_JOIN,s.Service.AD_JOIN,t),this.adInitSent=!1,this.adStartSent=!1,this.requestBuilder.lastSent.position===s.AdPosition.Preroll&&(this.isAdsPreJoined=!0)},_adAdvancedDataListener:function(e){var t=e.data.params||{};this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_DATA_OBJECT,s.Service.DATA_OBJECT,t)},_adPauseListener:function(e){let t=e.data.params||{};this._adsAdapter.stopChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_PAUSE,s.Service.AD_PAUSE,t)},_adResumeListener:function(e){let t=e.data.params||{};this._adsAdapter.startChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_RESUME,s.Service.AD_RESUME,t)},_adBufferBeginListener:function(e){o.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Ad Buffer Begin"),this._adsAdapter.stopChronoView(),this._adsAdapter&&this._adsAdapter.flags.isPaused&&this._adsAdapter.chronos.pause.reset()},_adBufferEndListener:function(e){let t=e.data.params||{};this._adsAdapter.startChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_BUFFER,s.Service.AD_BUFFER,t)},_adStopListener:function(e){let t=e.data.params||{};if(this._adsAdapter.stopChronoView(),this._adsAdapter.flags.reset(),this._totalPrerollsTime=(this._totalPrerollsTime||0)+this._adsAdapter.chronos.total.getDeltaTime(),t.position=this.requestBuilder.lastSent.position,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_STOP,s.Service.AD_STOP,t),this.requestBuilder.lastSent.position===s.AdPosition.Postroll){let e=this.options["ad.expectedPattern"];this.playedPostrolls++,(this.requestBuilder.lastSent.givenAds&&this.requestBuilder.lastSent.givenAds<=this.playedPostrolls||!this.requestBuilder.lastSent.givenAds&&e&&e.post&&e.post[0]&&e.post[0]<=this.playedPostrolls)&&this._adapter.fireStop({},"_adStopListener")}this.adConnected=!0,this.adConnectedTime=(new Date).getTime()},_adErrorListener:function(e){let t=e.data.params||{};!this._adapter||this._adapter.flags.isStarted||this.isInitiated?this._blockAdError(e.data.params)||(this._adsAdapter&&(this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart()),this._adsAdapter&&this._adsAdapter.flags.isStarted||(t.adNumber=this.getNewAdNumber(),t.adNumberInBreak=this.getNewAdNumberInBreak()),this.isBreakStarted||(t.breakNumber=this.getNewBreakNumber()),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_ERROR,s.Service.AD_ERROR,t)):this._savedAdError=e},_adSavedError:function(){this._savedAdError&&(this._adErrorListener(this._savedAdError),this._savedAdError=null)},_adSavedManifest:function(){this._savedAdManifest&&(this._adManifestListener(this._savedAdManifest),this._savedAdManifest=null)},_blockAdError:function(e){let t=Date.now(),i=this._adsAdapter&&this._adsAdapter.getResource?this._adsAdapter.getResource():null;
1return this._lastAdErrorParams&&this._lastAdErrorParams.errorCode===e.errorCode&&this._lastAdErrorParams.msg===e.msg&&this._lastAdErrorParams.adCreativeId===this.getAdCreativeId()&&this._lastAdErrorResource===i&&this._lastAdErrorTime+5e3>t?(this._lastAdErrorTime=t,!0):(this._lastAdErrorTime=t,this._lastAdErrorParams=e,this._lastAdErrorResource=i,!1)},_adClickListener:function(e){let t=e.data.params||{};this._adsAdapter.stopChronoView(),this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_CLICK,s.Service.AD_CLICK,t)},_adManifestListener:function(e){if(!this.isAdsManifestSent){if(this._adapter&&!this._adapter.flags.isStarted&&!this.isInitiated)return void(this._savedAdManifest=e);let t=e.data.params||{};this.isAdsManifestSent=!0,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_MANIFEST,s.Service.AD_MANIFEST,t)}},_adBreakStartListener:function(e){if(!this.isBreakStarted){this.isBreakStarted=!0,this._adapter&&this._adapter.firePause();let t=e.data.params||{};if(t.breakNumber=this.getNewBreakNumber(),this.getAdPosition()===s.AdPosition.Preroll&&0===this._initialPrerollTime){let e=this.initChrono.getDeltaTime(!1);e>=0&&(this._initialPrerollTime=e,o.debug(a,"["+this.getViewCode()+"] Captured T1 for pre-roll: "+this._initialPrerollTime+"ms (measureAfterAdBreak="+this.getJoinTimeMeasureAfterAdBreak()+")"))}this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_POD_START,s.Service.AD_POD_START,t),this.adConnected=!1}},_adBreakStopListener:function(e){if(this.isBreakStarted){this.isBreakStarted=!1;let t=e.data.params||{};t.position=this.requestBuilder.lastSent.position,this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_POD_STOP,s.Service.AD_POD_STOP,t),this.adConnected=!1,t.position===s.AdPosition.Preroll&&(this.isAdsPreJoined&&!0===this.getJoinTimeMeasureAfterAdBreak()&&this._adapter&&!this._adapter.flags.isJoined&&(this._adapter.chronos.join.reset(),this._adapter.chronos.join.start()),this.isAdsPreFinished=!0),this._adapter&&this._adapter.fireResume()}},_adQuartileListener:function(e){let t=e.data.params||{};t.quartile&&this._sendAdEventIfAllowed(s.WillSendEvent.WILL_SEND_AD_QUARTILE,s.Service.AD_QUARTILE,t)},_joinTimeMeasureAfterAdBreakAvailable:function(){return this.isAdsPreFinished&&this.isAdsPreJoined&&!0===this.getJoinTimeMeasureAfterAdBreak()},_sendAdEventIfAllowed:function(e,t,i){this.options["ad.ignore"]||this._send(e,t,i,void 0,void 0,()=>{}),o.notice(a,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+t)}}},8187:(e,t,i)=>{var s=i(1593),n=i(3821);let{AnalyticsTag:r}=i(2784),{default:a}=i(7276);var o=s.extend({constructor:function(e){this.plugin=e,this.headerName="x-cdn"},init:function(){var e=null;this.plugin&&(e=this.plugin.getAdapter()&&this.plugin.getAdapter().getURLToParse()?this.plugin.getAdapter().getURLToParse():this.plugin.getResource()),this.plugin&&this.plugin.getAdapter()&&this.plugin.getAdapter().flags.isStarted&&this._request(e)},done:function(e){this.emit(o.Events.DONE,e)},error:function(){this.emit(o.Events.ERROR)},_successfulRequest:function(e){setTimeout(this.init.bind(this),1e3*parseInt(this.plugin.options["parse.cdnTTL"]));var t=e.getResponseHeaders().split("\n"),i=null;for(var s in t){var n=t[s],r=n.indexOf(this.headerName);r>-1&&(i=n.substring(r+this.headerName.length+1,n.length-1).replace(" ",""))}this.done(i)},_failedRequest:function(){setTimeout(this.init.bind(this),1e3*parseInt(this.plugin.options["parse.cdnTTL"])),a.warn(r,"CDN switch detection request failed"),this.error()},_request:function(e){var t=new n(e,null,null,{method:"HEAD",cache:!0});t.on(n.Event.SUCCESS,this._successfulRequest.bind(this)),t.on(n.Event.ERROR,this._failedRequest.bind(this)),t.send()}},{Events:{DONE:"done",ERROR:"error"}});e.exports=o},8424:e=>{e.exports={REQUIRED_METADATA_TIMEOUT:1e4}},8472:e=>{e.exports={HDS:"HDS",HLS:"HLS",MSS:"MSS",DASH:"DASH",RTMP:"RTMP",RTP:"RTP",RTSP:"RTSP",DVB:"DVB",DVBC:"DVB-C",DVBT:"DVB-T",DVBT2:"DVB-T2",MULTICAST:"MULTICAST"}},8490:(e,t,i)=>{var s=i(3948);let{default:n}=i(7276),{AnalyticsTag:r}=i(2784);e.exports=s.extend({constructor:function(e,t){this._adapter=e,this._videoElement=e.getVideoObject(),this._startedStateCheck=!1,this._intervalCheckId=null,this._intervalMilliseconds=t||300},start:function(){var e=this._adapter.plugin;e&&e.getReadyStateMonitorEnabled()&&this._videoElement&&!this._startedStateCheck&&(this._intervalCheckId=setInterval(this.checkStateProperty.bind(this),this._intervalMilliseconds),this._startedStateCheck=!0)},stop:function(){try{this._startedStateCheck&&this._intervalCheckId&&clearInterval(this._intervalCheckId),this._intervalCheckId=null,this._startedStateCheck=!1}catch(e){n.error(r,"Produced error stopping the network monitor")}},checkStateProperty:function(e){try{this._videoElement&&this._adapter&&this._videoElement.readyState&&(this._videoElement.readyState>3&&!this._adapter.flags.isSeeking?this._adapter.flags.isBuffering?this.fireBufferEnd({},"stateMonitor"):this._adapter.flags.isJoined||this.fireJoin({},"stateMonitor"):this._videoElement.readyState<4&&!this._adapter.flags.isBuffering&&this.fireBufferBegin({},!1,"stateMonitor",!0))}catch(e){}}})},8633:(e,t,i)=>{var s=i(525),n=i(1129),r=i(6598),a=i(2133),o=n.DOMImplementation,l=s.NAMESPACE,u=a.ParseError,d=a.XMLReader;function h(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function c(e){this.options=e||{locator:{}}}function p(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}
1function m(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}c.prototype.parseFromString=function(e,t){var i=this.options,s=new d,n=i.domBuilder||new p,a=i.errorHandler,o=i.locator,u=i.xmlns||{},c=/\/x?html?$/.test(t),f=c?r.HTML_ENTITIES:r.XML_ENTITIES;o&&n.setDocumentLocator(o),s.errorHandler=function(e,t,i){if(!e){if(t instanceof p)return t;e=t}var s={},n=e instanceof Function;function r(t){var r=e[t];!r&&n&&(r=2==e.length?function(i){e(t,i)}:e),s[t]=r&&function(e){r("[xmldom "+t+"] "+e+g(i))}||function(){}}return i=i||{},r("warning"),r("error"),r("fatalError"),s}(a,n,o),s.domBuilder=i.domBuilder||n,c&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var m=i.normalizeLineEndings||h;return e&&"string"==typeof e?s.parse(m(e),u,f):s.errorHandler.error("invalid doc source"),n.doc},p.prototype={startDocument:function(){this.doc=(new o).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,s){var n=this.doc,r=n.createElementNS(e,i||t),a=s.length;v(this,r),this.currentElement=r,this.locator&&f(this.locator,r);for(var o=0;o<a;o++){e=s.getURI(o);var l=s.getValue(o),u=(i=s.getQName(o),n.createAttributeNS(e,i));this.locator&&f(s.getLocator(o),u),u.value=u.nodeValue=l,r.setAttributeNode(u)}},endElement:function(e,t,i){var s=this.currentElement;s.tagName,this.currentElement=s.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&f(this.locator,i),v(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=m.apply(this,arguments)){if(this.cdata)var s=this.doc.createCDATASection(e);else s=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(e)&&this.doc.appendChild(s),this.locator&&f(this.locator,s)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=m.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&f(this.locator,s),v(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var s=this.doc.implementation;if(s&&s.createDocumentType){var n=s.createDocumentType(e,t,i);this.locator&&f(this.locator,n),v(this,n),this.doc.doctype=n}},warning:function(e){console.warn("[xmldom warning] "+e,g(this.locator))},error:function(e){console.error("[xmldom error] "+e,g(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){p.prototype[e]=function(){return null}}),t.DOMParser=c},8641:(e,t,i)=>{var s=i(1048).hp;self,e.exports=(()=>{var e,t;return e={851:(e,t,i)=>{var s=i(771),n=s.getOptions,r=s.setOptions;e.exports={parse:i(463),stringify:i(367),types:i(890),getOptions:n,setOptions:r}},463:(e,t,i)=>{function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,n,r,a,o=[],l=!0,u=!1;try{if(r=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=r.call(i)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){u=!0,n=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(u)throw n}}return o}}(e,t)||a(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=a(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var s=0,n=function(){};return{s:n,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==i.return||i.return()}finally{if(l)throw r}}}}function a(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}var l=i(771),u=i(890),d=u.Rendition,h=u.Variant,c=u.SessionData,p=u.Key,f=u.MediaInitializationSection,g=u.DateRange,m=u.SpliceInfo,v=u.MasterPlaylist,y=u.MediaPlaylist,T=u.Segment,S=u.PartialSegment,E=u.PrefetchSegment,b=u.RenditionReport;function _(e){return l.trim(e,'"')}function A(e){var t=l.splitAt(e,"@");return{length:l.toNumber(t[0]),offset:t[1]?l.toNumber(t[1]):-1}}function w(e,t){t.IV&&e.compatibleVersion<2&&(e.compatibleVersion=2),(t.KEYFORMAT||t.KEYFORMATVERSIONS)&&e.compatibleVersion<5&&(e.compatibleVersion=5)}function I(e){var t,i,s={}
1,a=r(l.splitByCommaWithPreservingQuotes(e));try{for(a.s();!(t=a.n()).done;){var o=t.value,u=n(l.splitAt(o,"="),2),d=u[0],h=u[1],c=_(h);switch(d){case"URI":s[d]=c;break;case"START-DATE":case"END-DATE":s[d]=new Date(c);break;case"IV":s[d]=(16!==(i=l.hexToByteSequence(c)).length&&l.INVALIDPLAYLIST("IV must be a 128-bit unsigned integer"),i);break;case"BYTERANGE":s[d]=A(c);break;case"RESOLUTION":s[d]=function(e){var t=l.splitAt(e,"x");return{width:l.toNumber(t[0]),height:l.toNumber(t[1])}}(c);break;case"ALLOWED-CPC":s[d]=function(e){var t="ALLOWED-CPC: Each entry must consit of KEYFORMAT and Content Protection Configuration",i=e.split(",");0===i.length&&l.INVALIDPLAYLIST(t);var s,a=[],o=r(i);try{for(o.s();!(s=o.n()).done;){var u=s.value,d=n(l.splitAt(u,":"),2),h=d[0],c=d[1];h&&c?a.push({format:h,cpcList:c.split("/")}):l.INVALIDPLAYLIST(t)}}catch(e){o.e(e)}finally{o.f()}return a}(c);break;case"END-ON-NEXT":case"DEFAULT":case"AUTOSELECT":case"FORCED":case"PRECISE":case"CAN-BLOCK-RELOAD":case"INDEPENDENT":case"GAP":s[d]="YES"===c;break;case"DURATION":case"PLANNED-DURATION":case"BANDWIDTH":case"AVERAGE-BANDWIDTH":case"FRAME-RATE":case"TIME-OFFSET":case"CAN-SKIP-UNTIL":case"HOLD-BACK":case"PART-HOLD-BACK":case"PART-TARGET":case"BYTERANGE-START":case"BYTERANGE-LENGTH":case"LAST-MSN":case"LAST-PART":case"SKIPPED-SEGMENTS":case"SCORE":s[d]=l.toNumber(c);break;default:d.startsWith("SCTE35-")?s[d]=l.hexToByteSequence(c):d.startsWith("X-")?s[d]=h.startsWith('"')?_(h):h.startsWith("0x")||h.startsWith("0X")?l.hexToByteSequence(h):l.toNumber(h):("VIDEO-RANGE"===d&&"SDR"!==c&&"HLG"!==c&&"PQ"!==c&&l.INVALIDPLAYLIST('VIDEO-RANGE: unknown value "'.concat(c,'"')),s[d]=c)}}}catch(e){a.e(e)}finally{a.f()}return s}function P(){l.INVALIDPLAYLIST("The file contains both media and master playlist tags.")}function R(e,t,i,s,n){var a,o=new h({uri:i,bandwidth:t.BANDWIDTH,averageBandwidth:t["AVERAGE-BANDWIDTH"],score:t.SCORE,codecs:t.CODECS,resolution:t.RESOLUTION,frameRate:t["FRAME-RATE"],hdcpLevel:t["HDCP-LEVEL"],allowedCpc:t["ALLOWED-CPC"],videoRange:t["VIDEO-RANGE"],stableVariantId:t["STABLE-VARIANT-ID"]}),u=r(e);try{for(u.s();!(a=u.n()).done;){var c=a.value;if("EXT-X-MEDIA"===c.name){var p=c.attributes,f=p.TYPE;if(f&&p["GROUP-ID"]||l.INVALIDPLAYLIST("EXT-X-MEDIA TYPE attribute is REQUIRED."),t[f]===p["GROUP-ID"]&&(function(e,t,i){var s,n=new d({type:(s=t.attributes).TYPE,uri:s.URI,groupId:s["GROUP-ID"],language:s.LANGUAGE,assocLanguage:s["ASSOC-LANGUAGE"],name:s.NAME,isDefault:s.DEFAULT,autoselect:s.AUTOSELECT,forced:s.FORCED,instreamId:s["INSTREAM-ID"],characteristics:s.CHARACTERISTICS,channels:s.CHANNELS}),a=e[l.camelify(i)],o=function(e,t){var i,s=!1,n=r(e);try{for(n.s();!(i=n.n()).done;){var a=i.value;if(a.name===t.name)return"All EXT-X-MEDIA tags in the same Group MUST have different NAME attributes.";a.isDefault&&(s=!0)}}catch(e){n.e(e)}finally{n.f()}return s&&t.isDefault?"EXT-X-MEDIA A Group MUST NOT have more than one member with a DEFAULT attribute of YES.":""}(a,n);o&&l.INVALIDPLAYLIST(o),a.push(n),n.isDefault&&(e.currentRenditions[l.camelify(i)]=a.length-1)}(o,c,f),"CLOSED-CAPTIONS"===f)){var g,m=r(o.closedCaptions);try{for(m.s();!(g=m.n()).done;){var v=g.value.instreamId;if(v&&v.startsWith("SERVICE")&&n.compatibleVersion<7){n.compatibleVersion=7;break}}}catch(e){m.e(e)}finally{m.f()}}}}}catch(e){u.e(e)}finally{u.f()}return function(e,t,i){for(var s=0,n=["AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS"];s<n.length;s++)!function(){var r=n[s];"CLOSED-CAPTIONS"===r&&"NONE"===e[r]?(i.isClosedCaptionsNone=!0,t.closedCaptions=[]):e[r]&&!t[l.camelify(r)].some(function(t){return t.groupId===e[r]})&&l.INVALIDPLAYLIST("".concat(r," attribute MUST match the value of the GROUP-ID attribute of an EXT-X-MEDIA tag whose TYPE attribute is ").concat(r,"."))}()}(t,o,n),o.isIFrameOnly=s,o}function N(e,t,i,s,n,r,a){for(var o=new T({uri:t,mediaSequenceNumber:n,discontinuitySequence:r}),u=!1,d=!1,h=i;h<=s;h++){var c=e[h],v=c.name,y=c.value,E=c.attributes;if("EXTINF"===v)!Number.isInteger(y.duration)&&a.compatibleVersion<3&&(a.compatibleVersion=3),Math.round(y.duration)>a.targetDuration&&l.INVALIDPLAYLIST("EXTINF duration, when rounded to the nearest integer, MUST be less than or equal to the target duration"),o.duration=y.duration,o.title=y.title;else if("EXT-X-BYTERANGE"===v)a.compatibleVersion<4&&(a.compatibleVersion=4),o.byterange=y;else if("EXT-X-DISCONTINUITY"===v)o.parts.length>0&&l.INVALIDPLAYLIST("EXT-X-DISCONTINUITY must appear before the first EXT-X-PART tag of the Parent Segment."),o.discontinuity=!0;else if("EXT-X-KEY"===v)o.parts.length>0&&l.INVALIDPLAYLIST("EXT-X-KEY must appear before the first EXT-X-PART tag of the Parent Segment."),w(a,E),o.key=new p({method:E.METHOD,uri:E.URI,iv:E.IV,format:E.KEYFORMAT,formatVersion:E.KEYFORMATVERSIONS});else if("EXT-X-MAP"===v)o.parts.length>0&&l.INVALIDPLAYLIST("EXT-X-MAP must appear before the first EXT-X-PART tag of the Parent Segment."),a.compatibleVersion<5&&(a.compatibleVersion=5),a.hasMap=!0,o.map=new f({uri:E.URI,byterange:E.BYTERANGE});else if("EXT-X-PROGRAM-DATE-TIME"===v)o.programDateTime=y;else if("EXT-X-DATERANGE"===v){for(var b={},_=0,A=Object.keys(E);_<A.length;_++){var I=A[_];(I.startsWith("SCTE35-")||I.startsWith("X-"))&&(b[I]=E[I])}o.dateRange=new g({id:E.ID,classId:E.CLASS,start:E["START-DATE"],end:E["END-DATE"],duration:E.DURATION,plannedDuration:E["PLANNED-DURATION"],endOnNext:E["END-ON-NEXT"],attributes:b})}else if("EXT-X-CUE-OUT"===v)o.markers.push(new m({type:"OUT",duration:E&&E.DURATION||y}));else if("EXT-X-CUE-IN"===v)o.markers.push(new m({type:"IN"}));else if("EXT-X-CUE-OUT-CONT"===v||"EXT-X-CUE"===v||"EXT-OATCLS-SCTE35"===v||"EXT-X-ASSET"===v||"EXT-X-SCTE35"===v)o.markers.push(new m({type:"RAW",tagName:v,value:y}));else if("EXT-X-PRELOAD-HINT"!==v||E.TYPE)if("EXT-X-PRELOAD-HINT"
1===v&&"PART"===E.TYPE&&d)l.INVALIDPLAYLIST("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist.");else if("EXT-X-PART"!==v&&"EXT-X-PRELOAD-HINT"!==v||E.URI){if("EXT-X-PRELOAD-HINT"===v&&"MAP"===E.TYPE)u&&l.INVALIDPLAYLIST("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist."),u=!0,a.hasMap=!0,o.map=new f({hint:!0,uri:E.URI,byterange:{length:E["BYTERANGE-LENGTH"],offset:E["BYTERANGE-START"]||0}});else if("EXT-X-PART"===v||"EXT-X-PRELOAD-HINT"===v&&"PART"===E.TYPE){"EXT-X-PART"!==v||E.DURATION||l.INVALIDPLAYLIST("EXT-X-PART: DURATION attribute is mandatory"),"EXT-X-PRELOAD-HINT"===v&&(d=!0);var P=new S({hint:"EXT-X-PRELOAD-HINT"===v,uri:E.URI,byterange:"EXT-X-PART"===v?E.BYTERANGE:{length:E["BYTERANGE-LENGTH"],offset:E["BYTERANGE-START"]||0},duration:E.DURATION,independent:E.INDEPENDENT,gap:E.GAP});o.parts.push(P)}}else l.INVALIDPLAYLIST("EXT-X-PART / EXT-X-PRELOAD-HINT: URI attribute is mandatory");else l.INVALIDPLAYLIST("EXT-X-PRELOAD-HINT: TYPE attribute is mandatory")}return o}function D(e,t,i,s,n){var r=t.discontinuity,a=t.key,o=t.map,u=t.byterange,d=t.uri;if(r&&(t.discontinuitySequence=i+1),a||(t.key=s),o||(t.map=n),u&&-1===u.offset){var h=e.segments;if(h.length>0){var c=h[h.length-1];c.byterange&&c.uri===d?u.offset=c.byterange.offset+c.byterange.length:l.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST be a sub-range of the same media resource")}else l.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST appear in the Playlist file")}return e.segments.push(t),[t.discontinuitySequence,t.key,t.map]}e.exports=function(e){var t,i,a={version:void 0,isMasterPlaylist:void 0,hasMap:!1,targetDuration:0,compatibleVersion:1,isClosedCaptionsNone:!1,hash:{}},o=(t=function(e,t){var i,a=[],o=r(e.split("\n"));try{for(o.s();!(i=o.n()).done;){var u=i.value,d=s.from(u.trim()).toString();if(d)if(d.startsWith("#")){if(d.startsWith("#EXT")){var h=function(e,t){var i,s=n(-1===(i=e.indexOf(":"))?[e.slice(1).trim(),null]:[e.slice(1,i).trim(),e.slice(i+1).trim()],2),r=s[0],a=s[1],o=function(e){switch(e){case"EXTM3U":case"EXT-X-VERSION":return"Basic";case"EXTINF":case"EXT-X-BYTERANGE":case"EXT-X-DISCONTINUITY":case"EXT-X-PREFETCH-DISCONTINUITY":case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-PROGRAM-DATE-TIME":case"EXT-X-DATERANGE":case"EXT-X-CUE-OUT":case"EXT-X-CUE-IN":case"EXT-X-CUE-OUT-CONT":case"EXT-X-CUE":case"EXT-OATCLS-SCTE35":case"EXT-X-ASSET":case"EXT-X-SCTE35":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":return"Segment";case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":case"EXT-X-ENDLIST":case"EXT-X-PLAYLIST-TYPE":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PREFETCH":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return"MediaPlaylist";case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":return"MasterPlaylist";case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-START":return"MediaorMasterPlaylist";default:return"Unknown"}}(r);if(function(e,t){if("Segment"===e||"MediaPlaylist"===e)return void 0===t.isMasterPlaylist?t.isMasterPlaylist=!1:t.isMasterPlaylist&&P();if("MasterPlaylist"===e){if(void 0===t.isMasterPlaylist)return t.isMasterPlaylist=!0;!1===t.isMasterPlaylist&&P()}}(o,t),"Unknown"===o)return null;"MediaPlaylist"===o&&"EXT-X-RENDITION-REPORT"!==r&&"EXT-X-PREFETCH"!==r&&(t.hash[r]&&l.INVALIDPLAYLIST("There MUST NOT be more than one Media Playlist tag of each type in any Media Playlist"),t.hash[r]=!0);var u=n(function(e,t){switch(e){case"EXTM3U":case"EXT-X-DISCONTINUITY":case"EXT-X-ENDLIST":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-CUE-IN":return[null,null];case"EXT-X-VERSION":case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":return[l.toNumber(t),null];case"EXT-X-CUE-OUT":return Number.isNaN(Number(t))?[null,I(t)]:[l.toNumber(t),null];case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-DATERANGE":case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":case"EXT-X-START":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return[null,I(t)];case"EXTINF":var i;return[(i=l.splitAt(t,","),{duration:l.toNumber(i[0]),title:decodeURIComponent(escape(i[1]))}),null];case"EXT-X-BYTERANGE":return[A(t),null];case"EXT-X-PROGRAM-DATE-TIME":return[new Date(t),null];default:return[t,null]}}(r,a),2);return{name:r,category:o,value:u[0],attributes:u[1]}}(d,t);h&&a.push(h)}}else a.push(d)}}catch(e){o.e(e)}finally{o.f()}return 0!==a.length&&"EXTM3U"===a[0].name||l.INVALIDPLAYLIST("The EXTM3U tag MUST be the first line."),a}(e,a),a.isMasterPlaylist?i=function(e,t){var i,s=new v,a=!1,o=r(e.entries());try{for(o.s();!(i=o.n()).done;){var u=n(i.value,2),d=u[0],h=u[1],f=h.name,g=h.value,m=h.attributes;if("EXT-X-VERSION"===f)s.version=g;else if("EXT-X-STREAM-INF"===f){var y=e[d+1];("string"!=typeof y||y.startsWith("#EXT"))&&l.INVALIDPLAYLIST("EXT-X-STREAM-INF must be followed by a URI line");var T=R(e,m,y,!1,t);T&&("number"==typeof T.score&&(a=!0,T.score<0&&l.INVALIDPLAYLIST("SCORE attribute on EXT-X-STREAM-INF must be positive decimal-floating-point number.")),s.variants.push(T))}else if("EXT-X-I-FRAME-STREAM-INF"===f){var S=R(e,m,m.URI,!0,t);S&&s.variants.push(S)}else"EXT-X-SESSION-DATA"===f?function(){var e=new c({id:m["DATA-ID"],value:m.VALUE,uri:m.URI,language:m.LANGUAGE});s.sessionDataList.some(function(t){return t.id===e.id&&t.language===e.language})&&l.INVALIDPLAYLIST("A Playlist MUST NOT contain more than one EXT-X-SESSION-DATA tag with the same DATA-ID attribute and the same LANGUAGE attribute."),s.sessionDataList.push(e)}():"EXT-X-SESSION-KEY"===f?function(){"NONE"===m.METHOD&&l.INVALIDPLAYLIST("EXT-X-SESSION-KEY: The value of the METHOD attribute MUST NOT be NONE");var e=new p({method:m.METHOD,uri:m.URI,iv:m.IV,format:m.KEYFORMAT,formatVersion:m.KEYFORMATVERSIONS});s.sessionKeyList.some(function(t){if(t.method!==e.method||t.uri!==e.uri)return!1;if(t.iv){if(!e.iv||t.iv.length!==e.iv.length)return!1;for(var i=0;i<t.iv.length;i++)if(t.iv[i]!==e.iv[i])return!1}else if(e.iv)return!1;return t.format===e.format&&t.formatVersion===e.formatVersion})&&l.INVALIDPLAYLIST("A Master Playlist MUST NOT contain more than one EXT-X-SESSION-KEY tag with the same METHOD, URI, IV, KEYFORMAT, and KEYFORMATVERSIONS attribute values."),w(t,m),s.sessionKeyList.push(e)}():"EXT-X-INDEPENDENT-SEGMENTS"===f?(s.independentSegments&&l.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),s.independentSegments=!0):"EXT-X-START"===f&&(s.start&&l.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),"number"!=typeof m["TIME-OFFSET"]&&l.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),s.start={offset:m["TIME-OFFSET"],precise:m.PRECISE||!1})}}catch(e){o.e(e)}finally{o.f()}if(a){var E,b=r(s.variants);try{for(b.s();!(E=b.n()).done;)"number"!=typeof E.value.score&&l.INVALIDPLAYLIST("If any Variant Stream contains the SCORE attribute, then all Variant Streams in the Master Playlist SHOULD have a SCORE attribute")}catch(e){b.e(e)}finally{b.f()}}if(t.isClosedCaptionsNone){var _,A=r(s.variants);try{for(A.s();!(_=A.n()).done;)_.value.closedCaptions.length>0&&l.INVALIDPLAYLIST("If there is a variant with CLOSED-CAPTIONS attribute of NONE, all EXT-X-STREAM-INF tags MUST have this attribute with a value of NONE")}catch(e){A.e(e)}finally{A.f()}}return s}(t,a):!(i=function(e,t){var i,s=new y,a=-1,o=0,u=!1,d=!1,h=0,c=null,f=null,g=!1,m=r(e.entries());try{for(m.s();!(i=m.n()).done;){var v=n(i.value,2),T=v[0],S=v[1],_=S.name,A=S.value,I=S.attributes;if("Segment"!==S.category){if("EXT-X-VERSION"===_)void 0===s.version?s.version=A:l.INVALIDPLAYLIST("A Playlist file MUST NOT contain more than one EXT-X-VERSION tag.");else if("EXT-X-TARGETDURATION"===_)s.targetDuration=t.targetDuration=A;else if("EXT-X-MEDIA-SEQUENCE"===_)s.segments.length>0&&l.INVALIDPLAYLIST("The EXT-X-MEDIA-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),s.mediaSequenceBase=o=A;else if("EXT-X-DISCONTINUITY-SEQUENCE"===_)s.segments.length>0&&l.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),u&&l.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before any EXT-X-DISCONTINUITY tag."),s.discontinuitySequenceBase=h=A;else if("EXT-X-ENDLIST"===_)s.endlist=!0;else if("EXT-X-PLAYLIST-TYPE"===_)s.playlistType=A;else if("EXT-X-I-FRAMES-ONLY"===_)t.compatibleVersion<4&&(t.compatibleVersion=4),s.isIFrame=!0;else if("EXT-X-INDEPENDENT-SEGMENTS"===_)s.independentSegments&&l.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),s.independentSegments=!0;else if("EXT-X-START"===_)s.start&&l.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),"number"!=typeof I["TIME-OFFSET"]&&l.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),s.start={offset:I["TIME-OFFSET"],precise:I.PRECISE||!1};else if("EXT-X-SERVER-CONTROL"===_)I["CAN-BLOCK-RELOAD"]||l.INVALIDPLAYLIST("EXT-X-SERVER-CONTROL: CAN-BLOCK-RELOAD=YES is mandatory for Low-Latency HLS"),s.lowLatencyCompatibility={canBlockReload:I["CAN-BLOCK-RELOAD"],canSkipUntil:I["CAN-SKIP-UNTIL"],holdBack:I["HOLD-BACK"],partHoldBack:I["PART-HOLD-BACK"]};else if("EXT-X-PART-INF"===_)I["PART-TARGET"]||l.INVALIDPLAYLIST("EXT-X-PART-INF: PART-TARGET attribute is mandatory"),s.partTargetDuration=I["PART-TARGET"];else if("EXT-X-RENDITION-REPORT"===_)I.URI||l.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI attribute is mandatory"),0===I.URI.search(/^[a-z]+:/)&&l.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI must be relative to the playlist uri"),s.renditionReports.push(new b({uri:I.URI,lastMSN:I["LAST-MSN"],lastPart:I["LAST-PART"]}));else if("EXT-X-SKIP"===_)I["SKIPPED-SEGMENTS"]||l.INVALIDPLAYLIST("EXT-X-SKIP: SKIPPED-SEGMENTS attribute is mandatory"),t.compatibleVersion<9&&(t.compatibleVersion=9),s.skip=I["SKIPPED-SEGMENTS"],o+=s.skip;else if("EXT-X-PREFETCH"===_){var P=function(e,t,i,s,n,r,a){for(var o=new E({uri:t,mediaSequenceNumber:n,discontinuitySequence:r}),u=i;u<=s;u++){var d=e[u],h=d.name,c=d.attributes;"EXTINF"===h?l.INVALIDPLAYLIST("A prefetch segment must not be advertised with an EXTINF tag."):"EXT-X-DISCONTINUITY"===h?l.INVALIDPLAYLIST("A prefetch segment must not be advertised with an EXT-X-DISCONTINUITY tag."):"EXT-X-PREFETCH-DISCONTINUITY"===h?o.discontinuity=!0:"EXT-X-KEY"===h?(w(a,c
1),o.key=new p({method:c.METHOD,uri:c.URI,iv:c.IV,format:c.KEYFORMAT,formatVersion:c.KEYFORMATVERSIONS})):"EXT-X-MAP"===h&&l.INVALIDPLAYLIST("Prefetch segments must not be advertised with an EXT-X-MAP tag.")}return o}(e,A,-1===a?T:a,T-1,o++,h,t);P&&(P.discontinuity&&(P.discontinuitySequence++,h=P.discontinuitySequence),P.key?c=P.key:P.key=c,s.prefetchSegments.push(P)),d=!0,a=-1}else if("string"==typeof S){-1===a&&l.INVALIDPLAYLIST("A URI line is not preceded by any segment tags"),s.targetDuration||l.INVALIDPLAYLIST("The EXT-X-TARGETDURATION tag is REQUIRED"),d&&l.INVALIDPLAYLIST("These segments must appear after all complete segments.");var R=N(e,S,a,T-1,o++,h,t);if(R){var L=n(D(s,R,h,c,f),3);h=L[0],c=L[1],f=L[2],!g&&R.parts.length>0&&(g=!0)}a=-1}}else -1===a&&(a=T),"EXT-X-DISCONTINUITY"===_&&(u=!0)}}catch(e){m.e(e)}finally{m.f()}if(-1!==a){var C=N(e,"",a,e.length-1,o++,h,t);if(C){var O=C.parts;!(O.length>0)||s.endlist||O[O.length-1].hint||l.INVALIDPLAYLIST("If the Playlist contains EXT-X-PART tags and does not contain an EXT-X-ENDLIST tag, the Playlist must contain an EXT-X-PRELOAD-HINT tag with a TYPE=PART attribute"),D(s,C,c,f),!g&&C.parts.length>0&&(g=!0)}}return function(e){for(var t=new Map,i=new Map,s=!1,n=!1,a=e.length-1;a>=0;a--){var o=e[a],u=o.programDateTime,d=o.dateRange;if(u&&(n=!0),d&&d.start){s=!0,d.endOnNext&&(d.end||d.duration)&&l.INVALIDPLAYLIST("An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST NOT contain DURATION or END-DATE attributes.");var h=d.start.getTime(),c=d.duration||0;d.end&&d.duration&&h+1e3*c!==d.end.getTime()&&l.INVALIDPLAYLIST("END-DATE MUST be equal to the value of the START-DATE attribute plus the value of the DURATION"),d.endOnNext&&(d.end=t.get(d.classId)),t.set(d.classId,d.start);var p=d.end?d.end.getTime():d.start.getTime()+1e3*(d.duration||0),f=i.get(d.classId);if(f){var g,m=r(f);try{for(m.s();!(g=m.n()).done;){var v=g.value;(v.start<=h&&v.end>h||v.start>=h&&v.start<p)&&l.INVALIDPLAYLIST("DATERANGE tags with the same CLASS should not overlap")}}catch(e){m.e(e)}finally{m.f()}f.push({start:h,end:p})}else i.set(d.classId,[{start:h,end:p}])}}s&&!n&&l.INVALIDPLAYLIST("If a Playlist contains an EXT-X-DATERANGE tag, it MUST also contain at least one EXT-X-PROGRAM-DATE-TIME tag.")}(s.segments),s.lowLatencyCompatibility&&function(e,t){var i=e.lowLatencyCompatibility,s=e.targetDuration,a=e.partTargetDuration,o=e.segments,u=e.renditionReports,d=i.canSkipUntil,h=i.holdBack,c=i.partHoldBack;if(d<6*s&&l.INVALIDPLAYLIST("The Skip Boundary must be at least six times the EXT-X-TARGETDURATION."),h<3*s&&l.INVALIDPLAYLIST("HOLD-BACK must be at least three times the EXT-X-TARGETDURATION."),t){void 0===a&&l.INVALIDPLAYLIST("EXT-X-PART-INF is required if a Playlist contains one or more EXT-X-PART tags"),void 0===c&&l.INVALIDPLAYLIST("EXT-X-PART: PART-HOLD-BACK attribute is mandatory"),c<a&&l.INVALIDPLAYLIST("PART-HOLD-BACK must be at least PART-TARGET");var p,f=r(o.entries());try{for(f.s();!(p=f.n()).done;){var g=n(p.value,2),m=g[0],v=g[1].parts;v.length>0&&m<o.length-3&&l.INVALIDPLAYLIST("Remove EXT-X-PART tags from the Playlist after they are greater than three target durations from the end of the Playlist.");var y,T=r(v.entries());try{for(T.s();!(y=T.n()).done;){var S=n(y.value,2),E=S[0],b=S[1].duration;void 0!==b&&(b>a&&l.INVALIDPLAYLIST("PART-TARGET is the maximum duration of any Partial Segment"),E<v.length-1&&b<.85*a&&l.INVALIDPLAYLIST("All Partial Segments except the last part of a segment must have a duration of at least 85% of PART-TARGET"))}}catch(e){T.e(e)}finally{T.f()}}}catch(e){f.e(e)}finally{f.f()}}var _,A=r(u);try{for(A.s();!(_=A.n()).done;){var w=_.value,I=o[o.length-1];w.lastMSN||(w.lastMSN=I.mediaSequenceNumber),!w.lastPart&&I.parts.length>0&&(w.lastPart=I.parts.length-1)}}catch(e){A.e(e)}finally{A.f()}}(s,g),s}(t,a)).isIFrame&&a.hasMap&&a.compatibleVersion<6&&(a.compatibleVersion=6),a.compatibleVersion>1&&(!i.version||i.version<a.compatibleVersion)&&l.INVALIDPLAYLIST("EXT-X-VERSION needs to be ".concat(a.compatibleVersion," or higher.")),i);return o.source=e,o}},367:(e,t,i)=>{function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=r(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var s=0,n=function(){};return{s:n,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(l)throw a}}}}function r(e,t){if(e){if("string"==typeof e)return a(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}function o(){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,i){var s=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(s){var n=Object.getOwnPropertyDescriptor(s,t);return n.get?n.get.call(arguments.length<3?e:i):n.value}}).apply(this,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return u(e,arguments,c(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),h(i,e)})(e)}function u(e,t,i){return(u=d()?Reflect.construct.bind():function(e,t,i){var s=[null];s.push.apply(s,t);var n=new(Function.bind.apply(e,s));return i&&h(n,i.prototype),n}).apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}
1function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=i(771),f=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],g=["#EXT-X-MEDIA"],m=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&h(r,e);var t,i,n=(t=d(),function(){var e,i=c(r);if(e=t?Reflect.construct(i,arguments,c(this).constructor):i.apply(this,arguments),e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function r(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this)).baseUri=e,t}return i=[{key:"push",value:function(){for(var e=this,t=arguments.length,i=Array(t),s=0;s<t;s++)i[s]=arguments[s];for(var n=0;n<i.length;n++)!function(){var t=i[n];if(!t.startsWith("#")||f.some(function(e){return t.startsWith(e)}))return o(c(r.prototype),"push",e).call(e,t);if(e.includes(t)){if(g.some(function(e){return t.startsWith(e)}))return;p.INVALIDPLAYLIST("Redundant item (".concat(t,")"))}o(c(r.prototype),"push",e).call(e,t)}()}}],function(e,t){for(var i,n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=function(e){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==s(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(i)?i:String(i)),r)}}(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(l(Array));function v(e,t){var i=1e3;t&&(i=Math.pow(10,t));var s=Math.round(e*i)/i;return t?s.toFixed(t):s}function y(e,t){var i=["METHOD=".concat(e.method)];return e.uri&&i.push('URI="'.concat(e.uri,'"')),e.iv&&(16!==e.iv.length&&p.INVALIDPLAYLIST("IV must be a 128-bit unsigned integer"),i.push("IV=".concat(p.byteSequenceToHex(e.iv)))),e.format&&i.push('KEYFORMAT="'.concat(e.format,'"')),e.formatVersion&&i.push('KEYFORMATVERSIONS="'.concat(e.formatVersion,'"')),"".concat(t?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",":").concat(i.join(","))}function T(e){var t=["TYPE=".concat(e.type),'GROUP-ID="'.concat(e.groupId,'"'),'NAME="'.concat(e.name,'"')];return void 0!==e.isDefault&&t.push("DEFAULT=".concat(e.isDefault?"YES":"NO")),void 0!==e.autoselect&&t.push("AUTOSELECT=".concat(e.autoselect?"YES":"NO")),void 0!==e.forced&&t.push("FORCED=".concat(e.forced?"YES":"NO")),e.language&&t.push('LANGUAGE="'.concat(e.language,'"')),e.assocLanguage&&t.push('ASSOC-LANGUAGE="'.concat(e.assocLanguage,'"')),e.instreamId&&t.push('INSTREAM-ID="'.concat(e.instreamId,'"')),e.characteristics&&t.push('CHARACTERISTICS="'.concat(e.characteristics,'"')),e.channels&&t.push('CHANNELS="'.concat(e.channels,'"')),e.uri&&t.push('URI="'.concat(e.uri,'"')),"#EXT-X-MEDIA:".concat(t.join(","))}function S(e){var t=e.offset,i=e.length;return"".concat(i,"@").concat(t)}e.exports=function(e){p.PARAMCHECK(e),p.ASSERT("Not a playlist","playlist"===e.type);var t=new m(e.uri);return t.push("#EXTM3U"),e.version&&t.push("#EXT-X-VERSION:".concat(e.version)),e.independentSegments&&t.push("#EXT-X-INDEPENDENT-SEGMENTS"),e.start&&t.push("#EXT-X-START:TIME-OFFSET=".concat(v(e.start.offset)).concat(e.start.precise?",PRECISE=YES":"")),e.isMasterPlaylist?function(e,t){var i,s=n(t.sessionDataList);try{for(s.s();!(i=s.n()).done;){var r=i.value;e.push(function(e){var t=['DATA-ID="'.concat(e.id,'"')];return e.language&&t.push('LANGUAGE="'.concat(e.language,'"')),e.value?t.push('VALUE="'.concat(e.value,'"')):e.uri&&t.pu
1sh('URI="'.concat(e.uri,'"')),"#EXT-X-SESSION-DATA:".concat(t.join(","))}(r))}}catch(e){s.e(e)}finally{s.f()}var a,o=n(t.sessionKeyList);try{for(o.s();!(a=o.n()).done;){var l=a.value;e.push(y(l,!0))}}catch(e){o.e(e)}finally{o.f()}var u,d=n(t.variants);try{for(d.s();!(u=d.n()).done;)!function(e,t){var i=t.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",s=["BANDWIDTH=".concat(t.bandwidth)];if(t.averageBandwidth&&s.push("AVERAGE-BANDWIDTH=".concat(t.averageBandwidth)),t.isIFrameOnly&&s.push('URI="'.concat(t.uri,'"')),t.codecs&&s.push('CODECS="'.concat(t.codecs,'"')),t.resolution&&s.push("RESOLUTION=".concat(t.resolution.width,"x").concat(t.resolution.height)),t.frameRate&&s.push("FRAME-RATE=".concat(v(t.frameRate,3))),t.hdcpLevel&&s.push("HDCP-LEVEL=".concat(t.hdcpLevel)),t.audio.length>0){s.push('AUDIO="'.concat(t.audio[0].groupId,'"'));var r,a=n(t.audio);try{for(a.s();!(r=a.n()).done;){var o=r.value;e.push(T(o))}}catch(e){a.e(e)}finally{a.f()}}if(t.video.length>0){s.push('VIDEO="'.concat(t.video[0].groupId,'"'));var l,u=n(t.video);try{for(u.s();!(l=u.n()).done;){var d=l.value;e.push(T(d))}}catch(e){u.e(e)}finally{u.f()}}if(t.subtitles.length>0){s.push('SUBTITLES="'.concat(t.subtitles[0].groupId,'"'));var h,c=n(t.subtitles);try{for(c.s();!(h=c.n()).done;){var f=h.value;e.push(T(f))}}catch(e){c.e(e)}finally{c.f()}}if(p.getOptions().allowClosedCaptionsNone&&0===t.closedCaptions.length)s.push("CLOSED-CAPTIONS=NONE");else if(t.closedCaptions.length>0){s.push('CLOSED-CAPTIONS="'.concat(t.closedCaptions[0].groupId,'"'));var g,m=n(t.closedCaptions);try{for(m.s();!(g=m.n()).done;){var y=g.value;e.push(T(y))}}catch(e){m.e(e)}finally{m.f()}}if(t.score&&s.push("SCORE=".concat(t.score)),t.allowedCpc){var S,E=[],b=n(t.allowedCpc);try{for(b.s();!(S=b.n()).done;){var _=S.value,A=_.format,w=_.cpcList;E.push("".concat(A,":").concat(w.join("/")))}}catch(e){b.e(e)}finally{b.f()}s.push('ALLOWED-CPC="'.concat(E.join(","),'"'))}t.videoRange&&s.push("VIDEO-RANGE=".concat(t.videoRange)),t.stableVariantId&&s.push('STABLE-VARIANT-ID="'.concat(t.stableVariantId,'"')),e.push("".concat(i,":").concat(s.join(","))),t.isIFrameOnly||e.push("".concat(t.uri))}(e,u.value)}catch(e){d.e(e)}finally{d.f()}}(t,e):function(e,t){var i="",s="",a=!1;if(t.targetDuration&&e.push("#EXT-X-TARGETDURATION:".concat(t.targetDuration)),t.lowLatencyCompatibility){var o=t.lowLatencyCompatibility,l=o.canBlockReload,u=o.canSkipUntil,d=o.holdBack,h=o.partHoldBack,c=[];c.push("CAN-BLOCK-RELOAD=".concat(l?"YES":"NO")),void 0!==u&&c.push("CAN-SKIP-UNTIL=".concat(u)),void 0!==d&&c.push("HOLD-BACK=".concat(d)),void 0!==h&&c.push("PART-HOLD-BACK=".concat(h)),e.push("#EXT-X-SERVER-CONTROL:".concat(c.join(",")))}t.partTargetDuration&&e.push("#EXT-X-PART-INF:PART-TARGET=".concat(t.partTargetDuration)),t.mediaSequenceBase&&e.push("#EXT-X-MEDIA-SEQUENCE:".concat(t.mediaSequenceBase)),t.discontinuitySequenceBase&&e.push("#EXT-X-DISCONTINUITY-SEQUENCE:".concat(t.discontinuitySequenceBase)),t.playlistType&&e.push("#EXT-X-PLAYLIST-TYPE:".concat(t.playlistType)),t.isIFrame&&e.push("#EXT-X-I-FRAMES-ONLY"),t.skip>0&&e.push("#EXT-X-SKIP:SKIPPED-SEGMENTS=".concat(t.skip));var f,g=n(t.segments);try{for(g.s();!(f=g.n()).done;){var m,T,E=(m=function(e,t,i,s){var r,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=!1,u="";if(t.discontinuity&&e.push("#EXT-X-DISCONTINUITY"),t.key){var d=y(t.key);d!==i&&(e.push(d),i=d)}if(t.map){var h,c,f=(h=t.map,c=['URI="'.concat(h.uri,'"')],h.byterange&&c.push('BYTERANGE="'.concat(S(h.byterange),'"')),"#EXT-X-MAP:".concat(c.join(",")));f!==s&&(e.push(f),s=f)}if(t.programDateTime&&e.push("#EXT-X-PROGRAM-DATE-TIME:".concat(p.formatDate(t.programDateTime))),t.dateRange&&e.push(function(e){var t=['ID="'.concat(e.id,'"')];e.start&&t.push('START-DATE="'.concat(p.formatDate(e.start),'"')),e.end&&t.push('END-DATE="'.concat(e.end,'"')),e.duration&&t.push("DURATION=".concat(e.duration)),e.plannedDuration&&t.push("PLANNED-DURATION=".concat(e.plannedDuration)),e.classId&&t.push('CLASS="'.concat(e.classId,'"')),e.endOnNext&&t.push("END-ON-NEXT=YES");for(var i=0,s=Object.keys(e.attributes);i<s.length;i++){var n=s[i];n.startsWith("X-")?"number"==typeof e.attributes[n]?t.push("".concat(n,"=").concat(e.attributes[n])):t.push("".concat(n,'="').concat(e.attributes[n],'"')):n.startsWith("SCTE35-")&&t.push("".concat(n,"=").concat(p.byteSequenceToHex(e.attributes[n])))}return"#EXT-X-DATERANGE:".concat(t.join(","))}(t.dateRange)),t.markers.length>0&&(u=function(e,t){var i,s="",r=n(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;if("OUT"===a.type)s="OUT",e.push("#EXT-X-CUE-OUT:DURATION=".concat(a.duration));else if("IN"===a.type)s="IN",e.push("#EXT-X-CUE-IN");
1else if("RAW"===a.type){var o=a.value?":".concat(a.value):"";e.push("#".concat(a.tagName).concat(o))}}}catch(e){r.e(e)}finally{r.f()}return s}(e,t.markers)),t.parts.length>0&&(l=function(e,t){var i,s=!1,r=n(t);try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a.hint){var o=[];if(o.push("TYPE=PART",'URI="'.concat(a.uri,'"')),a.byterange){var l=a.byterange,u=l.offset,d=l.length;o.push("BYTERANGE-START=".concat(u)),d&&o.push("BYTERANGE-LENGTH=".concat(d))}e.push("#EXT-X-PRELOAD-HINT:".concat(o.join(","))),s=!0}else{var h=[];h.push("DURATION=".concat(a.duration),'URI="'.concat(a.uri,'"')),a.byterange&&h.push("BYTERANGE=".concat(S(a.byterange))),a.independent&&h.push("INDEPENDENT=YES"),a.gap&&h.push("GAP=YES"),e.push("#EXT-X-PART:".concat(h.join(",")))}}}catch(e){r.e(e)}finally{r.f()}return s}(e,t.parts)),l)return[i,s];var g=o<3?Math.round(t.duration):v(t.duration,-1===(a=(r=t.duration.toString(10)).indexOf("."))?0:r.length-a-1);return e.push("#EXTINF:".concat(g,",").concat(unescape(encodeURIComponent(t.title||"")))),t.byterange&&e.push("#EXT-X-BYTERANGE:".concat(S(t.byterange))),Array.prototype.push.call(e,"".concat(t.uri)),[i,s,u]}(e,f.value,i,s,t.version),function(e){if(Array.isArray(e))return e}(m)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,n,r,a,o=[],l=!0,u=!1;try{r=(i=i.call(e)).next,!1;for(;!(l=(s=r.call(i)).done)&&(o.push(s.value),3!==o.length);l=!0);}catch(e){u=!0,n=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(u)throw n}}return o}}(m,3)||r(m,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i=E[0],s=E[1],"OUT"===(T=E[2])?a=!0:"IN"===T&&a&&(a=!1)}}catch(e){g.e(e)}finally{g.f()}"VOD"===t.playlistType&&a&&e.push("#EXT-X-CUE-IN"),t.prefetchSegments.length>2&&p.INVALIDPLAYLIST("The server must deliver no more than two prefetch segments");var b,_=n(t.prefetchSegments);try{for(_.s();!(b=_.n()).done;){var A=b.value;A.discontinuity&&e.push("#EXT-X-PREFETCH-DISCONTINUITY"),e.push("#EXT-X-PREFETCH:".concat(A.uri))}}catch(e){_.e(e)}finally{_.f()}t.endlist&&e.push("#EXT-X-ENDLIST");var w,I=n(t.renditionReports);try{for(I.s();!(w=I.n()).done;){var P=w.value,R=[];R.push('URI="'.concat(P.uri,'"'),"LAST-MSN=".concat(P.lastMSN)),void 0!==P.lastPart&&R.push("LAST-PART=".concat(P.lastPart)),e.push("#EXT-X-RENDITION-REPORT:".concat(R.join(",")))}}catch(e){I.e(e)}finally{I.f()}}(t,e),t.join("\n")}},890:(e,t,i)=>{function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=o(e);return i=t?Reflect.construct(n,arguments,o(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,i)}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){for(var i,n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=function(e){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!==s(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(i)?i:String(i)),r)}}function u(e,t,i){return t&&l(e.prototype,t),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var h=i(771),c=u(function e(t){var i=t.type,s=t.uri,n=t.groupId,r=t.language,a=t.assocLanguage,o=t.name,l=t.isDefault,u=t.autoselect,c=t.forced,p=t.instreamId,f=t.characteristics,g=t.channels;d(this,e),h.PARAMCHECK(i,n,o),h.CONDITIONALASSERT(["SUBTITLES"===i,s],["CLOSED-CAPTIONS"===i,p],["CLOSED-CAPTIONS"===i,!s],[c,"SUBTITLES"===i]),this.type=i,this.uri=s,this.groupId=n,this.language=r,this.assocLanguage=a,this.name=o,this.isDefault=l,this.autoselect=u,this.forced=c,this.instreamId=p,this.characteristics=f,this.channels=g}),p=u(function e(t){var i=t.uri,s=t.isIFrameOnly,n=t.bandwidth,r=t.averageBandwidth,a=t.score,o=t.codecs,l=t.resolution,u=t.frameRate,c=t.hdcpLevel,p=t.allowedCpc,f=t.videoRange,g=t.stableVariantId,m=t.audio,v=t.video,y=t.subtitles,T=t.closedCaptions,S=t.currentRenditions;d(this,e),h.PARAMCHECK(i,n),this.uri=i,this.isIFrameOnly=void 0!==s&&s,this.bandwidth=n,this.averageBandwidth=r,this.score=a,this.codecs=o,this.resolution=l,this.frameRate=u,this.hdcpLevel=c,this.allowedCpc=p,this.videoRange=f,this.stableVariantId=g,this.audio=void 0===m?[]:m,this.video=void 0===v?[]:v,this.subtitles=void 0===y?[]:y,this.closedCaptions=void 0===T?[]:T,this.currentRenditions=void 0===S?{audio:0,video:0,subtitles:0,closedCaptions:0}:S}),f=u(function e(t){var i=t.id,s=t.value,n=t.uri,r=t.language;d(this,e),h.PARAMCHECK(i,s||n),h.ASSERT("SessionData cannot have both value and uri, shoud be either.",!(s&&n)),this.id=i,this.value=s,this.uri=n,this.language=r}),g=u(function e(t){var i=t.method,s=t.uri,n=t.iv,r=t.format,a=t.formatVersion;d(this,e),h.PARAMCHECK(i),h.CONDITIONALPARAMCHECK(["NONE"!==i,s]),h.CONDITIONALASSERT(["NONE"===i,!(s||n||r||a)]),this.method=i,this.uri=s,this.iv=n,this.format=r,this.formatVersion=a}),m=u(function e(t){var i=t.hint,s=t.uri,n=t.mimeType,r=t.byterange;d(this,e),h.PARAMCHECK(s),this.hint=void 0!==i&&i,this.uri=s,this.mimeType=n,this.byterange=r}),v=u(function e(t){var i=t.id,s=t.classId,n=t.start,r=t.end,a=t.duration,o=t.plannedDuration,l=t.endOnNext,u=t.attributes;d(this,e),h.PARAMCHECK(i),h.CONDITIONALPARAMCHECK([!0===l,s]),h.CONDITIONALASSERT([r,n],[r,n<=r],[a,a>=0],[o,o>=0]),this.id=i,this.classId=s,this.start=n,this.end=r,this.duration=a,this.plannedDuration=o,this.endOnNext=l,this.attributes=void 0===u?{}:u}),y=u(function e(t){var i=t.type,s=t.duration,n=t.tagName,r=t.value;d(this,e),h.PARAMCHECK(i),h.CONDITIONALPARAMCHECK(["OUT"===i,s]),h.CONDITIONALPARAMCHECK(["RAW"===i,n]),this.type=i,this.duration=s,this.tagName=n,this.value=r}),T=u(function e(t){d(this,e),h.PARAMCHECK(t),this.type=t}),S=function(e){n(i,e);var t=a(i);function i(e){var s,n=e.isMasterPlaylist,r=e.uri,a=e.version,o=e.independentSegments,l=e.start,u=e.source;return d(this,i),s=t.call(this,"playlist"),h.PARAMCHECK(n),s.isMasterPlaylist=n,s.uri=r,s.version=a,s.independentSegments=void 0!==o&&o,s.start=l,s.source=u,s}return u(i)}(T),E=function(e){n(i,e);var t=a(i);function i(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,i),s.isMasterPlaylist=!0,e=t.call(this,s);var n=s.variants,r=s.currentVariant,a=s.sessionDataList,o=s.sessionKeyList;return e.variants=void 0===n?[]:n,e.currentVariant=r,e.sessionDataList=void 0===a?[]:a,e.sessionKeyList=void 0===o?[]:o,e}return u(i)}(S),b=function(e){n(i,e);var t=a(i);function i(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,i),s.isMasterPlaylist=!1,e=t.call(this,s);var n=s.targetDuration,r=s.mediaSequenceBase,a=s.discontinuitySequenceBase,o=s.endlist,l=s.playlistType,u=s.isIFrame,h=s.segments,c=s.prefetchSegments,p=s.lowLatencyCompatibility,f=s.partTargetDuration,g=s.renditionReports,m=s.skip,v=s.hash;return e.targetDuration=n,e.mediaSequenceBase=void 0===r?0:r,e.discontinuitySequenceBase=void 0===a?0:a,e.endlist=void 0!==o&&o,e.playlistType=l,e.isIFrame=u,e.segments=void 0===h?[]:h,e.prefetchSegments=void 0===c?[]:c,e.lowLatencyCompatibility=p,e.partTargetDuration=f,e.renditionReports=void 0===g?[]:g,e.skip=void 0===m?0:m,e.hash=v,e}return u(i)}(S);e.exports={Rendition:c,Variant:p,SessionData:f,Key:g,MediaInitializationSection:m,DateRange:v,SpliceInfo:y,Playlist:S,MasterPlaylist:E,MediaPlaylist:b,Segment:function(e){n(i,e);var t=a(i);function i(e){var s,n=e.uri,r=e.mimeType,a=e.data,o=e.duration,l=e.title,u=e.byterange,h=e.discontinuity,c=e.mediaSequenceNumber,p=e.discontinuitySequence,f=e.key,g=e.map,m=e.programDateTime,v=e.dateRange,y=e.markers,T=e.parts;return d(this,i),(s=t.call(this,"segment")).uri=n,s.mimeType=r,s.data=a,s.duration=o,s.title=l,s.byterange=u,s.discontinuity=h,s.mediaSequenceNumber=void 0===c?0:c,s.discontinuitySequence=void 0===p?0:p,s.key=f,s.map=g,s.programDateTime=m,s.dateRange=v,s.markers=void 0===y?[]:y,s.parts=void 0===T?[]:T,s}return u(i)}(T),PartialSegment:function(e){n(i,e);var t=a(i);function i(e){var s,n=e.hint,r=e.uri,a=e.duration,o=e.independent,l=e.byterange,u=e.gap;return d(this,i),s=t.call(this,"part"),h.PARAMCHECK(r),s.hint=void 0!==n&&n,s.uri=r,s.duration=a,s.independent=o,s.duration=a,s.byterange=l,s.gap=u,s}return u(i)}(T),PrefetchSegment:function(e){n(i,e);var t=a(i);function i(e){var s,n=e.uri,r=e.discontinuity,a=e.mediaSequenceNumber,o=e.discontinuitySequence,l=e.key;return d(this,i),s=t.call(this,"prefetch"),h.PARAMCHECK(n),s.uri=n,s.discontinuity=r,s.mediaSequenceNumber=void 0===a?0:a,s.discontinuitySequence=void 0===o?0:o,s.key=l,s}return u(i)}(T),RenditionReport:u(function e(t){var i=t.uri,s=t.lastMSN,n=t.lastPart;d(this,e),h.PARAMCHECK(i),this.uri=i,this.lastMSN=s,this.lastPart=n})}},771:e=>{function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,n,r,a,o=[],l=!0,u=!1;try{if(r=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=r.call(i)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){u=!0,n=e}
1finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(u)throw n}}return o}}(e,t)||n(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=n(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var s=0,r=function(){};return{s:r,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(l)throw a}}}}function n(e,t){if(e){if("string"==typeof e)return r(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}var a={};function o(e){if(a.strictMode)throw e;a.silent||console.error(e.message)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if("number"==typeof e)return e;var i=10===t?Number.parseFloat(e,t):Number.parseInt(e,t);return Number.isNaN(i)?0:i}e.exports={THROW:o,ASSERT:function(e){for(var s=arguments.length,n=Array(s>1?s-1:0),r=1;r<s;r++)n[r-1]=arguments[r];var a,l=i(n.entries());try{for(l.s();!(a=l.n()).done;){var u=t(a.value,2),d=u[0];u[1]||o(Error("".concat(e," : Failed at [").concat(d,"]")))}}catch(e){l.e(e)}finally{l.f()}},CONDITIONALASSERT:function(){for(var e=arguments.length,s=Array(e),n=0;n<e;n++)s[n]=arguments[n];var r,a=i(s.entries());try{for(a.s();!(r=a.n()).done;){var l=t(r.value,2),u=l[0],d=t(l[1],2),h=d[0],c=d[1];h&&(c||o(Error("Conditional Assert : Failed at [".concat(u,"]"))))}}catch(e){a.e(e)}finally{a.f()}},PARAMCHECK:function(){for(var e=arguments.length,s=Array(e),n=0;n<e;n++)s[n]=arguments[n];var r,a=i(s.entries());try{for(a.s();!(r=a.n()).done;){var l=t(r.value,2),u=l[0];void 0===l[1]&&o(Error("Param Check : Failed at [".concat(u,"]")))}}catch(e){a.e(e)}finally{a.f()}},CONDITIONALPARAMCHECK:function(){for(var e=arguments.length,s=Array(e),n=0;n<e;n++)s[n]=arguments[n];var r,a=i(s.entries());try{for(a.s();!(r=a.n()).done;){var l=t(r.value,2),u=l[0],d=t(l[1],2),h=d[0],c=d[1];h&&void 0===c&&o(Error("Conditional Param Check : Failed at [".concat(u,"]")))}}catch(e){a.e(e)}finally{a.f()}},INVALIDPLAYLIST:function(e){o(Error("Invalid Playlist : ".concat(e)))},toNumber:l,hexToByteSequence:function(e){(e.startsWith("0x")||e.startsWith("0X"))&&(e=e.slice(2));for(var t=[],i=0;i<e.length;i+=2)t.push(l(e.slice(i,i+2),16));return s.from(t)},byteSequenceToHex:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;i<=t&&o(Error("end must be larger than start : start=".concat(t,", end=").concat(i)));for(var s=[],n=t;n<i;n++)s.push("0".concat((255&e[n]).toString(16).toUpperCase()).slice(-2));return"0x".concat(s.join(""))},tryCatch:function(e,t){try{return e()}catch(e){return t(e)}},splitAt:function(e,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=-1,n=0,r=0;n<e.length;n++)if(e[n]===t){if(r++===i)return[e.slice(0,n),e.slice(n+1)];s=n}return -1!==s?[e.slice(0,s),e.slice(s+1)]:[e]},trim:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e&&(e=e.trim()," "===t||(e.startsWith(t)&&(e=e.slice(1)),e.endsWith(t)&&(e=e.slice(0,-1)))),e},splitByCommaWithPreservingQuotes:function(e){for(var t=[],i=!0,s=0,n=[],r=0;r<e.length;r++){var a=e[r];i&&","===a?(t.push(e.slice(s,r).trim()),s=r+1):'"'!==a&&"'"!==a||(i?(n.push(a),i=!1):a===n[n.length-1]?(n.pop(),i=!0):n.push(a))}return t.push(e.slice(s).trim()),t},camelify:function(e){var t,s=[],n=!1,r=i(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;"-"!==a&&"_"!==a?n?(s.push(a.toUpperCase()),n=!1):s.push(a.toLowerCase()):n=!0}}catch(e){r.e(e)}finally{r.f()}return s.join("")},formatDate:function(e){var t=e.getUTCFullYear(),i=("0"+(e.getUTCMonth()+1)).slice(-2),s=("0"+e.getUTCDate()).slice(-2),n=("0"+e.getUTCHours()).slice(-2),r=("0"+e.getUTCMinutes()).slice(-2),a=("0"+e.getUTCSeconds()).slice(-2),o=("00"+e.getUTCMilliseconds()).slice(-3);return"".concat(t,"-").concat(i,"-").concat(s,"T").concat(n,":").concat(r,":").concat(a,".").concat(o,"Z")},hasOwnProp:function(e,t){return Object.hasOwnProperty.call(e,t)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a=Object.assign(a,e)},getOptions:function(){return Object.assign({},a)}}}},t={},function i(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,i),r.exports}(851)})()},8932:e=>{e.exports={NO_RESPONSE:"NO_RESPONSE",EMPTY:"EMPTY_RESPONSE",WRONG:"WRONG_RESPONSE"}},9065:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>T});var s=i(108),n=i(1577),r=i(2784),a=i(7276),o=i(9907);class l{constructor(e,t,i,s,n){var r;this.response={},this._session="",this.sessionExpire=120,this.retries=0,this.isUsingLegacy=!1,this.options=e,this.npawPluginOptions=n,this.accountCode=t,this.coreStorage=i,this.browserStorage=s,this._fastDataHost=this.options.getFastDataHost();let a="true"===o.env.IS_STANDALONE;this.isUsingLegacy=a&&void 0!==(null==(r=null==n?void 0:n.legacyPlugin)?void 0:r.viewTransform),this._createConfigurationInterval()}init(){var e,t;if(this.options&&this.options.offline)return this.response.host="OFFLINE",this.response.code="OFFLINE",this.response.pingTime=60,this.response.beatTime=60,void(this._session=n.default.generateRandomString(15));if(this.isUsingLegacy)return;if(this.browserStorage&&this.browserStorage.isEnabled()&&(new Date).getTime()<1e3*(null!=(e=Number(this.browserStorage.getLocal("sessionExpire")))?e:this.sessionExpire)+(Number(this.coreStorage.getDataTime())||0)&&this.coreStorage.getStoredData())return void this.setData(null!=(t=this.coreStorage.getStoredData())?t:"");this.coreStorage.removeLocal("firstRequestTime"),this.coreStorage.removeLocal("lastRequestTime");let i=s.A.Service.DATA,o={system:this.accountCode,pluginVersion:T.getPluginVersion(),requestNumber:this.getRequestNumber()};this.loadConfiguration();try{a.default.notice(r.CoreTag,i+" "+o.system),"nicetest"===o.system&&a.default.error(r.CoreTag,"No accountCode has been set. Please set your accountCode inside plugin's options."),this.performRequestToFastData(i,o,this._receiveData.bind(this),this._failedData.bind(this))}catch(e){a.default.error(r.CoreTag,"Error doing get data request to FastData service.")}}updateOptions(e){this.options.updateOptions(e),this.options.offline&&(this.reset(),this.init())}getSessionExpireTime(){return this.sessionExpire}refreshSessionToken(){this._session="",this.browserStorage.removeStorages("data"),this.init()}loadConfiguration(){let e=s.A.Service.CONFIGURATION,t={system:this.accountCode,pluginVersion:T.getPluginVersion(),requestNumber:this.getRequestNumber()};this.performRequestToFastData(e,t,this._receiveConfiguration.bind(this),this._failedConfiguration.bind(this))}getSession(){var e,t;return this.isUsingLegacy?null==(t=null==(e=this.npawPluginOptions)?void 0:e.legacyPlugin)?void 0:t.viewTransform._session:this._session}setSession(e){this._session=e}setHost(e){this.response.host=e}getPingTime(){var e;return null!=(e=this.pingTime)?e:5}getBeatTime(){var e;return null!=(e=this.beatTime)?e:30}setData(e){try{let t=this.pingTime,i=JSON.parse(e);this.options["parse.fdsResponseHost"]&&(e=e.replace(i.q.h,this.options["parse.fdsResponseHost"](i.q.h)),i=JSON.parse(e)),this.response={msg:e,host:i.q.h,co
1de:i.q.c,pingTime:i.q.pt||5,beatTime:i.q.i&&i.q.i.bt||30,sessionExpire:i.q.st&&i.q.st||120},this._session=this.response.code,this.browserStorage.setLocal("sessionExpire",this.response.sessionExpire),this.browserStorage.setStorages("accCode",this.accountCode),this.browserStorage.setStorages("session",this.response.code),this.coreStorage.setStoredData(this.response.msg),this.coreStorage.setDataTime((new Date).getTime().toString()),this.pingTime=this.response.pingTime,this.beatTime=this.response.beatTime,this.sessionExpire=this.response.sessionExpire,"number"==typeof this.pingTime&&this.pingTime>0&&this.pingTime!==t&&T.getInstance().throwEvent(r.CoreEvents.FAST_DATA_READY)}catch(e){a.default.error(r.CoreTag,"Fastdata response is invalid.")}}setConfiguration(e){try{this.response.configurationOptions=JSON.parse(e)}catch(e){a.default.error(r.CoreTag,"Configuration response is invalid.")}}getFastDataResponse(){return this.response}getAccountCode(){return this.accountCode}getRequestNumber(){return Math.random()}reset(){this.coreStorage.removeStoredData(),this.coreStorage.removeSession(),this.browserStorage.removeLocal("sessionExpire"),this.browserStorage.removeStorages("accCode"),this.browserStorage.removeStorages("session")}performRequestToFastData(e,t,i,s){if(this.options.offline)return;t.timemark=(new Date).getTime(),t.outputFormat="json";let r=this,a=new XMLHttpRequest;a.open("GET",`https://${this._fastDataHost}${e}${n.default.toQueryString(t)}`),a.onload=function(e){r.options.offline||(a.status>=200&&a.status<400?i(this,e):s(this,e))},a.onerror=function(e){s(this,e)},a.send()}_createConfigurationInterval(){this.isUsingLegacy||!this.options.isRefreshLMAConfigurationEnabled()||this._refreshInterval||(this._refreshInterval=setInterval(this.loadConfiguration.bind(this),1e3*this.options.refreshLMAConfigurationSeconds()))}_receiveData(e,t){this.retries=0,this.setData(e.response)}_receiveConfiguration(e,t){this.setConfiguration(e.response)}_failedData(e,t){a.default.error(r.CoreTag,"Fastdata request has failed."),++this.retries<5?setTimeout(this.init.bind(this),5e3):setTimeout(this.init.bind(this),6e4)}_failedConfiguration(e,t){a.default.error(r.CoreTag,"Configuration request has failed.")}}var u=i(2602);class d{constructor(){this.offline=!1,this.host="lma.npaw.com",this.disableCookies=!0,this.forceCookies=!1,this.disableStorage=!1,this.authToken=void 0,this.authType="Bearer",this["app.https"]=!0,this["lma.refresh.configuration.enabled"]=!1,this["lma.refresh.configuration.seconds"]=300,this["parse.fdsResponseHost"]=null}updateOptions(e){let t=new u.A;Object.keys(this).forEach(i=>{null==e[i]||Object.keys(t).includes(i)||(this[i]=e[i])})}setNpawPluginOptions(e){Object.keys(this).forEach(t=>{null!=e[t]&&(this[t]=e[t])})}isRefreshLMAConfigurationEnabled(){return this["lma.refresh.configuration.enabled"]}refreshLMAConfigurationSeconds(){return this["lma.refresh.configuration.seconds"]}getHost(){return this.host}getFastDataHost(){return this.host}}class h{constructor(e,t,i,s,n,a,o,l){this.method=r.Method.GET,this.headers={},this.xhr=new XMLHttpRequest,this.retries=0,this.hadBody=!1,this.isHttps=e,this.host=t,this.service=i,this.method=s,this.params=n,this.expirationManager=l,this.onSuccessCallback=a,this.onFailCallback=o}performHttps(){return this.isHttps}getHost(){return this.host}getService(){return this.service}getMethod(){return this.method}getParams(){return this.params}getBody(){return this.body}setBody(e){this.body=e}addHeader(e,t){this.headers[e]=t}getExpirationManager(){return this.expirationManager}getRetries(){return this.retries}send(e,t){if(this.params.timemark=Date.now(),this.params.sessionRoot=T.getInstance().getFastDataSessionToken(),this.params.system=T.getInstance().getFastDataService().getAccountCode(),this.body&&(this.hadBody=!0),this.method===r.Method.POST&&!this.body){let e={};e.timemark=this.params.timemark,this.params.code&&(e.code=this.params.code),e.sessionRoot=this.params.sessionRoot,e.system=this.params.system,e.sessionId=this.params.sessionId&&""!=this.params.sessionId?this.params.sessionId:T.getInstance().getFastDataSessionToken(),this.body=JSON.stringify(this.params),this.params=e}try{this.getUrl()}catch(e){}for(let i in this.xhr.open(this.method,this.getUrl()),this.xhr.onreadystatechange=()=>{4===this.xhr.readyState&&this.xhr.status>=200&&this.xhr.status<400?(t&&t(),this.expirationManager&&this.expirationManager.onRequestSent(),this.onSuccessCallback&&this.onSuccessCallback()):4===this.xhr.readyState&&(this.retries++,!this.hadBody&&this.method===r.Method.POST&&this.body&&(this.params=JSON.parse(this.body),this.body=void 0),e(),this.onFailCallback&&this.onFailCallback())},this.headers)this.xhr.setRequestHeader(i,this.headers[i]);this.xhr.send(this.body)}asyncSend(){var e,t,i,s;return e=this,t=void 0,s=function*(){return new Promise((e,t)=>
1{this.send(t,e)})},new(i=void 0,i=Promise)(function(n,r){function a(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((s=s.apply(e,t||[])).next())})}toLocalStorageString(){let e={},t=this.service.split("/");for(let i in e.request=t[t.length-1],e.unixtime=this.params.timemark,this.params)void 0!==this.params[i]&&("sessionId"===i||"sessionRoot"===i?e[i]="":"code"===i?e[i]="CODE_PLACEHOLDER":"object"==typeof this.params[i]?e[i]=JSON.stringify(this.params[i]):e[i]=this.params[i]);return JSON.stringify(e)}getUrl(){return`${this.isHttps?"https":"http"}://${this.host}${this.service}${n.default.toQueryString(this.params)}`}}var c=i(5438);let p=[s.A.Service.START,s.A.Service.INIT,s.A.Service.JOIN,s.A.Service.STOP,s.A.Service.ERROR,s.A.Service.AD_ERROR];class f{constructor(e,t,i){this.freshRequests=[],this.retryRequests=[],this.retryInterval=null,this.retryAttemptCount=0,this.baseRetryDelay=5e3,this.maxRetryAttempts=25,this.fixedRetryAttempts=10,this.databaseSendingInterval=12e4,this.isDestroyed=!1,this.servicesToWait=[s.A.Service.INIT,s.A.Service.START],this.sentStart=!1,this.options=e,this.coreStorage=t,this.fastDataService=i}destroy(){this.freshRequests=[],this.retryRequests=[],this.isDestroyed=!0,this._clearRetryInterval(),a.default.warn(r.CoreTag,"NQSAnalyticsService destroyed"),this.timeWhenLastSentFromDatabase=(new Date).getTime()}send(e,t,i,s,n,o){var l;if(this.isDestroyed)return;let u=new h(null==(l=this.options["app.https"])||l,this.coreStorage.getHost(),e,t,null!=i?i:{},s,n,o);void 0!==this.options.authToken&&void 0!==this.options.authType&&e!==c.xC.CDN&&(a.default.verbose(r.AnalyticsTag,"Adding Authorization header with type "+this.options.authType),u.addHeader("Authorization",this.options.authType+" "+this.options.authToken)),this.freshRequests.push(u),this._processRequests()}getTimeOfLastSentRequest(){return this.timeOfLastSentRequest}wasStartSent(){return this.sentStart}_scheduleRetryProcessing(){if(this.retryInterval||0===this.retryRequests.length||this.isDestroyed)return;if(this.retryAttemptCount>=this.maxRetryAttempts)return a.default.warn(r.CoreTag,`Max retry attempts (${this.maxRetryAttempts}) reached before scheduling`),void this._flushRetryQueue();let e=this._calculateRetryDelay();this.retryInterval=setTimeout(()=>{if(this.retryInterval=null,this.isDestroyed)this._clearRetryInterval();else{if(this.retryAttemptCount++,this.retryAttemptCount>=this.maxRetryAttempts)return a.default.warn(r.CoreTag,`Max retry attempts (${this.maxRetryAttempts}) reached`),void this._flushRetryQueue();this._processRequests().catch(e=>{a.default.warn(r.CoreTag,"Retry processing failed",e)})}},e),a.default.verbose(r.CoreTag,`Retry scheduled (attempt ${this.retryAttemptCount+1}/${this.maxRetryAttempts}, delay ${e}ms) with ${this.retryRequests.length} pending requests`)}_clearRetryInterval(){this.retryInterval&&(clearTimeout(this.retryInterval),this.retryInterval=null,this.retryAttemptCount=0,a.default.verbose(r.CoreTag,"Retry interval cleared"))}_calculateRetryDelay(){if(this.retryAttemptCount<this.fixedRetryAttempts)return this.baseRetryDelay;let e=this.retryAttemptCount-this.fixedRetryAttempts;return Math.min(this.baseRetryDelay*Math.pow(2,e),12e4)}_flushRetryQueue(){0!==this.retryRequests.length&&(a.default.warn(r.CoreTag,`Max retry attempts (${this.maxRetryAttempts}) reached. Flushing ${this.retryRequests.length} failed requests:`,...this.retryRequests.map(e=>e.getService())),this.retryRequests.forEach(e=>{var t;try{null==(t=e.onFailCallback)||t.call(e)}catch(e){a.default.verbose(r.CoreTag,"Error calling fail callback:",e)}}),this.retryRequests=[],this.retryInterval&&(clearTimeout(this.retryInterval),this.retryInterval=null),this.retryAttemptCount=0,a.default.verbose(r.CoreTag,"Retry queue flushed and state reset"))}_processRequests(){var e,t,i,s;return e=this,t=void 0,s=function*(){if(this.isDestroyed)return;let e=this.retryRequests.splice(0,this.retryRequests.length),t=this.freshRequests.splice(0,this.freshRequests.length);e.length>0&&a.default.verbose(r.CoreTag,"Retrying to send these requests:",...e.map(e=>e.getService()));let i=[],s=!1;for(let t of e)if(s)i.push(t);else try{yield t.asyncSend(),this.timeOfLastSentRequest=(new Date).getTime(),this.coreStorage.setDataTime(this.timeOfLastSentRequest.toString())}catch(e){s=!0,i.push(t)}for(let e of t)try{yield e.asyncSend(),this.servicesToWait.includes(e.getService())&&(this.sentStart=!0),this.timeOfLastSentRequest=(new Date).getTime(),this.coreStorage.setDataTime(this.timeOfLastSentRequest.toString())}catch(t){p.includes(e.getService())&&i.push(e)}this.retryRequests.push(...i.slice(-25)),this.retryRequests.length>0?this._scheduleRetryProcessing():this._clearRetryInterval(),this.retryRequests.length&&this.retryRequests.sort((e,t)=>
1{var i,s,n,r;return(null!=(s=null==(i=e.getParams())?void 0:i.timemark)?s:0)-(null!=(r=null==(n=t.getParams())?void 0:n.timemark)?r:0)})},new(i=void 0,i=Promise)(function(n,r){function a(e){try{l(s.next(e))}catch(e){r(e)}}function o(e){try{l(s.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,o)}l((s=s.apply(e,t||[])).next())})}}class g{constructor(e,t,i){this.prefix="npaw",this.disableCookies=e,this.forceCookies=t,this.disabled=i}updateStorageOptions(e,t,i){this.disableCookies=e,this.forceCookies=t,this.disabled=i}isEnabled(){if(this.disabled)return!1;let e=!0;if(!this.forceCookies)try{localStorage.setItem(this.prefix+".test","true"),localStorage.removeItem(this.prefix+".test")}catch(t){e=!1}return e}setLocal(e,t){if(!this.disabled)try{!this.forceCookies&&("undefined"!=typeof localStorage&&localStorage||this.disableCookies)?"undefined"!=typeof localStorage&&localStorage&&localStorage.setItem(this.prefix+"."+e,t):this._setCookie(this.prefix+".local."+e,t)}catch(e){a.default.debug(r.CoreTag,"App Analytics needs localStorage or cookies, not supported by your browser.")}}getLocal(e){if(!this.disabled)return this._localGetRemove("getItem","_getCookie",e)}removeLocal(e){if(!this.disabled)return this._localGetRemove("removeItem","_removeCookie",e)}_localGetRemove(e,t,i){try{if(this.forceCookies||!("undefined"!=typeof localStorage&&localStorage||this.disableCookies))return this[t](this.prefix+".local."+i);if("undefined"!=typeof localStorage&&localStorage)return localStorage[e](this.prefix+"."+i)}catch(e){a.default.debug(r.CoreTag,"App Analytics needs localStorage or cookies, not supported by your browser.")}}setSession(e,t){if(!this.disabled)try{!this.forceCookies&&("undefined"!=typeof sessionStorage&&sessionStorage||this.disableCookies)?"undefined"!=typeof sessionStorage&&sessionStorage&&sessionStorage.setItem(this.prefix+"."+e,t):this._setCookie(this.prefix+".session."+e,t)}catch(e){a.default.debug(r.CoreTag,"App Analytics needs sessionStorage or cookies, not supported by your browser.")}}getSession(e){if(!this.disabled)return this._sessionGetRemove("getItem","_getCookie",e)}removeSession(e){if(!this.disabled)return this._sessionGetRemove("removeItem","_removeCookie",e)}_sessionGetRemove(e,t,i){try{if(this.forceCookies||!("undefined"!=typeof sessionStorage&&sessionStorage||this.disableCookies))return this[t](this.prefix+".session."+i);if("undefined"!=typeof sessionStorage&&sessionStorage)return sessionStorage[e](this.prefix+"."+i)}catch(e){a.default.debug(r.CoreTag,"App Analytics needs sessionStorage or cookies, not supported by your browser.")}}getStorages(e){if(!this.disabled)return this.getSession(e)||this.getLocal(e)}setStorages(e,t){this.disabled||(this.setSession(e,t),this.setLocal(e,t))}removeStorages(e){this.disabled||(this.removeSession(e),this.removeLocal(e))}_setCookie(e,t){if("undefined"!=typeof document){let i=";";"undefined"!=typeof location&&(i+="domain="+location.host.split(".").reverse().splice(0,2).reverse().join(".")+";path=/;"),document.cookie=e+"="+t+i}}_getCookie(e){if("undefined"!=typeof document){let t=e+"=",i=decodeURIComponent(document.cookie).split(";");for(let e=0;e<i.length;e++){let s=i[e];for(;" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(t))return s.substring(t.length,s.length)}}return null}_removeCookie(e){this._setCookie(e,"")}}class m{constructor(e,t){this.options=e,this.browserStorage=t}isEnabled(){return this.browserStorage.isEnabled()}setLocal(e,t){this.browserStorage.setLocal(e,t)}getLocal(e){return this.browserStorage.getLocal(e)}removeLocal(e){this.browserStorage.removeLocal(e)}getHost(){let e=this.options.getHost(),t=T.getInstance().getFastDataService();return!T.getInstance().isUsingLegacy()&&t&&t.getFastDataResponse()&&t.getFastDataResponse().host?e=t.getFastDataResponse().host:T.getInstance().isUsingLegacy()&&T.getInstance().getLegacyFastDataHost()&&(e=T.getInstance().getLegacyFastDataHost()),e}getSession(){let e=this.browserStorage.getStorages("session");if("undefined"===e&&(e=void 0),!e){let t=this.getStoredData();if(t)try{e=JSON.parse(t).q.c}catch(e){}}return e}getStorageHost(){let e=null,t=this.getStoredData();if(t)try{e=JSON.parse(t).q.h}catch(e){}return e}getLocalAccountCode(){return this.browserStorage.getLocal("accCode")}getSessionAccountCode(){return this.browserStorage.getSession("accCode")}
1getAppAnalyticsRegisteredProperties(){return this.browserStorage.getLocal("appAnalyticsRegisteredProperties")}setAppAnalyticsRegisteredProperties(e){this.browserStorage.setLocal("appAnalyticsRegisteredProperties",e)}removeAppAnalyticsRegisteredProperties(){this.browserStorage.removeLocal("appAnalyticsRegisteredProperties")}getDataTime(){return this.browserStorage.getStorages("dataTime")}setDataTime(e){this.browserStorage.setStorages("dataTime",e)}getLastActive(){return void 0===this.browserStorage.getLocal("lastactive")?0:Number(this.browserStorage.getLocal("lastactive"))}setLastActive(e){this.browserStorage.setLocal("lastactive",e)}removeLastActive(){this.browserStorage.removeLocal("lastactive")}setSession(e){this.browserStorage.setStorages("session",e)}removeSession(){this.browserStorage.removeStorages("session")}getSessionExpire(){return 1e3*Number(this.browserStorage.getLocal("sessionExpire"))}getStoredData(){return this.browserStorage.getStorages("data")}setStoredData(e){this.browserStorage.setStorages("data",e)}removeStoredData(){this.browserStorage.removeStorages("data")}getStorages(e){var t,i,s,n;return t=this,i=void 0,n=function*(){return this.browserStorage.getStorages(e)},new(s=void 0,s=Promise)(function(e,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function o(e){try{l(n.throw(e))}catch(e){r(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof s?i:new s(function(e){e(i)})).then(a,o)}l((n=n.apply(t,i||[])).next())})}}var v=i(61),y=i(9907);class T{static getInstance(e,t,i){return this._instance&&!i||(this._instance=new T(e||"",t)),this._instance}constructor(e,t){var i,s;if(this.options=new d,this.sendingOffline=!1,this.isDestroyed=!1,this.usingLegacy=!1,this.commonVariables=new Map,this.registeredPeriodicPushes=new Map,this.coreEventListeners=[],this.pluginOptions=t,this.pluginOptions){this.pluginOptions.host&&this.options.setNpawPluginOptions({host:this.pluginOptions.host});let e="true"===y.env.IS_STANDALONE;this.usingLegacy=e&&void 0!==(null==(s=null==(i=this.pluginOptions)?void 0:i.legacyPlugin)?void 0:s.viewTransform)}this.browserStorage=new g(this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.coreStorage=new m(this.options,this.browserStorage),this.fastDataService=new l(this.options,e,this.coreStorage,this.browserStorage,this.pluginOptions),this.fastDataService.init(),this.nqsService=new f(this.options,this.coreStorage,this.fastDataService),this.deleteOldOfflineEntries()}destroy(){this.unregisterAllPeriodicPushes(),this.commonVariables.clear(),this.nqsService.destroy(),this.isDestroyed=!0}static getPluginVersion(){let e=y.env.NWF||"";return`7.3.19${"true"===y.env.IS_STANDALONE?"-balancer":""}${e}-js-sdk`}isUsingLegacy(){return this.usingLegacy}wasStartSent(){var e,t,i,s,n,r;return this.isUsingLegacy()?(null==(t=null==(e=this.pluginOptions)?void 0:e.legacyPlugin)?void 0:t._comm)&&(null==(s=null==(i=this.pluginOptions)?void 0:i.legacyPlugin)?void 0:s._comm.transforms)?!(null==(r=null==(n=this.pluginOptions)?void 0:n.legacyPlugin)?void 0:r._comm.transforms[0]._isBusy):void 0:this.nqsService.wasStartSent()}setLegacyPlugin(e){var t,i;if(this.pluginOptions){this.pluginOptions.legacyPlugin=e;let s="true"===y.env.IS_STANDALONE;this.usingLegacy=s&&void 0!==(null==(i=null==(t=this.pluginOptions)?void 0:t.legacyPlugin)?void 0:i.viewTransform)}}setActiveSwitchingOnLegacy(e){e&&this.pluginOptions&&this.pluginOptions.legacyPlugin&&this.pluginOptions.legacyPlugin.options&&(this.pluginOptions.legacyPlugin.options["content.cdn"]="ACTVSWIT")}getViewCode(){var e;return null==(e=this.pluginOptions)?void 0:e.legacyPlugin.viewTransform.getViewCode()}getLegacyFastDataHost(){var e,t,i,s;let n=null==(s=null==(i=null==(t=null==(e=this.pluginOptions)?void 0:e.legacyPlugin)?void 0:t.viewTransform)?void 0:i.response)?void 0:s.host;return"string"!=typeof n?n:n.replace(/^https?:\/\//i,"")}setOptions(e){this.options.updateOptions(e),this.browserStorage.updateStorageOptions(this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.fastDataService.updateOptions(e)}getOptions(){return this.options}getCoreStorage(){return this.coreStorage}registerCommonVariable(e,t,i){var s,n;this.commonVariables.has(e)?null==(s=this.commonVariables.get(e))||s.set(t,i):(this.commonVariables.set(e,new Map),null==(n=this.commonVariables.get(e))||n.set(t,i))}unregisterCommonVariable(e,t){var i;null==(i=this.commonVariables.get(e))||i.delete(t)}getCommonVariable(e,t){var i;return null==(i=this.commonVariables.get(e))?void 0:i.get(t)}getFastDataService(){return this.fastDataService}getFastDataSessionToken(){return this.fastDataService.getSession()}getFastDataSessionHost(){return this.coreStorage.getHost()}refreshSessionToken(){return this.usingLegacy?void 0:this.fastDataService.refreshSessionToken()}isSessionTokenExpired(){var e;let t=(new Date).getTime();return!this.usingLegacy&&t-(null!=(e=this.nqsService.getTimeOfLastSentRequest())?e:t)>1e3*this.fastDataService.getSessionExpireTime()}pushData(e,t,i,s,n,r){this.handleDataToSend(e,t,i,s,n,r)}pushPeriodicDataFromCallback(e,t,i,s,n,r,a,o,l){let u=setInterval(()=>{let t=r();t&&this.handleDataToSend(e,i,n,t,a,o,l)},s<1e3?1e3:s);
1this.registeredPeriodicPushes.has(t)&&clearInterval(this.registeredPeriodicPushes.get(t)),this.registeredPeriodicPushes.set(t,u)}unregisterPeriodicPush(e){clearInterval(this.registeredPeriodicPushes.get(e)),this.registeredPeriodicPushes.delete(e)}unregisterAllPeriodicPushes(){if(0!==this.registeredPeriodicPushes.size){for(let e of(a.default.debug(r.CoreTag,`Unregistering ${this.registeredPeriodicPushes.size} periodic pushes`),Array.from(this.registeredPeriodicPushes.keys())))clearInterval(this.registeredPeriodicPushes.get(e)),this.registeredPeriodicPushes.delete(e);a.default.debug(r.CoreTag,"Finished unregistering all pushes")}}deleteOldOfflineEntries(){var e,t,i,s;for(let n of null!=(t=null==(e=this.coreStorage.getLocal("offlineViews"))?void 0:e.split(","))?t:[]){let e=null!=(s=null==(i=this.coreStorage.getLocal("offlineViews."+n))?void 0:i.split(","))?s:[];e.length>0&&Date.now()-JSON.parse("["+e+"]")[0].timemark>2592e6&&this.deleteViewDataFromLocalStorage(n)}}sendOfflineEvents(){var e,t,i,n,o,l;return i=this,n=void 0,l=function*(){if(this.options.offline)return void a.default.notice(r.AnalyticsTag,"Unable to send offline events because offline option is enabled");if(this.sendingOffline)return;this.sendingOffline=!0;let i=15,n=!1;for(;!n&&i-- >0;)""===this.getFastDataSessionToken()?yield new Promise(e=>setTimeout(e,100)):n=!0;if(i<1)return;let o=(null!=(t=null==(e=this.coreStorage.getLocal("offlineViews"))?void 0:e.split(","))?t:[]).map(e=>new Promise((t,i)=>{var n;let a=null!=(n=this.coreStorage.getLocal("offlineViews."+e))?n:"";if((a=a.replace(/CODE_PLACEHOLDER/g,T.getInstance().getFastDataSessionToken()+"_"+e.split("_")[1])).length>0){let i=new h(!0,this.coreStorage.getHost(),s.A.Service.OFFLINE_EVENTS,r.Method.POST,{code:T.getInstance().getFastDataSessionToken()+"_"+e.split("_")[1]},()=>{this.deleteViewDataFromLocalStorage(e),t()},()=>t());i.setBody("["+a+"]"),i.send(function(){})}}));yield Promise.all(o).finally(()=>{this.sendingOffline=!1})},new(o=void 0,o=Promise)(function(e,t){function s(e){try{a(l.next(e))}catch(e){t(e)}}function r(e){try{a(l.throw(e))}catch(e){t(e)}}function a(t){var i;t.done?e(t.value):((i=t.value)instanceof o?i:new o(function(e){e(i)})).then(s,r)}a((l=l.apply(i,n||[])).next())})}deleteViewDataFromLocalStorage(e){var t,i;this.coreStorage.removeLocal("offlineViews."+e);let s=null!=(i=null==(t=this.coreStorage.getLocal("offlineViews"))?void 0:t.split(","))?i:[],n=s.indexOf(e);-1!=n&&s.splice(n,1),this.coreStorage.setLocal("offlineViews",s.toString())}handleDataToSend(e,t,i,n,r,a,o){if(!this.isDestroyed)switch(e){case v.default.Consumer.NQS:this.nqsService.send(t,i,n,r,a,o);break;case v.default.Consumer.PERSISTENT:if(void 0!==r&&r(),t===s.A.Service.VIDEO_PLUGIN_LOGS||t===s.A.Service.INIT)break;n.timemark=Date.now();let l=new h(this.options["app.https"],"",t,i,n,r,a),u=this.coreStorage.getLocal("offlineViews");if(u){let e=u.split(",");e.includes(n.code)||(e.push(n.code),this.coreStorage.setLocal("offlineViews",e.toString()))}else this.coreStorage.setLocal("offlineViews",n.code);let d=this.coreStorage.getLocal("offlineViews."+n.code);if(d){let e=d.split(",");e.push(l.toLocalStorageString()),this.coreStorage.setLocal("offlineViews."+n.code,e.toString())}else this.coreStorage.setLocal("offlineViews."+n.code,l.toLocalStorageString());break;case v.default.Consumer.BLACK_HOLE:void 0!==r&&r()}}subscribeListener(e){this.coreEventListeners.push(e)}throwEvent(e){if(!this.isDestroyed)for(let t of this.coreEventListeners)t(e)}}},9318:(e,t)=>{t.read=function(e,t,i,s,n){var r,a,o=8*n-s-1,l=(1<<o)-1,u=l>>1,d=-7,h=i?n-1:0,c=i?-1:1,p=e[t+h];for(h+=c,r=p&(1<<-d)-1,p>>=-d,d+=o;d>0;r=256*r+e[t+h],h+=c,d-=8);for(a=r&(1<<-d)-1,r>>=-d,d+=s;d>0;a=256*a+e[t+h],h+=c,d-=8);if(0===r)r=1-u;else{if(r===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,s),r-=u}return(p?-1:1)*a*Math.pow(2,r-s)},t.write=function(e,t,i,s,n,r){var a,o,l,u=8*r-n-1,d=(1<<u)-1,h=d>>1,c=5960464477539062e-23*(23===n),p=s?0:r-1,f=s?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+h>=1?c/l:c*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=d?(o=0,a=d):a+h>=1?(o=(t*l-1)*Math.pow(2,n),a+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[i+p]=255&o,p+=f,o/=256,n-=8);for(a=a<<n|o,u+=n;u>0;e[i+p]=255&a,p+=f,a/=256,u-=8);e[i+p-f]|=128*g}},9393:(e,t,i)=>{var s=i(7086),n=i(7680);e.exports={getPosition:function(){return null},getGivenBreaks:function(){return null},getExpectedBreaks:function(){return null},getExpectedPattern:function(){return null},getBreaksTime:function(){return null},getGivenAds:function(){return null},getExpectedAds:function(){return null},getIsVisible:function(){return!0},getAudioEnabled:function(){return null},getIsSkippable:function(){return null},getIsFullscreen:function(){return null},getCampaign:function(){return null},getCreativeId:function(){return null},getProvider:function(){return null},getAdInsertionType:function(){return null},fireClick:function(e){"string"==typeof e&&(e={url:e}
1),this.emit(s.Event.CLICK,{params:e})},fireQuartile:function(e){this.flags.isStarted&&"number"==typeof e&&e>this.flags.lastQuartileSent&&e<4&&(this.flags.lastQuartileSent++,this.emit(s.Event.QUARTILE,{params:{quartile:e}}))},startChronoView:function(){if(this.getIsVisible()&&this.plugin.backgroundDetector&&!this.plugin.backgroundDetector.isInBackground){var e=this.chronos.viewedMax;0!==e.length&&0===e[e.length-1].stopTime||(e.push(new n),e[e.length-1].start())}},stopChronoView:function(){var e=this.chronos.viewedMax;e[0]&&e.length>0&&0===e[e.length-1].stopTime&&e[e.length-1].stop()},fireManifest:function(e,t){var i={params:e};"string"==typeof e&&(i={params:{errorType:e,errorMessage:t}}),this.emit(s.Event.MANIFEST,i)},fireSkip:function(e){void 0===e&&(e={}),e.skipped=!0,this.fireStop(e)},fireBreakStart:function(e){this.fireAdBreakStart(e)},fireBreakStop:function(e){this.fireAdBreakStop(e)},fireAdBreakStart:function(e){this.emit(s.Event.PODSTART,{params:e})},fireAdBreakStop:function(e){this.emit(s.Event.PODSTOP,{params:e})}}},9474:e=>{var t=function(e){var i,s,n=(e=e||window).document,r=function(t){var i=!1;if(t.getBoundingClientRect){var s=t.getBoundingClientRect();(i={top:Math.max(s.top,0),left:Math.max(s.left,0),bottom:Math.min(s.bottom,e.innerHeight||n.documentElement.clientHeight),right:Math.min(s.right,e.innerWidth||n.documentElement.clientWidth)}).bottom<=i.top||i.right<=i.left?i=!1:i.area=(i.bottom-i.top)*(i.right-i.left)}return i},a=function(e,t){if(t){var i=r(e);i&&o.push({url:t,area:i.area,rect:i})}},o=[],l=[];try{var u=e.performance.timing.navigationStart;!function(){for(var i=n.getElementsByTagName("*"),s=/url\(.*(http.*)\)/gi,l=0;l<i.length;l++){var u=i[l],d=e.getComputedStyle(u);if("IMG"===u.tagName&&a(u,u.src),d["background-image"]){s.lastIndex=0;var h=s.exec(d["background-image"]);h&&h.length>1&&a(u,h[1].replace('"',""))}if("IFRAME"===u.tagName)try{var c=r(u);if(c){var p=t(u.contentWindow);p&&o.push({tm:p,area:c.area,rect:c})}}catch(e){}}}(),function(){for(var t={},i=e.performance.getEntriesByType("resource"),s=0;s<i.length;s++)t[i[s].name]=i[s].responseEnd;for(var n=0;n<o.length;n++)"tm"in o[n]||(o[n].tm=void 0!==t[o[n].url]?t[o[n].url]:0)}(),function(){"msFirstPaint"in e.performance.timing&&(i=e.performance.timing.msFirstPaint-u);for(var t=e.performance.getEntriesByType("paint"),s=0;s<t.length;s++)"first-paint"===t[s].name&&(i=t[s].startTime);if(void 0===i||i<0||i>12e4){i=e.performance.timing.responseStart-u;for(var r={},a=n.getElementsByTagName("head")[0].children,o=0;o<a.length;o++){var l=a[o];"SCRIPT"===l.tagName&&l.src&&!l.async&&(r[l.src]=!0),"LINK"===l.tagName&&"stylesheet"===l.rel&&l.href&&(r[l.href]=!0)}for(var d=e.performance.getEntriesByType("resource"),h=!1,c=0;c<d.length;c++)if(h||!r[d[c].name]||"script"!==d[c].initiatorType&&"link"!==d[c].initiatorType)h=!0;else{var p=d[c].responseEnd;(void 0===i||p>i)&&(i=p)}}i=Math.max(i,0)}(),function(){for(var t={0:0},s=0,r=0;r<o.length;r++){var a=i;"tm"in o[r]&&o[r].tm>i&&(a=o[r].tm),void 0===t[a]&&(t[a]=0),t[a]+=o[r].area,s+=o[r].area}var u=Math.max(n.documentElement.clientWidth,e.innerWidth||0)*Math.max(n.documentElement.clientHeight,e.innerHeight||0);if(u>0&&(u=.1*Math.max(u-s,0),void 0===t[i]&&(t[i]=0),t[i]+=u,s+=u),s){for(var d in t)t.hasOwnProperty(d)&&l.push({tm:d,area:t[d]});l.sort(function(e,t){return e.tm-t.tm});for(var h=0,c=0;c<l.length;c++)h+=l[c].area,l[c].progress=h/s}}(),function(){if(l.length){s=0;for(var e=0,t=0,n=0;n<l.length;n++){var r=l[n].tm-e;r>0&&t<1&&(s+=(1-t)*r),e=l[n].tm,t=l[n].progress}}else s=i}()}catch(e){}return s};e.exports=t},9516:(e,t,i)=>{let{default:s}=i(7276);var n=i(5292),r=i(1516);let{AnalyticsTag:a}=i(2784);e.exports={registerAdapter:function(e,t,i,r){if(!t)return void s.error(a,"Register Adapter needs an adapter to initialize");if(i=i||{},r=r||"default",this.videos.existsVideo(r))i=i||{},this.videos.getVideo(r).mergeOptions(i),this.setAdapter(new n(r,this.videos.getVideo(r),this,this.adapterTemplates,e,t),r);else{var o=this._createVideoSpace(r,i),l=new n(r,o,this,this.adapterTemplates,e,t);this.setAdapter(l,r)}let u=i["content.resource"];!u&&this.videos.existsAdapter(r)&&((u=this.videos.getAdapter(r).getURLToParse())||(u=this.videos.getAdapter(r).getResource())),this.resourceTransform.init(u)},_createVideoSpace:function(e,t){var i=new r(e,this,this.options,null,null);return this.getNextViewIndex(i),t=t||{},i.setVideoOptions(t),this.videos.setVideo(i),i}
1,setAdapter:function(e,t){if(t=t||"default",this.browserLoadTimes&&this.browserLoadTimes.setPlayerSetupTime(),e.isSetAdapter())s.warn(a,"Adapters can only be added to a single plugin");else{var i=this.getAdapter(t);i&&(e.flags=i.flags,e.chronos=i.chronos,e.fireEventsStruct=i.fireEventsStruct),this.removeAdapter(t),this.videos.setAdapter(e,t)}},getAdapter:function(e){return e=e||"default",this.videos.getAdapter(e)},removeAdapter:function(e){e=e||"default",this.videos.existsVideo(e)&&this.videos.removeAdapter(this.contentAdapterListeners,e)},getNextViewIndex:function(e){e.nextView();let t=!0;for(;t;){let i=!1;for(let t of this.videos.getVideoKeys().filter(t=>t!==e.getVideoKey()))if(e.getViewCode()===this.videos.getVideo(t).getViewCode()){i=!0;break}i&&e.nextView(),t=i}}}},9600:e=>{var t=function(){};e.exports=function(e){if(arguments.length>1)throw Error("Second argument not supported");if(null===e)throw Error("Cannot set a null [[Prototype]]");if("object"!=typeof e)throw TypeError("Argument must be an object");return t.prototype=e,new t}},9637:e=>{e.exports={GET:"GET",POST:"POST"}},9731:function(e){var t,i,s,n,r;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,n=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,e.exports=r={buildAbsoluteURL:function(e,t,s){if(s=s||{},e=e.trim(),!(t=t.trim())){if(!s.alwaysNormalize)return e;var n=r.parseURL(e);if(!n)throw Error("Error trying to parse base URL.");return n.path=r.normalizePath(n.path),r.buildURLFromParts(n)}var a=r.parseURL(t);if(!a)throw Error("Error trying to parse relative URL.");if(a.scheme)return s.alwaysNormalize?(a.path=r.normalizePath(a.path),r.buildURLFromParts(a)):t;var o=r.parseURL(e);if(!o)throw Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=i.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var d=o.path,h=d.substring(0,d.lastIndexOf("/")+1)+a.path;u.path=r.normalizePath(h)}else u.path=o.path,a.params||(u.params=o.params,a.query||(u.query=o.query));return null===u.path&&(u.path=s.alwaysNormalize?r.normalizePath(a.path):a.path),r.buildURLFromParts(u)},parseURL:function(e){var i=t.exec(e);return i?{scheme:i[1]||"",netLoc:i[2]||"",path:i[3]||"",params:i[4]||"",query:i[5]||"",fragment:i[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(s,"");e.length!==(e=e.replace(n,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}},9773:(e,t,i)=>{e.exports=i(3948).extend({constructor:function(e,t){this.plugin=e,this.session=t,this.isInBackground=!1,this.listenerReference=this._visibilityListener.bind(this),this._reset()},startDetection:function(){!this.isBackgroundDetectorStarted&&"undefined"!=typeof document&&document.addEventListener&&(this.isBackgroundDetectorStarted=!0,document.addEventListener("visibilitychange",this.listenerReference))},stopDetection:function(){this.isBackgroundDetectorStarted&&"undefined"!=typeof document&&document.removeEventListener&&(document.removeEventListener("visibilitychange",this.listenerReference),this._reset())},_reset:function(){this.isBackgroundDetectorStarted=!1},_visibilityListener:function(e){if("undefined"!=typeof document){var t=this._getSettings();"hidden"===document.visibilityState?this._toBackground(t):"visible"===document.visibilityState&&this._toForeground(t)}},_toBackground:function(e){this.isInBackground=!0;try{if(this.plugin&&this.plugin.videos)for(var t=0;t<this.plugin.videos.getVideoKeys().length;t++){var i=this.plugin.videos.getVideoKeys()[t],s=this.plugin.videos.getAdsAdapter(i);s&&s.stopChronoView()}}catch(e){}try{if("string"==typeof e){switch(e){case"stop":this._fireStop();break;case"pause":this._firePause()}this.session.suspend()}}catch(e){}}
1,_toForeground:function(e){this.isInBackground=!1;try{if(this.plugin&&this.plugin.videos)for(var t=0;t<this.plugin.videos.getVideoKeys().length;t++){var i=this.plugin.videos.getVideoKeys()[t],s=this.plugin.videos.getAdsAdapter(i);s&&s.startChronoView()}}catch(e){}try{"string"==typeof e&&e&&this._session.resume()}catch(e){}},_getSettings:function(){return"string"==typeof this.plugin.options["background.settings"]&&this.plugin.options["background.settings"]?this.plugin.options["background.settings"]:this.plugin.deviceDetector.isSmartTV()?this.plugin.options["background.settings.tv"]:this.plugin.deviceDetector.isDesktop()?this.plugin.options["background.settings.desktop"]:this.plugin.deviceDetector.isAndroid()?this.plugin.options["background.settings.android"]:this.plugin.deviceDetector.isIphone()?this.plugin.options["background.settings.iOS"]:this.plugin.deviceDetector.isPlayStation()?this.plugin.options["background.settings.playstation"]:void 0},_firePause:function(){this._fireX("firePause")},_fireStop:function(){this._fireX("fireStop")},_fireX:function(e){try{if(this.plugin&&this.plugin.videos)for(var t=0;t<this.plugin.videos.getVideoKeys().length;t++){var i=this.plugin.videos.getVideoKeys()[t];this.adsAdapter=this.plugin.videos.getAdsAdapter(i),this.adsAdapter&&this.adsAdapter[e]({},"backgroundDetector"),this.contentAdapter=this.plugin.videos.getAdapter(i),this.contentAdapter&&this.contentAdapter[e]({},"backgroundDetector")}}catch(e){}},canBlockStartCalls:function(){return this.isInBackground&&!0===this.plugin.options["background.enabled"]&&this._getSettings()}})},9835:(e,t,i)=>{e.exports="7.3.19"+(i(9907).env.NWF||"")},9907:e=>{var t,i,s=e.exports={};function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(i){try{return t.call(null,e,0)}catch(i){return t.call(this,e,0)}}}try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(e){i=r}var o,l=[],u=!1,d=-1;function h(){u&&o&&(u=!1,o.length?l=o.concat(l):d=-1,l.length&&c())}function c(){if(!u){var e=a(h);u=!0;for(var t=l.length;t;){for(o=l,l=[];++d<t;)o&&o[d].run();d=-1,t=l.length}o=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}s.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];l.push(new p(e,t)),1!==l.length||u||a(c)},p.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,s.emit=f,s.prependListener=f,s.prependOnceListener=f,s.listeners=function(e){return[]},s.binding=function(e){throw Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw Error("process.chdir is not supported")},s.umask=function(){return 0}}},t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var r=t[s]={exports:{}};return e[s].call(r.exports,r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";let e;i.d(s,{default:()=>iV});var t={};i.r(t),i.d(t,{VERSION:()=>tE,addSidxSegmentsToPlaylist:()=>eQ,generateSidxKey:()=>e2,inheritAttributes:()=>tT,parse:()=>tb,parseUTCTiming:()=>t_,stringToMpdXml:()=>tS,toM3u8:()=>tt,toPlaylists:()=>tu});var n=i(9065),r=i(7276),a=i(2784),o=i(5438);function l(){let e=["sliceByFirstSpecial","includes","843184dLQhnV","getPath","9qvRnek","endsWith","isHeaderMatch","length","lastIndexOf","isValidUrl","test","4lCAcTg","min","substr","67481zJWkhm","origin","fromCharCode","469924TISFqh","indexOf","1016469ccptRA","map","delay","444SBpbmK","forEach","returnRandom","https://","pattern","regex","1575dOcjtm","push","slice","type","bufferToString","isSubtitles","pathname","4KeMDEh","16291jXZOim","5706LMeYIN","host","split","findPathMach","657740qtobgf","isMedia"];return(l=function(){return e})()}let u=d;function d(e,t){let i=l();return(d=function(e,t){return i[e-=199]})(e,t)}!function(e){let t=d,i=e();for(;;
1)try{if(201509==-parseInt(t(199))/1*(-parseInt(t(239))/2)+parseInt(t(204))/3*(parseInt(t(220))/4)+parseInt(t(213))/5*(-parseInt(t(222))/6)+-parseInt(t(202))/7+parseInt(t(230))/8*(parseInt(t(232))/9)+-parseInt(t(226))/10+-parseInt(t(221))/11*(-parseInt(t(207))/12))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(l);class h{static getRouteAndFilename(e){let t=d,i=new URL(e),s=i[t(200)]+i[t(219)],n=s[t(236)]("/")+1;return{route:s[t(215)](0,n),fileName:s[t(215)](n)}}static[u(231)](e){return{path:new URL(e).pathname}}static[u(206)](e){return new Promise(t=>setTimeout(t,e))}static[u(225)](e,t,i){let s=i.url,n=new URL(e=e[u(224)]("?")[0]),r=new URL(t);n[u(223)]!=r[u(223)]&&(n.host=r[u(223)],e=n.toString());let a=t;if(null!=t&&""!=t)for(;!e[u(229)](a)&&a[u(229)]("/");){a.endsWith("/")&&(a=a[u(241)](0,a[u(235)]-1));let e=a[u(241)](a.lastIndexOf("/"),a[u(235)]);if((s[u(233)](e)||s.endsWith(e+"/"))&&(s[u(233)]("/")&&(s=s[u(241)](0,s.length-1)),s=s[u(241)](0,s[u(236)]("/")+1)),(a=a[u(241)](0,a[u(236)]("/")+1))==u(210)||"http://"==a)return""}return e.replace(a,s)}static[u(228)](e,t=!1){let i=[e[u(203)]("?")];return t&&i[u(214)](e[u(203)](";")),i=i.filter(e=>-1!=e),e[u(215)](0,Math[u(240)](...i))}static[u(227)](e){let t=!1;return o.Y4[u(208)](i=>{t=t||e[u(233)](i)}),t}static isManifest(e,t=!1){let i=!1,s=t?h[u(228)](e,t):e;return o.w2[u(208)](e=>{i=i||s[u(233)](e)}),i}static isAudio(e){let t=!1;return o.hj[u(208)](i=>{t=t||e.endsWith(i)}),t}static[u(218)](e){let t=!1;return o.zU.forEach(i=>{t=t||e[d(233)](i)}),t}static[u(217)](e){return String[u(201)].apply(null,new Uint8Array(e))}static[u(209)](e){let t="",i=e.length-1;return i>0&&(t=e[Math.round(Math.random()*i)]),t}static formatParameters(e){return"?"+Object.keys(e)[u(205)](function(t){return""===e[t]?"":t+"="+encodeURIComponent(e[t])}).join("&")}static ifByteArrayToString(e){if("string"!=typeof e){let i=new Uint8Array(e),s="";for(var t=0;t<i[u(235)];t++)s+=String[u(201)](i[t]);return s}return e}static[u(237)](e){try{return new URL(e),!0}catch(e){return!1}}static[u(234)](e,t){let i=!1;return"list"===t[u(216)]?i=t[u(211)][u(205)](e=>e)[u(229)](e):t[u(216)]===u(212)&&(i=new RegExp(t[u(211)])[u(238)](e)),i}}let c=f;function p(){let e=["length","waitUntil","2vToiOu","_cdnBalancer","6206442VthMiM","byteLength","5712777TgWWoo","isNaN","readyState","string","Theoplayer interceptor - Completed request for -> ","type","_interceptor","addRequestInterceptor","unload","5EHrcGn","open","manifest","10199403xpZAKE","respondWith",".m3u8","setEstimator","27784273vitJuQ","responseType","removeRequestInterceptor","useTheoplayer","body","8kwVJoI","url","statusText","verbose",".mpd","network","pathname","status","_totalDownloadedBytes","1212334hHMRxI","335848wKbVHO","ifByteArrayToString","now","response","_totalDownloadTime","_player","Theoplayer interceptor - Intercepting request to -> ","endsWith","stream","1664660mvdwHQ","method","load","headers","18GeDXvj"];return(p=function(){return e})()}function f(e,t){let i=p();return(f=function(e,t){return i[e-=468]})(e,t)}!function(e){let t=f,i=e();for(;;)try{if(632184==parseInt(t(491))/1*(-parseInt(t(474))/2)+-parseInt(t(488))/3*(-parseInt(t(475))/4)+parseInt(t(504))/5*(-parseInt(t(493))/6)+-parseInt(t(495))/7*(-parseInt(t(516))/8)+-parseInt(t(507))/9+parseInt(t(484))/10+parseInt(t(511))/11)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(p);class g{constructor(e,t){let i=f;this[i(473)]=0,this[i(479)]=0,this[i(480)]=e,this[i(492)]=t}[c(486)](){this[c(480)]&&this._cdnBalancer&&(this[c(473)]=0,this._totalDownloadTime=0,this[c(492)][c(514)](),this[c(502)]())}[c(503)](){this._player[c(470)][c(513)](this._interceptor)}[c(502)](){this._interceptor=e=>{let t=f;e[t(490)](i=>{let s=new XMLHttpRequest,n=0,o=0,l=0;for(let u in e[t(512)]===t(483)?s[t(512)]="arraybuffer":s[t(512)]=e[t(512)],s.onreadystatechange=u=>{if(1===s.readyState&&"manifest"!==e[t(500)]&&(n=Date[t(477)]()),2===s[t(497)]&&"manifest"!==e[t(500)]&&(l=(o=Date[t(477)]())-n),4===s.readyState){let n={status:s[t(472)],statusText:s[t(518)],body:void 0};if(s.status>=200&&s.status<400){let i=new URL(e[t(517)])[t(471)];if(i[t(482)](t(509))||i[t(482)](t(469))?n.body=h[t(476)](s.response):n[t(515)]=s[t(478)],e[t(500)]!==t(506)&&l>0){let e=Date[t(477)]()-o;this._totalDownloadTime+=e,this[t(473)]+=s[t(478)][t(494)];let i=this[t(473)]/(this[t(479)]/1e3);Number[t(496)](i)&&(i=(typeof s[t(478)]===t(498)?s[t(478)][t(489)]:s[t(478)][t(494)])/(l/1e3)),this[t(480)][t(470)][t(510)]({bandwidth:8*i,roundTripTime:l/1e3,createMeasurer:()=>{}})}e[t(508)](n)}else e[t(508)](n);r.default[t(468)](a.BalancerTag,t(499)+s.responseURL),i()}},r.default.verbose(a.BalancerTag,t(481)+e[t(517)]),s[t(505)](e[t(485)],e[t(517)]),e[t(487)])s.setRequestHeader(u,e[t(487)][u]);s.send(e.body)})},this._player[c(470)].addRequestInterceptor(this[c(501)])}}let m=v;function v(e,t){let i=y();return(v=function(e,t){return i[e-=455]})(e,t)}function y(){let e=["6129585kdqiOD","1128lSOfin","8EhoiZP","15ypbpVm","111nlpuZJ","loadInterceptor","363111DNKoMF","3887361nBNTGq","removeInterceptors","_cdnBalancer","load","94MiOkXR","toLowerCase","3772410TqZVfW","loadedInterceptors","1294VWlgWf","theoplayer","777966teZNWQ"];return(y=function(){return e})()}!function(e){let t=v,i=e();for(;;)try{if(239305==parseInt(t(460))/1*(parseInt(t(456))/2)+parseInt(t(467))/3*(-parseInt(t(464))/4)+parseInt(t(466))/5*(parseInt(t(462))/6)+parseInt(t(469))/7+-parseInt(t(465))/8*(parseInt(t(470))/9)+-parseInt(t(458))/10+parseInt(t(463))/11)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(y);class T{constructor(e){let t=v;this[t(459)]=[],this[t(472)]=e}[m(468)](e,t){let i;e[m(457)]()===m(461)&&(i=new g(t,this[m(472)])),i&&(i[m(455)](),this[m(459)].push(i))}[m(471)](){for(let e of this[m(459)])null==e||e.unload()}}function S(){var e=["signManifestUsingApi","jwtToken","authData","96950KBsuTt","3558370VlLraM","domainWhitelistRegex","noProbing","dynamicRules","GET","probingPolicy","294GRzMZx","974588ZDJkDB","profileName","reportTime","9715433ZwqHIe","9XWvQaY","allowSpecialDelimitersInUrl","balanceAudio","isDev","videoId","balanceSubtitles","chunkExpirationProbingMs","3OFYyro","662410Efzkuu","bucketName","debug","jwtAuthType","forceDecisionCall","Bearer","balanceManifests","probeOnlyOnBanned","updateTime","stripPathForDomainRegex","domainWhitelist","1054134yzcAWt","stripPathRegex","6631592gUXYwJ","timeBetweenHeads","isLive"];return(S=function(){return e})()}function E(e,t){var i=S();return(E=function(e,t){return i[e-=260]})(e,t)}!function(e){for(var t=E,i=e();;)try{if(736711==parseInt(t(272))/1*(-parseInt(t(273))/2)+parseInt(t(284))/3+-parseInt(t(261))/4+parseInt(t(292))/5*(-parseInt(t(260))/6)+parseInt(t(264))/7+parseInt(t(286))/8*(parseInt(t(265))/9)+parseInt(t(293))/10)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(S);class b{constructor(e){var t,i,s,n,r,a,o,l,u,d,h,c,p,f,g=E;this.isLive=!1,this[g(281)]=0,this[g(263)]=5,this[g(277)]=!1,this[g(283)]=[],this[g(294)]=[],this[g(280)]=!1,this[g(295)]=!1,this[g(298)]=g(297),this[g(266)]=!1,this[g(289)]=!1,this[g(279)]=!1,this.balanceAudio=!0,this[g(270)]=!0,this[g(296)]={},this[g(282)]=[],this[g(262)]=null==e?void 0:e[g(262)],this[g(274)]=null==e?void 0:e[g(274)],this[g(288)]=(null==e?void 0:e.isLive)||!1,this[g(269)]=null==e?void 0:e.videoId,this.resource=null==e?void 0:e.resource,this.updateTime=null!=(t=null==e?void 0:e.updateTime)?t:0,this[g(263)]=null!=(i=null==e?void 0:e[g(263)])?i:0,this[g(275)]=null==e?void 0:e[g(275)],this[g(268)]=null==e?void 0:e[g(268)],this[g(287)]=null==e?void 0:e.timeBetweenHeads,this[g(283)]=null!=(s=null==e?void 0:e.domainWhitelist)?s:[],this[g(294)]=null!=(n=null==e?void 0:e[g(294)])?n:[],this[g(280)]=null!=(r=null==e?void 0:e[g(280)])&&r,this[g(295)]=null!=(a=null==e?void 0:e[g(295)])&&a,this[g(266)]=null!=(o=null==e?void 0:e[g(266)])&&o,this[g(298)]=null==e?void 0:e.probingPolicy,this[g(289)]=null!=(l=null==e?void 0:e[g(289)])&&l,this[g(279)]=null!=(u=null==e?void 0:e[g(279)])&&u,this[g(267)]=null==(d=null==e?void 0:e[g(267)])||d,this.balanceSubtitles=null==(h=null==e?void 0:e.balanceSubtitles)||h,this[g(296)]=null!=(c=null==e?void 0:e[g(296)])?c:{},this.jwtToken=null==e?void 0:e[g(290)],this.jwtAuthType=null!=(p=null==e?void 0:e[g(276)])?p:g(278),this[g(282)]=null!=(f=null==e?void 0:e[g(282)])?f:[],this[g(285)]=null==e?void 0:e[g(285)],this[g(271)]=null==e?void 0:e[g(271)],this.authData=null==e?void 0:e[g(291)]}}let _=A;function A(e,t){let i=w();return(A=function(e,t){return i[e-=335]})(e,t)}function w(){let e=["289292xLFjvy","3241735PKZNfn","emit","data","6RZkqXR","splice","3894750ziOqxC","forEach","391675MFwuBt","12qsRLML","_listeners","85443bhDNxk","indexOf","187816pKGoWp","1912242DRBtGn","off"];return(w=function(){return e})()}!function(e){let t=A,i=e();for(;;)try{if(341383==parseInt(t(337))/1+parseInt(t(341))/2*(-parseInt(t(348))/3)+parseInt(t(346))/4*(-parseInt(t(345))/5)+parseInt(t(335))/6+parseInt(t(338))/7+parseInt(t(350))/8+-p
1arseInt(t(343))/9)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(w);class I{constructor(){this[A(347)]={}}on(e,t){let i=A;return this._listeners[e]||(this._listeners[e]=[]),this[i(347)][e].push(t),this}[_(336)](e,t){if(this._listeners[e])if(t){let i=this[_(347)][e][_(349)](t);-1!==i&&this[_(347)][e][_(342)](i,1)}else this[_(347)][e]=[];return this}[_(339)](e,t={},i){return[e,"*"].forEach(s=>{let n=A;this[n(347)][s]&&this[n(347)][s][n(344)](s=>{s({type:e,[i||n(340)]:t})})}),this}}var P=i(1048).hp;let R=N;function N(e,t){let i=L();return(N=function(e,t){return i[e-=248]})(e,t)}!function(e){let t=N,i=e();for(;;)try{if(746899==-parseInt(t(352))/1+-parseInt(t(387))/2+-parseInt(t(395))/3+-parseInt(t(286))/4*(-parseInt(t(368))/5)+parseInt(t(277))/6*(-parseInt(t(365))/7)+-parseInt(t(332))/8+parseInt(t(402))/9*(parseInt(t(303))/10))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(L);var D=function(e,t,i,s){return new(i||(i=Promise))(function(n,r){let a=N;function o(e){let t=N;try{u(s[t(329)](e))}catch(e){r(e)}}function l(e){let t=N;try{u(s[t(397)](e))}catch(e){r(e)}}function u(e){var t;let s=N;e.done?n(e[s(391)]):((t=e[s(391)])instanceof i?t:new i(function(e){e(t)}))[s(353)](o,l)}u((s=s[a(389)](e,t||[]))[a(329)]())})};function L(){let e=["sendSegment","615510SzUUSQ","version","throw","message","_ip","_onError","SOMETHING IS WRONG, Total p2p file size is bigger than expected size. ","103896CutKEB","clear","isAhead","time","_decoder","activeP2PSendProcesses","_lastLatencyP2P","pop","get","Download ended ","totalDataInterval","CREATEPEERCONNECTING?","slice","_activeDownloads","_lastSegmendDataMessagesTime","getLastDownloadsTraffic","_onConnect","Close callback","parse","createdAt","peerFailedSegmentTimeout"," | ","getLastSegmentDataMessagesTime","_lastResponses","_totalDownloadedBytes","getIp","_totalDownloadTime","_segmentMap","getOldestRequestTS","_lastBandwith","peerCloseListener","P2P Upload canceled.","Canceling operation -> 0 ","size","getByteArrayFromIdentifier","set","469254PmIBKy","sctp-failure","splits","length","random","_cancel","trim","maxMessageSize","getSegmentDataMessages","24kdvPbz","from","decode","Probable algorithm failed","push","cancel","_totalSendBytes","timeouts","peerFailedSegmentAbsent","peerSegmentLoaded","sendNoSegment","timeGap","sendMap","getSegment","_cancelRequest","testLatencyDone","getLastLatencySegment","4150wdcFYk"," download end ","delete","getDownloadBandwidth","map","P2P Pong to ","getDownloadedChunks","startTime","testLatencyResult","addPeerResponse","sdp","_peer","getIceAnswer","stringify","peerSegmentProgress","getTotalSendSegments","getIdentifierFromByteArray","_totalDownloaded","now","Absent","storageSize"," not an active download id","floor","_segmendDataMessages","_destroyed","_totalSendSegments","next","debug","identifier","10243448DwMmWe","request","indexOf","command","This peer may timeout in ","_send","isDownloading","getTotalSendBytes","unshift","getSegmentMap","P2P: ","error","errorDetail","getLastResponses","_lastSent","PTT-> TIMEOUT CREATION ","peerSegmentUpload","_version","timeout","dateTime","1127710arxfEh","then","_answer","_lastLatencySegment","_onData","bind","_downloaded","testBandwidthDone","split","_identifierShort","addPeerLatency","_totalSendTime","absent","126FZzPqJ","_operationId","ping","984635iSjdTr","_onClose","P2P Ping to ","consecutiveHaveSegment","pong","_startTimeout","P2P onError to ","Timeout ","newSegmentAvailable","isBehind","min","getStorage","getDownloadedBytes","peerSegmentUploadRequest","_getLastSecondsTraffic","_loader","byteLength","totalErrors","peerCanceledSegmentUpload","2408700YuNllj","destroy","apply","_endDownload","value","data","concat"];return(L=function(){return e})()}class C extends I{[R(315)](){return this[R(354)]}[R(339)](){return this[R(292)]}getTotalSendTime(){return this[R(363)]}[R(318)](){return this[R(328)]}[R(380)](){return this[R(265)]}[R(309)](){return this[R(320)]}[R(306)](){return 0==this[R(267)]?0:this._totalDownloadedBytes*(this._totalDownloadTime/1e3)}getLastLatencyP2P(){return this[R(408)]}[R(302)](){return this._lastLatencySegment}getLastBandwith(){return this[R(270)]}[R(266)](){var e;if(null!=this[R(399)])return this[R(399)];let t=null==(e=this._answer)?void 0:e[R(313)];if(null!=t)try{let e=t[R(360)]("c=IN IP4")[1],i=(e=e[R(283)]())[R(360)](" ")[0];i=(i=e.split("a=")[0])[R(283)](),this._ip=i}catch(e){}}[R(345)](){return this[R(264)]}constructor(e,t,i){super(),this[R(268)]=[],this[R(254)]=new Map,this[R(264)]=[],this[R(346)]=[],this._decoder=new TextDecoder,this[R(361)]=Math.round(65536*Math[R(281)]())-32768,this[R(358)]=[],this._totalDownloaded=0,this[R(265)]=0,this[R(267)]=0,this[R(371)]=0,this[R(293)]=0,this.downloadingProcessActive=!1,this[R(349)]=0,this._totalSendBytes=0,this[R(363)]=0,this[R(328)]=0,this._lastLatencyP2P=0,this[R(355)]=0,this._lastBandwith=0,this[R(399)]=void 0,this[R(326)]=0,this[R(255)]=0,this._destroyed=!1,this.foreSegmentsInfo=!1,this[R(404)]=!1,this[R(377)]=!1,this[R(297)]=0,this[R(366)]=0,this[R(385)]=0,this[R(282)
1]=new Map,this[R(301)]=!1,this[R(359)]=!1,this[R(311)]=0,this.testBandwidthResult=0,this[R(354)]=i,this.id=t.id,this[R(314)]=t,this[R(383)]=e,t.on(o.Lg.connect,this[R(257)].bind(this)),t.on(o.Lg.close,this[R(369)][R(357)](this)),t.on(o.Lg[R(343)],this[R(400)][R(357)](this)),t.on(o.Lg[R(392)],this[R(356)][R(357)](this))}getVersion(){return this._version}[R(338)](){return this[R(254)][R(274)]>0}[R(285)](){return this[R(326)]}[R(263)](){return this[R(255)]}[R(388)](){this[R(314)][R(388)](),this[R(369)](),this[R(327)]=!0}_onConnect(){r.default.verbose(a.BalancerTag,R(252)+this.id),this._destroyed||(r.default[R(330)](a.BalancerTag,"P2P onConnect to "+this.id),this[R(383)].peerConnect(this))}_onError(e){var t,i;r.default[R(330)](a.BalancerTag,R(374)+this.id+" "+(null==(t=null==e?void 0:e[R(343)])?void 0:t[R(344)])),(null==(i=null==e?void 0:e[R(343)])?void 0:i[R(344)])===R(278)&&this[R(369)](),this[R(371)]=0,this.totalErrors++}_onClose(){this[R(314)][R(388)](),this[R(254)][R(403)](),this[R(390)](R(258),0),this[R(383)][R(271)](this)}[R(390)](e,t){e===R(322)&&(r.default[R(330)](a.BalancerTag,R(289)),this[R(371)]=0);let i=this[R(254)][R(249)](t);i&&r.default[R(330)](a.BalancerTag,"Closing p2p download "+i.id),this[R(254)].delete(t)}[R(356)](e){if(this[R(327)])return;let t=e[R(253)](0,4),i=e[R(253)](4,e[R(384)]),s=t[0],n=this[R(319)](e.slice(1,3)),l=t[3];if(this[R(349)]<l&&(this._version=l),s==o.b3[R(398)]){let e=JSON[R(259)](this[R(406)][R(288)](i));if(e[o.CE[R(335)]])switch(e[o.CE[R(335)]]){case o.mH[R(333)]:this[R(383)][R(381)](this,e[o.CE.id],e[o.CE[R(331)]]);break;case o.mH[R(307)]:this[R(268)]=e[o.CE[R(307)]],this[R(326)]++,this._lastSegmendDataMessagesTime=Date.now();break;case o.mH[R(376)]:let t=e[o.CE.id],s=(e[o.CE[R(274)]],e[o.CE.storageSize]);this[R(408)]=Date[R(321)]()-e[o.CE[R(351)]],this._lastLatencySegment=Date[R(321)]()-e[o.CE[R(260)]],this._loader[R(362)](this[R(408)]);let l=0,u=this[R(383)][R(379)]()[R(299)](t);u&&(l=u[R(310)]-e[o.CE[R(260)]]),l>=0?(this[R(404)]=!0,this.isBehind=!1):(this[R(404)]=!1,this[R(377)]=!0),this[R(268)][R(340)](t),this[R(268)][R(280)]>s&&this._segmentMap[R(248)]();break;case o.mH.ping:let d=e[o.CE[R(331)]],h=e[o.CE.time];this[R(372)](d,h);break;case o.mH[R(372)]:let c=Date.now()-e[o.CE.time];this._loader[R(362)](c);break;case o.mH[R(291)]:this[R(282)][R(276)](e[o.CE[R(331)]],e[o.CE.identifier]);break;case o.mH[R(364)]:{let t=e[o.CE[R(331)]]||0,i=this[R(254)].get(t);i&&i.id===e[o.CE.id]&&(this[R(383)][R(294)](this,i.id),this[R(390)](R(322),n))}break;case o.mH.data:{let t=this._activeDownloads[R(249)](e[o.CE[R(331)]]);if(t&&(t[R(274)]=e[o.CE[R(274)]],0==t[R(310)]&&(t[R(310)]=Date[R(321)]()),this[R(320)]>=3&&this.getDownloadBandwidth()>0)){let e=1e3*t[R(274)]/this[R(306)]();e>1.15*o.LI[R(350)]&&r.default.verbose(a.BalancerTag,R(336)+e+"ms")}}}}else if(s==o.b3.data){let e=this._activeDownloads[R(249)](n);if(e&&e.id){0==e[R(310)]&&(e[R(310)]=Date[R(321)]()),e[R(392)][R(290)](i);let t=0;e[R(392)].forEach(e=>{t+=e[R(384)]});let s=Date.now()-(e.startTime||Date[R(321)]());if(t>e[R(274)]&&r.default[R(330)](a.BalancerTag,R(401)+t+" "+e.size),t==e[R(274)]){let i=0,o=new Uint8Array(t);for(let t of e[R(392)])o[R(276)](new Uint8Array(t),i),i+=t[R(384)];this[R(265)]=this[R(265)]+o[R(384)],this[R(320)]++,this[R(267)]=this[R(267)]+s;let l={time:Date[R(321)](),size:o[R(384)]};this._lastResponses.push(l),this._loader[R(312)](l);let u=(Date[R(321)]()-e[R(310)])/1e3,d=e[R(274)]/u;this[R(270)]=d,this[R(358)][R(290)](e.id),this[R(383)][R(295)](this,e.id,s,o.buffer),r.default[R(330)](a.BalancerTag,"p2p not wrong -> "+e.id+R(304)+e[R(274)]),this._endDownload(R(250)+e.id+" "+e.size+R(262)+t,n)}else{let i=0,n=new Uint8Array(t);for(let t of e.data)n[R(276)](new Uint8Array(t),i),i+=t[R(384)];0!=e[R(274)]&&this._loader[R(317)](this,e.id,s,n,e.size)}}else r.default[R(330)](a.BalancerTag,R(342)+this.id+R(324))}}[R(333)](e){if(this[R(327)])return;this._version>=2&&(this[R(366)]++,0==this[R(366)]&&this._operationId++);let t=this._operationId;r.default[R(330)](a.BalancerTag,"OPERATION ID -> "+t),this._startTimeout(e,t),this[R(337)]({[o.CE[R(335)]]:o.mH[R(333)],[o.CE.id]:e,[o.CE[R(331)]]:t},o.b3.message)}[R(367)](e){r.default[R(330)](a.BalancerTag,R(370)+this.id),this._send({[o.CE[R(335)]]:o.mH[R(367)],[o.CE[R(405)]]:Date[R(321)](),[o.CE.id]:e,[o.CE[R(331)]]:this.id},o.b3[R(398)])}pong(e,t){r.default[R(330)](a.BalancerTag,R(308)+this.id),this[R(337)]({[o.CE[R(335)]]:o.mH[R(372)],[o.CE.time]:t,[o.CE.id]:e,[o.CE.identifier]:this.id},o.b3[R(398)])}_cancelRequest(e,t){this[R(337)]({[o.CE.command]:o.mH[R(291)],[o.CE.id]:e,[o.CE[R(331)]]:t},o.b3[R(398)])}[R(298)](e){return D(this,void 0,void 0,function*(){let t=N;this[t(327)]||this[t(337)]({[o.CE[t(335)]]:o.mH[t(307)],[o.CE[t(307)]]:e},o.b3[t(398)])})}[R(394)](e,t,i){var s;return D(this,void 0,void 0,function*(){let n=N;if(!this[n(327)]){if(t[n(392)]&&this[n(282)]&&null==this._cancel[n(249)](i)){this[n(337)]({[o.CE[n(335)]]:o.mH[n(392)],[o.CE.id]:e,[o.CE[n(274)]]:t.realBodySize,[o.CE[n(331)]]:i,[o.CE[n(279)]]:Math[n(325)](t.data.byteLength/o.LI[n(284)])+1},o.b3[n(398)]);let l=t.realBodySize,u=0,d=this[n(275)](i),h=P.from([o.b3[n(392)],d[0],d[1],0]),c=l;t[n(407)]++;let p=Date[n(321)]();try{for(;c>0&&!this[n(282)][n(249)](i);){let e=Math[n(378)](c,o.LI[n(284)]);for(;t&&t.data&&t[n(392)][n(384)]&&e+u>t[n(392)][n(384)]&&!this[n(282)].get(i);)yield new Promise(e=>setTimeout(e,2));this[n(314)].send(P[n(393)]([h,P.from(t[n(392)],(null==(s=t.data)?void 0:s[n(384)])-c,e)])),u+=e,c-=e}}catch(e){r.default.debug(a.BalancerTag,"Could not send message to peer (maybe it was destroyed)")}this[n(292)]=this._totalSendBytes+u,this[n(363)]=Date[n(321)]()-p,this._totalSendSegments++,t[n(407)]--,this[n(282)][n(249)](i)?this[n(383)][n(386)](t[n(392)].byteLength-c):(this._lastSent[n(290)]({time:Date[n(321)](),size:t.data[n(384)]}),this._loader[n(348)](t[n(392)][n(384)]))}else r.default[n(330)](a.BalancerTag,n(272));null!=this._cancel[n(249)](i)&&(r.default.debug(a.BalancerTag,n(273)),this[n(282)][n(305)](i))}})}[R(275)](e){let t=[0,0];return t[0]=e>>8&255,t[1]=255&e,t}[R(319)](e){return(255&e[0])<<8|255&e[1]}[R(296)](e,t){this[R(337)]({[o.CE[R(335)]]:o.mH.absent,[o.CE.id]:e,[o.CE[R(331)]]:t},o.b3[R(398)])}sendNewSegmentAvailable(e,t,i,s){return D(this,void 0,void 0,function*(){let n=N;this._destroyed||this._send({[o.CE[n(335)]]:o.mH[n(376)],[o.CE.id]:e,[o.CE.size]:t,[o.CE[n(323)]]:i,[o.CE[n(351)]]:Date[n(321)](),[o.CE.createdAt]:s},o.b3[n(398)])})}[R(337)](e,t){try{this[R(314)].send(P[R(393)]([P[R(287)]([t,0,0,o.jQ[R(396)]]),P[R(287)](JSON[R(316)](e))]))}catch(e){r.default[R(330)](a.BalancerTag,"Could not send message to peer (maybe it was destroyed)")}}[R(341)](){return this._segmentMap}[R(373)](e,t){r.default.debug(a.BalancerTag,R(347)+t),this[R(254)][R(276)](t,{id:e,data:[],startTime:0,size:0}),setTimeout(()=>{var i;let s=this[R(358)][R(334)](e);if(s<0){this[R(300)](e,t);let s=0;s=(null==(i=this[R(254)][R(249)](t))?void 0:i[R(274)])||0,this[R(383)][R(261)](this,e,s),this._endDownload(R(375)+e+" "+o.LI[R(350)],t)}else this[R(358)].splice(s,1)},o.LI.timeout)}[R(269)](){var e;return(null==(e=this[R(264)][0])?void 0:e[R(405)])||0}static[R(382)](e){let t=0,i=Date[R(321)]();for(let s=0;s<e[R(280)];)e[s][R(405)]+o.Ji[R(251)]<i?e.splice(s,1):(t+=e[s][R(274)],++s);return t}[R(256)](){return C[R(382)](this[R(264)])}getLastUploadsTraffic(){return C[R(382)](this[R(346)])}}let O=B;function B(e,t){let i=k();return(B=function(e,t){return i[e-=403]})(e,t)}!function(e){let t=B,i=e();for(;;)try{if(168238==parseInt(t(404))/1*(-parseInt(t(424))/2)+parseInt(t(415))/3*(-parseInt(t(421))/4)+-parseInt(t(407))/5+-parseInt(t(403))/6+parseInt(t(420))/7+-parseInt(t(413))/8*(parseInt(t(412))/9)+parseInt(t(414))/10)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(k);class x{constructor(e){this[B(411)]=[],this.size=e}[O(406)](e){for(this[O(411)][O(416)](e);this[O(411)][O(410)]>this[O(418)];)this[O(408)]()}removeFirst(){if(!this[O(419)]())return this.array[O(423)]()}[O(405)](){if(!this.isEmpty())return this[O(411)][0]}[O(419)](){return 0===this[O(411)][O(410)]}copyArray(){return Object[O(417)]([],this[O(411)])}[O(422)](e){let t=Object.assign([],this.array);return t.length<=e?t:t[O(409)](t[O(410)]-e)}}function k(){let e=["2148147LaZycO","8UFlcTD","9541470OodjAW","816KOhCAM","push","assign","size","isEmpty","1566404iykQWv","3464OtpUjX","lastn","shift","220768WtKSvp","1534320DXdbgM","2RlhQkE","peek","add","294790IiGCBw","removeFirst","splice","length","array"];return(k=function(){return e})()}let M=q;function U(){let e=["forEach","lastn","_lastResponses","toLowerCase","targetDuration","getAvgResponseTime","statusCode","lastPreferedVideoChunkSize","switchesDueToConnectivity","1302156nVgOUC","_incrementCacheCount","_updateCacheCount","maxThroughput","url","minResponseBytes","samplesThroughput","Audio","bandwidth","score","calculateEffe
1ctiveBandwidth"," at ","unbannedTime","active","MAX_SAFE_INTEGER","host","Unknown","lastPreferedVideoChunkDownloadTime","wBandwidthForScoring","STREBOPX","auth","maxNetworkLatency","header","downloadedSegments","isChecked","sumVideoBytes","getAvgRecentWBandwidth","1gWgXgR","maxResponseTime","weight","pushLastPreferedVideoBandwidth","360GPguzl","uncompressedBytes","highestPingTime","28284yEdMSx","isAudio","hugeChunks","samplesResponseTime","http3xxResponses","headers","rendition","sumResponseBytes","usedOrProbed","getBandwidth","bannedRefTicToc","getWeightedBandwidth","wBandwidth","resetOnPing","incrementSwitchesDueToErrors","updateAvailability","size","maxBandwidth","trunc","_processCdnCache","minNetworkLatency","dnsEnabled","highestSegmentBandwidth","addResp","sumNetworkLatency","min","30nCkmzo","totalFail","946482zodehZ","setLastResponses","shift","1498XeHRJr","map","58512mVyUos","push","setChecked","switchesDueToQuality","resetBandwidth","original","avgPingTime","MB/s size-> ","downloadMillis","getAvgBandwidth","lastPreferedVideoBandwidth","getAvgRecentBandwidth","1398447rWHcpW","fromEntries","failed","max","sumResponseTime","regex","absolute","keys","price","http5xxResponses","sumVideoTime","10482JvywKf","assign","provider","numberOfCdnCacheMisses","clone","http4xxResponses","downloadedChunks","getCdnCacheMisses","route","sumThroughput","compressedBytes","type","verbose","11dOMavz","downloadedChunksVideo","bannedTime","getAvgWBandwidth","add","browserCacheHits","getAvgLastVideoBandwidth","addProbe","_lastsPreferedVideoBandwidth","incrementSwitchesDueToQuality","numberOfCdnCacheUnknowns","updateStatusCodeCounters","http2xxResponses","downloadedBytesForScoring","samplesNetworkLatency","video","undefined","31550316dEgvta","getVideoBandwidth","includes","toFixed","copyArray","test","STREBOOS","minThroughput","bandwidthForScoring","name","initialBw","lowestPingTime","firstHugeChunkSize","length","getBandwidthInBits","_accumBw","CODAVEL","usedOnce","minResponseTime","http1xxResponses","getCdnCacheHits","lowestSegmentBandwidth","now","_parser","numberOfCdnCacheHits","s from ","downloadTimeForScoring","minRequestSizeForBwEstimateKB","downloadTimeMs","time","downloadedBytesVideo","isHeaderMatch","list","isRangeCompatible","retries","samplesResponseBytes","downloadMillisVideo","downloadedBytes","switchesDueToErrors"," segment of ","switches","Downloaded a ","_checked","path","highestRenditionBandwidth","banned","maxResponseBytes","getOldestRequestTS","getLastResponse","setBandwidth","_updateCacheCounts"];return(U=function(){return e})()}!function(e){let t=q,i=e();for(;;)try{if(365467==-parseInt(t(377))/1*(parseInt(t(232))/2)+-parseInt(t(350))/3+-parseInt(t(384))/4*(parseInt(t(381))/5)+parseInt(t(260))/6*(-parseInt(t(235))/7)+-parseInt(t(237))/8+-parseInt(t(249))/9*(parseInt(t(230))/10)+-parseInt(t(273))/11*(-parseInt(t(290))/12))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(U);class V{constructor(e,t,i,s,n,r,a,o,l,u,d,h,c){let p=q;this.bannedCount=0,this.unBannedCount=0,this[p(266)]=0,this[p(327)]=0,this.downloadedBytesForScoring=0,this[p(316)]=0,this[p(386)]=0,this[p(302)]=0,this[p(298)]=new x(20),this[p(368)]=new x(20),this.failures=0,this[p(324)]=0,this.totalFail=0,this.browserCacheHits=0,this.numberOfCdnCacheHits=0,this[p(263)]=0,this[p(283)]=0,this[p(245)]=0,this[p(307)]=!1,this[p(320)]=0,this[p(326)]=0,this[p(274)]=0,this.unbannedTime=0,this[p(275)]=0,this[p(394)]=Date[p(312)](),this.lastUpdatedState=0,this[p(221)]=1e12,this[p(247)]=0,this[p(281)]=[],this[p(334)]=0,this[p(348)]=0,this[p(367)]=0,this.lastPingTime=0,this[p(305)]=V[p(300)],this[p(358)]=new x(20),this[p(396)]=new x(20),this._lastResponses=[],this[p(226)]=0,this[p(311)]=Number[p(364)],this[p(383)]=0,this[p(301)]=Number[p(364)],this[p(243)]=0,this[p(323)]=!0,this[p(332)]=!1,this[p(373)]=[],this[p(392)]=!1,this[p(262)]=e,this.internal_provider=[p(306),p(296),p(369)][p(292)](e)?t:e,this[p(299)]=t,this[p(365)]=i,this[p(333)]=s,this.url=n,this[p(359)]=r,this.price=o,this.weight=l,this[p(255)]=u,this[p(225)]=d,this[p(370)]=h,this[p(242)]=a,this[p(363)]=!0,this.banned=!1,this[p(313)]=c}[M(380)](e){this[M(281)][M(238)](e),this[M(281)][M(303)]>5&&this[M(281)][M(234)]()}[M(279)](){let e=0,t=0;for(t=0;t<this[M(281)].length;t++)e+=this[M(281)][t];return e/t}[M(338)](){return 0===this[M(343)].length?{time:Date[M(312)](),size:0}:this[M(343)][this[M(343)].length-1]}[M(233)](e){this[M(343)]=e}addResponse(e){this._lastResponses.push(e)}[M(346)](){return 0==this[M(266)]?0:this[M(245)]/this[M(266)]}[M(310)](){return this.numberOfCdnCacheHits}[M(267)](){return this[M(263)]}_processCdnCache(e){if(!this[M(313)]||!e[M(389)])return;let t=Object[M(250)](Object.entries(e[M(389)])[M(236)](([e,t])=>[e[M(344)](),t])),{hit:i,miss:s}=this._parser.cache;i&&s?this[M(340)](i,s,t):this[M(352)](i||s,t,!!i)}[M(340)](e,t,i){var s,n;let r=null!=(s=null==e?void 0:e[M(372)].toLowerCase())?s:"",a=null!=(n=null==t?void 0:t[M(372)][M(344)]())?n:"",o=r in i&&h.isHeaderMatch(i[r],e),l=a in i&&h[M(321)](i[a],t);o?this.numberOfCdnCacheHits++:l?this.numberOfCdnCacheMisses++:this.numberOfCdnCache
1Unknowns++}[M(352)](e,t,i){var s;let n=null!=(s=null==e?void 0:e[M(372)][M(344)]())?s:"";if(n in t){let s=t[n],r=!1;e[M(271)]===M(322)?r=e.pattern[M(292)](s):e[M(271)]===M(254)&&(r=new RegExp(e.pattern)[M(295)](s)),r?this[M(351)](i):this[M(351)](!i)}else this[M(351)](!i)}[M(351)](e){e?this[M(314)]++:this.numberOfCdnCacheMisses++}[M(227)](e){var t,i;let s=e[M(268)],n=e[M(358)]||0,l=e[M(220)]||0,u=e[M(318)]||0,d=e[M(251)];if(this[M(392)]=!0,this[M(284)](e[M(347)]),d)return this[M(324)]++,void this[M(231)]++;this[M(266)]++,this[M(327)]+=l,typeof this[M(391)]===M(289)?this.sumResponseBytes=l:this[M(391)]+=l,typeof this[M(355)]===M(289)?this[M(355)]=l:this.minResponseBytes=Math[M(229)](this[M(355)],l),typeof this.maxResponseBytes===M(289)?this.maxResponseBytes=l:this[M(336)]=Math[M(252)](this.maxResponseBytes,l),void 0===this[M(325)]?this[M(325)]=1:this[M(325)]+=1,null!=e.compressedBytes&&null!=e[M(382)]&&(void 0===this[M(270)]?this[M(270)]=e[M(270)]:this[M(270)]+=e[M(270)],typeof this[M(382)]===M(289)?this.uncompressedBytes=e.uncompressedBytes:this[M(382)]+=e[M(382)]),this[M(223)](e),null!=e[M(390)]&&e[M(390)][M(385)]&&0==this[M(386)]&&(this.usedOnce=!1),null!=e[M(390)]&&e[M(390)][M(385)]||(this[M(286)]+=l,this[M(316)]+=u,this.usedOnce=!0,this.hugeChunks++,0==this[M(302)]&&(this.firstHugeChunkSize=l)),o.Y4.forEach(t=>{if(s.indexOf(t)>=0){let t=!0;n>0?(l>1e3*o._C[M(317)]&&(t=!1,this[M(305)]=this[M(305)]!==V.initialBw?Math[M(222)](this._accumBw*(1-o.Zq.lastMeasurementWeight)+n*o.Zq.lastMeasurementWeight):n),this[M(358)][M(277)](n),this[M(396)][M(277)]({bw:n*l,ct:l}),null!=e[M(390)]&&e.rendition[M(385)]||(this[M(298)][M(277)](n),this.wBandwidthForScoring[M(277)]({bw:n*l,ct:l}),this.downloadMillisVideo+=u,this[M(320)]+=l,this.downloadedChunksVideo++,typeof this[M(269)]===M(289)?this[M(269)]=n:this[M(269)]+=n,typeof this.minThroughput===M(289)?this[M(297)]=n:this[M(297)]=Math[M(229)](this[M(297)],n),typeof this[M(353)]===M(289)?this[M(353)]=n:this.maxThroughput=Math[M(252)](this[M(353)],n),typeof this.samplesThroughput===M(289)?this[M(356)]=1:this[M(356)]+=1,typeof this[M(375)]===M(289)?this[M(375)]=l:this.sumVideoBytes+=l,typeof this.sumVideoTime===M(289)?this.sumVideoTime=u:this[M(259)]+=u)):this[M(278)]++,0!=this[M(305)]||t||(this[M(307)]=!1)}}),0==this[M(327)]&&(this[M(307)]=!1),n>this[M(226)]&&(this[M(226)]=n),n<this.lowestSegmentBandwidth&&(this[M(311)]=n),this[M(245)]+=u,typeof this[M(253)]===M(289)?this[M(253)]=u:this[M(253)]+=u,typeof this[M(308)]===M(289)?this[M(308)]=u:this[M(308)]=Math[M(229)](this[M(308)],u),void 0===this[M(378)]?this[M(378)]=u:this[M(378)]=Math.max(this.maxResponseTime,u),typeof this.samplesResponseTime===M(289)?this.samplesResponseTime=1:this.samplesResponseTime+=1,this[M(343)].push({time:Date[M(312)](),size:l}),null!=e.rendition&&(null==(t=e.rendition)?void 0:t.isAudio)||(this[M(348)]=l,this[M(367)]=u),null!=e[M(390)]&&this[M(334)]<e[M(390)][M(358)]&&(this[M(334)]=e[M(390)][M(358)]),null!=e.rendition&&(null==(i=e[M(390)])?void 0:i[M(385)])||(this[M(247)]=e[M(358)],this[M(380)](e[M(358)]));let h=M(366);e.rendition&&(h=e[M(390)][M(385)]?M(357):M(288));let c=0;e[M(390)]&&(c=e[M(390)][M(345)]),r.default[M(272)](a.BalancerTag,M(331)+h+M(329)+c+M(315)+e.cdnName+M(361)+Number(n/1e6)[M(293)](2)+M(244)+Number(l/1024)[M(293)](2)+"kb in "+u)}[M(360)](e,t){let i=this[M(367)],s=this[M(348)],n=this.lastPingTime,r=i-n;if(r<=0&&(n=i,r=i),s<=0)return 0;let a=e/8*t,o=a*r/s+2*n;return 0==o?0:8*a/(o/1e3)}[M(291)](){return(this.downloadedBytesForScoring||0)/((this[M(316)]||1)/1e3)*8}[M(393)](){return this[M(305)]}[M(339)](e){this[M(305)]=e}[M(304)](){return 8*this[M(305)]}[M(246)](){let e=0,t=0;for(let i of this[M(358)][M(294)]())e+=i,t++;return t>0?e/t:0}[M(248)](){let e=0,t=0;for(let i of this[M(358)][M(342)](4))e+=i,t++;return t>0?e/t:0}[M(276)](){let e=0,t=0;for(let i of this[M(368)].copyArray())e+=i.bw,t+=i.ct;return t>0?e/t:0}[M(376)](){let e=0,t=0;for(let i of this[M(368)][M(342)](4))e+=i.bw,t+=i.ct;return t>0?e/t:0}[M(395)](){return .45*this.getAvgWBandwidth()+.55*this[M(376)]()}[M(241)](){this[M(305)]=V.initialBw}[M(337)](){var e;return(null==(e=this[M(343)][0])?void 0:e[M(319)])||0}[M(264)](){let e=new V(this.provider,this[M(299)],this[M(365)],this[M(333)],this[M(354)],this.score,this[M(242)],this[M(257)],this[M(379)],this[M(255)],this.dnsEnabled,this[M(370)],this[M(313)]);return Object[M(256)](this)[M(341)](t=>{let i={};i[t]=this[t],Object[M(261)](e,i)}),e}[M(280)](e){typeof this[M(228)]===M(289)?this.sumNetworkLatency=e:this[M(228)]+=e,typeof this[M(224)]===M(289)?this.minNetworkLatency=e:this[M(224)]=Math[M(229)](this.minNetworkLatency,e),void 0===this[M(371)]?this[M(371)]=e:this[M(371)]=Math[M(252)](this[M(371)],e),typeof this[M(287)]===M(289)?this[M(287)]=1:this[M(287)]+=1}[M(284)](e){null!=e&&(e>=100&&e<=199?this[M(309)]=(this.http1xxResponses||0)+1:e>=200&&e<=299?this[M(285)]=(this[M(285)]||0)+1:e>=300&&e<=399?this[M(388)]=(this[M(388)]||0)+1:e>=400&&e<=499?this[M(265)]=(this[M(265)]||0)+1:e>=500&&e<=599&&(this[M(258)]=(this[M(258)]||0)+1))}[M(219)](){let e=Date[M(312)]();this[M(335)]?(this[M(275)]+=e-this[M(394)],this.bannedRefTicToc=e):(this.unbannedTime+=e-this[M(394)],this[M(394)]=e)}incrementSwitches(){typeof this[M(330)]===M(289)?this[M(330)]=1:this[M(330)]+=1}
1[M(282)](){void 0===this.switchesDueToQuality?this.switchesDueToQuality=1:this[M(240)]+=1}incrementSwitchesDueToConnectivity(){typeof this.switchesDueToConnectivity===M(289)?this[M(349)]=1:this[M(349)]+=1}[M(218)](){void 0===this[M(328)]?this[M(328)]=1:this[M(328)]+=1}[M(217)](){this[M(391)]=void 0,this[M(355)]=void 0,this[M(336)]=void 0,this[M(325)]=void 0,this[M(253)]=void 0,this[M(308)]=void 0,this[M(378)]=void 0,this[M(387)]=void 0,this[M(228)]=void 0,this[M(224)]=void 0,this[M(371)]=void 0,this.samplesNetworkLatency=void 0,this[M(269)]=void 0,this[M(297)]=void 0,this.maxThroughput=void 0,this.samplesThroughput=void 0,this[M(375)]=void 0,this[M(259)]=void 0,this[M(362)]=0,this[M(275)]=0,this.bannedRefTicToc=Date[M(312)]()}isCodavel(){return[M(306),M(296),"STREBOPX"][M(292)](this[M(262)])}[M(239)](){this[M(332)]=!0}[M(374)](){return this._checked}}function q(e,t){let i=U();return(q=function(e,t){return i[e-=217]})(e,t)}V[M(300)]=9e12;var F=X;function X(e,t){var i=G();return(X=function(e,t){return i[e-=455]})(e,t)}!function(e){for(var t=X,i=e();;)try{if(457813==parseInt(t(472))/1+-parseInt(t(460))/2*(-parseInt(t(458))/3)+parseInt(t(475))/4*(parseInt(t(465))/5)+parseInt(t(462))/6*(parseInt(t(473))/7)+parseInt(t(455))/8+parseInt(t(457))/9+-parseInt(t(468))/10)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(G);class H{constructor(){var e=X;this[e(471)]=0,this.pingsTime=0,this[e(470)]=0,this[e(467)]=0,this[e(469)]=Number[e(459)]}add(e){var t=X;this[t(467)]=Math[t(461)](this[t(467)],e),this[t(469)]=Math.min(this[t(469)],e),this[t(463)]+=e,this[t(471)]++,this[t(470)]=0===this.averagePing?e:Math.trunc(this.averagePing*(1-o.Zq[t(466)])+e*o.Zq[t(466)])}[F(464)](){return this[F(470)]}[F(474)](){return this[F(467)]}getMinPingTime(){return this[F(469)]}[F(456)](){return this.pingsTime/this.pingsCounter}}function G(){var e=["_minPing","averagePing","pingsCounter","114147hijaIz","1020327jjzbLg","getMaxPingTime","742780JygvBL","7313456dyFJwu","getSimpleAveragePingTime","1114884ypupiI","132CEYLMl","MAX_SAFE_INTEGER","7394NKnMku","max","6wekOEG","pingsTime","getAvgPingTime","20OXAbtX","lastMeasurementWeight","_maxPing","17456010LBPaTY"];return(G=function(){return e})()}function j(){let e=["9682QNwZcS","throw","bandwidth","8XyfNJK","next","2750520SjpYLF","726777FipeEO","5849184lqyNBg","330OziWaZ","monitor","__awaiter","_isMonitoring","p2pLoader","getPeers","isEnabled","5978301YNONev","lastDownloadedSegment","38470JGIxRY","5122224ORrivi","length","apply","_lastPingBroadcast","timeBetweenBurstsMilliseconds","3753bKviKI","newDownloadedSegment","now","getPeersWithContent","_pingBroadcastTimeInSeconds","value","testPeer","ping","pingTime","values"];return(j=function(){return e})()}function W(e,t){let i=j();return(W=function(e,t){return i[e-=311]})(e,t)}let Y=W;!function(e){let t=W,i=e();for(;;)try{if(884629==parseInt(t(311))/1*(parseInt(t(319))/2)+parseInt(t(317))/3+-parseInt(t(329))/4+parseInt(t(316))/5+-parseInt(t(318))/6+parseInt(t(326))/7*(-parseInt(t(314))/8)+parseInt(t(334))/9*(parseInt(t(328))/10))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(j);class K{constructor(e){this[Y(313)]=new Map,this[Y(342)]=new Map,this[Y(322)]=!1,this[Y(338)]=60,this[Y(332)]=Date[Y(336)](),this[Y(323)]=e}[Y(335)](e){this[Y(327)]=e}[Y(320)](){var e,t,i,s;return e=this,t=void 0,s=function*(){let e=W;if(!this[e(322)])for(this[e(322)]=!0;;){if(Date[e(336)]()-this[e(332)]>1e3*this[e(338)])for(let t of this[e(323)][e(324)]()[e(343)]())this.testPeer(t);else{for(;!this[e(327)];)yield new Promise(e=>setTimeout(e,1e3));let t=this[e(323)][e(337)](this[e(327)]);t[e(330)]>0&&this.testPeer(t[0])}yield new Promise(t=>setTimeout(t,o.wc[e(333)]))}},new(i=void 0,i=Promise)(function(n,r){let a=W;function o(e){let t=W;try{u(s[t(315)](e))}catch(e){r(e)}}function l(e){let t=W;try{u(s[t(312)](e))}catch(e){r(e)}}function u(e){var t;let s=W;e.done?n(e[s(339)]):((t=e[s(339)])instanceof i?t:new i(function(e){e(t)})).then(o,l)}u((s=s[a(331)](e,t||[]))[a(315)]())})}[Y(340)](e){this.p2pLoader[Y(325)]()&&e[Y(341)](e.id)}static getInstance(e){return null!=e&&(this._instance=new K(e)),this._instance}}let z=Q;function J(){let e=["map","yes","length","_minResponseBytes","Warning","consecutiveHaveSegment","getStats"," audio -> ","WebRtcEvents"," peer-timeouts: ","_minResponseTime","422497vjLJaB","_availablePeersMap"," | ","_uplodadedPeers","P2P MAP send map to peer ","_timeoutRequests","isBehind","sendNewSegmentAvailable","getLastDownloadsTraffic","forEach","origRes","getDownloadBandwidth","getLastResponses","_chunkDownloadCount","_minPeersParallelUsed","964xNeMTH","_maxPeersAvailable","_peersUsed","_storage","getMaxPeers","4137138emuSae","announcedP2P","_totalPeerSet","initialBw","getMissingPeers","add","isMaxPeers","updatePeerMetrics","P2P ADDPEERCANDIDATE - received message from ","data","_maxResponseTime","_samplesNetworkLatency","_bannedPeers","3305360YuXdIe","has","_performReset","maxConnectedPeers","trackerAnnounce","peerSegmentLoaded","disable","_options","debug","getInstance","getSegmentMap","P2P New peer candidate ","addPeerRe
1sponse","_peersAvailable","4646292JeNhOO","peerCanceledSegmentUpload","_chunkUploadDiscardedCount","_sumThroughput","Already banned peer -> ","setSettings","get","_offerInterval","delete","getPeersAhead","_downloadedChunksVideo","_downloadedBytesVideo","random","createMap","BANNING Peer -> ","getPeersBehind","setContent","getOldestRequestTS","_maxThroughput","_accountCode","_samplesResponseTime","time","error","getId","P2P Unable to request to more peers max concurrency (","getSegment","pathname","undefined","Problem max concurrency ","videoId","_maxResponseBytes","avgPingTime","concat","rendition","_p2pManager","p2pId","_minNetworkLatency","P2P Requesting segment ","_sendMapToAllPeersV0","max","_uploadRequestsFailed","_minBandwidth","Active downloads vs max concurrencui P2PMO -> ","P2P Requesting new segment ","slice","_byteDownloadCount","_accumBw","indexOf","isAhead","P2P Error: ","sort","_cdnObject","splice","consumeOnly","getLastBandwith","_activeDownloads","_segmentAbsentRequests","resetP2PConnection","enable","_byteUploadCount","_activePeerSet","rejoin","getUploadedBytes","p2p","_errorRequests","_timeoutDiscardedBytes","getCdnObject","P2PSMAP new segment to all peers: ","getUploadedUniqPeers","_maxNetworkLatency","getPeersWithContent","getTotalSendTime","_isEnabled","getMaxPingTime"," SM Size-> ","_segmentsRequested","P2P support enabled ","realBodySize","bind","setBandwidth","getPeers","_errorListener"," not available ","Constants","sendJoin","onConnected","_packageFound","_byteUploadDiscardedCount","_candidates","531102IzYZOJ","endTime","getMaxSize","peerCloseListener","P2PManager","_downloadMillisVideo","getAvgPingTime","_sumNetworkLatency","getLastLatencyP2P","isEnabled","destroy","upload","now"," pos: ","_minPeersAvailable","MAX_SAFE_INTEGER","_sendMapToPeer","timeouts","_sumResponseTime","maxParallelP2PDownloads","_minThroughput","_maxConcurrent","_peerConnectionTime",") already reached","sendNoSegment","isAudio","https://localhost","_chunkUploadCount","_cdnPingTimeBean","request","_failedRequests","_samplesThroughput","byteLength"," peers: ","_peersParallelUsed","verbose","P2P support disabled.","_warningListener","_peers","_peerDiscoveryTime","onDiscovery","_downloadMillis","getBannedPeers","_activeDownloadIds","_maxConnectedPeers","_maxBandwidth","sendMap","storeSegment","5442EbhuPx","_destroyed","startMonitoring","_updatePeersMetricsRefCounter","noContentObtained","min","_sumVideoTime","push","resource"," available from peer ","40VGsEDA","maxConcurrency","onOffer","peerRequestsPerAnnounce","lastMeasurementWeight","getUploadedChunks","_maxPeersParallelUsed","P2P Warning ","enabled","CREATEPEERCONNECTING","triedP2P","Already have max peers","_monitoringStarted","peerFailedSegmentTimeout","monitor","_samplesResponseBytes","getVersion","getLastUploadsTraffic","set","_sumVideoBytes","size","createdAt","trunc","1423812PKGBtP"," size -> ","sendSegment","addResponse","values","_sendNewSegmentToAllPeersV1","_uploadRequests","addPeerCandidate","getMinPingTime","_sumResponseBytes"," last msg -> "];return(J=function(){return e})()}function Q(e,t){let i=J();return(Q=function(e,t){return i[e-=328]})(e,t)}!function(e){let t=Q,i=e();for(;;)try{if(812666==-parseInt(t(442))/1+-parseInt(t(420))/2+-parseInt(t(387))/3*(parseInt(t(457))/4)+parseInt(t(475))/5+parseInt(t(339))/6+-parseInt(t(489))/7+-parseInt(t(397))/8*(-parseInt(t(462))/9))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(J);class ${constructor(e,t,i){let s=Q;this[s(350)]=o.LI.upload,this[s(561)]=!1,this._packageFound=!1,this[s(360)]=o.LI[s(398)],this._maxConnectedPeers=o.LI[s(478)],this[s(377)]=new Map,this._bannedPeers=new Map,this[s(338)]=new Map,this[s(544)]=0,this[s(564)]=new Map,this[s(382)]=[],this._monitoringStarted=!1,this[s(477)]=!1,this._downloadedPeers=new Map,this[s(445)]=new Map,this[s(384)]=0,this[s(530)]=Number[s(354)],this._timeoutDiscardedBytes=0,this[s(369)]=0,this[s(447)]=0,this[s(545)]=0,this[s(553)]=0,this[s(380)]=0,this[s(534)]=0,this._chunkDownloadCount=0,this[s(464)]=new Set,this._activePeerSet=new Set,this[s(443)]=new Map,this[s(390)]=0,this[s(496)]=45e3,this._accumBw=V[s(465)],this[s(344)
1]=0,this[s(500)]=0,this[s(499)]=0,this._byteUploadDiscardedCount=0,this[s(491)]=0,this[s(366)]=0,this[s(548)]=0,this[s(426)]=0,this[s(529)]=0,this[s(388)]=!1,this._accountCode=e,this[s(482)]=t,this[s(460)]=i,this[s(540)]=new V("P2P","P2P","","","",1,!1,0,0,!1,!1),this[s(540)][s(329)](this[s(535)]),this._cdnObject.setLastResponses(this.getLastResponses()),this._cdnPingTimeBean=new H,window[s(343)]?this[s(336)]=!0:r.default.notice(a.BalancerTag,"P2P dependency does not exist. Disabling P2P!")}[z(348)](){return this[z(336)]&&this[z(561)]}[z(547)](){this[z(561)]=!0}[z(481)](){this[z(561)]=!1}getStorage(){return this[z(460)]}[z(557)](){return this[z(445)][z(417)]}[z(498)](){let e=0;for(let t of this[z(377)][z(424)]())t[z(537)]&&e++;return e}[z(504)](){let e=0;for(let t of this[z(377)][z(424)]())t[z(448)]&&e++;return e}getPeersNothing(){let e=0;for(let t of this[z(377)][z(424)]())t[z(537)]||t.isBehind||e++;return e}[z(512)](){var e;return null==(e=this._p2pManager)?void 0:e[z(512)]()}[z(555)](){return this._cdnObject}[z(546)](){this._performReset=!0}[z(334)](){var e,t;if(this._packageFound&&this[z(561)]){let i=new URL(null!=(e=this[z(482)].resource)?e:"https://localhost"),s=this._accountCode+(this[z(482)][z(518)]||i[z(515)]);null==(t=this._p2pManager)||t[z(550)](s)}}[z(494)](e){var t;if(this[z(336)]&&!this[z(561)])if(e[z(552)]&&e[z(552)][z(405)]){this[z(561)]=!0,this[z(350)]=!e[z(552)][z(542)]||o.LI.upload,this[z(360)]=e[z(552)][z(358)]||o.LI[z(398)],this._maxConnectedPeers=e[z(552)].maxConnectedPeers||o.LI.maxConnectedPeers;let i=new URL(null!=(t=this[z(482)][z(395)])?t:z(365)),s=this[z(508)]+(this[z(482)][z(518)]||i[z(515)]);this[z(523)]=new window[z(343)](this,s,{tracker:e[z(552)][z(479)]||o.LI.tracker,accountCode:this[z(508)],announcePeers:e.p2p[z(400)]}),this[z(523)].on(window[z(343)][z(333)][z(439)].Error,$[z(331)][z(328)](this)).on(window[z(343)][z(333)][z(439)][z(435)],$[z(376)][z(328)](this)).start(),r.default[z(483)](a.BalancerTag,z(565)+this.getId())}else r.default[z(483)](a.BalancerTag,z(375)),this[z(561)]=!1}[z(389)](){this[z(409)]||(this[z(409)]=!0,K[z(484)]()[z(411)]())}[z(468)](){return this[z(377)].size>this._maxConnectedPeers&&(r.default[z(374)](a.BalancerTag,"Max peers reached -> "+this[z(377)][z(417)]),!0)}[z(466)](){return this._maxConnectedPeers-this[z(377)][z(417)]}[z(461)](){return this[z(383)]}[z(381)](){return this[z(474)]}getUploadRequests(){return this[z(426)]}getUploadRequestsFailed(){return this[z(529)]}[z(514)](e){return this[z(460)][z(514)](e.p2pId)}[z(559)](e){if(this._destroyed||0==this[z(377)].size)return[];let t=[];for(let i of this._peers[z(424)]())if(0==i[z(485)]()[z(433)]){let e=Date[z(351)]()-i.getLastSegmentDataMessagesTime();(e>3e4&&2>i.getSegmentDataMessages()||e>12e4)&&(this[z(474)][z(415)](i.id,!0),i[z(349)](),this[z(342)](i),r.default.verbose(a.BalancerTag,z(503)+i.id+z(563)+i[z(485)]()[z(433)]+z(430)+e/1e3+"s messages: "+i.getSegmentDataMessages()))}else(!i.isDownloading()||i[z(413)]()>=2)&&i[z(485)]()[z(433)]>0&&i[z(485)]()[z(536)](e[z(524)])>=0&&t.push(i);if(0==t[z(433)])return[];let i=[];for(let e of t)e.getLastLatencyP2P()>0&&5>e[z(347)]()&&i[z(394)](e);if(0==i[z(433)])for(let e of t)e.getLastLatencyP2P()>0&&7>e[z(347)]()&&i.push(e);if(0==i.length){let e=[];for(let s of t)0==s[z(543)]()&&0==s.timeouts&&i[z(394)](s),s[z(543)]()>0&&e[z(394)](s);i=(e=e.sort((e,t)=>t.getLastBandwith()-e[z(543)]()))[z(433)]<4?i[z(521)](e):i[z(521)](e[z(533)](0,3))}return 0==i[z(433)]&&(i=t),i}[z(368)](e,t){var i,s,n;if(!this[z(336)])return!1;if(r.default[z(374)](a.BalancerTag,z(531)+this[z(544)]+" "+this[z(360)]),this[z(544)]>this[z(360)]&&r.default[z(374)](a.BalancerTag,z(517)+this._activeDownloads),!(this._activeDownloads<=this[z(360)]))return r.default[z(483)](a.BalancerTag,z(513)+this[z(360)]+z(362)),!1;{r.default.verbose(a.BalancerTag,z(532)+e[z(524)]+z(444)+(null==(i=e[z(522)])?void 0:i.isAudio)+z(372)+this._peers[z(417)]);let t=this[z(559)](e);if(t[z(433)]>0){let i=Array.from(t)[z(539)]((e,t)=>.5-Math[z(501)]())[0];return this[z(564)][z(415)](e[z(524)],e),this[z(544)]++,e[z(407)]=!0,i[z(368)](e[z(524)]),e.peer=i,i[z(436)]++,r.default[z(374)](a.BalancerTag,"P2PRS Requesting segment "+e[z(524)]+" audio -> "+(null==(s=e.rendition)||s[z(364)],z(432),"no")+z(396)+i.id+z(421)+i[z(485)]()[z(433)]+z(352)+i[z(485)]().indexOf(e[z(524)])+z(440)+i[z(356)]),!0}}return r.default[z(374)](a.BalancerTag,z(526)+e.p2pId+z(438)+(null==(n=e[z(522)])?void 0:n[z(364)])+z(332)),!1}[z(487)](e){this[z(540)][z(423)](e)}getLastResponses(){return Array.from(this[z(377)][z(424)]())[z(431)](e=>e[z(454)]()).reduce((e,t)=>
1[...e,...t],[])[z(539)]((e,t)=>t[z(510)]-e[z(510)])}addPeerLatency(e){this[z(367)][z(467)](e),this[z(540)][z(520)]=this[z(367)][z(345)](),typeof this._sumNetworkLatency===z(516)?this._sumNetworkLatency=e:this[z(346)]+=e,typeof this[z(525)]===z(516)?this[z(525)]=e:this._minNetworkLatency=Math[z(392)](this[z(525)],e),void 0===this[z(558)]?this[z(558)]=e:this[z(558)]=Math[z(528)](this[z(558)],e),typeof this[z(473)]===z(516)?this[z(473)]=1:this[z(473)]+=1}static[z(331)](e){r.default[z(511)](a.BalancerTag,z(538),e)}static[z(376)](e){r.default.warn(a.BalancerTag,z(404),e)}[z(386)](e){if(this[z(350)]){let t=this[z(460)].storeSegment(e);!e.announcedP2P&&t&&(e[z(463)]=!0,this[z(425)](e),this[z(527)]());let i=this[z(382)][z(536)](e.p2pId);i>=0&&this._activeDownloadIds[z(541)](i)}else if(!e.announcedP2P){e[z(463)]=!0;let t=this[z(460)].createMap();this[z(377)][z(451)](e=>{e[z(385)](t)})}}[z(527)](){if(this[z(388)])return;let e=this[z(460)][z(502)](),t=Date[z(351)]()-this._storage.getLastSegmentCreatedAt();r.default[z(374)](a.BalancerTag,"P2PSMAP Send map all v0 size: "+e.length+" / "+this[z(377)][z(417)]+" delay "+t),e[z(433)]>0&&this._peers[z(451)](t=>{0==t[z(413)]()&&t.sendMap(e)})}[z(425)](e){if(this._destroyed)return;let t=this[z(460)].createMap();r.default.verbose(a.BalancerTag,z(556)+t[z(433)]),t.length>0&&this[z(377)].forEach(t=>{t.getVersion()>0&&t[z(449)](e[z(524)],e[z(417)],this[z(460)][z(341)](),e[z(418)])})}_sendMapToPeer(e){if(this[z(388)])return;let t=this._storage[z(502)]();r.default[z(374)](a.BalancerTag,z(446)+t[z(433)]+" "+e);let i=!1;this[z(377)][z(451)](s=>{s.id==e&&(s.sendMap(t),i=!0)}),i||r.default.verbose(a.BalancerTag,"Problem peer doen't exists?")}[z(427)](e,t){var i;if(!this[z(388)])if(this._availablePeersMap.set(e.id,Date[z(351)]()),null==this._bannedPeers[z(495)](e.id))if(r.default[z(374)](a.BalancerTag,z(470)+e.id+" "),this[z(468)]())r.default[z(483)](a.BalancerTag,z(408));else{if(!this[z(377)].has(e.id)){this[z(338)][z(476)](e.id)||this[z(338)][z(415)](e.id,[]);let s=new C(this,e,t);null==(i=this[z(338)].get(e.id))||i[z(394)](s),r.default[z(374)](a.BalancerTag,z(486)+s.id)}this[z(469)]()}else r.default[z(483)](a.BalancerTag,z(493)+e.id)}peerConnect(e){var t;r.default[z(374)](a.BalancerTag,z(406)),this[z(388)]||(this[z(443)][z(415)](e.id,Date[z(351)]()),this[z(381)]()[z(495)](e.id)||(this[z(468)]()?r.default[z(483)](a.BalancerTag,z(408)):(this[z(377)].has(e.id)?(r.default[z(483)](a.BalancerTag,"P2P peer already exist. "+e.id),e[z(349)]()):(r.default[z(483)](a.BalancerTag,"P2P adding the candidate. "+e.id),this[z(377)][z(415)](e.id,e),this[z(549)][z(467)](e.id),this._totalPeerSet[z(467)](e.id),null==(t=this._candidates.get(e.id))||t[z(451)](t=>{e!=t&&t[z(349)]()}),this[z(338)][z(497)](e.id),this[z(355)](e.id)),this[z(469)]())))}peerCloseListener(e){this[z(377)].delete(e.id),this._activePeerSet[z(497)](e.id);let t=this[z(338)][z(495)](e.id);if(t){let i=t[z(536)](e);i>-1&&(t[z(541)](i,1),t[z(433)]||this[z(338)].delete(e.id))}this[z(469)]()}peerSegmentUploadRequest(e,t,i){this._uploadRequests++;let s=this[z(445)].get(e.id);if(null==s&&(s=0),this[z(445)][z(415)](e.id,s),this._destroyed)return;let n=this[z(460)][z(514)](t),o=!1;n&&n[z(471)][z(371)]>1?(e[z(422)](t,n,i),o=!0):(e[z(363)](t,i),this[z(355)](e.id),this._uploadRequestsFailed++),r.default.verbose(a.BalancerTag,"P2PUR Peer requested segment -> "+o+z(444)+t+" "+(null==n?void 0:n[z(417)])+" "+(null==n?void 0:n[z(471)][z(371)])+z(444)+e.id+" "+i+" "+(null==n?void 0:n[z(452)]))}[z(480)](e,t,i,s){var n;this[z(544)]--,this[z(455)]++,this[z(380)]+=i,this[z(534)]+=s[z(371)],typeof this[z(429)]===z(516)?this[z(429)]=s[z(371)]:this[z(429)]+=s[z(371)],typeof this._minResponseBytes===z(516)?this._minResponseBytes=s[z(371)]:this[z(434)]=Math.min(this._minResponseBytes,s[z(371)]),void 0===this[z(519)]?this._maxResponseBytes=s[z(371)]:this[z(519)]=Math[z(528)](this._maxResponseBytes,s[z(371)]),typeof this[z(412)]===z(516)?this[z(412)]=1:this[z(412)]+=1,null==(n=this[z(564)][z(495)](t))||n[z(505)](s);let r=Math[z(419)](s[z(371)]/(i/1e3));this[z(535)]=this._accumBw!==V[z(465)]?Math.trunc(this[z(535)]*(1-o.Zq[z(401)])+r*o.Zq.lastMeasurementWeight):r,this._cdnObject[z(329)](this._accumBw),typeof this[z(492)]===z(516)?this[z(492)]=r:this[z(492)]+=r,void 0===this[z(359)]?this[z(359)]=r:this[z(359)]=Math[z(392)](this[z(359)],r),typeof this._maxThroughput===z(516)?this[z(507)]=r:this[z(507)]=Math.max(this[z(507)],r),typeof this._samplesThroughput===z(516)?this[z(370)]=1:this[z(370)]+=1,void 0===this[z(416)]?this[z(416)]=s[z(371)]:this[z(416)]+=s.byteLength,void 0===this[z(393)]?this[z(393)]=i:this[z(393)]+=i,typeof this[z(357)]===z(516)?this._sumResponseTime=i:this[z(357)]+=i,typeof this[z(441)]===z(516)?this._minResponseTime=i:this[z(441)]=Math.min(this._minResponseTime,i),typeof this[z(472)]===z(516)?this[z(472)]=i:this[z(472)]=Math[z(528)](this[z(472)],i),typeof this[z(509)]===z(516)?this._samplesResponseTime=1:this[z(509)]+=1;let a=this[z(564)][z(495)](t);if(a){let e=a.route;o.Y4[z(451)](t=>{e.indexOf(t)>=0&&(null==a[z(522)]||!a[z(522)][z(364)])&&(this[z(344)]+=i,this[z(500)]+=s[z(371)],this[z(499)]++)}),a[z(340)]=Date[z(351)](),a[z(566)]=s[z(371)],this[z(386)](a),this._segmentsRequested[z(497)](t)}}peerSegmentProgress(e,t,i,s,n){if(0==n)return;let r=this[z(564)][z(495)](t);if(r&&(r[z(340)]=Date[z(351)]()),r&&!this[z(460)][z(514)](r.id)&&
1(n>0&&(r[z(566)]=n),this[z(386)](r)),r&&(r[z(471)]=s),r&&r.id){let e=this[z(460)][z(514)](r.id);e&&(e[z(471)]=s)}}[z(410)](e,t,i){var s;this[z(554)]+=i||0,this[z(447)]++,this[z(544)]--,this[z(369)]++,null==(s=this[z(564)].get(t))||s[z(391)](),this._segmentsRequested.delete(t)}peerFailedSegmentAbsent(e,t){var i;this._segmentAbsentRequests++,this[z(544)]--,this._failedRequests++,null==(i=this[z(564)][z(495)](t))||i.noContentObtained(),this[z(564)][z(497)](t)}peerSegmentUpload(e){this._byteUploadCount+=e,this[z(366)]++}[z(551)](){return this[z(548)]}[z(402)](){return this[z(366)]}[z(490)](e){this[z(337)]+=e,this._chunkUploadDiscardedCount++}[z(349)](){if(this._p2pManager)try{this[z(523)][z(349)](),delete this[z(523)]}catch(e){}for(let[,e]of this[z(338)])e[z(451)](e=>{e[z(349)]()});for(let[,e]of this[z(377)])e[z(349)]();try{this[z(388)]=!0,this[z(460)][z(349)]()}catch(e){}}[z(506)](){let e=Date[z(351)]();return this[z(377)].forEach(t=>{let i=t[z(506)]();i&&(e=Math[z(392)](e,i))}),e}[z(330)](){return this[z(377)]}[z(437)](){let e=0,t=0,i=0,s=0,n=0;return this[z(377)][z(451)](r=>{r[z(453)]()>0&&(e+=r[z(453)](),this[z(384)]=Math[z(419)](Math[z(528)](this[z(384)],r.getDownloadBandwidth())),this[z(530)]=Math[z(419)](Math.min(this[z(530)],r[z(453)]())),t++),i+=r[z(450)](),s+=r[z(414)](),n+=r[z(560)]()}),e/=t||1,e=Math[z(419)](e),{downloadEnabled:!0,uploadEnabled:this[z(350)],uploadedBytes:this[z(548)],uploadedTime:n,uploadedChunks:this[z(366)],discardedUploadedChunks:this[z(491)],discardedUploadedBytes:this._byteUploadDiscardedCount,downloadedSegments:this[z(455)],downloadedBytes:this[z(534)],discardedDownloadedBytes:this._timeoutDiscardedBytes,failedRequests:{total:this[z(369)],absent:this[z(545)],timeout:this._timeoutRequests,error:this._errorRequests},activePeers:this._peers[z(417)],totalPeers:this[z(377)][z(417)],downloadMillis:this[z(380)],maxBandwidth:this._maxBandwidth,minBandwidth:this[z(530)],downloadAvgBw:e,lastSecondsDownloadTraffic:i,lastSecondsUploadTraffic:s,downloadMillisVideo:this._downloadMillisVideo,downloadBytesVideo:this[z(500)],downloadChunksVideo:this[z(499)],avgPingTime:this[z(367)][z(345)](),minPingTime:this[z(367)][z(428)](),maxPingTime:this[z(367)][z(562)](),sumResponseBytes:this[z(429)],minResponseBytes:this._minResponseBytes,maxResponseBytes:this[z(519)],samplesResponseBytes:this._samplesResponseBytes,sumResponseTime:this[z(357)],minResponseTime:this[z(441)],maxResponseTime:this[z(472)],samplesResponseTime:this[z(509)],sumNetworkLatency:this[z(346)],minNetworkLatency:this._minNetworkLatency,maxNetworkLatency:this._maxNetworkLatency,samplesNetworkLatency:this[z(473)],sumThroughput:this[z(492)],minThroughput:this[z(359)],maxThroughput:this[z(507)],samplesThroughput:this[z(370)],sumVideoBytes:this[z(416)],sumVideoTime:this[z(393)],peersAvailable:this[z(488)],maxPeersAvailable:this[z(458)],minPeersAvailable:this[z(353)],peersUsed:this._peersUsed,peersParallelUsed:this[z(373)],maxPeersParallelUsed:this[z(403)],minPeersParallelUsed:this[z(456)],peerDiscoveryTime:this[z(378)],peerConnectionTime:this._peerConnectionTime}}resetOnPing(){this._sumResponseBytes=void 0,this[z(434)]=void 0,this._maxResponseBytes=void 0,this[z(412)]=void 0,this._sumResponseTime=void 0,this[z(441)]=void 0,this[z(472)]=void 0,this[z(509)]=void 0,this._sumNetworkLatency=void 0,this[z(525)]=void 0,this[z(558)]=void 0,this._samplesNetworkLatency=void 0,this[z(492)]=void 0,this[z(359)]=void 0,this[z(507)]=void 0,this[z(370)]=void 0,this[z(416)]=void 0,this[z(393)]=void 0,this[z(361)]=void 0,this[z(378)]=void 0,this[z(390)]=0}
1[z(399)](e,t){this[z(496)]=t,this[z(443)][z(415)](e,Date[z(351)]())}[z(469)](){let e=Date[z(351)]()-this[z(496)]+15e3;this[z(443)][z(451)]((t,i)=>{t<e&&this[z(443)].delete(i)}),this[z(390)]++,this[z(459)]=this[z(377)][z(417)],this._peersParallelUsed=this._activePeerSet.size,this[z(488)]=this[z(443)][z(417)],1==this._updatePeersMetricsRefCounter?(this._minPeersParallelUsed=this[z(549)][z(417)],this[z(403)]=this[z(549)][z(417)],this._minPeersAvailable=this[z(443)][z(417)],this._maxPeersAvailable=this._availablePeersMap[z(417)]):((null==this._minPeersParallelUsed||this._minPeersParallelUsed>this[z(549)][z(417)])&&(this[z(456)]=this._activePeerSet[z(417)]),(null==this[z(403)]||this[z(403)]<this[z(549)].size)&&(this[z(403)]=this[z(549)][z(417)]),(null==this[z(353)]||this[z(353)]>this[z(443)].size)&&(this[z(353)]=this._availablePeersMap[z(417)]),(null==this[z(458)]||this[z(458)]<this[z(443)].size)&&(this[z(458)]=this[z(443)][z(417)]))}[z(335)](e){this._peerConnectionTime=e}[z(379)](e){this[z(378)]=e}}function Z(){let e=["2216644vsMDGL","useP2P","delete","name","currentCDN","minimumDurationSinceLastUsedForTrialMilliseconds","getLastResponse","set","lastUpdatedState","37577khFjSd","isManifest","toFixed","getBandwidth","828768byCcgs"," Active switching method -> "," for "," Mbps","getBandwidthInBits","Original","floor","_p2pLoader","size","random","get","qualityPriority","Performing probe to ","_activeSwitching","_getNotUsedCdn","clear","5859480OEZQhq","sort"," of ","_cdnList","13639420nRLeDP","_bestScoredCdn"," is: ","getPeersWithContent","maximumRelativeDeltaForTrial","now","forEach","trim","from","verbose","_qualityPriority","values","363376YoWEez","length","splice","getCDN","active","cdnPriority","push","Current bandwidth for ","196mscCeV","18WaNlaM","banned","34gtklXH","CDN Candidates -> ","filter","_bandwidthThreshold","noProbing","Estimated bandwidth based on ","time","isChecked","_options","latency","some","avgPingTime","_getCdnToProbe"," highest segment bandwidth -> ","indexOf","_highetsSegmentBandwidth","debug","_cdnPriority","usedOnce","1359980UfSFws"];return(Z=function(){return e})()}let ee=et;function et(e,t){let i=Z();return(et=function(e,t){return i[e-=107]})(e,t)}!function(e){let t=et,i=e();for(;;)try{if(691426==parseInt(t(165))/1*(-parseInt(t(136))/2)+-parseInt(t(169))/3+-parseInt(t(156))/4+-parseInt(t(155))/5+parseInt(t(109))/6+parseInt(t(133))/7*(-parseInt(t(125))/8)+-parseInt(t(134))/9*(-parseInt(t(113))/10))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(Z);class ei{constructor(e,t,i,s,n,r){let a=et;this[a(112)]=e,this[a(182)]=s,this._bandwidthThreshold=t,this[a(151)]=i,this[a(176)]=n,this[a(144)]=r}[ee(128)](e,t){let i=ee(174),s=new Map,n=0,l=!0;if(this[ee(112)][ee(119)](function(e,t){n+=e.downloadedChunks,!e[ee(135)]&&e.active&&(s[ee(163)](t,e),l=!1)}),l&&(s[ee(108)](),this._cdnList[ee(119)](function(e,t){e[ee(129)]&&(e[ee(135)]=!1,s[ee(163)](t,e))})),0!==this[ee(176)][ee(116)](e)[ee(126)]&&e.useP2P||s[ee(158)]("P2P"),r.default[ee(122)](a.BalancerTag,ee(137)+s[ee(177)]+ee(111)+this[ee(112)].size+ee(170)+this._activeSwitching),s[ee(158)](ee(174)),0==s.size)return i=ee(174),!this[ee(182)]&&n>0&&(i=t[ee(160)]),t.currentCDN=i,0===i.length?ee(174):i;if(s.size>0)if(this[ee(182)])switch(t[ee(160)],this[ee(182)]){case o.m[ee(180)]:i=this[ee(123)](e,s,t);break;case o.m.cdnPriority:i=this[ee(153)](e,s,t);break;default:let u;i=null===(u=this[ee(114)](e,s))?"":u[ee(159)]}else{let r;null===(r=this[ee(114)](e,s))||r[ee(143)]()?i=0!==n||e[ee(166)]?t.currentCDN:"":(t.currentCDN=i=r.name,r.setChecked())}return i&&""!=i[ee(120)]()?i:"Original"}_qualityPriority(e,t,i){let s=this._options[ee(140)]?new Map(this[ee(112)]):t;0===this[ee(176)].getPeersWithContent(e).length&&s[ee(158)]("P2P");let n=this[ee(148)](s,o.m[ee(180)],i.currentCDN);if(n)return r.default[ee(152)](a.BalancerTag,ee(181)+n[ee(159)]),i[ee(160)]=n[ee(159)],n[ee(159)];let l=this[ee(107)](e);if(l)return r.default[ee(152)](a.BalancerTag,"Selected "+l+" because not used yet"),l;let u="",d=0;return t[ee(119)](e=>{let t=e.getVideoBandwidth();r.default[ee(122)](a.BalancerTag,e[ee(159)]+" reference bandwidth "+t/1e6+" | estimated bandwidth "+e[ee(168)]()+ee(149)+this[ee(151)]/1e6),d<e[ee(168)]()&&(d=e[ee(168)](),u=e[ee(159)])}),r.default[ee(152)](a.BalancerTag,"Fastest CDN is -> "+u),i[ee(160)]=u,u}_cdnPriority(e,t,i){var s,n;let l=this[ee(144)][ee(140)]?new Map(this[ee(112)]):t;0===this[ee(176)][ee(116)](e)[ee(126)]&&l[ee(158)]("P2P");let u=this[ee(148)](l,o.m.cdnPriority,i[ee(160)]);if(u)return r.default[ee(152)](a.BalancerTag,ee(181)+u[ee(159)]),i.currentCDN=u[ee(159)],u[ee(159)];let d=Array[ee(121)](t[ee(124)]())[ee(138)](e=>e[ee(173)]()/1e3>this[ee(139)]&&!e[ee(135)]);if(!d[ee(146)](e=>
1e[ee(159)]===i[ee(160)])){let e=t[ee(179)](i.currentCDN);e&&(e[ee(164)]=3)}let h=null!=(n=null==(s=d[0])?void 0:s.name)?n:"";if(""===h){let e=Array[ee(121)](t.values());e.sort((e,t)=>t[ee(168)]()-e[ee(168)]()),h=e[0][ee(159)]}return i.currentCDN=h,h}[ee(114)](e,t){var i;return null!=(i=Array[ee(121)](t[ee(124)]())[0])?i:null}[ee(107)](e){let t=[];for(let[e,i]of this[ee(112)])!i.active||i.banned||i[ee(154)]||t.push(i[ee(159)]);if(0===this._p2pLoader.getPeersWithContent(e)[ee(126)]||!e[ee(157)]){let e=t[ee(150)]("P2P");e>-1&&t[ee(127)](e,1)}if(0==t.length)return;let i=t[Math[ee(175)](Math[ee(178)]()*t[ee(126)])],s=this[ee(112)].get(i);return null!=s&&(s[ee(154)]=!0),i}[ee(148)](e,t,i){let s=Array[ee(121)](e[ee(124)]())[ee(138)](e=>e[ee(159)]!==i);if(t===o.m[ee(130)])for(let[t,n]of(s=[],e)){if(t===i)break;s[ee(131)](n)}s[ee(110)]((e,t)=>e.getLastResponse()[ee(142)]-t.getLastResponse()[ee(142)]);let n=e[ee(179)](i);if(!n)return;let l=n[ee(147)],u=n[ee(173)](),d=t===o.m.cdnPriority?1e3*this._bandwidthThreshold:n[ee(173)](),h=s[ee(138)](e=>{if(Date[ee(118)]()-e[ee(162)]()[ee(142)]>=o.Zq[ee(161)])return!0;let t=!0===this[ee(144)][ee(140)],s=t?e.getBandwidthInBits():l*u/e[ee(147)];return r.default[ee(152)](a.BalancerTag,ee(141)+(t?"last bandwidth":ee(145))+ee(171)+e[ee(159)]+ee(115)+(s/1e6).toFixed(2)+ee(172)),r.default[ee(152)](a.BalancerTag,ee(132)+i+": "+(u/1e6)[ee(167)](2)+ee(172)),(s-d)/d>=-o.Zq[ee(117)]});return 0===h[ee(126)]?void 0:h.sort((e,t)=>e[ee(162)]()[ee(142)]-t.getLastResponse()[ee(142)])[0]}}let es=er;!function(e){let t=er,i=e();for(;;)try{if(279980==parseInt(t(378))/1*(-parseInt(t(334))/2)+-parseInt(t(398))/3*(-parseInt(t(335))/4)+-parseInt(t(366))/5*(parseInt(t(323))/6)+parseInt(t(420))/7+parseInt(t(353))/8*(parseInt(t(381))/9)+parseInt(t(394))/10*(-parseInt(t(399))/11)+parseInt(t(393))/12*(parseInt(t(352))/13))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(ea);var en=function(e,t,i,s){return new(i||(i=Promise))(function(n,r){let a=er;function o(e){let t=er;try{u(s[t(361)](e))}catch(e){r(e)}}function l(e){let t=er;try{u(s[t(370)](e))}catch(e){r(e)}}function u(e){var t;let s=er;e.done?n(e.value):((t=e[s(327)])instanceof i?t:new i(function(e){e(t)})).then(o,l)}u((s=s[a(418)](e,t||[]))[a(361)]())})};function er(e,t){let i=ea();return(er=function(e,t){return i[e-=322]})(e,t)}function ea(){let e=["__awaiter","active","?rnpaw=","testCdn","get","5384353ouaPGA","379448SFJsiQ","lastDownloadedSegment","stopMonitor","includes","error","Range","set","setRequestHeader","next","getInstance","onCodavelFailedResponse"," // ","probingPolicy","110155NaCMVE","getNextProbingSegment","noProbing","BANNING CDN ","throw","pingsTime","_instance","getMaxPingTime","highestPingTime","timeBetweenBurstsMilliseconds","GET","lastPingTime","7llPSAk","values","status","27NGnBeE","lastUpdatedState","bannedCount","setLoader","updateUrl","getTime","probeOnlyOnBanned","monitor","send","_afterCheck","bytes=1-1","UNABLE TO GENERATE URL FOR PROBING CHECK ","24holuZe","20wyVHhw","name","now","unbannedTime","87ZPiFHG","2469093oDVtOw","banned","isRangeCompatible","loader","avgPingTime","url","verbose","getMinPingTime","HEALTHY CDN ","getAvgPingTime","timeBetweenCallsMilliseconds","bannedTime","provider","_performCheck","P2P","timestamp","lowestPingTime","auth","timeout","apply","_performGetCheck","844935RMWqxJ","BANNING CDN DUE TO TIMEOUT ","shouldMonitor","84qVNKAL","_isMonitoring","add","unBannedCount","value","random","callTimeoutMilliseconds","isCodavel","&rnpaw=","warn","setHeadOnBannedOnly","90014WnIRMx","36004dPcUzg","CDNLoader","_performHeadCheck","PINGTIME No available resources to test ","setNoProbing","ontimeout","onCodavelSucessfullResponse","ORIGINAL","bannedRefTicToc","HEAD","monitoring","_cdns"];return(ea=function(){return e})()}class eo{constructor(){this[es(371)]=new Map,this[es(345)]=new Map,this._isMonitoring=!1,this[es(346)]=new Map,this.shouldMonitor=!0,this.probeOnlyOnBanned=!1,this.noProbing=!1}static[es(362)](e){return this[es(372)]||(this._instance=new eo),null!=e&&this[es(372)].setLoader(e),this[es(372)]}[es(384)](e){this[es(402)]=e,this[es(322)]=!0}updateCdnList(e){this[es(346)]=e}newDownloadedSegment(e){this[es(354)]=e}[es(355)](){this[es(322)]=!1}[es(333)](e=!1){this[es(387)]=e}[es(339)](e=!1){this[es(368)]=e}[es(388)](e){return en(this,void 0,void 0,function*(){let t=er;this[t(346)]=e;let i=new Map;for(let s of e[t(379)]())i[t(359)](s[t(395)],new H),this[t(371)]=i;if(!this[t(324)])for(this[t(324)]=!0;this[t(322)];){let e=this[t(367)]();for(;!e;)yield new Promise(e=>setTimeout(e,1e3)),e=this[t(367)]();if(!this[t(368)]&&this[t(354)])for(let e of this._cdns[t(379)]())this.lastDownloadedSegment&&e[t(395)]!==t(413)&&(yield this[t(350)](e,this[t(354)]),yield new Promise(e=>setTimeout(e,o.wc[t(409)])));yield new Promise(e=>setTimeout(e,o.wc[t(375)]))}})}[es(367)](){if(!this.lastDownloadedSegment)return null;let e=this[es(354)];return this[es(354)][es(414)]?(new Date)[es(386)]()-this.lastDownloadedSegment[es(414)]<o.Zq.chunkExpirationProbingMs?e:null:e}[es(390)](e,t){var i,s,n;let r=Date.now()-e;eo.getInstance().monitoring[es(359)](t[es(395)],r);let a=eo.getInstance()[es(371)][es(351)](t[es(395)]);null==a||a[es(325)](r),t[es(377)]=r,t[es(403)]=null!=(i=null==a?void 0:a[es(408)]())?i:t[es(403)],t[es(374)]=null!=(s=null==a?void 0:a[es(373)]())?s:t[es(374)],t[es(415)]=null!=(n=null==a?void 0:a[es(406)]())?n:t[es(415)],t.addProbe(r)}[es(350)](e,t){return en(this,void 0,void 0,function*(){let i=er;if(this[i(402)]&&this[i(402)].getIsEnabled&&e[i(348)]&&e[i(411)]!=i(342)&&(!this[i(387)]||e[i(400)]))if(t){let s=this[i(402)][i(336)][i(385)](t,!0,e.name);if(s=t.addParametersToUrl(s)){let t=Math.floor(1e9*Math[i(328)]());s=s[i(356)]("?")?s+i(331)+t:s+i(349)+t;let n=0;e[i(401)]&&o.Zq[i(365)][i(356)](i(376))&&(n=yield this._performGetCheck(e,s)),1===n&&(e[i(401)]=!1,o.Zq[i(365)][i(356)]("HEAD")?r.default[i(332)](a.BalancerTag,"Probing with range failed failed. Falling back to HEAD request on the next probe"):r.default[i(357)](a.BalancerTag,"Probing with range failed and HEAD probing is disabled by policy.")),(!e.isRangeCompatible&&o.Zq[i(365)][i(356)](i(344))||!o.Zq[i(365)][i(356)](i(376))&&o.Zq[i(365)][i(356)](i(344)))&&(n=yield this[i(337)](e,s))}else r.default.verbose(a.BalancerTag,i(392)+e.name+i(364)+t[i(404)])}else r.default[i(405)](a.BalancerTag,i(338)+e[i(395)])})}[es(419)](e,t){return en(this,void 0,void 0,function*(){let i=er;return yield this._performCheck(i(376),e,t)})}[es(337)](e,t){return en(this,void 0,void 0,function*(){return yield this._performCheck("HEAD",e,t)})}[es(412)](e,t,i){return en(this,void 0,void 0,function*(){let s=new XMLHttpRequest,n=Date.now(),l=this;return t.usedOrProbed=!0,new Promise(function(u,d){let h=er;s.onload=function(){let o=er;if(4===s.readyState){let d=0;if(e===o(376)&&206!==s[o(380)]&&s[o(380)]>
1=200&&s[o(380)]<400)d=1;else if(s[o(380)]>=200&&s.status<300){if(t[o(400)]){let e=Date[o(396)]();t[o(410)]+=e-t.bannedRefTicToc,t[o(343)]=e,t[o(400)]=!1,t[o(326)]++}t.failures=0,r.default[o(405)](a.BalancerTag,o(407)+i+" "+s[o(380)]),t[o(382)]=0,t[o(330)]()&&null!=l[o(402)]&&l[o(402)][o(336)][o(341)]()}else if(s[o(380)]>=400){if(r.default[o(405)](a.BalancerTag,o(369)+i+" "+s[o(380)]),null!=t[o(416)]&&t.auth.enabled&&!t[o(416)].authenticate_probes){if(403!=s.status&&!t[o(400)]){let e=Date[o(396)]();t[o(397)]+=e-t.bannedRefTicToc,t.bannedRefTicToc=e,t.banned=!0,t.bannedCount++}}else if(!t[o(400)]){let e=Date[o(396)]();t[o(397)]+=e-t[o(343)],t.bannedRefTicToc=e,t[o(400)]=!0,t.bannedCount++}t.lastUpdatedState=1,t.isCodavel()&&null!=l.loader&&l[o(402)][o(336)][o(363)](1)}0===d&&l._afterCheck(n,t),u(d)}},s.onerror=function(){let e=er;if(r.default[e(405)](a.BalancerTag,e(369)+i+" "+s[e(380)]),t.banned){let i=Date[e(396)]();t[e(410)]+=i-t[e(343)],t.bannedRefTicToc=i}else{let i=Date[e(396)]();t[e(397)]+=i-t[e(343)],t.bannedRefTicToc=i,t.banned=!0,t.bannedCount++}t.lastUpdatedState=2,t[e(330)]()&&null!=l[e(402)]&&l[e(402)][e(336)][e(363)](2),u(0)},s[h(340)]=function(){if(r.default[h(405)](a.BalancerTag,h(421)+i+" "+s.status),t[h(400)]){let e=Date[h(396)]();t[h(410)]+=e-t[h(343)],t.bannedRefTicToc=e}else{let e=Date[h(396)]();t[h(397)]+=e-t[h(343)],t[h(343)]=e,t[h(400)]=!0,t[h(383)]++}t[h(382)]=2,t[h(330)]()&&null!=l[h(402)]&&l.loader.CDNLoader[h(363)](2),u(0)},s.open(e,i),e===h(376)&&s[h(360)](h(358),h(391)),s[h(417)]=o.wc[h(329)],s[h(389)]()})})}}var el=i(61);let eu=eh;function ed(){let e=["chunkExpirationProbingMs","number","processNumber","stripPathRegex"," (null -> default)"," (converted from string)","Applied backend option ","processString","3473832SZfqDV","forceDecisionCall","__add__","Processing customData.options from backend:","slice"," is empty string - preserving existing value","processBoolean","79658xkLATp",": expected String, got ","authData","allowSpecialDelimitersInUrl","balanceAudio","3257096CubGHa","875031YVtbzj","isArray",". Preserving original value.","updateTime","69PNMGWR","Replacing list with customData values","noProbing","stripPathForDomainRegex","signManifestUsingApi","keys","string","Processing list with __add__ feature","jwtToken","true","Backend option ","includes","videoId","Invalid type for ","boolean","jwtAuthType","Skipped duplicate item: ","bucketName","every",": expected Boolean, got ","isDev","probingOnlyOnBanned"," keys","domainWhitelist","processStringArray","push","balanceSubtitles","processObject",": object with ","object","profileName","No customData.options received from backend","315CcAnfr","forEach","debug","isLive","length",": expected String[], got ","1175390PpTiGR",": undefined (null)","Added item to list: ","balanceManifests","toLowerCase","join",": expected Object, got ","47862ujqktg","9907749ysWMxx"];return(ed=function(){return e})()}function eh(e,t){let i=ed();return(eh=function(e,t){return i[e-=194]})(e,t)}!function(e){let t=eh,i=e();for(;;)try{if(461471==-parseInt(t(245))/1+parseInt(t(239))/2*(-parseInt(t(249))/3)+parseInt(t(232))/4+parseInt(t(215))/5+-parseInt(t(222))/6*(parseInt(t(209))/7)+parseInt(t(244))/8+parseInt(t(223))/9)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(ed);class ec{static applyCustomOptionsToBalancerOptions(e,t){let i=eh;t?(r.default[i(211)](a.BalancerTag,i(235),t),Object.keys(t)[i(210)](s=>{let n=t[s];switch(s){case i(242):this.processBoolean(s,n,e,i(242),!1);break;case i(241):this.processObject(s,n,e,i(241));break;case i(218):this[i(238)](s,n,e,i(218),!1);break;case"bucketName":this[i(231)](s,n,e,i(194));break;case i(243):this[i(238)](s,n,e,i(243),!0);break;case i(203):this[i(238)](s,n,e,"balanceSubtitles",!0);break;case i(224):this[i(226)](s,n,e,i(224));break;case"domainWhitelist":this.processStringArray(s,n,e,i(200));break;case"domainWhitelistRegex":this.processStringArray(s,n,e,"domainWhitelistRegex");break;case i(251):this.processBoolean(s,n,e,i(251),!1);break;case i(198):this[i(238)](s,n,e,"probeOnlyOnBanned",!1);break;case i(252):this[i(201)](s,n,e,i(252));break;case i(227):this[i(231)](s,n,e,i(227));break;case i(261):this.processString(s,n,e,i(261));break;case i(207):this.processString(s,n,e,"profileName");break;case i(212):this[i(238)](s,n,e,"isLive",!1);break;case i(197):this[i(238)](s,n,e,i(197),!1);break;case i(233):this[i(238)](s,n,e,"forceDecisionCall",!1);break;case i(253):this.processBoolean(s,n,e,i(253),!1);break;case i(257):this.processString(s,n,e,i(257));break;
1case i(264):this[i(231)](s,n,e,"jwtAuthType");break;case i(248):this.processNumber(s,n,e,i(248));break;default:r.default[i(211)](a.BalancerTag,"Unknown customData option: "+s)}})):r.default[i(211)](a.BalancerTag,i(208))}static[eu(238)](e,t,i,s,n){if(null===t)i[s]=n,r.default[eu(211)](a.BalancerTag,eu(230)+e+": "+n+eu(228));else if(""===t)r.default[eu(211)](a.BalancerTag,eu(259)+e+eu(237));else if(typeof t===eu(263))i[s]=t,r.default[eu(211)](a.BalancerTag,eu(230)+e+": "+t);else if(typeof t!==eu(255)||t[eu(219)]()!==eu(258)&&"false"!==t.toLowerCase())void 0!==t&&r.default[eu(211)](a.BalancerTag,eu(262)+e+eu(196)+typeof t+eu(247));else{let n=t.toLowerCase()===eu(258);i[s]=n,r.default[eu(211)](a.BalancerTag,eu(230)+e+": "+n+eu(229))}}static[eu(231)](e,t,i,s){null===t?(i[s]=void 0,r.default.debug(a.BalancerTag,eu(230)+e+eu(216))):typeof t===eu(255)?(i[s]=t,r.default[eu(211)](a.BalancerTag,"Applied backend option "+e+": "+t)):void 0!==t&&r.default[eu(211)](a.BalancerTag,eu(262)+e+eu(240)+typeof t+eu(247))}static[eu(226)](e,t,i,s){if(null===t)i[s]=void 0,r.default[eu(211)](a.BalancerTag,eu(230)+e+eu(216));else if(typeof t===eu(225))i[s]=t,r.default[eu(211)](a.BalancerTag,eu(230)+e+": "+t);else if(typeof t!==eu(255)||isNaN(Number(t)))void 0!==t&&r.default[eu(211)](a.BalancerTag,eu(262)+e+": expected Number, got "+typeof t+eu(247));else{let n=Number(t);i[s]=n,r.default[eu(211)](a.BalancerTag,eu(230)+e+": "+n+eu(229))}}static processStringArray(e,t,i,s){if(null===t)i[s]=[],r.default[eu(211)](a.BalancerTag,eu(230)+e+": [] (null -> empty array)");else if(Array[eu(246)](t)&&t[eu(195)](e=>typeof e===eu(255)||null===e)){let n=this.processListWithAddFeature(t,i[s]);i[s]=n,r.default[eu(211)](a.BalancerTag,eu(230)+e+": ["+n[eu(220)](", ")+"]")}else void 0!==t&&r.default.debug(a.BalancerTag,eu(262)+e+eu(214)+typeof t+eu(247))}static[eu(204)](e,t,i,s){null===t?(i[s]=void 0,r.default[eu(211)](a.BalancerTag,eu(230)+e+": undefined (null)")):typeof t!==eu(206)||Array[eu(246)](t)?void 0!==t&&r.default[eu(211)](a.BalancerTag,"Invalid type for "+e+eu(221)+typeof t+eu(247)):(i[s]=t,r.default[eu(211)](a.BalancerTag,eu(230)+e+eu(205)+Object[eu(254)](t)[eu(213)]+eu(199)))}static processListWithAddFeature(e,t){if(e[eu(213)]>0&&e[0]===eu(234)){r.default[eu(211)](a.BalancerTag,eu(256));let i=e[eu(236)](1),s=t?[...t]:[];return i[eu(210)](e=>{s[eu(260)](e)?r.default[eu(211)](a.BalancerTag,eu(265)+e):(s[eu(202)](e),r.default.debug(a.BalancerTag,eu(217)+e))}),s}return r.default.debug(a.BalancerTag,eu(250)),e}}let ep=eg;function ef(){let e=["getSecure","&orresource= ","cdnBalanceMethod","timeBetweenCallsMilliseconds","_bandwidthThreshold","_lastChunksLapse","probeOnlyOnBanned","], nor one of the whitelisted domains [","isEnabled","progressDownloadedBytes","getCommonVariable","probingPolicy","lastMeasurementWeight","verbose","downloadedBytes","signUrl","duration","pathName","Bypassed ","then","setLogLevel","response","_options","_totalDownloadedBytes","&advanceproxy=true","updateProgressStats","Stripped URL: ","unbannedTime"," | ","6322638pbGUzQ","get","status","downloadTimeForScoring","done","path","ORIGINAL","qualityPriority","getSignedUrlFromApi","apiCallErrors","delete","apiCallResponses","2297868mblBLg","timeBetweenBurstsMilliseconds","p2pAvailable","enabled","codavelBanCount","resetOnPing","updateSettings","_resource","setNoProbing","bannedCount","authenticate_probes","Quality priority","lastUpdatedState","now","P2P","chunkExpirationProbingMs","delay","changeCDN","_cdnList","usedOnce","avgApiCallResponseTime","_chunkCount","processedApiCall","initializated","map","isManifest","url","getForceDecision","incrementSwitchesDueToQuality","1847068mwksVm","retries","monitoringStarted","Original","UUID","announcedCdns","getStats","setResourceInfo","startsWith","cdnPriority","provider","latencyProbe","auth","_cdnLastInstantBandwith","match","getSegmentDuration","downloadedChunks","codavelAllBanned","host","instantBandwidth","callTimeoutMilliseconds","value","codavelSwitchesDueToQuality","setMaxBandwidth","275GoDDeI","onCodavelSucessfullResponse","_probingInfo","https","bandwidthThreshold","maxApiCallResponseTime","24882NjYfXn","setHeadOnBannedOnly","getRouteAndFilename","STREBOOS","push","join","_p2pLoader","downloadMillis","isValidUrl","downloadedBytesForScoring","_highestChunkBandwidth","minimumDurationSinceLastUsedForTrialMilliseconds","priorityCdn","setSettings","open","every","] (balancerManifest: ","replace","signed_url","Products","incrementSwitchesDueToConnectivity","_cdnInstantBandwith","_noProbing","VERBOSE","providers","738547lDXzhc","No matching path foun
1d to strip in URL: ","New url -> ","currentRenditionPos","maximumRelativeDeltaForTrial","Invalid regex expression ","apiHost","concat","onCodavelSwitched","codavelUnbanCount","isNotOnCdnList","getMaxBandwidth","_activeCdnRequests","next","minApiCallResponseTime","_lastChunkTime","banned","parser","_cdnPeakBandwidth","BalancerVariables","test","trunc","LAST_USED_CDN","segmentDuration","filter","Found a match for stripping path...(cdn: ","codavelUnbanTime","parse","FAILED -> ","name","domainWhitelist","getIsLive","auth_action_info","https://"," -> banned "," (regex: ","lastCodavelRequestStatus","Origin","signManifestUsingApi","bannedRefTicToc","activeSwitchingPriority","codavelProvidersState","3111248mHccyX","active","_probeOnBanned","bandwidth","addResp","Disabled","_activeSwitching","removeActiveSegment","lastUsedCdn","noProbing","default","sign_all_requests","profileName","isCodavel","_highestRenditionBandwidth","decisionCallWaitTime","getInstance","updateUrl","onSucessfullApiResponse","absolute","failures","registerCommonVariable"," / ","stripPathRegex","codavelBanRefTicToc","size","_failedRequests","maxBandwidth","values","weight","monitor","isDev","gotEmptyResponse","score","append_to_url","updateCodavelBanTimes","renditionCount","route","token","getPluginVersion","incrementSwitchesDueToErrors","includes","firstHugeChunkSize","STREBOPX","bucketName","activeSwitching","forEach","_retries","getFastDataService","isMasterPlaylist","decisionReloadIntervalPerManifestMilliseconds","_method","cdnName","from","currentRenditionBandwidth","getBucket","updateCDNStatsOnFailure","updateCDNStatsOnSuccess","apply","stripPathForDomainRegex","getCdnObject","getAccountCode"," because its host is not one of the currently active CDN hosts: [","domainWhitelistRegex","codavelSwitchesDueToErrors","applyCustomOptionsToBalancerOptions","minRequestSizeForBwEstimateKB","?orresource=","GET","cdnBWEstimation","dnsEnabled","_secure","updateCdnList","price","fileName","_activeRequests","codavelSwitches","codavelBanTime","rendition","isLive","signed_url_info","isNotOnWhitelist","getRecommendedManifest","debug","startMonitoring","origRes","customData","onCodavelFailedResponse","forceDecisionCall","true","11287608uCYeIP","_firstRequestTime","onFailedApiResponse","balanceManifests","set","CDN priority","_responseUUID","http://"];return(ef=function(){return e})()}function eg(e,t){let i=ef();return(eg=function(e,t){return i[e-=184]})(e,t)}!function(e){let t=eg,i=e();for(;;)try{if(476475==-parseInt(t(385))/1+parseInt(t(330))/2+-parseInt(t(301))/3+parseInt(t(427))/4+parseInt(t(354))/5*(-parseInt(t(360))/6)+-parseInt(t(289))/7+parseInt(t(252))/8)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(ef);class em extends I{constructor(e,t,i,s){let n=eg;super(),this[n(264)]=o.Ow[n(437)],this[n(319)]=new Map,this._activeCdnRequests=new Map,this[n(237)]=new Map,this[n(188)]=0,this[n(322)]=0,this._probingInfo={currentCDN:""},this[n(370)]=0,this[n(441)]=0,this._cdnLastInstantBandwith=new Map,this[n(381)]=new Map,this[n(403)]=new Map,this[n(209)]=new Map,this[n(283)]=0,this[n(253)]=0,this[n(400)]=0,this[n(265)]=0,this[n(216)]=0,this[n(388)]=0,this[n(198)]=0,this[n(324)]=!1,this[n(332)]=!1,this.codavelAllBanned=!1,this[n(305)]=0,this[n(394)]=0,this[n(239)]=0,this[n(411)]=0,this.codavelSwitches=0,this.codavelSwitchesDueToConnectivity=0,this.codavelSwitchesDueToErrors=0,this[n(352)]=0,this[n(186)]=Date[n(314)](),this.lastCodavelRequestStatus=0,this[n(426)]=new Map,this.processedApiCall=!1,this[n(321)]=void 0,this[n(399)]=void 0,this.maxApiCallResponseTime=void 0,this[n(298)]=void 0,this[n(300)]=void 0,this.p2pAvailable=!1,this.bolinaAvailable=!1,this.activeSwitchingPriority="",this[n(372)]="",this[n(335)]=0,this.segmentDuration=void 0,this[n(282)]=e,this[n(308)]=t,this[n(366)]=i,this.apiHost=s}[ep(260)](){return null!=this[ep(233)]&&this[ep(233)]}getActiveRequests(){return this._activeRequests}[ep(194)](){this[ep(324)]=!1,this[ep(319)].clear()}[ep(373)](e,t){var i,s,n,l,u,d,c,p,f,g,m,v,y,T,S,E,b,_,A,w,I,P,R,N,D,L,C,O,B,x,k,M,U,q,F,X;if(this[ep(324)])return this[ep(307)](e,t);this[ep(319)]=new Map;try{!0===(null==e?void 0:e[ep(245)])&&r.default[ep(280)](r.LogLevel.VERBOSE);let a=h[ep(368)](null!=(i=this[ep(282)].resource)?i:"")?h[ep(362)](this[ep(282)].resource):{route:"",fileName:""};this[ep(233)]=(null!=(n=null==(s=this._options.resource)?void 0:s.indexOf(ep(418)))?n:-1)>-1||void 0,this[ep(308)].fileName=a[ep(236)],this[ep(308)].route=a[ep(199)],this[ep(258)]=e[ep(334)],this[ep(213)]=e[ep(262)],this[ep(433)]=e[ep(207)],this[ep(264)]=null!=(l=e[ep(358)])?l:o.Ow[ep(437)],this[ep(429)]=e[ep(266)],this._noProbing=e[ep(436)];let H=void 0!==e.activeSwitching;eo.getInstance().setNoProbing(null!=(u=this[ep(382)])?u:this[ep(282)][ep(436)]),this[ep(433)]===o.m[ep(339)]?eo[ep(443)]().setHeadOnBannedOnly(null!=(d=this._probeOnBanned)?d:this[ep(282)][ep(266)]):eo[ep(443)]()[ep(361)](!1),o.Zq[ep(272)]=null!=(f=null==(p=null==(c=e[ep(248)])?void 0:c[ep(231)])?void 0:p[ep(272)])?f:o.Zq.lastMeasurementWeight,o.Zq[ep(389)]=null!=(v=null==(m=null==(g=e[ep(248)])?void 0:g[ep(231)])?void 0:m[ep(389)])?v:o.Zq.maximumRelativeDeltaForTrial,o.Zq[ep(371)]=null!=(S=null==(T=null==(y=e[ep(248)])?void 0:y[ep(231)])?void 0:T[ep(371)])?S:o.Zq.minimumDurationSinceLastUsedForTrialMilliseconds,o.wc.callTimeoutMilliseconds=null!=(_=null==(b=null==(E=e.customData)?void 0:E[ep(341)])?void 0:b[ep(350)])?_:o.wc[ep(350)],o.wc[ep(302)]=null!=(I=null==(w=null==(A=e[ep(248)])?void 0:A.latencyProbe)?void 0:w[ep(302)])?I:o.wc[ep(302)],o.wc[ep(263)]=null!=(N=null==(R=null==(P=e[ep(248)])?void 0:P[ep(341)])?void 0:R[ep(263)])?N:o.wc[ep(263)],o.df[ep(442)]=null!=(D=e[ep(442)])?D:o.df[ep(442)],o.df[ep(212)]=null!=(L=e[ep(212)])?L:o.df.decisionReloadIntervalPerManifestMilliseconds,o._C[ep(228)]=null!=(C=e.minRequestSizeForBwEstimateKB)?C:o._C.minRequestSizeForBwEstimateKB,o.Zq[ep(316)]=null!=(k=null!=(x=null==(B=null==(O=e[ep(248)])?void 0:O[ep(341)])?void 0:B.chunkExpirationProbingMs)?x:this[ep(282)].chunkExpirationProbingMs)?k:o.Zq[ep(316)],o.Zq[ep(271)]=null!=(q=null!=(U=null==(M=e[ep(248)])?void 0:M[ep(271)])?U:this[ep(282)][ep(271)])?q:o.Zq.probingPolicy,ec[ep(227)](this[ep(282)],null==(F=e.customData)?void 0:F.options);let G=!1,j=[];j=H?(null==(X=e[ep(384)])?void 0:X[ep(392)](e.discarded||[]))||[]:e[ep(384)]||[],this[ep(366)].isEnabled()&&(this[ep(397)][ep(315)]=0,this[ep(319)][ep(256)](ep(315),this._p2pLoader[ep(222)]())),this[ep(303)]=this[ep(366)][ep(268)](),this[ep(433)]==ep(296)?this[ep(425)]=ep(312):this._activeSwitching==ep(339)?this[ep(425)]=ep(257):this.activeSwitchingPriority=ep(432);let W=!1;j[ep(208)](i=>{let s=i.score||0,n=h.isValidUrl(i[ep(327)])?h[ep(362)](i.url)[ep(199)]:"";G=G||n===t;let r=new V(i[ep(340)],i[ep(414)],i[ep(348)],i.path,n,s,n===t,i[ep(235)],i[ep(191)],i[ep(446)],i[ep(232)],i[ep(342)],e[ep(402)]);r.host=i[ep(348)],this[ep(319)][ep(256)](i.name,r),this[ep(426)]=new Map(Array[ep(215)](this[ep(319)][ep(190)]())[ep(409)](e=>e.isCodavel())[ep(325)](e=>[e[ep(414)],e.banned])),this[ep(197)](),this[ep(397)][i[ep(414)]]=0,W||(this[ep(372)]=i[ep(414)],W=!0)})}catch(e){r.default.warn(a.BalancerTag,e)}this[ep(335)]=this[ep(319)][ep(187)]-!!this._p2pLoader[ep(268)](),this.initializated=!0}updateSettings(e,t){var i,s,n,a,l,u,d,c,p,f,g,m,v,y,T,S,E,b,_,A,w,I,P,R,N,D,L,C,O,B,x,k;!0===(null==e?void 0:e[ep(245)])&&r.default.setLogLevel(r.LogLevel[ep(383)]),e.activeSwitching,this[ep(213)]=e[ep(262)],this[ep(433)]=e[ep(207)],this[ep(429)]=e[ep(266)],this[ep(382)]=e[ep(436)],this[ep(303)]=this[ep(366)].isEnabled(),this[ep(433)]==ep(296)?this[ep(425)]="Quality priority":"cdnPriority"==this[ep(433)]?this[ep(425)]="CDN priority":this[ep(425)]=ep(432),eo[ep(443)]()[ep(309)](null!=(i=this[ep(382)])?i:this[ep(282)][ep(436)]),this[ep(433)]===o.m[ep(339)]?eo[ep(443)]()[ep(361)](null!=(s=this._probeOnBanned)?s:this[ep(282)][ep(266)]):eo[ep(443)]()[ep(361)](!1),o.Zq[ep(272)]=null!=(l=null==(a=null==(n=e[ep(248)])?void 0:n[ep(231)])?void 0:a[ep(272)])?l:o.Zq[ep(272)],o.Zq[ep(389)]=null!=(c=null==(d=null==(u=e[ep(248)])?void 0:u.cdnBWEstimation)?void 0:d[ep(389)])?c:o.Zq[ep(389)],o.Zq[ep(371)]=null!=(g=null==(f=null==(p=e[ep(248)])?void 0:p[ep(231)])?void 0:f[ep(371)])?g:o.Zq[ep(371)],o.wc[ep(350)]=null!=(y=null==(v=null==(m=e.customData)?void 0:m[ep(341)])?void 0:v.callTimeoutMilliseconds)?y:o.wc[ep(350)],o.wc[ep(302)]=null!=(E=null==(S=null==(T=e.customData)?void 0:T[ep(341)])?void 0:S[ep(302)])?E:o.wc[ep(302)],o.wc.timeBetweenCallsMilliseconds=null!=(A=null==(_=null==(b=e[ep(248)])?void 0:b[ep(341)])?void 0:_[ep(263)])?A:o.wc.timeBetweenCallsMilliseconds,o.df.decisionCallWaitTime=null!=(w=e[ep(442)])?w:o.df[ep(442)],o.df.decisionReloadIntervalPerManifestMilliseconds=null!=(I=e.decisionReloadIntervalPerManifestMilliseconds)?I:o.df.decisionReloadIntervalPerManifestMilliseconds,o._C[ep(228)]=null!=(P=e[ep(228)])?P:o._C[ep(228)],o.Zq[ep(316)]=null!=(L=null!=(D=null==(N=null==(R=e[ep(248)])?void 0:R.latencyProbe)?void 0:N[ep(316)])?D:this[ep(282)][ep(316)])?L:o.Zq[ep(316)],o.Zq[ep(271)]=null!=(B=null!=(O=null==(C=e.customData)?void 0:C[ep(271)])?O:this[ep(282)][ep(271)])?B:o.Zq.probingPolicy,ec.applyCustomOptionsToBalancerOptions(this[ep(282)],null==(x=e[ep(248)])?void 0:x.options);let M=!1,U=(null==(k=e[ep(384)])?void 0:k[ep(392)](e.discarded||[]))||[],q=new Map,F=!1;U[ep(208)](i=>{let s=this._cdnList[ep(290)](i[ep(414)]);if(s){s[ep(428)]=!0,s[ep(348)]!=i[ep(348)]&&(s[ep(348)]=i[ep(348)]),s[ep(294)]!=i.path&&(s.path=i[ep(294)]);let e=h[ep(362)](i[ep(327)])[ep(199)];s[ep(327)]!=e&&(s[ep(327)]=e),s[ep(342)]!=i.auth&&(s.auth=i[ep(342)]),q[ep(256)](i[ep(414)],s)}else{let s=i[ep(195)]||0,n=h[ep(362)](i[ep(327)])[ep(199)];M=M||n===t;let r=new V(i[ep(340)],i.name,i.host,i[ep(294)],n,s,n===t,i[ep(235)],i[ep(191)],i[ep(446)],i[ep(232)],i[ep(342)],e[ep(402)]);this[ep(319)][ep(256)](i.name,r),q[ep(256)](i[ep(414)],r),this._activeCdnRequests[i.name]=0}F||(this[ep(372)]=i.name,F=!0)}),this[ep(335)]=this[ep(319)][ep(187)]-!!this[ep(366)][ep(268)](),this._cdnList=q;let X=U.map(e=>e[ep(414)]);this[ep(319)][ep(208)](e=>{X.includes(e[ep(414)])||e[ep(340)]==ep(295)||e[ep(340)]==ep(315)||(e.active=!1)}),this[ep(426)]=new Map(Array[ep(215)](this._cdnList.values())[ep(409)](e=>e[ep(440)]())[ep(325)](e=>[e[ep(414)],e[ep(401)]])),this[ep(197)]()}[ep(246)](){this[ep(433)]&&(this[ep(332)]?eo[ep(443)]()[ep(234)](this._cdnList):(this[ep(332)]=!0,eo.getInstance()[ep(192)](this[ep(319)])))}[ep(218)](e,t){if(this._activeCdnRequests[e]<1)return;this[ep(285)]();let i=this[ep(319)][ep(290)](e);if(this[ep(397)][e]--,0==t.retries&&this[ep(188)]++,null!=i&&i[ep(331)]--,i&&
1!i[ep(401)]){if(i[ep(401)]){let e=Date[ep(314)]();i.bannedTime+=e-i[ep(424)],i.bannedRefTicToc=e}else{let e=Date[ep(314)]();i[ep(287)]+=e-i[ep(424)],i[ep(424)]=e,i[ep(401)]=!0,i.bannedCount++}i[ep(401)]=!0,i[ep(310)]++}i&&r.default[ep(273)](a.BalancerTag,ep(413)+i[ep(414)]+ep(419)+i[ep(401)]),i&&(t.failed=!0,i[ep(431)](t),i[ep(447)]++,i.totalFail++,i[ep(320)]=!0),this[ep(426)]=new Map(Array[ep(215)](this._cdnList[ep(190)]())[ep(409)](e=>e[ep(440)]())[ep(325)](e=>[e.name,e[ep(401)]])),this[ep(197)]()}[ep(434)](e){this[ep(237)][ep(299)](e.id),this[ep(397)][e.cdnName]--,this[ep(322)]++}[ep(219)](e){var t,i;if(e[ep(211)]&&(this[ep(408)]=e[ep(408)]),this[ep(285)](),null!=e[ep(269)]){if(this[ep(283)]=this[ep(283)]+e.size,0!=e[ep(276)]){let t=8*e.size/e[ep(276)];this[ep(370)]<t&&(this[ep(370)]=t)}null==(t=this._cdnList[ep(290)]((null==e?void 0:e[ep(214)])||""))||t[ep(431)](e)}else e[ep(326)]&&(this[ep(282)][ep(423)]||this._options[ep(255)])&&(null==(i=this[ep(319)].get((null==e?void 0:e.cdnName)||""))||i[ep(431)](e));this[ep(426)]=new Map(Array.from(this[ep(319)].values())[ep(409)](e=>e[ep(440)]())[ep(325)](e=>[e[ep(414)],e[ep(401)]])),this[ep(197)]()}getCdnList(){return this[ep(319)]}[ep(285)](){let e=new Map,t=new Map;this[ep(237)][ep(208)](t=>{let i=t[ep(349)],s=t[ep(214)],n=e[ep(290)](s);null==n&&(n=0),n+=i,e[ep(256)](s,n)}),this[ep(381)]=e,e.forEach((e,t)=>{let i=this[ep(403)][ep(290)](t);null==i?this._cdnPeakBandwidth.set(t,e):i<e&&this._cdnPeakBandwidth[ep(256)](t,e)}),e[ep(208)]((e,t)=>{0!=e&&this[ep(343)].set(t,e)});let i=0;t.forEach((e,t)=>{i+=e})}[ep(297)](e,t,i){var s,o,l;let u=n.default[ep(443)]()[ep(210)]()[ep(223)](),d=null!=(s=this[ep(282)][ep(439)])?s:"",c=null!=(o=this._options[ep(206)])?o:ep(437),p=(this[ep(282)][ep(193)],null!=(l=this[ep(282)][ep(241)])&&l),f=new XMLHttpRequest,g=t+"/"+u+"/"+(this[ep(282)][ep(439)]?d+"/":"")+ep(275);g=g[ep(377)]("//","/"),g=ep(418)+g;let m={resource:e,live:""+p,extended:ep(251),npawPluginInfo:"true",originCode:null!==this[ep(282)][ep(206)]&&void 0!==this[ep(282)].bucketName?c:"",v:n.default[ep(201)]()};if(f[ep(374)](ep(230),g+h.formatParameters(m),!1),f.send(),f[ep(291)]>=200&&f[ep(291)]<=300)try{if(f.response){for(let e of JSON[ep(412)](f[ep(281)])[ep(384)])if(e[ep(414)]===i&&e[ep(342)]&&e.auth[ep(242)])return e[ep(342)].signed_url_info[ep(378)]}}catch(e){r.default.debug(a.BalancerTag,"Error parsing Balancer API response for signed URL: "+e)}else r.default.debug(a.BalancerTag,"Error: unable to obtain API response for signed URL (status: "+f[ep(291)]+")")}[ep(444)](e,t=!1,i){var s,o,l,u,d,h,c,p,f,g,m,v,y,T;let S=this.isNotOnCdnList(e[ep(327)]),E=this[ep(243)](e[ep(327)]),b=e[ep(326)]&&!e.failed,_=null!=(s=this[ep(282)].balanceManifests)&&s||null!=(o=this._options[ep(423)])&&o;if(_){if(S&&E){let t=Array[ep(215)](this._cdnList[ep(190)]())[ep(325)](e=>'"'+e[ep(348)]+'"'),i=(null!=(l=this._options.domainWhitelist)?l:[])[ep(392)](null!=(u=this[ep(282)][ep(225)])?u:[])[ep(325)](e=>'"'+e+'"');return void r.default[ep(245)](a.BalancerTag,ep(278)+e[ep(327)]+ep(224)+t[ep(365)](",")+"], nor one of the whitelisted domains ["+i[ep(365)](",")+ep(376)+_+")")}}else if(b||S&&E){if(S&&E){let t=Array.from(this._cdnList[ep(190)]()).map(e=>'"'+e[ep(348)]+'"'),i=(null!=(d=this._options[ep(415)])?d:[]).concat(null!=(h=this[ep(282)].domainWhitelistRegex)?h:[])[ep(325)](e=>'"'+e+'"');r.default.debug(a.BalancerTag,ep(278)+e[ep(327)]+ep(224)+t.join(",")+ep(267)+i[ep(365)](",")+"]")}return}if(i){let s=this[ep(319)][ep(290)](i);if(s){let o=(e.url.startsWith(ep(357))?ep(418):ep(259))+s[ep(348)],l=!1;if(this[ep(282)][ep(221)])for(let t of this._options.stripPathForDomainRegex)new RegExp(t)[ep(405)](o)&&(r.default[ep(273)](a.BalancerTag,ep(410)+i+", url: "+e.url+")"),l=!0);if(s[ep(340)]===ep(363)||s.provider===ep(205)?o+="/"+n.default[ep(443)]()[ep(210)]()[ep(223)]()+"/"+(null!=(c=this[ep(282)].profileName)?c:ep(437))+"/"+(null!=(p=this[ep(282)][ep(206)])?p:ep(437)):l||(o+=s.path),o+=e.pathName,(s[ep(340)]===ep(363)||s.provider===ep(205))&&(o+=o[ep(203)]("?")?ep(261)+e[ep(247)]:"?orresource="+e[ep(247)]),s.provider===ep(205)&&(o+="&advanceproxy=true"),null!=s.auth&&s[ep(342)][ep(304)]&&(!t||t&&s[ep(342)][ep(311)])){if("append_to_url"===s[ep(342)][ep(417)]){let e=(null==(f=s.auth[ep(242)])?void 0:f[ep(200)])||"";o+=o[ep(203)]("?")?"&"+e:"?"+e}else if("sign_all_requests"===s[ep(342)][ep(417)]){let e=this[ep(297)](o,this.apiHost,s[ep(414)]);e&&(o=e)}}if(l&&this._options[ep(185)]){let e=new RegExp(this[ep(282)][ep(185)]),t=o[ep(344)](e);if(t){let e=t[0];o=o[ep(377)](e,"/"),r.default[ep(273)](a.BalancerTag,ep(286)+o)}else r.default.verbose(a.BalancerTag,ep(386)+o+" (regex: "+this[ep(282)].str
1ipPathRegex+")")}return o}}let A=new Map;A=new Map(this._cdnList);let w="",I="",P=(null==(g=e[ep(240)])?void 0:g[ep(430)])||0;for(this[ep(441)]<P&&(this[ep(441)]=P);(!w||""==w)&&(I=new ei(A,this._bandwidthThreshold,this._highestRenditionBandwidth,this[ep(433)],this._p2pLoader,this._options).getCDN(e,this[ep(356)]),n.default[ep(443)]()[ep(448)](el.default[ep(379)].BALANCER,el.default[ep(404)][ep(407)],I===ep(333)?ep(422):I),I!==ep(315));){let t=this[ep(319)][ep(290)](I);try{if(t&&I!=ep(333)){w=(e.url[ep(338)](ep(357))?ep(418):"http://")+t[ep(348)];let i=!1;if(this[ep(282)][ep(221)])for(let e of this[ep(282)][ep(221)])new RegExp(e).test(w)&&(i=!0);if("STREBOOS"===t.provider||t[ep(340)]===ep(205)){let e=n.default[ep(443)]()[ep(210)]().getAccountCode();w+="/"+e+"/"+(null!=(m=this[ep(282)][ep(439)])?m:ep(437))+"/"+(null!=(v=this[ep(282)][ep(206)])?v:"default")}else i||(w+=t[ep(294)]);if(w+=e[ep(277)],(t.provider===ep(363)||"STREBOPX"===t[ep(340)])&&(w+=w[ep(203)]("?")?ep(261)+e[ep(247)]:ep(229)+e[ep(247)]),t[ep(340)]===ep(205)&&(w+=ep(284)),""==w&&r.default.debug(a.BalancerTag,"Error updating url -> "+e.url+ep(184)+(null==(y=this[ep(308)])?void 0:y[ep(199)])+ep(184)+t.name),i&&this[ep(282)][ep(185)]){let e=new RegExp(this._options[ep(185)]),t=w[ep(344)](e);if(t){let e=t[0];w=w[ep(377)](e,"/"),r.default.verbose(a.BalancerTag,ep(286)+w)}else r.default[ep(273)](a.BalancerTag,ep(386)+w+ep(420)+this[ep(282)][ep(185)]+")")}}else I==ep(333)&&(w=e[ep(327)])}catch(e){}A[ep(299)](I)}if(I===ep(315))w=ep(315);else{this[ep(397)][I]++;let i=this._cdnList.get(I);if(null!=i&&null!=i[ep(342)]&&i[ep(342)][ep(304)]&&(!t||t&&i[ep(342)][ep(311)])){if(i[ep(342)][ep(417)]===ep(196)){let e=(null==(T=i[ep(342)][ep(242)])?void 0:T.token)||"";w+=w.includes("?")?"&"+e:"?"+e}else if(i[ep(342)][ep(417)]===ep(438)){let e=this.getSignedUrlFromApi(w,this[ep(391)],i[ep(414)]);e&&(w=e)}}if(e.finalUrl=w,i&&e[ep(318)](w,i[ep(414)],i[ep(340)]),r.default[ep(273)](a.BalancerTag,ep(387)+w+ep(288)+e.cdnName),this[ep(435)]!=I&&this[ep(435)]!==ep(333)&&void 0!==this[ep(435)]){let e=this[ep(319)][ep(290)](this[ep(435)]),t=this[ep(319)][ep(290)](I);null!=e&&(e[ep(440)]()&&null!=t&&!t[ep(440)]()&&(3==e[ep(313)]&&this[ep(249)](3),this[ep(393)]()),e.incrementSwitches(),2==e[ep(313)]?e[ep(380)]():1==e.lastUpdatedState?e[ep(202)]():3==e[ep(313)]&&e[ep(329)]())}this[ep(435)]=I}return w}[ep(337)](e){let t=h[ep(368)](null!=e?e:"")?h.getRouteAndFilename(e):{route:"",fileName:""};this[ep(308)][ep(236)]=t[ep(236)],this[ep(308)][ep(199)]=t.route}[ep(244)](){var e,t,i,s;return e=this,t=void 0,s=function*(){let e=eg,t=0;for(;!n.default[e(443)]()[e(270)](el.default[e(379)].BALANCER,el.default[e(404)].DECISION_FINISHED)&&t++<5;)yield h[e(317)](300);if(5===t)return this._resource[e(199)]+this[e(308)].fileName;let i=Array[e(215)](this._cdnList[e(190)]())[e(409)](t=>t.name!==e(315));return i.length>0?i[0][e(327)]+this[e(308)][e(236)]:this._resource.route+this[e(308)][e(236)]},new(i=void 0,i=Promise)(function(n,r){let a=eg;function o(e){let t=eg;try{u(s[t(398)](e))}catch(e){r(e)}}function l(e){try{u(s.throw(e))}catch(e){r(e)}}function u(e){var t;let s=eg;e[s(293)]?n(e.value):((t=e[s(351)])instanceof i?t:new i(function(e){e(t)}))[s(279)](o,l)}u((s=s[a(220)](e,t||[]))[a(398)]())})}[ep(336)](){let e=[],t=0,i=0,s=0,n=0,r=0,a=0,o=0,l=0;return this._cdnList[ep(208)](u=>{if("P2P"===u[ep(414)])return;u.updateAvailability();let d=(u[ep(274)]||0)/((u[ep(367)]||1)/1e3)*8,h=(u[ep(369)]||0)/((u[ep(292)]||1)/1e3)*8;null==d&&(d=0);let c=this[ep(283)]/((Date[ep(314)]()-this[ep(253)])/1e3)*8,p=this[ep(403)].get(u.name)||0,f=this[ep(381)][ep(290)](u.name)||0,g=this[ep(343)][ep(290)](u[ep(414)])||0;e[ep(364)]({downloadedBytes:u.downloadedBytes,downloadedChunks:u[ep(346)],bandwidth:Math[ep(406)](d),instantBandwidth:Math[ep(406)](f),lastInstantBandwidth:Math[ep(406)](g),peakBandwidth:Math[ep(406)](p),failures:u[ep(447)],totalFailures:u.totalFail,retries:u[ep(331)],downloadTime:u[ep(367)],provider:u.provider,profileName:u[ep(414)],isActive:u[ep(428)],ptb:c,usedOnce:u[ep(320)],hugeChunks:u.hugeChunks,firstHugeChunkSize:u[ep(204)],lastChunksLapse:this._lastChunksLapse,maxBandwidth:u.maxBandwidth,banned:u[ep(401)],lastBandwidth:u.lastPreferedVideoBandwidth,scoringBandwidth:h}),t+=u[ep(274)],i+=d,s+=p,n+=f,r+=u.downloadedChunks,a+=u[ep(367)],o+=u.failures,l+=u[ep(331)]}),{responseUUID:this[ep(258)],totalDownloadedBytes:t,totalDownloadedChunks:r,totalDownloadedTime:a,totalFailures:o,totalRetries:l,activeSwitching:this[ep(433)]||"",mode:this[ep(213)]||"",totalBandwidth:Math.trunc(i),totalInstantBandwidth:Math.trunc(n),totalPeakBandwidth:Math[ep(406)](s),cdns:e,currentRenditionBandwidth:this[ep(216)],currentRenditionPos:this[ep(388)],renditionCount:this[ep(198)]}}changeStatusCDN(e,t){let i=!1,s=0;return t||this[ep(319)][ep(208)](e=>{e.active&&s++}
1),this[ep(319)].forEach(n=>{n[ep(414)]===e&&(t&&(n[ep(428)]=!0,i=!0),!t&&s>1&&(n[ep(428)]=!1,i=!0))}),i}[ep(353)](e,t){let i=this._cdnList[ep(290)](e);return null!=i&&(i.maxBandwidth=t,this.emit(o.yl.Updated,{loader:this}),!0)}[ep(396)](e){let t=this[ep(319)][ep(290)](e);return null!=t?t[ep(189)]:0}updateCodavelBanTimes(){let e=Date[ep(314)]();if(0===this[ep(426)][ep(187)])return void(this[ep(186)]=e);let t=Array[ep(215)](this.codavelProvidersState[ep(190)]())[ep(375)](e=>e);t!==this[ep(347)]?t?(this.codavelUnbanTime+=e-this.codavelBanRefTicToc,this.codavelBanRefTicToc=e,this[ep(305)]++):(this[ep(239)]+=e-this.codavelBanRefTicToc,this.codavelBanRefTicToc=e,this.codavelUnbanCount++):t?(this[ep(239)]+=e-this.codavelBanRefTicToc,this.codavelBanRefTicToc=e):(this[ep(411)]+=e-this[ep(186)],this[ep(186)]=e),this.codavelAllBanned=t}[ep(306)](){this.codavelBanTime=0,this[ep(411)]=0,this[ep(186)]=Date[ep(314)](),this[ep(323)]=!1,this[ep(321)]=void 0,this.minApiCallResponseTime=void 0,this.maxApiCallResponseTime=void 0,this[ep(298)]=void 0,this[ep(300)]=void 0}[ep(393)](){this[ep(238)]++,2==this[ep(421)]?this.codavelSwitchesDueToConnectivity++:1==this.lastCodavelRequestStatus?this[ep(226)]++:3==this[ep(421)]&&this.codavelSwitchesDueToQuality++}[ep(355)](){this[ep(421)]=0}onCodavelFailedResponse(e){this[ep(421)]=e}[ep(254)](){null==this[ep(298)]?this.apiCallErrors=1:this[ep(298)]+=1,this[ep(323)]=!0}[ep(445)](e){null==this[ep(300)]?this[ep(300)]=1:this[ep(300)]+=1,null==this[ep(399)]?this[ep(399)]=e:this.minApiCallResponseTime=Math.min(this[ep(399)],e),null==this[ep(321)]?this.avgApiCallResponseTime=e:this[ep(321)]=this.avgApiCallResponseTime+(e-this.avgApiCallResponseTime)/this[ep(300)],null==this[ep(359)]?this.maxApiCallResponseTime=e:this[ep(359)]=Math.max(this.maxApiCallResponseTime,e),this.processedApiCall=!0}[ep(217)](){return this[ep(282)][ep(206)]}[ep(416)](){return this[ep(282)][ep(241)]}[ep(328)](){return this._options[ep(250)]}[ep(345)](){return this[ep(408)]}[ep(395)](e){let t=!1,i=new URL(e);for(let e of this[ep(319)][ep(190)]())if(e[ep(348)]===i[ep(348)]){t=!0;break}return!t}[ep(243)](e){var t,i;let s=!1,n=new URL(e);for(let e of null!=(t=this._options.domainWhitelistRegex)?t:[])try{if(new RegExp(e)[ep(405)](n[ep(348)])){s=!0;break}}catch(t){r.default[ep(245)](a.BalancerTag,ep(390)+e)}for(let e of null!=(i=this[ep(282)][ep(415)])?i:[]){if(s)break;if(e===n[ep(348)]){s=!0;break}}return!s}}let ev=ey;function ey(e,t){let i=eT();return(ey=function(e,t){return i[e-=291]})(e,t)}function eT(){let e=["has","getLastSegmentId","count","14JIqjxP","storeSegment","startTime","11wmXPeO","getSegment","size","13831476ItShXs","cachedSegmentExpiration","1209342WSunnQ","now","forEach","297EZnios","hasSegment","p2p","endTime","setSettings","_localMem","p2pId","delete","_reduceMemSize","get","cachedSegmentsCount","min","_expTime","clear","5XXLOqW","expiration","_maxSize","3rvLqGv","P2P: Segment not ready yet for segment map","7968650IylYce","489568jJmlCU","createMap","_loader","_removeOldSegments","getLastSegmentCreatedAt","safeMaxCount","_lastSegmentId","30684yagIYI","261868cSvSEN","getSize","4208SLQvRL","undefined"];return(eT=function(){return e})()}!function(e){let t=ey,i=e();for(;;)try{if(409445==parseInt(t(297))/1+-parseInt(t(304))/2*(-parseInt(t(294))/3)+parseInt(t(305))/4*(-parseInt(t(291))/5)+-parseInt(t(320))/6*(parseInt(t(312))/7)+parseInt(t(307))/8*(parseInt(t(323))/9)+-parseInt(t(296))/10+parseInt(t(315))/11*(parseInt(t(318))/12))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(eT);class eS{constructor(e){let t=ey;this[t(328)]=new Map,this[t(293)]=o.dR[t(311)],this[t(335)]=o.dR[t(292)],this._lastSegmentId="",this[t(299)]=e,setInterval(()=>{this[t(300)]()},1e3)}[ev(327)](e){let t=e[ev(325)];t&&(this._expTime=t[ev(319)]||o.dR[ev(292)],this[ev(293)]=Math[ev(334)](t[ev(333)]||o.dR[ev(311)],o.dR[ev(302)]))}getMaxSize(){return this[ev(293)]}[ev(316)](e){return this[ev(328)][ev(332)](e)}[ev(324)](e){return this[ev(328)][ev(309)](e)}[ev(313)](e){return!this[ev(324)](e[ev(329)])&&typeof e.data!==ev(308)&&(this[ev(303)]=e[ev(329)],this[ev(328)].set(e[ev(329)],e),this[ev(331)](),!0)}[ev(300)](){let e=Date[ev(321)]()-this._expTime;this[ev(328)][ev(322)]((t,i)=>{t[ev(314)]<e&&this[ev(328)].delete(i)})}[ev(331)](){let e,t;this._localMem[ev(317)]-this[ev(293)]>0&&(t=Date[ev(321)](),e="",this._localMem.forEach((i,s)=>{i[ev(326)]<t&&(e=s,t=i[ev(326)])}),this[ev(328)][ev(330)](e),this._reduceMemSize())}[ev(298)](){let e=[];for(let[,t]of this[ev(328)])t.readyForP2P?e.push(t[ev(329)]):r.default.debug(a.BalancerTag,ev(295));return e}destroy(){this[ev(328)][ev(336)]()}[ev(306)](){return this[ev(328)][ev(317)]}[ev(310)](){return this[ev(303)]}[ev(301)](){var e;return(null==(e=this[ev(328)][ev(332)](this[ev(303)]))?void 0:e.createdAt)||0}}var eE=i(8641),eb=i.n(eE);function e_(){var e=["22695970yJgRWB","3UJPKwd","1uACYsf","96934rriITf","3057204HSRSnI","10379676RZDfVi","uri","pos","3526265kLnpbQ","5196328jWrrqv","14xPeuvV","1197099vbFZlW"];return(e_=function(){return e})()}function eA(e,t){var i=e_();return(eA=function(e,t){return i[e-=105]})(e,t)}!function(e){for(var t=eA,i=e();;)try{if(881861==-parseInt(t(114))/1*(-parseInt(t(115))/2)+parseInt(t(113))/3*(-parseInt(t(116))/4)+parseInt(t(108))/5+
1parseInt(t(105))/6+-parseInt(t(110))/7*(-parseInt(t(109))/8)+parseInt(t(111))/9+-parseInt(t(112))/10)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(e_);class ew{constructor(){var e=eA;this[e(106)]="",this[e(107)]=0}}function eI(){let e=["segments","targetDuration","addSegment","size","isAudio","getSegments","getSegmentsSize","33512yfhCtq","isMaxRendition","get","4900xZBQrs","948980lvPtFK","169967XrqJEd","getSegment","521240WEAwQJ","set","uri","246rzxVFA","56707nnFlzi","419346GUTsyP","bandwidth","9GRAXFc","bandwidthPosition"];return(eI=function(){return e})()}function eP(e,t){let i=eI();return(eP=function(e,t){return i[e-=263]})(e,t)}let eR=eP;!function(e){let t=eP,i=e();for(;;)try{if(110734==parseInt(t(274))/1+parseInt(t(272))/2*(-parseInt(t(279))/3)+-parseInt(t(276))/4+parseInt(t(273))/5+parseInt(t(281))/6+parseInt(t(280))/7+parseInt(t(269))/8*(parseInt(t(283))/9))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(eI);class eN{constructor(){let e=eP;this[e(278)]="",this[e(282)]=0,this[e(266)]=!1,this[e(284)]=-1,this[e(263)]=0,this.segments=new Map,this[e(270)]=!1}[eR(264)](e,t,i){let s=new ew;s.uri=t,s.pos=i,this[eR(285)][eR(277)](e,s)}[eR(275)](e){return this[eR(285)][eR(271)](e)}[eR(268)](){return this[eR(285)][eR(265)]}[eR(267)](){return this[eR(285)]}}let eD=eL;function eL(e,t){let i=eC();return(eL=function(e,t){return i[e-=302]})(e,t)}function eC(){let e=["setOptions","forEach","909669YzYEqH","variants","7RTkTDG","isMasterPlaylist","1043280BiBvpI","segments","constructor","getRenditions","3694856buPJev","MAX_LOGGED_ERRORS","push","addRendition","9869958gBDhlP","728975YABSbC","214580hYFYcC","name","message","targetDuration","175024HLdaMd","shift","parse","error","loggedErrors","endsWith","65WcURbz","isAudio","bandwidth","includes","addSegment","audio","uri","UnknownError"];return(eC=function(){return e})()}!function(e){let t=eL,i=e();for(;;)try{if(432456==parseInt(t(324))/1+parseInt(t(329))/2+parseInt(t(311))/3+-parseInt(t(325))/4*(-parseInt(t(335))/5)+parseInt(t(315))/6+parseInt(t(313))/7*(-parseInt(t(319))/8)+-parseInt(t(323))/9)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(eC),eb()[eD(309)]({silent:!0});class eO{static[eD(331)](e,t,i){var s;try{let s=eb()[eD(331)](t);return s[eD(314)]?null!=s.variants&&s[eD(312)][eD(310)](function(e){let t=new eN;t[eD(303)]=e[eD(303)],t.uri=e[eD(307)],i[eD(322)](e[eD(307)],t),null!=e[eD(306)]&&e[eD(306)][eD(310)](function(e){let t=new eN;t[eD(307)]=e[eD(307)],t[eD(302)]=!0,i[eD(322)](e[eD(307)],t)})}):i[eD(318)]().forEach((t,n)=>{e[eD(334)](n)&&(null!=s.segments&&s[eD(316)][eD(310)](function(e){i[eD(305)](n,e.uri,e[eD(307)])}),null!=s.targetDuration&&(t[eD(328)]=s[eD(328)]))}),s}catch(i){let t=(null==(s=null==i?void 0:i[eD(317)])?void 0:s[eD(326)])||eD(308);return this[eD(333)][eD(304)](t)||(this.loggedErrors.length>=this[eD(320)]&&this.loggedErrors[eD(330)](),this.loggedErrors[eD(321)](t),console[eD(332)]("[HlsParser] First occurrence of parsing error for "+e+":",i[eD(327)]||i)),{isMasterPlaylist:!1,variants:void 0,segments:void 0,targetDuration:void 0}}}}eO.loggedErrors=[],eO[eD(320)]=20;var eB=i(9731),ex=i.n(eB),ek=i(2553),eM=i.n(ek);let eU=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=eM().location&&eM().location.href||"");var i="function"==typeof eM().URL,s=/^\/\//.test(e),n=!eM().location&&!/\/\//i.test(e);if(i?e=new(eM()).URL(e,eM().location||"http://example.com"):/\/\//i.test(e)||(e=ex().buildAbsoluteURL(eM().location&&eM().location.href||"",e)),i){var r=new URL(t,e);return n?r.href.slice(18):s?r.href.slice(r.protocol.length):r.href}return ex().buildAbsoluteURL(e,t)};var eV=i(1048).hp,eq=i(7937);let eF=e=>!!e&&"object"==typeof e,eX=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(i=>{Array.isArray(e[i])&&Array.isArray(t[i])?e[i]=e[i].concat(t[i]):eF(e[i])&&eF(t[i])?e[i]=eX(e[i],t[i]):e[i]=t[i]}),e),{}),eH=e=>Object.keys(e).map(t=>e[t]),eG=e=>e.reduce((e,t)=>e.concat(t),[]),ej=e=>{if(!e.length)return[];let t=[];for(let i=0;i<e.length;i++)t.push(e[i]);return t},eW=({baseUrl:e="",source:t="",range:i="",indexRange:s=""})=>{let n={uri:t,resolvedUri:eU(e||"",t)};if(i||s){let e=(i||s).split("-"),t,r=eM().BigInt?eM().BigInt(e[0]):parseInt(e[0],10),a=eM().BigInt?eM().BigInt(e[1]):parseInt(e[1],10);r<Number.MAX_SAFE_INTEGER&&"bigint"==typeof r&&(r=Number(r)),a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),"bigint"==typeof(t="bigint"==typeof a||"bigint"==typeof r?eM().BigInt(a)-eM().BigInt(r)+eM().BigInt(1):a-r+1)&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),n.byterange={length:t,offset:r}}return n},eY=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),eK={static(e){let{duration:t,timescale:i=1,sourceDuration:s,peri
1odDuration:n}=e,r=eY(e.endNumber),a=t/i;return"number"==typeof r?{start:0,end:r}:"number"==typeof n?{start:0,end:n/a}:{start:0,end:s/a}},dynamic(e){let{NOW:t,clientOffset:i,availabilityStartTime:s,timescale:n=1,duration:r,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,u=eY(e.endNumber),d=(t+i)/1e3,h=s+a,c=Math.ceil((d+o-h)*n/r),p=Math.floor((d-h-l)*n/r),f=Math.floor((d-h)*n/r);return{start:Math.max(0,p),end:"number"==typeof u?u:Math.min(c,f)}}},ez=e=>{let{type:t,duration:i,timescale:s=1,periodDuration:n,sourceDuration:r}=e,{start:a,end:o}=eK[t](e),l=((e,t)=>{let i=[];for(let s=e;s<t;s++)i.push(s);return i})(a,o).map(t=>{let{duration:i,timescale:s=1,periodStart:n,startNumber:r=1}=e;return{number:r+t,duration:i/s,timeline:n,time:t*i}});if("static"===t){let e=l.length-1;l[e].duration=("number"==typeof n?n:r)-i/s*e}return l},eJ=e=>{let{baseUrl:t,initialization:i={},sourceDuration:s,indexRange:n="",periodStart:r,presentationTime:a,number:o=0,duration:l}=e;if(!t)throw Error("NO_BASE_URL");let u=eW({baseUrl:t,source:i.sourceURL,range:i.range}),d=eW({baseUrl:t,source:t,indexRange:n});if(d.map=u,l){let t=ez(e);t.length&&(d.duration=t[0].duration,d.timeline=t[0].timeline)}else s&&(d.duration=s,d.timeline=r);return d.presentationTime=a||r,d.number=o,[d]},eQ=(e,t,i)=>{let s=e.sidx.map?e.sidx.map:null,n=e.sidx.duration,r=e.timeline||0,a=e.sidx.byterange,o=a.offset+a.length,l=t.timescale,u=t.references.filter(e=>1!==e.referenceType),d=[],h=e.endList?"static":"dynamic",c=e.sidx.timeline,p,f=c,g=e.mediaSequence||0;p="bigint"==typeof t.firstOffset?eM().BigInt(o)+t.firstOffset:o+t.firstOffset;for(let e=0;e<u.length;e++){let a,o=t.references[e],u=o.referencedSize,m=o.subsegmentDuration;a="bigint"==typeof p?p+eM().BigInt(u)-eM().BigInt(1):p+u-1;let v=eJ({baseUrl:i,timescale:l,timeline:r,periodStart:c,presentationTime:f,number:g,duration:m,sourceDuration:n,indexRange:`${p}-${a}`,type:h})[0];s&&(v.map=s),d.push(v),p+="bigint"==typeof p?eM().BigInt(u):u,f+=m/l,g++}return e.segments=d,e},e$=["AUDIO","SUBTITLES"],eZ=1/60,e0=e=>{var t;return(t=({timeline:e})=>e,eH(e.reduce((e,i)=>(i.forEach(i=>{e[t(i)]=i}),e),{}))).sort((e,t)=>e.timeline>t.timeline?1:-1)},e3=e=>{var t;let i=[];return t=(e,t,s,n)=>{i=i.concat(e.playlists||[])},e$.forEach(function(i){for(var s in e.mediaGroups[i])for(var n in e.mediaGroups[i][s])t(e.mediaGroups[i][s][n])}),i},e1=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,i)=>{t.number=e.mediaSequence+i})},e2=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?eM().BigInt(e.offset)+eM().BigInt(e.length)-eM().BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),e4=e=>{let t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{}),i=[];return Object.values(t).forEach(e=>{let t=eH(e.reduce((e,t)=>{let i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[i].segments.push(...t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));i=i.concat(t)}),i.map(e=>(e.discontinuityStarts=(e.segments||[]).reduce((e,t,i)=>(t.discontinuity&&e.push(i),e),[]),e))},e5=(e,t)=>{let i=e2(e.sidx),s=i&&t[i]&&t[i].sidx;return s&&eQ(e,s,e.sidx.resolvedUri),e},e8=({attributes:e,segments:t,sidx:i,discontinuityStarts:s})=>{let n={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:s,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(n.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(n.contentProtection=e.contentProtection),e.serviceLocation&&(n.attributes.serviceLocation=e.serviceLocation),i&&(n.sidx=i),n},e7=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,e6=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,e9=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,te=e=>e?Object.keys(e).reduce((t,i)=>{let s=e[i];return t.concat(s.playlists)},[]):[],tt=({dashPlaylists:e,locations:t,contentSteering:i,sidxMapping:s={},previousManifest:n,eventStream:r})=>{var a;if(!e.length)return{};let{sourceDuration:o,type:l,suggestedPresentationDelay:u,minimumUpdatePeriod:d}=e[0].attributes,h=e4(e.filter(e7)).map(e8),c=e4(e.filter(e6)),p=e4(e.filter(e9)),f=e.map(e=>
1e.attributes.captionServices).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:o,playlists:((e,t={})=>{if(!Object.keys(t).length)return e;for(let i in e)e[i]=e5(e[i],t);return e})(h,s)};d>=0&&(g.minimumUpdatePeriod=1e3*d),t&&(g.locations=t),i&&(g.contentSteering=i),"dynamic"===l&&(g.suggestedPresentationDelay=u),r&&r.length>0&&(g.eventStream=r);let m=0===g.playlists.length,v=c.length?((e,t={},i=!1)=>{let s,n=e.reduce((e,n)=>{let r=n.attributes.role&&n.attributes.role.value||"",a=n.attributes.lang||"",o=n.attributes.label||"main";if(a&&!n.attributes.label){let e=r?` (${r})`:"";o=`${n.attributes.lang}${e}`}e[o]||(e[o]={language:a,autoselect:!0,default:"main"===r,playlists:[],uri:""});let l=e5((({attributes:e,segments:t,sidx:i,mediaSequence:s,discontinuitySequence:n,discontinuityStarts:r},a)=>{let o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:n,discontinuityStarts:r,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),i&&(o.sidx=i),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o})(n,i),t);return e[o].playlists.push(l),void 0===s&&"main"===r&&((s=n).default=!0),e},{});return s||(n[Object.keys(n)[0]].default=!0),n})(c,s,m):null,y=p.length?((e,t={})=>e.reduce((e,i)=>{let s=i.attributes.label||i.attributes.lang||"text",n=i.attributes.lang||"und";return e[s]||(e[s]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),e[s].playlists.push(e5((({attributes:e,segments:t,mediaSequence:i,discontinuityStarts:s,discontinuitySequence:n})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);let r={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(r.CODECS=e.codecs);let a={attributes:r,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:s,discontinuitySequence:n,mediaSequence:i,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a})(i),t)),e},{}))(p,s):null,T=h.concat(te(v),te(y));return g.timelineStarts=e0(T.map(({timelineStarts:e})=>e)),a=g.timelineStarts,T.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=a.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})}),v&&(g.mediaGroups.AUDIO.audio=v),y&&(g.mediaGroups.SUBTITLES.subs=y),f.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=f.reduce((e,t)=>(t&&t.forEach(t=>{let{channel:i,language:s}=t;e[s]={autoselect:!1,default:!1,instreamId:i,language:s},t.hasOwnProperty("aspectRatio")&&(e[s].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[s].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[s]["3D"]=t["3D"])}),e),{})),n?(({oldManifest:e,newManifest:t})=>{let i=e.playlists.concat(e3(e)),s=t.playlists.concat(e3(t));return t.timelineStarts=e0([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:i})=>{t.forEach(t=>{t.discontinuitySequence=i.findIndex(function({timeline:e}){return e===t.timeline});let s=((e,t)=>{for(let i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null})(e,t.attributes.NAME);if(!s||t.sidx)return;let n=t.segments[0],r=s.segments.findIndex(function(e){return Math.abs(e.presentationTime-n.presentationTime)<eZ});if(-1===r)return e1({playlist:t,mediaSequence:s.mediaSequence+s.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!s.segments.length&&t.timeline>s.timeline||s.segments.length&&t.timeline>s.segments[s.segments.length-1].timeline)&&t.discontinuitySequence--);s.segments[r].discontinuity&&!n.discontinuity&&(n.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),e1({playlist:t,mediaSequence:s.segments[r].number})})})({oldPlaylists:i,newPlaylists:s,timelineStarts:t.timelineStarts}),t})({oldManifest:n,newManifest:g}):g},ti=(e,t,i)=>{let{NOW:s,clientOffset:n,availabilityStartTime:r,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e;return Math.ceil((((s+n)/1e3+l-(r+o))*a-t)/i)},ts=(e,t)=>{let{type:i,minimumUpdatePeriod:s=0,media:n="",sourceDuration:r,timescale:a=1,startNumber:o=1,periodStart:l}=e,u=[],d=-1;for(let h=0;h<t.length;h++){let c,p=t[h],f=p.d,g=p.r||0,m=p.t||0;if(d<0&&(d=m),m&&m>d&&(d=m),g<0){let o=h+1;c=o===t.length?"dynamic"===i&&s>0&&n.indexOf("$Number$")>0?ti(e,d,f):(r*a-d)/f:(t[o].t-d)/f}else c=g+1;let v=o+u.length+c,y=o+u.length;for(;y<v;)u.push({number:y,duration:f/a,time:d,timeline:l}),d+=f,y++}return u},tn=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,tr=(e,t)=>e.replace(tn,(e=>(t,i,s,n)=>{if("$$"===t)return"$";if(void 0===e[i])return t;let r=""+e[i];return"RepresentationID"===i?r:(n=s?parseInt(n,10):1,r.length>=n?r:`${Array(n-r.length+1).join("0")}${r}`)})(t)),ta=(e,t)=>{let i={RepresentationID:e.id,Bandwidth:e.bandwidth||0}
1,{initialization:s={sourceURL:"",range:""}}=e,n=eW({baseUrl:e.baseUrl,source:tr(s.sourceURL,i),range:s.range});return((e,t)=>e.duration||t?e.duration?ez(e):ts(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t).map(t=>{i.Number=t.number,i.Time=t.time;let s=tr(e.media||"",i),r=e.timescale||1,a=e.presentationTimeOffset||0,o=e.periodStart+(t.time-a)/r;return{uri:s,timeline:t.timeline,duration:t.duration,resolvedUri:eU(e.baseUrl||"",s),map:n,number:t.number,presentationTime:o}})},to=(e,t)=>{let i,{duration:s,segmentUrls:n=[],periodStart:r}=e;if(!s&&!t||s&&t)throw Error("SEGMENT_TIME_UNSPECIFIED");let a=n.map(t=>((e,t)=>{let{baseUrl:i,initialization:s={}}=e,n=eW({baseUrl:i,source:s.sourceURL,range:s.range}),r=eW({baseUrl:i,source:t.media,range:t.mediaRange});return r.map=n,r})(e,t));return s&&(i=ez(e)),t&&(i=ts(e,t)),i.map((t,i)=>{if(a[i]){let s=a[i],n=e.timescale||1,o=e.presentationTimeOffset||0;return s.timeline=t.timeline,s.duration=t.duration,s.number=t.number,s.presentationTime=r+(t.time-o)/n,s}}).filter(e=>e)},tl=({attributes:e,segmentInfo:t})=>{let i,s;t.template?(s=ta,i=eX(e,t.template)):t.base?(s=eJ,i=eX(e,t.base)):t.list&&(s=to,i=eX(e,t.list));let n={attributes:e};if(!s)return n;let r=s(i,t.segmentTimeline);if(i.duration){let{duration:e,timescale:t=1}=i;i.duration=e/t}else r.length?i.duration=r.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):i.duration=0;return n.attributes=i,n.segments=r,t.base&&i.indexRange&&(n.sidx=r[0],n.segments=[]),n},tu=e=>e.map(tl),td=(e,t)=>ej(e.childNodes).filter(({tagName:e})=>e===t),th=e=>e.textContent.trim(),tc=e=>{let t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;let[i,s,n,r,a,o]=t.slice(1);return 31536e3*parseFloat(i||0)+2592e3*parseFloat(s||0)+86400*parseFloat(n||0)+3600*parseFloat(r||0)+60*parseFloat(a||0)+parseFloat(o||0)},tp={mediaPresentationDuration:e=>tc(e),availabilityStartTime(e){var t;return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3},minimumUpdatePeriod:e=>tc(e),suggestedPresentationDelay:e=>tc(e),type:e=>e,timeShiftBufferDepth:e=>tc(e),start:e=>tc(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>parseFloat(e.split("/").reduce((e,t)=>e/t)),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){let t=parseInt(e,10);return isNaN(t)?tc(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},tf=e=>e&&e.attributes?ej(e.attributes).reduce((e,t)=>{let i=tp[t.name]||tp.DEFAULT;return e[t.name]=i(t.value),e},{}):{},tg={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},tm=(e,t)=>t.length?eG(e.map(function(e){return t.map(function(t){let i=th(t),s=eU(e.baseUrl,i),n=eX(tf(t),{baseUrl:s});return s!==i&&!n.serviceLocation&&e.serviceLocation&&(n.serviceLocation=e.serviceLocation),n})})):e,tv=e=>{let t=td(e,"SegmentTemplate")[0],i=td(e,"SegmentList")[0],s=i&&td(i,"SegmentURL").map(e=>eX({tag:"SegmentURL"},tf(e))),n=td(e,"SegmentBase")[0],r=i||t,a=r&&td(r,"SegmentTimeline")[0],o=i||n||t,l=o&&td(o,"Initialization")[0],u=t&&tf(t);u&&l?u.initialization=l&&tf(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});let d={template:u,segmentTimeline:a&&td(a,"S").map(e=>tf(e)),list:i&&eX(tf(i),{segmentUrls:s,initialization:tf(l)}),base:n&&eX(tf(n),{initialization:tf(l)})};return Object.keys(d).forEach(e=>{d[e]||delete d[e]}),d},ty=e=>eG(td(e.node,"EventStream").map(t=>{let i=tf(t),s=i.schemeIdUri;return td(t,"Event").map(t=>{let n=tf(t),r=n.presentationTime||0,a=i.timescale||1,o=n.duration||0,l=r/a+e.attributes.start;return{schemeIdUri:s,value:i.value,id:n.id,start:l,end:l+o/a,messageData:th(t)||n.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}})})),tT=(e,t={})=>{let{manifestUri:i="",NOW:s=Date.now(),clientOffset:n=0,eventHandler:r=function(){}}=t,a=td(e,"Period");
1if(!a.length)throw Error("INVALID_NUMBER_OF_PERIOD");let o=td(e,"Location"),l=tf(e),u=tm([{baseUrl:i}],td(e,"BaseURL")),d=td(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=s,l.clientOffset=n,o.length&&(l.locations=o.map(th));let h=[];return a.forEach((e,t)=>{let i=tf(e),s=h[t-1];i.start=(({attributes:e,priorPeriodAttributes:t,mpdType:i})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==i?null:0)({attributes:i,priorPeriodAttributes:s?s.attributes:null,mpdType:l.type}),h.push({node:e,attributes:i})}),{locations:l.locations,contentSteeringInfo:((e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;let i=eX({serverURL:th(e[0])},tf(e[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i})(d,r),representationInfo:eG(h.map((e,t)=>{let i=tm(u,td(e.node,"BaseURL")),s=eX(l,{periodStart:e.attributes.start});"number"==typeof e.attributes.duration&&(s.periodDuration=e.attributes.duration);let n=td(e.node,"AdaptationSet"),r=tv(e.node);return eG(n.map(e=>{var t;let n,a=tf(e),o=tm(i,td(e,"BaseURL")),l=eX(s,a,{role:tf(td(e,"Role")[0])}),u="urn:scte:dash:cc:cea-608:2015"===(t=tf(td(e,"Accessibility")[0])).schemeIdUri?("string"!=typeof t.value?[]:t.value.split(";")).map(e=>{let t,i;return i=e,/^CC\d=/.test(e)?[t,i]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:i}}):"urn:scte:dash:cc:cea-708:2015"===t.schemeIdUri?("string"!=typeof t.value?[]:t.value.split(";")).map(e=>{let t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){let[i,s=""]=e.split("=");t.channel=i,t.language=e,s.split(",").forEach(e=>{let[i,s]=e.split(":");"lang"===i?t.language=s:"er"===i?t.easyReader=Number(s):"war"===i?t.aspectRatio=Number(s):"3D"===i&&(t["3D"]=Number(s))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0;u&&(l=eX(l,{captionServices:u}));let d=td(e,"Label")[0];d&&d.childNodes.length&&(l=eX(l,{label:d.childNodes[0].nodeValue.trim()}));let h=td(e,"ContentProtection").reduce((e,t)=>{let i=tf(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());let s=tg[i.schemeIdUri];if(s){e[s]={attributes:i};let n=td(t,"cenc:pssh")[0];if(n){let t=th(n);e[s].pssh=t&&function(e){for(var t=eM().atob?eM().atob(e):eV.from(e,"base64").toString("binary"),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}(t)}}return e},{});Object.keys(h).length&&(l=eX(l,{contentProtection:h}));let c=tv(e),p=td(e,"Representation"),f=eX(r,c);return eG(p.map((n=l,e=>{let t=tm(o,td(e,"BaseURL")),i=eX(n,tf(e)),s=tv(e);return t.map(e=>({segmentInfo:eX(f,s),attributes:eX(i,e)}))})))}))})),eventStream:eG(h.map(ty))}},tS=e=>{let t,i;if(""===e)throw Error("DASH_EMPTY_MANIFEST");let s=new eq.DOMParser;try{i=(t=s.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw Error("DASH_INVALID_XML");return i},tE="1.3.1",tb=(e,t={})=>{let i=tT(tS(e),t);return tt({dashPlaylists:tu(i.representationInfo),locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:i.eventStream})},t_=e=>(e=>{let t=td(e,"UTCTiming")[0];if(!t)return null;let i=tf(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;default:throw Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return i})(tS(e));function tA(e,t){let i=tI();return(tA=function(e,t){return i[e-=103]})(e,t)}let tw=tA;function tI(){let e=["15JaUmHe","replace","148208DLNqXT","addRendition","BANDWIDTH","480028qWZBFp","addSegment","13630020Niovxh","targetDuration","196fBUNVQ","bandwidth","245840AHFJNP","segments","resolvedUri","uri","54788uRWljk","startsWith","497922OTujVo","8325DzwASe","attributes","../","parse","99cJiyix"];return(tI=function(){return e})()}!function(e){let t=tA,i=e();for(;;)try{if(248040==-parseInt(t(109))/1+parseInt(t(113))/2*(-parseInt(t(122))/3)+parseInt(t(119))/4*(-parseInt(t(104))/5)+-parseInt(t(121))/6+-parseInt(t(115))/7+parseInt(t(106))/8*(-parseInt(t(103))/9)+parseInt(t(111))/10)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(tI);class tP{static[tw(125)](e,i,s,n){try{for(var o of t[tw(125)](i,{url:e}).playlists){let e=new eN;e[tw(114)]=o[tw(123)][tw(108)],e[tw(118)]=o.resolvedUri,e.targetDuration=o[tw(112)];let t=e[tw(118)];for(var l of(e.uri&&""!=e[tw(118)]||(t=o.attributes),s[tw(107)](t,e),o[tw(116)])){let e=l[tw(118)];for(;e[tw(120)](tw(124));)e=e[tw(105)](tw(124),"");s[tw(110)](t,l[tw(117)],e)}}}catch(e){r.default.debug(a.BalancerTag,"Error parsing MPD manifest: ",e)}}}let tR=tD;function tN(){let e=["name","announcedP2P","arrayBuffer","getEntriesByType","now","timestamp","createdAt","endsWith","data","9648kEdtzV","1420rPWpWG","148164QDYbfx","cdnProvider","endTime","failed","triedP2P","startTime","ifByteArrayToString","verbose","Util","undefined","cachedSize","hash","20vXrbLM","length","triedCdns","getNewUrl","realBodySize","addParametersToUrl","progressDownloadedBytesLastUpdate","Success","total","ORIGINAL","3813201GJcQhf","url","headers","floor","cdnName","host","_resource","downloadTimeMs","BYTLELENGHT ","P2PManager","byteLength","getPerfLoadTime","slice","finalUrl","push","round","readyForP2P","targetDuration","segmentDuration","toJSON","forceHttp","pathname"," downloaded by p2p -> ","size","3374YvuwVm","instantBandwidth","3qqoUjA","p2pId","search","updateP2PId","route","getTime","pathName","lastEstimatedTime","Update P2P ID ","bandwidth","emit","params","4398MvgIdk","
1noContentObtained","origRes","includes","function","16761324NarQkQ"," Total time -> ","useP2P","duration","debug","retries","getRenditions","initialEstimatedTime","isManifest","parse","Range","setContent","onProgress","isMedia",".mpd","loaded","5713686TYcQBg","timeout","progressDownloadedBytes","Problem slicing the array","activeP2PSendProcesses",".m3u8","8314txUmho","retryBecauseNewHeaders","10dQvZgc","isMasterPlaylist"];return(tN=function(){return e})()}function tD(e,t){let i=tN();return(tD=function(e,t){return i[e-=236]})(e,t)}!function(e){let t=tD,i=e();for(;;)try{if(381901==parseInt(t(261))/1*(parseInt(t(288))/2)+parseInt(t(324))/3*(-parseInt(t(276))/4)+-parseInt(t(275))/5*(-parseInt(t(336))/6)+parseInt(t(322))/7*(parseInt(t(274))/8)+parseInt(t(298))/9*(parseInt(t(263))/10)+parseInt(t(255))/11+-parseInt(t(239))/12)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(tN);class tL extends I{constructor(e,t,i,s={},n=3,r=!1,a=!1){var o;let l=tD;super(),this[l(330)]="",this[l(273)]=new ArrayBuffer(1),this[l(321)]=0,this[l(333)]=0,this[l(281)]=0,this[l(278)]=0,this[l(305)]=0,this[l(279)]=!1,this[l(256)]=!1,this[l(257)]=0,this.progressDownloadedBytesLastUpdate=0,this.instantBandwidth=0,this.duration=0,this[l(246)]=0,this[l(331)]=0,this[l(247)]=!1,this[l(264)]=!1,this[l(252)]=!1,this.download=!0,this[l(292)]=0,this[l(314)]=!0,this[l(266)]=!1,this[l(259)]=0,this[l(262)]=0,this[l(318)]=!1,this.peer=void 0,this[l(271)]=Date[l(269)](),this.failedOriginalCount=0,this.segmentDuration=void 0,this.timestamp=void 0;let u=new URL(t);this[l(299)]=t,this[l(311)]=t,this.origRes=t,this[l(303)]=u.host,this[l(328)]=u.pathname,this[l(335)]=u[l(326)],this[l(300)]=s,this[l(244)]=n,this[l(241)]=r,this.triedP2P=!1,this.cdnName="",this[l(277)]="",this[l(267)]=a,this.triedCdns=[],this[l(304)]=i,this[l(330)]=e,this[l(270)]=(new Date)[l(329)](),this.id=Math[l(301)](100*Math.random())+"-"+Date[l(269)]();let d=(null==(o=this[l(300)])?void 0:o[l(249)])||"";this[l(325)]=window[l(307)]?window[l(307)][l(284)][l(287)](this[l(330)]+d):""+this[l(330)]+d}[tR(327)](){var e;if(!window[tR(307)])return;let t=(null==(e=this[tR(300)])?void 0:e[tR(249)])||"";r.default.debug(a.BalancerTag,tR(332)+this[tR(330)]+t),this[tR(325)]=window[tR(307)].Util[tR(287)](this.pathName+t)}[tR(291)](e){let t=!1;this[tR(247)]?(this[tR(247)]&&this[tR(279)]||this[tR(247)]&&e)&&(t=!0):t=!0;let i=t?this[tR(311)]:this[tR(299)];return this[tR(335)]&&(i=i[tR(237)]("?")?i+"&"+this.params:i+"?"+this.params),i}[tR(293)](e){let t=e;return this.params&&t&&(t=t[tR(237)]("?")?t+"&"+this[tR(335)]:t+"?"+this[tR(335)]),t}changeCDN(e,t,i){if(i!=tR(297)){let i=new URL(e);this[tR(303)]=i[tR(303)],this[tR(328)]=i[tR(319)],this[tR(290)][tR(312)](t)}this[tR(302)]=t,this.cdnProvider=i}[tR(250)](e){this.data=e,this[tR(321)]=e[tR(308)],this.emit(o.yL[tR(295)],{segment:this,data:e})}[tR(337)](){this[tR(334)](o.yL.Fail,{segment:this})}[tR(309)](e){var t;if(typeof performance!==tR(285)&&typeof performance[tR(268)]===tR(238)){let i=performance[tR(268)]("resource");if(i&&i[tR(289)]>0)for(let s of i){let i=s[tR(317)]();if(null==(t=null==i?void 0:i[tR(265)])?void 0:t.includes(e))return Math[tR(313)](null==i?void 0:i[tR(242)])}}return -1}[tR(251)](e,t){t[tR(296)]>0&&(this[tR(292)]=t.total),0==this[tR(294)]&&(this[tR(294)]=this[tR(281)]);let i=Date[tR(269)](),s=i-this[tR(294)];if(this[tR(278)]=Date[tR(269)](),s<150)return;0!=s&&(this[tR(323)]=(t[tR(254)]-this[tR(257)])/((i-this[tR(294)])/1e3)*8,this.progressDownloadedBytesLastUpdate=i,t[tR(254)]&&(this[tR(257)]=t.loaded));let n=(i-this[tR(281)])/(t[tR(254)]/t.total);this[tR(246)]=0==this[tR(246)]?n:this.initialEstimatedTime,this.lastEstimatedTime=n,this[tR(242)]>0&&0!=n&&1e3*this.duration<n&&r.default[tR(243)](a.BalancerTag,"High risk of buffer. "+this[tR(236)]),r.default[tR(283)](a.BalancerTag,"Done "+this[tR(236)]+tR(240)+(Date.now()-this[tR(281)]))}onSuccess(e,t,i=!1){if(this[tR(278)]=Date[tR(269)](),null==e||0==e[tR(289)])return!1;this[tR(305)]=this.endTime-this[tR(281)],this[tR(309)](this[tR(328)]);let s=new URL(i?h.sliceByFirstSpecial(this[tR(299)]):this[tR(299)])[tR(319)];if(s[tR(272)](tR(260))){e=h[tR(282)](e);let t=eO[tR(248)](this[tR(299)],e,this._resource);this.isMasterPlaylist=t[tR(264)],r.default[tR(243)](a.BalancerTag,"Parsed HLS manifest -> "+this[tR(299)]+" renditions -> "+this[tR(304)][tR(245)]()[tR(321)]),null!=t[tR(315)]&&(this[tR(316)]=1e3*t.targetDuration)}if(s[tR(272)](tR(253))){e=h[tR(282)](e);let t={duration:void 0};tP[tR(248)](this.url,e,this[tR(304)],t),this.isMasterPlaylist=!0,r.default[tR(243)](a.BalancerTag,"Parsed DASH manifest -> "+this[tR(299)]+" renditions -> "+this._resource[tR(245)]().size),null!=t[tR(242)]&&(this.segmentDuration=1e3*t[tR(242)])}if(r.default.verbose(a.BalancerTag,tR(306)+e[tR(308)]+tR(320)+this[tR(280)]),0!=e[tR(308)])try{this[tR(273)]=e[tR(310)](0,e[tR(308)]),this[tR(321)]=this[tR(305)]>5?this[tR(273)][tR(308)]:0,this[tR(286)]=this[tR(305)]>5?0:this[tR(273)][tR(308)],this.bandwidth=Math.trunc(this.downloadTimeMs>
15?this[tR(273)][tR(308)]/(this.downloadTimeMs/1e3):0),this.data[tR(308)]>0&&(this[tR(292)]=this.data[tR(308)]),this[tR(323)]=0,this[tR(257)]=this[tR(321)];let i=parseInt(t,10);!isNaN(i)&&i>0&&(this.compressedBytes=i,this.uncompressedBytes=this.data.byteLength||e.byteLength||this.realBodySize)}catch(e){r.default[tR(243)](a.BalancerTag,tR(258))}else this[tR(273)][tR(308)]!=this[tR(292)]&&(this[tR(273)]=new ArrayBuffer(1));return this[tR(294)]=this[tR(278)],!0}}function tC(e,t){let i=tO();return(tC=function(e,t){return i[e-=478]})(e,t)}function tO(){let e=["2797140ULfzIh","bandwidths","isAudio","5061CaNCRy","lastCleanPos","addRendition","getSegmentsSize","24080694jVmoQM","isMaxRendition","getRenditions","pos","getSize","set","addSegment","6977652kwVPmO","getVideoRenditions","6iJYOsl","clean","masterUri","renditions","push","delete","8712Lmplle","bandwidthPosition","fileName","get","8175843peWAHy","forEach","route","endsWith","10UjaQtL","getBandwidthsPos","bandwidth","5044975OahMyq","getSegments","1wGvyjS","updateAvailableBandwidths","sort","length","getRendition","values","cleaning","3516896BHarUl"];return(tO=function(){return e})()}let tB=tC;!function(e){let t=tC,i=e();for(;;)try{if(934997==parseInt(t(518))/1*(parseInt(t(483))/2)+-parseInt(t(499))/3*(-parseInt(t(482))/4)+parseInt(t(516))/5+-parseInt(t(497))/6+parseInt(t(486))/7*(-parseInt(t(505))/8)+parseInt(t(509))/9*(parseInt(t(513))/10)+-parseInt(t(490))/11)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(tO);class tx{constructor(){let e=tC;this[e(501)]="",this.renditions=new Map,this[e(511)]="",this[e(507)]="",this[e(484)]=[],this[e(493)]=0,this[e(487)]=0,this.cleaning=!1}[tB(500)](){this[tB(481)]||this[tB(493)]-this.lastCleanPos>1e5&&(this[tB(481)]=!0,this[tB(504)](this[tB(487)],this[tB(487)]+5e3),this[tB(487)]=this[tB(487)]+5e3,this[tB(481)]=!1)}[tB(496)](e,t,i){var s;this[tB(493)]++,null==(s=this[tB(502)][tB(508)](e))||s[tB(496)](t,i,this[tB(493)])}[tB(494)](){let e=0;for(let t of this.renditions[tB(480)]())e+=t[tB(489)]();return e}[tB(504)](e,t){for(let i of this.renditions[tB(480)]())for(let[s,n]of i[tB(517)]())n.pos>=e&&n[tB(493)]<=t&&i[tB(517)]().delete(s)}[tB(488)](e,t){this[tB(502)][tB(495)](e,t),this[tB(519)]()}[tB(492)](){return this[tB(502)]}[tB(498)](){let e=new Map;return this[tB(502)][tB(510)](function(t,i){t[tB(485)]||e[tB(495)](i,t)}),e}[tB(479)](e){let t;return this.renditions[tB(510)](function(i){i[tB(517)]()[tB(510)](function(s){e[tB(512)](s.uri)&&(t=i)})}),t}[tB(519)](){let e=[];this[tB(502)][tB(510)](function(t){t[tB(485)]||e[tB(503)](Number(t[tB(515)]))}),e[tB(520)](function(e,t){return e-t}),this[tB(484)]=e,this[tB(502)][tB(510)](e=>{e[tB(485)]||(e[tB(506)]=this[tB(514)](e[tB(515)]),e[tB(506)]+1==this[tB(484)][tB(478)]&&(e[tB(491)]=!0))})}[tB(514)](e){let t=0,i=-1;return this[tB(484)][tB(510)](function(s){e==s&&(i=t),t++}),i}}function tk(){let e=["next","98873yXSOrh","setSettings","2VeFcFN","Not performing decision since time between requests has not passed yet.","Products","BUCKET","LAST_USED_CDN","2059026gvNhQA","CDNLoader","open","delete","then","Performing decision request with URL ","Removing ","response","isUsingLegacy","disable","getCdnList","throw","_loader","origin","707287HmuZtD","signManifestUsingApi","apply","12JbVxDt","lastIndexOf","-js"," from manifest hashmap since older than ","send","decisionReloadIntervalPerManifestMilliseconds","_manifestMap","onFailedApiResponse","has","224472Geaxra","slice","value","PROFILE_NAME","forEach","onload","488390nmTmcc","657189SlfPVd","Storing ","p2p","onSucessfullApiResponse","devHost","startMonitoring","getRouteAndFilename","AS_ENABLED"," for /decision requests","deleteOldestFromManifestMap","Using ","isValidUrl","shouldPerformDecision","activeSwitching","verbose","registerCommonVariable","getIsEnabled","stringify","getPluginVersion"," in manifest hashmap","host","route","enabled","parse","includes","fileName","get","Using development environment -> ","GET","1229664QGhoXz","createUpdateTimer","gotEmptyResponse","replace","_jwtAuthType","__awaiter","performHashmapCleanup","readyState","Creating setTimeout for decision request with resource ","formatParameters","status","qualityPriority"," + (host: ","BalancerVariables","unregisterCommonVariable","P2PLoader","onerror","size","DECISION_FINISHED","getInstance","split","_jwtToken","true","now","Origin","BALANCER","Empty response received from Balancer API","Error parsing Balancer API response: ","options","debug","loadBalancerData"];return(tk=function(){return e})()}function tM(e,t){let i=tk();return(tM=function(e,t){return i[e-=275]})(e,t)}let tU=tM;!function(e){let t=tM,i=e();for(;;
1)try{if(207816==-parseInt(t(294))/1*(parseInt(t(296))/2)+parseInt(t(327))/3+parseInt(t(318))/4*(-parseInt(t(333))/5)+parseInt(t(301))/6+parseInt(t(315))/7+parseInt(t(363))/8+-parseInt(t(334))/9)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(tk);class tV{constructor(e,t,i){this[tU(324)]=new Map,this[tU(313)]=e,this[tU(367)]=t,this[tU(283)]=i}loadBalancerData(e,t,i,s,l,u,d,c,p,f,g,m,v){var y,T,S,E;return y=this,T=void 0,E=function*(){let y=tM;if(!this[y(313)][y(350)]())return void n.default[y(281)]()[y(349)](el.default[y(298)][y(287)],el.default.BalancerVariables[y(280)],!0);if(!this.shouldPerformDecision(t))return r.default.debug(a.BalancerTag,y(297)),void this[y(364)](e,t,i,s,null!=l&&l,null!=u&&u,c,p,f,g,m);let T=Date[y(285)](),S=h[y(345)](t)?this[y(340)](t):{route:"",fileName:""};r.default[y(348)](a.BalancerTag,y(361)+u);let E=u?o.df[y(338)]:o.df[y(354)];E=f||E,r.default.debug(a.BalancerTag,y(344)+E+y(342));let b=new XMLHttpRequest,_=E+"/"+e+"/"+(c?c+"/":"")+"decision";_="https://"+(_=_[y(366)]("//","/"));let A={resource:""+S.route+S[y(359)],live:""+i,extended:y(284),npawPluginInfo:"true",originCode:null!=p?p:"",v:n.default[y(352)]()[y(282)](y(320))[0],dynamicRules:null!=g?g:"",deviceInfo:null!=m?m:"",authData:v?JSON[y(351)](v):""},w=this;yield new Promise((e,i)=>{b[y(332)]=function(){var i;if(4===b[y(370)]){if(b.status>0&&(10!==w[y(324)][y(279)]||w[y(324)][y(326)](t)||w[y(343)](),w[y(369)](),w[y(324)].set(t,Date[y(285)]()),r.default[y(348)](a.BalancerTag,y(335)+t+y(353))),b[y(373)]>=200&&b[y(373)]<=300){let e=Date[y(285)]()-T;w[y(313)].CDNLoader[y(337)](e);try{if(b[y(308)]){w.options=JSON[y(357)](b[y(308)]),n.default[y(281)]()[y(349)](el.default[y(298)][y(287)],el.default[y(275)].PROFILE_NAME,c),n.default[y(281)]()[y(349)](el.default[y(298)].BALANCER,el.default[y(275)][y(299)],p),w._loader.storage.setSettings(w.options),w[y(313)][y(277)]&&(w[y(313)][y(277)].setSettings(w[y(290)]),w._loader[y(277)][y(339)]()),w[y(313)].CDNLoader[y(295)](w.options,S[y(355)]),w._loader[y(302)][y(339)]();let e=[o.m.cdnPriority,o.m[y(374)]][y(358)](w.options[y(347)])&&(w._loader.CDNLoader[y(311)]()[y(279)]>0||!0===(null==(i=w[y(290)][y(336)])?void 0:i[y(356)]));n.default[y(281)]()[y(309)]()?n.default.getInstance().setActiveSwitchingOnLegacy(e):n.default[y(281)]()[y(349)](el.default.Products[y(287)],el.default[y(275)].AS_ENABLED,e)}else r.default[y(291)](a.BalancerTag,y(288)),w[y(313)][y(277)][y(310)](),w[y(313)].CDNLoader[y(365)](),n.default[y(281)]()[y(349)](el.default[y(298)][y(287)],el.default.BalancerVariables[y(300)],y(286))}catch(e){r.default[y(291)](a.BalancerTag,y(289),e)}}else JSON[y(357)](b.response),n.default[y(281)]()[y(349)](el.default[y(298)][y(287)],el.default[y(275)][y(300)],"Origin"),r.default.debug(a.BalancerTag,"API call failed with status code "+b[y(373)]),w[y(313)][y(302)][y(325)]();n.default[y(281)]()[y(349)](el.default[y(298)][y(287)],el.default[y(275)].DECISION_FINISHED,!0)}e()},b[y(278)]=function(){w[y(313)][y(302)][y(325)](),r.default[y(291)](a.BalancerTag,"API call failed due to a network error."),e()},d?b[y(303)](y(362),_+h[y(372)](A),!1):b[y(303)](y(362),_+h[y(372)](A)),n.default[y(281)]()[y(349)](el.default[y(298)].BALANCER,el.default[y(275)].DECISION_FINISHED,!1),n.default[y(281)]()[y(276)](el.default.Products.BALANCER,el.default[y(275)][y(330)]),n.default[y(281)]()[y(276)](el.default[y(298)][y(287)],el.default.BalancerVariables[y(299)]),n.default.getInstance()[y(276)](el.default.Products.BALANCER,el.default[y(275)][y(341)]),r.default.verbose(a.BalancerTag,y(306)+_+h.formatParameters(A)+y(375)+E+")"),w[y(283)]&&b.setRequestHeader("Authorization",w[y(367)]+" "+w._jwtToken),b[y(322)]()}),this[y(364)](e,t,i,s,null!=l&&l,null!=u&&u,c,p,f,g,m,v)},new(S=void 0,S=Promise)(function(e,t){let i=tM;function s(e){let i=tM;try{r(E[i(293)](e))}catch(e){t(e)}}function n(e){let i=tM;try{r(E[i(312)](e))}catch(e){t(e)}}function r(t){var i;let r=tM;t.done?e(t[r(329)]):((i=t[r(329)])instanceof S?i:new S(function(e){e(i)}))[r(305)](s,n)}r((E=E[i(317)](y,T||[]))[i(293)]())})}[tU(364)](e,t,i,s,n,o,l,u,d,h,c,p){s>0&&(r.default[tU(348)](a.BalancerTag,tU(371)+t),setTimeout(()=>{var r;this[tU(292)](e,t,i,s,n,o,null!=(r=this[tU(290)][tU(316)])&&r,l,u,d,h,c,p)},1e3*s))}[tU(340)](e){let t=new URL(e),i=t[tU(314)]+t.pathname,s=i[tU(319)]("/")+1;return{route:i[tU(328)](0,s),fileName:i[tU(328)](s)}}[tU(346)](e){var t;if(!this[tU(324)][tU(326)](e))return!0;{let i=null!=(t=this._manifestMap[tU(360)](e))?t:Date[tU(285)]();if(Date[tU(285)]()-i>o.df.decisionReloadIntervalPerManifestMilliseconds)return!0}return!1}[tU(369)](){this[tU(324)][tU(331)]((e,t)=>{Date[tU(285)]()-e>o.df[tU(323)]&&(r.default.verbose(a.BalancerTag,tU(307)+t+tU(321)+o.df[tU(323)]+"ms"),this[tU(324)][tU(304)](t))})}deleteOldestFromManifestMap(){let e,t=1/0;
1this[tU(324)].forEach((i,s)=>{i<t&&(t=i,e=s)}),void 0!==e&&this[tU(324)][tU(304)](e)}}let tq=tX;function tF(){let e=["progressDownloadedBytesLastUpdate","52LXopXE","value","483AYgZUo","58359yxzmWs","105444AJXSWU","4481696cukQWG","208671WMhtyl","instantBandwidth","__awaiter","done","endTime","throw","now","limit","downloadTimeMs","delay","size","209105tVLUYS","apply","next","bandwidth","startTime","470850DDwbWr"];return(tF=function(){return e})()}function tX(e,t){let i=tF();return(tX=function(e,t){return i[e-=437]})(e,t)}!function(e){let t=tX,i=e();for(;;)try{if(196237==parseInt(t(446))/1+parseInt(t(438))/2+parseInt(t(443))/3*(parseInt(t(440))/4)+parseInt(t(457))/5+parseInt(t(444))/6+parseInt(t(442))/7+-parseInt(t(445))/8)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(tF);class tH{[tq(453)](e,t){var i,s,n,r;return i=this,s=void 0,r=function*(){let i=tX,s=t[i(456)]/(t[i(454)]/1e3)*8;if(0!=e&&s>e){let s=1e3*t.size*8/e,n=(Date[i(452)](),t[i(437)],s-t[i(454)]);n>0&&(yield h[i(455)](n)),t[i(450)]=Date[i(452)](),t[i(454)]=t[i(450)]-t[i(437)],t[i(460)]=t[i(456)]/(t[i(454)]/1e3),t[i(447)]=0,t[i(439)]=t[i(450)]}},new(n=void 0,n=Promise)(function(e,t){function a(e){let i=tX;try{l(r[i(459)](e))}catch(e){t(e)}}function o(e){let i=tX;try{l(r[i(451)](e))}catch(e){t(e)}}function l(t){var i;let s=tX;t[s(449)]?e(t[s(441)]):((i=t[s(441)])instanceof n?i:new n(function(e){e(i)})).then(a,o)}l((r=r[tX(458)](i,s||[])).next())})}}function tG(){var e=["unbanned_time","http_1XX","internal_switches_due_quality","cache_hit_chunks","internal_switches","cache_miss_chunks","network_latency_samples","video_downloaded_chunks","min_ping_time","internal_unbanned_time","30XTYTih","245132gNzPLE","internal_switches_due_errors","http_3XX","5mwdhsh","7701715lRXZJi","http_2XX","max_ping_time","136SnXmsR","http_5XX","downloaded_chunks","time","avg_ping_time","min_response_bytes","min_response_time","3064692GGEzJZ","internal_provider","video_time","99639pPIuOL","min_throughput","27125527Fmogwp","resource","internal_banned","compressed_video_bytes","internal_switches_due_connectivity","min_network_latency","switches_due_quality","response_time_samples","errors","5199080qQzyOd","max_response_time","internal_unbanned","is_banned","provider","http_4XX","2844XuDFDd","max_bandwidth","switches_due_connectivity","116nMZMPR","internal_is_banned","downloaded_bytes"];return(tG=function(){return e})()}function tj(e,t){var i=tG();return(tj=function(e,t){return i[e-=232]})(e,t)}!function(e){for(var t=tj,i=e();;)try{if(630967==parseInt(t(279))/1*(parseInt(t(282))/2)+parseInt(t(244))/3*(parseInt(t(245))/4)+parseInt(t(248))/5*(parseInt(t(259))/6)+parseInt(t(249))/7+parseInt(t(252))/8*(parseInt(t(262))/9)+parseInt(t(273))/10+-parseInt(t(264))/11)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(tG);class tW{constructor(e,t,i,s,n,r,a,o,l,u,d,h,c,p,f,g,m,v,y,T,S,E,b,_,A,w,I,P,R,N,D,L,C,O,B,x,k,M,U,V,q,F,X,H,G,j,W,Y,K,z,J,Q,$,Z,ee,et,ei,es,en,er){var ea=tj;this[ea(277)]=e,this[ea(260)]=t,this.is_p2p=i,this[ea(233)]=n,this[ea(254)]=r,this.response_bytes=T,this[ea(257)]=S,this.max_response_bytes=E,this.response_bytes_samples=b,this.response_time=_,this[ea(258)]=A,this[ea(274)]=w,this[ea(271)]=I,this.network_latency=P,this[ea(269)]=R,this.max_network_latency=N,this[ea(240)]=D,this.throughput=L,this[ea(263)]=C,this.max_throughput=O,this.throughput_samples=B,this[ea(272)]=a,this[ea(235)]=x,this[ea(250)]=k,this[ea(247)]=M,this[ea(278)]=U,this[ea(253)]=V,this[ea(234)]=q,this.banned_time=F,this[ea(267)]=H,this.uncompressed_video_bytes=X,this.switches=G,this[ea(281)]=j,this.switches_due_errors=W,this[ea(270)]=Y,this[ea(255)]=o,this[ea(280)]=l,this.min_bandwidth=u,this.banned=z,this.unbanned=J,this[ea(256)]=d,this[ea(242)]=h,this[ea(251)]=c,this[ea(276)]=K,this.is_active=s,this[ea(265)]=p,this.response_time=_,this[ea(237)]=f,this[ea(239)]=g,this.video_downloaded_bytes=m,this[ea(241)]=v,this[ea(261)]=y,this[ea(232)]=Q,this[ea(266)]=$,this[ea(275)]=Z,this[ea(238)]=ee,this[ea(236)]=et,this[ea(268)]=ei,this[ea(246)]=es,this.internal_banned_time=en,this[ea(243)]=er}}function tY(e,t){var i=tK();return(tY=function(e,t){return i[e-=340]})(e,t)}function tK(){var e=["errors","peers_available","min_network_latency","2516259MsKYgU","min_throughput","resource","max_peers_parallel_used","response_time_samples","max_network_latency","video_downloaded_chunks","3375815KydLtd","max_response_time","9351992scKDfS","64nHMmJI","network_latency_samples","upload_time","peers","19004RKyuNl","network_latency","peers_parallel_used","throughput","is_p2p","6280422pkBwTz","peer_connection_time","late_uploaded_chunks","max_peers_available","other_errors","min_response_time","6815018icASnM","video_downloaded_bytes","min_ping_time","downloaded_bytes","time","max_bandwidth","min_bandwidth","timeout_errors","response_bytes","active_peers","max_response_bytes","missed_downloaded_chunks","479096mQrJDF","max_ping_time","uploaded_chunks"];return(tK=function(){return e})()}!function(e){for(var t=tY,i=e();;)try{if(590218==parseInt(t(353))/1*(-parseInt(t(357))/2)+-parseInt(t(343))/3+parseInt(t(380))/4+parseInt(t(350))/5+parseInt(t(362))/6+-parseInt(t(368))/7+parseInt(t(352))/8)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(tK);class tz{constructor(e,t,i,s,n,r,a,o,l,u,d,h,c,p,f,g,m,v,y,T,S,E,b,_,A,w,I,P,R,N,D,L,C,O,B,x,k,M,U,V,q,F,X,H,G,j,W,Y,K,z,J,Q){var $=tY;this.provider=e,this.internal_provider=t,this[$(361)]=i,this[$(371)]=s,this.downloaded_chunks=n,this[$(340)]=r,this[$(372)]=a,this[$(373)]=o,this[$(374)]=l,this.avg_ping_time=u,this[$(370)]=d,this[$(381)]=h,this[$(345)]=c,this[$(369)]=p,this[$(349)]=f,this.video_time=g,this.uploaded_bytes=m,this[$(382)]=v,this[$(355)]=y,this[$(364)]=T,this.late_uploaded_bytes=S,this.late_downloaded_bytes=E,this[$(379)]=b,this[$(375)]=_,this[$(366)]=A,this[$(377)]=w,this[$(356)]=I,this[$(376)]=P,this.min_response_bytes=R,this[$(378)]=N,this.response_bytes_samples=D,this.response_time=L,this[$(367)]=C,this[$(351)]=O,this[$(347)]=B,this[$(358)]=x,this[$(342)]=k,this[$(348)]=M,this[$(354)]=U,this[$(360)]=V,this[$(344)]=q,this.max_throughput=F,this.throughput_samples=X,this[$(341)]=H,this[$(365)]=G,this.min_peers_available=j,this.peers_used=W,this[$(359)]=Y,this[$(346)]=K,this.min_peers_parallel_used=z,this.peer_discovery_time=J,this[$(363)]=Q}}function tJ(){var e=["priorityCdn","videoId","requestPlatform","apiCallsMinResponseTime","33736AlzqVa","p2pAvailable","15816690NyvEJH","4aNTApU","bucket","apiCallsMaxResponseTime","447qhtnwk","bolinaAvailable","28369MXWsDu","5990733pcTDwK","isLive","apiCallsAvgResponseTime","6791890AemoYX","11812yHemgo","activeSwitchingPriority","4174104IudkoD","forceDecision","apiCallResponses","9JqkmQh","apiCallErrors","announcedCdns","chunkDuration"];return(tJ=function(){return e})()}function tQ(e,t){var i=tJ();return(tQ=function(e,t){return i[e-=240]})(e,t)}!function(e){for(var t=tQ,i=e();;)try{if(884378==-parseInt(t(262))/1*(-parseInt(t(257))/2)+parseInt(t(260))/3*(parseInt(t(241))/4)+-parseInt(t(240))
1/5+-parseInt(t(243))/6+parseInt(t(263))/7+parseInt(t(254))/8*(parseInt(t(246))/9)+parseInt(t(256))/10)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(tJ);class t${constructor(e,t,i,s,n,r,a,o,l,u,d,h,c,p,f,g){var m=tQ;this[m(247)]=e,this[m(245)]=t,this[m(253)]=i,this[m(265)]=s,this[m(259)]=n,this[m(258)]=r,this[m(264)]=a,this[m(251)]=o,this[m(244)]=l,this[m(252)]=u,this[m(255)]=d,this[m(261)]=h,this[m(242)]=c,this[m(250)]=p,this[m(249)]=f,this[m(248)]=g}}let tZ=t3;function t0(){let e=["lastReportedCodavelSwitchesDueToConnectivity","CDN","get","highestPingTime","codavelBanTime","_instance","getSegmentDuration","otherErrors","lastReportedCodavelSwitchesDueToErrors","getPluginVersion","host","peersAvailable","stringify","codavelUnbanCount","report","absent","minNetworkLatency","value","codavelAllBanned","lastReportedCodavelUnbanTime","millis","token","activePeers","downloadMillis","433005msXqol","140328IDzeUV","downloadChunksVideo","uuid","getPingTime","sumThroughput","BALANCER_BITRATE","profileName","cacheHit","registerCommonVariable","minThroughput","http_2XX","totalFailures","throw","apiCallsAvgResponseTime","http5xxResponses","clone","trunc","codavelSwitchesDueToErrors","lastCdnStats","http4xxResponses","samplesThroughput","http_4XX","minPeersAvailable","isCodavel","discardedDownloadedBytes","lastReportedCodavelBanTime","total","Consumer","4322934kDckJY","takeIf","switchesDueToConnectivity","lastReportedCodavelSwitchesDueToQuality","peersUsed","downloadedChunks","codavelUnbanTime","getForceDecision","apply","uploadedChunks","resetOnPing","getViewCode","getReportInterval","maxApiCallResponseTime","NQS","apiCallErrors","some","lastReportedCodavelBanCount","updateData","bucket","verbose","codavelBanCount","videoTime","maxPeersParallelUsed","pushPeriodicDataFromCallback","reportRequest","stopped","lowestSegmentBandwidth","unBannedCount","set","timeoutErrors","lastReportedCodavelUnbanCount","usedOrProbed","bolinaAvailable","downloadMillisVideo","maxPingTime","every","cacheMiss","totalFail","announcedCdns","banned","CDNLoader","http1xxResponses","downloadedChunksVideo","forceDecision","lowestPingTime","requestPlatform","lateUploadedBytes","getCdnCacheMisses","compressedBytes","downloadedBytesVideo","sumVideoTime","accountCode","samplesResponseTime","http3xxResponses","codavelSwitchesDueToConnectivity","MAX_SAFE_INTEGER","http2xxResponses","minPingTime","missedDownloadedChunks","maxThroughput","http_1XX","timeout","AnalyticsVariables","sumResponseBytes","downloadedSegments","lastP2pStats","http_5XX","lastReportedCodavelSwitches","name","isUsingLegacy","p2pAvailable","forEach","updatePeerMetrics","4276080LROPyK","minResponseBytes","GET","processedApiCall","sumVideoBytes","switches","minApiCallResponseTime","peerDiscoveryTime","lateUploadedChunks","internal_provider","avgPingTime","then","bannedTime","maxPeersAvailable","maxResponseBytes","discardedUploadedChunks","-js","resource","3175371GEDshm","codavelSwitches","takeMin","lateDownloadedBytes","Plugin","values","2227470WgxiSe","updateAvailability","takeMax","__awaiter","BalancerVariables","unbannedCount","uploadedBytes","peerConnectionTime","uploadedTime","downloadedBytes","8IFeenL","error","switchesDueToErrors","minResponseTime","getInstance","maxResponseTime","samplesResponseBytes","updateCodavelBanTimes","getCdnList","bannedCount","failedRequests","maxBandwidth","getCommonVariable","errors","8uYSQFn","offline","isLive","BLACK_HOLE","priorityCdn","getOptions","loader","active","discardedUploadedBytes","714432LhxHot","apiCallResponses","getFastDataSessionToken","split","maxNetworkLatency","CODAVEL","sumNetworkLatency","totalPeers","videoId","peersParallelUsed","uncompressedBytes","samplesNetworkLatency","apiCallsMinResponseTime","switchesDueToQuality","getFastDataService","wasStartSent","startsWith","codavelSwitchesDueToQuality","getTime","12yEtOEh","http_3XX","minPeersParallelUsed","unbannedTime","P2PLoader","Products","minBandwidth","started","sumResponseTime","downloadBytesVideo","done","getIsLive","P2P"];return(t0=function(){return e})()}function t3(e,t){let i=t0();return(t3=function(e,t){return i[e-=366]})(e,t)}!function(e){let t=t3,i=e();for(;;)try{if(425513==parseInt(t(579))/1*(parseInt(t(401))/2)+parseInt(t(400))/3*(-parseInt(t(551))/4)+parseInt(t(527))/5+parseInt(t(560))/6+-parseInt(t(429))/7+-parseInt(t(537))/8*(-parseInt(t(521))/9)+-parseInt(t(503))/10)break;i.push(i.shift())}catch(e){i.push(i.shift())}}(t0);class t1{static[tZ(541)](e){return null==this[tZ(381)]&&null!=e?this._instance=new t1(e):null!=e&&null!=this[tZ(381)]&&(null==e?void 0:e[tZ(403)])!=this[tZ(381)][tZ(557)][tZ(403)]&&(this[tZ(381)].report(),this[tZ(381)]=new t1(e)),this._instance}constructor(e){this[tZ(370)]=!1,this[tZ(455)]=!1,this[tZ(419)]=new Map,this[tZ(495)]=new Map,this[tZ(386)]="",this[tZ(397)]="",this[tZ(481)]="",this.profileName="",this[tZ(520)]="",this[tZ(426)]=void 0,this[tZ(395)]=void 0,this[tZ(446)]=void 0,this[tZ(460)]=void 0,this.lastReportedCodavelSwitches=void 0,this.lastReportedCodavelSwitchesDueToQuality=void 0,this[tZ(384)]=void 0,this[tZ(376)]=void 0,this[tZ(557)]=e}[tZ(447)](e,t,i,s,r){var l,u,d,h,c;return u=this,d=void 0,c=function*(){let u=t3;if(this[u(386)]=e,this[u(397)]=t,this[u(481)]=i,this[u(407)]=null!=s?s:"",this[u(520)]=r,!(n.default[u(541)]()[u(499)]()&&this[u(397)][u(576)]("undefined")||this[u(370)])){let e=o.xC[u(377)];n.default[u(541)]()[u(453)](n.default.getInstance()[u(556)]()[u(552)]?el.default[u(428)][u(554)]:el.default.Consumer[u(443)],e,e,1e3*this[u(557)][u(441)](),null!=(l=n.default.getInstance()[u(549)](el.default[u(368)].VIDEO_ANALYTICS,el.default[u(492)].METHOD_OPTION))?l:a.Method[u(505)],()=>{if(n.default[u(541)]()[u(575)]())return t1.getInstance().report()},()=>{}),this[u(370)]=!0}},new(h=void 0,h=Promise)(function(e,t){function i(e){try{n(c.next(e))}catch(e){t(e)}}function s(e){let i=t3;
1try{n(c[i(413)](e))}catch(e){t(e)}}function n(t){var n;let r=t3;t[r(373)]?e(t[r(393)]):((n=t[r(393)])instanceof h?n:new h(function(e){e(n)}))[r(514)](i,s)}n((c=c[t3(437)](u,d||[])).next())})}[tZ(390)](){try{if(!this.stopped){let e,t,i=this[tZ(557)][tZ(470)][tZ(545)](),s=Array.from(i[tZ(526)]())[tZ(465)](e=>!e[tZ(461)]),o=new Map;e=s?new Map:new Map(i);let l=0,u=0;this.loader[tZ(470)][tZ(544)](),this.loader[tZ(367)][tZ(502)]();let d=!1;if(e[tZ(501)](e=>{e[tZ(528)]();let t=e[tZ(416)](),i=this[tZ(419)][tZ(378)](e[tZ(498)]);l+=t[tZ(507)]||0,u+=t[tZ(480)]||0;let s={downloadedBytesVideo:t[tZ(479)],downloadedChunksVideo:t[tZ(472)],videoTime:t[tZ(463)],downloadedBytes:t[tZ(536)],downloadedChunks:t[tZ(434)],sumResponseBytes:t[tZ(493)],minResponseBytes:t[tZ(504)],maxResponseBytes:t.maxResponseBytes,samplesResponseBytes:t[tZ(543)],sumResponseTime:t.sumResponseTime,minResponseTime:t.minResponseTime,maxResponseTime:t[tZ(542)],samplesResponseTime:t[tZ(482)],sumNetworkLatency:t[tZ(566)],minNetworkLatency:t[tZ(392)],maxNetworkLatency:t.maxNetworkLatency,samplesNetworkLatency:t[tZ(571)],sumThroughput:t.sumThroughput,minThroughput:t[tZ(410)],maxThroughput:t[tZ(489)],samplesThroughput:t[tZ(421)],totalFailures:t[tZ(467)],http_1XX:t.http1xxResponses,http_2XX:t[tZ(486)],http_3XX:t[tZ(483)],http_4XX:t[tZ(420)],http_5XX:t[tZ(415)],unbannedTime:t[tZ(366)],bannedTime:t[tZ(515)],compressedBytes:t[tZ(478)],uncompressedBytes:t[tZ(570)],switches:t[tZ(508)],switchesDueToConnectivity:t[tZ(431)],switchesDueToErrors:t[tZ(539)],switchesDueToQuality:t.switchesDueToQuality,millis:t[tZ(399)],bannedCount:t.bannedCount,unbannedCount:t.unBannedCount,avgPingTime:t[tZ(513)],minPingTime:t[tZ(474)]===Number[tZ(485)]?0:t[tZ(474)],maxPingTime:t[tZ(379)],cacheHit:t.getCdnCacheHits(),cacheMiss:t.getCdnCacheMisses(),minBandwidth:t.lowestSegmentBandwidth===Number[tZ(485)]?0:t[tZ(456)],maxBandwidth:t.highestSegmentBandwidth};i&&(s.downloadedBytesVideo-=i[tZ(479)],s.downloadedChunksVideo-=i[tZ(472)],s.videoTime-=i[tZ(463)],s.downloadedBytes-=i[tZ(536)],s[tZ(434)]-=i[tZ(434)],s[tZ(412)]-=i[tZ(467)],null!=s[tZ(490)]&&null!=i.http1xxResponses&&(s[tZ(490)]-=i[tZ(471)]),null!=s[tZ(411)]&&null!=i[tZ(486)]&&(s[tZ(411)]-=i.http2xxResponses),null!=s.http_3XX&&null!=i[tZ(483)]&&(s[tZ(580)]-=i[tZ(483)]),null!=s[tZ(422)]&&null!=i[tZ(420)]&&(s[tZ(422)]-=i.http4xxResponses),null!=s[tZ(496)]&&null!=i[tZ(415)]&&(s[tZ(496)]-=i.http5xxResponses),null!=s[tZ(478)]&&null!=i[tZ(478)]&&(s[tZ(478)]-=i[tZ(478)]),null!=s.uncompressedBytes&&null!=i.uncompressedBytes&&(s[tZ(570)]-=i[tZ(570)]),null!=s[tZ(508)]&&null!=i.switches&&(s[tZ(508)]-=i.switches),null!=s[tZ(431)]&&null!=i[tZ(431)]&&(s[tZ(431)]-=i[tZ(431)]),null!=s[tZ(539)]&&null!=i[tZ(539)]&&(s[tZ(539)]-=i[tZ(539)]),null!=s[tZ(573)]&&null!=i[tZ(573)]&&(s.switchesDueToQuality-=i.switchesDueToQuality),s[tZ(396)]-=i.downloadMillis,s[tZ(546)]-=i.bannedCount,s.unbannedCount-=i[tZ(457)],s[tZ(513)]-=i.avgPingTime,s.minPingTime=0==s.minPingTime?s[tZ(487)]:s[tZ(487)]-i.lowestPingTime,s[tZ(464)]=0==s[tZ(464)]?s[tZ(464)]:s[tZ(464)]-i[tZ(379)],s[tZ(408)]-=i.getCdnCacheHits(),s[tZ(466)]-=i[tZ(477)](),s[tZ(369)]=0==s.minBandwidth?s[tZ(369)]:s[tZ(369)]-i[tZ(456)],s[tZ(548)]=0==s.maxBandwidth?s[tZ(548)]:s[tZ(548)]-i.highestSegmentBandwidth);let n=e.isCodavel()?tZ(565):e.provider;if(e[tZ(424)]())if(d){let i=new tW(n,e[tZ(512)],!1,e[tZ(558)],this[tZ(430)](s.downloadedBytes,e=>0!=e),this[tZ(430)](s[tZ(434)],e=>0!=e),this[tZ(430)](s.totalFailures,e=>0!=e),this[tZ(430)](s[tZ(396)],e=>0!=e),this[tZ(430)](s.maxBandwidth,e=>0!=e),this[tZ(430)](s.minBandwidth,e=>0!=e),this[tZ(430)](s[tZ(513)],e=>0!=e),this[tZ(430)](s.minPingTime,e=>0!=e),this[tZ(430)](s[tZ(464)],e=>0!=e),this[tZ(520)],this[tZ(430)](s[tZ(408)],e=>0!=e),this[tZ(430)](s[tZ(466)],e=>0!=e),this[tZ(430)](s.downloadedBytesVideo,e=>0!=e),this[tZ(430)](s[tZ(472)],e=>0!=e),this[tZ(430)](s[tZ(451)],e=>0!=e),s.sumResponseBytes,this[tZ(523)](s[tZ(504)]),this[tZ(529)](s[tZ(517)]),s[tZ(543)],s[tZ(371)],this[tZ(523)](s[tZ(540)]),this.takeMax(s.maxResponseTime),s[tZ(482)],s[tZ(566)],this.takeMin(s[tZ(392)]),this[tZ(529)](s.maxNetworkLatency),s[tZ(571)],s[tZ(405)],this[tZ(523)](s[tZ(410)]),this[tZ(529)](s[tZ(489)]),s[tZ(421)],this[tZ(430)](s.http_1XX,e=>0!=e),this.takeIf(s[tZ(411)],e=>0!=e),this[tZ(430)](s[tZ(580)],e=>0!=e),this[tZ(430)](s[tZ(422)],e=>0!=e),this[tZ(430)](s[tZ(496)],e=>0!=e),void 0,void 0,this[tZ(430)](s.uncompressedBytes,e=>0!=e),this[tZ(430)](s.compressedBytes,e=>0!=e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,e[tZ(469)],this[tZ(430)](s[tZ(546)],e=>0!=e),this[tZ(430)](s[tZ(532)],e=>0!=e),this[tZ(430)](s.switches,e=>0!=e),this[tZ(430)](s[tZ(431)],e=>0!=e),this[tZ(430)](s[tZ(539)],e=>0!=e),this[tZ(430)](s[tZ(573)],e=>0!=e),s.bannedTime,s[tZ(366)]);o.set(e[tZ(498)],i),this[tZ(419)].set(e[tZ(498)],t)}else{let i=0;null!=this[tZ(557)].CDNLoader[tZ(450)]&&(i=null!=this[tZ(446)]?this.loader[tZ(470)][tZ(450)]-this[tZ(446)]:this[tZ(557)][tZ(470)].codavelBanCount);let r=0;null!=this.loader[tZ(470)].codavelUnbanCount&&(r=null!=this[tZ(460)]?this[tZ(557)][tZ(470)][tZ(389)]-this.lastReportedCodavelUnbanCount:this[tZ(557)][tZ(470)][tZ(389)]);let a=0;null!=this[tZ(557)][tZ(470)].codavelBanTime&&(a=null!=this[tZ(426)]?this.loader[tZ(470)][tZ(380)]-this[tZ(426)]:this[tZ(557)][tZ(470)][tZ(380)]);let l=0;null!=this[tZ(557)][tZ(470)][tZ(435)]&&(l=null!=this[tZ(395)]?this[tZ(557)][tZ(470)][tZ(435)]-this[tZ(395)]:this.loader[tZ(470)][tZ(435)]);let u=0;null!=this.loader[tZ(470)][tZ(522)]&&(u=null!=this[tZ(497)]?this[tZ(557)].CDNLoader[tZ(522)]-this[tZ(497)]:this[tZ(557)].CDNLoader[tZ(522)]);let h=0;null!=this.loader[tZ(470)][tZ(577)]&&(h=null!=this.lastReportedCodavelSwitchesDueToQuality?this[tZ(557)][tZ(470)].codavelSwitchesDueToQuality-this[tZ(432)]:this[tZ(557)][tZ(470)][tZ(577)]);let c=0;null!=this[tZ(557)].CDNLoader.codavelSwitchesDueToConnectivity&&(c=null!=this[tZ(376)]?this[tZ(557)][tZ(470)][tZ(484)]-this[tZ(376)]:this[tZ(557)].CDNLoader[tZ(484)]);let p=0;null!=this[tZ(557)][tZ(470)].codavelSwitchesDueToErrors&&(p=null!=this.lastReportedCodavelSwitchesDueToErrors?this[tZ(557)][tZ(470)][tZ(418)]-this[tZ(384)]:this[tZ(557)][tZ(470)][tZ(418)]);let f=new tW(n,e[tZ(512)],!1,e.active,this.takeIf(s[tZ(536)],e=>0!=e),this[tZ(430)](s.downloadedChunks,e=>0!=e),this[tZ(430)](s[tZ(412)],e=>0!=e),this[tZ(430)](s[tZ(396)],e=>0!=e),this.takeIf(s[tZ(548)],e=>0!=e),this[tZ(430)](s[tZ(369)],e=>0!=e),this[tZ(430)](s[tZ(513)],e=>0!=e),this.takeIf(s[tZ(487)],e=>
10!=e),this.takeIf(s[tZ(464)],e=>0!=e),this[tZ(520)],this[tZ(430)](s[tZ(408)],e=>0!=e),this[tZ(430)](s.cacheMiss,e=>0!=e),this[tZ(430)](s[tZ(479)],e=>0!=e),this[tZ(430)](s[tZ(472)],e=>0!=e),this[tZ(430)](s[tZ(451)],e=>0!=e),s[tZ(493)],this[tZ(523)](s.minResponseBytes),this[tZ(529)](s.maxResponseBytes),s[tZ(543)],s[tZ(371)],this[tZ(523)](s[tZ(540)]),this.takeMax(s[tZ(542)]),s[tZ(482)],s.sumNetworkLatency,this[tZ(523)](s[tZ(392)]),this[tZ(529)](s[tZ(564)]),s.samplesNetworkLatency,s[tZ(405)],this[tZ(523)](s.minThroughput),this.takeMax(s[tZ(489)]),s.samplesThroughput,this[tZ(430)](s.http_1XX,e=>0!=e),this[tZ(430)](s[tZ(411)],e=>0!=e),this[tZ(430)](s[tZ(580)],e=>0!=e),this[tZ(430)](s[tZ(422)],e=>0!=e),this[tZ(430)](s.http_5XX,e=>0!=e),l,a,this[tZ(430)](s.uncompressedBytes,e=>0!=e),this.takeIf(s[tZ(478)],e=>0!=e),this.takeIf(u,e=>0!=e),this[tZ(430)](c,e=>0!=e),this[tZ(430)](p,e=>0!=e),this[tZ(430)](h,e=>0!=e),this[tZ(557)].CDNLoader[tZ(394)],this[tZ(430)](i,e=>0!=e),this.takeIf(r,e=>0!=e),e[tZ(469)],this[tZ(430)](s[tZ(546)],e=>0!=e),this[tZ(430)](s[tZ(532)],e=>0!=e),this.takeIf(s[tZ(508)],e=>0!=e),this.takeIf(s[tZ(431)],e=>0!=e),this[tZ(430)](s[tZ(539)],e=>0!=e),this[tZ(430)](s.switchesDueToQuality,e=>0!=e),s[tZ(515)],s.unbannedTime);o[tZ(458)](e[tZ(498)],f),this[tZ(419)][tZ(458)](e[tZ(498)],t),d=!0}else{let i=new tW(n,e[tZ(512)],!1,e.active,this[tZ(430)](s.downloadedBytes,e=>0!=e),this[tZ(430)](s[tZ(434)],e=>0!=e),this.takeIf(s[tZ(412)],e=>0!=e),this.takeIf(s.millis,e=>0!=e),this[tZ(430)](s[tZ(548)],e=>0!=e),this.takeIf(s[tZ(369)],e=>0!=e),this[tZ(430)](s[tZ(513)],e=>0!=e),this[tZ(430)](s[tZ(487)],e=>0!=e),this[tZ(430)](s[tZ(464)],e=>0!=e),this[tZ(520)],this.takeIf(s[tZ(408)],e=>0!=e),this[tZ(430)](s.cacheMiss,e=>0!=e),this[tZ(430)](s[tZ(479)],e=>0!=e),this[tZ(430)](s[tZ(472)],e=>0!=e),this[tZ(430)](s.videoTime,e=>0!=e),s[tZ(493)],this[tZ(523)](s.minResponseBytes),this[tZ(529)](s.maxResponseBytes),s.samplesResponseBytes,s[tZ(371)],this[tZ(523)](s.minResponseTime),this[tZ(529)](s[tZ(542)]),s[tZ(482)],s[tZ(566)],this[tZ(523)](s[tZ(392)]),this[tZ(529)](s[tZ(564)]),s[tZ(571)],s[tZ(405)],this[tZ(523)](s.minThroughput),this[tZ(529)](s.maxThroughput),s.samplesThroughput,this.takeIf(s.http_1XX,e=>0!=e),this[tZ(430)](s.http_2XX,e=>0!=e),this[tZ(430)](s[tZ(580)],e=>0!=e),this[tZ(430)](s[tZ(422)],e=>0!=e),this[tZ(430)](s.http_5XX,e=>0!=e),s[tZ(366)],s[tZ(515)],this[tZ(430)](s[tZ(570)],e=>0!=e),this.takeIf(s.compressedBytes,e=>0!=e),this[tZ(430)](s.switches,e=>0!=e),this[tZ(430)](s.switchesDueToConnectivity,e=>0!=e),this[tZ(430)](s[tZ(539)],e=>0!=e),this[tZ(430)](s[tZ(573)],e=>0!=e),e[tZ(469)],this[tZ(430)](s[tZ(546)],e=>0!=e),this.takeIf(s[tZ(532)],e=>0!=e));o[tZ(458)](e.name,i),this[tZ(419)][tZ(458)](e[tZ(498)],t)}}),this[tZ(557)].P2PLoader.isEnabled()){let e=this[tZ(557)][tZ(367)].getStats(),t=this[tZ(495)].get(tZ(375));l+=e[tZ(507)]||0,u+=e.sumVideoTime||0;let i={downloadedBytes:e[tZ(536)],downloadedChunks:e[tZ(494)],errors:e.failedRequests[tZ(427)],millis:e[tZ(399)],maxBandwidth:e[tZ(548)],minBandwidth:e.minBandwidth===Number[tZ(485)]?0:e[tZ(369)],avgPingTime:e[tZ(513)],minPingTime:e.minPingTime===Number[tZ(485)]?0:e[tZ(487)],maxPingTime:e.maxPingTime,downloadMillisVideo:e.downloadMillisVideo,downloadBytesVideo:e[tZ(372)],downloadChunksVideo:e[tZ(402)],uploadedBytes:e[tZ(533)],uploadedChunks:e[tZ(438)],uploadedTime:e[tZ(535)],lateUploadedChunks:e[tZ(518)],lateUploadedBytes:e[tZ(559)],lateDownloadedBytes:e[tZ(425)],missedDownloadedChunks:e[tZ(547)][tZ(391)],timeoutErrors:e[tZ(547)][tZ(491)],otherErrors:e[tZ(547)][tZ(538)],activePeers:e[tZ(398)],totalPeers:e[tZ(567)],sumResponseBytes:e[tZ(493)],minResponseBytes:e[tZ(504)],maxResponseBytes:e[tZ(517)],samplesResponseBytes:e[tZ(543)],sumResponseTime:e[tZ(371)],minResponseTime:e[tZ(540)],maxResponseTime:e[tZ(542)],samplesResponseTime:e.samplesResponseTime,sumNetworkLatency:e[tZ(566)],minNetworkLatency:e.minNetworkLatency,maxNetworkLatency:e[tZ(564)],samplesNetworkLatency:e.samplesNetworkLatency,sumThroughput:e[tZ(405)],minThroughput:e.minThroughput,maxThroughput:e.maxThroughput,samplesThroughput:e.samplesThroughput,peersAvailable:e.peersAvailable,minPeersAvailable:e[tZ(423)],maxPeersAvailable:e[tZ(516)],peersUsed:e[tZ(433)],peersParallelUsed:e[tZ(569)],minPeersParallelUsed:e[tZ(581)],maxPeersParallelUsed:e[tZ(452)],peerDiscoveryTime:e[tZ(510)],peerConnectionTime:e[tZ(534)]};t&&(i[tZ(536)]-=t.downloadedBytes,i[tZ(434)]-=t[tZ(494)],i[tZ(550)]-=t[tZ(547)].total,i[tZ(396)]-=t.downloadMillis,i[tZ(548)]=0==i[tZ(548)]?i[tZ(548)]:i.maxBandwidth-t[tZ(548)],i[tZ(369)]=0==i[tZ(369)]?i[tZ(369)]:i[tZ(369)]-t.minBandwidth,i[tZ(513)]-=t[tZ(513)],i.minPingTime=0==i[tZ(487)]?i[tZ(487)]:i[tZ(487)]-t[tZ(487)],i[tZ(464)]=0==i.maxPingTime?i[tZ(464)]:i[tZ(464)]-t.maxPingTime,i[tZ(487)]-=t[tZ(487)],i.maxPingTime-=t[tZ(464)],i[tZ(463)]-=t[tZ(463)],i.downloadBytesVideo-=t[tZ(372)],i[tZ(402)]-=t[tZ(402)],i.uploadedBytes-=t[tZ(533)],i[tZ(438)]-=t.uploadedChunks,i.uploadedTime-=t[tZ(535)],i[tZ(511)]-=t[tZ(518)],i[tZ(476)]-=t.discardedUploadedBytes,i[tZ(524)]-=t[tZ(425)],i[tZ(488)]-=t[tZ(547)][tZ(391)],i[tZ(459)]-=t[tZ(547)][tZ(491)],i[tZ(383)]-=t[tZ(547)].error,
1i[tZ(398)]-=t[tZ(398)],i.totalPeers-=t.totalPeers,null!=i[tZ(387)]&&null!=t[tZ(387)]&&(i[tZ(387)]-=t[tZ(387)]),null!=i[tZ(433)]&&null!=t[tZ(433)]&&(i.peersUsed-=t[tZ(433)]),null!=i.peersParallelUsed&&null!=t[tZ(569)]&&(i.peersParallelUsed-=t[tZ(569)]),null!=i[tZ(510)]&&null!=t[tZ(510)]&&(i[tZ(510)]-=t[tZ(510)]),null!=i[tZ(534)]&&null!=t[tZ(534)]&&(i[tZ(534)]-=t[tZ(534)]));let s=new tz("P2P",tZ(375),!0,this[tZ(430)](i[tZ(536)],e=>0!=e),this[tZ(430)](i[tZ(434)],e=>0!=e),this[tZ(430)](i[tZ(550)],e=>0!=e),this[tZ(430)](i.millis,e=>0!=e),this.takeIf(i[tZ(548)],e=>0!=e),this[tZ(430)](i[tZ(369)],e=>0!=e),this.takeIf(i.avgPingTime,e=>0!=e),this.takeIf(i[tZ(487)],e=>0!=e),this[tZ(430)](i.maxPingTime,e=>0!=e),this[tZ(520)],this[tZ(430)](i.downloadBytesVideo,e=>0!=e),this[tZ(430)](i[tZ(402)],e=>0!=e),this.takeIf(i[tZ(463)],e=>0!=e),this[tZ(430)](i.uploadedBytes,e=>0!=e),this[tZ(430)](i[tZ(438)],e=>0!=e),this[tZ(430)](i[tZ(535)],e=>0!=e),this[tZ(430)](i[tZ(511)],e=>0!=e),this[tZ(430)](i.lateUploadedBytes,e=>0!=e),this.takeIf(i[tZ(524)],e=>0!=e),this[tZ(430)](i.missedDownloadedChunks,e=>0!=e),this[tZ(430)](i[tZ(459)],e=>0!=e),this[tZ(430)](i[tZ(383)],e=>0!=e),this.takeIf(i[tZ(398)],e=>0!=e),this.takeIf(i[tZ(567)],e=>0!=e),i.sumResponseBytes,i[tZ(504)],i[tZ(517)],i[tZ(543)],i.sumResponseTime,i[tZ(540)],i[tZ(542)],i[tZ(482)],i[tZ(566)],i[tZ(392)],i[tZ(564)],i[tZ(571)],i[tZ(405)],i.minThroughput,i[tZ(489)],i.samplesThroughput,this[tZ(430)](i[tZ(387)],e=>0!=e),this[tZ(529)](i.maxPeersAvailable),this.takeMin(i[tZ(423)]),this[tZ(430)](i.peersUsed,e=>0!=e),this.takeIf(i[tZ(569)],e=>0!=e),this.takeMax(i[tZ(452)]),this[tZ(523)](i[tZ(581)]),this[tZ(430)](i[tZ(510)],e=>0!=e),this[tZ(430)](i[tZ(534)],e=>0!=e));o[tZ(458)](tZ(375),s),this[tZ(495)][tZ(458)](tZ(375),e)}let h={};o[tZ(501)]((e,t)=>{h[t]=e});let c=u>0?8*l*1e3/u:0;if(n.default[tZ(541)]().registerCommonVariable(el.default[tZ(368)].BALANCER,el.default.BalancerVariables.BALANCER_TRAFFIC,l),n.default[tZ(541)]()[tZ(409)](el.default.Products.BALANCER,el.default[tZ(531)][tZ(406)],c),this.loader[tZ(470)][tZ(506)]&&(t=new t$(this[tZ(557)][tZ(470)][tZ(444)],this[tZ(557)][tZ(470)][tZ(561)],void 0!==this[tZ(557)][tZ(470)][tZ(509)]?Math[tZ(417)](this[tZ(557)][tZ(470)][tZ(509)]):void 0,void 0!==this.loader.CDNLoader.avgApiCallResponseTime?Math[tZ(417)](this[tZ(557)][tZ(470)].avgApiCallResponseTime):void 0,void 0!==this[tZ(557)][tZ(470)][tZ(442)]?Math[tZ(417)](this[tZ(557)][tZ(470)][tZ(442)]):void 0,this[tZ(557)].CDNLoader.getBucket(),this[tZ(557)][tZ(470)][tZ(374)](),this[tZ(397)],this[tZ(557)][tZ(470)][tZ(436)](),tZ(525),this[tZ(557)][tZ(470)].p2pAvailable,this[tZ(557)].CDNLoader[tZ(462)],this.loader[tZ(470)].activeSwitchingPriority,this[tZ(557)][tZ(470)][tZ(555)],this.loader[tZ(470)][tZ(382)](),this[tZ(557)][tZ(470)][tZ(468)])),e[tZ(501)](e=>{e[tZ(439)]()}),this.loader[tZ(367)].isEnabled()&&this[tZ(557)][tZ(367)][tZ(439)](),this.loader[tZ(470)][tZ(439)](),r.default[tZ(449)](a.BalancerTag,"BalancerPing: "+JSON[tZ(388)](h)),o.size>0)return this[tZ(454)](this.token,this[tZ(481)],this[tZ(407)],this[tZ(520)],JSON[tZ(388)](h),t)}}catch(e){}}hasValuesChanged(e){return Object.keys(e)[tZ(445)](t=>0!=e[t])}[tZ(430)](e,t){return void 0!==e&&t(e)?e:void 0}takeMin(e){return void 0!==e?e:Number[tZ(485)]}takeMax(e){return void 0!==e?e:Number.MIN_SAFE_INTEGER}[tZ(454)](e,t,i,s,r,a){if(""!=r&&"{}"!=r)return null!=a?{timemark:(new Date)[tZ(578)](),code:n.default[tZ(541)]()[tZ(499)]()?n.default[tZ(541)]()[tZ(440)]():e,sessionRoot:n.default[tZ(541)]()[tZ(562)](),v:n.default[tZ(385)]()[tZ(563)](tZ(519))[0],pluginVersion:n.default.getPluginVersion(),pingTime:n.default[tZ(541)]().getFastDataService()[tZ(404)](),token:e,accountCode:t,profileName:i,data:r,api_errors:a[tZ(444)],api_responses:a[tZ(561)],api_min_response_time:a[tZ(572)],api_avg_response_time:a[tZ(414)],api_max_response_time:a[tZ(414)],bucket:a[tZ(448)],is_live:a[tZ(553)],video_id:a[tZ(568)],force_decision:a[tZ(473)],request_platform:a[tZ(475)],p2p_available:a[tZ(500)],bolina_available:a.bolinaAvailable,active_switching_priority:a.activeSwitchingPriority,priority_cdn:a[tZ(555)],chunk_duration:a.chunkDuration,announced_cdns:a.announcedCdns}:{timemark:(new Date).getTime(),code:n.default[tZ(541)]()[tZ(499)]()?n.default[tZ(541)]()[tZ(440)]():e,sessionRoot:n.default[tZ(541)]()[tZ(562)](),v:n.default.getPluginVersion().split("-js")[0],pingTime:n.default[tZ(541)]()[tZ(574)]()[tZ(404)](),token:e,accountCode:t,profileName:i,data:r}}}let t2={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},t4=new Uint8Array(16),t5=[];for(let e=0;e<256;++e)t5.push((e+256).toString(16).slice(1));let t8=function(t,i,s){if(t2.randomUUID&&!i&&!t)return t2.randomUUID();let n=(t=t||{}).random||(t.rng||function(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t4)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,i){s=s||0;for(let e=0;e<16;++e)i[s+e]=n[e];return i}return function(e,t=0){return t5[e[t+0]]+t5[e[t+1]]+t5[e[t+2]]+t5[e[t+3]]+"-"+t5[e[t+4]]+t5[e[t+5]]+"-"+t5[e[t+6]]+t5[e[t+7]]+"-"+t5[e[t+8]]+t5[e[t+9]]+"-"+t5[e[t+10]]+t5[e[t+11]]+t5[e[t+12]]+t5[e[t+13]]+t5[e[t+14]]+t5[e[t+15]]}(n)},t7=t9;function t6(){let e=["set","bandwidth","getRendition","readyStateChangeEM","allowSpecialDelimitersInUrl","data","throw","download","updateCDNStatsOnSuccess","downloadMillis","downloadedSegments","setManifestResource","185757woOycV","Content-Length","pathname","cdnName","balanceManifests","apply","getInstance","getCommonVariable","_resource","camelToSnake","authData","off","delete","onProcessSegmentFail","isDev","readyState","options","processSegment","getActiveRequests"," for ","setActive","removeActiveSegment","now","Success","VIDEO_ANALYTICS","toLowerCase","5105QTANUS","P2PLoader","request","1RxnLgF","isMedia","useP2P","value","changeStatusCDN","getStats","storage","AnalyticsVariables","319396xEUVtO","hasOwnProperty","retries","onProgress","size","status","loadBalancerData","byteLength","Products","getIsEnabled","isManifest","resource","then","next","verbose","statsReportBusinessObject","enableCDN will be deprecated use setActive instead.","getReportInterval","updateCDNStatsOnFailure","7qlYBSj","getSegment","_segments","signManifestUsingApi","reportTime","setMaxB
1andwith","totalBandwidth","onProcessSegmentSuccess","updateData","isAudio","updateUrl","onAbort","trunc","newDownloadedSegment","debug","downloadAvgBw","bandwidthPosition","abort","2937108MVvZKQ","total","bucketName","getFastDataSessionToken","loadEM","forceDecisionCall","crypto.getRandomValues() not available. Falling back to Math.random-based UUID","totalDownloadedBytes","uuid","startTime","replace","errorEM","_accountCode","_$1","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","P2P PATH FOR ID ","isEnabled","readTimeoutMilliseconds","loadEndEM","DEVICE_ANALYTICS","renditionCount","getMaxBandwidth","currentRenditionBandwidth","host","APP_ANALYTICS_DEVICE_STRING","requestReadTimeout","response","d1.npaw.com","VIEW_CODE","P2P","1442349voKDAl","push","SEGMENT FAILED WITH STATUS ","enable","_options","onSuccess","stringify","Fail"," isAudio ","enableCDN","downloadedBytes","clean","profileName","loadCDNBalancerData","timeBetweenHeads","_balancerBusinessObject","jwtAuthType","toString","failed","apiHost","updateProgressStats","limit","1912QzIocI","2012832Uwoifd","jwtToken","statusCode","storeSegment","segmentsMap","url","the status is -> ","timeout","loadStartEM","updateTime","realBodySize","getResponseHeader","isLive","3814664NhgmWS","170QMFmss","disable","done","CDNLoader","warn"];return(t6=function(){return e})()}function t9(e,t){let i=t6();return(t9=function(e,t){return i[e-=133]})(e,t)}!function(e){let t=t9,i=e();for(;;)try{if(348559==-parseInt(t(226))/1*(parseInt(t(234))/2)+-parseInt(t(143))/3+parseInt(t(165))/4*(-parseInt(t(223))/5)+parseInt(t(271))/6+-parseInt(t(253))/7*(-parseInt(t(179))/8)+parseInt(t(166))/9+-parseInt(t(180))/10*(-parseInt(t(197))/11))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(t6);class ie{constructor(e,t,i){let s=t9;this[s(255)]=new Map,this[s(170)]=new Map,this[s(287)]=!0,this[s(283)]=e,this[s(147)]=t,this._resource=new tx,this[s(232)]=new eS(this),this[s(162)]=i,this._options[s(157)]&&this[s(147)][s(157)]>=1e3&&(o.wc.timeBetweenBurstsMilliseconds=this[s(147)][s(157)]),this.P2PLoader=new $(this._accountCode,t,this.storage),this.CDNLoader=new em(t,this[s(205)],this[s(224)],this[s(162)]),this[s(249)]=t1.getInstance(this),eo[s(203)](this),K.getInstance(this[s(224)]),this[s(279)]=(()=>{let e=t9;try{return t8()}catch(t){return r.default[e(184)](a.BalancerTag,e(277),t),(()=>{let e=t9;return e(285)[e(281)](/[xy]/g,t=>{let i=16*Math.random()|0;return("x"===t?i:3&i|8)[e(160)](16)})})()}})();let n=new tV(this,null==t?void 0:t[s(159)],null==t?void 0:t[s(167)]);this._balancerBusinessObject=n,(t[s(276)]||t[s(256)])&&this.loadCDNBalancerData(!0)}[t7(251)](){return!this[t7(147)].reportTime||this[t7(147)].reportTime<1?5:this[t7(147)][t7(257)]}[t7(206)](e){let t={};for(let i in e)e[t7(235)](i)&&(t[i[t7(281)](/([A-Z])/g,t7(284))[t7(222)]()]=e[i]);return t}[t7(156)](e){var t,i,s,r,a,o,l,u,d,h;let c=this[t7(147)].dynamicRules?JSON[t7(149)](this[t7(206)](this[t7(147)].dynamicRules)):"",p=n.default[t7(203)]()[t7(204)](el.default.Products[t7(290)],el.default.DeviceVariables[t7(137)])||"";null!=e&&e&&this[t7(158)][t7(240)](this._accountCode,"/",null!=(t=this._options[t7(178)])&&t,null!=(i=this[t7(147)][t7(175)])?i:0,null!=(s=this._options.debug)&&s,null!=(r=this[t7(147)][t7(211)])&&r,null!=(a=this._options[t7(256)])&&a,this[t7(147)].profileName,this[t7(147)][t7(273)],this[t7(147)][t7(136)],c,p,this[t7(147)][t7(207)]),this[t7(147)][t7(245)]&&""!=this[t7(147)][t7(245)]&&this[t7(158)][t7(240)](this[t7(283)],this[t7(147)][t7(245)],null!=(o=this[t7(147)][t7(178)])&&o,null!=(l=this[t7(147)][t7(175)])?l:0,null!=(u=this._options.debug)&&u,null!=(d=this._options[t7(211)])&&d,null!=(h=this[t7(147)][t7(256)])&&h,this._options[t7(155)],this[t7(147)][t7(273)],this._options[t7(136)],c,p,this[t7(147)][t7(207)])}[t7(214)](e,t,i,s,l=o._C[t7(236)],u=!1,d){let c=h.isMedia(e[t7(199)]),p=!c&&h[t7(244)](e[t7(199)],this._options[t7(189)]),f=this[t7(224)][t7(287)]()&&c;r.default[t7(248)](a.BalancerTag,t7(286)+e[t7(199)]);let g=new tL(e[t7(199)],e.href,this._resource,s,l,f,u);if(g[t7(192)]=t,g.headers=s,this._segments[t7(185)](g.id,g),!p){let t=this[t7(205)][t7(187)](e.pathname);null!=t&&(r.default[t7(248)](a.BalancerTag,"Detected rendition -> "+t[t7(186)]+" "+(null==t?void 0:t[t7(269)])+t7(151)+t[t7(262)]+t7(216)+e),g.duration=t.targetDuration,g.rendition=t,t[t7(262)]||
1(this[t7(183)][t7(135)]=t[t7(186)],this.CDNLoader.currentRenditionPos=t[t7(269)]+1,this[t7(183)][t7(133)]=this[t7(205)].getVideoRenditions()[t7(238)]))}this[t7(205)]&&this._resource[t7(154)]();let m=n.default[t7(203)]()[t7(204)](el.default[t7(242)][t7(221)],el.default[t7(233)][t7(141)]),v=n.default[t7(203)]()[t7(274)]()+(m?"_"+m:"");v||(v=this.uuid),this[t7(249)][t7(261)](t7(140),v,this[t7(283)],this[t7(147)][t7(155)],e[t7(160)]()),g[t7(244)]=p,g.isMedia=c,t&&(g.on(o.yL[t7(220)],e=>{var t,s,n,r;return t=this,s=void 0,r=function*(){this.onProcessSegmentSuccess(g),i[0](g)},new(n=void 0,n=Promise)(function(e,i){let a=t9;function o(e){let t=t9;try{u(r[t(247)](e))}catch(e){i(e)}}function l(e){let t=t9;try{u(r[t(191)](e))}catch(e){i(e)}}function u(t){var i;let s=t9;t[s(182)]?e(t[s(229)]):((i=t[s(229)])instanceof n?i:new n(function(e){e(i)}))[s(246)](o,l)}u((r=r[a(202)](t,s||[]))[a(247)]())})}),g.on(o.yL[t7(150)],e=>{this[t7(210)](g,!0),0==g[t7(236)]&&i.length>1&&i[1](),r.default.error(a.BalancerTag,"Segment request failed, no more retries "+g.route)}));let y=this[t7(183)][t7(263)](g);return g[t7(244)]&&this[t7(147)][t7(201)]&&(g[t7(171)]=null!=y?y:g.url),y!==t7(142)?this[t7(183)][t7(215)]()[t7(185)](g.id,g):(g[t7(200)]=t7(142),g.cdnProvider=t7(142),this.P2PLoader[t7(225)](g,void 0)),g[t7(280)]=Date[t7(219)](),g}[t7(210)](e,t){let i=e[t7(200)];e[t7(161)]=!0,this[t7(183)][t7(252)](i,e),e.triedP2P&&1==e.useP2P&&(e[t7(228)]=!1,this[t7(183)][t7(263)](e))}onProcessSegmentSuccess(e){eo[t7(203)]()[t7(266)](e),K[t7(203)]()[t7(266)](e),e.off(o.yL[t7(220)]),e[t7(208)](o.yL[t7(150)]);let t=this.CDNLoader[t7(134)](e[t7(200)]);t>0&&(new tH)[t7(164)](t,e),this[t7(183)][t7(193)](e),this[t7(183)][t7(218)](e),this[t7(224)].isEnabled()&&e[t7(227)]&&!this.P2PLoader[t7(254)](e)&&this[t7(224)][t7(169)](e),this[t7(255)][t7(209)](e.id)}[t7(152)](e,t){return r.default.warn(a.BalancerTag,t7(250)),this[t7(217)](e,t)}[t7(217)](e,t){return e===t7(142)?(t?this.P2PLoader[t7(146)]():this[t7(224)][t7(181)](),!0):this.CDNLoader[t7(230)](e,t)}[t7(258)](e,t){return e!==t7(142)&&(this.CDNLoader.setMaxBandwidth(e,t)||!1)}[t7(264)](e,t){t&&!t[t7(161)]&&t[t7(173)]&&(r.default[t7(267)](a.BalancerTag,"Request was canceled due a timeout -> "+t[t7(171)]),this[t7(210)](t,!1))}[t7(275)](e,t,i){}[t7(174)](e,t,i){null!=t&&i.total>0&&this[t7(224)][t7(287)]()&&t[t7(227)]&&!this[t7(224)][t7(254)](t)&&e[t7(139)]&&e.response[t7(241)]&&e[t7(139)][t7(241)]>0&&(t.data=e[t7(139)],t[t7(176)]=i[t7(272)],this.P2PLoader[t7(169)](t))}progressEM(e,t,i){null!=t&&(this[t7(224)].isEnabled()&&t[t7(227)]&&!this[t7(224)][t7(254)](t)&&e[t7(139)]&&e[t7(139)][t7(241)]&&e[t7(139)][t7(241)]>0&&(r.default[t7(267)](a.BalancerTag,t7(172)+e[t7(239)]),t[t7(190)]=e[t7(139)],i[t7(272)]>0&&(t[t7(176)]=i[t7(272)]),this.P2PLoader[t7(169)](t)),t[t7(237)](e,i),this[t7(183)][t7(163)]())}[t7(188)](e,t,i){switch(e[t7(212)]){case 2:t&&!t[t7(138)]&&(t[t7(138)]=setTimeout(()=>this[t7(173)](e,t),o._C[t7(288)]));break;case 4:if(null!=t){if(clearTimeout(t[t7(138)]),delete t.requestReadTimeout,t[t7(168)]=e[t7(239)],e[t7(239)]>=200&&e.status<400){let s=t[t7(148)](e[t7(139)],e[t7(177)](t7(198))||"0",i[t7(213)][t7(189)]);return t[t7(244)]&&i[t7(196)](t.url),s?this[t7(260)](t):this.onProcessSegmentFail(t,!1),!0}return r.default[t7(267)](a.BalancerTag,t7(145)+e[t7(239)]+" -> "+t.id),this[t7(210)](t,!1),!1}}return!0}[t7(173)](e,t){t.timeout=!0,e[t7(270)]()}[t7(289)](e,t,i){}[t7(282)](e,t,i){}[t7(231)](){let e=this[t7(183)][t7(231)](),t=this.P2PLoader.getStats(),i=!1,s=0;return t&&this[t7(224)]&&this[t7(183)][t7(231)]()[t7(278)]>0&&(i=!0,s=8*t[t7(153)]/(t[t7(194)]/1e3)),this.P2PLoader.isEnabled()&&(e.cdns[t7(144)]({downloadedBytes:t[t7(153)]||0,downloadedChunks:t[t7(195)]||0,bandwidth:Math[t7(265)](s||0),instantBandwidth:Math[t7(265)](0),lastInstantBandwidth:Math[t7(265)](0),peakBandwidth:Math[t7(265)](0),failures:0,totalFailures:0,retries:0,downloadTime:t.downloadMillis,provider:t7(142),profileName:t7(142),isActive:this[t7(224)][t7(287)](),ptb:0,usedOnce:i,hugeChunks:0,firstHugeChunkSize:0,lastChunksLapse:0,maxBandwidth:0,banned:!1,lastBandwidth:0,scoringBandwidth:0}),e[t7(259)]=e[t7(259)]+(t[t7(268)]||0),e[t7(278)]=e.totalDownloadedBytes+(t.downloadedBytes||0)),e}[t7(146)](){this.isEnabled=!0}[t7(181)](){this[t7(287)]=!1}[t7(243)](){return this.isEnabled}}let it=is;function ii(){let e=["now","addInterceptor"," UniqPeers: ","P2P Error on event load end","loadstart","setManifestResource","getActiveRequests","P2PLoader"," byte length-> ","updateUrl","notice","addEventListener","getInstance","updateP2PId","71770DRclvI","interceptors","getSegment","GET","retryBecauseNewHeaders"," size -> ","toFixed","devHost","string","pathname","requestHeader","method","downloadedChunks","readyState","1104626bnwKif","12069459HrVGml","realBodySize","undefined","CDNLoader","getI
1p","FORCE","next","sliceByFirstSpecial","abort","Error occurred for URL: ","segmentsMap","responseHeader","isSubtitles","apply","P2P TIMEOUTERROR BY ME: ","data","call","Error in openAndSend: ","useP2P","forEach","responseType","P2P READY FOR ","ms id:","getPeersAhead","_accountCode","balancer","provider","getRecommendedManifest","&rnpaw=","P2P2 Download done -> "," PEER ID -> ","sendJoin","__awaiter","debug","body","getNewUrl"," TIMEOUTS ","statusText","isCdnBalancerSupported","progress","signManifestUsingApi","openAndSend","manifest","2749926gwvQRH","P2P DISPATCH LOAD END","loadend","progressEM","XHR-not-intercepted -> ","dispatchEvent","response","simpleRequest","18566AdcXZa","getUploadRequestsFailed","getVersion","balanceSubtitles"," original -> ","resetP2PConnection","enable","peers: ","downloadedBytes","segments-> (","resource","isAsync","error","getResponseHeader","1446072lNDJBJ","STREBOPX","getId","4055IhQqjS","timeouts","MB(CDN/SB/P2P) ","apiHost","lastDecisionTimestamp","trim","setResourceInfo","438NtrxbG","P2P Error on event load start","disable","rnpaw","Sending join to tracker due to new manifest","Error processing segment for header: ","load","loadStartEM","request failed"," real size-> ","P2P Error on event ready state change","getBitmovinSendHttpRequest","removeInterceptors"," peer version: ","processSegment","elapsedTime","onAbort","components","length","blob","isEnabled","getPeers","loader","host","HTTP for -> ","then","byteLength","defineProperty","request","Destroying CDN Balancer","loadInterceptor","open","origRes","params","prototype"," ip: ","entries","send","peer","getAllResponseHeaders","size","getUploadedUniqPeers","media","isTheoplayer","verbose","getAccountCode","cdns","overrideMimeType","14LCqjVf","credentials","forceHttp","getUploadedBytes","Fetching segment via P2P for -> ","3620hMvjbg","getUploadedChunks","loadCDNBalancerData","getPeersNothing","buffer","p2pId","getLoader","useTheoplayer","ms timeout: ","setRequestHeader","arraybuffer","status","segment","toString","P2P Error on event load event","P2P TIMEOUTERROR BY NO DATA ME:","url","readystatechange"," peer id: ","split","balanceAudio","join","P2P TIMEOUTERROR ","isBitmovin","value","headers","shift","set","Error calling original setRequestHeader: ","loadEndEM","Error in original send: ","balanceManifests","?rnpaw="," segmnet p2p id -> ","Could not parse URL ","onreadystatechange","363AHEkHN","search","slice","isManifest","timeout","responseURL","options","getIsEnabled","defaultChunkDownloadTimeout","startsWith","P2P Failure Update url on problems with p2p ","done","destroy","STREBOOS","Range","connectTimeoutMilliseconds","includes","P2P","delete","kb ","isDev","P2P DISPATCH READY STATE","Fetching segment via CDN for -> "];return(ii=function(){return e})()}function is(e,t){let i=ii();return(is=function(e,t){return i[e-=304]})(e,t)}!function(e){let t=is,i=e();for(;;)try{if(690048==parseInt(t(348))/1+-parseInt(t(400))/2*(parseInt(t(424))/3)+-parseInt(t(477))/4*(parseInt(t(417))/5)+parseInt(t(392))/6+parseInt(t(472))/7*(-parseInt(t(414))/8)+parseInt(t(349))/9+parseInt(t(334))/10*(parseInt(t(513))/11))break;i.push(i.shift())}catch(e){i.push(i.shift())}}(ii);class ir extends I{constructor(e,t){var i;if(super(),this.isEnabled=!0,this[it(305)]=0,this[it(500)]=!1,this[it(467)]=!1,this.lastDecisionTimestamp=0,this.apiHost="gnsnpaw.com",this[it(373)]=e,this[it(519)]=new b,this[it(446)]=new ie(this[it(373)],this[it(519)],this[it(420)]),this[it(335)]=new T(this),t&&void 0!==(null==(i=t[it(441)])?void 0:i[it(374)])&&!t[it(441)][it(374)])return this.isEnabled=!1,this[it(446)][it(426)](),void this[it(446)][it(327)].disable();let s=this;this[it(360)]=XMLHttpRequest[it(458)][it(413)],XMLHttpRequest.prototype[it(413)]=function(e){return s.responseHeader.call(this,e)},this.allResponseHeader=XMLHttpRequest[it(458)][it(463)],XMLHttpRequest[it(458)][it(463)]=function(){return s.allResponseHeader[it(365)](this)},this[it(357)]=XMLHttpRequest.prototype.abort,XMLHttpRequest[it(458)][it(357)]=function(){let e=this[it(489)];s.getLoader()[it(440)](this,e),s[it(357)][it(365)](this)},this[it(471)]=XMLHttpRequest[it(458)].overrideMimeType,XMLHttpRequest.prototype[it(471)]=function(e){s.overrideMimeType[it(365)](this,e)},this[it(344)]=XMLHttpRequest[it(458)][it(486)],XMLHttpRequest[it(458)][it(486)]=function(e,t,...i){let n=this[it(489)];if(n)try{n.headers[e]=t,n[it(338)]=0==n[it(338)]?1:n[it(338)]}catch(e){r.default[it(412)](a.BalancerTag,it(429)+e)}try{s[it(344)].call(this,e,t,...i)}catch(e){throw r.default[it(412)](a.BalancerTag,it(505)+e),e}},this[it(461)]=XMLHttpRequest[it(458)].send,XMLHttpRequest[it(458)][it(461)]=function(e,...t){var i,n,l,u,d,h,c,p,f,g,m,v,y,T,S,E;return y=this,T=void 0,E=function*(){let y=is;(!this[y(517)]||this[y(517)]>o._C[y(312)])&&this[y(411)]&&(this[y(517)]=o._C[y(312)]);let T=this.segment;if((!s.isEnabled||!T||T[y(516)])&&(!T||!(null!=(i=s.options[y(508)])&&i||null!=(n=s.options[y(389)])&&n)))try{return void s[y(461)].call(this,e,...t)}catch(e){throw r.default.error(a.BalancerTag,y(507)+e),e}if(1==T[y(338)])return T[y(338)]=2,T[y(333)](),void s[y(390)](this,T);try{let e=s[y(483)]().getStats()[y(470)],t=0,i=0,n=0,o=0,p=0,f=0,g=(null==(l=s.getL
1oader())?void 0:l[y(327)][y(475)]())||0,m=(null==(u=s[y(483)]())?void 0:u[y(327)][y(478)]())||0;g=g/1024/1024;for(let s=0;s<e.length;s++)e[s][y(375)]===y(314)?(i+=e[s][y(408)],o+=e[s].downloadedChunks):e[s][y(375)]===y(310)||e[s].provider===y(415)?(p+=e[s][y(408)],f+=e[s][y(346)]):(t+=e[s][y(408)],n+=e[s][y(346)]);let v=null==(d=s[y(483)]())?void 0:d[y(327)].getUploadRequests(),T=null==(h=s[y(483)]())?void 0:h[y(327)][y(401)](),S=null==(c=s[y(483)]())?void 0:c[y(327)][y(465)](),E=0,b=0,_=0;try{E=i/(i+t+p)*100,b=p/(i+t+p)*100,_=g/((i+t+p)/1024/1024)*100}catch(e){}let A=s.getLoader()[y(327)][y(445)]()[y(464)]||0,w=" ("+s[y(483)]()[y(327)].getPeersBehind()+"/"+s.getLoader()[y(327)][y(480)]()+"/"+s[y(483)]()[y(327)][y(372)]()+") ";r.default[y(468)](a.BalancerTag,"P2P/SMB Traffic "+E[y(340)](2)+"% "+b[y(340)](2)+"%\n"+y(419)+(t/1024/1024).toFixed(2)+"/"+(p/1024/1024)[y(340)](2)+"/"+(i/1024/1024).toFixed(2)+"\n"+y(409)+n+"/"+f+"/"+o+")\n"+y(407)+A+w+"\nuploaded: (MB/#/%) "+g.toFixed(2)+"/"+m+"/"+_[y(340)](2)+"\nur: "+v+"|"+T+y(322)+S)}catch(e){}let S=Date[y(320)]();T[y(333)]();let E=s[y(446)][y(327)][y(336)](T);if("P2P"!==T.cdnName||T[y(474)])r.default[y(468)](a.BalancerTag,(T[y(474)]?y(354):"")+y(448)+T[y(456)]),s[y(483)]().CDNLoader[y(326)]()[y(504)](T.id,T),r.default[y(330)](a.BalancerTag,y(319)+T[y(456)]),s.send[y(365)](this,e,...t);else{let e=!1;r.default[y(330)](a.BalancerTag,y(476)+T[y(456)]),T.forceHttp=!0,T[y(367)]=!1;let t=null==E?void 0:E[y(364)],i=E&&(null==E?void 0:E[y(364)][y(450)])>0&&(null==t?void 0:t[y(450)])===(null==E?void 0:E[y(350)])&&(null==E?void 0:E[y(350)])&&(null==E?void 0:E.realBodySize)>0,n=0;for(;!i;)yield new Promise(e=>setTimeout(e,20)),n=(null==(t=null==(E=s[y(446)][y(327)][y(336)](T))?void 0:E[y(364)])?void 0:t[y(450)])||0,i=E&&(null==E?void 0:E[y(350)])>0&&(null==E?void 0:E[y(364)][y(450)])>0&&(null==t?void 0:t[y(450)])===(null==E?void 0:E[y(350)])&&null!=(null==E?void 0:E[y(350)]),Date[y(320)]()-S>o.LI[y(517)]?(i=!0,t=void 0,e=!0,r.default[y(468)](a.BalancerTag,y(363)+s.loader[y(327)][y(416)]()+" TIME: "+(Date.now()-S)+" peer id: "+T.peer.id+y(437)+T[y(462)].getVersion()+y(459)+T[y(462)].getIp()+" "+n/((null==E?void 0:E.realBodySize)||1)*100+"%")):Date[y(320)]()-S>2e3&&(null==E||null==E[y(364)]||n<20)&&(i=!0,t=void 0,e=!0,r.default[y(468)](a.BalancerTag,y(492)+s.loader[y(327)].getId()+" "+(Date[y(320)]()-S>2e3)+y(495)+T[y(462)].id+y(437)+T[y(462)][y(402)]()+y(459)+T[y(462)].getIp()+" last length -> "+n));if(t&&(t=t[y(515)](0,t[y(450)])),e&&(T[y(462)]&&(T[y(462)][y(418)]=T[y(462)][y(418)]+1),r.default[y(468)](a.BalancerTag,y(499)+T.origRes+" "+T.id+" "+(null==(p=null==E?void 0:E[y(364)])?void 0:p[y(450)])+" "+(null==E?void 0:E[y(350)])+y(379)+(null==(f=T[y(462)])?void 0:f.id)+y(385)+T[y(462)].timeouts)),r.default[y(468)](a.BalancerTag,y(370)+T[y(456)]+" "+(null==t?void 0:t[y(450)])+" "+(null==E?void 0:E[y(350)])+" peer id -> "+T.peer.id+y(510)+T[y(482)]),E=s[y(446)][y(327)].getSegment(T),t&&(null==(g=null==E?void 0:E.data)?void 0:g[y(450)])==(null==E?void 0:E[y(350)])&&null!=(null==E?void 0:E[y(350)])&&(null==E?void 0:E[y(350)])>0){r.default[y(330)](a.BalancerTag,T[y(456)]+" downloaded through P2P. Size: "+((null==(m=null==E?void 0:E[y(364)])?void 0:m[y(450)])/1048576).toFixed(2)+"MB"),t instanceof Uint8Array&&(t=t[y(481)]);let e=new CustomEvent(y(494)),i=new CustomEvent(y(394)),s=new CustomEvent(y(430)),n=new CustomEvent(y(324));Object.defineProperty(this,y(398),{writable:!0}),Object[y(451)](this,y(488),{writable:!0}),Object[y(451)](this,y(386),{writable:!0}),Object[y(451)](this,"readyState",{writable:!0}),Object.defineProperty(this,y(450),{writable:!0}),Object.defineProperty(this,y(518),{writable:!0}),Object[y(451)](this,"responseType",{writable:!0}),this[y(450)]=t[y(450)],this[y(398)]=t,this[y(488)]=200,this[y(386)]="OK",this.readyState=XMLHttpRequest.DONE,this[y(518)]=T[y(456)],this[y(369)]=y(487),r.default.verbose(a.BalancerTag,"P2P DISPATCH LOAD START");try{this[y(397)](n)}catch(e){r.default.verbose(a.BalancerTag,y(425))}yield new Promise(e=>setTimeout(e,6)),r.default[y(468)](a.BalancerTag,y(318));try{this[y(397)](e)}catch(e){r.default.verbose(a.BalancerTag,y(434))}r.default[y(468)](a.BalancerTag,"P2P DISPATCH LOAD ");try{this[y(397)](s)}catch(e){r.default[y(468)](a.BalancerTag,y(491))}r.default[y(468)](a.BalancerTag,y(393));try{this[y(397)](i)}catch(e){r.default[y(468)](a.BalancerTag,y(323))}r.default[y(468)](a.BalancerTag,y(378)+(Date[y(320)]()-S)+y(371)+T[y(482)]+y(339)+t[y(450)]/1024+y(316)+T.origRes+" peer version "+T[y(462)][y(402)]()+y(459)+T[y(462)][y(353)]())}else r.default.verbose(a.BalancerTag,y(307)+(Date[y(320)]()-S)+y(485)+o.LI[y(517)]+y(328)+(null==(v=null==E?void 0:E[y(364)])?void 0:v[y(450)])+y(433)+(null==E?void 0:E[y(350)])+y(404)+T[y(456)]),T.forceHttp=!0,s[y(483)]()[y(352)][y(326)]()[y(504)](T.id,T),s[y(483)]().CDNLoader[y(329)](T),s[y(390)](this,T)}},new(S=void 0,S=Promise)(function(e,t){function i(e){let i=is;try{n(E[i(355)](e))}catch(e){t(e)}}function s(e){try{n(E.throw(e))}catch(e){t(e)}}function n(t){var n;let r=is;
1t[r(308)]?e(t[r(501)]):((n=t[r(501)])instanceof S?n:new S(function(e){e(n)}))[r(449)](i,s)}n((E=E[is(362)](y,T||[])).next())})},this[it(455)]=XMLHttpRequest.prototype[it(455)],XMLHttpRequest.prototype.open=function(e,t,i=!0,...n){var o;if(this[it(411)]=i,!s[it(444)])return s[it(455)][it(365)](this,e,t,i,...n);let l=t;typeof t!==it(342)&&(l=t[it(490)]());let u=l,d=u[it(496)]("?");u=h[it(356)](u,s[it(519)].allowSpecialDelimitersInUrl);try{let r=new URL(u),a=h[it(516)](r[it(343)]),c=h.isMedia(r.pathname),p=h.isAudio(r[it(343)]),f=h[it(361)](r[it(343)]);if(null==this[it(489)]&&Object.defineProperty(this,"segment",{writable:!0}),l[it(313)](it(377))||l.includes(it(509))){let e=new URL(l),i=e.searchParams;i[it(315)](it(427)),e[it(514)]=i[it(490)](),t=e[it(490)]()}else if(e===it(337)&&(a||c||p&&s[it(519)][it(497)]||f&&s[it(519)][it(403)])){let t;d.length>1&&(t=d[1]);let r=this[it(489)];null==r&&(r=s[it(399)](d[0],t,{})),null==this[it(489)]&&(this[it(489)]=r),this.addEventListener(it(430),function(e){s[it(483)]()[it(431)](this,r,e)}),this[it(331)](it(324),function(e){s[it(483)]().loadStartEM(this,r,e)});let a=this[it(512)],l=e=>{null==a||a[it(365)](this,e),s[it(483)]().readyStateChangeEM(this,r,s)};s[it(500)]||s[it(467)]?this.onreadystatechange=l:this[it(331)]("readystatechange",l),this[it(331)](it(388),function(e){s[it(483)]()[it(395)](this,r,e)}),this[it(331)]("loadend",function(e){s[it(483)]()[it(506)](this,r,e)}),this[it(331)]("error",function(e){});let u=r.getNewUrl(null!=(o=s.options.signManifestUsingApi)&&o);return s[it(455)][it(365)](this,e,u,i,...n)}}catch(e){r.default[it(382)](a.BalancerTag,it(511)+u)}return r.default[it(382)](a.BalancerTag,it(396)+t),s[it(455)][it(365)](this,e,t,i,...n)}}[it(309)](){r.default[it(382)](a.BalancerTag,it(453)),eo[it(332)]().stopMonitor(),this[it(446)][it(327)][it(309)](),this[it(444)]&&(XMLHttpRequest[it(458)][it(413)]=this[it(360)],XMLHttpRequest[it(458)][it(463)]=this.allResponseHeader,XMLHttpRequest[it(458)].abort=this[it(357)],XMLHttpRequest[it(458)].overrideMimeType=this[it(471)],XMLHttpRequest.prototype[it(486)]=this[it(344)],XMLHttpRequest[it(458)][it(461)]=this.send,XMLHttpRequest[it(458)][it(455)]=this[it(455)]),this[it(335)][it(436)]()}[it(469)](){return this._accountCode}setOptions(e){var t;for(let t in e)this[it(519)][t]=e[t];this[it(420)]=(null!=(t=this.options[it(447)])?t:this[it(519)][it(317)])?o.df[it(341)]:o.df[it(447)],this[it(446)]=new ie(this._accountCode,this[it(519)],this[it(420)])}[it(390)](e,t){var i,s;try{let s=t[it(384)](null!=(i=this[it(519)][it(389)])&&i);(0===e[it(347)]||4===e[it(347)])&&e.open("GET",s),(null==t?void 0:t[it(502)])&&Object[it(460)](t.headers)[it(368)](([t,i])=>{e[it(486)](t,i)}),e[it(461)]()}catch(e){throw r.default.error(a.BalancerTag,it(366)+e),r.default.error(a.BalancerTag,it(358)+t.getNewUrl(null!=(s=this.options[it(389)])&&s)),e}}[it(452)](e,t,i,s,n,r,a){this[it(446)][it(438)](e,!0,i,s,n,r,a)}[it(325)](e){let t=Date[it(320)]()-this[it(421)];e&&(this[it(519)][it(410)]!==e||t>o.df.decisionCallWaitTime)&&(this[it(519)][it(410)]=e,this[it(446)]&&this[it(446)][it(327)]&&this[it(446)][it(327)][it(444)]()&&(r.default[it(382)](a.BalancerTag,it(428)),this.loader[it(327)][it(380)]()),this[it(446)]||(this[it(446)]=new ie(this[it(373)],this[it(519)],this[it(420)])),this[it(446)][it(352)][it(423)](e),this.loader[it(479)](),this[it(421)]=Date[it(320)]())}getLoader(){return this[it(446)]}[it(321)](e,t){this[it(335)][it(454)](e,t)}[it(376)](){return this[it(446)].CDNLoader.getRecommendedManifest()}[it(484)](){this.isTheoplayer=!0}[it(435)](){return this[it(500)]=!0,function(e,t){return typeof e!==it(351)&&(e[it(306)](it(466))||e[it(306)](it(391)))?{getResponse:()=>new Promise((e,i)=>{var s;let n=is,r=Date[n(320)](),a={request:t,url:t.url,headers:[],status:0,statusText:"",body:void 0},o=new XMLHttpRequest;for(let l in o[n(369)]=null!=(s=t[n(369)])?s:"arraybuffer",o[n(512)]=function(s){var l,u;if(2===o[n(347)])a.timeToFirstByte=(Date[n(320)]()-r)/1e3;else if(4===o[n(347)])if(a[n(488)]=o[n(488)],a[n(386)]=o[n(386)],a[n(439)]=(Date[n(320)]()-r)/1e3,o[n(488)]>=200&&o[n(488)]<400){o[n(369)]!==n(487)&&o[n(369)]!==n(443)?(a[n(383)]=h.ifByteArrayToString(o[n(398)]),a[n(442)]=a[n(383)][n(442)]):(a[n(383)]=o[n(398)],o.responseType===n(487)?a[n(442)]=a[n(383)].byteLength:o.responseType===n(443)&&(a[n(442)]=a[n(383)][n(464)]));let t=o[n(463)]()[n(422)]()[n(496)](/[\r\n]+/).map(e=>{let t=e.split(": ");return{name:t[n(503)](),value:t[n(498)](": ")}});a[n(502)]=t,e(a)}else i({error:n(432),response:{request:{method:t[n(345)],url:t[n(493)],headers:t[n(502)],responseType:null!=(l=t.responseType)?l:"",credentials:null!=(u=t[n(473)])?u:""},url:t[n(493)],headers:{},status:o[n(488)],statusText:o.statusText}})},o[n(455)](t[n(345)],t[n(493)]),t[n(502)])o[n(486)](l,t[n(502)][l]);o[n(461)](null==t?void 0:t[n(383)])}),cancel(){},setProgressListener(){}}:null}}[it(405)](){this[it(446)][it(327)].resetP2PConnection(),this.options[it
1(410)]=void 0}[it(399)](e,t,i){var s;try{let n=new URL(e),r=this.loader[it(438)](n,!1,[],i);r[it(457)]=t;let a=(null==i?void 0:i[it(311)])||"",o=r[it(384)](null!=(s=this[it(519)][it(389)])&&s);return this.loader[it(359)].set(o+a,n[it(490)]()),r}catch(e){throw r.default.error(a.BalancerTag,"Error in simpleRequest: "+e),e}}[it(406)](){this.isEnabled=!0,this[it(446)][it(406)](),this[it(446)][it(327)][it(406)]()}disable(){this[it(444)]=!1,this.loader[it(426)](),this.loader[it(327)][it(426)]()}[it(304)](){return this[it(444)]}[it(387)](){return!0}reload(e){null!=e&&(this[it(519)]=new b(e)),this.loader.P2PLoader.destroy(),this[it(446)]=new ie(this[it(373)],this[it(519)],this[it(420)]),this[it(444)]=!0}}var ia=i(6014),io=i.n(ia);class il{constructor(){}static getInstance(e=!1){return this._instance&&!e||(this._instance=new il),this._instance}showUnsupportedWarning(){il.warningShown||(r.default.notice("DiagnosticTool"," DiagnosticTools is not supported in this build version."),il.warningShown=!0)}destroy(){this.showUnsupportedWarning()}start(e){this.showUnsupportedWarning()}setSettings(e){this.showUnsupportedWarning()}clearReportTimeout(){this.showUnsupportedWarning()}setOptions(e){this.showUnsupportedWarning()}setBalancerEnabled(e){this.showUnsupportedWarning()}setVideoAnalyticsEnabled(e){this.showUnsupportedWarning()}setAdsAnalyticsEnabled(e){this.showUnsupportedWarning()}getReportTimeout(){return this.showUnsupportedWarning(),il.defaultReportTimeout}setReportTimeout(e){this.showUnsupportedWarning()}cleanCdnList(){this.showUnsupportedWarning()}addCdn(e,t){this.showUnsupportedWarning()}updateCdnInfo(e,t,i,s){this.showUnsupportedWarning()}wasSelectorCommunicationSuccessful(e,t){this.showUnsupportedWarning()}setInterceptedRequests(e){this.showUnsupportedWarning()}setActiveSwitchingEnabled(e){this.showUnsupportedWarning()}wasActiveSwitchingDecisionPerformed(e){this.showUnsupportedWarning()}setSwitchedCdns(e){this.showUnsupportedWarning()}usedSelectorAPIResponse(e){this.showUnsupportedWarning()}setTriedSendingBalancerStats(e){this.showUnsupportedWarning()}addNQSRequest(e){this.showUnsupportedWarning()}addNQSEvent(e,t){this.showUnsupportedWarning()}registeredPlayer(e){this.showUnsupportedWarning()}setTriedSendingNQSStats(e){this.showUnsupportedWarning()}addNQSAdRequest(e){this.showUnsupportedWarning()}addNQSAdEvent(e,t){this.showUnsupportedWarning()}registeredAdsPlayer(e){this.showUnsupportedWarning()}setTriedSendingNQSAdStats(e){this.showUnsupportedWarning()}report(){this.showUnsupportedWarning()}}il.defaultReportTimeout=3e5,il.warningShown=!1;var iu=i(2507),id=i.n(iu),ih=i(4954),ic=i.n(ih),ip=i(3782),ig=i.n(ip),im=i(7061),iv=i.n(im),iy=i(2071),iT=i.n(iy),iS=i(3398),iE=i.n(iS);class ib{constructor(e,t,i,s=!1,n,r){this.method=a.Method.GET,this.service=e,this.params=t||{},this.body=i,this.force=s,this.onSuccessCallback=n,this.onFailCallback=r}getService(){return this.service}getMethod(){return this.method}setMethod(e){this.method=e}getParams(){return this.params}getForce(){return this.force}getOnSuccess(){return this.onSuccessCallback}getOnFail(){return this.onFailCallback}getParam(e){return this.params[e]}setParam(e,t){return this.params[e]=t,this}setParams(e){this.params=e}getBody(){return this.body}setBody(e){this.body=e}isPost(){return this.method===a.Method.POST}}var i_,iA=i(3473);!function(e){e[e.stopped=0]="stopped",e[e.started=1]="started"}(i_||(i_={}));class iw{constructor(e){this._core=n.default.getInstance(),this._coreStorage=this._core.getCoreStorage(),this._expirationManager=new iA.default(this._coreStorage.getSessionExpire()||a.ExpireDefault.DEFAULT_SESSION_TIMEOUT_MS,a.ExpireDefault.DEFAULT_MAX_DURATION_SESSION_MS,this._coreStorage),this._status=this._expirationManager.isStarted()?i_.started:i_.stopped,this._processing=!1,this._processTimeout=null,this._retryCounter=0,this._startRequest=null,this._requests=[],this._flushResolve=null,this._flushReject=null,this._flushRequestsFailed=[],this._flushTimeout=null,this.onRequestQueued=[],this.onWillSendRequest=[],this.onRequestSent=[],e&&"number"==typeof e.maxWaitingRequests&&e.maxWaitingRequests>0?this._maxWaitingRequests=e.maxWaitingRequests:this._maxWaitingRequests=50}destroy(){this._expirationManager.reset(),this._status=i_.stopped,this._processing=!1,this._clearRequestProcessingTimeout(),this._retryCounter=0,this._startRequest=null,this._requests=[],this._clearFlushState(),this.onRequestQueued=[],this.onWillSendRequest=[],this.onRequestSent=[]}setMaxWaitingRequests(e){"number"==typeof e&&e>0&&(this._maxWaitingRequests=e)}_getLastStartStopIndices(){let e=-1,t=-1;for(let i=this._requests.length-1;i>=0;i--){switch(this._requests[i].getService()){case ig().Service.SESSION_START:-1===e&&(e=i);break;case ig().Service.SESSION_STOP:-1===t&&(t=i)}if(-1!==e&&-1!==t)break}return{indexStart:e,indexStop:t}}_queueableEvent(){let e,{indexStart:t,indexStop:i}=this._getLastStartStopIndices();switch(this._status){case i_.stopped:e=-1!==t&&t>i;break;case i_.started:e=-1===t||-1!==t&&t>i;break;default:e=!1}return e}queueRequest(e){let t=!1;if(this._requests.length>=this._maxWaitingRequests)r.default.warn(a.SessionsTag,`Too many requests waiting for token (${this._requests.length}/${this._maxWaitingRequests}), dropping request`);else{for(let i of(t=!0,this._requests.push(e),this.onRequestQueued))i(e);this._processRequests()}return t}flush(e){return new Promise((t,i)=>{if(this._flushResolve)i(this._createFlushError("FLUSH_IN_PROGRESS"));else{this._flushResolve=t,this._flushReject=i,this._flushRequestsFailed=[],("number"!=typeof e||e<=0)&&(e=2500),this._flushTimeout=setTimeout(()=>{this._clearFlushState(),i(this._createFlushError("FLUSH_TIMEOUT",{timeoutMs:e}))},e);try{this._processRequests()}catch(e){this._clearFlushState(),i(this._createFlushError("FLUSH_PROCESSING_ERROR",{originalError:e}))}}})}_createFlushError(e,t){return{code:e,details:t}}_clearFlushState(){this._flushTimeout&&(clearTimeout(this._flushTimeout),this._flushTimeout=null),this._flushResolve=null,this._flushReject=null,this._flushRequestsFailed=[]}_processRequests(){var e,t;let i;if(this._clearRequestProcessingTimeout(),0===this._requests.length)this._flushRequestsFailed.length>0?null==(e=this._flushReject)||e.call(this,this._createFlushError("FLUSH_REQUESTS_FAILED",{failedRequests:this._flushRequestsFailed})):null==(t=this._flushResolve)||t.call(this),this._clearFlushState();else if(this._processing);else if(""===this._core.getFastDataSessionToken())this._delayRequestProcessing(1e3);else if(this.hasExpired())this._processing=!0,this._recoverExpiredSession(),this._processing=!1,this._delayRequestProcessing(1e3);else if(this._processing=!0,i=this._requests[0],this._sendableRequest(i)){for(let e of(this._prepareRequestParam
1s(i),this.onWillSendRequest))e(i);r.default.notice(a.SessionsTag,this._getRequestDescription(i)),this._core.pushData(this._core.getOptions().offline?el.default.Consumer.BLACK_HOLE:el.default.Consumer.NQS,i.getService(),i.getMethod(),i.getParams(),()=>{this._processRequestSucceeded(i)},()=>{this._processRequestFailed(i)})}else this._processRequestNotSend(i)}_sendableRequest(e){let t;switch(e.getService()){case ig().Service.SESSION_START:(t=this._status===i_.stopped)||(e.getForce()?(t=!0,r.default.debug(a.SessionsTag,this._getRequestDescription(e)," sending request even though session is already started.")):r.default.debug(a.SessionsTag,this._getRequestDescription(e),"session is already started. Discarding request."));break;case ig().Service.SESSION_STOP:default:(t=this._status===i_.started)||(e.getForce()?(t=!0,r.default.debug(a.SessionsTag,this._getRequestDescription(e)," sending request even though session is not started.")):r.default.debug(a.SessionsTag,this._getRequestDescription(e),"cannot be sent since session is not started yet. Discarding request."))}return t}
1_prepareRequestParams(e){let t=e.getService();e.setParam("sessionId",e.getParam("sessionId")||this._core.getFastDataSessionToken()),t==ig().Service.SESSION_START&&e.setParam("beatTime",e.getParam("beatTime")||this._core.getFastDataService().getBeatTime())}_processRequestSucceeded(e){switch(this._expirationManager.onRequestSent(),e.getService()){case ig().Service.SESSION_START:this._status=i_.started,this._startRequest=e;break;case ig().Service.SESSION_STOP:this._closeSession()}for(let t of this.onRequestSent)t(e);this._retryCounter=0;let t=e.getOnSuccess();t&&t(),this._requests.shift(),this._processing=!1,this._processRequests()}_processRequestFailed(e){let t,i;this._retryCounter<iw._MAX_RETRIES?(r.default.debug(a.SessionsTag,`${this._getRequestDescription(e)} failed ${this._retryCounter+1}/${iw._MAX_RETRIES}. Retrying...`),this._retryCounter++,i=100,t=!1):(r.default.warn(a.SessionsTag,`${this._getRequestDescription(e)}failed. Discarding request...`),this._flushReject&&this._flushRequestsFailed.push(e),this._retryCounter=0,i=0,t=!0);let s=e.getOnFail();s&&s(),t&&this._requests.shift(),this._processing=!1,i<=0?this._processRequests():this._delayRequestProcessing(i)}_processRequestNotSend(e){let t;switch(e.getService()){case ig().Service.SESSION_START:t=this._status===i_.started?e.getOnSuccess():e.getOnFail();break;case ig().Service.SESSION_STOP:t=this._status===i_.stopped?e.getOnSuccess():e.getOnFail();break;default:t=e.getOnFail()}t&&t(),this._requests.shift(),this._processing=!1,this._processRequests()}_delayRequestProcessing(e){this._clearRequestProcessingTimeout(),this._processTimeout=setTimeout(()=>{this._processTimeout=null,this._processRequests()},e)}_clearRequestProcessingTimeout(){this._processTimeout&&(clearTimeout(this._processTimeout),this._processTimeout=null)}hasExpired(){return this._expirationManager.isStarted()&&this._expirationManager.isExpired()}_recoverExpiredSession(){let e=this._startRequest?this._startRequest:new ib(ig().Service.SESSION_START,{}),t=Object.assign({},e.getParams());delete t.sessionId,delete t.sessionRoot,delete t.beatTime,e.setParams(t),this._requests.unshift(e),this._closeSession(),setTimeout(()=>{this._core.throwEvent(a.CoreEvents.SESSION_EXPIRE)},a.ExpireDefault.STOP_VIEWS_AFTER_SESSION_EXPIRE_MS)}shouldSendStats(){return this._status==i_.started}isActive(){return this._queueableEvent()}_getRequestDescription(e){let t;switch(e.getService()){case ig().Service.SESSION_START:case ig().Service.SESSION_STOP:case ig().Service.NAV:case ig().Service.SESSION_ERROR:t=e.getParams().route||"";break;case ig().Service.EVENT:case ig().Service.EVENT_END:t=e.getParams().name||"";break;default:t=""}return`[${this._core.getFastDataSessionToken()}] ${e.getService()} ${t}`}_closeSession(){this._status=i_.stopped,this._expirationManager.reset(),this._coreStorage.removeStoredData(),this._coreStorage.removeSession(),this._coreStorage.removeLastActive(),this._core.refreshSessionToken(),this._startRequest=null}}iw._MAX_RETRIES=3;var iI=i(9637),iP=i(1146);class iR{constructor(e){this.options=new(iv()),this._previousSessionMetrics=null,this.core=n.default.getInstance(),this.coreStorage=this.core.getCoreStorage(),this.requestHandler=new iw(this.options),this.requestHandler.onRequestQueued.push(this.onRequestQueued.bind(this)),this.requestHandler.onWillSendRequest.push(this.onWillSendRequest.bind(this)),this.requestHandler.onRequestSent.push(this.onRequestSent.bind(this)),this.accountCode=e,this.requestBuilder=new(iT()),this._suspended=!1,this._suspensionTime=0,this._beat=new(ic())(this._sendBeat.bind(this),iR.BEAT_INTERVAL),this._lastNavigation={page:"",route:""},this._registeredProperties=null,this._listenersRequestQueued=[],this._listenersRequestWillSend=[],this._listenersRequestSent=[]}destroy(){this._beat.stop(),this.requestHandler.destroy(),this._listenersRequestQueued=[],this._listenersRequestWillSend=[],this._listenersRequestSent=[]}start(e,t={},i,s,n=!1){if(this.core.isUsingLegacy())return r.default.warn(a.SessionsTag,"Cannot start session since session is using legacy"),void(null==s||s());e&&this.setOptions(e),this._registeredProperties=this.coreStorage.getAppAnalyticsReg
1isteredProperties(),this._logFireSessionStartEvent(t);let o=this._getParamsJson(t,null,null,!0,!0);o=this._parseInternalParams(o),this._sendSession(ig().Service.SESSION_START,o,n,i,s)}stop(e={},t,i,s=!1){if(this.core.isUsingLegacy())return r.default.warn(a.SessionsTag,"Cannot stop session since session is using legacy"),void(null==i||i());this._logFireSessionStopEvent(e),e=this._parseInternalParams(e),this._sendSession(ig().Service.SESSION_STOP,e,s,t,i),this._previousSessionMetrics=null}sendEvent(e="",t={},i={},s={},n=!1,o,l){if(this.core.isUsingLegacy())return r.default.warn(a.SessionsTag,"Cannot send session event since session is using legacy"),void(null==l||l());this._logFireEventListener(e);let u=this._getParamsJson(t,i,e,!1,!1,n);id().assign(u.params,s||{});let d=this._parseInternalParams(u);this._sendSession(ig().Service.EVENT,d,!1,o,l)}sendEventEnd(e="",t={},i,s){if(this.core.isUsingLegacy())return r.default.warn(a.SessionsTag,"Cannot send session event since session is using legacy"),void(null==s||s());this._logFireEventEndListener(e);let n=this._getParamsJson(null,null,e,!1,!1,!1);id().assign(n.params,t||{});let o=this._parseInternalParams(n);this._sendSession(ig().Service.EVENT_END,o,!1,i,s)}fireNav(e={},t,i){if(this.core.isUsingLegacy())return r.default.warn(a.SessionsTag,"Cannot send session navigation since session is using legacy"),void(null==i||i());this._logFireNavListener(e);let s=this._getParamsJson(e,null,null,!0);s=this._parseInternalParams(s),this._checkDifferentNavigation(s)?(this._sendSession(ig().Service.NAV,s,!1,t,i),this._lastNavigation.page=s.page,this._lastNavigation.route=s.route):(r.default.warn(a.SessionsTag,"Same navigation detected and ignored for Page and Route"),null==i||i())}fireError(e,t,i="",s="",n=0,o={},l={},u,d){if(this.core.isUsingLegacy())return r.default.warn(a.SessionsTag,"Cannot send session error since session is using legacy"),void(null==d||d());this._logFireSessionErrorEvent(e,t,i,s,n,o,l);let h=this._getParamsJson(o,l,null,!1);(h=this._parseInternalParams(h)).errorCode=e,h.errorMsg=t,h.errorType=i,h.errorMetadata=s,h.duration=n,this._sendSession(ig().Service.SESSION_ERROR,h,!1,u,d)}_sendBeat(e){this._sendSession(ig().Service.BEAT,{diffTime:e},!1)}_getParamsJson(e,t,i,s,n,o){let l={};if(i&&(l.name=i),l.dimensions=e||{},l.values=t||{},this._registeredProperties){for(let e in this._registeredProperties.dimensions)l.dimensions[e]=this._registeredProperties.dimensions[e];for(let e in this._registeredProperties.values)l.values[e]=this._registeredProperties.values[e]}let u={params:l};s&&(u.params.dimensions.page&&(u.params.page=u.params.dimensions.page,delete u.params.dimensions.page),u.params.dimensions.route&&(u.params.route=u.params.dimensions.route,delete u.params.dimensions.route),n||delete u.params.dimensions,delete u.params.values),o&&(u.params.hasEndDatetime=o);try{u.params&&(u.params.dimensions&&"object"==typeof u.params.dimensions&&0===Object.keys(u.params.dimensions).length&&delete u.params.dimensions,u.params.values&&"object"==typeof u.params.values&&0===Object.keys(u.params.values).length&&delete u.params.values)}catch(e){r.default.error(a.SessionsTag,"Error removing empty dimensions and values from params json",e)}return u}_parseInternalParams(e){return e&&(e.params||e)||{}}_checkDifferentNavigation(e){e=e||{};let t=this._lastNavigation&&e.route===this._lastNavigation.route,i=this._lastNavigation&&e.page===this._lastNavigation.page;return!t||!i}_sendSession(e,t,i,s,n){if(!this.core.isUsingLegacy())if(null!==(t=this.requestBuilder.buildParams(t,e,[this,new iP.default(this.options)]))&&this.options.enabled){let r=new ib(e,t,void 0,i,s,n);this.isMethodPostEnabled()&&r.setMethod(a.Method.POST),this.requestHandler.queueRequest(r)}else r.default.warn(a.SessionsTag,"Cannot send session request since either params are not available or options are disabled"),null==n||n()}suspend(){if(r.default.notice(a.SessionsTag,"Suspending session"),this.isActive()){this._suspensionTime=(new Date).getTime();let e=this._beat.chrono.startTime?this._suspensionTime-this._beat.chrono.startTime:0;this._sendBeat(e)}this._suspended=!0,this._beat.stop()}resume(){if(r.default.notice(a.SessionsTag,"Resuming session"),this._suspended=!1,this.isActive()){let e=(new Date).getTime();e-this._suspensionTime<this.core.getFastDataService().getSessionExpireTime()&&this._sendBeat(e-this._suspensionTime),this._beat.start()}}setOptions(e){try{if(e&&Object.keys(e).length>0){let t=new(iE()),i={};for(let s in e)t.exists(s)?i[t.getNewName(s)]=e[s]:i[s]=e[s];this.options&&Object.keys(this.options).length>0?Object.assign(this.options,i):this.options=i,this.requestHandler&&void 0!==i.maxWaitingRequests&&this.requestHandler.setMaxWaitingRequests(i.maxWaitingRequests)}}catch(e){}}getOptions(){return this.options}isUsingLegacy(){return this.core.isUsingLegacy()}getAccountCode(){return this.accountCode}isActive(){return this.requestHandler.isActive()}expiredSession(){return this.requestHandler.hasExpired()}flush(e){return this.requestHandler.flush(e)}register(e={},t={}){this._registeredProperties={dimensions:e,values:t}
1,this.coreStorage.setAppAnalyticsRegisteredProperties(JSON.stringify(this._registeredProperties))}registerOnce(e,t){this._registeredProperties||this.register(e,t)}unregister(){this._registeredProperties=null,this.coreStorage.removeAppAnalyticsRegisteredProperties()}_fireListeners(e,t){e.forEach(e=>{e&&"function"==typeof e&&e(t)})}onRequestQueued(e){this._fireListeners(this._listenersRequestQueued,e)}onWillSendRequest(e){e.getService()===ig().Service.SESSION_STOP&&this._beat.stop(),this._fireListeners(this._listenersRequestWillSend,e)}onRequestSent(e){e.getService()===ig().Service.SESSION_STOP||this._beat.isRunning||this._suspended||this._beat.start(),this._fireListeners(this._listenersRequestSent,e)}addListenerRequestQueued(e){e&&this._listenersRequestQueued.push(e)}addListenerRequestWillSend(e){e&&this._listenersRequestWillSend.push(e)}addListenerRequestSent(e){e&&this._listenersRequestSent.push(e)}getSessionMetrics(){let e=id().getMetricsFrom(this.options["session.metrics"])||{},t=id().filterChangedMetrics(e,this._previousSessionMetrics);try{this._previousSessionMetrics=JSON.parse(JSON.stringify(e))}catch(t){r.default.warn(a.SessionsTag,"Failed to deep copy session metrics for previous state. Storing shallow copy.",t),this._previousSessionMetrics=Object.assign({},e)}return t}isPlayerLogsEnabled(){return r.default.debug(a.SessionsTag,"isPlayerLogsEnabled: "+this.options["debug.playerLogs.enabled"]),id().parseBoolean(this.options["debug.playerLogs.enabled"])}isSimpleNewSession(){return!!this.options&&id().parseBoolean(this.options.simpleNewSession)}isPluginLogsEnabled(){return r.default.debug(a.SessionsTag,"isPluginLogsEnabled: "+this.options["debug.pluginLogs.enabled"]),id().parseBoolean(this.options["debug.pluginLogs.enabled"])}isMethodPostEnabled(){return this.options.method&&this.options.method.toUpperCase()===iI.POST}getSessionRoot(){return this.core.getFastDataSessionToken()}getSessionHost(){return this.core.getFastDataSessionHost()}_sendPluginLogs(e,t,i){if(!this.core.isUsingLegacy()&&this.isPluginLogsEnabled()){try{if(i&&i.logType&&i.logAction){let e=this.core.getFastDataSessionToken();r.default.notice(a.SessionsTag,e.length?"["+e+"] ":i.logType+": Action "+i.logAction)}}catch(e){}if(i.timemark=(new Date).getTime(),null!==(i=this.requestBuilder.buildParams(i,t))&&this.options.enabled){let e=new ib(t,i);this.isMethodPostEnabled()&&e.setMethod(a.Method.POST),this.requestHandler.queueRequest(e)}}}_logFireSessionStartEvent(e){this._sendPluginLogs(ig().WillSendLog.WILL_SEND_LOG_INFINITY_START,ig().Service.APP_ANALYTICS_PLUGIN_LOGS,{logs:{data:e},logAction:"startSession",logType:"pluginMethod"})}_logFireSessionErrorEvent(e,t,i="",s="",n=0,r={},a={}){this._sendPluginLogs(ig().WillSendLog.WILL_SEND_LOG_INFINITY_START,ig().Service.APP_ANALYTICS_PLUGIN_LOGS,{logs:{data:{code:e,msg:t,errorType:i,metadata:s,duration:n,dimensions:r,values:a}},logAction:"errorSession",logType:"pluginMethod"})}_logFireSessionStopEvent(e){this._sendPluginLogs(ig().WillSendLog.WILL_SEND_LOG_INFINITY_START,ig().Service.APP_ANALYTICS_PLUGIN_LOGS,{logs:{data:e},logAction:"stopSession",logType:"pluginMethod"})}_logFireEventListener(e){this._sendPluginLogs(ig().WillSendLog.WILL_SEND_LOG_INFINITY_EVENT,ig().Service.APP_ANALYTICS_PLUGIN_LOGS,{logs:{data:e},logAction:"eventSession",logType:"pluginMethod"})}_logFireEventEndListener(e){this._sendPluginLogs(ig().WillSendLog.WILL_SEND_LOG_INFINITY_EVENT_END,ig().Service.APP_ANALYTICS_PLUGIN_LOGS,{logs:{data:e},logAction:"eventEndSession",logType:"pluginMethod"})}_logFireNavListener(e){this._sendPluginLogs(ig().WillSendLog.WILL_SEND_LOG_INFINITY_NAV,ig().Service.APP_ANALYTICS_PLUGIN_LOGS,{logs:{data:e},logAction:"nav",logType:"pluginMethod"})}}iR.BEAT_INTERVAL=3e4;var iN=i(2602),iD=i(108);class iL{constructor(e){this.appAnalyticsStarted=!1,this.appAnalyticsStopped=!1,this.session=e,this.session.addListenerRequestQueued(this.onRequestQueued.bind(this)),this.session.addListenerRequestWillSend(this.onRequestWillSend.bind(this)),this.session.addListenerRequestSent(this.onRequestSent.bind(this))}destroy(){this.session.destroy()}setOptions(e){this.session.setOptions(e)}getOptions(){return this.session.getOptions()}newSession(e,t={}){this.session.isUsingLegacy()||(this._logFireNewSessionListener(null!=e?e:{},t),this.session.isSimpleNewSession()||(this.appAnalyticsStarted||this.appAnalyticsStopped)&&this.endSession(),e&&this.setOptions(e),this.begin(t))}begin(e={}){this.session.isUsingLegacy()||(this._logBeginEvent(e),this.appAnalyticsStopped&&(this.appAnalyticsStopped=!1),this.appAnalyticsStarted||(this.appAnalyticsStarted=!0,this.session.expiredSession()||this.session.start(void 0,e,void 0,void 0,!0)))}endSession(e={}){this.session.isUsingLegacy()||this.appAnalyticsStarted&&(this.appAnalyticsStopped=!0,this.appAnalyticsStarted=!1,this.session.stop(e,void 0,void 0,!0))}fireSessionStart(e={}){this.begin(e)}fireSessionStop(e={}){this.endSession(e)}fireEvent(e="",t={},i={},s={},n=!1){this.session.sendEvent(e,t,i,s,n)}fireEventEnd(e=""){this.session.sendEventEnd(e)}fireError(e,t,i="",s="",n=0,r={},a={}){this.session.isUsingLegacy()||this.session.isActive()&&this.session.fireError(e,t,i,s,n,r,a)}trackAppError(e,t,i,s,n,r,a,o){if(!this.ensureSessionStarted(`track app error with code '${e}'`))return;let l=this.buildDimensionMap({errorType:i,errorSource:s,page:r,fatal:a});this.session.fireError(e,t,null!=i?i:"",null!=n?n:"",null!=o?o:0,l,{})}trackLogEvent(e,t,i,s,n){this.ensureSessionStarted(`track log event with level '${e}' and category '${t}'`)&&this.processSessionEvent("logEvent",{logLevel:e,logCategory:t,errorSource:i,page:s,metadata:n})}trackANREvent(e,t,i){this.ensureSessionStarted(`track ANR event of type '${e}'`)&&this.processSessionEvent("anrEvent",{anrType:e,page:t},{duration:i})}trackLoginResult(e,t,i,s,n,r){this.ensureSessionStarted(`track login result with status '${t}'`)&&this.processSessionEvent("appLoginResult",{authType:e,authStatus:t,retryCounter:i,page:s},{},{profileId:n,username:r})}trackSignupResult(e,t,i,s,n,r){this.ensureSessionStarted(`track signup result with status '${t}'`)&&this.processSessionEvent("appSignupResult",{authType:e,authStatus:t,retryCounter:i,page:s},{},{profileId:n,username:r})}trackAppStatus(e,t,i,s,n,r,a,o){this.ensureSessionStarted("track app status monitoring event")&&this.processSessionEvent("appStatusMonitoring",{batteryLevel:e,availableMemory:t,networkType:i,appForegroundBackgroun
1d:s,diskSpace:n},{batteryPercentage:r,memoryMB:a,diskMB:o})}trackAPIResponse(e,t,i,s,n,r,a){this.ensureSessionStarted(`track API response for endpoint '${t}'`)&&this.processSessionEvent("apiResponsePerformance",{apiProvider:e,apiEndpoint:t,method:i,apiResponseCode:s,httpStatus:n.toString(),page:r},{apiResponseTime:a})}trackEPGPerformance(e,t,i,s,n){this.ensureSessionStarted(`track EPG performance for provider '${e}'`)&&this.processSessionEvent("epgPerformance",{epgProvider:e,refreshStatus:t,page:i},{refreshDuration:s,channelsLoaded:n})}trackRemoteControlEvent(e,t,i,s){this.ensureSessionStarted(`track remote control event for button '${e}'`)&&this.processSessionEvent("remoteControlEvent",{rcuButton:e,actionTaken:t,eventSuccess:i,page:s})}fireCrashError(e,t,i="",s=0,n={},r={}){this.session.isUsingLegacy()||this.session.isActive()&&this.session.fireError(e,t,"Crash",i,s,n,r)}fireNavigation(e={}){this.session.isUsingLegacy()||this.session.isActive()&&(this.appAnalyticsStarted=!0,this.session.fireNav(e))}fireNav(e={}){this.fireNavigation(e)}isActive(){return this.session.isActive()}isStarted(){return this.appAnalyticsStarted}getSessionRoot(){return this.isActive()?this.session.getSessionRoot():null}getSessionHost(){return this.isActive()?this.session.getSessionHost():null}_logBeginEvent(e){this.session._sendPluginLogs(ig().WillSendLog.WILL_SEND_LOG_INFINITY_BEGIN,ig().Service.APP_ANALYTICS_PLUGIN_LOGS,{logs:{data:e},logAction:"beginSession",logType:"pluginMethod"})}_logFireNewSessionListener(e,t){this.session._sendPluginLogs(ig().WillSendLog.WILL_SEND_LOG_INFINITY_NAV,ig().Service.APP_ANALYTICS_PLUGIN_LOGS,{logs:{data:e,params:t},logAction:"newSession",logType:"pluginMethod"})}onRequestQueued(e){r.default.debug(a.AppAnalyticsTag,"Request queued",e)}onRequestWillSend(e){r.default.debug(a.AppAnalyticsTag,"Request send",e)}onRequestSent(e){r.default.debug(a.AppAnalyticsTag,"Request sent",e)}ensureSessionStarted(e){return!!this.isStarted()||(r.default.error(a.AppAnalyticsTag,`Cannot ${e} because AppAnalytics session is not started. Call fireSessionStart() first.`),!1)}buildDimensionMap(e={}){let t={};return Object.keys(e).forEach(i=>{let s=e[i];null!=s&&(t[i]=String(s))}),t}buildMetricsMap(e={}){let t={};return Object.keys(e).forEach(i=>{let s=e[i];if(null!=s){let e=Number(s);Number.isNaN(e)||(t[i]=e)}}),t}processSessionEvent(e,t={},i={},s={},n=!1){let r=this.buildDimensionMap(t),a=this.buildMetricsMap(i),o=this.buildDimensionMap(s);this.session.sendEvent(e,r,a,o,n)}onSessionStart(e){this.session.addListenerRequestSent(t=>{t.getService()===iD.A.Service.SESSION_START&&e()})}onSessionStop(e){this.session.addListenerRequestSent(t=>{t.getService()===iD.A.Service.SESSION_STOP&&e()})}}var iC,iO=i(5804),iB=i.n(iO);class ix{constructor(){this.autoTrackNavigation=!0,this.autoTrackAttribution=!0,this.highlightContentAfter=1e3,this.manageAnonymousUsers=!1,this.pageRules=[]}static buildFromObject(e){let t;return"object"==typeof e&&null!==e?(t=new ix,"boolean"==typeof e.autoTrackNavigation&&(t.autoTrackNavigation=e.autoTrackNavigation),"boolean"==typeof e.autoTrackAttribution&&(t.autoTrackAttribution=e.autoTrackAttribution),"number"==typeof e.highlightContentAfter&&(t.highlightContentAfter=e.highlightContentAfter),"boolean"==typeof e.manageAnonymousUsers&&(t.manageAnonymousUsers=e.manageAnonymousUsers),"object"==typeof e.pageRules&&Array.isArray(e.pageRules)&&(t.pageRules=e.pageRules)):t=null,t}validate(){let e=new ix;this.highlightContentAfter<1e3&&(this.highlightContentAfter=e.highlightContentAfter,r.default.warn(a.ProductAnalyticsTag,"Invalid higlightContentAfter value. Using default value instead."))}}window.npawtmConfig=window.npawtmConfig||{};class ik{constructor(e){this.fireEvent=e,"undefined"==typeof window||"object"!=typeof window.npawtmConfig?this.config=null:this.config=window.npawtmConfig}identify(e){let t,i;return i=null,t=[],this.config?null===(i=this.getPage(e))?r.default.warn(a.ProductAnalyticsTag,"no page found"):t=this.getEvents(i):r.default.warn(a.ProductAnalyticsTag,"no config descriptor available"),"undefined"==typeof window?r.default.warn(a.ProductAnalyticsTag,"Product Analytics Config: cannot bind events since DOM is not available"):t.length>0&&window.addEventListener("load",()=>{this.bindElements(t)}),i}getPage(e){let t,i,s,n,r,a=null;if("object"==typeof e&&null!==e&&this.config&&this.config.urls&&this.config.regexes&&this.config.domains&&this.config.domains.includes(e.hostname.toLowerCase()))for(void 0!==(s=this.config.urls[e.pathname])&&void 0!==s.page&&(
1a=s.page),t=e.pathname+e.search,r=0;r<this.config.regexes.length&&null===a;r++)n=new RegExp((i=this.config.regexes[r]).regex),t.match(n)&&(a=i.page);return a}getEvents(e){let t=this.config&&this.config.events?this.config.events[e]:null;return null==t&&(t=[]),t}bindElements(e){let t,i,s,n,o;for(o=0;o<e.length;o++)if(t=e[o],null===(s=document.querySelector(t.selector)))r.default.warn(a.ProductAnalyticsTag,"element "+t.selector+" not found");else if(0===t.events.length)r.default.warn(a.ProductAnalyticsTag,"element "+t.selector+" has no events to bind");else for(n=0;n<t.events.length;n++)i=t.events[n],s.npawEventInfo=t,s.npawEventType=i,s.addEventListener(i,e=>{this.elementEvent(e.currentTarget.npawEventInfo,e.currentTarget.npawEventType)})}elementEvent(e,t){let i="["+t+"] "+e.name;this.fireEvent?this.fireEvent(i,t,{uiElement:e.name,eventName:i,eventType:t}):r.default.warn(a.ProductAnalyticsTag,"Cannot trigger event since no handler has been provided")}}!function(e){e.userProfile="User Profile",e.user="User",e.navigation="Navigation",e.attribution="Attribution",e.section="Section",e.contentPlayback="Content Playback",e.search="Search",e.externalApplication="External Application",e.engagement="Engagement",e.interaction="Interaction",e.custom="Custom Event"}(iC||(iC={}));let iM=iC;class iU{constructor(e,t,i,s,n){if(this.session=e,this.session.addListenerRequestQueued(this.onRequestQueued.bind(this)),this.session.addListenerRequestWillSend(this.onRequestWillSend.bind(this)),this.session.addListenerRequestSent(this.onRequestSent.bind(this)),this.initialized=!1,this.settings=new ix,this.page=null,this.config=null,this.searchQuery="",this.url=null,"undefined"!=typeof window&&void 0!==window.location)try{this.url=new URL(window.location.href)}catch(e){this.url=null}this.contentHighlighted=null,this.contentHighlightTimeout=null,this.pendingVideoEvents={},this.adapters={},this.getReferral=t,this.setAnalyticsOptions=i,this.addVideoRequestListener=s,this.removeVideoRequestListener=n,this.videoListenerAccessor=this.videoListener.bind(this)}initialize(e){let t;if(void 0===e)this.settings=new ix,r.default.warn(a.ProductAnalyticsTag,"Settings not supplied: using default ones.");else if(e instanceof ix)this.settings=e;else{let t=ix.buildFromObject(e);null===t?(this.settings=new ix,r.default.warn(a.ProductAnalyticsTag,"Invalid settings supplied: using default ones.")):this.settings=t}this.settings.validate(),this.config=new ik(this.fireEventInternal.bind(this)),this.identify(),this.initialized=!0;let i=this.getUserId(),s={};null===i?Object.assign(s,this.getAnonymousUserOptions()):Object.assign(s,this.getAuthenticatedUserOptions(i,this.getProfileId())),this.setAnalyticsOptions(s),this.session.start(),this.settings.autoTrackNavigation&&("undefined"==typeof window?r.default.warn(a.ProductAnalyticsTag,"Cannot auto track cached navigation since DOM is not available."):(window.removeEventListener("pageshow",this.trackNavigationCached),window.addEventListener("pageshow",this.trackNavigationCached.bind(this))),this.trackNavigationInternal()),this.settings.autoTrackAttribution&&(t=null===this.url?"":this.url.search,this.trackAttributionInternal(new URLSearchParams(t)))}identify(){let e,t,i;for(null===this.config?this.page=null:this.page=this.config.identify(this.url),i=0;i<this.settings.pageRules.length&&null===this.page&&null!==this.url;i++)if(void 0!==(e=this.settings.pageRules[i]).rule&&void 0!==e.page){try{t=new RegExp(e.rule)}catch(i){t=null,r.default.warn(a.ProductAnalyticsTag,"Error processing rule",e.rule,e.page)}null!==t&&null!==this.url.pathname.match(t)&&(this.page=this.url.pathname.replace(t,e.page))}null===this.page&&null!==this.url&&(this.page=this.url.pathname)}destroy(){for(let e of(r.default.warn(a.ProductAnalyticsTag,"ProductAnalytics instance destroyed through destroy"),Object.keys(this.adapters)))this.removeAdapter(e);this.contentFocusOut(),this.initialized=!1,this.settings=new ix,this.page=null,this.config=null,this.searchQuery="",this.url=null}getAuthenticatedUserOptions(e,t){return void 0!==t&&""!==t||(t=null),{userId:e,"user.type":"Registered",profileId:t}}getAnonymousUserOptions(){return{userId:this.settings.manageAnonymousUsers?this.getDeviceUUID():null,"user.type":"Unregistered",profileId:null}}getOptions(){return this.session.getOptions()}getUserId(){let e,t=this.getOptions();return void 0===(e=Object.prototype.hasOwnProperty.call(t,"userId")?t.userId:Object.prototype.hasOwnProperty.call(t,"user.name")?t["user.name"]:null)?e=null:"string"==typeof e&&(""!==e.trim()&&"unregistered user"!==e.trim().toLowerCase()||(e=null)),e}getProfileId(){let e=this.getOptions();return Object.prototype.hasOwnProperty.call(e,"profileId")?e.profileId:null}getDeviceUUID(){let e=this.getOptions();return e["device.isAnonymous"]?null:e["device.id"]||(new(iB())).getKey()}adapterTrackStart(e){this.initialized&&this.trackPlayerInteraction("start",{},{},e)}registerAdapter(e,t){this.initialized&&(e?(this.removeAdapter(t),this.adapters[this.getVideoKey(t)]=e,1===Object.keys(this.adapters).length&&this.addVideoRequestListener(this.videoListenerAccessor)):r.default.warn(a.ProductAnalyticsTag,"Cannot bind adapter start since adapter is unavailable."))}removeAdapter(e){e=this.getVideoKey(e),delete this.adapters[e],delete this.pendingVideoEvents[e],0===Object.keys(this.adapters).length&&this.removeVideoRequestListener(this.videoListenerAccessor)}getAdapter(e){return this.adapters[this.getVideoKey(e)]||null}getVideoKey(e){return e||iU.VIDEOKEY_DEFAULT_IDENTIFIER}videoListener(e,t,i){e===ig().Service.START&&this.adapterTrackStart(t)}newSession(){this.initialized?(this.session.stop(),this.session.start()):r.default.warn(a.ProductAnalyticsTag,"Cannot start a new session since Product Analytics is uninitialized.")}endSession(){this.initialized?this.session.stop():r.default.warn(a.ProductAnalyticsTag,"Cannot end session since Product Analytics is uninitialized.")}sessionActive(){return this.session.isActive()}loginSuccessful(e,t,i,s,n){if(this.checkState("log in successfully"))if("string"!=typeof e&&"number"!=typeof e)r.default.warn(a.ProductAnalyticsTag,"Cannot log in successfully since userId is unavailable.");else if(""===e)r.default.warn(a.ProductAnalyticsTag,"Cannot log in successfully since userId is unset.");else{this.fireEventInternal("User Login Successful",iM.user,{username:e,paIsBounce
1:!0,paIgnoreSession:!0},s,n),null!=t&&""!==t&&this._userProfileSelectedEvent(t,i,s,n);let r=this.getAuthenticatedUserOptions(e,t);this.setAnalyticsOptions(r),this.newSession()}}loginUnsuccessful(e,t){this.checkState("log in unsuccessful")&&this.fireEventInternal("User Login Unsuccessful",iM.user,{paIsBounce:!0,paIgnoreSession:!1},e,t)}logout(e,t){if(this.checkState("log out")){this.fireEventInternal("User Logout",iM.user,{paIsBounce:!0,paIgnoreSession:!1},e,t);let i=this.getAnonymousUserOptions();this.setAnalyticsOptions(i),this.newSession()}}userProfileCreated(e,t,i,s){if(this.checkState("create user profile"))if("string"!=typeof e&&"number"!=typeof e)r.default.warn(a.ProductAnalyticsTag,"Cannot create user profile since profileId is unavailable.");else if(""===e)r.default.warn(a.ProductAnalyticsTag,"Cannot create user profile since profileId is unset.");else{let n=this._getUserProfileDimensions(e,t,!1);this.fireEventInternal("User Profile Created",iM.userProfile,n,i,s)}}userProfileSelected(e,t,i,s){if(this.checkState("select user profile"))if("string"!=typeof e&&"number"!=typeof e)r.default.warn(a.ProductAnalyticsTag,"Cannot select user profile since profileId is unavailable.");else if(""===e)r.default.warn(a.ProductAnalyticsTag,"Cannot select user profile since profileId is unset.");else{this._userProfileSelectedEvent(e,t,i,s);let n=this.getAuthenticatedUserOptions(this.getUserId(),e);this.setAnalyticsOptions(n),this.newSession()}}_userProfileSelectedEvent(e,t,i,s){let n=this._getUserProfileDimensions(e,t,!0);this.fireEventInternal("User Profile Selected",iM.userProfile,n,i,s)}userProfileDeleted(e,t,i){if(this.checkState("delete user profile"))if("string"!=typeof e&&"number"!=typeof e)r.default.warn(a.ProductAnalyticsTag,"Cannot delete user profile since profileId is unavailable.");else if(""===e)r.default.warn(a.ProductAnalyticsTag,"Cannot delete user profile since profileId is unset.");else{let s=this._getUserProfileDimensions(e,null,!1);this.fireEventInternal("User Profile Deleted",iM.userProfile,s,t,i)}}_getUserProfileDimensions(e,t,i){let s={profileId:e,paIsBounce:!0,paIgnoreSession:"boolean"==typeof i&&i};return null!=t&&(s.profileType=t),s}trackNavByRoute(e,t,i){if(this.checkState("track navigation"))if("string"!=typeof e||""===e)r.default.warn(a.ProductAnalyticsTag,"Cannot track navigation since route has not been supplied.");else{let s;try{s=new URL(e)}catch(e){s=null}null===s?r.default.warn(a.ProductAnalyticsTag,"Cannot track navigation since route is invalid."):(this.url=s,this.identify(),this.trackNavigationInternal(t,i))}}trackNavByName(e,t,i){this.checkState("track navigation")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track navigation since page is invalid."):(this.page=e,this.trackNavigationInternal(t,i)))}trackNavigationCached(e){e.persisted&&this.trackNavigationInternal()}trackNavigationInternal(e,t){let i,s,n;null===this.url?(i="",s="",n=""):(i=this.url.href,s=this.url.pathname,n=this.url.hostname),this.checkState("track navigation")&&this.fireEventInternal("paNavigation",iM.navigation,{paIsBounce:!1,paIgnoreSession:!1,paRoute:s,paRouteDomain:n,paFullRoute:i,paReferrer:this.getReferral()||""},e,t,!0)}trackAttribution(e,t,i,s,n,o,l){if(this.checkState("track attribution"))if(this.settings.autoTrackAttribution)r.default.warn(a.ProductAnalyticsTag,"Automatic attribution tracking is enabled: this request won't be processed.");else{let u={};"string"==typeof e&&(u.utm_source=e),"string"==typeof t&&(u.utm_medium=t),"string"==typeof i&&(u.utm_campaign=i),"string"==typeof s&&(u.utm_term=s),"string"==typeof n&&(u.utm_content=n),Object.keys(u).length>0?this.trackAttributionInternal(new URLSearchParams(u),o,l):r.default.warn(a.ProductAnalyticsTag,"Cannot track attribution since parameters are invalid.")}}trackAttributionInternal(e,t,i){let s=this._getUTMParams(e),n=null===this.url?"":this.url.href;this.checkState("track attribution")&&s&&this.fireEventInternal("Attribution",iM.attribution,Object.assign({paIsBounce:!0,paIgnoreSession:!1,utmUrl:n},s),t,i)}_getUTMParams(e){let t,i,s,n=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],r={};return e.forEach(function(e,a){-1!==(i=n.indexOf(a.toLowerCase()))&&
1((t=(s=n[i]).split("_")).length>1&&(s=t[0]+t[1].charAt(0).toUpperCase()+t[1].slice(1)),r[s]=e)}),Object.keys(r).length>0?r:null}trackSectionVisible(e,t,i,s){this.checkState("track section visible")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track section visible since section is invalid."):"number"!=typeof t||t<1?r.default.warn(a.ProductAnalyticsTag,"Cannot track section visible since sectionOrder is invalid."):this.fireEventInternal("Section Visible",iM.section,{paIsBounce:!0,paIgnoreSession:!1,sectionOrder:t,section:e},i,s))}trackSectionHidden(e,t,i,s){this.checkState("track section hidden")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track section hidden since section is invalid."):"number"!=typeof t||t<1?r.default.warn(a.ProductAnalyticsTag,"Cannot track section hidden since sectionOrder is invalid."):this.fireEventInternal("Section Hidden",iM.section,{paIsBounce:!0,paIgnoreSession:!1,sectionOrder:t,section:e},i,s))}contentFocusIn(e,t,i,s,n,o,l){this.contentFocusOut(),this.checkState("track content highlight")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track content highlight since section is invalid."):"number"!=typeof t||t<1?r.default.warn(a.ProductAnalyticsTag,"Cannot track content highlight since sectionOrder is invalid."):"number"!=typeof i||i<1?r.default.warn(a.ProductAnalyticsTag,"Cannot track content highlight since column is invali
1d."):"number"!=typeof s||s<1?r.default.warn(a.ProductAnalyticsTag,"Cannot track content highlight since row is invalid."):"string"!=typeof n||""===n?r.default.warn(a.ProductAnalyticsTag,"Cannot track content highlight since contentID is invalid."):(this.contentHighlighted={sectionOrder:t,section:e,column:i,row:s,contentID:n,dimensions:o,metrics:l},this.contentHighlightTimeout=setTimeout(this._trackContentHiglight.bind(this),this.settings.highlightContentAfter)))}contentFocusOut(){null!==this.contentHighlightTimeout&&clearTimeout(this.contentHighlightTimeout),this.contentHighlighted=null,this.contentHighlightTimeout=null}_trackContentHiglight(){this.contentHighlighted?this.fireEventInternal("Section Content Highlight",iM.section,{paIsBounce:!0,paIgnoreSession:!1,sectionOrder:this.contentHighlighted.sectionOrder,section:this.contentHighlighted.section,column:this.contentHighlighted.column,row:this.contentHighlighted.row,contentId:this.contentHighlighted.contentID},this.contentHighlighted.dimensions,this.contentHighlighted.metrics):r.default.warn(a.ProductAnalyticsTag,"Cannot highlight content since no content is selected")}trackContentClick(e,t,i,s,n,o,l){this.checkState("track content click")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track content click since section is invalid."):"number"!=typeof t||t<1?r.default.warn(a.ProductAnalyticsTag,"Cannot track content click since sectionOrder is invalid."):"number"!=typeof i||i<1?r.default.warn(a.ProductAnalyticsTag,"Cannot track content click since column is invali
1d."):"number"!=typeof s||s<1?r.default.warn(a.ProductAnalyticsTag,"Cannot track content click since row is invalid."):"string"!=typeof n||""===n?r.default.warn(a.ProductAnalyticsTag,"Cannot track content click since contentID is invalid."):this.fireEventInternal("Section Content Click",iM.section,{paIsBounce:!1,paIgnoreSession:!1,sectionOrder:t,section:e,column:i,row:s,contentId:n},o,l))}trackPlay(e,t,i,s){this.checkState("track play")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track play since contentID is invalid."):this.handlePlayerEvent("Content Play",e,t||{},i||{},this.getVideoKey(s)))}trackPlayerInteraction(e,t,i,s){this.checkState("track player interaction")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track player interaction since interaction name is invalid."):this.handlePlayerEvent("Content Play "+e,null,t||{},i||{},this.getVideoKey(s)))}handlePlayerEvent(e,t,i,s,n){var o;let l=this.getAdapter(n);null==l?r.default.warn(a.ProductAnalyticsTag,"Cannot track player event since video adapter is not available"):l.flags.isStarted?(null==(o=this.pendingVideoEvents[n])||o.forEach(e=>{this.trackPlayerEvent(e.eventName,e.contentId,e.dimensions,e.metrics,e.videoKey)}),delete this.pendingVideoEvents[n],this.trackPlayerEvent(e,t,i,s,n)):(null==this.pendingVideoEvents[n]&&(this.pendingVideoEvents[n]=[]),this.pendingVideoEvents[n].push({eventName:e,contentID:t,dimensions:i,metrics:s,videoKey:n}))}trackPlayerEvent(e,t,i,s,n){let r={paIsBounce:!1,paIgnoreSession:!1};null!==t&&(r.contentId=t),this.fireEventAdapter(e,r,i,s,n)}trackSearchQuery(e,t,i){this.checkState("track search query")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track search query since no searchQuery has been supplied."):(this.searchQuery=e,this.fireEventInternal("Search Query",iM.search,{paIsBounce:!1,paIgnoreSession:!1,query:this.searchQuery},t,i)))}trackSearchResult(e,t,i,s){if(this.checkState("track search result"))if("number"!=typeof e)r.default.warn(a.ProductAnalyticsTag,"Cannot track search result since resultCount is invalid.");else{let n="string"==typeof t&&""!==t?t:this.searchQuery;this.fireEventInternal("Search Results",iM.search,{paIsBounce:!0,paIgnoreSession:!1,query:n,resultCount:e},i,s)}}trackSearchClick(e,t,i,s,n,o,l,u){if(this.checkState("track search click"))if("number"!=typeof i||i<1)r.default.warn(a.ProductAnalyticsTag,"Cannot track search click since column is invali
1d.");else if("number"!=typeof s||s<1)r.default.warn(a.ProductAnalyticsTag,"Cannot track search click since row is invalid.");else if("string"!=typeof n||""===n)r.default.warn(a.ProductAnalyticsTag,"Cannot track search click since contentID is invalid.");else{let r="string"==typeof o&&""!==o?o:this.searchQuery;"string"==typeof e&&""!==e||(e="Search"),("number"!=typeof t||t<1)&&(t=1),this.fireEventInternal("Search Result Click",iM.search,{paIsBounce:!1,paIgnoreSession:!1,query:r,section:e,sectionOrder:t,column:i,row:s,contentId:n},l,u)}}trackExternalAppLaunch(e,t,i){this.checkState("track external application launch")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track external application launch since appName is invalid."):this.fireEventInternal("External Application Launch",iM.externalApplication,{paIsBounce:!1,paIgnoreSession:!1,paExtAppName:e},t,i))}trackExternalAppExit(e,t,i){this.checkState("track external application exit")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track external application exit since appName is invalid."):this.fireEventInternal("External Application Exit",iM.externalApplication,{paIsBounce:!1,paIgnoreSession:!1,paExtAppName:e},t,i))}trackEngagementEvent(e,t,i,s){this.checkState("track engagement")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Cannot track engagement event since eventName is invalid."):"string"!=typeof t||""===t?r.default.warn(a.ProductAnalyticsTag,"Cannot track engagement event since contentID is invali
1d."):this.fireEventInternal("Engagement "+e,iM.engagement,{paIsBounce:!1,paIgnoreSession:!1,contentId:t},i,s))}trackClick(e,t,i,s){"boolean"!=typeof s&&(s=!1),this.checkState("track click event")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Click cannot be tracked since controlName is invalid."):this.fireEventInternal("Click",iM.interaction,{paIsBounce:!1,paIgnoreSession:!1,controlName:e},t,i,s))}trackEvent(e,t,i,s){"boolean"!=typeof s&&(s=!1),this.checkState("track custom event")&&("string"!=typeof e||""===e?r.default.warn(a.ProductAnalyticsTag,"Event cannot be tracked since eventName is invalid."):this.fireEventInternal("Custom "+e,iM.custom,{paIsBounce:!1,paIgnoreSession:!1},t,i,s))}fireEventInternal(e,t,i={},s={},n={},o=!1){r.default.notice(a.ProductAnalyticsTag,e);let l=this.buildDimensions(t,i,s);this.session.sendEvent(e,l.custom,n,l.top,o)}fireEventAdapter(e,t,i,s,n){r.default.notice(a.ProductAnalyticsTag,e);let o=this.getAdapter(n);if(o){let n=this.buildDimensions(iM.contentPlayback,t,i);o.fireEvent(e,n.custom,s,n.top)}else r.default.warn(a.ProductAnalyticsTag,"Cannot fire "+e+" event since adapter is unavailable.")}buildDimensions(e,t={},i={}){let s;s=Object.assign(s=Object.assign(s=Object.assign(s={paPage:this.page},t),i),{eventType:e,eventSource:"Product Analytics"});let n=["contentid","contentId","contentID","utmSource","utmMedium","utmCampaign","utmTerm","utmContent","profileId","profile_id","username"],r={};for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&-1!==n.indexOf(e)&&(r[e]=s[e]);return n.forEach(function(e){delete s[e]}),{custom:s,top:r}}checkState(e){let t;return this.initialized?t=!0:(t=!1,r.default.warn("Cannot "+e+" since Product Analytics is uninitialized.")),t}onRequestQueued(e){}onRequestWillSend(e){}onRequestSent(e){}}iU.VIDEOKEY_DEFAULT_IDENTIFIER="default",i.g.LogLevel=r.LogLevel,i.g.NpawPluginOptions=iN.A;class iV{constructor(e,t){this.core=n.default.getInstance(e,t,!0),this.cdnBalancer=new ir(e,t),this.session=new iR(e),this.appAnalytics=new iL(this.session),this.videoAnalytics=new(io()).Plugin(this.appAnalytics,this.session),this.productAnalytics=new iU(this.session,this.videoAnalytics.getReferral.bind(this.videoAnalytics),this.setAnalyticsOptions.bind(this),this.videoAnalytics.addOnWillSendRequestListener.bind(this.videoAnalytics),this.videoAnalytics.removeOnWillSendRequestListener.bind(this.videoAnalytics)),this.diagnostic=il.getInstance(!0)}destroy(){var e;null==(e=this.cdnBalancer)||e.destroy(),this.videoAnalytics.videos.getVideoKeys().forEach(e=>{var t,i;void 0!==this.videoAnalytics&&(null==(t=this.videoAnalytics.getAdapter(e))||t.fireStop(),null==(i=this.videoAnalytics.getAdsAdapter(e))||i.fireStop())}),this.videoAnalytics.destroy(),this.productAnalytics.destroy(),this.session.destroy(),this.core.destroy()}setLogLevel(e){r.default.setLogLevel(e)}isBalancerSupported(){var e;return!(!this.cdnBalancer||!(null==(e=this.cdnBalancer)?void 0:e.isCdnBalancerSupported()))||(r.default.warn(a.AnalyticsTag,"Balancer is not available in this build."),!1)}setBalancerOptions(e){var t;this.isBalancerSupported()&&(null==(t=this.cdnBalancer)||t.setOptions(e))}setManifestResource(e){this.isBalancerSupported()&&this.cdnBalancer.setManifestResource(e)}addInterceptor(e,t){this.isBalancerSupported()&&this.cdnBalancer.addInterceptor(e,t)}getBitmovinSendHttpRequest(){return this.isBalancerSupported()?this.cdnBalancer.getBitmovinSendHttpRequest():void 0}getRecommendedManifest(){return this.isBalancerSupported()?this.cdnBalancer.getRecommendedManifest():void 0}isBalancerEnabled(){var e;return!(!this.cdnBalancer||!(null==(e=this.cdnBalancer)?void 0:e.isCdnBalancerSupported()))&&this.cdnBalancer.getIsEnabled()}setChronoDuration(e,t,i){this.videoAnalytics.setChronoDuration(e,t,i)}startChrono(e,t){this.videoAnalytics.startChrono(e,t)}stopChrono(e,t){this.videoAnalytics.stopChrono(e,t)}registerAdapter(e,t,i,s,n){this.core.isUsingLegacy()||this.registerAdapterInModule(!1,e,t,i,s,n)}registerAdapterFromClass(e,t,i,s,n){void 0!==t&&"function"==typeof t?this.registerAdapterFromClassInModule(!1,e,new t,i,s,n):r.default.error(a.AnalyticsTag,"Adapter is not val
1id")}registerAdapterFromString(e,t,i,s,n){void 0!==t&&"string"==typeof t?(this.videoAnalytics.registerAdapter(e,t,i,s),this.registerAdapterProductAnalytics(s),null==n||n()):r.default.error(a.AnalyticsTag,"The provided adapter is not from a valid type")}registerDefaultAdapter(e,t){this.core.isUsingLegacy()||(this.videoAnalytics.registerAdapter(void 0,{},t,e),this.registerAdapterProductAnalytics(e))}removeAdapter(e){this.core.isUsingLegacy()||(e&&this.videoAnalytics.videos.existsVideo(e)&&this.getAdapter(e)&&this.getAdapter(e).fireStop&&this.getAdapter(e).fireStop(),this.productAnalytics.removeAdapter(e),this.videoAnalytics.removeAdapter(e))}getAdapter(e){return this.videoAnalytics.getAdapter(e)}getAdsAdapter(e){return void 0!==this.videoAnalytics?this.videoAnalytics.getAdsAdapter(e):void 0}registerAdsAdapter(e,t,i,s,n){this.core.isUsingLegacy()||this.registerAdapterInModule(!0,e,t,i,s,n)}registerAdsAdapterFromClass(e,t,i,s,n){void 0!==t&&"function"==typeof t?this.registerAdapterFromClassInModule(!0,e,new t,i,s,n):r.default.error(a.AnalyticsTag,"Adapter is not valid")}registerAdsAdapterFromString(e,t,i,s,n){void 0!==t&&"string"==typeof t?(this.videoAnalytics.registerAdsAdapter(e,t,i,s),null==n||n()):r.default.error(a.AnalyticsTag,"The provided adapter is not from a valid type")}updateAdsAdapter(e,t){t=null!=t?t:"default",void 0!==e&&""!=e?this.videoAnalytics.updateAdsAdapter(e,t):r.default.debug(a.AnalyticsTag,"Invalid ads adapter name")}registerDefaultAdsAdapter(e,t){this.core.isUsingLegacy()||this.videoAnalytics.registerAdsAdapter(void 0,"{}",t,e)}removeAdsAdapter(e){this.core.isUsingLegacy()||this.videoAnalytics.removeAdsAdapter(e)}setAnalyticsOptions(e){this.core.isUsingLegacy()||(this.videoAnalytics.setOptions(e),this.session.setOptions(this.videoAnalytics.options),this.core.setOptions(this.videoAnalytics.options))}setVideoOptions(e,t){e?this.videoAnalytics.setVideoOptions(e,null!=t?t:"default"):r.default.debug(a.AnalyticsTag,"Provided options object is not valid")}updateMetrics(e,t){e?this.videoAnalytics.updateCustomMetrics(e,null!=t?t:"default"):r.default.debug(a.AnalyticsTag,"Provided metrics object is not valid")}fireOfflineEvents(){this.core.isUsingLegacy()||(this.videoAnalytics.videos.getVideoKeys().length>0?r.default.notice(a.AnalyticsTag,"Unable to send offline events because there's at least one adapter registered"):this.core.sendOfflineEvents())}registerAdapterFromClassInModule(e,t,i,s,n,r){e?this.videoAnalytics.registerAdsAdapter(t,i,s,n):(this.videoAnalytics.registerAdapter(t,i,s,n),this.registerAdapterProductAnalytics(n)),null==r||r()}registerAdapterInModule(e,t,i,s,n,a){if(0===i.length&&r.default.error("Adapter URL can't be empty!"),"undefined"!=typeof fetch)fetch(i).then(e=>e.json()).then(i=>{let r=JSON.stringify(i);e?this.videoAnalytics.registerAdsAdapter(t,r,s,n):(this.videoAnalytics.registerAdapter(t,r,s,n),this.registerAdapterProductAnalytics(n)),null==a||a()});else{let r=new XMLHttpRequest;r.addEventListener("readystatechange",()=>{if(4===r.readyState&&r.status>=200&&r.status<400){let i=r.response;e?this.videoAnalytics.registerAdsAdapter(t,i,s,n):(this.videoAnalytics.registerAdapter(t,i,s,n),this.registerAdapterProductAnalytics(n)),null==a||a()}}),r.open("GET",i),r.send()}}registerAdapterProductAnalytics(e){let t=this.videoAnalytics.getAdapter(e);this.productAnalytics.registerAdapter(t,e)}}})(),s.default})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.