@vindral/web-sdk 4.3.0 → 4.3.1-1-g4af4a8c4

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,11 +1,11 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as ee, l, m as te, n as u, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce } from "./BzLobjSs.js";
2
+ import { _ as n, a as r, c as i, d as a, f as o, g as s, h as c, i as ee, l, m as te, n as u, o as ne, p as re, r as ie, s as ae, t as oe, u as se, v as ce } from "./BK_5sZl6.js";
3
3
  import { M as le } from "./C01DcfYu.js";
4
4
  import { a as d, i as f, n as p, r as m, t as h } from "./B7hT-BKr.js";
5
5
  import { n as ue, t as de } from "./DeYmk5AL.js";
6
6
  import { t as fe } from "./FYiEDBC4.js";
7
7
  import { _ as pe, a as me, c as he, d as ge, f as _e, g, h as _, i as v, l as ve, m as ye, n as y, o as b, p as be, r as x, s as xe, t as Se, u as Ce, v as we, y as Te } from "./CjPLLJi5.js";
8
- import { t as Ee } from "./D5iA4gy8.js";
8
+ import { t as Ee } from "./BdFcdkj1.js";
9
9
  //#region ../../libs/utils/src/mediaMetadata.ts
10
10
  var De = ({ title: e, subTitle: t = "Live stream", poster: n }) => {
11
11
  document.title = e, "mediaSession" in navigator && (navigator.mediaSession.metadata = new MediaMetadata({
@@ -3386,8 +3386,10 @@ var Oo = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3386
3386
  <vindral-user-input-play-overlay slot="overlay"></vindral-user-input-play-overlay>
3387
3387
  <vindral-poster-overlay slot="overlay" disabled></vindral-poster-overlay>
3388
3388
 
3389
- <vindral-play-overlay id="play-overlay" slot="overlay" hidden></vindral-play-overlay>
3390
- <vindral-message id="vindral-message" slot="overlay" hidden></vindral-message>
3389
+ <vindral-center-overlay id="center-overlay" slot="overlay">
3390
+ <vindral-message id="vindral-message" hidden></vindral-message>
3391
+ <vindral-play-overlay id="play-overlay" hidden></vindral-play-overlay>
3392
+ </vindral-center-overlay>
3391
3393
  </vindral-controller>
3392
3394
  `;
3393
3395
  }, Po = `
@@ -3410,55 +3412,57 @@ var Oo = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3410
3412
  <vindral-buffering-icon></vindral-buffering-icon>
3411
3413
  </div>
3412
3414
 
3413
- <vindral-play-overlay id="play-overlay" slot="overlay" hidden></vindral-play-overlay>
3414
- <vindral-message id="vindral-message" slot="overlay" hidden></vindral-message>
3415
+ <vindral-center-overlay id="center-overlay" slot="overlay" disable-backdrop>
3416
+ <vindral-message id="vindral-message" hidden></vindral-message>
3417
+ <vindral-play-overlay id="play-overlay" hidden></vindral-play-overlay>
3418
+ </vindral-center-overlay>
3415
3419
  </vindral-controller>
3416
- `, Fo = document.createElement("template"), Io = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Ro = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakMap(), Bo = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), Ho = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Go = class extends HTMLElement {
3420
+ `, Fo = document.createElement("template"), Io = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Ro = /* @__PURE__ */ new WeakMap(), zo = /* @__PURE__ */ new WeakMap(), Bo = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakSet(), Wo = /* @__PURE__ */ new WeakMap(), Go = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), qo = class extends HTMLElement {
3417
3421
  constructor() {
3418
- super(), h(this, Y), d(this, Io, void 0), d(this, q, void 0), d(this, J, void 0), d(this, Lo, void 0), d(this, Ro, void 0), d(this, zo, /* @__PURE__ */ new Set()), d(this, Bo, () => {
3422
+ super(), h(this, J), d(this, Io, void 0), d(this, q, void 0), d(this, Lo, void 0), d(this, Ro, void 0), d(this, zo, void 0), d(this, Bo, void 0), d(this, Vo, /* @__PURE__ */ new Set()), d(this, Ho, () => {
3419
3423
  Array.from(this.attributes).forEach((e) => {
3420
- p(Vo, this).call(this, e.name, e.value);
3424
+ p(Uo, this).call(this, e.name, e.value);
3421
3425
  });
3422
- }), d(this, Vo, (e, t) => {
3426
+ }), d(this, Uo, (e, t) => {
3423
3427
  jo(e) && (v(t) ? p(q, this).setAttribute(e, t) : p(q, this).removeAttribute(e));
3424
- }), d(this, Ho, () => {
3428
+ }), d(this, Wo, () => {
3425
3429
  Array.from(this.children).forEach((e) => {
3426
- p(zo, this).add(e);
3430
+ p(Vo, this).add(e);
3427
3431
  });
3428
- }), d(this, Uo, () => {
3432
+ }), d(this, Go, () => {
3429
3433
  let e = p(q, this).instance;
3430
3434
  e && (e.on("is live", (e) => {
3431
- e ? (this.removeAttribute(K.OFFLINE), p(J, this).setAttribute("hidden", "")) : (this.setAttribute(K.OFFLINE, ""), p(J, this).removeAttribute("hidden"), f(Y, this, Xo).call(this, "Stream is offline", "Please stand by"));
3435
+ e ? (this.removeAttribute(K.OFFLINE), f(J, this, $o).call(this)) : (this.setAttribute(K.OFFLINE, ""), f(J, this, Qo).call(this, "Stream is offline", "Please stand by"));
3432
3436
  }), e.on("channels", (e) => {
3433
3437
  let t = p(q, this).getAttribute("channel-id"), n = e.find((e) => e.channelId === t);
3434
- n && f(Y, this, Yo).call(this, n);
3438
+ n && f(J, this, Zo).call(this, n);
3435
3439
  }), e.on("channel switch", ({ channelId: t }) => {
3436
3440
  let n = e.channels.find((e) => e.channelId === t);
3437
- n && f(Y, this, Yo).call(this, n);
3441
+ n && f(J, this, Zo).call(this, n);
3438
3442
  }), e.on("error", (e) => {
3439
3443
  if (e.code() === "connection_failed") {
3440
- f(Y, this, Xo).call(this, "Stream is offline", "Please stand by");
3444
+ f(J, this, Qo).call(this, "Stream is offline", "Please stand by");
3441
3445
  return;
3442
3446
  }
3443
- e.isFatal() && (e.code() === "access_forbidden" ? f(Y, this, Xo).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? f(Y, this, Xo).call(this, "Stream is offline", "Please stand by") : f(Y, this, Xo).call(this, "An error occurred", e.message), p(Lo, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), p(q, this).dispatchEvent(new CustomEvent(_.EXIT_FULLSCREEN)), p(q, this).dispatchEvent(new CustomEvent(_.EXIT_PIP)));
3447
+ e.isFatal() && (e.code() === "access_forbidden" ? f(J, this, Qo).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? f(J, this, Qo).call(this, "Stream is offline", "Please stand by") : f(J, this, Qo).call(this, "An error occurred", e.message), p(Ro, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), p(q, this).dispatchEvent(new CustomEvent(_.EXIT_FULLSCREEN)), p(q, this).dispatchEvent(new CustomEvent(_.EXIT_PIP)));
3444
3448
  }));
3445
- }), d(this, Wo, () => {
3446
- p(q, this).connect(), p(Lo, this).setAttribute("hidden", ""), p(J, this).setAttribute("hidden", ""), p(q, this).focus();
3447
- }), m(Io, this, this.attachShadow({ mode: "open" })), f(Y, this, qo).call(this), m(q, this, p(Io, this).querySelector("vindral-controller")), m(J, this, p(Io, this).querySelector("#vindral-message")), m(Lo, this, p(Io, this).querySelector("#play-overlay"));
3449
+ }), d(this, Ko, () => {
3450
+ p(q, this).connect(), p(Ro, this).setAttribute("hidden", ""), f(J, this, $o).call(this), p(q, this).focus();
3451
+ }), m(Io, this, this.attachShadow({ mode: "open" })), f(J, this, Yo).call(this), m(q, this, p(Io, this).querySelector("vindral-controller")), m(Lo, this, p(Io, this).querySelector("#vindral-message")), m(Ro, this, p(Io, this).querySelector("#play-overlay")), m(zo, this, p(Io, this).querySelector("#center-overlay"));
3448
3452
  }
3449
3453
  connectedCallback() {
3450
- this.setAttribute(K.OFFLINE, ""), p(q, this).addEventListener("vindral-instance-ready", p(Uo, this)), f(Y, this, Jo).call(this);
3454
+ this.setAttribute(K.OFFLINE, ""), p(q, this).addEventListener("vindral-instance-ready", p(Go, this)), f(J, this, Xo).call(this);
3451
3455
  }
3452
3456
  disconnectedCallback() {
3453
3457
  var e;
3454
- p(q, this).removeEventListener("vindral-instance-ready", p(Uo, this)), p(Lo, this).removeEventListener("click", p(Wo, this)), (e = p(Ro, this)) == null || e.stop();
3458
+ p(q, this).removeEventListener("vindral-instance-ready", p(Go, this)), p(Ro, this).removeEventListener("click", p(Ko, this)), (e = p(Bo, this)) == null || e.stop();
3455
3459
  }
3456
3460
  attributeChangedCallback(e, t, n) {
3457
- if (t !== n) if (e === g.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) f(Y, this, qo).call(this);
3461
+ if (t !== n) if (e === g.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) f(J, this, Yo).call(this);
3458
3462
  else if (e === K.REFRESH_POSTER_ENABLED) {
3459
3463
  let e = p(Io, this).querySelector("vindral-poster-overlay");
3460
3464
  e && (e.disabled = b(this.getAttribute(K.REFRESH_POSTER_ENABLED), !1) === !1);
3461
- } else p(Vo, this).call(this, e, n);
3465
+ } else p(Uo, this).call(this, e, n);
3462
3466
  }
3463
3467
  get instance() {
3464
3468
  return p(q, this).instance;
@@ -3467,40 +3471,40 @@ var Oo = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3467
3471
  return p(q, this).airPlay;
3468
3472
  }
3469
3473
  };
3470
- function Ko() {
3474
+ function Jo() {
3471
3475
  let e = ge(this.getAttribute(g.MEDIA)), t = b(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
3472
3476
  return e === "audio" ? Po : No(t);
3473
3477
  }
3474
- function qo() {
3475
- let e = p(Io, this).hasChildNodes(), t = e ? p(q, this) : void 0, n = e ? p(Lo, this) : void 0;
3476
- this.isConnected && t && t.removeEventListener("vindral-instance-ready", p(Uo, this)), this.isConnected && n && p(Ro, this) && n.removeEventListener("click", p(Wo, this)), Fo.innerHTML = f(Y, this, Ko).call(this);
3478
+ function Yo() {
3479
+ let e = p(Io, this).hasChildNodes(), t = e ? p(q, this) : void 0, n = e ? p(Ro, this) : void 0;
3480
+ this.isConnected && t && t.removeEventListener("vindral-instance-ready", p(Go, this)), this.isConnected && n && p(Bo, this) && n.removeEventListener("click", p(Ko, this)), Fo.innerHTML = f(J, this, Jo).call(this);
3477
3481
  let r = Fo.content.cloneNode(!0);
3478
- m(q, this, r.querySelector("vindral-controller")), m(J, this, r.querySelector("#vindral-message")), m(Lo, this, r.querySelector("#play-overlay")), p(Ho, this).call(this), p(zo, this).forEach((e) => {
3482
+ m(q, this, r.querySelector("vindral-controller")), m(Lo, this, r.querySelector("#vindral-message")), m(Ro, this, r.querySelector("#play-overlay")), m(zo, this, r.querySelector("#center-overlay")), p(Wo, this).call(this), p(Vo, this).forEach((e) => {
3479
3483
  p(q, this).appendChild(e);
3480
- }), p(Bo, this).call(this), p(Io, this).innerHTML = "", p(Io, this).appendChild(r), this.isConnected && (p(q, this).addEventListener("vindral-instance-ready", p(Uo, this)), p(Ro, this) && p(Lo, this).addEventListener("click", p(Wo, this)));
3484
+ }), p(Ho, this).call(this), p(Io, this).innerHTML = "", p(Io, this).appendChild(r), this.isConnected && (p(q, this).addEventListener("vindral-instance-ready", p(Go, this)), p(Bo, this) && p(Ro, this).addEventListener("click", p(Ko, this)));
3481
3485
  }
3482
- function Jo() {
3486
+ function Xo() {
3483
3487
  var e;
3484
3488
  if (b(this.getAttribute(K.STREAM_POLL_ENABLED), !0) === !1) return;
3485
3489
  let t = this.getAttribute("url"), n = this.getAttribute("channel-id"), r = (e = this.getAttribute("authentication-token")) == null ? void 0 : e, i = this.hasAttribute("infinite-reconnect");
3486
3490
  if (!t || !n) {
3487
- this.setAttribute(K.OFFLINE, ""), f(Y, this, Xo).call(this, "Invalid options", "Please enter at least a channel id and url to start the stream");
3491
+ this.setAttribute(K.OFFLINE, ""), f(J, this, Qo).call(this, "Invalid options", "Please enter at least a channel id and url to start the stream");
3488
3492
  return;
3489
3493
  }
3490
- m(Ro, this, new Co({
3494
+ m(Bo, this, new Co({
3491
3495
  url: t,
3492
3496
  channelId: n,
3493
3497
  authenticationToken: r,
3494
3498
  infiniteReconnect: i
3495
- })), p(Ro, this).on("live", (e) => {
3496
- p(q, this).connect(), this.removeAttribute("offline"), p(J, this).setAttribute("hidden", ""), f(Y, this, Yo).call(this, e);
3497
- }), p(Ro, this).on("timeout", () => {
3498
- p(J, this).setAttribute("hidden", ""), p(Lo, this).removeAttribute("hidden");
3499
- }), p(Ro, this).on("error", (e) => {
3500
- this.setAttribute(K.OFFLINE, ""), f(Y, this, Xo).call(this, e.title, e.message);
3501
- }), p(Lo, this).addEventListener("click", p(Wo, this)), this.hasAttribute("paused") && p(Ro, this).start();
3502
- }
3503
- function Yo(e) {
3499
+ })), p(Bo, this).on("live", (e) => {
3500
+ p(q, this).connect(), this.removeAttribute("offline"), f(J, this, $o).call(this), f(J, this, Zo).call(this, e);
3501
+ }), p(Bo, this).on("timeout", () => {
3502
+ f(J, this, $o).call(this), p(Ro, this).removeAttribute("hidden");
3503
+ }), p(Bo, this).on("error", (e) => {
3504
+ this.setAttribute(K.OFFLINE, ""), f(J, this, Qo).call(this, e.title, e.message);
3505
+ }), p(Ro, this).addEventListener("click", p(Ko, this)), this.hasAttribute("paused") && p(Bo, this).start();
3506
+ }
3507
+ function Zo(e) {
3504
3508
  let t = xe(this.getAttribute("title"), !1);
3505
3509
  if (!t) return;
3506
3510
  let n = this.getAttribute("poster"), r = typeof t == "string" ? t : e.name, i;
@@ -3514,16 +3518,19 @@ function Yo(e) {
3514
3518
  poster: i
3515
3519
  });
3516
3520
  }
3517
- function Xo(e, t) {
3518
- p(J, this).setAttribute("title", e), p(J, this).setAttribute("description", t);
3521
+ function Qo(e, t) {
3522
+ p(Lo, this).setAttribute("title", e), p(Lo, this).setAttribute("description", t), p(Lo, this).removeAttribute("hidden");
3519
3523
  let n = this.getAttribute("poster");
3520
- n && p(J, this).setAttribute("background-image", n), p(J, this).removeAttribute("hidden");
3524
+ n ? p(zo, this).setAttribute("poster", n) : p(zo, this).removeAttribute("poster"), p(zo, this).setAttribute("backdrop", "");
3521
3525
  }
3522
- e(Go, "observedAttributes", [...Mi.observedAttributes, ...mo]);
3526
+ function $o() {
3527
+ p(Lo, this).setAttribute("hidden", ""), p(zo, this).removeAttribute("backdrop");
3528
+ }
3529
+ e(qo, "observedAttributes", [...Mi.observedAttributes, ...mo]);
3523
3530
  //#endregion
3524
3531
  //#region ../../libs/player-next/src/components/PosterOverlay.ts
3525
- var Zo = document.createElement("template");
3526
- Zo.innerHTML = `
3532
+ var es = document.createElement("template");
3533
+ es.innerHTML = `
3527
3534
  <style>
3528
3535
  :host {
3529
3536
  display: var(--poster-overlay-display);
@@ -3558,26 +3565,26 @@ Zo.innerHTML = `
3558
3565
  }
3559
3566
  </style>
3560
3567
  `;
3561
- var Qo = 6e3, $o = /* @__PURE__ */ new WeakMap(), es = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakSet(), is = /* @__PURE__ */ new WeakMap(), as = class extends HTMLElement {
3568
+ var ts = 6e3, ns = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakMap(), is = /* @__PURE__ */ new WeakMap(), as = /* @__PURE__ */ new WeakMap(), os = /* @__PURE__ */ new WeakSet(), ss = /* @__PURE__ */ new WeakMap(), cs = class extends HTMLElement {
3562
3569
  constructor() {
3563
- super(), h(this, rs), d(this, $o, null), d(this, es, null), d(this, ts, null), d(this, ns, () => {
3564
- !document.hidden && this.hasAttribute("intersecting") && this.paused && !this.disabled ? f(rs, this, os).call(this) : f(rs, this, ss).call(this);
3565
- }), d(this, is, (e) => {
3570
+ super(), h(this, os), d(this, ns, null), d(this, rs, null), d(this, is, null), d(this, as, () => {
3571
+ !document.hidden && this.hasAttribute("intersecting") && this.paused && !this.disabled ? f(os, this, ls).call(this) : f(os, this, us).call(this);
3572
+ }), d(this, ss, (e) => {
3566
3573
  e.forEach((e) => {
3567
3574
  e.isIntersecting ? this.setAttribute("intersecting", "") : this.removeAttribute("intersecting");
3568
3575
  });
3569
- }), this.attachShadow({ mode: "open" }).appendChild(Zo.content.cloneNode(!0));
3576
+ }), this.attachShadow({ mode: "open" }).appendChild(es.content.cloneNode(!0));
3570
3577
  }
3571
3578
  connectedCallback() {
3572
3579
  var e;
3573
- m($o, this, this.closest("vindral-controller")), (e = p($o, this)) == null || e.connectListener(this), document.addEventListener("visibilitychange", p(ns, this)), m(ts, this, new IntersectionObserver(p(is, this))), p(ts, this).observe(this);
3580
+ m(ns, this, this.closest("vindral-controller")), (e = p(ns, this)) == null || e.connectListener(this), document.addEventListener("visibilitychange", p(as, this)), m(is, this, new IntersectionObserver(p(ss, this))), p(is, this).observe(this);
3574
3581
  }
3575
3582
  disconnectedCallback() {
3576
3583
  var e, t;
3577
- (e = p($o, this)) == null || e.disconnectListener(this), document.removeEventListener("visibilitychange", p(ns, this)), (t = p(ts, this)) == null || t.disconnect(), m(ts, this, null), f(rs, this, ss).call(this);
3584
+ (e = p(ns, this)) == null || e.disconnectListener(this), document.removeEventListener("visibilitychange", p(as, this)), (t = p(is, this)) == null || t.disconnect(), m(is, this, null), f(os, this, us).call(this);
3578
3585
  }
3579
3586
  attributeChangedCallback(e, t, n) {
3580
- t !== n && (e === g.POSTER_SRC && this.paused && !this.disabled && f(rs, this, cs).call(this), (e === g.PAUSED || e === "disabled" || e === "intersecting") && p(ns, this).call(this));
3587
+ t !== n && (e === g.POSTER_SRC && this.paused && !this.disabled && f(os, this, ds).call(this), (e === g.PAUSED || e === "disabled" || e === "intersecting") && p(as, this).call(this));
3581
3588
  }
3582
3589
  get disabled() {
3583
3590
  return this.hasAttribute("disabled");
@@ -3592,18 +3599,18 @@ var Qo = 6e3, $o = /* @__PURE__ */ new WeakMap(), es = /* @__PURE__ */ new WeakM
3592
3599
  return this.hasAttribute(g.PAUSED);
3593
3600
  }
3594
3601
  };
3595
- function os() {
3596
- p(es, this) === null && (f(rs, this, ss).call(this), m(es, this, window.setInterval(() => f(rs, this, cs).call(this), Qo)));
3602
+ function ls() {
3603
+ p(rs, this) === null && (f(os, this, us).call(this), m(rs, this, window.setInterval(() => f(os, this, ds).call(this), ts)));
3597
3604
  }
3598
- function ss() {
3599
- p(es, this) !== null && (clearInterval(p(es, this)), m(es, this, null)), this.style.backgroundImage = "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==')";
3605
+ function us() {
3606
+ p(rs, this) !== null && (clearInterval(p(rs, this)), m(rs, this, null)), this.style.backgroundImage = "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==')";
3600
3607
  }
3601
- function cs() {
3608
+ function ds() {
3602
3609
  if (!this.posterSrc) return;
3603
3610
  let e = new URL(this.posterSrc), t = new Image();
3604
3611
  e.searchParams.set("t", Date.now().toString()), t.src = e.toString(), t.onload = () => this.style.backgroundImage = `url(${e.toString()})`;
3605
3612
  }
3606
- e(as, "observedAttributes", [
3613
+ e(cs, "observedAttributes", [
3607
3614
  g.POSTER_SRC,
3608
3615
  g.PAUSED,
3609
3616
  "disabled",
@@ -3611,70 +3618,70 @@ e(as, "observedAttributes", [
3611
3618
  ]);
3612
3619
  //#endregion
3613
3620
  //#region ../../libs/player-next/src/components/RenditionLevelsMenu.ts
3614
- var ls, us = "\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", ds = document.createElement("template");
3615
- ds.innerHTML = `
3621
+ var fs, ps = "\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", ms = document.createElement("template");
3622
+ ms.innerHTML = `
3616
3623
  <style>
3617
3624
  :host {
3618
3625
  display: var(--rendition-menu-display);
3619
3626
  }
3620
3627
  </style>
3621
3628
 
3622
- <slot name="button">${us}</slot>
3629
+ <slot name="button">${ps}</slot>
3623
3630
  <slot name="listbox" hidden>
3624
3631
  <vindral-rendition-levels-menu-list id="listbox" part="listbox"></vindral-rendition-levels-menu-list>
3625
3632
  </slot>
3626
3633
  `;
3627
- var fs = /* @__PURE__ */ new WeakSet(), ps = class extends Re {
3634
+ var hs = /* @__PURE__ */ new WeakSet(), gs = class extends Re {
3628
3635
  constructor() {
3629
3636
  var e, t, n, r;
3630
- super(), h(this, fs), (e = this.shadowRoot) == null || e.appendChild(ds.content.cloneNode(!0)), this.button = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot[name=button]"), this.listbox = (n = this.shadowRoot) == null ? void 0 : n.querySelector("[part=listbox]"), this.listboxSlot = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot[name=listbox]");
3637
+ super(), h(this, hs), (e = this.shadowRoot) == null || e.appendChild(ms.content.cloneNode(!0)), this.button = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot[name=button]"), this.listbox = (n = this.shadowRoot) == null ? void 0 : n.querySelector("[part=listbox]"), this.listboxSlot = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot[name=listbox]");
3631
3638
  }
3632
3639
  connectedCallback() {
3633
- super.connectedCallback(), f(fs, this, ms).call(this), this.setAttribute("aria-label", "Rendition levels");
3640
+ super.connectedCallback(), f(hs, this, _s).call(this), this.setAttribute("aria-label", "Rendition levels");
3634
3641
  }
3635
3642
  attributeChangedCallback(e, t, n) {
3636
- super.attributeChangedCallback(e, t, n), e === g.RENDITION_LEVELS && f(fs, this, ms).call(this);
3643
+ super.attributeChangedCallback(e, t, n), e === g.RENDITION_LEVELS && f(hs, this, _s).call(this);
3637
3644
  }
3638
3645
  };
3639
- ls = ps;
3640
- function ms() {
3646
+ fs = gs;
3647
+ function _s() {
3641
3648
  let e = this.getAttribute(g.RENDITION_LEVELS);
3642
3649
  !e || e === "[]" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
3643
3650
  }
3644
- e(ps, "observedAttributes", [...y(ls, "observedAttributes", ls), g.RENDITION_LEVELS]);
3651
+ e(gs, "observedAttributes", [...y(fs, "observedAttributes", fs), g.RENDITION_LEVELS]);
3645
3652
  //#endregion
3646
3653
  //#region ../../libs/player-next/src/components/RenditionLevelsMenuList.ts
3647
- var hs = document.createElement("template");
3648
- hs.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";
3649
- var gs = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), xs = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), Ss = class extends HTMLElement {
3654
+ var vs = document.createElement("template");
3655
+ vs.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";
3656
+ var ys = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), xs = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), Ts = class extends HTMLElement {
3650
3657
  constructor() {
3651
- super(), h(this, X), d(this, gs, []), d(this, _s, 2 ** 53 - 1), d(this, vs, null), d(this, ys, []), d(this, bs, null), d(this, xs, null), e(this, "handleEvent", (e) => {
3658
+ super(), h(this, Y), d(this, ys, []), d(this, bs, 2 ** 53 - 1), d(this, xs, null), d(this, Ss, []), d(this, Cs, null), d(this, ws, null), e(this, "handleEvent", (e) => {
3652
3659
  switch (e.type) {
3653
3660
  case "keydown":
3654
- f(X, this, Os).call(this, e);
3661
+ f(Y, this, js).call(this, e);
3655
3662
  break;
3656
3663
  }
3657
- }), this.attachShadow({ mode: "open" }).appendChild(hs.content.cloneNode(!0));
3664
+ }), this.attachShadow({ mode: "open" }).appendChild(vs.content.cloneNode(!0));
3658
3665
  }
3659
3666
  connectedCallback() {
3660
3667
  let e = this.getRootNode();
3661
3668
  if (e instanceof ShadowRoot) {
3662
3669
  var t;
3663
- m(bs, this, e.host.closest("vindral-controller")), (t = p(bs, this)) == null || t.connectListener(this), f(X, this, Cs).call(this), f(X, this, ws).call(this), m(xs, this, e.host), this.addEventListener("keydown", this);
3670
+ m(Cs, this, e.host.closest("vindral-controller")), (t = p(Cs, this)) == null || t.connectListener(this), f(Y, this, Es).call(this), f(Y, this, Ds).call(this), m(ws, this, e.host), this.addEventListener("keydown", this);
3664
3671
  }
3665
3672
  }
3666
3673
  disconnectedCallback() {
3667
3674
  var e;
3668
- (e = p(bs, this)) == null || e.disconnectListener(this), this.removeEventListener("keydown", this);
3675
+ (e = p(Cs, this)) == null || e.disconnectListener(this), this.removeEventListener("keydown", this);
3669
3676
  }
3670
3677
  attributeChangedCallback(e, t, n) {
3671
3678
  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));
3672
3679
  }
3673
3680
  set list(e) {
3674
- m(gs, this, e), f(X, this, ws).call(this);
3681
+ m(ys, this, e), f(Y, this, Ds).call(this);
3675
3682
  }
3676
3683
  set maxVideoBitrate(e) {
3677
- m(_s, this, e), f(X, this, Es).call(this);
3684
+ m(bs, this, e), f(Y, this, ks).call(this);
3678
3685
  }
3679
3686
  get keysUsed() {
3680
3687
  return [
@@ -3690,10 +3697,10 @@ var gs = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), vs =
3690
3697
  }
3691
3698
  focus() {
3692
3699
  var e;
3693
- (e = p(vs, this)) == null || e.focus();
3700
+ (e = p(xs, this)) == null || e.focus();
3694
3701
  }
3695
3702
  };
3696
- function Cs() {
3703
+ function Es() {
3697
3704
  new IntersectionObserver((e) => {
3698
3705
  e.forEach((e) => {
3699
3706
  if (e.intersectionRatio !== 1) if (e.intersectionRatio > 0) {
@@ -3702,50 +3709,50 @@ function Cs() {
3702
3709
  } else this.style.height = "auto";
3703
3710
  });
3704
3711
  }, {
3705
- root: p(bs, this),
3712
+ root: p(Cs, this),
3706
3713
  threshold: 0
3707
3714
  }).observe(this);
3708
3715
  }
3709
- function ws() {
3716
+ function Ds() {
3710
3717
  var e;
3711
3718
  let t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".menu");
3712
- t && (m(ys, this, []), t.innerHTML = "", p(gs, this).sort((e, t) => {
3719
+ t && (m(Ss, this, []), t.innerHTML = "", p(ys, this).sort((e, t) => {
3713
3720
  var n, r;
3714
3721
  return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
3715
3722
  }).forEach((e) => {
3716
3723
  var n, r, i, a, o, s, c, ee;
3717
3724
  let l = document.createElement("div");
3718
3725
  l.setAttribute("role", "menuitem"), l.setAttribute("value", String((n = e.video) == null ? void 0 : n.height)), l.classList.add("menu-item"), l.tabIndex = -1;
3719
- let te = f(X, this, Ts).call(this, (r = e.video) == null ? void 0 : r.frameRate);
3726
+ let te = f(Y, this, Os).call(this, (r = e.video) == null ? void 0 : r.frameRate);
3720
3727
  l.textContent = e.video ? Te(e.video) : "";
3721
3728
  let u = document.createElement("span");
3722
- u.classList.add("menu-item-subtitle"), u.textContent = `${we(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${te}p`, l.appendChild(u), l.addEventListener("click", () => f(X, this, Ds).call(this, e)), p(ys, this).push({
3729
+ u.classList.add("menu-item-subtitle"), u.textContent = `${we(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${te}p`, l.appendChild(u), l.addEventListener("click", () => f(Y, this, As).call(this, e)), p(Ss, this).push({
3723
3730
  el: l,
3724
3731
  id: (c = (ee = e.video) == null ? void 0 : ee.id) == null ? -1 : c
3725
3732
  }), t.appendChild(l);
3726
- }), f(X, this, Es).call(this));
3733
+ }), f(Y, this, ks).call(this));
3727
3734
  }
3728
- function Ts(e) {
3735
+ function Os(e) {
3729
3736
  return e ? e[0] % e[1] === 0 ? (e[0] / e[1]).toString() : (e[0] / e[1]).toFixed(2) : "";
3730
3737
  }
3731
- function Es() {
3732
- p(vs, this) && (p(vs, this).removeAttribute("aria-selected"), p(vs, this).tabIndex = -1);
3733
- let e = p(gs, this).sort((e, t) => {
3738
+ function ks() {
3739
+ p(xs, this) && (p(xs, this).removeAttribute("aria-selected"), p(xs, this).tabIndex = -1);
3740
+ let e = p(ys, this).sort((e, t) => {
3734
3741
  var n, r;
3735
3742
  return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
3736
- }), t = p(gs, this).filter((e) => {
3743
+ }), t = p(ys, this).filter((e) => {
3737
3744
  var t;
3738
- return ((t = e.video) == null ? void 0 : t.bitRate) && e.video.bitRate <= p(_s, this);
3745
+ return ((t = e.video) == null ? void 0 : t.bitRate) && e.video.bitRate <= p(bs, this);
3739
3746
  })[0] || e[e.length - 1];
3740
3747
  if (t) {
3741
- let e = p(ys, this).find((e) => {
3748
+ let e = p(Ss, this).find((e) => {
3742
3749
  var n;
3743
3750
  return e.id === ((n = t.video) == null ? void 0 : n.id);
3744
3751
  });
3745
- e && (e.el.tabIndex = 0, e.el.setAttribute("aria-selected", "true"), m(vs, this, e.el));
3752
+ e && (e.el.tabIndex = 0, e.el.setAttribute("aria-selected", "true"), m(xs, this, e.el));
3746
3753
  }
3747
3754
  }
3748
- function Ds(e) {
3755
+ function As(e) {
3749
3756
  this.dispatchEvent(new Event("change", {
3750
3757
  bubbles: !0,
3751
3758
  composed: !0
@@ -3755,36 +3762,36 @@ function Ds(e) {
3755
3762
  detail: e
3756
3763
  }));
3757
3764
  }
3758
- function Os(e) {
3765
+ function js(e) {
3759
3766
  let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
3760
3767
  if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
3761
3768
  var a;
3762
- (a = p(xs, this)) == null || a.hide();
3769
+ (a = p(ws, this)) == null || a.hide();
3763
3770
  } else if (t === "Enter" || t === " ") {
3764
3771
  var o;
3765
- (o = f(X, this, As).call(this)) == null || (o = o.el) == null || o.click();
3766
- } else f(X, this, ks).call(this, e);
3772
+ (o = f(Y, this, Ns).call(this)) == null || (o = o.el) == null || o.click();
3773
+ } else f(Y, this, Ms).call(this, e);
3767
3774
  }
3768
- function ks(e) {
3775
+ function Ms(e) {
3769
3776
  var t;
3770
- let { key: n } = e, r = p(ys, this), i = (t = f(X, this, As).call(this)) == null ? r[0] : t;
3777
+ let { key: n } = e, r = p(Ss, this), i = (t = f(Y, this, Ns).call(this)) == null ? r[0] : t;
3771
3778
  if (!i) return;
3772
3779
  let a = r.indexOf(i), o = Math.max(0, a);
3773
3780
  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);
3774
3781
  let s = r[o];
3775
- s && (f(X, this, js).call(this, s.id), s.el.focus());
3782
+ s && (f(Y, this, Ps).call(this, s.id), s.el.focus());
3776
3783
  }
3777
- function As() {
3778
- return p(ys, this).find((e) => e.el.tabIndex === 0);
3784
+ function Ns() {
3785
+ return p(Ss, this).find((e) => e.el.tabIndex === 0);
3779
3786
  }
3780
- function js(e) {
3781
- for (let t of p(ys, this)) t.el.tabIndex = t.id === e ? 0 : -1;
3787
+ function Ps(e) {
3788
+ for (let t of p(Ss, this)) t.el.tabIndex = t.id === e ? 0 : -1;
3782
3789
  }
3783
- e(Ss, "observedAttributes", [g.RENDITION_LEVELS, g.MAX_VIDEO_BITRATE]);
3790
+ e(Ts, "observedAttributes", [g.RENDITION_LEVELS, g.MAX_VIDEO_BITRATE]);
3784
3791
  //#endregion
3785
3792
  //#region ../../libs/player-next/src/components/ScrollOverlay.ts
3786
- var Ms = document.createElement("template");
3787
- Ms.innerHTML = `
3793
+ var Fs = document.createElement("template");
3794
+ Fs.innerHTML = `
3788
3795
  <style>
3789
3796
  :host {
3790
3797
  --scroll-overlay-offset: var(--vindral-scroll-overlay-offset, 0px);
@@ -3852,71 +3859,71 @@ Ms.innerHTML = `
3852
3859
  <div id="scroll-area"></div>
3853
3860
  <slot id="content"></slot>
3854
3861
  `;
3855
- var 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(), Z = /* @__PURE__ */ new WeakSet(), Bs = /* @__PURE__ */ new WeakMap(), Vs = class extends HTMLElement {
3862
+ var X = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakSet(), Hs = /* @__PURE__ */ new WeakMap(), Us = class extends HTMLElement {
3856
3863
  constructor() {
3857
- super(), h(this, Z), d(this, Ns, null), d(this, Ps, null), d(this, Fs, !1), d(this, Is, !1), d(this, Ls, !1), d(this, Rs, () => {
3864
+ super(), h(this, Z), d(this, X, null), d(this, Is, null), d(this, Ls, !1), d(this, Rs, !1), d(this, zs, !1), d(this, Bs, () => {
3858
3865
  this.open && (this.open = !1);
3859
- }), d(this, zs, null), e(this, "handleEvent", (e) => {
3866
+ }), d(this, Vs, null), e(this, "handleEvent", (e) => {
3860
3867
  switch (e.type) {
3861
3868
  case "touchstart":
3862
- f(Z, this, Us).call(this, e);
3869
+ f(Z, this, Gs).call(this, e);
3863
3870
  break;
3864
3871
  case "touchmove":
3865
- f(Z, this, Ws).call(this, e);
3872
+ f(Z, this, Ks).call(this, e);
3866
3873
  break;
3867
3874
  case "touchend":
3868
- f(Z, this, Gs).call(this, e);
3875
+ f(Z, this, qs).call(this, e);
3869
3876
  break;
3870
3877
  }
3871
- }), d(this, Bs, () => {
3872
- let e = p(Ls, this);
3878
+ }), d(this, Hs, () => {
3879
+ let e = p(zs, this);
3873
3880
  if (this.scrollTop === 0) {
3874
- f(Z, this, $s).call(this, e);
3881
+ f(Z, this, tc).call(this, e);
3875
3882
  return;
3876
3883
  }
3877
- if (!e && !f(Z, this, Ks).call(this)) {
3878
- f(Z, this, Zs).call(this), f(Z, this, $s).call(this);
3884
+ if (!e && !f(Z, this, Js).call(this)) {
3885
+ f(Z, this, $s).call(this), f(Z, this, tc).call(this);
3879
3886
  return;
3880
3887
  }
3881
- !this.visible && this.scrollTop > 0 && !p(Fs, this) ? f(Z, this, ec).call(this) : !p(Fs, this) && f(Z, this, Js).call(this) && (this.open || (this.open = !0), e && !this.hasAttribute("snap-touch") && this.setAttribute("snap-touch", ""));
3882
- }), this.attachShadow({ mode: "open" }).appendChild(Ms.content.cloneNode(!0));
3888
+ !this.visible && this.scrollTop > 0 && !p(Ls, this) ? f(Z, this, nc).call(this) : !p(Ls, this) && f(Z, this, Xs).call(this) && (this.open || (this.open = !0), e && !this.hasAttribute("snap-touch") && this.setAttribute("snap-touch", ""));
3889
+ }), this.attachShadow({ mode: "open" }).appendChild(Fs.content.cloneNode(!0));
3883
3890
  }
3884
3891
  connectedCallback() {
3885
3892
  let e = this.getRootNode();
3886
3893
  if (e instanceof Document || e instanceof ShadowRoot) {
3887
3894
  var t, n, r;
3888
- m(Ns, this, e.querySelector("vindral-controller")), (t = p(Ns, this)) == null || t.connectListener(this), m(Ps, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#scroll-area")), (r = p(Ps, this)) == null || r.addEventListener("click", p(Rs, this));
3895
+ m(X, this, e.querySelector("vindral-controller")), (t = p(X, this)) == null || t.connectListener(this), m(Is, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#scroll-area")), (r = p(Is, this)) == null || r.addEventListener("click", p(Bs, this));
3889
3896
  let s = this.hasAttribute("touch-enabled");
3890
- if (m(Ls, this, ce() && s), !p(Ls, this)) this.setAttribute("snap", "");
3897
+ if (m(zs, this, ce() && s), !p(zs, this)) this.setAttribute("snap", "");
3891
3898
  else {
3892
3899
  var i, a, o;
3893
- (i = p(Ns, this)) == null || i.addEventListener("touchstart", this, { passive: !0 }), (a = p(Ns, this)) == null || a.addEventListener("touchmove", this, { passive: !1 }), (o = p(Ns, this)) == null || o.addEventListener("touchend", this, { passive: !0 });
3900
+ (i = p(X, this)) == null || i.addEventListener("touchstart", this, { passive: !0 }), (a = p(X, this)) == null || a.addEventListener("touchmove", this, { passive: !1 }), (o = p(X, this)) == null || o.addEventListener("touchend", this, { passive: !0 });
3894
3901
  }
3895
- this.addEventListener("scroll", p(Bs, this));
3902
+ this.addEventListener("scroll", p(Hs, this));
3896
3903
  }
3897
3904
  }
3898
3905
  disconnectedCallback() {
3899
3906
  var e, t, n, r, i;
3900
- (e = p(Ps, this)) == null || e.removeEventListener("click", p(Rs, this)), this.removeEventListener("scroll", p(Bs, this)), (t = p(Ns, this)) == null || t.removeEventListener("touchstart", this), (n = p(Ns, this)) == null || n.removeEventListener("touchmove", this), (r = p(Ns, this)) == null || r.removeEventListener("touchend", this), (i = p(Ns, this)) == null || i.disconnectListener(this);
3907
+ (e = p(Is, this)) == null || e.removeEventListener("click", p(Bs, this)), this.removeEventListener("scroll", p(Hs, this)), (t = p(X, this)) == null || t.removeEventListener("touchstart", this), (n = p(X, this)) == null || n.removeEventListener("touchmove", this), (r = p(X, this)) == null || r.removeEventListener("touchend", this), (i = p(X, this)) == null || i.disconnectListener(this);
3901
3908
  }
3902
3909
  attributeChangedCallback(e, t, n) {
3903
- if (t !== n && (e === g.USER_INTERACTING && n === null && f(Z, this, qs).call(this) && setTimeout(() => {
3910
+ if (t !== n && (e === g.USER_INTERACTING && n === null && f(Z, this, Ys).call(this) && setTimeout(() => {
3904
3911
  this.open = !1;
3905
3912
  }, 300), e === "open")) if (n !== null) {
3906
3913
  var r;
3907
- m(Fs, this, !1), this.scrollTop > 0 && f(Z, this, ec).call(this), this.scrollTo({
3908
- top: (r = p(Ps, this)) == null ? void 0 : r.clientHeight,
3914
+ m(Ls, this, !1), this.scrollTop > 0 && f(Z, this, nc).call(this), this.scrollTo({
3915
+ top: (r = p(Is, this)) == null ? void 0 : r.clientHeight,
3909
3916
  behavior: "smooth"
3910
3917
  });
3911
- } else f(Z, this, Qs).call(this);
3918
+ } else f(Z, this, ec).call(this);
3912
3919
  }
3913
3920
  set open(e) {
3914
3921
  if (e) {
3915
3922
  this.setAttribute("open", "");
3916
3923
  return;
3917
3924
  }
3918
- let t = this.hasAttribute("open"), n = this.visible || f(Z, this, qs).call(this);
3919
- t ? this.removeAttribute("open") : n ? f(Z, this, Qs).call(this) : (m(Fs, this, !1), this.removeAttribute("snap-touch"));
3925
+ let t = this.hasAttribute("open"), n = this.visible || f(Z, this, Ys).call(this);
3926
+ t ? this.removeAttribute("open") : n ? f(Z, this, ec).call(this) : (m(Ls, this, !1), this.removeAttribute("snap-touch"));
3920
3927
  }
3921
3928
  get open() {
3922
3929
  return this.hasAttribute("open");
@@ -3928,124 +3935,124 @@ var Ns = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Fs =
3928
3935
  return this.hasAttribute("visible");
3929
3936
  }
3930
3937
  };
3931
- function Hs() {
3932
- return f(Z, this, Ks).call(this) || f(Z, this, Xs).call(this) || f(Z, this, qs).call(this);
3938
+ function Ws() {
3939
+ return f(Z, this, Js).call(this) || f(Z, this, Qs).call(this) || f(Z, this, Ys).call(this);
3933
3940
  }
3934
- function Us(e) {
3941
+ function Gs(e) {
3935
3942
  let t = e.touches[0];
3936
- t && (m(Is, this, f(Z, this, Hs).call(this)), p(Is, this) && (m(Fs, this, !1), m(zs, this, t.clientY)));
3943
+ t && (m(Rs, this, f(Z, this, Ws).call(this)), p(Rs, this) && (m(Ls, this, !1), m(Vs, this, t.clientY)));
3937
3944
  }
3938
- function Ws(e) {
3939
- if (!(!p(Is, this) || p(zs, this) === null || this.hasAttribute("snap-touch") && this.open) && (e.preventDefault(), e.touches[0])) {
3940
- let t = e.touches[0].clientY, n = p(zs, this) - t;
3945
+ function Ks(e) {
3946
+ if (!(!p(Rs, this) || p(Vs, this) === null || this.hasAttribute("snap-touch") && this.open) && (e.preventDefault(), e.touches[0])) {
3947
+ let t = e.touches[0].clientY, n = p(Vs, this) - t;
3941
3948
  this.scrollTop = Math.max(0, n);
3942
3949
  }
3943
3950
  }
3944
- function Gs(e) {
3945
- p(Is, this) && !p(Fs, this) && f(Z, this, qs).call(this) && (!this.hasAttribute("snap-touch") || !this.open) && (this.open = !0), m(zs, this, null), m(Is, this, !1);
3951
+ function qs(e) {
3952
+ p(Rs, this) && !p(Ls, this) && f(Z, this, Ys).call(this) && (!this.hasAttribute("snap-touch") || !this.open) && (this.open = !0), m(Vs, this, null), m(Rs, this, !1);
3946
3953
  }
3947
- function Ks() {
3954
+ function Js() {
3948
3955
  return this.hasAttribute(g.USER_INTERACTING);
3949
3956
  }
3950
- function qs() {
3957
+ function Ys() {
3951
3958
  return this.scrollTop > 0;
3952
3959
  }
3953
- function Js() {
3960
+ function Xs() {
3954
3961
  var e;
3955
- return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((e = p(Ps, this)) == null ? void 0 : e.clientHeight);
3962
+ return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((e = p(Is, this)) == null ? void 0 : e.clientHeight);
3956
3963
  }
3957
- function Ys() {
3964
+ function Zs() {
3958
3965
  var e;
3959
- let t = (e = p(Ps, this)) == null ? void 0 : e.clientHeight;
3966
+ let t = (e = p(Is, this)) == null ? void 0 : e.clientHeight;
3960
3967
  return !t || this.clientHeight <= 0 ? 0 : Math.max(this.clientHeight - t, 0);
3961
3968
  }
3962
- function Xs() {
3969
+ function Qs() {
3963
3970
  let e = getComputedStyle(this), t = Number.parseFloat(e.getPropertyValue("--vindral-scroll-overlay-offset"));
3964
- return Number.isNaN(t) ? f(Z, this, Ys).call(this) > 0 : t > 0;
3971
+ return Number.isNaN(t) ? f(Z, this, Zs).call(this) > 0 : t > 0;
3965
3972
  }
3966
- function Zs() {
3973
+ function $s() {
3967
3974
  let e = this.style.scrollBehavior;
3968
3975
  this.style.scrollBehavior = "auto", this.scrollTo({
3969
3976
  top: 0,
3970
3977
  behavior: "auto"
3971
3978
  }), this.style.scrollBehavior = e;
3972
3979
  }
3973
- function Qs() {
3974
- m(Fs, this, !0), this.removeAttribute("snap-touch"), f(Z, this, tc).call(this), this.scrollTo({
3980
+ function ec() {
3981
+ m(Ls, this, !0), this.removeAttribute("snap-touch"), f(Z, this, rc).call(this), this.scrollTo({
3975
3982
  top: 0,
3976
3983
  behavior: "smooth"
3977
3984
  });
3978
3985
  }
3979
- function $s(e = !1) {
3980
- this.open = !1, e && this.removeAttribute("snap-touch"), m(Fs, this, !1), f(Z, this, tc).call(this);
3986
+ function tc(e = !1) {
3987
+ this.open = !1, e && this.removeAttribute("snap-touch"), m(Ls, this, !1), f(Z, this, rc).call(this);
3981
3988
  }
3982
- function ec() {
3989
+ function nc() {
3983
3990
  this.visible || (this.visible = !0, this.dispatchEvent(new CustomEvent(_.LOCK_UI, {
3984
3991
  bubbles: !0,
3985
3992
  composed: !0
3986
3993
  })));
3987
3994
  }
3988
- function tc() {
3995
+ function rc() {
3989
3996
  this.visible && (this.visible = !1, this.dispatchEvent(new CustomEvent(_.UNLOCK_UI, {
3990
3997
  bubbles: !0,
3991
3998
  composed: !0
3992
3999
  })));
3993
4000
  }
3994
- e(Vs, "observedAttributes", [
4001
+ e(Us, "observedAttributes", [
3995
4002
  g.USER_INTERACTING,
3996
4003
  "open",
3997
4004
  "touch-enabled"
3998
4005
  ]);
3999
4006
  //#endregion
4000
4007
  //#region ../../libs/player-next/src/components/SeekBar.ts
4001
- var nc = document.createElement("template");
4002
- nc.innerHTML = "\n <style>\n :host {\n --buffered: 0;\n --vindral-range-thickness: 3px;\n --vindral-range-hover-thickness: 5px;\n --vindral-range-thumb-size: 10px;\n --vindral-range-thumb-hover-size: 15px;\n --vindral-range-fill-color: linear-gradient(\n 90deg,\n #03a9f4 0%,\n #03a9f4 calc(100% - min(20%, 150px)),\n #b3e5fc 100%\n );\n --vindral-range-thumb-color: #03a9f4;\n display: var(--seek-bar-display);\n position: relative;\n }\n\n :host([data-no-duration]) {\n display: none;\n }\n\n #hover-preview {\n position: absolute;\n background-color: rgba(255, 255, 255, 0.6);\n opacity: 0;\n pointer-events: none;\n z-index: 1;\n }\n\n #time-tooltip {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: rgba(0, 0, 0, 0.8);\n color: white;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n white-space: nowrap;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s;\n z-index: 10;\n }\n\n @media (hover: none) {\n #time-tooltip {\n display: none;\n }\n }\n </style>\n\n <div id=\"buffered-track\"></div>\n <div id=\"hover-preview\"></div>\n <div id=\"time-tooltip\"></div>\n";
4003
- var Q = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), ac = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), sc = /* @__PURE__ */ new WeakMap(), cc = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), uc = /* @__PURE__ */ new WeakMap(), dc = /* @__PURE__ */ new WeakMap(), fc = /* @__PURE__ */ new WeakMap(), pc = /* @__PURE__ */ new WeakMap(), mc = /* @__PURE__ */ new WeakMap(), hc = /* @__PURE__ */ new WeakMap(), gc = class extends jr {
4008
+ var ic = document.createElement("template");
4009
+ ic.innerHTML = "\n <style>\n :host {\n --buffered: 0;\n --vindral-range-thickness: 3px;\n --vindral-range-hover-thickness: 5px;\n --vindral-range-thumb-size: 10px;\n --vindral-range-thumb-hover-size: 15px;\n --vindral-range-fill-color: linear-gradient(\n 90deg,\n #03a9f4 0%,\n #03a9f4 calc(100% - min(20%, 150px)),\n #b3e5fc 100%\n );\n --vindral-range-thumb-color: #03a9f4;\n display: var(--seek-bar-display);\n position: relative;\n }\n\n :host([data-no-duration]) {\n display: none;\n }\n\n #hover-preview {\n position: absolute;\n background-color: rgba(255, 255, 255, 0.6);\n opacity: 0;\n pointer-events: none;\n z-index: 1;\n }\n\n #time-tooltip {\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%) translateY(-8px);\n background: rgba(0, 0, 0, 0.8);\n color: white;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 12px;\n white-space: nowrap;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.2s;\n z-index: 10;\n }\n\n @media (hover: none) {\n #time-tooltip {\n display: none;\n }\n }\n </style>\n\n <div id=\"buffered-track\"></div>\n <div id=\"hover-preview\"></div>\n <div id=\"time-tooltip\"></div>\n";
4010
+ var Q = /* @__PURE__ */ new WeakMap(), ac = /* @__PURE__ */ new WeakMap(), oc = /* @__PURE__ */ new WeakMap(), sc = /* @__PURE__ */ new WeakMap(), cc = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ new WeakMap(), uc = /* @__PURE__ */ new WeakMap(), dc = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), fc = /* @__PURE__ */ new WeakMap(), pc = /* @__PURE__ */ new WeakMap(), mc = /* @__PURE__ */ new WeakMap(), hc = /* @__PURE__ */ new WeakMap(), gc = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), vc = class extends jr {
4004
4011
  constructor() {
4005
4012
  var e, t, n;
4006
- super(), h(this, $), d(this, Q, void 0), d(this, rc, void 0), d(this, ic, void 0), d(this, ac, !1), d(this, oc, null), d(this, sc, null), d(this, cc, !1), d(this, lc, !1), d(this, uc, (e) => {
4007
- if (!f($, this, vc).call(this) || f($, this, yc).call(this)) {
4013
+ super(), h(this, $), d(this, Q, void 0), d(this, ac, void 0), d(this, oc, void 0), d(this, sc, !1), d(this, cc, null), d(this, lc, null), d(this, uc, !1), d(this, dc, !1), d(this, fc, (e) => {
4014
+ if (!f($, this, bc).call(this) || f($, this, xc).call(this)) {
4008
4015
  e.preventDefault();
4009
4016
  return;
4010
4017
  }
4011
- m(ac, this, !0), m(sc, this, e.pointerId);
4018
+ m(sc, this, !0), m(lc, this, e.pointerId);
4012
4019
  try {
4013
4020
  this.setPointerCapture(e.pointerId);
4014
4021
  } catch (e) {}
4015
- f($, this, Sc).call(this, e);
4016
- }), d(this, dc, (e) => {
4017
- if (!(!f($, this, vc).call(this) || f($, this, yc).call(this))) {
4018
- if (p(oc, this) && (cancelAnimationFrame(p(oc, this)), m(oc, this, null)), p(ac, this) && e.pointerId === p(sc, this)) {
4019
- e.preventDefault(), f($, this, Sc).call(this, e);
4022
+ f($, this, wc).call(this, e);
4023
+ }), d(this, pc, (e) => {
4024
+ if (!(!f($, this, bc).call(this) || f($, this, xc).call(this))) {
4025
+ if (p(cc, this) && (cancelAnimationFrame(p(cc, this)), m(cc, this, null)), p(sc, this) && e.pointerId === p(lc, this)) {
4026
+ e.preventDefault(), f($, this, wc).call(this, e);
4020
4027
  return;
4021
4028
  }
4022
- m(oc, this, requestAnimationFrame(() => {
4023
- if (e.pointerType !== "mouse" || p(ac, this) || !this.duration) {
4024
- p(ic, this).style.opacity = "0", m(oc, this, null);
4029
+ m(cc, this, requestAnimationFrame(() => {
4030
+ if (e.pointerType !== "mouse" || p(sc, this) || !this.duration) {
4031
+ p(oc, this).style.opacity = "0", m(cc, this, null);
4025
4032
  return;
4026
4033
  }
4027
- let t = f($, this, xc).call(this, e.clientX);
4028
- if (f($, this, wc).call(this, t, e.clientX), t > this.range.valueAsNumber) {
4034
+ let t = f($, this, Cc).call(this, e.clientX);
4035
+ if (f($, this, Ec).call(this, t, e.clientX), t > this.range.valueAsNumber) {
4029
4036
  let e = this.range.valueAsNumber * 100, n = (t - this.range.valueAsNumber) * 100;
4030
- p(ic, this).style.transform = `translateX(${e}%) scaleX(${n / 100})`, p(ic, this).style.opacity = "1";
4031
- } else p(ic, this).style.opacity = "0";
4032
- m(oc, this, null);
4037
+ p(oc, this).style.transform = `translateX(${e}%) scaleX(${n / 100})`, p(oc, this).style.opacity = "1";
4038
+ } else p(oc, this).style.opacity = "0";
4039
+ m(cc, this, null);
4033
4040
  }));
4034
4041
  }
4035
- }), d(this, fc, (e) => {
4036
- if (e.pointerId === p(sc, this)) {
4042
+ }), d(this, mc, (e) => {
4043
+ if (e.pointerId === p(lc, this)) {
4037
4044
  try {
4038
4045
  this.releasePointerCapture(e.pointerId);
4039
4046
  } catch (e) {}
4040
- m(ac, this, !1), m(sc, this, null), e.pointerType !== "mouse" && (p(rc, this).style.opacity = "0"), p(lc, this) && f($, this, Dc).call(this) && (m(cc, this, !1), m(lc, this, !1));
4047
+ m(sc, this, !1), m(lc, this, null), e.pointerType !== "mouse" && (p(ac, this).style.opacity = "0"), p(dc, this) && f($, this, kc).call(this) && (m(uc, this, !1), m(dc, this, !1));
4041
4048
  }
4042
- }), d(this, pc, () => {
4043
- this.duration && !f($, this, yc).call(this) && (p(rc, this).style.opacity = "1");
4044
- }), d(this, mc, () => {
4045
- p(rc, this).style.opacity = "0", p(ic, this).style.opacity = "0";
4046
- }), d(this, hc, (e) => {
4047
- if (f($, this, yc).call(this) || !p(Q, this) || p(Q, this) <= 0 || !Number.isFinite(p(Q, this))) return;
4048
- let t = f($, this, _c).call(this);
4049
+ }), d(this, hc, () => {
4050
+ this.duration && !f($, this, xc).call(this) && (p(ac, this).style.opacity = "1");
4051
+ }), d(this, gc, () => {
4052
+ p(ac, this).style.opacity = "0", p(oc, this).style.opacity = "0";
4053
+ }), d(this, _c, (e) => {
4054
+ if (f($, this, xc).call(this) || !p(Q, this) || p(Q, this) <= 0 || !Number.isFinite(p(Q, this))) return;
4055
+ let t = f($, this, yc).call(this);
4049
4056
  if (t <= 0) return;
4050
4057
  let n = this.range.valueAsNumber * t, r = n;
4051
4058
  switch (e.preventDefault(), e.key) {
@@ -4053,43 +4060,43 @@ var Q = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap(), ic =
4053
4060
  r = Math.max(0, n - 5);
4054
4061
  break;
4055
4062
  case "ArrowRight":
4056
- if (f($, this, Dc).call(this)) return;
4063
+ if (f($, this, kc).call(this)) return;
4057
4064
  r = Math.min(t, n + 5);
4058
4065
  break;
4059
4066
  case "Home":
4060
4067
  r = 0;
4061
4068
  break;
4062
4069
  case "End":
4063
- if (f($, this, Dc).call(this)) return;
4070
+ if (f($, this, kc).call(this)) return;
4064
4071
  r = t;
4065
4072
  break;
4066
4073
  default: return;
4067
4074
  }
4068
4075
  let i = Math.min(r / t, 1);
4069
- f($, this, Cc).call(this, i);
4070
- }), (e = this.shadowRoot) == null || e.appendChild(nc.content.cloneNode(!0)), m(rc, this, (t = this.shadowRoot) == null ? void 0 : t.getElementById("time-tooltip")), m(ic, this, (n = this.shadowRoot) == null ? void 0 : n.getElementById("hover-preview")), this.addEventListener("pointerdown", p(uc, this)), this.addEventListener("pointermove", p(dc, this)), this.addEventListener("pointerup", p(fc, this)), this.addEventListener("pointercancel", p(fc, this)), this.addEventListener("mouseenter", p(pc, this)), this.addEventListener("mouseleave", p(mc, this));
4076
+ f($, this, Tc).call(this, i);
4077
+ }), (e = this.shadowRoot) == null || e.appendChild(ic.content.cloneNode(!0)), m(ac, this, (t = this.shadowRoot) == null ? void 0 : t.getElementById("time-tooltip")), m(oc, this, (n = this.shadowRoot) == null ? void 0 : n.getElementById("hover-preview")), this.addEventListener("pointerdown", p(fc, this)), this.addEventListener("pointermove", p(pc, this)), this.addEventListener("pointerup", p(mc, this)), this.addEventListener("pointercancel", p(mc, this)), this.addEventListener("mouseenter", p(hc, this)), this.addEventListener("mouseleave", p(gc, this));
4071
4078
  }
4072
4079
  connectedCallback() {
4073
- super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), f($, this, bc).call(this), this.addEventListener("keydown", p(hc, this)), f($, this, Dc).call(this) && (this.range.value = "1", f($, this, bc).call(this));
4080
+ super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), f($, this, Sc).call(this), this.addEventListener("keydown", p(_c, this)), f($, this, kc).call(this) && (this.range.value = "1", f($, this, Sc).call(this));
4074
4081
  }
4075
4082
  disconnectedCallback() {
4076
- super.disconnectedCallback(), this.removeEventListener("pointerdown", p(uc, this)), this.removeEventListener("pointermove", p(dc, this)), this.removeEventListener("pointerup", p(fc, this)), this.removeEventListener("pointercancel", p(fc, this)), this.removeEventListener("mouseenter", p(pc, this)), this.removeEventListener("mouseleave", p(mc, this)), this.removeEventListener("keydown", p(hc, this)), m(sc, this, null);
4083
+ super.disconnectedCallback(), this.removeEventListener("pointerdown", p(fc, this)), this.removeEventListener("pointermove", p(pc, this)), this.removeEventListener("pointerup", p(mc, this)), this.removeEventListener("pointercancel", p(mc, this)), this.removeEventListener("mouseenter", p(hc, this)), this.removeEventListener("mouseleave", p(gc, this)), this.removeEventListener("keydown", p(_c, this)), m(lc, this, null);
4077
4084
  }
4078
4085
  attributeChangedCallback(e, t, n) {
4079
4086
  if (super.attributeChangedCallback(e, t, n), t !== n) switch (e) {
4080
4087
  case g.TIMESHIFT_POSITION:
4081
- if (f($, this, Dc).call(this)) {
4082
- p(ac, this) ? m(lc, this, !0) : (m(cc, this, !1), m(lc, this, !1)), this.range.value = "1", f($, this, bc).call(this);
4088
+ if (f($, this, kc).call(this)) {
4089
+ p(sc, this) ? m(dc, this, !0) : (m(uc, this, !1), m(dc, this, !1)), this.range.value = "1", f($, this, Sc).call(this);
4083
4090
  return;
4084
4091
  }
4085
4092
  if (p(Q, this)) {
4086
- m(lc, this, !1);
4093
+ m(dc, this, !1);
4087
4094
  let e = Math.max(parseFloat(n) / p(Q, this), 0);
4088
- this.range.value = e.toString(), f($, this, bc).call(this);
4095
+ this.range.value = e.toString(), f($, this, Sc).call(this);
4089
4096
  }
4090
4097
  break;
4091
4098
  case g.DURATION:
4092
- m(Q, this, parseFloat(n) || 0), f($, this, bc).call(this);
4099
+ m(Q, this, parseFloat(n) || 0), f($, this, Sc).call(this);
4093
4100
  break;
4094
4101
  }
4095
4102
  }
@@ -4107,68 +4114,68 @@ var Q = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap(), ic =
4107
4114
  this.setAttribute(g.DURATION, e.toString());
4108
4115
  }
4109
4116
  };
4110
- function _c() {
4117
+ function yc() {
4111
4118
  return p(Q, this) ? p(Q, this) : 1;
4112
4119
  }
4113
- function vc() {
4120
+ function bc() {
4114
4121
  return !!p(Q, this) && p(Q, this) > 0 && Number.isFinite(p(Q, this));
4115
4122
  }
4116
- function yc() {
4117
- return p(cc, this);
4123
+ function xc() {
4124
+ return p(uc, this);
4118
4125
  }
4119
- function bc() {
4120
- let e = f($, this, _c).call(this);
4121
- !p(Q, this) || p(Q, this) <= 0 || !Number.isFinite(p(Q, this)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), p(ac, this) || (this.updateBar(), this.setAttribute("aria-valuetext", `${f($, this, Oc).call(this, this.range.valueAsNumber * e)} of ${f($, this, Oc).call(this, e)}`), !p(ac, this) && !f($, this, yc).call(this) && f($, this, Ec).call(this, this.range.valueAsNumber));
4126
+ function Sc() {
4127
+ let e = f($, this, yc).call(this);
4128
+ !p(Q, this) || p(Q, this) <= 0 || !Number.isFinite(p(Q, this)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), p(sc, this) || (this.updateBar(), this.setAttribute("aria-valuetext", `${f($, this, Ac).call(this, this.range.valueAsNumber * e)} of ${f($, this, Ac).call(this, e)}`), !p(sc, this) && !f($, this, xc).call(this) && f($, this, Oc).call(this, this.range.valueAsNumber));
4122
4129
  }
4123
- function xc(e) {
4130
+ function Cc(e) {
4124
4131
  let t = this.getBoundingClientRect(), n = (e - t.left) / t.width;
4125
4132
  return Math.max(0, Math.min(1, n));
4126
4133
  }
4127
- function Sc(e) {
4128
- let t = f($, this, xc).call(this, e.clientX);
4129
- f($, this, wc).call(this, t, e.clientX), p(ac, this) || (p(rc, this).style.opacity = "1"), f($, this, Cc).call(this, t);
4134
+ function wc(e) {
4135
+ let t = f($, this, Cc).call(this, e.clientX);
4136
+ f($, this, Ec).call(this, t, e.clientX), p(sc, this) || (p(ac, this).style.opacity = "1"), f($, this, Tc).call(this, t);
4130
4137
  }
4131
- function Cc(e) {
4132
- if (f($, this, yc).call(this) || f($, this, Ec).call(this, e)) return;
4133
- let t = e * f($, this, _c).call(this);
4134
- this.range.value = e.toString(), this.updateBar(), f($, this, Tc).call(this, t);
4138
+ function Tc(e) {
4139
+ if (f($, this, xc).call(this) || f($, this, Oc).call(this, e)) return;
4140
+ let t = e * f($, this, yc).call(this);
4141
+ this.range.value = e.toString(), this.updateBar(), f($, this, Dc).call(this, t);
4135
4142
  }
4136
- function wc(e, t) {
4143
+ function Ec(e, t) {
4137
4144
  if (!p(Q, this) || !Number.isFinite(p(Q, this))) return;
4138
4145
  let n = e * p(Q, this), r = p(Q, this) - n;
4139
- p(rc, this).textContent = `-${f($, this, Oc).call(this, r)}`;
4146
+ p(ac, this).textContent = `-${f($, this, Ac).call(this, r)}`;
4140
4147
  let i = this.getBoundingClientRect(), a = (t - i.left) / i.width * 100;
4141
- p(rc, this).style.left = `${Math.min(Math.max(a, 2), 98)}%`;
4148
+ p(ac, this).style.left = `${Math.min(Math.max(a, 2), 98)}%`;
4142
4149
  }
4143
- function Tc(e) {
4150
+ function Dc(e) {
4144
4151
  this.dispatchEvent(new CustomEvent("seek", {
4145
4152
  bubbles: !0,
4146
4153
  composed: !0,
4147
4154
  detail: e
4148
4155
  }));
4149
4156
  }
4150
- function Ec(e) {
4151
- return p(cc, this) || f($, this, Dc).call(this) || e < .999 ? !1 : (m(cc, this, !0), m(lc, this, !1), this.dispatchEvent(new CustomEvent(_.GO_LIVE, {
4157
+ function Oc(e) {
4158
+ return p(uc, this) || f($, this, kc).call(this) || e < .999 ? !1 : (m(uc, this, !0), m(dc, this, !1), this.dispatchEvent(new CustomEvent(_.GO_LIVE, {
4152
4159
  bubbles: !0,
4153
4160
  composed: !0
4154
4161
  })), !0);
4155
4162
  }
4156
- function Dc() {
4163
+ function kc() {
4157
4164
  return !this.hasAttribute(g.TIMESHIFT_POSITION);
4158
4165
  }
4159
- function Oc(e) {
4166
+ function Ac(e) {
4160
4167
  let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
4161
4168
  return p(Q, this) && p(Q, this) >= 3600 ? `${t}:${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}` : `${n}:${r.toString().padStart(2, "0")}`;
4162
4169
  }
4163
- e(gc, "observedAttributes", [
4170
+ e(vc, "observedAttributes", [
4164
4171
  ...jr.observedAttributes,
4165
4172
  g.TIMESHIFT_POSITION,
4166
4173
  g.DURATION
4167
4174
  ]);
4168
4175
  //#endregion
4169
4176
  //#region ../../libs/player-next/src/components/UserInputPlayOverlay.ts
4170
- var kc = document.createElement("template");
4171
- kc.innerHTML = `
4177
+ var jc = document.createElement("template");
4178
+ jc.innerHTML = `
4172
4179
  <style>
4173
4180
  :host {
4174
4181
  display: var(--play-overlay-display);
@@ -4228,123 +4235,140 @@ kc.innerHTML = `
4228
4235
  </slot>
4229
4236
  </slot>
4230
4237
  `;
4231
- var Ac = /* @__PURE__ */ new WeakMap(), jc = /* @__PURE__ */ new WeakMap(), Mc = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), Pc = class extends HTMLElement {
4238
+ var Mc = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Fc = /* @__PURE__ */ new WeakMap(), Ic = class extends HTMLElement {
4232
4239
  constructor() {
4233
- super(), d(this, Ac, null), d(this, jc, () => {
4240
+ super(), d(this, Mc, null), d(this, Nc, () => {
4234
4241
  this.dispatchEvent(new CustomEvent(_.REQUEST_USER_INPUT, {
4235
4242
  bubbles: !0,
4236
4243
  composed: !0
4237
4244
  }));
4238
- }), d(this, Mc, (e) => {
4245
+ }), d(this, Pc, (e) => {
4239
4246
  let { key: t } = e;
4240
4247
  if (!this.keysUsed.includes(t)) {
4241
- this.removeEventListener("keyup", p(Mc, this));
4248
+ this.removeEventListener("keyup", p(Pc, this));
4242
4249
  return;
4243
4250
  }
4244
4251
  this.dispatchEvent(new CustomEvent(_.REQUEST_USER_INPUT, {
4245
4252
  bubbles: !0,
4246
4253
  composed: !0
4247
4254
  }));
4248
- }), d(this, Nc, (e) => {
4255
+ }), d(this, Fc, (e) => {
4249
4256
  let { metaKey: t, altKey: n, key: r } = e;
4250
4257
  if (t || n || !this.keysUsed.includes(r)) {
4251
- this.removeEventListener("keyup", p(Mc, this));
4258
+ this.removeEventListener("keyup", p(Pc, this));
4252
4259
  return;
4253
4260
  }
4254
- this.addEventListener("keyup", p(Mc, this), { once: !0 });
4255
- }), this.attachShadow({ mode: "open" }).appendChild(kc.content.cloneNode(!0));
4261
+ this.addEventListener("keyup", p(Pc, this), { once: !0 });
4262
+ }), this.attachShadow({ mode: "open" }).appendChild(jc.content.cloneNode(!0));
4256
4263
  }
4257
4264
  get keysUsed() {
4258
4265
  return ["Enter", " "];
4259
4266
  }
4260
4267
  connectedCallback() {
4261
4268
  var e;
4262
- m(Ac, this, this.closest("vindral-controller")), (e = p(Ac, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.enable();
4269
+ m(Mc, this, this.closest("vindral-controller")), (e = p(Mc, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.enable();
4263
4270
  }
4264
4271
  enable() {
4265
- this.addEventListener("click", p(jc, this)), this.addEventListener("keydown", p(Nc, this)), this.tabIndex = 0;
4272
+ this.addEventListener("click", p(Nc, this)), this.addEventListener("keydown", p(Fc, this)), this.tabIndex = 0;
4266
4273
  }
4267
4274
  disable() {
4268
- this.removeEventListener("click", p(jc, this)), this.removeEventListener("keydown", p(Nc, this)), this.removeEventListener("keyup", p(Mc, this)), this.tabIndex = -1;
4275
+ this.removeEventListener("click", p(Nc, this)), this.removeEventListener("keydown", p(Fc, this)), this.removeEventListener("keyup", p(Pc, this)), this.tabIndex = -1;
4269
4276
  }
4270
4277
  disconnectedCallback() {
4271
4278
  var e;
4272
- (e = p(Ac, this)) == null || e.disconnectListener(this), this.disable();
4279
+ (e = p(Mc, this)) == null || e.disconnectListener(this), this.disable();
4273
4280
  }
4274
4281
  };
4275
- e(Pc, "observedAttributes", [
4282
+ e(Ic, "observedAttributes", [
4276
4283
  "hidden",
4277
4284
  g.NEEDS_USER_INPUT_VIDEO,
4278
4285
  g.NEEDS_USER_INPUT_AUDIO,
4279
4286
  g.PAUSED
4280
4287
  ]);
4281
4288
  //#endregion
4289
+ //#region ../../libs/player-next/src/components/VindralCenterOverlay.ts
4290
+ var Lc = document.createElement("template");
4291
+ Lc.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";
4292
+ var Rc = class extends HTMLElement {
4293
+ constructor() {
4294
+ super(), this.attachShadow({ mode: "open" }).appendChild(Lc.content.cloneNode(!0));
4295
+ }
4296
+ attributeChangedCallback(e, t, n) {
4297
+ t !== n && e === "poster" && this.style.setProperty("--_backdrop-image", n ? `url("${n}")` : "none");
4298
+ }
4299
+ };
4300
+ e(Rc, "observedAttributes", [
4301
+ "backdrop",
4302
+ "poster",
4303
+ "disable-backdrop"
4304
+ ]);
4305
+ //#endregion
4282
4306
  //#region ../../libs/player-next/src/components/VindralMessage.ts
4283
- var Fc = document.createElement("template");
4284
- Fc.innerHTML = "\n <style>\n :host,\n #background {\n position: absolute;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n font-size: 20px;\n color: var(--fg-strong);\n pointer-events: none;\n transition: opacity 100ms;\n background-color: rgba(0, 0, 0, 0.3);\n }\n\n :host([hidden]) {\n opacity: 0;\n }\n\n #message-container {\n position: absolute;\n left: 50%;\n bottom: calc(50% + var(--play-overlay-icon-size));\n transform: translateX(-50%);\n display: flex;\n flex-direction: column;\n align-items: center;\n width: max-content;\n max-width: 90%;\n pointer-events: none;\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 #message-container {\n bottom: 0;\n top: var(--padding-1);\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 <div id=\"background\"></div>\n <div id=\"message-container\">\n <h1 id=\"title\"></h1>\n <p id=\"description\"></p>\n </div>\n";
4285
- var Ic = /* @__PURE__ */ new WeakMap(), Lc = /* @__PURE__ */ new WeakMap(), Rc = /* @__PURE__ */ new WeakMap(), zc = class extends HTMLElement {
4307
+ var zc = document.createElement("template");
4308
+ zc.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";
4309
+ var Bc = /* @__PURE__ */ new WeakMap(), Vc = /* @__PURE__ */ new WeakMap(), Hc = class extends HTMLElement {
4286
4310
  constructor() {
4287
- super(), d(this, Ic, void 0), d(this, Lc, void 0), d(this, Rc, void 0);
4311
+ super(), d(this, Bc, void 0), d(this, Vc, void 0);
4288
4312
  let e = this.attachShadow({ mode: "open" });
4289
- e.appendChild(Fc.content.cloneNode(!0)), m(Ic, this, e.querySelector("#title")), m(Lc, this, e.querySelector("#description")), m(Rc, this, e.querySelector("#background"));
4313
+ e.appendChild(zc.content.cloneNode(!0)), m(Bc, this, e.querySelector("#title")), m(Vc, this, e.querySelector("#description"));
4314
+ }
4315
+ connectedCallback() {
4316
+ this.hasAttribute("role") || (this.setAttribute("role", "alert"), this.setAttribute("aria-atomic", "true"));
4290
4317
  }
4291
- connectedCallback() {}
4292
- disconnectedCallback() {}
4293
4318
  attributeChangedCallback(e, t, n) {
4294
- t !== n && (e === "title" ? p(Ic, this).textContent = n : e === "description" ? p(Lc, this).textContent = n : e === "background-image" && (p(Rc, this).style.backgroundImage = `url(${n})`));
4319
+ t !== n && (e === "title" ? p(Bc, this).textContent = n : e === "description" && (p(Vc, this).textContent = n));
4295
4320
  }
4296
4321
  };
4297
- e(zc, "observedAttributes", [
4322
+ e(Hc, "observedAttributes", [
4298
4323
  "title",
4299
4324
  "description",
4300
- "background-image",
4301
4325
  "hidden"
4302
4326
  ]);
4303
4327
  //#endregion
4304
4328
  //#region ../../libs/player-next/src/components/VindralPlayOverlay.ts
4305
- var Bc = document.createElement("template");
4306
- Bc.innerHTML = "\n <style>\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 1;\n pointer-events: none;\n }\n\n :host([hidden]) {\n display: none;\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";
4307
- var Vc = /* @__PURE__ */ new WeakMap(), Hc = class extends HTMLElement {
4329
+ var Uc = document.createElement("template");
4330
+ Uc.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";
4331
+ var Wc = /* @__PURE__ */ new WeakMap(), Gc = class extends HTMLElement {
4308
4332
  constructor() {
4309
- super(), d(this, Vc, null), this.attachShadow({ mode: "open" }).appendChild(Bc.content.cloneNode(!0));
4333
+ super(), d(this, Wc, null), this.attachShadow({ mode: "open" }).appendChild(Uc.content.cloneNode(!0));
4310
4334
  }
4311
4335
  connectedCallback() {
4312
4336
  var e;
4313
- m(Vc, this, this.closest("vindral-controller")), (e = p(Vc, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.tabIndex = 0;
4337
+ m(Wc, this, this.closest("vindral-controller")), (e = p(Wc, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.tabIndex = 0;
4314
4338
  }
4315
4339
  disconnectedCallback() {
4316
4340
  var e;
4317
- (e = p(Vc, this)) == null || e.disconnectListener(this);
4341
+ (e = p(Wc, this)) == null || e.disconnectListener(this);
4318
4342
  }
4319
4343
  attributeChangedCallback(e, t, n) {
4320
4344
  t !== n && e === "hidden" && !v(n) && this.focus();
4321
4345
  }
4322
4346
  };
4323
- e(Hc, "observedAttributes", ["hidden"]);
4347
+ e(Gc, "observedAttributes", ["hidden"]);
4324
4348
  //#endregion
4325
4349
  //#region ../../libs/player-next/src/components/VolumeRange.ts
4326
- var Uc, Wc = document.createElement("template");
4327
- Wc.innerHTML = "\n <style>\n :host {\n display: var(--volume-range-display);\n width: 80px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) {\n background: rgba(255, 255, 255, 0.15);\n }\n }\n\n :host(:active) {\n background: rgba(255, 255, 255, 0.25);\n }\n </style>\n";
4328
- var Gc = (e) => `${Math.round(e * 100)}%`, Kc = /* @__PURE__ */ new WeakMap(), qc = class extends jr {
4350
+ var Kc, qc = document.createElement("template");
4351
+ qc.innerHTML = "\n <style>\n :host {\n display: var(--volume-range-display);\n width: 80px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) {\n background: rgba(255, 255, 255, 0.15);\n }\n }\n\n :host(:active) {\n background: rgba(255, 255, 255, 0.25);\n }\n </style>\n";
4352
+ var Jc = (e) => `${Math.round(e * 100)}%`, Yc = /* @__PURE__ */ new WeakMap(), Xc = class extends jr {
4329
4353
  constructor() {
4330
4354
  var e;
4331
- super(), d(this, Kc, () => {
4355
+ super(), d(this, Yc, () => {
4332
4356
  let e = this.range.valueAsNumber;
4333
4357
  this.dispatchEvent(new CustomEvent(_.SET_VOLUME, {
4334
4358
  bubbles: !0,
4335
4359
  composed: !0,
4336
4360
  detail: e
4337
4361
  }));
4338
- }), (e = this.shadowRoot) == null || e.appendChild(Wc.content.cloneNode(!0));
4362
+ }), (e = this.shadowRoot) == null || e.appendChild(qc.content.cloneNode(!0));
4339
4363
  }
4340
4364
  connectedCallback() {
4341
- super.connectedCallback(), this.range.addEventListener("input", p(Kc, this)), this.range.setAttribute("aria-label", "volume");
4365
+ super.connectedCallback(), this.range.addEventListener("input", p(Yc, this)), this.range.setAttribute("aria-label", "volume");
4342
4366
  }
4343
4367
  disconnectedCallback() {
4344
- super.disconnectedCallback(), this.range.removeEventListener("input", p(Kc, this));
4368
+ super.disconnectedCallback(), this.range.removeEventListener("input", p(Yc, this));
4345
4369
  }
4346
4370
  attributeChangedCallback(e, t, n) {
4347
- 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", Gc(this.range.valueAsNumber)), this.updateBar());
4371
+ 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", Jc(this.range.valueAsNumber)), this.updateBar());
4348
4372
  }
4349
4373
  get volume() {
4350
4374
  var e;
@@ -4354,15 +4378,15 @@ var Gc = (e) => `${Math.round(e * 100)}%`, Kc = /* @__PURE__ */ new WeakMap(), q
4354
4378
  return this.hasAttribute(g.MUTED);
4355
4379
  }
4356
4380
  };
4357
- Uc = qc, e(qc, "observedAttributes", [
4358
- ...y(Uc, "observedAttributes", Uc),
4381
+ Kc = Xc, e(Xc, "observedAttributes", [
4382
+ ...y(Kc, "observedAttributes", Kc),
4359
4383
  g.MUTED,
4360
4384
  g.VOLUME
4361
4385
  ]);
4362
4386
  //#endregion
4363
4387
  //#region ../../libs/player-next/src/registerComponents.ts
4364
- function Jc() {
4365
- customElements.define("vindral-controller", Mi), customElements.define("vindral-control-bar", Fn), customElements.define("vindral-advanced-rendition-menu", Ge), customElements.define("vindral-advanced-rendition-menu-list", rt), customElements.define("vindral-play-button", po), customElements.define("vindral-mute-button", oo), customElements.define("vindral-buffering-overlay", At), customElements.define("vindral-scroll-overlay", Vs), customElements.define("vindral-play-overlay", Hc), customElements.define("vindral-user-input-play-overlay", Pc), customElements.define("vindral-fullscreen-button", Sa), customElements.define("vindral-rendition-levels-menu", ps), customElements.define("vindral-rendition-levels-menu-list", Ss), customElements.define("vindral-channel-grid-button", On), customElements.define("vindral-channel-grid", en), customElements.define("vindral-channel-grid-item", Wt), customElements.define("vindral-pip-button", lo), customElements.define("vindral-airplay-button", Ct), customElements.define("vindral-cast-button", Pt), customElements.define("vindral-cast-overlay", Bt), customElements.define("vindral-buffering-icon", Dt), customElements.define("vindral-language-menu", Da), customElements.define("vindral-language-menu-list", Va), customElements.define("vindral-message", zc), customElements.define("vindral-volume-range", qc), customElements.define("vindral-poster-overlay", as), customElements.define("vindral-player", Go), customElements.define("vindral-seek-bar", gc), customElements.define("vindral-live-button", ro);
4388
+ function Zc() {
4389
+ customElements.define("vindral-controller", Mi), customElements.define("vindral-control-bar", Fn), customElements.define("vindral-advanced-rendition-menu", Ge), customElements.define("vindral-advanced-rendition-menu-list", rt), customElements.define("vindral-play-button", po), customElements.define("vindral-mute-button", oo), customElements.define("vindral-buffering-overlay", At), customElements.define("vindral-scroll-overlay", Us), customElements.define("vindral-play-overlay", Gc), customElements.define("vindral-user-input-play-overlay", Ic), customElements.define("vindral-fullscreen-button", Sa), customElements.define("vindral-rendition-levels-menu", gs), customElements.define("vindral-rendition-levels-menu-list", Ts), customElements.define("vindral-channel-grid-button", On), customElements.define("vindral-channel-grid", en), customElements.define("vindral-channel-grid-item", Wt), customElements.define("vindral-pip-button", lo), customElements.define("vindral-airplay-button", Ct), customElements.define("vindral-cast-button", Pt), customElements.define("vindral-cast-overlay", Bt), customElements.define("vindral-buffering-icon", Dt), customElements.define("vindral-language-menu", Da), customElements.define("vindral-language-menu-list", Va), customElements.define("vindral-center-overlay", Rc), customElements.define("vindral-message", Hc), customElements.define("vindral-volume-range", Xc), customElements.define("vindral-poster-overlay", cs), customElements.define("vindral-player", qo), customElements.define("vindral-seek-bar", vc), customElements.define("vindral-live-button", ro);
4366
4390
  }
4367
4391
  //#endregion
4368
- export { Jc as t };
4392
+ export { Zc as t };