PageSourceSearch

https://static-oaos.rtbf.be/16838505719/_next/static/chunks/5e88686c.1995f63cdc8e5a0b.js

js rtbf.be collected 2026-10-01 08:46:06 UTC 358,165 bytes, 1 lines download raw bytes

vendor: 4,776 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1846],{63100:(module,__unused_webpack_exports,__webpack_require__)=>{!function(){if(void 0!==__webpack_require__.g&&"u"<typeof window){__webpack_require__.g.window=self=__webpack_require__.g,window.NodeList="u">typeof NodeList?NodeList:{prototype:{}},window.Document="u">typeof Document?Document:{prototype:{}};var shimArrayFn=function(){return[]},shimElementFn=function(){return{appendChild:shimArrayFn}};window.document="u">typeof document?document:{createTextNode:shimArrayFn,getElementsByTagName:shimArrayFn,createElement:shimElementFn,head:{appendChild:shimArrayFn}},window.Event="u">typeof Event?Event:{prototype:{}},window.Element="u">typeof Element?Element:{prototype:{}},window.screen="u">typeof screen?screen:{prototype:{}},window.navigator="u">typeof navigator?navigator:{prototype:{},userAgent:"shim",platform:{toLowerCase:shimArrayFn}},window.location="u">typeof location?location:{}}!function(e,t){module.exports=t()}(self,function(){return function(){var __webpack_modules__={90040:function(module){var URL=window.URL||window.webkitURL;module.exports=function(content,url){try{try{var blob;try{(blob=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)).append(content),blob=blob.getBlob()}catch(e){blob=new Blob([content])}return new Worker(URL.createObjectURL(blob))}catch(e){return new Worker("data:application/javascript,"+encodeURIComponent(content))}}catch(e){try{var exportReturnStatement="return __webpack_require__(",exportStatement="var __webpack_exports__ = __webpack_require__(";return"!"===content.substring(0,1)&&(content=content.substring(1,content.length-1),content="("+content+")"),content.indexOf(exportStatement)>0&&(content=content.replace(exportStatement,exportReturnStatement)),eval(content).getContext()}catch(e){return{}}}}},37007:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,i)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,a;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,function(e){console&&console.warn&&console.warn(e)}(l)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
vendor: 4,202 bytes, line 1
1,set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var l=u.length,c=h(u,l);for(n=0;n<l;++n)r(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events)||void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},91829:function(e,t,n){"use strict";function r(e){return(r="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 i(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.r(t),n.d(t,{__DO_NOT_USE__ActionTypes:function(){return c},applyMiddleware:function(){return E},bindActionCreators:function(){return y},combineReducers:function(){return p},compose:function(){return v},createStore:function(){return d},legacy_createStore:function(){return f}});var u=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function d(e,t,n){if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error(s(1));return n(d)(e,t)}if("function"!=typeof e)throw Error(s(2));var r,i=e,o=t,a=[],l=a,f=!1;function p(){l===a&&(l=a.slice())}function h(){if(f)throw Error(s(3));return o}function y(e){if("function"!=typeof e)throw Error(s(4));if(f)throw Error(s(5));var t=!0;return p(),l.push(e),function(){if(t){if(f)throw Error(s(6));t=!1,p();var n=l.indexOf(e);l.splice(n,1),a=null}}}function v(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(s(7));if(void 0===e.type)throw Error(s(8));if(f)throw Error(s(9));try{f=!0,o=i(o,e)}finally{f=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}return v({type:c.INIT}),(r={dispatch:v,subscribe:y,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw Error(s(10));i=e,v({type:c.REPLACE})}})[u]=function(){var e,t=y;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(s(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[u]=function(){return this},e},r}var f=d;function p(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:c.INIT}))throw Error(s(12));if(void 0===n(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw Error(s(13))})}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},u=0;u<a.length;u++){var l=a[u],c=n[l],d=e[l],f=c(d,t);
vendor: 27,769 bytes, line 1
1if(void 0===f)throw t&&t.type,Error(s(14));i[l]=f,r=r||f!==d}return(r=r||a.length!==Object.keys(e).length)?i:e}}function h(e,t){return function(){return t(e.apply(this,arguments))}}function y(e,t){if("function"==typeof e)return h(e,t);if("object"!=typeof e||null===e)throw Error(s(16));var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=h(i,t))}return n}function v(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function E(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw Error(s(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return r=v.apply(void 0,o)(n.dispatch),a(a({},n),{},{dispatch:r})}}}},88052:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleManager=void 0;var r=n(40306),i=n(3336),o=n(95880);t.ModuleManager=function(){function e(){}return e.initialize=function(){this.modules||(this.modules={})},e.add=function(e){if(this.initialize(),!e)throw new i.PlayerError(r.ErrorCode.MODULE_INVALID_DEFINITION,void 0,"Cannot add the module: no module definition was provided to the API.");if(!e.name)throw new i.PlayerError(r.ErrorCode.MODULE_INVALID_DEFINITION,void 0,"Cannot add the module: no `name` property was provided to the module definition.");if(!e.module)throw new i.PlayerError(r.ErrorCode.MODULE_INVALID_DEFINITION,void 0,"Cannot add the module: no `module` property was provided to the module definition.");if(e.dependencies){for(var t=0,n=e.dependencies;t<n.length;t++){var a=n[t];if(!this.has(a))throw new o.PlayerModuleMissingError(e.name,a)}if("function"!=typeof e.module)throw new i.PlayerError(r.ErrorCode.MODULE_INVALID_DEFINITION_DEPENDENCY,{name:e.name},"Cannot add the module: modules with dependencies must pass a deferred loading function to the `ModuleDefinition.module` property.")}var s=e.module;"function"==typeof s&&(s=s()),this.modules[e.name]={moduleDefinition:e,module:s},e.hooks&&e.hooks.add&&e.hooks.add(e.module)},e.remove=function(e){var t;if(this.modules){if(!this.modules[e])throw new o.PlayerModuleMissingError(e);var n=this.modules[e].moduleDefinition;(null==(t=n.hooks)?void 0:t.remove)&&n.hooks.remove(n.module),delete this.modules[e]}},e.get=function(e,t){void 0===t&&(t=!0),this.initialize();var n=this.modules[e];if(n&&n.module)return n.module;if(t)throw new o.PlayerModuleMissingError(e)},e.has=function(e){return void 0!==this.get(e,!1)},e.getModuleNames=function(){return Object.getOwnPropertyNames(this.modules)},e.getModuleDefinitions=function(){var e=this;return this.getModuleNames().map(function(t){return e.modules[t]})},e.callSetupHooks=function(e){this.getModuleDefinitions().filter(function(e){return e.moduleDefinition.hooks&&e.moduleDefinition.hooks.setup}).forEach(function(t){return t.moduleDefinition.hooks.setup(t.module,e)})},e.callDestroyHooks=function(e){return Promise.all(this.getModuleDefinitions().filter(function(e){return e.moduleDefinition.hooks&&e.moduleDefinition.hooks.destroy}).map(function(t){return t.moduleDefinition.hooks.destroy(t.module,e)})).then(function(){})},e}()},62756:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleName=void 0,function(e){e.VR="VR",e.XML="XML",e.Smooth="Smooth",e.AdvertisingCore="AdvertisingCore",e.Advertising="Advertising",e.AdvertisingIma="Advertising",e.AdvertisingBitmovin="Advertising",e.AdvertisingOmSdk="AdvertisingOmSdk",e.SGAI="SGAI",e.Polyfill="Polyfill",e.Patch="Patch",e.RemoteControl="RemoteControl",e.RendererMse="RendererMSE",e.EngineNative="EngineNative",e.EngineBitmovin="EngineBitmovin",e.ABR="ABR",e.Crypto="Crypto",e.HLS="HLS",e.DRM="DRM",e.DASH="DASH",e.ContainerTS="ContainerTS",e.ContainerMP4="ContainerMP4",e.ContainerWebM="ContainerWebM",e.Subtitles="Subtitles",e.SubtitlesTTML="SubtitlesTTML",e.SubtitlesWebVTT="SubtitlesWebVTT",e.SubtitlesCEA608="SubtitlesCEA608",e.SubtitlesNative="SubtitlesNative",e.Style="Style",e.Thumbnail="Thumbnail",e.ThumbnailImp="Thumbnail",e.UI="UI",e.Tizen="Tizen",e.Webos="webos",e.Vidaa="vidaa",e.Wpe="wpe",e.LowLatency="LowLatency",e.ServiceWorkerClient="ServiceWorkerClient",e.Envivio="Envivio",e.PlayStation5="PlayStation5",e.PlayStation4="PlayStation4",e.EngineWebRtc="EngineWebRtc",e.ReactNative="ReactNative"}(n||(t.ModuleName=n={}))},95880:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerModuleMissingError=void 0;var i=n(40306);t.PlayerModuleMissingError=function(e){function t(t,n){return n?e.call(this,i.ErrorCode.MODULE_DEPENDENCY_MISSING,{name:t,dependency:n},"The ".concat(t," module requires the ").concat(n," module to be included as well."))||this:e.call(this,i.ErrorCode.MODULE_MISSING,{name:t},"The ".concat(t," module is required to play this stream."))||this}return r(t,e),t}(n(3336).PlayerError)},22374:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerModuleMissingWarning=void 0;var i=n(25926),o=n(4224);t.PlayerModuleMissingWarning=function(e){function t(t,n){return e.call(this,o.WarningCode.MODULE_MISSING,n,{moduleName:t})||this}return r(t,e),t}(i.PlayerWarning)},4524:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferRangeHelper=t.MultiRange=void 0,t.rangeFixedValue=c,t.areDisjoint=function(e,t){return c(e.end)<c(t.start)||c(e.start)>c(t.end)},t.isSurrounding=function(e,t){return c(t.start)>c(e.start)&&c(t.end)<c(e.end)},t.isOverlapping=function(e,t){return c(e.start)>=c(t.start)&&c(e.start)<=c(t.end)||c(e.end)>=c(t.start)&&c(e.end)<=c(t.end)},t.isFullyIncluded=d,t.isInTimeRanges=f,t.getBufferedRanges=function(e){var t=[],n=null==e?void 0:e.buffered;if(n)for(var r=0;r<n.length;r++)t.push({start:n.start(r),end:n.end(r)});return t},t.convertRangeToTimeMode=function(e,t,n){var r,o=(0,s.toSeconds)(null!=(r=null==t?void 0:t.getTime())?r:0);return n===i.TimeMode.RelativeTime&&(o=-o),{start:e.start+o,end:e.end+o}};var i=n(20213),o=n(44468),a=n(76399),s=n(89927),u=100,l=function(){function e(e,t,n){this.start=e,this.end=t,this.hits=n||1}return e.prototype.getHits=function(){return this.hits},e.prototype.getStart=function(){return this.start},e.prototype.getEnd=function(){return this.end},e.prototype.kA=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=i.start,a=i.end,s=i.hits,u=this.start<o&&this.end>a,l=this.start<o&&this.end>o&&this.end<a,c=this.start>o&&this.start<a&&this.end>a,d=this.start>o&&this.end<a,f=this.start===o&&this.end<a,p=this.start===o&&this.end>a,h=this.start<o&&this.end===a,y=this.start>o&&this.end===a,v=this.start===o&&this.end===a;u||p||h||v?n.push(new e(o,a,s+1)):l||f?(n.push(new e(o,this.end,s+1)),n.push(new e(this.end,a,s))):c||y?(n.push(new e(o,this.start,s)),n.push(new e(this.start,a,s+1))):d?(n.push(new e(o,this.start,s)),n.push(new e(this.start,this.end,s+1)),n.push(new e(this.end,a,s))):n.push(new e(o,a,s))}return n},e.prototype.lA=function(t){for(var n=0;n<t.length&&!(this.end-this.start<=0);n++){var r=t[n],i=null;n+1<t.length&&(i=t[n+1]),this.start<r.start?(t.unshift(new e(this.start,Math.min(r.start,this.end))),n++,this.start=r.end):i&&i.start>this.start?(t.splice(n,0,new e(Math.max(r.end,this.start),Math.min(this.end,i.start))),this.start=i.end,n++):null===i&&this.end>r.end&&(t.push(new e(Math.max(r.end,this.start),this.end)),this.start=this.end)}return t},e.prototype.intersect=function(e){if(0===e.length)return[this];var t=this.kA(e);return this.lA(t)},e}();function c(e){return void 0===e||isNaN(e)?0:Math.round(e*u)/u}function d(e,t){return c(t.start)<=c(e.start)&&c(t.end)>=c(e.end)}function f(e,t,n){void 0===n&&(n=0);for(var r=0,i=e;r<i.length;r++){var o=i[r],a=Math.min(Math.round(1e3*o.start)/1e3,o.start),s=Math.max(Math.round(1e3*o.end)/1e3,o.end);if(t>=a&&t<=s-n)return!0}return!1}t.MultiRange=l,t.BufferRangeHelper=function(){function e(){}return e.mergeRanges=function(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=!0),e.length<1)return e;e.sort(function(e,t){return e.start-t.start});var i=[];i.push(n?r({},e[0]):e[0]);for(var o=1;o<e.length;o++){var a=i.slice(-1)[0],s=e[o];if(!d(s,a)){var u=a.end>=s.start-t,l=a.end<=s.end+t;u&&l?i[i.length-1].end=s.end:i.push(n?r({},s):s)}}return i},e.excludeTimeRange=function(e,t){return e.filter(function(e){return!d(e,t)}).reduce(function(e,n){var i=function(e,t){return e>t.start&&e<=t.end}(t.start,n),o=function(e,t){return e<t.end&&e>=t.start}(t.end,n);return i&&e.push(r(r({},n),{end:t.start})),o&&e.push(r(r({},n),{start:t.end})),i||o||e.push(r({},n)),e},[])},e.getRangesFromQueue=function(t,n){void 0===n&&(n=0);for(var r=[],i=Array.isArray(t)?new a.ArrayIterator(t):t;i.hasNext();){var o=i.next();if(!o.isInit()){var s={start:o.getPlaybackTime()||0,end:0};s.end=s.start+o.getDuration(),r.push(s)}}return e.mergeRanges(r,n,!1)},e.getMultiRanges=function(e){var t=[],n=0;for(var r in e)if(e.hasOwnProperty(r)){n++;for(var i=e[r],o=0;o<i.length;o++)t=new l(i[o].start,i[o].end).intersect(t)}return[t,n]},e.findGapsInRanges=function(e){for(var t=[],n=0;n<e.length-1;n++)e[n+1].start-e[n].end>0&&t.push({start:e[n].end,end:e[n+1].start});return t},e.getCommonBufferedRanges=function(t){var n=[],r=e.getMultiRanges(t),i=r[0],o=r[1];for(var a in i)i.hasOwnProperty(a)&&i[a].getHits()===o&&n.push(i[a]);return n},e.getCommonBufferedTime=function(t,n,r,i){for(var o=-1,a=e.getCommonBufferedRanges(n),s=0;s<a.length;s++)if(a[s].getStart()<=r&&a[s].getEnd()>=r)return r;for(var u in n)if(n.hasOwnProperty(u)){if(n[u].length<1)return null;var l=n[u];for(s=0;s<l.length&&!(l[s].start>=o&&(o=l[s].start,l[s].start>=r));s++);}return -1===o?null:o<r&&r-o<i?r:(t.debug("common time diff [s]",r-o),o)},e.isInBufferedRange=function(e,t){var n=Object.keys(e);return!!n.length&&n.every(function(n){return f(e[n],t)})},e.getTotalCommonBufferLength=function(e){return this.getCommonBufferedRanges(e).reduce(function(e,t){return e+t.getEnd()-t.getStart()},0)},e.getBufferLevel=function(e,t,n){if(!e||!e.length)return 0;var r=0;return n===o.BufferType.ForwardDuration?r=e[e.length-1].end-t:n===o.BufferType.BackwardDuration&&(r=t-e[0].start),Math.max(r,0)},e}()},17564:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSettings=void 0;var r=n(44468),i=n(85434);t.BufferSettings=function(){function e(e,t){this.logger=t,this.Efb=JSON.parse(JSON.stringify(e)),this.Ffb={},this.Hfb(this.Ffb,this.Efb),this.Gfb={currentDistanceToLiveEdge:1/0,minimumBufferLength:1,streamDuration:1/0}}return e.prototype.Hfb=function(e,t){Object.keys(t).forEach(function(t){e[t]={}})},e.prototype.setTargetLevel=function(e,t,n){"number"==typeof t&&(this.Efb[n][e]=t)},e.prototype.Ifb=function(e,t,n){this.Ffb[n][e]=t},e.prototype.setTargetBufferLevelConstraints=function(e){this.Gfb=e},e.prototype.setDistanceToLiveEdge=function(e){this.Gfb.currentDistanceToLiveEdge=e},e.prototype.getTargetLevel=function(e,t){var n,i,o,a,s=null!=(i=null==(n=this.Efb[t])?void 0:n[e])?i:1/0,u=null!=(a=null==(o=this.Ffb[t])?void 0:o[e])?a:1/0,l=this.Gfb.minimumBufferLength,c=this.Gfb.streamDuration;return Math.max(Math.min(s,u,e===r.BufferType.BackwardDuration?1/0:this.Gfb.currentDistanceToLiveEdge,c),l)},e.prototype.getForwardTargetLevel=function(e){return void 0===e&&(e=r.MediaType.Video),this.getTargetLevel(r.BufferType.ForwardDuration,e)},e.prototype.getBackwardTargetLevel=function(e){return void 0===e&&(e=r.MediaType.Video),this.getTargetLevel(r.BufferType.BackwardDuration,e)},e.prototype.Jfb=function(e){var t,n=i.MimeTypeHelper.isAudio(e)?r.MediaType.Audio:r.MediaType.Video;return(t={})[r.BufferType.BackwardDuration]=this.getBackwardTargetLevel(n),t[r.BufferType.ForwardDuration]=this.getForwardTargetLevel(n),t},e.prototype.Kfb=function(e,t,n){var i,o=n/2,a=n/2,s=this.Jfb(e),u=s[r.BufferType.BackwardDuration],l=s[r.BufferType.ForwardDuration],c=n>=2*t,d=l/(l+u);if(!isFinite(u)&&isFinite(l)?(o=t,a=n-t):isFinite(u)&&!isFinite(l)?(o=n-t,a=t):isFinite(u)&&isFinite(l)&&(o=n*d,a=n*(1-d)),c&&o<t){var f=t-o;o+=f,a-=f}return(i={})[r.BufferType.BackwardDuration]=a,i[r.BufferType.ForwardDuration]=o,i},e.prototype.adjustMaxBufferLevels=function(e,t,n){var i=this.Kfb(t,e,n-e),o=i[r.BufferType.BackwardDuration],a=i[r.BufferType.ForwardDuration];this.logger.debug("Setting new target buffer levels to ".concat(a," (forward) and ").concat(o," (backward)")),this.Ifb(r.BufferType.ForwardDuration,a,r.MediaType.Audio),this.Ifb(r.BufferType.ForwardDuration,a,r.MediaType.Video),this.Ifb(r.BufferType.BackwardDuration,o,r.MediaType.Audio),this.Ifb(r.BufferType.BackwardDuration,o,r.MediaType.Video)},e}()},66790:function(e,t){"use strict";var n,r,i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.DrmSetupError=t.TransmuxingRejectionReason=t.SegmentVerificationResult=t.APPLE_KEYFORMAT_DELIVERY=t.HlsEncryptionMethods=t.HlsEncryptionMethod=t.SOURCE_BUFFER_APPEND_STATUS=t.RepresentationType=void 0,function(e){e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.SUBTITLE=3]="SUBTITLE"}(n||(t.RepresentationType=n={})),function(e){e[e.FAILURE=0]="FAILURE",e[e.QUOTA_EXCEEDED=1]="QUOTA_EXCEEDED",e[e.SUSPENDED=2]="SUSPENDED"}(r||(t.SOURCE_BUFFER_APPEND_STATUS=r={})),function(e){e.NONE="NONE",e.AES_128="AES-128",e.SAMPLE_AES="SAMPLE-AES",e.SAMPLE_AES_CTR="SAMPLE-AES-CTR"}(i||(t.HlsEncryptionMethod=i={})),t.HlsEncryptionMethods=Object.keys(i).map(function(e){return i[e]}),t.APPLE_KEYFORMAT_DELIVERY="com.apple.streamingkeydelivery",function(e){e.Publish="publish",e.Drop="drop",e.Park="park"}(o||(t.SegmentVerificationResult=o={})),function(e){e.INVALID_TS_SEGMENT="Invalid TS segment, could not extract segment information",e.TRANSMUXING_ABORTED="Transmuxing was aborted as it is no longer needed"}(a||(t.TransmuxingRejectionReason=a={})),function(e){e.CANCELLED="Loading was cancelled for the DRM source",e.MISSING_CONFIGURATION="DRM is not configured"}(s||(t.DrmSetupError=s={}))},56481:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispose=function(e){e&&e.dispose()}},86969:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.util=t.Player=void 0;var o=n(43662);Object.defineProperty(t,"Player",{enumerable:!0,get:function(){return o.Player}}),i(n(20213),t),t.util=n(64681),t.default=o.Player},45202:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0;var r=n(4081);function i(e){return e.hasAttribute("src")&&null!=e.src}t.Environment=function(){function e(){}return Object.defineProperty(e,"hostname",{get:function(){return this._hostname||(this._hostname=r.default.location.hostname),this._hostname},set:function(e){this._hostname=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"baseUrl",{get:function(){return e.getURL()},enumerable:!1,configurable:!0}),e.checkDomainLock=function(){if(0===this.domains.length||"localhost"===this.hostname)return!0;for(var e=0,t=this.domains.split(",");e<t.length;e++){var n=t[e],r=n.substring(2),i=this.hostname.length-r.length,o=this.hostname.indexOf(r),a=-1!==o&&o===i,s=n.startsWith("*.")&&a;if(n===this.hostname||s)return!0}return!1},e.getURL=function(){var e=this.getCurrentScriptURL();return e.lastIndexOf("/")>-1?e.substring(0,e.lastIndexOf("/")+1):""},e.generateExceptionStack=function(){try{omgwtfnodocumentdotcurrentscript}catch(e){return e.stack}},e.getCurrentScriptFallback=function(){var e=this.generateExceptionStack();if(!e)return"";for(var t=-1!==e.indexOf(" at ")?" at ":"@";-1!==e.indexOf(t);)e=e.substring(e.indexOf(t)+t.length);var n=e.lastIndexOf(":",e.lastIndexOf(":")-1);return e.substring(e.indexOf("(")+1,n)},e.getCurrentScriptURL=function(){var e,t;if(null==(e=r.default.document)?void 0:e.currentScript){var n=r.default.document.currentScript.src;return n.indexOf("modules/bitmovinplayer-core.js")>-1?n.substring(0,n.lastIndexOf("modules/bitmovinplayer-core.js")):n}for(var o=(null==(t=r.default.document)?void 0:t.getElementsByTagName("script"))||[],a=o.length,s=0;s<a;s++)if(i(o[s])){if(o[s].src.indexOf("bitmovinplayer.js")>-1)return o[s].src;if(o[s].src.indexOf("modules/bitmovinplayer-core.js")>-1)return o[s].src.substring(0,o[s].src.indexOf("modules/bitmovinplayer-core.js"))}return this.getCurrentScriptFallback()||(o.length>0&&i(o[a-1])?o[a-1].src:"")},e.VERSION_NUMBER="8.275.0",e.idPrefix="bitmovinplayer-",e.domains="",e.modules={playerui:null},e}()},9768:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UI_SEEK_ISSUER_NAME=t.UI_ISSUER_NAME=t.STARTUP_ISSUER_NAME=t.RECOVERY_ISSUER_NAME=t.MEDIA_ELEMENT_ISSUER_NAME=t.INTERNAL_ISSUER_NAME=t.API_ISSUER_NAME=t.ADVERTISING_RESTORE_ISSUER_NAME=t.ADVERTISING_ISSUER_NAME=void 0,t.isUserInitiatedPause=function(e){switch(e){case void 0:case t.ADVERTISING_ISSUER_NAME:case t.ADVERTISING_RESTORE_ISSUER_NAME:case t.INTERNAL_ISSUER_NAME:case t.MEDIA_ELEMENT_ISSUER_NAME:case t.RECOVERY_ISSUER_NAME:case t.STARTUP_ISSUER_NAME:case t.UI_SEEK_ISSUER_NAME:return!1;default:return!0}},t.ADVERTISING_ISSUER_NAME="advertising-api",t.ADVERTISING_RESTORE_ISSUER_NAME="advertising-restore",t.API_ISSUER_NAME="api",t.INTERNAL_ISSUER_NAME="internal",t.MEDIA_ELEMENT_ISSUER_NAME="media-element",t.RECOVERY_ISSUER_NAME="error-recovery",t.STARTUP_ISSUER_NAME="startup",t.UI_ISSUER_NAME="ui",t.UI_SEEK_ISSUER_NAME="ui-seek"},3714:function(e,t){"use strict";var n,r,i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentLocationChangedReason=t.LatencyMode=t.AdInteractionType=t.AdQuartile=t.MetadataType=t.PlayerEvent=void 0,function(e){e.Ready="ready",e.Play="play",e.Playing="playing",e.Paused="paused",e.Seek="seek",e.Seeked="seeked",e.TimeShift="timeshift",e.TimeShifted="timeshifted",e.VolumeChanged="volumechanged",e.Muted="muted",e.Unmuted="unmuted",e.PlayerResized="playerresized",e.PlaybackFinished="playbackfinished",e.Error="error",e.Warning="warning",e.StallStarted="stallstarted",e.StallEnded="stallended",e.AudioChanged="audiochanged",e.AudioAdded="audioadded",e.AudioRemoved="audioremoved",e.VideoQualityChanged="videoqualitychanged",e.AudioQualityChanged="audioqualitychanged",e.VideoDownloadQualityChange="videodownloadqualitychange",e.AudioDownloadQualityChange="audiodownloadqualitychange",e.VideoDownloadQualityChanged="videodownloadqualitychanged",e.AudioDownloadQualityChanged="audiodownloadqualitychanged",e.VideoPlaybackQualityChanged="videoplaybackqualitychanged",e.AudioPlaybackQualityChanged="audioplaybackqualitychanged",e.TimeChanged="timechanged",e.CueParsed="cueparsed",e.CueEnter="cueenter",e.CueUpdate="cueupdate",e.CueExit="cueexit",e.SegmentPlayback="segmentplayback",e.Metadata="metadata",e.MetadataParsed="metadataparsed",e.MetadataChanged="metadatachanged",e.VideoAdaptation="videoadaptation",e.AudioAdaptation="audioadaptation",e.DownloadFinished="downloadfinished",e.SegmentRequestFinished="segmentrequestfinished",e.AdManifestLoaded="admanifestloaded",e.AdStarted="adstarted",e.OverlayAdStarted="overlayadstarted",e.AdQuartile="adquartile",e.AdSkipped="adskipped",e.AdClicked="adclicked",e.AdInteraction="adinteraction",e.AdLinearityChanged="adlinearitychanged",e.AdBreakStarted="adbreakstarted",e.AdBreakFinished="adbreakfinished",e.RestoringContent="restoringcontent",e.AdFinished="adfinished",e.AdError="aderror",e.VRViewingDirectionChange="vrviewingdirectionchange",e.VRViewingDirectionChanged="vrviewingdirectionchanged",e.VRStereoChanged="vrstereochanged",e.CastAvailable="castavailable",e.CastStopped="caststopped",e.CastStart="caststart",e.CastStarted="caststarted",e.CastWaitingForDevice="castwaitingfordevice",e.SourceLoaded="sourceloaded",e.SourceUnloaded="sourceunloaded",e.PeriodSwitch="periodswitch",e.PeriodSwitched="periodswitched",e.DVRWindowExceeded="dvrwindowexceeded",e.SubtitleAdded="subtitleadded",e.SubtitleRemoved="subtitleremoved",e.ShowAirplayTargetPicker="showairplaytargetpicker",e.AirplayAvailable="airplayavailable",e.AirplayChanged="airplaychanged",e.Destroy="destroy",e.PlaybackSpeedChanged="playbackspeedchanged",e.DurationChanged="durationchanged",e.ViewModeChanged="viewmodechanged",e.ModuleReady="moduleready",e.SubtitleEnable="subtitleenable",e.SubtitleEnabled="subtitleenabled",e.SubtitleDisable="subtitledisable",e.SubtitleDisabled="subtitledisabled",e.VideoQualityAdded="videoqualityadded",e.VideoQualityRemoved="videoqualityremoved",e.AudioQualityAdded="audioqualityadded",e.AudioQualityRemoved="audioqualityremoved",e.TargetLatencyChanged="targetlatencychanged",e.LatencyModeChanged="latencymodechanged",e.LicenseValidated="licensevalidated",e.DrmLicenseAdded="drmlicenseadded",e.AspectRatioChanged="aspectratiochanged",e.VisibilityChanged="visibilitychanged",e.ContentLocationChanged="contentlocationchanged"}(n||(t.PlayerEvent=n={})),function(e){e.CUETAG="CUETAG",e.DATERANGE="DATERANGE",e.EVENT_STREAM="EVENT-STREAM",e.CUSTOM="CUSTOM",e.SCTE="SCTE",e.ID3="ID3",e.EMSG="EMSG",e.CAST="CAST"}(r||(t.MetadataType=r={})),function(e){e.FIRST_QUARTILE="firstQuartile",e.MIDPOINT="midpoint",e.THIRD_QUARTILE="thirdQuartile"}(i||(t.AdQuartile=i={})),function(e){e.Vpaid="vpaid"}(o||(t.AdInteractionType=o={})),function(e){e.Idle="idle",e.Catchup="catchup",e.Fallback="fallback",e.Suspended="suspended"}(a||(t.LatencyMode=a={})),function(e){e.Failover="failover",e.ContentSteering="contentsteering"}(s||(t.ContentLocationChangedReason=s={}))},20213:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.util=void 0,i(n(3714),t),t.util=n(29960),i(n(62756),t),i(n(44468),t),i(n(21281),t),i(n(3336),t),i(n(40306),t),i(n(4224),t),i(n(25926),t),i(n(95880),t),i(n(22374),t),i(n(29669),t)},88210:function(e,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.EnumerableValue=function(e,t){return t.addInitializer(function(){var e=Object.getOwnPropertyDescriptor(this,t.name)||Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this),t.name);e&&Object.defineProperty(this,t.name,n(n({},e),{enumerable:!0}))}),e}},29691:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__runInitializers||function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},o=this&&this.__esDecorate||function(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=r.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var y in r)h[y]="access"===y?{}:r[y];for(var y in r.access)h.access[y]=r.access[y];h.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,n[p])("accessor"===u?{get:d.get,set:d.set}:d[l],h);if("accessor"===u){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(s=a(v.get))&&(d.get=s),(s=a(v.set))&&(d.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===u?i.unshift(s):d[l]=s)}c&&Object.defineProperty(c,r.name,d),f=!0},a=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.InternalPlayer=t.LOAD_CANCELLED_BY_DESTROY_MESSAGE=t.LOAD_CANCELLED_MESSAGE=void 0;var s,u,l=n(88052),c=n(62756),d=n(90571),f=n(78760),p=n(40306),h=n(3336),y=n(25926),v=n(4224),E=n(48143),g=n(80813),m=n(56481),S=n(45202),_=n(9768),b=n(3714),T=n(51289),P=n(89279),A=n(96859),M=n(13531),O=n(50172),R=n(69957),I=n(44468),C=n(72786),N=n(53031),L=n(29242),D=n(52546),w=n(83913),k=n(70962),U=n(69251),V=n(93907),B=n(23145),K=n(91565),H=n(7387),F=n(98714),j=n(23690),x=n(87827),J=n(85648),W=n(68925),G=n(63879),Y=n(69573),q=n(15971),z=n(30012),X=n(21513),Q=n(61089),Z=n(93204),$=n(47993),ee=n(34841),et=n(85434),en=n(15487),er=n(28334),ei=n(72537),eo=n(89927),ea=n(88844),es=n(23068),eu=n(70850),el=n(2079);!function(e){e[e.NONE=0]="NONE",e[e.MUTED_PLAY=1]="MUTED_PLAY",e[e.UNMUTED_PLAY=2]="UNMUTED_PLAY"}(s||(s={})),function(e){e.DROPPED_VIDEO_FRAMES="droppedVideoFrames",e.TOTAL_STALLED_TIME="totalStalledTime"}(u||(u={})),t.LOAD_CANCELLED_MESSAGE="Load call was cancelled by another load or unload call",t.LOAD_CANCELLED_BY_DESTROY_MESSAGE="Load was cancelled as the player is being destroyed";var ec=function(){var e,n,U,Y=[];return e=function(){function e(e,t,n){var r=this;if(this.yJ=i(this,Y),this.DJ=null,this.EJ=null,this.WK=Promise.resolve(),this.hK=["aHR0cHM6Ly9saWNlbnNpbmcuYml0bW92aW4uY29tL2xpY2Vuc2luZw==","aHR0cHM6Ly9zdHJlYW1pbmcubXBlZy1kYXNoLmNvbS9hY2Nlc3M=","aHR0cHM6Ly9saWNlbnNpbmcucGFuZG9yYXN0cmVhbWluZy5jb20vbGljZW5zaW5n","aHR0cHM6Ly9iaXRtb3Zpbi5zdGEuc2N0di5jaC9saWNlbnNpbmc="].map(function(e){return atob(e)}),this.iK=["aHR0cHM6Ly9saWNlbnNpbmcuYml0bW92aW4uY29tL2ltcHJlc3Npb24=","aHR0cHM6Ly9zdHJlYW1pbmcubXBlZy1kYXNoLmNvbS9wbGF5YmFjaw==","aHR0cHM6Ly9saWNlbnNpbmcucGFuZG9yYXN0cmVhbWluZy5jb20vaW1wcmVzc2lvbg==","aHR0cHM6Ly9iaXRtb3Zpbi5zdGEuc2N0di5jaC9pbXByZXNzaW9u"].map(function(e){return atob(e)}
1),this.jK=Promise.resolve(),this.kK=Promise.resolve(),this.NK=function(e){var t,n,i,o;if(void 0===e&&(e=_.API_ISSUER_NAME),null==(n=null==(t=r.CJ)?void 0:t.bitdashPlayer)?void 0:n.unload){var a=Promise.resolve();eE(e)||(a=r.RL(),r.OM(),r.PK()),null==(o=null==(i=r.CJ)?void 0:i.eventHandler)||o.clearEventsOfType(b.PlayerEvent.TimeChanged),r.mK=!1,r.manifestApi=void 0,r.CJ.context&&ev(r.CJ.context),r.WK=r.WK.then(function(){return a}).then(function(){var t,n;return null==(n=null==(t=r.CJ)?void 0:t.bitdashPlayer)?void 0:n.unload(e).then(function(){var t;return null==(t=r.yJ)?void 0:t.serviceManager.maybeCall(g.ServiceName.DrmService,function(t){return t.shutdownIfNeeded(eE(e))})}).then(function(){var t,n,i,o,a;r.gK&&(null==(t=r.gK)||t.removePosterImage(),null==(n=r.gK)||n.stopVisibilityTracking()),(null==(o=null==(i=r.CJ)?void 0:i.context)?void 0:o.sourceContext)&&(eE(e)||eg(e)?r.CJ.context.sourceContext.isAd&&r.OK():null==(a=r.yJ)||a.serviceManager.removeNonPlayerScopeServices(),r.CJ.context.sourceContext.dispose())})})}return r.WK},this.setAudio=function(e){var t;r.CK()&&(null==(t=r.CJ.bitdashPlayer)||t.setAudio(e))},this.HL=function(e){return void 0===e&&(e=r.getSource()),!!e&&!!e.vr&&(0,X.getCapabilities)().isIOS},this.qM=function(e,t,n){if(void 0===n&&(n={}),e)r.fireEvent(b.PlayerEvent.LicenseValidated,{data:n});else{r.bK=!1,r.eK=r.fL(t);var i=function(){(0,ea.clearTimeoutIfDefined)(o),r.off(b.PlayerEvent.SourceLoaded,i),r.off(b.PlayerEvent.SourceUnloaded,i),r.YK&&r.YK.fireError(r.eK)},o=window.setTimeout(i,500);r.on(b.PlayerEvent.SourceLoaded,i),r.on(b.PlayerEvent.SourceUnloaded,i),r.unload()}},this.sM=function(){var e,t,n;"none"!==(null==(n=null==(t=null==(e=r.CJ)?void 0:e.videoElement)?void 0:t.style)?void 0:n.getPropertyValue("display"))||r.CJ.vrHandler||r.CJ.videoElement.style.setProperty("display","block","important")},this.tM=function(){r.CJ&&r.CJ.videoElement&&r.CJ.videoElement.style&&r.CJ.videoElement.style.setProperty("display","none","important")},this.FM=function(){var e=r.CJ.configuration.playback().subtitleLanguage;return e?r.uM(e,r.listSubtitles(),function(e){return r.enableSubtitle(e,!0,!1)}):Promise.resolve()},this.GM=function(){var e=r.CJ.configuration.playback().audioLanguage;return e?r.uM(e,r.getAvailableAudio(),r.setAudio):Promise.resolve()},this.LM=function(){var e;if(!(null==(e=r.yJ.sourceContext)?void 0:e.isAd)&&(r.NK(),r.zJ)){var t=r.zJ.getElementsByClassName(S.Environment.idPrefix+"poster")[0];t&&(t.style.display="block")}},this.NM=function(){if(r.IJ){r.GJ.tweaks().hasOwnProperty("impressionServer")&&(r.iK.indexOf(r.GJ.tweaks().impressionServer)>-1?r.IJ.setImpressionServerUrl(r.GJ.tweaks().impressionServer):r.BJ.warn("Invalid impression server",new h.PlayerError(p.ErrorCode.SETUP_INVALID_IMPRESSION_SERVER,{"impression-server":r.GJ.tweaks().impressionServer})));var e=r.GJ.get("network");r.IJ.issue(r.getConfig().key,r.getPlayerType(),null==e?void 0:e.requestApi).then(function(){},function(){})}},this.RM=function(e,t){if(r.isCastingToCAF()&&t.connectionState===J.ConnectionState.Disconnected&&r.EK()&&r.GK().isLinearAdActive()){var n=r.GK().playerAdvertisingApi;r.SM(n)}},this.TM=function(){var e,t=em(r.yJ);(null==(e=r.GK())?void 0:e.isLinearAdActive())||r.yJ.sourceContext.isAd?r.fireEvent(b.PlayerEvent.PlaybackFinished):r.nK||r.pK||setTimeout(function(){r.pK=Promise.resolve().then(function(){var e,t;return null!=(t=null==(e=r.GK())?void 0:e.playPostRollAds())?t:Promise.resolve()}).then(function(){var e;return null!=(e=null==t?void 0:t.playPostRollAds())?e:Promise.resolve()}).then(function(){r.pK=null,r.UM()})})},this.UM=function(){r.IJ&&r.IJ.reset(),r.nK=!0,r.fireEvent(b.PlayerEvent.PlaybackFinished)},this.VM=function(){!(r.EK()&&r.getAds()&&r.getAds().isLinearAdActive())&&r.nK&&(r.nK=!1),r.dK=r.WM(r.dK)},Object.keys((0,X.getCapabilities)()).length||(0,X.default)().dispatch((0,K.initializeCapabilities)()),this.zJ=e,this.id=t,this.AJ=n,this.mK=!1,this.BJ=new M.Logger(k.DefaultSettings),this.FJ=new ei.StorageHandler((0,X.getCapabilities)().isLocalStorageAvailable),this.GJ=null,this.HJ=NaN,this.LJ=new L.PlayerFactory,this.YK=new T.EventHandler(this.BJ,this.AJ,this.id),this.cK=s.NONE,l.ModuleManager.has(c.ModuleName.DRM)){var o=l.ModuleManager.get(c.ModuleName.DRM).DRMDetectorService;this.ZK=new o,this.drmApi=l.ModuleManager.get(c.ModuleName.DRM).createDrmApi(function(){var e;return null==(e=r.yJ)?void 0:e.serviceManager},this.BJ)}this.rK=!1,this.MM()}return e.prototype.zK=function(){return this.yJ&&this.yJ.store&&(0,x.isBeingDestroyed)(this.yJ.store.getState().player)||!1},e.prototype.AK=function(){return this.yJ&&this.yJ.store&&(0,x.isDestroyed)(this.yJ.store.getState().player)||!1},e.prototype.BK=function(){return!!(this.CJ&&this.CJ.bitdashPlayer)&&!this.AK()},e.prototype.CK=function(){return this.DK()&&this.mK},e.prototype.DK=function(){return this.BK()&&!!this.CJ&&!!this.CJ.bitdashPlayer},e.prototype.EK=function(){return!!(this.CJ&&this.CJ.adController)},e.prototype.FK=function(){l.ModuleManager.get(c.ModuleName.Advert
1ising);var e=l.ModuleManager.get(c.ModuleName.AdvertisingCore);this.CJ.adController=new e.AdvertisingController(this,this.CJ.context),this.YK&&this.YK.dispatchEvent(b.PlayerEvent.ModuleReady,{name:c.ModuleName.Advertising})},e.prototype.GK=function(){return this.EK()?this.CJ.adController:null},e.prototype.HK=function(){if(!this.BK()||!(null==(e=this.CJ)?void 0:e.vrHandler))return!1;var e,t=this.CJ.vrHandler.getState();return!!t&&"error"!==t},e.prototype.IK=function(e,t){var n;if(!e||!t)return null;if(t.streaming===I.StreamType.Dash)n=e.dash;else if(t.streaming===I.StreamType.Hls)n=e.hls;else if(t.streaming===I.StreamType.Progressive)n=e.progressive;else if(t.streaming===I.StreamType.Smooth)n=e.smooth;else{if(t.streaming!==I.StreamType.Whep)return null;n=e.whep}return n?{type:t.streaming,url:n,title:e.title,description:e.description,vr:e.vr,config:e}:null},e.prototype.JK=function(){var e=new E.ServiceManager;return new N.PlayerContext({container:this.zJ,eventHandler:this.CJ.eventHandler,config:this.CJ.configuration.get(),storedConfig:this.FJ,settings:this.CJ.configuration.getSettings(),logger:this.BJ,serviceManager:e,internalPlayer:this,segmentInfoService:this.sK,segmentPrefetchingService:this.tK,segmentCacheService:this.uK,adRestorationOptimizationService:this.vK})},e.prototype.KK=function(e,t){var n=this;if(!this.CJ)return Promise.resolve();var r=this.CJ.configuration;r.logs&&r.logs().level&&this.setLogLevel(r.logs().level),this.BJ.setConfig(r);var i=this.aK;this.CJ.videoElement&&(null!=i||(i=this.CJ.videoElement.getWrappedElement()),this.CJ.videoElement.dispose()),this.yJ.setVideoElement(null!=i?i:document.createElement("video"));var o={context:this.yJ,playerInstance:this.CJ,container:this.zJ,config:r,source:e,forceTech:t,styleManager:this.g
1K};return this.LK(),this.LJ.getInstance(o).then(function(e){var t,r,i;return n.AK()?null==(t=e.bitdashPlayer)?void 0:t.release().then(function(){e.videoElement&&e.videoElement.dispose(),e.bitdashPlayer=null,e.technology=null,e.videoElement=null}):(n.CJ.context=e.context,n.CJ.logger=e.logger,n.CJ.bitdashPlayer=e.bitdashPlayer,n.CJ.technology=e.technology,n.CJ.videoElement=e.videoElement,n.CJ.hasInitStarted=!0,n.CJ.playerConfig.visibility="visible",n.MK(n.CJ.context),!n.fK&&n.zJ&&(n.fK=new el.ViewModeHandler(n.CJ,n.zJ,null!=(i=null==(r=n.YK)?void 0:r.getEventFunction())?i:function(){},n.HL)),n.vM(),Promise.resolve())})},e.prototype.LK=function(){this.xK&&this.xK(),this.yK&&this.yK(),this.xK=(0,Z.subscribe)(this.yJ.store)(function(e){return(0,x.getIsStopped)((0,x.getPlayerState)(e))},this.TM,function(e){return!0===e}),this.yK=(0,Z.subscribe)(this.yJ.store)(function(e){return(0,x.getRemoteControlState)((0,x.getPlayerState)(e))},this.RM,function(){return!0})},e.prototype.MK=function(e){this.EK()&&this.GK().updatePlayerContext(e),e.segmentInfoService&&e.segmentInfoService.updatePlayerContext(e),e.segmentPrefetchingService&&e.segmentPrefetchingService.updatePlayerContext(e),e.segmentCacheService&&e.segmentCacheService.updatePlayerContext(e),e.adRestorationOptimizationService&&e.adRestorationOptimizationService.updatePlayerContext(e)},e.prototype.setVideoQuality=function(e){var t;this.CK()&&(e=String(e)||"auto",null==(t=this.CJ.bitdashPlayer)||t.setVideoQuality(e))},e.prototype.setAudioQuality=function(e){var t;this.CK()&&(e=String(e)||"auto",null==(t=this.CJ.bitdashPlayer)||t.setAudioQuality(e))},e.prototype.OK=function(){this.CJ.context.serviceManager.delete(g.ServiceName.SourceStoreService,this.CJ.context.sourceContext.sourceIdentifier)},e.prototype.PK=function(){var e,t,n,r,i,o;null==(t=null==(e=this.CJ.context)?void 0:e.adRestorationOptimizationService)||t.reset(),null==(r=null==(n=this.CJ.context)?void 0:n.segmentPrefetchingService)||r.reset(),null==(o=null==(i=this.yJ)?void 0:i.serviceManager)||o.maybeCall(g.ServiceName.ManifestCachingService,function(e){return e.clear()})},e.prototype.unload=function(e){var t,n,r,i,o=this;return void 0===e&&(e=_.API_ISSUER_NAME),this.lK=null,eE(e)&&(this.XK=void 0),eE(e)?(this.PM(u.DROPPED_VIDEO_FRAMES,null!=(n=null==(t=this.CJ.bitdashPlayer)?void 0:t.getDroppedVideoFrames())?n:0),this.PM(u.TOTAL_STALLED_TIME,null!=(i=null==(r=this.CJ.bitdashPlayer)?void 0:r.getTotalStalledTime())?i:0)):(this.DJ=null,this.EJ=null),this.jK.finally(function(){return o.NK(e)})},e.prototype.isCasting=function(){var e;return!!(this.DK()&&eh(this.CJ.bitdashPlayer)&&this.isCastAvailable())&&!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isCasting())},e.prototype.castVideo=function(){var e;this.DK()&&eh(this.CJ.bitdashPlayer)&&this.CJ.bitdashPlayer.isCastAvailable()&&(null==(e=this.CJ.bitdashPlayer)||e.castVideo())},e.prototype.isCastAvailable=function(){return this.DK()&&eh(this.CJ.bitdashPlayer)&&this.CJ.bitdashPlayer.isCastAvailable()},e.prototype.seek=function(e,t){if(void 0===t&&(t=_.API_ISSUER_NAME),this.EK()&&this.GK().isLinearAdActive()||!this.CK())return!1;if((null==(n=this.XK)?void 0:n.seeking)&&ey(t))return null==(r=this.yJ)||r.logger.debug("Seeking blocked by playback restrictions"),!1;var n,r,i,o,a,s=null==(i=this.CJ.bitdashPlayer)?void 0:i.isLive(),u=this.getSeekableRange(),l=-1!==u.start||-1!==u.end;return!!(!s||s&&this.CJ.settings.ENABLE_SEEK_FOR_LIVE)&&(this.QK()?(this.rK=!0,!!(null==(o=this.CJ.bitdashPlayer)?void 0:o.seek(e,t))):!!l&&(this.rK=!0,e=this.RK(e,u),eE(t)||this.isLive()||(e=Math.min(e,u.end-this.CJ.settings.SEEK_TO_END_OFFSET)),!!(null==(a=this.CJ.bitdashPlayer)?void 0:a.seek(e,t))))},e.prototype.QK=function(){return this.getPlayerType().includes(I.PlayerType.Native)},e.prototype.addMetadata=function(e,t){var n;return!(!this.DK()||!eh(this.CJ.bitdashPlayer))&&(null==(n=this.CJ.bitdashPlayer)?void 0:n.addMetadata(e,t))},e.prototype.RK=function(e,t){if(e<t.start||e>t.end){var n=e;e=Math.min(e=Math.max(e,t.start),t.end),this.BJ.debug("seek time out of seekable range ("+t.start+" to "+t.end+") correcting from "+n+" to "+e)}return e},e.prototype.isMuted=function(){var e;return this.DK()?!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isMuted()):this.CJ.muted},e.prototype.getAvailableAudio=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getAvailableAudio())?t:[]},e.prototype.setAspectRatio=function(e){this.gK?this.gK.setAspectRatio(e):this.BJ.debug("Unable to set aspect ratio: the style module is missing.")},e.prototype.SK=function(e){var t=this.listSubtitles().find(function(t){return t.id===e});t&&this.fireEvent(b.PlayerEvent.SubtitleEnabled,{subtitle:r({},t)})},e.prototype.TK=function(){var e=this;return Promise.all(this.listSubtitles().filter(function(e){return e.enabled}).map(function(t){return e.disableSubtitle(t.id,!1)}))},e.prototype.enableSubtitle=function(e,t,n){var i=this;void 0===t&&(t=!0),void 0===n&&(n=!0);var o=this.listSubtitles().find(function(t){return t.id===e});return this.CK()&&o&&!o.enabled?(n&&this.fireEvent(b.PlayerEvent.SubtitleEnable,{subtitle:r({},o)}),Promise.resolve().then(function(){return t?i.TK():Promise.all([!1])}).then(function(){var t;return!!(null==(t=i.CJ.bitdashPlayer)?void 0:t.enableSubtitle(e))}).then(function(t){return t&&i.SK(e),t})):Promise.resolve(!1)},e.prototype.disableSubtitle=function(e,t){var n=this;if(void 0===t&&(t=!0),this.CK()){var i=this.listSubtitles().find(function(t){return t.id===e});if(i&&i.enabled)return t&&this.fireEvent(b.PlayerEvent.SubtitleDisable,{subtitle:r({},i)}),this.CJ.bitdashPlayer?this.CJ.bitdashPlayer.disableSubtitle(e).then(function(e){return e&&n.fireEvent(b.PlayerEvent.SubtitleDisabled,{subtitle:r(r({},i),{enabled:!1})}),e}):Promise.resolve(!1)}return Promise.resolve(!1)},e.prototype.preload=function(){var e,t;
1this.CK()&&!this.isLive()&&(this.rK||this.HM(this.CJ.source,!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isLive())),null==(t=this.CJ.bitdashPlayer)||t.preload())},e.prototype.mute=function(e){var t;this.CJ.muted=!0,this.DK()&&(this.EK()&&!this.isMuted()&&this.GK().onVolumeChanged(0),this.KJ=this.getVolume(),null==(t=this.CJ.bitdashPlayer)||t.mute(e))},e.prototype.unmute=function(e){var t;if(this.CJ.muted=!1,this.DK()){if(this.EK()&&this.isMuted()){var n=isNaN(this.KJ)?100:this.KJ;this.KJ=NaN,this.GK().onVolumeChanged(n)}null==(t=this.CJ.bitdashPlayer)||t.unmute(e)}},e.prototype.listSubtitles=function(){var e,t;return this.CK()?a([],null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.listSubtitles().map(function(e){return r({},e)}))?t:[],!0):[]},e.prototype.getDuration=function(e){var t,n;return void 0===e&&(e=_.API_ISSUER_NAME),this.DK()?!eE(e)&&this.mL()?this.GK().getDuration():this.CK()&&null!=(n=null==(t=this.CJ.bitdashPlayer)?void 0:t.getDuration())?n:0:0},e.prototype.setVolume=function(e,t){var n;this.CJ.volume=e,this.DK()&&(null==(n=this.CJ.bitdashPlayer)||n.setVolume(e,t),this.EK()&&this.GK().onVolumeChanged(e))},e.prototype.timeShift=function(e,t){var n,r,i;(null==(n=this.XK)?void 0:n.seeking)&&ey(t)?null==(r=this.yJ)||r.logger.debug("Time shift blocked by playback restrictions"):this.CK()&&(e=this.UK(e),null==(i=this.CJ.bitdashPlayer)||i.timeShift(e,t),this.rK=!0)},e.prototype.UK=function(e){if(e<=0)return e;var t,n=(0,eo.toSeconds)(Date.now());this.QK()||(n-=null==(t=this.bufferApi.getLevel(I.BufferType.ForwardDuration,I.MediaType.Video))?void 0:t.targetLevel);var r=Math.min(e-n,0);return this.BJ.debug("Timeshifting to timestamp: ".concat(e,", converted relative offset is: ").concat(r)),r},e.prototype.setQueryParameters=function(e){var t;this.DK()&&(null==(t=this.CJ.bitdashPlayer)||t.setQueryParameters(e))},e.prototype.clearQueryParameters=function(){var e;this.DK()&&(null==(e=this.CJ.bitdashPlayer)||e.clearQueryParameters())},e.prototype.showAirplayTargetPicker=function(){var e;this.DK()&&(null==(e=this.CJ.bitdashPlayer)||e.showAirplayTargetPicker())},e.prototype.getVolume=function(){var e,t;return this.DK()?null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getVolume())?t:0:this.CJ.volume},e.prototype.getLatency=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getLatency())?t:0},e.prototype.setTargetLatency=function(e){var t;this.CK()&&("number"!=typeof e||e<0?this.rM("lowlatency.setLiveLatency","Invalid value: ".concat(e),"value","".concat(e)):null==(t=this.CJ.bitdashPlayer)||t.setTargetLatency(e))},e.prototype.getTargetLatency=function(){var e,t;return this.CK()?null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getTargetLatency())?t:0:-1},e.prototype.setCatchupConfig=function(e){var t;this.CK()&&(null==(t=this.CJ.bitdashPlayer)||t.setCatchupConfig(e))},e.prototype.getCatchupConfig=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getCatchupConfig())?t:null},e.prototype.setFallbackConfig=function(e){var t;this.CK()&&(null==(t=this.CJ.bitdashPlayer)||t.setFallbackConfig(e))},e.prototype.getFallbackConfig=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getFallbackConfig())?t:null},e.prototype.getCurrentTime=function(e,t){var n,r;return void 0===e&&(e=_.API_ISSUER_NAME),void 0===t&&(t=I.TimeMode.AbsoluteTime),this.mL()&&!eE(e)?this.GK().getCurrentTime():this.CK()&&null!=(r=null==(n=this.CJ.bitdashPlayer)?void 0:n.getCurrentTime(t))?r:0},e.prototype.setTargetBufferLevel=function(e,t,n){var r;if(this.DK()){var i=Object.keys(I.BufferType).some(function(t){return e===I.BufferType[t]}),o=Object.keys(I.MediaType).some(function(e){return n===I.MediaType[e]});i?o?"number"!=typeof t||t<0?this.rM("buffer.setTargetLevel","Invalid value: ".concat(t),"value","".concat(t)):null==(r=this.CJ.bitdashPlayer)||r.setTargetBufferLevel(e,t,n):this.rM("buffer.setTargetLevel","Invalid media type: ".concat(n),"media","".concat(n)):this.rM("buffer.setTargetLevel","Invalid buffer type: ".concat(e),"type","".concat(e))}},e.prototype.getBufferLevel=function(e,t){var n,r,i={level:null,targetLevel:null,type:e,media:t};return this.DK()&&this.VK(e,t)&&null!=(r=null==(n=this.CJ.bitdashPlayer)?void 0:n.getBufferLevel(e,t))?r:i},e.prototype.VK=function(e,t){var n=Object.keys(I.BufferType).some(function(t){return e===I.BufferType[t]}),r=Object.keys(I.MediaType).some(function(e){return t===I.MediaType[e]});return n&&r},e.prototype.getAudioBufferLength=function(){return this.CK()?this.getBufferLevel(I.BufferType.ForwardDuration,I.MediaType.Audio).level:null},e.prototype.getVideoBufferLength=function(){return this.CK()?this.getBufferLevel(I.BufferType.ForwardDuration,I.MediaType.Video).level:null},e.prototype.getMaxTimeShift=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getMaxTimeShift())?t:0},e.prototype.getTimeShift=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getTimeShift())?t:0},e.prototype.isStalled=function(){var e;return this.CK()&&!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isStalled())},e.prototype.isLive=function(){var e;return this.CK()&&!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isLive())},e.prototype.hasEnded=function(){var e;return this.CK()&&!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.hasEnded())},e.prototype.getAvailableVideoQualities=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getAvailableVideoQualities())?t:[]},e.prototype.getAvailableAudioQualities=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getAvailableAudioQualities())?t:[]},e.prototype.gL=function(){var e;return this.DK()&&!!this.CJ.videoElement&&!!(null==(e=this.CJ.videoElement)?void 0:e.isPictureInPicture())},e.prototype.isAirplayAvailable=function(){var e;return this.DK()&&!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isAirplayAvailable())},e.prototype.isAirplayActive=function(){var e;return this.DK()&&!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isAirplayActive())},e.prototype.getDownloadedVideoData=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getDownloadedVideoData())?t:{i
1d:"",bitrate:0,height:0,width:0,isAuto:!0}},e.prototype.getDownloadedAudioData=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getDownloadedAudioData())?t:{id:"",bitrate:0,isAuto:!0}},e.prototype.getPlaybackVideoData=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getPlaybackVideoData())?t:{id:"",bitrate:0,height:0,width:0,uid:void 0}},e.prototype.getPlaybackAudioData=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getPlaybackAudioData())?t:{id:"",bitrate:0}},e.prototype.getAspectRatio=function(){var e,t;return null!=(t=null==(e=this.gK)?void 0:e.getAspectRatio())?t:0},e.prototype.getVisibility=function(){var e;return(null==(e=this.gK)?void 0:e.getVisibility())||{isVisible:!1,percentVisible:0}},e.prototype.getAudio=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getAudio())?t:null},e.prototype.getBufferedRanges=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getBufferedRanges())?t:[]},e.prototype.getAvailableSegments=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getAvailableSegments())?t:{}},e.prototype.getAudioQuality=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getAudioQuality())?t:{id:"auto",bitrate:null}},e.prototype.getManifest=function(){return this.EJ},e.prototype.getDroppedVideoFrames=function(){var e,t;return this.QM(u.DROPPED_VIDEO_FRAMES,!(this.EK()&&this.GK().isLinearAdActive()),this.DK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getDroppedVideoFrames())?t:0)},e.prototype.getTotalStalledTime=function(){var e,t;return this.QM(u.TOTAL_STALLED_TIME,!(this.EK()&&this.GK().isLinearAdActive()),this.DK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getTotalStalledTime())?t:0)},e.prototype.getVideoQuality=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getVideoQuality())?t:{id:"auto",bitrate:null,width:null,height:null}},e.prototype.hL=function(e){var t=this,n=new Promise(function(n,r){var i,o,a=!1,s=!1,u=function(){t.off(b.PlayerEvent.AdBreakStarted,u),a=!0,t.rK=!1},l=function(){t.off(b.PlayerEvent.AdStarted,l),s=!0,n()};t.on(b.PlayerEvent.AdBreakStarted,u),t.on(b.PlayerEvent.AdStarted,l),t.CJ.context.serviceManager.get(g.ServiceName.PlayerStateService).transitionToPlayState(!0,e),(null!=(o=null==(i=t.GK())?void 0:i.playPreRollAds())?o:Promise.resolve()).then(function(){var e,n;return null!=(n=null==(e=em(t.yJ))?void 0:e.playPreRollAds())?n:Promise.resolve()}).then(function(){t.isContentPlaying()||a&&s||!t.mK?n():n(t.lL(e))}).catch(r).finally(function(){t.off(b.PlayerEvent.AdBreakStarted,u),t.off(b.PlayerEvent.AdStarted,l)})}).finally(function(){t.oK===n&&(t.oK=null)});return this.oK=n,n},e.prototype.isCastingToCAF=function(){var e=(0,x.getRemoteControlState)(this.yJ.store.getState().player);return e.remoteControlType===J.RemoteControlType.GoogleCastV3&&e.connectionState!==J.ConnectionState.Disconnected},e.prototype.iL=function(){if(this.hasCurrentSourcePlayedOnce())return!1;var e=this.GK(),t=em(this.yJ);return!1===(null==e?void 0:e.hasAlreadyRequestedPreRollAds())||!0===(null==t?void 0:t.shouldPlayPreRollAds())},e.prototype.jL=function(){if(this.isCasting())return!1;var e=this.cK===s.NONE,t=this.cK===s.MUTED_PLAY;return e||!this.isMuted()&&t},e.prototype.kL=function(){var e=this;this.CJ.vrHandler&&this.CJ.vrHandler.requestDeviceOrientationPermission().then(function(){return e.BJ.debug("Device orientation permission granted")}).catch(function(){return e.BJ.debug("Device orientation permission denied")})},e.prototype.play=function(e){var t,n,r=this;if(void 0===e&&(e=_.API_ISSUER_NAME),!eE(e)){if(this.oK)return this.oK.then(function(){return r.play(e)});if(this.mL()||this.nL())return null!=(n=null==(t=this.GK())?void 0:t.play())?n:Promise.resolve()}return this.CK()?this.iL()&&!this.isCastingToCAF()?this.hL(e):this.lL(e):Promise.reject(new h.PlayerError(p.ErrorCode.SOURCE_INVALID,void 0,"No source was loaded when `play()` was called. Please call `load()` first, and wait for the promise to resolve before calling `play()`."))},e.prototype.lL=function(e){var t=this;
1return this.rK||this.yJ.sourceContext.isAd||this.HM(this.CJ.source,this.isLive()),this.kL(),this.CJ.bitdashPlayer?this.CJ.bitdashPlayer.play(e).then(function(){t.cK=t.WM(t.cK),t.setPlaybackSpeed(t.CJ.playbackSpeed)}).catch(function(e){var n;return t.BJ.debug("playback could not be started: ",e),t.jL()&&(t.fireEvent(b.PlayerEvent.Warning,new y.PlayerWarning(v.WarningCode.PLAYBACK_COULD_NOT_BE_STARTED)),!t.isCasting()&&t.mK&&t.pause(_.INTERNAL_ISSUER_NAME),e instanceof Error&&"NotAllowedError"===e.name&&(null==(n=t.CJ.context.serviceManager.get(g.ServiceName.PlayerStateService))||n.transitionToPausedState(!0,_.INTERNAL_ISSUER_NAME))),Promise.reject(e)}):Promise.reject("Player is not available.")},e.prototype.mL=function(){return!!this.EK()&&this.GK().isLinearAdActive()},e.prototype.nL=function(){var e,t;return null!=(t=null==(e=this.GK())?void 0:e.isPauseAdActive())&&t},e.prototype.pause=function(e){var t,n,r=this;if(void 0===e&&(e=_.API_ISSUER_NAME),!eE(e)){if(this.oK)return void this.oK.catch(function(){}).then(function(){return r.pause(e)});if(this.mL())return void(null==(t=this.GK())||t.pause())}this.CK()&&(null==(n=this.CJ.bitdashPlayer)||n.pause(e))},e.prototype.castStop=function(){var e;this.DK()&&eh(this.CJ.bitdashPlayer)&&(null==(e=this.CJ.bitdashPlayer)||e.castStop())},e.prototype.setLogLevel=function(e){this.BJ.setLogLevel(e)},e.prototype.getLogger=function(){return this.BJ},e.prototype.oL=function(e,t,n){var r;this.CJ&&this.CJ.eventHandler?r=this.CJ.eventHandler:this.YK&&(r=this.YK),r.on(e,t,n)},e.prototype.onInternal=function(e,t){this.oL(e,t,!0)},e.prototype.on=function(e,t){this.oL(e,t,!1)},e.prototype.off=function(e,t){this.CJ&&this.CJ.eventHandler?this.CJ.eventHandler.off(e,t):this.YK&&this.YK.off(e,t)},e.prototype.pL=function(e){var t;return{context:null,logger:this.BJ,container:this.zJ,bitdashPlayer:null,eventHandler:this.YK,videoElement:null,adController:null,vrHandler:null,hasInitStarted:!1,technology:{player:I.PlayerType.Unknown,streaming:I.StreamType.Unknown},playerConfig:null,configuration:null,settings:null,source:null,volume:null!=(t=e.playback().volume)?t:100,muted:e.playback().muted||!1,playbackSpeed:1}},e.prototype.qL=function(){try{for(var e=0;this.zJ.getElementsByClassName(S.Environment.idPrefix+"error").length>0&&(this.zJ.removeChild(this.zJ.getElementsByClassName(S.Environment.idPrefix+"error")[0]),!(++e>10)););}catch(e){this.BJ.debug("Error removing container error element")}},e.prototype.rL=function(e){if(!this.CJ.playerConfig.isAdPlayer){var t,n=this.GJ.licensing().delay,r=this.GJ.tweaks();(n||0===n)&&!isNaN(n)&&n>=0&&(t=n);var i=this.hK[0];r.licenseServer&&(this.hK.includes(r.licenseServer)?i=r.licenseServer:this.BJ.warn("Invalid license server",new h.PlayerError(p.ErrorCode.SETUP_INVALID_LICENSE_SERVER,{"license-server":r.licenseServer}))),this.JJ=A.LicenseCall.getInstance(this.BJ,i,e.key),this.JJ.setDelay(t);var o=this.GJ.get("network");this.JJ.issue(this.qM,null==o?void 0:o.requestApi)}},e.prototype.sL=function(e){this.GJ=new d.PlayerConfiguration(e),this.FJ.setDisabled(!!(null==(t=e.storage)?void 0:t.disableStorageApi)),this.CJ=this.CJ||this.pL(this.GJ),this.CJ.configuration=this.GJ,this.CJ.settings=this.GJ.getSettings(),this.BJ.setSettings(this.CJ.settings),this.BJ.setLogLevel(this.GJ.get("logs").level),null==(n=this.YK)||n.addFromObject(this.GJ.get("events")),this.BJ.setConfig(this.GJ);var t,n,r=this.GJ.tweaks().log_level;if(r&&this.setLogLevel(r),this.CJ.settings.ENABLE_PERFORMANCE_LOGS&&(0,R.setPerformanceTrackingLogger)(this.BJ),l.ModuleManager.has(c.ModuleName.XML)&&l.ModuleManager.get(c.ModuleName.XML).setLogger(this.BJ),this.GJ.get("logs").bitmovin&&(this.BJ.forceLogBeautified("Adaptive Video Streaming Service by www.bitmovin.com","blue","14"),this.BJ.forceLogBeautified("Player Version "+S.Environment.VERSION_NUMBER,"black","12")),(0,f.validateAppIdConfig)(this.GJ),this.CJ.playerConfig={isAdPlayer:!1,prefix:"",visibility:"visible"},this.zJ&&(this.zJ.player=this.AJ,this.qL()),this.rL(e),l.ModuleManager.has(c.ModuleName.Style)){var i=l.ModuleManager.get(c.ModuleName.Style).StyleManager;this.gK=new i(this,this.CJ)}l.ModuleManager.callSetupHooks(this.AJ),(0,en.isLegacyEdge)()&&(k.DefaultSettings.MAX_STARTUP_BUFFER=er.LEGACY_EDGE_MAX_STARTUP_BUFFER),this.yJ=this.JK(),this.tL(this.yJ)},e.prototype.tL=function(e){var t;if((null==(t=e.settings)?void 0:t.ENABLE_AD_SEGMENT_PRELOADING)&&l.ModuleManager.has(c.ModuleName.EngineBitmovin)){var n=l.ModuleManager.get(c.ModuleName.EngineBitmovin).PreloadingService;if(e.serviceManager.set(g.ServiceName.PreloadingService,new n(e)),l.ModuleManager.has(c.ModuleName.Advert
vendor: 7,487 bytes, line 1
1isingCore)){var r=l.ModuleManager.get(c.ModuleName.AdvertisingCore).AdPreloadSequencerService;e.serviceManager.set(g.ServiceName.AdPreloadSequencerService,new r(e))}}},e.prototype.postSetup=function(){this.YL(),this.JM()},e.prototype.setup=function(e){if(!S.Environment.checkDomainLock())throw new h.PlayerError(p.ErrorCode.SETUP_MISSING_DOMAIN_LICENSE_ALLOWLIST,void 0,"The player is not authorized to play content on the current domain.");return this.sL(e)},e.prototype.addSubtitle=function(e){var t,n=this,i=r(r({},e),{kind:(null==e?void 0:e.kind)||"subtitles",id:null!=(null==e?void 0:e.id)?String(null==e?void 0:e.id):void 0,label:(null==e?void 0:e.label)||(null==e?void 0:e.lang),isSideloaded:!0});if(function(e){return e&&"object"==typeof e&&("string"==typeof e.id||(0,es.isNumber)(e.id))&&"string"==typeof e.lang&&["caption","captions","subtitle","subtitles"].includes(e.kind)}(i)){if(this.CK()&&!i.isFragmented){var o=i.enabled||!1;i.enabled=!1,null==(t=this.CJ.bitdashPlayer)||t.addSubtitle(i).then(function(){o&&n.enableSubtitle(i.id,!1,!1)}).catch(function(){return function(){}})}}else this.fireEvent(b.PlayerEvent.Warning,new y.PlayerWarning(v.WarningCode.API_INVALID_ARGUMENT,"Invalid subtitle track: ".concat(JSON.stringify(e)," Please check the documentation for expected properties."),{method:"subtitles.add",parameter:"subtitle",argument:e}))},e.prototype.removeSubtitle=function(e){var t;this.CK()&&(null==(t=this.CJ.bitdashPlayer)||t.removeSubtitle(e))},e.prototype.getContainer=function(){return this.zJ},e.prototype.setVRStereo=function(e){return!(!this.BK()||!this.HK()||"boolean"!=typeof e)&&this.CJ.vrHandler.setStereo(e)},e.prototype.getStreamType=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.technology)?void 0:e.streaming)?t:I.StreamType.Unknown},e.prototype.getPlayerType=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.technology)?void 0:e.player)?t:I.PlayerType.Unknown},e.prototype.getSupportedTech=function(e){switch(e){case I.SupportedTechnologyMode.Platform:return a([],(0,X.getCapabilities)().techSupportedByPlatform,!0);case I.SupportedTechnologyMode.Modules:return a([],(0,X.getCapabilities)().techSupportedByModules,!0);case I.SupportedTechnologyMode.PlatformAndModules:return a([],(0,X.getCapabilities)().techSupportedByModulesOnPlatform,!0);default:return this.fireEvent(b.PlayerEvent.Warning,new y.PlayerWarning(v.WarningCode.API_INVALID_ARGUMENT,"Invalid mode '".concat(e,"'"),{method:"getSupportedTech",parameter:"mode",argument:"".concat(e)})),[]}},e.prototype.getVR=function(){return this.HK()?this.CJ.vrHandler:null},e.prototype.getAds=function(){return this.BK()&&this.EK()?this.CJ.adController.playerAdvertisingApi:(null==this.getConfig().advertising||l.ModuleManager.has(c.ModuleName.Advertising)||this.BJ.warn("A required player module is missing: Advertising"),null)},e.prototype.getSgaiAPI=function(){return this.BK()&&em(this.yJ)?em(this.yJ).getSgaiPlayerAPI():(l.ModuleManager.has(c.ModuleName.AdvertisingCore)&&l.ModuleManager.has(c.ModuleName.SGAI)||this.BJ.warn("A required player module is missing: Advertising Core and/or SGAI"),null)},e.prototype.uL=function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){this.BJ.log("Could not parse JSON string given as source: "+e.message)}return e&&"object"==typeof e?e:null},e.prototype.vL=function(e){var t;void 0===e&&(e=!1),this.CJ&&this.zJ&&((t=this.CJ.playerConfig&&this.CJ.playerConfig.hasOwnProperty("prefix")?document.getElementById(S.Environment.idPrefix+""+this.CJ.playerConfig.prefix+"vr-canvas"):document.getElementById(S.Environment.idPrefix+"vr-canvas"))&&t.parentNode&&t.parentNode.removeChild(t),this.zJ&&e&&delete this.zJ.player)},e.prototype.wL=function(e){var t=!1,n=null;e&&(e.hasOwnProperty("options")&&e.options&&e.options.hasOwnProperty("persistentPoster")&&(t=e.options.persistentPoster),n=e.poster),this.setPosterImage(n,t)},e.prototype.xL=function(e){if(e)return["dash","hls","progressive","smooth","whep","poster","drm","title","description","options","tracks","labeling","vr"].forEach(function(t){e.hasOwnProperty(t)&&!e[t]&&delete e[t]}),e},e.prototype.yL=function(e){var t,n=e.vr,r=(0,X.getCapabilities)(),i=!!n,o=r[H.CapabilityKey.isIOS];if(i&&o){var a=r[H.CapabilityKey.isInlinePlaybackRestricted];n.restrictedInlinePlayback=a,(null==(t=this.fK)?void 0:t.isFullscreen())&&this.setViewMode(I.ViewMode.Inline),a&&(n.audioElement=eu.Util.getVRAudioElement(),this.zJ.appendChild(n.audioElement.getWrappedElement()))}},e.prototype.zL=function(e,t,n,r){var i;return this.CJ.source=e,this.CJ.loadOptions=t,(null==(i=this.CJ.technology)?void 0:i.player)===n.player?(this.CJ.technology=n,Promise.resolve()):this.AL(e,n,r)},e.prototype.AL=function(e,t,n){var r=this,i=function(){var t;r.AK()||(null==(t=r.YK)||t.off(b.PlayerEvent.Error,i),r.wL(e))};return this.onInternal(b.PlayerEvent.Error,i),this.CJ.vrHandler=null,this.BL(n).then(function(){return r.KK(e,t)}).then(function(){return r.yL(e)}).catch(function(e){return e&&e.hasOwnProperty("code")&&e.hasOwnProperty("message")&&r.YK?r.YK.fireError(e):e&&r.BJ.error("Failed to create player",e),Promise.reject(e)})},e.prototype.BL=function(e){var t=this;return this.CJ&&this.CJ.bitdashPlayer?this.CJ.bitdashPlayer.release(e).then(function(){t.CJ.bitdashPlayer=null,t.vL()}).catch(function(e){return t.BJ.error("There was a problem removing the current player: ".concat(e))}):Promise.resolve()},e.prototype.CL=function(e,t,n){return t===_.ADVERTISING_ISSUER_NAME&&e.canReuseEmeHandler()?e.reInitializeEmeHandler():e.isDrmConfigSet()?void 0:e.setDrmConfig(n)},e.prototype.DL=function(e,t,n){var r=this,i=this.IK(e,this.CJ.technology);return this.CJ.bitdashPlayer&&i?this.CJ.bitdashPlayer.load(i,t.restrictions).then(function(){e.drm&&r.yJ.serviceManager.maybeCall(g.ServiceName.DrmService,function(t){return r.CL(t,n,e.drm)})}).catch(function(e){return e&&e.code&&e.message&&r.YK?r.YK.fireError(e):e&&r.BJ.debug("Failed to load source:",e),Promise.reject(e)}):Promise.reject("Could not load source from configuration.")},e.prototype.EL=function(e){return!!this.lK&&(this.lK.reject(Error(e)),this.lK=null,!0)},e.prototype.FL=function(e){this.CJ.bitdashPlayer&&e.set(g.ServiceName.StartOffsetService,new B.StartOffsetService(this.CJ.bitdashPlayer)),e.set(g.ServiceName.MetadataParsedService,new O.MetadataParsedService(this.CJ.context)),e.set(g.ServiceName.StallTimeTrackerService,new V.StallTimeTrackerService(this.CJ.context)),e.set(g.ServiceName.ThumbnailService,function(e){if(l.ModuleManager.has(c.ModuleName.Thumbnail))return l.ModuleManager.get(c.ModuleName.Thumbnail).createThumbnailService(e)}(this.CJ.context)),e.set(g.ServiceName.PlayerStateService,new D.PlayerStateService(this.CJ.context))},e.prototype.prepareSource=function(e,t){if(!this.CJ.bitdashPlayer)return Promise.reject(Error("Source preparation requires an initialized player."));var n=t===_.ADVERTISING_ISSUER_NAME,r=ep(this.GJ,e);if(!r)return Promise.reject(Error("Source preparation found no compatible playback technology."));if(r.player!==I.PlayerType.Html5)return Promise.reject(Error("Source preparation requires MSE technology."));var i=this.IK(e,r);if(!i)return Promise.reject(Error("Source preparation requires a source compatible with ".concat(r.player,".").concat(r.streaming,".")));var o=ef(this.CJ,e,n,r);return this.yJ.serviceManager.has(g.ServiceName.SourceStoreService,o.sourceIdentifier)||ed(this.yJ,o.sourceIdentifier),this.CJ.bitdashPlayer.prepareSource(i,o).then(function(){return o}
1)},e.prototype.load=function(e,n,r,i){var o=this;void 0===i&&(i=_.API_ISSUER_NAME);var a=i===_.ADVERTISING_ISSUER_NAME,u=!!this.getSource();eE(i)||eg(i)||(this.rK=!1,this.dK=s.NONE,this.nK=!1,this.DJ=null,this.EJ=null);var l=this.lK=new ee.Deferred;return this.XK=r,this.jK=this.jK.then(function(){return o.GL(e,{forceTechnology:n,restrictions:r},i)}).catch(function(e){return o.QL(l,e)}),this.kK=this.kK.then(function(){return o.jK}).then(function(){if(!eE(i))return o.KM()}).then(function(){return function(e,n){return e===n?Promise.resolve():Promise.reject(Error(t.LOAD_CANCELLED_MESSAGE))}(l,o.lK)}).then(function(){var t,n=ef(o.CJ,e,a,o.CJ.technology);o.CJ.context.setSourceContext(n),o.yJ.serviceManager.has(g.ServiceName.SourceStoreService,n.sourceIdentifier)||ed(o.yJ,n.sourceIdentifier),o.FL(o.CJ.context.serviceManager),o.YM(i),o.LL(),u&&(null==(t=o.CJ.context.serviceManager.get(g.ServiceName.PlayerStateService))||t.transitionToSourceSwitchingState())}).then(function(){return Promise.race([o.ML(e,{forceTechnology:n,restrictions:r},i),l.promise])}).then(l.resolve).then(function(){var e,t,n=null==(e=o.yJ.videoElement)?void 0:e.getWrappedElement();n&&(null==(t=o.gK)||t.maybeStartTrackingVisibility(n))}).catch(function(e){return o.QL(l,e)}),l.promise},e.prototype.GL=function(e,t,n){var r,i=this;return null==(r=this.YK)||r.resetErrors(),this.NK(n).then(function(){i.SL(e);var r=ep(i.GJ,e,t.forceTechnology),o=i.UL(e,r);return i.BJ.debug("Using technology: ".concat(o.player,".").concat(o.streaming)),i.TL(e),i.IL(e),i.wL(e),i.zL(i.uL(e),t,o,n)})},e.prototype.IL=function(e){e.hasOwnProperty("vr")&&(0,X.getCapabilities)().isIOS&&(0,X.getCapabilities)().isInlinePlaybackRestricted&&(e.vr.audioElement=eu.Util.getVRAudioElement(),e.vr.restrictedInlinePlayback=!0),e.hasOwnProperty("vr")&&e.vr.audioElement&&this.zJ.appendChild(e.vr.audioElement.getWrappedElement())},e.prototype.JL=function(e){if(l.ModuleManager.has(c.ModuleName.DRM)&&e.drm&&!this.yJ.serviceManager.has(g.ServiceName.DrmService)){var t=l.ModuleManager.get(c.ModuleName.DRM).DrmService;this.yJ.serviceManager.set(g.ServiceName.DrmService,new t(this.yJ))}},e.prototype.KL=function(){var e;this.yJ.serviceManager.has(g.ServiceName.RecoveryService)||!1===(null==(e=this.getConfig().playback)?void 0:e.allowDecodingErrorRecovery)||this.yJ.serviceManager.set(g.ServiceName.RecoveryService,new w.RecoveryService(this.yJ))},e.prototype.LL=function(){!this.yJ.serviceManager.has(g.ServiceName.ManifestCachingService)&&this.wK&&this.yJ.serviceManager.set(g.ServiceName.ManifestCachingService,this.wK)},e.prototype.ML=function(e,t,n){var r=this,i=this.yJ.sourceContext.sourceIdentifier;return this.yJ.serviceManager.maybeCall(g.ServiceName.SourceStoreService,function(e){return e.dispatch((0,W.resetLoadedRanges)())},null,i),this.XM(n,i),this.OL(n,i),this.KL(),this.JL(e),this.ZK&&this.yJ.serviceManager.set(g.ServiceName.DrmDetectorService,this.ZK),this.NL().then(function(){return r.DL(e,t,n)}).then(function(){return r.postSetup(),r.WL(e.subtitleTracks),function(e,t){t.maybeCall(g.ServiceName.ThumbnailService,function(t){e&&e.thumbnailTrack&&t.addThumbnails(e.thumbnailTrack.url)})}(e,r.CJ.context.serviceManager),r.PL(e,n)}).then(function(){var e,t,n;null==(e=(0,q.getSourceStore)(r.yJ))||e.dispatch((0,G.setMseObjectUrl)(null!=(n=null==(t=r.CJ.videoElement)?void 0:t.src)?n:"")),r.fireEvent(b.PlayerEvent.SourceLoaded)})},e.prototype.NL=function(){return this.CJ.bitdashPlayer?this.CJ.bitdashPlayer.prepareLoad():Promise.reject("Could not load source from configuration.")},e.prototype.OL=function(e,t){eE(e)||eg(e)||!this.yJ||(this.yJ.serviceManager.maybeCall(g.ServiceName.SourceStoreService,function(e){return e.dispatch((0,z.initializeStartTimeOffset)())},null,t),this.yJ.serviceManager.has(g.ServiceName.ManifestCachingService,t)||(this.yJ.serviceManager.set(g.ServiceName.ManifestCachingService,this.wK,t),this.yJ.serviceManager.maybeCall(g.ServiceName.ManifestCachingService,function(e){return e.clear()},null,t)))},e.prototype.PL=function(e,t){var n,r,i,o;return this.XL(),eE(t)?(this.CJ.context.serviceManager.get(g.ServiceName.PlayerStateService).transitionToPlayState(!1,t),Promise.resolve()):eg(t)?(this.EJ=null!=(r=null==(n=this.CJ.bitdashPlayer)?void 0:n.getManifest())?r:"",Promise.resolve()):(this.IJ&&this.IJ.reset(),this.DJ=e,this.EJ=null!=(o=null==(i=this.CJ.bitdashPlayer)?void 0:i.getManifest())?o:"",this.wM())},e.prototype.QL=function(e,t){this.off(b.PlayerEvent.Error,this.LM),e.reject(t)},e.prototype.RL=function(){var e,t,n,r=this,i=em(this.yJ);if(!this.EK()&&!i)return Promise.resolve();var o=this.oK,a=(null==(e=this.GK())?void 0:e.isLinearAdActive())||!!o,s=!this.mK&&a;return(null!=(n=null==(t=this.GK())?void 0:t.reset())?n:Promise.resolve()).then(function(){var e;return null!=(e=null==i?void 0:i.reset())?e:Promise.resolve()}).then(function(){s&&r.fireEvent(b.PlayerEvent.SourceUnloaded)}).finally(function(){r.oK===o&&(r.oK=null)})},e.prototype.SL=function(e){this.AK()&&this.VL(p.ErrorCode.API_NOT_AVAILABLE,"Cannot load the source: the player has already been destroyed.");var t=this.xL(e),n=Object.values(I.StreamType).filter(function(e){return e!==I.StreamType.Unknown});if(t&&n.some(function(e){return t.hasOwnProperty(e)})||this.VL(p.ErrorCode.SOURCE_INVALID,"Cannot load the source: the provided source config has no usable stream.",{source:e}),!this.bK)throw this.eK},e.prototype.TL=function(e){var t,n=!!(null==(t=e.options)?void 0:t.shouldRecreateSourceBuffersOnPeriodSwitch);
1n!==k.DefaultSettings.DASH_CLEAR_BUFFERS_ON_PERIOD_SWITCHES&&(this.BJ.debug("Overriding default setting: `DASH_CLEAR_BUFFERS_ON_PERIOD_SWITCHES = ".concat(n,"`")),k.DefaultSettings.DASH_CLEAR_BUFFERS_ON_PERIOD_SWITCHES=n,this.yJ&&(this.yJ.settings=this.CJ.configuration.getSettings()))},e.prototype.UL=function(e,t){var n=(0,X.getCapabilities)().techSupportedByPlatform;return n.length<1&&this.VL(p.ErrorCode.SOURCE_NO_SUPPORTED_TECHNOLOGY,"The platform does not support any of the technologies needed to play back the provided source."),!t&&e.hasOwnProperty("vr")&&this.VL(p.ErrorCode.VR_INCOMPATIBLE_PLAYER_TECHNOLOGY,"This platform does not support VR playback."),t||this.VL(p.ErrorCode.SOURCE_NO_SUPPORTED_TECHNOLOGY,"This platform only supports these technologies: ".concat(JSON.stringify(n),".")),t},e.prototype.VL=function(e,t,n){var r,i=new h.PlayerError(e,n,t,null==(r=this.yJ.sourceContext)?void 0:r.sourceIdentifier);throw this.YK&&this.YK.fireError(i),i},e.prototype.WL=function(e){var t=this;!this.subtitlesApi&&l.ModuleManager.has(c.ModuleName.Subtitles)&&(this.subtitlesApi=l.ModuleManager.get(c.ModuleName.Subtitles).PlayerSubtitlesApiFactory.build(this),this.fireEvent(b.PlayerEvent.ModuleReady,{name:c.ModuleName.Subtitles})),e&&Array.isArray(e)&&e.forEach(function(e){return t.addSubtitle(e)})},e.prototype.XL=function(){var e,t=null==(e=this.CJ.bitdashPlayer)?void 0:e.createManifestApi();t&&(this.manifestApi=t)},e.prototype.YL=function(){if(this.CJ.source&&this.CJ.source.hasOwnProperty("vr")&&this.BK())if("function"==typeof window.requestAnimationFrame){var e=l.ModuleManager.get(c.ModuleName.VR).VRHandler;this.CJ.vrHandler=new e(this.CJ.context,this.id,this.CJ.source.vr,eu.Util.getVRAudioElement(),this.BJ,navigator,this.CJ.settings),this.fireEvent(b.PlayerEvent.ModuleReady,{name:c.ModuleName.VR})}else this.BJ.warn("VR unavailable","This platform does not support VR")},e.prototype.getConfig=function(e){return void 0===e&&(e=!1),this.GJ?e?this.GJ.get():this.GJ.getUserConfig():{}},e.prototype.getSnapshot=function(e,t){var n;if(this.CK())return null==(n=this.CJ.bitdashPlayer)?void 0:n.getSnapshot(e,t)},e.prototype.setPlaybackSpeed=function(e,t){var n,r,i;if(void 0===t&&(t=_.API_ISSUER_NAME),!isNaN(e=Number(e))&&e>0){if((null==(n=this.XK)?void 0:n.playbackRate)&&ey(t))return void(null==(r=this.yJ)||r.logger.debug("Playback rate changes blocked by playback restrictions"));this.CJ.playbackSpeed=e,this.DK()&&(null==(i=this.CJ.bitdashPlayer)||i.setPlaybackSpeed(e))}},e.prototype.getPlaybackSpeed=function(){var e,t;return this.DK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getPlaybackSpeed())?t:1},e.prototype.ZL=function(){var e=this;return new Promise(function(t,n){if(e.fK&&e.getViewMode()!==I.ViewMode.Inline){var r=function(){t(),e.off(b.PlayerEvent.ViewModeChanged,r)};
vendor: 59,109 bytes, line 1
1e.on(b.PlayerEvent.ViewModeChanged,r),e.fK.setViewMode(I.ViewMode.Inline)}else t()})},e.prototype.destroy=function(){var e,t=this;return this.zK()?Promise.resolve():(null==(e=this.yJ)||e.store.dispatch((0,j.setDestroyState)(J.DestroyState.Destroying)),l.ModuleManager.callDestroyHooks(this.AJ).then(function(){return t.ZL()}).then(function(){return t.bL()}).then(function(){var e,n;null==(e=t.yJ)||e.store.dispatch((0,j.setDestroyState)(J.DestroyState.Destroyed)),null==(n=t.YK)||n.setBeingDestroyed(),t.cL()}).then(function(){return t.kK}).then(function(){return t.NK()}).then(function(){return t.dL()}).then(function(){t.yJ&&(t.aL(),t.yJ.dispose(),t.yJ=null)}))},e.prototype.aL=function(){this.xK&&this.xK(),this.yK&&this.yK(),this.xK=null,this.yK=null},e.prototype.bL=function(){var e=this;return new Promise(function(t){var n=function(){(0,ea.clearTimeoutIfDefined)(r),e.off(b.PlayerEvent.Destroy,n),t()},r=window.setTimeout(n,250);e.on(b.PlayerEvent.Destroy,n),e.fireEvent(b.PlayerEvent.Destroy,{},!1,!1)})},e.prototype.cL=function(){this.EL(t.LOAD_CANCELLED_BY_DESTROY_MESSAGE),(0,ea.clearTimeoutIfDefined)(this.HJ)},e.prototype.dL=function(){var e=this;if(!this.CJ)return Promise.resolve();var t=Promise.resolve();return this.vL(!0),eu.Util.removeVRAudioElement(),this.CJ.adController=(0,m.dispose)(this.CJ.adController),this.CJ.vrHandler=null,this.fK&&(this.fK=(0,m.dispose)(this.fK)),this.sK=(0,m.dispose)(this.sK),this.tK=(0,m.dispose)(this.tK),this.uK=(0,m.dispose)(this.uK),this.vK=(0,m.dispose)(this.vK),this.wK=(0,m.dispose)(this.wK),this.IJ.dispose(),this.CJ.bitdashPlayer?t=this.CJ.bitdashPlayer.release().then(function(){return e.yJ.serviceManager.maybeCall(g.ServiceName.DrmService,function(e){return e.release()})}).finally(function(){e.eL(),e.CJ.bitdashPlayer=null}):this.eL(),this.CJ.context&&ev(this.CJ.context),this.ZK=(0,m.dispose)(this.ZK),this.gK=(0,m.dispose)(this.gK),this.YK=(0,m.dispose)(this.YK),this.FJ=null,t},e.prototype.eL=function(){if(this.CJ.videoElement){var e=this.CJ.videoElement.getWrappedElement();this.CJ.videoElement=(0,m.dispose)(this.CJ.videoElement),this.zJ&&e&&e!==this.aK&&this.zJ.removeChild(e)}},e.prototype.fL=function(e){if(!e)return new h.PlayerError(p.ErrorCode.SETUP_LICENSE_ERROR,{"error-message":"No license information was returned from the server"});if(e.message&&e.message.includes("Your player is not allowed to play on the domain"))return new h.PlayerError(p.ErrorCode.SETUP_MISSING_LICENSE_ALLOWLIST,{"error-message":e.message});if(e.hasOwnProperty("validationInformation")){for(var t="",n=0;n<e.validationInformation.length;n++)t+=e.validationInformation[n].key+": ",t+=e.validationInformation[n].errorMessage,n<e.validationInformation.length-1&&(t+="</br>");return new h.PlayerError(p.ErrorCode.SETUP_LICENSE_ERROR,{"error-message":t})}return e.hasOwnProperty("message")?new h.PlayerError(p.ErrorCode.SETUP_LICENSE_ERROR,{"error-message":e.message}):void 0},e.prototype.permitControl=function(e){this.CJ&&this.CJ.bitdashPlayer&&eu.Util.isFunction(this.CJ.bitdashPlayer.permitControl)&&this.CJ.bitdashPlayer.permitControl(e)},e.prototype.rM=function(e,t,n,r){this.fireEvent(b.PlayerEvent.Warning,new y.PlayerWarning(v.WarningCode.API_INVALID_ARGUMENT,t,{method:e,parameter:n,argument:r}))},e.prototype.fireEvent=function(e,t,n,r){this.YK&&this.YK.getEventFunction()(e,t,n,r)},e.prototype.isPlaying=function(){return this.isContentPlaying()||this.isAdPlaying()},e.prototype.isContentPlaying=function(){var e;return this.CK()&&!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isPlaying())},e.prototype.isAdPlaying=function(){return this.EK()&&this.GK().isPlaying()},e.prototype.isPaused=function(){return this.isContentPaused()||this.isAdPaused()},e.prototype.isContentPaused=function(){var e;return this.CK()&&!!(null==(e=this.CJ.bitdashPlayer)?void 0:e.isPaused())},e.prototype.isAdPaused=function(){return this.EK()&&this.GK().isPaused()},e.prototype.setVideoElement=function(e){this.aK=e},e.prototype.getVideoElement=function(){return this.aK?this.aK:this.CJ&&this.CJ.videoElement?this.CJ.videoElement.getWrappedElement():null},e.prototype.isDRMSupported=function(e){return this.ZK?this.ZK.isSupported(e):Promise.reject("DRM module not loaded")},e.prototype.getSupportedDRM=function(){return this.ZK?this.ZK.getSupported():Promise.reject("DRM module not loaded")},e.prototype.setAuthentication=function(e){this.JJ.setCustomData(e)},e.prototype.setPosterImage=function(e,t){this.gK?this.gK.setPosterImage(e,t):this.BJ.debug("Unable to set poster image because style module is missing")},e.prototype.getThumbnail=function(e){var t;return this.DK()?function(e,t,n){return n.maybeCall(g.ServiceName.ThumbnailService,function(n){return n.getThumbnail(e,t)})}(e,{width:this.getContainer().clientWidth,height:this.getContainer().clientHeight,isFullscreen:!!(null==(t=this.fK)?void 0:t.isFullscreen())},this.CJ.context.serviceManager):null},e.prototype.getSeekableRange=function(){var e,t;return this.CK()&&null!=(t=null==(e=this.CJ.bitdashPlayer)?void 0:e.getSeekableRange())?t:{start:-1,end:-1}},e.prototype.uM=function(e,t,n){var r;t=[].concat(t);for(var i=function(e){if(r=t.find(function(t){return t.lang===e}))return"break"},o=0,a=e=[].concat(e);o<a.length&&"break"!==i(a[o]);o++);return r?Promise.resolve(n(r.id)):Promise.resolve()},e.prototype.vM=function(){var e=this.CJ.configuration.buffer();this.IM(e)},e.prototype.wM=function(){return this.BM().then(this.GM).then(this.FM)},e.prototype.xM=function(){if(this.CJ.configuration.playback().playsInline&&void 0!==this.yJ.videoElement){var e=this.yJ.videoElement.getWrappedElement();e.setAttribute("webkit-playsinline",""),e.setAttribute("playsinline","")}},e.prototype.yM=function(){this.isLive()||this.iL()||this.HM(this.CJ.source,!1)},e.prototype.zM=function(){var e,t;null!=(t=null==(e=this.CJ.vrHandler)?void 0:e.deviceOrientationPermissionRequired())&&t?this.BJ.debug("Autoplay disabled: user permission is required to access device orientation data for VR playback"):this.EM()},e.prototype.AM=function(){var e=this.isLive(),t=this.CJ.configuration.playback(),n=this.CJ.configuration.adaptation();t.autoplay?this.zM():this.CM(n,e)&&this.preload()},e.prototype.BM=function(){var e=this;return new Promise(function(t){(0,ea.clearTimeoutIfDefined)(e.HJ),e.CJ&&e.CJ.bitdashPlayer?(e.xM(),e.yM(),e.AM(),t()):e.HJ=window.setTimeout(function(){t(e.wM())},100)})},e.prototype.CM=function(e,t){return!t&&("boolean"!=typeof e.preload||e.preload)},Object.defineProperty(e.prototype,"DM",{get:function(){return this.lK&&this.lK.promise||Promise.resolve()},enumerable:!1,configurable:!0}),e.prototype.EM=function(){var e=this;this.DM.then(function(){return e.play()}).catch(function(){return e.BJ.insane("Autoplay not triggered because current load call failed")})},e.prototype.HM=function(e,t){var n=this.CJ.context.serviceManager.get(g.ServiceName.StartOffsetService).getStartOffset(e);t?this.timeShift(n,_.STARTUP_ISSUER_NAME):this.seek(n,_.STARTUP_ISSUER_NAME)},e.prototype.IM=function(e){var t=this;Object.keys(e).forEach(function(n){Object.keys(e[n]).forEach(function(r){if(t.VK(r,n)){var i=e[n][r];t.setTargetBufferLevel(r,i,n)}})})},e.prototype.JM=function(){this.CJ&&(this.mK=!0,this.setVolume(this.CJ.volume),this.setPlaybackSpeed(this.CJ.playbackSpeed),this.CJ.muted?this.mute():this.unmute())},e.prototype.KM=function(){var e;if(this.getConfig().advertising){if(!this.EK())try{this.FK()}catch(e){this.BJ.warn("Failed to create ad controller",e)}null==(e=this.CJ.adController)||e.initializeAdModule()}},e.prototype.MM=function(){var e=this;this.bK=!0,this.iK&&this.iK.length>0&&(this.IJ=new P.ImpressionCall(this.BJ,this.iK[0])),this.onInternal(b.PlayerEvent.Error,this.LM),this.onInternal(b.PlayerEvent.Warning,function(t){return e.BJ.warn(t.message)}),this.onInternal(b.PlayerEvent.Playing,this.NM),this.onInternal(b.PlayerEvent.SourceLoaded,this.sM),this.on(b.PlayerEvent.SourceUnloaded,this.tM),this.on(b.PlayerEvent.Playing,this.VM),this.bufferApi=C.PlayerBufferApiFactory.create(this),l.ModuleManager.has(c.ModuleName.LowLatency)&&(this.lowLatencyApi=l.ModuleManager.get(c.ModuleName.LowLatency).LowLatencyApiFactory.create(this)),l.ModuleManager.has(c.ModuleName.ABR)&&(this.adaptationApi=l.ModuleManager.get(c.ModuleName.ABR).AdaptationApiFactory.create(this)),l.ModuleManager.has(c.ModuleName.EngineBitmovin)&&(this.sK=new(l.ModuleManager.get(c.ModuleName.EngineBitmovin)).SegmentInfoService,this.tK=new(l.ModuleManager.get(c.ModuleName.EngineBitmovin)).SegmentPrefetchingService,this.uK=new(l.ModuleManager.get(c.ModuleName.EngineBitmovin)).SegmentCacheService,this.vK=new(l.ModuleManager.get(c.ModuleName.EngineBitmovin)).AdRestorationOptimizationService,this.wK=new(l.ModuleManager.get(c.ModuleName.EngineBitmovin)).ManifestCachingService),this.OM()},e.prototype.OM=function(){this.qK=new Map,this.qK.set(u.DROPPED_VIDEO_FRAMES,0),this.qK.set(u.TOTAL_STALLED_TIME,0)},e.prototype.PM=function(e,t){this.qK.has(e)&&this.qK.set(e,this.qK.get(e)+t)},e.prototype.QM=function(e,t,n){return this.qK.get(e)+(t?n:0)},e.prototype.SM=function(e){var t=e.getActiveAdBreak(),n=e.list().filter(function(e){return e.scheduleTime===t.scheduleTime});[t].concat(n).forEach(function(t){return e.discardAdBreak(t.id)})},e.prototype.updateCallback=function(e){},e.prototype.onFullscreenEnter=function(){},e.prototype.onFullscreenExit=function(){},e.prototype.getViewMode=function(){return this.yJ?(0,x.getPlayerState)(this.yJ.store.getState()).viewMode:I.ViewMode.Inline},e.prototype.isViewModeAvailable=function(e){var t;return this.CK()?!!(null==(t=this.fK)?void 0:t.isViewModeAvailable(e)):[I.ViewMode.Fullscreen,I.ViewMode.Inline].includes(e)},e.prototype.setViewMode=function(e,t){void 0===t&&(t={}),this.fK&&this.fK.setViewMode(e,t)},e.prototype.addExternalEventFilter=function(e){this.YK&&this.YK.addExternalEventFilter(e)},e.prototype.removeExternalEventFilter=function(e){this.YK&&this.YK.removeExternalEventFilter(e)},e.prototype.getSource=function(){return this.DJ},e.prototype.getLoadOptions=function(){var e;return this.CK()&&(null==(e=this.CJ)?void 0:e.loadOptions)||null},e.prototype.hasCurrentSourcePlayedOnce=function(){return this.dK!==s.NONE},e.prototype.WM=function(e){var t=this.isMuted()?s.MUTED_PLAY:s.UNMUTED_PLAY;return t>e?t:e},e.prototype.XM=function(e,t){if(this.yJ&&l.ModuleManager.has(c.ModuleName.ABR))for(var n=l.ModuleManager.get(c.ModuleName.ABR).AdaptationUtils,r=eE(e)?0:n.getStartupBitrateFromConfig(this.yJ),i=this.yJ.serviceManager.get(g.ServiceName.SourceStoreService,t),o=0,a=Object.values(et.MimeType);o<a.length;o++){var s=a[o];i.dispatch((0,F.setPreferredBitrateForMimeTypeAction)(s,r))}},e.prototype.YM=function(e){var t;if(!eE(e)&&l.ModuleManager.has(c.ModuleName.SGAI)&&this.yJ.settings.ENABLE_SGAI_HANDLING){if(!this.yJ.serviceManager.has(g.ServiceName.SgaiService)){var n=l.ModuleManager.get(c.ModuleName.SGAI);this.yJ.serviceManager.set(g.ServiceName.SgaiService,new n.SgaiService(this.yJ))}null==(t=em(this.yJ))||t.initialize()}},e}(),function(){var t="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n=[(0,R.trackPerformance)("InternalPlayer.load")],U=[(0,R.trackPerformance)("InternalPlayer.destroy")],o(e,null,n,{kind:"method",name:"load",static:!1,private:!1,access:{has:function(e){return"load"in e},get:function(e){return e.load}},metadata:t},null,Y),o(e,null,U,{kind:"method",name:"destroy",static:!1,private:!1,access:{has:function(e){return"destroy"in e},get:function(e){return e.destroy}},metadata:t},null,Y),t&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}(),e}();function ed(e,t){var n=new Q.StoreService(e.store,"sources",t);e.serviceManager.set(g.ServiceName.SourceStoreService,n,t),n.addReducers(Y.staticSourceReducers)}function ef(e,t,n,r){var i,o=(0,U.deriveSourceIdentifier)(t,e.context.internalPlayerID);return new U.SourceContext({source:t,isAd:n,technology:r,sourceIdentifier:o,mseObjectUrl:null==(i=e.videoElement)?void 0:i.src})}function ep(e,t,n){var r=eu.Util.splitPlayerAndStreamingTechnology(n);return(0,$.getBestTech)(e.playback().preferredTech,t,r)}function eh(e){return null!=e&&"isCastAvailable"in e}function ey(e){return e===_.API_ISSUER_NAME||e===_.UI_SEEK_ISSUER_NAME}function ev(e){[g.ServiceName.MetadataParsedService,g.ServiceName.StartOffsetService,g.ServiceName.PlayerStateService,g.ServiceName.StallTimeTrackerService,g.ServiceName.ThumbnailService].forEach(function(t){return(0,E.disposeService)(e.serviceManager,t)})}function eE(e){return e===_.ADVERTISING_ISSUER_NAME||e===_.ADVERTISING_RESTORE_ISSUER_NAME}function eg(e){return e===_.RECOVERY_ISSUER_NAME}function em(e){var t;return null==(t=null==e?void 0:e.serviceManager)?void 0:t.get(g.ServiceName.SgaiService)}t.InternalPlayer=ec},99266:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevels=void 0,t.LogLevels={DEBUG:"debug",LOG:"log",WARN:"warn",ERROR:"error",OFF:"off"}},13531:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LogLevel=void 0;var i,o=n(99266),a=n(44468);!function(e){e[e.OFF=0]="OFF",e[e.INSANE=1]="INSANE",e[e.DEBUG=2]="DEBUG",e[e.LOG=3]="LOG",e[e.WARN=4]="WARN",e[e.ERROR=5]="ERROR"}(i||(t.LogLevel=i={})),t.Logger=function(){function e(e,t){void 0===t&&(t=i.WARN),this.IF=e,this.setLogLevel(t)}return e.prototype.setConfig=function(e){this.JF=e.logs&&"function"==typeof e.logs().onLog?e.logs().onLog:void 0},e.prototype.setLogLevel=function(t){"string"==typeof t&&(t=e.parseLogLevel(t)),this.HF=t},e.prototype.getLogLevel=function(){return this.HF},e.prototype.isLevelEnabled=function(e){return void 0!==this.JF&&e!==i.INSANE||this.HF!==i.OFF&&this.HF<=e},e.prototype.setSettings=function(e){this.IF=e},e.parseLogLevel=function(e){switch(e){case o.LogLevels.DEBUG:return i.DEBUG;case o.LogLevels.LOG:return i.LOG;case o.LogLevels.WARN:return i.WARN;case o.LogLevels.ERROR:return i.ERROR;default:return i.OFF}},e.prototype.KF=function(e,t,n){var o,s,u,l=function(e){switch(e){case i.INSANE:case i.DEBUG:return a.LogLevel.DEBUG;case i.LOG:return a.LogLevel.LOG;case i.WARN:return a.LogLevel.WARN;case i.ERROR:return a.LogLevel.ERROR;default:return null}}(e),c=r([],n,!0);if(this.HF>0&&this.HF<=e&&("string"==typeof this.IF.LOG_PREFIX&&this.IF.LOG_PREFIX.length>0?(o=console[l]).call.apply(o,r([console,this.IF.LOG_PREFIX,t],c,!1)):(s=console[l]).call.apply(s,r([console,t],c,!1))),this.JF&&e!==i.INSANE)try{(u=this.JF).call.apply(u,r([null,l,t],c,!1))}catch(e){}},e.prototype.insane=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.KF(i.INSANE,e,t)},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.KF(i.DEBUG,e,t)},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.KF(i.LOG,e,t)},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.KF(i.WARN,e,t)},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.KF(i.ERROR,e,t)},e.prototype.forceLogBeautified=function(e,t,n){navigator.userAgent.indexOf("Trident/")>-1||navigator.userAgent.indexOf("Edge/")>-1?console.log(e):console.log("%c"+e,"color:"+t+";font-weight:bold;font-size:"+n+"px;")},e}()},1001:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.NalUnitTypeHevc=t.NalUnitTypeAvc=t.VisualSampleEntryTypes=void 0,t.VisualSampleEntryTypes={Avc:["avc1","avc2","avc3"],Hvc:["hvc1","hev1"]},function(e){e[e.SEI=6]="SEI"}(n||(t.NalUnitTypeAvc=n={})),function(e){e[e.SEI=39]="SEI"}(r||(t.NalUnitTypeHevc=r={}))},75108:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCodeMap=t.MediaErrorCode=void 0,function(e){e[e.MEDIA_ERR_NETWORK=2]="MEDIA_ERR_NETWORK",e[e.MEDIA_ERR_DECODE=3]="MEDIA_ERR_DECODE",e[e.MEDIA_ERR_SRC_NOT_SUPPORTED=4]="MEDIA_ERR_SRC_NOT_SUPPORTED"}(n||(t.MediaErrorCode=n={})),function(e){e[e.MEDIA_ERR_DECODE=1301]="MEDIA_ERR_DECODE",e[e.MEDIA_ERR_NETWORK=1400]="MEDIA_ERR_NETWORK",e[e.MEDIA_ERR_SRC_NOT_SUPPORTED=1204]="MEDIA_ERR_SRC_NOT_SUPPORTED"}(r||(t.ErrorCodeMap=r={}))},50172:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParsedService=void 0;var r=n(3714),i=n(58735),o=n(89927);t.MetadataParsedService=function(){function e(e){this.d5=1.3,this.a5=e.eventHandler,this.a5.on(r.PlayerEvent.SourceUnloaded,this.e5),this.e5()}return e.prototype.e5=function(){this.c5={},this.b5=1/0},e.prototype.addMetadata=function(e,t){if(this.f5(),[r.MetadataType.EVENT_STREAM,r.MetadataType.DATERANGE].includes(t.metadataType)){var n=(0,i.calculateMetadataHash)(t,e);if(this.c5[n])return;this.c5[n]=Date.now()}this.a5.dispatchEvent(r.PlayerEvent.MetadataParsed,t)},e.prototype.f5=function(){for(var e=0,t=Object.keys(this.c5);e<t.length;e++){var n=t[e];this.g5(this.c5[n])&&delete this.c5[n]}},e.prototype.g5=function(e){if(!e)return!0;var t=(0,o.toMilliSeconds)(this.b5*this.d5);return Date.now()-t>e},Object.defineProperty(e.prototype,"expirationTimeInSeconds",{get:function(){return this.b5},set:function(e){this.b5=Math.abs(e)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.c5=null,this.a5.off(r.PlayerEvent.SourceUnloaded,this.e5)},e}()},29669:function(e,t){"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkRequestApi=t.HttpRequestMethod=t.HttpResponseType=t.HttpRequestType=void 0,function(e){e.MANIFEST_DASH="manifest/dash",e.MANIFEST_HLS_MASTER="manifest/hls/master",e.MANIFEST_HLS_VARIANT="manifest/hls/variant",e.MANIFEST_SMOOTH="manifest/smooth",e.MANIFEST_ADS="manifest/ads",e.MANIFEST_STEERING="manifest/steering",e.MEDIA_AUDIO="media/audio",e.MEDIA_VIDEO="media/video",e.MEDIA_SUBTITLES="media/subtitles",e.MEDIA_THUMBNAILS="media/thumbnails",e.MEDIA_SEGMENTINDEX="media/segmentindex",e.DRM_LICENSE_WIDEVINE="drm/license/widevine",e.DRM_LICENSE_PLAYREADY="drm/license/playready",e.DRM_LICENSE_FAIRPLAY="drm/license/fairplay",e.DRM_LICENSE_PRIMETIME="drm/license/primetime",e.DRM_LICENSE_CLEARKEY="drm/license/clearkey",e.DRM_LICENSE_TVKEY="drm/license/tvkey",e.DRM_CERTIFICATE_FAIRPLAY="drm/certificate/fairplay",e.HLS_INTERSTITIALS_ASSET_LIST="hls/interstitials/asset-list",e.KEY_HLS_AES="key/hls/aes",e.TIME_SYNC="time/sync",e.WEBRTC_SDP_REQUEST="webrtc/sdp/request",e.WEBRTC_SDP_ANSWER="webrtc/sdp/answer",e.WEBRTC_SDP_OFFER="webrtc/sdp/offer",e.UNKNOWN="unknown",e.INTERNAL="internal"}(n||(t.HttpRequestType=n={})),function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.TEXT="text"}(r||(t.HttpResponseType=r={})),function(e){e.GET="GET",e.POST="POST",e.HEAD="HEAD",e.PATCH="PATCH"}(i||(t.HttpRequestMethod=i={})),function(e){e.XHR="xhr",e.Fetch="fetch"}(o||(t.NetworkRequestApi=o={}))},69957:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPerformanceTrackingLogger=function(e){n=e},t.trackPerformance=function(e,t){return void 0===t&&(t=!1),function(n,s){return function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];var l=a(r),c=l.callStack,d=l.parent,f=Date.now(),p=o(),h=function(e,t){var n={method:t,isAsync:!1,next:null,subtractions:[]};return e.next=n,n}(d,e),y=function(){var n=o()-p;if(i({name:e,start:f,duration:n,callStack:c}),t&&(d.subtractions=d.subtractions||[],d.subtractions.push({name:e,duration:n})),h.subtractions&&h.subtractions.length){var r=h.subtractions.map(function(e){return e.name}).join(", "),a=h.subtractions.reduce(function(e,t){return e+t.duration},0);i({name:"".concat(e," without ").concat(r),duration:n-a,start:Date.now()})}!function(e){e.isAsync&&e.next.isAsync||(e.next=null)}(d)},v=n.apply(this,s);return v instanceof Promise?(function(e){e.isAsync=!0}(d.next),v.then(y,y)):y(),v}}},t.trackPerformanceStart=function(e){var t=o();s[e]&&u(e,t),s[e]=t},t.trackPerformanceEnd=function(e){u(e,o()),delete s[e]};var n,r={};function i(e){n&&n.debug("[Performance] ".concat(e.name," lasted ").concat(Math.floor(e.duration),"ms"),e)}function o(){var e,t;return(null==(e=performance.now)?void 0:e.call(performance))||(null==(t=performance.webkitNow)?void 0:t.call(performance))||Date.now()}function a(e,t){void 0===t&&(t=[]);var n=e.next,r=e.method;return r&&t.push(r),n?a(n,t):{callStack:t,parent:e}}var s={};function u(e,t){n&&i({name:e,start:s[e],duration:t-s[e]})}},51072:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayPromise=void 0;var i=n(88844),o=n(19274);t.PlayPromise=function(){function e(e,t,n){var o=this;this.I9=function(){var e=function(){(0,i.clearTimeoutIfDefined)(o.F9),o.E9&&o.E9.isLicenseRequestOngoing()?o.F9=setTimeout(e,o.C9.settings.PLAYBACK_TIMEOUT):o.Yab({code:0,name:"NotAllowedError",message:"user interaction required"})};o.F9=setTimeout(e,o.C9.settings.PLAYBACK_TIMEOUT)},this.Wab=function(){o.L9(),o.G9()},this.Xab=function(e,t){return o.Yab(r(r({},t),{eventName:e}))},this.Yab=function(e){o.L9();var t=e;e&&e.type&&(t="error"===e.type?r(r({},e),{name:"NotSupportedError",message:"The operation is not supported"}):r(r({},e),{name:"AbortError",message:"The play call was interrupted by ".concat(e.type)})),o.H9(t)},this.C9=e,this.D9=t,this.E9=n}return e.prototype.J9=function(){var t=this,n=function(n){var i=e.eventMapping[n];r.D9.addEventListener(n,i?r.Wab:function(e){return t.Xab(n,e)})},r=this;for(var i in e.eventMapping)n(i);4===this.D9.readyState?this.I9():this.D9.addEventListener(o.MediaElementEvent.canplay,this.I9)},e.prototype.K9=function(){for(var t in e.eventMapping){var n=e.eventMapping[t];this.D9.removeEventListener(t,n?this.Wab:this.Yab)}this.D9.removeEventListener(o.MediaElementEvent.canplay,this.I9)},e.prototype.L9=function(){(0,i.clearTimeoutIfDefined)(this.F9),this.K9()},e.prototype.Zab=function(){var e=this;return new Promise(function(t,n){e.G9=t,e.H9=n,e.J9()})},e.new=function(t,n,r){return new e(t,n,r).Zab()},e.eventMapping={playing:!0,ended:!0,pause:!1,abort:!1,emptied:!1,error:!1},e}()},43662:function(e,t,n){"use strict";var r=this&&this.__runInitializers||function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},i=this&&this.__esDecorate||function(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=r.kind,l="getter"===u?"get":"setter"===u?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var y in r)h[y]="access"===y?{}:r[y];for(var y in r.access)h.access[y]=r.access[y];h.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,n[p])("accessor"===u?{get:d.get,set:d.set}:d[l],h);if("accessor"===u){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(s=a(v.get))&&(d.get=s),(s=a(v.set))&&(d.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===u?i.unshift(s):d[l]=s)}c&&Object.defineProperty(c,r.name,d),f=!0};Object.defineProperty(t,"__esModule",{value:!0}),t.Player=void 0;var o,a=n(88052),s=n(40306),u=n(3336),l=n(45202),c=n(9768),d=n(20213),f=n(88210),p=n(29691),h=n(69957),y=n(44468),v=n(70850),E=0;function g(){o||(o=new WeakMap)}function m(e,t){g();var n=o.get(e);if(!n)throw new y.PlayerAPINotAvailableError(t);return n}t.Player=function(){var e,t,n,S,_,b,T,P,A,M,O,R,I,C,N=[];return e=function(){function e(e,t){r(this,N),this.ki(e,t)}return e.prototype.ki=function(e,t){if(!(e instanceof HTMLElement))throw new u.PlayerError(s.ErrorCode.SETUP_NO_HTML_ELEMENT,void 0,"The player container must be an HTMLElement.");g();var n=new p.InternalPlayer(e,v.Util.generateUniqueId(),this);o.set(this,n),E++,n.setup(t)},Object.defineProperty(e.prototype,"version",{get:function(){return l.Environment.VERSION_NUMBER},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vr",{get:function(){return m(this,"vr").getVR()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return m(this,"buffer").bufferApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowlatency",{get:function(){return m(this,"lowlatency").lowLatencyApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"adaptation",{get:function(){return m(this,"adaptation").adaptationApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitles",{get:function(){return m(this,"subtitles").subtitlesApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"manifest",{get:function(){return m(this,"manifest").manifestApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"drm",{get:function(){return m(this,"drm").drmApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ads",{get:function(){return m(this,"ads")?o.get(this).getAds():null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sgai",{get:function(){return m(this,"sgai")?o.get(this).getSgaiAPI():null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"analytics",{get:function(){return m(this,"analytics").analyticsApi},set:function(e){m(this,"analytics").analyticsApi=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exports",{get:function(){return d},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t){m(this,"on").on(e,t)},e.prototype.addMetadata=function(e,t){return m(this,"addMetadata").addMetadata(e,t)},e.prototype.castStop=function(){m(this,"cast").castStop()},e.prototype.castVideo=function(){m(this,"castVideo").castVideo()},e.prototype.clearQueryParameters=function(){m(this,"clearQueryParameters").clearQueryParameters()},e.prototype.destroy=function(){var e=m(this,"destroy").destroy();return o.delete(this),E--,e},e.prototype.getAspectRatio=function(){return m(this,"getAspectRatio").getAspectRatio()},e.prototype.getAudio=function(){return m(this,"getAudio").getAudio()},e.prototype.getAudioBufferLength=function(){return m(this,"getAudioBufferLength").getAudioBufferLength()},e.prototype.getAudioQuality=function(){return m(this,"getAudioQuality").getAudioQuality()},e.prototype.getAvailableAudio=function(){return m(this,"getAvailableAudio").getAvailableAudio()},e.prototype.getAvailableAudioQualities=function(){return m(this,"getAvailableAudioQualities").getAvailableAudioQualities()},e.prototype.getAvailableSegments=function(){return m(this,"getAvailableSegments").getAvailableSegments()},e.prototype.getAvailableVideoQualities=function(){return m(this,"getAvailableVideoQualities").getAvailableVideoQualities()},e.prototype.getConfig=function(e){return m(this,"getConfig").getConfig(e)},e.prototype.getContainer=function(){return m(this,"getContainer").getContainer()},e.prototype.getCurrentTime=function(e){return void 0===e&&(e=y.TimeMode.AbsoluteTime),m(this,"getCurrentTime").getCurrentTime(c.API_ISSUER_NAME,e)},e.prototype.getDownloadedAudioData=function(){return m(this,"getDownloadedAudioData").getDownloadedAudioData()},e.prototype.getDownloadedVideoData=function(){return m(this,"getDownloadedVideoData").getDownloadedVideoData()},e.prototype.getDroppedVideoFrames=function(){return m(this,"getDroppedVideoFrames").getDroppedVideoFrames()},e.prototype.getDuration=function(){return m(this,"getDuration").getDuration()},e.prototype.getManifest=function(){return m(this,"getManifest").getManifest()},e.prototype.getMaxTimeShift=function(){return m(this,"getMaxTimeShift").getMaxTimeShift()},e.prototype.getPlaybackAudioData=function(){return m(this,"getPlaybackAudioData").getPlaybackAudioData()},e.prototype.getPlaybackSpeed=function(){return m(this,"getPlaybackSpeed").getPlaybackSpeed()},e.prototype.getPlaybackVideoData=function(){return m(this,"getPlaybackVideoData").getPlaybackVideoData()},e.prototype.getPlayerType=function(){return m(this,"getPlayerType").getPlayerType()},e.prototype.getSnapshot=function(e,t){return m(this,"getSnapshot").getSnapshot(e,t)},e.prototype.getStreamType=function(){return m(this,"getStreamType").getStreamType()},e.prototype.getSupportedDRM=function(){return m(this,"getSupportedDRM").getSupportedDRM()},e.prototype.getSupportedTech=function(e){return void 0===e&&(e=y.SupportedTechnologyMode.Platform),m(this,"getSupportedTech").getSupportedTech(e)},e.prototype.getThumbnail=function(e){return m(this,"getThumbnail").getThumbnail(e)},e.prototype.getTimeShift=function(){return m(this,"getTimeShift").getTimeShift()},e.prototype.getTotalStalledTime=function(){return m(this,"getTotalStalledTime").getTotalStalledTime()},e.prototype.getVideoBufferLength=function(){return m(this,"getVideoBufferLength").getVideoBufferLength()},e.prototype.getVideoQuality=function(){return m(this,"getVideoQuality").getVideoQuality()},e.prototype.getVolume=function(){return m(this,"getVolume").getVolume()},e.prototype.hasEnded=function(){return m(this,"hasEnded").hasEnded()},e.prototype.isCastAvailable=function(){return m(this,"isCastAvailable").isCastAvailable()},e.prototype.isCasting=function(){return m(this,"isCasting").isCasting()},e.prototype.isDRMSupported=function(e){return m(this,"isDRMSupported").isDRMSupported(e)},e.prototype.isLive=function(){return m(this,"isLive").isLive()},e.prototype.isMuted=function(){return m(this,"isMuted").isMuted()},e.prototype.isPaused=function(){return m(this,"isPaused").isPaused()},e.prototype.isPlaying=function(){return m(this,"isPlaying").isPlaying()},e.prototype.isStalled=function(){return m(this,"isStalled").isStalled()},e.prototype.load=function(e,t,n){return m(this,"load").load(e,t,{seeking:n})},e.prototype.mute=function(e){m(this,"mute").mute(e)},e.prototype.pause=function(e){m(this,"pause").pause(e)},e.prototype.play=function(e){return m(this,"play").play(e)},e.prototype.off=function(e,t){m(this,"off").off(e,t)},e.prototype.getSeekableRange=function(){return m(this,"getSeekableRange").getSeekableRange()},e.prototype.seek=function(e,t){return m(this,"seek").seek(e,t)},e.prototype.setAspectRatio=function(e){return m(this,"setAspectRatio").setAspectRatio(e)},e.prototype.setAudio=function(e){m(this,"setAudio").setAudio(e)},e.prototype.setAudioQuality=function(e){m(this,"setAudioQuality").setAudioQuality(e)},e.prototype.setAuthentication=function(e){m(this,"getPlayerInstance").setAuthentication(e)},e.prototype.setPlaybackSpeed=function(e){m(this,"setPlaybackSpeed").setPlaybackSpeed(e)},e.prototype.setPosterImage=function(e,t){m(this,"setPosterImage").setPosterImage(e,t)},e.prototype.setQueryParameters=function(e){m(this,"setQueryParameters").setQueryParameters(e)},e.prototype.setVideoElement=function(e){m(this,"setVideoElement").setVideoElement(e)},e.prototype.setVideoQuality=function(e){m(this,"setVideoQuality").setVideoQuality(e)},e.prototype.setVolume=function(e,t){m(this,"setVolume").setVolume(e,t)},e.prototype.setVRStereo=function(e){return m(this,"setVRStereo").setVRStereo(e)},e.prototype.timeShift=function(e,t){m(this,"timeShift").timeShift(e,t)},e.prototype.unload=function(){return m(this,"unload").unload()},e.prototype.unmute=function(e){m(this,"unmute").unmute(e)},e.prototype.isAirplayAvailable=function(){return m(this,"isAirplayAvailable").isAirplayAvailable()},e.prototype.isAirplayActive=function(){return m(this,"isAirplayActive").isAirplayActive()},e.prototype.showAirplayTargetPicker=function(){m(this,"showAirplayTargetPicker").showAirplayTargetPicker()},e.prototype.getBufferedRanges=function(){return m(this,"getBufferedRanges").getBufferedRanges()},e.prototype.preload=function(){m(this,"preload").preload()},e.prototype.setLogLevel=function(e){m(this,"setLogLevel").setLogLevel(e)},e.prototype.getVideoElement=function(){return m(this,"getVideoElement").getVideoElement()},e.prototype.getViewMode=function(){return m(this,"getViewMode").getViewMode()},e.prototype.isViewModeAvailable=function(e){return m(this,"isViewModeAvailable").isViewModeAvailable(e)},e.prototype.setViewMode=function(e,t){m(this,"setViewMode").setViewMode(e,t)},e.prototype.getSource=function(){return m(this,"getSource").getSource()},Object.defineProperty(e,"version",{get:function(){return l.Environment.VERSION_NUMBER},enumerable:!1,configurable:!0}),e.addModule=function(e){a.ModuleManager.add(e)},e.removeModule=function(e){if(E>0)throw new u.PlayerError(s.ErrorCode.MODULE_REMOVED,void 0,"Cannot remove module while player instances are active");a.ModuleManager.remove(e)},e.getModules=function(){return a.ModuleManager.getModuleNames()},e}(),function(){var r="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t=[(0,h.trackPerformance)("Player.init")],n=[f.EnumerableValue],S=[f.EnumerableValue],_=[f.EnumerableValue],b=[f.EnumerableValue],T=[f.EnumerableValue],P=[f.EnumerableValue],A=[f.EnumerableValue],M=[f.EnumerableValue],O=[f.EnumerableValue],R=[f.EnumerableValue],I=[f.EnumerableValue],C=[f.EnumerableValue],i(e,null,t,{kind:"method",name:"ki",static:!1,private:!1,access:{has:function(e){return"ki"in e},get:function(e){return e.ki}},metadata:r},null,N),i(e,null,n,{kind:"getter",name:"version",static:!1,private:!1,access:{has:function(e){return"version"in e},get:function(e){return e.version}},metadata:r},null,N),i(e,null,S,{kind:"getter",name:"vr",static:!1,private:!1,access:{has:function(e){return"vr"in e},get:function(e){return e.vr}},metadata:r},null,N),i(e,null,_,{kind:"getter",name:"buffer",static:!1,private:!1,access:{has:function(e){return"buffer"in e},get:function(e){return e.buffer}},metadata:r},null,N),i(e,null,b,{kind:"getter",name:"lowlatency",static:!1,private:!1,access:{has:function(e){return"lowlatency"in e},get:function(e){return e.lowlatency}},metadata:r},null,N),i(e,null,T,{kind:"getter",name:"adaptation",static:!1,private:!1,access:{has:function(e){return"adaptation"in e},get:function(e){return e.adaptation}},metadata:r},null,N),i(e,null,P,{kind:"getter",name:"subtitles",static:!1,private:!1,access:{has:function(e){return"subtitles"in e},get:function(e){return e.subtitles}},metadata:r},null,N),i(e,null,A,{kind:"getter",name:"manifest",static:!1,private:!1,access:{has:function(e){return"manifest"in e},get:function(e){return e.manifest}},metadata:r},null,N),i(e,null,M,{kind:"getter",name:"drm",static:!1,private:!1,access:{has:function(e){return"drm"in e},get:function(e){return e.drm}},metadata:r},null,N),i(e,null,O,{kind:"getter",name:"ads",static:!1,private:!1,access:{has:function(e){return"ads"in e},get:function(e){return e.ads}},metadata:r},null,N),i(e,null,R,{kind:"getter",name:"sgai",static:!1,private:!1,access:{has:function(e){return"sgai"in e},get:function(e){return e.sgai}},metadata:r},null,N),i(e,null,I,{kind:"getter",name:"analytics",static:!1,private:!1,access:{has:function(e){return"analytics"in e},get:function(e){return e.analytics}},metadata:r},null,N),i(e,null,C,{kind:"getter",name:"exports",static:!1,private:!1,access:{has:function(e){return"exports"in e},get:function(e){return e.exports}},metadata:r},null,N),r&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})}(),e}()},44468:function(e,t,n){"use strict";var r,i,o,a=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.TimeMode=t.SupportedTechnologyMode=t.ViewMode=t.PlayerAPINotAvailableError=t.LogLevel=t.BufferType=t.MediaType=t.StreamType=t.PlayerType=t.VideoDynamicRange=void 0;var s=n(40306),u=n(3336),l=n(32886);Object.defineProperty(t,"PlayerType",{enumerable:!0,get:function(){return l.PlayerType}});var c,d,f,p,h=n(65623);Object.defineProperty(t,"StreamType",{enumerable:!0,get:function(){return h.StreamType}}),function(e){e.SDR="sdr",e.HDR="hdr",e.Unknown="unknown"}(c||(t.VideoDynamicRange=c={})),function(e){e.Audio="audio",e.Video="video",e.Subtitles="subtitles",e.Thumbnails="thumbnails"}(d||(t.MediaType=d={})),function(e){e.ForwardDuration="forwardduration",e.BackwardDuration="backwardduration"}(f||(t.BufferType=f={})),function(e){e.DEBUG="debug",e.LOG="log",e.WARN="warn",e.ERROR="error",e.OFF="off"}(p||(t.LogLevel=p={})),t.PlayerAPINotAvailableError=function(e){function t(t){return e.call(this,s.ErrorCode.API_NOT_AVAILABLE,void 0,"Cannot use the `player.".concat(t,"` API: the player has already been destroyed."))||this}return a(t,e),t}(u.PlayerError),function(e){e.Inline="inline",e.Fullscreen="fullscreen",e.PictureInPicture="pictureinpicture"}(r||(t.ViewMode=r={})),function(e){e.Platform="platform",e.Modules="modules",e.PlatformAndModules="platformandmodules"}(i||(t.SupportedTechnologyMode=i={})),function(e){e.RelativeTime="relativetime",e.AbsoluteTime="absolutetime"}(o||(t.TimeMode=o={}))},72786:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerBufferApiFactory=void 0,t.PlayerBufferApiFactory=function(){function e(){}return e.create=function(e){return new(function(){function t(){}return t.prototype.setTargetLevel=function(t,n,r){e.setTargetBufferLevel(t,n,r)},t.prototype.getLevel=function(t,n){return e.getBufferLevel(t,n)},t}())},e}()},21281:function(e,t){"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LiveSynchronizationMethod=t.RttEstimationMethod=t.AdaptationLogicType=t.TimelineReferencePoint=void 0,function(e){e.Start="start",e.End="end",e.CurrentTime="currenttime"}(n||(t.TimelineReferencePoint=n={})),function(e){e.BUFFER="v1",e.BUFFER_FILL_RATE="v2",e.DOWNLOAD_PREDICTION="v3",e.LOW_LATENCY="low-latency-v1",e.WISH="wish"}(r||(t.AdaptationLogicType=r={})),function(e){e.WeightedAverage="weightedaverage",e.Median="median"}(i||(t.RttEstimationMethod=i={})),function(e){e.HttpHead="httphead",e.HttpXsDate="httpxsdate",e.HttpIso="httpiso"}(o||(t.LiveSynchronizationMethod=o={}))},53031:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerContext=void 0;var r=n(17564),i=n(56481),o=n(70962),a=n(6873),s=n(8973),u=n(21513),l=n(61089),c=n(70850),d=n(85902);t.PlayerContext=function(){function e(e){this.internalPlayer=e.internalPlayer,this.internalPlayerID=c.Util.generateUniqueId(),this.config=e.config||{playback:{}},this.storedConfig=e.storedConfig,this.settings=e.settings||o.DefaultSettings,this.bufferSettings=new r.BufferSettings(this.settings.TARGET_BUFFER_LEVEL,e.logger),this.parentHtmlElement=e.container||null,this.i5(),this.logger=e.logger,this.eventHandler=e.eventHandler,this.serviceManager=e.serviceManager,this.segmentInfoService=e.segmentInfoService,this.segmentPrefetchingService=e.segmentPrefetchingService,this.segmentCacheService=e.segmentCacheService,this.adRestorationOptimizationService=e.adRestorationOptimizationService,this.h5=!1}return e.prototype.i5=function(){this.store=new l.StoreService((0,u.default)(),"instances",this.internalPlayerID),this.store.addReducers({player:s.PlayerReducer,metrics:a.MetricsReducer})},e.prototype.setVideoElement=function(e){this.videoElement=d.VideoElementWrapperFactory.createWrappedVideoElement(this,e)},e.prototype.setSourceContext=function(e){this.sourceContext=e},e.prototype.setRenderer=function(e){this.renderer=e},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this.h5},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.h5=!0,this.serviceManager=(0,i.dispose)(this.serviceManager),this.renderer=null,this.parentHtmlElement=null,this.eventHandler=null,this.segmentInfoService=null,this.segmentPrefetchingService=null,this.segmentCacheService=void 0,this.adRestorationOptimizationService=null,this.store=(0,i.dispose)(this.store)},e}()},29242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerFactory=void 0;var r=n(88052),i=n(62756),o=n(40306),a=n(3336),s=n(44468),u=n(21513),l=n(47993),c=n(43767);t.PlayerFactory=function(){function e(){this.j5=c.FileLoader.getInstance()}return e.constructSetupError=function(t,n,r,i){return e.isSourceValid(n)?t?new a.PlayerError(o.ErrorCode.SOURCE_FORCED_TECHNOLOGY_NOT_SUPPORTED,{"player-type":t.player,"supported-tech":JSON.stringify(r)},"The selected technology is not supported by the player on this platform."):n.hasOwnProperty("vr")?new a.PlayerError(o.ErrorCode.VR_INCOMPATIBLE_PLAYER_TECHNOLOGY,void 0,"This platform does not support VR playback."):i?new a.PlayerError(o.ErrorCode.SOURCE_NO_SUPPORTED_TECHNOLOGY,void 0,"The platform does not support any of the technologies needed to play back the provided source."):new a.PlayerError(o.ErrorCode.SOURCE_NO_STREAM_FOUND_FOR_SUPPORTED_TECHNOLOGY,{"supported-tech":JSON.stringify(r)},"The platform does not support any of the technologies needed to play back the provided source."):new a.PlayerError(o.ErrorCode.SOURCE_INVALID,{source:n},"No DASH / HLS / Smooth / Progressive stream detected in the provided source.")},e.isSourceValid=function(e){var t,n,r,i;return e&&!!(null!=(i=null!=(r=null!=(n=null!=(t=e.dash)?t:e.hls)?n:e.progressive)?r:e.smooth)?i:e.whep)},e.prototype.getInstance=function(t){var n=Object.getOwnPropertyNames(t.source),r=(0,u.getCapabilities)().techSupportedByPlatform,i=(0,l.getBestTech)(t.config.playback().preferredTech,t.source,t.forceTech);if(n.length>0&&!e.isSourceValid(t.source))return Promise.reject(new a.PlayerError(o.ErrorCode.SOURCE_STREAM_TYPE_NOT_SUPPORTED,{streamType:JSON.stringify(n),supportedTech:JSON.stringify(r)},"The specified stream type is not supported by this platform."));if(n.length>0&&!i)return Promise.reject(e.constructSetupError(t.forceTech,t.source,r,i));if(n.length<=0&&!r.length)return Promise.reject(e.constructSetupError(t.forceTech,t.source,r));n.length<=0&&(i=r[0]);var s=t.context.videoElement,c=s.getWrappedElement();t.styleManager?(t.styleManager.initializeInternalPlayer(c),t.styleManager.maybeStartTrackingVisibility(c)):!c.parentNode&&t.container&&t.container.appendChild(c),s.muted=t.playerInstance.muted,s.volume=t.playerInstance.volume/100;var d=t.config.adaptation(),f=d.bitrates.maxSelectableVideoBitrate;if((0,u.getCapabilities)().isMobile&&(d.bitrates.maxSelectableVideoBitrate=Math.min(f,1e7),d.exclude=!0),i){var p=e.createRenderer(t.context,i);t.context.setRenderer(p)}return this.l5(t.context,i)},e.createRenderer=function(e,t){return t.player===s.PlayerType.Html5?((0,u.getCapabilities)().isTizen||e.settings.DWORD_BASE_MEDIA_DECODE_TIMESTAMPS)&&r.ModuleManager.has(i.ModuleName.Tizen)?new(r.ModuleManager.get(i.ModuleName.Tizen).getTizenMSERendererConstructor())(e):(0,u.getCapabilities)().isWebOS&&r.ModuleManager.has(i.ModuleName.Webos)?new(r.ModuleManager.get(i.ModuleName.Webos).getWebosRendererConstructor())(e):(0,u.getCapabilities)().isPlayStation5&&r.ModuleManager.has(i.ModuleName.PlayStation5)?new(r.ModuleManager.get(i.ModuleName.PlayStation5).getPlayStation5MSERendererConstructor())(e):(0,u.getCapabilities)().isPlayStation4&&r.ModuleManager.has(i.ModuleName.PlayStation4)?new(r.ModuleManager.get(i.ModuleName.PlayStation4).getPlayStation4MSERendererConstructor())(e):(0,u.getCapabilities)().isVidaa&&r.ModuleManager.has(i.ModuleName.Vidaa)?new(r.ModuleManager.get(i.ModuleName.Vidaa).getVidaaMSERendererConstructor())(e):(0,u.getCapabilities)().isWpeWebKit&&r.ModuleManager.has(i.ModuleName.Wpe)?new(r.ModuleManager.get(i.ModuleName.Wpe).getWpeMSERendererConstructor())(e):new(0,r.ModuleManager.get(i.ModuleName.RendererMse).MSERenderer)(e):null},e.prototype.l5=function(e,t){var n,u=this;if(!e.renderer&&t.player===s.PlayerType.Html5)return Promise.reject(new a.PlayerError(o.ErrorCode.SETUP_NO_RENDERING_ENGINE,{tech:JSON.stringify(t)},"Could not create player: no suitable rendering engine was found. Additional modules may be required."));if(!this.k5&&r.ModuleManager.has(i.ModuleName.RemoteControl)){var l=r.ModuleManager.get(i.ModuleName.RemoteControl).RemoteControlManager;this.k5=new l(e,this.j5)}if(t.player===s.PlayerType.WebRtc)n=Promise.resolve(new(r.ModuleManager.get(i.ModuleName.EngineWebRtc)).WebRtcPlayer(e));else if(t.player===s.PlayerType.Native)n=Promise.resolve(new(r.ModuleManager.get(i.ModuleName.EngineNative)).NativePlayer(e));else{if(t.player!==s.PlayerType.Html5)return Promise.reject(new a.PlayerError(o.ErrorCode.SOURCE_STREAM_TYPE_NOT_SUPPORTED,{given:t.player,supported:"html5, native"},"The specified technology is not supported by the player."));n=e.renderer.ready().then(function(){return new(0,r.ModuleManager.get(i.ModuleName.EngineBitmovin).MediaPlayer)(e)})}return n.then(function(t){return u.k5?u.k5.getPlayerWrapper(e,t):t}).then(function(n){return{context:e,logger:e.logger,bitdashPlayer:n,technology:t,videoElement:e.videoElement}})},e}()},52546:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerStateService=void 0;var r=n(80813),i=n(9768),o=n(3714),a=n(23690),s=n(87827),u=n(85648);t.PlayerStateService=function(){function e(e){var t=this;this.q5=function(){t.t5((0,a.setPlayerHasBeenPlaying)(!1))},this.r5=function(){t.t5((0,a.setPlayerHasBeenPlaying)(!0)),t.t5((0,a.setPlayerSourceSwitching)(!1))},this.s5=function(){return s.getPlayerState(t.m5.store.getState())},this.t5=function(e){t.m5.store.dispatch(e)},this.w5=function(e,n){t.playbackState!==e&&(t.playbackState=e,t.t5((0,a.addPlayerPendingTransition)(e))),n&&n()},this.x5=function(e,n){if(t.playbackState!==e)t.playbackState=e,t.t5((0,a.filterPlayerPendingTransition)(e));else{if(!t.y5(e))return;t.m5.logger.debug("Pending state ".concat(u.PlaybackState[e])),t.t5((0,a.removePlayerPendingTransition)(0))}n&&n()},this.m5=e,this.n5=e.eventHandler,this.n5.on(o.PlayerEvent.Playing,this.r5,!0),this.n5.on(o.PlayerEvent.SourceUnloaded,this.q5,!0),this.t5((0,a.resetPlayerState)(["viewMode","remoteControlState"])),this.o5=e.serviceManager.get(r.ServiceName.StallTimeTrackerService),this.p5=!1}return e.prototype.reset=function(){this.transitionToSeekedState(!1),this.stallExit(),this.t5((0,a.setRendererStallAction)(!1)),this.playbackState=u.PlaybackState.None,this.seekState=u.SeekState.None},Object.defineProperty(e.prototype,"playbackState",{get:function(){return this.s5().playbackState},set:function(e){var t=this.s5().playbackState;this.m5.logger.debug("State change ".concat(u.PlaybackState[t]," -> ").concat(u.PlaybackState[e])),this.t5((0,a.setPlayerPlayback)(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seekState",{get:function(){return this.s5().seekState},set:function(e){var t=this.s5().seekState;this.m5.logger.debug("SeekState change ".concat(u.SeekState[t]," -> ").concat(u.SeekState[e])),this.t5((0,a.setPlayerSeek)(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeShiftState",{get:function(){return this.s5().timeShiftState},set:function(e){var t=this.s5().timeShiftState;this.m5.logger.debug("TimeShiftState change ".concat(u.TimeShiftState[t]," -> ").concat(u.TimeShiftState[e])),this.t5((0,a.setPlayerTimeShift)(e))},enumerable:!1,configurable:!0}),e.prototype.u5=function(e,t,n,r,s){this.seekState=e,r&&this.n5.dispatchEvent(o.PlayerEvent.Seek,{position:null!=s?s:this.z5(),seekTarget:t,issuer:n||i.API_ISSUER_NAME}),this.t5((0,a.setPlayerTargetPlaybackTime)(t))},e.prototype.transitionToSeekingState=function(e,t,n){void 0===n&&(n=!0),this.u5(u.SeekState.Seeking,e,t,n)},e.prototype.transitionToSeekingIOSState=function(e,t,n,r){void 0===n&&(n=!0),this.u5(u.SeekState.SeekingIOS,e,t,n,r)},e.prototype.transitionToSeekedState=function(e){void 0===e&&(e=!0),this.isSeeking()&&(this.seekState=u.SeekState.Seeked,e&&this.n5.dispatchEvent(o.PlayerEvent.Seeked)),this.v5()},e.prototype.v5=function(){this.t5((0,a.setPlayerTargetPlaybackTime)(-1))},e.prototype.isSeeking=function(){return s.getIsSeeking(this.s5())},e.prototype.transitionToTimeShiftingState=function(e,t,n,r){void 0===r&&(r=!0),this.t5((0,a.setPlayerTimeShift)(u.TimeShiftState.Shifting)),r&&this.n5.dispatchEvent(o.PlayerEvent.TimeShift,{position:e,target:t,issuer:n||i.API_ISSUER_NAME}),this.t5((0,a.setPlayerTargetPlaybackTime)(t))},e.prototype.transitionToTimeShiftedState=function(e){void 0===e&&(e=!0),this.t5((0,a.setPlayerTimeShift)(u.TimeShiftState.Shifted)),e&&this.n5.dispatchEvent(o.PlayerEvent.TimeShifted),this.v5()},e.prototype.transitionToStoppedState=function(){this.t5((0,a.setPlayerPlayback)(u.PlaybackState.Stopped))},e.prototype.transitionToSourceSwitchingState=function(){this.t5((0,a.setPlayerSourceSwitching)(!0))},e.prototype.isSourceSwitching=function(){return s.getIsSourceSwitching(this.s5())},e.prototype.isInitial=function(){return s.getIsInitialPlayback(this.s5())},e.prototype.isTimeShifting=function(){return s.getIsTimeShifting(this.s5())},Object.defineProperty(e.prototype,"isStalled",{get:function(){return this.s5().isStalled},set:function(e){this.t5((0,a.setPlayerStall)(e))},enumerable:!1,configurable:!0}),e.prototype.setIsRendererStalling=function(e){this.t5((0,a.setRendererStallAction)(e)),e&&this.isPlaying()&&!this.hasPendingTransitionToPausedState()&&(this.p5=!0),e?this.stallEnter():this.stallExit()},e.prototype.getIsRendererStalling=function(){return s.getIsRendererStalled(this.s5())},e.prototype.isPlaying=function(){return s.getIsPlaying(this.s5())},e.prototype.isPlay=function(){return s.getIsPlay(this.s5())},e.prototype.isPaused=function(){return s.getIsPaused(this.s5())},e.prototype.isStopped=function(){return s.getIsStopped(this.s5())},e.prototype.stallEnter=function(){this.isPlay()||this.isSeeking()||this.isTimeShifting()||this.isSeeking()||this.isTimeShifting()||this.isStalled||this.isPaused()||this.isStopped()||(this.isStalled=!0,this.o5.startStall(),this.n5.dispatchEvent(o.PlayerEvent.StallStarted,{}))},e.prototype.stallExit=function(){this.isStalled&&(this.isStalled=!1,this.o5.endStall(),this.n5.dispatchEvent(o.PlayerEvent.StallEnded,{}))},e.prototype.hasPendingTransitionToPausedState=function(){return this.y5(u.PlaybackState.Paused)},e.prototype.y5=function(e){return this.s5().pendingTransitions[0]===e},e.prototype.z5=function(){return this.m5.videoElement.currentTime},e.prototype.A5=function(e,t,n){var r=this;this.isPlaying()||(e?n(u.PlaybackState.Play,function(){r.n5.dispatchEvent(o.PlayerEvent.Play,{time:r.z5(),issuer:t},!1)}):n(u.PlaybackState.Play))},e.prototype.transitionToPlayState=function(e,t){this.A5(e,t,this.x5)},e.prototype.transitionToPendingPlayState=function(e,t){this.A5(e,t,this.w5)},e.prototype.transitionToPlayingState=function(e,t){var n=this;void 0===t&&(t=!0),this.x5(u.PlaybackState.Playing,function(){t&&n.n5.dispatchEvent(o.PlayerEvent.Playing,{time:n.z5(),issuer:e},!1)})},e.prototype.transitionToPausedState=function(e,t,n){var r=this;(void 0===n&&(n=!1),n&&this.p5)?(this.m5.logger.insane("Ignoring transition to paused from video element"),this.p5=!1):(this.p5=!1,e&&this.isStalled&&this.stallExit(),this.m5.videoElement.ended?this.m5.logger.debug("Ignoring transition to Paused because video has ended"):e?this.x5(u.PlaybackState.Paused,function(){r.n5.dispatchEvent(o.PlayerEvent.Paused,{time:r.z5(),issuer:t},!1)}):this.w5(u.PlaybackState.Paused))},Object.defineProperty(e.prototype,"targetPlaybackTime",{get:function(){return this.s5().targetPlaybackTime},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playbackSpeed",{get:function(){var e=this.s5().playbackSpeed;return e.speed*e.multiplier},enumerable:!1,configurable:!0}),e.prototype.setPlaybackSpeed=function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!0);var r=s.getPlaybackSpeed(this.s5());r.speed===e&&r.multiplier===t||(this.t5((0,a.setPlayerPlaybackSpeed)({speed:e,multiplier:t})),n&&this.n5.dispatchEvent(o.PlayerEvent.PlaybackSpeedChanged,{from:r.speed,to:e}))},Object.defineProperty(e.prototype,"seekingOrTimeshifting",{get:function(){return s.getIsSeekingOrTimeshifting(this.s5())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seekedOrTimeshifted",{get:function(){return s.getIsSeekedOrTimeshifted(this.s5())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInitialStall",{get:function(){return s.getIsInitialStall(this.s5())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasBeenPlaying",{get:function(){return this.s5().hasBeenPlaying},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.n5.off(o.PlayerEvent.Playing,this.r5),this.n5.off(o.PlayerEvent.SourceUnloaded,this.q5)},e}()},29488:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):(function(e){return e instanceof n?e:new n(function(t){t(e)})})(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerStateStore=void 0;var a=n(9768),s=n(3714),u=n(19274);t.PlayerStateStore=function(){function e(e,t){var n=this;this.context=e,this.internalPlayer=t,this.storedState=null,this.r4=[],this.w4=function(e){var t=e.subtitle;n.r4.some(function(e){return e.id===t.id})&&(n.internalPlayer.enableSubtitle(t.id),n.r4=n.r4.filter(function(e){return e.id!==t.id}))},this.x4=function(){n.v4()},t.on(s.PlayerEvent.SubtitleAdded,this.w4),t.on(s.PlayerEvent.SourceUnloaded,this.x4)}return e.prototype.getStoredState=function(){return this.storedState},e.prototype.hasStoredState=function(){return null!==this.storedState},e.prototype.capture=function(e){return!(e===a.RECOVERY_ISSUER_NAME&&!this.internalPlayer.getSource()||(this.storedState=this.capturePlayerState(e),0))},e.prototype.clear=function(){this.storedState=null},e.prototype.dispose=function(){this.v4()},e.prototype.capturePlayerState=function(e){var t,n=this.internalPlayer.isLive(),i=n&&!this.context.settings.ENABLE_SEEK_FOR_LIVE;return{source:this.internalPlayer.getSource(),loadOptions:this.internalPlayer.getLoadOptions(),playbackSpeed:this.internalPlayer.getPlaybackSpeed(),audioTrackId:null==(t=this.internalPlayer.getAudio())?void 0:t.id,audioQualityId:this.internalPlayer.getAudioQuality().id,videoQualityId:this.internalPlayer.getVideoQuality().id,subtitles:this.internalPlayer.listSubtitles().map(function(e){return r({},e)}),isLive:n,useTimeshiftForRestore:i,playbackPosition:i?this.internalPlayer.getTimeShift():this.internalPlayer.getCurrentTime(e),wasPaused:this.internalPlayer.isPaused(),contentDuration:this.internalPlayer.getDuration(),sourceIdentifier:this.context.sourceContext.sourceIdentifier,hasEnded:this.internalPlayer.hasEnded(),isStartup:!this.internalPlayer.hasCurrentSourcePlayedOnce()}},e.prototype.loadSource=function(e){var t,n,r=this.storedState;return(null==r?void 0:r.source)?this.internalPlayer.load(r.source,null==(t=r.loadOptions)?void 0:t.forceTechnology,null==(n=r.loadOptions)?void 0:n.restrictions,e):Promise.reject(Error("no source to load"))},e.prototype.restore=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:if(!(t=this.storedState))throw Error("no stored state to restore");if(!t.source)throw Error("stored state has no source to restore");return[4,this.loadSource(e)];case 1:return n.sent(),this.restoreBaseState(t),this.s4(e),this.restoreSubtitles(t.subtitles),[2,!t.wasPaused]}})})},e.prototype.s4=function(e){var t=this.storedState;t&&(t.useTimeshiftForRestore?this.internalPlayer.timeShift(t.playbackPosition,e):this.internalPlayer.seek(t.playbackPosition,e))},e.prototype.restoreBaseState=function(e){e&&(this.internalPlayer.setPlaybackSpeed(e.playbackSpeed),this.t4(e.audioTrackId),this.internalPlayer.setAudioQuality(e.audioQualityId),this.internalPlayer.setVideoQuality(e.videoQualityId))},e.prototype.t4=function(e){var t=this;if(null!=e){var n=function(){return!!t.internalPlayer.getAvailableAudio().find(function(t){return t.id===e})&&(t.internalPlayer.setAudio(e),!0)};n()||(this.context.logger.log("Delaying audio track restore",e),this.u4(n,s.PlayerEvent.AudioAdded))}},e.prototype.restoreSubtitles=function(e){for(var t=function(e){var t=n.internalPlayer.listSubtitles().find(function(t){return t.id===e.id});t?!t.enabled&&e.enabled&&n.internalPlayer.enableSubtitle(e.id,!1,!1):e.url?n.internalPlayer.addSubtitle(e):e.enabled&&(n.context.logger.log("Delaying subtitle restoration as track is not available yet",e),n.r4.push(e))},n=this,r=0,i=e;r<i.length;r++)t(i[r])},e.prototype.u4=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=2e3);var l=function(){var e;clearTimeout(o),a.internalPlayer.off(t,c),a.internalPlayer.off(s.PlayerEvent.SourceUnloaded,l),n?a.internalPlayer.off(n,l):null==(e=a.context.videoElement)||e.removeEventListener(u.MediaElementEvent.canplay,l)},c=function(t){e(t)&&l()};n?this.internalPlayer.onInternal(n,l):null==(i=this.context.videoElement)||i.addEventListener(u.MediaElementEvent.canplay,l),this.internalPlayer.onInternal(t,c),this.internalPlayer.onInternal(s.PlayerEvent.SourceUnloaded,l),o=setTimeout(l,r)},e.prototype.v4=function(){this.internalPlayer.off(s.PlayerEvent.SubtitleAdded,this.w4),this.internalPlayer.off(s.PlayerEvent.SourceUnloaded,this.x4),this.r4=[]},e}()},32886:function(e,t){"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerType=void 0,function(e){e.Html5="html5",e.Native="native",e.WebRtc="webrtc",e.Unknown="unknown"}(n||(t.PlayerType=n={}))},83913:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecoveryService=void 0;var r=n(40306),i=n(25926),o=n(4224),a=n(9768),s=n(3714),u=n(29488),l=n(40153),c=[s.PlayerEvent.SourceLoaded,s.PlayerEvent.SourceUnloaded,s.PlayerEvent.Play,s.PlayerEvent.Ready,s.PlayerEvent.Playing,s.PlayerEvent.Paused,s.PlayerEvent.Seek,s.PlayerEvent.Seeked,s.PlayerEvent.TimeShift,s.PlayerEvent.TimeShifted],d=c.filter(function(e){return e!==s.PlayerEvent.Play&&e!==s.PlayerEvent.Playing});t.RecoveryService=function(){function e(e){this.playerContext=e,this.B5=null,this.C5=null,this.D5=null,this.E5=null,this.F5=null,this.G5=!1,this.H5=-1,this.I5=null,this.B5=e,this.C5=e.internalPlayer,this.D5=e.eventHandler,this.E5=e.logger}return Object.defineProperty(e.prototype,"isRecovering",{get:function(){return this.G5},enumerable:!1,configurable:!0}),e.prototype.J5=function(e){return[r.ErrorCode.PLAYBACK_ERROR,r.ErrorCode.PLAYBACK_VIDEO_DECODING_ERROR].includes(e.code)},e.prototype.K5=function(){var e,t,n;return(null==(t=null==(e=this.B5)?void 0:e.sourceContext)?void 0:t.isAd)?{message:"ad is currently playing",shouldFireError:!0}:(null==(n=this.D5)?void 0:n.hasErrorBeenFired)?{message:"error already fired",shouldFireError:!1}:this.G5?{message:"another recovery is already in progress",shouldFireError:!0}:null},e.prototype.handleError=function(e){var t,n,r,i,o,a,s,u=this;if(!this.J5(e))return null==(n=null==(t=this.B5)?void 0:t.eventHandler)||n.fireError(e),Promise.resolve();var l=this.K5();return null!==l?(null==(o=null==(i=null==(r=this.B5)?void 0:r.logger)?void 0:i.debug)||o.call(i,"Skipping recovery for ".concat(e.code," (").concat(e.name,"): ").concat(l.message)),l.shouldFireError&&(null==(s=null==(a=this.B5)?void 0:a.eventHandler)||s.fireError(e)),Promise.resolve()):this.L5("error ".concat(e.code," (").concat(e.name,")")).catch(function(){var t,n;null==(n=null==(t=u.B5)?void 0:t.eventHandler)||n.fireError(e)})},e.prototype.recover=function(e){var t=this.K5();return null!==t?Promise.reject(Error("Skipping recovery (".concat(e,"): ").concat(t.message))):this.L5(e)},e.prototype.L5=function(e){var t=this,n=this.C5;return n?(this.G5=!0,Promise.resolve().then(function(){return t.M5(n)}).then(function(r){n.fireEvent(s.PlayerEvent.Warning,new i.PlayerWarning(o.WarningCode.PLAYBACK_VIDEO_DECODING_ERROR_RECOVERY,"Reloading the media source to recover from: ".concat(e),{time:t.H5}));var u,l,f,p=n.hasCurrentSourcePlayedOnce(),h=p?c:d;return t.F5=function(e){return!h.includes(e)},null==(u=t.D5)||u.addExternalEventFilter(t.F5),null==(f=null==(l=t.E5)?void 0:l.debug)||f.call(l,"Reloading source for recovery"),r.restore(a.RECOVERY_ISSUER_NAME).then(function(e){var r;return t.I5=null,null==(r=t.E5)||r.log("Restoring playback state during recovery",{shouldPlay:e,hasPlayedBefore:p}),e?n.play(a.RECOVERY_ISSUER_NAME):n.pause(a.RECOVERY_ISSUER_NAME)}).catch(function(e){var n,r,i;throw null==(r=null==(n=t.E5)?void 0:n.error)||r.call(n,"Failed to recover from error during reload sequence:",e),null==(i=t.I5)||i.dispose(),t.I5=null,e})}).finally(function(){var e;t.F5&&(null==(e=t.D5)||e.removeExternalEventFilter(t.F5),t.F5=null),t.G5=!1})):Promise.resolve()},e.prototype.M5=function(e){if(this.I5=new u.PlayerStateStore(this.B5,e),!this.I5.capture(a.RECOVERY_ISSUER_NAME))throw this.I5.dispose(),this.I5=null,Error("No source available for recovery");var t=e.getCurrentTime(a.RECOVERY_ISSUER_NAME);if(l.ErrorRecoveryUtil.wasRecoveryAttemptedAtPosition(t,this.H5))throw this.I5.dispose(),this.I5=null,Error("Recovery not allowed: already attempted at position ".concat(t));return this.H5=t,this.I5},e.prototype.dispose=function(){var e,t;this.G5&&this.F5&&(null==(e=this.D5)||e.removeExternalEventFilter(this.F5),this.F5=null),null==(t=this.I5)||t.dispose(),this.I5=null,this.H5=-1,this.G5=!1,this.B5=null,this.C5=null,this.D5=null,this.E5=null},e}()},25541:function(e,t,n){"use strict";
vendor: 4,496 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.dateRangeToISOString=function(e){return new Date(Date.parse(e.startDate)+(0,r.toMilliSeconds)(e.duration)).toISOString()},t.mergeSegmentLists=i,t.updateTimeline=function(e,t){return t.forEach(function(e){return e.consumed=!1}),0===e.length?t:i(e,t)},t.populateCurrentTimelineWithPlaybackTime=function(e,t,n){var r;e[t]&&(function(){r=n;for(var i=t;i<e.length;i++)e[i].playbackTime=r,r+=e[i].duration}(),function(){r=n;for(var i=t-1;i>=0;i--)e[i].playbackTime=r-e[i].duration,r-=e[i].duration}())};var r=n(89927);function i(e,t){var n={},r=function(e){var t=e.discontinuitySequenceNumber,n=e.uri;return t?"".concat(n,"_").concat(t):n};return t.forEach(function(e){return n[r(e)]=e}),e.forEach(function(e){n[r(e)]&&(n[r(e)]=e)}),Object.values(n)}},70962:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultSettings=t.WishDefaultConfig=void 0;var r,i,o,a,s=n(29669),u=n(44468);t.WishDefaultConfig={TARGET_BITRATE_FACTOR:1,TARGET_BUFFER_FACTOR:.8,BITRATE_MODIFIER_FUNCTION_TYPE:"log",USE_RATE_BASED_SELECTION_ON_SEEKING:!1},t.DefaultSettings={TARGET_BUFFER_LEVEL:((r={})[u.MediaType.Video]=((i={})[u.BufferType.ForwardDuration]=40,i[u.BufferType.BackwardDuration]=20,i),r[u.MediaType.Audio]=((o={})[u.BufferType.ForwardDuration]=40,o[u.BufferType.BackwardDuration]=20,o),r),BUFFER_LOGIC_ACTIVATION_THRESHOLD:10,MIN_TIMELINE_LIVE_OFFSET:4,RETRY_DELAY:2,MAX_INCREASE_RETRY_DELAY_SEC:30,INCREASE_RETRY_DELAY:!0,INCREASE_RETRY_DELAY_BASE_SEC:.25,DISABLE_RETRY_FOR_RESPONSE_STATUS:((a={})[s.HttpRequestType.MANIFEST_DASH]=[],a[s.HttpRequestType.MANIFEST_HLS_MASTER]=[],a[s.HttpRequestType.MANIFEST_HLS_VARIANT]=[],a[s.HttpRequestType.MANIFEST_SMOOTH]=[],a[s.HttpRequestType.MANIFEST_ADS]=[],a[s.HttpRequestType.MANIFEST_STEERING]=[],a[s.HttpRequestType.MEDIA_AUDIO]=[],a[s.HttpRequestType.MEDIA_VIDEO]=[],a[s.HttpRequestType.MEDIA_SUBTITLES]=[],a[s.HttpRequestType.MEDIA_THUMBNAILS]=[],a[s.HttpRequestType.MEDIA_SEGMENTINDEX]=[],a[s.HttpRequestType.DRM_LICENSE_WIDEVINE]=[],a[s.HttpRequestType.DRM_LICENSE_PLAYREADY]=[],a[s.HttpRequestType.DRM_LICENSE_FAIRPLAY]=[],a[s.HttpRequestType.DRM_LICENSE_PRIMETIME]=[],a[s.HttpRequestType.DRM_LICENSE_CLEARKEY]=[],a[s.HttpRequestType.DRM_LICENSE_TVKEY]=[],a[s.HttpRequestType.DRM_CERTIFICATE_FAIRPLAY]=[],a[s.HttpRequestType.HLS_INTERSTITIALS_ASSET_LIST]=[],a[s.HttpRequestType.KEY_HLS_AES]=[],a[s.HttpRequestType.TIME_SYNC]=[],a[s.HttpRequestType.WEBRTC_SDP_REQUEST]=[],a[s.HttpRequestType.WEBRTC_SDP_ANSWER]=[],a[s.HttpRequestType.WEBRTC_SDP_OFFER]=[],a[s.HttpRequestType.INTERNAL]=[],a[s.HttpRequestType.UNKNOWN]=[],a),METRIC_HISTORY_SIZE:30,DEFAULT_ADAPTATION_RULE_HISTORY_SIZE:40,LOG_LEVEL:2,LOG_PREFIX:"",RESTART_THRESHOLD:.9,RESTART_THRESHOLD_DELTA:.5,STARTUP_THRESHOLD:.9,STARTUP_THRESHOLD_DELTA:.5,DURATION_MISMATCH_TOLERANCE:.5,MAX_STARTUP_BUFFER:1/0,START_SEARCHING_END:2,MAX_RETRIES:2,MAX_CDN_RETRIES:2,MAX_MPD_RETRIES:2,MPD_RETRY_DELAY:.5,MPD_UPDATE_PERIOD_TOLERANCE:5,DRM_MAX_RETRIES:1,DRM_RETRY_DELAY:.25,DRM_WITH_CREDENTIALS:!1,DRM_STALL_RECOVERY_SETTLE_TIMEOUT_MS:1500,DRM_STALL_RECOVERY_LICENSE_ACTIVITY_LOOKBACK_MS:2e3,CAST_APPLICATION_ID:"D3A86B20",CAST_MESSAGE_NAMESPACE:"urn:x-cast:com.bitmovin.player.cast2",BUFFER_VISIBILITY_DELAY:2,MIN_SELECTABLE_VIDEO_BITRATE:0,MAX_SELECTABLE_VIDEO_BITRATE:1/0,EXCLUDE_DISALLOWED_REPRESENTATIONS:!1,MIN_SELECTABLE_AUDIO_BITRATE:0,MAX_SELECTABLE_AUDIO_BITRATE:1/0,XHR_TIMEOUT:20,QUERY_PARAMETERS:void 0,GAP_TOLERANCE:.1,END_OF_BUFFER_TOLERANCE:.1,END_OF_BUFFER_RECOVERY_TOLERANCE:.5,MAX_POTENTIAL_GAP_TIME_DEVIATION:.125,SEEK_TO_END_OFFSET:2,MINIMUM_ALLOWED_UPDATE_PERIOD:1,MAXIMUM_ALLOWED_UPDATE_PERIOD:1/0,GLOBAL_DISABLE_SEEKING:!1,PRE_ROLL_RESTORE_THRESHOLD:.25,IOS_MIN_TIMEUPDATES_AFTER_AD:2,HTTP_HEADERS:{},DOWNLOAD_DURATION_SAFETY_MARGIN:.4,MAXIMUM_DOWNLOAD_DURATION_MULTIPLIER:2,MAXIMUM_DOWNLOAD_DURATION_MULTIPLIER_SAME_QUALITY:3,RATE_SAFETY_MARGIN_PERCENTAGE:10,MAX_ALLOWED_BANDWIDTH_ESTIMATION:1/0,LIVE_SEGMENT_LIST_START_INDEX_OFFSET:0,MAX_NUM_CACHED_SEGMENTS:1,SEGMENT_CACHE_MEDIA_TYPES:[],TRUN_VERSION:void 0,IGNORE_MP4_EDTS_BOX:!0,HLS_AUDIO_ONLY_THRESHOLD_BITRATE:2e5,ENABLE_SEEK_FOR_LIVE:!1,ENABLE_AD_SEGMENT_PRELOADING:!1,LIVE_EDGE_DISTANCE:0,QUALITY_THRESHOLD:.5,QUALITY_UPPER_THRESHOLD:45,MAX_CONSECUTIVE_VR_ERRORS:3,MAX_CONSECUTIVE_RENDERER_ERRORS:3,DISABLE_HLS_BACKUP_STREAM_FAILOVER:!1,PLAYBACK_TIMEOUT:1500,HLS_SYNC_VIA_MEDIA_SEQUENCE:!1,STOP_DOWNLOAD_ON_PAUSE:!1,VR_SCHEME_ID_URI:"https://bitmov
1in.com/082017/vr",HLS_VR_CHARACTERISTICS_UTI:"com.bitmovin.vr.",SAFARI_NUM_PROGRESS_EVENTS_AFTER_SEEK_GLITCH:5,SEGMENT_LOADER_POOL_SIZE:{},NATIVE_HLS_PARSING:!1,NATIVE_HLS_DOWNLOAD_ERROR_HANDLING:!1,AKAMAI_DATETIME_PARSING:!1,QJY_BROWSER_WORKAROUND:!1,DWORD_BASE_MEDIA_DECODE_TIMESTAMPS:!1,FORCE_BASE_MEDIA_DECODE_TIME_REWRITE:!1,WEBOS_MAX_SAFE_BMDT:1/0,WEBOS_MAX_SAFE_PTO:1/0,TIZEN_MAX_SAFE_BMDT:1/0,TIZEN_MAX_SAFE_PTO:1/0,VIDAA_MAX_SAFE_BMDT:0xffffffff,VIDAA_MAX_SAFE_PTO:0xffffffff,ADAPTATION_SET_SWITCHING_WITHOUT_SUPPLEMENTAL_PROPERTY:!1,MINIMAL_BACKWARD_BUFFER_CLEARING_INTERVAL:.5,CHUNKED_CMAF_STREAMING:!1,LOW_LATENCY_DEFAULT_TARGET_LATENCY:5,LOW_LATENCY_BUFFER_GUARD:.5,LOW_LATENCY_DEFAULT_FALLBACK_PLAYBACK_RATE:.95,LOW_LATENCY_DEFAULT_CATCHUP_PLAYBACK_RATE:1.2,LOW_LATENCY_SEEK_AHEAD:1,ACCEPTABLE_TIMESHIFT_INACCURACY:3,IGNORE_HLS_AUDIO_GROUPS:!1,OPTIMIZE_AD_RESTORATION:!0,AD_RESTORATION_SEGMENT_PREFETCHING_DURATION:5,MIN_SAFE_BUFFER_LEVEL:3,THUMBNAIL_TO_PLAYER_SIZE_RATIO:.1,FAIRPLAY_IGNORE_DUPLICATE_INIT_DATA_KEY_ERRORS:!1,NO_QUOTA_EXCEEDED_ADJUSTMENT:!1,RESUME_LIVE_CONTENT_AT_PREVIOUS_POSITION_AFTER_AD_BREAK:!1,MIN_EFFECTIVE_SEGMENT_DOWNLOAD_TIME:.5,fixed:{APP_NAME:"html5",VERSION:"8.275.0"},CLEAR_BUFFERS_ON_SEEKING_BACKWARDS:!1,DROP_INVALID_SEGMENTS:!1,PROACTIVE_GAP_SKIP_DISTANCE_SECONDS:0,MIN_SIZE_FOR_GAP_SKIPPING:0,FORCE_SOFTWARE_DECRYPTION:!1,SEGMENT_LOADING_PROGRESS_CHECK_INTERVAL:.5,ENABLE_SEGMENT_INFO_PROVIDER_FROM_STORE:!1,HLS_SYNC_SEGMENT_PLAYBACK_TIME_VIA_MEDIA_SEQUENCE:!1,HLS_PARSE_MANIFEST_IN_WORKER:!1,HLS_CLEAR_BUFFERS_ON_DISCONTINUITY_SWITCHES:!1,PARSE_EMSG_BOXES:!0,WISH_ABR_PARAMS:t.WishDefaultConfig,HLS_BACKUP_STREAM_PENALTY_DURATION:30,CHECK_ALL_DRM_LICENSES_FOR_KID:!0,LL_HLS:!0,LL_HLS_SEGMENT_END_TIME_MATCHING_TOLERANCE:.1,LL_HLS_MAX_PLAYLIST_AGE_FOR_BLOCKING_REQUEST_IN_PART_TARGET_MULTIPLES:2,HLS_PARSE_NATIVE_METADATA:!0,PREFER_MANAGED_MEDIA_SOURCE:!0,INFINITE_RETRIES_FOR_LIVE:!0,MAX_SAFE_MSE_DURATION:1/0,ENABLE_MEDIA_ELEMENT_EVENT_LOGS:!1,ENABLE_MEDIA_ELEMENT_ACTION_LOGS:!1,DISABLE_PARALLEL_SEGMENT_LOADING:!1,ENABLE_MUTED_BACKGROUND_PLAYBACK:!1,POSTPONE_MANIFEST_UPDATES_UNTIL_PLAYBACK_START:!0,DASH_CLEAR_BUFFERS_ON_PERIOD_SWITCHES:!1,DISABLE_AUTO_RECOVERY_ON_DVR_WINDOW_EXCEEDED:!1,ENABLE_SGAI_HANDLING:!1,SGAI_TRIGGER_DELAY_COMPENSATION:0,ENABLE_PERFORMANCE_LOGS:!1,ENABLE_HLS_CONTENT_STEERING:!1,TIZEN_DELAY_END_OF_STREAM_SIGNALING:!1,AUDIO_TRACK_SWITCH_BUFFER_GRACE_PERIOD:2,DISABLE_AUDIO_BUFFER_CLEARING_ON_TRACK_SWITCH:!1,ENABLE_SOURCEBUFFER_REUSE_ON_CONTENT_SWITCH:!1}},69251:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceContext=void 0,t.deriveSourceIdentifier=function(e,t){return r.Util.toHash(e)+t};var r=n(70850);t.SourceContext=function(){function e(e){this.technology=e.technology,this.source=e.source,this.isAd=e.isAd,this.sF=!1,this.tF=e.sourceIdentifier,this.mseObjectUrl=e.mseObjectUrl}return Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this.sF},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sourceIdentifier",{get:function(){return this.tF},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.sF=!0},e}()},93907:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StallTimeTrackerService=void 0;var r=n(91678),i=n(46151),o=n(33436),a=n(94685),s=n(89927);t.StallTimeTrackerService=function(){function e(e){this.context=e,this.context=e,this.O5=0}return e.prototype.startStall=function(){this.N5=Date.now()},e.prototype.endStall=function(){var e=(0,s.toSeconds)(Date.now()-this.N5);this.O5+=e,this.P5()},e.prototype.P5=function(){var e=this;(0,a.isContextAvailable)(this.context)&&Object.keys((0,i.getMetricsState)(this.context.store.getState())).forEach(function(t){return e.context.store.dispatch((0,r.addMetricsValue)(t,o.MetricType.StalledSeconds,e.O5))})},e.prototype.reset=function(){this.O5=0},e.prototype.dispose=function(){},e}()},23145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StartOffsetService=void 0;var r=n(21281);t.StartOffsetService=function(){function e(e){this.Q5=e,this.R5=0}return e.prototype.S5=function(e,t){var n=e.options.startOffset,i=e.options.startOffsetTimelineReference;if(i)switch(i){case r.TimelineReferencePoint.Start:return n>Math.abs(t)?0:n+t;case r.TimelineReferencePoint.End:}return n},e.prototype.T5=function(e,t){var n=e.options.startOffset,i=e.options.startOffsetTimelineReference;if(i)switch(i){case r.TimelineReferencePoint.Start:break;case r.TimelineReferencePoint.End:return t+n}return n},e.prototype.getStartOffset=function(e){if(e.options){if(void 0!==e.options.startOffset)return this.Q5.isLive
vendor: 4,483 bytes, line 1
1()?this.S5(e,this.Q5.getMaxTimeShift()):this.T5(e,this.Q5.getDuration());if(void 0!==e.options.startTime)return e.options.startTime}return this.R5},Object.defineProperty(e.prototype,"manifestStartOffset",{set:function(e){this.R5=e},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.Q5=null},e}()},65623:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StreamType=void 0,function(e){e.Progressive="progressive",e.Dash="dash",e.Hls="hls",e.Smooth="smooth",e.Whep="whep",e.Unknown="unknown"}(n||(t.StreamType=n={}))},20649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kebabCaseToCamelCase=function(e){return e.split("-").map(function(e,t){return 0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join("")},t.forceReallocation=function(e){return e?(0,r.isFirefox)()?JSON.parse(JSON.stringify(e)):(" "+e).slice(1):""};var r=n(15487)},88847:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Suspendable=void 0,t.suspend=function(e){e&&e.suspend()},t.restore=function(e){e&&e.restore()},t.Suspendable=function(){function e(e){this.ZY=!1,this.aY=null==e?void 0:e.onSuspend,this.bY=null==e?void 0:e.onRestore}return e.prototype.suspend=function(){var e;this.ZY||(this.ZY=!0,null==(e=this.aY)||e.call(this))},e.prototype.restore=function(){var e;this.ZY&&(this.ZY=!1,null==(e=this.bY)||e.call(this))},e.prototype.isSuspended=function(){return this.ZY},e.prototype.dispose=function(){this.ZY=null,this.aY=null,this.bY=null},e}()},94685:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=function(e){return null!==e&&"object"==typeof e},t.isContextAvailable=function(e){return void 0!==e&&!e.isDisposed}},64681:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(92006),t)},29960:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},41138:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoElementUtil=void 0,t.VideoElementUtil=function(){function e(){}return e.removeSource=function(e){for(e.setAttribute("src",""),e.removeAttribute("src");e.firstChild;)e.removeChild(e.firstChild)},e}()},53129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultConfig=void 0;var r=n(45202);t.DefaultConfig={key:"",playback:{autoplay:!1,muted:!1,volume:100,timeShift:!0,seeking:!0,playsInline:!0,preferredTech:[],videoCodecPriority:["dvhe","dvh1","vvc","vvi","av01","av1","hevc","hev","hvc","vp9","avc"],audioCodecPriority:["ec-4","ac-4","ec-3","mp4a.a6","ac-3","mp4a.a5","mp4a.40"]},style:{aspectratio:16/9,uiManagerFactory:function(e,t){var n=r.Environment.modules.playerui.UIFactory;if((null==n?void 0:n.buildUI)&&"function"==typeof n.buildUI)return new n.buildUI(e,t);if((null==n?void 0:n.buildDefaultUI)&&"function"==typeof n.buildDefaultUI)return new n.buildDefaultUI(e,t);throw Error("Default UI initialization method not found. Provide a custom `uiManagerFactory` via `StyleConfig`.")},visibility:{enableTracking:!1,visibilityThreshold:50}},tweaks:{file_protocol:!1},adaptation:{mobile:{limitToPlayerSize:!1,exclude:!1,qualityStabilityBalance:.5,bitrates:{minSelectableAudioBitrate:0,maxSelectableAudioBitrate:1/0,minSelectableVideoBitrate:0,maxSelectableVideoBitrate:1/0},resolution:{minSelectableVideoHeight:0,maxSelectableVideoHeight:1/0,minSelectableVideoWidth:0,maxSelectableVideoWidth:1/0}},desktop:{limitToPlayerSize:!1,exclude:!1,qualityStabilityBalance:.5,bitrates:{minSelectableAudioBitrate:0,maxSelectableAudioBitrate:1/0,minSelectableVideoBitrate:0,maxSelectableVideoBitrate:1/0},resolution:{minSelectableVideoHeight:0,maxSelectableVideoHeight:1/0,minSelectableVideoWidth:0,maxSelectableVideoWidth:1/0}}},cast:{enable:!1},events:{},licensing:{},live:{incrementalManifestUpdates:!0},logs:{bitmovin:!0},location:{ui:r.Environment.baseUrl+"bitmovinplayer-ui.js",ui_css:r.Environment.baseUrl+"bitmovinplayer-ui.css",serviceworker:"",cast:"https://www.gstatic.
1com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",google_ima:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}}},60865:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLowLatencyDefaultConfig=function(e){return void 0===e&&(e={}),{live:i(e),tweaks:o()}};var r=n(21281),i=function(e){var t=e.targetLatency;return{lowLatency:{targetLatency:null!=t?t:5,catchup:{playbackRateThreshold:.075,seekThreshold:5,playbackRate:1.2},fallback:{playbackRateThreshold:.075,seekThreshold:5,playbackRate:.95}},synchronization:[{method:r.LiveSynchronizationMethod.HttpHead,serverUrl:"https://time.akamai.com"}]}},o=function(){return{RESTART_THRESHOLD:.2,RESTART_THRESHOLD_DELTA:.05,STARTUP_THRESHOLD:.2,STARTUP_THRESHOLD_DELTA:.05,DURATION_MISMATCH_TOLERANCE:.05,LOW_LATENCY_BUFFER_GUARD:.8}}},90571:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerConfiguration=void 0;var i=n(40306),o=n(3336),a=n(44468),s=n(70962),u=n(21513),l=n(70850),c=n(53129);t.PlayerConfiguration=function(){function e(e){if(!e)throw new o.PlayerError(i.ErrorCode.SETUP_MISSING_CONFIGURATION,void 0,"The player must be configured with a valid `PlayerConfig`, but no configuration was provided.");this.t6={},this.u6=e,this.v6()}return e.mergeSizeConfig=function(e,t){var n,r,i=!1,o=!1,a=!1;if(t.style?(a=!!t.style.width,o=!!t.style.height,i=!!t.style.aspectratio):t.style={},e.style=e.style||{},i){var s=(0,l.parseAspectRatio)(null!=(r=null==(n=c.DefaultConfig.style)?void 0:n.aspectratio)?r:16/9);e.style.aspectratio=(0,l.parseAspectRatio)(t.style.aspectratio)||s}else e.style.aspectratio=c.DefaultConfig.style.aspectratio;a&&!isNaN(String(t.style.width).slice(-1))&&(e.style.width=t.style.width+"px"),o&&!isNaN(String(t.style.height).slice(-1))&&(e.style.height=t.style.height+"px")},e.prototype.v6=function(){var t=this;l.Util.deepCopyMulti(this.t6,c.DefaultConfig,this.u6);var n=this.u6.adaptation||{},r={};l.Util.deepCopy(r,n),delete r.mobile,delete r.desktop,(0,u.getCapabilities)().isMobile?this.t6.adaptation=l.Util.deepCopyMulti({},c.DefaultConfig.adaptation.mobile,r,n.mobile):this.t6.adaptation=l.Util.deepCopyMulti({},c.DefaultConfig.adaptation.desktop,r,n.desktop);var i=this.t6.adaptation.bitrates;["minSelectableAudioBitrate","maxSelectableAudioBitrate","minSelectableVideoBitrate","maxSelectableVideoBitrate"].forEach(function(e){t.t6.adaptation.bitrates[e]=l.Util.extractBitrateFromString(e.substring(0,3),i[e])}),e.mergeSizeConfig(this.t6,this.u6)},e.overwriteConfigEntries=function(e,t,n){if(t.hasOwnProperty(n)){var r=t[n];for(var i in r)r.hasOwnProperty(i)&&"fixed"!==i&&e.hasOwnProperty(i.toUpperCase())?e[i.toUpperCase()]=r[i]:r.hasOwnProperty(i)&&"MAX_BUFFER_LEVEL"===i.toUpperCase()&&(e.TARGET_BUFFER_LEVEL[a.MediaType.Video][a.BufferType.ForwardDuration]=r[i],e.TARGET_BUFFER_LEVEL[a.MediaType.Audio][a.BufferType.ForwardDuration]=r[i])}},e.prototype.getSettings=function(t){void 0===t&&(t=this.t6);var n,i={},o=t.adaptation||{};return l.Util.deepCopy(i,s.DefaultSettings),e.overwriteConfigEntries(i,t,"tweaks"),e.overwriteConfigEntries(i,t,"cast"),o.bitrates=o.bitrates||{},o.exclude=o.exclude||!1,i.EXCLUDE_DISALLOWED_REPRESENTATIONS=o.exclude,i.MIN_SELECTABLE_AUDIO_BITRATE=o.bitrates.minSelectableAudioBitrate||0,i.MAX_SELECTABLE_AUDIO_BITRATE=o.bitrates.maxSelectableAudioBitrate||1/0,i.MIN_SELECTABLE_VIDEO_BITRATE=o.bitrates.minSelectableVideoBitrate||0,i.MAX_SELECTABLE_VIDEO_BITRATE=o.bitrates.maxSelectableVideoBitrate||1/0,i.QUALITY_THRESHOLD=o.qualityThreshold||i.QUALITY_THRESHOLD,i.QUALITY_UPPER_THRESHOLD=o.qualityUpperThreshold||i.QUALITY_UPPER_THRESHOLD,i.WISH_ABR_PARAMS=r(r({},s.DefaultSettings.WISH_ABR_PARAMS),(null==(n=t.tweaks)?void 0:n.wish_abr_params)||{}),i},e.prototype.getUserConfig=function(){return this.u6},e.prototype.update=function(e){var t={};for(var n in l.Util.deepCopy(t,e),t)t.hasOwnProperty(n)&&(this.t6[n]=t[n],this.u6[n]=t[n])},e.prototype.get=function(e,t){return void 0===t&&(t=this.t6),e?t.hasOwnProperty(e)?this.t6[e]:{}:t},e.prototype.playback=function(){return this.get("playback")},e.prototype.style=function(){return this.get("style")},e.prototype.buffer=function(){return this.get("buffer")},e.prototype.tweaks=function(){return this.get("tweaks")},e.prototype.adaptation=function(){return this.get("adaptation")},e.prototype.advertising=function(){return this.get("advertising")},e.prototype.cast=function(){return this.get("cast")},e.prototype.logs=function(){return this.get("logs")},e.prototype.licensing=function(){return this.get("licensing")},e.prototype.live=function(){return this.get("live")},e.prototype.location=function(){return this.get("location")},e}()},65567:function(e,t,n){"use strict";
vendor: 11,362 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.getTvDefaultConfig=function(e){if((0,r.isUsingFileProtocol)()&&!e)throw Error("You have to provide an app_id if you are loading the app through file protocol");return function(e){var t={forwardduration:i,backwardduration:o},n={buffer:{video:t,audio:t},playback:{autoplay:!0},tweaks:{minimal_backward_buffer_clearing_interval:5}};return e&&(n.tweaks.app_id=e,n.tweaks.file_protocol=!0,n.analytics={config:{origin:e}}),n}(e)};var r=n(47993),i=30,o=10},78760:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAppIdConfig=function(e){var t=e.get("tweaks"),n=(0,s.getCapabilities)()[a.CapabilityKey.isReactNative],l=(0,u.isUsingFileProtocol)();if(l||n){if(!t.app_id||l&&!t.file_protocol)throw new i.PlayerError(r.ErrorCode.SETUP_UNSUPPORTED_PROTOCOL,{tweaks:JSON.stringify(t)},"The current tweaks configuration is not valid: ".concat(t.app_id?"file_protocol":"app_id"," is missing."));t.app_id&&(!o.Environment.hostname||n)&&(o.Environment.hostname=t.app_id)}};var r=n(40306),i=n(3336),o=n(45202),a=n(7387),s=n(21513),u=n(47993)},40306:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0,function(e){e[e.UNKNOWN=1e3]="UNKNOWN",e[e.API_NOT_AVAILABLE=1001]="API_NOT_AVAILABLE",e[e.SETUP_ERROR=1100]="SETUP_ERROR",e[e.SETUP_NO_HTML_ELEMENT=1101]="SETUP_NO_HTML_ELEMENT",e[e.SETUP_MISSING_CONFIGURATION=1102]="SETUP_MISSING_CONFIGURATION",e[e.SETUP_LICENSE_ERROR=1103]="SETUP_LICENSE_ERROR",e[e.SETUP_MISSING_DOMAIN_LICENSE_WHITELIST=1104]="SETUP_MISSING_DOMAIN_LICENSE_WHITELIST",e[e.SETUP_MISSING_DOMAIN_LICENSE_ALLOWLIST=1104]="SETUP_MISSING_DOMAIN_LICENSE_ALLOWLIST",e[e.SETUP_MISSING_LICENSE_WHITELIST=1105]="SETUP_MISSING_LICENSE_WHITELIST",e[e.SETUP_MISSING_LICENSE_ALLOWLIST=1105]="SETUP_MISSING_LICENSE_ALLOWLIST",e[e.SETUP_INVALID_LICENSE_SERVER=1106]="SETUP_INVALID_LICENSE_SERVER",e[e.SETUP_INVALID_IMPRESSION_SERVER=1107]="SETUP_INVALID_IMPRESSION_SERVER",e[e.SETUP_NO_RENDERING_ENGINE=1108]="SETUP_NO_RENDERING_ENGINE",e[e.SETUP_UNSUPPORTED_PROTOCOL=1113]="SETUP_UNSUPPORTED_PROTOCOL",e[e.SOURCE_ERROR=1200]="SOURCE_ERROR",e[e.SOURCE_INVALID=1201]="SOURCE_INVALID",e[e.SOURCE_MANIFEST_INVALID=1202]="SOURCE_MANIFEST_INVALID",e[e.SOURCE_NO_SUPPORTED_TECHNOLOGY=1203]="SOURCE_NO_SUPPORTED_TECHNOLOGY",e[e.SOURCE_STREAM_TYPE_NOT_SUPPORTED=1204]="SOURCE_STREAM_TYPE_NOT_SUPPORTED",e[e.SOURCE_FORCED_TECHNOLOGY_NOT_SUPPORTED=1205]="SOURCE_FORCED_TECHNOLOGY_NOT_SUPPORTED",e[e.SOURCE_NO_STREAM_FOUND_FOR_SUPPORTED_TECHNOLOGY=1206]="SOURCE_NO_STREAM_FOUND_FOR_SUPPORTED_TECHNOLOGY",e[e.SOURCE_EMPTY_SEGMENT=1207]="SOURCE_EMPTY_SEGMENT",e[e.SOURCE_COULD_NOT_LOAD_MANIFEST=1208]="SOURCE_COULD_NOT_LOAD_MANIFEST",e[e.SOURCE_PROGRESSIVE_STREAM_ERROR=1209]="SOURCE_PROGRESSIVE_STREAM_ERROR",e[e.SOURCE_HLS_STREAM_ERROR=1210]="SOURCE_HLS_STREAM_ERROR",e[e.SOURCE_ENCRYPTION_METHOD_NOT_SUPPORTED=1211]="SOURCE_ENCRYPTION_METHOD_NOT_SUPPORTED",e[e.SOURCE_INVALID_H264_CODEC=7043]="SOURCE_INVALID_H264_CODEC",e[e.PLAYBACK_ERROR=1300]="PLAYBACK_ERROR",e[e.PLAYBACK_VIDEO_DECODING_ERROR=1301]="PLAYBACK_VIDEO_DECODING_ERROR",e[e.PLAYBACK_HLS_COULD_NOT_LOAD_TRANSMUXER=1304]="PLAYBACK_HLS_COULD_NOT_LOAD_TRANSMUXER",e[e.NETWORK_ERROR=1400]="NETWORK_ERROR",e[e.NETWORK_MANIFEST_DOWNLOAD_TIMEOUT=1401]="NETWORK_MANIFEST_DOWNLOAD_TIMEOUT",e[e.NETWORK_SEGMENT_DOWNLOAD_TIMEOUT=1402]="NETWORK_SEGMENT_DOWNLOAD_TIMEOUT",e[e.NETWORK_PROGRESSIVE_STREAM_DOWNLOAD_TIMEOUT=1403]="NETWORK_PROGRESSIVE_STREAM_DOWNLOAD_TIMEOUT",e[e.NETWORK_FAILED_CERTIFICATE_REQUEST=1404]="NETWORK_FAILED_CERTIFICATE_REQUEST",e[e.DRM_ERROR=2e3]="DRM_ERROR",e[e.DRM_MISSING_CONFIGURATION=2001]="DRM_MISSING_CONFIGURATION",e[e.DRM_NO_LICENSE_SERVER_URL_PROVIDED=2002]="DRM_NO_LICENSE_SERVER_URL_PROVIDED",e[e.DRM_FAILED_LICENSE_REQUEST=2003]="DRM_FAILED_LICENSE_REQUEST",e[e.DRM_KEY_SIZE_NOT_SUPPORTED=2005]="DRM_KEY_SIZE_NOT_SUPPORTED",e[e.DRM_NO_KEY_SYSTEM=2006]="DRM_NO_KEY_SYSTEM",e[e.DRM_KEY_SESSION_INITIALIZATION_FAILED=2007]="DRM_KEY_SESSION_INITIALIZATION_FAILED",e[e.DRM_MEDIA_KEY_INITIALIZATION_FAILED=2008]="DRM_MEDIA_KEY_INITIALIZATION_FAILED",e[e.DRM_KEY_ERROR=2009]="DRM_KEY_ERROR",e[e.DRM_KEY_SYSTEM_NOT_SUPPORTED=2010]="DRM_KEY_SYSTEM_NOT_SUPPORTED",e[e.DRM_CERTIFICATE_ERROR=2011]="DRM_CERTIFICATE_ERROR",e[e.DRM_PLAYREADY_INVALID_HEADER_KEY_VALUE_PAIR=2012]="DRM_PLAYREADY_INVALID_HEADER_KEY_VALUE_PAIR",e[e.DRM_RESTRICTED_OUTPUT=2013]="DRM_RESTRICTED_OUTPUT",e[e.DRM_INIT_DATA_MISSING=2015]="DRM_INIT_DATA_MISSING",e[e.VR_ERROR=2100]="VR_ERROR",e[e.VR_INCOMPATIBLE_PLAYER_TECHNOLOGY=2101]="VR_INCOMPATIBLE_PLAYER_TECHNOLOGY",e[e.MODULE_ERROR=3e3]="MODULE_ERROR",e[e.MODULE_INVALID_DEFINITION=3001]="MODULE_INVALID_DEFINITION",e[e.MODULE_INVALID_DEFINITION_DEPENDENCY=3002]="MODULE_INVALID_DEFINITION_DEPENDENCY",e[e.MODULE_MISSING=3003]="MODULE_MISSING",e[e.MODULE_DEPENDENCY_MISSING=3004]="MODULE_DEPENDENCY_MISSING",e[e.MODULE_REMOVED=3005]="MODULE_REMOVED",e[e.MODULE_ADVERTISING_ERROR=3100]="MODULE_ADVERTISING_ERROR",e[e.MODULE_SGAI_ERROR=3101]="MODULE_SGAI_ERROR",e[e.SEGMENT_PSSH_DATA_MISSING=4e3]="SEGMENT_PSSH_DATA_MISSING"}(n||(t.ErrorCode=n={}))},3336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerError=void 0;var r=n(40306);t.PlayerError=function(){return function(e,t,n,i){this.code=e,this.name=r.ErrorCode[e],this.sourceIdentifier=i,this.message=null!=n?n:"".concat(this.name),this.data=t,"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error(this.message).stack}}()},25926:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWarning=void 0;var r=n(3714),i=n(4224);t.PlayerWarning=function(){return function(e,t,n){this.type=r.PlayerEvent.Warning,this.code=e,this.name=i.WarningCode[e],this.message=t||"".concat(this.code,"/").concat(this.name),this.data=n}}()},4224:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.WarningCode=void 0,function(e){e[e.GENERAL_WARNING=1e3]="GENERAL_WARNING",e[e.API_INVALID_ARGUMENT=1001]="API_INVALID_ARGUMENT",e[e.SETUP_WARNING=1100]="SETUP_WARNING",e[e.SETUP_CREATE_OBJECT_URL_MISSING=1101]="SETUP_CREATE_OBJECT_URL_MISSING",e[e.SETUP_SERVICE_WORKER_INITIALIZATION_FAILED=1103]="SETUP_SERVICE_WORKER_INITIALIZATION_FAILED",e[e.SETUP_SERVICE_WORKER_LOCATION_MISSING=1104]="SETUP_SERVICE_WORKER_LOCATION_MISSING",e[e.SOURCE_WARNING=1200]="SOURCE_WARNING",e[e.SOURCE_CODEC_OR_FILE_FORMAT_NOT_SUPPORTED=1201]="SOURCE_CODEC_OR_FILE_FORMAT_NOT_SUPPORTED",e[e.SOURCE_SMOOTH_REPRESENTATION_MISSING=1202]="SOURCE_SMOOTH_REPRESENTATION_MISSING",e[e.SOURCE_SMOOTH_INVALID_INIT_DATA=1203]="SOURCE_SMOOTH_INVALID_INIT_DATA",e[e.SOURCE_SMOOTH_UNKNOWN_STREAM_INDEX_TYPE=1204]="SOURCE_SMOOTH_UNKNOWN_STREAM_INDEX_TYPE",e[e.SOURCE_SMOOTH_EMPTY_QUALITY_LEVEL=1205]="SOURCE_SMOOTH_EMPTY_QUALITY_LEVEL",e[e.PLAYBACK_WARNING=1300]="PLAYBACK_WARNING",e[e.PLAYBACK_GAP_DETECTED=1301]="PLAYBACK_GAP_DETECTED",e[e.PLAYBACK_DECODE_RETRIES_EXCEEDED=1302]="PLAYBACK_DECODE_RETRIES_EXCEEDED",e[e.PLAYBACK_COULD_NOT_BE_STARTED=1303]="PLAYBACK_COULD_NOT_BE_STARTED",e[e.PLAYBACK_NEGATIVE_DECODING_TIMESTAMP_ENCOUNTERED=1304]="PLAYBACK_NEGATIVE_DECODING_TIMESTAMP_ENCOUNTERED",e[e.PLAYBACK_INVALID_DATA_SEGMENT_ENCOUNTERED=1305]="PLAYBACK_INVALID_DATA_SEGMENT_ENCOUNTERED",e[e.PLAYBACK_VIDEO_DECODING_ERROR_RECOVERY=1306]="PLAYBACK_VIDEO_DECODING_ERROR_RECOVERY",e[e.NETWORK_WARNING=1400]="NETWORK_WARNING",e[e.NETWORK_COULD_NOT_LOAD_MANIFEST=1401]="NETWORK_COULD_NOT_LOAD_MANIFEST",e[e.NETWORK_COULD_NOT_LOAD_SUBTITLE=1402]="NETWORK_COULD_NOT_LOAD_SUBTITLE",e[e.DRM_WARNING=2e3]="DRM_WARNING",e[e.DRM_SERVER_CERTIFICATE_NOT_SUPPORTED=2001]="DRM_SERVER_CERTIFICATE_NOT_SUPPORTED",e[e.DRM_COULD_NOT_DECRYPT_SEGMENT=2002]="DRM_COULD_NOT_DECRYPT_SEGMENT",e[e.DRM_LICENSE_RENEWAL_FAILED=2003]="DRM_LICENSE_RENEWAL_FAILED",e[e.DRM_FAILED_LICENSE_REQUEST=2004]="DRM_FAILED_LICENSE_REQUEST",e[e.DRM_RESTRICTED_OUTPUT=2013]="DRM_RESTRICTED_OUTPUT",e[e.VR_WARNING=2100]="VR_WARNING",e[e.VR_RENDERING_ERROR=2101]="VR_RENDERING_ERROR",e[e.MODULE_WARNING=3e3]="MODULE_WARNING",e[e.MODULE_MISSING=3001]="MODULE_MISSING",e[e.MODULE_ADVERTISING_WARNING=3100]="MODULE_ADVERTISING_WARNING",e[e.MODULE_ADVERTISING_IMA_SDK_NOT_FOUND=3101]="MODULE_ADVERTISING_IMA_SDK_NOT_FOUND",e[e.MODULE_ADVERTISING_OM_SDK_MODULE_MISSING=3102]="MODULE_ADVERTISING_OM_SDK_MODULE_MISSING",e[e.MODULE_ADVERTISING_OM_SDK_INIT_FAILURE=3103]="MODULE_ADVERTISING_OM_SDK_INIT_FAILURE",e[e.MODULE_ADVERTISING_OM_SDK_TRACKING_FAILURE=3104]="MODULE_ADVERTISING_OM_SDK_TRACKING_FAILURE",e[e.MODULE_SGAI_WARNING=3105]="MODULE_SGAI_WARNING"}(n||(t.WarningCode=n={}))},48143:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceManager=void 0,t.disposeService=function(e,t,n){void 0===n&&(n=i);var r=e.get(t,n);r&&(r.dispose(),e.set(t,null,n))};var r=n(80813),i="player-scoped";function o(e){return Object.keys(e).sort(function(e){return e!==r.ServiceName.SourceStoreService?-1:1}).filter(function(t){return!!e[t]})}t.ServiceManager=function(){function e(){this.iA={},this.jA=new WeakMap}return e.prototype.has=function(e,t){return void 0===t&&(t=i),!!this.get(e,t)},e.prototype.get=function(e,t){if(void 0===t&&(t=i),this.iA[t])return this.iA[t][e]},e.prototype.set=function(e,t,n){void 0===n&&(n=i),this.iA[n]||(this.iA[n]={}),this.iA[n][e]=t,t&&this.jA.set(t,n)},e.prototype.getScope=function(e){return this.jA.get(e)},e.prototype.delete=function(e,t){void 0===t&&(t=i),this.iA[t]&&this.iA[t][e]&&(this.jA.delete(this.iA[t][e]),this.iA[t][e].dispose(),delete this.iA[t][e])},e.prototype.maybeCall=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=i);var o=this.get(e,r);return o?t(o):n},e.prototype.dispose=function(){Object.values(this.iA).forEach(function(e){o(e).forEach(function(t){e[t].dispose()})}),this.iA={},delete this.jA},e.prototype.disposeScope=function(e){var t=this;e!==i&&this.iA[e]&&(o(this.iA[e]).forEach(function(n){t.delete(n,e)}),delete this.iA[e])},e.prototype.removeNonPlayerScopeServices=function(){var e=this;Object.keys(this.iA).filter(function(e){return e!==i}).forEach(function(t){return e.disposeScope(t)})},e}()},80813:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceName=void 0,function(e){e.AdaptationService="AdaptationService",e.AdPreloadSequencerService="AdPreloadSequencerService",e.DrmDetectorService="DrmDetectorService",e.DrmService="DrmService",e.HeartbeatService="HeartbeatService",e.LiveLatencyService="LiveLatencyService",e.ManifestCachingService="ManifestCachingService",e.ManifestLoadingService="ManifestLoadingService",e.ManifestService="ManifestService",e.ManifestUpdateSchedulingService="ManifestUpdateSchedulingService",e.MetadataParsedService="MetadataParsedService",e.NativeManifestService="NativeManifestService",e.PlayerStateService="PlayerStateService",e.PreloadingService="PreloadingService",e.RecoveryService="RecoveryService",e.SegmentService="SegmentService",e.SourceStoreService="SourceStoreService",e.StallTimeTrackerService="StallTimeTrackerService",e.StartOffsetService="StartOffsetService",e.StreamTimeService="StreamTimeService",e.SubtitleService="SubtitleService",e.SynchronizedTimeService="SynchronizedTimeService",e.ThumbnailService="Thumbn
1ailService",e.TimedMetadataService="TimedMetadataService",e.SgaiService="SgaiService"}(n||(t.ServiceName=n={}))},51289:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandler=void 0,t.generateTroubleshootUrl=u;var i=n(3336),o=n(3714),a=n(48669),s=function(){function e(){var e=this;this.call=function(){e.YH.call(e.ZH,e.data)},this.match=function(t){return!!e.aH&&("string"==typeof t?t===e.eventType:t===e.YH)}}return e.prototype.set=function(e,t,n,r,i){void 0===i&&(i=!0),this.YH=e,this.eventType=t,this.ZH=n,this.data=r,this.aH=i},e.prototype.clear=function(){this.YH=null,this.eventType=null,this.ZH=null,this.data=null,this.aH=null},Object.defineProperty(e.prototype,"cancelable",{get:function(){return this.aH},enumerable:!1,configurable:!0}),e}();function u(e){return"https://bitmovin.com/docs/player/web/errors/".concat(e)}t.EventHandler=function(){function e(e,t,n){var r=this;for(var i in this.kH=!1,this.lH=!1,this.mH=function(){for(var e,t=r.eH?r.gH.length:20,n=null!=(e=r.gH.splice(0,t))?e:[],i=0;i<n.length;i++){var a=n[i];!a||r.fH&&a.eventType!==o.PlayerEvent.Destroy||r.nH(a)}r.kH=!1,r.gH.length>0&&r.II()},this.qH=function(e,t,n,i){if(void 0===i&&(i=!0),r.pH(e,t,n)){var o=r.EI(n),u=0,l=r.oH(t,e);o[e].forEach(function(t){var n=r.iH.pop()||new s;n.set(t.listener,e,r.bH,l,i),r.gH.push(n),u+=+!!t.repeatable}),u<o[e].length&&(o[e].sort(function(e,t){return a.Comparators.reverseBoolean(e.repeatable,t.repeatable)}),o[e].length=u),r.gH.length>0&&r.II()}},this.dispatchEvent=function(e,t,n){void 0===n&&(n=!0),r.eH||r.FI(e,t,n)},this.clearEventsOfType=function(e){var t=r.gH.reduce(function(t,n,r){return n.match(e)?t.concat(r):t},[]);for(t.sort(function(e,t){return e-t});t.length>0;)r.gH.splice(t.pop(),1)},this.JI=function(e){e.data===r.jH&&(window.removeEventListener("message",r.JI),r.mH())},this.cH=e,this.bH=t,this.dH={internal:{},external:{}},this.eH=!1,this.fH=!1,this.gH=[],this.iH=[],o.PlayerEvent)o.PlayerEvent.hasOwnProperty(i)&&(this.dH.internal[o.PlayerEvent[i]]=[],this.dH.external[o.PlayerEvent[i]]=[]);this.hH=[],this.jH="".concat("bitmovin.triggerQueueWorker",".").concat(n)}return e.prototype.nH=function(e){try{e.call(),e.clear(),this.iH.push(e)}catch(e){this.cH.warn("unhandled exception in event callback",e)}},e.prototype.oH=function(e,t){return r({type:t,timestamp:Date.now()},e)},e.prototype.pH=function(e,t,n){var r=this.EI(n),i=r.hasOwnProperty(e)&&r[e].length;return!!(!this.eH&&i)},e.prototype.rH=function(e){this.gH=this.gH.filter(function(t){return!t.match(e)})},e.prototype.CI=function(e,t,n){var r=this.EI(n);r.hasOwnProperty(e)&&(r[e]=r[e].filter(function(e){return e.listener!==t}))},e.prototype.DI=function(e,t){if(e&&e instanceof i.PlayerError){var n={type:o.PlayerEvent.Error,timestamp:Date.now(),code:e.code,name:e.name,message:e.message,data:e.data,troubleShootLink:u(e.code)};t&&(n.sourceIdentifier=e.sourceIdentifier),this.qH(o.PlayerEvent.Error,n,t)}else this.cH.error("Supplied error is not of type PlayerError:",e)},e.prototype.EI=function(e){return e?this.dH.internal:this.dH.external},e.prototype.FI=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),e===o.PlayerEvent.Error){var r=t;r.hasOwnProperty("code")||(r.code=3e3)}t&&!t.hasOwnProperty("timestamp")&&(t.timestamp=Date.now()),this.qH(e,t,!0,n),this.hH.length>0&&!this.GI(e,t)||this.qH(e,t,!1,n)},e.prototype.GI=function(e,t){return this.hH.every(function(n){return n(e,t)})},e.prototype.HI=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!0);var i=this.EI(n);i.hasOwnProperty(e)&&t&&!i[e].find(function(e){return e&&e.listener===t})&&i[e].push({listener:t,repeatable:r})},e.prototype.on=function(e,t,n){void 0===n&&(n=!1),this.HI(e,t,n)},e.prototype.one=function(e,t,n){void 0===n&&(n=!1),this.HI(e,t,n,!1)},e.prototype.addFromObject=function(e,t){for(var n in void 0===t&&(t=!1),e)e.hasOwnProperty(n)&&this.on(n,e[n],t)},e.prototype.off=function(e,t,n){void 0===n&&(n=!0),n&&this.rH(t),this.CI(e,t,!0),this.CI(e,t,!1)},e.prototype.getEventFunction=function(){var e=this;return function(t,n,r,i){void 0===r&&(r=!1),void 0===i&&(i=!0),e.dispatchEvent(t,n,i)}},e.prototype.addExternalEventFilter=function(e){0>this.hH.indexOf(e)&&this.hH.push(e)},e.prototype.removeExternalEventFilter=function(e){var t=this.hH.indexOf(e);t>=0&&this.hH.splice(t,1)},e.prototype.dispose=function(){this.gH=this.gH.filter(function(e){return!e.cancelable}),this.eH=!0,this.FI=null,this.hH=null,this.mH()},e.prototype.setBeingDestroyed=function(){this.fH=!0},Object.defineProperty(e.prototype,"hasErrorBeenFired",{get:function(){return this.lH}
vendor: 25,430 bytes, line 1
1,enumerable:!1,configurable:!0}),e.prototype.resetErrors=function(){this.lH=!1},e.prototype.fireError=function(e){var t,n;this.DI(e,!0),!this.lH&&this.GI(o.PlayerEvent.Error,e)&&(this.lH=!0,this.DI(e,!1)),this.cH.error("PlayerError(".concat(e.code,"/").concat(e.name,") ").concat(null!=(t=e.message)?t:""),null!=(n=e.data)?n:" ")},e.prototype.II=function(){this.kH||(this.kH=!0,window.addEventListener("message",this.JI),window.postMessage(this.jH,location.origin+location.pathname))},e}()},90408:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maybeFireDurationChangedEvent=function(e,t,n){null!=e&&e!==t&&n&&n.dispatchEvent(r.PlayerEvent.DurationChanged,{from:e,to:t})},t.createPlayerErrorFromMediaError=function(e,t,n){void 0===n&&(n=!1);var r,s=a(e)?e.errorObject.code:e.code,u=a(e)?e.errorMessage:JSON.stringify(e),l=a(e)?e.errorObject:{errorMessage:JSON.stringify(e),code:s};n&&(l.exception=u);var c=null!=(r=o.ErrorCodeMap[o.MediaErrorCode[s]])?r:i.ErrorCode.UNKNOWN;return new i.PlayerError(c,l,"The video element has thrown a media error.",t)};var r=n(3714),i=n(20213),o=n(75108);function a(e){return"errorObject"in e}},89279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImpressionCall=void 0;var r=n(45202),i=n(4129),o=n(29669),a=n(7387),s=n(21513),u=n(79069);function l(){return(0,s.getCapabilities)()[a.CapabilityKey.isReactNative]?"Kepler:unknown":"generic"}t.ImpressionCall=function(){function e(e,t){this.logger=e,this.y6=!1,this.z6=u.LicensingLegacySslBackendBaseUrl+"/impression",this.setImpressionServerUrl(t)}return e.prototype.A6=function(e){return new i.DefaultContentLoader({settings:{RETRY_DELAY:0,INCREASE_RETRY_DELAY:!1,INCREASE_RETRY_DELAY_BASE_SEC:0,MAX_INCREASE_RETRY_DELAY_SEC:0,QUERY_PARAMETERS:[],HTTP_HEADERS:null,XHR_TIMEOUT:2e4,DISABLE_RETRY_FOR_RESPONSE_STATUS:{}},logger:this.logger,config:{network:{requestApi:e}}})},e.prototype.issue=function(e,t,n){var i,a=this;if(this.y6)return Promise.resolve(void 0);this.w6=null!=(i=this.w6)?i:this.A6(n),this.y6=!0;var u={domain:r.Environment.hostname,key:e,version:r.Environment.VERSION_NUMBER,type:"web:"+t,platform:l()};return this.w6.load(this.x6,o.HttpRequestMethod.POST,null,JSON.stringify(u)).then(function(e){return e},function(r){return a.x6!==a.z6&&(0,s.getCapabilities)().isTizen?(a.y6=!1,a.setImpressionServerUrl(a.z6),a.issue(e,t,n)):r})},e.prototype.setImpressionServerUrl=function(e){e&&(this.x6=e)},e.prototype.reset=function(){this.y6=!1},e.prototype.dispose=function(){var e;null==(e=this.w6)||e.dispose()},e}()},96859:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LicenseCall=void 0;var r,i=n(45202),o=n(4129),a=n(29669),s=n(21513),u=n(79069);!function(e){e.Granted="granted",e.Denied="denied"}(r||(r={}));var l=["localhost","127.0.0.1"],c=u.LicensingLegacySslBackendBaseUrl+"/licensing";function d(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){return{}}return e}t.LicenseCall=function(){function e(e,t,n){this.F6=0,this.G6=[],this.H6=!1,this.I6=void 0,this.B6=t,this.C6=n,this.E6=e}return e.prototype.issue=function(e,t){var n=this;this.J6()?setTimeout(function(){return e(!0)},0):this.C6?this.I6?setTimeout(function(){return e(n.I6.granted,n.I6.payload,n.I6.data)},0):(this.G6.push(e),this.H6||(this.H6=!0,setTimeout(function(){n.L6(n.C6,n.B6,t)},this.F6))):setTimeout(function(){return e(!1,{validationInformation:[{key:"key",errorMessage:"field can't take an empty string"}]})},0)},e.prototype.J6=function(){return l.includes(i.Environment.hostname)||!this.B6},e.handleSuccessfulLicenseRequest=function(e){var t={granted:!1,payload:{},data:{}};return e&&e.analytics&&(t.data.analytics={key:e.analytics}),e&&e.hasOwnProperty("status")&&(e.status===r.Granted?(t.granted=!0,t.payload=function(e){var t={};return e.hasOwnProperty("reporting")&&e.reporting&&(t.reporting=!0),e.hasOwnProperty("reportingUrls")&&(t.reportingUrls=e.reportingUrls),e.hasOwnProperty("reportingInterval")&&(t.reportingInterval=e.reportingInterval),e.hasOwnProperty("reportingSampleInterval")&&(t.reportingSampleInterval=e.reportingSampleInterval),t}(e)):e.status===r.Denied&&(t.granted=!1,t.payload={message:e.message})),t},e.handleFailedLicenseRequest=function(e){var t={granted:!1,payload:{},data:{}};return e&&e.hasOwnProperty("validationInformation")?(t.granted=!1,t.payload=e):t.granted=!0,t},e.prototype.K6=function(e){for(var t=0,n=this.G6;t<n.length;t++)(0,n[t])(e.granted,e.payload,e.data)},e.prototype.setCustomData=function(e){this.D6=e},e.prototype.setDelay=function(e){isNaN(e)||(this.F6=Math.min(e,3e4))},e.prototype.L6=function(t,n,r){var o=this,u=JSON.stringify({domain:i.Environment.hostname,key:t||"",version:i.Environment.VERSION_NUMBER,customData:this.D6}),l=this.M6(r);l.load(n,a.HttpRequestMethod.POST,a.HttpResponseType.JSON,u).then(function(t){l.dispose(),o.I6=e.handleSuccessfulLicenseRequest(d(t.body)),o.H6=!1,o.K6(o.I6)},function(i){l.dispose(),n!==c&&(0,s.getCapabilities)().isTizen?setTimeout(function(){return o.L6(t,c,r)},o.F6):(o.I6=e.handleFailedLicenseRequest(d(i.body)),o.H6=!1,o.K6(o.I6))})},e.prototype.M6=function(e){return new o.DefaultContentLoader({settings:{RETRY_DELAY:0,INCREASE_RETRY_DELAY:!1,INCREASE_RETRY_DELAY_BASE_SEC:0,MAX_INCREASE_RETRY_DELAY_SEC:0,QUERY_PARAMETERS:[],HTTP_HEADERS:null,XHR_TIMEOUT:2e4,DISABLE_RETRY_FOR_RESPONSE_STATUS:{}},logger:this.E6,config:{network:{requestApi:e}}})},e.getInstance=function(t,n,r){var i=[n,r].toString();return e.instanceMap.hasOwnProperty(i)||(e.instanceMap[i]=new e(t,n,r)),e.instanceMap[i]},e.reset=function(){Object.keys(e.instanceMap).forEach(function(t){return delete e.instanceMap[t]})},e.instanceMap={},e}()},79069:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LicensingLegacySslBackendBaseUrl=void 0,t.LicensingLegacySslBackendBaseUrl=atob("aHR0cHM6Ly9saWNlbnNpbmctbGVnYWN5LXNzbC1jb21wYXQuYml0bW92aW4uY29t")},32703:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDateRangeEvent=i,t.nextDateRangeWithSameClass=o,t.extractDateRangeMetadata=function(e,t,n){e.forEach(function(e,r,a){var s;e.endOnNext&&e.class&&(s=o(e,r,a)),n(i(e,t,s))})};var r=n(89927);function i(e,t,n){var i={};return i.startTime=(0,r.toSeconds)(Date.parse(e.startDate)),e.endDate?i.endTime=(0,r.toSeconds)(Date.parse(e.endDate)):void 0===e.duration||isNaN(e.duration)?e.endOnNext&&n&&(i.endTime=(0,r.toSeconds)(Date.parse(n.startDate))):i.endTime=(0,r.toSeconds)(Date.parse(e.startDate))+e.duration,t&&(i.startTime-=t),i.endTime&&t&&(i.endTime-=t),i.data=e,i}function o(e,t,n){for(var r=t+1;r<n.length;r++)if(n[r].class&&n[r].class===e.class)return n[r]}},58735:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateMetadataHash=function(e,t){var n;return void 0===t&&(t=""),o(e)?String((0,i.calcHash)(e.metadataType+e.start+e.metadata.id+Object.keys(e.metadata).length+Object.keys(null!=(n=e.metadata.clientAttributes)?n:{}).length)):String((0,i.calcHash)(t+JSON.stringify(e)))},t.isDateRangeMetadata=o;var r=n(20213),i=n(57387);function o(e){return e.metadataType===r.MetadataType.DATERANGE}},59225:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataService=void 0;var r=n(80813),i=n(32485);t.MetadataService=function(){function e(e,t){this.x2=e,this.y2=new i.TimeMetadataHandler(e,t)}return e.prototype.addToMetadataParsedService=function(e,t,n){var i;t.start=t.start||e,null==(i=this.x2.serviceManager.get(r.ServiceName.MetadataParsedService))||i.addMetadata(n,t)},e.prototype.addToTimeline=function(e,t,n){this.y2.add(e,t,n)},e.prototype.removeUntil=function(e){this.y2.removeUntil(e)},e.prototype.removeMatchingCues=function(e,t){this.y2.removeMatchingCues(e,t)},e.prototype.reset=function(e){this.y2.reset(e)},e.prototype.dispose=function(){this.y2.dispose()},e}()},34851:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTimeline=void 0;var o=n(3714);t.MetadataTimeline=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.addCue=function(t,n,r){var a,s;if(!isNaN(t)&&!isNaN(n)&&r){var u=this.vdb(r.metadata,this.cues);if(-1===u)e.prototype.addCue.call(this,t,n,r);else{var l=this.vdb(r.metadata,this.activeCues);if(this.wdb(u,l,{start:t+this.timestampOffset,end:n+this.timestampOffset,content:r,updates:i([],this.cues[u].updates,!0)}),-1!==l){var c={metadataType:r.metadataType,metadata:r.metadata,data:r.metadata,start:null!=(a=r.start)?a:t,end:null!=(s=r.end)?s:n};this.context.eventHandler.dispatchEvent(o.PlayerEvent.MetadataChanged,c)}}}},t.prototype.vdb=function(e,t){return t.findIndex(function(t){return t.content.metadata.id===e.id})},t.prototype.wdb=function(e,t,n){-1!==e&&this.cues.splice(e,1,n),-1!==t&&this.activeCues.splice(t,1,n)},t}(n(80438).Timeline)},8719:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StoredCueTracker=void 0,t.StoredCueTracker=function(){function e(){this.Jhb={}}return e.prototype.add=function(e){this.Jhb[e]=void 0},e.prototype.remove=function(e){delete this.Jhb[e]},e.prototype.removeAll=function(){this.Jhb={}},e.prototype.has=function(e){return e in this.Jhb},e.prototype.dispose=function(){this.removeAll()},e}()},32485:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.TimeMetadataHandler=t.TimedMetadataType=void 0,t.isSegmentBoundMetadata=c;var i,o=n(3714),a=n(86897),s=n(15971),u=n(34851),l=n(80438);function c(e){return[i.InBand,i.SegmentPlayback,i.CustomTag].includes(e)}!function(e){e.InBand="inband",e.SegmentPlayback="segmentPlayback",e.Manifest="manifest",e.EventStream="eventStream",e.DateRange="dateRange",e.CustomTag="customTag"}(i||(t.TimedMetadataType=i={})),t.TimeMetadataHandler=function(){function e(e,t){var n=this;this.w2=function(e){var t,r,i;if(null!=(null==(t=null==e?void 0:e.content)?void 0:t.eventType))return null==(i=(r=n.j1)[e.content.eventType])?void 0:i.call(r,e.content)},this.h1=e,this.j1=t,this.u2()}return e.prototype.u2=function(){for(var e in this.i1={},this.j1)this.j1.hasOwnProperty(e)&&(this.i1[e]="dateRange"===e?new u.MetadataTimeline(this.h1,{onCueEnter:this.w2}):new l.Timeline(this.h1,{onCueEnter:this.w2,allowDuplicates:e===i.SegmentPlayback}),this.i1[e].show())},e.prototype.v2=function(e,t){var n=(0,a.getBufferState)((0,s.getSourceState)(this.h1)),r=(0,a.getBufferStartTime)(null==n?void 0:n.bufferStateMap);e.removeMatchingCues(function(e){return e.start<=t&&e.end<=t+1&&e.end<=r})},e.prototype.add=function(e,t,n){if(this.j1.hasOwnProperty(e)){var a=this.i1[e],s=t+1;e===i.SegmentPlayback&&function(e){return e.metadata&&e.metadata.event&&e.metadata.representationId}(n)&&"event"in n.metadata&&"duration"in n.metadata.event?s=t+n.metadata.event.duration:function(e){return e.metadataType===o.MetadataType.DATERANGE}(n)&&(s=!0===n.metadata.endOnNext&&void 0===n.end?1/0:n.start===n.end?n.end+1:n.end),c(e)&&this.v2(a,t);var u=r({eventType:e},n);a.addCue(t,s,u)}},e.prototype.reset=function(e){if(e&&this.j1.hasOwnProperty(e))this.i1[e].removeCues();else for(var t in this.j1)this.j1.hasOwnProperty(t)&&this.i1[t].removeCues()},e.prototype.removeMatchingCues=function(e,t){this.i1[e].removeMatchingCues(t)},e.prototype.removeUntil=function(e){var t=this;Object.keys(this.i1).forEach(function(n){t.i1[n].removeCuesUntil(e)})},e.prototype.dispose=function(){for(var e in this.i1)this.i1.hasOwnProperty(e)&&(this.i1[e].dispose(),this.i1[e]=null);this.i1=null},e.prototype.getTimeline=function(e){if(this.i1)return this.i1[e]},e}()},80438:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Timeline=void 0;var i=n(80813),o=n(3714),a=n(13531),s=n(57387),u=n(70850),l=n(58735),c=n(8719);function d(e){return(0,l.isDateRangeMetadata)(e.content)?(0,l.calculateMetadataHash)(e.content):String((0,s.calcHash)(JSON.stringify({start:e.start,end:e.end,content:e.content})))}function f(e){var t={text:e.text};return"html"in e&&(t.html=e.html,t.text=t.text||t.html),"region"in e&&(t.region=e.region),"regionStyle"in e&&(t.regionStyle=e.regionStyle),"position"in e&&(t.position=e.position),"image"in e&&(t.image=e.image),"vtt"in e&&(t.vtt=e.vtt),t}function p(e){var t=[];return"updates"in e&&(t=e.updates.map(function(t){return{updateTime:t.updateTime,content:{html:t.html,text:e.text}}})),t}function h(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].updateTime<=t)return e[n]}t.Timeline=function(){function e(e,t){var n=this;this.cues=[],this.activeCues=[],this.activeCueUpdates=[],this.timestampOffset=0,this.Keb=function(e){var t=e.time||e.relativeTime||0;n.Meb(t),n.Neb(t),n.Oeb(t)},this.context=e,this.ydb=e.internalPlayer,this.xdb=t,this.zdb=!1,t.allowDuplicates||(this.storedCueTracker=new c.StoredCueTracker),this.ydb&&this.startListening()}return e.prototype.startListening=function(){this.zdb||(this.zdb=!0,this.ydb.on(o.PlayerEvent.TimeChanged,this.Keb))},e.prototype.stopListening=function(){this.zdb&&(this.ydb.off(o.PlayerEvent.TimeChanged,this.Keb),this.zdb=!1)},e.shouldCueBeActive=function(e,t){return e.end>t&&e.start<=t},e.prototype.Leb=function(e){for(var t=0;t<this.activeCues.length;t++)if(e===this.activeCues[t])return!0;return!1},e.prototype.Meb=function(t){for(var n,r,i=0;i<this.activeCues.length;i++){var o=this.activeCues[i];e.shouldCueBeActive(o,t)||(this.activeCues.splice(i,1),i--,null==(r=(n=this.xdb).onCueExit)||r.call(n,o))}},e.prototype.Neb=function(t){for(var n,r,i=0;i<this.cues.length;i++){var o=this.cues[i];if(e.shouldCueBeActive(o,t)&&!this.Leb(o)){if(!1===(null==(r=(n=this.xdb).onCueEnter)?void 0:r.call(n,o)))continue;this.activeCues.push(o)}}},e.prototype.Oeb=function(e){for(var t,n,i=[],o=0,a=this.activeCues;o<a.length;o++){var s=a[o],u=h(s.updates,e);void 0!==u&&(i.push(u),this.Peb(u)||null==(n=(t=this.xdb).onCueUpdate)||n.call(t,r(r({},s),{content:r(r({},s.content),u.content)})))}this.activeCueUpdates=i},e.prototype.Peb=function(e){return!!this.activeCueUpdates.find(function(t){return t===e})},e.prototype.addCue=function(e,t,n,i){var o,s=this;if(void 0===i&&(i=[]),!isNaN(e)&&!isNaN(t)&&n){var l=this.storedCueTracker?d({start:e,end:t,content:n}):void 0;if(!(null==(o=this.storedCueTracker)?void 0:o.has(l))){var c=i.map(function(e){return r(r({},e),{updateTime:e.updateTime+s.timestampOffset})}),f={start:e+this.timestampOffset,end:t+this.timestampOffset,content:n,updates:c};if(this.cues.length>0){var p=this.cues[this.cues.length-1];if(u.Util.deepEqual(n,p.content)&&e>=p.start&&e-.5<=p.end)return this.context.logger.isLevelEnabled(a.LogLevel.INSANE)&&this.context.logger.insane("changing end time of existing cue instead of adding a new cue ["+e+"-"+t+"] "+n),void(this.cues[this.cues.length-1].end=Math.max(t,p.end))}if(this.context.logger.isLevelEnabled(a.LogLevel.INSANE)){var h=JSON.stringify(n);h.length>500&&(h=h.substring(0,497)+"..."),this.context.logger.insane("add new cue ["+e+"-"+t+"] "+h)}this.storedCueTracker&&this.storedCueTracker.add(l),this.cues.push(f)}}},e.prototype.addCues=function(e,t){t=t||0;for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o&&o.hasOwnProperty("start")&&o.hasOwnProperty("end")&&o.end>t){var a=f(o),s=p(o);this.addCue(o.start,o.end,a,s),n=Math.max(n,o.end)}}return n},e.prototype.removeMatchingCues=function(e){var t=this;this.cues=this.cues.filter(function(n){var r,i=e(n);return i&&(null==(r=t.storedCueTracker)||r.remove(d(n))),!i})},e.prototype.removeCuesUntil=function(e){this.removeMatchingCues(function(t){return t.end<e})},e.prototype.removeCues=function(){var e;this.hide(),this.cues=[],null==(e=this.storedCueTracker)||e.removeAll()},e.prototype.hide=function(){this.Meb(-1),this.activeCues=[],this.activeCueUpdates=[]},e.prototype.show=function(){var e=this.context.serviceManager.get(i.ServiceName.PlayerStateService),t=(null==e?void 0:e.seekingOrTimeshifting)?e.targetPlaybackTime:this.ydb.getCurrentTime();this.Keb({time:t})},e.prototype.isVisible=function(){return!0},e.prototype.setTimestampOffset=function(e){this.timestampOffset=e},e.prototype.dispose=function(){var e;this.cues=[],this.activeCues=[],this.activeCueUpdates=[],null==(e=this.storedCueTracker)||e.dispose(),this.stopListening()},e.prototype.getCues=function(){return this.cues},e}()},4129:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultContentLoader=void 0;var i,o=n(89927),a=n(88052),s=n(62756),u=n(3714),l=n(29669),c=n(70962),d=n(68205),f=n(21513),p=n(4527),h=n(47993),y=n(88844),v=n(58313),E=n(70850),g=n(39980),m=n(77401),S=n(91523),_=n(57456),b=n(10647);function T(){return{requestType:l.HttpRequestType.INTERNAL,maxRetries:0}}!function(e){e.start="_download-start"}(i||(i={})),t.DefaultContentLoader=function(){function e(e,t){void 0===t&&(t=T());var n=this;this.load=function(e,t,r,i,o,a,s,u){return void 0===a&&(a=!1),void 0===u&&(u=!1),(n.NI||n.WI)&&n.KI.logger.debug("DefaultContentLoader: load called while a request is already active"),n.UI=s,n.XI=u,t=t||l.HttpRequestMethod.GET,e=n.dI(e),o=_.XhrHelper.mergeHeaders(n.TI.HTTP_HEADERS,o),e?(n.VI={method:t,url:v.URLHelper.toFullUrl(e),headers:JSON.parse(JSON.stringify(o)),responseType:r||l.HttpResponseType.TEXT,credentials:a?"include":"omit"},i&&(n.VI.body=i),n.lI(n.VI).then(function(e){return n.eI(e).catch(n.pI)}).then(n.mI).then(n.jI).then(function(e){return n.YI&&e.body instanceof n.YI.Stream?e.body=e.body.transform(function(e){return e},function(){return n.oI(e)},function(t){return t.message===m.RequestError.Failed&&n.cancel(),e.body.abort(t.message),t.message}):n.oI(e),e})):Promise.reject("no url given")},this.jI=function(e){return n.tI(e.status)?n.sI("Bad response from server",e):Promise.resolve(e)},this.lI=function(e){return n.kI(e,n.MI.preprocessHttpRequest)},this.mI=function(e){return n.kI(e,n.MI.preprocessHttpResponse)},this.nI=function(e){if("function"==typeof n.LI.onProgress&&!n.OI&&n.NI&&(!(e.loadedBytes>=0)||void 0===e.totalBytes||!(e.loadedBytes>=e.totalBytes))){var t=n.ZI.getElapsedTimeFrom(n.aI.start);n.LI.onProgress(r(r({},e),{elapsedTime:t}))}},this.pI=function(e){return n.RI++,e.error===m.RequestError.Canceled?n.sI(e.error,e.response):n.mI(e.response).then(function(t){var r,i=null==t?void 0:t.status,o=t?t.url:null;if(!i&&n.LI.resetRetriesWhenOffline&&o&&function(e){return"string"==typeof e&&(0,f.getReachableDomains)().domains.includes((0,v.extractOrigin)(e))}(o)&&(n.RI=0),n.MI.retryHttpRequest&&"function"==typeof n.MI.retryHttpRequest)return n.qI(e.error,t);if((null==t?void 0:t.status)&&n.tI(t.status))return n.sI("retry disabled for HTTP status code "+t.status,t);var a=null!=(r=n.LI.maxRetries)?r:0;return n.RI>a?(n.KI.logger.debug("Retries exceeded for ".concat(n.LI.requestType," (max retries: ").concat(a,")")),n.sI(e.error,t)):n.rI().catch(n.pI)})},this.sI=function(e,t){var r=n.RI;return n.uI(),n.NI=!1,n.cI(!1,t,r),n.LI.onFailure(t,{name:e},r-1),Promise.reject(null!=t?t:Error(e))},this.KI=e,this.MI=this.KI.config&&this.KI.config.network||{},a.ModuleManager.has(s.ModuleName.EngineBitmovin)&&(this.YI=a.ModuleManager.get(s.ModuleName.EngineBitmovin)),this.LI=r(r({},T()),t),this.ZI=new g.PerformanceMonitor(this.KI),this.vI()}return e.prototype.bI=function(e,t,n){return Math.min(Math.exp(e*t),n)},e.prototype.cI=function(e,t,n){t&&this.LI.requestType&&this.SI(u.PlayerEvent.DownloadFinished,{type:u.PlayerEvent.DownloadFinished,timestamp:Date.now(),httpStatus:t.status,success:e,url:t.url,downloadTime:(0,o.toSeconds)(E.Util.roundValue((0,o.toMilliSeconds)(t.elapsedTime),0)),size:t.length||0,attempt:n,maxAttempts:this.LI.maxRetries+1,downloadType:this.LI.requestType,mimeType:this.UI,timeToFirstByte:t.timeToFirstByte})},e.prototype.isLoading=function(){return this.NI},e.prototype.isRetrying=function(){return this.RI>0},e.prototype.setResetRetriesWhenOffline=function(e){this.LI.resetRetriesWhenOffline=e},e.prototype.setMaxRetries=function(e){this.LI.maxRetries=e},e.prototype.dI=function(e){return v.URLHelper.appendQueryParametersToUrl(e,this.TI.QUERY_PARAMETERS)},e.prototype.eI=function(e){var t=this;if(this.OI)return Promise.reject({error:m.RequestError.Canceled,response:null});this.aI&&this.ZI.clear(this.aI);var n="request-"+E.Util.generateUniqueId();return this.aI={start:n+i.start},this.ZI.addMarker(this.aI.start),this.VI=e,this.NI=!0,this.gI(),this.PI.getResponse().then(function(e){return null==e.elapsedTime&&(e.elapsedTime=t.ZI.getElapsedTimeFrom(t.aI.start),e.timeToFirstByte=0),e})},e.prototype.fI=function(){var e,t=this;this.MI.sendHttpRequest&&"function"==typeof this.MI.sendHttpRequest&&(e=(0,E.safeUserCallback)(function(){return t.MI.sendHttpRequest(t.LI.requestType,t.VI)},this.KI.logger));var n=this.MI.requestApi===l.NetworkRequestApi.Fetch||this.XI;if(n&&!(0,h.isFetchSupported)()&&(this.KI.logger.debug("Using fetch API is configured but not supported, falling back to XHR!"),n=!1),!e||"function"!=typeof e.getResponse){var r=(0,S.getRequestTimeout)(this.KI,this.LI.requestType);e=n?this.iI(r):this.hI(r)}return e},e.prototype.gI=function(){var e=this,t=this.fI();t.setProgressListener(function(t){return e.nI(t)});var n=p.CancelablePromise.makeCancelable(t.getResponse());this.PI={getResponse:function(){return n},cancel:function(){t.cancel(),n.cancel({error:m.RequestError.Canceled,response:null})},setProgressListener:t.setProgressListener}},e.prototype.hI=function(e){var t=this.LI.disableDownloadTimeout?-1:e;return new b.XhrRequestController(this.KI.logger,this.VI,t)},e.prototype.iI=function(e){return new this.YI.FetchController(this.KI,this.VI,e,this.XI)},e.prototype.kI=function(e,t){var n,r=this;return t&&"function"==typeof t?Promise.resolve(null!=(n=(0,E.safeUserCallback)(function(){return t(r.LI.requestType,e)},this.KI.logger))?n:e):Promise.resolve(e)},e.prototype.oI=function(e){this.NI=!1,this.cI(!0,e,this.RI+1),this.LI.onSuccess(e,e.elapsedTime,e.url),this.uI(),e.url&&(0,f.default)().dispatch((0,d.addReachableDomain)((0,v.extractOrigin)(e.url)))},e.prototype.qI=function(e,t){var n=this;return Promise.resolve((0,E.safeUserCallback)(function(){return n.MI.retryHttpRequest(n.LI.requestType,t,n.RI)},this.KI.logger)).then(function(e){return e.request?(n.KI.logger.debug("HttpResponse was passed on 'retryHttpRequest' instead of a HttpRequest",e),n.sI("HttpResponse was passed on 'retryHttpRequest' instead of a HttpRequest",t)):n.eI(e).catch(n.pI)}).catch(function(){return n.sI(e,t)})},e.prototype.rI=function(){var e=this,t=this.LI.retryDelay,n="constant";return this.TI.INCREASE_RETRY_DELAY&&(t=this.bI(this.TI.INCREASE_RETRY_DELAY_BASE_SEC,this.RI,this.TI.MAX_INCREASE_RETRY_DELAY_SEC),n="incremental"),this.KI.logger.debug("Using ".concat(n," retry delay (").concat(null==t?void 0:t.toFixed(1)," seconds, retry ").concat(this.RI,") for ").concat(this.VI.url)),new Promise(function(n,r){var i=window.setTimeout(function(){e.eI(e.VI).then(n).catch(r)},(0,o.toMilliSeconds)(t));e.WI=function(){e.WI=null,(0,y.clearTimeoutIfDefined)(i),r({error:m.RequestError.Canceled,response:null})}})},e.prototype.tI=function(e){return this.LI.requestType in this.TI.DISABLE_RETRY_FOR_RESPONSE_STATUS&&this.TI.DISABLE_RETRY_FOR_RESPONSE_STATUS[this.LI.requestType].includes(e)},e.prototype.uI=function(){this.RI=0,this.OI=!1,this.WI&&"function"==typeof this.WI&&this.WI()},e.prototype.cancel=function(){this.OI=!0,this.NI&&(this.NI=!1,this.WI&&this.WI(),this.PI&&this.PI.cancel())},e.prototype.getResponse=function(){if(this.PI&&"function"==typeof this.PI.getResponse)return this.PI.getResponse()},e.prototype.vI=function(){var e=["onSuccess","onFailure"];this.RI=0;var t={};E.Util.deepCopy(t,c.DefaultSettings),this.TI=this.KI.settings||t;for(var n=0;n<e.length;n++)this.LI.hasOwnProperty(e[n])&&"function"==typeof this.LI[e[n]]||(this.LI[e[n]]=function(){});this.KI.eventHandler&&"function"==typeof this.KI.eventHandler.dispatchEvent?this.SI=this.KI.eventHandler.dispatchEvent:this.SI=function(){}},e.prototype.dispose=function(){this.isLoading()&&this.cancel(),this.aI&&this.ZI.clear(this.aI),this.PI=null,this.SI=null,this.TI=null},e}()},85625:function(e,t){"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.ManifestMimeType=void 0,function(e){e.Dash="application/dash+xml",e.Hls="application/x-mpegurl",e.Smooth="application/vnd.ms-sstr+xml"}(n||(t.ManifestMimeType=n={}))},39980:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PerformanceMonitor=void 0;var r=n(89927),i=n(50025);t.PerformanceMonitor=function(){function e(e){this.context=e}return e.prototype.y4=function(e){return 0===e.length?(this.context.logger.warn("[PERFORMANCE] Mark was not found"),[{startTime:0,duration:0}]):e},e.prototype.z4=function(e){return this.y4(i.performanceWrapper.getEntriesByName(e))},e.prototype.addMarker=function(e){i.performanceWrapper.mark(e)},e.prototype.getElapsedTimeFrom=function(e){var t=this.z4(e);return(0,r.toSeconds)(i.performanceWrapper.now()-t[0].startTime)},e.prototype.clear=function(e){(function(){return Array.isArray(e)?e:Object.values(e)})().forEach(function(e){i.performanceWrapper.clearMarks(e)})},e}()},13053:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPerformanceShim=void 0,function(e){e.mark="mark",e.measure="measure"}(n||(n={}));var n,r=[],i={},o=function(e,t){r=t?r.filter(function(n){return n.name!==t&&n.entryType===e}):r.filter(function(t){return t.entryType!==e})},a=function(e,t){return r.filter(function(n){return n[e]===t})},s=function(e,t){i[t]=e,r.push(e)};t.getPerformanceShim=function(){return{now:function(){return Date.now()},mark:function(e){s({name:e,entryType:n.mark,startTime:this.now(),duration:0},e)},measure:function(e,t,r){!function(e,t){var n=function(e){return"[Performance] Mark ".concat(e," does not exist.")};if(!i[t])throw Error(n(t));if(!i[e])throw Error(n(e))}(t,r);var o=i[t]?i[t].startTime:0;s({name:e,startTime:o,duration:(i[r]?i[r].startTime:this.now())-o,entryType:n.measure},e)},getEntriesByName:function(e){return a("name",e)},getEntriesByType:function(e){return a("entryType",e)},clearMarks:function(e){o(n.mark,e)},clearMeasures:function(e){o(n.measure,e)}}}},50025:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performanceWrapper=t.resolvePerformanceApi=t.requiredMethodNames=void 0;var r=n(13053);t.requiredMethodNames=["now","mark","measure","getEntriesByName","getEntriesByType","clearMarks","clearMeasures"],t.resolvePerformanceApi=function(e){return!function(e,t){return t.every(function(t){return"function"==typeof e[t]})}(e.performance,t.requiredMethodNames)?(0,r.getPerformanceShim)():e.performance},t.performanceWrapper=(0,t.resolvePerformanceApi)(window)},77401:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RequestError=void 0,function(e){e.Failed="request failed",e.Canceled="canceled by user",e.TimedOut="request has timed out"}(n||(t.RequestError=n={}))},4131:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasLoadedData=function(e){var t,n,r=(null!=(n=null==(t=e.responseTiming)?void 0:t.headersReceivedTimestamp)?n:-1)>-1,i=e.loadedBytes>0;return r&&i}},43446:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimingUtil=void 0;var r=n(89927);t.TimingUtil=function(){function e(){}return e.getHiResTimestamp=function(){return window.performance&&"function"==typeof window.performance.now?(0,r.toSeconds)(window.performance.now()):(0,r.toSeconds)(Date.now())},e}()},96266:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.XhrEvent=void 0,function(e){e.ReadyStateChange="readystatechange",e.Abort="abort",e.Error="error",e.Load="load",e.LoadEnd="loadend",e.LoadStart="loadstart",e.Progress="progress",e.Timeout="timeout"}(n||(t.XhrEvent=n={}))},57456:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.XhrHelper=void 0,t.isDownloadTimeInformationValid=function(e){return e.length>0&&e.elapsedTime>=0&&e.timeToFirstByte>=0&&e.elapsedTime>e.timeToFirstByte};var i=n(29669),o=n(21513);t.XhrHelper=function(){function e(){}return e.headersStringToArray=function(e){if(!e||0===e.trim().length)return{};for(var t={},n=0,r=e.split("\r\n");n<r.length;n++){var i=r[n],o=i.indexOf(": ");-1!==o&&(t[i.slice(0,o)]=i.slice(o+2))}return t},e.toHttpResponse=function(t,n,i){var a=t.readyState===XMLHttpRequest.OPENED&&(0,o.getCapabilities)().isTizen?{status:-1,statusText:"PENDING"}:{status:t.status,statusText:t.statusText},s=e.headersStringToArray(t.getAllResponseHeaders()),u=r({request:n,url:t.responseURL||n.url,headers:s},a);return function(e){return e.openedTimestamp>-1&&e.headersReceivedTimestamp>-1&&e.doneTimestamp>-1}
vendor: 36,555 bytes, line 1
1(i)&&(u.timeToFirstByte=i.headersReceivedTimestamp-i.openedTimestamp,u.elapsedTime=i.doneTimestamp-i.openedTimestamp),t.response&&(u.body=this.getResponseBody(t,n.responseType),u.length=t.response.byteLength||t.response.length||0),u},e.getResponseBody=function(e,t){var n;if(t===i.HttpResponseType.JSON&&(null==(n=e.getResponseHeader("content-type"))?void 0:n.includes("application/json"))&&"string"==typeof e.response)try{return JSON.parse(e.response)}catch(e){return null}return e.response},e.setHeaders=function(e,t){t&&Object.keys(t).length>0&&Object.keys(t).forEach(function(n){e.setRequestHeader(n,t[n])})},e.mergeHeaders=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={};return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=function(e,t){return Object.keys(e).find(function(e){return e.toLowerCase()===t.toLowerCase()})}(n,t);r?n[r]=e[t]:n[t]=e[t]})}),n},e}()},10647:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XhrRequestController=void 0;var r=n(77401),i=n(96266),o=n(99313);t.XhrRequestController=function(){function e(e,t,n){var r=this;this.setProgressListener=function(e){r.A4.on(i.XhrEvent.Progress,function(t){return e(t)})},this.A4=new o.XhrWrapper(e,t,n)}return e.prototype.getResponse=function(){return this.B4=this.B4||this.A4.send(),this.B4},e.prototype.cancel=function(){this.A4.abort(r.RequestError.Canceled)},e}()},99313:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.XhrWrapper=void 0;var i=n(89927),o=n(88844),a=n(77401),s=n(43446),u=n(96266),l=n(57456);t.XhrWrapper=function(){function e(e,t,n){var r=this;this.Vfb=!1,this.Xfb=function(e){var t,n,i=null!=(t=e.total)?t:-1,o=null!=(n=e.loaded)?n:-1,a=s.TimingUtil.getHiResTimestamp();r.Jeb.totalBytes=i,r.Jeb.loadedBytes=o,r.Ufb.progressTimestamp=a,o<i&&r.Wfb()},this.Yfb=function(e){var t=(0,i.toSeconds)(e.timeStamp);if(r.Eeb.readyState===r.Eeb.OPENED)r.Ufb.openedTimestamp=t,r.Wfb();else if(r.Eeb.readyState===r.Eeb.HEADERS_RECEIVED)r.Ufb.headersReceivedTimestamp=t,r.Wfb();else if(r.Eeb.readyState===r.Eeb.DONE){var n=r.Eeb.status>=200&&r.Eeb.status<300;r.Ufb.doneTimestamp=t,n&&null!==r.Eeb.response?r.Feb(l.XhrHelper.toHttpResponse(r.Eeb,r.Ceb,r.Ufb)):r.Vfb||r.Zfb(a.RequestError.Failed),r.dispose()}},this.Beb=e,this.Ceb=t,this.timeout=n,this.Heb={},this.Ieb=!1,this.Ufb={sendTimestamp:-1,openedTimestamp:-1,headersReceivedTimestamp:-1,progressTimestamp:-1,doneTimestamp:-1},this.Jeb={totalBytes:-1,loadedBytes:-1,url:t.url,responseTiming:this.Ufb}}return e.prototype.on=function(e,t){this.Heb=this.Heb||{},this.Heb[e]=this.Heb[e]||[],this.Heb[e].push(t)},e.prototype.Wfb=function(){var e,t=this;(null!=(e=this.Heb[u.XhrEvent.Progress])?e:[]).forEach(function(e){return e(r({},t.Jeb))})},e.prototype.send=function(){var e=this;return this.Eeb=new XMLHttpRequest,this.Ieb=!1,this.Vfb=!1,new Promise(function(t,n){e.Feb=t,e.Geb=n;try{e.Eeb.addEventListener(u.XhrEvent.Progress,e.Xfb),e.Eeb.addEventListener(u.XhrEvent.ReadyStateChange,e.Yfb)}catch(n){return e.Beb.debug("ContentLoader: could not add event listeners",n),t(e.send())}e.Ufb.sendTimestamp=s.TimingUtil.getHiResTimestamp(),e.Eeb.open(e.Ceb.method,e.Ceb.url),e.Eeb.withCredentials="include"===e.Ceb.credentials,e.Wfb(),l.XhrHelper.setHeaders(e.Eeb,e.Ceb.headers),e.Ceb.responseType&&(e.Eeb.responseType=e.Ceb.responseType),e.timeout>0&&(e.Deb=window.setTimeout(function(){return e.abort(a.RequestError.TimedOut)},e.timeout)),e.Ceb.body?e.Eeb.send(e.Ceb.body):e.Eeb.send()})},e.prototype.dispose=function(){this.Ieb||((0,o.clearTimeoutIfDefined)(this.Deb),this.Eeb.removeEventListener(u.XhrEvent.Progress,this.Xfb),this.Eeb.removeEventListener(u.XhrEvent.ReadyStateChange,this.Yfb),this.Heb=null,this.Eeb=null,this.Feb=null,this.Geb=null,this.Ieb=!0)},e.prototype.Zfb=function(e,t){void 0===t&&(t=!1),this.Ieb||(this.Geb({error:e,response:l.XhrHelper.toHttpResponse(this.Eeb,this.Ceb,this.Ufb)}),t&&this.Eeb.abort())},e.prototype.abort=function(e){void 0===e&&(e=a.RequestError.Canceled),this.Ieb||this.Vfb||(this.Vfb=!0,this.Zfb(e,!0),this.dispose())},e}()},91523:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestTimeout=function(e,t){var n,i,o,a,s=null!=(n=e.config.network)?n:{};return(0,r.toMilliSeconds)(null!=(a=null!=(o=null==(i=s.requestTimeout)?void 0:i[t])?o:s.defaultRequestTimeout)?a:e.settings.XHR_TIMEOUT)};var r=n(89927)},25811:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DRMSchemeIDURIs=void 0,t.keySystemNameToSchemeUri=function(e){return Object.keys(t.DRMSchemeIDURIs).find(function(n){return t.DRMSchemeIDURIs[n]===e})},t.DRMSchemeIDURIs={"urn:mpeg:dash:mp4protection:2011":"cenc","urn:mpeg:dash:13818:1:CA_descriptor:2011":"cenc4ts","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"widevine","urn:uuid:5e629af5-38da-4063-8977-97ffbd9902d4":"marlin_v1","urn:uuid:adb41c24-2dbf-4a6d-958b-4457c0d27b95":"tvkey","urn:uuid:a68129d3-575b-4f1a-9cba-3223846cf7c3":"nds_videoguard","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"playready","urn:uuid:9a27dd82-fde2-4725-8cbc-4234aa06ec09":"verimatrix_vcas","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"primetime","urn:uuid:1f83e1e8-6ee9-4f0d-ba2f-5ec4e3ed1a66":"securemedia","urn:uuid:644fe7b5-260f-4fad-949a-0762ffb054b4":"cmla_oma","urn:uuid:6a99532d-869f-5922-9a91-113ab7b1e2f3":"mobitv","urn:uuid:35bf197b-530e-42d7-8b65-1b4bf415070f":"divx_drm5","urn:uuid:b4413586-c58c-ffb0-94a5-d4896c1af6c3":"viaccess-orca","urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"common_system-id"}},51682:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISOBMFFConstants=void 0,t.ISOBMFFConstants={BOX_HEADER_LENGTH_REGULAR:8,BOX_HEADER_LENGTH_LARGE:16,BOX_SIZE_LENGTH:4,BOX_TYPE_LENGTH:4,FULL_BOX_VERSION_LENGTH:1,FULL_BOX_FLAGS_LENGTH:3,PSSH_KID_COUNT_LENGTH:4,PSSH_KID_LEN:16,PSSH_SYSTEM_ID_LENGTH:16,PSSH_DATA_SIZE:4}},33468:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.KeySystemMap=t.KeySystemKind=void 0,t.keySystemUidToKind=function(e){return Object.keys(t.KeySystemMap).find(function(n){return t.KeySystemMap[n].includes(e)})},t.getRelevantKeySystemMap=function(e){var n,i=((n={})[r.FAIRPLAY]=[],n[r.PLAYREADY]=[],n[r.PRIMETIME]=[],n[r.WIDEVINE]=[],n[r.TVKEY]=[],n);return Object.keys(r).forEach(function(n){var o=r[n];e[o]&&(i[o]=t.KeySystemMap[o])}),i},function(e){e.FAIRPLAY="fairplay",e.PLAYREADY="playready",e.PRIMETIME="primetime",e.WIDEVINE="widevine",e.TVKEY="tvkey"}(r||(t.KeySystemKind=r={})),(n={})[r.FAIRPLAY]=["com.apple.fairplay","com.apple.fps.1_0","com.apple.fps.2_0","com.apple.fps.3_0"],n[r.PLAYREADY]=["com.youtube.playready","com.microsoft.playready","com.microsoft.playready.recommendation","com.microsoft.playready.recommendation.3000"],n[r.PRIMETIME]=["com.adobe.primetime","com.adobe.access"],n[r.WIDEVINE]=["com.widevine.alpha","com.widevine.alpha.experiment"],n[r.TVKEY]=["com.tvkey.drm"],t.KeySystemMap=n},35267:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAction=function(e,t){return{type:e,meta:{},payload:t}}},48774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devToolsExtension=void 0,t.devToolsExtension=n(4081).default.__REDUX_DEVTOOLS_EXTENSION__},39541:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReducerTree=void 0,t.isReducer=o,t.isReducerTree=function(e){return!!e&&e instanceof i};var r=n(91829),i=function(){function e(){this.L7={}}return e.prototype.has=function(e){return!!this.L7[e]},e.prototype.set=function(e,t){return this.L7[e]=t,this},e.prototype.get=function(e){return this.L7[e]},e.prototype.delete=function(e){delete this.L7[e]},e.prototype.keys=function(){return Object.keys(this.L7)},e.prototype.M7=function(e){var t=this,n={};return this.keys().forEach(function(r){var i=t.get(r),a=e.concat(String(r));n[r]=o(i)?i:i.M7(a)}),0===Object.keys(n).length?function(e){return{}}:(0,r.combineReducers)(n)},e.prototype.buildReducer=function(){return this.M7([])},e}();function o(e){return!!e&&"function"==typeof e}t.ReducerTree=i},61674:function(e,t){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.addStoreServiceDecoration=void 0,t.addStoreServiceDecoration=function(e){return function(t){return function(){var r=function(){return e.buildReducer()},i=t(r()),o=function(){return i.replaceReducer(r())};return o(),n(n({},i),{addReducer:function(t,n){e.set(t,n),o()},getReducer:function(t){return e.get(t)},removeReducer:function(t){e.delete(t),o()},hasReducer:function(t){return e.has(t)}})}}}},21513:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,t.getCapabilities=function(){return function(e){return e.capabilities}(d().getState())},t.getReachableDomains=function(){return function(e){return e.reachableDomains}(d().getState())};var r,i=n(91829),o=n(14638),a=(n(48774),n(81683),n(60430)),s=n(39541),u=n(61674),l=new s.ReducerTree;l.set("capabilities",o.CapabilityReducer).set("reachableDomains",a.ReachableDomainsReducer);var c=function(){var e=[(0,u.addStoreServiceDecoration)(l)];return(0,i.createStore)(function(){return{}},i.compose.apply(void 0,e))};function d(){return r||(r=c()),r}},61089:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.StoreService=void 0;var i=n(39541),o=n(93204);function a(e){return e}t.StoreService=function(){function e(e,t,n){var r=this;this.parentStore=e,this.levelIdentifier=t,this.identifierValue=n,this.V5=[],this.X5=function(e){return e[r.levelIdentifier][r.identifierValue]},this.U5=new i.ReducerTree,this.j6(this.U5)}return e.prototype.dispatch=function(e){var t;return null==(t=this.parentStore)?void 0:t.dispatch(this.W5(e))},e.prototype.W5=function(e){var t;return r(r({},e),{meta:r(r({},e.meta),((t={})[this.levelIdentifier]=this.identifierValue,t))})},e.prototype.i6=function(){return this.parentStore.hasReducer(this.levelIdentifier)||this.parentStore.addReducer(this.levelIdentifier,new i.ReducerTree),this.parentStore.getReducer(this.levelIdentifier)},e.prototype.j6=function(e){var t=this.i6();(0,i.isReducerTree)(t)&&a(t).set(this.identifierValue,e),this.parentStore.addReducer(this.levelIdentifier,t)},e.prototype.getState=function(){var e,t=null==(e=this.parentStore)?void 0:e.getState();if(t)return this.X5(t)},e.prototype.subscribe=function(e,t){var n=this,r=(0,o.subscribe)(this.parentStore)(this.X5,e,t);return this.V5.push(r),function(){n.V5=n.V5.filter(function(e){return e!==r}),r()}},e.prototype.k6=function(e){var t=this;return function(n,r){return r.meta&&r.meta[t.levelIdentifier]&&r.meta[t.levelIdentifier]!==t.identifierValue?n:e(n,r)}},e.prototype.addReducer=function(e,t){this.U5.set(e,(0,i.isReducer)(t)?this.k6(t):t),this.j6(this.U5)},e.prototype.addReducers=function(e){for(var t=0,n=Object.entries(e);t<n.length;t++){var r=n[t],o=r[0],a=r[1];void 0!==a&&this.U5.set(o,(0,i.isReducer)(a)?this.k6(a):a)}this.j6(this.U5)},e.prototype.getReducer=function(e){return this.U5.get(e)},e.prototype.removeReducer=function(e){this.U5.delete(e),this.j6(this.U5)},e.prototype.hasReducer=function(e){return this.U5.has(e)},e.prototype.dispose=function(){var e=this.i6();this.V5.forEach(function(e){return e()}),e&&(0,i.isReducerTree)(e)&&a(e).delete(this.identifierValue),this.parentStore.addReducer(this.levelIdentifier,e),this.V5=[],this.U5=null,this.parentStore=null},e}()},93204:function(e,t){"use strict";function n(e){return function(t,n,r){void 0===r&&(r=function(){return!0});var i=t(e.getState());return e.subscribe(function(){var o=t(e.getState()),a=i;i=o,null!=o&&o!==a&&r(o,a)&&n(o,a)})}}function r(e){return function(t,r,i){void 0===i&&(i=function(){return!0});var o=n(e)(t,function(e){o(),r(e)},i);return o}}Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=n,t.waitForStateChange=r,t.waitForStateChangeThen=function(e){return function(t,n){return void 0===n&&(n=function(){return!0}),new Promise(function(i){r(e)(t,function(e){i(e)},n)})}}},91565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeCapabilities=function(){return(0,o.createAction)(s,l())},t.setCapabilityKey=function(e,t){return(0,o.createAction)(u,{key:e,value:t})};var r=n(47993),i=n(15487),o=n(35267),a=n(7387),s=a.CapabilityActionType.InitCapabilities,u=a.CapabilityActionType.SetCapability,l=function(){var e;return{isPlayStation5:i.isPlayStation5(),isPlayStation4:i.isPlayStation4(),isMobile:i.isMobile(),isTizen:i.isTizen(),isSafari:i.isSafari(),isIOS:i.isIOS(),isSafariIOS:i.isSafariIOS(),isEdge:i.isEdge(),isLegacyEdge:i.isLegacyEdge(),isEdgeChromium:i.isEdgeChromium(),isChrome:i.isChrome(),isChromium:i.isChromium(),isFirefox:i.isFirefox(),isFirefoxIOS:i.isFirefoxIOS(),isWebOS:i.isWebOS(),isVidaa:i.isVidaa(),isVizio:i.isVizio(),isReactNative:i.isReactNative(),isWpeWebKit:i.isWpeWebKit(),MSESafari:r.MSESafari(),isLocalStorageAvailable:r.isLocalStorageAvailable(),isInlinePlaybackRestricted:r.isInlinePlaybackRestricted(),edgeVersion:i.getEdgeVersion(),IOSVersion:i.getIOSVersion(),safariVersion:i.getSafariVersion(),webOSChromiumVersion:null!=(e=i.getWebOsChromiumVersion().major)?e:0,techSupportedByModules:r.getTechSupportedByModules(),techSupportedByPlatform:r.getTechSupportedByPlatform(),techSupportedByModulesOnPlatform:r.getTechSupportedByModulesOnPlatform()}}},14638:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.CapabilityReducer=void 0;var o=n(3793),a=n(7387);t.CapabilityReducer=(0,o.default)({},((r={})[a.CapabilityActionType.InitCapabilities]=function(e,t){return t.payload},r[a.CapabilityActionType.SetCapability]=function(e,t){return function(e,t){var n,r=t.key,o=t.value;return i(i({},e),((n={})[r]=o,n))}(e,t.payload)},r))},7387:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.CapabilityKey=t.CapabilityActionType=void 0,function(e){e.InitCapabilities="initcapabilities",e.SetCapability="setcapability"}(n||(t.CapabilityActionType=n={})),function(e){e.isPlayStation5="isPlayStation5",e.isPlayStation4="isPlayStation4",e.isMobile="isMobile",e.isTizen="isTizen",e.isSafari="isSafari",e.isChrome="isChrome",e.isChromium="isChromium",e.isFirefox="isFirefox",e.isFirefoxIOS="isFirefoxIOS",e.isWebOS="isWebOS",e.isVidaa="isVidaa",e.isVizio="isVizio",e.isIOS="isIOS",e.isSafariIOS="isSafariIOS",e.isEdge="isEdge",e.isLegacyEdge="isLegacyEdge",e.isEdgeChromium="isEdgeChromium",e.isReactNative="isReactNative",e.isWpeWebKit="isWpeWebKit",e.MSESafari="MSESafari",e.isLocalStorageAvailable="isLocalStorageAvailable",e.isInlinePlaybackRestricted="isInlinePlaybackRestricted",e.IOSVersion="IOSVersion",e.edgeVersion="edgeVersion",e.safariVersion="safariVersion",e.webOSChromiumVersion="webOSChromiumVersion",e.techSupportedByModules="techSupportedByModules",e.techSupportedByPlatform="techSupportedByPlatform",e.techSupportedByModulesOnPlatform="techSupportedByModulesOnPlatform"}(r||(t.CapabilityKey=r={}))},3793:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StaticActionTypes=void 0,function(e){e.Default="default"}(n||(t.StaticActionTypes=n={})),t.default=function(e,t){return function(r,i){return void 0===r&&(r=e),t[i.type]?t[i.type](r,i):t[n.Default]?t[n.Default](r,i):r}}},77753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInstanceState=function(e){return(0,r.isObject)(e)&&["player","metrics"].every(function(t){return t in e})};var r=n(94685)},98714:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPreferredBitrateForMimeTypeAction=function(e,t){return(0,r.createAction)(i.AdaptationActionType.SetPreferredBitrateForMimeType,{mimeType:e,preferredBitrate:t})},t.clearPreferredBitrateForMimeTypeAction=function(e){return(0,r.createAction)(i.AdaptationActionType.ClearPreferredBitrateForMimeType,{mimeType:e})};var r=n(35267),i=n(56960)},87133:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AdaptationReducer=void 0;var o=n(3793),a=n(56960);t.AdaptationReducer=(0,o.default)({},((r={})[a.AdaptationActionType.SetPreferredBitrateForMimeType]=function(e,t){var n=t.payload;return function(e,t,n){var r;return i(i({},e),((r={})[t]=i(i({},e[t]),{preferredBitrate:n}),r))}(e,n.mimeType,n.preferredBitrate)},r[a.AdaptationActionType.ClearPreferredBitrateForMimeType]=function(e,t){return function(e,t){var n;return i(i({},e),((n={})[t]=i(i({},e[t]),{preferredBitrate:void 0}),n))}(e,t.payload.mimeType)},r))},49859:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAdaptationState=function(e){return e.adaptation},t.getPreferredBitrate=function(e,t){return e[t]?e[t].preferredBitrate:void 0}},56960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AdaptationActionType=void 0,function(e){e.SetPreferredBitrateForMimeType="setpreferredbitrateformimetype",e.ClearPreferredBitrateForMimeType="clearpreferredbitrateformimetype"}(n||(t.AdaptationActionType=n={}))},91678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeMetricsForMimeType=function(e,t,n){return void 0===n&&(n=e),(0,r.createAction)(i.MetricsActionType.InitializeMetricsForMimeType,{mimeType:e,settings:t,saveUnderName:n})},t.removeMetricsForMimeType=function(e){return(0,r.createAction)(i.MetricsActionType.RemoveMetricsForMimeType,{mimeType:e})},t.addMetricsValue=function(e,t,n){return(0,r.createAction)(i.MetricsActionType.AddMetricsValue,{mimeType:e,metricType:t,value:n})},t.removeMetricsValue=function(e,t,n){return(0,r.createAction)(i.MetricsActionType.RemoveMetricsValue,{mimeType:e,metricType:t,value:n})},t.clearMetricsHistory=function(e,t){return(0,r.createAction)(i.MetricsActionType.ClearMetricsHistory,{mimeType:e,metricType:t})},t.setBufferLogicActivationThreshold=function(e,t){return(0,r.createAction)(i.MetricsActionType.SetBufferLogicActivationThreshold,{mimeType:e,threshold:t})};var r=n(35267),i=n(33436)},27359:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containMimeTypeGuard=function(e){return function(t,n){return t[n.mimeType]?e(t,n):t}}},6873:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsReducer=void 0;var a=n(3793),s=n(27359),u=n(33436);function l(e,t){var n,r=t.mimeType,o=t.threshold;return i(i({},e),((n={})[r]=i(i({},e[r]),{bufferLogicActivationThreshold:o}),n))}function c(e,t){var n,r,a=t.mimeType,s=t.metricType,u=t.value,l=e[a].settings.metricHistorySize,c=e[a].data[s]||[],d=l>0&&c.length>=l;return i(i({},e),((n={})[a]=i(i({},e[a]),{data:i(i({},e[a].data),((r={})[s]=o(o([],d?c.slice(1,c.length):c,!0),[{time:Date.now(),value:u}],!1),r))}),n))}function d(e,t){var n,r,o=t.mimeType,a=t.metricType;return i(i({},e),((n={})[o]=i(i({},e[o]),{data:i(i({},e[o].data),((r={})[a]=[],r))}),n))}function f(e,t){var n,r,o=t.mimeType,a=t.metricType,s=t.value,u=(e[o].data[a]||[]).filter(function(e){return e.time!==s.time||e.value!==s.value});return i(i({},e),((n={})[o]=i(i({},e[o]),{data:i(i({},e[o].data),((r={})[a]=u,r))}),n))}t.MetricsReducer=(0,a.default)({},((r={})[u.MetricsActionType.InitializeMetricsForMimeType]=function(e,t){return function(e,t){var n,r=t.mimeType,o=t.settings,a=t.saveUnderName;return i(i({},e),((n={})[a]={mimeType:r,settings:{metricHistorySize:o.METRIC_HISTORY_SIZE},bufferLogicActivationThreshold:o.BUFFER_LOGIC_ACTIVATION_THRESHOLD,data:{}},n))}(e,t.payload)},r[u.MetricsActionType.RemoveMetricsForMimeType]=function(e,t){return function(e,t){var n=i({},e);return delete n[t.mimeType],n}(e,t.payload)},r[u.MetricsActionType.SetBufferLogicActivationThreshold]=function(e,t){var n=t.payload;return(0,s.containMimeTypeGuard)(l)(e,n)},r[u.MetricsActionType.AddMetricsValue]=function(e,t){var n=t.payload;return(0,s.containMimeTypeGuard)(c)(e,n)},r[u.MetricsActionType.ClearMetricsHistory]=function(e,t){var n=t.payload;return(0,s.containMimeTypeGuard)(d)(e,n)},r[u.MetricsActionType.RemoveMetricsValue]=function(e,t){var n=t.payload;return(0,s.containMimeTypeGuard)(f)(e,n)},r))},46151:function(e,t){"use strict";function n(e,t,n){return e[t]&&e[t].data[n]||[]}Object.defineProperty(t,"__esModule",{value:!0}),t.getMetricsHistoryFromInstanceState=t.getMetricsState=void 0,t.getMetricsHistory=n,t.getMetricsLastEntry=function(e,t,r){var i=n(e,t,r);return 0===i.length?{time:void 0,value:void 0}:i[i.length-1]},t.getMetricsState=function(e){return e.metrics},t.getMetricsHistoryFromInstanceState=function(e,r,i){return n((0,t.getMetricsState)(e),r,i)}},33436:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsActionType=t.MetricType=void 0,function(e){e.DownloadTime="downloadtime",e.DecryptionTime="decryptiontime",e.TransmuxingTime="transmuxingtime",e.ProcessingTime="processingtime",e.DownloadSuccess="downloadsuccess",e.RequestedRepresentations="requestedrepresentations",e.DownloadedRepresentation="downloadedrepresentation",e.DownloadedAdaptationSet="downloadedadaptationset",e.DownloadInformation="downloadinformation",e.SegmentInformation="segmentinformation",e.ChunkedDownloadInformation="chunkeddownloadinformation",e.StalledSeconds="stalledseconds",e.StartTime="starttime",e.StartupTimeSeconds="startuptime",e.CachedInitSegments="cachedinitsegments"}(n||(t.MetricType=n={})),function(e){e.InitializeMetricsForMimeType="@instance/metrics/initializemetricsformimetype",e.RemoveMetricsForMimeType="@instance/metrics/removemetricsformimetype",e.AddMetricsValue="@instance/metrics/addmetricsvalue",e.RemoveMetricsValue="@instance/metrics/removemetricsvalue",e.ClearMetricsHistory="@instance/metrics/clearMetricsHistory",e.SetBufferLogicActivationThreshold="@instance/metrics/setbufferlogicactivationthreshold"}(r||(t.MetricsActionType=r={}))},23690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitialPlayerState=void 0,t.setPlayerViewMode=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerViewMode,e)},t.setPlayerHasBeenPlaying=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerHasBeenPlaying,e)},t.setPlayerSeek=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerSeek,e)},t.setPlayerPlayback=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerPlayback,e)},t.setPlayerTimeShift=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerTimeshift,e)},t.setPlayerStall=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerStall,e)},t.setPlayerSourceSwitching=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerSourceSwitching,e)},t.setRendererStallAction=function(e){return(0,i.createAction)(o.PlayerActionType.SetRendererStall,e)},t.setPlayerTargetPlaybackTime=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerTargetPlaybackTime,e)},t.setPlayerPlaybackSpeed=function(e){return(0,i.createAction)(o.PlayerActionType.SetPlayerPlaybackSpeed,e)},t.setDestroyState=function(e){return(0,i.createAction)(o.PlayerActionType.SetDestroyState,e)},t.addPlayerPendingTransition=function(e){return(0,i.createAction)(o.PlayerActionType.AddPlayerPendingTransition,e)},t.filterPlayerPendingTransition=function(e){return(0,i.createAction)(o.PlayerActionType.FilterPlayerPendingTransition,e)},t.removePlayerPendingTransition=function(e){return(0,i.createAction)(o.PlayerActionType.RemovePlayerPendingTransition,e)},t.clearPlayerPendingTransitions=function(){return(0,i.createAction)(o.PlayerActionType.ClearPlayerPendingTransitions)},t.setRemoteControlType=function(e){return(0,i.createAction)(o.PlayerActionType.SetRemoteControlType,e)},t.setConnectionState=function(e){return(0,i.createAction)(o.PlayerActionType.SetConnectionState,e)},t.resetPlayerState=function(e){return void 0===e&&(e=[]),(0,i.createAction)(o.PlayerActionType.ResetPlayerState,{keepState:e})},t.updateSeekingProcess=function(e){return(0,i.createAction)(o.PlayerActionType.UpdateSeekingProcess,e)};var r=n(44468),i=n(35267),o=n(85648);t.getInitialPlayerState=function(){return{playbackState:o.PlaybackState.None,seekState:o.SeekState.None,timeShiftState:o.TimeShiftState.None,hasBeenPlaying:!1,isStalled:!1,isRendererStalled:!1,isSourceSwitching:!1,targetPlaybackTime:-1,playbackSpeed:{speed:1,multiplier:1},pendingTransitions:[],viewMode:r.ViewMode.Inline,destroyState:o.DestroyState.None,remoteControlState:{connectionState:o.ConnectionState.Disconnected,remoteControlType:o.RemoteControlType.None},seekingProcess:{targetTime:-1,seekableRange:{start:-1,end:-1},isInitial:!1,issuer:""}}}},8973:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerReducer=void 0;var a=n(3793),s=n(23690),u=n(85648),l=(0,s.getInitialPlayerState)();t.PlayerReducer=(0,a.default)(l,((r={})[u.PlayerActionType.SetPlayerPlayback]=function(e,t){var n=t.payload;return i(i({},e),{playbackState:n})},r[u.PlayerActionType.SetPlayerSeek]=function(e,t){var n=t.payload;return i(i({},e),{seekState:n})},r[u.PlayerActionType.SetPlayerStall]=function(e,t){var n=t.payload;return i(i({},e),{isStalled:n})},r[u.PlayerActionType.SetPlayerSourceSwitching]=function(e,t){var n=t.payload;return i(i({},e),{isSourceSwitching:n})},r[u.PlayerActionType.SetRendererStall]=function(e,t){return i(i({},e),{isRendererStalled:t.payload})},r[u.PlayerActionType.SetPlayerTimeshift]=function(e,t){var n=t.payload;return i(i({},e),{timeShiftState:n})},r[u.PlayerActionType.SetPlayerHasBeenPlaying]=function(e,t){var n=t.payload;return i(i({},e),{hasBeenPlaying:n})},r[u.PlayerActionType.SetPlayerTargetPlaybackTime]=function(e,t){var n=t.payload;return i(i({},e),{targetPlaybackTime:n})},r[u.PlayerActionType.SetPlayerPlaybackSpeed]=function(e,t){var n=t.payload;return i(i({},e),{playbackSpeed:n})},r[u.PlayerActionType.SetPlayerViewMode]=function(e,t){var n=t.payload;return i(i({},e),{viewMode:n})},r[u.PlayerActionType.AddPlayerPendingTransition]=function(e,t){var n=t.payload;return i(i({},e),{pendingTransitions:o(o([],e.pendingTransitions,!0),[n],!1)})},r[u.PlayerActionType.FilterPlayerPendingTransition]=function(e,t){var n=t.payload;return i(i({},e),{pendingTransitions:e.pendingTransitions.filter(function(e){return e!==n})})},r[u.PlayerActionType.RemovePlayerPendingTransition]=function(e,t){var n=t.payload;return i(i({},e),{pendingTransitions:e.pendingTransitions.filter(function(e,t){return t!==n})})},r[u.PlayerActionType.ClearPlayerPendingTransitions]=function(e,t){return i(i({},e),{pendingTransitions:[]})},r[u.PlayerActionType.ResetPlayerState]=function(e,t){var n=t.payload.keepState,r={};return n.forEach(function(t){return r[t]=e[t]}),i(i({},l),r)},r[u.PlayerActionType.SetDestroyState]=function(e,t){var n=t.payload;return i(i({},e),{destroyState:n})},r[u.PlayerActionType.SetRemoteControlType]=function(e,t){var n=t.payload;return i(i({},e),{remoteControlState:i(i({},e.remoteControlState),{remoteControlType:n})})},r[u.PlayerActionType.SetConnectionState]=function(e,t){var n=t.payload;return i(i({},e),{remoteControlState:i(i({},e.remoteControlState),{connectionState:n})})},r[u.PlayerActionType.UpdateSeekingProcess]=function(e,t){var n=t.payload;return i(i({},e),{seekingProcess:i(i({},e.seekingProcess),n)})},r))},87827:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeToSeekedOrTimeshifted=t.subscribeToSeeked=t.subscribeToSeek=t.getRemoteControlState=t.getIsRendererStalled=t.isDestroyed=t.isBeingDestroyed=t.getIsSeekedOrTimeshifted=t.getIsSeekingOrTimeshifting=t.getPlaybackSpeed=t.getTargetPlaybackTime=t.getIsTimeShifted=t.getIsTimeShifting=t.getIsSeeked=t.getIsSeeking=t.getIsInitialSeek=t.getIsInitialStall=t.getIsSourceSwitching=t.getIsStopped=t.getIsPaused=t.getIsPlay=t.getIsPlaying=t.getIsInitialPlayback=t.getPlayerState=void 0;var r=n(23068),i=n(93204),o=n(85648);t.getPlayerState=function(e){return e.player},t.getIsInitialPlayback=function(e){return e.playbackState===o.PlaybackState.None},t.getIsPlaying=function(e){return e.playbackState===o.PlaybackState.Playing},t.getIsPlay=function(e){return e.playbackState===o.PlaybackState.Play},t.getIsPaused=function(e){return e.playbackState===o.PlaybackState.Paused},t.getIsStopped=function(e){return e.playbackState===o.PlaybackState.Stopped},t.getIsSourceSwitching=function(e){return e.isSourceSwitching},t.getIsInitialStall=function(e){return!e.hasBeenPlaying&&e.isStalled},t.getIsInitialSeek=function(e){return e.seekState===o.SeekState.None},t.getIsSeeking=function(e){return[o.SeekState.Seeking,o.SeekState.SeekingIOS].includes(e.seekState)},t.getIsSeeked=function(e){return e.seekState===o.SeekState.Seeked},t.getIsTimeShifting=function(e){return e.timeShiftState===o.TimeShiftState.Shifting},t.getIsTimeShifted=function(e){return e.timeShiftState===o.TimeShiftState.Shifted},t.getTargetPlaybackTime=function(e){return e.targetPlaybackTime},t.getPlaybackSpeed=function(e){return e.playbackSpeed},t.getIsSeekingOrTimeshifting=function(e){return(0,t.getIsSeeking)(e)||(0,t.getIsTimeShifting)(e)},t.getIsSeekedOrTimeshifted=function(e){return(0,t.getIsSeeked)(e)||(0,t.getIsTimeShifted)(e)},t.isBeingDestroyed=function(e){return e.destroyState!==o.DestroyState.None},t.isDestroyed=function(e){return e.destroyState===o.DestroyState.Destroyed},t.getIsRendererStalled=function(e){return e.isRendererStalled},t.getRemoteControlState=function(e){return e.remoteControlState},t.subscribeToSeek=function(e,n){return(0,i.subscribe)(e)(function(e){return e&&(0,t.getPlayerState)(e)},n,function(e,n){return(0,r.isDefined)(n)&&(0,r.isDefined)(e)&&!(0,t.getIsSeeking)(n)&&(0,t.getIsSeeking)(e)})},t.subscribeToSeeked=function(e,n){return(0,i.subscribe)(e)(function(e){return e&&(0,t.getPlayerState)(e)},n,function(e,n){return(0,r.isDefined)(n)&&(0,r.isDefined)(e)&&(0,t.getIsSeeking)(n)&&!(0,t.getIsSeeking)(e)})},t.subscribeToSeekedOrTimeshifted=function(e,n){return(0,i.subscribe)(e)(function(e){return e&&(0,t.getPlayerState)(e)&&(0,t.getIsSeekingOrTimeshifting)((0,t.getPlayerState)(e))},n,function(e,t){return!0===t&&!1===e})}},85648:function(e,t){"use strict";var n,r,i,o,a,s,u;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerActionType=t.DestroyState=t.TimeShiftState=t.SeekState=t.PlaybackState=t.ConnectionState=t.RemoteControlType=void 0,function(e){e[e.None=0]="None",e[e.Websocket=1]="Websocket",e[e.GoogleCastV2=2]="GoogleCastV2",e[e.GoogleCastV3=3]="GoogleCastV3"}(n||(t.RemoteControlType=n={})),function(e){e[e.Connecting=0]="Connecting",e[e.Connected=1]="Connected",e[e.Disconnecting=2]="Disconnecting",e[e.Disconnected=3]="Disconnected"}(r||(t.ConnectionState=r={})),function(e){e[e.None=0]="None",e[e.Stopped=1]="Stopped",e[e.Play=2]="Play",e[e.Playing=3]="Playing",e[e.Paused=4]="Paused"}(i||(t.PlaybackState=i={})),function(e){e[e.None=0]="None",e[e.Seeking=1]="Seeking",e[e.SeekingIOS=2]="SeekingIOS",e[e.Seeked=3]="Seeked"}(o||(t.SeekState=o={})),function(e){e[e.None=0]="None",e[e.Shifting=1]="Shifting",e[e.Shifted=2]="Shifted"}(a||(t.TimeShiftState=a={})),function(e){e.None="none",e.Destroying="destroying",e.Destroyed="destroyed"}(s||(t.DestroyState=s={})),function(e){e.SetPlayerSeek="@instance/player/setplayerseek",e.SetPlayerPlayback="@instance/player/setplayerplayback",e.SetPlayerTimeshift="@instance/player/setplayertimeshift",e.SetPlayerStall="@instance/player/setplayerstall",e.SetPlayerSourceSwitching="@instance/player/setplayersourceswitching",e.SetRendererStall="@instance/player/setplayerrendererstall",e.SetPlayerHasBeenPlaying="@instance/player/setplayerhasbeenplaying",e.SetPlayerTargetPlaybackTime="@instance/player/setplayertargetplaybacktime",e.SetPlayerPlaybackSpeed="@instance/player/setplayerplaybackspeed",e.SetPlayerViewMode="@instance/player/setplayerviewmode",e.SetDestroyState="@instance/player/setDestroyState",e.AddPlayerPendingTransition="@instance/player/addplayerpendingtransition",e.FilterPlayerPendingTransition="@instance/player/filterplayerpendingtransition",e.RemovePlayerPendingTransition="@instance/player/removeplayerpendingtransition",e.ClearPlayerPendingTransitions="@instance/player/clearplayerpendingtransitions",e.ResetPlayerState="@instance/player/resetplayerstate",e.SetRemoteControlType="@instance/player/setremotecontroltype",e.SetConnectionState="@instance/player/setconnectionstate",e.UpdateSeekingProcess="@instance/player/updateseekingprocess"}(u||(t.PlayerActionType=u={}))},48488:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitialDrmState=void 0,t.setManifestDrm=function(e){return(0,r.createAction)(i.DrmActionType.SetManifestDrm,e)},t.resetManifestDrm=function(){return(0,r.createAction)(i.DrmActionType.ResetManifestDrm)},t.trackDrmKidError=function(e){return(0,r.createAction)(i.DrmActionType.TrackDrmKidError,e)},t.resetDrmKidErrors=function(){return(0,r.createAction)(i.DrmActionType.ResetDrmKidErrors)},t.setUsedKeySystem=function(e){return(0,r.createAction)(i.DrmActionType.SetUsedKeySystem,e)},t.resetUsedKeySystem=function(){return(0,r.createAction)(i.DrmActionType.ResetUsedKeySystem)};var r=n(35267),i=n(29682);t.getInitialDrmState=function(){return{keyIdsWithErrors:[],usedKeySystem:{kind:null,uid:null}}}},44991:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.DrmReducer=void 0;var a=n(3793),s=n(48488),u=n(29682),l=(0,s.getInitialDrmState)();t.DrmReducer=(0,a.default)(l,((r={})[u.DrmActionType.SetManifestDrm]=function(e,t){var n=t.payload;return i(i({},e),n)},r[u.DrmActionType.ResetManifestDrm]=function(){return l},r[u.DrmActionType.TrackDrmKidError]=function(e,t){var n=t.payload;return e.keyIdsWithErrors.includes(n)?e:i(i({},e),{keyIdsWithErrors:o(o([],e.keyIdsWithErrors,!0),[n],!1)})},r[u.DrmActionType.ResetDrmKidErrors]=function(e){return e.keyIdsWithErrors.length>0?i(i({},e),{keyIdsWithErrors:[]}):e},r[u.DrmActionType.SetUsedKeySystem]=function(e,t){var n=t.payload;return i(i({},e),{usedKeySystem:n})},r[u.DrmActionType.ResetUsedKeySystem]=function(e,t){return i(i({},e),{usedKeySystem:{kind:null,uid:null}})},r))},29682:function(e,t){"use strict";var n;
1Object.defineProperty(t,"__esModule",{value:!0}),t.DrmActionType=void 0,function(e){e.SetManifestDrm="@instance/sources/@source/drm/setManifest",e.ResetManifestDrm="@instance/sources/@source/drm/setManifest/resetManifest",e.TrackDrmKidError="@instance/sources/@source/drm/trackDrmKidError",e.ResetDrmKidErrors="@instance/sources/@source/drm/resetDrmKidErrors",e.SetUsedKeySystem="@instance/sources/@source/drm/setusedkeysystem",e.ResetUsedKeySystem="@instance/sources/@source/drm/resetusedkeysystem"}(n||(t.DrmActionType=n={}))},69573:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.staticSourceReducers=void 0;var r=n(87133),i=n(44991),o=n(48557);t.staticSourceReducers={startOptions:n(77179).StartOptionsReducer,drm:i.DrmReducer,adaptation:r.AdaptationReducer,playback:o.PlaybackReducer}},15971:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSourceStore=o,t.getSourceState=function(e,t){var n;return void 0===t&&(t=e.sourceContext),null==(n=o(e,t))?void 0:n.getState()};var r=n(80813),i=n(94685);function o(e,t){var n;return void 0===t&&(t=e.sourceContext),(0,i.isContextAvailable)(e)?null==(n=e.serviceManager)?void 0:n.get(r.ServiceName.SourceStoreService,null==t?void 0:t.sourceIdentifier):void 0}},68925:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBufferMaxSize=function(e,t){return(0,r.createAction)(i.BufferActionType.SetBufferMaxSize,{mimeType:e,maxBufferSize:t})},t.setRendererRanges=function(e,t){return(0,r.createAction)(i.BufferActionType.SetRendererRanges,{mimeType:e,ranges:t})},t.setBufferBlockSwitchOngoing=function(e){return(0,r.createAction)(i.BufferActionType.SetBufferBlockSwitchOngoing,{isOngoing:e})},t.setTimestampRollingOver=function(e){return(0,r.createAction)(i.BufferActionType.SetTimestampRollingOver,{isRollingOver:e})},t.addLoadedRange=function(e,t){return(0,r.createAction)(i.BufferActionType.AddLoadedRange,{mimeType:e,range:t})},t.removeLoadedRange=function(e,t){return(0,r.createAction)(i.BufferActionType.RemoveLoadedRange,{mimeType:e,range:t})},t.resetLoadedRanges=function(e){return(0,r.createAction)(i.BufferActionType.ResetLoadedRanges,{mimeType:e})},t.setLoadingRangeFinished=function(e){return(0,r.createAction)(i.BufferActionType.SetLoadingRangeFinished,{isFinished:e})};var r=n(35267),i=n(70118)},86897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRendererBufferRangesMap=t.getBufferRangesMap=t.getBufferBlockLoadedRanges=t.getBufferMaxSize=t.hasBufferRangesChanged=t.hasBufferMaxSizeChanged=t.getRendererBufferedRanges=t.getBufferState=t.getBufferStateMap=t.DefaultBufferMaxSize=void 0,t.getLoadedRangesForMimeType=function(e,t){var n,r;return null!=(r=null==(n=e.bufferStateMap[t])?void 0:n.loadedRanges)?r:[]},t.getBufferStartTime=function(e){if(!e)return -1;var t=Object.keys(e).map(function(t){var n,r;return null==(r=null==(n=e[t].rendererRanges)?void 0:n[0])?void 0:r.start}).filter(function(e){return void 0!==e});return t.length>0?Math.max.apply(Math,t):-1},t.getIsTimestampRollingOver=function(e){var t,n;return null!=(n=null==(t=e.buffer)?void 0:t.isTimestampRollingOver)&&n};var r=n(4524),i=n(85434);function o(e){var t;return null!=(t=e.loadedRanges)?t:[]}function a(e,t){return e!==t&&(0!==e.length||0!==t.length)&&e!==t}t.DefaultBufferMaxSize=0,t.getBufferStateMap=function(e){var t;return null==(t=null==e?void 0:e.buffer)?void 0:t.bufferStateMap},t.getBufferState=function(e){return null==e?void 0:e.buffer},t.getRendererBufferedRanges=function(e,t){var n;return t in e&&null!=(n=e[t].rendererRanges)?n:[]},t.hasBufferMaxSizeChanged=function(e){return function(n,r){var i=(0,t.getBufferState)(n),o=(0,t.getBufferState)(r);return(i?(0,t.getBufferMaxSize)(i,e):t.DefaultBufferMaxSize)!==(o?(0,t.getBufferMaxSize)(o,e):t.DefaultBufferMaxSize)}},t.hasBufferRangesChanged=function(e,n){var r=e.bufferStateMap,i=n.bufferStateMap,s=Object.keys(r),u=Object.keys(i);if(s.length!==u.length||s.some(function(e){return!u.includes(e)}))return!0;for(var l=0,c=s;l<c.length;l++){var d=c[l];if(a((0,t.getRendererBufferedRanges)(r,d),(0,t.getRendererBufferedRanges)(i,d))||a(o(r[d]),o(i[d]
1)))return!0}return!1},t.getBufferMaxSize=function(e,n){var r;return n in e.bufferStateMap&&null!=(r=e.bufferStateMap[n].maxBufferSize)?r:t.DefaultBufferMaxSize},t.getBufferBlockLoadedRanges=function(e,t){return e?Object.keys(e.bufferStateMap).reduce(function(n,r){return n[r]=function(e,t){return o(e).filter(function(e){return e.bufferBlockId===t})}(e.bufferStateMap[r],t),n},{}):{}},t.getBufferRangesMap=function(e,t,n){return void 0===t?{}:function(e,t,n){var i=Object.keys(e.bufferStateMap),o=t.getSegmentStoreRangesMap(e,i),a=s(e,i);return Object.keys(a).forEach(function(e){return o[e].push(a[e])}),function(e,t,n){var i={};return e.forEach(function(e){return i[e]=r.BufferRangeHelper.mergeRanges(t[e].flatMap(function(e){return e}),n)}),i}(i,o,n)}(t,e,n)},t.getRendererBufferRangesMap=function(e,t){return function(n){var r=e.getBufferBlock(n),o=null==r?void 0:r.getAllKnownPeriodIds()[0];return void 0===o||void 0===t||void 0===r?{}:s(t,e.getMediaTypes(o).map(function(e){return e.mimeType}).filter(function(e){return i.MimeTypeHelper.isAV(e)}))}};var s=function(e,n){var r={};return n.forEach(function(n){return r[n]=(0,t.getRendererBufferedRanges)(e.bufferStateMap,n)}),r}},47602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeToRendererBufferChanges=function(e,t){var n=(function(e){var t=e.getState(),n=(0,i.getBufferStateMap)(t);return void 0!==n?Object.keys(n):[]})(e).map(function(n){return(0,r.subscribe)(e)(function(e){return function(t){var n=(0,i.getBufferStateMap)(t);return n?(0,i.getRendererBufferedRanges)(n,e):[]}}(n),function(e){return t(n,null!=e?e:[])})});return function(){return n.forEach(function(e){return e()})}};var r=n(93204),i=n(86897)},70118:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BufferActionType=void 0,function(e){e.SetBufferMaxSize="@instance/source/buffer/setbuffermaxsize",e.SetRendererRanges="@instance/source/buffer/setrendererranges",e.SetBufferBlockSwitchOngoing="@instance/source/buffer/setbufferblockswitchongoing",e.SetTimestampRollingOver="@instance/source/buffer/settimestamprollingover",e.AddLoadedRange="@instance/source/buffer/addloadedrange",e.RemoveLoadedRange="@instance/source/buffer/removeloadedrange",e.ResetLoadedRanges="@instance/source/buffer/resetloadedranges",e.SetLoadingRangeFinished="@instance/source/buffer/setloadingrangefinished"}(n||(t.BufferActionType=n={}))},46922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setBackgroundPlaybackState=t.setMainContentPlaybackState=void 0;var r=n(35267),i=n(18192);t.setMainContentPlaybackState=function(e){return(0,r.createAction)(i.PlaybackActionType.SetMainContentPlaybackState,e)},t.setBackgroundPlaybackState=function(e){return(0,r.createAction)(i.PlaybackActionType.SetBackgroundPlaybackState,e)}},48557:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackReducer=void 0;var o=n(3793),a=n(18192);t.PlaybackReducer=(0,o.default)({kind:a.PlaybackKind.MainContent},((r={})[a.PlaybackActionType.SetMainContentPlaybackState]=function(e,t){return function(e){return i({},e)}(t.payload)},r[a.PlaybackActionType.SetBackgroundPlaybackState]=function(e,t){return function(e,t){return i(i({},e),t)}(e,t.payload)},r))},81524:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPlaybackPosition=void 0;var r=n(18192);t.getPlaybackPosition=function(e){return e.kind===r.PlaybackKind.Backgroun
vendor: 13,272 bytes, line 1
1d?e.position:NaN}},18192:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackActionType=t.PlaybackKind=void 0,function(e){e.MainContent="maincontent",e.Background="background"}(n||(t.PlaybackKind=n={})),function(e){e.SetMainContentPlaybackState="@instance/sources/@source/playback/setmaincontentplaybackstate",e.SetBackgroundPlaybackState="@instance/sources/@source/playback/setbackgroundplaybackstate"}(r||(t.PlaybackActionType=r={}))},63879:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setMseObjectUrl=function(e){return(0,r.createAction)(i.RendererActionType.SetMseObjectUrl,{url:e})};var r=n(35267),i=n(39564)},39564:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RendererActionType=void 0,function(e){e.SetMseObjectUrl="@instance/source/renderer/setmseobjecturl"}(n||(t.RendererActionType=n={}))},30012:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialStartOptions=void 0,t.initializeStartTimeOffset=function(){return o(t.initialStartOptions.startTimeOffset)},t.setStartTimeOffset=o;var r=n(35267),i=n(25934);function o(e){return(0,r.createAction)(i.StartOptionsActionKey.SetStartTimeOffset,{startTimeOffset:e})}t.initialStartOptions={startTimeOffset:0}},77179:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.StartOptionsReducer=void 0,t.getStartTimeOffset=function(e){return e.startOptions.startTimeOffset};var o=n(3793),a=n(30012),s=n(25934),u=a.initialStartOptions,l=function(e,t){var n=t.payload;return i(i({},e),n)};t.StartOptionsReducer=(0,o.default)(u,((r={})[s.StartOptionsActionKey.InitStartTimeOffset]=l,r[s.StartOptionsActionKey.SetStartTimeOffset]=l,r))},25934:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StartOptionsActionKey=void 0,function(e){e.InitStartTimeOffset="@instance/sources/@source/startOptions/initStartTimeOffset",e.SetStartTimeOffset="@instance/sources/@source/startOptions/setStartTimeOffset"}(n||(t.StartOptionsActionKey=n={}))},81683:function(e,t){"use strict";function n(e){Object.freeze(e);var t="function"==typeof e,r=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(e).forEach(function(i){!r.call(e,i)||t&&("caller"===i||"callee"===i||"arguments"===i)||null===e[i]||"object"!=typeof e[i]&&"function"!=typeof e[i]||Object.isFrozen(e[i])||n(e[i])}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.freeze=void 0,t.deepFreeze=n;var r=function(e){var t=e.getState();(function(e){return null!==e&&"object"==typeof e})(t)&&n(t)};t.freeze=function(e){return r(e),function(t){return function(n){r(e);try{return t(n)}finally{r(e)}}}}},68205:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addReachableDomain=function(e){return(0,r.createAction)(i.ReachableDomainsActionType.AddDomain,e)};var r=n(35267),i=n(32027)},60430:function(e,t,n){"use strict";var r,i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReachableDomainsReducer=void 0;var a=n(3793),s=n(32027);t.ReachableDomainsReducer=(0,a.default)({domains:[]},((r={})[s.ReachableDomainsActionType.AddDomain]=function(e,t){return function(e,t){return i(i({},e),{domains:e.domains.includes(t)?e.domains:o(o([],e.domains,!0),[t],!1)})}(e,t.payload)},r))},32027:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ReachableDomainsActionType=void 0,function(e){e.AddDomain="adddomain"}(n||(t.ReachableDomainsActionType=n={}))},74853:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayHelper=void 0,t.invert=function(e){return function(t,n,r){return!e(t,n,r)}},t.findIndexFromEnd=o,t.findIndexWithin=function(e,t,n,r){for(var i=t;i<n;i++)if(r(e[i]))return i;return -1},t.findFromEnd=function(e,t){return e[o(e,t)]},t.forEachFromIndex=function(e,t,n){for(;t<e.length;t++)n(e[t-1],e[t])},t.forceArray=function(e){return Array.isArray(e)?e:[e]},t.contains=function(e,t,n){return void 0===n&&(n=a),null!=e.find(function(e){return n(t,e)})},t.shallowObjectMatcher=a,t.clearArray=function(e){e.splice(0,e.length)},t.removeEntriesFromStart=function(e,t){return t<1?[]:e.splice(0,t)};var i=n(70233);function o(e,t){var n;for(n=e.length-1;n>=0&&!t(e[n]);n--);return n}function a(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}t.ArrayHelper=function(){function e(){}return e.comparePrimitiveArrays=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},e.stringToArrayWithoutEncoding=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t},e.convertBufferSourceToUTF8=function(t,n){return void 0===n&&(n="utf-8"),t instanceof ArrayBuffer?t=new Uint8Array(t):t instanceof DataView&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),e.convertUint8ArrayToUtf8(t,n)},e.convertUint8ArrayToUtf8=function(e,t){if("u">typeof TextDecoder)return new TextDecoder(t).decode(e);for(var n=0,r="";n<e.length;){var i=e[n++];if(i>127)if(i>191&&i<224){if(n>=e.length||64&e[n]){r+="�";continue}i=(31&i)<<6|63&e[n++]}else if(i>223&&i<240){if(n+1>=e.length||64&e[n]||64&e[n+1]){r+="�";continue}i=(15&i)<<12|(63&e[n++])<<6|63&e[n++]}else{if(!(i>239&&i<248)||n+2>=e.length||64&e[n]||64&e[n+1]||64&e[n+2]){r+="�";continue}i=(7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++]}i<=65535?r+=String.fromCharCode(i):i<=1114111?(i-=65536,r+=String.fromCharCode(i>>10|55296),r+=String.fromCharCode(1023&i|56320)):r+="�"}return r},e.sort=function(e,t,n){if("string"==typeof t&&"[object Array]"===Object.prototype.toString.call(e)){var r;if(n||(n="asc"),"asc"===n)r=-1;else{if("desc"!==n)return;r=1}return e.length<2?e:e.sort(function(e,n){return e[t]<n[t]?r:e[t]>n[t]?-1*r:0})}},e.append=function(t,n){var r=e.getTypedArrayType(t),i=e.getTypedArrayType(n);if(!r&&!i||r!==i)return null;var o=new r((t.byteLength+n.byteLength)/r.BYTES_PER_ELEMENT);return o.set(new r(t),0),o.set(new r(n),t.byteLength/r.BYTES_PER_ELEMENT),o},e.concatBuffers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!(e=e.filter(function(e){return e})).length)return null;var n=new Uint8Array(e.reduce(function(e,t){return e+t.byteLength},0));return e.reduce(function(e,t){return n.set(new Uint8Array(t),e),e+t.byteLength},0),n.buffer},e.getTypedArrayType=function(e){return e instanceof Uint8Array?Uint8Array:e instanceof Uint16Array?Uint16Array:e instanceof Uint32Array?Uint32Array:null},e.getArray=function(t){return e.getTypedArrayType(t)?[].slice.call(t):Array.isArray(t)?t:null},e.union=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[];return e.filter(function(e){return!!e}).forEach(function(e){return e.forEach(function(e){n.includes(e)||n.push(e)})}),n},e.isArrayBuffer=function(e){return!!e&&e instanceof ArrayBuffer&&void 0!==e.byteLength},e.arrayBufferToAsciiString=function(t,n){return void 0===n&&(n=!0),e.sparseArrayBufferToAsciiString(t,1,0,n)},e.arrayBufferToBase64=function(e){for(var t="",n=new Uint8Array(e),r=0;r<n.length;r++)t+=String.fromCharCode(n[r]);return window.btoa(t)},e.sparseArrayBufferToAsciiString=function(e,t,n,r){void 0===t&&(t=2),void 0===n&&(n=0),void 0===r&&(r=!0);for(var i="",o=r?new Uint8Array(e):new Uint16Array(e),a=n;a<o.length;a+=t)i+=String.fromCharCode(o[a]);return i},e.intersect=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=[],i=t.filter(function(e){return!!e});return e.union.apply(e,t).forEach(function(e){i.every(function(t){return t.includes(e)})&&r.push(e)}),r},e.addAndMergeIntersects=function(t,n){var i=t.filter(function(t){return e.intersect(t,n).length>0}),o=t.filter(function(e){return!i.includes(e)});return 0===i.length?r(r([],t,!0),[n],!1):r([e.union.apply(e,r(r([],i,!1),[n],!1))],o,!0)},e.extractAsciiString=function(e,t,n){for(var r=t+n,i="";t<r;t++)i+=String.fromCharCode(e.getUint8(t));return i},e.extractHexString=function(e,t,n){for(var r=t+n,o="";t<r;t++)o+=i.FormatHelper.intToHex(e.getUint8(t));return o},e.insertInSortedArray=function(e,t,n){var r=e.findIndex(n);return r<0?e.push(t):e.splice(r,0,t),e},e.removeUntilInSortedArray=function(e,t){var n=e.findIndex(t),r=-1===n?e.length:n;return 0===r?[]:e.splice(0,r)},e.toArray=function(e){try{if(!e||!e.length)return[];for(var t=Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return t}catch(e){return[]}},e}()},19483:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayMap=void 0,t.ArrayMap=function(){function e(){this.o4=new Map}return e.prototype.get=function(e){return this.o4.get(e)},e.prototype.apply=function(e,t){this.o4.has(e)&&this.o4.set(e,t(this.o4.get(e)))},e.prototype.has=function(e){return this.o4.has(e)},e.prototype.delete=function(e){return this.o4.delete(e)},e.prototype.clear=function(){this.o4.clear()},Object.defineProperty(e.prototype,"size",{get:function(){return this.o4.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){var e=0;return this.o4.forEach(function(t){return e+=t.length}),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){var e=[];return this.o4.forEach(function(t){e.push(t)}),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){var e=[];return this.o4.forEach(function(t,n){e.push(n)}),e},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){return this.ensure(e),null!=t&&this.get(e).push(t),this},e.prototype.ensure=function(e){this.has(e)||this.set(e,[])},e.prototype.set=function(e,t){return this.o4.set(e,t),this},e.prototype.addAll=function(e,t){var n=this;this.ensure(e),t.forEach(function(t){return n.add(e,t)})},e.prototype.getObject=function(){var e={};return this.o4.forEach(function(t,n){e[n]=t}),e},e.prototype.forAll=function(e){this.o4.forEach(function(t,n){return t.forEach(function(t){return e(n,t)})})},e.prototype.sort=function(e){this.o4.forEach(function(t){t.sort(e)})},e.prototype.mapEach=function(t){var n=new e;return this.o4.forEach(function(e,r){return n.set(r,e.map(t))}),n},e.prototype.transform=function(e){var t=[];return this.o4.forEach(function(n){return t.push(e(n))}),t},e.prototype.mapAll=function(t){var n=new e;return this.o4.forEach(function(e,r){return n.set(r,t(e))}),n},e.prototype.getAll=function(){var e=[];return this.o4.forEach(function(t){return e.push.apply(e,t)}),e},e.prototype.deleteValue=function(e,t){if(!this.has(e))return!1;var n=this.o4.get(e),r=n.indexOf(t);return r>=0&&(n.splice(r,1),!0)},e}()},81199:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPlayableBufferLevel=function(e){var t=[null==e?void 0:e.getAudioBufferLength(),null==e?void 0:e.getVideoBufferLength()].filter(r.isDefined);return Math.min.apply(Math,t)};var r=n(23068)},4527:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancelablePromise=void 0,t.CancelablePromise=function(){function e(){}return e.makeCancelable=function(e){var t=function(e){},n=new Promise(function(n,r){t=r,e.then(n,r)});return n.cancel=t.bind(n),n},e}()},47993:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.MSESafari=t.getBestTech=t.getTechSupportedByModules=t.getTechSupportedByPlatform=t.getTechSupportedByModulesOnPlatform=t.isLocalStorageAvailable=t.isInlinePlaybackRestricted=t.isFairPlayDrmSupported=t.supports=t.checkPlatformSupports=t.hasMediaSourceSupport=t.FairplayKeySystems=void 0,t.isUsingFileProtocol=function(){return"file:"===l.default.location.protocol},t.isFetchSupported=function(){return"function"==typeof l.default.fetch&&"function"==typeof l.default.AbortController};var i,o=n(88052),a=n(62756),s=n(44468),u=n(21513),l=n(4081),c=n(85434),d=n(15487);!function(e){e.FPS_1="com.apple.fps.1_0",e.FPS_2="com.apple.fps.2_0"}(i||(t.FairplayKeySystems=i={}));var f=[{player:s.PlayerType.Html5,streaming:s.StreamType.Dash},{player:s.PlayerType.Html5,streaming:s.StreamType.Hls},{player:s.PlayerType.Html5,streaming:s.StreamType.Smooth},{player:s.PlayerType.WebRtc,streaming:s.StreamType.Whep}
1,{player:s.PlayerType.Native,streaming:s.StreamType.Hls},{player:s.PlayerType.Native,streaming:s.StreamType.Progressive}],p=!!(l.default.ArrayBuffer&&l.default.Uint8Array&&l.default.Uint16Array);t.hasMediaSourceSupport=function(){var e,t,n,r="MediaSource"in l.default&&"function"==typeof(null==(e=l.default.MediaSource)?void 0:e.isTypeSupported),i="WebKitMediaSource"in l.default&&"function"==typeof(null==(t=l.default.WebKitMediaSource)?void 0:t.isTypeSupported),o="ManagedMediaSource"in l.default&&"function"==typeof(null==(n=l.default.ManagedMediaSource)?void 0:n.isTypeSupported);return r||i||o},t.checkPlatformSupports=function(){var e=[];if(p?e=f.filter(function(e){return(0,t.supports)(e.player,e.streaming)}):e.push({player:s.PlayerType.Native,streaming:s.StreamType.Progressive}),(0,d.isSafari)()){for(var n=1;n<e.length;n++)if(e[n].player===s.PlayerType.Native&&e[n].streaming===s.StreamType.Hls){e=e.splice(n,1).concat(e);break}}return e},t.supports=function(e,n){var r=(0,t.hasMediaSourceSupport)()?[s.StreamType.Dash,s.StreamType.Hls,s.StreamType.Smooth]:[],i=!function(){var e=l.default.RTCPeerConnection,t=!!e&&"function"==typeof e.prototype.addTransceiver;return function(){var e,t,n,r,i;return!!(null!=(i=null!=(r=null!=(n=null!=(t=null==(e=navigator.mediaDevices)?void 0:e.getUserMedia)?t:navigator.getUserMedia)?n:navigator.webkitGetUserMedia)?r:navigator.mozGetUserMedia)?i:navigator.msGetUserMedia)}()&&t}()?[]:[s.StreamType.Whep],o=function(e){return e.some(function(e){return e===n})};switch(e){case s.PlayerType.Html5:return o(r);case s.PlayerType.WebRtc:return o(i);case s.PlayerType.Native:return o(function(){var e=[];return function(){var e=document.createElement("video");return e&&"function"==typeof e.canPlayType&&("maybe"===e.canPlayType("application/vnd.apple.mpegURL")||"maybe"===e.canPlayType("application/x-mpegURL")||"maybe"===e.canPlayType("audio/mpegurl")||"maybe"===e.canPlayType("audio/x-mpegurl"))}()&&!(0,d.isEdge)()&&e.push(s.StreamType.Hls),function(){return"function"==typeof document.createElement("video").canPlayType}()&&e.push(s.StreamType.Progressive),e}());default:return!1}},t.isFairPlayDrmSupported=function(){return Object.values(i).some(function(e){var t;return null==(t=l.default.WebKitMediaKeys)?void 0:t.isTypeSupported(e,c.MimeType.VideoMp4)})},t.isInlinePlaybackRestricted=function(){var e=(0,d.getIOSVersion)(),t=e<d.IOS_9&&/iPad/i.test(navigator.userAgent),n=e<d.IOS_10&&/iP(hone|od)/i.test(navigator.userAgent);return d.isSafariIOS&&(t||n)},t.isLocalStorageAvailable=function(){try{return l.default.localStorage&&"function"==typeof localStorage.getItem&&"function"==typeof localStorage.setItem}catch(e){return!1}},t.getTechSupportedByModulesOnPlatform=function(){var e=(0,t.getTechSupportedByModules)();return(0,t.getTechSupportedByPlatform)().filter(function(t){return e.filter(function(e){return function(e,t){return e.player===t.player&&e.streaming===t.streaming}(e,t)}).length>0})},t.getTechSupportedByPlatform=function(){return(0,t.checkPlatformSupports)()},t.getTechSupportedByModules=function(){var e=o.ModuleManager.has(a.ModuleName.EngineBitmovin)?o.ModuleManager.get(a.ModuleName.EngineBitmovin).technologyChecker.getSupportedTechnologies():[],t=o.ModuleManager.has(a.ModuleName.EngineNative)?o.ModuleManager.get(a.ModuleName.EngineNative).technologyChecker.getSupportedTechnologies():[],n=o.ModuleManager.has(a.ModuleName.EngineWebRtc)?o.ModuleManager.get(a.ModuleName.EngineWebRtc).technologyChecker.getSupportedTechnologies():[];return r(r(r([],e,!0),t,!0),n,!0)},t.getBestTech=function(e,t,n){void 0===e&&(e=[]),void 0===t&&(t={});var i=(0,u.getCapabilities)(),o=function(e){var t=r([],(0,u.getCapabilities)().techSupportedByPlatform,!0);return e&&0!==e.length?r(r([],e.filter(function(e){return t.some(function(n,r){var i,o=e.player===n.player&&e.streaming===n.streaming,a=null!=(i=e.exclude)&&i;return o&&t.splice(r,1),o&&!a})}).map(function(e){return{player:e.player,streaming:e.streaming}}),!0),t,!0):t}(e),a=i.techSupportedByPlatform;return n&&(o=a.filter(function(e){return e.player===n.player&&e.streaming===n.streaming})),(t.vr&&((0,d.isSafariIOS)()||(0,d.isSafari)())?o.filter(function(e){var t=e.streaming===s.StreamType.Progressive&&e.player===s.PlayerType.
vendor: 23,161 bytes, line 1
1Native,n=e.streaming===s.StreamType.Hls&&e.player===s.PlayerType.Native;return t||n&&(!(0,d.isSafariIOS)()||(0,d.getIOSVersion)()>d.IOS_9)}):o).find(function(e){return!!t[e.streaming]})},t.MSESafari=function(){return(0,d.isSafari)()&&(0,t.hasMediaSourceSupport)()}},34047:function(e,t,n){"use strict";var r,i=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.CodecStringHelper=t.AV1_CODEC_TAG=t.VP9_CODEC_TAG=t.DOLBY_VISION_CODEC_TAGS=t.HEVC_CODEC_TAGS=t.AVC_CODEC_TAGS=void 0,t.isAVMuxedTogether=function(e){return!!e&&e.indexOf(",")>-1},t.assembleHvcCodecString=function(e,t){if(!t)return null;for(var n=i([],t.general_constraint_indicator_flags_bytes,!0);0===n[n.length-1];)n.pop();var r=n.map(function(e){return e.toString(16).toUpperCase()});return i([e,"".concat(["","A","B","C"][t.general_profile_space]).concat(t.general_profile_idc),"".concat(t.general_profile_compatibility_flags),"".concat(0===t.general_tier_flag?"L":"H").concat(t.general_level_idc)],r,!0).join(".")},t.getCicpColorFields=function(e){var t=c(e),n=u[t[0]];if(n)return{bitDepth:l(t[n.bitDepth],10),transferCharacteristics:l(t[n.transferCharacteristics],10)}},t.getHevcProfile=function(e){var t=c(e)[1];return l(void 0===t?"":t,10)},t.getAvcProfile=function(e){var t,n=c(s.hasOldAvc1CodecFormat(e)?s.convertAvc1ToAvcotiCodecFormat(e):e)[1];return l((null!=(t=/^([\da-f]{2})[\da-f]{4}$/.exec(void 0===n?"":n))?t:[])[1],16)},t.getMediaTypeFromCodec=function(e){return s.isVideoCodec(e)?o.MediaType.Video:s.isAudioCodec(e)?o.MediaType.Audio:s.isSubtitleCodec(e)?o.MediaType.Subtitles:void 0},t.getCodecTag=function(e){var t=e.getCodec();return(null==t?void 0:t.slice(0,3))||""};var o=n(44468),a=n(84568);t.AVC_CODEC_TAGS=["avc"],t.HEVC_CODEC_TAGS=["hev","hvc"],t.DOLBY_VISION_CODEC_TAGS=["dvhe","dvh1","dvav","dva1","dav1"],t.VP9_CODEC_TAG="vp09",t.AV1_CODEC_TAG="av01";var s=function(){function e(){}return e.hasOldAvc1CodecFormat=function(t){return e.unsupportedCodecStringFormatRegex.test(t)},e.convertAvc1ToAvcotiCodecFormat=function(e){var t=e.split(".");return t.length>2?t.shift()+"."+parseInt(t.shift()).toString(16)+("000"+parseInt(t.shift()).toString(16)).slice(-4):e},e.isSupportedByRenderer=function(e,t,n){return e.isMediaTypeSupported(t,n)},e.getExtractedCodecStrings=function(t){return e.memoizedExtractCodecStrings||(e.memoizedExtractCodecStrings=(0,a.memoize)(d)),e.memoizedExtractCodecStrings(t)},e.getMimeTypeForCodecString=function(t){if(!t)return"unknown";for(var n=0,r=e.mimeTypeOrder;n<r.length;n++){var i=r[n];if(e.mimeTypeMap[i].find(function(e){return t.indexOf(e)>-1}))return i}return"unknown"},e.addCodec=function(t,n){var r;e.mimeTypeMap[t].push(n),null==(r=e.memoizedExtractCodecStrings)||r.invalidate()},e.canSwitchBetweenAudioCodecs=function(e,t){return e===t||[["mp4a.40.2","mp4a.40.5"],["ac-3","mp4a.a5","mp4a.A5"],["ec-3","mp4a.a6","mp4a.A6"]].some(function(n){return n.includes(e)&&n.includes(t)})},e.extractCodec=function(e){return e?e.split(".")[0]:null},e.isVideoCodec=function(t){return"video"===e.getMimeTypeForCodecString(t)},e.isAudioCodec=function(t){return"audio"===e.getMimeTypeForCodecString(t)},e.isSubtitleCodec=function(t){return"application"===e.getMimeTypeForCodecString(t)},e.unsupportedCodecStringFormatRegex=RegExp("^avc1.[0-9]{2,3}.[0-9]{2,3}$"),e.mimeTypeOrder=["video","audio","application"],e.mimeTypeMap={video:["avc","hvc","hev","mp4v","svc","mvc","av1","av01","vp8","vp9","vp09","dvh1","dvhe","dvav","dva1","vvc","vvi"],audio:["mp4a","mp3","opus","vorbis","speex","flac","samr","ac-3","ec-3","ac-4","ec-4"],application:["stpp","wvtt","vtt"]},e}();t.CodecStringHelper=s;var u=((r={})[t.VP9_CODEC_TAG]={bitDepth:3,transferCharacteristics:6},r[t.AV1_CODEC_TAG]={bitDepth:3,transferCharacteristics:7},r);function l(e,t){return void 0!==e&&(16===t?/^[\da-f]+$/:/^\d+$/).test(e)?parseInt(e,t):void 0}function c(e){return e.toLowerCase().split(".")}function d(e){return e||"string"==typeof e?e.split(",").reduce(function(e,t){return t=t.trim(),e[s.getMimeTypeForCodecString(t)]=t,e},{}):{}}},48669:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Comparators=void 0,t.Comparators=function(){function e(){}return e.boolean=function(e,t){return e===t?0:e?1:-1},e.reverseBoolean=function(t,n){return e.boolean(n,t)},e}()},19541:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareValues=function(e,t,n){return!e&&!t||!(!e||!t)&&(n||Object.keys(e)).every(function(n){return e[n]===t[n]})}},79721:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PERIOD_ID=void 0,t.DEFAULT_PERIOD_ID="0"},76399:function(e,t){"use strict";var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIterator=t.ArrayIterator=t.EmptyIterator=void 0;var r=function(){function e(){}return e.prototype.toArray=function(){for(var e=[];this.hasNext();)e.push(this.next());return e},e}();t.EmptyIterator=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.hasNext=function(){return!1},t.prototype.next=function(){},t.getInstance=function(){return this.singletonInstance||(this.singletonInstance=new t),this.singletonInstance},t}(r),t.ArrayIterator=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n.WY=-1,n}return n(t,e),t.prototype.hasNext=function(){return this.XY=void 0,this.WY<this.data.length&&(this.WY++,this.XY=this.data[this.WY]),null!=this.XY},t.prototype.next=function(){return this.XY},t}(r),t.FilterIterator=function(e){function t(t,n){var r=e.call(this)||this;return r.iterator=t,r.filter=n,r}return n(t,e),t.prototype.hasNext=function(){var e;for(this.YY=void 0;this.iterator.hasNext();)if(e=this.iterator.next(),this.filter(e)){this.YY=e;break}return null!=this.YY},t.prototype.next=function(){return this.YY},t}(r)},65348:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMHelper=void 0,t.DOMHelper=function(){function e(){}return e.createTag=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=document.createElement(e);return Object.keys(n).forEach(function(e){return r.style[e]=n[e]}),Object.keys(t).forEach(function(e){return r.setAttribute(e,t[e])}),r},e}()},34841:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deferred=void 0,t.Deferred=function(){function e(){var e=this;this.GF="pending",this.DF=new Promise(function(t,n){e.EF=function(n){return e.GF="resolved",t(n)},e.FF=function(t){return e.GF="rejected",n(t)}})}return Object.defineProperty(e.prototype,"hasSettled",{get:function(){return"pending"!==this.GF},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this.DF},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolve",{get:function(){return this.EF},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"reject",{get:function(){return this.FF},enumerable:!1,configurable:!0}),e}()},35660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DelayedEndOfStreamHelper=void 0;var r=n(19274),i=n(34841);t.DelayedEndOfStreamHelper=function(){function e(e,t){void 0===t&&(t=1);var n=this;this.context=e,this.delayThreshold=t,this.RU=function(){n.OU&&!n.QU(!0)&&n.OU.resolve()},this.PU=e.videoElement}return e.prototype.QU=function(e){var t;return!(!e||!(null==(t=this.PU)?void 0:t.buffered.length))&&this.PU.buffered.end(this.PU.buffered.length-1)-this.PU.currentTime>this.delayThreshold},e.prototype.cV=function(){this.context.logger.debug("Resolving delayed setEndOfStream"),this.PU.removeEventListener(r.MediaElementEvent.timeupdate,this.RU),this.OU=void 0},e.prototype.setEndOfStream=function(e,t){var n=this;if(this.QU(e)){if(this.OU)return Promise.resolve();var o=this.PU.buffered.end(this.PU.buffered.length-1),a=this.PU.currentTime;return this.context.logger.debug("Delaying setEndOfStream(".concat(e,") until playhead is close to end of buffer"),{threshold:this.delayThreshold,currentTime:a,endOfBuffer:o}),this.OU=new i.Deferred,this.PU.addEventListener(r.MediaElementEvent.timeupdate,this.RU),this.OU.promise.then(function(){return n.cV(),t()}).catch(function(){return n.cV()}),Promise.resolve()}return this.OU&&!this.QU(e)&&this.OU.reject(),t()},e.prototype.release=function(){this.OU&&(this.PU.removeEventListener(r.MediaElementEvent.timeupdate,this.RU),this.OU.reject(),this.OU=void 0)},e}()},52424:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DurationConverter=void 0,t.DurationConverter=function(){function e(){}return e.getDurationInSec=function(e){if("string"!=typeof e)return NaN;var t=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?(T)?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*|Infinity)S)?/.exec(e);if(t){var n=!!t[1],r=12*parseFloat(t[2]||"0")*2592e3,i=30*parseFloat(t[4]||"0")*86400,o=24*parseFloat(t[6]||"0")*3600,a=60*parseFloat(t[9]||"0")*60,s=60*parseFloat(t[11]||"0"),u=parseFloat(t[13]||"0");if("T"===t[8]&&void 0===(t[9]||t[11]||t[13]))return NaN;var l=r+i+o+a+s+u;return n&&(l=-l),l}return NaN},e}()},21216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDynamicRangeFromTransferCharacteristics=a,t.getDynamicRangeFromVideoRange=u,t.getDynamicRangeFromVideoCodec=d,t.getDynamicRangeForHlsVariant=function(e,t){var n=u(e);return n!==i.VideoDynamicRange.Unknown?n:d(t)};var r,i=n(44468),o=n(34047);function a(e){switch(e){case r.Pq:case r.Hlg:return i.VideoDynamicRange.HDR;case r.Bt709:case r.Bt601:case r.Bt2020TenBit:case r.Bt2020TwelveBit:return i.VideoDynamicRange.SDR;default:return i.VideoDynamicRange.Unknown}}!function(e){e[e.Bt709=1]="Bt709",e[e.Bt601=6]="Bt601",e[e.Bt2020TenBit=14]="Bt2020TenBit",e[e.Bt2020TwelveBit=15]="Bt2020TwelveBit",e[e.Pq=16]="Pq",e[e.Hlg=18]="Hlg"}(r||(r={}));var s={SDR:i.VideoDynamicRange.SDR,HLG:i.VideoDynamicRange.HDR,PQ:i.VideoDynamicRange.HDR};function u(e){var t;return null!=(t=s[(null!=e?e:"").toUpperCase()])?t:i.VideoDynamicRange.Unknown}var l=[1,3],c=[66,77,88,100];function d(e){if(!e)return i.VideoDynamicRange.Unknown;var t=e.toLowerCase().split(".")[0];if(o.DOLBY_VISION_CODEC_TAGS.includes(t))return i.VideoDynamicRange.HDR;var n,r=(0,o.getCicpColorFields)(e);return r?function(e){var t=e.transferCharacteristics,n=e.bitDepth,r=a(t);return r!==i.VideoDynamicRange.Unknown?r:8===n?i.VideoDynamicRange.SDR:i.VideoDynamicRange.Unknown}(r):o.HEVC_CODEC_TAGS.some(function(e){return t.startsWith(e)})?void 0!==(n=(0,o.getHevcProfile)(e))&&l.includes(n)?i.VideoDynamicRange.SDR:i.VideoDynamicRange.Unknown:o.AVC_CODEC_TAGS.some(function(e){return t.startsWith(e)})&&void 0!==(n=(0,o.getAvcProfile)(e))&&c.includes(n)?i.VideoDynamicRange.SDR:i.VideoDynamicRange.Unknown}},40153:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorRecoveryUtil=void 0,t.ErrorRecoveryUtil=function(){function e(){}return e.wasRecoveryAttemptedAtPosition=function(t,n){return!(n<0)&&Math.abs(t-n)<e.POSITION_TOLERANCE},e.POSITION_TOLERANCE=.1,e}()},43767:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileLoader=void 0,t.FileLoader=function(){function e(){this.yI={}}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.loadScript=function(e,t){return void 0===t&&(t=!1),this.yI.hasOwnProperty(e)&&this.yI[e]||(t&&window.requirejs&&window.define?this.yI[e]=new Promise(function(t,n){window.requirejs([e],function(e){t(e)},function(e){n(e)})}):this.yI[e]=new Promise(function(t,n){var r=document.getElementsByTagName("head")[0]||document.documentElement,i=!1,o=document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.onload=o.onreadystatechange=function(){i||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(i=!0,o.onload=o.onreadystatechange=null,r&&o.parentNode&&r.removeChild(o),t(void 0))},o.onerror=n,r.insertBefore(o,r.firstChild)})),this.yI[e]},e.prototype.removeScript=function(e,t){this.yI.hasOwnProperty(e)&&this.yI[e]&&delete this.yI[e];for(var n=document.head.getElementsByTagName("script"),r=0;r<n.length;r++)n[r].src.includes(t)&&document.head.removeChild(n[r])},e.prototype.loadCSS=function(e,t){for(var n,r=(null==(n=null==t?void 0:t.container)?void 0:n.call(t))||document.getElementsByTagName("head")[0]||document.documentElement,i=r.querySelectorAll("link"),o=0;o<i.length;o++){var a=i[o];if(a.hasAttribute("href")&&a.getAttribute("href").indexOf(e)>-1)return}var s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("href",e),r.insertBefore(s,r.firstChild),this.yI[e]=!0},e}()},70233:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatHelper=void 0,t.FormatHelper=function(){function e(){}return e.hexToBytes=function(e){var t=e.length;1&t&&(e="0"+e,t++);for(var n=new Uint8Array(t>>1),r=0;r<t;r+=2)n[r>>1]=parseInt(e.substring(r,r+2),16);return n},e.bytesToHex=function(e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));for(var t="",n=0;n<e.byteLength;n++){var r=(255&e[n]).toString(16);r.length<2&&(t+="0"),t+=r}return t},e.bytesToUUID=function(e){return this.beautifyUUID(this.bytesToHex(e))},e.beautifyUUID=function(e){return e.slice(0,8)+"-"+e.slice(8,12)+"-"+e.slice(12,16)+"-"+e.slice(16,20)+"-"+e.slice(20)},e.intToHex=function(e){return("00"+e.toString(16)).slice(-2)},e.base64UrlEncode=function(e){return window.btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},e.base64UrlDecode=function(e){return window.atob((e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/"))},e}()},87244:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSwitchingBufferBlocks=function(e){var t,n=null==e?void 0:e.getState();return!!n&&(null==(t=n.buffer)?void 0:t.isBufferBlockSwitchOngoing)}},68922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyLabeling=t.getLabelFunction=t.handleLabelAssignment=t.DEFAULT_LABEL=t.LabelingType=void 0;var r,i=n(70850);!function(e){e.Qualities="qualities",e.Tracks="tracks",e.Subtitles="subtitles"}(r||(t.LabelingType=r={})),t.DEFAULT_LABEL="",t.handleLabelAssignment=function(e,n,r){if(!r)return t.DEFAULT_LABEL;var o=(0,i.safeUserCallback)(function(){return r(e)},n.logger);return"string"==typeof o?o:t.DEFAULT_LABEL},t.getLabelFunction=function(e,t,n){var r,i;return null==(i=null==(r=e.labeling)?void 0:r[t])?void 0:i[n]},t.applyLabeling=function(e,n){var r=(0,t.getLabelFunction)(e.source,e.streamType,e.labelingType);return(0,t.handleLabelAssignment)(n,e.context,r)}},84568:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.memoize=function(e,t){var n=new Map;function r(r){return function(n,r){var i=t?t.apply(void 0,r):e;return n.has(i)||n.set(i,e.apply(void 0,r)),n.get(i)}(t||0===r.length?n:i(n,r),r)}function i(e,t,n){void 0===n&&(n=0);var r,o=t.length-1===n,a=t[n];return e.has(a)?r=e.get(a):(r=new Map,e.set(a,r)),n+=1,o?r:i(r,t,n)}return function(){var e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)};return e.invalidate=function(){return n.clear()},e}()}},85434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MimeTypeHelper=t.MimeType=void 0,t.isMediaTypeContained=function(e,t){return e.map(function(e){return a.getMediaType(e)}).includes(a.getMediaType(t))};var r,i=n(85625),o=n(44468);!function(e){e.VideoMp4="video/mp4",e.VideoTs="video/mp2t",e.AudioMp4="audio/mp4",e.AudioTs="audio/mp2t"}(r||(t.MimeType=r={}));var a=function(){function e(){}return e.isSubtitle=function(e){return this.isApplication(e)||this.isText(e)},e.isText=function(e){return e.toLowerCase().includes("text")},e.isTtmlXml=function(e){return e.toLowerCase().includes("ttml+xml")},e.isApplication=function(e){return e.toLowerCase().includes("application")},e.isAV=function(e){return this.isVideo(e)||this.isAudio(e)},e.isVideo=function(e){return e.toLowerCase().includes("video")},e.isUnknown=function(e){return e.toLowerCase().includes("unknown")},e.isAudio=function(e){return e.toLowerCase().includes("audio")},e.isImage=function(e){return e.toLowerCase().includes("image")},e.isDash=function(e){return e.toLowerCase().includes(i.ManifestMimeType.Dash)},e.isHls=function(e){var t=e.toLowerCase();return t.includes(i.ManifestMimeType.Hls)||t.includes("vnd.apple.mpegurl")},e.isMP4=function(e){return e.toLowerCase().includes("mp4")},e.getMediaType=function(e){return this.isVideo(e)?o.MediaType.Video:this.isAudio(e)?o.MediaType.Audio:this.isSubtitle(e)?o.MediaType.Subtitles:this.isImage(e)?o.MediaType.Thumbnails:void 0},e.extractContentType=function(e){return e.split("/")[0]},e.extractContainerType=function(e){var t=e.split("/");return t.length>1?t[1]:null},e}();t.MimeTypeHelper=a},15014:function(e,t){"use strict";function n(e,t){var n;return null==(n=null==e?void 0:e.Period)?void 0:n.find(function(e){return e._id===t})}function r(e,t){var r,i=n(e,t.periodId);if(i)return null==(r=i.AdaptationSet)?void 0:r.find(function(e){return e._internalId.equals(t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.findRepresentation=void 0,t.findPeriod=n,t.findAdaptationSet=r,t.findRepresentation=function(e,t){var n,i=r(e,t);if(i)return null==(n=i.Representation)?void 0:n.find(function(e){return e._internalId.equals(t)})}},15487:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWebOsChromiumVersion=t.isWebOS=t.isWpeWebKit=t.isVizio=t.getVidaaVersion=t.isVidaa=t.getTizenVersion=t.isTizenOs7OrNewer=t.isTizen2022=t.isTizen2020=t.isTizen2016=t.isTizen2017=t.isTizen2018=t.isTizen2019=t.isTizen=t.getEdgeVersion=t.isEdge=t.getSafariVersion=t.isSafari=t.isFirefoxIOS=t.isFirefox=t.isChromium=t.isChrome=t.WEBOS_2022_CHROMIUM_VERSION=t.WEBOS_2021_CHROMIUM_VERSION=t.WEBOS_2020_CHROMIUM_VERSION=t.WEBOS_2018_2019_CHROMIUM_VERSION=t.WEBOS_2016_2017_CHROMIUM_VERSION=t.TIZEN_2023_MAJOR_VERSION=t.TIZEN_2022_MINOR_VERSION=t.TIZEN_2022_MAJOR_VERSION=t.TIZEN_2020_MINOR_VERSION=t.TIZEN_2020_MAJOR_VERSION=t.TIZEN_2019_MINOR_VERSION=t.TIZEN_2019_MAJOR_VERSION=t.TIZEN_2018_MINOR_VERSION=t.TIZEN_2018_MAJOR_VERSION=t.TIZEN_2017_MINOR_VERSION=t.TIZEN_2017_MAJOR_VERSION=t.TIZEN_2016_MINOR_VERSION=t.TIZEN_2016_MAJOR_VERSION=t.SAFARI_18_MAJOR_VERSION=t.SAFARI_17_MAJOR_VERSION=t.SAFARI_15_MAJOR_VERSION=t.IOS_18=t.IOS_17=t.IOS_15=t.IOS_10=t.IOS_9=t.EDGE_CHROMIUM_FIRST_MAJOR_VERSION=void 0,t.resetPlatformDetectorCache=t.isSafariPlatform18orNewer=t.isSafari17orIOS17=t.isSafari15orIOS15=t.getIOSVersion=t.isSafariIOS=t.isIOS=t.isMobile=t.isEdgeAndroid=t.isAndroid=t.isWebOs2022OrNewer=t.isWebOs2020=t.isWebOs2018Or2019=t.isWebOs2017=t.isWebOs2016=t.isWebOs2019OrOlder=void 0,t.isLegacyEdge=i,t.isEdgeChromium=function(){return(0,t.isEdge)()&&(0,t.getEdgeVersion)().major>=t.EDGE_CHROMIUM_FIRST_MAJOR_VERSION},t.isPlayStation5=o,t.isPlayStation4=a,t.isReactNative=function(){return"ReactNative"===window.navigator.product};var r=n(47993);function i(){return(0,t.isEdge)()&&(0,t.getEdgeVersion)().major<t.EDGE_CHROMIUM_FIRST_MAJOR_VERSION}function o(){return/PlayStation 5/i.test(navigator.userAgent)}function a(){return/PlayStation 4/i.test(navigator.userAgent)}t.EDGE_CHROMIUM_FIRST_MAJOR_VERSION=79,t.IOS_9=9,t.IOS_10=10,t.IOS_15=15,t.IOS_17=17,t.IOS_18=18,t.SAFARI_15_MAJOR_VERSION=15,t.SAFARI_17_MAJOR_VERSION=17,t.SAFARI_18_MAJOR_VERSION=18,t.TIZEN_2016_MAJOR_VERSION=2,t.TIZEN_2016_MINOR_VERSION=4,t.TIZEN_2017_MAJOR_VERSION=3,t.TIZEN_2017_MINOR_VERSION=0,t.TIZEN_2018_MAJOR_VERSION=4,t.TIZEN_2018_MINOR_VERSION=0,t.TIZEN_2019_MAJOR_VERSION=5,t.TIZEN_2019_MINOR_VERSION=0,t.TIZEN_2020_MAJOR_VERSION=5,t.TIZEN_2020_MINOR_VERSION=5,t.TIZEN_2022_MAJOR_VERSION=6,t.TIZEN_2022_MINOR_VERSION=5,t.TIZEN_2023_MAJOR_VERSION=7,t.WEBOS_2016_2017_CHROMIUM_VERSION=38,t.WEBOS_2018_2019_CHROMIUM_VERSION=53,t.WEBOS_2020_CHROMIUM_VERSION=68,t.WEBOS_2021_CHROMIUM_VERSION=79,t.WEBOS_2022_CHROMIUM_VERSION=87,t.isChrome=function(){return navigator.userAgent.includes("Chrome")&&!(0,t.isEdge)()},t.isChromium=function(){return(0,t.isChrome)()||(0,t.isEdge)()&&!i()},t.isFirefox=function(){return navigator.userAgent.includes("Firefox")},t.isFirefoxIOS=function(){return navigator.userAgent.includes("FxiOS")&&(0,t.isIOS)()},t.isSafari=function(){return navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&!navigator.userAgent.includes("IEMobile")&&!navigator.userAgent.includes("Edge")&&!(0,t.isTizen)()&&!o()&&!a()&&!(0,t.isWpeWebKit)()||(0,r.isFairPlayDrmSupported)()},t.getSafariVersion=function(){var e=/Version\/(\d+)\.?(\d+)?\.?(\d+)?/.exec(navigator.userAgent)||null;if(!e)return{};var t=e[1],n=e[2],r=e[3],i=function(e){return parseInt(e)};return{major:i(t),minor:i(n),patch:i(r)}},t.isEdge=function(){return/Edge\/\d+/i.test(navigator.userAgent)||/Edg\/\d+/i.test(navigator.userAgent)||/EdgA\/\d+/i.test(navigator.userAgent)||/EdgiOS\/\d+/i.test(navigator.userAgent)},t.getEdgeVersion=function(){var e=/Edge\/(\d+)\.?(\d+)/.exec(navigator.userAgent)||/Edg\/(\d+)\.?(\d+)/.exec(navigator.userAgent)||/EdgA\/(\d+)\.?(\d+)/.exec(navigator.userAgent)||/EdgiOS\/(\d+)\.?(\d+)/.exec(navigator.userAgent);if(!e||0===e.length)return{major:0,minor:0};var t={};return e[1]&&(t.major=parseInt(e[1])),e[1]&&(t.minor=parseInt(e[2])),t};var s,u,l,c,d=function(e,n){var r=(0,t.getTizenVersion)();return r.major===e&&r.minor===n};t.isTizen=function(){return null!=s||(s=navigator.userAgent.includes("Tizen")),s},t.isTizen2019=function(){return d(t.TIZEN_2019_MAJOR_VERSION,t.TIZEN_2019_MINOR_VERSION)},t.isTizen2018=function(){return d(t.TIZEN_2018_MAJOR_VERSION,t.TIZEN_2018_MINOR_VERSION)},t.isTizen2017=function(){return d(t.TIZEN_2017_MAJOR_VERSION,t.TIZEN_2017_MINOR_VERSION)},t.isTizen2016=function(){return d(t.TIZEN_2016_MAJOR_VERSION,t.TIZEN_2016_MINOR_VERSION)},t.isTizen2020=function(){return d(t.TIZEN_2020_MAJOR_VERSION,t.TIZEN_2020_MINOR_VERSION)},t.isTizen2022=function(){return d(t.TIZEN_2022_MAJOR_VERSION,t.TIZEN_2022_MINOR_VERSION)},t.isTizenOs7OrNewer=function(){var e;return(null!=(e=(0,t.getTizenVersion)().major)?e:0)>=t.TIZEN_2023_MAJOR_VERSION},t.getTizenVersion=function(){if(void 0===u){var e=/Tizen (\d).(\d)/.exec(navigator.userAgent);u=(null==e?void 0:e[1])?{major:Number(e[1]),minor:Number(e[2]||0)}:{}}return u},t.isVidaa=function(){return navigator.userAgent.includes("VIDAA")},t.getVidaaVersion=function(){var e=new RegExp(/VIDAA\/(\d+)\.?(\d+)/).exec(navigator.userAgent);return(null==e?void 0:e[1])?{major:Number(e[1]),minor:Number(e[2])}:{}}
1,t.isVizio=function(){return navigator.userAgent.includes("VIZIO")},t.isWpeWebKit=function(){return navigator.userAgent.includes("WPE")||navigator.userAgent.includes("Astro")},t.isWebOS=function(){return null!=l||(l=navigator.userAgent.includes("Web0S")||navigator.userAgent.includes("NetCast")),l},t.getWebOsChromiumVersion=function(){var e;if(void 0===c){var t=new RegExp(/Chrome\/(\d+)\.?(\d+)/).exec(navigator.userAgent);if(!(null==t?void 0:t[1]))return{};c={major:Number(t[1]),minor:Number(null!=(e=t[2])?e:0)}}return c},t.isWebOs2019OrOlder=function(){var e=(0,t.getWebOsChromiumVersion)();return(0,t.isWebOS)()&&void 0!==(null==e?void 0:e.major)&&e.major<=t.WEBOS_2018_2019_CHROMIUM_VERSION},t.isWebOs2016=function(){return(0,t.getWebOsChromiumVersion)().major===t.WEBOS_2016_2017_CHROMIUM_VERSION&&!("requestMediaKeySystemAccess"in navigator)},t.isWebOs2017=function(){return(0,t.getWebOsChromiumVersion)().major===t.WEBOS_2016_2017_CHROMIUM_VERSION&&"requestMediaKeySystemAccess"in navigator},t.isWebOs2018Or2019=function(){return(0,t.isWebOS)()&&(0,t.getWebOsChromiumVersion)().major===t.WEBOS_2018_2019_CHROMIUM_VERSION},t.isWebOs2020=function(){return(0,t.isWebOS)()&&(0,t.getWebOsChromiumVersion)().major===t.WEBOS_2020_CHROMIUM_VERSION},t.isWebOs2022OrNewer=function(){var e=(0,t.getWebOsChromiumVersion)();return(0,t.isWebOS)()&&void 0!==(null==e?void 0:e.major)&&e.major>=t.WEBOS_2022_CHROMIUM_VERSION},t.isAndroid=function(){return/Android/i.test(navigator.userAgent)},t.isEdgeAndroid=function(){return(0,t.isEdge)()&&(0,t.isAndroid)()},t.isMobile=function(){return/Android/i.test(navigator.userAgent)||/IEMobile/i.test(navigator.userAgent)||/Windows Phone 10.0/i.test(navigator.userAgent)||/Safari/i.test(navigator.userAgent)&&/Mobile/i.test(navigator.userAgent)},t.isIOS=function(){return/Safari/i.test(navigator.userAgent)&&/Mobile/i.test(navigator.userAgent)&&!/Android/i.test(navigator.userAgent)&&!/Windows Phone 10.0/i.test(navigator.userAgent)},t.isSafariIOS=function(){return/Safari/i.test(navigator.userAgent)&&/iP(hone|od|ad)/i.test(navigator.userAgent)},t.getIOSVersion=function(){var e=/OS (\d+)(_\d+)*/.exec(navigator.userAgent);return e&&e.length>0&&parseInt(e[1],10)||0},t.isSafari15orIOS15=function(){return function(){return(0,t.isSafari)()&&(0,t.getSafariVersion)().major===t.SAFARI_15_MAJOR_VERSION}()||function(){return(0,t.isIOS)()&&(0,t.getIOSVersion)()===t.IOS_15}()},t.isSafari17orIOS17=function(){return function(){return(0,t.isSafari)()&&(0,t.getSafariVersion)().major===t.SAFARI_17_MAJOR_VERSION}()||function(){return(0,t.isIOS)()&&(0,t.getIOSVersion)()===t.IOS_17}()},t.isSafariPlatform18orNewer=function(){var e;return!!((0,t.isSafari)()&&(null!=(e=(0,t.getSafariVersion)().major)?e:0)>=t.SAFARI_18_MAJOR_VERSION)||!!((0,t.isIOS)()&&(0,t.getIOSVersion)()>=t.IOS_18)},t.resetPlatformDetectorCache=function(){s=void 0,u=void 0,l=void 0,c=void 0}},28334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LEGACY_EDGE_MAX_STARTUP_BUFFER=void 0,t.getPlatformSafeStartupBuffer=function(e,t){if((0,i.isTizen2016)()){var n=t.map(function(e){return r.MimeTypeHelper.getMediaType(e)}).map(function(t){return e.bufferSettings.getForwardTargetLevel(t)});return Math.max.apply(Math,n)}return 0};var r=n(85434),i=n(15487);t.LEGACY_EDGE_MAX_STARTUP_BUFFER=6},92006:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerConfigBuilder=void 0;var i=n(60865),o=n(65567),a=n(15487),s=n(70850);t.PlayerConfigBuilder=function(){function e(e){"string"==typeof e?this.ZM={key:e}:(this.ZM={},s.Util.deepCopy(this.ZM,e))}return e.prototype.optimizeForPlatform=function(e){var t=(null!=e?e:{}).appId;if((0,a.isTizen)()||(0,a.isWebOS)()){var n=(0,o.getTvDefaultConfig)(t);s.Util.deepCopy(this.ZM,n)}return this},e.prototype.enableLowLatency=function(e){var t=(0,i.getLowLatencyDefaultConfig)(e);return s.Util.deepCopy(this.ZM,t),this},e.prototype.mergeWith=function(e){return s.Util.deepCopy(this.ZM,e),this},e.prototype.build=function(){return r({},this.ZM)},e}()},72537:function(e,t,n){"use strict";
vendor: 4,398 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.StorageHandler=void 0;var r=n(4081);t.StorageHandler=function(){function e(e){this.n6=e,this.l6="bitmovinplayer_config",this.data={},this.m6=function(){var e=new Date;return e.setTime(e.getTime()+316224e5),"expires="+e.toUTCString()}(),this.r6()}return e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t,this.s6()},e.prototype.setDisabled=function(e){this.disabled=e},e.prototype.o6=function(e){var t=this.p6();if(!t)return"";for(var n=e+"=",r=t.split(";"),i=0;i<r.length;i++){for(var o=r[i];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(n))return o.substring(n.length,o.length)}return""},e.prototype.p6=function(){try{return document.cookie}catch(e){return""}},e.prototype.q6=function(e){if(e)try{this.data=JSON.parse(e)}catch(e){}},e.prototype.r6=function(){this.n6?this.q6(localStorage.getItem(this.l6)):this.q6(this.o6(this.l6))},e.prototype.s6=function(){if(!this.disabled)try{if(this.n6)localStorage.setItem(this.l6,JSON.stringify(this.data));else{var e=r.default.isSecureContext?"Secure; ":"";document.cookie=this.l6+"="+JSON.stringify(this.data)+"; "+e+"SameSite=Strict; path=/; "+this.m6}}catch(e){}},e}()},66502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextSegmentAnalyzer=void 0;var r=n(74853);t.TextSegmentAnalyzer=function(){function e(){}return e.isPlainTextPayload=function(e){if(!e)return!1;var t=[87,69,66,86,84,84],n=new Uint8Array(e.slice(0,6)),i=new Uint8Array(e.slice(0,9));return r.ArrayHelper.comparePrimitiveArrays(n,new Uint8Array(t))||r.ArrayHelper.comparePrimitiveArrays(i,new Uint8Array([239,187,191].concat(t)))},e.detectEncoding=function(e){for(var t,n=!0,r=[34,85,84,70,45,56,34],i=e instanceof ArrayBuffer?new DataView(e):e,o=0;o<i.byteLength;o++)if((t=i.getUint8(o))>128)n=!1;else{if(0===t)return"utf-16";if(t===r[0]&&i.byteLength>o+r.length){for(var a=!0,s=1;s<r.length;s++)if(r[s]!==i.getUint8(o+s)){a=!1;break}if(a)return"utf-8"}}return n?"ascii":"utf-8"},e}()},89927:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSeconds=function(e){return e/n},t.toMilliSeconds=function(e){return e*n};var n=1e3},88844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearTimeoutIfDefined=function(e){e&&r.default.clearTimeout(e)},t.clearIntervalIfDefined=function(e){e&&r.default.clearInterval(e)};var r=n(4081)},23068:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBoolean=t.isNumber=void 0,t.isDefined=function(e){return null!=e},t.isVideoRepresentation=function(e){return null!=e._height&&null!=e._width},t.isNumber=function(e){return"number"==typeof e},t.isBoolean=function(e){return"boolean"==typeof e}},58313:function(e,t){"use strict";function n(e,t,n){return e+=t,null!=n&&(e+="="+encodeURIComponent(n)),e}function r(){var e;return(null==(e=window.location)?void 0:e.protocol)||"https:"}function i(e){var t=e.indexOf("//")+2,n=e.indexOf("/",t);return -1===n&&(n=e.indexOf("?",t)),-1===n?e:e.slice(0,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.URLHelper=void 0,t.extractOrigin=i,t.removeQueryParameters=function(e,t){var n=e.split("?"),r=n[0],i=n[1];if(!i)return e;var o=i.split("&").filter(function(e){var n=e.split("=")[0];return!t.includes(n)}).join("&");return o?"".concat(r,"?").concat(o):r},t.encodeNonAsciiCharacters=function(e){return(function(e){return e.replace(a,function(e,t){return null!=t?t:"�"})})(e).replace(o,function(e){return encodeURIComponent(e)})},t.URLHelper=function(){function e(){}return e.isUrlAbsolute=function(t){return!!t&&("string"!=typeof t&&(t=e.urlObjectToString(t)),!!e.isDataUri(t)||e.ABSOLUTE_URL_REGEX.test(t))},e.removeUrlParameters=function(e){return e.indexOf("?")>-1&&(e=e.split("?")[0]),e},e.urlObjectToString=function(e){return e&&"string"!=typeof e?!function(e){return e&&"string"==typeof e.__text}(e)?!function(e){return e&&"string"==typeof e.url}(e)?null:e.url:e.__text:e},e.concatUrlParts=function(t,n){var r="/",o=e.urlObjectToString(t),a=e.urlObjectToString(n);return!o||o.length<1||e.isUrlAbsolute(a)?a:!a||a.length<1?o:((o=e.removeUrlParameters(o)).indexOf("/")>-1&&(o=o.substring(0,o.lastIndexOf("/"))),"/"===a[0]&&(o=i(o),r=""),o+r+a)},e.removeLastPathPart=function(t){if(!t)return null;t=e.removeUrlParameters(t);var n=e.getProtocolOffset(t),r=t.lastIndexOf("/");
vendor: 30,062 bytes, line 1
1return r===t.length-1&&(t=t.substring(0,r)),(r=t.lastIndexOf("/"))<0?"":r>t.length-1?t:r<=n?t+"/":t.substring(0,r+1)},e.isRootRelativeUrl=function(e){return!!(e&&e.length>0)&&"/"===e[0]},e.getProtocolOffset=function(e){var t=e.indexOf("://");return t>-1?t+3:2*(-1===t&&0===e.indexOf("//"))},e.replaceCdn=function(e,t){var n=i(e),r=i(t);return e.replace(n,r)},e.isSubUrl=function(e,t){return!(!e||!t)&&(0===t.indexOf("../")&&(t=t.substring(3)),e.indexOf(t)>-1)},e.concatBaseUrlWithPartial=function(t,n){return e.isUrlAbsolute(n)?(n.startsWith("/")&&(n=(function(e){return e.substring(0,e.indexOf("//"))}(t)||r())+n),n):(t=this.toFullUrl(t),n&&0!==n.length?e.isRootRelativeUrl(n)?i(t)+n:(t.endsWith("/")||(t=this.removeLastPathPart(t)),t+n):t)},e.appendQueryParametersToUrl=function(e,t){if(!t||0===Object.keys(t).length)return e;var r="",i=e.indexOf("?")>=0;for(var o in t)t.hasOwnProperty(o)&&(r+=i?"&":"?",i=!0,r=n(r,o,t[o]));return e+r},e.toFullUrl=function(t){if(e.isDataUri(t)||!t.includes("//"))return t;var n=t.startsWith("//")?r()+t:t;return t.split("//")[1].includes("/")||(n+="/"),n},e.isDataUri=function(e){return e&&0===e.indexOf(this.DATA_URI_PROTOCOL)},e.parseDataUri=function(e){if(!this.isDataUri(e))throw Error("Invalid data uri: "+e);-1===(e=e.substring(this.DATA_URI_PROTOCOL.length)).indexOf(this.COMMA_CHARACTER)&&(e=this.DATA_URI_DEFAULT_MEDIA_TYPE+this.COMMA_CHARACTER+e);var t=e.split(this.COMMA_CHARACTER),n=t[0],r=t[1],i=n.endsWith(this.DATA_URI_BASE64_MARKER),o=n.length-this.DATA_URI_BASE64_MARKER.length-this.COMMA_CHARACTER.length;return{mediaType:i?n.substring(0,o):n,base64:i?r:void 0,data:i?atob(r):r}},e.buildAbsoluteUrl=function(t,n,r){return e.isUrlAbsolute(r)?r:e.isRootRelativeUrl(r)?n+r:t+r},e.getAbsoluteUrl=function(t,n){return e.isUrlAbsolute(t)?t:e.concatBaseUrlWithPartial(n,t)},e.removeDotSegments=function(t){for(var n=e.isUrlAbsolute(t)?i(t):"",r=[],o=0,a=t.substring(n.length).split("/");o<a.length;o++){var s=a[o];if(".."===s){if(0===r.length)return t;r.pop()}else"."!==s&&r.push(s)}return n+r.join("/")},e.DATA_URI_PROTOCOL="data:",e.DATA_URI_BASE64_MARKER="base64",e.DATA_URI_DEFAULT_MEDIA_TYPE="text/plain;charset=US-ASCII",e.ABSOLUTE_URL_REGEX=RegExp("^(?:[a-z]+:)?//","i"),e.COMMA_CHARACTER=",",e}();var o=/[\u0080-\uFFFF]+/g,a=/([\uD800-\uDBFF][\uDC00-\uDFFF])|[\uD800-\uDFFF]/g},70850:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Util=void 0,t.parseAspectRatio=function(e){if(!e)return 0;if((e=String(e).replace(",",".")).indexOf(":")>-1)t=e.split(":");else{if(!(e.indexOf("/")>-1))return isNaN(parseFloat(e))?0:parseFloat(e);t=e.split("/")}if(t&&Array.isArray(t)&&t.length>1){var t,n=parseFloat(t[0])/parseFloat(t[1]);return isNaN(n)?0:n}return 0},t.removeDuplicates=function(e){return e.filter(function(e,t,n){return t===n.findIndex(function(t){return c.deepEqual(t,e)})})},t.safeUserCallback=function(e,t){if(!c.isFunction(e))return null;try{return e()}catch(e){return t&&t.warn("Exception in userCallback",e),null}};var i=n(56481),o=n(70962),a=n(19274),s=n(26225),u=n(57387),l=n(89927),c=function(){function e(){}return e.deepEqual=function(t,n){if(t===n)return!0;if(!t||"object"!=typeof t||!n||"object"!=typeof n||Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t)if(!n.hasOwnProperty(r)||!e.deepEqual(t[r],n[r]))return!1;return!0},e.deepCopy=function(t,n){var r=void 0!==window.ArrayBuffer;for(var i in n)n.hasOwnProperty(i)&&(r&&n[i]instanceof ArrayBuffer?t[i]=n[i].slice(0,n[i].byteLength):"object"==typeof n[i]&&null!==n[i]?(t.hasOwnProperty(i)||(Array.isArray(n[i])?t[i]=[]:t[i]={}),e.deepCopy(t[i],n[i])):t[i]=n[i])},e.deepCopyMulti=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.forEach(function(n){return t.deepCopy(e,n)}),e},e.isFunction=function(e){return!!e&&"[object Function]"===({}).toString.call(e)},e.extractBitrateFromString=function(e,t){return isNaN(t)?(t=t.toLowerCase().trim().replace(/,/g,".")).indexOf("mbps")>-1?1e6*t.split("m")[0]:t.indexOf("kbps")>-1?1e3*t.split("k")[0]:t.indexOf("bps")>-1?+t.split("b")[0]:"max"===e?1/0:0:t===1/0?t:+t},e.splitPlayerAndStreamingTechnology=function(e){if(e&&"string"==typeof e){for(var t=e.split("."),n=0,r=0;r<e.length;r++)""===t[r]&&(t[r]=null,n++);return n===e.length?null:{player:t[0],streaming:t[1]}}return null},e.createVRAudioElement=function(){var t=document.createElement("source");t.setAttribute("type","audio/mp3"),t.setAttribute("src","data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq");var n={settings:o.DefaultSettings};for(e.vrAudioElement=e.vrAudioElement||new s.MediaElementWrapper(n,document.createElement("audio")),e.vrAudioElement.setAttribute("id","bitmovinplayer-audio"),e.vrAudioElement.addEventListener(a.MediaElementEvent.playing,function(){return e.vrAudioElement.bit_wasPlayCalled=!0}),e.vrAudioElement.setAttribute("crossorigin","anonymous"),e.vrAudioElement.hasAttribute("src")&&e.vrAudioElement.removeAttribute("src");e.vrAudioElement.firstChild;)e.vrAudioElement.removeChild(e.vrAudioElement.firstChild);e.vrAudioElement.load()},e.getVRAudioElement=function(){return e.vrAudioElement||e.createVRAudioElement(),e.vrAudioElement},e.removeVRAudioElement=function(){if(e.vrAudioElement){var t=e.vrAudioElement.getWrappedElement();e.vrAudioElement=(0,i.dispose)(e.vrAudioElement),t.parentNode&&t.parentNode.removeChild(t)}},e.isFullscreen=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.webkitCurrentFullScreenElement},e.generateUniqueId=function(){return Date.now().toString(16)+Math.floor(1048576*(1+Math.random())).toString(16).substring(1)},e.getUtcDate=function(t){var n=null;return"string"!=typeof t&&isNaN(t)||(n=new Date("string"==typeof t?e.timeZoneRegex.test(t)?t:t+"Z":t)),n},e.delay=function(e,t){return new Promise(function(n){setTimeout(function(){"function"==typeof t?n(t()):n()},e)})},e.timeInSeconds=function(e){return(0,l.toSeconds)(e.getTime())},e.toHash=function(e){var t=new WeakMap,n=JSON.stringify(e,function e(n,r){if(null==r)return r;if("function"==typeof r)return r.toString().replace(/\n|\s\s/g,"");if(r instanceof ArrayBuffer)return String.fromCharCode.apply(null,new Uint8Array(r.slice(0,20)));if(r instanceof Uint8Array)return String.fromCharCode.apply(null,r.slice(0,20));if("object"==typeof r&&!Array.isArray(r)){if(t.has(r)){var i=JSON.stringify(Object.keys(r),e);return"[Object ".concat(Math.abs((0,u.calcHash)(i)).toString(16),"]")}t.set(r,!0)}return r});return(0x10000000|Math.abs((0,u.calcHash)(n))).toString(16)},e.roundValue=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},e.arrayMove=function(e,t,n){var i=r([],e,!0),o=i[t];return i.splice(t,1),i.splice(n,0,o),i},e.vrAudioElement=null,e.timeZoneRegex=/(?:Z|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$/,e}();t.Util=c},57387:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcHash=function(e){return(r.ModuleManager.has(i.ModuleName.Subtitles)?r.ModuleManager.get(i.ModuleName.Subtitles).hashCode:o)(e)};var r=n(88052),i=n(62756);function o(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t}},78877:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBufferEndSafetyMargin=function(e){var t=(0,i.getCapabilities)(),n=t.isChromium,u=t.isChrome,l=t.isVizio,c=t.isWebOS,d=t.isPlayStation4;if(c||l||(0,o.isTizen2018)()||(0,o.isTizen2019)()||d)return s;var f=(null==e?void 0:e.usedKeySystem.kind)===r.KeySystemKind.PLAYREADY;return n&&!u&&f?s:a};var r=n(33468),i=n(21513),o=n(15487),a=.25,s=1.25},4081:function(e,t){"use strict";function n(e){return"object"==typeof e&&null!==e&&"Math"in e&&e.Math===Math}function r(e,t){return n(e)?e:n(t)?t:void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.isGlobalScope=n,t.selectGlobalScope=r,t.default=r("object"==typeof window?window:void 0,"object"==typeof self?self:void 0)},2992:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rewriteMp4BoxType=function(e,t){t.split("").slice(0,r).forEach(function(t,r){return e._raw.setUint8(n+r,t.charCodeAt(0))})};var n=4,r=4},60877:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldResetCurrentTimeAfterBufferUnderrun=function(){var e=(0,i.getCapabilities)();return e.isWebOS?e[r.CapabilityKey.webOSChromiumVersion]===o.WEBOS_2020_CHROMIUM_VERSION:e.isChromium};var r=n(7387),i=n(21513),o=n(15487)},17891:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResizeObserver=function(e,t){var n=["style","width","height","class"],r=function(){return t(e.clientWidth,e.clientHeight)},i=new MutationObserver(r);return{observe:function(){i.observe(e,{attributes:!0,attributeFilter:n,childList:!1,subtree:!0}),window.addEventListener("resize",r)},dispose:function(){i.disconnect(),window.removeEventListener("resize",r)}}}},2079:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewModeHandler=void 0;var r=n(56481),i=n(3714),o=n(44468),a=n(23690),s=n(87827),u=n(93204),l=n(19274),c=n(17891),d=["","webkit","moz","ms","o"],f=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","webkitbeginfullscreen","webkitendfullscreen"];function p(e,t){return d.some(function(n){var r=t;return""!==n&&(r="".concat(n).concat(t.substring(0,1).toUpperCase()).concat(t.substring(1))),"function"==typeof e[r]&&(e[r](),!0)})}function h(){var e,t,n;return null!=(n=null!=(t=null!=(e=document.fullscreenElement)?e:document.mozFullScreenElement)?t:document.webkitFullscreenElement)?n:null}t.ViewModeHandler=function(){function e(e,t,n,r){var s=this;this.currentPlayer=e,this.container=t,this.eventDispatcher=n,this.shouldForceLegacyFullscreen=r,this.P6=!1,this.width=0,this.height=0,this.R6=function(e){return s.currentPlayer.context.store.dispatch(e)},this.S6=function(e,t){e===s.width&&t===s.height||(s.width=e,s.height=t,s.eventDispatcher(i.PlayerEvent.PlayerResized,{width:"".concat(s.width,"px"),height:"".concat(s.height,"px")}),s.currentPlayer.adController&&"function"==typeof s.currentPlayer.adController.onPlayerResize&&s.currentPlayer.adController.onPlayerResize(s.width,s.height))},this.T6=function(e,t){var n={from:t.viewMode,to:e.viewMode,legacy:s.shouldForceLegacyFullscreen()};s.Y6()&&(e.viewMode===o.ViewMode.Fullscreen?(s.currentPlayer.bitdashPlayer.onFullscreenEnter(n),s.width=0,s.height=0):t.viewMode===o.ViewMode.Fullscreen&&s.currentPlayer.bitdashPlayer.onFullscreenExit()),s.eventDispatcher(i.PlayerEvent.ViewModeChanged,n)},this.d6=function(){s.R6((0,a.setPlayerViewMode)(o.ViewMode.PictureInPicture))},this.e6=function(){s.R6((0,a.setPlayerViewMode)(o.ViewMode.Inline))},this.u7=function(e){s.isFullscreen()&&e.type===s.Q6?(s.Q6=void 0,s.t7()):(s.P6||s.f6())&&!s.Q6&&(s.Q6=e.type,s.s7())},this.N6=(0,c.createResizeObserver)(this.currentPlayer.container,this.S6),this.N6.observe(),this.U6(),this.W6(),this.X6()}return e.prototype.U6=function(){this.O6=(0,u.subscribe)(this.currentPlayer.context.store)(function(e){return(0,s.getPlayerState)(e)},this.T6,function(e,t){return e.viewMode!==t.viewMode})},e.prototype.V6=function(){return(0,s.getPlayerState)(this.currentPlayer.context.store.getState()).viewMode},e.prototype.W6=function(){var e=this;f.forEach(function(t){return document.addEventListener(t,e.u7)}),this.f6()&&(this.R6((0,a.setPlayerViewMode)(o.ViewMode.Fullscreen)),this.h6(!0))},e.prototype.X6=function(){this.currentPlayer.videoElement&&(this.currentPlayer.videoElement.addEventListener(l.MediaElementEvent.enterpictureinpicture,this.d6),this.currentPlayer.videoElement.addEventListener(l.MediaElementEvent.leavepictureinpicture,this.e6))},e.prototype.Y6=function(){return!!this.currentPlayer&&!!this.currentPlayer.bitdashPlayer},e.prototype.Z6=function(){return this.Y6()&&!!this.currentPlayer.videoElement&&this.currentPlayer.videoElement.isPictureInPictureAvailable()},e.prototype.a6=function(){return this.currentPlayer.videoElement.isPictureInPicture()},e.prototype.isViewModeAvailable=function(e){return e===o.ViewMode.PictureInPicture?this.Z6():[o.ViewMode.Fullscreen,o.ViewMode.Inline].includes(e)},e.prototype.b6=function(){this.Y6()&&this.currentPlayer.videoElement&&(this.currentPlayer.videoElement.exitPictureInPicture(),this.R6((0,a.setPlayerViewMode)(o.ViewMode.Inline)))},e.prototype.c6=function(){var e;null==(e=this.currentPlayer.videoElement)||e.enterPictureInPicture(),this.R6((0,a.setPlayerViewMode)(o.ViewMode.PictureInPicture))},e.prototype.f6=function(){var e=h();return e&&this.currentPlayer.videoElement.getWrappedElement()===e},e.prototype.g6=function(){return this.shouldForceLegacyFullscreen()?"data-legacy-fullscreen":"data-fullscreen"},e.prototype.h6=function(e){var t=this.g6();this.container.setAttribute(t,String(e))},e.prototype.s7=function(){this.h6(!0),this.P6=!1,this.R6((0,a.setPlayerViewMode)(o.ViewMode.Fullscreen))},e.prototype.t7=function(){this.h6(!1),this.P6=!1,this.V6()===o.ViewMode.Fullscreen&&this.R6((0,a.setPlayerViewMode)(o.ViewMode.Inline))},e.prototype.isFullscreen=function(){return this.V6()===o.ViewMode.Fullscreen||"true"===this.container.getAttribute(this.g6())},e.prototype.v7=function(e){if(void 0===e&&(e=this.container),h())this.currentPlayer.context.logger.debug("cannot enter fullscreen, another element is already fullscreen");else if(this.shouldForceLegacyFullscreen())this.s7();else{var t=p(e,"requestFullscreen");t?this.P6=!0:!t&&this.currentPlayer.videoElement.webkitEnterFullScreen&&(this.P6=!0,this.currentPlayer.videoElement.webkitEnterFullScreen())}},e.prototype.w7=function(){if(this.shouldForceLegacyFullscreen())this.t7();else{var e=p(window.document,"exitFullscreen");e?this.P6=!0:!e&&this.currentPlayer.videoElement.webkitExitFullscreen&&(this.P6=!0,this.currentPlayer.videoElement.webkitExitFullscreen())}},e.prototype.x7=function(){var e=this.V6();this.isFullscreen()?this.w7():(e===o.ViewMode.PictureInPicture||this.a6())&&this.b6()},e.prototype.y7=function(e,t){e!==o.ViewMode.Fullscreen?e===o.ViewMode.PictureInPicture&&this.c6():this.v7(t.fullscreenElement)},e.prototype.setViewMode=function(e,t){void 0===t&&(t={}),e!==this.V6()&&(this.x7(),this.isViewModeAvailable(e)&&this.y7(e,t))},e.prototype.dispose=function(){var e,t,n=this;this.N6=(0,r.dispose)(this.N6),f.forEach(function(e){return document.removeEventListener(e,n.u7)}),null==(e=this.currentPlayer.videoElement)||e.removeEventListener(l.MediaElementEvent.enterpictureinpicture,this.d6),null==(t=this.currentPlayer.videoElement)||t.removeEventListener(l.MediaElementEvent.leavepictureinpicture,this.e6),this.O6()},e}()},46057:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yieldToMain=function(){return new Promise(function(e){window.setTimeout(e)})}},19274:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MediaElementEvent=void 0,function(e){e.abort="abort",e.canplay="canplay",e.canplaythrough="canplaythrough",e.durationchange="durationchange",e.emptied="emptied",e.encrypted="encrypted",e.ended="ended",e.error="error",e.loadeddata="loadeddata",e.loadedmetadata="loadedmetadata",e.loadstart="loadstart",e.pause="pause",e.play="play",e.playing="playing",e.progress="progress",e.ratechange="ratechange",e.seeked="seeked",e.seeking="seeking",e.stalled="stalled",e.suspend="suspend",e.timeupdate="timeupdate",e.volumechange="volumechange",e.waiting="waiting",e.waitingforkey="waitingforkey",e.currenttimenotadvancing="currenttimenotadvancing",e.primestart="primestart",e.msneedkey="msneedkey",e.enterpictureinpicture="enterpictureinpicture",e.leavepictureinpicture="leavepictureinpicture",e.webkitkeymessage="webkitkeymessage",e.webkitneedkey="webkitneedkey",e.webkitkeyerror="webkitkeyerror",e.webkitkeyadded="webkitkeyadded",e.webkitplaybacktargetavailabilitychanged="webkitplaybacktargetavailabilitychanged",e.webkitpresentationmodechanged="webkitpresentationmodechanged",e.webkitcurrentplaybacktargetiswirelesschanged="webkitcurrentplaybacktargetiswirelesschanged"}(n||(t.MediaElementEvent=n={}))},96556:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaElementEventHandler=void 0;var r=n(13531),i=n(4081),o=n(88844),a=n(70850),s=n(19274);t.MediaElementEventHandler=function(){function e(t,n){var r=this;this.handleVideoElementErrorEvent=function(t){if(r.iab(t.type,t),!r.shouldSuppressEvent(t)){if(r.bab.error){t.errorObject={code:r.bab.error.code};var n=e.getMediaErrorName(r.bab.error.code);n&&(t.errorObject.mediaError=n),"msExtendedCode"in r.bab.error&&r.bab.error.msExtendedCode&&(t.errorObject.systemCode=r.bab.error.msExtendedCode.toString(16)),r.bab.error.message&&(t.errorObject.message=r.bab.error.message),t.errorMessage=Object.keys(t.errorObject).map(function(e){return e+": "+t.errorObject[e]}).join(", ")}else t.errorMessage="Video element triggered an Error, but has no error object.";r.callAllHandlers(t)}},this.handleVideoElementEvent=function(e){r.iab(e.type),r.shouldSuppressEvent(e)||r.callAllHandlers(e)},this.aab=t,this.bab=n,this.cab={},this.dab={},this.eab=[],this.fab=!1,this.gab=!1,this.attachVideoEventHandlers()}return Object.defineProperty(e.prototype,"isAd",{get:function(){return this.fab},set:function(e){this.fab=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPriming",{get:function(){return this.gab},set:function(e){this.gab=e},enumerable:!1,configurable:!0}),e.prototype.suppressEvent=function(e,t,n){var r=this;if(void 0===t&&(t=1e8),this.dab[e]=this.dab[e]||0,this.dab[e]+=t,n&&n>0){var i=window.setTimeout(function(){r.dab[e]=Math.max(r.dab[e]-t,0),r.eab.splice(r.eab.indexOf(i),1)},n);this.eab.push(i)}},e.prototype.clearEventSuppression=function(e){this.dab[e]&&(this.dab[e]=0)},e.prototype.hab=function(){var e=this;Object.keys(this.dab).forEach(function(t){return e.clearEventSuppression(t)}),this.eab.forEach(function(e){return(0,o.clearTimeoutIfDefined)(e)})},e.prototype.triggerEvent=function(e,t){void 0===t&&(t={type:e}),e===s.MediaElementEvent.error?this.handleVideoElementErrorEvent(t):this.handleVideoElementEvent(t)},e.prototype.attachVideoEventHandlers=function(){var e=this;Object.keys(s.MediaElementEvent).forEach(function(t){t===s.MediaElementEvent.error?e.bab.addEventListener(s.MediaElementEvent.error,e.handleVideoElementErrorEvent):e.bab.addEventListener(t,e.handleVideoElementEvent)})},e.prototype.removeVideoEventHandlers=function(){var e=this;Object.keys(s.MediaElementEvent).forEach(function(t){e.bab.removeEventListener(t,e.handleVideoElementEvent)}),this.bab.removeEventListener(s.MediaElementEvent.error,this.handleVideoElementErrorEvent)},e.prototype.shouldSuppressEvent=function(t){return!!this.isAd||!(!this.isPriming||!e.PRIME_RELATED_EVENTS.includes(t.type))||this.dab[t.type]>0&&(this.dab[t.type]--,!0)},e.prototype.iab=function(e,t){var n,i;if(null==(i=null==(n=this.aab)?void 0:n.logger)?void 0:i.isLevelEnabled(r.LogLevel.DEBUG)){var o=this.aab.logger,a="[MediaElementEvent] ".concat(e);this.aab.settings.ENABLE_MEDIA_ELEMENT_EVENT_LOGS?t?o.debug(a,t):o.debug(a):o.isLevelEnabled(r.LogLevel.INSANE)&&(t?o.insane(a,t):o.insane(a))}},e.prototype.callAllHandlers=function(e){var t=this;this.cab[e.type]&&this.cab[e.type].forEach(function(n){t.jab(n,e)})},e.prototype.jab=function(e,t){var n=e.eventModification?e.eventModification(t):t;e.eventHandler.handleEvent?e.eventHandler.handleEvent(n):"function"==typeof e.eventHandler?e.eventHandler(n):this.aab.logger.debug("Encountered unknown event handler for "+t.type+": ",e.eventHandler)},e.prototype.addEventListener=function(e,t,n){this.cab[e]=this.cab[e]||[],this.cab[e].push(new u(t,n))},e.prototype.hasEventHandler=function(e,t){return!!this.cab[e]&&null!=this.cab[e].find(function(e){return e.eventHandler===t})},e.prototype.removeEventListener=function(e,t){this.cab[e]&&(this.cab[e]=this.cab[e].filter(function(e){return e.eventHandler!==t}))},e.prototype.reset=function(){this.hab()},e.prototype.dispose=function(){this.reset(),this.removeVideoEventHandlers(),this.cab=null},e.getMediaErrorName=function(e){if("MediaError"in i.default){for(var t in MediaError)if(t.indexOf("MEDIA_ERR_")>-1&&MediaError[t]===e)return t}return null},e.PRIME_RELATED_EVENTS=[s.MediaElementEvent.play,s.MediaElementEvent.playing,s.MediaElementEvent.pause,s.MediaElementEvent.timeupdate],e}();var u=function(){return function(e,t){this.eventHandler=e,t&&a.Util.isFunction(t)&&(this.eventModification=t)}}()},26225:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.MediaElementWrapper=void 0;var i=n(56481),o=n(13531),a=n(51072),s=n(88844),u=n(19274),l=n(96556),c=n(97583);t.MediaElementWrapper=function(){function e(e,t){var n=this;this.sW=!1,this.tW=function(){n.resetEndedState()},this.element=t,this.context=e,this.mediaElementEventHandler=new l.MediaElementEventHandler(e,t),this.nativeMediaEventListener=new c.NativeMediaEventListener(e,this),this.drmHandler=null,this.element.addEventListener(u.MediaElementEvent.seeking,this.tW),this.element.addEventListener(u.MediaElementEvent.playing,this.tW)}return e.prototype.transitionToEnded=function(){this.sW=!0,this.mediaElementEventHandler.triggerEvent(u.MediaElementEvent.ended)},e.prototype.resetEndedState=function(){this.sW=!1},Object.defineProperty(e.prototype,"audioTracks",{get:function(){return this.element.audioTracks},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this.element.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentSrc",{get:function(){return this.element.currentSrc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this.element.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this.sW||this.element.ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return this.element.error},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaKeys",{get:function(){return this.element.mediaKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"msKeys",{get:function(){return this.element.msKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this.element.paused},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"networkState",{get:function(){return this.element.networkState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"played",{get:function(){return this.element.played},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this.element.readyState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seekable",{get:function(){return this.element.seekable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seeking",{get:function(){return this.element.seeking},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.element&&this.element.style},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textTracks",{get:function(){return this.element.textTracks},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"videoTracks",{get:function(){return this.element.videoTracks},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.element.firstChild},enumerable:!1,configurable:!0}),e.prototype.uW=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.context.settings.ENABLE_MEDIA_ELEMENT_ACTION_LOGS&&this.context.logger.isLevelEnabled(o.LogLevel.DEBUG)&&(t=this.context.logger).debug.apply(t,r(["[MediaElementAction] ".concat(e)],n,!1))},Object.defineProperty(e.prototype,"autoplay",{get:function(){return this.element.autoplay},set:function(e){this.uW("set 'autoplay'",e),this.element.autoplay=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.element.controls},set:function(e){this.uW("set 'controls'",e),this.element.controls=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"crossOrigin",{get:function(){return this.element.crossOrigin},set:function(e){this.uW("set 'crossOrigin'",e),this.element.crossOrigin=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){var e,t;return null!=(t=null==(e=this.element)?void 0:e.currentTime)?t:0},set:function(e){this.uW("set 'currentTime'",e),this.element.currentTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"innerHTML",{get:function(){return this.element.innerHTML},set:function(e){this.element.innerHTML=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this.context.settings.ENABLE_MUTED_BACKGROUND_PLAYBACK?this.element&&0===this.element.volume:this.element&&this.element.muted},set:function(e){if(this.context.settings.ENABLE_MUTED_BACKGROUND_PLAYBACK){if(e){var t=this.volume;this.volume=0,this.nativeMediaEventListener.lastKnownState.volume=t}else this.volume=this.nativeMediaEventListener.lastKnownState.volume;this.uW("set 'muted'",!1),this.nativeMediaEventListener.lastKnownState.muted=e,this.element.muted=!1}else this.uW("set 'muted'",e),this.nativeMediaEventListener.lastKnownState.muted=e,this.element.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preload",{get:function(){return this.element.preload},set:function(e){this.uW("set 'preload'",e),this.element.preload=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"src",{get:function(){return this.element.src},set:function(e){this.uW("set 'src'",e),this.nativeMediaEventListener.reset(),this.element.src=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"srcObject",{get:function(){return this.element.srcObject},set:function(e){this.uW("set 'srcObject'",e),this.nativeMediaEventListener.reset(),this.element.srcObject=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playbackRate",{get:function(){return this.element.playbackRate},set:function(e){this.uW("set 'playbackRate'",e);try{this.element.playbackRate=e}catch(t){this.context.logger.log("Browser rejected to set playback rate to "+e)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){var e;return!0===(null==(e=this.nativeMediaEventListener)?void 0:e.lastKnownState.muted)&&this.context.settings.ENABLE_MUTED_BACKGROUND_PLAYBACK?this.nativeMediaEventListener.lastKnownState.volume:this.element.volume},set:function(e){this.uW("set 'volume'",e),this.nativeMediaEventListener.lastKnownState.volume=e,this.element.volume=e},enumerable:!1,configurable:!0}),e.prototype.addTextTrack=function(e,t,n){return this.uW("addTextTrack()",e,t,n),this.element.addTextTrack(e,t,n)},e.prototype.canPlayType=function(e,t){return this.element.canPlayType(e,t)},e.prototype.load=function(){this.uW("load()"),this.resetEndedState(),this.element.load()},e.prototype.pause=function(){this.uW("pause()"),this.element&&this.element.pause()},e.prototype.play=function(){return this.internalPlay()},e.prototype.internalPlay=function(){return this.uW("play()"),this.element.play()||a.PlayPromise.new(this.context,this,this.drmHandler)},e.prototype.prime=function(){var e=this;this.uW("prime()");var t=function(t){e.mediaElementEventHandler&&(e.mediaElementEventHandler.isPriming=t)};return t(!0),this.mediaElementEventHandler.triggerEvent(u.MediaElementEvent.primestart),this.internalPrime().then(function(){t(!1)})},e.prototype.internalPrime=function(){this.internalPlay().catch(function(){}),this.pause();var e=this.getWrappedElement();return new Promise(function(t){var n=window.setTimeout(function(){e.removeEventListener(u.MediaElementEvent.pause,r),t()},100),r=function(){(0,s.clearTimeoutIfDefined)(n),e.removeEventListener(u.MediaElementEvent.pause,r),t()};e.addEventListener(u.MediaElementEvent.pause,r)})},e.prototype.setMediaKeys=function(e){return this.uW("setMediaKeys()",e),this.element&&this.element.setMediaKeys(e)||Promise.resolve()},e.prototype.msSetMediaKeys=function(e){return this.uW("msSetMediaKeys()",e),this.element&&this.element.msSetMediaKeys(e)},e.prototype.msSetMediaProtectionManager=function(e){this.uW("msSetMediaProtectionManager()",e),this.element.msSetMediaProtectionManager(e)},e.prototype.getAttribute=function(e){return this.element.getAttribute(e)},e.prototype.setAttribute=function(e,t){this.uW("setAttribute()",e,t),this.element.setAttribute(e,t)},e.prototype.removeAttribute=function(e){this.uW("removeAttribute()",e),this.element.removeAttribute(e)},e.prototype.hasAttribute=function(e){return this.element.hasAttribute(e)},e.prototype.appendChild=function(e){this.element.appendChild(e)},e.prototype.removeChild=function(e){return this.element.removeChild(e)},e.prototype.getElementsByTagName=function(e){return this.element.getElementsByTagName(e)},e.prototype.addEventListener=function(e,t,n){this.mediaElementEventHandler.addEventListener(e,t,n)},e.prototype.removeEventListener=function(e,t){this.mediaElementEventHandler&&this.mediaElementEventHandler.removeEventListener(e,t)},Object.defineProperty(e.prototype,"eventHandler",{get:function(){return this.mediaElementEventHandler}
1,enumerable:!1,configurable:!0}),e.prototype.getWrappedElement=function(){return this.element},e.prototype.dispose=function(){var e,t;null==(e=this.element)||e.removeEventListener(u.MediaElementEvent.seeking,this.tW),null==(t=this.element)||t.removeEventListener(u.MediaElementEvent.playing,this.tW),this.mediaElementEventHandler=(0,i.dispose)(this.mediaElementEventHandler),this.nativeMediaEventListener=(0,i.dispose)(this.nativeMediaEventListener),this.drmHandler=null,this.element=null,this.context.logger&&this.context.logger.debug("Disposed wrapped element")},e}()},97583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NativeMediaEventListener=void 0;var r=n(80813),i=n(9768),o=n(3714),a=n(94685),s=n(19274);t.NativeMediaEventListener=function(){function e(e,t){var n,a,s,u,l,c=this;this.context=e,this.mab=function(){var e=c.kab.volume,t=c.kab.muted;c.lastKnownState.muted!==t&&(t?c.pab(o.PlayerEvent.Muted,{issuer:i.MEDIA_ELEMENT_ISSUER_NAME}):c.pab(o.PlayerEvent.Unmuted,{issuer:i.MEDIA_ELEMENT_ISSUER_NAME}),c.lastKnownState.muted=t),c.lastKnownState.volume!==e&&(c.pab(o.PlayerEvent.VolumeChanged,{issuer:i.MEDIA_ELEMENT_ISSUER_NAME,targetVolume:100*e,sourceVolume:100*c.lastKnownState.volume}),c.lastKnownState.volume=e)},this.nab=function(){var e=c.kab.playbackRate;c.context.serviceManager.maybeCall(r.ServiceName.PlayerStateService,function(t){t.playbackSpeed!==e&&t.setPlaybackSpeed(e)})},this.oab=function(){c.lastKnownState.canPlay||(c.lastKnownState.canPlay=!0,c.pab(o.PlayerEvent.Ready))},this.kab=t;var d=null==(a=null==(n=e.config)?void 0:n.playback)?void 0:a.volume;this.lastKnownState={muted:null!=(l=null==(u=null==(s=e.config)?void 0:s.playback)?void 0:u.muted)?l:t.muted,volume:null!=d?d/100:t.volume,playbackRate:t.playbackRate,canPlay:!1},this.lab()}return e.prototype.lab=function(){this.kab.addEventListener(s.MediaElementEvent.volumechange,this.mab),this.kab.addEventListener(s.MediaElementEvent.canplay,this.oab),this.kab.addEventListener(s.MediaElementEvent.ratechange,this.nab)},e.prototype.pab=function(e,t){(0,a.isContextAvailable)(this.context)&&this.context.eventHandler&&this.context.eventHandler.dispatchEvent(e,t)},e.prototype.qab=function(){this.kab.removeEventListener(s.MediaElementEvent.volumechange,this.mab),this.kab.removeEventListener(s.MediaElementEvent.canplay,this.oab),this.kab.removeEventListener(s.MediaElementEvent.ratechange,this.nab)},e.prototype.reset=function(){this.lastKnownState.canPlay=!1},e.prototype.dispose=function(){this.qab()},e}()},79186:function(e,t,n){"use strict";var r,i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.VideoElementWrapper=void 0;var o,a=n(44468),s=n(26225);!function(e){e.Inline="inline",e.PictureInPicture="picture-in-picture",e.Fullscreen="fullscreen"}(o||(o={}));var u=((r={})[o.Inline]=a.ViewMode.Inline,r[o.PictureInPicture]=a.ViewMode.PictureInPicture,r[o.Fullscreen]=a.ViewMode.Fullscreen,r);t.VideoElementWrapper=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),Object.defineProperty(t.prototype,"droppedVideoFrames",{get:function(){var e,t;return null!=(t=null!=(e=this.element.droppedVideoFrames)?e:this.element.webkitDroppedFrameCount)?t:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoWidth",{get:function(){return this.element&&this.element.videoWidth||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoHeight",{get:function(){return this.element&&this.element.videoHeight||0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"webkitKeys",{get:function(){return this.element.webkitKeys}
1,enumerable:!1,configurable:!0}),t.prototype.webkitGenerateKeyRequest=function(e,t){this.element.webkitGenerateKeyRequest(e,t)},Object.defineProperty(t.prototype,"width",{get:function(){return this.element.width},set:function(e){this.element.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.element.height},set:function(e){this.element.height=e},enumerable:!1,configurable:!0}),t.prototype.webkitAddKey=function(e,t,n,r){this.element.webkitAddKey(e,t,n,r)},t.prototype.webkitEnterFullScreen=function(){this.element.webkitEnterFullScreen()},t.prototype.webkitExitFullscreen=function(){this.element.webkitExitFullscreen()},t.prototype.webkitShowPlaybackTargetPicker=function(){return this.element.webkitShowPlaybackTargetPicker()},Object.defineProperty(t.prototype,"webkitDisplayingFullscreen",{get:function(){var e;return null!=(e=this.element.webkitDisplayingFullscreen)&&e},enumerable:!1,configurable:!0}),t.prototype.getViewModeFromPresentationMode=function(){return u[this.element.webkitPresentationMode]||(document.pictureInPictureElement===this.element?a.ViewMode.PictureInPicture:a.ViewMode.Inline)},t.prototype.getVideoPlaybackQuality=function(){var e,t;return null==(t=(e=this.element).getVideoPlaybackQuality)?void 0:t.call(e)},Object.defineProperty(t.prototype,"disableRemotePlayback",{set:function(e){this.element.disableRemotePlayback=e},enumerable:!1,configurable:!0}),t.prototype.isPictureInPictureAvailable=function(){if(!this.element)return!1;var e="function"==typeof this.element.webkitSupportsPresentationMode&&this.element.webkitSupportsPresentationMode(o.PictureInPicture)&&"function"==typeof this.element.webkitSetPresentationMode&&!/iP(hone|od)/i.test(navigator.userAgent),t="function"==typeof this.element.requestPictureInPicture&&"function"==typeof document.exitPictureInPicture&&document.pictureInPictureEnabled;return e||t},t.prototype.isPictureInPicture=function(){return!!this.isPictureInPictureAvailable()&&(this.element.webkitPresentationMode===o.PictureInPicture||document.pictureInPictureElement===this.element)},t.prototype.isAirplayActive=function(){return!!this.element.webkitCurrentPlaybackTargetIsWireless},t.prototype.enterPictureInPicture=function(){var e=this;this.isPictureInPictureAvailable()&&(this.element.webkitSetPresentationMode?this.element.webkitSetPresentationMode(o.PictureInPicture):this.element.requestPictureInPicture&&this.element.requestPictureInPicture().catch(function(t){e.context.logger.debug("Request for PiP failed",t)}))},t.prototype.exitPictureInPicture=function(){var e=this;this.isPictureInPicture()&&(this.element.webkitPresentationMode===o.PictureInPicture?this.element.webkitSetPresentationMode(o.Inline):document.pictureInPictureElement===this.element&&document.exitPictureInPicture().catch(function(t){e.context.logger.debug("Exiting of PiP failed",t)}))},t.prototype.webkitSetMediaKeys=function(e){this.element.webkitSetMediaKeys(e)},t}(s.MediaElementWrapper)},85902:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoElementWrapperFactory=void 0;var r=n(88052),i=n(62756),o=n(7387),a=n(21513),s=n(15487),u=n(96907),l=n(76253),c=n(79186);function d(e,t){return{casUse:e,getConstructor:t}}var f=[d(function(){return(0,s.isSafari15orIOS15)()},function(){return u.Safari15VideoElementWrapper}),d(function(){return(0,a.getCapabilities)()[o.CapabilityKey.isSafari]},function(){return l.SafariVideoElementWrapper}),d(function(){return(0,a.getCapabilities)()[o.CapabilityKey.isWpeWebKit]&&r.ModuleManager.has(i.ModuleName.Wpe)},function(){return r.ModuleManager.get(i.ModuleName.Wpe).WpeVideoElementWrapper}),d(function(){return(0,a.getCapabilities)()[o.CapabilityKey.isTizen]&&r.ModuleManager.has(i.ModuleName.Tizen)},function(){return r.ModuleManager.get(i.ModuleName.Tizen).TizenVideoElementWrapper}),d(function(){return(0,a.getCapabilities)()[o.CapabilityKey.isWebOS]&&r.ModuleManager.has(i.ModuleName.Webos)},function(){return r.ModuleManager.get(i.ModuleName.Webos).WebosVideoElementWrapper}),d(function(){return(0,a.getCapabilities)()[o.CapabilityKey.isVidaa]&&r.ModuleManager.has(i.ModuleName.Vidaa)},function(){return r.ModuleManager.get(i.ModuleName.Vidaa).VidaaVideoElementWrapper}),d(function(){return(0,a.getCapabilities)()[o.CapabilityKey.isPlayStation5]&&r.ModuleManager.has(i.ModuleName.PlayStation5)},function(){return r.ModuleManager.get(i.ModuleName.PlayStation5).PlayStation5VideoElementWrapper}),d(function(){return(0,a.getCapabilities)()[o.CapabilityKey.isPlayStation4]&&r.ModuleManager.has(i.ModuleName.PlayStation4)},function(){return r.ModuleManager.get(i.ModuleName.PlayStation4).PlayStation4VideoElementWrapper})];t.VideoElementWrapperFactory=function(){function e(){}return e.createWrappedVideoElement=function(e,t){var n,r;if(t&&t.nodeName&&"video"===t.nodeName.toLowerCase())return new(null!=(r=null==(n=f.find(function(e){return(0,e.casUse)()}))?void 0:n.getConstructor())?r:c.VideoElementWrapper)(e,t)},e}()},50239:function(e,t,n){"use strict";
vendor: 10,239 bytes, line 1
1Object.defineProperty(t,"__esModule",{value:!0}),t.CurrentTimeCache=void 0;var r=n(19274);t.CurrentTimeCache=function(){function e(e){var t=e.eventHandler,n=e.getVideoElementCurrentTime,i=this;this.wib=function(){i.tib=i.uib(),i.vib.addEventListener(r.MediaElementEvent.timeupdate,i.reset),i.vib.addEventListener(r.MediaElementEvent.playing,i.reset)},this.reset=function(){i.vib.removeEventListener(r.MediaElementEvent.timeupdate,i.reset),i.vib.removeEventListener(r.MediaElementEvent.playing,i.reset),i.xib()},this.vib=t,this.uib=n,this.vib.addEventListener(r.MediaElementEvent.primestart,this.wib)}return e.prototype.xib=function(){this.tib=void 0},e.prototype.get=function(){return void 0!==this.tib?this.tib:this.uib()},e.prototype.dispose=function(){this.vib.removeEventListener(r.MediaElementEvent.primestart,this.wib),this.vib.removeEventListener(r.MediaElementEvent.timeupdate,this.reset),this.vib.removeEventListener(r.MediaElementEvent.playing,this.reset),this.xib()},e}()},11103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CurrentTimeObserver=t.MIN_CURRENT_TIME_PROGRESSION=void 0;var r=n(88844),i=n(19274);t.MIN_CURRENT_TIME_PROGRESSION=.01;var o=function(){function e(e,t){var n=this;this.context=e,this.videoElement=t,this.s9=!1,this.u9=Date.now(),this.v9=0,this.w9=function(){!n.context.isDisposed&&n.videoElement&&(n.videoElement.paused||n.videoElement.seeking||Date.now()-n.u9>1e3&&(n.v9++,n.B9()))},this.x9=function(){n.s9=!1,(0,r.clearIntervalIfDefined)(n.r9),n.r9=void 0},this.y9=function(){n.s9=!0,(0,r.clearIntervalIfDefined)(n.r9),n.r9=window.setInterval(n.w9,250)},this.z9=function(){n.v9++},this.A9=function(){if(n.u9=Date.now(),!n.videoElement.paused&&!n.videoElement.seeking){n.s9=!0;var e=n.videoElement.currentTime;e===n.t9?n.v9++:(n.v9=0,n.t9=e)}},this.videoElement.addEventListener(i.MediaElementEvent.pause,this.x9),this.videoElement.addEventListener(i.MediaElementEvent.playing,this.y9),this.videoElement.addEventListener(i.MediaElementEvent.timeupdate,this.A9),this.videoElement.addEventListener(i.MediaElementEvent.waiting,this.z9),this.r9=window.setInterval(this.w9,250)}return e.prototype.dispose=function(){(0,r.clearIntervalIfDefined)(this.r9),this.videoElement.removeEventListener(i.MediaElementEvent.pause,this.x9),this.videoElement.removeEventListener(i.MediaElementEvent.playing,this.y9),this.videoElement.removeEventListener(i.MediaElementEvent.timeupdate,this.A9),this.videoElement.removeEventListener(i.MediaElementEvent.waiting,this.z9)},e.prototype.reset=function(){this.v9=0,this.s9=!1,this.u9=Date.now()},e.prototype.maybePokeVideoElement=function(){var e=this.videoElement.currentTime,n=this.videoElement.duration;n>0&&e>=n?(this.context.logger.debug("[".concat(this.logPrefix,"] Playback has stalled at the end of the stream. Trying to recover...")),this.videoElement.dispatchEvent(new Event(i.MediaElementEvent.ended))):(this.context.logger.debug("[".concat(this.logPrefix,"] Video element is stuck. Trying to recover...")),this.setCurrentTime(e+t.MIN_CURRENT_TIME_PROGRESSION))},e.prototype.setCurrentTime=function(e){try{this.videoElement.currentTime=e}catch(t){this.context.logger.debug("[".concat(this.logPrefix,"] Failed to set currentTime on video element to ").concat(e),t)}},e.prototype.B9=function(){this.v9<=12||(this.v9=0,this.s9?(this.context.logger.debug("[".concat(this.logPrefix,"] currentTime is not progressing from ").concat(this.videoElement.currentTime)),this.maybePokeVideoElement()):this.context.logger.debug("[".concat(this.logPrefix,"] Playback is possibly stuck, but no `playing` event was emitted")))},e}();t.CurrentTimeObserver=o},96907:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.Safari15VideoElementWrapper=void 0;var i=n(19274);function o(e){return 0!==e.buffered.length&&e.getWrappedElement().currentTime>=e.buffered.start(0)}t.Safari15VideoElementWrapper=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.chb=-1,r.dhb=!1,r.ehb=!1,r.fhb=function(){r.chb=r.getWrappedElement().currentTime,r.paused||(r.dhb=!0,r.mediaElementEventHandler.suppressEvent(i.MediaElementEvent.seeked),r.mediaElementEventHandler.suppressEvent(i.MediaElementEvent.timeupdate))},r.ghb=function(){r.ehb=!0},r.hhb=function(){o(r)&&(r.chb=r.getWrappedElement().currentTime,r.dhb&&r.ehb&&!r.getWrappedElement().seeking&&(r.dhb=!1,r.ehb=!1,r.mediaElementEventHandler.clearEventSuppression(i.MediaElementEvent.timeupdate),r.mediaElementEventHandler.clearEventSuppression(i.MediaElementEvent.seeked),r.mediaElementEventHandler.triggerEvent(i.MediaElementEvent.seeked),r.mediaElementEventHandler.triggerEvent(i.MediaElementEvent.timeupdate)))},r.getWrappedElement().addEventListener(i.MediaElementEvent.seeking,r.fhb),r.getWrappedElement().addEventListener(i.MediaElementEvent.seeked,r.ghb),r.getWrappedElement().addEventListener(i.MediaElementEvent.timeupdate,r.hhb),r}return r(t,e),Object.defineProperty(t.prototype,"currentTime",{get:function(){var e=this.currentTimeCache.get();return -1===this.chb&&0!==e&&(this.chb=e),o(this)?e:Math.max(this.chb,0)},set:function(e){this.getWrappedElement().currentTime=e},enumerable:!1,configurable:!0}),t.prototype.load=function(){this.ihb(),e.prototype.load.call(this)},t.prototype.play=function(){return this.ended&&(this.chb=-1),e.prototype.play.call(this)},t.prototype.dispose=function(){this.getWrappedElement().removeEventListener(i.MediaElementEvent.seeking,this.fhb),this.getWrappedElement().removeEventListener(i.MediaElementEvent.seeked,this.ghb),this.getWrappedElement().removeEventListener(i.MediaElementEvent.timeupdate,this.hhb),e.prototype.dispose.call(this)},t.prototype.ihb=function(){this.chb=-1,this.dhb=!1,this.ehb=!1},t}(n(76253).SafariVideoElementWrapper)},55471:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.SafariCurrentTimeObserver=void 0;var i=n(20213),o=n(15487);t.SafariCurrentTimeObserver=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.logPrefix="Safari",t}return r(t,e),t.prototype.maybePokeVideoElement=function(){(this.context.internalPlayer.getStreamType()!==i.StreamType.Progressive||function(){var e;return!!((0,o.isSafari)()&&(null!=(e=(0,o.getSafariVersion)().major)?e:0)>=o.SAFARI_15_MAJOR_VERSION)||!!((0,o.isIOS)()&&(0,o.getIOSVersion)()>=o.IOS_15)}())&&e.prototype.maybePokeVideoElement.call(this)},t}(n(11103).CurrentTimeObserver)},76253:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.SafariVideoElementWrapper=void 0;var i=n(51072),o=n(34841),a=n(19274),s=n(79186),u=n(50239),l=n(11103),c=n(55471);t.SafariVideoElementWrapper=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.khb=!1,r.lhb=!1,r.mhb=-1,r.nhb=!1,r.yib=!1,r.onKeyRequest=function(){r.nhb=!0},r.onPlaying=function(){r.paused||r.khb||(r.khb=!0,r.Cib())},r.maybeTriggerDelayedPlaying=function(){var e,t,n,i=r.mhb,o=r.getWrappedElement().currentTime;if(r.mhb=o,r.lhb&&!r.paused&&!r.seeking){var s=r.readyState>=HTMLMediaElement.HAVE_FUTURE_DATA,u=r.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,c=o>i+l.MIN_CURRENT_TIME_PROGRESSION,d=r.yib&&r.nhb;(r.khb?s:d&&c&&u)&&(r.khb=!1,r.lhb=!1,r.yib=!0,null==(e=r.mediaElementEventHandler)||e.clearEventSuppression(a.MediaElementEvent.playing),null==(t=r.mediaElementEventHandler)||t.triggerEvent(a.MediaElementEvent.playing),null==(n=r.zib)||n.resolve(),r.zib=void 0)}},r.jhb=new c.SafariCurrentTimeObserver(t,n),r.currentTimeCache=new u.CurrentTimeCache({eventHandler:r.eventHandler,getVideoElementCurrentTime:function(){return r.getWrappedElement().currentTime}}),r.Aib(),r}return r(t,e),t.prototype.Aib=function(){this.getWrappedElement().addEventListener(a.MediaElementEvent.timeupdate,this.maybeTriggerDelayedPlaying),this.getWrappedElement().addEventListener(a.MediaElementEvent.playing,this.onPlaying),this.getWrappedElement().addEventListener(a.MediaElementEvent.waitingforkey,this.onKeyRequest),this.getWrappedElement().addEventListener(a.MediaElementEvent.webkitneedkey,this.onKeyRequest)},t.prototype.Bib=function(){this.getWrappedElement().removeEventListener(a.MediaElementEvent.timeupdate,this.maybeTriggerDelayedPlaying),this.getWrappedElement().removeEventListener(a.MediaElementEvent.playing,this.onPlaying),this.getWrappedElement().removeEventListener(a.MediaElementEvent.waitingforkey,this.onKeyRequest),this.getWrappedElement().removeEventListener(a.MediaElementEvent.webkitneedkey,this.onKeyRequest)},t.prototype.Cib=function(){var e;this.lhb=!0,null==(e=this.mediaElementEventHandler)||e.suppressEvent(a.MediaElementEvent.playing)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.currentTimeCache.get()},set:function(e){this.getWrappedElement().currentTime=e}
1,enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.jhb.dispose(),this.currentTimeCache.dispose(),this.Bib(),e.prototype.dispose.call(this)},t.prototype.load=function(){this.Cib(),this.khb=!1,this.nhb=!1,this.yib=!1,this.zib=void 0,this.mhb=-1,this.jhb.reset(),this.currentTimeCache.reset(),e.prototype.load.call(this)},t.prototype.prime=function(){return e.prototype.prime.call(this).then(function(){return new Promise(function(e){return setTimeout(e,0)})})},t.prototype.play=function(){var e,t=this;this.Cib(),this.mhb=this.getWrappedElement().currentTime,this.mediaElementEventHandler.suppressEvent(a.MediaElementEvent.timeupdate,1);var n=this.element.play();return null==n&&(n=i.PlayPromise.new(this.context,this,this.drmHandler)),this.zib=null!=(e=this.zib)?e:new o.Deferred,Promise.race([n.then(function(){return t.maybeTriggerDelayedPlaying()}),this.zib.promise])},t}(s.VideoElementWrapper)}},__webpack_module_cache__={};function __nested_webpack_require_362803__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__nested_webpack_require_362803__),n.exports}__nested_webpack_require_362803__.m=__webpack_modules__,function(){var e=[];__nested_webpack_require_362803__.O=function(t,n,r,i){if(!n){var o=1/0;for(l=0;l<e.length;l++){n=e[l][0],r=e[l][1],i=e[l][2];for(var a=!0,s=0;s<n.length;s++)(!1&i||o>=i)&&Object.keys(__nested_webpack_require_362803__.O).every(function(e){return __nested_webpack_require_362803__.O[e](n[s])})?n.splice(s--,1):(a=!1,i<o&&(o=i));if(a){e.splice(l--,1);var u=r();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,r,i]}}(),function(){__nested_webpack_require_362803__.d=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],i=t[n++];__nested_webpack_require_362803__.o(e,r)?0===i&&n++:0===i?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:i})}else for(var r in t)__nested_webpack_require_362803__.o(t,r)&&!__nested_webpack_require_362803__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){__nested_webpack_require_362803__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}()}(),function(){__nested_webpack_require_362803__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){__nested_webpack_require_362803__.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){__nested_webpack_require_362803__.p=""}(),function(){var e={114:0};__nested_webpack_require_362803__.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,i,o=n[0],a=n[1],s=n[2],u=0;if(o.some(function(t){return 0!==e[t]})){for(r in a)__nested_webpack_require_362803__.o(a,r)&&(__nested_webpack_require_362803__.m[r]=a[r]);if(s)var l=s(__nested_webpack_require_362803__)}try{s&&!l&&(l=s(__nested_webpack_require_362803__))}catch(e){}for(t&&t(n);u<o.length;u++)i=o[u],__nested_webpack_require_362803__.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return __nested_webpack_require_362803__.O(l)},n=self.webpackChunkbitmovin_player=self.webpackChunkbitmovin_player||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var __nested_webpack_exports__=__nested_webpack_require_362803__(86969);return __nested_webpack_require_362803__.O(__nested_webpack_exports__)}()})}()}}]);

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.