@vindral/web-sdk 4.7.1 → 4.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./BZbYOX-0.js";
2
+ import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./BqvCHW1b.js";
3
3
  import { t as ce } from "./CuYn2z5X.js";
4
4
  import { i as f, n as p, r as m, t as h } from "./DSw1XhvD.js";
5
5
  import { c as le, n as ue, t as de } from "./D40eQS8l.js";
@@ -1074,22 +1074,25 @@ function Gn(e) {
1074
1074
  return [];
1075
1075
  }
1076
1076
  }
1077
- var Kn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Qn = class {
1077
+ var Kn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Jn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), er = class {
1078
1078
  constructor(t) {
1079
1079
  f(this, Kn, void 0), f(this, qn, null), f(this, Jn, null), f(this, Yn, null), f(this, Xn, !0), e(this, "observe", (e) => {
1080
- h(Yn, this) || (p(Yn, this, e), window.ResizeObserver && (p(qn, this, new ResizeObserver(() => h(Zn, this).call(this))), h(qn, this).observe(e)));
1081
- }), e(this, "setEnabled", (e) => {
1080
+ h(Yn, this) || (p(Yn, this, e), e.addEventListener("webkitpresentationmodechanged", h(Zn, this), !0), window.ResizeObserver && (p(qn, this, new ResizeObserver(() => h($n, this).call(this))), h(qn, this).observe(e)));
1081
+ }), f(this, Zn, (e) => {
1082
+ var t;
1083
+ e.target instanceof HTMLMediaElement && h(Qn, this).call(this, ((t = ie(e.target)) == null ? "inline" : t) === "inline");
1084
+ }), f(this, Qn, (e) => {
1082
1085
  if (h(Xn, this) !== e) {
1083
1086
  if (p(Xn, this, e), p(Jn, this, null), e) {
1084
- h(Zn, this).call(this);
1087
+ h($n, this).call(this);
1085
1088
  return;
1086
1089
  }
1087
1090
  for (let e of h(Kn, this)) e.style.removeProperty("font-size");
1088
1091
  }
1089
1092
  }), e(this, "unload", () => {
1090
- var e;
1091
- (e = h(qn, this)) == null || e.disconnect(), p(qn, this, null), p(Yn, this, null), p(Xn, this, !0);
1092
- }), f(this, Zn, () => {
1093
+ var e, t;
1094
+ (e = h(Yn, this)) == null || e.removeEventListener("webkitpresentationmodechanged", h(Zn, this), !0), (t = h(qn, this)) == null || t.disconnect(), p(qn, this, null), p(Yn, this, null), p(Xn, this, !0);
1095
+ }), f(this, $n, () => {
1093
1096
  if (!h(Xn, this) || h(Kn, this).length === 0 || !h(Yn, this)) return;
1094
1097
  let { clientWidth: e, clientHeight: t } = h(Yn, this);
1095
1098
  if (e <= 0 || t <= 0) return;
@@ -1100,7 +1103,7 @@ var Kn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Jn =
1100
1103
  }
1101
1104
  }), p(Kn, this, Gn(t));
1102
1105
  }
1103
- }, $n = class n extends pe {
1106
+ }, tr = class n extends pe {
1104
1107
  constructor(r) {
1105
1108
  var i;
1106
1109
  super(), i = this, e(this, "container", void 0), e(this, "unload", () => {
@@ -1131,35 +1134,35 @@ var Kn = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Jn =
1131
1134
  return () => Promise.resolve();
1132
1135
  }
1133
1136
  };
1134
- e($n, "isFullscreenApiSupported", (e) => l(e));
1137
+ e(tr, "isFullscreenApiSupported", (e) => l(e));
1135
1138
  //#endregion
1136
1139
  //#region ../../libs/player-next/src/PictureInPicture.ts
1137
- var er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), cr = class extends pe {
1140
+ var nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), dr = class extends pe {
1138
1141
  constructor(r) {
1139
1142
  var a;
1140
1143
  super(), a = this, e(this, "unload", () => {
1141
1144
  this.element.removeEventListener("enterpictureinpicture", this.onChange), this.element.removeEventListener("leavepictureinpicture", this.onChange), this.element.removeEventListener("webkitpresentationmodechanged", this.onChange), n(this.element, !1);
1142
1145
  }), e(this, "request", t(function* () {
1143
1146
  try {
1144
- return yield h(er, a).call(a);
1147
+ return yield h(nr, a).call(a);
1145
1148
  } catch (e) {
1146
1149
  throw a.onChange(), e;
1147
1150
  }
1148
1151
  })), e(this, "exit", t(function* () {
1149
1152
  try {
1150
- return yield h(tr, a).call(a);
1153
+ return yield h(rr, a).call(a);
1151
1154
  } catch (e) {
1152
1155
  throw a.onChange(), e;
1153
1156
  }
1154
1157
  })), e(this, "onChange", () => {
1155
1158
  this.emit("on picture in picture change", this.isPictureInPictureActive());
1156
- }), e(this, "isPictureInPictureActive", () => this.isWebkitPresentationModeActive() || h(ar, this).call(this)), e(this, "isSupported", () => h(sr, this).call(this) || h(ir, this).call(this)), f(this, er, () => h(ir, this).call(this) ? h(nr, this).call(this) : h(sr, this).call(this) ? h(or, this).call(this, "picture-in-picture") : Promise.resolve()), f(this, tr, () => this.isPictureInPictureActive() ? h(ir, this).call(this) ? h(rr, this).call(this) : h(sr, this).call(this) ? h(or, this).call(this, "inline") : Promise.resolve() : Promise.resolve()), f(this, nr, t(function* () {
1159
+ }), e(this, "isPictureInPictureActive", () => h(cr, this).call(this) || h(sr, this).call(this)), e(this, "isSupported", () => h(ur, this).call(this) || h(or, this).call(this)), f(this, nr, () => h(or, this).call(this) ? h(ir, this).call(this) : h(ur, this).call(this) ? h(lr, this).call(this, "picture-in-picture") : Promise.resolve()), f(this, rr, () => this.isPictureInPictureActive() ? h(or, this).call(this) ? h(ar, this).call(this) : h(ur, this).call(this) ? h(lr, this).call(this, "inline") : Promise.resolve() : Promise.resolve()), f(this, ir, t(function* () {
1157
1160
  let e = c(a.element);
1158
1161
  e && (yield e());
1159
- })), f(this, rr, t(function* () {
1162
+ })), f(this, ar, t(function* () {
1160
1163
  let e = ee();
1161
1164
  e && (yield e());
1162
- })), f(this, ir, () => s(this.element)), f(this, ar, () => oe()), e(this, "isWebkitPresentationModeActive", () => ie(this.element) === "picture-in-picture"), f(this, or, (e) => (i(this.element) && ae(this.element, e), Promise.resolve())), f(this, sr, () => i(this.element)), this.element = r, this.element.addEventListener("enterpictureinpicture", this.onChange), this.element.addEventListener("leavepictureinpicture", this.onChange), this.element.addEventListener("webkitpresentationmodechanged", this.onChange), n(this.element, !0);
1165
+ })), f(this, or, () => s(this.element)), f(this, sr, () => oe()), f(this, cr, () => ie(this.element) === "picture-in-picture"), f(this, lr, (e) => (i(this.element) && ae(this.element, e), Promise.resolve())), f(this, ur, () => i(this.element)), this.element = r, this.element.addEventListener("enterpictureinpicture", this.onChange), this.element.addEventListener("leavepictureinpicture", this.onChange), this.element.addEventListener("webkitpresentationmodechanged", this.onChange), n(this.element, !0);
1163
1166
  }
1164
1167
  get videoElement() {
1165
1168
  return this.element;
@@ -1167,7 +1170,7 @@ var er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr =
1167
1170
  };
1168
1171
  //#endregion
1169
1172
  //#region ../../libs/player-next/src/timeshift/firstMediaPlaylistUrl.ts
