@vindral/web-sdk 4.0.0-112-g5757d44d → 4.0.0-114-g294ca278

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.
@@ -420,11 +420,6 @@ const je = (i, e) => {
420
420
  if (s += 1, !(r in i) || !je(i[r], e[r])) return !1;
421
421
  return t == s;
422
422
  }, cs = ["off", "error", "warn", "info", "debug", "trace"], Vn = {
423
- ERROR: "error",
424
- WARN: "warn",
425
- INFO: "info",
426
- DEBUG: "debug",
427
- TRACE: "trace",
428
423
  OFF: "off"
429
424
  };
430
425
  var De, yt, Oe, rt, ot;
@@ -590,7 +585,7 @@ function Qn() {
590
585
  moqEnabled: Hn
591
586
  };
592
587
  }
593
- const Wn = {
588
+ const Xn = {
594
589
  sizeBasedResolutionCapEnabled: !0,
595
590
  pictureInPictureEnabled: !0,
596
591
  abrEnabled: !0,
@@ -622,7 +617,7 @@ const Wn = {
622
617
  },
623
618
  videoCodecs: ["av1", "h264"],
624
619
  webtransportEnabled: !0
625
- }, Xn = "connection_failed", Gn = "connection_failed_will_not_attempt_again", jn = "authentication_error", qn = "authentication_expired", Zn = "channel_not_found", Jn = "no_incoming_data_error", Yn = "connection_inactivity", Kn = "missing_init_segment", $n = "no_track_context", er = "invalid_track_context_state", tr = "disconnected_by_edge", ir = "decoder_error", sr = "audio_player_error", nr = "media_source_error", rr = "webgl_context_lost_error", or = "access_forbidden", ar = "channel_switch_failed";
620
+ }, Wn = "connection_failed", Gn = "connection_failed_will_not_attempt_again", jn = "authentication_error", qn = "authentication_expired", Zn = "channel_not_found", Jn = "no_incoming_data_error", Yn = "connection_inactivity", Kn = "missing_init_segment", $n = "no_track_context", er = "invalid_track_context_state", tr = "disconnected_by_edge", ir = "decoder_error", sr = "audio_player_error", nr = "media_source_error", rr = "webgl_context_lost_error", or = "access_forbidden", ar = "channel_switch_failed";
626
621
  class T extends Error {
627
622
  constructor(t, s, r = {}) {
628
623
  super(t);
@@ -695,7 +690,7 @@ const cr = (i, e) => new T(
695
690
  code: tr
696
691
  }), zt = (i) => new T("Authentication Failed", { isFatal: !0, code: jn, source: i }), mr = (i) => new T("Authentication Expired", { isFatal: !0, code: qn, source: i }), fr = (i, e) => new T("Connection closed due to inactivity", { isFatal: !1, code: Yn, source: e, type: i }), Hs = (i, e) => new T("Channel not found", { isFatal: !1, code: Zn, source: e, type: i }), Ar = (i) => new T("No Incoming Data", { isFatal: !1, code: Jn, source: i }), gr = (i) => new T("Connection attempt failed", {
697
692
  isFatal: !1,
698
- code: Xn,
693
+ code: Wn,
699
694
  source: i
700
695
  }), Qs = () => new T("Connection failed - no more reconnect attempts", {
701
696
  isFatal: !0,
@@ -749,7 +744,7 @@ const cr = (i, e) => new T(
749
744
  keySystem: "org.w3.clearkey",
750
745
  supportedConfig: Ei
751
746
  }
752
- }, Ws = (i, e) => E(void 0, null, function* () {
747
+ }, Xs = (i, e) => E(void 0, null, function* () {
753
748
  return navigator.requestMediaKeySystemAccess(i, [e]).catch(() => {
754
749
  });
755
750
  }), ps = (i, e, t, s, r, o) => E(void 0, null, function* () {
@@ -759,7 +754,7 @@ const cr = (i, e) => new T(
759
754
  robustness: c,
760
755
  contentType: o ? `${r === "audioCapabilities" ? "audio/mp4" : "video/mp4"}; codecs="${o}"` : l.contentType
761
756
  }));
762
- if (!(yield Ws(i, {
757
+ if (!(yield Xs(i, {
763
758
  initDataTypes: e,
764
759
  [r]: h
765
760
  })))
@@ -786,7 +781,7 @@ const cr = (i, e) => new T(
786
781
  t
787
782
  )
788
783
  ]);
789
- return !u && !l ? void 0 : yield Ws(s, {
784
+ return !u && !l ? void 0 : yield Xs(s, {
790
785
  initDataTypes: o,
791
786
  videoCapabilities: u,
792
787
  audioCapabilities: l
@@ -843,7 +838,7 @@ class wi {
843
838
  }
844
839
  }
845
840
  Fe = new WeakMap(), Ne = new WeakMap();
846
- function Xs(i) {
841
+ function Ws(i) {
847
842
  const e = window.atob(i.replace(/-/g, "+").replace(/_/g, "/"));
848
843
  let t = "";
849
844
  for (let s = 0; s < e.length; s++)
@@ -875,7 +870,7 @@ class Ir extends wi {
875
870
  for (let u = 0; u < o.kids.length; u++) {
876
871
  const l = o.kids[u];
877
872
  if (l) {
878
- const m = Xs(l).toLowerCase(), g = d(this, Et)[m];
873
+ const m = Ws(l).toLowerCase(), g = d(this, Et)[m];
879
874
  g && a.push({
880
875
  kty: "oct",
881
876
  alg: "A128KW",
@@ -982,7 +977,7 @@ class ws {
982
977
  w(this, qt, (e) => {
983
978
  const t = e.target;
984
979
  d(this, k).debug("Key status changed for session", { sessionId: t.sessionId }), t.keyStatuses.forEach((s, r) => {
985
- const o = Xs(window.btoa(String.fromCharCode(...new Uint8Array(r))));
980
+ const o = Ws(window.btoa(String.fromCharCode(...new Uint8Array(r))));
986
981
  d(this, k).debug("Key status", { base64kid: o, status: s });
987
982
  });
988
983
  });
@@ -1174,7 +1169,7 @@ const xr = 7, Ur = 8, Mr = (i) => {
1174
1169
  l === 0 && o.readBit(), o.readBit();
1175
1170
  let m = h + 1, g = u + 1;
1176
1171
  if (g *= 2 - l, g *= 16, m *= 16, o.readBit()) {
1177
- const U = a == 1 ? 1 : 0, X = 1 << (a == 1 || a == 2 ? 1 : 0), L = 2 - l << U, _ = o.readUnsignedExpGolomb() * X, Z = o.readUnsignedExpGolomb() * X, te = o.readUnsignedExpGolomb() * L, me = o.readUnsignedExpGolomb() * L;
1172
+ const U = a == 1 ? 1 : 0, W = 1 << (a == 1 || a == 2 ? 1 : 0), L = 2 - l << U, _ = o.readUnsignedExpGolomb() * W, Z = o.readUnsignedExpGolomb() * W, te = o.readUnsignedExpGolomb() * L, me = o.readUnsignedExpGolomb() * L;
1178
1173
  m -= _ + Z, g -= te + me;
1179
1174
  }
1180
1175
  let p = {
@@ -1216,7 +1211,7 @@ function Vr(i) {
1216
1211
  const o = new as(e.readBytes(s.size));
1217
1212
  return {
1218
1213
  header: t,
1219
- txx: Wr(o)
1214
+ txx: Xr(o)
1220
1215
  };
1221
1216
  }
1222
1217
  }
@@ -1242,7 +1237,7 @@ function Qr(i) {
1242
1237
  flags: s
1243
1238
  };
1244
1239
  }
1245
- function Wr(i) {
1240
+ function Xr(i) {
1246
1241
  const e = i.readUint8(), t = i.readUtf8String(), s = i.readUtf8String();
1247
1242
  return {
1248
1243
  encoding: e,
@@ -1296,7 +1291,7 @@ const x = {
1296
1291
  prft: b("prft"),
1297
1292
  dOps: b("dOps"),
1298
1293
  emsg: b("emsg")
1299
- }, Xr = 1e3, bt = b("iso6"), vs = new Uint8Array([0, 0, 2, 0]), Gr = [
1294
+ }, Wr = 1e3, bt = b("iso6"), vs = new Uint8Array([0, 0, 2, 0]), Gr = [
1300
1295
  bt,
1301
1296
  new Uint8Array([105, 115, 111, 109]),
1302
1297
  // isom
@@ -1332,7 +1327,7 @@ class $s {
1332
1327
  }
1333
1328
  const H = (i, e, t) => {
1334
1329
  i.writer.writeUint32(t + 8), i.writer.writeBytes(e);
1335
- }, W = (i, e, t, s, r) => {
1330
+ }, X = (i, e, t, s, r) => {
1336
1331
  H(i, e, t + 4), i.writer.writeUint8(s), i.writer.writeUint24(r);
1337
1332
  }, Ti = (i, e) => {
1338
1333
  H(
@@ -1341,7 +1336,7 @@ const H = (i, e, t) => {
1341
1336
  bt.byteLength + vs.byteLength + e.reduce((t, s) => t + s.byteLength, 0)
1342
1337
  ), i.writer.writeBytes(bt), i.writer.writeBytes(vs), e.forEach((t) => i.writer.writeBytes(t));
1343
1338
  }, Zr = (i, e, t) => {
1344
- W(i, x.mvhd, 96, 0, 0), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(t), i.writer.writeUint32(e), i.writer.writeUint32(65536), i.writer.writeUint16(256), i.writer.writeBytes(new Uint8Array([
1339
+ X(i, x.mvhd, 96, 0, 0), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(t), i.writer.writeUint32(e), i.writer.writeUint32(65536), i.writer.writeUint16(256), i.writer.writeBytes(new Uint8Array([
1345
1340
  // reserved and unused junk
1346
1341
  0,
1347
1342
  0,
@@ -1414,9 +1409,9 @@ const H = (i, e, t) => {
1414
1409
  0,
1415
1410
  0
1416
1411
  ])), i.writer.writeUint32(2);
1417
- }, en = (i) => "sequenceParameterSets" in i, Mi = (i) => "sequenceHeader" in i, Xe = (i) => i.type == "video", gt = (i) => i.type == "audio", Jr = (i, e, t) => {
1412
+ }, en = (i) => "sequenceParameterSets" in i, Mi = (i) => "sequenceHeader" in i, We = (i) => i.type == "video", gt = (i) => i.type == "audio", Jr = (i, e, t) => {
1418
1413
  const s = i.writer.position();
1419
- W(i, x.tkhd, 0, 0, 3), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(e.trackId), i.writer.writeUint32(0), i.writer.writeUint32(e.duration * t / e.timescale), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint16(0), i.writer.writeUint16(gt(e) ? 1 : 0), i.writer.writeUint16(gt(e) ? 256 : 0), i.writer.writeUint16(0), i.writer.writeBytes(new Uint8Array(
1414
+ X(i, x.tkhd, 0, 0, 3), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(e.trackId), i.writer.writeUint32(0), i.writer.writeUint32(e.duration * t / e.timescale), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint16(0), i.writer.writeUint16(gt(e) ? 1 : 0), i.writer.writeUint16(gt(e) ? 256 : 0), i.writer.writeUint16(0), i.writer.writeBytes(new Uint8Array(
1420
1415
  [
1421
1416
  0,
1422
1417
  1,
@@ -1455,17 +1450,17 @@ const H = (i, e, t) => {
1455
1450
  0,
1456
1451
  0
1457
1452
  ]
1458
- )), Xe(e) ? (i.writer.writeUint32(e.width * 65536), i.writer.writeUint32(e.height * 65536)) : gt(e) && (i.writer.writeUint32(0), i.writer.writeUint32(0)), i.writer.writeUint32At(s, i.writer.position() - s);
1453
+ )), We(e) ? (i.writer.writeUint32(e.width * 65536), i.writer.writeUint32(e.height * 65536)) : gt(e) && (i.writer.writeUint32(0), i.writer.writeUint32(0)), i.writer.writeUint32At(s, i.writer.position() - s);
1459
1454
  }, Yr = (i, e) => {
1460
- W(i, x.mdhd, 20, 0, 0), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(e.timescale), i.writer.writeUint32(e.duration);
1455
+ X(i, x.mdhd, 20, 0, 0), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(e.timescale), i.writer.writeUint32(e.duration);
1461
1456
  const t = e.lang || "und", s = (t.charCodeAt(0) & 31) << 10 | (t.charCodeAt(1) & 31) << 5 | t.charCodeAt(2) & 31;
1462
1457
  i.writer.writeUint16(s), i.writer.writeUint16(0);
1463
1458
  }, Kr = (i, e) => {
1464
1459
  const t = i.writer.position();
1465
- W(i, x.hdlr, 0, 0, 0), i.writer.writeUint32(0), i.writer.writeBytes(b(Xe(e) ? "vide" : "soun")), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeBytes(b(Xe(e) ? "VideoHandler\0" : "SoundHandler\0")), i.writer.writeUint32At(t, i.writer.position() - t);
1460
+ X(i, x.hdlr, 0, 0, 0), i.writer.writeUint32(0), i.writer.writeBytes(b(We(e) ? "vide" : "soun")), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeBytes(b(We(e) ? "VideoHandler\0" : "SoundHandler\0")), i.writer.writeUint32At(t, i.writer.position() - t);
1466
1461
  }, $r = (i) => {
1467
1462
  const e = i.writer.position();
1468
- H(i, x.dinf, 0), W(i, x.dref, 16, 0, 0), i.writer.writeUint32(1), W(i, b("url "), 0, 0, 1), i.writer.writeUint32At(e, i.writer.position() - e);
1463
+ H(i, x.dinf, 0), X(i, x.dref, 16, 0, 0), i.writer.writeUint32(1), X(i, b("url "), 0, 0, 1), i.writer.writeUint32At(e, i.writer.position() - e);
1469
1464
  }, eo = (i, e) => {
1470
1465
  const t = i.writer.position();
1471
1466
  H(i, x.avcC, 0), i.writer.writeUint8(1), i.writer.writeUint8(e.sequenceParameterSets[0][1]), i.writer.writeUint8(e.sequenceParameterSets[0][2]), i.writer.writeUint8(e.sequenceParameterSets[0][3]), i.writer.writeUint8(255), i.writer.writeUint8(224 | e.sequenceParameterSets.length), e.sequenceParameterSets.forEach((s) => {
@@ -1491,7 +1486,7 @@ const H = (i, e, t) => {
1491
1486
  i.writer.writeUint8(t & 127);
1492
1487
  }, so = (i, e) => {
1493
1488
  const t = e.decoderConfig.byteLength > 0 ? e.decoderConfig.byteLength + 5 : 0, s = i.writer.position();
1494
- W(i, x.esds, 0, 0, 0), Dt(i, 3, 21 + t + 5 + 1), i.writer.writeUint16(e.trackId), i.writer.writeUint8(0), Dt(i, 4, 13 + t);
1489
+ X(i, x.esds, 0, 0, 0), Dt(i, 3, 21 + t + 5 + 1), i.writer.writeUint16(e.trackId), i.writer.writeUint8(0), Dt(i, 4, 13 + t);
1495
1490
  const r = e.codec === "mp3" && e.sampleRate > 24e3 ? 107 : 64;
1496
1491
  i.writer.writeUint8(r), i.writer.writeUint8(21), i.writer.writeUint24(0), i.writer.writeUint32(e.bitrate || 0), i.writer.writeUint32(e.bitrate || 0), e.decoderConfig.byteLength > 0 && (Dt(i, 5, e.decoderConfig.byteLength), i.writer.writeBytes(e.decoderConfig)), Dt(i, 6, 1), i.writer.writeUint8(2), i.writer.writeUint32At(s, i.writer.position() - s);
1497
1492
  }, no = (i) => {
@@ -1523,10 +1518,10 @@ const H = (i, e, t) => {
1523
1518
  const t = i.writer.position();
1524
1519
  H(i, x.stbl, 0);
1525
1520
  const s = i.writer.position();
1526
- W(i, x.stsd, 0, 0, 0), i.writer.writeUint32(1), Xe(e) ? io(i, e) : gt(e) && oo(i, e), i.writer.writeUint32At(s, i.writer.position() - s), W(i, b("stts"), 4, 0, 0), i.writer.writeUint32(0), W(i, b("stsc"), 4, 0, 0), i.writer.writeUint32(0), W(i, b("stsz"), 8, 0, 0), i.writer.writeUint32(0), i.writer.writeUint32(0), W(i, b("stco"), 4, 0, 0), i.writer.writeUint32(0), i.writer.writeUint32At(t, i.writer.position() - t);
1521
+ X(i, x.stsd, 0, 0, 0), i.writer.writeUint32(1), We(e) ? io(i, e) : gt(e) && oo(i, e), i.writer.writeUint32At(s, i.writer.position() - s), X(i, b("stts"), 4, 0, 0), i.writer.writeUint32(0), X(i, b("stsc"), 4, 0, 0), i.writer.writeUint32(0), X(i, b("stsz"), 8, 0, 0), i.writer.writeUint32(0), i.writer.writeUint32(0), X(i, b("stco"), 4, 0, 0), i.writer.writeUint32(0), i.writer.writeUint32At(t, i.writer.position() - t);
1527
1522
  }, co = (i, e) => {
1528
1523
  const t = i.writer.position();
1529
- H(i, x.minf, 0), Xe(e) ? (W(i, x.vmhd, 8, 0, 1), i.writer.writeUint32(0), i.writer.writeUint32(0)) : gt(e) && (W(i, x.smhd, 4, 0, 0), i.writer.writeUint16(0), i.writer.writeUint16(0)), $r(i), ao(i, e), i.writer.writeUint32At(t, i.writer.position() - t);
1524
+ H(i, x.minf, 0), We(e) ? (X(i, x.vmhd, 8, 0, 1), i.writer.writeUint32(0), i.writer.writeUint32(0)) : gt(e) && (X(i, x.smhd, 4, 0, 0), i.writer.writeUint16(0), i.writer.writeUint16(0)), $r(i), ao(i, e), i.writer.writeUint32At(t, i.writer.position() - t);
1530
1525
  }, ho = (i, e) => {
1531
1526
  const t = i.writer.position();
1532
1527
  H(i, x.mdia, 0), Yr(i, e), Kr(i, e), co(i, e), i.writer.writeUint32At(t, i.writer.position() - t);
@@ -1534,7 +1529,7 @@ const H = (i, e, t) => {
1534
1529
  const s = i.writer.position();
1535
1530
  H(i, x.trak, 0), Jr(i, e, t), ho(i, e), i.writer.writeUint32At(s, i.writer.position() - s);
1536
1531
  }, lo = (i, e) => {
1537
- W(i, x.trex, 20, 0, 0), i.writer.writeUint32(e.trackId), i.writer.writeUint32(1), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(0);
1532
+ X(i, x.trex, 20, 0, 0), i.writer.writeUint32(e.trackId), i.writer.writeUint32(1), i.writer.writeUint32(0), i.writer.writeUint32(0), i.writer.writeUint32(0);
1538
1533
  }, mo = (i, e) => {
1539
1534
  const t = i.writer.position();
1540
1535
  H(i, x.mvex, 0), e.forEach((s) => lo(i, s)), i.writer.writeUint32At(t, i.writer.position() - t);
@@ -1543,10 +1538,10 @@ const H = (i, e, t) => {
1543
1538
  H(i, x.moov, 0), Zr(i, 0, t), e.forEach((o) => uo(i, o, t)), mo(i, e), i.writer.writeUint32At(r, i.writer.position() - r);
1544
1539
  }, Ao = (i, e) => {
1545
1540
  const t = i.writer.position();
1546
- W(i, x.tfhd, 16, 0, 56), i.writer.writeUint32(e.trackId), i.writer.writeUint32(e.defaultDuration || 0), i.writer.writeUint32(e.defaultSize || 0), i.writer.writeUint32(e.defaultFlags || 0), i.writer.writeUint32At(t, i.writer.position() - t);
1541
+ X(i, x.tfhd, 16, 0, 56), i.writer.writeUint32(e.trackId), i.writer.writeUint32(e.defaultDuration || 0), i.writer.writeUint32(e.defaultSize || 0), i.writer.writeUint32(e.defaultFlags || 0), i.writer.writeUint32At(t, i.writer.position() - t);
1547
1542
  }, go = (i, e) => {
1548
1543
  const t = i.writer.position();
1549
- W(i, x.tfdt, 8, 1, 0);
1544
+ X(i, x.tfdt, 8, 1, 0);
1550
1545
  const s = Math.floor(e.timestamp / 4294967296), r = (e.timestamp & 4294967295) >>> 0;
1551
1546
  i.writer.writeUint32(s), i.writer.writeUint32(r), i.writer.writeUint32At(t, i.writer.position() - t);
1552
1547
  }, po = (i, e) => {
@@ -1556,7 +1551,7 @@ const H = (i, e, t) => {
1556
1551
  let o = 1;
1557
1552
  s && (o |= 4), t && (o |= 2048), r && (o |= 512, o |= 256, o |= 1024);
1558
1553
  const a = i.writer.position();
1559
- W(i, x.trun, 16, 1, o), i.writer.writeUint32(e.samples.length);
1554
+ X(i, x.trun, 16, 1, o), i.writer.writeUint32(e.samples.length);
1560
1555
  const c = i.writer.position();
1561
1556
  i.writer.writeUint32(0), s && i.writer.writeUint32(Ci(e.samples[0]));
1562
1557
  for (const h of e.samples)
@@ -1566,7 +1561,7 @@ const H = (i, e, t) => {
1566
1561
  const t = i.writer.position();
1567
1562
  H(i, x.traf, 0), Ao(i, e), go(i, e), po(i, e), i.writer.writeUint32At(t, i.writer.position() - t);
1568
1563
  }, So = (i, e) => {
1569
- W(i, x.mfhd, 4, 0, 0), i.writer.writeUint32(e);
1564
+ X(i, x.mfhd, 4, 0, 0), i.writer.writeUint32(e);
1570
1565
  }, vo = (i, e) => {
1571
1566
  const t = i.writer.position();
1572
1567
  H(i, x.moof, 0), So(i, e.sequenceNumber), wo(i, e), i.writer.writeUint32At(t, i.writer.position() - t);
@@ -1574,8 +1569,8 @@ const H = (i, e, t) => {
1574
1569
  const t = e.samples.reduce((s, r) => s + r.data.byteLength, 0);
1575
1570
  H(i, x.mdat, t), e.samples.forEach((s) => i.writer.writeBytes(s.data));
1576
1571
  }, Si = (i, e) => {
1577
- const t = new $s(), s = i.filter((o) => Xe(o) && en(o)).length > 0;
1578
- return i.filter((o) => Xe(o) && Mi(o)).length > 0 ? Ti(t, jr) : s ? Ti(t, Gr) : Ti(t, qr), fo(t, i, Xr), t.writer.buffer();
1572
+ const t = new $s(), s = i.filter((o) => We(o) && en(o)).length > 0;
1573
+ return i.filter((o) => We(o) && Mi(o)).length > 0 ? Ti(t, jr) : s ? Ti(t, Gr) : Ti(t, qr), fo(t, i, Wr), t.writer.buffer();
1579
1574
  }, vi = (i) => {
1580
1575
  const e = new $s();
1581
1576
  return vo(e, i), bo(e, i), e.writer.buffer();
@@ -1724,7 +1719,7 @@ const H = (i, e, t) => {
1724
1719
  const g = i.readBits(4) + 1, p = i.readBits(4) + 1, y = i.readBits(g) + 1, U = i.readBits(p) + 1;
1725
1720
  let N = !1;
1726
1721
  r ? N = !1 : N = i.readBit() !== 0, N && (u = i.readBits(4) + 2, l = i.readBits(3) + 1);
1727
- const X = i.readBit() !== 0, L = i.readBit() !== 0, _ = i.readBit() !== 0;
1722
+ const W = i.readBit() !== 0, L = i.readBit() !== 0, _ = i.readBit() !== 0;
1728
1723
  let Z = !1, te = !1, me = !1, Mt = !1, fe = !1, lt = !1, Lt = !1, xe = bs, Ue = Ii, f = 0;
1729
1724
  r || (Z = i.readBit() !== 0, te = i.readBit() !== 0, me = i.readBit() !== 0, Mt = i.readBit() !== 0, fe = i.readBit() !== 0, fe && (lt = i.readBit() !== 0, Lt = i.readBit() !== 0), i.readBit() !== 0 ? xe = bs : xe = i.readBit(), xe > 0 ? i.readBit() > 0 ? Ue = Ii : Ue = i.readBit() : Ue = Ii, fe ? f = i.readBits(3) : f = 0);
1730
1725
  const v = i.readBit() !== 0, M = i.readBit() !== 0, P = i.readBit() !== 0;
@@ -1749,7 +1744,7 @@ const H = (i, e, t) => {
1749
1744
  frameIdNumbersPresentFlag: N,
1750
1745
  deltaFrameIdLength: u,
1751
1746
  additionalFrameIdLength: l,
1752
- use_128x128Superblock: X,
1747
+ use_128x128Superblock: W,
1753
1748
  enableFilterIntra: L,
1754
1749
  enableIntraEdgeFilter: _,
1755
1750
  enableInterintraCompound: Z,
@@ -1856,7 +1851,7 @@ const H = (i, e, t) => {
1856
1851
  }, Qo = (i, e, t) => {
1857
1852
  switch (i) {
1858
1853
  case "h264":
1859
- return Xo(e, t);
1854
+ return Wo(e, t);
1860
1855
  case "av1":
1861
1856
  return Go(e, t);
1862
1857
  case "opus":
@@ -1866,14 +1861,14 @@ const H = (i, e, t) => {
1866
1861
  default:
1867
1862
  throw new Error(`Failed to initialize ${i} segment`);
1868
1863
  }
1869
- }, Wo = (i, e) => {
1864
+ }, Xo = (i, e) => {
1870
1865
  switch (i) {
1871
1866
  case "h264":
1872
1867
  return tn(e);
1873
1868
  case "av1":
1874
1869
  return Vo(e);
1875
1870
  }
1876
- }, Xo = (i, e) => Co(i, e), Go = (i, e) => Ho(i, e), jo = (i, e) => Io(new Uint8Array(i), 2, e), qo = (i, e) => Eo(new Uint8Array(i), 2, e, e), Zo = (i, e) => {
1871
+ }, Wo = (i, e) => Co(i, e), Go = (i, e) => Ho(i, e), jo = (i, e) => Io(new Uint8Array(i), 2, e), qo = (i, e) => Eo(new Uint8Array(i), 2, e, e), Zo = (i, e) => {
1877
1872
  if (!i[0])
1878
1873
  throw new Error("At least one sample must be provided");
1879
1874
  switch (i[0].codec) {
@@ -2924,7 +2919,7 @@ he = new WeakMap(), dt = new WeakMap(), we = new WeakMap(), ht = new WeakMap(),
2924
2919
  throw new T("Failed to resolve edge url", { isFatal: !0, code: "failed_to_resolve_edge_url" });
2925
2920
  if (Tn(r)) {
2926
2921
  if (Qn().moqEnabled) {
2927
- const { MoqConnectionAdapter: h } = yield import("./Df7Ci1eS.js");
2922
+ const { MoqConnectionAdapter: h } = yield import("./DQQXzN2X.js");
2928
2923
  this.connectionImpl = yield h.start(this.emitter, this.logger, this.apiClient, R(A({}, this.config), {
2929
2924
  connectInfo: r,
2930
2925
  estimatedRtt: a,
@@ -3174,7 +3169,7 @@ class ss {
3174
3169
  for (const c of s)
3175
3170
  switch (c.type) {
3176
3171
  case "audio": {
3177
- const { OpusDecoderContext: h } = yield import("./BaFuAFrs.js");
3172
+ const { OpusDecoderContext: h } = yield import("./BNQHV1De.js");
3178
3173
  a.set(c.type, {
3179
3174
  buffer: [],
3180
3175
  decoderContext: yield h.create(48e3, 2),
@@ -3185,7 +3180,7 @@ class ss {
3185
3180
  break;
3186
3181
  }
3187
3182
  case "video": {
3188
- const { H264DecoderWorkerContext: h } = yield import("./DI8TMpCe.js");
3183
+ const { H264DecoderWorkerContext: h } = yield import("./gWFShXmf.js");
3189
3184
  a.set(c.type, {
3190
3185
  buffer: [],
3191
3186
  decoderContext: yield h.create(o),
@@ -3401,7 +3396,7 @@ const Ia = () => window.AudioContext || window.webkitAudioContext, ti = class ti
3401
3396
  }
3402
3397
  };
3403
3398
  n(ti, "CHECK_INTERVAL", 1e3);
3404
- let Wi = ti;
3399
+ let Xi = ti;
3405
3400
  const ii = class ii extends Pe {
3406
3401
  constructor(t, s, { muted: r, reInitWhenStuck: o }) {
3407
3402
  super();
@@ -3512,7 +3507,7 @@ const ii = class ii extends Pe {
3512
3507
  n(this, "getAudioContext", () => this.audio ? this.audio : this.setupContext());
3513
3508
  n(this, "setupContext", () => {
3514
3509
  var t, s, r;
3515
- return (t = this.audio) == null || t.unload(), this.audio = new Wi(), this.audio.on("state", (o) => {
3510
+ return (t = this.audio) == null || t.unload(), this.audio = new Xi(), this.audio.on("state", (o) => {
3516
3511
  this.logger.info("AudioContext state change", { state: o }), o === "running" && (this._muted = this._userProvidedMuted, this.setGain(this._volume)), !this.ignoreSuspendCalls && this.emit("state change", o);
3517
3512
  }), this.audio.on("stuck", () => {
3518
3513
  this.reInitWhenStuck && (this.logger.info("Re-init audio context"), this.setupContext(), this.resume().catch(le), this.emit("stuck"));
@@ -3751,7 +3746,7 @@ void main() {
3751
3746
  code: "failed_to_create_buffer"
3752
3747
  });
3753
3748
  return i.bindBuffer(i.ARRAY_BUFFER, t), i.bufferData(i.ARRAY_BUFFER, e.buffer, i.STATIC_DRAW), t;
3754
- }, Xi = (i, e, t) => {
3749
+ }, Wi = (i, e, t) => {
3755
3750
  const s = i.createProgram();
3756
3751
  if (!s)
3757
3752
  throw new T("Failed to create program", {
@@ -3797,7 +3792,7 @@ class xa {
3797
3792
  0,
3798
3793
  1
3799
3794
  ]);
3800
- S(this, B, e), S(this, kt, _e(e)), S(this, Pt, et(e, e.FRAGMENT_SHADER, ka)), S(this, xt, et(e, e.VERTEX_SHADER, Pa)), S(this, Re, Xi(e, d(this, xt), d(this, Pt))), this.subtitleRenderer.config.fontSize = "64px";
3795
+ S(this, B, e), S(this, kt, _e(e)), S(this, Pt, et(e, e.FRAGMENT_SHADER, ka)), S(this, xt, et(e, e.VERTEX_SHADER, Pa)), S(this, Re, Wi(e, d(this, xt), d(this, Pt))), this.subtitleRenderer.config.fontSize = "64px";
3801
3796
  }
3802
3797
  setActiveCues(e, t) {
3803
3798
  this.subtitleRenderer.setActiveCues(e), this.subtitleRenderer.render(t);
@@ -3866,7 +3861,7 @@ void main() {
3866
3861
  n(this, "pixelShader", et(this.context, this.context.FRAGMENT_SHADER, Bs));
3867
3862
  n(this, "vertexShader", et(this.context, this.context.VERTEX_SHADER, Rs));
3868
3863
  n(this, "buffer", Is(this.context, wt.SQUARE_VERTICES));
3869
- n(this, "program", Xi(this.context, this.vertexShader, this.pixelShader));
3864
+ n(this, "program", Wi(this.context, this.vertexShader, this.pixelShader));
3870
3865
  n(this, "textures", {
3871
3866
  y: _e(this.context),
3872
3867
  u: _e(this.context),
@@ -3881,7 +3876,7 @@ void main() {
3881
3876
  this.emit("context lost", pr(s)), t.preventDefault();
3882
3877
  });
3883
3878
  n(this, "onContextRestored", () => {
3884
- this.emit("context restored"), this.context = Cs(this.canvas, Ps), this.pixelShader = et(this.context, this.context.FRAGMENT_SHADER, Bs), this.vertexShader = et(this.context, this.context.VERTEX_SHADER, Rs), this.buffer = Is(this.context, wt.SQUARE_VERTICES), this.program = Xi(this.context, this.vertexShader, this.pixelShader), this.textures = {
3879
+ this.emit("context restored"), this.context = Cs(this.canvas, Ps), this.pixelShader = et(this.context, this.context.FRAGMENT_SHADER, Bs), this.vertexShader = et(this.context, this.context.VERTEX_SHADER, Rs), this.buffer = Is(this.context, wt.SQUARE_VERTICES), this.program = Wi(this.context, this.vertexShader, this.pixelShader), this.textures = {
3885
3880
  y: _e(this.context),
3886
3881
  u: _e(this.context),
3887
3882
  v: _e(this.context)
@@ -4926,12 +4921,12 @@ const Ki = () => ({
4926
4921
  fatalQosCount: this.fatalQosCount
4927
4922
  }));
4928
4923
  n(this, "onRenditionLevelChanged", (e) => {
4929
- var o, a, c, h, u, l, m, g, p, y, U, N, X, L;
4924
+ var o, a, c, h, u, l, m, g, p, y, U, N, W, L;
4930
4925
  const t = ((c = (a = (o = e.from) == null ? void 0 : o.video) == null ? void 0 : a.bitRate) != null ? c : 0) + ((l = (u = (h = e.from) == null ? void 0 : h.audio) == null ? void 0 : u.bitRate) != null ? l : 0), s = ((p = (g = (m = e.to) == null ? void 0 : m.video) == null ? void 0 : g.bitRate) != null ? p : 0) + ((N = (U = (y = e.to) == null ? void 0 : y.audio) == null ? void 0 : U.bitRate) != null ? N : 0);
4931
4926
  this.logger.info("rendition level changed", { fromLevel: t, toLevel: s }), this.metrics.general.activeRanges.length === 0 && this.setActive(), e.from && e.to && (t < s ? this.metrics.general.upgradesFromLevel.push(Date.now()) : this.metrics.general.downgradesFromLevel.push(Date.now()));
4932
4927
  let r = !1;
4933
4928
  if (e.from) {
4934
- const _ = (X = this.metrics.levels[t]) != null ? X : Ki();
4929
+ const _ = (W = this.metrics.levels[t]) != null ? W : Ki();
4935
4930
  t < s ? _.upgradesFromLevel.push(Date.now()) : _.downgradesFromLevel.push(Date.now()), Le(_.activeRanges);
4936
4931
  const Z = _.bufferingRanges[_.bufferingRanges.length - 1];
4937
4932
  r = !!Z && !Z.end, Le(_.bufferingRanges), this.metrics.levels[t] = _;
@@ -5580,7 +5575,7 @@ const za = {
5580
5575
  }
5581
5576
  };
5582
5577
  n(Ai, "create", (e, t, s, r) => new Ai(e, t, s, r));
5583
- let Wt = Ai;
5578
+ let Xt = Ai;
5584
5579
  const gi = class gi {
5585
5580
  constructor(e, t, s) {
5586
5581
  n(this, "logger");
@@ -5597,12 +5592,12 @@ const gi = class gi {
5597
5592
  }
5598
5593
  };
5599
5594
  n(gi, "create", (e, t, s) => new gi(e, t, s));
5600
- let Xt = gi;
5595
+ let Wt = gi;
5601
5596
  const Ha = 6, Qa = (i) => {
5602
5597
  let e = [i], t = 0, s = 0, r = !1;
5603
5598
  const o = (c, h) => {
5604
- var N, X, L;
5605
- c.flags && pt(c.flags) && (t = (N = c.compositionTimeOffset) != null ? N : 0), c.timestamp += t, c.compositionTimeOffset = ((X = c.compositionTimeOffset) != null ? X : 0) - t;
5599
+ var N, W, L;
5600
+ c.flags && pt(c.flags) && (t = (N = c.compositionTimeOffset) != null ? N : 0), c.timestamp += t, c.compositionTimeOffset = ((W = c.compositionTimeOffset) != null ? W : 0) - t;
5606
5601
  const u = c.timestamp / c.timescale, m = h.flags && pt(h.flags) ? (L = h.compositionTimeOffset) != null ? L : 0 : t, p = (h.timestamp + m) / h.timescale, y = Math.max(0, Math.round((p - u) * c.timescale));
5607
5602
  return y > 0 && (s = y), R(A({}, c), {
5608
5603
  /*
@@ -5629,7 +5624,7 @@ const Ha = 6, Qa = (i) => {
5629
5624
  }
5630
5625
  return e.push(c), [];
5631
5626
  };
5632
- }, Wa = (i, e, t) => {
5627
+ }, Xa = (i, e, t) => {
5633
5628
  if (st(e))
5634
5629
  return A(R(A({}, i), {
5635
5630
  type: "video",
@@ -5653,7 +5648,7 @@ const Ha = 6, Qa = (i) => {
5653
5648
  duration: 0
5654
5649
  });
5655
5650
  };
5656
- class Xa {
5651
+ class Wa {
5657
5652
  constructor() {
5658
5653
  n(this, "highEntropyValues");
5659
5654
  var e;
@@ -5675,7 +5670,7 @@ class Xa {
5675
5670
  g.sort((L, _) => L.brand.localeCompare(_.brand));
5676
5671
  const p = [...(c = this.highEntropyValues.fullVersionList) != null ? c : []];
5677
5672
  p.sort((L, _) => L.brand.localeCompare(_.brand));
5678
- const y = p.map((L) => L.version), U = g.map((L) => L.brand), N = g.map((L) => L.version), X = parseInt((u = (h = this.highEntropyValues.platformVersion) == null ? void 0 : h.split(".")[0]) != null ? u : m);
5673
+ const y = p.map((L) => L.version), U = g.map((L) => L.brand), N = g.map((L) => L.version), W = parseInt((u = (h = this.highEntropyValues.platformVersion) == null ? void 0 : h.split(".")[0]) != null ? u : m);
5679
5674
  return A({
5680
5675
  userAgentLegacy: window.navigator.userAgent,
5681
5676
  ua: {
@@ -5688,7 +5683,7 @@ class Xa {
5688
5683
  os: {
5689
5684
  family: this.highEntropyValues.platform || "Other",
5690
5685
  version: (l = this.highEntropyValues.platformVersion) != null ? l : m,
5691
- major_version: Number.isFinite(X) ? X : 0
5686
+ major_version: Number.isFinite(W) ? W : 0
5692
5687
  }
5693
5688
  }
5694
5689
  }, r);
@@ -5709,7 +5704,7 @@ const Ga = (i) => {
5709
5704
  throw new Error("missing channelId");
5710
5705
  return !0;
5711
5706
  };
5712
- var Qe, Y, We;
5707
+ var Qe, Y, Xe;
5713
5708
  const $ = class $ extends Pe {
5714
5709
  constructor(t) {
5715
5710
  var xe, Ue;
@@ -5735,7 +5730,7 @@ const $ = class $ extends Pe {
5735
5730
  n(this, "latestEmittedLanguages", []);
5736
5731
  n(this, "wakeLock");
5737
5732
  n(this, "pool", new os($.MAX_POOL_SIZE));
5738
- n(this, "userAgentInformation", new Xa());
5733
+ n(this, "userAgentInformation", new Wa());
5739
5734
  n(this, "encryptedMediaExtensions");
5740
5735
  w(this, Qe, 0);
5741
5736
  w(this, Y, []);
@@ -5743,7 +5738,7 @@ const $ = class $ extends Pe {
5743
5738
  n(this, "sizes", /* @__PURE__ */ new Map());
5744
5739
  n(this, "isSuspended", !0);
5745
5740
  n(this, "disconnectTimeout");
5746
- w(this, We);
5741
+ w(this, Xe);
5747
5742
  /**
5748
5743
  * Attaches the video view to a DOM element. The Vindral video view will be sized to fill this element while
5749
5744
  * maintaining the correct aspect ratio.
@@ -6054,7 +6049,7 @@ const $ = class $ extends Pe {
6054
6049
  const t = this.modules.canvasModule ? this.options.get("iosMediaElementEnabled") : void 0;
6055
6050
  return A({
6056
6051
  uptime: Date.now() - this.createdAt,
6057
- version: "4.0.0-112-g5757d44d",
6052
+ version: "4.0.0-114-g294ca278",
6058
6053
  clientId: this.clientId,
6059
6054
  sessionId: this.sessionId,
6060
6055
  channelId: this.channelId,
@@ -6086,7 +6081,7 @@ const $ = class $ extends Pe {
6086
6081
  if (s && t)
6087
6082
  return t - s;
6088
6083
  });
6089
- this.options = new aa(A(A({}, Wn), Sr(t)));
6084
+ this.options = new aa(A(A({}, Xn), Sr(t)));
6090
6085
  const s = ["localhost", "127.0.0.1"];
6091
6086
  t.telemetryEnabled === void 0 && s.includes(location.hostname) && this.options.set("telemetryEnabled", !1);
6092
6087
  const r = {
@@ -6129,7 +6124,7 @@ const $ = class $ extends Pe {
6129
6124
  (Ue = t.drm) == null ? void 0 : Ue.queryParams
6130
6125
  );
6131
6126
  const p = zi.create(this.emitter), y = this.options.get("poster"), U = y === !0 ? this.getThumbnailUrl() : y || void 0;
6132
- let N, X, L;
6127
+ let N, W, L;
6133
6128
  if (this.willUseMediaSource()) {
6134
6129
  const f = new _i({
6135
6130
  type: this.options.get("media") == "audio" ? "audio" : "video",
@@ -6138,7 +6133,7 @@ const $ = class $ extends Pe {
6138
6133
  logger: this.logger.createContext("MediaElement"),
6139
6134
  poster: U
6140
6135
  });
6141
- f.on("buffer state", (v) => this.emitter.emit("buffer state", v)), f.on("needs user input", (v) => this.emitter.emit("needs user input", v)), f.on("volume state", (v) => this.emit("volume state", v)), f.on("media element state", (v) => this.onMediaElementState(v)), this.element = f.element, this.playbackSource = f, ws.isSupported() && this.encryptedMediaExtensions.attach(f.element), N = Zi.create(this.logger.createContext("MseModule"), this.emitter, this.element), this.options.get("pauseSupportEnabled") || (X = Xt.create(this.logger.createContext("UnpauseModule"), f, p)), this.options.get("pictureInPictureEnabled") && this.emitter.emit("add picture in picture listener", { element: f.element });
6136
+ f.on("buffer state", (v) => this.emitter.emit("buffer state", v)), f.on("needs user input", (v) => this.emitter.emit("needs user input", v)), f.on("volume state", (v) => this.emit("volume state", v)), f.on("media element state", (v) => this.onMediaElementState(v)), this.element = f.element, this.playbackSource = f, ws.isSupported() && this.encryptedMediaExtensions.attach(f.element), N = Zi.create(this.logger.createContext("MseModule"), this.emitter, this.element), this.options.get("pauseSupportEnabled") || (W = Wt.create(this.logger.createContext("UnpauseModule"), f, p)), this.options.get("pictureInPictureEnabled") && this.emitter.emit("add picture in picture listener", { element: f.element });
6142
6137
  } else if (this.browser.platform.iosVersion >= 15 && this.options.get("iosMediaElementEnabled")) {
6143
6138
  const f = qi.create(
6144
6139
  this.emitter,
@@ -6151,7 +6146,7 @@ const $ = class $ extends Pe {
6151
6146
  poster: U
6152
6147
  }
6153
6148
  ), v = f.element();
6154
- this.element = v.element, this.playbackSource = f, L = f, this.options.get("pictureInPictureEnabled") && this.browser.platform.iosVersion > 15 && this.emitter.emit("add picture in picture listener", { element: this.element }), this.options.get("pauseSupportEnabled") || (X = Xt.create(this.logger.createContext("UnpauseModule"), v, p));
6149
+ this.element = v.element, this.playbackSource = f, L = f, this.options.get("pictureInPictureEnabled") && this.browser.platform.iosVersion > 15 && this.emitter.emit("add picture in picture listener", { element: this.element }), this.options.get("pauseSupportEnabled") || (W = Wt.create(this.logger.createContext("UnpauseModule"), v, p));
6155
6150
  } else {
6156
6151
  const f = ji.create(
6157
6152
  this.emitter,
@@ -6179,7 +6174,7 @@ const $ = class $ extends Pe {
6179
6174
  this.playbackSource,
6180
6175
  g,
6181
6176
  this.willUseMediaSource() && !_
6182
- ), te = (this.options.get("edgeUrl") || this.options.get("url")).replace("wss://", "https://").replace("ws://", "http://").replace("//lb.", "//errors."), me = new URL("/telemetry", te).toString(), Mt = Wt.create(
6177
+ ), te = (this.options.get("edgeUrl") || this.options.get("url")).replace("wss://", "https://").replace("ws://", "http://").replace("//lb.", "//errors."), me = new URL("/telemetry", te).toString(), Mt = Xt.create(
6183
6178
  this.logger.createContext("TelemetryModule"),
6184
6179
  this.emitter,
6185
6180
  {
@@ -6228,7 +6223,7 @@ const $ = class $ extends Pe {
6228
6223
  renditions: l,
6229
6224
  qualityOfService: m,
6230
6225
  mseModule: N,
6231
- unpause: X,
6226
+ unpause: W,
6232
6227
  canvasModule: L
6233
6228
  }, this.modules.adaptivity.isEnabled = this.options.get("abrEnabled"), this.emitter.on("page active", (f) => {
6234
6229
  var v;
@@ -6263,7 +6258,7 @@ const $ = class $ extends Pe {
6263
6258
  }), this.emitter.once("connect info", (f) => {
6264
6259
  var P, C, I;
6265
6260
  const M = ((C = (P = f.telemetry) == null ? void 0 : P.probability) != null ? C : 1) >= Math.random();
6266
- f.telemetry && ((I = this.modules.telemetry) == null || I.unload(), this.modules.telemetry = Wt.create(
6261
+ f.telemetry && ((I = this.modules.telemetry) == null || I.unload(), this.modules.telemetry = Xt.create(
6267
6262
  this.logger.createContext("TelemetryModule"),
6268
6263
  this.emitter,
6269
6264
  R(A({}, f.telemetry), {
@@ -6324,13 +6319,13 @@ const $ = class $ extends Pe {
6324
6319
  this.clientIp = v.ip;
6325
6320
  break;
6326
6321
  case "renditions":
6327
- this.updateTextTracks(v.renditions), S(this, We, this.filterRenditions(v.renditions).then((C) => {
6322
+ this.updateTextTracks(v.renditions), S(this, Xe, this.filterRenditions(v.renditions).then((C) => {
6328
6323
  this.emitter.emit("renditions", {
6329
6324
  renditions: C,
6330
6325
  channelId: this.currentSubscription.channelId
6331
6326
  }), this.emit("rendition levels", this.modules.renditions.getRenditionLevels()), this.emitLanguagesIfChanged();
6332
6327
  }).finally(() => {
6333
- S(this, We, void 0);
6328
+ S(this, Xe, void 0);
6334
6329
  }));
6335
6330
  break;
6336
6331
  case "subscription changed":
@@ -6368,11 +6363,11 @@ const $ = class $ extends Pe {
6368
6363
  }), this.emitter.on("received moq data", (f) => {
6369
6364
  var I, D, ie;
6370
6365
  const v = f.payload.mediaType(), M = f.channelId, P = f.renditionId, C = this.modules.sync.processFragment(M, f.payload);
6371
- if (f.switchInfo.channelId && this.modules.event.addEvent({
6366
+ if (f.switchInfo.channelId && (this.emit("rendition levels", this.modules.renditions.getRenditionLevels()), this.modules.event.addEvent({
6372
6367
  type: "channel switch",
6373
6368
  channelId: f.switchInfo.channelId,
6374
6369
  timestamp: C.baseMediaDecodeTime() / C.timescale() * 1e3
6375
- }), f.switchInfo.language && this.modules.event.addEvent({
6370
+ })), f.switchInfo.language && this.modules.event.addEvent({
6376
6371
  type: "language switch",
6377
6372
  language: f.switchInfo.language,
6378
6373
  timestamp: C.baseMediaDecodeTime() / C.timescale() * 1e3
@@ -6420,7 +6415,7 @@ const $ = class $ extends Pe {
6420
6415
  lt && this.attach(lt), this.logger.info("Created Vindral instance", { options: this.options });
6421
6416
  const Lt = (f) => E(this, null, function* () {
6422
6417
  const v = f.channelId;
6423
- d(this, We) && (yield d(this, We));
6418
+ d(this, Xe) && (yield d(this, Xe));
6424
6419
  const M = this.modules.renditions.getRendition(f.renditionId, v);
6425
6420
  if (!Yo(f.flags)) {
6426
6421
  if (Ko(f.flags)) {
@@ -6456,12 +6451,12 @@ const $ = class $ extends Pe {
6456
6451
  codec: M.codec
6457
6452
  }, f), {
6458
6453
  channelId: v
6459
- }), I = Wo(C.codec, C.payload);
6454
+ }), I = Xo(C.codec, C.payload);
6460
6455
  I && this.sizes.set(C.renditionId, I);
6461
6456
  const D = $e({ codec: M.codec, codecString: M.codecString });
6462
6457
  this.emitter.emit("init segment", { initSegment: C, mimeType: D }), this.emit("initialized media");
6463
6458
  } else {
6464
- const C = Wa(f, M, this.sizes.get(f.renditionId));
6459
+ const C = Xa(f, M, this.sizes.get(f.renditionId));
6465
6460
  let I = this.sampleProcessingSesssions.get(P);
6466
6461
  if (!I)
6467
6462
  I = Qa(
@@ -6887,12 +6882,12 @@ const $ = class $ extends Pe {
6887
6882
  return this.browser.supportsMediaSource && this.options.get("mseEnabled");
6888
6883
  }
6889
6884
  };
6890
- Qe = new WeakMap(), Y = new WeakMap(), We = new WeakMap(), n($, "MAX_POOL_SIZE", 10), n($, "INITIAL_MAX_BIT_RATE", 2.5 * 1e3 * 1e3), n($, "DISCONNECT_TIMEOUT", 15 * 1e3), n($, "REMOVE_CUE_THRESHOLD", 1e3 * 10);
6885
+ Qe = new WeakMap(), Y = new WeakMap(), Xe = new WeakMap(), n($, "MAX_POOL_SIZE", 10), n($, "INITIAL_MAX_BIT_RATE", 2.5 * 1e3 * 1e3), n($, "DISCONNECT_TIMEOUT", 15 * 1e3), n($, "REMOVE_CUE_THRESHOLD", 1e3 * 10);
6891
6886
  let Os = $;
6892
6887
  export {
6893
6888
  or as A,
6894
6889
  as as B,
6895
- Xn as C,
6890
+ Wn as C,
6896
6891
  St as D,
6897
6892
  J as F,
6898
6893
  Yn as I,
@@ -27,7 +27,7 @@ var X = (B, g, A) => new Promise((J, k) => {
27
27
  }, o = (h) => h.done ? J(h.value) : Promise.resolve(h.value).then(y, a);
28
28
  o((A = A.apply(B, g)).next());
29
29
  });
30
- import { F as RA, d as JA, n as kA } from "./Uc7mfi6N.js";
30
+ import { F as RA, d as JA, n as kA } from "./BI9e_l24.js";
31
31
  var hA = function() {
32
32
  var B = typeof document != "undefined" && document.currentScript ? document.currentScript.src : void 0;
33
33
  return function(g) {