@banou/stub 0.0.58 → 0.0.60
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/build/_routes.json +1 -0
- package/build/assets/{anime-seasons-BYvYwRwn.js → anime-seasons-Sn5AGwGE.js} +1 -1
- package/build/assets/build-CHRBRLpA.js +1 -0
- package/build/assets/country-D8hYH8v4.js +72 -0
- package/build/assets/dist-B_MSi_-2.js +1328 -0
- package/build/assets/dist-sBTuRPnX.js +1 -0
- package/build/assets/embed-BG7xcwwQ.js +392 -0
- package/build/assets/{embed-title-CosoIrXe.js → embed-title-DRzWo9Be.js} +1 -1
- package/build/assets/index-2HlB7SZv.js +2648 -0
- package/build/assets/jassub-worker-CoxWGl20.js +1 -0
- package/build/assets/{lib-build-B7te3F-u.js → lib-build-Bg46lQMG.js} +29 -59
- package/build/assets/{lib-dist-DvqYL0NS.js → lib-dist-_sG6LAEa.js} +3 -5
- package/build/assets/{lib-player-volume-Cj__TqOH.js → lib-player-volume-hbsJ_QQQ.js} +28 -56
- package/build/assets/lib-remote-CD-E7fNZ.js +1 -0
- package/build/assets/{lib-remote-CszW77_t.js → lib-remote-uPPe2_V1.js} +6 -8
- package/build/assets/{lib-theme-player-DpmBH0Uz.js → lib-theme-player-B_XpnzYA.js} +419 -541
- package/build/assets/{lib-worker-BXCkN-9Q.js → lib-worker-BndrZI3N.js} +1456 -1593
- package/build/assets/lib-worker-C98YLtbN.js +1 -0
- package/build/assets/{lib-worker-anime-seasons-BYvYwRwn.js → lib-worker-anime-seasons-Sn5AGwGE.js} +1 -1
- package/build/assets/lib-worker-index-CDl3F6Py.js +2648 -0
- package/build/assets/lib-worker-jassub-worker-DmV75w1c.js +1 -0
- package/build/assets/lib-worker-worker-DFac1w45.js +146 -0
- package/build/assets/main-CAGSHpO8.js +5776 -0
- package/build/assets/{player-volume-ChubmlGg.js → player-volume-DTOJyhLh.js} +1 -1
- package/build/assets/{remote-DQ5KVR01.js → remote-D8UjjUy7.js} +1 -1
- package/build/assets/remote-Dk-srDMl.js +1 -0
- package/build/assets/{theme-player-BfHkKsCa.js → theme-player-BsVznGeU.js} +1 -1
- package/build/assets/worker-6zDaiXIC.js +1 -0
- package/build/assets/worker-CNWgVhRO.js +1 -0
- package/build/assets/{worker-DJ-UoKG9.js → worker-D_yNUJG9.js} +2 -2
- package/build/embed.html +8 -8
- package/build/index.html +8 -8
- package/build/index.js +1652 -1051
- package/fkn.json +1 -1
- package/package.json +6 -6
- package/build/assets/build-C4wtZmgD.js +0 -1
- package/build/assets/country-Cg7CfAmX.js +0 -72
- package/build/assets/dist-SwCxXzZD.js +0 -1
- package/build/assets/dist-xpUFCIHk.js +0 -1328
- package/build/assets/embed-BxT8fPdZ.js +0 -392
- package/build/assets/index-DOZodZks.js +0 -2654
- package/build/assets/jassub-worker-ezqkHxaC.js +0 -1
- package/build/assets/lib-remote-DkrdRpDM.js +0 -2
- package/build/assets/lib-worker-CwmB42Tz.js +0 -2
- package/build/assets/lib-worker-index-DGh_UlvN.js +0 -2654
- package/build/assets/lib-worker-jassub-worker-C5QJW1O3.js +0 -1
- package/build/assets/lib-worker-worker-BjIUO7P3.js +0 -146
- package/build/assets/main-BLeaopKB.js +0 -5774
- package/build/assets/remote-ZTdKmv4r.js +0 -1
- package/build/assets/worker-4O2hafPi.js +0 -1
- package/build/assets/worker-s1DarU5c.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, r as t, s as n, t as r } from "./lib-dist-
|
|
2
|
-
import { $ as i, C as a, G as o, H as s, Q as c, R as l, S as u, T as d, U as f, V as p, X as m, Y as h, _ as g, a as _, at as v, b as y, c as b, ct as x, d as S, f as C, g as w, h as T, i as E, it as D, l as O, m as ee, n as k, nt as A, o as j, ot as M, p as N, pt as te, r as P, rt as F, s as I, st as L, tt as R, u as ne, ut as re, v as ie, x as z, y as ae, z as B } from "./lib-player-volume-
|
|
1
|
+
import { n as e, r as t, s as n, t as r } from "./lib-dist-_sG6LAEa.js";
|
|
2
|
+
import { $ as i, C as a, G as o, H as s, Q as c, R as l, S as u, T as d, U as f, V as p, X as m, Y as h, _ as g, a as _, at as v, b as y, c as b, ct as x, d as S, f as C, g as w, h as T, i as E, it as D, l as O, m as ee, n as k, nt as A, o as j, ot as M, p as N, pt as te, r as P, rt as F, s as I, st as L, tt as R, u as ne, ut as re, v as ie, x as z, y as ae, z as B } from "./lib-player-volume-hbsJ_QQQ.js";
|
|
3
3
|
var oe = g("captions-off", [
|
|
4
4
|
["path", {
|
|
5
5
|
d: "M10.5 5H19a2 2 0 0 1 2 2v8.5",
|
|
@@ -156,7 +156,7 @@ var oe = g("captions-off", [
|
|
|
156
156
|
if (!this._events[a]) return this;
|
|
157
157
|
if (!t) return o(this, a), this;
|
|
158
158
|
var s = this._events[a];
|
|
159
|
-
if (s.fn) s.fn
|
|
159
|
+
if (s.fn) s.fn !== t || i && !s.once || r && s.context !== r || o(this, a);
|
|
160
160
|
else {
|
|
161
161
|
for (var c = 0, l = [], u = s.length; c < u; c++) (s[c].fn !== t || i && !s[c].once || r && s[c].context !== r) && l.push(s[c]);
|
|
162
162
|
l.length ? this._events[a] = l.length === 1 ? l[0] : l : o(this, a);
|
|
@@ -189,42 +189,41 @@ var ue = H, U = class extends Error {
|
|
|
189
189
|
function me(e, t, n, r) {
|
|
190
190
|
let i, a = new Promise((a, o) => {
|
|
191
191
|
if (typeof t != "number" || Math.sign(t) !== 1) throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${t}\``);
|
|
192
|
-
if (t === Infinity)
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
192
|
+
if (t === Infinity) a(e);
|
|
193
|
+
else {
|
|
194
|
+
if (r = {
|
|
195
|
+
customTimers: {
|
|
196
|
+
setTimeout,
|
|
197
|
+
clearTimeout
|
|
198
|
+
},
|
|
199
|
+
...r
|
|
200
|
+
}, r.signal) {
|
|
201
|
+
let { signal: e } = r;
|
|
202
|
+
e.aborted && o(pe(e)), e.addEventListener("abort", () => {
|
|
203
|
+
o(pe(e));
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
i = r.customTimers.setTimeout.call(void 0, () => {
|
|
207
|
+
if (typeof n == "function") {
|
|
208
|
+
try {
|
|
209
|
+
a(n());
|
|
210
|
+
} catch (e) {
|
|
211
|
+
o(e);
|
|
212
|
+
}
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
let r = typeof n == "string" ? n : `Promise timed out after ${t} milliseconds`, i = n instanceof Error ? n : new U(r);
|
|
216
|
+
typeof e.cancel == "function" && e.cancel(), o(i);
|
|
217
|
+
}, t), (async () => {
|
|
210
218
|
try {
|
|
211
|
-
a(
|
|
219
|
+
a(await e);
|
|
212
220
|
} catch (e) {
|
|
213
221
|
o(e);
|
|
222
|
+
} finally {
|
|
223
|
+
r.customTimers.clearTimeout.call(void 0, i);
|
|
214
224
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
let r = typeof n == "string" ? n : `Promise timed out after ${t} milliseconds`, i = n instanceof Error ? n : new U(r);
|
|
218
|
-
typeof e.cancel == "function" && e.cancel(), o(i);
|
|
219
|
-
}, t), (async () => {
|
|
220
|
-
try {
|
|
221
|
-
a(await e);
|
|
222
|
-
} catch (e) {
|
|
223
|
-
o(e);
|
|
224
|
-
} finally {
|
|
225
|
-
r.customTimers.clearTimeout.call(void 0, i);
|
|
226
|
-
}
|
|
227
|
-
})();
|
|
225
|
+
})();
|
|
226
|
+
}
|
|
228
227
|
});
|
|
229
228
|
return a.clear = () => {
|
|
230
229
|
clearTimeout(i), i = void 0;
|
|
@@ -333,7 +332,7 @@ var W = function(e, t, n, r, i) {
|
|
|
333
332
|
return Promise.all(e.map(async (e) => this.add(e, t)));
|
|
334
333
|
}
|
|
335
334
|
start() {
|
|
336
|
-
return G(this, q, "f")
|
|
335
|
+
return G(this, q, "f") && (W(this, q, !1, "f"), G(this, K, "m", Ve).call(this)), this;
|
|
337
336
|
}
|
|
338
337
|
pause() {
|
|
339
338
|
W(this, q, !0, "f");
|
|
@@ -873,24 +872,23 @@ var Ke = Object.defineProperty, J = (e, t) => {
|
|
|
873
872
|
qn.set(e, t), e.eventTarget.addEventListener("message", ({ detail: n }) => {
|
|
874
873
|
if (n.type !== "message" && n.type !== "message-port-close" || t.tombstones.has(n.portId)) return;
|
|
875
874
|
let r = t.ports.get(n.portId);
|
|
876
|
-
if (n.seq === void 0)
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
}
|
|
891
|
-
|
|
875
|
+
if (n.seq === void 0) r?.handler?.(n);
|
|
876
|
+
else {
|
|
877
|
+
if (!r) {
|
|
878
|
+
if (t.pendingPorts >= Kn) return;
|
|
879
|
+
r = Yn(t, n.portId);
|
|
880
|
+
}
|
|
881
|
+
if (!(n.seq < r.nextSeq)) {
|
|
882
|
+
if (r.buffer.size >= Wn && !(n.seq === r.nextSeq && r.handler)) {
|
|
883
|
+
r.buffer.clear(), Xn(t, n.portId), r.handler?.({
|
|
884
|
+
type: "message-port-close",
|
|
885
|
+
remoteUuid: e.remoteUuid,
|
|
886
|
+
portId: n.portId
|
|
887
|
+
});
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
r.buffer.set(n.seq, n), Zn(r);
|
|
892
891
|
}
|
|
893
|
-
r.buffer.set(n.seq, n), Zn(r);
|
|
894
892
|
}
|
|
895
893
|
}), vn(e, () => {
|
|
896
894
|
for (let [n, r] of [...t.ports]) r.handler?.({
|
|
@@ -949,11 +947,7 @@ var Ke = Object.defineProperty, J = (e, t) => {
|
|
|
949
947
|
let t = s.deref();
|
|
950
948
|
t?.removeEventListener("message", p), t instanceof Rn && (t._onClose = void 0);
|
|
951
949
|
}, f = (e) => {
|
|
952
|
-
|
|
953
|
-
d(), a.dispatchEvent(new Event("close")), a.close();
|
|
954
|
-
return;
|
|
955
|
-
}
|
|
956
|
-
ir(e.data, t, (e) => rr(a, e, !1), () => {});
|
|
950
|
+
e.type === "message-port-close" ? (d(), a.dispatchEvent(new Event("close")), a.close()) : ir(e.data, t, (e) => rr(a, e, !1), () => {});
|
|
957
951
|
};
|
|
958
952
|
function p({ data: e }) {
|
|
959
953
|
t.sendMessage({
|
|
@@ -993,21 +987,13 @@ var Ke = Object.defineProperty, J = (e, t) => {
|
|
|
993
987
|
let a = jn(() => Oa(r, t)), o = Ln(a), s = Array.isArray(i) ? i : [], c = s.length ? [...o, ...s] : o, l = () => {
|
|
994
988
|
e.postMessage(a, c), pr(c);
|
|
995
989
|
};
|
|
996
|
-
|
|
997
|
-
n.pending.push(l);
|
|
998
|
-
return;
|
|
999
|
-
}
|
|
1000
|
-
l();
|
|
990
|
+
n && !n.shipped ? n.pending.push(l) : l();
|
|
1001
991
|
}, r.start = () => e.start();
|
|
1002
992
|
let s = () => {
|
|
1003
993
|
e.removeEventListener("message", i), e.removeEventListener("messageerror", a), e.removeEventListener("close", o), e.close();
|
|
1004
994
|
};
|
|
1005
995
|
return r.close = () => {
|
|
1006
|
-
|
|
1007
|
-
n.pending.push(s);
|
|
1008
|
-
return;
|
|
1009
|
-
}
|
|
1010
|
-
s();
|
|
996
|
+
n && !n.shipped ? n.pending.push(s) : s();
|
|
1011
997
|
}, r;
|
|
1012
998
|
}, hr = (e) => {
|
|
1013
999
|
if (kt(e.transport)) {
|
|
@@ -1092,15 +1078,11 @@ var Ke = Object.defineProperty, J = (e, t) => {
|
|
|
1092
1078
|
let a, o = () => {
|
|
1093
1079
|
n.close(), br.delete(n), a?.();
|
|
1094
1080
|
};
|
|
1095
|
-
|
|
1096
|
-
i(/* @__PURE__ */ Error("osra: connection closed")), o();
|
|
1097
|
-
return;
|
|
1098
|
-
}
|
|
1099
|
-
a = r ? vn(t, () => {
|
|
1081
|
+
r && yn(t) ? (i(/* @__PURE__ */ Error("osra: connection closed")), o()) : (a = r ? vn(t, () => {
|
|
1100
1082
|
i(/* @__PURE__ */ Error("osra: connection closed")), o();
|
|
1101
1083
|
}) : void 0, n.addEventListener("message", ({ data: t }) => {
|
|
1102
1084
|
t.type === "resolve" ? e(t.data) : i(t.error), o();
|
|
1103
|
-
}, { once: !0 }), n.start();
|
|
1085
|
+
}, { once: !0 }), n.start());
|
|
1104
1086
|
});
|
|
1105
1087
|
}, wr = /* @__PURE__ */ J({
|
|
1106
1088
|
box: () => kr,
|
|
@@ -1889,11 +1871,7 @@ var Ke = Object.defineProperty, J = (e, t) => {
|
|
|
1889
1871
|
revive: (e, t) => ({})
|
|
1890
1872
|
}
|
|
1891
1873
|
], ha = (e, t) => t.find((t) => t.type === e.type), ga = (e) => !!e && typeof e == "object" && Object.getPrototypeOf(e) === Object.prototype, _a = (e, t) => Array.isArray(e) ? e.map((e) => t(e)) : ga(e) ? Object.fromEntries(Object.entries(e).map(([e, n]) => [e, t(n)])) : e, va = /* @__PURE__ */ new WeakSet(), ya = /* @__PURE__ */ new WeakSet(), ba = 0, xa = [], Sa = (e, t) => {
|
|
1892
|
-
|
|
1893
|
-
e();
|
|
1894
|
-
return;
|
|
1895
|
-
}
|
|
1896
|
-
xa.push({
|
|
1874
|
+
ba === 0 ? e() : xa.push({
|
|
1897
1875
|
commit: e,
|
|
1898
1876
|
rollback: t
|
|
1899
1877
|
});
|
|
@@ -2092,14 +2070,10 @@ var Ke = Object.defineProperty, J = (e, t) => {
|
|
|
2092
2070
|
}
|
|
2093
2071
|
for (let e of t) {
|
|
2094
2072
|
let t = e.wake;
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
});
|
|
2100
|
-
continue;
|
|
2101
|
-
}
|
|
2102
|
-
e.buffered.push(r);
|
|
2073
|
+
t ? (e.wake = void 0, t({
|
|
2074
|
+
value: r,
|
|
2075
|
+
done: !1
|
|
2076
|
+
})) : e.buffered.push(r);
|
|
2103
2077
|
}
|
|
2104
2078
|
}
|
|
2105
2079
|
},
|
|
@@ -2191,14 +2165,10 @@ var Ke = Object.defineProperty, J = (e, t) => {
|
|
|
2191
2165
|
rejectRemoteValue: y,
|
|
2192
2166
|
abortConnection: (e) => {
|
|
2193
2167
|
let t = m.get(e);
|
|
2194
|
-
|
|
2195
|
-
h.add(e);
|
|
2196
|
-
return;
|
|
2197
|
-
}
|
|
2198
|
-
m.delete(e), x({
|
|
2168
|
+
t ? (m.delete(e), x({
|
|
2199
2169
|
type: "close",
|
|
2200
2170
|
remoteUuid: e
|
|
2201
|
-
}), bn(t.connection.revivableContext), y(/* @__PURE__ */ Error("osra: connection aborted"));
|
|
2171
|
+
}), bn(t.connection.revivableContext), y(/* @__PURE__ */ Error("osra: connection aborted"))) : h.add(e);
|
|
2202
2172
|
},
|
|
2203
2173
|
claimPendingAbort: (e) => h.delete(e),
|
|
2204
2174
|
addConnection: (e, t) => {
|
|
@@ -2367,8 +2337,7 @@ if (!("requestVideoFrameCallback" in $a) && eo && typeof requestAnimationFrame =
|
|
|
2367
2337
|
cancelAnimationFrame(this._rvfcpolyfillmap[e]), delete this._rvfcpolyfillmap[e];
|
|
2368
2338
|
};
|
|
2369
2339
|
}
|
|
2370
|
-
|
|
2371
|
-
//#region node_modules/abslink/src/types.js
|
|
2340
|
+
// node_modules/abslink/src/types.js
|
|
2372
2341
|
var to = {
|
|
2373
2342
|
RAW: "RAW",
|
|
2374
2343
|
PROXY: "PROXY",
|
|
@@ -2618,8 +2587,7 @@ function jo() {
|
|
|
2618
2587
|
if (!Ao || ko + 16 > 512) for (Ao = "", ko = 0; e < 256; ++e) Ao += Do[Math.random() * 256 | 0];
|
|
2619
2588
|
return Ao.substring(ko, ++ko + 16);
|
|
2620
2589
|
}
|
|
2621
|
-
|
|
2622
|
-
//#region node_modules/abslink/adapters/w3c.js
|
|
2590
|
+
// node_modules/abslink/adapters/w3c.js
|
|
2623
2591
|
function Mo(e, t) {
|
|
2624
2592
|
let n = /* @__PURE__ */ new WeakMap();
|
|
2625
2593
|
return e.start?.(), t.start?.(), {
|
|
@@ -2639,8 +2607,7 @@ function Mo(e, t) {
|
|
|
2639
2607
|
function No(e, t = e) {
|
|
2640
2608
|
return fo(Mo(e, t));
|
|
2641
2609
|
}
|
|
2642
|
-
|
|
2643
|
-
//#region node_modules/jassub/dist/debug.js
|
|
2610
|
+
// node_modules/jassub/dist/debug.js
|
|
2644
2611
|
var Po = /* @__PURE__ */ n((/* @__PURE__ */ t(((t, n) => {
|
|
2645
2612
|
r();
|
|
2646
2613
|
var i = e !== void 0 && !!e.hrtime, a = 65535, o = 10, s = i ? 1e9 / o : 1e3 / o, c = i ? () => {
|
|
@@ -2728,7 +2695,7 @@ var Po = /* @__PURE__ */ n((/* @__PURE__ */ t(((t, n) => {
|
|
|
2728
2695
|
type: "module"
|
|
2729
2696
|
}) : new Worker(new URL(
|
|
2730
2697
|
/* @vite-ignore */
|
|
2731
|
-
new URL("lib-worker-worker-
|
|
2698
|
+
new URL("lib-worker-worker-DFac1w45.js", import.meta.url).href,
|
|
2732
2699
|
"" + import.meta.url
|
|
2733
2700
|
), {
|
|
2734
2701
|
name: "jassub-worker",
|
|
@@ -2816,11 +2783,7 @@ var Po = /* @__PURE__ */ n((/* @__PURE__ */ t(((t, n) => {
|
|
|
2816
2783
|
async _demandRender(e = !1) {
|
|
2817
2784
|
let { mediaTime: t, width: n, height: r } = this._lastDemandTime;
|
|
2818
2785
|
if (n !== this._videoWidth || r !== this._videoHeight) return this._videoWidth = n, this._videoHeight = r, await this.resize(e);
|
|
2819
|
-
|
|
2820
|
-
this._skipped = !0, this.debug?._drop();
|
|
2821
|
-
return;
|
|
2822
|
-
}
|
|
2823
|
-
this.busy = !0, this._skipped = !1, this.debug?._startFrame(), await this.renderer._draw(t + this.timeOffset, e), this.debug?._endFrame(this._lastDemandTime), this.busy = !1, this._skipped && await this._demandRender();
|
|
2786
|
+
this.busy ? (this._skipped = !0, this.debug?._drop()) : (this.busy = !0, this._skipped = !1, this.debug?._startFrame(), await this.renderer._draw(t + this.timeOffset, e), this.debug?._endFrame(this._lastDemandTime), this.busy = !1, this._skipped && await this._demandRender());
|
|
2824
2787
|
}
|
|
2825
2788
|
_boundUpdateColorSpace = this._updateColorSpace.bind(this);
|
|
2826
2789
|
_updateColorSpace({ target: e }) {
|
|
@@ -2847,8 +2810,7 @@ var Po = /* @__PURE__ */ n((/* @__PURE__ */ t(((t, n) => {
|
|
|
2847
2810
|
}
|
|
2848
2811
|
}
|
|
2849
2812
|
};
|
|
2850
|
-
|
|
2851
|
-
//#region node_modules/ass-compiler/dist/esm/ass-compiler.js
|
|
2813
|
+
// node_modules/ass-compiler/dist/esm/ass-compiler.js
|
|
2852
2814
|
function Ro(e) {
|
|
2853
2815
|
var t = e.toLowerCase().trim().split(/\s*;\s*/);
|
|
2854
2816
|
return t[0] === "banner" ? {
|
|
@@ -3142,8 +3104,7 @@ function rs(e) {
|
|
|
3142
3104
|
}))(e[t]);
|
|
3143
3105
|
}).join("");
|
|
3144
3106
|
}
|
|
3145
|
-
|
|
3146
|
-
//#region node_modules/@banou/media-player/dist/engine-BdouHadr.js
|
|
3107
|
+
// node_modules/@banou/media-player/dist/engine-BdouHadr.js
|
|
3147
3108
|
var is = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
3148
3109
|
index: n,
|
|
3149
3110
|
start: e.buffered.start(n),
|
|
@@ -3481,15 +3442,11 @@ var is = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3481
3442
|
}
|
|
3482
3443
|
}, ve = 0, W = null, G, K = (e) => {
|
|
3483
3444
|
let t = performance.now(), n = t - ve;
|
|
3484
|
-
|
|
3485
|
-
ve = t, W = null, g?.(e);
|
|
3486
|
-
return;
|
|
3487
|
-
}
|
|
3488
|
-
W = e, !G && (G = setTimeout(() => {
|
|
3445
|
+
n >= Ds ? (ve = t, W = null, g?.(e)) : (W = e, !G && (G = setTimeout(() => {
|
|
3489
3446
|
G = void 0;
|
|
3490
3447
|
let e = W;
|
|
3491
3448
|
W = null, !(e === null || S) && (ve = performance.now(), g?.(e));
|
|
3492
|
-
}, Ds - n));
|
|
3449
|
+
}, Ds - n)));
|
|
3493
3450
|
};
|
|
3494
3451
|
x.push(() => {
|
|
3495
3452
|
G && clearTimeout(G);
|
|
@@ -3737,22 +3694,14 @@ var is = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3737
3694
|
stream: c.captureStream(),
|
|
3738
3695
|
mirror: u
|
|
3739
3696
|
};
|
|
3740
|
-
|
|
3697
|
+
a = f, u.srcObject = f.stream, (e.container ?? t.parentElement ?? document.body).appendChild(u), v(), s = setInterval(() => {
|
|
3741
3698
|
t.paused && h();
|
|
3742
3699
|
}, Ws), u.play().catch(() => {}), u.readyState === 0 && await new Promise((e) => {
|
|
3743
3700
|
let t = () => {
|
|
3744
3701
|
clearTimeout(n), e();
|
|
3745
3702
|
}, n = setTimeout(t, 1e3);
|
|
3746
3703
|
u.addEventListener("loadedmetadata", t, { once: !0 });
|
|
3747
|
-
}), d || a !== f)
|
|
3748
|
-
u.remove();
|
|
3749
|
-
return;
|
|
3750
|
-
}
|
|
3751
|
-
if (u.addEventListener("play", x), u.addEventListener("pause", S), u.addEventListener("leavepictureinpicture", ee), t.addEventListener("play", C), t.addEventListener("pause", w), t.addEventListener("seeked", T), D(!0), b(), r === "burn-in") {
|
|
3752
|
-
t.paused && u.pause(), e.onBurnedInChange?.(!0);
|
|
3753
|
-
return;
|
|
3754
|
-
}
|
|
3755
|
-
await u.requestPictureInPicture();
|
|
3704
|
+
}), d || a !== f ? u.remove() : (u.addEventListener("play", x), u.addEventListener("pause", S), u.addEventListener("leavepictureinpicture", ee), t.addEventListener("play", C), t.addEventListener("pause", w), t.addEventListener("seeked", T), D(!0), b(), r === "burn-in" ? (t.paused && u.pause(), e.onBurnedInChange?.(!0)) : await u.requestPictureInPicture());
|
|
3756
3705
|
};
|
|
3757
3706
|
return {
|
|
3758
3707
|
toggle: async () => {
|
|
@@ -3784,8 +3733,7 @@ var is = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
|
3784
3733
|
}
|
|
3785
3734
|
};
|
|
3786
3735
|
};
|
|
3787
|
-
|
|
3788
|
-
//#region node_modules/@videojs/utils/dist/predicate/predicate.js
|
|
3736
|
+
// node_modules/@videojs/utils/dist/predicate/predicate.js
|
|
3789
3737
|
function X(e) {
|
|
3790
3738
|
return typeof e == "function";
|
|
3791
3739
|
}
|
|
@@ -3798,8 +3746,7 @@ function Z(e) {
|
|
|
3798
3746
|
function Qs(e) {
|
|
3799
3747
|
return typeof e == "object" && !!e;
|
|
3800
3748
|
}
|
|
3801
|
-
|
|
3802
|
-
//#region node_modules/@videojs/utils/dist/object/shallow-equal.js
|
|
3749
|
+
// node_modules/@videojs/utils/dist/object/shallow-equal.js
|
|
3803
3750
|
var $s = Object.prototype.hasOwnProperty;
|
|
3804
3751
|
function ec(e, t) {
|
|
3805
3752
|
if (Object.is(e, t)) return !0;
|
|
@@ -3809,8 +3756,7 @@ function ec(e, t) {
|
|
|
3809
3756
|
for (let r of n) if (!$s.call(t, r) || !Object.is(e[r], t[r])) return !1;
|
|
3810
3757
|
return !0;
|
|
3811
3758
|
}
|
|
3812
|
-
|
|
3813
|
-
//#region node_modules/@videojs/core/dist/default/core/i18n/registry.js
|
|
3759
|
+
// node_modules/@videojs/core/dist/default/core/i18n/registry.js
|
|
3814
3760
|
var tc = /* @__PURE__ */ new Map(), nc = /* @__PURE__ */ new Set();
|
|
3815
3761
|
function rc(e) {
|
|
3816
3762
|
return e.trim().replaceAll("_", "-").toLowerCase();
|
|
@@ -3854,22 +3800,19 @@ function uc(e) {
|
|
|
3854
3800
|
nc.delete(e);
|
|
3855
3801
|
};
|
|
3856
3802
|
}
|
|
3857
|
-
|
|
3858
|
-
//#region node_modules/@videojs/core/dist/default/core/i18n/utils/interpolate.js
|
|
3803
|
+
// node_modules/@videojs/core/dist/default/core/i18n/utils/interpolate.js
|
|
3859
3804
|
var dc = /\{([^{}]+)\}/g;
|
|
3860
3805
|
function fc(e, t) {
|
|
3861
3806
|
return t ? e.replace(dc, (e, n) => Object.hasOwn(t, n) ? String(t[n]) : e) : e;
|
|
3862
3807
|
}
|
|
3863
|
-
|
|
3864
|
-
//#region node_modules/@videojs/core/dist/default/core/i18n/translator.js
|
|
3808
|
+
// node_modules/@videojs/core/dist/default/core/i18n/translator.js
|
|
3865
3809
|
function pc(e, t) {
|
|
3866
3810
|
return (t, n) => {
|
|
3867
3811
|
let r = n, i = typeof t != "string", a = i ? t.key : t, o = e[a], s = r?.default, c = r ? { ...r } : void 0;
|
|
3868
3812
|
return c && delete c.default, fc(o ?? (i ? t.text : s) ?? String(a), c);
|
|
3869
3813
|
};
|
|
3870
3814
|
}
|
|
3871
|
-
|
|
3872
|
-
//#region node_modules/@videojs/react/dist/default/i18n/context.js
|
|
3815
|
+
// node_modules/@videojs/react/dist/default/i18n/context.js
|
|
3873
3816
|
h();
|
|
3874
3817
|
var mc = re(null);
|
|
3875
3818
|
re(void 0);
|
|
@@ -3879,44 +3822,35 @@ function hc() {
|
|
|
3879
3822
|
let r = L(() => pc(lc("en"), "en"), [t]);
|
|
3880
3823
|
return e ? e.translator : r;
|
|
3881
3824
|
}
|
|
3882
|
-
|
|
3883
|
-
//#region node_modules/@videojs/utils/dist/dom/event.js
|
|
3825
|
+
// node_modules/@videojs/utils/dist/dom/event.js
|
|
3884
3826
|
function gc(e, t, n) {
|
|
3885
3827
|
return new Promise((r, i) => {
|
|
3886
3828
|
let a = () => {
|
|
3887
3829
|
i(n?.signal?.reason ?? "Aborted");
|
|
3888
3830
|
};
|
|
3889
|
-
|
|
3890
|
-
a();
|
|
3891
|
-
return;
|
|
3892
|
-
}
|
|
3893
|
-
n?.signal?.addEventListener("abort", a, { once: !0 }), e.addEventListener(t, (e) => {
|
|
3831
|
+
n?.signal?.aborted ? a() : (n?.signal?.addEventListener("abort", a, { once: !0 }), e.addEventListener(t, (e) => {
|
|
3894
3832
|
n?.signal?.removeEventListener("abort", a), r(e);
|
|
3895
3833
|
}, {
|
|
3896
3834
|
...n,
|
|
3897
3835
|
once: !0
|
|
3898
|
-
});
|
|
3836
|
+
}));
|
|
3899
3837
|
});
|
|
3900
3838
|
}
|
|
3901
|
-
|
|
3902
|
-
//#region node_modules/@videojs/utils/dist/dom/focus.js
|
|
3839
|
+
// node_modules/@videojs/utils/dist/dom/focus.js
|
|
3903
3840
|
function _c(e = document) {
|
|
3904
3841
|
let t = e.activeElement;
|
|
3905
3842
|
for (; t?.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
|
|
3906
3843
|
return t;
|
|
3907
3844
|
}
|
|
3908
|
-
|
|
3909
|
-
//#region node_modules/@videojs/utils/dist/dom/listen.js
|
|
3845
|
+
// node_modules/@videojs/utils/dist/dom/listen.js
|
|
3910
3846
|
function Q(e, t, n, r) {
|
|
3911
3847
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
3912
3848
|
}
|
|
3913
|
-
|
|
3914
|
-
//#region node_modules/@videojs/utils/dist/dom/predicates.js
|
|
3849
|
+
// node_modules/@videojs/utils/dist/dom/predicates.js
|
|
3915
3850
|
function vc(e) {
|
|
3916
3851
|
return e instanceof Node && e.nodeType === 11 && "host" in e;
|
|
3917
3852
|
}
|
|
3918
|
-
|
|
3919
|
-
//#region node_modules/@videojs/utils/dist/dom/text-track.js
|
|
3853
|
+
// node_modules/@videojs/utils/dist/dom/text-track.js
|
|
3920
3854
|
function yc(e) {
|
|
3921
3855
|
return e.kind === "captions" || e.kind === "subtitles";
|
|
3922
3856
|
}
|
|
@@ -3931,15 +3865,13 @@ function xc(e, t) {
|
|
|
3931
3865
|
function Sc(e, t) {
|
|
3932
3866
|
return e.kind > t.kind ? 1 : e.kind < t.kind ? -1 : 0;
|
|
3933
3867
|
}
|
|
3934
|
-
|
|
3935
|
-
//#region node_modules/@videojs/utils/dist/dom/time-ranges.js
|
|
3868
|
+
// node_modules/@videojs/utils/dist/dom/time-ranges.js
|
|
3936
3869
|
function Cc(e) {
|
|
3937
3870
|
let t = [];
|
|
3938
3871
|
for (let n = 0; n < e.length; n++) t.push([e.start(n), e.end(n)]);
|
|
3939
3872
|
return t;
|
|
3940
3873
|
}
|
|
3941
|
-
|
|
3942
|
-
//#region node_modules/@videojs/utils/dist/dom/tree.js
|
|
3874
|
+
// node_modules/@videojs/utils/dist/dom/tree.js
|
|
3943
3875
|
function wc(e, t) {
|
|
3944
3876
|
let n = t;
|
|
3945
3877
|
for (; n;) {
|
|
@@ -3949,16 +3881,14 @@ function wc(e, t) {
|
|
|
3949
3881
|
}
|
|
3950
3882
|
return !1;
|
|
3951
3883
|
}
|
|
3952
|
-
|
|
3953
|
-
//#region node_modules/@videojs/utils/dist/dom/webkit.js
|
|
3884
|
+
// node_modules/@videojs/utils/dist/dom/webkit.js
|
|
3954
3885
|
function Tc() {
|
|
3955
3886
|
return "WebKitPlaybackTargetAvailabilityEvent" in globalThis;
|
|
3956
3887
|
}
|
|
3957
3888
|
function Ec(e) {
|
|
3958
3889
|
return Tc() && "webkitCurrentPlaybackTargetIsWireless" in e;
|
|
3959
3890
|
}
|
|
3960
|
-
|
|
3961
|
-
//#region node_modules/@videojs/react/dist/default/utils/use-composed-refs.js
|
|
3891
|
+
// node_modules/@videojs/react/dist/default/utils/use-composed-refs.js
|
|
3962
3892
|
h();
|
|
3963
3893
|
function Dc(e, t) {
|
|
3964
3894
|
if (X(e)) return e(t);
|
|
@@ -3979,8 +3909,7 @@ function Oc(...e) {
|
|
|
3979
3909
|
function kc(...e) {
|
|
3980
3910
|
return F(Oc(...e), [...e]);
|
|
3981
3911
|
}
|
|
3982
|
-
|
|
3983
|
-
//#region node_modules/@videojs/store/dist/default/react/hooks/use-selector.js
|
|
3912
|
+
// node_modules/@videojs/store/dist/default/react/hooks/use-selector.js
|
|
3984
3913
|
h();
|
|
3985
3914
|
function Ac(e, t, n, r = ec) {
|
|
3986
3915
|
let a = i(void 0), o = () => {
|
|
@@ -3989,22 +3918,18 @@ function Ac(e, t, n, r = ec) {
|
|
|
3989
3918
|
};
|
|
3990
3919
|
return p(e, o, o);
|
|
3991
3920
|
}
|
|
3992
|
-
|
|
3993
|
-
//#region node_modules/@videojs/utils/dist/function/identity.js
|
|
3921
|
+
// node_modules/@videojs/utils/dist/function/identity.js
|
|
3994
3922
|
function jc(e) {
|
|
3995
3923
|
return e;
|
|
3996
3924
|
}
|
|
3997
|
-
|
|
3998
|
-
//#region node_modules/@videojs/utils/dist/function/noop.js
|
|
3925
|
+
// node_modules/@videojs/utils/dist/function/noop.js
|
|
3999
3926
|
function Mc(...e) {}
|
|
4000
|
-
|
|
4001
|
-
//#region node_modules/@videojs/store/dist/default/react/hooks/use-store.js
|
|
3927
|
+
// node_modules/@videojs/store/dist/default/react/hooks/use-store.js
|
|
4002
3928
|
var Nc = () => Mc;
|
|
4003
3929
|
function Pc(e, t, n) {
|
|
4004
3930
|
return Ac(t ? (t) => e.subscribe(t) : Nc, t ? () => e.state : () => e, t ?? jc, n);
|
|
4005
3931
|
}
|
|
4006
|
-
|
|
4007
|
-
//#region node_modules/@videojs/react/dist/default/player/context.js
|
|
3932
|
+
// node_modules/@videojs/react/dist/default/player/context.js
|
|
4008
3933
|
h();
|
|
4009
3934
|
var Fc = re(null);
|
|
4010
3935
|
function Ic({ value: e, children: t }) {
|
|
@@ -4028,8 +3953,7 @@ function zc() {
|
|
|
4028
3953
|
function Bc() {
|
|
4029
3954
|
return M(Fc)?.setContainer;
|
|
4030
3955
|
}
|
|
4031
|
-
|
|
4032
|
-
//#region node_modules/@videojs/utils/dist/events/abort.js
|
|
3956
|
+
// node_modules/@videojs/utils/dist/events/abort.js
|
|
4033
3957
|
function Vc(e) {
|
|
4034
3958
|
if ("any" in AbortSignal) return AbortSignal.any(e);
|
|
4035
3959
|
let t = new AbortController();
|
|
@@ -4039,8 +3963,7 @@ function Vc(e) {
|
|
|
4039
3963
|
}
|
|
4040
3964
|
return t.signal;
|
|
4041
3965
|
}
|
|
4042
|
-
|
|
4043
|
-
//#region node_modules/@videojs/store/dist/default/core/abort-controller-registry.js
|
|
3966
|
+
// node_modules/@videojs/store/dist/default/core/abort-controller-registry.js
|
|
4044
3967
|
var Hc = class {
|
|
4045
3968
|
#e = new AbortController();
|
|
4046
3969
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -4060,8 +3983,7 @@ var Hc = class {
|
|
|
4060
3983
|
return this.#t.set(e, t), Vc([this.#e.signal, t.signal]);
|
|
4061
3984
|
}
|
|
4062
3985
|
};
|
|
4063
|
-
|
|
4064
|
-
//#region node_modules/@videojs/store/dist/default/core/combine.js
|
|
3986
|
+
// node_modules/@videojs/store/dist/default/core/combine.js
|
|
4065
3987
|
function Uc(...e) {
|
|
4066
3988
|
return {
|
|
4067
3989
|
state: (t) => {
|
|
@@ -4077,8 +3999,7 @@ function Uc(...e) {
|
|
|
4077
3999
|
}
|
|
4078
4000
|
};
|
|
4079
4001
|
}
|
|
4080
|
-
|
|
4081
|
-
//#region node_modules/@videojs/store/dist/default/core/errors.js
|
|
4002
|
+
// node_modules/@videojs/store/dist/default/core/errors.js
|
|
4082
4003
|
var Wc = class extends Error {
|
|
4083
4004
|
code;
|
|
4084
4005
|
cause;
|
|
@@ -4092,13 +4013,11 @@ function Gc() {
|
|
|
4092
4013
|
function Kc() {
|
|
4093
4014
|
throw new Wc("DESTROYED");
|
|
4094
4015
|
}
|
|
4095
|
-
|
|
4096
|
-
//#region node_modules/@videojs/store/dist/default/core/slice.js
|
|
4016
|
+
// node_modules/@videojs/store/dist/default/core/slice.js
|
|
4097
4017
|
function qc() {
|
|
4098
4018
|
return (e) => e;
|
|
4099
4019
|
}
|
|
4100
|
-
|
|
4101
|
-
//#region node_modules/@videojs/store/dist/default/core/state.js
|
|
4020
|
+
// node_modules/@videojs/store/dist/default/core/state.js
|
|
4102
4021
|
var Jc = !1;
|
|
4103
4022
|
function Yc() {
|
|
4104
4023
|
Jc || (Jc = !0, queueMicrotask(Zc));
|
|
@@ -4150,8 +4069,7 @@ var Qc = Object.prototype.hasOwnProperty, $c = class {
|
|
|
4150
4069
|
function el(e) {
|
|
4151
4070
|
return new $c(e);
|
|
4152
4071
|
}
|
|
4153
|
-
|
|
4154
|
-
//#region node_modules/@videojs/store/dist/default/core/store.js
|
|
4072
|
+
// node_modules/@videojs/store/dist/default/core/store.js
|
|
4155
4073
|
var tl = Symbol.for("@videojs/store");
|
|
4156
4074
|
function nl() {
|
|
4157
4075
|
return (e, t = {}) => {
|
|
@@ -4245,8 +4163,7 @@ function nl() {
|
|
|
4245
4163
|
}
|
|
4246
4164
|
};
|
|
4247
4165
|
}
|
|
4248
|
-
|
|
4249
|
-
//#region node_modules/@videojs/core/dist/default/dom/feature.js
|
|
4166
|
+
// node_modules/@videojs/core/dist/default/dom/feature.js
|
|
4250
4167
|
var rl = qc();
|
|
4251
4168
|
function il(e, t) {
|
|
4252
4169
|
if (arguments.length === 1) return rl(e);
|
|
@@ -4257,8 +4174,7 @@ function il(e, t) {
|
|
|
4257
4174
|
}), o = a(t), s = ((e) => Z(e) ? o : a(e));
|
|
4258
4175
|
return s.state = o.state, o.attach && (s.attach = o.attach), Z(n) || Object.defineProperty(s, "name", { value: n }), s;
|
|
4259
4176
|
}
|
|
4260
|
-
|
|
4261
|
-
//#region node_modules/@videojs/media/dist/default/core/constants.js
|
|
4177
|
+
// node_modules/@videojs/media/dist/default/core/constants.js
|
|
4262
4178
|
var al = Object.freeze({
|
|
4263
4179
|
length: 0,
|
|
4264
4180
|
start: () => 0,
|
|
@@ -4269,8 +4185,7 @@ var al = Object.freeze({
|
|
|
4269
4185
|
getTrackById: () => null
|
|
4270
4186
|
}), sl = new EventTarget();
|
|
4271
4187
|
Object.freeze({});
|
|
4272
|
-
|
|
4273
|
-
//#region node_modules/@videojs/media/dist/default/core/predicate.js
|
|
4188
|
+
// node_modules/@videojs/media/dist/default/core/predicate.js
|
|
4274
4189
|
function cl(e) {
|
|
4275
4190
|
return e.readyState >= 1;
|
|
4276
4191
|
}
|
|
@@ -4329,8 +4244,7 @@ function bl(e) {
|
|
|
4329
4244
|
function xl(e) {
|
|
4330
4245
|
return Qs(e) && "querySelectorAll" in e && X(e.querySelectorAll);
|
|
4331
4246
|
}
|
|
4332
|
-
|
|
4333
|
-
//#region node_modules/@videojs/core/dist/default/dom/store/features/audio-track.js
|
|
4247
|
+
// node_modules/@videojs/core/dist/default/dom/store/features/audio-track.js
|
|
4334
4248
|
function Sl(e, t) {
|
|
4335
4249
|
return e.id || String(t);
|
|
4336
4250
|
}
|
|
@@ -4359,11 +4273,7 @@ var wl = il({
|
|
|
4359
4273
|
n({ audioTrackList: e ? [...e].map(Cl) : [] });
|
|
4360
4274
|
}, c = () => {
|
|
4361
4275
|
let e = o();
|
|
4362
|
-
|
|
4363
|
-
s(e);
|
|
4364
|
-
return;
|
|
4365
|
-
}
|
|
4366
|
-
a?.abort(), a = new AbortController(), i = e, i && (Q(i, "addtrack", () => s(i), { signal: a.signal }), Q(i, "removetrack", () => s(i), { signal: a.signal }), Q(i, "change", () => s(i), { signal: a.signal })), s(i);
|
|
4276
|
+
e === i ? s(e) : (a?.abort(), a = new AbortController(), i = e, i && (Q(i, "addtrack", () => s(i), { signal: a.signal }), Q(i, "removetrack", () => s(i), { signal: a.signal }), Q(i, "change", () => s(i), { signal: a.signal })), s(i));
|
|
4367
4277
|
};
|
|
4368
4278
|
c(), Q(r, "loadstart", c, { signal: t }), t.addEventListener("abort", () => a?.abort(), { once: !0 });
|
|
4369
4279
|
}
|
|
@@ -4386,8 +4296,7 @@ var wl = il({
|
|
|
4386
4296
|
function Dl(e) {
|
|
4387
4297
|
return El.get(e);
|
|
4388
4298
|
}
|
|
4389
|
-
|
|
4390
|
-
//#region node_modules/@videojs/core/dist/default/dom/presentation/remote-playback.js
|
|
4299
|
+
// node_modules/@videojs/core/dist/default/dom/presentation/remote-playback.js
|
|
4391
4300
|
function Ol(e) {
|
|
4392
4301
|
let t = e;
|
|
4393
4302
|
if (Qs(t.remote) && "state" in t.remote && "prompt" in t.remote) return t.remote;
|
|
@@ -4403,8 +4312,7 @@ async function jl(e) {
|
|
|
4403
4312
|
if (!t) throw new DOMException("Remote playback not supported", "NotSupportedError");
|
|
4404
4313
|
return t.prompt();
|
|
4405
4314
|
}
|
|
4406
|
-
|
|
4407
|
-
//#region node_modules/@videojs/core/dist/default/dom/store/features/controls.js
|
|
4315
|
+
// node_modules/@videojs/core/dist/default/dom/store/features/controls.js
|
|
4408
4316
|
var Ml = 2e3, Nl = 250, Pl = 500, Fl = il({
|
|
4409
4317
|
name: "controls",
|
|
4410
4318
|
state: ({ get: e, set: t }) => ({
|
|
@@ -4459,11 +4367,7 @@ var Ml = 2e3, Nl = 250, Pl = 500, Fl = il({
|
|
|
4459
4367
|
r({ controlsVisible: o(e) }), !i.paused && e && l();
|
|
4460
4368
|
};
|
|
4461
4369
|
function v(e) {
|
|
4462
|
-
|
|
4463
|
-
n().userActive && l();
|
|
4464
|
-
return;
|
|
4465
|
-
}
|
|
4466
|
-
u();
|
|
4370
|
+
e.pointerType === "touch" ? n().userActive && l() : u();
|
|
4467
4371
|
}
|
|
4468
4372
|
if (Q(a, "pointermove", v, { signal: t }), Q(a, "pointerdown", h, { signal: t }), Q(a, "pointerup", g, { signal: t }), Q(a, "keyup", u, { signal: t }), Q(a, "focusin", () => {
|
|
4469
4373
|
m() || u();
|
|
@@ -4491,8 +4395,7 @@ var Ml = 2e3, Nl = 250, Pl = 500, Fl = il({
|
|
|
4491
4395
|
hl(r) && (Q(r, "error", () => n({ error: r.error }), { signal: t }), Q(r, "emptied", () => n({ error: null }), { signal: t }));
|
|
4492
4396
|
}
|
|
4493
4397
|
});
|
|
4494
|
-
|
|
4495
|
-
//#region node_modules/@videojs/core/dist/default/dom/presentation/fullscreen.js
|
|
4398
|
+
// node_modules/@videojs/core/dist/default/dom/presentation/fullscreen.js
|
|
4496
4399
|
function Ll() {
|
|
4497
4400
|
let e = document;
|
|
4498
4401
|
return e.fullscreenEnabled || e.webkitFullscreenEnabled ? !0 : X(document.createElement("video").webkitSetPresentationMode);
|
|
@@ -4540,8 +4443,7 @@ async function Hl(e) {
|
|
|
4540
4443
|
let r = e;
|
|
4541
4444
|
if (X(r.exitFullscreen)) return r.exitFullscreen();
|
|
4542
4445
|
}
|
|
4543
|
-
|
|
4544
|
-
//#region node_modules/@videojs/core/dist/default/dom/presentation/pip.js
|
|
4446
|
+
// node_modules/@videojs/core/dist/default/dom/presentation/pip.js
|
|
4545
4447
|
function Ul() {
|
|
4546
4448
|
if (document.pictureInPictureEnabled) {
|
|
4547
4449
|
let e = /.*Version\/.*Safari\/.*/.test(navigator.userAgent), t = typeof matchMedia == "function" && matchMedia("(display-mode: standalone)").matches;
|
|
@@ -4571,8 +4473,7 @@ async function Kl(e) {
|
|
|
4571
4473
|
let n = e;
|
|
4572
4474
|
if (X(n.exitPictureInPicture)) return n.exitPictureInPicture();
|
|
4573
4475
|
}
|
|
4574
|
-
|
|
4575
|
-
//#region node_modules/@videojs/core/dist/default/dom/store/features/fullscreen.js
|
|
4476
|
+
// node_modules/@videojs/core/dist/default/dom/store/features/fullscreen.js
|
|
4576
4477
|
var ql = il({
|
|
4577
4478
|
name: "fullscreen",
|
|
4578
4479
|
state: ({ target: e }) => ({
|
|
@@ -4729,11 +4630,7 @@ var nu = il({
|
|
|
4729
4630
|
});
|
|
4730
4631
|
}, l = () => {
|
|
4731
4632
|
let e = o();
|
|
4732
|
-
|
|
4733
|
-
c(e);
|
|
4734
|
-
return;
|
|
4735
|
-
}
|
|
4736
|
-
a?.abort(), a = new AbortController(), i = e, i && (Q(i, "addrendition", () => c(i), { signal: a.signal }), Q(i, "removerendition", () => c(i), { signal: a.signal }), Q(i, "change", () => c(i), { signal: a.signal }), Q(i, "activechange", () => c(i), { signal: a.signal })), c(i);
|
|
4633
|
+
e === i ? c(e) : (a?.abort(), a = new AbortController(), i = e, i && (Q(i, "addrendition", () => c(i), { signal: a.signal }), Q(i, "removerendition", () => c(i), { signal: a.signal }), Q(i, "change", () => c(i), { signal: a.signal }), Q(i, "activechange", () => c(i), { signal: a.signal })), c(i));
|
|
4737
4634
|
};
|
|
4738
4635
|
l(), Q(r, "loadstart", l, { signal: t }), Q(r, "resize", () => c(i), { signal: t }), t.addEventListener("abort", () => a?.abort(), { once: !0 });
|
|
4739
4636
|
}
|
|
@@ -4777,7 +4674,7 @@ var nu = il({
|
|
|
4777
4674
|
loadSource(n) {
|
|
4778
4675
|
t.clear();
|
|
4779
4676
|
let { media: r } = e();
|
|
4780
|
-
return dl(r)
|
|
4677
|
+
return dl(r) && (r.src = n, r.load()), n;
|
|
4781
4678
|
}
|
|
4782
4679
|
}),
|
|
4783
4680
|
attach({ target: e, signal: t, set: n }) {
|
|
@@ -4790,8 +4687,7 @@ var nu = il({
|
|
|
4790
4687
|
i(), Q(r, "canplay", i, { signal: t }), Q(r, "canplaythrough", i, { signal: t }), Q(r, "loadstart", i, { signal: t }), Q(r, "emptied", i, { signal: t });
|
|
4791
4688
|
}
|
|
4792
4689
|
});
|
|
4793
|
-
|
|
4794
|
-
//#region node_modules/@videojs/core/dist/default/dom/store/features/text-track.js
|
|
4690
|
+
// node_modules/@videojs/core/dist/default/dom/store/features/text-track.js
|
|
4795
4691
|
function au(e, t) {
|
|
4796
4692
|
return e.id || `track:${t}:${e.kind}:${e.language}:${e.label}`;
|
|
4797
4693
|
}
|
|
@@ -4932,8 +4828,7 @@ function du() {
|
|
|
4932
4828
|
return "unsupported";
|
|
4933
4829
|
}
|
|
4934
4830
|
}
|
|
4935
|
-
|
|
4936
|
-
//#region node_modules/@videojs/core/dist/default/dom/store/features/presets.js
|
|
4831
|
+
// node_modules/@videojs/core/dist/default/dom/store/features/presets.js
|
|
4937
4832
|
var fu = [
|
|
4938
4833
|
Yl,
|
|
4939
4834
|
Zl,
|
|
@@ -4952,10 +4847,9 @@ var fu = [
|
|
|
4952
4847
|
], pu = "group";
|
|
4953
4848
|
function mu(e) {
|
|
4954
4849
|
let t = _c(e.ownerDocument);
|
|
4955
|
-
|
|
4850
|
+
t && t !== e.ownerDocument.body && wc(e, t) || e.focus({ preventScroll: !0 });
|
|
4956
4851
|
}
|
|
4957
|
-
|
|
4958
|
-
//#region node_modules/@videojs/core/dist/default/dom/ui/popover/popup-group.js
|
|
4852
|
+
// node_modules/@videojs/core/dist/default/dom/ui/popover/popup-group.js
|
|
4959
4853
|
function hu() {
|
|
4960
4854
|
let e = null;
|
|
4961
4855
|
return {
|
|
@@ -4967,14 +4861,12 @@ function hu() {
|
|
|
4967
4861
|
}
|
|
4968
4862
|
};
|
|
4969
4863
|
}
|
|
4970
|
-
|
|
4971
|
-
//#region node_modules/@videojs/core/dist/default/i18n/text/container.js
|
|
4864
|
+
// node_modules/@videojs/core/dist/default/i18n/text/container.js
|
|
4972
4865
|
var gu = {
|
|
4973
4866
|
key: "container.label",
|
|
4974
4867
|
text: "Media player"
|
|
4975
4868
|
};
|
|
4976
|
-
|
|
4977
|
-
//#region node_modules/@videojs/react/dist/default/player/container.js
|
|
4869
|
+
// node_modules/@videojs/react/dist/default/player/container.js
|
|
4978
4870
|
h();
|
|
4979
4871
|
var _u = o(function({ children: e, tabIndex: t = 0, role: n = pu, "aria-label": r, "aria-labelledby": a, ...o }, s) {
|
|
4980
4872
|
let c = Bc(), l = hc(), u = i(null), f = kc(s, u);
|
|
@@ -4997,15 +4889,13 @@ var _u = o(function({ children: e, tabIndex: t = 0, role: n = pu, "aria-label":
|
|
|
4997
4889
|
children: e
|
|
4998
4890
|
});
|
|
4999
4891
|
});
|
|
5000
|
-
|
|
5001
|
-
//#region node_modules/@videojs/react/dist/default/utils/use-latest-ref.js
|
|
4892
|
+
// node_modules/@videojs/react/dist/default/utils/use-latest-ref.js
|
|
5002
4893
|
h();
|
|
5003
4894
|
function vu(e) {
|
|
5004
4895
|
let t = i(e);
|
|
5005
4896
|
return t.current = e, t;
|
|
5006
4897
|
}
|
|
5007
|
-
|
|
5008
|
-
//#region node_modules/@videojs/react/dist/default/utils/use-destroy.js
|
|
4898
|
+
// node_modules/@videojs/react/dist/default/utils/use-destroy.js
|
|
5009
4899
|
h();
|
|
5010
4900
|
function yu(e, t, n) {
|
|
5011
4901
|
let r = i(null), a = vu(t), o = vu(n);
|
|
@@ -5015,19 +4905,15 @@ function yu(e, t, n) {
|
|
|
5015
4905
|
}, 0);
|
|
5016
4906
|
}), [e]);
|
|
5017
4907
|
}
|
|
5018
|
-
|
|
5019
|
-
//#region node_modules/@videojs/react/dist/default/player/create-player.js
|
|
4908
|
+
// node_modules/@videojs/react/dist/default/player/create-player.js
|
|
5020
4909
|
h();
|
|
5021
4910
|
function bu(e) {
|
|
5022
4911
|
function t({ children: t }) {
|
|
5023
4912
|
let [n, r] = D(() => nl()(Uc(...e.features))), [i] = D(() => hu()), [a, o] = D(null), [s, c] = D(null);
|
|
5024
4913
|
return yu(n), A(() => {
|
|
5025
4914
|
if (a) {
|
|
5026
|
-
if (n.destroyed)
|
|
5027
|
-
|
|
5028
|
-
return;
|
|
5029
|
-
}
|
|
5030
|
-
return n.attach({
|
|
4915
|
+
if (n.destroyed) r(nl()(Uc(...e.features)));
|
|
4916
|
+
else return n.attach({
|
|
5031
4917
|
media: a,
|
|
5032
4918
|
container: s
|
|
5033
4919
|
});
|
|
@@ -5064,8 +4950,7 @@ function bu(e) {
|
|
|
5064
4950
|
useMedia: Rc
|
|
5065
4951
|
};
|
|
5066
4952
|
}
|
|
5067
|
-
|
|
5068
|
-
//#region node_modules/@banou/ponyfill/build/web-audio.js
|
|
4953
|
+
// node_modules/@banou/ponyfill/build/web-audio.js
|
|
5069
4954
|
v();
|
|
5070
4955
|
var xu = (e, t) => {
|
|
5071
4956
|
if (globalThis.navigator?.vendor === "Apple Computer, Inc.") throw new DOMException("A media element routed into Web Audio loses its volume and mute, or its sound, in this engine", "NotSupportedError");
|
|
@@ -5812,8 +5697,7 @@ var Vu = {
|
|
|
5812
5697
|
};
|
|
5813
5698
|
return s.createElement(Uu, { ...Le });
|
|
5814
5699
|
}));
|
|
5815
|
-
|
|
5816
|
-
//#region node_modules/@banou/media-player/dist/index.js
|
|
5700
|
+
// node_modules/@banou/media-player/dist/index.js
|
|
5817
5701
|
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", ((e) => {
|
|
5818
5702
|
e.detail.disableCore || Du({
|
|
5819
5703
|
css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.core-styles-module_content__BRKdB{position:relative;z-index:1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",
|
|
@@ -6004,9 +5888,7 @@ var Ku = {
|
|
|
6004
5888
|
count: C.current.count + 1,
|
|
6005
5889
|
at: t
|
|
6006
5890
|
}, console.warn(`the media element failed; rebuilding the pipeline${n ? ` in ${n}ms` : ""}`, e), w.current && clearTimeout(w.current), w.current = setTimeout(() => S((e) => e + 1), n);
|
|
6007
|
-
|
|
6008
|
-
}
|
|
6009
|
-
console.error("playback failed", e), a.setSourceState({ playbackError: e }), j.current?.(e);
|
|
5891
|
+
} else console.error("playback failed", e), a.setSourceState({ playbackError: e }), j.current?.(e);
|
|
6010
5892
|
};
|
|
6011
5893
|
return (async () => {
|
|
6012
5894
|
try {
|
|
@@ -6089,57 +5971,75 @@ var Ku = {
|
|
|
6089
5971
|
clearTimeout(r), n();
|
|
6090
5972
|
});
|
|
6091
5973
|
}), cd = (e) => {
|
|
6092
|
-
let t =
|
|
5974
|
+
let t = !1, n, r = async (i) => {
|
|
5975
|
+
if (t) n = i;
|
|
5976
|
+
else {
|
|
5977
|
+
t = !0;
|
|
5978
|
+
try {
|
|
5979
|
+
await e(i);
|
|
5980
|
+
} finally {
|
|
5981
|
+
t = !1;
|
|
5982
|
+
let e = n;
|
|
5983
|
+
n = void 0, e && r(e);
|
|
5984
|
+
}
|
|
5985
|
+
}
|
|
5986
|
+
};
|
|
5987
|
+
return r;
|
|
5988
|
+
}, ld = (e, t) => {
|
|
5989
|
+
let n = $(), r = $((e) => e.setSourceState), a = i(t);
|
|
5990
|
+
a.current = t;
|
|
5991
|
+
let o = !!t;
|
|
6093
5992
|
A(() => {
|
|
6094
|
-
let
|
|
6095
|
-
if (!
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
5993
|
+
let t = e;
|
|
5994
|
+
if (!t) return;
|
|
5995
|
+
if (typeof t.requestVideoFrameCallback != "function") return o ? (r({ stepFrame: cd(async (e) => {
|
|
5996
|
+
try {
|
|
5997
|
+
await a.current?.(e);
|
|
5998
|
+
} catch (e) {
|
|
5999
|
+
console.warn("the host could not step a frame", e);
|
|
6000
|
+
}
|
|
6001
|
+
}) }), () => r({ stepFrame: void 0 })) : void 0;
|
|
6002
|
+
let i, s = !1, c = [], l = () => {
|
|
6003
|
+
s = !0, i = void 0;
|
|
6004
|
+
}, u = () => {
|
|
6005
|
+
i = void 0, c.length = 0;
|
|
6100
6006
|
};
|
|
6101
|
-
|
|
6102
|
-
let
|
|
6103
|
-
let
|
|
6104
|
-
!
|
|
6007
|
+
t.addEventListener("seeking", l), t.addEventListener("emptied", u);
|
|
6008
|
+
let d = 0, f = (e, n) => {
|
|
6009
|
+
let r = s;
|
|
6010
|
+
!t.paused && !t.seeking && (s = !1), !r && !t.paused && t.playbackRate <= 1 && i && n.presentedFrames === i.presentedFrames + 1 && n.mediaTime > i.mediaTime && (c.push(n.mediaTime - i.mediaTime), c.length > 60 && c.shift()), i = r ? void 0 : n, d = t.requestVideoFrameCallback(f);
|
|
6105
6011
|
};
|
|
6106
|
-
|
|
6107
|
-
let
|
|
6108
|
-
if (
|
|
6109
|
-
let e = [...
|
|
6012
|
+
d = t.requestVideoFrameCallback(f);
|
|
6013
|
+
let p = () => {
|
|
6014
|
+
if (c.length < 5) return od;
|
|
6015
|
+
let e = [...c].sort((e, t) => e - t), t = e[e.length >> 1], n = e.filter((e) => Math.abs(e - t) <= t / 4);
|
|
6110
6016
|
return n.reduce((e, t) => e + t, 0) / n.length;
|
|
6111
|
-
},
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
l ? l(s) : r.currentTime = s, await c;
|
|
6124
|
-
} finally {
|
|
6125
|
-
f = !1;
|
|
6126
|
-
}
|
|
6127
|
-
}
|
|
6128
|
-
} }), () => {
|
|
6129
|
-
r.removeEventListener("seeking", s), r.removeEventListener("emptied", c), r.cancelVideoFrameCallback(l), n({ stepFrame: void 0 });
|
|
6017
|
+
}, m = cd(async (e) => {
|
|
6018
|
+
t.paused || (t.pause(), await sd(t, 100));
|
|
6019
|
+
let r = p(), a = n.state.seekingTo, o = a === void 0 ? i ? i.mediaTime + (e > 0 ? 1.5 : -.5) * r : t.currentTime + e * r : a + e * r, s = Math.max(0, Math.min(o, t.duration || o)), c = new Promise((e) => {
|
|
6020
|
+
let n = setTimeout(e, 1e3);
|
|
6021
|
+
t.addEventListener("seeked", () => {
|
|
6022
|
+
clearTimeout(n), e();
|
|
6023
|
+
}, { once: !0 });
|
|
6024
|
+
}), { requestSeek: l } = n.state;
|
|
6025
|
+
l ? l(s) : t.currentTime = s, await c;
|
|
6026
|
+
});
|
|
6027
|
+
return r({ stepFrame: m }), () => {
|
|
6028
|
+
t.removeEventListener("seeking", l), t.removeEventListener("emptied", u), t.cancelVideoFrameCallback(d), r({ stepFrame: void 0 });
|
|
6130
6029
|
};
|
|
6131
6030
|
}, [
|
|
6132
6031
|
e,
|
|
6133
|
-
|
|
6134
|
-
n
|
|
6032
|
+
o,
|
|
6033
|
+
n,
|
|
6034
|
+
r
|
|
6135
6035
|
]);
|
|
6136
|
-
},
|
|
6036
|
+
}, ud = 5e3, dd = 6e4, fd = ({ publicPath: e, workerUrl: t, length: n, read: r, downloadedRanges: a }) => {
|
|
6137
6037
|
let [o, s] = D([]), c = i(null), l = i(r);
|
|
6138
6038
|
l.current = r;
|
|
6139
6039
|
let u = L(() => a?.map(({ startByteOffset: e, endByteOffset: t }) => [e, t]), [a?.map(({ startByteOffset: e, endByteOffset: t }) => `${e}-${t}`).join(",")]), d = i(u);
|
|
6140
6040
|
return d.current = u, A(() => {
|
|
6141
6041
|
if (!n || !r || !e || !t) return;
|
|
6142
|
-
let i = !1, a = null, o, u =
|
|
6042
|
+
let i = !1, a = null, o, u = ud, f = () => {
|
|
6143
6043
|
Vs({
|
|
6144
6044
|
publicPath: e,
|
|
6145
6045
|
workerUrl: t,
|
|
@@ -6149,13 +6049,9 @@ var Ku = {
|
|
|
6149
6049
|
i || s(e);
|
|
6150
6050
|
}
|
|
6151
6051
|
}).then((e) => {
|
|
6152
|
-
|
|
6153
|
-
e.destroy();
|
|
6154
|
-
return;
|
|
6155
|
-
}
|
|
6156
|
-
a = e, c.current = e, e.update(d.current);
|
|
6052
|
+
i ? e.destroy() : (a = e, c.current = e, e.update(d.current));
|
|
6157
6053
|
}, () => {
|
|
6158
|
-
i || (o = setTimeout(f, u), u = Math.min(u * 2,
|
|
6054
|
+
i || (o = setTimeout(f, u), u = Math.min(u * 2, dd));
|
|
6159
6055
|
});
|
|
6160
6056
|
};
|
|
6161
6057
|
return f(), () => {
|
|
@@ -6173,7 +6069,7 @@ var Ku = {
|
|
|
6173
6069
|
c.current?.prioritize(e);
|
|
6174
6070
|
}, [])
|
|
6175
6071
|
};
|
|
6176
|
-
},
|
|
6072
|
+
}, pd = (e, t) => {
|
|
6177
6073
|
let n = i(null), [r, a] = D(!1), [o] = D(() => Ys());
|
|
6178
6074
|
A(() => {
|
|
6179
6075
|
if (!e || !t || !o) return;
|
|
@@ -6201,10 +6097,10 @@ var Ku = {
|
|
|
6201
6097
|
mode: o,
|
|
6202
6098
|
burnedIn: r
|
|
6203
6099
|
};
|
|
6204
|
-
},
|
|
6205
|
-
let t =
|
|
6100
|
+
}, md = "(hover: hover) and (pointer: fine)", hd = () => typeof matchMedia == "function" ? matchMedia(md) : void 0, gd = (e) => {
|
|
6101
|
+
let t = hd();
|
|
6206
6102
|
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
6207
|
-
},
|
|
6103
|
+
}, _d = () => !!hd()?.matches, vd = () => !1, yd = (e, t) => {
|
|
6208
6104
|
let [n, r] = D(!1), [a, o] = D(), s = i(t);
|
|
6209
6105
|
t && (s.current = t);
|
|
6210
6106
|
let c = i(!1), l = F((e) => {
|
|
@@ -6227,7 +6123,7 @@ var Ku = {
|
|
|
6227
6123
|
f,
|
|
6228
6124
|
d
|
|
6229
6125
|
]);
|
|
6230
|
-
let m = p(
|
|
6126
|
+
let m = p(gd, _d, vd), [h, g] = D(!1);
|
|
6231
6127
|
A(() => {
|
|
6232
6128
|
if (!f) return;
|
|
6233
6129
|
let e = (e) => {
|
|
@@ -6268,16 +6164,16 @@ var Ku = {
|
|
|
6268
6164
|
d,
|
|
6269
6165
|
v
|
|
6270
6166
|
]);
|
|
6271
|
-
},
|
|
6167
|
+
}, bd = async (e, t, n = {}) => (await e.audioWorklet.addModule(t), new AudioWorkletNode(e, "banou-volume-normalizer", {
|
|
6272
6168
|
channelCountMode: "max",
|
|
6273
6169
|
processorOptions: n
|
|
6274
|
-
})),
|
|
6170
|
+
})), xd = /* @__PURE__ */ new WeakMap(), Sd = (e) => new Promise((t, n) => {
|
|
6275
6171
|
let r = () => {
|
|
6276
6172
|
(e.state === "running" || e.state === "closed") && (e.removeEventListener("statechange", r), e.state === "running" ? t() : n(new DOMException("The AudioContext closed before it ran", "InvalidStateError")));
|
|
6277
6173
|
};
|
|
6278
6174
|
e.addEventListener("statechange", r), r();
|
|
6279
|
-
}),
|
|
6280
|
-
let r =
|
|
6175
|
+
}), Cd = (e, t, n = {}) => {
|
|
6176
|
+
let r = xd.get(e);
|
|
6281
6177
|
if (r) return r.wake(), r;
|
|
6282
6178
|
let i = new AudioContext(), a = n.enabled !== !1, o, s = !1, c = () => 20 * Math.log10(Math.max(e.volume, 1e-6)), l = e.ownerDocument, u = () => {
|
|
6283
6179
|
i.state === "suspended" && i.resume().catch(() => {});
|
|
@@ -6293,12 +6189,12 @@ var Ku = {
|
|
|
6293
6189
|
};
|
|
6294
6190
|
i.addEventListener("statechange", f), f();
|
|
6295
6191
|
let p = (async () => {
|
|
6296
|
-
let r = await
|
|
6192
|
+
let r = await bd(i, t, {
|
|
6297
6193
|
...n,
|
|
6298
6194
|
enabled: a,
|
|
6299
6195
|
inputGainDb: c()
|
|
6300
6196
|
});
|
|
6301
|
-
await
|
|
6197
|
+
await Sd(i);
|
|
6302
6198
|
let s = xu(i, e);
|
|
6303
6199
|
return r.port.postMessage({
|
|
6304
6200
|
enabled: a,
|
|
@@ -6315,14 +6211,14 @@ var Ku = {
|
|
|
6315
6211
|
a = e, o?.port.postMessage({ enabled: a });
|
|
6316
6212
|
},
|
|
6317
6213
|
release: () => {
|
|
6318
|
-
s = !0, d(!1), e.isConnected ? i.state === "running" && i.suspend().catch(() => {}) : (
|
|
6214
|
+
s = !0, d(!1), e.isConnected ? i.state === "running" && i.suspend().catch(() => {}) : (xd.delete(e), i.close().catch(() => {}));
|
|
6319
6215
|
},
|
|
6320
6216
|
wake: () => {
|
|
6321
6217
|
i.state !== "closed" && (s = !1, u(), f());
|
|
6322
6218
|
}
|
|
6323
6219
|
};
|
|
6324
|
-
return
|
|
6325
|
-
},
|
|
6220
|
+
return xd.set(e, m), m;
|
|
6221
|
+
}, wd = 20, Td = 5, Ed = 1, Dd = 50, Od = ({ node: e, element: t, scriptUrl: n, source: r }) => {
|
|
6326
6222
|
let i = !1, a, o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c = () => {
|
|
6327
6223
|
for (let e of [...s]) e();
|
|
6328
6224
|
s.clear();
|
|
@@ -6352,14 +6248,10 @@ var Ku = {
|
|
|
6352
6248
|
end: null
|
|
6353
6249
|
}, h = 0, g = /* @__PURE__ */ new Map(), _ = (e, t) => new Promise((n) => g.set(`${e}:${t}`, n)), v = -1;
|
|
6354
6250
|
f.onmessage = ({ data: e }) => {
|
|
6355
|
-
|
|
6356
|
-
z();
|
|
6357
|
-
return;
|
|
6358
|
-
}
|
|
6359
|
-
e.spans && ((JSON.stringify(e.spans) !== JSON.stringify(m.spans) || e.end !== m.end) && h++, m = {
|
|
6251
|
+
e.type === "unsupported" ? z() : (e.spans && ((JSON.stringify(e.spans) !== JSON.stringify(m.spans) || e.end !== m.end) && h++, m = {
|
|
6360
6252
|
spans: e.spans,
|
|
6361
6253
|
end: e.end
|
|
6362
|
-
}), e.type === "merged" && (v = e.run), g.get(`${e.type}:${e.run}`)?.(m), g.delete(`${e.type}:${e.run}`), c();
|
|
6254
|
+
}), e.type === "merged" && (v = e.run), g.get(`${e.type}:${e.run}`)?.(m), g.delete(`${e.type}:${e.run}`), c());
|
|
6363
6255
|
};
|
|
6364
6256
|
let y = e.context, b = () => e.port.postMessage({
|
|
6365
6257
|
media: t.currentTime,
|
|
@@ -6369,7 +6261,7 @@ var Ku = {
|
|
|
6369
6261
|
}), x = () => f.postMessage({
|
|
6370
6262
|
type: "playhead",
|
|
6371
6263
|
time: t.currentTime
|
|
6372
|
-
}), S = setInterval(b,
|
|
6264
|
+
}), S = setInterval(b, Dd), C = [
|
|
6373
6265
|
"play",
|
|
6374
6266
|
"playing",
|
|
6375
6267
|
"pause",
|
|
@@ -6386,7 +6278,7 @@ var Ku = {
|
|
|
6386
6278
|
return t >= (m.end ?? w) - .05 ? null : t;
|
|
6387
6279
|
}, j = (e) => k.get(Math.round(e * 10)) === h ? "idle" : e, M = () => {
|
|
6388
6280
|
let e = t.currentTime, n = A(e), r = D && v !== E;
|
|
6389
|
-
if (n !== null && n < e +
|
|
6281
|
+
if (n !== null && n < e + wd) return r && O <= n + 1 && n <= ee + Td ? "read" : j(n);
|
|
6390
6282
|
if (r) return "read";
|
|
6391
6283
|
let i = n ?? A(0);
|
|
6392
6284
|
return i === null ? "done" : j(i);
|
|
@@ -6438,11 +6330,8 @@ var Ku = {
|
|
|
6438
6330
|
}); !i;) {
|
|
6439
6331
|
let e = M();
|
|
6440
6332
|
if (e === "done") break;
|
|
6441
|
-
if (e === "idle")
|
|
6442
|
-
|
|
6443
|
-
continue;
|
|
6444
|
-
}
|
|
6445
|
-
try {
|
|
6333
|
+
if (e === "idle") await l();
|
|
6334
|
+
else try {
|
|
6446
6335
|
if (e === "read") {
|
|
6447
6336
|
let e = await te(I.read());
|
|
6448
6337
|
if (i) return;
|
|
@@ -6450,7 +6339,7 @@ var Ku = {
|
|
|
6450
6339
|
await R(e), e.finished && await L(!0);
|
|
6451
6340
|
} else {
|
|
6452
6341
|
await L(!1), k.set(Math.round(e * 10), h);
|
|
6453
|
-
let t = I.seek(Math.max(0, e -
|
|
6342
|
+
let t = I.seek(Math.max(0, e - Ed));
|
|
6454
6343
|
d(!0);
|
|
6455
6344
|
let n = await te(t);
|
|
6456
6345
|
if (i) return;
|
|
@@ -6520,12 +6409,12 @@ var Ku = {
|
|
|
6520
6409
|
},
|
|
6521
6410
|
stop: z
|
|
6522
6411
|
};
|
|
6523
|
-
},
|
|
6412
|
+
}, kd = (e, t, n, r, a) => {
|
|
6524
6413
|
let o = i(null), [s, c] = D(!1), [l, u] = D(null);
|
|
6525
6414
|
A(() => {
|
|
6526
6415
|
if (e && t) {
|
|
6527
6416
|
if (n && !o.current) {
|
|
6528
|
-
let r =
|
|
6417
|
+
let r = Cd(e, t, { enabled: n });
|
|
6529
6418
|
o.current = r, r.routed.then((e) => {
|
|
6530
6419
|
o.current === r && u(e);
|
|
6531
6420
|
}, (e) => {
|
|
@@ -6549,7 +6438,7 @@ var Ku = {
|
|
|
6549
6438
|
return A(() => {
|
|
6550
6439
|
let r = p.current;
|
|
6551
6440
|
if (!l || !e || !t || !n || !r) return;
|
|
6552
|
-
let i =
|
|
6441
|
+
let i = Od({
|
|
6553
6442
|
node: l,
|
|
6554
6443
|
element: e,
|
|
6555
6444
|
scriptUrl: t,
|
|
@@ -6571,7 +6460,7 @@ var Ku = {
|
|
|
6571
6460
|
]), A(() => {
|
|
6572
6461
|
f.current?.update(a);
|
|
6573
6462
|
}, [a]), { refused: s };
|
|
6574
|
-
},
|
|
6463
|
+
}, Ad = () => {
|
|
6575
6464
|
let e, t, n, r = () => n && e?.audioStreamIndex === n.audioStreamIndex ? n : void 0;
|
|
6576
6465
|
return {
|
|
6577
6466
|
push: (n) => {
|
|
@@ -6593,7 +6482,7 @@ var Ku = {
|
|
|
6593
6482
|
};
|
|
6594
6483
|
}
|
|
6595
6484
|
};
|
|
6596
|
-
},
|
|
6485
|
+
}, jd = {
|
|
6597
6486
|
headings: {
|
|
6598
6487
|
large: "\n font-weight: 600;\n font-size: calc(2.8 * var(--mp-unit));\n line-height: calc(3.4 * var(--mp-unit));\n @media (min-width: 960px) {\n font-size: calc(3.4 * var(--mp-unit));\n line-height: calc(4.1 * var(--mp-unit));\n }\n ",
|
|
6599
6488
|
medium: "\n font-weight: 600;\n font-size: calc(2.4 * var(--mp-unit));\n line-height: calc(2.9 * var(--mp-unit));\n @media (min-width: 960px) {\n font-size: calc(2.8 * var(--mp-unit));\n line-height: calc(3.4 * var(--mp-unit));\n }\n ",
|
|
@@ -6620,7 +6509,7 @@ var Ku = {
|
|
|
6620
6509
|
medium: "\n font-weight: 500;\n font-size: calc(0.8 * var(--mp-unit));\n line-height: calc(1.1 * var(--mp-unit));\n @media (min-width: 960px) {\n font-size: calc(1 * var(--mp-unit));\n line-height: calc(1.4 * var(--mp-unit));\n }\n ",
|
|
6621
6510
|
regular: "\n font-weight: 400;\n font-size: calc(0.8 * var(--mp-unit));\n line-height: calc(1.1 * var(--mp-unit));\n @media (min-width: 960px) {\n font-size: calc(1 * var(--mp-unit));\n line-height: calc(1.4 * var(--mp-unit));\n }\n "
|
|
6622
6511
|
}
|
|
6623
|
-
},
|
|
6512
|
+
}, Md = l`
|
|
6624
6513
|
display: flex;
|
|
6625
6514
|
justify-content: center;
|
|
6626
6515
|
align-items: center;
|
|
@@ -6633,7 +6522,7 @@ var Ku = {
|
|
|
6633
6522
|
margin: auto;
|
|
6634
6523
|
pointer-events: none;
|
|
6635
6524
|
}
|
|
6636
|
-
`,
|
|
6525
|
+
`, Nd = l`
|
|
6637
6526
|
position: absolute;
|
|
6638
6527
|
top: 0;
|
|
6639
6528
|
left: 0;
|
|
@@ -6641,7 +6530,7 @@ var Ku = {
|
|
|
6641
6530
|
padding: calc(1.2 * var(--mp-unit)) calc(1.6 * var(--mp-unit));
|
|
6642
6531
|
/* clears a notch once the player is fullscreen; resolves to zero everywhere else */
|
|
6643
6532
|
padding-top: calc(calc(1.2 * var(--mp-unit)) + env(safe-area-inset-top, 0px));
|
|
6644
|
-
${
|
|
6533
|
+
${jd.headings.small}
|
|
6645
6534
|
color: white;
|
|
6646
6535
|
text-shadow: 0 0 4px rgba(0, 0, 0, 1);
|
|
6647
6536
|
z-index: 2;
|
|
@@ -6662,9 +6551,9 @@ var Ku = {
|
|
|
6662
6551
|
|
|
6663
6552
|
background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 80%, transparent 100%);
|
|
6664
6553
|
transition: opacity 0.1s cubic-bezier(.4,0,1,1);
|
|
6665
|
-
`,
|
|
6554
|
+
`, Pd = B`
|
|
6666
6555
|
to { transform: rotate(360deg); }
|
|
6667
|
-
`,
|
|
6556
|
+
`, Fd = l`
|
|
6668
6557
|
position: absolute;
|
|
6669
6558
|
inset: 0;
|
|
6670
6559
|
z-index: 2;
|
|
@@ -6680,46 +6569,46 @@ var Ku = {
|
|
|
6680
6569
|
border-radius: 50%;
|
|
6681
6570
|
border: 3px solid rgba(255, 255, 255, 0.25);
|
|
6682
6571
|
border-top-color: #fff;
|
|
6683
|
-
animation: ${
|
|
6572
|
+
animation: ${Pd} 0.8s linear infinite;
|
|
6684
6573
|
}
|
|
6685
|
-
`,
|
|
6574
|
+
`, Id = l`
|
|
6686
6575
|
position: absolute;
|
|
6687
6576
|
inset: auto 0 20%;
|
|
6688
6577
|
z-index: 3;
|
|
6689
6578
|
padding: 0 calc(2 * var(--mp-unit));
|
|
6690
6579
|
text-align: center;
|
|
6691
6580
|
color: #fff;
|
|
6692
|
-
${
|
|
6581
|
+
${jd.bLarge.regular}
|
|
6693
6582
|
text-shadow: 0 0 4px rgba(0, 0, 0, 1);
|
|
6694
6583
|
pointer-events: none;
|
|
6695
|
-
`,
|
|
6584
|
+
`, Ld = (e) => e instanceof Error ? e.message : typeof e == "string" ? e : "Playback failed", Rd = ({ onSubtitleRef: e }) => {
|
|
6696
6585
|
let t = $((e) => e.title), n = $((e) => e.hideUI), r = $((e) => e.playbackError), i = $((e) => e.ready), a = $((e) => e.size), o = $((e) => e.waiting), s = $((e) => e.seekingTo);
|
|
6697
6586
|
return /* @__PURE__ */ _(P, { children: [
|
|
6698
6587
|
t ? /* @__PURE__ */ E("div", {
|
|
6699
6588
|
className: "title",
|
|
6700
|
-
css:
|
|
6589
|
+
css: Nd,
|
|
6701
6590
|
style: { ...n ? {
|
|
6702
6591
|
opacity: "0",
|
|
6703
6592
|
pointerEvents: "none"
|
|
6704
6593
|
} : {} },
|
|
6705
6594
|
children: t
|
|
6706
6595
|
}) : void 0,
|
|
6707
|
-
((a ? !i : o) || s !== void 0) && !r ? /* @__PURE__ */ E("div", { css:
|
|
6596
|
+
((a ? !i : o) || s !== void 0) && !r ? /* @__PURE__ */ E("div", { css: Fd }) : void 0,
|
|
6708
6597
|
r ? /* @__PURE__ */ E("div", {
|
|
6709
|
-
css:
|
|
6710
|
-
children:
|
|
6598
|
+
css: Id,
|
|
6599
|
+
children: Ld(r)
|
|
6711
6600
|
}) : void 0,
|
|
6712
6601
|
/* @__PURE__ */ E("div", {
|
|
6713
6602
|
className: "subtitles",
|
|
6714
6603
|
ref: e,
|
|
6715
|
-
css:
|
|
6604
|
+
css: Md
|
|
6716
6605
|
})
|
|
6717
6606
|
] });
|
|
6718
|
-
},
|
|
6607
|
+
}, zd = 1e-4, Bd = 1, Vd = (e) => Math.max(zd, Math.min(Bd, e)) ** 2, Hd = (e) => Math.max(zd, Math.min(Bd, e)) ** (Bd / 2), Ud = (e) => {
|
|
6719
6608
|
if (e === void 0) return "0:00";
|
|
6720
6609
|
let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
|
|
6721
6610
|
return t > 0 ? `${t}:${n < 10 ? "0" : ""}${n}:${r < 10 ? "0" : ""}${r}` : `${n}:${r < 10 ? "0" : ""}${r}`;
|
|
6722
|
-
},
|
|
6611
|
+
}, Wd = (e, t) => `${Ud(e)} / ${Ud(t)}`, Gd = (e) => l`
|
|
6723
6612
|
display: flex;
|
|
6724
6613
|
justify-content: flex-start;
|
|
6725
6614
|
|
|
@@ -6751,7 +6640,7 @@ var Ku = {
|
|
|
6751
6640
|
z-index: 3;
|
|
6752
6641
|
|
|
6753
6642
|
* {
|
|
6754
|
-
${
|
|
6643
|
+
${jd.bMedium.regular}
|
|
6755
6644
|
}
|
|
6756
6645
|
|
|
6757
6646
|
${e === "sm" && l`
|
|
@@ -6763,25 +6652,25 @@ var Ku = {
|
|
|
6763
6652
|
${e === "lg" && l`
|
|
6764
6653
|
padding: calc(1.2 * var(--mp-unit))!important;
|
|
6765
6654
|
`}
|
|
6766
|
-
`,
|
|
6655
|
+
`, Kd = {
|
|
6767
6656
|
x: -1,
|
|
6768
6657
|
y: -1,
|
|
6769
6658
|
anchors: 0
|
|
6770
|
-
},
|
|
6771
|
-
|
|
6772
|
-
},
|
|
6659
|
+
}, qd = (e) => {
|
|
6660
|
+
Kd.x = e.clientX, Kd.y = e.clientY;
|
|
6661
|
+
}, Jd = () => (Kd.anchors++ === 0 && window.addEventListener("pointermove", qd, {
|
|
6773
6662
|
capture: !0,
|
|
6774
6663
|
passive: !0
|
|
6775
6664
|
}), () => {
|
|
6776
|
-
--
|
|
6777
|
-
}),
|
|
6665
|
+
--Kd.anchors === 0 && window.removeEventListener("pointermove", qd, { capture: !0 });
|
|
6666
|
+
}), Yd = ({ id: e, toolTipText: t, text: n, delayShow: r = 0, closeDelay: a = 0, offset: o = 20, tooltipPlace: s = "top", disabled: c = !1, size: l = "md" }) => {
|
|
6778
6667
|
let u = i(null), d = i(null);
|
|
6779
6668
|
return A(() => {
|
|
6780
|
-
let e =
|
|
6669
|
+
let e = Jd(), t = () => {
|
|
6781
6670
|
let e = u.current;
|
|
6782
6671
|
if (!e) return;
|
|
6783
6672
|
let { left: t, right: n, top: r, bottom: i } = e.getBoundingClientRect();
|
|
6784
|
-
|
|
6673
|
+
Kd.x >= t && Kd.x < n && Kd.y >= r && Kd.y < i || d.current?.close();
|
|
6785
6674
|
}, n = ["fullscreenchange", "webkitfullscreenchange"];
|
|
6786
6675
|
for (let e of n) document.addEventListener(e, t);
|
|
6787
6676
|
return () => {
|
|
@@ -6799,12 +6688,12 @@ var Ku = {
|
|
|
6799
6688
|
children: n
|
|
6800
6689
|
}), !c && /* @__PURE__ */ E(Gu, {
|
|
6801
6690
|
ref: d,
|
|
6802
|
-
css:
|
|
6691
|
+
css: Gd(l),
|
|
6803
6692
|
id: e,
|
|
6804
6693
|
noArrow: !0,
|
|
6805
6694
|
children: t
|
|
6806
6695
|
})] });
|
|
6807
|
-
},
|
|
6696
|
+
}, Xd = ({ ref: e, onChange: t, orientation: n = "horizontal", disabled: r = !1 }) => {
|
|
6808
6697
|
let [a, o] = D(!1), s = i(t);
|
|
6809
6698
|
s.current = t;
|
|
6810
6699
|
let c = i(null), l = F((t, r) => {
|
|
@@ -6843,26 +6732,26 @@ var Ku = {
|
|
|
6843
6732
|
style: { touchAction: "none" }
|
|
6844
6733
|
}
|
|
6845
6734
|
};
|
|
6846
|
-
},
|
|
6735
|
+
}, Zd = 2, Qd = .005, $d = "#000", ef = "#0000", tf = (e, t) => {
|
|
6847
6736
|
if (!t) return [];
|
|
6848
6737
|
let n = /* @__PURE__ */ new Set();
|
|
6849
6738
|
for (let { start: r, end: i } of e) for (let e of [r, i]) {
|
|
6850
6739
|
let r = e / t;
|
|
6851
|
-
r <=
|
|
6740
|
+
r <= Qd || r >= .995 || n.add(Number((r * 100).toFixed(4)));
|
|
6852
6741
|
}
|
|
6853
6742
|
return n.size ? [
|
|
6854
6743
|
0,
|
|
6855
6744
|
...[...n].sort((e, t) => e - t),
|
|
6856
6745
|
100
|
|
6857
6746
|
] : [];
|
|
6858
|
-
},
|
|
6859
|
-
let n =
|
|
6747
|
+
}, nf = (e, t) => {
|
|
6748
|
+
let n = Zd / 2, r = e.length - 2, i = [];
|
|
6860
6749
|
for (let a = 0; a <= r; a += 1) {
|
|
6861
6750
|
let o = e[a], s = e[a + 1], c = a === 0 ? "0%" : `calc(${o}% + ${n}px)`, l = a === r ? "100%" : `calc(${s}% - ${n}px)`;
|
|
6862
|
-
i.push(`${t(a) ?
|
|
6751
|
+
i.push(`${t(a) ? $d : ef} ${c} ${l}`), a !== r && i.push(`${ef} calc(${s}% - ${n}px) calc(${s}% + ${n}px)`);
|
|
6863
6752
|
}
|
|
6864
6753
|
return `linear-gradient(90deg, ${i.join(", ")})`;
|
|
6865
|
-
},
|
|
6754
|
+
}, rf = /* @__PURE__ */ new Set([
|
|
6866
6755
|
"op",
|
|
6867
6756
|
"ops",
|
|
6868
6757
|
"opening",
|
|
@@ -6870,7 +6759,7 @@ var Ku = {
|
|
|
6870
6759
|
"ncop",
|
|
6871
6760
|
"オープニング",
|
|
6872
6761
|
"op主題歌"
|
|
6873
|
-
]),
|
|
6762
|
+
]), af = /* @__PURE__ */ new Set([
|
|
6874
6763
|
"ed",
|
|
6875
6764
|
"eds",
|
|
6876
6765
|
"ending",
|
|
@@ -6883,13 +6772,13 @@ var Ku = {
|
|
|
6883
6772
|
"エンドカード",
|
|
6884
6773
|
"エンドロール",
|
|
6885
6774
|
"ed主題歌"
|
|
6886
|
-
]),
|
|
6775
|
+
]), of = /* @__PURE__ */ new Set(["intro", "イントロ"]), sf = /* @__PURE__ */ new Set(["outro", "アウトロ"]), cf = {
|
|
6887
6776
|
"credits start": "ending",
|
|
6888
6777
|
"credits end": null,
|
|
6889
6778
|
"preview end": null,
|
|
6890
6779
|
"end credits": "ending",
|
|
6891
6780
|
"closing credits": "ending"
|
|
6892
|
-
},
|
|
6781
|
+
}, lf = /* @__PURE__ */ new Set([
|
|
6893
6782
|
"theme",
|
|
6894
6783
|
"themes",
|
|
6895
6784
|
"song",
|
|
@@ -6908,53 +6797,53 @@ var Ku = {
|
|
|
6908
6797
|
"the",
|
|
6909
6798
|
"主題歌",
|
|
6910
6799
|
"ノンクレジット"
|
|
6911
|
-
]),
|
|
6800
|
+
]), uf = /* @__PURE__ */ new Set([
|
|
6912
6801
|
"post",
|
|
6913
6802
|
"pre",
|
|
6914
6803
|
"after",
|
|
6915
6804
|
"before",
|
|
6916
6805
|
"non"
|
|
6917
|
-
]),
|
|
6918
|
-
if (
|
|
6919
|
-
if (
|
|
6806
|
+
]), df = /[-:|~/\\[\]()「」『』【】,.!?"'’]|\s+by\s+/u, ff = (e) => !e.trim() || /^chapter\s*\d+$/i.test(e.trim()) || /^\d{1,2}:\d{2}:\d{2}([.,]\d+)?$/.test(e.trim()), pf = (e) => e.replace(/([a-z-ヿ一-鿿])\s*\d+\s*$/u, "$1").split(/[\s_]+/u).map((e) => e.replace(/^[^\w-ヿ一-鿿]+|[^\w-ヿ一-鿿]+$/gu, "")).filter((e) => e && !/^\d+$/.test(e) && !lf.has(e)), mf = (e, t) => {
|
|
6807
|
+
if (rf.has(e)) return "opening";
|
|
6808
|
+
if (af.has(e)) return "ending";
|
|
6920
6809
|
if (t) {
|
|
6921
|
-
if (
|
|
6922
|
-
if (
|
|
6810
|
+
if (of.has(e)) return "opening";
|
|
6811
|
+
if (sf.has(e)) return "ending";
|
|
6923
6812
|
}
|
|
6924
|
-
},
|
|
6925
|
-
if (
|
|
6813
|
+
}, hf = (e, t) => {
|
|
6814
|
+
if (ff(e)) return;
|
|
6926
6815
|
let n = e.trim().toLowerCase().replace(/\s+/gu, " ");
|
|
6927
|
-
if (n in
|
|
6928
|
-
let r = n.split(
|
|
6929
|
-
if (r.some((e) => e.split(/[\s_]+/u).some((e) =>
|
|
6816
|
+
if (n in cf) return cf[n] ?? void 0;
|
|
6817
|
+
let r = n.split(df).map((e) => e.trim()).filter(Boolean);
|
|
6818
|
+
if (r.some((e) => e.split(/[\s_]+/u).some((e) => uf.has(e)))) return;
|
|
6930
6819
|
let i = r.length > 1 ? [r[0], r.at(-1)] : r;
|
|
6931
6820
|
for (let e of i) {
|
|
6932
|
-
let n =
|
|
6821
|
+
let n = pf(e);
|
|
6933
6822
|
if (n.length !== 1) continue;
|
|
6934
|
-
let r =
|
|
6823
|
+
let r = mf(n[0], t);
|
|
6935
6824
|
if (r) return r;
|
|
6936
6825
|
}
|
|
6937
|
-
},
|
|
6826
|
+
}, gf = 15, _f = 87, vf = 93, yf = (e) => {
|
|
6938
6827
|
let t = e.map(() => void 0), n = e.at(-1)?.end ?? 0;
|
|
6939
6828
|
if (!n) return t;
|
|
6940
6829
|
let r = e.map((e, t) => ({
|
|
6941
6830
|
index: t,
|
|
6942
6831
|
start: e.start,
|
|
6943
6832
|
length: e.end - e.start
|
|
6944
|
-
})).filter(({ length: e }) => e >=
|
|
6833
|
+
})).filter(({ length: e }) => e >= _f && e <= vf), i = n / 2, a = r.filter(({ start: e }) => e < i), o = r.filter(({ start: e }) => e >= i);
|
|
6945
6834
|
return a.length === 1 && (t[a[0].index] = "opening"), o.length === 1 && (t[o[0].index] = "ending"), t;
|
|
6946
|
-
},
|
|
6947
|
-
let t = e.map(({ title: e }) =>
|
|
6835
|
+
}, bf = (e) => {
|
|
6836
|
+
let t = e.map(({ title: e }) => hf(e, !1)), n = e.reduce((e, n, r) => e + (t[r] ? n.end - n.start : 0), 0), r = e.reduce((e, t) => e + (t.end - t.start), 0);
|
|
6948
6837
|
if (r > 0 && n * 2 > r) return e.map(() => void 0);
|
|
6949
6838
|
let i = e.map((e, n) => {
|
|
6950
|
-
if (e.end - e.start <
|
|
6839
|
+
if (e.end - e.start < gf) return;
|
|
6951
6840
|
let r = t[n];
|
|
6952
6841
|
if (r) return r;
|
|
6953
|
-
let i =
|
|
6842
|
+
let i = hf(e.title, !0);
|
|
6954
6843
|
return i && !t.includes(i) ? i : void 0;
|
|
6955
6844
|
});
|
|
6956
|
-
return e.every(({ title: e }) =>
|
|
6957
|
-
},
|
|
6845
|
+
return e.every(({ title: e }) => ff(e)) ? yf(e) : i;
|
|
6846
|
+
}, xf = l`
|
|
6958
6847
|
position: relative;
|
|
6959
6848
|
height: calc(.4 * var(--mp-unit));
|
|
6960
6849
|
|
|
@@ -7039,7 +6928,7 @@ var Ku = {
|
|
|
7039
6928
|
box-shadow: 0 0 calc(1 * var(--mp-unit)) rgba(0, 0, 0, .5);
|
|
7040
6929
|
|
|
7041
6930
|
text-shadow: 0 0 4px rgba(0, 0, 0, 1);
|
|
7042
|
-
${
|
|
6931
|
+
${jd.bMedium.bold}
|
|
7043
6932
|
|
|
7044
6933
|
gap: calc(.6 * var(--mp-unit));
|
|
7045
6934
|
|
|
@@ -7173,7 +7062,7 @@ var Ku = {
|
|
|
7173
7062
|
--thumbnail-width: calc(18 * var(--mp-unit));
|
|
7174
7063
|
--thumbnail-half: calc(9 * var(--mp-unit));
|
|
7175
7064
|
}
|
|
7176
|
-
`,
|
|
7065
|
+
`, Sf = 4, Cf = () => {
|
|
7177
7066
|
let e = $(), t = $((e) => e.currentTime), n = $((e) => e.requestSeek), r = $((e) => e.duration), a = $((e) => e.size), o = $((e) => e.downloadedRanges), s = $((e) => e.buffered), c = $((e) => e.indexes), l = $((e) => e.thumbnails), u = $((e) => e.thumbnailAt), d = $((e) => e.requestThumbnail), f = $((e) => e.chapters), p = $((e) => e.seekingTo), m = $((e) => e.setSourceState), h = $((e) => e.hideUI), g = i(null), [v, y] = D(void 0), [b, x] = D(void 0), S = (e) => {
|
|
7178
7067
|
x(e), d(e);
|
|
7179
7068
|
}, C = !!b;
|
|
@@ -7182,13 +7071,13 @@ var Ku = {
|
|
|
7182
7071
|
}, [m, C]), A(() => {
|
|
7183
7072
|
h && S(void 0);
|
|
7184
7073
|
}, [h]);
|
|
7185
|
-
let w = i(void 0), T = i(0), O = i(void 0), ee = i(void 0), k = i(!1), { dragging: j, handlers: M } =
|
|
7074
|
+
let w = i(void 0), T = i(0), O = i(void 0), ee = i(void 0), k = i(!1), { dragging: j, handlers: M } = Xd({
|
|
7186
7075
|
ref: g,
|
|
7187
7076
|
onChange: (e) => {
|
|
7188
7077
|
if (T.current += 1, O.current = e, ee.current === void 0) ee.current = e;
|
|
7189
7078
|
else if (!k.current) {
|
|
7190
7079
|
let t = g.current?.getBoundingClientRect().width ?? 0;
|
|
7191
|
-
Math.abs(e - ee.current) * t >
|
|
7080
|
+
Math.abs(e - ee.current) * t > Sf && (k.current = !0);
|
|
7192
7081
|
}
|
|
7193
7082
|
y(e), w.current !== "mouse" && S(e * r);
|
|
7194
7083
|
}
|
|
@@ -7251,7 +7140,7 @@ var Ku = {
|
|
|
7251
7140
|
j,
|
|
7252
7141
|
v,
|
|
7253
7142
|
p
|
|
7254
|
-
]), B = L(() =>
|
|
7143
|
+
]), B = L(() => tf(f, r), [f, r]), oe = B.length > 0, se = L(() => {
|
|
7255
7144
|
if (!oe || b === void 0 || !r) return -1;
|
|
7256
7145
|
let e = b / r * 100, t = B.findIndex((t, n) => n < B.length - 1 && e >= t && e < B[n + 1]);
|
|
7257
7146
|
return t >= 0 ? t : B.length - 2;
|
|
@@ -7260,11 +7149,11 @@ var Ku = {
|
|
|
7260
7149
|
B,
|
|
7261
7150
|
b,
|
|
7262
7151
|
r
|
|
7263
|
-
]), ce = L(() => oe ?
|
|
7152
|
+
]), ce = L(() => oe ? nf(B, (e) => e !== se) : void 0, [
|
|
7264
7153
|
oe,
|
|
7265
7154
|
B,
|
|
7266
7155
|
se
|
|
7267
|
-
]), V = L(() => se >= 0 ?
|
|
7156
|
+
]), V = L(() => se >= 0 ? nf(B, (e) => e === se) : void 0, [B, se]), le = L(() => {
|
|
7268
7157
|
if (b !== void 0) return f.find(({ start: e, end: t }) => e <= b && b < t);
|
|
7269
7158
|
}, [f, b]), H = L(() => {
|
|
7270
7159
|
if (b) {
|
|
@@ -7294,7 +7183,7 @@ var Ku = {
|
|
|
7294
7183
|
]
|
|
7295
7184
|
});
|
|
7296
7185
|
return /* @__PURE__ */ _("div", {
|
|
7297
|
-
css:
|
|
7186
|
+
css: xf,
|
|
7298
7187
|
ref: g,
|
|
7299
7188
|
className: [
|
|
7300
7189
|
"progress-bar",
|
|
@@ -7315,7 +7204,7 @@ var Ku = {
|
|
|
7315
7204
|
},
|
|
7316
7205
|
children: [/* @__PURE__ */ E("span", {
|
|
7317
7206
|
className: "cursor-time-value",
|
|
7318
|
-
children:
|
|
7207
|
+
children: Ud(b)
|
|
7319
7208
|
}), le ? /* @__PURE__ */ E("span", {
|
|
7320
7209
|
className: "chapter-title",
|
|
7321
7210
|
children: le.title
|
|
@@ -7339,7 +7228,7 @@ var Ku = {
|
|
|
7339
7228
|
})
|
|
7340
7229
|
]
|
|
7341
7230
|
});
|
|
7342
|
-
},
|
|
7231
|
+
}, wf = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-picture-in-picture'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'%20/%3e%3cpath%20d='M11%2019h-6a2%202%200%200%201%20-2%20-2v-10a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v4'%20/%3e%3cpath%20d='M14%2014m0%201a1%201%200%200%201%201%20-1h5a1%201%200%200%201%201%201v3a1%201%200%200%201%20-1%201h-5a1%201%200%200%201%20-1%20-1z'%20/%3e%3c/svg%3e", Tf = {
|
|
7343
7232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7344
7233
|
width: 24,
|
|
7345
7234
|
height: 24,
|
|
@@ -7349,8 +7238,8 @@ var Ku = {
|
|
|
7349
7238
|
strokeWidth: 2,
|
|
7350
7239
|
strokeLinecap: "round",
|
|
7351
7240
|
strokeLinejoin: "round"
|
|
7352
|
-
},
|
|
7353
|
-
...
|
|
7241
|
+
}, Ef = (e) => /* @__PURE__ */ _("svg", {
|
|
7242
|
+
...Tf,
|
|
7354
7243
|
...e,
|
|
7355
7244
|
children: [
|
|
7356
7245
|
/* @__PURE__ */ E("path", { d: "M21 11V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h5" }),
|
|
@@ -7364,8 +7253,8 @@ var Ku = {
|
|
|
7364
7253
|
}),
|
|
7365
7254
|
/* @__PURE__ */ E("path", { d: "M14.5 18.5h2m2 0h1" })
|
|
7366
7255
|
]
|
|
7367
|
-
}),
|
|
7368
|
-
...
|
|
7256
|
+
}), Df = (e) => /* @__PURE__ */ _("svg", {
|
|
7257
|
+
...Tf,
|
|
7369
7258
|
...e,
|
|
7370
7259
|
children: [
|
|
7371
7260
|
/* @__PURE__ */ E("path", { d: "M21 11V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h5" }),
|
|
@@ -7379,7 +7268,7 @@ var Ku = {
|
|
|
7379
7268
|
}),
|
|
7380
7269
|
/* @__PURE__ */ E("path", { d: "M6 9h3m2 0h2" })
|
|
7381
7270
|
]
|
|
7382
|
-
}),
|
|
7271
|
+
}), Of = l`
|
|
7383
7272
|
.popover {
|
|
7384
7273
|
position: absolute;
|
|
7385
7274
|
/* Anchored to the PLAYER's right edge, never to the gear. The gear is not the last control in the
|
|
@@ -7418,7 +7307,7 @@ var Ku = {
|
|
|
7418
7307
|
|
|
7419
7308
|
border-radius: 8px;
|
|
7420
7309
|
background-color: rgba(28,28,28,0.95);
|
|
7421
|
-
${
|
|
7310
|
+
${jd.bMedium.regular}
|
|
7422
7311
|
|
|
7423
7312
|
z-index: 4;
|
|
7424
7313
|
|
|
@@ -7461,7 +7350,7 @@ var Ku = {
|
|
|
7461
7350
|
|
|
7462
7351
|
.secondary {
|
|
7463
7352
|
color: #eee;
|
|
7464
|
-
${
|
|
7353
|
+
${jd.bSmall.regular}
|
|
7465
7354
|
}
|
|
7466
7355
|
}
|
|
7467
7356
|
}
|
|
@@ -7503,10 +7392,10 @@ var Ku = {
|
|
|
7503
7392
|
.failed {
|
|
7504
7393
|
border-bottom: 1px solid #4D4D4E;
|
|
7505
7394
|
color: #f66;
|
|
7506
|
-
${
|
|
7395
|
+
${jd.bSmall.regular}
|
|
7507
7396
|
}
|
|
7508
7397
|
}
|
|
7509
|
-
`,
|
|
7398
|
+
`, kf = ({ title: e, tracks: t, selected: n, onSelect: r, onBack: i, offLabel: a, pending: o, failed: s }) => {
|
|
7510
7399
|
let c = o !== void 0, l = (e, i, a) => {
|
|
7511
7400
|
let s = c && o === e, l = c || t.find((t) => t.id === e)?.disabled;
|
|
7512
7401
|
return /* @__PURE__ */ _("div", {
|
|
@@ -7533,7 +7422,7 @@ var Ku = {
|
|
|
7533
7422
|
t.map(({ id: e, label: t }) => l(e, t, "description"))
|
|
7534
7423
|
]
|
|
7535
7424
|
});
|
|
7536
|
-
},
|
|
7425
|
+
}, Af = ({ onReset: e } = {}) => {
|
|
7537
7426
|
let t = i(null), [n, r] = D(!1), [a, o] = D(void 0), [s, c] = D(!1), l = i(e);
|
|
7538
7427
|
l.current = e;
|
|
7539
7428
|
let u = () => {
|
|
@@ -7563,18 +7452,14 @@ var Ku = {
|
|
|
7563
7452
|
console.warn("[media-player] track selection failed:", e), c(!0);
|
|
7564
7453
|
return;
|
|
7565
7454
|
}
|
|
7566
|
-
|
|
7567
|
-
u();
|
|
7568
|
-
return;
|
|
7569
|
-
}
|
|
7570
|
-
o(e), n.then(() => {
|
|
7455
|
+
n instanceof Promise ? (o(e), n.then(() => {
|
|
7571
7456
|
o(void 0), u();
|
|
7572
7457
|
}, (e) => {
|
|
7573
7458
|
console.warn("[media-player] track selection failed:", e), o(void 0), c(!0);
|
|
7574
|
-
});
|
|
7459
|
+
})) : u();
|
|
7575
7460
|
}
|
|
7576
7461
|
};
|
|
7577
|
-
},
|
|
7462
|
+
}, jf = l`
|
|
7578
7463
|
/* Not a containing block, for the reason given on popoverStyle: the menu anchors to the control bar,
|
|
7579
7464
|
which is the width of the player box, so it can be clamped to it. */
|
|
7580
7465
|
position: static;
|
|
@@ -7590,7 +7475,7 @@ position: static;
|
|
|
7590
7475
|
}
|
|
7591
7476
|
}
|
|
7592
7477
|
|
|
7593
|
-
${
|
|
7478
|
+
${Of}
|
|
7594
7479
|
|
|
7595
7480
|
.popover.error-list {
|
|
7596
7481
|
/* Wider than a track menu and taller, because these rows are sentences rather than labels, and a
|
|
@@ -7618,7 +7503,7 @@ ${Df}
|
|
|
7618
7503
|
|
|
7619
7504
|
color: #fff;
|
|
7620
7505
|
cursor: pointer;
|
|
7621
|
-
${
|
|
7506
|
+
${jd.bSmall.regular}
|
|
7622
7507
|
|
|
7623
7508
|
&:hover {
|
|
7624
7509
|
background-color: rgba(255,255,255,.1);
|
|
@@ -7639,7 +7524,7 @@ ${Df}
|
|
|
7639
7524
|
|
|
7640
7525
|
.when {
|
|
7641
7526
|
color: #bbb;
|
|
7642
|
-
${
|
|
7527
|
+
${jd.bSmall.regular}
|
|
7643
7528
|
|
|
7644
7529
|
/* the one part of the line worth scanning for, so it is the one part at full brightness */
|
|
7645
7530
|
.count {
|
|
@@ -7658,29 +7543,29 @@ ${Df}
|
|
|
7658
7543
|
color: #ddd;
|
|
7659
7544
|
overflow-wrap: anywhere;
|
|
7660
7545
|
white-space: pre-wrap;
|
|
7661
|
-
${
|
|
7546
|
+
${jd.bSmall.regular}
|
|
7662
7547
|
}
|
|
7663
7548
|
}
|
|
7664
7549
|
}
|
|
7665
|
-
`,
|
|
7666
|
-
let n =
|
|
7550
|
+
`, Mf = (e) => new Date(e).toLocaleTimeString(), Nf = (e) => e === void 0 || !Number.isFinite(e) ? void 0 : Ud(Math.max(0, e)), Pf = (e) => e.reduce((e, t) => e + t.count, 0), Ff = (e) => e.map((e, t) => {
|
|
7551
|
+
let n = Nf(e.atMediaTime), r = e.count > 1 ? `${new Date(e.at).toISOString()} to ${new Date(e.lastAt).toISOString()} ×${e.count}` : new Date(e.at).toISOString();
|
|
7667
7552
|
return [
|
|
7668
7553
|
`${t + 1}. ${r}${n ? ` (at ${n})` : ""}${e.recovered ? " [recovered]" : ""}`,
|
|
7669
7554
|
e.message,
|
|
7670
7555
|
e.detail
|
|
7671
7556
|
].filter(Boolean).join("\n");
|
|
7672
|
-
}).join("\n\n"),
|
|
7673
|
-
let e = $((e) => e.playbackErrors), { open: t, toggle: n, containerRef: r } =
|
|
7557
|
+
}).join("\n\n"), If = () => {
|
|
7558
|
+
let e = $((e) => e.playbackErrors), { open: t, toggle: n, containerRef: r } = Af(), [i, a] = D(!1);
|
|
7674
7559
|
if (e.length === 0) return null;
|
|
7675
7560
|
let o = () => {
|
|
7676
|
-
navigator.clipboard?.writeText(
|
|
7561
|
+
navigator.clipboard?.writeText(Ff(e)).then(() => {
|
|
7677
7562
|
a(!0), setTimeout(() => a(!1), 2e3);
|
|
7678
7563
|
}, (e) => console.warn("[media-player] could not copy the errors:", e));
|
|
7679
|
-
}, s = `Playback errors (${
|
|
7564
|
+
}, s = `Playback errors (${Pf(e)})`;
|
|
7680
7565
|
return /* @__PURE__ */ _("div", {
|
|
7681
|
-
css:
|
|
7566
|
+
css: jf,
|
|
7682
7567
|
ref: r,
|
|
7683
|
-
children: [/* @__PURE__ */ E(
|
|
7568
|
+
children: [/* @__PURE__ */ E(Yd, {
|
|
7684
7569
|
id: "errors",
|
|
7685
7570
|
disabled: t,
|
|
7686
7571
|
text: /* @__PURE__ */ E("button", {
|
|
@@ -7709,9 +7594,9 @@ ${Df}
|
|
|
7709
7594
|
/* @__PURE__ */ _("span", {
|
|
7710
7595
|
className: "when",
|
|
7711
7596
|
children: [
|
|
7712
|
-
|
|
7713
|
-
e.count > 1 ? ` to ${
|
|
7714
|
-
|
|
7597
|
+
Mf(e.at),
|
|
7598
|
+
e.count > 1 ? ` to ${Mf(e.lastAt)}` : "",
|
|
7599
|
+
Nf(e.atMediaTime) ? ` at ${Nf(e.atMediaTime)}` : "",
|
|
7715
7600
|
e.recovered ? " recovered" : "",
|
|
7716
7601
|
e.count > 1 ? /* @__PURE__ */ E("span", {
|
|
7717
7602
|
className: "count",
|
|
@@ -7731,7 +7616,7 @@ ${Df}
|
|
|
7731
7616
|
}, `${e.at}-${t}`))]
|
|
7732
7617
|
})]
|
|
7733
7618
|
});
|
|
7734
|
-
},
|
|
7619
|
+
}, Lf = l`
|
|
7735
7620
|
display: flex;
|
|
7736
7621
|
align-items: center;
|
|
7737
7622
|
justify-content: center;
|
|
@@ -7784,8 +7669,8 @@ width: 100%;
|
|
|
7784
7669
|
}
|
|
7785
7670
|
}
|
|
7786
7671
|
}
|
|
7787
|
-
`,
|
|
7788
|
-
let e = $(), t = $((e) => e.playbackRate), n = i(null), r = i(null), a = .25, o = 2.75, s = (e, t = .05) => Math.round(e / t) * t, c = s(t || 1), l = (e) => (e - a) / o * 100, u = (e) => s(a + e * o), { handlers: d } =
|
|
7672
|
+
`, Rf = () => {
|
|
7673
|
+
let e = $(), t = $((e) => e.playbackRate), n = i(null), r = i(null), a = .25, o = 2.75, s = (e, t = .05) => Math.round(e / t) * t, c = s(t || 1), l = (e) => (e - a) / o * 100, u = (e) => s(a + e * o), { handlers: d } = Xd({
|
|
7789
7674
|
ref: r,
|
|
7790
7675
|
onChange: (t) => e.setPlaybackRate(u(t))
|
|
7791
7676
|
}), f = (t) => {
|
|
@@ -7801,7 +7686,7 @@ width: 100%;
|
|
|
7801
7686
|
}, [t]);
|
|
7802
7687
|
let p = l(c);
|
|
7803
7688
|
return /* @__PURE__ */ _("div", {
|
|
7804
|
-
css:
|
|
7689
|
+
css: Lf,
|
|
7805
7690
|
children: [/* @__PURE__ */ _("div", { children: [c.toFixed(2), "x"] }), /* @__PURE__ */ E("div", {
|
|
7806
7691
|
className: "playback-slider",
|
|
7807
7692
|
ref: n,
|
|
@@ -7819,7 +7704,7 @@ width: 100%;
|
|
|
7819
7704
|
})
|
|
7820
7705
|
})]
|
|
7821
7706
|
});
|
|
7822
|
-
},
|
|
7707
|
+
}, zf = l`
|
|
7823
7708
|
/* Deliberately NOT a containing block. The menu anchors to the control bar instead, which is exactly
|
|
7824
7709
|
as wide as the player box and can therefore be clamped to it. The outside-click check uses
|
|
7825
7710
|
\`contains\` on the ref, which is DOM containment and needs no position, and the bar's other
|
|
@@ -7837,7 +7722,7 @@ position: static;
|
|
|
7837
7722
|
}
|
|
7838
7723
|
}
|
|
7839
7724
|
|
|
7840
|
-
${
|
|
7725
|
+
${Of}
|
|
7841
7726
|
|
|
7842
7727
|
.switch {
|
|
7843
7728
|
position: relative;
|
|
@@ -7913,8 +7798,8 @@ ${Df}
|
|
|
7913
7798
|
}
|
|
7914
7799
|
}
|
|
7915
7800
|
|
|
7916
|
-
`,
|
|
7917
|
-
let e = $(), t = $((e) => e.playbackRate), n = $((e) => e.audioTracks), r = $((e) => e.selectedAudioTrack), i = $((e) => e.selectAudioTrack), a = $((e) => e.quality), o = $((e) => e.volumeNormalizer), [s, c] = D(0), { open: l, toggle: u, containerRef: d, pending: f, failed: p, runSelect: m } =
|
|
7801
|
+
`, Bf = () => {
|
|
7802
|
+
let e = $(), t = $((e) => e.playbackRate), n = $((e) => e.audioTracks), r = $((e) => e.selectedAudioTrack), i = $((e) => e.selectAudioTrack), a = $((e) => e.quality), o = $((e) => e.volumeNormalizer), [s, c] = D(0), { open: l, toggle: u, containerRef: d, pending: f, failed: p, runSelect: m } = Af({ onReset: () => c(0) }), h = (t) => {
|
|
7918
7803
|
e.setPlaybackRate(t), c(0);
|
|
7919
7804
|
}, g = (e) => {
|
|
7920
7805
|
e !== void 0 && m(e, () => i(e));
|
|
@@ -7924,10 +7809,10 @@ ${Df}
|
|
|
7924
7809
|
c(e);
|
|
7925
7810
|
};
|
|
7926
7811
|
return /* @__PURE__ */ _("div", {
|
|
7927
|
-
css:
|
|
7812
|
+
css: zf,
|
|
7928
7813
|
ref: d,
|
|
7929
7814
|
children: [
|
|
7930
|
-
/* @__PURE__ */ E(
|
|
7815
|
+
/* @__PURE__ */ E(Yd, {
|
|
7931
7816
|
id: "settings",
|
|
7932
7817
|
disabled: l,
|
|
7933
7818
|
text: /* @__PURE__ */ E("button", {
|
|
@@ -7986,7 +7871,7 @@ ${Df}
|
|
|
7986
7871
|
}),
|
|
7987
7872
|
/* @__PURE__ */ E("div", {
|
|
7988
7873
|
className: "slider no-hover",
|
|
7989
|
-
children: /* @__PURE__ */ E(
|
|
7874
|
+
children: /* @__PURE__ */ E(Rf, {})
|
|
7990
7875
|
}),
|
|
7991
7876
|
/* @__PURE__ */ _("div", {
|
|
7992
7877
|
className: "options no-hover",
|
|
@@ -8011,7 +7896,7 @@ ${Df}
|
|
|
8011
7896
|
})
|
|
8012
7897
|
]
|
|
8013
7898
|
}),
|
|
8014
|
-
l && s === 2 && /* @__PURE__ */ E(
|
|
7899
|
+
l && s === 2 && /* @__PURE__ */ E(kf, {
|
|
8015
7900
|
title: "Audio",
|
|
8016
7901
|
tracks: n,
|
|
8017
7902
|
selected: r,
|
|
@@ -8020,7 +7905,7 @@ ${Df}
|
|
|
8020
7905
|
pending: f,
|
|
8021
7906
|
failed: p
|
|
8022
7907
|
}),
|
|
8023
|
-
l && s === 3 && a && /* @__PURE__ */ E(
|
|
7908
|
+
l && s === 3 && a && /* @__PURE__ */ E(kf, {
|
|
8024
7909
|
title: "Quality",
|
|
8025
7910
|
tracks: a.options,
|
|
8026
7911
|
selected: a.selectedId ?? void 0,
|
|
@@ -8032,7 +7917,7 @@ ${Df}
|
|
|
8032
7917
|
})
|
|
8033
7918
|
]
|
|
8034
7919
|
});
|
|
8035
|
-
},
|
|
7920
|
+
}, Vf = l`
|
|
8036
7921
|
/* Not a containing block, for the reason given on popoverStyle: the menu anchors to the control bar,
|
|
8037
7922
|
which is the width of the player box, so it can be clamped to it. */
|
|
8038
7923
|
position: static;
|
|
@@ -8048,15 +7933,15 @@ position: static;
|
|
|
8048
7933
|
}
|
|
8049
7934
|
}
|
|
8050
7935
|
|
|
8051
|
-
${
|
|
8052
|
-
`,
|
|
8053
|
-
let e = $((e) => e.subtitleTracks), t = $((e) => e.selectedSubtitleTrack), n = $((e) => e.selectSubtitleTrack), r = $((e) => e.subtitleOffLabel), { open: i, toggle: a, containerRef: o, pending: s, failed: c, runSelect: l } =
|
|
7936
|
+
${Of}
|
|
7937
|
+
`, Hf = () => {
|
|
7938
|
+
let e = $((e) => e.subtitleTracks), t = $((e) => e.selectedSubtitleTrack), n = $((e) => e.selectSubtitleTrack), r = $((e) => e.subtitleOffLabel), { open: i, toggle: a, containerRef: o, pending: s, failed: c, runSelect: l } = Af();
|
|
8054
7939
|
if (e.length === 0) return null;
|
|
8055
7940
|
let u = t !== void 0;
|
|
8056
7941
|
return /* @__PURE__ */ _("div", {
|
|
8057
|
-
css:
|
|
7942
|
+
css: Vf,
|
|
8058
7943
|
ref: o,
|
|
8059
|
-
children: [/* @__PURE__ */ E(
|
|
7944
|
+
children: [/* @__PURE__ */ E(Yd, {
|
|
8060
7945
|
id: "subtitles",
|
|
8061
7946
|
disabled: i,
|
|
8062
7947
|
text: /* @__PURE__ */ E("button", {
|
|
@@ -8069,7 +7954,7 @@ ${Df}
|
|
|
8069
7954
|
children: u ? /* @__PURE__ */ E(w, { className: "captions" }) : /* @__PURE__ */ E(oe, { className: "captions-off" })
|
|
8070
7955
|
}),
|
|
8071
7956
|
toolTipText: /* @__PURE__ */ E("span", { children: "Subtitles" })
|
|
8072
|
-
}), i && /* @__PURE__ */ E(
|
|
7957
|
+
}), i && /* @__PURE__ */ E(kf, {
|
|
8073
7958
|
title: "Subtitles",
|
|
8074
7959
|
tracks: e,
|
|
8075
7960
|
selected: t,
|
|
@@ -8079,13 +7964,13 @@ ${Df}
|
|
|
8079
7964
|
failed: c
|
|
8080
7965
|
})]
|
|
8081
7966
|
});
|
|
8082
|
-
},
|
|
7967
|
+
}, Uf = {
|
|
8083
7968
|
primary: "#EAEBEE",
|
|
8084
7969
|
secondary: "#D0D0D9",
|
|
8085
7970
|
hover: "rgba(255, 255, 255, 0.13)",
|
|
8086
7971
|
borderPrimary: "#384F70",
|
|
8087
7972
|
backgroundTooltip: "#222222"
|
|
8088
|
-
},
|
|
7973
|
+
}, Wf = l`
|
|
8089
7974
|
display: flex;
|
|
8090
7975
|
align-items: center;
|
|
8091
7976
|
|
|
@@ -8128,8 +8013,8 @@ ${Df}
|
|
|
8128
8013
|
width: 10px;
|
|
8129
8014
|
height: 10px;
|
|
8130
8015
|
}
|
|
8131
|
-
`,
|
|
8132
|
-
let n = $((e) => e.volume), r = $((e) => e.muted), a = i(null), o = i(null), { handlers: s } =
|
|
8016
|
+
`, Gf = ({ value: e, onChange: t }) => {
|
|
8017
|
+
let n = $((e) => e.volume), r = $((e) => e.muted), a = i(null), o = i(null), { handlers: s } = Xd({
|
|
8133
8018
|
ref: o,
|
|
8134
8019
|
onChange: t
|
|
8135
8020
|
}), c = (n) => {
|
|
@@ -8143,12 +8028,12 @@ ${Df}
|
|
|
8143
8028
|
e && e.removeEventListener("wheel", c);
|
|
8144
8029
|
};
|
|
8145
8030
|
}, [e]);
|
|
8146
|
-
let l = e * 100, u = L(() => Math.round(r ? 0 :
|
|
8147
|
-
return /* @__PURE__ */ E(
|
|
8031
|
+
let l = e * 100, u = L(() => Math.round(r ? 0 : Hd(n) * 100), [n, r]);
|
|
8032
|
+
return /* @__PURE__ */ E(Yd, {
|
|
8148
8033
|
id: "volume-slider",
|
|
8149
8034
|
text: /* @__PURE__ */ E("div", {
|
|
8150
8035
|
ref: a,
|
|
8151
|
-
css:
|
|
8036
|
+
css: Wf,
|
|
8152
8037
|
...s,
|
|
8153
8038
|
children: /* @__PURE__ */ E("div", {
|
|
8154
8039
|
ref: o,
|
|
@@ -8167,7 +8052,7 @@ ${Df}
|
|
|
8167
8052
|
children: [u, "%"]
|
|
8168
8053
|
})
|
|
8169
8054
|
});
|
|
8170
|
-
},
|
|
8055
|
+
}, Kf = l`
|
|
8171
8056
|
position: relative;
|
|
8172
8057
|
display: flex;
|
|
8173
8058
|
align-items: center;
|
|
@@ -8192,7 +8077,7 @@ ${Df}
|
|
|
8192
8077
|
border-radius: 4px;
|
|
8193
8078
|
|
|
8194
8079
|
.volume-value {
|
|
8195
|
-
${
|
|
8080
|
+
${jd.bMedium.regular};
|
|
8196
8081
|
color: #ffffff;
|
|
8197
8082
|
}
|
|
8198
8083
|
}
|
|
@@ -8230,11 +8115,11 @@ ${Df}
|
|
|
8230
8115
|
}
|
|
8231
8116
|
}
|
|
8232
8117
|
|
|
8233
|
-
`,
|
|
8234
|
-
let t = $(), n = $((e) => e.volume), r = $((e) => e.muted), i = L(() =>
|
|
8118
|
+
`, qf = ({ ref: e }) => {
|
|
8119
|
+
let t = $(), n = $((e) => e.volume), r = $((e) => e.muted), i = L(() => Hd(n), [n]);
|
|
8235
8120
|
return /* @__PURE__ */ _("div", {
|
|
8236
|
-
css:
|
|
8237
|
-
children: [/* @__PURE__ */ E(
|
|
8121
|
+
css: Kf,
|
|
8122
|
+
children: [/* @__PURE__ */ E(Yd, {
|
|
8238
8123
|
id: "sound",
|
|
8239
8124
|
text: /* @__PURE__ */ E("button", {
|
|
8240
8125
|
className: "sound",
|
|
@@ -8253,16 +8138,16 @@ ${Df}
|
|
|
8253
8138
|
className: "volume-slider-container",
|
|
8254
8139
|
children: /* @__PURE__ */ E("div", {
|
|
8255
8140
|
className: "volume-slider-background",
|
|
8256
|
-
children: /* @__PURE__ */ E(
|
|
8141
|
+
children: /* @__PURE__ */ E(Gf, {
|
|
8257
8142
|
value: r ? 0 : i,
|
|
8258
8143
|
onChange: (e) => {
|
|
8259
|
-
t.setVolume(
|
|
8144
|
+
t.setVolume(Vd(e));
|
|
8260
8145
|
}
|
|
8261
8146
|
})
|
|
8262
8147
|
})
|
|
8263
8148
|
})]
|
|
8264
8149
|
});
|
|
8265
|
-
},
|
|
8150
|
+
}, Jf = .05, Yf = 5, Xf = 50, Zf = 1e3, Qf = l`
|
|
8266
8151
|
position: absolute;
|
|
8267
8152
|
bottom: 0;
|
|
8268
8153
|
width: 100%;
|
|
@@ -8354,7 +8239,7 @@ ${Df}
|
|
|
8354
8239
|
/* .armed is the hover of a control letting its click through, which takes no pointer events
|
|
8355
8240
|
of its own and so is never :hover */
|
|
8356
8241
|
:hover, &.armed {
|
|
8357
|
-
background-color: ${
|
|
8242
|
+
background-color: ${Uf.hover};
|
|
8358
8243
|
}
|
|
8359
8244
|
|
|
8360
8245
|
/* the hit area grows, the icon does not, keyed on the pointer because a narrow desktop
|
|
@@ -8371,7 +8256,7 @@ ${Df}
|
|
|
8371
8256
|
|
|
8372
8257
|
.left {
|
|
8373
8258
|
.time {
|
|
8374
|
-
${
|
|
8259
|
+
${jd.bMedium.regular}
|
|
8375
8260
|
text-shadow: 0 0 4px rgba(0, 0, 0, 1);
|
|
8376
8261
|
}
|
|
8377
8262
|
}
|
|
@@ -8392,10 +8277,10 @@ ${Df}
|
|
|
8392
8277
|
}
|
|
8393
8278
|
}
|
|
8394
8279
|
}
|
|
8395
|
-
`,
|
|
8280
|
+
`, $f = ({ shortcuts: e = "window", root: t }) => {
|
|
8396
8281
|
let n = $(), r = $((e) => e.paused), a = $((e) => e.currentTime), o = $((e) => e.duration), s = $((e) => e.seekingTo), c = $((e) => e.fullscreen), l = $((e) => e.hideUI), u = $((e) => e.togglePictureInPicture), d = $((e) => e.pictureInPictureMode), f = $((e) => e.burnedInSubtitles), p = $((e) => e.passThroughPictureInPicture), m = $((e) => e.subtitleTracks), h = $((e) => e.requestSeek), g = $((e) => e.stepFrame), [v, y] = D(null), b = i(null), x = i(void 0), C = d === "burn-in", w = m.length > 0, T = o > 0 && a === o, O = F(({ direction: e, stepSize: t }) => {
|
|
8397
|
-
let r =
|
|
8398
|
-
n.setVolume(
|
|
8282
|
+
let r = Hd(n.volume), i = e === "up" ? t : -t, a = Math.max(0, Math.min(1, r + i)), o = n.muted;
|
|
8283
|
+
n.setVolume(Vd(a)), o && !n.muted && n.toggleMuted();
|
|
8399
8284
|
}, [n]), ee = i(!1);
|
|
8400
8285
|
A(() => {
|
|
8401
8286
|
let r = (e) => h ? h(e) : n.seek(e), i = (e) => e.composedPath()[0], a = (e) => {
|
|
@@ -8412,16 +8297,16 @@ ${Df}
|
|
|
8412
8297
|
else if (a.key === "m") n.toggleMuted();
|
|
8413
8298
|
else if (a.key === "ArrowUp") O({
|
|
8414
8299
|
direction: "up",
|
|
8415
|
-
stepSize:
|
|
8300
|
+
stepSize: Jf
|
|
8416
8301
|
});
|
|
8417
8302
|
else if (a.key === "ArrowDown") O({
|
|
8418
8303
|
direction: "down",
|
|
8419
|
-
stepSize:
|
|
8304
|
+
stepSize: Jf
|
|
8420
8305
|
});
|
|
8421
8306
|
else if (a.key === "ArrowRight") {
|
|
8422
8307
|
if (!n.duration) return;
|
|
8423
|
-
r(Math.min(n.currentTime +
|
|
8424
|
-
} else a.key === "ArrowLeft" ? r(Math.max(n.currentTime -
|
|
8308
|
+
r(Math.min(n.currentTime + Yf, n.duration));
|
|
8309
|
+
} else a.key === "ArrowLeft" ? r(Math.max(n.currentTime - Yf, 0)) : (a.key === "<" || a.key === ">") && g ? g(a.key === ">" ? 1 : -1) : c = !1;
|
|
8425
8310
|
c && a.preventDefault();
|
|
8426
8311
|
};
|
|
8427
8312
|
return window.addEventListener("keydown", o), window.addEventListener("pointerdown", a, !0), window.addEventListener("focusin", a, !0), () => {
|
|
@@ -8438,10 +8323,10 @@ ${Df}
|
|
|
8438
8323
|
let k = F((e) => {
|
|
8439
8324
|
e.preventDefault(), e.deltaY < 0 ? O({
|
|
8440
8325
|
direction: "up",
|
|
8441
|
-
stepSize:
|
|
8326
|
+
stepSize: Jf
|
|
8442
8327
|
}) : O({
|
|
8443
8328
|
direction: "down",
|
|
8444
|
-
stepSize:
|
|
8329
|
+
stepSize: Jf
|
|
8445
8330
|
});
|
|
8446
8331
|
}, [O]);
|
|
8447
8332
|
A(() => {
|
|
@@ -8467,23 +8352,23 @@ ${Df}
|
|
|
8467
8352
|
}
|
|
8468
8353
|
let n = b.current, r = document.activeElement;
|
|
8469
8354
|
n && r?.tagName === "IFRAME" && r.closest(".video")?.parentElement?.contains(n) && n.focus({ preventScroll: !0 });
|
|
8470
|
-
},
|
|
8355
|
+
}, Xf);
|
|
8471
8356
|
return x.current = t, () => {
|
|
8472
|
-
e = Date.now() +
|
|
8357
|
+
e = Date.now() + Zf;
|
|
8473
8358
|
};
|
|
8474
8359
|
}, [M]), A(() => () => clearInterval(x.current), []), /* @__PURE__ */ _("div", {
|
|
8475
8360
|
className: "control-bar",
|
|
8476
|
-
css:
|
|
8361
|
+
css: Qf,
|
|
8477
8362
|
style: { ...l ? {
|
|
8478
8363
|
opacity: "0",
|
|
8479
8364
|
pointerEvents: "none"
|
|
8480
8365
|
} : M ? { pointerEvents: "none" } : {} },
|
|
8481
|
-
children: [/* @__PURE__ */ E(
|
|
8366
|
+
children: [/* @__PURE__ */ E(Cf, {}), /* @__PURE__ */ _("div", {
|
|
8482
8367
|
className: "actions",
|
|
8483
8368
|
children: [/* @__PURE__ */ _("div", {
|
|
8484
8369
|
className: "left",
|
|
8485
8370
|
children: [
|
|
8486
|
-
/* @__PURE__ */ E(
|
|
8371
|
+
/* @__PURE__ */ E(Yd, {
|
|
8487
8372
|
id: "play",
|
|
8488
8373
|
tooltipPlace: "top-start",
|
|
8489
8374
|
text: /* @__PURE__ */ E("button", {
|
|
@@ -8495,19 +8380,19 @@ ${Df}
|
|
|
8495
8380
|
}),
|
|
8496
8381
|
toolTipText: /* @__PURE__ */ E("span", { children: T ? "Replay (k)" : r ? "Play (k)" : "Pause (k)" })
|
|
8497
8382
|
}),
|
|
8498
|
-
/* @__PURE__ */ E(
|
|
8383
|
+
/* @__PURE__ */ E(qf, { ref: y }),
|
|
8499
8384
|
/* @__PURE__ */ E("div", {
|
|
8500
8385
|
className: "time",
|
|
8501
|
-
children:
|
|
8386
|
+
children: Wd(s ?? a, o)
|
|
8502
8387
|
})
|
|
8503
8388
|
]
|
|
8504
8389
|
}), /* @__PURE__ */ _("div", {
|
|
8505
8390
|
className: "right",
|
|
8506
8391
|
children: [
|
|
8507
|
-
/* @__PURE__ */ E(
|
|
8508
|
-
/* @__PURE__ */ E(
|
|
8509
|
-
/* @__PURE__ */ E(
|
|
8510
|
-
p ? /* @__PURE__ */ E(
|
|
8392
|
+
/* @__PURE__ */ E(If, {}),
|
|
8393
|
+
/* @__PURE__ */ E(Hf, {}),
|
|
8394
|
+
/* @__PURE__ */ E(Bf, {}),
|
|
8395
|
+
p ? /* @__PURE__ */ E(Yd, {
|
|
8511
8396
|
id: "picture-in-picture",
|
|
8512
8397
|
tooltipPlace: "top-end",
|
|
8513
8398
|
text: /* @__PURE__ */ E("button", {
|
|
@@ -8520,12 +8405,12 @@ ${Df}
|
|
|
8520
8405
|
"aria-label": "Picture in picture",
|
|
8521
8406
|
"aria-pressed": p.active,
|
|
8522
8407
|
children: /* @__PURE__ */ E("img", {
|
|
8523
|
-
src:
|
|
8408
|
+
src: wf,
|
|
8524
8409
|
alt: ""
|
|
8525
8410
|
})
|
|
8526
8411
|
}),
|
|
8527
8412
|
toolTipText: /* @__PURE__ */ E("span", { children: p.active ? "Exit picture in picture" : "Picture in picture" })
|
|
8528
|
-
}) : u ? /* @__PURE__ */ E(
|
|
8413
|
+
}) : u ? /* @__PURE__ */ E(Yd, {
|
|
8529
8414
|
id: "picture-in-picture",
|
|
8530
8415
|
tooltipPlace: "top-end",
|
|
8531
8416
|
text: /* @__PURE__ */ E("button", {
|
|
@@ -8535,14 +8420,14 @@ ${Df}
|
|
|
8535
8420
|
disabled: C && !w,
|
|
8536
8421
|
"aria-label": C ? "Put the subtitles in the video" : "Picture in picture",
|
|
8537
8422
|
"aria-pressed": C ? f : void 0,
|
|
8538
|
-
children: C ? E(f ?
|
|
8539
|
-
src:
|
|
8423
|
+
children: C ? E(f ? Ef : Df, {}) : /* @__PURE__ */ E("img", {
|
|
8424
|
+
src: wf,
|
|
8540
8425
|
alt: ""
|
|
8541
8426
|
})
|
|
8542
8427
|
}),
|
|
8543
8428
|
toolTipText: /* @__PURE__ */ E("span", { children: C ? w ? f ? "Subtitles are in the picture" : "Put the subtitles in the picture" : "This file has no subtitles" : "Picture in picture" })
|
|
8544
8429
|
}) : null,
|
|
8545
|
-
/* @__PURE__ */ E(
|
|
8430
|
+
/* @__PURE__ */ E(Yd, {
|
|
8546
8431
|
id: "full-screen",
|
|
8547
8432
|
tooltipPlace: "top-end",
|
|
8548
8433
|
text: /* @__PURE__ */ E("button", {
|
|
@@ -8559,7 +8444,7 @@ ${Df}
|
|
|
8559
8444
|
})]
|
|
8560
8445
|
})]
|
|
8561
8446
|
});
|
|
8562
|
-
},
|
|
8447
|
+
}, ep = 9e3, tp = l`
|
|
8563
8448
|
position: absolute;
|
|
8564
8449
|
inset: 0;
|
|
8565
8450
|
z-index: 2;
|
|
@@ -8591,7 +8476,7 @@ ${Df}
|
|
|
8591
8476
|
}
|
|
8592
8477
|
|
|
8593
8478
|
.text {
|
|
8594
|
-
${
|
|
8479
|
+
${jd.bMedium.medium}
|
|
8595
8480
|
color: #fff;
|
|
8596
8481
|
}
|
|
8597
8482
|
|
|
@@ -8602,7 +8487,7 @@ ${Df}
|
|
|
8602
8487
|
line-height: 1;
|
|
8603
8488
|
color: #fff;
|
|
8604
8489
|
}
|
|
8605
|
-
`,
|
|
8490
|
+
`, np = () => {
|
|
8606
8491
|
let e = $((e) => e.burnedInSubtitles), t = $((e) => e.pictureInPictureMode), [n, r] = D(!1);
|
|
8607
8492
|
return A(() => {
|
|
8608
8493
|
if (t !== "burn-in" || !e) {
|
|
@@ -8610,10 +8495,10 @@ ${Df}
|
|
|
8610
8495
|
return;
|
|
8611
8496
|
}
|
|
8612
8497
|
r(!0);
|
|
8613
|
-
let n = setTimeout(() => r(!1),
|
|
8498
|
+
let n = setTimeout(() => r(!1), ep);
|
|
8614
8499
|
return () => clearTimeout(n);
|
|
8615
8500
|
}, [t, e]), t !== "burn-in" || !e ? null : /* @__PURE__ */ E("div", {
|
|
8616
|
-
css:
|
|
8501
|
+
css: tp,
|
|
8617
8502
|
className: n ? "show" : "",
|
|
8618
8503
|
role: "status",
|
|
8619
8504
|
children: /* @__PURE__ */ _("div", {
|
|
@@ -8628,10 +8513,10 @@ ${Df}
|
|
|
8628
8513
|
})]
|
|
8629
8514
|
})
|
|
8630
8515
|
});
|
|
8631
|
-
},
|
|
8516
|
+
}, rp = 1, ip = 6e3, ap = 1, op = {
|
|
8632
8517
|
opening: "Skip Opening",
|
|
8633
8518
|
ending: "Skip Ending"
|
|
8634
|
-
},
|
|
8519
|
+
}, sp = l`
|
|
8635
8520
|
position: absolute;
|
|
8636
8521
|
inset: 0;
|
|
8637
8522
|
z-index: 2;
|
|
@@ -8648,7 +8533,7 @@ ${Df}
|
|
|
8648
8533
|
pointer-events: auto;
|
|
8649
8534
|
cursor: pointer;
|
|
8650
8535
|
|
|
8651
|
-
${
|
|
8536
|
+
${jd.bMedium.bold}
|
|
8652
8537
|
color: #fff;
|
|
8653
8538
|
padding: calc(1 * var(--mp-unit)) calc(1.8 * var(--mp-unit));
|
|
8654
8539
|
border: 1px solid rgba(255, 255, 255, .55);
|
|
@@ -8682,10 +8567,10 @@ ${Df}
|
|
|
8682
8567
|
bottom: calc(9 * var(--mp-unit));
|
|
8683
8568
|
}
|
|
8684
8569
|
}
|
|
8685
|
-
`,
|
|
8686
|
-
let e = $((e) => e.chapters), t = $((e) => e.currentTime), n = $((e) => e.requestSeek), r = $((e) => e.seekPreview), a = $(), o = L(() =>
|
|
8570
|
+
`, cp = () => {
|
|
8571
|
+
let e = $((e) => e.chapters), t = $((e) => e.currentTime), n = $((e) => e.requestSeek), r = $((e) => e.seekPreview), a = $(), o = L(() => bf(e), [e]), s = L(() => {
|
|
8687
8572
|
if (typeof t != "number") return;
|
|
8688
|
-
let n = e.findIndex((e, n) => o[n] !== void 0 && e.start -
|
|
8573
|
+
let n = e.findIndex((e, n) => o[n] !== void 0 && e.start - rp <= t && t < e.end), r = n >= 0 ? o[n] : void 0;
|
|
8689
8574
|
return r ? {
|
|
8690
8575
|
kind: r,
|
|
8691
8576
|
end: e[n].end
|
|
@@ -8697,7 +8582,7 @@ ${Df}
|
|
|
8697
8582
|
]), c = i(0), [l, u] = D(0);
|
|
8698
8583
|
A(() => {
|
|
8699
8584
|
let e = typeof t == "number" ? t : 0, n = c.current;
|
|
8700
|
-
c.current = e, e < n -
|
|
8585
|
+
c.current = e, e < n - ap && u((e) => e + 1);
|
|
8701
8586
|
}, [t]);
|
|
8702
8587
|
let [d, f] = D(!1), p = s ? `${s.kind}@${s.end}` : "";
|
|
8703
8588
|
return A(() => {
|
|
@@ -8706,12 +8591,12 @@ ${Df}
|
|
|
8706
8591
|
return;
|
|
8707
8592
|
}
|
|
8708
8593
|
f(!0);
|
|
8709
|
-
let e = setTimeout(() => f(!1),
|
|
8594
|
+
let e = setTimeout(() => f(!1), ip);
|
|
8710
8595
|
return () => clearTimeout(e);
|
|
8711
8596
|
}, [p, l]), A(() => {
|
|
8712
8597
|
s || f(!1);
|
|
8713
8598
|
}, [s]), s ? /* @__PURE__ */ E("div", {
|
|
8714
|
-
css:
|
|
8599
|
+
css: sp,
|
|
8715
8600
|
className: d && !r ? "show" : "",
|
|
8716
8601
|
children: /* @__PURE__ */ E("button", {
|
|
8717
8602
|
type: "button",
|
|
@@ -8719,10 +8604,10 @@ ${Df}
|
|
|
8719
8604
|
onClick: () => {
|
|
8720
8605
|
f(!1), n ? n(s.end) : a.seek(s.end);
|
|
8721
8606
|
},
|
|
8722
|
-
children:
|
|
8607
|
+
children: op[s.kind]
|
|
8723
8608
|
})
|
|
8724
8609
|
}) : null;
|
|
8725
|
-
},
|
|
8610
|
+
}, lp = 3e3, up = l`
|
|
8726
8611
|
position: absolute;
|
|
8727
8612
|
inset: 0;
|
|
8728
8613
|
z-index: 2;
|
|
@@ -8733,10 +8618,10 @@ ${Df}
|
|
|
8733
8618
|
hoverable while faded out, popping a tooltip over nothing. It cascades where pointer-events does
|
|
8734
8619
|
not, and transitioning it holds the item on screen for the length of the fade. */
|
|
8735
8620
|
transition: opacity 0.1s cubic-bezier(.4,0,1,1), visibility 0.1s;
|
|
8736
|
-
`,
|
|
8621
|
+
`, dp = (e, t) => {
|
|
8737
8622
|
let n = e.left - t.left, r = e.top - t.top;
|
|
8738
8623
|
return `path(evenodd, 'M0 0H${t.width}V${t.height}H0Z M${n} ${r}H${n + e.width}V${r + e.height}H${n}Z')`;
|
|
8739
|
-
},
|
|
8624
|
+
}, fp = l`
|
|
8740
8625
|
position: relative;
|
|
8741
8626
|
background-color: black;
|
|
8742
8627
|
display: flex;
|
|
@@ -8793,13 +8678,13 @@ ${Df}
|
|
|
8793
8678
|
&.hide {
|
|
8794
8679
|
cursor: none;
|
|
8795
8680
|
}
|
|
8796
|
-
`,
|
|
8681
|
+
`, pp = (e, t = "") => f.toArray(e).flatMap((e, n) => {
|
|
8797
8682
|
let r = `${t}${m(e) && e.key != null ? e.key : n}`;
|
|
8798
|
-
return m(e) && e.type === te ?
|
|
8683
|
+
return m(e) && e.type === te ? pp(e.props.children, `${r}/`) : [{
|
|
8799
8684
|
key: r,
|
|
8800
8685
|
item: e
|
|
8801
8686
|
}];
|
|
8802
|
-
}),
|
|
8687
|
+
}), mp = ({ ref: e, onVideoRef: t, onSubtitleRef: n, overlay: r, controls: a, shortcuts: o, children: s }) => {
|
|
8803
8688
|
let c = $(), l = $((e) => e.hideUI), u = $((e) => e.setHideUI), d = $((e) => e.hasMedia), f = $((e) => e.passThroughPictureInPicture), p = i(void 0), m = i("mouse"), h = i({
|
|
8804
8689
|
x: -1,
|
|
8805
8690
|
y: -1
|
|
@@ -8819,13 +8704,9 @@ ${Df}
|
|
|
8819
8704
|
let n = document.elementFromPoint(e, t);
|
|
8820
8705
|
return !n || !v.current.contains(n) || n.closest(".video") ? !1 : !n.closest(".control-bar") || g.current || !!v.current.querySelector(".control-bar [aria-expanded=\"true\"]");
|
|
8821
8706
|
}, S = () => {
|
|
8822
|
-
|
|
8823
|
-
p.current = setTimeout(S, cp);
|
|
8824
|
-
return;
|
|
8825
|
-
}
|
|
8826
|
-
y();
|
|
8707
|
+
x() ? p.current = setTimeout(S, lp) : y();
|
|
8827
8708
|
}, C = () => {
|
|
8828
|
-
u(!1), clearTimeout(p.current), p.current = setTimeout(S,
|
|
8709
|
+
u(!1), clearTimeout(p.current), p.current = setTimeout(S, lp);
|
|
8829
8710
|
}, w = (e) => {
|
|
8830
8711
|
m.current = e.pointerType, e.pointerType === "mouse" && (h.current = {
|
|
8831
8712
|
x: e.clientX,
|
|
@@ -8837,7 +8718,7 @@ ${Df}
|
|
|
8837
8718
|
g.current = !1;
|
|
8838
8719
|
}, O = i(!0);
|
|
8839
8720
|
return /* @__PURE__ */ _("div", {
|
|
8840
|
-
css:
|
|
8721
|
+
css: fp,
|
|
8841
8722
|
ref: b,
|
|
8842
8723
|
onPointerMove: w,
|
|
8843
8724
|
onPointerDown: T,
|
|
@@ -8852,9 +8733,9 @@ ${Df}
|
|
|
8852
8733
|
className: l ? "hide" : "",
|
|
8853
8734
|
tabIndex: o === "player" ? -1 : void 0,
|
|
8854
8735
|
children: [
|
|
8855
|
-
/* @__PURE__ */ E(
|
|
8856
|
-
|
|
8857
|
-
css:
|
|
8736
|
+
/* @__PURE__ */ E(Rd, { onSubtitleRef: n }),
|
|
8737
|
+
pp(r).map(({ key: e, item: t }) => /* @__PURE__ */ E("div", {
|
|
8738
|
+
css: up,
|
|
8858
8739
|
style: { ...l ? {
|
|
8859
8740
|
opacity: "0",
|
|
8860
8741
|
visibility: "hidden",
|
|
@@ -8862,15 +8743,15 @@ ${Df}
|
|
|
8862
8743
|
} : {} },
|
|
8863
8744
|
children: t
|
|
8864
8745
|
}, e)),
|
|
8865
|
-
a === !1 ? null : /* @__PURE__ */ E(
|
|
8746
|
+
a === !1 ? null : /* @__PURE__ */ E($f, {
|
|
8866
8747
|
shortcuts: o,
|
|
8867
8748
|
root: v
|
|
8868
8749
|
}),
|
|
8869
|
-
/* @__PURE__ */ E(
|
|
8870
|
-
/* @__PURE__ */ E(
|
|
8750
|
+
/* @__PURE__ */ E(np, {}),
|
|
8751
|
+
/* @__PURE__ */ E(cp, {}),
|
|
8871
8752
|
f?.armed && v.current ? /* @__PURE__ */ E("div", {
|
|
8872
8753
|
className: "pass-through",
|
|
8873
|
-
style: { clipPath:
|
|
8754
|
+
style: { clipPath: dp(f.armed, v.current.getBoundingClientRect()) },
|
|
8874
8755
|
onPointerOver: f.disarm
|
|
8875
8756
|
}) : null,
|
|
8876
8757
|
/* @__PURE__ */ _("div", {
|
|
@@ -8879,9 +8760,7 @@ ${Df}
|
|
|
8879
8760
|
if (m.current === "mouse") {
|
|
8880
8761
|
if (e.detail > 1) return;
|
|
8881
8762
|
O.current = c.paused, c.togglePaused();
|
|
8882
|
-
|
|
8883
|
-
}
|
|
8884
|
-
l ? C() : (clearTimeout(p.current), y());
|
|
8763
|
+
} else l ? C() : (clearTimeout(p.current), y());
|
|
8885
8764
|
},
|
|
8886
8765
|
onDoubleClick: () => {
|
|
8887
8766
|
m.current === "mouse" && (O.current ? c.pause() : c.play().catch(() => {}), c.toggleFullscreen());
|
|
@@ -8893,16 +8772,16 @@ ${Df}
|
|
|
8893
8772
|
})
|
|
8894
8773
|
]
|
|
8895
8774
|
});
|
|
8896
|
-
},
|
|
8775
|
+
}, hp = ({ options: e, children: t }) => {
|
|
8897
8776
|
let n = "media" in e ? e : null, r = n ? null : e, { title: a, chapters: o } = e, { size: s, downloadedRanges: c, publicPath: l, libavWorkerUrl: u, read: d, thumbnailRead: f, thumbnailsEnabled: p, readsDownload: m } = r ?? {}, h = zc(), g = Bc(), [_, v] = D(null), [y, b] = D(null), x = n?.media ?? _;
|
|
8898
|
-
A(() => (h?.(x), () => h?.(null)), [x, h]),
|
|
8777
|
+
A(() => (h?.(x), () => h?.(null)), [x, h]), ld(x, n?.stepFrame);
|
|
8899
8778
|
let { expose: S } = e, C = S === !0 ? {} : S || void 0, w = i(C);
|
|
8900
8779
|
w.current = C;
|
|
8901
8780
|
let T = C ? C.id : void 0, O = C ? C.origin : void 0, ee = C ? C.channel : void 0;
|
|
8902
8781
|
A(() => {
|
|
8903
8782
|
if (!S || !x) return;
|
|
8904
8783
|
let e, t = !1;
|
|
8905
|
-
return import("./lib-remote-
|
|
8784
|
+
return import("./lib-remote-CD-E7fNZ.js").then(({ exposePlayer: n }) => {
|
|
8906
8785
|
t || (e = n(x, w.current ?? {}));
|
|
8907
8786
|
}).catch(() => {}), () => {
|
|
8908
8787
|
t = !0, e?.();
|
|
@@ -8914,7 +8793,7 @@ ${Df}
|
|
|
8914
8793
|
O,
|
|
8915
8794
|
ee
|
|
8916
8795
|
]);
|
|
8917
|
-
let k = L(() =>
|
|
8796
|
+
let k = L(() => Ad(), [s]);
|
|
8918
8797
|
ad(_, y, r, m ? k.push : void 0);
|
|
8919
8798
|
let j = r?.normalizeVolume ?? !0, [M, N] = D(j);
|
|
8920
8799
|
A(() => {
|
|
@@ -8924,7 +8803,7 @@ ${Df}
|
|
|
8924
8803
|
te.current = r?.onNormalizeVolumeChange;
|
|
8925
8804
|
let P = r?.normalizerWorkletUrl, F = i(f ?? d);
|
|
8926
8805
|
F.current = f ?? d;
|
|
8927
|
-
let I = $((e) => e.selectedAudioTrack), R = !!d, { refused: ne } =
|
|
8806
|
+
let I = $((e) => e.selectedAudioTrack), R = !!d, { refused: ne } = kd(_, P, M, L(() => R && s && l && u && typeof I == "number" && I >= 0 ? m ? {
|
|
8928
8807
|
tap: k,
|
|
8929
8808
|
audioStreamIndex: I
|
|
8930
8809
|
} : {
|
|
@@ -8951,13 +8830,13 @@ ${Df}
|
|
|
8951
8830
|
P,
|
|
8952
8831
|
M,
|
|
8953
8832
|
ne
|
|
8954
|
-
]), { thumbnails: ie, requestThumbnail: z } =
|
|
8833
|
+
]), { thumbnails: ie, requestThumbnail: z } = fd({
|
|
8955
8834
|
publicPath: l,
|
|
8956
8835
|
workerUrl: u,
|
|
8957
8836
|
length: p === !1 ? void 0 : s,
|
|
8958
8837
|
read: f ?? d,
|
|
8959
8838
|
downloadedRanges: c
|
|
8960
|
-
}), ae = n?.thumbnails?.all ?? ie, { toggle: B, mode: oe, burnedIn: se } =
|
|
8839
|
+
}), ae = n?.thumbnails?.all ?? ie, { toggle: B, mode: oe, burnedIn: se } = pd(_, y), ce = yd(n?.media ?? null, n?.pictureInPicture), V = $((e) => e.setSourceState), le = n ? !!n.media : s !== void 0;
|
|
8961
8840
|
A(() => {
|
|
8962
8841
|
V({
|
|
8963
8842
|
title: a,
|
|
@@ -9023,7 +8902,7 @@ ${Df}
|
|
|
9023
8902
|
V({ quality: de });
|
|
9024
8903
|
}, [V, de]), A(() => {
|
|
9025
8904
|
o && V({ chapters: o });
|
|
9026
|
-
}, [V, o]), /* @__PURE__ */ E(
|
|
8905
|
+
}, [V, o]), /* @__PURE__ */ E(mp, {
|
|
9027
8906
|
ref: g,
|
|
9028
8907
|
onVideoRef: n ? void 0 : v,
|
|
9029
8908
|
onSubtitleRef: b,
|
|
@@ -9032,7 +8911,7 @@ ${Df}
|
|
|
9032
8911
|
shortcuts: e.shortcuts,
|
|
9033
8912
|
children: t
|
|
9034
8913
|
});
|
|
9035
|
-
},
|
|
8914
|
+
}, gp = l`
|
|
9036
8915
|
/**
|
|
9037
8916
|
* The chrome's whole scale, in one place.
|
|
9038
8917
|
*
|
|
@@ -9102,17 +8981,17 @@ ${Df}
|
|
|
9102
8981
|
height: 100%;
|
|
9103
8982
|
width: 100%;
|
|
9104
8983
|
overflow: hidden;
|
|
9105
|
-
`,
|
|
9106
|
-
css:
|
|
9107
|
-
children: /* @__PURE__ */ E(Ju.Provider, { children: /* @__PURE__ */ E(
|
|
8984
|
+
`, _p = (e) => /* @__PURE__ */ E("div", {
|
|
8985
|
+
css: gp,
|
|
8986
|
+
children: /* @__PURE__ */ E(Ju.Provider, { children: /* @__PURE__ */ E(hp, {
|
|
9108
8987
|
options: e,
|
|
9109
8988
|
children: e.children
|
|
9110
8989
|
}) })
|
|
9111
|
-
}),
|
|
8990
|
+
}), vp = ({ url: e }) => {
|
|
9112
8991
|
let [t, n] = D(null);
|
|
9113
8992
|
return A(() => t ? k(t) : void 0, [t]), A(() => {
|
|
9114
8993
|
t?.play().catch(() => {});
|
|
9115
|
-
}, [t]), /* @__PURE__ */ E(
|
|
8994
|
+
}, [t]), /* @__PURE__ */ E(_p, {
|
|
9116
8995
|
media: t,
|
|
9117
8996
|
shortcuts: "player",
|
|
9118
8997
|
children: /* @__PURE__ */ E("video", {
|
|
@@ -9122,5 +9001,4 @@ ${Df}
|
|
|
9122
9001
|
})
|
|
9123
9002
|
});
|
|
9124
9003
|
};
|
|
9125
|
-
|
|
9126
|
-
export { _p as default };
|
|
9004
|
+
export { vp as default };
|