@webitel/ui-sdk 25.12.26 → 25.12.27

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.
@@ -3,10 +3,10 @@ var ot = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
5
  var Xt = (n, t, s) => t in n ? Qt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
6
- var M = (n, t, s) => Xt(n, typeof t != "symbol" ? t + "" : t, s), X = (n, t, s) => t.has(n) || ot("Cannot " + s);
6
+ var N = (n, t, s) => Xt(n, typeof t != "symbol" ? t + "" : t, s), X = (n, t, s) => t.has(n) || ot("Cannot " + s);
7
7
  var i = (n, t, s) => (X(n, t, "read from private field"), s ? s.call(n) : t.get(n)), d = (n, t, s) => t.has(n) ? ot("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), c = (n, t, s, r) => (X(n, t, "write to private field"), r ? r.call(n, s) : t.set(n, s), s), a = (n, t, s) => (X(n, t, "access private method"), s);
8
- import { z as Yt, y as ut, A as j, B as Zt, b as ti, E as nt, e as lt, C as _, F as ii, G as ei, d as si, H as ai, l as rt, J as dt, D as ni, L as Y, K as Z } from "./install-CrrAB4P5.js";
9
- import { R as ri } from "./vidstack-DqAw8m9J-DyYO78jE.js";
8
+ import { A as Yt, z as ut, B as j, C as Zt, b as ti, E as nt, e as lt, F as _, G as ii, H as ei, f as si, J as ai, l as rt, K as dt, D as ni, L as Y, M as Z } from "./install-A9G4M7-6.js";
9
+ import { R as ri } from "./vidstack-DqAw8m9J-CL4FNO5F.js";
10
10
  let q = null, K = [], z = [];
11
11
  function ht() {
12
12
  return q ?? (q = new AudioContext());
@@ -136,7 +136,7 @@ k = new WeakMap(), A = new WeakMap(), D = new WeakMap(), J = new WeakSet(), pt =
136
136
  function ct(n) {
137
137
  return (n == null ? void 0 : n.type) === "blur" || document.visibilityState === "hidden" ? "hidden" : document.hasFocus() ? "active" : "passive";
138
138
  }
139
- var O, h, b, L, x, S, H, G, e, o, yt, $, N, gt, bt, vt, Tt, Q, at, u, pi, T, kt, it, St, wt, Pt, W, Ct, Et, At, Lt, xt, Gt, $t, Nt, Mt, Rt, Dt, Ot, Ht, It, Ft, Ut, Vt, Bt;
139
+ var O, h, b, L, x, S, H, G, e, o, yt, $, M, gt, bt, vt, Tt, Q, at, u, pi, T, kt, it, St, wt, Pt, W, Ct, Et, At, Lt, xt, Gt, $t, Mt, Nt, Rt, Dt, Ot, Ht, It, Ft, Ut, Vt, Bt;
140
140
  class mi {
141
141
  constructor(t, s) {
142
142
  d(this, e);
@@ -154,10 +154,10 @@ class mi {
154
154
  * resolve that by retrieving time updates in a request animation frame loop.
155
155
  */
156
156
  d(this, $, 0);
157
- d(this, N, -1);
157
+ d(this, M, -1);
158
158
  d(this, Q);
159
159
  d(this, at);
160
- c(this, O, t), c(this, h, s), c(this, G, new nt(t.media)), a(this, e, bt).call(this), i(this, H).connect(), lt(a(this, e, Mt).bind(this)), ut(a(this, e, yt).bind(this));
160
+ c(this, O, t), c(this, h, s), c(this, G, new nt(t.media)), a(this, e, bt).call(this), i(this, H).connect(), lt(a(this, e, Nt).bind(this)), ut(a(this, e, yt).bind(this));
161
161
  }
162
162
  }
163
163
  O = new WeakMap(), h = new WeakMap(), b = new WeakMap(), L = new WeakMap(), x = new WeakMap(), S = new WeakMap(), H = new WeakMap(), G = new WeakMap(), e = new WeakSet(), o = function() {
@@ -165,15 +165,15 @@ O = new WeakMap(), h = new WeakMap(), b = new WeakMap(), L = new WeakMap(), x =
165
165
  }, yt = function() {
166
166
  var t;
167
167
  c(this, L, !1), c(this, x, !1), i(this, S).stop(), i(this, G).abort(), (t = i(this, Q)) == null || t.clear();
168
- }, $ = new WeakMap(), N = new WeakMap(), gt = function() {
168
+ }, $ = new WeakMap(), M = new WeakMap(), gt = function() {
169
169
  const t = i(this, e, o).currentTime;
170
- !(_ && t - i(this, N) < 0.35) && i(this, $) !== t && (a(this, e, T).call(this, t), c(this, $, t));
170
+ !(_ && t - i(this, M) < 0.35) && i(this, $) !== t && (a(this, e, T).call(this, t), c(this, $, t));
171
171
  }, bt = function() {
172
172
  a(this, e, u).call(this, "loadstart", a(this, e, kt)), a(this, e, u).call(this, "abort", a(this, e, it)), a(this, e, u).call(this, "emptied", a(this, e, St)), a(this, e, u).call(this, "error", a(this, e, Bt)), a(this, e, u).call(this, "volumechange", a(this, e, Ot));
173
173
  }, vt = function() {
174
174
  i(this, L) || (a(this, e, u).call(this, "loadeddata", a(this, e, wt)), a(this, e, u).call(this, "loadedmetadata", a(this, e, Pt)), a(this, e, u).call(this, "canplay", a(this, e, At)), a(this, e, u).call(this, "canplaythrough", a(this, e, Lt)), a(this, e, u).call(this, "durationchange", a(this, e, Dt)), a(this, e, u).call(this, "play", a(this, e, Ct)), a(this, e, u).call(this, "progress", a(this, e, Ft)), a(this, e, u).call(this, "stalled", a(this, e, Gt)), a(this, e, u).call(this, "suspend", a(this, e, Ut)), a(this, e, u).call(this, "ratechange", a(this, e, Vt)), c(this, L, !0));
175
175
  }, Tt = function() {
176
- i(this, x) || (a(this, e, u).call(this, "pause", a(this, e, Et)), a(this, e, u).call(this, "playing", a(this, e, xt)), a(this, e, u).call(this, "seeked", a(this, e, Ht)), a(this, e, u).call(this, "seeking", a(this, e, It)), a(this, e, u).call(this, "ended", a(this, e, Nt)), a(this, e, u).call(this, "waiting", a(this, e, $t)), c(this, x, !0));
176
+ i(this, x) || (a(this, e, u).call(this, "pause", a(this, e, Et)), a(this, e, u).call(this, "playing", a(this, e, xt)), a(this, e, u).call(this, "seeked", a(this, e, Ht)), a(this, e, u).call(this, "seeking", a(this, e, It)), a(this, e, u).call(this, "ended", a(this, e, Mt)), a(this, e, u).call(this, "waiting", a(this, e, $t)), c(this, x, !0));
177
177
  }, Q = new WeakMap(), at = new WeakMap(), u = function(t, s) {
178
178
  i(this, G).add(t, s.bind(this));
179
179
  }, pi = function(t) {
@@ -193,7 +193,7 @@ O = new WeakMap(), h = new WeakMap(), b = new WeakMap(), L = new WeakMap(), x =
193
193
  }, wt = function(t) {
194
194
  i(this, h).notify("loaded-data", void 0, t);
195
195
  }, Pt = function(t) {
196
- c(this, $, 0), c(this, N, -1), a(this, e, Tt).call(this), i(this, h).notify("loaded-metadata", void 0, t), (ii || _ && ei(i(this, h).$state.source())) && i(this, h).delegate.ready(a(this, e, W).call(this), t);
196
+ c(this, $, 0), c(this, M, -1), a(this, e, Tt).call(this), i(this, h).notify("loaded-metadata", void 0, t), (ii || _ && ei(i(this, h).$state.source())) && i(this, h).delegate.ready(a(this, e, W).call(this), t);
197
197
  }, W = function() {
198
198
  return {
199
199
  provider: si(i(this, h).$provider),
@@ -215,9 +215,9 @@ O = new WeakMap(), h = new WeakMap(), b = new WeakMap(), L = new WeakMap(), x =
215
215
  i(this, h).notify("stalled", void 0, t), i(this, e, o).readyState < 3 && (c(this, b, !0), i(this, h).notify("waiting", void 0, t));
216
216
  }, $t = function(t) {
217
217
  i(this, e, o).readyState < 3 && (c(this, b, !0), i(this, h).notify("waiting", void 0, t));
218
- }, Nt = function(t) {
218
+ }, Mt = function(t) {
219
219
  i(this, S).stop(), a(this, e, T).call(this, i(this, e, o).duration, t), i(this, h).notify("end", void 0, t), i(this, h).$state.loop() && ai(i(this, e, o).controls) && (i(this, e, o).controls = !1);
220
- }, Mt = function() {
220
+ }, Nt = function() {
221
221
  const t = i(this, h).$state.paused(), s = i(this, H).visibility === "hidden";
222
222
  (t || s) && rt(i(this, e, o), "timeupdate", a(this, e, Rt).bind(this));
223
223
  }, Rt = function(t) {
@@ -231,7 +231,7 @@ O = new WeakMap(), h = new WeakMap(), b = new WeakMap(), L = new WeakMap(), x =
231
231
  };
232
232
  i(this, h).notify("volume-change", s, t);
233
233
  }, Ht = function(t) {
234
- c(this, N, i(this, e, o).currentTime), a(this, e, T).call(this, i(this, e, o).currentTime, t), i(this, h).notify("seeked", i(this, e, o).currentTime, t), Math.trunc(i(this, e, o).currentTime) === Math.trunc(i(this, e, o).duration) && dt(i(this, e, o).duration) > dt(i(this, e, o).currentTime) && (a(this, e, T).call(this, i(this, e, o).duration, t), i(this, e, o).ended || i(this, h).player.dispatch(
234
+ c(this, M, i(this, e, o).currentTime), a(this, e, T).call(this, i(this, e, o).currentTime, t), i(this, h).notify("seeked", i(this, e, o).currentTime, t), Math.trunc(i(this, e, o).currentTime) === Math.trunc(i(this, e, o).duration) && dt(i(this, e, o).duration) > dt(i(this, e, o).currentTime) && (a(this, e, T).call(this, i(this, e, o).duration, t), i(this, e, o).ended || i(this, h).player.dispatch(
235
235
  new ni("media-play-request", {
236
236
  trigger: t
237
237
  })
@@ -303,9 +303,9 @@ var F, st;
303
303
  class ki {
304
304
  constructor(t, s) {
305
305
  d(this, F);
306
- M(this, "scope", Yt());
307
- M(this, "currentSrc", null);
308
- M(this, "audioGain");
306
+ N(this, "scope", Yt());
307
+ N(this, "currentSrc", null);
308
+ N(this, "audioGain");
309
309
  this.media = t, this.ctx = s, this.audioGain = new ui(t, (r) => {
310
310
  this.ctx.notify("audio-gain-change", r);
311
311
  });
@@ -401,7 +401,7 @@ y = new WeakMap(), U = new WeakMap(), V = new WeakMap(), w = new WeakMap(), v =
401
401
  class Si extends gi {
402
402
  constructor() {
403
403
  super(...arguments);
404
- M(this, "type", "airplay");
404
+ N(this, "type", "airplay");
405
405
  }
406
406
  get canPrompt() {
407
407
  return "WebKitPlaybackTargetAvailabilityEvent" in window;
@@ -5,15 +5,15 @@ var w = (t) => {
5
5
  var P = (t, e, a) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
6
6
  var u = (t, e, a) => P(t, typeof e != "symbol" ? e + "" : e, a), C = (t, e, a) => e.has(t) || w("Cannot " + a);
7
7
  var c = (t, e, a) => (C(t, e, "read from private field"), a ? a.call(t) : e.get(t)), m = (t, e, a) => e.has(t) ? w("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), y = (t, e, a, o) => (C(t, e, "write to private field"), o ? o.call(t, a) : e.set(t, a), a), s = (t, e, a) => (C(t, e, "access private method"), a);
8
- import { l as b, j as A, U as O, F as D, d as R, n as M } from "./install-CrrAB4P5.js";
9
- function U() {
8
+ import { l as b, k as A, V as O, G as D, f as R, o as G } from "./install-A9G4M7-6.js";
9
+ function M() {
10
10
  return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
11
11
  }
12
- function j() {
12
+ function L() {
13
13
  var t;
14
14
  return !!((t = window.cast) != null && t.framework);
15
15
  }
16
- function F() {
16
+ function N() {
17
17
  var t, e;
18
18
  return !!((e = (t = window.chrome) == null ? void 0 : t.cast) != null && e.isAvailable);
19
19
  }
@@ -26,15 +26,15 @@ function g() {
26
26
  function E() {
27
27
  return g().getCurrentSession();
28
28
  }
29
- function G() {
29
+ function T() {
30
30
  var t;
31
31
  return (t = E()) == null ? void 0 : t.getSessionObj().media[0];
32
32
  }
33
- function J(t) {
33
+ function z(t) {
34
34
  var a;
35
- return ((a = G()) == null ? void 0 : a.media.contentId) === (t == null ? void 0 : t.src);
35
+ return ((a = T()) == null ? void 0 : a.media.contentId) === (t == null ? void 0 : t.src);
36
36
  }
37
- function L() {
37
+ function U() {
38
38
  return {
39
39
  language: "en-US",
40
40
  autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,
@@ -43,14 +43,14 @@ function L() {
43
43
  androidReceiverCompatible: !0
44
44
  };
45
45
  }
46
- function N(t) {
46
+ function j(t) {
47
47
  return `Google Cast Error Code: ${t}`;
48
48
  }
49
- function V(t, e) {
49
+ function J(t, e) {
50
50
  return b(g(), t, e);
51
51
  }
52
52
  var n, r, S, k, I, l, d;
53
- class T {
53
+ class F {
54
54
  constructor() {
55
55
  m(this, r);
56
56
  u(this, "name", "google-cast");
@@ -94,26 +94,26 @@ class T {
94
94
  async load(e) {
95
95
  if (!c(this, n))
96
96
  throw Error("[vidstack] google cast player was not initialized");
97
- return new (await import("./vidstack-google-cast-DHfvKys1.js")).GoogleCastProvider(c(this, n), e);
97
+ return new (await import("./vidstack-google-cast-DUF-rvcM.js")).GoogleCastProvider(c(this, n), e);
98
98
  }
99
99
  }
100
100
  n = new WeakMap(), r = new WeakSet(), S = async function(e) {
101
- if (j()) return;
101
+ if (L()) return;
102
102
  const a = e.player.createEvent("google-cast-load-start");
103
- e.player.dispatch(a), await M(U()), await customElements.whenDefined("google-cast-launcher");
103
+ e.player.dispatch(a), await G(M()), await customElements.whenDefined("google-cast-launcher");
104
104
  const o = e.player.createEvent("google-cast-loaded", { trigger: a });
105
- if (e.player.dispatch(o), !F())
105
+ if (e.player.dispatch(o), !N())
106
106
  throw s(this, r, d).call(this, "CAST_NOT_AVAILABLE", "Google Cast not available on this platform.");
107
107
  return o;
108
108
  }, k = async function(e) {
109
109
  s(this, r, I).call(this, e);
110
110
  const a = await this.cast.requestSession();
111
111
  if (a)
112
- throw s(this, r, d).call(this, a.toUpperCase(), N(a));
112
+ throw s(this, r, d).call(this, a.toUpperCase(), j(a));
113
113
  }, I = function(e) {
114
114
  var a;
115
115
  (a = this.cast) == null || a.setOptions({
116
- ...L(),
116
+ ...U(),
117
117
  ...e
118
118
  });
119
119
  }, l = function(e, a, o) {
@@ -125,14 +125,14 @@ n = new WeakMap(), r = new WeakSet(), S = async function(e) {
125
125
  };
126
126
  const q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
127
127
  __proto__: null,
128
- GoogleCastLoader: T
128
+ GoogleCastLoader: F
129
129
  }, Symbol.toStringTag, { value: "Module" }));
130
130
  export {
131
131
  E as a,
132
- G as b,
133
- N as c,
132
+ T as b,
133
+ j as c,
134
134
  g,
135
- J as h,
136
- V as l,
135
+ z as h,
136
+ J as l,
137
137
  q as v
138
138
  };
@@ -2,16 +2,16 @@ var y = Object.defineProperty;
2
2
  var g = (s) => {
3
3
  throw TypeError(s);
4
4
  };
5
- var w = (s, t, i) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
6
- var c = (s, t, i) => w(s, typeof t != "symbol" ? t + "" : t, i), h = (s, t, i) => t.has(s) || g("Cannot " + i);
5
+ var M = (s, t, i) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
6
+ var c = (s, t, i) => M(s, typeof t != "symbol" ? t + "" : t, i), h = (s, t, i) => t.has(s) || g("Cannot " + i);
7
7
  var e = (s, t, i) => (h(s, t, "read from private field"), i ? i.call(s) : t.get(s)), l = (s, t, i) => t.has(s) ? g("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, i), p = (s, t, i, a) => (h(s, t, "write to private field"), a ? a.call(s, i) : t.set(s, i), i), u = (s, t, i) => (h(s, t, "access private method"), i);
8
- import { K as M, l as f, e as A, d as P, S as O, b as S } from "./install-CrrAB4P5.js";
8
+ import { M as w, l as f, e as A, f as P, U as O, b as S } from "./install-A9G4M7-6.js";
9
9
  var r, o, b, m;
10
10
  class J {
11
11
  constructor(t) {
12
12
  l(this, o);
13
13
  l(this, r);
14
- c(this, "src", M(""));
14
+ c(this, "src", w(""));
15
15
  /**
16
16
  * Defines which referrer is sent when fetching the resource.
17
17
  *
@@ -1,4 +1,4 @@
1
- import { c as d, a as i, I as l, e as m } from "./install-CrrAB4P5.js";
1
+ import { c as d, a as i, I as l, e as m } from "./install-A9G4M7-6.js";
2
2
  const p = /* @__PURE__ */ i(
3
3
  '<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>'
4
4
  );
@@ -0,0 +1,29 @@
1
+ var l = (i) => {
2
+ throw TypeError(i);
3
+ };
4
+ var m = (i, t, s) => t.has(i) || l("Cannot " + s);
5
+ var r = (i, t, s) => (m(i, t, "read from private field"), s ? s.call(i) : t.get(i)), e = (i, t, s) => t.has(i) ? l("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), h = (i, t, s, f) => (m(i, t, "write to private field"), f ? f.call(i, s) : t.set(i, s), s), c = (i, t, s) => (m(i, t, "access private method"), s);
6
+ import { m as p, v as u } from "./install-A9G4M7-6.js";
7
+ var o, a, n, d;
8
+ class F {
9
+ constructor(t) {
10
+ e(this, n);
11
+ e(this, o);
12
+ e(this, a);
13
+ h(this, a, t);
14
+ }
15
+ start() {
16
+ p(r(this, o)) && c(this, n, d).call(this);
17
+ }
18
+ stop() {
19
+ u(r(this, o)) && window.cancelAnimationFrame(r(this, o)), h(this, o, void 0);
20
+ }
21
+ }
22
+ o = new WeakMap(), a = new WeakMap(), n = new WeakSet(), d = function() {
23
+ h(this, o, window.requestAnimationFrame(() => {
24
+ p(r(this, o)) || (r(this, a).call(this), c(this, n, d).call(this));
25
+ }));
26
+ };
27
+ export {
28
+ F as R
29
+ };
@@ -1,8 +1,8 @@
1
1
  var a = Object.defineProperty;
2
2
  var o = (i, e, t) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var r = (i, e, t) => o(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { s as p } from "./install-CrrAB4P5.js";
5
- import { H as d, a as u } from "./vidstack-Bq6c3Bam-qlp5tBOT.js";
4
+ import { s as p } from "./install-A9G4M7-6.js";
5
+ import { H as d, a as u } from "./vidstack-Bq6c3Bam-Bpshd13A.js";
6
6
  class n extends d {
7
7
  constructor(t, s) {
8
8
  super(t, s);
@@ -5,9 +5,9 @@ var Y = (n) => {
5
5
  var wt = (n, t, e) => t in n ? vt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
6
6
  var I = (n, t, e) => wt(n, typeof t != "symbol" ? t + "" : t, e), b = (n, t, e) => t.has(n) || Y("Cannot " + e);
7
7
  var i = (n, t, e) => (b(n, t, "read from private field"), e ? e.call(n) : t.get(n)), f = (n, t, e) => t.has(n) ? Y("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), p = (n, t, e, r) => (b(n, t, "write to private field"), r ? r.call(n, e) : t.set(n, e), e), h = (n, t, e) => (b(n, t, "access private method"), e);
8
- import { q as Et, b as _, p as Lt, d as At, Q as z, l as J, e as Dt, D as N, f as xt, h as O, T as Mt, L as q, r as Ct, t as Nt, u as Rt, j as Ft, k as Z, m as Pt, n as qt, o as _t } from "./install-CrrAB4P5.js";
9
- import { VideoProvider as $t } from "./vidstack-video-DS-N7qQ5.js";
10
- import { R as jt } from "./vidstack-DqAw8m9J-DyYO78jE.js";
8
+ import { r as Et, b as _, d as Lt, f as At, Q as z, l as J, e as Dt, D as N, h as xt, j as O, T as Mt, L as q, t as Ct, u as Nt, v as Rt, k as Ft, m as Z, n as Pt, o as qt, q as _t } from "./install-A9G4M7-6.js";
9
+ import { VideoProvider as $t } from "./vidstack-video-DK5nUu2T.js";
10
+ import { R as jt } from "./vidstack-DqAw8m9J-CL4FNO5F.js";
11
11
  function W(n) {
12
12
  try {
13
13
  return new Intl.DisplayNames(navigator.languages, { type: "language" }).of(n) ?? null;
@@ -5,9 +5,9 @@ var Q = (d) => {
5
5
  var vt = (d, t, s) => t in d ? Lt(d, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[t] = s;
6
6
  var G = (d, t, s) => vt(d, typeof t != "symbol" ? t + "" : t, s), O = (d, t, s) => t.has(d) || Q("Cannot " + s);
7
7
  var e = (d, t, s) => (O(d, t, "read from private field"), s ? s.call(d) : t.get(d)), T = (d, t, s) => t.has(d) ? Q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(d) : t.set(d, s), l = (d, t, s, i) => (O(d, t, "write to private field"), i ? i.call(d, s) : t.set(d, s), s), r = (d, t, s) => (O(d, t, "access private method"), s);
8
- import { z as St, M as L, V as Z, y as At, D as tt, d as V, l as et, e as It, W as bt, L as Rt } from "./install-CrrAB4P5.js";
9
- import { R as wt } from "./vidstack-DqAw8m9J-DyYO78jE.js";
10
- import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-CgOqqLnl.js";
8
+ import { A as St, N as L, W as Z, z as At, D as tt, f as V, l as et, e as It, X as bt, L as Rt } from "./install-A9G4M7-6.js";
9
+ import { R as wt } from "./vidstack-DqAw8m9J-CL4FNO5F.js";
10
+ import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-DknwOKzI.js";
11
11
  var g, _, at;
12
12
  class _t {
13
13
  constructor(t) {
@@ -126,7 +126,7 @@ p = new WeakMap(), k = new WeakMap(), M = new WeakMap(), c = new WeakSet(), $ =
126
126
  U = function(t, s) {
127
127
  return s.name === t.label && s.language === t.language && s.subtype.toLowerCase() === t.kind.toLowerCase();
128
128
  };
129
- var o, h, C, E, D, I, v, S, b, N, f, R, a, ht, ct, F, dt, q, ut, lt, mt, B, X, Y, K, Tt, ft, gt, z, kt, W, yt, j, y, pt, Ct, J, Et;
129
+ var o, h, C, E, D, I, v, S, b, N, f, R, a, ht, ct, F, dt, q, ut, lt, mt, X, B, Y, K, Tt, ft, gt, z, kt, W, yt, j, y, pt, Ct, J, Et;
130
130
  class Ht {
131
131
  constructor(t, s) {
132
132
  T(this, a);
@@ -240,12 +240,12 @@ class Ht {
240
240
  o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D = new WeakMap(), I = new WeakMap(), v = new WeakMap(), S = new WeakMap(), b = new WeakMap(), N = new WeakMap(), f = new WeakMap(), R = new WeakMap(), a = new WeakSet(), ht = function() {
241
241
  Nt(
242
242
  cast.framework.CastContextEventType.CAST_STATE_CHANGED,
243
- r(this, a, B).bind(this)
243
+ r(this, a, X).bind(this)
244
244
  );
245
245
  }, ct = function() {
246
246
  const t = cast.framework.RemotePlayerEventType, s = {
247
- [t.IS_CONNECTED_CHANGED]: r(this, a, B),
248
- [t.IS_MEDIA_LOADED_CHANGED]: r(this, a, X),
247
+ [t.IS_CONNECTED_CHANGED]: r(this, a, X),
248
+ [t.IS_MEDIA_LOADED_CHANGED]: r(this, a, B),
249
249
  [t.CAN_CONTROL_VOLUME_CHANGED]: r(this, a, Y),
250
250
  [t.CAN_SEEK_CHANGED]: r(this, a, K),
251
251
  [t.DURATION_CHANGED]: r(this, a, gt),
@@ -267,7 +267,7 @@ o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D =
267
267
  e(this, f) || (l(this, v, 0), l(this, S, new L(0, 0))), e(this, b).stop(), l(this, I, 0), l(this, f, null);
268
268
  }, dt = function() {
269
269
  const t = new tt("resume-session", { detail: this.session });
270
- r(this, a, X).call(this, t);
270
+ r(this, a, B).call(this, t);
271
271
  const { muted: s, volume: i, savedState: n } = e(this, h).$state, m = n();
272
272
  this.setCurrentTime(Math.max(e(this, o).currentTime, (m == null ? void 0 : m.currentTime) ?? 0)), this.setMuted(s()), this.setVolume(i()), (m == null ? void 0 : m.paused) === !1 && this.play();
273
273
  }, q = function() {
@@ -284,12 +284,12 @@ o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D =
284
284
  r(this, a, ft).call(this);
285
285
  }, mt = function(t) {
286
286
  e(this, N)[t.type].call(this, t);
287
- }, B = function(t) {
287
+ }, X = function(t) {
288
288
  const s = this.cast.getCastState(), i = s === cast.framework.CastState.CONNECTED ? "connected" : s === cast.framework.CastState.CONNECTING ? "connecting" : "disconnected";
289
289
  if (e(this, D) === i) return;
290
290
  const n = { type: "google-cast", state: i }, m = r(this, a, y).call(this, t);
291
291
  l(this, D, i), e(this, h).notify("remote-playback-change", n, m), i === "disconnected" && r(this, a, ut).call(this);
292
- }, X = function(t) {
292
+ }, B = function(t) {
293
293
  if (!!!e(this, o).isMediaLoaded) return;
294
294
  const i = V(e(this, h).$state.source);
295
295
  Promise.resolve().then(() => {
@@ -1,32 +1,32 @@
1
1
  var rt = Object.defineProperty;
2
- var N = (n) => {
2
+ var q = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
5
  var ot = (n, t, i) => t in n ? rt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[t] = i;
6
- var _ = (n, t, i) => ot(n, typeof t != "symbol" ? t + "" : t, i), R = (n, t, i) => t.has(n) || N("Cannot " + i);
7
- var e = (n, t, i) => (R(n, t, "read from private field"), i ? i.call(n) : t.get(n)), p = (n, t, i) => t.has(n) ? N("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, i), f = (n, t, i, s) => (R(n, t, "write to private field"), s ? s.call(n, i) : t.set(n, i), i), a = (n, t, i) => (R(n, t, "access private method"), i);
8
- import { i as ht, b as C, p as at, d as O, Q as V, l as j, e as dt, D as x, f as ut, T as ct, h as k, L as $, j as lt, k as q, m as pt, n as ft, o as vt } from "./install-CrrAB4P5.js";
9
- import { VideoProvider as yt } from "./vidstack-video-DS-N7qQ5.js";
10
- import { R as gt } from "./vidstack-DqAw8m9J-DyYO78jE.js";
6
+ var _ = (n, t, i) => ot(n, typeof t != "symbol" ? t + "" : t, i), R = (n, t, i) => t.has(n) || q("Cannot " + i);
7
+ var e = (n, t, i) => (R(n, t, "read from private field"), i ? i.call(n) : t.get(n)), f = (n, t, i) => t.has(n) ? q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, i), p = (n, t, i, s) => (R(n, t, "write to private field"), s ? s.call(n, i) : t.set(n, i), i), a = (n, t, i) => (R(n, t, "access private method"), i);
8
+ import { i as ht, b as C, d as at, f as O, Q as N, l as V, e as dt, D as x, h as ut, T as ct, j, L as $, k as lt, m as k, n as ft, o as pt, q as vt } from "./install-A9G4M7-6.js";
9
+ import { VideoProvider as yt } from "./vidstack-video-DK5nUu2T.js";
10
+ import { R as gt } from "./vidstack-DqAw8m9J-CL4FNO5F.js";
11
11
  const Lt = (n) => ut(n);
12
12
  var T, h, o, D, b, r, E, M, U, F, Q, K, W, B, J, X, Y, z, G, Z, tt;
13
13
  class St {
14
14
  constructor(t, i) {
15
- p(this, r);
16
- p(this, T);
17
- p(this, h);
18
- p(this, o, null);
19
- p(this, D, null);
15
+ f(this, r);
16
+ f(this, T);
17
+ f(this, h);
18
+ f(this, o, null);
19
+ f(this, D, null);
20
20
  _(this, "config", {});
21
- p(this, b, /* @__PURE__ */ new Set());
22
- f(this, T, t), f(this, h, i);
21
+ f(this, b, /* @__PURE__ */ new Set());
22
+ p(this, T, t), p(this, h, i);
23
23
  }
24
24
  get instance() {
25
25
  return e(this, o);
26
26
  }
27
27
  setup(t) {
28
28
  const { streamType: i } = e(this, h).$state, s = O(i).includes("live"), c = O(i).includes("ll-");
29
- f(this, o, new t({
29
+ p(this, o, new t({
30
30
  lowLatencyMode: c,
31
31
  backBufferLength: c ? 4 : s ? 8 : void 0,
32
32
  renderTextTracksNatively: !1,
@@ -38,7 +38,7 @@ class St {
38
38
  for (const l of e(this, b)) l(e(this, o));
39
39
  e(this, h).player.dispatch("hls-instance", {
40
40
  detail: e(this, o)
41
- }), e(this, o).attachMedia(e(this, T)), e(this, o).on(t.Events.AUDIO_TRACK_SWITCHED, a(this, r, W).bind(this)), e(this, o).on(t.Events.LEVEL_SWITCHED, a(this, r, B).bind(this)), e(this, o).on(t.Events.LEVEL_LOADED, a(this, r, X).bind(this)), e(this, o).on(t.Events.LEVEL_UPDATED, a(this, r, J).bind(this)), e(this, o).on(t.Events.NON_NATIVE_TEXT_TRACKS_FOUND, a(this, r, Q).bind(this)), e(this, o).on(t.Events.CUES_PARSED, a(this, r, K).bind(this)), e(this, h).qualities[V.enableAuto] = a(this, r, G).bind(this), j(e(this, h).qualities, "change", a(this, r, Z).bind(this)), j(e(this, h).audioTracks, "change", a(this, r, tt).bind(this)), f(this, D, dt(a(this, r, M).bind(this)));
41
+ }), e(this, o).attachMedia(e(this, T)), e(this, o).on(t.Events.AUDIO_TRACK_SWITCHED, a(this, r, W).bind(this)), e(this, o).on(t.Events.LEVEL_SWITCHED, a(this, r, B).bind(this)), e(this, o).on(t.Events.LEVEL_LOADED, a(this, r, X).bind(this)), e(this, o).on(t.Events.LEVEL_UPDATED, a(this, r, J).bind(this)), e(this, o).on(t.Events.NON_NATIVE_TEXT_TRACKS_FOUND, a(this, r, Q).bind(this)), e(this, o).on(t.Events.CUES_PARSED, a(this, r, K).bind(this)), e(this, h).qualities[N.enableAuto] = a(this, r, G).bind(this), V(e(this, h).qualities, "change", a(this, r, Z).bind(this)), V(e(this, h).audioTracks, "change", a(this, r, tt).bind(this)), p(this, D, dt(a(this, r, M).bind(this)));
42
42
  }
43
43
  onInstance(t) {
44
44
  return e(this, b).add(t), () => e(this, b).delete(t);
@@ -49,7 +49,7 @@ class St {
49
49
  }
50
50
  destroy() {
51
51
  var t, i;
52
- (t = e(this, o)) == null || t.destroy(), f(this, o, null), (i = e(this, D)) == null || i.call(this), f(this, D, null);
52
+ (t = e(this, o)) == null || t.destroy(), p(this, o, null), (i = e(this, D)) == null || i.call(this), p(this, D, null);
53
53
  }
54
54
  }
55
55
  T = new WeakMap(), h = new WeakMap(), o = new WeakMap(), D = new WeakMap(), b = new WeakMap(), r = new WeakSet(), E = function(t, i) {
@@ -76,7 +76,7 @@ T = new WeakMap(), h = new WeakMap(), o = new WeakMap(), D = new WeakMap(), b =
76
76
  kind: l.kind,
77
77
  default: l.default
78
78
  });
79
- w[k.readyState] = 2, w[k.onModeChange] = () => {
79
+ w[j.readyState] = 2, w[j.onModeChange] = () => {
80
80
  w.mode === "showing" ? (e(this, o).subtitleTrack = u, c = u) : c === u && (e(this, o).subtitleTrack = -1, c = -1);
81
81
  }, e(this, h).textTracks.add(w, s);
82
82
  }
@@ -111,7 +111,7 @@ T = new WeakMap(), h = new WeakMap(), o = new WeakMap(), D = new WeakMap(), b =
111
111
  d
112
112
  ), e(this, h).notify("duration-change", u, d);
113
113
  const w = e(this, o).media;
114
- e(this, o).currentLevel === -1 && e(this, h).qualities[V.setAuto](!0, d);
114
+ e(this, o).currentLevel === -1 && e(this, h).qualities[N.setAuto](!0, d);
115
115
  for (const y of e(this, o).audioTracks) {
116
116
  const H = {
117
117
  id: y.id.toString(),
@@ -161,11 +161,11 @@ T = new WeakMap(), h = new WeakMap(), o = new WeakMap(), D = new WeakMap(), b =
161
161
  var m, g, I, L, it, et, st, nt;
162
162
  class Et {
163
163
  constructor(t, i, s) {
164
- p(this, L);
165
- p(this, m);
166
- p(this, g);
167
- p(this, I);
168
- f(this, m, t), f(this, g, i), f(this, I, s), a(this, L, it).call(this);
164
+ f(this, L);
165
+ f(this, m);
166
+ f(this, g);
167
+ f(this, I);
168
+ p(this, m, t), p(this, g, i), p(this, I, s), a(this, L, it).call(this);
169
169
  }
170
170
  }
171
171
  m = new WeakMap(), g = new WeakMap(), I = new WeakMap(), L = new WeakSet(), it = async function() {
@@ -175,7 +175,7 @@ m = new WeakMap(), g = new WeakMap(), I = new WeakMap(), L = new WeakSet(), it =
175
175
  onLoadError: a(this, L, nt).bind(this)
176
176
  };
177
177
  let i = await mt(e(this, m), t);
178
- if (q(i) && !C(e(this, m)) && (i = await Tt(e(this, m), t)), !i) return null;
178
+ if (k(i) && !C(e(this, m)) && (i = await Tt(e(this, m), t)), !i) return null;
179
179
  if (!i.isSupported()) {
180
180
  const s = "[vidstack] `hls.js` is not supported in this environment";
181
181
  return e(this, g).player.dispatch(new x("hls-unsupported")), e(this, g).notify("error", { message: s, code: 4 }), null;
@@ -190,7 +190,7 @@ m = new WeakMap(), g = new WeakMap(), I = new WeakMap(), L = new WeakSet(), it =
190
190
  })
191
191
  ), e(this, I).call(this, t);
192
192
  }, nt = function(t) {
193
- const i = pt(t);
193
+ const i = ft(t);
194
194
  e(this, g).player.dispatch(
195
195
  new x("hls-lib-load-error", {
196
196
  detail: i
@@ -203,7 +203,7 @@ m = new WeakMap(), g = new WeakMap(), I = new WeakMap(), L = new WeakSet(), it =
203
203
  };
204
204
  async function Tt(n, t = {}) {
205
205
  var i, s, c, u, l;
206
- if (!q(n)) {
206
+ if (!k(n)) {
207
207
  if ((i = t.onLoadStart) == null || i.call(t), n.prototype && n.prototype !== Function)
208
208
  return (s = t.onLoaded) == null || s.call(t, n), n;
209
209
  try {
@@ -225,7 +225,7 @@ async function mt(n, t = {}) {
225
225
  if (C(n)) {
226
226
  (i = t.onLoadStart) == null || i.call(t);
227
227
  try {
228
- if (await ft(n), !vt(window.Hls))
228
+ if (await pt(n), !vt(window.Hls))
229
229
  throw Error(
230
230
  ""
231
231
  );
@@ -242,9 +242,9 @@ class xt extends yt {
242
242
  constructor() {
243
243
  super(...arguments);
244
244
  _(this, "$$PROVIDER_TYPE", "HLS");
245
- p(this, A, null);
246
- p(this, v, new St(this.video, this.ctx));
247
- p(this, S, `${wt}/npm/hls.js@^1.5.0/dist/hls.min.js`);
245
+ f(this, A, null);
246
+ f(this, v, new St(this.video, this.ctx));
247
+ f(this, S, `${wt}/npm/hls.js@^1.5.0/dist/hls.min.js`);
248
248
  }
249
249
  /**
250
250
  * The `hls.js` constructor.
@@ -284,14 +284,14 @@ class xt extends yt {
284
284
  return e(this, S);
285
285
  }
286
286
  set library(i) {
287
- f(this, S, i);
287
+ p(this, S, i);
288
288
  }
289
289
  preconnect() {
290
290
  C(e(this, S)) && at(e(this, S));
291
291
  }
292
292
  setup() {
293
293
  super.setup(), new Et(e(this, S), this.ctx, (i) => {
294
- f(this, A, i), e(this, v).setup(i), this.ctx.notify("provider-setup", this);
294
+ p(this, A, i), e(this, v).setup(i), this.ctx.notify("provider-setup", this);
295
295
  const s = O(this.ctx.$state.source);
296
296
  s && this.loadSource(s);
297
297
  });
@@ -5,8 +5,8 @@ var b = (i) => {
5
5
  var N = (i, t, e) => t in i ? $(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
6
  var y = (i, t, e) => N(i, typeof t != "symbol" ? t + "" : t, e), E = (i, t, e) => t.has(i) || b("Cannot " + e);
7
7
  var s = (i, t, e) => (E(i, t, "read from private field"), e ? e.call(i) : t.get(i)), r = (i, t, e) => t.has(i) ? b("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), c = (i, t, e, n) => (E(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), p = (i, t, e) => (E(i, t, "access private method"), e);
8
- import { s as U, v as V, w as A, x as q, y as C, l as F, D as Y, E as _, T as j, h as v } from "./install-CrrAB4P5.js";
9
- import { H as z, a as B } from "./vidstack-Bq6c3Bam-qlp5tBOT.js";
8
+ import { s as U, w as V, x as A, y as j, z as C, l as q, D as z, E as F, T as Y, j as v } from "./install-A9G4M7-6.js";
9
+ import { H as _, a as B } from "./vidstack-Bq6c3Bam-Bpshd13A.js";
10
10
  var P, f, k, D, H;
11
11
  class G {
12
12
  constructor(t, e) {
@@ -19,7 +19,7 @@ class G {
19
19
  P = new WeakMap(), f = new WeakMap(), k = new WeakSet(), D = function(t) {
20
20
  const e = t.track;
21
21
  if (!e || J(s(this, P), e)) return;
22
- const n = new j({
22
+ const n = new Y({
23
23
  id: e.id,
24
24
  kind: e.kind,
25
25
  label: e.label ?? "",
@@ -54,7 +54,7 @@ class K {
54
54
  r(this, T, (t, e) => {
55
55
  s(this, m).notify("picture-in-picture-change", t, e);
56
56
  });
57
- c(this, d, t), c(this, m, e), new _(t).add("enterpictureinpicture", p(this, x, S).bind(this)).add("leavepictureinpicture", p(this, x, L).bind(this));
57
+ c(this, d, t), c(this, m, e), new F(t).add("enterpictureinpicture", p(this, x, S).bind(this)).add("leavepictureinpicture", p(this, x, L).bind(this));
58
58
  }
59
59
  get active() {
60
60
  return document.pictureInPictureElement === s(this, d);
@@ -81,7 +81,7 @@ class Q {
81
81
  r(this, l);
82
82
  r(this, g);
83
83
  r(this, o, "inline");
84
- c(this, l, t), c(this, g, e), F(t, "webkitpresentationmodechanged", p(this, M, R).bind(this));
84
+ c(this, l, t), c(this, g, e), q(t, "webkitpresentationmodechanged", p(this, M, R).bind(this));
85
85
  }
86
86
  get mode() {
87
87
  return s(this, o);
@@ -97,7 +97,7 @@ l = new WeakMap(), g = new WeakMap(), o = new WeakMap(), M = new WeakSet(), R =
97
97
  var n;
98
98
  const e = s(this, o);
99
99
  c(this, o, s(this, l).webkitPresentationMode), (n = s(this, g).player) == null || n.dispatch(
100
- new Y("video-presentation-change", {
100
+ new z("video-presentation-change", {
101
101
  detail: s(this, o),
102
102
  trigger: t
103
103
  })
@@ -145,7 +145,7 @@ class X {
145
145
  }
146
146
  }
147
147
  h = new WeakMap();
148
- class it extends z {
148
+ class it extends _ {
149
149
  constructor(e, n) {
150
150
  super(e, n);
151
151
  y(this, "$$PROVIDER_TYPE", "VIDEO");
@@ -163,7 +163,7 @@ class it extends z {
163
163
  return "video";
164
164
  }
165
165
  setup() {
166
- super.setup(), q(this.video) && new G(this.video, this.ctx), this.ctx.textRenderers.attachVideo(this.video), C(() => {
166
+ super.setup(), j(this.video) && new G(this.video, this.ctx), this.ctx.textRenderers.attachVideo(this.video), C(() => {
167
167
  this.ctx.textRenderers.attachVideo(null);
168
168
  }), this.type === "video" && this.ctx.notify("provider-setup", this);
169
169
  }