@taole/giftstage 0.1.4 → 0.1.5

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.
@@ -1,8 +1,8 @@
1
- var gB = (g) => {
1
+ var IB = (g) => {
2
2
  throw TypeError(g);
3
3
  };
4
- var En = (g, A, t) => A.has(g) || gB("Cannot " + t);
5
- var IB = (g, A, t) => (En(g, A, "read from private field"), t ? t.call(g) : A.get(g)), on = (g, A, t) => A.has(g) ? gB("Cannot add the same private member more than once") : A instanceof WeakSet ? A.add(g) : A.set(g, t), sB = (g, A, t, e) => (En(g, A, "write to private field"), e ? e.call(g, t) : A.set(g, t), t), hn = (g, A, t) => (En(g, A, "access private method"), t);
4
+ var on = (g, A, t) => A.has(g) || IB("Cannot " + t);
5
+ var sB = (g, A, t) => (on(g, A, "read from private field"), t ? t.call(g) : A.get(g)), hn = (g, A, t) => A.has(g) ? IB("Cannot add the same private member more than once") : A instanceof WeakSet ? A.add(g) : A.set(g, t), nB = (g, A, t, e) => (on(g, A, "write to private field"), e ? e.call(g, t) : A.set(g, t), t), cn = (g, A, t) => (on(g, A, "access private method"), t);
6
6
  const IQ = `#version 300 es
7
7
  precision highp float;
8
8
 
@@ -44,7 +44,7 @@ void main() {
44
44
  v_uv = mix(a_uvRect.xy, a_uvRect.zw, a_corner);
45
45
  v_color = vec4(1.0, 1.0, 1.0, a_translateAlpha.z);
46
46
  }
47
- `, nB = `#version 300 es
47
+ `, BB = `#version 300 es
48
48
  precision mediump float;
49
49
 
50
50
  uniform sampler2D u_atlas;
@@ -78,7 +78,7 @@ void main() {
78
78
  v_rgbUV = u_atlasRemap.xy + a_rgbUV * u_atlasRemap.zw;
79
79
  v_alphaUV = u_atlasRemap.xy + a_alphaUV * u_atlasRemap.zw;
80
80
  }
81
- `, BB = `#version 300 es
81
+ `, CB = `#version 300 es
82
82
  precision mediump float;
83
83
 
84
84
  uniform sampler2D u_video;
@@ -112,7 +112,7 @@ void main() {
112
112
  v_rgbUV = atlasUv;
113
113
  v_alphaUV = atlasUv + vec2(-0.5 * u_atlasRemap.z, 0.0);
114
114
  }
115
- `, CB = `#version 300 es
115
+ `, QB = `#version 300 es
116
116
  precision mediump float;
117
117
 
118
118
  uniform sampler2D u_video;
@@ -557,12 +557,12 @@ fn fs(f: VOut) -> @location(0) vec4f {\r
557
557
  return c;\r
558
558
  }\r
559
559
  `, Y = {
560
- svgaBatch: { vert: IQ, frag: nB },
561
- svgaInstanced: { vert: sQ, frag: nB },
562
- vap: { vert: nQ, frag: BB },
563
- vapInstanced: { vert: rQ, frag: BB },
564
- alphaVideo: { vert: BQ, frag: CB },
565
- alphaVideoInstanced: { vert: aQ, frag: CB },
560
+ svgaBatch: { vert: IQ, frag: BB },
561
+ svgaInstanced: { vert: sQ, frag: BB },
562
+ vap: { vert: nQ, frag: CB },
563
+ vapInstanced: { vert: rQ, frag: CB },
564
+ alphaVideo: { vert: BQ, frag: QB },
565
+ alphaVideoInstanced: { vert: aQ, frag: QB },
566
566
  rgbaTextured: { vert: CQ, frag: QQ },
567
567
  clipMask: { vert: EQ, frag: oQ }
568
568
  }, lA = {
@@ -1599,7 +1599,7 @@ G(O, "INSTANCED_ALPHA_CHUNK_BYTES", O.ALPHA_INSTANCED_MAX * O.ALPHA_INSTANCED_ST
1599
1599
  G(O, "INSTANCED_VAP_CHUNK_BYTES", O.VAP_INSTANCED_MAX * O.VAP_INSTANCED_STRIDE);
1600
1600
  G(O, "INSTANCED_STORAGE_RING_SLOTS", 512);
1601
1601
  let SQ = O;
1602
- function QB(g, A, t) {
1602
+ function aB(g, A, t) {
1603
1603
  const e = g.createShader(A);
1604
1604
  if (!e) throw new Error("Failed to create shader");
1605
1605
  if (g.shaderSource(e, t), g.compileShader(e), !g.getShaderParameter(e, g.COMPILE_STATUS)) {
@@ -1609,7 +1609,7 @@ function QB(g, A, t) {
1609
1609
  return e;
1610
1610
  }
1611
1611
  function yA(g, A, t) {
1612
- const e = QB(g, g.VERTEX_SHADER, A), i = QB(g, g.FRAGMENT_SHADER, t), I = g.createProgram();
1612
+ const e = aB(g, g.VERTEX_SHADER, A), i = aB(g, g.FRAGMENT_SHADER, t), I = g.createProgram();
1613
1613
  if (!I)
1614
1614
  throw g.deleteShader(e), g.deleteShader(i), new Error("Failed to create program");
1615
1615
  if (g.attachShader(I, e), g.attachShader(I, i), g.linkProgram(I), !g.getProgramParameter(I, g.LINK_STATUS)) {
@@ -1618,7 +1618,7 @@ function yA(g, A, t) {
1618
1618
  }
1619
1619
  return g.deleteShader(e), g.deleteShader(i), I;
1620
1620
  }
1621
- function aB(g, A = g.LINEAR, t = g.CLAMP_TO_EDGE) {
1621
+ function rB(g, A = g.LINEAR, t = g.CLAMP_TO_EDGE) {
1622
1622
  const e = g.createTexture();
1623
1623
  if (!e) throw new Error("Failed to create texture");
1624
1624
  return g.bindTexture(g.TEXTURE_2D, e), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MIN_FILTER, A), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MAG_FILTER, A), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_S, t), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_T, t), e;
@@ -1737,7 +1737,7 @@ const oA = class MA {
1737
1737
  }
1738
1738
  createTexture(A, t) {
1739
1739
  var e, i;
1740
- const I = this.gl, s = t.filter === "nearest" ? I.NEAREST : I.LINEAR, n = aB(I, s);
1740
+ const I = this.gl, s = t.filter === "nearest" ? I.NEAREST : I.LINEAR, n = rB(I, s);
1741
1741
  let B = (e = t.width) != null ? e : 1, C = (i = t.height) != null ? i : 1;
1742
1742
  if (A instanceof ArrayBuffer)
1743
1743
  I.texImage2D(
@@ -1759,7 +1759,7 @@ const oA = class MA {
1759
1759
  return this.textures.set(Q, { texture: n, width: B, height: C }), { id: Q, width: B, height: C };
1760
1760
  }
1761
1761
  createEmptyTexture(A, t, e = {}) {
1762
- const i = this.gl, I = e.filter === "nearest" ? i.NEAREST : i.LINEAR, s = aB(i, I), n = Math.max(1, Math.floor(A)), B = Math.max(1, Math.floor(t));
1762
+ const i = this.gl, I = e.filter === "nearest" ? i.NEAREST : i.LINEAR, s = rB(i, I), n = Math.max(1, Math.floor(A)), B = Math.max(1, Math.floor(t));
1763
1763
  i.bindTexture(i.TEXTURE_2D, s), i.texImage2D(i.TEXTURE_2D, 0, i.RGBA, n, B, 0, i.RGBA, i.UNSIGNED_BYTE, null);
1764
1764
  const C = this.nextId++;
1765
1765
  return this.textures.set(C, { texture: s, width: n, height: B }), { id: C, width: n, height: B };
@@ -2062,7 +2062,7 @@ function MQ(g, A) {
2062
2062
  let t = g.replace(/^#version\s+300\s+es\s*/m, "");
2063
2063
  return A === "vertex" ? (t = t.replace(/layout\s*\(location\s*=\s*\d+\)\s*in\s+/g, "attribute "), t = t.replace(/\bout\s+/g, "varying ")) : (t = t.replace(/\bin\s+/g, "varying "), t = t.replace(/out\s+vec4\s+fragColor\s*;\s*/g, ""), t = t.replace(/\bfragColor\b/g, "gl_FragColor"), t = t.replace(/\btexture\s*\(/g, "texture2D(")), t;
2064
2064
  }
2065
- function rB(g, A, t, e) {
2065
+ function EB(g, A, t, e) {
2066
2066
  const i = g.createShader(A);
2067
2067
  if (!i) throw new Error("Failed to create shader");
2068
2068
  if (g.shaderSource(i, MQ(t, e)), g.compileShader(i), !g.getShaderParameter(i, g.COMPILE_STATUS)) {
@@ -2072,7 +2072,7 @@ function rB(g, A, t, e) {
2072
2072
  return i;
2073
2073
  }
2074
2074
  function Bs(g, A, t, e) {
2075
- const i = rB(g, g.VERTEX_SHADER, A, "vertex"), I = rB(g, g.FRAGMENT_SHADER, t, "fragment"), s = g.createProgram();
2075
+ const i = EB(g, g.VERTEX_SHADER, A, "vertex"), I = EB(g, g.FRAGMENT_SHADER, t, "fragment"), s = g.createProgram();
2076
2076
  if (!s)
2077
2077
  throw g.deleteShader(i), g.deleteShader(I), new Error("Failed to create program");
2078
2078
  g.attachShader(s, i), g.attachShader(s, I);
@@ -2084,12 +2084,12 @@ function Bs(g, A, t, e) {
2084
2084
  }
2085
2085
  return g.deleteShader(i), g.deleteShader(I), s;
2086
2086
  }
2087
- function EB(g, A = g.LINEAR, t = g.CLAMP_TO_EDGE) {
2087
+ function oB(g, A = g.LINEAR, t = g.CLAMP_TO_EDGE) {
2088
2088
  const e = g.createTexture();
2089
2089
  if (!e) throw new Error("Failed to create texture");
2090
2090
  return g.bindTexture(g.TEXTURE_2D, e), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MIN_FILTER, A), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MAG_FILTER, A), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_S, t), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_T, t), e;
2091
2091
  }
2092
- class oB {
2092
+ class hB {
2093
2093
  constructor(A, t = !0) {
2094
2094
  AA(this, "type", "webgl1"), AA(this, "canvas"), AA(this, "antialias"), AA(this, "gl"), AA(this, "nextId", 1), AA(this, "buffers", /* @__PURE__ */ new Map()), AA(this, "textures", /* @__PURE__ */ new Map()), AA(this, "programs", /* @__PURE__ */ new Map()), AA(this, "cachedDrawProgram", null), AA(this, "cachedTex0Id", null), AA(this, "cachedProjectionRef", null), AA(this, "cachedProjectionShader", null), AA(this, "videoUploadCanvas", null), AA(this, "videoUploadCtx", null), AA(this, "supportsUintIndices", !1), this.canvas = A, this.antialias = t;
2095
2095
  }
@@ -2221,7 +2221,7 @@ class oB {
2221
2221
  }
2222
2222
  createTexture(A, t) {
2223
2223
  var e, i;
2224
- const I = this.gl, s = t.filter === "nearest" ? I.NEAREST : I.LINEAR, n = EB(I, s);
2224
+ const I = this.gl, s = t.filter === "nearest" ? I.NEAREST : I.LINEAR, n = oB(I, s);
2225
2225
  let B = (e = t.width) != null ? e : 1, C = (i = t.height) != null ? i : 1;
2226
2226
  A instanceof ArrayBuffer ? I.texImage2D(
2227
2227
  I.TEXTURE_2D,
@@ -2238,7 +2238,7 @@ class oB {
2238
2238
  return this.textures.set(Q, { texture: n, width: B, height: C }), { id: Q, width: B, height: C };
2239
2239
  }
2240
2240
  createEmptyTexture(A, t, e = {}) {
2241
- const i = this.gl, I = e.filter === "nearest" ? i.NEAREST : i.LINEAR, s = EB(i, I), n = Math.max(1, Math.floor(A)), B = Math.max(1, Math.floor(t));
2241
+ const i = this.gl, I = e.filter === "nearest" ? i.NEAREST : i.LINEAR, s = oB(i, I), n = Math.max(1, Math.floor(A)), B = Math.max(1, Math.floor(t));
2242
2242
  i.bindTexture(i.TEXTURE_2D, s), i.texImage2D(i.TEXTURE_2D, 0, i.RGBA, n, B, 0, i.RGBA, i.UNSIGNED_BYTE, null);
2243
2243
  const C = this.nextId++;
2244
2244
  return this.textures.set(C, { texture: s, width: n, height: B }), { id: C, width: n, height: B };
@@ -2385,7 +2385,7 @@ function bQ() {
2385
2385
  async function kQ(g, A = !0, t = !0, e = !1) {
2386
2386
  const i = t != null ? t : !1, I = t != null ? t : !0;
2387
2387
  if (e) {
2388
- const n = new oB(g, I);
2388
+ const n = new hB(g, I);
2389
2389
  return await n.init(), n;
2390
2390
  }
2391
2391
  if (A && typeof navigator != "undefined" && "gpu" in navigator && qB())
@@ -2416,7 +2416,7 @@ async function kQ(g, A = !0, t = !0, e = !1) {
2416
2416
  `[GiftStage] WebGL2 init failed: ${n instanceof Error ? n.message : String(n)}, fallback to WebGL1.`
2417
2417
  );
2418
2418
  }
2419
- const s = new oB(g, I);
2419
+ const s = new hB(g, I);
2420
2420
  return await s.init(), s;
2421
2421
  }
2422
2422
  function YQ(g, A) {
@@ -2430,11 +2430,11 @@ function ds(g) {
2430
2430
  sy: g.height / Math.max(1, t)
2431
2431
  };
2432
2432
  }
2433
- const SA = 13, NA = 9, VA = 4, fs = 6;
2434
- function cn(g, A, t) {
2435
- const e = Math.floor(g.length / SA), i = Math.floor(A.length / (VA * NA)), I = Math.floor(t.length / fs), s = Math.min(e, i, I);
2433
+ const SA = 13, NA = 9, WA = 4, fs = 6;
2434
+ function ln(g, A, t) {
2435
+ const e = Math.floor(g.length / SA), i = Math.floor(A.length / (WA * NA)), I = Math.floor(t.length / fs), s = Math.min(e, i, I);
2436
2436
  for (let n = 0; n < s; n++) {
2437
- const B = n * SA, C = g[B], Q = g[B + 1], a = g[B + 2], E = g[B + 3], r = g[B + 4], o = g[B + 5], h = g[B + 6], c = g[B + 7], f = g[B + 8], d = g[B + 9], u = g[B + 10], p = g[B + 11], D = g[B + 12], y = h, S = c, N = a * C + h, x = E * C + c, F = a * C + r * Q + h, M = E * C + o * Q + c, W = r * Q + h, v = o * Q + c, _ = n * VA * NA;
2437
+ const B = n * SA, C = g[B], Q = g[B + 1], a = g[B + 2], E = g[B + 3], r = g[B + 4], o = g[B + 5], h = g[B + 6], c = g[B + 7], f = g[B + 8], d = g[B + 9], u = g[B + 10], p = g[B + 11], D = g[B + 12], y = h, S = c, N = a * C + h, x = E * C + c, F = a * C + r * Q + h, M = E * C + o * Q + c, W = r * Q + h, v = o * Q + c, _ = n * WA * NA;
2438
2438
  A[_] = y, A[_ + 1] = S, A[_ + 2] = 0, A[_ + 3] = 1, A[_ + 4] = 1, A[_ + 5] = 1, A[_ + 6] = f, A[_ + 7] = d, A[_ + 8] = u;
2439
2439
  const K = _ + NA;
2440
2440
  A[K] = N, A[K + 1] = x, A[K + 2] = 0, A[K + 3] = 1, A[K + 4] = 1, A[K + 5] = 1, A[K + 6] = f, A[K + 7] = p, A[K + 8] = u;
@@ -2442,26 +2442,26 @@ function cn(g, A, t) {
2442
2442
  A[b] = F, A[b + 1] = M, A[b + 2] = 0, A[b + 3] = 1, A[b + 4] = 1, A[b + 5] = 1, A[b + 6] = f, A[b + 7] = p, A[b + 8] = D;
2443
2443
  const j = _ + 3 * NA;
2444
2444
  A[j] = W, A[j + 1] = v, A[j + 2] = 0, A[j + 3] = 1, A[j + 4] = 1, A[j + 5] = 1, A[j + 6] = f, A[j + 7] = d, A[j + 8] = D;
2445
- const tA = n * fs, z = n * VA;
2445
+ const tA = n * fs, z = n * WA;
2446
2446
  t[tA] = z, t[tA + 1] = z + 1, t[tA + 2] = z + 2, t[tA + 3] = z, t[tA + 4] = z + 2, t[tA + 5] = z + 3;
2447
2447
  }
2448
2448
  return s;
2449
2449
  }
2450
2450
  function _Q(g, A, t) {
2451
- const e = cB(g, k.__wbindgen_malloc), i = aA;
2452
- var I = cB(A, k.__wbindgen_malloc), s = aA, n = KQ(t, k.__wbindgen_malloc), B = aA;
2451
+ const e = lB(g, k.__wbindgen_malloc), i = aA;
2452
+ var I = lB(A, k.__wbindgen_malloc), s = aA, n = KQ(t, k.__wbindgen_malloc), B = aA;
2453
2453
  return k.build_batch_vertices(e, i, I, s, A, n, B, t) >>> 0;
2454
2454
  }
2455
2455
  function LQ(g) {
2456
2456
  const A = jB(g, k.__wbindgen_malloc), t = aA, e = k.decode_svga(A, t);
2457
2457
  if (e[2])
2458
- throw Hn(e[1]);
2459
- return Hn(e[0]);
2458
+ throw vn(e[1]);
2459
+ return vn(e[0]);
2460
2460
  }
2461
2461
  function JQ(g) {
2462
2462
  const A = jB(g, k.__wbindgen_malloc), t = aA, e = k.inflate(A, t);
2463
2463
  if (e[3])
2464
- throw Hn(e[2]);
2464
+ throw vn(e[2]);
2465
2465
  var i = WB(e[0], e[1]).slice();
2466
2466
  return k.__wbindgen_free(e[0], e[1] * 1, 1), i;
2467
2467
  }
@@ -2474,11 +2474,11 @@ function VB() {
2474
2474
  "./gift_stage_wasm_bg.js": {
2475
2475
  __proto__: null,
2476
2476
  __wbg_Error_2e59b1b37a9a34c3: function(A, t) {
2477
- return Error(ln(A, t));
2477
+ return Error(dn(A, t));
2478
2478
  },
2479
2479
  __wbg_String_8564e559799eccda: function(A, t) {
2480
2480
  const e = String(t), i = TQ(e, k.__wbindgen_malloc, k.__wbindgen_realloc), I = aA;
2481
- hB().setInt32(A + 4, I, !0), hB().setInt32(A + 0, i, !0);
2481
+ cB().setInt32(A + 4, I, !0), cB().setInt32(A + 0, i, !0);
2482
2482
  },
2483
2483
  __wbg___wbindgen_copy_to_typed_array_a4db337751e0b328: function(A, t, e) {
2484
2484
  new Uint8Array(e.buffer, e.byteOffset, e.byteLength).set(WB(A, t));
@@ -2487,7 +2487,7 @@ function VB() {
2487
2487
  return typeof A == "string";
2488
2488
  },
2489
2489
  __wbg___wbindgen_throw_81fc77679af83bc6: function(A, t) {
2490
- throw new Error(ln(A, t));
2490
+ throw new Error(dn(A, t));
2491
2491
  },
2492
2492
  __wbg_new_4f9fafbb3909af72: function() {
2493
2493
  return new Object();
@@ -2511,7 +2511,7 @@ function VB() {
2511
2511
  return A;
2512
2512
  },
2513
2513
  __wbindgen_cast_0000000000000002: function(A, t) {
2514
- return ln(A, t);
2514
+ return dn(A, t);
2515
2515
  },
2516
2516
  __wbindgen_init_externref_table: function() {
2517
2517
  const A = k.__wbindgen_externrefs, t = A.grow(4);
@@ -2521,17 +2521,17 @@ function VB() {
2521
2521
  };
2522
2522
  }
2523
2523
  function WB(g, A) {
2524
- return g = g >>> 0, WA().subarray(g / 1, g / 1 + A);
2524
+ return g = g >>> 0, jA().subarray(g / 1, g / 1 + A);
2525
2525
  }
2526
2526
  let bA = null;
2527
- function hB() {
2527
+ function cB() {
2528
2528
  return (bA === null || bA.buffer.detached === !0 || bA.buffer.detached === void 0 && bA.buffer !== k.memory.buffer) && (bA = new DataView(k.memory.buffer)), bA;
2529
2529
  }
2530
2530
  let rs = null;
2531
2531
  function HQ() {
2532
2532
  return (rs === null || rs.byteLength === 0) && (rs = new Float32Array(k.memory.buffer)), rs;
2533
2533
  }
2534
- function ln(g, A) {
2534
+ function dn(g, A) {
2535
2535
  return g = g >>> 0, ZQ(g, A);
2536
2536
  }
2537
2537
  let Es = null;
@@ -2539,7 +2539,7 @@ function vQ() {
2539
2539
  return (Es === null || Es.byteLength === 0) && (Es = new Uint32Array(k.memory.buffer)), Es;
2540
2540
  }
2541
2541
  let os = null;
2542
- function WA() {
2542
+ function jA() {
2543
2543
  return (os === null || os.byteLength === 0) && (os = new Uint8Array(k.memory.buffer)), os;
2544
2544
  }
2545
2545
  function KQ(g, A) {
@@ -2548,19 +2548,19 @@ function KQ(g, A) {
2548
2548
  }
2549
2549
  function jB(g, A) {
2550
2550
  const t = A(g.length * 1, 1) >>> 0;
2551
- return WA().set(g, t / 1), aA = g.length, t;
2551
+ return jA().set(g, t / 1), aA = g.length, t;
2552
2552
  }
2553
- function cB(g, A) {
2553
+ function lB(g, A) {
2554
2554
  const t = A(g.length * 4, 4) >>> 0;
2555
2555
  return HQ().set(g, t / 4), aA = g.length, t;
2556
2556
  }
2557
2557
  function TQ(g, A, t) {
2558
2558
  if (t === void 0) {
2559
2559
  const n = us.encode(g), B = A(n.length, 1) >>> 0;
2560
- return WA().subarray(B, B + n.length).set(n), aA = n.length, B;
2560
+ return jA().subarray(B, B + n.length).set(n), aA = n.length, B;
2561
2561
  }
2562
2562
  let e = g.length, i = A(e, 1) >>> 0;
2563
- const I = WA();
2563
+ const I = jA();
2564
2564
  let s = 0;
2565
2565
  for (; s < e; s++) {
2566
2566
  const n = g.charCodeAt(s);
@@ -2569,21 +2569,21 @@ function TQ(g, A, t) {
2569
2569
  }
2570
2570
  if (s !== e) {
2571
2571
  s !== 0 && (g = g.slice(s)), i = t(i, e, e = s + g.length * 3, 1) >>> 0;
2572
- const n = WA().subarray(i + s, i + e), B = us.encodeInto(g, n);
2572
+ const n = jA().subarray(i + s, i + e), B = us.encodeInto(g, n);
2573
2573
  s += B.written, i = t(i, e, s, 1) >>> 0;
2574
2574
  }
2575
2575
  return aA = s, i;
2576
2576
  }
2577
- function Hn(g) {
2577
+ function vn(g) {
2578
2578
  const A = k.__wbindgen_externrefs.get(g);
2579
2579
  return k.__externref_table_dealloc(g), A;
2580
2580
  }
2581
2581
  let Ks = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
2582
2582
  Ks.decode();
2583
2583
  const qQ = 2146435072;
2584
- let dn = 0;
2584
+ let fn = 0;
2585
2585
  function ZQ(g, A) {
2586
- return dn += A, dn >= qQ && (Ks = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), Ks.decode(), dn = A), Ks.decode(WA().subarray(g, g + A));
2586
+ return fn += A, fn >= qQ && (Ks = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), Ks.decode(), fn = A), Ks.decode(jA().subarray(g, g + A));
2587
2587
  }
2588
2588
  const us = new TextEncoder();
2589
2589
  "encodeInto" in us || (us.encodeInto = function(g, A) {
@@ -2678,7 +2678,7 @@ function PQ(g) {
2678
2678
  return null;
2679
2679
  }
2680
2680
  }
2681
- function fn(g, A, t) {
2681
+ function un(g, A, t) {
2682
2682
  if (!uA) return null;
2683
2683
  try {
2684
2684
  return uA.build_batch_vertices(g, A, t);
@@ -2747,10 +2747,10 @@ function $Q(g) {
2747
2747
  );
2748
2748
  return { version: (n = g.version) != null ? n : "", params: C, images: Q, sprites: E, audios: r };
2749
2749
  }
2750
- var Aa = Object.defineProperty, ta = (g, A, t) => A in g ? Aa(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, un = (g, A, t) => ta(g, typeof A != "symbol" ? A + "" : A, t);
2750
+ var Aa = Object.defineProperty, ta = (g, A, t) => A in g ? Aa(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, wn = (g, A, t) => ta(g, typeof A != "symbol" ? A + "" : A, t);
2751
2751
  class ea {
2752
2752
  constructor() {
2753
- un(this, "floatPoolA", null), un(this, "floatPoolB", null), un(this, "uint32Pool", null);
2753
+ wn(this, "floatPoolA", null), wn(this, "floatPoolB", null), wn(this, "uint32Pool", null);
2754
2754
  }
2755
2755
  getFloat32(A) {
2756
2756
  var t, e;
@@ -2780,14 +2780,14 @@ class ea {
2780
2780
  this.floatPoolA = null, this.floatPoolB = null, this.uint32Pool = null;
2781
2781
  }
2782
2782
  }
2783
- function jA(g, A, t, e, i, I) {
2783
+ function zA(g, A, t, e, i, I) {
2784
2784
  const s = 1 / (g - A), n = 1 / (t - e), B = 1 / (i - I), C = new Float32Array(16);
2785
2785
  return C[0] = -2 * s, C[5] = -2 * n, C[10] = 2 * B, C[12] = (g + A) * s, C[13] = (e + t) * n, C[14] = (i + I) * B, C[15] = 1, C;
2786
2786
  }
2787
- function wn(g, A, t) {
2787
+ function Dn(g, A, t) {
2788
2788
  return g + (A - g) * t;
2789
2789
  }
2790
- function lB(g, A, t) {
2790
+ function dB(g, A, t) {
2791
2791
  return g < A ? A : g > t ? t : g;
2792
2792
  }
2793
2793
  let ia = 0;
@@ -2869,14 +2869,14 @@ function Ia(g) {
2869
2869
  case "Q": {
2870
2870
  for (; Q < C.length && !isNaN(parseFloat(C[Q])); ) {
2871
2871
  const r = a(), o = a(), h = a(), c = a();
2872
- dB(t, e, i, r, o, h, c), n = r, B = o, e = h, i = c;
2872
+ fB(t, e, i, r, o, h, c), n = r, B = o, e = h, i = c;
2873
2873
  }
2874
2874
  break;
2875
2875
  }
2876
2876
  case "q": {
2877
2877
  for (; Q < C.length && !isNaN(parseFloat(C[Q])); ) {
2878
2878
  const r = e + a(), o = i + a(), h = e + a(), c = i + a();
2879
- dB(t, e, i, r, o, h, c), n = r, B = o, e = h, i = c;
2879
+ fB(t, e, i, r, o, h, c), n = r, B = o, e = h, i = c;
2880
2880
  }
2881
2881
  break;
2882
2882
  }
@@ -2899,7 +2899,7 @@ function _s(g, A, t, e, i, I, s, n, B) {
2899
2899
  });
2900
2900
  }
2901
2901
  }
2902
- function dB(g, A, t, e, i, I, s) {
2902
+ function fB(g, A, t, e, i, I, s) {
2903
2903
  for (let n = 1; n <= en; n++) {
2904
2904
  const B = n / en, C = 1 - B;
2905
2905
  g.push({
@@ -2949,10 +2949,10 @@ function Ba(g) {
2949
2949
  return A * 0.5;
2950
2950
  }
2951
2951
  function Ca(g, A, t, e) {
2952
- const i = Dn(g, A, t), I = Dn(g, t, e), s = Dn(g, e, A), n = i < 0 || I < 0 || s < 0, B = i > 0 || I > 0 || s > 0;
2952
+ const i = pn(g, A, t), I = pn(g, t, e), s = pn(g, e, A), n = i < 0 || I < 0 || s < 0, B = i > 0 || I > 0 || s > 0;
2953
2953
  return !(n && B);
2954
2954
  }
2955
- function Dn(g, A, t) {
2955
+ function pn(g, A, t) {
2956
2956
  return (g.x - t.x) * (A.y - t.y) - (A.x - t.x) * (g.y - t.y);
2957
2957
  }
2958
2958
  function YA(g) {
@@ -2960,9 +2960,9 @@ function YA(g) {
2960
2960
  return (A = g.options.objectFit) != null ? A : "contain";
2961
2961
  }
2962
2962
  var Qa = Object.defineProperty, aa = (g, A, t) => A in g ? Qa(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, L = (g, A, t) => aa(g, typeof A != "symbol" ? A + "" : A, t);
2963
- const pn = 2048, On = class vn {
2963
+ const yn = 2048, Pn = class Kn {
2964
2964
  constructor() {
2965
- L(this, "pool", new ea()), L(this, "vertexBufHandles", []), L(this, "indexBufHandles", []), L(this, "clipVertBufHandles", []), L(this, "clipIdxBufHandles", []), L(this, "clipSpriteVertBufHandles", []), L(this, "clipSpriteIdxBufHandles", []), L(this, "batchDrawCursor", 0), L(this, "clipMaskDrawCursor", 0), L(this, "clipSpriteDrawCursor", 0), L(this, "canvasWidth", 0), L(this, "canvasHeight", 0), L(this, "projCacheW", 0), L(this, "projCacheH", 0), L(this, "projCache", null), L(this, "clipMeshCache", /* @__PURE__ */ new Map()), L(this, "clipTransformedVertsScratch", null), L(this, "clipFrameDataScratch", new Float32Array(SA)), L(this, "instancedFrameDataScratch", new Float32Array(pn * SA)), L(this, "clipSpriteVertsScratch", null), L(this, "clipSpriteIndicesScratch", null), L(this, "instancedQuadVB", null), L(this, "instancedQuadIB", null);
2965
+ L(this, "pool", new ea()), L(this, "vertexBufHandles", []), L(this, "indexBufHandles", []), L(this, "clipVertBufHandles", []), L(this, "clipIdxBufHandles", []), L(this, "clipSpriteVertBufHandles", []), L(this, "clipSpriteIdxBufHandles", []), L(this, "batchDrawCursor", 0), L(this, "clipMaskDrawCursor", 0), L(this, "clipSpriteDrawCursor", 0), L(this, "canvasWidth", 0), L(this, "canvasHeight", 0), L(this, "projCacheW", 0), L(this, "projCacheH", 0), L(this, "projCache", null), L(this, "clipMeshCache", /* @__PURE__ */ new Map()), L(this, "clipTransformedVertsScratch", null), L(this, "clipFrameDataScratch", new Float32Array(SA)), L(this, "instancedFrameDataScratch", new Float32Array(yn * SA)), L(this, "clipSpriteVertsScratch", null), L(this, "clipSpriteIndicesScratch", null), L(this, "instancedQuadVB", null), L(this, "instancedQuadIB", null);
2966
2966
  }
2967
2967
  flush(A, t) {
2968
2968
  var e;
@@ -3006,16 +3006,16 @@ const pn = 2048, On = class vn {
3006
3006
  const u = this.resolveSpriteTextureBinding(s, f.imageKey);
3007
3007
  if (!u) continue;
3008
3008
  const p = { slot: s, sprite: f, frame: d, binding: u, sx: r, sy: o }, D = d.clipPath, y = D && D.length > 0 ? this.getClipMesh(D) : null, S = !u.override && (!I || I.id === u.handle.id);
3009
- y && y.indices.length > 0 ? (i.length > 0 && (this.drawBatch(A, i, I, e), i.length = 0, I = null), this.drawClippedSprite(A, p, y, e)) : S ? (i.push(p), I = u.handle, i.length >= pn && (this.drawBatch(A, i, I, e), i.length = 0, I = null)) : (i.length > 0 && (this.drawBatch(A, i, I, e), i.length = 0, I = null), this.drawSingleSprite(A, p, e));
3009
+ y && y.indices.length > 0 ? (i.length > 0 && (this.drawBatch(A, i, I, e), i.length = 0, I = null), this.drawClippedSprite(A, p, y, e)) : S ? (i.push(p), I = u.handle, i.length >= yn && (this.drawBatch(A, i, I, e), i.length = 0, I = null)) : (i.length > 0 && (this.drawBatch(A, i, I, e), i.length = 0, I = null), this.drawSingleSprite(A, p, e));
3010
3010
  }
3011
3011
  }
3012
3012
  i.length > 0 && this.drawBatch(A, i, I, e), A.resetScissor();
3013
3013
  }
3014
3014
  getProjection() {
3015
- return this.projCache && this.projCacheW === this.canvasWidth && this.projCacheH === this.canvasHeight ? this.projCache : (this.projCacheW = this.canvasWidth, this.projCacheH = this.canvasHeight, this.projCache = jA(0, this.canvasWidth, this.canvasHeight, 0, -1, 1), this.projCache);
3015
+ return this.projCache && this.projCacheW === this.canvasWidth && this.projCacheH === this.canvasHeight ? this.projCache : (this.projCacheW = this.canvasWidth, this.projCacheH = this.canvasHeight, this.projCache = zA(0, this.canvasWidth, this.canvasHeight, 0, -1, 1), this.projCache);
3016
3016
  }
3017
3017
  drawBatch(A, t, e, i) {
3018
- const I = Math.min(t.length, pn);
3018
+ const I = Math.min(t.length, yn);
3019
3019
  if (I < 1) return;
3020
3020
  if (A.type === "webgl2" || A.type === "webgpu") {
3021
3021
  this.drawBatchInstancedWebGL(A, t, I, e, i);
@@ -3026,8 +3026,8 @@ const pn = 2048, On = class vn {
3026
3026
  const { slot: d, frame: u, binding: p, sx: D, sy: y } = t[f];
3027
3027
  this.packFrameData(s, f, d, u, p, D, y);
3028
3028
  }
3029
- const n = I * VA * NA, B = I * fs, C = this.pool.getFloat32B(n), Q = this.pool.getUint32(B), a = new Float32Array(s.buffer, 0, I * SA), E = new Float32Array(C.buffer, 0, n), r = new Uint32Array(Q.buffer, 0, B);
3030
- (!ws() || fn(a, E, r) === null) && cn(a, E, r);
3029
+ const n = I * WA * NA, B = I * fs, C = this.pool.getFloat32B(n), Q = this.pool.getUint32(B), a = new Float32Array(s.buffer, 0, I * SA), E = new Float32Array(C.buffer, 0, n), r = new Uint32Array(Q.buffer, 0, B);
3030
+ (!ws() || un(a, E, r) === null) && ln(a, E, r);
3031
3031
  const o = this.batchDrawCursor++, h = this.ensureVertexBuffer(A, o, E), c = this.ensureIndexBuffer(A, o, r);
3032
3032
  A.draw({
3033
3033
  shader: "svga-batch",
@@ -3081,22 +3081,22 @@ const pn = 2048, On = class vn {
3081
3081
  A.draw(W);
3082
3082
  const v = this.clipFrameDataScratch;
3083
3083
  this.packFrameData(v, 0, a, E, r, o, h);
3084
- const _ = VA * NA, K = fs;
3084
+ const _ = WA * NA, K = fs;
3085
3085
  (!this.clipSpriteVertsScratch || this.clipSpriteVertsScratch.length < _) && (this.clipSpriteVertsScratch = new Float32Array(_)), (!this.clipSpriteIndicesScratch || this.clipSpriteIndicesScratch.length < K) && (this.clipSpriteIndicesScratch = new Uint32Array(K));
3086
3086
  const b = this.clipSpriteVertsScratch, j = this.clipSpriteIndicesScratch;
3087
- (!ws() || fn(v, b, j) === null) && cn(v, b, j);
3087
+ (!ws() || un(v, b, j) === null) && ln(v, b, j);
3088
3088
  const tA = this.clipSpriteDrawCursor++, z = this.ensureClipSpriteVertexBuffer(
3089
3089
  A,
3090
3090
  tA,
3091
3091
  b.subarray(0, _)
3092
- ), vA = this.ensureClipSpriteIndexBuffer(
3092
+ ), KA = this.ensureClipSpriteIndexBuffer(
3093
3093
  A,
3094
3094
  tA,
3095
3095
  j.subarray(0, K)
3096
3096
  ), ns = {
3097
3097
  shader: "svga-batch",
3098
3098
  vertexBuffer: z,
3099
- indexBuffer: vA,
3099
+ indexBuffer: KA,
3100
3100
  indexCount: K,
3101
3101
  textures: [r.handle],
3102
3102
  uniforms: { u_projection: i, u_atlas: 0 },
@@ -3117,10 +3117,10 @@ const pn = 2048, On = class vn {
3117
3117
  drawSingleSprite(A, t, e) {
3118
3118
  const i = this.clipFrameDataScratch;
3119
3119
  this.packFrameData(i, 0, t.slot, t.frame, t.binding, t.sx, t.sy);
3120
- const I = VA * NA, s = fs;
3120
+ const I = WA * NA, s = fs;
3121
3121
  (!this.clipSpriteVertsScratch || this.clipSpriteVertsScratch.length < I) && (this.clipSpriteVertsScratch = new Float32Array(I)), (!this.clipSpriteIndicesScratch || this.clipSpriteIndicesScratch.length < s) && (this.clipSpriteIndicesScratch = new Uint32Array(s));
3122
3122
  const n = this.clipSpriteVertsScratch, B = this.clipSpriteIndicesScratch;
3123
- (!ws() || fn(i, n, B) === null) && cn(i, n, B);
3123
+ (!ws() || un(i, n, B) === null) && ln(i, n, B);
3124
3124
  const C = this.clipSpriteDrawCursor++, Q = this.ensureClipSpriteVertexBuffer(
3125
3125
  A,
3126
3126
  C,
@@ -3147,8 +3147,8 @@ const pn = 2048, On = class vn {
3147
3147
  const ns = (E = p == null ? void 0 : p.width) != null ? E : M.logicalWidth, cA = (r = p == null ? void 0 : p.height) != null ? r : M.logicalHeight;
3148
3148
  W = M.logicalWidth, v = M.logicalHeight, _ = Math.max(0, (ns - W) * 0.5), K = Math.max(0, (cA - v) * 0.5);
3149
3149
  }
3150
- const b = t * SA, j = ((o = D == null ? void 0 : D.a) != null ? o : 1) * s, tA = ((h = D == null ? void 0 : D.b) != null ? h : 0) * n, z = ((c = D == null ? void 0 : D.c) != null ? c : 0) * s, vA = ((f = D == null ? void 0 : D.d) != null ? f : 1) * n;
3151
- A[b] = W, A[b + 1] = v, A[b + 2] = j, A[b + 3] = tA, A[b + 4] = z, A[b + 5] = vA, A[b + 6] = ((d = D == null ? void 0 : D.tx) != null ? d : 0) * s + j * _ + z * K + e.x, A[b + 7] = ((u = D == null ? void 0 : D.ty) != null ? u : 0) * n + tA * _ + vA * K + e.y, A[b + 8] = i.alpha, A[b + 9] = y.x + x, A[b + 10] = y.y + F, A[b + 11] = y.x + y.w - x, A[b + 12] = y.y + y.h - F;
3150
+ const b = t * SA, j = ((o = D == null ? void 0 : D.a) != null ? o : 1) * s, tA = ((h = D == null ? void 0 : D.b) != null ? h : 0) * n, z = ((c = D == null ? void 0 : D.c) != null ? c : 0) * s, KA = ((f = D == null ? void 0 : D.d) != null ? f : 1) * n;
3151
+ A[b] = W, A[b + 1] = v, A[b + 2] = j, A[b + 3] = tA, A[b + 4] = z, A[b + 5] = KA, A[b + 6] = ((d = D == null ? void 0 : D.tx) != null ? d : 0) * s + j * _ + z * K + e.x, A[b + 7] = ((u = D == null ? void 0 : D.ty) != null ? u : 0) * n + tA * _ + KA * K + e.y, A[b + 8] = i.alpha, A[b + 9] = y.x + x, A[b + 10] = y.y + F, A[b + 11] = y.x + y.w - x, A[b + 12] = y.y + y.h - F;
3152
3152
  }
3153
3153
  resolveSpriteTextureBinding(A, t) {
3154
3154
  var e, i;
@@ -3246,7 +3246,7 @@ const pn = 2048, On = class vn {
3246
3246
  }
3247
3247
  }
3248
3248
  ensureInstancedQuadBuffers(A) {
3249
- this.instancedQuadVB || (this.instancedQuadVB = A.createBuffer(vn.INSTANCED_QUAD_VERTS, "vertex"), this.instancedQuadIB = A.createBuffer(vn.INSTANCED_QUAD_INDICES, "index"));
3249
+ this.instancedQuadVB || (this.instancedQuadVB = A.createBuffer(Kn.INSTANCED_QUAD_VERTS, "vertex"), this.instancedQuadIB = A.createBuffer(Kn.INSTANCED_QUAD_INDICES, "index"));
3250
3250
  }
3251
3251
  destroy(A) {
3252
3252
  for (const t of this.vertexBufHandles) A.deleteBuffer(t);
@@ -3258,11 +3258,11 @@ const pn = 2048, On = class vn {
3258
3258
  this.instancedQuadVB && A.deleteBuffer(this.instancedQuadVB), this.instancedQuadIB && A.deleteBuffer(this.instancedQuadIB), this.pool.destroy(), this.clipMeshCache.clear(), this.vertexBufHandles = [], this.indexBufHandles = [], this.clipVertBufHandles = [], this.clipIdxBufHandles = [], this.clipSpriteVertBufHandles = [], this.clipSpriteIdxBufHandles = [], this.instancedQuadVB = null, this.instancedQuadIB = null, this.projCache = null;
3259
3259
  }
3260
3260
  };
3261
- L(On, "INSTANCED_QUAD_VERTS", new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]));
3262
- L(On, "INSTANCED_QUAD_INDICES", new Uint32Array([0, 1, 2, 0, 2, 3]));
3263
- let ra = On;
3261
+ L(Pn, "INSTANCED_QUAD_VERTS", new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]));
3262
+ L(Pn, "INSTANCED_QUAD_INDICES", new Uint32Array([0, 1, 2, 0, 2, 3]));
3263
+ let ra = Pn;
3264
3264
  var Ea = Object.defineProperty, oa = (g, A, t) => A in g ? Ea(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, QA = (g, A, t) => oa(g, typeof A != "symbol" ? A + "" : A, t);
3265
- const ha = 4, ca = 128 * 1024 * 1024, la = 2048 * 1024 * 1024, da = "gift-stage-resource-cache", fa = 2, nA = "resources", yn = "byUpdatedAt", ua = 3e4;
3265
+ const ha = 4, ca = 128 * 1024 * 1024, la = 2048 * 1024 * 1024, da = "gift-stage-resource-cache", fa = 2, nA = "resources", mn = "byUpdatedAt", ua = 3e4;
3266
3266
  class wa {
3267
3267
  constructor(A) {
3268
3268
  QA(this, "maxConcurrent"), QA(this, "active", 0), QA(this, "queue", []), this.maxConcurrent = Math.max(1, A);
@@ -3304,7 +3304,7 @@ function pa(g) {
3304
3304
  audios: g.audios
3305
3305
  })), A;
3306
3306
  }
3307
- function mn(g) {
3307
+ function Gn(g) {
3308
3308
  return typeof g == "string" ? Ds(g) : g.byteLength;
3309
3309
  }
3310
3310
  class ya {
@@ -3409,7 +3409,7 @@ class ya {
3409
3409
  t.onupgradeneeded = () => {
3410
3410
  const e = t.result;
3411
3411
  let i;
3412
- e.objectStoreNames.contains(nA) ? i = t.transaction.objectStore(nA) : i = e.createObjectStore(nA, { keyPath: "key" }), i.indexNames.contains(yn) || i.createIndex(yn, "updatedAt", { unique: !1 });
3412
+ e.objectStoreNames.contains(nA) ? i = t.transaction.objectStore(nA) : i = e.createObjectStore(nA, { keyPath: "key" }), i.indexNames.contains(mn) || i.createIndex(mn, "updatedAt", { unique: !1 });
3413
3413
  }, t.onsuccess = () => A(t.result), t.onerror = () => A(null), t.onblocked = () => A(null);
3414
3414
  } catch (t) {
3415
3415
  A(null);
@@ -3429,7 +3429,7 @@ class ya {
3429
3429
  i(null);
3430
3430
  return;
3431
3431
  }
3432
- const C = B.sizeBytes || mn(B.value);
3432
+ const C = B.sizeBytes || Gn(B.value);
3433
3433
  if (Date.now() - B.updatedAt >= ua && this.touchPersistent({
3434
3434
  ...B,
3435
3435
  sizeBytes: C,
@@ -3448,7 +3448,7 @@ class ya {
3448
3448
  async setPersistent(A, t, e) {
3449
3449
  const i = await this.openDb();
3450
3450
  if (!i) return;
3451
- const I = mn(e);
3451
+ const I = Gn(e);
3452
3452
  await new Promise((s) => {
3453
3453
  try {
3454
3454
  const n = i.transaction(nA, "readwrite");
@@ -3490,13 +3490,13 @@ class ya {
3490
3490
  try {
3491
3491
  const e = A.transaction(nA, "readwrite");
3492
3492
  e.oncomplete = () => t(), e.onerror = () => t(), e.onabort = () => t();
3493
- const i = e.objectStore(nA), I = i.index(yn), s = [];
3493
+ const i = e.objectStore(nA), I = i.index(mn), s = [];
3494
3494
  let n = 0;
3495
3495
  const B = I.openCursor();
3496
3496
  B.onsuccess = () => {
3497
3497
  const C = B.result;
3498
3498
  if (C) {
3499
- const a = C.value, E = a.sizeBytes || mn(a.value);
3499
+ const a = C.value, E = a.sizeBytes || Gn(a.value);
3500
3500
  n += E, s.push({ key: a.key, sizeBytes: E }), C.continue();
3501
3501
  return;
3502
3502
  }
@@ -3530,7 +3530,7 @@ const rA = new ya();
3530
3530
  function ma(g) {
3531
3531
  rA.configure(g);
3532
3532
  }
3533
- function Kn(g) {
3533
+ function Tn(g) {
3534
3534
  return rA.runLimited(g);
3535
3535
  }
3536
3536
  function Rs(g, A) {
@@ -3539,10 +3539,10 @@ function Rs(g, A) {
3539
3539
  function Ga(g, A) {
3540
3540
  return rA.fetchJSON(g, A);
3541
3541
  }
3542
- function Pn(g) {
3542
+ function $n(g) {
3543
3543
  return rA.getSVGAWorkerPayload(g);
3544
3544
  }
3545
- function fB(g, A) {
3545
+ function uB(g, A) {
3546
3546
  rA.setSVGAWorkerPayload(g, A);
3547
3547
  }
3548
3548
  function Sa(g, A) {
@@ -3560,14 +3560,14 @@ function Na(g, A) {
3560
3560
  function Ra(g) {
3561
3561
  return rA.deletePersistedValue(g);
3562
3562
  }
3563
- async function uB(g) {
3563
+ async function wB(g) {
3564
3564
  const A = typeof g == "string" ? await Ga(g) : g;
3565
3565
  if (!A.info) throw new Error("VAP config missing info");
3566
3566
  if (!A.info.rgbFrame || !A.info.aFrame)
3567
3567
  throw new Error("VAP config missing rgbFrame or aFrame");
3568
3568
  return A;
3569
3569
  }
3570
- function zA(g) {
3570
+ function XA(g) {
3571
3571
  const [, , A, t] = g.rgbFrame, e = g.w > 0 ? g.w : A, i = g.h > 0 ? g.h : t;
3572
3572
  return e > 0 && i > 0 ? { w: e, h: i } : { w: g.videoW, h: g.videoH };
3573
3573
  }
@@ -3733,16 +3733,16 @@ function ka(g) {
3733
3733
  function AC(g) {
3734
3734
  return !!g && typeof g == "object" && "image" in g;
3735
3735
  }
3736
- function wB(g) {
3736
+ function DB(g) {
3737
3737
  return !g || typeof g != "object" ? !1 : typeof HTMLCanvasElement != "undefined" && g instanceof HTMLCanvasElement || typeof HTMLImageElement != "undefined" && g instanceof HTMLImageElement || typeof ImageBitmap != "undefined" && g instanceof ImageBitmap || typeof OffscreenCanvas != "undefined" && g instanceof OffscreenCanvas || typeof HTMLVideoElement != "undefined" && g instanceof HTMLVideoElement || typeof VideoFrame != "undefined" && g instanceof VideoFrame || typeof ImageData != "undefined" && g instanceof ImageData;
3738
3738
  }
3739
- function DB(g) {
3739
+ function In(g) {
3740
3740
  return new Promise((A, t) => {
3741
3741
  const e = new Image();
3742
3742
  e.crossOrigin = "anonymous", e.onload = () => A(e), e.onerror = () => t(new Error(`Failed to load image: ${g}`)), e.src = g;
3743
3743
  });
3744
3744
  }
3745
- function gs(g) {
3745
+ function _A(g) {
3746
3746
  if (typeof HTMLImageElement != "undefined" && g instanceof HTMLImageElement)
3747
3747
  return { width: g.naturalWidth || g.width, height: g.naturalHeight || g.height };
3748
3748
  if (typeof HTMLCanvasElement != "undefined" && g instanceof HTMLCanvasElement)
@@ -3751,14 +3751,14 @@ function gs(g) {
3751
3751
  return { width: g.width, height: g.height };
3752
3752
  if (typeof ImageBitmap != "undefined" && g instanceof ImageBitmap)
3753
3753
  return { width: g.width, height: g.height };
3754
- if ("videoWidth" in g && typeof g.videoWidth == "number")
3754
+ if (g && typeof g == "object" && "videoWidth" in g && typeof g.videoWidth == "number")
3755
3755
  return { width: g.videoWidth, height: g.videoHeight };
3756
- if ("displayWidth" in g && typeof g.displayWidth == "number")
3756
+ if (g && typeof g == "object" && "displayWidth" in g && typeof g.displayWidth == "number")
3757
3757
  return { width: g.displayWidth || g.codedWidth, height: g.displayHeight || g.codedHeight };
3758
3758
  const A = g;
3759
3759
  return typeof A.width == "number" && typeof A.height == "number" ? { width: A.width, height: A.height } : { width: 0, height: 0 };
3760
3760
  }
3761
- function Tn(g) {
3761
+ function qn(g) {
3762
3762
  if (typeof ImageData != "undefined" && g instanceof ImageData) {
3763
3763
  const A = ps(g.width, g.height);
3764
3764
  return ys(A).putImageData(g, 0, 0), A;
@@ -3809,7 +3809,7 @@ async function Ja(g, A, t) {
3809
3809
  };
3810
3810
  }
3811
3811
  if (ka(g)) {
3812
- const n = g.image, B = gs(n);
3812
+ const n = typeof g.image == "string" ? await In(g.image) : g.image, B = _A(n);
3813
3813
  return {
3814
3814
  source: n,
3815
3815
  mode: (I = g.mode) != null ? I : "replace",
@@ -3817,7 +3817,16 @@ async function Ja(g, A, t) {
3817
3817
  logicalHeight: Math.max(1, B.height || t)
3818
3818
  };
3819
3819
  }
3820
- const s = gs(g);
3820
+ if (typeof g == "string") {
3821
+ const n = await In(g), B = _A(n);
3822
+ return {
3823
+ source: n,
3824
+ mode: "replace",
3825
+ logicalWidth: Math.max(1, B.width || A),
3826
+ logicalHeight: Math.max(1, B.height || t)
3827
+ };
3828
+ }
3829
+ const s = _A(g);
3821
3830
  return {
3822
3831
  source: g,
3823
3832
  mode: "replace",
@@ -3830,8 +3839,8 @@ async function Ha(g, A, t) {
3830
3839
  if (!t) return e;
3831
3840
  for (const [i, I] of Object.entries(t)) {
3832
3841
  const s = La(A, i), n = await Ja(I, s.width, s.height), B = g.createTexture(n.source, {
3833
- width: gs(n.source).width || s.width,
3834
- height: gs(n.source).height || s.height,
3842
+ width: _A(n.source).width || s.width,
3843
+ height: _A(n.source).height || s.height,
3835
3844
  filter: "linear"
3836
3845
  });
3837
3846
  e.set(i, {
@@ -3864,7 +3873,7 @@ function Ka(g, A) {
3864
3873
  };
3865
3874
  }
3866
3875
  async function Ta(g) {
3867
- return typeof g == "string" ? DB(g) : AC(g) ? typeof g.image == "string" ? DB(g.image) : Tn(g.image) : Tn(g);
3876
+ return typeof g == "string" ? In(g) : AC(g) ? typeof g.image == "string" ? In(g.image) : qn(g.image) : qn(g);
3868
3877
  }
3869
3878
  async function qa(g, A) {
3870
3879
  const t = /* @__PURE__ */ new Map();
@@ -3873,8 +3882,8 @@ async function qa(g, A) {
3873
3882
  const i = va(e, A);
3874
3883
  if (i == null) continue;
3875
3884
  if (e.srcType === "txt") {
3876
- if (wB(i)) {
3877
- const C = Tn(i), Q = gs(C);
3885
+ if (DB(i)) {
3886
+ const C = qn(i), Q = _A(C);
3878
3887
  t.set(String(e.srcId), {
3879
3888
  source: C,
3880
3889
  width: Math.max(1, Q.width),
@@ -3889,9 +3898,9 @@ async function qa(g, A) {
3889
3898
  t.set(String(e.srcId), B);
3890
3899
  continue;
3891
3900
  }
3892
- const I = wB(i) || typeof i == "string" || AC(i) ? i : null;
3901
+ const I = DB(i) || typeof i == "string" || AC(i) ? i : null;
3893
3902
  if (!I) continue;
3894
- const s = await Ta(I), n = gs(s);
3903
+ const s = await Ta(I), n = _A(s);
3895
3904
  t.set(String(e.srcId), {
3896
3905
  source: s,
3897
3906
  width: Math.max(1, n.width),
@@ -3946,7 +3955,7 @@ function pB(g, A, t, e) {
3946
3955
  (g.scratchCanvas.width !== N || g.scratchCanvas.height !== x) && (g.scratchCanvas.width = Math.max(1, Math.round(N)), g.scratchCanvas.height = Math.max(1, Math.round(x))), g.scratchCtx.clearRect(0, 0, g.scratchCanvas.width, g.scratchCanvas.height), g.scratchCtx.drawImage(D.source, 0, 0, g.scratchCanvas.width, g.scratchCanvas.height);
3947
3956
  const _ = g.scratchCtx.getImageData(0, 0, g.scratchCanvas.width, g.scratchCanvas.height).data, K = Math.max(0, Math.floor(y)), b = Math.max(0, Math.floor(S)), j = Math.min(g.width, Math.ceil(y + N)), tA = Math.min(g.height, Math.ceil(S + x));
3948
3957
  for (let z = b; z < tA; z++) {
3949
- const vA = Math.min(
3958
+ const KA = Math.min(
3950
3959
  g.scratchCanvas.height - 1,
3951
3960
  Math.max(0, Math.floor((z - S) / x * g.scratchCanvas.height))
3952
3961
  ), ns = Math.min(n - 1, Math.max(0, M + Math.floor((z - S) / x * v)));
@@ -3954,19 +3963,19 @@ function pB(g, A, t, e) {
3954
3963
  const DA = Math.min(
3955
3964
  g.scratchCanvas.width - 1,
3956
3965
  Math.max(0, Math.floor((cA - y) / N * g.scratchCanvas.width))
3957
- ), bs = Math.min(s - 1, Math.max(0, F + Math.floor((cA - y) / N * W))), UA = (vA * g.scratchCanvas.width + DA) * 4, PC = (ns * s + bs) * 4, $C = _[UA + 3] / 255, AQ = c[PC] / 255, KA = $C * AQ;
3958
- if (KA <= 0) continue;
3959
- const pA = (z * g.width + cA) * 4, tQ = _[UA] / 255 * KA, eQ = _[UA + 1] / 255 * KA, iQ = _[UA + 2] / 255 * KA, gQ = d[pA + 3] / 255, ks = 1 - KA;
3960
- d[pA] = Math.round((tQ + d[pA] / 255 * ks) * 255), d[pA + 1] = Math.round((eQ + d[pA + 1] / 255 * ks) * 255), d[pA + 2] = Math.round((iQ + d[pA + 2] / 255 * ks) * 255), d[pA + 3] = Math.round((KA + gQ * ks) * 255);
3966
+ ), bs = Math.min(s - 1, Math.max(0, F + Math.floor((cA - y) / N * W))), UA = (KA * g.scratchCanvas.width + DA) * 4, PC = (ns * s + bs) * 4, $C = _[UA + 3] / 255, AQ = c[PC] / 255, TA = $C * AQ;
3967
+ if (TA <= 0) continue;
3968
+ const pA = (z * g.width + cA) * 4, tQ = _[UA] / 255 * TA, eQ = _[UA + 1] / 255 * TA, iQ = _[UA + 2] / 255 * TA, gQ = d[pA + 3] / 255, ks = 1 - TA;
3969
+ d[pA] = Math.round((tQ + d[pA] / 255 * ks) * 255), d[pA + 1] = Math.round((eQ + d[pA + 1] / 255 * ks) * 255), d[pA + 2] = Math.round((iQ + d[pA + 2] / 255 * ks) * 255), d[pA + 3] = Math.round((TA + gQ * ks) * 255);
3961
3970
  }
3962
3971
  }
3963
3972
  }
3964
3973
  return g.compositeCtx.putImageData(f, 0, 0), g.compositeCanvas;
3965
3974
  }
3966
3975
  var Wa = Object.defineProperty, ja = (g, A, t) => A in g ? Wa(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, Z = (g, A, t) => ja(g, typeof A != "symbol" ? A + "" : A, t);
3967
- const Gn = 1024, Sn = 28, Ms = class hs {
3976
+ const Sn = 1024, Fn = 28, Ms = class hs {
3968
3977
  constructor() {
3969
- Z(this, "quadVB", null), Z(this, "quadIB", null), Z(this, "rgbaQuadVB", null), Z(this, "rgbaQuadIB", null), Z(this, "quadIndices", new Uint32Array([0, 1, 2, 0, 2, 3])), Z(this, "wcDbgFirstDraw", /* @__PURE__ */ new Set()), Z(this, "wcDbgNullWarns", /* @__PURE__ */ new Map()), Z(this, "htmlGate", new PB()), Z(this, "lastWcFrameRef", /* @__PURE__ */ new Map()), Z(this, "scratchAtlasRemap", new Float32Array(4)), Z(this, "instancePackScratch", new Float32Array(Gn * Sn)), Z(this, "scratchTransform", new Float32Array(16)), Z(this, "projCacheW", 0), Z(this, "projCacheH", 0), Z(this, "projCache", null);
3978
+ Z(this, "quadVB", null), Z(this, "quadIB", null), Z(this, "rgbaQuadVB", null), Z(this, "rgbaQuadIB", null), Z(this, "quadIndices", new Uint32Array([0, 1, 2, 0, 2, 3])), Z(this, "wcDbgFirstDraw", /* @__PURE__ */ new Set()), Z(this, "wcDbgNullWarns", /* @__PURE__ */ new Map()), Z(this, "htmlGate", new PB()), Z(this, "lastWcFrameRef", /* @__PURE__ */ new Map()), Z(this, "scratchAtlasRemap", new Float32Array(4)), Z(this, "instancePackScratch", new Float32Array(Sn * Fn)), Z(this, "scratchTransform", new Float32Array(16)), Z(this, "projCacheW", 0), Z(this, "projCacheH", 0), Z(this, "projCache", null);
3970
3979
  }
3971
3980
  /**
3972
3981
  * Upload video frames **before** `beginFrame` so WebGPU queue copies complete before the render pass
@@ -4037,7 +4046,7 @@ const Gn = 1024, Sn = 28, Ms = class hs {
4037
4046
  this.quadVB || (this.quadVB = A.createBuffer(hs.QUAD_VERTS, "vertex"), this.quadIB = A.createBuffer(hs.QUAD_INDICES, "index"));
4038
4047
  const i = A.canvas.width, I = A.canvas.height;
4039
4048
  let s;
4040
- this.projCache && this.projCacheW === i && this.projCacheH === I ? s = this.projCache : (this.projCacheW = i, this.projCacheH = I, this.projCache = jA(0, i, I, 0, -1, 1), s = this.projCache);
4049
+ this.projCache && this.projCacheW === i && this.projCacheH === I ? s = this.projCache : (this.projCacheW = i, this.projCacheH = I, this.projCache = zA(0, i, I, 0, -1, 1), s = this.projCache);
4041
4050
  const n = /* @__PURE__ */ new Map();
4042
4051
  for (const C of e) {
4043
4052
  const Q = C.videoTextureHandle.id;
@@ -4046,11 +4055,11 @@ const Gn = 1024, Sn = 28, Ms = class hs {
4046
4055
  }
4047
4056
  const B = this.instancePackScratch;
4048
4057
  for (const C of n.values())
4049
- for (let Q = 0; Q < C.length; Q += Gn) {
4050
- const a = Math.min(Gn, C.length - Q);
4058
+ for (let Q = 0; Q < C.length; Q += Sn) {
4059
+ const a = Math.min(Sn, C.length - Q);
4051
4060
  for (let r = 0; r < a; r++)
4052
- this.fillVapInstanceData(C[Q + r], B, r * Sn);
4053
- const E = B.subarray(0, a * Sn);
4061
+ this.fillVapInstanceData(C[Q + r], B, r * Fn);
4062
+ const E = B.subarray(0, a * Fn);
4054
4063
  A.draw({
4055
4064
  shader: "vap-instanced",
4056
4065
  vertexBuffer: this.quadVB,
@@ -4072,7 +4081,7 @@ const Gn = 1024, Sn = 28, Ms = class hs {
4072
4081
  const B = A.vapConfig, { info: C } = B, Q = C.videoW > 0 ? C.videoW : (I = (i = A.webcodecsPlayback) == null ? void 0 : i.videoWidth) != null ? I : 1, a = C.videoH > 0 ? C.videoH : (n = (s = A.webcodecsPlayback) == null ? void 0 : s.videoHeight) != null ? n : 1, E = this.scratchTransform, r = A.width * A.scale, o = A.height * A.scale;
4073
4082
  let h = r, c = o;
4074
4083
  if (YA(A) === "contain") {
4075
- const { w: y, h: S } = zA(C);
4084
+ const { w: y, h: S } = XA(C);
4076
4085
  if (y > 0 && S > 0) {
4077
4086
  const N = Math.min(r / y, o / S);
4078
4087
  h = y * N, c = S * N;
@@ -4111,7 +4120,7 @@ const Gn = 1024, Sn = 28, Ms = class hs {
4111
4120
  var e, i, I, s;
4112
4121
  const n = A.canvas.width, B = A.canvas.height;
4113
4122
  let C;
4114
- this.projCache && this.projCacheW === n && this.projCacheH === B ? C = this.projCache : (this.projCacheW = n, this.projCacheH = B, this.projCache = jA(0, n, B, 0, -1, 1), C = this.projCache);
4123
+ this.projCache && this.projCacheW === n && this.projCacheH === B ? C = this.projCache : (this.projCacheW = n, this.projCacheH = B, this.projCache = zA(0, n, B, 0, -1, 1), C = this.projCache);
4115
4124
  const Q = t.vapConfig;
4116
4125
  if (!Q) {
4117
4126
  console.warn("[GiftStage:WC] VAP vapConfig missing — draw skipped", { giftId: t.id });
@@ -4120,7 +4129,7 @@ const Gn = 1024, Sn = 28, Ms = class hs {
4120
4129
  const { info: a } = Q, E = a.videoW > 0 ? a.videoW : (i = (e = t.webcodecsPlayback) == null ? void 0 : e.videoWidth) != null ? i : 1, r = a.videoH > 0 ? a.videoH : (s = (I = t.webcodecsPlayback) == null ? void 0 : I.videoHeight) != null ? s : 1, o = new Float32Array(16), h = t.width * t.scale, c = t.height * t.scale;
4121
4130
  let f = h, d = c;
4122
4131
  if (YA(t) === "contain") {
4123
- const { w: x, h: F } = zA(a);
4132
+ const { w: x, h: F } = XA(a);
4124
4133
  if (x > 0 && F > 0) {
4125
4134
  const M = Math.min(h / x, c / F);
4126
4135
  f = x * M, d = F * M;
@@ -4173,13 +4182,13 @@ const Gn = 1024, Sn = 28, Ms = class hs {
4173
4182
  var e;
4174
4183
  const i = A.canvas.width, I = A.canvas.height;
4175
4184
  let s;
4176
- this.projCache && this.projCacheW === i && this.projCacheH === I ? s = this.projCache : (this.projCacheW = i, this.projCacheH = I, this.projCache = jA(0, i, I, 0, -1, 1), s = this.projCache);
4185
+ this.projCache && this.projCacheW === i && this.projCacheH === I ? s = this.projCache : (this.projCacheW = i, this.projCacheH = I, this.projCache = zA(0, i, I, 0, -1, 1), s = this.projCache);
4177
4186
  const n = t.vapConfig;
4178
4187
  if (!n || !t.vapMixState || !t.videoTextureHandle) return;
4179
4188
  const B = this.scratchTransform, C = t.width * t.scale, Q = t.height * t.scale;
4180
4189
  let a = C, E = Q;
4181
4190
  if (YA(t) === "contain") {
4182
- const { w: o, h } = zA(n.info);
4191
+ const { w: o, h } = XA(n.info);
4183
4192
  if (o > 0 && h > 0) {
4184
4193
  const c = Math.min(C / o, Q / h);
4185
4194
  a = o * c, E = h * c;
@@ -4275,9 +4284,9 @@ Z(Ms, "RGBA_QUAD_VERTS_WEBGPU", new Float32Array([
4275
4284
  Z(Ms, "QUAD_INDICES", new Uint32Array([0, 1, 2, 0, 2, 3]));
4276
4285
  let za = Ms;
4277
4286
  var Xa = Object.defineProperty, Oa = (g, A, t) => A in g ? Xa(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, iA = (g, A, t) => Oa(g, typeof A != "symbol" ? A + "" : A, t);
4278
- const Fn = 1024, Nn = 20, $n = class kA {
4287
+ const Nn = 1024, Rn = 20, AB = class kA {
4279
4288
  constructor() {
4280
- iA(this, "quadVB", null), iA(this, "quadIB", null), iA(this, "instancePackScratch", new Float32Array(Fn * Nn)), iA(this, "projCacheW", 0), iA(this, "projCacheH", 0), iA(this, "projCache", null), iA(this, "scratchTransform", new Float32Array(16)), iA(this, "wcDbgFirstDraw", /* @__PURE__ */ new Set()), iA(this, "wcDbgNullWarns", /* @__PURE__ */ new Map()), iA(this, "htmlGate", new PB()), iA(this, "lastWcFrameRef", /* @__PURE__ */ new Map()), iA(this, "scratchAtlasRemap", new Float32Array(4));
4289
+ iA(this, "quadVB", null), iA(this, "quadIB", null), iA(this, "instancePackScratch", new Float32Array(Nn * Rn)), iA(this, "projCacheW", 0), iA(this, "projCacheH", 0), iA(this, "projCache", null), iA(this, "scratchTransform", new Float32Array(16)), iA(this, "wcDbgFirstDraw", /* @__PURE__ */ new Set()), iA(this, "wcDbgNullWarns", /* @__PURE__ */ new Map()), iA(this, "htmlGate", new PB()), iA(this, "lastWcFrameRef", /* @__PURE__ */ new Map()), iA(this, "scratchAtlasRemap", new Float32Array(4));
4281
4290
  }
4282
4291
  static alphaVideoContentSize(A) {
4283
4292
  if (A.webcodecsPlayback) {
@@ -4346,7 +4355,7 @@ const Fn = 1024, Nn = 20, $n = class kA {
4346
4355
  this.quadVB || (this.quadVB = A.createBuffer(kA.QUAD_VERTS, "vertex"), this.quadIB = A.createBuffer(kA.QUAD_INDICES, "index"));
4347
4356
  const i = A.canvas.width, I = A.canvas.height;
4348
4357
  let s;
4349
- this.projCache && this.projCacheW === i && this.projCacheH === I ? s = this.projCache : (this.projCacheW = i, this.projCacheH = I, this.projCache = jA(0, i, I, 0, -1, 1), s = this.projCache);
4358
+ this.projCache && this.projCacheW === i && this.projCacheH === I ? s = this.projCache : (this.projCacheW = i, this.projCacheH = I, this.projCache = zA(0, i, I, 0, -1, 1), s = this.projCache);
4350
4359
  const n = /* @__PURE__ */ new Map();
4351
4360
  for (const C of e) {
4352
4361
  const Q = C.videoTextureHandle.id;
@@ -4355,11 +4364,11 @@ const Fn = 1024, Nn = 20, $n = class kA {
4355
4364
  }
4356
4365
  const B = this.instancePackScratch;
4357
4366
  for (const C of n.values())
4358
- for (let Q = 0; Q < C.length; Q += Fn) {
4359
- const a = Math.min(Fn, C.length - Q);
4367
+ for (let Q = 0; Q < C.length; Q += Nn) {
4368
+ const a = Math.min(Nn, C.length - Q);
4360
4369
  for (let r = 0; r < a; r++)
4361
- this.fillAlphaInstanceData(C[Q + r], B, r * Nn);
4362
- const E = B.subarray(0, a * Nn);
4370
+ this.fillAlphaInstanceData(C[Q + r], B, r * Rn);
4371
+ const E = B.subarray(0, a * Rn);
4363
4372
  A.draw({
4364
4373
  shader: "alpha-video-instanced",
4365
4374
  vertexBuffer: this.quadVB,
@@ -4403,7 +4412,7 @@ const Fn = 1024, Nn = 20, $n = class kA {
4403
4412
  drawGeometry(A, t) {
4404
4413
  const e = A.canvas.width, i = A.canvas.height;
4405
4414
  let I;
4406
- this.projCache && this.projCacheW === e && this.projCacheH === i ? I = this.projCache : (this.projCacheW = e, this.projCacheH = i, this.projCache = jA(0, e, i, 0, -1, 1), I = this.projCache);
4415
+ this.projCache && this.projCacheW === e && this.projCacheH === i ? I = this.projCache : (this.projCacheW = e, this.projCacheH = i, this.projCache = zA(0, e, i, 0, -1, 1), I = this.projCache);
4407
4416
  const s = this.scratchTransform, n = t.width * t.scale, B = t.height * t.scale;
4408
4417
  let C = n, Q = B;
4409
4418
  if (YA(t) === "contain") {
@@ -4433,7 +4442,7 @@ const Fn = 1024, Nn = 20, $n = class kA {
4433
4442
  this.quadVB && A.deleteBuffer(this.quadVB), this.quadIB && A.deleteBuffer(this.quadIB), this.quadVB = null, this.quadIB = null, this.projCache = null, this.projCacheW = 0, this.projCacheH = 0, this.lastWcFrameRef.clear();
4434
4443
  }
4435
4444
  };
4436
- iA($n, "QUAD_VERTS", new Float32Array([
4445
+ iA(AB, "QUAD_VERTS", new Float32Array([
4437
4446
  0,
4438
4447
  0,
4439
4448
  0.5,
@@ -4451,8 +4460,8 @@ iA($n, "QUAD_VERTS", new Float32Array([
4451
4460
  0.5,
4452
4461
  0
4453
4462
  ]));
4454
- iA($n, "QUAD_INDICES", new Uint32Array([0, 1, 2, 0, 2, 3]));
4455
- let Pa = $n;
4463
+ iA(AB, "QUAD_INDICES", new Uint32Array([0, 1, 2, 0, 2, 3]));
4464
+ let Pa = AB;
4456
4465
  var $a = Object.defineProperty, Ar = (g, A, t) => A in g ? $a(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, tr = (g, A, t) => Ar(g, A + "", t);
4457
4466
  class er {
4458
4467
  constructor() {
@@ -4478,7 +4487,7 @@ class er {
4478
4487
  var t;
4479
4488
  for (let e = this.animations.length - 1; e >= 0; e--) {
4480
4489
  const i = this.animations[e];
4481
- i.startTime < 0 && (i.startTime = A), lB((A - i.startTime) / i.duration, 0, 1) >= 1 && ((t = i.onComplete) == null || t.call(i), this.animations.splice(e, 1));
4490
+ i.startTime < 0 && (i.startTime = A), dB((A - i.startTime) / i.duration, 0, 1) >= 1 && ((t = i.onComplete) == null || t.call(i), this.animations.splice(e, 1));
4482
4491
  }
4483
4492
  }
4484
4493
  /**
@@ -4489,11 +4498,11 @@ class er {
4489
4498
  const e = this.animations.find((s) => s.giftId === A);
4490
4499
  if (!e) return null;
4491
4500
  e.startTime < 0 && (e.startTime = t);
4492
- const i = lB((t - e.startTime) / e.duration, 0, 1), I = e.easing(i);
4501
+ const i = dB((t - e.startTime) / e.duration, 0, 1), I = e.easing(i);
4493
4502
  return {
4494
- x: wn(e.startX, e.targetX, I),
4495
- y: wn(e.startY, e.targetY, I),
4496
- scale: wn(e.startScale, e.targetScale, I)
4503
+ x: Dn(e.startX, e.targetX, I),
4504
+ y: Dn(e.startY, e.targetY, I),
4505
+ scale: Dn(e.startScale, e.targetScale, I)
4497
4506
  };
4498
4507
  }
4499
4508
  hasAnimation(A) {
@@ -4598,7 +4607,7 @@ function kd(g) {
4598
4607
  function Yd(g) {
4599
4608
  return g < 0.5 ? 2 * g * g : -1 + (4 - 2 * g) * g;
4600
4609
  }
4601
- function In(g) {
4610
+ function sn(g) {
4602
4611
  const A = g - 1;
4603
4612
  return A * A * A + 1;
4604
4613
  }
@@ -4608,10 +4617,10 @@ function _d(g) {
4608
4617
  function Ld(g) {
4609
4618
  return 1 + 2.70158 * Math.pow(g - 1, 3) + 1.70158 * Math.pow(g - 1, 2);
4610
4619
  }
4611
- var sr = Object.defineProperty, nr = (g, A, t) => A in g ? sr(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, TA = (g, A, t) => nr(g, typeof A != "symbol" ? A + "" : A, t);
4620
+ var sr = Object.defineProperty, nr = (g, A, t) => A in g ? sr(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, qA = (g, A, t) => nr(g, typeof A != "symbol" ? A + "" : A, t);
4612
4621
  class Br {
4613
4622
  constructor(A, t) {
4614
- TA(this, "atlasW"), TA(this, "atlasH"), TA(this, "rowY", 0), TA(this, "rowH", 0), TA(this, "rowX", 0), TA(this, "slots", /* @__PURE__ */ new Map()), this.atlasW = Math.max(64, Math.floor(A)), this.atlasH = Math.max(64, Math.floor(t));
4623
+ qA(this, "atlasW"), qA(this, "atlasH"), qA(this, "rowY", 0), qA(this, "rowH", 0), qA(this, "rowX", 0), qA(this, "slots", /* @__PURE__ */ new Map()), this.atlasW = Math.max(64, Math.floor(A)), this.atlasH = Math.max(64, Math.floor(t));
4615
4624
  }
4616
4625
  get size() {
4617
4626
  return { w: this.atlasW, h: this.atlasH };
@@ -4803,7 +4812,7 @@ class rr {
4803
4812
  A.flyTo.y * B,
4804
4813
  (i = A.scaleTo) != null ? i : 0.3,
4805
4814
  (I = A.flyDuration) != null ? I : 600,
4806
- (s = A.easing) != null ? s : In,
4815
+ (s = A.easing) != null ? s : sn,
4807
4816
  () => {
4808
4817
  var C;
4809
4818
  A.state = "finished", (C = A.onFlyComplete) == null || C.call(A, t);
@@ -4842,7 +4851,7 @@ class rr {
4842
4851
  A.flyTo.y * C,
4843
4852
  (I = A.scaleTo) != null ? I : 0.3,
4844
4853
  (s = A.flyDuration) != null ? s : 600,
4845
- (n = A.easing) != null ? n : In,
4854
+ (n = A.easing) != null ? n : sn,
4846
4855
  () => {
4847
4856
  var Q;
4848
4857
  A.state = "finished", (Q = A.onFlyComplete) == null || Q.call(A, t);
@@ -4869,18 +4878,18 @@ class rr {
4869
4878
  async function Er(g) {
4870
4879
  if (typeof DecompressionStream != "undefined") {
4871
4880
  try {
4872
- return await Rn(g, "deflate");
4881
+ return await xn(g, "deflate");
4873
4882
  } catch (A) {
4874
4883
  }
4875
4884
  try {
4876
- return await Rn(g.slice(2), "deflate-raw");
4885
+ return await xn(g.slice(2), "deflate-raw");
4877
4886
  } catch (A) {
4878
4887
  }
4879
- return await Rn(g.slice(2, -4), "deflate-raw");
4888
+ return await xn(g.slice(2, -4), "deflate-raw");
4880
4889
  }
4881
4890
  throw new Error("No inflate implementation available (need WASM or DecompressionStream)");
4882
4891
  }
4883
- async function Rn(g, A) {
4892
+ async function xn(g, A) {
4884
4893
  const t = new DecompressionStream(A), e = t.writable.getWriter(), i = t.readable.getReader();
4885
4894
  e.write(new Uint8Array(g.buffer, g.byteOffset, g.byteLength)), e.close();
4886
4895
  const I = [];
@@ -4896,11 +4905,11 @@ async function Rn(g, A) {
4896
4905
  n.set(C, B), B += C.length;
4897
4906
  return n;
4898
4907
  }
4899
- var or = Object.defineProperty, hr = (g, A, t) => A in g ? or(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, xn = (g, A, t) => hr(g, typeof A != "symbol" ? A + "" : A, t);
4908
+ var or = Object.defineProperty, hr = (g, A, t) => A in g ? or(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, Un = (g, A, t) => hr(g, typeof A != "symbol" ? A + "" : A, t);
4900
4909
  const cr = 0, lr = 1, dr = 2, fr = 5;
4901
- class AB {
4910
+ class tB {
4902
4911
  constructor(A, t = 0, e) {
4903
- xn(this, "view"), xn(this, "pos"), xn(this, "end"), this.view = new DataView(A.buffer, A.byteOffset, A.byteLength), this.pos = t, this.end = t + (e != null ? e : A.byteLength);
4912
+ Un(this, "view"), Un(this, "pos"), Un(this, "end"), this.view = new DataView(A.buffer, A.byteOffset, A.byteLength), this.pos = t, this.end = t + (e != null ? e : A.byteLength);
4904
4913
  }
4905
4914
  get remaining() {
4906
4915
  return this.end - this.pos;
@@ -4957,7 +4966,7 @@ class AB {
4957
4966
  }
4958
4967
  }
4959
4968
  sub(A) {
4960
- const t = new AB(
4969
+ const t = new tB(
4961
4970
  new Uint8Array(this.view.buffer, this.view.byteOffset),
4962
4971
  this.pos,
4963
4972
  A
@@ -5137,7 +5146,7 @@ function Gr(g) {
5137
5146
  return { key: A, value: t };
5138
5147
  }
5139
5148
  function Sr(g) {
5140
- const A = new AB(g), t = {
5149
+ const A = new tB(g), t = {
5141
5150
  version: "",
5142
5151
  params: { viewBoxWidth: 0, viewBoxHeight: 0, fps: 20, frames: 0 },
5143
5152
  images: /* @__PURE__ */ new Map(),
@@ -5870,7 +5879,7 @@ function Ur(g) {
5870
5879
  images: A
5871
5880
  };
5872
5881
  }
5873
- const Un = [73, 68, 51], Mn = 2, Js = /* @__PURE__ */ new Map(), Ts = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap();
5882
+ const Mn = [73, 68, 51], bn = 2, Js = /* @__PURE__ */ new Map(), Ts = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap();
5874
5883
  async function Mr() {
5875
5884
  await new Promise((g) => {
5876
5885
  if (typeof requestAnimationFrame == "function") {
@@ -5881,7 +5890,7 @@ async function Mr() {
5881
5890
  });
5882
5891
  }
5883
5892
  function br(g, A) {
5884
- return !!(g.startsWith("audio") || A.length >= 3 && A[0] === Un[0] && A[1] === Un[1] && A[2] === Un[2]);
5893
+ return !!(g.startsWith("audio") || A.length >= 3 && A[0] === Mn[0] && A[1] === Mn[1] && A[2] === Mn[2]);
5885
5894
  }
5886
5895
  async function kr(g) {
5887
5896
  const A = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), e = [];
@@ -5893,8 +5902,8 @@ async function kr(g) {
5893
5902
  }
5894
5903
  I.length !== 0 && e.push([i, I]);
5895
5904
  }
5896
- for (let i = 0; i < e.length; i += Mn) {
5897
- const I = e.slice(i, i + Mn);
5905
+ for (let i = 0; i < e.length; i += bn) {
5906
+ const I = e.slice(i, i + bn);
5898
5907
  await Promise.all(
5899
5908
  I.map(async ([s, n]) => {
5900
5909
  try {
@@ -5905,7 +5914,7 @@ async function kr(g) {
5905
5914
  } catch (B) {
5906
5915
  }
5907
5916
  })
5908
- ), i + Mn < e.length && await Mr();
5917
+ ), i + bn < e.length && await Mr();
5909
5918
  }
5910
5919
  return { movie: g, imageBitmaps: A, audioBlobs: t };
5911
5920
  }
@@ -5931,31 +5940,31 @@ async function gC(g, A, t, e) {
5931
5940
  if (!A) {
5932
5941
  const I = Ts.get(g);
5933
5942
  if (I) return I;
5934
- const s = bn.get(g);
5943
+ const s = kn.get(g);
5935
5944
  if (s) return s;
5936
5945
  }
5937
5946
  if (A) {
5938
- const I = Pn(A);
5947
+ const I = $n(A);
5939
5948
  if (I) return I;
5940
5949
  const s = Js.get(A);
5941
5950
  if (s) return s;
5942
5951
  }
5943
- const i = Kn(async () => {
5952
+ const i = Tn(async () => {
5944
5953
  if (e)
5945
5954
  try {
5946
5955
  const B = new Uint8Array(t).slice().buffer, C = await xr(B);
5947
- return A ? fB(A, C) : Ts.set(g, C), C;
5956
+ return A ? uB(A, C) : Ts.set(g, C), C;
5948
5957
  } catch (B) {
5949
5958
  console.warn("[GiftStage:SVGA] worker parse failed, using main thread", B);
5950
5959
  }
5951
5960
  const I = ws() && OQ(t) || await Er(t), s = ws() && PQ(I) || Sr(I), n = Yr(s);
5952
- return A ? fB(A, n) : Ts.set(g, n), n;
5961
+ return A ? uB(A, n) : Ts.set(g, n), n;
5953
5962
  });
5954
5963
  if (!A) {
5955
5964
  const I = i.finally(() => {
5956
- bn.delete(g);
5965
+ kn.delete(g);
5957
5966
  });
5958
- return bn.set(g, I), I;
5967
+ return kn.set(g, I), I;
5959
5968
  }
5960
5969
  return Js.set(
5961
5970
  A,
@@ -5969,7 +5978,7 @@ async function _r(g, A) {
5969
5978
  const e = typeof g == "string" ? `svga-payload:${g}` : null;
5970
5979
  if (typeof g == "string") {
5971
5980
  if (t = new Uint8Array(await Rs(g)), e) {
5972
- const s = Pn(e);
5981
+ const s = $n(e);
5973
5982
  if (s) return s.params;
5974
5983
  }
5975
5984
  } else {
@@ -5985,16 +5994,16 @@ async function SB(g, A) {
5985
5994
  const e = typeof g == "string" ? `svga-payload:${g}` : null;
5986
5995
  if (typeof g == "string") {
5987
5996
  if (t = new Uint8Array(await Rs(g)), e) {
5988
- const s = Pn(e);
5997
+ const s = $n(e);
5989
5998
  if (s)
5990
- return Kn(async () => GB(s));
5999
+ return Tn(async () => GB(s));
5991
6000
  }
5992
6001
  } else
5993
6002
  t = new Uint8Array(g);
5994
6003
  const i = (A == null ? void 0 : A.useWorker) !== !1 && typeof Worker != "undefined", I = await gC(g, e, t, i);
5995
- return Kn(async () => GB(I));
6004
+ return Tn(async () => GB(I));
5996
6005
  }
5997
- const kn = 24;
6006
+ const Yn = 24;
5998
6007
  async function Lr() {
5999
6008
  await new Promise((g) => {
6000
6009
  if (typeof requestAnimationFrame == "function") {
@@ -6073,13 +6082,13 @@ async function FB(g, A, t = 4096, e = 2, i) {
6073
6082
  const { rects: I, atlasW: s, atlasH: n } = Jr(g, e, t), B = vr(s, n), C = B.getContext("2d");
6074
6083
  if (!C) throw new Error("Atlas: 2d context unavailable");
6075
6084
  C.clearRect(0, 0, s, n);
6076
- for (let o = 0; o < I.length; o += kn) {
6077
- const h = I.slice(o, o + kn);
6085
+ for (let o = 0; o < I.length; o += Yn) {
6086
+ const h = I.slice(o, o + Yn);
6078
6087
  for (const c of h) {
6079
6088
  const f = g.get(c.key);
6080
6089
  C.drawImage(f, c.x, c.y);
6081
6090
  }
6082
- o + kn < I.length && await Lr();
6091
+ o + Yn < I.length && await Lr();
6083
6092
  }
6084
6093
  const Q = (i == null ? void 0 : i.captureEncodedPng) === !0 ? Kr(B) : void 0, a = await createImageBitmap(B, { premultiplyAlpha: "none" }), E = A.createTexture(a, {
6085
6094
  width: s,
@@ -6106,7 +6115,7 @@ async function FB(g, A, t = 4096, e = 2, i) {
6106
6115
  var Tr = Object.defineProperty, IC = (g, A) => {
6107
6116
  for (var t in A)
6108
6117
  Tr(g, t, { get: A[t], enumerable: !0 });
6109
- }, Yn = Math.pow(2, 32), V = Math.pow(2, 32) - 1, qr = 1, Zr = 2, Vr = 4, qs = 1, Zs = 2, Vs = 8, Ws = 16, js = 32, NB = 131072, ms = 1, zs = 4, Gs = 256, Ss = 512, Fs = 1024, Ns = 2048, sC = -1, mA = 0, CA = 1, FA = class nC extends ArrayBuffer {
6118
+ }, _n = Math.pow(2, 32), V = Math.pow(2, 32) - 1, qr = 1, Zr = 2, Vr = 4, qs = 1, Zs = 2, Vs = 8, Ws = 16, js = 32, NB = 131072, ms = 1, zs = 4, Gs = 256, Ss = 512, Fs = 1024, Ns = 2048, sC = -1, mA = 0, CA = 1, FA = class nC extends ArrayBuffer {
6110
6119
  constructor(A) {
6111
6120
  super(A), this.fileStart = 0, this.usedBytes = 0;
6112
6121
  }
@@ -6114,7 +6123,7 @@ var Tr = Object.defineProperty, IC = (g, A) => {
6114
6123
  const e = new nC(A.byteLength);
6115
6124
  return new Uint8Array(e).set(new Uint8Array(A)), e.fileStart = t, e;
6116
6125
  }
6117
- }, xs, qn, R, gA = (R = class {
6126
+ }, xs, Zn, R, gA = (R = class {
6118
6127
  /**
6119
6128
  * DataStream reads scalars, arrays and structs of data from an ArrayBuffer.
6120
6129
  * It's like a file-like DataView on steroids.
@@ -6124,7 +6133,7 @@ var Tr = Object.defineProperty, IC = (g, A) => {
6124
6133
  * @param endianness Endianness of the DataStream (default: BIG_ENDIAN).
6125
6134
  */
6126
6135
  constructor(A, t, e) {
6127
- on(this, xs);
6136
+ hn(this, xs);
6128
6137
  this._byteLength = 0, this.failurePosition = 0, this._dynamicSize = 1, this._byteOffset = t || 0, A instanceof ArrayBuffer ? this.buffer = FA.fromArrayBuffer(A, 0) : A instanceof DataView ? (this.dataView = A, t && (this._byteOffset += t)) : this.buffer = new FA(A || 0), this.position = 0, this.endianness = e || 1;
6129
6138
  }
6130
6139
  getPosition() {
@@ -6559,10 +6568,10 @@ var Tr = Object.defineProperty, IC = (g, A) => {
6559
6568
  return A !== void 0 ? this.position += I - t : t !== e && (this.position += 1), s;
6560
6569
  }
6561
6570
  readInt64() {
6562
- return this.readInt32() * Yn + this.readUint32();
6571
+ return this.readInt32() * _n + this.readUint32();
6563
6572
  }
6564
6573
  readUint64() {
6565
- return this.readUint32() * Yn + this.readUint32();
6574
+ return this.readUint32() * _n + this.readUint32();
6566
6575
  }
6567
6576
  readUint24() {
6568
6577
  return (this.readUint8() << 16) + (this.readUint8() << 8) + this.readUint8();
@@ -7116,7 +7125,7 @@ var Tr = Object.defineProperty, IC = (g, A) => {
7116
7125
  this.writeUCS2String(t, 1, i);
7117
7126
  break;
7118
7127
  default:
7119
- if (hn(this, xs, qn).call(this, n)) {
7128
+ if (cn(this, xs, Zn).call(this, n)) {
7120
7129
  const [, B] = n;
7121
7130
  for (let C = 0; C < t.length; C++)
7122
7131
  this.writeType(B, t[C]);
@@ -7130,7 +7139,7 @@ var Tr = Object.defineProperty, IC = (g, A) => {
7130
7139
  }
7131
7140
  /** @bundle DataStream-write.js */
7132
7141
  writeUint64(A) {
7133
- const t = Math.floor(A / Yn);
7142
+ const t = Math.floor(A / _n);
7134
7143
  this.writeUint32(t), this.writeUint32(A & 4294967295);
7135
7144
  }
7136
7145
  /** @bundle DataStream-write.js */
@@ -7394,7 +7403,7 @@ var Tr = Object.defineProperty, IC = (g, A) => {
7394
7403
  );
7395
7404
  break;
7396
7405
  default:
7397
- if (hn(this, xs, qn).call(this, n)) {
7406
+ if (cn(this, xs, Zn).call(this, n)) {
7398
7407
  const [, B, C] = n, Q = typeof C == "function" ? C(t, this, n) : typeof C == "string" && t[C] !== void 0 ? (
7399
7408
  // @ts-expect-error FIXME: Struct[string] is currently of type Type
7400
7409
  parseInt(t[C])
@@ -7592,7 +7601,7 @@ var Tr = Object.defineProperty, IC = (g, A) => {
7592
7601
  const e = new Float32Array(this._buffer, this.byteOffset + this.position, A);
7593
7602
  return R.arrayToNative(e, t != null ? t : this.endianness), this.position += A * 4, e;
7594
7603
  }
7595
- }, xs = new WeakSet(), qn = function(A) {
7604
+ }, xs = new WeakSet(), Zn = function(A) {
7596
7605
  return Array.isArray(A) && A.length === 3 && A[0] === "[]";
7597
7606
  }, R.ENDIANNESS = new Int8Array(new Int16Array([1]).buffer)[0] > 0 ? 2 : 1, R);
7598
7607
  function RB(g) {
@@ -7901,19 +7910,19 @@ var Os = class extends gA {
7901
7910
  const g = this.buffers[this.buffers.length - 1];
7902
7911
  return g.fileStart + g.byteLength;
7903
7912
  }
7904
- }, Us, OA, m = (OA = class {
7913
+ }, Us, PA, m = (PA = class {
7905
7914
  constructor(A = 0) {
7906
7915
  // Handle box designation (4CC)
7907
7916
  // Instance-defined type (used for dynamic box types)
7908
- on(this, Us);
7917
+ hn(this, Us);
7909
7918
  this.size = A;
7910
7919
  }
7911
7920
  get type() {
7912
7921
  var A;
7913
- return (A = this.constructor.fourcc) != null ? A : IB(this, Us);
7922
+ return (A = this.constructor.fourcc) != null ? A : sB(this, Us);
7914
7923
  }
7915
7924
  set type(A) {
7916
- sB(this, Us, A);
7925
+ nB(this, Us, A);
7917
7926
  }
7918
7927
  addBox(A) {
7919
7928
  return this.boxes || (this.boxes = []), this.boxes.push(A), this[A.type + "s"] ? this[A.type + "s"].push(A) : this[A.type] = A, A;
@@ -7983,7 +7992,7 @@ var Os = class extends gA {
7983
7992
  const t = A.getPosition(), e = this.start + this.size;
7984
7993
  return t === e;
7985
7994
  }
7986
- }, Us = new WeakMap(), OA.registryId = Symbol.for("BoxIdentifier"), OA), w = class extends m {
7995
+ }, Us = new WeakMap(), PA.registryId = Symbol.for("BoxIdentifier"), PA), w = class extends m {
7987
7996
  constructor() {
7988
7997
  super(...arguments), this.flags = 0, this.version = 0;
7989
7998
  }
@@ -8007,7 +8016,7 @@ var Os = class extends gA {
8007
8016
  parse(g) {
8008
8017
  this.parseFullHeader(g), this.data = g.readUint8Array(this.size - this.hdr_size);
8009
8018
  }
8010
- }, PA, T = (PA = class {
8019
+ }, $A, T = ($A = class {
8011
8020
  constructor(A) {
8012
8021
  this.grouping_type = A;
8013
8022
  }
@@ -8019,7 +8028,7 @@ var Os = class extends gA {
8019
8028
  parse(A) {
8020
8029
  l.warn("BoxParser", `Unknown sample group type: '${this.grouping_type}'`), this.data = A.readUint8Array(this.description_length);
8021
8030
  }
8022
- }, PA.registryId = Symbol.for("SampleGroupEntryIdentifier"), PA), jr = class extends w {
8031
+ }, $A.registryId = Symbol.for("SampleGroupEntryIdentifier"), $A), jr = class extends w {
8023
8032
  /** @bundle parsing/TrackGroup.js */
8024
8033
  parse(g) {
8025
8034
  this.parseFullHeader(g), this.track_group_id = g.readUint32();
@@ -8061,7 +8070,7 @@ var Os = class extends gA {
8061
8070
  write(g) {
8062
8071
  this.size = this.track_ids.length * 4, this.writeHeader(g), g.writeUint32Array(this.track_ids);
8063
8072
  }
8064
- }, Zn = [
8073
+ }, Vn = [
8065
8074
  "boxes",
8066
8075
  "entries",
8067
8076
  "references",
@@ -8094,7 +8103,7 @@ function $r(g, A) {
8094
8103
  if (g && !A) return !1;
8095
8104
  let t;
8096
8105
  for (t in g)
8097
- if (!Zn.find((e) => e === t)) {
8106
+ if (!Vn.find((e) => e === t)) {
8098
8107
  if (g[t] instanceof m || A[t] instanceof m)
8099
8108
  continue;
8100
8109
  if (typeof g[t] == "undefined" || typeof A[t] == "undefined")
@@ -8115,14 +8124,14 @@ function $r(g, A) {
8115
8124
  function BC(g, A) {
8116
8125
  if (!$r(g, A))
8117
8126
  return !1;
8118
- for (let t = 0; t < Zn.length; t++) {
8119
- const e = Zn[t];
8127
+ for (let t = 0; t < Vn.length; t++) {
8128
+ const e = Vn[t];
8120
8129
  if (g[e] && A[e] && !BC(g[e], A[e]))
8121
8130
  return !1;
8122
8131
  }
8123
8132
  return !0;
8124
8133
  }
8125
- function tB(g) {
8134
+ function eB(g) {
8126
8135
  let A = g;
8127
8136
  for (; A; ) {
8128
8137
  if ("registryId" in A)
@@ -8132,13 +8141,13 @@ function tB(g) {
8132
8141
  }
8133
8142
  var AE = (g) => {
8134
8143
  const A = Symbol.for("SampleGroupEntryIdentifier");
8135
- return tB(g) === A;
8144
+ return eB(g) === A;
8136
8145
  }, tE = (g) => {
8137
8146
  const A = Symbol.for("SampleEntryIdentifier");
8138
- return tB(g) === A;
8147
+ return eB(g) === A;
8139
8148
  }, eE = (g) => {
8140
8149
  const A = Symbol.for("BoxIdentifier");
8141
- return tB(g) === A;
8150
+ return eB(g) === A;
8142
8151
  }, IA = {
8143
8152
  uuid: {},
8144
8153
  sampleEntry: {},
@@ -8202,14 +8211,14 @@ function iE(g) {
8202
8211
  }
8203
8212
  return IA.uuid = { ...A.uuid }, IA.sampleEntry = { ...A.sampleEntry }, IA.sampleGroupEntry = { ...A.sampleGroupEntry }, IA.box = { ...A.box }, IA;
8204
8213
  }
8205
- var sn = {};
8214
+ var nn = {};
8206
8215
  function gE(g) {
8207
- return Object.entries(g).forEach(([A, t]) => sn[A] = t), sn;
8216
+ return Object.entries(g).forEach(([A, t]) => nn[A] = t), nn;
8208
8217
  }
8209
8218
  function IE(g) {
8210
- return LA(g);
8219
+ return JA(g);
8211
8220
  }
8212
- function LA(g) {
8221
+ function JA(g) {
8213
8222
  let A = "";
8214
8223
  for (let t = 0; t < 16; t++) {
8215
8224
  const e = g.readUint8().toString(16);
@@ -8333,7 +8342,7 @@ var U = class extends m {
8333
8342
  } else
8334
8343
  return;
8335
8344
  }
8336
- }, $A, wA = ($A = class extends U {
8345
+ }, At, wA = (At = class extends U {
8337
8346
  constructor(A, t, e) {
8338
8347
  super(A), this.hdr_size = t, this.start = e;
8339
8348
  }
@@ -8412,13 +8421,13 @@ var U = class extends m {
8412
8421
  write(A) {
8413
8422
  this.writeHeader(A), A.writeUint8Array(this.data), this.size += this.data.length, l.debug("BoxWriter", "Adjusting box " + this.type + " with new size " + this.size), A.adjustUint32(this.sizePosition, this.size);
8414
8423
  }
8415
- }, $A.registryId = Symbol.for("SampleEntryIdentifier"), $A), bB = class extends wA {
8424
+ }, At.registryId = Symbol.for("SampleEntryIdentifier"), At), bB = class extends wA {
8416
8425
  }, Is = class extends wA {
8417
8426
  /** @bundle box-codecs.js */
8418
8427
  isMetadata() {
8419
8428
  return !0;
8420
8429
  }
8421
- }, JA = class extends wA {
8430
+ }, HA = class extends wA {
8422
8431
  /** @bundle box-codecs.js */
8423
8432
  isSubtitle() {
8424
8433
  return !0;
@@ -8471,7 +8480,7 @@ var U = class extends m {
8471
8480
  write(g) {
8472
8481
  this.writeHeader(g), this.size += 20, g.writeUint32(0), g.writeUint32(0), g.writeUint16(this.channel_count), g.writeUint16(this.samplesize), g.writeUint16(0), g.writeUint16(0), g.writeUint32(this.samplerate << 16), this.writeFooter(g);
8473
8482
  }
8474
- }, eB = class extends wA {
8483
+ }, iB = class extends wA {
8475
8484
  parse(g) {
8476
8485
  this.parseHeader(g), this.parseFooter(g);
8477
8486
  }
@@ -8491,7 +8500,7 @@ var U = class extends m {
8491
8500
  }
8492
8501
  return g += "</tbody></table>", g;
8493
8502
  }
8494
- }, At, CC = (At = class extends m {
8503
+ }, tt, CC = (tt = class extends m {
8495
8504
  constructor() {
8496
8505
  super(...arguments), this.box_name = "AVCConfigurationBox";
8497
8506
  }
@@ -8525,162 +8534,162 @@ var U = class extends m {
8525
8534
  A.writeUint16(this.PPS[t].length), A.writeUint8Array(this.PPS[t].data);
8526
8535
  this.ext && A.writeUint8Array(this.ext);
8527
8536
  }
8528
- }, At.fourcc = "avcC", At), tt, Ps = (tt = class extends m {
8537
+ }, tt.fourcc = "avcC", tt), et, Ps = (et = class extends m {
8529
8538
  constructor() {
8530
8539
  super(...arguments), this.box_name = "MediaDataBox";
8531
8540
  }
8532
- }, tt.fourcc = "mdat", tt), et, nE = (et = class extends m {
8541
+ }, et.fourcc = "mdat", et), it, nE = (it = class extends m {
8533
8542
  constructor() {
8534
8543
  super(...arguments), this.box_name = "ItemDataBox";
8535
8544
  }
8536
- }, et.fourcc = "idat", et), it, BE = (it = class extends m {
8545
+ }, it.fourcc = "idat", it), gt, BE = (gt = class extends m {
8537
8546
  constructor() {
8538
8547
  super(...arguments), this.box_name = "FreeSpaceBox";
8539
8548
  }
8540
- }, it.fourcc = "free", it), gt, CE = (gt = class extends m {
8549
+ }, gt.fourcc = "free", gt), It, CE = (It = class extends m {
8541
8550
  constructor() {
8542
8551
  super(...arguments), this.box_name = "FreeSpaceBox";
8543
8552
  }
8544
- }, gt.fourcc = "skip", gt), It, QC = (It = class extends w {
8553
+ }, It.fourcc = "skip", It), st, QC = (st = class extends w {
8545
8554
  constructor() {
8546
8555
  super(...arguments), this.box_name = "HintMediaHeaderBox";
8547
8556
  }
8548
- }, It.fourcc = "hmhd", It), st, $s = (st = class extends w {
8557
+ }, st.fourcc = "hmhd", st), nt, $s = (nt = class extends w {
8549
8558
  constructor() {
8550
8559
  super(...arguments), this.box_name = "NullMediaHeaderBox";
8551
8560
  }
8552
- }, st.fourcc = "nmhd", st), nt, QE = (nt = class extends w {
8561
+ }, nt.fourcc = "nmhd", nt), Bt, QE = (Bt = class extends w {
8553
8562
  constructor() {
8554
8563
  super(...arguments), this.box_name = "ObjectDescriptorBox";
8555
8564
  }
8556
- }, nt.fourcc = "iods", nt), Bt, aE = (Bt = class extends w {
8565
+ }, Bt.fourcc = "iods", Bt), Ct, aE = (Ct = class extends w {
8557
8566
  constructor() {
8558
8567
  super(...arguments), this.box_name = "XMLBox";
8559
8568
  }
8560
- }, Bt.fourcc = "xml ", Bt), Ct, rE = (Ct = class extends w {
8569
+ }, Ct.fourcc = "xml ", Ct), Qt, rE = (Qt = class extends w {
8561
8570
  constructor() {
8562
8571
  super(...arguments), this.box_name = "BinaryXMLBox";
8563
8572
  }
8564
- }, Ct.fourcc = "bxml", Ct), Qt, EE = (Qt = class extends w {
8573
+ }, Qt.fourcc = "bxml", Qt), at, EE = (at = class extends w {
8565
8574
  constructor() {
8566
8575
  super(...arguments), this.box_name = "ItemProtectionBox", this.sinfs = [];
8567
8576
  }
8568
8577
  get protections() {
8569
8578
  return this.sinfs;
8570
8579
  }
8571
- }, Qt.fourcc = "ipro", Qt), at, Vn = (at = class extends U {
8580
+ }, at.fourcc = "ipro", at), rt, Wn = (rt = class extends U {
8572
8581
  constructor() {
8573
8582
  super(...arguments), this.box_name = "MovieBox", this.traks = [], this.psshs = [], this.subBoxNames = ["trak", "pssh"];
8574
8583
  }
8575
- }, at.fourcc = "moov", at), rt, aC = (rt = class extends U {
8584
+ }, rt.fourcc = "moov", rt), Et, aC = (Et = class extends U {
8576
8585
  constructor() {
8577
8586
  super(...arguments), this.box_name = "TrackBox", this.samples = [];
8578
8587
  }
8579
- }, rt.fourcc = "trak", rt), Et, oE = (Et = class extends U {
8588
+ }, Et.fourcc = "trak", Et), ot, oE = (ot = class extends U {
8580
8589
  constructor() {
8581
8590
  super(...arguments), this.box_name = "EditBox";
8582
8591
  }
8583
- }, Et.fourcc = "edts", Et), ot, rC = (ot = class extends U {
8592
+ }, ot.fourcc = "edts", ot), ht, rC = (ht = class extends U {
8584
8593
  constructor() {
8585
8594
  super(...arguments), this.box_name = "MediaBox";
8586
8595
  }
8587
- }, ot.fourcc = "mdia", ot), ht, EC = (ht = class extends U {
8596
+ }, ht.fourcc = "mdia", ht), ct, EC = (ct = class extends U {
8588
8597
  constructor() {
8589
8598
  super(...arguments), this.box_name = "MediaInformationBox";
8590
8599
  }
8591
- }, ht.fourcc = "minf", ht), ct, oC = (ct = class extends U {
8600
+ }, ct.fourcc = "minf", ct), lt, oC = (lt = class extends U {
8592
8601
  constructor() {
8593
8602
  super(...arguments), this.box_name = "DataInformationBox";
8594
8603
  }
8595
- }, ct.fourcc = "dinf", ct), lt, hC = (lt = class extends U {
8604
+ }, lt.fourcc = "dinf", lt), dt, hC = (dt = class extends U {
8596
8605
  constructor() {
8597
8606
  super(...arguments), this.box_name = "SampleTableBox", this.sgpds = [], this.sbgps = [], this.subBoxNames = ["sgpd", "sbgp"];
8598
8607
  }
8599
- }, lt.fourcc = "stbl", lt), dt, Wn = (dt = class extends U {
8608
+ }, dt.fourcc = "stbl", dt), ft, jn = (ft = class extends U {
8600
8609
  constructor() {
8601
8610
  super(...arguments), this.box_name = "MovieExtendsBox", this.trexs = [], this.subBoxNames = ["trex"];
8602
8611
  }
8603
- }, dt.fourcc = "mvex", dt), ft, cC = (ft = class extends U {
8612
+ }, ft.fourcc = "mvex", ft), ut, cC = (ut = class extends U {
8604
8613
  constructor() {
8605
8614
  super(...arguments), this.box_name = "MovieFragmentBox", this.trafs = [], this.subBoxNames = ["traf"];
8606
8615
  }
8607
- }, ft.fourcc = "moof", ft), ut, lC = (ut = class extends U {
8616
+ }, ut.fourcc = "moof", ut), wt, lC = (wt = class extends U {
8608
8617
  constructor() {
8609
8618
  super(...arguments), this.box_name = "TrackFragmentBox", this.truns = [], this.sgpds = [], this.sbgps = [], this.subBoxNames = ["trun", "sgpd", "sbgp"];
8610
8619
  }
8611
- }, ut.fourcc = "traf", ut), wt, hE = (wt = class extends U {
8620
+ }, wt.fourcc = "traf", wt), Dt, hE = (Dt = class extends U {
8612
8621
  constructor() {
8613
8622
  super(...arguments), this.box_name = "VTTCueBox";
8614
8623
  }
8615
- }, wt.fourcc = "vttc", wt), Dt, cE = (Dt = class extends U {
8624
+ }, Dt.fourcc = "vttc", Dt), pt, cE = (pt = class extends U {
8616
8625
  constructor() {
8617
8626
  super(...arguments), this.box_name = "MovieFragmentRandomAccessBox", this.tfras = [], this.subBoxNames = ["tfra"];
8618
8627
  }
8619
- }, Dt.fourcc = "mfra", Dt), pt, lE = (pt = class extends U {
8628
+ }, pt.fourcc = "mfra", pt), yt, lE = (yt = class extends U {
8620
8629
  constructor() {
8621
8630
  super(...arguments), this.box_name = "AdditionalMetadataContainerBox";
8622
8631
  }
8623
- }, pt.fourcc = "meco", pt), yt, dE = (yt = class extends U {
8632
+ }, yt.fourcc = "meco", yt), mt, dE = (mt = class extends U {
8624
8633
  constructor() {
8625
8634
  super(...arguments), this.box_name = "trackhintinformation", this.subBoxNames = ["sdp ", "rtp "];
8626
8635
  }
8627
- }, yt.fourcc = "hnti", yt), mt, fE = (mt = class extends U {
8636
+ }, mt.fourcc = "hnti", mt), Gt, fE = (Gt = class extends U {
8628
8637
  constructor() {
8629
8638
  super(...arguments), this.box_name = "hintstatisticsbox", this.maxrs = [], this.subBoxNames = ["maxr"];
8630
8639
  }
8631
- }, mt.fourcc = "hinf", mt), Gt, uE = (Gt = class extends U {
8640
+ }, Gt.fourcc = "hinf", Gt), St, uE = (St = class extends U {
8632
8641
  constructor() {
8633
8642
  super(...arguments), this.box_name = "SubTrackBox";
8634
8643
  }
8635
- }, Gt.fourcc = "strk", Gt), St, wE = (St = class extends U {
8644
+ }, St.fourcc = "strk", St), Ft, wE = (Ft = class extends U {
8636
8645
  constructor() {
8637
8646
  super(...arguments), this.box_name = "SubTrackDefinitionBox";
8638
8647
  }
8639
- }, St.fourcc = "strd", St), Ft, DE = (Ft = class extends U {
8648
+ }, Ft.fourcc = "strd", Ft), Nt, DE = (Nt = class extends U {
8640
8649
  constructor() {
8641
8650
  super(...arguments), this.box_name = "ProtectionSchemeInfoBox";
8642
8651
  }
8643
- }, Ft.fourcc = "sinf", Ft), Nt, pE = (Nt = class extends U {
8652
+ }, Nt.fourcc = "sinf", Nt), Rt, pE = (Rt = class extends U {
8644
8653
  constructor() {
8645
8654
  super(...arguments), this.box_name = "RestrictedSchemeInfoBox";
8646
8655
  }
8647
- }, Nt.fourcc = "rinf", Nt), Rt, yE = (Rt = class extends U {
8656
+ }, Rt.fourcc = "rinf", Rt), xt, yE = (xt = class extends U {
8648
8657
  constructor() {
8649
8658
  super(...arguments), this.box_name = "SchemeInformationBox";
8650
8659
  }
8651
- }, Rt.fourcc = "schi", Rt), xt, mE = (xt = class extends U {
8660
+ }, xt.fourcc = "schi", xt), Ut, mE = (Ut = class extends U {
8652
8661
  constructor() {
8653
8662
  super(...arguments), this.box_name = "TrackGroupBox";
8654
8663
  }
8655
- }, xt.fourcc = "trgr", xt), Ut, GE = (Ut = class extends U {
8664
+ }, Ut.fourcc = "trgr", Ut), Mt, GE = (Mt = class extends U {
8656
8665
  constructor() {
8657
8666
  super(...arguments), this.box_name = "UserDataBox", this.kinds = [], this.strks = [], this.subBoxNames = ["kind", "strk"];
8658
8667
  }
8659
- }, Ut.fourcc = "udta", Ut), Mt, SE = (Mt = class extends U {
8668
+ }, Mt.fourcc = "udta", Mt), bt, SE = (bt = class extends U {
8660
8669
  constructor() {
8661
8670
  super(...arguments), this.box_name = "ItemPropertiesBox", this.ipmas = [], this.subBoxNames = ["ipma"];
8662
8671
  }
8663
- }, Mt.fourcc = "iprp", Mt), bt, FE = (bt = class extends U {
8672
+ }, bt.fourcc = "iprp", bt), kt, FE = (kt = class extends U {
8664
8673
  constructor() {
8665
8674
  super(...arguments), this.box_name = "ItemPropertyContainerBox", this.hvcCs = [], this.ispes = [], this.claps = [], this.irots = [], this.subBoxNames = ["hvcC", "ispe", "clap", "irot"];
8666
8675
  }
8667
- }, bt.fourcc = "ipco", bt), kt, NE = (kt = class extends U {
8676
+ }, kt.fourcc = "ipco", kt), Yt, NE = (Yt = class extends U {
8668
8677
  constructor() {
8669
8678
  super(...arguments), this.box_name = "GroupsListBox";
8670
8679
  }
8671
- }, kt.fourcc = "grpl", kt), Yt, RE = (Yt = class extends U {
8680
+ }, Yt.fourcc = "grpl", Yt), _t, RE = (_t = class extends U {
8672
8681
  constructor() {
8673
8682
  super(...arguments), this.box_name = "J2KHeaderInfoBox";
8674
8683
  }
8675
- }, Yt.fourcc = "j2kH", Yt), _t, xE = (_t = class extends U {
8684
+ }, _t.fourcc = "j2kH", _t), Lt, xE = (Lt = class extends U {
8676
8685
  constructor() {
8677
8686
  super(...arguments), this.box_name = "ExtendedTypeBox", this.tycos = [], this.subBoxNames = ["tyco"];
8678
8687
  }
8679
- }, _t.fourcc = "etyp", _t), Lt, UE = (Lt = class extends U {
8688
+ }, Lt.fourcc = "etyp", Lt), Jt, UE = (Jt = class extends U {
8680
8689
  constructor() {
8681
8690
  super(...arguments), this.box_name = "ProjectedOmniVideoBox", this.subBoxNames = ["prfr"];
8682
8691
  }
8683
- }, Lt.fourcc = "povd", Lt), Jt, dC = (Jt = class extends w {
8692
+ }, Jt.fourcc = "povd", Jt), Ht, dC = (Ht = class extends w {
8684
8693
  constructor() {
8685
8694
  super(...arguments), this.box_name = "DataReferenceBox";
8686
8695
  }
@@ -8703,7 +8712,7 @@ var U = class extends m {
8703
8712
  this.entries[t].write(A), this.size += this.entries[t].size;
8704
8713
  l.debug("BoxWriter", "Adjusting box " + this.type + " with new size " + this.size), A.adjustUint32(this.sizePosition, this.size);
8705
8714
  }
8706
- }, Jt.fourcc = "dref", Jt), Ht, fC = (Ht = class extends w {
8715
+ }, Ht.fourcc = "dref", Ht), vt, fC = (vt = class extends w {
8707
8716
  constructor() {
8708
8717
  super(...arguments), this.box_name = "ExtendedLanguageBox";
8709
8718
  }
@@ -8714,7 +8723,7 @@ var U = class extends m {
8714
8723
  write(A) {
8715
8724
  this.version = 0, this.flags = 0, this.size = this.extended_language.length, this.writeHeader(A), A.writeString(this.extended_language);
8716
8725
  }
8717
- }, Ht.fourcc = "elng", Ht), vt, uC = (vt = class extends m {
8726
+ }, vt.fourcc = "elng", vt), Kt, uC = (Kt = class extends m {
8718
8727
  constructor() {
8719
8728
  super(...arguments), this.box_name = "FileTypeBox";
8720
8729
  }
@@ -8731,7 +8740,7 @@ var U = class extends m {
8731
8740
  for (let t = 0; t < this.compatible_brands.length; t++)
8732
8741
  A.writeString(this.compatible_brands[t], void 0, 4);
8733
8742
  }
8734
- }, vt.fourcc = "ftyp", vt), Kt, wC = (Kt = class extends w {
8743
+ }, Kt.fourcc = "ftyp", Kt), Tt, wC = (Tt = class extends w {
8735
8744
  constructor() {
8736
8745
  super(...arguments), this.box_name = "HandlerBox";
8737
8746
  }
@@ -8750,7 +8759,7 @@ var U = class extends m {
8750
8759
  write(A) {
8751
8760
  this.size = 20 + this.name.length + 1, this.version = 0, this.flags = 0, this.writeHeader(A), A.writeUint32(0), A.writeString(this.handler, void 0, 4), A.writeUint32Array([0, 0, 0]), A.writeCString(this.name);
8752
8761
  }
8753
- }, Kt.fourcc = "hdlr", Kt), Tt, DC = (Tt = class extends m {
8762
+ }, Tt.fourcc = "hdlr", Tt), qt, DC = (qt = class extends m {
8754
8763
  constructor() {
8755
8764
  super(...arguments), this.box_name = "HEVCConfigurationBox";
8756
8765
  }
@@ -8790,7 +8799,7 @@ var U = class extends m {
8790
8799
  A.writeUint16(this.nalu_arrays[t][e].data.length), A.writeUint8Array(this.nalu_arrays[t][e].data);
8791
8800
  }
8792
8801
  }
8793
- }, Tt.fourcc = "hvcC", Tt), qt, pC = (qt = class extends w {
8802
+ }, qt.fourcc = "hvcC", qt), Zt, pC = (Zt = class extends w {
8794
8803
  constructor() {
8795
8804
  super(...arguments), this.box_name = "MediaHeaderBox";
8796
8805
  }
@@ -8802,7 +8811,7 @@ var U = class extends m {
8802
8811
  const t = this.modification_time > V || this.creation_time > V || this.duration > V || this.version === 1;
8803
8812
  this.version = t ? 1 : 0, this.size = 20, this.size += t ? 12 : 0, this.flags = 0, this.writeHeader(A), t ? (A.writeUint64(this.creation_time), A.writeUint64(this.modification_time), A.writeUint32(this.timescale), A.writeUint64(this.duration)) : (A.writeUint32(this.creation_time), A.writeUint32(this.modification_time), A.writeUint32(this.timescale), A.writeUint32(this.duration)), A.writeUint16(this.language), A.writeUint16(0);
8804
8813
  }
8805
- }, qt.fourcc = "mdhd", qt), Zt, yC = (Zt = class extends w {
8814
+ }, Zt.fourcc = "mdhd", Zt), Vt, yC = (Vt = class extends w {
8806
8815
  constructor() {
8807
8816
  super(...arguments), this.box_name = "MovieExtendsHeaderBox";
8808
8817
  }
@@ -8814,7 +8823,7 @@ var U = class extends m {
8814
8823
  const t = this.fragment_duration > V || this.version === 1;
8815
8824
  this.version = t ? 1 : 0, this.size = 4, this.size += t ? 4 : 0, this.flags = 0, this.writeHeader(A), t ? A.writeUint64(this.fragment_duration) : A.writeUint32(this.fragment_duration);
8816
8825
  }
8817
- }, Zt.fourcc = "mehd", Zt), Vt, ME = (Vt = class extends w {
8826
+ }, Vt.fourcc = "mehd", Vt), Wt, ME = (Wt = class extends w {
8818
8827
  constructor() {
8819
8828
  super(...arguments), this.box_name = "ItemInfoEntry";
8820
8829
  }
@@ -8825,7 +8834,7 @@ var U = class extends m {
8825
8834
  }
8826
8835
  this.version >= 2 && (this.version === 2 ? this.item_ID = A.readUint16() : this.version === 3 && (this.item_ID = A.readUint32()), this.item_protection_index = A.readUint16(), this.item_type = A.readString(4), this.item_name = A.readCString(), this.item_type === "mime" ? (this.content_type = A.readCString(), this.content_encoding = A.readCString()) : this.item_type === "uri " && (this.item_uri_type = A.readCString()));
8827
8836
  }
8828
- }, Vt.fourcc = "infe", Vt), Wt, bE = (Wt = class extends w {
8837
+ }, Wt.fourcc = "infe", Wt), jt, bE = (jt = class extends w {
8829
8838
  constructor() {
8830
8839
  super(...arguments), this.box_name = "ItemInfoBox";
8831
8840
  }
@@ -8840,7 +8849,7 @@ var U = class extends m {
8840
8849
  return;
8841
8850
  }
8842
8851
  }
8843
- }, Wt.fourcc = "iinf", Wt), jt, kE = (jt = class extends w {
8852
+ }, jt.fourcc = "iinf", jt), zt, kE = (zt = class extends w {
8844
8853
  constructor() {
8845
8854
  super(...arguments), this.box_name = "ItemLocationBox";
8846
8855
  }
@@ -8932,7 +8941,7 @@ var U = class extends m {
8932
8941
  });
8933
8942
  }
8934
8943
  }
8935
- }, jt.fourcc = "iloc", jt), YE = {
8944
+ }, zt.fourcc = "iloc", zt), YE = {
8936
8945
  auxl: "Auxiliary image item",
8937
8946
  base: "Pre-derived image item base",
8938
8947
  cdsc: "Item describes referenced item",
@@ -8995,14 +9004,14 @@ var U = class extends m {
8995
9004
  "tbas",
8996
9005
  "text",
8997
9006
  "thmb"
8998
- ], RA), zt, LE = (zt = class extends w {
9007
+ ], RA), Xt, LE = (Xt = class extends w {
8999
9008
  constructor() {
9000
9009
  super(...arguments), this.box_name = "PrimaryItemBox";
9001
9010
  }
9002
9011
  parse(A) {
9003
9012
  this.parseFullHeader(A), this.version === 0 ? this.item_id = A.readUint16() : this.item_id = A.readUint32();
9004
9013
  }
9005
- }, zt.fourcc = "pitm", zt), Xt, JE = (Xt = class extends w {
9014
+ }, Xt.fourcc = "pitm", Xt), Ot, JE = (Ot = class extends w {
9006
9015
  constructor() {
9007
9016
  super(...arguments), this.box_name = "MetaBox", this.isQT = !1;
9008
9017
  }
@@ -9023,7 +9032,7 @@ var U = class extends m {
9023
9032
  }
9024
9033
  this.isQT || this.parseFullHeader(A), U.prototype.parse.call(this, A);
9025
9034
  }
9026
- }, Xt.fourcc = "meta", Xt), Ot, mC = (Ot = class extends w {
9035
+ }, Ot.fourcc = "meta", Ot), Pt, mC = (Pt = class extends w {
9027
9036
  constructor() {
9028
9037
  super(...arguments), this.box_name = "MovieFragmentHeaderBox";
9029
9038
  }
@@ -9034,7 +9043,7 @@ var U = class extends m {
9034
9043
  write(A) {
9035
9044
  this.version = 0, this.flags = 0, this.size = 4, this.writeHeader(A), A.writeUint32(this.sequence_number);
9036
9045
  }
9037
- }, Ot.fourcc = "mfhd", Ot), Pt, GC = (Pt = class extends w {
9046
+ }, Pt.fourcc = "mfhd", Pt), $t, GC = ($t = class extends w {
9038
9047
  constructor() {
9039
9048
  super(...arguments), this.box_name = "MovieHeaderBox";
9040
9049
  }
@@ -9050,15 +9059,15 @@ var U = class extends m {
9050
9059
  print(A) {
9051
9060
  super.printHeader(A), A.log(A.indent + "creation_time: " + this.creation_time), A.log(A.indent + "modification_time: " + this.modification_time), A.log(A.indent + "timescale: " + this.timescale), A.log(A.indent + "duration: " + this.duration), A.log(A.indent + "rate: " + this.rate), A.log(A.indent + "volume: " + (this.volume >> 8)), A.log(A.indent + "matrix: " + this.matrix.join(", ")), A.log(A.indent + "next_track_id: " + this.next_track_id);
9052
9061
  }
9053
- }, Pt.fourcc = "mvhd", Pt), $t, HE = ($t = class extends Is {
9062
+ }, $t.fourcc = "mvhd", $t), Ae, HE = (Ae = class extends Is {
9054
9063
  parse(A) {
9055
9064
  this.parseHeader(A), this.content_encoding = A.readCString(), this.mime_format = A.readCString(), this.parseFooter(A);
9056
9065
  }
9057
- }, $t.fourcc = "mett", $t), Ae, vE = (Ae = class extends Is {
9066
+ }, Ae.fourcc = "mett", Ae), te, vE = (te = class extends Is {
9058
9067
  parse(A) {
9059
9068
  this.parseHeader(A), this.content_encoding = A.readCString(), this.namespace = A.readCString(), this.schema_location = A.readCString(), this.parseFooter(A);
9060
9069
  }
9061
- }, Ae.fourcc = "metx", Ae), te, KE = (te = class extends m {
9070
+ }, te.fourcc = "metx", te), ee, KE = (ee = class extends m {
9062
9071
  constructor() {
9063
9072
  super(...arguments), this.box_name = "AV1CodecConfigurationBox";
9064
9073
  }
@@ -9085,19 +9094,19 @@ var U = class extends m {
9085
9094
  const e = this.size - this.hdr_size - 4;
9086
9095
  this.configOBUs = A.readUint8Array(e);
9087
9096
  }
9088
- }, te.fourcc = "av1C", te), ee, TE = (ee = class extends w {
9097
+ }, ee.fourcc = "av1C", ee), ie, TE = (ie = class extends w {
9089
9098
  constructor() {
9090
9099
  super(...arguments), this.box_name = "ElementaryStreamDescriptorBox";
9091
9100
  }
9092
9101
  parse(A) {
9093
9102
  this.parseFullHeader(A);
9094
9103
  const t = A.readUint8Array(this.size - this.hdr_size);
9095
- if ("MPEG4DescriptorParser" in sn) {
9096
- const e = new sn.MPEG4DescriptorParser();
9104
+ if ("MPEG4DescriptorParser" in nn) {
9105
+ const e = new nn.MPEG4DescriptorParser();
9097
9106
  this.esd = e.parseOneDescriptor(new gA(t.buffer, 0));
9098
9107
  }
9099
9108
  }
9100
- }, ee.fourcc = "esds", ee), ie, qE = (ie = class extends w {
9109
+ }, ie.fourcc = "esds", ie), ge, qE = (ge = class extends w {
9101
9110
  constructor() {
9102
9111
  super(...arguments), this.box_name = "VPCodecConfigurationRecord";
9103
9112
  }
@@ -9112,7 +9121,7 @@ var U = class extends m {
9112
9121
  this.bitDepth = t >> 4 & 15, this.colorSpace = t & 15, t = A.readUint8(), this.chromaSubsampling = t >> 4 & 15, this.transferFunction = t >> 1 & 7, this.videoFullRangeFlag = t & 1, this.codecIntializationDataSize = A.readUint16(), this.codecIntializationData = A.readUint8Array(this.codecIntializationDataSize);
9113
9122
  }
9114
9123
  }
9115
- }, ie.fourcc = "vpcC", ie), ge, ZE = (ge = class extends w {
9124
+ }, ge.fourcc = "vpcC", ge), Ie, ZE = (Ie = class extends w {
9116
9125
  constructor() {
9117
9126
  super(...arguments), this.box_name = "VvcConfigurationBox";
9118
9127
  }
@@ -9180,7 +9189,7 @@ var U = class extends m {
9180
9189
  }
9181
9190
  }
9182
9191
  }
9183
- }, ge.fourcc = "vvcC", ge), Ie, VE = (Ie = class extends m {
9192
+ }, Ie.fourcc = "vvcC", Ie), se, VE = (se = class extends m {
9184
9193
  constructor() {
9185
9194
  super(...arguments), this.box_name = "ColourInformationBox";
9186
9195
  }
@@ -9191,38 +9200,38 @@ var U = class extends m {
9191
9200
  this.full_range_flag = t >> 7;
9192
9201
  } else this.colour_type === "rICC" ? this.ICC_profile = A.readUint8Array(this.size - 4) : this.colour_type === "prof" && (this.ICC_profile = A.readUint8Array(this.size - 4));
9193
9202
  }
9194
- }, Ie.fourcc = "colr", Ie);
9195
- function XA(g, A) {
9203
+ }, se.fourcc = "colr", se);
9204
+ function OA(g, A) {
9196
9205
  let t = Number(g).toString(16);
9197
9206
  for (A = typeof A == "undefined" ? 2 : A; t.length < A; )
9198
9207
  t = "0" + t;
9199
9208
  return t;
9200
9209
  }
9201
- var Qn = class extends H {
9210
+ var an = class extends H {
9202
9211
  /** @bundle box-codecs.js */
9203
9212
  getCodec() {
9204
9213
  const g = super.getCodec();
9205
- return this.avcC ? `${g}.${XA(this.avcC.AVCProfileIndication)}${XA(
9214
+ return this.avcC ? `${g}.${OA(this.avcC.AVCProfileIndication)}${OA(
9206
9215
  this.avcC.profile_compatibility
9207
- )}${XA(this.avcC.AVCLevelIndication)}` : g;
9216
+ )}${OA(this.avcC.AVCLevelIndication)}` : g;
9208
9217
  }
9209
- }, se, WE = (se = class extends Qn {
9218
+ }, ne, WE = (ne = class extends an {
9210
9219
  constructor() {
9211
9220
  super(...arguments), this.box_name = "AVCSampleEntry";
9212
9221
  }
9213
- }, se.fourcc = "avc1", se), ne, jE = (ne = class extends Qn {
9222
+ }, ne.fourcc = "avc1", ne), Be, jE = (Be = class extends an {
9214
9223
  constructor() {
9215
9224
  super(...arguments), this.box_name = "AVC2SampleEntry";
9216
9225
  }
9217
- }, ne.fourcc = "avc2", ne), Be, zE = (Be = class extends Qn {
9226
+ }, Be.fourcc = "avc2", Be), Ce, zE = (Ce = class extends an {
9218
9227
  constructor() {
9219
9228
  super(...arguments), this.box_name = "AVCSampleEntry";
9220
9229
  }
9221
- }, Be.fourcc = "avc3", Be), Ce, XE = (Ce = class extends Qn {
9230
+ }, Ce.fourcc = "avc3", Ce), Qe, XE = (Qe = class extends an {
9222
9231
  constructor() {
9223
9232
  super(...arguments), this.box_name = "AVC2SampleEntry";
9224
9233
  }
9225
- }, Ce.fourcc = "avc4", Ce), Qe, OE = (Qe = class extends H {
9234
+ }, Qe.fourcc = "avc4", Qe), ae, OE = (ae = class extends H {
9226
9235
  constructor() {
9227
9236
  super(...arguments), this.box_name = "AV1SampleEntry";
9228
9237
  }
@@ -9232,8 +9241,8 @@ var Qn = class extends H {
9232
9241
  let i;
9233
9242
  return this.av1C.seq_profile === 2 && this.av1C.high_bitdepth === 1 ? i = this.av1C.twelve_bit === 1 ? "12" : "10" : this.av1C.seq_profile <= 2 && (i = this.av1C.high_bitdepth === 1 ? "10" : "08"), A + "." + this.av1C.seq_profile + "." + e + (this.av1C.seq_tier_0 ? "H" : "M") + "." + i;
9234
9243
  }
9235
- }, Qe.fourcc = "av01", Qe), ae, PE = (ae = class extends H {
9236
- }, ae.fourcc = "dav1", ae), an = class extends H {
9244
+ }, ae.fourcc = "av01", ae), re, PE = (re = class extends H {
9245
+ }, re.fourcc = "dav1", re), rn = class extends H {
9237
9246
  /** @bundle box-codecs.js */
9238
9247
  getCodec() {
9239
9248
  let g = super.getCodec();
@@ -9256,39 +9265,39 @@ var Qn = class extends H {
9256
9265
  let A = this.hvcC.general_profile_compatibility, t = 0;
9257
9266
  for (let I = 0; I < 32 && (t |= A & 1, I !== 31); I++)
9258
9267
  t <<= 1, A >>= 1;
9259
- g += XA(t, 0), g += ".", this.hvcC.general_tier_flag === 0 ? g += "L" : g += "H", g += this.hvcC.general_level_idc;
9268
+ g += OA(t, 0), g += ".", this.hvcC.general_tier_flag === 0 ? g += "L" : g += "H", g += this.hvcC.general_level_idc;
9260
9269
  let e = !1, i = "";
9261
9270
  for (let I = 5; I >= 0; I--)
9262
- (this.hvcC.general_constraint_indicator[I] || e) && (i = "." + XA(this.hvcC.general_constraint_indicator[I], 0) + i, e = !0);
9271
+ (this.hvcC.general_constraint_indicator[I] || e) && (i = "." + OA(this.hvcC.general_constraint_indicator[I], 0) + i, e = !0);
9263
9272
  g += i;
9264
9273
  }
9265
9274
  return g;
9266
9275
  }
9267
- }, re, $E = (re = class extends an {
9276
+ }, Ee, $E = (Ee = class extends rn {
9268
9277
  constructor() {
9269
9278
  super(...arguments), this.box_name = "HEVCSampleEntry";
9270
9279
  }
9271
- }, re.fourcc = "hvc1", re), Ee, Ao = (Ee = class extends an {
9272
- }, Ee.fourcc = "hvc2", Ee), oe, to = (oe = class extends an {
9280
+ }, Ee.fourcc = "hvc1", Ee), oe, Ao = (oe = class extends rn {
9281
+ }, oe.fourcc = "hvc2", oe), he, to = (he = class extends rn {
9273
9282
  constructor() {
9274
9283
  super(...arguments), this.box_name = "HEVCSampleEntry", this.colrs = [], this.subBoxNames = ["colr"];
9275
9284
  }
9276
- }, oe.fourcc = "hev1", oe), he, eo = (he = class extends an {
9277
- }, he.fourcc = "hev2", he), ce, io = (ce = class extends H {
9285
+ }, he.fourcc = "hev1", he), ce, eo = (ce = class extends rn {
9286
+ }, ce.fourcc = "hev2", ce), le, io = (le = class extends H {
9278
9287
  constructor() {
9279
9288
  super(...arguments), this.box_name = "HEVCTileSampleSampleEntry";
9280
9289
  }
9281
- }, ce.fourcc = "hvt1", ce), le, go = (le = class extends H {
9290
+ }, le.fourcc = "hvt1", le), de, go = (de = class extends H {
9282
9291
  constructor() {
9283
9292
  super(...arguments), this.box_name = "LHEVCSampleEntry";
9284
9293
  }
9285
- }, le.fourcc = "lhe1", le), de, Io = (de = class extends H {
9294
+ }, de.fourcc = "lhe1", de), fe, Io = (fe = class extends H {
9286
9295
  constructor() {
9287
9296
  super(...arguments), this.box_name = "LHEVCSampleEntry";
9288
9297
  }
9289
- }, de.fourcc = "lhv1", de), fe, so = (fe = class extends H {
9290
- }, fe.fourcc = "dvh1", fe), ue, no = (ue = class extends H {
9291
- }, ue.fourcc = "dvhe", ue), SC = class extends H {
9298
+ }, fe.fourcc = "lhv1", fe), ue, so = (ue = class extends H {
9299
+ }, ue.fourcc = "dvh1", ue), we, no = (we = class extends H {
9300
+ }, we.fourcc = "dvhe", we), SC = class extends H {
9292
9301
  getCodec() {
9293
9302
  let g = super.getCodec();
9294
9303
  if (this.vvcC) {
@@ -9319,23 +9328,23 @@ var Qn = class extends H {
9319
9328
  }
9320
9329
  return g;
9321
9330
  }
9322
- }, we, Bo = (we = class extends SC {
9331
+ }, De, Bo = (De = class extends SC {
9323
9332
  constructor() {
9324
9333
  super(...arguments), this.box_name = "VvcSampleEntry";
9325
9334
  }
9326
- }, we.fourcc = "vvc1", we), De, Co = (De = class extends SC {
9335
+ }, De.fourcc = "vvc1", De), pe, Co = (pe = class extends SC {
9327
9336
  constructor() {
9328
9337
  super(...arguments), this.box_name = "VvcSampleEntry";
9329
9338
  }
9330
- }, De.fourcc = "vvi1", De), pe, Qo = (pe = class extends H {
9339
+ }, pe.fourcc = "vvi1", pe), ye, Qo = (ye = class extends H {
9331
9340
  constructor() {
9332
9341
  super(...arguments), this.box_name = "VvcSampleEntry";
9333
9342
  }
9334
- }, pe.fourcc = "vvs1", pe), ye, ao = (ye = class extends H {
9343
+ }, ye.fourcc = "vvs1", ye), me, ao = (me = class extends H {
9335
9344
  constructor() {
9336
9345
  super(...arguments), this.box_name = "VvcNonVCLSampleEntry";
9337
9346
  }
9338
- }, ye.fourcc = "vvcN", ye), FC = class extends H {
9347
+ }, me.fourcc = "vvcN", me), FC = class extends H {
9339
9348
  getCodec() {
9340
9349
  const g = super.getCodec();
9341
9350
  let A = this.vpcC.level;
@@ -9343,24 +9352,24 @@ var Qn = class extends H {
9343
9352
  let t = this.vpcC.bitDepth;
9344
9353
  return t === 8 && (t = "08"), `${g}.0${this.vpcC.profile}.${A}.${t}`;
9345
9354
  }
9346
- }, me, ro = (me = class extends FC {
9347
- }, me.fourcc = "vp08", me), Ge, Eo = (Ge = class extends FC {
9348
- }, Ge.fourcc = "vp09", Ge), Se, oo = (Se = class extends H {
9349
- }, Se.fourcc = "avs3", Se), Fe, ho = (Fe = class extends H {
9355
+ }, Ge, ro = (Ge = class extends FC {
9356
+ }, Ge.fourcc = "vp08", Ge), Se, Eo = (Se = class extends FC {
9357
+ }, Se.fourcc = "vp09", Se), Fe, oo = (Fe = class extends H {
9358
+ }, Fe.fourcc = "avs3", Fe), Ne, ho = (Ne = class extends H {
9350
9359
  constructor() {
9351
9360
  super(...arguments), this.box_name = "J2KSampleEntry";
9352
9361
  }
9353
- }, Fe.fourcc = "j2ki", Fe), Ne, co = (Ne = class extends H {
9354
- }, Ne.fourcc = "mjp2", Ne), Re, lo = (Re = class extends H {
9355
- }, Re.fourcc = "mjpg", Re), xe, fo = (xe = class extends H {
9362
+ }, Ne.fourcc = "j2ki", Ne), Re, co = (Re = class extends H {
9363
+ }, Re.fourcc = "mjp2", Re), xe, lo = (xe = class extends H {
9364
+ }, xe.fourcc = "mjpg", xe), Ue, fo = (Ue = class extends H {
9356
9365
  constructor() {
9357
9366
  super(...arguments), this.box_name = "UncompressedVideoSampleEntry";
9358
9367
  }
9359
- }, xe.fourcc = "uncv", xe), Ue, uo = (Ue = class extends H {
9368
+ }, Ue.fourcc = "uncv", Ue), Me, uo = (Me = class extends H {
9360
9369
  constructor() {
9361
9370
  super(...arguments), this.box_name = "MP4VisualSampleEntry";
9362
9371
  }
9363
- }, Ue.fourcc = "mp4v", Ue), Me, wo = (Me = class extends sA {
9372
+ }, Me.fourcc = "mp4v", Me), be, wo = (be = class extends sA {
9364
9373
  constructor() {
9365
9374
  super(...arguments), this.box_name = "MP4AudioSampleEntry";
9366
9375
  }
@@ -9368,48 +9377,48 @@ var Qn = class extends H {
9368
9377
  const A = super.getCodec();
9369
9378
  if (this.esds && this.esds.esd) {
9370
9379
  const t = this.esds.esd.getOTI(), e = this.esds.esd.getAudioConfig();
9371
- return A + "." + XA(t) + (e ? "." + e : "");
9380
+ return A + "." + OA(t) + (e ? "." + e : "");
9372
9381
  } else
9373
9382
  return A;
9374
9383
  }
9375
- }, Me.fourcc = "mp4a", Me), be, Do = (be = class extends sA {
9376
- }, be.fourcc = "m4ae", be), ke, po = (ke = class extends sA {
9377
- }, ke.fourcc = "ac-3", ke), Ye, yo = (Ye = class extends sA {
9378
- }, Ye.fourcc = "ac-4", Ye), _e, mo = (_e = class extends sA {
9379
- }, _e.fourcc = "ec-3", _e), Le, Go = (Le = class extends sA {
9380
- }, Le.fourcc = "Opus", Le), Je, So = (Je = class extends sA {
9381
- }, Je.fourcc = "mha1", Je), He, Fo = (He = class extends sA {
9382
- }, He.fourcc = "mha2", He), ve, No = (ve = class extends sA {
9383
- }, ve.fourcc = "mhm1", ve), Ke, Ro = (Ke = class extends sA {
9384
- }, Ke.fourcc = "mhm2", Ke), Te, xo = (Te = class extends sA {
9385
- }, Te.fourcc = "fLaC", Te), qe, Uo = (qe = class extends H {
9386
- }, qe.fourcc = "encv", qe), Ze, Mo = (Ze = class extends sA {
9387
- }, Ze.fourcc = "enca", Ze), Ve, bo = (Ve = class extends JA {
9384
+ }, be.fourcc = "mp4a", be), ke, Do = (ke = class extends sA {
9385
+ }, ke.fourcc = "m4ae", ke), Ye, po = (Ye = class extends sA {
9386
+ }, Ye.fourcc = "ac-3", Ye), _e, yo = (_e = class extends sA {
9387
+ }, _e.fourcc = "ac-4", _e), Le, mo = (Le = class extends sA {
9388
+ }, Le.fourcc = "ec-3", Le), Je, Go = (Je = class extends sA {
9389
+ }, Je.fourcc = "Opus", Je), He, So = (He = class extends sA {
9390
+ }, He.fourcc = "mha1", He), ve, Fo = (ve = class extends sA {
9391
+ }, ve.fourcc = "mha2", ve), Ke, No = (Ke = class extends sA {
9392
+ }, Ke.fourcc = "mhm1", Ke), Te, Ro = (Te = class extends sA {
9393
+ }, Te.fourcc = "mhm2", Te), qe, xo = (qe = class extends sA {
9394
+ }, qe.fourcc = "fLaC", qe), Ze, Uo = (Ze = class extends H {
9395
+ }, Ze.fourcc = "encv", Ze), Ve, Mo = (Ve = class extends sA {
9396
+ }, Ve.fourcc = "enca", Ve), We, bo = (We = class extends HA {
9388
9397
  constructor() {
9389
9398
  super(...arguments), this.subBoxNames = ["sinf"], this.sinfs = [];
9390
9399
  }
9391
- }, Ve.fourcc = "encu", Ve), We, ko = (We = class extends eB {
9400
+ }, We.fourcc = "encu", We), je, ko = (je = class extends iB {
9392
9401
  constructor() {
9393
9402
  super(...arguments), this.subBoxNames = ["sinf"], this.sinfs = [];
9394
9403
  }
9395
- }, We.fourcc = "encs", We), je, Yo = (je = class extends eB {
9396
- }, je.fourcc = "mp4s", je), ze, _o = (ze = class extends sE {
9404
+ }, je.fourcc = "encs", je), ze, Yo = (ze = class extends iB {
9405
+ }, ze.fourcc = "mp4s", ze), Xe, _o = (Xe = class extends sE {
9397
9406
  constructor() {
9398
9407
  super(...arguments), this.subBoxNames = ["sinf"], this.sinfs = [];
9399
9408
  }
9400
- }, ze.fourcc = "enct", ze), Xe, Lo = (Xe = class extends Is {
9409
+ }, Xe.fourcc = "enct", Xe), Oe, Lo = (Oe = class extends Is {
9401
9410
  constructor() {
9402
9411
  super(...arguments), this.subBoxNames = ["sinf"], this.sinfs = [];
9403
9412
  }
9404
- }, Xe.fourcc = "encm", Xe), Oe, Jo = (Oe = class extends H {
9413
+ }, Oe.fourcc = "encm", Oe), Pe, Jo = (Pe = class extends H {
9405
9414
  constructor() {
9406
9415
  super(...arguments), this.box_name = "RestrictedVideoSampleEntry";
9407
9416
  }
9408
- }, Oe.fourcc = "resv", Oe), Pe, Ho = (Pe = class extends JA {
9417
+ }, Pe.fourcc = "resv", Pe), $e, Ho = ($e = class extends HA {
9409
9418
  parse(A) {
9410
9419
  this.parseHeader(A), this.content_encoding = A.readCString(), this.mime_format = A.readCString(), this.parseFooter(A);
9411
9420
  }
9412
- }, Pe.fourcc = "sbtt", Pe), $e, NC = ($e = class extends JA {
9421
+ }, $e.fourcc = "sbtt", $e), Ai, NC = (Ai = class extends HA {
9413
9422
  parse(A) {
9414
9423
  this.parseHeader(A), this.namespace = A.readCString(), this.schema_location = A.readCString(), this.auxiliary_mime_types = A.readCString(), this.parseFooter(A);
9415
9424
  }
@@ -9417,7 +9426,7 @@ var Qn = class extends H {
9417
9426
  write(A) {
9418
9427
  this.writeHeader(A), this.size += this.namespace.length + 1 + this.schema_location.length + 1 + this.auxiliary_mime_types.length + 1, A.writeCString(this.namespace), A.writeCString(this.schema_location), A.writeCString(this.auxiliary_mime_types), this.writeFooter(A);
9419
9428
  }
9420
- }, $e.fourcc = "stpp", $e), Ai, vo = (Ai = class extends JA {
9429
+ }, Ai.fourcc = "stpp", Ai), ti, vo = (ti = class extends HA {
9421
9430
  parse(A) {
9422
9431
  this.parseHeader(A), this.content_encoding = A.readCString(), this.mime_format = A.readCString(), this.parseFooter(A);
9423
9432
  }
@@ -9425,15 +9434,15 @@ var Qn = class extends H {
9425
9434
  const A = super.getCodec();
9426
9435
  return this.mime_format ? A + "." + this.mime_format : A;
9427
9436
  }
9428
- }, Ai.fourcc = "stxt", Ai), ti, Ko = (ti = class extends JA {
9437
+ }, ti.fourcc = "stxt", ti), ei, Ko = (ei = class extends HA {
9429
9438
  parse(A) {
9430
9439
  this.parseHeader(A), this.displayFlags = A.readUint32(), this.horizontal_justification = A.readInt8(), this.vertical_justification = A.readInt8(), this.bg_color_rgba = A.readUint8Array(4), this.box_record = A.readInt16Array(4), this.style_record = A.readUint8Array(12), this.parseFooter(A);
9431
9440
  }
9432
- }, ti.fourcc = "tx3g", ti), ei, To = (ei = class extends Is {
9441
+ }, ei.fourcc = "tx3g", ei), ii, To = (ii = class extends Is {
9433
9442
  parse(A) {
9434
9443
  this.parseHeader(A), this.parseFooter(A);
9435
9444
  }
9436
- }, ei.fourcc = "wvtt", ei), ii, qo = (ii = class extends w {
9445
+ }, ii.fourcc = "wvtt", ii), gi, qo = (gi = class extends w {
9437
9446
  constructor() {
9438
9447
  super(...arguments), this.box_name = "SampleToGroupBox";
9439
9448
  }
@@ -9454,7 +9463,7 @@ var Qn = class extends H {
9454
9463
  A.writeInt32(e.sample_count), A.writeInt32(e.group_description_index);
9455
9464
  }
9456
9465
  }
9457
- }, ii.fourcc = "sbgp", ii), gi, Zo = (gi = class extends w {
9466
+ }, gi.fourcc = "sbgp", gi), Ii, Zo = (Ii = class extends w {
9458
9467
  constructor() {
9459
9468
  super(...arguments), this.box_name = "SampleDependencyTypeBox";
9460
9469
  }
@@ -9467,7 +9476,7 @@ var Qn = class extends H {
9467
9476
  this.is_leading[e] = i >> 6, this.sample_depends_on[e] = i >> 4 & 3, this.sample_is_depended_on[e] = i >> 2 & 3, this.sample_has_redundancy[e] = i & 3;
9468
9477
  }
9469
9478
  }
9470
- }, gi.fourcc = "sdtp", gi), Ii, Vo = (Ii = class extends w {
9479
+ }, Ii.fourcc = "sdtp", Ii), si, Vo = (si = class extends w {
9471
9480
  constructor() {
9472
9481
  super(...arguments), this.box_name = "SampleGroupDescriptionBox";
9473
9482
  }
@@ -9495,7 +9504,7 @@ var Qn = class extends H {
9495
9504
  this.version === 1 && this.default_length === 0 && A.writeUint32(e.description_length), e.write(A);
9496
9505
  }
9497
9506
  }
9498
- }, Ii.fourcc = "sgpd", Ii), si, Wo = (si = class extends w {
9507
+ }, si.fourcc = "sgpd", si), ni, Wo = (ni = class extends w {
9499
9508
  constructor() {
9500
9509
  super(...arguments), this.box_name = "CompressedSegmentIndexBox";
9501
9510
  }
@@ -9523,7 +9532,7 @@ var Qn = class extends H {
9523
9532
  A.writeUint32(i.reference_type << 31 | i.referenced_size), A.writeUint32(i.subsegment_duration), A.writeUint32(i.starts_with_SAP << 31 | i.SAP_type << 28 | i.SAP_delta_time);
9524
9533
  }
9525
9534
  }
9526
- }, si.fourcc = "sidx", si), ni, RC = (ni = class extends w {
9535
+ }, ni.fourcc = "sidx", ni), Bi, RC = (Bi = class extends w {
9527
9536
  constructor() {
9528
9537
  super(...arguments), this.box_name = "SoundMediaHeaderBox";
9529
9538
  }
@@ -9534,7 +9543,7 @@ var Qn = class extends H {
9534
9543
  write(A) {
9535
9544
  this.version = 0, this.size = 4, this.writeHeader(A), A.writeUint16(this.balance), A.writeUint16(0);
9536
9545
  }
9537
- }, ni.fourcc = "smhd", ni), Bi, xC = (Bi = class extends w {
9546
+ }, Bi.fourcc = "smhd", Bi), Ci, xC = (Ci = class extends w {
9538
9547
  constructor() {
9539
9548
  super(...arguments), this.box_name = "ChunkOffsetBox";
9540
9549
  }
@@ -9554,11 +9563,11 @@ var Qn = class extends H {
9554
9563
  for (let t = 0; t < this.chunk_offsets.length; t++)
9555
9564
  A[t].offset = this.chunk_offsets[t];
9556
9565
  }
9557
- }, Bi.fourcc = "stco", Bi), Ci, UC = (Ci = class extends w {
9566
+ }, Ci.fourcc = "stco", Ci), Qi, UC = (Qi = class extends w {
9558
9567
  constructor() {
9559
9568
  super(...arguments), this.box_name = "SubtitleMediaHeaderBox";
9560
9569
  }
9561
- }, Ci.fourcc = "sthd", Ci), Qi, MC = (Qi = class extends w {
9570
+ }, Qi.fourcc = "sthd", Qi), ai, MC = (ai = class extends w {
9562
9571
  constructor() {
9563
9572
  super(...arguments), this.box_name = "SampleToChunkBox";
9564
9573
  }
@@ -9588,7 +9597,7 @@ var Qn = class extends H {
9588
9597
  }
9589
9598
  }
9590
9599
  }
9591
- }, Qi.fourcc = "stsc", Qi), ai, bC = (ai = class extends w {
9600
+ }, ai.fourcc = "stsc", ai), ri, bC = (ri = class extends w {
9592
9601
  constructor() {
9593
9602
  super(...arguments), this.box_name = "SampleDescriptionBox";
9594
9603
  }
@@ -9614,7 +9623,7 @@ var Qn = class extends H {
9614
9623
  this.entries[t].write(A), this.size += this.entries[t].size;
9615
9624
  l.debug("BoxWriter", "Adjusting box " + this.type + " with new size " + this.size), A.adjustUint32(this.sizePosition, this.size);
9616
9625
  }
9617
- }, ai.fourcc = "stsd", ai), ri, kC = (ri = class extends w {
9626
+ }, ri.fourcc = "stsd", ri), Ei, kC = (Ei = class extends w {
9618
9627
  constructor() {
9619
9628
  super(...arguments), this.box_name = "SampleSizeBox";
9620
9629
  }
@@ -9645,7 +9654,7 @@ var Qn = class extends H {
9645
9654
  for (let t = 0; t < this.sample_sizes.length; t++)
9646
9655
  A[t].size = this.sample_sizes[t];
9647
9656
  }
9648
- }, ri.fourcc = "stsz", ri), Ei, YC = (Ei = class extends w {
9657
+ }, Ei.fourcc = "stsz", Ei), oi, YC = (oi = class extends w {
9649
9658
  constructor() {
9650
9659
  super(...arguments), this.box_name = "TimeToSampleBox", this.sample_counts = [], this.sample_deltas = [];
9651
9660
  }
@@ -9675,7 +9684,7 @@ var Qn = class extends H {
9675
9684
  for (let i = 0; i < this.sample_counts[e]; i++)
9676
9685
  t === 0 ? A[t].dts = 0 : A[t].dts = A[t - 1].dts + this.sample_deltas[e], t++;
9677
9686
  }
9678
- }, Ei.fourcc = "stts", Ei), oi, _C = (oi = class extends w {
9687
+ }, oi.fourcc = "stts", oi), hi, _C = (hi = class extends w {
9679
9688
  constructor() {
9680
9689
  super(...arguments), this.box_name = "TrackFragmentBaseMediaDecodeTimeBox";
9681
9690
  }
@@ -9687,7 +9696,7 @@ var Qn = class extends H {
9687
9696
  const t = this.baseMediaDecodeTime > V || this.version === 1;
9688
9697
  this.version = t ? 1 : 0, this.size = 4, this.size += t ? 4 : 0, this.flags = 0, this.writeHeader(A), t ? A.writeUint64(this.baseMediaDecodeTime) : A.writeUint32(this.baseMediaDecodeTime);
9689
9698
  }
9690
- }, oi.fourcc = "tfdt", oi), hi, LC = (hi = class extends w {
9699
+ }, hi.fourcc = "tfdt", hi), ci, LC = (ci = class extends w {
9691
9700
  constructor() {
9692
9701
  super(...arguments), this.box_name = "TrackFragmentHeaderBox";
9693
9702
  }
@@ -9700,7 +9709,7 @@ var Qn = class extends H {
9700
9709
  write(A) {
9701
9710
  this.version = 0, this.size = 4, this.flags & qs && (this.size += 8), this.flags & Zs && (this.size += 4), this.flags & Vs && (this.size += 4), this.flags & Ws && (this.size += 4), this.flags & js && (this.size += 4), this.writeHeader(A), A.writeUint32(this.track_id), this.flags & qs && A.writeUint64(this.base_data_offset), this.flags & Zs && A.writeUint32(this.default_sample_description_index), this.flags & Vs && A.writeUint32(this.default_sample_duration), this.flags & Ws && A.writeUint32(this.default_sample_size), this.flags & js && A.writeUint32(this.default_sample_flags);
9702
9711
  }
9703
- }, hi.fourcc = "tfhd", hi), ci, JC = (ci = class extends w {
9712
+ }, ci.fourcc = "tfhd", ci), li, JC = (li = class extends w {
9704
9713
  constructor() {
9705
9714
  super(...arguments), this.box_name = "TrackHeaderBox", this.layer = 0, this.alternate_group = 0;
9706
9715
  }
@@ -9716,7 +9725,7 @@ var Qn = class extends H {
9716
9725
  print(A) {
9717
9726
  super.printHeader(A), A.log(A.indent + "creation_time: " + this.creation_time), A.log(A.indent + "modification_time: " + this.modification_time), A.log(A.indent + "track_id: " + this.track_id), A.log(A.indent + "duration: " + this.duration), A.log(A.indent + "volume: " + (this.volume >> 8)), A.log(A.indent + "matrix: " + this.matrix.join(", ")), A.log(A.indent + "layer: " + this.layer), A.log(A.indent + "alternate_group: " + this.alternate_group), A.log(A.indent + "width: " + this.width), A.log(A.indent + "height: " + this.height);
9718
9727
  }
9719
- }, ci.fourcc = "tkhd", ci), li, jn = (li = class extends w {
9728
+ }, li.fourcc = "tkhd", li), di, zn = (di = class extends w {
9720
9729
  constructor() {
9721
9730
  super(...arguments), this.box_name = "TrackExtendsBox";
9722
9731
  }
@@ -9726,7 +9735,7 @@ var Qn = class extends H {
9726
9735
  write(A) {
9727
9736
  this.version = 0, this.flags = 0, this.size = 20, this.writeHeader(A), A.writeUint32(this.track_id), A.writeUint32(this.default_sample_description_index), A.writeUint32(this.default_sample_duration), A.writeUint32(this.default_sample_size), A.writeUint32(this.default_sample_flags);
9728
9737
  }
9729
- }, li.fourcc = "trex", li), di, HC = (di = class extends w {
9738
+ }, di.fourcc = "trex", di), fi, HC = (fi = class extends w {
9730
9739
  constructor() {
9731
9740
  super(...arguments), this.box_name = "TrackRunBox", this.sample_duration = [], this.sample_size = [], this.sample_flags = [], this.sample_composition_time_offset = [];
9732
9741
  }
@@ -9743,7 +9752,7 @@ var Qn = class extends H {
9743
9752
  for (let t = 0; t < this.sample_count; t++)
9744
9753
  this.flags & Gs && A.writeUint32(this.sample_duration[t]), this.flags & Ss && A.writeUint32(this.sample_size[t]), this.flags & Fs && A.writeUint32(this.sample_flags[t]), this.flags & Ns && (this.version === 0 ? A.writeUint32(this.sample_composition_time_offset[t]) : A.writeInt32(this.sample_composition_time_offset[t]));
9745
9754
  }
9746
- }, di.fourcc = "trun", di), fi, vC = (fi = class extends w {
9755
+ }, fi.fourcc = "trun", fi), ui, vC = (ui = class extends w {
9747
9756
  constructor() {
9748
9757
  super(...arguments), this.box_name = "DataEntryUrlBox";
9749
9758
  }
@@ -9754,7 +9763,7 @@ var Qn = class extends H {
9754
9763
  write(A) {
9755
9764
  this.version = 0, this.location ? (this.flags = 0, this.size = this.location.length + 1) : (this.flags = 1, this.size = 0), this.writeHeader(A), this.location && A.writeCString(this.location);
9756
9765
  }
9757
- }, fi.fourcc = "url ", fi), ui, KC = (ui = class extends w {
9766
+ }, ui.fourcc = "url ", ui), wi, KC = (wi = class extends w {
9758
9767
  constructor() {
9759
9768
  super(...arguments), this.box_name = "VideoMediaHeaderBox";
9760
9769
  }
@@ -9765,7 +9774,7 @@ var Qn = class extends H {
9765
9774
  write(A) {
9766
9775
  this.version = 0, this.size = 8, this.writeHeader(A), A.writeUint16(this.graphicsmode), A.writeUint16Array(this.opcolor);
9767
9776
  }
9768
- }, ui.fourcc = "vmhd", ui), _n = class {
9777
+ }, wi.fourcc = "vmhd", wi), Ln = class {
9769
9778
  constructor(g, A, t) {
9770
9779
  this.grouping_type = g, this.grouping_type_parameter = A, this.sbgp = t, this.last_sample_in_run = -1, this.entry_index = -1;
9771
9780
  }
@@ -10002,7 +10011,7 @@ var Qn = class extends H {
10002
10011
  }) : s instanceof H ? (a.type = "video", e.videoTracks.push(a), a.video = {
10003
10012
  width: s.getWidth(),
10004
10013
  height: s.getHeight()
10005
- }) : s instanceof JA ? (a.type = "subtitles", e.subtitleTracks.push(a)) : s instanceof bB ? (a.type = "metadata", e.hintTracks.push(a)) : s instanceof Is ? (a.type = "metadata", e.metadataTracks.push(a)) : (a.type = "metadata", e.otherTracks.push(a));
10014
+ }) : s instanceof HA ? (a.type = "subtitles", e.subtitleTracks.push(a)) : s instanceof bB ? (a.type = "metadata", e.hintTracks.push(a)) : s instanceof Is ? (a.type = "metadata", e.metadataTracks.push(a)) : (a.type = "metadata", e.otherTracks.push(a));
10006
10015
  }
10007
10016
  e.videoTracks && e.videoTracks.length > 0 ? e.mime += 'video/mp4; codecs="' : e.audioTracks && e.audioTracks.length > 0 ? e.mime += 'audio/mp4; codecs="' : e.mime += 'application/mp4; codecs="';
10008
10017
  for (let i = 0; i < e.tracks.length; i++)
@@ -10255,13 +10264,13 @@ var Qn = class extends H {
10255
10264
  l.debug("ISOFile", "Generating initialization segment");
10256
10265
  const i = new gA();
10257
10266
  A.write(i);
10258
- const I = t.addBox(new Wn());
10267
+ const I = t.addBox(new jn());
10259
10268
  if (e) {
10260
10269
  const B = I.addBox(new yC());
10261
10270
  B.fragment_duration = e;
10262
10271
  }
10263
10272
  for (let B = 0; B < t.traks.length; B++) {
10264
- const C = I.addBox(new jn());
10273
+ const C = I.addBox(new zn());
10265
10274
  C.track_id = t.traks[B].tkhd.track_id, C.default_sample_description_index = 1, C.default_sample_duration = (n = (s = t.traks[B].samples[0]) == null ? void 0 : s.duration) != null ? n : 0, C.default_sample_size = 0, C.default_sample_flags = 65536;
10266
10275
  }
10267
10276
  return t.write(i), i.buffer;
@@ -10280,7 +10289,7 @@ var Qn = class extends H {
10280
10289
  initializeSegmentation() {
10281
10290
  var t, e;
10282
10291
  this.onSegment || l.warn("MP4Box", "No segmentation callback set!"), this.isFragmentationInitialized || (this.isFragmentationInitialized = !0, this.resetTables());
10283
- const A = new Vn();
10292
+ const A = new Wn();
10284
10293
  A.addBox(this.moov.mvhd);
10285
10294
  for (let i = 0; i < this.fragmentedTracks.length; i++) {
10286
10295
  const I = this.getTrackById(this.fragmentedTracks[i].id);
@@ -10332,7 +10341,7 @@ var Qn = class extends H {
10332
10341
  static initSampleGroups(A, t, e, i, I) {
10333
10342
  t && (t.sample_groups_info = []), A.sample_groups_info || (A.sample_groups_info = []);
10334
10343
  for (let s = 0; s < e.length; s++) {
10335
- const n = e[s].grouping_type + "/" + e[s].grouping_type_parameter, B = new _n(
10344
+ const n = e[s].grouping_type + "/" + e[s].grouping_type_parameter, B = new Ln(
10336
10345
  e[s].grouping_type,
10337
10346
  e[s].grouping_type_parameter,
10338
10347
  e[s]
@@ -10348,14 +10357,14 @@ var Qn = class extends H {
10348
10357
  if (I) {
10349
10358
  for (let s = 0; s < I.length; s++)
10350
10359
  if (!I[s].used && I[s].version >= 2) {
10351
- const n = I[s].grouping_type + "/0", B = new _n(I[s].grouping_type, 0);
10360
+ const n = I[s].grouping_type + "/0", B = new Ln(I[s].grouping_type, 0);
10352
10361
  B.is_fragment = !0, t.sample_groups_info[n] || (t.sample_groups_info[n] = B);
10353
10362
  }
10354
10363
  }
10355
10364
  } else
10356
10365
  for (let s = 0; s < i.length; s++)
10357
10366
  if (!i[s].used && i[s].version >= 2) {
10358
- const n = i[s].grouping_type + "/0", B = new _n(i[s].grouping_type, 0);
10367
+ const n = i[s].grouping_type + "/0", B = new Ln(i[s].grouping_type, 0);
10359
10368
  A.sample_groups_info[n] || (A.sample_groups_info[n] = B);
10360
10369
  }
10361
10370
  }
@@ -10839,8 +10848,8 @@ var Qn = class extends H {
10839
10848
  init(A = {}) {
10840
10849
  const t = this.addBox(new uC());
10841
10850
  t.major_brand = A.brands && A.brands[0] || "iso4", t.minor_version = 0, t.compatible_brands = A.brands || ["iso4"];
10842
- const e = this.addBox(new Vn());
10843
- e.addBox(new Wn());
10851
+ const e = this.addBox(new Wn());
10852
+ e.addBox(new jn());
10844
10853
  const i = e.addBox(new GC());
10845
10854
  return i.timescale = A.timescale || 600, i.rate = A.rate || 65536, i.creation_time = 0, i.modification_time = 0, i.duration = A.duration || 0, i.volume = A.width ? 0 : 256, i.matrix = [65536, 0, 0, 0, 65536, 0, 0, 0, 1073741824], i.next_track_id = 1, this;
10846
10855
  }
@@ -10868,7 +10877,7 @@ var Qn = class extends H {
10868
10877
  } else if (a instanceof sA) {
10869
10878
  const y = a, S = C.addBox(new RC());
10870
10879
  S.balance = t.balance || 0, y.channel_count = t.channel_count || 2, y.samplesize = t.samplesize || 16, y.samplerate = t.samplerate || 65536;
10871
- } else a instanceof bB ? C.addBox(new QC()) : a instanceof JA ? (C.addBox(new UC()), a instanceof NC && (a.namespace = t.namespace || "nonamespace", a.schema_location = t.schema_location || "", a.auxiliary_mime_types = t.auxiliary_mime_types || "")) : a instanceof Is ? C.addBox(new $s()) : a instanceof eB ? C.addBox(new $s()) : C.addBox(new $s());
10880
+ } else a instanceof bB ? C.addBox(new QC()) : a instanceof HA ? (C.addBox(new UC()), a instanceof NC && (a.namespace = t.namespace || "nonamespace", a.schema_location = t.schema_location || "", a.auxiliary_mime_types = t.auxiliary_mime_types || "")) : a instanceof Is ? C.addBox(new $s()) : a instanceof iB ? C.addBox(new $s()) : C.addBox(new $s());
10872
10881
  t.description && a.addBox.call(
10873
10882
  a,
10874
10883
  t.description
@@ -10887,7 +10896,7 @@ var Qn = class extends H {
10887
10896
  u.chunk_offsets = [];
10888
10897
  const p = h.addBox(new kC());
10889
10898
  p.sample_sizes = [];
10890
- const D = this.moov.mvex.addBox(new jn());
10899
+ const D = this.moov.mvex.addBox(new zn());
10891
10900
  return D.track_id = t.id, D.default_sample_description_index = t.default_sample_description_index || 1, D.default_sample_duration = t.default_sample_duration || 0, D.default_sample_size = t.default_sample_size || 0, D.default_sample_flags = t.default_sample_flags || 0, this.buildTrakSampleLists(e), t.id;
10892
10901
  }
10893
10902
  /** @bundle isofile-advanced-creation.js */
@@ -10970,11 +10979,11 @@ function zo(g = !1, A) {
10970
10979
  }
10971
10980
  var TC = {};
10972
10981
  IC(TC, {
10973
- Descriptor: () => HA,
10982
+ Descriptor: () => vA,
10974
10983
  ES_Descriptor: () => WC,
10975
10984
  MPEG4DescriptorParser: () => Ah
10976
10985
  });
10977
- var qC = 3, nn = 4, iB = 5, ZC = 6, HA = class VC {
10986
+ var qC = 3, Bn = 4, gB = 5, ZC = 6, vA = class VC {
10978
10987
  constructor(A, t) {
10979
10988
  this.tag = A, this.size = t, this.descs = [];
10980
10989
  }
@@ -11010,7 +11019,7 @@ var qC = 3, nn = 4, iB = 5, ZC = 6, HA = class VC {
11010
11019
  this.descs.push(i);
11011
11020
  }
11012
11021
  }
11013
- }, WC = class extends HA {
11022
+ }, WC = class extends vA {
11014
11023
  constructor(g) {
11015
11024
  super(qC, g);
11016
11025
  }
@@ -11023,47 +11032,47 @@ var qC = 3, nn = 4, iB = 5, ZC = 6, HA = class VC {
11023
11032
  this.flags & 32 ? (this.OCR_ES_ID = g.readUint16(), this.size -= 2) : this.OCR_ES_ID = 0, this.parseRemainingDescriptors(g);
11024
11033
  }
11025
11034
  getOTI() {
11026
- const g = this.findDescriptor(nn);
11035
+ const g = this.findDescriptor(Bn);
11027
11036
  return g ? g.oti : 0;
11028
11037
  }
11029
11038
  getAudioConfig() {
11030
- const g = this.findDescriptor(nn);
11039
+ const g = this.findDescriptor(Bn);
11031
11040
  if (!g) return;
11032
- const A = g.findDescriptor(iB);
11041
+ const A = g.findDescriptor(gB);
11033
11042
  if (A && A.data) {
11034
11043
  let t = (A.data[0] & 248) >> 3;
11035
11044
  return t === 31 && A.data.length >= 2 && (t = 32 + ((A.data[0] & 7) << 3) + ((A.data[1] & 224) >> 5)), t;
11036
11045
  }
11037
11046
  }
11038
- }, Xo = class extends HA {
11047
+ }, Xo = class extends vA {
11039
11048
  constructor(g) {
11040
- super(nn, g);
11049
+ super(Bn, g);
11041
11050
  }
11042
11051
  parse(g) {
11043
11052
  this.oti = g.readUint8(), this.streamType = g.readUint8(), this.upStream = (this.streamType >> 1 & 1) !== 0, this.streamType = this.streamType >>> 2, this.bufferSize = g.readUint24(), this.maxBitrate = g.readUint32(), this.avgBitrate = g.readUint32(), this.size -= 13, this.parseRemainingDescriptors(g);
11044
11053
  }
11045
- }, Oo = class extends HA {
11054
+ }, Oo = class extends vA {
11046
11055
  constructor(g) {
11047
- super(iB, g);
11056
+ super(gB, g);
11048
11057
  }
11049
- }, Po = class extends HA {
11058
+ }, Po = class extends vA {
11050
11059
  constructor(g) {
11051
11060
  super(ZC, g);
11052
11061
  }
11053
11062
  }, $o = {
11054
- Descriptor: HA,
11063
+ Descriptor: vA,
11055
11064
  ES_Descriptor: WC,
11056
11065
  DecoderConfigDescriptor: Xo,
11057
11066
  DecoderSpecificInfo: Oo,
11058
11067
  SLConfigDescriptor: Po
11059
11068
  }, An = {
11060
11069
  [qC]: "ES_Descriptor",
11061
- [nn]: "DecoderConfigDescriptor",
11062
- [iB]: "DecoderSpecificInfo",
11070
+ [Bn]: "DecoderConfigDescriptor",
11071
+ [gB]: "DecoderSpecificInfo",
11063
11072
  [ZC]: "SLConfigDescriptor"
11064
11073
  }, Ah = class {
11065
11074
  constructor() {
11066
- this.parseOneDescriptor = HA.prototype.parseOneDescriptor;
11075
+ this.parseOneDescriptor = vA.prototype.parseOneDescriptor;
11067
11076
  }
11068
11077
  getDescriptorName(g) {
11069
11078
  return An[g];
@@ -11208,13 +11217,13 @@ IC(jC, {
11208
11217
  mjp2SampleEntry: () => co,
11209
11218
  mjpgSampleEntry: () => lo,
11210
11219
  moofBox: () => cC,
11211
- moovBox: () => Vn,
11220
+ moovBox: () => Wn,
11212
11221
  mp4aSampleEntry: () => wo,
11213
11222
  mp4sSampleEntry: () => Yo,
11214
11223
  mp4vSampleEntry: () => uo,
11215
11224
  mskCBox: () => Bc,
11216
11225
  msrcTrackGroupTypeBox: () => Il,
11217
- mvexBox: () => Wn,
11226
+ mvexBox: () => jn,
11218
11227
  mvhdBox: () => GC,
11219
11228
  mvifSampleGroupEntry: () => wl,
11220
11229
  nmhdBox: () => $s,
@@ -11311,7 +11320,7 @@ IC(jC, {
11311
11320
  trakBox: () => aC,
11312
11321
  trefBox: () => sl,
11313
11322
  trepBox: () => nl,
11314
- trexBox: () => jn,
11323
+ trexBox: () => zn,
11315
11324
  trgrBox: () => mE,
11316
11325
  trpyBox: () => Bl,
11317
11326
  trunBox: () => HC,
@@ -11346,7 +11355,7 @@ IC(jC, {
11346
11355
  wvttSampleEntry: () => To,
11347
11356
  xmlBox: () => aE
11348
11357
  });
11349
- var wi, th = (wi = class extends m {
11358
+ var Di, th = (Di = class extends m {
11350
11359
  constructor() {
11351
11360
  super(...arguments), this.box_name = "AV1LayeredImageIndexingProperty";
11352
11361
  }
@@ -11356,14 +11365,14 @@ var wi, th = (wi = class extends m {
11356
11365
  for (let i = 0; i < 3; i++)
11357
11366
  e === 16 ? this.layer_size[i] = A.readUint16() : this.layer_size[i] = A.readUint32();
11358
11367
  }
11359
- }, wi.fourcc = "a1lx", wi), Di, eh = (Di = class extends m {
11368
+ }, Di.fourcc = "a1lx", Di), pi, eh = (pi = class extends m {
11360
11369
  constructor() {
11361
11370
  super(...arguments), this.box_name = "OperatingPointSelectorProperty";
11362
11371
  }
11363
11372
  parse(A) {
11364
11373
  this.op_index = A.readUint8();
11365
11374
  }
11366
- }, Di.fourcc = "a1op", Di), pi, ih = (pi = class extends w {
11375
+ }, pi.fourcc = "a1op", pi), yi, ih = (yi = class extends w {
11367
11376
  constructor() {
11368
11377
  super(...arguments), this.box_name = "AuxiliaryTypeProperty";
11369
11378
  }
@@ -11372,14 +11381,14 @@ var wi, th = (wi = class extends m {
11372
11381
  const t = this.size - this.hdr_size - (this.aux_type.length + 1);
11373
11382
  this.aux_subtype = A.readUint8Array(t);
11374
11383
  }
11375
- }, pi.fourcc = "auxC", pi), yi, gh = (yi = class extends m {
11384
+ }, yi.fourcc = "auxC", yi), mi, gh = (mi = class extends m {
11376
11385
  constructor() {
11377
11386
  super(...arguments), this.box_name = "BitRateBox";
11378
11387
  }
11379
11388
  parse(A) {
11380
11389
  this.bufferSizeDB = A.readUint32(), this.maxBitrate = A.readUint32(), this.avgBitrate = A.readUint32();
11381
11390
  }
11382
- }, yi.fourcc = "btrt", yi), mi, Ih = (mi = class extends w {
11391
+ }, mi.fourcc = "btrt", mi), Gi, Ih = (Gi = class extends w {
11383
11392
  constructor() {
11384
11393
  super(...arguments), this.box_name = "CodingConstraintsBox";
11385
11394
  }
@@ -11388,7 +11397,7 @@ var wi, th = (wi = class extends m {
11388
11397
  const t = A.readUint8();
11389
11398
  this.all_ref_pics_intra = (t & 128) === 128, this.intra_pred_used = (t & 64) === 64, this.max_ref_per_pic = (t & 63) >> 2, A.readUint24();
11390
11399
  }
11391
- }, mi.fourcc = "ccst", mi), Gi, sh = (Gi = class extends m {
11400
+ }, Gi.fourcc = "ccst", Gi), Si, sh = (Si = class extends m {
11392
11401
  constructor() {
11393
11402
  super(...arguments), this.box_name = "ComponentDefinitionBox";
11394
11403
  }
@@ -11397,35 +11406,35 @@ var wi, th = (wi = class extends m {
11397
11406
  for (let t = 0; t < this.channel_count; t++)
11398
11407
  this.channel_indexes.push(A.readUint16()), this.channel_types.push(A.readUint16()), this.channel_associations.push(A.readUint16());
11399
11408
  }
11400
- }, Gi.fourcc = "cdef", Gi), Si, nh = (Si = class extends m {
11409
+ }, Si.fourcc = "cdef", Si), Fi, nh = (Fi = class extends m {
11401
11410
  constructor() {
11402
11411
  super(...arguments), this.box_name = "CleanApertureBox";
11403
11412
  }
11404
11413
  parse(A) {
11405
11414
  this.cleanApertureWidthN = A.readUint32(), this.cleanApertureWidthD = A.readUint32(), this.cleanApertureHeightN = A.readUint32(), this.cleanApertureHeightD = A.readUint32(), this.horizOffN = A.readUint32(), this.horizOffD = A.readUint32(), this.vertOffN = A.readUint32(), this.vertOffD = A.readUint32();
11406
11415
  }
11407
- }, Si.fourcc = "clap", Si), Fi, Bh = (Fi = class extends m {
11416
+ }, Fi.fourcc = "clap", Fi), Ni, Bh = (Ni = class extends m {
11408
11417
  constructor() {
11409
11418
  super(...arguments), this.box_name = "ContentLightLevelBox";
11410
11419
  }
11411
11420
  parse(A) {
11412
11421
  this.max_content_light_level = A.readUint16(), this.max_pic_average_light_level = A.readUint16();
11413
11422
  }
11414
- }, Fi.fourcc = "clli", Fi), Ni, Ch = (Ni = class extends m {
11423
+ }, Ni.fourcc = "clli", Ni), Ri, Ch = (Ri = class extends m {
11415
11424
  constructor() {
11416
11425
  super(...arguments), this.box_name = "CameraExtrinsicMatrixProperty";
11417
11426
  }
11418
11427
  parse(A) {
11419
11428
  this.flags & 1 && (this.pos_x = A.readInt32()), this.flags & 2 && (this.pos_y = A.readInt32()), this.flags & 4 && (this.pos_z = A.readInt32()), this.flags & 8 && (this.version === 0 ? this.flags & 16 ? (this.quat_x = A.readInt32(), this.quat_y = A.readInt32(), this.quat_z = A.readInt32()) : (this.quat_x = A.readInt16(), this.quat_y = A.readInt16(), this.quat_z = A.readInt16()) : this.version), this.flags & 32 && (this.id = A.readUint32());
11420
11429
  }
11421
- }, Ni.fourcc = "cmex", Ni), Ri, Qh = (Ri = class extends m {
11430
+ }, Ri.fourcc = "cmex", Ri), xi, Qh = (xi = class extends m {
11422
11431
  constructor() {
11423
11432
  super(...arguments), this.box_name = "CameraIntrinsicMatrixProperty";
11424
11433
  }
11425
11434
  parse(A) {
11426
11435
  this.focal_length_x = A.readInt32(), this.principal_point_x = A.readInt32(), this.principal_point_y = A.readInt32(), this.flags & 1 && (this.focal_length_y = A.readInt32(), this.skew_factor = A.readInt32());
11427
11436
  }
11428
- }, Ri.fourcc = "cmin", Ri), xi, ah = (xi = class extends m {
11437
+ }, xi.fourcc = "cmin", xi), Ui, ah = (Ui = class extends m {
11429
11438
  constructor() {
11430
11439
  super(...arguments), this.box_name = "ComponentDefinitionBox";
11431
11440
  }
@@ -11436,7 +11445,7 @@ var wi, th = (wi = class extends m {
11436
11445
  this.component_types.push(e), e >= 32768 && this.component_type_urls.push(A.readCString());
11437
11446
  }
11438
11447
  }
11439
- }, xi.fourcc = "cmpd", xi), Ui, rh = (Ui = class extends w {
11448
+ }, Ui.fourcc = "cmpd", Ui), Mi, rh = (Mi = class extends w {
11440
11449
  constructor() {
11441
11450
  super(...arguments), this.box_name = "ChunkLargeOffsetBox";
11442
11451
  }
@@ -11453,14 +11462,14 @@ var wi, th = (wi = class extends m {
11453
11462
  for (let t = 0; t < this.chunk_offsets.length; t++)
11454
11463
  A.writeUint64(this.chunk_offsets[t]);
11455
11464
  }
11456
- }, Ui.fourcc = "co64", Ui), Mi, Eh = (Mi = class extends w {
11465
+ }, Mi.fourcc = "co64", Mi), bi, Eh = (bi = class extends w {
11457
11466
  constructor() {
11458
11467
  super(...arguments), this.box_name = "ContentLightLevelBox";
11459
11468
  }
11460
11469
  parse(A) {
11461
11470
  this.parseFullHeader(A), this.maxCLL = A.readUint16(), this.maxFALL = A.readUint16();
11462
11471
  }
11463
- }, Mi.fourcc = "CoLL", Mi), oh = class {
11472
+ }, bi.fourcc = "CoLL", bi), oh = class {
11464
11473
  toString() {
11465
11474
  let g = "centre_azimuth: ";
11466
11475
  return g += this.centre_azimuth, g += " (", g += this.centre_azimuth * 2 ** -16, g += "°), centre_elevation: ", g += this.centre_elevation, g += " (", g += this.centre_elevation * 2 ** -16, g += "°), centre_tilt: ", g += this.centre_tilt, g += " (", g += this.centre_tilt * 2 ** -16, g += "°)", this.range_included_flag && (g += ", azimuth_range: ", g += this.azimuth_range, g += " (", g += this.azimuth_range * 2 ** -16, g += "°), elevation_range: ", g += this.elevation_range, g += " (", g += this.elevation_range * 2 ** -16, g += "°)"), this.interpolate_included_flag && (g += ", interpolate: ", g += this.interpolate), g;
@@ -11470,7 +11479,7 @@ var wi, th = (wi = class extends m {
11470
11479
  let g = "";
11471
11480
  return this.view_idc && (g += "view_idc: ", g += this.view_idc, g += ", "), g += "sphere_region: {", g += this.sphere_region, g += "}", g;
11472
11481
  }
11473
- }, bi, ch = (bi = class extends w {
11482
+ }, ki, ch = (ki = class extends w {
11474
11483
  constructor() {
11475
11484
  super(...arguments), this.box_name = "CoverageInformationBox";
11476
11485
  }
@@ -11487,21 +11496,21 @@ var wi, th = (wi = class extends m {
11487
11496
  const i = new oh();
11488
11497
  return i.centre_azimuth = A.readInt32(), i.centre_elevation = A.readInt32(), i.centre_tilt = A.readInt32(), i.range_included_flag = t, t && (i.azimuth_range = A.readUint32(), i.elevation_range = A.readUint32()), i.interpolate_included_flag = e, e && (i.interpolate = (A.readUint8() & 128) === 128), i;
11489
11498
  }
11490
- }, bi.fourcc = "covi", bi), ki, lh = (ki = class extends w {
11499
+ }, ki.fourcc = "covi", ki), Yi, lh = (Yi = class extends w {
11491
11500
  constructor() {
11492
11501
  super(...arguments), this.box_name = "CopyrightBox";
11493
11502
  }
11494
11503
  parse(A) {
11495
11504
  this.parseFullHeader(A), this.parseLanguage(A), this.notice = A.readCString();
11496
11505
  }
11497
- }, ki.fourcc = "cprt", ki), Yi, dh = (Yi = class extends w {
11506
+ }, Yi.fourcc = "cprt", Yi), _i, dh = (_i = class extends w {
11498
11507
  constructor() {
11499
11508
  super(...arguments), this.box_name = "CompatibleSchemeTypeBox";
11500
11509
  }
11501
11510
  parse(A) {
11502
11511
  this.parseFullHeader(A), this.scheme_type = A.readString(4), this.scheme_version = A.readUint32(), this.flags & 1 && (this.scheme_uri = A.readCString());
11503
11512
  }
11504
- }, Yi.fourcc = "csch", Yi), as = 2147483647, _i, fh = (_i = class extends w {
11513
+ }, _i.fourcc = "csch", _i), as = 2147483647, Li, fh = (Li = class extends w {
11505
11514
  constructor() {
11506
11515
  super(...arguments), this.box_name = "CompositionToDecodeBox";
11507
11516
  }
@@ -11512,7 +11521,7 @@ var wi, th = (wi = class extends m {
11512
11521
  write(A) {
11513
11522
  this.version = 0, (this.compositionToDTSShift > as || this.leastDecodeToDisplayDelta > as || this.greatestDecodeToDisplayDelta > as || this.compositionStartTime > as || this.compositionEndTime > as) && (this.version = 1), this.flags = 0, this.version === 0 ? (this.size = 20, this.writeHeader(A), A.writeInt32(this.compositionToDTSShift), A.writeInt32(this.leastDecodeToDisplayDelta), A.writeInt32(this.greatestDecodeToDisplayDelta), A.writeInt32(this.compositionStartTime), A.writeInt32(this.compositionEndTime)) : this.version === 1 && (this.size = 40, this.writeHeader(A), A.writeInt64(this.compositionToDTSShift), A.writeInt64(this.leastDecodeToDisplayDelta), A.writeInt64(this.greatestDecodeToDisplayDelta), A.writeInt64(this.compositionStartTime), A.writeInt64(this.compositionEndTime));
11514
11523
  }
11515
- }, _i.fourcc = "cslg", _i), Li, uh = (Li = class extends w {
11524
+ }, Li.fourcc = "cslg", Li), Ji, uh = (Ji = class extends w {
11516
11525
  constructor() {
11517
11526
  super(...arguments), this.box_name = "CompositionOffsetBox";
11518
11527
  }
@@ -11542,7 +11551,7 @@ var wi, th = (wi = class extends m {
11542
11551
  for (let i = 0; i < this.sample_counts[e]; i++)
11543
11552
  A[t].pts = A[t].dts + this.sample_offsets[e], t++;
11544
11553
  }
11545
- }, Li.fourcc = "ctts", Li), Ji, wh = (Ji = class extends m {
11554
+ }, Ji.fourcc = "ctts", Ji), Hi, wh = (Hi = class extends m {
11546
11555
  constructor() {
11547
11556
  super(...arguments), this.box_name = "AC3SpecificBox";
11548
11557
  }
@@ -11550,7 +11559,7 @@ var wi, th = (wi = class extends m {
11550
11559
  const t = A.readUint8(), e = A.readUint8(), i = A.readUint8();
11551
11560
  this.fscod = t >> 6, this.bsid = t >> 1 & 31, this.bsmod = (t & 1) << 2 | e >> 6 & 3, this.acmod = e >> 3 & 7, this.lfeon = e >> 2 & 1, this.bit_rate_code = e & 3 | i >> 5 & 7;
11552
11561
  }
11553
- }, Ji.fourcc = "dac3", Ji), Hi, Dh = (Hi = class extends m {
11562
+ }, Hi.fourcc = "dac3", Hi), vi, Dh = (vi = class extends m {
11554
11563
  constructor() {
11555
11564
  super(...arguments), this.box_name = "EC3SpecificBox";
11556
11565
  }
@@ -11569,7 +11578,7 @@ var wi, th = (wi = class extends m {
11569
11578
  this.ind_subs.push(n), n.num_dep_sub > 0 && (n.chan_loc = (s & 1) << 8 | A.readUint8());
11570
11579
  }
11571
11580
  }
11572
- }, Hi.fourcc = "dec3", Hi), vi, ph = (vi = class extends w {
11581
+ }, vi.fourcc = "dec3", vi), Ki, ph = (Ki = class extends w {
11573
11582
  constructor() {
11574
11583
  super(...arguments), this.box_name = "FLACSpecificBox";
11575
11584
  }
@@ -11593,28 +11602,28 @@ var wi, th = (wi = class extends m {
11593
11602
  } while (s & e);
11594
11603
  this.numMetadataBlocks = i.length + " (" + i.join(", ") + ")";
11595
11604
  }
11596
- }, vi.fourcc = "dfLa", vi), Ki, yh = (Ki = class extends m {
11605
+ }, Ki.fourcc = "dfLa", Ki), Ti, yh = (Ti = class extends m {
11597
11606
  constructor() {
11598
11607
  super(...arguments), this.box_name = "hintimmediateBytesSent";
11599
11608
  }
11600
11609
  parse(A) {
11601
11610
  this.bytessent = A.readUint64();
11602
11611
  }
11603
- }, Ki.fourcc = "dimm", Ki), Ti, mh = (Ti = class extends m {
11612
+ }, Ti.fourcc = "dimm", Ti), qi, mh = (qi = class extends m {
11604
11613
  constructor() {
11605
11614
  super(...arguments), this.box_name = "hintlongestpacket";
11606
11615
  }
11607
11616
  parse(A) {
11608
11617
  this.time = A.readUint32();
11609
11618
  }
11610
- }, Ti.fourcc = "dmax", Ti), qi, Gh = (qi = class extends m {
11619
+ }, qi.fourcc = "dmax", qi), Zi, Gh = (Zi = class extends m {
11611
11620
  constructor() {
11612
11621
  super(...arguments), this.box_name = "hintmediaBytesSent";
11613
11622
  }
11614
11623
  parse(A) {
11615
11624
  this.bytessent = A.readUint64();
11616
11625
  }
11617
- }, qi.fourcc = "dmed", qi), Zi, Sh = (Zi = class extends m {
11626
+ }, Zi.fourcc = "dmed", Zi), Vi, Sh = (Vi = class extends m {
11618
11627
  constructor() {
11619
11628
  super(...arguments), this.box_name = "OpusSpecificBox";
11620
11629
  }
@@ -11632,14 +11641,14 @@ var wi, th = (wi = class extends m {
11632
11641
  A.writeUint8(this.ChannelMapping[t]);
11633
11642
  }
11634
11643
  }
11635
- }, Zi.fourcc = "dOps", Zi), Vi, Fh = (Vi = class extends m {
11644
+ }, Vi.fourcc = "dOps", Vi), Wi, Fh = (Wi = class extends m {
11636
11645
  constructor() {
11637
11646
  super(...arguments), this.box_name = "hintrepeatedBytesSent";
11638
11647
  }
11639
11648
  parse(A) {
11640
11649
  this.bytessent = A.readUint64();
11641
11650
  }
11642
- }, Vi.fourcc = "drep", Vi), Wi, Nh = (Wi = class extends w {
11651
+ }, Wi.fourcc = "drep", Wi), ji, Nh = (ji = class extends w {
11643
11652
  constructor() {
11644
11653
  super(...arguments), this.box_name = "EditListBox";
11645
11654
  }
@@ -11667,7 +11676,7 @@ var wi, th = (wi = class extends m {
11667
11676
  t ? (A.writeUint64(i.segment_duration), A.writeInt64(i.media_time)) : (A.writeUint32(i.segment_duration), A.writeInt32(i.media_time)), A.writeInt16(i.media_rate_integer), A.writeInt16(i.media_rate_fraction);
11668
11677
  }
11669
11678
  }
11670
- }, Wi.fourcc = "elst", Wi), ji, Rh = (ji = class extends w {
11679
+ }, ji.fourcc = "elst", ji), zi, Rh = (zi = class extends w {
11671
11680
  constructor() {
11672
11681
  super(...arguments), this.box_name = "EventMessageBox";
11673
11682
  }
@@ -11680,7 +11689,7 @@ var wi, th = (wi = class extends m {
11680
11689
  write(A) {
11681
11690
  this.version = 0, this.flags = 0, this.size = 16 + this.message_data.length + (this.scheme_id_uri.length + 1) + (this.value.length + 1), this.writeHeader(A), A.writeCString(this.scheme_id_uri), A.writeCString(this.value), A.writeUint32(this.timescale), A.writeUint32(this.presentation_time_delta), A.writeUint32(this.event_duration), A.writeUint32(this.id), A.writeUint8Array(this.message_data);
11682
11691
  }
11683
- }, ji.fourcc = "emsg", ji), P = class extends w {
11692
+ }, zi.fourcc = "emsg", zi), P = class extends w {
11684
11693
  parse(g) {
11685
11694
  this.parseFullHeader(g), this.group_id = g.readUint32(), this.num_entities_in_group = g.readUint32(), this.entity_ids = [];
11686
11695
  for (let A = 0; A < this.num_entities_in_group; A++) {
@@ -11688,71 +11697,71 @@ var wi, th = (wi = class extends m {
11688
11697
  this.entity_ids.push(t);
11689
11698
  }
11690
11699
  }
11691
- }, zi, xh = (zi = class extends P {
11700
+ }, Xi, xh = (Xi = class extends P {
11692
11701
  constructor() {
11693
11702
  super(...arguments), this.box_name = "Auto exposure bracketing";
11694
11703
  }
11695
- }, zi.fourcc = "aebr", zi), Xi, Uh = (Xi = class extends P {
11704
+ }, Xi.fourcc = "aebr", Xi), Oi, Uh = (Oi = class extends P {
11696
11705
  constructor() {
11697
11706
  super(...arguments), this.box_name = "Flash exposure information";
11698
11707
  }
11699
- }, Xi.fourcc = "afbr", Xi), Oi, Mh = (Oi = class extends P {
11708
+ }, Oi.fourcc = "afbr", Oi), Pi, Mh = (Pi = class extends P {
11700
11709
  constructor() {
11701
11710
  super(...arguments), this.box_name = "Album collection";
11702
11711
  }
11703
- }, Oi.fourcc = "albc", Oi), Pi, bh = (Pi = class extends P {
11712
+ }, Pi.fourcc = "albc", Pi), $i, bh = ($i = class extends P {
11704
11713
  constructor() {
11705
11714
  super(...arguments), this.box_name = "Alternative entity";
11706
11715
  }
11707
- }, Pi.fourcc = "altr", Pi), $i, kh = ($i = class extends P {
11716
+ }, $i.fourcc = "altr", $i), Ag, kh = (Ag = class extends P {
11708
11717
  constructor() {
11709
11718
  super(...arguments), this.box_name = "Burst image";
11710
11719
  }
11711
- }, $i.fourcc = "brst", $i), Ag, Yh = (Ag = class extends P {
11720
+ }, Ag.fourcc = "brst", Ag), tg, Yh = (tg = class extends P {
11712
11721
  constructor() {
11713
11722
  super(...arguments), this.box_name = "Depth of field bracketing";
11714
11723
  }
11715
- }, Ag.fourcc = "dobr", Ag), tg, _h = (tg = class extends P {
11724
+ }, tg.fourcc = "dobr", tg), eg, _h = (eg = class extends P {
11716
11725
  constructor() {
11717
11726
  super(...arguments), this.box_name = "Equivalent entity";
11718
11727
  }
11719
- }, tg.fourcc = "eqiv", tg), eg, Lh = (eg = class extends P {
11728
+ }, eg.fourcc = "eqiv", eg), ig, Lh = (ig = class extends P {
11720
11729
  constructor() {
11721
11730
  super(...arguments), this.box_name = "Favorites collection";
11722
11731
  }
11723
- }, eg.fourcc = "favc", eg), ig, Jh = (ig = class extends P {
11732
+ }, ig.fourcc = "favc", ig), gg, Jh = (gg = class extends P {
11724
11733
  constructor() {
11725
11734
  super(...arguments), this.box_name = "Focus bracketing";
11726
11735
  }
11727
- }, ig.fourcc = "fobr", ig), gg, Hh = (gg = class extends P {
11736
+ }, gg.fourcc = "fobr", gg), Ig, Hh = (Ig = class extends P {
11728
11737
  constructor() {
11729
11738
  super(...arguments), this.box_name = "Image item with an audio track";
11730
11739
  }
11731
- }, gg.fourcc = "iaug", gg), Ig, vh = (Ig = class extends P {
11740
+ }, Ig.fourcc = "iaug", Ig), sg, vh = (sg = class extends P {
11732
11741
  constructor() {
11733
11742
  super(...arguments), this.box_name = "Panorama";
11734
11743
  }
11735
- }, Ig.fourcc = "pano", Ig), sg, Kh = (sg = class extends P {
11744
+ }, sg.fourcc = "pano", sg), ng, Kh = (ng = class extends P {
11736
11745
  constructor() {
11737
11746
  super(...arguments), this.box_name = "Slideshow";
11738
11747
  }
11739
- }, sg.fourcc = "slid", sg), ng, Th = (ng = class extends P {
11748
+ }, ng.fourcc = "slid", ng), Bg, Th = (Bg = class extends P {
11740
11749
  constructor() {
11741
11750
  super(...arguments), this.box_name = "Stereo";
11742
11751
  }
11743
- }, ng.fourcc = "ster", ng), Bg, qh = (Bg = class extends P {
11752
+ }, Bg.fourcc = "ster", Bg), Cg, qh = (Cg = class extends P {
11744
11753
  constructor() {
11745
11754
  super(...arguments), this.box_name = "Time-synchronized capture";
11746
11755
  }
11747
- }, Bg.fourcc = "tsyn", Bg), Cg, Zh = (Cg = class extends P {
11756
+ }, Cg.fourcc = "tsyn", Cg), Qg, Zh = (Qg = class extends P {
11748
11757
  constructor() {
11749
11758
  super(...arguments), this.box_name = "White balance bracketing";
11750
11759
  }
11751
- }, Cg.fourcc = "wbbr", Cg), Qg, Vh = (Qg = class extends P {
11760
+ }, Qg.fourcc = "wbbr", Qg), ag, Vh = (ag = class extends P {
11752
11761
  constructor() {
11753
11762
  super(...arguments), this.box_name = "Progressive rendering";
11754
11763
  }
11755
- }, Qg.fourcc = "prgr", Qg), ag, Wh = (ag = class extends P {
11764
+ }, ag.fourcc = "prgr", ag), rg, Wh = (rg = class extends P {
11756
11765
  constructor() {
11757
11766
  super(...arguments), this.box_name = "Image pyramid";
11758
11767
  }
@@ -11766,21 +11775,21 @@ var wi, th = (wi = class extends m {
11766
11775
  for (let t = 0; t < this.num_entities_in_group; t++)
11767
11776
  this.layer_binning[t] = A.readUint16(), this.tiles_in_layer_row_minus1[t] = A.readUint16(), this.tiles_in_layer_column_minus1[t] = A.readUint16();
11768
11777
  }
11769
- }, ag.fourcc = "pymd", ag), rg, jh = (rg = class extends m {
11778
+ }, rg.fourcc = "pymd", rg), Eg, jh = (Eg = class extends m {
11770
11779
  constructor() {
11771
11780
  super(...arguments), this.box_name = "FieldHandlingBox";
11772
11781
  }
11773
11782
  parse(A) {
11774
11783
  this.fieldCount = A.readUint8(), this.fieldOrdering = A.readUint8();
11775
11784
  }
11776
- }, rg.fourcc = "fiel", rg), Eg, zh = (Eg = class extends m {
11785
+ }, Eg.fourcc = "fiel", Eg), og, zh = (og = class extends m {
11777
11786
  constructor() {
11778
11787
  super(...arguments), this.box_name = "OriginalFormatBox";
11779
11788
  }
11780
11789
  parse(A) {
11781
11790
  this.data_format = A.readString(4);
11782
11791
  }
11783
- }, Eg.fourcc = "frma", Eg), og, Xh = (og = class extends m {
11792
+ }, og.fourcc = "frma", og), hg, Xh = (hg = class extends m {
11784
11793
  constructor() {
11785
11794
  super(...arguments), this.box_name = "ImageMirror";
11786
11795
  }
@@ -11788,7 +11797,7 @@ var wi, th = (wi = class extends m {
11788
11797
  const t = A.readUint8();
11789
11798
  this.reserved = t >> 7, this.axis = t & 1;
11790
11799
  }
11791
- }, og.fourcc = "imir", og), hg, Oh = (hg = class extends w {
11800
+ }, hg.fourcc = "imir", hg), cg, Oh = (cg = class extends w {
11792
11801
  constructor() {
11793
11802
  super(...arguments), this.box_name = "ItemPropertyAssociationBox";
11794
11803
  }
@@ -11811,21 +11820,21 @@ var wi, th = (wi = class extends m {
11811
11820
  });
11812
11821
  }
11813
11822
  }
11814
- }, hg.fourcc = "ipma", hg), cg, Ph = (cg = class extends m {
11823
+ }, cg.fourcc = "ipma", cg), lg, Ph = (lg = class extends m {
11815
11824
  constructor() {
11816
11825
  super(...arguments), this.box_name = "ImageRotation";
11817
11826
  }
11818
11827
  parse(A) {
11819
11828
  this.angle = A.readUint8() & 3;
11820
11829
  }
11821
- }, cg.fourcc = "irot", cg), lg, $h = (lg = class extends w {
11830
+ }, lg.fourcc = "irot", lg), dg, $h = (dg = class extends w {
11822
11831
  constructor() {
11823
11832
  super(...arguments), this.box_name = "ImageSpatialExtentsProperty";
11824
11833
  }
11825
11834
  parse(A) {
11826
11835
  this.parseFullHeader(A), this.image_width = A.readUint32(), this.image_height = A.readUint32();
11827
11836
  }
11828
- }, lg.fourcc = "ispe", lg), dg, Ac = (dg = class extends w {
11837
+ }, dg.fourcc = "ispe", dg), fg, Ac = (fg = class extends w {
11829
11838
  constructor() {
11830
11839
  super(...arguments), this.box_name = "TAITimestampBox";
11831
11840
  }
@@ -11834,7 +11843,7 @@ var wi, th = (wi = class extends m {
11834
11843
  const t = A.readUint8();
11835
11844
  this.sychronization_state = t >> 7 & 1, this.timestamp_generation_failure = t >> 6 & 1, this.timestamp_is_modified = t >> 5 & 1;
11836
11845
  }
11837
- }, dg.fourcc = "itai", dg), fg, tc = (fg = class extends w {
11846
+ }, fg.fourcc = "itai", fg), ug, tc = (ug = class extends w {
11838
11847
  constructor() {
11839
11848
  super(...arguments), this.box_name = "KindBox";
11840
11849
  }
@@ -11845,7 +11854,7 @@ var wi, th = (wi = class extends m {
11845
11854
  write(A) {
11846
11855
  this.version = 0, this.flags = 0, this.size = this.schemeURI.length + 1 + (this.value ? this.value.length + 1 : 0), this.writeHeader(A), A.writeCString(this.schemeURI), this.value && A.writeCString(this.value);
11847
11856
  }
11848
- }, fg.fourcc = "kind", fg), ug, ec = (ug = class extends w {
11857
+ }, ug.fourcc = "kind", ug), wg, ec = (wg = class extends w {
11849
11858
  constructor() {
11850
11859
  super(...arguments), this.box_name = "LevelAssignmentBox";
11851
11860
  }
@@ -11876,7 +11885,7 @@ var wi, th = (wi = class extends m {
11876
11885
  }
11877
11886
  }
11878
11887
  }
11879
- }, ug.fourcc = "leva", ug), wg, ic = (wg = class extends m {
11888
+ }, wg.fourcc = "leva", wg), Dg, ic = (Dg = class extends m {
11880
11889
  constructor() {
11881
11890
  super(...arguments), this.box_name = "LHEVCConfigurationBox";
11882
11891
  }
@@ -11895,67 +11904,67 @@ var wi, th = (wi = class extends m {
11895
11904
  }
11896
11905
  }
11897
11906
  }
11898
- }, wg.fourcc = "lhvC", wg), Dg, gc = (Dg = class extends m {
11907
+ }, Dg.fourcc = "lhvC", Dg), pg, gc = (pg = class extends m {
11899
11908
  constructor() {
11900
11909
  super(...arguments), this.box_name = "LayerSelectorProperty";
11901
11910
  }
11902
11911
  parse(A) {
11903
11912
  this.layer_id = A.readUint16();
11904
11913
  }
11905
- }, Dg.fourcc = "lsel", Dg), pg, Ic = (pg = class extends m {
11914
+ }, pg.fourcc = "lsel", pg), yg, Ic = (yg = class extends m {
11906
11915
  constructor() {
11907
11916
  super(...arguments), this.box_name = "hintmaxrate";
11908
11917
  }
11909
11918
  parse(A) {
11910
11919
  this.period = A.readUint32(), this.bytes = A.readUint32();
11911
11920
  }
11912
- }, pg.fourcc = "maxr", pg), vs = class {
11921
+ }, yg.fourcc = "maxr", yg), vs = class {
11913
11922
  constructor(g, A) {
11914
11923
  this.x = g, this.y = A;
11915
11924
  }
11916
11925
  toString() {
11917
11926
  return "(" + this.x + "," + this.y + ")";
11918
11927
  }
11919
- }, yg, sc = (yg = class extends m {
11928
+ }, mg, sc = (mg = class extends m {
11920
11929
  constructor() {
11921
11930
  super(...arguments), this.box_name = "MasteringDisplayColourVolumeBox";
11922
11931
  }
11923
11932
  parse(A) {
11924
11933
  this.display_primaries = [], this.display_primaries[0] = new vs(A.readUint16(), A.readUint16()), this.display_primaries[1] = new vs(A.readUint16(), A.readUint16()), this.display_primaries[2] = new vs(A.readUint16(), A.readUint16()), this.white_point = new vs(A.readUint16(), A.readUint16()), this.max_display_mastering_luminance = A.readUint32(), this.min_display_mastering_luminance = A.readUint32();
11925
11934
  }
11926
- }, yg.fourcc = "mdcv", yg), mg, nc = (mg = class extends w {
11935
+ }, mg.fourcc = "mdcv", mg), Gg, nc = (Gg = class extends w {
11927
11936
  constructor() {
11928
11937
  super(...arguments), this.box_name = "MovieFragmentRandomAccessOffsetBox";
11929
11938
  }
11930
11939
  parse(A) {
11931
11940
  this.parseFullHeader(A), this._size = A.readUint32();
11932
11941
  }
11933
- }, mg.fourcc = "mfro", mg), Gg, Bc = (Gg = class extends w {
11942
+ }, Gg.fourcc = "mfro", Gg), Sg, Bc = (Sg = class extends w {
11934
11943
  constructor() {
11935
11944
  super(...arguments), this.box_name = "MaskConfigurationProperty";
11936
11945
  }
11937
11946
  parse(A) {
11938
11947
  this.parseFullHeader(A), this.bits_per_pixel = A.readUint8();
11939
11948
  }
11940
- }, Gg.fourcc = "mskC", Gg), Sg, Cc = (Sg = class extends m {
11949
+ }, Sg.fourcc = "mskC", Sg), Fg, Cc = (Fg = class extends m {
11941
11950
  constructor() {
11942
11951
  super(...arguments), this.box_name = "hintPacketsSent";
11943
11952
  }
11944
11953
  parse(A) {
11945
11954
  this.packetssent = A.readUint32();
11946
11955
  }
11947
- }, Sg.fourcc = "npck", Sg), Fg, Qc = (Fg = class extends m {
11956
+ }, Fg.fourcc = "npck", Fg), Ng, Qc = (Ng = class extends m {
11948
11957
  constructor() {
11949
11958
  super(...arguments), this.box_name = "hintPacketsSent";
11950
11959
  }
11951
11960
  parse(A) {
11952
11961
  this.packetssent = A.readUint64();
11953
11962
  }
11954
- }, Fg.fourcc = "nump", Fg), ac = class {
11963
+ }, Ng.fourcc = "nump", Ng), ac = class {
11955
11964
  constructor(g, A) {
11956
11965
  this.pad1 = g, this.pad2 = A;
11957
11966
  }
11958
- }, Ng, rc = (Ng = class extends w {
11967
+ }, Rg, rc = (Rg = class extends w {
11959
11968
  constructor() {
11960
11969
  super(...arguments), this.box_name = "PaddingBitsBox";
11961
11970
  }
@@ -11968,21 +11977,21 @@ var wi, th = (wi = class extends m {
11968
11977
  this.padbits.push(new ac(I, s));
11969
11978
  }
11970
11979
  }
11971
- }, Ng.fourcc = "padb", Ng), Rg, Ec = (Rg = class extends m {
11980
+ }, Rg.fourcc = "padb", Rg), xg, Ec = (xg = class extends m {
11972
11981
  constructor() {
11973
11982
  super(...arguments), this.box_name = "PixelAspectRatioBox";
11974
11983
  }
11975
11984
  parse(A) {
11976
11985
  this.hSpacing = A.readUint32(), this.vSpacing = A.readUint32();
11977
11986
  }
11978
- }, Rg.fourcc = "pasp", Rg), xg, oc = (xg = class extends m {
11987
+ }, xg.fourcc = "pasp", xg), Ug, oc = (Ug = class extends m {
11979
11988
  constructor() {
11980
11989
  super(...arguments), this.box_name = "CuePayloadBox";
11981
11990
  }
11982
11991
  parse(A) {
11983
11992
  this.text = A.readString(this.size - this.hdr_size);
11984
11993
  }
11985
- }, xg.fourcc = "payl", xg), Ug, hc = (Ug = class extends m {
11994
+ }, Ug.fourcc = "payl", Ug), Mg, hc = (Mg = class extends m {
11986
11995
  constructor() {
11987
11996
  super(...arguments), this.box_name = "hintpayloadID";
11988
11997
  }
@@ -11991,7 +12000,7 @@ var wi, th = (wi = class extends m {
11991
12000
  const t = A.readUint8();
11992
12001
  this.rtpmap_string = A.readString(t);
11993
12002
  }
11994
- }, Ug.fourcc = "payt", Ug), Mg, cc = (Mg = class extends w {
12003
+ }, Mg.fourcc = "payt", Mg), bg, cc = (bg = class extends w {
11995
12004
  constructor() {
11996
12005
  super(...arguments), this.box_name = "ProgressiveDownloadInfoBox", this.rate = [], this.initial_delay = [];
11997
12006
  }
@@ -12001,7 +12010,7 @@ var wi, th = (wi = class extends m {
12001
12010
  for (let e = 0; e < t; e++)
12002
12011
  this.rate[e] = A.readUint32(), this.initial_delay[e] = A.readUint32();
12003
12012
  }
12004
- }, Mg.fourcc = "pdin", Mg), bg, lc = (bg = class extends w {
12013
+ }, bg.fourcc = "pdin", bg), kg, lc = (kg = class extends w {
12005
12014
  constructor() {
12006
12015
  super(...arguments), this.box_name = "PixelInformationProperty";
12007
12016
  }
@@ -12010,14 +12019,14 @@ var wi, th = (wi = class extends m {
12010
12019
  for (let t = 0; t < this.num_channels; t++)
12011
12020
  this.bits_per_channels[t] = A.readUint8();
12012
12021
  }
12013
- }, bg.fourcc = "pixi", bg), kg, dc = (kg = class extends m {
12022
+ }, kg.fourcc = "pixi", kg), Yg, dc = (Yg = class extends m {
12014
12023
  constructor() {
12015
12024
  super(...arguments), this.box_name = "hintlargestpacket";
12016
12025
  }
12017
12026
  parse(A) {
12018
12027
  this.bytes = A.readUint32();
12019
12028
  }
12020
- }, kg.fourcc = "pmax", kg), Yg, fc = (Yg = class extends w {
12029
+ }, Yg.fourcc = "pmax", Yg), _g, fc = (_g = class extends w {
12021
12030
  constructor() {
12022
12031
  super(...arguments), this.box_name = "ProgressiveDerivedImageItemInformationProperty";
12023
12032
  }
@@ -12026,41 +12035,41 @@ var wi, th = (wi = class extends m {
12026
12035
  for (let t = 0; t < this.step_count; t++)
12027
12036
  this.item_count[t] = A.readUint16();
12028
12037
  }
12029
- }, Yg.fourcc = "prdi", Yg), _g, uc = (_g = class extends w {
12038
+ }, _g.fourcc = "prdi", _g), Lg, uc = (Lg = class extends w {
12030
12039
  constructor() {
12031
12040
  super(...arguments), this.box_name = "ProjectionFormatBox";
12032
12041
  }
12033
12042
  parse(A) {
12034
12043
  this.parseFullHeader(A), this.projection_type = A.readUint8() & 31;
12035
12044
  }
12036
- }, _g.fourcc = "prfr", _g), Lg, wc = (Lg = class extends w {
12045
+ }, Lg.fourcc = "prfr", Lg), Jg, wc = (Jg = class extends w {
12037
12046
  constructor() {
12038
12047
  super(...arguments), this.box_name = "ProducerReferenceTimeBox";
12039
12048
  }
12040
12049
  parse(A) {
12041
12050
  this.parseFullHeader(A), this.ref_track_id = A.readUint32(), this.ntp_timestamp = A.readUint64(), this.version === 0 ? this.media_time = A.readUint32() : this.media_time = A.readUint64();
12042
12051
  }
12043
- }, Lg.fourcc = "prft", Lg), Jg, Dc = (Jg = class extends w {
12052
+ }, Jg.fourcc = "prft", Jg), Hg, Dc = (Hg = class extends w {
12044
12053
  constructor() {
12045
12054
  super(...arguments), this.box_name = "ProtectionSystemSpecificHeaderBox";
12046
12055
  }
12047
12056
  parse(A) {
12048
- if (this.parseFullHeader(A), this.system_id = LA(A), this.kid = [], this.version > 0) {
12057
+ if (this.parseFullHeader(A), this.system_id = JA(A), this.kid = [], this.version > 0) {
12049
12058
  const e = A.readUint32();
12050
12059
  for (let i = 0; i < e; i++)
12051
- this.kid[i] = LA(A);
12060
+ this.kid[i] = JA(A);
12052
12061
  }
12053
12062
  const t = A.readUint32();
12054
12063
  t > 0 && (this.protection_data = A.readUint8Array(t));
12055
12064
  }
12056
- }, Jg.fourcc = "pssh", Jg), Hg, pc = (Hg = class extends w {
12065
+ }, Hg.fourcc = "pssh", Hg), vg, pc = (vg = class extends w {
12057
12066
  constructor() {
12058
12067
  super(...arguments), this.box_name = "TrackCleanApertureDimensionsBox";
12059
12068
  }
12060
12069
  parse(A) {
12061
12070
  this.parseFullHeader(A), this.width = A.readUint32(), this.height = A.readUint32();
12062
12071
  }
12063
- }, Hg.fourcc = "clef", Hg);
12072
+ }, vg.fourcc = "clef", vg);
12064
12073
  function yc(g, A) {
12065
12074
  if (g === ls.Types.UTF8)
12066
12075
  return new TextDecoder("utf-8").decode(A);
@@ -12089,14 +12098,14 @@ function yc(g, A) {
12089
12098
  return t.getFloat32(0, !1);
12090
12099
  l.warn("DataBox", "Unsupported or unimplemented itif data type: " + g);
12091
12100
  }
12092
- var _A, ls = (_A = class extends m {
12101
+ var LA, ls = (LA = class extends m {
12093
12102
  constructor() {
12094
12103
  super(...arguments), this.box_name = "DataBox";
12095
12104
  }
12096
12105
  parse(A) {
12097
12106
  this.valueType = A.readUint32(), this.country = A.readUint16(), this.country > 255 && (A.seek(A.getPosition() - 2), this.countryString = A.readString(2)), this.language = A.readUint16(), this.language > 255 && (A.seek(A.getPosition() - 2), this.parseLanguage(A)), this.raw = A.readUint8Array(this.size - this.hdr_size - 8), this.value = yc(this.valueType, this.raw);
12098
12107
  }
12099
- }, _A.fourcc = "data", _A.Types = {
12108
+ }, LA.fourcc = "data", LA.Types = {
12100
12109
  RESERVED: 0,
12101
12110
  UTF8: 1,
12102
12111
  UTF16: 2,
@@ -12123,14 +12132,14 @@ var _A, ls = (_A = class extends m {
12123
12132
  BE_UNSIGNED_INT32: 77,
12124
12133
  BE_UNSIGNED_INT64: 78,
12125
12134
  BE_FLOAT64_AFFINE_TRANSFORM: 79
12126
- }, _A), vg, mc = (vg = class extends w {
12135
+ }, LA), Kg, mc = (Kg = class extends w {
12127
12136
  constructor() {
12128
12137
  super(...arguments), this.box_name = "TrackEncodedPixelsDimensionsBox";
12129
12138
  }
12130
12139
  parse(A) {
12131
12140
  this.parseFullHeader(A), this.width = A.readUint32(), this.height = A.readUint32();
12132
12141
  }
12133
- }, vg.fourcc = "enof", vg), Kg, Gc = (Kg = class extends m {
12142
+ }, Kg.fourcc = "enof", Kg), Tg, Gc = (Tg = class extends m {
12134
12143
  constructor() {
12135
12144
  super(...arguments), this.box_name = "IlstBox";
12136
12145
  }
@@ -12142,7 +12151,7 @@ var _A, ls = (_A = class extends m {
12142
12151
  I.code === CA && (this.list[i] = I.box), t -= e;
12143
12152
  }
12144
12153
  }
12145
- }, Kg.fourcc = "ilst", Kg), Tg, Sc = (Tg = class extends w {
12154
+ }, Tg.fourcc = "ilst", Tg), qg, Sc = (qg = class extends w {
12146
12155
  constructor() {
12147
12156
  super(...arguments), this.box_name = "KeysBox";
12148
12157
  }
@@ -12153,29 +12162,29 @@ var _A, ls = (_A = class extends m {
12153
12162
  this.keys[t + 1] = A.readString(e - 4);
12154
12163
  }
12155
12164
  }
12156
- }, Tg.fourcc = "keys", Tg), qg, Fc = (qg = class extends w {
12165
+ }, qg.fourcc = "keys", qg), Zg, Fc = (Zg = class extends w {
12157
12166
  constructor() {
12158
12167
  super(...arguments), this.box_name = "TrackProductionApertureDimensionsBox";
12159
12168
  }
12160
12169
  parse(A) {
12161
12170
  this.parseFullHeader(A), this.width = A.readUint32(), this.height = A.readUint32();
12162
12171
  }
12163
- }, qg.fourcc = "prof", qg), Zg, Nc = (Zg = class extends U {
12172
+ }, Zg.fourcc = "prof", Zg), Vg, Nc = (Vg = class extends U {
12164
12173
  constructor() {
12165
12174
  super(...arguments), this.box_name = "TrackApertureModeDimensionsBox", this.clefs = [], this.profs = [], this.enofs = [], this.subBoxNames = ["clef", "prof", "enof"];
12166
12175
  }
12167
- }, Zg.fourcc = "tapt", Zg), Vg, Rc = (Vg = class extends U {
12176
+ }, Vg.fourcc = "tapt", Vg), Wg, Rc = (Wg = class extends U {
12168
12177
  constructor() {
12169
12178
  super(...arguments), this.box_name = "siDecompressionParamBox";
12170
12179
  }
12171
- }, Vg.fourcc = "wave", Vg), Wg, xc = (Wg = class extends m {
12180
+ }, Wg.fourcc = "wave", Wg), jg, xc = (jg = class extends m {
12172
12181
  constructor() {
12173
12182
  super(...arguments), this.box_name = "rtpmoviehintinformation";
12174
12183
  }
12175
12184
  parse(A) {
12176
12185
  this.descriptionformat = A.readString(4), this.sdptext = A.readString(this.size - this.hdr_size - 4);
12177
12186
  }
12178
- }, Wg.fourcc = "rtp ", Wg), jg, Uc = (jg = class extends w {
12187
+ }, jg.fourcc = "rtp ", jg), zg, Uc = (zg = class extends w {
12179
12188
  constructor() {
12180
12189
  super(...arguments), this.box_name = "SampleAuxiliaryInformationOffsetsBox";
12181
12190
  }
@@ -12186,7 +12195,7 @@ var _A, ls = (_A = class extends m {
12186
12195
  for (let e = 0; e < t; e++)
12187
12196
  this.version === 0 ? this.offset[e] = A.readUint32() : this.offset[e] = A.readUint64();
12188
12197
  }
12189
- }, jg.fourcc = "saio", jg), zg, Mc = (zg = class extends w {
12198
+ }, zg.fourcc = "saio", zg), Xg, Mc = (Xg = class extends w {
12190
12199
  constructor() {
12191
12200
  super(...arguments), this.box_name = "SampleAuxiliaryInformationSizesBox";
12192
12201
  }
@@ -12195,14 +12204,14 @@ var _A, ls = (_A = class extends m {
12195
12204
  for (let t = 0; t < this.sample_count; t++)
12196
12205
  this.sample_info_size[t] = A.readUint8();
12197
12206
  }
12198
- }, zg.fourcc = "saiz", zg), bc = class {
12207
+ }, Xg.fourcc = "saiz", Xg), bc = class {
12199
12208
  constructor(g, A) {
12200
12209
  this.bad_pixel_row = g, this.bad_pixel_column = A;
12201
12210
  }
12202
12211
  toString() {
12203
12212
  return "[row: " + this.bad_pixel_row + ", column: " + this.bad_pixel_column + "]";
12204
12213
  }
12205
- }, Xg, kc = (Xg = class extends w {
12214
+ }, Og, kc = (Og = class extends w {
12206
12215
  constructor() {
12207
12216
  super(...arguments), this.box_name = "SensorBadPixelsMapBox";
12208
12217
  }
@@ -12221,21 +12230,21 @@ var _A, ls = (_A = class extends m {
12221
12230
  this.bad_pixels.push(new bc(i, I));
12222
12231
  }
12223
12232
  }
12224
- }, Xg.fourcc = "sbpm", Xg), Og, Yc = (Og = class extends w {
12233
+ }, Og.fourcc = "sbpm", Og), Pg, Yc = (Pg = class extends w {
12225
12234
  constructor() {
12226
12235
  super(...arguments), this.box_name = "SchemeTypeBox";
12227
12236
  }
12228
12237
  parse(A) {
12229
12238
  this.parseFullHeader(A), this.scheme_type = A.readString(4), this.scheme_version = A.readUint32(), this.flags & 1 && (this.scheme_uri = A.readString(this.size - this.hdr_size - 8));
12230
12239
  }
12231
- }, Og.fourcc = "schm", Og), Pg, _c = (Pg = class extends m {
12240
+ }, Pg.fourcc = "schm", Pg), $g, _c = ($g = class extends m {
12232
12241
  constructor() {
12233
12242
  super(...arguments), this.box_name = "rtptracksdphintinformation";
12234
12243
  }
12235
12244
  parse(A) {
12236
12245
  this.sdptext = A.readString(this.size - this.hdr_size);
12237
12246
  }
12238
- }, Pg.fourcc = "sdp ", Pg), $g, Lc = ($g = class extends w {
12247
+ }, $g.fourcc = "sdp ", $g), AI, Lc = (AI = class extends w {
12239
12248
  constructor() {
12240
12249
  super(...arguments), this.box_name = "SampleEncryptionBox";
12241
12250
  }
@@ -12262,21 +12271,21 @@ var _A, ls = (_A = class extends m {
12262
12271
  this.samples.push(sample);
12263
12272
  }
12264
12273
  } */
12265
- }, $g.fourcc = "senc", $g), AI, Jc = (AI = class extends w {
12274
+ }, AI.fourcc = "senc", AI), tI, Jc = (tI = class extends w {
12266
12275
  constructor() {
12267
12276
  super(...arguments), this.box_name = "SMPTE2086MasteringDisplayMetadataBox";
12268
12277
  }
12269
12278
  parse(A) {
12270
12279
  this.parseFullHeader(A), this.primaryRChromaticity_x = A.readUint16(), this.primaryRChromaticity_y = A.readUint16(), this.primaryGChromaticity_x = A.readUint16(), this.primaryGChromaticity_y = A.readUint16(), this.primaryBChromaticity_x = A.readUint16(), this.primaryBChromaticity_y = A.readUint16(), this.whitePointChromaticity_x = A.readUint16(), this.whitePointChromaticity_y = A.readUint16(), this.luminanceMax = A.readUint32(), this.luminanceMin = A.readUint32();
12271
12280
  }
12272
- }, AI.fourcc = "SmDm", AI), tI, Hc = (tI = class extends w {
12281
+ }, tI.fourcc = "SmDm", tI), eI, Hc = (eI = class extends w {
12273
12282
  constructor() {
12274
12283
  super(...arguments), this.box_name = "SamplingRateBox";
12275
12284
  }
12276
12285
  parse(A) {
12277
12286
  this.parseFullHeader(A), this.sampling_rate = A.readUint32();
12278
12287
  }
12279
- }, tI.fourcc = "srat", tI), eI, vc = (eI = class extends w {
12288
+ }, eI.fourcc = "srat", eI), iI, vc = (iI = class extends w {
12280
12289
  constructor() {
12281
12290
  super(...arguments), this.box_name = "CompressedSubsegmentIndexBox";
12282
12291
  }
@@ -12293,7 +12302,7 @@ var _A, ls = (_A = class extends m {
12293
12302
  }
12294
12303
  }
12295
12304
  }
12296
- }, eI.fourcc = "ssix", eI), iI, Kc = (iI = class extends w {
12305
+ }, iI.fourcc = "ssix", iI), gI, Kc = (gI = class extends w {
12297
12306
  constructor() {
12298
12307
  super(...arguments), this.box_name = "DegradationPriorityBox";
12299
12308
  }
@@ -12304,7 +12313,7 @@ var _A, ls = (_A = class extends m {
12304
12313
  for (let e = 0; e < t; e++)
12305
12314
  this.priority[e] = A.readUint16();
12306
12315
  }
12307
- }, iI.fourcc = "stpd", iI), gI, Tc = (gI = class extends w {
12316
+ }, gI.fourcc = "stpd", gI), II, Tc = (II = class extends w {
12308
12317
  constructor() {
12309
12318
  super(...arguments), this.box_name = "SubTrackInformationBox";
12310
12319
  }
@@ -12315,7 +12324,7 @@ var _A, ls = (_A = class extends m {
12315
12324
  for (let e = 0; e < t; e++)
12316
12325
  this.attribute_list[e] = A.readUint32();
12317
12326
  }
12318
- }, gI.fourcc = "stri", gI), II, qc = (II = class extends w {
12327
+ }, II.fourcc = "stri", II), sI, qc = (sI = class extends w {
12319
12328
  constructor() {
12320
12329
  super(...arguments), this.box_name = "SubTrackSampleGroupBox";
12321
12330
  }
@@ -12326,7 +12335,7 @@ var _A, ls = (_A = class extends m {
12326
12335
  for (let e = 0; e < t; e++)
12327
12336
  this.group_description_index[e] = A.readUint32();
12328
12337
  }
12329
- }, II.fourcc = "stsg", II), sI, Zc = (sI = class extends w {
12338
+ }, sI.fourcc = "stsg", sI), nI, Zc = (nI = class extends w {
12330
12339
  constructor() {
12331
12340
  super(...arguments), this.box_name = "ShadowSyncSampleBox";
12332
12341
  }
@@ -12342,7 +12351,7 @@ var _A, ls = (_A = class extends m {
12342
12351
  for (let t = 0; t < this.shadowed_sample_numbers.length; t++)
12343
12352
  A.writeUint32(this.shadowed_sample_numbers[t]), A.writeUint32(this.sync_sample_numbers[t]);
12344
12353
  }
12345
- }, sI.fourcc = "stsh", sI), nI, Vc = (nI = class extends w {
12354
+ }, nI.fourcc = "stsh", nI), BI, Vc = (BI = class extends w {
12346
12355
  constructor() {
12347
12356
  super(...arguments), this.box_name = "SyncSampleBox";
12348
12357
  }
@@ -12359,7 +12368,7 @@ var _A, ls = (_A = class extends m {
12359
12368
  write(A) {
12360
12369
  this.version = 0, this.flags = 0, this.size = 4 + 4 * this.sample_numbers.length, this.writeHeader(A), A.writeUint32(this.sample_numbers.length), A.writeUint32Array(this.sample_numbers);
12361
12370
  }
12362
- }, nI.fourcc = "stss", nI), BI, Wc = (BI = class extends w {
12371
+ }, BI.fourcc = "stss", BI), CI, Wc = (CI = class extends w {
12363
12372
  constructor() {
12364
12373
  super(...arguments), this.box_name = "StereoVideoBox";
12365
12374
  }
@@ -12377,7 +12386,7 @@ var _A, ls = (_A = class extends m {
12377
12386
  return;
12378
12387
  }
12379
12388
  }
12380
- }, BI.fourcc = "stvi", BI), CI, jc = (CI = class extends m {
12389
+ }, CI.fourcc = "stvi", CI), QI, jc = (QI = class extends m {
12381
12390
  constructor() {
12382
12391
  super(...arguments), this.box_name = "SegmentTypeBox";
12383
12392
  }
@@ -12393,7 +12402,7 @@ var _A, ls = (_A = class extends m {
12393
12402
  for (let t = 0; t < this.compatible_brands.length; t++)
12394
12403
  A.writeString(this.compatible_brands[t], void 0, 4);
12395
12404
  }
12396
- }, CI.fourcc = "styp", CI), QI, zc = (QI = class extends w {
12405
+ }, QI.fourcc = "styp", QI), aI, zc = (aI = class extends w {
12397
12406
  constructor() {
12398
12407
  super(...arguments), this.box_name = "CompactSampleSizeBox";
12399
12408
  }
@@ -12416,7 +12425,7 @@ var _A, ls = (_A = class extends m {
12416
12425
  l.error("BoxParser", "Error in length field in stz2 box", A.isofile);
12417
12426
  }
12418
12427
  }
12419
- }, QI.fourcc = "stz2", QI), aI, Xc = (aI = class extends w {
12428
+ }, aI.fourcc = "stz2", aI), rI, Xc = (rI = class extends w {
12420
12429
  constructor() {
12421
12430
  super(...arguments), this.box_name = "SubSampleInformationBox";
12422
12431
  }
@@ -12434,7 +12443,7 @@ var _A, ls = (_A = class extends m {
12434
12443
  }
12435
12444
  }
12436
12445
  }
12437
- }, aI.fourcc = "subs", aI), rI, Oc = (rI = class extends w {
12446
+ }, rI.fourcc = "subs", rI), EI, Oc = (EI = class extends w {
12438
12447
  constructor() {
12439
12448
  super(...arguments), this.box_name = "TAIClockInfoBox";
12440
12449
  }
@@ -12443,7 +12452,7 @@ var _A, ls = (_A = class extends m {
12443
12452
  const t = A.readUint8();
12444
12453
  this.clock_type = (t & 192) >> 6;
12445
12454
  }
12446
- }, rI.fourcc = "taic", rI), EI, Pc = (EI = class extends w {
12455
+ }, EI.fourcc = "taic", EI), oI, Pc = (oI = class extends w {
12447
12456
  constructor() {
12448
12457
  super(...arguments), this.box_name = "TrackEncryptionBox";
12449
12458
  }
@@ -12454,9 +12463,9 @@ var _A, ls = (_A = class extends m {
12454
12463
  const t = A.readUint8();
12455
12464
  this.default_crypt_byte_block = t >> 4 & 15, this.default_skip_byte_block = t & 15;
12456
12465
  }
12457
- this.default_isProtected = A.readUint8(), this.default_Per_Sample_IV_Size = A.readUint8(), this.default_KID = LA(A), this.default_isProtected === 1 && this.default_Per_Sample_IV_Size === 0 && (this.default_constant_IV_size = A.readUint8(), this.default_constant_IV = A.readUint8Array(this.default_constant_IV_size));
12466
+ this.default_isProtected = A.readUint8(), this.default_Per_Sample_IV_Size = A.readUint8(), this.default_KID = JA(A), this.default_isProtected === 1 && this.default_Per_Sample_IV_Size === 0 && (this.default_constant_IV_size = A.readUint8(), this.default_constant_IV = A.readUint8Array(this.default_constant_IV_size));
12458
12467
  }
12459
- }, EI.fourcc = "tenc", EI), oI, $c = (oI = class extends w {
12468
+ }, oI.fourcc = "tenc", oI), hI, $c = (hI = class extends w {
12460
12469
  constructor() {
12461
12470
  super(...arguments), this.box_name = "TrackFragmentRandomAccessBox";
12462
12471
  }
@@ -12468,43 +12477,43 @@ var _A, ls = (_A = class extends m {
12468
12477
  for (let i = 0; i < e; i++)
12469
12478
  this.version === 1 ? (this.time = A.readUint64(), this.moof_offset = A.readUint64()) : (this.time = A.readUint32(), this.moof_offset = A.readUint32()), this.traf_number = A["readUint" + 8 * (this.length_size_of_traf_num + 1)](), this.trun_number = A["readUint" + 8 * (this.length_size_of_trun_num + 1)](), this.sample_number = A["readUint" + 8 * (this.length_size_of_sample_num + 1)]();
12470
12479
  }
12471
- }, oI.fourcc = "tfra", oI), hI, Al = (hI = class extends m {
12480
+ }, hI.fourcc = "tfra", hI), cI, Al = (cI = class extends m {
12472
12481
  constructor() {
12473
12482
  super(...arguments), this.box_name = "hintmaxrelativetime";
12474
12483
  }
12475
12484
  parse(A) {
12476
12485
  this.time = A.readUint32();
12477
12486
  }
12478
- }, hI.fourcc = "tmax", hI), cI, tl = (cI = class extends m {
12487
+ }, cI.fourcc = "tmax", cI), lI, tl = (lI = class extends m {
12479
12488
  constructor() {
12480
12489
  super(...arguments), this.box_name = "hintminrelativetime";
12481
12490
  }
12482
12491
  parse(A) {
12483
12492
  this.time = A.readUint32();
12484
12493
  }
12485
- }, cI.fourcc = "tmin", cI), lI, el = (lI = class extends m {
12494
+ }, lI.fourcc = "tmin", lI), dI, el = (dI = class extends m {
12486
12495
  constructor() {
12487
12496
  super(...arguments), this.box_name = "hintBytesSent";
12488
12497
  }
12489
12498
  parse(A) {
12490
12499
  this.bytessent = A.readUint32();
12491
12500
  }
12492
- }, lI.fourcc = "totl", lI), dI, il = (dI = class extends m {
12501
+ }, dI.fourcc = "totl", dI), fI, il = (fI = class extends m {
12493
12502
  constructor() {
12494
12503
  super(...arguments), this.box_name = "hintBytesSent";
12495
12504
  }
12496
12505
  parse(A) {
12497
12506
  this.bytessent = A.readUint32();
12498
12507
  }
12499
- }, dI.fourcc = "tpay", dI), fI, gl = (fI = class extends m {
12508
+ }, fI.fourcc = "tpay", fI), uI, gl = (uI = class extends m {
12500
12509
  constructor() {
12501
12510
  super(...arguments), this.box_name = "hintBytesSent";
12502
12511
  }
12503
12512
  parse(A) {
12504
12513
  this.bytessent = A.readUint64();
12505
12514
  }
12506
- }, fI.fourcc = "tpyl", fI), uI, Il = (uI = class extends jr {
12507
- }, uI.fourcc = "msrc", uI), xA, sl = (xA = class extends m {
12515
+ }, uI.fourcc = "tpyl", uI), wI, Il = (wI = class extends jr {
12516
+ }, wI.fourcc = "msrc", wI), xA, sl = (xA = class extends m {
12508
12517
  constructor() {
12509
12518
  super(...arguments), this.box_name = "TrackReferenceBox", this.references = [];
12510
12519
  }
@@ -12535,7 +12544,7 @@ var _A, ls = (_A = class extends m {
12535
12544
  "cdtg",
12536
12545
  "shsc",
12537
12546
  "aest"
12538
- ], xA), wI, nl = (wI = class extends w {
12547
+ ], xA), DI, nl = (DI = class extends w {
12539
12548
  constructor() {
12540
12549
  super(...arguments), this.box_name = "TrackExtensionPropertiesBox";
12541
12550
  }
@@ -12549,14 +12558,14 @@ var _A, ls = (_A = class extends m {
12549
12558
  return;
12550
12559
  }
12551
12560
  }
12552
- }, wI.fourcc = "trep", wI), DI, Bl = (DI = class extends m {
12561
+ }, DI.fourcc = "trep", DI), pI, Bl = (pI = class extends m {
12553
12562
  constructor() {
12554
12563
  super(...arguments), this.box_name = "hintBytesSent";
12555
12564
  }
12556
12565
  parse(A) {
12557
12566
  this.bytessent = A.readUint64();
12558
12567
  }
12559
- }, DI.fourcc = "trpy", DI), pI, Cl = (pI = class extends w {
12568
+ }, pI.fourcc = "trpy", pI), yI, Cl = (yI = class extends w {
12560
12569
  constructor() {
12561
12570
  super(...arguments), this.box_name = "TrackSelectionBox";
12562
12571
  }
@@ -12567,14 +12576,14 @@ var _A, ls = (_A = class extends m {
12567
12576
  for (let e = 0; e < t; e++)
12568
12577
  this.attribute_list[e] = A.readUint32();
12569
12578
  }
12570
- }, pI.fourcc = "tsel", pI), yI, Ql = (yI = class extends w {
12579
+ }, yI.fourcc = "tsel", yI), mI, Ql = (mI = class extends w {
12571
12580
  constructor() {
12572
12581
  super(...arguments), this.box_name = "TextConfigBox";
12573
12582
  }
12574
12583
  parse(A) {
12575
12584
  this.parseFullHeader(A), this.config = A.readCString();
12576
12585
  }
12577
- }, yI.fourcc = "txtc", yI), mI, al = (mI = class extends m {
12586
+ }, mI.fourcc = "txtc", mI), GI, al = (GI = class extends m {
12578
12587
  constructor() {
12579
12588
  super(...arguments), this.box_name = "TypeCombinationBox";
12580
12589
  }
@@ -12584,14 +12593,14 @@ var _A, ls = (_A = class extends m {
12584
12593
  for (let e = 0; e < t; e++)
12585
12594
  this.compatible_brands[e] = A.readString(4);
12586
12595
  }
12587
- }, mI.fourcc = "tyco", mI), GI, rl = (GI = class extends w {
12596
+ }, GI.fourcc = "tyco", GI), SI, rl = (SI = class extends w {
12588
12597
  constructor() {
12589
12598
  super(...arguments), this.box_name = "UserDescriptionProperty";
12590
12599
  }
12591
12600
  parse(A) {
12592
12601
  this.parseFullHeader(A), this.lang = A.readCString(), this.name = A.readCString(), this.description = A.readCString(), this.tags = A.readCString();
12593
12602
  }
12594
- }, GI.fourcc = "udes", GI), SI, El = (SI = class extends w {
12603
+ }, SI.fourcc = "udes", SI), FI, El = (FI = class extends w {
12595
12604
  constructor() {
12596
12605
  super(...arguments), this.box_name = "UncompressedFrameConfigBox";
12597
12606
  }
@@ -12607,7 +12616,7 @@ var _A, ls = (_A = class extends m {
12607
12616
  }
12608
12617
  }
12609
12618
  }
12610
- }, SI.fourcc = "uncC", SI), FI, ol = (FI = class extends w {
12619
+ }, FI.fourcc = "uncC", FI), NI, ol = (NI = class extends w {
12611
12620
  constructor() {
12612
12621
  super(...arguments), this.box_name = "DataEntryUrnBox";
12613
12622
  }
@@ -12618,14 +12627,14 @@ var _A, ls = (_A = class extends m {
12618
12627
  write(A) {
12619
12628
  this.version = 0, this.flags = 0, this.size = this.name.length + 1 + (this.location ? this.location.length + 1 : 0), this.writeHeader(A), A.writeCString(this.name), this.location && A.writeCString(this.location);
12620
12629
  }
12621
- }, FI.fourcc = "urn ", FI), NI, hl = (NI = class extends m {
12630
+ }, NI.fourcc = "urn ", NI), RI, hl = (RI = class extends m {
12622
12631
  constructor() {
12623
12632
  super(...arguments), this.box_name = "WebVTTConfigurationBox";
12624
12633
  }
12625
12634
  parse(A) {
12626
12635
  this.text = A.readString(this.size - this.hdr_size);
12627
12636
  }
12628
- }, NI.fourcc = "vttC", NI), RI, cl = (RI = class extends w {
12637
+ }, RI.fourcc = "vttC", RI), xI, cl = (xI = class extends w {
12629
12638
  constructor() {
12630
12639
  super(...arguments), this.box_name = "VvcNALUConfigBox";
12631
12640
  }
@@ -12634,7 +12643,7 @@ var _A, ls = (_A = class extends m {
12634
12643
  const t = A.readUint8();
12635
12644
  this.lengthSizeMinusOne = t & 3;
12636
12645
  }
12637
- }, RI.fourcc = "vvnC", RI), xI, ll = (xI = class extends T {
12646
+ }, xI.fourcc = "vvnC", xI), UI, ll = (UI = class extends T {
12638
12647
  parse(A) {
12639
12648
  const t = A.readUint16();
12640
12649
  this.first_output_sample = A.readUint16(), this.sample_offset = [];
@@ -12645,11 +12654,11 @@ var _A, ls = (_A = class extends m {
12645
12654
  for (let i = 0; i < e / 4; i++)
12646
12655
  this.num_output_samples[i] = A.readUint16(), this.num_total_samples[i] = A.readUint16();
12647
12656
  }
12648
- }, xI.grouping_type = "alst", xI), UI, dl = (UI = class extends T {
12657
+ }, UI.grouping_type = "alst", UI), MI, dl = (MI = class extends T {
12649
12658
  parse(A) {
12650
12659
  this.layerNumber = A.readUint8(), this.accurateStatisticsFlag = A.readUint8(), this.avgBitRate = A.readUint16(), this.avgFrameRate = A.readUint16();
12651
12660
  }
12652
- }, UI.grouping_type = "avll", UI), MI, fl = (MI = class extends T {
12661
+ }, MI.grouping_type = "avll", MI), bI, fl = (bI = class extends T {
12653
12662
  parse(A) {
12654
12663
  this.subSequenceIdentifier = A.readUint16(), this.layerNumber = A.readUint8();
12655
12664
  const t = A.readUint8();
@@ -12662,24 +12671,24 @@ var _A, ls = (_A = class extends m {
12662
12671
  subSequenceIdentifier: A.readUint16()
12663
12672
  });
12664
12673
  }
12665
- }, MI.grouping_type = "avss", MI), bI, ul = (bI = class extends T {
12674
+ }, bI.grouping_type = "avss", bI), kI, ul = (kI = class extends T {
12666
12675
  parse(A) {
12667
12676
  l.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
12668
12677
  }
12669
- }, bI.grouping_type = "dtrt", bI), kI, wl = (kI = class extends T {
12678
+ }, kI.grouping_type = "dtrt", kI), YI, wl = (YI = class extends T {
12670
12679
  parse(A) {
12671
12680
  l.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
12672
12681
  }
12673
- }, kI.grouping_type = "mvif", kI), YI, Dl = (YI = class extends T {
12682
+ }, YI.grouping_type = "mvif", YI), _I, Dl = (_I = class extends T {
12674
12683
  parse(A) {
12675
12684
  this.roll_distance = A.readInt16();
12676
12685
  }
12677
- }, YI.grouping_type = "prol", YI), _I, pl = (_I = class extends T {
12686
+ }, _I.grouping_type = "prol", _I), LI, pl = (LI = class extends T {
12678
12687
  parse(A) {
12679
12688
  const t = A.readUint8();
12680
12689
  this.num_leading_samples_known = t >> 7, this.num_leading_samples = t & 127;
12681
12690
  }
12682
- }, _I.grouping_type = "rap ", _I), LI, yl = (LI = class extends T {
12691
+ }, LI.grouping_type = "rap ", LI), JI, yl = (JI = class extends T {
12683
12692
  parse(A) {
12684
12693
  if (this.operation_point_count = A.readUint16(), this.description_length !== 2 + (this.operation_point_count === 1 ? 2 : this.operation_point_count * 6) + 9)
12685
12694
  l.warn("BoxParser", "Mismatch in " + this.grouping_type + " sample group length"), this.data = A.readUint8Array(this.description_length - 2);
@@ -12694,80 +12703,80 @@ var _A, ls = (_A = class extends m {
12694
12703
  this.maximum_bitrate = A.readUint32(), this.minimum_bitrate = A.readUint32(), this.discard_priority = A.readUint8();
12695
12704
  }
12696
12705
  }
12697
- }, LI.grouping_type = "rash", LI), JI, ml = (JI = class extends T {
12706
+ }, JI.grouping_type = "rash", JI), HI, ml = (HI = class extends T {
12698
12707
  parse(A) {
12699
12708
  this.roll_distance = A.readInt16();
12700
12709
  }
12701
- }, JI.grouping_type = "roll", JI), HI, Gl = (HI = class extends T {
12710
+ }, HI.grouping_type = "roll", HI), vI, Gl = (vI = class extends T {
12702
12711
  parse(A) {
12703
12712
  l.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
12704
12713
  }
12705
- }, HI.grouping_type = "scif", HI), vI, Sl = (vI = class extends T {
12714
+ }, vI.grouping_type = "scif", vI), KI, Sl = (KI = class extends T {
12706
12715
  parse(A) {
12707
12716
  l.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
12708
12717
  }
12709
- }, vI.grouping_type = "scnm", vI), KI, Fl = (KI = class extends T {
12718
+ }, KI.grouping_type = "scnm", KI), TI, Fl = (TI = class extends T {
12710
12719
  parse(A) {
12711
12720
  this.reserved = A.readUint8();
12712
12721
  const t = A.readUint8();
12713
- this.crypt_byte_block = t >> 4, this.skip_byte_block = t & 15, this.isProtected = A.readUint8(), this.Per_Sample_IV_Size = A.readUint8(), this.KID = LA(A), this.constant_IV_size = 0, this.constant_IV = 0, this.isProtected === 1 && this.Per_Sample_IV_Size === 0 && (this.constant_IV_size = A.readUint8(), this.constant_IV = A.readUint8Array(this.constant_IV_size));
12722
+ this.crypt_byte_block = t >> 4, this.skip_byte_block = t & 15, this.isProtected = A.readUint8(), this.Per_Sample_IV_Size = A.readUint8(), this.KID = JA(A), this.constant_IV_size = 0, this.constant_IV = 0, this.isProtected === 1 && this.Per_Sample_IV_Size === 0 && (this.constant_IV_size = A.readUint8(), this.constant_IV = A.readUint8Array(this.constant_IV_size));
12714
12723
  }
12715
- }, KI.grouping_type = "seig", KI), TI, Nl = (TI = class extends T {
12724
+ }, TI.grouping_type = "seig", TI), qI, Nl = (qI = class extends T {
12716
12725
  parse(A) {
12717
12726
  l.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
12718
12727
  }
12719
- }, TI.grouping_type = "stsa", TI), qI, Rl = (qI = class extends T {
12728
+ }, qI.grouping_type = "stsa", qI), ZI, Rl = (ZI = class extends T {
12720
12729
  parse(A) {
12721
12730
  const t = A.readUint8();
12722
12731
  this.NAL_unit_type = t & 63;
12723
12732
  }
12724
- }, qI.grouping_type = "sync", qI), ZI, xl = (ZI = class extends T {
12733
+ }, ZI.grouping_type = "sync", ZI), VI, xl = (VI = class extends T {
12725
12734
  parse(A) {
12726
12735
  const t = A.readUint8();
12727
12736
  this.level_independently_decodable = t >> 7;
12728
12737
  }
12729
- }, ZI.grouping_type = "tele", ZI), VI, Ul = (VI = class extends T {
12738
+ }, VI.grouping_type = "tele", VI), WI, Ul = (WI = class extends T {
12730
12739
  parse(A) {
12731
12740
  l.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
12732
12741
  }
12733
- }, VI.grouping_type = "tsas", VI), WI, Ml = (WI = class extends T {
12742
+ }, WI.grouping_type = "tsas", WI), jI, Ml = (jI = class extends T {
12734
12743
  parse(A) {
12735
12744
  l.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
12736
12745
  }
12737
- }, WI.grouping_type = "tscl", WI), jI, bl = (jI = class extends T {
12746
+ }, jI.grouping_type = "tscl", jI), zI, bl = (zI = class extends T {
12738
12747
  parse(A) {
12739
12748
  l.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
12740
12749
  }
12741
- }, jI.grouping_type = "vipr", jI), zI, kl = (zI = class extends m {
12742
- }, zI.fourcc = "uuid", zI), XI, ss = (XI = class extends w {
12743
- }, XI.fourcc = "uuid", XI), OI, Yl = (OI = class extends ss {
12750
+ }, zI.grouping_type = "vipr", zI), XI, kl = (XI = class extends m {
12751
+ }, XI.fourcc = "uuid", XI), OI, ss = (OI = class extends w {
12752
+ }, OI.fourcc = "uuid", OI), PI, Yl = (PI = class extends ss {
12744
12753
  constructor() {
12745
12754
  super(...arguments), this.box_name = "LiveServerManifestBox";
12746
12755
  }
12747
12756
  parse(A) {
12748
12757
  this.parseFullHeader(A), this.LiveServerManifest = A.readString(this.size - this.hdr_size).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
12749
12758
  }
12750
- }, OI.uuid = "a5d40b30e81411ddba2f0800200c9a66", OI), PI, _l = (PI = class extends ss {
12759
+ }, PI.uuid = "a5d40b30e81411ddba2f0800200c9a66", PI), $I, _l = ($I = class extends ss {
12751
12760
  constructor() {
12752
12761
  super(...arguments), this.box_name = "PiffProtectionSystemSpecificHeaderBox";
12753
12762
  }
12754
12763
  parse(A) {
12755
- this.parseFullHeader(A), this.system_id = LA(A);
12764
+ this.parseFullHeader(A), this.system_id = JA(A);
12756
12765
  const t = A.readUint32();
12757
12766
  t > 0 && (this.data = A.readUint8Array(t));
12758
12767
  }
12759
- }, PI.uuid = "d08a4f1810f34a82b6c832d8aba183d3", PI), $I, Ll = ($I = class extends ss {
12768
+ }, $I.uuid = "d08a4f1810f34a82b6c832d8aba183d3", $I), As, Ll = (As = class extends ss {
12760
12769
  constructor() {
12761
12770
  super(...arguments), this.box_name = "PiffSampleEncryptionBox";
12762
12771
  }
12763
- }, $I.uuid = "a2394f525a9b4f14a2446c427c648df4", $I), As, Jl = (As = class extends ss {
12772
+ }, As.uuid = "a2394f525a9b4f14a2446c427c648df4", As), ts, Jl = (ts = class extends ss {
12764
12773
  constructor() {
12765
12774
  super(...arguments), this.box_name = "PiffTrackEncryptionBox";
12766
12775
  }
12767
12776
  parse(A) {
12768
- this.parseFullHeader(A), this.default_AlgorithmID = A.readUint24(), this.default_IV_size = A.readUint8(), this.default_KID = LA(A);
12777
+ this.parseFullHeader(A), this.default_AlgorithmID = A.readUint24(), this.default_IV_size = A.readUint8(), this.default_KID = JA(A);
12769
12778
  }
12770
- }, As.uuid = "8974dbce7be74c5184f97148f9882554", As), ts, Hl = (ts = class extends ss {
12779
+ }, ts.uuid = "8974dbce7be74c5184f97148f9882554", ts), es, Hl = (es = class extends ss {
12771
12780
  constructor() {
12772
12781
  super(...arguments), this.box_name = "TfrfBox";
12773
12782
  }
@@ -12781,21 +12790,21 @@ var _A, ls = (_A = class extends m {
12781
12790
  });
12782
12791
  }
12783
12792
  }
12784
- }, ts.uuid = "d4807ef2ca3946958e5426cb9e46a79f", ts), es, vl = (es = class extends ss {
12793
+ }, es.uuid = "d4807ef2ca3946958e5426cb9e46a79f", es), is, vl = (is = class extends ss {
12785
12794
  constructor() {
12786
12795
  super(...arguments), this.box_name = "TfxdBox";
12787
12796
  }
12788
12797
  parse(A) {
12789
12798
  this.parseFullHeader(A), this.version === 1 ? (this.absolute_time = A.readUint64(), this.duration = A.readUint64()) : (this.absolute_time = A.readUint32(), this.duration = A.readUint32());
12790
12799
  }
12791
- }, es.uuid = "6d1d9b0542d544e680e2141daff757b2", es), is, Kl = (is = class extends kl {
12800
+ }, is.uuid = "6d1d9b0542d544e680e2141daff757b2", is), gs, Kl = (gs = class extends kl {
12792
12801
  constructor() {
12793
12802
  super(...arguments), this.box_name = "ItemContentIDProperty";
12794
12803
  }
12795
12804
  parse(A) {
12796
12805
  this.content_id = A.readCString();
12797
12806
  }
12798
- }, is.uuid = "261ef3741d975bbaacbd9d2c8ea73522", is);
12807
+ }, gs.uuid = "261ef3741d975bbaacbd9d2c8ea73522", gs);
12799
12808
  iE(jC);
12800
12809
  gE(TC);
12801
12810
  const Tl = 800;
@@ -12951,7 +12960,7 @@ async function Xl(g, A, t, e) {
12951
12960
  throw new Error("WebCodecs: decoder produced no frames");
12952
12961
  return { frames: n, timesSec: r };
12953
12962
  }
12954
- function Ln(g, A, t) {
12963
+ function Jn(g, A, t) {
12955
12964
  if (g.length === 0) return 0;
12956
12965
  const e = g.length;
12957
12966
  if (t <= g[0]) return 0;
@@ -20172,7 +20181,7 @@ function LB(g, A, t) {
20172
20181
  });
20173
20182
  }
20174
20183
  let Id = 1;
20175
- class ZA {
20184
+ class VA {
20176
20185
  constructor(A, t, e, i, I, s, n, B, C, Q, a) {
20177
20186
  $(this, "duration"), $(this, "videoWidth"), $(this, "videoHeight"), $(this, "timesSec"), $(this, "worker"), $(this, "workerMsgId"), $(this, "streaming"), $(this, "ring"), $(this, "frames"), $(this, "maxDecodedFrames"), $(this, "decodeAheadFrames"), $(this, "lastWrapped", -1), $(this, "destroyed", !1), this.duration = A, this.videoWidth = t, this.videoHeight = e, this.timesSec = i, this.worker = I, this.workerMsgId = s, this.streaming = n, this.ring = B, this.frames = C, this.maxDecodedFrames = Q, this.decodeAheadFrames = a;
20178
20187
  }
@@ -20189,12 +20198,12 @@ class ZA {
20189
20198
  if (typeof A == "string" ? C = await sd(A, t) : C = A, s && typeof Worker != "undefined") {
20190
20199
  const Q = C.slice(0);
20191
20200
  try {
20192
- return await ZA.createViaWorker(Q, n, B);
20201
+ return await VA.createViaWorker(Q, n, B);
20193
20202
  } catch (a) {
20194
20203
  console.warn("[GiftStage:WC] Worker decode failed, falling back to main thread", a);
20195
20204
  }
20196
20205
  }
20197
- return ZA.createOnMainThread(C, n, B);
20206
+ return VA.createOnMainThread(C, n, B);
20198
20207
  }
20199
20208
  static async createViaWorker(A, t, e) {
20200
20209
  const i = new $l(), I = Id++, s = new gd(t);
@@ -20231,7 +20240,7 @@ class ZA {
20231
20240
  );
20232
20241
  try {
20233
20242
  if (await LB(() => a || E != null, 6e4, "meta"), E) throw E;
20234
- const d = n > 0 ? n : 1e-6, u = Ln(Q, d, 0);
20243
+ const d = n > 0 ? n : 1e-6, u = Jn(Q, d, 0);
20235
20244
  if (await LB(() => E != null || s.bestAtOrBefore(u) != null, 6e4, "first frame"), E) throw E;
20236
20245
  } catch (d) {
20237
20246
  throw i.removeEventListener("message", r), i.removeEventListener("error", o), i.terminate(), s.clear(), d instanceof Error ? d : new Error(String(d));
@@ -20239,7 +20248,7 @@ class ZA {
20239
20248
  const c = Q.length > 0 ? Q[0] : 0, f = Q.length > 0 ? Q[Q.length - 1] : 0;
20240
20249
  return console.info(
20241
20250
  `[GiftStage:WC] worker streaming ready frames=${Q.length} duration=${n.toFixed(4)}s size=${B}x${C} times=[${c.toFixed(4)} … ${f.toFixed(4)}] ring=${t}`
20242
- ), new ZA(
20251
+ ), new VA(
20243
20252
  n,
20244
20253
  B,
20245
20254
  C,
@@ -20268,7 +20277,7 @@ class ZA {
20268
20277
  ), Q = B[B.length - 1], a = Ol(i.durationSec, C, B), E = i.videoWidth || Q.displayWidth || Q.codedWidth || 0, r = i.videoHeight || Q.displayHeight || Q.codedHeight || 0, o = C.length > 0 ? C[0] : 0, h = C.length > 0 ? C[C.length - 1] : 0;
20269
20278
  return console.info(
20270
20279
  `[GiftStage:WC] main decode ok frames=${B.length} duration=${a.toFixed(4)}s size=${E}x${r} times=[${o.toFixed(4)} … ${h.toFixed(4)}]`
20271
- ), new ZA(
20280
+ ), new VA(
20272
20281
  a,
20273
20282
  E,
20274
20283
  r,
@@ -20289,7 +20298,7 @@ class ZA {
20289
20298
  if (!Number.isFinite(A) || !Number.isFinite(n)) return;
20290
20299
  const B = (A % n + n) % n;
20291
20300
  if (this.lastWrapped >= 0 && B < this.lastWrapped - 1e-3 && this.lastWrapped > n * 0.1 && ((t = this.ring) == null || t.clear(), this.worker.postMessage({ type: "rewind", id: this.workerMsgId })), this.lastWrapped = B, this.timesSec.length === 0) return;
20292
- const C = Ln(this.timesSec, n, B);
20301
+ const C = Jn(this.timesSec, n, B);
20293
20302
  (e = this.ring) == null || e.setPlaybackHint(C);
20294
20303
  const Q = (i = this.ring) == null ? void 0 : i.minKey(), a = Math.max(4, this.decodeAheadFrames);
20295
20304
  this.ring && Q !== void 0 && Q > C + a && (this.ring.clear(), this.worker.postMessage({ type: "rewind", id: this.workerMsgId }));
@@ -20314,7 +20323,7 @@ class ZA {
20314
20323
  clip: I,
20315
20324
  frames: this.timesSec.length
20316
20325
  }), this.streaming && this.ring ? this.ring.frameForDisplay(0) : (e = (t = this.frames) == null ? void 0 : t[0]) != null ? e : null;
20317
- const s = (A % I + I) % I, n = Ln(this.timesSec, I, s);
20326
+ const s = (A % I + I) % I, n = Jn(this.timesSec, I, s);
20318
20327
  if (this.streaming && this.ring) {
20319
20328
  this.ring.setPlaybackHint(n);
20320
20329
  const C = this.ring.frameForDisplay(n);
@@ -20359,30 +20368,30 @@ function JB(g, A, t, e, i) {
20359
20368
  Q = I * 0.5, a = s;
20360
20369
  else {
20361
20370
  if (!i)
20362
- return C = Math.min(1, n / I, B / s), Jn(I, s, C);
20363
- ({ w: Q, h: a } = zA(i.info));
20371
+ return C = Math.min(1, n / I, B / s), Hn(I, s, C);
20372
+ ({ w: Q, h: a } = XA(i.info));
20364
20373
  }
20365
20374
  if (!(Q > 0) || !(a > 0))
20366
- return C = Math.min(1, n / I, B / s), Jn(I, s, C);
20375
+ return C = Math.min(1, n / I, B / s), Hn(I, s, C);
20367
20376
  const E = Math.min(n / Q, B / a);
20368
20377
  C = Math.min(1, E);
20369
20378
  } else
20370
20379
  C = Math.min(1, n / I, B / s);
20371
- return Jn(I, s, C);
20380
+ return Hn(I, s, C);
20372
20381
  }
20373
- function Jn(g, A, t) {
20382
+ function Hn(g, A, t) {
20374
20383
  const e = Math.max(1, Math.min(g, Math.ceil(g * t))), i = Math.max(1, Math.min(A, Math.ceil(A * t)));
20375
20384
  return { w: e, h: i };
20376
20385
  }
20377
20386
  var nd = Object.defineProperty, Bd = (g, A, t) => A in g ? nd(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, EA = (g, A, t) => Bd(g, typeof A != "symbol" ? A + "" : A, t);
20378
- const Bn = 9;
20387
+ const Cn = 9;
20379
20388
  function Cd(g, A) {
20380
20389
  if (typeof document == "undefined" || typeof document.createElement != "function")
20381
20390
  throw new Error("VAP mixed rendering requires DOM canvas support");
20382
20391
  const t = document.createElement("canvas");
20383
20392
  return t.width = Math.max(1, Math.round(g)), t.height = Math.max(1, Math.round(A)), t;
20384
20393
  }
20385
- function Cn(g, A, t, e, i, I) {
20394
+ function Qn(g, A, t, e, i, I) {
20386
20395
  return [g / i, (g + t) / i, (I - A - e) / I, (I - A) / I];
20387
20396
  }
20388
20397
  function HB(g, A, t) {
@@ -20410,7 +20419,7 @@ function vB(g, A, t, e = !1) {
20410
20419
  return g.activeTexture(g.TEXTURE0 + A), g.bindTexture(g.TEXTURE_2D, i), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MIN_FILTER, g.LINEAR), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MAG_FILTER, g.LINEAR), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_S, g.CLAMP_TO_EDGE), g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_T, g.CLAMP_TO_EDGE), t ? (g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL, e ? 1 : 0), g.texImage2D(g.TEXTURE_2D, 0, g.RGBA, g.RGBA, g.UNSIGNED_BYTE, t), g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL, 0)) : g.texImage2D(g.TEXTURE_2D, 0, g.RGBA, 1, 1, 0, g.RGBA, g.UNSIGNED_BYTE, null), i;
20411
20420
  }
20412
20421
  function ad(g) {
20413
- const [A, t, e, i] = g.rgbFrame, [I, s, n, B] = g.aFrame, C = Cn(A, t, e, i, g.videoW, g.videoH), Q = Cn(I, s, n, B, g.videoW, g.videoH);
20422
+ const [A, t, e, i] = g.rgbFrame, [I, s, n, B] = g.aFrame, C = Qn(A, t, e, i, g.videoW, g.videoH), Q = Qn(I, s, n, B, g.videoW, g.videoH);
20414
20423
  return new Float32Array([
20415
20424
  -1,
20416
20425
  1,
@@ -20439,7 +20448,7 @@ function ad(g) {
20439
20448
  ]);
20440
20449
  }
20441
20450
  function rd(g) {
20442
- const A = g * Bn, t = [], e = [];
20451
+ const A = g * Cn, t = [], e = [];
20443
20452
  for (let i = 0; i < g; i++)
20444
20453
  t.push(`uniform sampler2D u_image${i + 1};`), e.push(
20445
20454
  `if (ndx == ${i + 1}) { color = texture2D(u_image${i + 1}, uv); }`
@@ -20478,7 +20487,7 @@ function rd(g) {
20478
20487
  float my1;
20479
20488
  float my2;
20480
20489
 
20481
- for (int i = 0; i < ${A}; i += ${Bn}) {
20490
+ for (int i = 0; i < ${A}; i += ${Cn}) {
20482
20491
  if (int(image_pos[i]) > 0) {
20483
20492
  srcIndex = int(image_pos[i]);
20484
20493
  x1 = image_pos[i + 1];
@@ -20519,15 +20528,15 @@ const Ed = `
20519
20528
  }
20520
20529
  `;
20521
20530
  function od(g, A, t, e) {
20522
- const i = new Float32Array(t.size * Bn), I = A.get(e);
20531
+ const i = new Float32Array(t.size * Cn), I = A.get(e);
20523
20532
  if (!I || I.length === 0) return i;
20524
20533
  const [s, n] = g.info.rgbFrame;
20525
20534
  let B = 0;
20526
20535
  for (const C of I) {
20527
20536
  const Q = t.get(String(C.srcId));
20528
20537
  if (!Q) continue;
20529
- if (B + Bn > i.length) break;
20530
- const [a, E, r, o] = C.frame, [h, c, f, d] = C.mFrame, u = Cn(a + s, E + n, r, o, g.info.videoW, g.info.videoH), p = Cn(h, c, f, d, g.info.videoW, g.info.videoH);
20538
+ if (B + Cn > i.length) break;
20539
+ const [a, E, r, o] = C.frame, [h, c, f, d] = C.mFrame, u = Qn(a + s, E + n, r, o, g.info.videoW, g.info.videoH), p = Qn(h, c, f, d, g.info.videoW, g.info.videoH);
20531
20540
  i[B++] = Q, i[B++] = u[0], i[B++] = u[1], i[B++] = u[2], i[B++] = u[3], i[B++] = p[0], i[B++] = p[1], i[B++] = p[2], i[B++] = p[3];
20532
20541
  }
20533
20542
  return i;
@@ -20784,33 +20793,33 @@ function pd(g) {
20784
20793
  atlasImageBytes: I
20785
20794
  };
20786
20795
  }
20787
- function zn(g) {
20796
+ function Xn(g) {
20788
20797
  return `svga-asset:${g}`;
20789
20798
  }
20790
- function Xn(g) {
20799
+ function On(g) {
20791
20800
  return `svga-asset-bin:${g}`;
20792
20801
  }
20793
20802
  async function yd(g) {
20794
- const A = Sa(zn(g), "svga-asset");
20803
+ const A = Sa(Xn(g), "svga-asset");
20795
20804
  if (A) return A;
20796
- const t = await Fa(Xn(g));
20805
+ const t = await Fa(On(g));
20797
20806
  if (!t) return null;
20798
20807
  try {
20799
20808
  const e = pd(t);
20800
- return OB(zn(g), "svga-asset", e, t.byteLength), e;
20809
+ return OB(Xn(g), "svga-asset", e, t.byteLength), e;
20801
20810
  } catch (e) {
20802
- return Ra(Xn(g)), null;
20811
+ return Ra(On(g)), null;
20803
20812
  }
20804
20813
  }
20805
20814
  async function TB(g, A) {
20806
20815
  const t = Dd(A);
20807
- OB(zn(g), "svga-asset", A, Math.max(t.byteLength, wd(A))), await Na(Xn(g), t);
20816
+ OB(Xn(g), "svga-asset", A, Math.max(t.byteLength, wd(A))), await Na(On(g), t);
20808
20817
  }
20809
- function qA(g) {
20818
+ function ZA(g) {
20810
20819
  return typeof g == "number" && Number.isFinite(g) && g > 0;
20811
20820
  }
20812
20821
  function md(g, A, t, e) {
20813
- const i = qA(A.width) ? A.width : void 0, I = qA(A.height) ? A.height : void 0, s = qA(g.width) ? g.width : void 0, n = qA(g.height) ? g.height : void 0;
20822
+ const i = ZA(A.width) ? A.width : void 0, I = ZA(A.height) ? A.height : void 0, s = ZA(g.width) ? g.width : void 0, n = ZA(g.height) ? g.height : void 0;
20814
20823
  if (s && n)
20815
20824
  return { width: s, height: n };
20816
20825
  if (s)
@@ -20824,14 +20833,14 @@ function md(g, A, t, e) {
20824
20833
  height: n
20825
20834
  } : { width: n, height: n };
20826
20835
  let B = i != null ? i : 0, C = I != null ? I : 0;
20827
- if (B > 0 && C > 0 && qA(t) && qA(e) && (B > t || C > e)) {
20836
+ if (B > 0 && C > 0 && ZA(t) && ZA(e) && (B > t || C > e)) {
20828
20837
  const Q = Math.min(t / B, e / C);
20829
20838
  B *= Q, C *= Q;
20830
20839
  }
20831
20840
  return { width: B, height: C };
20832
20841
  }
20833
20842
  var Gd = Object.defineProperty, Sd = (g, A, t) => A in g ? Gd(g, A, { enumerable: !0, configurable: !0, writable: !0, value: t }) : g[A] = t, X = (g, A, t) => Sd(g, typeof A != "symbol" ? A + "" : A, t);
20834
- const rn = class tn {
20843
+ const En = class tn {
20835
20844
  constructor(A) {
20836
20845
  X(this, "sharedSVGAEntities", /* @__PURE__ */ new Map()), X(this, "pendingSharedSVGAEntities", /* @__PURE__ */ new Map()), X(this, "sharedVideoSources", /* @__PURE__ */ new Map()), X(this, "sharedHtmlVideos", /* @__PURE__ */ new Map()), X(this, "sharedVideoTextures", /* @__PURE__ */ new Map()), X(this, "pendingSharedHtmlVideos", /* @__PURE__ */ new Map()), X(this, "canvas"), X(this, "backend", null), X(this, "manager", null), X(this, "options"), X(this, "ready"), X(this, "destroyed", !1), X(this, "resizeObserver", null), X(this, "onWindowLayout", () => {
20837
20846
  this.destroyed || this.syncCanvasSize();
@@ -20883,7 +20892,7 @@ const rn = class tn {
20883
20892
  }
20884
20893
  case "vap": {
20885
20894
  if (!A.config) throw new Error("VAP requires config");
20886
- const t = await uB(A.config), e = zA(t.info);
20895
+ const t = await wB(A.config), e = XA(t.info);
20887
20896
  return { width: e.w, height: e.h };
20888
20897
  }
20889
20898
  case "alphaVideo":
@@ -20944,7 +20953,7 @@ const rn = class tn {
20944
20953
  flyTo: I.flyTo,
20945
20954
  scaleTo: I.scaleTo,
20946
20955
  flyDuration: I.flyDuration,
20947
- easing: (t = I.easing) != null ? t : In,
20956
+ easing: (t = I.easing) != null ? t : sn,
20948
20957
  onFlyComplete: I.onFlyComplete
20949
20958
  }, a = {
20950
20959
  id: s,
@@ -21144,7 +21153,7 @@ const rn = class tn {
21144
21153
  if (!this.shouldTryWebCodecs()) return null;
21145
21154
  try {
21146
21155
  const t = typeof A == "string" ? await Rs(A) : A;
21147
- return await ZA.create(t, void 0, {
21156
+ return await VA.create(t, void 0, {
21148
21157
  useWorker: this.options.webCodecsDecodeInWorker !== !1,
21149
21158
  maxDecodedFrames: this.options.webCodecsMaxDecodedFrames,
21150
21159
  decodeAheadFrames: this.options.webCodecsDecodeAheadFrames
@@ -21157,11 +21166,11 @@ const rn = class tn {
21157
21166
  async loadVAP(A, t) {
21158
21167
  var e;
21159
21168
  if (!t.config) throw new Error("VAP requires config");
21160
- const i = await uB(t.config);
21169
+ const i = await wB(t.config);
21161
21170
  A.vapConfig = i;
21162
21171
  const I = await qa(i, t.vapSlots);
21163
21172
  if (I.size > 0) {
21164
- const Q = zA(i.info), a = Za(i);
21173
+ const Q = XA(i.info), a = Za(i);
21165
21174
  let E = null, r = null;
21166
21175
  try {
21167
21176
  E = new hd(i, a, I, Q.w, Q.h);
@@ -21337,7 +21346,7 @@ const rn = class tn {
21337
21346
  A.flyTo.y * Q.sy,
21338
21347
  (I = A.scaleTo) != null ? I : 0.3,
21339
21348
  (s = A.flyDuration) != null ? s : 600,
21340
- (n = A.easing) != null ? n : In,
21349
+ (n = A.easing) != null ? n : sn,
21341
21350
  () => {
21342
21351
  var a;
21343
21352
  A.state = "finished", (a = A.onFlyComplete) == null || a.call(A, C);
@@ -21566,10 +21575,10 @@ const rn = class tn {
21566
21575
  this.canvas.remove(), this.backend = null, this.manager = null;
21567
21576
  }
21568
21577
  };
21569
- X(rn, "DEFAULT_SHARED_VIDEO_PLAYBACK_WINDOW_MS", 100);
21570
- X(rn, "DEFAULT_RESOURCE_CACHE_MEMORY_BYTES", 128 * 1024 * 1024);
21571
- X(rn, "DEFAULT_RESOURCE_CACHE_PERSISTENT_BYTES", 2048 * 1024 * 1024);
21572
- let Jd = rn;
21578
+ X(En, "DEFAULT_SHARED_VIDEO_PLAYBACK_WINDOW_MS", 100);
21579
+ X(En, "DEFAULT_RESOURCE_CACHE_MEMORY_BYTES", 128 * 1024 * 1024);
21580
+ X(En, "DEFAULT_RESOURCE_CACHE_PERSISTENT_BYTES", 2048 * 1024 * 1024);
21581
+ let Jd = En;
21573
21582
  export {
21574
21583
  Pa as AlphaVideoRenderer,
21575
21584
  Ir as AudioManager,
@@ -21579,33 +21588,33 @@ export {
21579
21588
  rr as RenderManager,
21580
21589
  ra as SVGABatchRenderer,
21581
21590
  za as VAPRenderer,
21582
- ZA as WebCodecsMp4Playback,
21583
- oB as WebGL1Backend,
21591
+ VA as WebCodecsMp4Playback,
21592
+ hB as WebGL1Backend,
21584
21593
  RQ as WebGL2Backend,
21585
21594
  SQ as WebGPUBackend,
21586
21595
  FB as buildAtlas,
21587
- cn as buildBatchVerticesJS,
21596
+ ln as buildBatchVerticesJS,
21588
21597
  Ud as canSharedArrayBuffer,
21589
21598
  xd as canWebGL1,
21590
21599
  Rd as canWebGL2,
21591
21600
  Nd as canWebGPU,
21592
- lB as clamp,
21601
+ dB as clamp,
21593
21602
  kQ as createBackend,
21594
21603
  Sr as decodeSVGAProto,
21595
21604
  _d as easeInOutCubic,
21596
21605
  Yd as easeInOutQuad,
21597
21606
  bd as easeInQuad,
21598
21607
  Ld as easeOutBack,
21599
- In as easeOutCubic,
21608
+ sn as easeOutCubic,
21600
21609
  kd as easeOutQuad,
21601
21610
  ga as generateId,
21602
21611
  Er as inflateJS,
21603
21612
  XQ as initWasm,
21604
21613
  ws as isWasmReady,
21605
- wn as lerp,
21614
+ Dn as lerp,
21606
21615
  Md as linear,
21607
- jA as ortho,
21616
+ zA as ortho,
21608
21617
  SB as parseSVGA,
21609
- uB as parseVAPConfig
21618
+ wB as parseVAPConfig
21610
21619
  };
21611
21620
  //# sourceMappingURL=gift-stage.es.js.map