From 769f9feb6fb276b17ca2743681f384ddfb99d54c Mon Sep 17 00:00:00 2001 From: Florent Bouisset Date: Wed, 16 Oct 2024 18:45:10 +0200 Subject: [PATCH] update version to 3.33.4 --- VERSION | 2 +- dist/mpd-parser.wasm | Bin 123697 -> 122649 bytes dist/rx-player.js | 779 ++++++++++++++++++++++--------------- dist/rx-player.min.js | 2 +- package-lock.json | 4 +- package.json | 2 +- sonar-project.properties | 2 +- src/core/api/public_api.ts | 4 +- 8 files changed, 465 insertions(+), 330 deletions(-) diff --git a/VERSION b/VERSION index ddd7c8a7ac..594f7183cf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.33.3 +3.33.4 diff --git a/dist/mpd-parser.wasm b/dist/mpd-parser.wasm index 4cfdd816faee8c88db89ffded322642850c06777..b4ea625ae14d6d9d4a17e480fcc7659d463839c9 100644 GIT binary patch literal 122649 zcmeFa4Y*}zb>Fu?&gVVn+=(JH&AkkSN%M3B_pJTyz2A?u*1Nvm^}aiM`+L48&$29k_w?@K+`0VR z-Q~IVCsR>&ch3Jil=9QnkBfLR%kC~8_QO3F>+N^|pdUq1chk`$RPp4B9MOo@kzwGpiZds}%%k!)( zx&rw(D9duVGAbE6<1dPFkDp1_qlTR4JDqOU$+J$@rMUgK%H5Lc*7Cg5&F{%q7?`?nR?eDp#EQZ(SS;|MVgNMHDH z`n%uqU;MuHyZ_KV*MIvBcfH|_zxPi5to-F4>fQ4bMczGEtQYH5c03!T@^l9%jW>=I z*}UM-EU${x@nxy94)^n_v#XPhDhfLDQU$5Ashi#O;F(#c>ZDE@RNYjbnRgFV<;Lxk zf~)M-s#BHe+KoHTOv);s_C~7N@0EHlrt)OwNf%^QjiHRZRew5~8$g}jpXrhQaEg}E!tRbi2CbcGoeu8q>a{fWE-ET zAN_1L?PsI(DFCj&QeXeY0SKbv!RCw}wk@d3^K4^Q77B2 znY&q4oPMruMd)gq1lt8&qrb)UI@Mei8}p`mI=B(-w|(5wEgII#+k4f%Hlm~F3n-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)|EN7yu%~*nFDMivN!7EoxxRt3vD^MQ9X7d`b;Ju z>jlmUWLQCfIR9J5#8?Ns8jxH;5(+s4W$-~6Yqm7)V>-wlh~!7c6M3Rg4j_l@0ot@{ z0TQPyb6~}B2!v1(kj@6_x8aH4*VEyN*zGmtdXSyK6@Y{U>M^7tz7kgL>oHd_NGtus zN?J=xTW{Zq)znfqRtN4BEpW`_>~aEyMo20U~R!3t=W6=SP2n{oislW z%NrVEHE4cLP^clO-yZ5ee2kNJ_FCCfkj`Q~h~6-O%alWnhMDHqW%=y3yxAi<&Zf{@`V8#$n7R&oD+1&@+PpskoMAOb| zG+jUnlqMr91G#xqd?+477uqiEL3YQ3+Z0&tB&y4rG-oo|4H1B|8EunCM$DPy0vA3> zBF-L%oa^9b?}SCb=;E%r{ zmt$0d;p+r*QGZiXgRUs90hgLD!)&B2!L;NPWyHnjjQJ@P{H#eHj{C%lf`=Q8+ z7ZKR|U|PxGKFEF9LQ`Fl1BX30jieo}Y1cAIGG*n0hODL4HSiJ~IU;uaA00YUJP5Q^ z>xKvaAx>ZnVA;-sEOM_2fIS_t$A7n(LbbI8CAOnFBljR=UqWmw5=Mx7g-6yNa!*4X zI3o5MsTT<&!~uk)A+pF>doK{O{~`MWB8#kh#I_^lA#q3=B9D}boU@So8FKbV;t(0+ z9*dNV)PaN%IV6mf{|VAl5rHT`!9YLR1EYI=p)c95E{mABak4_ULYMHQy^!cOF*GOcY*E$l>;H4 zBQUPe+WWaavzt4aK(z(4k705KCq`6QkZ5{CIAf#OAPJcUB0<{52hBjcX$#8X6!+p} yv66q>onpax({5?m-O}>=wxdKjmc43O*%9$@k0(;lQXDSJDlcvCOt!&0Q~n>ZGr~>) diff --git a/dist/rx-player.js b/dist/rx-player.js index 382d79b0ef..be75eb0783 100644 --- a/dist/rx-player.js +++ b/dist/rx-player.js @@ -60,6 +60,7 @@ var READY_STATES = { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ A7: function() { return /* binding */ isPlayStation5; }, /* harmony export */ Fr: function() { return /* binding */ isSafariDesktop; }, +/* harmony export */ NV: function() { return /* binding */ isPhilipsNetTv; }, /* harmony export */ P5: function() { return /* binding */ isPanasonic; }, /* harmony export */ Pb: function() { return /* binding */ isSamsungBrowser; }, /* harmony export */ ZN: function() { return /* binding */ isTizen; }, @@ -69,7 +70,8 @@ var READY_STATES = { /* harmony export */ hF: function() { return /* binding */ isWebOs; }, /* harmony export */ lw: function() { return /* binding */ isIE11; }, /* harmony export */ op: function() { return /* binding */ isEdgeChromium; }, -/* harmony export */ qe: function() { return /* binding */ isXbox; } +/* harmony export */ qe: function() { return /* binding */ isXbox; }, +/* harmony export */ x1: function() { return /* binding */ isA1KStb40xx; } /* harmony export */ }); /* unused harmony exports isWebOs2021, isWebOs2022 */ /* harmony import */ var _is_node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2186); @@ -113,10 +115,14 @@ var isWebOs2021 = false; var isWebOs2022 = false; /** `true` for Panasonic devices. */ var isPanasonic = false; +/** `true` we're relying on Philips's NetTv browser. */ +var isPhilipsNetTv = false; /** `true` for the PlayStation 5 game console. */ var isPlayStation5 = false; /** `true` for the Xbox game consoles. */ var isXbox = false; +/** `true` for specific A1 STB: KSTB 40xx from Kaon Media. */ +var isA1KStb40xx = false; (function findCurrentBrowser() { var _a, _b, _c; if (_is_node__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A) { @@ -168,10 +174,14 @@ var isXbox = false; } else if (/[Ww]eb[O0]S.TV-2021/.test(navigator.userAgent) || /[Cc]hr[o0]me\/79/.test(navigator.userAgent)) { isWebOs2021 = true; } + } else if (navigator.userAgent.indexOf("NETTV") !== -1 && navigator.userAgent.indexOf("Philips") !== -1) { + isPhilipsNetTv = true; } else if (/[Pp]anasonic/.test(navigator.userAgent)) { isPanasonic = true; } else if (navigator.userAgent.indexOf("Xbox") !== -1) { isXbox = true; + } else if (navigator.userAgent.indexOf("Model/a1-kstb40xx")) { + isA1KStb40xx = true; } })(); @@ -338,17 +348,6 @@ function eventPrefixed(eventNames, prefixes) { })); }, []); } -/** - * Returns a function allowing to add event listeners for particular event(s) - * optionally automatically adding browser prefixes if needed. - * @param {Array.} eventNames - The event(s) to listen to. If multiple - * events are set, the event listener will be triggered when any of them emits. - * @param {Array.|undefined} [prefixes] - Optional vendor prefixes with - * which the event might also be sent. If not defined, default prefixes might be - * tested. - * @returns {Function} - Returns function allowing to easily add a callback to - * be triggered when that event is emitted on a given event target. - */ function createCompatibleEventListener(eventNames, prefixes) { var mem; var prefixedEvents = eventPrefixed(eventNames, prefixes); @@ -726,6 +725,43 @@ var isNode = typeof window === "undefined"; /***/ }), +/***/ 7913: +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _browser_detection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(443); +/** + * Copyright 2015 CANAL+ Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * On some devices (right now only seen on Tizen), seeking through the + * `currentTime` property can lead to the browser re-seeking once the + * segments have been loaded to improve seeking performances (for + * example, by seeking right to an intra video frame). + * + * This can lead to conflicts with the RxPlayer code. + * + * This boolean is only `true` on the devices where this behavior has been + * observed. + */ +var isSeekingApproximate = _browser_detection__WEBPACK_IMPORTED_MODULE_0__/* .isTizen */ .ZN; +/* harmony default export */ __webpack_exports__.A = (isSeekingApproximate); + +/***/ }), + /***/ 7402: /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { @@ -1814,7 +1850,7 @@ var DEFAULT_CONFIG = { * Defined in order of importance (first will be tested first etc.) * @type {Array.} */ - EME_DEFAULT_VIDEO_CODECS: ["video/mp4;codecs=\"avc1.4d401e\"", "video/mp4;codecs=\"avc1.42e01e\"", "video/webm;codecs=\"vp8\""], + EME_DEFAULT_VIDEO_CODECS: ['video/mp4;codecs="avc1.4d401e"', 'video/mp4;codecs="avc1.42e01e"', 'video/webm;codecs="vp8"'], /** * Codecs used in the audioCapabilities of the MediaKeySystemConfiguration * (DRM). @@ -1822,7 +1858,7 @@ var DEFAULT_CONFIG = { * Defined in order of importance (first will be tested first etc.) * @type {Array.} */ - EME_DEFAULT_AUDIO_CODECS: ["audio/mp4;codecs=\"mp4a.40.2\"", "audio/webm;codecs=opus"], + EME_DEFAULT_AUDIO_CODECS: ['audio/mp4;codecs="mp4a.40.2"', "audio/webm;codecs=opus"], /** * Robustnesses used in the {audio,video}Capabilities of the * MediaKeySystemConfiguration (DRM). @@ -2151,21 +2187,6 @@ function deepMerge(target) { return deepMerge.apply(void 0, [target].concat(sources)); } ;// CONCATENATED MODULE: ./src/config.ts -/** - * Copyright 2015 CANAL+ Group - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ var ConfigHandler = /*#__PURE__*/function () { @@ -3124,6 +3145,8 @@ var media_error = __webpack_require__(5575); var assert = __webpack_require__(7994); // EXTERNAL MODULE: ./src/utils/is_null_or_undefined.ts var is_null_or_undefined = __webpack_require__(6787); +// EXTERNAL MODULE: ./src/utils/object_assign.ts +var object_assign = __webpack_require__(8935); // EXTERNAL MODULE: ./src/compat/browser_detection.ts var browser_detection = __webpack_require__(443); // EXTERNAL MODULE: ./src/compat/event_listeners.ts @@ -3735,9 +3758,7 @@ function getWebKitFairPlayInitData(initDataBytes, serverCertificateBytes) { var contentIdStr = skdIndexInInitData > -1 ? initDataUri.substring(skdIndexInInitData + 6) : initDataUri; var id = (0,string_parsing/* strToUtf16LE */.kY)(contentIdStr); var offset = 0; - var res = new Uint8Array(initData.byteLength - /* id length */ + 4 + id.byteLength - /* certificate length */ + 4 + serverCertificate.byteLength); + var res = new Uint8Array(initData.byteLength + /* id length */4 + id.byteLength + /* certificate length */4 + serverCertificate.byteLength); res.set(initData); offset += initData.length; res.set((0,byte_parsing/* itole4 */.Wz)(id.byteLength), offset); @@ -4003,6 +4024,7 @@ function getWebKitMediaKeysCallbacks() { + /** * Automatically detect and set which EME implementation should be used in the * current platform. @@ -4036,8 +4058,8 @@ function getEmeApiImplementation(preferredApiType) { var isTypeSupported; var createCustomMediaKeys; if (preferredApiType === "webkit" && WebKitMediaKeysConstructor !== undefined) { - onEncrypted = (0,event_listeners/* createCompatibleEventListener */.jf)(["needkey"]); var callbacks = getWebKitMediaKeysCallbacks(); + onEncrypted = createOnEncryptedForWebkit(); isTypeSupported = callbacks.isTypeSupported; createCustomMediaKeys = callbacks.createCustomMediaKeys; setMediaKeys = callbacks.setMediaKeys; @@ -4053,7 +4075,7 @@ function getEmeApiImplementation(preferredApiType) { implementation = "older-webkit"; // This is for WebKit with prefixed EME api } else if (WebKitMediaKeysConstructor !== undefined) { - onEncrypted = (0,event_listeners/* createCompatibleEventListener */.jf)(["needkey"]); + onEncrypted = createOnEncryptedForWebkit(); var _callbacks2 = getWebKitMediaKeysCallbacks(); isTypeSupported = _callbacks2.isTypeSupported; createCustomMediaKeys = _callbacks2.createCustomMediaKeys; @@ -4140,6 +4162,22 @@ function getEmeApiImplementation(preferredApiType) { implementation: implementation }; } +/** + * Create an event listener for the "webkitneedkey" event + * @returns + */ +function createOnEncryptedForWebkit() { + var compatibleEventListener = (0,event_listeners/* createCompatibleEventListener */.jf)(["needkey"], undefined /* prefixes */); + var onEncrypted = function onEncrypted(target, listener, cancelSignal) { + compatibleEventListener(target, function (event) { + var patchedEvent = (0,object_assign/* default */.A)(event, { + forceSessionRecreation: true + }); + listener(patchedEvent); + }, cancelSignal); + }; + return onEncrypted; +} /** * Set the given MediaKeys on the given HTMLMediaElement. * Emits null when done then complete. @@ -4245,6 +4283,7 @@ var PSSH_TO_INTEGER = (0,byte_parsing/* be4toi */.mq)((0,string_parsing/* strToU + /** * Take in input initialization data from an encrypted event and generate the * corresponding array of initialization data values from it. @@ -4334,8 +4373,9 @@ function isPSSHAlreadyEncountered(encounteredPSSHs, pssh) { */ function getInitData(encryptedEvent) { var initData = encryptedEvent.initData, - initDataType = encryptedEvent.initDataType; - if (initData == null) { + initDataType = encryptedEvent.initDataType, + forceSessionRecreation = encryptedEvent.forceSessionRecreation; + if ((0,is_null_or_undefined/* default */.A)(initData)) { log/* default */.A.warn("Compat: No init data found on media encrypted event."); return null; } @@ -4343,7 +4383,8 @@ function getInitData(encryptedEvent) { var values = getInitializationDataValues(initDataBytes); return { type: initDataType, - values: values + values: values, + forceSessionRecreation: forceSessionRecreation }; } // EXTERNAL MODULE: ./src/config.ts + 2 modules @@ -4407,11 +4448,11 @@ function attachMediaKeys(_x, _x2, _x3) { } function _attachMediaKeys() { _attachMediaKeys = (0,asyncToGenerator/* default */.A)( /*#__PURE__*/regenerator_default().mark(function _callee(mediaElement, _ref, cancelSignal) { - var emeImplementation, keySystemOptions, loadedSessionsStore, mediaKeySystemAccess, mediaKeys, previousState, closeAllSessions; + var emeImplementation, keySystemOptions, askedConfiguration, loadedSessionsStore, mediaKeySystemAccess, mediaKeys, previousState, closeAllSessions; return regenerator_default().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: - emeImplementation = _ref.emeImplementation, keySystemOptions = _ref.keySystemOptions, loadedSessionsStore = _ref.loadedSessionsStore, mediaKeySystemAccess = _ref.mediaKeySystemAccess, mediaKeys = _ref.mediaKeys; + emeImplementation = _ref.emeImplementation, keySystemOptions = _ref.keySystemOptions, askedConfiguration = _ref.askedConfiguration, loadedSessionsStore = _ref.loadedSessionsStore, mediaKeySystemAccess = _ref.mediaKeySystemAccess, mediaKeys = _ref.mediaKeys; previousState = media_keys_infos_store/* default */.A.getState(mediaElement); closeAllSessions = previousState !== null && previousState.loadedSessionsStore !== loadedSessionsStore ? previousState.loadedSessionsStore.closeAllSessions() : Promise.resolve(); _context.next = 5; @@ -4428,7 +4469,8 @@ function _attachMediaKeys() { keySystemOptions: keySystemOptions, mediaKeySystemAccess: mediaKeySystemAccess, mediaKeys: mediaKeys, - loadedSessionsStore: loadedSessionsStore + loadedSessionsStore: loadedSessionsStore, + askedConfiguration: askedConfiguration }); if (!(mediaElement.mediaKeys === mediaKeys)) { _context.next = 10; @@ -4859,7 +4901,10 @@ function _createOrLoadSession() { throw cancelSignal.cancellationError; case 16: _context.next = 18; - return cleanOldLoadedSessions(loadedSessionsStore, maxSessionCacheSize); + return cleanOldLoadedSessions(loadedSessionsStore, + // Account for the next session we will be creating + // Note that `maxSessionCacheSize < 0 has special semantic (no limit)` + maxSessionCacheSize <= 0 ? maxSessionCacheSize : maxSessionCacheSize - 1); case 18: if (!(cancelSignal.cancellationError !== null)) { _context.next = 20; @@ -4898,11 +4943,17 @@ function _createOrLoadSession() { * - (2022-11-21): WebOS (LG TVs), for some encrypted contents, just * rebuffered indefinitely when loading a content already-loaded on the * HTMLMediaElement. + * - (2024-08-23): Seen on Philips 2024 and 2023 in: + * https://github.com/canalplus/rx-player/issues/1464 + * - (2024-09-04): Another case seen on an "A1" set-top box model made by + * Kaonmedia we will call the KSTB40xx. + * It may share the problematic with other devices, but we have only seen + * the problem on this one for now. * * @returns {boolean} */ function canReuseMediaKeys() { - return !browser_detection/* isWebOs */.hF && !browser_detection/* isPanasonic */.P5; + return !browser_detection/* isWebOs */.hF && !browser_detection/* isPhilipsNetTv */.NV && !browser_detection/* isPanasonic */.P5 && !browser_detection/* isA1KStb40xx */.x1; } ;// CONCATENATED MODULE: ./src/compat/should_renew_media_key_system_access.ts /** @@ -4979,7 +5030,7 @@ function canRelyOnRequestMediaKeySystemAccess(keySystem) { * the CDM is capable of creating a session and generating a request. */ var DUMMY_PLAY_READY_HEADER = /* eslint-disable-next-line max-len */ -"16AESCTRckB07BNLskeUq0qd83fTbA==yYIPDBca1kmMfL60IsfgAQ==312_4024_2018127108U/tsUYRgMzw="; +'16AESCTRckB07BNLskeUq0qd83fTbA==yYIPDBca1kmMfL60IsfgAQ==312_4024_2018127108U/tsUYRgMzw='; /** * Generate the "cenc" init data for playready from the PlayreadyHeader string. * @param {string} playreadyHeader - String representing the PlayreadyHeader XML. @@ -5004,8 +5055,7 @@ function generatePlayReadyInitData(playreadyHeader) { // 2 bytes for record type recordLength, // 2 bytes for record length - recordValueEncoded // X bytes for record value - ); + recordValueEncoded); /** the systemId is define at https://dashif.org/identifiers/content_protection/ */ var playreadySystemId = (0,string_parsing/* hexToBytes */.aT)("9a04f07998404286ab92e65be0885f95"); return generateInitData(playReadyObject, playreadySystemId); @@ -5032,8 +5082,7 @@ function generateInitData(data, systemId) { // 16 bytes for the systemId sizeOfData, // 4 bytes for the data size - data // X bytes for data - ); + data); } // EXTERNAL MODULE: ./src/utils/flat_map.ts var flat_map = __webpack_require__(3262); @@ -5068,11 +5117,12 @@ var flat_map = __webpack_require__(3262); /** * @param {Array.} keySystems + * @param {Object} askedConfiguration * @param {MediaKeySystemAccess} currentKeySystemAccess * @param {Object} currentKeySystemOptions * @returns {null|Object} */ -function checkCachedMediaKeySystemAccess(keySystems, currentKeySystemAccess, currentKeySystemOptions) { +function checkCachedMediaKeySystemAccess(keySystems, askedConfiguration, currentKeySystemAccess, currentKeySystemOptions) { var mksConfiguration = currentKeySystemAccess.getConfiguration(); if (shouldRenewMediaKeySystemAccess() || mksConfiguration == null) { return null; @@ -5093,7 +5143,8 @@ function checkCachedMediaKeySystemAccess(keySystems, currentKeySystemAccess, cur if (firstCompatibleOption != null) { return { keySystemOptions: firstCompatibleOption, - keySystemAccess: currentKeySystemAccess + keySystemAccess: currentKeySystemAccess, + askedConfiguration: askedConfiguration }; } return null; @@ -5215,6 +5266,10 @@ function buildKeySystemConfigurations(ksName, ksType, keySystem) { persistentState: persistentState, sessionTypes: sessionTypes }; + if (!(0,is_null_or_undefined/* default */.A)(keySystem.audioRobustnesses) || !(0,is_null_or_undefined/* default */.A)(keySystem.videoRobustnesses)) { + // If the user specifically asked for robustnesses, we don't want to try without them + return [wantedMediaKeySystemConfiguration]; + } return [wantedMediaKeySystemConfiguration, // Some legacy implementations have issues with `audioCapabilities` and // `videoCapabilities`, so we're including a supplementary @@ -5247,13 +5302,14 @@ function getMediaKeySystemAccess(mediaElement, keySystemsConfigs, cancelSignal) if (eme.implementation === currentState.emeImplementation.implementation) { // Fast way to find a compatible keySystem if the currently loaded // one as exactly the same compatibility options. - var cachedKeySystemAccess = checkCachedMediaKeySystemAccess(keySystemsConfigs, currentState.mediaKeySystemAccess, currentState.keySystemOptions); + var cachedKeySystemAccess = checkCachedMediaKeySystemAccess(keySystemsConfigs, currentState.askedConfiguration, currentState.mediaKeySystemAccess, currentState.keySystemOptions); if (cachedKeySystemAccess !== null) { log/* default */.A.info("DRM: Found cached compatible keySystem"); return Promise.resolve({ type: "reuse-media-key-system-access", value: { mediaKeySystemAccess: cachedKeySystemAccess.keySystemAccess, + askedConfiguration: cachedKeySystemAccess.askedConfiguration, options: cachedKeySystemAccess.keySystemOptions } }); @@ -5309,7 +5365,7 @@ function getMediaKeySystemAccess(mediaElement, keySystemsConfigs, cancelSignal) } function _recursivelyTestKeySystems() { _recursivelyTestKeySystems = (0,asyncToGenerator/* default */.A)( /*#__PURE__*/regenerator_default().mark(function _callee(index) { - var _keySystemsType$index, keyName, keyType, keySystemOptions, keySystemConfigurations, keySystemAccess; + var _keySystemsType$index, keyName, keyType, keySystemOptions, keySystemConfigurations, keySystemAccess, configIdx, keySystemConfiguration; return regenerator_default().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: @@ -5328,35 +5384,47 @@ function getMediaKeySystemAccess(mediaElement, keySystemsConfigs, cancelSignal) _keySystemsType$index = keySystemsType[index], keyName = _keySystemsType$index.keyName, keyType = _keySystemsType$index.keyType, keySystemOptions = _keySystemsType$index.keySystemOptions; keySystemConfigurations = buildKeySystemConfigurations(keyName, keyType, keySystemOptions); log/* default */.A.debug("DRM: Request keysystem access " + keyType + "," + (index + 1 + " of " + keySystemsType.length)); - _context.prev = 7; - _context.next = 10; - return testKeySystem(keyType, keySystemConfigurations); - case 10: + configIdx = 0; + case 8: + if (!(configIdx < keySystemConfigurations.length)) { + _context.next = 26; + break; + } + keySystemConfiguration = keySystemConfigurations[configIdx]; + _context.prev = 10; + _context.next = 13; + return testKeySystem(keyType, [keySystemConfiguration]); + case 13: keySystemAccess = _context.sent; log/* default */.A.info("DRM: Found compatible keysystem", keyType, index + 1); return _context.abrupt("return", { type: "create-media-key-system-access", value: { options: keySystemOptions, + askedConfiguration: keySystemConfiguration, mediaKeySystemAccess: keySystemAccess } }); - case 15: - _context.prev = 15; - _context.t0 = _context["catch"](7); - log/* default */.A.debug("DRM: Rejected access to keysystem", keyType, index + 1); + case 18: + _context.prev = 18; + _context.t0 = _context["catch"](10); + log/* default */.A.debug("DRM: Rejected access to keysystem", keyType, index + 1, configIdx); if (!(cancelSignal.cancellationError !== null)) { - _context.next = 20; + _context.next = 23; break; } throw cancelSignal.cancellationError; - case 20: + case 23: + configIdx++; + _context.next = 8; + break; + case 26: return _context.abrupt("return", recursivelyTestKeySystems(index + 1)); - case 21: + case 27: case "end": return _context.stop(); } - }, _callee, null, [[7, 15]]); + }, _callee, null, [[10, 18]]); })); return _recursivelyTestKeySystems.apply(this, arguments); } @@ -5480,7 +5548,7 @@ function patchInitData(initData) { } var currentPSSH = initData.subarray(offset, offset + len); // yep - if (initData[offset + 12] === 0x10 && initData[offset + 13] === 0x77 && initData[offset + 14] === 0xEF && initData[offset + 15] === 0xEC && initData[offset + 16] === 0xC0 && initData[offset + 17] === 0xB2 && initData[offset + 18] === 0x4D && initData[offset + 19] === 0x02 && initData[offset + 20] === 0xAC && initData[offset + 21] === 0xE3 && initData[offset + 22] === 0x3C && initData[offset + 23] === 0x1E && initData[offset + 24] === 0x52 && initData[offset + 25] === 0xE2 && initData[offset + 26] === 0xFB && initData[offset + 27] === 0x4B) { + if (initData[offset + 12] === 0x10 && initData[offset + 13] === 0x77 && initData[offset + 14] === 0xef && initData[offset + 15] === 0xec && initData[offset + 16] === 0xc0 && initData[offset + 17] === 0xb2 && initData[offset + 18] === 0x4d && initData[offset + 19] === 0x02 && initData[offset + 20] === 0xac && initData[offset + 21] === 0xe3 && initData[offset + 22] === 0x3c && initData[offset + 23] === 0x1e && initData[offset + 24] === 0x52 && initData[offset + 25] === 0xe2 && initData[offset + 26] === 0xfb && initData[offset + 27] === 0x4b) { var cencOffsets = (0,get_box/* getNextBoxOffsets */.fP)(currentPSSH); var version = cencOffsets === null ? undefined : currentPSSH[cencOffsets[1]]; log/* default */.A.info("Compat: CENC PSSH found with version", version); @@ -5535,7 +5603,7 @@ function generateKeyRequest(session, initializationDataType, initializationData) // a rejected promise with a TypeError in that case). // Retry with a default "cenc" value for initialization data type if // we're in that condition. - log/* default */.A.warn("Compat: error while calling `generateRequest` with an empty " + "initialization data type. Retrying with a default \"cenc\" value.", error); + log/* default */.A.warn("Compat: error while calling `generateRequest` with an empty " + 'initialization data type. Retrying with a default "cenc" value.', error); return session.generateRequest("cenc", patchedInit); }); } @@ -7276,7 +7344,7 @@ function getMediaKeysInfos(_x, _x2, _x3) { */ function _getMediaKeysInfos() { _getMediaKeysInfos = (0,asyncToGenerator/* default */.A)( /*#__PURE__*/regenerator_default().mark(function _callee(mediaElement, keySystemsConfigs, cancelSignal) { - var evt, _evt$value, options, mediaKeySystemAccess, currentState, persistentSessionsStore, _mediaKeys, _loadedSessionsStore, mediaKeys, loadedSessionsStore; + var evt, _evt$value, options, mediaKeySystemAccess, askedConfiguration, currentState, persistentSessionsStore, _mediaKeys, _loadedSessionsStore, mediaKeys, loadedSessionsStore; return regenerator_default().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: @@ -7290,7 +7358,7 @@ function _getMediaKeysInfos() { } throw cancelSignal.cancellationError; case 5: - _evt$value = evt.value, options = _evt$value.options, mediaKeySystemAccess = _evt$value.mediaKeySystemAccess; + _evt$value = evt.value, options = _evt$value.options, mediaKeySystemAccess = _evt$value.mediaKeySystemAccess, askedConfiguration = _evt$value.askedConfiguration; currentState = media_keys_infos_store/* default */.A.getState(mediaElement); persistentSessionsStore = createPersistentSessionsStorage(options); if (!(canReuseMediaKeys() && currentState !== null && evt.type === "reuse-media-key-system-access")) { @@ -7307,6 +7375,7 @@ function _getMediaKeysInfos() { return _context.abrupt("return", { mediaKeys: _mediaKeys, mediaKeySystemAccess: mediaKeySystemAccess, + askedConfiguration: askedConfiguration, stores: { loadedSessionsStore: _loadedSessionsStore, persistentSessionsStore: persistentSessionsStore @@ -7323,6 +7392,7 @@ function _getMediaKeysInfos() { return _context.abrupt("return", { mediaKeys: mediaKeys, mediaKeySystemAccess: mediaKeySystemAccess, + askedConfiguration: askedConfiguration, stores: { loadedSessionsStore: loadedSessionsStore, persistentSessionsStore: persistentSessionsStore @@ -7805,6 +7875,7 @@ function SessionEventsListener(session, keySystemOptions, keySystem, callbacks, session.closed.then(function () { return manualCanceller.cancel(); })["catch"](function (err) { + // Should never happen if (cancelSignal.isCancelled()) { return; } @@ -8602,7 +8673,8 @@ var ContentDecryptor = /*#__PURE__*/function (_EventEmitter) { var options = mediaKeysInfo.options, mediaKeys = mediaKeysInfo.mediaKeys, mediaKeySystemAccess = mediaKeysInfo.mediaKeySystemAccess, - stores = mediaKeysInfo.stores; + stores = mediaKeysInfo.stores, + askedConfiguration = mediaKeysInfo.askedConfiguration; var shouldDisableLock = options.disableMediaKeysAttachmentLock === true; if (shouldDisableLock) { this._stateData = { @@ -8626,6 +8698,7 @@ var ContentDecryptor = /*#__PURE__*/function (_EventEmitter) { loadedSessionsStore: stores.loadedSessionsStore, mediaKeySystemAccess: mediaKeySystemAccess, mediaKeys: mediaKeys, + askedConfiguration: askedConfiguration, keySystemOptions: options }; log/* default */.A.debug("DRM: Attaching current MediaKeys"); @@ -8869,7 +8942,7 @@ var ContentDecryptor = /*#__PURE__*/function (_EventEmitter) { if (options.persistentLicense !== true) { wantedSessionType = "temporary"; } else if (!canCreatePersistentSession(mediaKeySystemAccess)) { - log/* default */.A.warn("DRM: Cannot create \"persistent-license\" session: not supported"); + log/* default */.A.warn('DRM: Cannot create "persistent-license" session: not supported'); wantedSessionType = "temporary"; } else { wantedSessionType = "persistent-license"; @@ -9024,6 +9097,21 @@ var ContentDecryptor = /*#__PURE__*/function (_EventEmitter) { if (compatibleSessionInfo === undefined) { return false; } + /** + * On Safari using Directfile, the old EME implementation triggers + * the "webkitneedkey" event instead of "encrypted". There's an issue in + * Safari where "webkitneedkey" fires too early before all tracks are added + * from an HLS playlist. + * Safari incorrectly assumes some keys are missing for these tracks, + * leading to repeated "webkitneedkey" events. Because RxPlayer recognizes + * it already has a session for these keys and ignores the events, + * the content remains frozen. To resolve this, the session is re-created. + */ + var forceSessionRecreation = initializationData.forceSessionRecreation; + if (forceSessionRecreation === true) { + this.removeSessionForInitData(initializationData, mediaKeysData); + return false; + } // Check if the compatible session is blacklisted var blacklistedSessionError = compatibleSessionInfo.blacklistedSessionError; if (!(0,is_null_or_undefined/* default */.A)(blacklistedSessionError)) { @@ -9095,6 +9183,39 @@ var ContentDecryptor = /*#__PURE__*/function (_EventEmitter) { } return false; } + /** + * Remove the session corresponding to the initData provided, and close it. + * It does nothing if no session was found for this initData. + * @param {Object} initData : The initialization data corresponding to the session + * that need to be removed + * @param {Object} mediaKeysData : The media keys data + */; + _proto.removeSessionForInitData = function removeSessionForInitData(initData, mediaKeysData) { + var stores = mediaKeysData.stores; + /** Remove the session and close it from the loadedSessionStore */ + var entry = stores.loadedSessionsStore.reuse(initData); + if (entry !== null) { + stores.loadedSessionsStore.closeSession(entry.mediaKeySession)["catch"](function () { + return log/* default */.A.error("DRM: Cannot close the session from the loaded session store"); + }); + } + /** + * If set, a currently-used key session is already compatible to this + * initialization data. + */ + var compatibleSessionInfo = (0,array_find/* default */.A)(this._currentSessions, function (x) { + return x.record.isCompatibleWith(initData); + }); + if (compatibleSessionInfo === undefined) { + return; + } + /** Remove the session from the currentSessions */ + var indexOf = this._currentSessions.indexOf(compatibleSessionInfo); + if (indexOf !== -1) { + log/* default */.A.debug("DRM: A session from a processed init is removed " + "due to forceSessionRecreation policy."); + this._currentSessions.splice(indexOf, 1); + } + } /** * Callback that should be called if an error that made the current * `ContentDecryptor` instance unusable arised. @@ -9609,7 +9730,7 @@ var currentMediaState = new WeakMap(); /* harmony import */ var _utils_get_loaded_reference__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(5097); /* harmony import */ var _utils_initial_seek_and_play__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(107); /* harmony import */ var _utils_initialize_content_decryption__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6899); -/* harmony import */ var _utils_rebuffering_controller__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3108); +/* harmony import */ var _utils_rebuffering_controller__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3137); /* harmony import */ var _utils_throw_on_media_error__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8345); /** @@ -9839,21 +9960,27 @@ function getDirectFileInitialTime(mediaElement, startAt) { } var duration = mediaElement.duration; if (typeof startAt.fromLastPosition === "number") { - if ((0,_utils_is_null_or_undefined__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A)(duration) || !isFinite(duration)) { - _log__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.warn("startAt.fromLastPosition set but no known duration, " + "beginning at 0."); - return 0; + if (!(0,_utils_is_null_or_undefined__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A)(duration) && isFinite(duration)) { + return Math.max(0, duration + startAt.fromLastPosition); } - return Math.max(0, duration + startAt.fromLastPosition); + if (mediaElement.seekable.length > 0) { + var lastSegmentEnd = mediaElement.seekable.end(mediaElement.seekable.length - 1); + if (isFinite(lastSegmentEnd)) { + return Math.max(0, lastSegmentEnd + startAt.fromLastPosition); + } + } + _log__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.warn("Init: startAt.fromLastPosition set but no known duration, " + "it may be too soon to seek"); + return undefined; } else if (typeof startAt.fromLivePosition === "number") { var livePosition = mediaElement.seekable.length > 0 ? mediaElement.seekable.end(0) : duration; if ((0,_utils_is_null_or_undefined__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A)(livePosition)) { - _log__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.warn("startAt.fromLivePosition set but no known live position, " + "beginning at 0."); + _log__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.warn("Init: startAt.fromLivePosition set but no known live position, " + "beginning at 0."); return 0; } return Math.max(0, livePosition + startAt.fromLivePosition); } else if (startAt.percentage != null) { if ((0,_utils_is_null_or_undefined__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A)(duration) || !isFinite(duration)) { - _log__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.warn("startAt.percentage set but no known duration, " + "beginning at 0."); + _log__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.warn("Init: startAt.percentage set but no known duration, " + "beginning at 0."); return 0; } var percentage = startAt.percentage; @@ -12757,9 +12884,9 @@ var ManifestFetcher = /*#__PURE__*/function (_EventEmitter) { var externalClockOffset = manifest.clockOffset; if (unsafeMode) { this._consecutiveUnsafeMode += 1; - log/* default */.A.info("Init: Refreshing the Manifest in \"unsafeMode\" for the " + String(this._consecutiveUnsafeMode) + " consecutive time."); + log/* default */.A.info('Init: Refreshing the Manifest in "unsafeMode" for the ' + String(this._consecutiveUnsafeMode) + " consecutive time."); } else if (this._consecutiveUnsafeMode > 0) { - log/* default */.A.info("Init: Not parsing the Manifest in \"unsafeMode\" anymore after " + String(this._consecutiveUnsafeMode) + " consecutive times."); + log/* default */.A.info('Init: Not parsing the Manifest in "unsafeMode" anymore after ' + String(this._consecutiveUnsafeMode) + " consecutive times."); this._consecutiveUnsafeMode = 0; } if (this._isRefreshPending) { @@ -14405,6 +14532,7 @@ function assertDataIsBufferSource(data) { + var POSSIBLE_BUFFER_TYPES = ["audio", "video", "text", "image"]; /** * Allows to easily create and dispose SegmentBuffers, which are interfaces to @@ -14566,9 +14694,10 @@ var SegmentBuffersStore = /*#__PURE__*/function () { } this._initializedSegmentBuffers[bufferType] = null; if (SegmentBuffersStore.isNative(bufferType)) { - this._onNativeBufferAddedOrDisabled.forEach(function (cb) { + this._onNativeBufferAddedOrDisabled.slice().forEach(function (cb) { return cb(); }); + (0,assert/* default */.h)(this._onNativeBufferAddedOrDisabled.length === 0); } } /** @@ -14601,9 +14730,10 @@ var SegmentBuffersStore = /*#__PURE__*/function () { log/* default */.A.info("SB: Adding native SegmentBuffer with codec", codec); var nativeSegmentBuffer = new audio_video(bufferType, codec, this._mediaSource); this._initializedSegmentBuffers[bufferType] = nativeSegmentBuffer; - this._onNativeBufferAddedOrDisabled.forEach(function (cb) { + this._onNativeBufferAddedOrDisabled.slice().forEach(function (cb) { return cb(); }); + (0,assert/* default */.h)(this._onNativeBufferAddedOrDisabled.length === 0); return nativeSegmentBuffer; } if (memorizedSegmentBuffer != null) { @@ -14779,7 +14909,6 @@ var sorted_list = __webpack_require__(7296); * ``` * @class WeakMapMemory */ -// eslint-disable-next-line @typescript-eslint/ban-types var WeakMapMemory = /*#__PURE__*/function () { /** * @param {Function} @@ -17474,7 +17603,7 @@ function AdaptationStream(_ref, callbacks, parentCancelSignal) { var terminatingRepStreamCanceller = new task_canceller/* default */.Ay(); terminatingRepStreamCanceller.linkToSignal(adapStreamCanceller.signal); var bufferGoal = (0,reference/* createMappedReference */.D)(wantedBufferAhead, function (prev) { - return prev * getBufferGoalRatio(representation); + return getBufferGoal(representation, prev); }, terminatingRepStreamCanceller.signal); var maxBufferSize = adaptation.type === "video" ? maxVideoBufferSize : new reference/* default */.A(Infinity); log/* default */.A.info("Stream: changing representation", adaptation.type, representation.id, representation.bitrate); @@ -17492,10 +17621,11 @@ function AdaptationStream(_ref, callbacks, parentCancelSignal) { var lastBufferGoalRatio = (_a = bufferGoalRatioMap.get(representation.id)) !== null && _a !== void 0 ? _a : 1; // 70%, 49%, 34.3%, 24%, 16.81%, 11.76%, 8.24% and 5.76% var newBufferGoalRatio = lastBufferGoalRatio * 0.7; - if (newBufferGoalRatio <= 0.05 || wba * newBufferGoalRatio <= 2) { - throw formattedError; - } bufferGoalRatioMap.set(representation.id, newBufferGoalRatio); + if (newBufferGoalRatio <= 0.05 || getBufferGoal(representation, wba) <= 2) { + representationStreamCallbacks.error(formattedError); + return; + } // We wait 4 seconds to let the situation evolve by itself before // retrying loading segments with a lower buffer goal (0,cancellable_sleep/* default */.A)(4000, adapStreamCanceller.signal).then(function () { @@ -17528,16 +17658,26 @@ function AdaptationStream(_ref, callbacks, parentCancelSignal) { }, updatedCallbacks, adapStreamCanceller.signal); } /** - * @param {Object} representation + * Returns how much media data should be pre-buffered for this + * `Representation`, according to the `wantedBufferAhead` setting and previous + * issues encountered with that `Representation`. + * @param {Object} representation - The `Representation` you want to buffer. + * @param {number} wba - The value of `wantedBufferAhead` set by the user. * @returns {number} */ - function getBufferGoalRatio(representation) { + function getBufferGoal(representation, wba) { var oldBufferGoalRatio = bufferGoalRatioMap.get(representation.id); var bufferGoalRatio = oldBufferGoalRatio !== undefined ? oldBufferGoalRatio : 1; if (oldBufferGoalRatio === undefined) { bufferGoalRatioMap.set(representation.id, bufferGoalRatio); } - return bufferGoalRatio; + if (bufferGoalRatio < 1 && wba === Infinity) { + // When `wba` is equal to `Infinity`, dividing it will still make it equal + // to `Infinity`. To make the `bufferGoalRatio` still have an effect, we + // just starts from a `wba` set to the high value of 5 minutes. + return 5 * 60 * 1000 * bufferGoalRatio; + } + return wba * bufferGoalRatio; } } ;// CONCATENATED MODULE: ./src/core/stream/adaptation/index.ts @@ -17608,7 +17748,11 @@ function areCodecsCompatible(a, b) { } var codecA = codecsA.substring(7); var codecB = codecsB.substring(7); - if (codecA.split(".")[0] !== codecB.split(".")[0]) { + var initialPartA = codecA.split(".")[0]; + initialPartA = initialPartA === "hev1" ? "hvc1" : initialPartA; + var initialPartB = codecB.split(".")[0]; + initialPartB = initialPartB === "hev1" ? "hvc1" : initialPartB; + if (initialPartA !== initialPartB) { return false; } return true; @@ -17722,16 +17866,15 @@ function getAdaptationSwitchStrategy(segmentBuffer, period, adaptation, playback // Period (which overlap a little with this one) /** Last segment before one for the current period. */ var lastSegmentBefore = getLastSegmentBeforePeriod(inventory, period); - if (lastSegmentBefore !== null && (lastSegmentBefore.bufferedEnd === undefined || period.start - lastSegmentBefore.bufferedEnd < 1)) + if (lastSegmentBefore !== null && (lastSegmentBefore.bufferedEnd === undefined || period.start - lastSegmentBefore.bufferedEnd < 1)) { // Close to Period's start - { - // Exclude data close to the period's start to avoid cleaning - // to much - rangesToExclude.push({ - start: 0, - end: period.start + 1 - }); - } + // Exclude data close to the period's start to avoid cleaning + // to much + rangesToExclude.push({ + start: 0, + end: period.start + 1 + }); + } // Next, exclude data around current position to avoid decoding issues var bufferType = adaptation.type; var _config$getCurrent = config/* default */.A.getCurrent(), @@ -17756,14 +17899,13 @@ function getAdaptationSwitchStrategy(segmentBuffer, period, adaptation, playback if (period.end !== undefined) { /** first segment after for the current period. */ var firstSegmentAfter = getFirstSegmentAfterPeriod(inventory, period); - if (firstSegmentAfter !== null && (firstSegmentAfter.bufferedStart === undefined || firstSegmentAfter.bufferedStart - period.end < 1)) + if (firstSegmentAfter !== null && (firstSegmentAfter.bufferedStart === undefined || firstSegmentAfter.bufferedStart - period.end < 1)) { // Close to Period's end - { - rangesToExclude.push({ - start: period.end - 1, - end: Number.MAX_VALUE - }); - } + rangesToExclude.push({ + start: period.end - 1, + end: Number.MAX_VALUE + }); + } } var toRemove = (0,ranges/* excludeFromRanges */.bo)(unwantedRange, rangesToExclude); if (toRemove.length === 0) { @@ -18300,7 +18442,7 @@ function createEmptyAdaptationStream(playbackObserver, wantedBufferAhead, buffer var wba = wantedBufferAhead.getValue(); var position = observation.position.last; if (period.end !== undefined && position + wba >= period.end) { - log/* default */.A.debug("Stream: full \"empty\" AdaptationStream", bufferType); + log/* default */.A.debug('Stream: full "empty" AdaptationStream', bufferType); hasFinishedLoading = true; } callbacks.streamStatusUpdate({ @@ -20132,8 +20274,8 @@ function getMaximumLiveSeekablePosition(contentLastPosition) { // authorize exceptionally going over it. return Math.max(Math.pow(2, 32), contentLastPosition + YEAR_IN_SECONDS); } -// EXTERNAL MODULE: ./src/core/init/utils/rebuffering_controller.ts + 1 modules -var rebuffering_controller = __webpack_require__(3108); +// EXTERNAL MODULE: ./src/core/init/utils/rebuffering_controller.ts +var rebuffering_controller = __webpack_require__(3137); ;// CONCATENATED MODULE: ./src/core/init/utils/stream_events_emitter/are_same_stream_events.ts /** * Copyright 2015 CANAL+ Group @@ -20846,6 +20988,7 @@ var MediaSourceContentInitializer = /*#__PURE__*/function (_ContentInitializer) startTime: initialTime }, cancelSignal); var rebufferingController = this._createRebufferingController(playbackObserver, manifest, speed, cancelSignal); + var contentTimeBoundariesObserver = this._createContentTimeBoundariesObserver(manifest, mediaSource, streamObserver, segmentBuffersStore, cancelSignal); if (may_media_element_fail_on_undecipherable_data) { // On some devices, just reload immediately when data become undecipherable manifest.addEventListener("decipherabilityUpdate", function (elts) { @@ -20856,7 +20999,6 @@ var MediaSourceContentInitializer = /*#__PURE__*/function (_ContentInitializer) } }, cancelSignal); } - var contentTimeBoundariesObserver = this._createContentTimeBoundariesObserver(manifest, mediaSource, streamObserver, segmentBuffersStore, cancelSignal); /** * Emit a "loaded" events once the initial play has been performed and the * media can begin playback. @@ -21371,6 +21513,8 @@ var should_validate_metadata = __webpack_require__(2097); var browser_compatibility_types = __webpack_require__(9770); // EXTERNAL MODULE: ./src/compat/browser_detection.ts var browser_detection = __webpack_require__(443); +// EXTERNAL MODULE: ./src/compat/is_seeking_approximate.ts +var is_seeking_approximate = __webpack_require__(7913); ;// CONCATENATED MODULE: ./src/compat/should_prevent_seeking_at_0_initially.ts /** @@ -21414,6 +21558,7 @@ var reference = __webpack_require__(8315); + /* eslint-disable-next-line max-len */ @@ -21472,7 +21617,38 @@ function performInitialSeekAndPlay(mediaElement, playbackObserver, startTime, mu // a sufficient `readyState` has been reached for directfile contents. // So let's divide the two possibilities here. var initialTime = typeof startTime === "function" ? startTime() : startTime; - if (shouldPreventSeekingAt0Initially() && initialTime === 0) { + if (initialTime === undefined && isDirectfile && mediaElement.readyState < HTMLMediaElement.HAVE_CURRENT_DATA) { + /** + * The starting position may not be known yet. + * Postpone the seek to a moment where the starting position should be known, + * assumely it's when readyState is greater or equal to HAVE_CURRENT_DATA (2). + * If the initiallySeekedTime is still `undefined` when the readyState is >= 2, + * let assume that the initiallySeekedTime will never be known and continue + * the logic without seeking. + */ + playbackObserver.listen(function (obs, stopListening) { + if (obs.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA) { + var observationInitialTime = typeof startTime === "function" ? startTime() : startTime; + if (observationInitialTime === undefined) { + initialSeekPerformed.setValue(true); + initialSeekPerformed.finish(); + } else if (isDirectfile && browser_detection/* isSafariMobile */.dX) { + // On safari mobile (version 17.1.2) seeking too early cause the video + // to never buffer media data. Using setTimeout 0 defers the seek + // to a moment at which safari should be more able to handle a seek. + setTimeout(function () { + performInitialSeek(observationInitialTime); + }, 0); + } else { + performInitialSeek(observationInitialTime); + } + stopListening(); + } + }); + } else if (initialTime === undefined) { + initialSeekPerformed.setValue(true); + initialSeekPerformed.finish(); + } else if (shouldPreventSeekingAt0Initially() && initialTime === 0) { initialSeekPerformed.setValue(true); initialSeekPerformed.finish(); } else if (isDirectfile && browser_detection/* isSafariMobile */.dX) { @@ -21503,7 +21679,7 @@ function performInitialSeekAndPlay(mediaElement, playbackObserver, startTime, mu isAwaitingSeek = false; return; } - if (!isAwaitingSeek && !observation.seeking && observation.rebuffering === null && observation.readyState >= 1) { + if (!isAwaitingSeek && !observation.seeking && (is_seeking_approximate/* default */.A && observation.readyState >= 3 || observation.rebuffering === null) && observation.readyState >= 1) { stopListening(); onPlayable(); } @@ -21720,63 +21896,21 @@ function initializeContentDecryption(mediaElement, keySystems, protectionRef, ca /***/ }), -/***/ 3108: +/***/ 3137: /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { "use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: function() { return /* binding */ RebufferingController; } -}); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js -var inheritsLoose = __webpack_require__(7387); -// EXTERNAL MODULE: ./src/compat/browser_detection.ts -var browser_detection = __webpack_require__(443); -;// CONCATENATED MODULE: ./src/compat/is_seeking_approximate.ts -/** - * Copyright 2015 CANAL+ Group - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * On some devices (right now only seen on Tizen), seeking through the - * `currentTime` property can lead to the browser re-seeking once the - * segments have been loaded to improve seeking performances (for - * example, by seeking right to an intra video frame). - * - * This can lead to conflicts with the RxPlayer code. - * - * This boolean is only `true` on the devices where this behavior has been - * observed. - */ -var isSeekingApproximate = browser_detection/* isTizen */.ZN; -/* harmony default export */ var is_seeking_approximate = (isSeekingApproximate); -// EXTERNAL MODULE: ./src/config.ts + 2 modules -var config = __webpack_require__(5151); -// EXTERNAL MODULE: ./src/errors/media_error.ts -var media_error = __webpack_require__(5575); -// EXTERNAL MODULE: ./src/log.ts + 1 modules -var log = __webpack_require__(9477); -// EXTERNAL MODULE: ./src/utils/event_emitter.ts -var event_emitter = __webpack_require__(79); -// EXTERNAL MODULE: ./src/utils/ranges.ts -var ranges = __webpack_require__(3650); -// EXTERNAL MODULE: ./src/utils/task_canceller.ts -var task_canceller = __webpack_require__(2507); -;// CONCATENATED MODULE: ./src/core/init/utils/rebuffering_controller.ts +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ A: function() { return /* binding */ RebufferingController; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7387); +/* harmony import */ var _compat_is_seeking_approximate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7913); +/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5151); +/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(5575); +/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9477); +/* harmony import */ var _utils_event_emitter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(79); +/* harmony import */ var _utils_ranges__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3650); +/* harmony import */ var _utils_task_canceller__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2507); /** * Copyright 2015 CANAL+ Group @@ -21827,10 +21961,10 @@ var RebufferingController = /*#__PURE__*/function (_EventEmitter) { _this._speed = speed; _this._discontinuitiesStore = []; _this._isStarted = false; - _this._canceller = new task_canceller/* default */.Ay(); + _this._canceller = new _utils_task_canceller__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay(); return _this; } - (0,inheritsLoose/* default */.A)(RebufferingController, _EventEmitter); + (0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(RebufferingController, _EventEmitter); var _proto = RebufferingController.prototype; _proto.start = function start() { var _this2 = this; @@ -21876,14 +22010,14 @@ var RebufferingController = /*#__PURE__*/function (_EventEmitter) { readyState = observation.readyState, rebuffering = observation.rebuffering, freezing = observation.freezing; - var _config$getCurrent = config/* default */.A.getCurrent(), + var _config$getCurrent = _config__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.getCurrent(), BUFFER_DISCONTINUITY_THRESHOLD = _config$getCurrent.BUFFER_DISCONTINUITY_THRESHOLD, FORCE_DISCONTINUITY_SEEK_DELAY = _config$getCurrent.FORCE_DISCONTINUITY_SEEK_DELAY, FREEZING_STALLED_DELAY = _config$getCurrent.FREEZING_STALLED_DELAY, UNFREEZING_SEEK_DELAY = _config$getCurrent.UNFREEZING_SEEK_DELAY, UNFREEZING_DELTA_POSITION = _config$getCurrent.UNFREEZING_DELTA_POSITION; - if (!observation.seeking && is_seeking_approximate && ignoredStallTimeStamp === null && lastSeekingPosition !== null && observation.position < lastSeekingPosition) { - log/* default */.A.debug("Init: the device appeared to have seeked back by itself."); + if (!observation.seeking && _compat_is_seeking_approximate__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A && ignoredStallTimeStamp === null && lastSeekingPosition !== null && observation.position < lastSeekingPosition) { + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.debug("Init: the device appeared to have seeked back by itself."); var now = performance.now(); ignoredStallTimeStamp = now; } @@ -21892,7 +22026,7 @@ var RebufferingController = /*#__PURE__*/function (_EventEmitter) { var _now = performance.now(); var referenceTimestamp = prevFreezingState === null ? freezing.timestamp : prevFreezingState.attemptTimestamp; if (_now - referenceTimestamp > UNFREEZING_SEEK_DELAY) { - log/* default */.A.warn("Init: trying to seek to un-freeze player"); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.warn("Init: trying to seek to un-freeze player"); _this2._playbackObserver.setCurrentTime(_this2._playbackObserver.getCurrentTime() + UNFREEZING_DELTA_POSITION); prevFreezingState = { attemptTimestamp: _now @@ -21934,11 +22068,11 @@ var RebufferingController = /*#__PURE__*/function (_EventEmitter) { var _now2 = performance.now(); if (_now2 - ignoredStallTimeStamp < FORCE_DISCONTINUITY_SEEK_DELAY) { playbackRateUpdater.stopRebuffering(); - log/* default */.A.debug("Init: letting the device get out of a stall by itself"); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.debug("Init: letting the device get out of a stall by itself"); _this2.trigger("stalled", stalledReason); return; } else { - log/* default */.A.warn("Init: ignored stall for too long, checking discontinuity", _now2 - ignoredStallTimeStamp); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.warn("Init: ignored stall for too long, checking discontinuity", _now2 - ignoredStallTimeStamp); } } ignoredStallTimeStamp = null; @@ -21954,9 +22088,9 @@ var RebufferingController = /*#__PURE__*/function (_EventEmitter) { if (skippableDiscontinuity !== null) { var realSeekTime = skippableDiscontinuity + 0.001; if (realSeekTime <= _this2._playbackObserver.getCurrentTime()) { - log/* default */.A.info("Init: position to seek already reached, no seeking", _this2._playbackObserver.getCurrentTime(), realSeekTime); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.info("Init: position to seek already reached, no seeking", _this2._playbackObserver.getCurrentTime(), realSeekTime); } else { - log/* default */.A.warn("SA: skippable discontinuity found in the stream", position, realSeekTime); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.warn("SA: skippable discontinuity found in the stream", position, realSeekTime); _this2._playbackObserver.setCurrentTime(realSeekTime); _this2.trigger("warning", generateDiscontinuityError(stalledPosition, realSeekTime)); return; @@ -21971,11 +22105,11 @@ var RebufferingController = /*#__PURE__*/function (_EventEmitter) { // calculate a stalled state. This is useful for some // implementation that might drop an injected segment, or in // case of small discontinuity in the content. - var nextBufferRangeGap = (0,ranges/* getNextRangeGap */.Td)(buffered, freezePosition); + var nextBufferRangeGap = (0,_utils_ranges__WEBPACK_IMPORTED_MODULE_5__/* .getNextRangeGap */ .Td)(buffered, freezePosition); if (_this2._speed.getValue() > 0 && nextBufferRangeGap < BUFFER_DISCONTINUITY_THRESHOLD) { var seekTo = freezePosition + nextBufferRangeGap + EPSILON; if (_this2._playbackObserver.getCurrentTime() < seekTo) { - log/* default */.A.warn("Init: discontinuity encountered inferior to the threshold", freezePosition, seekTo, BUFFER_DISCONTINUITY_THRESHOLD); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.warn("Init: discontinuity encountered inferior to the threshold", freezePosition, seekTo, BUFFER_DISCONTINUITY_THRESHOLD); _this2._playbackObserver.setCurrentTime(seekTo); _this2.trigger("warning", generateDiscontinuityError(freezePosition, seekTo)); return; @@ -22035,7 +22169,7 @@ var RebufferingController = /*#__PURE__*/function (_EventEmitter) { var rebufferingPos = (_a = observation.rebuffering.position) !== null && _a !== void 0 ? _a : currPos; var lockedPeriodStart = period.start; if (currPos < lockedPeriodStart && Math.abs(rebufferingPos - lockedPeriodStart) < 1) { - log/* default */.A.warn("Init: rebuffering because of a future locked stream.\n" + "Trying to unlock by seeking to the next Period"); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.warn("Init: rebuffering because of a future locked stream.\n" + "Trying to unlock by seeking to the next Period"); this._playbackObserver.setCurrentTime(lockedPeriodStart + 0.001); } } @@ -22047,7 +22181,7 @@ var RebufferingController = /*#__PURE__*/function (_EventEmitter) { this._canceller.cancel(); }; return RebufferingController; -}(event_emitter/* default */.A); +}(_utils_event_emitter__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A); /** * @param {Array.} discontinuitiesStore * @param {Object} manifest @@ -22079,14 +22213,14 @@ function findSeekableDiscontinuity(discontinuitiesStore, manifest, stalledPositi if (nextPeriod !== null) { discontinuityEnd = nextPeriod.start + EPSILON; } else { - log/* default */.A.warn("Init: discontinuity at Period's end but no next Period"); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.warn("Init: discontinuity at Period's end but no next Period"); } } else if (stalledPosition < end + EPSILON) { discontinuityEnd = end + EPSILON; } } if (discontinuityEnd !== undefined) { - log/* default */.A.info("Init: discontinuity found", stalledPosition, discontinuityEnd); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.info("Init: discontinuity found", stalledPosition, discontinuityEnd); maxDiscontinuityEnd = maxDiscontinuityEnd !== null && maxDiscontinuityEnd > discontinuityEnd ? maxDiscontinuityEnd : discontinuityEnd; } } @@ -22155,7 +22289,7 @@ function updateDiscontinuitiesStore(discontinuitiesStore, evt, observation) { * @returns {Error} */ function generateDiscontinuityError(stalledPosition, seekTo) { - return new media_error/* default */.A("DISCONTINUITY_ENCOUNTERED", "A discontinuity has been encountered at position " + String(stalledPosition) + ", seeked at position " + String(seekTo)); + return new _errors__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A("DISCONTINUITY_ENCOUNTERED", "A discontinuity has been encountered at position " + String(stalledPosition) + ", seeked at position " + String(seekTo)); } /** * Manage playback speed, allowing to force a playback rate of `0` when @@ -22174,7 +22308,7 @@ var PlaybackRateUpdater = /*#__PURE__*/function () { * @param {Object} speed */ function PlaybackRateUpdater(playbackObserver, speed) { - this._speedUpdateCanceller = new task_canceller/* default */.Ay(); + this._speedUpdateCanceller = new _utils_task_canceller__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay(); this._isRebuffering = false; this._playbackObserver = playbackObserver; this._isDisposed = false; @@ -22193,7 +22327,7 @@ var PlaybackRateUpdater = /*#__PURE__*/function () { } this._isRebuffering = true; this._speedUpdateCanceller.cancel(); - log/* default */.A.info("Init: Pause playback to build buffer"); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.info("Init: Pause playback to build buffer"); this._playbackObserver.setPlaybackRate(0); } /** @@ -22207,7 +22341,7 @@ var PlaybackRateUpdater = /*#__PURE__*/function () { return; } this._isRebuffering = false; - this._speedUpdateCanceller = new task_canceller/* default */.Ay(); + this._speedUpdateCanceller = new _utils_task_canceller__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Ay(); this._updateSpeed(); } /** @@ -22224,7 +22358,7 @@ var PlaybackRateUpdater = /*#__PURE__*/function () { _proto2._updateSpeed = function _updateSpeed() { var _this3 = this; this._speed.onUpdate(function (lastSpeed) { - log/* default */.A.info("Init: Resume playback speed", lastSpeed); + _log__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A.info("Init: Resume playback speed", lastSpeed); _this3._playbackObserver.setPlaybackRate(lastSpeed); }, { clearSignal: this._speedUpdateCanceller.signal, @@ -22969,14 +23103,13 @@ var TextTrackCuesStore = /*#__PURE__*/function () { var nextCue = cuesBuffer[indexOfNextCue]; if (nextCue === undefined || // no cue - areNearlyEqual(cuesInfosToInsert.end, nextCue.end, relativeDelta)) + areNearlyEqual(cuesInfosToInsert.end, nextCue.end, relativeDelta)) { // samey end - { - // ours: |AAAAA| - // the current one: |BBBBB| - // Result: |AAAAA| - cuesBuffer[indexOfNextCue] = cuesInfosToInsert; - } else if (nextCue.start >= cuesInfosToInsert.end) { + // ours: |AAAAA| + // the current one: |BBBBB| + // Result: |AAAAA| + cuesBuffer[indexOfNextCue] = cuesInfosToInsert; + } else if (nextCue.start >= cuesInfosToInsert.end) { // Either // ours: |AAAAA| // the current one: |BBBBBB| @@ -24301,9 +24434,7 @@ var SegmentInventory = /*#__PURE__*/function () { // (Those not in that TimeRange nor in the previous one) var numberOfSegmentToDelete = inventoryIndex - indexBefore; if (numberOfSegmentToDelete > 0) { - var lastDeletedSegment = - // last garbage-collected segment - inventory[indexBefore + numberOfSegmentToDelete - 1]; + var lastDeletedSegment = inventory[indexBefore + numberOfSegmentToDelete - 1]; // last garbage-collected segment lastDeletedSegmentInfos = { end: (_b = lastDeletedSegment.bufferedEnd) !== null && _b !== void 0 ? _b : lastDeletedSegment.end, precizeEnd: lastDeletedSegment.precizeEnd @@ -27133,7 +27264,7 @@ function updatePeriodInPlace(oldPeriod, newPeriod, updateType) { return a.id === oldAdaptation.id; }); if (newAdaptationIdx === -1) { - log/* default */.A.warn("Manifest: Adaptation \"" + oldAdaptations[_j].id + "\" not found when merging."); + log/* default */.A.warn('Manifest: Adaptation "' + oldAdaptations[_j].id + '" not found when merging.'); var _oldAdaptations$splic = oldAdaptations.splice(_j, 1), removed = _oldAdaptations$splic[0]; _j--; @@ -27740,8 +27871,7 @@ var Manifest = /*#__PURE__*/function (_EventEmitter) { * @param {Object|Array.} textTracks */; _proto._addSupplementaryTextAdaptations = function _addSupplementaryTextAdaptations( /* eslint-disable import/no-deprecated */ - textTracks - /* eslint-enable import/no-deprecated */) { + textTracks) { var _this3 = this; var _textTracks = Array.isArray(textTracks) ? textTracks : [textTracks]; var newTextAdaptations = _textTracks.reduce(function (allSubs, _ref3) { @@ -28263,7 +28393,7 @@ function getNextBoxOffsets(buf) { * @returns {Uint8Array|null} */ function getTRAF(buffer) { - var moof = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(buffer, 0x6D6F6F66 /* moof */); + var moof = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(buffer, 0x6d6f6f66 /* moof */); if (moof === null) { return null; } @@ -28278,7 +28408,7 @@ function getTRAF(buffer) { * @returns {Array.} */ function getTRAFs(buffer) { - var moofs = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxesContent */ .fj)(buffer, 0x6D6F6F66 /* moof */); + var moofs = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxesContent */ .fj)(buffer, 0x6d6f6f66 /* moof */); return moofs.reduce(function (acc, moof) { var traf = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(moof, 0x74726166 /* traf */); if (traf !== null) { @@ -28295,7 +28425,7 @@ function getTRAFs(buffer) { * @returns {Uint8Array|null} */ function getMDAT(buf) { - return (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(buf, 0x6D646174 /* "mdat" */); + return (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(buf, 0x6d646174 /* "mdat" */); } /** * Returns the content of the first "mdia" box encountered in the given ISOBMFF @@ -28305,15 +28435,15 @@ function getMDAT(buf) { * @returns {Uint8Array|null} */ function getMDIA(buf) { - var moov = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(buf, 0x6D6F6F76 /* moov */); + var moov = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(buf, 0x6d6f6f76 /* moov */); if (moov === null) { return null; } - var trak = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(moov, 0x7472616B /* "trak" */); + var trak = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(moov, 0x7472616b /* "trak" */); if (trak === null) { return null; } - return (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(trak, 0x6D646961 /* "mdia" */); + return (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(trak, 0x6d646961 /* "mdia" */); } /** * Returns the content of the first "emsg" box encountered in the given ISOBMFF @@ -28326,7 +28456,7 @@ function getEMSG(buffer, offset) { if (offset === void 0) { offset = 0; } - return (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(buffer.subarray(offset), 0x656D7367 /* emsg */); + return (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(buffer.subarray(offset), 0x656d7367 /* emsg */); } @@ -28421,7 +28551,7 @@ var get_box = __webpack_require__(8797); */ function takePSSHOut(data) { var i = 0; - var moov = (0,get_box/* getBoxContent */.fZ)(data, 0x6D6F6F76 /* moov */); + var moov = (0,get_box/* getBoxContent */.fZ)(data, 0x6d6f6f76 /* moov */); if (moov === null) { return []; } @@ -28580,7 +28710,7 @@ function getSegmentsFromSidx(buf, sidxOffsetInWholeSegment) { var refChunk = (0,_utils_byte_parsing__WEBPACK_IMPORTED_MODULE_1__/* .be4toi */ .mq)(buf, cursor); cursor += 4; var refType = (refChunk & 0x80000000) >>> 31; - var refSize = refChunk & 0x7FFFFFFF; + var refSize = refChunk & 0x7fffffff; // when set to 1 indicates that the reference is to a sidx, else to media if (refType === 1) { throw new Error("sidx with reference_type `1` not yet implemented"); @@ -28674,7 +28804,7 @@ function getDurationFromTrun(buffer) { var completeDuration = 0; for (var _iterator = _createForOfIteratorHelperLoose(trafs), _step; !(_step = _iterator()).done;) { var traf = _step.value; - var trun = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(traf, 0x7472756E /* trun */); + var trun = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(traf, 0x7472756e /* trun */); if (trun === null) { return undefined; } @@ -28743,7 +28873,7 @@ function getMDHDTimescale(buffer) { if (mdia === null) { return undefined; } - var mdhd = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(mdia, 0x6D646864 /* "mdhd" */); + var mdhd = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(mdia, 0x6d646864 /* "mdhd" */); if (mdhd === null) { return undefined; } @@ -28777,7 +28907,7 @@ function patchPssh(buf, psshList) { if (psshList == null || psshList.length === 0) { return buf; } - var moovOffsets = getBoxOffsets(buf, 0x6D6F6F76 /* = "moov" */); + var moovOffsets = getBoxOffsets(buf, 0x6d6f6f76 /* = "moov" */); if (moovOffsets === null) { return buf; } @@ -28896,12 +29026,12 @@ function parseEmsgBoxes(buffer) { * @returns {Uint8Array|null} */ function getKeyIdFromInitSegment(segment) { - var stsd = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getChildBox */ .o$)(segment, [0x6D6F6F76 /* moov */, 0x7472616B /* trak */, 0x6D646961 /* mdia */, 0x6D696E66 /* minf */, 0x7374626C /* stbl */, 0x73747364 /* stsd */]); + var stsd = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getChildBox */ .o$)(segment, [0x6d6f6f76 /* moov */, 0x7472616b /* trak */, 0x6d646961 /* mdia */, 0x6d696e66 /* minf */, 0x7374626c /* stbl */, 0x73747364 /* stsd */]); if (stsd === null) { return null; } var stsdSubBoxes = stsd.subarray(8); - var encBox = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(stsdSubBoxes, 0x656E6376 /* encv */); + var encBox = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(stsdSubBoxes, 0x656e6376 /* encv */); var encContentOffset = 0; if (encBox === null) { encContentOffset = 8 + @@ -28917,7 +29047,7 @@ function getKeyIdFromInitSegment(segment) { 2 + // reserved 4; // samplerate - encBox = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(stsdSubBoxes, 0x656E6361 /* enca */); + encBox = (0,_get_box__WEBPACK_IMPORTED_MODULE_0__/* .getBoxContent */ .fZ)(stsdSubBoxes, 0x656e6361 /* enca */); } else { encContentOffset = 8 + // sample entry header @@ -29043,7 +29173,7 @@ function parseBif(buf) { }); index++; } - if (currentImageTimestamp === 0xFFFFFFFF) { + if (currentImageTimestamp === 0xffffffff) { break; } previousImageInfo = { @@ -30052,10 +30182,14 @@ var ManifestBoundsCalculator = /*#__PURE__*/function () { /** * Estimate a minimum bound for the content from the last set segment time * and buffer depth. - * Consider that it is only an estimation, not the real value. + * Consider that it is only an estimate, not the real value. + * @param {number} segmentDuration - In DASH, the buffer depth actually also + * depend on a corresponding's segment duration (e.g. a segment become + * unavailable once the `timeShiftBufferDepth` + its duration has elapsed). + * This argument can thus be set the approximate duration of a segment. * @return {number|undefined} */; - _proto.getEstimatedMinimumSegmentTime = function getEstimatedMinimumSegmentTime() { + _proto.getEstimatedMinimumSegmentTime = function getEstimatedMinimumSegmentTime(segmentDuration) { var _a; if (!this._isDynamic || this._timeShiftBufferDepth === null) { return 0; @@ -30064,7 +30198,7 @@ var ManifestBoundsCalculator = /*#__PURE__*/function () { if (maximumBound === undefined) { return undefined; } - var minimumBound = maximumBound - this._timeShiftBufferDepth; + var minimumBound = maximumBound - (this._timeShiftBufferDepth + segmentDuration); return minimumBound; } /** @@ -30864,7 +30998,7 @@ function convertElementsToIndexSegment(item, previousItem, nextItem) { repeatCount: repeatCount === undefined ? 0 : repeatCount }; } - log/* default */.A.warn("DASH: A \"S\" Element could not have been parsed."); + log/* default */.A.warn('DASH: A "S" Element could not have been parsed.'); return null; } ;// CONCATENATED MODULE: ./src/parsers/manifest/dash/common/indexes/timeline/parse_s_element.ts @@ -31124,7 +31258,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline) { // Find first index in both timeline where a common segment is found. var commonStartInfo = findFirstCommonStartTime(prevTimeline, newElements); if (commonStartInfo === null) { - log/* default */.A.warn("DASH: Cannot perform \"based\" update. Common segment not found."); + log/* default */.A.warn('DASH: Cannot perform "based" update. Common segment not found.'); return constructTimelineFromElements(newElements); } var prevSegmentsIdx = commonStartInfo.prevSegmentsIdx, @@ -31135,7 +31269,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline) { var numberCommonEltGuess = prevTimeline.length - prevSegmentsIdx; var lastCommonEltNewEltsIdx = numberCommonEltGuess + newElementsIdx - 1; if (lastCommonEltNewEltsIdx >= newElements.length) { - log/* default */.A.info("DASH: Cannot perform \"based\" update. New timeline too short"); + log/* default */.A.info('DASH: Cannot perform "based" update. New timeline too short'); return constructTimelineFromElements(newElements); } // Remove elements which are not available anymore @@ -31146,14 +31280,14 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline) { newTimeline[0].repeatCount -= repeatNumberInPrevSegments; } if (repeatNumberInNewElements > 0 && newElementsIdx !== 0) { - log/* default */.A.info("DASH: Cannot perform \"based\" update. " + "The new timeline has a different form."); + log/* default */.A.info('DASH: Cannot perform "based" update. ' + "The new timeline has a different form."); return constructTimelineFromElements(newElements); } var prevLastElement = newTimeline[newTimeline.length - 1]; var newCommonElt = parseSElement(newElements[lastCommonEltNewEltsIdx]); var newRepeatCountOffseted = ((_a = newCommonElt.repeatCount) !== null && _a !== void 0 ? _a : 0) - repeatNumberInNewElements; if (newCommonElt.duration !== prevLastElement.duration || prevLastElement.repeatCount > newRepeatCountOffseted) { - log/* default */.A.info("DASH: Cannot perform \"based\" update. " + "The new timeline has a different form at the beginning."); + log/* default */.A.info('DASH: Cannot perform "based" update. ' + "The new timeline has a different form at the beginning."); return constructTimelineFromElements(newElements); } if (newCommonElt.repeatCount !== undefined && newCommonElt.repeatCount > prevLastElement.repeatCount) { @@ -31203,6 +31337,7 @@ function constructTimelineFromPreviousTimeline(newElements, prevTimeline) { + // eslint-disable-next-line max-len /** @@ -31421,9 +31556,8 @@ var TimelineRepresentationIndex = /*#__PURE__*/function () { return false; } if (this._scaledPeriodEnd === undefined) { - return scaledWantedEnd + segmentTimeRounding > this._scaledPeriodStart ? undefined : - // There may be future segments at this point - false; // Before the current Period + return scaledWantedEnd + segmentTimeRounding > this._scaledPeriodStart ? undefined // There may be future segments at this point + : false; // Before the current Period } // `true` if within the boundaries of this Period. `false` otherwise. return scaledWantedStart - segmentTimeRounding < this._scaledPeriodEnd && scaledWantedEnd + segmentTimeRounding > this._scaledPeriodStart; @@ -31600,14 +31734,15 @@ var TimelineRepresentationIndex = /*#__PURE__*/function () { * available due to timeshifting. */; _proto._refreshTimeline = function _refreshTimeline() { + var _a, _b; if (this._index.timeline === null) { this._index.timeline = this._getTimeline(); } if (!this._isDynamic) { return; } - var firstPosition = this._manifestBoundsCalculator.getEstimatedMinimumSegmentTime(); - if (firstPosition == null) { + var firstPosition = this._manifestBoundsCalculator.getEstimatedMinimumSegmentTime(((_b = (_a = this._index.timeline[0]) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0) / this._index.timescale); + if ((0,is_null_or_undefined/* default */.A)(firstPosition)) { return; // we don't know yet } var scaledFirstPosition = (0,index_helpers/* toIndexTime */.vb)(firstPosition, this._index); @@ -32171,7 +32306,7 @@ var TemplateRepresentationIndex = /*#__PURE__*/function () { var _this$_index = this._index, duration = _this$_index.duration, timescale = _this$_index.timescale; - var firstPosition = this._manifestBoundsCalculator.getEstimatedMinimumSegmentTime(); + var firstPosition = this._manifestBoundsCalculator.getEstimatedMinimumSegmentTime(duration / timescale); if (firstPosition === undefined) { return undefined; } @@ -32995,7 +33130,7 @@ function parseAdaptationSets(adaptationsIR, context) { var mergedInto = parsedAdaptations[type][mergedIntoIdx]; if (mergedInto !== undefined && mergedInto[0].audioDescription === parsedAdaptationSet.audioDescription && mergedInto[0].closedCaption === parsedAdaptationSet.closedCaption && mergedInto[0].language === parsedAdaptationSet.language) { var _mergedInto$0$represe; - log/* default */.A.info("DASH Parser: merging \"switchable\" AdaptationSets", originalID, id); + log/* default */.A.info('DASH Parser: merging "switchable" AdaptationSets', originalID, id); (_mergedInto$0$represe = mergedInto[0].representations).push.apply(_mergedInto$0$represe, parsedAdaptationSet.representations); mergedInto[1] = { priority: Math.max(priority, mergedInto[1].priority), @@ -33318,7 +33453,7 @@ function generateStreamEvents(baseIr, periodStart, xmlNamespaces) { // encountering unknown namespaced attributes or elements in the given // `` xml subset. var parentNode = allNamespaces.reduce(function (acc, ns) { - return acc + "xmlns:" + ns.key + "=\"" + ns.value + "\" "; + return acc + "xmlns:" + ns.key + '="' + ns.value + '" '; }, " timeshiftDepth) { timeshiftDepth = livePosition - minimumTime; } @@ -35935,9 +36085,8 @@ function updateSegmentTimeline(oldTimeline, newTimeline) { } var newCurrRepeat = (newIndexStart - currElt.start) / currElt.duration - 1; if (newCurrRepeat % 1 === 0 && currElt.duration === newTimeline[0].duration) { - var newRepeatCount = newTimeline[0].repeatCount < 0 ? -1 : - // === maximum possible repeat - newTimeline[0].repeatCount + newCurrRepeat + 1; + var newRepeatCount = newTimeline[0].repeatCount < 0 ? -1 // === maximum possible repeat + : newTimeline[0].repeatCount + newCurrRepeat + 1; // replace that one and those after it oldTimeline.splice.apply(oldTimeline, [i, prevTimelineLength - i].concat(newTimeline)); oldTimeline[i].start = currElt.start; @@ -35962,7 +36111,7 @@ function updateSegmentTimeline(oldTimeline, newTimeline) { return false; } else { // the new has more depth - _log__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.warn("RepresentationIndex: The new index is \"bigger\" than the previous one"); + _log__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.warn('RepresentationIndex: The new index is "bigger" than the previous one'); oldTimeline.splice.apply(oldTimeline, [0, prevTimelineLength].concat(newTimeline)); return true; } @@ -35974,7 +36123,7 @@ function updateSegmentTimeline(oldTimeline, newTimeline) { return false; } // the new one has more depth. full update - _log__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.warn("RepresentationIndex: The new index is \"bigger\" than the previous one"); + _log__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A.warn('RepresentationIndex: The new index is "bigger" than the previous one'); oldTimeline.splice.apply(oldTimeline, [0, prevTimelineLength].concat(newTimeline)); return true; } @@ -36082,8 +36231,8 @@ function decodeEntities(text) { * @param {string} lang */ function parseSami(smi, timeOffset, lang) { - var syncOpen = /]/ig; - var syncClose = /]|<\/body>/ig; + var syncOpen = /]/gi; + var syncClose = /]|<\/body>/gi; var subs = []; var styleMatches = STYLE.exec(smi); var css = Array.isArray(styleMatches) ? styleMatches[1] : ""; @@ -36197,10 +36346,6 @@ function parseSami(smi, timeOffset, lang) { * See the License for the specific language governing permissions and * limitations under the License. */ -/** - * /!\ This file is feature-switchable. - * It always should be imported through the `features` object. - */ var HTML_ENTITIES = /&#([0-9]+);/g; @@ -36281,8 +36426,8 @@ function decodeEntities(text) { * @returns {Array.} */ function parseSami(smi, timeOffset, lang) { - var syncOpen = /]/ig; - var syncClose = /]|<\/body>/ig; + var syncOpen = /]/gi; + var syncClose = /]|<\/body>/gi; var subs = []; var styleMatches = STYLE.exec(smi); var css = styleMatches !== null ? styleMatches[1] : ""; @@ -36632,12 +36777,6 @@ function isNodeFontWithColorProp(node) { * See the License for the specific language governing permissions and * limitations under the License. */ -/** - * /!\ This file is feature-switchable. - * It always should be imported through the `features` object. - */ -// srt to VTTCue parser, Done for fun. -// Heavily inspired from the WebVTT implementation @@ -37347,7 +37486,7 @@ function applyFontSize(element, fontSize) { } else if (firstFontSize[2] === "%") { var toNum = Number(firstFontSize[1]); if (isNaN(toNum)) { - log/* default */.A.warn("TTML Parser: could not parse fontSize value \"" + firstFontSize[1] + "\" into a number"); + log/* default */.A.warn('TTML Parser: could not parse fontSize value "' + firstFontSize[1] + '" into a number'); } else { element.style.position = "relative"; addClassName(element, "proportional-style"); @@ -39815,10 +39954,6 @@ function toNativeCue(cueObj) { * See the License for the specific language governing permissions and * limitations under the License. */ -/** - * /!\ This file is feature-switchable. - * It always should be imported through the `features` object. - */ @@ -40407,7 +40542,9 @@ function generateManifestParser(options) { return processMpdParserResponse(parsed); } else { log/* default */.A.debug("DASH: Awaiting WASM initialization before parsing the MPD."); - var initProm = parsers.wasm.waitForInitialization()["catch"](function () {}); + var initProm = parsers.wasm.waitForInitialization()["catch"](function () { + /* ignore errors, we will check the status later */ + }); return initProm.then(function () { if (parsers.wasm === null || parsers.wasm.status !== "initialized") { log/* default */.A.warn("DASH: WASM MPD parser initialization failed. " + "Running JS parser instead"); @@ -40607,10 +40744,10 @@ function getManifestAsArrayBuffer(manifestSrc) { */ function doesXmlSeemsUtf8Encoded(xmlData) { var dv = new DataView(xmlData); - if (dv.getUint16(0) === 0xEFBB && dv.getUint8(2) === 0XBF) { + if (dv.getUint16(0) === 0xefbb && dv.getUint8(2) === 0xbf) { // (UTF-8 BOM) return true; - } else if (dv.getUint16(0) === 0xFEFF || dv.getUint16(0) === 0xFFFe) { + } else if (dv.getUint16(0) === 0xfeff || dv.getUint16(0) === 0xfffe) { // (UTF-16 BOM) return false; } @@ -41076,7 +41213,7 @@ function extractCompleteChunks(buffer) { var currentBuffer = null; while (_position < buffer.length) { currentBuffer = buffer.subarray(_position, Infinity); - var moofIndex = (0,find_complete_box/* default */.A)(currentBuffer, 0x6D6F6F66 /* moof */); + var moofIndex = (0,find_complete_box/* default */.A)(currentBuffer, 0x6d6f6f66 /* moof */); if (moofIndex < 0) { // no moof, not a segment. return [chunks, currentBuffer]; @@ -41087,7 +41224,7 @@ function extractCompleteChunks(buffer) { // not a complete moof segment return [chunks, currentBuffer]; } - var mdatIndex = (0,find_complete_box/* default */.A)(currentBuffer, 0x6D646174 /* mdat */); + var mdatIndex = (0,find_complete_box/* default */.A)(currentBuffer, 0x6d646174 /* mdat */); if (mdatIndex < 0) { // no mdat, not a segment. return [chunks, currentBuffer]; @@ -41392,14 +41529,14 @@ var utils = __webpack_require__(1134); */ var SEGMENT_ID = 0x18538067; -var INFO_ID = 0x1549A966; -var TIMECODESCALE_ID = 0x2AD7B1; +var INFO_ID = 0x1549a966; +var TIMECODESCALE_ID = 0x2ad7b1; var DURATION_ID = 0x4489; -var CUES_ID = 0x1C53BB6B; -var CUE_POINT_ID = 0xBB; -var CUE_TIME_ID = 0xB3; -var CUE_TRACK_POSITIONS_ID = 0xB7; -var CUE_CLUSTER_POSITIONS_ID = 0xF1; +var CUES_ID = 0x1c53bb6b; +var CUE_POINT_ID = 0xbb; +var CUE_TIME_ID = 0xb3; +var CUE_TRACK_POSITIONS_ID = 0xb7; +var CUE_CLUSTER_POSITIONS_ID = 0xf1; /** * Find the offsets of the value linked to the given element ID. * @param {number} elementID - ID for the searched element. @@ -42074,6 +42211,7 @@ function getISOBMFFTextTrackFormat(representation) { } switch (codec.toLowerCase()) { case "stpp": // stpp === TTML in MP4 + case "stpp.ttml": case "stpp.ttml.im1t": return "ttml"; case "wvtt": @@ -43254,7 +43392,7 @@ function getAudioCodecs(codecPrivateData, fourCC) { if (fourCC === "AACH") { mpProfile = 5; // High Efficiency AAC Profile } else { - mpProfile = (0,is_non_empty_string/* default */.A)(codecPrivateData) ? (parseInt(codecPrivateData.substring(0, 2), 16) & 0xF8) >> 3 : 2; + mpProfile = (0,is_non_empty_string/* default */.A)(codecPrivateData) ? (parseInt(codecPrivateData.substring(0, 2), 16) & 0xf8) >> 3 : 2; } if (mpProfile === 0) { // Return default audio codec @@ -44065,7 +44203,7 @@ var get_box = __webpack_require__(8797); * @returns {Array.} */ function parseTfrf(traf) { - var tfrf = (0,get_box/* getUuidContent */.$H)(traf, 0xD4807EF2, 0xCA394695, 0x8E5426CB, 0x9E46A79F); + var tfrf = (0,get_box/* getUuidContent */.$H)(traf, 0xd4807ef2, 0xca394695, 0x8e5426cb, 0x9e46a79f); if (tfrf === undefined) { return []; } @@ -44112,7 +44250,7 @@ function parseTfrf(traf) { * @returns {Object|undefined} */ function parseTfxd(traf) { - var tfxd = (0,get_box/* getUuidContent */.$H)(traf, 0x6D1D9B05, 0x42D544E6, 0x80E2141D, 0xAFF757B2); + var tfxd = (0,get_box/* getUuidContent */.$H)(traf, 0x6d1d9b05, 0x42d544e6, 0x80e2141d, 0xaff757b2); if (tfxd === undefined) { return undefined; } @@ -44295,10 +44433,9 @@ function createAVC1Box(width, height, hRes, vRes, encName, colorDepth, avcc) { // + padding (0,byte_parsing/* itobe2 */.ww)(colorDepth), // color depth - [0xFF, 0xFF], + [0xff, 0xff], // reserved ones - avcc // avcc atom, - )); + avcc)); } /** * @param {Number} width @@ -44332,7 +44469,7 @@ function createENCVBox(width, height, hRes, vRes, encName, colorDepth, avcc, sin // + padding (0,byte_parsing/* itobe2 */.ww)(colorDepth), // color depth - [0xFF, 0xFF], + [0xff, 0xff], // reserved ones avcc, // avcc atom, @@ -44449,7 +44586,7 @@ function createAVCCBox(sps, pps, nalLen) { var h264Profile = sps[1]; var h264CompatibleProfile = sps[2]; var h264Level = sps[3]; - return createBox("avcC", (0,byte_parsing/* concat */.xW)([1, h264Profile, h264CompatibleProfile, h264Level, 0x3F << 2 | nal, 0xE0 | 1], (0,byte_parsing/* itobe2 */.ww)(sps.length), sps, [1], (0,byte_parsing/* itobe2 */.ww)(pps.length), pps)); + return createBox("avcC", (0,byte_parsing/* concat */.xW)([1, h264Profile, h264CompatibleProfile, h264Level, 0x3f << 2 | nal, 0xe0 | 1], (0,byte_parsing/* itobe2 */.ww)(sps.length), sps, [1], (0,byte_parsing/* itobe2 */.ww)(pps.length), pps)); } /** * @param {string} type - "video"/"audio"/"hint" @@ -44472,8 +44609,7 @@ function createHDLRBox(type) { handlerName = ""; break; } - return createBox("hdlr", (0,byte_parsing/* concat */.xW)(8, (0,string_parsing/* strToUtf8 */.eb)(name), 12, (0,string_parsing/* strToUtf8 */.eb)(handlerName), 1 // handler name is C-style string (0 terminated) - )); + return createBox("hdlr", (0,byte_parsing/* concat */.xW)(8, (0,string_parsing/* strToUtf8 */.eb)(name), 12, (0,string_parsing/* strToUtf8 */.eb)(handlerName), 1)); } /** * @param {number} timescale @@ -44496,8 +44632,7 @@ function createMVHDBox(timescale, trackId) { // default matrix [0, 1], 14, // default matrix - [64, 0, 0, 0], 26, (0,byte_parsing/* itobe2 */.ww)(trackId + 1) // next trackId (=trackId + 1); - )); + [64, 0, 0, 0], 26, (0,byte_parsing/* itobe2 */.ww)(trackId + 1))); } /** * @param {Uint8Array} mfhd @@ -44581,8 +44716,7 @@ function createTKHDBox(width, height, trackId) { // ?? (0,byte_parsing/* itobe2 */.ww)(width), 2, // width (TODO handle fixed) - (0,byte_parsing/* itobe2 */.ww)(height), 2 // height (TODO handle fixed) - )); + (0,byte_parsing/* itobe2 */.ww)(height), 2)); } /** * @param {Number} algId - eg 1 @@ -44648,18 +44782,18 @@ function createTrafBox(tfhd, tfdt, trun, mfhd, senc) { * @return {Uint8Array} */ function patchSegment(segment, decodeTime) { - var oldMoofOffsets = (0,get_box/* getBoxOffsets */.QL)(segment, 0x6D6F6F66 /* moof */); + var oldMoofOffsets = (0,get_box/* getBoxOffsets */.QL)(segment, 0x6d6f6f66 /* moof */); if (oldMoofOffsets === null) { throw new Error("Smooth: Invalid ISOBMFF given"); } var oldMoofContent = segment.subarray(oldMoofOffsets[1], oldMoofOffsets[2]); - var mfhdBox = (0,get_box/* getBox */.YH)(oldMoofContent, 0x6D666864 /* mfhd */); + var mfhdBox = (0,get_box/* getBox */.YH)(oldMoofContent, 0x6d666864 /* mfhd */); var trafContent = (0,get_box/* getBoxContent */.fZ)(oldMoofContent, 0x74726166 /* traf */); if (trafContent === null || mfhdBox === null) { throw new Error("Smooth: Invalid ISOBMFF given"); } var tfhdOffsets = (0,get_box/* getBoxOffsets */.QL)(trafContent, 0x74666864 /* tfhd */); - var oldTrunOffsets = (0,get_box/* getBoxOffsets */.QL)(trafContent, 0x7472756E /* trun */); + var oldTrunOffsets = (0,get_box/* getBoxOffsets */.QL)(trafContent, 0x7472756e /* trun */); if (tfhdOffsets === null || oldTrunOffsets === null) { throw new Error("Smooth: Invalid ISOBMFF given"); } @@ -44669,22 +44803,22 @@ function patchSegment(segment, decodeTime) { tfhdBox.set([0, 0, 0, 1], tfhdOffsets[1] - tfhdOffsets[0] + 4 /* version + flags */); var tfdtBox = createTfdtBox(decodeTime); var newTrunBox = updateTrunDataOffset(oldTrunBox, oldTrunOffsets[1] - oldTrunOffsets[0]); - var sencContent = (0,get_box/* getUuidContent */.$H)(trafContent, 0xA2394F52, 0x5A9B4F14, 0xA2446C42, 0x7C648DF4); + var sencContent = (0,get_box/* getUuidContent */.$H)(trafContent, 0xa2394f52, 0x5a9b4f14, 0xa2446c42, 0x7c648df4); var newTrafBox = createTrafBox(tfhdBox, tfdtBox, newTrunBox, mfhdBox, sencContent); var newMoof = createBoxWithChildren("moof", [mfhdBox, newTrafBox]); - var newMoofOffsets = (0,get_box/* getBoxOffsets */.QL)(newMoof, 0x6D6F6F66 /* moof */); + var newMoofOffsets = (0,get_box/* getBoxOffsets */.QL)(newMoof, 0x6d6f6f66 /* moof */); var newTrafOffsets = (0,get_box/* getBoxOffsets */.QL)(newTrafBox, 0x74726166 /* traf */); - var newTrunOffsets = (0,get_box/* getBoxOffsets */.QL)(newTrunBox, 0x7472756E /* trun */); + var newTrunOffsets = (0,get_box/* getBoxOffsets */.QL)(newTrunBox, 0x7472756e /* trun */); if (newMoofOffsets === null || newTrafOffsets === null || newTrunOffsets === null) { throw new Error("Smooth: Invalid moof, trun or traf generation"); } /** index of the `data_offset` property from the trun box in the whole "moof". */ var indexOfTrunDataOffsetInMoof = newMoofOffsets[1] - newMoofOffsets[0] + mfhdBox.length + ( /* new traf size + name */ newTrafOffsets[1] - newTrafOffsets[0]) + tfhdBox.length + tfdtBox.length + ( /* new trun size + name */ - newTrunOffsets[1] - newTrunOffsets[0]) + 8 /* trun version + flags + `sample_count` */; + newTrunOffsets[1] - newTrunOffsets[0]) + 8; /* trun version + flags + `sample_count` */ var oldMoofLength = oldMoofOffsets[2] - oldMoofOffsets[0]; var newMoofSizeDiff = newMoof.length - oldMoofLength; - var oldMdatOffset = (0,get_box/* getBoxOffsets */.QL)(segment, 0x6D646174 /* "mdat" */); + var oldMdatOffset = (0,get_box/* getBoxOffsets */.QL)(segment, 0x6d646174 /* "mdat" */); if (oldMdatOffset === null) { throw new Error("Smooth: Invalid ISOBMFF given"); } @@ -44786,7 +44920,7 @@ function createMOOVBox(mvhd, mvex, trak) { * @returns {Uint8Array} */ function createInitSegment(timescale, type, stsd, mhd, width, height) { - var stbl = createBoxWithChildren("stbl", [stsd, createBox("stts", new Uint8Array(0x08)), createBox("stsc", new Uint8Array(0x08)), createBox("stsz", new Uint8Array(0x0C)), createBox("stco", new Uint8Array(0x08))]); + var stbl = createBoxWithChildren("stbl", [stsd, createBox("stts", new Uint8Array(0x08)), createBox("stsc", new Uint8Array(0x08)), createBox("stsz", new Uint8Array(0x0c)), createBox("stco", new Uint8Array(0x08))]); var url = createBox("url ", new Uint8Array([0, 0, 0, 1])); var dref = createDREFBox(url); var dinf = createBoxWithChildren("dinf", [dref]); @@ -44900,9 +45034,9 @@ var SAMPLING_FREQUENCIES = [96000, 88200, 64000, 48000, 44100, 32000, 24000, 220 function getAacesHeader(type, frequency, chans) { var freq = SAMPLING_FREQUENCIES.indexOf(frequency); // TODO : handle Idx = 15... var val; - val = (type & 0x3F) << 0x4; - val = (val | freq & 0x1F) << 0x4; - val = (val | chans & 0x1F) << 0x3; + val = (type & 0x3f) << 0x4; + val = (val | freq & 0x1f) << 0x4; + val = (val | chans & 0x1f) << 0x3; return (0,string_parsing/* bytesToHex */.My)((0,byte_parsing/* itobe2 */.ww)(val)); } ;// CONCATENATED MODULE: ./src/transports/smooth/isobmff/create_audio_init_segment.ts @@ -45582,7 +45716,7 @@ function addNextSegments(adaptation, nextSegments, dlSegment) { segmentEnd = chunkInfos.duration !== undefined ? chunkInfos.time + chunkInfos.duration : segment.end; } var lcCodec = codec.toLowerCase(); - if (mimeType === "application/ttml+xml+mp4" || lcCodec === "stpp" || lcCodec === "stpp.ttml.im1t") { + if (mimeType === "application/ttml+xml+mp4" || lcCodec === "stpp" || lcCodec === "stpp.ttml" || lcCodec === "stpp.ttml.im1t") { _sdType = "ttml"; } else if (lcCodec === "wvtt") { _sdType = "vtt"; @@ -45843,16 +45977,16 @@ function checkISOBMFFIntegrity(buffer, isInitSegment) { if (ftypIndex < 0) { throw new _errors__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A("INTEGRITY_ERROR", "Incomplete `ftyp` box"); } - var moovIndex = (0,_find_complete_box__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(buffer, 0x6D6F6F76 /* moov */); + var moovIndex = (0,_find_complete_box__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(buffer, 0x6d6f6f76 /* moov */); if (moovIndex < 0) { throw new _errors__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A("INTEGRITY_ERROR", "Incomplete `moov` box"); } } else { - var moofIndex = (0,_find_complete_box__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(buffer, 0x6D6F6F66 /* moof */); + var moofIndex = (0,_find_complete_box__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(buffer, 0x6d6f6f66 /* moof */); if (moofIndex < 0) { throw new _errors__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A("INTEGRITY_ERROR", "Incomplete `moof` box"); } - var mdatIndex = (0,_find_complete_box__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(buffer, 0x6D646174 /* mdat */); + var mdatIndex = (0,_find_complete_box__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(buffer, 0x6d646174 /* mdat */); if (mdatIndex < 0) { throw new _errors__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A("INTEGRITY_ERROR", "Incomplete `mdat` box"); } @@ -46592,8 +46726,8 @@ function bytesToBase64(bytes) { for (i = 2; i < length; i += 3) { result += base64abc[bytes[i - 2] >> 2]; result += base64abc[(bytes[i - 2] & 0x03) << 4 | bytes[i - 1] >> 4]; - result += base64abc[(bytes[i - 1] & 0x0F) << 2 | bytes[i] >> 6]; - result += base64abc[bytes[i] & 0x3F]; + result += base64abc[(bytes[i - 1] & 0x0f) << 2 | bytes[i] >> 6]; + result += base64abc[bytes[i] & 0x3f]; } if (i === length + 1) { // 1 octet yet to write @@ -46605,7 +46739,7 @@ function bytesToBase64(bytes) { // 2 octets yet to write result += base64abc[bytes[i - 2] >> 2]; result += base64abc[(bytes[i - 2] & 0x03) << 4 | bytes[i - 1] >> 4]; - result += base64abc[(bytes[i - 1] & 0x0F) << 2]; + result += base64abc[(bytes[i - 1] & 0x0f) << 2]; result += "="; } return result; @@ -46635,8 +46769,8 @@ function base64ToBytes(str) { for (var i = 0, j = 0; i < n; i += 4, j += 3) { buffer = getBase64Code(paddedStr.charCodeAt(i)) << 18 | getBase64Code(paddedStr.charCodeAt(i + 1)) << 12 | getBase64Code(paddedStr.charCodeAt(i + 2)) << 6 | getBase64Code(paddedStr.charCodeAt(i + 3)); result[j] = buffer >> 16; - result[j + 1] = buffer >> 8 & 0xFF; - result[j + 2] = buffer & 0xFF; + result[j + 1] = buffer >> 8 & 0xff; + result[j + 2] = buffer & 0xff; } return result.subarray(0, result.length - missingOctets); } @@ -46750,7 +46884,7 @@ function be8toi(bytes, offset) { * @returns {Uint8Array} */ function itobe2(num) { - return new Uint8Array([num >>> 8 & 0xFF, num & 0xFF]); + return new Uint8Array([num >>> 8 & 0xff, num & 0xff]); } /** * Translate Integer to a Uint8Array of length 4 of the corresponding big-endian @@ -46759,7 +46893,7 @@ function itobe2(num) { * @returns {Uint8Array} */ function itobe4(num) { - return new Uint8Array([num >>> 24 & 0xFF, num >>> 16 & 0xFF, num >>> 8 & 0xFF, num & 0xFF]); + return new Uint8Array([num >>> 24 & 0xff, num >>> 16 & 0xff, num >>> 8 & 0xff, num & 0xff]); } /** * Translate Integer to a Uint8Array of length 8 of the corresponding big-endian @@ -46772,7 +46906,7 @@ function itobe4(num) { function itobe8(num) { var l = num % 0x100000000; var h = (num - l) / 0x100000000; - return new Uint8Array([h >>> 24 & 0xFF, h >>> 16 & 0xFF, h >>> 8 & 0xFF, h & 0xFF, l >>> 24 & 0xFF, l >>> 16 & 0xFF, l >>> 8 & 0xFF, l & 0xFF]); + return new Uint8Array([h >>> 24 & 0xff, h >>> 16 & 0xff, h >>> 8 & 0xff, h & 0xff, l >>> 24 & 0xff, l >>> 16 & 0xff, l >>> 8 & 0xff, l & 0xff]); } /** * Translate groups of 2 little-endian bytes to Integer (from 0 up to 65535). @@ -46808,7 +46942,7 @@ function le8toi(bytes, offset) { * @returns {Uint8Array} */ function itole2(num) { - return new Uint8Array([num & 0xFF, num >>> 8 & 0xFF]); + return new Uint8Array([num & 0xff, num >>> 8 & 0xff]); } /** * Translate Integer to a Uint8Array of length 4 of the corresponding @@ -46817,7 +46951,7 @@ function itole2(num) { * @returns {Uint8Array} */ function itole4(num) { - return new Uint8Array([num & 0xFF, num >>> 8 & 0xFF, num >>> 16 & 0xFF, num >>> 24 & 0xFF]); + return new Uint8Array([num & 0xff, num >>> 8 & 0xff, num >>> 16 & 0xff, num >>> 24 & 0xff]); } /** * Check if an ArrayBuffer is equal to the bytes given. @@ -49568,8 +49702,8 @@ function strToUtf16LE(str) { var res = new Uint8Array(buffer); for (var i = 0; i < res.length; i += 2) { var value = str.charCodeAt(i / 2); - res[i] = value & 0xFF; - res[i + 1] = value >> 8 & 0xFF; + res[i] = value & 0xff; + res[i + 1] = value >> 8 & 0xff; } return res; } @@ -49584,8 +49718,8 @@ function strToBeUtf16(str) { var res = new Uint8Array(buffer); for (var i = 0; i < res.length; i += 2) { var value = str.charCodeAt(i / 2); - res[i + 1] = value & 0xFF; - res[i] = value >> 8 & 0xFF; + res[i + 1] = value & 0xff; + res[i] = value >> 8 & 0xff; } return res; } @@ -49713,7 +49847,7 @@ function strToUtf8(str) { // UTF-16 representation var res = new Uint8Array(utf8Str.length); for (var _i = 0; _i < utf8Str.length; _i++) { - res[_i] = utf8Str.charCodeAt(_i) & 0xFF; // first byte should be 0x00 anyway + res[_i] = utf8Str.charCodeAt(_i) & 0xff; // first byte should be 0x00 anyway } return res; } @@ -49770,7 +49904,7 @@ function utf8ToStr(data) { } var uint8 = data; // If present, strip off the UTF-8 BOM. - if (uint8[0] === 0xEF && uint8[1] === 0xBB && uint8[2] === 0xBF) { + if (uint8[0] === 0xef && uint8[1] === 0xbb && uint8[2] === 0xbf) { uint8 = uint8.subarray(3); } // We're basically doing strToUtf8 in reverse. @@ -49809,7 +49943,7 @@ function hexToBytes(str) { var len = str.length; var arr = new Uint8Array(len / 2); for (var i = 0, j = 0; i < len; i += 2, j++) { - arr[j] = parseInt(str.substring(i, i + 2), 16) & 0xFF; + arr[j] = parseInt(str.substring(i, i + 2), 16) & 0xff; } return arr; } @@ -49827,7 +49961,7 @@ function bytesToHex(bytes, sep) { var hex = ""; for (var i = 0; i < bytes.byteLength; i++) { hex += (bytes[i] >>> 4).toString(16); - hex += (bytes[i] & 0xF).toString(16); + hex += (bytes[i] & 0xf).toString(16); if (sep.length > 0 && i < bytes.byteLength - 1) { hex += sep; } @@ -51603,7 +51737,7 @@ function parseConstructorOptions(options) { if (isNaN(maxVideoBitrate)) { throw new Error("Invalid maxVideoBitrate parameter. Should be a number."); } else if (minVideoBitrate > maxVideoBitrate) { - throw new Error("Invalid maxVideoBitrate parameter. Its value, \"" + (maxVideoBitrate + "\", is inferior to the set minVideoBitrate, \"") + (minVideoBitrate + "\"")); + throw new Error('Invalid maxVideoBitrate parameter. Its value, "' + (maxVideoBitrate + "\", is inferior to the set minVideoBitrate, \"") + (minVideoBitrate + "\"")); } } if ((0,is_null_or_undefined/* default */.A)(options.maxAudioBitrate)) { @@ -51613,7 +51747,7 @@ function parseConstructorOptions(options) { if (isNaN(maxAudioBitrate)) { throw new Error("Invalid maxAudioBitrate parameter. Should be a number."); } else if (minAudioBitrate > maxAudioBitrate) { - throw new Error("Invalid maxAudioBitrate parameter. Its value, \"" + (maxAudioBitrate + "\", is inferior to the set minAudioBitrate, \"") + (minAudioBitrate + "\"")); + throw new Error('Invalid maxAudioBitrate parameter. Its value, "' + (maxAudioBitrate + "\", is inferior to the set minAudioBitrate, \"") + (minAudioBitrate + "\"")); } } var stopAtEnd = (0,is_null_or_undefined/* default */.A)(options.stopAtEnd) ? DEFAULT_STOP_AT_END : !!options.stopAtEnd; @@ -51801,14 +51935,14 @@ function parseLoadVideoOptions(options) { if (textTrackMode === "html") { // TODO Better way to express that in TypeScript? if ((0,is_null_or_undefined/* default */.A)(options.textTrackElement)) { - throw new Error("You have to provide a textTrackElement " + "in \"html\" textTrackMode."); + throw new Error("You have to provide a textTrackElement " + 'in "html" textTrackMode.'); } else if (!(options.textTrackElement instanceof HTMLElement)) { throw new Error("textTrackElement should be an HTMLElement."); } else { textTrackElement = options.textTrackElement; } } else if (!(0,is_null_or_undefined/* default */.A)(options.textTrackElement)) { - src_log/* default */.A.warn("API: You have set a textTrackElement without being in " + "an \"html\" textTrackMode. It will be ignored."); + src_log/* default */.A.warn("API: You have set a textTrackElement without being in " + 'an "html" textTrackMode. It will be ignored.'); } if (!(0,is_null_or_undefined/* default */.A)(options.startAt)) { if ("wallClockTime" in options.startAt && options.startAt.wallClockTime instanceof Date) { @@ -53656,7 +53790,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) { // Workaround to support Firefox autoplay on FF 42. // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624 videoElement.preload = "auto"; - _this.version = /* PLAYER_VERSION */"3.33.3"; + _this.version = /* PLAYER_VERSION */"3.33.4"; _this.log = src_log/* default */.A; _this.state = "STOPPED"; _this.videoElement = videoElement; @@ -54898,7 +55032,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) { positionWanted = timeObj.wallClockTime; } } else { - throw new Error("invalid time object. You must set one of the " + "following properties: \"relative\", \"position\" or " + "\"wallClockTime\""); + throw new Error("invalid time object. You must set one of the " + 'following properties: "relative", "position" or ' + '"wallClockTime"'); } } if (positionWanted === undefined) { @@ -56144,7 +56278,7 @@ var Player = /*#__PURE__*/function (_EventEmitter) { * Use of a WeakSet ensure the object is garbage collected if it's not used anymore. */ Player._priv_currentlyUsedVideoElements = new WeakSet(); -Player.version = /* PLAYER_VERSION */"3.33.3"; +Player.version = /* PLAYER_VERSION */"3.33.4"; /* harmony default export */ var public_api = (Player); ;// CONCATENATED MODULE: ./src/core/api/index.ts /** @@ -56185,6 +56319,7 @@ Player.version = /* PLAYER_VERSION */"3.33.3"; /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/no-var-requires */ +/* eslint-disable @typescript-eslint/no-require-imports */ /** * Selects the features to include. diff --git a/dist/rx-player.min.js b/dist/rx-player.min.js index 4af7adf827..24c4458d5f 100644 --- a/dist/rx-player.min.js +++ b/dist/rx-player.min.js @@ -1,2 +1,2 @@ /*! For license information please see rx-player.min.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.RxPlayer=t():e.RxPlayer=t()}(self,(function(){return function(){var e={9770:function(e,t,n){"use strict";n.d(t,{j:function(){return a},t:function(){return o}});var r=n(6787),i=n(2186).A?void 0:window,a=void 0===i?void 0:(0,r.A)(i.MediaSource)?(0,r.A)(i.MozMediaSource)?(0,r.A)(i.WebKitMediaSource)?i.MSMediaSource:i.WebKitMediaSource:i.MozMediaSource:i.MediaSource,o={HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4}},443:function(e,t,n){"use strict";n.d(t,{A7:function(){return g},Fr:function(){return c},P5:function(){return m},Pb:function(){return v},ZN:function(){return p},dX:function(){return f},gm:function(){return d},h$:function(){return l},hF:function(){return h},lw:function(){return u},op:function(){return s},qe:function(){return y}});var r,i,a,o=n(2186),s=!1,u=!1,l=!1,d=!1,c=!1,f=!1,v=!1,p=!1,h=!1,m=!1,g=!1,y=!1;o.A||(void 0!==window.MSInputMethodContext&&void 0!==document.documentMode?(u=!0,l=!0):"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/(Trident|Edge)\//.test(navigator.userAgent)?l=!0:-1!==navigator.userAgent.toLowerCase().indexOf("edg/")?s=!0:-1!==navigator.userAgent.toLowerCase().indexOf("firefox")?d=!0:"string"==typeof navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)?f=!0:(Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>=0||"[object SafariRemoteNotification]"===(null===(i=null===(r=window.safari)||void 0===r?void 0:r.pushNotification)||void 0===i?void 0:i.toString())||/Safari\/(\d+)/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&-1!==(null===(a=navigator.vendor)||void 0===a?void 0:a.indexOf("Apple"))&&!/Chrome\/(\d+)/.test(navigator.userAgent)&&!/Chromium\/(\d+)/.test(navigator.userAgent))&&(c=!0),/SamsungBrowser/.test(navigator.userAgent)&&(v=!0),-1!==navigator.userAgent.indexOf("PlayStation 5")?g=!0:/Tizen/.test(navigator.userAgent)?p=!0:/[Ww]eb[O0]S/.test(navigator.userAgent)?(h=!0,/[Ww]eb[O0]S.TV-2022/.test(navigator.userAgent)||/[Cc]hr[o0]me\/87/.test(navigator.userAgent)||(/[Ww]eb[O0]S.TV-2021/.test(navigator.userAgent)||/[Cc]hr[o0]me\/79/.test(navigator.userAgent))):/[Pp]anasonic/.test(navigator.userAgent)?m=!0:-1!==navigator.userAgent.indexOf("Xbox")&&(y=!0))},3116:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(9477),i=n(6787);function a(e){var t=e.textTracks;if(!(0,i.A)(t)){for(var n=0;n=0;o--)if("track"===a[o].nodeName)try{e.removeChild(a[o])}catch(e){r.A.warn("Compat: Could not remove text track child from element.")}}e.src="",e.removeAttribute("src")}},5121:function(e,t,n){"use strict";n.d(t,{Ah:function(){return _},Bi:function(){return P},G1:function(){return w},HQ:function(){return R},ID:function(){return M},R5:function(){return x},Sb:function(){return p},VS:function(){return C},Vb:function(){return y},XC:function(){return E},Z1:function(){return T},bF:function(){return S},c_:function(){return b},g9:function(){return D},jf:function(){return f},ng:function(){return g},o8:function(){return m},qF:function(){return I},rR:function(){return A},yS:function(){return k}});var r=n(5151),i=n(2384),a=n(6787),o=n(8060),s=n(8315),u=n(2186),l=["","webkit","moz","ms"],d=u.A||null==window.devicePixelRatio||0===window.devicePixelRatio?1:window.devicePixelRatio;function c(e,t){return t.filter((function(t){return function(e,t){var n=document.createElement(e.tagName),r="on"+t;return r in n||(n.setAttribute(r,"return;"),"function"==typeof n[r])}(e,t)}))[0]}function f(e,t){var n,r=function(e,t){return e.reduce((function(e,n){return e.concat((void 0===t?l:t).map((function(e){return e+n})))}),[])}(e,t);return function(e,t,a){if(!a.isCancelled()){if(e instanceof HTMLElement){if(void 0===n&&(n=c(e,r)),!(0,i.A)(n))return void 0;e.addEventListener(n,t),a.register((function(){void 0!==n&&e.removeEventListener(n,t)}))}r.forEach((function(n){var r=!1;"function"==typeof e.addEventListener?e.addEventListener(n,t):(r=!0,e["on"+n]=t),a.register((function(){"function"==typeof e.removeEventListener&&e.removeEventListener(n,t),r&&delete e["on"+n]}))}))}}}function v(e){var t,n=document;null!=n.hidden?t="":null!=n.mozHidden?t="moz":null!=n.msHidden?t="ms":null!=n.webkitHidden&&(t="webkit");var r=(0,i.A)(t)?t+"Hidden":"hidden",a=(0,i.A)(t)?t+"visibilitychange":"visibilitychange",o=document[r],u=new s.A(!o,e);return N(document,a,(function(){var e=!document[r];u.setValueIfChanged(e)}),e),u}function p(e){var t,n=v(e),i=new s.A(!0,e);return e.register((function(){clearTimeout(t),t=void 0})),n.onUpdate((function(e){if(clearTimeout(t),t=void 0,!e){var n=r.A.getCurrent().INACTIVITY_DELAY;t=window.setTimeout((function(){i.setValueIfChanged(!1)}),n)}i.setValueIfChanged(!0)}),{clearSignal:e,emitCurrentValue:!0}),i}function h(e,t){var n=t.width,r=t.height/(e.clientHeight/e.clientWidth);return Math.min(n,r)}function m(e,t){var n=e;if(!0===n.webkitSupportsPresentationMode&&"function"==typeof n.webkitSetPresentationMode){var r="picture-in-picture"===n.webkitPresentationMode,i=new s.A({isEnabled:r,pipWindow:null},t);return N(n,"webkitpresentationmodechanged",(function(){var e="picture-in-picture"===n.webkitPresentationMode;i.setValue({isEnabled:e,pipWindow:null})}),t),i}var a=document.pictureInPictureElement===n,o=new s.A({isEnabled:a,pipWindow:null},t);return N(n,"enterpictureinpicture",(function(e){var t;o.setValue({isEnabled:!0,pipWindow:null!==(t=e.pictureInPictureWindow)&&void 0!==t?t:null})}),t),N(n,"leavepictureinpicture",(function(){o.setValue({isEnabled:!1,pipWindow:null})}),t),o}function g(e,t){var n,i=v(t),a=new s.A(!0,t);return t.register((function(){clearTimeout(n),n=void 0})),i.onUpdate(o,{clearSignal:t}),e.onUpdate(o,{clearSignal:t}),o(),a;function o(){if(clearTimeout(n),n=void 0,e.getValue().isEnabled||i.getValue())a.setValueIfChanged(!0);else{var t=r.A.getCurrent().INACTIVITY_DELAY;n=window.setTimeout((function(){a.setValueIfChanged(!1)}),t)}}}function y(e,t,n){var r=new s.A(e.clientWidth*d,n),i=o.A;t.onUpdate(l,{clearSignal:n}),N(window,"resize",l,n);var u=window.setInterval(l,2e4);return l(),n.register((function(){i(),clearInterval(u)})),r;function l(){i();var n=t.getValue();if(n.isEnabled)if((0,a.A)(n.pipWindow))r.setValueIfChanged(1/0);else{var s=n.pipWindow,u=h(e,s),l=function(){r.setValueIfChanged(h(e,s)*d)};s.addEventListener("resize",l),i=function(){s.removeEventListener("resize",l),i=o.A},r.setValueIfChanged(u*d)}else r.setValueIfChanged(e.clientWidth*d)}}f(["loadedmetadata"]),f(["timeupdate"]);var A=f(["fullscreenchange","FullscreenChange"],l.concat("MS")),_=f(["addtrack"]),b=f(["removetrack"]),S=f(["sourceopen","webkitsourceopen"]),E=f(["sourceclose","webkitsourceclose"]),T=f(["sourceended","webkitsourceended"]),w=f(["update"]),k=f(["removesourcebuffer"]),I=f(["keymessage","message"]),x=f(["keyadded","ready"]),R=f(["keyerror","error"]),C=f(["keystatuseschange"]),M=f(["seeking"]),P=f(["seeked"]),D=f(["ended"]);function N(e,t,n,r){e.addEventListener(t,n),r.register((function(){e.removeEventListener(t,n)}))}},2186:function(e,t){"use strict";var n="undefined"==typeof window;t.A=n},7402:function(e,t,n){"use strict";function r(e){return"function"==typeof window.VTTCue&&e instanceof window.VTTCue}n.d(t,{A:function(){return r}})},8068:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(9477),i=n(6787);function a(e,t,n){if(e>=t)return r.A.warn("Compat: Invalid cue times: "+e+" - "+t),null;if((0,i.A)(window.VTTCue)){if((0,i.A)(window.TextTrackCue))throw new Error("VTT cues not supported in your target");return new TextTrackCue(e,t,n)}return new VTTCue(e,t,n)}},2097:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(443);function i(){return r.Pb}},5151:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r={DEFAULT_UNMUTED_VOLUME:.1,DEFAULT_REQUEST_TIMEOUT:3e4,DEFAULT_TEXT_TRACK_MODE:"native",DEFAULT_MANUAL_BITRATE_SWITCHING_MODE:"seamless",DEFAULT_ENABLE_FAST_SWITCHING:!0,DEFAULT_AUDIO_TRACK_SWITCHING_MODE:"seamless",DELTA_POSITION_AFTER_RELOAD:{bitrateSwitch:-.1,trackSwitch:{audio:-.7,video:-.1,other:0}},DEFAULT_CODEC_SWITCHING_BEHAVIOR:"continue",DEFAULT_AUTO_PLAY:!1,DEFAULT_SHOW_NATIVE_SUBTITLE:!0,DEFAULT_STOP_AT_END:!0,DEFAULT_WANTED_BUFFER_AHEAD:30,DEFAULT_MAX_BUFFER_AHEAD:1/0,DEFAULT_MAX_BUFFER_BEHIND:1/0,DEFAULT_MAX_VIDEO_BUFFER_SIZE:1/0,MAXIMUM_MAX_BUFFER_AHEAD:{text:18e3},MINIMUM_MAX_BUFFER_AHEAD:{text:120},MAXIMUM_MAX_BUFFER_BEHIND:{text:18e3},DEFAULT_INITIAL_BITRATES:{audio:0,video:0,other:0},DEFAULT_MIN_BITRATES:{audio:0,video:0,other:0},DEFAULT_MAX_BITRATES:{audio:1/0,video:1/0,other:1/0},INACTIVITY_DELAY:6e4,DEFAULT_THROTTLE_WHEN_HIDDEN:!1,DEFAULT_THROTTLE_VIDEO_BITRATE_WHEN_HIDDEN:!1,DEFAULT_LIMIT_VIDEO_WIDTH:!1,DEFAULT_LIVE_GAP:{DEFAULT:10,LOW_LATENCY:3.5},BUFFER_DISCONTINUITY_THRESHOLD:.2,FORCE_DISCONTINUITY_SEEK_DELAY:5e3,BITRATE_REBUFFERING_RATIO:1.5,BUFFER_GC_GAPS:{CALM:240,BEEFY:30},DEFAULT_MAX_MANIFEST_REQUEST_RETRY:4,DEFAULT_CDN_DOWNGRADE_TIME:60,DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR:4,DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE:1/0,INITIAL_BACKOFF_DELAY_BASE:{REGULAR:200,LOW_LATENCY:50},MAX_BACKOFF_DELAY_BASE:{REGULAR:3e3,LOW_LATENCY:1e3},SAMPLING_INTERVAL_MEDIASOURCE:1e3,SAMPLING_INTERVAL_LOW_LATENCY:250,SAMPLING_INTERVAL_NO_MEDIASOURCE:500,ABR_ENTER_BUFFER_BASED_ALGO:10,ABR_EXIT_BUFFER_BASED_ALGO:5,ABR_MINIMUM_TOTAL_BYTES:15e4,ABR_MINIMUM_CHUNK_SIZE:16e3,ABR_STARVATION_FACTOR:{DEFAULT:.72,LOW_LATENCY:.72},ABR_REGULAR_FACTOR:{DEFAULT:.72,LOW_LATENCY:.72},ABR_STARVATION_GAP:{DEFAULT:5,LOW_LATENCY:5},OUT_OF_STARVATION_GAP:{DEFAULT:7,LOW_LATENCY:7},ABR_STARVATION_DURATION_DELTA:.1,ABR_FAST_EMA:2,ABR_SLOW_EMA:10,RESUME_GAP_AFTER_SEEKING:{DEFAULT:1.5,LOW_LATENCY:.5},RESUME_GAP_AFTER_NOT_ENOUGH_DATA:{DEFAULT:.5,LOW_LATENCY:.5},RESUME_GAP_AFTER_BUFFERING:{DEFAULT:5,LOW_LATENCY:.5},REBUFFERING_GAP:{DEFAULT:.5,LOW_LATENCY:.2},MINIMUM_BUFFER_AMOUNT_BEFORE_FREEZING:2,UNFREEZING_SEEK_DELAY:6e3,FREEZING_STALLED_DELAY:600,UNFREEZING_DELTA_POSITION:.001,SEGMENT_SYNCHRONIZATION_DELAY:1500,MISSING_DATA_TRIGGER_SYNC_DELAY:.1,MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT:.15,MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE:.4,MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE:.3,MINIMUM_SEGMENT_SIZE:.005,APPEND_WINDOW_SECURITIES:{START:.2,END:.1},MAXIMUM_HTML_TEXT_TRACK_UPDATE_INTERVAL:50,TEXT_TRACK_SIZE_CHECKS_INTERVAL:250,BUFFER_PADDING:{audio:1,video:3,other:1},SEGMENT_PRIORITIES_STEPS:[2,4,8,12,18,25],MAX_HIGH_PRIORITY_LEVEL:1,MIN_CANCELABLE_PRIORITY:3,EME_DEFAULT_VIDEO_CODECS:['video/mp4;codecs="avc1.4d401e"','video/mp4;codecs="avc1.42e01e"','video/webm;codecs="vp8"'],EME_DEFAULT_AUDIO_CODECS:['audio/mp4;codecs="mp4a.40.2"',"audio/webm;codecs=opus"],EME_DEFAULT_WIDEVINE_ROBUSTNESSES:["HW_SECURE_ALL","HW_SECURE_DECODE","HW_SECURE_CRYPTO","SW_SECURE_DECODE","SW_SECURE_CRYPTO"],EME_DEFAULT_PLAYREADY_ROBUSTNESSES:["3000","2000"],EME_KEY_SYSTEMS:{clearkey:["webkit-org.w3.clearkey","org.w3.clearkey"],widevine:["com.widevine.alpha"],playready:["com.microsoft.playready.recommendation","com.microsoft.playready","com.chromecast.playready","com.youtube.playready"],fairplay:["com.apple.fps.1_0"]},MAX_CONSECUTIVE_MANIFEST_PARSING_IN_UNSAFE_MODE:10,MIN_MANIFEST_PARSING_TIME_TO_ENTER_UNSAFE_MODE:200,MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY:300,OUT_OF_SYNC_MANIFEST_REFRESH_DELAY:3e3,FAILED_PARTIAL_UPDATE_MANIFEST_REFRESH_DELAY:3e3,DASH_FALLBACK_LIFETIME_WHEN_MINIMUM_UPDATE_PERIOD_EQUAL_0:3,EME_DEFAULT_MAX_SIMULTANEOUS_MEDIA_KEY_SESSIONS:15,EME_MAX_STORED_PERSISTENT_SESSION_INFORMATION:1e3,EME_WAITING_DELAY_LOADED_SESSION_EMPTY_KEYSTATUSES:100,FORCED_ENDED_THRESHOLD:8e-4,ADAPTATION_SWITCH_BUFFER_PADDINGS:{video:{before:5,after:5},audio:{before:2,after:2.5},text:{before:0,after:0},image:{before:0,after:0}},SOURCE_BUFFER_FLUSHING_INTERVAL:500,CONTENT_REPLACEMENT_PADDING:1.2,CACHE_LOAD_DURATION_THRESHOLDS:{video:50,audio:10},STREAM_EVENT_EMITTER_POLL_INTERVAL:250,DEFAULT_MAXIMUM_TIME_ROUNDING_ERROR:.001,BUFFERED_HISTORY_RETENTION_TIME:6e4,BUFFERED_HISTORY_MAXIMUM_ENTRIES:200,MIN_BUFFER_AHEAD:5,UPTO_CURRENT_POSITION_CLEANUP:5},i=n(8935);function a(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function o(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=e.length||(e[t].enabled=!0)}(this._audioTracks.map((function(e){return e.nativeTrack})),e)},t}(a.A);function f(e){for(var t=0;t=0){var i=e instanceof ArrayBuffer?new Uint8Array(e):e,a=JSON.parse((0,x.Es)(i)),o=(0,k.K)(a.keys[0].k),s=(0,k.K)(a.keys[0].kid);n(t._vid.webkitAddKey(t._key,o,s,""))}else n(t._vid.webkitAddKey(t._key,e,null,""))}catch(e){r(e)}}))},n.generateRequest=function(e,t){var n=this;return new Promise((function(e){n._vid.webkitGenerateKeyRequest(n._key,t),e()}))},n.close=function(){var e=this;return new Promise((function(t){e._closeSession(),t()}))},n.load=function(){return Promise.resolve(!1)},n.remove=function(){return Promise.resolve()},t}(A.A),M=function(){function e(e){this._keySystem=e}var t=e.prototype;return t._setVideo=function(e){var t=this;return b((function(){if(!R(e))throw new Error("Video not attached to the MediaKeys");t._videoElement=e}))},t.createSession=function(){if(null==this._videoElement)throw new Error("Video not attached to the MediaKeys");return new C(this._videoElement,this._keySystem)},t.setServerCertificate=function(){throw new Error("Server certificate is not implemented in your browser")},e}();var P=n(9828),D=n(5553);function N(e,t){var n=e;return b((function(){if(void 0===n.webkitSetMediaKeys)throw new Error("No webKitMediaKeys API.");n.webkitSetMediaKeys(t)}))}var O=function(e){function t(t,n,r){var i;return(i=e.call(this)||this)._serverCertificate=r,i._videoElement=t,i._keyType=n,i._unbindSession=I.A,i._closeSession=I.A,i.closed=new Promise((function(e){i._closeSession=e})),i.keyStatuses=new Map,i.expiration=NaN,i}(0,a.A)(t,e);var n=t.prototype;return n.update=function(e){var t=this;return new Promise((function(n,r){if(void 0===t._nativeSession||void 0===t._nativeSession.update||"function"!=typeof t._nativeSession.update)return r("Unavailable WebKit key session.");try{var i;i=e instanceof ArrayBuffer?new Uint8Array(e):e instanceof Uint8Array?e:new Uint8Array(e.buffer),n(t._nativeSession.update(i))}catch(e){r(e)}}))},n.generateRequest=function(e,t){var n=this;return new Promise((function(e){var r,i,a,o=n._videoElement;if(void 0===(null===(r=o.webkitKeys)||void 0===r?void 0:r.createSession))throw new Error("No WebKitMediaKeys API.");if(a=n._keyType,(0,P.A)(a,"com.apple.fps")){if(void 0===n._serverCertificate)throw new Error("A server certificate is needed for creating fairplay session.");i=function(e,t){var n=e instanceof Uint8Array?e:new Uint8Array(e),r=t instanceof Uint8Array?t:new Uint8Array(t);if((0,D.eR)(n,0)+4!==n.length)throw new Error("Unsupported WebKit initData.");var i=(0,x.Yg)(n),a=i.indexOf("skd://"),o=a>-1?i.substring(a+6):i,s=(0,x.kY)(o),u=0,l=new Uint8Array(n.byteLength+4+s.byteLength+4+r.byteLength);return l.set(n),u+=n.length,l.set((0,D.Wz)(s.byteLength),u),u+=4,l.set(s,u),u+=s.byteLength,l.set((0,D.Wz)(r.byteLength),u),u+=4,l.set(r,u),l}(t,n._serverCertificate)}else i=t;var s=o.webkitKeys.createSession("video/mp4",i);if(null==s)throw new Error("Impossible to get the key sessions");n._listenEvent(s),n._nativeSession=s,e()}))},n.close=function(){var e=this;return new Promise((function(t,n){e._unbindSession(),e._closeSession(),void 0!==e._nativeSession?(e._nativeSession.close(),t()):n("No session to close.")}))},n.load=function(){return Promise.resolve(!1)},n.remove=function(){return Promise.resolve()},n._listenEvent=function(e){var t=this;this._unbindSession();var n=function(e){t.trigger(e.type,e)};["keymessage","message","keyadded","ready","keyerror","error"].forEach((function(t){e.addEventListener(t,n),e.addEventListener("webkit"+t,n)})),this._unbindSession=function(){["keymessage","message","keyadded","ready","keyerror","error"].forEach((function(t){e.removeEventListener(t,n),e.removeEventListener("webkit"+t,n)}))}},(0,m.A)(t,[{key:"sessionId",get:function(){var e,t;return null!==(t=null===(e=this._nativeSession)||void 0===e?void 0:e.sessionId)&&void 0!==t?t:""}}])}(A.A),L=function(){function e(e){if(void 0===r)throw new Error("No WebKitMediaKeys API.");this._keyType=e,this._mediaKeys=new r(e)}var t=e.prototype;return t._setVideo=function(e){if(this._videoElement=e,void 0===this._videoElement)throw new Error("Video not attached to the MediaKeys");return N(this._videoElement,this._mediaKeys)},t.createSession=function(){if(void 0===this._videoElement||void 0===this._mediaKeys)throw new Error("Video not attached to the MediaKeys");return new O(this._videoElement,this._keyType,this._serverCertificate)},t.setServerCertificate=function(e){return this._serverCertificate=e,Promise.resolve()},e}();function U(){if(void 0===r)throw new Error("No WebKitMediaKeys API.");return{isTypeSupported:r.isTypeSupported,createCustomMediaKeys:function(e){return new L(e)},setMediaKeys:function(e,t){if(null===t)return N(e,t);if(!(t instanceof L))throw new Error("Custom setMediaKeys is supposed to be called with webkit custom MediaKeys.");return t._setVideo(e)}}}var B=function(e){var t,n,i,a=F;if("standard"!==e&&("auto"!==e||(c.Fr||c.dX)&&void 0!==r)||!v.A&&(0,d.A)(navigator.requestMediaKeySystemAccess)){var o,s;if("webkit"===e&&void 0!==r){n=(0,f.jf)(["needkey"]);var p=U();o=p.isTypeSupported,s=p.createCustomMediaKeys,a=p.setMediaKeys,i="webkit"}else if(R(HTMLVideoElement.prototype)){n=(0,f.jf)(["needkey"]);var m={isTypeSupported:function(e){var t=document.querySelector("video");return null==t&&(t=document.createElement("video")),null!=t&&"function"==typeof t.canPlayType&&!!t.canPlayType("video/mp4",e)},createCustomMediaKeys:function(e){return new M(e)},setMediaKeys:function(e,t){if(null===t)return Promise.resolve(void 0);if(!(t instanceof M))throw new Error("Custom setMediaKeys is supposed to be called with old webkit custom MediaKeys.");return t._setVideo(e)}};o=m.isTypeSupported,s=m.createCustomMediaKeys,a=m.setMediaKeys,i="older-webkit"}else if(void 0!==r){n=(0,f.jf)(["needkey"]);var y=U();o=y.isTypeSupported,s=y.createCustomMediaKeys,a=y.setMediaKeys,i="webkit"}else if(c.lw&&void 0!==h){n=(0,f.jf)(["encrypted","needkey"]);var A={isTypeSupported:function(e,t){if(void 0===h)throw new Error("No MSMediaKeys API.");return void 0!==t?h.isTypeSupported(e,t):h.isTypeSupported(e)},createCustomMediaKeys:function(e){return new T(e)},setMediaKeys:function(e,t){if(null===t)return Promise.resolve(void 0);if(!(t instanceof T))throw new Error("Custom setMediaKeys is supposed to be called with IE11 custom MediaKeys.");return t._setVideo(e)}};o=A.isTypeSupported,s=A.createCustomMediaKeys,a=A.setMediaKeys,i="ms"}else if(void 0!==S){n=(0,f.jf)(["encrypted","needkey"]);var _={isTypeSupported:function(e,t){if(void 0===S)throw new Error("No MozMediaKeys API.");return void 0!==t?S.isTypeSupported(e,t):S.isTypeSupported(e)},createCustomMediaKeys:function(e){if(void 0===S)throw new Error("No MozMediaKeys API.");return new S(e)},setMediaKeys:function(e,t){return b((function(){var n=e;if(void 0===n.mozSetMediaKeys||"function"!=typeof n.mozSetMediaKeys)throw new Error("Can't set video on MozMediaKeys.");return n.mozSetMediaKeys(t)}))}};o=_.isTypeSupported,s=_.createCustomMediaKeys,a=_.setMediaKeys,i="moz"}else{n=(0,f.jf)(["encrypted","needkey"]);var E=window.MediaKeys,w=function(){if(void 0===E)throw new u.A("MEDIA_KEYS_NOT_SUPPORTED","No `MediaKeys` implementation found in the current browser.");if(void 0===E.isTypeSupported){throw new Error("This browser seems to be unable to play encrypted contents currently.Note: Some browsers do not allow decryption in some situations, like when not using HTTPS.")}};o=function(e){return w(),(0,l.h)("function"==typeof E.isTypeSupported),E.isTypeSupported(e)},s=function(e){return w(),new E(e)},i="unknown"}t=function(e,t){if(!o(e))return Promise.reject(new Error("Unsupported key type"));for(var n=0;ne.length)return z.A.warn("Compat: Unrecognized initialization data. Use as is."),[{systemId:void 0,data:e}];var i=e.subarray(n,n+r),a={systemId:(0,K.L)(i,8),data:i};H(t,a)?z.A.warn("Compat: Duplicated PSSH found in initialization data, removing it."):t.push(a),n+=r}return n!==e.length?(z.A.warn("Compat: Unrecognized initialization data. Use as is."),[{systemId:void 0,data:e}]):t}(new Uint8Array(t));return{type:n,values:r}}var j=n(5151),Y=n(1956),Q=n(1858),$=n(1729),X=n(4031),Z=n(7365);function J(e){return Z.A.setState(e,null),V.setMediaKeys(e,null).then((function(){z.A.info("DRM: MediaKeys disabled with success")})).catch((function(e){z.A.error("DRM: Could not disable MediaKeys",e instanceof Error?e:"Unknown Error")}))}function ee(){return(ee=(0,i.A)(s().mark((function e(t,n,r){var i,a,o,u,l,d,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.emeImplementation,a=n.keySystemOptions,o=n.loadedSessionsStore,u=n.mediaKeySystemAccess,l=n.mediaKeys,d=Z.A.getState(t),c=null!==d&&d.loadedSessionsStore!==o?d.loadedSessionsStore.closeAllSessions():Promise.resolve(),e.next=5,c;case 5:if(!r.isCancelled()){e.next=7;break}throw r.cancellationError;case 7:if(Z.A.setState(t,{emeImplementation:i,keySystemOptions:a,mediaKeySystemAccess:u,mediaKeys:l,loadedSessionsStore:o}),t.mediaKeys!==l){e.next=10;break}return e.abrupt("return");case 10:z.A.info("DRM: Attaching MediaKeys to the media element"),i.setMediaKeys(t,l).then((function(){z.A.info("DRM: MediaKeys attached with success")})).catch((function(e){z.A.error("DRM: Could not set MediaKeys",e instanceof Error?e:"Unknown Error")}));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function te(e){if(""===e.sessionId)return!1;var t=e.keyStatuses,n=[];return t.forEach((function(e){n.push(e)})),n.length<=0?(z.A.debug("DRM: isSessionUsable: MediaKeySession given has an empty keyStatuses",e.sessionId),!1):(0,X.A)(n,"expired")?(z.A.debug("DRM: isSessionUsable: MediaKeySession given has an expired key",e.sessionId),!1):(0,X.A)(n,"internal-error")?(z.A.debug("DRM: isSessionUsable: MediaKeySession given has a key with an internal-error",e.sessionId),!1):(z.A.debug("DRM: isSessionUsable: MediaKeySession is usable",e.sessionId),!0)}function ne(e,t,n,r){var i=e.loadedSessionsStore,a=e.persistentSessionsStore;return"temporary"===n?re(i,t):null===a?(z.A.warn("DRM: Cannot create persistent MediaKeySession, PersistentSessionsStore not created."),re(i,t)):function(e,t,n,r){return ie.apply(this,arguments)}(i,a,t,r)}function re(e,t){z.A.info("DRM: Creating a new temporary session");var n=e.createSession(t,"temporary");return Promise.resolve({type:"created-session",value:n})}function ie(){return ie=(0,i.A)(s().mark((function e(t,n,r,a){var o,u,l,d,c,f;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f=function(){return f=(0,i.A)(s().mark((function e(){var i,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===a.cancellationError){e.next=2;break}throw a.cancellationError;case 2:return z.A.info("DRM: Removing previous persistent session."),null!==(i=n.get(r))&&n.delete(i.sessionId),e.prev=5,e.next=8,t.closeSession(o.mediaKeySession);case 8:e.next=15;break;case 10:if(e.prev=10,e.t0=e.catch(5),""===o.mediaKeySession.sessionId){e.next=14;break}throw e.t0;case 14:t.removeSessionWithoutClosingIt(o.mediaKeySession);case 15:if(null===a.cancellationError){e.next=17;break}throw a.cancellationError;case 17:return u=t.createSession(r,"persistent-license"),e.abrupt("return",{type:"created-session",value:u});case 19:case"end":return e.stop()}}),e,null,[[5,10]])}))),f.apply(this,arguments)},c=function(){return f.apply(this,arguments)},null===a.cancellationError){e.next=4;break}throw a.cancellationError;case 4:if(z.A.info("DRM: Creating persistent MediaKeySession"),o=t.createSession(r,"persistent-license"),null!==(u=n.getAndReuse(r))){e.next=9;break}return e.abrupt("return",{type:"created-session",value:o});case 9:return e.prev=9,e.next=12,t.loadPersistentSession(o.mediaKeySession,u.sessionId);case 12:if(l=e.sent){e.next=19;break}return z.A.warn("DRM: No data stored for the loaded session"),n.delete(u.sessionId),t.removeSessionWithoutClosingIt(o.mediaKeySession),d=t.createSession(r,"persistent-license"),e.abrupt("return",{type:"created-session",value:d});case 19:if(!l||!te(o.mediaKeySession)){e.next=23;break}return n.add(r,r.keyIds,o.mediaKeySession),z.A.info("DRM: Succeeded to load persistent session."),e.abrupt("return",{type:"loaded-persistent-session",value:o});case 23:return z.A.warn("DRM: Previous persistent session not usable anymore."),e.abrupt("return",c());case 27:return e.prev=27,e.t0=e.catch(9),z.A.warn("DRM: Unable to load persistent session: "+(e.t0 instanceof Error?e.t0.toString():"Unknown Error")),e.abrupt("return",c());case 31:case"end":return e.stop()}}),e,null,[[9,27]])}))),ie.apply(this,arguments)}function ae(e,t){return oe.apply(this,arguments)}function oe(){return(oe=(0,i.A)(s().mark((function e(t,n){var r,i,a,o,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n<0||n>=t.getLength())){e.next=2;break}return e.abrupt("return");case 2:for(z.A.info("DRM: LSS cache limit exceeded",n,t.getLength()),r=[],i=t.getAll().slice(),a=i.length-n,o=0;o=o.length)){e.next=2;break}throw new Y.A("INCOMPATIBLE_KEYSYSTEMS","No key system compatible with your wanted configuration has been found in the current browser.");case 2:if(null!=V.requestMediaKeySystemAccess){e.next=4;break}throw new Error("requestMediaKeySystemAccess is not implemented in your browser.");case 4:return r=o[t],i=r.keyName,a=r.keyType,l=r.keySystemOptions,d=ve(i,a,l),z.A.debug("DRM: Request keysystem access "+a+","+(t+1)+" of "+o.length),e.prev=7,e.next=10,he(a,d);case 10:return c=e.sent,z.A.info("DRM: Found compatible keysystem",a,t+1),e.abrupt("return",{type:"create-media-key-system-access",value:{options:l,mediaKeySystemAccess:c}});case 15:if(e.prev=15,e.t0=e.catch(7),z.A.debug("DRM: Rejected access to keysystem",a,t+1),null===n.cancellationError){e.next=20;break}throw n.cancellationError;case 20:return e.abrupt("return",u(t+1));case 21:case"end":return e.stop()}}),e,null,[[7,15]])})))).apply(this,arguments)}}function he(e,t){return me.apply(this,arguments)}function me(){return(me=(0,i.A)(s().mark((function e(t,n){var r,i,a,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V.requestMediaKeySystemAccess(t,n);case 2:if(r=e.sent,s=t,!c.op||-1===s.indexOf("playready")){e.next=18;break}return e.prev=4,e.next=7,r.createMediaKeys();case 7:return i=e.sent,a=i.createSession(),o=de(le),e.next=12,a.generateRequest("cenc",o);case 12:e.next=18;break;case 14:throw e.prev=14,e.t0=e.catch(4),z.A.debug("DRM: KeySystemAccess was granted but it is not usable"),e.t0;case 18:return e.abrupt("return",r);case 19:case"end":return e.stop()}var s}),e,null,[[4,14]])})))).apply(this,arguments)}var ge=n(8797);function ye(e,t,n){var r;z.A.debug("Compat: Calling generateRequest on the MediaKeySession");try{r=function(e){z.A.info("Compat: Trying to move CENC PSSH from init data at the end of it.");for(var t=!1,n=new Uint8Array,r=new Uint8Array,i=0;ie.length)throw z.A.warn("Compat: unrecognized initialization data. Cannot patch it."),new Error("Compat: unrecognized initialization data. Cannot patch it.");var o=e.subarray(i,i+a);if(16===e[i+12]&&119===e[i+13]&&239===e[i+14]&&236===e[i+15]&&192===e[i+16]&&178===e[i+17]&&77===e[i+18]&&2===e[i+19]&&172===e[i+20]&&227===e[i+21]&&60===e[i+22]&&30===e[i+23]&&82===e[i+24]&&226===e[i+25]&&251===e[i+26]&&75===e[i+27]){var s=(0,ge.fP)(o),u=null===s?void 0:o[s[1]];z.A.info("Compat: CENC PSSH found with version",u),void 0===u?z.A.warn("Compat: could not read version of CENC PSSH"):t===(1===u)?n=(0,D.xW)(n,o):1===u?(z.A.warn("Compat: cenc version 1 encountered, removing every other cenc pssh box."),n=o,t=!0):z.A.warn("Compat: filtering out cenc pssh box with wrong version",u)}else r=(0,D.xW)(r,o);i+=a}if(i!==e.length)throw z.A.warn("Compat: unrecognized initialization data. Cannot patch it."),new Error("Compat: unrecognized initialization data. Cannot patch it.");return(0,D.xW)(r,n)}(n)}catch(e){r=n}var i=null!=t?t:"";return e.generateRequest(i,r).catch((function(t){if(""!==i||!(t instanceof TypeError))throw t;return z.A.warn('Compat: error while calling `generateRequest` with an empty initialization data type. Retrying with a default "cenc" value.',t),e.generateRequest("cenc",r)}))}var Ae=100;function _e(e,t){return be.apply(this,arguments)}function be(){return(be=(0,i.A)(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z.A.info("DRM: Load persisted session",n),e.next=3,t.load(n);case 3:if((r=e.sent)&&!(t.keyStatuses.size>0)){e.next=6;break}return e.abrupt("return",r);case 6:return e.abrupt("return",new Promise((function(e){t.addEventListener("keystatuseschange",i);var n=setTimeout(i,Ae);function i(){clearTimeout(n),t.removeEventListener("keystatuseschange",i),e(r)}})));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Se=n(2432);function Ee(e){var t=new _.Ay;return Promise.race([e.close().then((function(){t.cancel()})),e.closed.then((function(){t.cancel()})),function(){return n.apply(this,arguments)}()]);function n(){return(n=(0,i.A)(s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,Se.A)(1e3,t.signal);case 3:return e.next=5,r();case 5:e.next=13;break;case 7:if(e.prev=7,e.t0=e.catch(0),!(e.t0 instanceof _.AL)){e.next=11;break}return e.abrupt("return");case 11:n=e.t0 instanceof Error?e.t0.message:"Unknown error made it impossible to close the session",z.A.error("DRM: "+n);case 13:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function r(){return a.apply(this,arguments)}function a(){return(a=(0,i.A)(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.update(new Uint8Array(1));case 3:n.next=13;break;case 5:if(n.prev=5,n.t0=n.catch(0),!t.isUsed()){n.next=9;break}return n.abrupt("return");case 9:if(!(n.t0 instanceof Error&&"The session is already closed."===n.t0.message)){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,(0,Se.A)(1e3,t.signal);case 13:if(!t.isUsed()){n.next=15;break}return n.abrupt("return");case 15:throw new Error("Compat: Couldn't know if session is closed");case 16:case"end":return n.stop()}}),n,null,[[0,5]])})))).apply(this,arguments)}}function Te(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){if(null!==this._keyIds&&ke(t,this._keyIds))return!0;if(void 0!==this._initializationData.keyIds)return ke(t,this._initializationData.keyIds)}return this._checkInitializationDataCompatibility(e)},t._checkInitializationDataCompatibility=function(e){return void 0!==e.keyIds&&e.keyIds.length>0&&void 0!==this._initializationData.keyIds?ke(e.keyIds,this._initializationData.keyIds):this._initializationData.type===e.type&&this._initializationData.values.isCompatibleWith(e.values)},e}();function Ce(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Me(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Me(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&n._storage[e].mediaKeySession===i&&n._storage.splice(e,1)})).catch((function(e){z.A.warn("DRM-LSS: MediaKeySession.closed rejected: "+e)})),this._storage.push(Object.assign({},a)),z.A.debug("DRM-LSS: MediaKeySession added",a.sessionType,this._storage.length),a},t.reuse=function(e){for(var t=this._storage.length-1;t>=0;t--){var n=this._storage[t];if(n.keySessionRecord.isCompatibleWith(e))return this._storage.splice(t,1),this._storage.push(n),z.A.debug("DRM-LSS: Reusing session:",n.mediaKeySession.sessionId,n.sessionType),Object.assign({},n)}return null},t.getEntryForSession=function(e){for(var t=this._storage.length-1;t>=0;t--){var n=this._storage[t];if(n.mediaKeySession===e)return Object.assign({},n)}return null},t.generateLicenseRequest=function(){var e=(0,i.A)(s().mark((function e(t,n,r){var i,a,o,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=Ce(this._storage);case 1:if((o=a()).done){e.next=8;break}if((u=o.value).mediaKeySession!==t){e.next=6;break}return i=u,e.abrupt("break",8);case 6:e.next=1;break;case 8:if(void 0!==i){e.next=11;break}return z.A.error("DRM-LSS: generateRequest error. No MediaKeySession found with the given initData and initDataType"),e.abrupt("return",ye(t,n,r));case 11:if(i.isGeneratingRequest=!0,"none"===i.closingStatus.type){e.next=14;break}throw new Error("The `MediaKeySession` is being closed.");case 14:return e.prev=14,e.next=17,ye(t,n,r);case 17:e.next=26;break;case 19:if(e.prev=19,e.t0=e.catch(14),void 0!==i){e.next=23;break}throw e.t0;case 23:throw i.isGeneratingRequest=!1,"awaiting"===i.closingStatus.type&&i.closingStatus.start(),e.t0;case 26:if(void 0!==i){e.next=28;break}return e.abrupt("return",void 0);case 28:i.isGeneratingRequest=!1,"awaiting"===i.closingStatus.type&&i.closingStatus.start();case 30:case"end":return e.stop()}}),e,this,[[14,19]])})));return function(t,n,r){return e.apply(this,arguments)}}(),t.loadPersistentSession=function(){var e=(0,i.A)(s().mark((function e(t,n){var r,i,a,o,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=Ce(this._storage);case 1:if((a=i()).done){e.next=8;break}if((o=a.value).mediaKeySession!==t){e.next=6;break}return r=o,e.abrupt("break",8);case 6:e.next=1;break;case 8:if(void 0!==r){e.next=11;break}return z.A.error("DRM-LSS: loadPersistentSession error. No MediaKeySession found with the given initData and initDataType"),e.abrupt("return",_e(t,n));case 11:if(r.isLoadingPersistentSession=!0,"none"===r.closingStatus.type){e.next=14;break}throw new Error("The `MediaKeySession` is being closed.");case 14:return e.prev=14,e.next=17,_e(t,n);case 17:u=e.sent,e.next=27;break;case 20:if(e.prev=20,e.t0=e.catch(14),void 0!==r){e.next=24;break}throw e.t0;case 24:throw r.isLoadingPersistentSession=!1,"awaiting"===r.closingStatus.type&&r.closingStatus.start(),e.t0;case 27:if(void 0!==r){e.next=29;break}return e.abrupt("return",u);case 29:return r.isLoadingPersistentSession=!1,"awaiting"===r.closingStatus.type&&r.closingStatus.start(),e.abrupt("return",u);case 32:case"end":return e.stop()}}),e,this,[[14,20]])})));return function(t,n){return e.apply(this,arguments)}}(),t.closeSession=function(){var e=(0,i.A)(s().mark((function e(t){var n,r,i,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Ce(this._storage);case 1:if((i=r()).done){e.next=8;break}if((a=i.value).mediaKeySession!==t){e.next=6;break}return n=a,e.abrupt("break",8);case 6:e.next=1;break;case 8:if(void 0!==n){e.next=11;break}return z.A.warn("DRM-LSS: No MediaKeySession found with the given initData and initDataType"),e.abrupt("return",Promise.resolve(!1));case 11:return e.abrupt("return",this._closeEntry(n));case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getLength=function(){return this._storage.length},t.getAll=function(){return this._storage},t.closeAllSessions=function(){var e=(0,i.A)(s().mark((function e(){var t,n,r=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._storage,z.A.debug("DRM-LSS: Closing all current MediaKeySessions",t.length),this._storage=[],n=t.map((function(e){return r._closeEntry(e)})),e.next=6,Promise.all(n);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.removeSessionWithoutClosingIt=function(e){(0,l.h)(""===e.sessionId,"Initialized `MediaKeySession`s should always be properly closed");for(var t=this._storage.length-1;t>=0;t--){if(this._storage[t].mediaKeySession===e)return z.A.debug("DRM-LSS: Removing session without closing it",e.sessionId),this._storage.splice(t,1),!0}return!1},t.getIndex=function(e){for(var t=0;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0){var o=void 0===t?3:4,s=this._entries[a];if((null!==(r=s.version)&&void 0!==r?r:-1)>=o&&i===s.sessionId)return;z.A.info("DRM-PSS: Updating session info.",i),this._entries.splice(a,1)}else z.A.info("DRM-PSS: Add new session",i);var u=e.values.getFormattedValues().map((function(e){var t=e.systemId,n=e.data;return{systemId:t,hash:e.hash,data:new Ue(n)}}));void 0===t?this._entries.push({version:3,sessionId:i,values:u,initDataType:e.type}):this._entries.push({version:4,sessionId:i,keyIds:t.map((function(e){return new Ue(e)})),values:u,initDataType:e.type}),this._save()}else z.A.warn("DRM-PSS: Invalid Persisten Session given.")},t.delete=function(e){for(var t=-1,n=0;n0&&(r=new Y.A("KEY_STATUS_CHANGE_ERROR","One or several problematic key statuses have been encountered",{keyStatuses:d})),{warning:r,blacklistedKeyIds:u,whitelistedKeyIds:l}}var at=f.HQ,ot=f.qF,st=f.VS;function ut(e,t,n,r,a){z.A.info("DRM: Binding session events",e.sessionId);var o=t.getLicenseConfig,u=void 0===o?{}:o,l=new _.Ay;return l.linkToSignal(a),(0,d.A)(e.closed)||e.closed.then((function(){return l.cancel()})).catch((function(e){a.isCancelled()||(l.cancel(),r.onError(e))})),at(e,(function(e){l.cancel(),r.onError(new Y.A("KEY_ERROR",e.type))}),l.signal),st(e,(function(e){(function(e){return c.apply(this,arguments)})(e).catch((function(e){a.isCancelled()||l.isUsed()&&e instanceof _.AK||(l.cancel(),r.onError(e))}))}),l.signal),ot(e,(function(n){var a,o=n,c=new Uint8Array(o.message),f=(0,Le.A)(o.messageType)?o.messageType:"license-request";z.A.info("DRM: Received message event, type "+f,e.sessionId),function(e,t,n){var r=t.baseDelay,a=t.maxDelay,o=t.totalRetry,u=t.shouldRetry,l=t.onRetry,c=0;return f();function f(){return v.apply(this,arguments)}function v(){return(v=(0,i.A)(s().mark((function t(){var i,v,p;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===n.cancellationError){t.next=2;break}throw n.cancellationError;case 2:return t.prev=2,t.next=5,e();case 5:return i=t.sent,t.abrupt("return",i);case 9:if(t.prev=9,t.t0=t.catch(2),null===n.cancellationError){t.next=13;break}throw n.cancellationError;case 13:if(!(!(0,d.A)(u)&&!u(t.t0)||c++>=o)){t.next=15;break}throw t.t0;case 15:return"function"==typeof l&&l(t.t0,c),v=et(r,c,a),t.next=19,(0,Je.A)(v);case 19:return p=f(),t.abrupt("return",p);case 21:case"end":return t.stop()}}),t,null,[[2,9]])})))).apply(this,arguments)}}((function(){return function(e,n){var r;return new Promise((function(i,a){try{z.A.debug("DRM: Calling `getLicense`",n);var o=t.getLicense(e,n),s=(0,d.A)(u.timeout)?1e4:u.timeout;s>=0&&(r=setTimeout((function(){a(new vt('"getLicense" timeout exceeded ('+s+" ms)"))}),s)),Promise.resolve(o).then(l,c)}catch(e){c(e)}function l(e){void 0!==r&&clearTimeout(r),i(e)}function c(e){void 0!==r&&clearTimeout(r),a(e)}}))}(c,f)}),{totalRetry:null!=(a=u.retry)?a:2,baseDelay:200,maxDelay:3e3,shouldRetry:function(e){return e instanceof vt||(0,d.A)(e)||!0!==e.noRetry},onRetry:function(e){return r.onWarning(lt(e))}},l.signal).then((function(t){if(l.isUsed())return Promise.resolve();if((0,d.A)(t))z.A.info("DRM: No license given, skipping session.update");else try{return dt(e,t)}catch(e){l.cancel(),r.onError(e)}})).catch((function(e){if(!l.isUsed()){l.cancel();var t=lt(e);if(!(0,d.A)(e))if(!0===e.fallbackOnLastTry)return z.A.warn("DRM: Last `getLicense` attempt failed. Blacklisting the current session."),void r.onError(new ft(t));r.onError(t)}}))}),l.signal),void f();function c(){return c=(0,i.A)(s().mark((function n(r){var o,u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=function(){return(u=(0,i.A)(s().mark((function n(){var i,o;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isUsed()){n.next=2;break}return n.abrupt("return");case 2:if("function"!=typeof t.onKeyStatusesChange){n.next=24;break}return n.prev=3,n.next=6,t.onKeyStatusesChange(r,e);case 6:if(i=n.sent,!l.isUsed()){n.next=9;break}return n.abrupt("return");case 9:n.next=18;break;case 11:if(n.prev=11,n.t0=n.catch(3),!a.isCancelled()){n.next=15;break}return n.abrupt("return");case 15:throw o=new Y.A("KEY_STATUS_CHANGE_ERROR","Unknown `onKeyStatusesChange` error"),!(0,d.A)(n.t0)&&(0,Le.A)(n.t0.message)&&(o.message=n.t0.message),o;case 18:if(!(0,d.A)(i)){n.next=22;break}z.A.info("DRM: No license given, skipping session.update"),n.next=24;break;case 22:return n.next=24,dt(e,i);case 24:case"end":return n.stop()}}),n,null,[[3,11]])})))).apply(this,arguments)},o=function(){return u.apply(this,arguments)},z.A.info("DRM: keystatuseschange event received",e.sessionId),n.next=5,Promise.all([o(),Promise.resolve(f())]);case 5:case"end":return n.stop()}}),n)}))),c.apply(this,arguments)}function f(){if(!l.isUsed()&&0!==e.keyStatuses.size){var i=it(e,t,n),a=i.warning,o=i.blacklistedKeyIds,s=i.whitelistedKeyIds;void 0!==a&&(r.onWarning(a),l.isUsed())||r.onKeyUpdate({whitelistedKeyIds:s,blacklistedKeyIds:o})}}}function lt(e){if(e instanceof vt)return new Y.A("KEY_LOAD_TIMEOUT","The license server took too much time to respond.");var t=new Y.A("KEY_LOAD_ERROR","An error occured when calling `getLicense`.");return!(0,d.A)(e)&&(0,Le.A)(e.message)&&(t.message=e.message),t}function dt(e,t){return ct.apply(this,arguments)}function ct(){return(ct=(0,i.A)(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z.A.info("DRM: Updating MediaKeySession with message"),e.prev=1,e.next=4,t.update(n);case 4:e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(1),r=e.t0 instanceof Error?e.t0.toString():"`session.update` failed",new Y.A("KEY_UPDATE_ERROR",r);case 10:z.A.info("DRM: MediaKeySession update succeeded.");case 11:case"end":return e.stop()}}),e,null,[[1,6]])})))).apply(this,arguments)}var ft=function(e){function t(n){var r;return r=e.call(this,n.message)||this,Object.setPrototypeOf(r,t.prototype),r.sessionError=n,r}return(0,a.A)(t,e),t}((0,Xe.A)(Error)),vt=function(e){function t(t){var n;return n=e.call(this,t)||this,Object.setPrototypeOf(n,ft.prototype),n.message=t,n}return(0,a.A)(t,e),t}((0,Xe.A)(Error)),pt=n(4637);function ht(e,t){return mt.apply(this,arguments)}function mt(){return(mt=(0,i.A)(s().mark((function e(t,n){var r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.setServerCertificate(n);case 3:return r=e.sent,e.abrupt("return",r);case 7:throw e.prev=7,e.t0=e.catch(0),z.A.warn("DRM: mediaKeys.setServerCertificate returned an error",e.t0 instanceof Error?e.t0:""),i=e.t0 instanceof Error?e.t0.toString():"`setServerCertificate` error",new Y.A("LICENSE_SERVER_CERTIFICATE_ERROR",i);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function gt(e,t){return yt.apply(this,arguments)}function yt(){return(yt=(0,i.A)(s().mark((function e(t,n){var r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!0!==Ge.hasOne(t)){e.next=3;break}return z.A.info("DRM: The MediaKeys already has a server certificate, skipping..."),e.abrupt("return",{type:"already-has-one"});case 3:if("function"==typeof t.setServerCertificate){e.next=6;break}return z.A.warn("DRM: Could not set the server certificate. mediaKeys.setServerCertificate is not a function"),e.abrupt("return",{type:"method-not-implemented"});case 6:return z.A.info("DRM: Setting server certificate on the MediaKeys"),Ge.prepare(t),e.prev=8,e.next=11,ht(t,n);case 11:return r=e.sent,Ge.set(t,n),e.abrupt("return",{type:"success",value:r});case 16:return e.prev=16,e.t0=e.catch(8),i=(0,pt.A)(e.t0)?e.t0:new Y.A("LICENSE_SERVER_CERTIFICATE_ERROR","Unknown error when setting the server certificate."),e.abrupt("return",{type:"error",value:i});case 20:case"end":return e.stop()}}),e,null,[[8,16]])})))).apply(this,arguments)}var At=n(2137);function _t(e,t){if(!(isNaN(t)||t<0||t>=e.getLength())){var n=e.getLength(),r=n-t;z.A.info("DRM: Too many stored persistent sessions, removing some.",n,r),e.deleteOldSessions(r)}}var bt=function(){function e(e){this._innerValues=e,this._lazyFormattedValues=null}var t=e.prototype;return t.constructRequestData=function(){return D.xW.apply(void 0,this._innerValues.map((function(e){return e.data})))},t.isCompatibleWith=function(t){var n=t instanceof e?t.getFormattedValues():t;return Be(this.getFormattedValues(),n)},t.getFormattedValues=function(){return null===this._lazyFormattedValues&&(this._lazyFormattedValues=this._innerValues.slice().sort((function(e,t){return e.systemId===t.systemId?0:void 0===e.systemId?1:void 0===t.systemId||e.systemId=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&B._currentSessions.splice(r),void 0!==t.content&&kt(t.content.manifest,[],[],C.record.getAssociatedKeyIds()),null===(n=i.persistentSessionsStore)||void 0===n||n.delete(P.sessionId),i.loadedSessionsStore.closeSession(P).catch((function(e){var t=e instanceof Error?e:"unknown error";z.A.warn("DRM: failed to close expired session",t)})).then((function(){return B._unlockInitDataQueue()})).catch((function(e){return B._onFatalError(e)})),void(B._isStopped()||B.trigger("warning",e.reason))}if(e instanceof ft){if(C.blacklistedSessionError=e,void 0!==t.content){var a=t.content.manifest;z.A.info("DRM: blacklisting Representations based on protection data."),It(a,t)}B._unlockInitDataQueue()}else B._onFatalError(e)}},this._canceller.signal),void 0!==a.singleLicensePer&&"init-data"!==a.singleLicensePer||this._unlockInitDataQueue(),"created-session"!==R.type){e.next=72;break}return O=t.values.constructRequestData(),e.prev=59,e.next=62,i.loadedSessionsStore.generateLicenseRequest(P,t.type,O);case 62:e.next=72;break;case 64:if(e.prev=64,e.t1=e.catch(59),null!==(L=i.loadedSessionsStore.getEntryForSession(P))&&"none"===L.closingStatus.type){e.next=71;break}return(U=this._currentSessions.indexOf(C))>=0&&this._currentSessions.splice(U,1),e.abrupt("return",Promise.resolve());case 71:throw new Y.A("KEY_GENERATE_REQUEST_ERROR",e.t1 instanceof Error?e.t1.toString():"Unknown error");case 72:return e.abrupt("return",Promise.resolve());case 73:case"end":return e.stop()}}),e,this,[[59,64]])})));return function(t,n){return e.apply(this,arguments)}}(),n._tryToUseAlreadyCreatedSession=function(e,t){var n=t.stores,r=t.options,i=(0,$.A)(this._currentSessions,(function(t){return t.record.isCompatibleWith(e)}));if(void 0===i)return!1;var a=i.blacklistedSessionError;if(!(0,d.A)(a))return void 0===e.type||void 0===e.content?(z.A.error("DRM: This initialization data has already been blacklisted but the current content is not known."),!0):(z.A.info("DRM: This initialization data has already been blacklisted. Blacklisting the related content."),It(e.content.manifest,e),!0);if(void 0!==e.keyIds){var o;if(void 0===r.singleLicensePer||"init-data"===r.singleLicensePer){var s=i.keyStatuses.blacklisted;o=function(e,t){for(var n,r,i=function(){var e=r.value;if(t.some((function(t){return(0,W.A)(t,e)})))return{v:!0}},a=Te(e);!(r=a()).done;)if(n=i())return n.v;return!1}(e.keyIds,s)}else{var u=i.keyStatuses.whitelisted;o=!ke(e.keyIds,u)}if(o)return void 0===e.content?(z.A.error("DRM: Cannot forbid key id, the content is unknown."),!0):(z.A.info("DRM: Current initialization data is linked to blacklisted keys. Marking Representations as not decipherable"),kt(e.content.manifest,[],e.keyIds,[]),!0)}if(null!==n.loadedSessionsStore.reuse(e))return z.A.debug("DRM: Init data already processed. Skipping it."),!0;var l=this._currentSessions.indexOf(i);return-1===l?z.A.error("DRM: Unable to remove processed init data: not found."):(z.A.debug("DRM: A session from a processed init data is not available anymore. Re-processing it."),this._currentSessions.splice(l,1)),!1},n._onFatalError=function(e){if(!this._canceller.isUsed()){var t=e instanceof Error?e:new Q.A("NONE","Unknown decryption error");this.error=t,this._initDataQueue.length=0,this._stateData={state:At.R.Error,isMediaKeysAttached:void 0,isInitDataQueueLocked:void 0,data:null},this._canceller.cancel(),this.trigger("error",t),this._stateData.state===At.R.Error&&this.trigger("stateChange",this._stateData.state)}},n._isStopped=function(){return this._stateData.state===At.R.Disposed||this._stateData.state===At.R.Error},n._processCurrentInitDataQueue=function(){for(;!1===this._stateData.isInitDataQueueLocked;){var e=this._initDataQueue.shift();if(void 0===e)return;this.onInitializationData(e)}},n._lockInitDataQueue=function(){!1===this._stateData.isInitDataQueueLocked&&(this._stateData.isInitDataQueueLocked=!0)},n._unlockInitDataQueue=function(){2===this._stateData.isMediaKeysAttached?(this._stateData.isInitDataQueueLocked=!1,this._processCurrentInitDataQueue()):z.A.error("DRM: Trying to unlock in the wrong state")},t}(A.A);function wt(e){var t=e.getConfiguration().sessionTypes;return void 0!==t&&(0,X.A)(t,"persistent-license")}function kt(e,t,n,r){e.updateRepresentationsDeciperability((function(e){if(void 0===e.contentProtections)return e.decipherable;var i=e.contentProtections.keyIds;if(void 0!==i)for(var a,o=St(i);!(a=o()).done;){for(var s,u=a.value,l=St(n);!(s=l()).done;){var d=s.value;if((0,W.A)(d,u.keyId))return!1}for(var c,f=St(t);!(c=f()).done;){var v=c.value;if((0,W.A)(v,u.keyId))return!0}for(var p,h=St(r);!(p=h()).done;){var m=p.value;if((0,W.A)(m,u.keyId))return}}return e.decipherable}))}function It(e,t){e.updateRepresentationsDeciperability((function(e){var n,r;if(!1===e.decipherable)return!1;for(var i,a,o=function(){var e=a.value;if((void 0===t.type||e.type===t.type)&&t.values.getFormattedValues().every((function(t){return e.values.some((function(e){return(void 0===t.systemId||e.systemId===t.systemId)&&(0,W.A)(e.data,t.data)}))})))return{v:!1}},s=St(null!==(r=null===(n=e.contentProtections)||void 0===n?void 0:n.initData)&&void 0!==r?r:[]);!(a=s()).done;)if(i=o())return i.v;return e.decipherable}))}function xt(e,t,n,r,i,a){for(var o,s,u=[].concat(i,a),l=function(){var e=s.value;u.some((function(t){return(0,W.A)(t,e)}))||(z.A.hasLevel("DEBUG")&&z.A.debug("DRM: KeySessionRecord's key missing in the license, blacklisting it",(0,x.My)(e)),u.push(e))},d=St(t.getAssociatedKeyIds());!(s=d()).done;)l();if(void 0!==n&&"init-data"!==n){var c=e.keyIds,f=e.content;if(void 0!==c){var v=c.filter((function(e){return!u.some((function(t){return(0,W.A)(t,e)}))}));v.length>0&&(z.A.hasLevel("DEBUG")&&z.A.debug("DRM: init data keys missing in the license, blacklisting them",v.map((function(e){return(0,x.My)(e)})).join(", ")),u.push.apply(u,v))}if(r&&void 0!==f)if("content"===n){for(var p,h=new Set,m=St(f.manifest.periods);!(p=m()).done;){Ct(h,p.value)}Rt(h,u)}else if("periods"===n)for(var g,y=St(f.manifest.periods);!(g=y()).done;){var A=g.value,_=new Set;if(Ct(_,A),(null===(o=e.content)||void 0===o?void 0:o.period.id)===A.id)Rt(_,u);else for(var b=Array.from(_),S=function(){var e=T[E];if(u.some((function(t){return(0,W.A)(t,e)})))return Rt(_,u),1},E=0,T=b;E0?e.seekable.end(0):n;return(0,s.A)(r)?(a.A.warn("startAt.fromLivePosition set but no known live position, beginning at 0."),0):Math.max(0,r+t.fromLivePosition)}if(null!=t.percentage){if((0,s.A)(n)||!isFinite(n))return a.A.warn("startAt.percentage set but no known duration, beginning at 0."),0;var i=t.percentage;return i>=100?n:i<=0?0:n*(+i/100)}return 0}(e,u);return a.A.debug("Init: Initial time calculated:",t),t}),o,(function(e){return n.trigger("warning",e)}),!0,r).autoPlayResult.then((function(){return(0,c.A)(t,e,!0,r).onUpdate((function(e,t){e&&(t(),n.trigger("loaded",{segmentBuffersStore:null}))}),{emitCurrentValue:!0,clearSignal:r})})).catch((function(e){r.isCancelled()||n._onFatalError(e)}))},t}(d.Y)},1737:function(e,t,n){"use strict";n.d(t,{A:function(){return nn}});var r=n(467),i=n(7387),a=n(4756),o=n.n(a);var s=n(443),u=s.A7,l=n(5151),d=n(5575),c=n(9477),f=n(7994),v=n(4339),p=n(8935),h=n(8315),m=n(2507),g=n(8060),y=n(3650),A=n(3786);function _(e){var t=e.map((function(t){return Math.log(t/e[0])})),n=t.map((function(e){return e-t[0]+1})),r=(n[n.length-1]-1)/(2*e.length+10),i=1/r;return e.map((function(e,t){return a(t)}));function a(t){if(0===t)return 0;var o=Math.min(Math.max(1,t),e.length-1);return e[o]===e[o-1]?a(t-1):i*(r+(e[o]*n[o-1]-e[o-1]*n[o])/(e[o]-e[o-1]))+4}}var b=function(){function e(e){this._levelsMap=_(e).map((function(e){return e+4})),this._bitrates=e,this._lastUnsuitableQualityTimestamp=void 0,this._blockRaiseDelay=6e3,c.A.debug("ABR: Steps for buffer based chooser.",this._levelsMap.map((function(t,n){return"bufferLevel: "+t+", bitrate: "+e[n]})).join(" ,"))}var t=e.prototype;return t.onAddedSegment=function(e){var t=this._levelsMap,n=this._bitrates,r=e.bufferGap,i=e.currentBitrate,a=e.currentScore,o=e.speed;if(null!=i){for(var s,u=-1,l=0;li)break}if(u<0||n.length!==t.length)return c.A.error("ABR: Current Bitrate not found in the calculated levels"),void(this._currentEstimate=n[0]);void 0!==a&&(s=0===o?a.score:a.score/o);var f=isFinite(r)?r:0,v=performance.now();if(f=0;m--)if(f>=t[m])return void(this._currentEstimate=n[m]);this._currentEstimate=n[0]}else if(void 0!==this._lastUnsuitableQualityTimestamp&&v-this._lastUnsuitableQualityTimestampg)return e}();if(void 0!==y)if(r>=t[y])return c.A.debug("ABR: Raising quality in BufferBasedChooser",n[y]),void(this._currentEstimate=n[y]);this._currentEstimate=i}}else this._currentEstimate=n[0]},t.getLastEstimate=function(){return this._currentEstimate},e}(),S=n(1729),E=function(){function e(e){this._alpha=Math.exp(Math.log(.5)/e),this._lastEstimate=0,this._totalWeight=0}var t=e.prototype;return t.addSample=function(e,t){var n=Math.pow(this._alpha,e),r=t*(1-n)+n*this._lastEstimate;isNaN(r)||(this._lastEstimate=r,this._totalWeight+=e)},t.getEstimate=function(){var e=1-Math.pow(this._alpha,this._totalWeight);return this._lastEstimate/e},e}();function T(e){if(!(e.progress.length<5)){for(var t=new E(2),n=e.progress,r=1;r=s.outOfStarvationGap&&(c.A.info("ABR: exit starvation mode."),this._inStarvationMode=!1):this._inStarvationMode&&(c.A.info("ABR: exit starvation mode."),this._inStarvationMode=!1),this._inStarvationMode&&(o=function(e,t,n,r,i){if(!r){var a=t.bufferGap,o=t.speed,s=t.position,u=isFinite(a)?a:0,l=function(e,t){for(var n=-1,r=0;r-1.2){n=r;break}if(a>t&&t-i.time>-1.2){n=r;break}}}if(n<0)return[];for(var o=e[n],s=o.content.segment.time,u=[o],l=n+1;l0?d.progress[d.progress.length-1]:void 0,p=T(d);if(void 0!==v&&void 0!==p){var h=w(v,p);if((c-v.timestamp)/1e3<=h&&h-u/o>2500)return p}if(d.content.segment.complete){var m=d.content.segment.duration,g=(c-d.requestTimestamp)/1e3;if(null!=n&&!(g<=(1.5*m+2)/o)){var y=m/g,A=n.bitrate*Math.min(.7,y);return void 0===i||A1&&(a/=e.speed),{bandwidthEstimate:o,bitrateChosen:a}},t.isUrgent=function(e,t,n,r){return null===t||!(e>=t.bitrate)&&function(e,t,n){if(n)return!0;var r=isFinite(e.bufferGap)?e.bufferGap:0,i=e.position.last+r,a=(0,S.A)(t,(function(e){var t=e.content;return t.segment.duration>0&&t.segment.time+t.segment.duration>i}));if(void 0===a)return!0;var o=performance.now(),s=a.progress.length>0?a.progress[a.progress.length-1]:void 0,u=T(a);if(void 0===s||void 0===u)return!0;var l=w(s,u);return(o-s.timestamp)/1e3>1.2*l||l-r/e.speed>-1.5}(r,n,this._lowLatencyMode)},e}();function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns.bitrate)return 2===this._lastAbrEstimate.algorithmType&&(null!==this._lastAbrEstimate.representation&&(this._lastMaintanableBitrate=this._lastAbrEstimate.representation.bitrate),this._consecutiveWrongGuesses=0),null;var u=this._scoreCalculator.getEstimate(n);if(2!==this._lastAbrEstimate.algorithmType){if(void 0===u)return null;if(this._canGuessHigher(a,o,u)){var l=C(e,n);if(null!==l)return l}return null}if(this._isLastGuessValidated(s,r,u)&&(c.A.debug("ABR: Guessed Representation validated",s.bitrate),this._lastMaintanableBitrate=s.bitrate,this._consecutiveWrongGuesses=0),n.id!==s.id)return s;if(this._shouldStopGuess(n,u,a,i))return this._consecutiveWrongGuesses++,this._blockGuessesUntil=performance.now()+Math.min(15e3*this._consecutiveWrongGuesses,12e4),function(e,t){var n=(0,A.A)(e,(function(e){return e.id===t.id}));if(n<0)return c.A.error("ABR: Current Representation not found."),null;for(;--n>=0;)if(e[n].bitrate=2.5&&performance.now()>this._blockGuessesUntil&&1===i&&r/t>1.01},t._shouldStopGuess=function(e,t,n,r){if(void 0!==t&&t.score<1.01)return!0;if((void 0===t||t.score<1.2)&&n<.6)return!0;for(var i,a=r.filter((function(t){return t.content.representation.id===e.id})),o=performance.now(),s=I(a);!(i=s()).done;){var u=i.value,l=o-u.requestTimestamp;if(u.content.segment.isInit){if(l>1e3)return!0}else{if(l>1e3*u.content.segment.duration+200)return!0;var d=T(u);if(void 0!==d&&d<.8*e.bitrate)return!0}}return!1},t._isLastGuessValidated=function(e,t,n){return void 0!==n&&1===n.confidenceLevel&&n.score>1.5||t>=e.bitrate&&(null===this._lastMaintanableBitrate||this._lastMaintanableBitratet.bitrate)return e[r];return null}var M=function(){function e(){var e=l.A.getCurrent(),t=e.ABR_FAST_EMA,n=e.ABR_SLOW_EMA;this._fastEWMA=new E(t),this._slowEWMA=new E(n),this._bytesSampled=0}var t=e.prototype;return t.addSample=function(e,t){if(!(t1&&this._lastRepresentationWithGoodScore!==e&&(c.A.debug("ABR: New last stable representation",e.bitrate),this._lastRepresentationWithGoodScore=e)},t.getEstimate=function(e){if(null!==this._currentRepresentationData&&this._currentRepresentationData.representation.id===e.id){var t=this._currentRepresentationData,n=t.ewma,r=t.loadedSegments,i=t.loadedDuration;return{score:n.getEstimate(),confidenceLevel:r>=5&&i>=10?1:0}}},t.getLastStableRepresentation=function(){return this._lastRepresentationWithGoodScore},e}();function L(e,t,n,r){var i=t<=n?n:t>=r?r:t,a=(0,A.A)(e,(function(e){return e.bitrate>i}));return-1===a?e[e.length-1]:0===a?e[0]:e[a-1]}var U=new h.A(-1);U.finish();var B=new h.A(0);B.finish();var F=new h.A(1/0);F.finish();var V=new h.A(void 0);V.finish();var z=new h.A(1/0);z.finish();var K=function(e){var t={},n=e.manualBitrates,r=e.minAutoBitrates,i=e.maxAutoBitrates,a=e.initialBitrates,o=e.throttlers,s=e.lowLatencyMode;return function(e,u,d,f,v){var p,_,E,T,w,I,x,C=e.adaptation.type,D=function(e){var n=t[e];if(null==n){c.A.debug("ABR: Creating new BandwidthEstimator for ",e);var r=new M;return t[e]=r,r}return n}(C),K=null!==(p=n[C])&&void 0!==p?p:U,W=null!==(_=r[C])&&void 0!==_?_:B,G=null!==(E=i[C])&&void 0!==E?E:F,H=null!==(T=a[C])&&void 0!==T?T:0;return function(e,t){var n=e.bandwidthEstimator,r=e.context,i=e.currentRepresentation,a=e.filters,o=e.initialBitrate,s=e.lowLatencyMode,u=e.manualBitrate,d=e.maxAutoBitrate,f=e.minAutoBitrate,v=e.playbackObserver,p=e.representations,_=new O,E=new k(null!=o?o:0,s),T=new N,w=g.A,I={metrics:U,requestBegin:B,requestProgress:F,requestEnd:V,addedSegment:function(e){w(e)}},x=new m.Ay;x.linkToSignal(t);var C=M(p.getValue(),x.signal);return p.onUpdate(D,{clearSignal:t}),{estimates:C,callbacks:I};function M(e,t){if(0===e.length)return new h.A({representation:null,bitrate:void 0,knownStableBitrate:void 0,manual:!1,urgent:!0});if(1===e.length)return new h.A({bitrate:void 0,representation:e[0],manual:!1,urgent:!0,knownStableBitrate:void 0});var o=!1,p=new b(e.map((function(e){return e.bitrate}))),m=new P,k=new R(_,m),I=v.getReference().getValue(),x=new h.A(M());return v.listen((function(e){I=e,C()}),{includeLastObservation:!1,clearSignal:t}),w=function(e){if(null!==I){var t=I,n=t.position,r=t.speed,i=e.buffered,a=(0,y.vK)(i,n.last),o=e.content.representation,s=_.getEstimate(o),u={bufferGap:a,currentBitrate:o.bitrate,currentScore:s,speed:r};p.onAddedSegment(u),C()}},t.register((function(){w=g.A})),u.onUpdate(C,{clearSignal:t}),f.onUpdate(C,{clearSignal:t}),d.onUpdate(C,{clearSignal:t}),a.limitWidth.onUpdate(C,{clearSignal:t}),a.limitWidth.onUpdate(C,{clearSignal:t}),x;function C(){x.setValue(M())}function M(){var t=u.getValue();if(t>=0)return{representation:L(e,t,0,1/0),bitrate:void 0,knownStableBitrate:void 0,manual:!0,urgent:!0};var v=I,h=v.bufferGap,g=v.position,y=v.maximumPosition,b=a.limitWidth.getValue(),w=a.throttleBitrate.getValue(),x=i.getValue(),R=f.getValue(),C=d.getValue(),M=function(e,t,n){var r=e;n<1/0&&(r=function(e,t){if(0===e.length)return[];e.sort((function(e,t){return e.bitrate-t.bitrate}));var n=e[0].bitrate,r=Math.max(t,n),i=(0,A.A)(e,(function(e){return e.bitrate>r}));return-1===i?e:e.slice(0,i)}(r,n));void 0!==t&&(r=function(e,t){var n=e.slice().sort((function(e,t){var n,r;return(null!==(n=e.width)&&void 0!==n?n:0)-(null!==(r=t.width)&&void 0!==r?r:0)})),r=(0,S.A)(n,(function(e){return"number"==typeof e.width&&e.width>=t}));if(void 0===r)return e;var i="number"==typeof r.width?r.width:0;return e.filter((function(e){return"number"!=typeof e.width||e.width<=i}))}(r,t));return r}(e,b,w),P=T.getRequests(),D=E.getBandwidthEstimate(I,n,x,P,m.bandwidth),N=D.bandwidthEstimate,O=D.bitrateChosen,U=_.getLastStableRepresentation(),B=null===U?void 0:U.bitrate/(I.speed>0?I.speed:1),F=l.A.getCurrent(),V=F.ABR_ENTER_BUFFER_BASED_ALGO,z=F.ABR_EXIT_BUFFER_BASED_ALGO;o&&h<=z?o=!1:!o&&isFinite(h)&&h>=V&&(o=!0);var K=L(M,O,R,C),W=p.getLastEstimate(),G=K.bitrate,H=null;o&&void 0!==W&&W>G&&(G=(H=L(M,W,R,C)).bitrate);var q=null;return s&&null!==x&&r.manifest.isDynamic&&y-g.last<40&&(q=k.getGuess(e,I,x,G,P)),null!==q&&q.bitrate>G?(c.A.debug("ABR: Choosing representation with guess-based estimation.",q.bitrate,q.id),m.update(q,N,2),{bitrate:N,representation:q,urgent:null===x||q.bitrate=500||404===e.status||415===e.status||412===e.status:e.type===X.yl.TIMEOUT||e.type===X.yl.ERROR_EVENT:e instanceof Z.A?"boolean"==typeof e.canRetry?e.canRetry:void 0!==e.xhr&&(e.xhr.status>=500||404===e.xhr.status||415===e.xhr.status||412===e.xhr.status):(0,J.A)(e)&&"INTEGRITY_ERROR"===e.code}function re(e){return e instanceof Y.A?e.type===X.yl.ERROR_EVENT&&!1===navigator.onLine:e instanceof Z.A&&e.isOfflineError}function ie(e,t,n,r,i){return ae.apply(this,arguments)}function ae(){return ae=(0,r.A)(o().mark((function e(t,n,i,a,s){var u,l,d,f,v,p,h,y,A,_,b,S,E,T;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(T=function(e){var t;if(0===p.size)return e[0];var n=performance.now();return null===(t=e.filter((function(e){var t;return!0!==(null===(t=p.get(e))||void 0===t?void 0:t.isBlacklisted)})).reduce((function(e,t){var r,i=null===(r=p.get(t))||void 0===r?void 0:r.blockedUntil;return void 0!==i&&i<=n&&(i=void 0),void 0===e?[t,i]:void 0===i?void 0===e[1]?e:[t,void 0]:void 0===e[1]?e:iv?(c.blockedUntil=void 0,c.isBlacklisted=!0):(h=c.errorCounter,g=Math.min(u*Math.pow(2,h-1),l),y=(0,te.A)(g),c.blockedUntil=performance.now()+y),e.abrupt("return",b(e.t0));case 22:case"end":return e.stop()}var o}),e,null,[[0,7]])})))).apply(this,arguments)},A=function(e){return _.apply(this,arguments)},y=function(){if(null===t){var e=p.get(null);if(void 0!==e&&e.isBlacklisted)return;return null}if(null===n)return T(t);var r=n.getCdnPreferenceForResource(t);return T(r)},null===s.cancellationError){e.next=9;break}return e.abrupt("return",Promise.reject(s.cancellationError));case 9:if(u=a.baseDelay,l=a.maxDelay,d=a.maxRetryRegular,f=a.maxRetryOffline,v=a.onRetry,null!==t&&0===t.length&&c.A.warn("Fetchers: no CDN given to `scheduleRequestWithCdns`."),p=new Map,void 0!==(h=y())){e.next=15;break}throw new Error("No CDN to request");case 15:return e.abrupt("return",A(h));case 16:case"end":return e.stop()}}),e)}))),ae.apply(this,arguments)}function oe(e,t,n){return ie(null,null,e,t,n)}function se(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?this._consecutiveUnsafeMode=u,v=void 0===r?0:performance.now()-r,p=Math.max(this._settings.minimumManifestUpdateInterval-v,0),h=new m.Ay;if(h.linkToSignal(this._canceller.signal),this.scheduleManualRefresh=function(t){var i=t.enablePartialRefresh,a=t.delay,o=t.canUseUnsafeMode&&f,s=void 0===r?0:performance.now()-r,u=Math.max(n._settings.minimumManifestUpdateInterval-s,0),l=setTimeout((function(){h.cancel(),n._triggerNextManifestRefresh(e,{enablePartialRefresh:i,unsafeMode:o})}),Math.max((null!=a?a:0)-s,u));h.signal.register((function(){clearTimeout(l)}))},null!==e.expired){var y=setTimeout((function(){var t;null===(t=e.expired)||void 0===t||t.then((function(){h.cancel(),n._triggerNextManifestRefresh(e,{enablePartialRefresh:!1,unsafeMode:f})}),g.A)}),p);h.signal.register((function(){clearTimeout(y)}))}if(void 0!==e.lifetime&&e.lifetime>=0){var A,_=1e3*e.lifetime-v;void 0===d?A=_:e.lifetime<3&&d>=100?(A=Math.min(Math.max(3e3-v,Math.max(_,0)+d),6*_),c.A.info("MUS: Manifest update rythm is too frequent. Postponing next request.",_,A)):d>=1e3*e.lifetime/10?(A=Math.min(Math.max(_,0)+d,6*_),c.A.info("MUS: Manifest took too long to parse. Postponing next request",A,A)):A=_;var b=setTimeout((function(){h.cancel(),n._triggerNextManifestRefresh(e,{enablePartialRefresh:!1,unsafeMode:f})}),Math.max(A,p));h.signal.register((function(){clearTimeout(b)}))}},n._triggerNextManifestRefresh=function(e,t){var n,r,i=this,a=t.enablePartialRefresh,o=t.unsafeMode,s=e.updateUrl;null!==this._prioritizedContentUrl?(n=!0,r=this._prioritizedContentUrl,this._prioritizedContentUrl=null):r=(n=!a||void 0===s)?e.getUrl():s;var u=e.clockOffset;o?(this._consecutiveUnsafeMode+=1,c.A.info('Init: Refreshing the Manifest in "unsafeMode" for the '+String(this._consecutiveUnsafeMode)+" consecutive time.")):this._consecutiveUnsafeMode>0&&(c.A.info('Init: Not parsing the Manifest in "unsafeMode" anymore after '+String(this._consecutiveUnsafeMode)+" consecutive times."),this._consecutiveUnsafeMode=0),this._isRefreshPending||(this._isRefreshPending=!0,this._fetchManifest(r).then((function(t){return t.parse({externalClockOffset:u,previousManifest:e,unsafeMode:o})})).then((function(t){i._isRefreshPending=!1;var r=t.manifest,a=t.sendingTime,o=t.parsingTime,s=performance.now();if(n)e.replace(r);else try{e.update(r)}catch(t){var u=t instanceof Error?t.message:"unknown error";c.A.warn("MUS: Attempt to update Manifest failed: "+u,"Re-downloading the Manifest fully");var d=l.A.getCurrent().FAILED_PARTIAL_UPDATE_MANIFEST_REFRESH_DELAY,f=void 0===a?0:performance.now()-a,v=Math.max(i._settings.minimumManifestUpdateInterval-f,0),p=g.A,h=setTimeout((function(){p(),i._triggerNextManifestRefresh(e,{enablePartialRefresh:!1,unsafeMode:!1})}),Math.max(d-f,v));return void(p=i._canceller.signal.register((function(){clearTimeout(h)})))}var m=performance.now()-s;i._recursivelyRefreshManifest(e,{sendingTime:a,parsingTime:o,updatingTime:m})})).catch((function(e){i._isRefreshPending=!1,i._onFatalError(e)})))},n._onFatalError=function(e){this._canceller.isUsed()||(this.trigger("error",e),this.dispose())},t}(q.A);var de=le;function ce(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&this._removeIndexFromDowngradeList(n);var r=l.A.getCurrent().DEFAULT_CDN_DOWNGRADE_TIME;this._downgradedCdnList.metadata.push(e);var i=window.setTimeout((function(){var n=pe(t._downgradedCdnList.metadata,e);n>=0&&t._removeIndexFromDowngradeList(n),t.trigger("priorityChange",null)}),r);this._downgradedCdnList.timeouts.push(i),this.trigger("priorityChange",null)},n._innerGetCdnPreferenceForResource=function(e){var t=this,n=e.reduce((function(e,n){return t._downgradedCdnList.metadata.some((function(e){return e.id===n.id&&e.baseUrl===n.baseUrl}))?e[1].push(n):e[0].push(n),e}),[[],[]]),r=n[0],i=n[1];return r.concat(i)},n._removeIndexFromDowngradeList=function(e){this._downgradedCdnList.metadata.splice(e,1);var t=this._downgradedCdnList.timeouts.splice(e,1);clearTimeout(t[0])},t}(q.A);function pe(e,t){return 0===e.length?-1:void 0!==t.id?(0,A.A)(e,(function(e){return e.id===t.id})):(0,A.A)(e,(function(e){return e.baseUrl===t.baseUrl}))}var he=n(7841),me=n(4031),ge=n(8795),ye=function(){function e(){this._cache=new WeakMap}var t=e.prototype;return t.add=function(e,t){var n=e.representation;e.segment.isInit&&this._cache.set(n,t)},t.get=function(e){var t=e.representation;if(e.segment.isInit){var n=this._cache.get(t);if(void 0!==n)return n}return null},e}(),Ae=(0,ge.A)();var _e=function(){function e(e){var t=e.prioritySteps;if(this._minPendingPriority=null,this._waitingQueue=[],this._pendingTasks=[],this._prioritySteps=t,this._prioritySteps.high>=this._prioritySteps.low)throw new Error("TP: the max high level priority should be given a lowerpriority number than the min low priority.")}var t=e.prototype;return t.create=function(e,t,n,r){var i,a=this;return(0,v.A)(r,(function(o,s){return i={hasEnded:!1,priority:t,trigger:function(){if(!i.hasEnded){var e=function(){u(),a._endTask(i)},t=new m.Ay,u=t.linkToSignal(r);i.interrupter=t,t.signal.register((function(){i.interrupter=null,r.isCancelled()||n.beforeInterrupted()})),a._minPendingPriority=null===a._minPendingPriority?i.priority:Math.min(a._minPendingPriority,i.priority),a._pendingTasks.push(i),i.taskFn(t.signal).then((function(t){n.beforeEnded(),e(),o(t)})).catch((function(n){!r.isCancelled()&&t.isUsed()&&n instanceof m.AL||function(t){e(),s(t)}(n)}))}},taskFn:e,interrupter:null},a._canBeStartedNow(i)?(i.trigger(),a._isRunningHighPriorityTasks()&&a._interruptCancellableTasks()):a._waitingQueue.push(i),function(){return a._endTask(i)}}))},t._endTask=function(e){e.hasEnded=!0;var t=be(e.taskFn,this._waitingQueue);if(t>=0)this._waitingQueue.splice(t,1);else{var n=be(e.taskFn,this._pendingTasks);if(n<0)return;this._pendingTasks.splice(n,1),this._pendingTasks.length>0?this._minPendingPriority===e.priority&&(this._minPendingPriority=Math.min.apply(Math,this._pendingTasks.map((function(e){return e.priority})))):this._minPendingPriority=null,this._loopThroughWaitingQueue()}},t.updatePriority=function(e,t){var n=be(e,this._waitingQueue);if(n>=0){var r=this._waitingQueue[n];if(r.priority===t)return;if(r.priority=t,!this._canBeStartedNow(r))return;return this._findAndRunWaitingQueueTask(n),void(this._isRunningHighPriorityTasks()&&this._interruptCancellableTasks())}var i=be(e,this._pendingTasks);if(i<0)c.A.warn("TP: request to update the priority of a non-existent task");else{var a=this._pendingTasks[i];if(a.priority!==t){var o=a.priority;a.priority=t,null===this._minPendingPriority||tt.priority?t.priority:e}),null);if(!(null===e||null!==this._minPendingPriority&&this._minPendingPriority=this._prioritySteps.low)return this._interruptPendingTask(t),this._interruptCancellableTasks()}},t._findAndRunWaitingQueueTask=function(e){return e>=this._waitingQueue.length||e<0?(c.A.warn("TP : Tried to start a non existing task"),!1):(this._waitingQueue.splice(e,1)[0].trigger(),!0)},t._interruptPendingTask=function(e){var t,n=be(e.taskFn,this._pendingTasks);n<0?c.A.warn("TP: Interrupting a non-existent pending task. Aborting..."):(this._pendingTasks.splice(n,1),this._waitingQueue.push(e),0===this._pendingTasks.length?this._minPendingPriority=null:this._minPendingPriority===e.priority&&(this._minPendingPriority=Math.min.apply(Math,this._pendingTasks.map((function(e){return e.priority})))),null===(t=e.interrupter)||void 0===t||t.cancel())},t._canBeStartedNow=function(e){return null===this._minPendingPriority||e.priority<=this._minPendingPriority},t._isRunningHighPriorityTasks=function(){return null!==this._minPendingPriority&&this._minPendingPriority<=this._prioritySteps.high},e}();function be(e,t){return(0,A.A)(t,(function(t){return t.taskFn===e}))}var Se=function(){function e(e,t,n){var r=new ve(n),i=l.A.getCurrent(),a=i.MIN_CANCELABLE_PRIORITY,o=i.MAX_HIGH_PRIORITY_LEVEL;this._transport=e,this._prioritizer=new _e({prioritySteps:{high:o,low:a}}),this._cdnPrioritizer=r,this._backoffOptions=t}return e.prototype.createSegmentFetcher=function(e,t){var n,i,a,s=function(e,t){var n=t.maxRetryRegular,r=t.maxRetryOffline,i=t.lowLatencyMode,a=t.requestTimeout,o=l.A.getCurrent(),s=o.DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR,u=o.DEFAULT_REQUEST_TIMEOUT,d=o.DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE,c=o.INITIAL_BACKOFF_DELAY_BASE,f=o.MAX_BACKOFF_DELAY_BASE;return{maxRetryRegular:"image"===e?0:null!=n?n:s,maxRetryOffline:null!=r?r:d,baseDelay:i?c.LOW_LATENCY:c.REGULAR,maxDelay:i?f.LOW_LATENCY:f.REGULAR,requestTimeout:(0,j.A)(a)?u:a}}(e,this._backoffOptions),u=function(e,t,n,i,a){var s={timeout:a.requestTimeout<0?void 0:a.requestTimeout},u=(0,me.A)(["audio","video"],e)?new ye:void 0,l=t.loadSegment,d=t.parseSegment;return function(){var e=(0,r.A)(o().mark((function e(t,r,f){var v,h,g,y,A,_,b,S,E,T,w,k,I,x,R,C,M,P;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P=function(){var e;E||!(0,j.A)(_)&&void 0!==_.size&&void 0!==_.requestDuration&&b.length>0&&b.every((function(e){return e}))&&(E=!0,null===(e=i.onMetrics)||void 0===e||e.call(i,{size:_.size,requestDuration:_.requestDuration,content:t,segmentDuration:S}))},M=function(e){r.onRetry($(e))},C=function(e,n){b.push(!1);var r=b.length-1;return function(i){var a={data:e,isChunked:n};try{var o=d(a,t,i);return b[r]||(S=void 0!==S&&"media"===o.segmentType&&null!==o.chunkInfos&&void 0!==o.chunkInfos.duration?S+o.chunkInfos.duration:void 0,b[r]=!0,P()),o}catch(e){throw(0,G.A)(e,{defaultCode:"PIPELINE_PARSE_ERROR",defaultReason:"Unknown parsing error"})}}},R=function(e){return l(e,t,s,f,T)},x=function(){var e;void 0===_&&(c.A.debug("SF: Segment request cancelled",y),_=null,null===(e=i.onRequestEnd)||void 0===e||e.call(i,{id:A}))},y=(0,he.M)(t),A=Ae(),b=[],S=0,E=!1,T={onProgress:function(e){var t;void 0===_&&void 0!==e.totalSize&&e.size0;){var e=this._queue.shift();void 0!==e&&e.reject(new m.AL)}if("open"===this._mediaSource.readyState)try{c.A.debug("AVSB: Calling `abort` on the SourceBuffer"),this._sourceBuffer.abort()}catch(e){c.A.warn("AVSB: Failed to abort a "+this.bufferType+" SourceBuffer:",e instanceof Error?e:"")}},n._onPendingTaskError=function(e){if(this._lastInitSegmentUniqueId=null,null!==this._pendingTask){var t=e instanceof Error?e:new Error("An unknown error occured when doing operations on the SourceBuffer"),n=this._pendingTask;n.type===ke.B.Push&&0===n.data.length&&null!==n.inventoryData&&this._segmentInventory.insertChunk(n.inventoryData,!1,performance.now()),this._pendingTask=null,n.reject(t)}},n._addToQueue=function(e,t){var n=this;return(0,v.A)(t,(function(t,r){var i=0===n._queue.length&&null===n._pendingTask,a=(0,p.A)({resolve:t,reject:r},e);return n._queue.push(a),i&&n._flush(),function(){var e=n._queue.indexOf(a);e>=0&&n._queue.splice(e,1),a.resolve=g.A,a.reject=g.A}}))},n._flush=function(){if(!this._sourceBuffer.updating){if(null!==this._pendingTask){var e=this._pendingTask;if(e.type!==ke.B.Push||0===e.data.length){switch(e.type){case ke.B.Push:null!==e.inventoryData&&this._segmentInventory.insertChunk(e.inventoryData,!0,performance.now());break;case ke.B.EndOfSegment:this._segmentInventory.completeSegment(e.value,this.getBufferedRanges());break;case ke.B.Remove:this.synchronizeInventory();break;default:(0,we.A)(e)}var t=e.resolve;return this._pendingTask=null,t(),void this._flush()}}else{var n=this._queue.shift();if(void 0===n)return;if(n.type!==ke.B.Push)this._pendingTask=n;else{var r,i=n.value;try{r=this._preparePushOperation(i.data)}catch(e){this._pendingTask=(0,p.A)({data:[],inventoryData:i.inventoryInfos},n);var a=e instanceof Error?e:new Error("An unknown error occured when preparing a push operation");return this._lastInitSegmentUniqueId=null,void n.reject(a)}this._pendingTask=(0,p.A)({data:r,inventoryData:i.inventoryInfos},n)}}try{switch(this._pendingTask.type){case ke.B.EndOfSegment:return c.A.debug("AVSB: Acknowledging complete segment",(0,he.M)(this._pendingTask.value)),void this._flush();case ke.B.Push:var o=this._pendingTask.data.shift();if(void 0===o)return void this._flush();c.A.debug("AVSB: pushing segment",this.bufferType,(0,he.M)(this._pendingTask.inventoryData)),this._sourceBuffer.appendBuffer(o);break;case ke.B.Remove:var s=this._pendingTask.value,u=s.start,l=s.end;c.A.debug("AVSB: removing data from SourceBuffer",this.bufferType,u,l),this._sourceBuffer.remove(u,l);break;default:(0,we.A)(this._pendingTask)}}catch(e){this._onPendingTaskError(e)}}},n._preparePushOperation=function(e){var t=[],n=e.codec,r=e.timestampOffset,i=e.appendWindow,a=!1;if(void 0!==n&&n!==this.codec&&(c.A.debug("AVSB: updating codec",n),a=function(e,t){if("function"==typeof e.changeType){try{e.changeType(t)}catch(e){return c.A.warn("Could not call 'changeType' on the given SourceBuffer:",e instanceof Error?e:""),!1}return!0}return!1}(this._sourceBuffer,n),a?this.codec=n:c.A.debug("AVSB: could not update codec",n,this.codec)),this._sourceBuffer.timestampOffset!==r){var o=r;c.A.debug("AVSB: updating timestampOffset",this.bufferType,this._sourceBuffer.timestampOffset,o),this._sourceBuffer.timestampOffset=o}if(void 0===i[0])this._sourceBuffer.appendWindowStart>0&&(c.A.debug("AVSB: re-setting `appendWindowStart` to `0`"),this._sourceBuffer.appendWindowStart=0);else if(i[0]!==this._sourceBuffer.appendWindowStart){if(i[0]>=this._sourceBuffer.appendWindowEnd){var s=i[0]+1;c.A.debug("AVSB: pre-updating `appendWindowEnd`",s),this._sourceBuffer.appendWindowEnd=s}c.A.debug("AVSB: setting `appendWindowStart`",i[0]),this._sourceBuffer.appendWindowStart=i[0]}if(void 0===i[1]?this._sourceBuffer.appendWindowEnd!==1/0&&(c.A.debug("AVSB: re-setting `appendWindowEnd` to `Infinity`"),this._sourceBuffer.appendWindowEnd=1/0):i[1]!==this._sourceBuffer.appendWindowEnd&&(c.A.debug("AVSB: setting `appendWindowEnd`",i[1]),this._sourceBuffer.appendWindowEnd=i[1]),null!==e.initSegmentUniqueId&&(a||!this._isLastInitSegment(e.initSegmentUniqueId))){var u=this._initSegmentsMap.get(e.initSegmentUniqueId);if(void 0===u)throw new Error("Invalid initialization segment uniqueId");t.push(u),this._lastInitSegmentUniqueId=e.initSegmentUniqueId}return null!==e.chunk&&t.push(e.chunk),t},n._isLastInitSegment=function(e){return null!==this._lastInitSegmentUniqueId&&this._lastInitSegmentUniqueId===e},t}(ke.K),Re=["audio","video","text","image"];function Ce(e){return"audio"===e||"video"===e}var Me=function(){function e(e,t){this._mediaElement=e,this._mediaSource=t,this._initializedSegmentBuffers={},this._onNativeBufferAddedOrDisabled=[]}e.isNative=function(e){return Ce(e)};var t=e.prototype;return t.getBufferTypes=function(){var e=this.getNativeBufferTypes();return null==Te.A.nativeTextTracksBuffer&&null==Te.A.htmlTextTracksBuffer||e.push("text"),null!=Te.A.imageBuffer&&e.push("image"),e},t.getNativeBufferTypes=function(){return"AUDIO"===this._mediaElement.nodeName?["audio"]:["video","audio"]},t.getStatus=function(e){var t=this._initializedSegmentBuffers[e];return void 0===t?{type:"uninitialized"}:null===t?{type:"disabled"}:{type:"initialized",value:t}},t.waitForUsableBuffers=function(e){var t=this;return this._areNativeBuffersUsable()?Promise.resolve():(0,v.A)(e,(function(e){var n,r=function(){var e=t._onNativeBufferAddedOrDisabled.indexOf(n);e>=0&&t._onNativeBufferAddedOrDisabled.splice(e,1)};return n=function(){t._areNativeBuffersUsable()&&(r(),e())},t._onNativeBufferAddedOrDisabled.push(n),r}))},t.disableSegmentBuffer=function(t){var n=this._initializedSegmentBuffers[t];if(null!==n){if(void 0!==n)throw new Error("Cannot disable an active SegmentBuffer.");this._initializedSegmentBuffers[t]=null,e.isNative(t)&&this._onNativeBufferAddedOrDisabled.forEach((function(e){return e()}))}else c.A.warn("SBS: The "+t+" SegmentBuffer was already disabled.")},t.createSegmentBuffer=function(e,t,n){void 0===n&&(n={});var r,i=this._initializedSegmentBuffers[e];if(Ce(e)){if(null!=i)return i instanceof xe&&i.codec!==t?c.A.warn("SB: Reusing native SegmentBuffer with codec",i.codec,"for codec",t):c.A.info("SB: Reusing native SegmentBuffer with codec",t),i;c.A.info("SB: Adding native SegmentBuffer with codec",t);var a=new xe(e,t,this._mediaSource);return this._initializedSegmentBuffers[e]=a,this._onNativeBufferAddedOrDisabled.forEach((function(e){return e()})),a}if(null!=i)return c.A.info("SB: Reusing a previous custom SegmentBuffer for the type",e),i;if("text"===e){if(c.A.info("SB: Creating a new text SegmentBuffer"),"html"===n.textTrackMode){if(null==Te.A.htmlTextTracksBuffer)throw new Error("HTML Text track feature not activated");r=new Te.A.htmlTextTracksBuffer(this._mediaElement,n.textTrackElement)}else{if(null==Te.A.nativeTextTracksBuffer)throw new Error("Native Text track feature not activated");r=new Te.A.nativeTextTracksBuffer(this._mediaElement,!0===n.hideNativeSubtitle)}return this._initializedSegmentBuffers.text=r,r}if("image"===e){if(null==Te.A.imageBuffer)throw new Error("Image buffer feature not activated");return c.A.info("SB: Creating a new image SegmentBuffer"),r=new Te.A.imageBuffer,this._initializedSegmentBuffers.image=r,r}throw c.A.error("SB: Unknown buffer type:",e),new d.A("BUFFER_TYPE_UNKNOWN","The player wants to create a SegmentBuffer of an unknown type.")},t.disposeSegmentBuffer=function(e){var t=this._initializedSegmentBuffers[e];null!=t?(c.A.info("SB: Aborting SegmentBuffer",e),t.dispose(),delete this._initializedSegmentBuffers[e]):c.A.warn("SB: Trying to dispose a SegmentBuffer that does not exist")},t.disposeAll=function(){var e=this;Re.forEach((function(t){"initialized"===e.getStatus(t).type&&e.disposeSegmentBuffer(t)}))},t._areNativeBuffersUsable=function(){var e=this,t=this.getNativeBufferTypes();return!t.some((function(t){return void 0===e._initializedSegmentBuffers[t]}))&&!t.every((function(t){return null===e._initializedSegmentBuffers[t]}))},e}(),Pe=n(6826),De=n.n(Pe),Ne=n(7296),Oe=function(){function e(e){this._weakMap=new WeakMap,this._fn=e}var t=e.prototype;return t.get=function(e){var t=this._weakMap.get(e);if(void 0===t){var n=this._fn(e);return this._weakMap.set(e,n),n}return t},t.destroy=function(e){this._weakMap.delete(e)},e}();function Le(e,t){var n,r=e.segmentBuffer,i=e.playbackObserver,a=e.maxBufferBehind,o=e.maxBufferAhead;function s(){(function(e,t,n,r,i){return Ue.apply(this,arguments)})(r,n,a.getValue(),o.getValue(),t).catch((function(e){var t=e instanceof Error?e.message:"Unknown error";c.A.error("Could not run BufferGarbageCollector:",t)}))}i.listen((function(e){var t;n=null!==(t=e.position.pending)&&void 0!==t?t:e.position.last,s()}),{includeLastObservation:!0,clearSignal:t}),a.onUpdate(s,{clearSignal:t}),o.onUpdate(s,{clearSignal:t}),s()}function Ue(){return(Ue=(0,r.A)(o().mark((function e(t,n,r,i,a){var s,u,l,d,f,v,p,h;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(isFinite(r)||isFinite(i)){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:s=[],u=(0,y.OT)(t.getBufferedRanges(),n),l=u.innerRange,d=u.outerRanges,f=function(){if(isFinite(i)){for(var e=0;et.start&&s.push({start:n+i,end:t.end})}null!=l&&n+i=t.end?s.push(t):n>=t.end&&n-r>t.start&&n-rl.start&&s.push({start:l.start,end:n-r})}}(),f(),v=0,p=s;case 9:if(!(v0&&n[0].segment.id===e._mediaSegmentAwaitingInitMetadata)){var r=e._mediaSegmentRequest;if(0===n.length){if(null===r)return;return c.A.debug("Stream: no more media segment to request. Cancelling queue.",e._content.adaptation.type),void e._restartMediaSegmentDownloadingQueue()}if(null===r)return c.A.debug("Stream: Media segments now need to be requested. Starting queue.",e._content.adaptation.type,n.length),void e._restartMediaSegmentDownloadingQueue();var i=n[0];return r.segment.id!==i.segment.id?(c.A.debug("Stream: Next media segment changed, cancelling previous",e._content.adaptation.type),void e._restartMediaSegmentDownloadingQueue()):void(r.priority!==i.priority&&(c.A.debug("Stream: Priority of next media segment changed, updating",e._content.adaptation.type,r.priority,i.priority),e._segmentFetcher.updatePriority(r.request,i.priority)))}}),{emitCurrentValue:!0,clearSignal:this._currentCanceller.signal}),this._downloadQueue.onUpdate((function(t){var n,r=e._initSegmentRequest;null===t.initSegment||null===r?(null===(n=t.initSegment)||void 0===n?void 0:n.segment.id)!==(null==r?void 0:r.segment.id)&&(null===t.initSegment&&c.A.debug("Stream: no more init segment to request. Cancelling queue.",e._content.adaptation.type),e._restartInitSegmentDownloadingQueue(t.initSegment)):t.initSegment.priority!==r.priority&&e._segmentFetcher.updatePriority(r.request,t.initSegment.priority)}),{emitCurrentValue:!0,clearSignal:this._currentCanceller.signal}))},n.stop=function(){var e;null===(e=this._currentCanceller)||void 0===e||e.cancel(),this._currentCanceller=null},n._restartMediaSegmentDownloadingQueue=function(){var e=this;null!==this._mediaSegmentRequest&&this._mediaSegmentRequest.canceller.cancel();!function t(n){if(null!==e._currentCanceller&&e._currentCanceller.isUsed())e._mediaSegmentRequest=null;else{if(void 0===n)return e._mediaSegmentRequest=null,void e.trigger("emptyQueue",null);var r=new m.Ay,i=null===e._currentCanceller?g.A:r.linkToSignal(e._currentCanceller.signal),a=n.segment,o=n.priority,s=(0,p.A)({segment:a},e._content),u=!1,l=!1;r.signal.register((function(){e._mediaSegmentRequest=null,u||(e._mediaSegmentAwaitingInitMetadata===a.id&&(e._mediaSegmentAwaitingInitMetadata=null),u=!0,l=!1)}));var d=function(t){(0,f.h)("media"===t.segmentType,"Should have loaded a media segment."),e.trigger("parsedMediaSegment",(0,p.A)({},t,{segment:a}))},v=function(){var n=e._downloadQueue.getValue().segmentQueue;if(0===n.length)return u=!0,void e.trigger("emptyQueue",null);n[0].segment.id===a.id&&n.shift(),u=!0,t(n[0])},h=e._segmentFetcher.createRequest(s,o,{onRetry:function(t){e.trigger("requestRetry",{segment:a,error:t})},beforeInterrupted:function(){c.A.info("Stream: segment request interrupted temporarly.",a.id,a.time)},onChunk:function(t){var n=e._initSegmentInfoRef.getValue();void 0!==n?d(t(null!=n?n:void 0)):(l=!0,e._initSegmentInfoRef.waitUntilDefined((function(e){d(t(null!=e?e:void 0))}),{clearSignal:r.signal}))},onAllChunksReceived:function(){l?(e._mediaSegmentAwaitingInitMetadata=a.id,e._initSegmentInfoRef.waitUntilDefined((function(){e._mediaSegmentAwaitingInitMetadata=null,l=!1,e.trigger("fullyLoadedSegment",a)}),{clearSignal:r.signal})):e.trigger("fullyLoadedSegment",a)},beforeEnded:function(){i(),e._mediaSegmentRequest=null,l?e._initSegmentInfoRef.waitUntilDefined(v,{clearSignal:r.signal}):v()}},r.signal);h.catch((function(t){i(),u||(u=!0,e.stop(),e.trigger("error",t))})),e._mediaSegmentRequest={segment:a,priority:o,request:h,canceller:r}}}(this._downloadQueue.getValue().segmentQueue[0])},n._restartInitSegmentDownloadingQueue=function(e){var t=this;if((null===this._currentCanceller||!this._currentCanceller.isUsed())&&(null!==this._initSegmentRequest&&this._initSegmentRequest.canceller.cancel(),null!==e)){var n=new m.Ay,r=null===this._currentCanceller?g.A:n.linkToSignal(this._currentCanceller.signal),i=e.segment,a=e.priority,o=(0,p.A)({segment:i},this._content),s=!1,u=this._segmentFetcher.createRequest(o,a,{onRetry:function(e){t.trigger("requestRetry",{segment:i,error:e})},beforeInterrupted:function(){c.A.info("Stream: init segment request interrupted temporarly.",i.id)},beforeEnded:function(){r(),t._initSegmentRequest=null,s=!0},onChunk:function(e){var n,r=e(void 0);(0,f.h)("init"===r.segmentType,"Should have loaded an init segment."),t.trigger("parsedInitSegment",(0,p.A)({},r,{segment:i})),"init"===r.segmentType&&t._initSegmentInfoRef.setValue(null!==(n=r.initTimescale)&&void 0!==n?n:null)},onAllChunksReceived:function(){t.trigger("fullyLoadedSegment",i)}},n.signal);u.catch((function(e){r(),s||(s=!0,t.stop(),t.trigger("error",e))})),n.signal.register((function(){t._initSegmentRequest=null,s||(s=!0)})),this._initSegmentRequest={segment:i,priority:a,request:u,canceller:n}}},t}(q.A);function Fe(e,t,n,r,i){var a=e.period,o=e.adaptation,s=e.representation,u=function(e,t){for(var n=0;n=t.end)return null;if(r.bufferedEnd>t.start)return n}return null}(i,t);if(null===u){if(null===n){if(r&&void 0!==a.end&&t.end>=a.end)return{start:void 0,end:null};var l=s.index.checkDiscontinuity(t.start);if(null!==l)return{start:void 0,end:l}}return null}var d=i[u];if(void 0!==d.bufferedStart&&d.bufferedStart>t.start&&(null===n||d.infos.segment.end<=n)){var f=d.bufferedStart;return r||!1===s.index.awaitSegmentBetween(t.start,f)?(c.A.debug("RS: current discontinuity encountered",o.type,d.bufferedStart),{start:void 0,end:f}):null}var v=function(e,t,n){if(n<=0)return c.A.error("RS: Asked to check a discontinuity before the first chunk."),null;for(var r=n;r=t.end)return null;if(i.bufferedStart-a.bufferedEnd>0)return r}return null}(i,t,u+1);if(null!==v){var p=i[v-1],h=i[v];if(null===n||h.infos.segment.end<=n){if(!r&&!1!==s.index.awaitSegmentBetween(p.infos.segment.end,h.infos.segment.time))return null;var m=p.bufferedEnd,g=h.bufferedStart;return c.A.debug("RS: future discontinuity encountered",o.type,m,g),{start:m,end:g}}}if(null===n){if(r&&void 0!==a.end){if(t.end=0;n--){var r=e[n];if(void 0===r.bufferedStart)return null;if(r.bufferedStart=a.end)return null;for(var _=i.length-1;_>=0;_--){var b=i[_];if(void 0===b.bufferedStart)break;if(b.bufferedStart=n.length-1?null:n[t+1],s=null;if(function(e,t,n){var r=l.A.getCurrent().MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT;if(void 0===e.bufferedStart)return!1;if(null!==t&&void 0!==t.bufferedEnd&&e.bufferedStart-t.bufferedEnd<.1)return!1;if(nr)return c.A.info("Stream: The start of the wanted segment has been garbage collected",e.start,e.bufferedStart),!0;return!1}(e,r,o.start)){if(function(e,t){var n,r;if(e.length<2)return!0;var i=e[e.length-1],a=null===(n=i.buffered)||void 0===n?void 0:n.start;if(void 0!==t&&void 0!==a&&t-a>.05)return!0;var o=e[e.length-2],s=null===(r=o.buffered)||void 0===r?void 0:r.start;if(void 0===s||void 0===a)return!0;return Math.abs(s-a)>.01}(s=a(e.infos),e.bufferedStart))return!1;c.A.debug("Stream: skipping segment gc-ed at the start",e.start,e.bufferedStart)}if(function(e,t,n){var r=l.A.getCurrent().MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT;if(void 0===e.bufferedEnd)return!1;if(null!==t&&void 0!==t.bufferedStart&&t.bufferedStart-e.bufferedEnd<.1)return!1;if(n>e.bufferedEnd&&e.end-e.bufferedEnd>r)return c.A.info("Stream: The end of the wanted segment has been garbage collected",e.end,e.bufferedEnd),!0;return!1}(e,i,o.end)){if(function(e,t){var n,r;if(e.length<2)return!0;var i=e[e.length-1],a=null===(n=i.buffered)||void 0===n?void 0:n.end;if(void 0!==t&&void 0!==a&&a-t>.05)return!0;var o=e[e.length-2],s=null===(r=o.buffered)||void 0===r?void 0:r.end;if(void 0===s||void 0===a)return!0;return Math.abs(s-a)>.01}(s=null!=s?s:a(e.infos),e.bufferedEnd))return!1;c.A.debug("Stream: skipping segment gc-ed at the end",e.end,e.bufferedEnd)}return!0})),g=l.A.getCurrent(),y=g.MINIMUM_SEGMENT_SIZE,A=g.MIN_BUFFER_AHEAD,_=!1,b=Math.min(1/60,y),S=!1,E=[],T=h.filter((function(e){var t=(0,p.A)({segment:e},n);if(s.length>0&&s.some((function(e){return(0,he.Q)(t,e)})))return!1;var u=e.duration,l=e.time,h=e.end;if(e.isInit)return!0;if(_)return E.push(e),!1;if(e.complete&&u0&&s.some((function(e){if(e.period.id!==n.period.id||e.adaptation.id!==n.adaptation.id)return!1;var a=e.segment;if(a.time-b>l)return!1;if(a.complete){if(a.end+bl)return!1;return!Ke(e,t,r,i)})))return!1;for(var g=0;g-b)if(k.complete){if(k.end-h>-b)return!1}else if(Math.abs(l-k.time)o.start+A))return _=!0,E.push(e),!1;var x=a(t);if(x.length>1){var R=x[x.length-1],C=x[x.length-2];if(null===R.buffered&&null===C.buffered)return c.A.warn("Stream: Segment GCed multiple times in a row, ignoring it.","If this happens a lot and lead to unpleasant experience, please check your device's available memory. If it's low when this message is emitted, you might want to update the RxPlayer's settings (`maxBufferAhead`, `maxVideoBufferSize` etc.) so less memory is used by regular media data buffering."+d.type,f.id,e.time),!1}for(var M=0;Ml){var D=P.start>l+b||ze(m,M).ende[n].start;)n++;return e[--n]}function Ke(e,t,n,r){var i=l.A.getCurrent().CONTENT_REPLACEMENT_PADDING;return e.period.id===t.period.id&&(!(e.segment.timea}return rr}(e.representation,t.representation,r)))}function We(e,t){for(var n=e-t,r=l.A.getCurrent().SEGMENT_PRIORITIES_STEPS,i=0;i=u&&l.isInitialized()&&!l.isStillAwaitingFutureSegments()&&function(e,t,n){var r,i=e.getPeriodAfter(t);return t.containsTime(n,i)&&e.isLastPeriodKnown&&t.id===(null===(r=e.periods[e.periods.length-1])||void 0===r?void 0:r.id)}(a,o,t)?u-1:t-.1;var d,c=i+n;d=!(!s.index.isInitialized()||s.index.isStillAwaitingFutureSegments()||void 0===o.end)&&(void 0===u?c>=o.end:null===u||c>=u);return{start:Math.max(i,o.start),end:Math.min(c,null!==(r=o.end)&&void 0!==r?r:1/0),hasReachedPeriodEnd:d}}(e,u,i),d=s.index.shouldRefresh(l.start,l.end),c=o.getPendingOperations().filter((function(e){return e.type===ke.B.EndOfSegment})).map((function(e){return e.value})),f=o.getInventory(),v=Ve({content:e,bufferedSegments:f,currentPlaybackTime:n.getCurrentTime(),fastSwitchThreshold:r,getBufferedHistory:o.getSegmentHistory.bind(o),neededRange:l,segmentsBeingPushed:c,maxBufferSize:a}),p=v.segmentsToLoad,h=v.segmentsOnHold,m=v.isBufferFull,g=p.map((function(e){return{priority:We(e.time,u),segment:e}})),y=s.index.isInitialized()&&!s.index.isStillAwaitingFutureSegments()&&l.hasReachedPeriodEnd&&0===g.length&&0===h.length,A=null;return c.length>0&&(A=Math.min.apply(Math,c.map((function(e){return e.segment.time})))),h.length>0&&(A=null!==A?Math.min(A,h[0].time):h[0].time),g.length>0&&(A=null!==A?Math.min(A,g[0].segment.time):g[0].segment.time),{imminentDiscontinuity:Fe(e,l,A,y,f),hasFinishedLoading:y,neededSegments:g,isBufferFull:m,shouldRefreshManifest:d}}var He=n(8801);function qe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return je(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nu.end||e+ni.start&&o.push({start:i.start,end:e-n}),e+n0&&x.every((function(e){return void 0!==e.keyIds}))&&(I=!0,t.encryptionDataEncountered(x.map((function(e){return(0,p.A)({content:r},e)}))),S.isUsed()))return}var R=new Be(r,w,s,k);return R.addEventListener("error",(function(e){E.signal.isCancelled()||(S.cancel(),t.error(e))})),R.addEventListener("parsedInitSegment",M),R.addEventListener("parsedMediaSegment",M),R.addEventListener("emptyQueue",C),R.addEventListener("requestRetry",(function(e){if(t.warning(e.error),!E.signal.isCancelled()){var n=e.segment,r=v.index;!1===r.isSegmentStillAvailable(n)?C():r.canBeOutOfSyncError(e.error,n)&&t.manifestMightBeOufOfSync()}})),R.addEventListener("fullyLoadedSegment",(function(e){o.endOfSegment((0,p.A)({segment:e},r),S.signal).catch(P)})),R.start(),E.signal.register((function(){R.removeEventListener(),R.stop()})),a.listen(C,{includeLastObservation:!1,clearSignal:E.signal}),r.manifest.addEventListener("manifestUpdate",C,E.signal),g.onUpdate(C,{emitCurrentValue:!1,clearSignal:E.signal}),y.onUpdate(C,{emitCurrentValue:!1,clearSignal:E.signal}),u.onUpdate(C,{emitCurrentValue:!1,clearSignal:E.signal}),void C();function C(){var e,n;if(!E.isUsed()){var i=a.getReference().getValue(),s=null!==(e=i.position.pending)&&void 0!==e?e:i.position.last,f=Ge(r,s,a,_.getValue(),g.getValue(),y.getValue(),o),p=f.neededSegments,h=null;if(v.index.isInitialized()){if(p.length>0&&!T.isLoaded&&null!==T.segment){var m=p[0].priority;h={segment:T.segment,priority:m}}}else if(null===T.segment)c.A.warn("Stream: Uninitialized index without an initialization segment");else if(T.isLoaded)c.A.warn("Stream: Uninitialized index with an already loaded initialization segment");else{var A=null!==(n=i.position.pending)&&void 0!==n?n:i.position.last;h={segment:T.segment,priority:We(d.start,A)}}var k=u.getValue();if(null===k)w.setValue({initSegment:h,segmentQueue:p});else{if(k.urgent)return c.A.debug("Stream: Urgent switch, terminate now.",b),w.setValue({initSegment:null,segmentQueue:[]}),w.finish(),E.cancel(),void t.terminating();var I=p[0],x=R.getRequestedInitSegment(),C=R.getRequestedMediaSegment(),M=null===C||void 0===I||C.id!==I.segment.id?[]:[I],D=null===x?null:h;if(w.setValue({initSegment:D,segmentQueue:M}),0===M.length&&null===D)return c.A.debug("Stream: No request left, terminate",b),w.finish(),E.cancel(),void t.terminating()}if(t.streamStatusUpdate({period:d,position:i.position.last,bufferType:b,imminentDiscontinuity:f.imminentDiscontinuity,isEmptyStream:!1,hasFinishedLoading:f.hasFinishedLoading,neededSegments:f.neededSegments}),!E.signal.isCancelled()){var N=l.A.getCurrent().UPTO_CURRENT_POSITION_CLEANUP;if(f.isBufferFull){var O=Math.max(0,s-N);O>0&&o.removeBuffer(0,O,S.signal).catch(P)}f.shouldRefreshManifest&&t.needsManifestRefresh()}}}function M(e){if(!S.isUsed())if("init"===e.segmentType){if(T.isLoaded=!0,!I){var n=v.getAllEncryptionData();if(n.length>0&&(t.encryptionDataEncountered(n.map((function(e){return(0,p.A)({content:r},e)}))),S.isUsed()))return}if(null!==e.initializationData){var i=v.uniqueId;T.uniqueId=i,o.declareInitSegment(i,e.initializationData),function(e,t){return Je.apply(this,arguments)}({playbackObserver:a,content:r,initSegmentUniqueId:i,segment:e.segment,segmentData:e.initializationData,segmentBuffer:o},S.signal).then((function(e){null!==e&&t.addedSegment(e)})).catch(P)}C()}else{var s=e.inbandEvents,u=e.needsManifestRefresh,l=e.protectionDataUpdate;if(!I&&l){var d=v.getAllEncryptionData();if(d.length>0&&(t.encryptionDataEncountered(d.map((function(e){return(0,p.A)({content:r},e)}))),S.isUsed()))return}if(!0===u&&(t.needsManifestRefresh(),S.isUsed()))return;if(void 0!==s&&s.length>0&&(t.inbandEvent(s),S.isUsed()))return;var c=T.uniqueId;(function(e,t){return et.apply(this,arguments)})({playbackObserver:a,content:r,initSegmentUniqueId:c,parsedSegment:e,segment:e.segment,segmentBuffer:o},S.signal).then((function(e){null!==e&&t.addedSegment(e)})).catch(P)}}function P(e){S.isUsed()&&e instanceof m.AL||(S.cancel(),t.error(e))}};var nt=function(e,t,n){var r=e.playbackObserver,i=e.content,a=e.options,o=e.representationEstimator,s=e.segmentBuffer,u=e.segmentFetcherCreator,f=e.wantedBufferAhead,v=e.maxVideoBufferSize,y="direct"===a.manualBitrateSwitchingMode,A=i.manifest,_=i.period,b=i.adaptation,S=new m.Ay;S.linkToSignal(n);var E,T=new Map,w=new h.A(null,S.signal),k=function(e,t,n,r,i,a){var o=e.manifest,s=e.adaptation,u=new h.A([],a);v(),o.addEventListener("decipherabilityUpdate",v);var l=a.register(p),c=t(e,n,u,r,a),f=c.estimates;return{abrCallbacks:c.callbacks,estimateRef:f};function v(){var e=s.getPlayableRepresentations();if(0===e.length){var t=new d.A("NO_PLAYABLE_REPRESENTATION","No Representation in the chosen "+s.type+" Adaptation can be played",{adaptation:s});return p(),void i(t)}var n=u.getValue();n.length===e.length&&n.every((function(t,n){return t.id===e[n].id}))||u.setValue(e)}function p(){o.removeEventListener("decipherabilityUpdate",v),void 0!==l&&l()}}(i,o,w,r,(function(e){S.cancel(),t.error(e)}),S.signal),I=k.estimateRef,x=k.abrCallbacks,R=u.createSegmentFetcher(b.type,{onRequestBegin:x.requestBegin,onRequestEnd:x.requestEnd,onProgress:x.requestProgress,onMetrics:x.metrics});function C(e,t,n,i){var o=new m.Ay;o.linkToSignal(S.signal);var u=(0,h.D)(f,(function(t){return t*function(e){var t=T.get(e.id),n=void 0!==t?t:1;void 0===t&&T.set(e.id,n);return n}(e)}),o.signal),l="video"===b.type?v:new h.A(1/0);c.A.info("Stream: changing representation",b.type,e.id,e.bitrate);var d=(0,p.A)({},i,{error:function(r){var a,o=(0,G.A)(r,{defaultCode:"NONE",defaultReason:"Unknown `RepresentationStream` error"});if("BUFFER_FULL_ERROR"!==o.code)i.error(r);else{var s=f.getValue(),u=.7*(null!==(a=T.get(e.id))&&void 0!==a?a:1);if(u<=.05||s*u<=2)throw o;T.set(e.id,u),(0,ee.A)(4e3,S.signal).then((function(){return C(e,t,n,i)})).catch(g.A)}},terminating:function(){o.cancel(),i.terminating()}});tt({playbackObserver:r,content:{representation:e,adaptation:b,period:_,manifest:A},segmentBuffer:s,segmentFetcher:R,terminate:t,options:{bufferGoal:u,maxBufferSize:l,drmSystemId:a.drmSystemId,fastSwitchThreshold:n}},d,S.signal)}I.onUpdate((function(e){var n=e.bitrate;void 0!==n&&n!==E&&(E=n,c.A.debug("Stream: new "+b.type+" bitrate estimate",n),t.bitrateEstimationChange({type:b.type,bitrate:n}))}),{emitCurrentValue:!0,clearSignal:S.signal}),function e(n){var r=new m.Ay;r.linkToSignal(S.signal);var i=I.getValue(),o=i.representation,s=i.manual;if(null===o)return;if(y&&s&&!n){var u=l.A.getCurrent().DELTA_POSITION_AFTER_RELOAD;return De()((function(){if(!r.isUsed()&&I.getValue().manual){var e=u.bitrateSwitch;return t.waitingMediaSourceReload({bufferType:b.type,period:_,timeOffset:e,stayInPeriod:!0})}}))}var d=new h.A(null,r.signal);I.onUpdate((function(e){if(null!==e.representation&&e.representation.id!==o.id)return e.urgent?(c.A.info("Stream: urgent Representation switch",b.type),d.setValue({urgent:!0})):(c.A.info("Stream: slow Representation switch",b.type),d.setValue({urgent:!1}))}),{clearSignal:r.signal,emitCurrentValue:!0});var f=new h.A(0);a.enableFastSwitching&&I.onUpdate((function(e){f.setValueIfChanged(null==e?void 0:e.knownStableBitrate)}),{clearSignal:r.signal,emitCurrentValue:!0});var v={type:b.type,period:_,representation:o};if(w.setValue(o),S.isUsed())return;if(t.representationChange(v),S.isUsed())return;var p={streamStatusUpdate:t.streamStatusUpdate,encryptionDataEncountered:t.encryptionDataEncountered,manifestMightBeOufOfSync:t.manifestMightBeOufOfSync,needsManifestRefresh:t.needsManifestRefresh,inbandEvent:t.inbandEvent,warning:t.warning,error:function(e){m.Ay.isCancellationError(e)&&S.isUsed()||(S.cancel(),t.error(e))},addedSegment:function(e){x.addedSegment(e),S.isUsed()||t.addedSegment(e)},terminating:function(){if(!r.isUsed())return r.cancel(),e(!1)}};C(o,d,f,p)}(!0)},rt=n(9828);var it=function(e,t){var n=e.split(";"),r=n[0],i=n.slice(1),a=t.split(";"),o=a[0],s=a.slice(1);if(r!==o)return!1;var u=(0,S.A)(i,(function(e){return(0,rt.A)(e,"codecs=")})),l=(0,S.A)(s,(function(e){return(0,rt.A)(e,"codecs=")}));if(void 0===u||void 0===l)return!1;var d=u.substring(7),c=l.substring(7);return d.split(".")[0]===c.split(".")[0]};function at(e,t,n,r,i){if(void 0!==e.codec&&"reload"===i.onCodecSwitch&&!function(e,t){return e.getPlayableRepresentations().some((function(e){return it(e.getMimeTypeString(),t)}))}(n,e.codec))return{type:"needs-reload",value:void 0};var a=e.getBufferedRanges();if(0===a.length)return{type:"continue",value:void 0};var o=(0,y.Nn)(a),s=t.start,u=null==t.end?1/0:t.end,d=(0,y.aW)(o,[{start:s,end:u}]);if(0===d.length)return{type:"continue",value:void 0};e.synchronizeInventory();var c=e.getInventory();if(!c.some((function(e){return e.infos.period.id===t.id&&e.infos.adaptation.id!==n.id})))return{type:"continue",value:void 0};var f=function(e,t,n){return e.reduce((function(e,r){if(r.infos.period.id!==t.id||r.infos.adaptation.id!==n.id)return e;var i=r.bufferedStart,a=r.bufferedEnd;return void 0===i||void 0===a||e.push({start:i,end:a}),e}),[])}(c,t,n),v=(0,y.bo)(d,f);if(0===v.length)return{type:"continue",value:void 0};var p=r.currentTime,h=i.audioTrackSwitchingMode;if(("video"===n.type||"audio"===n.type&&"reload"===h)&&(0,y.gV)({start:s,end:u},p)&&(r.readyState>1||!n.getPlayableRepresentations().some((function(t){var n;return it(t.getMimeTypeString(),null!==(n=e.codec)&&void 0!==n?n:"")})))&&!(0,y.Hh)(f,p))return{type:"needs-reload",value:void 0};var m="audio"===n.type&&"direct"===h,g=[],A=function(e,t){for(var n=0;n=t.start)return n>0?e[n-1]:null;return e.length>0?e[e.length-1]:null}(c,t);null!==A&&(void 0===A.bufferedEnd||t.start-A.bufferedEnd<1)&&g.push({start:0,end:t.start+1});var _=n.type,b=l.A.getCurrent().ADAPTATION_SWITCH_BUFFER_PADDINGS,S=b[_].before;null==S&&(S=0);var E=b[_].after;if(null==E&&(E=0),m||g.push({start:p-S,end:p+E}),void 0!==t.end){var T=function(e,t){for(var n=0;nt.start)return e[n];return null}(c,t);null!==T&&(void 0===T.bufferedStart||T.bufferedStart-t.end<1)&&g.push({start:t.end-1,end:Number.MAX_VALUE})}var w=(0,y.bo)(v,g);return 0===w.length?{type:"continue",value:void 0}:m?{type:"flush-buffer",value:w}:{type:"clean-buffer",value:w}}function ot(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=o.end&&(c.A.debug('Stream: full "empty" AdaptationStream',n),s=!0),i.streamStatusUpdate({period:o,bufferType:n,position:u,imminentDiscontinuity:null,isEmptyStream:!0,hasFinishedLoading:s,neededSegments:[]})}t.onUpdate(u,{emitCurrentValue:!1,clearSignal:a}),e.listen(u,{includeLastObservation:!1,clearSignal:a}),u()}var dt=function(e,t,n){var i=e.bufferType,a=e.content,s=e.garbageCollectors,u=e.playbackObserver,d=e.representationEstimator,f=e.segmentFetcherCreator,v=e.segmentBuffersStore,g=e.options,A=e.wantedBufferAhead,_=e.maxVideoBufferSize,b=a.period,S=new h.A(void 0,n);if(t.periodStreamReady({type:i,period:b,adaptationRef:S}),!n.isCancelled()){var E,T=!0;S.onUpdate((function(e){(0,r.A)(o().mark((function r(){var a,d,f,p,h,y,_,S,I,x,R,C,M,P,D,N;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(void 0!==e){r.next=2;break}return r.abrupt("return");case 2:if((d=new m.Ay).linkToSignal(n),null==E||E.cancel(),E=d,null!==e){r.next=34;break}if(c.A.info("Stream: Set no "+i+" Adaptation. P:",b.start),"initialized"!==(f=v.getStatus(i)).type){r.next=26;break}if(c.A.info("Stream: Clearing previous "+i+" SegmentBuffer"),!Me.isNative(i)){r.next=15;break}return r.abrupt("return",k(0,!0,d.signal));case 15:if(p=null!==(a=b.end)&&void 0!==a?a:1/0,!(b.start>p)){r.next=20;break}c.A.warn("Stream: Can't free buffer: period's start is after its end"),r.next=24;break;case 20:return r.next=22,f.value.removeBuffer(b.start,p,d.signal);case 22:if(!d.isUsed()){r.next=24;break}return r.abrupt("return");case 24:r.next=30;break;case 26:if("uninitialized"!==f.type){r.next=30;break}if(v.disableSegmentBuffer(i),!d.isUsed()){r.next=30;break}return r.abrupt("return");case 30:if(t.adaptationChange({type:i,adaptation:null,period:b}),!d.isUsed()){r.next=33;break}return r.abrupt("return");case 33:return r.abrupt("return",lt(u,A,i,{period:b},t,d.signal));case 34:if(h=l.A.getCurrent(),y=h.DELTA_POSITION_AFTER_RELOAD,_=T?0:"audio"===i?y.trackSwitch.audio:"video"===i?y.trackSwitch.video:y.trackSwitch.other,T=!1,!Me.isNative(i)||"disabled"!==v.getStatus(i).type){r.next=39;break}return r.abrupt("return",k(_,!0,d.signal));case 39:if(c.A.info("Stream: Updating "+i+" adaptation","A: "+e.id,"P: "+b.start),t.adaptationChange({type:i,adaptation:e,period:b}),!d.isUsed()){r.next=43;break}return r.abrupt("return");case 43:if(S=u.getReadyState(),I=ut(v,i,e,g),x={currentTime:u.getCurrentTime(),readyState:S},"needs-reload"!==(R=at(I,b,e,x,g)).type){r.next=49;break}return r.abrupt("return",k(_,!0,d.signal));case 49:return r.next=51,v.waitForUsableBuffers(d.signal);case 51:if(!d.isUsed()){r.next=53;break}return r.abrupt("return");case 53:if("flush-buffer"!==R.type&&"clean-buffer"!==R.type){r.next=67;break}C=ot(R.value);case 55:if((M=C()).done){r.next=63;break}return P=M.value,D=P.start,N=P.end,r.next=59,I.removeBuffer(D,N,d.signal);case 59:if(!d.isUsed()){r.next=61;break}return r.abrupt("return");case 61:r.next=55;break;case 63:if("flush-buffer"!==R.type){r.next=67;break}if(t.needsBufferFlush(),!d.isUsed()){r.next=67;break}return r.abrupt("return");case 67:s.get(I)(d.signal),w(e,I,d.signal);case 69:case"end":return r.stop()}}),r)})))().catch((function(e){e instanceof m.AL||(null==E||E.cancel(),t.error(e))}))}),{clearSignal:n,emitCurrentValue:!0})}function w(e,n,r){var o=a.manifest,s=function(e,t){return e.deriveReadOnlyObserver((function(e,n){var r=new h.A(i(),n);return e.onUpdate(a,{clearSignal:n,emitCurrentValue:!1}),r;function i(){var n=e.getValue(),r=t.getBufferedRanges(),i=(0,y.vK)(r,n.position.last);return(0,p.A)({},n,{bufferGap:i})}function a(){r.setValue(i())}}))}(u,n);nt({content:{manifest:o,period:b,adaptation:e},options:g,playbackObserver:s,representationEstimator:d,segmentBuffer:n,segmentFetcherCreator:f,wantedBufferAhead:A,maxVideoBufferSize:_},Object.assign(Object.assign({},t),{error:function(e){if(!Me.isNative(i)){c.A.error("Stream: "+i+" Stream crashed. Aborting it.",e instanceof Error?e:""),v.disposeSegmentBuffer(i);var n=(0,G.A)(e,{defaultCode:"NONE",defaultReason:"Unknown `AdaptationStream` error"});if(t.warning(n),r.isCancelled())return;return lt(u,A,i,{period:b},t,r)}c.A.error("Stream: "+i+" Stream crashed. Stopping playback.",e instanceof Error?e:""),t.error(e)}}),r)}function k(e,n,r){De()((function(){u.listen((function(){t.waitingMediaSourceReload({bufferType:i,period:b,timeOffset:e,stayInPeriod:n})}),{includeLastObservation:!0,clearSignal:r})}))}};function ct(e,t){if(0===t.length)return[];e.synchronizeInventory();for(var n,r=[],i=e.getInventory(),a=function(){var e=i[o];if(t.some((function(t){return e.infos.period.id===t.period.id&&e.infos.adaptation.id===t.adaptation.id&&e.infos.representation.id===t.representation.id}))){var n=e.bufferedStart,a=e.bufferedEnd;if(void 0===n||void 0===a)return c.A.warn("SO: No buffered start or end found from a segment."),{v:[{start:0,end:Number.MAX_VALUE}]};var s=r[r.length-1];void 0!==s&&s.end===n?s.end=a:r.push({start:n,end:a})}},o=0;o=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?t[t.length-1].end>=n-5:t[0].start<=n+5}var ht=function(e,t,n,i,a,s,u,f){for(var v,p=e.manifest,g=e.initialPeriod,y=s.maxBufferAhead,A=s.maxBufferBehind,_=s.wantedBufferAhead,b=s.maxVideoBufferSize,S=l.A.getCurrent(),E=S.MINIMUM_MAX_BUFFER_AHEAD,T=S.MAXIMUM_MAX_BUFFER_AHEAD,w=S.MAXIMUM_MAX_BUFFER_BEHIND,k=new Oe((function(e){var n,r,i=e.bufferType,a=null!==(n=w[i])&&void 0!==n?n:1/0,o=null!==(r=T[i])&&void 0!==r?r:1/0;return function(n){Le({segmentBuffer:e,playbackObserver:t,maxBufferBehind:(0,h.D)(A,(function(e){return Math.min(e,a)}),n),maxBufferAhead:(0,h.D)(y,(function(e){var t,n=Math.max(e,null!==(t=E[i])&&void 0!==t?t:0);return Math.min(n,o)}),n)},n)}})),I=ft(i.getBufferTypes());!(v=I()).done;){x(v.value,g)}function x(e,n){var a=new Ne.A((function(e,t){return e.start-t.start})),s=!1,l=new m.Ay;return l.linkToSignal(f),t.listen((function(t){var n,r,i=t.position,o=null!==(n=i.pending)&&void 0!==n?n:i.last;if(s&&function(e){var t=a.head(),n=a.last();if(null==t||null==n)return!0;return t.start>e||(null==n.end?1/0:n.end)0;){var d=a.get(a.length()-1);a.removeElement(d),u.periodStreamCleared({type:e,period:d})}l.cancel(),(l=new m.Ay).linkToSignal(f);var h=null!==(r=p.getPeriodForTime(o))&&void 0!==r?r:p.getNextPeriod(o);if(void 0===h)return c.A.warn("Stream: The wanted position is not found in the Manifest."),void(s=!0);v(h)}}),{clearSignal:f,includeLastObservation:!0}),p.addEventListener("decipherabilityUpdate",(function(e){(function(e){return h.apply(this,arguments)})(e).catch((function(e){l.cancel(),u.error(e)}))}),f),v(n);function v(t){var n=Object.assign(Object.assign({},u),{waitingMediaSourceReload:function(e){var t=a.head();void 0===t||t.id!==e.period.id?u.lockedStream({bufferType:e.bufferType,period:e.period}):u.needsMediaSourceReload({timeOffset:e.timeOffset,minimumPosition:e.stayInPeriod?e.period.start:void 0,maximumPosition:e.stayInPeriod?e.period.end:void 0})},periodStreamReady:function(e){s=!0,a.add(e.period),u.periodStreamReady(e)},periodStreamCleared:function(e){a.removeElement(e.period),u.periodStreamCleared(e)},error:function(e){l.cancel(),u.error(e)}});R(e,t,n,l.signal)}function h(){return h=(0,r.A)(o().mark((function n(r){var h,g,y,A,_,b,S,E,T,w,k,I,x;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(h=i.getStatus(e),0!==(g=r.filter((function(t){return t.adaptation.type===e}))).length&&"initialized"===h.type&&!g.every((function(e){return!0===e.representation.decipherable}))){n.next=4;break}return n.abrupt("return");case 4:for(y=h.value,A=g.filter((function(e){return void 0===e.representation.decipherable})),_=g.filter((function(e){return!1===e.representation.decipherable})),b=ct(y,_),S=ct(y,A),s=!1,c.A.info("Stream: Destroying all PeriodStreams for decipherability matters",e);a.length()>0;)E=a.get(a.length()-1),a.removeElement(E),u.periodStreamCleared({type:e,period:E});l.cancel(),(l=new m.Ay).linkToSignal(f),T=0,w=[].concat(b,S);case 16:if(!(T=r.end){var l=p.getPeriodAfter(r);if(r.containsTime(u,l))return;c.A.info("Stream: Destroying PeriodStream as the current playhead moved above it",e,r.start,null!==(a=s.pending)&&void 0!==a?a:s.last,r.end),n(),o.periodStreamCleared({type:e,period:r}),d.cancel()}}),{clearSignal:u,includeLastObservation:!0});var f={bufferType:e,content:{manifest:p,period:r},garbageCollectors:k,maxVideoBufferSize:b,segmentFetcherCreator:a,segmentBuffersStore:i,options:s,playbackObserver:t,representationEstimator:n,wantedBufferAhead:_},v=Object.assign(Object.assign({},o),{streamStatusUpdate:function(t){if(t.hasFinishedLoading){var n=p.getPeriodAfter(r);null!==n&&function(t){if(null!==l){if(l.period.id===t.id)return;c.A.warn("Stream: Creating next `PeriodStream` while one was already created.",e,t.id,l.period.id),o.periodStreamCleared({type:e,period:l.period}),l.canceller.cancel()}var n=new m.Ay;n.linkToSignal(u),l={canceller:n,period:t},R(e,t,o,l.canceller.signal)}(n)}else null!==l&&(c.A.info("Stream: Destroying next PeriodStream due to current one being active",e,l.period.start),o.periodStreamCleared({type:e,period:l.period}),l.canceller.cancel(),l=null);o.streamStatusUpdate(t)},error:function(e){null!==l&&(l.canceller.cancel(),l=null),d.cancel(),o.error(e)}});dt(f,v,d.signal)}},mt=ht,gt=n(4640);function yt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);na.getMaximumAvailablePosition()){var u=new d.A("MEDIA_TIME_AFTER_MANIFEST","The current position is after the latest time announced in the Manifest.");i.trigger("warning",u)}}),{includeLastObservation:!0,clearSignal:o}),t.addEventListener("manifestUpdate",(function(){i.trigger("endingPositionChange",i._getManifestEndTime()),o.isCancelled()||i._checkEndOfStream()}),o),i}(0,i.A)(t,e);var n=t.prototype;return n.getCurrentEndingTime=function(){return this._getManifestEndTime()},n.onAdaptationChange=function(e,t,n){if(this._manifest.isLastPeriodKnown){var r=this._manifest.periods[this._manifest.periods.length-1];if(t.id===(null==r?void 0:r.id)&&("audio"===e||"video"===e)){"audio"===e?this._maximumPositionCalculator.updateLastAudioAdaptation(n):this._maximumPositionCalculator.updateLastVideoAdaptation(n);var i=this._maximumPositionCalculator.getEndingPosition(),a=void 0!==i?{isEnd:!0,endingPosition:i}:{isEnd:!1,endingPosition:this._maximumPositionCalculator.getMaximumAvailablePosition()};this.trigger("endingPositionChange",a)}}this._canceller.isUsed()||null===n&&this._addActivelyLoadedPeriod(t,e)},n.onRepresentationChange=function(e,t){this._addActivelyLoadedPeriod(t,e)},n.onPeriodCleared=function(e,t){this._removeActivelyLoadedPeriod(t,e)},n.onLastSegmentFinishedLoading=function(e){var t=this._lazilyCreateActiveStreamInfo(e);t.hasFinishedLoadingLastPeriod||(t.hasFinishedLoadingLastPeriod=!0,this._checkEndOfStream())},n.onLastSegmentLoadingResume=function(e){var t=this._lazilyCreateActiveStreamInfo(e);t.hasFinishedLoadingLastPeriod&&(t.hasFinishedLoadingLastPeriod=!1,this._checkEndOfStream())},n.dispose=function(){this.removeEventListener(),this._canceller.cancel()},n._addActivelyLoadedPeriod=function(e,t){var n=this._lazilyCreateActiveStreamInfo(t);n.activePeriods.has(e)||(n.activePeriods.add(e),this._checkCurrentPeriod())},n._removeActivelyLoadedPeriod=function(e,t){var n=this._activeStreams.get(t);void 0!==n&&n.activePeriods.has(e)&&(n.activePeriods.removeElement(e),this._checkCurrentPeriod())},n._checkCurrentPeriod=function(){var e=this;if(0!==this._allBufferTypes.length){var t=this._activeStreams.get(this._allBufferTypes[0]);if(void 0!==t)for(var n,r,i=function(){for(var t=r.value,n=!0,i=1;i=0;a--){var o=i[a];try{"open"===r&&(c.A.info("Init: Aborting SourceBuffer before removing"),o.abort()),c.A.info("Init: Removing SourceBuffer from mediaSource"),t.removeSourceBuffer(o)}catch(e){c.A.warn("Init: Error while disposing SourceBuffer",e instanceof Error?e:"")}}i.length>0&&c.A.warn("Init: Not all SourceBuffers could have been removed.")}if(c.A.info("Init: Clearing HTMLMediaElement's src"),(0,Tt.A)(e),null!==n)try{c.A.debug("Init: Revoking previous URL"),URL.revokeObjectURL(n)}catch(e){c.A.warn("Init: Error while revoking the media source URL",e instanceof Error?e:"")}}function Rt(e,t){return(0,v.A)(t,(function(n){var r=function(e,t){if(null==wt.j)throw new d.A("MEDIA_SOURCE_NOT_SUPPORTED","No MediaSource Object was found in the current browser.");var n=(0,It.A)(e.src)?e.src:null;xt(e,null,n),c.A.info("Init: Creating MediaSource");var r=new wt.j,i=URL.createObjectURL(r);return c.A.info("Init: Attaching MediaSource URL to the media element",i),e.src=i,t.register((function(){xt(e,r,i)})),r}(e,t);kt.bF(r,(function(){c.A.info("Init: MediaSource opened"),n(r)}),t)}))}function Ct(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?a:Math.max(i,a+d)}if(!(0,j.A)(n.fromLivePosition)){c.A.debug("Init: using startAt.fromLivePosition");var f=null!==(r=e.getLivePosition())&&void 0!==r?r:a,v=n.fromLivePosition;return v>=0?f:Math.max(i,f+v)}if(!(0,j.A)(n.percentage)){c.A.debug("Init: using startAt.percentage");var p=n.percentage;return p>100?a:p<0?i:i+(a-i)*(+p/100)}}var h=e.getMinimumSafePosition();if(e.isLive){var m,g=e.suggestedPresentationDelay,y=e.clockOffset,A=e.getMaximumSafePosition(),_=l.A.getCurrent().DEFAULT_LIVE_GAP;if(void 0===y)c.A.info("Init: no clock offset found for a live content, starting close to maximum available position"),m=A;else{c.A.info("Init: clock offset found for a live content, checking if we can start close to it");var b=void 0===e.availabilityStartTime?0:e.availabilityStartTime,S=(performance.now()+y)/1e3-b;m=Math.min(A,S)}var E=void 0!==g?g:t?_.LOW_LATENCY:_.DEFAULT;return c.A.debug("Init: "+m+" defined as the live time, applying a live gap of "+E),Math.max(m-E,h)}return c.A.info("Init: starting at the minimum available position:",h),h}var Ut=n(5097),Bt=n(107),Ft=n(6899);var Vt=31536e3,zt=function(){function e(e){this._mediaSource=e,this._currentMediaSourceDurationUpdateCanceller=null}var t=e.prototype;return t.updateDuration=function(e,t){null!==this._currentMediaSourceDurationUpdateCanceller&&this._currentMediaSourceDurationUpdateCanceller.cancel(),this._currentMediaSourceDurationUpdateCanceller=new m.Ay;var n=this._mediaSource,r=this._currentMediaSourceDurationUpdateCanceller.signal,i=function(e,t){var n=new h.A("open"===e.readyState,t);return(0,kt.bF)(e,(function(){c.A.debug("Init: Reacting to MediaSource open in duration updater"),n.setValueIfChanged(!0)}),t),(0,kt.Z1)(e,(function(){c.A.debug("Init: Reacting to MediaSource ended in duration updater"),n.setValueIfChanged(!1)}),t),(0,kt.XC)(e,(function(){c.A.debug("Init: Reacting to MediaSource close in duration updater"),n.setValueIfChanged(!1)}),t),n}(n,r),a=new m.Ay;a.linkToSignal(r),i.onUpdate((function(){if(a.cancel(),!i.getValue())return;(a=new m.Ay).linkToSignal(r);var o=function(e,t){if(0===e.length){var n=new h.A(!1);return n.finish(),n}var r=new h.A(!1,t);o();for(var i=function(){var n=e[a];n.addEventListener("updatestart",o),n.addEventListener("update",o),t.register((function(){n.removeEventListener("updatestart",o),n.removeEventListener("update",o)}))},a=0;a0&&(i=Math.max(o.buffered.end(u-1)))}if(r===e.duration)return"success";if(i>r){if(i=.1?f=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no||void 0!==f&&o>=f)&&(Xt(d)&&u.push(d.publicEvent),this._eventsBeingPlayed.delete(d)):c<=o&&void 0!==f&&o=(null!=f?f:c)&&(a?s.push({type:"stream-event-skip",value:d.publicEvent}):(s.push({type:"stream-event",value:d.publicEvent}),Xt(d)&&u.push(d.publicEvent)))}if(s.length>0)for(var v,p=Yt(s);!(v=p()).done;){var h=v.value;if("stream-event"===h.type?this.trigger("event",h.value):this.trigger("eventSkip",h.value),r.isCancelled())return}if(u.length>0)for(var m,g=Yt(u);!(m=g()).done;){var y=m.value;if("function"==typeof y.onExit&&y.onExit(),r.isCancelled())return}},t}(q.A);function Xt(e){return void 0!==e.end}var Zt=$t,Jt=n(8345);function en(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return tn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nd.end&&(t=d.end-1)}}else t=u;return{maximumPosition:o.getMaximumSafePosition(),position:{last:n.position,pending:t},duration:n.duration,paused:{last:n.paused,pending:i.getValue()||!r===n.paused?void 0:!r},readyState:n.readyState,speed:l}}function f(){d.setValue(c())}}))}(p,{autoPlay:a,manifest:c,initialPlayPerformed:k,initialSeekPerformed:I,speed:_,startTime:s},n),R=this._createRebufferingController(p,c,_,n);u&&c.addEventListener("decipherabilityUpdate",(function(e){e.some((function(e){return!0!==e.representation.decipherable}))&&P(0,void 0,void 0)}),n);var C=this._createContentTimeBoundariesObserver(c,v,x,E,n);w.then((function(){(0,Ut.A)(p,f,!1,n).onUpdate((function(e,t){e&&(t(),i.trigger("loaded",{segmentBuffersStore:E}))}),{emitCurrentValue:!0,clearSignal:n})})).catch((function(e){n.isCancelled()||i._onFatalError(e)}));var M=this;mt({manifest:c,initialPeriod:b},x,y,E,A,o,{needsBufferFlush:function(){var e=f.currentTime+.001;p.setCurrentTime(e),p.listen((function(t,n){(null!==t.currentRange||t.position>e+.1)&&(n(),p.setCurrentTime(t.position+.001))}),{includeLastObservation:!1,clearSignal:n})},streamStatusUpdate:function(e){var t=e.period,r=e.bufferType,i=e.imminentDiscontinuity,a=e.position;R.updateDiscontinuityInfo({period:t,bufferType:r,discontinuity:i,position:a}),n.isCancelled()||c.isLastPeriodKnown&&e.period.id===c.periods[c.periods.length-1].id&&(e.hasFinishedLoading||e.isEmptyStream?C.onLastSegmentFinishedLoading(e.bufferType):C.onLastSegmentLoadingResume(e.bufferType))},needsManifestRefresh:function(){return M._manifestFetcher.scheduleManualRefresh({enablePartialRefresh:!0,canUseUnsafeMode:!0})},manifestMightBeOufOfSync:function(){var e=l.A.getCurrent().OUT_OF_SYNC_MANIFEST_REFRESH_DELAY;M._manifestFetcher.scheduleManualRefresh({enablePartialRefresh:!1,canUseUnsafeMode:!1,delay:e})},lockedStream:function(e){return R.onLockedStream(e.bufferType,e.period)},adaptationChange:function(e){M.trigger("adaptationChange",e),n.isCancelled()||C.onAdaptationChange(e.type,e.period,e.adaptation)},representationChange:function(e){M.trigger("representationChange",e),n.isCancelled()||C.onRepresentationChange(e.type,e.period)},inbandEvent:function(e){return M.trigger("inbandEvents",e)},warning:function(e){return M.trigger("warning",e)},periodStreamReady:function(e){return M.trigger("periodStreamReady",e)},periodStreamCleared:function(e){C.onPeriodCleared(e.type,e.period),n.isCancelled()||M.trigger("periodStreamCleared",e)},bitrateEstimationChange:function(e){return M.trigger("bitrateEstimationChange",e)},addedSegment:function(e){return M.trigger("addedSegment",e)},needsMediaSourceReload:function(e){P(e.timeOffset,e.minimumPosition,e.maximumPosition)},needsDecipherabilityFlush:function(){var e,n,r,i,a=(0,W.A)(f);if(void 0===(i=null==a?void 0:a[0])||i.indexOf("widevine")<0){var o=x.getReference().getValue(),s=null!==(e=o.position.pending)&&void 0!==e?e:x.getCurrentTime(),u=null!==(n=o.paused.pending)&&void 0!==n?n:x.getIsPaused();t({position:s,autoPlay:!u})}else{var l=x.getReference().getValue(),d=null!==(r=l.position.pending)&&void 0!==r?r:x.getCurrentTime();d+.0010)return l.setValue(!0),void u.cancel()}var a=r.A7?4:3;return e.readyState>=a&&(null!==e.currentRange||e.ended)&&(!(0,i.A)()||t.duration>0)?(l.setValue(!0),void u.cancel()):void 0}}),{includeLastObservation:!0,clearSignal:u.signal}),l}},107:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(2097),i=n(9770),a=n(443);var o=n(5575),s=n(9477),u=n(8315);function l(e,t,n,l,d,c,f){var v,p,h=new Promise((function(e,t){v=e,p=t})),m=new u.A(!1,f),g=new u.A(!1,f);e.addEventListener("loadedmetadata",A);var y=f.register((function(t){e.removeEventListener("loadedmetadata",A),p(t)}));return e.readyState>=i.t.HAVE_METADATA&&A(),{autoPlayResult:h,initialPlayPerformed:g,initialSeekPerformed:m};function A(){e.removeEventListener("loadedmetadata",A);var i=!1,u=function(e){s.A.info("Init: Set initial time",e),t.setCurrentTime(e),i=!0,m.setValue(!0),m.finish()},h="function"==typeof n?n():n;if((a.qe||a.h$)&&0===h?(m.setValue(!0),m.finish()):c&&a.dX?setTimeout((function(){u(h)}),0):u(h),(0,r.A)()&&0===e.duration){var _=new o.A("MEDIA_ERR_NOT_LOADED_METADATA","Cannot load automatically: your browser falsely announced having loaded the content.");d(_)}if(!f.isCancelled()){var b=i;t.listen((function(t,n){!i||!t.seeking&&"seeking"!==t.event&&"internal-seeking"!==t.event?!b&&!t.seeking&&null===t.rebuffering&&t.readyState>=1&&(n(),function(){var t,n;if(s.A.info("Init: Can begin to play content"),!l)return e.autoplay&&s.A.warn("Init: autoplay is enabled on HTML media element. Media will play as soon as possible."),g.setValue(!0),g.finish(),y(),v({type:"skipped"});if(e.ended)return s.A.warn("Init: autoplay is enabled but the video is ended. Skipping autoplay to prevent video to start again"),g.setValue(!0),g.finish(),y(),v({type:"skipped"});try{n=null!==(t=e.play())&&void 0!==t?t:Promise.resolve()}catch(e){return y(),p(e)}n.then((function(){if(!f.isCancelled())return g.setValue(!0),g.finish(),y(),v({type:"autoplay"})})).catch((function(e){if(y(),!f.isCancelled()){if(e instanceof Error&&"NotAllowedError"===e.name){s.A.warn("Init: Media element can't play. It may be due to browser auto-play policies.");var t=new o.A("MEDIA_ERR_BLOCKED_AUTOPLAY","Cannot trigger auto-play automatically: your browser does not allow it.");if(d(t),f.isCancelled())return;return v({type:"autoplay-blocked"})}p(e)}}))}()):b=!1}),{includeLastObservation:!0,clearSignal:f})}}}},6899:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(1956),i=n(418),a=n(9477),o=n(8315),s=n(2507),u=n(2137);function l(e,t,n,l,d){if(0===t.length)return h("No `keySystems` option given.");if(null===i.A.decrypt)return h("EME feature not activated.");var c=new s.Ay;c.linkToSignal(d);var f=new o.A({initializationState:{type:"uninitialized",value:null},drmSystemId:void 0},d),v=i.A.decrypt;if(!v.hasEmeApis())return h("EME API not available on the current page.");a.A.debug("Init: Creating ContentDecryptor");var p=new v(e,t);return p.addEventListener("stateChange",(function(e){if(e===u.R.WaitingForAttachment){var t=new o.A(!1);t.onUpdate((function(t,n){t&&(n(),e===u.R.WaitingForAttachment&&p.attach())}),{clearSignal:c.signal}),f.setValue({initializationState:{type:"awaiting-media-link",value:{isMediaLinked:t}},drmSystemId:p.systemId})}else e===u.R.ReadyForContent&&(f.setValue({initializationState:{type:"initialized",value:null},drmSystemId:p.systemId}),p.removeEventListener("stateChange"))})),p.addEventListener("error",(function(e){c.cancel(),l.onError(e)})),p.addEventListener("warning",(function(e){l.onWarning(e)})),n.onUpdate((function(e){null!==e&&p.onInitializationData(e)}),{clearSignal:c.signal}),c.signal.register((function(){p.dispose()})),f;function h(e){n.onUpdate((function(t,n){if(null!==t){n();var i=new r.A("MEDIA_IS_ENCRYPTED_ERROR",e);l.onError(i)}}),{clearSignal:d});var t=new o.A({initializationState:{type:"initialized",value:null},drmSystemId:void 0});return t.finish(),t}}},3108:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(7387),i=n(443).ZN,a=n(5151),o=n(5575),s=n(9477),u=n(79),l=n(3650),d=n(2507),c=1/60,f=function(e){function t(t,n,r){var i;return(i=e.call(this)||this)._playbackObserver=t,i._manifest=n,i._speed=r,i._discontinuitiesStore=[],i._isStarted=!1,i._canceller=new d.Ay,i}(0,r.A)(t,e);var n=t.prototype;return n.start=function(){var e=this;if(!this._isStarted){var t;this._isStarted=!0;var n=null,r=new h(this._playbackObserver,this._speed);this._canceller.signal.register((function(){r.dispose()}));var o=null;this._playbackObserver.listen((function(u){var d,f,v=e._discontinuitiesStore,h=u.buffered,m=u.position,g=u.readyState,y=u.rebuffering,A=u.freezing,_=a.A.getCurrent(),b=_.BUFFER_DISCONTINUITY_THRESHOLD,S=_.FORCE_DISCONTINUITY_SEEK_DELAY,E=_.FREEZING_STALLED_DELAY,T=_.UNFREEZING_SEEK_DELAY,w=_.UNFREEZING_DELTA_POSITION;if(!u.seeking&&i&&null===n&&null!==t&&u.positionT&&(s.A.warn("Init: trying to seek to un-freeze player"),e._playbackObserver.setCurrentTime(e._playbackObserver.getCurrentTime()+w),o={attemptTimestamp:I}),I-A.timestamp>E)return null===y||null!==n?r.stopRebuffering():r.startRebuffering(),void e.trigger("stalled","freezing")}else o=null;if(null===y)return r.stopRebuffering(),1===g?(f=u.seeking?null!==u.pendingInternalSeek?"internal-seek":"seeking":"not-ready",void e.trigger("stalled",f)):void e.trigger("unstalled",null);var x="seeking"===y.reason&&null!==u.pendingInternalSeek?"internal-seek":y.reason;if(null!==n){var R=performance.now();if(R-n0){var M=function(e,t,n){if(0===e.length)return null;for(var r=null,i=0;in)return r;var o=void 0;if(void 0===a.end||a.end>n){var u=e[i],l=u.discontinuity,d=u.position,f=l.start,v=l.end;if(n>=(null!=f?f:d)-c)if(null===v){var p=t.getPeriodAfter(a);null!==p?o=p.start+c:s.A.warn("Init: discontinuity at Period's end but no next Period")}else no?r:o)}}return r}(v,e._manifest,C);if(null!==M){var P=M+.001;if(!(P<=e._playbackObserver.getCurrentTime()))return s.A.warn("SA: skippable discontinuity found in the stream",m,P),e._playbackObserver.setCurrentTime(P),void e.trigger("warning",p(C,P));s.A.info("Init: position to seek already reached, no seeking",e._playbackObserver.getCurrentTime(),P)}}var D=null!=C?C:m,N=(0,l.Td)(h,D);if(e._speed.getValue()>0&&N=0;L--){var U=e._manifest.periods[L];if(void 0!==U.end&&U.end<=D){if(e._manifest.periods[L+1].start>D&&e._manifest.periods[L+1].start>e._playbackObserver.getCurrentTime()){var B=e._manifest.periods[L+1];return e._playbackObserver.setCurrentTime(B.start),void e.trigger("warning",p(D,B.start))}break}}e.trigger("stalled",x)}else e.trigger("stalled",x)}),{includeLastObservation:!0,clearSignal:this._canceller.signal})}},n.updateDiscontinuityInfo=function(e){this._isStarted||this.start();var t=this._playbackObserver.getReference().getValue();!function(e,t,n){for(;e.length>0&&void 0!==e[0].period.end&&e[0].period.end+10r.start)return void(v(t)&&e.splice(a,0,t));v(t)&&e.push(t)}(this._discontinuitiesStore,e,t)},n.onLockedStream=function(e,t){var n;this._isStarted||this.start();var r=this._playbackObserver.getReference().getValue();if(!(!r.rebuffering||r.paused||this._speed.getValue()<=0||"audio"!==e&&"video"!==e)){var i=r.position,a=null!==(n=r.rebuffering.position)&&void 0!==n?n:i,o=t.start;i=0;n--){if(e[n].startt)return e.slice(n,e.length)}return[]}function m(e,t,n){var r=Math.max(e.start,t),i=p(e.cues,t),a={start:e.start,end:r,cues:i},o=Math.min(n,e.end),s=h(e.cues,n);return[a,{start:o,end:e.end,cues:s}]}var g=function(){function e(){this._cuesBuffer=[]}var t=e.prototype;return t.get=function(e){for(var t=this._cuesBuffer,n=[],r=t.length-1;r>=0;r--){var i=t[r];if(e=i.start){for(var a=i.cues,o=0;o=a[o].start&&e0)for(var s=0;se){var a=r[i];if(a.start>=n)return;if(a.end>=n){if(e<=a.start)a.cues=h(a.cues,n),a.start=n;else{var o=m(a,e,n),s=o[0],u=o[1];this._cuesBuffer[i]=s,r.splice(i+1,0,u)}return}a.start>=e?(r.splice(i,1),i--):(a.cues=p(a.cues,e),a.end=Math.max(e,a.start))}},t.insert=function(e,t,n){var r,i,a,o,s=this._cuesBuffer,u={start:t,end:n,cues:e},l=Math.abs(t-n)/5;function d(e){var t=s[e];void 0===t||v(u.end,t.end,l)?s[e]=u:(t.start>=u.end||(t.cues=h(t.cues,u.end),t.start=u.end),s.splice(e,0,u))}for(var c=0;cf.end);return void d(c)}if(tf.end);return void d(c)}if(v(f.end,n,l))return f.cues=p(f.cues,t),f.end=t,void s.splice(c+1,0,u);if(f.end>n){var g=m(f,t,n),y=g[0],A=g[1];return this._cuesBuffer[c]=y,s.splice(c+1,0,u),void s.splice(c+2,0,A)}f.cues=p(f.cues,t),f.end=t;var _=c+1;for(f=s[_];void 0!==f&&n>f.end;)s.splice(_,1),f=s[_];return void d(_)}}if(s.length){var b=s[s.length-1];v(b.end,t,l)&&(b.end=t)}s.push(u)},e}();function y(e,t,n,r){for(var i=[t/n.columns,e/n.rows],a=r.getElementsByClassName("proportional-style"),o=0;o0}var A=i.g9,_=i.Bi,b=i.ID;function S(e,t){try{e.removeChild(t)}catch(e){a.A.warn("HTSB: Can't remove text track: not in the element.")}}function E(e){var t=e.getAttribute("data-resolution-rows"),n=e.getAttribute("data-resolution-columns");if(null===t||null===n)return null;var r=parseInt(t,10),i=parseInt(n,10);return null===r||null===i?null:{rows:r,columns:i}}var T=function(e){function t(t,n){var r;return a.A.debug("HTSB: Creating HTMLTextSegmentBuffer"),(r=e.call(this)||this).bufferType="text",r._buffered=new c.A,r._videoElement=t,r._textTrackElement=n,r._sizeUpdateCanceller=new l.Ay,r._canceller=new l.Ay,r._buffer=new g,r._currentCues=[],r.autoRefreshSubtitles(r._canceller.signal),r}(0,r.A)(t,e);var n=t.prototype;return n.declareInitSegment=function(e){a.A.warn("ISB: Declaring initialization segment for image SegmentBuffer",e)},n.freeInitSegment=function(e){a.A.warn("ISB: Freeing initialization segment for image SegmentBuffer",e)},n.pushChunk=function(e){try{this.pushChunkSync(e)}catch(e){return Promise.reject(e)}return Promise.resolve()},n.removeBuffer=function(e,t){return this.removeBufferSync(e,t),Promise.resolve()},n.endOfSegment=function(e){return this._segmentInventory.completeSegment(e,this._buffered),Promise.resolve()},n.getBufferedRanges=function(){return this._buffered},n.dispose=function(){a.A.debug("HTSB: Disposing HTMLTextSegmentBuffer"),this._disableCurrentCues(),this._buffer.remove(0,1/0),this._buffered.remove(0,1/0),this._canceller.cancel()},n.pushChunkSync=function(e){var t,n;a.A.debug("HTSB: Appending new html text tracks");var r=e.data,i=r.timestampOffset,o=r.appendWindow,s=r.chunk;if(null!==s){var u,l,d=s.start,c=s.end,v=s.data,p=s.type,h=s.language,m=null!==(t=o[0])&&void 0!==t?t:0,g=null!==(n=o[1])&&void 0!==n?n:1/0,y=function(e,t,n,r){a.A.debug("HTSB: Finding parser for html text tracks:",e);var i=f.A.htmlTextTracksParsers[e];if("function"!=typeof i)throw new Error("no parser found for the given text track");a.A.debug("HTSB: Parser found, parsing...");var o=i(t,n,r);return a.A.debug("HTTB: Parsed successfully!",o.length),o}(p,v,i,h);if(0!==m&&g!==1/0){for(var A=0;A=0&&y[A].start>=g;)A--;for(y.splice(A,y.length),A=y.length-1;A>=0&&y[A].end>g;)y[A].end=g,A--}if(void 0!==d)u=Math.max(m,d);else{if(y.length<=0)return void a.A.warn("HTSB: Current text tracks have no cues nor start time. Aborting");a.A.warn("HTSB: No start time given. Guessing from cues."),u=y[0].start}if(void 0!==c)l=Math.min(g,c);else{if(y.length<=0)return void a.A.warn("HTSB: Current text tracks have no cues nor end time. Aborting");a.A.warn("HTSB: No end time given. Guessing from cues."),l=y[y.length-1].end}l<=u?a.A.warn("HTSB: Invalid text track appended: ","the start time is inferior or equal to the end time."):(null!==e.inventoryInfos&&this._segmentInventory.insertChunk(e.inventoryInfos,!0,performance.now()),this._buffer.insert(y,u,l),this._buffered.insert(u,l))}},n.removeBufferSync=function(e,t){a.A.debug("HTSB: Removing html text track data",e,t),this._buffer.remove(e,t),this._buffered.remove(e,t)},n._disableCurrentCues=function(){if(this._sizeUpdateCanceller.cancel(),this._currentCues.length>0){for(var e=0;e0){this._sizeUpdateCanceller=new l.Ay,this._sizeUpdateCanceller.linkToSignal(this._canceller.signal);var c=u.A.getCurrent().TEXT_TRACK_SIZE_CHECKS_INTERVAL,f=function(e,t,n){var r=e.getBoundingClientRect(),i=r.height,u=r.width,l=new o.A({height:i,width:u},n),d=i,c=u;if(void 0!==s){var f=new s((function(e){if(0!==e.length){var t=e[0].contentRect,n=t.height,r=t.width;n===d&&r===c||(d=n,c=r,l.setValue({height:n,width:r}))}else a.A.error("Compat: Resized but no observed element.")}));f.observe(e),n.register((function(){f.disconnect()}))}else{var v=setInterval((function(){var t=e.getBoundingClientRect(),n=t.height,r=t.width;n===d&&r===c||(d=n,c=r,l.setValue({height:n,width:r}))}),t);n.register((function(){clearInterval(v)}))}return l}(this._textTrackElement,c,this._sizeUpdateCanceller.signal);f.onUpdate((function(e){for(var t=e.height,n=e.width,r=0;r0?e.textTracks[u-1]:e.addTextTrack(s)).mode=t?null!==(n=a.HIDDEN)&&void 0!==n?n:"hidden":null!==(r=a.SHOWING)&&void 0!==r?r:"showing"}else o=document.createElement("track"),e.appendChild(o),a=o.track,o.kind=s,a.mode=t?"hidden":"showing";return{track:a,trackElement:o}}(t,n),s=o.track,l=o.trackElement;return r.bufferType="text",r._buffered=new u.A,r._videoElement=t,r._track=s,r._trackElement=l,r}(0,r.A)(t,e);var n=t.prototype;return n.declareInitSegment=function(e){a.A.warn("ISB: Declaring initialization segment for image SegmentBuffer",e)},n.freeInitSegment=function(e){a.A.warn("ISB: Freeing initialization segment for image SegmentBuffer",e)},n.pushChunk=function(e){var t,n;if(a.A.debug("NTSB: Appending new native text tracks"),null===e.data.chunk)return Promise.resolve();var r=e.data,i=r.timestampOffset,o=r.appendWindow,s=r.chunk,u=s.start,d=s.end,c=s.data,f=s.type,v=s.language,p=null!==(t=o[0])&&void 0!==t?t:0,h=null!==(n=o[1])&&void 0!==n?n:1/0;try{var m,g,y=function(e,t,n,r){a.A.debug("NTSB: Finding parser for native text tracks:",e);var i=l.A.nativeTextTracksParsers[e];if("function"!=typeof i)throw new Error("no parser found for the given text track");a.A.debug("NTSB: Parser found, parsing...");var o=i(t,n,r);return a.A.debug("NTSB: Parsed successfully!",o.length),o}(f,c,i,v);if(0!==p&&h!==1/0){for(var A=0;A=0&&y[A].startTime>=h;)A--;for(y.splice(A,y.length),A=y.length-1;A>=0&&y[A].endTime>h;)y[A].endTime=h,A--}if(void 0!==u)m=Math.max(p,u);else{if(y.length<=0)return a.A.warn("NTSB: Current text tracks have no cues nor start time. Aborting"),Promise.resolve();a.A.warn("NTSB: No start time given. Guessing from cues."),m=y[0].startTime}if(void 0!==d)g=Math.min(h,d);else{if(y.length<=0)return a.A.warn("NTSB: Current text tracks have no cues nor end time. Aborting"),Promise.resolve();a.A.warn("NTSB: No end time given. Guessing from cues."),g=y[y.length-1].endTime}if(g<=m)return a.A.warn("NTSB: Invalid text track appended: ","the start time is inferior or equal to the end time."),Promise.resolve();if(y.length>0){var _=y[0],b=this._track.cues;null!==b&&b.length>0&&_.startTime=0;i--){var s=r[i],u=s.startTime,l=s.endTime;u>=e&&u<=t&&l<=t&&o(n,s)}this._buffered.remove(e,t)},t}(s.K)},7500:function(e,t,n){"use strict";n.d(t,{K:function(){return y},B:function(){return m}});var r=n(5151),i=n(9477),a=n(7841);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(this._history=this._history.splice(r)),this._history.length>this._maxHistoryLength){var a=this._history.length-this._maxHistoryLength;this._history=this._history.splice(a)}},e}();function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var k=f[E+w-1];T={end:null!==(a=k.bufferedEnd)&&void 0!==a?a:k.end,precizeEnd:k.precizeEnd},i.A.debug("SI: "+w+" segments GCed.",y);for(var I,x=l(f.splice(E,w));!(I=x()).done;){var R=I.value;void 0===R.bufferedStart&&void 0===R.bufferedEnd&&2!==R.status&&this._bufferedHistory.addBufferedSegment(R.infos,null)}v=E}if(void 0===m)return;if(S-(null!==(o=m.bufferedStart)&&void 0!==o?o:m.start)>=g){if(p(m,b,T,y),v===f.length-1)return void h(m,S,y);for(var C=null!==(s=(m=f[++v]).bufferedStart)&&void 0!==s?s:m.start,M=null!==(u=m.bufferedEnd)&&void 0!==u?u:m.end,P=_=g&&(void 0===P||S-C>=M-P);){var D=f[v-1];void 0===D.bufferedEnd&&(m.precizeStart?D.bufferedEnd=m.start:D.infos.segment.complete?D.bufferedEnd=D.end:D.bufferedEnd=m.start,i.A.debug("SI: calculating buffered end of contiguous segment",y,D.bufferedEnd,D.end)),m.bufferedStart=D.bufferedEnd,void 0!==(m=f[++v])&&(C=null!==(d=m.bufferedStart)&&void 0!==d?d:m.start,M=null!==(c=m.bufferedEnd)&&void 0!==c?c:m.end)}}var N=f[v-1];void 0!==N&&h(N,S,y)}}if(null!=m){i.A.debug("SI: last segments have been GCed",y,v,f.length);for(var O,L=l(f.splice(v,f.length-v));!(O=L()).done;){var U=O.value;void 0===U.bufferedStart&&void 0===U.bufferedEnd&&2!==U.status&&this._bufferedHistory.addBufferedSegment(U.infos,null)}}!t&&void 0!==y&&i.A.hasLevel("DEBUG")&&i.A.debug("SI: current "+y+" inventory timeline:\n"+function(e){var t=1/60,n={},r=[],i=null,a=null;function o(e){var t=String.fromCharCode(r.length+65);return r.push({letter:t,periodId:e.period.id,representationId:e.representation.id,bitrate:e.representation.bitrate}),t}for(var s="",u=0;u=d)i.A.warn("SI: Invalid chunked inserted: starts before it ends",c,l,d);else{for(var f=this._inventory,v={status:t?0:2,insertionTs:n,chunkSize:u,splitted:!1,start:l,end:d,precizeStart:!1,precizeEnd:!1,bufferedStart:void 0,bufferedEnd:void 0,infos:{segment:s,period:r,adaptation:a,representation:o}},p=f.length-1;p>=0;p--){var h=f[p];if(h.start<=l){if(h.end<=l){for(i.A.debug("SI: Pushing segment strictly after previous one.",c,l,h.end),this._inventory.splice(p+1,0,v),p+=2;pv.end)return i.A.debug("SI: Segment pushed updates the start of the next one",c,v.end,f[p].start),f[p].start=v.end,f[p].bufferedStart=void 0,void(f[p].precizeStart=f[p].precizeStart&&v.precizeEnd);i.A.debug("SI: Segment pushed removes the next one",c,l,d,f[p].start,f[p].end),f.splice(p,1)}return}if(h.start===l){if(h.end<=d){for(i.A.debug("SI: Segment pushed replace another one",c,l,d,h.end),this._inventory.splice(p,1,v),p+=1;pv.end)return i.A.debug("SI: Segment pushed updates the start of the next one",c,v.end,f[p].start),f[p].start=v.end,f[p].bufferedStart=void 0,void(f[p].precizeStart=f[p].precizeStart&&v.precizeEnd);i.A.debug("SI: Segment pushed removes the next one",c,l,d,f[p].start,f[p].end),f.splice(p,1)}return}return i.A.debug("SI: Segment pushed ends before another with the same start",c,l,d,h.end),f.splice(p,0,v),h.start=v.end,h.bufferedStart=void 0,void(h.precizeStart=h.precizeStart&&v.precizeEnd)}if(h.end<=v.end){for(i.A.debug("SI: Segment pushed updates end of previous one",c,l,d,h.start,h.end),this._inventory.splice(p+1,0,v),h.end=v.start,h.bufferedEnd=void 0,h.precizeEnd=h.precizeEnd&&v.precizeStart,p+=2;pv.end)return i.A.debug("SI: Segment pushed updates the start of the next one",c,v.end,f[p].start),f[p].start=v.end,f[p].bufferedStart=void 0,void(f[p].precizeStart=f[p].precizeStart&&v.precizeEnd);i.A.debug("SI: Segment pushed removes the next one",c,l,d,f[p].start,f[p].end),f.splice(p,1)}return}i.A.warn("SI: Segment pushed is contained in a previous one",c,l,d,h.start,h.end);var m={status:h.status,insertionTs:h.insertionTs,chunkSize:h.chunkSize,splitted:!0,start:v.end,end:h.end,precizeStart:h.precizeStart&&h.precizeEnd&&v.precizeEnd,precizeEnd:h.precizeEnd,bufferedStart:void 0,bufferedEnd:h.end,infos:h.infos};return h.end=v.start,h.splitted=!0,h.bufferedEnd=void 0,h.precizeEnd=h.precizeEnd&&v.precizeStart,f.splice(p+1,0,v),void f.splice(p+2,0,m)}}var g=this._inventory[0];if(void 0===g)return i.A.debug("SI: first segment pushed",c,l,d),void this._inventory.push(v);if(!(g.start>=d)){if(g.end<=d){for(i.A.debug("SI: Segment pushed starts before and completely recovers the previous first one",c,l,d,g.start,g.end),this._inventory.splice(0,1,v);f.length>1&&f[1].startv.end)return i.A.debug("SI: Segment pushed updates the start of the next one",c,v.end,f[1].start),f[1].start=v.end,f[1].bufferedStart=void 0,void(f[1].precizeStart=v.precizeEnd);i.A.debug("SI: Segment pushed removes the next one",c,l,d,f[1].start,f[1].end),f.splice(1,1)}return}return i.A.debug("SI: Segment pushed start of the next one",c,l,d,g.start,g.end),g.start=d,g.bufferedStart=void 0,g.precizeStart=v.precizeEnd,void this._inventory.splice(0,0,v)}i.A.debug("SI: Segment pushed comes before all previous ones",c,l,d,g.start),this._inventory.splice(0,0,v)}}},t.completeSegment=function(e,t){if(!e.segment.isInit){for(var n=this._inventory,r=[],o=0;o0&&(s=!0,1===r.length&&(i.A.warn("SI: Completed Segment is splitted.",e.segment.id,e.segment.time,e.segment.end),r[0].splitted=!0));var u=o,d=n[o].chunkSize;for(o+=1;o0&&(this._inventory.splice(u+1,v),o-=v),0===this._inventory[u].status&&(this._inventory[u].status=1),this._inventory[u].chunkSize=d,this._inventory[u].end=p,this._inventory[u].bufferedEnd=h,this._inventory[u].splitted=s,r.push(this._inventory[u])}if(0===r.length)i.A.warn("SI: Completed Segment not found",e.segment.id,e.segment.time);else{this.synchronizeBuffered(t);for(var m,g=l(r);!(m=g()).done;){var y=m.value;void 0!==y.bufferedStart&&void 0!==y.bufferedEnd?2!==y.status&&this._bufferedHistory.addBufferedSegment(y.infos,{start:y.bufferedStart,end:y.bufferedEnd}):i.A.debug("SI: buffered range not known after sync. Skipping history.",y.start,y.end)}}}},t.getInventory=function(){return this._inventory},t.getHistoryFor=function(e){return this._bufferedHistory.getHistoryFor(e)},e}();function f(e){if(void 0===e.bufferedStart||1!==e.status)return!1;var t=e.start,n=e.end-t,i=r.A.getCurrent(),a=i.MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,o=i.MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE;return Math.abs(t-e.bufferedStart)<=a&&(void 0===e.bufferedEnd||e.bufferedEnd>e.bufferedStart&&Math.abs(e.bufferedEnd-e.bufferedStart-n)<=Math.min(o,n/3))}function v(e){if(void 0===e.bufferedEnd||!e.infos.segment.complete||1!==e.status)return!1;var t=e.start,n=e.end,i=n-t,a=r.A.getCurrent(),o=a.MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,s=a.MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE;return Math.abs(n-e.bufferedEnd)<=o&&null!=e.bufferedStart&&e.bufferedEnd>e.bufferedStart&&Math.abs(e.bufferedEnd-e.bufferedStart-i)<=Math.min(s,i/3)}function p(e,t,n,a){var o=r.A.getCurrent(),s=o.MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,u=o.MISSING_DATA_TRIGGER_SYNC_DELAY,l=o.SEGMENT_SYNCHRONIZATION_DELAY;if(void 0!==e.bufferedStart)e.bufferedStartt&&(n.precizeEnd||e.start-n.end<=s))i.A.debug("SI: buffered start is end of previous segment",a,t,e.start,n.end),e.bufferedStart=n.end,f(e)&&(e.start=n.end,e.precizeStart=!0);else if(e.start-t<=s){var d=performance.now();if(e.start-t>=u&&d-e.insertionTs=u&&c-e.insertionTst&&(i.A.debug("SI: Segment partially GCed at the end",n,e.bufferedEnd,t),e.bufferedEnd=t),!e.precizeEnd&&t-e.end<=o&&v(e)&&(e.precizeEnd=!0,e.end=t);else if(e.precizeEnd)i.A.debug("SI: buffered end is precize end",n,e.end),e.bufferedEnd=e.end;else if(t-e.end<=o||!e.infos.segment.complete){var l=performance.now();if(t-e.end>=s&&l-e.insertionTse.end)i.A.debug("SI: range end too far from expected end",n,t,e.end),e.bufferedEnd=e.end;else{var d=performance.now();if(t-e.end>=s&&d-e.insertionTs0&&n.push({start:0,end:e}),t<1/0&&n.push({start:t,end:1/0}),this._ranges=(0,r.aW)(this._ranges,n),this.length=this._ranges.length},t.start=function(e){if(e>=this._ranges.length)throw new Error("INDEX_SIZE_ERROR");return this._ranges[e].start},t.end=function(e){if(e>=this._ranges.length)throw new Error("INDEX_SIZE_ERROR");return this._ranges[e].end},e}()},7004:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(7387),i=function(e){function t(n,r,i,a){var o;return o=e.call(this,n)||this,Object.setPrototypeOf(o,t.prototype),o.name="CustomLoaderError",o.canRetry=r,o.isOfflineError=i,o.xhr=a,o}return(0,r.A)(t,e),t}((0,n(8593).A)(Error))},1956:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7387),i=n(8593),a=n(5497),o=n(2620),s=function(e){function t(n,r,i){var s;return s=e.call(this,(0,o.A)("EncryptedMediaError",n,r))||this,Object.setPrototypeOf(s,t.prototype),s.name="EncryptedMediaError",s.type=a.wU.ENCRYPTED_MEDIA_ERROR,s.code=n,s.fatal=!1,"string"==typeof(null==i?void 0:i.keyStatuses)&&(s.keyStatuses=i.keyStatuses),s}return(0,r.A)(t,e),t}((0,i.A)(Error))},5497:function(e,t,n){"use strict";n.d(t,{tG:function(){return a},wU:function(){return r},yl:function(){return i}});var r={NETWORK_ERROR:"NETWORK_ERROR",MEDIA_ERROR:"MEDIA_ERROR",ENCRYPTED_MEDIA_ERROR:"ENCRYPTED_MEDIA_ERROR",OTHER_ERROR:"OTHER_ERROR"},i={TIMEOUT:"TIMEOUT",ERROR_EVENT:"ERROR_EVENT",ERROR_HTTP_CODE:"ERROR_HTTP_CODE",PARSE_ERROR:"PARSE_ERROR"},a={PIPELINE_LOAD_ERROR:"PIPELINE_LOAD_ERROR",PIPELINE_PARSE_ERROR:"PIPELINE_PARSE_ERROR",INTEGRITY_ERROR:"INTEGRITY_ERROR",MANIFEST_PARSE_ERROR:"MANIFEST_PARSE_ERROR",MANIFEST_INCOMPATIBLE_CODECS_ERROR:"MANIFEST_INCOMPATIBLE_CODECS_ERROR",MANIFEST_UPDATE_ERROR:"MANIFEST_UPDATE_ERROR",MANIFEST_UNSUPPORTED_ADAPTATION_TYPE:"MANIFEST_UNSUPPORTED_ADAPTATION_TYPE",MEDIA_STARTING_TIME_NOT_FOUND:"MEDIA_STARTING_TIME_NOT_FOUND",MEDIA_TIME_BEFORE_MANIFEST:"MEDIA_TIME_BEFORE_MANIFEST",MEDIA_TIME_AFTER_MANIFEST:"MEDIA_TIME_AFTER_MANIFEST",MEDIA_TIME_NOT_FOUND:"MEDIA_TIME_NOT_FOUND",NO_PLAYABLE_REPRESENTATION:"NO_PLAYABLE_REPRESENTATION",MEDIA_IS_ENCRYPTED_ERROR:"MEDIA_IS_ENCRYPTED_ERROR",CREATE_MEDIA_KEYS_ERROR:"CREATE_MEDIA_KEYS_ERROR",KEY_ERROR:"KEY_ERROR",KEY_STATUS_CHANGE_ERROR:"KEY_STATUS_CHANGE_ERROR",KEY_UPDATE_ERROR:"KEY_UPDATE_ERROR",KEY_LOAD_ERROR:"KEY_LOAD_ERROR",KEY_LOAD_TIMEOUT:"KEY_LOAD_TIMEOUT",KEY_GENERATE_REQUEST_ERROR:"KEY_GENERATE_REQUEST_ERROR",INCOMPATIBLE_KEYSYSTEMS:"INCOMPATIBLE_KEYSYSTEMS",INVALID_ENCRYPTED_EVENT:"INVALID_ENCRYPTED_EVENT",INVALID_KEY_SYSTEM:"INVALID_KEY_SYSTEM",LICENSE_SERVER_CERTIFICATE_ERROR:"LICENSE_SERVER_CERTIFICATE_ERROR",MULTIPLE_SESSIONS_SAME_INIT_DATA:"MULTIPLE_SESSIONS_SAME_INIT_DATA",BUFFER_APPEND_ERROR:"BUFFER_APPEND_ERROR",BUFFER_FULL_ERROR:"BUFFER_FULL_ERROR",BUFFER_TYPE_UNKNOWN:"BUFFER_TYPE_UNKNOWN",MEDIA_ERR_BLOCKED_AUTOPLAY:"MEDIA_ERR_BLOCKED_AUTOPLAY",MEDIA_ERR_PLAY_NOT_ALLOWED:"MEDIA_ERR_PLAY_NOT_ALLOWED",MEDIA_ERR_NOT_LOADED_METADATA:"MEDIA_ERR_NOT_LOADED_METADATA",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_UNKNOWN:"MEDIA_ERR_UNKNOWN",MEDIA_SOURCE_NOT_SUPPORTED:"MEDIA_SOURCE_NOT_SUPPORTED",MEDIA_KEYS_NOT_SUPPORTED:"MEDIA_KEYS_NOT_SUPPORTED",DISCONTINUITY_ENCOUNTERED:"DISCONTINUITY_ENCOUNTERED",NONE:"NONE"}},2620:function(e,t,n){"use strict";function r(e,t,n){return e+" ("+t+") "+n}n.d(t,{A:function(){return r}})},874:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(4637),i=n(1858);function a(e,t){var n=t.defaultCode,a=t.defaultReason;if((0,r.A)(e))return e;var o=e instanceof Error?e.toString():a;return new i.A(n,o)}},4637:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(1956),i=n(5497),a=n(5575),o=n(7941),s=n(1858);function u(e){return(e instanceof r.A||e instanceof a.A||e instanceof s.A||e instanceof o.A)&&Object.keys(i.wU).indexOf(e.type)>=0}},5575:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7387),i=n(8593),a=n(5497),o=n(2620),s=function(e){function t(n,r,i){var s;s=e.call(this,(0,o.A)("MediaError",n,r))||this,Object.setPrototypeOf(s,t.prototype),s.name="MediaError",s.type=a.wU.MEDIA_ERROR,s.code=n,s.fatal=!1;var u=null==i?void 0:i.adaptation;if(void 0!==u)switch(u.type){case"audio":s.trackInfo={type:"audio",track:u.toAudioTrack()};break;case"video":s.trackInfo={type:"video",track:u.toVideoTrack()};break;case"text":s.trackInfo={type:"text",track:u.toTextTrack()}}return s}return(0,r.A)(t,e),t}((0,i.A)(Error))},7941:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7387),i=n(8593),a=n(5497),o=n(2620),s=function(e){function t(n,r){var i;return i=e.call(this,(0,o.A)("NetworkError",n,r.message))||this,Object.setPrototypeOf(i,t.prototype),i.name="NetworkError",i.type=a.wU.NETWORK_ERROR,i.xhr=void 0===r.xhr?null:r.xhr,i.url=r.url,i.status=r.status,i.errorType=r.type,i.code=n,i.fatal=!1,i}return(0,r.A)(t,e),t.prototype.isHttpError=function(e){return this.errorType===a.yl.ERROR_HTTP_CODE&&this.status===e},t}((0,i.A)(Error))},1858:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7387),i=n(8593),a=n(5497),o=n(2620),s=function(e){function t(n,r){var i;return i=e.call(this,(0,o.A)("OtherError",n,r))||this,Object.setPrototypeOf(i,t.prototype),i.name="OtherError",i.type=a.wU.OTHER_ERROR,i.code=n,i.fatal=!1,i}return(0,r.A)(t,e),t}((0,i.A)(Error))},3506:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(7387),i=function(e){function t(n,r,i,a){var o,s;switch(i){case"TIMEOUT":s="The request timed out";break;case"ERROR_EVENT":s="An error prevented the request to be performed successfully";break;case"PARSE_ERROR":s="An error happened while formatting the response data";break;case"ERROR_HTTP_CODE":s="An HTTP status code indicating failure was received: "+String(r)}return o=e.call(this,s)||this,Object.setPrototypeOf(o,t.prototype),o.name="RequestError",o.url=n,void 0!==a&&(o.xhr=a),o.status=r,o.type=i,o}return(0,r.A)(t,e),t}((0,n(8593).A)(Error))},8589:function(e,t){"use strict";t.A={dashParsers:{wasm:null,js:null},createDebugElement:null,directfile:null,decrypt:null,htmlTextTracksBuffer:null,htmlTextTracksParsers:{},imageBuffer:null,imageParser:null,mediaSourceInit:null,nativeTextTracksBuffer:null,nativeTextTracksParsers:{},transports:{}}},418:function(e,t,n){"use strict";var r=n(8589);t.A=r.A},9477:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(8060),i=new(function(){function e(){this.error=r.A,this.warn=r.A,this.info=r.A,this.debug=r.A,this._levels={NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4},this._currentLevel="NONE"}var t=e.prototype;return t.setLevel=function(e){var t,n=this._levels[e];"number"==typeof n?(t=n,this._currentLevel=e):(t=0,this._currentLevel="NONE"),this.error=t>=this._levels.ERROR?console.error.bind(console):r.A,this.warn=t>=this._levels.WARNING?console.warn.bind(console):r.A,this.info=t>=this._levels.INFO?console.info.bind(console):r.A,this.debug=t>=this._levels.DEBUG?console.log.bind(console):r.A},t.getLevel=function(){return this._currentLevel},t.hasLevel=function(e){return this._levels[e]>=this._levels[this._currentLevel]},e}())},4129:function(e,t,n){"use strict";n.d(t,{B:function(){return h},A:function(){return m}});var r=n(9477),i=n(1729),a=n(6787),o=n(8202);var s="undefined"!=typeof window&&"function"==typeof window.Set&&"function"==typeof Array.from?function(e){return Array.from(new Set(e))}:function(e){return e.filter((function(e,t,n){return n.indexOf(e)===t}))},u=n(9770);function l(e){return null!=u.j&&("function"!=typeof u.j.isTypeSupported||u.j.isTypeSupported(e))}var d=n(987);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(this.trickModeTracks=i.map((function(t){return new e(t)})));for(var d=t.representations,c=[],f=!1,v=0;v0&&!r.isSupported){var i=new a.A("MANIFEST_INCOMPATIBLE_CODECS_ERROR","An Adaptation contains only incompatible codecs.",{adaptation:r});n.contentWarnings.push(i)}return r})).filter((function(e){return e.representations.length>0}));if(s.every((function(e){return!e.isSupported}))&&o.length>0&&("video"===i||"audio"===i))throw new a.A("MANIFEST_PARSE_ERROR","No supported "+i+" adaptations");return s.length>0&&(r[i]=s),r}),{}),!Array.isArray(this.adaptations.video)&&!Array.isArray(this.adaptations.audio))throw new a.A("MANIFEST_PARSE_ERROR","No supported audio and video tracks.");this.duration=e.duration,this.start=e.start,null!=this.duration&&null!=this.start&&(this.end=this.start+this.duration),this.streamEvents=void 0===e.streamEvents?[]:e.streamEvents}var t=e.prototype;return t.getAdaptations=function(){var e=this.adaptations;return(0,v.A)(e).reduce((function(e,t){return null!=t?e.concat(t):e}),[])},t.getAdaptationsForType=function(e){var t=this.adaptations[e];return null==t?[]:t},t.getAdaptation=function(e){return(0,s.A)(this.getAdaptations(),(function(t){var n=t.id;return e===n}))},t.getSupportedAdaptations=function(e){if(void 0===e)return this.getAdaptations().filter((function(e){return e.isSupported}));var t=this.adaptations[e];return void 0===t?[]:t.filter((function(e){return e.isSupported}))},t.containsTime=function(e,t){return e>=this.start&&(void 0===this.end||ethis.end)},e}(),h=function(){function e(e){this._url=e.media}var t=e.prototype;return t.getInitSegment=function(){return null},t.getSegments=function(){return[{id:"0",isInit:!1,number:0,url:this._url,time:0,end:Number.MAX_VALUE,duration:Number.MAX_VALUE,complete:!0,privateInfos:{},timescale:1}]},t.getFirstAvailablePosition=function(){},t.getLastAvailablePosition=function(){},t.getEnd=function(){},t.awaitSegmentBetween=function(){return!1},t.shouldRefresh=function(){return!1},t.checkDiscontinuity=function(){return null},t.isSegmentStillAvailable=function(){return!0},t.canBeOutOfSyncError=function(){return!1},t.isStillAwaitingFutureSegments=function(){return!1},t.isInitialized=function(){return!0},t._replace=function(){o.A.warn("Tried to replace a static RepresentationIndex")},t._update=function(){o.A.warn("Tried to update a static RepresentationIndex")},e}();!function(e){e[e.Full=0]="Full",e[e.Partial=1]="Partial"}(r||(r={}));var m=n(3786);function g(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)o.A.warn("Manifest: "+y.length+" new Representations found when merging."),(h=t.representations).push.apply(h,y),v.push.apply(v,y)}l=e},l=0;l0){o.A.warn("Manifest: "+s.length+" new Adaptations found when merging.");for(var d,c=g(s);!(d=c()).done;){var f=d.value,v=e.adaptations[f.type];void 0===v?e.adaptations[f.type]=[f]:v.push(f),i.addedAdaptations.push(f)}}return i}function _(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&r._addSupplementaryImageAdaptations(u),o.length>0&&r._addSupplementaryTextAdaptations(o),r}(0,i.A)(t,e);var n=t.prototype;return n.getPeriod=function(e){return(0,s.A)(this.periods,(function(t){return e===t.id}))},n.getPeriodForTime=function(e){for(var t=null,n=this.periods.length-1;n>=0;n--){var r=this.periods[n];if(r.containsTime(e,t))return r;t=r}},n.getNextPeriod=function(e){return(0,s.A)(this.periods,(function(t){return t.start>e}))},n.getPeriodAfter=function(e){var t=e.end;if(void 0===t)return null;var n=(0,s.A)(this.periods,(function(e){return void 0===e.end||t0&&this.trigger("decipherabilityUpdate",t)},n.getAdaptations=function(){(0,c.A)("manifest.getAdaptations() is deprecated. Please use manifest.period[].getAdaptations() instead");var e=this.periods[0];if(void 0===e)return[];var t=e.adaptations,n=[];for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n.push.apply(n,i)}return n},n.getAdaptationsForType=function(e){(0,c.A)("manifest.getAdaptationsForType(type) is deprecated. Please use manifest.period[].getAdaptationsForType(type) instead");var t=this.periods[0];if(void 0===t)return[];var n=t.adaptations[e];return void 0===n?[]:n},n.getAdaptation=function(e){return(0,c.A)("manifest.getAdaptation(id) is deprecated. Please use manifest.period[].getAdaptation(id) instead"),(0,s.A)(this.getAdaptations(),(function(t){var n=t.id;return e===n}))},n._addSupplementaryImageAdaptations=function(e){var t=this,n=(Array.isArray(e)?e:[e]).map((function(e){var n=e.mimeType,r=e.url,i="gen-image-ada-"+S(),o="gen-image-rep-"+S(),s=(0,d.Cl)(r),u=r.substring(0,s),l=r.substring(s),c=new f.A({id:i,type:"image",representations:[{bitrate:0,cdnMetadata:[{baseUrl:u}],id:o,mimeType:n,index:new h({media:l})}]},{isManuallyAdded:!0});if(c.representations.length>0&&!c.isSupported){var v=new a.A("MANIFEST_INCOMPATIBLE_CODECS_ERROR","An Adaptation contains only incompatible codecs.",{adaptation:c});t.contentWarnings.push(v)}return c}));if(n.length>0&&this.periods.length>0){var r=this.periods[0].adaptations;r.image=null!=r.image?r.image.concat(n):n}},n._addSupplementaryTextAdaptations=function(e){var t=this,n=(Array.isArray(e)?e:[e]).reduce((function(e,n){var r=n.mimeType,i=n.codecs,o=n.url,s=n.language,u=n.languages,l=n.closedCaption,c=null!=s?[s]:null!=u?u:[],v=(0,d.Cl)(o),p=o.substring(0,v),m=o.substring(v);return e.concat(c.map((function(e){var n="gen-text-ada-"+S(),o="gen-text-rep-"+S(),s=new f.A({id:n,type:"text",language:e,closedCaption:l,representations:[{bitrate:0,cdnMetadata:[{baseUrl:p}],id:o,mimeType:r,codecs:i,index:new h({media:m})}]},{isManuallyAdded:!0});if(s.representations.length>0&&!s.isSupported){var u=new a.A("MANIFEST_INCOMPATIBLE_CODECS_ERROR","An Adaptation contains only incompatible codecs.",{adaptation:s});t.contentWarnings.push(u)}return s})))}),[]);if(n.length>0&&this.periods.length>0){var r=this.periods[0].adaptations;r.text=null!=r.text?r.text.concat(n):n}},n._performUpdate=function(e,t){var n;if(this.availabilityStartTime=e.availabilityStartTime,this.expired=e.expired,this.isDynamic=e.isDynamic,this.isLive=e.isLive,this.isLastPeriodKnown=e.isLastPeriodKnown,this.lifetime=e.lifetime,this.contentWarnings=e.contentWarnings,this.suggestedPresentationDelay=e.suggestedPresentationDelay,this.transport=e.transport,this.publishTime=e.publishTime,t===r.Full)this._timeBounds=e._timeBounds,this.uris=e.uris,n=function(e,t){for(var n={updatedPeriods:[],addedPeriods:[],removedPeriods:[]},i=0,a=0;ae.length)return o.A.error("Manifest: error when updating Periods"),n;if(i0&&(e.push.apply(e,_),(y=n.addedPeriods).push.apply(y,_)),n}(this.periods,e.periods);else{this._timeBounds.maximumTimeData=e._timeBounds.maximumTimeData,this.updateUrl=e.uris[0],n=function(e,t){var n,i={updatedPeriods:[],addedPeriods:[],removedPeriods:[]};if(0===e.length)return e.splice.apply(e,[0,0].concat(t)),(n=i.addedPeriods).push.apply(n,t),i;if(0===t.length)return i;var s=e[e.length-1];if(s.startc){var E;o.A.warn("Manifest: old Periods not found in new when updating, removing");var T=e.splice(c,p-c);(E=i.removedPeriods).push.apply(E,T),p=c}var w=A(e[p],v,r.Full);i.updatedPeriods.push({period:e[p],result:w})}c++}if(c0;){var s=this.periods[0];if(void 0===s.end||s.end>i)break;this.periods.shift()}}this.adaptations=void 0===this.periods[0]?{}:this.periods[0].adaptations,this.trigger("manifestUpdate",n)},t}(u.A);var w=T},7841:function(e,t,n){"use strict";n.d(t,{M:function(){return a},Q:function(){return i}});var r=n(6787);function i(e,t){return e.segment.id===t.segment.id&&e.representation.uniqueId===t.representation.uniqueId}function a(e){if((0,r.A)(e))return"";var t=e.period,n=e.adaptation,i=e.representation,a=e.segment;return n.type+" P: "+t.id+" A: "+n.id+" R: "+i.id+" S: "+(a.isInit?"init":a.complete?a.time+"-"+a.duration:""+a.time)}},3058:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=Math.pow(2,32)-1},8797:function(e,t,n){"use strict";n.d(t,{$H:function(){return v},QL:function(){return f},YH:function(){return c},fP:function(){return p},fZ:function(){return l},fj:function(){return d},o$:function(){return u}});var r=n(9477),i=n(7994),a=n(5553);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ni)return null;s=(0,a.CQ)(e,r),r+=8}if(s<0)throw new Error("ISOBMFF: Size out of range");if(n===t)return 1970628964===t&&(r+=16),[o,r,o+s];o+=s}return null}function v(e,t,n,r,i){for(var o,s=e.length,u=0;us)return;o=(0,a.CQ)(e,l),l+=8}if(1970628964===d&&l+16<=s&&(0,a.mq)(e,l)===t&&(0,a.mq)(e,l+4)===n&&(0,a.mq)(e,l+8)===r&&(0,a.mq)(e,l+12)===i)return l+=16,e.subarray(l,u+o)}}function p(e){var t=e.length;if(t<8)return r.A.warn("ISOBMFF: box inferior to 8 bytes, cannot find offsets"),null;var n=0,i=(0,a.mq)(e,n);n+=4;var o=(0,a.mq)(e,n);if(n+=4,0===i)i=t;else if(1===i){if(n+8>t)return r.A.warn("ISOBMFF: box too short, cannot find offsets"),null;i=(0,a.CQ)(e,n),n+=8}if(i<0)throw new Error("ISOBMFF: Size out of range");return 1970628964===o&&(n+=16),[0,n,i]}},2875:function(e,t,n){"use strict";n.d(t,{Y2:function(){return i},hZ:function(){return u},ht:function(){return a},iA:function(){return s},j8:function(){return o}});var r=n(8797);function i(e){var t=(0,r.fZ)(e,1836019558);return null===t?null:(0,r.fZ)(t,1953653094)}function a(e){return(0,r.fj)(e,1836019558).reduce((function(e,t){var n=(0,r.fZ)(t,1953653094);return null!==n&&e.push(n),e}),[])}function o(e){return(0,r.fZ)(e,1835295092)}function s(e){var t=(0,r.fZ)(e,1836019574);if(null===t)return null;var n=(0,r.fZ)(t,1953653099);return null===n?null:(0,r.fZ)(n,1835297121)}function u(e,t){return void 0===t&&(t=0),(0,r.fZ)(e.subarray(t),1701671783)}},2948:function(e,t,n){"use strict";n.d(t,{A:function(){return s},L:function(){return u}});var r=n(9477);var i="function"==typeof Uint8Array.prototype.slice?function(e,t,n){return e.slice(t,n)}:function(e,t,n){return new Uint8Array(Array.prototype.slice.call(e,t,n))},a=n(4670),o=n(8797);function s(e){var t=0,n=(0,o.fZ)(e,1836019574);if(null===n)return[];for(var a=[];t1)r.A.warn("ISOBMFF: un-handled PSSH version");else{var n=t+4;if(!(n+16>e.length)){var o=i(e,n,n+16);return(0,a.My)(o)}}}},1134:function(e,t,n){"use strict";n.d(t,{D1:function(){return f},J_:function(){return m},Tr:function(){return c},a5:function(){return y},cS:function(){return p},pk:function(){return g},zS:function(){return h}});var r=n(9477),i=n(5553),a=n(4670),o=n(3058),s=n(8797),u=n(2875);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;){var v=(0,i.mq)(e,o);o+=4;var p=2147483647&v;if(1===(2147483648&v)>>>31)throw new Error("sidx with reference_type `1` not yet implemented");var h=(0,i.mq)(e,o);o+=4,o+=4,c.push({time:l,duration:h,timescale:d,range:[r,r+p-1]}),l+=h,r+=p}return c}function f(e){var t=(0,u.Y2)(e);if(null!==t){var n=(0,s.fZ)(t,1952867444);if(null!==n){var r=n[0];return 1===r?(0,i.CQ)(n,4):0===r?(0,i.mq)(n,4):void 0}}}function v(e){var t=(0,s.fZ)(e,1952868452);if(null!==t){var n=1,r=(0,i.tb)(t,n);if(n+=3,(8&r)>0)return n+=4,(1&r)>0&&(n+=8),(2&r)>0&&(n+=4),(0,i.mq)(t,n)}}function p(e){var t=(0,u.ht)(e);if(0!==t.length){for(var n,r=0,a=l(t);!(n=a()).done;){var o=n.value,d=(0,s.fZ)(o,1953658222);if(null===d)return;var c=0,f=d[c];if(c+=1,f>1)return;var p=(0,i.tb)(d,c);c+=3;var h=(256&p)>0,m=0;if(!h&&void 0===(m=v(o)))return;var g=(1&p)>0,y=(4&p)>0,A=(512&p)>0,_=(1024&p)>0,b=(2048&p)>0,S=(0,i.mq)(d,c);c+=4,g&&(c+=4),y&&(c+=4);for(var E=S,T=0;E-- >0;)h?(T+=(0,i.mq)(d,c),c+=4):T+=m,A&&(c+=4),_&&(c+=4),b&&(c+=4);r+=T}return r}}function h(e){var t=(0,u.iA)(e);if(null!==t){var n=(0,s.fZ)(t,1835296868);if(null!==n){var r=0,a=n[r];return r+=4,1===a?(0,i.mq)(n,r+16):0===a?(0,i.mq)(n,r+8):void 0}}}function m(e){var t=e.length;if(t<4)throw new Error("Cannot update box length: box too short");var n=(0,i.mq)(e,0);if(0===n){if(t>o.Z){var r=new Uint8Array(t+8);return r.set((0,i.KS)(1),0),r.set(e.subarray(4,8),4),r.set((0,i.Kk)(t+8),8),r.set(e.subarray(8,t),16),r}return e.set((0,i.KS)(t),0),e}if(1===n){if(t<16)throw new Error("Cannot update box length: box too short");return e.set((0,i.Kk)(t),8),e}if(t<=o.Z)return e.set((0,i.KS)(t),0),e;var a=new Uint8Array(t+8);return a.set((0,i.KS)(1),0),a.set(e.subarray(4,8),4),a.set((0,i.Kk)(t+8),8),a.set(e.subarray(8,t),16),a}function g(e){for(var t=[],n=0;n0)throw new Error("Unhandled version: "+s);var c=(0,r.eR)(e,t);t+=4;var f=(0,r.eR)(e,t);t+=4;var v=(0,i.Es)(e.subarray(t,t+4));t+=4;var p=(0,r.AT)(e,t);t+=2;var h=(0,r.AT)(e,t),m=[e[t+=2],e[t+1]].join(":"),g=1===e[t+=2];t=64;var y=[];if(0===c)throw new Error("bif: no images to parse");for(var A=0,_=null;t0,this._isEMSGWhitelisted=c}var t=e.prototype;return t.getInitSegment=function(){return(0,a.A)(this._index,this._isEMSGWhitelisted)},t.getSegments=function(e,t){return(0,o.A)(this._index,e,t,this._manifestBoundsCalculator,this._scaledPeriodEnd,this._isEMSGWhitelisted)},t.shouldRefresh=function(){return!1},t.getFirstAvailablePosition=function(){var e=this._index;return 0===e.timeline.length?null:(0,i._l)(Math.max(this._scaledPeriodStart,e.timeline[0].start),e)},t.getLastAvailablePosition=function(){var e,t=this._index.timeline;if(0===t.length)return null;var n=t[t.length-1],r=Math.min((0,i.Rb)(n,null,this._scaledPeriodEnd),null!==(e=this._scaledPeriodEnd)&&void 0!==e?e:1/0);return(0,i._l)(r,this._index)},t.getEnd=function(){return this.getLastAvailablePosition()},t.awaitSegmentBetween=function(){return!1},t.isSegmentStillAvailable=function(){return!0},t.checkDiscontinuity=function(){return null},t.initializeIndex=function(e){for(var t=0;t0?Math.floor(d/l):0),P=k+M*w;PA)break;var N=null===g?null:(0,i.Qy)(P,D)(g),O=P-e.indexTimeOffset,L=w;O<0&&(L=w+O,O=0);var U={id:String(P),time:O/m,end:(O+L)/m,duration:L/m,isInit:!1,range:I,timescale:1,url:N,number:D,timestampOffset:-e.indexTimeOffset/m,complete:C,privateInfos:{isEMSGWhitelisted:s}};b.push(U),P=k+ ++M*w}if(P>=p)return b;if(_+=R+1,void 0!==A&&_>A)return b}return b}},9955:function(e,t,n){"use strict";n.d(t,{I1:function(){return a},Qy:function(){return o}});var r=n(2384);function i(e){return function(t,n,i){var a,o,s,u=(0,r.A)(i)?parseInt(i,10):1;return a=String(e),o=u,(s=a.toString()).length>=o?s:(new Array(o+1).join("0")+s).slice(-o)}}function a(e,t,n){return function(e,t,n){return-1===e.indexOf("$")?e:e.replace(/\$\$/g,"$").replace(/\$RepresentationID\$/g,String(t)).replace(/\$Bandwidth(\%0(\d+)d)?\$/g,i(void 0===n?0:n))}(e,t,n)}function o(e,t){return function(n){return-1===n.indexOf("$")?n:n.replace(/\$\$/g,"$").replace(/\$Number(\%0(\d+)d)?\$/g,(function(e,n,r){if(void 0===t)throw new Error("Segment number not defined in a $Number$ scheme");return i(t)(e,n,r)})).replace(/\$Time(\%0(\d+)d)?\$/g,(function(t,n,r){if(void 0===e)throw new Error("Segment time not defined in a $Time$ scheme");return i(e)(t,n,r)}))}}},95:function(e,t,n){"use strict";n.d(t,{A:function(){return je}});var r=n(2038),i=n(6787),a=n(5151),o=n(9477),s=n(1729),u=n(2716);function l(e){var t=Date.parse(e)-performance.now();if(!isNaN(t))return t;o.A.warn("DASH Parser: Invalid clock received: ",e)}function d(e){for(var t=e.representations,n=null,r=0;r=0;t--){var n=e[t].adaptations,r=void 0===n.audio?void 0:n.audio[0],i=void 0===n.video?void 0:n.video[0];if(void 0!==r||void 0!==i){var a=null,s=null;if(void 0!==r){var u=d(r);if(void 0===u)return{safe:void 0,unsafe:void 0};a=u}if(void 0!==i){var l=d(i);if(void 0===l)return{safe:void 0,unsafe:void 0};s=l}if(void 0!==r&&null===a||void 0!==i&&null===s)return o.A.info("Parser utils: found Period with no segment. ","Going to previous one to calculate last position"),{safe:void 0,unsafe:void 0};if(null!==s)return null!==a?{safe:Math.min(a,s),unsafe:Math.max(a,s)}:{safe:s,unsafe:s};if(null!==a)return{safe:a,unsafe:a}}}return{safe:void 0,unsafe:void 0}}(e);return{minimumSafePosition:t,maximumSafePosition:n.safe,maximumUnsafePosition:n.unsafe}}var v=function(){function e(e){this._isDynamic=e.isDynamic,this._timeShiftBufferDepth=e.isDynamic&&void 0!==e.timeShiftBufferDepth?e.timeShiftBufferDepth:null,this._serverTimestampOffset=e.serverTimestampOffset,this._availabilityStartTime=e.availabilityStartTime}var t=e.prototype;return t.setLastPosition=function(e,t){this._lastPosition=e,this._positionTime=t},t.lastPositionIsKnown=function(){return this._isDynamic?null!=this._positionTime&&null!=this._lastPosition:null!=this._lastPosition},t.getEstimatedMinimumSegmentTime=function(){var e;if(!this._isDynamic||null===this._timeShiftBufferDepth)return 0;var t=null!==(e=this.getEstimatedLiveEdge())&&void 0!==e?e:this.getEstimatedMaximumPosition(0);return void 0!==t?t-this._timeShiftBufferDepth:void 0},t.getEstimatedLiveEdge=function(){if(this._isDynamic&&void 0!==this._serverTimestampOffset)return(performance.now()+this._serverTimestampOffset)/1e3-this._availabilityStartTime},t.getEstimatedMaximumPosition=function(e){if(!this._isDynamic)return this._lastPosition;var t=this.getEstimatedLiveEdge();return void 0!==t&&e!==1/0?t+e:void 0!==this._positionTime&&void 0!==this._lastPosition?Math.max(this._lastPosition-this._positionTime+performance.now()/1e3,0):this._lastPosition},e}();var p=n(3262),h=n(8795),m=n(4324),g=n(4670);var y=n(4129),A=n(3786),_=n(4031),b=n(2384);function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var s=i-a.start;if(s%a.duration==0&&s/a.duration<=a.repeatCount)return{repeatNumberInPrevSegments:s/a.duration,prevSegmentsIdx:o,newElementsIdx:0,repeatNumberInNewElements:0}}if(++o>=e.length)return null;if((a=e[o]).start===i)return{prevSegmentsIdx:o,newElementsIdx:0,repeatNumberInPrevSegments:0,repeatNumberInNewElements:0};if(a.start>i)return null}else for(var u=0,l=t[0],d=i;;){var c=l.getAttribute("d"),f=null===c?null:parseInt(c,10);if(null===f||Number.isNaN(f))return null;var v=l.getAttribute("r"),p=null===v?null:parseInt(v,10);if(null!==p){if(Number.isNaN(p)||p<0)return null;if(p>0){var h=n-d;if(h%f==0&&h/f<=p)return{repeatNumberInPrevSegments:0,repeatNumberInNewElements:h/f,prevSegmentsIdx:0,newElementsIdx:u}}d+=f*(p+1)}else d+=f;if(++u>=t.length)return null;var m=(l=t[u]).getAttribute("t"),g=null===m?null:parseInt(m,10);if(null!==g){if(Number.isNaN(g))return null;d=g}if(d===n)return{newElementsIdx:u,prevSegmentsIdx:0,repeatNumberInPrevSegments:0,repeatNumberInNewElements:0};if(d>i)return null}}(t,e);if(null===r)return o.A.warn('DASH: Cannot perform "based" update. Common segment not found.'),K(e);var i=r.prevSegmentsIdx,a=r.newElementsIdx,s=r.repeatNumberInPrevSegments,u=r.repeatNumberInNewElements,l=t.length-i+a-1;if(l>=e.length)return o.A.info('DASH: Cannot perform "based" update. New timeline too short'),K(e);var d=t.slice(i);if(s>0){var c=d[0];c.start+=c.duration*s,d[0].repeatCount-=s}if(u>0&&0!==a)return o.A.info('DASH: Cannot perform "based" update. The new timeline has a different form.'),K(e);var f=d[d.length-1],v=z(e[l]),p=(null!==(n=v.repeatCount)&&void 0!==n?n:0)-u;if(v.duration!==f.duration||f.repeatCount>p)return o.A.info('DASH: Cannot perform "based" update. The new timeline has a different form at the beginning.'),K(e);void 0!==v.repeatCount&&v.repeatCount>f.repeatCount&&(f.repeatCount=v.repeatCount);for(var h=[],m=[],g=l+1;g=Math.min(u,null!==(r=this._scaledPeriodEnd)&&void 0!==r?r:1/0))return!1;var d=(0,C.vb)(e,this._index);if(o.length>0&&null!==l&&!l.isLastOfTimeline){var c=o[o.length-1];if(d<(0,C.Rb)(c,null,this._scaledPeriodEnd)+s+s)return!0}return!!this._isLastPeriod&&(void 0===this._scaledPeriodEnd?u+s>this._scaledPeriodStart&&void 0:d-sthis._scaledPeriodStart)},t.isSegmentStillAvailable=function(e){return!!e.isInit||(this._refreshTimeline(),null===this._index.timeline&&(this._index.timeline=this._getTimeline()),function(e,t,n,r){var i=q(t,n,r);if(null===i)return!1;for(var a=0;ae.time)return!1;if(s===e.time)return void 0===o.range?void 0===e.range:null!=e.range&&o.range[0]===e.range[0]&&o.range[1]===e.range[1];if(o.repeatCount>=0&&void 0!==o.duration){var u=(s-o.start)/o.duration-1;return u%1==0&&u<=i.newRepeatCount}}return!1}(e,this._index,this._manifestBoundsCalculator,this._scaledPeriodEnd))},t.checkDiscontinuity=function(e){this._refreshTimeline();var t=this._index.timeline;return null===t&&(t=this._getTimeline(),this._index.timeline=t),(0,C.ph)({timeline:t,timescale:this._index.timescale,indexTimeOffset:this._index.indexTimeOffset},e,this._scaledPeriodEnd)},t.canBeOutOfSyncError=function(e){return!!this._isDynamic&&(e instanceof N.A&&e.isHttpError(404))},t._replace=function(e){this._parseTimeline=e._parseTimeline,this._index=e._index,this._isDynamic=e._isDynamic,this._scaledPeriodStart=e._scaledPeriodStart,this._scaledPeriodEnd=e._scaledPeriodEnd,this._lastUpdate=e._lastUpdate,this._manifestBoundsCalculator=e._manifestBoundsCalculator,this._isLastPeriod=e._isLastPeriod},t._update=function(e){null===this._index.timeline&&(this._index.timeline=this._getTimeline()),null===e._index.timeline&&(e._index.timeline=e._getTimeline()),(0,U.A)(this._index.timeline,e._index.timeline)&&(this._index.startNumber=e._index.startNumber),this._index.availabilityTimeOffset=e._index.availabilityTimeOffset,this._index.availabilityTimeComplete=e._index.availabilityTimeComplete,this._index.endNumber=e._index.endNumber,this._isDynamic=e._isDynamic,this._scaledPeriodStart=e._scaledPeriodStart,this._scaledPeriodEnd=e._scaledPeriodEnd,this._lastUpdate=e._lastUpdate,this._isLastPeriod=e._isLastPeriod},t.isStillAwaitingFutureSegments=function(){var e;if(!this._isDynamic)return!1;this._refreshTimeline(),null===this._index.timeline&&(this._index.timeline=this._getTimeline());var t=this._index.timeline;if(0===t.length){if(void 0!==this._scaledPeriodEnd){var n=this._manifestBoundsCalculator.getEstimatedLiveEdge();if(void 0!==n&&(0,C.vb)(n,this._index)>this._scaledPeriodEnd)return!1}return this._isLastPeriod}var r=F(this._index.timescale),i=q(this._index,this._manifestBoundsCalculator,this._scaledPeriodEnd);if(null!==i&&!i.isLastOfTimeline){var a=Math.min(i.end,null!==(e=this._scaledPeriodEnd)&&void 0!==e?e:1/0);return!(void 0!==this._scaledPeriodEnd&&a+r>=this._scaledPeriodEnd)}if(!this._isLastPeriod)return!1;if(void 0===this._scaledPeriodEnd)return!0;var o=t[t.length-1];return(0,C.Rb)(o,null,this._scaledPeriodEnd)+rn){if(r===n+1)return e.slice(0,i+1);var o=e.slice(0,i),s=Object.assign({},a),u=r-a.repeatCount-1;return s.repeatCount=Math.max(0,n-u),o.push(s),o}}return e}function q(e,t,n){if(e.timeline.length<=0)return null;if(e.availabilityTimeOffset===1/0){var r=e.timeline.length-1,i=e.timeline[r];return{isLastOfTimeline:!0,timelineIdx:r,newRepeatCount:i.repeatCount,end:(0,C.Rb)(i,null,n)}}var a=t.getEstimatedMaximumPosition(e.availabilityTimeOffset);if(void 0===a){var o=e.timeline.length-1,s=e.timeline[o];return{isLastOfTimeline:!0,timelineIdx:o,newRepeatCount:s.repeatCount,end:(0,C.Rb)(s,null,n)}}for(var u=e.timeline.length-1;u>=e.timeline.length;u--){var l=e.timeline[u],d=l.start+l.duration;if((0,C._l)(d,e)<=a){var c=(0,C.Rb)(l,e.timeline[u+1],n);if((0,C._l)(c,e)<=a)return{isLastOfTimeline:u===e.timeline.length-1,timelineIdx:u,newRepeatCount:l.repeatCount,end:d};var f=(0,C.vb)(a,e)-l.start,v=Math.floor(f/l.duration);return(0,O.h)(v>=1),{isLastOfTimeline:!1,timelineIdx:u,newRepeatCount:v-1,end:l.start+v*l.duration}}}return null}var j=G,Y=function(){function e(e,t){var n,r,i=t.availabilityTimeOffset,a=t.manifestBoundsCalculator,o=t.isDynamic,s=t.periodEnd,u=t.periodStart,l=t.representationId,d=t.representationBitrate,c=t.isEMSGWhitelisted,f=null!==(n=e.timescale)&&void 0!==n?n:1;this._availabilityTimeOffset=i,this._manifestBoundsCalculator=a;var v=null!=e.presentationTimeOffset?e.presentationTimeOffset:0,p=v-u*f;if(void 0===e.duration)throw new Error("Invalid SegmentTemplate: no duration");var h=void 0===(null===(r=e.initialization)||void 0===r?void 0:r.media)?null:(0,P.I1)(e.initialization.media,l,d),m=void 0===e.media?null:(0,P.I1)(e.media,l,d);this._index={duration:e.duration,timescale:f,indexRange:e.indexRange,indexTimeOffset:p,initialization:null==e.initialization?void 0:{url:h,range:e.initialization.range},url:m,presentationTimeOffset:v,startNumber:e.startNumber,endNumber:e.endNumber},this._isDynamic=o,this._periodStart=u,this._scaledRelativePeriodEnd=void 0===s?void 0:(s-u)*f,this._isEMSGWhitelisted=c}var t=e.prototype;return t.getInitSegment=function(){return(0,M.A)(this._index,this._isEMSGWhitelisted)},t.getSegments=function(e,t){var n=this._index,r=n.duration,i=n.startNumber,a=n.endNumber,o=n.timescale,s=n.url,u=this._periodStart*o,l=this._scaledRelativePeriodEnd,d=e*o-u,c=(e+t)*o-u,f=this._getFirstSegmentStart(),v=this._getLastSegmentStart();if(null==f||null==v)return[];var p=Math.max(f,d),h=Math.min(v,c);if(h+r<=p)return[];for(var m=[],g=null!=i?i:1,y=Math.floor(p/r),A=y*r;A<=h;A+=r){var _=y+g;if(void 0!==a&&_>a)return m;var b=null!=l&&A+r>l?l-A:r,S=A+u,E=A+this._index.presentationTimeOffset,T=null===s?null:(0,P.Qy)(E,_)(s),w={id:String(_),number:_,time:S/o,end:(S+b)/o,duration:b/o,timescale:1,isInit:!1,scaledDuration:b/o,url:T,timestampOffset:-n.indexTimeOffset/o,complete:!0,privateInfos:{isEMSGWhitelisted:this._isEMSGWhitelisted}};m.push(w),y++}return m},t.getFirstAvailablePosition=function(){var e=this._getFirstSegmentStart();return null==e?e:e/this._index.timescale+this._periodStart},t.getLastAvailablePosition=function(){var e=this._getLastSegmentStart();if((0,i.A)(e))return e;var t=this._estimateRelativeScaledEnd();return Math.min(e+this._index.duration,null!=t?t:1/0)/this._index.timescale+this._periodStart},t.getEnd=function(){if(!this._isDynamic)return this.getLastAvailablePosition();var e=this._estimateRelativeScaledEnd();if(void 0!==e){var t=this._index.timescale;return(e+this._periodStart*t)/t}},t.awaitSegmentBetween=function(e,t){if((0,O.h)(e<=t),!this._isDynamic)return!1;var n=this._index.timescale,r=F(n),a=this._periodStart*n,o=e*n-a,s=t*n-a,u=this._getLastSegmentStart();if((0,i.A)(u)){var l=this._estimateRelativeScaledEnd();return void 0===l?s+r>=0:s+r>=0&&od-r:s>d-r&&othis._periodStart?(a-this._periodStart)*i:0;return Math.floor(o/r)*r}},t._getLastSegmentStart=function(){var e,t,n=this._index,r=n.duration,i=n.timescale,o=n.endNumber,s=n.startNumber,u=void 0===s?1:s;if(this._isDynamic){var l=this._manifestBoundsCalculator.getEstimatedLiveEdge();if(void 0!==l&&void 0!==this._scaledRelativePeriodEnd&&this._scaledRelativePeriodEndg||h<2?m:(h-2)*r},t._estimateRelativeScaledEnd=function(){var e,t;if(void 0!==this._index.endNumber){var n=this._index.endNumber-(null!==(e=this._index.startNumber)&&void 0!==e?e:1)+1;return Math.max(Math.min(n*this._index.duration,null!==(t=this._scaledRelativePeriodEnd)&&void 0!==t?t:1/0),0)}if(void 0!==this._scaledRelativePeriodEnd)return Math.max(this._scaledRelativePeriodEnd,0)},e}();function Q(e,t){var n;if(0===t.length)return e;var r=t.map((function(e){return{url:e.value}}));if(0===e.length)return r;for(var i=[],a=0;a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var g=t.parentSegmentTemplates.slice(),y=e.children.segmentTemplate;void 0!==y&&g.push(y);var A=I.A.apply(void 0,[{}].concat(g));void 0===A.availabilityTimeOffset&&void 0===t.availabilityTimeOffset||(p.availabilityTimeOffset=(null!==(n=A.availabilityTimeOffset)&&void 0!==n?n:0)+(null!==(r=t.availabilityTimeOffset)&&void 0!==r?r:0)),void 0===A.availabilityTimeComplete&&void 0===t.availabilityTimeComplete||(p.availabilityTimeComplete=null!==(i=A.availabilityTimeComplete)&&void 0!==i?i:t.availabilityTimeComplete),a=j.isTimelineIndexArgument(A)?new j(A,p):new Y(A,p)}else{var _=t.adaptation.children;if(void 0!==_.segmentBase){var b=_.segmentBase;a=new R.A(b,p)}else if(void 0!==_.segmentList){var S=_.segmentList;a=new D(S,p)}else a=new Y({duration:Number.MAX_VALUE,timescale:1,startNumber:0,media:""},p)}return a}(e,(0,I.A)({},n,{availabilityTimeOffset:v,availabilityTimeComplete:m,unsafelyBaseOnPreviousRepresentation:p,adaptation:t,inbandEventStreams:h}));void 0===e.attributes.bitrate?(o.A.warn("DASH: No usable bitrate found in the Representation."),g=0):g=e.attributes.bitrate;var A,_,S,E=Q(n.baseURLs,e.children.baseURLs),T={bitrate:g,cdnMetadata:0===E.length?[{baseUrl:"",id:void 0}]:E.map((function(e){return{baseUrl:e.url,id:e.serviceLocation}})),index:y,id:f};void 0!==e.children.supplementalProperties&&(0,s.A)(e.children.supplementalProperties,(function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"===e.schemeIdUri&&"JOC"===e.value}))&&(T.isSpatialAudio=!0),void 0!==e.attributes.codecs?A=e.attributes.codecs:void 0!==t.attributes.codecs&&(A=t.attributes.codecs),void 0!==A&&(A="mp4a.40.02"===A?"mp4a.40.2":A,T.codecs=A),void 0!==e.attributes.supplementalCodecs?_=e.attributes.supplementalCodecs:void 0!==t.attributes.supplementalCodecs&&(_=t.attributes.supplementalCodecs),void 0!==_&&(T.supplementalCodecs=(S=_,(0,b.A)(S)?S.trim().replace(x,", "):"")),void 0!==e.attributes.frameRate?T.frameRate=e.attributes.frameRate:void 0!==t.attributes.frameRate&&(T.frameRate=t.attributes.frameRate),void 0!==e.attributes.height?T.height=e.attributes.height:void 0!==t.attributes.height&&(T.height=t.attributes.height),void 0!==e.attributes.mimeType?T.mimeType=e.attributes.mimeType:void 0!==t.attributes.mimeType&&(T.mimeType=t.attributes.mimeType),void 0!==e.attributes.width?T.width=e.attributes.width:void 0!==t.attributes.width&&(T.width=t.attributes.width);var w=void 0!==t.children.contentProtections?t.children.contentProtections:[];if(void 0!==e.children.contentProtections&&w.push.apply(w,e.children.contentProtections),w.length>0){var k=w.reduce((function(e,t){var n;if(void 0!==t.attributes.schemeIdUri&&"urn:uuid:"===t.attributes.schemeIdUri.substring(0,9)&&(n=t.attributes.schemeIdUri.substring(9).replace(/-/g,"").toLowerCase()),void 0!==t.attributes.keyId&&t.attributes.keyId.length>0){var r={keyId:t.attributes.keyId,systemId:n};void 0===e.keyIds?e.keyIds=[r]:e.keyIds.push(r)}if(void 0!==n){for(var i,a=[],o=$(t.children.cencPssh);!(i=o()).done;){var u=i.value;a.push({systemId:n,data:u})}if(a.length>0){var l,d=(0,s.A)(e.initData,(function(e){return"cenc"===e.type}));if(void 0===d)e.initData.push({type:"cenc",values:a});else(l=d.values).push.apply(l,a)}}return e}),{keyIds:void 0,initData:[]});(Object.keys(k.initData).length>0||void 0!==k.keyIds&&k.keyIds.length>0)&&(T.contentProtections=k)}T.hdrInfo=Z({adaptationProfiles:t.attributes.profiles,supplementalProperties:t.children.supplementalProperties,essentialProperties:t.children.essentialProperties,manifestProfiles:n.manifestProfiles,codecs:A}),c.push(T)},v=$(e);!(d=v()).done;)f();return c}function ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(n.sort(se),e[t]=n.map((function(e){return e[0]}))),e}),{});return c.video.sort(se),T(de,f),de}(E.children.adaptations,B),V=(null!==(a=t.xmlNamespaces)&&void 0!==a?a:[]).concat(null!==(u=E.attributes.namespaces)&&void 0!==u?u:[]),z=function(e,t,n){for(var r,i,a,o=[],s=ue(e);!(a=s()).done;)for(var u,l=a.value,d=l.attributes,c=d.schemeIdUri,f=void 0===c?"":c,v=d.timescale,p=void 0===v?1:v,h=n.concat(null!==(r=l.attributes.namespaces)&&void 0!==r?r:[]),m=ue(l.children.events);!(u=m()).done;){var y=u.value;if(void 0!==y.eventStreamData){var A=(null!==(i=y.presentationTime)&&void 0!==i?i:0)/p+t,_=void 0===y.duration?void 0:A+y.duration/p,b=void 0;if(y.eventStreamData instanceof Element)b=y.eventStreamData;else{var S=h.reduce((function(e,t){return e+"xmlns:"+t.key+'="'+t.value+'" '}),"","application/xml").documentElement.childNodes[0]}o.push({start:A,end:_,id:y.id,data:{type:"dash-event-stream",value:{schemeIdUri:f,timescale:p,element:b}}})}}return o}(E.children.eventStreams,R,V),K={id:v,start:R,end:M,duration:C,adaptations:F,streamEvents:z};if(l.unshift(K),!f.lastPositionIsKnown()){var W=function(e){for(var t,n=null,r=!0,a=(0,m.A)(e).filter((function(e){return!(0,i.A)(e)})),o=ue((0,p.A)(a,(function(e){return e})));!(t=o()).done;)for(var s,u=ue(t.value.representations);!(s=u()).done;){var l=s.value.index.getLastAvailablePosition();null!==l&&(r=!1,"number"==typeof l&&(n=(0,i.A)(n)?l:Math.max(n,l)))}if(!(0,i.A)(n))return n;if(r)return null;return}(F);if(c)if("number"==typeof W){var G=performance.now()/1e3;f.setLastPosition(W,G)}else{var H=fe(t,R);if(void 0!==H){var q=H[0],j=H[1];f.setLastPosition(q,j)}}else"number"==typeof W&&f.setLastPosition(W)}},h=e.length-1;h>=0;h--)v();if(t.isDynamic&&!f.lastPositionIsKnown()){var S=fe(t,0);if(void 0!==S){var E=S[0],w=S[1];f.setLastPosition(E,w)}}return function(e){if(0===e.length)return[];for(var t=[e[0]],n=1;nr.start)&&(o.A.warn("DASH: Updating overlapping Periods.",null==i?void 0:i.start,r.start),i.duration=r.start-i.start,i.end=r.start,!(i.duration>0))&&(t.pop(),0!==t.length);)i=t[t.length-1];t.push(r)}return t}(l)}function fe(e,t){if((0,i.A)(e.clockOffset)){var n=Date.now()/1e3;if(n>=t)return o.A.warn("DASH Parser: no clock synchronization mechanism found. Using the system clock instead."),[n-e.availabilityStartTime,performance.now()/1e3]}else{var r=e.clockOffset/1e3-e.availabilityStartTime,a=performance.now()/1e3,s=a+r;if(s>=t)return[s,a]}}function ve(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?t[0].value:void 0}(t);if(null!=A&&A.length>0)return{type:"needs-clock",value:{url:A,continue:function(i){return i.success?(n.externalClockOffset=l(i.data),e(t,n,r,!0)):(r.push(i.error),o.A.warn("DASH Parser: Error on fetching the clock ressource",i.error),e(t,n,r,!0))}}}}}for(var _=[],b=0;b=0&&(d=0===m.minimumUpdatePeriod?a.A.getCurrent().DASH_FALLBACK_LIFETIME_WHEN_MINIMUM_UPDATE_PERIOD_EQUAL_0:m.minimumUpdatePeriod);var C=f(I),M=C.minimumSafePosition,P=C.maximumSafePosition,D=C.maximumUnsafePosition,N=performance.now();if(g){var O;if(void 0!==P)O=P;else if(void 0===T)o.A.warn("DASH Parser: use system clock to define maximum position"),O=Date.now()/1e3-_;else O=(performance.now()+T)/1e3-_;var L=w.getEstimatedLiveEdge();void 0===L&&(L=void 0!==D?D:O),p={isLinear:!0,maximumSafePosition:O,livePosition:L,time:N},c=M,null!==(R=null!=b?b:null)&&void 0!==c&&L-c>R&&(R=L-c)}else{c=void 0!==M?M:void 0!==(null===(i=I[0])||void 0===i?void 0:i.start)?I[0].start:0;var U=null!=x?x:1/0;if(void 0!==I[I.length-1]){var B=I[I.length-1],F=null!==(s=B.end)&&void 0!==s?s:void 0!==B.duration?B.start+B.duration:void 0;void 0!==F&&F=0;o--){var s,u=_[o].index,l=a[o],f=l.parsed,v=l.warnings,p=l.receivedTime,h=l.sendingTime,m=l.url;v.length>0&&r.push.apply(r,v);for(var g,y=ve(f);!(g=y()).done;){var A=g.value;d.set(A,{receivedTime:p,sendingTime:h,url:m})}(s=c.periods).splice.apply(s,[u,1].concat(f))}return e(t,n,r,i,d)}}}};function me(e){var t=e.textContent,n=[];return null===t||0===t.length?[void 0,n]:[{value:t},n]}function ge(e){for(var t={},n=0;n0){var s=Ce(a,"cenc:pssh"),u=s[0],l=s[1];null!==l&&(o.A.warn(l.message),t.push(l)),null!==u&&n.push(u)}}}return[{cencPssh:n},t]}(e.childNodes),n=t[0],r=t[1];return[{children:n,attributes:function(e){for(var t={},n=0;n0&&(r=r.concat(c));break;case"SegmentList":var f=Be(a),v=f[0],p=f[1];r=r.concat(p),t.segmentList=v;break;case"SegmentTemplate":var h=Ve(a),m=h[0],g=h[1];r=r.concat(g),t.segmentTemplate=m;break;case"ContentProtection":var y=Ne(a),A=y[0],_=y[1];_.length>0&&(r=r.concat(_)),void 0!==A&&n.push(A);break;case"SupplementalProperty":null==t.supplementalProperties?t.supplementalProperties=[Me(a)]:t.supplementalProperties.push(Me(a))}}return n.length>0&&(t.contentProtections=n),[t,r]}(e.childNodes),n=t[0],r=t[1],i=function(e){for(var t={},n=[],r=Pe(t,n),i=0;i0&&(r=r.concat(u));break;case"ContentComponent":t.contentComponent=ge(a);break;case"EssentialProperty":null==t.essentialProperties?t.essentialProperties=[Me(a)]:t.essentialProperties.push(Me(a));break;case"InbandEventStream":void 0===t.inbandEventStreams&&(t.inbandEventStreams=[]),t.inbandEventStreams.push(Me(a));break;case"Label":var l=a.textContent;null!=l&&(t.label=l);break;case"Representation":var d=ze(a),c=d[0],f=d[1];t.representations.push(c),f.length>0&&(r=r.concat(f));break;case"Role":null==t.roles?t.roles=[Me(a)]:t.roles.push(Me(a));break;case"SupplementalProperty":null==t.supplementalProperties?t.supplementalProperties=[Me(a)]:t.supplementalProperties.push(Me(a));break;case"SegmentBase":var v=Le(a),p=v[0],h=v[1];t.segmentBase=p,h.length>0&&(r=r.concat(h));break;case"SegmentList":var m=Be(a),g=m[0],y=m[1];t.segmentList=g,y.length>0&&(r=r.concat(y));break;case"SegmentTemplate":var A=Ve(a),_=A[0],b=A[1];t.segmentTemplate=_,b.length>0&&(r=r.concat(b));break;case"ContentProtection":var S=Ne(a),E=S[0],T=S[1];T.length>0&&(r=r.concat(T)),void 0!==E&&n.push(E)}}return n.length>0&&(t.contentProtections=n),[t,r]}(e.childNodes),n=t[0],r=t[1],i=function(e){for(var t={},n=[],r=Pe(t,n),i=0;i0&&(n=n.concat(d))}}return[t,n]}function Ge(e){for(var t={eventStreamData:e},n=[],r=Pe(t,n),i=0;i0&&(i=i.concat(A))}}return[{baseURLs:n,adaptations:r,eventStreams:a,segmentTemplate:t},i]}(e.childNodes),n=t[0],r=t[1],i=function(e){for(var t={},n=[],r=Pe(t,n),i=0;i",c=(new DOMParser).parseFromString(d,"text/xml");if(null==c||0===c.children.length)throw new Error("DASH parser: Invalid external ressources");for(var f=c.children[0].children,v=[],p=[],h=0;h0;){var r=e[0];if(r.start>=t)return n;if(-1===r.repeatCount)return n;if(0===r.repeatCount)e.shift(),n+=1;else{var i=e[1];if(void 0!==i&&i.start<=t)e.shift(),n+=1;else{if(r.duration<=0)return n;for(var a=r.start+r.duration,o=1;ar.repeatCount)){var s=r.repeatCount-o;return r.start=a,r.repeatCount=s,n+=o}e.shift(),n=r.repeatCount+1}}}return n}n.d(t,{A:function(){return r}})},3877:function(e,t,n){"use strict";n.d(t,{Rb:function(){return a},_l:function(){return s},jX:function(){return u},ph:function(){return l},vb:function(){return o},yi:function(){return i}});var r=n(6787);function i(e,t,n){var i,a=e.repeatCount;return a>=0?a:(i=(0,r.A)(t)?void 0!==n?n:Number.MAX_VALUE:t.start,Math.ceil((i-e.start)/e.duration)-1)}function a(e,t,n){var r=e.start,a=e.duration;return a<=0?r:r+(i(e,t,n)+1)*a}function o(e,t){var n;return e*t.timescale+(null!==(n=t.indexTimeOffset)&&void 0!==n?n:0)}function s(e,t){var n;return(e-(null!==(n=t.indexTimeOffset)&&void 0!==n?n:0))/t.timescale}function u(e,t,n){return[e*n,(e+t)*n]}function l(e,t,n){var r=e.timeline,i=o(t,e);if(i<0)return null;var u=function(e,t){for(var n=0,r=e.length;n>>1;e[i].start<=t?n=i+1:r=i}return n-1}(r,i);if(u<0||u>=r.length-1)return null;var l=r[u];if(l.duration<=0)return null;var d=r[u+1];if(void 0===d)return null;var c=d.start;return i>=a(l,d,n)&&i=0;u--){var l=e[u].start;if(l===o){var d=n-u;return e.splice.apply(e,[u,d].concat(t)),!1}if(lo)return i.A.warn("RepresentationIndex: Manifest update removed all previous segments"),e.splice.apply(e,[0,n].concat(t)),!0;if(void 0===c.repeatCount||c.repeatCount<=0)return c.repeatCount<0&&(c.repeatCount=Math.floor((o-c.start)/c.duration)-1),e.splice.apply(e,[u+1,n-(u+1)].concat(t)),!1;if(c.start+c.duration*(c.repeatCount+1)<=o)return e.splice.apply(e,[u+1,n-(u+1)].concat(t)),!1;var f=(o-c.start)/c.duration-1;if(f%1==0&&c.duration===t[0].duration){var v=t[0].repeatCount<0?-1:t[0].repeatCount+f+1;return e.splice.apply(e,[u,n-u].concat(t)),e[u].start=c.start,e[u].repeatCount=v,!1}return i.A.warn("RepresentationIndex: Manifest update removed previous segments"),e[u].repeatCount=Math.floor(f),e.splice.apply(e,[u+1,n-(u+1)].concat(t)),!1}}var p=e[e.length-1],h=t[t.length-1];return void 0!==p.repeatCount&&p.repeatCount<0?p.start>h.start?(i.A.warn("RepresentationIndex: The new index is older than the previous one"),!1):(i.A.warn('RepresentationIndex: The new index is "bigger" than the previous one'),e.splice.apply(e,[0,n].concat(t)),!0):p.start+p.duration*(p.repeatCount+1)>=h.start+h.duration*(h.repeatCount+1)?(i.A.warn("RepresentationIndex: The new index is older than the previous one"),!1):(i.A.warn('RepresentationIndex: The new index is "bigger" than the previous one'),e.splice.apply(e,[0,n].concat(t)),!0)}},9561:function(e,t,n){"use strict";var r=n(2384),i=/&#([0-9]+);/g,a=/
/gi,o=/]*>([\s\S]*?)<\/style[^>]*>/i,s=/\s*

]+))?>(.*)/i,u=/]+?start="?([0-9]*)"?[^0-9]/i;function l(e,t){var n=new RegExp("\\s*"+t+":\\s*(\\S+);","i").exec(e);return Array.isArray(n)?n[1]:null}t.A=function(e,t,n){var d,c,f=/]/gi,v=/]|<\/body>/gi,p=[],h=o.exec(e),m=Array.isArray(h)?h[1]:"";v.exec(e);var g,y=function(e){for(var t=/\.(\S+)\s*{([^}]*)}/gi,n={},r=t.exec(e);null!==r;){var i=r[1],a=l(r[2],"lang");null!=i&&null!=a&&(n[a]=i),r=t.exec(e)}return n}(m),A=function(e){var t=/p\s*{([^}]*)}/gi.exec(e);return null===t?"":t[1]}(m);if((0,r.A)(n)&&void 0===(g=y[n]))throw new Error("sami: could not find lang "+n+" in CSS");for(;d=f.exec(e),c=v.exec(e),null!==d||null!==c;){if(null===d||null===c||d.index>=c.index)throw new Error("parse error");var _=e.slice(d.index,c.index),b=u.exec(_);if(!Array.isArray(b))throw new Error("parse error (sync time attribute)");var S=+b[1];if(isNaN(S))throw new Error("parse error (sync time attribute NaN)");E(_.split("\n"),S/1e3)}return p;function E(e,n){for(var o=e.length;--o>=0;){var u=s.exec(e[o]);if(Array.isArray(u)){var l=u[1],d=u[2];if(g===l)if(" "===d)p[p.length-1].end=n;else{var c=document.createElement("DIV");c.className="rxp-texttrack-region";var f=document.createElement("DIV");f.className="rxp-texttrack-div",f.style.position="absolute",f.style.bottom="0",f.style.width="100%",f.style.color="#fff",f.style.textShadow="-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000";var v=document.createElement("div");v.className="rxp-texttrack-p",(0,r.A)(A)&&(v.style.cssText=A);for(var h=d.split(a),m=0;m/gi,s=/]*>([\s\S]*?)<\/style[^>]*>/i,u=/\s*

]+))?>(.*)/i,l=/]+?start="?([0-9]*)"?[^0-9]/i;function d(e,t){var n=new RegExp("\\s*"+t+":\\s*(\\S+);","i").exec(e);return Array.isArray(n)?n[1]:null}t.A=function(e,t,n){var c,f,v=/]/gi,p=/]|<\/body>/gi,h=[],m=s.exec(e),g=null!==m?m[1]:"";p.exec(e);var y,A=function(e){for(var t=/\.(\S+)\s*{([^}]*)}/gi,n={},r=t.exec(e);Array.isArray(r);){var i=r[1],a=d(r[2],"lang");null!=i&&null!=a&&(n[a]=i),r=t.exec(e)}return n}(g);if((0,i.A)(n)&&void 0===(y=A[n]))throw new Error("sami: could not find lang "+n+" in CSS");for(;c=v.exec(e),f=p.exec(e),null!==c||null!==f;){if(null===c||null===f||c.index>=f.index)throw new Error("parse error");var _=e.slice(c.index,f.index),b=l.exec(_);if(null===b)throw new Error("parse error (sync time attribute)");var S=+b[1];if(isNaN(S))throw new Error("parse error (sync time attribute NaN)");E(_.split("\n"),S/1e3)}return function(e){for(var t=[],n=0;n=0;)if(null!==(r=u.exec(e[s]))){var l=r,d=l[1],c=l[2];y===d&&(" "===c?h[h.length-1].end=n:h.push({text:(i=c,i.replace(o,"\n").replace(a,(function(e,t){return String.fromCharCode(Number(t))}))),start:n+t}))}}}},9413:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(2384);function i(e,t){for(var n=t+1;(0,r.A)(e[n]);)n++;return n}function a(e){for(var t=[],n=0;n0&&(1===o.length?o[0].indexOf("--\x3e")>=0&&t.push(o):(o[1].indexOf("--\x3e")>=0||o[0].indexOf("--\x3e")>=0)&&t.push(o)),n=a}return t}},1650:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(9413),i=n(5842);function a(e,t){for(var n=e.split(/\r\n|\n|\r/),a=(0,r.A)(n),s=[],u=0;u0){var l=document.createTextNode(o[s]);r.appendChild(l)}}else if("B"===a.nodeName){var d=e(a);d.style.fontWeight="bold",r.appendChild(d)}else if("I"===a.nodeName){var c=e(a);c.style.fontStyle="italic",r.appendChild(c)}else if("U"===a.nodeName){var f=e(a);f.style.textDecoration="underline",r.appendChild(f)}else if(u(a)&&"string"==typeof a.color){var v=e(a);v.style.color=a.color,r.appendChild(v)}else{var p=e(a);r.appendChild(p)}}return r}(t)}function u(e){return"FONT"===e.nodeName&&"color"in e}},5992:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(8068),i=n(9413),a=n(5842);function o(e,t){for(var n,o,s,u,l,d=e.split(/\r\n|\n|\r/),c=(0,i.A)(d),f=[],v=0;v0){var A=p.getAttribute("xml:space"),_=(0,l.A)(A)?"default"===A:o,S=(0,d.A)({},i,(0,c.i)(g,[p],n,t));u.push.apply(u,e(p,S,[p].concat(a),_))}}return u}(e,(0,d.A)({},r),[],i)}(e,n,r,i,s),S=0;S|\u2265/g,">").replace(/\u200E/g,"‎").replace(/\u200F/g,"‏").replace(/\u00A0/g," ")}else if((0,l.SV)(s))i+="\n";else if((0,l.f_)(s)&&s.nodeType===Node.ELEMENT_NODE&&s.childNodes.length>0){var c=s.getAttribute("xml:space");i+=n(s,(0,o.A)(c)?"default"===c:t)}}return i}return n(e,t)}(t,v),y=(0,i.A)(h+n,m+n,g);return null===y?null:((0,a.A)(y)&&function(e,t){var n=t.extent;if((0,o.A)(n)){var r=u.KP.exec(n);null!=r&&(e.size=Number(r[1]))}switch(t.writingMode){case"tb":case"tblr":e.vertical="lr";break;case"tbrl":e.vertical="rl"}var i=t.origin;if((0,o.A)(i))u.KP.exec(i);var a=t.align;if((0,o.A)(a)){e.align=a,"center"===a&&("center"!==e.align&&(e.align="middle"),e.position="auto");var s=c[a];e.positionAlign=void 0===s?"":s;var l=d[a];e.lineAlign=void 0===l?"":l}}(y,r),y)}var v=function(e,t){for(var n=(0,r.A)(e,t),i=[],a=0;a0&&(t=n)}return t}function a(e){var t=e.getElementsByTagName("body");if(t.length>0)return t[0];var n=e.getElementsByTagName("tt:body");return n.length>0?n[0]:null}function o(e){var t=e.getElementsByTagName("style");if(t.length>0)return t;var n=e.getElementsByTagName("tt:style");return n.length>0?n:t}function s(e){var t=e.getElementsByTagName("region");if(t.length>0)return t;var n=e.getElementsByTagName("tt:region");return n.length>0?n:t}function u(e){var t=e.getElementsByTagName("p");if(t.length>0)return t;var n=e.getElementsByTagName("tt:p");return n.length>0?n:t}function l(e){return"br"===e.nodeName||"tt:br"===e.nodeName}function d(e){return"span"===e.nodeName||"tt:span"===e.nodeName}n.d(t,{$K:function(){return a},Ft:function(){return i},SV:function(){return l},Y$:function(){return s},bL:function(){return o},f_:function(){return d},zn:function(){return u}})},7093:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(2384),i=n(6525);function a(e,t){for(var n=[],a=t;a=2)for(var r=function(r){var o=e[r];if(Array.isArray(/::cue {/.exec(o)))for(o=e[++r];(0,i.A)(o)&&!Array.isArray(/}/.exec(o))&&0!==o.length;)n+=o,o=e[++r];else{for(var s=[],u=/::cue\(\.?(.*?)\)(?:,| {)/.exec(o);(0,i.A)(o)&&Array.isArray(u);)s.push(u[1]),o=e[++r],u=/::cue\(\.?(.*?)\)(?:,| {)/.exec(o);for(var l="";(0,i.A)(o)&&!Array.isArray(/}/.exec(o))&&0!==o.length;)l+=o,o=e[++r];s.forEach((function(e){void 0===t[e]?t[e]=l:t[e]+=l}))}a=r},a=1;a0&&n.appendChild(document.createElement("br")),o[s].length>0){var u=document.createTextNode(o[s]);n.appendChild(u)}}else{var c=e.nodeName.toLowerCase().split("."),f=[];if(c.forEach((function(e){(0,i.A)(t[e])&&f.push(t[e])})),0!==f.length){var v=document.createAttribute("style");f.forEach((function(e){v.value+=e}));var p=(0,l.A)(r,a)?a:"span";(n=document.createElement(p)).setAttributeNode(v)}else{var h=(0,l.A)(r,a)?a:"span";n=document.createElement(h)}for(var m=0;m/,"").replace(/<([u,i,b,c])(\..*?)?(?: .*?)?>(.*?)<\/\1>/g,"<$1$2>$3"),r=(new DOMParser).parseFromString(n,"text/html").body.childNodes,i=[],a=0;a=2){var a=parseInt(i[1],10);isNaN(a)||(t.position=a,void 0!==i[2]&&(t.positionAlign=i[2]))}}(0,u.A)(e.size)&&(t.size=e.size),"string"==typeof e.align&&(0,s.A)(["start","center","end","left"],e.align)&&(t.align=e.align)}var d=n(8068);var c=function(e,t){var n=e.split(/\r\n|\n|\r/);if(!/^WEBVTT($| |\t)/.test(n[0]))throw new Error("Can't parse WebVTT: Invalid file.");for(var s,u,c,f,v=(0,o.yW)(n),p=(0,i.A)(n,v),h=[],m=0;m/;if(o.test(e[0]))n=e[0],r=e.slice(1,e.length);else{if(!o.test(e[1]))return null;a=e[0],n=e[1],r=e.slice(2,e.length)}var s=function(e){var t=/^([\d:.]+)[ |\t]+-->[ |\t]+([\d:.]+)[ |\t]*(.*)$/.exec(e);if(null===t)return null;var n=i(t[1]),r=i(t[2]);return null==n||null==r?null:{start:n,end:r,settings:t[3].split(/ |\t/).reduce((function(e,t){var n=t.split(":");return 2===n.length&&(e[n[0]]=n[1]),e}),{})}}(n);return null===s?null:{start:s.start+t,end:s.end+t,settings:s.settings,payload:r,header:a}}},6525:function(e,t,n){"use strict";n.d(t,{GX:function(){return o},iq:function(){return a},o4:function(){return s},yW:function(){return i}});var r=n(2384);function i(e){for(var t=0;t=0)return!0;var r=e[t+1];return void 0!==r&&r.indexOf("--\x3e")>=0}function s(e,t){for(var n=t+1;(0,r.A)(e[n]);)n++;return n}},9502:function(e,t,n){"use strict";n.d(t,{A:function(){return ce}});var r=n(418),i=n(1856),a=n(467),o=n(4756),s=n.n(o),u=n(4389),l=n(2716);function d(e,t){return null===e?null:null===t.url?e.baseUrl:(0,l.Ay)(e.baseUrl,t.url)}function c(e,t,n,r,i){return f.apply(this,arguments)}function f(){return(f=(0,a.A)(s().mark((function e(t,n,r,i,a){var o,l,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.segment,l=d(t,o),!o.isInit&&null!==l){e.next=4;break}return e.abrupt("return",{resultType:"segment-created",resultData:null});case 4:return e.next=6,(0,u.Ay)({url:l,responseType:"arraybuffer",timeout:r.timeout,onProgress:a.onProgress,cancelSignal:i});case 6:return c=e.sent,e.abrupt("return",{resultType:"segment-loaded",resultData:c});case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e,t){var n,i=t.segment,a=t.period,o=e.data,s=e.isChunked;if(t.segment.isInit)return{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0};if(s)throw new Error("Image data should not be downloaded in chunks");var u=null!==(n=i.timestampOffset)&&void 0!==n?n:0;return null===o||null===r.A.imageParser?{segmentType:"media",chunkData:null,chunkSize:0,chunkInfos:{duration:i.duration,time:i.time},chunkOffset:u,protectionDataUpdate:!1,appendWindow:[a.start,a.end]}:{segmentType:"media",chunkData:{data:r.A.imageParser(new Uint8Array(o)).thumbs,start:0,end:Number.MAX_VALUE,timescale:1,type:"bif"},chunkSize:void 0,chunkInfos:{time:0,duration:Number.MAX_VALUE},chunkOffset:u,protectionDataUpdate:!1,appendWindow:[a.start,a.end]}}var p=n(5151),h=n(874),m=n(9477),g=n(8568),y=n(8935),A=n(4670);function _(e){var t=e.aggressiveMode,n=e.referenceDateTime,i=void 0!==e.serverSyncInfos?e.serverSyncInfos.serverTimestamp-e.serverSyncInfos.clientTime:void 0;return function(a,o,s,l,d){var c,f=a.responseData,v=o.externalClockOffset,_=null!==(c=a.url)&&void 0!==c?c:o.originalUrl,b=null!=i?i:v,S={aggressiveMode:!0===t,unsafelyBaseOnPreviousManifest:o.unsafeMode?o.previousManifest:null,url:_,referenceDateTime:n,externalClockOffset:b},E=r.A.dashParsers;if(null===E.wasm||"uninitialized"===E.wasm.status||"failure"===E.wasm.status)return m.A.debug("DASH: WASM MPD Parser not initialized. Running JS one."),w();var T=function(e){if(e instanceof ArrayBuffer)return e;if("string"==typeof e)return(0,A.eb)(e).buffer;if(e instanceof Document)return(0,A.eb)(e.documentElement.innerHTML).buffer;throw new Error("DASH Manifest Parser: Unrecognized Manifest format")}(f);return function(e){var t=new DataView(e);if(61371===t.getUint16(0)&&191===t.getUint8(2))return!0;if(65279===t.getUint16(0)||65534===t.getUint16(0))return!1;return!0}(T)?"initialized"===E.wasm.status?(m.A.debug("DASH: Running WASM MPD Parser."),k(E.wasm.runWasmParser(T,S))):(m.A.debug("DASH: Awaiting WASM initialization before parsing the MPD."),E.wasm.waitForInitialization().catch((function(){})).then((function(){return null===E.wasm||"initialized"!==E.wasm.status?(m.A.warn("DASH: WASM MPD parser initialization failed. Running JS parser instead"),w()):(m.A.debug("DASH: Running WASM MPD Parser."),k(E.wasm.runWasmParser(T,S)))}))):(m.A.info("DASH: MPD doesn't seem to be UTF-8-encoded. Running JS parser instead of the WASM one."),w());function w(){if(null===E.js)throw new Error("No MPD parser is imported");var e=function(e){if(e instanceof ArrayBuffer)return(new DOMParser).parseFromString((0,A.Es)(new Uint8Array(e)),"text/xml");if("string"==typeof e)return(new DOMParser).parseFromString(e,"text/xml");if(e instanceof Document)return e;throw new Error("DASH Manifest Parser: Unrecognized Manifest format")}(f);return k(E.js(e,S))}function k(t){if("done"===t.type)return t.value.warnings.length>0&&s(t.value.warnings),l.isCancelled()?Promise.reject(l.cancellationError):{manifest:new g.Ay(t.value.parsed,e),url:_};var n=t.value,r=n.urls.map((function(e){return d((function(){var t=p.A.getCurrent().DEFAULT_REQUEST_TIMEOUT;return"string"===n.format?(0,u.Ay)({url:e,responseType:"text",timeout:t,cancelSignal:l}):(0,u.Ay)({url:e,responseType:"arraybuffer",timeout:t,cancelSignal:l})})).then((function(e){if("string"===n.format){if("string"!=typeof e.responseData)throw new Error("External DASH resources should have been a string");return(0,y.A)(e,{responseData:{success:!0,data:e.responseData}})}if(!(e.responseData instanceof ArrayBuffer))throw new Error("External DASH resources should have been ArrayBuffers");return(0,y.A)(e,{responseData:{success:!0,data:e.responseData}})}),(function(e){var t=(0,h.A)(e,{defaultCode:"PIPELINE_PARSE_ERROR",defaultReason:"An unknown error occured when parsing ressources."});return(0,y.A)({},{size:void 0,requestDuration:void 0,responseData:{success:!1,error:t}})}))}));return Promise.all(r).then((function(e){return n.format,k(n.continue(e))}))}}}var b=n(7004),S=n(3506),E=n(5497),T=n(6787),w="function"==typeof Headers?Headers:null,k="function"==typeof AbortController?AbortController:null;function I(){return"function"==typeof window.fetch&&!(0,T.A)(k)&&!(0,T.A)(w)}var x=n(5950),R=n(3233);function C(e,t){return"audio"===e||"video"===e?"video/mp4"===t.mimeType||"audio/mp4"===t.mimeType?"mp4":"video/webm"===t.mimeType||"audio/webm"===t.mimeType?"webm":void 0:"text"===e&&"application/mp4"===t.mimeType?"mp4":void 0}var M=n(2507),P=n(3598);function D(e){return function(t,n,r,i,a){return new Promise((function(s,u){var l=new M.Ay,d=l.linkToSignal(i);function c(){l.signal.deregister(u),d()}l.signal.register(u),e(t,n,r,l.signal,Object.assign(Object.assign({},a),{onNewChunk:function(e){try{o(e),a.onNewChunk(e)}catch(e){c(),l.cancel(),u(e)}}})).then((function(e){if(c(),!l.isUsed()){if("segment-loaded"===e.resultType)try{o(e.resultData.responseData)}catch(e){return void u(e)}s(e)}}),(function(e){c(),u(e)}))}));function o(e){(e instanceof ArrayBuffer||e instanceof Uint8Array)&&"mp4"===C(n.adaptation.type,n.representation)&&(0,P.A)(new Uint8Array(e),n.segment.isInit)}}}var N=n(5553);function O(e,t,n,r,i){if(void 0===t.range)return(0,u.Ay)({url:e,responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}));if(void 0===t.indexRange)return(0,u.Ay)({url:e,headers:{Range:(0,R.A)(t.range)},responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}));if(t.range[1]+1===t.indexRange[0])return(0,u.Ay)({url:e,headers:{Range:(0,R.A)([t.range[0],t.indexRange[1]])},responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}));var a=(0,u.Ay)({url:e,headers:{Range:(0,R.A)(t.range)},responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress}),o=(0,u.Ay)({url:e,headers:{Range:(0,R.A)(t.indexRange)},responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress});return Promise.all([a,o]).then((function(t){var n=t[0],r=t[1],i=(0,N.xW)(new Uint8Array(n.responseData),new Uint8Array(r.responseData)),a=Math.min(n.sendingTime,r.sendingTime),o=Math.max(n.receivedTime,r.receivedTime);return{resultType:"segment-loaded",resultData:{url:e,responseData:i,size:n.size+r.size,requestDuration:o-a,sendingTime:a,receivedTime:o}}}))}var L=n(1688);function U(e,t,n,r,i){var o=t.segment,u=void 0!==o.range?{Range:(0,R.A)(o.range)}:void 0,l=null;return function(e){var t;if(!(0,T.A)(e.headers))if((0,T.A)(w))t=e.headers;else{t=new w;for(var n=Object.keys(e.headers),r=0;r=300)throw m.A.warn("Fetch: Request HTTP Error",t.status,t.url),new S.A(t.url,t.status,E.yl.ERROR_HTTP_CODE);if((0,T.A)(t.body))throw new S.A(t.url,t.status,E.yl.PARSE_ERROR);var n=t.headers.get("Content-Length"),r=(0,T.A)(n)||isNaN(+n)?void 0:+n,i=t.body.getReader(),u=0;return l();function l(){return c.apply(this,arguments)}function c(){return(c=(0,a.A)(s().mark((function n(){var a,o,c,f,p;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i.read();case 2:if((a=n.sent).done||(0,T.A)(a.value)){n.next=11;break}return u+=a.value.byteLength,o=performance.now(),c={url:t.url,currentTime:o,duration:o-d,sendingTime:d,chunkSize:a.value.byteLength,chunk:a.value.buffer,size:u,totalSize:r},e.onData(c),n.abrupt("return",l());case 11:if(!a.done){n.next=16;break}return v(),f=performance.now(),p=f-d,n.abrupt("return",{requestDuration:p,receivedTime:f,sendingTime:d,size:u,status:t.status,url:t.url});case 16:return n.abrupt("return",l());case 17:case"end":return n.stop()}}),n)})))).apply(this,arguments)}})).catch((function(t){if(null!==u)throw u;if(v(),l)throw m.A.warn("Fetch: Request timeouted."),new S.A(e.url,0,E.yl.TIMEOUT);if(t instanceof S.A)throw t;throw m.A.warn("Fetch: Request Error",t instanceof Error?t.toString():""),new S.A(e.url,0,E.yl.ERROR_EVENT)}))}({url:e,headers:u,onData:function(e){var t=new Uint8Array(e.chunk),n=function(e){for(var t=0,n=[],r=null;te.length)return[n,r];var o=(0,L.A)(r,1835295092);if(o<0)return[n,r];var s=t+o+(0,N.mq)(e,o+t);if(s>e.length)return[n,r];var u=Math.max(a,s),l=e.subarray(t,u);n.push(l),t=u}return 0===n.length?[null,r]:[n,r]}(null!==l?(0,N.xW)(l,t):t),a=n[0];l=n[1],null!==a&&(a.forEach((function(e){r.onNewChunk(e)})),i.isCancelled())||(r.onProgress({duration:e.duration,size:e.size,totalSize:e.totalSize}),i.isCancelled())},timeout:n.timeout,cancelSignal:i}).then((function(e){return{resultType:"chunk-complete",resultData:e}}))}function B(e,t,n,r,i,a){if(t.segment.isInit)return O(e,t.segment,r,a,i);var o=C(t.adaptation.type,t.representation);if(n&&("mp4"===o||void 0===o)){if(I())return U(e,t,r,i,a);(0,x.A)("DASH: Your browser does not have the fetch API. You will have a higher chance of rebuffering when playing close to the live edge")}var s=t.segment;return(0,u.Ay)({url:e,responseType:"arraybuffer",headers:void 0!==s.range?{Range:(0,R.A)(s.range)}:void 0,timeout:r.timeout,cancelSignal:a,onProgress:i.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}))}var F=n(2948),V=n(1134),z=408125543,K=357149030,W=2807729,G=17545,H=475249515,q=187,j=179,Y=183,Q=241;function $(e,t,n,r){for(var i=r[0],a=r[1],o=i;o0)for(var v=0;v=Math.pow(2,8-n))return n}function ee(e,t){var n=J(e,t);if(null==n)return m.A.warn("webm: unrepresentable length"),null;if(t+n>e.length)return m.A.warn("webm: impossible length"),null;for(var r=0,i=0;ie.length)return m.A.warn("webm: impossible length"),null;for(var r=(e[t]&(1<<8-n)-1)*Math.pow(2,8*(n-1)),i=1;i=i)return!0}return!1}(r,t);return{inbandEvents:a,needsManifestRefresh:o}}}function oe(e){var t=e.__priv_patchLastSegmentInSidx;return function(e,n,r){var i,a,o=n.period,s=n.adaptation,u=n.representation,l=n.segment,d=n.manifest,c=e.data,f=e.isChunked,v=[o.start,o.end];if(null===c)return l.isInit?{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0}:{segmentType:"media",chunkData:null,chunkSize:0,chunkInfos:null,chunkOffset:0,protectionDataUpdate:!1,appendWindow:v};var p=c instanceof Uint8Array?c:new Uint8Array(c),h=C(s.type,u),m="mp4"===h||void 0===h,g=!1;if(m){var y,A=(0,F.A)(p);l.isInit&&(y=null!==(i=(0,V.a5)(p))&&void 0!==i?i:void 0),(A.length>0||void 0!==y)&&(g=u._addProtectionData("cenc",y,A))}if(!l.isInit){var _=m?ie(p,f,l,r):null,b=null!==(a=l.timestampOffset)&&void 0!==a?a:0;if(m){var S=(0,V.pk)(p);if(void 0!==S){var E=ae(S.filter((function(e){return void 0!==l.privateInfos&&void 0!==l.privateInfos.isEMSGWhitelisted&&l.privateInfos.isEMSGWhitelisted(e)})),d.publishTime);if(void 0!==E){var w=E.needsManifestRefresh,k=E.inbandEvents;return{segmentType:"media",chunkData:p,chunkSize:p.length,chunkInfos:_,chunkOffset:b,appendWindow:v,inbandEvents:k,protectionDataUpdate:g,needsManifestRefresh:w}}}}return{segmentType:"media",chunkData:p,chunkSize:p.length,chunkInfos:_,chunkOffset:b,protectionDataUpdate:g,appendWindow:v}}var I=l.indexRange,x=null;if("webm"===h)x=function(e,t){var n=$(z,[],e,[t,e.length]);if(null==n)return null;var r=n[0],i=n[1],a=X(e,r);if(null==a)return null;var o=Z(e,r);if(null==o)return null;var s=$(H,[],e,[r,i]);if(null==s)return null;for(var u=[],l=s[0];l0)){var R=x[x.length-1];Array.isArray(R.range)&&(R.range[1]=1/0)}u.index instanceof re.A&&null!==x&&x.length>0&&u.index.initializeIndex(x);var M=m?(0,V.zS)(p):"webm"===h?X(p,0):void 0,P=(0,T.A)(M)?void 0:M;return{segmentType:"init",initializationData:p,initializationDataSize:p.length,protectionDataUpdate:g,initTimescale:P}}}var se=n(2875);function ue(e,t,n,r){var i,a,o=e.segment,s=e.adaptation,u=e.representation;if(o.isInit)return null;null===n?r?(i=o.time,a=o.end):m.A.warn("Transport: Unavailable time data for current text track."):(i=n.time,void 0!==n.duration?a=i+n.duration:!r&&o.complete&&(a=i+o.duration));var l=function(e){var t=e.codec;if(void 0===t)throw new Error("Cannot parse subtitles: unknown format");switch(t.toLowerCase()){case"stpp":case"stpp.ttml.im1t":return"ttml";case"wvtt":return"vtt"}throw new Error('The codec used for the subtitles "'+t+'" is not managed yet.')}(u),d=function(e){var t=(0,se.j8)(e);return null===t?"":(0,A.Es)(t)}(t);return{data:d,type:l,language:s.language,start:i,end:a}}function le(e,t,n){var r,i,a=e.segment,o=e.adaptation,s=e.representation;if(a.isInit)return null;n?m.A.warn("Transport: Unavailable time data for current text track."):(r=a.time,a.complete&&(i=a.time+a.duration));var u=function(e){var t=e.mimeType,n=void 0===t?"":t;switch(e.mimeType){case"application/ttml+xml":return"ttml";case"application/x-sami":case"application/smil":return"sami";case"text/vtt":return"vtt"}var r=e.codec;if("srt"===(void 0===r?"":r).toLowerCase())return"srt";throw new Error("could not find a text-track parser for the type "+n)}(s);return{data:t,type:u,language:o.language,start:r,end:i}}function de(e){var t=e.__priv_patchLastSegmentInSidx;return function(e,n,r){var i,a=n.period,o=n.adaptation,s=n.representation,u=n.segment,l=e.data,d=e.isChunked;if(null===l)return u.isInit?{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0}:{segmentType:"media",chunkData:null,chunkSize:0,chunkInfos:null,chunkOffset:null!==(i=u.timestampOffset)&&void 0!==i?i:0,protectionDataUpdate:!1,appendWindow:[a.start,a.end]};var c=C(o.type,s);if("webm"===c)throw new Error("Text tracks with a WEBM container are not yet handled.");return"mp4"===c?function(e,t,n,r,i){var a,o=n.period,s=n.representation,u=n.segment,l=u.isInit,d=u.indexRange,c="string"==typeof e?(0,A.eb)(e):e instanceof Uint8Array?e:new Uint8Array(e);if(l){var f=(0,V.Tr)(c,Array.isArray(d)?d[0]:0);if(!0===i&&null!==f&&f.length>0){var v=f[f.length-1];Array.isArray(v.range)&&(v.range[1]=1/0)}var p=(0,V.zS)(c);return s.index instanceof re.A&&null!==f&&f.length>0&&s.index.initializeIndex(f),{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:p}}var h=ie(c,t,u,r),m=ue(n,c,h,t),g=null!==(a=u.timestampOffset)&&void 0!==a?a:0;return{segmentType:"media",chunkData:m,chunkSize:c.length,chunkInfos:h,chunkOffset:g,protectionDataUpdate:!1,appendWindow:[o.start,o.end]}}(l,d,n,r,t):function(e,t,n){var r,i,a=n.period,o=n.segment,s=o.timestampOffset,u=void 0===s?0:s;if(o.isInit)return{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0};if("string"!=typeof e){var l=e instanceof Uint8Array?e:new Uint8Array(e);r=(0,A.Es)(l),i=l.length}else r=e;return{segmentType:"media",chunkData:le(n,r,t),chunkSize:i,chunkInfos:null,chunkOffset:u,protectionDataUpdate:!1,appendWindow:[a.start,a.end]}}(l,d,n)}}var ce=function(e){var t=(0,i.A)({customManifestLoader:e.manifestLoader},null===r.A.dashParsers.wasm||"initialized"!==r.A.dashParsers.wasm.status&&"initializing"!==r.A.dashParsers.wasm.status?"arraybuffer":"text"),n=_(e),a=function(e){var t=e.lowLatencyMode,n=e.segmentLoader;return!0!==e.checkMediaSegmentIntegrity?r:D(r);function r(e,r,i,a,o){var s=d(e,r.segment);if(null==s)return Promise.resolve({resultType:"segment-created",resultData:null});if(t||void 0===n)return B(s,r,t,i,o,a);var u={adaptation:r.adaptation,manifest:r.manifest,period:r.period,representation:r.representation,segment:r.segment,transport:"dash",timeout:i.timeout,url:s};return new Promise((function(e,l){var d=!1,c=n(u,{reject:function(e){var t,n,r;if(!d&&!a.isCancelled()){d=!0,a.deregister(f);var i=e,o=null!==(t=null==i?void 0:i.message)&&void 0!==t?t:"Unknown error when fetching a DASH segment through a custom segmentLoader.",s=new b.A(o,null!==(n=null==i?void 0:i.canRetry)&&void 0!==n&&n,null!==(r=null==i?void 0:i.isOfflineError)&&void 0!==r&&r,null==i?void 0:i.xhr);l(s)}},resolve:function(t){d||a.isCancelled()||(d=!0,a.deregister(f),e({resultType:"segment-loaded",resultData:{responseData:t.data,size:t.size,requestDuration:t.duration}}))},progress:function(e){d||a.isCancelled()||o.onProgress({duration:e.duration,size:e.size,totalSize:e.totalSize})},fallback:function(){d||a.isCancelled()||(d=!0,a.deregister(f),B(s,r,t,i,o,a).then(e,l))}});function f(e){d||(d=!0,"function"==typeof c&&c(),l(e))}a.register(f)}))}}(e),o=oe(e),s=function(e){var t=e.lowLatencyMode;return!0!==e.checkMediaSegmentIntegrity?n:D(n);function n(e,n,r,i,a){var o=n.adaptation,s=n.representation,l=n.segment,c=l.range,f=d(e,l);if(null===f)return Promise.resolve({resultType:"segment-created",resultData:null});if(l.isInit)return O(f,l,r,i,a);var v=C(o.type,s),p="mp4"===v||void 0===v;if(t&&p){if(I())return U(f,n,r,a,i);(0,x.A)("DASH: Your browser does not have the fetch API. You will have a higher chance of rebuffering when playing close to the live edge")}return p?(0,u.Ay)({url:f,responseType:"arraybuffer",headers:Array.isArray(c)?{Range:(0,R.A)(c)}:null,timeout:r.timeout,onProgress:a.onProgress,cancelSignal:i}).then((function(e){return{resultType:"segment-loaded",resultData:e}})):(0,u.Ay)({url:f,responseType:"text",headers:Array.isArray(c)?{Range:(0,R.A)(c)}:null,timeout:r.timeout,onProgress:a.onProgress,cancelSignal:i}).then((function(e){return{resultType:"segment-loaded",resultData:e}}))}}(e);return{manifest:{loadManifest:t,parseManifest:n},audio:{loadSegment:a,parseSegment:o},video:{loadSegment:a,parseSegment:o},text:{loadSegment:s,parseSegment:de(e)},image:{loadSegment:c,parseSegment:v}}}},5564:function(e,t,n){"use strict";n.d(t,{A:function(){return me}});var r=n(467),i=n(4756),a=n.n(i),o=n(418),s=n(9477),u=n(8568),l=n(2875),d=n(7941),c=n(7994),f=n(5019),v=n(3877),p=n(860);function h(e,t,n){var r=e.timeline,i=e.timescale,a=r[r.length-1],o=t.timescale===i?{time:t.time,duration:t.duration}:{time:t.time/t.timescale*i,duration:t.duration/t.timescale*i};return!(n.time===o.time)&&(o.time>=(0,v.Rb)(a,null)&&(a.duration===o.duration?a.repeatCount++:e.timeline.push({duration:o.duration,start:o.time,repeatCount:0}),!0))}function m(e,t){return e.replace(/\{start time\}/g,String(t))}function g(e,t,n){var r=t-e;return r>0?Math.floor(r/n):0}function y(e,t){var n=e.repeatCount;if(null!=e.duration&&n<0){var r=void 0!==t?t.start:1/0;n=Math.ceil((r-e.start)/e.duration)-1}return n}var A=function(){function e(e,t){var n=t.aggressiveMode,r=t.isLive,i=t.segmentPrivateInfos,a=t.timeShiftBufferDepth,o=null==t.manifestReceivedTime?performance.now():t.manifestReceivedTime;if(this._index=e,this._indexValidityTime=o,this._timeShiftBufferDepth=a,this._initSegmentInfos={bitsPerSample:i.bitsPerSample,channels:i.channels,codecPrivateData:i.codecPrivateData,packetSize:i.packetSize,samplingRate:i.samplingRate,timescale:e.timescale,protection:i.protection},this._isAggressiveMode=n,this._isLive=r,0!==e.timeline.length){var s=e.timeline[e.timeline.length-1],u=(0,v.Rb)(s,null);if(this._initialScaledLastPosition=u,r){var l=o/1e3*e.timescale;this._scaledLiveGap=l-u}}}var t=e.prototype;return t.getInitSegment=function(){return{id:"init",isInit:!0,privateInfos:{smoothInitSegment:this._initSegmentInfos},url:null,time:0,end:0,duration:0,timescale:1,complete:!0}},t.getSegments=function(e,t){this._refreshTimeline();for(var n,r=function(e,t,n){var r=void 0===e.timescale||0===e.timescale?1:e.timescale;return{up:t*r,to:(t+n)*r}}(this._index,e,t),i=r.up,a=r.to,o=this._index,s=o.timeline,u=o.timescale,l=o.media,d=this._isAggressiveMode,c=[],f=s.length,v=null==this._scaledLiveGap?void 0:performance.now()/1e3*u-this._scaledLiveGap,p=0;p=a)return c;null!=n&&(n+=b+1)}return c},t.shouldRefresh=function(e,t){if(this._refreshTimeline(),!this._isLive)return!1;var n=this._index,r=n.timeline,i=n.timescale,a=r[r.length-1];if(void 0===a)return!1;var o=a.repeatCount,s=a.start+(o+1)*a.duration;return!(t*i=s||e*i>a.start+o*a.duration)},t.getFirstAvailablePosition=function(){this._refreshTimeline();var e=this._index;return 0===e.timeline.length?null:e.timeline[0].start/e.timescale},t.getLastAvailablePosition=function(){this._refreshTimeline();var e=this._index;if(null==this._scaledLiveGap){var t=e.timeline[e.timeline.length-1];return(0,v.Rb)(t,null)/e.timescale}for(var n=e.timeline.length-1;n>=0;n--)for(var r=e.timeline[n],i=performance.now()/1e3*e.timescale,a=r.start,o=r.duration,s=r.repeatCount;s>=0;s--){var u=a+o*(s+1);if((this._isAggressiveMode?u-o:u)<=i-this._scaledLiveGap)return u/e.timescale}},t.getEnd=function(){if(!this._isLive)return this.getLastAvailablePosition()},t.awaitSegmentBetween=function(e,t){var n;if((0,c.h)(e<=t),this.isStillAwaitingFutureSegments())return!1;var r=this.getLastAvailablePosition();return!(void 0!==r&&t(null!==(n=this.getFirstAvailablePosition())&&void 0!==n?n:0)&&void 0)},t.checkDiscontinuity=function(e){return this._refreshTimeline(),(0,v.ph)(this._index,e,void 0)},t.isSegmentStillAvailable=function(e){if(e.isInit)return!0;this._refreshTimeline();for(var t=this._index,n=t.timeline,r=t.timescale,i=0;ie.time)return!1;if(o===e.time)return!0;if(a.repeatCount>=0&&void 0!==a.duration){var s=(o-a.start)/a.duration-1;return s%1==0&&s<=a.repeatCount}}return!1},t.canBeOutOfSyncError=function(e){return!!this._isLive&&(e instanceof d.A&&(e.isHttpError(404)||e.isHttpError(412)))},t._replace=function(e){var t=this._index.timeline,n=e._index.timeline,r=this._index.timescale,i=e._index.timescale;if(this._index=e._index,this._initialScaledLastPosition=e._initialScaledLastPosition,this._indexValidityTime=e._indexValidityTime,this._scaledLiveGap=e._scaledLiveGap,0!==t.length&&0!==n.length&&r===i){var a=t[t.length-1],o=n[n.length-1],u=(0,v.Rb)(o,null);if(!((0,v.Rb)(a,null)<=u))for(var l=0;lu){if(d.duration!==o.duration)return;var f=u-d.start;if(0===f)return s.A.warn("Smooth Parser: a discontinuity detected in the previous manifest has been resolved."),void(this._index.timeline=this._index.timeline.concat(t.slice(l)));if(f<0||f%d.duration!=0)return;var p=f/d.duration-1,h=d.repeatCount-p;if(h<0)return;o.repeatCount+=h;var m=t.slice(l+1);return void(this._index.timeline=this._index.timeline.concat(m))}}}},t._update=function(e){(0,p.A)(this._index.timeline,e._index.timeline),this._initialScaledLastPosition=e._initialScaledLastPosition,this._indexValidityTime=e._indexValidityTime,this._scaledLiveGap=e._scaledLiveGap},t.isStillAwaitingFutureSegments=function(){return this._isLive},t.isInitialized=function(){return!0},t.addNewSegments=function(e,t){this._refreshTimeline();for(var n=0;n>3:2)?"mp4a.40.2":"mp4a.40."+n}(u,l);return{audiotag:void 0!==i?parseInt(i,10):i,bitrate:v,bitsPerSample:void 0!==a?parseInt(a,10):a,channels:void 0!==o?parseInt(o,10):o,codecPrivateData:u,codecs:p,customAttributes:n,mimeType:void 0!==l?B[l]:l,packetSize:void 0!==d?parseInt(d,10):d,samplingRate:void 0!==c?parseInt(c,10):c};case"video":var h=r("CodecPrivateData"),m=r("FourCC"),g=r("MaxWidth"),y=r("MaxHeight"),A=r("Bitrate"),_=void 0===A||isNaN(parseInt(A,10))?0:parseInt(A,10);if(void 0!==m&&void 0===B[m]||void 0===h)return s.A.warn("Smooth parser: Unsupported video codec. Ignoring quality level."),null;var b=function(e){var t=/00000001\d7([0-9a-fA-F]{6})/.exec(e);return null!==t&&(0,E.A)(t[1])?"avc1."+t[1]:"avc1.4D401E"}(h);return{bitrate:_,customAttributes:n,mimeType:void 0!==m?B[m]:m,codecPrivateData:h,codecs:b,width:void 0!==g?parseInt(g,10):void 0,height:void 0!==y?parseInt(y,10):void 0};case"text":var S=r("CodecPrivateData"),T=r("FourCC"),w=r("Bitrate");return{bitrate:void 0===w||isNaN(parseInt(w,10))?0:parseInt(w,10),customAttributes:n,mimeType:void 0!==T?B[T]:T,codecPrivateData:null!=S?S:""};default:return s.A.error("Smooth Parser: Unrecognized StreamIndex type: "+t),null}}function o(t){var r=t.root,i=t.timescale,o=t.baseUrl,u=t.protections,l=t.timeShiftBufferDepth,d=t.manifestReceivedTime,f=t.isLive,v=r.getAttribute("Timescale"),p=null===v||isNaN(+v)?i:+v,h=r.getAttribute("Type");if(null===h)throw new Error("StreamIndex without type.");(0,b.A)(_.B,h)||s.A.warn("Smooth Parser: Unrecognized adaptation type:",h);var m=h,g=r.getAttribute("Subtype"),y=r.getAttribute("Language"),w=r.getAttribute("Url"),I=null===w?"":w;var x,R=L(r,(function(e,t,r){switch(t){case"QualityLevel":var i=a(r,m);if(null===i)return e;("video"!==m||i.bitrate>n)&&e.qualityLevels.push(i);break;case"c":e.cNodes.push(r)}return e}),{qualityLevels:[],cNodes:[]}),M=R.qualityLevels,P=R.cNodes,D={timeline:(x=P,x.reduce((function(e,t,n){var r=t.getAttribute("d"),i=t.getAttribute("t"),a=t.getAttribute("r"),o=null!==a?+a-1:0,s=null!==i?+i:void 0,u=null!==r?+r:void 0;if(0===n)s=void 0===s||isNaN(s)?0:s;else{var l=e[n-1];if(null==s||isNaN(s)){if(null==l.duration||isNaN(l.duration))throw new Error("Smooth: Invalid CNodes. Missing timestamp.");s=l.start+l.duration*(l.repeatCount+1)}}if(null==u||isNaN(u)){var d=x[n+1];if(void 0===d)return e;var c=d.getAttribute("t"),f=(0,E.A)(c)?+c:null;if(null===f)throw new Error("Can't build index timeline from Smooth Manifest.");u=f-s}return e.push({duration:u,start:s,repeatCount:o}),e}),[])),timescale:p};(0,c.h)(0!==M.length,"Adaptation should have at least one playable representation.");var N=m+((0,E.A)(y)?"_"+y:""),O=M.map((function(t){var n,r,i,a,s={timeline:D.timeline,timescale:D.timescale,media:(n=I,r=t.bitrate,i=t.customAttributes,n.replace(/\{bitrate\}/g,String(r)).replace(/{CustomAttributes}/g,i.length>0?i[0]:""))},c=(0,E.A)(t.mimeType)?t.mimeType:U[m],v=t.codecs,p=N+"_"+(null!=m?m+"-":"")+(null!=c?c+"-":"")+(null!=v?v+"-":"")+String(t.bitrate),h=[];u.length>0&&(a=u[0],u.forEach((function(e){var t=e.keyId;e.keySystems.forEach((function(e){h.push({keyId:t,systemId:e.systemId})}))})));var g={bitsPerSample:t.bitsPerSample,channels:t.channels,codecPrivateData:t.codecPrivateData,packetSize:t.packetSize,samplingRate:t.samplingRate,protection:null!=a?{keyId:a.keyId}:void 0},y=null!=e.aggressiveMode&&e.aggressiveMode,_=new A(s,{aggressiveMode:y,isLive:f,manifestReceivedTime:d,segmentPrivateInfos:g,timeShiftBufferDepth:l}),b=(0,T.A)({},t,{index:_,cdnMetadata:[{baseUrl:o}],mimeType:c,codecs:v,id:p});if(h.length>0||void 0!==a){var w=void 0===a?[]:a.keySystems.map((function(e){var t=e.systemId,n=e.privateData,r=t.replace(/-/g,""),i=function(e,t){if(32!==e.length)throw new Error("HSS: wrong system id length");var n=0;return C("pssh",(0,S.xW)([n,0,0,0],(0,k.aT)(e),(0,S.KS)(t.length),t))}(r,n);return{systemId:r,data:i}}));if(w.length>0){var x=[{type:"cenc",values:w}];b.contentProtections={keyIds:h,initData:x}}else b.contentProtections={keyIds:h,initData:[]}}return b}));if("ADVT"===g)return null;var B={id:N,type:m,representations:O,language:null==y?void 0:y};return"text"===m&&"DESC"===g&&(B.closedCaption=!0),B}return function(n,r,a){var s="";if(void 0!==r){var u=(0,w.Cl)(r);s=r.substring(0,u)}var l=n.documentElement;if(null==l||"SmoothStreamingMedia"!==l.nodeName)throw new Error("document root should be SmoothStreamingMedia");var d=l.getAttribute("MajorVersion"),c=l.getAttribute("MinorVersion");if(null===d||null===c||!/^[2]-[0-2]$/.test(d+"-"+c))throw new Error("Version should be 2.0, 2.1 or 2.2");var f,v,p=l.getAttribute("Timescale"),h=(0,E.A)(p)?isNaN(+p)?1e7:+p:1e7,m=L(l,(function(t,n,r){switch(n){case"Protection":t.protections.push(O(r,e.keySystems));break;case"StreamIndex":t.adaptationNodes.push(r)}return t}),{adaptationNodes:[],protections:[]}),g=m.protections,y=m.adaptationNodes,A="boolean"==typeof(f=l.getAttribute("IsLive"))?f:"string"==typeof f&&"TRUE"===f.toUpperCase();if(A){var _=l.getAttribute("DVRWindowLength");null==_||isNaN(+_)||0==+_||(v=+_/h)}var b,S,T,k,I,x,R,C=y.reduce((function(e,t){var n=o({root:t,baseUrl:s,timescale:h,protections:g,isLive:A,timeShiftBufferDepth:v,manifestReceivedTime:a});if(null===n)return e;var r=n.type,i=e[r];return void 0===i?e[r]=[n]:i.push(n),e}),{}),M=null,D=void 0!==C.video?C.video[0]:void 0,N=void 0!==C.audio?C.audio[0]:void 0;if(void 0!==D||void 0!==N){var U=[],B=[];if(void 0!==D){var F=D.representations[0];if(void 0!==F){var V=F.index.getFirstAvailablePosition(),z=F.index.getLastAvailablePosition();null!=V&&U.push(V),null!=z&&B.push(z)}}if(void 0!==N){var K=N.representations[0];if(void 0!==K){var W=K.index.getFirstAvailablePosition(),G=K.index.getLastAvailablePosition();null!=W&&U.push(W),null!=G&&B.push(G)}}U.length>0&&(I=Math.max.apply(Math,U)),B.length>0&&(x=Math.min.apply(Math,B),R=Math.max.apply(Math,B))}var H=l.getAttribute("Duration"),q=null!==H&&0!=+H?+H/h:void 0;if(A){b=e.suggestedPresentationDelay,S=t,T=null!=I?I:S;var j=R;void 0===j&&(j=Date.now()/1e3-S);var Y=x;void 0===Y&&(Y=j),k={isLinear:!0,maximumSafePosition:Y,livePosition:j,time:performance.now()},M=null!=v?v:null}else{T=null!=I?I:0,k={isLinear:!1,maximumSafePosition:void 0!==x?x:void 0!==q?T+q:1/0,livePosition:void 0,time:performance.now()}}var Q=A?0:T,$=A?void 0:k.maximumSafePosition,X={availabilityStartTime:void 0===S?0:S,clockOffset:i,isLive:A,isDynamic:A,isLastPeriodKnown:!0,timeBounds:{minimumSafePosition:T,timeshiftDepth:M,maximumTimeData:k},periods:[{adaptations:C,duration:void 0!==$?$-Q:q,end:$,id:"gen-smooth-period-0",start:Q}],suggestedPresentationDelay:b,transportType:"smooth",uris:null==r?[]:[r]};return P(X),X}},V=F,z=n(4389),K=n(5950),W=n(3598),G=n(1856),H=n(1134),q=n(8797);function j(e,t,n,r,i){var a,o,u,d=[];if(i){var c=(0,l.Y2)(e);null!==c?(u=function(e){var t=(0,q.$H)(e,3565190898,3392751253,2387879627,2655430559);if(void 0===t)return[];for(var n=[],r=t[0],i=t[4],a=0;a0;if(n)return e;var r=new Uint8Array(e.length+4);return r.set(e.subarray(0,t+8),0),r[t+3]=1|r[t+3],r.set([0,0,0,0],t+8),r.set(e.subarray(t+8,e.length),t+12),(0,H.J_)(r)}(l,s[1]-s[0]),f=J(u,d,c,i,(0,q.$H)(a,2721664850,1520127764,2722393154,2086964724)),v=M("moof",[i,f]),p=(0,q.QL)(v,1836019558),h=(0,q.QL)(f,1953653094),m=(0,q.QL)(c,1953658222);if(null===p||null===h||null===m)throw new Error("Smooth: Invalid moof, trun or traf generation");var g=p[1]-p[0]+i.length+(h[1]-h[0])+u.length+d.length+(m[1]-m[0])+8,y=n[2]-n[0],A=v.length-y,_=(0,q.QL)(e,1835295092);if(null===_)throw new Error("Smooth: Invalid ISOBMFF given");if(!Y.h$&&(0===A||A<=-8)){var b=_[1];return v.set((0,S.KS)(b),g),e.set(v,n[0]),A<=-8&&e.set(C("free",new Uint8Array(-A-8)),v.length),e}var E=_[1]+A;v.set((0,S.KS)(E),g);var T=new Uint8Array(e.length+A),w=e.subarray(0,n[0]),k=e.subarray(n[2],e.length);return T.set(w,0),T.set(v,w.length),T.set(k,w.length+v.length),T}var te=n(7004),ne=n(3233);function re(e,t,n,r,i,a){var o,s,u,l=M("stbl",[n,C("stts",new Uint8Array(8)),C("stsc",new Uint8Array(8)),C("stsz",new Uint8Array(12)),C("stco",new Uint8Array(8))]),d=function(e){return C("dref",(0,S.xW)(7,[1],e))}(C("url ",new Uint8Array([0,0,0,1]))),c=M("dinf",[d]),f=M("minf",[r,c,l]),v=function(e){var t,n;switch(e){case"video":t="vide",n="VideoHandler";break;case"audio":t="soun",n="SoundHandler";break;default:t="hint",n=""}return C("hdlr",(0,S.xW)(8,(0,k.eb)(t),12,(0,k.eb)(n),1))}(t),p=function(e){return C("mdhd",(0,S.xW)(12,(0,S.KS)(e),8))}(e),h=M("mdia",[p,v,f]),m=function(e,t,n){return C("tkhd",(0,S.xW)((0,S.KS)(7),8,(0,S.KS)(n),20,[1,0,0,0],[0,1,0,0],12,[0,1,0,0],12,[64,0,0,0],(0,S.ww)(e),2,(0,S.ww)(t),2))}(i,a,1),g=M("trak",[m,h]),y=M("mvex",[(o=1,C("trex",(0,S.xW)(4,(0,S.KS)(o),[0,0,0,1],12)))]),A=function(e,t){return C("mvhd",(0,S.xW)(12,(0,S.KS)(e),4,[0,1],2,[1,0],10,[0,1],14,[0,1],14,[64,0,0,0],26,(0,S.ww)(t+1)))}(e,1),_=function(e,t,n){return M("moov",[e,t,n])}(A,y,g),b=(s="isom",u=["isom","iso2","iso6","avc1","dash"],C("ftyp",S.xW.apply(void 0,[(0,k.eb)(s),[0,0,0,1]].concat(u.map(k.eb)))));return(0,S.xW)(b,_)}function ie(e,t,n,r,i,a,o,s){var u=o.split("00000001"),l=u[1],d=u[2];if(void 0===l||void 0===d)throw new Error("Smooth: unsupported codec private data.");var c,f,v=function(e,t,n){var r=2===n?1:4===n?3:0,i=e[1],a=e[2],o=e[3];return C("avcC",(0,S.xW)([1,i,a,o,252|r,225],(0,S.ww)(e.length),e,[1],(0,S.ww)(t.length),t))}((0,k.aT)(l),(0,k.aT)(d),a);if(void 0===s){var p=function(e,t,n,r,i,a,o){return C("avc1",(0,S.xW)(6,(0,S.ww)(1),16,(0,S.ww)(e),(0,S.ww)(t),(0,S.ww)(n),2,(0,S.ww)(r),6,[0,1,i.length],(0,k.eb)(i),31-i.length,(0,S.ww)(a),[255,255],o))}(t,n,r,i,"AVC Coding",24,v);c=X([p])}else{var h=M("schi",[Z(1,8,s)]),m=Q("cenc",65536),g=function(e,t,n,r,i,a,o,s){return C("encv",(0,S.xW)(6,(0,S.ww)(1),16,(0,S.ww)(e),(0,S.ww)(t),(0,S.ww)(n),2,(0,S.ww)(r),6,[0,1,i.length],(0,k.eb)(i),31-i.length,(0,S.ww)(a),[255,255],o,s))}(t,n,r,i,"AVC Coding",24,v,M("sinf",[$("avc1"),m,h]));c=X([g])}return re(e,"video",c,((f=new Uint8Array(12))[3]=1,C("vmhd",f)),t,n)}var ae=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];function oe(e,t,n,r,i,a,o){var s,u,l,d=function(e,t){return C("esds",(0,S.xW)(4,[3,25],(0,S.ww)(e),[0,4,17,64,21],11,[5,2],(0,k.aT)(t),[6,1,2]))}(1,0===a.length?(s=i,u=t,l=((l=((l=(63&2)<<4)|31&ae.indexOf(s))<<4)|31&u)<<3,(0,k.My)((0,S.ww)(l))):a),c=function(){if(void 0===o){var e=function(e,t,n,r,i,a){return C("mp4a",(0,S.xW)(6,(0,S.ww)(e),8,(0,S.ww)(t),(0,S.ww)(n),2,(0,S.ww)(r),(0,S.ww)(i),2,a))}(1,t,n,r,i,d);return X([e])}var a=M("schi",[Z(1,8,o)]),s=Q("cenc",65536),u=M("sinf",[$("mp4a"),s,a]),l=function(e,t,n,r,i,a,o){return C("enca",(0,S.xW)(6,(0,S.ww)(e),8,(0,S.ww)(t),(0,S.ww)(n),2,(0,S.ww)(r),(0,S.ww)(i),2,a,o))}(1,t,n,r,i,d,u);return X([l])}();return re(e,"audio",c,C("smhd",new Uint8Array(8)),0,0)}var se=/(\.isml?)(\?token=\S+)?$/,ue=/\?token=(\S+)/;function le(e,t){return(0,E.A)(t)?e.replace(ue,"?token="+t):e.replace(ue,"")}function de(e){return"string"==typeof e.mimeType&&e.mimeType.indexOf("mp4")>=0}function ce(e,t){return null===e?null:null===t.url?e.baseUrl:(0,w.Ay)(e.baseUrl,t.url)}function fe(e,t,n,r,i,a){var o,s=t.segment.range;return Array.isArray(s)&&(o={Range:(0,ne.A)(s)}),(0,z.Ay)({url:e,responseType:"arraybuffer",headers:o,timeout:r.timeout,cancelSignal:i,onProgress:n.onProgress}).then((function(e){if(!de(t.representation)||!0!==a)return{resultType:"segment-loaded",resultData:e};var n=new Uint8Array(e.responseData);return(0,W.A)(n,t.segment.isInit),{resultType:"segment-loaded",resultData:Object.assign(Object.assign({},e),{responseData:n})}}))}var ve=function(e){var t=e.checkMediaSegmentIntegrity,n=e.customSegmentLoader;return function(e,r,i,a,o){var s=r.segment,u=r.manifest,l=r.period,d=r.adaptation,c=r.representation;if(s.isInit){if(void 0===s.privateInfos||void 0===s.privateInfos.smoothInitSegment)throw new Error("Smooth: Invalid segment format");var f,v=s.privateInfos.smoothInitSegment,p=v.codecPrivateData,h=v.timescale,m=v.protection,g=void 0===m?{keyId:void 0,keySystems:void 0}:m;if(void 0===p)throw new Error("Smooth: no codec private data.");switch(d.type){case"video":var y=c.width,A=void 0===y?0:y,_=c.height;f=ie(h,A,void 0===_?0:_,72,72,4,p,g.keyId);break;case"audio":var b=v.channels,S=void 0===b?0:b,E=v.bitsPerSample,T=void 0===E?0:E,w=v.packetSize,k=void 0===w?0:w,I=v.samplingRate;f=oe(h,S,T,k,void 0===I?0:I,p,g.keyId);break;default:0,f=new Uint8Array(0)}return Promise.resolve({resultType:"segment-created",resultData:f})}if(null===e)return Promise.resolve({resultType:"segment-created",resultData:null});var x={adaptation:d,manifest:u,period:l,representation:c,segment:s,transport:"smooth",timeout:i.timeout,url:e};return"function"!=typeof n?fe(e,r,o,i,a,t):new Promise((function(s,u){var l=!1,d=n(x,{reject:function(e){var t,n,r;if(!l&&!a.isCancelled()){l=!0,a.deregister(c);var i=e,o=null!==(t=null==i?void 0:i.message)&&void 0!==t?t:"Unknown error when fetching a Smooth segment through a custom segmentLoader.",s=new te.A(o,null!==(n=null==i?void 0:i.canRetry)&&void 0!==n&&n,null!==(r=null==i?void 0:i.isOfflineError)&&void 0!==r&&r,null==i?void 0:i.xhr);u(s)}},resolve:function(e){if(!l&&!a.isCancelled()){l=!0,a.deregister(c),de(r.representation)&&!0===t||s({resultType:"segment-loaded",resultData:{responseData:e.data,size:e.size,requestDuration:e.duration}});var n=e.data instanceof Uint8Array?e.data:new Uint8Array(e.data);(0,W.A)(n,r.segment.isInit),s({resultType:"segment-loaded",resultData:{responseData:n,size:e.size,requestDuration:e.duration}})}},fallback:function(){l||a.isCancelled()||(l=!0,a.deregister(c),fe(e,r,o,i,a,t).then(s,u))},progress:function(e){l||a.isCancelled()||o.onProgress({duration:e.duration,size:e.size,totalSize:e.totalSize})}});function c(e){l||((l=!0)||"function"!=typeof d||d(),u(e))}a.register(c)}))}},pe=/\.wsx?(\?token=\S+)?/;function he(e,t,n){var r;s.A.debug("Smooth Parser: update segments information.");for(var i=e.representations,a=0;a0&&he(o,v,a),{segmentType:"media",chunkData:h,chunkInfos:p,chunkOffset:0,chunkSize:h.length,protectionDataUpdate:!1,appendWindow:[void 0,void 0]}}},c={loadSegment:function(t,n,r,i,a){var o=n.segment,s=n.representation,u=ce(t,o);return o.isInit||null===u?Promise.resolve({resultType:"segment-created",resultData:null}):de(s)?(0,z.Ay)({url:u,responseType:"arraybuffer",timeout:r.timeout,cancelSignal:i,onProgress:a.onProgress}).then((function(t){if(!0!==e.checkMediaSegmentIntegrity)return{resultType:"segment-loaded",resultData:t};var r=new Uint8Array(t.responseData);return(0,W.A)(r,n.segment.isInit),{resultType:"segment-loaded",resultData:Object.assign(Object.assign({},t),{responseData:r})}})):(0,z.Ay)({url:u,responseType:"text",timeout:r.timeout,cancelSignal:i,onProgress:a.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}))},parseSegment:function(e,t,n){var r,i,a,o=t.manifest,u=t.adaptation,d=t.representation,c=t.segment,f=u.language,v=de(d),p=d.mimeType,h=void 0===p?"":p,m=d.codec,g=void 0===m?"":m,y=e.data,A=e.isChunked;if(c.isInit)return{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0};if(null===y)return{segmentType:"media",chunkData:null,chunkInfos:null,chunkOffset:0,chunkSize:0,protectionDataUpdate:!1,appendWindow:[void 0,void 0]};var _,b,S,E,T=null;if(v){var w;i=(w="string"==typeof y?(0,k.eb)(y):y instanceof Uint8Array?y:new Uint8Array(y)).length;var I=void 0!==n?j(w,A,n,c,o.isLive):null;a=null==I?void 0:I.nextSegments,null===(T=null!==(r=null==I?void 0:I.chunkInfos)&&void 0!==r?r:null)?A?s.A.warn("Smooth: Unavailable time data for current text track."):(_=c.time,b=c.end):(_=T.time,b=void 0!==T.duration?T.time+T.duration:c.end);var x=g.toLowerCase();if("application/ttml+xml+mp4"===h||"stpp"===x||"stpp.ttml.im1t"===x)E="ttml";else{if("wvtt"!==x)throw new Error("could not find a text-track parser for the type "+h);E="vtt"}var R=(0,l.j8)(w);S=null===R?"":(0,k.Es)(R)}else{var C;if(_=c.time,b=c.end,"string"!=typeof y){var M=y instanceof Uint8Array?y:new Uint8Array(y);i=M.length,C=(0,k.Es)(M)}else C=y;switch(h){case"application/x-sami":case"application/smil":E="sami";break;case"application/ttml+xml":E="ttml";break;case"text/vtt":E="vtt"}if(void 0===E){if("srt"!==g.toLowerCase())throw new Error("could not find a text-track parser for the type "+h);E="srt"}S=C}return null!==T&&Array.isArray(a)&&a.length>0&&he(u,a,c),{segmentType:"media",chunkData:{type:E,data:S,start:_,end:b,language:f},chunkSize:i,chunkInfos:T,chunkOffset:null!=_?_:0,protectionDataUpdate:!1,appendWindow:[void 0,void 0]}}};return{manifest:{resolveManifestUrl:function(e,t){if(void 0===e)return Promise.resolve(void 0);var n;pe.test(e)?((0,K.A)("Giving WSX URL to loadVideo is deprecated. You should only give Manifest URLs."),n=(0,z.Ay)({url:le(e,""),responseType:"document",cancelSignal:t}).then((function(e){var t=e.responseData.getElementsByTagName("media")[0].getAttribute("src");if(null===t||0===t.length)throw new Error("Invalid ISML");return t}))):n=Promise.resolve(e);var r=function(e){var t=ue.exec(e);if(null!==t){var n=t[1];if(void 0!==n)return n}return""}(e);return n.then((function(e){return le(function(e){return se.test(e)?((0,K.A)("Giving a isml URL to loadVideo is deprecated. Please give the Manifest URL directly"),e.replace(se,"$1/manifest$2")):e}(e),r)}))},loadManifest:(0,G.A)(i,"text"),parseManifest:function(n,r){var i,a=null!==(i=n.url)&&void 0!==i?i:r.originalUrl,o=n.receivedTime,s=n.responseData,l="string"==typeof s?(new DOMParser).parseFromString(s,"text/xml"):s,d=t(l,a,o);return{manifest:new u.Ay(d,{representationFilter:e.representationFilter,supplementaryImageTracks:e.supplementaryImageTracks,supplementaryTextTracks:e.supplementaryTextTracks}),url:a}}},audio:d,video:d,text:c,image:{loadSegment:function(e,t,n,i,o){return(0,r.A)(a().mark((function r(){var s,u,l;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s=t.segment,u=ce(e,s),!s.isInit&&null!==u){r.next=4;break}return r.abrupt("return",{resultType:"segment-created",resultData:null});case 4:return r.next=6,(0,z.Ay)({url:u,responseType:"arraybuffer",timeout:n.timeout,onProgress:o.onProgress,cancelSignal:i});case 6:return l=r.sent,r.abrupt("return",{resultType:"segment-loaded",resultData:l});case 8:case"end":return r.stop()}}),r)})))()},parseSegment:function(e,t,n){var r=e.data,i=e.isChunked;if(t.segment.isInit)return{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0};if(i)throw new Error("Image data should not be downloaded in chunks");return null===r||null===o.A.imageParser?{segmentType:"media",chunkData:null,chunkInfos:null,chunkOffset:0,chunkSize:0,protectionDataUpdate:!1,appendWindow:[void 0,void 0]}:{segmentType:"media",chunkData:{data:o.A.imageParser(new Uint8Array(r)).thumbs,start:0,end:Number.MAX_VALUE,timescale:1,type:"bif"},chunkInfos:{time:0,duration:Number.MAX_VALUE},chunkSize:void 0,chunkOffset:0,protectionDataUpdate:!1,appendWindow:[void 0,void 0]}}}}}},3233:function(e,t,n){"use strict";function r(e){var t=e[0],n=e[1];return n===1/0?"bytes="+t+"-":"bytes="+t+"-"+n}n.d(t,{A:function(){return r}})},3598:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(1858),i=n(1688);function a(e,t){if(t){if((0,i.A)(e,1718909296)<0)throw new r.A("INTEGRITY_ERROR","Incomplete `ftyp` box");if((0,i.A)(e,1836019574)<0)throw new r.A("INTEGRITY_ERROR","Incomplete `moov` box")}else{if((0,i.A)(e,1836019558)<0)throw new r.A("INTEGRITY_ERROR","Incomplete `moof` box");if((0,i.A)(e,1835295092)<0)throw new r.A("INTEGRITY_ERROR","Incomplete `mdat` box")}}},1688:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(5553);function i(e,t){for(var n=e.length,i=0;i+8<=n;){var a=(0,r.mq)(e,i);if(0===a)a=n-i;else if(1===a){if(i+16>n)return-1;a=(0,r.CQ)(e,i+8)}if(isNaN(a)||a<=0)return-1;if((0,r.mq)(e,i+4)===t)return i+a<=n?i:-1;i+=a}return-1}},1856:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(2038),i=n(4389),a=n(7004);function o(e,t){var n=e.customManifestLoader,o=function(e){return function(t,n,a){if(void 0===t)throw new Error("Cannot perform HTTP(s) request. URL not known");switch(e){case"arraybuffer":return(0,i.Ay)({url:t,responseType:"arraybuffer",timeout:n.timeout,cancelSignal:a});case"text":return(0,i.Ay)({url:t,responseType:"text",timeout:n.timeout,cancelSignal:a});case"document":return(0,i.Ay)({url:t,responseType:"document",timeout:n.timeout,cancelSignal:a});default:(0,r.A)(e)}}}(t);return"function"!=typeof n?o:function(e,t){return function(n,r,i){return new Promise((function(o,s){var u=Date.now()-performance.now(),l=!1,d=e(n,{reject:function(e){var t,n,r;if(!l&&!i.isCancelled()){l=!0,i.deregister(c);var o=e,u=null!==(t=null==o?void 0:o.message)&&void 0!==t?t:"Unknown error when fetching the Manifest through a custom manifestLoader.",d=new a.A(u,null!==(n=null==o?void 0:o.canRetry)&&void 0!==n&&n,null!==(r=null==o?void 0:o.isOfflineError)&&void 0!==r&&r,null==o?void 0:o.xhr);s(d)}},resolve:function(e){if(!l&&!i.isCancelled()){l=!0,i.deregister(c);var t=void 0!==e.receivingTime?e.receivingTime-u:void 0,n=void 0!==e.sendingTime?e.sendingTime-u:void 0;o({responseData:e.data,size:e.size,requestDuration:e.duration,url:e.url,receivedTime:t,sendingTime:n})}},fallback:function(){l||i.isCancelled()||(l=!0,i.deregister(c),t(n,r,i).then(o,s))}},{timeout:r.timeout});function c(e){l||(l=!0,"function"==typeof d&&d(),s(e))}i.register(c)}))}}(n,o)}},987:function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;if(e===t)return!0;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}n.d(t,{A:function(){return r}})},1729:function(e,t,n){"use strict";function r(e,t,n){if("function"==typeof Array.prototype.find)return e.find(t,n);for(var r=e.length>>>0,i=0;i>>0,i=0;i>>0;if(0===r)return!1;for(var i,a,o=0|n,s=o>=0?Math.min(o,r-1):Math.max(r+o,0);s=a.length)throw new Error("Unable to parse base64 string.");var t=a[e];if(255===t)throw new Error("Unable to parse base64 string.");return t}function s(e){var t,n="",r=e.length;for(t=2;t>2],n+=i[(3&e[t-2])<<4|e[t-1]>>4],n+=i[(15&e[t-1])<<2|e[t]>>6],n+=i[63&e[t]];return t===r+1&&(n+=i[e[t-2]>>2],n+=i[(3&e[t-2])<<4],n+="=="),t===r&&(n+=i[e[t-2]>>2],n+=i[(3&e[t-2])<<4|e[t-1]>>4],n+=i[(15&e[t-1])<<2],n+="="),n}function u(e){var t=e.length%4,n=e;0!==t&&(r.A.warn("base64ToBytes: base64 given miss padding"),n+=3===t?"=":2===t?"==":"===");var i=n.indexOf("=");if(-1!==i&&i>16,l[c+1]=a>>8&255,l[c+2]=255&a;return l.subarray(0,l.length-s)}},5553:function(e,t,n){"use strict";function r(){for(var e,t=arguments.length,n=-1,r=0;++n0&&(i.set(e,a),a+=e.length);return i}function i(e,t){return(e[t+0]<<8)+(e[t+1]|0)}function a(e,t){return 65536*e[t+0]+256*e[t+1]+e[t+2]}function o(e,t){return 16777216*e[t+0]+65536*e[t+1]+256*e[t+2]+e[t+3]}function s(e,t){return 4294967296*(16777216*e[t+0]+65536*e[t+1]+256*e[t+2]+e[t+3])+16777216*e[t+4]+65536*e[t+5]+256*e[t+6]+e[t+7]}function u(e){return new Uint8Array([e>>>8&255,255&e])}function l(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}function d(e){var t=e%4294967296,n=(e-t)/4294967296;return new Uint8Array([n>>>24&255,n>>>16&255,n>>>8&255,255&n,t>>>24&255,t>>>16&255,t>>>8&255,255&t])}function c(e,t){return(e[t+0]|0)+(e[t+1]<<8)}function f(e,t){return e[t+0]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]}function v(e){return new Uint8Array([255&e,e>>>8&255])}function p(e){return new Uint8Array([255&e,e>>>8&255,e>>>16&255,e>>>24&255])}n.d(t,{AT:function(){return c},CQ:function(){return s},KS:function(){return l},Kk:function(){return d},UU:function(){return i},WO:function(){return v},Wz:function(){return p},eR:function(){return f},mq:function(){return o},tb:function(){return a},ww:function(){return u},xW:function(){return r}})},2432:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(4339);function i(e,t){return(0,r.A)(t,(function(t){var n=setTimeout((function(){return t()}),e);return function(){return clearTimeout(n)}}))}},4339:function(e,t,n){"use strict";function r(e,t){var n;return new Promise((function(r,i){if(null!==e.cancellationError)return i(e.cancellationError);var a=!1;function o(e){void 0!==n&&n(),i(e)}n=t((function(t){e.deregister(o),a=!0,r(t)}),(function(t){e.deregister(o),a=!0,i(t)})),a||e.register(o)}))}n.d(t,{A:function(){return r}})},79:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(9477),i=n(6787),a=function(){function e(){this._listeners={}}var t=e.prototype;return t.addEventListener=function(e,t,n){var r=this,i=this._listeners[e];Array.isArray(i)?i.push(t):this._listeners[e]=[t],void 0!==n&&n.register((function(){r.removeEventListener(e,t)}))},t.removeEventListener=function(e,t){if((0,i.A)(e))this._listeners={};else{var n=this._listeners[e];if(Array.isArray(n))if((0,i.A)(t))delete this._listeners[e];else{var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&delete this._listeners[e]}}},t.trigger=function(e,t){var n=this._listeners[e];Array.isArray(n)&&n.slice().forEach((function(e){try{e(t)}catch(e){r.A.error("EventEmitter: listener error",e instanceof Error?e:null)}}))},e}()},3262:function(e,t,n){"use strict";function r(e,t){return"function"==typeof Array.prototype.flatMap?e.flatMap(t):e.reduce((function(e,n){var r=t(n);return Array.isArray(r)?(e.push.apply(e,r),e):(e.push(r),e)}),[])}n.d(t,{A:function(){return r}})},7021:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=.3;function i(e){return e*((2*Math.random()-1)*r+1)}},8795:function(e,t,n){"use strict";function r(){var e="",t=-1;return function(){return++t>=Number.MAX_SAFE_INTEGER&&(e+="0",t=0),e+String(t)}}n.d(t,{A:function(){return r}})},2384:function(e,t,n){"use strict";function r(e){return"string"==typeof e&&e.length>0}n.d(t,{A:function(){return r}})},6787:function(e,t,n){"use strict";function r(e){return null==e}n.d(t,{A:function(){return r}})},8202:function(e,t,n){"use strict";var r=n(4971);t.Ay=r.Ay},4971:function(e,t,n){"use strict";n.d(t,{Ay:function(){return d},BU:function(){return l},E4:function(){return u}});var r=n(2384),i=n(6787),a={aa:"aar",ab:"abk",ae:"ave",af:"afr",ak:"aka",am:"amh",an:"arg",ar:"ara",as:"asm",av:"ava",ay:"aym",az:"aze",ba:"bak",be:"bel",bg:"bul",bi:"bis",bm:"bam",bn:"ben",bo:"bod",br:"bre",bs:"bos",ca:"cat",ce:"che",ch:"cha",co:"cos",cr:"cre",cs:"ces",cu:"chu",cv:"chv",cy:"cym",da:"dan",de:"deu",dv:"div",dz:"dzo",ee:"ewe",el:"ell",en:"eng",eo:"epo",es:"spa",et:"est",eu:"eus",fa:"fas",ff:"ful",fi:"fin",fj:"fij",fo:"fao",fr:"fra",fy:"fry",ga:"gle",gd:"gla",gl:"glg",gn:"grn",gu:"guj",gv:"glv",ha:"hau",he:"heb",hi:"hin",ho:"hmo",hr:"hrv",ht:"hat",hu:"hun",hy:"hye",hz:"her",ia:"ina",id:"ind",ie:"ile",ig:"ibo",ii:"iii",ik:"ipk",io:"ido",is:"isl",it:"ita",iu:"iku",ja:"jpn",jv:"jav",ka:"kat",kg:"kon",ki:"kik",kj:"kua",kk:"kaz",kl:"kal",km:"khm",kn:"kan",ko:"kor",kr:"kau",ks:"kas",ku:"kur",kv:"kom",kw:"cor",ky:"kir",la:"lat",lb:"ltz",lg:"lug",li:"lim",ln:"lin",lo:"lao",lt:"lit",lu:"lub",lv:"lav",mg:"mlg",mh:"mah",mi:"mri",mk:"mkd",ml:"mal",mn:"mon",mr:"mar",ms:"msa",mt:"mlt",my:"mya",na:"nau",nb:"nob",nd:"nde",ne:"nep",ng:"ndo",nl:"nld",nn:"nno",no:"nor",nr:"nbl",nv:"nav",ny:"nya",oc:"oci",oj:"oji",om:"orm",or:"ori",os:"oss",pa:"pan",pi:"pli",pl:"pol",ps:"pus",pt:"por",qu:"que",rm:"roh",rn:"run",ro:"ron",ru:"rus",rw:"kin",sa:"san",sc:"srd",sd:"snd",se:"sme",sg:"sag",si:"sin",sk:"slk",sl:"slv",sm:"smo",sn:"sna",so:"som",sq:"sqi",sr:"srp",ss:"ssw",st:"sot",su:"sun",sv:"swe",sw:"swa",ta:"tam",te:"tel",tg:"tgk",th:"tha",ti:"tir",tk:"tuk",tl:"tgl",tn:"tsn",to:"ton",tr:"tur",ts:"tso",tt:"tat",tw:"twi",ty:"tah",ug:"uig",uk:"ukr",ur:"urd",uz:"uzb",ve:"ven",vi:"vie",vo:"vol",wa:"wln",wo:"wol",xh:"xho",yi:"yid",yo:"yor",za:"zha",zh:"zho",zu:"zul"},o={alb:"sqi",arm:"hye",baq:"eus",bur:"mya",chi:"zho",cze:"ces",dut:"nld",fre:"fra",geo:"kat",ger:"deu",gre:"ell",ice:"isl",mac:"mkd",mao:"mri",may:"msa",per:"fas",slo:"slk",rum:"ron",tib:"bod",wel:"cym"};function s(e){if((0,i.A)(e)||""===e)return"und";var t=function(e){var t;switch(e.length){case 2:t=a[e];break;case 3:t=o[e]}return t}((""+e).toLowerCase().split("-")[0]);return(0,r.A)(t)?t:e}function u(e){if(!(0,i.A)(e)){var t,n=!1;return"string"==typeof e?t=e:(t=e.language,!0===e.closedCaption&&(n=!0)),{language:t,closedCaption:n,normalized:s(t)}}return e}function l(e){if((0,i.A)(e))return e;if("string"==typeof e)return{language:e,audioDescription:!1,normalized:s(e)};var t={language:e.language,audioDescription:!0===e.audioDescription,normalized:s(s(e.language))};return!0===e.isDub&&(t.isDub=!0),t}var d=s},8060:function(e,t,n){"use strict";function r(){}n.d(t,{A:function(){return r}})},8935:function(e,t){"use strict";t.A="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=0;n<(arguments.length<=1?0:arguments.length-1);n++){var r=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}},4324:function(e,t,n){"use strict";t.A="function"==typeof Object.values?Object.values:function(e){return Object.keys(e).map((function(t){return e[t]}))}},3650:function(e,t,n){"use strict";n.d(t,{C$:function(){return y},D3:function(){return m},Hh:function(){return s},Nn:function(){return c},OT:function(){return p},Td:function(){return v},UL:function(){return h},aW:function(){return _},bo:function(){return b},eO:function(){return f},gV:function(){return u},vK:function(){return g}});var r=1/60;function i(e,t){return Math.abs(e-t)=0;n--){var r=e.start(n);if(t>=r){var i=e.end(n);if(t=o?r.push({start:a,end:o}):n={start:a,end:o}}return{outerRanges:r,innerRange:n}}function h(e,t){var n=f(e,t);return null!==n?n.end-n.start:0}function m(e,t){var n=f(e,t);return null!==n?t-n.start:0}function g(e,t){var n=f(e,t);return null!==n?n.end-t:1/0}function y(e,t){if(t.start===t.end)return e;for(var n=t,r=0;r0)for(var o=0;o0)for(var s=0;sl&&n.push({start:l,end:a[d].start}),l=a[d].end;l=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&n._listeners.splice(r,1)}},i={trigger:e,complete:r,hasBeenCleared:!1};this._listeners.push(i),!0===(null==t?void 0:t.emitCurrentValue)&&e(this._value,r),this._isFinished||i.hasBeenCleared?r():void 0!==(null==t?void 0:t.clearSignal)&&t.clearSignal.register(r)},t.waitUntilDefined=function(e,t){var n=this;this.onUpdate((function(t,r){void 0!==t&&(r(),e(n._value))}),{clearSignal:null==t?void 0:t.clearSignal,emitCurrentValue:!0})},t._onFinished=function(e,t){var n=this;if(t.isCancelled())return i.A;var a=function(){var e=(0,r.A)(n._onFinishCbs,(function(e){return e.trigger===o}));e>=0&&(n._onFinishCbs[e].hasBeenCleared=!0,n._onFinishCbs.splice(e,1))},o=function(){a(),e()},s=t.register(a);return this._onFinishCbs.push({trigger:o,hasBeenCleared:!1}),s},t.finish=function(){void 0!==this._deregisterCancellation&&this._deregisterCancellation(),this._isFinished=!0;for(var e,t=a(this._listeners.slice());!(e=t()).done;){var n=e.value;try{n.hasBeenCleared||(n.complete(),n.hasBeenCleared=!0)}catch(e){}}if(this._listeners.length=0,this._onFinishCbs.length>0){for(var r,i=a(this._onFinishCbs.slice());!(r=i()).done;){var o=r.value;try{o.hasBeenCleared||(o.trigger(),o.hasBeenCleared=!0)}catch(e){}}this._onFinishCbs.length=0}},e}();function u(e,t,n){var r=new s(t(e.getValue()),n);return e.onUpdate((function(e){r.setValue(t(e))}),{clearSignal:n}),e._onFinished((function(){r.finish()}),n),r}t.A=s},4389:function(e,t,n){"use strict";n.d(t,{Ay:function(){return o}});var r=n(3506),i=n(2384),a=n(6787);var o=function(e){var t={url:e.url,headers:e.headers,responseType:(0,a.A)(e.responseType)?"json":e.responseType,timeout:e.timeout};return new Promise((function(n,o){var s,u=e.onProgress,l=e.cancelSignal,d=t.url,c=t.headers,f=t.responseType,v=t.timeout,p=new XMLHttpRequest;if(p.open("GET",d,!0),void 0!==v&&(p.timeout=v,s=window.setTimeout((function(){A(),o(new r.A(d,p.status,"TIMEOUT",p))}),v+3e3)),p.responseType=f,"document"===p.responseType&&p.overrideMimeType("text/xml"),!(0,a.A)(c)){var h=c;for(var m in h)h.hasOwnProperty(m)&&p.setRequestHeader(m,h[m])}var g=performance.now(),y=null;function A(){void 0!==s&&clearTimeout(s),null!==y&&y()}void 0!==l&&(y=l.register((function(e){A(),(0,a.A)(p)||4===p.readyState||p.abort(),o(e)})),l.isCancelled())||(p.onerror=function(){A(),o(new r.A(d,p.status,"ERROR_EVENT",p))},p.ontimeout=function(){A(),o(new r.A(d,p.status,"TIMEOUT",p))},void 0!==u&&(p.onprogress=function(e){var t=performance.now();u({url:d,duration:t-g,sendingTime:g,currentTime:t,size:e.loaded,totalSize:e.total})}),p.onload=function(e){if(4===p.readyState)if(A(),p.status>=200&&p.status<300){var t,s=performance.now(),u=p.response instanceof ArrayBuffer?p.response.byteLength:e.total,l=p.status,c=p.responseType,f=(0,i.A)(p.responseURL)?p.responseURL:d;if(t="json"===c?"object"==typeof p.response?p.response:function(e){try{return JSON.parse(e)}catch(e){return null}}(p.responseText):p.response,(0,a.A)(t))return void o(new r.A(d,p.status,"PARSE_ERROR",p));n({status:l,url:f,responseType:c,sendingTime:g,receivedTime:s,requestDuration:s-g,size:u,responseData:t})}else o(new r.A(d,p.status,"ERROR_HTTP_CODE",p))},p.send())}))}},2716:function(e,t,n){"use strict";n.d(t,{Cl:function(){return o}});var r=n(9828),i=/^(?:[a-z]+:)?\/\//i,a=/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?$/;function o(e){var t=e.lastIndexOf("/");if(t<0)return e.length;if(i.test(e)){var n=e.indexOf("/");if(n>=0&&t===n+1)return e.length}var r=e.indexOf("?");return r>=0&&r=u&&s.clear(),s.set(e,l),l}function d(e){var t="";return e.scheme&&(t+=e.scheme+":"),e.authority&&(t+="//"+e.authority),t+=e.path,e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t}function c(e){for(var t=e.split(/(?=\/)/),n=[],r=0;r=this._array.length)throw new Error("Invalid index.");return this._array[e]},t.toArray=function(){return this._array.slice()},t.findFirst=function(e){return(0,r.A)(this._array,e)},t.has=function(e){return(0,i.A)(this._array,e)},t.removeElement=function(e){var t=this._array.indexOf(e);if(t>=0)return this._array.splice(t,1),t},t.head=function(){return this._array[0]},t.last=function(){return this._array[this._array.length-1]},t.shift=function(){return this._array.shift()},t.pop=function(){return this._array.pop()},e}()},9828:function(e,t,n){"use strict";function r(e,t,n){if("function"==typeof String.prototype.startsWith)return e.startsWith(t,n);var r="number"==typeof n?Math.max(n,0):0;return e.substring(r,r+t.length)===t}n.d(t,{A:function(){return r}})},4670:function(e,t,n){"use strict";n.d(t,{Es:function(){return c},KZ:function(){return p},My:function(){return v},Yg:function(){return u},Yn:function(){return h},aT:function(){return f},eb:function(){return l},kY:function(){return s}});var r=n(9477),i=n(7994),a="object"==typeof window&&"function"==typeof window.TextDecoder,o="object"==typeof window&&"function"==typeof window.TextEncoder;function s(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint8Array(t),r=0;r>8&255}return n}function u(e){if(a)try{return new TextDecoder("utf-16le").decode(e)}catch(e){var t=e instanceof Error?e:"";r.A.warn("Utils: could not use TextDecoder to parse UTF-16LE, fallbacking to another implementation",t)}for(var n="",i=0;i=t?n:new Array(t-n.length+1).join("0")+n}function c(e){if(a)try{return(new TextDecoder).decode(e)}catch(e){var t=e instanceof Error?e:"";r.A.warn("Utils: could not use TextDecoder to parse UTF-8, fallbacking to another implementation",t)}var n=e;239===n[0]&&187===n[1]&&191===n[2]&&(n=n.subarray(3));var i,o=function(e){for(var t="",n=0;n=256?"%u"+d(l,4):"%"+d(l,2)}}return decodeURIComponent(i)}function f(e){for(var t=e.length,n=new Uint8Array(t/2),r=0,i=0;r>>4).toString(16),n+=(15&e[r]).toString(16),t.length>0&&r0;)try{var n=t._listeners.pop();null==n||n(e)}catch(e){a.A.error("Error while calling clean up listener",e instanceof Error?e.toString():"Unknown error")}}))}var t=e.prototype;return t.isCancelled=function(){return this._isCancelled},t.register=function(e){var t=this;return this._isCancelled?((0,o.h)(null!==this.cancellationError),e(this.cancellationError),s.A):(this._listeners.push(e),function(){return t.deregister(e)})},t.deregister=function(e){for(var t=this._listeners.length-1;t>=0;t--)this._listeners[t]===e&&this._listeners.splice(t,1)},e}(),d=function(e){function t(){var n;return n=e.call(this,"This task was cancelled.")||this,Object.setPrototypeOf(n,t.prototype),n.name="CancellationError",n}return(0,r.A)(t,e),t}((0,i.A)(Error))},5950:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(4031),i=[];function a(e){(0,r.A)(i,e)||(console.warn(e),i.push(e))}},6826:function(e){"use strict";var t=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},n=function(e){var n,r,i=document.createTextNode(""),a=0;return new e((function(){var e;if(n)r&&(n=r.concat(n));else{if(!r)return;n=r}if(r=n,n=null,"function"==typeof r)return e=r,r=null,void e();for(i.data=a=++a%2;r;)e=r.shift(),r.length||(r=null),e()})).observe(i,{characterData:!0}),function(e){t(e),n?"function"==typeof n?n=[n,e]:n.push(e):(n=e,i.data=a=++a%2)}};e.exports=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(e){queueMicrotask(t(e))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return n(MutationObserver);if("function"==typeof WebKitMutationObserver)return n(WebKitMutationObserver)}return"function"==typeof setImmediate?function(e){setImmediate(t(e))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(e){setTimeout(t(e),0)}:null}()},4633:function(e,t,n){var r=n(3738).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function v(e,t,n,r){var i=t&&t.prototype instanceof _?t:_,a=Object.create(i.prototype),o=new D(r||[]);return s(a,"_invoke",{value:R(e,n,o)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=v;var h="suspendedStart",m="suspendedYield",g="executing",y="completed",A={};function _(){}function b(){}function S(){}var E={};f(E,l,(function(){return this}));var T=Object.getPrototypeOf,w=T&&T(T(N([])));w&&w!==a&&o.call(w,l)&&(E=w);var k=S.prototype=_.prototype=Object.create(E);function I(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,a,s,u){var l=p(e[i],e,a);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==r(c)&&o.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(c).then((function(e){d.value=e,s(d)}),(function(e){return n("throw",e,s,u)}))}u(l.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function R(e,n,r){var i=h;return function(a,o){if(i===g)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===A)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var l=p(e,n,r);if("normal"===l.type){if(i=r.done?y:m,l.arg===A)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=y,r.method="throw",r.arg=l.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var a=p(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,A;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,A):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),A}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},3738:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756:function(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},467:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,u,"next",e)}function u(e){r(o,i,a,s,u,"throw",e)}s(void 0)}))}}n.d(t,{A:function(){return i}})},2212: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},r(e)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(i="internal-seeking",r=t._internalSeeksIncoming.shift());var a=null!=e?e:t._generateInitialObservation(),o=G(t._mediaElement,i,t._withMediaSource),s=null;o.seeking&&("number"==typeof r?s=r:null!==a.pendingInternalSeek&&"seeking"!==n&&(s=a.pendingInternalSeek));var u=function(e,t,n){var r,i,a=n.withMediaSource,o=n.lowLatencyMode,s=c.A.getCurrent().REBUFFERING_GAP,u=t.event,l=t.position,d=t.bufferGap,f=t.currentRange,v=t.duration,p=t.paused,h=t.readyState,m=t.ended,g=e.rebuffering,y=e.event,A=e.position,_=function(e,t,n,r,i){var a=c.A.getCurrent().REBUFFERING_GAP,o=i?"LOW_LATENCY":"DEFAULT";if(void 0===t)return n&&Math.abs(r-e)<=a[o];return null!==t&&r-t.end<=a[o]}(l,f,m,v,o),b=h>=1&&"loadedmetadata"!==u&&null===g&&!(_||m),S=null,E=o?s.LOW_LATENCY:s.DEFAULT;if(a){if(b)d===1/0?(r=!0,S=l):void 0===d?h<3&&(r=!0,S=void 0):d<=E&&(r=!0,S=l+d);else if(null!==g){var T=W(g,o);!0!==r&&null!==g&&h>1&&(_||m||void 0!==d&&isFinite(d)&&d>T)||void 0===d&&h>=3?i=!0:void 0===d?S=void 0:d===1/0?S=l:d<=T&&(S=l+d)}}else b&&(!p&&"timeupdate"===u&&"timeupdate"===y&&l===A||"seeking"===u&&(d===1/0||void 0===d&&h<3))?r=!0:null!==g&&("seeking"!==u&&l!==A||"canplay"===u||void 0===d&&h>=3||void 0!==d&&d<1/0&&(d>W(g,o)||_||m))&&(i=!0);if(!0===i)return null;var w;if(!0===r||null!==g)return w="seeking"===u||null!==g&&"seeking"===g.reason||t.seeking?"seeking":1===h?"not-ready":"buffering",null!==g&&g.reason===w?{reason:g.reason,timestamp:g.timestamp,position:S}:{reason:w,timestamp:performance.now(),position:S};return null}(a,o,{lowLatencyMode:t._lowLatencyMode,withMediaSource:t._withMediaSource}),d=function(e,t){var n=c.A.getCurrent().MINIMUM_BUFFER_AMOUNT_BEFORE_FREEZING;if(e.freezing)return t.ended||t.paused||0===t.readyState||0===t.playbackRate||e.position!==t.position?null:e.freezing;return"timeupdate"===t.event&&void 0!==t.bufferGap&&t.bufferGap>n&&!t.ended&&!t.paused&&t.readyState>=1&&0!==t.playbackRate&&t.position===e.position?{timestamp:performance.now()}:null}(a,o),f=(0,E.A)({},{rebuffering:u,freezing:d,pendingInternalSeek:s},o);return l.A.hasLevel("DEBUG")&&l.A.debug("API: current media element state tick","event",f.event,"position",f.position,"seeking",f.seeking,"internalSeek",f.pendingInternalSeek,"rebuffering",null!==f.rebuffering,"freezing",null!==f.freezing,"ended",f.ended,"paused",f.paused,"playbackRate",f.playbackRate,"readyState",f.readyState),f},s=new w.A(o("init"),this._canceller.signal),u=function(t){var n=o(t);l.A.hasLevel("DEBUG")&&l.A.debug("API: current playback timeline:\n"+function(e,t){for(var n="",r="",i=0;it){var d=n.length-Math.floor(l.length/2);r=" ".repeat(d)+"^"+t}if(i=3?(r=void 0,i=void 0):i=null!==(r=(0,T.eO)(a,o))?r.end-o:1/0,{bufferGap:i,buffered:a,currentRange:r,position:o,duration:s,ended:u,paused:l,playbackRate:d,readyState:c,seeking:f,event:t}}function H(e,t,n){var r=t(e.getReference(),n);return{getCurrentTime:function(){return e.getCurrentTime()},getReadyState:function(){return e.getReadyState()},getPlaybackRate:function(){return e.getPlaybackRate()},getIsPaused:function(){return e.getIsPaused()},getReference:function(){return r},listen:function(e,t){var i;n.isCancelled()||!0===(null===(i=null==t?void 0:t.clearSignal)||void 0===i?void 0:i.isCancelled())||r.onUpdate(e,{clearSignal:null==t?void 0:t.clearSignal,emitCurrentValue:null==t?void 0:t.includeLastObservation})},deriveReadOnlyObserver:function(e){return H(this,e,n)}}}var q=n(1729),j=n(8202),Y=n(7296);function Q(e){return e.map((function(e){return null===e?e:{normalized:void 0===e.language?void 0:(0,j.Ay)(e.language),audioDescription:e.audioDescription,codec:e.codec}}))}function $(e){return e.map((function(e){return null===e?e:{normalized:(0,j.Ay)(e.language),forced:e.forced,closedCaption:e.closedCaption}}))}var X=function(){function e(e){this._periods=new Y.A((function(e,t){return e.period.start-t.period.start})),this._audioChoiceMemory=new WeakMap,this._textChoiceMemory=new WeakMap,this._videoChoiceMemory=new WeakMap,this._preferredAudioTracks=[],this._preferredTextTracks=[],this._preferredVideoTracks=[],this.trickModeTrackEnabled=e.preferTrickModeTracks}var t=e.prototype;return t.setPreferredAudioTracks=function(e,t){this._preferredAudioTracks=e,t&&this._applyAudioPreferences()},t.setPreferredTextTracks=function(e,t){this._preferredTextTracks=e,t&&this._applyTextPreferences()},t.setPreferredVideoTracks=function(e,t){this._preferredVideoTracks=e,t&&this._applyVideoPreferences()},t.addPeriod=function(e,t,n){var r=ie(this._periods,t),i=t.getSupportedAdaptations(e);if(void 0!==r){if(void 0!==r[e])return void l.A.warn("TrackChoiceManager: "+e+" already added for period",t.start);r[e]={adaptations:i,adaptationRef:n}}else{var a;this._periods.add(((a={period:t})[e]={adaptations:i,adaptationRef:n},a))}},t.removePeriod=function(e,t){var n=function(e,t){for(var n=0;n0;)this._periods.pop()},t.update=function(){this._resetChosenAudioTracks(),this._resetChosenTextTracks(),this._resetChosenVideoTracks()},t.setInitialAudioTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.audio:null;if((0,h.A)(n)||void 0===t)throw new Error("TrackChoiceManager: Given Period not found.");var r=e.getSupportedAdaptations("audio"),i=this._audioChoiceMemory.get(e);if(null===i)n.adaptationRef.setValue(null);else if(void 0!==i&&(0,A.A)(r,i))n.adaptationRef.setValue(i);else{var a=J(r,Q(this._preferredAudioTracks));this._audioChoiceMemory.set(e,a),n.adaptationRef.setValue(a)}},t.setInitialTextTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.text:null;if((0,h.A)(n)||void 0===t)throw new Error("TrackChoiceManager: Given Period not found.");var r=e.getSupportedAdaptations("text"),i=this._textChoiceMemory.get(e);if(null===i)n.adaptationRef.setValue(null);else if(void 0!==i&&(0,A.A)(r,i))n.adaptationRef.setValue(i);else{var a=te(r,$(this._preferredTextTracks),this._audioChoiceMemory.get(e));this._textChoiceMemory.set(e,a),n.adaptationRef.setValue(a)}},t.setInitialVideoTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.video:null;if((0,h.A)(n)||void 0===t)throw new Error("TrackChoiceManager: Given Period not found.");var r,i=e.getSupportedAdaptations("video"),a=this._videoChoiceMemory.get(e);if(null===a)r=null;else if(void 0!==a&&(0,A.A)(i,a.baseAdaptation))r=a.baseAdaptation;else{r=re(i,this._preferredVideoTracks)}if(null===r)return this._videoChoiceMemory.set(e,null),void n.adaptationRef.setValue(null);var o=ae(r,this.trickModeTrackEnabled);this._videoChoiceMemory.set(e,{baseAdaptation:r,adaptation:o}),n.adaptationRef.setValue(o)},t.setAudioTrackByID=function(e,t){var n=ie(this._periods,e),r=void 0!==n?n.audio:null;if((0,h.A)(r))throw new Error("TrackChoiceManager: Given Period not found.");var i=(0,q.A)(r.adaptations,(function(e){return e.id===t}));if(void 0===i)throw new Error("Audio Track not found.");this._audioChoiceMemory.get(e)!==i&&(this._audioChoiceMemory.set(e,i),r.adaptationRef.setValue(i))},t.setTextTrackByID=function(e,t){var n=ie(this._periods,e),r=void 0!==n?n.text:null;if((0,h.A)(r))throw new Error("TrackChoiceManager: Given Period not found.");var i=(0,q.A)(r.adaptations,(function(e){return e.id===t}));if(void 0===i)throw new Error("Text Track not found.");this._textChoiceMemory.get(e)!==i&&(this._textChoiceMemory.set(e,i),r.adaptationRef.setValue(i))},t.setVideoTrackByID=function(e,t){var n=ie(this._periods,e),r=void 0!==n?n.video:null;if((0,h.A)(r))throw new Error("LanguageManager: Given Period not found.");var i=(0,q.A)(r.adaptations,(function(e){return e.id===t}));if(void 0===i)throw new Error("Video Track not found.");var a=ae(i,this.trickModeTrackEnabled);this._videoChoiceMemory.set(e,{baseAdaptation:i,adaptation:a}),r.adaptationRef.setValue(a)},t.disableTextTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.text:null;if((0,h.A)(n))throw new Error("TrackChoiceManager: Given Period not found.");null!==this._textChoiceMemory.get(e)&&(this._textChoiceMemory.set(e,null),n.adaptationRef.setValue(null))},t.disableVideoTrack=function(e){var t=ie(this._periods,e),n=null==t?void 0:t.video;if(void 0===n)throw new Error("TrackManager: Given Period not found.");null!==this._videoChoiceMemory.get(e)&&(this._videoChoiceMemory.set(e,null),n.adaptationRef.setValue(null))},t.disableVideoTrickModeTracks=function(){this.trickModeTrackEnabled=!1,this._resetChosenVideoTracks()},t.enableVideoTrickModeTracks=function(){this.trickModeTrackEnabled=!0,this._resetChosenVideoTracks()},t.isTrickModeEnabled=function(){return this.trickModeTrackEnabled},t.getChosenAudioTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.audio:null;if((0,h.A)(n))return null;var r=this._audioChoiceMemory.get(e);return(0,h.A)(r)?null:r.toAudioTrack()},t.getChosenTextTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.text:null;if((0,h.A)(n))return null;var r=this._textChoiceMemory.get(e);return(0,h.A)(r)?null:r.toTextTrack()},t.getChosenVideoTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.video:null;if((0,h.A)(n))return null;var r=this._videoChoiceMemory.get(e);return(0,h.A)(r)?null:r.adaptation.toVideoTrack()},t.getAvailableAudioTracks=function(e){var t=ie(this._periods,e),n=void 0!==t?t.audio:null;if((0,h.A)(n))return[];var r=this._audioChoiceMemory.get(e),i=(0,h.A)(r)?null:r.id;return n.adaptations.map((function(e){var t=null!==i&&i===e.id;return(0,E.A)(e.toAudioTrack(),{active:t})}))},t.getAvailableTextTracks=function(e){var t=ie(this._periods,e),n=void 0!==t?t.text:null;if((0,h.A)(n))return[];var r=this._textChoiceMemory.get(e),i=(0,h.A)(r)?null:r.id;return n.adaptations.map((function(e){var t=null!==i&&i===e.id;return(0,E.A)(e.toTextTrack(),{active:t})}))},t.getAvailableVideoTracks=function(e){var t,n=ie(this._periods,e),r=void 0!==n?n.video:null;if((0,h.A)(r))return[];var i=this._videoChoiceMemory.get(e),a=void 0===i?void 0:null!==(t=null==i?void 0:i.adaptation.id)&&void 0!==t?t:void 0;return r.adaptations.map((function(e){var t=null!==a&&a===e.id,n=e.toVideoTrack(),r=void 0!==n.trickModeTracks?n.trickModeTracks.map((function(e){var t=null!==a&&a===e.id;return(0,E.A)(e,{active:t})})):[],i=(0,E.A)(n,{active:t});return void 0!==r&&(i.trickModeTracks=r),i}))},t._applyAudioPreferences=function(){this._audioChoiceMemory=new WeakMap,this._resetChosenAudioTracks()},t._applyTextPreferences=function(){this._textChoiceMemory=new WeakMap,this._resetChosenTextTracks()},t._applyVideoPreferences=function(){this._videoChoiceMemory=new WeakMap,this._resetChosenVideoTracks()},t._resetChosenAudioTracks=function(){var e=this,t=Q(this._preferredAudioTracks);!function n(r){if(!(r>=e._periods.length())){var i=e._periods.get(r);if((0,h.A)(i.audio))n(r+1);else{var a=i.period,o=i.audio,s=a.getSupportedAdaptations("audio"),u=e._audioChoiceMemory.get(a);if(null===u||void 0!==u&&(0,A.A)(s,u))n(r+1);else{var l=J(s,t);e._audioChoiceMemory.set(a,l),o.adaptationRef.setValue(l),n(0)}}}}(0)},t._resetChosenTextTracks=function(){var e=this,t=$(this._preferredTextTracks);!function n(r){if(!(r>=e._periods.length())){var i=e._periods.get(r);if((0,h.A)(i.text))n(r+1);else{var a=i.period,o=i.text,s=a.getSupportedAdaptations("text"),u=e._textChoiceMemory.get(a);if(null===u||void 0!==u&&(0,A.A)(s,u))n(r+1);else{var l=te(s,t,e._audioChoiceMemory.get(a));e._textChoiceMemory.set(a,l),o.adaptationRef.setValue(l),n(0)}}}}(0)},t._resetChosenVideoTracks=function(){var e=this,t=this._preferredVideoTracks;!function n(r){if(!(r>=e._periods.length())){var i=e._periods.get(r);if((0,h.A)(i.video))n(r+1);else{var a=i.period,o=i.video,s=a.getSupportedAdaptations("video"),u=e._videoChoiceMemory.get(a);if(null!==u){if(void 0!==u&&(0,A.A)(s,u.baseAdaptation)){var l=ae(u.baseAdaptation,e.trickModeTrackEnabled);return l.id===u.adaptation.id?void n(r+1):(e._videoChoiceMemory.set(a,{baseAdaptation:u.baseAdaptation,adaptation:l}),o.adaptationRef.setValue(l),n(0))}var d=re(s,t);if(null===d)return e._videoChoiceMemory.set(a,null),o.adaptationRef.setValue(null),n(0);var c=ae(d,e.trickModeTrackEnabled);return e._videoChoiceMemory.set(a,{baseAdaptation:d,adaptation:c}),o.adaptationRef.setValue(c),n(0)}n(r+1)}}}(0)},e}();function Z(e){return function(t){var n;if(void 0!==e.normalized&&(null!==(n=t.normalizedLanguage)&&void 0!==n?n:"")!==e.normalized)return!1;if(void 0!==e.audioDescription)if(e.audioDescription){if(!0!==t.isAudioDescription)return!1}else if(!0===t.isAudioDescription)return!1;if(void 0===e.codec)return!0;var r=e.codec.test,i=function(e){return void 0!==e.codec&&r.test(e.codec)};return e.codec.all?t.representations.every(i):t.representations.some(i)}}function J(e,t){if(0===e.length)return null;for(var n=0;n0){if(null!=n){var l=(0,q.A)(u,(function(e){return e.normalizedLanguage===n.normalizedLanguage}));if(void 0!==l)return l}return null!==(r=(0,q.A)(u,(function(e){return void 0===e.normalizedLanguage})))&&void 0!==r?r:null}return null}function ne(e){return function(t){if(void 0!==e.signInterpreted&&e.signInterpreted!==t.isSignInterpreted)return!1;if(void 0===e.codec)return!0;var n=e.codec.test,r=function(e){return void 0!==e.codec&&n.test(e.codec)};return e.codec.all?t.representations.every(r):t.representations.some(r)}}function re(e,t){if(0===e.length)return null;for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ny)throw new Error('Invalid maxVideoBitrate parameter. Its value, "'+y+'", is inferior to the set minVideoBitrate, "'+m+'"')}if((0,h.A)(e.maxAudioBitrate))g=E.audio;else{if(g=Number(e.maxAudioBitrate),isNaN(g))throw new Error("Invalid maxAudioBitrate parameter. Should be a number.");if(p>g)throw new Error('Invalid maxAudioBitrate parameter. Its value, "'+g+'", is inferior to the set minAudioBitrate, "'+p+'"')}return{maxBufferAhead:t,maxBufferBehind:n,limitVideoWidth:P,videoElement:d,wantedBufferAhead:r,maxVideoBufferSize:i,throttleWhenHidden:a,throttleVideoBitrateWhenHidden:o,preferredAudioTracks:s,preferredTextTracks:u,preferredVideoTracks:l,initialAudioBitrate:v,initialVideoBitrate:f,minAudioBitrate:p,minVideoBitrate:m,maxAudioBitrate:g,maxVideoBitrate:y,stopAtEnd:(0,h.A)(e.stopAtEnd)?x:!!e.stopAtEnd}}(e),s=o.initialAudioBitrate,u=o.initialVideoBitrate,d=o.limitVideoWidth,f=o.minAudioBitrate,v=o.minVideoBitrate,p=o.maxAudioBitrate,m=o.maxBufferAhead,g=o.maxBufferBehind,y=o.maxVideoBitrate,A=o.preferredAudioTracks,_=o.preferredTextTracks,b=o.preferredVideoTracks,S=o.throttleWhenHidden,E=o.throttleVideoBitrateWhenHidden,T=o.videoElement,x=o.wantedBufferAhead,R=o.maxVideoBufferSize,C=o.stopAtEnd,M=c.A.getCurrent().DEFAULT_UNMUTED_VOLUME;T.preload="auto",t.version="3.33.3",t.log=l.A,t.state="STOPPED",t.videoElement=T,r._priv_registerVideoElement(t.videoElement);var P=new k.Ay;t._destroyCanceller=P,t._priv_pictureInPictureRef=fe(T,P.signal),he(T,(function(){t.trigger("fullscreenChange",t.isFullscreen())}),P.signal);for(var D=[],N=0;N<(null===(i=T.textTracks)||void 0===i?void 0:i.length);N++){var O=null===(a=T.textTracks)||void 0===a?void 0:a[N];(0,h.A)(O)||D.push(O)}var L=function(e){for(var n=e.target,r=[],i=0;i0?e.textTracks[0]:null},i.getPlayerState=function(){return this.state},i.isContentLoaded=function(){return!(0,A.A)(["LOADING","RELOADING","STOPPED"],this.state)},i.isBuffering=function(){return(0,A.A)(["BUFFERING","SEEKING","LOADING","RELOADING"],this.state)},i.isPaused=function(){return!this.videoElement||((0,A.A)(["LOADING","RELOADING"],this.state)?!this._priv_lastAutoPlay:this.videoElement.paused)},i.isLive=function(){if(null===this._priv_contentInfos)return!1;var e=this._priv_contentInfos,t=e.isDirectFile,n=e.manifest;return!t&&null!==n&&n.isLive},i.areTrickModeTracksEnabled=function(){return this._priv_preferTrickModeTracks},i.getUrl=function(){if(null!==this._priv_contentInfos){var e=this._priv_contentInfos,t=e.isDirectFile,n=e.manifest,r=e.originalUrl;return t?r:null!==n?n.getUrl():void 0}},i.updateContentUrls=function(e,t){if(null===this._priv_contentInfos)throw new Error("No content loaded");var n=!0===(null==t?void 0:t.refresh);this._priv_contentInfos.initializer.updateContentUrls(e,n)},i.getVideoDuration=function(){if(null===this.videoElement)throw new Error("Disposed player");return this.videoElement.duration},i.getVideoBufferGap=function(){if(null===this.videoElement)throw new Error("Disposed player");var e=this.videoElement;return(0,T.vK)(e.buffered,e.currentTime)},i.getVideoLoadedTime=function(){if((0,I.A)("`getVideoLoadedTime` is deprecated and won't be present in the next major version"),null===this.videoElement)throw new Error("Disposed player");var e=this.videoElement;return(0,T.UL)(e.buffered,e.currentTime)},i.getVideoPlayedTime=function(){if((0,I.A)("`getVideoPlayedTime` is deprecated and won't be present in the next major version"),null===this.videoElement)throw new Error("Disposed player");var e=this.videoElement;return(0,T.D3)(e.buffered,e.currentTime)},i.getWallClockTime=function(){if(null===this.videoElement)throw new Error("Disposed player");if(null===this._priv_contentInfos)return this.videoElement.currentTime;var e=this._priv_contentInfos,t=e.isDirectFile,n=e.manifest;if(t){var r=a(this.videoElement);return(null!=r?r:0)+this.videoElement.currentTime}return null!==n?this.videoElement.currentTime+(void 0!==n.availabilityStartTime?n.availabilityStartTime:0):0},i.getPosition=function(){if(null===this.videoElement)throw new Error("Disposed player");return this.videoElement.currentTime},i.getLastStoredContentPosition=function(){return this._priv_reloadingMetadata.reloadPosition},i.getPlaybackRate=function(){return this._priv_speed.getValue()},i.setPlaybackRate=function(e,t){var n;e!==this._priv_speed.getValue()&&this._priv_speed.setValue(e);var r=null==t?void 0:t.preferTrickModeTracks;if("boolean"==typeof r){this._priv_preferTrickModeTracks=r;var i=null===(n=this._priv_contentInfos)||void 0===n?void 0:n.trackChoiceManager;(0,h.A)(i)||(r&&!i.isTrickModeEnabled()?i.enableVideoTrickModeTracks():!r&&i.isTrickModeEnabled()&&i.disableVideoTrickModeTracks())}},i.getAvailableVideoBitrates=function(){if(null===this._priv_contentInfos)return[];var e=this._priv_contentInfos,t=e.currentPeriod,n=e.activeAdaptations;if(null===t||null===n)return[];var r=n[t.id];return void 0===r||(0,h.A)(r.video)?[]:r.video.getAvailableBitrates()},i.getAvailableAudioBitrates=function(){if(null===this._priv_contentInfos)return[];var e=this._priv_contentInfos,t=e.currentPeriod,n=e.activeAdaptations;if(null===t||null===n)return[];var r=n[t.id];return void 0===r||(0,h.A)(r.audio)?[]:r.audio.getAvailableBitrates()},i.getManualAudioBitrate=function(){return this._priv_bitrateInfos.manualBitrates.audio.getValue()},i.getManualVideoBitrate=function(){return this._priv_bitrateInfos.manualBitrates.video.getValue()},i.getVideoBitrate=function(){var e=this._priv_getCurrentRepresentations();if(null!==e&&!(0,h.A)(e.video))return e.video.bitrate},i.getAudioBitrate=function(){var e=this._priv_getCurrentRepresentations();if(null!==e&&!(0,h.A)(e.audio))return e.audio.bitrate},i.getMinVideoBitrate=function(){return this._priv_bitrateInfos.minAutoBitrates.video.getValue()},i.getMinAudioBitrate=function(){return this._priv_bitrateInfos.minAutoBitrates.audio.getValue()},i.getMaxVideoBitrate=function(){return this._priv_bitrateInfos.maxAutoBitrates.video.getValue()},i.getMaxAudioBitrate=function(){return this._priv_bitrateInfos.maxAutoBitrates.audio.getValue()},i.play=function(){var e=this;if(null===this.videoElement)throw new Error("Disposed player");var t=this.videoElement.play();return(0,h.A)(t)||"function"!=typeof t.catch?Promise.resolve():t.catch((function(t){if("NotAllowedError"===t.name){var n=new v.A("MEDIA_ERR_PLAY_NOT_ALLOWED",t.toString());e.trigger("warning",n)}throw t}))},i.pause=function(){if(null===this.videoElement)throw new Error("Disposed player");this.videoElement.pause()},i.seekTo=function(e){var t;if(null===this.videoElement)throw new Error("Disposed player");if(null===this._priv_contentInfos)throw new Error("player: no content loaded");var n,r=this._priv_contentInfos,i=r.isDirectFile,o=r.manifest;if(!i&&null===o)throw new Error("player: the content did not load yet");if("number"==typeof e)n=e;else if("object"==typeof e){var s=e,u=this.videoElement.currentTime;if((0,h.A)(s.relative))if((0,h.A)(s.position)){if((0,h.A)(s.wallClockTime))throw new Error('invalid time object. You must set one of the following properties: "relative", "position" or "wallClockTime"');if(null!==o)n=s.wallClockTime-(null!==(t=o.availabilityStartTime)&&void 0!==t?t:0);else if(i&&null!==this.videoElement){var d=a(this.videoElement);void 0!==d&&(n=s.wallClockTime-d)}void 0===n&&(n=s.wallClockTime)}else n=s.position;else n=u+s.relative}if(void 0===n)throw new Error("invalid time given");return l.A.info("API: API Seek to",n),this.videoElement.currentTime=n,n},i.isFullscreen=function(){return(0,I.A)("isFullscreen is deprecated. Fullscreen management should now be managed by the application"),s()},i.setFullscreen=function(e){if(void 0===e&&(e=!0),(0,I.A)("setFullscreen is deprecated. Fullscreen management should now be managed by the application"),null===this.videoElement)throw new Error("Disposed player");e?function(e){if(!s()){var t=e;"function"==typeof t.requestFullscreen?t.requestFullscreen():"function"==typeof t.msRequestFullscreen?t.msRequestFullscreen():"function"==typeof t.mozRequestFullScreen?t.mozRequestFullScreen():"function"==typeof t.webkitRequestFullscreen&&t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}}(this.videoElement):o()},i.exitFullscreen=function(){(0,I.A)("exitFullscreen is deprecated. Fullscreen management should now be managed by the application"),o()},i.getVolume=function(){if(null===this.videoElement)throw new Error("Disposed player");return this.videoElement.volume},i.setVolume=function(e){if(null===this.videoElement)throw new Error("Disposed player");var t=this.videoElement;e!==t.volume&&(t.volume=e,this.trigger("volumeChange",e))},i.isMute=function(){return 0===this.getVolume()},i.mute=function(){this._priv_mutedMemory=this.getVolume(),this.setVolume(0)},i.unMute=function(){var e=c.A.getCurrent().DEFAULT_UNMUTED_VOLUME;0===this.getVolume()&&this.setVolume(0===this._priv_mutedMemory?e:this._priv_mutedMemory)},i.setVideoBitrate=function(e){this._priv_bitrateInfos.manualBitrates.video.setValue(e)},i.setAudioBitrate=function(e){this._priv_bitrateInfos.manualBitrates.audio.setValue(e)},i.setMinVideoBitrate=function(e){var t=this._priv_bitrateInfos.maxAutoBitrates.video.getValue();if(e>t)throw new Error('Invalid minimum video bitrate given. Its value, "'+e+'" is superior the current maximum video birate, "'+t+'".');this._priv_bitrateInfos.minAutoBitrates.video.setValue(e)},i.setMinAudioBitrate=function(e){var t=this._priv_bitrateInfos.maxAutoBitrates.audio.getValue();if(e>t)throw new Error('Invalid minimum audio bitrate given. Its value, "'+e+'" is superior the current maximum audio birate, "'+t+'".');this._priv_bitrateInfos.minAutoBitrates.audio.setValue(e)},i.setMaxVideoBitrate=function(e){var t=this._priv_bitrateInfos.minAutoBitrates.video.getValue();if(e0||c.result.removedAdaptations.length>0)){var f=u.getAvailableAudioTracks(s);r._priv_triggerEventIfNotStopped("availableAudioTracksChange",null!=f?f:[],i);var v=u.getAvailableTextTracks(s);r._priv_triggerEventIfNotStopped("availableTextTracksChange",null!=v?v:[],i);var p=u.getAvailableVideoTracks(s);r._priv_triggerEventIfNotStopped("availableVideoTracksChange",null!=p?p:[],i)}return}}),e.currentContentCanceller.signal)}},i._priv_onActivePeriodChanged=function(e,t){var n,r,i,a,o,s,u,l,d=t.period;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){e.currentPeriod=d;var c=e.currentContentCanceller.signal;this._priv_contentEventsMemory.periodChange!==d&&(this._priv_contentEventsMemory.periodChange=d,this._priv_triggerEventIfNotStopped("periodChange",d,c)),this._priv_triggerEventIfNotStopped("availableAudioTracksChange",this.getAvailableAudioTracks(),c),this._priv_triggerEventIfNotStopped("availableTextTracksChange",this.getAvailableTextTracks(),c),this._priv_triggerEventIfNotStopped("availableVideoTracksChange",this.getAvailableVideoTracks(),c);var f=null===(r=this._priv_contentInfos)||void 0===r?void 0:r.trackChoiceManager;if((0,h.A)(f))this._priv_triggerEventIfNotStopped("audioTrackChange",null,c),this._priv_triggerEventIfNotStopped("textTrackChange",null,c),this._priv_triggerEventIfNotStopped("videoTrackChange",null,c);else{var v=f.getChosenAudioTrack(d);this._priv_triggerEventIfNotStopped("audioTrackChange",v,c);var p=f.getChosenTextTrack(d);this._priv_triggerEventIfNotStopped("textTrackChange",p,c);var m=f.getChosenVideoTrack(d);this._priv_triggerEventIfNotStopped("videoTrackChange",m,c)}if(this._priv_triggerAvailableBitratesChangeEvent("availableAudioBitratesChange",this.getAvailableAudioBitrates(),c),!e.currentContentCanceller.isUsed()&&(this._priv_triggerAvailableBitratesChangeEvent("availableVideoBitratesChange",this.getAvailableVideoBitrates(),c),!e.currentContentCanceller.isUsed())){var g=null!==(o=null===(a=null===(i=this._priv_getCurrentRepresentations())||void 0===i?void 0:i.audio)||void 0===a?void 0:a.bitrate)&&void 0!==o?o:-1;if(this._priv_triggerCurrentBitrateChangeEvent("audioBitrateChange",g,c),!e.currentContentCanceller.isUsed()){var y=null!==(l=null===(u=null===(s=this._priv_getCurrentRepresentations())||void 0===s?void 0:s.video)||void 0===u?void 0:u.bitrate)&&void 0!==l?l:-1;this._priv_triggerCurrentBitrateChangeEvent("videoBitrateChange",y,c)}}}},i._priv_onPeriodStreamReady=function(e,t){var n;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){var r=t.type,i=t.period,a=t.adaptationRef,o=e.trackChoiceManager;switch(r){case"video":(0,h.A)(o)?(l.A.error("API: TrackChoiceManager not instanciated for a new video period"),a.setValue(null)):(o.addPeriod(r,i,a),o.setInitialVideoTrack(i));break;case"audio":(0,h.A)(o)?(l.A.error("API: TrackChoiceManager not instanciated for a new "+r+" period"),a.setValue(null)):(o.addPeriod(r,i,a),o.setInitialAudioTrack(i));break;case"text":(0,h.A)(o)?(l.A.error("API: TrackChoiceManager not instanciated for a new "+r+" period"),a.setValue(null)):(o.addPeriod(r,i,a),o.setInitialTextTrack(i));break;default:var s=i.adaptations[r];!(0,h.A)(s)&&s.length>0?a.setValue(s[0]):a.setValue(null)}}},i._priv_onPeriodStreamCleared=function(e,t){var n;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){var r=t.type,i=t.period,a=e.trackChoiceManager;switch(r){case"audio":case"text":case"video":(0,h.A)(a)||a.removePeriod(r,i)}var o=e.activeAdaptations,s=e.activeRepresentations;if(!(0,h.A)(o)&&!(0,h.A)(o[i.id])){var u=o[i.id];delete u[r],0===Object.keys(u).length&&delete o[i.id]}if(!(0,h.A)(s)&&!(0,h.A)(s[i.id])){var l=s[i.id];delete l[r],0===Object.keys(l).length&&delete s[i.id]}}},i._priv_onAdaptationChange=function(e,t){var n,r=t.type,i=t.adaptation,a=t.period;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){null===e.activeAdaptations&&(e.activeAdaptations={});var o,s=e.activeAdaptations,u=e.currentPeriod,l=s[a.id];if((0,h.A)(l))s[a.id]=((o={})[r]=i,o);else l[r]=i;var d=e.trackChoiceManager,c=e.currentContentCanceller.signal;if(null!==d&&null!==u&&!(0,h.A)(a)&&a.id===u.id)switch(r){case"audio":var f=d.getChosenAudioTrack(u);this._priv_triggerEventIfNotStopped("audioTrackChange",f,c);var v=this.getAvailableAudioBitrates();this._priv_triggerAvailableBitratesChangeEvent("availableAudioBitratesChange",v,c);break;case"text":var p=d.getChosenTextTrack(u);this._priv_triggerEventIfNotStopped("textTrackChange",p,c);break;case"video":var m=d.getChosenVideoTrack(u);this._priv_triggerEventIfNotStopped("videoTrackChange",m,c);var g=this.getAvailableVideoBitrates();this._priv_triggerAvailableBitratesChangeEvent("availableVideoBitratesChange",g,c)}}},i._priv_onRepresentationChange=function(e,t){var n,r,i=t.type,a=t.period,o=t.representation;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){null===e.activeRepresentations&&(e.activeRepresentations={});var s,u=e.activeRepresentations,l=e.currentPeriod,d=u[a.id];if((0,h.A)(d))u[a.id]=((s={})[i]=o,s);else d[i]=o;var c=null!==(r=null==o?void 0:o.bitrate)&&void 0!==r?r:-1;if(!(0,h.A)(a)&&null!==l&&l.id===a.id){var f=this._priv_contentInfos.currentContentCanceller.signal;"video"===i?this._priv_triggerCurrentBitrateChangeEvent("videoBitrateChange",c,f):"audio"===i&&this._priv_triggerCurrentBitrateChangeEvent("audioBitrateChange",c,f)}}},i._priv_onBitrateEstimationChange=function(e){var t=e.type,n=e.bitrate;void 0!==n&&(this._priv_bitrateInfos.lastBitrates[t]=n),this.trigger("bitrateEstimationChange",{type:t,bitrate:n})},i._priv_onNativeTextTracksNext=function(e){this.trigger("nativeTextTracksChange",e)},i._priv_setPlayerState=function(e){this.state!==e&&(this.state=e,l.A.info("API: playerStateChange event",e),this.trigger("playerStateChange",e))},i._priv_triggerPositionUpdate=function(e,t){var n,r;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){var i=e.isDirectFile,o=e.manifest;if((i||null!==o)&&!(0,h.A)(t)){var s=null!==o?o.getMaximumSafePosition():void 0,u={position:t.position,duration:t.duration,playbackRate:t.playbackRate,maximumBufferTime:s,bufferGap:void 0!==t.bufferGap&&isFinite(t.bufferGap)?t.bufferGap:0};if(null!==o&&o.isLive&&t.position>0){var l=null!==(r=o.availabilityStartTime)&&void 0!==r?r:0;u.wallClockTime=t.position+l;var d=o.getLivePosition();void 0!==d&&(u.liveGap=d-t.position)}else if(i&&null!==this.videoElement){var c=a(this.videoElement);void 0!==c&&(u.wallClockTime=c+t.position)}this.trigger("positionUpdate",u)}}},i._priv_triggerAvailableBitratesChangeEvent=function(e,t,n){var r=this._priv_contentEventsMemory[e];n.isCancelled()||void 0!==r&&(0,y.A)(t,r)||(this._priv_contentEventsMemory[e]=t,this.trigger(e,t))},i._priv_triggerCurrentBitrateChangeEvent=function(e,t,n){n.isCancelled()||t===this._priv_contentEventsMemory[e]||(this._priv_contentEventsMemory[e]=t,this.trigger(e,t))},i._priv_getCurrentRepresentations=function(){if(null===this._priv_contentInfos)return null;var e=this._priv_contentInfos,t=e.currentPeriod,n=e.activeRepresentations;return null===t||null===n||(0,h.A)(n[t.id])?null:n[t.id]},i._priv_triggerEventIfNotStopped=function(e,t,n){n.isCancelled()||this.trigger(e,t)},i._priv_initializeMediaElementTrackChoiceManager=function(e,t,n){var r,i,a,o=this;(0,_.h)(null!==g.A.directfile,"Initializing `MediaElementTrackChoiceManager` without Directfile feature"),(0,_.h)(null!==this.videoElement,"Initializing `MediaElementTrackChoiceManager` on a disposed RxPlayer");var s=new g.A.directfile.mediaElementTrackChoiceManager(this.videoElement),u=void 0===e?this._priv_preferredAudioTracks:[e];s.setPreferredAudioTracks(u,!0);var l=void 0===t?this._priv_preferredTextTracks:[t];return s.setPreferredTextTracks(l,!0),s.setPreferredVideoTracks(this._priv_preferredVideoTracks,!0),this._priv_triggerEventIfNotStopped("availableAudioTracksChange",s.getAvailableAudioTracks(),n),this._priv_triggerEventIfNotStopped("availableVideoTracksChange",s.getAvailableVideoTracks(),n),this._priv_triggerEventIfNotStopped("availableTextTracksChange",s.getAvailableTextTracks(),n),this._priv_triggerEventIfNotStopped("audioTrackChange",null!==(r=s.getChosenAudioTrack())&&void 0!==r?r:null,n),this._priv_triggerEventIfNotStopped("textTrackChange",null!==(i=s.getChosenTextTrack())&&void 0!==i?i:null,n),this._priv_triggerEventIfNotStopped("videoTrackChange",null!==(a=s.getChosenVideoTrack())&&void 0!==a?a:null,n),s.addEventListener("availableVideoTracksChange",(function(e){return o.trigger("availableVideoTracksChange",e)})),s.addEventListener("availableAudioTracksChange",(function(e){return o.trigger("availableAudioTracksChange",e)})),s.addEventListener("availableTextTracksChange",(function(e){return o.trigger("availableTextTracksChange",e)})),s.addEventListener("audioTrackChange",(function(e){return o.trigger("audioTrackChange",e)})),s.addEventListener("videoTrackChange",(function(e){return o.trigger("videoTrackChange",e)})),s.addEventListener("textTrackChange",(function(e){return o.trigger("textTrackChange",e)})),s},(0,e.A)(r,null,[{key:"ErrorTypes",get:function(){return p.wU}},{key:"ErrorCodes",get:function(){return p.tG}},{key:"LogLevel",get:function(){return l.A.getLevel()},set:function(e){l.A.setLevel(e)}}])}(b.A);ye._priv_currentlyUsedVideoElements=new WeakSet,ye.version="3.33.3";var Ae=ye;!function(){m.A.mediaSourceInit=n(1737).A,m.A.decrypt=n(6699).Ay,m.A.imageBuffer=n(4166).A,m.A.imageParser=n(1755).A,m.A.transports.smooth=n(5564).A,m.A.transports.dash=n(9502).A,m.A.dashParsers.js=n(95).A,m.A.nativeTextTracksBuffer=n(8385).A,m.A.nativeTextTracksParsers.vtt=n(2537).A,m.A.nativeTextTracksParsers.ttml=n(5084).A,m.A.nativeTextTracksParsers.sami=n(7275).A,m.A.nativeTextTracksParsers.srt=n(5992).A,m.A.htmlTextTracksBuffer=n(7938).A,m.A.htmlTextTracksParsers.sami=n(9561).A,m.A.htmlTextTracksParsers.ttml=n(8342).A,m.A.htmlTextTracksParsers.srt=n(1650).A,m.A.htmlTextTracksParsers.vtt=n(8977).A;var e=n(5963).A,t=n(3568).A;m.A.directfile={initDirectFile:e,mediaElementTrackChoiceManager:t}}(),"boolean"==typeof __RX_PLAYER_DEBUG_MODE__&&__RX_PLAYER_DEBUG_MODE__&&l.A.setLevel("DEBUG");var _e=Ae}(),r=r.default}()})); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.RxPlayer=t():e.RxPlayer=t()}(self,(function(){return function(){var e={9770:function(e,t,n){"use strict";n.d(t,{j:function(){return a},t:function(){return o}});var r=n(6787),i=n(2186).A?void 0:window,a=void 0===i?void 0:(0,r.A)(i.MediaSource)?(0,r.A)(i.MozMediaSource)?(0,r.A)(i.WebKitMediaSource)?i.MSMediaSource:i.WebKitMediaSource:i.MozMediaSource:i.MediaSource,o={HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4}},443:function(e,t,n){"use strict";n.d(t,{A7:function(){return y},Fr:function(){return c},NV:function(){return g},P5:function(){return m},Pb:function(){return v},ZN:function(){return p},dX:function(){return f},gm:function(){return d},h$:function(){return l},hF:function(){return h},lw:function(){return u},op:function(){return s},qe:function(){return A},x1:function(){return _}});var r,i,a,o=n(2186),s=!1,u=!1,l=!1,d=!1,c=!1,f=!1,v=!1,p=!1,h=!1,m=!1,g=!1,y=!1,A=!1,_=!1;o.A||(void 0!==window.MSInputMethodContext&&void 0!==document.documentMode?(u=!0,l=!0):"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&/(Trident|Edge)\//.test(navigator.userAgent)?l=!0:-1!==navigator.userAgent.toLowerCase().indexOf("edg/")?s=!0:-1!==navigator.userAgent.toLowerCase().indexOf("firefox")?d=!0:"string"==typeof navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)?f=!0:(Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>=0||"[object SafariRemoteNotification]"===(null===(i=null===(r=window.safari)||void 0===r?void 0:r.pushNotification)||void 0===i?void 0:i.toString())||/Safari\/(\d+)/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&-1!==(null===(a=navigator.vendor)||void 0===a?void 0:a.indexOf("Apple"))&&!/Chrome\/(\d+)/.test(navigator.userAgent)&&!/Chromium\/(\d+)/.test(navigator.userAgent))&&(c=!0),/SamsungBrowser/.test(navigator.userAgent)&&(v=!0),-1!==navigator.userAgent.indexOf("PlayStation 5")?y=!0:/Tizen/.test(navigator.userAgent)?p=!0:/[Ww]eb[O0]S/.test(navigator.userAgent)?(h=!0,/[Ww]eb[O0]S.TV-2022/.test(navigator.userAgent)||/[Cc]hr[o0]me\/87/.test(navigator.userAgent)||(/[Ww]eb[O0]S.TV-2021/.test(navigator.userAgent)||/[Cc]hr[o0]me\/79/.test(navigator.userAgent))):-1!==navigator.userAgent.indexOf("NETTV")&&-1!==navigator.userAgent.indexOf("Philips")?g=!0:/[Pp]anasonic/.test(navigator.userAgent)?m=!0:-1!==navigator.userAgent.indexOf("Xbox")?A=!0:navigator.userAgent.indexOf("Model/a1-kstb40xx")&&(_=!0))},3116:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(9477),i=n(6787);function a(e){var t=e.textTracks;if(!(0,i.A)(t)){for(var n=0;n=0;o--)if("track"===a[o].nodeName)try{e.removeChild(a[o])}catch(e){r.A.warn("Compat: Could not remove text track child from element.")}}e.src="",e.removeAttribute("src")}},5121:function(e,t,n){"use strict";n.d(t,{Ah:function(){return _},Bi:function(){return P},G1:function(){return w},HQ:function(){return R},ID:function(){return M},R5:function(){return x},Sb:function(){return p},VS:function(){return C},Vb:function(){return y},XC:function(){return E},Z1:function(){return T},bF:function(){return S},c_:function(){return b},g9:function(){return D},jf:function(){return f},ng:function(){return g},o8:function(){return m},qF:function(){return I},rR:function(){return A},yS:function(){return k}});var r=n(5151),i=n(2384),a=n(6787),o=n(8060),s=n(8315),u=n(2186),l=["","webkit","moz","ms"],d=u.A||null==window.devicePixelRatio||0===window.devicePixelRatio?1:window.devicePixelRatio;function c(e,t){return t.filter((function(t){return function(e,t){var n=document.createElement(e.tagName),r="on"+t;return r in n||(n.setAttribute(r,"return;"),"function"==typeof n[r])}(e,t)}))[0]}function f(e,t){var n,r=function(e,t){return e.reduce((function(e,n){return e.concat((void 0===t?l:t).map((function(e){return e+n})))}),[])}(e,t);return function(e,t,a){if(!a.isCancelled()){if(e instanceof HTMLElement){if(void 0===n&&(n=c(e,r)),!(0,i.A)(n))return void 0;e.addEventListener(n,t),a.register((function(){void 0!==n&&e.removeEventListener(n,t)}))}r.forEach((function(n){var r=!1;"function"==typeof e.addEventListener?e.addEventListener(n,t):(r=!0,e["on"+n]=t),a.register((function(){"function"==typeof e.removeEventListener&&e.removeEventListener(n,t),r&&delete e["on"+n]}))}))}}}function v(e){var t,n=document;null!=n.hidden?t="":null!=n.mozHidden?t="moz":null!=n.msHidden?t="ms":null!=n.webkitHidden&&(t="webkit");var r=(0,i.A)(t)?t+"Hidden":"hidden",a=(0,i.A)(t)?t+"visibilitychange":"visibilitychange",o=document[r],u=new s.A(!o,e);return N(document,a,(function(){var e=!document[r];u.setValueIfChanged(e)}),e),u}function p(e){var t,n=v(e),i=new s.A(!0,e);return e.register((function(){clearTimeout(t),t=void 0})),n.onUpdate((function(e){if(clearTimeout(t),t=void 0,!e){var n=r.A.getCurrent().INACTIVITY_DELAY;t=window.setTimeout((function(){i.setValueIfChanged(!1)}),n)}i.setValueIfChanged(!0)}),{clearSignal:e,emitCurrentValue:!0}),i}function h(e,t){var n=t.width,r=t.height/(e.clientHeight/e.clientWidth);return Math.min(n,r)}function m(e,t){var n=e;if(!0===n.webkitSupportsPresentationMode&&"function"==typeof n.webkitSetPresentationMode){var r="picture-in-picture"===n.webkitPresentationMode,i=new s.A({isEnabled:r,pipWindow:null},t);return N(n,"webkitpresentationmodechanged",(function(){var e="picture-in-picture"===n.webkitPresentationMode;i.setValue({isEnabled:e,pipWindow:null})}),t),i}var a=document.pictureInPictureElement===n,o=new s.A({isEnabled:a,pipWindow:null},t);return N(n,"enterpictureinpicture",(function(e){var t;o.setValue({isEnabled:!0,pipWindow:null!==(t=e.pictureInPictureWindow)&&void 0!==t?t:null})}),t),N(n,"leavepictureinpicture",(function(){o.setValue({isEnabled:!1,pipWindow:null})}),t),o}function g(e,t){var n,i=v(t),a=new s.A(!0,t);return t.register((function(){clearTimeout(n),n=void 0})),i.onUpdate(o,{clearSignal:t}),e.onUpdate(o,{clearSignal:t}),o(),a;function o(){if(clearTimeout(n),n=void 0,e.getValue().isEnabled||i.getValue())a.setValueIfChanged(!0);else{var t=r.A.getCurrent().INACTIVITY_DELAY;n=window.setTimeout((function(){a.setValueIfChanged(!1)}),t)}}}function y(e,t,n){var r=new s.A(e.clientWidth*d,n),i=o.A;t.onUpdate(l,{clearSignal:n}),N(window,"resize",l,n);var u=window.setInterval(l,2e4);return l(),n.register((function(){i(),clearInterval(u)})),r;function l(){i();var n=t.getValue();if(n.isEnabled)if((0,a.A)(n.pipWindow))r.setValueIfChanged(1/0);else{var s=n.pipWindow,u=h(e,s),l=function(){r.setValueIfChanged(h(e,s)*d)};s.addEventListener("resize",l),i=function(){s.removeEventListener("resize",l),i=o.A},r.setValueIfChanged(u*d)}else r.setValueIfChanged(e.clientWidth*d)}}f(["loadedmetadata"]),f(["timeupdate"]);var A=f(["fullscreenchange","FullscreenChange"],l.concat("MS")),_=f(["addtrack"]),b=f(["removetrack"]),S=f(["sourceopen","webkitsourceopen"]),E=f(["sourceclose","webkitsourceclose"]),T=f(["sourceended","webkitsourceended"]),w=f(["update"]),k=f(["removesourcebuffer"]),I=f(["keymessage","message"]),x=f(["keyadded","ready"]),R=f(["keyerror","error"]),C=f(["keystatuseschange"]),M=f(["seeking"]),P=f(["seeked"]),D=f(["ended"]);function N(e,t,n,r){e.addEventListener(t,n),r.register((function(){e.removeEventListener(t,n)}))}},2186:function(e,t){"use strict";var n="undefined"==typeof window;t.A=n},7913:function(e,t,n){"use strict";var r=n(443).ZN;t.A=r},7402:function(e,t,n){"use strict";function r(e){return"function"==typeof window.VTTCue&&e instanceof window.VTTCue}n.d(t,{A:function(){return r}})},8068:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(9477),i=n(6787);function a(e,t,n){if(e>=t)return r.A.warn("Compat: Invalid cue times: "+e+" - "+t),null;if((0,i.A)(window.VTTCue)){if((0,i.A)(window.TextTrackCue))throw new Error("VTT cues not supported in your target");return new TextTrackCue(e,t,n)}return new VTTCue(e,t,n)}},2097:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(443);function i(){return r.Pb}},5151:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r={DEFAULT_UNMUTED_VOLUME:.1,DEFAULT_REQUEST_TIMEOUT:3e4,DEFAULT_TEXT_TRACK_MODE:"native",DEFAULT_MANUAL_BITRATE_SWITCHING_MODE:"seamless",DEFAULT_ENABLE_FAST_SWITCHING:!0,DEFAULT_AUDIO_TRACK_SWITCHING_MODE:"seamless",DELTA_POSITION_AFTER_RELOAD:{bitrateSwitch:-.1,trackSwitch:{audio:-.7,video:-.1,other:0}},DEFAULT_CODEC_SWITCHING_BEHAVIOR:"continue",DEFAULT_AUTO_PLAY:!1,DEFAULT_SHOW_NATIVE_SUBTITLE:!0,DEFAULT_STOP_AT_END:!0,DEFAULT_WANTED_BUFFER_AHEAD:30,DEFAULT_MAX_BUFFER_AHEAD:1/0,DEFAULT_MAX_BUFFER_BEHIND:1/0,DEFAULT_MAX_VIDEO_BUFFER_SIZE:1/0,MAXIMUM_MAX_BUFFER_AHEAD:{text:18e3},MINIMUM_MAX_BUFFER_AHEAD:{text:120},MAXIMUM_MAX_BUFFER_BEHIND:{text:18e3},DEFAULT_INITIAL_BITRATES:{audio:0,video:0,other:0},DEFAULT_MIN_BITRATES:{audio:0,video:0,other:0},DEFAULT_MAX_BITRATES:{audio:1/0,video:1/0,other:1/0},INACTIVITY_DELAY:6e4,DEFAULT_THROTTLE_WHEN_HIDDEN:!1,DEFAULT_THROTTLE_VIDEO_BITRATE_WHEN_HIDDEN:!1,DEFAULT_LIMIT_VIDEO_WIDTH:!1,DEFAULT_LIVE_GAP:{DEFAULT:10,LOW_LATENCY:3.5},BUFFER_DISCONTINUITY_THRESHOLD:.2,FORCE_DISCONTINUITY_SEEK_DELAY:5e3,BITRATE_REBUFFERING_RATIO:1.5,BUFFER_GC_GAPS:{CALM:240,BEEFY:30},DEFAULT_MAX_MANIFEST_REQUEST_RETRY:4,DEFAULT_CDN_DOWNGRADE_TIME:60,DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR:4,DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE:1/0,INITIAL_BACKOFF_DELAY_BASE:{REGULAR:200,LOW_LATENCY:50},MAX_BACKOFF_DELAY_BASE:{REGULAR:3e3,LOW_LATENCY:1e3},SAMPLING_INTERVAL_MEDIASOURCE:1e3,SAMPLING_INTERVAL_LOW_LATENCY:250,SAMPLING_INTERVAL_NO_MEDIASOURCE:500,ABR_ENTER_BUFFER_BASED_ALGO:10,ABR_EXIT_BUFFER_BASED_ALGO:5,ABR_MINIMUM_TOTAL_BYTES:15e4,ABR_MINIMUM_CHUNK_SIZE:16e3,ABR_STARVATION_FACTOR:{DEFAULT:.72,LOW_LATENCY:.72},ABR_REGULAR_FACTOR:{DEFAULT:.72,LOW_LATENCY:.72},ABR_STARVATION_GAP:{DEFAULT:5,LOW_LATENCY:5},OUT_OF_STARVATION_GAP:{DEFAULT:7,LOW_LATENCY:7},ABR_STARVATION_DURATION_DELTA:.1,ABR_FAST_EMA:2,ABR_SLOW_EMA:10,RESUME_GAP_AFTER_SEEKING:{DEFAULT:1.5,LOW_LATENCY:.5},RESUME_GAP_AFTER_NOT_ENOUGH_DATA:{DEFAULT:.5,LOW_LATENCY:.5},RESUME_GAP_AFTER_BUFFERING:{DEFAULT:5,LOW_LATENCY:.5},REBUFFERING_GAP:{DEFAULT:.5,LOW_LATENCY:.2},MINIMUM_BUFFER_AMOUNT_BEFORE_FREEZING:2,UNFREEZING_SEEK_DELAY:6e3,FREEZING_STALLED_DELAY:600,UNFREEZING_DELTA_POSITION:.001,SEGMENT_SYNCHRONIZATION_DELAY:1500,MISSING_DATA_TRIGGER_SYNC_DELAY:.1,MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT:.15,MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE:.4,MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE:.3,MINIMUM_SEGMENT_SIZE:.005,APPEND_WINDOW_SECURITIES:{START:.2,END:.1},MAXIMUM_HTML_TEXT_TRACK_UPDATE_INTERVAL:50,TEXT_TRACK_SIZE_CHECKS_INTERVAL:250,BUFFER_PADDING:{audio:1,video:3,other:1},SEGMENT_PRIORITIES_STEPS:[2,4,8,12,18,25],MAX_HIGH_PRIORITY_LEVEL:1,MIN_CANCELABLE_PRIORITY:3,EME_DEFAULT_VIDEO_CODECS:['video/mp4;codecs="avc1.4d401e"','video/mp4;codecs="avc1.42e01e"','video/webm;codecs="vp8"'],EME_DEFAULT_AUDIO_CODECS:['audio/mp4;codecs="mp4a.40.2"',"audio/webm;codecs=opus"],EME_DEFAULT_WIDEVINE_ROBUSTNESSES:["HW_SECURE_ALL","HW_SECURE_DECODE","HW_SECURE_CRYPTO","SW_SECURE_DECODE","SW_SECURE_CRYPTO"],EME_DEFAULT_PLAYREADY_ROBUSTNESSES:["3000","2000"],EME_KEY_SYSTEMS:{clearkey:["webkit-org.w3.clearkey","org.w3.clearkey"],widevine:["com.widevine.alpha"],playready:["com.microsoft.playready.recommendation","com.microsoft.playready","com.chromecast.playready","com.youtube.playready"],fairplay:["com.apple.fps.1_0"]},MAX_CONSECUTIVE_MANIFEST_PARSING_IN_UNSAFE_MODE:10,MIN_MANIFEST_PARSING_TIME_TO_ENTER_UNSAFE_MODE:200,MIN_DASH_S_ELEMENTS_TO_PARSE_UNSAFELY:300,OUT_OF_SYNC_MANIFEST_REFRESH_DELAY:3e3,FAILED_PARTIAL_UPDATE_MANIFEST_REFRESH_DELAY:3e3,DASH_FALLBACK_LIFETIME_WHEN_MINIMUM_UPDATE_PERIOD_EQUAL_0:3,EME_DEFAULT_MAX_SIMULTANEOUS_MEDIA_KEY_SESSIONS:15,EME_MAX_STORED_PERSISTENT_SESSION_INFORMATION:1e3,EME_WAITING_DELAY_LOADED_SESSION_EMPTY_KEYSTATUSES:100,FORCED_ENDED_THRESHOLD:8e-4,ADAPTATION_SWITCH_BUFFER_PADDINGS:{video:{before:5,after:5},audio:{before:2,after:2.5},text:{before:0,after:0},image:{before:0,after:0}},SOURCE_BUFFER_FLUSHING_INTERVAL:500,CONTENT_REPLACEMENT_PADDING:1.2,CACHE_LOAD_DURATION_THRESHOLDS:{video:50,audio:10},STREAM_EVENT_EMITTER_POLL_INTERVAL:250,DEFAULT_MAXIMUM_TIME_ROUNDING_ERROR:.001,BUFFERED_HISTORY_RETENTION_TIME:6e4,BUFFERED_HISTORY_MAXIMUM_ENTRIES:200,MIN_BUFFER_AHEAD:5,UPTO_CURRENT_POSITION_CLEANUP:5},i=n(8935);function a(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function o(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=e.length||(e[t].enabled=!0)}(this._audioTracks.map((function(e){return e.nativeTrack})),e)},t}(a.A);function f(e){for(var t=0;t=0){var i=e instanceof ArrayBuffer?new Uint8Array(e):e,a=JSON.parse((0,R.Es)(i)),o=(0,I.K)(a.keys[0].k),s=(0,I.K)(a.keys[0].kid);n(t._vid.webkitAddKey(t._key,o,s,""))}else n(t._vid.webkitAddKey(t._key,e,null,""))}catch(e){r(e)}}))},n.generateRequest=function(e,t){var n=this;return new Promise((function(e){n._vid.webkitGenerateKeyRequest(n._key,t),e()}))},n.close=function(){var e=this;return new Promise((function(t){e._closeSession(),t()}))},n.load=function(){return Promise.resolve(!1)},n.remove=function(){return Promise.resolve()},t}(_.A),P=function(){function e(e){this._keySystem=e}var t=e.prototype;return t._setVideo=function(e){var t=this;return S((function(){if(!C(e))throw new Error("Video not attached to the MediaKeys");t._videoElement=e}))},t.createSession=function(){if(null==this._videoElement)throw new Error("Video not attached to the MediaKeys");return new M(this._videoElement,this._keySystem)},t.setServerCertificate=function(){throw new Error("Server certificate is not implemented in your browser")},e}();var D=n(9828),N=n(5553);function O(e,t){var n=e;return S((function(){if(void 0===n.webkitSetMediaKeys)throw new Error("No webKitMediaKeys API.");n.webkitSetMediaKeys(t)}))}var L=function(e){function t(t,n,r){var i;return(i=e.call(this)||this)._serverCertificate=r,i._videoElement=t,i._keyType=n,i._unbindSession=x.A,i._closeSession=x.A,i.closed=new Promise((function(e){i._closeSession=e})),i.keyStatuses=new Map,i.expiration=NaN,i}(0,a.A)(t,e);var n=t.prototype;return n.update=function(e){var t=this;return new Promise((function(n,r){if(void 0===t._nativeSession||void 0===t._nativeSession.update||"function"!=typeof t._nativeSession.update)return r("Unavailable WebKit key session.");try{var i;i=e instanceof ArrayBuffer?new Uint8Array(e):e instanceof Uint8Array?e:new Uint8Array(e.buffer),n(t._nativeSession.update(i))}catch(e){r(e)}}))},n.generateRequest=function(e,t){var n=this;return new Promise((function(e){var r,i,a,o=n._videoElement;if(void 0===(null===(r=o.webkitKeys)||void 0===r?void 0:r.createSession))throw new Error("No WebKitMediaKeys API.");if(a=n._keyType,(0,D.A)(a,"com.apple.fps")){if(void 0===n._serverCertificate)throw new Error("A server certificate is needed for creating fairplay session.");i=function(e,t){var n=e instanceof Uint8Array?e:new Uint8Array(e),r=t instanceof Uint8Array?t:new Uint8Array(t);if((0,N.eR)(n,0)+4!==n.length)throw new Error("Unsupported WebKit initData.");var i=(0,R.Yg)(n),a=i.indexOf("skd://"),o=a>-1?i.substring(a+6):i,s=(0,R.kY)(o),u=0,l=new Uint8Array(n.byteLength+4+s.byteLength+4+r.byteLength);return l.set(n),u+=n.length,l.set((0,N.Wz)(s.byteLength),u),u+=4,l.set(s,u),u+=s.byteLength,l.set((0,N.Wz)(r.byteLength),u),u+=4,l.set(r,u),l}(t,n._serverCertificate)}else i=t;var s=o.webkitKeys.createSession("video/mp4",i);if(null==s)throw new Error("Impossible to get the key sessions");n._listenEvent(s),n._nativeSession=s,e()}))},n.close=function(){var e=this;return new Promise((function(t,n){e._unbindSession(),e._closeSession(),void 0!==e._nativeSession?(e._nativeSession.close(),t()):n("No session to close.")}))},n.load=function(){return Promise.resolve(!1)},n.remove=function(){return Promise.resolve()},n._listenEvent=function(e){var t=this;this._unbindSession();var n=function(e){t.trigger(e.type,e)};["keymessage","message","keyadded","ready","keyerror","error"].forEach((function(t){e.addEventListener(t,n),e.addEventListener("webkit"+t,n)})),this._unbindSession=function(){["keymessage","message","keyadded","ready","keyerror","error"].forEach((function(t){e.removeEventListener(t,n),e.removeEventListener("webkit"+t,n)}))}},(0,g.A)(t,[{key:"sessionId",get:function(){var e,t;return null!==(t=null===(e=this._nativeSession)||void 0===e?void 0:e.sessionId)&&void 0!==t?t:""}}])}(_.A),U=function(){function e(e){if(void 0===r)throw new Error("No WebKitMediaKeys API.");this._keyType=e,this._mediaKeys=new r(e)}var t=e.prototype;return t._setVideo=function(e){if(this._videoElement=e,void 0===this._videoElement)throw new Error("Video not attached to the MediaKeys");return O(this._videoElement,this._mediaKeys)},t.createSession=function(){if(void 0===this._videoElement||void 0===this._mediaKeys)throw new Error("Video not attached to the MediaKeys");return new L(this._videoElement,this._keyType,this._serverCertificate)},t.setServerCertificate=function(e){return this._serverCertificate=e,Promise.resolve()},e}();function B(){if(void 0===r)throw new Error("No WebKitMediaKeys API.");return{isTypeSupported:r.isTypeSupported,createCustomMediaKeys:function(e){return new U(e)},setMediaKeys:function(e,t){if(null===t)return O(e,t);if(!(t instanceof U))throw new Error("Custom setMediaKeys is supposed to be called with webkit custom MediaKeys.");return t._setVideo(e)}}}var F=function(e){var t,n,i,a=z;if("standard"!==e&&("auto"!==e||(f.Fr||f.dX)&&void 0!==r)||!p.A&&(0,d.A)(navigator.requestMediaKeySystemAccess)){var o,s;if("webkit"===e&&void 0!==r){var c=B();n=V(),o=c.isTypeSupported,s=c.createCustomMediaKeys,a=c.setMediaKeys,i="webkit"}else if(C(HTMLVideoElement.prototype)){n=(0,v.jf)(["needkey"]);var h={isTypeSupported:function(e){var t=document.querySelector("video");return null==t&&(t=document.createElement("video")),null!=t&&"function"==typeof t.canPlayType&&!!t.canPlayType("video/mp4",e)},createCustomMediaKeys:function(e){return new P(e)},setMediaKeys:function(e,t){if(null===t)return Promise.resolve(void 0);if(!(t instanceof P))throw new Error("Custom setMediaKeys is supposed to be called with old webkit custom MediaKeys.");return t._setVideo(e)}};o=h.isTypeSupported,s=h.createCustomMediaKeys,a=h.setMediaKeys,i="older-webkit"}else if(void 0!==r){n=V();var g=B();o=g.isTypeSupported,s=g.createCustomMediaKeys,a=g.setMediaKeys,i="webkit"}else if(f.lw&&void 0!==m){n=(0,v.jf)(["encrypted","needkey"]);var A={isTypeSupported:function(e,t){if(void 0===m)throw new Error("No MSMediaKeys API.");return void 0!==t?m.isTypeSupported(e,t):m.isTypeSupported(e)},createCustomMediaKeys:function(e){return new w(e)},setMediaKeys:function(e,t){if(null===t)return Promise.resolve(void 0);if(!(t instanceof w))throw new Error("Custom setMediaKeys is supposed to be called with IE11 custom MediaKeys.");return t._setVideo(e)}};o=A.isTypeSupported,s=A.createCustomMediaKeys,a=A.setMediaKeys,i="ms"}else if(void 0!==E){n=(0,v.jf)(["encrypted","needkey"]);var _={isTypeSupported:function(e,t){if(void 0===E)throw new Error("No MozMediaKeys API.");return void 0!==t?E.isTypeSupported(e,t):E.isTypeSupported(e)},createCustomMediaKeys:function(e){if(void 0===E)throw new Error("No MozMediaKeys API.");return new E(e)},setMediaKeys:function(e,t){return S((function(){var n=e;if(void 0===n.mozSetMediaKeys||"function"!=typeof n.mozSetMediaKeys)throw new Error("Can't set video on MozMediaKeys.");return n.mozSetMediaKeys(t)}))}};o=_.isTypeSupported,s=_.createCustomMediaKeys,a=_.setMediaKeys,i="moz"}else{n=(0,v.jf)(["encrypted","needkey"]);var b=window.MediaKeys,T=function(){if(void 0===b)throw new u.A("MEDIA_KEYS_NOT_SUPPORTED","No `MediaKeys` implementation found in the current browser.");if(void 0===b.isTypeSupported){throw new Error("This browser seems to be unable to play encrypted contents currently.Note: Some browsers do not allow decryption in some situations, like when not using HTTPS.")}};o=function(e){return T(),(0,l.h)("function"==typeof b.isTypeSupported),b.isTypeSupported(e)},s=function(e){return T(),new b(e)},i="unknown"}t=function(e,t){if(!o(e))return Promise.reject(new Error("Unsupported key type"));for(var n=0;ne.length)return W.A.warn("Compat: Unrecognized initialization data. Use as is."),[{systemId:void 0,data:e}];var i=e.subarray(n,n+r),a={systemId:(0,G.L)(i,8),data:i};j(t,a)?W.A.warn("Compat: Duplicated PSSH found in initialization data, removing it."):t.push(a),n+=r}return n!==e.length?(W.A.warn("Compat: Unrecognized initialization data. Use as is."),[{systemId:void 0,data:e}]):t}(new Uint8Array(t));return{type:n,values:i,forceSessionRecreation:r}}var Q=n(5151),X=n(1956),$=n(1858),Z=n(1729),J=n(4031),ee=n(7365);function te(e){return ee.A.setState(e,null),K.setMediaKeys(e,null).then((function(){W.A.info("DRM: MediaKeys disabled with success")})).catch((function(e){W.A.error("DRM: Could not disable MediaKeys",e instanceof Error?e:"Unknown Error")}))}function ne(){return(ne=(0,i.A)(s().mark((function e(t,n,r){var i,a,o,u,l,d,c,f;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.emeImplementation,a=n.keySystemOptions,o=n.askedConfiguration,u=n.loadedSessionsStore,l=n.mediaKeySystemAccess,d=n.mediaKeys,c=ee.A.getState(t),f=null!==c&&c.loadedSessionsStore!==u?c.loadedSessionsStore.closeAllSessions():Promise.resolve(),e.next=5,f;case 5:if(!r.isCancelled()){e.next=7;break}throw r.cancellationError;case 7:if(ee.A.setState(t,{emeImplementation:i,keySystemOptions:a,mediaKeySystemAccess:l,mediaKeys:d,loadedSessionsStore:u,askedConfiguration:o}),t.mediaKeys!==d){e.next=10;break}return e.abrupt("return");case 10:W.A.info("DRM: Attaching MediaKeys to the media element"),i.setMediaKeys(t,d).then((function(){W.A.info("DRM: MediaKeys attached with success")})).catch((function(e){W.A.error("DRM: Could not set MediaKeys",e instanceof Error?e:"Unknown Error")}));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function re(e){if(""===e.sessionId)return!1;var t=e.keyStatuses,n=[];return t.forEach((function(e){n.push(e)})),n.length<=0?(W.A.debug("DRM: isSessionUsable: MediaKeySession given has an empty keyStatuses",e.sessionId),!1):(0,J.A)(n,"expired")?(W.A.debug("DRM: isSessionUsable: MediaKeySession given has an expired key",e.sessionId),!1):(0,J.A)(n,"internal-error")?(W.A.debug("DRM: isSessionUsable: MediaKeySession given has a key with an internal-error",e.sessionId),!1):(W.A.debug("DRM: isSessionUsable: MediaKeySession is usable",e.sessionId),!0)}function ie(e,t,n,r){var i=e.loadedSessionsStore,a=e.persistentSessionsStore;return"temporary"===n?ae(i,t):null===a?(W.A.warn("DRM: Cannot create persistent MediaKeySession, PersistentSessionsStore not created."),ae(i,t)):function(e,t,n,r){return oe.apply(this,arguments)}(i,a,t,r)}function ae(e,t){W.A.info("DRM: Creating a new temporary session");var n=e.createSession(t,"temporary");return Promise.resolve({type:"created-session",value:n})}function oe(){return oe=(0,i.A)(s().mark((function e(t,n,r,a){var o,u,l,d,c,f;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f=function(){return f=(0,i.A)(s().mark((function e(){var i,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===a.cancellationError){e.next=2;break}throw a.cancellationError;case 2:return W.A.info("DRM: Removing previous persistent session."),null!==(i=n.get(r))&&n.delete(i.sessionId),e.prev=5,e.next=8,t.closeSession(o.mediaKeySession);case 8:e.next=15;break;case 10:if(e.prev=10,e.t0=e.catch(5),""===o.mediaKeySession.sessionId){e.next=14;break}throw e.t0;case 14:t.removeSessionWithoutClosingIt(o.mediaKeySession);case 15:if(null===a.cancellationError){e.next=17;break}throw a.cancellationError;case 17:return u=t.createSession(r,"persistent-license"),e.abrupt("return",{type:"created-session",value:u});case 19:case"end":return e.stop()}}),e,null,[[5,10]])}))),f.apply(this,arguments)},c=function(){return f.apply(this,arguments)},null===a.cancellationError){e.next=4;break}throw a.cancellationError;case 4:if(W.A.info("DRM: Creating persistent MediaKeySession"),o=t.createSession(r,"persistent-license"),null!==(u=n.getAndReuse(r))){e.next=9;break}return e.abrupt("return",{type:"created-session",value:o});case 9:return e.prev=9,e.next=12,t.loadPersistentSession(o.mediaKeySession,u.sessionId);case 12:if(l=e.sent){e.next=19;break}return W.A.warn("DRM: No data stored for the loaded session"),n.delete(u.sessionId),t.removeSessionWithoutClosingIt(o.mediaKeySession),d=t.createSession(r,"persistent-license"),e.abrupt("return",{type:"created-session",value:d});case 19:if(!l||!re(o.mediaKeySession)){e.next=23;break}return n.add(r,r.keyIds,o.mediaKeySession),W.A.info("DRM: Succeeded to load persistent session."),e.abrupt("return",{type:"loaded-persistent-session",value:o});case 23:return W.A.warn("DRM: Previous persistent session not usable anymore."),e.abrupt("return",c());case 27:return e.prev=27,e.t0=e.catch(9),W.A.warn("DRM: Unable to load persistent session: "+(e.t0 instanceof Error?e.t0.toString():"Unknown Error")),e.abrupt("return",c());case 31:case"end":return e.stop()}}),e,null,[[9,27]])}))),oe.apply(this,arguments)}function se(e,t){return ue.apply(this,arguments)}function ue(){return(ue=(0,i.A)(s().mark((function e(t,n){var r,i,a,o,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n<0||n>=t.getLength())){e.next=2;break}return e.abrupt("return");case 2:for(W.A.info("DRM: LSS cache limit exceeded",n,t.getLength()),r=[],i=t.getAll().slice(),a=i.length-n,o=0;o=o.length)){e.next=2;break}throw new X.A("INCOMPATIBLE_KEYSYSTEMS","No key system compatible with your wanted configuration has been found in the current browser.");case 2:if(null!=K.requestMediaKeySystemAccess){e.next=4;break}throw new Error("requestMediaKeySystemAccess is not implemented in your browser.");case 4:r=o[t],i=r.keyName,a=r.keyType,l=r.keySystemOptions,d=he(i,a,l),W.A.debug("DRM: Request keysystem access "+a+","+(t+1)+" of "+o.length),f=0;case 8:if(!(fe.length)throw W.A.warn("Compat: unrecognized initialization data. Cannot patch it."),new Error("Compat: unrecognized initialization data. Cannot patch it.");var o=e.subarray(i,i+a);if(16===e[i+12]&&119===e[i+13]&&239===e[i+14]&&236===e[i+15]&&192===e[i+16]&&178===e[i+17]&&77===e[i+18]&&2===e[i+19]&&172===e[i+20]&&227===e[i+21]&&60===e[i+22]&&30===e[i+23]&&82===e[i+24]&&226===e[i+25]&&251===e[i+26]&&75===e[i+27]){var s=(0,Ae.fP)(o),u=null===s?void 0:o[s[1]];W.A.info("Compat: CENC PSSH found with version",u),void 0===u?W.A.warn("Compat: could not read version of CENC PSSH"):t===(1===u)?n=(0,N.xW)(n,o):1===u?(W.A.warn("Compat: cenc version 1 encountered, removing every other cenc pssh box."),n=o,t=!0):W.A.warn("Compat: filtering out cenc pssh box with wrong version",u)}else r=(0,N.xW)(r,o);i+=a}if(i!==e.length)throw W.A.warn("Compat: unrecognized initialization data. Cannot patch it."),new Error("Compat: unrecognized initialization data. Cannot patch it.");return(0,N.xW)(r,n)}(n)}catch(e){r=n}var i=null!=t?t:"";return e.generateRequest(i,r).catch((function(t){if(""!==i||!(t instanceof TypeError))throw t;return W.A.warn('Compat: error while calling `generateRequest` with an empty initialization data type. Retrying with a default "cenc" value.',t),e.generateRequest("cenc",r)}))}var be=100;function Se(e,t){return Ee.apply(this,arguments)}function Ee(){return(Ee=(0,i.A)(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return W.A.info("DRM: Load persisted session",n),e.next=3,t.load(n);case 3:if((r=e.sent)&&!(t.keyStatuses.size>0)){e.next=6;break}return e.abrupt("return",r);case 6:return e.abrupt("return",new Promise((function(e){t.addEventListener("keystatuseschange",i);var n=setTimeout(i,be);function i(){clearTimeout(n),t.removeEventListener("keystatuseschange",i),e(r)}})));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Te=n(2432);function we(e){var t=new b.Ay;return Promise.race([e.close().then((function(){t.cancel()})),e.closed.then((function(){t.cancel()})),function(){return n.apply(this,arguments)}()]);function n(){return(n=(0,i.A)(s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,Te.A)(1e3,t.signal);case 3:return e.next=5,r();case 5:e.next=13;break;case 7:if(e.prev=7,e.t0=e.catch(0),!(e.t0 instanceof b.AL)){e.next=11;break}return e.abrupt("return");case 11:n=e.t0 instanceof Error?e.t0.message:"Unknown error made it impossible to close the session",W.A.error("DRM: "+n);case 13:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function r(){return a.apply(this,arguments)}function a(){return(a=(0,i.A)(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.update(new Uint8Array(1));case 3:n.next=13;break;case 5:if(n.prev=5,n.t0=n.catch(0),!t.isUsed()){n.next=9;break}return n.abrupt("return");case 9:if(!(n.t0 instanceof Error&&"The session is already closed."===n.t0.message)){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,(0,Te.A)(1e3,t.signal);case 13:if(!t.isUsed()){n.next=15;break}return n.abrupt("return");case 15:throw new Error("Compat: Couldn't know if session is closed");case 16:case"end":return n.stop()}}),n,null,[[0,5]])})))).apply(this,arguments)}}function ke(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){if(null!==this._keyIds&&xe(t,this._keyIds))return!0;if(void 0!==this._initializationData.keyIds)return xe(t,this._initializationData.keyIds)}return this._checkInitializationDataCompatibility(e)},t._checkInitializationDataCompatibility=function(e){return void 0!==e.keyIds&&e.keyIds.length>0&&void 0!==this._initializationData.keyIds?xe(e.keyIds,this._initializationData.keyIds):this._initializationData.type===e.type&&this._initializationData.values.isCompatibleWith(e.values)},e}();function Pe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return De(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&n._storage[e].mediaKeySession===i&&n._storage.splice(e,1)})).catch((function(e){W.A.warn("DRM-LSS: MediaKeySession.closed rejected: "+e)})),this._storage.push(Object.assign({},a)),W.A.debug("DRM-LSS: MediaKeySession added",a.sessionType,this._storage.length),a},t.reuse=function(e){for(var t=this._storage.length-1;t>=0;t--){var n=this._storage[t];if(n.keySessionRecord.isCompatibleWith(e))return this._storage.splice(t,1),this._storage.push(n),W.A.debug("DRM-LSS: Reusing session:",n.mediaKeySession.sessionId,n.sessionType),Object.assign({},n)}return null},t.getEntryForSession=function(e){for(var t=this._storage.length-1;t>=0;t--){var n=this._storage[t];if(n.mediaKeySession===e)return Object.assign({},n)}return null},t.generateLicenseRequest=function(){var e=(0,i.A)(s().mark((function e(t,n,r){var i,a,o,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=Pe(this._storage);case 1:if((o=a()).done){e.next=8;break}if((u=o.value).mediaKeySession!==t){e.next=6;break}return i=u,e.abrupt("break",8);case 6:e.next=1;break;case 8:if(void 0!==i){e.next=11;break}return W.A.error("DRM-LSS: generateRequest error. No MediaKeySession found with the given initData and initDataType"),e.abrupt("return",_e(t,n,r));case 11:if(i.isGeneratingRequest=!0,"none"===i.closingStatus.type){e.next=14;break}throw new Error("The `MediaKeySession` is being closed.");case 14:return e.prev=14,e.next=17,_e(t,n,r);case 17:e.next=26;break;case 19:if(e.prev=19,e.t0=e.catch(14),void 0!==i){e.next=23;break}throw e.t0;case 23:throw i.isGeneratingRequest=!1,"awaiting"===i.closingStatus.type&&i.closingStatus.start(),e.t0;case 26:if(void 0!==i){e.next=28;break}return e.abrupt("return",void 0);case 28:i.isGeneratingRequest=!1,"awaiting"===i.closingStatus.type&&i.closingStatus.start();case 30:case"end":return e.stop()}}),e,this,[[14,19]])})));return function(t,n,r){return e.apply(this,arguments)}}(),t.loadPersistentSession=function(){var e=(0,i.A)(s().mark((function e(t,n){var r,i,a,o,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=Pe(this._storage);case 1:if((a=i()).done){e.next=8;break}if((o=a.value).mediaKeySession!==t){e.next=6;break}return r=o,e.abrupt("break",8);case 6:e.next=1;break;case 8:if(void 0!==r){e.next=11;break}return W.A.error("DRM-LSS: loadPersistentSession error. No MediaKeySession found with the given initData and initDataType"),e.abrupt("return",Se(t,n));case 11:if(r.isLoadingPersistentSession=!0,"none"===r.closingStatus.type){e.next=14;break}throw new Error("The `MediaKeySession` is being closed.");case 14:return e.prev=14,e.next=17,Se(t,n);case 17:u=e.sent,e.next=27;break;case 20:if(e.prev=20,e.t0=e.catch(14),void 0!==r){e.next=24;break}throw e.t0;case 24:throw r.isLoadingPersistentSession=!1,"awaiting"===r.closingStatus.type&&r.closingStatus.start(),e.t0;case 27:if(void 0!==r){e.next=29;break}return e.abrupt("return",u);case 29:return r.isLoadingPersistentSession=!1,"awaiting"===r.closingStatus.type&&r.closingStatus.start(),e.abrupt("return",u);case 32:case"end":return e.stop()}}),e,this,[[14,20]])})));return function(t,n){return e.apply(this,arguments)}}(),t.closeSession=function(){var e=(0,i.A)(s().mark((function e(t){var n,r,i,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Pe(this._storage);case 1:if((i=r()).done){e.next=8;break}if((a=i.value).mediaKeySession!==t){e.next=6;break}return n=a,e.abrupt("break",8);case 6:e.next=1;break;case 8:if(void 0!==n){e.next=11;break}return W.A.warn("DRM-LSS: No MediaKeySession found with the given initData and initDataType"),e.abrupt("return",Promise.resolve(!1));case 11:return e.abrupt("return",this._closeEntry(n));case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.getLength=function(){return this._storage.length},t.getAll=function(){return this._storage},t.closeAllSessions=function(){var e=(0,i.A)(s().mark((function e(){var t,n,r=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this._storage,W.A.debug("DRM-LSS: Closing all current MediaKeySessions",t.length),this._storage=[],n=t.map((function(e){return r._closeEntry(e)})),e.next=6,Promise.all(n);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),t.removeSessionWithoutClosingIt=function(e){(0,l.h)(""===e.sessionId,"Initialized `MediaKeySession`s should always be properly closed");for(var t=this._storage.length-1;t>=0;t--){if(this._storage[t].mediaKeySession===e)return W.A.debug("DRM-LSS: Removing session without closing it",e.sessionId),this._storage.splice(t,1),!0}return!1},t.getIndex=function(e){for(var t=0;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0){var o=void 0===t?3:4,s=this._entries[a];if((null!==(r=s.version)&&void 0!==r?r:-1)>=o&&i===s.sessionId)return;W.A.info("DRM-PSS: Updating session info.",i),this._entries.splice(a,1)}else W.A.info("DRM-PSS: Add new session",i);var u=e.values.getFormattedValues().map((function(e){var t=e.systemId,n=e.data;return{systemId:t,hash:e.hash,data:new Fe(n)}}));void 0===t?this._entries.push({version:3,sessionId:i,values:u,initDataType:e.type}):this._entries.push({version:4,sessionId:i,keyIds:t.map((function(e){return new Fe(e)})),values:u,initDataType:e.type}),this._save()}else W.A.warn("DRM-PSS: Invalid Persisten Session given.")},t.delete=function(e){for(var t=-1,n=0;n0&&(r=new X.A("KEY_STATUS_CHANGE_ERROR","One or several problematic key statuses have been encountered",{keyStatuses:d})),{warning:r,blacklistedKeyIds:u,whitelistedKeyIds:l}}var st=v.HQ,ut=v.qF,lt=v.VS;function dt(e,t,n,r,a){W.A.info("DRM: Binding session events",e.sessionId);var o=t.getLicenseConfig,u=void 0===o?{}:o,l=new b.Ay;return l.linkToSignal(a),(0,d.A)(e.closed)||e.closed.then((function(){return l.cancel()})).catch((function(e){a.isCancelled()||(l.cancel(),r.onError(e))})),st(e,(function(e){l.cancel(),r.onError(new X.A("KEY_ERROR",e.type))}),l.signal),lt(e,(function(e){(function(e){return c.apply(this,arguments)})(e).catch((function(e){a.isCancelled()||l.isUsed()&&e instanceof b.AK||(l.cancel(),r.onError(e))}))}),l.signal),ut(e,(function(n){var a,o=n,c=new Uint8Array(o.message),f=(0,Be.A)(o.messageType)?o.messageType:"license-request";W.A.info("DRM: Received message event, type "+f,e.sessionId),function(e,t,n){var r=t.baseDelay,a=t.maxDelay,o=t.totalRetry,u=t.shouldRetry,l=t.onRetry,c=0;return f();function f(){return v.apply(this,arguments)}function v(){return(v=(0,i.A)(s().mark((function t(){var i,v,p;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===n.cancellationError){t.next=2;break}throw n.cancellationError;case 2:return t.prev=2,t.next=5,e();case 5:return i=t.sent,t.abrupt("return",i);case 9:if(t.prev=9,t.t0=t.catch(2),null===n.cancellationError){t.next=13;break}throw n.cancellationError;case 13:if(!(!(0,d.A)(u)&&!u(t.t0)||c++>=o)){t.next=15;break}throw t.t0;case 15:return"function"==typeof l&&l(t.t0,c),v=nt(r,c,a),t.next=19,(0,tt.A)(v);case 19:return p=f(),t.abrupt("return",p);case 21:case"end":return t.stop()}}),t,null,[[2,9]])})))).apply(this,arguments)}}((function(){return function(e,n){var r;return new Promise((function(i,a){try{W.A.debug("DRM: Calling `getLicense`",n);var o=t.getLicense(e,n),s=(0,d.A)(u.timeout)?1e4:u.timeout;s>=0&&(r=setTimeout((function(){a(new ht('"getLicense" timeout exceeded ('+s+" ms)"))}),s)),Promise.resolve(o).then(l,c)}catch(e){c(e)}function l(e){void 0!==r&&clearTimeout(r),i(e)}function c(e){void 0!==r&&clearTimeout(r),a(e)}}))}(c,f)}),{totalRetry:null!=(a=u.retry)?a:2,baseDelay:200,maxDelay:3e3,shouldRetry:function(e){return e instanceof ht||(0,d.A)(e)||!0!==e.noRetry},onRetry:function(e){return r.onWarning(ct(e))}},l.signal).then((function(t){if(l.isUsed())return Promise.resolve();if((0,d.A)(t))W.A.info("DRM: No license given, skipping session.update");else try{return ft(e,t)}catch(e){l.cancel(),r.onError(e)}})).catch((function(e){if(!l.isUsed()){l.cancel();var t=ct(e);if(!(0,d.A)(e))if(!0===e.fallbackOnLastTry)return W.A.warn("DRM: Last `getLicense` attempt failed. Blacklisting the current session."),void r.onError(new pt(t));r.onError(t)}}))}),l.signal),void f();function c(){return c=(0,i.A)(s().mark((function n(r){var o,u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=function(){return(u=(0,i.A)(s().mark((function n(){var i,o;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isUsed()){n.next=2;break}return n.abrupt("return");case 2:if("function"!=typeof t.onKeyStatusesChange){n.next=24;break}return n.prev=3,n.next=6,t.onKeyStatusesChange(r,e);case 6:if(i=n.sent,!l.isUsed()){n.next=9;break}return n.abrupt("return");case 9:n.next=18;break;case 11:if(n.prev=11,n.t0=n.catch(3),!a.isCancelled()){n.next=15;break}return n.abrupt("return");case 15:throw o=new X.A("KEY_STATUS_CHANGE_ERROR","Unknown `onKeyStatusesChange` error"),!(0,d.A)(n.t0)&&(0,Be.A)(n.t0.message)&&(o.message=n.t0.message),o;case 18:if(!(0,d.A)(i)){n.next=22;break}W.A.info("DRM: No license given, skipping session.update"),n.next=24;break;case 22:return n.next=24,ft(e,i);case 24:case"end":return n.stop()}}),n,null,[[3,11]])})))).apply(this,arguments)},o=function(){return u.apply(this,arguments)},W.A.info("DRM: keystatuseschange event received",e.sessionId),n.next=5,Promise.all([o(),Promise.resolve(f())]);case 5:case"end":return n.stop()}}),n)}))),c.apply(this,arguments)}function f(){if(!l.isUsed()&&0!==e.keyStatuses.size){var i=ot(e,t,n),a=i.warning,o=i.blacklistedKeyIds,s=i.whitelistedKeyIds;void 0!==a&&(r.onWarning(a),l.isUsed())||r.onKeyUpdate({whitelistedKeyIds:s,blacklistedKeyIds:o})}}}function ct(e){if(e instanceof ht)return new X.A("KEY_LOAD_TIMEOUT","The license server took too much time to respond.");var t=new X.A("KEY_LOAD_ERROR","An error occured when calling `getLicense`.");return!(0,d.A)(e)&&(0,Be.A)(e.message)&&(t.message=e.message),t}function ft(e,t){return vt.apply(this,arguments)}function vt(){return(vt=(0,i.A)(s().mark((function e(t,n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return W.A.info("DRM: Updating MediaKeySession with message"),e.prev=1,e.next=4,t.update(n);case 4:e.next=10;break;case 6:throw e.prev=6,e.t0=e.catch(1),r=e.t0 instanceof Error?e.t0.toString():"`session.update` failed",new X.A("KEY_UPDATE_ERROR",r);case 10:W.A.info("DRM: MediaKeySession update succeeded.");case 11:case"end":return e.stop()}}),e,null,[[1,6]])})))).apply(this,arguments)}var pt=function(e){function t(n){var r;return r=e.call(this,n.message)||this,Object.setPrototypeOf(r,t.prototype),r.sessionError=n,r}return(0,a.A)(t,e),t}((0,Je.A)(Error)),ht=function(e){function t(t){var n;return n=e.call(this,t)||this,Object.setPrototypeOf(n,pt.prototype),n.message=t,n}return(0,a.A)(t,e),t}((0,Je.A)(Error)),mt=n(4637);function gt(e,t){return yt.apply(this,arguments)}function yt(){return(yt=(0,i.A)(s().mark((function e(t,n){var r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.setServerCertificate(n);case 3:return r=e.sent,e.abrupt("return",r);case 7:throw e.prev=7,e.t0=e.catch(0),W.A.warn("DRM: mediaKeys.setServerCertificate returned an error",e.t0 instanceof Error?e.t0:""),i=e.t0 instanceof Error?e.t0.toString():"`setServerCertificate` error",new X.A("LICENSE_SERVER_CERTIFICATE_ERROR",i);case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function At(e,t){return _t.apply(this,arguments)}function _t(){return(_t=(0,i.A)(s().mark((function e(t,n){var r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!0!==qe.hasOne(t)){e.next=3;break}return W.A.info("DRM: The MediaKeys already has a server certificate, skipping..."),e.abrupt("return",{type:"already-has-one"});case 3:if("function"==typeof t.setServerCertificate){e.next=6;break}return W.A.warn("DRM: Could not set the server certificate. mediaKeys.setServerCertificate is not a function"),e.abrupt("return",{type:"method-not-implemented"});case 6:return W.A.info("DRM: Setting server certificate on the MediaKeys"),qe.prepare(t),e.prev=8,e.next=11,gt(t,n);case 11:return r=e.sent,qe.set(t,n),e.abrupt("return",{type:"success",value:r});case 16:return e.prev=16,e.t0=e.catch(8),i=(0,mt.A)(e.t0)?e.t0:new X.A("LICENSE_SERVER_CERTIFICATE_ERROR","Unknown error when setting the server certificate."),e.abrupt("return",{type:"error",value:i});case 20:case"end":return e.stop()}}),e,null,[[8,16]])})))).apply(this,arguments)}var bt=n(2137);function St(e,t){if(!(isNaN(t)||t<0||t>=e.getLength())){var n=e.getLength(),r=n-t;W.A.info("DRM: Too many stored persistent sessions, removing some.",n,r),e.deleteOldSessions(r)}}var Et=function(){function e(e){this._innerValues=e,this._lazyFormattedValues=null}var t=e.prototype;return t.constructRequestData=function(){return N.xW.apply(void 0,this._innerValues.map((function(e){return e.data})))},t.isCompatibleWith=function(t){var n=t instanceof e?t.getFormattedValues():t;return Ve(this.getFormattedValues(),n)},t.getFormattedValues=function(){return null===this._lazyFormattedValues&&(this._lazyFormattedValues=this._innerValues.slice().sort((function(e,t){return e.systemId===t.systemId?0:void 0===e.systemId?1:void 0===t.systemId||e.systemId=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&B._currentSessions.splice(r),void 0!==t.content&&xt(t.content.manifest,[],[],C.record.getAssociatedKeyIds()),null===(n=i.persistentSessionsStore)||void 0===n||n.delete(P.sessionId),i.loadedSessionsStore.closeSession(P).catch((function(e){var t=e instanceof Error?e:"unknown error";W.A.warn("DRM: failed to close expired session",t)})).then((function(){return B._unlockInitDataQueue()})).catch((function(e){return B._onFatalError(e)})),void(B._isStopped()||B.trigger("warning",e.reason))}if(e instanceof pt){if(C.blacklistedSessionError=e,void 0!==t.content){var a=t.content.manifest;W.A.info("DRM: blacklisting Representations based on protection data."),Rt(a,t)}B._unlockInitDataQueue()}else B._onFatalError(e)}},this._canceller.signal),void 0!==a.singleLicensePer&&"init-data"!==a.singleLicensePer||this._unlockInitDataQueue(),"created-session"!==x.type){e.next=72;break}return O=t.values.constructRequestData(),e.prev=59,e.next=62,i.loadedSessionsStore.generateLicenseRequest(P,t.type,O);case 62:e.next=72;break;case 64:if(e.prev=64,e.t1=e.catch(59),null!==(L=i.loadedSessionsStore.getEntryForSession(P))&&"none"===L.closingStatus.type){e.next=71;break}return(U=this._currentSessions.indexOf(C))>=0&&this._currentSessions.splice(U,1),e.abrupt("return",Promise.resolve());case 71:throw new X.A("KEY_GENERATE_REQUEST_ERROR",e.t1 instanceof Error?e.t1.toString():"Unknown error");case 72:return e.abrupt("return",Promise.resolve());case 73:case"end":return e.stop()}}),e,this,[[59,64]])})));return function(t,n){return e.apply(this,arguments)}}(),n._tryToUseAlreadyCreatedSession=function(e,t){var n=t.stores,r=t.options,i=(0,Z.A)(this._currentSessions,(function(t){return t.record.isCompatibleWith(e)}));if(void 0===i)return!1;if(!0===e.forceSessionRecreation)return this.removeSessionForInitData(e,t),!1;var a=i.blacklistedSessionError;if(!(0,d.A)(a))return void 0===e.type||void 0===e.content?(W.A.error("DRM: This initialization data has already been blacklisted but the current content is not known."),!0):(W.A.info("DRM: This initialization data has already been blacklisted. Blacklisting the related content."),Rt(e.content.manifest,e),!0);if(void 0!==e.keyIds){var o;if(void 0===r.singleLicensePer||"init-data"===r.singleLicensePer){var s=i.keyStatuses.blacklisted;o=function(e,t){for(var n,r,i=function(){var e=r.value;if(t.some((function(t){return(0,H.A)(t,e)})))return{v:!0}},a=ke(e);!(r=a()).done;)if(n=i())return n.v;return!1}(e.keyIds,s)}else{var u=i.keyStatuses.whitelisted;o=!xe(e.keyIds,u)}if(o)return void 0===e.content?(W.A.error("DRM: Cannot forbid key id, the content is unknown."),!0):(W.A.info("DRM: Current initialization data is linked to blacklisted keys. Marking Representations as not decipherable"),xt(e.content.manifest,[],e.keyIds,[]),!0)}if(null!==n.loadedSessionsStore.reuse(e))return W.A.debug("DRM: Init data already processed. Skipping it."),!0;var l=this._currentSessions.indexOf(i);return-1===l?W.A.error("DRM: Unable to remove processed init data: not found."):(W.A.debug("DRM: A session from a processed init data is not available anymore. Re-processing it."),this._currentSessions.splice(l,1)),!1},n.removeSessionForInitData=function(e,t){var n=t.stores,r=n.loadedSessionsStore.reuse(e);null!==r&&n.loadedSessionsStore.closeSession(r.mediaKeySession).catch((function(){return W.A.error("DRM: Cannot close the session from the loaded session store")}));var i=(0,Z.A)(this._currentSessions,(function(t){return t.record.isCompatibleWith(e)}));if(void 0!==i){var a=this._currentSessions.indexOf(i);-1!==a&&(W.A.debug("DRM: A session from a processed init is removed due to forceSessionRecreation policy."),this._currentSessions.splice(a,1))}},n._onFatalError=function(e){if(!this._canceller.isUsed()){var t=e instanceof Error?e:new $.A("NONE","Unknown decryption error");this.error=t,this._initDataQueue.length=0,this._stateData={state:bt.R.Error,isMediaKeysAttached:void 0,isInitDataQueueLocked:void 0,data:null},this._canceller.cancel(),this.trigger("error",t),this._stateData.state===bt.R.Error&&this.trigger("stateChange",this._stateData.state)}},n._isStopped=function(){return this._stateData.state===bt.R.Disposed||this._stateData.state===bt.R.Error},n._processCurrentInitDataQueue=function(){for(;!1===this._stateData.isInitDataQueueLocked;){var e=this._initDataQueue.shift();if(void 0===e)return;this.onInitializationData(e)}},n._lockInitDataQueue=function(){!1===this._stateData.isInitDataQueueLocked&&(this._stateData.isInitDataQueueLocked=!0)},n._unlockInitDataQueue=function(){2===this._stateData.isMediaKeysAttached?(this._stateData.isInitDataQueueLocked=!1,this._processCurrentInitDataQueue()):W.A.error("DRM: Trying to unlock in the wrong state")},t}(_.A);function It(e){var t=e.getConfiguration().sessionTypes;return void 0!==t&&(0,J.A)(t,"persistent-license")}function xt(e,t,n,r){e.updateRepresentationsDeciperability((function(e){if(void 0===e.contentProtections)return e.decipherable;var i=e.contentProtections.keyIds;if(void 0!==i)for(var a,o=Tt(i);!(a=o()).done;){for(var s,u=a.value,l=Tt(n);!(s=l()).done;){var d=s.value;if((0,H.A)(d,u.keyId))return!1}for(var c,f=Tt(t);!(c=f()).done;){var v=c.value;if((0,H.A)(v,u.keyId))return!0}for(var p,h=Tt(r);!(p=h()).done;){var m=p.value;if((0,H.A)(m,u.keyId))return}}return e.decipherable}))}function Rt(e,t){e.updateRepresentationsDeciperability((function(e){var n,r;if(!1===e.decipherable)return!1;for(var i,a,o=function(){var e=a.value;if((void 0===t.type||e.type===t.type)&&t.values.getFormattedValues().every((function(t){return e.values.some((function(e){return(void 0===t.systemId||e.systemId===t.systemId)&&(0,H.A)(e.data,t.data)}))})))return{v:!1}},s=Tt(null!==(r=null===(n=e.contentProtections)||void 0===n?void 0:n.initData)&&void 0!==r?r:[]);!(a=s()).done;)if(i=o())return i.v;return e.decipherable}))}function Ct(e,t,n,r,i,a){for(var o,s,u=[].concat(i,a),l=function(){var e=s.value;u.some((function(t){return(0,H.A)(t,e)}))||(W.A.hasLevel("DEBUG")&&W.A.debug("DRM: KeySessionRecord's key missing in the license, blacklisting it",(0,R.My)(e)),u.push(e))},d=Tt(t.getAssociatedKeyIds());!(s=d()).done;)l();if(void 0!==n&&"init-data"!==n){var c=e.keyIds,f=e.content;if(void 0!==c){var v=c.filter((function(e){return!u.some((function(t){return(0,H.A)(t,e)}))}));v.length>0&&(W.A.hasLevel("DEBUG")&&W.A.debug("DRM: init data keys missing in the license, blacklisting them",v.map((function(e){return(0,R.My)(e)})).join(", ")),u.push.apply(u,v))}if(r&&void 0!==f)if("content"===n){for(var p,h=new Set,m=Tt(f.manifest.periods);!(p=m()).done;){Pt(h,p.value)}Mt(h,u)}else if("periods"===n)for(var g,y=Tt(f.manifest.periods);!(g=y()).done;){var A=g.value,_=new Set;if(Pt(_,A),(null===(o=e.content)||void 0===o?void 0:o.period.id)===A.id)Mt(_,u);else for(var b=Array.from(_),S=function(){var e=T[E];if(u.some((function(t){return(0,H.A)(t,e)})))return Mt(_,u),1},E=0,T=b;E0){var r=e.seekable.end(e.seekable.length-1);if(isFinite(r))return Math.max(0,r+t.fromLastPosition)}return void a.A.warn("Init: startAt.fromLastPosition set but no known duration, it may be too soon to seek")}if("number"==typeof t.fromLivePosition){var i=e.seekable.length>0?e.seekable.end(0):n;return(0,s.A)(i)?(a.A.warn("Init: startAt.fromLivePosition set but no known live position, beginning at 0."),0):Math.max(0,i+t.fromLivePosition)}if(null!=t.percentage){if((0,s.A)(n)||!isFinite(n))return a.A.warn("Init: startAt.percentage set but no known duration, beginning at 0."),0;var o=t.percentage;return o>=100?n:o<=0?0:n*(+o/100)}return 0}(e,u);return a.A.debug("Init: Initial time calculated:",t),t}),o,(function(e){return n.trigger("warning",e)}),!0,r).autoPlayResult.then((function(){return(0,c.A)(t,e,!0,r).onUpdate((function(e,t){e&&(t(),n.trigger("loaded",{segmentBuffersStore:null}))}),{emitCurrentValue:!0,clearSignal:r})})).catch((function(e){r.isCancelled()||n._onFatalError(e)}))},t}(d.Y)},1737:function(e,t,n){"use strict";n.d(t,{A:function(){return nn}});var r=n(467),i=n(7387),a=n(4756),o=n.n(a);var s=n(443),u=s.A7,l=n(5151),d=n(5575),c=n(9477),f=n(7994),v=n(4339),p=n(8935),h=n(8315),m=n(2507),g=n(8060),y=n(3650),A=n(3786);function _(e){var t=e.map((function(t){return Math.log(t/e[0])})),n=t.map((function(e){return e-t[0]+1})),r=(n[n.length-1]-1)/(2*e.length+10),i=1/r;return e.map((function(e,t){return a(t)}));function a(t){if(0===t)return 0;var o=Math.min(Math.max(1,t),e.length-1);return e[o]===e[o-1]?a(t-1):i*(r+(e[o]*n[o-1]-e[o-1]*n[o])/(e[o]-e[o-1]))+4}}var b=function(){function e(e){this._levelsMap=_(e).map((function(e){return e+4})),this._bitrates=e,this._lastUnsuitableQualityTimestamp=void 0,this._blockRaiseDelay=6e3,c.A.debug("ABR: Steps for buffer based chooser.",this._levelsMap.map((function(t,n){return"bufferLevel: "+t+", bitrate: "+e[n]})).join(" ,"))}var t=e.prototype;return t.onAddedSegment=function(e){var t=this._levelsMap,n=this._bitrates,r=e.bufferGap,i=e.currentBitrate,a=e.currentScore,o=e.speed;if(null!=i){for(var s,u=-1,l=0;li)break}if(u<0||n.length!==t.length)return c.A.error("ABR: Current Bitrate not found in the calculated levels"),void(this._currentEstimate=n[0]);void 0!==a&&(s=0===o?a.score:a.score/o);var f=isFinite(r)?r:0,v=performance.now();if(f=0;m--)if(f>=t[m])return void(this._currentEstimate=n[m]);this._currentEstimate=n[0]}else if(void 0!==this._lastUnsuitableQualityTimestamp&&v-this._lastUnsuitableQualityTimestampg)return e}();if(void 0!==y)if(r>=t[y])return c.A.debug("ABR: Raising quality in BufferBasedChooser",n[y]),void(this._currentEstimate=n[y]);this._currentEstimate=i}}else this._currentEstimate=n[0]},t.getLastEstimate=function(){return this._currentEstimate},e}(),S=n(1729),E=function(){function e(e){this._alpha=Math.exp(Math.log(.5)/e),this._lastEstimate=0,this._totalWeight=0}var t=e.prototype;return t.addSample=function(e,t){var n=Math.pow(this._alpha,e),r=t*(1-n)+n*this._lastEstimate;isNaN(r)||(this._lastEstimate=r,this._totalWeight+=e)},t.getEstimate=function(){var e=1-Math.pow(this._alpha,this._totalWeight);return this._lastEstimate/e},e}();function T(e){if(!(e.progress.length<5)){for(var t=new E(2),n=e.progress,r=1;r=s.outOfStarvationGap&&(c.A.info("ABR: exit starvation mode."),this._inStarvationMode=!1):this._inStarvationMode&&(c.A.info("ABR: exit starvation mode."),this._inStarvationMode=!1),this._inStarvationMode&&(o=function(e,t,n,r,i){if(!r){var a=t.bufferGap,o=t.speed,s=t.position,u=isFinite(a)?a:0,l=function(e,t){for(var n=-1,r=0;r-1.2){n=r;break}if(a>t&&t-i.time>-1.2){n=r;break}}}if(n<0)return[];for(var o=e[n],s=o.content.segment.time,u=[o],l=n+1;l0?d.progress[d.progress.length-1]:void 0,p=T(d);if(void 0!==v&&void 0!==p){var h=w(v,p);if((c-v.timestamp)/1e3<=h&&h-u/o>2500)return p}if(d.content.segment.complete){var m=d.content.segment.duration,g=(c-d.requestTimestamp)/1e3;if(null!=n&&!(g<=(1.5*m+2)/o)){var y=m/g,A=n.bitrate*Math.min(.7,y);return void 0===i||A1&&(a/=e.speed),{bandwidthEstimate:o,bitrateChosen:a}},t.isUrgent=function(e,t,n,r){return null===t||!(e>=t.bitrate)&&function(e,t,n){if(n)return!0;var r=isFinite(e.bufferGap)?e.bufferGap:0,i=e.position.last+r,a=(0,S.A)(t,(function(e){var t=e.content;return t.segment.duration>0&&t.segment.time+t.segment.duration>i}));if(void 0===a)return!0;var o=performance.now(),s=a.progress.length>0?a.progress[a.progress.length-1]:void 0,u=T(a);if(void 0===s||void 0===u)return!0;var l=w(s,u);return(o-s.timestamp)/1e3>1.2*l||l-r/e.speed>-1.5}(r,n,this._lowLatencyMode)},e}();function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns.bitrate)return 2===this._lastAbrEstimate.algorithmType&&(null!==this._lastAbrEstimate.representation&&(this._lastMaintanableBitrate=this._lastAbrEstimate.representation.bitrate),this._consecutiveWrongGuesses=0),null;var u=this._scoreCalculator.getEstimate(n);if(2!==this._lastAbrEstimate.algorithmType){if(void 0===u)return null;if(this._canGuessHigher(a,o,u)){var l=C(e,n);if(null!==l)return l}return null}if(this._isLastGuessValidated(s,r,u)&&(c.A.debug("ABR: Guessed Representation validated",s.bitrate),this._lastMaintanableBitrate=s.bitrate,this._consecutiveWrongGuesses=0),n.id!==s.id)return s;if(this._shouldStopGuess(n,u,a,i))return this._consecutiveWrongGuesses++,this._blockGuessesUntil=performance.now()+Math.min(15e3*this._consecutiveWrongGuesses,12e4),function(e,t){var n=(0,A.A)(e,(function(e){return e.id===t.id}));if(n<0)return c.A.error("ABR: Current Representation not found."),null;for(;--n>=0;)if(e[n].bitrate=2.5&&performance.now()>this._blockGuessesUntil&&1===i&&r/t>1.01},t._shouldStopGuess=function(e,t,n,r){if(void 0!==t&&t.score<1.01)return!0;if((void 0===t||t.score<1.2)&&n<.6)return!0;for(var i,a=r.filter((function(t){return t.content.representation.id===e.id})),o=performance.now(),s=I(a);!(i=s()).done;){var u=i.value,l=o-u.requestTimestamp;if(u.content.segment.isInit){if(l>1e3)return!0}else{if(l>1e3*u.content.segment.duration+200)return!0;var d=T(u);if(void 0!==d&&d<.8*e.bitrate)return!0}}return!1},t._isLastGuessValidated=function(e,t,n){return void 0!==n&&1===n.confidenceLevel&&n.score>1.5||t>=e.bitrate&&(null===this._lastMaintanableBitrate||this._lastMaintanableBitratet.bitrate)return e[r];return null}var M=function(){function e(){var e=l.A.getCurrent(),t=e.ABR_FAST_EMA,n=e.ABR_SLOW_EMA;this._fastEWMA=new E(t),this._slowEWMA=new E(n),this._bytesSampled=0}var t=e.prototype;return t.addSample=function(e,t){if(!(t1&&this._lastRepresentationWithGoodScore!==e&&(c.A.debug("ABR: New last stable representation",e.bitrate),this._lastRepresentationWithGoodScore=e)},t.getEstimate=function(e){if(null!==this._currentRepresentationData&&this._currentRepresentationData.representation.id===e.id){var t=this._currentRepresentationData,n=t.ewma,r=t.loadedSegments,i=t.loadedDuration;return{score:n.getEstimate(),confidenceLevel:r>=5&&i>=10?1:0}}},t.getLastStableRepresentation=function(){return this._lastRepresentationWithGoodScore},e}();function L(e,t,n,r){var i=t<=n?n:t>=r?r:t,a=(0,A.A)(e,(function(e){return e.bitrate>i}));return-1===a?e[e.length-1]:0===a?e[0]:e[a-1]}var U=new h.A(-1);U.finish();var B=new h.A(0);B.finish();var F=new h.A(1/0);F.finish();var V=new h.A(void 0);V.finish();var z=new h.A(1/0);z.finish();var K=function(e){var t={},n=e.manualBitrates,r=e.minAutoBitrates,i=e.maxAutoBitrates,a=e.initialBitrates,o=e.throttlers,s=e.lowLatencyMode;return function(e,u,d,f,v){var p,_,E,T,w,I,x,C=e.adaptation.type,D=function(e){var n=t[e];if(null==n){c.A.debug("ABR: Creating new BandwidthEstimator for ",e);var r=new M;return t[e]=r,r}return n}(C),K=null!==(p=n[C])&&void 0!==p?p:U,W=null!==(_=r[C])&&void 0!==_?_:B,G=null!==(E=i[C])&&void 0!==E?E:F,H=null!==(T=a[C])&&void 0!==T?T:0;return function(e,t){var n=e.bandwidthEstimator,r=e.context,i=e.currentRepresentation,a=e.filters,o=e.initialBitrate,s=e.lowLatencyMode,u=e.manualBitrate,d=e.maxAutoBitrate,f=e.minAutoBitrate,v=e.playbackObserver,p=e.representations,_=new O,E=new k(null!=o?o:0,s),T=new N,w=g.A,I={metrics:U,requestBegin:B,requestProgress:F,requestEnd:V,addedSegment:function(e){w(e)}},x=new m.Ay;x.linkToSignal(t);var C=M(p.getValue(),x.signal);return p.onUpdate(D,{clearSignal:t}),{estimates:C,callbacks:I};function M(e,t){if(0===e.length)return new h.A({representation:null,bitrate:void 0,knownStableBitrate:void 0,manual:!1,urgent:!0});if(1===e.length)return new h.A({bitrate:void 0,representation:e[0],manual:!1,urgent:!0,knownStableBitrate:void 0});var o=!1,p=new b(e.map((function(e){return e.bitrate}))),m=new P,k=new R(_,m),I=v.getReference().getValue(),x=new h.A(M());return v.listen((function(e){I=e,C()}),{includeLastObservation:!1,clearSignal:t}),w=function(e){if(null!==I){var t=I,n=t.position,r=t.speed,i=e.buffered,a=(0,y.vK)(i,n.last),o=e.content.representation,s=_.getEstimate(o),u={bufferGap:a,currentBitrate:o.bitrate,currentScore:s,speed:r};p.onAddedSegment(u),C()}},t.register((function(){w=g.A})),u.onUpdate(C,{clearSignal:t}),f.onUpdate(C,{clearSignal:t}),d.onUpdate(C,{clearSignal:t}),a.limitWidth.onUpdate(C,{clearSignal:t}),a.limitWidth.onUpdate(C,{clearSignal:t}),x;function C(){x.setValue(M())}function M(){var t=u.getValue();if(t>=0)return{representation:L(e,t,0,1/0),bitrate:void 0,knownStableBitrate:void 0,manual:!0,urgent:!0};var v=I,h=v.bufferGap,g=v.position,y=v.maximumPosition,b=a.limitWidth.getValue(),w=a.throttleBitrate.getValue(),x=i.getValue(),R=f.getValue(),C=d.getValue(),M=function(e,t,n){var r=e;n<1/0&&(r=function(e,t){if(0===e.length)return[];e.sort((function(e,t){return e.bitrate-t.bitrate}));var n=e[0].bitrate,r=Math.max(t,n),i=(0,A.A)(e,(function(e){return e.bitrate>r}));return-1===i?e:e.slice(0,i)}(r,n));void 0!==t&&(r=function(e,t){var n=e.slice().sort((function(e,t){var n,r;return(null!==(n=e.width)&&void 0!==n?n:0)-(null!==(r=t.width)&&void 0!==r?r:0)})),r=(0,S.A)(n,(function(e){return"number"==typeof e.width&&e.width>=t}));if(void 0===r)return e;var i="number"==typeof r.width?r.width:0;return e.filter((function(e){return"number"!=typeof e.width||e.width<=i}))}(r,t));return r}(e,b,w),P=T.getRequests(),D=E.getBandwidthEstimate(I,n,x,P,m.bandwidth),N=D.bandwidthEstimate,O=D.bitrateChosen,U=_.getLastStableRepresentation(),B=null===U?void 0:U.bitrate/(I.speed>0?I.speed:1),F=l.A.getCurrent(),V=F.ABR_ENTER_BUFFER_BASED_ALGO,z=F.ABR_EXIT_BUFFER_BASED_ALGO;o&&h<=z?o=!1:!o&&isFinite(h)&&h>=V&&(o=!0);var K=L(M,O,R,C),W=p.getLastEstimate(),G=K.bitrate,H=null;o&&void 0!==W&&W>G&&(G=(H=L(M,W,R,C)).bitrate);var q=null;return s&&null!==x&&r.manifest.isDynamic&&y-g.last<40&&(q=k.getGuess(e,I,x,G,P)),null!==q&&q.bitrate>G?(c.A.debug("ABR: Choosing representation with guess-based estimation.",q.bitrate,q.id),m.update(q,N,2),{bitrate:N,representation:q,urgent:null===x||q.bitrate=500||404===e.status||415===e.status||412===e.status:e.type===$.yl.TIMEOUT||e.type===$.yl.ERROR_EVENT:e instanceof Z.A?"boolean"==typeof e.canRetry?e.canRetry:void 0!==e.xhr&&(e.xhr.status>=500||404===e.xhr.status||415===e.xhr.status||412===e.xhr.status):(0,J.A)(e)&&"INTEGRITY_ERROR"===e.code}function re(e){return e instanceof Y.A?e.type===$.yl.ERROR_EVENT&&!1===navigator.onLine:e instanceof Z.A&&e.isOfflineError}function ie(e,t,n,r,i){return ae.apply(this,arguments)}function ae(){return ae=(0,r.A)(o().mark((function e(t,n,i,a,s){var u,l,d,f,v,p,h,y,A,_,b,S,E,T;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(T=function(e){var t;if(0===p.size)return e[0];var n=performance.now();return null===(t=e.filter((function(e){var t;return!0!==(null===(t=p.get(e))||void 0===t?void 0:t.isBlacklisted)})).reduce((function(e,t){var r,i=null===(r=p.get(t))||void 0===r?void 0:r.blockedUntil;return void 0!==i&&i<=n&&(i=void 0),void 0===e?[t,i]:void 0===i?void 0===e[1]?e:[t,void 0]:void 0===e[1]?e:iv?(c.blockedUntil=void 0,c.isBlacklisted=!0):(h=c.errorCounter,g=Math.min(u*Math.pow(2,h-1),l),y=(0,te.A)(g),c.blockedUntil=performance.now()+y),e.abrupt("return",b(e.t0));case 22:case"end":return e.stop()}var o}),e,null,[[0,7]])})))).apply(this,arguments)},A=function(e){return _.apply(this,arguments)},y=function(){if(null===t){var e=p.get(null);if(void 0!==e&&e.isBlacklisted)return;return null}if(null===n)return T(t);var r=n.getCdnPreferenceForResource(t);return T(r)},null===s.cancellationError){e.next=9;break}return e.abrupt("return",Promise.reject(s.cancellationError));case 9:if(u=a.baseDelay,l=a.maxDelay,d=a.maxRetryRegular,f=a.maxRetryOffline,v=a.onRetry,null!==t&&0===t.length&&c.A.warn("Fetchers: no CDN given to `scheduleRequestWithCdns`."),p=new Map,void 0!==(h=y())){e.next=15;break}throw new Error("No CDN to request");case 15:return e.abrupt("return",A(h));case 16:case"end":return e.stop()}}),e)}))),ae.apply(this,arguments)}function oe(e,t,n){return ie(null,null,e,t,n)}function se(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ue(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?this._consecutiveUnsafeMode=u,v=void 0===r?0:performance.now()-r,p=Math.max(this._settings.minimumManifestUpdateInterval-v,0),h=new m.Ay;if(h.linkToSignal(this._canceller.signal),this.scheduleManualRefresh=function(t){var i=t.enablePartialRefresh,a=t.delay,o=t.canUseUnsafeMode&&f,s=void 0===r?0:performance.now()-r,u=Math.max(n._settings.minimumManifestUpdateInterval-s,0),l=setTimeout((function(){h.cancel(),n._triggerNextManifestRefresh(e,{enablePartialRefresh:i,unsafeMode:o})}),Math.max((null!=a?a:0)-s,u));h.signal.register((function(){clearTimeout(l)}))},null!==e.expired){var y=setTimeout((function(){var t;null===(t=e.expired)||void 0===t||t.then((function(){h.cancel(),n._triggerNextManifestRefresh(e,{enablePartialRefresh:!1,unsafeMode:f})}),g.A)}),p);h.signal.register((function(){clearTimeout(y)}))}if(void 0!==e.lifetime&&e.lifetime>=0){var A,_=1e3*e.lifetime-v;void 0===d?A=_:e.lifetime<3&&d>=100?(A=Math.min(Math.max(3e3-v,Math.max(_,0)+d),6*_),c.A.info("MUS: Manifest update rythm is too frequent. Postponing next request.",_,A)):d>=1e3*e.lifetime/10?(A=Math.min(Math.max(_,0)+d,6*_),c.A.info("MUS: Manifest took too long to parse. Postponing next request",A,A)):A=_;var b=setTimeout((function(){h.cancel(),n._triggerNextManifestRefresh(e,{enablePartialRefresh:!1,unsafeMode:f})}),Math.max(A,p));h.signal.register((function(){clearTimeout(b)}))}},n._triggerNextManifestRefresh=function(e,t){var n,r,i=this,a=t.enablePartialRefresh,o=t.unsafeMode,s=e.updateUrl;null!==this._prioritizedContentUrl?(n=!0,r=this._prioritizedContentUrl,this._prioritizedContentUrl=null):r=(n=!a||void 0===s)?e.getUrl():s;var u=e.clockOffset;o?(this._consecutiveUnsafeMode+=1,c.A.info('Init: Refreshing the Manifest in "unsafeMode" for the '+String(this._consecutiveUnsafeMode)+" consecutive time.")):this._consecutiveUnsafeMode>0&&(c.A.info('Init: Not parsing the Manifest in "unsafeMode" anymore after '+String(this._consecutiveUnsafeMode)+" consecutive times."),this._consecutiveUnsafeMode=0),this._isRefreshPending||(this._isRefreshPending=!0,this._fetchManifest(r).then((function(t){return t.parse({externalClockOffset:u,previousManifest:e,unsafeMode:o})})).then((function(t){i._isRefreshPending=!1;var r=t.manifest,a=t.sendingTime,o=t.parsingTime,s=performance.now();if(n)e.replace(r);else try{e.update(r)}catch(t){var u=t instanceof Error?t.message:"unknown error";c.A.warn("MUS: Attempt to update Manifest failed: "+u,"Re-downloading the Manifest fully");var d=l.A.getCurrent().FAILED_PARTIAL_UPDATE_MANIFEST_REFRESH_DELAY,f=void 0===a?0:performance.now()-a,v=Math.max(i._settings.minimumManifestUpdateInterval-f,0),p=g.A,h=setTimeout((function(){p(),i._triggerNextManifestRefresh(e,{enablePartialRefresh:!1,unsafeMode:!1})}),Math.max(d-f,v));return void(p=i._canceller.signal.register((function(){clearTimeout(h)})))}var m=performance.now()-s;i._recursivelyRefreshManifest(e,{sendingTime:a,parsingTime:o,updatingTime:m})})).catch((function(e){i._isRefreshPending=!1,i._onFatalError(e)})))},n._onFatalError=function(e){this._canceller.isUsed()||(this.trigger("error",e),this.dispose())},t}(q.A);var de=le;function ce(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&this._removeIndexFromDowngradeList(n);var r=l.A.getCurrent().DEFAULT_CDN_DOWNGRADE_TIME;this._downgradedCdnList.metadata.push(e);var i=window.setTimeout((function(){var n=pe(t._downgradedCdnList.metadata,e);n>=0&&t._removeIndexFromDowngradeList(n),t.trigger("priorityChange",null)}),r);this._downgradedCdnList.timeouts.push(i),this.trigger("priorityChange",null)},n._innerGetCdnPreferenceForResource=function(e){var t=this,n=e.reduce((function(e,n){return t._downgradedCdnList.metadata.some((function(e){return e.id===n.id&&e.baseUrl===n.baseUrl}))?e[1].push(n):e[0].push(n),e}),[[],[]]),r=n[0],i=n[1];return r.concat(i)},n._removeIndexFromDowngradeList=function(e){this._downgradedCdnList.metadata.splice(e,1);var t=this._downgradedCdnList.timeouts.splice(e,1);clearTimeout(t[0])},t}(q.A);function pe(e,t){return 0===e.length?-1:void 0!==t.id?(0,A.A)(e,(function(e){return e.id===t.id})):(0,A.A)(e,(function(e){return e.baseUrl===t.baseUrl}))}var he=n(7841),me=n(4031),ge=n(8795),ye=function(){function e(){this._cache=new WeakMap}var t=e.prototype;return t.add=function(e,t){var n=e.representation;e.segment.isInit&&this._cache.set(n,t)},t.get=function(e){var t=e.representation;if(e.segment.isInit){var n=this._cache.get(t);if(void 0!==n)return n}return null},e}(),Ae=(0,ge.A)();var _e=function(){function e(e){var t=e.prioritySteps;if(this._minPendingPriority=null,this._waitingQueue=[],this._pendingTasks=[],this._prioritySteps=t,this._prioritySteps.high>=this._prioritySteps.low)throw new Error("TP: the max high level priority should be given a lowerpriority number than the min low priority.")}var t=e.prototype;return t.create=function(e,t,n,r){var i,a=this;return(0,v.A)(r,(function(o,s){return i={hasEnded:!1,priority:t,trigger:function(){if(!i.hasEnded){var e=function(){u(),a._endTask(i)},t=new m.Ay,u=t.linkToSignal(r);i.interrupter=t,t.signal.register((function(){i.interrupter=null,r.isCancelled()||n.beforeInterrupted()})),a._minPendingPriority=null===a._minPendingPriority?i.priority:Math.min(a._minPendingPriority,i.priority),a._pendingTasks.push(i),i.taskFn(t.signal).then((function(t){n.beforeEnded(),e(),o(t)})).catch((function(n){!r.isCancelled()&&t.isUsed()&&n instanceof m.AL||function(t){e(),s(t)}(n)}))}},taskFn:e,interrupter:null},a._canBeStartedNow(i)?(i.trigger(),a._isRunningHighPriorityTasks()&&a._interruptCancellableTasks()):a._waitingQueue.push(i),function(){return a._endTask(i)}}))},t._endTask=function(e){e.hasEnded=!0;var t=be(e.taskFn,this._waitingQueue);if(t>=0)this._waitingQueue.splice(t,1);else{var n=be(e.taskFn,this._pendingTasks);if(n<0)return;this._pendingTasks.splice(n,1),this._pendingTasks.length>0?this._minPendingPriority===e.priority&&(this._minPendingPriority=Math.min.apply(Math,this._pendingTasks.map((function(e){return e.priority})))):this._minPendingPriority=null,this._loopThroughWaitingQueue()}},t.updatePriority=function(e,t){var n=be(e,this._waitingQueue);if(n>=0){var r=this._waitingQueue[n];if(r.priority===t)return;if(r.priority=t,!this._canBeStartedNow(r))return;return this._findAndRunWaitingQueueTask(n),void(this._isRunningHighPriorityTasks()&&this._interruptCancellableTasks())}var i=be(e,this._pendingTasks);if(i<0)c.A.warn("TP: request to update the priority of a non-existent task");else{var a=this._pendingTasks[i];if(a.priority!==t){var o=a.priority;a.priority=t,null===this._minPendingPriority||tt.priority?t.priority:e}),null);if(!(null===e||null!==this._minPendingPriority&&this._minPendingPriority=this._prioritySteps.low)return this._interruptPendingTask(t),this._interruptCancellableTasks()}},t._findAndRunWaitingQueueTask=function(e){return e>=this._waitingQueue.length||e<0?(c.A.warn("TP : Tried to start a non existing task"),!1):(this._waitingQueue.splice(e,1)[0].trigger(),!0)},t._interruptPendingTask=function(e){var t,n=be(e.taskFn,this._pendingTasks);n<0?c.A.warn("TP: Interrupting a non-existent pending task. Aborting..."):(this._pendingTasks.splice(n,1),this._waitingQueue.push(e),0===this._pendingTasks.length?this._minPendingPriority=null:this._minPendingPriority===e.priority&&(this._minPendingPriority=Math.min.apply(Math,this._pendingTasks.map((function(e){return e.priority})))),null===(t=e.interrupter)||void 0===t||t.cancel())},t._canBeStartedNow=function(e){return null===this._minPendingPriority||e.priority<=this._minPendingPriority},t._isRunningHighPriorityTasks=function(){return null!==this._minPendingPriority&&this._minPendingPriority<=this._prioritySteps.high},e}();function be(e,t){return(0,A.A)(t,(function(t){return t.taskFn===e}))}var Se=function(){function e(e,t,n){var r=new ve(n),i=l.A.getCurrent(),a=i.MIN_CANCELABLE_PRIORITY,o=i.MAX_HIGH_PRIORITY_LEVEL;this._transport=e,this._prioritizer=new _e({prioritySteps:{high:o,low:a}}),this._cdnPrioritizer=r,this._backoffOptions=t}return e.prototype.createSegmentFetcher=function(e,t){var n,i,a,s=function(e,t){var n=t.maxRetryRegular,r=t.maxRetryOffline,i=t.lowLatencyMode,a=t.requestTimeout,o=l.A.getCurrent(),s=o.DEFAULT_MAX_REQUESTS_RETRY_ON_ERROR,u=o.DEFAULT_REQUEST_TIMEOUT,d=o.DEFAULT_MAX_REQUESTS_RETRY_ON_OFFLINE,c=o.INITIAL_BACKOFF_DELAY_BASE,f=o.MAX_BACKOFF_DELAY_BASE;return{maxRetryRegular:"image"===e?0:null!=n?n:s,maxRetryOffline:null!=r?r:d,baseDelay:i?c.LOW_LATENCY:c.REGULAR,maxDelay:i?f.LOW_LATENCY:f.REGULAR,requestTimeout:(0,j.A)(a)?u:a}}(e,this._backoffOptions),u=function(e,t,n,i,a){var s={timeout:a.requestTimeout<0?void 0:a.requestTimeout},u=(0,me.A)(["audio","video"],e)?new ye:void 0,l=t.loadSegment,d=t.parseSegment;return function(){var e=(0,r.A)(o().mark((function e(t,r,f){var v,h,g,y,A,_,b,S,E,T,w,k,I,x,R,C,M,P;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P=function(){var e;E||!(0,j.A)(_)&&void 0!==_.size&&void 0!==_.requestDuration&&b.length>0&&b.every((function(e){return e}))&&(E=!0,null===(e=i.onMetrics)||void 0===e||e.call(i,{size:_.size,requestDuration:_.requestDuration,content:t,segmentDuration:S}))},M=function(e){r.onRetry(X(e))},C=function(e,n){b.push(!1);var r=b.length-1;return function(i){var a={data:e,isChunked:n};try{var o=d(a,t,i);return b[r]||(S=void 0!==S&&"media"===o.segmentType&&null!==o.chunkInfos&&void 0!==o.chunkInfos.duration?S+o.chunkInfos.duration:void 0,b[r]=!0,P()),o}catch(e){throw(0,G.A)(e,{defaultCode:"PIPELINE_PARSE_ERROR",defaultReason:"Unknown parsing error"})}}},R=function(e){return l(e,t,s,f,T)},x=function(){var e;void 0===_&&(c.A.debug("SF: Segment request cancelled",y),_=null,null===(e=i.onRequestEnd)||void 0===e||e.call(i,{id:A}))},y=(0,he.M)(t),A=Ae(),b=[],S=0,E=!1,T={onProgress:function(e){var t;void 0===_&&void 0!==e.totalSize&&e.size0;){var e=this._queue.shift();void 0!==e&&e.reject(new m.AL)}if("open"===this._mediaSource.readyState)try{c.A.debug("AVSB: Calling `abort` on the SourceBuffer"),this._sourceBuffer.abort()}catch(e){c.A.warn("AVSB: Failed to abort a "+this.bufferType+" SourceBuffer:",e instanceof Error?e:"")}},n._onPendingTaskError=function(e){if(this._lastInitSegmentUniqueId=null,null!==this._pendingTask){var t=e instanceof Error?e:new Error("An unknown error occured when doing operations on the SourceBuffer"),n=this._pendingTask;n.type===ke.B.Push&&0===n.data.length&&null!==n.inventoryData&&this._segmentInventory.insertChunk(n.inventoryData,!1,performance.now()),this._pendingTask=null,n.reject(t)}},n._addToQueue=function(e,t){var n=this;return(0,v.A)(t,(function(t,r){var i=0===n._queue.length&&null===n._pendingTask,a=(0,p.A)({resolve:t,reject:r},e);return n._queue.push(a),i&&n._flush(),function(){var e=n._queue.indexOf(a);e>=0&&n._queue.splice(e,1),a.resolve=g.A,a.reject=g.A}}))},n._flush=function(){if(!this._sourceBuffer.updating){if(null!==this._pendingTask){var e=this._pendingTask;if(e.type!==ke.B.Push||0===e.data.length){switch(e.type){case ke.B.Push:null!==e.inventoryData&&this._segmentInventory.insertChunk(e.inventoryData,!0,performance.now());break;case ke.B.EndOfSegment:this._segmentInventory.completeSegment(e.value,this.getBufferedRanges());break;case ke.B.Remove:this.synchronizeInventory();break;default:(0,we.A)(e)}var t=e.resolve;return this._pendingTask=null,t(),void this._flush()}}else{var n=this._queue.shift();if(void 0===n)return;if(n.type!==ke.B.Push)this._pendingTask=n;else{var r,i=n.value;try{r=this._preparePushOperation(i.data)}catch(e){this._pendingTask=(0,p.A)({data:[],inventoryData:i.inventoryInfos},n);var a=e instanceof Error?e:new Error("An unknown error occured when preparing a push operation");return this._lastInitSegmentUniqueId=null,void n.reject(a)}this._pendingTask=(0,p.A)({data:r,inventoryData:i.inventoryInfos},n)}}try{switch(this._pendingTask.type){case ke.B.EndOfSegment:return c.A.debug("AVSB: Acknowledging complete segment",(0,he.M)(this._pendingTask.value)),void this._flush();case ke.B.Push:var o=this._pendingTask.data.shift();if(void 0===o)return void this._flush();c.A.debug("AVSB: pushing segment",this.bufferType,(0,he.M)(this._pendingTask.inventoryData)),this._sourceBuffer.appendBuffer(o);break;case ke.B.Remove:var s=this._pendingTask.value,u=s.start,l=s.end;c.A.debug("AVSB: removing data from SourceBuffer",this.bufferType,u,l),this._sourceBuffer.remove(u,l);break;default:(0,we.A)(this._pendingTask)}}catch(e){this._onPendingTaskError(e)}}},n._preparePushOperation=function(e){var t=[],n=e.codec,r=e.timestampOffset,i=e.appendWindow,a=!1;if(void 0!==n&&n!==this.codec&&(c.A.debug("AVSB: updating codec",n),a=function(e,t){if("function"==typeof e.changeType){try{e.changeType(t)}catch(e){return c.A.warn("Could not call 'changeType' on the given SourceBuffer:",e instanceof Error?e:""),!1}return!0}return!1}(this._sourceBuffer,n),a?this.codec=n:c.A.debug("AVSB: could not update codec",n,this.codec)),this._sourceBuffer.timestampOffset!==r){var o=r;c.A.debug("AVSB: updating timestampOffset",this.bufferType,this._sourceBuffer.timestampOffset,o),this._sourceBuffer.timestampOffset=o}if(void 0===i[0])this._sourceBuffer.appendWindowStart>0&&(c.A.debug("AVSB: re-setting `appendWindowStart` to `0`"),this._sourceBuffer.appendWindowStart=0);else if(i[0]!==this._sourceBuffer.appendWindowStart){if(i[0]>=this._sourceBuffer.appendWindowEnd){var s=i[0]+1;c.A.debug("AVSB: pre-updating `appendWindowEnd`",s),this._sourceBuffer.appendWindowEnd=s}c.A.debug("AVSB: setting `appendWindowStart`",i[0]),this._sourceBuffer.appendWindowStart=i[0]}if(void 0===i[1]?this._sourceBuffer.appendWindowEnd!==1/0&&(c.A.debug("AVSB: re-setting `appendWindowEnd` to `Infinity`"),this._sourceBuffer.appendWindowEnd=1/0):i[1]!==this._sourceBuffer.appendWindowEnd&&(c.A.debug("AVSB: setting `appendWindowEnd`",i[1]),this._sourceBuffer.appendWindowEnd=i[1]),null!==e.initSegmentUniqueId&&(a||!this._isLastInitSegment(e.initSegmentUniqueId))){var u=this._initSegmentsMap.get(e.initSegmentUniqueId);if(void 0===u)throw new Error("Invalid initialization segment uniqueId");t.push(u),this._lastInitSegmentUniqueId=e.initSegmentUniqueId}return null!==e.chunk&&t.push(e.chunk),t},n._isLastInitSegment=function(e){return null!==this._lastInitSegmentUniqueId&&this._lastInitSegmentUniqueId===e},t}(ke.K),Re=["audio","video","text","image"];function Ce(e){return"audio"===e||"video"===e}var Me=function(){function e(e,t){this._mediaElement=e,this._mediaSource=t,this._initializedSegmentBuffers={},this._onNativeBufferAddedOrDisabled=[]}e.isNative=function(e){return Ce(e)};var t=e.prototype;return t.getBufferTypes=function(){var e=this.getNativeBufferTypes();return null==Te.A.nativeTextTracksBuffer&&null==Te.A.htmlTextTracksBuffer||e.push("text"),null!=Te.A.imageBuffer&&e.push("image"),e},t.getNativeBufferTypes=function(){return"AUDIO"===this._mediaElement.nodeName?["audio"]:["video","audio"]},t.getStatus=function(e){var t=this._initializedSegmentBuffers[e];return void 0===t?{type:"uninitialized"}:null===t?{type:"disabled"}:{type:"initialized",value:t}},t.waitForUsableBuffers=function(e){var t=this;return this._areNativeBuffersUsable()?Promise.resolve():(0,v.A)(e,(function(e){var n,r=function(){var e=t._onNativeBufferAddedOrDisabled.indexOf(n);e>=0&&t._onNativeBufferAddedOrDisabled.splice(e,1)};return n=function(){t._areNativeBuffersUsable()&&(r(),e())},t._onNativeBufferAddedOrDisabled.push(n),r}))},t.disableSegmentBuffer=function(t){var n=this._initializedSegmentBuffers[t];if(null!==n){if(void 0!==n)throw new Error("Cannot disable an active SegmentBuffer.");this._initializedSegmentBuffers[t]=null,e.isNative(t)&&(this._onNativeBufferAddedOrDisabled.slice().forEach((function(e){return e()})),(0,f.h)(0===this._onNativeBufferAddedOrDisabled.length))}else c.A.warn("SBS: The "+t+" SegmentBuffer was already disabled.")},t.createSegmentBuffer=function(e,t,n){void 0===n&&(n={});var r,i=this._initializedSegmentBuffers[e];if(Ce(e)){if(null!=i)return i instanceof xe&&i.codec!==t?c.A.warn("SB: Reusing native SegmentBuffer with codec",i.codec,"for codec",t):c.A.info("SB: Reusing native SegmentBuffer with codec",t),i;c.A.info("SB: Adding native SegmentBuffer with codec",t);var a=new xe(e,t,this._mediaSource);return this._initializedSegmentBuffers[e]=a,this._onNativeBufferAddedOrDisabled.slice().forEach((function(e){return e()})),(0,f.h)(0===this._onNativeBufferAddedOrDisabled.length),a}if(null!=i)return c.A.info("SB: Reusing a previous custom SegmentBuffer for the type",e),i;if("text"===e){if(c.A.info("SB: Creating a new text SegmentBuffer"),"html"===n.textTrackMode){if(null==Te.A.htmlTextTracksBuffer)throw new Error("HTML Text track feature not activated");r=new Te.A.htmlTextTracksBuffer(this._mediaElement,n.textTrackElement)}else{if(null==Te.A.nativeTextTracksBuffer)throw new Error("Native Text track feature not activated");r=new Te.A.nativeTextTracksBuffer(this._mediaElement,!0===n.hideNativeSubtitle)}return this._initializedSegmentBuffers.text=r,r}if("image"===e){if(null==Te.A.imageBuffer)throw new Error("Image buffer feature not activated");return c.A.info("SB: Creating a new image SegmentBuffer"),r=new Te.A.imageBuffer,this._initializedSegmentBuffers.image=r,r}throw c.A.error("SB: Unknown buffer type:",e),new d.A("BUFFER_TYPE_UNKNOWN","The player wants to create a SegmentBuffer of an unknown type.")},t.disposeSegmentBuffer=function(e){var t=this._initializedSegmentBuffers[e];null!=t?(c.A.info("SB: Aborting SegmentBuffer",e),t.dispose(),delete this._initializedSegmentBuffers[e]):c.A.warn("SB: Trying to dispose a SegmentBuffer that does not exist")},t.disposeAll=function(){var e=this;Re.forEach((function(t){"initialized"===e.getStatus(t).type&&e.disposeSegmentBuffer(t)}))},t._areNativeBuffersUsable=function(){var e=this,t=this.getNativeBufferTypes();return!t.some((function(t){return void 0===e._initializedSegmentBuffers[t]}))&&!t.every((function(t){return null===e._initializedSegmentBuffers[t]}))},e}(),Pe=n(6826),De=n.n(Pe),Ne=n(7296),Oe=function(){function e(e){this._weakMap=new WeakMap,this._fn=e}var t=e.prototype;return t.get=function(e){var t=this._weakMap.get(e);if(void 0===t){var n=this._fn(e);return this._weakMap.set(e,n),n}return t},t.destroy=function(e){this._weakMap.delete(e)},e}();function Le(e,t){var n,r=e.segmentBuffer,i=e.playbackObserver,a=e.maxBufferBehind,o=e.maxBufferAhead;function s(){(function(e,t,n,r,i){return Ue.apply(this,arguments)})(r,n,a.getValue(),o.getValue(),t).catch((function(e){var t=e instanceof Error?e.message:"Unknown error";c.A.error("Could not run BufferGarbageCollector:",t)}))}i.listen((function(e){var t;n=null!==(t=e.position.pending)&&void 0!==t?t:e.position.last,s()}),{includeLastObservation:!0,clearSignal:t}),a.onUpdate(s,{clearSignal:t}),o.onUpdate(s,{clearSignal:t}),s()}function Ue(){return(Ue=(0,r.A)(o().mark((function e(t,n,r,i,a){var s,u,l,d,f,v,p,h;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(isFinite(r)||isFinite(i)){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:s=[],u=(0,y.OT)(t.getBufferedRanges(),n),l=u.innerRange,d=u.outerRanges,f=function(){if(isFinite(i)){for(var e=0;et.start&&s.push({start:n+i,end:t.end})}null!=l&&n+i=t.end?s.push(t):n>=t.end&&n-r>t.start&&n-rl.start&&s.push({start:l.start,end:n-r})}}(),f(),v=0,p=s;case 9:if(!(v0&&n[0].segment.id===e._mediaSegmentAwaitingInitMetadata)){var r=e._mediaSegmentRequest;if(0===n.length){if(null===r)return;return c.A.debug("Stream: no more media segment to request. Cancelling queue.",e._content.adaptation.type),void e._restartMediaSegmentDownloadingQueue()}if(null===r)return c.A.debug("Stream: Media segments now need to be requested. Starting queue.",e._content.adaptation.type,n.length),void e._restartMediaSegmentDownloadingQueue();var i=n[0];return r.segment.id!==i.segment.id?(c.A.debug("Stream: Next media segment changed, cancelling previous",e._content.adaptation.type),void e._restartMediaSegmentDownloadingQueue()):void(r.priority!==i.priority&&(c.A.debug("Stream: Priority of next media segment changed, updating",e._content.adaptation.type,r.priority,i.priority),e._segmentFetcher.updatePriority(r.request,i.priority)))}}),{emitCurrentValue:!0,clearSignal:this._currentCanceller.signal}),this._downloadQueue.onUpdate((function(t){var n,r=e._initSegmentRequest;null===t.initSegment||null===r?(null===(n=t.initSegment)||void 0===n?void 0:n.segment.id)!==(null==r?void 0:r.segment.id)&&(null===t.initSegment&&c.A.debug("Stream: no more init segment to request. Cancelling queue.",e._content.adaptation.type),e._restartInitSegmentDownloadingQueue(t.initSegment)):t.initSegment.priority!==r.priority&&e._segmentFetcher.updatePriority(r.request,t.initSegment.priority)}),{emitCurrentValue:!0,clearSignal:this._currentCanceller.signal}))},n.stop=function(){var e;null===(e=this._currentCanceller)||void 0===e||e.cancel(),this._currentCanceller=null},n._restartMediaSegmentDownloadingQueue=function(){var e=this;null!==this._mediaSegmentRequest&&this._mediaSegmentRequest.canceller.cancel();!function t(n){if(null!==e._currentCanceller&&e._currentCanceller.isUsed())e._mediaSegmentRequest=null;else{if(void 0===n)return e._mediaSegmentRequest=null,void e.trigger("emptyQueue",null);var r=new m.Ay,i=null===e._currentCanceller?g.A:r.linkToSignal(e._currentCanceller.signal),a=n.segment,o=n.priority,s=(0,p.A)({segment:a},e._content),u=!1,l=!1;r.signal.register((function(){e._mediaSegmentRequest=null,u||(e._mediaSegmentAwaitingInitMetadata===a.id&&(e._mediaSegmentAwaitingInitMetadata=null),u=!0,l=!1)}));var d=function(t){(0,f.h)("media"===t.segmentType,"Should have loaded a media segment."),e.trigger("parsedMediaSegment",(0,p.A)({},t,{segment:a}))},v=function(){var n=e._downloadQueue.getValue().segmentQueue;if(0===n.length)return u=!0,void e.trigger("emptyQueue",null);n[0].segment.id===a.id&&n.shift(),u=!0,t(n[0])},h=e._segmentFetcher.createRequest(s,o,{onRetry:function(t){e.trigger("requestRetry",{segment:a,error:t})},beforeInterrupted:function(){c.A.info("Stream: segment request interrupted temporarly.",a.id,a.time)},onChunk:function(t){var n=e._initSegmentInfoRef.getValue();void 0!==n?d(t(null!=n?n:void 0)):(l=!0,e._initSegmentInfoRef.waitUntilDefined((function(e){d(t(null!=e?e:void 0))}),{clearSignal:r.signal}))},onAllChunksReceived:function(){l?(e._mediaSegmentAwaitingInitMetadata=a.id,e._initSegmentInfoRef.waitUntilDefined((function(){e._mediaSegmentAwaitingInitMetadata=null,l=!1,e.trigger("fullyLoadedSegment",a)}),{clearSignal:r.signal})):e.trigger("fullyLoadedSegment",a)},beforeEnded:function(){i(),e._mediaSegmentRequest=null,l?e._initSegmentInfoRef.waitUntilDefined(v,{clearSignal:r.signal}):v()}},r.signal);h.catch((function(t){i(),u||(u=!0,e.stop(),e.trigger("error",t))})),e._mediaSegmentRequest={segment:a,priority:o,request:h,canceller:r}}}(this._downloadQueue.getValue().segmentQueue[0])},n._restartInitSegmentDownloadingQueue=function(e){var t=this;if((null===this._currentCanceller||!this._currentCanceller.isUsed())&&(null!==this._initSegmentRequest&&this._initSegmentRequest.canceller.cancel(),null!==e)){var n=new m.Ay,r=null===this._currentCanceller?g.A:n.linkToSignal(this._currentCanceller.signal),i=e.segment,a=e.priority,o=(0,p.A)({segment:i},this._content),s=!1,u=this._segmentFetcher.createRequest(o,a,{onRetry:function(e){t.trigger("requestRetry",{segment:i,error:e})},beforeInterrupted:function(){c.A.info("Stream: init segment request interrupted temporarly.",i.id)},beforeEnded:function(){r(),t._initSegmentRequest=null,s=!0},onChunk:function(e){var n,r=e(void 0);(0,f.h)("init"===r.segmentType,"Should have loaded an init segment."),t.trigger("parsedInitSegment",(0,p.A)({},r,{segment:i})),"init"===r.segmentType&&t._initSegmentInfoRef.setValue(null!==(n=r.initTimescale)&&void 0!==n?n:null)},onAllChunksReceived:function(){t.trigger("fullyLoadedSegment",i)}},n.signal);u.catch((function(e){r(),s||(s=!0,t.stop(),t.trigger("error",e))})),n.signal.register((function(){t._initSegmentRequest=null,s||(s=!0)})),this._initSegmentRequest={segment:i,priority:a,request:u,canceller:n}}},t}(q.A);function Fe(e,t,n,r,i){var a=e.period,o=e.adaptation,s=e.representation,u=function(e,t){for(var n=0;n=t.end)return null;if(r.bufferedEnd>t.start)return n}return null}(i,t);if(null===u){if(null===n){if(r&&void 0!==a.end&&t.end>=a.end)return{start:void 0,end:null};var l=s.index.checkDiscontinuity(t.start);if(null!==l)return{start:void 0,end:l}}return null}var d=i[u];if(void 0!==d.bufferedStart&&d.bufferedStart>t.start&&(null===n||d.infos.segment.end<=n)){var f=d.bufferedStart;return r||!1===s.index.awaitSegmentBetween(t.start,f)?(c.A.debug("RS: current discontinuity encountered",o.type,d.bufferedStart),{start:void 0,end:f}):null}var v=function(e,t,n){if(n<=0)return c.A.error("RS: Asked to check a discontinuity before the first chunk."),null;for(var r=n;r=t.end)return null;if(i.bufferedStart-a.bufferedEnd>0)return r}return null}(i,t,u+1);if(null!==v){var p=i[v-1],h=i[v];if(null===n||h.infos.segment.end<=n){if(!r&&!1!==s.index.awaitSegmentBetween(p.infos.segment.end,h.infos.segment.time))return null;var m=p.bufferedEnd,g=h.bufferedStart;return c.A.debug("RS: future discontinuity encountered",o.type,m,g),{start:m,end:g}}}if(null===n){if(r&&void 0!==a.end){if(t.end=0;n--){var r=e[n];if(void 0===r.bufferedStart)return null;if(r.bufferedStart=a.end)return null;for(var _=i.length-1;_>=0;_--){var b=i[_];if(void 0===b.bufferedStart)break;if(b.bufferedStart=n.length-1?null:n[t+1],s=null;if(function(e,t,n){var r=l.A.getCurrent().MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT;if(void 0===e.bufferedStart)return!1;if(null!==t&&void 0!==t.bufferedEnd&&e.bufferedStart-t.bufferedEnd<.1)return!1;if(nr)return c.A.info("Stream: The start of the wanted segment has been garbage collected",e.start,e.bufferedStart),!0;return!1}(e,r,o.start)){if(function(e,t){var n,r;if(e.length<2)return!0;var i=e[e.length-1],a=null===(n=i.buffered)||void 0===n?void 0:n.start;if(void 0!==t&&void 0!==a&&t-a>.05)return!0;var o=e[e.length-2],s=null===(r=o.buffered)||void 0===r?void 0:r.start;if(void 0===s||void 0===a)return!0;return Math.abs(s-a)>.01}(s=a(e.infos),e.bufferedStart))return!1;c.A.debug("Stream: skipping segment gc-ed at the start",e.start,e.bufferedStart)}if(function(e,t,n){var r=l.A.getCurrent().MAX_TIME_MISSING_FROM_COMPLETE_SEGMENT;if(void 0===e.bufferedEnd)return!1;if(null!==t&&void 0!==t.bufferedStart&&t.bufferedStart-e.bufferedEnd<.1)return!1;if(n>e.bufferedEnd&&e.end-e.bufferedEnd>r)return c.A.info("Stream: The end of the wanted segment has been garbage collected",e.end,e.bufferedEnd),!0;return!1}(e,i,o.end)){if(function(e,t){var n,r;if(e.length<2)return!0;var i=e[e.length-1],a=null===(n=i.buffered)||void 0===n?void 0:n.end;if(void 0!==t&&void 0!==a&&a-t>.05)return!0;var o=e[e.length-2],s=null===(r=o.buffered)||void 0===r?void 0:r.end;if(void 0===s||void 0===a)return!0;return Math.abs(s-a)>.01}(s=null!=s?s:a(e.infos),e.bufferedEnd))return!1;c.A.debug("Stream: skipping segment gc-ed at the end",e.end,e.bufferedEnd)}return!0})),g=l.A.getCurrent(),y=g.MINIMUM_SEGMENT_SIZE,A=g.MIN_BUFFER_AHEAD,_=!1,b=Math.min(1/60,y),S=!1,E=[],T=h.filter((function(e){var t=(0,p.A)({segment:e},n);if(s.length>0&&s.some((function(e){return(0,he.Q)(t,e)})))return!1;var u=e.duration,l=e.time,h=e.end;if(e.isInit)return!0;if(_)return E.push(e),!1;if(e.complete&&u0&&s.some((function(e){if(e.period.id!==n.period.id||e.adaptation.id!==n.adaptation.id)return!1;var a=e.segment;if(a.time-b>l)return!1;if(a.complete){if(a.end+bl)return!1;return!Ke(e,t,r,i)})))return!1;for(var g=0;g-b)if(k.complete){if(k.end-h>-b)return!1}else if(Math.abs(l-k.time)o.start+A))return _=!0,E.push(e),!1;var x=a(t);if(x.length>1){var R=x[x.length-1],C=x[x.length-2];if(null===R.buffered&&null===C.buffered)return c.A.warn("Stream: Segment GCed multiple times in a row, ignoring it.","If this happens a lot and lead to unpleasant experience, please check your device's available memory. If it's low when this message is emitted, you might want to update the RxPlayer's settings (`maxBufferAhead`, `maxVideoBufferSize` etc.) so less memory is used by regular media data buffering."+d.type,f.id,e.time),!1}for(var M=0;Ml){var D=P.start>l+b||ze(m,M).ende[n].start;)n++;return e[--n]}function Ke(e,t,n,r){var i=l.A.getCurrent().CONTENT_REPLACEMENT_PADDING;return e.period.id===t.period.id&&(!(e.segment.timea}return rr}(e.representation,t.representation,r)))}function We(e,t){for(var n=e-t,r=l.A.getCurrent().SEGMENT_PRIORITIES_STEPS,i=0;i=u&&l.isInitialized()&&!l.isStillAwaitingFutureSegments()&&function(e,t,n){var r,i=e.getPeriodAfter(t);return t.containsTime(n,i)&&e.isLastPeriodKnown&&t.id===(null===(r=e.periods[e.periods.length-1])||void 0===r?void 0:r.id)}(a,o,t)?u-1:t-.1;var d,c=i+n;d=!(!s.index.isInitialized()||s.index.isStillAwaitingFutureSegments()||void 0===o.end)&&(void 0===u?c>=o.end:null===u||c>=u);return{start:Math.max(i,o.start),end:Math.min(c,null!==(r=o.end)&&void 0!==r?r:1/0),hasReachedPeriodEnd:d}}(e,u,i),d=s.index.shouldRefresh(l.start,l.end),c=o.getPendingOperations().filter((function(e){return e.type===ke.B.EndOfSegment})).map((function(e){return e.value})),f=o.getInventory(),v=Ve({content:e,bufferedSegments:f,currentPlaybackTime:n.getCurrentTime(),fastSwitchThreshold:r,getBufferedHistory:o.getSegmentHistory.bind(o),neededRange:l,segmentsBeingPushed:c,maxBufferSize:a}),p=v.segmentsToLoad,h=v.segmentsOnHold,m=v.isBufferFull,g=p.map((function(e){return{priority:We(e.time,u),segment:e}})),y=s.index.isInitialized()&&!s.index.isStillAwaitingFutureSegments()&&l.hasReachedPeriodEnd&&0===g.length&&0===h.length,A=null;return c.length>0&&(A=Math.min.apply(Math,c.map((function(e){return e.segment.time})))),h.length>0&&(A=null!==A?Math.min(A,h[0].time):h[0].time),g.length>0&&(A=null!==A?Math.min(A,g[0].segment.time):g[0].segment.time),{imminentDiscontinuity:Fe(e,l,A,y,f),hasFinishedLoading:y,neededSegments:g,isBufferFull:m,shouldRefreshManifest:d}}var He=n(8801);function qe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return je(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nu.end||e+ni.start&&o.push({start:i.start,end:e-n}),e+n0&&x.every((function(e){return void 0!==e.keyIds}))&&(I=!0,t.encryptionDataEncountered(x.map((function(e){return(0,p.A)({content:r},e)}))),S.isUsed()))return}var R=new Be(r,w,s,k);return R.addEventListener("error",(function(e){E.signal.isCancelled()||(S.cancel(),t.error(e))})),R.addEventListener("parsedInitSegment",M),R.addEventListener("parsedMediaSegment",M),R.addEventListener("emptyQueue",C),R.addEventListener("requestRetry",(function(e){if(t.warning(e.error),!E.signal.isCancelled()){var n=e.segment,r=v.index;!1===r.isSegmentStillAvailable(n)?C():r.canBeOutOfSyncError(e.error,n)&&t.manifestMightBeOufOfSync()}})),R.addEventListener("fullyLoadedSegment",(function(e){o.endOfSegment((0,p.A)({segment:e},r),S.signal).catch(P)})),R.start(),E.signal.register((function(){R.removeEventListener(),R.stop()})),a.listen(C,{includeLastObservation:!1,clearSignal:E.signal}),r.manifest.addEventListener("manifestUpdate",C,E.signal),g.onUpdate(C,{emitCurrentValue:!1,clearSignal:E.signal}),y.onUpdate(C,{emitCurrentValue:!1,clearSignal:E.signal}),u.onUpdate(C,{emitCurrentValue:!1,clearSignal:E.signal}),void C();function C(){var e,n;if(!E.isUsed()){var i=a.getReference().getValue(),s=null!==(e=i.position.pending)&&void 0!==e?e:i.position.last,f=Ge(r,s,a,_.getValue(),g.getValue(),y.getValue(),o),p=f.neededSegments,h=null;if(v.index.isInitialized()){if(p.length>0&&!T.isLoaded&&null!==T.segment){var m=p[0].priority;h={segment:T.segment,priority:m}}}else if(null===T.segment)c.A.warn("Stream: Uninitialized index without an initialization segment");else if(T.isLoaded)c.A.warn("Stream: Uninitialized index with an already loaded initialization segment");else{var A=null!==(n=i.position.pending)&&void 0!==n?n:i.position.last;h={segment:T.segment,priority:We(d.start,A)}}var k=u.getValue();if(null===k)w.setValue({initSegment:h,segmentQueue:p});else{if(k.urgent)return c.A.debug("Stream: Urgent switch, terminate now.",b),w.setValue({initSegment:null,segmentQueue:[]}),w.finish(),E.cancel(),void t.terminating();var I=p[0],x=R.getRequestedInitSegment(),C=R.getRequestedMediaSegment(),M=null===C||void 0===I||C.id!==I.segment.id?[]:[I],D=null===x?null:h;if(w.setValue({initSegment:D,segmentQueue:M}),0===M.length&&null===D)return c.A.debug("Stream: No request left, terminate",b),w.finish(),E.cancel(),void t.terminating()}if(t.streamStatusUpdate({period:d,position:i.position.last,bufferType:b,imminentDiscontinuity:f.imminentDiscontinuity,isEmptyStream:!1,hasFinishedLoading:f.hasFinishedLoading,neededSegments:f.neededSegments}),!E.signal.isCancelled()){var N=l.A.getCurrent().UPTO_CURRENT_POSITION_CLEANUP;if(f.isBufferFull){var O=Math.max(0,s-N);O>0&&o.removeBuffer(0,O,S.signal).catch(P)}f.shouldRefreshManifest&&t.needsManifestRefresh()}}}function M(e){if(!S.isUsed())if("init"===e.segmentType){if(T.isLoaded=!0,!I){var n=v.getAllEncryptionData();if(n.length>0&&(t.encryptionDataEncountered(n.map((function(e){return(0,p.A)({content:r},e)}))),S.isUsed()))return}if(null!==e.initializationData){var i=v.uniqueId;T.uniqueId=i,o.declareInitSegment(i,e.initializationData),function(e,t){return Je.apply(this,arguments)}({playbackObserver:a,content:r,initSegmentUniqueId:i,segment:e.segment,segmentData:e.initializationData,segmentBuffer:o},S.signal).then((function(e){null!==e&&t.addedSegment(e)})).catch(P)}C()}else{var s=e.inbandEvents,u=e.needsManifestRefresh,l=e.protectionDataUpdate;if(!I&&l){var d=v.getAllEncryptionData();if(d.length>0&&(t.encryptionDataEncountered(d.map((function(e){return(0,p.A)({content:r},e)}))),S.isUsed()))return}if(!0===u&&(t.needsManifestRefresh(),S.isUsed()))return;if(void 0!==s&&s.length>0&&(t.inbandEvent(s),S.isUsed()))return;var c=T.uniqueId;(function(e,t){return et.apply(this,arguments)})({playbackObserver:a,content:r,initSegmentUniqueId:c,parsedSegment:e,segment:e.segment,segmentBuffer:o},S.signal).then((function(e){null!==e&&t.addedSegment(e)})).catch(P)}}function P(e){S.isUsed()&&e instanceof m.AL||(S.cancel(),t.error(e))}};var nt=function(e,t,n){var r=e.playbackObserver,i=e.content,a=e.options,o=e.representationEstimator,s=e.segmentBuffer,u=e.segmentFetcherCreator,f=e.wantedBufferAhead,v=e.maxVideoBufferSize,y="direct"===a.manualBitrateSwitchingMode,A=i.manifest,_=i.period,b=i.adaptation,S=new m.Ay;S.linkToSignal(n);var E,T=new Map,w=new h.A(null,S.signal),k=function(e,t,n,r,i,a){var o=e.manifest,s=e.adaptation,u=new h.A([],a);v(),o.addEventListener("decipherabilityUpdate",v);var l=a.register(p),c=t(e,n,u,r,a),f=c.estimates;return{abrCallbacks:c.callbacks,estimateRef:f};function v(){var e=s.getPlayableRepresentations();if(0===e.length){var t=new d.A("NO_PLAYABLE_REPRESENTATION","No Representation in the chosen "+s.type+" Adaptation can be played",{adaptation:s});return p(),void i(t)}var n=u.getValue();n.length===e.length&&n.every((function(t,n){return t.id===e[n].id}))||u.setValue(e)}function p(){o.removeEventListener("decipherabilityUpdate",v),void 0!==l&&l()}}(i,o,w,r,(function(e){S.cancel(),t.error(e)}),S.signal),I=k.estimateRef,x=k.abrCallbacks,R=u.createSegmentFetcher(b.type,{onRequestBegin:x.requestBegin,onRequestEnd:x.requestEnd,onProgress:x.requestProgress,onMetrics:x.metrics});function C(e,t,n,i){var o=new m.Ay;o.linkToSignal(S.signal);var u=(0,h.D)(f,(function(t){return M(e,t)}),o.signal),l="video"===b.type?v:new h.A(1/0);c.A.info("Stream: changing representation",b.type,e.id,e.bitrate);var d=(0,p.A)({},i,{error:function(r){var a,o=(0,G.A)(r,{defaultCode:"NONE",defaultReason:"Unknown `RepresentationStream` error"});if("BUFFER_FULL_ERROR"!==o.code)i.error(r);else{var s=f.getValue(),u=.7*(null!==(a=T.get(e.id))&&void 0!==a?a:1);if(T.set(e.id,u),u<=.05||M(e,s)<=2)return void i.error(o);(0,ee.A)(4e3,S.signal).then((function(){return C(e,t,n,i)})).catch(g.A)}},terminating:function(){o.cancel(),i.terminating()}});tt({playbackObserver:r,content:{representation:e,adaptation:b,period:_,manifest:A},segmentBuffer:s,segmentFetcher:R,terminate:t,options:{bufferGoal:u,maxBufferSize:l,drmSystemId:a.drmSystemId,fastSwitchThreshold:n}},d,S.signal)}function M(e,t){var n=T.get(e.id),r=void 0!==n?n:1;return void 0===n&&T.set(e.id,r),r<1&&t===1/0?3e5*r:t*r}I.onUpdate((function(e){var n=e.bitrate;void 0!==n&&n!==E&&(E=n,c.A.debug("Stream: new "+b.type+" bitrate estimate",n),t.bitrateEstimationChange({type:b.type,bitrate:n}))}),{emitCurrentValue:!0,clearSignal:S.signal}),function e(n){var r=new m.Ay;r.linkToSignal(S.signal);var i=I.getValue(),o=i.representation,s=i.manual;if(null===o)return;if(y&&s&&!n){var u=l.A.getCurrent().DELTA_POSITION_AFTER_RELOAD;return De()((function(){if(!r.isUsed()&&I.getValue().manual){var e=u.bitrateSwitch;return t.waitingMediaSourceReload({bufferType:b.type,period:_,timeOffset:e,stayInPeriod:!0})}}))}var d=new h.A(null,r.signal);I.onUpdate((function(e){if(null!==e.representation&&e.representation.id!==o.id)return e.urgent?(c.A.info("Stream: urgent Representation switch",b.type),d.setValue({urgent:!0})):(c.A.info("Stream: slow Representation switch",b.type),d.setValue({urgent:!1}))}),{clearSignal:r.signal,emitCurrentValue:!0});var f=new h.A(0);a.enableFastSwitching&&I.onUpdate((function(e){f.setValueIfChanged(null==e?void 0:e.knownStableBitrate)}),{clearSignal:r.signal,emitCurrentValue:!0});var v={type:b.type,period:_,representation:o};if(w.setValue(o),S.isUsed())return;if(t.representationChange(v),S.isUsed())return;var p={streamStatusUpdate:t.streamStatusUpdate,encryptionDataEncountered:t.encryptionDataEncountered,manifestMightBeOufOfSync:t.manifestMightBeOufOfSync,needsManifestRefresh:t.needsManifestRefresh,inbandEvent:t.inbandEvent,warning:t.warning,error:function(e){m.Ay.isCancellationError(e)&&S.isUsed()||(S.cancel(),t.error(e))},addedSegment:function(e){x.addedSegment(e),S.isUsed()||t.addedSegment(e)},terminating:function(){if(!r.isUsed())return r.cancel(),e(!1)}};C(o,d,f,p)}(!0)},rt=n(9828);var it=function(e,t){var n=e.split(";"),r=n[0],i=n.slice(1),a=t.split(";"),o=a[0],s=a.slice(1);if(r!==o)return!1;var u=(0,S.A)(i,(function(e){return(0,rt.A)(e,"codecs=")})),l=(0,S.A)(s,(function(e){return(0,rt.A)(e,"codecs=")}));if(void 0===u||void 0===l)return!1;var d=u.substring(7),c=l.substring(7),f=d.split(".")[0];f="hev1"===f?"hvc1":f;var v=c.split(".")[0];return f===(v="hev1"===v?"hvc1":v)};function at(e,t,n,r,i){if(void 0!==e.codec&&"reload"===i.onCodecSwitch&&!function(e,t){return e.getPlayableRepresentations().some((function(e){return it(e.getMimeTypeString(),t)}))}(n,e.codec))return{type:"needs-reload",value:void 0};var a=e.getBufferedRanges();if(0===a.length)return{type:"continue",value:void 0};var o=(0,y.Nn)(a),s=t.start,u=null==t.end?1/0:t.end,d=(0,y.aW)(o,[{start:s,end:u}]);if(0===d.length)return{type:"continue",value:void 0};e.synchronizeInventory();var c=e.getInventory();if(!c.some((function(e){return e.infos.period.id===t.id&&e.infos.adaptation.id!==n.id})))return{type:"continue",value:void 0};var f=function(e,t,n){return e.reduce((function(e,r){if(r.infos.period.id!==t.id||r.infos.adaptation.id!==n.id)return e;var i=r.bufferedStart,a=r.bufferedEnd;return void 0===i||void 0===a||e.push({start:i,end:a}),e}),[])}(c,t,n),v=(0,y.bo)(d,f);if(0===v.length)return{type:"continue",value:void 0};var p=r.currentTime,h=i.audioTrackSwitchingMode;if(("video"===n.type||"audio"===n.type&&"reload"===h)&&(0,y.gV)({start:s,end:u},p)&&(r.readyState>1||!n.getPlayableRepresentations().some((function(t){var n;return it(t.getMimeTypeString(),null!==(n=e.codec)&&void 0!==n?n:"")})))&&!(0,y.Hh)(f,p))return{type:"needs-reload",value:void 0};var m="audio"===n.type&&"direct"===h,g=[],A=function(e,t){for(var n=0;n=t.start)return n>0?e[n-1]:null;return e.length>0?e[e.length-1]:null}(c,t);null!==A&&(void 0===A.bufferedEnd||t.start-A.bufferedEnd<1)&&g.push({start:0,end:t.start+1});var _=n.type,b=l.A.getCurrent().ADAPTATION_SWITCH_BUFFER_PADDINGS,S=b[_].before;null==S&&(S=0);var E=b[_].after;if(null==E&&(E=0),m||g.push({start:p-S,end:p+E}),void 0!==t.end){var T=function(e,t){for(var n=0;nt.start)return e[n];return null}(c,t);null!==T&&(void 0===T.bufferedStart||T.bufferedStart-t.end<1)&&g.push({start:t.end-1,end:Number.MAX_VALUE})}var w=(0,y.bo)(v,g);return 0===w.length?{type:"continue",value:void 0}:m?{type:"flush-buffer",value:w}:{type:"clean-buffer",value:w}}function ot(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=o.end&&(c.A.debug('Stream: full "empty" AdaptationStream',n),s=!0),i.streamStatusUpdate({period:o,bufferType:n,position:u,imminentDiscontinuity:null,isEmptyStream:!0,hasFinishedLoading:s,neededSegments:[]})}t.onUpdate(u,{emitCurrentValue:!1,clearSignal:a}),e.listen(u,{includeLastObservation:!1,clearSignal:a}),u()}var dt=function(e,t,n){var i=e.bufferType,a=e.content,s=e.garbageCollectors,u=e.playbackObserver,d=e.representationEstimator,f=e.segmentFetcherCreator,v=e.segmentBuffersStore,g=e.options,A=e.wantedBufferAhead,_=e.maxVideoBufferSize,b=a.period,S=new h.A(void 0,n);if(t.periodStreamReady({type:i,period:b,adaptationRef:S}),!n.isCancelled()){var E,T=!0;S.onUpdate((function(e){(0,r.A)(o().mark((function r(){var a,d,f,p,h,y,_,S,I,x,R,C,M,P,D,N;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(void 0!==e){r.next=2;break}return r.abrupt("return");case 2:if((d=new m.Ay).linkToSignal(n),null==E||E.cancel(),E=d,null!==e){r.next=34;break}if(c.A.info("Stream: Set no "+i+" Adaptation. P:",b.start),"initialized"!==(f=v.getStatus(i)).type){r.next=26;break}if(c.A.info("Stream: Clearing previous "+i+" SegmentBuffer"),!Me.isNative(i)){r.next=15;break}return r.abrupt("return",k(0,!0,d.signal));case 15:if(p=null!==(a=b.end)&&void 0!==a?a:1/0,!(b.start>p)){r.next=20;break}c.A.warn("Stream: Can't free buffer: period's start is after its end"),r.next=24;break;case 20:return r.next=22,f.value.removeBuffer(b.start,p,d.signal);case 22:if(!d.isUsed()){r.next=24;break}return r.abrupt("return");case 24:r.next=30;break;case 26:if("uninitialized"!==f.type){r.next=30;break}if(v.disableSegmentBuffer(i),!d.isUsed()){r.next=30;break}return r.abrupt("return");case 30:if(t.adaptationChange({type:i,adaptation:null,period:b}),!d.isUsed()){r.next=33;break}return r.abrupt("return");case 33:return r.abrupt("return",lt(u,A,i,{period:b},t,d.signal));case 34:if(h=l.A.getCurrent(),y=h.DELTA_POSITION_AFTER_RELOAD,_=T?0:"audio"===i?y.trackSwitch.audio:"video"===i?y.trackSwitch.video:y.trackSwitch.other,T=!1,!Me.isNative(i)||"disabled"!==v.getStatus(i).type){r.next=39;break}return r.abrupt("return",k(_,!0,d.signal));case 39:if(c.A.info("Stream: Updating "+i+" adaptation","A: "+e.id,"P: "+b.start),t.adaptationChange({type:i,adaptation:e,period:b}),!d.isUsed()){r.next=43;break}return r.abrupt("return");case 43:if(S=u.getReadyState(),I=ut(v,i,e,g),x={currentTime:u.getCurrentTime(),readyState:S},"needs-reload"!==(R=at(I,b,e,x,g)).type){r.next=49;break}return r.abrupt("return",k(_,!0,d.signal));case 49:return r.next=51,v.waitForUsableBuffers(d.signal);case 51:if(!d.isUsed()){r.next=53;break}return r.abrupt("return");case 53:if("flush-buffer"!==R.type&&"clean-buffer"!==R.type){r.next=67;break}C=ot(R.value);case 55:if((M=C()).done){r.next=63;break}return P=M.value,D=P.start,N=P.end,r.next=59,I.removeBuffer(D,N,d.signal);case 59:if(!d.isUsed()){r.next=61;break}return r.abrupt("return");case 61:r.next=55;break;case 63:if("flush-buffer"!==R.type){r.next=67;break}if(t.needsBufferFlush(),!d.isUsed()){r.next=67;break}return r.abrupt("return");case 67:s.get(I)(d.signal),w(e,I,d.signal);case 69:case"end":return r.stop()}}),r)})))().catch((function(e){e instanceof m.AL||(null==E||E.cancel(),t.error(e))}))}),{clearSignal:n,emitCurrentValue:!0})}function w(e,n,r){var o=a.manifest,s=function(e,t){return e.deriveReadOnlyObserver((function(e,n){var r=new h.A(i(),n);return e.onUpdate(a,{clearSignal:n,emitCurrentValue:!1}),r;function i(){var n=e.getValue(),r=t.getBufferedRanges(),i=(0,y.vK)(r,n.position.last);return(0,p.A)({},n,{bufferGap:i})}function a(){r.setValue(i())}}))}(u,n);nt({content:{manifest:o,period:b,adaptation:e},options:g,playbackObserver:s,representationEstimator:d,segmentBuffer:n,segmentFetcherCreator:f,wantedBufferAhead:A,maxVideoBufferSize:_},Object.assign(Object.assign({},t),{error:function(e){if(!Me.isNative(i)){c.A.error("Stream: "+i+" Stream crashed. Aborting it.",e instanceof Error?e:""),v.disposeSegmentBuffer(i);var n=(0,G.A)(e,{defaultCode:"NONE",defaultReason:"Unknown `AdaptationStream` error"});if(t.warning(n),r.isCancelled())return;return lt(u,A,i,{period:b},t,r)}c.A.error("Stream: "+i+" Stream crashed. Stopping playback.",e instanceof Error?e:""),t.error(e)}}),r)}function k(e,n,r){De()((function(){u.listen((function(){t.waitingMediaSourceReload({bufferType:i,period:b,timeOffset:e,stayInPeriod:n})}),{includeLastObservation:!0,clearSignal:r})}))}};function ct(e,t){if(0===t.length)return[];e.synchronizeInventory();for(var n,r=[],i=e.getInventory(),a=function(){var e=i[o];if(t.some((function(t){return e.infos.period.id===t.period.id&&e.infos.adaptation.id===t.adaptation.id&&e.infos.representation.id===t.representation.id}))){var n=e.bufferedStart,a=e.bufferedEnd;if(void 0===n||void 0===a)return c.A.warn("SO: No buffered start or end found from a segment."),{v:[{start:0,end:Number.MAX_VALUE}]};var s=r[r.length-1];void 0!==s&&s.end===n?s.end=a:r.push({start:n,end:a})}},o=0;o=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?t[t.length-1].end>=n-5:t[0].start<=n+5}var ht=function(e,t,n,i,a,s,u,f){for(var v,p=e.manifest,g=e.initialPeriod,y=s.maxBufferAhead,A=s.maxBufferBehind,_=s.wantedBufferAhead,b=s.maxVideoBufferSize,S=l.A.getCurrent(),E=S.MINIMUM_MAX_BUFFER_AHEAD,T=S.MAXIMUM_MAX_BUFFER_AHEAD,w=S.MAXIMUM_MAX_BUFFER_BEHIND,k=new Oe((function(e){var n,r,i=e.bufferType,a=null!==(n=w[i])&&void 0!==n?n:1/0,o=null!==(r=T[i])&&void 0!==r?r:1/0;return function(n){Le({segmentBuffer:e,playbackObserver:t,maxBufferBehind:(0,h.D)(A,(function(e){return Math.min(e,a)}),n),maxBufferAhead:(0,h.D)(y,(function(e){var t,n=Math.max(e,null!==(t=E[i])&&void 0!==t?t:0);return Math.min(n,o)}),n)},n)}})),I=ft(i.getBufferTypes());!(v=I()).done;){x(v.value,g)}function x(e,n){var a=new Ne.A((function(e,t){return e.start-t.start})),s=!1,l=new m.Ay;return l.linkToSignal(f),t.listen((function(t){var n,r,i=t.position,o=null!==(n=i.pending)&&void 0!==n?n:i.last;if(s&&function(e){var t=a.head(),n=a.last();if(null==t||null==n)return!0;return t.start>e||(null==n.end?1/0:n.end)0;){var d=a.get(a.length()-1);a.removeElement(d),u.periodStreamCleared({type:e,period:d})}l.cancel(),(l=new m.Ay).linkToSignal(f);var h=null!==(r=p.getPeriodForTime(o))&&void 0!==r?r:p.getNextPeriod(o);if(void 0===h)return c.A.warn("Stream: The wanted position is not found in the Manifest."),void(s=!0);v(h)}}),{clearSignal:f,includeLastObservation:!0}),p.addEventListener("decipherabilityUpdate",(function(e){(function(e){return h.apply(this,arguments)})(e).catch((function(e){l.cancel(),u.error(e)}))}),f),v(n);function v(t){var n=Object.assign(Object.assign({},u),{waitingMediaSourceReload:function(e){var t=a.head();void 0===t||t.id!==e.period.id?u.lockedStream({bufferType:e.bufferType,period:e.period}):u.needsMediaSourceReload({timeOffset:e.timeOffset,minimumPosition:e.stayInPeriod?e.period.start:void 0,maximumPosition:e.stayInPeriod?e.period.end:void 0})},periodStreamReady:function(e){s=!0,a.add(e.period),u.periodStreamReady(e)},periodStreamCleared:function(e){a.removeElement(e.period),u.periodStreamCleared(e)},error:function(e){l.cancel(),u.error(e)}});R(e,t,n,l.signal)}function h(){return h=(0,r.A)(o().mark((function n(r){var h,g,y,A,_,b,S,E,T,w,k,I,x;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(h=i.getStatus(e),0!==(g=r.filter((function(t){return t.adaptation.type===e}))).length&&"initialized"===h.type&&!g.every((function(e){return!0===e.representation.decipherable}))){n.next=4;break}return n.abrupt("return");case 4:for(y=h.value,A=g.filter((function(e){return void 0===e.representation.decipherable})),_=g.filter((function(e){return!1===e.representation.decipherable})),b=ct(y,_),S=ct(y,A),s=!1,c.A.info("Stream: Destroying all PeriodStreams for decipherability matters",e);a.length()>0;)E=a.get(a.length()-1),a.removeElement(E),u.periodStreamCleared({type:e,period:E});l.cancel(),(l=new m.Ay).linkToSignal(f),T=0,w=[].concat(b,S);case 16:if(!(T=r.end){var l=p.getPeriodAfter(r);if(r.containsTime(u,l))return;c.A.info("Stream: Destroying PeriodStream as the current playhead moved above it",e,r.start,null!==(a=s.pending)&&void 0!==a?a:s.last,r.end),n(),o.periodStreamCleared({type:e,period:r}),d.cancel()}}),{clearSignal:u,includeLastObservation:!0});var f={bufferType:e,content:{manifest:p,period:r},garbageCollectors:k,maxVideoBufferSize:b,segmentFetcherCreator:a,segmentBuffersStore:i,options:s,playbackObserver:t,representationEstimator:n,wantedBufferAhead:_},v=Object.assign(Object.assign({},o),{streamStatusUpdate:function(t){if(t.hasFinishedLoading){var n=p.getPeriodAfter(r);null!==n&&function(t){if(null!==l){if(l.period.id===t.id)return;c.A.warn("Stream: Creating next `PeriodStream` while one was already created.",e,t.id,l.period.id),o.periodStreamCleared({type:e,period:l.period}),l.canceller.cancel()}var n=new m.Ay;n.linkToSignal(u),l={canceller:n,period:t},R(e,t,o,l.canceller.signal)}(n)}else null!==l&&(c.A.info("Stream: Destroying next PeriodStream due to current one being active",e,l.period.start),o.periodStreamCleared({type:e,period:l.period}),l.canceller.cancel(),l=null);o.streamStatusUpdate(t)},error:function(e){null!==l&&(l.canceller.cancel(),l=null),d.cancel(),o.error(e)}});dt(f,v,d.signal)}},mt=ht,gt=n(4640);function yt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);na.getMaximumAvailablePosition()){var u=new d.A("MEDIA_TIME_AFTER_MANIFEST","The current position is after the latest time announced in the Manifest.");i.trigger("warning",u)}}),{includeLastObservation:!0,clearSignal:o}),t.addEventListener("manifestUpdate",(function(){i.trigger("endingPositionChange",i._getManifestEndTime()),o.isCancelled()||i._checkEndOfStream()}),o),i}(0,i.A)(t,e);var n=t.prototype;return n.getCurrentEndingTime=function(){return this._getManifestEndTime()},n.onAdaptationChange=function(e,t,n){if(this._manifest.isLastPeriodKnown){var r=this._manifest.periods[this._manifest.periods.length-1];if(t.id===(null==r?void 0:r.id)&&("audio"===e||"video"===e)){"audio"===e?this._maximumPositionCalculator.updateLastAudioAdaptation(n):this._maximumPositionCalculator.updateLastVideoAdaptation(n);var i=this._maximumPositionCalculator.getEndingPosition(),a=void 0!==i?{isEnd:!0,endingPosition:i}:{isEnd:!1,endingPosition:this._maximumPositionCalculator.getMaximumAvailablePosition()};this.trigger("endingPositionChange",a)}}this._canceller.isUsed()||null===n&&this._addActivelyLoadedPeriod(t,e)},n.onRepresentationChange=function(e,t){this._addActivelyLoadedPeriod(t,e)},n.onPeriodCleared=function(e,t){this._removeActivelyLoadedPeriod(t,e)},n.onLastSegmentFinishedLoading=function(e){var t=this._lazilyCreateActiveStreamInfo(e);t.hasFinishedLoadingLastPeriod||(t.hasFinishedLoadingLastPeriod=!0,this._checkEndOfStream())},n.onLastSegmentLoadingResume=function(e){var t=this._lazilyCreateActiveStreamInfo(e);t.hasFinishedLoadingLastPeriod&&(t.hasFinishedLoadingLastPeriod=!1,this._checkEndOfStream())},n.dispose=function(){this.removeEventListener(),this._canceller.cancel()},n._addActivelyLoadedPeriod=function(e,t){var n=this._lazilyCreateActiveStreamInfo(t);n.activePeriods.has(e)||(n.activePeriods.add(e),this._checkCurrentPeriod())},n._removeActivelyLoadedPeriod=function(e,t){var n=this._activeStreams.get(t);void 0!==n&&n.activePeriods.has(e)&&(n.activePeriods.removeElement(e),this._checkCurrentPeriod())},n._checkCurrentPeriod=function(){var e=this;if(0!==this._allBufferTypes.length){var t=this._activeStreams.get(this._allBufferTypes[0]);if(void 0!==t)for(var n,r,i=function(){for(var t=r.value,n=!0,i=1;i=0;a--){var o=i[a];try{"open"===r&&(c.A.info("Init: Aborting SourceBuffer before removing"),o.abort()),c.A.info("Init: Removing SourceBuffer from mediaSource"),t.removeSourceBuffer(o)}catch(e){c.A.warn("Init: Error while disposing SourceBuffer",e instanceof Error?e:"")}}i.length>0&&c.A.warn("Init: Not all SourceBuffers could have been removed.")}if(c.A.info("Init: Clearing HTMLMediaElement's src"),(0,Tt.A)(e),null!==n)try{c.A.debug("Init: Revoking previous URL"),URL.revokeObjectURL(n)}catch(e){c.A.warn("Init: Error while revoking the media source URL",e instanceof Error?e:"")}}function Rt(e,t){return(0,v.A)(t,(function(n){var r=function(e,t){if(null==wt.j)throw new d.A("MEDIA_SOURCE_NOT_SUPPORTED","No MediaSource Object was found in the current browser.");var n=(0,It.A)(e.src)?e.src:null;xt(e,null,n),c.A.info("Init: Creating MediaSource");var r=new wt.j,i=URL.createObjectURL(r);return c.A.info("Init: Attaching MediaSource URL to the media element",i),e.src=i,t.register((function(){xt(e,r,i)})),r}(e,t);kt.bF(r,(function(){c.A.info("Init: MediaSource opened"),n(r)}),t)}))}function Ct(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Mt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0?a:Math.max(i,a+d)}if(!(0,j.A)(n.fromLivePosition)){c.A.debug("Init: using startAt.fromLivePosition");var f=null!==(r=e.getLivePosition())&&void 0!==r?r:a,v=n.fromLivePosition;return v>=0?f:Math.max(i,f+v)}if(!(0,j.A)(n.percentage)){c.A.debug("Init: using startAt.percentage");var p=n.percentage;return p>100?a:p<0?i:i+(a-i)*(+p/100)}}var h=e.getMinimumSafePosition();if(e.isLive){var m,g=e.suggestedPresentationDelay,y=e.clockOffset,A=e.getMaximumSafePosition(),_=l.A.getCurrent().DEFAULT_LIVE_GAP;if(void 0===y)c.A.info("Init: no clock offset found for a live content, starting close to maximum available position"),m=A;else{c.A.info("Init: clock offset found for a live content, checking if we can start close to it");var b=void 0===e.availabilityStartTime?0:e.availabilityStartTime,S=(performance.now()+y)/1e3-b;m=Math.min(A,S)}var E=void 0!==g?g:t?_.LOW_LATENCY:_.DEFAULT;return c.A.debug("Init: "+m+" defined as the live time, applying a live gap of "+E),Math.max(m-E,h)}return c.A.info("Init: starting at the minimum available position:",h),h}var Ut=n(5097),Bt=n(107),Ft=n(6899);var Vt=31536e3,zt=function(){function e(e){this._mediaSource=e,this._currentMediaSourceDurationUpdateCanceller=null}var t=e.prototype;return t.updateDuration=function(e,t){null!==this._currentMediaSourceDurationUpdateCanceller&&this._currentMediaSourceDurationUpdateCanceller.cancel(),this._currentMediaSourceDurationUpdateCanceller=new m.Ay;var n=this._mediaSource,r=this._currentMediaSourceDurationUpdateCanceller.signal,i=function(e,t){var n=new h.A("open"===e.readyState,t);return(0,kt.bF)(e,(function(){c.A.debug("Init: Reacting to MediaSource open in duration updater"),n.setValueIfChanged(!0)}),t),(0,kt.Z1)(e,(function(){c.A.debug("Init: Reacting to MediaSource ended in duration updater"),n.setValueIfChanged(!1)}),t),(0,kt.XC)(e,(function(){c.A.debug("Init: Reacting to MediaSource close in duration updater"),n.setValueIfChanged(!1)}),t),n}(n,r),a=new m.Ay;a.linkToSignal(r),i.onUpdate((function(){if(a.cancel(),!i.getValue())return;(a=new m.Ay).linkToSignal(r);var o=function(e,t){if(0===e.length){var n=new h.A(!1);return n.finish(),n}var r=new h.A(!1,t);o();for(var i=function(){var n=e[a];n.addEventListener("updatestart",o),n.addEventListener("update",o),t.register((function(){n.removeEventListener("updatestart",o),n.removeEventListener("update",o)}))},a=0;a0&&(i=Math.max(o.buffered.end(u-1)))}if(r===e.duration)return"success";if(i>r){if(i=.1?f=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no||void 0!==f&&o>=f)&&($t(d)&&u.push(d.publicEvent),this._eventsBeingPlayed.delete(d)):c<=o&&void 0!==f&&o=(null!=f?f:c)&&(a?s.push({type:"stream-event-skip",value:d.publicEvent}):(s.push({type:"stream-event",value:d.publicEvent}),$t(d)&&u.push(d.publicEvent)))}if(s.length>0)for(var v,p=Yt(s);!(v=p()).done;){var h=v.value;if("stream-event"===h.type?this.trigger("event",h.value):this.trigger("eventSkip",h.value),r.isCancelled())return}if(u.length>0)for(var m,g=Yt(u);!(m=g()).done;){var y=m.value;if("function"==typeof y.onExit&&y.onExit(),r.isCancelled())return}},t}(q.A);function $t(e){return void 0!==e.end}var Zt=Xt,Jt=n(8345);function en(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return tn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nd.end&&(t=d.end-1)}}else t=u;return{maximumPosition:o.getMaximumSafePosition(),position:{last:n.position,pending:t},duration:n.duration,paused:{last:n.paused,pending:i.getValue()||!r===n.paused?void 0:!r},readyState:n.readyState,speed:l}}function f(){d.setValue(c())}}))}(p,{autoPlay:a,manifest:c,initialPlayPerformed:k,initialSeekPerformed:I,speed:_,startTime:s},n),R=this._createRebufferingController(p,c,_,n),C=this._createContentTimeBoundariesObserver(c,v,x,E,n);u&&c.addEventListener("decipherabilityUpdate",(function(e){e.some((function(e){return!0!==e.representation.decipherable}))&&P(0,void 0,void 0)}),n),w.then((function(){(0,Ut.A)(p,f,!1,n).onUpdate((function(e,t){e&&(t(),i.trigger("loaded",{segmentBuffersStore:E}))}),{emitCurrentValue:!0,clearSignal:n})})).catch((function(e){n.isCancelled()||i._onFatalError(e)}));var M=this;mt({manifest:c,initialPeriod:b},x,y,E,A,o,{needsBufferFlush:function(){var e=f.currentTime+.001;p.setCurrentTime(e),p.listen((function(t,n){(null!==t.currentRange||t.position>e+.1)&&(n(),p.setCurrentTime(t.position+.001))}),{includeLastObservation:!1,clearSignal:n})},streamStatusUpdate:function(e){var t=e.period,r=e.bufferType,i=e.imminentDiscontinuity,a=e.position;R.updateDiscontinuityInfo({period:t,bufferType:r,discontinuity:i,position:a}),n.isCancelled()||c.isLastPeriodKnown&&e.period.id===c.periods[c.periods.length-1].id&&(e.hasFinishedLoading||e.isEmptyStream?C.onLastSegmentFinishedLoading(e.bufferType):C.onLastSegmentLoadingResume(e.bufferType))},needsManifestRefresh:function(){return M._manifestFetcher.scheduleManualRefresh({enablePartialRefresh:!0,canUseUnsafeMode:!0})},manifestMightBeOufOfSync:function(){var e=l.A.getCurrent().OUT_OF_SYNC_MANIFEST_REFRESH_DELAY;M._manifestFetcher.scheduleManualRefresh({enablePartialRefresh:!1,canUseUnsafeMode:!1,delay:e})},lockedStream:function(e){return R.onLockedStream(e.bufferType,e.period)},adaptationChange:function(e){M.trigger("adaptationChange",e),n.isCancelled()||C.onAdaptationChange(e.type,e.period,e.adaptation)},representationChange:function(e){M.trigger("representationChange",e),n.isCancelled()||C.onRepresentationChange(e.type,e.period)},inbandEvent:function(e){return M.trigger("inbandEvents",e)},warning:function(e){return M.trigger("warning",e)},periodStreamReady:function(e){return M.trigger("periodStreamReady",e)},periodStreamCleared:function(e){C.onPeriodCleared(e.type,e.period),n.isCancelled()||M.trigger("periodStreamCleared",e)},bitrateEstimationChange:function(e){return M.trigger("bitrateEstimationChange",e)},addedSegment:function(e){return M.trigger("addedSegment",e)},needsMediaSourceReload:function(e){P(e.timeOffset,e.minimumPosition,e.maximumPosition)},needsDecipherabilityFlush:function(){var e,n,r,i,a=(0,W.A)(f);if(void 0===(i=null==a?void 0:a[0])||i.indexOf("widevine")<0){var o=x.getReference().getValue(),s=null!==(e=o.position.pending)&&void 0!==e?e:x.getCurrentTime(),u=null!==(n=o.paused.pending)&&void 0!==n?n:x.getIsPaused();t({position:s,autoPlay:!u})}else{var l=x.getReference().getValue(),d=null!==(r=l.position.pending)&&void 0!==r?r:x.getCurrentTime();d+.0010)return l.setValue(!0),void u.cancel()}var a=r.A7?4:3;return e.readyState>=a&&(null!==e.currentRange||e.ended)&&(!(0,i.A)()||t.duration>0)?(l.setValue(!0),void u.cancel()):void 0}}),{includeLastObservation:!0,clearSignal:u.signal}),l}},107:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(2097),i=n(9770),a=n(443),o=n(7913);var s=n(5575),u=n(9477),l=n(8315);function d(e,t,n,d,c,f,v){var p,h,m=new Promise((function(e,t){p=e,h=t})),g=new l.A(!1,v),y=new l.A(!1,v);e.addEventListener("loadedmetadata",_);var A=v.register((function(t){e.removeEventListener("loadedmetadata",_),h(t)}));return e.readyState>=i.t.HAVE_METADATA&&_(),{autoPlayResult:m,initialPlayPerformed:y,initialSeekPerformed:g};function _(){e.removeEventListener("loadedmetadata",_);var i=!1,l=function(e){u.A.info("Init: Set initial time",e),t.setCurrentTime(e),i=!0,g.setValue(!0),g.finish()},m="function"==typeof n?n():n;if(void 0===m&&f&&e.readyState=HTMLMediaElement.HAVE_CURRENT_DATA){var r="function"==typeof n?n():n;void 0===r?(g.setValue(!0),g.finish()):f&&a.dX?setTimeout((function(){l(r)}),0):l(r),t()}})):void 0===m||(a.qe||a.h$)&&0===m?(g.setValue(!0),g.finish()):f&&a.dX?setTimeout((function(){l(m)}),0):l(m),(0,r.A)()&&0===e.duration){var b=new s.A("MEDIA_ERR_NOT_LOADED_METADATA","Cannot load automatically: your browser falsely announced having loaded the content.");c(b)}if(!v.isCancelled()){var S=i;t.listen((function(t,n){!i||!t.seeking&&"seeking"!==t.event&&"internal-seeking"!==t.event?!S&&!t.seeking&&(o.A&&t.readyState>=3||null===t.rebuffering)&&t.readyState>=1&&(n(),function(){var t,n;if(u.A.info("Init: Can begin to play content"),!d)return e.autoplay&&u.A.warn("Init: autoplay is enabled on HTML media element. Media will play as soon as possible."),y.setValue(!0),y.finish(),A(),p({type:"skipped"});if(e.ended)return u.A.warn("Init: autoplay is enabled but the video is ended. Skipping autoplay to prevent video to start again"),y.setValue(!0),y.finish(),A(),p({type:"skipped"});try{n=null!==(t=e.play())&&void 0!==t?t:Promise.resolve()}catch(e){return A(),h(e)}n.then((function(){if(!v.isCancelled())return y.setValue(!0),y.finish(),A(),p({type:"autoplay"})})).catch((function(e){if(A(),!v.isCancelled()){if(e instanceof Error&&"NotAllowedError"===e.name){u.A.warn("Init: Media element can't play. It may be due to browser auto-play policies.");var t=new s.A("MEDIA_ERR_BLOCKED_AUTOPLAY","Cannot trigger auto-play automatically: your browser does not allow it.");if(c(t),v.isCancelled())return;return p({type:"autoplay-blocked"})}h(e)}}))}()):S=!1}),{includeLastObservation:!0,clearSignal:v})}}}},6899:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(1956),i=n(418),a=n(9477),o=n(8315),s=n(2507),u=n(2137);function l(e,t,n,l,d){if(0===t.length)return h("No `keySystems` option given.");if(null===i.A.decrypt)return h("EME feature not activated.");var c=new s.Ay;c.linkToSignal(d);var f=new o.A({initializationState:{type:"uninitialized",value:null},drmSystemId:void 0},d),v=i.A.decrypt;if(!v.hasEmeApis())return h("EME API not available on the current page.");a.A.debug("Init: Creating ContentDecryptor");var p=new v(e,t);return p.addEventListener("stateChange",(function(e){if(e===u.R.WaitingForAttachment){var t=new o.A(!1);t.onUpdate((function(t,n){t&&(n(),e===u.R.WaitingForAttachment&&p.attach())}),{clearSignal:c.signal}),f.setValue({initializationState:{type:"awaiting-media-link",value:{isMediaLinked:t}},drmSystemId:p.systemId})}else e===u.R.ReadyForContent&&(f.setValue({initializationState:{type:"initialized",value:null},drmSystemId:p.systemId}),p.removeEventListener("stateChange"))})),p.addEventListener("error",(function(e){c.cancel(),l.onError(e)})),p.addEventListener("warning",(function(e){l.onWarning(e)})),n.onUpdate((function(e){null!==e&&p.onInitializationData(e)}),{clearSignal:c.signal}),c.signal.register((function(){p.dispose()})),f;function h(e){n.onUpdate((function(t,n){if(null!==t){n();var i=new r.A("MEDIA_IS_ENCRYPTED_ERROR",e);l.onError(i)}}),{clearSignal:d});var t=new o.A({initializationState:{type:"initialized",value:null},drmSystemId:void 0});return t.finish(),t}}},3137:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(7387),i=n(7913),a=n(5151),o=n(5575),s=n(9477),u=n(79),l=n(3650),d=n(2507),c=1/60,f=function(e){function t(t,n,r){var i;return(i=e.call(this)||this)._playbackObserver=t,i._manifest=n,i._speed=r,i._discontinuitiesStore=[],i._isStarted=!1,i._canceller=new d.Ay,i}(0,r.A)(t,e);var n=t.prototype;return n.start=function(){var e=this;if(!this._isStarted){var t;this._isStarted=!0;var n=null,r=new h(this._playbackObserver,this._speed);this._canceller.signal.register((function(){r.dispose()}));var o=null;this._playbackObserver.listen((function(u){var d,f,v=e._discontinuitiesStore,h=u.buffered,m=u.position,g=u.readyState,y=u.rebuffering,A=u.freezing,_=a.A.getCurrent(),b=_.BUFFER_DISCONTINUITY_THRESHOLD,S=_.FORCE_DISCONTINUITY_SEEK_DELAY,E=_.FREEZING_STALLED_DELAY,T=_.UNFREEZING_SEEK_DELAY,w=_.UNFREEZING_DELTA_POSITION;if(!u.seeking&&i.A&&null===n&&null!==t&&u.positionT&&(s.A.warn("Init: trying to seek to un-freeze player"),e._playbackObserver.setCurrentTime(e._playbackObserver.getCurrentTime()+w),o={attemptTimestamp:I}),I-A.timestamp>E)return null===y||null!==n?r.stopRebuffering():r.startRebuffering(),void e.trigger("stalled","freezing")}else o=null;if(null===y)return r.stopRebuffering(),1===g?(f=u.seeking?null!==u.pendingInternalSeek?"internal-seek":"seeking":"not-ready",void e.trigger("stalled",f)):void e.trigger("unstalled",null);var x="seeking"===y.reason&&null!==u.pendingInternalSeek?"internal-seek":y.reason;if(null!==n){var R=performance.now();if(R-n0){var M=function(e,t,n){if(0===e.length)return null;for(var r=null,i=0;in)return r;var o=void 0;if(void 0===a.end||a.end>n){var u=e[i],l=u.discontinuity,d=u.position,f=l.start,v=l.end;if(n>=(null!=f?f:d)-c)if(null===v){var p=t.getPeriodAfter(a);null!==p?o=p.start+c:s.A.warn("Init: discontinuity at Period's end but no next Period")}else no?r:o)}}return r}(v,e._manifest,C);if(null!==M){var P=M+.001;if(!(P<=e._playbackObserver.getCurrentTime()))return s.A.warn("SA: skippable discontinuity found in the stream",m,P),e._playbackObserver.setCurrentTime(P),void e.trigger("warning",p(C,P));s.A.info("Init: position to seek already reached, no seeking",e._playbackObserver.getCurrentTime(),P)}}var D=null!=C?C:m,N=(0,l.Td)(h,D);if(e._speed.getValue()>0&&N=0;L--){var U=e._manifest.periods[L];if(void 0!==U.end&&U.end<=D){if(e._manifest.periods[L+1].start>D&&e._manifest.periods[L+1].start>e._playbackObserver.getCurrentTime()){var B=e._manifest.periods[L+1];return e._playbackObserver.setCurrentTime(B.start),void e.trigger("warning",p(D,B.start))}break}}e.trigger("stalled",x)}else e.trigger("stalled",x)}),{includeLastObservation:!0,clearSignal:this._canceller.signal})}},n.updateDiscontinuityInfo=function(e){this._isStarted||this.start();var t=this._playbackObserver.getReference().getValue();!function(e,t,n){for(;e.length>0&&void 0!==e[0].period.end&&e[0].period.end+10r.start)return void(v(t)&&e.splice(a,0,t));v(t)&&e.push(t)}(this._discontinuitiesStore,e,t)},n.onLockedStream=function(e,t){var n;this._isStarted||this.start();var r=this._playbackObserver.getReference().getValue();if(!(!r.rebuffering||r.paused||this._speed.getValue()<=0||"audio"!==e&&"video"!==e)){var i=r.position,a=null!==(n=r.rebuffering.position)&&void 0!==n?n:i,o=t.start;i=0;n--){if(e[n].startt)return e.slice(n,e.length)}return[]}function m(e,t,n){var r=Math.max(e.start,t),i=p(e.cues,t),a={start:e.start,end:r,cues:i},o=Math.min(n,e.end),s=h(e.cues,n);return[a,{start:o,end:e.end,cues:s}]}var g=function(){function e(){this._cuesBuffer=[]}var t=e.prototype;return t.get=function(e){for(var t=this._cuesBuffer,n=[],r=t.length-1;r>=0;r--){var i=t[r];if(e=i.start){for(var a=i.cues,o=0;o=a[o].start&&e0)for(var s=0;se){var a=r[i];if(a.start>=n)return;if(a.end>=n){if(e<=a.start)a.cues=h(a.cues,n),a.start=n;else{var o=m(a,e,n),s=o[0],u=o[1];this._cuesBuffer[i]=s,r.splice(i+1,0,u)}return}a.start>=e?(r.splice(i,1),i--):(a.cues=p(a.cues,e),a.end=Math.max(e,a.start))}},t.insert=function(e,t,n){var r,i,a,o,s=this._cuesBuffer,u={start:t,end:n,cues:e},l=Math.abs(t-n)/5;function d(e){var t=s[e];void 0===t||v(u.end,t.end,l)?s[e]=u:(t.start>=u.end||(t.cues=h(t.cues,u.end),t.start=u.end),s.splice(e,0,u))}for(var c=0;cf.end);return void d(c)}if(tf.end);return void d(c)}if(v(f.end,n,l))return f.cues=p(f.cues,t),f.end=t,void s.splice(c+1,0,u);if(f.end>n){var g=m(f,t,n),y=g[0],A=g[1];return this._cuesBuffer[c]=y,s.splice(c+1,0,u),void s.splice(c+2,0,A)}f.cues=p(f.cues,t),f.end=t;var _=c+1;for(f=s[_];void 0!==f&&n>f.end;)s.splice(_,1),f=s[_];return void d(_)}}if(s.length){var b=s[s.length-1];v(b.end,t,l)&&(b.end=t)}s.push(u)},e}();function y(e,t,n,r){for(var i=[t/n.columns,e/n.rows],a=r.getElementsByClassName("proportional-style"),o=0;o0}var A=i.g9,_=i.Bi,b=i.ID;function S(e,t){try{e.removeChild(t)}catch(e){a.A.warn("HTSB: Can't remove text track: not in the element.")}}function E(e){var t=e.getAttribute("data-resolution-rows"),n=e.getAttribute("data-resolution-columns");if(null===t||null===n)return null;var r=parseInt(t,10),i=parseInt(n,10);return null===r||null===i?null:{rows:r,columns:i}}var T=function(e){function t(t,n){var r;return a.A.debug("HTSB: Creating HTMLTextSegmentBuffer"),(r=e.call(this)||this).bufferType="text",r._buffered=new c.A,r._videoElement=t,r._textTrackElement=n,r._sizeUpdateCanceller=new l.Ay,r._canceller=new l.Ay,r._buffer=new g,r._currentCues=[],r.autoRefreshSubtitles(r._canceller.signal),r}(0,r.A)(t,e);var n=t.prototype;return n.declareInitSegment=function(e){a.A.warn("ISB: Declaring initialization segment for image SegmentBuffer",e)},n.freeInitSegment=function(e){a.A.warn("ISB: Freeing initialization segment for image SegmentBuffer",e)},n.pushChunk=function(e){try{this.pushChunkSync(e)}catch(e){return Promise.reject(e)}return Promise.resolve()},n.removeBuffer=function(e,t){return this.removeBufferSync(e,t),Promise.resolve()},n.endOfSegment=function(e){return this._segmentInventory.completeSegment(e,this._buffered),Promise.resolve()},n.getBufferedRanges=function(){return this._buffered},n.dispose=function(){a.A.debug("HTSB: Disposing HTMLTextSegmentBuffer"),this._disableCurrentCues(),this._buffer.remove(0,1/0),this._buffered.remove(0,1/0),this._canceller.cancel()},n.pushChunkSync=function(e){var t,n;a.A.debug("HTSB: Appending new html text tracks");var r=e.data,i=r.timestampOffset,o=r.appendWindow,s=r.chunk;if(null!==s){var u,l,d=s.start,c=s.end,v=s.data,p=s.type,h=s.language,m=null!==(t=o[0])&&void 0!==t?t:0,g=null!==(n=o[1])&&void 0!==n?n:1/0,y=function(e,t,n,r){a.A.debug("HTSB: Finding parser for html text tracks:",e);var i=f.A.htmlTextTracksParsers[e];if("function"!=typeof i)throw new Error("no parser found for the given text track");a.A.debug("HTSB: Parser found, parsing...");var o=i(t,n,r);return a.A.debug("HTTB: Parsed successfully!",o.length),o}(p,v,i,h);if(0!==m&&g!==1/0){for(var A=0;A=0&&y[A].start>=g;)A--;for(y.splice(A,y.length),A=y.length-1;A>=0&&y[A].end>g;)y[A].end=g,A--}if(void 0!==d)u=Math.max(m,d);else{if(y.length<=0)return void a.A.warn("HTSB: Current text tracks have no cues nor start time. Aborting");a.A.warn("HTSB: No start time given. Guessing from cues."),u=y[0].start}if(void 0!==c)l=Math.min(g,c);else{if(y.length<=0)return void a.A.warn("HTSB: Current text tracks have no cues nor end time. Aborting");a.A.warn("HTSB: No end time given. Guessing from cues."),l=y[y.length-1].end}l<=u?a.A.warn("HTSB: Invalid text track appended: ","the start time is inferior or equal to the end time."):(null!==e.inventoryInfos&&this._segmentInventory.insertChunk(e.inventoryInfos,!0,performance.now()),this._buffer.insert(y,u,l),this._buffered.insert(u,l))}},n.removeBufferSync=function(e,t){a.A.debug("HTSB: Removing html text track data",e,t),this._buffer.remove(e,t),this._buffered.remove(e,t)},n._disableCurrentCues=function(){if(this._sizeUpdateCanceller.cancel(),this._currentCues.length>0){for(var e=0;e0){this._sizeUpdateCanceller=new l.Ay,this._sizeUpdateCanceller.linkToSignal(this._canceller.signal);var c=u.A.getCurrent().TEXT_TRACK_SIZE_CHECKS_INTERVAL,f=function(e,t,n){var r=e.getBoundingClientRect(),i=r.height,u=r.width,l=new o.A({height:i,width:u},n),d=i,c=u;if(void 0!==s){var f=new s((function(e){if(0!==e.length){var t=e[0].contentRect,n=t.height,r=t.width;n===d&&r===c||(d=n,c=r,l.setValue({height:n,width:r}))}else a.A.error("Compat: Resized but no observed element.")}));f.observe(e),n.register((function(){f.disconnect()}))}else{var v=setInterval((function(){var t=e.getBoundingClientRect(),n=t.height,r=t.width;n===d&&r===c||(d=n,c=r,l.setValue({height:n,width:r}))}),t);n.register((function(){clearInterval(v)}))}return l}(this._textTrackElement,c,this._sizeUpdateCanceller.signal);f.onUpdate((function(e){for(var t=e.height,n=e.width,r=0;r0?e.textTracks[u-1]:e.addTextTrack(s)).mode=t?null!==(n=a.HIDDEN)&&void 0!==n?n:"hidden":null!==(r=a.SHOWING)&&void 0!==r?r:"showing"}else o=document.createElement("track"),e.appendChild(o),a=o.track,o.kind=s,a.mode=t?"hidden":"showing";return{track:a,trackElement:o}}(t,n),s=o.track,l=o.trackElement;return r.bufferType="text",r._buffered=new u.A,r._videoElement=t,r._track=s,r._trackElement=l,r}(0,r.A)(t,e);var n=t.prototype;return n.declareInitSegment=function(e){a.A.warn("ISB: Declaring initialization segment for image SegmentBuffer",e)},n.freeInitSegment=function(e){a.A.warn("ISB: Freeing initialization segment for image SegmentBuffer",e)},n.pushChunk=function(e){var t,n;if(a.A.debug("NTSB: Appending new native text tracks"),null===e.data.chunk)return Promise.resolve();var r=e.data,i=r.timestampOffset,o=r.appendWindow,s=r.chunk,u=s.start,d=s.end,c=s.data,f=s.type,v=s.language,p=null!==(t=o[0])&&void 0!==t?t:0,h=null!==(n=o[1])&&void 0!==n?n:1/0;try{var m,g,y=function(e,t,n,r){a.A.debug("NTSB: Finding parser for native text tracks:",e);var i=l.A.nativeTextTracksParsers[e];if("function"!=typeof i)throw new Error("no parser found for the given text track");a.A.debug("NTSB: Parser found, parsing...");var o=i(t,n,r);return a.A.debug("NTSB: Parsed successfully!",o.length),o}(f,c,i,v);if(0!==p&&h!==1/0){for(var A=0;A=0&&y[A].startTime>=h;)A--;for(y.splice(A,y.length),A=y.length-1;A>=0&&y[A].endTime>h;)y[A].endTime=h,A--}if(void 0!==u)m=Math.max(p,u);else{if(y.length<=0)return a.A.warn("NTSB: Current text tracks have no cues nor start time. Aborting"),Promise.resolve();a.A.warn("NTSB: No start time given. Guessing from cues."),m=y[0].startTime}if(void 0!==d)g=Math.min(h,d);else{if(y.length<=0)return a.A.warn("NTSB: Current text tracks have no cues nor end time. Aborting"),Promise.resolve();a.A.warn("NTSB: No end time given. Guessing from cues."),g=y[y.length-1].endTime}if(g<=m)return a.A.warn("NTSB: Invalid text track appended: ","the start time is inferior or equal to the end time."),Promise.resolve();if(y.length>0){var _=y[0],b=this._track.cues;null!==b&&b.length>0&&_.startTime=0;i--){var s=r[i],u=s.startTime,l=s.endTime;u>=e&&u<=t&&l<=t&&o(n,s)}this._buffered.remove(e,t)},t}(s.K)},7500:function(e,t,n){"use strict";n.d(t,{K:function(){return y},B:function(){return m}});var r=n(5151),i=n(9477),a=n(7841);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(this._history=this._history.splice(r)),this._history.length>this._maxHistoryLength){var a=this._history.length-this._maxHistoryLength;this._history=this._history.splice(a)}},e}();function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var k=f[E+w-1];T={end:null!==(a=k.bufferedEnd)&&void 0!==a?a:k.end,precizeEnd:k.precizeEnd},i.A.debug("SI: "+w+" segments GCed.",y);for(var I,x=l(f.splice(E,w));!(I=x()).done;){var R=I.value;void 0===R.bufferedStart&&void 0===R.bufferedEnd&&2!==R.status&&this._bufferedHistory.addBufferedSegment(R.infos,null)}v=E}if(void 0===m)return;if(S-(null!==(o=m.bufferedStart)&&void 0!==o?o:m.start)>=g){if(p(m,b,T,y),v===f.length-1)return void h(m,S,y);for(var C=null!==(s=(m=f[++v]).bufferedStart)&&void 0!==s?s:m.start,M=null!==(u=m.bufferedEnd)&&void 0!==u?u:m.end,P=_=g&&(void 0===P||S-C>=M-P);){var D=f[v-1];void 0===D.bufferedEnd&&(m.precizeStart?D.bufferedEnd=m.start:D.infos.segment.complete?D.bufferedEnd=D.end:D.bufferedEnd=m.start,i.A.debug("SI: calculating buffered end of contiguous segment",y,D.bufferedEnd,D.end)),m.bufferedStart=D.bufferedEnd,void 0!==(m=f[++v])&&(C=null!==(d=m.bufferedStart)&&void 0!==d?d:m.start,M=null!==(c=m.bufferedEnd)&&void 0!==c?c:m.end)}}var N=f[v-1];void 0!==N&&h(N,S,y)}}if(null!=m){i.A.debug("SI: last segments have been GCed",y,v,f.length);for(var O,L=l(f.splice(v,f.length-v));!(O=L()).done;){var U=O.value;void 0===U.bufferedStart&&void 0===U.bufferedEnd&&2!==U.status&&this._bufferedHistory.addBufferedSegment(U.infos,null)}}!t&&void 0!==y&&i.A.hasLevel("DEBUG")&&i.A.debug("SI: current "+y+" inventory timeline:\n"+function(e){var t=1/60,n={},r=[],i=null,a=null;function o(e){var t=String.fromCharCode(r.length+65);return r.push({letter:t,periodId:e.period.id,representationId:e.representation.id,bitrate:e.representation.bitrate}),t}for(var s="",u=0;u=d)i.A.warn("SI: Invalid chunked inserted: starts before it ends",c,l,d);else{for(var f=this._inventory,v={status:t?0:2,insertionTs:n,chunkSize:u,splitted:!1,start:l,end:d,precizeStart:!1,precizeEnd:!1,bufferedStart:void 0,bufferedEnd:void 0,infos:{segment:s,period:r,adaptation:a,representation:o}},p=f.length-1;p>=0;p--){var h=f[p];if(h.start<=l){if(h.end<=l){for(i.A.debug("SI: Pushing segment strictly after previous one.",c,l,h.end),this._inventory.splice(p+1,0,v),p+=2;pv.end)return i.A.debug("SI: Segment pushed updates the start of the next one",c,v.end,f[p].start),f[p].start=v.end,f[p].bufferedStart=void 0,void(f[p].precizeStart=f[p].precizeStart&&v.precizeEnd);i.A.debug("SI: Segment pushed removes the next one",c,l,d,f[p].start,f[p].end),f.splice(p,1)}return}if(h.start===l){if(h.end<=d){for(i.A.debug("SI: Segment pushed replace another one",c,l,d,h.end),this._inventory.splice(p,1,v),p+=1;pv.end)return i.A.debug("SI: Segment pushed updates the start of the next one",c,v.end,f[p].start),f[p].start=v.end,f[p].bufferedStart=void 0,void(f[p].precizeStart=f[p].precizeStart&&v.precizeEnd);i.A.debug("SI: Segment pushed removes the next one",c,l,d,f[p].start,f[p].end),f.splice(p,1)}return}return i.A.debug("SI: Segment pushed ends before another with the same start",c,l,d,h.end),f.splice(p,0,v),h.start=v.end,h.bufferedStart=void 0,void(h.precizeStart=h.precizeStart&&v.precizeEnd)}if(h.end<=v.end){for(i.A.debug("SI: Segment pushed updates end of previous one",c,l,d,h.start,h.end),this._inventory.splice(p+1,0,v),h.end=v.start,h.bufferedEnd=void 0,h.precizeEnd=h.precizeEnd&&v.precizeStart,p+=2;pv.end)return i.A.debug("SI: Segment pushed updates the start of the next one",c,v.end,f[p].start),f[p].start=v.end,f[p].bufferedStart=void 0,void(f[p].precizeStart=f[p].precizeStart&&v.precizeEnd);i.A.debug("SI: Segment pushed removes the next one",c,l,d,f[p].start,f[p].end),f.splice(p,1)}return}i.A.warn("SI: Segment pushed is contained in a previous one",c,l,d,h.start,h.end);var m={status:h.status,insertionTs:h.insertionTs,chunkSize:h.chunkSize,splitted:!0,start:v.end,end:h.end,precizeStart:h.precizeStart&&h.precizeEnd&&v.precizeEnd,precizeEnd:h.precizeEnd,bufferedStart:void 0,bufferedEnd:h.end,infos:h.infos};return h.end=v.start,h.splitted=!0,h.bufferedEnd=void 0,h.precizeEnd=h.precizeEnd&&v.precizeStart,f.splice(p+1,0,v),void f.splice(p+2,0,m)}}var g=this._inventory[0];if(void 0===g)return i.A.debug("SI: first segment pushed",c,l,d),void this._inventory.push(v);if(!(g.start>=d)){if(g.end<=d){for(i.A.debug("SI: Segment pushed starts before and completely recovers the previous first one",c,l,d,g.start,g.end),this._inventory.splice(0,1,v);f.length>1&&f[1].startv.end)return i.A.debug("SI: Segment pushed updates the start of the next one",c,v.end,f[1].start),f[1].start=v.end,f[1].bufferedStart=void 0,void(f[1].precizeStart=v.precizeEnd);i.A.debug("SI: Segment pushed removes the next one",c,l,d,f[1].start,f[1].end),f.splice(1,1)}return}return i.A.debug("SI: Segment pushed start of the next one",c,l,d,g.start,g.end),g.start=d,g.bufferedStart=void 0,g.precizeStart=v.precizeEnd,void this._inventory.splice(0,0,v)}i.A.debug("SI: Segment pushed comes before all previous ones",c,l,d,g.start),this._inventory.splice(0,0,v)}}},t.completeSegment=function(e,t){if(!e.segment.isInit){for(var n=this._inventory,r=[],o=0;o0&&(s=!0,1===r.length&&(i.A.warn("SI: Completed Segment is splitted.",e.segment.id,e.segment.time,e.segment.end),r[0].splitted=!0));var u=o,d=n[o].chunkSize;for(o+=1;o0&&(this._inventory.splice(u+1,v),o-=v),0===this._inventory[u].status&&(this._inventory[u].status=1),this._inventory[u].chunkSize=d,this._inventory[u].end=p,this._inventory[u].bufferedEnd=h,this._inventory[u].splitted=s,r.push(this._inventory[u])}if(0===r.length)i.A.warn("SI: Completed Segment not found",e.segment.id,e.segment.time);else{this.synchronizeBuffered(t);for(var m,g=l(r);!(m=g()).done;){var y=m.value;void 0!==y.bufferedStart&&void 0!==y.bufferedEnd?2!==y.status&&this._bufferedHistory.addBufferedSegment(y.infos,{start:y.bufferedStart,end:y.bufferedEnd}):i.A.debug("SI: buffered range not known after sync. Skipping history.",y.start,y.end)}}}},t.getInventory=function(){return this._inventory},t.getHistoryFor=function(e){return this._bufferedHistory.getHistoryFor(e)},e}();function f(e){if(void 0===e.bufferedStart||1!==e.status)return!1;var t=e.start,n=e.end-t,i=r.A.getCurrent(),a=i.MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,o=i.MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE;return Math.abs(t-e.bufferedStart)<=a&&(void 0===e.bufferedEnd||e.bufferedEnd>e.bufferedStart&&Math.abs(e.bufferedEnd-e.bufferedStart-n)<=Math.min(o,n/3))}function v(e){if(void 0===e.bufferedEnd||!e.infos.segment.complete||1!==e.status)return!1;var t=e.start,n=e.end,i=n-t,a=r.A.getCurrent(),o=a.MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,s=a.MAX_MANIFEST_BUFFERED_DURATION_DIFFERENCE;return Math.abs(n-e.bufferedEnd)<=o&&null!=e.bufferedStart&&e.bufferedEnd>e.bufferedStart&&Math.abs(e.bufferedEnd-e.bufferedStart-i)<=Math.min(s,i/3)}function p(e,t,n,a){var o=r.A.getCurrent(),s=o.MAX_MANIFEST_BUFFERED_START_END_DIFFERENCE,u=o.MISSING_DATA_TRIGGER_SYNC_DELAY,l=o.SEGMENT_SYNCHRONIZATION_DELAY;if(void 0!==e.bufferedStart)e.bufferedStartt&&(n.precizeEnd||e.start-n.end<=s))i.A.debug("SI: buffered start is end of previous segment",a,t,e.start,n.end),e.bufferedStart=n.end,f(e)&&(e.start=n.end,e.precizeStart=!0);else if(e.start-t<=s){var d=performance.now();if(e.start-t>=u&&d-e.insertionTs=u&&c-e.insertionTst&&(i.A.debug("SI: Segment partially GCed at the end",n,e.bufferedEnd,t),e.bufferedEnd=t),!e.precizeEnd&&t-e.end<=o&&v(e)&&(e.precizeEnd=!0,e.end=t);else if(e.precizeEnd)i.A.debug("SI: buffered end is precize end",n,e.end),e.bufferedEnd=e.end;else if(t-e.end<=o||!e.infos.segment.complete){var l=performance.now();if(t-e.end>=s&&l-e.insertionTse.end)i.A.debug("SI: range end too far from expected end",n,t,e.end),e.bufferedEnd=e.end;else{var d=performance.now();if(t-e.end>=s&&d-e.insertionTs0&&n.push({start:0,end:e}),t<1/0&&n.push({start:t,end:1/0}),this._ranges=(0,r.aW)(this._ranges,n),this.length=this._ranges.length},t.start=function(e){if(e>=this._ranges.length)throw new Error("INDEX_SIZE_ERROR");return this._ranges[e].start},t.end=function(e){if(e>=this._ranges.length)throw new Error("INDEX_SIZE_ERROR");return this._ranges[e].end},e}()},7004:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(7387),i=function(e){function t(n,r,i,a){var o;return o=e.call(this,n)||this,Object.setPrototypeOf(o,t.prototype),o.name="CustomLoaderError",o.canRetry=r,o.isOfflineError=i,o.xhr=a,o}return(0,r.A)(t,e),t}((0,n(8593).A)(Error))},1956:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7387),i=n(8593),a=n(5497),o=n(2620),s=function(e){function t(n,r,i){var s;return s=e.call(this,(0,o.A)("EncryptedMediaError",n,r))||this,Object.setPrototypeOf(s,t.prototype),s.name="EncryptedMediaError",s.type=a.wU.ENCRYPTED_MEDIA_ERROR,s.code=n,s.fatal=!1,"string"==typeof(null==i?void 0:i.keyStatuses)&&(s.keyStatuses=i.keyStatuses),s}return(0,r.A)(t,e),t}((0,i.A)(Error))},5497:function(e,t,n){"use strict";n.d(t,{tG:function(){return a},wU:function(){return r},yl:function(){return i}});var r={NETWORK_ERROR:"NETWORK_ERROR",MEDIA_ERROR:"MEDIA_ERROR",ENCRYPTED_MEDIA_ERROR:"ENCRYPTED_MEDIA_ERROR",OTHER_ERROR:"OTHER_ERROR"},i={TIMEOUT:"TIMEOUT",ERROR_EVENT:"ERROR_EVENT",ERROR_HTTP_CODE:"ERROR_HTTP_CODE",PARSE_ERROR:"PARSE_ERROR"},a={PIPELINE_LOAD_ERROR:"PIPELINE_LOAD_ERROR",PIPELINE_PARSE_ERROR:"PIPELINE_PARSE_ERROR",INTEGRITY_ERROR:"INTEGRITY_ERROR",MANIFEST_PARSE_ERROR:"MANIFEST_PARSE_ERROR",MANIFEST_INCOMPATIBLE_CODECS_ERROR:"MANIFEST_INCOMPATIBLE_CODECS_ERROR",MANIFEST_UPDATE_ERROR:"MANIFEST_UPDATE_ERROR",MANIFEST_UNSUPPORTED_ADAPTATION_TYPE:"MANIFEST_UNSUPPORTED_ADAPTATION_TYPE",MEDIA_STARTING_TIME_NOT_FOUND:"MEDIA_STARTING_TIME_NOT_FOUND",MEDIA_TIME_BEFORE_MANIFEST:"MEDIA_TIME_BEFORE_MANIFEST",MEDIA_TIME_AFTER_MANIFEST:"MEDIA_TIME_AFTER_MANIFEST",MEDIA_TIME_NOT_FOUND:"MEDIA_TIME_NOT_FOUND",NO_PLAYABLE_REPRESENTATION:"NO_PLAYABLE_REPRESENTATION",MEDIA_IS_ENCRYPTED_ERROR:"MEDIA_IS_ENCRYPTED_ERROR",CREATE_MEDIA_KEYS_ERROR:"CREATE_MEDIA_KEYS_ERROR",KEY_ERROR:"KEY_ERROR",KEY_STATUS_CHANGE_ERROR:"KEY_STATUS_CHANGE_ERROR",KEY_UPDATE_ERROR:"KEY_UPDATE_ERROR",KEY_LOAD_ERROR:"KEY_LOAD_ERROR",KEY_LOAD_TIMEOUT:"KEY_LOAD_TIMEOUT",KEY_GENERATE_REQUEST_ERROR:"KEY_GENERATE_REQUEST_ERROR",INCOMPATIBLE_KEYSYSTEMS:"INCOMPATIBLE_KEYSYSTEMS",INVALID_ENCRYPTED_EVENT:"INVALID_ENCRYPTED_EVENT",INVALID_KEY_SYSTEM:"INVALID_KEY_SYSTEM",LICENSE_SERVER_CERTIFICATE_ERROR:"LICENSE_SERVER_CERTIFICATE_ERROR",MULTIPLE_SESSIONS_SAME_INIT_DATA:"MULTIPLE_SESSIONS_SAME_INIT_DATA",BUFFER_APPEND_ERROR:"BUFFER_APPEND_ERROR",BUFFER_FULL_ERROR:"BUFFER_FULL_ERROR",BUFFER_TYPE_UNKNOWN:"BUFFER_TYPE_UNKNOWN",MEDIA_ERR_BLOCKED_AUTOPLAY:"MEDIA_ERR_BLOCKED_AUTOPLAY",MEDIA_ERR_PLAY_NOT_ALLOWED:"MEDIA_ERR_PLAY_NOT_ALLOWED",MEDIA_ERR_NOT_LOADED_METADATA:"MEDIA_ERR_NOT_LOADED_METADATA",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_UNKNOWN:"MEDIA_ERR_UNKNOWN",MEDIA_SOURCE_NOT_SUPPORTED:"MEDIA_SOURCE_NOT_SUPPORTED",MEDIA_KEYS_NOT_SUPPORTED:"MEDIA_KEYS_NOT_SUPPORTED",DISCONTINUITY_ENCOUNTERED:"DISCONTINUITY_ENCOUNTERED",NONE:"NONE"}},2620:function(e,t,n){"use strict";function r(e,t,n){return e+" ("+t+") "+n}n.d(t,{A:function(){return r}})},874:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(4637),i=n(1858);function a(e,t){var n=t.defaultCode,a=t.defaultReason;if((0,r.A)(e))return e;var o=e instanceof Error?e.toString():a;return new i.A(n,o)}},4637:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(1956),i=n(5497),a=n(5575),o=n(7941),s=n(1858);function u(e){return(e instanceof r.A||e instanceof a.A||e instanceof s.A||e instanceof o.A)&&Object.keys(i.wU).indexOf(e.type)>=0}},5575:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7387),i=n(8593),a=n(5497),o=n(2620),s=function(e){function t(n,r,i){var s;s=e.call(this,(0,o.A)("MediaError",n,r))||this,Object.setPrototypeOf(s,t.prototype),s.name="MediaError",s.type=a.wU.MEDIA_ERROR,s.code=n,s.fatal=!1;var u=null==i?void 0:i.adaptation;if(void 0!==u)switch(u.type){case"audio":s.trackInfo={type:"audio",track:u.toAudioTrack()};break;case"video":s.trackInfo={type:"video",track:u.toVideoTrack()};break;case"text":s.trackInfo={type:"text",track:u.toTextTrack()}}return s}return(0,r.A)(t,e),t}((0,i.A)(Error))},7941:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7387),i=n(8593),a=n(5497),o=n(2620),s=function(e){function t(n,r){var i;return i=e.call(this,(0,o.A)("NetworkError",n,r.message))||this,Object.setPrototypeOf(i,t.prototype),i.name="NetworkError",i.type=a.wU.NETWORK_ERROR,i.xhr=void 0===r.xhr?null:r.xhr,i.url=r.url,i.status=r.status,i.errorType=r.type,i.code=n,i.fatal=!1,i}return(0,r.A)(t,e),t.prototype.isHttpError=function(e){return this.errorType===a.yl.ERROR_HTTP_CODE&&this.status===e},t}((0,i.A)(Error))},1858:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7387),i=n(8593),a=n(5497),o=n(2620),s=function(e){function t(n,r){var i;return i=e.call(this,(0,o.A)("OtherError",n,r))||this,Object.setPrototypeOf(i,t.prototype),i.name="OtherError",i.type=a.wU.OTHER_ERROR,i.code=n,i.fatal=!1,i}return(0,r.A)(t,e),t}((0,i.A)(Error))},3506:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(7387),i=function(e){function t(n,r,i,a){var o,s;switch(i){case"TIMEOUT":s="The request timed out";break;case"ERROR_EVENT":s="An error prevented the request to be performed successfully";break;case"PARSE_ERROR":s="An error happened while formatting the response data";break;case"ERROR_HTTP_CODE":s="An HTTP status code indicating failure was received: "+String(r)}return o=e.call(this,s)||this,Object.setPrototypeOf(o,t.prototype),o.name="RequestError",o.url=n,void 0!==a&&(o.xhr=a),o.status=r,o.type=i,o}return(0,r.A)(t,e),t}((0,n(8593).A)(Error))},8589:function(e,t){"use strict";t.A={dashParsers:{wasm:null,js:null},createDebugElement:null,directfile:null,decrypt:null,htmlTextTracksBuffer:null,htmlTextTracksParsers:{},imageBuffer:null,imageParser:null,mediaSourceInit:null,nativeTextTracksBuffer:null,nativeTextTracksParsers:{},transports:{}}},418:function(e,t,n){"use strict";var r=n(8589);t.A=r.A},9477:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(8060),i=new(function(){function e(){this.error=r.A,this.warn=r.A,this.info=r.A,this.debug=r.A,this._levels={NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4},this._currentLevel="NONE"}var t=e.prototype;return t.setLevel=function(e){var t,n=this._levels[e];"number"==typeof n?(t=n,this._currentLevel=e):(t=0,this._currentLevel="NONE"),this.error=t>=this._levels.ERROR?console.error.bind(console):r.A,this.warn=t>=this._levels.WARNING?console.warn.bind(console):r.A,this.info=t>=this._levels.INFO?console.info.bind(console):r.A,this.debug=t>=this._levels.DEBUG?console.log.bind(console):r.A},t.getLevel=function(){return this._currentLevel},t.hasLevel=function(e){return this._levels[e]>=this._levels[this._currentLevel]},e}())},4129:function(e,t,n){"use strict";n.d(t,{B:function(){return h},A:function(){return m}});var r=n(9477),i=n(1729),a=n(6787),o=n(8202);var s="undefined"!=typeof window&&"function"==typeof window.Set&&"function"==typeof Array.from?function(e){return Array.from(new Set(e))}:function(e){return e.filter((function(e,t,n){return n.indexOf(e)===t}))},u=n(9770);function l(e){return null!=u.j&&("function"!=typeof u.j.isTypeSupported||u.j.isTypeSupported(e))}var d=n(987);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(this.trickModeTracks=i.map((function(t){return new e(t)})));for(var d=t.representations,c=[],f=!1,v=0;v0&&!r.isSupported){var i=new a.A("MANIFEST_INCOMPATIBLE_CODECS_ERROR","An Adaptation contains only incompatible codecs.",{adaptation:r});n.contentWarnings.push(i)}return r})).filter((function(e){return e.representations.length>0}));if(s.every((function(e){return!e.isSupported}))&&o.length>0&&("video"===i||"audio"===i))throw new a.A("MANIFEST_PARSE_ERROR","No supported "+i+" adaptations");return s.length>0&&(r[i]=s),r}),{}),!Array.isArray(this.adaptations.video)&&!Array.isArray(this.adaptations.audio))throw new a.A("MANIFEST_PARSE_ERROR","No supported audio and video tracks.");this.duration=e.duration,this.start=e.start,null!=this.duration&&null!=this.start&&(this.end=this.start+this.duration),this.streamEvents=void 0===e.streamEvents?[]:e.streamEvents}var t=e.prototype;return t.getAdaptations=function(){var e=this.adaptations;return(0,v.A)(e).reduce((function(e,t){return null!=t?e.concat(t):e}),[])},t.getAdaptationsForType=function(e){var t=this.adaptations[e];return null==t?[]:t},t.getAdaptation=function(e){return(0,s.A)(this.getAdaptations(),(function(t){var n=t.id;return e===n}))},t.getSupportedAdaptations=function(e){if(void 0===e)return this.getAdaptations().filter((function(e){return e.isSupported}));var t=this.adaptations[e];return void 0===t?[]:t.filter((function(e){return e.isSupported}))},t.containsTime=function(e,t){return e>=this.start&&(void 0===this.end||ethis.end)},e}(),h=function(){function e(e){this._url=e.media}var t=e.prototype;return t.getInitSegment=function(){return null},t.getSegments=function(){return[{id:"0",isInit:!1,number:0,url:this._url,time:0,end:Number.MAX_VALUE,duration:Number.MAX_VALUE,complete:!0,privateInfos:{},timescale:1}]},t.getFirstAvailablePosition=function(){},t.getLastAvailablePosition=function(){},t.getEnd=function(){},t.awaitSegmentBetween=function(){return!1},t.shouldRefresh=function(){return!1},t.checkDiscontinuity=function(){return null},t.isSegmentStillAvailable=function(){return!0},t.canBeOutOfSyncError=function(){return!1},t.isStillAwaitingFutureSegments=function(){return!1},t.isInitialized=function(){return!0},t._replace=function(){o.A.warn("Tried to replace a static RepresentationIndex")},t._update=function(){o.A.warn("Tried to update a static RepresentationIndex")},e}();!function(e){e[e.Full=0]="Full",e[e.Partial=1]="Partial"}(r||(r={}));var m=n(3786);function g(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)o.A.warn("Manifest: "+y.length+" new Representations found when merging."),(h=t.representations).push.apply(h,y),v.push.apply(v,y)}l=e},l=0;l0){o.A.warn("Manifest: "+s.length+" new Adaptations found when merging.");for(var d,c=g(s);!(d=c()).done;){var f=d.value,v=e.adaptations[f.type];void 0===v?e.adaptations[f.type]=[f]:v.push(f),i.addedAdaptations.push(f)}}return i}function _(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&r._addSupplementaryImageAdaptations(u),o.length>0&&r._addSupplementaryTextAdaptations(o),r}(0,i.A)(t,e);var n=t.prototype;return n.getPeriod=function(e){return(0,s.A)(this.periods,(function(t){return e===t.id}))},n.getPeriodForTime=function(e){for(var t=null,n=this.periods.length-1;n>=0;n--){var r=this.periods[n];if(r.containsTime(e,t))return r;t=r}},n.getNextPeriod=function(e){return(0,s.A)(this.periods,(function(t){return t.start>e}))},n.getPeriodAfter=function(e){var t=e.end;if(void 0===t)return null;var n=(0,s.A)(this.periods,(function(e){return void 0===e.end||t0&&this.trigger("decipherabilityUpdate",t)},n.getAdaptations=function(){(0,c.A)("manifest.getAdaptations() is deprecated. Please use manifest.period[].getAdaptations() instead");var e=this.periods[0];if(void 0===e)return[];var t=e.adaptations,n=[];for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n.push.apply(n,i)}return n},n.getAdaptationsForType=function(e){(0,c.A)("manifest.getAdaptationsForType(type) is deprecated. Please use manifest.period[].getAdaptationsForType(type) instead");var t=this.periods[0];if(void 0===t)return[];var n=t.adaptations[e];return void 0===n?[]:n},n.getAdaptation=function(e){return(0,c.A)("manifest.getAdaptation(id) is deprecated. Please use manifest.period[].getAdaptation(id) instead"),(0,s.A)(this.getAdaptations(),(function(t){var n=t.id;return e===n}))},n._addSupplementaryImageAdaptations=function(e){var t=this,n=(Array.isArray(e)?e:[e]).map((function(e){var n=e.mimeType,r=e.url,i="gen-image-ada-"+S(),o="gen-image-rep-"+S(),s=(0,d.Cl)(r),u=r.substring(0,s),l=r.substring(s),c=new f.A({id:i,type:"image",representations:[{bitrate:0,cdnMetadata:[{baseUrl:u}],id:o,mimeType:n,index:new h({media:l})}]},{isManuallyAdded:!0});if(c.representations.length>0&&!c.isSupported){var v=new a.A("MANIFEST_INCOMPATIBLE_CODECS_ERROR","An Adaptation contains only incompatible codecs.",{adaptation:c});t.contentWarnings.push(v)}return c}));if(n.length>0&&this.periods.length>0){var r=this.periods[0].adaptations;r.image=null!=r.image?r.image.concat(n):n}},n._addSupplementaryTextAdaptations=function(e){var t=this,n=(Array.isArray(e)?e:[e]).reduce((function(e,n){var r=n.mimeType,i=n.codecs,o=n.url,s=n.language,u=n.languages,l=n.closedCaption,c=null!=s?[s]:null!=u?u:[],v=(0,d.Cl)(o),p=o.substring(0,v),m=o.substring(v);return e.concat(c.map((function(e){var n="gen-text-ada-"+S(),o="gen-text-rep-"+S(),s=new f.A({id:n,type:"text",language:e,closedCaption:l,representations:[{bitrate:0,cdnMetadata:[{baseUrl:p}],id:o,mimeType:r,codecs:i,index:new h({media:m})}]},{isManuallyAdded:!0});if(s.representations.length>0&&!s.isSupported){var u=new a.A("MANIFEST_INCOMPATIBLE_CODECS_ERROR","An Adaptation contains only incompatible codecs.",{adaptation:s});t.contentWarnings.push(u)}return s})))}),[]);if(n.length>0&&this.periods.length>0){var r=this.periods[0].adaptations;r.text=null!=r.text?r.text.concat(n):n}},n._performUpdate=function(e,t){var n;if(this.availabilityStartTime=e.availabilityStartTime,this.expired=e.expired,this.isDynamic=e.isDynamic,this.isLive=e.isLive,this.isLastPeriodKnown=e.isLastPeriodKnown,this.lifetime=e.lifetime,this.contentWarnings=e.contentWarnings,this.suggestedPresentationDelay=e.suggestedPresentationDelay,this.transport=e.transport,this.publishTime=e.publishTime,t===r.Full)this._timeBounds=e._timeBounds,this.uris=e.uris,n=function(e,t){for(var n={updatedPeriods:[],addedPeriods:[],removedPeriods:[]},i=0,a=0;ae.length)return o.A.error("Manifest: error when updating Periods"),n;if(i0&&(e.push.apply(e,_),(y=n.addedPeriods).push.apply(y,_)),n}(this.periods,e.periods);else{this._timeBounds.maximumTimeData=e._timeBounds.maximumTimeData,this.updateUrl=e.uris[0],n=function(e,t){var n,i={updatedPeriods:[],addedPeriods:[],removedPeriods:[]};if(0===e.length)return e.splice.apply(e,[0,0].concat(t)),(n=i.addedPeriods).push.apply(n,t),i;if(0===t.length)return i;var s=e[e.length-1];if(s.startc){var E;o.A.warn("Manifest: old Periods not found in new when updating, removing");var T=e.splice(c,p-c);(E=i.removedPeriods).push.apply(E,T),p=c}var w=A(e[p],v,r.Full);i.updatedPeriods.push({period:e[p],result:w})}c++}if(c0;){var s=this.periods[0];if(void 0===s.end||s.end>i)break;this.periods.shift()}}this.adaptations=void 0===this.periods[0]?{}:this.periods[0].adaptations,this.trigger("manifestUpdate",n)},t}(u.A);var w=T},7841:function(e,t,n){"use strict";n.d(t,{M:function(){return a},Q:function(){return i}});var r=n(6787);function i(e,t){return e.segment.id===t.segment.id&&e.representation.uniqueId===t.representation.uniqueId}function a(e){if((0,r.A)(e))return"";var t=e.period,n=e.adaptation,i=e.representation,a=e.segment;return n.type+" P: "+t.id+" A: "+n.id+" R: "+i.id+" S: "+(a.isInit?"init":a.complete?a.time+"-"+a.duration:""+a.time)}},3058:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=Math.pow(2,32)-1},8797:function(e,t,n){"use strict";n.d(t,{$H:function(){return v},QL:function(){return f},YH:function(){return c},fP:function(){return p},fZ:function(){return l},fj:function(){return d},o$:function(){return u}});var r=n(9477),i=n(7994),a=n(5553);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ni)return null;s=(0,a.CQ)(e,r),r+=8}if(s<0)throw new Error("ISOBMFF: Size out of range");if(n===t)return 1970628964===t&&(r+=16),[o,r,o+s];o+=s}return null}function v(e,t,n,r,i){for(var o,s=e.length,u=0;us)return;o=(0,a.CQ)(e,l),l+=8}if(1970628964===d&&l+16<=s&&(0,a.mq)(e,l)===t&&(0,a.mq)(e,l+4)===n&&(0,a.mq)(e,l+8)===r&&(0,a.mq)(e,l+12)===i)return l+=16,e.subarray(l,u+o)}}function p(e){var t=e.length;if(t<8)return r.A.warn("ISOBMFF: box inferior to 8 bytes, cannot find offsets"),null;var n=0,i=(0,a.mq)(e,n);n+=4;var o=(0,a.mq)(e,n);if(n+=4,0===i)i=t;else if(1===i){if(n+8>t)return r.A.warn("ISOBMFF: box too short, cannot find offsets"),null;i=(0,a.CQ)(e,n),n+=8}if(i<0)throw new Error("ISOBMFF: Size out of range");return 1970628964===o&&(n+=16),[0,n,i]}},2875:function(e,t,n){"use strict";n.d(t,{Y2:function(){return i},hZ:function(){return u},ht:function(){return a},iA:function(){return s},j8:function(){return o}});var r=n(8797);function i(e){var t=(0,r.fZ)(e,1836019558);return null===t?null:(0,r.fZ)(t,1953653094)}function a(e){return(0,r.fj)(e,1836019558).reduce((function(e,t){var n=(0,r.fZ)(t,1953653094);return null!==n&&e.push(n),e}),[])}function o(e){return(0,r.fZ)(e,1835295092)}function s(e){var t=(0,r.fZ)(e,1836019574);if(null===t)return null;var n=(0,r.fZ)(t,1953653099);return null===n?null:(0,r.fZ)(n,1835297121)}function u(e,t){return void 0===t&&(t=0),(0,r.fZ)(e.subarray(t),1701671783)}},2948:function(e,t,n){"use strict";n.d(t,{A:function(){return s},L:function(){return u}});var r=n(9477);var i="function"==typeof Uint8Array.prototype.slice?function(e,t,n){return e.slice(t,n)}:function(e,t,n){return new Uint8Array(Array.prototype.slice.call(e,t,n))},a=n(4670),o=n(8797);function s(e){var t=0,n=(0,o.fZ)(e,1836019574);if(null===n)return[];for(var a=[];t1)r.A.warn("ISOBMFF: un-handled PSSH version");else{var n=t+4;if(!(n+16>e.length)){var o=i(e,n,n+16);return(0,a.My)(o)}}}},1134:function(e,t,n){"use strict";n.d(t,{D1:function(){return f},J_:function(){return m},Tr:function(){return c},a5:function(){return y},cS:function(){return p},pk:function(){return g},zS:function(){return h}});var r=n(9477),i=n(5553),a=n(4670),o=n(3058),s=n(8797),u=n(2875);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;){var v=(0,i.mq)(e,o);o+=4;var p=2147483647&v;if(1===(2147483648&v)>>>31)throw new Error("sidx with reference_type `1` not yet implemented");var h=(0,i.mq)(e,o);o+=4,o+=4,c.push({time:l,duration:h,timescale:d,range:[r,r+p-1]}),l+=h,r+=p}return c}function f(e){var t=(0,u.Y2)(e);if(null!==t){var n=(0,s.fZ)(t,1952867444);if(null!==n){var r=n[0];return 1===r?(0,i.CQ)(n,4):0===r?(0,i.mq)(n,4):void 0}}}function v(e){var t=(0,s.fZ)(e,1952868452);if(null!==t){var n=1,r=(0,i.tb)(t,n);if(n+=3,(8&r)>0)return n+=4,(1&r)>0&&(n+=8),(2&r)>0&&(n+=4),(0,i.mq)(t,n)}}function p(e){var t=(0,u.ht)(e);if(0!==t.length){for(var n,r=0,a=l(t);!(n=a()).done;){var o=n.value,d=(0,s.fZ)(o,1953658222);if(null===d)return;var c=0,f=d[c];if(c+=1,f>1)return;var p=(0,i.tb)(d,c);c+=3;var h=(256&p)>0,m=0;if(!h&&void 0===(m=v(o)))return;var g=(1&p)>0,y=(4&p)>0,A=(512&p)>0,_=(1024&p)>0,b=(2048&p)>0,S=(0,i.mq)(d,c);c+=4,g&&(c+=4),y&&(c+=4);for(var E=S,T=0;E-- >0;)h?(T+=(0,i.mq)(d,c),c+=4):T+=m,A&&(c+=4),_&&(c+=4),b&&(c+=4);r+=T}return r}}function h(e){var t=(0,u.iA)(e);if(null!==t){var n=(0,s.fZ)(t,1835296868);if(null!==n){var r=0,a=n[r];return r+=4,1===a?(0,i.mq)(n,r+16):0===a?(0,i.mq)(n,r+8):void 0}}}function m(e){var t=e.length;if(t<4)throw new Error("Cannot update box length: box too short");var n=(0,i.mq)(e,0);if(0===n){if(t>o.Z){var r=new Uint8Array(t+8);return r.set((0,i.KS)(1),0),r.set(e.subarray(4,8),4),r.set((0,i.Kk)(t+8),8),r.set(e.subarray(8,t),16),r}return e.set((0,i.KS)(t),0),e}if(1===n){if(t<16)throw new Error("Cannot update box length: box too short");return e.set((0,i.Kk)(t),8),e}if(t<=o.Z)return e.set((0,i.KS)(t),0),e;var a=new Uint8Array(t+8);return a.set((0,i.KS)(1),0),a.set(e.subarray(4,8),4),a.set((0,i.Kk)(t+8),8),a.set(e.subarray(8,t),16),a}function g(e){for(var t=[],n=0;n0)throw new Error("Unhandled version: "+s);var c=(0,r.eR)(e,t);t+=4;var f=(0,r.eR)(e,t);t+=4;var v=(0,i.Es)(e.subarray(t,t+4));t+=4;var p=(0,r.AT)(e,t);t+=2;var h=(0,r.AT)(e,t),m=[e[t+=2],e[t+1]].join(":"),g=1===e[t+=2];t=64;var y=[];if(0===c)throw new Error("bif: no images to parse");for(var A=0,_=null;t0,this._isEMSGWhitelisted=c}var t=e.prototype;return t.getInitSegment=function(){return(0,a.A)(this._index,this._isEMSGWhitelisted)},t.getSegments=function(e,t){return(0,o.A)(this._index,e,t,this._manifestBoundsCalculator,this._scaledPeriodEnd,this._isEMSGWhitelisted)},t.shouldRefresh=function(){return!1},t.getFirstAvailablePosition=function(){var e=this._index;return 0===e.timeline.length?null:(0,i._l)(Math.max(this._scaledPeriodStart,e.timeline[0].start),e)},t.getLastAvailablePosition=function(){var e,t=this._index.timeline;if(0===t.length)return null;var n=t[t.length-1],r=Math.min((0,i.Rb)(n,null,this._scaledPeriodEnd),null!==(e=this._scaledPeriodEnd)&&void 0!==e?e:1/0);return(0,i._l)(r,this._index)},t.getEnd=function(){return this.getLastAvailablePosition()},t.awaitSegmentBetween=function(){return!1},t.isSegmentStillAvailable=function(){return!0},t.checkDiscontinuity=function(){return null},t.initializeIndex=function(e){for(var t=0;t0?Math.floor(d/l):0),P=k+M*w;PA)break;var N=null===g?null:(0,i.Qy)(P,D)(g),O=P-e.indexTimeOffset,L=w;O<0&&(L=w+O,O=0);var U={id:String(P),time:O/m,end:(O+L)/m,duration:L/m,isInit:!1,range:I,timescale:1,url:N,number:D,timestampOffset:-e.indexTimeOffset/m,complete:C,privateInfos:{isEMSGWhitelisted:s}};b.push(U),P=k+ ++M*w}if(P>=p)return b;if(_+=R+1,void 0!==A&&_>A)return b}return b}},9955:function(e,t,n){"use strict";n.d(t,{I1:function(){return a},Qy:function(){return o}});var r=n(2384);function i(e){return function(t,n,i){var a,o,s,u=(0,r.A)(i)?parseInt(i,10):1;return a=String(e),o=u,(s=a.toString()).length>=o?s:(new Array(o+1).join("0")+s).slice(-o)}}function a(e,t,n){return function(e,t,n){return-1===e.indexOf("$")?e:e.replace(/\$\$/g,"$").replace(/\$RepresentationID\$/g,String(t)).replace(/\$Bandwidth(\%0(\d+)d)?\$/g,i(void 0===n?0:n))}(e,t,n)}function o(e,t){return function(n){return-1===n.indexOf("$")?n:n.replace(/\$\$/g,"$").replace(/\$Number(\%0(\d+)d)?\$/g,(function(e,n,r){if(void 0===t)throw new Error("Segment number not defined in a $Number$ scheme");return i(t)(e,n,r)})).replace(/\$Time(\%0(\d+)d)?\$/g,(function(t,n,r){if(void 0===e)throw new Error("Segment time not defined in a $Time$ scheme");return i(e)(t,n,r)}))}}},95:function(e,t,n){"use strict";n.d(t,{A:function(){return je}});var r=n(2038),i=n(6787),a=n(5151),o=n(9477),s=n(1729),u=n(2716);function l(e){var t=Date.parse(e)-performance.now();if(!isNaN(t))return t;o.A.warn("DASH Parser: Invalid clock received: ",e)}function d(e){for(var t=e.representations,n=null,r=0;r=0;t--){var n=e[t].adaptations,r=void 0===n.audio?void 0:n.audio[0],i=void 0===n.video?void 0:n.video[0];if(void 0!==r||void 0!==i){var a=null,s=null;if(void 0!==r){var u=d(r);if(void 0===u)return{safe:void 0,unsafe:void 0};a=u}if(void 0!==i){var l=d(i);if(void 0===l)return{safe:void 0,unsafe:void 0};s=l}if(void 0!==r&&null===a||void 0!==i&&null===s)return o.A.info("Parser utils: found Period with no segment. ","Going to previous one to calculate last position"),{safe:void 0,unsafe:void 0};if(null!==s)return null!==a?{safe:Math.min(a,s),unsafe:Math.max(a,s)}:{safe:s,unsafe:s};if(null!==a)return{safe:a,unsafe:a}}}return{safe:void 0,unsafe:void 0}}(e);return{minimumSafePosition:t,maximumSafePosition:n.safe,maximumUnsafePosition:n.unsafe}}var v=function(){function e(e){this._isDynamic=e.isDynamic,this._timeShiftBufferDepth=e.isDynamic&&void 0!==e.timeShiftBufferDepth?e.timeShiftBufferDepth:null,this._serverTimestampOffset=e.serverTimestampOffset,this._availabilityStartTime=e.availabilityStartTime}var t=e.prototype;return t.setLastPosition=function(e,t){this._lastPosition=e,this._positionTime=t},t.lastPositionIsKnown=function(){return this._isDynamic?null!=this._positionTime&&null!=this._lastPosition:null!=this._lastPosition},t.getEstimatedMinimumSegmentTime=function(e){var t;if(!this._isDynamic||null===this._timeShiftBufferDepth)return 0;var n=null!==(t=this.getEstimatedLiveEdge())&&void 0!==t?t:this.getEstimatedMaximumPosition(0);return void 0!==n?n-(this._timeShiftBufferDepth+e):void 0},t.getEstimatedLiveEdge=function(){if(this._isDynamic&&void 0!==this._serverTimestampOffset)return(performance.now()+this._serverTimestampOffset)/1e3-this._availabilityStartTime},t.getEstimatedMaximumPosition=function(e){if(!this._isDynamic)return this._lastPosition;var t=this.getEstimatedLiveEdge();return void 0!==t&&e!==1/0?t+e:void 0!==this._positionTime&&void 0!==this._lastPosition?Math.max(this._lastPosition-this._positionTime+performance.now()/1e3,0):this._lastPosition},e}();var p=n(3262),h=n(8795),m=n(4324),g=n(4670);var y=n(4129),A=n(3786),_=n(4031),b=n(2384);function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var s=i-a.start;if(s%a.duration==0&&s/a.duration<=a.repeatCount)return{repeatNumberInPrevSegments:s/a.duration,prevSegmentsIdx:o,newElementsIdx:0,repeatNumberInNewElements:0}}if(++o>=e.length)return null;if((a=e[o]).start===i)return{prevSegmentsIdx:o,newElementsIdx:0,repeatNumberInPrevSegments:0,repeatNumberInNewElements:0};if(a.start>i)return null}else for(var u=0,l=t[0],d=i;;){var c=l.getAttribute("d"),f=null===c?null:parseInt(c,10);if(null===f||Number.isNaN(f))return null;var v=l.getAttribute("r"),p=null===v?null:parseInt(v,10);if(null!==p){if(Number.isNaN(p)||p<0)return null;if(p>0){var h=n-d;if(h%f==0&&h/f<=p)return{repeatNumberInPrevSegments:0,repeatNumberInNewElements:h/f,prevSegmentsIdx:0,newElementsIdx:u}}d+=f*(p+1)}else d+=f;if(++u>=t.length)return null;var m=(l=t[u]).getAttribute("t"),g=null===m?null:parseInt(m,10);if(null!==g){if(Number.isNaN(g))return null;d=g}if(d===n)return{newElementsIdx:u,prevSegmentsIdx:0,repeatNumberInPrevSegments:0,repeatNumberInNewElements:0};if(d>i)return null}}(t,e);if(null===r)return o.A.warn('DASH: Cannot perform "based" update. Common segment not found.'),K(e);var i=r.prevSegmentsIdx,a=r.newElementsIdx,s=r.repeatNumberInPrevSegments,u=r.repeatNumberInNewElements,l=t.length-i+a-1;if(l>=e.length)return o.A.info('DASH: Cannot perform "based" update. New timeline too short'),K(e);var d=t.slice(i);if(s>0){var c=d[0];c.start+=c.duration*s,d[0].repeatCount-=s}if(u>0&&0!==a)return o.A.info('DASH: Cannot perform "based" update. The new timeline has a different form.'),K(e);var f=d[d.length-1],v=z(e[l]),p=(null!==(n=v.repeatCount)&&void 0!==n?n:0)-u;if(v.duration!==f.duration||f.repeatCount>p)return o.A.info('DASH: Cannot perform "based" update. The new timeline has a different form at the beginning.'),K(e);void 0!==v.repeatCount&&v.repeatCount>f.repeatCount&&(f.repeatCount=v.repeatCount);for(var h=[],m=[],g=l+1;g=Math.min(u,null!==(r=this._scaledPeriodEnd)&&void 0!==r?r:1/0))return!1;var d=(0,C.vb)(e,this._index);if(o.length>0&&null!==l&&!l.isLastOfTimeline){var c=o[o.length-1];if(d<(0,C.Rb)(c,null,this._scaledPeriodEnd)+s+s)return!0}return!!this._isLastPeriod&&(void 0===this._scaledPeriodEnd?u+s>this._scaledPeriodStart&&void 0:d-sthis._scaledPeriodStart)},t.isSegmentStillAvailable=function(e){return!!e.isInit||(this._refreshTimeline(),null===this._index.timeline&&(this._index.timeline=this._getTimeline()),function(e,t,n,r){var i=q(t,n,r);if(null===i)return!1;for(var a=0;ae.time)return!1;if(s===e.time)return void 0===o.range?void 0===e.range:null!=e.range&&o.range[0]===e.range[0]&&o.range[1]===e.range[1];if(o.repeatCount>=0&&void 0!==o.duration){var u=(s-o.start)/o.duration-1;return u%1==0&&u<=i.newRepeatCount}}return!1}(e,this._index,this._manifestBoundsCalculator,this._scaledPeriodEnd))},t.checkDiscontinuity=function(e){this._refreshTimeline();var t=this._index.timeline;return null===t&&(t=this._getTimeline(),this._index.timeline=t),(0,C.ph)({timeline:t,timescale:this._index.timescale,indexTimeOffset:this._index.indexTimeOffset},e,this._scaledPeriodEnd)},t.canBeOutOfSyncError=function(e){return!!this._isDynamic&&(e instanceof N.A&&e.isHttpError(404))},t._replace=function(e){this._parseTimeline=e._parseTimeline,this._index=e._index,this._isDynamic=e._isDynamic,this._scaledPeriodStart=e._scaledPeriodStart,this._scaledPeriodEnd=e._scaledPeriodEnd,this._lastUpdate=e._lastUpdate,this._manifestBoundsCalculator=e._manifestBoundsCalculator,this._isLastPeriod=e._isLastPeriod},t._update=function(e){null===this._index.timeline&&(this._index.timeline=this._getTimeline()),null===e._index.timeline&&(e._index.timeline=e._getTimeline()),(0,U.A)(this._index.timeline,e._index.timeline)&&(this._index.startNumber=e._index.startNumber),this._index.availabilityTimeOffset=e._index.availabilityTimeOffset,this._index.availabilityTimeComplete=e._index.availabilityTimeComplete,this._index.endNumber=e._index.endNumber,this._isDynamic=e._isDynamic,this._scaledPeriodStart=e._scaledPeriodStart,this._scaledPeriodEnd=e._scaledPeriodEnd,this._lastUpdate=e._lastUpdate,this._isLastPeriod=e._isLastPeriod},t.isStillAwaitingFutureSegments=function(){var e;if(!this._isDynamic)return!1;this._refreshTimeline(),null===this._index.timeline&&(this._index.timeline=this._getTimeline());var t=this._index.timeline;if(0===t.length){if(void 0!==this._scaledPeriodEnd){var n=this._manifestBoundsCalculator.getEstimatedLiveEdge();if(void 0!==n&&(0,C.vb)(n,this._index)>this._scaledPeriodEnd)return!1}return this._isLastPeriod}var r=F(this._index.timescale),i=q(this._index,this._manifestBoundsCalculator,this._scaledPeriodEnd);if(null!==i&&!i.isLastOfTimeline){var a=Math.min(i.end,null!==(e=this._scaledPeriodEnd)&&void 0!==e?e:1/0);return!(void 0!==this._scaledPeriodEnd&&a+r>=this._scaledPeriodEnd)}if(!this._isLastPeriod)return!1;if(void 0===this._scaledPeriodEnd)return!0;var o=t[t.length-1];return(0,C.Rb)(o,null,this._scaledPeriodEnd)+rn){if(r===n+1)return e.slice(0,i+1);var o=e.slice(0,i),s=Object.assign({},a),u=r-a.repeatCount-1;return s.repeatCount=Math.max(0,n-u),o.push(s),o}}return e}function q(e,t,n){if(e.timeline.length<=0)return null;if(e.availabilityTimeOffset===1/0){var r=e.timeline.length-1,i=e.timeline[r];return{isLastOfTimeline:!0,timelineIdx:r,newRepeatCount:i.repeatCount,end:(0,C.Rb)(i,null,n)}}var a=t.getEstimatedMaximumPosition(e.availabilityTimeOffset);if(void 0===a){var o=e.timeline.length-1,s=e.timeline[o];return{isLastOfTimeline:!0,timelineIdx:o,newRepeatCount:s.repeatCount,end:(0,C.Rb)(s,null,n)}}for(var u=e.timeline.length-1;u>=e.timeline.length;u--){var l=e.timeline[u],d=l.start+l.duration;if((0,C._l)(d,e)<=a){var c=(0,C.Rb)(l,e.timeline[u+1],n);if((0,C._l)(c,e)<=a)return{isLastOfTimeline:u===e.timeline.length-1,timelineIdx:u,newRepeatCount:l.repeatCount,end:d};var f=(0,C.vb)(a,e)-l.start,v=Math.floor(f/l.duration);return(0,O.h)(v>=1),{isLastOfTimeline:!1,timelineIdx:u,newRepeatCount:v-1,end:l.start+v*l.duration}}}return null}var j=G,Y=function(){function e(e,t){var n,r,i=t.availabilityTimeOffset,a=t.manifestBoundsCalculator,o=t.isDynamic,s=t.periodEnd,u=t.periodStart,l=t.representationId,d=t.representationBitrate,c=t.isEMSGWhitelisted,f=null!==(n=e.timescale)&&void 0!==n?n:1;this._availabilityTimeOffset=i,this._manifestBoundsCalculator=a;var v=null!=e.presentationTimeOffset?e.presentationTimeOffset:0,p=v-u*f;if(void 0===e.duration)throw new Error("Invalid SegmentTemplate: no duration");var h=void 0===(null===(r=e.initialization)||void 0===r?void 0:r.media)?null:(0,P.I1)(e.initialization.media,l,d),m=void 0===e.media?null:(0,P.I1)(e.media,l,d);this._index={duration:e.duration,timescale:f,indexRange:e.indexRange,indexTimeOffset:p,initialization:null==e.initialization?void 0:{url:h,range:e.initialization.range},url:m,presentationTimeOffset:v,startNumber:e.startNumber,endNumber:e.endNumber},this._isDynamic=o,this._periodStart=u,this._scaledRelativePeriodEnd=void 0===s?void 0:(s-u)*f,this._isEMSGWhitelisted=c}var t=e.prototype;return t.getInitSegment=function(){return(0,M.A)(this._index,this._isEMSGWhitelisted)},t.getSegments=function(e,t){var n=this._index,r=n.duration,i=n.startNumber,a=n.endNumber,o=n.timescale,s=n.url,u=this._periodStart*o,l=this._scaledRelativePeriodEnd,d=e*o-u,c=(e+t)*o-u,f=this._getFirstSegmentStart(),v=this._getLastSegmentStart();if(null==f||null==v)return[];var p=Math.max(f,d),h=Math.min(v,c);if(h+r<=p)return[];for(var m=[],g=null!=i?i:1,y=Math.floor(p/r),A=y*r;A<=h;A+=r){var _=y+g;if(void 0!==a&&_>a)return m;var b=null!=l&&A+r>l?l-A:r,S=A+u,E=A+this._index.presentationTimeOffset,T=null===s?null:(0,P.Qy)(E,_)(s),w={id:String(_),number:_,time:S/o,end:(S+b)/o,duration:b/o,timescale:1,isInit:!1,scaledDuration:b/o,url:T,timestampOffset:-n.indexTimeOffset/o,complete:!0,privateInfos:{isEMSGWhitelisted:this._isEMSGWhitelisted}};m.push(w),y++}return m},t.getFirstAvailablePosition=function(){var e=this._getFirstSegmentStart();return null==e?e:e/this._index.timescale+this._periodStart},t.getLastAvailablePosition=function(){var e=this._getLastSegmentStart();if((0,i.A)(e))return e;var t=this._estimateRelativeScaledEnd();return Math.min(e+this._index.duration,null!=t?t:1/0)/this._index.timescale+this._periodStart},t.getEnd=function(){if(!this._isDynamic)return this.getLastAvailablePosition();var e=this._estimateRelativeScaledEnd();if(void 0!==e){var t=this._index.timescale;return(e+this._periodStart*t)/t}},t.awaitSegmentBetween=function(e,t){if((0,O.h)(e<=t),!this._isDynamic)return!1;var n=this._index.timescale,r=F(n),a=this._periodStart*n,o=e*n-a,s=t*n-a,u=this._getLastSegmentStart();if((0,i.A)(u)){var l=this._estimateRelativeScaledEnd();return void 0===l?s+r>=0:s+r>=0&&od-r:s>d-r&&othis._periodStart?(a-this._periodStart)*i:0;return Math.floor(o/r)*r}},t._getLastSegmentStart=function(){var e,t,n=this._index,r=n.duration,i=n.timescale,o=n.endNumber,s=n.startNumber,u=void 0===s?1:s;if(this._isDynamic){var l=this._manifestBoundsCalculator.getEstimatedLiveEdge();if(void 0!==l&&void 0!==this._scaledRelativePeriodEnd&&this._scaledRelativePeriodEndg||h<2?m:(h-2)*r},t._estimateRelativeScaledEnd=function(){var e,t;if(void 0!==this._index.endNumber){var n=this._index.endNumber-(null!==(e=this._index.startNumber)&&void 0!==e?e:1)+1;return Math.max(Math.min(n*this._index.duration,null!==(t=this._scaledRelativePeriodEnd)&&void 0!==t?t:1/0),0)}if(void 0!==this._scaledRelativePeriodEnd)return Math.max(this._scaledRelativePeriodEnd,0)},e}();function Q(e,t){var n;if(0===t.length)return e;var r=t.map((function(e){return{url:e.value}}));if(0===e.length)return r;for(var i=[],a=0;a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var g=t.parentSegmentTemplates.slice(),y=e.children.segmentTemplate;void 0!==y&&g.push(y);var A=I.A.apply(void 0,[{}].concat(g));void 0===A.availabilityTimeOffset&&void 0===t.availabilityTimeOffset||(p.availabilityTimeOffset=(null!==(n=A.availabilityTimeOffset)&&void 0!==n?n:0)+(null!==(r=t.availabilityTimeOffset)&&void 0!==r?r:0)),void 0===A.availabilityTimeComplete&&void 0===t.availabilityTimeComplete||(p.availabilityTimeComplete=null!==(i=A.availabilityTimeComplete)&&void 0!==i?i:t.availabilityTimeComplete),a=j.isTimelineIndexArgument(A)?new j(A,p):new Y(A,p)}else{var _=t.adaptation.children;if(void 0!==_.segmentBase){var b=_.segmentBase;a=new R.A(b,p)}else if(void 0!==_.segmentList){var S=_.segmentList;a=new D(S,p)}else a=new Y({duration:Number.MAX_VALUE,timescale:1,startNumber:0,media:""},p)}return a}(e,(0,I.A)({},n,{availabilityTimeOffset:v,availabilityTimeComplete:m,unsafelyBaseOnPreviousRepresentation:p,adaptation:t,inbandEventStreams:h}));void 0===e.attributes.bitrate?(o.A.warn("DASH: No usable bitrate found in the Representation."),g=0):g=e.attributes.bitrate;var A,_,S,E=Q(n.baseURLs,e.children.baseURLs),T={bitrate:g,cdnMetadata:0===E.length?[{baseUrl:"",id:void 0}]:E.map((function(e){return{baseUrl:e.url,id:e.serviceLocation}})),index:y,id:f};void 0!==e.children.supplementalProperties&&(0,s.A)(e.children.supplementalProperties,(function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"===e.schemeIdUri&&"JOC"===e.value}))&&(T.isSpatialAudio=!0),void 0!==e.attributes.codecs?A=e.attributes.codecs:void 0!==t.attributes.codecs&&(A=t.attributes.codecs),void 0!==A&&(A="mp4a.40.02"===A?"mp4a.40.2":A,T.codecs=A),void 0!==e.attributes.supplementalCodecs?_=e.attributes.supplementalCodecs:void 0!==t.attributes.supplementalCodecs&&(_=t.attributes.supplementalCodecs),void 0!==_&&(T.supplementalCodecs=(S=_,(0,b.A)(S)?S.trim().replace(x,", "):"")),void 0!==e.attributes.frameRate?T.frameRate=e.attributes.frameRate:void 0!==t.attributes.frameRate&&(T.frameRate=t.attributes.frameRate),void 0!==e.attributes.height?T.height=e.attributes.height:void 0!==t.attributes.height&&(T.height=t.attributes.height),void 0!==e.attributes.mimeType?T.mimeType=e.attributes.mimeType:void 0!==t.attributes.mimeType&&(T.mimeType=t.attributes.mimeType),void 0!==e.attributes.width?T.width=e.attributes.width:void 0!==t.attributes.width&&(T.width=t.attributes.width);var w=void 0!==t.children.contentProtections?t.children.contentProtections:[];if(void 0!==e.children.contentProtections&&w.push.apply(w,e.children.contentProtections),w.length>0){var k=w.reduce((function(e,t){var n;if(void 0!==t.attributes.schemeIdUri&&"urn:uuid:"===t.attributes.schemeIdUri.substring(0,9)&&(n=t.attributes.schemeIdUri.substring(9).replace(/-/g,"").toLowerCase()),void 0!==t.attributes.keyId&&t.attributes.keyId.length>0){var r={keyId:t.attributes.keyId,systemId:n};void 0===e.keyIds?e.keyIds=[r]:e.keyIds.push(r)}if(void 0!==n){for(var i,a=[],o=X(t.children.cencPssh);!(i=o()).done;){var u=i.value;a.push({systemId:n,data:u})}if(a.length>0){var l,d=(0,s.A)(e.initData,(function(e){return"cenc"===e.type}));if(void 0===d)e.initData.push({type:"cenc",values:a});else(l=d.values).push.apply(l,a)}}return e}),{keyIds:void 0,initData:[]});(Object.keys(k.initData).length>0||void 0!==k.keyIds&&k.keyIds.length>0)&&(T.contentProtections=k)}T.hdrInfo=Z({adaptationProfiles:t.attributes.profiles,supplementalProperties:t.children.supplementalProperties,essentialProperties:t.children.essentialProperties,manifestProfiles:n.manifestProfiles,codecs:A}),c.push(T)},v=X(e);!(d=v()).done;)f();return c}function ee(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(n.sort(se),e[t]=n.map((function(e){return e[0]}))),e}),{});return c.video.sort(se),T(de,f),de}(E.children.adaptations,B),V=(null!==(a=t.xmlNamespaces)&&void 0!==a?a:[]).concat(null!==(u=E.attributes.namespaces)&&void 0!==u?u:[]),z=function(e,t,n){for(var r,i,a,o=[],s=ue(e);!(a=s()).done;)for(var u,l=a.value,d=l.attributes,c=d.schemeIdUri,f=void 0===c?"":c,v=d.timescale,p=void 0===v?1:v,h=n.concat(null!==(r=l.attributes.namespaces)&&void 0!==r?r:[]),m=ue(l.children.events);!(u=m()).done;){var y=u.value;if(void 0!==y.eventStreamData){var A=(null!==(i=y.presentationTime)&&void 0!==i?i:0)/p+t,_=void 0===y.duration?void 0:A+y.duration/p,b=void 0;if(y.eventStreamData instanceof Element)b=y.eventStreamData;else{var S=h.reduce((function(e,t){return e+"xmlns:"+t.key+'="'+t.value+'" '}),"","application/xml").documentElement.childNodes[0]}o.push({start:A,end:_,id:y.id,data:{type:"dash-event-stream",value:{schemeIdUri:f,timescale:p,element:b}}})}}return o}(E.children.eventStreams,R,V),K={id:v,start:R,end:M,duration:C,adaptations:F,streamEvents:z};if(l.unshift(K),!f.lastPositionIsKnown()){var W=function(e){for(var t,n=null,r=!0,a=(0,m.A)(e).filter((function(e){return!(0,i.A)(e)})),o=ue((0,p.A)(a,(function(e){return e})));!(t=o()).done;)for(var s,u=ue(t.value.representations);!(s=u()).done;){var l=s.value.index.getLastAvailablePosition();null!==l&&(r=!1,"number"==typeof l&&(n=(0,i.A)(n)?l:Math.max(n,l)))}if(!(0,i.A)(n))return n;if(r)return null;return}(F);if(c)if("number"==typeof W){var G=performance.now()/1e3;f.setLastPosition(W,G)}else{var H=fe(t,R);if(void 0!==H){var q=H[0],j=H[1];f.setLastPosition(q,j)}}else"number"==typeof W&&f.setLastPosition(W)}},h=e.length-1;h>=0;h--)v();if(t.isDynamic&&!f.lastPositionIsKnown()){var S=fe(t,0);if(void 0!==S){var E=S[0],w=S[1];f.setLastPosition(E,w)}}return function(e){if(0===e.length)return[];for(var t=[e[0]],n=1;nr.start)&&(o.A.warn("DASH: Updating overlapping Periods.",null==i?void 0:i.start,r.start),i.duration=r.start-i.start,i.end=r.start,!(i.duration>0))&&(t.pop(),0!==t.length);)i=t[t.length-1];t.push(r)}return t}(l)}function fe(e,t){if((0,i.A)(e.clockOffset)){var n=Date.now()/1e3;if(n>=t)return o.A.warn("DASH Parser: no clock synchronization mechanism found. Using the system clock instead."),[n-e.availabilityStartTime,performance.now()/1e3]}else{var r=e.clockOffset/1e3-e.availabilityStartTime,a=performance.now()/1e3,s=a+r;if(s>=t)return[s,a]}}function ve(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0?t[0].value:void 0}(t);if(null!=A&&A.length>0)return{type:"needs-clock",value:{url:A,continue:function(i){return i.success?(n.externalClockOffset=l(i.data),e(t,n,r,!0)):(r.push(i.error),o.A.warn("DASH Parser: Error on fetching the clock ressource",i.error),e(t,n,r,!0))}}}}}for(var _=[],b=0;b=0&&(d=0===m.minimumUpdatePeriod?a.A.getCurrent().DASH_FALLBACK_LIFETIME_WHEN_MINIMUM_UPDATE_PERIOD_EQUAL_0:m.minimumUpdatePeriod);var M=f(x),P=M.minimumSafePosition,D=M.maximumSafePosition,N=M.maximumUnsafePosition,O=performance.now();if(g){var L;if(void 0!==D)L=D;else if(void 0===w)o.A.warn("DASH Parser: use system clock to define maximum position"),L=Date.now()/1e3-_;else L=(performance.now()+w)/1e3-_;var U=k.getEstimatedLiveEdge();void 0===U&&(U=void 0!==N?N:L),p={isLinear:!0,maximumSafePosition:L,livePosition:U,time:O},c=P,null!==(C=null!=b?b:null)&&(C+=null!=S?S:0),null!==C&&void 0!==c&&U-c>C&&(C=U-c)}else{c=void 0!==P?P:void 0!==(null===(i=x[0])||void 0===i?void 0:i.start)?x[0].start:0;var B=null!=R?R:1/0;if(void 0!==x[x.length-1]){var F=x[x.length-1],V=null!==(s=F.end)&&void 0!==s?s:void 0!==F.duration?F.start+F.duration:void 0;void 0!==V&&V=0;o--){var s,u=_[o].index,l=a[o],f=l.parsed,v=l.warnings,p=l.receivedTime,h=l.sendingTime,m=l.url;v.length>0&&r.push.apply(r,v);for(var g,y=ve(f);!(g=y()).done;){var A=g.value;d.set(A,{receivedTime:p,sendingTime:h,url:m})}(s=c.periods).splice.apply(s,[u,1].concat(f))}return e(t,n,r,i,d)}}}};function me(e){var t=e.textContent,n=[];return null===t||0===t.length?[void 0,n]:[{value:t},n]}function ge(e){for(var t={},n=0;n0){var s=Ce(a,"cenc:pssh"),u=s[0],l=s[1];null!==l&&(o.A.warn(l.message),t.push(l)),null!==u&&n.push(u)}}}return[{cencPssh:n},t]}(e.childNodes),n=t[0],r=t[1];return[{children:n,attributes:function(e){for(var t={},n=0;n0&&(r=r.concat(c));break;case"SegmentList":var f=Be(a),v=f[0],p=f[1];r=r.concat(p),t.segmentList=v;break;case"SegmentTemplate":var h=Ve(a),m=h[0],g=h[1];r=r.concat(g),t.segmentTemplate=m;break;case"ContentProtection":var y=Ne(a),A=y[0],_=y[1];_.length>0&&(r=r.concat(_)),void 0!==A&&n.push(A);break;case"SupplementalProperty":null==t.supplementalProperties?t.supplementalProperties=[Me(a)]:t.supplementalProperties.push(Me(a))}}return n.length>0&&(t.contentProtections=n),[t,r]}(e.childNodes),n=t[0],r=t[1],i=function(e){for(var t={},n=[],r=Pe(t,n),i=0;i0&&(r=r.concat(u));break;case"ContentComponent":t.contentComponent=ge(a);break;case"EssentialProperty":null==t.essentialProperties?t.essentialProperties=[Me(a)]:t.essentialProperties.push(Me(a));break;case"InbandEventStream":void 0===t.inbandEventStreams&&(t.inbandEventStreams=[]),t.inbandEventStreams.push(Me(a));break;case"Label":var l=a.textContent;null!=l&&(t.label=l);break;case"Representation":var d=ze(a),c=d[0],f=d[1];t.representations.push(c),f.length>0&&(r=r.concat(f));break;case"Role":null==t.roles?t.roles=[Me(a)]:t.roles.push(Me(a));break;case"SupplementalProperty":null==t.supplementalProperties?t.supplementalProperties=[Me(a)]:t.supplementalProperties.push(Me(a));break;case"SegmentBase":var v=Le(a),p=v[0],h=v[1];t.segmentBase=p,h.length>0&&(r=r.concat(h));break;case"SegmentList":var m=Be(a),g=m[0],y=m[1];t.segmentList=g,y.length>0&&(r=r.concat(y));break;case"SegmentTemplate":var A=Ve(a),_=A[0],b=A[1];t.segmentTemplate=_,b.length>0&&(r=r.concat(b));break;case"ContentProtection":var S=Ne(a),E=S[0],T=S[1];T.length>0&&(r=r.concat(T)),void 0!==E&&n.push(E)}}return n.length>0&&(t.contentProtections=n),[t,r]}(e.childNodes),n=t[0],r=t[1],i=function(e){for(var t={},n=[],r=Pe(t,n),i=0;i0&&(n=n.concat(d))}}return[t,n]}function Ge(e){for(var t={eventStreamData:e},n=[],r=Pe(t,n),i=0;i0&&(i=i.concat(A))}}return[{baseURLs:n,adaptations:r,eventStreams:a,segmentTemplate:t},i]}(e.childNodes),n=t[0],r=t[1],i=function(e){for(var t={},n=[],r=Pe(t,n),i=0;i",c=(new DOMParser).parseFromString(d,"text/xml");if(null==c||0===c.children.length)throw new Error("DASH parser: Invalid external ressources");for(var f=c.children[0].children,v=[],p=[],h=0;h0;){var r=e[0];if(r.start>=t)return n;if(-1===r.repeatCount)return n;if(0===r.repeatCount)e.shift(),n+=1;else{var i=e[1];if(void 0!==i&&i.start<=t)e.shift(),n+=1;else{if(r.duration<=0)return n;for(var a=r.start+r.duration,o=1;ar.repeatCount)){var s=r.repeatCount-o;return r.start=a,r.repeatCount=s,n+=o}e.shift(),n=r.repeatCount+1}}}return n}n.d(t,{A:function(){return r}})},3877:function(e,t,n){"use strict";n.d(t,{Rb:function(){return a},_l:function(){return s},jX:function(){return u},ph:function(){return l},vb:function(){return o},yi:function(){return i}});var r=n(6787);function i(e,t,n){var i,a=e.repeatCount;return a>=0?a:(i=(0,r.A)(t)?void 0!==n?n:Number.MAX_VALUE:t.start,Math.ceil((i-e.start)/e.duration)-1)}function a(e,t,n){var r=e.start,a=e.duration;return a<=0?r:r+(i(e,t,n)+1)*a}function o(e,t){var n;return e*t.timescale+(null!==(n=t.indexTimeOffset)&&void 0!==n?n:0)}function s(e,t){var n;return(e-(null!==(n=t.indexTimeOffset)&&void 0!==n?n:0))/t.timescale}function u(e,t,n){return[e*n,(e+t)*n]}function l(e,t,n){var r=e.timeline,i=o(t,e);if(i<0)return null;var u=function(e,t){for(var n=0,r=e.length;n>>1;e[i].start<=t?n=i+1:r=i}return n-1}(r,i);if(u<0||u>=r.length-1)return null;var l=r[u];if(l.duration<=0)return null;var d=r[u+1];if(void 0===d)return null;var c=d.start;return i>=a(l,d,n)&&i=0;u--){var l=e[u].start;if(l===o){var d=n-u;return e.splice.apply(e,[u,d].concat(t)),!1}if(lo)return i.A.warn("RepresentationIndex: Manifest update removed all previous segments"),e.splice.apply(e,[0,n].concat(t)),!0;if(void 0===c.repeatCount||c.repeatCount<=0)return c.repeatCount<0&&(c.repeatCount=Math.floor((o-c.start)/c.duration)-1),e.splice.apply(e,[u+1,n-(u+1)].concat(t)),!1;if(c.start+c.duration*(c.repeatCount+1)<=o)return e.splice.apply(e,[u+1,n-(u+1)].concat(t)),!1;var f=(o-c.start)/c.duration-1;if(f%1==0&&c.duration===t[0].duration){var v=t[0].repeatCount<0?-1:t[0].repeatCount+f+1;return e.splice.apply(e,[u,n-u].concat(t)),e[u].start=c.start,e[u].repeatCount=v,!1}return i.A.warn("RepresentationIndex: Manifest update removed previous segments"),e[u].repeatCount=Math.floor(f),e.splice.apply(e,[u+1,n-(u+1)].concat(t)),!1}}var p=e[e.length-1],h=t[t.length-1];return void 0!==p.repeatCount&&p.repeatCount<0?p.start>h.start?(i.A.warn("RepresentationIndex: The new index is older than the previous one"),!1):(i.A.warn('RepresentationIndex: The new index is "bigger" than the previous one'),e.splice.apply(e,[0,n].concat(t)),!0):p.start+p.duration*(p.repeatCount+1)>=h.start+h.duration*(h.repeatCount+1)?(i.A.warn("RepresentationIndex: The new index is older than the previous one"),!1):(i.A.warn('RepresentationIndex: The new index is "bigger" than the previous one'),e.splice.apply(e,[0,n].concat(t)),!0)}},9561:function(e,t,n){"use strict";var r=n(2384),i=/&#([0-9]+);/g,a=/
/gi,o=/]*>([\s\S]*?)<\/style[^>]*>/i,s=/\s*

]+))?>(.*)/i,u=/]+?start="?([0-9]*)"?[^0-9]/i;function l(e,t){var n=new RegExp("\\s*"+t+":\\s*(\\S+);","i").exec(e);return Array.isArray(n)?n[1]:null}t.A=function(e,t,n){var d,c,f=/]/gi,v=/]|<\/body>/gi,p=[],h=o.exec(e),m=Array.isArray(h)?h[1]:"";v.exec(e);var g,y=function(e){for(var t=/\.(\S+)\s*{([^}]*)}/gi,n={},r=t.exec(e);null!==r;){var i=r[1],a=l(r[2],"lang");null!=i&&null!=a&&(n[a]=i),r=t.exec(e)}return n}(m),A=function(e){var t=/p\s*{([^}]*)}/gi.exec(e);return null===t?"":t[1]}(m);if((0,r.A)(n)&&void 0===(g=y[n]))throw new Error("sami: could not find lang "+n+" in CSS");for(;d=f.exec(e),c=v.exec(e),null!==d||null!==c;){if(null===d||null===c||d.index>=c.index)throw new Error("parse error");var _=e.slice(d.index,c.index),b=u.exec(_);if(!Array.isArray(b))throw new Error("parse error (sync time attribute)");var S=+b[1];if(isNaN(S))throw new Error("parse error (sync time attribute NaN)");E(_.split("\n"),S/1e3)}return p;function E(e,n){for(var o=e.length;--o>=0;){var u=s.exec(e[o]);if(Array.isArray(u)){var l=u[1],d=u[2];if(g===l)if(" "===d)p[p.length-1].end=n;else{var c=document.createElement("DIV");c.className="rxp-texttrack-region";var f=document.createElement("DIV");f.className="rxp-texttrack-div",f.style.position="absolute",f.style.bottom="0",f.style.width="100%",f.style.color="#fff",f.style.textShadow="-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000";var v=document.createElement("div");v.className="rxp-texttrack-p",(0,r.A)(A)&&(v.style.cssText=A);for(var h=d.split(a),m=0;m/gi,s=/]*>([\s\S]*?)<\/style[^>]*>/i,u=/\s*

]+))?>(.*)/i,l=/]+?start="?([0-9]*)"?[^0-9]/i;function d(e,t){var n=new RegExp("\\s*"+t+":\\s*(\\S+);","i").exec(e);return Array.isArray(n)?n[1]:null}t.A=function(e,t,n){var c,f,v=/]/gi,p=/]|<\/body>/gi,h=[],m=s.exec(e),g=null!==m?m[1]:"";p.exec(e);var y,A=function(e){for(var t=/\.(\S+)\s*{([^}]*)}/gi,n={},r=t.exec(e);Array.isArray(r);){var i=r[1],a=d(r[2],"lang");null!=i&&null!=a&&(n[a]=i),r=t.exec(e)}return n}(g);if((0,i.A)(n)&&void 0===(y=A[n]))throw new Error("sami: could not find lang "+n+" in CSS");for(;c=v.exec(e),f=p.exec(e),null!==c||null!==f;){if(null===c||null===f||c.index>=f.index)throw new Error("parse error");var _=e.slice(c.index,f.index),b=l.exec(_);if(null===b)throw new Error("parse error (sync time attribute)");var S=+b[1];if(isNaN(S))throw new Error("parse error (sync time attribute NaN)");E(_.split("\n"),S/1e3)}return function(e){for(var t=[],n=0;n=0;)if(null!==(r=u.exec(e[s]))){var l=r,d=l[1],c=l[2];y===d&&(" "===c?h[h.length-1].end=n:h.push({text:(i=c,i.replace(o,"\n").replace(a,(function(e,t){return String.fromCharCode(Number(t))}))),start:n+t}))}}}},9413:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(2384);function i(e,t){for(var n=t+1;(0,r.A)(e[n]);)n++;return n}function a(e){for(var t=[],n=0;n0&&(1===o.length?o[0].indexOf("--\x3e")>=0&&t.push(o):(o[1].indexOf("--\x3e")>=0||o[0].indexOf("--\x3e")>=0)&&t.push(o)),n=a}return t}},1650:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(9413),i=n(5842);function a(e,t){for(var n=e.split(/\r\n|\n|\r/),a=(0,r.A)(n),s=[],u=0;u0){var l=document.createTextNode(o[s]);r.appendChild(l)}}else if("B"===a.nodeName){var d=e(a);d.style.fontWeight="bold",r.appendChild(d)}else if("I"===a.nodeName){var c=e(a);c.style.fontStyle="italic",r.appendChild(c)}else if("U"===a.nodeName){var f=e(a);f.style.textDecoration="underline",r.appendChild(f)}else if(u(a)&&"string"==typeof a.color){var v=e(a);v.style.color=a.color,r.appendChild(v)}else{var p=e(a);r.appendChild(p)}}return r}(t)}function u(e){return"FONT"===e.nodeName&&"color"in e}},5992:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(8068),i=n(9413),a=n(5842);function o(e,t){for(var n,o,s,u,l,d=e.split(/\r\n|\n|\r/),c=(0,i.A)(d),f=[],v=0;v0){var A=p.getAttribute("xml:space"),_=(0,l.A)(A)?"default"===A:o,S=(0,d.A)({},i,(0,c.i)(g,[p],n,t));u.push.apply(u,e(p,S,[p].concat(a),_))}}return u}(e,(0,d.A)({},r),[],i)}(e,n,r,i,s),S=0;S|\u2265/g,">").replace(/\u200E/g,"‎").replace(/\u200F/g,"‏").replace(/\u00A0/g," ")}else if((0,l.SV)(s))i+="\n";else if((0,l.f_)(s)&&s.nodeType===Node.ELEMENT_NODE&&s.childNodes.length>0){var c=s.getAttribute("xml:space");i+=n(s,(0,o.A)(c)?"default"===c:t)}}return i}return n(e,t)}(t,v),y=(0,i.A)(h+n,m+n,g);return null===y?null:((0,a.A)(y)&&function(e,t){var n=t.extent;if((0,o.A)(n)){var r=u.KP.exec(n);null!=r&&(e.size=Number(r[1]))}switch(t.writingMode){case"tb":case"tblr":e.vertical="lr";break;case"tbrl":e.vertical="rl"}var i=t.origin;if((0,o.A)(i))u.KP.exec(i);var a=t.align;if((0,o.A)(a)){e.align=a,"center"===a&&("center"!==e.align&&(e.align="middle"),e.position="auto");var s=c[a];e.positionAlign=void 0===s?"":s;var l=d[a];e.lineAlign=void 0===l?"":l}}(y,r),y)}var v=function(e,t){for(var n=(0,r.A)(e,t),i=[],a=0;a0&&(t=n)}return t}function a(e){var t=e.getElementsByTagName("body");if(t.length>0)return t[0];var n=e.getElementsByTagName("tt:body");return n.length>0?n[0]:null}function o(e){var t=e.getElementsByTagName("style");if(t.length>0)return t;var n=e.getElementsByTagName("tt:style");return n.length>0?n:t}function s(e){var t=e.getElementsByTagName("region");if(t.length>0)return t;var n=e.getElementsByTagName("tt:region");return n.length>0?n:t}function u(e){var t=e.getElementsByTagName("p");if(t.length>0)return t;var n=e.getElementsByTagName("tt:p");return n.length>0?n:t}function l(e){return"br"===e.nodeName||"tt:br"===e.nodeName}function d(e){return"span"===e.nodeName||"tt:span"===e.nodeName}n.d(t,{$K:function(){return a},Ft:function(){return i},SV:function(){return l},Y$:function(){return s},bL:function(){return o},f_:function(){return d},zn:function(){return u}})},7093:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(2384),i=n(6525);function a(e,t){for(var n=[],a=t;a=2)for(var r=function(r){var o=e[r];if(Array.isArray(/::cue {/.exec(o)))for(o=e[++r];(0,i.A)(o)&&!Array.isArray(/}/.exec(o))&&0!==o.length;)n+=o,o=e[++r];else{for(var s=[],u=/::cue\(\.?(.*?)\)(?:,| {)/.exec(o);(0,i.A)(o)&&Array.isArray(u);)s.push(u[1]),o=e[++r],u=/::cue\(\.?(.*?)\)(?:,| {)/.exec(o);for(var l="";(0,i.A)(o)&&!Array.isArray(/}/.exec(o))&&0!==o.length;)l+=o,o=e[++r];s.forEach((function(e){void 0===t[e]?t[e]=l:t[e]+=l}))}a=r},a=1;a0&&n.appendChild(document.createElement("br")),o[s].length>0){var u=document.createTextNode(o[s]);n.appendChild(u)}}else{var c=e.nodeName.toLowerCase().split("."),f=[];if(c.forEach((function(e){(0,i.A)(t[e])&&f.push(t[e])})),0!==f.length){var v=document.createAttribute("style");f.forEach((function(e){v.value+=e}));var p=(0,l.A)(r,a)?a:"span";(n=document.createElement(p)).setAttributeNode(v)}else{var h=(0,l.A)(r,a)?a:"span";n=document.createElement(h)}for(var m=0;m/,"").replace(/<([u,i,b,c])(\..*?)?(?: .*?)?>(.*?)<\/\1>/g,"<$1$2>$3"),r=(new DOMParser).parseFromString(n,"text/html").body.childNodes,i=[],a=0;a=2){var a=parseInt(i[1],10);isNaN(a)||(t.position=a,void 0!==i[2]&&(t.positionAlign=i[2]))}}(0,u.A)(e.size)&&(t.size=e.size),"string"==typeof e.align&&(0,s.A)(["start","center","end","left"],e.align)&&(t.align=e.align)}var d=n(8068);var c=function(e,t){var n=e.split(/\r\n|\n|\r/);if(!/^WEBVTT($| |\t)/.test(n[0]))throw new Error("Can't parse WebVTT: Invalid file.");for(var s,u,c,f,v=(0,o.yW)(n),p=(0,i.A)(n,v),h=[],m=0;m/;if(o.test(e[0]))n=e[0],r=e.slice(1,e.length);else{if(!o.test(e[1]))return null;a=e[0],n=e[1],r=e.slice(2,e.length)}var s=function(e){var t=/^([\d:.]+)[ |\t]+-->[ |\t]+([\d:.]+)[ |\t]*(.*)$/.exec(e);if(null===t)return null;var n=i(t[1]),r=i(t[2]);return null==n||null==r?null:{start:n,end:r,settings:t[3].split(/ |\t/).reduce((function(e,t){var n=t.split(":");return 2===n.length&&(e[n[0]]=n[1]),e}),{})}}(n);return null===s?null:{start:s.start+t,end:s.end+t,settings:s.settings,payload:r,header:a}}},6525:function(e,t,n){"use strict";n.d(t,{GX:function(){return o},iq:function(){return a},o4:function(){return s},yW:function(){return i}});var r=n(2384);function i(e){for(var t=0;t=0)return!0;var r=e[t+1];return void 0!==r&&r.indexOf("--\x3e")>=0}function s(e,t){for(var n=t+1;(0,r.A)(e[n]);)n++;return n}},9502:function(e,t,n){"use strict";n.d(t,{A:function(){return ce}});var r=n(418),i=n(1856),a=n(467),o=n(4756),s=n.n(o),u=n(4389),l=n(2716);function d(e,t){return null===e?null:null===t.url?e.baseUrl:(0,l.Ay)(e.baseUrl,t.url)}function c(e,t,n,r,i){return f.apply(this,arguments)}function f(){return(f=(0,a.A)(s().mark((function e(t,n,r,i,a){var o,l,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.segment,l=d(t,o),!o.isInit&&null!==l){e.next=4;break}return e.abrupt("return",{resultType:"segment-created",resultData:null});case 4:return e.next=6,(0,u.Ay)({url:l,responseType:"arraybuffer",timeout:r.timeout,onProgress:a.onProgress,cancelSignal:i});case 6:return c=e.sent,e.abrupt("return",{resultType:"segment-loaded",resultData:c});case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e,t){var n,i=t.segment,a=t.period,o=e.data,s=e.isChunked;if(t.segment.isInit)return{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0};if(s)throw new Error("Image data should not be downloaded in chunks");var u=null!==(n=i.timestampOffset)&&void 0!==n?n:0;return null===o||null===r.A.imageParser?{segmentType:"media",chunkData:null,chunkSize:0,chunkInfos:{duration:i.duration,time:i.time},chunkOffset:u,protectionDataUpdate:!1,appendWindow:[a.start,a.end]}:{segmentType:"media",chunkData:{data:r.A.imageParser(new Uint8Array(o)).thumbs,start:0,end:Number.MAX_VALUE,timescale:1,type:"bif"},chunkSize:void 0,chunkInfos:{time:0,duration:Number.MAX_VALUE},chunkOffset:u,protectionDataUpdate:!1,appendWindow:[a.start,a.end]}}var p=n(5151),h=n(874),m=n(9477),g=n(8568),y=n(8935),A=n(4670);function _(e){var t=e.aggressiveMode,n=e.referenceDateTime,i=void 0!==e.serverSyncInfos?e.serverSyncInfos.serverTimestamp-e.serverSyncInfos.clientTime:void 0;return function(a,o,s,l,d){var c,f=a.responseData,v=o.externalClockOffset,_=null!==(c=a.url)&&void 0!==c?c:o.originalUrl,b=null!=i?i:v,S={aggressiveMode:!0===t,unsafelyBaseOnPreviousManifest:o.unsafeMode?o.previousManifest:null,url:_,referenceDateTime:n,externalClockOffset:b},E=r.A.dashParsers;if(null===E.wasm||"uninitialized"===E.wasm.status||"failure"===E.wasm.status)return m.A.debug("DASH: WASM MPD Parser not initialized. Running JS one."),w();var T=function(e){if(e instanceof ArrayBuffer)return e;if("string"==typeof e)return(0,A.eb)(e).buffer;if(e instanceof Document)return(0,A.eb)(e.documentElement.innerHTML).buffer;throw new Error("DASH Manifest Parser: Unrecognized Manifest format")}(f);return function(e){var t=new DataView(e);if(61371===t.getUint16(0)&&191===t.getUint8(2))return!0;if(65279===t.getUint16(0)||65534===t.getUint16(0))return!1;return!0}(T)?"initialized"===E.wasm.status?(m.A.debug("DASH: Running WASM MPD Parser."),k(E.wasm.runWasmParser(T,S))):(m.A.debug("DASH: Awaiting WASM initialization before parsing the MPD."),E.wasm.waitForInitialization().catch((function(){})).then((function(){return null===E.wasm||"initialized"!==E.wasm.status?(m.A.warn("DASH: WASM MPD parser initialization failed. Running JS parser instead"),w()):(m.A.debug("DASH: Running WASM MPD Parser."),k(E.wasm.runWasmParser(T,S)))}))):(m.A.info("DASH: MPD doesn't seem to be UTF-8-encoded. Running JS parser instead of the WASM one."),w());function w(){if(null===E.js)throw new Error("No MPD parser is imported");var e=function(e){if(e instanceof ArrayBuffer)return(new DOMParser).parseFromString((0,A.Es)(new Uint8Array(e)),"text/xml");if("string"==typeof e)return(new DOMParser).parseFromString(e,"text/xml");if(e instanceof Document)return e;throw new Error("DASH Manifest Parser: Unrecognized Manifest format")}(f);return k(E.js(e,S))}function k(t){if("done"===t.type)return t.value.warnings.length>0&&s(t.value.warnings),l.isCancelled()?Promise.reject(l.cancellationError):{manifest:new g.Ay(t.value.parsed,e),url:_};var n=t.value,r=n.urls.map((function(e){return d((function(){var t=p.A.getCurrent().DEFAULT_REQUEST_TIMEOUT;return"string"===n.format?(0,u.Ay)({url:e,responseType:"text",timeout:t,cancelSignal:l}):(0,u.Ay)({url:e,responseType:"arraybuffer",timeout:t,cancelSignal:l})})).then((function(e){if("string"===n.format){if("string"!=typeof e.responseData)throw new Error("External DASH resources should have been a string");return(0,y.A)(e,{responseData:{success:!0,data:e.responseData}})}if(!(e.responseData instanceof ArrayBuffer))throw new Error("External DASH resources should have been ArrayBuffers");return(0,y.A)(e,{responseData:{success:!0,data:e.responseData}})}),(function(e){var t=(0,h.A)(e,{defaultCode:"PIPELINE_PARSE_ERROR",defaultReason:"An unknown error occured when parsing ressources."});return(0,y.A)({},{size:void 0,requestDuration:void 0,responseData:{success:!1,error:t}})}))}));return Promise.all(r).then((function(e){return n.format,k(n.continue(e))}))}}}var b=n(7004),S=n(3506),E=n(5497),T=n(6787),w="function"==typeof Headers?Headers:null,k="function"==typeof AbortController?AbortController:null;function I(){return"function"==typeof window.fetch&&!(0,T.A)(k)&&!(0,T.A)(w)}var x=n(5950),R=n(3233);function C(e,t){return"audio"===e||"video"===e?"video/mp4"===t.mimeType||"audio/mp4"===t.mimeType?"mp4":"video/webm"===t.mimeType||"audio/webm"===t.mimeType?"webm":void 0:"text"===e&&"application/mp4"===t.mimeType?"mp4":void 0}var M=n(2507),P=n(3598);function D(e){return function(t,n,r,i,a){return new Promise((function(s,u){var l=new M.Ay,d=l.linkToSignal(i);function c(){l.signal.deregister(u),d()}l.signal.register(u),e(t,n,r,l.signal,Object.assign(Object.assign({},a),{onNewChunk:function(e){try{o(e),a.onNewChunk(e)}catch(e){c(),l.cancel(),u(e)}}})).then((function(e){if(c(),!l.isUsed()){if("segment-loaded"===e.resultType)try{o(e.resultData.responseData)}catch(e){return void u(e)}s(e)}}),(function(e){c(),u(e)}))}));function o(e){(e instanceof ArrayBuffer||e instanceof Uint8Array)&&"mp4"===C(n.adaptation.type,n.representation)&&(0,P.A)(new Uint8Array(e),n.segment.isInit)}}}var N=n(5553);function O(e,t,n,r,i){if(void 0===t.range)return(0,u.Ay)({url:e,responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}));if(void 0===t.indexRange)return(0,u.Ay)({url:e,headers:{Range:(0,R.A)(t.range)},responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}));if(t.range[1]+1===t.indexRange[0])return(0,u.Ay)({url:e,headers:{Range:(0,R.A)([t.range[0],t.indexRange[1]])},responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}));var a=(0,u.Ay)({url:e,headers:{Range:(0,R.A)(t.range)},responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress}),o=(0,u.Ay)({url:e,headers:{Range:(0,R.A)(t.indexRange)},responseType:"arraybuffer",timeout:n.timeout,cancelSignal:r,onProgress:i.onProgress});return Promise.all([a,o]).then((function(t){var n=t[0],r=t[1],i=(0,N.xW)(new Uint8Array(n.responseData),new Uint8Array(r.responseData)),a=Math.min(n.sendingTime,r.sendingTime),o=Math.max(n.receivedTime,r.receivedTime);return{resultType:"segment-loaded",resultData:{url:e,responseData:i,size:n.size+r.size,requestDuration:o-a,sendingTime:a,receivedTime:o}}}))}var L=n(1688);function U(e,t,n,r,i){var o=t.segment,u=void 0!==o.range?{Range:(0,R.A)(o.range)}:void 0,l=null;return function(e){var t;if(!(0,T.A)(e.headers))if((0,T.A)(w))t=e.headers;else{t=new w;for(var n=Object.keys(e.headers),r=0;r=300)throw m.A.warn("Fetch: Request HTTP Error",t.status,t.url),new S.A(t.url,t.status,E.yl.ERROR_HTTP_CODE);if((0,T.A)(t.body))throw new S.A(t.url,t.status,E.yl.PARSE_ERROR);var n=t.headers.get("Content-Length"),r=(0,T.A)(n)||isNaN(+n)?void 0:+n,i=t.body.getReader(),u=0;return l();function l(){return c.apply(this,arguments)}function c(){return(c=(0,a.A)(s().mark((function n(){var a,o,c,f,p;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i.read();case 2:if((a=n.sent).done||(0,T.A)(a.value)){n.next=11;break}return u+=a.value.byteLength,o=performance.now(),c={url:t.url,currentTime:o,duration:o-d,sendingTime:d,chunkSize:a.value.byteLength,chunk:a.value.buffer,size:u,totalSize:r},e.onData(c),n.abrupt("return",l());case 11:if(!a.done){n.next=16;break}return v(),f=performance.now(),p=f-d,n.abrupt("return",{requestDuration:p,receivedTime:f,sendingTime:d,size:u,status:t.status,url:t.url});case 16:return n.abrupt("return",l());case 17:case"end":return n.stop()}}),n)})))).apply(this,arguments)}})).catch((function(t){if(null!==u)throw u;if(v(),l)throw m.A.warn("Fetch: Request timeouted."),new S.A(e.url,0,E.yl.TIMEOUT);if(t instanceof S.A)throw t;throw m.A.warn("Fetch: Request Error",t instanceof Error?t.toString():""),new S.A(e.url,0,E.yl.ERROR_EVENT)}))}({url:e,headers:u,onData:function(e){var t=new Uint8Array(e.chunk),n=function(e){for(var t=0,n=[],r=null;te.length)return[n,r];var o=(0,L.A)(r,1835295092);if(o<0)return[n,r];var s=t+o+(0,N.mq)(e,o+t);if(s>e.length)return[n,r];var u=Math.max(a,s),l=e.subarray(t,u);n.push(l),t=u}return 0===n.length?[null,r]:[n,r]}(null!==l?(0,N.xW)(l,t):t),a=n[0];l=n[1],null!==a&&(a.forEach((function(e){r.onNewChunk(e)})),i.isCancelled())||(r.onProgress({duration:e.duration,size:e.size,totalSize:e.totalSize}),i.isCancelled())},timeout:n.timeout,cancelSignal:i}).then((function(e){return{resultType:"chunk-complete",resultData:e}}))}function B(e,t,n,r,i,a){if(t.segment.isInit)return O(e,t.segment,r,a,i);var o=C(t.adaptation.type,t.representation);if(n&&("mp4"===o||void 0===o)){if(I())return U(e,t,r,i,a);(0,x.A)("DASH: Your browser does not have the fetch API. You will have a higher chance of rebuffering when playing close to the live edge")}var s=t.segment;return(0,u.Ay)({url:e,responseType:"arraybuffer",headers:void 0!==s.range?{Range:(0,R.A)(s.range)}:void 0,timeout:r.timeout,cancelSignal:a,onProgress:i.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}))}var F=n(2948),V=n(1134),z=408125543,K=357149030,W=2807729,G=17545,H=475249515,q=187,j=179,Y=183,Q=241;function X(e,t,n,r){for(var i=r[0],a=r[1],o=i;o0)for(var v=0;v=Math.pow(2,8-n))return n}function ee(e,t){var n=J(e,t);if(null==n)return m.A.warn("webm: unrepresentable length"),null;if(t+n>e.length)return m.A.warn("webm: impossible length"),null;for(var r=0,i=0;ie.length)return m.A.warn("webm: impossible length"),null;for(var r=(e[t]&(1<<8-n)-1)*Math.pow(2,8*(n-1)),i=1;i=i)return!0}return!1}(r,t);return{inbandEvents:a,needsManifestRefresh:o}}}function oe(e){var t=e.__priv_patchLastSegmentInSidx;return function(e,n,r){var i,a,o=n.period,s=n.adaptation,u=n.representation,l=n.segment,d=n.manifest,c=e.data,f=e.isChunked,v=[o.start,o.end];if(null===c)return l.isInit?{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0}:{segmentType:"media",chunkData:null,chunkSize:0,chunkInfos:null,chunkOffset:0,protectionDataUpdate:!1,appendWindow:v};var p=c instanceof Uint8Array?c:new Uint8Array(c),h=C(s.type,u),m="mp4"===h||void 0===h,g=!1;if(m){var y,A=(0,F.A)(p);l.isInit&&(y=null!==(i=(0,V.a5)(p))&&void 0!==i?i:void 0),(A.length>0||void 0!==y)&&(g=u._addProtectionData("cenc",y,A))}if(!l.isInit){var _=m?ie(p,f,l,r):null,b=null!==(a=l.timestampOffset)&&void 0!==a?a:0;if(m){var S=(0,V.pk)(p);if(void 0!==S){var E=ae(S.filter((function(e){return void 0!==l.privateInfos&&void 0!==l.privateInfos.isEMSGWhitelisted&&l.privateInfos.isEMSGWhitelisted(e)})),d.publishTime);if(void 0!==E){var w=E.needsManifestRefresh,k=E.inbandEvents;return{segmentType:"media",chunkData:p,chunkSize:p.length,chunkInfos:_,chunkOffset:b,appendWindow:v,inbandEvents:k,protectionDataUpdate:g,needsManifestRefresh:w}}}}return{segmentType:"media",chunkData:p,chunkSize:p.length,chunkInfos:_,chunkOffset:b,protectionDataUpdate:g,appendWindow:v}}var I=l.indexRange,x=null;if("webm"===h)x=function(e,t){var n=X(z,[],e,[t,e.length]);if(null==n)return null;var r=n[0],i=n[1],a=$(e,r);if(null==a)return null;var o=Z(e,r);if(null==o)return null;var s=X(H,[],e,[r,i]);if(null==s)return null;for(var u=[],l=s[0];l0)){var R=x[x.length-1];Array.isArray(R.range)&&(R.range[1]=1/0)}u.index instanceof re.A&&null!==x&&x.length>0&&u.index.initializeIndex(x);var M=m?(0,V.zS)(p):"webm"===h?$(p,0):void 0,P=(0,T.A)(M)?void 0:M;return{segmentType:"init",initializationData:p,initializationDataSize:p.length,protectionDataUpdate:g,initTimescale:P}}}var se=n(2875);function ue(e,t,n,r){var i,a,o=e.segment,s=e.adaptation,u=e.representation;if(o.isInit)return null;null===n?r?(i=o.time,a=o.end):m.A.warn("Transport: Unavailable time data for current text track."):(i=n.time,void 0!==n.duration?a=i+n.duration:!r&&o.complete&&(a=i+o.duration));var l=function(e){var t=e.codec;if(void 0===t)throw new Error("Cannot parse subtitles: unknown format");switch(t.toLowerCase()){case"stpp":case"stpp.ttml":case"stpp.ttml.im1t":return"ttml";case"wvtt":return"vtt"}throw new Error('The codec used for the subtitles "'+t+'" is not managed yet.')}(u),d=function(e){var t=(0,se.j8)(e);return null===t?"":(0,A.Es)(t)}(t);return{data:d,type:l,language:s.language,start:i,end:a}}function le(e,t,n){var r,i,a=e.segment,o=e.adaptation,s=e.representation;if(a.isInit)return null;n?m.A.warn("Transport: Unavailable time data for current text track."):(r=a.time,a.complete&&(i=a.time+a.duration));var u=function(e){var t=e.mimeType,n=void 0===t?"":t;switch(e.mimeType){case"application/ttml+xml":return"ttml";case"application/x-sami":case"application/smil":return"sami";case"text/vtt":return"vtt"}var r=e.codec;if("srt"===(void 0===r?"":r).toLowerCase())return"srt";throw new Error("could not find a text-track parser for the type "+n)}(s);return{data:t,type:u,language:o.language,start:r,end:i}}function de(e){var t=e.__priv_patchLastSegmentInSidx;return function(e,n,r){var i,a=n.period,o=n.adaptation,s=n.representation,u=n.segment,l=e.data,d=e.isChunked;if(null===l)return u.isInit?{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0}:{segmentType:"media",chunkData:null,chunkSize:0,chunkInfos:null,chunkOffset:null!==(i=u.timestampOffset)&&void 0!==i?i:0,protectionDataUpdate:!1,appendWindow:[a.start,a.end]};var c=C(o.type,s);if("webm"===c)throw new Error("Text tracks with a WEBM container are not yet handled.");return"mp4"===c?function(e,t,n,r,i){var a,o=n.period,s=n.representation,u=n.segment,l=u.isInit,d=u.indexRange,c="string"==typeof e?(0,A.eb)(e):e instanceof Uint8Array?e:new Uint8Array(e);if(l){var f=(0,V.Tr)(c,Array.isArray(d)?d[0]:0);if(!0===i&&null!==f&&f.length>0){var v=f[f.length-1];Array.isArray(v.range)&&(v.range[1]=1/0)}var p=(0,V.zS)(c);return s.index instanceof re.A&&null!==f&&f.length>0&&s.index.initializeIndex(f),{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:p}}var h=ie(c,t,u,r),m=ue(n,c,h,t),g=null!==(a=u.timestampOffset)&&void 0!==a?a:0;return{segmentType:"media",chunkData:m,chunkSize:c.length,chunkInfos:h,chunkOffset:g,protectionDataUpdate:!1,appendWindow:[o.start,o.end]}}(l,d,n,r,t):function(e,t,n){var r,i,a=n.period,o=n.segment,s=o.timestampOffset,u=void 0===s?0:s;if(o.isInit)return{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0};if("string"!=typeof e){var l=e instanceof Uint8Array?e:new Uint8Array(e);r=(0,A.Es)(l),i=l.length}else r=e;return{segmentType:"media",chunkData:le(n,r,t),chunkSize:i,chunkInfos:null,chunkOffset:u,protectionDataUpdate:!1,appendWindow:[a.start,a.end]}}(l,d,n)}}var ce=function(e){var t=(0,i.A)({customManifestLoader:e.manifestLoader},null===r.A.dashParsers.wasm||"initialized"!==r.A.dashParsers.wasm.status&&"initializing"!==r.A.dashParsers.wasm.status?"arraybuffer":"text"),n=_(e),a=function(e){var t=e.lowLatencyMode,n=e.segmentLoader;return!0!==e.checkMediaSegmentIntegrity?r:D(r);function r(e,r,i,a,o){var s=d(e,r.segment);if(null==s)return Promise.resolve({resultType:"segment-created",resultData:null});if(t||void 0===n)return B(s,r,t,i,o,a);var u={adaptation:r.adaptation,manifest:r.manifest,period:r.period,representation:r.representation,segment:r.segment,transport:"dash",timeout:i.timeout,url:s};return new Promise((function(e,l){var d=!1,c=n(u,{reject:function(e){var t,n,r;if(!d&&!a.isCancelled()){d=!0,a.deregister(f);var i=e,o=null!==(t=null==i?void 0:i.message)&&void 0!==t?t:"Unknown error when fetching a DASH segment through a custom segmentLoader.",s=new b.A(o,null!==(n=null==i?void 0:i.canRetry)&&void 0!==n&&n,null!==(r=null==i?void 0:i.isOfflineError)&&void 0!==r&&r,null==i?void 0:i.xhr);l(s)}},resolve:function(t){d||a.isCancelled()||(d=!0,a.deregister(f),e({resultType:"segment-loaded",resultData:{responseData:t.data,size:t.size,requestDuration:t.duration}}))},progress:function(e){d||a.isCancelled()||o.onProgress({duration:e.duration,size:e.size,totalSize:e.totalSize})},fallback:function(){d||a.isCancelled()||(d=!0,a.deregister(f),B(s,r,t,i,o,a).then(e,l))}});function f(e){d||(d=!0,"function"==typeof c&&c(),l(e))}a.register(f)}))}}(e),o=oe(e),s=function(e){var t=e.lowLatencyMode;return!0!==e.checkMediaSegmentIntegrity?n:D(n);function n(e,n,r,i,a){var o=n.adaptation,s=n.representation,l=n.segment,c=l.range,f=d(e,l);if(null===f)return Promise.resolve({resultType:"segment-created",resultData:null});if(l.isInit)return O(f,l,r,i,a);var v=C(o.type,s),p="mp4"===v||void 0===v;if(t&&p){if(I())return U(f,n,r,a,i);(0,x.A)("DASH: Your browser does not have the fetch API. You will have a higher chance of rebuffering when playing close to the live edge")}return p?(0,u.Ay)({url:f,responseType:"arraybuffer",headers:Array.isArray(c)?{Range:(0,R.A)(c)}:null,timeout:r.timeout,onProgress:a.onProgress,cancelSignal:i}).then((function(e){return{resultType:"segment-loaded",resultData:e}})):(0,u.Ay)({url:f,responseType:"text",headers:Array.isArray(c)?{Range:(0,R.A)(c)}:null,timeout:r.timeout,onProgress:a.onProgress,cancelSignal:i}).then((function(e){return{resultType:"segment-loaded",resultData:e}}))}}(e);return{manifest:{loadManifest:t,parseManifest:n},audio:{loadSegment:a,parseSegment:o},video:{loadSegment:a,parseSegment:o},text:{loadSegment:s,parseSegment:de(e)},image:{loadSegment:c,parseSegment:v}}}},5564:function(e,t,n){"use strict";n.d(t,{A:function(){return me}});var r=n(467),i=n(4756),a=n.n(i),o=n(418),s=n(9477),u=n(8568),l=n(2875),d=n(7941),c=n(7994),f=n(5019),v=n(3877),p=n(860);function h(e,t,n){var r=e.timeline,i=e.timescale,a=r[r.length-1],o=t.timescale===i?{time:t.time,duration:t.duration}:{time:t.time/t.timescale*i,duration:t.duration/t.timescale*i};return!(n.time===o.time)&&(o.time>=(0,v.Rb)(a,null)&&(a.duration===o.duration?a.repeatCount++:e.timeline.push({duration:o.duration,start:o.time,repeatCount:0}),!0))}function m(e,t){return e.replace(/\{start time\}/g,String(t))}function g(e,t,n){var r=t-e;return r>0?Math.floor(r/n):0}function y(e,t){var n=e.repeatCount;if(null!=e.duration&&n<0){var r=void 0!==t?t.start:1/0;n=Math.ceil((r-e.start)/e.duration)-1}return n}var A=function(){function e(e,t){var n=t.aggressiveMode,r=t.isLive,i=t.segmentPrivateInfos,a=t.timeShiftBufferDepth,o=null==t.manifestReceivedTime?performance.now():t.manifestReceivedTime;if(this._index=e,this._indexValidityTime=o,this._timeShiftBufferDepth=a,this._initSegmentInfos={bitsPerSample:i.bitsPerSample,channels:i.channels,codecPrivateData:i.codecPrivateData,packetSize:i.packetSize,samplingRate:i.samplingRate,timescale:e.timescale,protection:i.protection},this._isAggressiveMode=n,this._isLive=r,0!==e.timeline.length){var s=e.timeline[e.timeline.length-1],u=(0,v.Rb)(s,null);if(this._initialScaledLastPosition=u,r){var l=o/1e3*e.timescale;this._scaledLiveGap=l-u}}}var t=e.prototype;return t.getInitSegment=function(){return{id:"init",isInit:!0,privateInfos:{smoothInitSegment:this._initSegmentInfos},url:null,time:0,end:0,duration:0,timescale:1,complete:!0}},t.getSegments=function(e,t){this._refreshTimeline();for(var n,r=function(e,t,n){var r=void 0===e.timescale||0===e.timescale?1:e.timescale;return{up:t*r,to:(t+n)*r}}(this._index,e,t),i=r.up,a=r.to,o=this._index,s=o.timeline,u=o.timescale,l=o.media,d=this._isAggressiveMode,c=[],f=s.length,v=null==this._scaledLiveGap?void 0:performance.now()/1e3*u-this._scaledLiveGap,p=0;p=a)return c;null!=n&&(n+=b+1)}return c},t.shouldRefresh=function(e,t){if(this._refreshTimeline(),!this._isLive)return!1;var n=this._index,r=n.timeline,i=n.timescale,a=r[r.length-1];if(void 0===a)return!1;var o=a.repeatCount,s=a.start+(o+1)*a.duration;return!(t*i=s||e*i>a.start+o*a.duration)},t.getFirstAvailablePosition=function(){this._refreshTimeline();var e=this._index;return 0===e.timeline.length?null:e.timeline[0].start/e.timescale},t.getLastAvailablePosition=function(){this._refreshTimeline();var e=this._index;if(null==this._scaledLiveGap){var t=e.timeline[e.timeline.length-1];return(0,v.Rb)(t,null)/e.timescale}for(var n=e.timeline.length-1;n>=0;n--)for(var r=e.timeline[n],i=performance.now()/1e3*e.timescale,a=r.start,o=r.duration,s=r.repeatCount;s>=0;s--){var u=a+o*(s+1);if((this._isAggressiveMode?u-o:u)<=i-this._scaledLiveGap)return u/e.timescale}},t.getEnd=function(){if(!this._isLive)return this.getLastAvailablePosition()},t.awaitSegmentBetween=function(e,t){var n;if((0,c.h)(e<=t),this.isStillAwaitingFutureSegments())return!1;var r=this.getLastAvailablePosition();return!(void 0!==r&&t(null!==(n=this.getFirstAvailablePosition())&&void 0!==n?n:0)&&void 0)},t.checkDiscontinuity=function(e){return this._refreshTimeline(),(0,v.ph)(this._index,e,void 0)},t.isSegmentStillAvailable=function(e){if(e.isInit)return!0;this._refreshTimeline();for(var t=this._index,n=t.timeline,r=t.timescale,i=0;ie.time)return!1;if(o===e.time)return!0;if(a.repeatCount>=0&&void 0!==a.duration){var s=(o-a.start)/a.duration-1;return s%1==0&&s<=a.repeatCount}}return!1},t.canBeOutOfSyncError=function(e){return!!this._isLive&&(e instanceof d.A&&(e.isHttpError(404)||e.isHttpError(412)))},t._replace=function(e){var t=this._index.timeline,n=e._index.timeline,r=this._index.timescale,i=e._index.timescale;if(this._index=e._index,this._initialScaledLastPosition=e._initialScaledLastPosition,this._indexValidityTime=e._indexValidityTime,this._scaledLiveGap=e._scaledLiveGap,0!==t.length&&0!==n.length&&r===i){var a=t[t.length-1],o=n[n.length-1],u=(0,v.Rb)(o,null);if(!((0,v.Rb)(a,null)<=u))for(var l=0;lu){if(d.duration!==o.duration)return;var f=u-d.start;if(0===f)return s.A.warn("Smooth Parser: a discontinuity detected in the previous manifest has been resolved."),void(this._index.timeline=this._index.timeline.concat(t.slice(l)));if(f<0||f%d.duration!=0)return;var p=f/d.duration-1,h=d.repeatCount-p;if(h<0)return;o.repeatCount+=h;var m=t.slice(l+1);return void(this._index.timeline=this._index.timeline.concat(m))}}}},t._update=function(e){(0,p.A)(this._index.timeline,e._index.timeline),this._initialScaledLastPosition=e._initialScaledLastPosition,this._indexValidityTime=e._indexValidityTime,this._scaledLiveGap=e._scaledLiveGap},t.isStillAwaitingFutureSegments=function(){return this._isLive},t.isInitialized=function(){return!0},t.addNewSegments=function(e,t){this._refreshTimeline();for(var n=0;n>3:2)?"mp4a.40.2":"mp4a.40."+n}(u,l);return{audiotag:void 0!==i?parseInt(i,10):i,bitrate:v,bitsPerSample:void 0!==a?parseInt(a,10):a,channels:void 0!==o?parseInt(o,10):o,codecPrivateData:u,codecs:p,customAttributes:n,mimeType:void 0!==l?B[l]:l,packetSize:void 0!==d?parseInt(d,10):d,samplingRate:void 0!==c?parseInt(c,10):c};case"video":var h=r("CodecPrivateData"),m=r("FourCC"),g=r("MaxWidth"),y=r("MaxHeight"),A=r("Bitrate"),_=void 0===A||isNaN(parseInt(A,10))?0:parseInt(A,10);if(void 0!==m&&void 0===B[m]||void 0===h)return s.A.warn("Smooth parser: Unsupported video codec. Ignoring quality level."),null;var b=function(e){var t=/00000001\d7([0-9a-fA-F]{6})/.exec(e);return null!==t&&(0,E.A)(t[1])?"avc1."+t[1]:"avc1.4D401E"}(h);return{bitrate:_,customAttributes:n,mimeType:void 0!==m?B[m]:m,codecPrivateData:h,codecs:b,width:void 0!==g?parseInt(g,10):void 0,height:void 0!==y?parseInt(y,10):void 0};case"text":var S=r("CodecPrivateData"),T=r("FourCC"),w=r("Bitrate");return{bitrate:void 0===w||isNaN(parseInt(w,10))?0:parseInt(w,10),customAttributes:n,mimeType:void 0!==T?B[T]:T,codecPrivateData:null!=S?S:""};default:return s.A.error("Smooth Parser: Unrecognized StreamIndex type: "+t),null}}function o(t){var r=t.root,i=t.timescale,o=t.baseUrl,u=t.protections,l=t.timeShiftBufferDepth,d=t.manifestReceivedTime,f=t.isLive,v=r.getAttribute("Timescale"),p=null===v||isNaN(+v)?i:+v,h=r.getAttribute("Type");if(null===h)throw new Error("StreamIndex without type.");(0,b.A)(_.B,h)||s.A.warn("Smooth Parser: Unrecognized adaptation type:",h);var m=h,g=r.getAttribute("Subtype"),y=r.getAttribute("Language"),w=r.getAttribute("Url"),I=null===w?"":w;var x,R=L(r,(function(e,t,r){switch(t){case"QualityLevel":var i=a(r,m);if(null===i)return e;("video"!==m||i.bitrate>n)&&e.qualityLevels.push(i);break;case"c":e.cNodes.push(r)}return e}),{qualityLevels:[],cNodes:[]}),M=R.qualityLevels,P=R.cNodes,D={timeline:(x=P,x.reduce((function(e,t,n){var r=t.getAttribute("d"),i=t.getAttribute("t"),a=t.getAttribute("r"),o=null!==a?+a-1:0,s=null!==i?+i:void 0,u=null!==r?+r:void 0;if(0===n)s=void 0===s||isNaN(s)?0:s;else{var l=e[n-1];if(null==s||isNaN(s)){if(null==l.duration||isNaN(l.duration))throw new Error("Smooth: Invalid CNodes. Missing timestamp.");s=l.start+l.duration*(l.repeatCount+1)}}if(null==u||isNaN(u)){var d=x[n+1];if(void 0===d)return e;var c=d.getAttribute("t"),f=(0,E.A)(c)?+c:null;if(null===f)throw new Error("Can't build index timeline from Smooth Manifest.");u=f-s}return e.push({duration:u,start:s,repeatCount:o}),e}),[])),timescale:p};(0,c.h)(0!==M.length,"Adaptation should have at least one playable representation.");var N=m+((0,E.A)(y)?"_"+y:""),O=M.map((function(t){var n,r,i,a,s={timeline:D.timeline,timescale:D.timescale,media:(n=I,r=t.bitrate,i=t.customAttributes,n.replace(/\{bitrate\}/g,String(r)).replace(/{CustomAttributes}/g,i.length>0?i[0]:""))},c=(0,E.A)(t.mimeType)?t.mimeType:U[m],v=t.codecs,p=N+"_"+(null!=m?m+"-":"")+(null!=c?c+"-":"")+(null!=v?v+"-":"")+String(t.bitrate),h=[];u.length>0&&(a=u[0],u.forEach((function(e){var t=e.keyId;e.keySystems.forEach((function(e){h.push({keyId:t,systemId:e.systemId})}))})));var g={bitsPerSample:t.bitsPerSample,channels:t.channels,codecPrivateData:t.codecPrivateData,packetSize:t.packetSize,samplingRate:t.samplingRate,protection:null!=a?{keyId:a.keyId}:void 0},y=null!=e.aggressiveMode&&e.aggressiveMode,_=new A(s,{aggressiveMode:y,isLive:f,manifestReceivedTime:d,segmentPrivateInfos:g,timeShiftBufferDepth:l}),b=(0,T.A)({},t,{index:_,cdnMetadata:[{baseUrl:o}],mimeType:c,codecs:v,id:p});if(h.length>0||void 0!==a){var w=void 0===a?[]:a.keySystems.map((function(e){var t=e.systemId,n=e.privateData,r=t.replace(/-/g,""),i=function(e,t){if(32!==e.length)throw new Error("HSS: wrong system id length");var n=0;return C("pssh",(0,S.xW)([n,0,0,0],(0,k.aT)(e),(0,S.KS)(t.length),t))}(r,n);return{systemId:r,data:i}}));if(w.length>0){var x=[{type:"cenc",values:w}];b.contentProtections={keyIds:h,initData:x}}else b.contentProtections={keyIds:h,initData:[]}}return b}));if("ADVT"===g)return null;var B={id:N,type:m,representations:O,language:null==y?void 0:y};return"text"===m&&"DESC"===g&&(B.closedCaption=!0),B}return function(n,r,a){var s="";if(void 0!==r){var u=(0,w.Cl)(r);s=r.substring(0,u)}var l=n.documentElement;if(null==l||"SmoothStreamingMedia"!==l.nodeName)throw new Error("document root should be SmoothStreamingMedia");var d=l.getAttribute("MajorVersion"),c=l.getAttribute("MinorVersion");if(null===d||null===c||!/^[2]-[0-2]$/.test(d+"-"+c))throw new Error("Version should be 2.0, 2.1 or 2.2");var f,v,p=l.getAttribute("Timescale"),h=(0,E.A)(p)?isNaN(+p)?1e7:+p:1e7,m=L(l,(function(t,n,r){switch(n){case"Protection":t.protections.push(O(r,e.keySystems));break;case"StreamIndex":t.adaptationNodes.push(r)}return t}),{adaptationNodes:[],protections:[]}),g=m.protections,y=m.adaptationNodes,A="boolean"==typeof(f=l.getAttribute("IsLive"))?f:"string"==typeof f&&"TRUE"===f.toUpperCase();if(A){var _=l.getAttribute("DVRWindowLength");null==_||isNaN(+_)||0==+_||(v=+_/h)}var b,S,T,k,I,x,R,C=y.reduce((function(e,t){var n=o({root:t,baseUrl:s,timescale:h,protections:g,isLive:A,timeShiftBufferDepth:v,manifestReceivedTime:a});if(null===n)return e;var r=n.type,i=e[r];return void 0===i?e[r]=[n]:i.push(n),e}),{}),M=null,D=void 0!==C.video?C.video[0]:void 0,N=void 0!==C.audio?C.audio[0]:void 0;if(void 0!==D||void 0!==N){var U=[],B=[];if(void 0!==D){var F=D.representations[0];if(void 0!==F){var V=F.index.getFirstAvailablePosition(),z=F.index.getLastAvailablePosition();null!=V&&U.push(V),null!=z&&B.push(z)}}if(void 0!==N){var K=N.representations[0];if(void 0!==K){var W=K.index.getFirstAvailablePosition(),G=K.index.getLastAvailablePosition();null!=W&&U.push(W),null!=G&&B.push(G)}}U.length>0&&(I=Math.max.apply(Math,U)),B.length>0&&(x=Math.min.apply(Math,B),R=Math.max.apply(Math,B))}var H=l.getAttribute("Duration"),q=null!==H&&0!=+H?+H/h:void 0;if(A){b=e.suggestedPresentationDelay,S=t,T=null!=I?I:S;var j=R;void 0===j&&(j=Date.now()/1e3-S);var Y=x;void 0===Y&&(Y=j),k={isLinear:!0,maximumSafePosition:Y,livePosition:j,time:performance.now()},M=null!=v?v:null}else{T=null!=I?I:0,k={isLinear:!1,maximumSafePosition:void 0!==x?x:void 0!==q?T+q:1/0,livePosition:void 0,time:performance.now()}}var Q=A?0:T,X=A?void 0:k.maximumSafePosition,$={availabilityStartTime:void 0===S?0:S,clockOffset:i,isLive:A,isDynamic:A,isLastPeriodKnown:!0,timeBounds:{minimumSafePosition:T,timeshiftDepth:M,maximumTimeData:k},periods:[{adaptations:C,duration:void 0!==X?X-Q:q,end:X,id:"gen-smooth-period-0",start:Q}],suggestedPresentationDelay:b,transportType:"smooth",uris:null==r?[]:[r]};return P($),$}},V=F,z=n(4389),K=n(5950),W=n(3598),G=n(1856),H=n(1134),q=n(8797);function j(e,t,n,r,i){var a,o,u,d=[];if(i){var c=(0,l.Y2)(e);null!==c?(u=function(e){var t=(0,q.$H)(e,3565190898,3392751253,2387879627,2655430559);if(void 0===t)return[];for(var n=[],r=t[0],i=t[4],a=0;a0;if(n)return e;var r=new Uint8Array(e.length+4);return r.set(e.subarray(0,t+8),0),r[t+3]=1|r[t+3],r.set([0,0,0,0],t+8),r.set(e.subarray(t+8,e.length),t+12),(0,H.J_)(r)}(l,s[1]-s[0]),f=J(u,d,c,i,(0,q.$H)(a,2721664850,1520127764,2722393154,2086964724)),v=M("moof",[i,f]),p=(0,q.QL)(v,1836019558),h=(0,q.QL)(f,1953653094),m=(0,q.QL)(c,1953658222);if(null===p||null===h||null===m)throw new Error("Smooth: Invalid moof, trun or traf generation");var g=p[1]-p[0]+i.length+(h[1]-h[0])+u.length+d.length+(m[1]-m[0])+8,y=n[2]-n[0],A=v.length-y,_=(0,q.QL)(e,1835295092);if(null===_)throw new Error("Smooth: Invalid ISOBMFF given");if(!Y.h$&&(0===A||A<=-8)){var b=_[1];return v.set((0,S.KS)(b),g),e.set(v,n[0]),A<=-8&&e.set(C("free",new Uint8Array(-A-8)),v.length),e}var E=_[1]+A;v.set((0,S.KS)(E),g);var T=new Uint8Array(e.length+A),w=e.subarray(0,n[0]),k=e.subarray(n[2],e.length);return T.set(w,0),T.set(v,w.length),T.set(k,w.length+v.length),T}var te=n(7004),ne=n(3233);function re(e,t,n,r,i,a){var o,s,u,l=M("stbl",[n,C("stts",new Uint8Array(8)),C("stsc",new Uint8Array(8)),C("stsz",new Uint8Array(12)),C("stco",new Uint8Array(8))]),d=function(e){return C("dref",(0,S.xW)(7,[1],e))}(C("url ",new Uint8Array([0,0,0,1]))),c=M("dinf",[d]),f=M("minf",[r,c,l]),v=function(e){var t,n;switch(e){case"video":t="vide",n="VideoHandler";break;case"audio":t="soun",n="SoundHandler";break;default:t="hint",n=""}return C("hdlr",(0,S.xW)(8,(0,k.eb)(t),12,(0,k.eb)(n),1))}(t),p=function(e){return C("mdhd",(0,S.xW)(12,(0,S.KS)(e),8))}(e),h=M("mdia",[p,v,f]),m=function(e,t,n){return C("tkhd",(0,S.xW)((0,S.KS)(7),8,(0,S.KS)(n),20,[1,0,0,0],[0,1,0,0],12,[0,1,0,0],12,[64,0,0,0],(0,S.ww)(e),2,(0,S.ww)(t),2))}(i,a,1),g=M("trak",[m,h]),y=M("mvex",[(o=1,C("trex",(0,S.xW)(4,(0,S.KS)(o),[0,0,0,1],12)))]),A=function(e,t){return C("mvhd",(0,S.xW)(12,(0,S.KS)(e),4,[0,1],2,[1,0],10,[0,1],14,[0,1],14,[64,0,0,0],26,(0,S.ww)(t+1)))}(e,1),_=function(e,t,n){return M("moov",[e,t,n])}(A,y,g),b=(s="isom",u=["isom","iso2","iso6","avc1","dash"],C("ftyp",S.xW.apply(void 0,[(0,k.eb)(s),[0,0,0,1]].concat(u.map(k.eb)))));return(0,S.xW)(b,_)}function ie(e,t,n,r,i,a,o,s){var u=o.split("00000001"),l=u[1],d=u[2];if(void 0===l||void 0===d)throw new Error("Smooth: unsupported codec private data.");var c,f,v=function(e,t,n){var r=2===n?1:4===n?3:0,i=e[1],a=e[2],o=e[3];return C("avcC",(0,S.xW)([1,i,a,o,252|r,225],(0,S.ww)(e.length),e,[1],(0,S.ww)(t.length),t))}((0,k.aT)(l),(0,k.aT)(d),a);if(void 0===s){var p=function(e,t,n,r,i,a,o){return C("avc1",(0,S.xW)(6,(0,S.ww)(1),16,(0,S.ww)(e),(0,S.ww)(t),(0,S.ww)(n),2,(0,S.ww)(r),6,[0,1,i.length],(0,k.eb)(i),31-i.length,(0,S.ww)(a),[255,255],o))}(t,n,r,i,"AVC Coding",24,v);c=$([p])}else{var h=M("schi",[Z(1,8,s)]),m=Q("cenc",65536),g=function(e,t,n,r,i,a,o,s){return C("encv",(0,S.xW)(6,(0,S.ww)(1),16,(0,S.ww)(e),(0,S.ww)(t),(0,S.ww)(n),2,(0,S.ww)(r),6,[0,1,i.length],(0,k.eb)(i),31-i.length,(0,S.ww)(a),[255,255],o,s))}(t,n,r,i,"AVC Coding",24,v,M("sinf",[X("avc1"),m,h]));c=$([g])}return re(e,"video",c,((f=new Uint8Array(12))[3]=1,C("vmhd",f)),t,n)}var ae=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];function oe(e,t,n,r,i,a,o){var s,u,l,d=function(e,t){return C("esds",(0,S.xW)(4,[3,25],(0,S.ww)(e),[0,4,17,64,21],11,[5,2],(0,k.aT)(t),[6,1,2]))}(1,0===a.length?(s=i,u=t,l=((l=((l=(63&2)<<4)|31&ae.indexOf(s))<<4)|31&u)<<3,(0,k.My)((0,S.ww)(l))):a),c=function(){if(void 0===o){var e=function(e,t,n,r,i,a){return C("mp4a",(0,S.xW)(6,(0,S.ww)(e),8,(0,S.ww)(t),(0,S.ww)(n),2,(0,S.ww)(r),(0,S.ww)(i),2,a))}(1,t,n,r,i,d);return $([e])}var a=M("schi",[Z(1,8,o)]),s=Q("cenc",65536),u=M("sinf",[X("mp4a"),s,a]),l=function(e,t,n,r,i,a,o){return C("enca",(0,S.xW)(6,(0,S.ww)(e),8,(0,S.ww)(t),(0,S.ww)(n),2,(0,S.ww)(r),(0,S.ww)(i),2,a,o))}(1,t,n,r,i,d,u);return $([l])}();return re(e,"audio",c,C("smhd",new Uint8Array(8)),0,0)}var se=/(\.isml?)(\?token=\S+)?$/,ue=/\?token=(\S+)/;function le(e,t){return(0,E.A)(t)?e.replace(ue,"?token="+t):e.replace(ue,"")}function de(e){return"string"==typeof e.mimeType&&e.mimeType.indexOf("mp4")>=0}function ce(e,t){return null===e?null:null===t.url?e.baseUrl:(0,w.Ay)(e.baseUrl,t.url)}function fe(e,t,n,r,i,a){var o,s=t.segment.range;return Array.isArray(s)&&(o={Range:(0,ne.A)(s)}),(0,z.Ay)({url:e,responseType:"arraybuffer",headers:o,timeout:r.timeout,cancelSignal:i,onProgress:n.onProgress}).then((function(e){if(!de(t.representation)||!0!==a)return{resultType:"segment-loaded",resultData:e};var n=new Uint8Array(e.responseData);return(0,W.A)(n,t.segment.isInit),{resultType:"segment-loaded",resultData:Object.assign(Object.assign({},e),{responseData:n})}}))}var ve=function(e){var t=e.checkMediaSegmentIntegrity,n=e.customSegmentLoader;return function(e,r,i,a,o){var s=r.segment,u=r.manifest,l=r.period,d=r.adaptation,c=r.representation;if(s.isInit){if(void 0===s.privateInfos||void 0===s.privateInfos.smoothInitSegment)throw new Error("Smooth: Invalid segment format");var f,v=s.privateInfos.smoothInitSegment,p=v.codecPrivateData,h=v.timescale,m=v.protection,g=void 0===m?{keyId:void 0,keySystems:void 0}:m;if(void 0===p)throw new Error("Smooth: no codec private data.");switch(d.type){case"video":var y=c.width,A=void 0===y?0:y,_=c.height;f=ie(h,A,void 0===_?0:_,72,72,4,p,g.keyId);break;case"audio":var b=v.channels,S=void 0===b?0:b,E=v.bitsPerSample,T=void 0===E?0:E,w=v.packetSize,k=void 0===w?0:w,I=v.samplingRate;f=oe(h,S,T,k,void 0===I?0:I,p,g.keyId);break;default:0,f=new Uint8Array(0)}return Promise.resolve({resultType:"segment-created",resultData:f})}if(null===e)return Promise.resolve({resultType:"segment-created",resultData:null});var x={adaptation:d,manifest:u,period:l,representation:c,segment:s,transport:"smooth",timeout:i.timeout,url:e};return"function"!=typeof n?fe(e,r,o,i,a,t):new Promise((function(s,u){var l=!1,d=n(x,{reject:function(e){var t,n,r;if(!l&&!a.isCancelled()){l=!0,a.deregister(c);var i=e,o=null!==(t=null==i?void 0:i.message)&&void 0!==t?t:"Unknown error when fetching a Smooth segment through a custom segmentLoader.",s=new te.A(o,null!==(n=null==i?void 0:i.canRetry)&&void 0!==n&&n,null!==(r=null==i?void 0:i.isOfflineError)&&void 0!==r&&r,null==i?void 0:i.xhr);u(s)}},resolve:function(e){if(!l&&!a.isCancelled()){l=!0,a.deregister(c),de(r.representation)&&!0===t||s({resultType:"segment-loaded",resultData:{responseData:e.data,size:e.size,requestDuration:e.duration}});var n=e.data instanceof Uint8Array?e.data:new Uint8Array(e.data);(0,W.A)(n,r.segment.isInit),s({resultType:"segment-loaded",resultData:{responseData:n,size:e.size,requestDuration:e.duration}})}},fallback:function(){l||a.isCancelled()||(l=!0,a.deregister(c),fe(e,r,o,i,a,t).then(s,u))},progress:function(e){l||a.isCancelled()||o.onProgress({duration:e.duration,size:e.size,totalSize:e.totalSize})}});function c(e){l||((l=!0)||"function"!=typeof d||d(),u(e))}a.register(c)}))}},pe=/\.wsx?(\?token=\S+)?/;function he(e,t,n){var r;s.A.debug("Smooth Parser: update segments information.");for(var i=e.representations,a=0;a0&&he(o,v,a),{segmentType:"media",chunkData:h,chunkInfos:p,chunkOffset:0,chunkSize:h.length,protectionDataUpdate:!1,appendWindow:[void 0,void 0]}}},c={loadSegment:function(t,n,r,i,a){var o=n.segment,s=n.representation,u=ce(t,o);return o.isInit||null===u?Promise.resolve({resultType:"segment-created",resultData:null}):de(s)?(0,z.Ay)({url:u,responseType:"arraybuffer",timeout:r.timeout,cancelSignal:i,onProgress:a.onProgress}).then((function(t){if(!0!==e.checkMediaSegmentIntegrity)return{resultType:"segment-loaded",resultData:t};var r=new Uint8Array(t.responseData);return(0,W.A)(r,n.segment.isInit),{resultType:"segment-loaded",resultData:Object.assign(Object.assign({},t),{responseData:r})}})):(0,z.Ay)({url:u,responseType:"text",timeout:r.timeout,cancelSignal:i,onProgress:a.onProgress}).then((function(e){return{resultType:"segment-loaded",resultData:e}}))},parseSegment:function(e,t,n){var r,i,a,o=t.manifest,u=t.adaptation,d=t.representation,c=t.segment,f=u.language,v=de(d),p=d.mimeType,h=void 0===p?"":p,m=d.codec,g=void 0===m?"":m,y=e.data,A=e.isChunked;if(c.isInit)return{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0};if(null===y)return{segmentType:"media",chunkData:null,chunkInfos:null,chunkOffset:0,chunkSize:0,protectionDataUpdate:!1,appendWindow:[void 0,void 0]};var _,b,S,E,T=null;if(v){var w;i=(w="string"==typeof y?(0,k.eb)(y):y instanceof Uint8Array?y:new Uint8Array(y)).length;var I=void 0!==n?j(w,A,n,c,o.isLive):null;a=null==I?void 0:I.nextSegments,null===(T=null!==(r=null==I?void 0:I.chunkInfos)&&void 0!==r?r:null)?A?s.A.warn("Smooth: Unavailable time data for current text track."):(_=c.time,b=c.end):(_=T.time,b=void 0!==T.duration?T.time+T.duration:c.end);var x=g.toLowerCase();if("application/ttml+xml+mp4"===h||"stpp"===x||"stpp.ttml"===x||"stpp.ttml.im1t"===x)E="ttml";else{if("wvtt"!==x)throw new Error("could not find a text-track parser for the type "+h);E="vtt"}var R=(0,l.j8)(w);S=null===R?"":(0,k.Es)(R)}else{var C;if(_=c.time,b=c.end,"string"!=typeof y){var M=y instanceof Uint8Array?y:new Uint8Array(y);i=M.length,C=(0,k.Es)(M)}else C=y;switch(h){case"application/x-sami":case"application/smil":E="sami";break;case"application/ttml+xml":E="ttml";break;case"text/vtt":E="vtt"}if(void 0===E){if("srt"!==g.toLowerCase())throw new Error("could not find a text-track parser for the type "+h);E="srt"}S=C}return null!==T&&Array.isArray(a)&&a.length>0&&he(u,a,c),{segmentType:"media",chunkData:{type:E,data:S,start:_,end:b,language:f},chunkSize:i,chunkInfos:T,chunkOffset:null!=_?_:0,protectionDataUpdate:!1,appendWindow:[void 0,void 0]}}};return{manifest:{resolveManifestUrl:function(e,t){if(void 0===e)return Promise.resolve(void 0);var n;pe.test(e)?((0,K.A)("Giving WSX URL to loadVideo is deprecated. You should only give Manifest URLs."),n=(0,z.Ay)({url:le(e,""),responseType:"document",cancelSignal:t}).then((function(e){var t=e.responseData.getElementsByTagName("media")[0].getAttribute("src");if(null===t||0===t.length)throw new Error("Invalid ISML");return t}))):n=Promise.resolve(e);var r=function(e){var t=ue.exec(e);if(null!==t){var n=t[1];if(void 0!==n)return n}return""}(e);return n.then((function(e){return le(function(e){return se.test(e)?((0,K.A)("Giving a isml URL to loadVideo is deprecated. Please give the Manifest URL directly"),e.replace(se,"$1/manifest$2")):e}(e),r)}))},loadManifest:(0,G.A)(i,"text"),parseManifest:function(n,r){var i,a=null!==(i=n.url)&&void 0!==i?i:r.originalUrl,o=n.receivedTime,s=n.responseData,l="string"==typeof s?(new DOMParser).parseFromString(s,"text/xml"):s,d=t(l,a,o);return{manifest:new u.Ay(d,{representationFilter:e.representationFilter,supplementaryImageTracks:e.supplementaryImageTracks,supplementaryTextTracks:e.supplementaryTextTracks}),url:a}}},audio:d,video:d,text:c,image:{loadSegment:function(e,t,n,i,o){return(0,r.A)(a().mark((function r(){var s,u,l;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s=t.segment,u=ce(e,s),!s.isInit&&null!==u){r.next=4;break}return r.abrupt("return",{resultType:"segment-created",resultData:null});case 4:return r.next=6,(0,z.Ay)({url:u,responseType:"arraybuffer",timeout:n.timeout,onProgress:o.onProgress,cancelSignal:i});case 6:return l=r.sent,r.abrupt("return",{resultType:"segment-loaded",resultData:l});case 8:case"end":return r.stop()}}),r)})))()},parseSegment:function(e,t,n){var r=e.data,i=e.isChunked;if(t.segment.isInit)return{segmentType:"init",initializationData:null,initializationDataSize:0,protectionDataUpdate:!1,initTimescale:void 0};if(i)throw new Error("Image data should not be downloaded in chunks");return null===r||null===o.A.imageParser?{segmentType:"media",chunkData:null,chunkInfos:null,chunkOffset:0,chunkSize:0,protectionDataUpdate:!1,appendWindow:[void 0,void 0]}:{segmentType:"media",chunkData:{data:o.A.imageParser(new Uint8Array(r)).thumbs,start:0,end:Number.MAX_VALUE,timescale:1,type:"bif"},chunkInfos:{time:0,duration:Number.MAX_VALUE},chunkSize:void 0,chunkOffset:0,protectionDataUpdate:!1,appendWindow:[void 0,void 0]}}}}}},3233:function(e,t,n){"use strict";function r(e){var t=e[0],n=e[1];return n===1/0?"bytes="+t+"-":"bytes="+t+"-"+n}n.d(t,{A:function(){return r}})},3598:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(1858),i=n(1688);function a(e,t){if(t){if((0,i.A)(e,1718909296)<0)throw new r.A("INTEGRITY_ERROR","Incomplete `ftyp` box");if((0,i.A)(e,1836019574)<0)throw new r.A("INTEGRITY_ERROR","Incomplete `moov` box")}else{if((0,i.A)(e,1836019558)<0)throw new r.A("INTEGRITY_ERROR","Incomplete `moof` box");if((0,i.A)(e,1835295092)<0)throw new r.A("INTEGRITY_ERROR","Incomplete `mdat` box")}}},1688:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(5553);function i(e,t){for(var n=e.length,i=0;i+8<=n;){var a=(0,r.mq)(e,i);if(0===a)a=n-i;else if(1===a){if(i+16>n)return-1;a=(0,r.CQ)(e,i+8)}if(isNaN(a)||a<=0)return-1;if((0,r.mq)(e,i+4)===t)return i+a<=n?i:-1;i+=a}return-1}},1856:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(2038),i=n(4389),a=n(7004);function o(e,t){var n=e.customManifestLoader,o=function(e){return function(t,n,a){if(void 0===t)throw new Error("Cannot perform HTTP(s) request. URL not known");switch(e){case"arraybuffer":return(0,i.Ay)({url:t,responseType:"arraybuffer",timeout:n.timeout,cancelSignal:a});case"text":return(0,i.Ay)({url:t,responseType:"text",timeout:n.timeout,cancelSignal:a});case"document":return(0,i.Ay)({url:t,responseType:"document",timeout:n.timeout,cancelSignal:a});default:(0,r.A)(e)}}}(t);return"function"!=typeof n?o:function(e,t){return function(n,r,i){return new Promise((function(o,s){var u=Date.now()-performance.now(),l=!1,d=e(n,{reject:function(e){var t,n,r;if(!l&&!i.isCancelled()){l=!0,i.deregister(c);var o=e,u=null!==(t=null==o?void 0:o.message)&&void 0!==t?t:"Unknown error when fetching the Manifest through a custom manifestLoader.",d=new a.A(u,null!==(n=null==o?void 0:o.canRetry)&&void 0!==n&&n,null!==(r=null==o?void 0:o.isOfflineError)&&void 0!==r&&r,null==o?void 0:o.xhr);s(d)}},resolve:function(e){if(!l&&!i.isCancelled()){l=!0,i.deregister(c);var t=void 0!==e.receivingTime?e.receivingTime-u:void 0,n=void 0!==e.sendingTime?e.sendingTime-u:void 0;o({responseData:e.data,size:e.size,requestDuration:e.duration,url:e.url,receivedTime:t,sendingTime:n})}},fallback:function(){l||i.isCancelled()||(l=!0,i.deregister(c),t(n,r,i).then(o,s))}},{timeout:r.timeout});function c(e){l||(l=!0,"function"==typeof d&&d(),s(e))}i.register(c)}))}}(n,o)}},987:function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;if(e===t)return!0;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}n.d(t,{A:function(){return r}})},1729:function(e,t,n){"use strict";function r(e,t,n){if("function"==typeof Array.prototype.find)return e.find(t,n);for(var r=e.length>>>0,i=0;i>>0,i=0;i>>0;if(0===r)return!1;for(var i,a,o=0|n,s=o>=0?Math.min(o,r-1):Math.max(r+o,0);s=a.length)throw new Error("Unable to parse base64 string.");var t=a[e];if(255===t)throw new Error("Unable to parse base64 string.");return t}function s(e){var t,n="",r=e.length;for(t=2;t>2],n+=i[(3&e[t-2])<<4|e[t-1]>>4],n+=i[(15&e[t-1])<<2|e[t]>>6],n+=i[63&e[t]];return t===r+1&&(n+=i[e[t-2]>>2],n+=i[(3&e[t-2])<<4],n+="=="),t===r&&(n+=i[e[t-2]>>2],n+=i[(3&e[t-2])<<4|e[t-1]>>4],n+=i[(15&e[t-1])<<2],n+="="),n}function u(e){var t=e.length%4,n=e;0!==t&&(r.A.warn("base64ToBytes: base64 given miss padding"),n+=3===t?"=":2===t?"==":"===");var i=n.indexOf("=");if(-1!==i&&i>16,l[c+1]=a>>8&255,l[c+2]=255&a;return l.subarray(0,l.length-s)}},5553:function(e,t,n){"use strict";function r(){for(var e,t=arguments.length,n=-1,r=0;++n0&&(i.set(e,a),a+=e.length);return i}function i(e,t){return(e[t+0]<<8)+(e[t+1]|0)}function a(e,t){return 65536*e[t+0]+256*e[t+1]+e[t+2]}function o(e,t){return 16777216*e[t+0]+65536*e[t+1]+256*e[t+2]+e[t+3]}function s(e,t){return 4294967296*(16777216*e[t+0]+65536*e[t+1]+256*e[t+2]+e[t+3])+16777216*e[t+4]+65536*e[t+5]+256*e[t+6]+e[t+7]}function u(e){return new Uint8Array([e>>>8&255,255&e])}function l(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}function d(e){var t=e%4294967296,n=(e-t)/4294967296;return new Uint8Array([n>>>24&255,n>>>16&255,n>>>8&255,255&n,t>>>24&255,t>>>16&255,t>>>8&255,255&t])}function c(e,t){return(e[t+0]|0)+(e[t+1]<<8)}function f(e,t){return e[t+0]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]}function v(e){return new Uint8Array([255&e,e>>>8&255])}function p(e){return new Uint8Array([255&e,e>>>8&255,e>>>16&255,e>>>24&255])}n.d(t,{AT:function(){return c},CQ:function(){return s},KS:function(){return l},Kk:function(){return d},UU:function(){return i},WO:function(){return v},Wz:function(){return p},eR:function(){return f},mq:function(){return o},tb:function(){return a},ww:function(){return u},xW:function(){return r}})},2432:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(4339);function i(e,t){return(0,r.A)(t,(function(t){var n=setTimeout((function(){return t()}),e);return function(){return clearTimeout(n)}}))}},4339:function(e,t,n){"use strict";function r(e,t){var n;return new Promise((function(r,i){if(null!==e.cancellationError)return i(e.cancellationError);var a=!1;function o(e){void 0!==n&&n(),i(e)}n=t((function(t){e.deregister(o),a=!0,r(t)}),(function(t){e.deregister(o),a=!0,i(t)})),a||e.register(o)}))}n.d(t,{A:function(){return r}})},79:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(9477),i=n(6787),a=function(){function e(){this._listeners={}}var t=e.prototype;return t.addEventListener=function(e,t,n){var r=this,i=this._listeners[e];Array.isArray(i)?i.push(t):this._listeners[e]=[t],void 0!==n&&n.register((function(){r.removeEventListener(e,t)}))},t.removeEventListener=function(e,t){if((0,i.A)(e))this._listeners={};else{var n=this._listeners[e];if(Array.isArray(n))if((0,i.A)(t))delete this._listeners[e];else{var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&delete this._listeners[e]}}},t.trigger=function(e,t){var n=this._listeners[e];Array.isArray(n)&&n.slice().forEach((function(e){try{e(t)}catch(e){r.A.error("EventEmitter: listener error",e instanceof Error?e:null)}}))},e}()},3262:function(e,t,n){"use strict";function r(e,t){return"function"==typeof Array.prototype.flatMap?e.flatMap(t):e.reduce((function(e,n){var r=t(n);return Array.isArray(r)?(e.push.apply(e,r),e):(e.push(r),e)}),[])}n.d(t,{A:function(){return r}})},7021:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=.3;function i(e){return e*((2*Math.random()-1)*r+1)}},8795:function(e,t,n){"use strict";function r(){var e="",t=-1;return function(){return++t>=Number.MAX_SAFE_INTEGER&&(e+="0",t=0),e+String(t)}}n.d(t,{A:function(){return r}})},2384:function(e,t,n){"use strict";function r(e){return"string"==typeof e&&e.length>0}n.d(t,{A:function(){return r}})},6787:function(e,t,n){"use strict";function r(e){return null==e}n.d(t,{A:function(){return r}})},8202:function(e,t,n){"use strict";var r=n(4971);t.Ay=r.Ay},4971:function(e,t,n){"use strict";n.d(t,{Ay:function(){return d},BU:function(){return l},E4:function(){return u}});var r=n(2384),i=n(6787),a={aa:"aar",ab:"abk",ae:"ave",af:"afr",ak:"aka",am:"amh",an:"arg",ar:"ara",as:"asm",av:"ava",ay:"aym",az:"aze",ba:"bak",be:"bel",bg:"bul",bi:"bis",bm:"bam",bn:"ben",bo:"bod",br:"bre",bs:"bos",ca:"cat",ce:"che",ch:"cha",co:"cos",cr:"cre",cs:"ces",cu:"chu",cv:"chv",cy:"cym",da:"dan",de:"deu",dv:"div",dz:"dzo",ee:"ewe",el:"ell",en:"eng",eo:"epo",es:"spa",et:"est",eu:"eus",fa:"fas",ff:"ful",fi:"fin",fj:"fij",fo:"fao",fr:"fra",fy:"fry",ga:"gle",gd:"gla",gl:"glg",gn:"grn",gu:"guj",gv:"glv",ha:"hau",he:"heb",hi:"hin",ho:"hmo",hr:"hrv",ht:"hat",hu:"hun",hy:"hye",hz:"her",ia:"ina",id:"ind",ie:"ile",ig:"ibo",ii:"iii",ik:"ipk",io:"ido",is:"isl",it:"ita",iu:"iku",ja:"jpn",jv:"jav",ka:"kat",kg:"kon",ki:"kik",kj:"kua",kk:"kaz",kl:"kal",km:"khm",kn:"kan",ko:"kor",kr:"kau",ks:"kas",ku:"kur",kv:"kom",kw:"cor",ky:"kir",la:"lat",lb:"ltz",lg:"lug",li:"lim",ln:"lin",lo:"lao",lt:"lit",lu:"lub",lv:"lav",mg:"mlg",mh:"mah",mi:"mri",mk:"mkd",ml:"mal",mn:"mon",mr:"mar",ms:"msa",mt:"mlt",my:"mya",na:"nau",nb:"nob",nd:"nde",ne:"nep",ng:"ndo",nl:"nld",nn:"nno",no:"nor",nr:"nbl",nv:"nav",ny:"nya",oc:"oci",oj:"oji",om:"orm",or:"ori",os:"oss",pa:"pan",pi:"pli",pl:"pol",ps:"pus",pt:"por",qu:"que",rm:"roh",rn:"run",ro:"ron",ru:"rus",rw:"kin",sa:"san",sc:"srd",sd:"snd",se:"sme",sg:"sag",si:"sin",sk:"slk",sl:"slv",sm:"smo",sn:"sna",so:"som",sq:"sqi",sr:"srp",ss:"ssw",st:"sot",su:"sun",sv:"swe",sw:"swa",ta:"tam",te:"tel",tg:"tgk",th:"tha",ti:"tir",tk:"tuk",tl:"tgl",tn:"tsn",to:"ton",tr:"tur",ts:"tso",tt:"tat",tw:"twi",ty:"tah",ug:"uig",uk:"ukr",ur:"urd",uz:"uzb",ve:"ven",vi:"vie",vo:"vol",wa:"wln",wo:"wol",xh:"xho",yi:"yid",yo:"yor",za:"zha",zh:"zho",zu:"zul"},o={alb:"sqi",arm:"hye",baq:"eus",bur:"mya",chi:"zho",cze:"ces",dut:"nld",fre:"fra",geo:"kat",ger:"deu",gre:"ell",ice:"isl",mac:"mkd",mao:"mri",may:"msa",per:"fas",slo:"slk",rum:"ron",tib:"bod",wel:"cym"};function s(e){if((0,i.A)(e)||""===e)return"und";var t=function(e){var t;switch(e.length){case 2:t=a[e];break;case 3:t=o[e]}return t}((""+e).toLowerCase().split("-")[0]);return(0,r.A)(t)?t:e}function u(e){if(!(0,i.A)(e)){var t,n=!1;return"string"==typeof e?t=e:(t=e.language,!0===e.closedCaption&&(n=!0)),{language:t,closedCaption:n,normalized:s(t)}}return e}function l(e){if((0,i.A)(e))return e;if("string"==typeof e)return{language:e,audioDescription:!1,normalized:s(e)};var t={language:e.language,audioDescription:!0===e.audioDescription,normalized:s(s(e.language))};return!0===e.isDub&&(t.isDub=!0),t}var d=s},8060:function(e,t,n){"use strict";function r(){}n.d(t,{A:function(){return r}})},8935:function(e,t){"use strict";t.A="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=0;n<(arguments.length<=1?0:arguments.length-1);n++){var r=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}},4324:function(e,t,n){"use strict";t.A="function"==typeof Object.values?Object.values:function(e){return Object.keys(e).map((function(t){return e[t]}))}},3650:function(e,t,n){"use strict";n.d(t,{C$:function(){return y},D3:function(){return m},Hh:function(){return s},Nn:function(){return c},OT:function(){return p},Td:function(){return v},UL:function(){return h},aW:function(){return _},bo:function(){return b},eO:function(){return f},gV:function(){return u},vK:function(){return g}});var r=1/60;function i(e,t){return Math.abs(e-t)=0;n--){var r=e.start(n);if(t>=r){var i=e.end(n);if(t=o?r.push({start:a,end:o}):n={start:a,end:o}}return{outerRanges:r,innerRange:n}}function h(e,t){var n=f(e,t);return null!==n?n.end-n.start:0}function m(e,t){var n=f(e,t);return null!==n?t-n.start:0}function g(e,t){var n=f(e,t);return null!==n?n.end-t:1/0}function y(e,t){if(t.start===t.end)return e;for(var n=t,r=0;r0)for(var o=0;o0)for(var s=0;sl&&n.push({start:l,end:a[d].start}),l=a[d].end;l=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0&&n._listeners.splice(r,1)}},i={trigger:e,complete:r,hasBeenCleared:!1};this._listeners.push(i),!0===(null==t?void 0:t.emitCurrentValue)&&e(this._value,r),this._isFinished||i.hasBeenCleared?r():void 0!==(null==t?void 0:t.clearSignal)&&t.clearSignal.register(r)},t.waitUntilDefined=function(e,t){var n=this;this.onUpdate((function(t,r){void 0!==t&&(r(),e(n._value))}),{clearSignal:null==t?void 0:t.clearSignal,emitCurrentValue:!0})},t._onFinished=function(e,t){var n=this;if(t.isCancelled())return i.A;var a=function(){var e=(0,r.A)(n._onFinishCbs,(function(e){return e.trigger===o}));e>=0&&(n._onFinishCbs[e].hasBeenCleared=!0,n._onFinishCbs.splice(e,1))},o=function(){a(),e()},s=t.register(a);return this._onFinishCbs.push({trigger:o,hasBeenCleared:!1}),s},t.finish=function(){void 0!==this._deregisterCancellation&&this._deregisterCancellation(),this._isFinished=!0;for(var e,t=a(this._listeners.slice());!(e=t()).done;){var n=e.value;try{n.hasBeenCleared||(n.complete(),n.hasBeenCleared=!0)}catch(e){}}if(this._listeners.length=0,this._onFinishCbs.length>0){for(var r,i=a(this._onFinishCbs.slice());!(r=i()).done;){var o=r.value;try{o.hasBeenCleared||(o.trigger(),o.hasBeenCleared=!0)}catch(e){}}this._onFinishCbs.length=0}},e}();function u(e,t,n){var r=new s(t(e.getValue()),n);return e.onUpdate((function(e){r.setValue(t(e))}),{clearSignal:n}),e._onFinished((function(){r.finish()}),n),r}t.A=s},4389:function(e,t,n){"use strict";n.d(t,{Ay:function(){return o}});var r=n(3506),i=n(2384),a=n(6787);var o=function(e){var t={url:e.url,headers:e.headers,responseType:(0,a.A)(e.responseType)?"json":e.responseType,timeout:e.timeout};return new Promise((function(n,o){var s,u=e.onProgress,l=e.cancelSignal,d=t.url,c=t.headers,f=t.responseType,v=t.timeout,p=new XMLHttpRequest;if(p.open("GET",d,!0),void 0!==v&&(p.timeout=v,s=window.setTimeout((function(){A(),o(new r.A(d,p.status,"TIMEOUT",p))}),v+3e3)),p.responseType=f,"document"===p.responseType&&p.overrideMimeType("text/xml"),!(0,a.A)(c)){var h=c;for(var m in h)h.hasOwnProperty(m)&&p.setRequestHeader(m,h[m])}var g=performance.now(),y=null;function A(){void 0!==s&&clearTimeout(s),null!==y&&y()}void 0!==l&&(y=l.register((function(e){A(),(0,a.A)(p)||4===p.readyState||p.abort(),o(e)})),l.isCancelled())||(p.onerror=function(){A(),o(new r.A(d,p.status,"ERROR_EVENT",p))},p.ontimeout=function(){A(),o(new r.A(d,p.status,"TIMEOUT",p))},void 0!==u&&(p.onprogress=function(e){var t=performance.now();u({url:d,duration:t-g,sendingTime:g,currentTime:t,size:e.loaded,totalSize:e.total})}),p.onload=function(e){if(4===p.readyState)if(A(),p.status>=200&&p.status<300){var t,s=performance.now(),u=p.response instanceof ArrayBuffer?p.response.byteLength:e.total,l=p.status,c=p.responseType,f=(0,i.A)(p.responseURL)?p.responseURL:d;if(t="json"===c?"object"==typeof p.response?p.response:function(e){try{return JSON.parse(e)}catch(e){return null}}(p.responseText):p.response,(0,a.A)(t))return void o(new r.A(d,p.status,"PARSE_ERROR",p));n({status:l,url:f,responseType:c,sendingTime:g,receivedTime:s,requestDuration:s-g,size:u,responseData:t})}else o(new r.A(d,p.status,"ERROR_HTTP_CODE",p))},p.send())}))}},2716:function(e,t,n){"use strict";n.d(t,{Cl:function(){return o}});var r=n(9828),i=/^(?:[a-z]+:)?\/\//i,a=/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?$/;function o(e){var t=e.lastIndexOf("/");if(t<0)return e.length;if(i.test(e)){var n=e.indexOf("/");if(n>=0&&t===n+1)return e.length}var r=e.indexOf("?");return r>=0&&r=u&&s.clear(),s.set(e,l),l}function d(e){var t="";return e.scheme&&(t+=e.scheme+":"),e.authority&&(t+="//"+e.authority),t+=e.path,e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t}function c(e){for(var t=e.split(/(?=\/)/),n=[],r=0;r=this._array.length)throw new Error("Invalid index.");return this._array[e]},t.toArray=function(){return this._array.slice()},t.findFirst=function(e){return(0,r.A)(this._array,e)},t.has=function(e){return(0,i.A)(this._array,e)},t.removeElement=function(e){var t=this._array.indexOf(e);if(t>=0)return this._array.splice(t,1),t},t.head=function(){return this._array[0]},t.last=function(){return this._array[this._array.length-1]},t.shift=function(){return this._array.shift()},t.pop=function(){return this._array.pop()},e}()},9828:function(e,t,n){"use strict";function r(e,t,n){if("function"==typeof String.prototype.startsWith)return e.startsWith(t,n);var r="number"==typeof n?Math.max(n,0):0;return e.substring(r,r+t.length)===t}n.d(t,{A:function(){return r}})},4670:function(e,t,n){"use strict";n.d(t,{Es:function(){return c},KZ:function(){return p},My:function(){return v},Yg:function(){return u},Yn:function(){return h},aT:function(){return f},eb:function(){return l},kY:function(){return s}});var r=n(9477),i=n(7994),a="object"==typeof window&&"function"==typeof window.TextDecoder,o="object"==typeof window&&"function"==typeof window.TextEncoder;function s(e){for(var t=new ArrayBuffer(2*e.length),n=new Uint8Array(t),r=0;r>8&255}return n}function u(e){if(a)try{return new TextDecoder("utf-16le").decode(e)}catch(e){var t=e instanceof Error?e:"";r.A.warn("Utils: could not use TextDecoder to parse UTF-16LE, fallbacking to another implementation",t)}for(var n="",i=0;i=t?n:new Array(t-n.length+1).join("0")+n}function c(e){if(a)try{return(new TextDecoder).decode(e)}catch(e){var t=e instanceof Error?e:"";r.A.warn("Utils: could not use TextDecoder to parse UTF-8, fallbacking to another implementation",t)}var n=e;239===n[0]&&187===n[1]&&191===n[2]&&(n=n.subarray(3));var i,o=function(e){for(var t="",n=0;n=256?"%u"+d(l,4):"%"+d(l,2)}}return decodeURIComponent(i)}function f(e){for(var t=e.length,n=new Uint8Array(t/2),r=0,i=0;r>>4).toString(16),n+=(15&e[r]).toString(16),t.length>0&&r0;)try{var n=t._listeners.pop();null==n||n(e)}catch(e){a.A.error("Error while calling clean up listener",e instanceof Error?e.toString():"Unknown error")}}))}var t=e.prototype;return t.isCancelled=function(){return this._isCancelled},t.register=function(e){var t=this;return this._isCancelled?((0,o.h)(null!==this.cancellationError),e(this.cancellationError),s.A):(this._listeners.push(e),function(){return t.deregister(e)})},t.deregister=function(e){for(var t=this._listeners.length-1;t>=0;t--)this._listeners[t]===e&&this._listeners.splice(t,1)},e}(),d=function(e){function t(){var n;return n=e.call(this,"This task was cancelled.")||this,Object.setPrototypeOf(n,t.prototype),n.name="CancellationError",n}return(0,r.A)(t,e),t}((0,i.A)(Error))},5950:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(4031),i=[];function a(e){(0,r.A)(i,e)||(console.warn(e),i.push(e))}},6826:function(e){"use strict";var t=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},n=function(e){var n,r,i=document.createTextNode(""),a=0;return new e((function(){var e;if(n)r&&(n=r.concat(n));else{if(!r)return;n=r}if(r=n,n=null,"function"==typeof r)return e=r,r=null,void e();for(i.data=a=++a%2;r;)e=r.shift(),r.length||(r=null),e()})).observe(i,{characterData:!0}),function(e){t(e),n?"function"==typeof n?n=[n,e]:n.push(e):(n=e,i.data=a=++a%2)}};e.exports=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(e){queueMicrotask(t(e))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return n(MutationObserver);if("function"==typeof WebKitMutationObserver)return n(WebKitMutationObserver)}return"function"==typeof setImmediate?function(e){setImmediate(t(e))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(e){setTimeout(t(e),0)}:null}()},4633:function(e,t,n){var r=n(3738).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function v(e,t,n,r){var i=t&&t.prototype instanceof _?t:_,a=Object.create(i.prototype),o=new D(r||[]);return s(a,"_invoke",{value:R(e,n,o)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=v;var h="suspendedStart",m="suspendedYield",g="executing",y="completed",A={};function _(){}function b(){}function S(){}var E={};f(E,l,(function(){return this}));var T=Object.getPrototypeOf,w=T&&T(T(N([])));w&&w!==a&&o.call(w,l)&&(E=w);var k=S.prototype=_.prototype=Object.create(E);function I(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,a,s,u){var l=p(e[i],e,a);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==r(c)&&o.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(c).then((function(e){d.value=e,s(d)}),(function(e){return n("throw",e,s,u)}))}u(l.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function R(e,n,r){var i=h;return function(a,o){if(i===g)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===A)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var l=p(e,n,r);if("normal"===l.type){if(i=r.done?y:m,l.arg===A)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=y,r.method="throw",r.arg=l.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),A;var a=p(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,A;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,A):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,A)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),A}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),A}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},3738:function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756:function(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},467:function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,u,"next",e)}function u(e){r(o,i,a,s,u,"throw",e)}s(void 0)}))}}n.d(t,{A:function(){return i}})},2212: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},r(e)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&(i="internal-seeking",r=t._internalSeeksIncoming.shift());var a=null!=e?e:t._generateInitialObservation(),o=G(t._mediaElement,i,t._withMediaSource),s=null;o.seeking&&("number"==typeof r?s=r:null!==a.pendingInternalSeek&&"seeking"!==n&&(s=a.pendingInternalSeek));var u=function(e,t,n){var r,i,a=n.withMediaSource,o=n.lowLatencyMode,s=c.A.getCurrent().REBUFFERING_GAP,u=t.event,l=t.position,d=t.bufferGap,f=t.currentRange,v=t.duration,p=t.paused,h=t.readyState,m=t.ended,g=e.rebuffering,y=e.event,A=e.position,_=function(e,t,n,r,i){var a=c.A.getCurrent().REBUFFERING_GAP,o=i?"LOW_LATENCY":"DEFAULT";if(void 0===t)return n&&Math.abs(r-e)<=a[o];return null!==t&&r-t.end<=a[o]}(l,f,m,v,o),b=h>=1&&"loadedmetadata"!==u&&null===g&&!(_||m),S=null,E=o?s.LOW_LATENCY:s.DEFAULT;if(a){if(b)d===1/0?(r=!0,S=l):void 0===d?h<3&&(r=!0,S=void 0):d<=E&&(r=!0,S=l+d);else if(null!==g){var T=W(g,o);!0!==r&&null!==g&&h>1&&(_||m||void 0!==d&&isFinite(d)&&d>T)||void 0===d&&h>=3?i=!0:void 0===d?S=void 0:d===1/0?S=l:d<=T&&(S=l+d)}}else b&&(!p&&"timeupdate"===u&&"timeupdate"===y&&l===A||"seeking"===u&&(d===1/0||void 0===d&&h<3))?r=!0:null!==g&&("seeking"!==u&&l!==A||"canplay"===u||void 0===d&&h>=3||void 0!==d&&d<1/0&&(d>W(g,o)||_||m))&&(i=!0);if(!0===i)return null;var w;if(!0===r||null!==g)return w="seeking"===u||null!==g&&"seeking"===g.reason||t.seeking?"seeking":1===h?"not-ready":"buffering",null!==g&&g.reason===w?{reason:g.reason,timestamp:g.timestamp,position:S}:{reason:w,timestamp:performance.now(),position:S};return null}(a,o,{lowLatencyMode:t._lowLatencyMode,withMediaSource:t._withMediaSource}),d=function(e,t){var n=c.A.getCurrent().MINIMUM_BUFFER_AMOUNT_BEFORE_FREEZING;if(e.freezing)return t.ended||t.paused||0===t.readyState||0===t.playbackRate||e.position!==t.position?null:e.freezing;return"timeupdate"===t.event&&void 0!==t.bufferGap&&t.bufferGap>n&&!t.ended&&!t.paused&&t.readyState>=1&&0!==t.playbackRate&&t.position===e.position?{timestamp:performance.now()}:null}(a,o),f=(0,E.A)({},{rebuffering:u,freezing:d,pendingInternalSeek:s},o);return l.A.hasLevel("DEBUG")&&l.A.debug("API: current media element state tick","event",f.event,"position",f.position,"seeking",f.seeking,"internalSeek",f.pendingInternalSeek,"rebuffering",null!==f.rebuffering,"freezing",null!==f.freezing,"ended",f.ended,"paused",f.paused,"playbackRate",f.playbackRate,"readyState",f.readyState),f},s=new w.A(o("init"),this._canceller.signal),u=function(t){var n=o(t);l.A.hasLevel("DEBUG")&&l.A.debug("API: current playback timeline:\n"+function(e,t){for(var n="",r="",i=0;it){var d=n.length-Math.floor(l.length/2);r=" ".repeat(d)+"^"+t}if(i=3?(r=void 0,i=void 0):i=null!==(r=(0,T.eO)(a,o))?r.end-o:1/0,{bufferGap:i,buffered:a,currentRange:r,position:o,duration:s,ended:u,paused:l,playbackRate:d,readyState:c,seeking:f,event:t}}function H(e,t,n){var r=t(e.getReference(),n);return{getCurrentTime:function(){return e.getCurrentTime()},getReadyState:function(){return e.getReadyState()},getPlaybackRate:function(){return e.getPlaybackRate()},getIsPaused:function(){return e.getIsPaused()},getReference:function(){return r},listen:function(e,t){var i;n.isCancelled()||!0===(null===(i=null==t?void 0:t.clearSignal)||void 0===i?void 0:i.isCancelled())||r.onUpdate(e,{clearSignal:null==t?void 0:t.clearSignal,emitCurrentValue:null==t?void 0:t.includeLastObservation})},deriveReadOnlyObserver:function(e){return H(this,e,n)}}}var q=n(1729),j=n(8202),Y=n(7296);function Q(e){return e.map((function(e){return null===e?e:{normalized:void 0===e.language?void 0:(0,j.Ay)(e.language),audioDescription:e.audioDescription,codec:e.codec}}))}function X(e){return e.map((function(e){return null===e?e:{normalized:(0,j.Ay)(e.language),forced:e.forced,closedCaption:e.closedCaption}}))}var $=function(){function e(e){this._periods=new Y.A((function(e,t){return e.period.start-t.period.start})),this._audioChoiceMemory=new WeakMap,this._textChoiceMemory=new WeakMap,this._videoChoiceMemory=new WeakMap,this._preferredAudioTracks=[],this._preferredTextTracks=[],this._preferredVideoTracks=[],this.trickModeTrackEnabled=e.preferTrickModeTracks}var t=e.prototype;return t.setPreferredAudioTracks=function(e,t){this._preferredAudioTracks=e,t&&this._applyAudioPreferences()},t.setPreferredTextTracks=function(e,t){this._preferredTextTracks=e,t&&this._applyTextPreferences()},t.setPreferredVideoTracks=function(e,t){this._preferredVideoTracks=e,t&&this._applyVideoPreferences()},t.addPeriod=function(e,t,n){var r=ie(this._periods,t),i=t.getSupportedAdaptations(e);if(void 0!==r){if(void 0!==r[e])return void l.A.warn("TrackChoiceManager: "+e+" already added for period",t.start);r[e]={adaptations:i,adaptationRef:n}}else{var a;this._periods.add(((a={period:t})[e]={adaptations:i,adaptationRef:n},a))}},t.removePeriod=function(e,t){var n=function(e,t){for(var n=0;n0;)this._periods.pop()},t.update=function(){this._resetChosenAudioTracks(),this._resetChosenTextTracks(),this._resetChosenVideoTracks()},t.setInitialAudioTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.audio:null;if((0,h.A)(n)||void 0===t)throw new Error("TrackChoiceManager: Given Period not found.");var r=e.getSupportedAdaptations("audio"),i=this._audioChoiceMemory.get(e);if(null===i)n.adaptationRef.setValue(null);else if(void 0!==i&&(0,A.A)(r,i))n.adaptationRef.setValue(i);else{var a=J(r,Q(this._preferredAudioTracks));this._audioChoiceMemory.set(e,a),n.adaptationRef.setValue(a)}},t.setInitialTextTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.text:null;if((0,h.A)(n)||void 0===t)throw new Error("TrackChoiceManager: Given Period not found.");var r=e.getSupportedAdaptations("text"),i=this._textChoiceMemory.get(e);if(null===i)n.adaptationRef.setValue(null);else if(void 0!==i&&(0,A.A)(r,i))n.adaptationRef.setValue(i);else{var a=te(r,X(this._preferredTextTracks),this._audioChoiceMemory.get(e));this._textChoiceMemory.set(e,a),n.adaptationRef.setValue(a)}},t.setInitialVideoTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.video:null;if((0,h.A)(n)||void 0===t)throw new Error("TrackChoiceManager: Given Period not found.");var r,i=e.getSupportedAdaptations("video"),a=this._videoChoiceMemory.get(e);if(null===a)r=null;else if(void 0!==a&&(0,A.A)(i,a.baseAdaptation))r=a.baseAdaptation;else{r=re(i,this._preferredVideoTracks)}if(null===r)return this._videoChoiceMemory.set(e,null),void n.adaptationRef.setValue(null);var o=ae(r,this.trickModeTrackEnabled);this._videoChoiceMemory.set(e,{baseAdaptation:r,adaptation:o}),n.adaptationRef.setValue(o)},t.setAudioTrackByID=function(e,t){var n=ie(this._periods,e),r=void 0!==n?n.audio:null;if((0,h.A)(r))throw new Error("TrackChoiceManager: Given Period not found.");var i=(0,q.A)(r.adaptations,(function(e){return e.id===t}));if(void 0===i)throw new Error("Audio Track not found.");this._audioChoiceMemory.get(e)!==i&&(this._audioChoiceMemory.set(e,i),r.adaptationRef.setValue(i))},t.setTextTrackByID=function(e,t){var n=ie(this._periods,e),r=void 0!==n?n.text:null;if((0,h.A)(r))throw new Error("TrackChoiceManager: Given Period not found.");var i=(0,q.A)(r.adaptations,(function(e){return e.id===t}));if(void 0===i)throw new Error("Text Track not found.");this._textChoiceMemory.get(e)!==i&&(this._textChoiceMemory.set(e,i),r.adaptationRef.setValue(i))},t.setVideoTrackByID=function(e,t){var n=ie(this._periods,e),r=void 0!==n?n.video:null;if((0,h.A)(r))throw new Error("LanguageManager: Given Period not found.");var i=(0,q.A)(r.adaptations,(function(e){return e.id===t}));if(void 0===i)throw new Error("Video Track not found.");var a=ae(i,this.trickModeTrackEnabled);this._videoChoiceMemory.set(e,{baseAdaptation:i,adaptation:a}),r.adaptationRef.setValue(a)},t.disableTextTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.text:null;if((0,h.A)(n))throw new Error("TrackChoiceManager: Given Period not found.");null!==this._textChoiceMemory.get(e)&&(this._textChoiceMemory.set(e,null),n.adaptationRef.setValue(null))},t.disableVideoTrack=function(e){var t=ie(this._periods,e),n=null==t?void 0:t.video;if(void 0===n)throw new Error("TrackManager: Given Period not found.");null!==this._videoChoiceMemory.get(e)&&(this._videoChoiceMemory.set(e,null),n.adaptationRef.setValue(null))},t.disableVideoTrickModeTracks=function(){this.trickModeTrackEnabled=!1,this._resetChosenVideoTracks()},t.enableVideoTrickModeTracks=function(){this.trickModeTrackEnabled=!0,this._resetChosenVideoTracks()},t.isTrickModeEnabled=function(){return this.trickModeTrackEnabled},t.getChosenAudioTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.audio:null;if((0,h.A)(n))return null;var r=this._audioChoiceMemory.get(e);return(0,h.A)(r)?null:r.toAudioTrack()},t.getChosenTextTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.text:null;if((0,h.A)(n))return null;var r=this._textChoiceMemory.get(e);return(0,h.A)(r)?null:r.toTextTrack()},t.getChosenVideoTrack=function(e){var t=ie(this._periods,e),n=void 0!==t?t.video:null;if((0,h.A)(n))return null;var r=this._videoChoiceMemory.get(e);return(0,h.A)(r)?null:r.adaptation.toVideoTrack()},t.getAvailableAudioTracks=function(e){var t=ie(this._periods,e),n=void 0!==t?t.audio:null;if((0,h.A)(n))return[];var r=this._audioChoiceMemory.get(e),i=(0,h.A)(r)?null:r.id;return n.adaptations.map((function(e){var t=null!==i&&i===e.id;return(0,E.A)(e.toAudioTrack(),{active:t})}))},t.getAvailableTextTracks=function(e){var t=ie(this._periods,e),n=void 0!==t?t.text:null;if((0,h.A)(n))return[];var r=this._textChoiceMemory.get(e),i=(0,h.A)(r)?null:r.id;return n.adaptations.map((function(e){var t=null!==i&&i===e.id;return(0,E.A)(e.toTextTrack(),{active:t})}))},t.getAvailableVideoTracks=function(e){var t,n=ie(this._periods,e),r=void 0!==n?n.video:null;if((0,h.A)(r))return[];var i=this._videoChoiceMemory.get(e),a=void 0===i?void 0:null!==(t=null==i?void 0:i.adaptation.id)&&void 0!==t?t:void 0;return r.adaptations.map((function(e){var t=null!==a&&a===e.id,n=e.toVideoTrack(),r=void 0!==n.trickModeTracks?n.trickModeTracks.map((function(e){var t=null!==a&&a===e.id;return(0,E.A)(e,{active:t})})):[],i=(0,E.A)(n,{active:t});return void 0!==r&&(i.trickModeTracks=r),i}))},t._applyAudioPreferences=function(){this._audioChoiceMemory=new WeakMap,this._resetChosenAudioTracks()},t._applyTextPreferences=function(){this._textChoiceMemory=new WeakMap,this._resetChosenTextTracks()},t._applyVideoPreferences=function(){this._videoChoiceMemory=new WeakMap,this._resetChosenVideoTracks()},t._resetChosenAudioTracks=function(){var e=this,t=Q(this._preferredAudioTracks);!function n(r){if(!(r>=e._periods.length())){var i=e._periods.get(r);if((0,h.A)(i.audio))n(r+1);else{var a=i.period,o=i.audio,s=a.getSupportedAdaptations("audio"),u=e._audioChoiceMemory.get(a);if(null===u||void 0!==u&&(0,A.A)(s,u))n(r+1);else{var l=J(s,t);e._audioChoiceMemory.set(a,l),o.adaptationRef.setValue(l),n(0)}}}}(0)},t._resetChosenTextTracks=function(){var e=this,t=X(this._preferredTextTracks);!function n(r){if(!(r>=e._periods.length())){var i=e._periods.get(r);if((0,h.A)(i.text))n(r+1);else{var a=i.period,o=i.text,s=a.getSupportedAdaptations("text"),u=e._textChoiceMemory.get(a);if(null===u||void 0!==u&&(0,A.A)(s,u))n(r+1);else{var l=te(s,t,e._audioChoiceMemory.get(a));e._textChoiceMemory.set(a,l),o.adaptationRef.setValue(l),n(0)}}}}(0)},t._resetChosenVideoTracks=function(){var e=this,t=this._preferredVideoTracks;!function n(r){if(!(r>=e._periods.length())){var i=e._periods.get(r);if((0,h.A)(i.video))n(r+1);else{var a=i.period,o=i.video,s=a.getSupportedAdaptations("video"),u=e._videoChoiceMemory.get(a);if(null!==u){if(void 0!==u&&(0,A.A)(s,u.baseAdaptation)){var l=ae(u.baseAdaptation,e.trickModeTrackEnabled);return l.id===u.adaptation.id?void n(r+1):(e._videoChoiceMemory.set(a,{baseAdaptation:u.baseAdaptation,adaptation:l}),o.adaptationRef.setValue(l),n(0))}var d=re(s,t);if(null===d)return e._videoChoiceMemory.set(a,null),o.adaptationRef.setValue(null),n(0);var c=ae(d,e.trickModeTrackEnabled);return e._videoChoiceMemory.set(a,{baseAdaptation:d,adaptation:c}),o.adaptationRef.setValue(c),n(0)}n(r+1)}}}(0)},e}();function Z(e){return function(t){var n;if(void 0!==e.normalized&&(null!==(n=t.normalizedLanguage)&&void 0!==n?n:"")!==e.normalized)return!1;if(void 0!==e.audioDescription)if(e.audioDescription){if(!0!==t.isAudioDescription)return!1}else if(!0===t.isAudioDescription)return!1;if(void 0===e.codec)return!0;var r=e.codec.test,i=function(e){return void 0!==e.codec&&r.test(e.codec)};return e.codec.all?t.representations.every(i):t.representations.some(i)}}function J(e,t){if(0===e.length)return null;for(var n=0;n0){if(null!=n){var l=(0,q.A)(u,(function(e){return e.normalizedLanguage===n.normalizedLanguage}));if(void 0!==l)return l}return null!==(r=(0,q.A)(u,(function(e){return void 0===e.normalizedLanguage})))&&void 0!==r?r:null}return null}function ne(e){return function(t){if(void 0!==e.signInterpreted&&e.signInterpreted!==t.isSignInterpreted)return!1;if(void 0===e.codec)return!0;var n=e.codec.test,r=function(e){return void 0!==e.codec&&n.test(e.codec)};return e.codec.all?t.representations.every(r):t.representations.some(r)}}function re(e,t){if(0===e.length)return null;for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ny)throw new Error('Invalid maxVideoBitrate parameter. Its value, "'+y+'", is inferior to the set minVideoBitrate, "'+m+'"')}if((0,h.A)(e.maxAudioBitrate))g=E.audio;else{if(g=Number(e.maxAudioBitrate),isNaN(g))throw new Error("Invalid maxAudioBitrate parameter. Should be a number.");if(p>g)throw new Error('Invalid maxAudioBitrate parameter. Its value, "'+g+'", is inferior to the set minAudioBitrate, "'+p+'"')}return{maxBufferAhead:t,maxBufferBehind:n,limitVideoWidth:P,videoElement:d,wantedBufferAhead:r,maxVideoBufferSize:i,throttleWhenHidden:a,throttleVideoBitrateWhenHidden:o,preferredAudioTracks:s,preferredTextTracks:u,preferredVideoTracks:l,initialAudioBitrate:v,initialVideoBitrate:f,minAudioBitrate:p,minVideoBitrate:m,maxAudioBitrate:g,maxVideoBitrate:y,stopAtEnd:(0,h.A)(e.stopAtEnd)?x:!!e.stopAtEnd}}(e),s=o.initialAudioBitrate,u=o.initialVideoBitrate,d=o.limitVideoWidth,f=o.minAudioBitrate,v=o.minVideoBitrate,p=o.maxAudioBitrate,m=o.maxBufferAhead,g=o.maxBufferBehind,y=o.maxVideoBitrate,A=o.preferredAudioTracks,_=o.preferredTextTracks,b=o.preferredVideoTracks,S=o.throttleWhenHidden,E=o.throttleVideoBitrateWhenHidden,T=o.videoElement,x=o.wantedBufferAhead,R=o.maxVideoBufferSize,C=o.stopAtEnd,M=c.A.getCurrent().DEFAULT_UNMUTED_VOLUME;T.preload="auto",t.version="3.33.4",t.log=l.A,t.state="STOPPED",t.videoElement=T,r._priv_registerVideoElement(t.videoElement);var P=new k.Ay;t._destroyCanceller=P,t._priv_pictureInPictureRef=fe(T,P.signal),he(T,(function(){t.trigger("fullscreenChange",t.isFullscreen())}),P.signal);for(var D=[],N=0;N<(null===(i=T.textTracks)||void 0===i?void 0:i.length);N++){var O=null===(a=T.textTracks)||void 0===a?void 0:a[N];(0,h.A)(O)||D.push(O)}var L=function(e){for(var n=e.target,r=[],i=0;i0?e.textTracks[0]:null},i.getPlayerState=function(){return this.state},i.isContentLoaded=function(){return!(0,A.A)(["LOADING","RELOADING","STOPPED"],this.state)},i.isBuffering=function(){return(0,A.A)(["BUFFERING","SEEKING","LOADING","RELOADING"],this.state)},i.isPaused=function(){return!this.videoElement||((0,A.A)(["LOADING","RELOADING"],this.state)?!this._priv_lastAutoPlay:this.videoElement.paused)},i.isLive=function(){if(null===this._priv_contentInfos)return!1;var e=this._priv_contentInfos,t=e.isDirectFile,n=e.manifest;return!t&&null!==n&&n.isLive},i.areTrickModeTracksEnabled=function(){return this._priv_preferTrickModeTracks},i.getUrl=function(){if(null!==this._priv_contentInfos){var e=this._priv_contentInfos,t=e.isDirectFile,n=e.manifest,r=e.originalUrl;return t?r:null!==n?n.getUrl():void 0}},i.updateContentUrls=function(e,t){if(null===this._priv_contentInfos)throw new Error("No content loaded");var n=!0===(null==t?void 0:t.refresh);this._priv_contentInfos.initializer.updateContentUrls(e,n)},i.getVideoDuration=function(){if(null===this.videoElement)throw new Error("Disposed player");return this.videoElement.duration},i.getVideoBufferGap=function(){if(null===this.videoElement)throw new Error("Disposed player");var e=this.videoElement;return(0,T.vK)(e.buffered,e.currentTime)},i.getVideoLoadedTime=function(){if((0,I.A)("`getVideoLoadedTime` is deprecated and won't be present in the next major version"),null===this.videoElement)throw new Error("Disposed player");var e=this.videoElement;return(0,T.UL)(e.buffered,e.currentTime)},i.getVideoPlayedTime=function(){if((0,I.A)("`getVideoPlayedTime` is deprecated and won't be present in the next major version"),null===this.videoElement)throw new Error("Disposed player");var e=this.videoElement;return(0,T.D3)(e.buffered,e.currentTime)},i.getWallClockTime=function(){if(null===this.videoElement)throw new Error("Disposed player");if(null===this._priv_contentInfos)return this.videoElement.currentTime;var e=this._priv_contentInfos,t=e.isDirectFile,n=e.manifest;if(t){var r=a(this.videoElement);return(null!=r?r:0)+this.videoElement.currentTime}return null!==n?this.videoElement.currentTime+(void 0!==n.availabilityStartTime?n.availabilityStartTime:0):0},i.getPosition=function(){if(null===this.videoElement)throw new Error("Disposed player");return this.videoElement.currentTime},i.getLastStoredContentPosition=function(){return this._priv_reloadingMetadata.reloadPosition},i.getPlaybackRate=function(){return this._priv_speed.getValue()},i.setPlaybackRate=function(e,t){var n;e!==this._priv_speed.getValue()&&this._priv_speed.setValue(e);var r=null==t?void 0:t.preferTrickModeTracks;if("boolean"==typeof r){this._priv_preferTrickModeTracks=r;var i=null===(n=this._priv_contentInfos)||void 0===n?void 0:n.trackChoiceManager;(0,h.A)(i)||(r&&!i.isTrickModeEnabled()?i.enableVideoTrickModeTracks():!r&&i.isTrickModeEnabled()&&i.disableVideoTrickModeTracks())}},i.getAvailableVideoBitrates=function(){if(null===this._priv_contentInfos)return[];var e=this._priv_contentInfos,t=e.currentPeriod,n=e.activeAdaptations;if(null===t||null===n)return[];var r=n[t.id];return void 0===r||(0,h.A)(r.video)?[]:r.video.getAvailableBitrates()},i.getAvailableAudioBitrates=function(){if(null===this._priv_contentInfos)return[];var e=this._priv_contentInfos,t=e.currentPeriod,n=e.activeAdaptations;if(null===t||null===n)return[];var r=n[t.id];return void 0===r||(0,h.A)(r.audio)?[]:r.audio.getAvailableBitrates()},i.getManualAudioBitrate=function(){return this._priv_bitrateInfos.manualBitrates.audio.getValue()},i.getManualVideoBitrate=function(){return this._priv_bitrateInfos.manualBitrates.video.getValue()},i.getVideoBitrate=function(){var e=this._priv_getCurrentRepresentations();if(null!==e&&!(0,h.A)(e.video))return e.video.bitrate},i.getAudioBitrate=function(){var e=this._priv_getCurrentRepresentations();if(null!==e&&!(0,h.A)(e.audio))return e.audio.bitrate},i.getMinVideoBitrate=function(){return this._priv_bitrateInfos.minAutoBitrates.video.getValue()},i.getMinAudioBitrate=function(){return this._priv_bitrateInfos.minAutoBitrates.audio.getValue()},i.getMaxVideoBitrate=function(){return this._priv_bitrateInfos.maxAutoBitrates.video.getValue()},i.getMaxAudioBitrate=function(){return this._priv_bitrateInfos.maxAutoBitrates.audio.getValue()},i.play=function(){var e=this;if(null===this.videoElement)throw new Error("Disposed player");var t=this.videoElement.play();return(0,h.A)(t)||"function"!=typeof t.catch?Promise.resolve():t.catch((function(t){if("NotAllowedError"===t.name){var n=new v.A("MEDIA_ERR_PLAY_NOT_ALLOWED",t.toString());e.trigger("warning",n)}throw t}))},i.pause=function(){if(null===this.videoElement)throw new Error("Disposed player");this.videoElement.pause()},i.seekTo=function(e){var t;if(null===this.videoElement)throw new Error("Disposed player");if(null===this._priv_contentInfos)throw new Error("player: no content loaded");var n,r=this._priv_contentInfos,i=r.isDirectFile,o=r.manifest;if(!i&&null===o)throw new Error("player: the content did not load yet");if("number"==typeof e)n=e;else if("object"==typeof e){var s=e,u=this.videoElement.currentTime;if((0,h.A)(s.relative))if((0,h.A)(s.position)){if((0,h.A)(s.wallClockTime))throw new Error('invalid time object. You must set one of the following properties: "relative", "position" or "wallClockTime"');if(null!==o)n=s.wallClockTime-(null!==(t=o.availabilityStartTime)&&void 0!==t?t:0);else if(i&&null!==this.videoElement){var d=a(this.videoElement);void 0!==d&&(n=s.wallClockTime-d)}void 0===n&&(n=s.wallClockTime)}else n=s.position;else n=u+s.relative}if(void 0===n)throw new Error("invalid time given");return l.A.info("API: API Seek to",n),this.videoElement.currentTime=n,n},i.isFullscreen=function(){return(0,I.A)("isFullscreen is deprecated. Fullscreen management should now be managed by the application"),s()},i.setFullscreen=function(e){if(void 0===e&&(e=!0),(0,I.A)("setFullscreen is deprecated. Fullscreen management should now be managed by the application"),null===this.videoElement)throw new Error("Disposed player");e?function(e){if(!s()){var t=e;"function"==typeof t.requestFullscreen?t.requestFullscreen():"function"==typeof t.msRequestFullscreen?t.msRequestFullscreen():"function"==typeof t.mozRequestFullScreen?t.mozRequestFullScreen():"function"==typeof t.webkitRequestFullscreen&&t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}}(this.videoElement):o()},i.exitFullscreen=function(){(0,I.A)("exitFullscreen is deprecated. Fullscreen management should now be managed by the application"),o()},i.getVolume=function(){if(null===this.videoElement)throw new Error("Disposed player");return this.videoElement.volume},i.setVolume=function(e){if(null===this.videoElement)throw new Error("Disposed player");var t=this.videoElement;e!==t.volume&&(t.volume=e,this.trigger("volumeChange",e))},i.isMute=function(){return 0===this.getVolume()},i.mute=function(){this._priv_mutedMemory=this.getVolume(),this.setVolume(0)},i.unMute=function(){var e=c.A.getCurrent().DEFAULT_UNMUTED_VOLUME;0===this.getVolume()&&this.setVolume(0===this._priv_mutedMemory?e:this._priv_mutedMemory)},i.setVideoBitrate=function(e){this._priv_bitrateInfos.manualBitrates.video.setValue(e)},i.setAudioBitrate=function(e){this._priv_bitrateInfos.manualBitrates.audio.setValue(e)},i.setMinVideoBitrate=function(e){var t=this._priv_bitrateInfos.maxAutoBitrates.video.getValue();if(e>t)throw new Error('Invalid minimum video bitrate given. Its value, "'+e+'" is superior the current maximum video birate, "'+t+'".');this._priv_bitrateInfos.minAutoBitrates.video.setValue(e)},i.setMinAudioBitrate=function(e){var t=this._priv_bitrateInfos.maxAutoBitrates.audio.getValue();if(e>t)throw new Error('Invalid minimum audio bitrate given. Its value, "'+e+'" is superior the current maximum audio birate, "'+t+'".');this._priv_bitrateInfos.minAutoBitrates.audio.setValue(e)},i.setMaxVideoBitrate=function(e){var t=this._priv_bitrateInfos.minAutoBitrates.video.getValue();if(e0||c.result.removedAdaptations.length>0)){var f=u.getAvailableAudioTracks(s);r._priv_triggerEventIfNotStopped("availableAudioTracksChange",null!=f?f:[],i);var v=u.getAvailableTextTracks(s);r._priv_triggerEventIfNotStopped("availableTextTracksChange",null!=v?v:[],i);var p=u.getAvailableVideoTracks(s);r._priv_triggerEventIfNotStopped("availableVideoTracksChange",null!=p?p:[],i)}return}}),e.currentContentCanceller.signal)}},i._priv_onActivePeriodChanged=function(e,t){var n,r,i,a,o,s,u,l,d=t.period;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){e.currentPeriod=d;var c=e.currentContentCanceller.signal;this._priv_contentEventsMemory.periodChange!==d&&(this._priv_contentEventsMemory.periodChange=d,this._priv_triggerEventIfNotStopped("periodChange",d,c)),this._priv_triggerEventIfNotStopped("availableAudioTracksChange",this.getAvailableAudioTracks(),c),this._priv_triggerEventIfNotStopped("availableTextTracksChange",this.getAvailableTextTracks(),c),this._priv_triggerEventIfNotStopped("availableVideoTracksChange",this.getAvailableVideoTracks(),c);var f=null===(r=this._priv_contentInfos)||void 0===r?void 0:r.trackChoiceManager;if((0,h.A)(f))this._priv_triggerEventIfNotStopped("audioTrackChange",null,c),this._priv_triggerEventIfNotStopped("textTrackChange",null,c),this._priv_triggerEventIfNotStopped("videoTrackChange",null,c);else{var v=f.getChosenAudioTrack(d);this._priv_triggerEventIfNotStopped("audioTrackChange",v,c);var p=f.getChosenTextTrack(d);this._priv_triggerEventIfNotStopped("textTrackChange",p,c);var m=f.getChosenVideoTrack(d);this._priv_triggerEventIfNotStopped("videoTrackChange",m,c)}if(this._priv_triggerAvailableBitratesChangeEvent("availableAudioBitratesChange",this.getAvailableAudioBitrates(),c),!e.currentContentCanceller.isUsed()&&(this._priv_triggerAvailableBitratesChangeEvent("availableVideoBitratesChange",this.getAvailableVideoBitrates(),c),!e.currentContentCanceller.isUsed())){var g=null!==(o=null===(a=null===(i=this._priv_getCurrentRepresentations())||void 0===i?void 0:i.audio)||void 0===a?void 0:a.bitrate)&&void 0!==o?o:-1;if(this._priv_triggerCurrentBitrateChangeEvent("audioBitrateChange",g,c),!e.currentContentCanceller.isUsed()){var y=null!==(l=null===(u=null===(s=this._priv_getCurrentRepresentations())||void 0===s?void 0:s.video)||void 0===u?void 0:u.bitrate)&&void 0!==l?l:-1;this._priv_triggerCurrentBitrateChangeEvent("videoBitrateChange",y,c)}}}},i._priv_onPeriodStreamReady=function(e,t){var n;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){var r=t.type,i=t.period,a=t.adaptationRef,o=e.trackChoiceManager;switch(r){case"video":(0,h.A)(o)?(l.A.error("API: TrackChoiceManager not instanciated for a new video period"),a.setValue(null)):(o.addPeriod(r,i,a),o.setInitialVideoTrack(i));break;case"audio":(0,h.A)(o)?(l.A.error("API: TrackChoiceManager not instanciated for a new "+r+" period"),a.setValue(null)):(o.addPeriod(r,i,a),o.setInitialAudioTrack(i));break;case"text":(0,h.A)(o)?(l.A.error("API: TrackChoiceManager not instanciated for a new "+r+" period"),a.setValue(null)):(o.addPeriod(r,i,a),o.setInitialTextTrack(i));break;default:var s=i.adaptations[r];!(0,h.A)(s)&&s.length>0?a.setValue(s[0]):a.setValue(null)}}},i._priv_onPeriodStreamCleared=function(e,t){var n;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){var r=t.type,i=t.period,a=e.trackChoiceManager;switch(r){case"audio":case"text":case"video":(0,h.A)(a)||a.removePeriod(r,i)}var o=e.activeAdaptations,s=e.activeRepresentations;if(!(0,h.A)(o)&&!(0,h.A)(o[i.id])){var u=o[i.id];delete u[r],0===Object.keys(u).length&&delete o[i.id]}if(!(0,h.A)(s)&&!(0,h.A)(s[i.id])){var l=s[i.id];delete l[r],0===Object.keys(l).length&&delete s[i.id]}}},i._priv_onAdaptationChange=function(e,t){var n,r=t.type,i=t.adaptation,a=t.period;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){null===e.activeAdaptations&&(e.activeAdaptations={});var o,s=e.activeAdaptations,u=e.currentPeriod,l=s[a.id];if((0,h.A)(l))s[a.id]=((o={})[r]=i,o);else l[r]=i;var d=e.trackChoiceManager,c=e.currentContentCanceller.signal;if(null!==d&&null!==u&&!(0,h.A)(a)&&a.id===u.id)switch(r){case"audio":var f=d.getChosenAudioTrack(u);this._priv_triggerEventIfNotStopped("audioTrackChange",f,c);var v=this.getAvailableAudioBitrates();this._priv_triggerAvailableBitratesChangeEvent("availableAudioBitratesChange",v,c);break;case"text":var p=d.getChosenTextTrack(u);this._priv_triggerEventIfNotStopped("textTrackChange",p,c);break;case"video":var m=d.getChosenVideoTrack(u);this._priv_triggerEventIfNotStopped("videoTrackChange",m,c);var g=this.getAvailableVideoBitrates();this._priv_triggerAvailableBitratesChangeEvent("availableVideoBitratesChange",g,c)}}},i._priv_onRepresentationChange=function(e,t){var n,r,i=t.type,a=t.period,o=t.representation;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){null===e.activeRepresentations&&(e.activeRepresentations={});var s,u=e.activeRepresentations,l=e.currentPeriod,d=u[a.id];if((0,h.A)(d))u[a.id]=((s={})[i]=o,s);else d[i]=o;var c=null!==(r=null==o?void 0:o.bitrate)&&void 0!==r?r:-1;if(!(0,h.A)(a)&&null!==l&&l.id===a.id){var f=this._priv_contentInfos.currentContentCanceller.signal;"video"===i?this._priv_triggerCurrentBitrateChangeEvent("videoBitrateChange",c,f):"audio"===i&&this._priv_triggerCurrentBitrateChangeEvent("audioBitrateChange",c,f)}}},i._priv_onBitrateEstimationChange=function(e){var t=e.type,n=e.bitrate;void 0!==n&&(this._priv_bitrateInfos.lastBitrates[t]=n),this.trigger("bitrateEstimationChange",{type:t,bitrate:n})},i._priv_onNativeTextTracksNext=function(e){this.trigger("nativeTextTracksChange",e)},i._priv_setPlayerState=function(e){this.state!==e&&(this.state=e,l.A.info("API: playerStateChange event",e),this.trigger("playerStateChange",e))},i._priv_triggerPositionUpdate=function(e,t){var n,r;if(e.contentId===(null===(n=this._priv_contentInfos)||void 0===n?void 0:n.contentId)){var i=e.isDirectFile,o=e.manifest;if((i||null!==o)&&!(0,h.A)(t)){var s=null!==o?o.getMaximumSafePosition():void 0,u={position:t.position,duration:t.duration,playbackRate:t.playbackRate,maximumBufferTime:s,bufferGap:void 0!==t.bufferGap&&isFinite(t.bufferGap)?t.bufferGap:0};if(null!==o&&o.isLive&&t.position>0){var l=null!==(r=o.availabilityStartTime)&&void 0!==r?r:0;u.wallClockTime=t.position+l;var d=o.getLivePosition();void 0!==d&&(u.liveGap=d-t.position)}else if(i&&null!==this.videoElement){var c=a(this.videoElement);void 0!==c&&(u.wallClockTime=c+t.position)}this.trigger("positionUpdate",u)}}},i._priv_triggerAvailableBitratesChangeEvent=function(e,t,n){var r=this._priv_contentEventsMemory[e];n.isCancelled()||void 0!==r&&(0,y.A)(t,r)||(this._priv_contentEventsMemory[e]=t,this.trigger(e,t))},i._priv_triggerCurrentBitrateChangeEvent=function(e,t,n){n.isCancelled()||t===this._priv_contentEventsMemory[e]||(this._priv_contentEventsMemory[e]=t,this.trigger(e,t))},i._priv_getCurrentRepresentations=function(){if(null===this._priv_contentInfos)return null;var e=this._priv_contentInfos,t=e.currentPeriod,n=e.activeRepresentations;return null===t||null===n||(0,h.A)(n[t.id])?null:n[t.id]},i._priv_triggerEventIfNotStopped=function(e,t,n){n.isCancelled()||this.trigger(e,t)},i._priv_initializeMediaElementTrackChoiceManager=function(e,t,n){var r,i,a,o=this;(0,_.h)(null!==g.A.directfile,"Initializing `MediaElementTrackChoiceManager` without Directfile feature"),(0,_.h)(null!==this.videoElement,"Initializing `MediaElementTrackChoiceManager` on a disposed RxPlayer");var s=new g.A.directfile.mediaElementTrackChoiceManager(this.videoElement),u=void 0===e?this._priv_preferredAudioTracks:[e];s.setPreferredAudioTracks(u,!0);var l=void 0===t?this._priv_preferredTextTracks:[t];return s.setPreferredTextTracks(l,!0),s.setPreferredVideoTracks(this._priv_preferredVideoTracks,!0),this._priv_triggerEventIfNotStopped("availableAudioTracksChange",s.getAvailableAudioTracks(),n),this._priv_triggerEventIfNotStopped("availableVideoTracksChange",s.getAvailableVideoTracks(),n),this._priv_triggerEventIfNotStopped("availableTextTracksChange",s.getAvailableTextTracks(),n),this._priv_triggerEventIfNotStopped("audioTrackChange",null!==(r=s.getChosenAudioTrack())&&void 0!==r?r:null,n),this._priv_triggerEventIfNotStopped("textTrackChange",null!==(i=s.getChosenTextTrack())&&void 0!==i?i:null,n),this._priv_triggerEventIfNotStopped("videoTrackChange",null!==(a=s.getChosenVideoTrack())&&void 0!==a?a:null,n),s.addEventListener("availableVideoTracksChange",(function(e){return o.trigger("availableVideoTracksChange",e)})),s.addEventListener("availableAudioTracksChange",(function(e){return o.trigger("availableAudioTracksChange",e)})),s.addEventListener("availableTextTracksChange",(function(e){return o.trigger("availableTextTracksChange",e)})),s.addEventListener("audioTrackChange",(function(e){return o.trigger("audioTrackChange",e)})),s.addEventListener("videoTrackChange",(function(e){return o.trigger("videoTrackChange",e)})),s.addEventListener("textTrackChange",(function(e){return o.trigger("textTrackChange",e)})),s},(0,e.A)(r,null,[{key:"ErrorTypes",get:function(){return p.wU}},{key:"ErrorCodes",get:function(){return p.tG}},{key:"LogLevel",get:function(){return l.A.getLevel()},set:function(e){l.A.setLevel(e)}}])}(b.A);ye._priv_currentlyUsedVideoElements=new WeakSet,ye.version="3.33.4";var Ae=ye;!function(){m.A.mediaSourceInit=n(1737).A,m.A.decrypt=n(6699).Ay,m.A.imageBuffer=n(4166).A,m.A.imageParser=n(1755).A,m.A.transports.smooth=n(5564).A,m.A.transports.dash=n(9502).A,m.A.dashParsers.js=n(95).A,m.A.nativeTextTracksBuffer=n(8385).A,m.A.nativeTextTracksParsers.vtt=n(2537).A,m.A.nativeTextTracksParsers.ttml=n(5084).A,m.A.nativeTextTracksParsers.sami=n(7275).A,m.A.nativeTextTracksParsers.srt=n(5992).A,m.A.htmlTextTracksBuffer=n(7938).A,m.A.htmlTextTracksParsers.sami=n(9561).A,m.A.htmlTextTracksParsers.ttml=n(8342).A,m.A.htmlTextTracksParsers.srt=n(1650).A,m.A.htmlTextTracksParsers.vtt=n(8977).A;var e=n(5963).A,t=n(3568).A;m.A.directfile={initDirectFile:e,mediaElementTrackChoiceManager:t}}(),"boolean"==typeof __RX_PLAYER_DEBUG_MODE__&&__RX_PLAYER_DEBUG_MODE__&&l.A.setLevel("DEBUG");var _e=Ae}(),r=r.default}()})); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e0e2dad49e..7303c5c2be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rx-player", - "version": "3.33.3", + "version": "3.33.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "rx-player", - "version": "3.33.3", + "version": "3.33.4", "license": "Apache-2.0", "dependencies": { "next-tick": "1.1.0" diff --git a/package.json b/package.json index 95c3fdf552..fe729ceabc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "rx-player", "author": "Canal+", - "version": "3.33.3", + "version": "3.33.4", "description": "Canal+ HTML5 Video Player", "main": "./dist/rx-player.js", "keywords": [ diff --git a/sonar-project.properties b/sonar-project.properties index b78ce16137..8a8abda661 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,7 +1,7 @@ sonar.projectKey=rx-player sonar.organization=rx-player sonar.projectName=rx-player -sonar.projectVersion=3.33.3 +sonar.projectVersion=3.33.4 sonar.sources=./src,./demo,./tests sonar.exclusions=demo/full/bundle.js,demo/standalone/lib.js,demo/bundle.js sonar.host.url=https://sonarcloud.io diff --git a/src/core/api/public_api.ts b/src/core/api/public_api.ts index 4770783972..1c5bad1341 100644 --- a/src/core/api/public_api.ts +++ b/src/core/api/public_api.ts @@ -396,7 +396,7 @@ class Player extends EventEmitter { // See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624 videoElement.preload = "auto"; - this.version = /* PLAYER_VERSION */ "3.33.3"; + this.version = /* PLAYER_VERSION */ "3.33.4"; this.log = log; this.state = "STOPPED"; this.videoElement = videoElement; @@ -3358,7 +3358,7 @@ class Player extends EventEmitter { return mediaElementTrackChoiceManager; } } -Player.version = /* PLAYER_VERSION */ "3.33.3"; +Player.version = /* PLAYER_VERSION */ "3.33.4"; /** Every events sent by the RxPlayer's public API. */ interface IPublicAPIEvent {