@instructure/studio-player 1.3.3 → 1.3.5
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.
- package/dist/StudioPlayer/StudioPlayer.d.ts +1 -1
- package/dist/StudioPlayer/StudioPlayer.types.d.ts +1 -0
- package/dist/StudioPlayer/store/StudioPlayerMediaStorage.d.ts +2 -0
- package/dist/StudioPlayer/useStudioPlayer.d.ts +1 -1
- package/dist/StudioPlayer/utils/createSafeContext.d.ts +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/index-xG5a6-lC.css +1 -0
- package/dist/studio-player.es.js +7049 -6875
- package/dist/{vidstack-CX-SWm4x.js → vidstack-06_rAYQ2.js} +144 -141
- package/dist/{vidstack-audio-Bd4Zsj4O.js → vidstack-audio-D-Rq-ghI.js} +2 -2
- package/dist/{vidstack-dash-D7xlwNJ9.js → vidstack-dash-tR8ufawh.js} +2 -2
- package/dist/{vidstack-google-cast-DxqRtIco.js → vidstack-google-cast-BaNgBqhV.js} +1 -1
- package/dist/{vidstack-hls-DVErTQIN.js → vidstack-hls-DqW0EBdu.js} +2 -2
- package/dist/{vidstack-html-B5QcGPQk.js → vidstack-html-BCriItrL.js} +1 -1
- package/dist/{vidstack-video-DpYthusy.js → vidstack-video-dFAZHvkx.js} +2 -2
- package/dist/{vidstack-vimeo-Z3RDzI6N.js → vidstack-vimeo-DzDdm0bI.js} +1 -1
- package/dist/{vidstack-youtube-y1PQLbV7.js → vidstack-youtube-CpDJCw0z.js} +1 -1
- package/package.json +1 -1
- package/dist/index-D3V60OlC.css +0 -1
|
@@ -7,9 +7,9 @@ var y = (n, e, t) => Qw(n, typeof e != "symbol" ? e + "" : e, t), cl = (n, e, t)
|
|
|
7
7
|
var s = (n, e, t) => (cl(n, e, "read from private field"), t ? t.call(n) : e.get(n)), c = (n, e, t) => e.has(n) ? zu("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), u = (n, e, t, i) => (cl(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t), a = (n, e, t) => (cl(n, e, "access private method"), t);
|
|
8
8
|
import { jsx as N, Fragment as zw, jsxs as Jr } from "react/jsx-runtime";
|
|
9
9
|
import * as $ from "react";
|
|
10
|
-
import { g as Yw, a as Xw, i as Yu, h as Jw, b as Zw, c as tT, d as eT, e as iT, f as sT } from "./vidstack-google-cast-
|
|
10
|
+
import { g as Yw, a as Xw, i as Yu, h as Jw, b as Zw, c as tT, d as eT, e as iT, f as sT } from "./vidstack-google-cast-BaNgBqhV.js";
|
|
11
11
|
const li = Symbol(0);
|
|
12
|
-
let mh = !1, $l = !1, Qe = null, Qn = null, Ae = null,
|
|
12
|
+
let mh = !1, $l = !1, Qe = null, Qn = null, Ae = null, be = 0, jn = [], $u = {};
|
|
13
13
|
const nT = () => {
|
|
14
14
|
}, aa = 0, Nd = 1, gh = 2, Qh = 3;
|
|
15
15
|
function rT() {
|
|
@@ -125,7 +125,7 @@ function ku(n, e) {
|
|
|
125
125
|
throw r;
|
|
126
126
|
}
|
|
127
127
|
function Pu() {
|
|
128
|
-
return this.$st === Qh ? this.$v : (Qn && !this.$e && (!Ae && Qn.$s && Qn.$s[
|
|
128
|
+
return this.$st === Qh ? this.$v : (Qn && !this.$e && (!Ae && Qn.$s && Qn.$s[be] == this ? be++ : Ae ? Ae.push(this) : Ae = [this]), this.$c && Au(this), this.$v);
|
|
129
129
|
}
|
|
130
130
|
function Hd(n) {
|
|
131
131
|
const e = zh(n) ? n(this.$v) : n;
|
|
@@ -175,8 +175,8 @@ function uT(n) {
|
|
|
175
175
|
n.$h && ta.call(n, !1), n.$d && _d(n), n.$eh = n[li] ? n[li].$eh : null;
|
|
176
176
|
}
|
|
177
177
|
function Bd(n) {
|
|
178
|
-
let e = Ae, t =
|
|
179
|
-
Ae = null,
|
|
178
|
+
let e = Ae, t = be;
|
|
179
|
+
Ae = null, be = 0;
|
|
180
180
|
try {
|
|
181
181
|
uT(n);
|
|
182
182
|
const i = Po(n, n.$c, n);
|
|
@@ -184,21 +184,21 @@ function Bd(n) {
|
|
|
184
184
|
} catch (i) {
|
|
185
185
|
Xu(n), ku(n, i);
|
|
186
186
|
} finally {
|
|
187
|
-
Ae = e,
|
|
187
|
+
Ae = e, be = t, n.$st = aa;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
function Xu(n) {
|
|
191
191
|
if (Ae) {
|
|
192
|
-
if (n.$s && vl(n,
|
|
193
|
-
n.$s.length =
|
|
192
|
+
if (n.$s && vl(n, be), n.$s && be > 0) {
|
|
193
|
+
n.$s.length = be + Ae.length;
|
|
194
194
|
for (let t = 0; t < Ae.length; t++)
|
|
195
|
-
n.$s[
|
|
195
|
+
n.$s[be + t] = Ae[t];
|
|
196
196
|
} else
|
|
197
197
|
n.$s = Ae;
|
|
198
198
|
let e;
|
|
199
|
-
for (let t =
|
|
199
|
+
for (let t = be; t < n.$s.length; t++)
|
|
200
200
|
e = n.$s[t], e.$o ? e.$o.push(n) : e.$o = [n];
|
|
201
|
-
} else n.$s &&
|
|
201
|
+
} else n.$s && be < n.$s.length && (vl(n, be), n.$s.length = be);
|
|
202
202
|
}
|
|
203
203
|
function jd(n, e) {
|
|
204
204
|
if (!(n.$st >= e) && (n.$e && n.$st === aa && (jn.push(n), mh || rT()), n.$st = e, n.$o))
|
|
@@ -224,7 +224,7 @@ function dT(n) {
|
|
|
224
224
|
function fT(n) {
|
|
225
225
|
return (n == null ? void 0 : n.constructor) === Object;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Te(n) {
|
|
228
228
|
return typeof n == "number" && !Number.isNaN(n);
|
|
229
229
|
}
|
|
230
230
|
function R(n) {
|
|
@@ -464,9 +464,9 @@ function PT(n, e) {
|
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
function kl(n) {
|
|
467
|
-
return !R(n) && "width" in n && "height" in n &&
|
|
467
|
+
return !R(n) && "width" in n && "height" in n && Te(n.width) && Te(n.height);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
469
|
+
var fe = {
|
|
470
470
|
fullscreenEnabled: 0,
|
|
471
471
|
fullscreenElement: 1,
|
|
472
472
|
requestFullscreen: 2,
|
|
@@ -498,46 +498,46 @@ var de = {
|
|
|
498
498
|
"MSFullscreenChange",
|
|
499
499
|
"MSFullscreenError",
|
|
500
500
|
"-ms-fullscreen"
|
|
501
|
-
], he = typeof window < "u" && typeof window.document < "u" ? window.document : {}, Pe = "fullscreenEnabled" in he && Object.keys(
|
|
501
|
+
], he = typeof window < "u" && typeof window.document < "u" ? window.document : {}, Pe = "fullscreenEnabled" in he && Object.keys(fe) || Ju[0] in he && Ju || Zu[0] in he && Zu || td[0] in he && td || [], qn = {
|
|
502
502
|
requestFullscreen: function(n) {
|
|
503
|
-
return n[Pe[
|
|
503
|
+
return n[Pe[fe.requestFullscreen]]();
|
|
504
504
|
},
|
|
505
505
|
requestFullscreenFunction: function(n) {
|
|
506
|
-
return n[Pe[
|
|
506
|
+
return n[Pe[fe.requestFullscreen]];
|
|
507
507
|
},
|
|
508
508
|
get exitFullscreen() {
|
|
509
|
-
return he[Pe[
|
|
509
|
+
return he[Pe[fe.exitFullscreen]].bind(he);
|
|
510
510
|
},
|
|
511
511
|
get fullscreenPseudoClass() {
|
|
512
|
-
return ":" + Pe[
|
|
512
|
+
return ":" + Pe[fe.fullscreen];
|
|
513
513
|
},
|
|
514
514
|
addEventListener: function(n, e, t) {
|
|
515
|
-
return he.addEventListener(Pe[
|
|
515
|
+
return he.addEventListener(Pe[fe[n]], e, t);
|
|
516
516
|
},
|
|
517
517
|
removeEventListener: function(n, e, t) {
|
|
518
|
-
return he.removeEventListener(Pe[
|
|
518
|
+
return he.removeEventListener(Pe[fe[n]], e, t);
|
|
519
519
|
},
|
|
520
520
|
get fullscreenEnabled() {
|
|
521
|
-
return !!he[Pe[
|
|
521
|
+
return !!he[Pe[fe.fullscreenEnabled]];
|
|
522
522
|
},
|
|
523
523
|
set fullscreenEnabled(n) {
|
|
524
524
|
},
|
|
525
525
|
get fullscreenElement() {
|
|
526
|
-
return he[Pe[
|
|
526
|
+
return he[Pe[fe.fullscreenElement]];
|
|
527
527
|
},
|
|
528
528
|
set fullscreenElement(n) {
|
|
529
529
|
},
|
|
530
530
|
get onfullscreenchange() {
|
|
531
|
-
return he[("on" + Pe[
|
|
531
|
+
return he[("on" + Pe[fe.fullscreenchange]).toLowerCase()];
|
|
532
532
|
},
|
|
533
533
|
set onfullscreenchange(n) {
|
|
534
|
-
return he[("on" + Pe[
|
|
534
|
+
return he[("on" + Pe[fe.fullscreenchange]).toLowerCase()] = n;
|
|
535
535
|
},
|
|
536
536
|
get onfullscreenerror() {
|
|
537
|
-
return he[("on" + Pe[
|
|
537
|
+
return he[("on" + Pe[fe.fullscreenerror]).toLowerCase()];
|
|
538
538
|
},
|
|
539
539
|
set onfullscreenerror(n) {
|
|
540
|
-
return he[("on" + Pe[
|
|
540
|
+
return he[("on" + Pe[fe.fullscreenerror]).toLowerCase()] = n;
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
function V(n, e) {
|
|
@@ -1203,13 +1203,13 @@ Ca = new WeakMap(), Si = new WeakMap(), Xs = new WeakMap(), xa = new WeakMap(),
|
|
|
1203
1203
|
this.dispatchEvent(new H("cue-change", { trigger: t }));
|
|
1204
1204
|
};
|
|
1205
1205
|
const n$ = /captions|subtitles/;
|
|
1206
|
-
function
|
|
1206
|
+
function le(n) {
|
|
1207
1207
|
return n$.test(n.kind);
|
|
1208
1208
|
}
|
|
1209
1209
|
function r$(n, e, t) {
|
|
1210
1210
|
const i = R(n) ? JSON.parse(n) : n;
|
|
1211
1211
|
let r = [], o = [];
|
|
1212
|
-
return i.regions && t && (r = i.regions.map((h) => Object.assign(new t(), h))), (i.cues || zt(i)) && (o = (zt(i) ? i : i.cues).filter((h) =>
|
|
1212
|
+
return i.regions && t && (r = i.regions.map((h) => Object.assign(new t(), h))), (i.cues || zt(i)) && (o = (zt(i) ? i : i.cues).filter((h) => Te(h.startTime) && Te(h.endTime)).map((h) => Object.assign(new e(0, 0, ""), h))), { regions: r, cues: o };
|
|
1213
1213
|
}
|
|
1214
1214
|
const ua = new la({
|
|
1215
1215
|
artist: "",
|
|
@@ -1271,7 +1271,7 @@ const ua = new la({
|
|
|
1271
1271
|
textTracks: [],
|
|
1272
1272
|
textTrack: null,
|
|
1273
1273
|
get hasCaptions() {
|
|
1274
|
-
return this.textTracks.filter(
|
|
1274
|
+
return this.textTracks.filter(le).length > 0;
|
|
1275
1275
|
},
|
|
1276
1276
|
volume: 1,
|
|
1277
1277
|
waiting: !1,
|
|
@@ -1422,15 +1422,15 @@ function uf(n, e) {
|
|
|
1422
1422
|
return i ? e.seekableStart() : r ? e.seekableEnd() : e.isLiveDVR() && e.liveDVRWindow() > 0 && t < e.seekableEnd() - e.liveDVRWindow() ? e.bufferedStart() : Math.min(Math.max(e.seekableStart() + 0.1, t), e.seekableEnd() - 0.1);
|
|
1423
1423
|
}
|
|
1424
1424
|
const Ru = ha();
|
|
1425
|
-
function
|
|
1425
|
+
function ue() {
|
|
1426
1426
|
return Me(Ru);
|
|
1427
1427
|
}
|
|
1428
|
-
var Zs,
|
|
1428
|
+
var Zs, me, er, xh, Z, st, o$;
|
|
1429
1429
|
class df {
|
|
1430
1430
|
constructor(e = void 0) {
|
|
1431
1431
|
c(this, Z);
|
|
1432
1432
|
c(this, Zs, null);
|
|
1433
|
-
c(this,
|
|
1433
|
+
c(this, me, null);
|
|
1434
1434
|
c(this, er, -1);
|
|
1435
1435
|
c(this, xh);
|
|
1436
1436
|
u(this, xh, e);
|
|
@@ -1459,20 +1459,20 @@ class df {
|
|
|
1459
1459
|
*/
|
|
1460
1460
|
getPlayer(e) {
|
|
1461
1461
|
var t;
|
|
1462
|
-
return s(this,
|
|
1462
|
+
return s(this, me) ? s(this, me) : ((t = e ?? s(this, Zs)) == null || t.dispatchEvent(
|
|
1463
1463
|
new H("find-media-player", {
|
|
1464
|
-
detail: (i) => void u(this,
|
|
1464
|
+
detail: (i) => void u(this, me, i),
|
|
1465
1465
|
bubbles: !0,
|
|
1466
1466
|
composed: !0
|
|
1467
1467
|
})
|
|
1468
|
-
), s(this,
|
|
1468
|
+
), s(this, me));
|
|
1469
1469
|
}
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Set the current player element so the remote can support toggle methods such as
|
|
1472
1472
|
* `togglePaused` as they rely on the current media state.
|
|
1473
1473
|
*/
|
|
1474
1474
|
setPlayer(e) {
|
|
1475
|
-
u(this,
|
|
1475
|
+
u(this, me, e);
|
|
1476
1476
|
}
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Dispatch a request to start the media loading process. This will only work if the media
|
|
@@ -1793,7 +1793,7 @@ class df {
|
|
|
1793
1793
|
if (!t)
|
|
1794
1794
|
return;
|
|
1795
1795
|
let i = t.state.textTracks, r = s(this, er);
|
|
1796
|
-
(!i[r] || !
|
|
1796
|
+
(!i[r] || !le(i[r])) && (r = -1), r === -1 && (r = i.findIndex((o) => le(o) && o.default)), r === -1 && (r = i.findIndex((o) => le(o))), r >= 0 && this.changeTextTrackMode(r, "showing", e), u(this, er, -1);
|
|
1797
1797
|
}
|
|
1798
1798
|
/**
|
|
1799
1799
|
* Turn captions off.
|
|
@@ -1819,7 +1819,7 @@ class df {
|
|
|
1819
1819
|
a(this, Z, st).call(this, "media-user-loop-change-request", t, e);
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
-
Zs = new WeakMap(),
|
|
1822
|
+
Zs = new WeakMap(), me = new WeakMap(), er = new WeakMap(), xh = new WeakMap(), Z = new WeakSet(), st = function(e, t, i) {
|
|
1823
1823
|
var l, d;
|
|
1824
1824
|
const r = new H(e, {
|
|
1825
1825
|
bubbles: !0,
|
|
@@ -1829,7 +1829,7 @@ Zs = new WeakMap(), pe = new WeakMap(), er = new WeakMap(), xh = new WeakMap(),
|
|
|
1829
1829
|
trigger: t
|
|
1830
1830
|
});
|
|
1831
1831
|
let o = (t == null ? void 0 : t.target) || null;
|
|
1832
|
-
o && o instanceof Lt && (o = o.el), o = !o || o === document || o === window || o === document.body || ((l = s(this,
|
|
1832
|
+
o && o instanceof Lt && (o = o.el), o = !o || o === document || o === window || o === document.body || ((l = s(this, me)) == null ? void 0 : l.el) && o instanceof Node && !s(this, me).el.contains(o) ? s(this, Zs) ?? ((d = this.getPlayer()) == null ? void 0 : d.el) : o ?? s(this, Zs), s(this, me) ? e === "media-play-request" && !s(this, me).state.canLoad ? o == null || o.dispatchEvent(r) : s(this, me).canPlayQueue.enqueue(e, () => o == null ? void 0 : o.dispatchEvent(r)) : o == null || o.dispatchEvent(r);
|
|
1833
1833
|
}, o$ = function(e) {
|
|
1834
1834
|
};
|
|
1835
1835
|
var xo = h$;
|
|
@@ -2058,7 +2058,7 @@ class pf extends ff {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
class w$ extends pf {
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function ce(n, e = 2) {
|
|
2062
2062
|
return Number(n.toFixed(e));
|
|
2063
2063
|
}
|
|
2064
2064
|
function Al(n) {
|
|
@@ -2197,7 +2197,7 @@ Aa = new WeakMap(), Pi = new WeakMap(), Ma = new WeakMap(), ns = new WeakMap(),
|
|
|
2197
2197
|
r && a(this, Le, Ll).call(this, t, i.track), t.setMode(r ? "showing" : "disabled", e);
|
|
2198
2198
|
}
|
|
2199
2199
|
};
|
|
2200
|
-
var tn, ir, en, La, Ia,
|
|
2200
|
+
var tn, ir, en, La, Ia, ge, ze, kt, $f, Rl, vf, Sf, kf, Wn, Pf;
|
|
2201
2201
|
class P$ {
|
|
2202
2202
|
constructor(e) {
|
|
2203
2203
|
c(this, kt);
|
|
@@ -2206,7 +2206,7 @@ class P$ {
|
|
|
2206
2206
|
c(this, en, []);
|
|
2207
2207
|
c(this, La);
|
|
2208
2208
|
c(this, Ia, !1);
|
|
2209
|
-
c(this,
|
|
2209
|
+
c(this, ge, null);
|
|
2210
2210
|
c(this, ze, null);
|
|
2211
2211
|
u(this, La, e);
|
|
2212
2212
|
const t = e.textTracks;
|
|
@@ -2222,22 +2222,22 @@ class P$ {
|
|
|
2222
2222
|
attachVideo(e) {
|
|
2223
2223
|
requestAnimationFrame(() => {
|
|
2224
2224
|
if (u(this, tn, e), e) {
|
|
2225
|
-
u(this,
|
|
2225
|
+
u(this, ge, new k$()), s(this, ge).attach(e);
|
|
2226
2226
|
for (const t of s(this, ir)) a(this, kt, Rl).call(this, t);
|
|
2227
2227
|
}
|
|
2228
2228
|
a(this, kt, Wn).call(this);
|
|
2229
2229
|
});
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
|
-
tn = new WeakMap(), ir = new WeakMap(), en = new WeakMap(), La = new WeakMap(), Ia = new WeakMap(),
|
|
2232
|
+
tn = new WeakMap(), ir = new WeakMap(), en = new WeakMap(), La = new WeakMap(), Ia = new WeakMap(), ge = new WeakMap(), ze = new WeakMap(), kt = new WeakSet(), $f = function() {
|
|
2233
2233
|
const { nativeControls: e } = s(this, La).$state;
|
|
2234
2234
|
u(this, Ia, e()), a(this, kt, Wn).call(this);
|
|
2235
2235
|
}, Rl = function(e) {
|
|
2236
2236
|
var t;
|
|
2237
|
-
|
|
2237
|
+
le(e) && ((t = s(this, ge)) == null || t.addTrack(e));
|
|
2238
2238
|
}, vf = function(e) {
|
|
2239
2239
|
var t;
|
|
2240
|
-
|
|
2240
|
+
le(e) && ((t = s(this, ge)) == null || t.removeTrack(e));
|
|
2241
2241
|
}, Sf = function(e) {
|
|
2242
2242
|
a(this, kt, Rl).call(this, e.detail);
|
|
2243
2243
|
}, kf = function(e) {
|
|
@@ -2246,10 +2246,10 @@ tn = new WeakMap(), ir = new WeakMap(), en = new WeakMap(), La = new WeakMap(),
|
|
|
2246
2246
|
var i, r, o, h, l, d, f;
|
|
2247
2247
|
const e = s(this, ir).selected;
|
|
2248
2248
|
if (s(this, tn) && (s(this, Ia) || e != null && e[q.nativeHLS])) {
|
|
2249
|
-
(i = s(this, ze)) == null || i.changeTrack(null), (r = s(this,
|
|
2249
|
+
(i = s(this, ze)) == null || i.changeTrack(null), (r = s(this, ge)) == null || r.setDisplay(!0), (o = s(this, ge)) == null || o.changeTrack(e);
|
|
2250
2250
|
return;
|
|
2251
2251
|
}
|
|
2252
|
-
if ((h = s(this,
|
|
2252
|
+
if ((h = s(this, ge)) == null || h.setDisplay(!1), (l = s(this, ge)) == null || l.changeTrack(null), !e) {
|
|
2253
2253
|
(d = s(this, ze)) == null || d.changeTrack(null);
|
|
2254
2254
|
return;
|
|
2255
2255
|
}
|
|
@@ -2257,7 +2257,7 @@ tn = new WeakMap(), ir = new WeakMap(), en = new WeakMap(), La = new WeakMap(),
|
|
|
2257
2257
|
s(this, ze) !== t && ((f = s(this, ze)) == null || f.detach(), t == null || t.attach(s(this, tn)), u(this, ze, t ?? null)), t == null || t.changeTrack(e);
|
|
2258
2258
|
}, Pf = function() {
|
|
2259
2259
|
var e, t;
|
|
2260
|
-
(e = s(this,
|
|
2260
|
+
(e = s(this, ge)) == null || e.detach(), u(this, ge, null), (t = s(this, ze)) == null || t.detach(), u(this, ze, null);
|
|
2261
2261
|
};
|
|
2262
2262
|
var Ou = E$;
|
|
2263
2263
|
function E$(n, e, t) {
|
|
@@ -2306,7 +2306,7 @@ class C$ extends ff {
|
|
|
2306
2306
|
for (const o of i) {
|
|
2307
2307
|
const h = this.getByKind(o);
|
|
2308
2308
|
if (h.find((m) => m.mode === "showing")) continue;
|
|
2309
|
-
const l = s(this, Je) ? h.find((m) => m.language === s(this, Je)) : null, d = zt(o) ? s(this, Ye)[o.find((m) => s(this, Ye)[m]) || ""] : s(this, Ye)[o], f = l ?? d, p = f &&
|
|
2309
|
+
const l = s(this, Je) ? h.find((m) => m.language === s(this, Je)) : null, d = zt(o) ? s(this, Ye)[o.find((m) => s(this, Ye)[m]) || ""] : s(this, Ye)[o], f = l ?? d, p = f && le(f);
|
|
2310
2310
|
f && (!p || t !== !1) && (f.mode = "showing", p && a(this, ui, ql).call(this, f));
|
|
2311
2311
|
}
|
|
2312
2312
|
}, 300));
|
|
@@ -2314,7 +2314,7 @@ class C$ extends ff {
|
|
|
2314
2314
|
c(this, qa, a(this, ui, Ef).bind(this));
|
|
2315
2315
|
}
|
|
2316
2316
|
get selected() {
|
|
2317
|
-
return this.items.find((i) => i.mode === "showing" &&
|
|
2317
|
+
return this.items.find((i) => i.mode === "showing" && le(i)) ?? null;
|
|
2318
2318
|
}
|
|
2319
2319
|
get selectedIndex() {
|
|
2320
2320
|
const t = this.selected;
|
|
@@ -2356,8 +2356,8 @@ class C$ extends ff {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
sn = new WeakMap(), Ye = new WeakMap(), Xe = new WeakMap(), Je = new WeakMap(), Ra = new WeakMap(), sr = new WeakMap(), qa = new WeakMap(), ui = new WeakSet(), Ef = function(t) {
|
|
2358
2358
|
const i = t.detail;
|
|
2359
|
-
if (s(this, Xe) &&
|
|
2360
|
-
const r =
|
|
2359
|
+
if (s(this, Xe) && le(i) && i !== s(this, sr) && a(this, ui, ql).call(this, i), i.mode === "showing") {
|
|
2360
|
+
const r = le(i) ? ["captions", "subtitles"] : [i.kind];
|
|
2361
2361
|
for (const o of this.items)
|
|
2362
2362
|
o.mode === "showing" && o != i && r.includes(o.kind) && (o.mode = "disabled");
|
|
2363
2363
|
}
|
|
@@ -2369,7 +2369,10 @@ sn = new WeakMap(), Ye = new WeakMap(), Xe = new WeakMap(), Je = new WeakMap(),
|
|
|
2369
2369
|
);
|
|
2370
2370
|
}, ql = function(t) {
|
|
2371
2371
|
var i, r;
|
|
2372
|
-
t.mode !== "disabled" && a(this, ui, Ol).call(this, t.language), (r = (i = s(this, Xe)) == null ? void 0 : i.setCaptions) == null || r.call(
|
|
2372
|
+
t.mode !== "disabled" && a(this, ui, Ol).call(this, t.language), (r = (i = s(this, Xe)) == null ? void 0 : i.setCaptions) == null || r.call(
|
|
2373
|
+
i,
|
|
2374
|
+
this.items.some((o) => le(o) && o.mode === "showing")
|
|
2375
|
+
);
|
|
2373
2376
|
}, Ol = function(t) {
|
|
2374
2377
|
var i, r;
|
|
2375
2378
|
(r = (i = s(this, Xe)) == null ? void 0 : i.setLang) == null || r.call(i, u(this, Je, t));
|
|
@@ -2663,7 +2666,7 @@ class B$ extends qe {
|
|
|
2663
2666
|
u(this, an, t);
|
|
2664
2667
|
}
|
|
2665
2668
|
onAttach(t) {
|
|
2666
|
-
const { $props: i, ariaKeys: r } =
|
|
2669
|
+
const { $props: i, ariaKeys: r } = ue(), o = t.getAttribute("aria-keyshortcuts");
|
|
2667
2670
|
if (o) {
|
|
2668
2671
|
r[s(this, an)] = o, it(() => {
|
|
2669
2672
|
delete r[s(this, an)];
|
|
@@ -2992,7 +2995,7 @@ class G$ {
|
|
|
2992
2995
|
return "audio";
|
|
2993
2996
|
}
|
|
2994
2997
|
async load(e) {
|
|
2995
|
-
return new (await import("./vidstack-audio-
|
|
2998
|
+
return new (await import("./vidstack-audio-D-Rq-ghI.js")).AudioProvider(this.target, e);
|
|
2996
2999
|
}
|
|
2997
3000
|
}
|
|
2998
3001
|
class Du {
|
|
@@ -3007,7 +3010,7 @@ class Du {
|
|
|
3007
3010
|
return "video";
|
|
3008
3011
|
}
|
|
3009
3012
|
async load(e) {
|
|
3010
|
-
return new (await import("./vidstack-video-
|
|
3013
|
+
return new (await import("./vidstack-video-dFAZHvkx.js")).VideoProvider(this.target, e);
|
|
3011
3014
|
}
|
|
3012
3015
|
}
|
|
3013
3016
|
const Mh = class Mh extends Du {
|
|
@@ -3019,7 +3022,7 @@ const Mh = class Mh extends Du {
|
|
|
3019
3022
|
return Mh.supported && ca(t);
|
|
3020
3023
|
}
|
|
3021
3024
|
async load(t) {
|
|
3022
|
-
return new (await import("./vidstack-hls-
|
|
3025
|
+
return new (await import("./vidstack-hls-DqW0EBdu.js")).HLSProvider(this.target, t);
|
|
3023
3026
|
}
|
|
3024
3027
|
};
|
|
3025
3028
|
y(Mh, "supported", Mu());
|
|
@@ -3048,19 +3051,19 @@ function Wf() {
|
|
|
3048
3051
|
zo = null;
|
|
3049
3052
|
});
|
|
3050
3053
|
}
|
|
3051
|
-
var Da, hr,
|
|
3054
|
+
var Da, hr, ye, Ee, Nn, Gf, jl;
|
|
3052
3055
|
class Bk {
|
|
3053
3056
|
constructor(e, t) {
|
|
3054
3057
|
c(this, Nn);
|
|
3055
3058
|
c(this, Da);
|
|
3056
3059
|
c(this, hr);
|
|
3057
|
-
c(this,
|
|
3060
|
+
c(this, ye, null);
|
|
3058
3061
|
c(this, Ee, null);
|
|
3059
3062
|
u(this, Da, e), u(this, hr, t);
|
|
3060
3063
|
}
|
|
3061
3064
|
get currentGain() {
|
|
3062
3065
|
var e, t;
|
|
3063
|
-
return ((t = (e = s(this,
|
|
3066
|
+
return ((t = (e = s(this, ye)) == null ? void 0 : e.gain) == null ? void 0 : t.value) ?? null;
|
|
3064
3067
|
}
|
|
3065
3068
|
get supported() {
|
|
3066
3069
|
return !0;
|
|
@@ -3072,17 +3075,17 @@ class Bk {
|
|
|
3072
3075
|
this.removeGain();
|
|
3073
3076
|
return;
|
|
3074
3077
|
}
|
|
3075
|
-
s(this,
|
|
3078
|
+
s(this, ye) || (u(this, ye, K$()), s(this, Ee) && s(this, Ee).connect(s(this, ye))), s(this, Ee) || u(this, Ee, Q$(s(this, Da), s(this, ye))), s(this, ye).gain.value = e, s(this, hr).call(this, e);
|
|
3076
3079
|
}
|
|
3077
3080
|
}
|
|
3078
3081
|
removeGain() {
|
|
3079
|
-
s(this,
|
|
3082
|
+
s(this, ye) && (s(this, Ee) && s(this, Ee).connect(Vu().destination), a(this, Nn, jl).call(this), s(this, hr).call(this, null));
|
|
3080
3083
|
}
|
|
3081
3084
|
destroy() {
|
|
3082
3085
|
a(this, Nn, Gf).call(this), a(this, Nn, jl).call(this);
|
|
3083
3086
|
}
|
|
3084
3087
|
}
|
|
3085
|
-
Da = new WeakMap(), hr = new WeakMap(),
|
|
3088
|
+
Da = new WeakMap(), hr = new WeakMap(), ye = new WeakMap(), Ee = new WeakMap(), Nn = new WeakSet(), Gf = function() {
|
|
3086
3089
|
if (s(this, Ee))
|
|
3087
3090
|
try {
|
|
3088
3091
|
Y$(s(this, Ee));
|
|
@@ -3091,12 +3094,12 @@ Da = new WeakMap(), hr = new WeakMap(), ge = new WeakMap(), Ee = new WeakMap(),
|
|
|
3091
3094
|
u(this, Ee, null);
|
|
3092
3095
|
}
|
|
3093
3096
|
}, jl = function() {
|
|
3094
|
-
if (s(this,
|
|
3097
|
+
if (s(this, ye))
|
|
3095
3098
|
try {
|
|
3096
|
-
z$(s(this,
|
|
3099
|
+
z$(s(this, ye));
|
|
3097
3100
|
} catch {
|
|
3098
3101
|
} finally {
|
|
3099
|
-
u(this,
|
|
3102
|
+
u(this, ye, null);
|
|
3100
3103
|
}
|
|
3101
3104
|
};
|
|
3102
3105
|
const X$ = ["focus", "blur", "visibilitychange", "pageshow", "pagehide"];
|
|
@@ -3164,7 +3167,7 @@ class Nu {
|
|
|
3164
3167
|
Et(s(this, Ai)) && a(this, Fa, Wl).call(this);
|
|
3165
3168
|
}
|
|
3166
3169
|
stop() {
|
|
3167
|
-
|
|
3170
|
+
Te(s(this, Ai)) && window.cancelAnimationFrame(s(this, Ai)), u(this, Ai, void 0);
|
|
3168
3171
|
}
|
|
3169
3172
|
}
|
|
3170
3173
|
Ai = new WeakMap(), Na = new WeakMap(), Fa = new WeakSet(), Wl = function() {
|
|
@@ -3672,7 +3675,7 @@ us = new WeakMap(), at = new WeakMap(), _ = new WeakMap(), br = new WeakMap(), w
|
|
|
3672
3675
|
index: w
|
|
3673
3676
|
};
|
|
3674
3677
|
s(this, at).qualities[D.add](P, r);
|
|
3675
|
-
}),
|
|
3678
|
+
}), Te(d == null ? void 0 : d.index)) {
|
|
3676
3679
|
const m = s(this, at).qualities[d.index];
|
|
3677
3680
|
m && s(this, at).qualities[D.select](m, !0, r);
|
|
3678
3681
|
}
|
|
@@ -3843,7 +3846,7 @@ const qh = class qh extends Du {
|
|
|
3843
3846
|
return qh.supported && Lu(t);
|
|
3844
3847
|
}
|
|
3845
3848
|
async load(t) {
|
|
3846
|
-
return new (await import("./vidstack-dash-
|
|
3849
|
+
return new (await import("./vidstack-dash-tR8ufawh.js")).DASHProvider(this.target, t);
|
|
3847
3850
|
}
|
|
3848
3851
|
};
|
|
3849
3852
|
y(qh, "supported", FT());
|
|
@@ -3869,10 +3872,10 @@ class av {
|
|
|
3869
3872
|
return "video";
|
|
3870
3873
|
}
|
|
3871
3874
|
async load(e) {
|
|
3872
|
-
return new (await import("./vidstack-vimeo-
|
|
3875
|
+
return new (await import("./vidstack-vimeo-DzDdm0bI.js").then((t) => t.p)).VimeoProvider(this.target, e);
|
|
3873
3876
|
}
|
|
3874
3877
|
async loadPoster(e, t, i) {
|
|
3875
|
-
const { resolveVimeoVideoId: r, getVimeoVideoInfo: o } = await import("./vidstack-vimeo-
|
|
3878
|
+
const { resolveVimeoVideoId: r, getVimeoVideoInfo: o } = await import("./vidstack-vimeo-DzDdm0bI.js").then((d) => d.u);
|
|
3876
3879
|
if (!R(e.src)) return null;
|
|
3877
3880
|
const { videoId: h, hash: l } = r(e.src);
|
|
3878
3881
|
return h ? o(h, i, l).then((d) => d ? d.poster : null) : null;
|
|
@@ -3903,10 +3906,10 @@ class ov {
|
|
|
3903
3906
|
return "video";
|
|
3904
3907
|
}
|
|
3905
3908
|
async load(e) {
|
|
3906
|
-
return new (await import("./vidstack-youtube-
|
|
3909
|
+
return new (await import("./vidstack-youtube-CpDJCw0z.js").then((t) => t.p)).YouTubeProvider(this.target, e);
|
|
3907
3910
|
}
|
|
3908
3911
|
async loadPoster(e, t, i) {
|
|
3909
|
-
const { findYouTubePoster: r, resolveYouTubeVideoId: o } = await import("./vidstack-youtube-
|
|
3912
|
+
const { findYouTubePoster: r, resolveYouTubeVideoId: o } = await import("./vidstack-youtube-CpDJCw0z.js").then((l) => l.u), h = R(e.src) && o(e.src);
|
|
3910
3913
|
return h ? r(h, i) : null;
|
|
3911
3914
|
}
|
|
3912
3915
|
}
|
|
@@ -4068,7 +4071,7 @@ class cv {
|
|
|
4068
4071
|
this.notify("can-play", P, t), Gi();
|
|
4069
4072
|
let k = s(this, Fe).$provider(), { storage: M, qualities: B } = s(this, Fe), { muted: At, volume: Ut, clipStartTime: Xt, playbackRate: se } = s(this, Fe).$props;
|
|
4070
4073
|
await ((bi = M == null ? void 0 : M.onLoad) == null ? void 0 : bi.call(M, w()));
|
|
4071
|
-
const Oe = (Xi = m()) == null ? void 0 : Xi.currentTime, De = (Qt = m()) == null ? void 0 : Qt.paused,
|
|
4074
|
+
const Oe = (Xi = m()) == null ? void 0 : Xi.currentTime, De = (Qt = m()) == null ? void 0 : Qt.paused, de = await (M == null ? void 0 : M.getTime()), E = Oe ?? de ?? Xt(), bt = De === !1 || De !== !0 && !o() && i();
|
|
4072
4075
|
if (k) {
|
|
4073
4076
|
k.setVolume(await (M == null ? void 0 : M.getVolume()) ?? Ut()), k.setMuted(At() || !!await (M == null ? void 0 : M.getMuted()));
|
|
4074
4077
|
const Ve = await (M == null ? void 0 : M.getAudioGain()) ?? 1;
|
|
@@ -4083,7 +4086,7 @@ class cv {
|
|
|
4083
4086
|
}
|
|
4084
4087
|
Ve && (Ve.selected = !0);
|
|
4085
4088
|
}
|
|
4086
|
-
r() && bt ? await a(this, Oh, Zp).call(this, t) :
|
|
4089
|
+
r() && bt ? await a(this, Oh, Zp).call(this, t) : de && de > 0 && this.notify("started", void 0, t), f.set(null);
|
|
4087
4090
|
});
|
|
4088
4091
|
}
|
|
4089
4092
|
}
|
|
@@ -5314,7 +5317,7 @@ fi = new WeakSet(), Hm = function() {
|
|
|
5314
5317
|
case "seekforward":
|
|
5315
5318
|
case "seekbackward":
|
|
5316
5319
|
this.dispatch("media-seek-request", {
|
|
5317
|
-
detail:
|
|
5320
|
+
detail: Te(t.seekTime) ? t.seekTime : this.$state.currentTime() + (t.seekOffset ?? (t.action === "seekforward" ? 10 : -10)),
|
|
5318
5321
|
trigger: i
|
|
5319
5322
|
});
|
|
5320
5323
|
break;
|
|
@@ -5367,7 +5370,7 @@ var Sv = Object.defineProperty, kv = Object.getOwnPropertyDescriptor, lt = (n, e
|
|
|
5367
5370
|
for (var r = i > 1 ? void 0 : i ? kv(e, t) : e, o = n.length - 1, h; o >= 0; o--)
|
|
5368
5371
|
(h = n[o]) && (r = (i ? h(e, t, r) : h(r)) || r);
|
|
5369
5372
|
return i && r && Sv(e, t, r), r;
|
|
5370
|
-
}, hi, jt, Tn, Wt, S,
|
|
5373
|
+
}, hi, jt, Tn, Wt, S, pe, th, Er, zm, Ym, Xm, Jm, Zm, wa, mc, tg, gc, eg, yc, ig, bc, sg, wc, ng, Tc, rg, ag, og, hg;
|
|
5371
5374
|
const rt = (hi = class extends Lt {
|
|
5372
5375
|
constructor() {
|
|
5373
5376
|
super();
|
|
@@ -5419,7 +5422,7 @@ const rt = (hi = class extends Lt {
|
|
|
5419
5422
|
s(this, jt).player = null, this.canPlayQueue.reset();
|
|
5420
5423
|
}
|
|
5421
5424
|
get provider() {
|
|
5422
|
-
return s(this, S,
|
|
5425
|
+
return s(this, S, pe);
|
|
5423
5426
|
}
|
|
5424
5427
|
get controls() {
|
|
5425
5428
|
return s(this, Wt).controls;
|
|
@@ -5524,7 +5527,7 @@ const rt = (hi = class extends Lt {
|
|
|
5524
5527
|
destroy() {
|
|
5525
5528
|
super.destroy(), s(this, jt).remote.setPlayer(null), this.dispatch("destroy");
|
|
5526
5529
|
}
|
|
5527
|
-
}, jt = new WeakMap(), Tn = new WeakMap(), Wt = new WeakMap(), S = new WeakSet(),
|
|
5530
|
+
}, jt = new WeakMap(), Tn = new WeakMap(), Wt = new WeakMap(), S = new WeakSet(), pe = function() {
|
|
5528
5531
|
return s(this, jt).$provider();
|
|
5529
5532
|
}, th = function() {
|
|
5530
5533
|
return this.$props;
|
|
@@ -5539,7 +5542,7 @@ const rt = (hi = class extends Lt {
|
|
|
5539
5542
|
const t = this.orientation.landscape ? "landscape" : "portrait";
|
|
5540
5543
|
this.$state.orientation.set(t), W(this.el, "data-orientation", t), a(this, S, wa).call(this);
|
|
5541
5544
|
}, Xm = function() {
|
|
5542
|
-
this.$state.canPlay() && s(this, S,
|
|
5545
|
+
this.$state.canPlay() && s(this, S, pe) ? this.canPlayQueue.start() : this.canPlayQueue.stop();
|
|
5543
5546
|
}, Jm = function() {
|
|
5544
5547
|
if (hi[gl]) {
|
|
5545
5548
|
this.setAttributes(hi[gl]);
|
|
@@ -5551,7 +5554,7 @@ const rt = (hi = class extends Lt {
|
|
|
5551
5554
|
},
|
|
5552
5555
|
"data-captions": function() {
|
|
5553
5556
|
const r = this.$state.textTrack();
|
|
5554
|
-
return !!r &&
|
|
5557
|
+
return !!r && le(r);
|
|
5555
5558
|
},
|
|
5556
5559
|
"data-ios-controls": function() {
|
|
5557
5560
|
return this.$state.iOSControls();
|
|
@@ -5606,7 +5609,7 @@ const rt = (hi = class extends Lt {
|
|
|
5606
5609
|
a(this, S, yc).call(this, this.$props.muted());
|
|
5607
5610
|
}, yc = function(t) {
|
|
5608
5611
|
this.canPlayQueue.enqueue("muted", () => {
|
|
5609
|
-
s(this, S,
|
|
5612
|
+
s(this, S, pe) && s(this, S, pe).setMuted(t);
|
|
5610
5613
|
});
|
|
5611
5614
|
}, ig = function() {
|
|
5612
5615
|
a(this, S, bc).call(this, this.$props.currentTime());
|
|
@@ -5614,9 +5617,9 @@ const rt = (hi = class extends Lt {
|
|
|
5614
5617
|
this.canPlayQueue.enqueue("currentTime", () => {
|
|
5615
5618
|
const { currentTime: i } = this.$state;
|
|
5616
5619
|
t !== v(i) && v(() => {
|
|
5617
|
-
if (!s(this, S,
|
|
5620
|
+
if (!s(this, S, pe)) return;
|
|
5618
5621
|
const r = uf(t, this.$state);
|
|
5619
|
-
Number.isFinite(r) && s(this, S,
|
|
5622
|
+
Number.isFinite(r) && s(this, S, pe).setCurrentTime(r);
|
|
5620
5623
|
});
|
|
5621
5624
|
});
|
|
5622
5625
|
}, sg = function() {
|
|
@@ -5624,21 +5627,21 @@ const rt = (hi = class extends Lt {
|
|
|
5624
5627
|
}, wc = function(t) {
|
|
5625
5628
|
const i = qu(0, t, 1);
|
|
5626
5629
|
this.canPlayQueue.enqueue("volume", () => {
|
|
5627
|
-
s(this, S,
|
|
5630
|
+
s(this, S, pe) && s(this, S, pe).setVolume(i);
|
|
5628
5631
|
});
|
|
5629
5632
|
}, ng = function() {
|
|
5630
5633
|
a(this, S, Tc).call(this, this.$props.playbackRate());
|
|
5631
5634
|
}, Tc = function(t) {
|
|
5632
5635
|
this.canPlayQueue.enqueue("rate", () => {
|
|
5633
5636
|
var i, r;
|
|
5634
|
-
s(this, S,
|
|
5637
|
+
s(this, S, pe) && ((r = (i = s(this, S, pe)).setPlaybackRate) == null || r.call(i, t));
|
|
5635
5638
|
});
|
|
5636
5639
|
}, rg = function() {
|
|
5637
5640
|
a(this, S, ag).call(this, this.$props.playsInline());
|
|
5638
5641
|
}, ag = function(t) {
|
|
5639
5642
|
this.canPlayQueue.enqueue("playsinline", () => {
|
|
5640
5643
|
var i, r;
|
|
5641
|
-
s(this, S,
|
|
5644
|
+
s(this, S, pe) && ((r = (i = s(this, S, pe)).setPlaysInline) == null || r.call(i, t));
|
|
5642
5645
|
});
|
|
5643
5646
|
}, og = function() {
|
|
5644
5647
|
var r;
|
|
@@ -5956,7 +5959,7 @@ let gg = (jo = class extends Lt {
|
|
|
5956
5959
|
c(this, Mr, -1);
|
|
5957
5960
|
}
|
|
5958
5961
|
onSetup() {
|
|
5959
|
-
u(this, He,
|
|
5962
|
+
u(this, He, ue()), u(this, Za, new Av(
|
|
5960
5963
|
s(this, to),
|
|
5961
5964
|
s(this, He),
|
|
5962
5965
|
this.$state.loader,
|
|
@@ -6167,7 +6170,7 @@ let Nv = (Tl = class extends Lt {
|
|
|
6167
6170
|
});
|
|
6168
6171
|
}
|
|
6169
6172
|
onSetup() {
|
|
6170
|
-
u(this, ws,
|
|
6173
|
+
u(this, ws, ue());
|
|
6171
6174
|
const { fullscreen: t } = s(this, ws).$state, i = a(this, zi, Pg).bind(this);
|
|
6172
6175
|
this.setAttributes({
|
|
6173
6176
|
"data-active": t,
|
|
@@ -6246,7 +6249,7 @@ Cg = function() {
|
|
|
6246
6249
|
};
|
|
6247
6250
|
const _u = ha(), Pa = ha();
|
|
6248
6251
|
function Fv(n, e, t, i) {
|
|
6249
|
-
return qu(n,
|
|
6252
|
+
return qu(n, ce(t, Al(i)), e);
|
|
6250
6253
|
}
|
|
6251
6254
|
function _v(n, e, t, i) {
|
|
6252
6255
|
const r = qu(0, t, 1), o = e - n, h = o * r, l = h / i, d = i * Math.round(l);
|
|
@@ -6338,7 +6341,7 @@ Gt = new WeakMap(), $s = new WeakMap(), Ir = new WeakMap(), C = new WeakSet(), x
|
|
|
6338
6341
|
if (this.$props.orientation() === "vertical") {
|
|
6339
6342
|
const { bottom: l, height: d } = r;
|
|
6340
6343
|
i = (l - t.clientY) / d;
|
|
6341
|
-
} else if (s(this, Be) &&
|
|
6344
|
+
} else if (s(this, Be) && Te(s(this, Vi))) {
|
|
6342
6345
|
const { width: l } = s(this, vs).getBoundingClientRect(), d = (t.clientX - s(this, Be).clientX) / l, f = h() - o(), p = f * Math.abs(d);
|
|
6343
6346
|
i = (d < 0 ? s(this, Vi) - p : s(this, Vi) + p) / f;
|
|
6344
6347
|
} else {
|
|
@@ -6429,7 +6432,7 @@ class Dn extends qe {
|
|
|
6429
6432
|
u(this, ne, t);
|
|
6430
6433
|
}
|
|
6431
6434
|
onSetup() {
|
|
6432
|
-
u(this, so,
|
|
6435
|
+
u(this, so, ue());
|
|
6433
6436
|
const t = new Ao();
|
|
6434
6437
|
t.attach(this), this.$state.focused = t.focused.bind(t), On(Ea) || Qi(Ea, {
|
|
6435
6438
|
default: "value"
|
|
@@ -6488,7 +6491,7 @@ Qg = function() {
|
|
|
6488
6491
|
});
|
|
6489
6492
|
}, zg = function() {
|
|
6490
6493
|
const { fillPercent: t, pointerPercent: i } = this.$state;
|
|
6491
|
-
s(this, Fh).call(this,
|
|
6494
|
+
s(this, Fh).call(this, ce(t(), 3), ce(i(), 3));
|
|
6492
6495
|
}, Fh = new WeakMap(), y(Dn, "props", {
|
|
6493
6496
|
hidden: !1,
|
|
6494
6497
|
disabled: !1,
|
|
@@ -6525,7 +6528,7 @@ Yg = function() {
|
|
|
6525
6528
|
return Math.round(t());
|
|
6526
6529
|
}, Xg = function() {
|
|
6527
6530
|
const { value: t, max: i } = this.$state;
|
|
6528
|
-
return
|
|
6531
|
+
return ce(t() / i() * 100, 2) + "%";
|
|
6529
6532
|
}, // -------------------------------------------------------------------------------------------
|
|
6530
6533
|
// Watch
|
|
6531
6534
|
// -------------------------------------------------------------------------------------------
|
|
@@ -6553,7 +6556,7 @@ const Gu = class Gu {
|
|
|
6553
6556
|
u(this, qr, e), u(this, oo, t), u(this, ao, i), b(a(this, Tt, ty).bind(this));
|
|
6554
6557
|
}
|
|
6555
6558
|
static create(e, t) {
|
|
6556
|
-
const i =
|
|
6559
|
+
const i = ue();
|
|
6557
6560
|
return new Gu(e, t, i);
|
|
6558
6561
|
}
|
|
6559
6562
|
};
|
|
@@ -6590,7 +6593,7 @@ ao = new WeakMap(), qr = new WeakMap(), oo = new WeakMap(), Tt = new WeakSet(),
|
|
|
6590
6593
|
"url" in P && R(P.url),
|
|
6591
6594
|
!1
|
|
6592
6595
|
), Ti(
|
|
6593
|
-
"startTime" in P &&
|
|
6596
|
+
"startTime" in P && Te(P.startTime),
|
|
6594
6597
|
!1
|
|
6595
6598
|
);
|
|
6596
6599
|
}
|
|
@@ -6642,7 +6645,7 @@ ao = new WeakMap(), qr = new WeakMap(), oo = new WeakMap(), Tt = new WeakSet(),
|
|
|
6642
6645
|
return e.map((i, r) => (Ti(
|
|
6643
6646
|
i.url && R(i.url)
|
|
6644
6647
|
), Ti(
|
|
6645
|
-
"startTime" in i &&
|
|
6648
|
+
"startTime" in i && Te(i.startTime)
|
|
6646
6649
|
), {
|
|
6647
6650
|
...i,
|
|
6648
6651
|
url: R(i.url) ? a(this, Tt, Dc).call(this, i.url, t) : i.url
|
|
@@ -6664,7 +6667,7 @@ ao = new WeakMap(), qr = new WeakMap(), oo = new WeakMap(), Tt = new WeakSet(),
|
|
|
6664
6667
|
for (let r = 0; r < e.length; r++) {
|
|
6665
6668
|
const o = e[r];
|
|
6666
6669
|
Ti(
|
|
6667
|
-
"startTime" in o &&
|
|
6670
|
+
"startTime" in o && Te(o.startTime)
|
|
6668
6671
|
), Ti(
|
|
6669
6672
|
"text" in o && R(o.text)
|
|
6670
6673
|
);
|
|
@@ -6678,7 +6681,7 @@ ao = new WeakMap(), qr = new WeakMap(), oo = new WeakMap(), Tt = new WeakSet(),
|
|
|
6678
6681
|
endTime: r.endTime,
|
|
6679
6682
|
width: l == null ? void 0 : l.w,
|
|
6680
6683
|
height: l == null ? void 0 : l.h,
|
|
6681
|
-
coords: l &&
|
|
6684
|
+
coords: l && Te(l.x) && Te(l.y) ? { x: l.x, y: l.y } : void 0
|
|
6682
6685
|
});
|
|
6683
6686
|
}
|
|
6684
6687
|
return t;
|
|
@@ -6710,7 +6713,7 @@ class Vc extends Lt {
|
|
|
6710
6713
|
c(this, Dr, []);
|
|
6711
6714
|
}
|
|
6712
6715
|
onSetup() {
|
|
6713
|
-
this.media =
|
|
6716
|
+
this.media = ue(), u(this, Or, Ic.create(this.$props.src, this.$state.crossOrigin)), a(this, Q, Nc).call(this), this.setAttributes({
|
|
6714
6717
|
"data-loading": a(this, Q, oy).bind(this),
|
|
6715
6718
|
"data-error": a(this, Q, Fc).bind(this),
|
|
6716
6719
|
"data-hidden": this.$state.hidden,
|
|
@@ -6779,7 +6782,7 @@ Or = new WeakMap(), Dr = new WeakMap(), Q = new WeakSet(), sy = function() {
|
|
|
6779
6782
|
Math.max(parseInt(f), parseInt(l)) / o,
|
|
6780
6783
|
Math.max(parseInt(p), parseInt(d)) / h
|
|
6781
6784
|
), M = !isNaN(k) && k < 1 ? k : P > 1 ? P : 1;
|
|
6782
|
-
a(this, Q, ss).call(this, t, "--thumbnail-width", `${o * M}px`), a(this, Q, ss).call(this, t, "--thumbnail-height", `${h * M}px`), a(this, Q, ss).call(this, t, "--thumbnail-aspect-ratio", String(
|
|
6785
|
+
a(this, Q, ss).call(this, t, "--thumbnail-width", `${o * M}px`), a(this, Q, ss).call(this, t, "--thumbnail-height", `${h * M}px`), a(this, Q, ss).call(this, t, "--thumbnail-aspect-ratio", String(ce(o / h, 5))), a(this, Q, ss).call(this, i, "width", `${i.naturalWidth * M}px`), a(this, Q, ss).call(this, i, "height", `${i.naturalHeight * M}px`), a(this, Q, ss).call(this, i, "transform", r.coords ? `translate(-${r.coords.x * M}px, -${r.coords.y * M}px)` : ""), a(this, Q, ss).call(this, i, "max-width", "none");
|
|
6783
6786
|
}, ss = function(t, i, r) {
|
|
6784
6787
|
t.style.setProperty(i, r), s(this, Dr).push(() => t.style.removeProperty(i));
|
|
6785
6788
|
}, cy = function() {
|
|
@@ -6830,7 +6833,7 @@ class Eh extends Lt {
|
|
|
6830
6833
|
return this.$state.video();
|
|
6831
6834
|
}
|
|
6832
6835
|
onSetup() {
|
|
6833
|
-
u(this, Ss,
|
|
6836
|
+
u(this, Ss, ue()), u(this, lo, Co(Vn.state)), a(this, yt, Hc).call(this), this.setAttributes({
|
|
6834
6837
|
"data-loading": a(this, yt, fy).bind(this),
|
|
6835
6838
|
"data-hidden": this.$state.hidden,
|
|
6836
6839
|
"data-error": a(this, yt, Uc).bind(this),
|
|
@@ -6913,7 +6916,7 @@ class Hu extends Lt {
|
|
|
6913
6916
|
} = this.$props, { value: f, pointerValue: p, min: m, max: w } = s(this, co), P = (i == null ? void 0 : i()) ?? s(this, ks).default, k = t() === "current" ? f() : p();
|
|
6914
6917
|
if (P === "percent") {
|
|
6915
6918
|
const At = w() - m(), Ut = k / At * 100;
|
|
6916
|
-
return (s(this, ks).percent ??
|
|
6919
|
+
return (s(this, ks).percent ?? ce)(Ut, r()) + "%";
|
|
6917
6920
|
} else return P === "time" ? (s(this, ks).time ?? Fu)(k, {
|
|
6918
6921
|
padHrs: o(),
|
|
6919
6922
|
padMins: h(),
|
|
@@ -7015,7 +7018,7 @@ class jc extends Lt {
|
|
|
7015
7018
|
c(this, fo, xo(a(this, Ft, ky).bind(this), 25));
|
|
7016
7019
|
}
|
|
7017
7020
|
onSetup() {
|
|
7018
|
-
u(this, xe,
|
|
7021
|
+
u(this, xe, ue());
|
|
7019
7022
|
const { audioGain: t } = s(this, xe).$state;
|
|
7020
7023
|
Qi(Ea, {
|
|
7021
7024
|
default: "percent",
|
|
@@ -7053,7 +7056,7 @@ xe = new WeakMap(), Ft = new WeakSet(), wy = function() {
|
|
|
7053
7056
|
return Math.round(t() * (i() ?? 1));
|
|
7054
7057
|
}, Ty = function() {
|
|
7055
7058
|
const { value: t, max: i } = this.$state, { audioGain: r } = s(this, xe).$state;
|
|
7056
|
-
return
|
|
7059
|
+
return ce(t() / i() * (r() ?? 1) * 100, 2) + "%";
|
|
7057
7060
|
}, $y = function() {
|
|
7058
7061
|
const { audioGain: t } = s(this, xe).$state;
|
|
7059
7062
|
return this.$state.max() * (t() ?? 1);
|
|
@@ -7065,7 +7068,7 @@ xe = new WeakMap(), Ft = new WeakSet(), wy = function() {
|
|
|
7065
7068
|
this.$state.value.set(r), this.dispatch("value-change", { detail: r });
|
|
7066
7069
|
}, fo = new WeakMap(), ky = function(t) {
|
|
7067
7070
|
if (!t.trigger) return;
|
|
7068
|
-
const i =
|
|
7071
|
+
const i = ce(t.detail / 100, 3);
|
|
7069
7072
|
s(this, xe).remote.changeVolume(i, t);
|
|
7070
7073
|
}, Py = function(t) {
|
|
7071
7074
|
s(this, fo).call(this, t);
|
|
@@ -7104,7 +7107,7 @@ class Ch extends Lt {
|
|
|
7104
7107
|
});
|
|
7105
7108
|
}
|
|
7106
7109
|
onSetup() {
|
|
7107
|
-
u(this, mt,
|
|
7110
|
+
u(this, mt, ue()), Qi(Ea, {
|
|
7108
7111
|
default: "time",
|
|
7109
7112
|
value: a(this, x, By).bind(this),
|
|
7110
7113
|
time: a(this, x, jy).bind(this)
|
|
@@ -7123,7 +7126,7 @@ class Ch extends Lt {
|
|
|
7123
7126
|
}
|
|
7124
7127
|
mt = new WeakMap(), Nr = new WeakMap(), po = new WeakMap(), x = new WeakSet(), Cy = function() {
|
|
7125
7128
|
const { bufferedEnd: t, duration: i } = s(this, mt).$state;
|
|
7126
|
-
return
|
|
7129
|
+
return ce(Math.min(t() / Math.max(i(), 1), 1) * 100, 3) + "%";
|
|
7127
7130
|
}, xy = function() {
|
|
7128
7131
|
var i;
|
|
7129
7132
|
const { duration: t } = s(this, mt).$state;
|
|
@@ -7181,7 +7184,7 @@ Kc = function() {
|
|
|
7181
7184
|
const t = this.$props.keyStep() / s(this, mt).$state.duration() * 100;
|
|
7182
7185
|
return Number.isFinite(t) ? t : 1;
|
|
7183
7186
|
}, Ny = function(t) {
|
|
7184
|
-
return
|
|
7187
|
+
return ce(t, 3);
|
|
7185
7188
|
}, Fy = function() {
|
|
7186
7189
|
const { disabled: t } = this.$props, { canSeek: i } = s(this, mt).$state;
|
|
7187
7190
|
return t() || !i();
|
|
@@ -7199,7 +7202,7 @@ _y = function() {
|
|
|
7199
7202
|
// -------------------------------------------------------------------------------------------
|
|
7200
7203
|
Gs = function(t) {
|
|
7201
7204
|
const { duration: i } = s(this, mt).$state;
|
|
7202
|
-
return
|
|
7205
|
+
return ce(t / 100 * i(), 5);
|
|
7203
7206
|
}, Uy = function(t) {
|
|
7204
7207
|
const { liveEdge: i, duration: r } = s(this, mt).$state, o = Math.max(0, Math.min(1, i() ? 1 : Math.min(t, r()) / r()));
|
|
7205
7208
|
return Number.isNaN(o) ? 0 : Number.isFinite(o) ? o * 100 : 100;
|
|
@@ -7266,7 +7269,7 @@ class da extends Lt {
|
|
|
7266
7269
|
return s(this, te).call(this)[s(this, Pn).call(this)] || null;
|
|
7267
7270
|
}
|
|
7268
7271
|
onSetup() {
|
|
7269
|
-
u(this, re,
|
|
7272
|
+
u(this, re, ue()), u(this, Sn, Co(Ch.state));
|
|
7270
7273
|
}
|
|
7271
7274
|
onAttach(t) {
|
|
7272
7275
|
hf(s(this, re).textTracks, "chapters", a(this, A, Qc).bind(this)), b(a(this, A, Zy).bind(this));
|
|
@@ -7301,7 +7304,7 @@ re = new WeakMap(), Sn = new WeakMap(), _r = new WeakMap(), ii = new WeakMap(),
|
|
|
7301
7304
|
let i, { seekableStart: r, seekableEnd: o } = s(this, re).$state, h = r(), l = o() || t[t.length - 1].endTime, d = l - h, f = 100;
|
|
7302
7305
|
for (let p = 0; p < t.length; p++)
|
|
7303
7306
|
if (i = t[p], s(this, Zt)[p]) {
|
|
7304
|
-
const m = p === t.length - 1 ? f :
|
|
7307
|
+
const m = p === t.length - 1 ? f : ce((i.endTime - Math.max(h, i.startTime)) / d * 100, 3);
|
|
7305
7308
|
s(this, Zt)[p].style.width = m + "%", f -= m;
|
|
7306
7309
|
}
|
|
7307
7310
|
}, Qy = function() {
|
|
@@ -7333,7 +7336,7 @@ re = new WeakMap(), Sn = new WeakMap(), _r = new WeakMap(), ii = new WeakMap(),
|
|
|
7333
7336
|
s(this, Hh).call(this, s(this, Uh).call(this));
|
|
7334
7337
|
}, Hh = new WeakMap(), Uh = new WeakMap(), Xy = function() {
|
|
7335
7338
|
const { bufferedEnd: t, duration: i } = s(this, re).$state;
|
|
7336
|
-
return
|
|
7339
|
+
return ce(Math.min(t() / Math.max(i(), 1), 1), 3) * 100;
|
|
7337
7340
|
}, ah = function(t) {
|
|
7338
7341
|
var o;
|
|
7339
7342
|
const { seekableEnd: i } = s(this, re).$state, r = i();
|
|
@@ -7343,7 +7346,7 @@ re = new WeakMap(), Sn = new WeakMap(), _r = new WeakMap(), ii = new WeakMap(),
|
|
|
7343
7346
|
const l = o - r, d = Math.max(0, t.startTime - r), f = Math.min(o, t.endTime) - r, p = d / l, m = p * 100, w = Math.min(1, p + (f - d) / l) * 100;
|
|
7344
7347
|
return Math.max(
|
|
7345
7348
|
0,
|
|
7346
|
-
|
|
7349
|
+
ce(
|
|
7347
7350
|
i >= w ? 100 : (i - m) / (w - m) * 100,
|
|
7348
7351
|
3
|
|
7349
7352
|
)
|
|
@@ -7446,15 +7449,15 @@ const Os = ha(), wd = (n) => typeof n == "object" && n != null && n.nodeType ===
|
|
|
7446
7449
|
}
|
|
7447
7450
|
k != null && k === document.body && Uo(k) && !Uo(document.documentElement) || k != null && Uo(k, p) && P.push(k);
|
|
7448
7451
|
}
|
|
7449
|
-
const M = (i = (t = window.visualViewport) == null ? void 0 : t.width) != null ? i : innerWidth, B = (o = (r = window.visualViewport) == null ? void 0 : r.height) != null ? o : innerHeight, { scrollX: At, scrollY: Ut } = window, { height: Xt, width: se, top: Oe, right: De, bottom:
|
|
7452
|
+
const M = (i = (t = window.visualViewport) == null ? void 0 : t.width) != null ? i : innerWidth, B = (o = (r = window.visualViewport) == null ? void 0 : r.height) != null ? o : innerHeight, { scrollX: At, scrollY: Ut } = window, { height: Xt, width: se, top: Oe, right: De, bottom: de, left: E } = n.getBoundingClientRect(), { top: bt, right: It, bottom: bi, left: Xi } = ((wt) => {
|
|
7450
7453
|
const et = window.getComputedStyle(wt);
|
|
7451
7454
|
return { top: parseFloat(et.scrollMarginTop) || 0, right: parseFloat(et.scrollMarginRight) || 0, bottom: parseFloat(et.scrollMarginBottom) || 0, left: parseFloat(et.scrollMarginLeft) || 0 };
|
|
7452
7455
|
})(n);
|
|
7453
|
-
let Qt = l === "start" || l === "nearest" ? Oe - bt : l === "end" ?
|
|
7456
|
+
let Qt = l === "start" || l === "nearest" ? Oe - bt : l === "end" ? de + bi : Oe + Xt / 2 - bt + bi, qt = d === "center" ? E + se / 2 - Xi + It : d === "end" ? De + It : E - Xi;
|
|
7454
7457
|
const Ji = [];
|
|
7455
7458
|
for (let wt = 0; wt < P.length; wt++) {
|
|
7456
7459
|
const et = P[wt], { height: Ve, width: Bs, top: wi, right: Bn, bottom: ol, left: Io } = et.getBoundingClientRect();
|
|
7457
|
-
if (h === "if-needed" && Oe >= 0 && E >= 0 &&
|
|
7460
|
+
if (h === "if-needed" && Oe >= 0 && E >= 0 && de <= B && De <= M && (et === w && !Uo(et) || Oe >= wi && de <= ol && E >= Io && De <= Bn)) return Ji;
|
|
7458
7461
|
const Ro = getComputedStyle(et), qo = parseInt(Ro.borderLeftWidth, 10), Oo = parseInt(Ro.borderTopWidth, 10), Do = parseInt(Ro.borderRightWidth, 10), Vo = parseInt(Ro.borderBottomWidth, 10);
|
|
7459
7462
|
let Zi = 0, ts = 0;
|
|
7460
7463
|
const No = "offsetWidth" in et ? et.offsetWidth - et.clientWidth - qo - Do : 0, Fo = "offsetHeight" in et ? et.offsetHeight - et.clientHeight - Oo - Vo : 0, hl = "offsetWidth" in et ? et.offsetWidth === 0 ? 0 : Bs / et.offsetWidth : 0, ll = "offsetHeight" in et ? et.offsetHeight === 0 ? 0 : Ve / et.offsetHeight : 0;
|
|
@@ -7675,7 +7678,7 @@ class fa extends Lt {
|
|
|
7675
7678
|
return !!s(this, Cs);
|
|
7676
7679
|
}
|
|
7677
7680
|
onSetup() {
|
|
7678
|
-
u(this, We,
|
|
7681
|
+
u(this, We, ue());
|
|
7679
7682
|
const t = ++oS;
|
|
7680
7683
|
u(this, Hr, `media-menu-${t}`), u(this, Ur, `media-menu-button-${t}`), u(this, _i, new nS({
|
|
7681
7684
|
closeMenu: this.close.bind(this)
|
|
@@ -8085,7 +8088,7 @@ class nl extends Lt {
|
|
|
8085
8088
|
return !i() || t().length === 0;
|
|
8086
8089
|
}
|
|
8087
8090
|
onSetup() {
|
|
8088
|
-
u(this, Ls,
|
|
8091
|
+
u(this, Ls, ue()), On(Os) && u(this, Kr, Me(Os));
|
|
8089
8092
|
}
|
|
8090
8093
|
onConnect(t) {
|
|
8091
8094
|
b(a(this, Re, jb).bind(this)), b(a(this, Re, Wb).bind(this)), b(a(this, Re, Gb).bind(this));
|
|
@@ -8161,8 +8164,8 @@ Qr = new WeakMap(), Bi = new WeakMap(), ji = new WeakMap(), To = new WeakSet(),
|
|
|
8161
8164
|
regions: [...e.regions]
|
|
8162
8165
|
});
|
|
8163
8166
|
};
|
|
8164
|
-
var
|
|
8165
|
-
let wS = (
|
|
8167
|
+
var we, oe, F, lh, zb, Yb, Xb, hu, Jb, Zb, tw, ew, lu, iw, sw, Wi, cu, ch, uu, du;
|
|
8168
|
+
let wS = (we = class extends Lt {
|
|
8166
8169
|
constructor() {
|
|
8167
8170
|
super(...arguments);
|
|
8168
8171
|
c(this, F);
|
|
@@ -8170,7 +8173,7 @@ let wS = (be = class extends Lt {
|
|
|
8170
8173
|
c(this, Wi, -1);
|
|
8171
8174
|
}
|
|
8172
8175
|
onSetup() {
|
|
8173
|
-
u(this, oe,
|
|
8176
|
+
u(this, oe, ue()), this.setAttributes({
|
|
8174
8177
|
"aria-hidden": Hn(a(this, F, lh).bind(this))
|
|
8175
8178
|
});
|
|
8176
8179
|
}
|
|
@@ -8178,13 +8181,13 @@ let wS = (be = class extends Lt {
|
|
|
8178
8181
|
t.style.setProperty("pointer-events", "none");
|
|
8179
8182
|
}
|
|
8180
8183
|
onConnect(t) {
|
|
8181
|
-
|
|
8184
|
+
we.lib() || import("./dev-D3SS6qhA.js").then((i) => i.d).then((i) => we.lib.set(i)), b(a(this, F, zb).bind(this));
|
|
8182
8185
|
}
|
|
8183
8186
|
}, oe = new WeakMap(), F = new WeakSet(), lh = function() {
|
|
8184
8187
|
const { textTrack: t, remotePlaybackState: i, iOSControls: r } = s(this, oe).$state, o = t();
|
|
8185
|
-
return r() || i() === "connected" || !o || !
|
|
8188
|
+
return r() || i() === "connected" || !o || !le(o);
|
|
8186
8189
|
}, zb = function() {
|
|
8187
|
-
if (!
|
|
8190
|
+
if (!we.lib()) return;
|
|
8188
8191
|
const { viewType: t } = s(this, oe).$state;
|
|
8189
8192
|
return t() === "audio" ? a(this, F, Yb).call(this) : a(this, F, Zb).call(this);
|
|
8190
8193
|
}, Yb = function() {
|
|
@@ -8198,16 +8201,16 @@ let wS = (be = class extends Lt {
|
|
|
8198
8201
|
ft(t(), "cue-change", a(this, F, hu).bind(this)), b(a(this, F, Jb).bind(this));
|
|
8199
8202
|
}, hu = function() {
|
|
8200
8203
|
this.el.textContent = "", s(this, Wi) >= 0 && a(this, F, ch).call(this);
|
|
8201
|
-
const { realCurrentTime: t, textTrack: i } = s(this, oe).$state, { renderVTTCueString: r } =
|
|
8204
|
+
const { realCurrentTime: t, textTrack: i } = s(this, oe).$state, { renderVTTCueString: r } = we.lib(), o = v(t), h = v(i).activeCues;
|
|
8202
8205
|
for (const l of h) {
|
|
8203
8206
|
const d = a(this, F, uu).call(this), f = a(this, F, du).call(this);
|
|
8204
8207
|
f.innerHTML = r(l, o), d.append(f), this.el.append(f);
|
|
8205
8208
|
}
|
|
8206
8209
|
}, Jb = function() {
|
|
8207
|
-
const { realCurrentTime: t } = s(this, oe).$state, { updateTimedVTTCueNodes: i } =
|
|
8210
|
+
const { realCurrentTime: t } = s(this, oe).$state, { updateTimedVTTCueNodes: i } = we.lib();
|
|
8208
8211
|
i(this.el, t());
|
|
8209
8212
|
}, Zb = function() {
|
|
8210
|
-
const { CaptionsRenderer: t } =
|
|
8213
|
+
const { CaptionsRenderer: t } = we.lib(), i = new t(this.el), r = new bS(i);
|
|
8211
8214
|
return s(this, oe).textRenderers.add(r), b(a(this, F, tw).bind(this, i)), b(a(this, F, ew).bind(this, i)), a(this, F, lu).call(this, i), () => {
|
|
8212
8215
|
this.el.textContent = "", s(this, oe).textRenderers.remove(r), i.destroy();
|
|
8213
8216
|
};
|
|
@@ -8248,10 +8251,10 @@ let wS = (be = class extends Lt {
|
|
|
8248
8251
|
}, du = function() {
|
|
8249
8252
|
const t = document.createElement("div");
|
|
8250
8253
|
return W(t, "data-part", "cue"), t;
|
|
8251
|
-
}, y(
|
|
8254
|
+
}, y(we, "props", {
|
|
8252
8255
|
textDir: "ltr",
|
|
8253
8256
|
exampleText: "Captions look like this."
|
|
8254
|
-
}), y(
|
|
8257
|
+
}), y(we, "lib", V(null)), we);
|
|
8255
8258
|
var Wo, zr, Is, $o, vo, Mt, nw, rw, aw, fu, ow, hw, pu, lw;
|
|
8256
8259
|
let TS = (Wo = class extends Lt {
|
|
8257
8260
|
constructor() {
|
|
@@ -8263,7 +8266,7 @@ let TS = (Wo = class extends Lt {
|
|
|
8263
8266
|
c(this, vo, V(!0));
|
|
8264
8267
|
}
|
|
8265
8268
|
onSetup() {
|
|
8266
|
-
u(this, zr,
|
|
8269
|
+
u(this, zr, ue()), a(this, Mt, fu).call(this);
|
|
8267
8270
|
const { type: t } = this.$props;
|
|
8268
8271
|
this.setAttributes({
|
|
8269
8272
|
"data-type": t,
|
|
@@ -8383,7 +8386,7 @@ function Us(...n) {
|
|
|
8383
8386
|
}
|
|
8384
8387
|
function qS(n, e) {
|
|
8385
8388
|
const t = $.forwardRef((i, r) => {
|
|
8386
|
-
var B, At, Ut, Xt, se, Oe, De,
|
|
8389
|
+
var B, At, Ut, Xt, se, Oe, De, de;
|
|
8387
8390
|
let o = $.useContext(rl), h = $.useRef(null), l = $.useRef();
|
|
8388
8391
|
if (!l.current) {
|
|
8389
8392
|
const E = DS(), bt = Sd(n, E, i, o.current);
|
|
@@ -8428,7 +8431,7 @@ function qS(n, e) {
|
|
|
8428
8431
|
p.callbacks[E] = w[E];
|
|
8429
8432
|
else if ((Xt = e.domEvents) != null && Xt.has(E) || (se = e.domEventsRE) != null && se.test(E)) {
|
|
8430
8433
|
let bt = Xh(E.slice(2));
|
|
8431
|
-
p.domCallbacks[bt] = w[E], M.includes(E) ? p.el && !((
|
|
8434
|
+
p.domCallbacks[bt] = w[E], M.includes(E) ? p.el && !((de = p.listening) != null && de.has(bt)) && (p.listening || (p.listening = /* @__PURE__ */ new Set()), p.listening.add(bt), p.el.addEventListener(bt, p.onDOMEvent)) : ((Oe = p.el) == null || Oe.removeEventListener(bt, p.onDOMEvent), (De = p.listening) == null || De.delete(bt));
|
|
8432
8435
|
} else
|
|
8433
8436
|
P[E] = w[E];
|
|
8434
8437
|
return p.prevProps = M, IS(
|
|
@@ -8699,7 +8702,7 @@ const KS = ke($S), QS = $.forwardRef(
|
|
|
8699
8702
|
);
|
|
8700
8703
|
QS.displayName = "MediaProvider";
|
|
8701
8704
|
function mw({ provider: n, mediaProps: e, iframeProps: t }) {
|
|
8702
|
-
const { sources: i, crossOrigin: r, poster: o, remotePlaybackInfo: h, nativeControls: l, viewType: d } = Lo(ua), { loader: f } = n.$state, { $provider: p, $providerSetup: m } = Un(), w = gt(i), P = gt(l), k = gt(r), M = gt(o), B = gt(f), At = gt(p), Ut = gt(m), Xt = gt(h), se = B == null ? void 0 : B.mediaType(), Oe = gt(d), De = Oe === "audio",
|
|
8705
|
+
const { sources: i, crossOrigin: r, poster: o, remotePlaybackInfo: h, nativeControls: l, viewType: d } = Lo(ua), { loader: f } = n.$state, { $provider: p, $providerSetup: m } = Un(), w = gt(i), P = gt(l), k = gt(r), M = gt(o), B = gt(f), At = gt(p), Ut = gt(m), Xt = gt(h), se = B == null ? void 0 : B.mediaType(), Oe = gt(d), De = Oe === "audio", de = (B == null ? void 0 : B.name) === "youtube", E = (B == null ? void 0 : B.name) === "vimeo", bt = de || E, It = (B == null ? void 0 : B.name) === "remotion", bi = (B == null ? void 0 : B.name) === "google-cast", [Xi, Qt] = $.useState(""), [qt, Ji] = $.useState(!1);
|
|
8703
8706
|
return $.useEffect(() => {
|
|
8704
8707
|
!bi || Xi || import("./chromecast-fcYiHsj5.js").then((wt) => {
|
|
8705
8708
|
Qt(wt.default);
|
|
@@ -8736,7 +8739,7 @@ function mw({ provider: n, mediaProps: e, iframeProps: t }) {
|
|
|
8736
8739
|
null,
|
|
8737
8740
|
$.createElement("iframe", {
|
|
8738
8741
|
...t,
|
|
8739
|
-
className: (t != null && t.className ? `${t.className} ` : "") +
|
|
8742
|
+
className: (t != null && t.className ? `${t.className} ` : "") + de ? "vds-youtube" : "vds-vimeo",
|
|
8740
8743
|
suppressHydrationWarning: !0,
|
|
8741
8744
|
tabIndex: P ? void 0 : -1,
|
|
8742
8745
|
"aria-hidden": "true",
|
|
@@ -9041,7 +9044,7 @@ function lP(n) {
|
|
|
9041
9044
|
function cP({ off: n = !0 } = {}) {
|
|
9042
9045
|
const e = Un(), { textTracks: t, textTrack: i } = e.$state, r = gt(t);
|
|
9043
9046
|
return gt(i), $.useMemo(() => {
|
|
9044
|
-
const o = r.filter(
|
|
9047
|
+
const o = r.filter(le), h = o.map((l) => ({
|
|
9045
9048
|
track: l,
|
|
9046
9049
|
label: l.label,
|
|
9047
9050
|
value: Ed(l),
|
|
@@ -9541,7 +9544,7 @@ class Mk {
|
|
|
9541
9544
|
async load(e) {
|
|
9542
9545
|
if (!s(this, Rs))
|
|
9543
9546
|
throw Error("[vidstack] google cast player was not initialized");
|
|
9544
|
-
return new (await import("./vidstack-google-cast-
|
|
9547
|
+
return new (await import("./vidstack-google-cast-BaNgBqhV.js").then((t) => t.p)).GoogleCastProvider(s(this, Rs), e);
|
|
9545
9548
|
}
|
|
9546
9549
|
}
|
|
9547
9550
|
Rs = new WeakMap(), Yt = new WeakSet(), _w = async function(e) {
|
|
@@ -9693,7 +9696,7 @@ bu = function(e, t) {
|
|
|
9693
9696
|
return t.name === e.label && t.language === e.language && t.subtype.toLowerCase() === e.kind.toLowerCase();
|
|
9694
9697
|
};
|
|
9695
9698
|
export {
|
|
9696
|
-
|
|
9699
|
+
le as $,
|
|
9697
9700
|
Bk as A,
|
|
9698
9701
|
zt as B,
|
|
9699
9702
|
gP as C,
|
|
@@ -9706,7 +9709,7 @@ export {
|
|
|
9706
9709
|
Et as J,
|
|
9707
9710
|
fT as K,
|
|
9708
9711
|
D as L,
|
|
9709
|
-
|
|
9712
|
+
Te as M,
|
|
9710
9713
|
Wk as N,
|
|
9711
9714
|
Ok as O,
|
|
9712
9715
|
Xk as P,
|