1170
- function lr(e, t) {
1173
+ function fr(e, t) {
1171
1174
  let n = e.split("\n").map((e) => e.trim());
1172
1175
  for (let e = 0; e < n.length; e++) {
1173
1176
  var r;
@@ -1179,7 +1182,7 @@ function lr(e, t) {
1179
1182
  }
1180
1183
  //#endregion
1181
1184
  //#region ../../libs/player-next/src/timeshift/parseMediaPlaylistDuration.ts
1182
- function ur(e) {
1185
+ function pr(e) {
1183
1186
  let t = 0;
1184
1187
  for (let n of e.split("\n")) {
1185
1188
  let e = n.trim().match(/^#EXTINF:([\d.]+)/), r = e != null && e[1] ? Number.parseFloat(e[1]) : NaN;
@@ -1189,90 +1192,90 @@ function ur(e) {
1189
1192
  }
1190
1193
  //#endregion
1191
1194
  //#region ../../libs/player-next/src/timeshift/probeTimeshiftDuration.ts
1192
- var dr = 5e3;
1193
- function fr(e, t) {
1194
- return pr.apply(this, arguments);
1195
+ var mr = 5e3;
1196
+ function hr(e, t) {
1197
+ return gr.apply(this, arguments);
1195
1198
  }
1196
- function pr() {
1197
- return pr = t(function* (e, t, n = {}) {
1198
- let { signal: r, timeoutMs: i = dr } = n, a = new AbortController(), o = () => a.abort();
1199
+ function gr() {
1200
+ return gr = t(function* (e, t, n = {}) {
1201
+ let { signal: r, timeoutMs: i = mr } = n, a = new AbortController(), o = () => a.abort();
1199
1202
  r && (r.aborted ? a.abort() : r.addEventListener("abort", o, { once: !0 }));
1200
1203
  let s = setTimeout(o, i);
1201
1204
  try {
1202
1205
  let n = yield fetch(e, { signal: a.signal });
1203
1206
  if (!n.ok) return;
1204
- let r = lr(yield n.text(), e);
1207
+ let r = fr(yield n.text(), e);
1205
1208
  if (!r) return;
1206
1209
  let i = new URL(r);
1207
1210
  i.searchParams.set("channelId", t.channelId), i.searchParams.set("from", t.from), t.authToken && i.searchParams.set("authToken", t.authToken);
1208
1211
  let o = yield fetch(i.toString(), { signal: a.signal });
1209
- return o.ok ? ur(yield o.text()) : void 0;
1212
+ return o.ok ? pr(yield o.text()) : void 0;
1210
1213
  } catch (e) {
1211
1214
  return;
1212
1215
  } finally {
1213
1216
  clearTimeout(s), r == null || r.removeEventListener("abort", o);
1214
1217
  }
1215
- }), pr.apply(this, arguments);
1218
+ }), gr.apply(this, arguments);
1216
1219
  }
1217
1220
  //#endregion
1218
1221
  //#region ../../libs/player-next/src/timeshift/TimeshiftDurationSource.ts
1219
- var mr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakSet(), wr = class {
1220
- constructor({ onChange: e, probe: t = fr, now: n = () => performance.now() }) {
1221
- S(this, A), f(this, mr, void 0), f(this, hr, void 0), f(this, gr, void 0), f(this, _r, void 0), f(this, vr, !0), f(this, yr, !1), f(this, br, 0), f(this, xr, 0), f(this, Sr, 0), f(this, Cr, null), p(mr, this, e), p(hr, this, t), p(gr, this, n);
1222
+ var _r = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakSet(), Dr = class {
1223
+ constructor({ onChange: e, probe: t = hr, now: n = () => performance.now() }) {
1224
+ S(this, A), f(this, _r, void 0), f(this, vr, void 0), f(this, yr, void 0), f(this, br, void 0), f(this, xr, !0), f(this, Sr, !1), f(this, Cr, 0), f(this, wr, 0), f(this, Tr, 0), f(this, Er, null), p(_r, this, e), p(vr, this, t), p(yr, this, n);
1222
1225
  }
1223
1226
  start({ multivariantUrl: e, params: t, windowCapSeconds: n }) {
1224
- if (m(A, this, Tr).call(this), !(n > 0)) {
1225
- h(mr, this).call(this, n);
1227
+ if (m(A, this, Or).call(this), !(n > 0)) {
1228
+ h(_r, this).call(this, n);
1226
1229
  return;
1227
1230
  }
1228
1231
  let r = new AbortController();
1229
- p(_r, this, r);
1232
+ p(br, this, r);
1230
1233
  let { signal: i } = r;
1231
- h(hr, this).call(this, e, t, { signal: i }).then((e) => {
1234
+ h(vr, this).call(this, e, t, { signal: i }).then((e) => {
1232
1235
  if (!i.aborted) {
1233
1236
  if (e === void 0) {
1234
- h(mr, this).call(this, n);
1237
+ h(_r, this).call(this, n);
1235
1238
  return;
1236
1239
  }
1237
- p(xr, this, n), p(br, this, Math.min(Math.max(e, 0), n)), p(Sr, this, h(gr, this).call(this)), p(yr, this, !0), m(A, this, Er).call(this), h(vr, this) && m(A, this, Dr).call(this);
1240
+ p(wr, this, n), p(Cr, this, Math.min(Math.max(e, 0), n)), p(Tr, this, h(yr, this).call(this)), p(Sr, this, !0), m(A, this, kr).call(this), h(xr, this) && m(A, this, Ar).call(this);
1238
1241
  }
1239
1242
  });
1240
1243
  }
1241
1244
  setLive(e) {
1242
- p(vr, this, e), !(!h(_r, this) || e) && (m(A, this, Or).call(this), m(A, this, Er).call(this));
1245
+ p(xr, this, e), !(!h(br, this) || e) && (m(A, this, jr).call(this), m(A, this, kr).call(this));
1243
1246
  }
1244
1247
  applyLoadedDuration(e) {
1245
- m(A, this, Tr).call(this), h(mr, this).call(this, Number.isNaN(e) ? 0 : e);
1248
+ m(A, this, Or).call(this), h(_r, this).call(this, Number.isNaN(e) ? 0 : e);
1246
1249
  }
1247
1250
  stop() {
1248
- m(A, this, Tr).call(this);
1251
+ m(A, this, Or).call(this);
1249
1252
  }
1250
1253
  };
1251
- function Tr() {
1254
+ function Or() {
1252
1255
  var e;
1253
- (e = h(_r, this)) == null || e.abort(), p(_r, this, void 0), m(A, this, Or).call(this), p(yr, this, !1);
1256
+ (e = h(br, this)) == null || e.abort(), p(br, this, void 0), m(A, this, jr).call(this), p(Sr, this, !1);
1254
1257
  }
1255
- function Er() {
1256
- if (!h(yr, this)) return;
1257
- let e = h(br, this) + Math.max(0, (h(gr, this).call(this) - h(Sr, this)) / 1e3), t = Math.min(h(xr, this), e);
1258
- h(mr, this).call(this, t), t >= h(xr, this) && m(A, this, Or).call(this);
1258
+ function kr() {
1259
+ if (!h(Sr, this)) return;
1260
+ let e = h(Cr, this) + Math.max(0, (h(yr, this).call(this) - h(Tr, this)) / 1e3), t = Math.min(h(wr, this), e);
1261
+ h(_r, this).call(this, t), t >= h(wr, this) && m(A, this, jr).call(this);
1259
1262
  }
1260
- function Dr() {
1261
- h(Cr, this) === null && p(Cr, this, window.setInterval(() => m(A, this, Er).call(this), 1e3));
1263
+ function Ar() {
1264
+ h(Er, this) === null && p(Er, this, window.setInterval(() => m(A, this, kr).call(this), 1e3));
1262
1265
  }
1263
- function Or() {
1264
- h(Cr, this) !== null && (clearInterval(h(Cr, this)), p(Cr, this, null));
1266
+ function jr() {
1267
+ h(Er, this) !== null && (clearInterval(h(Er, this)), p(Er, this, null));
1265
1268
  }
1266
1269
  //#endregion
1267
1270
  //#region ../../libs/player-next/src/utils/getVindralAttributes.ts
1268
- var kr = (e) => {
1271
+ var Mr = (e) => {
1269
1272
  var t;
1270
1273
  let n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0;
1271
1274
  return !n && (t = e.nodeName) != null && t.includes("-") && (globalThis.customElements.upgrade(e), n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0), Array.isArray(n) ? n.filter((e) => Ae.includes(e)) : [];
1272
1275
  };
1273
1276
  //#endregion
1274
1277
  //#region ../../libs/player-next/src/utils/humanReadableTimeToSeconds.ts
1275
- function Ar(e) {
1278
+ function Nr(e) {
1276
1279
  if (typeof e != "string") return NaN;
1277
1280
  let t = [...e.matchAll(/(\d+(?:\.\d+)?)([hms])/gi)];
1278
1281
  return t.length === 0 ? NaN : t.reduce((e, t) => {
@@ -1288,37 +1291,37 @@ function Ar(e) {
1288
1291
  }
1289
1292
  //#endregion
1290
1293
  //#region ../../libs/player-next/src/utils/timelineMarkers.ts
1291
- var jr = fe.get().createContext("TimelineMarkers"), Mr = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?$/, Nr = (e) => {
1292
- jr.warn(`Timeline marker time "${e}" has no timezone and is interpreted in the viewer's local timezone, so it can land at a different position for viewers in other timezones. Provide an ISO 8601 time with an offset (e.g. "${e}Z") or epoch milliseconds.`);
1293
- }, Pr = (e) => {
1294
+ var Pr = fe.get().createContext("TimelineMarkers"), Fr = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?$/, Ir = (e) => {
1295
+ Pr.warn(`Timeline marker time "${e}" has no timezone and is interpreted in the viewer's local timezone, so it can land at a different position for viewers in other timezones. Provide an ISO 8601 time with an offset (e.g. "${e}Z") or epoch milliseconds.`);
1296
+ }, Lr = (e) => {
1294
1297
  if (typeof e == "number" && Number.isFinite(e)) return e;
1295
1298
  if (typeof e == "string") {
1296
1299
  let t = Date.parse(e);
1297
- return Number.isNaN(t) ? null : (Mr.test(e) && Nr(e), t);
1300
+ return Number.isNaN(t) ? null : (Fr.test(e) && Ir(e), t);
1298
1301
  }
1299
1302
  if (e instanceof Date) {
1300
1303
  let t = e.getTime();
1301
1304
  return Number.isNaN(t) ? null : t;
1302
1305
  }
1303
1306
  return null;
1304
- }, Fr = (e) => {
1307
+ }, Rr = (e) => {
1305
1308
  if (typeof e != "object" || !e) return null;
1306
- let { time: t, label: n, type: r } = e, i = Pr(t);
1309
+ let { time: t, label: n, type: r } = e, i = Lr(t);
1307
1310
  if (i === null || typeof n != "string" || n.length === 0) return null;
1308
1311
  let a = {
1309
1312
  time: i,
1310
1313
  label: n
1311
1314
  };
1312
1315
  return typeof r == "string" && r.length > 0 && (a.type = r), a;
1313
- }, Ir = (e) => {
1316
+ }, zr = (e) => {
1314
1317
  if (!Array.isArray(e)) return [];
1315
- let t = e.map(Fr).filter((e) => e !== null), n = e.length - t.length;
1316
- return n > 0 && jr.warn(`Dropped ${n} invalid timeline marker(s). Each marker needs a non-empty "label" and a valid "time" (epoch milliseconds, a Date, or an ISO 8601 string).`), t;
1317
- }, Lr = (e) => e ? Ir(le(e)) : [], Rr = (e, t, n) => {
1318
+ let t = e.map(Rr).filter((e) => e !== null), n = e.length - t.length;
1319
+ return n > 0 && Pr.warn(`Dropped ${n} invalid timeline marker(s). Each marker needs a non-empty "label" and a valid "time" (epoch milliseconds, a Date, or an ISO 8601 string).`), t;
1320
+ }, Br = (e) => e ? zr(le(e)) : [], Vr = (e, t, n) => {
1318
1321
  if (!Number.isFinite(n) || n <= 0) return null;
1319
1322
  let r = 1 - (t - e) / (n * 1e3);
1320
1323
  return r < 0 || r > 1 ? null : r;
1321
- }, zr = class extends pe {
1324
+ }, Hr = class extends pe {
1322
1325
  constructor(t) {
1323
1326
  if (super(), e(this, "audioContext", void 0), e(this, "audioNode", void 0), e(this, "bufferLength", void 0), e(this, "animationFrameId", null), e(this, "canUseFloatTimeDomainData", void 0), e(this, "byteSampleBuffer", null), e(this, "floatSampleBuffer", null), e(this, "leftAnalyser", void 0), e(this, "rightAnalyser", void 0), e(this, "mediaElementSource", null), e(this, "update", () => {
1324
1327
  let e = this.getDecibel(this.leftAnalyser, this.floatSampleBuffer || this.byteSampleBuffer), t = this.getDecibel(this.rightAnalyser, this.floatSampleBuffer || this.byteSampleBuffer);
@@ -1370,18 +1373,18 @@ var jr = fe.get().createContext("TimelineMarkers"), Mr = /^\d{4}-\d{2}-\d{2}[T ]
1370
1373
  get isMediaElementSource() {
1371
1374
  return this.source instanceof HTMLMediaElement;
1372
1375
  }
1373
- }, j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), Yr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), $r = class {
1376
+ }, j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), Qr = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), ei = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), ni = class {
1374
1377
  constructor(t, n) {
1375
- S(this, F), f(this, j, void 0), f(this, M, void 0), f(this, N, void 0), f(this, Br, void 0), f(this, Vr, void 0), e(this, "userPaused", !0), f(this, Hr, void 0), f(this, Ur, void 0), f(this, Wr, !1), f(this, Gr, !1), f(this, Kr, null), f(this, qr, 0), f(this, Jr, !1), f(this, P, fe.get().createContext("HlsPlayer")), f(this, Yr, () => m(F, this, fi).call(this, !0)), f(this, Xr, () => m(F, this, fi).call(this, !1)), f(this, Zr, () => {
1376
- h(j, this).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !h(j, this).paused && m(F, this, fi).call(this, !1);
1377
- }), f(this, Qr, () => {
1378
- h(j, this).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA && m(F, this, fi).call(this, !1);
1379
- }), p(M, this, t), p(Ur, this, n == null ? void 0 : n.maxVideoBitRate), h(M, this).style.position = "absolute", h(M, this).style.top = "0", h(M, this).style.left = "0", h(M, this).style.width = "100%", h(M, this).style.height = "100%", h(M, this).style.opacity = "0", h(M, this).style.pointerEvents = "none", h(M, this).style.transition = "opacity 0.12s linear";
1378
+ S(this, F), f(this, j, void 0), f(this, M, void 0), f(this, N, void 0), f(this, Ur, void 0), f(this, Wr, void 0), e(this, "userPaused", !0), f(this, Gr, void 0), f(this, Kr, void 0), f(this, qr, !1), f(this, Jr, !1), f(this, Yr, null), f(this, Xr, 0), f(this, Zr, !1), f(this, P, fe.get().createContext("HlsPlayer")), f(this, Qr, () => m(F, this, hi).call(this, !0)), f(this, $r, () => m(F, this, hi).call(this, !1)), f(this, ei, () => {
1379
+ h(j, this).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !h(j, this).paused && m(F, this, hi).call(this, !1);
1380
+ }), f(this, ti, () => {
1381
+ h(j, this).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA && m(F, this, hi).call(this, !1);
1382
+ }), p(M, this, t), p(Kr, this, n == null ? void 0 : n.maxVideoBitRate), h(M, this).style.position = "absolute", h(M, this).style.top = "0", h(M, this).style.left = "0", h(M, this).style.width = "100%", h(M, this).style.height = "100%", h(M, this).style.opacity = "0", h(M, this).style.pointerEvents = "none", h(M, this).style.transition = "opacity 0.12s linear";
1380
1383
  let r = document.createElement("video");
1381
- p(j, this, r), t.appendChild(h(j, this)), h(j, this).style.width = "100%", h(j, this).style.height = "100%", h(j, this).setAttribute("playsinline", ""), h(j, this).setAttribute("webkit-playsinline", ""), h(j, this).setAttribute("preload", "metadata"), m(F, this, ui).call(this), p(Jr, this, h(j, this).muted), (n == null ? void 0 : n.volume) !== void 0 && (this.volume = n.volume), (n == null ? void 0 : n.muted) !== void 0 && (this.muted = n.muted);
1384
+ p(j, this, r), t.appendChild(h(j, this)), h(j, this).style.width = "100%", h(j, this).style.height = "100%", h(j, this).setAttribute("playsinline", ""), h(j, this).setAttribute("webkit-playsinline", ""), h(j, this).setAttribute("preload", "metadata"), m(F, this, pi).call(this), p(Zr, this, h(j, this).muted), (n == null ? void 0 : n.volume) !== void 0 && (this.volume = n.volume), (n == null ? void 0 : n.muted) !== void 0 && (this.muted = n.muted);
1382
1385
  }
1383
1386
  hide() {
1384
- p(Wr, this, !0), p(Gr, this, !1), h(M, this).classList.remove("active"), h(M, this).style.opacity = "0", h(M, this).style.pointerEvents = "none", p(Kr, this, null);
1387
+ p(qr, this, !0), p(Jr, this, !1), h(M, this).classList.remove("active"), h(M, this).style.opacity = "0", h(M, this).style.pointerEvents = "none", p(Yr, this, null);
1385
1388
  }
1386
1389
  play() {
1387
1390
  var e = this;
@@ -1397,17 +1400,17 @@ var jr = fe.get().createContext("TimelineMarkers"), Mr = /^\d{4}-\d{2}-\d{2}[T ]
1397
1400
  var n = this;
1398
1401
  return t(function* () {
1399
1402
  if (h(P, n).debug("HlsPlayer seek to", e.time), !Number.isFinite(e.time)) {
1400
- p(Kr, n, null);
1403
+ p(Yr, n, null);
1401
1404
  return;
1402
1405
  }
1403
- if (p(Kr, n, e.time > .1 ? e.time : null), n.isActive() && h(N, n)) m(F, n, ii).call(n, e.time);
1404
- else return m(F, n, ai).call(n, e);
1406
+ if (p(Yr, n, e.time > .1 ? e.time : null), n.isActive() && h(N, n)) m(F, n, si).call(n, e.time);
1407
+ else return m(F, n, ci).call(n, e);
1405
1408
  })();
1406
1409
  }
1407
1410
  shouldIgnoreTimeupdate() {
1408
- if (h(Kr, this) == null) return !1;
1411
+ if (h(Yr, this) == null) return !1;
1409
1412
  let e = h(j, this).currentTime;
1410
- return !Number.isFinite(e) || e <= .1 ? !0 : (p(Kr, this, null), !1);
1413
+ return !Number.isFinite(e) || e <= .1 ? !0 : (p(Yr, this, null), !1);
1411
1414
  }
1412
1415
  isPipSupported() {
1413
1416
  return "pictureInPictureEnabled" in document && !h(j, this).disablePictureInPicture;
@@ -1422,7 +1425,7 @@ var jr = fe.get().createContext("TimelineMarkers"), Mr = /^\d{4}-\d{2}-\d{2}[T ]
1422
1425
  return h(M, this).style.opacity === "1" || h(M, this).classList.contains("active");
1423
1426
  }
1424
1427
  cleanup() {
1425
- m(F, this, di).call(this), m(F, this, ri).call(this), h(Hr, this) && (cancelAnimationFrame(h(Hr, this)), p(Hr, this, void 0)), p(Kr, this, null), h(j, this).remove();
1428
+ m(F, this, mi).call(this), m(F, this, oi).call(this), h(Gr, this) && (cancelAnimationFrame(h(Gr, this)), p(Gr, this, void 0)), p(Yr, this, null), h(j, this).remove();
1426
1429
  }
1427
1430
  addEventListener(e, t) {
1428
1431
  h(j, this).addEventListener(e, t);
@@ -1434,7 +1437,7 @@ var jr = fe.get().createContext("TimelineMarkers"), Mr = /^\d{4}-\d{2}-\d{2}[T ]
1434
1437
  return h(j, this).dispatchEvent(e);
1435
1438
  }
1436
1439
  setTimeshiftUrl(e) {
1437
- h(Vr, this) !== e && (h(P, this).debug("HLSPlayer Setting timeshift URL to", e), p(Vr, this, e));
1440
+ h(Wr, this) !== e && (h(P, this).debug("HLSPlayer Setting timeshift URL to", e), p(Wr, this, e));
1438
1441
  }
1439
1442
  get videoElement() {
1440
1443
  return h(j, this);
@@ -1452,10 +1455,10 @@ var jr = fe.get().createContext("TimelineMarkers"), Mr = /^\d{4}-\d{2}-\d{2}[T ]
1452
1455
  return h(j, this).volume;
1453
1456
  }
1454
1457
  set muted(e) {
1455
- p(Jr, this, e), h(j, this).muted = e;
1458
+ p(Zr, this, e), h(j, this).muted = e;
1456
1459
  }
1457
1460
  get muted() {
1458
- return h(Jr, this);
1461
+ return h(Zr, this);
1459
1462
  }
1460
1463
  set currentTime(e) {
1461
1464
  h(j, this).currentTime = e;
@@ -1470,17 +1473,17 @@ var jr = fe.get().createContext("TimelineMarkers"), Mr = /^\d{4}-\d{2}-\d{2}[T ]
1470
1473
  return h(j, this).duration;
1471
1474
  }
1472
1475
  get maxVideoBitRate() {
1473
- return h(Ur, this);
1476
+ return h(Kr, this);
1474
1477
  }
1475
1478
  set maxVideoBitRate(e) {
1476
- p(Ur, this, e), e !== void 0 && h(N, this) && m(F, this, ti).call(this, e);
1479
+ p(Kr, this, e), e !== void 0 && h(N, this) && m(F, this, ii).call(this, e);
1477
1480
  }
1478
1481
  };
1479
- function ei() {
1482
+ function ri() {
1480
1483
  var e = this;
1481
1484
  return t(function* () {
1482
1485
  let { default: t } = yield import("./Ct8GqCxq.js");
1483
- if (p(Br, e, t), !t.isSupported()) {
1486
+ if (p(Ur, e, t), !t.isSupported()) {
1484
1487
  h(P, e).warn("HLS not supported");
1485
1488
  return;
1486
1489
  }
@@ -1504,17 +1507,17 @@ function ei() {
1504
1507
  testBandwidth: !1,
1505
1508
  debug: !1
1506
1509
  })), h(N, e).attachMedia(h(j, e)), h(N, e).on(t.Events.MEDIA_ATTACHED, () => h(P, e).debug("[HLS] media attached")), h(N, e).on(t.Events.MANIFEST_PARSED, () => h(P, e).debug("[HLS] manifest parsed")), h(N, e).on(t.Events.ERROR, (t, n) => {
1507
- h(P, e).error("[HLS] error:", n), n.fatal && m(F, e, ni).call(e, n);
1510
+ h(P, e).error("[HLS] error:", n), n.fatal && m(F, e, ai).call(e, n);
1508
1511
  }), h(N, e).on(t.Events.MANIFEST_PARSED, () => {
1509
1512
  var t;
1510
- !h(Ur, e) || ((t = h(N, e)) == null ? void 0 : t.levels.length) === 0 || m(F, e, ti).call(e, h(Ur, e));
1513
+ !h(Kr, e) || ((t = h(N, e)) == null ? void 0 : t.levels.length) === 0 || m(F, e, ii).call(e, h(Kr, e));
1511
1514
  }), h(N, e).on(t.Events.LEVEL_SWITCHED, () => {
1512
1515
  var t, n;
1513
1516
  h(P, e).debug("Level switched:", (t = h(N, e)) == null ? void 0 : t.currentLevel, "max:", e.maxVideoBitRate, "autoLevelCapping:", (n = h(N, e)) == null ? void 0 : n.autoLevelCapping);
1514
1517
  });
1515
1518
  })();
1516
1519
  }
1517
- function ti(e) {
1520
+ function ii(e) {
1518
1521
  if (!h(N, this)) {
1519
1522
  h(P, this).warn("HLS not initialized, cannot set bitrate cap");
1520
1523
  return;
@@ -1530,12 +1533,12 @@ function ti(e) {
1530
1533
  let r = h(N, this).currentLevel;
1531
1534
  h(N, this).autoLevelCapping = t, r !== t && (h(P, this).debug(`Current level ${r} exceeds cap ${t}, forcing immediate switch`), h(N, this).currentLevel = t);
1532
1535
  }
1533
- function ni(e) {
1534
- if (!h(Br, this)) {
1536
+ function ai(e) {
1537
+ if (!h(Ur, this)) {
1535
1538
  h(P, this).error("Hls class not available for error handling");
1536
1539
  return;
1537
1540
  }
1538
- let t = h(Br, this);
1541
+ let t = h(Ur, this);
1539
1542
  switch (e.type) {
1540
1543
  case t.ErrorTypes.NETWORK_ERROR:
1541
1544
  var n;
@@ -1546,39 +1549,39 @@ function ni(e) {
1546
1549
  h(P, this).warn("[HLS] media error -> recoverMediaError"), (r = h(N, this)) == null || r.recoverMediaError();
1547
1550
  break;
1548
1551
  default:
1549
- h(P, this).error("[HLS] fatal -> destroy"), m(F, this, ri).call(this);
1552
+ h(P, this).error("[HLS] fatal -> destroy"), m(F, this, oi).call(this);
1550
1553
  break;
1551
1554
  }
1552
1555
  }
1553
- function ri() {
1556
+ function oi() {
1554
1557
  h(N, this) && (h(N, this).destroy(), p(N, this, void 0));
1555
1558
  }
1556
- function ii(e) {
1559
+ function si(e) {
1557
1560
  if (!Number.isFinite(e)) {
1558
- p(Kr, this, null);
1561
+ p(Yr, this, null);
1559
1562
  return;
1560
1563
  }
1561
- let t = m(F, this, li).call(this, h(j, this), e);
1562
- p(Kr, this, t > .1 ? t : null), h(Hr, this) && cancelAnimationFrame(h(Hr, this)), p(Hr, this, requestAnimationFrame(() => {
1564
+ let t = m(F, this, fi).call(this, h(j, this), e);
1565
+ p(Yr, this, t > .1 ? t : null), h(Gr, this) && cancelAnimationFrame(h(Gr, this)), p(Gr, this, requestAnimationFrame(() => {
1563
1566
  h(j, this).currentTime = t;
1564
1567
  }));
1565
1568
  }
1566
- function ai(e) {
1569
+ function ci(e) {
1567
1570
  var n = this;
1568
1571
  return t(function* () {
1569
1572
  var t;
1570
- let { time: r, playWhenReady: i = !0 } = e || {}, a = p(qr, n, (t = h(qr, n), ++t));
1571
- if (!h(Vr, n)) {
1573
+ let { time: r, playWhenReady: i = !0 } = e || {}, a = p(Xr, n, (t = h(Xr, n), ++t));
1574
+ if (!h(Wr, n)) {
1572
1575
  h(P, n).warn("No timeshift URL");
1573
1576
  return;
1574
1577
  }
1575
- if (!h(N, n) && (yield m(F, n, ei).call(n), !m(F, n, pi).call(n, a))) return;
1576
- p(Wr, n, !1), p(Gr, n, !1), h(N, n) && (!h(N, n).url || h(N, n).url !== h(Vr, n)) && (h(P, n).debug("Loading timeshift URL", h(Vr, n)), h(N, n).loadSource(h(Vr, n)));
1578
+ if (!h(N, n) && (yield m(F, n, ri).call(n), !m(F, n, gi).call(n, a))) return;
1579
+ p(qr, n, !1), p(Jr, n, !1), h(N, n) && (!h(N, n).url || h(N, n).url !== h(Wr, n)) && (h(P, n).debug("Loading timeshift URL", h(Wr, n)), h(N, n).loadSource(h(Wr, n)));
1577
1580
  let o = n.muted;
1578
- h(j, n).muted = !0, yield m(F, n, oi).call(n), m(F, n, pi).call(n, a) && (m(F, n, ii).call(n, r), !(i && (yield n.play(), !m(F, n, pi).call(n, a))) && m(F, n, si).call(n, o, a));
1581
+ h(j, n).muted = !0, yield m(F, n, li).call(n), m(F, n, gi).call(n, a) && (m(F, n, si).call(n, r), !(i && (yield n.play(), !m(F, n, gi).call(n, a))) && m(F, n, ui).call(n, o, a));
1579
1582
  })();
1580
1583
  }
1581
- function oi() {
1584
+ function li() {
1582
1585
  return h(j, this).duration && !Number.isNaN(h(j, this).duration) ? Promise.resolve() : new Promise((e) => {
1583
1586
  h(P, this).debug("Waiting for duration...");
1584
1587
  let t = () => {
@@ -1589,11 +1592,11 @@ function oi() {
1589
1592
  h(j, this).addEventListener("loadedmetadata", t);
1590
1593
  });
1591
1594
  }
1592
- function si(e, t) {
1595
+ function ui(e, t) {
1593
1596
  let n = HTMLMediaElement.HAVE_CURRENT_DATA, r = () => h(j, this).readyState >= n && h(j, this).videoWidth > 0 && h(j, this).videoHeight > 0, i = () => {
1594
- h(Wr, this) || h(Gr, this) || !m(F, this, pi).call(this, t) || (p(Gr, this, !0), h(P, this).debug("Revealing timeshift video"), h(M, this).classList.add("active"), h(M, this).style.opacity = "1", h(M, this).style.pointerEvents = "auto", h(j, this).dispatchEvent(new CustomEvent("timeshiftready", { detail: { activationId: t } })), e || m(F, this, ci).call(this, t));
1597
+ h(qr, this) || h(Jr, this) || !m(F, this, gi).call(this, t) || (p(Jr, this, !0), h(P, this).debug("Revealing timeshift video"), h(M, this).classList.add("active"), h(M, this).style.opacity = "1", h(M, this).style.pointerEvents = "auto", h(j, this).dispatchEvent(new CustomEvent("timeshiftready", { detail: { activationId: t } })), e || m(F, this, di).call(this, t));
1595
1598
  }, a = () => {
1596
- h(Wr, this) || h(Gr, this) || !m(F, this, pi).call(this, t) || r() && (s(), i());
1599
+ h(qr, this) || h(Jr, this) || !m(F, this, gi).call(this, t) || r() && (s(), i());
1597
1600
  }, o = !1, s = () => {
1598
1601
  o || (o = !0, h(j, this).removeEventListener("canplay", a), h(j, this).removeEventListener("canplaythrough", a), h(j, this).removeEventListener("loadeddata", a), clearTimeout(c));
1599
1602
  };
@@ -1606,9 +1609,9 @@ function si(e, t) {
1606
1609
  h(P, this).debug("Timeout reached, forcing reveal"), s(), i();
1607
1610
  }, 2e3);
1608
1611
  }
1609
- function ci(e) {
1612
+ function di(e) {
1610
1613
  let t = () => {
1611
- m(F, this, pi).call(this, e) && (h(j, this).muted = !1);
1614
+ m(F, this, gi).call(this, e) && (h(j, this).muted = !1);
1612
1615
  };
1613
1616
  "requestVideoFrameCallback" in h(j, this) ? h(j, this).requestVideoFrameCallback(() => {
1614
1617
  setTimeout(() => {
@@ -1618,43 +1621,43 @@ function ci(e) {
1618
1621
  t();
1619
1622
  }, 120);
1620
1623
  }
1621
- function li(e, t) {
1624
+ function fi(e, t) {
1622
1625
  let n = e.seekable;
1623
1626
  if (!n || n.length === 0) return t;
1624
1627
  let r = n.start(0), i = n.end(n.length - 1);
1625
1628
  return h(P, this).debug("Clamped seekable:", Math.max(r, Math.min(t, i))), Math.max(r, Math.min(t, i));
1626
1629
  }
1627
- function ui() {
1628
- for (let e of mi._) h(j, this).addEventListener(e, h(Yr, this));
1629
- for (let e of hi._) h(j, this).addEventListener(e, h(Xr, this));
1630
- h(j, this).addEventListener("timeupdate", h(Zr, this)), h(j, this).addEventListener("progress", h(Qr, this));
1630
+ function pi() {
1631
+ for (let e of _i._) h(j, this).addEventListener(e, h(Qr, this));
1632
+ for (let e of vi._) h(j, this).addEventListener(e, h($r, this));
1633
+ h(j, this).addEventListener("timeupdate", h(ei, this)), h(j, this).addEventListener("progress", h(ti, this));
1631
1634
  }
1632
- function di() {
1633
- for (let e of mi._) h(j, this).removeEventListener(e, h(Yr, this));
1634
- for (let e of hi._) h(j, this).removeEventListener(e, h(Xr, this));
1635
- h(j, this).removeEventListener("timeupdate", h(Zr, this)), h(j, this).removeEventListener("progress", h(Qr, this));
1635
+ function mi() {
1636
+ for (let e of _i._) h(j, this).removeEventListener(e, h(Qr, this));
1637
+ for (let e of vi._) h(j, this).removeEventListener(e, h($r, this));
1638
+ h(j, this).removeEventListener("timeupdate", h(ei, this)), h(j, this).removeEventListener("progress", h(ti, this));
1636
1639
  }
1637
- function fi(e) {
1640
+ function hi(e) {
1638
1641
  let t = e && (h(j, this).readyState < HTMLMediaElement.HAVE_FUTURE_DATA || h(j, this).seeking || h(j, this).paused && !this.userPaused);
1639
1642
  h(j, this).dispatchEvent(new CustomEvent(t ? "hlsbuffering" : "hlsnotbuffering", {
1640
1643
  bubbles: !0,
1641
1644
  composed: !0
1642
1645
  }));
1643
1646
  }
1644
- function pi(e) {
1645
- return h(qr, this) === e;
1647
+ function gi(e) {
1648
+ return h(Xr, this) === e;
1646
1649
  }
1647
- var mi = { _: [
1650
+ var _i = { _: [
1648
1651
  "waiting",
1649
1652
  "seeking",
1650
1653
  "stalled",
1651
1654
  "loadstart"
1652
- ] }, hi = { _: [
1655
+ ] }, vi = { _: [
1653
1656
  "canplay",
1654
1657
  "canplaythrough",
1655
1658
  "seeked",
1656
1659
  "loadeddata"
1657
- ] }, gi = class {
1660
+ ] }, yi = class {
1658
1661
  constructor(e) {
1659
1662
  this.vindral = e;
1660
1663
  }
@@ -1674,19 +1677,19 @@ var mi = { _: [
1674
1677
  pause() {
1675
1678
  this.vindral.pause();
1676
1679
  }
1677
- }, _i = document.createElement("template");
1678
- _i.innerHTML = "\n <style>\n :host {\n --value: 0;\n --range-thickness: var(--vindral-range-thickness, 4px);\n --range-hover-thickness: var(--vindral-range-hover-thickness, var(--range-thickness));\n --range-thumb-size: var(--vindral-range-thumb-size, 12px);\n --range-thumb-hover-size: var(--vindral-range-thumb-hover-size, var(--range-thumb-size));\n --range-fill-color: var(--vindral-range-fill-color, var(--fg-strong));\n --range-thumb-color: var(--vindral-range-thumb-color, var(--fg-strong));\n --_focus-box-shadow: none;\n height: calc(var(--button-icon-size) + 2 * var(--button-padding));\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 !important;\n margin: 0;\n position: relative;\n cursor: pointer;\n touch-action: none;\n box-shadow: var(--_focus-visible-box-shadow, none);\n outline: 0;\n background: transparent;\n }\n\n :host > * {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range {\n -webkit-appearance: none;\n appearance: none;\n\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n\n background-color: #00000000;\n outline: none;\n z-index: 1;\n cursor: pointer;\n }\n\n #range-track {\n position: absolute;\n top: calc(50% - calc(var(--range-thickness) / 2));\n left: 1px;\n width: calc(100% - 2px);\n height: var(--range-thickness);\n background-color: rgb(255 255 255 / 0.2);\n overflow: hidden;\n cursor: pointer;\n transition-property: height, top;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range-track {\n height: var(--range-hover-thickness);\n top: calc(50% - calc(var(--range-hover-thickness) / 2));\n }\n }\n\n #range-track::before {\n position: absolute;\n content: \"\";\n left: calc(-100%);\n top: 0;\n width: calc(100%);\n height: 100%;\n background: var(--range-fill-color);\n transition: background-color 300ms ease-out;\n transform-origin: 100% 0%;\n transform: translateX(calc(var(--value) * 100%)) scaleX(1.2);\n }\n\n #range::-webkit-slider-runnable-track {\n background: transparent;\n }\n\n #range::-moz-range-track {\n background: transparent;\n }\n\n #range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range::-moz-range-thumb {\n -moz-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n border: none;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n :host:has(#range:focus-visible) {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range::-webkit-slider-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n\n :host(:hover) #range::-moz-range-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n }\n </style>\n\n <input type=\"range\" id=\"range\" min=\"0\" max=\"1\" step=\"any\" value=\"0\" />\n <div id=\"range-track\"></div>\n";
1679
- var vi = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), bi = class extends HTMLElement {
1680
+ }, bi = document.createElement("template");
1681
+ bi.innerHTML = "\n <style>\n :host {\n --value: 0;\n --range-thickness: var(--vindral-range-thickness, 4px);\n --range-hover-thickness: var(--vindral-range-hover-thickness, var(--range-thickness));\n --range-thumb-size: var(--vindral-range-thumb-size, 12px);\n --range-thumb-hover-size: var(--vindral-range-thumb-hover-size, var(--range-thumb-size));\n --range-fill-color: var(--vindral-range-fill-color, var(--fg-strong));\n --range-thumb-color: var(--vindral-range-thumb-color, var(--fg-strong));\n --_focus-box-shadow: none;\n height: calc(var(--button-icon-size) + 2 * var(--button-padding));\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 !important;\n margin: 0;\n position: relative;\n cursor: pointer;\n touch-action: none;\n box-shadow: var(--_focus-visible-box-shadow, none);\n outline: 0;\n background: transparent;\n }\n\n :host > * {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range {\n -webkit-appearance: none;\n appearance: none;\n\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n\n background-color: #00000000;\n outline: none;\n z-index: 1;\n cursor: pointer;\n }\n\n #range-track {\n position: absolute;\n top: calc(50% - calc(var(--range-thickness) / 2));\n left: 1px;\n width: calc(100% - 2px);\n height: var(--range-thickness);\n background-color: rgb(255 255 255 / 0.2);\n overflow: hidden;\n cursor: pointer;\n transition-property: height, top;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range-track {\n height: var(--range-hover-thickness);\n top: calc(50% - calc(var(--range-hover-thickness) / 2));\n }\n }\n\n #range-track::before {\n position: absolute;\n content: \"\";\n left: calc(-100%);\n top: 0;\n width: calc(100%);\n height: 100%;\n background: var(--range-fill-color);\n transition: background-color 300ms ease-out;\n transform-origin: 100% 0%;\n transform: translateX(calc(var(--value) * 100%)) scaleX(1.2);\n }\n\n #range::-webkit-slider-runnable-track {\n background: transparent;\n }\n\n #range::-moz-range-track {\n background: transparent;\n }\n\n #range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range::-moz-range-thumb {\n -moz-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n border: none;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n :host:has(#range:focus-visible) {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range::-webkit-slider-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n\n :host(:hover) #range::-moz-range-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n }\n </style>\n\n <input type=\"range\" id=\"range\" min=\"0\" max=\"1\" step=\"any\" value=\"0\" />\n <div id=\"range-track\"></div>\n";
1682
+ var xi = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ci = class extends HTMLElement {
1680
1683
  constructor() {
1681
- super(), f(this, vi, null), f(this, yi, void 0), e(this, "range", void 0), p(yi, this, this.attachShadow({ mode: "open" })), h(yi, this).appendChild(_i.content.cloneNode(!0)), this.range = h(yi, this).getElementById("range");
1684
+ super(), f(this, xi, null), f(this, Si, void 0), e(this, "range", void 0), p(Si, this, this.attachShadow({ mode: "open" })), h(Si, this).appendChild(bi.content.cloneNode(!0)), this.range = h(Si, this).getElementById("range");
1682
1685
  }
1683
1686
  connectedCallback() {
1684
1687
  var e;
1685
- p(vi, this, this.closest("vindral-controller")), (e = h(vi, this)) == null || e.connectListener(this), this.hasAttribute("disabled") || this.enable();
1688
+ p(xi, this, this.closest("vindral-controller")), (e = h(xi, this)) == null || e.connectListener(this), this.hasAttribute("disabled") || this.enable();
1686
1689
  }
1687
1690
  disconnectedCallback() {
1688
1691
  var e;
1689
- (e = h(vi, this)) == null || e.disconnectListener(this);
1692
+ (e = h(xi, this)) == null || e.disconnectListener(this);
1690
1693
  }
1691
1694
  attributeChangedCallback(e, t, n) {
1692
1695
  t !== n && (e === "disabled" && n ? this.disable() : this.enable(), this.updateBar());
@@ -1712,11 +1715,11 @@ var vi = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), bi =
1712
1715
  ];
1713
1716
  }
1714
1717
  };
1715
- e(bi, "observedAttributes", ["disabled"]);
1718
+ e(Ci, "observedAttributes", ["disabled"]);
1716
1719
  //#endregion
1717
1720
  //#region ../../libs/player-next/src/components/Controller.ts
1718
- var xi = document.createElement("template");
1719
- xi.innerHTML = `
1721
+ var wi = document.createElement("template");
1722
+ wi.innerHTML = `
1720
1723
  <style>
1721
1724
  :host {
1722
1725
  --fg-strong: var(--vindral-fg-strong, #eeeeee);
@@ -1929,7 +1932,7 @@ xi.innerHTML = `
1929
1932
  <slot id="overlay-interactive" name="overlay-interactive"></slot>
1930
1933
  </div>
1931
1934
  `;
1932
- var Si = [
1935
+ var Ti = [
1933
1936
  "ArrowDown",
1934
1937
  "ArrowLeft",
1935
1938
  "ArrowRight",
@@ -1938,27 +1941,27 @@ var Si = [
1938
1941
  " ",
1939
1942
  "f",
1940
1943
  "m"
1941
- ], Ci = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), Gi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), Ta = class extends HTMLElement {
1944
+ ], Ei = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), ki = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Fi = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Oa = class extends HTMLElement {
1942
1945
  constructor() {
1943
1946
  var t;
1944
- super(), S(this, H), f(this, Ci, /* @__PURE__ */ new Map()), f(this, wi, 2e3), f(this, Ti, null), f(this, Ei, new wr({ onChange: (e) => m(H, this, U).call(this, g.DURATION, e.toString()) })), f(this, Di, null), f(this, Oi, void 0), f(this, I, void 0), f(this, L, void 0), f(this, ki, void 0), f(this, R, void 0), f(this, Ai, we), f(this, ji, void 0), f(this, Mi, void 0), f(this, Ni, void 0), f(this, Pi, void 0), f(this, z, void 0), f(this, Fi, void 0), f(this, Ii, void 0), f(this, Li, void 0), f(this, B, void 0), f(this, Ri, void 0), f(this, zi, void 0), f(this, Bi, void 0), f(this, V, void 0), f(this, Vi, null), f(this, Hi, !1), f(this, Ui, null), f(this, Wi, void 0), f(this, Gi, (e) => {
1947
+ super(), S(this, H), f(this, Ei, /* @__PURE__ */ new Map()), f(this, Di, 2e3), f(this, Oi, null), f(this, ki, new Dr({ onChange: (e) => m(H, this, U).call(this, g.DURATION, e.toString()) })), f(this, Ai, null), f(this, ji, void 0), f(this, I, void 0), f(this, L, void 0), f(this, Mi, void 0), f(this, R, void 0), f(this, Ni, we), f(this, Pi, void 0), f(this, Fi, void 0), f(this, Ii, void 0), f(this, Li, void 0), f(this, z, void 0), f(this, Ri, void 0), f(this, zi, void 0), f(this, Bi, void 0), f(this, B, void 0), f(this, Vi, void 0), f(this, Hi, void 0), f(this, Ui, void 0), f(this, V, void 0), f(this, Wi, null), f(this, Gi, !1), f(this, Ki, null), f(this, qi, void 0), f(this, Ji, (e) => {
1945
1948
  let t = e.filter((e) => {
1946
1949
  var t;
1947
1950
  return (t = e.video) == null ? void 0 : t.width;
1948
1951
  });
1949
1952
  m(H, this, U).call(this, g.RENDITION_LEVELS, JSON.stringify(t));
1950
- }), f(this, Ki, (e) => {
1953
+ }), f(this, Yi, (e) => {
1951
1954
  m(H, this, U).call(this, g.RENDITION_LEVEL, JSON.stringify(e));
1952
- }), f(this, qi, !1), f(this, Ji, (e) => {
1953
- let t = h(qi, this);
1954
- p(qi, this, !0);
1955
+ }), f(this, Xi, !1), f(this, Zi, (e) => {
1956
+ let t = h(Xi, this);
1957
+ p(Xi, this, !0);
1955
1958
  try {
1956
1959
  e();
1957
1960
  } finally {
1958
- p(qi, this, t);
1961
+ p(Xi, this, t);
1959
1962
  }
1960
- }), f(this, Yi, (e) => {
1961
- h(Ji, this).call(this, () => {
1963
+ }), f(this, Qi, (e) => {
1964
+ h(Zi, this).call(this, () => {
1962
1965
  switch (e) {
1963
1966
  case "playing":
1964
1967
  m(H, this, W).call(this, g.PAUSED), m(H, this, W).call(this, g.BUFFERING);
@@ -1972,40 +1975,40 @@ var Si = [
1972
1975
  default: break;
1973
1976
  }
1974
1977
  });
1975
- }), f(this, Xi, (e) => {
1976
- h(Ji, this).call(this, () => {
1978
+ }), f(this, $i, (e) => {
1979
+ h(Zi, this).call(this, () => {
1977
1980
  m(H, this, U).call(this, g.VOLUME, e.volume.toString()), e.isMuted ? m(H, this, U).call(this, g.MUTED, "") : m(H, this, W).call(this, g.MUTED);
1978
1981
  });
1979
- }), f(this, Zi, ({ channelId: e }) => {
1982
+ }), f(this, ea, ({ channelId: e }) => {
1980
1983
  var t;
1981
1984
  this.setAttribute(g.CHANNEL_ID, e), ((t = h(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && m(H, this, W).call(this, g.BUFFERING);
1982
- }), f(this, Qi, ({ channelId: e }) => {
1985
+ }), f(this, ta, ({ channelId: e }) => {
1983
1986
  var t;
1984
- h(ji, this) !== e && this.setAttribute(g.CHANNEL_ID, e), ((t = h(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && m(H, this, W).call(this, g.BUFFERING);
1985
- }), f(this, $i, (e) => {
1986
- p(xa, this, Date.now()), m(H, this, U).call(this, g.CHANNELS, JSON.stringify(e));
1987
- }), f(this, ea, (e) => {
1987
+ h(Pi, this) !== e && this.setAttribute(g.CHANNEL_ID, e), ((t = h(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && m(H, this, W).call(this, g.BUFFERING);
1988
+ }), f(this, na, (e) => {
1989
+ p(wa, this, Date.now()), m(H, this, U).call(this, g.CHANNELS, JSON.stringify(e));
1990
+ }), f(this, ra, (e) => {
1988
1991
  var t;
1989
1992
  m(H, this, U).call(this, g.LANGUAGES, JSON.stringify(e)), (t = h(I, this)) != null && t.language && m(H, this, U).call(this, g.LANGUAGE, h(I, this).language);
1990
- }), f(this, ta, (e) => {
1993
+ }), f(this, ia, (e) => {
1991
1994
  var t;
1992
1995
  if (m(H, this, U).call(this, g.TEXT_TRACKS, JSON.stringify(e)), (t = h(I, this)) != null && t.textTrack) {
1993
1996
  var n, r;
1994
1997
  m(H, this, U).call(this, g.TEXT_TRACK, (n = (r = h(I, this)) == null ? void 0 : r.textTrack) == null ? "" : n);
1995
1998
  }
1996
- }), f(this, na, (e) => {
1999
+ }), f(this, aa, (e) => {
1997
2000
  e != null && e.forVideo ? (m(H, this, U).call(this, g.NEEDS_USER_INPUT_VIDEO, ""), m(H, this, W).call(this, g.NEEDS_USER_INPUT_AUDIO)) : e != null && e.forAudio && (m(H, this, U).call(this, g.NEEDS_USER_INPUT_AUDIO, ""), m(H, this, W).call(this, g.NEEDS_USER_INPUT_VIDEO));
1998
- }), f(this, ra, (e) => {
1999
- e || m(H, this, W).call(this, g.BUFFERING), h(Ei, this).setLive(e);
2000
- }), f(this, ia, (e) => {
2001
+ }), f(this, oa, (e) => {
2002
+ e || m(H, this, W).call(this, g.BUFFERING), h(ki, this).setLive(e);
2003
+ }), f(this, sa, (e) => {
2001
2004
  var t, n;
2002
2005
  let { urls: r, duration: i } = e;
2003
2006
  if (!r[0] || !h(R, this)) return;
2004
2007
  let a = new URL(r[0]);
2005
- a.searchParams.set("channelId", (t = h(ji, this)) == null ? "" : t);
2008
+ a.searchParams.set("channelId", (t = h(Pi, this)) == null ? "" : t);
2006
2009
  let o = this.getAttribute("authentication-token");
2007
2010
  o && a.searchParams.set("authToken", o);
2008
- let s = Ar(i);
2011
+ let s = Nr(i);
2009
2012
  if (Number.isNaN(s)) {
2010
2013
  h(V, this).error(`Invalid duration format: ${i}`);
2011
2014
  return;
@@ -2013,70 +2016,70 @@ var Si = [
2013
2016
  let c = Math.floor(Date.now() / 1e3), l = (/* @__PURE__ */ new Date((c - s) * 1e3)).toISOString();
2014
2017
  a.searchParams.set("from", l);
2015
2018
  let u = a.toString();
2016
- h(R, this).setTimeshiftUrl(u), h(Ei, this).start({
2019
+ h(R, this).setTimeshiftUrl(u), h(ki, this).start({
2017
2020
  multivariantUrl: u,
2018
2021
  params: {
2019
- channelId: (n = h(ji, this)) == null ? "" : n,
2022
+ channelId: (n = h(Pi, this)) == null ? "" : n,
2020
2023
  authToken: o == null ? void 0 : o,
2021
2024
  from: l
2022
2025
  },
2023
2026
  windowCapSeconds: s
2024
2027
  });
2025
- }), f(this, aa, () => {
2026
- m(H, this, W).call(this, g.PAUSED), m(H, this, W).call(this, g.BUFFERING);
2027
- }), f(this, oa, () => {
2028
- m(H, this, U).call(this, g.PAUSED, ""), m(H, this, W).call(this, g.BUFFERING);
2029
- }), f(this, sa, () => {
2030
- h(va, this).call(this), m(H, this, W).call(this, g.BUFFERING);
2031
2028
  }), f(this, ca, () => {
2032
- h(R, this) && h(Ei, this).applyLoadedDuration(h(R, this).duration);
2029
+ m(H, this, W).call(this, g.PAUSED), m(H, this, W).call(this, g.BUFFERING);
2033
2030
  }), f(this, la, () => {
2031
+ m(H, this, U).call(this, g.PAUSED, ""), m(H, this, W).call(this, g.BUFFERING);
2032
+ }), f(this, ua, () => {
2033
+ h(xa, this).call(this), m(H, this, W).call(this, g.BUFFERING);
2034
+ }), f(this, da, () => {
2035
+ h(R, this) && h(ki, this).applyLoadedDuration(h(R, this).duration);
2036
+ }), f(this, fa, () => {
2034
2037
  var e, t;
2035
2038
  if (!h(R, this) || h(R, this).seeking || (e = (t = h(R, this)).shouldIgnoreTimeupdate) != null && e.call(t)) return;
2036
2039
  let n = h(R, this).currentTime;
2037
2040
  n !== void 0 && m(H, this, U).call(this, g.TIMESHIFT_POSITION, n.toString());
2038
- }), f(this, ua, () => {
2041
+ }), f(this, pa, () => {
2039
2042
  h(R, this) && (m(H, this, U).call(this, g.VOLUME, h(R, this).volume.toString()), h(R, this).muted ? m(H, this, U).call(this, g.MUTED, "") : m(H, this, W).call(this, g.MUTED));
2040
- }), f(this, da, () => {
2043
+ }), f(this, ma, () => {
2041
2044
  m(H, this, U).call(this, g.BUFFERING, "");
2042
- }), f(this, fa, () => {
2045
+ }), f(this, ha, () => {
2043
2046
  m(H, this, W).call(this, g.BUFFERING);
2044
- }), f(this, pa, () => {
2045
- if (h(Hi, this)) {
2047
+ }), f(this, ga, () => {
2048
+ if (h(Gi, this)) {
2046
2049
  if (h(L, this) !== h(R, this)) {
2047
- p(Hi, this, !1);
2050
+ p(Gi, this, !1);
2048
2051
  return;
2049
2052
  }
2050
- p(Hi, this, !1), m(H, this, ro).call(this);
2053
+ p(Gi, this, !1), m(H, this, oo).call(this);
2051
2054
  }
2052
- }), f(this, ma, 0), e(this, "handleEvent", (e) => {
2055
+ }), f(this, _a, 0), e(this, "handleEvent", (e) => {
2053
2056
  switch (e.type) {
2054
2057
  case "pointerdown":
2055
- p(ma, this, e.timeStamp);
2058
+ p(_a, this, e.timeStamp);
2056
2059
  break;
2057
2060
  case "pointermove":
2058
- m(H, this, Ka).call(this, e);
2061
+ m(H, this, Ya).call(this, e);
2059
2062
  break;
2060
2063
  case "pointerup":
2061
- m(H, this, qa).call(this, e);
2064
+ m(H, this, Xa).call(this, e);
2062
2065
  break;
2063
2066
  case "mouseleave":
2064
- m(H, this, to).call(this);
2067
+ m(H, this, io).call(this);
2065
2068
  break;
2066
2069
  case "dblclick":
2067
- m(H, this, Ya).call(this, e);
2070
+ m(H, this, Qa).call(this, e);
2068
2071
  break;
2069
2072
  case "mousemove":
2070
- m(H, this, Xa).call(this, e);
2073
+ m(H, this, $a).call(this, e);
2071
2074
  break;
2072
2075
  case "keydown":
2073
- h(_a, this).call(this, e);
2076
+ h(ba, this).call(this, e);
2074
2077
  break;
2075
2078
  case "keyup":
2076
- m(H, this, to).call(this), h(ga, this).call(this, e);
2079
+ m(H, this, io).call(this), h(ya, this).call(this, e);
2077
2080
  break;
2078
2081
  }
2079
- }), f(this, ha, (e) => {
2082
+ }), f(this, va, (e) => {
2080
2083
  if (h(I, this) && (h(V, this).debug("Vindral event", { type: e.type }), e instanceof CustomEvent)) switch (e.type) {
2081
2084
  case x.PLAY:
2082
2085
  this.removeAttribute(g.PAUSED);
@@ -2121,10 +2124,10 @@ var Si = [
2121
2124
  }
2122
2125
  break;
2123
2126
  case x.CHANNEL_GRID_OPENED:
2124
- h(Vi, this) === null && m(H, this, Qa).call(this);
2127
+ h(Wi, this) === null && m(H, this, to).call(this);
2125
2128
  break;
2126
2129
  case x.CHANNEL_GRID_CLOSED:
2127
- h(Vi, this) !== null && (clearTimeout(h(Vi, this)), p(Vi, this, null));
2130
+ h(Wi, this) !== null && (clearTimeout(h(Wi, this)), p(Wi, this, null));
2128
2131
  break;
2129
2132
  case x.ENTER_PIP:
2130
2133
  this.setAttribute(g.IS_PIP, "");
@@ -2134,7 +2137,7 @@ var Si = [
2134
2137
  break;
2135
2138
  case x.REQUEST_AIRPLAY:
2136
2139
  var t;
2137
- (t = h(Li, this)) == null || t.showPlaybackTargetPicker();
2140
+ (t = h(Bi, this)) == null || t.showPlaybackTargetPicker();
2138
2141
  break;
2139
2142
  case x.SET_LANGUAGE:
2140
2143
  _(e.detail) ? this.setAttribute(g.LANGUAGE, e.detail) : this.removeAttribute(g.LANGUAGE);
@@ -2155,7 +2158,7 @@ var Si = [
2155
2158
  this.handleTimeShiftUpdate(String(e.detail));
2156
2159
  break;
2157
2160
  case x.GO_LIVE:
2158
- h(va, this).call(this);
2161
+ h(xa, this).call(this);
2159
2162
  break;
2160
2163
  case x.TOGGLE_DEBUG_PANEL:
2161
2164
  this.hasAttribute(g.DEBUG_PANEL_OPEN) ? this.removeAttribute(g.DEBUG_PANEL_OPEN) : this.setAttribute(g.DEBUG_PANEL_OPEN, "");
@@ -2167,64 +2170,64 @@ var Si = [
2167
2170
  }
2168
2171
  break;
2169
2172
  }
2170
- }), f(this, ga, (e) => {
2173
+ }), f(this, ya, (e) => {
2171
2174
  let { key: t } = e;
2172
- if (!Si.includes(t)) {
2175
+ if (!Ti.includes(t)) {
2173
2176
  this.removeEventListener("keyup", this);
2174
2177
  return;
2175
2178
  }
2176
- m(H, this, Za).call(this, e);
2177
- }), f(this, _a, (e) => {
2179
+ m(H, this, eo).call(this, e);
2180
+ }), f(this, ba, (e) => {
2178
2181
  let { metaKey: t, altKey: n, key: r } = e;
2179
- t || n || !Si.includes(r) || this.addEventListener("keyup", this, { once: !0 });
2180
- }), f(this, va, () => {
2182
+ t || n || !Ti.includes(r) || this.addEventListener("keyup", this, { once: !0 });
2183
+ }), f(this, xa, () => {
2181
2184
  this.removeAttribute(g.TIMESHIFT_POSITION), this.handleTimeShiftUpdate(!1);
2182
- }), f(this, ya, (e) => {
2185
+ }), f(this, Sa, (e) => {
2183
2186
  var t;
2184
- h(R, this) || m(H, this, Aa).call(this), h(L, this) !== h(R, this) && (e && m(H, this, io).call(this), p(L, this, h(R, this)), m(H, this, Oa).call(this), m(H, this, ka).call(this), m(H, this, Pa).call(this), (t = h(I, this)) == null || t.pause(), p(Hi, this, e));
2185
- }), f(this, ba, (e) => {
2187
+ h(R, this) || m(H, this, Na).call(this), h(L, this) !== h(R, this) && (e && m(H, this, so).call(this), p(L, this, h(R, this)), m(H, this, ja).call(this), m(H, this, Ma).call(this), m(H, this, La).call(this), (t = h(I, this)) == null || t.pause(), p(Gi, this, e));
2188
+ }), f(this, Ca, (e) => {
2186
2189
  var t, n, r, i;
2187
- e && m(H, this, io).call(this), (t = h(R, this)) == null || t.hide(), p(L, this, h(ki, this)), m(H, this, Pa).call(this), this.hasAttribute(g.PAUSED) ? (n = h(L, this)) == null || n.pause() : (r = h(L, this)) == null || r.play(), m(H, this, Ma).call(this), m(H, this, Da).call(this), (i = h(R, this)) == null || i.pause(), e && (p(Hi, this, !1), setTimeout(() => {
2188
- m(H, this, ro).call(this);
2190
+ e && m(H, this, so).call(this), (t = h(R, this)) == null || t.hide(), p(L, this, h(Mi, this)), m(H, this, La).call(this), this.hasAttribute(g.PAUSED) ? (n = h(L, this)) == null || n.pause() : (r = h(L, this)) == null || r.play(), m(H, this, Fa).call(this), m(H, this, Aa).call(this), (i = h(R, this)) == null || i.pause(), e && (p(Gi, this, !1), setTimeout(() => {
2191
+ m(H, this, oo).call(this);
2189
2192
  }, 100));
2190
2193
  }), e(this, "handleTimeShiftUpdate", (e) => {
2191
2194
  let t = this.hasAttribute(g.IS_PIP);
2192
2195
  if (e !== !1) {
2193
2196
  var n;
2194
- h(ya, this).call(this, t), (n = h(R, this)) == null || n.seek({
2197
+ h(Sa, this).call(this, t), (n = h(R, this)) == null || n.seek({
2195
2198
  time: parseFloat(e),
2196
2199
  playWhenReady: !this.hasAttribute(g.PAUSED)
2197
2200
  });
2198
2201
  return;
2199
2202
  }
2200
- h(L, this) !== h(ki, this) && h(ba, this).call(this, t);
2201
- }), f(this, xa, null), f(this, Sa, () => {
2203
+ h(L, this) !== h(Mi, this) && h(Ca, this).call(this, t);
2204
+ }), f(this, wa, null), f(this, Ta, () => {
2202
2205
  var e;
2203
2206
  let t = (e = h(I, this)) == null ? void 0 : e.currentRenditionLevel;
2204
2207
  if (!(t != null && t.video)) return;
2205
2208
  let n = o(t.video.width > t.video.height ? "landscape-primary" : "portrait-primary");
2206
2209
  n && n.catch(() => {});
2207
- }), f(this, Ca, () => {
2210
+ }), f(this, Ea, () => {
2208
2211
  r();
2209
- }), f(this, wa, null);
2212
+ }), f(this, Da, null);
2210
2213
  let n = this.attachShadow({ mode: "open" });
2211
- n.appendChild(xi.content.cloneNode(!0));
2214
+ n.appendChild(wi.content.cloneNode(!0));
2212
2215
  let i = ye(this.getAttribute("log-level"));
2213
- p(V, this, fe.get().createContext("VindralController")), h(V, this).setLevel(i), p(Oi, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#time-shift-video")), p(Wi, this, new Qn(n));
2216
+ p(V, this, fe.get().createContext("VindralController")), h(V, this).setLevel(i), p(ji, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#time-shift-video")), p(qi, this, new er(n));
2214
2217
  }
2215
2218
  connectedCallback() {
2216
2219
  var e = this;
2217
2220
  return t(function* () {
2218
- b(e.getAttribute("auto-instance-enabled"), !0) && (yield m(H, e, Ea).call(e));
2219
- for (let t of Object.values(x)) e.addEventListener(t, h(ha, e));
2220
- window.PointerEvent ? (e.addEventListener("pointerdown", e), e.addEventListener("pointermove", e), e.addEventListener("pointerup", e)) : e.addEventListener("mousemove", e), e.addEventListener("mouseleave", e), e.addEventListener("keydown", e), e.addEventListener("resize", e), e.addEventListener("dblclick", e), h(Ji, e).call(e, () => e.connectListener(e)), m(H, e, Wa).call(e), e.tabIndex = 0, e.focus({ preventScroll: !0 });
2221
+ b(e.getAttribute("auto-instance-enabled"), !0) && (yield m(H, e, ka).call(e));
2222
+ for (let t of Object.values(x)) e.addEventListener(t, h(va, e));
2223
+ window.PointerEvent ? (e.addEventListener("pointerdown", e), e.addEventListener("pointermove", e), e.addEventListener("pointerup", e)) : e.addEventListener("mousemove", e), e.addEventListener("mouseleave", e), e.addEventListener("keydown", e), e.addEventListener("resize", e), e.addEventListener("dblclick", e), h(Zi, e).call(e, () => e.connectListener(e)), m(H, e, qa).call(e), e.tabIndex = 0, e.focus({ preventScroll: !0 });
2221
2224
  })();
2222
2225
  }
2223
2226
  disconnectedCallback() {
2224
2227
  var e, t, n, r, i;
2225
- m(H, this, Ga).call(this), m(H, this, fo).call(this), h(Wi, this).unload(), (e = h(I, this)) == null || e.unload(), (t = h(z, this)) == null || t.unload(), (n = h(Fi, this)) == null || n.unload(), (r = h(Ii, this)) == null || r.unload(), (i = h(B, this)) == null || i.unload(), m(H, this, ja).call(this);
2226
- for (let e of Object.values(x)) this.removeEventListener(e, h(ha, this));
2227
- m(H, this, Oa).call(this), h(Ti, this) && (clearTimeout(h(Ti, this)), p(Ti, this, null)), h(Ei, this).stop(), this.disconnectListener(this);
2228
+ m(H, this, Ja).call(this), m(H, this, ho).call(this), h(qi, this).unload(), (e = h(I, this)) == null || e.unload(), (t = h(z, this)) == null || t.unload(), (n = h(Ri, this)) == null || n.unload(), (r = h(zi, this)) == null || r.unload(), (i = h(B, this)) == null || i.unload(), m(H, this, Pa).call(this);
2229
+ for (let e of Object.values(x)) this.removeEventListener(e, h(va, this));
2230
+ m(H, this, ja).call(this), h(Oi, this) && (clearTimeout(h(Oi, this)), p(Oi, this, null)), h(ki, this).stop(), this.disconnectListener(this);
2228
2231
  }
2229
2232
  attributeChangedCallback(e, t, n) {
2230
2233
  if (t !== n) {
@@ -2234,22 +2237,22 @@ var Si = [
2234
2237
  newValue: n
2235
2238
  }), e) {
2236
2239
  case "channel-id":
2237
- p(ji, this, n), h(I, this) && n && (h(I, this).channelId = n, h(I, this).play(), m(H, this, U).call(this, g.BUFFERING, ""), m(H, this, U).call(this, g.CHANNEL_ID, n), m(H, this, U).call(this, g.POSTER_SRC, h(I, this).getThumbnailUrl()));
2240
+ p(Pi, this, n), h(I, this) && n && (h(I, this).channelId = n, h(I, this).play(), m(H, this, U).call(this, g.BUFFERING, ""), m(H, this, U).call(this, g.CHANNEL_ID, n), m(H, this, U).call(this, g.POSTER_SRC, h(I, this).getThumbnailUrl()));
2238
2241
  break;
2239
2242
  case "channel-group-id":
2240
- p(Mi, this, n);
2243
+ p(Fi, this, n);
2241
2244
  break;
2242
2245
  case "url":
2243
- n && p(Ai, this, n);
2246
+ n && p(Ni, this, n);
2244
2247
  break;
2245
2248
  case "paused":
2246
2249
  if (_(n)) {
2247
- if (!h(qi, this)) {
2250
+ if (!h(Xi, this)) {
2248
2251
  var r;
2249
2252
  (r = h(L, this)) == null || r.pause();
2250
2253
  }
2251
2254
  m(H, this, U).call(this, g.PAUSED, "");
2252
- } else if (m(H, this, W).call(this, g.NEEDS_USER_INPUT_VIDEO), m(H, this, W).call(this, g.PAUSED), !h(qi, this)) {
2255
+ } else if (m(H, this, W).call(this, g.NEEDS_USER_INPUT_VIDEO), m(H, this, W).call(this, g.PAUSED), !h(Xi, this)) {
2253
2256
  var i;
2254
2257
  (i = h(L, this)) == null || i.play();
2255
2258
  }
@@ -2273,7 +2276,7 @@ var Si = [
2273
2276
  }
2274
2277
  break;
2275
2278
  case g.DEBUG_PANEL_OPEN:
2276
- _(n) ? m(H, this, U).call(this, g.DEBUG_PANEL_OPEN, "") : m(H, this, W).call(this, g.DEBUG_PANEL_OPEN), m(H, this, lo).call(this);
2279
+ _(n) ? m(H, this, U).call(this, g.DEBUG_PANEL_OPEN, "") : m(H, this, W).call(this, g.DEBUG_PANEL_OPEN), m(H, this, po).call(this);
2277
2280
  break;
2278
2281
  case "user-interacting":
2279
2282
  _(n) ? m(H, this, U).call(this, g.USER_INTERACTING, "") : m(H, this, W).call(this, g.USER_INTERACTING);
@@ -2281,7 +2284,7 @@ var Si = [
2281
2284
  case "muted":
2282
2285
  if (h(I, this)) if (_(n)) {
2283
2286
  var a;
2284
- if (h(qi, this) || (h(I, this).muted = !0, h(R, this) && (h(R, this).muted = !0)), m(H, this, U).call(this, g.MUTED, ""), (a = h(B, this)) != null && a.isMediaElementSource) {
2287
+ if (h(Xi, this) || (h(I, this).muted = !0, h(R, this) && (h(R, this).muted = !0)), m(H, this, U).call(this, g.MUTED, ""), (a = h(B, this)) != null && a.isMediaElementSource) {
2285
2288
  var o;
2286
2289
  (o = h(B, this)) == null || o.stop(), m(H, this, U).call(this, g.VOLUME_LEVEL, JSON.stringify({
2287
2290
  left: null,
@@ -2290,14 +2293,14 @@ var Si = [
2290
2293
  }
2291
2294
  } else {
2292
2295
  var s;
2293
- h(qi, this) || (h(I, this).muted = !1, h(R, this) && (h(R, this).muted = !1), h(I, this).volume === 0 && (h(I, this).volume = .3)), m(H, this, W).call(this, g.MUTED), m(H, this, W).call(this, g.NEEDS_USER_INPUT_AUDIO), (s = h(B, this)) == null || s.start();
2296
+ h(Xi, this) || (h(I, this).muted = !1, h(R, this) && (h(R, this).muted = !1), h(I, this).volume === 0 && (h(I, this).volume = .3)), m(H, this, W).call(this, g.MUTED), m(H, this, W).call(this, g.NEEDS_USER_INPUT_AUDIO), (s = h(B, this)) == null || s.start();
2294
2297
  }
2295
2298
  break;
2296
2299
  case "ui-locked":
2297
- _(n) ? m(H, this, eo).call(this) : m(H, this, to).call(this);
2300
+ _(n) ? m(H, this, ro).call(this) : m(H, this, io).call(this);
2298
2301
  break;
2299
2302
  case "is-fullscreen":
2300
- _(n) ? m(H, this, ao).call(this) : m(H, this, oo).call(this);
2303
+ _(n) ? m(H, this, co).call(this) : m(H, this, lo).call(this);
2301
2304
  break;
2302
2305
  case "abr-enabled":
2303
2306
  {
@@ -2312,13 +2315,13 @@ var Si = [
2312
2315
  }
2313
2316
  break;
2314
2317
  case "max-video-bit-rate":
2315
- p(Ni, this, n), _(n) ? m(H, this, U).call(this, g.MAX_VIDEO_BITRATE, n) : m(H, this, W).call(this, g.MAX_VIDEO_BITRATE), h(R, this) && (h(R, this).maxVideoBitRate = n ? be(n) : void 0);
2318
+ p(Ii, this, n), _(n) ? m(H, this, U).call(this, g.MAX_VIDEO_BITRATE, n) : m(H, this, W).call(this, g.MAX_VIDEO_BITRATE), h(R, this) && (h(R, this).maxVideoBitRate = n ? be(n) : void 0);
2316
2319
  break;
2317
2320
  case "max-initial-bit-rate":
2318
- p(Pi, this, n), _(n) ? m(H, this, U).call(this, g.MAX_INITIAL_BITRATE, n) : m(H, this, W).call(this, g.MAX_INITIAL_BITRATE);
2321
+ p(Li, this, n), _(n) ? m(H, this, U).call(this, g.MAX_INITIAL_BITRATE, n) : m(H, this, W).call(this, g.MAX_INITIAL_BITRATE);
2319
2322
  break;
2320
2323
  case "is-pip":
2321
- _(n) ? m(H, this, ro).call(this) : m(H, this, io).call(this);
2324
+ _(n) ? m(H, this, oo).call(this) : m(H, this, so).call(this);
2322
2325
  break;
2323
2326
  case "is-airplaying":
2324
2327
  if (_(n)) {
@@ -2332,17 +2335,17 @@ var Si = [
2332
2335
  case "is-casting":
2333
2336
  if (_(n)) {
2334
2337
  var ee, d;
2335
- (ee = h(Fi, this)) != null && ee.isFullscreen() && m(H, this, oo).call(this), (d = h(I, this)) == null || d.pause();
2338
+ (ee = h(Ri, this)) != null && ee.isFullscreen() && m(H, this, lo).call(this), (d = h(I, this)) == null || d.pause();
2336
2339
  } else if (!document.hidden) {
2337
2340
  var te;
2338
2341
  (te = h(I, this)) == null || te.play();
2339
2342
  }
2340
2343
  break;
2341
2344
  case "cast-receiver-id":
2342
- p(zi, this, n);
2345
+ p(Hi, this, n);
2343
2346
  break;
2344
2347
  case "cast-background":
2345
- p(Bi, this, n);
2348
+ p(Ui, this, n);
2346
2349
  break;
2347
2350
  case "language":
2348
2351
  h(I, this) && (h(I, this).language = n, _(n) ? m(H, this, U).call(this, g.LANGUAGE, n) : m(H, this, W).call(this, g.LANGUAGE));
@@ -2356,7 +2359,7 @@ var Si = [
2356
2359
  case "authentication-token":
2357
2360
  if (_(n)) {
2358
2361
  var ne, re;
2359
- (ne = h(I, this)) == null || ne.updateAuthenticationToken(n), (re = h(Li, this)) == null || re.updateAuthenticationToken(n), m(H, this, U).call(this, g.AUTHENTICATION_TOKEN, n);
2362
+ (ne = h(I, this)) == null || ne.updateAuthenticationToken(n), (re = h(Bi, this)) == null || re.updateAuthenticationToken(n), m(H, this, U).call(this, g.AUTHENTICATION_TOKEN, n);
2360
2363
  } else m(H, this, W).call(this, g.AUTHENTICATION_TOKEN);
2361
2364
  break;
2362
2365
  case "volume":
@@ -2394,13 +2397,13 @@ var Si = [
2394
2397
  g.USER_INTERACTING,
2395
2398
  g.PAUSED,
2396
2399
  g.HIDE_UI_ON_PAUSE
2397
- ].includes(e) && m(H, this, no).call(this);
2400
+ ].includes(e) && m(H, this, ao).call(this);
2398
2401
  }
2399
2402
  }
2400
2403
  connectListener(e) {
2401
- kr(e).forEach((t) => {
2402
- let n = h(Ci, this).get(t);
2403
- switch (n ? n.push(e) : h(Ci, this).set(t, [e]), t) {
2404
+ Mr(e).forEach((t) => {
2405
+ let n = h(Ei, this).get(t);
2406
+ switch (n ? n.push(e) : h(Ei, this).set(t, [e]), t) {
2404
2407
  case g.PAUSED:
2405
2408
  var r;
2406
2409
  (((r = h(I, this)) == null ? void 0 : r.playbackState) === "paused" || this.hasAttribute(g.PAUSED)) && e.setAttribute(g.PAUSED, "");
@@ -2410,7 +2413,7 @@ var Si = [
2410
2413
  ((i = h(I, this)) != null && i.muted || this.hasAttribute(g.MUTED)) && e.setAttribute(g.MUTED, "");
2411
2414
  break;
2412
2415
  case g.MAX_VIDEO_BITRATE:
2413
- h(Ni, this) && e.setAttribute(g.MAX_VIDEO_BITRATE, h(Ni, this));
2416
+ h(Ii, this) && e.setAttribute(g.MAX_VIDEO_BITRATE, h(Ii, this));
2414
2417
  break;
2415
2418
  case g.SIZE_BASED_RESOLUTION_CAP_ENABLED:
2416
2419
  {
@@ -2420,10 +2423,10 @@ var Si = [
2420
2423
  }
2421
2424
  break;
2422
2425
  case g.CHANNEL_ID:
2423
- h(ji, this) && e.setAttribute(g.CHANNEL_ID, h(ji, this));
2426
+ h(Pi, this) && e.setAttribute(g.CHANNEL_ID, h(Pi, this));
2424
2427
  break;
2425
2428
  case g.CHANNEL_GROUP_ID:
2426
- h(Mi, this) && e.setAttribute(g.CHANNEL_GROUP_ID, h(Mi, this));
2429
+ h(Fi, this) && e.setAttribute(g.CHANNEL_GROUP_ID, h(Fi, this));
2427
2430
  break;
2428
2431
  case g.AUTHENTICATION_TOKEN: {
2429
2432
  let t = this.getAttribute("authentication-token");
@@ -2459,38 +2462,38 @@ var Si = [
2459
2462
  });
2460
2463
  }
2461
2464
  disconnectListener(e) {
2462
- kr(e).forEach((t) => {
2463
- let n = h(Ci, this).get(t);
2464
- n && h(Ci, this).set(t, n.filter((t) => t !== e));
2465
+ Mr(e).forEach((t) => {
2466
+ let n = h(Ei, this).get(t);
2467
+ n && h(Ei, this).set(t, n.filter((t) => t !== e));
2465
2468
  });
2466
2469
  }
2467
2470
  get instance() {
2468
2471
  return h(I, this);
2469
2472
  }
2470
2473
  get fullscreen() {
2471
- return m(H, this, La).call(this);
2474
+ return m(H, this, Ba).call(this);
2472
2475
  }
2473
2476
  get airPlay() {
2474
- return h(Li, this);
2477
+ return h(Bi, this);
2475
2478
  }
2476
2479
  get timelineMarkers() {
2477
- return Lr(this.getAttribute(g.TIMELINE_MARKERS));
2480
+ return Br(this.getAttribute(g.TIMELINE_MARKERS));
2478
2481
  }
2479
2482
  set timelineMarkers(e) {
2480
- let t = Ir(e);
2483
+ let t = zr(e);
2481
2484
  t.length === 0 ? this.removeAttribute(g.TIMELINE_MARKERS) : this.setAttribute(g.TIMELINE_MARKERS, JSON.stringify(t));
2482
2485
  }
2483
2486
  connect() {
2484
- m(H, this, Ea).call(this);
2487
+ m(H, this, ka).call(this);
2485
2488
  }
2486
2489
  };
2487
- function Ea() {
2490
+ function ka() {
2488
2491
  var e = this;
2489
2492
  return t(function* () {
2490
2493
  var t, n;
2491
- if (!h(ji, e)) return;
2492
- let r = h(L, e) === h(ki, e);
2493
- h(Ei, e).stop(), yield (t = h(I, e)) == null ? void 0 : t.unload(), r && p(L, e, void 0);
2494
+ if (!h(Pi, e)) return;
2495
+ let r = h(L, e) === h(Mi, e);
2496
+ h(ki, e).stop(), yield (t = h(I, e)) == null ? void 0 : t.unload(), r && p(L, e, void 0);
2494
2497
  let i = e.hasAttribute(g.PAUSED), a = e.hasAttribute(g.MUTED), o = be(e.getAttribute(g.VOLUME)), s = typeof o == "number" ? Math.max(0, Math.min(1, o)) : o, c = xe(e.getAttribute(g.MEDIA)), l = e.getAttribute(g.TEXT_TRACK) || void 0, u = e.getAttribute("edge-url") || void 0, ee = e.getAttribute("authentication-token") || void 0, d = be(e.getAttribute("max-video-bit-rate")), te = be(e.getAttribute("max-initial-bit-rate")), ne = Ce(e.getAttribute("max-size")), ie = be(e.getAttribute("min-buffer-time")), ae = be(e.getAttribute("max-buffer-time")), oe = b(e.getAttribute("burst-enabled")), se = b(e.getAttribute("mse-enabled")), ce = b(e.getAttribute("mse-opus-enabled")), f = b(e.getAttribute("background-play-enabled")), le = b(e.getAttribute("ios-background-play-enabled")), ue = b(e.getAttribute("media-session-enabled")), de = b(e.getAttribute("ios-wake-lock-enabled")), fe = b(e.getAttribute("stream-to-media-element-enabled")), pe = b(e.getAttribute("ios-media-element-enabled")), me = b(e.getAttribute("abr-enabled"), !0), he = b(e.getAttribute("size-based-resolution-cap-enabled")), _e = b(e.getAttribute("telemetry-enabled")), v = ke(e.getAttribute("video-codecs")), we = ve(e.getAttribute("poster")), Te = Se(e.getAttribute("advanced")), y = ye(e.getAttribute("log-level")), De = {
2495
2498
  headers: Ee(e.getAttribute("drm-headers")),
2496
2499
  queryParams: Ee(e.getAttribute("drm-queryparams")),
@@ -2502,11 +2505,11 @@ function Ea() {
2502
2505
  videoRobustness: ge(e.getAttribute("drm-playready-video-robustness")),
2503
2506
  audioRobustness: ge(e.getAttribute("drm-playready-audio-robustness"))
2504
2507
  }
2505
- }, Oe = Fe(e.getAttribute("webcodecs-hardware-acceleration")), Ae = Pe(e.getAttribute("decoders")), x = b(e.getAttribute("offscreen-canvas-enabled")), S = b(e.getAttribute("webtransport-enabled")), je = be(e.getAttribute("reconnect-retries")), Me = je === void 0 ? void 0 : (e) => e.reconnectRetries < je, Ne = e.getAttribute("language") || void 0;
2508
+ }, Oe = Fe(e.getAttribute("webcodecs-hardware-acceleration")), Ae = Pe(e.getAttribute("decoders")), x = b(e.getAttribute("offscreen-canvas-enabled")), S = b(e.getAttribute("webtransport-enabled")), je = b(e.getAttribute("unstable-webtransport-enabled")), Me = be(e.getAttribute("reconnect-retries")), Ne = Me === void 0 ? void 0 : (e) => e.reconnectRetries < Me, Ie = e.getAttribute("language") || void 0;
2506
2509
  p(I, e, new re({
2507
- url: h(Ai, e),
2508
- channelId: h(ji, e),
2509
- channelGroupId: h(Mi, e),
2510
+ url: h(Ni, e),
2511
+ channelId: h(Pi, e),
2512
+ channelGroupId: h(Fi, e),
2510
2513
  edgeUrl: u,
2511
2514
  authenticationToken: ee,
2512
2515
  muted: a,
@@ -2534,123 +2537,122 @@ function Ea() {
2534
2537
  textTrack: l,
2535
2538
  advanced: Te,
2536
2539
  logLevel: y,
2537
- language: Ne,
2540
+ language: Ie,
2538
2541
  drm: De,
2539
2542
  webtransportEnabled: S,
2543
+ unstableWebtransportEnabled: je,
2540
2544
  webcodecsHardwareAcceleration: Oe,
2541
2545
  decoders: Ae,
2542
2546
  offscreenCanvasEnabled: x,
2543
- reconnectHandler: Me
2544
- })), p(ki, e, new gi(h(I, e))), h(L, e) || p(L, e, h(ki, e)), m(H, e, Da).call(e), p(Di, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), h(Di, e) && (h(I, e).attach(h(Di, e)), h(Wi, e).observe(h(Di, e))), e.setAttribute(g.MEDIA, h(I, e).media);
2545
- let Ie = h(I, e);
2546
- h(Ji, e).call(e, () => {
2547
- Ie.muted && m(H, e, U).call(e, g.MUTED, ""), Ie.abrEnabled ? m(H, e, U).call(e, g.ABR_ENABLED, "") : m(H, e, W).call(e, g.ABR_ENABLED), m(H, e, U).call(e, g.SIZE_BASED_RESOLUTION_CAP_ENABLED, Ie.sizeBasedResolutionCapEnabled ? "true" : "false"), m(H, e, U).call(e, g.VOLUME, Ie.volume.toString());
2547
+ reconnectHandler: Ne
2548
+ })), p(Mi, e, new yi(h(I, e))), h(L, e) || p(L, e, h(Mi, e)), m(H, e, Aa).call(e), p(Ai, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), h(Ai, e) && (h(I, e).attach(h(Ai, e)), h(qi, e).observe(h(Ai, e))), e.setAttribute(g.MEDIA, h(I, e).media);
2549
+ let Le = h(I, e);
2550
+ h(Zi, e).call(e, () => {
2551
+ Le.muted && m(H, e, U).call(e, g.MUTED, ""), Le.abrEnabled ? m(H, e, U).call(e, g.ABR_ENABLED, "") : m(H, e, W).call(e, g.ABR_ENABLED), m(H, e, U).call(e, g.SIZE_BASED_RESOLUTION_CAP_ENABLED, Le.sizeBasedResolutionCapEnabled ? "true" : "false"), m(H, e, U).call(e, g.VOLUME, Le.volume.toString());
2548
2552
  }), _(we) || m(H, e, U).call(e, g.POSTER_SRC, h(I, e).getThumbnailUrl());
2549
- let Le = b(e.getAttribute(g.AIRPLAY_ENABLED), !1), C = b(e.getAttribute(g.CAST_ENABLED), !0), Re = b(e.getAttribute(g.FULLSCREEN_ENABLED), !0), ze = b(e.getAttribute(g.PIP_ENABLED), !0), Be = b(e.getAttribute(g.VU_METER_ENABLED), !1), Ve = b(e.getAttribute(g.TIMESHIFT_ENABLED), !1);
2550
- Le && m(H, e, Ha).call(e, h(I, e)), C && m(H, e, Ra).call(e, h(I, e)), Re && m(H, e, Fa).call(e, h(I, e)), ze && m(H, e, Na).call(e, h(I, e)), i || h(I, e).play(), Be && m(H, e, Ua).call(e, h(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
2553
+ let C = b(e.getAttribute(g.AIRPLAY_ENABLED), !1), Re = b(e.getAttribute(g.CAST_ENABLED), !0), ze = b(e.getAttribute(g.FULLSCREEN_ENABLED), !0), Be = b(e.getAttribute(g.PIP_ENABLED), !0), Ve = b(e.getAttribute(g.VU_METER_ENABLED), !1), He = b(e.getAttribute(g.TIMESHIFT_ENABLED), !1);
2554
+ C && m(H, e, Ga).call(e, h(I, e)), Re && m(H, e, Va).call(e, h(I, e)), ze && m(H, e, Ra).call(e, h(I, e)), Be && m(H, e, Ia).call(e, h(I, e)), i || h(I, e).play(), Ve && m(H, e, Ka).call(e, h(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
2551
2555
  bubbles: !0,
2552
2556
  composed: !0,
2553
2557
  detail: h(I, e)
2554
- })), Ve && (m(H, e, Aa).call(e), Re && m(H, e, Ia).call(e));
2558
+ })), He && (m(H, e, Na).call(e), ze && m(H, e, za).call(e));
2555
2559
  })();
2556
2560
  }
2557
- function Da() {
2558
- h(I, this) && (h(I, this).on("rendition levels", h(Gi, this)), h(I, this).on("rendition level", h(Ki, this)), h(I, this).on("playback state", h(Yi, this)), h(I, this).on("volume state", h(Xi, this)), h(I, this).on("channel switch failed", h(Zi, this)), h(I, this).on("channel switch", h(Qi, this)), h(I, this).on("channels", h($i, this)), h(I, this).on("languages", h(ea, this)), h(I, this).on("text tracks", h(ta, this)), h(I, this).on("needs user input", h(na, this)), h(I, this).on("is live", h(ra, this)), h(I, this).on("timeshift info", h(ia, this)));
2561
+ function Aa() {
2562
+ h(I, this) && (h(I, this).on("rendition levels", h(Ji, this)), h(I, this).on("rendition level", h(Yi, this)), h(I, this).on("playback state", h(Qi, this)), h(I, this).on("volume state", h($i, this)), h(I, this).on("channel switch failed", h(ea, this)), h(I, this).on("channel switch", h(ta, this)), h(I, this).on("channels", h(na, this)), h(I, this).on("languages", h(ra, this)), h(I, this).on("text tracks", h(ia, this)), h(I, this).on("needs user input", h(aa, this)), h(I, this).on("is live", h(oa, this)), h(I, this).on("timeshift info", h(sa, this)));
2559
2563
  }
2560
- function Oa() {
2561
- h(I, this) && (h(I, this).off("playback state", h(Yi, this)), h(I, this).off("volume state", h(Xi, this)), h(I, this).off("channel switch failed", h(Zi, this)), h(I, this).off("channel switch", h(Qi, this)), h(I, this).off("channels", h($i, this)), h(I, this).off("languages", h(ea, this)), h(I, this).off("text tracks", h(ta, this)), h(I, this).off("needs user input", h(na, this)), h(I, this).off("is live", h(ra, this)), h(I, this).off("timeshift info", h(ia, this)));
2564
+ function ja() {
2565
+ h(I, this) && (h(I, this).off("playback state", h(Qi, this)), h(I, this).off("volume state", h($i, this)), h(I, this).off("channel switch failed", h(ea, this)), h(I, this).off("channel switch", h(ta, this)), h(I, this).off("channels", h(na, this)), h(I, this).off("languages", h(ra, this)), h(I, this).off("text tracks", h(ia, this)), h(I, this).off("needs user input", h(aa, this)), h(I, this).off("is live", h(oa, this)), h(I, this).off("timeshift info", h(sa, this)));
2562
2566
  }
2563
- function ka() {
2564
- h(R, this) && (h(R, this).addEventListener("playing", h(aa, this)), h(R, this).addEventListener("pause", h(oa, this)), h(R, this).addEventListener("ended", h(sa, this)), h(R, this).addEventListener("timeupdate", h(la, this)), h(R, this).addEventListener("volumechange", h(ua, this)), h(R, this).addEventListener("hlsbuffering", h(da, this)), h(R, this).addEventListener("hlsnotbuffering", h(fa, this)), h(R, this).addEventListener("timeshiftready", h(pa, this)));
2567
+ function Ma() {
2568
+ h(R, this) && (h(R, this).addEventListener("playing", h(ca, this)), h(R, this).addEventListener("pause", h(la, this)), h(R, this).addEventListener("ended", h(ua, this)), h(R, this).addEventListener("timeupdate", h(fa, this)), h(R, this).addEventListener("volumechange", h(pa, this)), h(R, this).addEventListener("hlsbuffering", h(ma, this)), h(R, this).addEventListener("hlsnotbuffering", h(ha, this)), h(R, this).addEventListener("timeshiftready", h(ga, this)));
2565
2569
  }
2566
- function Aa() {
2570
+ function Na() {
2567
2571
  var e, t, n, r;
2568
2572
  let i = be(this.getAttribute(g.VOLUME)), a = i === void 0 ? (e = (t = h(L, this)) == null ? void 0 : t.volume) == null ? 1 : e : Math.max(0, Math.min(1, i)), o = b(this.getAttribute(g.MUTED), (n = (r = h(L, this)) == null ? void 0 : r.muted) == null ? !1 : n);
2569
- m(H, this, ja).call(this), p(R, this, new $r(h(Oi, this), {
2573
+ m(H, this, Pa).call(this), p(R, this, new ni(h(ji, this), {
2570
2574
  volume: a,
2571
2575
  muted: o,
2572
- maxVideoBitRate: h(Ni, this) ? parseInt(h(Ni, this), 10) : void 0
2573
- })), h(R, this).addEventListener("durationchange", h(ca, this));
2576
+ maxVideoBitRate: h(Ii, this) ? parseInt(h(Ii, this), 10) : void 0
2577
+ })), h(R, this).addEventListener("durationchange", h(da, this));
2574
2578
  }
2575
- function ja() {
2576
- h(R, this) && (m(H, this, Ma).call(this), h(R, this).removeEventListener("durationchange", h(ca, this)), h(R, this).cleanup(), h(L, this) === h(R, this) && p(L, this, void 0), p(R, this, void 0));
2579
+ function Pa() {
2580
+ h(R, this) && (m(H, this, Fa).call(this), h(R, this).removeEventListener("durationchange", h(da, this)), h(R, this).cleanup(), h(L, this) === h(R, this) && p(L, this, void 0), p(R, this, void 0));
2577
2581
  }
2578
- function Ma() {
2579
- h(R, this) && (h(R, this).removeEventListener("playing", h(aa, this)), h(R, this).removeEventListener("pause", h(oa, this)), h(R, this).removeEventListener("ended", h(sa, this)), h(R, this).removeEventListener("timeupdate", h(la, this)), h(R, this).removeEventListener("volumechange", h(ua, this)), h(R, this).removeEventListener("hlsbuffering", h(da, this)), h(R, this).removeEventListener("hlsnotbuffering", h(fa, this)), h(R, this).removeEventListener("timeshiftready", h(pa, this)));
2582
+ function Fa() {
2583
+ h(R, this) && (h(R, this).removeEventListener("playing", h(ca, this)), h(R, this).removeEventListener("pause", h(la, this)), h(R, this).removeEventListener("ended", h(ua, this)), h(R, this).removeEventListener("timeupdate", h(fa, this)), h(R, this).removeEventListener("volumechange", h(pa, this)), h(R, this).removeEventListener("hlsbuffering", h(ma, this)), h(R, this).removeEventListener("hlsnotbuffering", h(ha, this)), h(R, this).removeEventListener("timeshiftready", h(ga, this)));
2580
2584
  }
2581
- function Na(e) {
2582
- e.mediaElement instanceof HTMLVideoElement && (p(z, this, new cr(e.mediaElement)), h(z, this).isSupported() && (h(V, this).debug("PIP is supported"), m(H, this, U).call(this, g.PIP_AVAILABLE, "")), h(z, this).on("on picture in picture change", (e) => {
2583
- var t;
2584
- e ? m(H, this, U).call(this, g.IS_PIP, "") : m(H, this, W).call(this, g.IS_PIP), h(Wi, this).setEnabled(!((t = h(z, this)) != null && t.isWebkitPresentationModeActive()));
2585
+ function Ia(e) {
2586
+ e.mediaElement instanceof HTMLVideoElement && (p(z, this, new dr(e.mediaElement)), h(z, this).isSupported() && (h(V, this).debug("PIP is supported"), m(H, this, U).call(this, g.PIP_AVAILABLE, "")), h(z, this).on("on picture in picture change", (e) => {
2587
+ e ? m(H, this, U).call(this, g.IS_PIP, "") : m(H, this, W).call(this, g.IS_PIP);
2585
2588
  }));
2586
2589
  }
2587
- function Pa() {
2590
+ function La() {
2588
2591
  var e;
2589
2592
  if (!h(z, this)) return;
2590
2593
  let t = null;
2591
- h(L, this) === h(R, this) && h(R, this) ? t = h(R, this).videoElement : ((e = h(I, this)) == null ? void 0 : e.mediaElement) instanceof HTMLVideoElement && (t = h(I, this).mediaElement), t && t !== h(z, this).videoElement && (h(V, this).debug("Updating PIP target to", h(L, this) === h(R, this) ? "HLS" : "Vindral"), h(z, this).unload(), p(z, this, new cr(t)), h(z, this).on("on picture in picture change", (e) => {
2592
- var t;
2593
- e ? m(H, this, U).call(this, g.IS_PIP, "") : m(H, this, W).call(this, g.IS_PIP), h(Wi, this).setEnabled(!((t = h(z, this)) != null && t.isWebkitPresentationModeActive()));
2594
+ h(L, this) === h(R, this) && h(R, this) ? t = h(R, this).videoElement : ((e = h(I, this)) == null ? void 0 : e.mediaElement) instanceof HTMLVideoElement && (t = h(I, this).mediaElement), t && t !== h(z, this).videoElement && (h(V, this).debug("Updating PIP target to", h(L, this) === h(R, this) ? "HLS" : "Vindral"), h(z, this).unload(), p(z, this, new dr(t)), h(z, this).on("on picture in picture change", (e) => {
2595
+ e ? m(H, this, U).call(this, g.IS_PIP, "") : m(H, this, W).call(this, g.IS_PIP);
2594
2596
  }));
2595
2597
  }
2596
- function Fa(e) {
2597
- let t = !$n.isFullscreenApiSupported(this) && $n.isFullscreenApiSupported(e.mediaElement) ? e.mediaElement : this;
2598
- p(Fi, this, new $n(t)), h(Fi, this).on("on fullscreen change", (e) => {
2598
+ function Ra(e) {
2599
+ let t = !tr.isFullscreenApiSupported(this) && tr.isFullscreenApiSupported(e.mediaElement) ? e.mediaElement : this;
2600
+ p(Ri, this, new tr(t)), h(Ri, this).on("on fullscreen change", (e) => {
2599
2601
  e ? m(H, this, U).call(this, g.FULLSCREEN, "") : m(H, this, W).call(this, g.FULLSCREEN);
2600
2602
  });
2601
2603
  }
2602
- function Ia() {
2604
+ function za() {
2603
2605
  var e;
2604
- h(R, this) && (p(Ii, this, !$n.isFullscreenApiSupported(this) && $n.isFullscreenApiSupported((e = h(R, this)) == null ? void 0 : e.videoElement) ? new $n(h(R, this).videoElement) : new $n(this)), h(Ii, this).on("on fullscreen change", (e) => {
2606
+ h(R, this) && (p(zi, this, !tr.isFullscreenApiSupported(this) && tr.isFullscreenApiSupported((e = h(R, this)) == null ? void 0 : e.videoElement) ? new tr(h(R, this).videoElement) : new tr(this)), h(zi, this).on("on fullscreen change", (e) => {
2605
2607
  e ? m(H, this, U).call(this, g.FULLSCREEN, "") : m(H, this, W).call(this, g.FULLSCREEN);
2606
2608
  }));
2607
2609
  }
2608
- function La() {
2609
- return this.hasAttribute(g.TIMESHIFT_POSITION) ? h(Ii, this) : h(Fi, this);
2610
+ function Ba() {
2611
+ return this.hasAttribute(g.TIMESHIFT_POSITION) ? h(zi, this) : h(Ri, this);
2610
2612
  }
2611
- function Ra(e) {
2612
- p(Ri, this, new je({
2613
- background: h(Bi, this),
2614
- receiverApplicationId: h(zi, this),
2613
+ function Va(e) {
2614
+ p(Vi, this, new je({
2615
+ background: h(Ui, this),
2616
+ receiverApplicationId: h(Hi, this),
2615
2617
  options: e.getCastOptions()
2616
- })), h(Ri, this).on("devices available", m(H, this, za).bind(this)), h(Ri, this).on("connected", m(H, this, Ba).bind(this)), h(Ri, this).on("resumed", m(H, this, Ba).bind(this)), h(Ri, this).on("disconnected", m(H, this, Va).bind(this)), h(Ri, this).init().catch((e) => {
2618
+ })), h(Vi, this).on("devices available", m(H, this, Ha).bind(this)), h(Vi, this).on("connected", m(H, this, Ua).bind(this)), h(Vi, this).on("resumed", m(H, this, Ua).bind(this)), h(Vi, this).on("disconnected", m(H, this, Wa).bind(this)), h(Vi, this).init().catch((e) => {
2617
2619
  h(V, this).warn("Failed to initialize CastSender", e);
2618
2620
  });
2619
2621
  }
2620
- function za(e) {
2622
+ function Ha(e) {
2621
2623
  e ? m(H, this, U).call(this, g.CAST_AVAILABLE, "") : m(H, this, W).call(this, g.CAST_AVAILABLE);
2622
2624
  }
2623
- function Ba() {
2625
+ function Ua() {
2624
2626
  var e, t;
2625
2627
  m(H, this, U).call(this, g.IS_CASTING, "");
2626
- let n = (e = (t = h(Ri, this)) == null ? void 0 : t.getReceiverName()) == null ? "device" : e;
2628
+ let n = (e = (t = h(Vi, this)) == null ? void 0 : t.getReceiverName()) == null ? "device" : e;
2627
2629
  m(H, this, U).call(this, g.CAST_RECEIVER_NAME, n);
2628
2630
  }
2629
- function Va() {
2631
+ function Wa() {
2630
2632
  m(H, this, W).call(this, g.IS_CASTING), m(H, this, W).call(this, g.CAST_RECEIVER_NAME);
2631
2633
  }
2632
- function Ha(e) {
2634
+ function Ga(e) {
2633
2635
  var t;
2634
- (t = h(Li, this)) == null || t.unload();
2636
+ (t = h(Bi, this)) == null || t.unload();
2635
2637
  let n = e.getCastOptions();
2636
- p(Li, this, new Hn({
2638
+ p(Bi, this, new Hn({
2637
2639
  url: n.url,
2638
2640
  channelId: n.channelId,
2639
2641
  authenticationToken: n.authenticationToken,
2640
2642
  container: this
2641
- })), h(Li, this).once("available", () => {
2643
+ })), h(Bi, this).once("available", () => {
2642
2644
  m(H, this, U).call(this, g.AIRPLAY_AVAILABLE, "");
2643
- }), h(Li, this).on("connected", () => {
2645
+ }), h(Bi, this).on("connected", () => {
2644
2646
  m(H, this, U).call(this, g.IS_AIRPLAYING, "");
2645
- }), h(Li, this).on("disconnected", () => {
2647
+ }), h(Bi, this).on("disconnected", () => {
2646
2648
  m(H, this, W).call(this, g.IS_AIRPLAYING);
2647
2649
  });
2648
2650
  }
2649
- function Ua(e) {
2651
+ function Ka(e) {
2650
2652
  var t;
2651
2653
  if ((t = h(B, this)) == null || t.unload(), !a()) {
2652
- if (e.audioNode) p(B, this, new zr(e.audioNode));
2653
- else if (e.mediaElement instanceof HTMLMediaElement) p(B, this, new zr(e.mediaElement));
2654
+ if (e.audioNode) p(B, this, new Hr(e.audioNode));
2655
+ else if (e.mediaElement instanceof HTMLMediaElement) p(B, this, new Hr(e.mediaElement));
2654
2656
  else return;
2655
2657
  h(B, this).on("on decibel change", (e) => {
2656
2658
  m(H, this, U).call(this, g.VOLUME_LEVEL, JSON.stringify(e));
@@ -2660,37 +2662,37 @@ function Ua(e) {
2660
2662
  })), (!h(B, this).isMediaElementSource || !this.hasAttribute(g.MUTED)) && h(B, this).start();
2661
2663
  }
2662
2664
  }
2663
- function Wa() {
2665
+ function qa() {
2664
2666
  let e = () => (customElements.get("vindral-debug-panel") || import("./XEQIIc9P.js").then((e) => e.n).then(({ registerDebugComponents: e }) => e()), this.setAttribute(g.DEBUG_PANEL_OPEN, ""), h(I, this));
2665
- window._vindralDebug = e, p(Ui, this, e);
2667
+ window._vindralDebug = e, p(Ki, this, e);
2666
2668
  }
2667
- function Ga() {
2669
+ function Ja() {
2668
2670
  let e = window;
2669
- h(Ui, this) && e._vindralDebug === h(Ui, this) && delete e._vindralDebug, p(Ui, this, null);
2671
+ h(Ki, this) && e._vindralDebug === h(Ki, this) && delete e._vindralDebug, p(Ki, this, null);
2670
2672
  }
2671
- function Ka(e) {
2672
- e.pointerType !== "mouse" && e.timeStamp - h(ma, this) < 250 || (m(H, this, eo).call(this), h(Ti, this) && clearTimeout(h(Ti, this)), e.target instanceof HTMLElement && ([this, h(Di, this)].includes(e.target) || e.target.localName === "vindral-scroll-overlay") && m(H, this, to).call(this));
2673
+ function Ya(e) {
2674
+ e.pointerType !== "mouse" && e.timeStamp - h(_a, this) < 250 || (m(H, this, ro).call(this), h(Oi, this) && clearTimeout(h(Oi, this)), e.target instanceof HTMLElement && ([this, h(Ai, this)].includes(e.target) || e.target.localName === "vindral-scroll-overlay") && m(H, this, io).call(this));
2673
2675
  }
2674
- function qa(e) {
2676
+ function Xa(e) {
2675
2677
  let t = this.hasAttribute(g.USER_INTERACTING);
2676
- e.pointerType === "touch" && e.target instanceof HTMLElement ? [this, h(Di, this)].includes(e.target) && t ? m(H, this, $a).call(this) : m(H, this, to).call(this) : e.composedPath().some((e) => e instanceof HTMLElement && ["vindral-play-button"].includes(e == null ? void 0 : e.localName)) && m(H, this, to).call(this);
2678
+ e.pointerType === "touch" && e.target instanceof HTMLElement ? [this, h(Ai, this)].includes(e.target) && t ? m(H, this, no).call(this) : m(H, this, io).call(this) : e.composedPath().some((e) => e instanceof HTMLElement && ["vindral-play-button"].includes(e == null ? void 0 : e.localName)) && m(H, this, io).call(this);
2677
2679
  }
2678
- function Ja(e) {
2680
+ function Za(e) {
2679
2681
  switch (e) {
2680
2682
  case "dblclick-fullscreen": return b(this.getAttribute(g.DOUBLE_CLICK_FULLSCREEN_ENABLED), !0);
2681
2683
  default: return !0;
2682
2684
  }
2683
2685
  }
2684
- function Ya(e) {
2685
- m(H, this, Ja).call(this, "dblclick-fullscreen") && (!h(Fi, this) || e.target instanceof v || e.target instanceof He || e.target instanceof bi || (this.hasAttribute(g.FULLSCREEN) ? this.removeAttribute(g.FULLSCREEN) : this.setAttribute(g.FULLSCREEN, "")));
2686
+ function Qa(e) {
2687
+ m(H, this, Za).call(this, "dblclick-fullscreen") && (!h(Ri, this) || e.target instanceof v || e.target instanceof He || e.target instanceof Ci || (this.hasAttribute(g.FULLSCREEN) ? this.removeAttribute(g.FULLSCREEN) : this.setAttribute(g.FULLSCREEN, "")));
2686
2688
  }
2687
- function Xa(e) {
2688
- this.hasAttribute(g.USER_INTERACTING) || m(H, this, to).call(this);
2689
+ function $a(e) {
2690
+ this.hasAttribute(g.USER_INTERACTING) || m(H, this, io).call(this);
2689
2691
  }
2690
- function Za(e) {
2692
+ function eo(e) {
2691
2693
  var t;
2692
2694
  let { metaKey: n, altKey: r, key: i } = e;
2693
- if (n || r || !Si.includes(i)) return;
2695
+ if (n || r || !Ti.includes(i)) return;
2694
2696
  let a = (t = e.target) == null ? void 0 : t.keysUsed;
2695
2697
  if (!(Array.isArray(a) && a.includes(i)) && !e.composedPath().some((e) => {
2696
2698
  let t = e == null ? void 0 : e.keysUsed;
@@ -2708,28 +2710,28 @@ function Za(e) {
2708
2710
  break;
2709
2711
  }
2710
2712
  }
2711
- function Qa() {
2713
+ function to() {
2712
2714
  var e = this;
2713
2715
  return t(function* () {
2714
- if (!h(I, e) || !h(Mi, e)) return;
2716
+ if (!h(I, e) || !h(Fi, e)) return;
2715
2717
  let t = Date.now();
2716
- if (h(xa, e) && t - h(xa, e) < 1e4) h(V, e).debug("Skipping channel update, last update was less than 10 seconds ago.");
2718
+ if (h(wa, e) && t - h(wa, e) < 1e4) h(V, e).debug("Skipping channel update, last update was less than 10 seconds ago.");
2717
2719
  else {
2718
- p(xa, e, t);
2719
- let n = yield h(I, e).getApiClient().getChannels(h(Mi, e));
2720
+ p(wa, e, t);
2721
+ let n = yield h(I, e).getApiClient().getChannels(h(Fi, e));
2720
2722
  m(H, e, U).call(e, g.CHANNELS, JSON.stringify(n));
2721
2723
  }
2722
- p(Vi, e, window.setTimeout(() => void m(H, e, Qa).call(e), 1e4));
2724
+ p(Wi, e, window.setTimeout(() => void m(H, e, to).call(e), 1e4));
2723
2725
  })();
2724
2726
  }
2725
- function $a() {
2727
+ function no() {
2726
2728
  !this.hasAttribute(g.USER_INTERACTING) || this.hasAttribute(g.UI_LOCKED) || (this.dispatchEvent(new CustomEvent("user-interacting", {
2727
2729
  bubbles: !0,
2728
2730
  composed: !0,
2729
2731
  detail: { active: !1 }
2730
2732
  })), this.removeAttribute(g.USER_INTERACTING));
2731
2733
  }
2732
- function eo() {
2734
+ function ro() {
2733
2735
  this.hasAttribute(g.USER_INTERACTING) || requestAnimationFrame(() => {
2734
2736
  this.setAttribute(g.USER_INTERACTING, ""), this.dispatchEvent(new CustomEvent("user-interacting", {
2735
2737
  bubbles: !0,
@@ -2738,64 +2740,64 @@ function eo() {
2738
2740
  }));
2739
2741
  });
2740
2742
  }
2741
- function to() {
2742
- m(H, this, eo).call(this), h(Ti, this) && clearTimeout(h(Ti, this)), h(wi, this) && p(Ti, this, self.setTimeout(() => {
2743
- m(H, this, $a).call(this);
2744
- }, h(wi, this)));
2743
+ function io() {
2744
+ m(H, this, ro).call(this), h(Oi, this) && clearTimeout(h(Oi, this)), h(Di, this) && p(Oi, this, self.setTimeout(() => {
2745
+ m(H, this, no).call(this);
2746
+ }, h(Di, this)));
2745
2747
  }
2746
- function no() {
2748
+ function ao() {
2747
2749
  var e;
2748
2750
  let t = getComputedStyle(this).getPropertyValue("--vindral-subtitle-offset") || "0px";
2749
2751
  (e = h(I, this)) == null || (e = e.mediaElement) == null || e.style.setProperty("--vindral-subtitle-offset", t);
2750
2752
  }
2751
- function ro() {
2753
+ function oo() {
2752
2754
  var e;
2753
- m(H, this, Pa).call(this), m(H, this, so).call(this), (e = h(z, this)) == null || e.request().catch((e) => {
2755
+ m(H, this, La).call(this), m(H, this, uo).call(this), (e = h(z, this)) == null || e.request().catch((e) => {
2754
2756
  h(V, this).warn("Failed to enter picture in picture:", e);
2755
2757
  });
2756
2758
  }
2757
- function io() {
2759
+ function so() {
2758
2760
  var e;
2759
2761
  (e = h(z, this)) == null || e.exit().catch((e) => {
2760
2762
  h(V, this).warn("Failed to exit picture in picture:", e);
2761
2763
  });
2762
2764
  }
2763
- function ao() {
2764
- let e = m(H, this, La).call(this);
2765
+ function co() {
2766
+ let e = m(H, this, Ba).call(this);
2765
2767
  if (!e) {
2766
2768
  console.warn("No fullscreen target available"), this.setAttribute(g.FULLSCREEN_FALLBACK, ""), m(H, this, U).call(this, g.FULLSCREEN, "");
2767
2769
  return;
2768
2770
  }
2769
- e != null && e.isFullscreenApiSupported() ? (m(H, this, so).call(this), e == null || e.request().then(() => {
2770
- h(Sa, this).call(this);
2771
+ e != null && e.isFullscreenApiSupported() ? (m(H, this, uo).call(this), e == null || e.request().then(() => {
2772
+ h(Ta, this).call(this);
2771
2773
  }).catch((e) => {
2772
2774
  h(V, this).warn("Failed to enter fullscreen:", e);
2773
2775
  })) : (this.setAttribute(g.FULLSCREEN_FALLBACK, ""), m(H, this, U).call(this, g.FULLSCREEN, ""));
2774
2776
  }
2775
- function oo() {
2776
- let e = m(H, this, La).call(this);
2777
+ function lo() {
2778
+ let e = m(H, this, Ba).call(this);
2777
2779
  e != null && e.isFullscreenApiSupported() ? e == null || e.exit().then(() => {
2778
- h(Ca, this).call(this);
2780
+ h(Ea, this).call(this);
2779
2781
  }).catch((e) => {
2780
2782
  h(V, this).warn("Failed to exit fullscreen:", e);
2781
2783
  }) : (this.removeAttribute(g.FULLSCREEN_FALLBACK), m(H, this, W).call(this, g.FULLSCREEN));
2782
2784
  }
2783
- function so() {
2785
+ function uo() {
2784
2786
  h(I, this) && h(I, this).emitter.emit("ios-hack: reset size");
2785
2787
  }
2786
- function co() {
2788
+ function fo() {
2787
2789
  return this.hasAttribute(g.DEBUG_PANEL_OPEN);
2788
2790
  }
2789
- function lo() {
2790
- m(H, this, co).call(this) ? m(H, this, uo).call(this) : m(H, this, fo).call(this);
2791
+ function po() {
2792
+ m(H, this, fo).call(this) ? m(H, this, mo).call(this) : m(H, this, ho).call(this);
2791
2793
  }
2792
- function uo() {
2793
- h(wa, this) === null && (m(H, this, po).call(this), p(wa, this, window.setInterval(() => m(H, this, po).call(this), 1e3)));
2794
+ function mo() {
2795
+ h(Da, this) === null && (m(H, this, go).call(this), p(Da, this, window.setInterval(() => m(H, this, go).call(this), 1e3)));
2794
2796
  }
2795
- function fo() {
2796
- h(wa, this) && (clearInterval(h(wa, this)), p(wa, this, null)), this.removeAttribute(g.DRIFT), m(H, this, W).call(this, g.DRIFT), m(H, this, W).call(this, g.PLAYBACK_LATENCY), m(H, this, W).call(this, g.CONNECTION_STATE);
2797
+ function ho() {
2798
+ h(Da, this) && (clearInterval(h(Da, this)), p(Da, this, null)), this.removeAttribute(g.DRIFT), m(H, this, W).call(this, g.DRIFT), m(H, this, W).call(this, g.PLAYBACK_LATENCY), m(H, this, W).call(this, g.CONNECTION_STATE);
2797
2799
  }
2798
- function po() {
2800
+ function go() {
2799
2801
  if (!h(I, this)) return;
2800
2802
  try {
2801
2803
  let e = h(I, this).getStatistics().drift;
@@ -2811,13 +2813,13 @@ function po() {
2811
2813
  }
2812
2814
  function U(e, t) {
2813
2815
  var n;
2814
- (n = h(Ci, this).get(e)) == null || n.forEach((n) => n.setAttribute(e, t));
2816
+ (n = h(Ei, this).get(e)) == null || n.forEach((n) => n.setAttribute(e, t));
2815
2817
  }
2816
2818
  function W(e) {
2817
2819
  var t;
2818
- (t = h(Ci, this).get(e)) == null || t.forEach((t) => t.removeAttribute(e));
2820
+ (t = h(Ei, this).get(e)) == null || t.forEach((t) => t.removeAttribute(e));
2819
2821
  }
2820
- e(Ta, "observedAttributes", [
2822
+ e(Oa, "observedAttributes", [
2821
2823
  ...Ae,
2822
2824
  "url",
2823
2825
  "edge-url",
@@ -2852,6 +2854,7 @@ e(Ta, "observedAttributes", [
2852
2854
  "drm-playready-video-robustness",
2853
2855
  "drm-playready-audio-robustness",
2854
2856
  "webtransport-enabled",
2857
+ "unstable-webtransport-enabled",
2855
2858
  "webcodecs-hardware-acceleration",
2856
2859
  "decoders",
2857
2860
  "offscreen-canvas-enabled",
@@ -2861,8 +2864,8 @@ e(Ta, "observedAttributes", [
2861
2864
  ]);
2862
2865
  //#endregion
2863
2866
  //#region ../../libs/player-next/src/components/FullscreenButton.ts
2864
- var mo, ho = document.createElement("template");
2865
- ho.innerHTML = `
2867
+ var _o, vo = document.createElement("template");
2868
+ vo.innerHTML = `
2866
2869
  <style>
2867
2870
  :host {
2868
2871
  display: var(--fullscreen-button-display);
@@ -2886,10 +2889,10 @@ ho.innerHTML = `
2886
2889
  </slot>
2887
2890
  </slot>
2888
2891
  `;
2889
- var go = class extends v {
2892
+ var yo = class extends v {
2890
2893
  constructor() {
2891
2894
  var e;
2892
- super(), (e = this.shadowRoot) == null || e.appendChild(ho.content.cloneNode(!0));
2895
+ super(), (e = this.shadowRoot) == null || e.appendChild(vo.content.cloneNode(!0));
2893
2896
  }
2894
2897
  connectedCallback() {
2895
2898
  super.connectedCallback(), this.setAttribute("aria-label", this.isFullscreen ? "Exit fullscreen" : "Fullscreen");
@@ -2914,48 +2917,48 @@ var go = class extends v {
2914
2917
  }));
2915
2918
  }
2916
2919
  };
2917
- mo = go, e(go, "observedAttributes", [...y(mo, "observedAttributes", mo), g.FULLSCREEN]);
2920
+ _o = yo, e(yo, "observedAttributes", [...y(_o, "observedAttributes", _o), g.FULLSCREEN]);
2918
2921
  //#endregion
2919
2922
  //#region ../../libs/player-next/src/components/LanguageMenu.ts
2920
- var _o, vo = "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M4 5h7\" /><path d=\"M9 3v2c0 4.418 -2.239 8 -5 8\" /><path d=\"M5 9c0 2.144 2.952 3.908 6.7 4\" /><path d=\"M12 20l4 -9l4 9\" /><path d=\"M19.1 18h-6.2\" /></svg>\n", yo = document.createElement("template");
2921
- yo.innerHTML = `
2923
+ var bo, xo = "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M4 5h7\" /><path d=\"M9 3v2c0 4.418 -2.239 8 -5 8\" /><path d=\"M5 9c0 2.144 2.952 3.908 6.7 4\" /><path d=\"M12 20l4 -9l4 9\" /><path d=\"M19.1 18h-6.2\" /></svg>\n", So = document.createElement("template");
2924
+ So.innerHTML = `
2922
2925
  <style>
2923
2926
  :host(:not([hidden])) {
2924
2927
  display: var(--language-menu-display);
2925
2928
  }
2926
2929
  </style>
2927
2930
 
2928
- <slot name="button">${vo}</slot>
2931
+ <slot name="button">${xo}</slot>
2929
2932
  <slot name="listbox" hidden>
2930
2933
  <vindral-language-menu-list id="listbox" part="listbox"></vindral-language-menu-list>
2931
2934
  </slot>
2932
2935
  `;
2933
- var bo = /* @__PURE__ */ new WeakSet(), xo = class extends He {
2936
+ var Co = /* @__PURE__ */ new WeakSet(), wo = class extends He {
2934
2937
  constructor() {
2935
2938
  var e, t, n;
2936
- super(), S(this, bo), (e = this.shadowRoot) == null || e.appendChild(yo.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
2939
+ super(), S(this, Co), (e = this.shadowRoot) == null || e.appendChild(So.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
2937
2940
  }
2938
2941
  connectedCallback() {
2939
- super.connectedCallback(), m(bo, this, So).call(this), this.setAttribute("aria-label", "Audio & Subtitles");
2942
+ super.connectedCallback(), m(Co, this, To).call(this), this.setAttribute("aria-label", "Audio & Subtitles");
2940
2943
  }
2941
2944
  attributeChangedCallback(e, t, n) {
2942
- super.attributeChangedCallback(e, t, n), (e === g.LANGUAGES || e === g.TEXT_TRACKS) && m(bo, this, So).call(this);
2945
+ super.attributeChangedCallback(e, t, n), (e === g.LANGUAGES || e === g.TEXT_TRACKS) && m(Co, this, To).call(this);
2943
2946
  }
2944
2947
  };
2945
- _o = xo;
2946
- function So() {
2948
+ bo = wo;
2949
+ function To() {
2947
2950
  let e = (e) => (e ? JSON.parse(e) : []).length < 2, t = e(this.getAttribute(g.LANGUAGES)), n = e(this.getAttribute(g.TEXT_TRACKS));
2948
2951
  t && n ? this.setAttribute("hidden", "") : this.removeAttribute("hidden");
2949
2952
  }
2950
- e(xo, "observedAttributes", [
2951
- ...y(_o, "observedAttributes", _o),
2953
+ e(wo, "observedAttributes", [
2954
+ ...y(bo, "observedAttributes", bo),
2952
2955
  g.LANGUAGES,
2953
2956
  g.TEXT_TRACKS
2954
2957
  ]);
2955
2958
  //#endregion
2956
2959
  //#region ../../libs/player-next/src/components/LanguageMenuList.ts
2957
- var Co = document.createElement("template");
2958
- Co.innerHTML = `
2960
+ var Eo = document.createElement("template");
2961
+ Eo.innerHTML = `
2959
2962
  <style>
2960
2963
  :host {
2961
2964
  font: inherit;
@@ -3069,21 +3072,21 @@ Co.innerHTML = `
3069
3072
  <div class="menu"></div>
3070
3073
  </div>
3071
3074
  `;
3072
- var wo = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakSet(), Fo = class extends HTMLElement {
3075
+ var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Ro = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), zo = class extends HTMLElement {
3073
3076
  constructor() {
3074
- super(), S(this, K), f(this, wo, []), f(this, To, []), f(this, Eo, void 0), f(this, Do, void 0), f(this, Oo, []), f(this, G, []), f(this, ko, null), f(this, Ao, null), f(this, jo, null), f(this, Mo, null), f(this, No, null), f(this, Po, null), e(this, "handleEvent", (e) => {
3077
+ super(), S(this, G), f(this, Do, []), f(this, Oo, []), f(this, ko, void 0), f(this, Ao, void 0), f(this, jo, []), f(this, Mo, []), f(this, No, null), f(this, Po, null), f(this, Fo, null), f(this, Io, null), f(this, Lo, null), f(this, Ro, null), e(this, "handleEvent", (e) => {
3075
3078
  switch (e.type) {
3076
3079
  case "keydown":
3077
- m(K, this, Wo).call(this, e);
3080
+ m(G, this, Jo).call(this, e);
3078
3081
  break;
3079
3082
  }
3080
- }), this.attachShadow({ mode: "open" }).appendChild(Co.content.cloneNode(!0));
3083
+ }), this.attachShadow({ mode: "open" }).appendChild(Eo.content.cloneNode(!0));
3081
3084
  }
3082
3085
  connectedCallback() {
3083
3086
  let e = this.getRootNode();
3084
3087
  if (e instanceof ShadowRoot) {
3085
3088
  var t, n, r;
3086
- p(jo, this, e.host.closest("vindral-controller")), (t = h(jo, this)) == null || t.connectListener(this), p(ko, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#languages .menu")), p(Ao, this, (r = this.shadowRoot) == null ? void 0 : r.querySelector("#text-tracks .menu")), m(K, this, Io).call(this), m(K, this, Lo).call(this), p(Mo, this, e.host), this.addEventListener("keydown", this);
3089
+ p(Fo, this, e.host.closest("vindral-controller")), (t = h(Fo, this)) == null || t.connectListener(this), p(No, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#languages .menu")), p(Po, this, (r = this.shadowRoot) == null ? void 0 : r.querySelector("#text-tracks .menu")), m(G, this, Bo).call(this), m(G, this, Vo).call(this), p(Io, this, e.host), this.addEventListener("keydown", this);
3087
3090
  }
3088
3091
  }
3089
3092
  disconnectedCallback() {
@@ -3093,16 +3096,16 @@ var wo = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Eo =
3093
3096
  t !== n && (e === g.LANGUAGES && n && (this.languages = JSON.parse(n)), e === g.TEXT_TRACKS && n && (this.textTracks = JSON.parse(n)), e === g.LANGUAGE && (this.language = n), e === g.TEXT_TRACK && (this.textTrack = n));
3094
3097
  }
3095
3098
  set languages(e) {
3096
- p(wo, this, e), m(K, this, zo).call(this), m(K, this, Vo).call(this);
3099
+ p(Do, this, e), m(G, this, Uo).call(this), m(G, this, Go).call(this);
3097
3100
  }
3098
3101
  set textTracks(e) {
3099
- p(To, this, e), m(K, this, Ro).call(this), m(K, this, Ho).call(this);
3102
+ p(Oo, this, e), m(G, this, Ho).call(this), m(G, this, Ko).call(this);
3100
3103
  }
3101
3104
  set language(e) {
3102
- p(Eo, this, e), m(K, this, Vo).call(this);
3105
+ p(ko, this, e), m(G, this, Go).call(this);
3103
3106
  }
3104
3107
  set textTrack(e) {
3105
- p(Do, this, e), m(K, this, Ho).call(this);
3108
+ p(Ao, this, e), m(G, this, Ko).call(this);
3106
3109
  }
3107
3110
  get keysUsed() {
3108
3111
  return [
@@ -3119,10 +3122,10 @@ var wo = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Eo =
3119
3122
  ];
3120
3123
  }
3121
3124
  focus() {
3122
- h(No, this) ? h(No, this).focus() : h(Po, this) && h(Po, this).focus();
3125
+ h(Lo, this) ? h(Lo, this).focus() : h(Ro, this) && h(Ro, this).focus();
3123
3126
  }
3124
3127
  };
3125
- function Io() {
3128
+ function Bo() {
3126
3129
  new IntersectionObserver((e) => {
3127
3130
  e.forEach((e) => {
3128
3131
  if (e.intersectionRatio !== 1) if (e.intersectionRatio > 0) {
@@ -3131,55 +3134,55 @@ function Io() {
3131
3134
  } else this.style.height = "auto";
3132
3135
  });
3133
3136
  }, {
3134
- root: h(jo, this),
3137
+ root: h(Fo, this),
3135
3138
  threshold: 0
3136
3139
  }).observe(this);
3137
3140
  }
3138
- function Lo() {
3139
- h(ko, this) && (m(K, this, zo).call(this), m(K, this, Vo).call(this)), h(Ao, this) && (m(K, this, Ro).call(this), m(K, this, Ho).call(this));
3141
+ function Vo() {
3142
+ h(No, this) && (m(G, this, Uo).call(this), m(G, this, Go).call(this)), h(Po, this) && (m(G, this, Ho).call(this), m(G, this, Ko).call(this));
3140
3143
  }
3141
- function Ro() {
3142
- h(Ao, this).innerHTML = "", p(G, this, []);
3143
- let e = m(K, this, Bo).call(this, "Off", "textTrack", void 0);
3144
- h(Ao, this).appendChild(e), h(G, this).push({
3144
+ function Ho() {
3145
+ h(Po, this).innerHTML = "", p(Mo, this, []);
3146
+ let e = m(G, this, Wo).call(this, "Off", "textTrack", void 0);
3147
+ h(Po, this).appendChild(e), h(Mo, this).push({
3145
3148
  element: e,
3146
3149
  value: void 0
3147
- }), h(To, this).forEach((e) => {
3148
- let t = m(K, this, Bo).call(this, e, "textTrack", e);
3149
- h(Ao, this).appendChild(t), h(G, this).push({
3150
+ }), h(Oo, this).forEach((e) => {
3151
+ let t = m(G, this, Wo).call(this, e, "textTrack", e);
3152
+ h(Po, this).appendChild(t), h(Mo, this).push({
3150
3153
  element: t,
3151
3154
  value: e
3152
3155
  });
3153
- }), m(K, this, Ho).call(this);
3156
+ }), m(G, this, Ko).call(this);
3154
3157
  }
3155
- function zo() {
3156
- h(ko, this).innerHTML = "", p(Oo, this, []), h(wo, this).forEach((e) => {
3157
- let t = m(K, this, Bo).call(this, e, "language", e);
3158
- h(ko, this).appendChild(t), h(Oo, this).push({
3158
+ function Uo() {
3159
+ h(No, this).innerHTML = "", p(jo, this, []), h(Do, this).forEach((e) => {
3160
+ let t = m(G, this, Wo).call(this, e, "language", e);
3161
+ h(No, this).appendChild(t), h(jo, this).push({
3159
3162
  element: t,
3160
3163
  value: e
3161
3164
  });
3162
- }), m(K, this, Vo).call(this);
3165
+ }), m(G, this, Go).call(this);
3163
3166
  }
3164
- function Bo(e, t, n) {
3167
+ function Wo(e, t, n) {
3165
3168
  let r = document.createElement("div");
3166
- return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => m(K, this, Uo).call(this, n, t)), r;
3169
+ return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => m(G, this, qo).call(this, n, t)), r;
3167
3170
  }
3168
- function Vo() {
3169
- h(No, this) && (h(No, this).removeAttribute("aria-selected"), h(No, this).tabIndex = -1);
3170
- let e = h(Oo, this).find((e) => e.value === h(Eo, this));
3171
- e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(No, this, e.element));
3171
+ function Go() {
3172
+ h(Lo, this) && (h(Lo, this).removeAttribute("aria-selected"), h(Lo, this).tabIndex = -1);
3173
+ let e = h(jo, this).find((e) => e.value === h(ko, this));
3174
+ e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Lo, this, e.element));
3172
3175
  }
3173
- function Ho() {
3174
- h(Po, this) && (h(Po, this).removeAttribute("aria-selected"), h(Po, this).tabIndex = -1);
3175
- let e = h(G, this).find((e) => e.value === h(Do, this));
3176
- if (e) e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Po, this, e.element);
3176
+ function Ko() {
3177
+ h(Ro, this) && (h(Ro, this).removeAttribute("aria-selected"), h(Ro, this).tabIndex = -1);
3178
+ let e = h(Mo, this).find((e) => e.value === h(Ao, this));
3179
+ if (e) e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Ro, this, e.element);
3177
3180
  else {
3178
- let e = h(G, this).find((e) => e.value === void 0);
3179
- e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Po, this, e.element));
3181
+ let e = h(Mo, this).find((e) => e.value === void 0);
3182
+ e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Ro, this, e.element));
3180
3183
  }
3181
3184
  }
3182
- function Uo(e, t) {
3185
+ function qo(e, t) {
3183
3186
  this.dispatchEvent(new Event("change", {
3184
3187
  bubbles: !0,
3185
3188
  composed: !0
@@ -3191,36 +3194,36 @@ function Uo(e, t) {
3191
3194
  detail: e
3192
3195
  }));
3193
3196
  }
3194
- function Wo(e) {
3197
+ function Jo(e) {
3195
3198
  let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
3196
3199
  if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
3197
3200
  var a;
3198
- (a = h(Mo, this)) == null || a.hide();
3201
+ (a = h(Io, this)) == null || a.hide();
3199
3202
  } else if (t === "Enter" || t === " ") {
3200
3203
  var o;
3201
- (o = m(K, this, qo).call(this)) == null || (o = o.element) == null || o.click();
3202
- } else m(K, this, Go).call(this, e);
3204
+ (o = m(G, this, Zo).call(this)) == null || (o = o.element) == null || o.click();
3205
+ } else m(G, this, Yo).call(this, e);
3203
3206
  }
3204
- function Go(e) {
3207
+ function Yo(e) {
3205
3208
  var t;
3206
- let { key: n } = e, r = [...h(Oo, this), ...h(G, this)], i = (t = m(K, this, qo).call(this)) == null ? r[0] : t;
3209
+ let { key: n } = e, r = [...h(jo, this), ...h(Mo, this)], i = (t = m(G, this, Zo).call(this)) == null ? r[0] : t;
3207
3210
  if (!i) return;
3208
3211
  let a = r.indexOf(i), o = Math.max(0, a);
3209
- n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = m(K, this, Ko).call(this, a, "left") : n === "ArrowRight" ? o = m(K, this, Ko).call(this, a, "right") : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
3212
+ n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = m(G, this, Xo).call(this, a, "left") : n === "ArrowRight" ? o = m(G, this, Xo).call(this, a, "right") : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
3210
3213
  let s = r[o];
3211
- s && (m(K, this, Jo).call(this, s.value), s.element.focus());
3214
+ s && (m(G, this, Qo).call(this, s.value), s.element.focus());
3212
3215
  }
3213
- function Ko(e, t) {
3214
- let n = h(Oo, this).length, r = h(G, this).length;
3216
+ function Xo(e, t) {
3217
+ let n = h(jo, this).length, r = h(Mo, this).length;
3215
3218
  return t === "left" ? e < n ? n + r - 1 : e - n - 1 : e >= n ? 0 : e + n;
3216
3219
  }
3217
- function qo() {
3218
- return [...h(Oo, this), ...h(G, this)].find((e) => e.element.tabIndex === 0);
3220
+ function Zo() {
3221
+ return [...h(jo, this), ...h(Mo, this)].find((e) => e.element.tabIndex === 0);
3219
3222
  }
3220
- function Jo(e) {
3221
- for (let t of [...h(Oo, this), ...h(G, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
3223
+ function Qo(e) {
3224
+ for (let t of [...h(jo, this), ...h(Mo, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
3222
3225
  }
3223
- e(Fo, "observedAttributes", [
3226
+ e(zo, "observedAttributes", [
3224
3227
  g.LANGUAGES,
3225
3228
  g.TEXT_TRACKS,
3226
3229
  g.LANGUAGE,
@@ -3228,12 +3231,12 @@ e(Fo, "observedAttributes", [
3228
3231
  ]);
3229
3232
  //#endregion
3230
3233
  //#region ../../libs/player-next/src/components/LiveButton.ts
3231
- var Yo, Xo = document.createElement("template");
3232
- Xo.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
3233
- var Zo = class extends v {
3234
+ var $o, es = document.createElement("template");
3235
+ es.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
3236
+ var ts = class extends v {
3234
3237
  constructor() {
3235
3238
  var e;
3236
- super(), (e = this.shadowRoot) == null || e.appendChild(Xo.content.cloneNode(!0));
3239
+ super(), (e = this.shadowRoot) == null || e.appendChild(es.content.cloneNode(!0));
3237
3240
  }
3238
3241
  connectedCallback() {
3239
3242
  super.connectedCallback(), this.updateState();
@@ -3264,15 +3267,15 @@ var Zo = class extends v {
3264
3267
  }));
3265
3268
  }
3266
3269
  };
3267
- Yo = Zo, e(Zo, "observedAttributes", [
3268
- ...y(Yo, "observedAttributes", Yo),
3270
+ $o = ts, e(ts, "observedAttributes", [
3271
+ ...y($o, "observedAttributes", $o),
3269
3272
  g.TIMESHIFT_POSITION,
3270
3273
  g.DURATION
3271
3274
  ]);
3272
3275
  //#endregion
3273
3276
  //#region ../../libs/player-next/src/components/MuteButton.ts
3274
- var Qo, $o = document.createElement("template");
3275
- $o.innerHTML = `
3277
+ var ns, rs = document.createElement("template");
3278
+ rs.innerHTML = `
3276
3279
  <style>
3277
3280
  :host {
3278
3281
  display: var(--mute-button-display);
@@ -3300,10 +3303,10 @@ $o.innerHTML = `
3300
3303
  </slot>
3301
3304
  </slot>
3302
3305
  `;
3303
- var es = class extends v {
3306
+ var is = class extends v {
3304
3307
  constructor() {
3305
3308
  var e;
3306
- super(), (e = this.shadowRoot) == null || e.appendChild($o.content.cloneNode(!0));
3309
+ super(), (e = this.shadowRoot) == null || e.appendChild(rs.content.cloneNode(!0));
3307
3310
  }
3308
3311
  connectedCallback() {
3309
3312
  super.connectedCallback(), this.setAttribute("aria-label", this.muted ? "Unmute" : "Mute");
@@ -3328,11 +3331,11 @@ var es = class extends v {
3328
3331
  }));
3329
3332
  }
3330
3333
  };
3331
- Qo = es, e(es, "observedAttributes", [...y(Qo, "observedAttributes", Qo), g.MUTED]);
3334
+ ns = is, e(is, "observedAttributes", [...y(ns, "observedAttributes", ns), g.MUTED]);
3332
3335
  //#endregion
3333
3336
  //#region ../../libs/player-next/src/components/PictureInPictureButton.ts
3334
- var ts, ns = document.createElement("template");
3335
- ns.innerHTML = `
3337
+ var as, os = document.createElement("template");
3338
+ os.innerHTML = `
3336
3339
  <style>
3337
3340
  :host {
3338
3341
  display: var(--pip-button-display);
@@ -3346,10 +3349,10 @@ ns.innerHTML = `
3346
3349
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 4a3 3 0 0 1 3 3v4a1 1 0 0 1 -2 0v-4a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1v10a1 1 0 0 0 1 1h6a1 1 0 0 1 0 2h-6a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3z" /><path d="M20 13a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-3a2 2 0 0 1 2 -2z" /></svg>
3347
3350
  </slot>
3348
3351
  `;
3349
- var rs = class extends v {
3352
+ var ss = class extends v {
3350
3353
  constructor() {
3351
3354
  var e;
3352
- super(), (e = this.shadowRoot) == null || e.appendChild(ns.content.cloneNode(!0));
3355
+ super(), (e = this.shadowRoot) == null || e.appendChild(os.content.cloneNode(!0));
3353
3356
  }
3354
3357
  connectedCallback() {
3355
3358
  super.connectedCallback(), this.setAttribute("aria-label", this.isPictureInPictureActive ? "Exit picture-in-picture" : "Picture-in-picture");
@@ -3374,15 +3377,15 @@ var rs = class extends v {
3374
3377
  }));
3375
3378
  }
3376
3379
  };
3377
- ts = rs, e(rs, "observedAttributes", [
3378
- ...y(ts, "observedAttributes", ts),
3380
+ as = ss, e(ss, "observedAttributes", [
3381
+ ...y(as, "observedAttributes", as),
3379
3382
  g.IS_PIP,
3380
3383
  g.PIP_AVAILABLE
3381
3384
  ]);
3382
3385
  //#endregion
3383
3386
  //#region ../../libs/player-next/src/components/PlayButton.ts
3384
- var is, as = document.createElement("template");
3385
- as.innerHTML = `
3387
+ var cs, ls = document.createElement("template");
3388
+ ls.innerHTML = `
3386
3389
  <style>
3387
3390
  :host {
3388
3391
  display: var(--play-button-display);
@@ -3406,10 +3409,10 @@ as.innerHTML = `
3406
3409
  </slot>
3407
3410
  </slot>
3408
3411
  `;
3409
- var os = class extends v {
3412
+ var us = class extends v {
3410
3413
  constructor() {
3411
3414
  var e;
3412
- super(), (e = this.shadowRoot) == null || e.appendChild(as.content.cloneNode(!0));
3415
+ super(), (e = this.shadowRoot) == null || e.appendChild(ls.content.cloneNode(!0));
3413
3416
  }
3414
3417
  connectedCallback() {
3415
3418
  super.connectedCallback(), this.setAttribute("aria-label", this.paused ? "Play" : "Pause");
@@ -3434,64 +3437,64 @@ var os = class extends v {
3434
3437
  }));
3435
3438
  }
3436
3439
  };
3437
- is = os, e(os, "observedAttributes", [...y(is, "observedAttributes", is), g.PAUSED]);
3440
+ cs = us, e(us, "observedAttributes", [...y(cs, "observedAttributes", cs), g.PAUSED]);
3438
3441
  //#endregion
3439
3442
  //#region ../../libs/player-next/src/PlayerAttributes.ts
3440
- var q = {
3443
+ var K = {
3441
3444
  TITLE: "title",
3442
3445
  OFFLINE: "offline",
3443
3446
  ADVANCED_RENDITION_MENU_ENABLED: "advanced-rendition-menu-enabled",
3444
3447
  REFRESH_POSTER_ENABLED: "refresh-poster-enabled",
3445
3448
  STREAM_POLL_ENABLED: "stream-poll-enabled"
3446
- }, ss = Object.values(q), cs = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(), us = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), ps = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakSet(), gs = class extends pe {
3449
+ }, ds = Object.values(K), fs = /* @__PURE__ */ new WeakMap(), ps = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakSet(), bs = class extends pe {
3447
3450
  constructor(e) {
3448
- super(), S(this, hs), f(this, cs, void 0), f(this, ls, void 0), f(this, us, !1), f(this, ds, !1), f(this, fs, !0), f(this, ps, null), f(this, ms, null), p(ls, this, e), p(cs, this, new de({
3451
+ super(), S(this, ys), f(this, fs, void 0), f(this, ps, void 0), f(this, ms, !1), f(this, hs, !1), f(this, gs, !0), f(this, _s, null), f(this, vs, null), p(ps, this, e), p(fs, this, new de({
3449
3452
  publicEndpoint: e.url,
3450
3453
  tokenFactory: () => e.authenticationToken
3451
3454
  }));
3452
3455
  }
3453
3456
  start(e = 5e3) {
3454
- h(ms, this) && clearInterval(h(ms, this)), p(us, this, !1), p(ds, this, !1), m(hs, this, bs).call(this), m(hs, this, _s).call(this), p(ms, this, window.setInterval(() => {
3455
- !h(ds, this) && !h(ls, this).infiniteReconnect && !h(ps, this) && h(fs, this) && p(ps, this, window.setTimeout(() => m(hs, this, vs).call(this), 300 * 1e3)), !h(ds, this) && h(fs, this) && m(hs, this, _s).call(this);
3457
+ h(vs, this) && clearInterval(h(vs, this)), p(ms, this, !1), p(hs, this, !1), m(ys, this, ws).call(this), m(ys, this, xs).call(this), p(vs, this, window.setInterval(() => {
3458
+ !h(hs, this) && !h(ps, this).infiniteReconnect && !h(_s, this) && h(gs, this) && p(_s, this, window.setTimeout(() => m(ys, this, Ss).call(this), 300 * 1e3)), !h(hs, this) && h(gs, this) && m(ys, this, xs).call(this);
3456
3459
  }, e));
3457
3460
  }
3458
3461
  stop() {
3459
- m(hs, this, ys).call(this), h(ms, this) && (window.clearInterval(h(ms, this)), p(ms, this, null));
3462
+ m(ys, this, Cs).call(this), h(vs, this) && (window.clearInterval(h(vs, this)), p(vs, this, null));
3460
3463
  }
3461
3464
  };
3462
- function _s() {
3465
+ function xs() {
3463
3466
  var e = this;
3464
3467
  return t(function* () {
3465
- if (h(us, e)) return;
3466
- p(us, e, !0);
3468
+ if (h(ms, e)) return;
3469
+ p(ms, e, !0);
3467
3470
  let t = "Stream is offline", n = "Please stand by";
3468
3471
  try {
3469
- let t = yield h(cs, e).getChannel(h(ls, e).channelId);
3472
+ let t = yield h(fs, e).getChannel(h(ps, e).channelId);
3470
3473
  if (t.isLive) {
3471
- p(ds, e, !0), m(hs, e, bs).call(e), e.emit("live", t), p(us, e, !1);
3474
+ p(hs, e, !0), m(ys, e, ws).call(e), e.emit("live", t), p(ms, e, !1);
3472
3475
  return;
3473
3476
  }
3474
3477
  } catch (e) {
3475
3478
  ue(e) && (e.status === 403 || e.status === 401) && (t = "Forbidden", n = "You do not have permission to view this stream");
3476
3479
  }
3477
- h(fs, e) && e.emit("error", {
3480
+ h(gs, e) && e.emit("error", {
3478
3481
  title: t,
3479
3482
  message: n
3480
- }), p(us, e, !1);
3483
+ }), p(ms, e, !1);
3481
3484
  })();
3482
3485
  }
3483
- function vs() {
3484
- this.stop(), p(fs, this, !1), this.emit("timeout");
3486
+ function Ss() {
3487
+ this.stop(), p(gs, this, !1), this.emit("timeout");
3485
3488
  }
3486
- function ys() {
3487
- h(ps, this) && (window.clearTimeout(h(ps, this)), p(ps, this, null));
3489
+ function Cs() {
3490
+ h(_s, this) && (window.clearTimeout(h(_s, this)), p(_s, this, null));
3488
3491
  }
3489
- function bs() {
3490
- m(hs, this, ys).call(this), p(fs, this, !0);
3492
+ function ws() {
3493
+ m(ys, this, Cs).call(this), p(gs, this, !0);
3491
3494
  }
3492
3495
  //#endregion
3493
3496
  //#region ../../libs/player-next/src/utils/browser.ts
3494
- var xs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, Ss = navigator.userAgent.toLowerCase(), Cs = xs.test(Ss), ws = (e) => Ta.observedAttributes.includes(e), Ts = `
3497
+ var Ts = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, Es = navigator.userAgent.toLowerCase(), Ds = Ts.test(Es), Os = (e) => Oa.observedAttributes.includes(e), ks = `
3495
3498
  <style>
3496
3499
  :host {
3497
3500
  container-type: inline-size;
@@ -3501,7 +3504,7 @@ var xs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3501
3504
  display: flex;
3502
3505
  justify-content: center;
3503
3506
 
3504
- --vindral-volume-range-display: ${Cs ? "none" : "flex"};
3507
+ --vindral-volume-range-display: ${Ds ? "none" : "flex"};
3505
3508
  --vindral-airplay-button-display: none;
3506
3509
  --vindral-play-overlay-display: none;
3507
3510
  --vindral-grid-item-offline-display: none;
@@ -3537,7 +3540,7 @@ var xs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3537
3540
  // needs to be higher than bottom bar/UI
3538
3541
  }
3539
3542
 
3540
- :host([${q.OFFLINE}]) {
3543
+ :host([${K.OFFLINE}]) {
3541
3544
  aspect-ratio: 16 / 9;
3542
3545
  vindral-controller {
3543
3546
  --vindral-ui-display: none;
@@ -3582,10 +3585,10 @@ var xs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3582
3585
  --vindral-subtitle-offset: -48px;
3583
3586
  }
3584
3587
  </style>
3585
- `, Es = (e) => {
3588
+ `, As = (e) => {
3586
3589
  let t = e ? "vindral-advanced-rendition-menu" : "vindral-rendition-levels-menu";
3587
3590
  return `
3588
- ${Ts}
3591
+ ${ks}
3589
3592
 
3590
3593
  <vindral-controller>
3591
3594
  <vindral-control-bar slot="top-bar">
@@ -3623,8 +3626,8 @@ var xs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3623
3626
  </vindral-center-overlay>
3624
3627
  </vindral-controller>
3625
3628
  `;
3626
- }, Ds = `
3627
- ${Ts}
3629
+ }, js = `
3630
+ ${ks}
3628
3631
 
3629
3632
  <style>
3630
3633
  #control-bar {
@@ -3648,52 +3651,52 @@ var xs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3648
3651
  <vindral-play-overlay id="play-overlay" hidden></vindral-play-overlay>
3649
3652
  </vindral-center-overlay>
3650
3653
  </vindral-controller>
3651
- `, Os = document.createElement("template"), ks = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), Ls = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), Bs = class extends HTMLElement {
3654
+ `, Ms = document.createElement("template"), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), Bs = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), Us = class extends HTMLElement {
3652
3655
  constructor() {
3653
- super(), S(this, Y), f(this, ks, void 0), f(this, J, void 0), f(this, As, void 0), f(this, js, void 0), f(this, Ms, void 0), f(this, Ns, void 0), f(this, Ps, /* @__PURE__ */ new Set()), f(this, Fs, () => {
3656
+ super(), S(this, Y), f(this, q, void 0), f(this, J, void 0), f(this, Ns, void 0), f(this, Ps, void 0), f(this, Fs, void 0), f(this, Is, void 0), f(this, Ls, /* @__PURE__ */ new Set()), f(this, Rs, () => {
3654
3657
  Array.from(this.attributes).forEach((e) => {
3655
- h(Is, this).call(this, e.name, e.value);
3658
+ h(zs, this).call(this, e.name, e.value);
3656
3659
  });
3657
- }), f(this, Is, (e, t) => {
3658
- ws(e) && (_(t) ? h(J, this).setAttribute(e, t) : h(J, this).removeAttribute(e));
3659
- }), f(this, Ls, () => {
3660
+ }), f(this, zs, (e, t) => {
3661
+ Os(e) && (_(t) ? h(J, this).setAttribute(e, t) : h(J, this).removeAttribute(e));
3662
+ }), f(this, Bs, () => {
3660
3663
  Array.from(this.children).forEach((e) => {
3661
- h(Ps, this).add(e);
3664
+ h(Ls, this).add(e);
3662
3665
  });
3663
- }), f(this, Rs, () => {
3666
+ }), f(this, Vs, () => {
3664
3667
  let e = h(J, this).instance;
3665
3668
  e && (e.on("is live", (e) => {
3666
- e ? (this.removeAttribute(q.OFFLINE), m(Y, this, qs).call(this)) : (this.setAttribute(q.OFFLINE, ""), m(Y, this, Ks).call(this, "Stream is offline", "Please stand by"));
3669
+ e ? (this.removeAttribute(K.OFFLINE), m(Y, this, Xs).call(this)) : (this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, "Stream is offline", "Please stand by"));
3667
3670
  }), e.on("channels", (e) => {
3668
3671
  let t = h(J, this).getAttribute("channel-id"), n = e.find((e) => e.channelId === t);
3669
- n && m(Y, this, Ws).call(this, n);
3672
+ n && m(Y, this, qs).call(this, n);
3670
3673
  }), e.on("channel switch", ({ channelId: t }) => {
3671
3674
  let n = e.channels.find((e) => e.channelId === t);
3672
- n && m(Y, this, Ws).call(this, n);
3675
+ n && m(Y, this, qs).call(this, n);
3673
3676
  }), e.on("error", (e) => {
3674
3677
  if (e.code() === "connection_failed") {
3675
- m(Y, this, Ks).call(this, "Stream is offline", "Please stand by");
3678
+ m(Y, this, Ys).call(this, "Stream is offline", "Please stand by");
3676
3679
  return;
3677
3680
  }
3678
- e.isFatal() && (e.code() === "access_forbidden" ? m(Y, this, Ks).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? m(Y, this, Ks).call(this, "Stream is offline", "Please stand by") : m(Y, this, Ks).call(this, "An error occurred", e.message), h(js, this).removeAttribute("hidden"), this.setAttribute(q.OFFLINE, ""), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_FULLSCREEN)), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_PIP)));
3681
+ e.isFatal() && (e.code() === "access_forbidden" ? m(Y, this, Ys).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? m(Y, this, Ys).call(this, "Stream is offline", "Please stand by") : m(Y, this, Ys).call(this, "An error occurred", e.message), h(Ps, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_FULLSCREEN)), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_PIP)));
3679
3682
  }));
3680
- }), f(this, zs, () => {
3681
- h(J, this).connect(), h(js, this).setAttribute("hidden", ""), m(Y, this, qs).call(this), h(J, this).focus();
3682
- }), p(ks, this, this.attachShadow({ mode: "open" })), m(Y, this, Hs).call(this), p(J, this, h(ks, this).querySelector("vindral-controller")), p(As, this, h(ks, this).querySelector("#vindral-message")), p(js, this, h(ks, this).querySelector("#play-overlay")), p(Ms, this, h(ks, this).querySelector("#center-overlay"));
3683
+ }), f(this, Hs, () => {
3684
+ h(J, this).connect(), h(Ps, this).setAttribute("hidden", ""), m(Y, this, Xs).call(this), h(J, this).focus();
3685
+ }), p(q, this, this.attachShadow({ mode: "open" })), m(Y, this, Gs).call(this), p(J, this, h(q, this).querySelector("vindral-controller")), p(Ns, this, h(q, this).querySelector("#vindral-message")), p(Ps, this, h(q, this).querySelector("#play-overlay")), p(Fs, this, h(q, this).querySelector("#center-overlay"));
3683
3686
  }
3684
3687
  connectedCallback() {
3685
- this.setAttribute(q.OFFLINE, ""), h(J, this).addEventListener("vindral-instance-ready", h(Rs, this)), m(Y, this, Us).call(this);
3688
+ this.setAttribute(K.OFFLINE, ""), h(J, this).addEventListener("vindral-instance-ready", h(Vs, this)), m(Y, this, Ks).call(this);
3686
3689
  }
3687
3690
  disconnectedCallback() {
3688
3691
  var e;
3689
- h(J, this).removeEventListener("vindral-instance-ready", h(Rs, this)), h(js, this).removeEventListener("click", h(zs, this)), (e = h(Ns, this)) == null || e.stop();
3692
+ h(J, this).removeEventListener("vindral-instance-ready", h(Vs, this)), h(Ps, this).removeEventListener("click", h(Hs, this)), (e = h(Is, this)) == null || e.stop();
3690
3693
  }
3691
3694
  attributeChangedCallback(e, t, n) {
3692
- if (t !== n) if (e === g.MEDIA || e === q.ADVANCED_RENDITION_MENU_ENABLED) m(Y, this, Hs).call(this);
3693
- else if (e === q.REFRESH_POSTER_ENABLED) {
3694
- let e = h(ks, this).querySelector("vindral-poster-overlay");
3695
- e && (e.disabled = b(this.getAttribute(q.REFRESH_POSTER_ENABLED), !1) === !1);
3696
- } else h(Is, this).call(this, e, n);
3695
+ if (t !== n) if (e === g.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) m(Y, this, Gs).call(this);
3696
+ else if (e === K.REFRESH_POSTER_ENABLED) {
3697
+ let e = h(q, this).querySelector("vindral-poster-overlay");
3698
+ e && (e.disabled = b(this.getAttribute(K.REFRESH_POSTER_ENABLED), !1) === !1);
3699
+ } else h(zs, this).call(this, e, n);
3697
3700
  }
3698
3701
  get instance() {
3699
3702
  return h(J, this).instance;
@@ -3708,64 +3711,64 @@ var xs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3708
3711
  h(J, this).timelineMarkers = e;
3709
3712
  }
3710
3713
  };
3711
- function Vs() {
3712
- let e = xe(this.getAttribute(g.MEDIA)), t = b(this.getAttribute(q.ADVANCED_RENDITION_MENU_ENABLED), !1);
3713
- return e === "audio" ? Ds : Es(t);
3714
- }
3715
- function Hs() {
3716
- let e = h(ks, this).hasChildNodes(), t = e ? h(J, this) : void 0, n = e ? h(js, this) : void 0;
3717
- this.isConnected && t && t.removeEventListener("vindral-instance-ready", h(Rs, this)), this.isConnected && n && h(Ns, this) && n.removeEventListener("click", h(zs, this)), Os.innerHTML = m(Y, this, Vs).call(this);
3718
- let r = Os.content.cloneNode(!0);
3719
- p(J, this, r.querySelector("vindral-controller")), p(As, this, r.querySelector("#vindral-message")), p(js, this, r.querySelector("#play-overlay")), p(Ms, this, r.querySelector("#center-overlay")), h(Ls, this).call(this), h(Ps, this).forEach((e) => {
3714
+ function Ws() {
3715
+ let e = xe(this.getAttribute(g.MEDIA)), t = b(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
3716
+ return e === "audio" ? js : As(t);
3717
+ }
3718
+ function Gs() {
3719
+ let e = h(q, this).hasChildNodes(), t = e ? h(J, this) : void 0, n = e ? h(Ps, this) : void 0;
3720
+ this.isConnected && t && t.removeEventListener("vindral-instance-ready", h(Vs, this)), this.isConnected && n && h(Is, this) && n.removeEventListener("click", h(Hs, this)), Ms.innerHTML = m(Y, this, Ws).call(this);
3721
+ let r = Ms.content.cloneNode(!0);
3722
+ p(J, this, r.querySelector("vindral-controller")), p(Ns, this, r.querySelector("#vindral-message")), p(Ps, this, r.querySelector("#play-overlay")), p(Fs, this, r.querySelector("#center-overlay")), h(Bs, this).call(this), h(Ls, this).forEach((e) => {
3720
3723
  h(J, this).appendChild(e);
3721
- }), h(Fs, this).call(this), h(ks, this).innerHTML = "", h(ks, this).appendChild(r), this.isConnected && (h(J, this).addEventListener("vindral-instance-ready", h(Rs, this)), h(Ns, this) && h(js, this).addEventListener("click", h(zs, this)));
3724
+ }), h(Rs, this).call(this), h(q, this).innerHTML = "", h(q, this).appendChild(r), this.isConnected && (h(J, this).addEventListener("vindral-instance-ready", h(Vs, this)), h(Is, this) && h(Ps, this).addEventListener("click", h(Hs, this)));
3722
3725
  }
3723
- function Us() {
3726
+ function Ks() {
3724
3727
  var e;
3725
- if (b(this.getAttribute(q.STREAM_POLL_ENABLED), !0) === !1) return;
3728
+ if (b(this.getAttribute(K.STREAM_POLL_ENABLED), !0) === !1) return;
3726
3729
  let t = this.getAttribute("url") || "https://lb.cdn.vindral.com", n = this.getAttribute("channel-id"), r = (e = this.getAttribute("authentication-token")) == null ? void 0 : e, i = this.hasAttribute("infinite-reconnect");
3727
3730
  if (!n) {
3728
- this.setAttribute(q.OFFLINE, ""), m(Y, this, Ks).call(this, "Invalid options", "Please enter a channel id to start the stream");
3731
+ this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, "Invalid options", "Please enter a channel id to start the stream");
3729
3732
  return;
3730
3733
  }
3731
- p(Ns, this, new gs({
3734
+ p(Is, this, new bs({
3732
3735
  url: t,
3733
3736
  channelId: n,
3734
3737
  authenticationToken: r,
3735
3738
  infiniteReconnect: i
3736
- })), h(Ns, this).on("live", (e) => {
3737
- h(J, this).connect(), this.removeAttribute("offline"), m(Y, this, qs).call(this), m(Y, this, Ws).call(this, e);
3738
- }), h(Ns, this).on("timeout", () => {
3739
- m(Y, this, qs).call(this), h(js, this).removeAttribute("hidden");
3740
- }), h(Ns, this).on("error", (e) => {
3741
- this.setAttribute(q.OFFLINE, ""), m(Y, this, Ks).call(this, e.title, e.message);
3742
- }), h(js, this).addEventListener("click", h(zs, this)), this.hasAttribute("paused") && h(Ns, this).start();
3743
- }
3744
- function Ws(e) {
3739
+ })), h(Is, this).on("live", (e) => {
3740
+ h(J, this).connect(), this.removeAttribute("offline"), m(Y, this, Xs).call(this), m(Y, this, qs).call(this, e);
3741
+ }), h(Is, this).on("timeout", () => {
3742
+ m(Y, this, Xs).call(this), h(Ps, this).removeAttribute("hidden");
3743
+ }), h(Is, this).on("error", (e) => {
3744
+ this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, e.title, e.message);
3745
+ }), h(Ps, this).addEventListener("click", h(Hs, this)), this.hasAttribute("paused") && h(Is, this).start();
3746
+ }
3747
+ function qs(e) {
3745
3748
  var t, n, r;
3746
3749
  let i = ve(this.getAttribute("title"), !1);
3747
3750
  i && Me({
3748
3751
  title: typeof i == "string" ? i : e.name,
3749
- poster: (t = (n = m(Y, this, Gs).call(this)) == null ? (r = this.instance) == null ? void 0 : r.getThumbnailUrl() : n) == null ? e.thumbnailUrls[0] : t
3752
+ poster: (t = (n = m(Y, this, Js).call(this)) == null ? (r = this.instance) == null ? void 0 : r.getThumbnailUrl() : n) == null ? e.thumbnailUrls[0] : t
3750
3753
  });
3751
3754
  }
3752
- function Gs() {
3755
+ function Js() {
3753
3756
  let e = ve(this.getAttribute("poster"));
3754
3757
  return _(e) ? e : void 0;
3755
3758
  }
3756
- function Ks(e, t) {
3757
- h(As, this).setAttribute("title", e), h(As, this).setAttribute("description", t), h(As, this).removeAttribute("hidden");
3758
- let n = m(Y, this, Gs).call(this);
3759
- n ? h(Ms, this).setAttribute("poster", n) : h(Ms, this).removeAttribute("poster"), h(Ms, this).setAttribute("backdrop", "");
3759
+ function Ys(e, t) {
3760
+ h(Ns, this).setAttribute("title", e), h(Ns, this).setAttribute("description", t), h(Ns, this).removeAttribute("hidden");
3761
+ let n = m(Y, this, Js).call(this);
3762
+ n ? h(Fs, this).setAttribute("poster", n) : h(Fs, this).removeAttribute("poster"), h(Fs, this).setAttribute("backdrop", "");
3760
3763
  }
3761
- function qs() {
3762
- h(As, this).setAttribute("hidden", ""), h(Ms, this).removeAttribute("backdrop");
3764
+ function Xs() {
3765
+ h(Ns, this).setAttribute("hidden", ""), h(Fs, this).removeAttribute("backdrop");
3763
3766
  }
3764
- e(Bs, "observedAttributes", [...Ta.observedAttributes, ...ss]);
3767
+ e(Us, "observedAttributes", [...Oa.observedAttributes, ...ds]);
3765
3768
  //#endregion
3766
3769
  //#region ../../libs/player-next/src/components/PosterOverlay.ts
3767
- var Js = document.createElement("template");
3768
- Js.innerHTML = `
3770
+ var Zs = document.createElement("template");
3771
+ Zs.innerHTML = `
3769
3772
  <style>
3770
3773
  :host {
3771
3774
  display: var(--poster-overlay-display);
@@ -3800,26 +3803,26 @@ Js.innerHTML = `
3800
3803
  }
3801
3804
  </style>
3802
3805
  `;
3803
- var Ys = 6e3, Xs = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakSet(), tc = /* @__PURE__ */ new WeakMap(), nc = class extends HTMLElement {
3806
+ var Qs = 6e3, $s = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakSet(), ic = /* @__PURE__ */ new WeakMap(), ac = class extends HTMLElement {
3804
3807
  constructor() {
3805
- super(), S(this, ec), f(this, Xs, null), f(this, Zs, null), f(this, Qs, null), f(this, $s, () => {
3806
- !document.hidden && this.hasAttribute("intersecting") && this.paused && !this.disabled ? m(ec, this, rc).call(this) : m(ec, this, ic).call(this);
3807
- }), f(this, tc, (e) => {
3808
+ super(), S(this, rc), f(this, $s, null), f(this, ec, null), f(this, tc, null), f(this, nc, () => {
3809
+ !document.hidden && this.hasAttribute("intersecting") && this.paused && !this.disabled ? m(rc, this, oc).call(this) : m(rc, this, sc).call(this);
3810
+ }), f(this, ic, (e) => {
3808
3811
  e.forEach((e) => {
3809
3812
  e.isIntersecting ? this.setAttribute("intersecting", "") : this.removeAttribute("intersecting");
3810
3813
  });
3811
- }), this.attachShadow({ mode: "open" }).appendChild(Js.content.cloneNode(!0));
3814
+ }), this.attachShadow({ mode: "open" }).appendChild(Zs.content.cloneNode(!0));
3812
3815
  }
3813
3816
  connectedCallback() {
3814
3817
  var e;
3815
- p(Xs, this, this.closest("vindral-controller")), (e = h(Xs, this)) == null || e.connectListener(this), document.addEventListener("visibilitychange", h($s, this)), p(Qs, this, new IntersectionObserver(h(tc, this))), h(Qs, this).observe(this);
3818
+ p($s, this, this.closest("vindral-controller")), (e = h($s, this)) == null || e.connectListener(this), document.addEventListener("visibilitychange", h(nc, this)), p(tc, this, new IntersectionObserver(h(ic, this))), h(tc, this).observe(this);
3816
3819
  }
3817
3820
  disconnectedCallback() {
3818
3821
  var e, t;
3819
- (e = h(Xs, this)) == null || e.disconnectListener(this), document.removeEventListener("visibilitychange", h($s, this)), (t = h(Qs, this)) == null || t.disconnect(), p(Qs, this, null), m(ec, this, ic).call(this);
3822
+ (e = h($s, this)) == null || e.disconnectListener(this), document.removeEventListener("visibilitychange", h(nc, this)), (t = h(tc, this)) == null || t.disconnect(), p(tc, this, null), m(rc, this, sc).call(this);
3820
3823
  }
3821
3824
  attributeChangedCallback(e, t, n) {
3822
- t !== n && (e === g.POSTER_SRC && this.paused && !this.disabled && m(ec, this, ac).call(this), (e === g.PAUSED || e === "disabled" || e === "intersecting") && h($s, this).call(this));
3825
+ t !== n && (e === g.POSTER_SRC && this.paused && !this.disabled && m(rc, this, cc).call(this), (e === g.PAUSED || e === "disabled" || e === "intersecting") && h(nc, this).call(this));
3823
3826
  }
3824
3827
  get disabled() {
3825
3828
  return this.hasAttribute("disabled");
@@ -3834,18 +3837,18 @@ var Ys = 6e3, Xs = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakM
3834
3837
  return this.hasAttribute(g.PAUSED);
3835
3838
  }
3836
3839
  };
3837
- function rc() {
3838
- h(Zs, this) === null && (m(ec, this, ic).call(this), p(Zs, this, window.setInterval(() => m(ec, this, ac).call(this), Ys)));
3840
+ function oc() {
3841
+ h(ec, this) === null && (m(rc, this, sc).call(this), p(ec, this, window.setInterval(() => m(rc, this, cc).call(this), Qs)));
3839
3842
  }
3840
- function ic() {
3841
- h(Zs, this) !== null && (clearInterval(h(Zs, this)), p(Zs, this, null)), this.style.backgroundImage = "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==')";
3843
+ function sc() {
3844
+ h(ec, this) !== null && (clearInterval(h(ec, this)), p(ec, this, null)), this.style.backgroundImage = "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==')";
3842
3845
  }
3843
- function ac() {
3846
+ function cc() {
3844
3847
  if (!this.posterSrc) return;
3845
3848
  let e = new URL(this.posterSrc), t = new Image();
3846
3849
  e.searchParams.set("t", Date.now().toString()), t.src = e.toString(), t.onload = () => this.style.backgroundImage = `url(${e.toString()})`;
3847
3850
  }
3848
- e(nc, "observedAttributes", [
3851
+ e(ac, "observedAttributes", [
3849
3852
  g.POSTER_SRC,
3850
3853
  g.PAUSED,
3851
3854
  "disabled",
@@ -3853,70 +3856,70 @@ e(nc, "observedAttributes", [
3853
3856
  ]);
3854
3857
  //#endregion
3855
3858
  //#region ../../libs/player-next/src/components/RenditionLevelsMenu.ts
3856
- var oc, sc = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-settings-filled\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"#2c3e50\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z\" stroke-width=\"0\" fill=\"currentColor\" />\n</svg>\n", cc = document.createElement("template");
3857
- cc.innerHTML = `
3859
+ var lc, uc = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-settings-filled\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"#2c3e50\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z\" stroke-width=\"0\" fill=\"currentColor\" />\n</svg>\n", dc = document.createElement("template");
3860
+ dc.innerHTML = `
3858
3861
  <style>
3859
3862
  :host {
3860
3863
  display: var(--rendition-menu-display);
3861
3864
  }
3862
3865
  </style>
3863
3866
 
3864
- <slot name="button">${sc}</slot>
3867
+ <slot name="button">${uc}</slot>
3865
3868
  <slot name="listbox" hidden>
3866
3869
  <vindral-rendition-levels-menu-list id="listbox" part="listbox"></vindral-rendition-levels-menu-list>
3867
3870
  </slot>
3868
3871
  `;
3869
- var lc = /* @__PURE__ */ new WeakSet(), uc = class extends He {
3872
+ var fc = /* @__PURE__ */ new WeakSet(), pc = class extends He {
3870
3873
  constructor() {
3871
3874
  var e, t, n;
3872
- super(), S(this, lc), (e = this.shadowRoot) == null || e.appendChild(cc.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
3875
+ super(), S(this, fc), (e = this.shadowRoot) == null || e.appendChild(dc.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
3873
3876
  }
3874
3877
  connectedCallback() {
3875
- super.connectedCallback(), m(lc, this, dc).call(this), this.setAttribute("aria-label", "Quality");
3878
+ super.connectedCallback(), m(fc, this, mc).call(this), this.setAttribute("aria-label", "Quality");
3876
3879
  }
3877
3880
  attributeChangedCallback(e, t, n) {
3878
- super.attributeChangedCallback(e, t, n), e === g.RENDITION_LEVELS && m(lc, this, dc).call(this);
3881
+ super.attributeChangedCallback(e, t, n), e === g.RENDITION_LEVELS && m(fc, this, mc).call(this);
3879
3882
  }
3880
3883
  };
3881
- oc = uc;
3882
- function dc() {
3884
+ lc = pc;
3885
+ function mc() {
3883
3886
  let e = this.getAttribute(g.RENDITION_LEVELS);
3884
3887
  !e || e === "[]" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
3885
3888
  }
3886
- e(uc, "observedAttributes", [...y(oc, "observedAttributes", oc), g.RENDITION_LEVELS]);
3889
+ e(pc, "observedAttributes", [...y(lc, "observedAttributes", lc), g.RENDITION_LEVELS]);
3887
3890
  //#endregion
3888
3891
  //#region ../../libs/player-next/src/components/RenditionLevelsMenuList.ts
3889
- var fc = document.createElement("template");
3890
- fc.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 140px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .menu {\n display: grid;\n gap: var(--padding-1);\n }\n\n [role=\"menuitem\"] {\n flex: 1;\n position: relative;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 44px;\n padding: 0 var(--padding-5);\n border-radius: 4px;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n white-space: nowrap;\n text-align: left;\n }\n\n [role=\"menuitem\"]:hover {\n background: var(--bg-component-hover);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"] {\n background: var(--bg-component-active);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"]::before {\n content: url(\"data:image/svg+xml,%0A%20%20%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2078.369%2078.369%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20d%3D%22M78.049%2019.015%2029.458%2067.606a1.094%201.094%200%200%201-1.548%200L.32%2040.015a1.094%201.094%200%200%201%200-1.547l6.704-6.704a1.095%201.095%200%200%201%201.548%200l20.113%2020.112%2041.113-41.113a1.095%201.095%200%200%201%201.548%200l6.703%206.704a1.094%201.094%200%200%201%200%201.548z%22%2F%3E%3C%2Fsvg%3E%0A\");\n position: absolute;\n left: calc(var(--padding-3) - var(--padding-1));\n top: calc(50% - 8px);\n }\n\n [role=\"menuitem\"]:focus-visible {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n .menu-item-subtitle {\n font-size: 11px;\n opacity: 0.6;\n }\n\n .heading {\n text-transform: uppercase;\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-3);\n font-size: 11px;\n font-weight: bold;\n }\n </style>\n\n <slot>\n <div class=\"heading\">Max quality</div>\n <div class=\"menu\"></div>\n </slot>\n";
3891
- var pc = /* @__PURE__ */ new WeakMap(), mc = /* @__PURE__ */ new WeakMap(), hc = /* @__PURE__ */ new WeakMap(), gc = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), yc = class extends HTMLElement {
3892
+ var hc = document.createElement("template");
3893
+ hc.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 140px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .menu {\n display: grid;\n gap: var(--padding-1);\n }\n\n [role=\"menuitem\"] {\n flex: 1;\n position: relative;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 44px;\n padding: 0 var(--padding-5);\n border-radius: 4px;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n white-space: nowrap;\n text-align: left;\n }\n\n [role=\"menuitem\"]:hover {\n background: var(--bg-component-hover);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"] {\n background: var(--bg-component-active);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"]::before {\n content: url(\"data:image/svg+xml,%0A%20%20%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2078.369%2078.369%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20d%3D%22M78.049%2019.015%2029.458%2067.606a1.094%201.094%200%200%201-1.548%200L.32%2040.015a1.094%201.094%200%200%201%200-1.547l6.704-6.704a1.095%201.095%200%200%201%201.548%200l20.113%2020.112%2041.113-41.113a1.095%201.095%200%200%201%201.548%200l6.703%206.704a1.094%201.094%200%200%201%200%201.548z%22%2F%3E%3C%2Fsvg%3E%0A\");\n position: absolute;\n left: calc(var(--padding-3) - var(--padding-1));\n top: calc(50% - 8px);\n }\n\n [role=\"menuitem\"]:focus-visible {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n .menu-item-subtitle {\n font-size: 11px;\n opacity: 0.6;\n }\n\n .heading {\n text-transform: uppercase;\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-3);\n font-size: 11px;\n font-weight: bold;\n }\n </style>\n\n <slot>\n <div class=\"heading\">Max quality</div>\n <div class=\"menu\"></div>\n </slot>\n";
3894
+ var gc = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), yc = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), xc = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), Sc = class extends HTMLElement {
3892
3895
  constructor() {
3893
- super(), S(this, X), f(this, pc, []), f(this, mc, 2 ** 53 - 1), f(this, hc, null), f(this, gc, []), f(this, _c, null), f(this, vc, null), e(this, "handleEvent", (e) => {
3896
+ super(), S(this, X), f(this, gc, []), f(this, _c, 2 ** 53 - 1), f(this, vc, null), f(this, yc, []), f(this, bc, null), f(this, xc, null), e(this, "handleEvent", (e) => {
3894
3897
  switch (e.type) {
3895
3898
  case "keydown":
3896
- m(X, this, Tc).call(this, e);
3899
+ m(X, this, Oc).call(this, e);
3897
3900
  break;
3898
3901
  }
3899
- }), this.attachShadow({ mode: "open" }).appendChild(fc.content.cloneNode(!0));
3902
+ }), this.attachShadow({ mode: "open" }).appendChild(hc.content.cloneNode(!0));
3900
3903
  }
3901
3904
  connectedCallback() {
3902
3905
  let e = this.getRootNode();
3903
3906
  if (e instanceof ShadowRoot) {
3904
3907
  var t;
3905
- p(_c, this, e.host.closest("vindral-controller")), (t = h(_c, this)) == null || t.connectListener(this), m(X, this, bc).call(this), m(X, this, xc).call(this), p(vc, this, e.host), this.addEventListener("keydown", this);
3908
+ p(bc, this, e.host.closest("vindral-controller")), (t = h(bc, this)) == null || t.connectListener(this), m(X, this, Cc).call(this), m(X, this, wc).call(this), p(xc, this, e.host), this.addEventListener("keydown", this);
3906
3909
  }
3907
3910
  }
3908
3911
  disconnectedCallback() {
3909
3912
  var e;
3910
- (e = h(_c, this)) == null || e.disconnectListener(this), this.removeEventListener("keydown", this);
3913
+ (e = h(bc, this)) == null || e.disconnectListener(this), this.removeEventListener("keydown", this);
3911
3914
  }
3912
3915
  attributeChangedCallback(e, t, n) {
3913
3916
  t !== n && (e === g.RENDITION_LEVELS && n && (this.list = JSON.parse(n)), e === g.MAX_VIDEO_BITRATE && n && (this.maxVideoBitrate = n ? parseInt(n, 10) : 2 ** 53 - 1));
3914
3917
  }
3915
3918
  set list(e) {
3916
- p(pc, this, e), m(X, this, xc).call(this);
3919
+ p(gc, this, e), m(X, this, wc).call(this);
3917
3920
  }
3918
3921
  set maxVideoBitrate(e) {
3919
- p(mc, this, e), m(X, this, Cc).call(this);
3922
+ p(_c, this, e), m(X, this, Ec).call(this);
3920
3923
  }
3921
3924
  get keysUsed() {
3922
3925
  return [
@@ -3932,10 +3935,10 @@ var pc = /* @__PURE__ */ new WeakMap(), mc = /* @__PURE__ */ new WeakMap(), hc =
3932
3935
  }
3933
3936
  focus() {
3934
3937
  var e;
3935
- (e = h(hc, this)) == null || e.focus();
3938
+ (e = h(vc, this)) == null || e.focus();
3936
3939
  }
3937
3940
  };
3938
- function bc() {
3941
+ function Cc() {
3939
3942
  new IntersectionObserver((e) => {
3940
3943
  e.forEach((e) => {
3941
3944
  if (e.intersectionRatio !== 1) if (e.intersectionRatio > 0) {
@@ -3944,50 +3947,50 @@ function bc() {
3944
3947
  } else this.style.height = "auto";
3945
3948
  });
3946
3949
  }, {
3947
- root: h(_c, this),
3950
+ root: h(bc, this),
3948
3951
  threshold: 0
3949
3952
  }).observe(this);
3950
3953
  }
3951
- function xc() {
3954
+ function wc() {
3952
3955
  var e;
3953
3956
  let t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".menu");
3954
- t && (p(gc, this, []), t.innerHTML = "", h(pc, this).sort((e, t) => {
3957
+ t && (p(yc, this, []), t.innerHTML = "", h(gc, this).sort((e, t) => {
3955
3958
  var n, r;
3956
3959
  return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
3957
3960
  }).forEach((e) => {
3958
3961
  var n, r, i, a, o, s, c, l;
3959
3962
  let u = document.createElement("div");
3960
3963
  u.setAttribute("role", "menuitem"), u.setAttribute("value", String((n = e.video) == null ? void 0 : n.height)), u.classList.add("menu-item"), u.tabIndex = -1;
3961
- let ee = m(X, this, Sc).call(this, (r = e.video) == null ? void 0 : r.frameRate);
3964
+ let ee = m(X, this, Tc).call(this, (r = e.video) == null ? void 0 : r.frameRate);
3962
3965
  u.textContent = e.video ? me(e.video) : "";
3963
3966
  let d = document.createElement("span");
3964
- d.classList.add("menu-item-subtitle"), d.textContent = `${he(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${ee}p`, u.appendChild(d), u.addEventListener("click", () => m(X, this, wc).call(this, e)), h(gc, this).push({
3967
+ d.classList.add("menu-item-subtitle"), d.textContent = `${he(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${ee}p`, u.appendChild(d), u.addEventListener("click", () => m(X, this, Dc).call(this, e)), h(yc, this).push({
3965
3968
  el: u,
3966
3969
  id: (c = (l = e.video) == null ? void 0 : l.id) == null ? -1 : c
3967
3970
  }), t.appendChild(u);
3968
- }), m(X, this, Cc).call(this));
3971
+ }), m(X, this, Ec).call(this));
3969
3972
  }
3970
- function Sc(e) {
3973
+ function Tc(e) {
3971
3974
  return e ? e[0] % e[1] === 0 ? (e[0] / e[1]).toString() : (e[0] / e[1]).toFixed(2) : "";
3972
3975
  }
3973
- function Cc() {
3974
- h(hc, this) && (h(hc, this).removeAttribute("aria-selected"), h(hc, this).tabIndex = -1);
3975
- let e = h(pc, this).sort((e, t) => {
3976
+ function Ec() {
3977
+ h(vc, this) && (h(vc, this).removeAttribute("aria-selected"), h(vc, this).tabIndex = -1);
3978
+ let e = h(gc, this).sort((e, t) => {
3976
3979
  var n, r;
3977
3980
  return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
3978
- }), t = h(pc, this).filter((e) => {
3981
+ }), t = h(gc, this).filter((e) => {
3979
3982
  var t;
3980
- return ((t = e.video) == null ? void 0 : t.bitRate) && e.video.bitRate <= h(mc, this);
3983
+ return ((t = e.video) == null ? void 0 : t.bitRate) && e.video.bitRate <= h(_c, this);
3981
3984
  })[0] || e[e.length - 1];
3982
3985
  if (t) {
3983
- let e = h(gc, this).find((e) => {
3986
+ let e = h(yc, this).find((e) => {
3984
3987
  var n;
3985
3988
  return e.id === ((n = t.video) == null ? void 0 : n.id);
3986
3989
  });
3987
- e && (e.el.tabIndex = 0, e.el.setAttribute("aria-selected", "true"), p(hc, this, e.el));
3990
+ e && (e.el.tabIndex = 0, e.el.setAttribute("aria-selected", "true"), p(vc, this, e.el));
3988
3991
  }
3989
3992
  }
3990
- function wc(e) {
3993
+ function Dc(e) {
3991
3994
  this.dispatchEvent(new Event("change", {
3992
3995
  bubbles: !0,
3993
3996
  composed: !0
@@ -3997,36 +4000,36 @@ function wc(e) {
3997
4000
  detail: e
3998
4001
  }));
3999
4002
  }
4000
- function Tc(e) {
4003
+ function Oc(e) {
4001
4004
  let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
4002
4005
  if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
4003
4006
  var a;
4004
- (a = h(vc, this)) == null || a.hide();
4007
+ (a = h(xc, this)) == null || a.hide();
4005
4008
  } else if (t === "Enter" || t === " ") {
4006
4009
  var o;
4007
- (o = m(X, this, Dc).call(this)) == null || (o = o.el) == null || o.click();
4008
- } else m(X, this, Ec).call(this, e);
4010
+ (o = m(X, this, Ac).call(this)) == null || (o = o.el) == null || o.click();
4011
+ } else m(X, this, kc).call(this, e);
4009
4012
  }
4010
- function Ec(e) {
4013
+ function kc(e) {
4011
4014
  var t;
4012
- let { key: n } = e, r = h(gc, this), i = (t = m(X, this, Dc).call(this)) == null ? r[0] : t;
4015
+ let { key: n } = e, r = h(yc, this), i = (t = m(X, this, Ac).call(this)) == null ? r[0] : t;
4013
4016
  if (!i) return;
4014
4017
  let a = r.indexOf(i), o = Math.max(0, a);
4015
4018
  n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
4016
4019
  let s = r[o];
4017
- s && (m(X, this, Oc).call(this, s.id), s.el.focus());
4020
+ s && (m(X, this, jc).call(this, s.id), s.el.focus());
4018
4021
  }
4019
- function Dc() {
4020
- return h(gc, this).find((e) => e.el.tabIndex === 0);
4022
+ function Ac() {
4023
+ return h(yc, this).find((e) => e.el.tabIndex === 0);
4021
4024
  }
4022
- function Oc(e) {
4023
- for (let t of h(gc, this)) t.el.tabIndex = t.id === e ? 0 : -1;
4025
+ function jc(e) {
4026
+ for (let t of h(yc, this)) t.el.tabIndex = t.id === e ? 0 : -1;
4024
4027
  }
4025
- e(yc, "observedAttributes", [g.RENDITION_LEVELS, g.MAX_VIDEO_BITRATE]);
4028
+ e(Sc, "observedAttributes", [g.RENDITION_LEVELS, g.MAX_VIDEO_BITRATE]);
4026
4029
  //#endregion
4027
4030
  //#region ../../libs/player-next/src/components/ScrollOverlay.ts
4028
- var kc = document.createElement("template");
4029
- kc.innerHTML = `
4031
+ var Mc = document.createElement("template");
4032
+ Mc.innerHTML = `
4030
4033
  <style>
4031
4034
  :host {
4032
4035
  --scroll-overlay-offset: var(--vindral-scroll-overlay-offset, 0px);
@@ -4094,71 +4097,71 @@ kc.innerHTML = `
4094
4097
  <div id="scroll-area"></div>
4095
4098
  <slot id="content"></slot>
4096
4099
  `;
4097
- var Ac = /* @__PURE__ */ new WeakMap(), jc = /* @__PURE__ */ new WeakMap(), Mc = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Fc = /* @__PURE__ */ new WeakMap(), Ic = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakSet(), Lc = /* @__PURE__ */ new WeakMap(), Rc = class extends HTMLElement {
4100
+ var Nc = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Fc = /* @__PURE__ */ new WeakMap(), Ic = /* @__PURE__ */ new WeakMap(), Lc = /* @__PURE__ */ new WeakMap(), Rc = /* @__PURE__ */ new WeakMap(), zc = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakSet(), Bc = /* @__PURE__ */ new WeakMap(), Vc = class extends HTMLElement {
4098
4101
  constructor() {
4099
- super(), S(this, Z), f(this, Ac, null), f(this, jc, null), f(this, Mc, !1), f(this, Nc, !1), f(this, Pc, !1), f(this, Fc, () => {
4102
+ super(), S(this, Z), f(this, Nc, null), f(this, Pc, null), f(this, Fc, !1), f(this, Ic, !1), f(this, Lc, !1), f(this, Rc, () => {
4100
4103
  this.open && (this.open = !1);
4101
- }), f(this, Ic, null), e(this, "handleEvent", (e) => {
4104
+ }), f(this, zc, null), e(this, "handleEvent", (e) => {
4102
4105
  switch (e.type) {
4103
4106
  case "touchstart":
4104
- m(Z, this, Bc).call(this, e);
4107
+ m(Z, this, Uc).call(this, e);
4105
4108
  break;
4106
4109
  case "touchmove":
4107
- m(Z, this, Vc).call(this, e);
4110
+ m(Z, this, Wc).call(this, e);
4108
4111
  break;
4109
4112
  case "touchend":
4110
- m(Z, this, Hc).call(this, e);
4113
+ m(Z, this, Gc).call(this, e);
4111
4114
  break;
4112
4115
  }
4113
- }), f(this, Lc, () => {
4114
- let e = h(Pc, this);
4116
+ }), f(this, Bc, () => {
4117
+ let e = h(Lc, this);
4115
4118
  if (this.scrollTop === 0) {
4116
- m(Z, this, Xc).call(this, e);
4119
+ m(Z, this, $c).call(this, e);
4117
4120
  return;
4118
4121
  }
4119
- if (!e && !m(Z, this, Uc).call(this)) {
4120
- m(Z, this, Jc).call(this), m(Z, this, Xc).call(this);
4122
+ if (!e && !m(Z, this, Kc).call(this)) {
4123
+ m(Z, this, Zc).call(this), m(Z, this, $c).call(this);
4121
4124
  return;
4122
4125
  }
4123
- !this.visible && this.scrollTop > 0 && !h(Mc, this) ? m(Z, this, Zc).call(this) : !h(Mc, this) && m(Z, this, Gc).call(this) && (this.open || (this.open = !0), e && !this.hasAttribute("snap-touch") && this.setAttribute("snap-touch", ""));
4124
- }), this.attachShadow({ mode: "open" }).appendChild(kc.content.cloneNode(!0));
4126
+ !this.visible && this.scrollTop > 0 && !h(Fc, this) ? m(Z, this, el).call(this) : !h(Fc, this) && m(Z, this, Jc).call(this) && (this.open || (this.open = !0), e && !this.hasAttribute("snap-touch") && this.setAttribute("snap-touch", ""));
4127
+ }), this.attachShadow({ mode: "open" }).appendChild(Mc.content.cloneNode(!0));
4125
4128
  }
4126
4129
  connectedCallback() {
4127
4130
  let e = this.getRootNode();
4128
4131
  if (e instanceof Document || e instanceof ShadowRoot) {
4129
4132
  var t, n, r;
4130
- p(Ac, this, e.querySelector("vindral-controller")), (t = h(Ac, this)) == null || t.connectListener(this), p(jc, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#scroll-area")), (r = h(jc, this)) == null || r.addEventListener("click", h(Fc, this));
4133
+ p(Nc, this, e.querySelector("vindral-controller")), (t = h(Nc, this)) == null || t.connectListener(this), p(Pc, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#scroll-area")), (r = h(Pc, this)) == null || r.addEventListener("click", h(Rc, this));
4131
4134
  let s = this.hasAttribute("touch-enabled");
4132
- if (p(Pc, this, d() && s), !h(Pc, this)) this.setAttribute("snap", "");
4135
+ if (p(Lc, this, d() && s), !h(Lc, this)) this.setAttribute("snap", "");
4133
4136
  else {
4134
4137
  var i, a, o;
4135
- (i = h(Ac, this)) == null || i.addEventListener("touchstart", this, { passive: !0 }), (a = h(Ac, this)) == null || a.addEventListener("touchmove", this, { passive: !1 }), (o = h(Ac, this)) == null || o.addEventListener("touchend", this, { passive: !0 });
4138
+ (i = h(Nc, this)) == null || i.addEventListener("touchstart", this, { passive: !0 }), (a = h(Nc, this)) == null || a.addEventListener("touchmove", this, { passive: !1 }), (o = h(Nc, this)) == null || o.addEventListener("touchend", this, { passive: !0 });
4136
4139
  }
4137
- this.addEventListener("scroll", h(Lc, this));
4140
+ this.addEventListener("scroll", h(Bc, this));
4138
4141
  }
4139
4142
  }
4140
4143
  disconnectedCallback() {
4141
4144
  var e, t, n, r, i;
4142
- (e = h(jc, this)) == null || e.removeEventListener("click", h(Fc, this)), this.removeEventListener("scroll", h(Lc, this)), (t = h(Ac, this)) == null || t.removeEventListener("touchstart", this), (n = h(Ac, this)) == null || n.removeEventListener("touchmove", this), (r = h(Ac, this)) == null || r.removeEventListener("touchend", this), (i = h(Ac, this)) == null || i.disconnectListener(this);
4145
+ (e = h(Pc, this)) == null || e.removeEventListener("click", h(Rc, this)), this.removeEventListener("scroll", h(Bc, this)), (t = h(Nc, this)) == null || t.removeEventListener("touchstart", this), (n = h(Nc, this)) == null || n.removeEventListener("touchmove", this), (r = h(Nc, this)) == null || r.removeEventListener("touchend", this), (i = h(Nc, this)) == null || i.disconnectListener(this);
4143
4146
  }
4144
4147
  attributeChangedCallback(e, t, n) {
4145
- if (t !== n && (e === g.USER_INTERACTING && n === null && m(Z, this, Wc).call(this) && setTimeout(() => {
4148
+ if (t !== n && (e === g.USER_INTERACTING && n === null && m(Z, this, qc).call(this) && setTimeout(() => {
4146
4149
  this.open = !1;
4147
4150
  }, 300), e === "open")) if (n !== null) {
4148
4151
  var r;
4149
- p(Mc, this, !1), this.scrollTop > 0 && m(Z, this, Zc).call(this), this.scrollTo({
4150
- top: (r = h(jc, this)) == null ? void 0 : r.clientHeight,
4152
+ p(Fc, this, !1), this.scrollTop > 0 && m(Z, this, el).call(this), this.scrollTo({
4153
+ top: (r = h(Pc, this)) == null ? void 0 : r.clientHeight,
4151
4154
  behavior: "smooth"
4152
4155
  });
4153
- } else m(Z, this, Yc).call(this);
4156
+ } else m(Z, this, Qc).call(this);
4154
4157
  }
4155
4158
  set open(e) {
4156
4159
  if (e) {
4157
4160
  this.setAttribute("open", "");
4158
4161
  return;
4159
4162
  }
4160
- let t = this.hasAttribute("open"), n = this.visible || m(Z, this, Wc).call(this);
4161
- t ? this.removeAttribute("open") : n ? m(Z, this, Yc).call(this) : (p(Mc, this, !1), this.removeAttribute("snap-touch"));
4163
+ let t = this.hasAttribute("open"), n = this.visible || m(Z, this, qc).call(this);
4164
+ t ? this.removeAttribute("open") : n ? m(Z, this, Qc).call(this) : (p(Fc, this, !1), this.removeAttribute("snap-touch"));
4162
4165
  }
4163
4166
  get open() {
4164
4167
  return this.hasAttribute("open");
@@ -4170,78 +4173,78 @@ var Ac = /* @__PURE__ */ new WeakMap(), jc = /* @__PURE__ */ new WeakMap(), Mc =
4170
4173
  return this.hasAttribute("visible");
4171
4174
  }
4172
4175
  };
4173
- function zc() {
4174
- return m(Z, this, Uc).call(this) || m(Z, this, qc).call(this) || m(Z, this, Wc).call(this);
4176
+ function Hc() {
4177
+ return m(Z, this, Kc).call(this) || m(Z, this, Xc).call(this) || m(Z, this, qc).call(this);
4175
4178
  }
4176
- function Bc(e) {
4179
+ function Uc(e) {
4177
4180
  let t = e.touches[0];
4178
- t && (p(Nc, this, m(Z, this, zc).call(this)), h(Nc, this) && (p(Mc, this, !1), p(Ic, this, t.clientY)));
4181
+ t && (p(Ic, this, m(Z, this, Hc).call(this)), h(Ic, this) && (p(Fc, this, !1), p(zc, this, t.clientY)));
4179
4182
  }
4180
- function Vc(e) {
4181
- if (!(!h(Nc, this) || h(Ic, this) === null || this.hasAttribute("snap-touch") && this.open) && (e.preventDefault(), e.touches[0])) {
4182
- let t = e.touches[0].clientY, n = h(Ic, this) - t;
4183
+ function Wc(e) {
4184
+ if (!(!h(Ic, this) || h(zc, this) === null || this.hasAttribute("snap-touch") && this.open) && (e.preventDefault(), e.touches[0])) {
4185
+ let t = e.touches[0].clientY, n = h(zc, this) - t;
4183
4186
  this.scrollTop = Math.max(0, n);
4184
4187
  }
4185
4188
  }
4186
- function Hc(e) {
4187
- h(Nc, this) && !h(Mc, this) && m(Z, this, Wc).call(this) && (!this.hasAttribute("snap-touch") || !this.open) && (this.open = !0), p(Ic, this, null), p(Nc, this, !1);
4189
+ function Gc(e) {
4190
+ h(Ic, this) && !h(Fc, this) && m(Z, this, qc).call(this) && (!this.hasAttribute("snap-touch") || !this.open) && (this.open = !0), p(zc, this, null), p(Ic, this, !1);
4188
4191
  }
4189
- function Uc() {
4192
+ function Kc() {
4190
4193
  return this.hasAttribute(g.USER_INTERACTING);
4191
4194
  }
4192
- function Wc() {
4195
+ function qc() {
4193
4196
  return this.scrollTop > 0;
4194
4197
  }
4195
- function Gc() {
4198
+ function Jc() {
4196
4199
  var e;
4197
- return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((e = h(jc, this)) == null ? void 0 : e.clientHeight);
4200
+ return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((e = h(Pc, this)) == null ? void 0 : e.clientHeight);
4198
4201
  }
4199
- function Kc() {
4202
+ function Yc() {
4200
4203
  var e;
4201
- let t = (e = h(jc, this)) == null ? void 0 : e.clientHeight;
4204
+ let t = (e = h(Pc, this)) == null ? void 0 : e.clientHeight;
4202
4205
  return !t || this.clientHeight <= 0 ? 0 : Math.max(this.clientHeight - t, 0);
4203
4206
  }
4204
- function qc() {
4207
+ function Xc() {
4205
4208
  let e = getComputedStyle(this), t = Number.parseFloat(e.getPropertyValue("--vindral-scroll-overlay-offset"));
4206
- return Number.isNaN(t) ? m(Z, this, Kc).call(this) > 0 : t > 0;
4209
+ return Number.isNaN(t) ? m(Z, this, Yc).call(this) > 0 : t > 0;
4207
4210
  }
4208
- function Jc() {
4211
+ function Zc() {
4209
4212
  let e = this.style.scrollBehavior;
4210
4213
  this.style.scrollBehavior = "auto", this.scrollTo({
4211
4214
  top: 0,
4212
4215
  behavior: "auto"
4213
4216
  }), this.style.scrollBehavior = e;
4214
4217
  }
4215
- function Yc() {
4216
- p(Mc, this, !0), this.removeAttribute("snap-touch"), m(Z, this, Qc).call(this), this.scrollTo({
4218
+ function Qc() {
4219
+ p(Fc, this, !0), this.removeAttribute("snap-touch"), m(Z, this, tl).call(this), this.scrollTo({
4217
4220
  top: 0,
4218
4221
  behavior: "smooth"
4219
4222
  });
4220
4223
  }
4221
- function Xc(e = !1) {
4222
- this.open = !1, e && this.removeAttribute("snap-touch"), p(Mc, this, !1), m(Z, this, Qc).call(this);
4224
+ function $c(e = !1) {
4225
+ this.open = !1, e && this.removeAttribute("snap-touch"), p(Fc, this, !1), m(Z, this, tl).call(this);
4223
4226
  }
4224
- function Zc() {
4227
+ function el() {
4225
4228
  this.visible || (this.visible = !0, this.dispatchEvent(new CustomEvent(x.LOCK_UI, {
4226
4229
  bubbles: !0,
4227
4230
  composed: !0
4228
4231
  })));
4229
4232
  }
4230
- function Qc() {
4233
+ function tl() {
4231
4234
  this.visible && (this.visible = !1, this.dispatchEvent(new CustomEvent(x.UNLOCK_UI, {
4232
4235
  bubbles: !0,
4233
4236
  composed: !0
4234
4237
  })));
4235
4238
  }
4236
- e(Rc, "observedAttributes", [
4239
+ e(Vc, "observedAttributes", [
4237
4240
  g.USER_INTERACTING,
4238
4241
  "open",
4239
4242
  "touch-enabled"
4240
4243
  ]);
4241
4244
  //#endregion
4242
4245
  //#region ../../libs/player-next/src/components/SeekBar.ts
4243
- var $c = 1e3, el = 8, tl = document.createElement("template");
4244
- tl.innerHTML = `
4246
+ var nl = 1e3, rl = 8, il = document.createElement("template");
4247
+ il.innerHTML = `
4245
4248
  <style>
4246
4249
  :host {
4247
4250
  --buffered: 0;
@@ -4316,53 +4319,53 @@ tl.innerHTML = `
4316
4319
  <div id="markers"></div>
4317
4320
  <div id="time-tooltip"></div>
4318
4321
  `;
4319
- var Q = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), rl = /* @__PURE__ */ new WeakMap(), il = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), ol = /* @__PURE__ */ new WeakMap(), sl = /* @__PURE__ */ new WeakMap(), cl = /* @__PURE__ */ new WeakMap(), ll = /* @__PURE__ */ new WeakMap(), ul = /* @__PURE__ */ new WeakMap(), dl = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), fl = /* @__PURE__ */ new WeakMap(), pl = /* @__PURE__ */ new WeakMap(), ml = /* @__PURE__ */ new WeakMap(), hl = /* @__PURE__ */ new WeakMap(), gl = /* @__PURE__ */ new WeakMap(), _l = /* @__PURE__ */ new WeakMap(), vl = class extends bi {
4322
+ var Q = /* @__PURE__ */ new WeakMap(), al = /* @__PURE__ */ new WeakMap(), ol = /* @__PURE__ */ new WeakMap(), sl = /* @__PURE__ */ new WeakMap(), cl = /* @__PURE__ */ new WeakMap(), ll = /* @__PURE__ */ new WeakMap(), ul = /* @__PURE__ */ new WeakMap(), dl = /* @__PURE__ */ new WeakMap(), fl = /* @__PURE__ */ new WeakMap(), pl = /* @__PURE__ */ new WeakMap(), ml = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), hl = /* @__PURE__ */ new WeakMap(), gl = /* @__PURE__ */ new WeakMap(), _l = /* @__PURE__ */ new WeakMap(), vl = /* @__PURE__ */ new WeakMap(), yl = /* @__PURE__ */ new WeakMap(), bl = /* @__PURE__ */ new WeakMap(), xl = class extends Ci {
4320
4323
  constructor() {
4321
4324
  var e, t, n, r;
4322
- super(), S(this, $), f(this, Q, void 0), f(this, nl, void 0), f(this, rl, void 0), f(this, il, void 0), f(this, al, []), f(this, ol, null), f(this, sl, !1), f(this, cl, null), f(this, ll, null), f(this, ul, !1), f(this, dl, !1), f(this, fl, (e) => {
4323
- if (!m($, this, xl).call(this) || m($, this, Sl).call(this)) {
4325
+ super(), S(this, $), f(this, Q, void 0), f(this, al, void 0), f(this, ol, void 0), f(this, sl, void 0), f(this, cl, []), f(this, ll, null), f(this, ul, !1), f(this, dl, null), f(this, fl, null), f(this, pl, !1), f(this, ml, !1), f(this, hl, (e) => {
4326
+ if (!m($, this, wl).call(this) || m($, this, Tl).call(this)) {
4324
4327
  e.preventDefault();
4325
4328
  return;
4326
4329
  }
4327
- p(sl, this, !0), p(ll, this, e.pointerId);
4330
+ p(ul, this, !0), p(fl, this, e.pointerId);
4328
4331
  try {
4329
4332
  this.setPointerCapture(e.pointerId);
4330
4333
  } catch (e) {}
4331
- m($, this, Al).call(this, e);
4332
- }), f(this, pl, (e) => {
4333
- if (!(!m($, this, xl).call(this) || m($, this, Sl).call(this))) {
4334
- if (h(cl, this) && (cancelAnimationFrame(h(cl, this)), p(cl, this, null)), h(sl, this) && e.pointerId === h(ll, this)) {
4335
- e.preventDefault(), m($, this, Al).call(this, e);
4334
+ m($, this, Nl).call(this, e);
4335
+ }), f(this, gl, (e) => {
4336
+ if (!(!m($, this, wl).call(this) || m($, this, Tl).call(this))) {
4337
+ if (h(dl, this) && (cancelAnimationFrame(h(dl, this)), p(dl, this, null)), h(ul, this) && e.pointerId === h(fl, this)) {
4338
+ e.preventDefault(), m($, this, Nl).call(this, e);
4336
4339
  return;
4337
4340
  }
4338
- p(cl, this, requestAnimationFrame(() => {
4341
+ p(dl, this, requestAnimationFrame(() => {
4339
4342
  var t;
4340
- if (e.pointerType !== "mouse" || h(sl, this) || !this.duration) {
4341
- h(rl, this).style.opacity = "0", p(cl, this, null);
4343
+ if (e.pointerType !== "mouse" || h(ul, this) || !this.duration) {
4344
+ h(ol, this).style.opacity = "0", p(dl, this, null);
4342
4345
  return;
4343
4346
  }
4344
- let n = m($, this, kl).call(this, e.clientX), r = m($, this, Dl).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
4345
- if (m($, this, Ml).call(this, i, r), i > this.range.valueAsNumber) {
4347
+ let n = m($, this, Ml).call(this, e.clientX), r = m($, this, Al).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
4348
+ if (m($, this, Fl).call(this, i, r), i > this.range.valueAsNumber) {
4346
4349
  let e = this.range.valueAsNumber * 100, t = (i - this.range.valueAsNumber) * 100;
4347
- h(rl, this).style.transform = `translateX(${e}%) scaleX(${t / 100})`, h(rl, this).style.opacity = "1";
4348
- } else h(rl, this).style.opacity = "0";
4349
- p(cl, this, null);
4350
+ h(ol, this).style.transform = `translateX(${e}%) scaleX(${t / 100})`, h(ol, this).style.opacity = "1";
4351
+ } else h(ol, this).style.opacity = "0";
4352
+ p(dl, this, null);
4350
4353
  }));
4351
4354
  }
4352
- }), f(this, ml, (e) => {
4353
- if (e.pointerId === h(ll, this)) {
4355
+ }), f(this, _l, (e) => {
4356
+ if (e.pointerId === h(fl, this)) {
4354
4357
  try {
4355
4358
  this.releasePointerCapture(e.pointerId);
4356
4359
  } catch (e) {}
4357
- p(sl, this, !1), p(ll, this, null), e.pointerType !== "mouse" && (h(nl, this).style.opacity = "0"), h(dl, this) && m($, this, Fl).call(this) && (p(ul, this, !1), p(dl, this, !1));
4360
+ p(ul, this, !1), p(fl, this, null), e.pointerType !== "mouse" && (h(al, this).style.opacity = "0"), h(ml, this) && m($, this, Rl).call(this) && (p(pl, this, !1), p(ml, this, !1));
4358
4361
  }
4359
- }), f(this, hl, () => {
4360
- this.duration && !m($, this, Sl).call(this) && (h(nl, this).style.opacity = "1");
4361
- }), f(this, gl, () => {
4362
- h(nl, this).style.opacity = "0", h(rl, this).style.opacity = "0";
4363
- }), f(this, _l, (e) => {
4364
- if (m($, this, Sl).call(this) || !h(Q, this) || h(Q, this) <= 0 || !Number.isFinite(h(Q, this))) return;
4365
- let t = m($, this, yl).call(this);
4362
+ }), f(this, vl, () => {
4363
+ this.duration && !m($, this, Tl).call(this) && (h(al, this).style.opacity = "1");
4364
+ }), f(this, yl, () => {
4365
+ h(al, this).style.opacity = "0", h(ol, this).style.opacity = "0";
4366
+ }), f(this, bl, (e) => {
4367
+ if (m($, this, Tl).call(this) || !h(Q, this) || h(Q, this) <= 0 || !Number.isFinite(h(Q, this))) return;
4368
+ let t = m($, this, Sl).call(this);
4366
4369
  if (t <= 0) return;
4367
4370
  let n = this.range.valueAsNumber * t, r = n;
4368
4371
  switch (e.preventDefault(), e.key) {
@@ -4370,46 +4373,46 @@ var Q = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), rl =
4370
4373
  r = Math.max(0, n - 5);
4371
4374
  break;
4372
4375
  case "ArrowRight":
4373
- if (m($, this, Fl).call(this)) return;
4376
+ if (m($, this, Rl).call(this)) return;
4374
4377
  r = Math.min(t, n + 5);
4375
4378
  break;
4376
4379
  case "Home":
4377
4380
  r = 0;
4378
4381
  break;
4379
4382
  case "End":
4380
- if (m($, this, Fl).call(this)) return;
4383
+ if (m($, this, Rl).call(this)) return;
4381
4384
  r = t;
4382
4385
  break;
4383
4386
  default: return;
4384
4387
  }
4385
4388
  let i = Math.min(r / t, 1);
4386
- m($, this, jl).call(this, i);
4387
- }), (e = this.shadowRoot) == null || e.appendChild(tl.content.cloneNode(!0)), p(nl, this, (t = this.shadowRoot) == null ? void 0 : t.getElementById("time-tooltip")), p(rl, this, (n = this.shadowRoot) == null ? void 0 : n.getElementById("hover-preview")), p(il, this, (r = this.shadowRoot) == null ? void 0 : r.getElementById("markers")), this.addEventListener("pointerdown", h(fl, this)), this.addEventListener("pointermove", h(pl, this)), this.addEventListener("pointerup", h(ml, this)), this.addEventListener("pointercancel", h(ml, this)), this.addEventListener("mouseenter", h(hl, this)), this.addEventListener("mouseleave", h(gl, this));
4389
+ m($, this, Pl).call(this, i);
4390
+ }), (e = this.shadowRoot) == null || e.appendChild(il.content.cloneNode(!0)), p(al, this, (t = this.shadowRoot) == null ? void 0 : t.getElementById("time-tooltip")), p(ol, this, (n = this.shadowRoot) == null ? void 0 : n.getElementById("hover-preview")), p(sl, this, (r = this.shadowRoot) == null ? void 0 : r.getElementById("markers")), this.addEventListener("pointerdown", h(hl, this)), this.addEventListener("pointermove", h(gl, this)), this.addEventListener("pointerup", h(_l, this)), this.addEventListener("pointercancel", h(_l, this)), this.addEventListener("mouseenter", h(vl, this)), this.addEventListener("mouseleave", h(yl, this));
4388
4391
  }
4389
4392
  connectedCallback() {
4390
- super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), m($, this, Ol).call(this), this.addEventListener("keydown", h(_l, this)), m($, this, Fl).call(this) && (this.range.value = "1", m($, this, Ol).call(this)), m($, this, Cl).call(this), m($, this, Tl).call(this);
4393
+ super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), m($, this, jl).call(this), this.addEventListener("keydown", h(bl, this)), m($, this, Rl).call(this) && (this.range.value = "1", m($, this, jl).call(this)), m($, this, El).call(this), m($, this, Ol).call(this);
4391
4394
  }
4392
4395
  disconnectedCallback() {
4393
- super.disconnectedCallback(), m($, this, El).call(this), this.removeEventListener("pointerdown", h(fl, this)), this.removeEventListener("pointermove", h(pl, this)), this.removeEventListener("pointerup", h(ml, this)), this.removeEventListener("pointercancel", h(ml, this)), this.removeEventListener("mouseenter", h(hl, this)), this.removeEventListener("mouseleave", h(gl, this)), this.removeEventListener("keydown", h(_l, this)), p(ll, this, null);
4396
+ super.disconnectedCallback(), m($, this, kl).call(this), this.removeEventListener("pointerdown", h(hl, this)), this.removeEventListener("pointermove", h(gl, this)), this.removeEventListener("pointerup", h(_l, this)), this.removeEventListener("pointercancel", h(_l, this)), this.removeEventListener("mouseenter", h(vl, this)), this.removeEventListener("mouseleave", h(yl, this)), this.removeEventListener("keydown", h(bl, this)), p(fl, this, null);
4394
4397
  }
4395
4398
  attributeChangedCallback(e, t, n) {
4396
4399
  if (super.attributeChangedCallback(e, t, n), t !== n) switch (e) {
4397
4400
  case g.TIMESHIFT_POSITION:
4398
- if (m($, this, Fl).call(this)) {
4399
- h(sl, this) ? p(dl, this, !0) : (p(ul, this, !1), p(dl, this, !1)), this.range.value = "1", m($, this, Ol).call(this);
4401
+ if (m($, this, Rl).call(this)) {
4402
+ h(ul, this) ? p(ml, this, !0) : (p(pl, this, !1), p(ml, this, !1)), this.range.value = "1", m($, this, jl).call(this);
4400
4403
  return;
4401
4404
  }
4402
4405
  if (h(Q, this)) {
4403
- p(dl, this, !1);
4406
+ p(ml, this, !1);
4404
4407
  let e = Math.max(parseFloat(n) / h(Q, this), 0);
4405
- this.range.value = e.toString(), m($, this, Ol).call(this);
4408
+ this.range.value = e.toString(), m($, this, jl).call(this);
4406
4409
  }
4407
4410
  break;
4408
4411
  case g.DURATION:
4409
- p(Q, this, parseFloat(n) || 0), m($, this, Ol).call(this), m($, this, Cl).call(this), m($, this, Tl).call(this);
4412
+ p(Q, this, parseFloat(n) || 0), m($, this, jl).call(this), m($, this, El).call(this), m($, this, Ol).call(this);
4410
4413
  break;
4411
4414
  case g.TIMELINE_MARKERS:
4412
- p(al, this, Lr(n)), m($, this, Cl).call(this), m($, this, Tl).call(this);
4415
+ p(cl, this, Br(n)), m($, this, El).call(this), m($, this, Ol).call(this);
4413
4416
  break;
4414
4417
  }
4415
4418
  }
@@ -4427,54 +4430,54 @@ var Q = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), rl =
4427
4430
  this.setAttribute(g.DURATION, e.toString());
4428
4431
  }
4429
4432
  };
4430
- function yl() {
4433
+ function Sl() {
4431
4434
  return h(Q, this) ? h(Q, this) : 1;
4432
4435
  }
4433
- function bl() {
4436
+ function Cl() {
4434
4437
  let e = h(Q, this);
4435
4438
  return e !== void 0 && e > 0 && Number.isFinite(e) ? e : void 0;
4436
4439
  }
4437
- function xl() {
4438
- return m($, this, bl).call(this) !== void 0;
4440
+ function wl() {
4441
+ return m($, this, Cl).call(this) !== void 0;
4439
4442
  }
4440
- function Sl() {
4441
- return h(ul, this);
4443
+ function Tl() {
4444
+ return h(pl, this);
4442
4445
  }
4443
- function Cl() {
4446
+ function El() {
4444
4447
  var e;
4445
- let t = Date.now(), n = (e = h(Q, this)) == null ? 0 : e, r = h(il, this).children, i = 0;
4446
- for (let e of h(al, this)) {
4447
- let a = Rr(e.time, t, n);
4448
+ let t = Date.now(), n = (e = h(Q, this)) == null ? 0 : e, r = h(sl, this).children, i = 0;
4449
+ for (let e of h(cl, this)) {
4450
+ let a = Vr(e.time, t, n);
4448
4451
  if (a === null) continue;
4449
4452
  let o = r[i];
4450
- o || (o = document.createElement("div"), o.className = "marker", h(il, this).appendChild(o)), o.style.left = `${a * 100}%`, o.dataset.label = e.label, e.type ? o.dataset.type = e.type : delete o.dataset.type, i++;
4453
+ o || (o = document.createElement("div"), o.className = "marker", h(sl, this).appendChild(o)), o.style.left = `${a * 100}%`, o.dataset.label = e.label, e.type ? o.dataset.type = e.type : delete o.dataset.type, i++;
4451
4454
  }
4452
- for (; h(il, this).children.length > i;) {
4455
+ for (; h(sl, this).children.length > i;) {
4453
4456
  var a;
4454
- (a = h(il, this).lastElementChild) == null || a.remove();
4457
+ (a = h(sl, this).lastElementChild) == null || a.remove();
4455
4458
  }
4456
4459
  }
4457
- function wl() {
4458
- let e = m($, this, bl).call(this);
4460
+ function Dl() {
4461
+ let e = m($, this, Cl).call(this);
4459
4462
  if (e === void 0) return !1;
4460
4463
  let t = Date.now() - e * 1e3;
4461
- return h(al, this).some((e) => e.time >= t);
4464
+ return h(cl, this).some((e) => e.time >= t);
4462
4465
  }
4463
- function Tl() {
4464
- this.isConnected && m($, this, wl).call(this) ? h(ol, this) === null && p(ol, this, window.setInterval(() => {
4465
- m($, this, Cl).call(this), m($, this, Tl).call(this);
4466
- }, $c)) : m($, this, El).call(this);
4466
+ function Ol() {
4467
+ this.isConnected && m($, this, Dl).call(this) ? h(ll, this) === null && p(ll, this, window.setInterval(() => {
4468
+ m($, this, El).call(this), m($, this, Ol).call(this);
4469
+ }, nl)) : m($, this, kl).call(this);
4467
4470
  }
4468
- function El() {
4469
- h(ol, this) !== null && (window.clearInterval(h(ol, this)), p(ol, this, null));
4471
+ function kl() {
4472
+ h(ll, this) !== null && (window.clearInterval(h(ll, this)), p(ll, this, null));
4470
4473
  }
4471
- function Dl(e) {
4472
- if (h(al, this).length === 0 || !h(Q, this)) return null;
4474
+ function Al(e) {
4475
+ if (h(cl, this).length === 0 || !h(Q, this)) return null;
4473
4476
  let t = this.getBoundingClientRect().width;
4474
4477
  if (!t) return null;
4475
- let n = el / t, r = Date.now(), i = null;
4476
- for (let t of h(al, this)) {
4477
- let a = Rr(t.time, r, h(Q, this));
4478
+ let n = rl / t, r = Date.now(), i = null;
4479
+ for (let t of h(cl, this)) {
4480
+ let a = Vr(t.time, r, h(Q, this));
4478
4481
  if (a === null) continue;
4479
4482
  let o = Math.abs(a - e);
4480
4483
  o > n || (!i || o < Math.abs(i.position - e)) && (i = {
@@ -4484,59 +4487,59 @@ function Dl(e) {
4484
4487
  }
4485
4488
  return i;
4486
4489
  }
4487
- function Ol() {
4488
- let e = m($, this, yl).call(this);
4489
- !h(Q, this) || h(Q, this) <= 0 || !Number.isFinite(h(Q, this)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), h(sl, this) || (this.updateBar(), this.setAttribute("aria-valuetext", `${m($, this, Il).call(this, this.range.valueAsNumber * e)} of ${m($, this, Il).call(this, e)}`), !h(sl, this) && !m($, this, Sl).call(this) && m($, this, Pl).call(this, this.range.valueAsNumber));
4490
+ function jl() {
4491
+ let e = m($, this, Sl).call(this);
4492
+ !h(Q, this) || h(Q, this) <= 0 || !Number.isFinite(h(Q, this)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), h(ul, this) || (this.updateBar(), this.setAttribute("aria-valuetext", `${m($, this, zl).call(this, this.range.valueAsNumber * e)} of ${m($, this, zl).call(this, e)}`), !h(ul, this) && !m($, this, Tl).call(this) && m($, this, Ll).call(this, this.range.valueAsNumber));
4490
4493
  }
4491
- function kl(e) {
4494
+ function Ml(e) {
4492
4495
  let t = this.getBoundingClientRect(), n = (e - t.left) / t.width;
4493
4496
  return Math.max(0, Math.min(1, n));
4494
4497
  }
4495
- function Al(e) {
4498
+ function Nl(e) {
4496
4499
  var t;
4497
- let n = m($, this, kl).call(this, e.clientX), r = m($, this, Dl).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
4498
- m($, this, Ml).call(this, i, r), h(sl, this) || (h(nl, this).style.opacity = "1"), m($, this, jl).call(this, i);
4500
+ let n = m($, this, Ml).call(this, e.clientX), r = m($, this, Al).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
4501
+ m($, this, Fl).call(this, i, r), h(ul, this) || (h(al, this).style.opacity = "1"), m($, this, Pl).call(this, i);
4499
4502
  }
4500
- function jl(e) {
4501
- if (m($, this, Sl).call(this) || m($, this, Pl).call(this, e)) return;
4502
- let t = e * m($, this, yl).call(this);
4503
- this.range.value = e.toString(), this.updateBar(), m($, this, Nl).call(this, t);
4503
+ function Pl(e) {
4504
+ if (m($, this, Tl).call(this) || m($, this, Ll).call(this, e)) return;
4505
+ let t = e * m($, this, Sl).call(this);
4506
+ this.range.value = e.toString(), this.updateBar(), m($, this, Il).call(this, t);
4504
4507
  }
4505
- function Ml(e, t) {
4508
+ function Fl(e, t) {
4506
4509
  if (!h(Q, this) || !Number.isFinite(h(Q, this))) return;
4507
- let n = e * h(Q, this), r = h(Q, this) - n, i = `-${m($, this, Il).call(this, r)}`;
4508
- h(nl, this).textContent = t ? `${t.marker.label}: ${i}` : i, h(nl, this).style.left = `${Math.min(Math.max(e * 100, 2), 98)}%`;
4510
+ let n = e * h(Q, this), r = h(Q, this) - n, i = `-${m($, this, zl).call(this, r)}`;
4511
+ h(al, this).textContent = t ? `${t.marker.label}: ${i}` : i, h(al, this).style.left = `${Math.min(Math.max(e * 100, 2), 98)}%`;
4509
4512
  }
4510
- function Nl(e) {
4513
+ function Il(e) {
4511
4514
  this.dispatchEvent(new CustomEvent("seek", {
4512
4515
  bubbles: !0,
4513
4516
  composed: !0,
4514
4517
  detail: e
4515
4518
  }));
4516
4519
  }
4517
- function Pl(e) {
4518
- return h(ul, this) || m($, this, Fl).call(this) || e < .999 ? !1 : (p(ul, this, !0), p(dl, this, !1), this.dispatchEvent(new CustomEvent(x.GO_LIVE, {
4520
+ function Ll(e) {
4521
+ return h(pl, this) || m($, this, Rl).call(this) || e < .999 ? !1 : (p(pl, this, !0), p(ml, this, !1), this.dispatchEvent(new CustomEvent(x.GO_LIVE, {
4519
4522
  bubbles: !0,
4520
4523
  composed: !0
4521
4524
  })), !0);
4522
4525
  }
4523
- function Fl() {
4526
+ function Rl() {
4524
4527
  return !this.hasAttribute(g.TIMESHIFT_POSITION);
4525
4528
  }
4526
- function Il(e) {
4529
+ function zl(e) {
4527
4530
  let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
4528
4531
  return h(Q, this) && h(Q, this) >= 3600 ? `${t}:${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}` : `${n}:${r.toString().padStart(2, "0")}`;
4529
4532
  }
4530
- e(vl, "observedAttributes", [
4531
- ...bi.observedAttributes,
4533
+ e(xl, "observedAttributes", [
4534
+ ...Ci.observedAttributes,
4532
4535
  g.TIMESHIFT_POSITION,
4533
4536
  g.DURATION,
4534
4537
  g.TIMELINE_MARKERS
4535
4538
  ]);
4536
4539
  //#endregion
4537
4540
  //#region ../../libs/player-next/src/components/UserInputPlayOverlay.ts
4538
- var Ll = document.createElement("template");
4539
- Ll.innerHTML = `
4541
+ var Bl = document.createElement("template");
4542
+ Bl.innerHTML = `
4540
4543
  <style>
4541
4544
  :host {
4542
4545
  display: var(--play-overlay-display);
@@ -4596,51 +4599,51 @@ Ll.innerHTML = `
4596
4599
  </slot>
4597
4600
  </slot>
4598
4601
  `;
4599
- var Rl = /* @__PURE__ */ new WeakMap(), zl = /* @__PURE__ */ new WeakMap(), Bl = /* @__PURE__ */ new WeakMap(), Vl = /* @__PURE__ */ new WeakMap(), Hl = class extends HTMLElement {
4602
+ var Vl = /* @__PURE__ */ new WeakMap(), Hl = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl = /* @__PURE__ */ new WeakMap(), Gl = class extends HTMLElement {
4600
4603
  constructor() {
4601
- super(), f(this, Rl, null), f(this, zl, () => {
4604
+ super(), f(this, Vl, null), f(this, Hl, () => {
4602
4605
  this.dispatchEvent(new CustomEvent(x.REQUEST_USER_INPUT, {
4603
4606
  bubbles: !0,
4604
4607
  composed: !0
4605
4608
  }));
4606
- }), f(this, Bl, (e) => {
4609
+ }), f(this, Ul, (e) => {
4607
4610
  let { key: t } = e;
4608
4611
  if (!this.keysUsed.includes(t)) {
4609
- this.removeEventListener("keyup", h(Bl, this));
4612
+ this.removeEventListener("keyup", h(Ul, this));
4610
4613
  return;
4611
4614
  }
4612
4615
  this.dispatchEvent(new CustomEvent(x.REQUEST_USER_INPUT, {
4613
4616
  bubbles: !0,
4614
4617
  composed: !0
4615
4618
  }));
4616
- }), f(this, Vl, (e) => {
4619
+ }), f(this, Wl, (e) => {
4617
4620
  let { metaKey: t, altKey: n, key: r } = e;
4618
4621
  if (t || n || !this.keysUsed.includes(r)) {
4619
- this.removeEventListener("keyup", h(Bl, this));
4622
+ this.removeEventListener("keyup", h(Ul, this));
4620
4623
  return;
4621
4624
  }
4622
- this.addEventListener("keyup", h(Bl, this), { once: !0 });
4623
- }), this.attachShadow({ mode: "open" }).appendChild(Ll.content.cloneNode(!0));
4625
+ this.addEventListener("keyup", h(Ul, this), { once: !0 });
4626
+ }), this.attachShadow({ mode: "open" }).appendChild(Bl.content.cloneNode(!0));
4624
4627
  }
4625
4628
  get keysUsed() {
4626
4629
  return ["Enter", " "];
4627
4630
  }
4628
4631
  connectedCallback() {
4629
4632
  var e;
4630
- p(Rl, this, this.closest("vindral-controller")), (e = h(Rl, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.enable();
4633
+ p(Vl, this, this.closest("vindral-controller")), (e = h(Vl, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.enable();
4631
4634
  }
4632
4635
  enable() {
4633
- this.addEventListener("click", h(zl, this)), this.addEventListener("keydown", h(Vl, this)), this.tabIndex = 0;
4636
+ this.addEventListener("click", h(Hl, this)), this.addEventListener("keydown", h(Wl, this)), this.tabIndex = 0;
4634
4637
  }
4635
4638
  disable() {
4636
- this.removeEventListener("click", h(zl, this)), this.removeEventListener("keydown", h(Vl, this)), this.removeEventListener("keyup", h(Bl, this)), this.tabIndex = -1;
4639
+ this.removeEventListener("click", h(Hl, this)), this.removeEventListener("keydown", h(Wl, this)), this.removeEventListener("keyup", h(Ul, this)), this.tabIndex = -1;
4637
4640
  }
4638
4641
  disconnectedCallback() {
4639
4642
  var e;
4640
- (e = h(Rl, this)) == null || e.disconnectListener(this), this.disable();
4643
+ (e = h(Vl, this)) == null || e.disconnectListener(this), this.disable();
4641
4644
  }
4642
4645
  };
4643
- e(Hl, "observedAttributes", [
4646
+ e(Gl, "observedAttributes", [
4644
4647
  "hidden",
4645
4648
  g.NEEDS_USER_INPUT_VIDEO,
4646
4649
  g.NEEDS_USER_INPUT_AUDIO,
@@ -4648,68 +4651,68 @@ e(Hl, "observedAttributes", [
4648
4651
  ]);
4649
4652
  //#endregion
4650
4653
  //#region ../../libs/player-next/src/components/VindralCenterOverlay.ts
4651
- var Ul = document.createElement("template");
4652
- Ul.innerHTML = "\n <style>\n :host {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n pointer-events: none;\n z-index: 1;\n }\n\n :host::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: -1;\n background-color: rgba(0, 0, 0, 0.3);\n background-image: var(--_backdrop-image, none);\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n pointer-events: none;\n opacity: 0;\n transition: opacity 100ms;\n }\n\n :host([backdrop]:not([disable-backdrop]))::before {\n opacity: 1;\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host::before {\n transition: none;\n }\n }\n </style>\n\n <slot></slot>\n";
4653
- var Wl = class extends HTMLElement {
4654
+ var Kl = document.createElement("template");
4655
+ Kl.innerHTML = "\n <style>\n :host {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n pointer-events: none;\n z-index: 1;\n }\n\n :host::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: -1;\n background-color: rgba(0, 0, 0, 0.3);\n background-image: var(--_backdrop-image, none);\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n pointer-events: none;\n opacity: 0;\n transition: opacity 100ms;\n }\n\n :host([backdrop]:not([disable-backdrop]))::before {\n opacity: 1;\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host::before {\n transition: none;\n }\n }\n </style>\n\n <slot></slot>\n";
4656
+ var ql = class extends HTMLElement {
4654
4657
  constructor() {
4655
- super(), this.attachShadow({ mode: "open" }).appendChild(Ul.content.cloneNode(!0));
4658
+ super(), this.attachShadow({ mode: "open" }).appendChild(Kl.content.cloneNode(!0));
4656
4659
  }
4657
4660
  attributeChangedCallback(e, t, n) {
4658
4661
  t !== n && e === "poster" && this.style.setProperty("--_backdrop-image", n ? `url("${n}")` : "none");
4659
4662
  }
4660
4663
  };
4661
- e(Wl, "observedAttributes", [
4664
+ e(ql, "observedAttributes", [
4662
4665
  "backdrop",
4663
4666
  "poster",
4664
4667
  "disable-backdrop"
4665
4668
  ]);
4666
4669
  //#endregion
4667
4670
  //#region ../../libs/player-next/src/components/VindralMessage.ts
4668
- var Gl = document.createElement("template");
4669
- Gl.innerHTML = "\n <style>\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 90%;\n color: var(--fg-strong);\n font-size: 20px;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n #title,\n #description {\n text-align: center;\n text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);\n margin: 0;\n }\n\n #title {\n margin-bottom: var(--padding-2);\n }\n\n @container (max-width: 600px) {\n :host {\n font-size: 15px;\n }\n }\n\n @container (max-width: 400px) {\n :host {\n font-size: 12px;\n }\n #title {\n margin-bottom: 0;\n }\n }\n\n @container (max-width: 150px) {\n :host {\n font-size: 10px;\n }\n #title,\n #description {\n font-size: 1.2em;\n margin: 0;\n }\n }\n </style>\n\n <h1 id=\"title\"></h1>\n <p id=\"description\"></p>\n";
4670
- var Kl = /* @__PURE__ */ new WeakMap(), ql = /* @__PURE__ */ new WeakMap(), Jl = class extends HTMLElement {
4671
+ var Jl = document.createElement("template");
4672
+ Jl.innerHTML = "\n <style>\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 90%;\n color: var(--fg-strong);\n font-size: 20px;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n #title,\n #description {\n text-align: center;\n text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);\n margin: 0;\n }\n\n #title {\n margin-bottom: var(--padding-2);\n }\n\n @container (max-width: 600px) {\n :host {\n font-size: 15px;\n }\n }\n\n @container (max-width: 400px) {\n :host {\n font-size: 12px;\n }\n #title {\n margin-bottom: 0;\n }\n }\n\n @container (max-width: 150px) {\n :host {\n font-size: 10px;\n }\n #title,\n #description {\n font-size: 1.2em;\n margin: 0;\n }\n }\n </style>\n\n <h1 id=\"title\"></h1>\n <p id=\"description\"></p>\n";
4673
+ var Yl = /* @__PURE__ */ new WeakMap(), Xl = /* @__PURE__ */ new WeakMap(), Zl = class extends HTMLElement {
4671
4674
  constructor() {
4672
- super(), f(this, Kl, void 0), f(this, ql, void 0);
4675
+ super(), f(this, Yl, void 0), f(this, Xl, void 0);
4673
4676
  let e = this.attachShadow({ mode: "open" });
4674
- e.appendChild(Gl.content.cloneNode(!0)), p(Kl, this, e.querySelector("#title")), p(ql, this, e.querySelector("#description"));
4677
+ e.appendChild(Jl.content.cloneNode(!0)), p(Yl, this, e.querySelector("#title")), p(Xl, this, e.querySelector("#description"));
4675
4678
  }
4676
4679
  connectedCallback() {
4677
4680
  this.hasAttribute("role") || (this.setAttribute("role", "alert"), this.setAttribute("aria-atomic", "true"));
4678
4681
  }
4679
4682
  attributeChangedCallback(e, t, n) {
4680
- t !== n && (e === "title" ? h(Kl, this).textContent = n : e === "description" && (h(ql, this).textContent = n));
4683
+ t !== n && (e === "title" ? h(Yl, this).textContent = n : e === "description" && (h(Xl, this).textContent = n));
4681
4684
  }
4682
4685
  };
4683
- e(Jl, "observedAttributes", [
4686
+ e(Zl, "observedAttributes", [
4684
4687
  "title",
4685
4688
  "description",
4686
4689
  "hidden"
4687
4690
  ]);
4688
4691
  //#endregion
4689
4692
  //#region ../../libs/player-next/src/components/VindralPlayOverlay.ts
4690
- var Yl = document.createElement("template");
4691
- Yl.innerHTML = "\n <style>\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n :host(:focus-visible) {\n outline: none;\n outline: 0;\n }\n\n :host(:focus-visible) svg {\n outline: 0;\n }\n\n :host(:where(:focus)) svg {\n box-shadow: none;\n outline: 0;\n }\n\n :host(:active) svg {\n scale: 0.9;\n }\n\n slot#play {\n color: var(--fg-strong);\n pointer-events: auto;\n cursor: pointer;\n }\n\n slot#play > svg {\n width: var(--play-overlay-icon-size);\n height: var(--play-overlay-icon-size);\n }\n </style>\n\n <slot id=\"play\" name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" /></svg>\n</slot>\n";
4692
- var Xl = /* @__PURE__ */ new WeakMap(), Zl = class extends HTMLElement {
4693
+ var Ql = document.createElement("template");
4694
+ Ql.innerHTML = "\n <style>\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n :host(:focus-visible) {\n outline: none;\n outline: 0;\n }\n\n :host(:focus-visible) svg {\n outline: 0;\n }\n\n :host(:where(:focus)) svg {\n box-shadow: none;\n outline: 0;\n }\n\n :host(:active) svg {\n scale: 0.9;\n }\n\n slot#play {\n color: var(--fg-strong);\n pointer-events: auto;\n cursor: pointer;\n }\n\n slot#play > svg {\n width: var(--play-overlay-icon-size);\n height: var(--play-overlay-icon-size);\n }\n </style>\n\n <slot id=\"play\" name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" /></svg>\n</slot>\n";
4695
+ var $l = /* @__PURE__ */ new WeakMap(), eu = class extends HTMLElement {
4693
4696
  constructor() {
4694
- super(), f(this, Xl, null), this.attachShadow({ mode: "open" }).appendChild(Yl.content.cloneNode(!0));
4697
+ super(), f(this, $l, null), this.attachShadow({ mode: "open" }).appendChild(Ql.content.cloneNode(!0));
4695
4698
  }
4696
4699
  connectedCallback() {
4697
4700
  var e;
4698
- p(Xl, this, this.closest("vindral-controller")), (e = h(Xl, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.tabIndex = 0;
4701
+ p($l, this, this.closest("vindral-controller")), (e = h($l, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.tabIndex = 0;
4699
4702
  }
4700
4703
  disconnectedCallback() {
4701
4704
  var e;
4702
- (e = h(Xl, this)) == null || e.disconnectListener(this);
4705
+ (e = h($l, this)) == null || e.disconnectListener(this);
4703
4706
  }
4704
4707
  attributeChangedCallback(e, t, n) {
4705
4708
  t !== n && e === "hidden" && !_(n) && this.focus();
4706
4709
  }
4707
4710
  };
4708
- e(Zl, "observedAttributes", ["hidden"]);
4711
+ e(eu, "observedAttributes", ["hidden"]);
4709
4712
  //#endregion
4710
4713
  //#region ../../libs/player-next/src/components/VolumeRange.ts
4711
- var Ql, $l = "Volume", eu = document.createElement("template");
4712
- eu.innerHTML = `
4714
+ var tu, nu = "Volume", ru = document.createElement("template");
4715
+ ru.innerHTML = `
4713
4716
  <style>
4714
4717
  :host {
4715
4718
  display: var(--volume-range-display);
@@ -4734,29 +4737,29 @@ eu.innerHTML = `
4734
4737
  transition-delay: 0s;
4735
4738
  }
4736
4739
  </style>
4737
- <span class="tooltip" aria-hidden="true">${$l}</span>
4740
+ <span class="tooltip" aria-hidden="true">${nu}</span>
4738
4741
  `;
4739
- var tu = (e) => `${Math.round(e * 100)}%`, nu = /* @__PURE__ */ new WeakMap(), ru = /* @__PURE__ */ new WeakMap(), iu = /* @__PURE__ */ new WeakMap(), au = class extends bi {
4742
+ var iu = (e) => `${Math.round(e * 100)}%`, au = /* @__PURE__ */ new WeakMap(), ou = /* @__PURE__ */ new WeakMap(), su = /* @__PURE__ */ new WeakMap(), cu = class extends Ci {
4740
4743
  constructor() {
4741
4744
  var e, t;
4742
- super(), f(this, nu, void 0), f(this, ru, void 0), f(this, iu, () => {
4745
+ super(), f(this, au, void 0), f(this, ou, void 0), f(this, su, () => {
4743
4746
  let e = this.range.valueAsNumber;
4744
4747
  this.dispatchEvent(new CustomEvent(x.SET_VOLUME, {
4745
4748
  bubbles: !0,
4746
4749
  composed: !0,
4747
4750
  detail: e
4748
4751
  }));
4749
- }), (e = this.shadowRoot) == null || e.appendChild(eu.content.cloneNode(!0)), p(nu, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector(".tooltip"));
4752
+ }), (e = this.shadowRoot) == null || e.appendChild(ru.content.cloneNode(!0)), p(au, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector(".tooltip"));
4750
4753
  }
4751
4754
  connectedCallback() {
4752
- super.connectedCallback(), this.range.addEventListener("input", h(iu, this)), this.range.setAttribute("aria-label", $l), p(ru, this, De(this, h(nu, this)));
4755
+ super.connectedCallback(), this.range.addEventListener("input", h(su, this)), this.range.setAttribute("aria-label", nu), p(ou, this, De(this, h(au, this)));
4753
4756
  }
4754
4757
  disconnectedCallback() {
4755
4758
  var e;
4756
- super.disconnectedCallback(), this.range.removeEventListener("input", h(iu, this)), (e = h(ru, this)) == null || e.call(this);
4759
+ super.disconnectedCallback(), this.range.removeEventListener("input", h(su, this)), (e = h(ou, this)) == null || e.call(this);
4757
4760
  }
4758
4761
  attributeChangedCallback(e, t, n) {
4759
- super.attributeChangedCallback(e, t, n), (e === g.MUTED || e === g.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", tu(this.range.valueAsNumber)), this.updateBar());
4762
+ super.attributeChangedCallback(e, t, n), (e === g.MUTED || e === g.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", iu(this.range.valueAsNumber)), this.updateBar());
4760
4763
  }
4761
4764
  get volume() {
4762
4765
  var e;
@@ -4766,15 +4769,15 @@ var tu = (e) => `${Math.round(e * 100)}%`, nu = /* @__PURE__ */ new WeakMap(), r
4766
4769
  return this.hasAttribute(g.MUTED);
4767
4770
  }
4768
4771
  };
4769
- Ql = au, e(au, "observedAttributes", [
4770
- ...y(Ql, "observedAttributes", Ql),
4772
+ tu = cu, e(cu, "observedAttributes", [
4773
+ ...y(tu, "observedAttributes", tu),
4771
4774
  g.MUTED,
4772
4775
  g.VOLUME
4773
4776
  ]);
4774
4777
  //#endregion
4775
4778
  //#region ../../libs/player-next/src/registerComponents.ts
4776
- function ou() {
4777
- customElements.define("vindral-controller", Ta), customElements.define("vindral-control-bar", Vn), customElements.define("vindral-advanced-rendition-menu", Ye), customElements.define("vindral-advanced-rendition-menu-list", ct), customElements.define("vindral-play-button", os), customElements.define("vindral-mute-button", es), customElements.define("vindral-buffering-overlay", Ft), customElements.define("vindral-scroll-overlay", Rc), customElements.define("vindral-play-overlay", Zl), customElements.define("vindral-user-input-play-overlay", Hl), customElements.define("vindral-fullscreen-button", go), customElements.define("vindral-rendition-levels-menu", uc), customElements.define("vindral-rendition-levels-menu-list", yc), customElements.define("vindral-channel-grid-button", Pn), customElements.define("vindral-channel-grid", on), customElements.define("vindral-channel-grid-item", Yt), customElements.define("vindral-pip-button", rs), customElements.define("vindral-airplay-button", Ot), customElements.define("vindral-cast-button", zt), customElements.define("vindral-cast-overlay", Gt), customElements.define("vindral-buffering-icon", Mt), customElements.define("vindral-language-menu", xo), customElements.define("vindral-language-menu-list", Fo), customElements.define("vindral-center-overlay", Wl), customElements.define("vindral-message", Jl), customElements.define("vindral-volume-range", au), customElements.define("vindral-poster-overlay", nc), customElements.define("vindral-player", Bs), customElements.define("vindral-seek-bar", vl), customElements.define("vindral-live-button", Zo);
4779
+ function lu() {
4780
+ customElements.define("vindral-controller", Oa), customElements.define("vindral-control-bar", Vn), customElements.define("vindral-advanced-rendition-menu", Ye), customElements.define("vindral-advanced-rendition-menu-list", ct), customElements.define("vindral-play-button", us), customElements.define("vindral-mute-button", is), customElements.define("vindral-buffering-overlay", Ft), customElements.define("vindral-scroll-overlay", Vc), customElements.define("vindral-play-overlay", eu), customElements.define("vindral-user-input-play-overlay", Gl), customElements.define("vindral-fullscreen-button", yo), customElements.define("vindral-rendition-levels-menu", pc), customElements.define("vindral-rendition-levels-menu-list", Sc), customElements.define("vindral-channel-grid-button", Pn), customElements.define("vindral-channel-grid", on), customElements.define("vindral-channel-grid-item", Yt), customElements.define("vindral-pip-button", ss), customElements.define("vindral-airplay-button", Ot), customElements.define("vindral-cast-button", zt), customElements.define("vindral-cast-overlay", Gt), customElements.define("vindral-buffering-icon", Mt), customElements.define("vindral-language-menu", wo), customElements.define("vindral-language-menu-list", zo), customElements.define("vindral-center-overlay", ql), customElements.define("vindral-message", Zl), customElements.define("vindral-volume-range", cu), customElements.define("vindral-poster-overlay", ac), customElements.define("vindral-player", Us), customElements.define("vindral-seek-bar", xl), customElements.define("vindral-live-button", ts);
4778
4781
  }
4779
4782
  //#endregion
4780
- export { ou as t };
4783
+ export { lu as t };