@golstats/gsc-landing 1.0.106 → 1.0.108

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.
@@ -319,11 +319,11 @@ function da(s, e, t) {
319
319
  if (G.endsWith(g, "{}"))
320
320
  g = i ? g : g.slice(0, -2), f = JSON.stringify(f);
321
321
  else if (G.isArray(f) && d0(f) || (G.isFileList(f) || G.endsWith(g, "[]")) && (A = G.toArray(f)))
322
- return g = Wh(g), A.forEach(function(S, I) {
323
- !(G.isUndefined(S) || S === null) && e.append(
322
+ return g = Wh(g), A.forEach(function(C, I) {
323
+ !(G.isUndefined(C) || C === null) && e.append(
324
324
  // eslint-disable-next-line no-nested-ternary
325
325
  o === !0 ? hc([g], I, a) : o === null ? g : g + "[]",
326
- l(S)
326
+ l(C)
327
327
  );
328
328
  }), !1;
329
329
  }
@@ -338,14 +338,14 @@ function da(s, e, t) {
338
338
  if (!G.isUndefined(f)) {
339
339
  if (u.indexOf(f) !== -1)
340
340
  throw Error("Circular reference detected in " + g.join("."));
341
- u.push(f), G.forEach(f, function(A, C) {
341
+ u.push(f), G.forEach(f, function(A, S) {
342
342
  (!(G.isUndefined(A) || A === null) && n.call(
343
343
  e,
344
344
  A,
345
- G.isString(C) ? C.trim() : C,
345
+ G.isString(S) ? S.trim() : S,
346
346
  g,
347
347
  m
348
- )) === !0 && h(A, g ? g.concat(C) : [C]);
348
+ )) === !0 && h(A, g ? g.concat(S) : [S]);
349
349
  }), u.pop();
350
350
  }
351
351
  }
@@ -922,7 +922,7 @@ function tm(s, e) {
922
922
  return s && !D0(e) ? N0(s, e) : e;
923
923
  }
924
924
  const pc = (s) => s instanceof Dt ? { ...s } : s;
925
- function qs(s, e) {
925
+ function Ys(s, e) {
926
926
  e = e || {};
927
927
  const t = {};
928
928
  function i(l, d, u) {
@@ -987,7 +987,7 @@ function qs(s, e) {
987
987
  }), t;
988
988
  }
989
989
  const sm = (s) => {
990
- const e = qs({}, s);
990
+ const e = Ys({}, s);
991
991
  let { data: t, withXSRFToken: i, xsrfHeaderName: n, xsrfCookieName: a, headers: o, auth: r } = e;
992
992
  e.headers = o = Dt.from(o), e.url = Jh(tm(e.baseURL, e.url), s.params, s.paramsSerializer), r && o.set(
993
993
  "Authorization",
@@ -1186,16 +1186,16 @@ const K0 = async (s) => {
1186
1186
  h && h.unsubscribe();
1187
1187
  }), g = !0;
1188
1188
  };
1189
- let C;
1189
+ let S;
1190
1190
  try {
1191
- if (c && H0 && t !== "get" && t !== "head" && (C = await q0(d, i)) !== 0) {
1191
+ if (c && H0 && t !== "get" && t !== "head" && (S = await q0(d, i)) !== 0) {
1192
1192
  let F = new Request(e, {
1193
1193
  method: "POST",
1194
1194
  body: i,
1195
1195
  duplex: "half"
1196
1196
  }), O;
1197
1197
  G.isFormData(i) && (O = F.headers.get("content-type")) && d.setContentType(O), F.body && (i = yc(F.body, bc, vc(
1198
- C,
1198
+ S,
1199
1199
  Bn(c)
1200
1200
  ), null, Po));
1201
1201
  }
@@ -1208,16 +1208,16 @@ const K0 = async (s) => {
1208
1208
  duplex: "half",
1209
1209
  withCredentials: u
1210
1210
  });
1211
- let S = await fetch(p);
1211
+ let C = await fetch(p);
1212
1212
  const I = Bo && (l === "stream" || l === "response");
1213
1213
  if (Bo && (r || I)) {
1214
1214
  const F = {};
1215
1215
  ["status", "statusText", "headers"].forEach((j) => {
1216
- F[j] = S[j];
1216
+ F[j] = C[j];
1217
1217
  });
1218
- const O = G.toFiniteNumber(S.headers.get("content-length"));
1219
- S = new Response(
1220
- yc(S.body, bc, r && vc(
1218
+ const O = G.toFiniteNumber(C.headers.get("content-length"));
1219
+ C = new Response(
1220
+ yc(C.body, bc, r && vc(
1221
1221
  O,
1222
1222
  Bn(r, !0)
1223
1223
  ), I && A, Po),
@@ -1225,24 +1225,24 @@ const K0 = async (s) => {
1225
1225
  );
1226
1226
  }
1227
1227
  l = l || "text";
1228
- let E = await Dn[G.findKey(Dn, l) || "text"](S, s);
1228
+ let E = await Dn[G.findKey(Dn, l) || "text"](C, s);
1229
1229
  return !I && A(), f && f(), await new Promise((F, O) => {
1230
1230
  em(F, O, {
1231
1231
  data: E,
1232
- headers: Dt.from(S.headers),
1233
- status: S.status,
1234
- statusText: S.statusText,
1232
+ headers: Dt.from(C.headers),
1233
+ status: C.status,
1234
+ statusText: C.statusText,
1235
1235
  config: s,
1236
1236
  request: p
1237
1237
  });
1238
1238
  });
1239
- } catch (S) {
1240
- throw A(), S && S.name === "TypeError" && /fetch/i.test(S.message) ? Object.assign(
1239
+ } catch (C) {
1240
+ throw A(), C && C.name === "TypeError" && /fetch/i.test(C.message) ? Object.assign(
1241
1241
  new Le("Network Error", Le.ERR_NETWORK, s, p),
1242
1242
  {
1243
- cause: S.cause || S
1243
+ cause: C.cause || C
1244
1244
  }
1245
- ) : Le.from(S, S && S.code, s, p);
1245
+ ) : Le.from(C, C && C.code, s, p);
1246
1246
  }
1247
1247
  }), Do = {
1248
1248
  http: c0,
@@ -1357,7 +1357,7 @@ const No = {
1357
1357
  assertOptions: W0,
1358
1358
  validators: Yr
1359
1359
  }, ks = No.validators;
1360
- class Hs {
1360
+ class Ks {
1361
1361
  constructor(e) {
1362
1362
  this.defaults = e, this.interceptors = {
1363
1363
  request: new fc(),
@@ -1390,7 +1390,7 @@ class Hs {
1390
1390
  }
1391
1391
  }
1392
1392
  _request(e, t) {
1393
- typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = qs(this.defaults, t);
1393
+ typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Ys(this.defaults, t);
1394
1394
  const { transitional: i, paramsSerializer: n, headers: a } = t;
1395
1395
  i !== void 0 && No.assertOptions(i, {
1396
1396
  silentJSONParsing: ks.transitional(ks.boolean),
@@ -1449,14 +1449,14 @@ class Hs {
1449
1449
  return d;
1450
1450
  }
1451
1451
  getUri(e) {
1452
- e = qs(this.defaults, e);
1452
+ e = Ys(this.defaults, e);
1453
1453
  const t = tm(e.baseURL, e.url);
1454
1454
  return Jh(t, e.params, e.paramsSerializer);
1455
1455
  }
1456
1456
  }
1457
1457
  G.forEach(["delete", "get", "head", "options"], function(e) {
1458
- Hs.prototype[e] = function(t, i) {
1459
- return this.request(qs(i || {}, {
1458
+ Ks.prototype[e] = function(t, i) {
1459
+ return this.request(Ys(i || {}, {
1460
1460
  method: e,
1461
1461
  url: t,
1462
1462
  data: (i || {}).data
@@ -1466,7 +1466,7 @@ G.forEach(["delete", "get", "head", "options"], function(e) {
1466
1466
  G.forEach(["post", "put", "patch"], function(e) {
1467
1467
  function t(i) {
1468
1468
  return function(a, o, r) {
1469
- return this.request(qs(r || {}, {
1469
+ return this.request(Ys(r || {}, {
1470
1470
  method: e,
1471
1471
  headers: i ? {
1472
1472
  "Content-Type": "multipart/form-data"
@@ -1476,7 +1476,7 @@ G.forEach(["post", "put", "patch"], function(e) {
1476
1476
  }));
1477
1477
  };
1478
1478
  }
1479
- Hs.prototype[e] = t(), Hs.prototype[e + "Form"] = t(!0);
1479
+ Ks.prototype[e] = t(), Ks.prototype[e + "Form"] = t(!0);
1480
1480
  });
1481
1481
  class Zr {
1482
1482
  constructor(e) {
@@ -1622,13 +1622,13 @@ Object.entries(Uo).forEach(([s, e]) => {
1622
1622
  Uo[e] = s;
1623
1623
  });
1624
1624
  function om(s) {
1625
- const e = new Hs(s), t = Uh(Hs.prototype.request, e);
1626
- return G.extend(t, Hs.prototype, e, { allOwnKeys: !0 }), G.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(n) {
1627
- return om(qs(s, n));
1625
+ const e = new Ks(s), t = Uh(Ks.prototype.request, e);
1626
+ return G.extend(t, Ks.prototype, e, { allOwnKeys: !0 }), G.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(n) {
1627
+ return om(Ys(s, n));
1628
1628
  }, t;
1629
1629
  }
1630
1630
  const _e = om(Yi);
1631
- _e.Axios = Hs;
1631
+ _e.Axios = Ks;
1632
1632
  _e.CanceledError = gi;
1633
1633
  _e.CancelToken = Zr;
1634
1634
  _e.isCancel = $h;
@@ -1641,7 +1641,7 @@ _e.all = function(e) {
1641
1641
  };
1642
1642
  _e.spread = Q0;
1643
1643
  _e.isAxiosError = J0;
1644
- _e.mergeConfig = qs;
1644
+ _e.mergeConfig = Ys;
1645
1645
  _e.AxiosHeaders = Dt;
1646
1646
  _e.formToJSON = (s) => _h(G.isHTMLForm(s) ? new FormData(s) : s);
1647
1647
  _e.getAdapter = nm.getAdapter;
@@ -2451,10 +2451,10 @@ function ga(s, e, t) {
2451
2451
  if (H.endsWith(f, "{}"))
2452
2452
  f = i ? f : f.slice(0, -2), h = JSON.stringify(h);
2453
2453
  else if (H.isArray(h) && yv(h) || (H.isFileList(h) || H.endsWith(f, "[]")) && (p = H.toArray(h)))
2454
- return f = vm(f), p.forEach(function(A, C) {
2454
+ return f = vm(f), p.forEach(function(A, S) {
2455
2455
  !(H.isUndefined(A) || A === null) && e.append(
2456
2456
  // eslint-disable-next-line no-nested-ternary
2457
- o === !0 ? Ic([f], C, a) : o === null ? f : f + "[]",
2457
+ o === !0 ? Ic([f], S, a) : o === null ? f : f + "[]",
2458
2458
  c(A)
2459
2459
  );
2460
2460
  }), !1;
@@ -3056,7 +3056,7 @@ function xm(s, e) {
3056
3056
  return s && !Kv(e) ? qv(s, e) : e;
3057
3057
  }
3058
3058
  const Pc = (s) => s instanceof $t ? { ...s } : s;
3059
- function Ys(s, e) {
3059
+ function Zs(s, e) {
3060
3060
  e = e || {};
3061
3061
  const t = {};
3062
3062
  function i(l, d, u) {
@@ -3123,7 +3123,7 @@ function Ys(s, e) {
3123
3123
  }), t;
3124
3124
  }
3125
3125
  const Em = (s) => {
3126
- const e = Ys({}, s);
3126
+ const e = Zs({}, s);
3127
3127
  let { data: t, withXSRFToken: i, xsrfHeaderName: n, xsrfCookieName: a, headers: o, auth: r } = e;
3128
3128
  e.headers = o = $t.from(o), e.url = Am(xm(e.baseURL, e.url), s.params, s.paramsSerializer), r && o.set(
3129
3129
  "Authorization",
@@ -3319,16 +3319,16 @@ const $v = async (s) => {
3319
3319
  h && h.unsubscribe();
3320
3320
  }), g = !0;
3321
3321
  };
3322
- let C;
3322
+ let S;
3323
3323
  try {
3324
- if (c && _v && t !== "get" && t !== "head" && (C = await e1(d, i)) !== 0) {
3324
+ if (c && _v && t !== "get" && t !== "head" && (S = await e1(d, i)) !== 0) {
3325
3325
  let F = new Request(e, {
3326
3326
  method: "POST",
3327
3327
  body: i,
3328
3328
  duplex: "half"
3329
3329
  }), O;
3330
3330
  H.isFormData(i) && (O = F.headers.get("content-type")) && d.setContentType(O), F.body && (i = Bc(F.body, Nc, Dc(
3331
- C,
3331
+ S,
3332
3332
  Nn(c)
3333
3333
  ), null, Go));
3334
3334
  }
@@ -3341,16 +3341,16 @@ const $v = async (s) => {
3341
3341
  duplex: "half",
3342
3342
  withCredentials: u
3343
3343
  });
3344
- let S = await fetch(p);
3344
+ let C = await fetch(p);
3345
3345
  const I = Ho && (l === "stream" || l === "response");
3346
3346
  if (Ho && (r || I)) {
3347
3347
  const F = {};
3348
3348
  ["status", "statusText", "headers"].forEach((j) => {
3349
- F[j] = S[j];
3349
+ F[j] = C[j];
3350
3350
  });
3351
- const O = H.toFiniteNumber(S.headers.get("content-length"));
3352
- S = new Response(
3353
- Bc(S.body, Nc, r && Dc(
3351
+ const O = H.toFiniteNumber(C.headers.get("content-length"));
3352
+ C = new Response(
3353
+ Bc(C.body, Nc, r && Dc(
3354
3354
  O,
3355
3355
  Nn(r, !0)
3356
3356
  ), I && A, Go),
@@ -3358,24 +3358,24 @@ const $v = async (s) => {
3358
3358
  );
3359
3359
  }
3360
3360
  l = l || "text";
3361
- let E = await Un[H.findKey(Un, l) || "text"](S, s);
3361
+ let E = await Un[H.findKey(Un, l) || "text"](C, s);
3362
3362
  return !I && A(), f && f(), await new Promise((F, O) => {
3363
3363
  Tm(F, O, {
3364
3364
  data: E,
3365
- headers: $t.from(S.headers),
3366
- status: S.status,
3367
- statusText: S.statusText,
3365
+ headers: $t.from(C.headers),
3366
+ status: C.status,
3367
+ statusText: C.statusText,
3368
3368
  config: s,
3369
3369
  request: p
3370
3370
  });
3371
3371
  });
3372
- } catch (S) {
3373
- throw A(), S && S.name === "TypeError" && /fetch/i.test(S.message) ? Object.assign(
3372
+ } catch (C) {
3373
+ throw A(), C && C.name === "TypeError" && /fetch/i.test(C.message) ? Object.assign(
3374
3374
  new Me("Network Error", Me.ERR_NETWORK, s, p),
3375
3375
  {
3376
- cause: S.cause || S
3376
+ cause: C.cause || C
3377
3377
  }
3378
- ) : Me.from(S, S && S.code, s, p);
3378
+ ) : Me.from(C, C && C.code, s, p);
3379
3379
  }
3380
3380
  }), Ko = {
3381
3381
  http: pv,
@@ -3523,7 +3523,7 @@ let zn = class {
3523
3523
  }
3524
3524
  }
3525
3525
  _request(e, t) {
3526
- typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Ys(this.defaults, t);
3526
+ typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Zs(this.defaults, t);
3527
3527
  const { transitional: i, paramsSerializer: n, headers: a } = t;
3528
3528
  i !== void 0 && qo.assertOptions(i, {
3529
3529
  silentJSONParsing: Rs.transitional(Rs.boolean),
@@ -3582,14 +3582,14 @@ let zn = class {
3582
3582
  return d;
3583
3583
  }
3584
3584
  getUri(e) {
3585
- e = Ys(this.defaults, e);
3585
+ e = Zs(this.defaults, e);
3586
3586
  const t = xm(e.baseURL, e.url);
3587
3587
  return Am(t, e.params, e.paramsSerializer);
3588
3588
  }
3589
3589
  };
3590
3590
  H.forEach(["delete", "get", "head", "options"], function(s) {
3591
3591
  zn.prototype[s] = function(e, t) {
3592
- return this.request(Ys(t || {}, {
3592
+ return this.request(Zs(t || {}, {
3593
3593
  method: s,
3594
3594
  url: e,
3595
3595
  data: (t || {}).data
@@ -3599,7 +3599,7 @@ H.forEach(["delete", "get", "head", "options"], function(s) {
3599
3599
  H.forEach(["post", "put", "patch"], function(s) {
3600
3600
  function e(t) {
3601
3601
  return function(i, n, a) {
3602
- return this.request(Ys(a || {}, {
3602
+ return this.request(Zs(a || {}, {
3603
3603
  method: s,
3604
3604
  headers: t ? {
3605
3605
  "Content-Type": "multipart/form-data"
@@ -3761,7 +3761,7 @@ const l1 = Yo;
3761
3761
  function Fm(s) {
3762
3762
  const e = new yn(s), t = lm(yn.prototype.request, e);
3763
3763
  return H.extend(t, yn.prototype, e, { allOwnKeys: !0 }), H.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(i) {
3764
- return Fm(Ys(s, i));
3764
+ return Fm(Zs(s, i));
3765
3765
  }, t;
3766
3766
  }
3767
3767
  const at = Fm($r);
@@ -3778,7 +3778,7 @@ at.all = function(s) {
3778
3778
  };
3779
3779
  at.spread = o1;
3780
3780
  at.isAxiosError = r1;
3781
- at.mergeConfig = Ys;
3781
+ at.mergeConfig = Zs;
3782
3782
  at.AxiosHeaders = $t;
3783
3783
  at.formToJSON = (s) => Sm(H.isHTMLForm(s) ? new FormData(s) : s);
3784
3784
  at.getAdapter = Rm.getAdapter;
@@ -4842,9 +4842,9 @@ var db = Lt({
4842
4842
  const a = L(null), o = L([]), r = L(0), c = L(0), l = Ke(Object.assign({}, xt));
4843
4843
  let d = Object.assign({}, xt), u;
4844
4844
  const m = L((n = s.modelValue) !== null && n !== void 0 ? n : 0), h = L(0), f = L(0), g = L(0), p = L(0);
4845
- let A, C;
4845
+ let A, S;
4846
4846
  Oe("config", l), Oe("slidesCount", c), Oe("currentSlide", m), Oe("maxSlide", g), Oe("minSlide", p), Oe("slideWidth", r);
4847
- function S() {
4847
+ function C() {
4848
4848
  u = Object.assign({}, s.breakpoints), d = Object.assign(Object.assign(Object.assign({}, d), s), { i18n: Object.assign(Object.assign({}, d.i18n), s.i18n), breakpoints: void 0 }), E(d);
4849
4849
  }
4850
4850
  function I() {
@@ -4879,7 +4879,7 @@ var db = Lt({
4879
4879
  st(() => {
4880
4880
  Hi(() => O()), setTimeout(() => O(), 1e3), I(), ne(), window.addEventListener("resize", F, { passive: !0 }), t("init");
4881
4881
  }), Kt(() => {
4882
- C && clearTimeout(C), A && clearInterval(A), window.removeEventListener("resize", F, {
4882
+ S && clearTimeout(S), A && clearInterval(A), window.removeEventListener("resize", F, {
4883
4883
  passive: !0
4884
4884
  });
4885
4885
  });
@@ -4927,7 +4927,7 @@ var db = Lt({
4927
4927
  currentSlideIndex: m.value,
4928
4928
  prevSlideIndex: h.value,
4929
4929
  slidesCount: c.value
4930
- }), V.value = !0, h.value = m.value, m.value = se, C = setTimeout(() => {
4930
+ }), V.value = !0, h.value = m.value, m.value = se, S = setTimeout(() => {
4931
4931
  if (l.wrapAround) {
4932
4932
  const _ = Wo({
4933
4933
  val: se,
@@ -4970,13 +4970,13 @@ var db = Lt({
4970
4970
  };
4971
4971
  });
4972
4972
  function je() {
4973
- S(), I(), j(), O(), Q();
4973
+ C(), I(), j(), O(), Q();
4974
4974
  }
4975
4975
  Object.keys(Wc).forEach((k) => {
4976
4976
  ["modelValue"].includes(k) || be(() => s[k], je);
4977
4977
  }), be(() => s.modelValue, (k) => {
4978
4978
  k !== m.value && Y(Number(k));
4979
- }), be(c, j), t("before-init"), S();
4979
+ }), be(c, j), t("before-init"), C();
4980
4980
  const $e = {
4981
4981
  config: l,
4982
4982
  slidesCount: c,
@@ -4993,7 +4993,7 @@ var db = Lt({
4993
4993
  updateBreakpointsConfigs: I,
4994
4994
  updateSlidesData: j,
4995
4995
  updateSlideWidth: O,
4996
- initDefaultConfigs: S,
4996
+ initDefaultConfigs: C,
4997
4997
  restartCarousel: je,
4998
4998
  slideTo: Y,
4999
4999
  next: X,
@@ -5297,7 +5297,7 @@ const mb = (s, e) => {
5297
5297
  onSlideStart: f
5298
5298
  }, {
5299
5299
  default: Ue(() => [
5300
- (y(!0), b(W, null, Ae(s.items, (A, C) => (y(), re(ke(hb), { key: C }, {
5300
+ (y(!0), b(W, null, Ae(s.items, (A, S) => (y(), re(ke(hb), { key: S }, {
5301
5301
  default: Ue(() => [
5302
5302
  Ot(g.$slots, "default", { item: A }, void 0, !0)
5303
5303
  ]),
@@ -5359,17 +5359,17 @@ const mb = (s, e) => {
5359
5359
  ]))
5360
5360
  ])) : x("", !0),
5361
5361
  s.isPaginationVisible ? (y(), b("div", kb, [
5362
- (y(!0), b(W, null, Ae(s.items, (A, C) => (y(), b("div", {
5363
- key: `i-${C}`,
5362
+ (y(!0), b(W, null, Ae(s.items, (A, S) => (y(), b("div", {
5363
+ key: `i-${S}`,
5364
5364
  class: "gsc-carousel__2d__navigation__pagination__item",
5365
5365
  style: z({
5366
5366
  height: `${i.navigationHeight}px`,
5367
- width: `${o.value === C ? i.navigationActiveWidth : i.navigationActiveWidth / 2}px`,
5367
+ width: `${o.value === S ? i.navigationActiveWidth : i.navigationActiveWidth / 2}px`,
5368
5368
  borderRadius: `${i.navigationBorderRadius}px`,
5369
- backgroundColor: `${o.value === C ? i.navigationActiveColor : i.navigationColor}`,
5369
+ backgroundColor: `${o.value === S ? i.navigationActiveColor : i.navigationColor}`,
5370
5370
  transition: "all 0.1s ease-in-out"
5371
5371
  }),
5372
- onClick: (S) => h(C)
5372
+ onClick: (C) => h(S)
5373
5373
  }, null, 12, Rb))), 128))
5374
5374
  ])) : x("", !0),
5375
5375
  s.areNavigationArrowsVisible ? (y(), b("div", {
@@ -8185,10 +8185,10 @@ function wa(s, e, t) {
8185
8185
  if (K.endsWith(f, "{}"))
8186
8186
  f = i ? f : f.slice(0, -2), h = JSON.stringify(h);
8187
8187
  else if (K.isArray(h) && FS(h) || (K.isFileList(h) || K.endsWith(f, "[]")) && (p = K.toArray(h)))
8188
- return f = Ym(f), p.forEach(function(A, C) {
8188
+ return f = Ym(f), p.forEach(function(A, S) {
8189
8189
  !(K.isUndefined(A) || A === null) && e.append(
8190
8190
  // eslint-disable-next-line no-nested-ternary
8191
- o === !0 ? dd([f], C, a) : o === null ? f : f + "[]",
8191
+ o === !0 ? dd([f], S, a) : o === null ? f : f + "[]",
8192
8192
  c(A)
8193
8193
  );
8194
8194
  }), !1;
@@ -8790,7 +8790,7 @@ function $m(s, e) {
8790
8790
  return s && !n2(e) ? a2(s, e) : e;
8791
8791
  }
8792
8792
  const fd = (s) => s instanceof ts ? { ...s } : s;
8793
- function Zs(s, e) {
8793
+ function Ws(s, e) {
8794
8794
  e = e || {};
8795
8795
  const t = {};
8796
8796
  function i(l, d, u) {
@@ -8857,7 +8857,7 @@ function Zs(s, e) {
8857
8857
  }), t;
8858
8858
  }
8859
8859
  const ef = (s) => {
8860
- const e = Zs({}, s);
8860
+ const e = Ws({}, s);
8861
8861
  let { data: t, withXSRFToken: i, xsrfHeaderName: n, xsrfCookieName: a, headers: o, auth: r } = e;
8862
8862
  e.headers = o = ts.from(o), e.url = Wm($m(e.baseURL, e.url), s.params, s.paramsSerializer), r && o.set(
8863
8863
  "Authorization",
@@ -9053,16 +9053,16 @@ const m2 = async (s) => {
9053
9053
  h && h.unsubscribe();
9054
9054
  }), g = !0;
9055
9055
  };
9056
- let C;
9056
+ let S;
9057
9057
  try {
9058
- if (c && h2 && t !== "get" && t !== "head" && (C = await f2(d, i)) !== 0) {
9058
+ if (c && h2 && t !== "get" && t !== "head" && (S = await f2(d, i)) !== 0) {
9059
9059
  let F = new Request(e, {
9060
9060
  method: "POST",
9061
9061
  body: i,
9062
9062
  duplex: "half"
9063
9063
  }), O;
9064
9064
  K.isFormData(i) && (O = F.headers.get("content-type")) && d.setContentType(O), F.body && (i = gd(F.body, yd, pd(
9065
- C,
9065
+ S,
9066
9066
  Vn(c)
9067
9067
  ), null, Xo));
9068
9068
  }
@@ -9075,16 +9075,16 @@ const m2 = async (s) => {
9075
9075
  duplex: "half",
9076
9076
  withCredentials: u
9077
9077
  });
9078
- let S = await fetch(p);
9078
+ let C = await fetch(p);
9079
9079
  const I = _o && (l === "stream" || l === "response");
9080
9080
  if (_o && (r || I)) {
9081
9081
  const F = {};
9082
9082
  ["status", "statusText", "headers"].forEach((j) => {
9083
- F[j] = S[j];
9083
+ F[j] = C[j];
9084
9084
  });
9085
- const O = K.toFiniteNumber(S.headers.get("content-length"));
9086
- S = new Response(
9087
- gd(S.body, yd, r && pd(
9085
+ const O = K.toFiniteNumber(C.headers.get("content-length"));
9086
+ C = new Response(
9087
+ gd(C.body, yd, r && pd(
9088
9088
  O,
9089
9089
  Vn(r, !0)
9090
9090
  ), I && A, Xo),
@@ -9092,24 +9092,24 @@ const m2 = async (s) => {
9092
9092
  );
9093
9093
  }
9094
9094
  l = l || "text";
9095
- let E = await jn[K.findKey(jn, l) || "text"](S, s);
9095
+ let E = await jn[K.findKey(jn, l) || "text"](C, s);
9096
9096
  return !I && A(), f && f(), await new Promise((F, O) => {
9097
9097
  _m(F, O, {
9098
9098
  data: E,
9099
- headers: ts.from(S.headers),
9100
- status: S.status,
9101
- statusText: S.statusText,
9099
+ headers: ts.from(C.headers),
9100
+ status: C.status,
9101
+ statusText: C.statusText,
9102
9102
  config: s,
9103
9103
  request: p
9104
9104
  });
9105
9105
  });
9106
- } catch (S) {
9107
- throw A(), S && S.name === "TypeError" && /fetch/i.test(S.message) ? Object.assign(
9106
+ } catch (C) {
9107
+ throw A(), C && C.name === "TypeError" && /fetch/i.test(C.message) ? Object.assign(
9108
9108
  new Pe("Network Error", Pe.ERR_NETWORK, s, p),
9109
9109
  {
9110
- cause: S.cause || S
9110
+ cause: C.cause || C
9111
9111
  }
9112
- ) : Pe.from(S, S && S.code, s, p);
9112
+ ) : Pe.from(C, C && C.code, s, p);
9113
9113
  }
9114
9114
  }), $o = {
9115
9115
  http: IS,
@@ -9257,7 +9257,7 @@ let Gn = class {
9257
9257
  }
9258
9258
  }
9259
9259
  _request(e, t) {
9260
- typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Zs(this.defaults, t);
9260
+ typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Ws(this.defaults, t);
9261
9261
  const { transitional: i, paramsSerializer: n, headers: a } = t;
9262
9262
  i !== void 0 && er.assertOptions(i, {
9263
9263
  silentJSONParsing: Os.transitional(Os.boolean),
@@ -9316,14 +9316,14 @@ let Gn = class {
9316
9316
  return d;
9317
9317
  }
9318
9318
  getUri(e) {
9319
- e = Zs(this.defaults, e);
9319
+ e = Ws(this.defaults, e);
9320
9320
  const t = $m(e.baseURL, e.url);
9321
9321
  return Wm(t, e.params, e.paramsSerializer);
9322
9322
  }
9323
9323
  };
9324
9324
  K.forEach(["delete", "get", "head", "options"], function(s) {
9325
9325
  Gn.prototype[s] = function(e, t) {
9326
- return this.request(Zs(t || {}, {
9326
+ return this.request(Ws(t || {}, {
9327
9327
  method: s,
9328
9328
  url: e,
9329
9329
  data: (t || {}).data
@@ -9333,7 +9333,7 @@ K.forEach(["delete", "get", "head", "options"], function(s) {
9333
9333
  K.forEach(["post", "put", "patch"], function(s) {
9334
9334
  function e(t) {
9335
9335
  return function(i, n, a) {
9336
- return this.request(Zs(a || {}, {
9336
+ return this.request(Ws(a || {}, {
9337
9337
  method: s,
9338
9338
  headers: t ? {
9339
9339
  "Content-Type": "multipart/form-data"
@@ -9495,7 +9495,7 @@ const S2 = tr;
9495
9495
  function of(s) {
9496
9496
  const e = new An(s), t = Dm(An.prototype.request, e);
9497
9497
  return K.extend(t, An.prototype, e, { allOwnKeys: !0 }), K.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(i) {
9498
- return of(Zs(s, i));
9498
+ return of(Ws(s, i));
9499
9499
  }, t;
9500
9500
  }
9501
9501
  const ot = of(pl);
@@ -9512,7 +9512,7 @@ ot.all = function(s) {
9512
9512
  };
9513
9513
  ot.spread = A2;
9514
9514
  ot.isAxiosError = w2;
9515
- ot.mergeConfig = Zs;
9515
+ ot.mergeConfig = Ws;
9516
9516
  ot.AxiosHeaders = ts;
9517
9517
  ot.formToJSON = (s) => Jm(K.isHTMLForm(s) ? new FormData(s) : s);
9518
9518
  ot.getAdapter = sf.getAdapter;
@@ -9754,9 +9754,9 @@ var O2 = Lt({
9754
9754
  const a = L(null), o = L([]), r = L(0), c = L(0), l = Ke(Object.assign({}, Et));
9755
9755
  let d = Object.assign({}, Et), u;
9756
9756
  const m = L((n = s.modelValue) !== null && n !== void 0 ? n : 0), h = L(0), f = L(0), g = L(0), p = L(0);
9757
- let A, C;
9757
+ let A, S;
9758
9758
  Oe("config", l), Oe("slidesCount", c), Oe("currentSlide", m), Oe("maxSlide", g), Oe("minSlide", p), Oe("slideWidth", r);
9759
- function S() {
9759
+ function C() {
9760
9760
  u = Object.assign({}, s.breakpoints), d = Object.assign(Object.assign(Object.assign({}, d), s), { i18n: Object.assign(Object.assign({}, d.i18n), s.i18n), breakpoints: void 0 }), E(d);
9761
9761
  }
9762
9762
  function I() {
@@ -9791,7 +9791,7 @@ var O2 = Lt({
9791
9791
  st(() => {
9792
9792
  Hi(() => O()), setTimeout(() => O(), 1e3), I(), ne(), window.addEventListener("resize", F, { passive: !0 }), t("init");
9793
9793
  }), Kt(() => {
9794
- C && clearTimeout(C), A && clearInterval(A), window.removeEventListener("resize", F, {
9794
+ S && clearTimeout(S), A && clearInterval(A), window.removeEventListener("resize", F, {
9795
9795
  passive: !0
9796
9796
  });
9797
9797
  });
@@ -9839,7 +9839,7 @@ var O2 = Lt({
9839
9839
  currentSlideIndex: m.value,
9840
9840
  prevSlideIndex: h.value,
9841
9841
  slidesCount: c.value
9842
- }), V.value = !0, h.value = m.value, m.value = se, C = setTimeout(() => {
9842
+ }), V.value = !0, h.value = m.value, m.value = se, S = setTimeout(() => {
9843
9843
  if (l.wrapAround) {
9844
9844
  const _ = ir({
9845
9845
  val: se,
@@ -9882,13 +9882,13 @@ var O2 = Lt({
9882
9882
  };
9883
9883
  });
9884
9884
  function je() {
9885
- S(), I(), j(), O(), Q();
9885
+ C(), I(), j(), O(), Q();
9886
9886
  }
9887
9887
  Object.keys(Sd).forEach((k) => {
9888
9888
  ["modelValue"].includes(k) || be(() => s[k], je);
9889
9889
  }), be(() => s.modelValue, (k) => {
9890
9890
  k !== m.value && Y(Number(k));
9891
- }), be(c, j), t("before-init"), S();
9891
+ }), be(c, j), t("before-init"), C();
9892
9892
  const $e = {
9893
9893
  config: l,
9894
9894
  slidesCount: c,
@@ -9905,7 +9905,7 @@ var O2 = Lt({
9905
9905
  updateBreakpointsConfigs: I,
9906
9906
  updateSlidesData: j,
9907
9907
  updateSlideWidth: O,
9908
- initDefaultConfigs: S,
9908
+ initDefaultConfigs: C,
9909
9909
  restartCarousel: je,
9910
9910
  slideTo: Y,
9911
9911
  next: X,
@@ -10209,7 +10209,7 @@ const L2 = (s, e) => {
10209
10209
  onSlideStart: f
10210
10210
  }, {
10211
10211
  default: Ue(() => [
10212
- (y(!0), b(W, null, Ae(s.items, (A, C) => (y(), re(ke(F2), { key: C }, {
10212
+ (y(!0), b(W, null, Ae(s.items, (A, S) => (y(), re(ke(F2), { key: S }, {
10213
10213
  default: Ue(() => [
10214
10214
  Ot(g.$slots, "default", { item: A }, void 0, !0)
10215
10215
  ]),
@@ -10271,17 +10271,17 @@ const L2 = (s, e) => {
10271
10271
  ]))
10272
10272
  ])) : x("", !0),
10273
10273
  s.isPaginationVisible ? (y(), b("div", Y2, [
10274
- (y(!0), b(W, null, Ae(s.items, (A, C) => (y(), b("div", {
10275
- key: `i-${C}`,
10274
+ (y(!0), b(W, null, Ae(s.items, (A, S) => (y(), b("div", {
10275
+ key: `i-${S}`,
10276
10276
  class: "gsc-carousel__2d__navigation__pagination__item",
10277
10277
  style: z({
10278
10278
  height: `${i.navigationHeight}px`,
10279
- width: `${o.value === C ? i.navigationActiveWidth : i.navigationActiveWidth / 2}px`,
10279
+ width: `${o.value === S ? i.navigationActiveWidth : i.navigationActiveWidth / 2}px`,
10280
10280
  borderRadius: `${i.navigationBorderRadius}px`,
10281
- backgroundColor: `${o.value === C ? i.navigationActiveColor : i.navigationColor}`,
10281
+ backgroundColor: `${o.value === S ? i.navigationActiveColor : i.navigationColor}`,
10282
10282
  transition: "all 0.1s ease-in-out"
10283
10283
  }),
10284
- onClick: (S) => h(C)
10284
+ onClick: (C) => h(S)
10285
10285
  }, null, 12, Z2))), 128))
10286
10286
  ])) : x("", !0),
10287
10287
  s.areNavigationArrowsVisible ? (y(), b("div", {
@@ -10581,9 +10581,9 @@ var cC = Lt({
10581
10581
  const a = L(null), o = L([]), r = L(0), c = L(0), l = Ke(Object.assign({}, mt));
10582
10582
  let d = Object.assign({}, mt), u;
10583
10583
  const m = L((n = s.modelValue) !== null && n !== void 0 ? n : 0), h = L(0), f = L(0), g = L(0), p = L(0);
10584
- let A, C;
10584
+ let A, S;
10585
10585
  Oe("config", l), Oe("slidesCount", c), Oe("currentSlide", m), Oe("maxSlide", g), Oe("minSlide", p), Oe("slideWidth", r);
10586
- function S() {
10586
+ function C() {
10587
10587
  u = Object.assign({}, s.breakpoints), d = Object.assign(Object.assign(Object.assign({}, d), s), { i18n: Object.assign(Object.assign({}, d.i18n), s.i18n), breakpoints: void 0 }), E(d);
10588
10588
  }
10589
10589
  function I() {
@@ -10618,7 +10618,7 @@ var cC = Lt({
10618
10618
  st(() => {
10619
10619
  Hi(() => O()), setTimeout(() => O(), 1e3), I(), ne(), window.addEventListener("resize", F, { passive: !0 }), t("init");
10620
10620
  }), Kt(() => {
10621
- C && clearTimeout(C), A && clearInterval(A), window.removeEventListener("resize", F, {
10621
+ S && clearTimeout(S), A && clearInterval(A), window.removeEventListener("resize", F, {
10622
10622
  passive: !0
10623
10623
  });
10624
10624
  });
@@ -10666,7 +10666,7 @@ var cC = Lt({
10666
10666
  currentSlideIndex: m.value,
10667
10667
  prevSlideIndex: h.value,
10668
10668
  slidesCount: c.value
10669
- }), V.value = !0, h.value = m.value, m.value = se, C = setTimeout(() => {
10669
+ }), V.value = !0, h.value = m.value, m.value = se, S = setTimeout(() => {
10670
10670
  if (l.wrapAround) {
10671
10671
  const _ = ar({
10672
10672
  val: se,
@@ -10709,13 +10709,13 @@ var cC = Lt({
10709
10709
  };
10710
10710
  });
10711
10711
  function je() {
10712
- S(), I(), j(), O(), Q();
10712
+ C(), I(), j(), O(), Q();
10713
10713
  }
10714
10714
  Object.keys(Td).forEach((k) => {
10715
10715
  ["modelValue"].includes(k) || be(() => s[k], je);
10716
10716
  }), be(() => s.modelValue, (k) => {
10717
10717
  k !== m.value && Y(Number(k));
10718
- }), be(c, j), t("before-init"), S();
10718
+ }), be(c, j), t("before-init"), C();
10719
10719
  const $e = {
10720
10720
  config: l,
10721
10721
  slidesCount: c,
@@ -10732,7 +10732,7 @@ var cC = Lt({
10732
10732
  updateBreakpointsConfigs: I,
10733
10733
  updateSlidesData: j,
10734
10734
  updateSlideWidth: O,
10735
- initDefaultConfigs: S,
10735
+ initDefaultConfigs: C,
10736
10736
  restartCarousel: je,
10737
10737
  slideTo: Y,
10738
10738
  next: X,
@@ -11827,9 +11827,9 @@ const AC = { class: "game-info__teams" }, wC = { class: "game-info__teams__team_
11827
11827
  }
11828
11828
  );
11829
11829
  function f(p, A) {
11830
- return p.map((C) => ({
11830
+ return p.map((S) => ({
11831
11831
  iconUrl: A,
11832
- text: C
11832
+ text: S
11833
11833
  }));
11834
11834
  }
11835
11835
  function g(p) {
@@ -11923,24 +11923,24 @@ const AC = { class: "game-info__teams" }, wC = { class: "game-info__teams__team_
11923
11923
  AT,
11924
11924
  v("div", wT, [
11925
11925
  v("div", ST, [
11926
- (y(!0), b(W, null, Ae(o.value.homeTeam, (C, S) => (y(), b("div", {
11927
- key: `h${S}`,
11926
+ (y(!0), b(W, null, Ae(o.value.homeTeam, (S, C) => (y(), b("div", {
11927
+ key: `h${C}`,
11928
11928
  class: "game-events__data__team__event"
11929
11929
  }, [
11930
11930
  v("img", {
11931
- src: C.iconUrl
11931
+ src: S.iconUrl
11932
11932
  }, null, 8, CT),
11933
- v("div", TT, M(C.text), 1)
11933
+ v("div", TT, M(S.text), 1)
11934
11934
  ]))), 128))
11935
11935
  ]),
11936
11936
  v("div", xT, [
11937
- (y(!0), b(W, null, Ae(o.value.awayTeam, (C, S) => (y(), b("div", {
11938
- key: `a${S}`,
11937
+ (y(!0), b(W, null, Ae(o.value.awayTeam, (S, C) => (y(), b("div", {
11938
+ key: `a${C}`,
11939
11939
  class: "game-events__data__team__event"
11940
11940
  }, [
11941
- v("div", ET, M(C.text), 1),
11941
+ v("div", ET, M(S.text), 1),
11942
11942
  v("img", {
11943
- src: C.iconUrl
11943
+ src: S.iconUrl
11944
11944
  }, null, 8, kT)
11945
11945
  ]))), 128))
11946
11946
  ])
@@ -12850,8 +12850,8 @@ const AC = { class: "game-info__teams" }, wC = { class: "game-info__teams__team_
12850
12850
  Q[0].filter((V) => V.home_team.team_id === t.onlyGamesTeamId || V.visiting_team.team_id === t.onlyGamesTeamId)
12851
12851
  ] : Q || [];
12852
12852
  }
12853
- }), C = L([]), S = L([]), I = te(() => {
12854
- const Q = S.value && S.value.length ? O(a.value) : F(a.value), V = C.value.find((Y) => Y.key === Q);
12853
+ }), S = L([]), C = L([]), I = te(() => {
12854
+ const Q = C.value && C.value.length ? O(a.value) : F(a.value), V = S.value.find((Y) => Y.key === Q);
12855
12855
  return V && d.value && (E(!1), fe(V)), Q;
12856
12856
  });
12857
12857
  be(
@@ -12901,8 +12901,8 @@ const AC = { class: "game-info__teams" }, wC = { class: "game-info__teams__team_
12901
12901
  }
12902
12902
  function O(Q) {
12903
12903
  let V = 1;
12904
- if (S.value.length) {
12905
- const Y = S.value[0];
12904
+ if (C.value.length) {
12905
+ const Y = C.value[0];
12906
12906
  for (const [X, ee] of Object.entries(Q))
12907
12907
  for (const ae of ee)
12908
12908
  if (ae.games.find((de) => de.game_id === Y.game_id))
@@ -12967,7 +12967,7 @@ const AC = { class: "game-info__teams" }, wC = { class: "game-info__teams__team_
12967
12967
  function Z() {
12968
12968
  if (!m.value)
12969
12969
  return;
12970
- S.value = [];
12970
+ C.value = [];
12971
12971
  const Q = u.value && u.value.seasonsGames ? u.value.seasonsGames.map((V) => {
12972
12972
  const Y = V.games.reduce((X, ee) => {
12973
12973
  if (t.onlyGamesTeamId && t.onlyGamesTeamId !== ee.home_team && t.onlyGamesTeamId !== ee.visiting_team)
@@ -12979,7 +12979,7 @@ const AC = { class: "game-info__teams" }, wC = { class: "game-info__teams__team_
12979
12979
  (de) => de.team_id === ee.visiting_team
12980
12980
  ), t.teamId && ae.home_team.team_id !== t.teamId && ae.visiting_team.team_id !== t.teamId || (X[ee.matchday_abbreviation] ? X[ee.matchday_abbreviation][ee.game_status === 3 ? "canceled" : ee.date] ? X[ee.matchday_abbreviation][ee.game_status === 3 ? "canceled" : ee.date].push(ae) : X[ee.matchday_abbreviation][ee.game_status === 3 ? "canceled" : ee.date] = [ae] : X[ee.matchday_abbreviation] = {
12981
12981
  [ee.game_status === 3 ? "canceled" : ee.date]: [ae]
12982
- }, t.userTeamId && ae.game_status === 4 && (ae.home_team.team_id === t.userTeamId || ae.visiting_team.team_id === t.userTeamId) && S.value.push(ae)), X;
12982
+ }, t.userTeamId && ae.game_status === 4 && (ae.home_team.team_id === t.userTeamId || ae.visiting_team.team_id === t.userTeamId) && C.value.push(ae)), X;
12983
12983
  }, {});
12984
12984
  for (let [X, ee] of Object.entries(Y))
12985
12985
  Y[X] = Object.entries(ee).map(([ae, de]) => ({
@@ -13011,7 +13011,7 @@ const AC = { class: "game-info__teams" }, wC = { class: "game-info__teams__team_
13011
13011
  else
13012
13012
  Y.type === 2 ? X.charAt(1) == "I" ? V[`PI${Number(X.replace("PI", ""))}`] = ee : V[`R${Number(X.replace("PO", ""))}`] = ee : Y.type === 1 && (V[$2[X]] = ee);
13013
13013
  return V;
13014
- }, {}), l.value = /* @__PURE__ */ new Map(), C.value = Array.from(
13014
+ }, {}), l.value = /* @__PURE__ */ new Map(), S.value = Array.from(
13015
13015
  Object.entries(a.value).reduce((V, [Y, X], ee) => {
13016
13016
  const ae = Number(Y);
13017
13017
  let de = "";
@@ -13149,9 +13149,9 @@ const AC = { class: "game-info__teams" }, wC = { class: "game-info__teams__team_
13149
13149
  "is-round-mode": s.isRoundMode,
13150
13150
  onAction: we
13151
13151
  }, null, 8, ["full-tournament-schedule", "team-id", "show-videos", "row-height", "component-width", "games-pages", "is-pagination-visible", "is-round-mode"])) : (y(), b(W, { key: 1 }, [
13152
- s.areRoundsVisible && C.value ? (y(), re(vC, {
13152
+ s.areRoundsVisible && S.value ? (y(), re(vC, {
13153
13153
  key: 0,
13154
- "match-days": C.value,
13154
+ "match-days": S.value,
13155
13155
  "is-landing-mode": s.isLandingMode,
13156
13156
  height: "48px",
13157
13157
  "items-to-show": s.itemsToShow,
@@ -13572,7 +13572,7 @@ const Xx = /* @__PURE__ */ Ct(Kx, [["render", Jx], ["__scopeId", "data-v-1b1c62b
13572
13572
  ]),
13573
13573
  v("div", {
13574
13574
  class: R(["coming-match__button", { small: s.small }]),
13575
- onClick: n[0] || (n[0] = (C) => i.$emit("clickMatch"))
13575
+ onClick: n[0] || (n[0] = (S) => i.$emit("clickMatch"))
13576
13576
  }, [
13577
13577
  s.data.game_status === 4 ? (y(), b(W, { key: 0 }, [
13578
13578
  pe("Analizar previa →")
@@ -13583,7 +13583,7 @@ const Xx = /* @__PURE__ */ Ct(Kx, [["render", Jx], ["__scopeId", "data-v-1b1c62b
13583
13583
  ], 2);
13584
13584
  };
13585
13585
  }
13586
- }, Xs = /* @__PURE__ */ Ct(CE, [["__scopeId", "data-v-39eff678"]]), xa = (s) => (qe("data-v-db3ba75a"), s = s(), Ye(), s), TE = { class: "game-item__header" }, xE = { class: "game-item__header__info text-type-1" }, EE = {
13586
+ }, _s = /* @__PURE__ */ Ct(CE, [["__scopeId", "data-v-39eff678"]]), xa = (s) => (qe("data-v-db3ba75a"), s = s(), Ye(), s), TE = { class: "game-item__header" }, xE = { class: "game-item__header__info text-type-1" }, EE = {
13587
13587
  key: 0,
13588
13588
  class: "game-item__header__info__live"
13589
13589
  }, kE = /* @__PURE__ */ xa(() => /* @__PURE__ */ v("div", { class: "game-item__header__info__live__status text-type-2" }, [
@@ -13949,9 +13949,9 @@ var XE = Lt({
13949
13949
  const a = L(null), o = L([]), r = L(0), c = L(0), l = Ke(Object.assign({}, ft));
13950
13950
  let d = Object.assign({}, ft), u;
13951
13951
  const m = L((n = s.modelValue) !== null && n !== void 0 ? n : 0), h = L(0), f = L(0), g = L(0), p = L(0);
13952
- let A, C;
13952
+ let A, S;
13953
13953
  Oe("config", l), Oe("slidesCount", c), Oe("currentSlide", m), Oe("maxSlide", g), Oe("minSlide", p), Oe("slideWidth", r);
13954
- function S() {
13954
+ function C() {
13955
13955
  u = Object.assign({}, s.breakpoints), d = Object.assign(Object.assign(Object.assign({}, d), s), { i18n: Object.assign(Object.assign({}, d.i18n), s.i18n), breakpoints: void 0 }), E(d);
13956
13956
  }
13957
13957
  function I() {
@@ -13986,7 +13986,7 @@ var XE = Lt({
13986
13986
  st(() => {
13987
13987
  Hi(() => O()), setTimeout(() => O(), 1e3), I(), ne(), window.addEventListener("resize", F, { passive: !0 }), t("init");
13988
13988
  }), Kt(() => {
13989
- C && clearTimeout(C), A && clearInterval(A), window.removeEventListener("resize", F, {
13989
+ S && clearTimeout(S), A && clearInterval(A), window.removeEventListener("resize", F, {
13990
13990
  passive: !0
13991
13991
  });
13992
13992
  });
@@ -14034,7 +14034,7 @@ var XE = Lt({
14034
14034
  currentSlideIndex: m.value,
14035
14035
  prevSlideIndex: h.value,
14036
14036
  slidesCount: c.value
14037
- }), V.value = !0, h.value = m.value, m.value = se, C = setTimeout(() => {
14037
+ }), V.value = !0, h.value = m.value, m.value = se, S = setTimeout(() => {
14038
14038
  if (l.wrapAround) {
14039
14039
  const _ = cr({
14040
14040
  val: se,
@@ -14077,13 +14077,13 @@ var XE = Lt({
14077
14077
  };
14078
14078
  });
14079
14079
  function je() {
14080
- S(), I(), j(), O(), Q();
14080
+ C(), I(), j(), O(), Q();
14081
14081
  }
14082
14082
  Object.keys(Rd).forEach((k) => {
14083
14083
  ["modelValue"].includes(k) || be(() => s[k], je);
14084
14084
  }), be(() => s.modelValue, (k) => {
14085
14085
  k !== m.value && Y(Number(k));
14086
- }), be(c, j), t("before-init"), S();
14086
+ }), be(c, j), t("before-init"), C();
14087
14087
  const $e = {
14088
14088
  config: l,
14089
14089
  slidesCount: c,
@@ -14100,7 +14100,7 @@ var XE = Lt({
14100
14100
  updateBreakpointsConfigs: I,
14101
14101
  updateSlidesData: j,
14102
14102
  updateSlideWidth: O,
14103
- initDefaultConfigs: S,
14103
+ initDefaultConfigs: C,
14104
14104
  restartCarousel: je,
14105
14105
  slideTo: Y,
14106
14106
  next: X,
@@ -14417,8 +14417,8 @@ const i5 = {
14417
14417
  setup(s, { emit: e }) {
14418
14418
  const t = s;
14419
14419
  Je((d) => ({
14420
- ad0c95da: o.value,
14421
- ad0ec45a: r.value
14420
+ "479d5848": o.value,
14421
+ "479c4108": r.value
14422
14422
  }));
14423
14423
  const i = L(null), n = L(-1), a = te(() => ({
14424
14424
  itemsToShow: t.itemsToShow,
@@ -14450,8 +14450,9 @@ const i5 = {
14450
14450
  () => t.defaultMatchDayKey,
14451
14451
  (d) => {
14452
14452
  if (d) {
14453
- const u = t.matchDays.find((m) => m.key === d);
14454
- u && (c.value = u);
14453
+ let u = -1;
14454
+ const m = t.matchDays.find((h, f) => h.key === d ? (u = f, !0) : !1);
14455
+ m && (c.value = m), u > -1 && i.value && i.value.slideTo(u);
14455
14456
  }
14456
14457
  }
14457
14458
  );
@@ -14495,7 +14496,7 @@ const i5 = {
14495
14496
  }, 16, ["modelValue"]))
14496
14497
  ], 4));
14497
14498
  }
14498
- }, pf = /* @__PURE__ */ Ct(a5, [["__scopeId", "data-v-514e03fb"]]), Es = (s) => (qe("data-v-b9d1d799"), s = s(), Ye(), s), o5 = { class: "quadrant-matches" }, r5 = { class: "quadrant-matches__header" }, l5 = { class: "title-and-switch" }, c5 = { class: "quadrant-matches__title" }, d5 = /* @__PURE__ */ Es(() => /* @__PURE__ */ v("span", null, " →", -1)), u5 = {
14499
+ }, pf = /* @__PURE__ */ Ct(a5, [["__scopeId", "data-v-3e7e3e49"]]), Es = (s) => (qe("data-v-d162f6fe"), s = s(), Ye(), s), o5 = { class: "quadrant-matches" }, r5 = { class: "quadrant-matches__header" }, l5 = { class: "title-and-switch" }, c5 = { class: "quadrant-matches__title" }, d5 = /* @__PURE__ */ Es(() => /* @__PURE__ */ v("span", null, " →", -1)), u5 = {
14499
14500
  key: 0,
14500
14501
  class: "quadrant-matches__header__games-type"
14501
14502
  }, h5 = /* @__PURE__ */ Es(() => /* @__PURE__ */ v("div", { class: "quadrant-matches__header__my-team" }, "Mi equipo", -1)), m5 = { class: "quadrant-matches__header__games-type__logo" }, f5 = ["src"], g5 = { class: "quadrant-matches__header__games-type__switch" }, p5 = { class: "quadrant-matches__header__games-type__logo" }, y5 = ["src"], v5 = {
@@ -14599,9 +14600,7 @@ const i5 = {
14599
14600
  },
14600
14601
  emits: ["change-match-day", "change-is-league-selected", "click-live"],
14601
14602
  setup(s, { emit: e }) {
14602
- const t = s, i = L(!1);
14603
- te(() => t.comingMatches[0] || {}), te(() => t.previousMatches[0] || {});
14604
- const n = Cp(t, "componentWidth"), a = te(() => n.value < 768);
14603
+ const t = s, i = L(!1), n = Cp(t, "componentWidth"), a = te(() => n.value < 768);
14605
14604
  be(i, (l) => {
14606
14605
  e("change-is-league-selected", l);
14607
14606
  }), be(
@@ -14699,7 +14698,7 @@ const i5 = {
14699
14698
  }, {
14700
14699
  default: Ue(() => [
14701
14700
  v("div", I5, [
14702
- ge(Xs, {
14701
+ ge(_s, {
14703
14702
  small: "",
14704
14703
  data: s.data.data.prematch,
14705
14704
  onClickMatch: d[6] || (d[6] = (u) => l.$emit("clickMatch", s.data.data.prematch))
@@ -14722,7 +14721,7 @@ const i5 = {
14722
14721
  v("div", {
14723
14722
  class: "quadrant-matches__view-more__button",
14724
14723
  onClick: d[10] || (d[10] = (u) => l.$emit("clickCalendar"))
14725
- }, "Ver más")
14724
+ }, " Ver más ")
14726
14725
  ])
14727
14726
  ])
14728
14727
  ]),
@@ -14730,7 +14729,7 @@ const i5 = {
14730
14729
  })) : x("", !0)
14731
14730
  ], 64)) : (y(), b(W, { key: 0 }, [
14732
14731
  Object.keys(s.data).length > 0 ? (y(), b("div", E5, [
14733
- ge(Xs, {
14732
+ ge(_s, {
14734
14733
  data: s.data.data.prematch,
14735
14734
  onClickMatch: d[1] || (d[1] = (u) => l.$emit("clickMatch", s.data.data.prematch))
14736
14735
  }, null, 8, ["data"]),
@@ -14752,7 +14751,7 @@ const i5 = {
14752
14751
  v("div", {
14753
14752
  class: "quadrant-matches__view-more__button",
14754
14753
  onClick: d[5] || (d[5] = (u) => l.$emit("clickCalendar"))
14755
- }, "Ver más")
14754
+ }, " Ver más ")
14756
14755
  ])
14757
14756
  ])) : x("", !0)
14758
14757
  ], 64))
@@ -14786,7 +14785,7 @@ const i5 = {
14786
14785
  v("div", {
14787
14786
  class: "quadrant-matches__view-more__button",
14788
14787
  onClick: d[12] || (d[12] = (u) => l.$emit("clickCalendar"))
14789
- }, "Ver más")
14788
+ }, " Ver más ")
14790
14789
  ])
14791
14790
  ])
14792
14791
  ]),
@@ -14794,13 +14793,13 @@ const i5 = {
14794
14793
  })) : (y(), b(W, { key: 1 }, [
14795
14794
  a.value ? (y(), b(W, { key: 1 }, [
14796
14795
  Object.keys(s.data).length > 0 ? (y(), b("div", z5, [
14797
- s.data[0].game_status == 4 ? (y(), re(Xs, {
14796
+ s.data[0].game_status == 4 ? (y(), re(_s, {
14798
14797
  key: 0,
14799
14798
  data: s.data[0],
14800
14799
  small: "",
14801
14800
  onClickMatch: d[15] || (d[15] = (u) => l.$emit("clickMatch", s.data[0]))
14802
14801
  }, null, 8, ["data"])) : x("", !0),
14803
- s.data[0].game_status != 4 ? (y(), re(Xs, {
14802
+ s.data[0].game_status != 4 ? (y(), re(_s, {
14804
14803
  key: 1,
14805
14804
  data: s.data[0],
14806
14805
  small: "",
@@ -14809,13 +14808,13 @@ const i5 = {
14809
14808
  ])) : x("", !0)
14810
14809
  ], 64)) : (y(), b(W, { key: 0 }, [
14811
14810
  Object.keys(s.data).length > 0 ? (y(), b("div", U5, [
14812
- s.data[0].game_status == 4 ? (y(), re(Xs, {
14811
+ s.data[0].game_status == 4 ? (y(), re(_s, {
14813
14812
  key: 0,
14814
14813
  data: s.data[0],
14815
14814
  small: "",
14816
14815
  onClickMatch: d[13] || (d[13] = (u) => l.$emit("clickMatch", s.data[0]))
14817
14816
  }, null, 8, ["data"])) : x("", !0),
14818
- s.data[0].game_status != 4 ? (y(), re(Xs, {
14817
+ s.data[0].game_status != 4 ? (y(), re(_s, {
14819
14818
  key: 1,
14820
14819
  data: s.data[0],
14821
14820
  small: "",
@@ -14827,7 +14826,7 @@ const i5 = {
14827
14826
  ], 64)) : x("", !0)
14828
14827
  ]));
14829
14828
  }
14830
- }, j5 = /* @__PURE__ */ Ct(V5, [["__scopeId", "data-v-b9d1d799"]]), G5 = {
14829
+ }, j5 = /* @__PURE__ */ Ct(V5, [["__scopeId", "data-v-d162f6fe"]]), G5 = {
14831
14830
  __name: "gsc-games",
14832
14831
  props: {
14833
14832
  componentWidth: {
@@ -16323,9 +16322,9 @@ var Jk = Lt({
16323
16322
  const a = L(null), o = L([]), r = L(0), c = L(0), l = Ke(Object.assign({}, kt));
16324
16323
  let d = Object.assign({}, kt), u;
16325
16324
  const m = L((n = s.modelValue) !== null && n !== void 0 ? n : 0), h = L(0), f = L(0), g = L(0), p = L(0);
16326
- let A, C;
16325
+ let A, S;
16327
16326
  Oe("config", l), Oe("slidesCount", c), Oe("currentSlide", m), Oe("maxSlide", g), Oe("minSlide", p), Oe("slideWidth", r);
16328
- function S() {
16327
+ function C() {
16329
16328
  u = Object.assign({}, s.breakpoints), d = Object.assign(Object.assign(Object.assign({}, d), s), { i18n: Object.assign(Object.assign({}, d.i18n), s.i18n), breakpoints: void 0 }), E(d);
16330
16329
  }
16331
16330
  function I() {
@@ -16360,7 +16359,7 @@ var Jk = Lt({
16360
16359
  st(() => {
16361
16360
  Hi(() => O()), setTimeout(() => O(), 1e3), I(), ne(), window.addEventListener("resize", F, { passive: !0 }), t("init");
16362
16361
  }), Kt(() => {
16363
- C && clearTimeout(C), A && clearInterval(A), window.removeEventListener("resize", F, {
16362
+ S && clearTimeout(S), A && clearInterval(A), window.removeEventListener("resize", F, {
16364
16363
  passive: !0
16365
16364
  });
16366
16365
  });
@@ -16408,7 +16407,7 @@ var Jk = Lt({
16408
16407
  currentSlideIndex: m.value,
16409
16408
  prevSlideIndex: h.value,
16410
16409
  slidesCount: c.value
16411
- }), V.value = !0, h.value = m.value, m.value = se, C = setTimeout(() => {
16410
+ }), V.value = !0, h.value = m.value, m.value = se, S = setTimeout(() => {
16412
16411
  if (l.wrapAround) {
16413
16412
  const _ = mr({
16414
16413
  val: se,
@@ -16451,13 +16450,13 @@ var Jk = Lt({
16451
16450
  };
16452
16451
  });
16453
16452
  function je() {
16454
- S(), I(), j(), O(), Q();
16453
+ C(), I(), j(), O(), Q();
16455
16454
  }
16456
16455
  Object.keys(Bd).forEach((k) => {
16457
16456
  ["modelValue"].includes(k) || be(() => s[k], je);
16458
16457
  }), be(() => s.modelValue, (k) => {
16459
16458
  k !== m.value && Y(Number(k));
16460
- }), be(c, j), t("before-init"), S();
16459
+ }), be(c, j), t("before-init"), C();
16461
16460
  const $e = {
16462
16461
  config: l,
16463
16462
  slidesCount: c,
@@ -16474,7 +16473,7 @@ var Jk = Lt({
16474
16473
  updateBreakpointsConfigs: I,
16475
16474
  updateSlidesData: j,
16476
16475
  updateSlideWidth: O,
16477
- initDefaultConfigs: S,
16476
+ initDefaultConfigs: C,
16478
16477
  restartCarousel: je,
16479
16478
  slideTo: Y,
16480
16479
  next: X,
@@ -16778,7 +16777,7 @@ const $k = (s, e) => {
16778
16777
  onSlideStart: f
16779
16778
  }, {
16780
16779
  default: Ue(() => [
16781
- (y(!0), b(W, null, Ae(s.items, (A, C) => (y(), re(ke(_k), { key: C }, {
16780
+ (y(!0), b(W, null, Ae(s.items, (A, S) => (y(), re(ke(_k), { key: S }, {
16782
16781
  default: Ue(() => [
16783
16782
  Ot(g.$slots, "default", { item: A }, void 0, !0)
16784
16783
  ]),
@@ -16840,17 +16839,17 @@ const $k = (s, e) => {
16840
16839
  ]))
16841
16840
  ])) : x("", !0),
16842
16841
  s.isPaginationVisible ? (y(), b("div", mR, [
16843
- (y(!0), b(W, null, Ae(s.items, (A, C) => (y(), b("div", {
16844
- key: `i-${C}`,
16842
+ (y(!0), b(W, null, Ae(s.items, (A, S) => (y(), b("div", {
16843
+ key: `i-${S}`,
16845
16844
  class: "gsc-carousel__2d__navigation__pagination__item",
16846
16845
  style: z({
16847
16846
  height: `${i.navigationHeight}px`,
16848
- width: `${o.value === C ? i.navigationActiveWidth : i.navigationActiveWidth / 2}px`,
16847
+ width: `${o.value === S ? i.navigationActiveWidth : i.navigationActiveWidth / 2}px`,
16849
16848
  borderRadius: `${i.navigationBorderRadius}px`,
16850
- backgroundColor: `${o.value === C ? i.navigationActiveColor : i.navigationColor}`,
16849
+ backgroundColor: `${o.value === S ? i.navigationActiveColor : i.navigationColor}`,
16851
16850
  transition: "all 0.1s ease-in-out"
16852
16851
  }),
16853
- onClick: (S) => h(C)
16852
+ onClick: (C) => h(S)
16854
16853
  }, null, 12, fR))), 128))
16855
16854
  ])) : x("", !0),
16856
16855
  s.areNavigationArrowsVisible ? (y(), b("div", {
@@ -17148,7 +17147,7 @@ function He(s, e, t) {
17148
17147
  function Kn(s, e) {
17149
17148
  return T.element(s) && s.classList.contains(e);
17150
17149
  }
17151
- function js(s, e) {
17150
+ function Gs(s, e) {
17152
17151
  const { prototype: t } = Element;
17153
17152
  return (t.matches || t.webkitMatchesSelector || t.mozMatchesSelector || t.msMatchesSelector || function() {
17154
17153
  return Array.from(document.querySelectorAll(e)).includes(this);
@@ -17159,7 +17158,7 @@ function iO(s, e) {
17159
17158
  return (t.closest || function() {
17160
17159
  let i = this;
17161
17160
  do {
17162
- if (js.matches(i, e)) return i;
17161
+ if (Gs.matches(i, e)) return i;
17163
17162
  i = i.parentElement || i.parentNode;
17164
17163
  } while (i !== null && i.nodeType === 1);
17165
17164
  return null;
@@ -17498,7 +17497,7 @@ const le = { getIconUrl() {
17498
17497
  }, bindMenuItemShortcuts(s, e) {
17499
17498
  Ve.call(this, s, "keydown keyup", (t) => {
17500
17499
  if (![" ", "ArrowUp", "ArrowDown", "ArrowRight"].includes(t.key) || (t.preventDefault(), t.stopPropagation(), t.type === "keydown")) return;
17501
- const i = js(s, '[role="menuitemradio"]');
17500
+ const i = Gs(s, '[role="menuitemradio"]');
17502
17501
  if (!i && [" ", "ArrowRight"].includes(t.key)) le.showMenuPanel.call(this, e, !0);
17503
17502
  else {
17504
17503
  let n;
@@ -17510,7 +17509,7 @@ const le = { getIconUrl() {
17510
17509
  }, createMenuItem({ value: s, list: e, type: t, title: i, badge: n = null, checked: a = !1 }) {
17511
17510
  const o = ds(this.config.selectors.inputs[t]), r = Ce("button", it(o, { type: "button", role: "menuitemradio", class: `${this.config.classNames.control} ${o.class ? o.class : ""}`.trim(), "aria-checked": a, value: s })), c = Ce("span");
17512
17511
  c.innerHTML = i, T.element(n) && c.appendChild(n), r.appendChild(c), Object.defineProperty(r, "checked", { enumerable: !0, get: () => r.getAttribute("aria-checked") === "true", set(l) {
17513
- l && Array.from(r.parentNode.children).filter((d) => js(d, '[role="menuitemradio"]')).forEach((d) => d.setAttribute("aria-checked", "false")), r.setAttribute("aria-checked", l ? "true" : "false");
17512
+ l && Array.from(r.parentNode.children).filter((d) => Gs(d, '[role="menuitemradio"]')).forEach((d) => d.setAttribute("aria-checked", "false")), r.setAttribute("aria-checked", l ? "true" : "false");
17514
17513
  } }), this.listeners.bind(r, "click keyup", (l) => {
17515
17514
  if (!T.keyboardEvent(l) || l.key === " ") {
17516
17515
  switch (l.preventDefault(), l.stopPropagation(), r.checked = !0, t) {
@@ -17558,11 +17557,11 @@ const le = { getIconUrl() {
17558
17557
  }, updateRangeFill(s) {
17559
17558
  const e = T.event(s) ? s.target : s;
17560
17559
  if (T.element(e) && e.getAttribute("type") === "range") {
17561
- if (js(e, this.config.selectors.inputs.seek)) {
17560
+ if (Gs(e, this.config.selectors.inputs.seek)) {
17562
17561
  e.setAttribute("aria-valuenow", this.currentTime);
17563
17562
  const t = le.formatTime(this.currentTime), i = le.formatTime(this.duration), n = bt.get("seekLabel", this.config);
17564
17563
  e.setAttribute("aria-valuetext", n.replace("{currentTime}", t).replace("{duration}", i));
17565
- } else if (js(e, this.config.selectors.inputs.volume)) {
17564
+ } else if (Gs(e, this.config.selectors.inputs.volume)) {
17566
17565
  const t = 100 * e.value;
17567
17566
  e.setAttribute("aria-valuenow", t), e.setAttribute("aria-valuetext", `${t.toFixed(1)}%`);
17568
17567
  } else e.setAttribute("aria-valuenow", e.value);
@@ -17721,18 +17720,18 @@ const le = { getIconUrl() {
17721
17720
  m.appendChild(t.call(this, "settings", { "aria-haspopup": !0, "aria-controls": `plyr-settings-${s.id}`, "aria-expanded": !1 }));
17722
17721
  const h = Ce("div", { class: "plyr__menu__container", id: `plyr-settings-${s.id}`, hidden: "" }), f = Ce("div"), g = Ce("div", { id: `plyr-settings-${s.id}-home` }), p = Ce("div", { role: "menu" });
17723
17722
  g.appendChild(p), f.appendChild(g), this.elements.settings.panels.home = g, this.config.settings.forEach((A) => {
17724
- const C = Ce("button", it(ds(this.config.selectors.buttons.settings), { type: "button", class: `${this.config.classNames.control} ${this.config.classNames.control}--forward`, role: "menuitem", "aria-haspopup": !0, hidden: "" }));
17725
- e.call(this, C, A), Ve.call(this, C, "click", () => {
17723
+ const S = Ce("button", it(ds(this.config.selectors.buttons.settings), { type: "button", class: `${this.config.classNames.control} ${this.config.classNames.control}--forward`, role: "menuitem", "aria-haspopup": !0, hidden: "" }));
17724
+ e.call(this, S, A), Ve.call(this, S, "click", () => {
17726
17725
  c.call(this, A, !1);
17727
17726
  });
17728
- const S = Ce("span", null, bt.get(A, this.config)), I = Ce("span", { class: this.config.classNames.menu.value });
17729
- I.innerHTML = s[A], S.appendChild(I), C.appendChild(S), p.appendChild(C);
17727
+ const C = Ce("span", null, bt.get(A, this.config)), I = Ce("span", { class: this.config.classNames.menu.value });
17728
+ I.innerHTML = s[A], C.appendChild(I), S.appendChild(C), p.appendChild(S);
17730
17729
  const E = Ce("div", { id: `plyr-settings-${s.id}-${A}`, hidden: "" }), F = Ce("button", { type: "button", class: `${this.config.classNames.control} ${this.config.classNames.control}--back` });
17731
17730
  F.appendChild(Ce("span", { "aria-hidden": !0 }, bt.get(A, this.config))), F.appendChild(Ce("span", { class: this.config.classNames.hidden }, bt.get("menuBack", this.config))), Ve.call(this, E, "keydown", (O) => {
17732
17731
  O.key === "ArrowLeft" && (O.preventDefault(), O.stopPropagation(), c.call(this, "home", !0));
17733
17732
  }, !1), Ve.call(this, F, "click", () => {
17734
17733
  c.call(this, "home", !1);
17735
- }), E.appendChild(F), E.appendChild(Ce("div", { role: "menu" })), f.appendChild(E), this.elements.settings.buttons[A] = C, this.elements.settings.panels[A] = E;
17734
+ }), E.appendChild(F), E.appendChild(Ce("div", { role: "menu" })), f.appendChild(E), this.elements.settings.buttons[A] = S, this.elements.settings.panels[A] = E;
17736
17735
  }), h.appendChild(f), m.appendChild(h), l.appendChild(m), this.elements.settings.popup = h, this.elements.settings.menu = m;
17737
17736
  }
17738
17737
  if (u === "pip" && nt.pip && l.appendChild(t.call(this, "pip", d)), u === "airplay" && nt.airplay && l.appendChild(t.call(this, "airplay", d)), u === "download") {
@@ -18209,7 +18208,7 @@ class vO {
18209
18208
  const h = document.activeElement;
18210
18209
  if (T.element(h)) {
18211
18210
  const { editable: f } = t.config.selectors, { seek: g } = i.inputs;
18212
- if (h !== g && js(h, f) || e.key === " " && js(h, 'button, [role^="menuitem"]')) return;
18211
+ if (h !== g && Gs(h, f) || e.key === " " && Gs(h, 'button, [role^="menuitem"]')) return;
18213
18212
  }
18214
18213
  switch ([" ", "ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "c", "f", "k", "l", "m"].includes(n) && (e.preventDefault(), e.stopPropagation()), n) {
18215
18214
  case "0":
@@ -18270,10 +18269,10 @@ var AO = bO(function(s, e) {
18270
18269
  }, i = {}, n = {}, a = {};
18271
18270
  function o(m, h) {
18272
18271
  m = m.push ? m : [m];
18273
- var f, g, p, A = [], C = m.length, S = C;
18272
+ var f, g, p, A = [], S = m.length, C = S;
18274
18273
  for (f = function(I, E) {
18275
- E.length && A.push(I), --S || h(A);
18276
- }; C--; ) g = m[C], (p = n[g]) ? f(g, p) : (a[g] = a[g] || []).push(f);
18274
+ E.length && A.push(I), --C || h(A);
18275
+ }; S--; ) g = m[S], (p = n[g]) ? f(g, p) : (a[g] = a[g] || []).push(f);
18277
18276
  }
18278
18277
  function r(m, h) {
18279
18278
  if (m) {
@@ -18285,8 +18284,8 @@ var AO = bO(function(s, e) {
18285
18284
  m.call && (m = { success: m }), h.length ? (m.error || t)(h) : (m.success || t)(m);
18286
18285
  }
18287
18286
  function l(m, h, f, g) {
18288
- var p, A, C = document, S = f.async, I = (f.numRetries || 0) + 1, E = f.before || t, F = m.replace(/[\?|#].*$/, ""), O = m.replace(/^(css|img)!/, "");
18289
- g = g || 0, /(^css!|\.css$)/.test(F) ? ((A = C.createElement("link")).rel = "stylesheet", A.href = O, (p = "hideFocus" in A) && A.relList && (p = 0, A.rel = "preload", A.as = "style")) : /(^img!|\.(png|gif|jpg|svg|webp)$)/.test(F) ? (A = C.createElement("img")).src = O : ((A = C.createElement("script")).src = m, A.async = S === void 0 || S), A.onload = A.onerror = A.onbeforeload = function(j) {
18287
+ var p, A, S = document, C = f.async, I = (f.numRetries || 0) + 1, E = f.before || t, F = m.replace(/[\?|#].*$/, ""), O = m.replace(/^(css|img)!/, "");
18288
+ g = g || 0, /(^css!|\.css$)/.test(F) ? ((A = S.createElement("link")).rel = "stylesheet", A.href = O, (p = "hideFocus" in A) && A.relList && (p = 0, A.rel = "preload", A.as = "style")) : /(^img!|\.(png|gif|jpg|svg|webp)$)/.test(F) ? (A = S.createElement("img")).src = O : ((A = S.createElement("script")).src = m, A.async = C === void 0 || C), A.onload = A.onerror = A.onbeforeload = function(j) {
18290
18289
  var D = j.type[0];
18291
18290
  if (p) try {
18292
18291
  A.sheet.cssText.length || (D = "e");
@@ -18297,17 +18296,17 @@ var AO = bO(function(s, e) {
18297
18296
  if ((g += 1) < I) return l(m, h, f, g);
18298
18297
  } else if (A.rel == "preload" && A.as == "style") return A.rel = "stylesheet";
18299
18298
  h(m, D, j.defaultPrevented);
18300
- }, E(m, A) !== !1 && C.head.appendChild(A);
18299
+ }, E(m, A) !== !1 && S.head.appendChild(A);
18301
18300
  }
18302
18301
  function d(m, h, f) {
18303
- var g, p, A = (m = m.push ? m : [m]).length, C = A, S = [];
18302
+ var g, p, A = (m = m.push ? m : [m]).length, S = A, C = [];
18304
18303
  for (g = function(I, E, F) {
18305
- if (E == "e" && S.push(I), E == "b") {
18304
+ if (E == "e" && C.push(I), E == "b") {
18306
18305
  if (!F) return;
18307
- S.push(I);
18306
+ C.push(I);
18308
18307
  }
18309
- --A || h(S);
18310
- }, p = 0; p < C; p++) l(m[p], g, f);
18308
+ --A || h(C);
18309
+ }, p = 0; p < S; p++) l(m[p], g, f);
18311
18310
  }
18312
18311
  function u(m, h, f) {
18313
18312
  var g, p;
@@ -18315,9 +18314,9 @@ var AO = bO(function(s, e) {
18315
18314
  if (g in i) throw "LoadJS";
18316
18315
  i[g] = !0;
18317
18316
  }
18318
- function A(C, S) {
18317
+ function A(S, C) {
18319
18318
  d(m, function(I) {
18320
- c(p, I), C && c({ success: C, error: S }, I), r(g, I);
18319
+ c(p, I), S && c({ success: S, error: C }, I), r(g, I);
18321
18320
  }, p);
18322
18321
  }
18323
18322
  if (p.returnPromise) return new Promise(A);
@@ -18367,71 +18366,71 @@ const vr = { setup() {
18367
18366
  const c = Vf({ loop: s.config.loop.active, autoplay: s.autoplay, muted: s.muted, gesture: "media", playsinline: s.config.playsinline, ...r, ...n }), l = wO(a), d = Ce("iframe"), u = yr(s.config.urls.vimeo.iframe, l, c);
18368
18367
  if (d.setAttribute("src", u), d.setAttribute("allowfullscreen", ""), d.setAttribute("allow", ["autoplay", "fullscreen", "picture-in-picture", "encrypted-media", "accelerometer", "gyroscope"].join("; ")), T.empty(i) || d.setAttribute("referrerPolicy", i), t || !e.customControls) d.setAttribute("data-poster", s.poster), s.media = Hn(d, s.media);
18369
18368
  else {
18370
- const C = Ce("div", { class: s.config.classNames.embedContainer, "data-poster": s.poster });
18371
- C.appendChild(d), s.media = Hn(C, s.media);
18369
+ const S = Ce("div", { class: s.config.classNames.embedContainer, "data-poster": s.poster });
18370
+ S.appendChild(d), s.media = Hn(S, s.media);
18372
18371
  }
18373
- e.customControls || Xi(yr(s.config.urls.vimeo.api, u)).then((C) => {
18374
- !T.empty(C) && C.thumbnail_url && Qe.setPoster.call(s, C.thumbnail_url).catch(() => {
18372
+ e.customControls || Xi(yr(s.config.urls.vimeo.api, u)).then((S) => {
18373
+ !T.empty(S) && S.thumbnail_url && Qe.setPoster.call(s, S.thumbnail_url).catch(() => {
18375
18374
  });
18376
18375
  }), s.embed = new window.Vimeo.Player(d, { autopause: s.config.autopause, muted: s.muted }), s.media.paused = !0, s.media.currentTime = 0, s.supported.ui && s.embed.disableTextTrack(), s.media.play = () => (Ei.call(s, !0), s.embed.play()), s.media.pause = () => (Ei.call(s, !1), s.embed.pause()), s.media.stop = () => {
18377
18376
  s.pause(), s.currentTime = 0;
18378
18377
  };
18379
18378
  let { currentTime: m } = s.media;
18380
- Object.defineProperty(s.media, "currentTime", { get: () => m, set(C) {
18381
- const { embed: S, media: I, paused: E, volume: F } = s, O = E && !S.hasPlayed;
18382
- I.seeking = !0, xe.call(s, I, "seeking"), Promise.resolve(O && S.setVolume(0)).then(() => S.setCurrentTime(C)).then(() => O && S.pause()).then(() => O && S.setVolume(F)).catch(() => {
18379
+ Object.defineProperty(s.media, "currentTime", { get: () => m, set(S) {
18380
+ const { embed: C, media: I, paused: E, volume: F } = s, O = E && !C.hasPlayed;
18381
+ I.seeking = !0, xe.call(s, I, "seeking"), Promise.resolve(O && C.setVolume(0)).then(() => C.setCurrentTime(S)).then(() => O && C.pause()).then(() => O && C.setVolume(F)).catch(() => {
18383
18382
  });
18384
18383
  } });
18385
18384
  let h = s.config.speed.selected;
18386
- Object.defineProperty(s.media, "playbackRate", { get: () => h, set(C) {
18387
- s.embed.setPlaybackRate(C).then(() => {
18388
- h = C, xe.call(s, s.media, "ratechange");
18385
+ Object.defineProperty(s.media, "playbackRate", { get: () => h, set(S) {
18386
+ s.embed.setPlaybackRate(S).then(() => {
18387
+ h = S, xe.call(s, s.media, "ratechange");
18389
18388
  }).catch(() => {
18390
18389
  s.options.speed = [1];
18391
18390
  });
18392
18391
  } });
18393
18392
  let { volume: f } = s.config;
18394
- Object.defineProperty(s.media, "volume", { get: () => f, set(C) {
18395
- s.embed.setVolume(C).then(() => {
18396
- f = C, xe.call(s, s.media, "volumechange");
18393
+ Object.defineProperty(s.media, "volume", { get: () => f, set(S) {
18394
+ s.embed.setVolume(S).then(() => {
18395
+ f = S, xe.call(s, s.media, "volumechange");
18397
18396
  });
18398
18397
  } });
18399
18398
  let { muted: g } = s.config;
18400
- Object.defineProperty(s.media, "muted", { get: () => g, set(C) {
18401
- const S = !!T.boolean(C) && C;
18402
- s.embed.setMuted(!!S || s.config.muted).then(() => {
18403
- g = S, xe.call(s, s.media, "volumechange");
18399
+ Object.defineProperty(s.media, "muted", { get: () => g, set(S) {
18400
+ const C = !!T.boolean(S) && S;
18401
+ s.embed.setMuted(!!C || s.config.muted).then(() => {
18402
+ g = C, xe.call(s, s.media, "volumechange");
18404
18403
  });
18405
18404
  } });
18406
18405
  let p, { loop: A } = s.config;
18407
- Object.defineProperty(s.media, "loop", { get: () => A, set(C) {
18408
- const S = T.boolean(C) ? C : s.config.loop.active;
18409
- s.embed.setLoop(S).then(() => {
18410
- A = S;
18406
+ Object.defineProperty(s.media, "loop", { get: () => A, set(S) {
18407
+ const C = T.boolean(S) ? S : s.config.loop.active;
18408
+ s.embed.setLoop(C).then(() => {
18409
+ A = C;
18411
18410
  });
18412
- } }), s.embed.getVideoUrl().then((C) => {
18413
- p = C, le.setDownloadUrl.call(s);
18414
- }).catch((C) => {
18415
- this.debug.warn(C);
18416
- }), Object.defineProperty(s.media, "currentSrc", { get: () => p }), Object.defineProperty(s.media, "ended", { get: () => s.currentTime === s.duration }), Promise.all([s.embed.getVideoWidth(), s.embed.getVideoHeight()]).then((C) => {
18417
- const [S, I] = C;
18418
- s.embed.ratio = Bf(S, I), li.call(this);
18419
- }), s.embed.setAutopause(s.config.autopause).then((C) => {
18420
- s.config.autopause = C;
18421
- }), s.embed.getVideoTitle().then((C) => {
18422
- s.config.title = C, Qe.setTitle.call(this);
18423
- }), s.embed.getCurrentTime().then((C) => {
18424
- m = C, xe.call(s, s.media, "timeupdate");
18425
- }), s.embed.getDuration().then((C) => {
18426
- s.media.duration = C, xe.call(s, s.media, "durationchange");
18427
- }), s.embed.getTextTracks().then((C) => {
18428
- s.media.textTracks = C, Ge.setup.call(s);
18429
- }), s.embed.on("cuechange", ({ cues: C = [] }) => {
18430
- const S = C.map((I) => hO(I.text));
18431
- Ge.updateCues.call(s, S);
18411
+ } }), s.embed.getVideoUrl().then((S) => {
18412
+ p = S, le.setDownloadUrl.call(s);
18413
+ }).catch((S) => {
18414
+ this.debug.warn(S);
18415
+ }), Object.defineProperty(s.media, "currentSrc", { get: () => p }), Object.defineProperty(s.media, "ended", { get: () => s.currentTime === s.duration }), Promise.all([s.embed.getVideoWidth(), s.embed.getVideoHeight()]).then((S) => {
18416
+ const [C, I] = S;
18417
+ s.embed.ratio = Bf(C, I), li.call(this);
18418
+ }), s.embed.setAutopause(s.config.autopause).then((S) => {
18419
+ s.config.autopause = S;
18420
+ }), s.embed.getVideoTitle().then((S) => {
18421
+ s.config.title = S, Qe.setTitle.call(this);
18422
+ }), s.embed.getCurrentTime().then((S) => {
18423
+ m = S, xe.call(s, s.media, "timeupdate");
18424
+ }), s.embed.getDuration().then((S) => {
18425
+ s.media.duration = S, xe.call(s, s.media, "durationchange");
18426
+ }), s.embed.getTextTracks().then((S) => {
18427
+ s.media.textTracks = S, Ge.setup.call(s);
18428
+ }), s.embed.on("cuechange", ({ cues: S = [] }) => {
18429
+ const C = S.map((I) => hO(I.text));
18430
+ Ge.updateCues.call(s, C);
18432
18431
  }), s.embed.on("loaded", () => {
18433
- s.embed.getPaused().then((C) => {
18434
- Ei.call(s, !C), C || xe.call(s, s.media, "playing");
18432
+ s.embed.getPaused().then((S) => {
18433
+ Ei.call(s, !S), S || xe.call(s, s.media, "playing");
18435
18434
  }), T.element(s.embed.element) && s.supported.ui && s.embed.element.setAttribute("tabindex", -1);
18436
18435
  }), s.embed.on("bufferstart", () => {
18437
18436
  xe.call(s, s.media, "waiting");
@@ -18441,18 +18440,18 @@ const vr = { setup() {
18441
18440
  Ei.call(s, !0), xe.call(s, s.media, "playing");
18442
18441
  }), s.embed.on("pause", () => {
18443
18442
  Ei.call(s, !1);
18444
- }), s.embed.on("timeupdate", (C) => {
18445
- s.media.seeking = !1, m = C.seconds, xe.call(s, s.media, "timeupdate");
18446
- }), s.embed.on("progress", (C) => {
18447
- s.media.buffered = C.percent, xe.call(s, s.media, "progress"), parseInt(C.percent, 10) === 1 && xe.call(s, s.media, "canplaythrough"), s.embed.getDuration().then((S) => {
18448
- S !== s.media.duration && (s.media.duration = S, xe.call(s, s.media, "durationchange"));
18443
+ }), s.embed.on("timeupdate", (S) => {
18444
+ s.media.seeking = !1, m = S.seconds, xe.call(s, s.media, "timeupdate");
18445
+ }), s.embed.on("progress", (S) => {
18446
+ s.media.buffered = S.percent, xe.call(s, s.media, "progress"), parseInt(S.percent, 10) === 1 && xe.call(s, s.media, "canplaythrough"), s.embed.getDuration().then((C) => {
18447
+ C !== s.media.duration && (s.media.duration = C, xe.call(s, s.media, "durationchange"));
18449
18448
  });
18450
18449
  }), s.embed.on("seeked", () => {
18451
18450
  s.media.seeking = !1, xe.call(s, s.media, "seeked");
18452
18451
  }), s.embed.on("ended", () => {
18453
18452
  s.media.paused = !0, xe.call(s, s.media, "ended");
18454
- }), s.embed.on("error", (C) => {
18455
- s.media.error = C, xe.call(s, s.media, "error");
18453
+ }), s.embed.on("error", (S) => {
18454
+ s.media.error = S, xe.call(s, s.media, "error");
18456
18455
  }), e.customControls && setTimeout(() => Qe.build.call(s), 0);
18457
18456
  } };
18458
18457
  function CO(s) {
@@ -19345,7 +19344,7 @@ const kO = {
19345
19344
  be(
19346
19345
  () => t.playerQueue,
19347
19346
  (A) => {
19348
- A.length && (r.value = A.map((C, S) => (C.index = S, { ...C })), i = t.playlistIndex, n = new Map(r.value.map((C) => [C.index, C])));
19347
+ A.length && (r.value = A.map((S, C) => (S.index = C, { ...S })), i = t.playlistIndex, n = new Map(r.value.map((S) => [S.index, S])));
19349
19348
  },
19350
19349
  { immediate: !0 }
19351
19350
  );
@@ -19359,13 +19358,13 @@ const kO = {
19359
19358
  }
19360
19359
  function d({ selectedItem: A }) {
19361
19360
  if (i !== A.index) {
19362
- const C = A.index - i;
19361
+ const S = A.index - i;
19363
19362
  i = A.index;
19364
- const S = n.get(i + C * -1), I = n.get(i);
19365
- if (S && S.videoPlayer && (S.videoPlayer.pause(), S.videoPlayer.currentTime = 0), I && I.videoPlayer && I.videoPlayer.play(), C > 0) {
19363
+ const C = n.get(i + S * -1), I = n.get(i);
19364
+ if (C && C.videoPlayer && (C.videoPlayer.pause(), C.videoPlayer.currentTime = 0), I && I.videoPlayer && I.videoPlayer.play(), S > 0) {
19366
19365
  const E = n.get(i + no), F = n.get(i + 1), O = n.get(i - no);
19367
19366
  E && (r.value.find((j) => j.index === E.index) || r.value.push(E)), F && F.videoPlayer && F.videoPlayer.isDestroyed && F.plyrInit(), O && O.videoPlayer && (O.videoPlayer.pause(), O.videoPlayer.src = "", O.videoPlayer.destroy(), O.videoPlayer.isDestroyed = !0);
19368
- } else if (C < 0) {
19367
+ } else if (S < 0) {
19369
19368
  const E = n.get(i - 1), F = n.get(i + no);
19370
19369
  E && E.videoPlayer && E.videoPlayer.isDestroyed && E.plyrInit(), F && F.videoPlayer && (F.videoPlayer.pause(), F.videoPlayer.src = "", F.videoPlayer.destroy(), F.videoPlayer.isDestroyed = !0);
19371
19370
  }
@@ -19390,15 +19389,15 @@ const kO = {
19390
19389
  return st(() => {
19391
19390
  l() ? (window.addEventListener("resize", g), g()) : (window.addEventListener("orientationchange", p), p()), setTimeout(() => {
19392
19391
  const A = document.getElementsByClassName("video-element");
19393
- A && A.length && Array.from(A).forEach((C, S) => {
19394
- C.id = `plyrFS${S + 1}`;
19392
+ A && A.length && Array.from(A).forEach((S, C) => {
19393
+ S.id = `plyrFS${C + 1}`;
19395
19394
  });
19396
19395
  }, 100);
19397
19396
  }), Tp(() => {
19398
19397
  l() ? window.removeEventListener("resize", g) : window.removeEventListener("orientationchange", p), t.playerQueue.forEach((A) => {
19399
19398
  A.videoPlayer && (A.videoPlayer.pause(), A.videoPlayer.destroy());
19400
19399
  });
19401
- }), (A, C) => (y(), b("div", {
19400
+ }), (A, S) => (y(), b("div", {
19402
19401
  class: R(["carousel-full-screen", l() && !f.value ? "paddingIos" : ""]),
19403
19402
  id: "carousel-swipe"
19404
19403
  }, [
@@ -19416,10 +19415,10 @@ const kO = {
19416
19415
  items: r.value,
19417
19416
  onInput: d
19418
19417
  }), {
19419
- default: Ue(({ item: S }) => [
19418
+ default: Ue(({ item: C }) => [
19420
19419
  v("div", GO, [
19421
19420
  ge(PO, {
19422
- play: S,
19421
+ play: C,
19423
19422
  "is-portrait": f.value,
19424
19423
  "is-mobile-full": c(),
19425
19424
  "is-ios": l(),
@@ -20864,10 +20863,10 @@ function La(s, e, t) {
20864
20863
  if (q.endsWith(f, "{}"))
20865
20864
  f = i ? f : f.slice(0, -2), h = JSON.stringify(h);
20866
20865
  else if (q.isArray(h) && k4(h) || (q.isFileList(h) || q.endsWith(f, "[]")) && (p = q.toArray(h)))
20867
- return f = eg(f), p.forEach(function(A, C) {
20866
+ return f = eg(f), p.forEach(function(A, S) {
20868
20867
  !(q.isUndefined(A) || A === null) && e.append(
20869
20868
  // eslint-disable-next-line no-nested-ternary
20870
- o === !0 ? su([f], C, a) : o === null ? f : f + "[]",
20869
+ o === !0 ? su([f], S, a) : o === null ? f : f + "[]",
20871
20870
  c(A)
20872
20871
  );
20873
20872
  }), !1;
@@ -21469,7 +21468,7 @@ function rg(s, e) {
21469
21468
  return s && !e6(e) ? t6(s, e) : e;
21470
21469
  }
21471
21470
  const ou = (s) => s instanceof is ? { ...s } : s;
21472
- function Ws(s, e) {
21471
+ function Qs(s, e) {
21473
21472
  e = e || {};
21474
21473
  const t = {};
21475
21474
  function i(l, d, u) {
@@ -21536,7 +21535,7 @@ function Ws(s, e) {
21536
21535
  }), t;
21537
21536
  }
21538
21537
  const lg = (s) => {
21539
- const e = Ws({}, s);
21538
+ const e = Qs({}, s);
21540
21539
  let { data: t, withXSRFToken: i, xsrfHeaderName: n, xsrfCookieName: a, headers: o, auth: r } = e;
21541
21540
  e.headers = o = is.from(o), e.url = sg(rg(e.baseURL, e.url), s.params, s.paramsSerializer), r && o.set(
21542
21541
  "Authorization",
@@ -21732,16 +21731,16 @@ const c6 = async (s) => {
21732
21731
  h && h.unsubscribe();
21733
21732
  }), g = !0;
21734
21733
  };
21735
- let C;
21734
+ let S;
21736
21735
  try {
21737
- if (c && l6 && t !== "get" && t !== "head" && (C = await d6(d, i)) !== 0) {
21736
+ if (c && l6 && t !== "get" && t !== "head" && (S = await d6(d, i)) !== 0) {
21738
21737
  let F = new Request(e, {
21739
21738
  method: "POST",
21740
21739
  body: i,
21741
21740
  duplex: "half"
21742
21741
  }), O;
21743
21742
  q.isFormData(i) && (O = F.headers.get("content-type")) && d.setContentType(O), F.body && (i = ru(F.body, cu, lu(
21744
- C,
21743
+ S,
21745
21744
  Yn(c)
21746
21745
  ), null, Cr));
21747
21746
  }
@@ -21754,16 +21753,16 @@ const c6 = async (s) => {
21754
21753
  duplex: "half",
21755
21754
  withCredentials: u
21756
21755
  });
21757
- let S = await fetch(p);
21756
+ let C = await fetch(p);
21758
21757
  const I = Tr && (l === "stream" || l === "response");
21759
21758
  if (Tr && (r || I)) {
21760
21759
  const F = {};
21761
21760
  ["status", "statusText", "headers"].forEach((j) => {
21762
- F[j] = S[j];
21761
+ F[j] = C[j];
21763
21762
  });
21764
- const O = q.toFiniteNumber(S.headers.get("content-length"));
21765
- S = new Response(
21766
- ru(S.body, cu, r && lu(
21763
+ const O = q.toFiniteNumber(C.headers.get("content-length"));
21764
+ C = new Response(
21765
+ ru(C.body, cu, r && lu(
21767
21766
  O,
21768
21767
  Yn(r, !0)
21769
21768
  ), I && A, Cr),
@@ -21771,24 +21770,24 @@ const c6 = async (s) => {
21771
21770
  );
21772
21771
  }
21773
21772
  l = l || "text";
21774
- let E = await Zn[q.findKey(Zn, l) || "text"](S, s);
21773
+ let E = await Zn[q.findKey(Zn, l) || "text"](C, s);
21775
21774
  return !I && A(), f && f(), await new Promise((F, O) => {
21776
21775
  og(F, O, {
21777
21776
  data: E,
21778
- headers: is.from(S.headers),
21779
- status: S.status,
21780
- statusText: S.statusText,
21777
+ headers: is.from(C.headers),
21778
+ status: C.status,
21779
+ statusText: C.statusText,
21781
21780
  config: s,
21782
21781
  request: p
21783
21782
  });
21784
21783
  });
21785
- } catch (S) {
21786
- throw A(), S && S.name === "TypeError" && /fetch/i.test(S.message) ? Object.assign(
21784
+ } catch (C) {
21785
+ throw A(), C && C.name === "TypeError" && /fetch/i.test(C.message) ? Object.assign(
21787
21786
  new Be("Network Error", Be.ERR_NETWORK, s, p),
21788
21787
  {
21789
- cause: S.cause || S
21788
+ cause: C.cause || C
21790
21789
  }
21791
- ) : Be.from(S, S && S.code, s, p);
21790
+ ) : Be.from(C, C && C.code, s, p);
21792
21791
  }
21793
21792
  }), xr = {
21794
21793
  http: E4,
@@ -21936,7 +21935,7 @@ class Wn {
21936
21935
  }
21937
21936
  }
21938
21937
  _request(e, t) {
21939
- typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Ws(this.defaults, t);
21938
+ typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Qs(this.defaults, t);
21940
21939
  const { transitional: i, paramsSerializer: n, headers: a } = t;
21941
21940
  i !== void 0 && Er.assertOptions(i, {
21942
21941
  silentJSONParsing: Is.transitional(Is.boolean),
@@ -21995,14 +21994,14 @@ class Wn {
21995
21994
  return d;
21996
21995
  }
21997
21996
  getUri(e) {
21998
- e = Ws(this.defaults, e);
21997
+ e = Qs(this.defaults, e);
21999
21998
  const t = rg(e.baseURL, e.url);
22000
21999
  return sg(t, e.params, e.paramsSerializer);
22001
22000
  }
22002
22001
  }
22003
22002
  q.forEach(["delete", "get", "head", "options"], function(s) {
22004
22003
  Wn.prototype[s] = function(e, t) {
22005
- return this.request(Ws(t || {}, {
22004
+ return this.request(Qs(t || {}, {
22006
22005
  method: s,
22007
22006
  url: e,
22008
22007
  data: (t || {}).data
@@ -22012,7 +22011,7 @@ q.forEach(["delete", "get", "head", "options"], function(s) {
22012
22011
  q.forEach(["post", "put", "patch"], function(s) {
22013
22012
  function e(t) {
22014
22013
  return function(i, n, a) {
22015
- return this.request(Ws(a || {}, {
22014
+ return this.request(Qs(a || {}, {
22016
22015
  method: s,
22017
22016
  headers: t ? {
22018
22017
  "Content-Type": "multipart/form-data"
@@ -22174,7 +22173,7 @@ const y6 = kr;
22174
22173
  function hg(s) {
22175
22174
  const e = new En(s), t = Kf(En.prototype.request, e);
22176
22175
  return q.extend(t, En.prototype, e, { allOwnKeys: !0 }), q.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(i) {
22177
- return hg(Ws(s, i));
22176
+ return hg(Qs(s, i));
22178
22177
  }, t;
22179
22178
  }
22180
22179
  const rt = hg(Bl);
@@ -22191,7 +22190,7 @@ rt.all = function(s) {
22191
22190
  };
22192
22191
  rt.spread = g6;
22193
22192
  rt.isAxiosError = p6;
22194
- rt.mergeConfig = Ws;
22193
+ rt.mergeConfig = Qs;
22195
22194
  rt.AxiosHeaders = is;
22196
22195
  rt.formToJSON = (s) => ng(q.isHTMLForm(s) ? new FormData(s) : s);
22197
22196
  rt.getAdapter = dg.getAdapter;
@@ -22349,7 +22348,7 @@ function k6(s, e, t, i, n, a) {
22349
22348
  ], 2)) : x("", !0)
22350
22349
  ], 512);
22351
22350
  }
22352
- const R6 = /* @__PURE__ */ v6(Ul, [["render", k6], ["__scopeId", "data-v-b548a08d"]]), Js = (s, e) => {
22351
+ const R6 = /* @__PURE__ */ v6(Ul, [["render", k6], ["__scopeId", "data-v-b548a08d"]]), Xs = (s, e) => {
22353
22352
  const t = s.__vccOpts || s;
22354
22353
  for (const [i, n] of e)
22355
22354
  t[i] = n;
@@ -22569,7 +22568,7 @@ function U6(s, e, t, i, n, a) {
22569
22568
  ])
22570
22569
  ], 2);
22571
22570
  }
22572
- const z6 = /* @__PURE__ */ Js(zl, [["render", U6], ["__scopeId", "data-v-b97cae0c"]]);
22571
+ const z6 = /* @__PURE__ */ Xs(zl, [["render", U6], ["__scopeId", "data-v-b97cae0c"]]);
22573
22572
  let bu = null;
22574
22573
  const Vl = {
22575
22574
  components: {},
@@ -22756,7 +22755,7 @@ function $6(s, e, t, i, n, a) {
22756
22755
  _6
22757
22756
  ], 2);
22758
22757
  }
22759
- const eF = /* @__PURE__ */ Js(Vl, [["render", $6], ["__scopeId", "data-v-e678b93e"]]);
22758
+ const eF = /* @__PURE__ */ Xs(Vl, [["render", $6], ["__scopeId", "data-v-e678b93e"]]);
22760
22759
  let Su = null;
22761
22760
  const jl = {
22762
22761
  components: {},
@@ -22938,7 +22937,7 @@ function fF(s, e, t, i, n, a) {
22938
22937
  mF
22939
22938
  ], 2);
22940
22939
  }
22941
- const gF = /* @__PURE__ */ Js(jl, [["render", fF], ["__scopeId", "data-v-dd6e856f"]]);
22940
+ const gF = /* @__PURE__ */ Xs(jl, [["render", fF], ["__scopeId", "data-v-dd6e856f"]]);
22942
22941
  let xu = null;
22943
22942
  const Gl = {
22944
22943
  components: {},
@@ -23115,7 +23114,7 @@ function OF(s, e, t, i, n, a) {
23115
23114
  RF
23116
23115
  ], 2);
23117
23116
  }
23118
- const IF = /* @__PURE__ */ Js(Gl, [["render", OF], ["__scopeId", "data-v-2ea5091a"]]);
23117
+ const IF = /* @__PURE__ */ Xs(Gl, [["render", OF], ["__scopeId", "data-v-2ea5091a"]]);
23119
23118
  let Ru = null;
23120
23119
  const Hl = {
23121
23120
  components: {},
@@ -23441,7 +23440,7 @@ function qF(s, e, t, i, n, a) {
23441
23440
  KF
23442
23441
  ], 2);
23443
23442
  }
23444
- const YF = /* @__PURE__ */ Js(Hl, [["render", qF], ["__scopeId", "data-v-b1d20f0e"]]);
23443
+ const YF = /* @__PURE__ */ Xs(Hl, [["render", qF], ["__scopeId", "data-v-b1d20f0e"]]);
23445
23444
  let Fu = null;
23446
23445
  const Kl = {
23447
23446
  components: {},
@@ -23652,7 +23651,7 @@ function rL(s, e, t, i, n, a) {
23652
23651
  ]))
23653
23652
  ], 2);
23654
23653
  }
23655
- const lL = /* @__PURE__ */ Js(Kl, [["render", rL], ["__scopeId", "data-v-0080cefb"]]);
23654
+ const lL = /* @__PURE__ */ Xs(Kl, [["render", rL], ["__scopeId", "data-v-0080cefb"]]);
23656
23655
  function cL(s) {
23657
23656
  const e = L({ width: 0, height: 0 });
23658
23657
  function t() {
@@ -25268,7 +25267,7 @@ function pL(s, e, t, i, n, a) {
25268
25267
  }
25269
25268
  const yL = {
25270
25269
  $style: gL
25271
- }, vL = /* @__PURE__ */ Js(ql, [["render", pL], ["__cssModules", yL]]), bL = {
25270
+ }, vL = /* @__PURE__ */ Xs(ql, [["render", pL], ["__cssModules", yL]]), bL = {
25272
25271
  name: "DiscoverVideos",
25273
25272
  components: {
25274
25273
  GscSwitchComponent: ul,
@@ -25803,19 +25802,19 @@ let w = /* @__PURE__ */ function(s) {
25803
25802
  }({}), U = /* @__PURE__ */ function(s) {
25804
25803
  return s.KEY_SYSTEM_NO_KEYS = "keySystemNoKeys", s.KEY_SYSTEM_NO_ACCESS = "keySystemNoAccess", s.KEY_SYSTEM_NO_SESSION = "keySystemNoSession", s.KEY_SYSTEM_NO_CONFIGURED_LICENSE = "keySystemNoConfiguredLicense", s.KEY_SYSTEM_LICENSE_REQUEST_FAILED = "keySystemLicenseRequestFailed", s.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED = "keySystemServerCertificateRequestFailed", s.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED = "keySystemServerCertificateUpdateFailed", s.KEY_SYSTEM_SESSION_UPDATE_FAILED = "keySystemSessionUpdateFailed", s.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED = "keySystemStatusOutputRestricted", s.KEY_SYSTEM_STATUS_INTERNAL_ERROR = "keySystemStatusInternalError", s.MANIFEST_LOAD_ERROR = "manifestLoadError", s.MANIFEST_LOAD_TIMEOUT = "manifestLoadTimeOut", s.MANIFEST_PARSING_ERROR = "manifestParsingError", s.MANIFEST_INCOMPATIBLE_CODECS_ERROR = "manifestIncompatibleCodecsError", s.LEVEL_EMPTY_ERROR = "levelEmptyError", s.LEVEL_LOAD_ERROR = "levelLoadError", s.LEVEL_LOAD_TIMEOUT = "levelLoadTimeOut", s.LEVEL_PARSING_ERROR = "levelParsingError", s.LEVEL_SWITCH_ERROR = "levelSwitchError", s.AUDIO_TRACK_LOAD_ERROR = "audioTrackLoadError", s.AUDIO_TRACK_LOAD_TIMEOUT = "audioTrackLoadTimeOut", s.SUBTITLE_LOAD_ERROR = "subtitleTrackLoadError", s.SUBTITLE_TRACK_LOAD_TIMEOUT = "subtitleTrackLoadTimeOut", s.FRAG_LOAD_ERROR = "fragLoadError", s.FRAG_LOAD_TIMEOUT = "fragLoadTimeOut", s.FRAG_DECRYPT_ERROR = "fragDecryptError", s.FRAG_PARSING_ERROR = "fragParsingError", s.FRAG_GAP = "fragGap", s.REMUX_ALLOC_ERROR = "remuxAllocError", s.KEY_LOAD_ERROR = "keyLoadError", s.KEY_LOAD_TIMEOUT = "keyLoadTimeOut", s.BUFFER_ADD_CODEC_ERROR = "bufferAddCodecError", s.BUFFER_INCOMPATIBLE_CODECS_ERROR = "bufferIncompatibleCodecsError", s.BUFFER_APPEND_ERROR = "bufferAppendError", s.BUFFER_APPENDING_ERROR = "bufferAppendingError", s.BUFFER_STALLED_ERROR = "bufferStalledError", s.BUFFER_FULL_ERROR = "bufferFullError", s.BUFFER_SEEK_OVER_HOLE = "bufferSeekOverHole", s.BUFFER_NUDGE_ON_STALL = "bufferNudgeOnStall", s.INTERNAL_EXCEPTION = "internalException", s.INTERNAL_ABORTED = "aborted", s.UNKNOWN = "unknown", s;
25805
25804
  }({});
25806
- const Vs = function() {
25805
+ const js = function() {
25807
25806
  }, Rr = {
25808
- trace: Vs,
25809
- debug: Vs,
25810
- log: Vs,
25811
- warn: Vs,
25812
- info: Vs,
25813
- error: Vs
25807
+ trace: js,
25808
+ debug: js,
25809
+ log: js,
25810
+ warn: js,
25811
+ info: js,
25812
+ error: js
25814
25813
  };
25815
25814
  let Fi = Rr;
25816
25815
  function ML(s) {
25817
25816
  const e = self.console[s];
25818
- return e ? e.bind(self.console, `[${s}] >`) : Vs;
25817
+ return e ? e.bind(self.console, `[${s}] >`) : js;
25819
25818
  }
25820
25819
  function PL(s, ...e) {
25821
25820
  e.forEach(function(t) {
@@ -26269,7 +26268,7 @@ function ZL(s, e, t, i) {
26269
26268
  }))
26270
26269
  }];
26271
26270
  }
26272
- function Ks(s, e, t) {
26271
+ function qs(s, e, t) {
26273
26272
  return Uint8Array.prototype.slice ? s.slice(e, t) : new Uint8Array(Array.prototype.slice.call(s, e, t));
26274
26273
  }
26275
26274
  const Wl = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e + 2] === 51 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, vg = (s, e) => e + 10 <= s.length && s[e] === 51 && s[e + 1] === 68 && s[e + 2] === 73 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, Vi = (s, e) => {
@@ -26775,7 +26774,7 @@ function uM(s) {
26775
26774
  if (t.length < 2)
26776
26775
  return e.remainder = s, e;
26777
26776
  const i = t[t.length - 1];
26778
- return e.valid = Ks(s, 0, i.byteOffset - 8), e.remainder = Ks(s, i.byteOffset - 8), e;
26777
+ return e.valid = qs(s, 0, i.byteOffset - 8), e.remainder = qs(s, i.byteOffset - 8), e;
26779
26778
  }
26780
26779
  function Ht(s, e) {
26781
26780
  const t = new Uint8Array(s.length + e.length);
@@ -26793,13 +26792,13 @@ function ju(s, e) {
26793
26792
  return f === 1 && (g *= Math.pow(2, 32), g += ye(h, 8)), g / n;
26794
26793
  })[0];
26795
26794
  return m !== void 0 && (s = m), Fe(u, ["tfhd"]).map((h) => {
26796
- const f = ye(h, 4), g = ye(h, 0) & 16777215, p = (g & 1) !== 0, A = (g & 2) !== 0, C = (g & 8) !== 0;
26797
- let S = 0;
26795
+ const f = ye(h, 4), g = ye(h, 0) & 16777215, p = (g & 1) !== 0, A = (g & 2) !== 0, S = (g & 8) !== 0;
26796
+ let C = 0;
26798
26797
  const I = (g & 16) !== 0;
26799
26798
  let E = 0;
26800
26799
  const F = (g & 32) !== 0;
26801
26800
  let O = 8;
26802
- f === a && (p && (O += 8), A && (O += 4), C && (S = ye(h, O), O += 4), I && (E = ye(h, O), O += 4), F && (O += 4), e.type === "video" && (o = hM(e.codec)), Fe(u, ["trun"]).map((j) => {
26801
+ f === a && (p && (O += 8), A && (O += 4), S && (C = ye(h, O), O += 4), I && (E = ye(h, O), O += 4), F && (O += 4), e.type === "video" && (o = hM(e.codec)), Fe(u, ["trun"]).map((j) => {
26803
26802
  const D = j[0], N = ye(j, 0) & 16777215, Z = (N & 1) !== 0;
26804
26803
  let ie = 0;
26805
26804
  const $ = (N & 4) !== 0, ue = (N & 256) !== 0;
@@ -26813,7 +26812,7 @@ function ju(s, e) {
26813
26812
  Z && (ie = ye(j, V), V += 4), $ && (V += 4);
26814
26813
  let Y = ie + l;
26815
26814
  for (let X = 0; X < Q; X++) {
26816
- if (ue ? (fe = ye(j, V), V += 4) : fe = S, me ? (we = ye(j, V), V += 4) : we = E, Re && (V += 4), oe && (D === 0 ? ne = ye(j, V) : ne = Cg(j, V), V += 4), e.type === We.VIDEO) {
26815
+ if (ue ? (fe = ye(j, V), V += 4) : fe = C, me ? (we = ye(j, V), V += 4) : we = E, Re && (V += 4), oe && (D === 0 ? ne = ye(j, V) : ne = Cg(j, V), V += 4), e.type === We.VIDEO) {
26817
26816
  let ee = 0;
26818
26817
  for (; ee < we; ) {
26819
26818
  const ae = ye(i, Y);
@@ -26879,17 +26878,17 @@ function Eg(s, e, t, i) {
26879
26878
  if (d += 4, h === 1195456820) {
26880
26879
  const f = n[d++];
26881
26880
  if (f === 3) {
26882
- const g = n[d++], p = 31 & g, A = 64 & g, C = A ? 2 + p * 3 : 0, S = new Uint8Array(C);
26881
+ const g = n[d++], p = 31 & g, A = 64 & g, S = A ? 2 + p * 3 : 0, C = new Uint8Array(S);
26883
26882
  if (A) {
26884
- S[0] = g;
26885
- for (let I = 1; I < C; I++)
26886
- S[I] = n[d++];
26883
+ C[0] = g;
26884
+ for (let I = 1; I < S; I++)
26885
+ C[I] = n[d++];
26887
26886
  }
26888
26887
  i.push({
26889
26888
  type: f,
26890
26889
  payloadType: o,
26891
26890
  pts: t,
26892
- bytes: S
26891
+ bytes: C
26893
26892
  });
26894
26893
  }
26895
26894
  }
@@ -27144,7 +27143,7 @@ function bM(s, e, t) {
27144
27143
  } else
27145
27144
  s.playlistParsingError || (s.playlistParsingError = new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`));
27146
27145
  }
27147
- function Qs(s = !0) {
27146
+ function Js(s = !0) {
27148
27147
  return typeof self > "u" ? void 0 : (s || !self.MediaSource) && self.ManagedMediaSource || self.MediaSource || self.WebKitMediaSource;
27149
27148
  }
27150
27149
  function AM(s) {
@@ -27237,7 +27236,7 @@ function po(s, e, t = !0) {
27237
27236
  }
27238
27237
  function Og(s, e, t = !0) {
27239
27238
  var i;
27240
- const n = Qs(t);
27239
+ const n = Js(t);
27241
27240
  return (i = n == null ? void 0 : n.isTypeSupported(Gi(s, e))) != null ? i : !1;
27242
27241
  }
27243
27242
  function Gi(s, e) {
@@ -27398,7 +27397,7 @@ class fs {
27398
27397
  if (d) {
27399
27398
  const u = r[d], m = a[d] || [];
27400
27399
  a[d] = m, Pt(i, l, ["URI", "GROUP-ID", "LANGUAGE", "ASSOC-LANGUAGE", "STABLE-RENDITION-ID", "NAME", "INSTREAM-ID", "CHARACTERISTICS", "CHANNELS"]);
27401
- const h = l.LANGUAGE, f = l["ASSOC-LANGUAGE"], g = l.CHANNELS, p = l.CHARACTERISTICS, A = l["INSTREAM-ID"], C = {
27400
+ const h = l.LANGUAGE, f = l["ASSOC-LANGUAGE"], g = l.CHANNELS, p = l.CHARACTERISTICS, A = l["INSTREAM-ID"], S = {
27402
27401
  attrs: l,
27403
27402
  bitrate: 0,
27404
27403
  id: c++,
@@ -27411,18 +27410,18 @@ class fs {
27411
27410
  lang: h,
27412
27411
  url: l.URI ? fs.resolve(l.URI, t) : ""
27413
27412
  };
27414
- if (f && (C.assocLang = f), g && (C.channels = g), p && (C.characteristics = p), A && (C.instreamId = A), u != null && u.length) {
27415
- const S = fs.findGroup(u, C.groupId) || u[0];
27416
- Xu(C, S, "audioCodec"), Xu(C, S, "textCodec");
27413
+ if (f && (S.assocLang = f), g && (S.channels = g), p && (S.characteristics = p), A && (S.instreamId = A), u != null && u.length) {
27414
+ const C = fs.findGroup(u, S.groupId) || u[0];
27415
+ Xu(S, C, "audioCodec"), Xu(S, C, "textCodec");
27417
27416
  }
27418
- m.push(C);
27417
+ m.push(S);
27419
27418
  }
27420
27419
  }
27421
27420
  return a;
27422
27421
  }
27423
27422
  static parseLevelPlaylist(e, t, i, n, a, o) {
27424
27423
  const r = new jL(t), c = r.fragments;
27425
- let l = null, d = 0, u = 0, m = 0, h = 0, f = null, g = new uo(n, t), p, A, C, S = -1, I = !1, E = null;
27424
+ let l = null, d = 0, u = 0, m = 0, h = 0, f = null, g = new uo(n, t), p, A, S, C = -1, I = !1, E = null;
27426
27425
  for (Wu.lastIndex = 0, r.m3u8 = e, r.hasVariableRefs = Gu(e); (p = Wu.exec(e)) !== null; ) {
27427
27426
  I && (I = !1, g = new uo(n, t), g.start = m, g.sn = d, g.cc = h, g.level = i, l && (g.initSegment = l, g.rawProgramDateTime = l.rawProgramDateTime, l.rawProgramDateTime = null, E && (g.setByteRange(E), E = null)));
27428
27427
  const D = p[1];
@@ -27432,7 +27431,7 @@ class fs {
27432
27431
  g.title = N || null, g.tagList.push(N ? ["INF", D, N] : ["INF", D]);
27433
27432
  } else if (p[3]) {
27434
27433
  if (he(g.duration)) {
27435
- g.start = m, C && eh(g, C, r), g.sn = d, g.level = i, g.cc = h, c.push(g);
27434
+ g.start = m, S && eh(g, S, r), g.sn = d, g.level = i, g.cc = h, c.push(g);
27436
27435
  const N = (" " + p[3]).slice(1);
27437
27436
  g.relurl = Ir(r, N), _u(g, f), f = g, m += g.duration, d++, u = 0, I = !0;
27438
27437
  }
@@ -27440,7 +27439,7 @@ class fs {
27440
27439
  const N = (" " + p[4]).slice(1);
27441
27440
  f ? g.setByteRange(N, f) : g.setByteRange(N);
27442
27441
  } else if (p[5])
27443
- g.rawProgramDateTime = (" " + p[5]).slice(1), g.tagList.push(["PROGRAM-DATE-TIME", g.rawProgramDateTime]), S === -1 && (S = c.length);
27442
+ g.rawProgramDateTime = (" " + p[5]).slice(1), g.tagList.push(["PROGRAM-DATE-TIME", g.rawProgramDateTime]), C === -1 && (C = c.length);
27444
27443
  else {
27445
27444
  if (p = p[0].match(EM), !p) {
27446
27445
  P.warn("No matches on slow regex match for level playlist!");
@@ -27515,10 +27514,10 @@ class fs {
27515
27514
  const $ = Qu(Z, t, r);
27516
27515
  if ($.isSupported()) {
27517
27516
  if ($.method === "NONE") {
27518
- C = void 0;
27517
+ S = void 0;
27519
27518
  break;
27520
27519
  }
27521
- C || (C = {}), C[$.keyFormat] && (C = lt({}, C)), C[$.keyFormat] = $;
27520
+ S || (S = {}), S[$.keyFormat] && (S = lt({}, S)), S[$.keyFormat] = $;
27522
27521
  } else
27523
27522
  P.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Z}"`);
27524
27523
  break;
@@ -27530,7 +27529,7 @@ class fs {
27530
27529
  const $ = new tt(Z);
27531
27530
  if (Pt(r, $, ["BYTERANGE", "URI"]), g.duration) {
27532
27531
  const ue = new uo(n, t);
27533
- $u(ue, $, i, C), l = ue, g.initSegment = l, l.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = l.rawProgramDateTime);
27532
+ $u(ue, $, i, S), l = ue, g.initSegment = l, l.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = l.rawProgramDateTime);
27534
27533
  } else {
27535
27534
  const ue = g.byteRangeEndOffset;
27536
27535
  if (ue) {
@@ -27538,7 +27537,7 @@ class fs {
27538
27537
  E = `${ue - fe}@${fe}`;
27539
27538
  } else
27540
27539
  E = null;
27541
- $u(g, $, i, C), l = g, I = !0;
27540
+ $u(g, $, i, S), l = g, I = !0;
27542
27541
  }
27543
27542
  break;
27544
27543
  }
@@ -27577,7 +27576,7 @@ class fs {
27577
27576
  }
27578
27577
  }
27579
27578
  }
27580
- f && !f.relurl ? (c.pop(), m -= f.duration, r.partList && (r.fragmentHint = f)) : r.partList && (_u(g, f), g.cc = h, r.fragmentHint = g, C && eh(g, C, r));
27579
+ f && !f.relurl ? (c.pop(), m -= f.duration, r.partList && (r.fragmentHint = f)) : r.partList && (_u(g, f), g.cc = h, r.fragmentHint = g, S && eh(g, S, r));
27581
27580
  const F = c.length, O = c[0], j = c[F - 1];
27582
27581
  if (m += r.skippedSegments * r.targetduration, m > 0 && F && j) {
27583
27582
  r.averagetargetduration = m / F;
@@ -27585,7 +27584,7 @@ class fs {
27585
27584
  r.endSN = D !== "initSegment" ? D : 0, r.live || (j.endList = !0), O && (r.startCC = O.cc);
27586
27585
  } else
27587
27586
  r.endSN = 0, r.startCC = 0;
27588
- return r.fragmentHint && (m += r.fragmentHint.duration), r.totalduration = m, r.endCC = h, S > 0 && RM(c, S), r;
27587
+ return r.fragmentHint && (m += r.fragmentHint.duration), r.totalduration = m, r.endCC = h, C > 0 && RM(c, C), r;
27589
27588
  }
27590
27589
  }
27591
27590
  function Qu(s, e, t) {
@@ -27847,7 +27846,7 @@ class OM {
27847
27846
  SUBTITLES: p,
27848
27847
  "CLOSED-CAPTIONS": A
27849
27848
  } = fs.parseMasterPlaylistMedia(o, r, c);
27850
- g.length && !g.some((S) => !S.url) && d[0].audioCodec && !d[0].attrs.AUDIO && (P.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"), g.unshift({
27849
+ g.length && !g.some((C) => !C.url) && d[0].audioCodec && !d[0].attrs.AUDIO && (P.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"), g.unshift({
27851
27850
  type: "main",
27852
27851
  name: "main",
27853
27852
  groupId: "main",
@@ -28296,9 +28295,9 @@ class PM {
28296
28295
  for (let d = 0; d < o.length; d++) {
28297
28296
  const u = o[d], m = a[u], h = bo(m.startDate, c), f = i[u], g = (f == null ? void 0 : f.cues) || {};
28298
28297
  let p = (f == null ? void 0 : f.durationKnown) || !1, A = nn;
28299
- const C = m.endDate;
28300
- if (C)
28301
- A = bo(C, c), p = !0;
28298
+ const S = m.endDate;
28299
+ if (S)
28300
+ A = bo(S, c), p = !0;
28302
28301
  else if (m.endOnNext && !p) {
28303
28302
  const I = o.reduce((E, F) => {
28304
28303
  if (F !== m.id) {
@@ -28310,9 +28309,9 @@ class PM {
28310
28309
  }, null);
28311
28310
  I && (A = bo(I.startDate, c), p = !0);
28312
28311
  }
28313
- const S = Object.keys(m.attr);
28314
- for (let I = 0; I < S.length; I++) {
28315
- const E = S[I];
28312
+ const C = Object.keys(m.attr);
28313
+ for (let I = 0; I < C.length; I++) {
28314
+ const E = C[I];
28316
28315
  if (!NL(E))
28317
28316
  continue;
28318
28317
  const F = g[E];
@@ -29005,7 +29004,7 @@ class QM {
29005
29004
  i.autoLevelEnabled || (i.loadLevel = -1);
29006
29005
  const g = (a = e.frag) == null ? void 0 : a.type, A = (g === ve.AUDIO && l === U.FRAG_PARSING_ERROR || e.sourceBufferName === "audio" && (l === U.BUFFER_ADD_CODEC_ERROR || l === U.BUFFER_APPEND_ERROR)) && u.some(({
29007
29006
  audioCodec: F
29008
- }) => n.audioCodec !== F), S = e.sourceBufferName === "video" && (l === U.BUFFER_ADD_CODEC_ERROR || l === U.BUFFER_APPEND_ERROR) && u.some(({
29007
+ }) => n.audioCodec !== F), C = e.sourceBufferName === "video" && (l === U.BUFFER_ADD_CODEC_ERROR || l === U.BUFFER_APPEND_ERROR) && u.some(({
29009
29008
  codecSet: F,
29010
29009
  audioCodec: O
29011
29010
  }) => n.codecSet !== F && n.audioCodec === O), {
@@ -29027,7 +29026,7 @@ class QM {
29027
29026
  } else {
29028
29027
  if (I === ze.AUDIO_TRACK && j.hasAudioGroup(E) || I === ze.SUBTITLE_TRACK && j.hasSubtitleGroup(E))
29029
29028
  continue;
29030
- if (g === ve.AUDIO && (r = n.audioGroups) != null && r.some((D) => j.hasAudioGroup(D)) || g === ve.SUBTITLE && (c = n.subtitleGroups) != null && c.some((D) => j.hasSubtitleGroup(D)) || A && n.audioCodec === j.audioCodec || !A && n.audioCodec !== j.audioCodec || S && n.codecSet === j.codecSet)
29029
+ if (g === ve.AUDIO && (r = n.audioGroups) != null && r.some((D) => j.hasAudioGroup(D)) || g === ve.SUBTITLE && (c = n.subtitleGroups) != null && c.some((D) => j.hasSubtitleGroup(D)) || A && n.audioCodec === j.audioCodec || !A && n.audioCodec !== j.audioCodec || C && n.codecSet === j.codecSet)
29031
29030
  continue;
29032
29031
  }
29033
29032
  d = O;
@@ -29147,8 +29146,8 @@ class Xl {
29147
29146
  return;
29148
29147
  let c, l, d;
29149
29148
  if (n.canBlockReload && n.endSN && n.advanced) {
29150
- const p = this.hls.config.lowLatencyMode, A = n.lastPartSn, C = n.endSN, S = n.lastPartIndex, I = S !== -1, E = A === C, F = p ? 0 : S;
29151
- I ? (l = E ? C + 1 : A, d = E ? F : S + 1) : l = C + 1;
29149
+ const p = this.hls.config.lowLatencyMode, A = n.lastPartSn, S = n.endSN, C = n.lastPartIndex, I = C !== -1, E = A === S, F = p ? 0 : C;
29150
+ I ? (l = E ? S + 1 : A, d = E ? F : C + 1) : l = S + 1;
29152
29151
  const O = n.age, j = O + n.ageHeader;
29153
29152
  let D = Math.min(j - n.partTarget, n.targetduration * 1.5);
29154
29153
  if (D > 0) {
@@ -29201,7 +29200,7 @@ class Xl {
29201
29200
  return c;
29202
29201
  }
29203
29202
  }
29204
- class _s {
29203
+ class $s {
29205
29204
  // About half of the estimated value will be from the last |halfLife| samples by weight.
29206
29205
  constructor(e, t = 0, i = 0) {
29207
29206
  this.halfLife = void 0, this.alpha_ = void 0, this.estimate_ = void 0, this.totalWeight_ = void 0, this.halfLife = e, this.alpha_ = e ? Math.exp(Math.log(0.5) / e) : 0, this.estimate_ = t, this.totalWeight_ = i;
@@ -29224,7 +29223,7 @@ class _s {
29224
29223
  }
29225
29224
  class JM {
29226
29225
  constructor(e, t, i, n = 100) {
29227
- this.defaultEstimate_ = void 0, this.minWeight_ = void 0, this.minDelayMs_ = void 0, this.slow_ = void 0, this.fast_ = void 0, this.defaultTTFB_ = void 0, this.ttfb_ = void 0, this.defaultEstimate_ = i, this.minWeight_ = 1e-3, this.minDelayMs_ = 50, this.slow_ = new _s(e), this.fast_ = new _s(t), this.defaultTTFB_ = n, this.ttfb_ = new _s(e);
29226
+ this.defaultEstimate_ = void 0, this.minWeight_ = void 0, this.minDelayMs_ = void 0, this.slow_ = void 0, this.fast_ = void 0, this.defaultTTFB_ = void 0, this.ttfb_ = void 0, this.defaultEstimate_ = i, this.minWeight_ = 1e-3, this.minDelayMs_ = 50, this.slow_ = new $s(e), this.fast_ = new $s(t), this.defaultTTFB_ = n, this.ttfb_ = new $s(e);
29228
29227
  }
29229
29228
  update(e, t) {
29230
29229
  const {
@@ -29232,7 +29231,7 @@ class JM {
29232
29231
  fast_: n,
29233
29232
  ttfb_: a
29234
29233
  } = this;
29235
- i.halfLife !== e && (this.slow_ = new _s(e, i.getEstimate(), i.getTotalWeight())), n.halfLife !== t && (this.fast_ = new _s(t, n.getEstimate(), n.getTotalWeight())), a.halfLife !== e && (this.ttfb_ = new _s(e, a.getEstimate(), a.getTotalWeight()));
29234
+ i.halfLife !== e && (this.slow_ = new $s(e, i.getEstimate(), i.getTotalWeight())), n.halfLife !== t && (this.fast_ = new $s(t, n.getEstimate(), n.getTotalWeight())), a.halfLife !== e && (this.ttfb_ = new $s(e, a.getEstimate(), a.getTotalWeight()));
29236
29235
  }
29237
29236
  sample(e, t) {
29238
29237
  e = Math.max(e, this.minDelayMs_);
@@ -29378,7 +29377,7 @@ function sP(s, e, t, i, n) {
29378
29377
  O.length > 0 && (d = !0, g = O);
29379
29378
  }
29380
29379
  u = he(u) ? u : 0, m = he(m) ? m : 0;
29381
- const C = Math.max(1080, u), S = Math.max(30, m);
29380
+ const S = Math.max(1080, u), C = Math.max(30, m);
29382
29381
  return h = he(h) ? h : t, t = Math.max(h, t), d || (e = void 0, g = []), {
29383
29382
  codecSet: a.reduce((E, F) => {
29384
29383
  const O = s[F];
@@ -29395,7 +29394,7 @@ function sP(s, e, t, i, n) {
29395
29394
  return bs(F, `no renditions with ${o} channel sound found (channels options: ${Object.keys(O.channels)})`), E;
29396
29395
  } else if ((!r || c) && l && O.channels[2] === 0)
29397
29396
  return bs(F, "no renditions with stereo sound found"), E;
29398
- return O.minHeight > C ? (bs(F, `min resolution of ${O.minHeight} > maximum of ${C}`), E) : O.minFramerate > S ? (bs(F, `min framerate of ${O.minFramerate} > maximum of ${S}`), E) : g.some((j) => O.videoRanges[j] > 0) ? O.maxScore < f ? (bs(F, `max score of ${O.maxScore} < selected max of ${f}`), E) : E && (Xn(F) >= Xn(E) || O.fragmentError > s[E].fragmentError) ? E : (f = O.maxScore, F) : (bs(F, `no variants with VIDEO-RANGE of ${JSON.stringify(g)} found`), E);
29397
+ return O.minHeight > S ? (bs(F, `min resolution of ${O.minHeight} > maximum of ${S}`), E) : O.minFramerate > C ? (bs(F, `min framerate of ${O.minFramerate} > maximum of ${C}`), E) : g.some((j) => O.videoRanges[j] > 0) ? O.maxScore < f ? (bs(F, `max score of ${O.maxScore} < selected max of ${f}`), E) : E && (Xn(F) >= Xn(E) || O.fragmentError > s[E].fragmentError) ? E : (f = O.maxScore, F) : (bs(F, `no variants with VIDEO-RANGE of ${JSON.stringify(g)} found`), E);
29399
29398
  }, void 0),
29400
29399
  videoRanges: g,
29401
29400
  preferHDR: p,
@@ -29484,7 +29483,7 @@ function aP(s, e = "") {
29484
29483
  const t = s.split(","), i = e.split(",");
29485
29484
  return t.length === i.length && !t.some((n) => i.indexOf(n) === -1);
29486
29485
  }
29487
- function $s(s, e) {
29486
+ function ei(s, e) {
29488
29487
  const {
29489
29488
  audioCodec: t,
29490
29489
  channels: i
@@ -29543,29 +29542,29 @@ class rP {
29543
29542
  const h = this.bwEstimator.getEstimateTTFB(), f = Math.abs(o.playbackRate);
29544
29543
  if (d <= Math.max(h, 1e3 * (l / (f * 2))))
29545
29544
  return;
29546
- const g = m.len / f, p = c.loading.first ? c.loading.first - c.loading.start : -1, A = c.loaded && p > -1, C = this.getBwEstimate(), S = n.levels, I = S[t.level], E = c.total || Math.max(c.loaded, Math.round(l * I.averageBitrate / 8));
29545
+ const g = m.len / f, p = c.loading.first ? c.loading.first - c.loading.start : -1, A = c.loaded && p > -1, S = this.getBwEstimate(), C = n.levels, I = C[t.level], E = c.total || Math.max(c.loaded, Math.round(l * I.averageBitrate / 8));
29547
29546
  let F = A ? d - p : d;
29548
- F < 1 && A && (F = Math.min(d, c.loaded * 8 / C));
29549
- const O = A ? c.loaded * 1e3 / F : 0, j = O ? (E - c.loaded) / O : E * 8 / C + h / 1e3;
29547
+ F < 1 && A && (F = Math.min(d, c.loaded * 8 / S));
29548
+ const O = A ? c.loaded * 1e3 / F : 0, j = O ? (E - c.loaded) / O : E * 8 / S + h / 1e3;
29550
29549
  if (j <= g)
29551
29550
  return;
29552
- const D = O ? O * 8 : C;
29551
+ const D = O ? O * 8 : S;
29553
29552
  let N = Number.POSITIVE_INFINITY, Z;
29554
29553
  for (Z = t.level - 1; Z > u; Z--) {
29555
- const $ = S[Z].maxBitrate;
29556
- if (N = this.getTimeToLoadFrag(h / 1e3, D, l * $, !S[Z].details), N < g)
29554
+ const $ = C[Z].maxBitrate;
29555
+ if (N = this.getTimeToLoadFrag(h / 1e3, D, l * $, !C[Z].details), N < g)
29557
29556
  break;
29558
29557
  }
29559
29558
  if (N >= j || N > l * 10)
29560
29559
  return;
29561
29560
  n.nextLoadLevel = n.nextAutoLevel = Z, A ? this.bwEstimator.sample(d - Math.min(h, p), c.loaded) : this.bwEstimator.sampleTTFB(d);
29562
- const ie = S[Z].maxBitrate;
29561
+ const ie = C[Z].maxBitrate;
29563
29562
  this.getBwEstimate() * this.hls.config.abrBandWidthUpFactor > ie && this.resetEstimator(ie), this.clearTimer(), P.warn(`[abr] Fragment ${t.sn}${i ? " part " + i.index : ""} of level ${t.level} is loading too slowly;
29564
29563
  Time to underbuffer: ${g.toFixed(3)} s
29565
29564
  Estimated load time for current fragment: ${j.toFixed(3)} s
29566
29565
  Estimated load time for down switch fragment: ${N.toFixed(3)} s
29567
29566
  TTFB estimate: ${p | 0} ms
29568
- Current BW estimate: ${he(C) ? C | 0 : "Unknown"} bps
29567
+ Current BW estimate: ${he(S) ? S | 0 : "Unknown"} bps
29569
29568
  New BW estimate: ${this.getBwEstimate() | 0} bps
29570
29569
  Switching to level ${Z} @ ${ie | 0} bps`), n.trigger(w.FRAG_LOAD_EMERGENCY_ABORTED, {
29571
29570
  frag: t,
@@ -29772,8 +29771,8 @@ class rP {
29772
29771
  } = this.hls;
29773
29772
  if (f.length === 1)
29774
29773
  return 0;
29775
- const C = f[u], S = !!(C != null && (c = C.details) != null && c.live), I = p === -1 || d === -1;
29776
- let E, F = "SDR", O = (C == null ? void 0 : C.frameRate) || 0;
29774
+ const S = f[u], C = !!(S != null && (c = S.details) != null && c.live), I = p === -1 || d === -1;
29775
+ let E, F = "SDR", O = (S == null ? void 0 : S.frameRate) || 0;
29777
29776
  const {
29778
29777
  audioPreference: j,
29779
29778
  videoPreference: D
@@ -29790,7 +29789,7 @@ class rP {
29790
29789
  } = me;
29791
29790
  E = we, F = Q ? Re[Re.length - 1] : Re[0], O = oe, e = Math.max(e, ne), P.log(`[abr] picked start tier ${JSON.stringify(me)}`);
29792
29791
  } else
29793
- E = C == null ? void 0 : C.codecSet, F = C == null ? void 0 : C.videoRange;
29792
+ E = S == null ? void 0 : S.codecSet, F = S == null ? void 0 : S.videoRange;
29794
29793
  const Z = h ? h.duration : m ? m.duration : 0, ie = this.bwEstimator.getEstimateTTFB() / 1e3, $ = [];
29795
29794
  for (let fe = i; fe >= t; fe--) {
29796
29795
  var ue;
@@ -29821,10 +29820,10 @@ class rP {
29821
29820
  (fe === d || me.loadError === 0 && me.fragmentError === 0) && // fragment fetchDuration unknown OR live stream OR fragment fetchDuration less than max allowed fetch duration, then this level matches
29822
29821
  // we don't account for max Fetch Duration for live streams, this is to avoid switching down when near the edge of live sliding window ...
29823
29822
  // special case to support startLevel = -1 (bitrateTest) on live streams : in that case we should not exit loop so that findBestLevel will return -1
29824
- (V <= ie || !he(V) || S && !this.bitrateTestDelay || V < l)
29823
+ (V <= ie || !he(V) || C && !this.bitrateTestDelay || V < l)
29825
29824
  ) {
29826
29825
  const X = this.forcedAutoLevel;
29827
- return fe !== p && (X === -1 || X !== p) && ($.length && P.trace(`[abr] Skipped level(s) ${$.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${f[$[0]].codecs}" ${f[$[0]].videoRange}; not compatible with "${C.codecs}" ${F}`), P.info(`[abr] switch candidate:${u}->${fe} adjustedbw(${Math.round(ne)})-bitrate=${Math.round(ne - Q)} ttfb:${ie.toFixed(1)} avgDuration:${oe.toFixed(1)} maxFetchDuration:${l.toFixed(1)} fetchDuration:${V.toFixed(1)} firstSelection:${I} codecSet:${E} videoRange:${F} hls.loadLevel:${p}`)), I && (this.firstSelection = fe), fe;
29826
+ return fe !== p && (X === -1 || X !== p) && ($.length && P.trace(`[abr] Skipped level(s) ${$.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${f[$[0]].codecs}" ${f[$[0]].videoRange}; not compatible with "${S.codecs}" ${F}`), P.info(`[abr] switch candidate:${u}->${fe} adjustedbw(${Math.round(ne)})-bitrate=${Math.round(ne - Q)} ttfb:${ie.toFixed(1)} avgDuration:${oe.toFixed(1)} maxFetchDuration:${l.toFixed(1)} fetchDuration:${V.toFixed(1)} firstSelection:${I} codecSet:${E} videoRange:${F} hls.loadLevel:${p}`)), I && (this.firstSelection = fe), fe;
29828
29827
  }
29829
29828
  }
29830
29829
  return -1;
@@ -29989,7 +29988,7 @@ class cP {
29989
29988
  } = e;
29990
29989
  if (!t || i.sn === "initSegment")
29991
29990
  return;
29992
- const a = ei(i), o = this.fragments[a];
29991
+ const a = ti(i), o = this.fragments[a];
29993
29992
  if (!o || o.buffered && i.gap)
29994
29993
  return;
29995
29994
  const r = !i.relurl;
@@ -30006,7 +30005,7 @@ class cP {
30006
30005
  i && (this.activePartLists[t] = i.filter((n) => n.fragment.sn >= e));
30007
30006
  }
30008
30007
  fragBuffered(e, t) {
30009
- const i = ei(e);
30008
+ const i = ti(e);
30010
30009
  let n = this.fragments[i];
30011
30010
  !n && t && (n = this.fragments[i] = {
30012
30011
  body: e,
@@ -30059,7 +30058,7 @@ class cP {
30059
30058
  return t !== void 0 && (t.buffered || an(t));
30060
30059
  }
30061
30060
  getState(e) {
30062
- const t = ei(e), i = this.fragments[t];
30061
+ const t = ti(e), i = this.fragments[t];
30063
30062
  return i ? i.buffered ? an(i) ? wt.PARTIAL : wt.OK : wt.APPENDING : wt.NOT_LOADED;
30064
30063
  }
30065
30064
  isTimeBuffered(e, t, i) {
@@ -30079,7 +30078,7 @@ class cP {
30079
30078
  } = t;
30080
30079
  if (i.sn === "initSegment" || i.bitrateTest)
30081
30080
  return;
30082
- const a = n ? null : t, o = ei(i);
30081
+ const a = n ? null : t, o = ti(i);
30083
30082
  this.fragments[o] = {
30084
30083
  body: i,
30085
30084
  appendedPTS: null,
@@ -30110,7 +30109,7 @@ class cP {
30110
30109
  this.detectPartialFragments(t);
30111
30110
  }
30112
30111
  hasFragment(e) {
30113
- const t = ei(e);
30112
+ const t = ti(e);
30114
30113
  return !!this.fragments[t];
30115
30114
  }
30116
30115
  hasParts(e) {
@@ -30127,7 +30126,7 @@ class cP {
30127
30126
  });
30128
30127
  }
30129
30128
  removeFragment(e) {
30130
- const t = ei(e);
30129
+ const t = ti(e);
30131
30130
  e.stats.loaded = 0, e.clearElementaryStreamInfo();
30132
30131
  const i = this.activePartLists[e.type];
30133
30132
  if (i) {
@@ -30144,7 +30143,7 @@ function an(s) {
30144
30143
  var e, t, i;
30145
30144
  return s.buffered && (s.body.gap || ((e = s.range.video) == null ? void 0 : e.partial) || ((t = s.range.audio) == null ? void 0 : t.partial) || ((i = s.range.audiovideo) == null ? void 0 : i.partial));
30146
30145
  }
30147
- function ei(s) {
30146
+ function ti(s) {
30148
30147
  return `${s.type}_${s.level}_${s.sn}`;
30149
30148
  }
30150
30149
  const dP = {
@@ -30554,7 +30553,7 @@ class yP {
30554
30553
  }
30555
30554
  function vP(s) {
30556
30555
  const e = s.byteLength, t = e && new DataView(s.buffer).getUint8(e - 1);
30557
- return t ? Ks(s, 0, e - t) : s;
30556
+ return t ? qs(s, 0, e - t) : s;
30558
30557
  }
30559
30558
  class bP {
30560
30559
  constructor() {
@@ -30575,9 +30574,9 @@ class bP {
30575
30574
  for (p = 0; p < 256; p++) {
30576
30575
  let A = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
30577
30576
  A = A >>> 8 ^ A & 255 ^ 99, e[f] = A, t[A] = f;
30578
- const C = h[f], S = h[C], I = h[S];
30577
+ const S = h[f], C = h[S], I = h[C];
30579
30578
  let E = h[A] * 257 ^ A * 16843008;
30580
- n[f] = E << 24 | E >>> 8, a[f] = E << 16 | E >>> 16, o[f] = E << 8 | E >>> 24, r[f] = E, E = I * 16843009 ^ S * 65537 ^ C * 257 ^ f * 16843008, l[A] = E << 24 | E >>> 8, d[A] = E << 16 | E >>> 16, u[A] = E << 8 | E >>> 24, m[A] = E, f ? (f = C ^ h[h[h[I ^ C]]], g ^= h[h[g]]) : f = g = 1;
30579
+ n[f] = E << 24 | E >>> 8, a[f] = E << 16 | E >>> 16, o[f] = E << 8 | E >>> 24, r[f] = E, E = I * 16843009 ^ C * 65537 ^ S * 257 ^ f * 16843008, l[A] = E << 24 | E >>> 8, d[A] = E << 16 | E >>> 16, u[A] = E << 8 | E >>> 24, m[A] = E, f ? (f = S ^ h[h[h[I ^ S]]], g ^= h[h[g]]) : f = g = 1;
30581
30580
  }
30582
30581
  }
30583
30582
  expandKey(e) {
@@ -30594,16 +30593,16 @@ class bP {
30594
30593
  const o = this.ksRows = (a + 6 + 1) * 4;
30595
30594
  let r, c;
30596
30595
  const l = this.keySchedule = new Uint32Array(o), d = this.invKeySchedule = new Uint32Array(o), u = this.sBox, m = this.rcon, h = this.invSubMix, f = h[0], g = h[1], p = h[2], A = h[3];
30597
- let C, S;
30596
+ let S, C;
30598
30597
  for (r = 0; r < o; r++) {
30599
30598
  if (r < a) {
30600
- C = l[r] = t[r];
30599
+ S = l[r] = t[r];
30601
30600
  continue;
30602
30601
  }
30603
- S = C, r % a === 0 ? (S = S << 8 | S >>> 24, S = u[S >>> 24] << 24 | u[S >>> 16 & 255] << 16 | u[S >>> 8 & 255] << 8 | u[S & 255], S ^= m[r / a | 0] << 24) : a > 6 && r % a === 4 && (S = u[S >>> 24] << 24 | u[S >>> 16 & 255] << 16 | u[S >>> 8 & 255] << 8 | u[S & 255]), l[r] = C = (l[r - a] ^ S) >>> 0;
30602
+ C = S, r % a === 0 ? (C = C << 8 | C >>> 24, C = u[C >>> 24] << 24 | u[C >>> 16 & 255] << 16 | u[C >>> 8 & 255] << 8 | u[C & 255], C ^= m[r / a | 0] << 24) : a > 6 && r % a === 4 && (C = u[C >>> 24] << 24 | u[C >>> 16 & 255] << 16 | u[C >>> 8 & 255] << 8 | u[C & 255]), l[r] = S = (l[r - a] ^ C) >>> 0;
30604
30603
  }
30605
30604
  for (c = 0; c < o; c++)
30606
- r = o - c, c & 3 ? S = l[r] : S = l[r - 4], c < 4 || r <= 4 ? d[c] = S : d[c] = f[u[S >>> 24]] ^ g[u[S >>> 16 & 255]] ^ p[u[S >>> 8 & 255]] ^ A[u[S & 255]], d[c] = d[c] >>> 0;
30605
+ r = o - c, c & 3 ? C = l[r] : C = l[r - 4], c < 4 || r <= 4 ? d[c] = C : d[c] = f[u[C >>> 24]] ^ g[u[C >>> 16 & 255]] ^ p[u[C >>> 8 & 255]] ^ A[u[C & 255]], d[c] = d[c] >>> 0;
30607
30606
  }
30608
30607
  // Adding this as a method greatly improves performance.
30609
30608
  networkToHostOrderSwap(e) {
@@ -30612,15 +30611,15 @@ class bP {
30612
30611
  decrypt(e, t, i) {
30613
30612
  const n = this.keySize + 6, a = this.invKeySchedule, o = this.invSBox, r = this.invSubMix, c = r[0], l = r[1], d = r[2], u = r[3], m = this.uint8ArrayToUint32Array_(i);
30614
30613
  let h = m[0], f = m[1], g = m[2], p = m[3];
30615
- const A = new Int32Array(e), C = new Int32Array(A.length);
30616
- let S, I, E, F, O, j, D, N, Z, ie, $, ue, fe, me;
30614
+ const A = new Int32Array(e), S = new Int32Array(A.length);
30615
+ let C, I, E, F, O, j, D, N, Z, ie, $, ue, fe, me;
30617
30616
  const we = this.networkToHostOrderSwap;
30618
30617
  for (; t < A.length; ) {
30619
30618
  for (Z = we(A[t]), ie = we(A[t + 1]), $ = we(A[t + 2]), ue = we(A[t + 3]), O = Z ^ a[0], j = ue ^ a[1], D = $ ^ a[2], N = ie ^ a[3], fe = 4, me = 1; me < n; me++)
30620
- S = c[O >>> 24] ^ l[j >> 16 & 255] ^ d[D >> 8 & 255] ^ u[N & 255] ^ a[fe], I = c[j >>> 24] ^ l[D >> 16 & 255] ^ d[N >> 8 & 255] ^ u[O & 255] ^ a[fe + 1], E = c[D >>> 24] ^ l[N >> 16 & 255] ^ d[O >> 8 & 255] ^ u[j & 255] ^ a[fe + 2], F = c[N >>> 24] ^ l[O >> 16 & 255] ^ d[j >> 8 & 255] ^ u[D & 255] ^ a[fe + 3], O = S, j = I, D = E, N = F, fe = fe + 4;
30621
- S = o[O >>> 24] << 24 ^ o[j >> 16 & 255] << 16 ^ o[D >> 8 & 255] << 8 ^ o[N & 255] ^ a[fe], I = o[j >>> 24] << 24 ^ o[D >> 16 & 255] << 16 ^ o[N >> 8 & 255] << 8 ^ o[O & 255] ^ a[fe + 1], E = o[D >>> 24] << 24 ^ o[N >> 16 & 255] << 16 ^ o[O >> 8 & 255] << 8 ^ o[j & 255] ^ a[fe + 2], F = o[N >>> 24] << 24 ^ o[O >> 16 & 255] << 16 ^ o[j >> 8 & 255] << 8 ^ o[D & 255] ^ a[fe + 3], C[t] = we(S ^ h), C[t + 1] = we(F ^ f), C[t + 2] = we(E ^ g), C[t + 3] = we(I ^ p), h = Z, f = ie, g = $, p = ue, t = t + 4;
30619
+ C = c[O >>> 24] ^ l[j >> 16 & 255] ^ d[D >> 8 & 255] ^ u[N & 255] ^ a[fe], I = c[j >>> 24] ^ l[D >> 16 & 255] ^ d[N >> 8 & 255] ^ u[O & 255] ^ a[fe + 1], E = c[D >>> 24] ^ l[N >> 16 & 255] ^ d[O >> 8 & 255] ^ u[j & 255] ^ a[fe + 2], F = c[N >>> 24] ^ l[O >> 16 & 255] ^ d[j >> 8 & 255] ^ u[D & 255] ^ a[fe + 3], O = C, j = I, D = E, N = F, fe = fe + 4;
30620
+ C = o[O >>> 24] << 24 ^ o[j >> 16 & 255] << 16 ^ o[D >> 8 & 255] << 8 ^ o[N & 255] ^ a[fe], I = o[j >>> 24] << 24 ^ o[D >> 16 & 255] << 16 ^ o[N >> 8 & 255] << 8 ^ o[O & 255] ^ a[fe + 1], E = o[D >>> 24] << 24 ^ o[N >> 16 & 255] << 16 ^ o[O >> 8 & 255] << 8 ^ o[j & 255] ^ a[fe + 2], F = o[N >>> 24] << 24 ^ o[O >> 16 & 255] << 16 ^ o[j >> 8 & 255] << 8 ^ o[D & 255] ^ a[fe + 3], S[t] = we(C ^ h), S[t + 1] = we(F ^ f), S[t + 2] = we(E ^ g), S[t + 3] = we(I ^ p), h = Z, f = ie, g = $, p = ue, t = t + 4;
30622
30621
  }
30623
- return C.buffer;
30622
+ return S.buffer;
30624
30623
  }
30625
30624
  }
30626
30625
  const AP = 16;
@@ -30678,7 +30677,7 @@ class $l {
30678
30677
  let c = this.softwareDecrypter;
30679
30678
  c || (c = this.softwareDecrypter = new bP()), c.expandKey(t);
30680
30679
  const l = a;
30681
- return this.currentResult = c.decrypt(r.buffer, 0, i), this.currentIV = Ks(r, -16).buffer, l || null;
30680
+ return this.currentResult = c.decrypt(r.buffer, 0, i), this.currentIV = qs(r, -16).buffer, l || null;
30682
30681
  }
30683
30682
  webCryptoDecrypt(e, t, i) {
30684
30683
  if (this.key !== t || !this.fastAesKey) {
@@ -30698,7 +30697,7 @@ class $l {
30698
30697
  getValidChunk(e) {
30699
30698
  let t = e;
30700
30699
  const i = e.length - e.length % AP;
30701
- return i !== e.length && (t = Ks(e, 0, i), this.remainderData = Ks(e, i)), t;
30700
+ return i !== e.length && (t = qs(e, 0, i), this.remainderData = qs(e, i)), t;
30702
30701
  }
30703
30702
  logOnce(e) {
30704
30703
  this.logEnabled && (P.log(`[decrypter]: ${e}`), this.logEnabled = !1);
@@ -31520,7 +31519,7 @@ class tc {
31520
31519
  duration: Number.POSITIVE_INFINITY
31521
31520
  }), n += i.length, a = n) : n++;
31522
31521
  if (n === l && a !== l) {
31523
- const d = Ks(e, a);
31522
+ const d = qs(e, a);
31524
31523
  this.cachedData ? this.cachedData = Ht(this.cachedData, d) : this.cachedData = d;
31525
31524
  }
31526
31525
  }
@@ -31736,8 +31735,8 @@ function Yg(s, e) {
31736
31735
  if (t !== 1 && n !== 0 && n !== 15 && a !== 3) {
31737
31736
  const o = s[e + 2] >> 1 & 1, r = s[e + 3] >> 6, c = t === 3 ? 3 - i : i === 3 ? 3 : 4, l = LP[c * 14 + n - 1] * 1e3, u = MP[(t === 3 ? 0 : t === 2 ? 1 : 2) * 3 + a], m = r === 3 ? 1 : 2, h = PP[t][i], f = BP[i], g = h * 8 * f, p = Math.floor(h * l / u + o) * f;
31738
31737
  if (rn === null) {
31739
- const S = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
31740
- rn = S ? parseInt(S[1]) : 0;
31738
+ const C = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
31739
+ rn = C ? parseInt(C[1]) : 0;
31741
31740
  }
31742
31741
  return !!rn && rn <= 87 && i === 2 && l >= 224e3 && r === 0 && (s[e + 3] = s[e + 3] | 128), {
31743
31742
  sampleRate: u,
@@ -31968,8 +31967,8 @@ function Jg(s, e, t, i, n) {
31968
31967
  const u = e[t + 6] >> 5;
31969
31968
  let m = 0;
31970
31969
  u === 2 ? m += 2 : (u & 1 && u !== 1 && (m += 2), u & 4 && (m += 2));
31971
- const h = (e[t + 6] << 8 | e[t + 7]) >> 12 - m & 1, g = [2, 1, 2, 3, 3, 4, 4, 5][u] + h, p = e[t + 5] >> 3, A = e[t + 5] & 7, C = new Uint8Array([a << 6 | p << 1 | A >> 2, (A & 3) << 6 | u << 3 | h << 2 | c >> 4, c << 4 & 224]), S = 1536 / r * 9e4, I = i + n * S, E = e.subarray(t, t + d);
31972
- return s.config = C, s.channelCount = g, s.samplerate = r, s.samples.push({
31970
+ const h = (e[t + 6] << 8 | e[t + 7]) >> 12 - m & 1, g = [2, 1, 2, 3, 3, 4, 4, 5][u] + h, p = e[t + 5] >> 3, A = e[t + 5] & 7, S = new Uint8Array([a << 6 | p << 1 | A >> 2, (A & 3) << 6 | u << 3 | h << 2 | c >> 4, c << 4 & 224]), C = 1536 / r * 9e4, I = i + n * C, E = e.subarray(t, t + d);
31971
+ return s.config = S, s.channelCount = g, s.samplerate = r, s.samples.push({
31973
31972
  unit: E,
31974
31973
  pts: I
31975
31974
  }), d;
@@ -32125,7 +32124,7 @@ class gh {
32125
32124
  for (m(1), h(), h(), a = d(), r = 0; r < a; r++)
32126
32125
  h();
32127
32126
  f(), m(1);
32128
- const C = d(), S = d(), I = l(1);
32127
+ const S = d(), C = d(), I = l(1);
32129
32128
  I === 0 && m(1), m(1), u() && (e = d(), t = d(), i = d(), n = d());
32130
32129
  let E = [1, 1];
32131
32130
  if (u() && u())
@@ -32184,8 +32183,8 @@ class gh {
32184
32183
  }
32185
32184
  }
32186
32185
  return {
32187
- width: Math.ceil((C + 1) * 16 - e * 2 - t * 2),
32188
- height: (2 - I) * (S + 1) * 16 - (I ? 2 : 4) * (i + n),
32186
+ width: Math.ceil((S + 1) * 16 - e * 2 - t * 2),
32187
+ height: (2 - I) * (C + 1) * 16 - (I ? 2 : 4) * (i + n),
32189
32188
  pixelRatio: E
32190
32189
  };
32191
32190
  }
@@ -32228,13 +32227,13 @@ class GP extends jP {
32228
32227
  const g = d.data, A = new gh(g).readSPS();
32229
32228
  if (!e.sps || e.width !== A.width || e.height !== A.height || ((h = e.pixelRatio) == null ? void 0 : h[0]) !== A.pixelRatio[0] || ((f = e.pixelRatio) == null ? void 0 : f[1]) !== A.pixelRatio[1]) {
32230
32229
  e.width = A.width, e.height = A.height, e.pixelRatio = A.pixelRatio, e.sps = [g], e.duration = a;
32231
- const C = g.subarray(1, 4);
32232
- let S = "avc1.";
32230
+ const S = g.subarray(1, 4);
32231
+ let C = "avc1.";
32233
32232
  for (let I = 0; I < 3; I++) {
32234
- let E = C[I].toString(16);
32235
- E.length < 2 && (E = "0" + E), S += E;
32233
+ let E = S[I].toString(16);
32234
+ E.length < 2 && (E = "0" + E), C += E;
32236
32235
  }
32237
- e.codec = S;
32236
+ e.codec = C;
32238
32237
  }
32239
32238
  break;
32240
32239
  }
@@ -32432,8 +32431,8 @@ class Ls {
32432
32431
  i || (this.sampleAes = null);
32433
32432
  let a;
32434
32433
  const o = this._videoTrack, r = this._audioTrack, c = this._id3Track, l = this._txtTrack;
32435
- let d = o.pid, u = o.pesData, m = r.pid, h = c.pid, f = r.pesData, g = c.pesData, p = null, A = this.pmtParsed, C = this._pmtId, S = e.length;
32436
- if (this.remainderData && (e = Ht(this.remainderData, e), S = e.length, this.remainderData = null), S < vt && !n)
32434
+ let d = o.pid, u = o.pesData, m = r.pid, h = c.pid, f = r.pesData, g = c.pesData, p = null, A = this.pmtParsed, S = this._pmtId, C = e.length;
32435
+ if (this.remainderData && (e = Ht(this.remainderData, e), C = e.length, this.remainderData = null), C < vt && !n)
32437
32436
  return this.remainderData = e, {
32438
32437
  audioTrack: r,
32439
32438
  videoTrack: o,
@@ -32441,9 +32440,9 @@ class Ls {
32441
32440
  textTrack: l
32442
32441
  };
32443
32442
  const I = Math.max(0, Ls.syncOffset(e));
32444
- S -= (S - I) % vt, S < e.byteLength && !n && (this.remainderData = new Uint8Array(e.buffer, S, e.buffer.byteLength - S));
32443
+ C -= (C - I) % vt, C < e.byteLength && !n && (this.remainderData = new Uint8Array(e.buffer, C, e.buffer.byteLength - C));
32445
32444
  let E = 0;
32446
- for (let O = I; O < S; O += vt)
32445
+ for (let O = I; O < C; O += vt)
32447
32446
  if (e[O] === 71) {
32448
32447
  const j = !!(e[O + 1] & 64), D = Dr(e, O), N = (e[O + 3] & 48) >> 4;
32449
32448
  let Z;
@@ -32454,14 +32453,14 @@ class Ls {
32454
32453
  Z = O + 4;
32455
32454
  switch (D) {
32456
32455
  case d:
32457
- j && (u && (a = ti(u)) && this.videoParser.parseAVCPES(o, l, a, !1, this._duration), u = {
32456
+ j && (u && (a = si(u)) && this.videoParser.parseAVCPES(o, l, a, !1, this._duration), u = {
32458
32457
  data: [],
32459
32458
  size: 0
32460
32459
  }), u && (u.data.push(e.subarray(Z, O + vt)), u.size += O + vt - Z);
32461
32460
  break;
32462
32461
  case m:
32463
32462
  if (j) {
32464
- if (f && (a = ti(f)))
32463
+ if (f && (a = si(f)))
32465
32464
  switch (r.segmentCodec) {
32466
32465
  case "aac":
32467
32466
  this.parseAACPES(r, a);
@@ -32481,15 +32480,15 @@ class Ls {
32481
32480
  f && (f.data.push(e.subarray(Z, O + vt)), f.size += O + vt - Z);
32482
32481
  break;
32483
32482
  case h:
32484
- j && (g && (a = ti(g)) && this.parseID3PES(c, a), g = {
32483
+ j && (g && (a = si(g)) && this.parseID3PES(c, a), g = {
32485
32484
  data: [],
32486
32485
  size: 0
32487
32486
  }), g && (g.data.push(e.subarray(Z, O + vt)), g.size += O + vt - Z);
32488
32487
  break;
32489
32488
  case 0:
32490
- j && (Z += e[Z] + 1), C = this._pmtId = KP(e, Z);
32489
+ j && (Z += e[Z] + 1), S = this._pmtId = KP(e, Z);
32491
32490
  break;
32492
- case C: {
32491
+ case S: {
32493
32492
  j && (Z += e[Z] + 1);
32494
32493
  const ie = qP(e, Z, this.typeSupported, i, this.observer);
32495
32494
  d = ie.videoPid, d > 0 && (o.pid = d, o.segmentCodec = ie.segmentVideoCodec), m = ie.audioPid, m > 0 && (r.pid = m, r.segmentCodec = ie.segmentAudioCodec), h = ie.id3Pid, h > 0 && (c.pid = h), p !== null && !A && (P.warn(`MPEG-TS PMT found at ${O} after unknown PID '${p}'. Backtracking to sync byte @${I} to parse all TS packets.`), p = null, O = I - 188), A = this.pmtParsed = !0;
@@ -32534,7 +32533,7 @@ class Ls {
32534
32533
  textTrack: a
32535
32534
  } = e, o = i.pesData, r = t.pesData, c = n.pesData;
32536
32535
  let l;
32537
- if (o && (l = ti(o)) ? (this.videoParser.parseAVCPES(i, a, l, !0, this._duration), i.pesData = null) : i.pesData = o, r && (l = ti(r))) {
32536
+ if (o && (l = si(o)) ? (this.videoParser.parseAVCPES(i, a, l, !0, this._duration), i.pesData = null) : i.pesData = o, r && (l = si(r))) {
32538
32537
  switch (t.segmentCodec) {
32539
32538
  case "aac":
32540
32539
  this.parseAACPES(t, l);
@@ -32549,7 +32548,7 @@ class Ls {
32549
32548
  t.pesData = null;
32550
32549
  } else
32551
32550
  r != null && r.size && P.log("last AAC PES packet truncated,might overlap between fragments"), t.pesData = r;
32552
- c && (l = ti(c)) ? (this.parseID3PES(n, l), n.pesData = null) : n.pesData = c;
32551
+ c && (l = si(c)) ? (this.parseID3PES(n, l), n.pesData = null) : n.pesData = c;
32553
32552
  }
32554
32553
  demuxSampleAes(e, t, i) {
32555
32554
  const n = this.demux(e, i, !0, !this.config.progressive), a = this.sampleAes = new HP(this.observer, this.config, t);
@@ -32744,7 +32743,7 @@ function aa(s, e, t) {
32744
32743
  function wo(s) {
32745
32744
  P.log(`${s} with AES-128-CBC encryption found in unencrypted stream`);
32746
32745
  }
32747
- function ti(s) {
32746
+ function si(s) {
32748
32747
  let e = 0, t, i, n, a, o;
32749
32748
  const r = s.data;
32750
32749
  if (!s || s.size === 0)
@@ -33871,12 +33870,12 @@ function WP(s, e = 1) {
33871
33870
  return nc(s, Xg, 1 / e);
33872
33871
  }
33873
33872
  const QP = 10 * 1e3, yh = 1024, JP = 1152, XP = 1536;
33874
- let si = null, So = null;
33873
+ let ii = null, So = null;
33875
33874
  class In {
33876
33875
  constructor(e, t, i, n = "") {
33877
- if (this.observer = void 0, this.config = void 0, this.typeSupported = void 0, this.ISGenerated = !1, this._initPTS = null, this._initDTS = null, this.nextAvcDts = null, this.nextAudioPts = null, this.videoSampleDuration = null, this.isAudioContiguous = !1, this.isVideoContiguous = !1, this.videoTrackConfig = void 0, this.observer = e, this.config = t, this.typeSupported = i, this.ISGenerated = !1, si === null) {
33876
+ if (this.observer = void 0, this.config = void 0, this.typeSupported = void 0, this.ISGenerated = !1, this._initPTS = null, this._initDTS = null, this.nextAvcDts = null, this.nextAudioPts = null, this.videoSampleDuration = null, this.isAudioContiguous = !1, this.isVideoContiguous = !1, this.videoTrackConfig = void 0, this.observer = e, this.config = t, this.typeSupported = i, this.ISGenerated = !1, ii === null) {
33878
33877
  const o = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
33879
- si = o ? parseInt(o[1]) : 0;
33878
+ ii = o ? parseInt(o[1]) : 0;
33880
33879
  }
33881
33880
  if (So === null) {
33882
33881
  const a = navigator.userAgent.match(/Safari\/(\d+)/i);
@@ -33905,8 +33904,8 @@ class In {
33905
33904
  }
33906
33905
  remux(e, t, i, n, a, o, r, c) {
33907
33906
  let l, d, u, m, h, f, g = a, p = a;
33908
- const A = e.pid > -1, C = t.pid > -1, S = t.samples.length, I = e.samples.length > 0, E = r && S > 0 || S > 1;
33909
- if ((!A || I) && (!C || E) || this.ISGenerated || r) {
33907
+ const A = e.pid > -1, S = t.pid > -1, C = t.samples.length, I = e.samples.length > 0, E = r && C > 0 || C > 1;
33908
+ if ((!A || I) && (!S || E) || this.ISGenerated || r) {
33910
33909
  if (this.ISGenerated) {
33911
33910
  var O, j, D, N;
33912
33911
  const ue = this.videoTrackConfig;
@@ -33917,17 +33916,17 @@ class In {
33917
33916
  let ie = -1, $;
33918
33917
  if (E && (ie = _P(t.samples), !Z && this.config.forceKeyFrameOnDiscontinuity))
33919
33918
  if (f = !0, ie > 0) {
33920
- P.warn(`[mp4-remuxer]: Dropped ${ie} out of ${S} video samples due to a missing keyframe`);
33919
+ P.warn(`[mp4-remuxer]: Dropped ${ie} out of ${C} video samples due to a missing keyframe`);
33921
33920
  const ue = this.getVideoStartPts(t.samples);
33922
33921
  t.samples = t.samples.slice(ie), t.dropped += ie, p += (t.samples[0].pts - ue) / t.inputTimeScale, $ = p;
33923
- } else ie === -1 && (P.warn(`[mp4-remuxer]: No keyframe found out of ${S} video samples`), f = !1);
33922
+ } else ie === -1 && (P.warn(`[mp4-remuxer]: No keyframe found out of ${C} video samples`), f = !1);
33924
33923
  if (this.ISGenerated) {
33925
33924
  if (I && E) {
33926
33925
  const ue = this.getVideoStartPts(t.samples), me = (Ut(e.samples[0].pts, ue) - ue) / t.inputTimeScale;
33927
33926
  g += Math.max(0, me), p += Math.max(0, -me);
33928
33927
  }
33929
33928
  if (I) {
33930
- if (e.samplerate || (P.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"), u = this.generateIS(e, t, a, o)), d = this.remuxAudio(e, g, this.isAudioContiguous, o, C || E || c === ve.AUDIO ? p : void 0), E) {
33929
+ if (e.samplerate || (P.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"), u = this.generateIS(e, t, a, o)), d = this.remuxAudio(e, g, this.isAudioContiguous, o, S || E || c === ve.AUDIO ? p : void 0), E) {
33931
33930
  const ue = d ? d.endPTS - d.startPTS : 0;
33932
33931
  t.inputTimeScale || (P.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), u = this.generateIS(e, t, a, o)), l = this.remuxVideo(t, p, Z, ue);
33933
33932
  }
@@ -34006,21 +34005,21 @@ class In {
34006
34005
  let d = this.nextAvcDts, u = 8, m = this.videoSampleDuration, h, f, g = Number.POSITIVE_INFINITY, p = Number.NEGATIVE_INFINITY, A = !1;
34007
34006
  if (!i || d === null) {
34008
34007
  const oe = t * a, ne = o[0].pts - Ut(o[0].dts, o[0].pts);
34009
- si && d !== null && Math.abs(oe - ne - d) < 15e3 ? i = !0 : d = oe - ne;
34008
+ ii && d !== null && Math.abs(oe - ne - d) < 15e3 ? i = !0 : d = oe - ne;
34010
34009
  }
34011
- const C = l.baseTime * a / l.timescale;
34010
+ const S = l.baseTime * a / l.timescale;
34012
34011
  for (let oe = 0; oe < c; oe++) {
34013
34012
  const ne = o[oe];
34014
- ne.pts = Ut(ne.pts - C, d), ne.dts = Ut(ne.dts - C, d), ne.dts < o[oe > 0 ? oe - 1 : oe].dts && (A = !0);
34013
+ ne.pts = Ut(ne.pts - S, d), ne.dts = Ut(ne.dts - S, d), ne.dts < o[oe > 0 ? oe - 1 : oe].dts && (A = !0);
34015
34014
  }
34016
34015
  A && o.sort(function(oe, ne) {
34017
34016
  const Q = oe.dts - ne.dts, V = oe.pts - ne.pts;
34018
34017
  return Q || V;
34019
34018
  }), h = o[0].dts, f = o[o.length - 1].dts;
34020
- const S = f - h, I = S ? Math.round(S / (c - 1)) : m || e.inputTimeScale / 30;
34019
+ const C = f - h, I = C ? Math.round(C / (c - 1)) : m || e.inputTimeScale / 30;
34021
34020
  if (i) {
34022
34021
  const oe = h - d, ne = oe > I, Q = oe < -1;
34023
- if ((ne || Q) && (ne ? P.warn(`AVC: ${Oi(oe, !0)} ms (${oe}dts) hole between fragments detected at ${t.toFixed(3)}`) : P.warn(`AVC: ${Oi(-oe, !0)} ms (${oe}dts) overlapping between fragments detected at ${t.toFixed(3)}`), !Q || d >= o[0].pts || si)) {
34022
+ if ((ne || Q) && (ne ? P.warn(`AVC: ${Oi(oe, !0)} ms (${oe}dts) hole between fragments detected at ${t.toFixed(3)}`) : P.warn(`AVC: ${Oi(-oe, !0)} ms (${oe}dts) overlapping between fragments detected at ${t.toFixed(3)}`), !Q || d >= o[0].pts || ii)) {
34024
34023
  h = d;
34025
34024
  const V = o[0].pts - oe;
34026
34025
  if (ne)
@@ -34081,8 +34080,8 @@ class In {
34081
34080
  ie = Math.min(ie, m), ue = Math.max(ue, m), $ = Math.min($, Y), fe = Math.max(fe, Y), r.push(new vh(ne.key, m, V, X));
34082
34081
  }
34083
34082
  if (r.length) {
34084
- if (si) {
34085
- if (si < 70) {
34083
+ if (ii) {
34084
+ if (ii < 70) {
34086
34085
  const oe = r[0].flags;
34087
34086
  oe.dependsOn = 2, oe.isNonSync = 0;
34088
34087
  }
@@ -34131,13 +34130,13 @@ class In {
34131
34130
  remuxAudio(e, t, i, n, a) {
34132
34131
  const o = e.inputTimeScale, r = e.samplerate ? e.samplerate : o, c = o / r, l = this.getSamplesPerFrame(e), d = l * c, u = this._initPTS, m = e.segmentCodec === "mp3" && this.typeSupported.mpeg, h = [], f = a !== void 0;
34133
34132
  let g = e.samples, p = m ? 0 : 8, A = this.nextAudioPts || -1;
34134
- const C = t * o, S = u.baseTime * o / u.timescale;
34135
- if (this.isAudioContiguous = i = i || g.length && A > 0 && (n && Math.abs(C - A) < 9e3 || Math.abs(Ut(g[0].pts - S, C) - A) < 20 * d), g.forEach(function(me) {
34136
- me.pts = Ut(me.pts - S, C);
34133
+ const S = t * o, C = u.baseTime * o / u.timescale;
34134
+ if (this.isAudioContiguous = i = i || g.length && A > 0 && (n && Math.abs(S - A) < 9e3 || Math.abs(Ut(g[0].pts - C, S) - A) < 20 * d), g.forEach(function(me) {
34135
+ me.pts = Ut(me.pts - C, S);
34137
34136
  }), !i || A < 0) {
34138
34137
  if (g = g.filter((me) => me.pts >= 0), !g.length)
34139
34138
  return;
34140
- a === 0 ? A = 0 : n && !f ? A = Math.max(0, C) : A = g[0].pts;
34139
+ a === 0 ? A = 0 : n && !f ? A = Math.max(0, S) : A = g[0].pts;
34141
34140
  }
34142
34141
  if (e.segmentCodec === "aac") {
34143
34142
  const me = this.config.maxAudioFramesDrift;
@@ -34222,11 +34221,11 @@ class In {
34222
34221
  }
34223
34222
  const p = [];
34224
34223
  for (let A = 0; A < f; A++) {
34225
- const C = u + A * h;
34224
+ const S = u + A * h;
34226
34225
  p.push({
34227
34226
  unit: g,
34228
- pts: C,
34229
- dts: C
34227
+ pts: S,
34228
+ dts: S
34230
34229
  });
34231
34230
  }
34232
34231
  return e.samples = p, this.remuxAudio(e, t, i, !1);
@@ -34361,17 +34360,17 @@ class $P {
34361
34360
  baseTime: h.initPTS,
34362
34361
  timescale: 1
34363
34362
  });
34364
- const C = e ? A - l.baseTime / l.timescale : d, S = C + g;
34365
- dM(f, m, l.baseTime / l.timescale), g > 0 ? this.lastEndTime = S : (P.warn("Duration parsed from mp4 should be greater than zero"), this.resetNextTimestamp());
34363
+ const S = e ? A - l.baseTime / l.timescale : d, C = S + g;
34364
+ dM(f, m, l.baseTime / l.timescale), g > 0 ? this.lastEndTime = C : (P.warn("Duration parsed from mp4 should be greater than zero"), this.resetNextTimestamp());
34366
34365
  const I = !!f.audio, E = !!f.video;
34367
34366
  let F = "";
34368
34367
  I && (F += "audio"), E && (F += "video");
34369
34368
  const O = {
34370
34369
  data1: m,
34371
- startPTS: C,
34372
- startDTS: C,
34373
- endPTS: S,
34374
- endDTS: S,
34370
+ startPTS: S,
34371
+ startDTS: S,
34372
+ endPTS: C,
34373
+ endDTS: C,
34375
34374
  type: F,
34376
34375
  hasAudio: I,
34377
34376
  hasVideo: E,
@@ -34451,8 +34450,8 @@ class Ah {
34451
34450
  audioCodec: g,
34452
34451
  videoCodec: p,
34453
34452
  defaultInitPts: A,
34454
- duration: C,
34455
- initSegmentData: S
34453
+ duration: S,
34454
+ initSegmentData: C
34456
34455
  } = c, I = t3(o, t);
34457
34456
  if (I && I.method === "AES-128") {
34458
34457
  const j = this.getDecrypter();
@@ -34479,7 +34478,7 @@ class Ah {
34479
34478
  reason: j.message
34480
34479
  }), a.executeEnd = Ss(), Co(i);
34481
34480
  }
34482
- (d || u || f || E) && this.resetInitSegment(S, g, p, C, t), (d || f || E) && this.resetInitialTimestamp(A), l || this.resetContiguity();
34481
+ (d || u || f || E) && this.resetInitSegment(C, g, p, S, t), (d || f || E) && this.resetInitialTimestamp(A), l || this.resetContiguity();
34483
34482
  const F = this.transmux(o, I, h, m, i), O = this.currentTransmuxState;
34484
34483
  return O.contiguous = !0, O.discontinuity = !1, O.trackSwitch = !1, a.executeEnd = Ss(), F;
34485
34484
  }
@@ -34662,7 +34661,7 @@ var ep = { exports: {} };
34662
34661
  }, r.prototype.emit = function(l, d, u, m, h, f) {
34663
34662
  var g = t ? t + l : l;
34664
34663
  if (!this._events[g]) return !1;
34665
- var p = this._events[g], A = arguments.length, C, S;
34664
+ var p = this._events[g], A = arguments.length, S, C;
34666
34665
  if (p.fn) {
34667
34666
  switch (p.once && this.removeListener(l, p.fn, void 0, !0), A) {
34668
34667
  case 1:
@@ -34678,29 +34677,29 @@ var ep = { exports: {} };
34678
34677
  case 6:
34679
34678
  return p.fn.call(p.context, d, u, m, h, f), !0;
34680
34679
  }
34681
- for (S = 1, C = new Array(A - 1); S < A; S++)
34682
- C[S - 1] = arguments[S];
34683
- p.fn.apply(p.context, C);
34680
+ for (C = 1, S = new Array(A - 1); C < A; C++)
34681
+ S[C - 1] = arguments[C];
34682
+ p.fn.apply(p.context, S);
34684
34683
  } else {
34685
34684
  var I = p.length, E;
34686
- for (S = 0; S < I; S++)
34687
- switch (p[S].once && this.removeListener(l, p[S].fn, void 0, !0), A) {
34685
+ for (C = 0; C < I; C++)
34686
+ switch (p[C].once && this.removeListener(l, p[C].fn, void 0, !0), A) {
34688
34687
  case 1:
34689
- p[S].fn.call(p[S].context);
34688
+ p[C].fn.call(p[C].context);
34690
34689
  break;
34691
34690
  case 2:
34692
- p[S].fn.call(p[S].context, d);
34691
+ p[C].fn.call(p[C].context, d);
34693
34692
  break;
34694
34693
  case 3:
34695
- p[S].fn.call(p[S].context, d, u);
34694
+ p[C].fn.call(p[C].context, d, u);
34696
34695
  break;
34697
34696
  case 4:
34698
- p[S].fn.call(p[S].context, d, u, m);
34697
+ p[C].fn.call(p[C].context, d, u, m);
34699
34698
  break;
34700
34699
  default:
34701
- if (!C) for (E = 1, C = new Array(A - 1); E < A; E++)
34702
- C[E - 1] = arguments[E];
34703
- p[S].fn.apply(p[S].context, C);
34700
+ if (!S) for (E = 1, S = new Array(A - 1); E < A; E++)
34701
+ S[E - 1] = arguments[E];
34702
+ p[C].fn.apply(p[C].context, S);
34704
34703
  }
34705
34704
  }
34706
34705
  return !0;
@@ -34737,7 +34736,7 @@ class tp {
34737
34736
  d = d || {}, d.frag = this.frag, d.id = this.id, l === w.ERROR && (this.error = d.error), this.hls.trigger(l, d);
34738
34737
  };
34739
34738
  this.observer = new ac(), this.observer.on(w.FRAG_DECRYPTED, o), this.observer.on(w.ERROR, o);
34740
- const r = Qs(a.preferManagedMediaSource) || {
34739
+ const r = Js(a.preferManagedMediaSource) || {
34741
34740
  isTypeSupported: () => !1
34742
34741
  }, c = {
34743
34742
  mpeg: r.isTypeSupported("audio/mpeg"),
@@ -34797,13 +34796,13 @@ class tp {
34797
34796
  l.transmuxing.start = self.performance.now();
34798
34797
  const {
34799
34798
  transmuxer: h
34800
- } = this, f = o ? o.start : a.start, g = a.decryptdata, p = this.frag, A = !(p && a.cc === p.cc), C = !(p && l.level === p.level), S = p ? l.sn - p.sn : -1, I = this.part ? l.part - this.part.index : -1, E = S === 0 && l.id > 1 && l.id === (p == null ? void 0 : p.stats.chunkCount), F = !C && (S === 1 || S === 0 && (I === 1 || E && I <= 0)), O = self.performance.now();
34801
- (C || S || a.stats.parsing.start === 0) && (a.stats.parsing.start = O), o && (I || !F) && (o.stats.parsing.start = O);
34802
- const j = !(p && ((u = a.initSegment) == null ? void 0 : u.url) === ((m = p.initSegment) == null ? void 0 : m.url)), D = new i3(A, F, c, C, f, j);
34799
+ } = this, f = o ? o.start : a.start, g = a.decryptdata, p = this.frag, A = !(p && a.cc === p.cc), S = !(p && l.level === p.level), C = p ? l.sn - p.sn : -1, I = this.part ? l.part - this.part.index : -1, E = C === 0 && l.id > 1 && l.id === (p == null ? void 0 : p.stats.chunkCount), F = !S && (C === 1 || C === 0 && (I === 1 || E && I <= 0)), O = self.performance.now();
34800
+ (S || C || a.stats.parsing.start === 0) && (a.stats.parsing.start = O), o && (I || !F) && (o.stats.parsing.start = O);
34801
+ const j = !(p && ((u = a.initSegment) == null ? void 0 : u.url) === ((m = p.initSegment) == null ? void 0 : m.url)), D = new i3(A, F, c, S, f, j);
34803
34802
  if (!F || A || j) {
34804
34803
  P.log(`[transmuxer-interface, ${a.type}]: Starting new transmux session for sn: ${l.sn} p: ${l.part} level: ${l.level} id: ${l.id}
34805
34804
  discontinuity: ${A}
34806
- trackSwitch: ${C}
34805
+ trackSwitch: ${S}
34807
34806
  contiguous: ${F}
34808
34807
  accurateTimeOffset: ${c}
34809
34808
  timeOffset: ${f}
@@ -35077,19 +35076,19 @@ class a3 extends ec {
35077
35076
  }
35078
35077
  if (h >= f && !u && A < g[g.length - 1].start)
35079
35078
  return;
35080
- let C = this.getNextFragment(A, r), S = !1;
35081
- if (C && this.isLoopLoading(C, A) && (S = !!C.gap, C = this.getNextFragmentLoopLoading(C, r, l, ve.MAIN, f)), !C) {
35079
+ let S = this.getNextFragment(A, r), C = !1;
35080
+ if (S && this.isLoopLoading(S, A) && (C = !!S.gap, S = this.getNextFragmentLoopLoading(S, r, l, ve.MAIN, f)), !S) {
35082
35081
  this.bufferFlushed = !0;
35083
35082
  return;
35084
35083
  }
35085
- const I = m && C.start > m.end + r.targetduration;
35084
+ const I = m && S.start > m.end + r.targetduration;
35086
35085
  if (I || // Or wait for main buffer after buffing some audio
35087
35086
  !(m != null && m.len) && l.len) {
35088
- const E = this.getAppendedFrag(C.start, ve.MAIN);
35089
- if (E === null || (S || (S = !!E.gap || !!I && m.len === 0), I && !S || S && l.nextStart && l.nextStart < E.end))
35087
+ const E = this.getAppendedFrag(S.start, ve.MAIN);
35088
+ if (E === null || (C || (C = !!E.gap || !!I && m.len === 0), I && !C || C && l.nextStart && l.nextStart < E.end))
35090
35089
  return;
35091
35090
  }
35092
- this.loadFragment(C, o, A);
35091
+ this.loadFragment(S, o, A);
35093
35092
  }
35094
35093
  getMaxBufferLength(e) {
35095
35094
  const t = super.getMaxBufferLength();
@@ -35180,8 +35179,8 @@ class a3 extends ec {
35180
35179
  m || (m = this.transmuxer = new tp(this.hls, ve.AUDIO, this._handleTransmuxComplete.bind(this), this._handleTransmuxerFlush.bind(this)));
35181
35180
  const h = this.initPTS[i.cc], f = (t = i.initSegment) == null ? void 0 : t.data;
35182
35181
  if (h !== void 0) {
35183
- const p = n ? n.index : -1, A = p !== -1, C = new _l(i.level, i.sn, i.stats.chunkCount, a.byteLength, p, A);
35184
- m.push(a, f, u, "", i, n, d.totalduration, !1, C, h);
35182
+ const p = n ? n.index : -1, A = p !== -1, S = new _l(i.level, i.sn, i.stats.chunkCount, a.byteLength, p, A);
35183
+ m.push(a, f, u, "", i, n, d.totalduration, !1, S, h);
35185
35184
  } else {
35186
35185
  this.log(`Unknown video PTS for cc ${i.cc}, waiting for video PTS before demuxing audio frag ${i.sn} of [${d.startSN} ,${d.endSN}],track ${r}`);
35187
35186
  const {
@@ -35322,15 +35321,15 @@ class a3 extends ec {
35322
35321
  const {
35323
35322
  startPTS: p,
35324
35323
  endPTS: A,
35325
- startDTS: C,
35326
- endDTS: S
35324
+ startDTS: S,
35325
+ endDTS: C
35327
35326
  } = m;
35328
35327
  l && (l.elementaryStreams[We.AUDIO] = {
35329
35328
  startPTS: p,
35330
35329
  endPTS: A,
35331
- startDTS: C,
35332
- endDTS: S
35333
- }), c.setElementaryStreamInfo(We.AUDIO, p, A, C, S), this.bufferFragmentData(m, c, l, o);
35330
+ startDTS: S,
35331
+ endDTS: C
35332
+ }), c.setElementaryStreamInfo(We.AUDIO, p, A, S, C), this.bufferFragmentData(m, c, l, o);
35334
35333
  }
35335
35334
  if (f != null && (t = f.samples) != null && t.length) {
35336
35335
  const p = lt({
@@ -35464,7 +35463,7 @@ class o3 extends Xl {
35464
35463
  this.tracksInGroup = r;
35465
35464
  const c = this.hls.config.audioPreference;
35466
35465
  if (!a && c) {
35467
- const m = gs(c, r, $s);
35466
+ const m = gs(c, r, ei);
35468
35467
  if (m > -1)
35469
35468
  a = r[m];
35470
35469
  else {
@@ -35514,16 +35513,16 @@ class o3 extends Xl {
35514
35513
  const i = this.allAudioTracks;
35515
35514
  if (this.selectDefaultTrack = !1, i.length) {
35516
35515
  const n = this.currentTrack;
35517
- if (n && oi(e, n, $s))
35516
+ if (n && oi(e, n, ei))
35518
35517
  return n;
35519
- const a = gs(e, this.tracksInGroup, $s);
35518
+ const a = gs(e, this.tracksInGroup, ei);
35520
35519
  if (a > -1) {
35521
35520
  const o = this.tracksInGroup[a];
35522
35521
  return this.setAudioTrack(a), o;
35523
35522
  } else if (n) {
35524
35523
  let o = t.loadLevel;
35525
35524
  o === -1 && (o = t.firstAutoLevel);
35526
- const r = oP(e, t.levels, i, o, $s);
35525
+ const r = oP(e, t.levels, i, o, ei);
35527
35526
  if (r === -1)
35528
35527
  return null;
35529
35528
  t.nextLoadLevel = r;
@@ -35554,7 +35553,7 @@ class o3 extends Xl {
35554
35553
  const t = this.tracksInGroup;
35555
35554
  for (let i = 0; i < t.length; i++) {
35556
35555
  const n = t[i];
35557
- if (!(this.selectDefaultTrack && !n.default) && (!e || oi(e, n, $s)))
35556
+ if (!(this.selectDefaultTrack && !n.default) && (!e || oi(e, n, ei)))
35558
35557
  return i;
35559
35558
  }
35560
35559
  if (e) {
@@ -35575,7 +35574,7 @@ class o3 extends Xl {
35575
35574
  characteristics: o,
35576
35575
  audioCodec: r,
35577
35576
  channels: c
35578
- }, d, $s))
35577
+ }, d, ei))
35579
35578
  return l;
35580
35579
  }
35581
35580
  for (let l = 0; l < t.length; l++) {
@@ -35811,15 +35810,15 @@ class r3 extends ec {
35811
35810
  let g = null;
35812
35811
  const p = this.fragPrevious;
35813
35812
  if (r < f) {
35814
- const A = n.maxFragLookUpTolerance, C = r > f - A ? 0 : A;
35815
- g = sa(p, m, Math.max(m[0].start, r), C), !g && p && p.start < m[0].start && (g = m[0]);
35813
+ const A = n.maxFragLookUpTolerance, S = r > f - A ? 0 : A;
35814
+ g = sa(p, m, Math.max(m[0].start, r), S), !g && p && p.start < m[0].start && (g = m[0]);
35816
35815
  } else
35817
35816
  g = m[h - 1];
35818
35817
  if (!g)
35819
35818
  return;
35820
35819
  if (g = this.mapToInitFragWhenRequired(g), g.sn !== "initSegment") {
35821
- const A = g.sn - d.startSN, C = m[A - 1];
35822
- C && C.cc === g.cc && this.fragmentTracker.getState(C) === wt.NOT_LOADED && (g = C);
35820
+ const A = g.sn - d.startSN, S = m[A - 1];
35821
+ S && S.cc === g.cc && this.fragmentTracker.getState(S) === wt.NOT_LOADED && (g = S);
35823
35822
  }
35824
35823
  this.fragmentTracker.getState(g) === wt.NOT_LOADED && this.loadFragment(g, i, r);
35825
35824
  }
@@ -36209,7 +36208,7 @@ class u3 {
36209
36208
  i !== n && P.error(`Media element src was set while attaching MediaSource (${n} > ${i})`);
36210
36209
  }, this.hls = e;
36211
36210
  const t = "[buffer-controller]";
36212
- this.appendSource = AM(Qs(e.config.preferManagedMediaSource)), this.log = P.log.bind(P, t), this.warn = P.warn.bind(P, t), this.error = P.error.bind(P, t), this._initSourceBuffer(), this.registerListeners();
36211
+ this.appendSource = AM(Js(e.config.preferManagedMediaSource)), this.log = P.log.bind(P, t), this.warn = P.warn.bind(P, t), this.error = P.error.bind(P, t), this._initSourceBuffer(), this.registerListeners();
36213
36212
  }
36214
36213
  hasSourceTypes() {
36215
36214
  return this.getSourceBufferTypes().length > 0 || Object.keys(this.pendingTracks).length > 0;
@@ -36248,7 +36247,7 @@ class u3 {
36248
36247
  (t.audio && !t.video || !t.altAudio) && (i = 1), this.bufferCodecEventsExpected = this._bufferCodecEventsTotal = i, this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`);
36249
36248
  }
36250
36249
  onMediaAttaching(e, t) {
36251
- const i = this.media = t.media, n = Qs(this.appendSource);
36250
+ const i = this.media = t.media, n = Js(this.appendSource);
36252
36251
  if (i && n) {
36253
36252
  var a;
36254
36253
  const o = this.mediaSource = new n();
@@ -36318,8 +36317,8 @@ class u3 {
36318
36317
  const A = (r = p) == null ? void 0 : r.replace(Ch, "$1");
36319
36318
  if (p && g !== A) {
36320
36319
  o.slice(0, 5) === "audio" && (p = _n(p, this.appendSource));
36321
- const C = `${m};codecs=${p}`;
36322
- this.appendChangeType(o, C), this.log(`switching codec ${f} to ${p}`), this.tracks[o] = {
36320
+ const S = `${m};codecs=${p}`;
36321
+ this.appendChangeType(o, S), this.log(`switching codec ${f} to ${p}`), this.tracks[o] = {
36323
36322
  buffer: c.buffer,
36324
36323
  codec: d,
36325
36324
  container: m,
@@ -36372,13 +36371,13 @@ class u3 {
36372
36371
  const g = a.audio;
36373
36372
  let p = !1;
36374
36373
  r === "audio" && (g == null ? void 0 : g.container) === "audio/mpeg" && (p = !this.lastMpegAudioChunk || d.id === 1 || this.lastMpegAudioChunk.sn !== d.sn, this.lastMpegAudioChunk = d);
36375
- const A = c.start, C = {
36374
+ const A = c.start, S = {
36376
36375
  execute: () => {
36377
36376
  if (u.executeStart = self.performance.now(), p) {
36378
- const S = this.sourceBuffer[r];
36379
- if (S) {
36380
- const I = A - S.timestampOffset;
36381
- Math.abs(I) >= 0.1 && (this.log(`Updating audio SourceBuffer timestampOffset to ${A} (delta: ${I}) sn: ${c.sn})`), S.timestampOffset = A);
36377
+ const C = this.sourceBuffer[r];
36378
+ if (C) {
36379
+ const I = A - C.timestampOffset;
36380
+ Math.abs(I) >= 0.1 && (this.log(`Updating audio SourceBuffer timestampOffset to ${A} (delta: ${I}) sn: ${c.sn})`), C.timestampOffset = A);
36382
36381
  }
36383
36382
  }
36384
36383
  this.appendExecutor(o, r);
@@ -36386,8 +36385,8 @@ class u3 {
36386
36385
  onStart: () => {
36387
36386
  },
36388
36387
  onComplete: () => {
36389
- const S = self.performance.now();
36390
- u.executeEnd = u.end = S, h.first === 0 && (h.first = S), f && f.first === 0 && (f.first = S);
36388
+ const C = self.performance.now();
36389
+ u.executeEnd = u.end = C, h.first === 0 && (h.first = C), f && f.first === 0 && (f.first = C);
36391
36390
  const {
36392
36391
  sourceBuffer: I
36393
36392
  } = this, E = {};
@@ -36402,7 +36401,7 @@ class u3 {
36402
36401
  timeRanges: E
36403
36402
  });
36404
36403
  },
36405
- onError: (S) => {
36404
+ onError: (C) => {
36406
36405
  const I = {
36407
36406
  type: Te.MEDIA_ERROR,
36408
36407
  parent: c.type,
@@ -36411,11 +36410,11 @@ class u3 {
36411
36410
  frag: c,
36412
36411
  part: l,
36413
36412
  chunkMeta: d,
36414
- error: S,
36415
- err: S,
36413
+ error: C,
36414
+ err: C,
36416
36415
  fatal: !1
36417
36416
  };
36418
- if (S.code === DOMException.QUOTA_EXCEEDED_ERR)
36417
+ if (C.code === DOMException.QUOTA_EXCEEDED_ERR)
36419
36418
  I.details = U.BUFFER_FULL_ERROR;
36420
36419
  else {
36421
36420
  const E = ++this.appendErrors[r];
@@ -36424,7 +36423,7 @@ class u3 {
36424
36423
  i.trigger(w.ERROR, I);
36425
36424
  }
36426
36425
  };
36427
- n.append(C, r, !!this.pendingTracks[r]);
36426
+ n.append(S, r, !!this.pendingTracks[r]);
36428
36427
  }
36429
36428
  onBufferFlushing(e, t) {
36430
36429
  const {
@@ -37550,7 +37549,7 @@ var oc = function() {
37550
37549
  enumerable: !0
37551
37550
  };
37552
37551
  d.hasBeenReset = !1;
37553
- let m = "", h = !1, f = r, g = c, p = l, A = null, C = "", S = !0, I = "auto", E = "start", F = 50, O = "middle", j = 50, D = "middle";
37552
+ let m = "", h = !1, f = r, g = c, p = l, A = null, S = "", C = !0, I = "auto", E = "start", F = 50, O = "middle", j = 50, D = "middle";
37554
37553
  Object.defineProperty(d, "id", a({}, u, {
37555
37554
  get: function() {
37556
37555
  return m;
@@ -37599,20 +37598,20 @@ var oc = function() {
37599
37598
  }
37600
37599
  })), Object.defineProperty(d, "vertical", a({}, u, {
37601
37600
  get: function() {
37602
- return C;
37601
+ return S;
37603
37602
  },
37604
37603
  set: function(N) {
37605
37604
  const Z = i(N);
37606
37605
  if (Z === !1)
37607
37606
  throw new SyntaxError("An invalid or illegal string was specified.");
37608
- C = Z, this.hasBeenReset = !0;
37607
+ S = Z, this.hasBeenReset = !0;
37609
37608
  }
37610
37609
  })), Object.defineProperty(d, "snapToLines", a({}, u, {
37611
37610
  get: function() {
37612
- return S;
37611
+ return C;
37613
37612
  },
37614
37613
  set: function(N) {
37615
- S = !!N, this.hasBeenReset = !0;
37614
+ C = !!N, this.hasBeenReset = !0;
37616
37615
  }
37617
37616
  })), Object.defineProperty(d, "line", a({}, u, {
37618
37617
  get: function() {
@@ -37941,16 +37940,16 @@ function F3(s, e, t, i, n, a, o) {
37941
37940
  let u = "00:00.000", m = 0, h = 0, f, g = !0;
37942
37941
  r.oncue = function(p) {
37943
37942
  const A = t[i];
37944
- let C = t.ccOffset;
37945
- const S = (m - d) / 9e4;
37946
- if (A != null && A.new && (h !== void 0 ? C = t.ccOffset = A.start : I3(t, i, S)), S) {
37943
+ let S = t.ccOffset;
37944
+ const C = (m - d) / 9e4;
37945
+ if (A != null && A.new && (h !== void 0 ? S = t.ccOffset = A.start : I3(t, i, C)), C) {
37947
37946
  if (!e) {
37948
37947
  f = new Error("Missing initPTS for VTT MPEGTS");
37949
37948
  return;
37950
37949
  }
37951
- C = S - t.presentationOffset;
37950
+ S = C - t.presentationOffset;
37952
37951
  }
37953
- const I = p.endTime - p.startTime, E = Ut((p.startTime + C - h) * 9e4, n * 9e4) / 9e4;
37952
+ const I = p.endTime - p.startTime, E = Ut((p.startTime + S - h) * 9e4, n * 9e4) / 9e4;
37954
37953
  p.startTime = Math.max(E, 0), p.endTime = Math.max(E + I, 0);
37955
37954
  const F = p.text.trim();
37956
37955
  p.text = decodeURIComponent(encodeURIComponent(F)), p.id || (p.id = rc(p.startTime, p.endTime, F)), p.endTime > 0 && l.push(p);
@@ -38024,14 +38023,14 @@ function M3(s, e) {
38024
38023
  }
38025
38024
  const p = new oc(h - e, g - e, m);
38026
38025
  p.id = rc(p.startTime, p.endTime, p.text);
38027
- const A = l[u.getAttribute("region")], C = c[u.getAttribute("style")], S = P3(A, C, c), {
38026
+ const A = l[u.getAttribute("region")], S = c[u.getAttribute("style")], C = P3(A, S, c), {
38028
38027
  textAlign: I
38029
- } = S;
38028
+ } = C;
38030
38029
  if (I) {
38031
38030
  const E = L3[I];
38032
38031
  E && (p.lineAlign = E), p.align = I;
38033
38032
  }
38034
- return lt(p, S), p;
38033
+ return lt(p, C), p;
38035
38034
  }).filter((u) => u !== null);
38036
38035
  }
38037
38036
  function Ro(s, e, t) {
@@ -38976,8 +38975,8 @@ class ri {
38976
38975
  messageType: p,
38977
38976
  message: A
38978
38977
  } = f;
38979
- this.log(`"${p}" message event for session "${g.sessionId}" message size: ${A.byteLength}`), p === "license-request" || p === "license-renewal" ? this.renewLicense(e, A).catch((C) => {
38980
- this.handleError(C), d.emit("error", C);
38978
+ this.log(`"${p}" message event for session "${g.sessionId}" message size: ${A.byteLength}`), p === "license-request" || p === "license-renewal" ? this.renewLicense(e, A).catch((S) => {
38979
+ this.handleError(S), d.emit("error", S);
38981
38980
  }) : p === "license-release" ? e.keySystem === et.FAIRPLAY && (this.updateKeySession(e, Or("acknowledged")), this.removeSession(e)) : this.warn(`unhandled media key message type "${p}"`);
38982
38981
  }, m = e._onkeystatuseschange = (f) => {
38983
38982
  if (!e.mediaKeysSession) {
@@ -39238,15 +39237,15 @@ var zr;
39238
39237
  (function(s) {
39239
39238
  s.DASH = "d", s.HLS = "h", s.SMOOTH = "s", s.OTHER = "o";
39240
39239
  })(zr || (zr = {}));
39241
- var Gs;
39240
+ var Hs;
39242
39241
  (function(s) {
39243
39242
  s.OBJECT = "CMCD-Object", s.REQUEST = "CMCD-Request", s.SESSION = "CMCD-Session", s.STATUS = "CMCD-Status";
39244
- })(Gs || (Gs = {}));
39243
+ })(Hs || (Hs = {}));
39245
39244
  const V3 = {
39246
- [Gs.OBJECT]: ["br", "d", "ot", "tb"],
39247
- [Gs.REQUEST]: ["bl", "dl", "mtp", "nor", "nrr", "su"],
39248
- [Gs.SESSION]: ["cid", "pr", "sf", "sid", "st", "v"],
39249
- [Gs.STATUS]: ["bs", "rtp"]
39245
+ [Hs.OBJECT]: ["br", "d", "ot", "tb"],
39246
+ [Hs.REQUEST]: ["bl", "dl", "mtp", "nor", "nrr", "su"],
39247
+ [Hs.SESSION]: ["cid", "pr", "sf", "sid", "st", "v"],
39248
+ [Hs.STATUS]: ["bs", "rtp"]
39250
39249
  };
39251
39250
  class mi {
39252
39251
  constructor(e, t) {
@@ -39465,7 +39464,7 @@ function p8(s, e = {}) {
39465
39464
  return {};
39466
39465
  const t = Object.entries(s), i = Object.entries(V3).concat(Object.entries((e == null ? void 0 : e.customHeaderMap) || {})), n = t.reduce((a, o) => {
39467
39466
  var r, c;
39468
- const [l, d] = o, u = ((r = i.find((m) => m[1].includes(l))) == null ? void 0 : r[0]) || Gs.REQUEST;
39467
+ const [l, d] = o, u = ((r = i.find((m) => m[1].includes(l))) == null ? void 0 : r[0]) || Hs.REQUEST;
39469
39468
  return (c = a[u]) != null || (a[u] = {}), a[u][l] = d, a;
39470
39469
  }, {});
39471
39470
  return Object.entries(n).reduce((a, [o, r]) => (a[o] = pp(r, e), a), {});
@@ -39860,11 +39859,11 @@ class C8 {
39860
39859
  return;
39861
39860
  }
39862
39861
  this.scheduleRefresh(this.uri || m.url), p && this.clonePathways(p);
39863
- const C = {
39862
+ const S = {
39864
39863
  steeringManifest: f,
39865
39864
  url: n.toString()
39866
39865
  };
39867
- this.hls.trigger(w.STEERING_MANIFEST_LOADED, C), A && this.updatePathwayPriority(A);
39866
+ this.hls.trigger(w.STEERING_MANIFEST_LOADED, S), A && this.updatePathwayPriority(A);
39868
39867
  },
39869
39868
  onError: (d, u, m, h) => {
39870
39869
  if (this.log(`Error loading steering manifest: ${d.code} ${d.text} (${u.url})`), this.stopLoad(), d.code === 410) {
@@ -40563,18 +40562,18 @@ class U8 extends Xl {
40563
40562
  const {
40564
40563
  width: p,
40565
40564
  height: A,
40566
- unknownCodecs: C
40565
+ unknownCodecs: S
40567
40566
  } = d;
40568
- if (r || (r = !!(p && A)), c || (c = !!g), l || (l = !!f), C != null && C.length || f && !po(f, "audio", i) || g && !po(g, "video", i))
40567
+ if (r || (r = !!(p && A)), c || (c = !!g), l || (l = !!f), S != null && S.length || f && !po(f, "audio", i) || g && !po(g, "video", i))
40569
40568
  return;
40570
40569
  const {
40571
- CODECS: S,
40570
+ CODECS: C,
40572
40571
  "FRAME-RATE": I,
40573
40572
  "HDCP-LEVEL": E,
40574
40573
  "PATHWAY-ID": F,
40575
40574
  RESOLUTION: O,
40576
40575
  "VIDEO-RANGE": j
40577
- } = h, N = `${`${F || "."}-`}${d.bitrate}-${O}-${I}-${S}-${j}-${E}`;
40576
+ } = h, N = `${`${F || "."}-`}${d.bitrate}-${O}-${I}-${C}-${j}-${E}`;
40578
40577
  if (a[N])
40579
40578
  if (a[N].uri !== d.url && !d.attrs["PATHWAY-ID"]) {
40580
40579
  const Z = o[N] += 1;
@@ -40988,9 +40987,9 @@ class z8 {
40988
40987
  const {
40989
40988
  frag: p,
40990
40989
  keyInfo: A,
40991
- url: C
40990
+ url: S
40992
40991
  } = f;
40993
- if (!p.decryptdata || A !== this.keyUriToKeyInfo[C])
40992
+ if (!p.decryptdata || A !== this.keyUriToKeyInfo[S])
40994
40993
  return r(this.createKeyLoadError(p, U.KEY_LOAD_ERROR, new Error("after key load, decryptdata unset or changed"), g));
40995
40994
  A.decryptdata.key = p.decryptdata.key = new Uint8Array(m.data), p.keyLoader = null, A.loader = null, o({
40996
40995
  frag: p,
@@ -41026,7 +41025,7 @@ function Ap() {
41026
41025
  return self.SourceBuffer || self.WebKitSourceBuffer;
41027
41026
  }
41028
41027
  function wp() {
41029
- if (!Qs())
41028
+ if (!Js())
41030
41029
  return !1;
41031
41030
  const e = Ap();
41032
41031
  return !e || e.prototype && typeof e.prototype.appendBuffer == "function" && typeof e.prototype.remove == "function";
@@ -41034,7 +41033,7 @@ function wp() {
41034
41033
  function V8() {
41035
41034
  if (!wp())
41036
41035
  return !1;
41037
- const s = Qs();
41036
+ const s = Js();
41038
41037
  return typeof (s == null ? void 0 : s.isTypeSupported) == "function" && (["avc1.42E01E,mp4a.40.2", "av01.0.01M.08", "vp09.00.50.08"].some((e) => s.isTypeSupported(Gi(e, "video"))) || ["mp4a.40.2", "fLaC"].some((e) => s.isTypeSupported(Gi(e, "audio"))));
41039
41038
  }
41040
41039
  function j8() {
@@ -41097,7 +41096,7 @@ class q8 {
41097
41096
  var m;
41098
41097
  if (!(d.len > 0) && !u)
41099
41098
  return;
41100
- const A = Math.max(u, d.start || 0) - o, C = this.hls.levels ? this.hls.levels[this.hls.currentLevel] : null, I = (C == null || (m = C.details) == null ? void 0 : m.live) ? C.details.targetduration * 2 : Pn, E = this.fragmentTracker.getPartialFragment(o);
41099
+ const A = Math.max(u, d.start || 0) - o, S = this.hls.levels ? this.hls.levels[this.hls.currentLevel] : null, I = (S == null || (m = S.details) == null ? void 0 : m.live) ? S.details.targetduration * 2 : Pn, E = this.fragmentTracker.getPartialFragment(o);
41101
41100
  if (A > 0 && (A <= I || E)) {
41102
41101
  n.paused || this._trySkipBufferHole(E);
41103
41102
  return;
@@ -41720,26 +41719,26 @@ class Z8 extends ec {
41720
41719
  }
41721
41720
  if (this.state = J.PARSING, f) {
41722
41721
  if (f != null && f.tracks) {
41723
- const S = c.initSegment || c;
41724
- this._bufferInitSegment(d, f.tracks, S, o), n.trigger(w.FRAG_PARSING_INIT_SEGMENT, {
41725
- frag: S,
41722
+ const C = c.initSegment || c;
41723
+ this._bufferInitSegment(d, f.tracks, C, o), n.trigger(w.FRAG_PARSING_INIT_SEGMENT, {
41724
+ frag: C,
41726
41725
  id: i,
41727
41726
  tracks: f.tracks
41728
41727
  });
41729
41728
  }
41730
- const A = f.initPTS, C = f.timescale;
41729
+ const A = f.initPTS, S = f.timescale;
41731
41730
  he(A) && (this.initPTS[c.cc] = {
41732
41731
  baseTime: A,
41733
- timescale: C
41732
+ timescale: S
41734
41733
  }, n.trigger(w.INIT_PTS_FOUND, {
41735
41734
  frag: c,
41736
41735
  id: i,
41737
41736
  initPTS: A,
41738
- timescale: C
41737
+ timescale: S
41739
41738
  }));
41740
41739
  }
41741
41740
  if (u && g && c.sn !== "initSegment") {
41742
- const A = g.fragments[c.sn - 1 - g.startSN], C = c.sn === g.startSN, S = !A || c.cc > A.cc;
41741
+ const A = g.fragments[c.sn - 1 - g.startSN], S = c.sn === g.startSN, C = !A || c.cc > A.cc;
41743
41742
  if (a.independent !== !1) {
41744
41743
  const {
41745
41744
  startPTS: I,
@@ -41754,16 +41753,16 @@ class Z8 extends ec {
41754
41753
  startDTS: F,
41755
41754
  endDTS: O
41756
41755
  };
41757
- else if (u.firstKeyFrame && u.independent && o.id === 1 && !S && (this.couldBacktrack = !0), u.dropped && u.independent) {
41756
+ else if (u.firstKeyFrame && u.independent && o.id === 1 && !C && (this.couldBacktrack = !0), u.dropped && u.independent) {
41758
41757
  const j = this.getMainFwdBufferInfo(), D = (j ? j.end : this.getLoadPosition()) + this.config.maxBufferHole, N = u.firstKeyFramePTS ? u.firstKeyFramePTS : I;
41759
- if (!C && D < N - this.config.maxBufferHole && !S) {
41758
+ if (!S && D < N - this.config.maxBufferHole && !C) {
41760
41759
  this.backtrack(c);
41761
41760
  return;
41762
- } else S && (c.gap = !0);
41761
+ } else C && (c.gap = !0);
41763
41762
  c.setElementaryStreamInfo(u.type, c.start, E, c.start, O, !0);
41764
- } else C && I > Pn && (c.gap = !0);
41765
- c.setElementaryStreamInfo(u.type, I, E, F, O), this.backtrackFragment && (this.backtrackFragment = c), this.bufferFragmentData(u, c, l, o, C || S);
41766
- } else if (C || S)
41763
+ } else S && I > Pn && (c.gap = !0);
41764
+ c.setElementaryStreamInfo(u.type, I, E, F, O), this.backtrackFragment && (this.backtrackFragment = c), this.bufferFragmentData(u, c, l, o, S || C);
41765
+ } else if (S || C)
41767
41766
  c.gap = !0;
41768
41767
  else {
41769
41768
  this.backtrack(c);
@@ -41773,16 +41772,16 @@ class Z8 extends ec {
41773
41772
  if (p) {
41774
41773
  const {
41775
41774
  startPTS: A,
41776
- endPTS: C,
41777
- startDTS: S,
41775
+ endPTS: S,
41776
+ startDTS: C,
41778
41777
  endDTS: I
41779
41778
  } = p;
41780
41779
  l && (l.elementaryStreams[We.AUDIO] = {
41781
41780
  startPTS: A,
41782
- endPTS: C,
41783
- startDTS: S,
41781
+ endPTS: S,
41782
+ startDTS: C,
41784
41783
  endDTS: I
41785
- }), c.setElementaryStreamInfo(We.AUDIO, A, C, S, I), this.bufferFragmentData(p, c, l, o);
41784
+ }), c.setElementaryStreamInfo(We.AUDIO, A, S, C, I), this.bufferFragmentData(p, c, l, o);
41786
41785
  }
41787
41786
  if (g && h != null && (t = h.samples) != null && t.length) {
41788
41787
  const A = {
@@ -41910,7 +41909,7 @@ class Bs {
41910
41909
  * Get the MediaSource global used for MSE playback (ManagedMediaSource, MediaSource, or WebKitMediaSource).
41911
41910
  */
41912
41911
  static getMediaSource() {
41913
- return Qs();
41912
+ return Js();
41914
41913
  }
41915
41914
  static get Events() {
41916
41915
  return w;
@@ -41947,16 +41946,16 @@ class Bs {
41947
41946
  capLevelController: a,
41948
41947
  errorController: o,
41949
41948
  fpsController: r
41950
- } = t, c = new o(this), l = this.abrController = new i(this), d = this.bufferController = new n(this), u = this.capLevelController = new a(this), m = new r(this), h = new OM(this), f = new PM(this), g = t.contentSteeringController, p = g ? new g(this) : null, A = this.levelController = new U8(this, p), C = new cP(this), S = new z8(this.config), I = this.streamController = new Z8(this, C, S);
41949
+ } = t, c = new o(this), l = this.abrController = new i(this), d = this.bufferController = new n(this), u = this.capLevelController = new a(this), m = new r(this), h = new OM(this), f = new PM(this), g = t.contentSteeringController, p = g ? new g(this) : null, A = this.levelController = new U8(this, p), S = new cP(this), C = new z8(this.config), I = this.streamController = new Z8(this, S, C);
41951
41950
  u.setStreamController(I), m.setStreamController(I);
41952
41951
  const E = [h, A, I];
41953
41952
  p && E.splice(1, 0, p), this.networkControllers = E;
41954
- const F = [l, d, u, m, f, C];
41953
+ const F = [l, d, u, m, f, S];
41955
41954
  this.audioTrackController = this.createController(t.audioTrackController, E);
41956
41955
  const O = t.audioStreamController;
41957
- O && E.push(new O(this, C, S)), this.subtitleTrackController = this.createController(t.subtitleTrackController, E);
41956
+ O && E.push(new O(this, S, C)), this.subtitleTrackController = this.createController(t.subtitleTrackController, E);
41958
41957
  const j = t.subtitleStreamController;
41959
- j && E.push(new j(this, C, S)), this.createController(t.timelineController, F), S.emeController = this.emeController = this.createController(t.emeController, F), this.cmcdController = this.createController(t.cmcdController, F), this.latencyController = this.createController(BM, F), this.coreComponents = F, E.push(c);
41958
+ j && E.push(new j(this, S, C)), this.createController(t.timelineController, F), C.emeController = this.emeController = this.createController(t.emeController, F), this.cmcdController = this.createController(t.cmcdController, F), this.latencyController = this.createController(BM, F), this.coreComponents = F, E.push(c);
41960
41959
  const D = c.onErrorOut;
41961
41960
  typeof D == "function" && this.on(w.ERROR, D, c);
41962
41961
  }
@@ -42466,7 +42465,7 @@ class Bs {
42466
42465
  }
42467
42466
  }
42468
42467
  Bs.defaultConfig = void 0;
42469
- const W8 = (s) => (qe("data-v-bf846ff2"), s = s(), Ye(), s), Q8 = { class: "stories" }, J8 = /* @__PURE__ */ W8(() => /* @__PURE__ */ v("svg", {
42468
+ const W8 = (s) => (qe("data-v-b7117d8a"), s = s(), Ye(), s), Q8 = { class: "stories" }, J8 = /* @__PURE__ */ W8(() => /* @__PURE__ */ v("svg", {
42470
42469
  xmlns: "http://www.w3.org/2000/svg",
42471
42470
  width: "20",
42472
42471
  height: "20",
@@ -42514,7 +42513,7 @@ const W8 = (s) => (qe("data-v-bf846ff2"), s = s(), Ye(), s), Q8 = { class: "stor
42514
42513
  ...A,
42515
42514
  progress: 0,
42516
42515
  isHls: A.url.includes(".m3u8")
42517
- })));
42516
+ })).sort((A, S) => A.startTime - S.startTime));
42518
42517
  },
42519
42518
  { immediate: !0 }
42520
42519
  ), be(
@@ -42532,7 +42531,7 @@ const W8 = (s) => (qe("data-v-bf846ff2"), s = s(), Ye(), s), Q8 = { class: "stor
42532
42531
  }), n.value.on("loadeddata", u(n.value)), n.value.on("timeupdate", m()), l(r.value), n.value.isDestroyed = !1;
42533
42532
  }
42534
42533
  function l() {
42535
- r.value.isHls ? d(r.value) : n.value.source = {
42534
+ r.value.isHls ? d(r.value) : n.value && (n.value.source = {
42536
42535
  type: "video",
42537
42536
  sources: [
42538
42537
  {
@@ -42540,7 +42539,7 @@ const W8 = (s) => (qe("data-v-bf846ff2"), s = s(), Ye(), s), Q8 = { class: "stor
42540
42539
  type: "video/mp4"
42541
42540
  }
42542
42541
  ]
42543
- };
42542
+ });
42544
42543
  }
42545
42544
  function d(p) {
42546
42545
  if (Bs.isSupported()) {
@@ -42580,13 +42579,13 @@ const W8 = (s) => (qe("data-v-bf846ff2"), s = s(), Ye(), s), Q8 = { class: "stor
42580
42579
  onClick: f
42581
42580
  }),
42582
42581
  v("div", $8, [
42583
- (y(!0), b(W, null, Ae(a.value, (C, S) => (y(), b("div", {
42584
- key: S,
42582
+ (y(!0), b(W, null, Ae(a.value, (S, C) => (y(), b("div", {
42583
+ key: C,
42585
42584
  class: "stories__content__stories-bar__item"
42586
42585
  }, [
42587
42586
  v("div", {
42588
42587
  class: "stories__content__stories-bar__item__progress",
42589
- style: z({ width: `${C.progress}%` })
42588
+ style: z({ width: `${S.progress}%` })
42590
42589
  }, null, 4)
42591
42590
  ]))), 128))
42592
42591
  ]),
@@ -42601,7 +42600,7 @@ const W8 = (s) => (qe("data-v-bf846ff2"), s = s(), Ye(), s), Q8 = { class: "stor
42601
42600
  ])
42602
42601
  ]));
42603
42602
  }
42604
- }, tB = /* @__PURE__ */ Ct(eB, [["__scopeId", "data-v-bf846ff2"]]), sB = {
42603
+ }, tB = /* @__PURE__ */ Ct(eB, [["__scopeId", "data-v-b7117d8a"]]), sB = {
42605
42604
  playlist_id: "GPI_default2022-12-08T02:51:56.334+00:00-PI-0",
42606
42605
  last_played_index: 0,
42607
42606
  group_id: "1",
@@ -43903,7 +43902,7 @@ const W8 = (s) => (qe("data-v-bf846ff2"), s = s(), Ye(), s), Q8 = { class: "stor
43903
43902
  name: "Oportunidad de gol"
43904
43903
  }
43905
43904
  ].reduce((s, e) => (s.set(e.id, e.name), s), /* @__PURE__ */ new Map()), oB = 5 * 60 * 1e3;
43906
- let ii = null;
43905
+ let Vs = null;
43907
43906
  const qt = EL(), rB = {
43908
43907
  components: {
43909
43908
  GSCSeasonSelect: jI,
@@ -44045,7 +44044,10 @@ const qt = EL(), rB = {
44045
44044
  return this.fullTournamentSchedule;
44046
44045
  {
44047
44046
  const s = this.gamesPages.get(this.selectedRound);
44048
- return s ? s[0] : [];
44047
+ return s && s[0] ? s[0].sort((e, t) => {
44048
+ let i = e.dateTimeMillis, n = t.dateTimeMillis;
44049
+ return e.is_live && (i -= 1e9), t.is_live && (n -= 1e9), i - n;
44050
+ }) : [];
44049
44051
  }
44050
44052
  },
44051
44053
  // gamesFullLeague() {
@@ -44089,7 +44091,7 @@ const qt = EL(), rB = {
44089
44091
  watch: {
44090
44092
  "allLiveGames.length": {
44091
44093
  handler(s) {
44092
- s.length === 0 && (clearInterval(ii), ii = null);
44094
+ s.length === 0 && (clearInterval(Vs), Vs = null);
44093
44095
  }
44094
44096
  },
44095
44097
  privileges: {
@@ -44308,7 +44310,7 @@ const qt = EL(), rB = {
44308
44310
  },
44309
44311
  async onInputSeason(s) {
44310
44312
  if (this.seasonSelected.id !== s.id)
44311
- if (this.seasonSelected = s, this.seasonsForLiveGames = [s.id, ...s.related_seasons.map((e) => e.id)], this.$emit("change-season-id", s.id), this.tournamentSelected.id !== this.user.tournament) {
44313
+ if (this.resetGamesLiveInterval(), this.seasonSelected = s, this.seasonsForLiveGames = [s.id, ...s.related_seasons.map((e) => e.id)], this.$emit("change-season-id", s.id), this.tournamentSelected.id !== this.user.tournament) {
44312
44314
  const e = await this.generateSeasons(this.seasonSelected);
44313
44315
  this.seasonsSelected = e, await this.createFullTournamentScheme(e, !1);
44314
44316
  } else {
@@ -44353,7 +44355,7 @@ const qt = EL(), rB = {
44353
44355
  } = await n.get(i);
44354
44356
  let c = [], l = [];
44355
44357
  const [d, u, m] = await Promise.all(a);
44356
- c = [d.data, u.data, m.data];
44358
+ c = [], d && c.push(d.data), u && c.push(u.data), m && c.push(m.data);
44357
44359
  for (let h = 0; h < c.length; h++)
44358
44360
  l = l.concat(c[h].plays);
44359
44361
  this.gamesAllStories = [];
@@ -44504,11 +44506,11 @@ const qt = EL(), rB = {
44504
44506
  let f = "";
44505
44507
  Number.isNaN(h) ? f = u : f = h < 10 ? `0${h}` : u;
44506
44508
  let g = !1, p = null;
44507
- const A = m.reduce((S, I) => (!p && I && I.games && I.games.length && (p = I.games[0].matchday_id), I.games.forEach((E) => {
44509
+ const A = m.reduce((C, I) => (!p && I && I.games && I.games.length && (p = I.games[0].matchday_id), I.games.forEach((E) => {
44508
44510
  this.roundAbbreviationByGameId.set(E.game_id, u), E.roundAbbreviation = Number.isNaN(h) ? h : `J ${h}`, E.roundAbbreviationV2 = u;
44509
- }), S = S.concat(I.games), S), []);
44510
- for (let S = 0; S < A.length; S++)
44511
- (A[S].game_status != 4 || A[S].is_live) && (A[S].score[0] != 0 || A[S].score[1] != 0) && (g = !0);
44511
+ }), C = C.concat(I.games), C), []);
44512
+ for (let C = 0; C < A.length; C++)
44513
+ (A[C].game_status != 4 || A[C].is_live) && (A[C].score[0] != 0 || A[C].score[1] != 0) && (g = !0);
44512
44514
  d.set(u, {
44513
44515
  key: u,
44514
44516
  value: h,
@@ -44516,8 +44518,8 @@ const qt = EL(), rB = {
44516
44518
  avaible: g,
44517
44519
  matchDayId: p
44518
44520
  });
44519
- const C = this.getPages(A);
44520
- return this.gamesPages.set(u, C), d;
44521
+ const S = this.getPages(A);
44522
+ return this.gamesPages.set(u, S), d;
44521
44523
  }, /* @__PURE__ */ new Map()).values()
44522
44524
  ), this.tournamentScheduleKeysGoals = Array.from(
44523
44525
  Object.entries(this.fullTournamentScheduleFullGoals).reduce((d, [u, m]) => {
@@ -44525,9 +44527,9 @@ const qt = EL(), rB = {
44525
44527
  let f = "";
44526
44528
  Number.isNaN(h) ? f = u : f = h < 10 ? `0${h}` : u;
44527
44529
  let g = !1;
44528
- const p = m.reduce((A, C) => (C.games.forEach((S) => {
44529
- S.roundAbbreviation = Number.isNaN(h) ? h : `J ${h}`;
44530
- }), A = A.concat(C.games), A), []);
44530
+ const p = m.reduce((A, S) => (S.games.forEach((C) => {
44531
+ C.roundAbbreviation = Number.isNaN(h) ? h : `J ${h}`;
44532
+ }), A = A.concat(S.games), A), []);
44531
44533
  for (let A = 0; A < p.length; A++)
44532
44534
  (p[A].game_status != 4 || p[A].is_live && (p[A].score[0] != 0 || p[A].score[1] != 0)) && (g = !0);
44533
44535
  return d.set(u, {
@@ -44547,19 +44549,22 @@ const qt = EL(), rB = {
44547
44549
  async checkLiveGames() {
44548
44550
  try {
44549
44551
  const s = await this.fetchLiveGames();
44550
- this.allLiveGames = s.data.reduce((e, t) => (e = e.concat(t.games), e), []), this.allLiveGames.length && !ii && await this.fillGameEvents();
44552
+ this.allLiveGames = s.data.reduce((e, t) => (e = e.concat(t.games), e), []), this.allLiveGames.length && !Vs && await this.fillGameEvents();
44551
44553
  } catch (s) {
44552
44554
  throw new Error(s);
44553
44555
  }
44554
44556
  },
44555
44557
  createGamesEventsInterval() {
44556
- clearInterval(ii), ii = setInterval(() => {
44558
+ this.resetGamesLiveInterval(), Vs = setInterval(() => {
44557
44559
  this.fillGameEvents();
44558
44560
  }, 6e4);
44559
44561
  },
44562
+ resetGamesLiveInterval() {
44563
+ clearInterval(Vs), Vs = null;
44564
+ },
44560
44565
  removeGameIfFinished(s, e) {
44561
44566
  for (const t of e)
44562
- (t.category_id == 0 && t.game_status_id == 13 || t.category_id == 0 && t.game_status_id == 17 || t.category_id == 0 && t.game_status_id == 19 || t.category_id == 0 && t.game_status_id == 21 || t.category_id == 0 && t.game_status_id == 23) && (this.allLiveGames = this.allLiveGames.filter(
44567
+ t.category_id === 0 && t.game_status_id === 13 && (this.allLiveGames = this.allLiveGames.filter(
44563
44568
  (i) => i.game_id !== s.game_id
44564
44569
  ));
44565
44570
  },
@@ -44576,7 +44581,7 @@ const qt = EL(), rB = {
44576
44581
  t.score[i.visiting_team.team_id.toString()]
44577
44582
  ], this.removeGameIfFinished(i, t.plays));
44578
44583
  }
44579
- ii || this.createGamesEventsInterval();
44584
+ Vs || this.createGamesEventsInterval();
44580
44585
  } catch (s) {
44581
44586
  throw new Error(s);
44582
44587
  }
@@ -44640,7 +44645,7 @@ const qt = EL(), rB = {
44640
44645
  },
44641
44646
  async created() {
44642
44647
  }
44643
- }, Si = (s) => (qe("data-v-ec2730c9"), s = s(), Ye(), s), lB = {
44648
+ }, Si = (s) => (qe("data-v-eaf8afcb"), s = s(), Ye(), s), lB = {
44644
44649
  class: "gsclanding",
44645
44650
  ref: "landingref"
44646
44651
  }, cB = {
@@ -44798,10 +44803,10 @@ function jB(s, e, t, i, n, a) {
44798
44803
  }, {
44799
44804
  default: Ue(() => [
44800
44805
  x("", !0),
44801
- (y(!0), b(W, null, Ae(n.gamesAllStories, (A, C) => (y(), b("div", {
44802
- key: C,
44806
+ (y(!0), b(W, null, Ae(n.gamesAllStories, (A, S) => (y(), b("div", {
44807
+ key: S,
44803
44808
  class: "story-container-game",
44804
- onClick: (S) => a.openStory(C)
44809
+ onClick: (C) => a.openStory(S)
44805
44810
  }, [
44806
44811
  v("div", LB, [
44807
44812
  v("div", {
@@ -44937,7 +44942,7 @@ function jB(s, e, t, i, n, a) {
44937
44942
  ], 2)
44938
44943
  ], 512);
44939
44944
  }
44940
- const JB = /* @__PURE__ */ Ct(rB, [["render", jB], ["__scopeId", "data-v-ec2730c9"]]);
44945
+ const JB = /* @__PURE__ */ Ct(rB, [["render", jB], ["__scopeId", "data-v-eaf8afcb"]]);
44941
44946
  export {
44942
44947
  JB as GSCLanding
44943
44948
  };