@videojs/html 10.0.0-beta.12 → 10.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/audio-minimal.dev.js +4 -4
- package/cdn/audio-minimal.js +1 -1
- package/cdn/audio.dev.js +4 -4
- package/cdn/audio.js +1 -1
- package/cdn/background.dev.js +3 -3
- package/cdn/background.js +1 -1
- package/cdn/{create-player-BoPlCSNw.js → create-player-C2h3JeGl.js} +2 -2
- package/cdn/{create-player-BoPlCSNw.js.map → create-player-C2h3JeGl.js.map} +1 -1
- package/cdn/{create-player-CA3KLZMe.js → create-player-i0Q36S9_.js} +2 -2
- package/cdn/{create-player-CA3KLZMe.js.map → create-player-i0Q36S9_.js.map} +1 -1
- package/cdn/{delegate-CSc5c0ZR.js → delegate-AoR5Pt_6.js} +2 -2
- package/cdn/{delegate-CSc5c0ZR.js.map → delegate-AoR5Pt_6.js.map} +1 -1
- package/cdn/{delegate-jczJeizF.js → delegate-odoSeh7c.js} +2 -2
- package/cdn/{delegate-jczJeizF.js.map → delegate-odoSeh7c.js.map} +1 -1
- package/cdn/{hls-DQ4glyHe.js → hls-CNDMNsEo.js} +2 -2
- package/cdn/hls-CNDMNsEo.js.map +1 -0
- package/cdn/{hls-C6htsSW4.js → hls-DHwATYV2.js} +4 -2
- package/cdn/hls-DHwATYV2.js.map +1 -0
- package/cdn/media/dash-video.dev.js +3 -3
- package/cdn/media/dash-video.js +1 -1
- package/cdn/media/hls-video.dev.js +3 -3
- package/cdn/media/hls-video.js +1 -1
- package/cdn/media/mux-video.dev.js +5 -5
- package/cdn/media/mux-video.dev.js.map +1 -1
- package/cdn/media/mux-video.js +1 -1
- package/cdn/media/mux-video.js.map +1 -1
- package/cdn/media/simple-hls-video.dev.js +3 -3
- package/cdn/media/simple-hls-video.js +1 -1
- package/cdn/{media-attach-mixin-BIrlT_tz.js → media-attach-mixin-ByJOWMNT.js} +2 -2
- package/cdn/{media-attach-mixin-BIrlT_tz.js.map → media-attach-mixin-ByJOWMNT.js.map} +1 -1
- package/cdn/{media-attach-mixin-Dsn4gxJA.js → media-attach-mixin-CkU58gjb.js} +2 -2
- package/cdn/{media-attach-mixin-Dsn4gxJA.js.map → media-attach-mixin-CkU58gjb.js.map} +1 -1
- package/cdn/{player-rkxd0mpV.js → player-BWRklsUx.js} +3 -3
- package/cdn/{player-rkxd0mpV.js.map → player-BWRklsUx.js.map} +1 -1
- package/cdn/player-DOTrw60d.js +2 -0
- package/cdn/{player-Dzvu8Tzs.js.map → player-DOTrw60d.js.map} +1 -1
- package/cdn/{poster-DqjXzMK_.js → poster-CRi_NWaR.js} +2 -2
- package/cdn/{poster-DqjXzMK_.js.map → poster-CRi_NWaR.js.map} +1 -1
- package/cdn/{poster-BPMPXyn3.js → poster-Ds1EOmmU.js} +4 -4
- package/cdn/{poster-BPMPXyn3.js.map → poster-Ds1EOmmU.js.map} +1 -1
- package/cdn/{safe-define-D26LrTu4.js → safe-define-Bw8JF08z.js} +11 -2
- package/cdn/{safe-define-D26LrTu4.js.map → safe-define-Bw8JF08z.js.map} +1 -1
- package/cdn/{safe-define-EEn8NTOG.js → safe-define-t0AGOouq.js} +2 -2
- package/cdn/{safe-define-EEn8NTOG.js.map → safe-define-t0AGOouq.js.map} +1 -1
- package/cdn/video-minimal.dev.js +4 -4
- package/cdn/video-minimal.js +1 -1
- package/cdn/video.dev.js +4 -4
- package/cdn/video.js +1 -1
- package/cdn/{volume-slider-CQ0Yq947.js → volume-slider-C7rEWi11.js} +2 -2
- package/cdn/{volume-slider-CQ0Yq947.js.map → volume-slider-C7rEWi11.js.map} +1 -1
- package/cdn/{volume-slider-BEXiB6_j.js → volume-slider-Dz_ND_4U.js} +3 -3
- package/cdn/{volume-slider-BEXiB6_j.js.map → volume-slider-Dz_ND_4U.js.map} +1 -1
- package/package.json +8 -8
- package/cdn/hls-C6htsSW4.js.map +0 -1
- package/cdn/hls-DQ4glyHe.js.map +0 -1
- package/cdn/player-Dzvu8Tzs.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as safeDefine } from "../safe-define-
|
|
2
|
-
import { t as DelegateMixin } from "../delegate-
|
|
3
|
-
import { t as MediaAttachMixin } from "../media-attach-mixin-
|
|
1
|
+
import { t as safeDefine } from "../safe-define-Bw8JF08z.js";
|
|
2
|
+
import { t as DelegateMixin } from "../delegate-AoR5Pt_6.js";
|
|
3
|
+
import { t as MediaAttachMixin } from "../media-attach-mixin-CkU58gjb.js";
|
|
4
4
|
import { n as CustomVideoElement, t as MediaPropsMixin } from "../media-props-mixin-DxsM38Bx.js";
|
|
5
5
|
|
|
6
6
|
//#region ../../node_modules/.pnpm/dashjs@5.1.1_@svta+cml-cta@1.0.1_@svta+cml-structured-field-values@1.0.1_@svta+cml-util_e62e22cdd187b69d7eef3f6641da2ae0/node_modules/dashjs/dist/modern/esm/dash.all.min.js
|
package/cdn/media/dash-video.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"../safe-define-
|
|
1
|
+
import{t as e}from"../safe-define-t0AGOouq.js";import{t}from"../delegate-odoSeh7c.js";import{t as n}from"../media-attach-mixin-ByJOWMNT.js";import{n as r,t as i}from"../media-props-mixin-BuVUebRp.js";
|
|
2
2
|
/*! For license information please see dash.all.min.js.LICENSE.txt */
|
|
3
3
|
var o={7267:function(e,t){t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=l(e),c=o[0],u=o[1],d=new i(function(e,t,n){return 3*(t+n)/4-n}(0,c,u)),f=0,p=u>0?c-4:c;for(n=0;n<p;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],d[f++]=t>>16&255,d[f++]=t>>8&255,d[f++]=255&t;return u===2&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,d[f++]=255&t),u===1&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,d[f++]=t>>8&255,d[f++]=255&t),d},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],c=16383,l=0,d=r-i;l<d;l+=c)o.push(u(e,l,l+c>d?d:l+c));return i===1?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+`==`)):i===2&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+`=`)),o.join(``)};for(var n=[],r=[],i=typeof Uint8Array<`u`?Uint8Array:Array,o=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,c=0;c<64;++c)n[c]=o[c],r[o.charCodeAt(c)]=c;function l(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);return n===-1&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,c=[],l=t;l<r;l+=3)i=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),c.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return c.join(``)}r[45]=62,r[95]=63},44:function(e,t,n){var r=n(7267),i=n(7986),o=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;var c=2147483647;function l(e){if(e>c)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return p(e)}return d(e,t,n)}function d(e,t,n){if(typeof e==`string`)return function(e,t){if(typeof t==`string`&&t!==``||(t=`utf8`),!u.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=0|_(e,t),r=l(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(U(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return u.from(r,t,n);var i=function(e){if(u.isBuffer(e)){var t=0|g(e.length),n=l(t);return n.length===0||e.copy(n,0,0,t),n}return e.length===void 0?e.type===`Buffer`&&Array.isArray(e.data)?m(e.data):void 0:typeof e.length!=`number`||W(e.length)?l(0):m(e)}(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return u.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}function f(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function p(e){return f(e),l(e<0?0:0|g(e))}function m(e){for(var t=e.length<0?0:0|g(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);var r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function g(e){if(e>=c)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+c.toString(16)+` bytes`);return 0|e}function _(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return B(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return 2*n;case`hex`:return n>>>1;case`base64`:return V(e).length;default:if(i)return r?-1:B(e).length;t=(``+t).toLowerCase(),i=!0}}function v(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return``;for(e||=`utf8`;;)switch(e){case`hex`:return M(this,t,n);case`utf8`:case`utf-8`:return O(this,t,n);case`ascii`:return A(this,t,n);case`latin1`:case`binary`:return j(this,t,n);case`base64`:return D(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return N(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t==`string`&&(t=u.from(t,r)),u.isBuffer(t))return t.length===0?-1:x(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):x(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function x(e,t,n,r,i){var o,c=1,l=e.length,u=t.length;if(r!==void 0&&((r=String(r).toLowerCase())===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;c=2,l/=2,u/=2,n/=2}function d(e,t){return c===1?e[t]:e.readUInt16BE(t*c)}if(i){var f=-1;for(o=n;o<l;o++)if(d(e,o)===d(t,f===-1?0:o-f)){if(f===-1&&(f=o),o-f+1===u)return f*c}else f!==-1&&(o-=o-f),f=-1}else for(n+u>l&&(n=l-u),o=n;o>=0;o--){for(var p=!0,m=0;m<u;m++)if(d(e,o+m)!==d(t,m)){p=!1;break}if(p)return o}return-1}function S(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var c=0;c<r;++c){var l=parseInt(t.substr(2*c,2),16);if(W(l))return c;e[n+c]=l}return c}function C(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function T(e,t,n,r){return H(V(t),e,n,r)}function E(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],c=0;c<e.length&&!((t-=2)<0);++c)r=(n=e.charCodeAt(c))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function D(e,t,n){return t===0&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,c,l,u,d=e[i],f=null,p=d>239?4:d>223?3:d>191?2:1;if(i+p<=n)switch(p){case 1:d<128&&(f=d);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&d)<<6|63&o)>127&&(f=u);break;case 3:o=e[i+1],c=e[i+2],(192&o)==128&&(192&c)==128&&(u=(15&d)<<12|(63&o)<<6|63&c)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=e[i+1],c=e[i+2],l=e[i+3],(192&o)==128&&(192&c)==128&&(192&l)==128&&(u=(15&d)<<18|(63&o)<<12|(63&c)<<6|63&l)>65535&&u<1114112&&(f=u)}f===null?(f=65533,p=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=p}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var n=``,r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=k));return n}(r)}t.kMaxLength=c,u.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),u.TYPED_ARRAY_SUPPORT||typeof console>`u`||typeof console.error!=`function`||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,`parent`,{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,`offset`,{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return function(e,t,n){return f(e),e<=0||t===void 0?l(e):typeof n==`string`?l(e).fill(t,n):l(e).fill(t)}(e,t,n)},u.allocUnsafe=function(e){return p(e)},u.allocUnsafeSlow=function(e){return p(e)},u.isBuffer=function(e){return e!=null&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(U(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return u.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(U(o,Uint8Array))i+o.length>r.length?u.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else{if(!u.isBuffer(o))throw TypeError(`"list" argument must be an Array of Buffers`);o.copy(r,i)}i+=o.length}return r},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return e===0?``:arguments.length===0?O(this,0,e):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||u.compare(this,e)===0},u.prototype.inspect=function(){var e=``,n=t.INSPECT_MAX_BYTES;return e=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(e+=` ... `),`<Buffer `+e+`>`},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(U(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),c=(n>>>=0)-(t>>>=0),l=Math.min(o,c),d=this.slice(r,i),f=e.slice(t,n),p=0;p<l;++p)if(d[p]!==f[p]){o=d[p],c=f[p];break}return o<c?-1:c<o?1:0},u.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},u.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var o=!1;;)switch(r){case`hex`:return S(this,e,t,n);case`utf8`:case`utf-8`:return C(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return w(this,e,t,n);case`base64`:return T(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return E(this,e,t,n);default:if(o)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function A(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function j(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i=``,o=t;o<n;++o)i+=G[e[o]];return i}function N(e,t,n){for(var r=e.slice(t,n),i=``,o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}function F(e,t,n,r,i,o){if(!u.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<o)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}function I(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,n,r,o){return t=+t,n>>>=0,o||I(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return t=+t,n>>>=0,o||I(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=2**(8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=2**(8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||F(this,e,t,n,2**(8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||F(this,e,t,n,2**(8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var o=0,c=1,l=0;for(this[t]=255&e;++o<n&&(c*=256);)e<0&&l===0&&this[t+o-1]!==0&&(l=1),this[t+o]=(e/c|0)-l&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);F(this,e,t,n,i-1,-i)}var o=n-1,c=1,l=0;for(this[t+o]=255&e;--o>=0&&(c*=256);)e<0&&l===0&&this[t+o+1]!==0&&(l=1),this[t+o]=(e/c|0)-l&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!u.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;var o;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||=0,typeof e==`number`)for(o=t;o<n;++o)this[o]=e;else{var c=u.isBuffer(e)?e:u.from(e,r),l=c.length;if(l===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(o=0;o<n-t;++o)this[o+t]=c[o%l]}return this};var z=/[^+/0-9A-Za-z-_]/g;function B(e,t){var n;t||=1/0;for(var r=e.length,i=null,o=[],c=0;c<r;++c){if((n=e.charCodeAt(c))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(c+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if(--t<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error(`Invalid code point`);if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split(`=`)[0]).trim().replace(z,``)).length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function U(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function W(e){return e!=e}var G=function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},6877:function(e,t){var n={parseBuffer:function(e){return new r(e).parse()},addBoxProcessor:function(e,t){typeof e==`string`&&typeof t==`function`&&(i.prototype._boxProcessors[e]=t)},createFile:function(){return new r},createBox:function(e,t,n){var r=i.create(e);return t&&t.append(r,n),r},createFullBox:function(e,t,r){var i=n.createBox(e,t,r);return i.version=0,i.flags=0,i},Utils:{}};n.Utils.dataViewToString=function(e,t){var n=t||`utf-8`;if(typeof TextDecoder<`u`)return new TextDecoder(n).decode(e);var r=[],i=0;if(n===`utf-8`)for(;i<e.byteLength;){var o=e.getUint8(i++);o<128||(o<224?(o=(31&o)<<6,o|=63&e.getUint8(i++)):o<240?(o=(15&o)<<12,o|=(63&e.getUint8(i++))<<6,o|=63&e.getUint8(i++)):(o=(7&o)<<18,o|=(63&e.getUint8(i++))<<12,o|=(63&e.getUint8(i++))<<6,o|=63&e.getUint8(i++))),r.push(String.fromCharCode(o))}else for(;i<e.byteLength;)r.push(String.fromCharCode(e.getUint8(i++)));return r.join(``)},n.Utils.utf8ToByteArray=function(e){var t,n;if(typeof TextEncoder<`u`)t=new TextEncoder().encode(e);else for(t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?(t.push(192|r>>6),t.push(128|63&r)):r<65536?(t.push(224|r>>12),t.push(128|63&r>>6),t.push(128|63&r)):(t.push(240|r>>18),t.push(128|63&r>>12),t.push(128|63&r>>6),t.push(128|63&r))}return t},n.Utils.appendBox=function(e,t,n){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,n!==-1)if(n!=null){var r,i=-1;if(typeof n==`number`)i=n;else{if(typeof n==`string`)r=n;else{if(typeof n!=`object`||!n.type)return void e.boxes.push(t);r=n.type}for(var o=0;o<e.boxes.length;o++)if(r===e.boxes[o].type){i=o+1;break}}e.boxes.splice(i,0,t)}else e.boxes.push(t)},t.parseBuffer=n.parseBuffer,t.addBoxProcessor=n.addBoxProcessor,t.createFile=n.createFile,t.createBox=n.createBox,t.createFullBox=n.createFullBox,t.Utils=n.Utils,n.Cursor=function(e){this.offset=e===void 0?0:e};var r=function(e){this._cursor=new n.Cursor,this.boxes=[],e&&(this._raw=new DataView(e))};r.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},r.prototype.fetchAll=function(e,t){var n=[];return r._sweep.call(this,e,n,t),n},r.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=i.parse(this);if(e.type===void 0)break;this.boxes.push(e)}return this},r._sweep=function(e,t,n){for(var i in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&n)return;r._sweep.call(this.boxes[i],e,t,n)}},r.prototype.write=function(){var e,t=0;for(e=0;e<this.boxes.length;e++)t+=this.boxes[e].getLength(!1);var n=new Uint8Array(t);for(this._rawo=new DataView(n.buffer),this.bytes=n,this._cursor.offset=0,e=0;e<this.boxes.length;e++)this.boxes[e].write();return n.buffer},r.prototype.append=function(e,t){n.Utils.appendBox(this,e,t)};var i=function(){this._cursor=new n.Cursor};i.parse=function(e){var t=new i;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},i.create=function(e){var t=new i;return t.type=e,t.boxes=[],t},i.prototype._boxContainers=[`dinf`,`edts`,`mdia`,`meco`,`mfra`,`minf`,`moof`,`moov`,`mvex`,`stbl`,`strk`,`traf`,`trak`,`tref`,`udta`,`vttc`,`sinf`,`schi`,`encv`,`enca`,`meta`,`grpl`,`prsl`],i.prototype._boxProcessors={},i.prototype._procField=function(e,t,n){this._parsing?this[e]=this._readField(t,n):this._writeField(t,n,this[e])},i.prototype._procFieldArray=function(e,t,n,r){var i;if(this._parsing)for(this[e]=[],i=0;i<t;i++)this[e][i]=this._readField(n,r);else for(i=0;i<this[e].length;i++)this._writeField(n,r,this[e][i])},i.prototype._procFullBox=function(){this._procField(`version`,`uint`,8),this._procField(`flags`,`uint`,24)},i.prototype._procEntries=function(e,t,n){var r;if(this._parsing)for(this[e]=[],r=0;r<t;r++)this[e].push({}),n.call(this,this[e][r]);else for(r=0;r<t;r++)n.call(this,this[e][r])},i.prototype._procSubEntries=function(e,t,n,r){var i;if(this._parsing)for(e[t]=[],i=0;i<n;i++)e[t].push({}),r.call(this,e[t][i]);else for(i=0;i<n;i++)r.call(this,e[t][i])},i.prototype._procEntryField=function(e,t,n,r){this._parsing?e[t]=this._readField(n,r):this._writeField(n,r,e[t])},i.prototype._procSubBoxes=function(e,t){var n;if(this._parsing)for(this[e]=[],n=0;n<t;n++)this[e].push(i.parse(this));else for(n=0;n<t;n++)this._rawo?this[e][n].write():this.size+=this[e][n].getLength()},i.prototype._readField=function(e,t){switch(e){case`uint`:return this._readUint(t);case`int`:return this._readInt(t);case`template`:return this._readTemplate(t);case`string`:return t===-1?this._readTerminatedString():this._readString(t);case`data`:return this._readData(t);case`utf8`:return this._readUTF8String();case`utf8string`:return this._readUTF8TerminatedString();default:return-1}},i.prototype._readInt=function(e){var t=null,n=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:t=this._raw.getInt8(n);break;case 16:t=this._raw.getInt16(n);break;case 32:t=this._raw.getInt32(n);break;case 64:var r=this._raw.getInt32(n),i=this._raw.getInt32(n+4);t=r*2**32+i}return this._cursor.offset+=e>>3,t},i.prototype._readUint=function(e){var t,n,r=null,i=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:r=this._raw.getUint8(i);break;case 16:r=this._raw.getUint16(i);break;case 24:r=((t=this._raw.getUint16(i))<<8)+(n=this._raw.getUint8(i+2));break;case 32:r=this._raw.getUint32(i);break;case 64:t=this._raw.getUint32(i),n=this._raw.getUint32(i+4),r=t*2**32+n}return this._cursor.offset+=e>>3,r},i.prototype._readString=function(e){for(var t=``,n=0;n<e;n++){var r=this._readUint(8);t+=String.fromCharCode(r)}return t},i.prototype._readTemplate=function(e){return this._readUint(e/2)+this._readUint(e/2)/2**(e/2)},i.prototype._readTerminatedString=function(){for(var e=``;this._cursor.offset-this._offset<this._raw.byteLength;){var t=this._readUint(8);if(t===0)break;e+=String.fromCharCode(t)}return e},i.prototype._readData=function(e){var t=e>0?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(t>0){var n=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,n}return null},i.prototype._readUTF8String=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;return e>0&&(t=new DataView(this._raw.buffer,this._cursor.offset,e),this._cursor.offset+=e),t&&n.Utils.dataViewToString(t)},i.prototype._readUTF8TerminatedString=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;if(e>0){var r;for(t=new DataView(this._raw.buffer,this._cursor.offset,e),r=0;r<e&&t.getUint8(r)!==0;r++);t=new DataView(this._raw.buffer,this._cursor.offset,r),this._cursor.offset+=Math.min(r+1,e)}return t&&n.Utils.dataViewToString(t)},i.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField(`size`,`uint`,32),this._procField(`type`,`string`,4),this.size===1&&this._procField(`largesize`,`uint`,64),this.type===`uuid`&&this._procFieldArray(`usertype`,16,`uint`,8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)===-1?this._data=this._readData():this._parseContainerBox())}},i.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},i.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(i.parse(this))},i.prototype.append=function(e,t){n.Utils.appendBox(this,e,t)},i.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField(`size`,`uint`,32),this._procField(`type`,`string`,4),this.size===1&&this._procField(`largesize`,`uint`,64),this.type===`uuid`&&this._procFieldArray(`usertype`,16,`uint`,8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1)for(var e=0;e<this.boxes.length;e++)this.size+=this.boxes[e].getLength();return this._data&&this._writeData(this._data),this.size},i.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField(`size`,`uint`,32),this._procField(`type`,`string`,4),this.size===1&&this._procField(`largesize`,`uint`,64),this.type===`uuid`&&this._procFieldArray(`usertype`,16,`uint`,8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1)for(var e=0;e<this.boxes.length;e++)this.boxes[e].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},i.prototype._writeInt=function(e,t){if(this._rawo){var n=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setInt8(n,t);break;case 16:this._rawo.setInt16(n,t);break;case 32:this._rawo.setInt32(n,t);break;case 64:var r=Math.floor(t/2**32),i=t-r*2**32;this._rawo.setUint32(n,r),this._rawo.setUint32(n+4,i)}this._cursor.offset+=e>>3}else this.size+=e>>3},i.prototype._writeUint=function(e,t){if(this._rawo){var n,r,i=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(i,t);break;case 16:this._rawo.setUint16(i,t);break;case 24:n=(16776960&t)>>8,r=255&t,this._rawo.setUint16(i,n),this._rawo.setUint8(i+2,r);break;case 32:this._rawo.setUint32(i,t);break;case 64:r=t-(n=Math.floor(t/2**32))*2**32,this._rawo.setUint32(i,n),this._rawo.setUint32(i+4,r)}this._cursor.offset+=e>>3}else this.size+=e>>3},i.prototype._writeString=function(e,t){for(var n=0;n<e;n++)this._writeUint(8,t.charCodeAt(n))},i.prototype._writeTerminatedString=function(e){if(e.length!==0){for(var t=0;t<e.length;t++)this._writeUint(8,e.charCodeAt(t));this._writeUint(8,0)}},i.prototype._writeTemplate=function(e,t){var n=Math.floor(t),r=(t-n)*2**(e/2);this._writeUint(e/2,n),this._writeUint(e/2,r)},i.prototype._writeData=function(e){if(e)if(this._rawo){if(e instanceof Array){for(var t=this._cursor.offset-this._rawo.byteOffset,n=0;n<e.length;n++)this._rawo.setInt8(t+n,e[n]);this._cursor.offset+=e.length}e instanceof Uint8Array&&(this._root.bytes.set(e,this._cursor.offset),this._cursor.offset+=e.length)}else this.size+=e.length},i.prototype._writeUTF8String=function(e){var t=n.Utils.utf8ToByteArray(e);if(this._rawo)for(var r=new DataView(this._rawo.buffer,this._cursor.offset,t.length),i=0;i<t.length;i++)r.setUint8(i,t[i]);else this.size+=t.length},i.prototype._writeField=function(e,t,n){switch(e){case`uint`:this._writeUint(t,n);break;case`int`:this._writeInt(t,n);break;case`template`:this._writeTemplate(t,n);break;case`string`:t==-1?this._writeTerminatedString(n):this._writeString(t,n);break;case`data`:this._writeData(n);break;case`utf8`:this._writeUTF8String(n)}},i.prototype._boxProcessors.ardi=function(){this._procFullBox(),this._procField(`audio_rendering_indication`,`uint`,8)},i.prototype._boxProcessors.avc1=i.prototype._boxProcessors.avc2=i.prototype._boxProcessors.avc3=i.prototype._boxProcessors.avc4=i.prototype._boxProcessors.hvc1=i.prototype._boxProcessors.hev1=i.prototype._boxProcessors.encv=function(){this._procFieldArray(`reserved1`,6,`uint`,8),this._procField(`data_reference_index`,`uint`,16),this._procField(`pre_defined1`,`uint`,16),this._procField(`reserved2`,`uint`,16),this._procFieldArray(`pre_defined2`,3,`uint`,32),this._procField(`width`,`uint`,16),this._procField(`height`,`uint`,16),this._procField(`horizresolution`,`template`,32),this._procField(`vertresolution`,`template`,32),this._procField(`reserved3`,`uint`,32),this._procField(`frame_count`,`uint`,16),this._procFieldArray(`compressorname`,32,`uint`,8),this._procField(`depth`,`uint`,16),this._procField(`pre_defined3`,`int`,16),this._procField(`config`,`data`,-1)},i.prototype._boxProcessors.ctts=function(){this._procFullBox(),this._procField(`entry_count`,`uint`,32),this._procEntries(`entries`,this.entry_count,(function(e){this._procEntryField(e,`sample_count`,`uint`,32),this._procEntryField(e,`sample_offset`,this.version===1?`int`:`uint`,32)}))},i.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField(`entry_count`,`uint`,32),this._procSubBoxes(`entries`,this.entry_count)},i.prototype._boxProcessors.elng=function(){this._procFullBox(),this._procField(`extended_language`,`utf8string`)},i.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField(`entry_count`,`uint`,32),this._procEntries(`entries`,this.entry_count,(function(e){this._procEntryField(e,`segment_duration`,`uint`,this.version===1?64:32),this._procEntryField(e,`media_time`,`int`,this.version===1?64:32),this._procEntryField(e,`media_rate_integer`,`int`,16),this._procEntryField(e,`media_rate_fraction`,`int`,16)}))},i.prototype._boxProcessors.emsg=function(){this._procFullBox(),this.version==1?(this._procField(`timescale`,`uint`,32),this._procField(`presentation_time`,`uint`,64),this._procField(`event_duration`,`uint`,32),this._procField(`id`,`uint`,32),this._procField(`scheme_id_uri`,`string`,-1),this._procField(`value`,`string`,-1)):(this._procField(`scheme_id_uri`,`string`,-1),this._procField(`value`,`string`,-1),this._procField(`timescale`,`uint`,32),this._procField(`presentation_time_delta`,`uint`,32),this._procField(`event_duration`,`uint`,32),this._procField(`id`,`uint`,32)),this._procField(`message_data`,`data`,-1)},i.prototype._boxProcessors.free=i.prototype._boxProcessors.skip=function(){this._procField(`data`,`data`,-1)},i.prototype._boxProcessors.frma=function(){this._procField(`data_format`,`uint`,32)},i.prototype._boxProcessors.ftyp=i.prototype._boxProcessors.styp=function(){this._procField(`major_brand`,`string`,4),this._procField(`minor_version`,`uint`,32);var e=-1;this._parsing&&(e=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray(`compatible_brands`,e,`string`,4)},i.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField(`pre_defined`,`uint`,32),this._procField(`handler_type`,`string`,4),this._procFieldArray(`reserved`,3,`uint`,32),this._procField(`name`,`string`,-1)},i.prototype._boxProcessors.imda=function(){this._procField(`imda_identifier`,`uint`,32),this._procField(`data`,`data`,-1)},i.prototype._boxProcessors.kind=function(){this._procFullBox(),this._procField(`schemeURI`,`utf8string`),this._procField(`value`,`utf8string`)},i.prototype._boxProcessors.labl=function(){this._procFullBox(),this.is_group_label=!!(1&this.flags),this._procField(`label_id`,`uint`,16),this._procField(`language`,`utf8string`),this._procField(`label`,`utf8string`)},i.prototype._boxProcessors.mdat=function(){this._procField(`data`,`data`,-1)},i.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField(`creation_time`,`uint`,this.version==1?64:32),this._procField(`modification_time`,`uint`,this.version==1?64:32),this._procField(`timescale`,`uint`,32),this._procField(`duration`,`uint`,this.version==1?64:32),this._parsing||typeof this.language!=`string`||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField(`language`,`uint`,16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField(`pre_defined`,`uint`,16)},i.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField(`fragment_duration`,`uint`,this.version==1?64:32)},i.prototype._boxProcessors.meta=function(){this._procFullBox()},i.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField(`sequence_number`,`uint`,32)},i.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField(`mfra_size`,`uint`,32)},i.prototype._boxProcessors.mp4a=i.prototype._boxProcessors.enca=function(){this._procFieldArray(`reserved1`,6,`uint`,8),this._procField(`data_reference_index`,`uint`,16),this._procFieldArray(`reserved2`,2,`uint`,32),this._procField(`channelcount`,`uint`,16),this._procField(`samplesize`,`uint`,16),this._procField(`pre_defined`,`uint`,16),this._procField(`reserved3`,`uint`,16),this._procField(`samplerate`,`template`,32),this._procField(`esds`,`data`,-1)},i.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField(`creation_time`,`uint`,this.version==1?64:32),this._procField(`modification_time`,`uint`,this.version==1?64:32),this._procField(`timescale`,`uint`,32),this._procField(`duration`,`uint`,this.version==1?64:32),this._procField(`rate`,`template`,32),this._procField(`volume`,`template`,16),this._procField(`reserved1`,`uint`,16),this._procFieldArray(`reserved2`,2,`uint`,32),this._procFieldArray(`matrix`,9,`template`,32),this._procFieldArray(`pre_defined`,6,`uint`,32),this._procField(`next_track_ID`,`uint`,32)},i.prototype._boxProcessors.payl=function(){this._procField(`cue_text`,`utf8`)},i.prototype._boxProcessors.prft=function(){this._procFullBox(),this._procField(`reference_track_ID`,`uint`,32),this._procField(`ntp_timestamp_sec`,`uint`,32),this._procField(`ntp_timestamp_frac`,`uint`,32),this._procField(`media_time`,`uint`,this.version==1?64:32)},i.prototype._boxProcessors.prsl=function(){this._procFullBox(),this._procField(`group_id`,`uint`,32),this._procField(`num_entities_in_group`,`uint`,32),this._procEntries(`entities`,this.num_entities_in_group,(function(e){this._procEntryField(e,`entity_id`,`uint`,32)})),4096&this.flags&&this._procField(`preselection_tag`,`utf8string`),8192&this.flags&&this._procField(`selection_priority`,`uint`,8),16384&this.flags&&this._procField(`interleaving_tag`,`utf8string`)},i.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray(`SystemID`,16,`uint`,8),this._procField(`DataSize`,`uint`,32),this._procFieldArray(`Data`,this.DataSize,`uint`,8)},i.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField(`scheme_type`,`uint`,32),this._procField(`scheme_version`,`uint`,32),1&this.flags&&this._procField(`scheme_uri`,`string`,-1)},i.prototype._boxProcessors.sdtp=function(){this._procFullBox();var e=-1;this._parsing&&(e=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray(`sample_dependency_table`,e,`uint`,8)},i.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField(`reference_ID`,`uint`,32),this._procField(`timescale`,`uint`,32),this._procField(`earliest_presentation_time`,`uint`,this.version==1?64:32),this._procField(`first_offset`,`uint`,this.version==1?64:32),this._procField(`reserved`,`uint`,16),this._procField(`reference_count`,`uint`,16),this._procEntries(`references`,this.reference_count,(function(e){this._parsing||(e.reference=(1&e.reference_type)<<31,e.reference|=2147483647&e.referenced_size,e.sap=(1&e.starts_with_SAP)<<31,e.sap|=(3&e.SAP_type)<<28,e.sap|=268435455&e.SAP_delta_time),this._procEntryField(e,`reference`,`uint`,32),this._procEntryField(e,`subsegment_duration`,`uint`,32),this._procEntryField(e,`sap`,`uint`,32),this._parsing&&(e.reference_type=e.reference>>31&1,e.referenced_size=2147483647&e.reference,e.starts_with_SAP=e.sap>>31&1,e.SAP_type=e.sap>>28&7,e.SAP_delta_time=268435455&e.sap)}))},i.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField(`balance`,`uint`,16),this._procField(`reserved`,`uint`,16)},i.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField(`subsegment_count`,`uint`,32),this._procEntries(`subsegments`,this.subsegment_count,(function(e){this._procEntryField(e,`ranges_count`,`uint`,32),this._procSubEntries(e,`ranges`,e.ranges_count,(function(e){this._procEntryField(e,`level`,`uint`,8),this._procEntryField(e,`range_size`,`uint`,24)}))}))},i.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField(`entry_count`,`uint`,32),this._procSubBoxes(`entries`,this.entry_count)},i.prototype._boxProcessors.sttg=function(){this._procField(`settings`,`utf8`)},i.prototype._boxProcessors.stts=function(){this._procFullBox(),this._procField(`entry_count`,`uint`,32),this._procEntries(`entries`,this.entry_count,(function(e){this._procEntryField(e,`sample_count`,`uint`,32),this._procEntryField(e,`sample_delta`,`uint`,32)}))},i.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField(`entry_count`,`uint`,32),this._procEntries(`entries`,this.entry_count,(function(e){this._procEntryField(e,`sample_delta`,`uint`,32),this._procEntryField(e,`subsample_count`,`uint`,16),this._procSubEntries(e,`subsamples`,e.subsample_count,(function(e){this._procEntryField(e,`subsample_size`,`uint`,this.version===1?32:16),this._procEntryField(e,`subsample_priority`,`uint`,8),this._procEntryField(e,`discardable`,`uint`,8),this._procEntryField(e,`codec_specific_parameters`,`uint`,32)}))}))},i.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField(`default_IsEncrypted`,`uint`,24),this._procField(`default_IV_size`,`uint`,8),this._procFieldArray(`default_KID`,16,`uint`,8)},i.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField(`baseMediaDecodeTime`,`uint`,this.version==1?64:32)},i.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField(`track_ID`,`uint`,32),1&this.flags&&this._procField(`base_data_offset`,`uint`,64),2&this.flags&&this._procField(`sample_description_offset`,`uint`,32),8&this.flags&&this._procField(`default_sample_duration`,`uint`,32),16&this.flags&&this._procField(`default_sample_size`,`uint`,32),32&this.flags&&this._procField(`default_sample_flags`,`uint`,32)},i.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField(`track_ID`,`uint`,32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField(`reserved`,`uint`,32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField(`number_of_entry`,`uint`,32),this._procEntries(`entries`,this.number_of_entry,(function(e){this._procEntryField(e,`time`,`uint`,this.version===1?64:32),this._procEntryField(e,`moof_offset`,`uint`,this.version===1?64:32),this._procEntryField(e,`traf_number`,`uint`,8*(this.length_size_of_traf_num+1)),this._procEntryField(e,`trun_number`,`uint`,8*(this.length_size_of_trun_num+1)),this._procEntryField(e,`sample_number`,`uint`,8*(this.length_size_of_sample_num+1))}))},i.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField(`creation_time`,`uint`,this.version==1?64:32),this._procField(`modification_time`,`uint`,this.version==1?64:32),this._procField(`track_ID`,`uint`,32),this._procField(`reserved1`,`uint`,32),this._procField(`duration`,`uint`,this.version==1?64:32),this._procFieldArray(`reserved2`,2,`uint`,32),this._procField(`layer`,`uint`,16),this._procField(`alternate_group`,`uint`,16),this._procField(`volume`,`template`,16),this._procField(`reserved3`,`uint`,16),this._procFieldArray(`matrix`,9,`template`,32),this._procField(`width`,`template`,32),this._procField(`height`,`template`,32)},i.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField(`track_ID`,`uint`,32),this._procField(`default_sample_description_index`,`uint`,32),this._procField(`default_sample_duration`,`uint`,32),this._procField(`default_sample_size`,`uint`,32),this._procField(`default_sample_flags`,`uint`,32)},i.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField(`sample_count`,`uint`,32),1&this.flags&&this._procField(`data_offset`,`int`,32),4&this.flags&&this._procField(`first_sample_flags`,`uint`,32),this._procEntries(`samples`,this.sample_count,(function(e){256&this.flags&&this._procEntryField(e,`sample_duration`,`uint`,32),512&this.flags&&this._procEntryField(e,`sample_size`,`uint`,32),1024&this.flags&&this._procEntryField(e,`sample_flags`,`uint`,32),2048&this.flags&&this._procEntryField(e,`sample_composition_time_offset`,this.version===1?`int`:`uint`,32)}))},i.prototype._boxProcessors[`url `]=i.prototype._boxProcessors[`urn `]=function(){this._procFullBox(),this.type===`urn `&&this._procField(`name`,`string`,-1),this._procField(`location`,`string`,-1)},i.prototype._boxProcessors.vlab=function(){this._procField(`source_label`,`utf8`)},i.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField(`graphicsmode`,`uint`,16),this._procFieldArray(`opcolor`,3,`uint`,16)},i.prototype._boxProcessors.vttC=function(){this._procField(`config`,`utf8`)},i.prototype._boxProcessors.vtte=function(){}},9826:function(e){var t,n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}_(e,t,o,{once:!0}),t!==`error`&&function(e,t){typeof e.on==`function`&&_(e,`error`,t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}function u(e){return e._maxListeners===void 0?o.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,c,d;if(l(n),(o=e._events)===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),c=o[t]),c===void 0)c=o[t]=n,++e._eventsCount;else if(typeof c==`function`?c=o[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(i=u(e))>0&&c.length>i&&!c.warned){c.warned=!0;var f=Error(`Possible EventEmitter memory leak detected. `+c.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);f.name=`MaxListenersExceededWarning`,f.emitter=e,f.type=t,f.count=c.length,d=f,console&&console.warn&&console.warn(d)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else{if(typeof e.addEventListener!=`function`)throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||i(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),o.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||i(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,o=this._events;if(o!==void 0)i&&=o.error===void 0;else if(!i)return!1;if(i){var c;if(t.length>0&&(c=t[0]),c instanceof Error)throw c;var l=Error(`Unhandled error.`+(c?` (`+c.message+`)`:``));throw l.context=c,l}var u=o[e];if(u===void 0)return!1;if(typeof u==`function`)r(u,this,t);else{var d=u.length,f=g(u,d);for(n=0;n<d;++n)r(f[n],this,t)}return!0},o.prototype.addListener=function(e,t){return d(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return d(this,e,t,!0)},o.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,c;if(l(t),(r=this._events)===void 0||(n=r[e])===void 0)return this;if(n===t||n.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){c=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,c||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i,o=Object.keys(n);for(r=0;r<o.length;++r)(i=o[r])!==`removeListener`&&this.removeAllListeners(i);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=n[e])==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return m(this,e,!0)},o.prototype.rawListeners=function(e){return m(this,e,!1)},o.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7316:function(e){e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;i--!=0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;i--!=0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!=0;){var c=o[i];if(!e(t[c],n[c]))return!1}return!0}return t!=t&&n!=n}},7986:function(e,t){t.read=function(e,t,n,r,i){var o,c,l=8*i-r-1,u=(1<<l)-1,d=u>>1,f=-7,p=n?i-1:0,m=n?-1:1,h=e[t+p];for(p+=m,o=h&(1<<-f)-1,h>>=-f,f+=l;f>0;o=256*o+e[t+p],p+=m,f-=8);for(c=o&(1<<-f)-1,o>>=-f,f+=r;f>0;c=256*c+e[t+p],p+=m,f-=8);if(o===0)o=1-d;else{if(o===u)return c?NaN:1/0*(h?-1:1);c+=2**r,o-=d}return(h?-1:1)*c*2**(o-r)},t.write=function(e,t,n,r,i,o){var c,l,u,d=8*o-i-1,f=(1<<d)-1,p=f>>1,m=i===23?2**-24-2**-77:0,h=r?0:o-1,g=r?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,c=f):(c=Math.floor(Math.log(t)/Math.LN2),t*(u=2**-c)<1&&(c--,u*=2),(t+=c+p>=1?m/u:m*2**(1-p))*u>=2&&(c++,u/=2),c+p>=f?(l=0,c=f):c+p>=1?(l=(t*u-1)*2**i,c+=p):(l=t*2**(p-1)*2**i,c=0));i>=8;e[n+h]=255&l,h+=g,l/=256,i-=8);for(c=c<<i|l,d+=i;d>0;e[n+h]=255&c,h+=g,c/=256,d-=8);e[n+h-g]|=128*_}},5474:function(e,t,n){(function(e){e.parser=function(e,t){return new i(e,t)},e.SAXParser=i,e.SAXStream=c,e.createStream=function(e,t){return new c(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,r=[`comment`,`sgmlDecl`,`textNode`,`tagName`,`doctype`,`procInstName`,`procInstBody`,`entity`,`attribName`,`attribValue`,`cdata`,`script`];function i(t,n){if(!(this instanceof i))return new i(t,n);var o=this;(function(e){for(var t=0,n=r.length;t<n;t++)e[r[t]]=``})(o),o.q=o.c=``,o.bufferCheckPosition=e.MAX_BUFFER_LENGTH,o.opt=n||{},o.opt.lowercase=o.opt.lowercase||o.opt.lowercasetags,o.looseCase=o.opt.lowercase?`toLowerCase`:`toUpperCase`,o.tags=[],o.closed=o.closedRoot=o.sawRoot=!1,o.tag=o.error=null,o.strict=!!t,o.noscript=!(!t&&!o.opt.noscript),o.state=k.BEGIN,o.strictEntities=o.opt.strictEntities,o.ENTITIES=o.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),o.attribList=[],o.opt.xmlns&&(o.ns=Object.create(v)),o.trackPosition=!1!==o.opt.position,o.trackPosition&&(o.position=o.line=o.column=0),j(o,`onready`)}e.EVENTS=[`text`,`processinginstruction`,`sgmldeclaration`,`doctype`,`comment`,`opentagstart`,`attribute`,`opentag`,`closetag`,`opencdata`,`cdata`,`closecdata`,`error`,`end`,`ready`,`script`,`opennamespace`,`closenamespace`],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),i.prototype={end:function(){I(this)},write:function(t){var n=this;if(this.error)throw this.error;if(n.closed)return F(n,`Cannot write after close. Assign an onready handler.`);if(t===null)return I(n);typeof t==`object`&&(t=t.toString());for(var i=0,o=``;o=G(t,i++),n.c=o,o;)switch(n.trackPosition&&(n.position++,o===`
|
|
4
4
|
`?(n.line++,n.column=0):n.column++),n.state){case k.BEGIN:if(n.state=k.BEGIN_WHITESPACE,o===``)continue;W(n,o);continue;case k.BEGIN_WHITESPACE:W(n,o);continue;case k.TEXT:if(n.sawRoot&&!n.closedRoot){for(var c=i-1;o&&o!==`<`&&o!==`&`;)(o=G(t,i++))&&n.trackPosition&&(n.position++,o===`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as safeDefine } from "../safe-define-
|
|
2
|
-
import { t as MediaAttachMixin } from "../media-attach-mixin-
|
|
1
|
+
import { t as safeDefine } from "../safe-define-Bw8JF08z.js";
|
|
2
|
+
import { t as MediaAttachMixin } from "../media-attach-mixin-CkU58gjb.js";
|
|
3
3
|
import { t as MediaPropsMixin } from "../media-props-mixin-DxsM38Bx.js";
|
|
4
|
-
import { n as HlsMediaDelegate, t as HlsCustomMedia } from "../hls-
|
|
4
|
+
import { n as HlsMediaDelegate, t as HlsCustomMedia } from "../hls-DHwATYV2.js";
|
|
5
5
|
|
|
6
6
|
//#region src/media/hls-video/index.ts
|
|
7
7
|
var HlsVideo = class extends MediaPropsMixin(MediaAttachMixin(HlsCustomMedia), HlsMediaDelegate) {
|
package/cdn/media/hls-video.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"../safe-define-
|
|
1
|
+
import{t as e}from"../safe-define-t0AGOouq.js";import{t}from"../media-attach-mixin-ByJOWMNT.js";import{t as n}from"../media-props-mixin-BuVUebRp.js";import{n as r,t as i}from"../hls-CNDMNsEo.js";var a=class extends n(t(i),r){constructor(){super(),this.attach(this.target)}disconnectedCallback(){super.disconnectedCallback?.(),this.hasAttribute(`keep-alive`)||this.destroy()}};e(class extends a{static{this.tagName=`hls-video`}});
|
|
2
2
|
//# sourceMappingURL=hls-video.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as safeDefine } from "../safe-define-
|
|
2
|
-
import { t as DelegateMixin } from "../delegate-
|
|
3
|
-
import { t as MediaAttachMixin } from "../media-attach-mixin-
|
|
1
|
+
import { t as safeDefine } from "../safe-define-Bw8JF08z.js";
|
|
2
|
+
import { t as DelegateMixin } from "../delegate-AoR5Pt_6.js";
|
|
3
|
+
import { t as MediaAttachMixin } from "../media-attach-mixin-CkU58gjb.js";
|
|
4
4
|
import { n as CustomVideoElement, t as MediaPropsMixin } from "../media-props-mixin-DxsM38Bx.js";
|
|
5
|
-
import { n as HlsMediaDelegate, r as Hls } from "../hls-
|
|
5
|
+
import { n as HlsMediaDelegate, r as Hls } from "../hls-DHwATYV2.js";
|
|
6
6
|
|
|
7
7
|
//#region ../core/dist/dev/dom/media/mux/env.js
|
|
8
8
|
const getEnvPlayerVersion = () => {
|
|
9
9
|
try {
|
|
10
|
-
return "10.0.0-beta.
|
|
10
|
+
return "10.0.0-beta.13";
|
|
11
11
|
} catch {}
|
|
12
12
|
return "UNKNOWN";
|
|
13
13
|
};
|