@banou/media-player 0.5.0 → 0.6.0
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/README.md +3 -0
- package/build/components/playback-slider.d.ts +2 -0
- package/build/index.js +1244 -1072
- package/build/state-machines/index.d.ts +2503 -1838
- package/build/state-machines/media.d.ts +218 -51
- package/build/state-machines/subtitles.d.ts +3 -0
- package/build/utils/use-local-storage.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/control-bar.tsx +8 -2
- package/src/components/overlay.tsx +15 -6
- package/src/components/playback-slider.tsx +174 -0
- package/src/components/settings.tsx +106 -53
- package/src/components/tooltip-display.tsx +1 -1
- package/src/index.tsx +2 -2
- package/src/main.tsx +2 -2
- package/src/state-machines/media-properties.ts +7 -3
- package/src/state-machines/media-source.ts +1 -1
- package/src/state-machines/media.ts +5 -2
- package/src/state-machines/subtitles.ts +16 -0
- package/src/utils/fonts.ts +4 -0
- package/src/utils/use-local-storage.ts +1 -1
package/build/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as ce from "react";
|
|
2
|
-
import
|
|
2
|
+
import pr, { forwardRef as hr, useContext as Te, createContext as vr, useState as J, useEffect as j, useCallback as ot, useRef as xe, useMemo as pe } from "react";
|
|
3
3
|
import { css as K } from "@emotion/react";
|
|
4
|
-
import { createActorContext as
|
|
5
|
-
import { fromCallback as
|
|
4
|
+
import { createActorContext as Er } from "@xstate/react";
|
|
5
|
+
import { fromCallback as Ht, setup as gr, enqueueActions as br, assign as z, sendTo as G } from "xstate";
|
|
6
6
|
import qt from "p-queue";
|
|
7
|
-
import { makeRemuxer as
|
|
8
|
-
import
|
|
9
|
-
import { parse as Le, stringify as
|
|
10
|
-
import { Settings as
|
|
11
|
-
import { Tooltip as
|
|
12
|
-
var Je = { exports: {} },
|
|
7
|
+
import { makeRemuxer as Kt } from "libav-wasm";
|
|
8
|
+
import yr from "jassub";
|
|
9
|
+
import { parse as Le, stringify as Pt } from "ass-compiler";
|
|
10
|
+
import { Settings as xr, ChevronRight as pt, ChevronLeft as Ke, VolumeX as Sr, Volume1 as Tr, Volume2 as wr, RotateCcw as Rr, Play as Ar, Pause as _r, Minimize as Cr, Maximize as Pr } from "react-feather";
|
|
11
|
+
import { Tooltip as Nr } from "react-tooltip";
|
|
12
|
+
var Je = { exports: {} }, Me = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react-jsx-runtime.production.js
|
|
@@ -19,10 +19,10 @@ var Je = { exports: {} }, Oe = {};
|
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
if (
|
|
25
|
-
|
|
22
|
+
var Nt;
|
|
23
|
+
function Mr() {
|
|
24
|
+
if (Nt) return Me;
|
|
25
|
+
Nt = 1;
|
|
26
26
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
27
27
|
function r(n, o, a) {
|
|
28
28
|
var s = null;
|
|
@@ -39,9 +39,9 @@ function Or() {
|
|
|
39
39
|
props: a
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return Me.Fragment = t, Me.jsx = r, Me.jsxs = r, Me;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var Oe = {};
|
|
45
45
|
/**
|
|
46
46
|
* @license React
|
|
47
47
|
* react-jsx-runtime.development.js
|
|
@@ -51,16 +51,16 @@ var Ne = {};
|
|
|
51
51
|
* This source code is licensed under the MIT license found in the
|
|
52
52
|
* LICENSE file in the root directory of this source tree.
|
|
53
53
|
*/
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
return
|
|
54
|
+
var Mt;
|
|
55
|
+
function Or() {
|
|
56
|
+
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
57
57
|
function e(i) {
|
|
58
58
|
if (i == null) return null;
|
|
59
59
|
if (typeof i == "function")
|
|
60
60
|
return i.$$typeof === ze ? null : i.displayName || i.name || null;
|
|
61
61
|
if (typeof i == "string") return i;
|
|
62
62
|
switch (i) {
|
|
63
|
-
case
|
|
63
|
+
case w:
|
|
64
64
|
return "Fragment";
|
|
65
65
|
case f:
|
|
66
66
|
return "Portal";
|
|
@@ -70,7 +70,7 @@ function Nr() {
|
|
|
70
70
|
return "StrictMode";
|
|
71
71
|
case ee:
|
|
72
72
|
return "Suspense";
|
|
73
|
-
case
|
|
73
|
+
case le:
|
|
74
74
|
return "SuspenseList";
|
|
75
75
|
}
|
|
76
76
|
if (typeof i == "object")
|
|
@@ -82,14 +82,14 @@ function Nr() {
|
|
|
82
82
|
case U:
|
|
83
83
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
84
84
|
case V:
|
|
85
|
-
var
|
|
86
|
-
return i = i.displayName, i || (i =
|
|
87
|
-
case Re:
|
|
88
|
-
return T = i.displayName || null, T !== null ? T : e(i.type) || "Memo";
|
|
85
|
+
var R = i.render;
|
|
86
|
+
return i = i.displayName, i || (i = R.displayName || R.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
89
87
|
case Ae:
|
|
90
|
-
|
|
88
|
+
return R = i.displayName || null, R !== null ? R : e(i.type) || "Memo";
|
|
89
|
+
case _e:
|
|
90
|
+
R = i._payload, i = i._init;
|
|
91
91
|
try {
|
|
92
|
-
return e(i(
|
|
92
|
+
return e(i(R));
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -101,17 +101,17 @@ function Nr() {
|
|
|
101
101
|
function r(i) {
|
|
102
102
|
try {
|
|
103
103
|
t(i);
|
|
104
|
-
var
|
|
104
|
+
var R = !1;
|
|
105
105
|
} catch {
|
|
106
|
-
|
|
106
|
+
R = !0;
|
|
107
107
|
}
|
|
108
|
-
if (
|
|
109
|
-
|
|
110
|
-
var
|
|
111
|
-
return
|
|
112
|
-
|
|
108
|
+
if (R) {
|
|
109
|
+
R = console;
|
|
110
|
+
var A = R.error, M = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
111
|
+
return A.call(
|
|
112
|
+
R,
|
|
113
113
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
114
|
-
|
|
114
|
+
M
|
|
115
115
|
), t(i);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -119,7 +119,7 @@ function Nr() {
|
|
|
119
119
|
}
|
|
120
120
|
function o() {
|
|
121
121
|
if (fe === 0) {
|
|
122
|
-
Fe = console.log, Ve = console.info, We = console.warn, Be = console.error,
|
|
122
|
+
Fe = console.log, Ve = console.info, We = console.warn, Be = console.error, Xe = console.group, Ge = console.groupCollapsed, He = console.groupEnd;
|
|
123
123
|
var i = {
|
|
124
124
|
configurable: !0,
|
|
125
125
|
enumerable: !0,
|
|
@@ -146,9 +146,9 @@ function Nr() {
|
|
|
146
146
|
info: ie({}, i, { value: Ve }),
|
|
147
147
|
warn: ie({}, i, { value: We }),
|
|
148
148
|
error: ie({}, i, { value: Be }),
|
|
149
|
-
group: ie({}, i, { value:
|
|
150
|
-
groupCollapsed: ie({}, i, { value:
|
|
151
|
-
groupEnd: ie({}, i, { value:
|
|
149
|
+
group: ie({}, i, { value: Xe }),
|
|
150
|
+
groupCollapsed: ie({}, i, { value: Ge }),
|
|
151
|
+
groupEnd: ie({}, i, { value: He })
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
0 > fe && console.error(
|
|
@@ -156,29 +156,29 @@ function Nr() {
|
|
|
156
156
|
);
|
|
157
157
|
}
|
|
158
158
|
function s(i) {
|
|
159
|
-
if (
|
|
159
|
+
if (_ === void 0)
|
|
160
160
|
try {
|
|
161
161
|
throw Error();
|
|
162
|
-
} catch (
|
|
163
|
-
var
|
|
164
|
-
|
|
165
|
-
at`) ? " (<anonymous>)" : -1 <
|
|
162
|
+
} catch (A) {
|
|
163
|
+
var R = A.stack.trim().match(/\n( *(at )?)/);
|
|
164
|
+
_ = R && R[1] || "", ve = -1 < A.stack.indexOf(`
|
|
165
|
+
at`) ? " (<anonymous>)" : -1 < A.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
166
166
|
}
|
|
167
167
|
return `
|
|
168
|
-
` +
|
|
169
|
-
}
|
|
170
|
-
function c(i,
|
|
171
|
-
if (!i ||
|
|
172
|
-
var
|
|
173
|
-
if (
|
|
174
|
-
|
|
175
|
-
var
|
|
176
|
-
|
|
168
|
+
` + _ + i + ve;
|
|
169
|
+
}
|
|
170
|
+
function c(i, R) {
|
|
171
|
+
if (!i || ue) return "";
|
|
172
|
+
var A = Ee.get(i);
|
|
173
|
+
if (A !== void 0) return A;
|
|
174
|
+
ue = !0, A = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
175
|
+
var M = null;
|
|
176
|
+
M = oe.H, oe.H = null, o();
|
|
177
177
|
try {
|
|
178
|
-
var
|
|
178
|
+
var X = {
|
|
179
179
|
DetermineComponentFrameRoot: function() {
|
|
180
180
|
try {
|
|
181
|
-
if (
|
|
181
|
+
if (R) {
|
|
182
182
|
var de = function() {
|
|
183
183
|
throw Error();
|
|
184
184
|
};
|
|
@@ -190,14 +190,14 @@ function Nr() {
|
|
|
190
190
|
try {
|
|
191
191
|
Reflect.construct(de, []);
|
|
192
192
|
} catch (se) {
|
|
193
|
-
var
|
|
193
|
+
var qe = se;
|
|
194
194
|
}
|
|
195
195
|
Reflect.construct(i, [], de);
|
|
196
196
|
} else {
|
|
197
197
|
try {
|
|
198
198
|
de.call();
|
|
199
199
|
} catch (se) {
|
|
200
|
-
|
|
200
|
+
qe = se;
|
|
201
201
|
}
|
|
202
202
|
i.call(de.prototype);
|
|
203
203
|
}
|
|
@@ -205,32 +205,32 @@ function Nr() {
|
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
207
|
} catch (se) {
|
|
208
|
-
|
|
208
|
+
qe = se;
|
|
209
209
|
}
|
|
210
210
|
(de = i()) && typeof de.catch == "function" && de.catch(function() {
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
} catch (se) {
|
|
214
|
-
if (se &&
|
|
215
|
-
return [se.stack,
|
|
214
|
+
if (se && qe && typeof se.stack == "string")
|
|
215
|
+
return [se.stack, qe.stack];
|
|
216
216
|
}
|
|
217
217
|
return [null, null];
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
|
-
|
|
220
|
+
X.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
221
221
|
var D = Object.getOwnPropertyDescriptor(
|
|
222
|
-
|
|
222
|
+
X.DetermineComponentFrameRoot,
|
|
223
223
|
"name"
|
|
224
224
|
);
|
|
225
225
|
D && D.configurable && Object.defineProperty(
|
|
226
|
-
|
|
226
|
+
X.DetermineComponentFrameRoot,
|
|
227
227
|
"name",
|
|
228
228
|
{ value: "DetermineComponentFrameRoot" }
|
|
229
229
|
);
|
|
230
|
-
var P =
|
|
231
|
-
if (ae &&
|
|
230
|
+
var P = X.DetermineComponentFrameRoot(), ae = P[0], ge = P[1];
|
|
231
|
+
if (ae && ge) {
|
|
232
232
|
var q = ae.split(`
|
|
233
|
-
`), me =
|
|
233
|
+
`), me = ge.split(`
|
|
234
234
|
`);
|
|
235
235
|
for (P = D = 0; D < q.length && !q[D].includes(
|
|
236
236
|
"DetermineComponentFrameRoot"
|
|
@@ -248,90 +248,90 @@ function Nr() {
|
|
|
248
248
|
if (D !== 1 || P !== 1)
|
|
249
249
|
do
|
|
250
250
|
if (D--, P--, 0 > P || q[D] !== me[P]) {
|
|
251
|
-
var
|
|
251
|
+
var Ne = `
|
|
252
252
|
` + q[D].replace(
|
|
253
253
|
" at new ",
|
|
254
254
|
" at "
|
|
255
255
|
);
|
|
256
|
-
return i.displayName &&
|
|
256
|
+
return i.displayName && Ne.includes("<anonymous>") && (Ne = Ne.replace("<anonymous>", i.displayName)), typeof i == "function" && Ee.set(i, Ne), Ne;
|
|
257
257
|
}
|
|
258
258
|
while (1 <= D && 0 <= P);
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
} finally {
|
|
263
|
-
|
|
263
|
+
ue = !1, oe.H = M, a(), Error.prepareStackTrace = A;
|
|
264
264
|
}
|
|
265
|
-
return q = (q = i ? i.displayName || i.name : "") ? s(q) : "", typeof i == "function" &&
|
|
265
|
+
return q = (q = i ? i.displayName || i.name : "") ? s(q) : "", typeof i == "function" && Ee.set(i, q), q;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function u(i) {
|
|
268
268
|
if (i == null) return "";
|
|
269
269
|
if (typeof i == "function") {
|
|
270
|
-
var
|
|
270
|
+
var R = i.prototype;
|
|
271
271
|
return c(
|
|
272
272
|
i,
|
|
273
|
-
!(!
|
|
273
|
+
!(!R || !R.isReactComponent)
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
276
|
if (typeof i == "string") return s(i);
|
|
277
277
|
switch (i) {
|
|
278
278
|
case ee:
|
|
279
279
|
return s("Suspense");
|
|
280
|
-
case
|
|
280
|
+
case le:
|
|
281
281
|
return s("SuspenseList");
|
|
282
282
|
}
|
|
283
283
|
if (typeof i == "object")
|
|
284
284
|
switch (i.$$typeof) {
|
|
285
285
|
case V:
|
|
286
286
|
return i = c(i.render, !1), i;
|
|
287
|
-
case Re:
|
|
288
|
-
return d(i.type);
|
|
289
287
|
case Ae:
|
|
290
|
-
|
|
288
|
+
return u(i.type);
|
|
289
|
+
case _e:
|
|
290
|
+
R = i._payload, i = i._init;
|
|
291
291
|
try {
|
|
292
|
-
return
|
|
292
|
+
return u(i(R));
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
return "";
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function h() {
|
|
299
299
|
var i = oe.A;
|
|
300
300
|
return i === null ? null : i.getOwner();
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
if (
|
|
304
|
-
var
|
|
305
|
-
if (
|
|
302
|
+
function p(i) {
|
|
303
|
+
if (Ce.call(i, "key")) {
|
|
304
|
+
var R = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
305
|
+
if (R && R.isReactWarning) return !1;
|
|
306
306
|
}
|
|
307
307
|
return i.key !== void 0;
|
|
308
308
|
}
|
|
309
|
-
function g(i,
|
|
310
|
-
function
|
|
311
|
-
|
|
309
|
+
function g(i, R) {
|
|
310
|
+
function A() {
|
|
311
|
+
Rt || (Rt = !0, console.error(
|
|
312
312
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
313
|
-
|
|
313
|
+
R
|
|
314
314
|
));
|
|
315
315
|
}
|
|
316
|
-
|
|
317
|
-
get:
|
|
316
|
+
A.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
317
|
+
get: A,
|
|
318
318
|
configurable: !0
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
function b() {
|
|
322
322
|
var i = e(this.type);
|
|
323
|
-
return
|
|
323
|
+
return At[i] || (At[i] = !0, console.error(
|
|
324
324
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
325
325
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
return
|
|
329
|
-
$$typeof:
|
|
327
|
+
function T(i, R, A, M, X, D) {
|
|
328
|
+
return A = D.ref, i = {
|
|
329
|
+
$$typeof: S,
|
|
330
330
|
type: i,
|
|
331
|
-
key:
|
|
331
|
+
key: R,
|
|
332
332
|
props: D,
|
|
333
|
-
_owner:
|
|
334
|
-
}, (
|
|
333
|
+
_owner: X
|
|
334
|
+
}, (A !== void 0 ? A : null) !== null ? Object.defineProperty(i, "ref", {
|
|
335
335
|
enumerable: !1,
|
|
336
336
|
get: b
|
|
337
337
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
@@ -346,14 +346,14 @@ function Nr() {
|
|
|
346
346
|
value: null
|
|
347
347
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
if (typeof i == "string" || typeof i == "function" || i ===
|
|
351
|
-
var P =
|
|
349
|
+
function x(i, R, A, M, X, D) {
|
|
350
|
+
if (typeof i == "string" || typeof i == "function" || i === w || i === F || i === C || i === ee || i === le || i === ft || typeof i == "object" && i !== null && (i.$$typeof === _e || i.$$typeof === Ae || i.$$typeof === B || i.$$typeof === U || i.$$typeof === V || i.$$typeof === mt || i.getModuleId !== void 0)) {
|
|
351
|
+
var P = R.children;
|
|
352
352
|
if (P !== void 0)
|
|
353
|
-
if (
|
|
354
|
-
if (
|
|
355
|
-
for (
|
|
356
|
-
y(P[
|
|
353
|
+
if (M)
|
|
354
|
+
if (Pe(P)) {
|
|
355
|
+
for (M = 0; M < P.length; M++)
|
|
356
|
+
y(P[M], i);
|
|
357
357
|
Object.freeze && Object.freeze(P);
|
|
358
358
|
} else
|
|
359
359
|
console.error(
|
|
@@ -361,107 +361,107 @@ function Nr() {
|
|
|
361
361
|
);
|
|
362
362
|
else y(P, i);
|
|
363
363
|
} else
|
|
364
|
-
P = "", (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), i === null ?
|
|
364
|
+
P = "", (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), i === null ? M = "null" : Pe(i) ? M = "array" : i !== void 0 && i.$$typeof === S ? (M = "<" + (e(i.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : M = typeof i, console.error(
|
|
365
365
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
366
|
-
|
|
366
|
+
M,
|
|
367
367
|
P
|
|
368
368
|
);
|
|
369
|
-
if (
|
|
369
|
+
if (Ce.call(R, "key")) {
|
|
370
370
|
P = e(i);
|
|
371
|
-
var ae = Object.keys(
|
|
371
|
+
var ae = Object.keys(R).filter(function(q) {
|
|
372
372
|
return q !== "key";
|
|
373
373
|
});
|
|
374
|
-
|
|
374
|
+
M = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}", _t[P + M] || (ae = 0 < ae.length ? "{" + ae.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
375
375
|
`A props object containing a "key" prop is being spread into JSX:
|
|
376
376
|
let props = %s;
|
|
377
377
|
<%s {...props} />
|
|
378
378
|
React keys must be passed directly to JSX without using spread:
|
|
379
379
|
let props = %s;
|
|
380
380
|
<%s key={someKey} {...props} />`,
|
|
381
|
-
|
|
381
|
+
M,
|
|
382
382
|
P,
|
|
383
383
|
ae,
|
|
384
384
|
P
|
|
385
|
-
),
|
|
385
|
+
), _t[P + M] = !0);
|
|
386
386
|
}
|
|
387
|
-
if (P = null,
|
|
388
|
-
|
|
389
|
-
for (var
|
|
390
|
-
|
|
391
|
-
} else
|
|
387
|
+
if (P = null, A !== void 0 && (r(A), P = "" + A), p(R) && (r(R.key), P = "" + R.key), "key" in R) {
|
|
388
|
+
A = {};
|
|
389
|
+
for (var ge in R)
|
|
390
|
+
ge !== "key" && (A[ge] = R[ge]);
|
|
391
|
+
} else A = R;
|
|
392
392
|
return P && g(
|
|
393
|
-
|
|
393
|
+
A,
|
|
394
394
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
395
|
-
),
|
|
396
|
-
}
|
|
397
|
-
function y(i,
|
|
398
|
-
if (typeof i == "object" && i && i.$$typeof !==
|
|
399
|
-
if (
|
|
400
|
-
for (var
|
|
401
|
-
var
|
|
402
|
-
|
|
395
|
+
), T(i, P, D, X, h(), A);
|
|
396
|
+
}
|
|
397
|
+
function y(i, R) {
|
|
398
|
+
if (typeof i == "object" && i && i.$$typeof !== mr) {
|
|
399
|
+
if (Pe(i))
|
|
400
|
+
for (var A = 0; A < i.length; A++) {
|
|
401
|
+
var M = i[A];
|
|
402
|
+
l(M) && d(M, R);
|
|
403
403
|
}
|
|
404
|
-
else if (
|
|
404
|
+
else if (l(i))
|
|
405
405
|
i._store && (i._store.validated = 1);
|
|
406
|
-
else if (i === null || typeof i != "object" ?
|
|
407
|
-
for (; !(i =
|
|
408
|
-
|
|
406
|
+
else if (i === null || typeof i != "object" ? A = null : (A = Ye && i[Ye] || i["@@iterator"], A = typeof A == "function" ? A : null), typeof A == "function" && A !== i.entries && (A = A.call(i), A !== i))
|
|
407
|
+
for (; !(i = A.next()).done; )
|
|
408
|
+
l(i.value) && d(i.value, R);
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
return typeof i == "object" && i !== null && i.$$typeof ===
|
|
413
|
-
}
|
|
414
|
-
function
|
|
415
|
-
if (i._store && !i._store.validated && i.key == null && (i._store.validated = 1,
|
|
416
|
-
|
|
417
|
-
var
|
|
418
|
-
i && i._owner != null && i._owner !==
|
|
419
|
-
var
|
|
411
|
+
function l(i) {
|
|
412
|
+
return typeof i == "object" && i !== null && i.$$typeof === S;
|
|
413
|
+
}
|
|
414
|
+
function d(i, R) {
|
|
415
|
+
if (i._store && !i._store.validated && i.key == null && (i._store.validated = 1, R = m(R), !Ct[R])) {
|
|
416
|
+
Ct[R] = !0;
|
|
417
|
+
var A = "";
|
|
418
|
+
i && i._owner != null && i._owner !== h() && (A = null, typeof i._owner.tag == "number" ? A = e(i._owner.type) : typeof i._owner.name == "string" && (A = i._owner.name), A = " It was passed a child from " + A + ".");
|
|
419
|
+
var M = oe.getCurrentStack;
|
|
420
420
|
oe.getCurrentStack = function() {
|
|
421
|
-
var
|
|
422
|
-
return
|
|
421
|
+
var X = u(i.type);
|
|
422
|
+
return M && (X += M() || ""), X;
|
|
423
423
|
}, console.error(
|
|
424
424
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
), oe.getCurrentStack =
|
|
425
|
+
R,
|
|
426
|
+
A
|
|
427
|
+
), oe.getCurrentStack = M;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
var
|
|
432
|
-
return
|
|
430
|
+
function m(i) {
|
|
431
|
+
var R = "", A = h();
|
|
432
|
+
return A && (A = e(A.type)) && (R = `
|
|
433
433
|
|
|
434
|
-
Check the render method of \`` +
|
|
434
|
+
Check the render method of \`` + A + "`."), R || (i = e(i)) && (R = `
|
|
435
435
|
|
|
436
|
-
Check the top-level render call using <` + i + ">."),
|
|
436
|
+
Check the top-level render call using <` + i + ">."), R;
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var v = pr, S = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), U = Symbol.for("react.consumer"), B = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), le = Symbol.for("react.suspense_list"), Ae = Symbol.for("react.memo"), _e = Symbol.for("react.lazy"), ft = Symbol.for("react.offscreen"), Ye = Symbol.iterator, ze = Symbol.for("react.client.reference"), oe = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, ie = Object.assign, mt = Symbol.for("react.client.reference"), Pe = Array.isArray, fe = 0, Fe, Ve, We, Be, Xe, Ge, He;
|
|
439
439
|
n.__reactDisabledLog = !0;
|
|
440
|
-
var
|
|
441
|
-
|
|
442
|
-
return
|
|
443
|
-
},
|
|
444
|
-
return
|
|
440
|
+
var _, ve, ue = !1, Ee = new (typeof WeakMap == "function" ? WeakMap : Map)(), mr = Symbol.for("react.client.reference"), Rt, At = {}, _t = {}, Ct = {};
|
|
441
|
+
Oe.Fragment = w, Oe.jsx = function(i, R, A, M, X) {
|
|
442
|
+
return x(i, R, A, !1, M, X);
|
|
443
|
+
}, Oe.jsxs = function(i, R, A, M, X) {
|
|
444
|
+
return x(i, R, A, !0, M, X);
|
|
445
445
|
};
|
|
446
|
-
}()),
|
|
446
|
+
}()), Oe;
|
|
447
447
|
}
|
|
448
448
|
var Ot;
|
|
449
|
-
function
|
|
450
|
-
return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? Je.exports =
|
|
449
|
+
function kr() {
|
|
450
|
+
return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? Je.exports = Mr() : Je.exports = Or()), Je.exports;
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
function
|
|
452
|
+
var Ie = kr();
|
|
453
|
+
function Lr(e) {
|
|
454
454
|
if (e.sheet)
|
|
455
455
|
return e.sheet;
|
|
456
456
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
457
457
|
if (document.styleSheets[t].ownerNode === e)
|
|
458
458
|
return document.styleSheets[t];
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Ir(e) {
|
|
461
461
|
var t = document.createElement("style");
|
|
462
462
|
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
463
463
|
}
|
|
464
|
-
var
|
|
464
|
+
var $r = /* @__PURE__ */ function() {
|
|
465
465
|
function e(r) {
|
|
466
466
|
var n = this;
|
|
467
467
|
this._insertTag = function(o) {
|
|
@@ -473,10 +473,10 @@ var kr = /* @__PURE__ */ function() {
|
|
|
473
473
|
return t.hydrate = function(n) {
|
|
474
474
|
n.forEach(this._insertTag);
|
|
475
475
|
}, t.insert = function(n) {
|
|
476
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
476
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ir(this));
|
|
477
477
|
var o = this.tags[this.tags.length - 1];
|
|
478
478
|
if (this.isSpeedy) {
|
|
479
|
-
var a =
|
|
479
|
+
var a = Lr(o);
|
|
480
480
|
try {
|
|
481
481
|
a.insertRule(n, a.cssRules.length);
|
|
482
482
|
} catch {
|
|
@@ -490,20 +490,20 @@ var kr = /* @__PURE__ */ function() {
|
|
|
490
490
|
return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
|
|
491
491
|
}), this.tags = [], this.ctr = 0;
|
|
492
492
|
}, e;
|
|
493
|
-
}(),
|
|
494
|
-
function
|
|
493
|
+
}(), H = "-ms-", it = "-moz-", O = "-webkit-", Jt = "comm", xt = "rule", St = "decl", Ur = "@import", Zt = "@keyframes", Dr = "@layer", jr = Math.abs, st = String.fromCharCode, Yr = Object.assign;
|
|
494
|
+
function zr(e, t) {
|
|
495
495
|
return W(e, 0) ^ 45 ? (((t << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Qt(e) {
|
|
498
498
|
return e.trim();
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Fr(e, t) {
|
|
501
501
|
return (e = t.exec(e)) ? e[0] : e;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function k(e, t, r) {
|
|
504
504
|
return e.replace(t, r);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Et(e, t) {
|
|
507
507
|
return e.indexOf(t);
|
|
508
508
|
}
|
|
509
509
|
function W(e, t) {
|
|
@@ -515,39 +515,39 @@ function $e(e, t, r) {
|
|
|
515
515
|
function te(e) {
|
|
516
516
|
return e.length;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Tt(e) {
|
|
519
519
|
return e.length;
|
|
520
520
|
}
|
|
521
521
|
function Ze(e, t) {
|
|
522
522
|
return t.push(e), e;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Vr(e, t) {
|
|
525
525
|
return e.map(t).join("");
|
|
526
526
|
}
|
|
527
|
-
var
|
|
528
|
-
function
|
|
529
|
-
return { value: e, root: t, parent: r, type: n, props: o, children: a, line:
|
|
527
|
+
var ct = 1, Se = 1, er = 0, Z = 0, Y = 0, we = "";
|
|
528
|
+
function lt(e, t, r, n, o, a, s) {
|
|
529
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: ct, column: Se, length: s, return: "" };
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
return
|
|
533
|
-
}
|
|
534
|
-
function Vr() {
|
|
535
|
-
return j;
|
|
531
|
+
function ke(e, t) {
|
|
532
|
+
return Yr(lt("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
536
533
|
}
|
|
537
534
|
function Wr() {
|
|
538
|
-
return
|
|
535
|
+
return Y;
|
|
536
|
+
}
|
|
537
|
+
function Br() {
|
|
538
|
+
return Y = Z > 0 ? W(we, --Z) : 0, Se--, Y === 10 && (Se = 1, ct--), Y;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
return
|
|
540
|
+
function Q() {
|
|
541
|
+
return Y = Z < er ? W(we, Z++) : 0, Se++, Y === 10 && (Se = 1, ct++), Y;
|
|
542
542
|
}
|
|
543
543
|
function ne() {
|
|
544
|
-
return W(
|
|
544
|
+
return W(we, Z);
|
|
545
545
|
}
|
|
546
546
|
function et() {
|
|
547
|
-
return
|
|
547
|
+
return Z;
|
|
548
548
|
}
|
|
549
549
|
function je(e, t) {
|
|
550
|
-
return $e(
|
|
550
|
+
return $e(we, e, t);
|
|
551
551
|
}
|
|
552
552
|
function Ue(e) {
|
|
553
553
|
switch (e) {
|
|
@@ -587,82 +587,82 @@ function Ue(e) {
|
|
|
587
587
|
}
|
|
588
588
|
return 0;
|
|
589
589
|
}
|
|
590
|
-
function er(e) {
|
|
591
|
-
return st = ye = 1, Qt = te(Te = e), J = 0, [];
|
|
592
|
-
}
|
|
593
590
|
function tr(e) {
|
|
594
|
-
return
|
|
591
|
+
return ct = Se = 1, er = te(we = e), Z = 0, [];
|
|
592
|
+
}
|
|
593
|
+
function rr(e) {
|
|
594
|
+
return we = "", e;
|
|
595
595
|
}
|
|
596
596
|
function tt(e) {
|
|
597
|
-
return
|
|
597
|
+
return Qt(je(Z - 1, gt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
for (; (
|
|
601
|
-
|
|
602
|
-
return Ue(e) > 2 || Ue(
|
|
599
|
+
function Xr(e) {
|
|
600
|
+
for (; (Y = ne()) && Y < 33; )
|
|
601
|
+
Q();
|
|
602
|
+
return Ue(e) > 2 || Ue(Y) > 3 ? "" : " ";
|
|
603
603
|
}
|
|
604
604
|
function Gr(e, t) {
|
|
605
|
-
for (; --t &&
|
|
605
|
+
for (; --t && Q() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97); )
|
|
606
606
|
;
|
|
607
|
-
return je(e, et() + (t < 6 && ne() == 32 &&
|
|
607
|
+
return je(e, et() + (t < 6 && ne() == 32 && Q() == 32));
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
for (;
|
|
611
|
-
switch (
|
|
609
|
+
function gt(e) {
|
|
610
|
+
for (; Q(); )
|
|
611
|
+
switch (Y) {
|
|
612
612
|
// ] ) " '
|
|
613
613
|
case e:
|
|
614
|
-
return
|
|
614
|
+
return Z;
|
|
615
615
|
// " '
|
|
616
616
|
case 34:
|
|
617
617
|
case 39:
|
|
618
|
-
e !== 34 && e !== 39 &&
|
|
618
|
+
e !== 34 && e !== 39 && gt(Y);
|
|
619
619
|
break;
|
|
620
620
|
// (
|
|
621
621
|
case 40:
|
|
622
|
-
e === 41 &&
|
|
622
|
+
e === 41 && gt(e);
|
|
623
623
|
break;
|
|
624
624
|
// \
|
|
625
625
|
case 92:
|
|
626
|
-
|
|
626
|
+
Q();
|
|
627
627
|
break;
|
|
628
628
|
}
|
|
629
|
-
return
|
|
629
|
+
return Z;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
for (;
|
|
633
|
-
if (e +
|
|
631
|
+
function Hr(e, t) {
|
|
632
|
+
for (; Q() && e + Y !== 57; )
|
|
633
|
+
if (e + Y === 84 && ne() === 47)
|
|
634
634
|
break;
|
|
635
|
-
return "/*" + je(t,
|
|
635
|
+
return "/*" + je(t, Z - 1) + "*" + st(e === 47 ? e : Q());
|
|
636
636
|
}
|
|
637
637
|
function qr(e) {
|
|
638
638
|
for (; !Ue(ne()); )
|
|
639
|
-
|
|
640
|
-
return je(e,
|
|
639
|
+
Q();
|
|
640
|
+
return je(e, Z);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
return
|
|
642
|
+
function Kr(e) {
|
|
643
|
+
return rr(rt("", null, null, null, [""], e = tr(e), 0, [0], e));
|
|
644
644
|
}
|
|
645
|
-
function rt(e, t, r, n, o, a, s, c,
|
|
646
|
-
for (var
|
|
647
|
-
switch (
|
|
645
|
+
function rt(e, t, r, n, o, a, s, c, u) {
|
|
646
|
+
for (var h = 0, p = 0, g = s, b = 0, T = 0, x = 0, y = 1, l = 1, d = 1, m = 0, v = "", S = o, f = a, w = n, C = v; l; )
|
|
647
|
+
switch (x = m, m = Q()) {
|
|
648
648
|
// (
|
|
649
649
|
case 40:
|
|
650
|
-
if (
|
|
651
|
-
|
|
650
|
+
if (x != 108 && W(C, g - 1) == 58) {
|
|
651
|
+
Et(C += k(tt(m), "&", "&\f"), "&\f") != -1 && (d = -1);
|
|
652
652
|
break;
|
|
653
653
|
}
|
|
654
654
|
// " ' [
|
|
655
655
|
case 34:
|
|
656
656
|
case 39:
|
|
657
657
|
case 91:
|
|
658
|
-
C += tt(
|
|
658
|
+
C += tt(m);
|
|
659
659
|
break;
|
|
660
660
|
// \t \n \r \s
|
|
661
661
|
case 9:
|
|
662
662
|
case 10:
|
|
663
663
|
case 13:
|
|
664
664
|
case 32:
|
|
665
|
-
C +=
|
|
665
|
+
C += Xr(x);
|
|
666
666
|
break;
|
|
667
667
|
// \
|
|
668
668
|
case 92:
|
|
@@ -673,7 +673,7 @@ function rt(e, t, r, n, o, a, s, c, d) {
|
|
|
673
673
|
switch (ne()) {
|
|
674
674
|
case 42:
|
|
675
675
|
case 47:
|
|
676
|
-
Ze(
|
|
676
|
+
Ze(Jr(Hr(Q(), et()), t, r), u);
|
|
677
677
|
break;
|
|
678
678
|
default:
|
|
679
679
|
C += "/";
|
|
@@ -681,28 +681,28 @@ function rt(e, t, r, n, o, a, s, c, d) {
|
|
|
681
681
|
break;
|
|
682
682
|
// {
|
|
683
683
|
case 123 * y:
|
|
684
|
-
c[
|
|
684
|
+
c[h++] = te(C) * d;
|
|
685
685
|
// } ; \0
|
|
686
686
|
case 125 * y:
|
|
687
687
|
case 59:
|
|
688
688
|
case 0:
|
|
689
|
-
switch (
|
|
689
|
+
switch (m) {
|
|
690
690
|
// \0 }
|
|
691
691
|
case 0:
|
|
692
692
|
case 125:
|
|
693
|
-
|
|
693
|
+
l = 0;
|
|
694
694
|
// ;
|
|
695
|
-
case 59 +
|
|
696
|
-
|
|
695
|
+
case 59 + p:
|
|
696
|
+
d == -1 && (C = k(C, /\f/g, "")), T > 0 && te(C) - g && Ze(T > 32 ? Lt(C + ";", n, r, g - 1) : Lt(k(C, " ", "") + ";", n, r, g - 2), u);
|
|
697
697
|
break;
|
|
698
698
|
// @ ;
|
|
699
699
|
case 59:
|
|
700
700
|
C += ";";
|
|
701
701
|
// { rule/at-rule
|
|
702
702
|
default:
|
|
703
|
-
if (Ze(
|
|
704
|
-
if (
|
|
705
|
-
rt(C, t,
|
|
703
|
+
if (Ze(w = kt(C, t, r, h, p, o, c, v, S = [], f = [], g), a), m === 123)
|
|
704
|
+
if (p === 0)
|
|
705
|
+
rt(C, t, w, w, S, a, g, c, f);
|
|
706
706
|
else
|
|
707
707
|
switch (b === 99 && W(C, 3) === 110 ? 100 : b) {
|
|
708
708
|
// d l m s
|
|
@@ -710,106 +710,106 @@ function rt(e, t, r, n, o, a, s, c, d) {
|
|
|
710
710
|
case 108:
|
|
711
711
|
case 109:
|
|
712
712
|
case 115:
|
|
713
|
-
rt(e,
|
|
713
|
+
rt(e, w, w, n && Ze(kt(e, w, w, 0, 0, o, c, v, o, S = [], g), f), o, f, g, c, n ? S : f);
|
|
714
714
|
break;
|
|
715
715
|
default:
|
|
716
|
-
rt(C,
|
|
716
|
+
rt(C, w, w, w, [""], f, 0, c, f);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
|
|
719
|
+
h = p = T = 0, y = d = 1, v = C = "", g = s;
|
|
720
720
|
break;
|
|
721
721
|
// :
|
|
722
722
|
case 58:
|
|
723
|
-
g = 1 + te(C),
|
|
723
|
+
g = 1 + te(C), T = x;
|
|
724
724
|
default:
|
|
725
725
|
if (y < 1) {
|
|
726
|
-
if (
|
|
726
|
+
if (m == 123)
|
|
727
727
|
--y;
|
|
728
|
-
else if (
|
|
728
|
+
else if (m == 125 && y++ == 0 && Br() == 125)
|
|
729
729
|
continue;
|
|
730
730
|
}
|
|
731
|
-
switch (C +=
|
|
731
|
+
switch (C += st(m), m * y) {
|
|
732
732
|
// &
|
|
733
733
|
case 38:
|
|
734
|
-
|
|
734
|
+
d = p > 0 ? 1 : (C += "\f", -1);
|
|
735
735
|
break;
|
|
736
736
|
// ,
|
|
737
737
|
case 44:
|
|
738
|
-
c[
|
|
738
|
+
c[h++] = (te(C) - 1) * d, d = 1;
|
|
739
739
|
break;
|
|
740
740
|
// @
|
|
741
741
|
case 64:
|
|
742
|
-
ne() === 45 && (C += tt(
|
|
742
|
+
ne() === 45 && (C += tt(Q())), b = ne(), p = g = te(v = C += qr(et())), m++;
|
|
743
743
|
break;
|
|
744
744
|
// -
|
|
745
745
|
case 45:
|
|
746
|
-
|
|
746
|
+
x === 45 && te(C) == 2 && (y = 0);
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
return a;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
for (var g = o - 1, b = o === 0 ? a : [""],
|
|
753
|
-
for (var
|
|
754
|
-
(
|
|
755
|
-
return
|
|
751
|
+
function kt(e, t, r, n, o, a, s, c, u, h, p) {
|
|
752
|
+
for (var g = o - 1, b = o === 0 ? a : [""], T = Tt(b), x = 0, y = 0, l = 0; x < n; ++x)
|
|
753
|
+
for (var d = 0, m = $e(e, g + 1, g = jr(y = s[x])), v = e; d < T; ++d)
|
|
754
|
+
(v = Qt(y > 0 ? b[d] + " " + m : k(m, /&\f/g, b[d]))) && (u[l++] = v);
|
|
755
|
+
return lt(e, t, r, o === 0 ? xt : c, u, h, p);
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
return
|
|
757
|
+
function Jr(e, t, r) {
|
|
758
|
+
return lt(e, t, r, Jt, st(Wr()), $e(e, 2, -2), 0);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
760
|
+
function Lt(e, t, r, n) {
|
|
761
|
+
return lt(e, t, r, St, $e(e, 0, n), $e(e, n + 1, -1), n);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
for (var r = "", n =
|
|
763
|
+
function be(e, t) {
|
|
764
|
+
for (var r = "", n = Tt(e), o = 0; o < n; o++)
|
|
765
765
|
r += t(e[o], o, e, t) || "";
|
|
766
766
|
return r;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Zr(e, t, r, n) {
|
|
769
769
|
switch (e.type) {
|
|
770
|
-
case
|
|
770
|
+
case Dr:
|
|
771
771
|
if (e.children.length) break;
|
|
772
|
-
case
|
|
773
|
-
case
|
|
772
|
+
case Ur:
|
|
773
|
+
case St:
|
|
774
774
|
return e.return = e.return || e.value;
|
|
775
|
-
case Kt:
|
|
776
|
-
return "";
|
|
777
775
|
case Jt:
|
|
778
|
-
return
|
|
779
|
-
case
|
|
776
|
+
return "";
|
|
777
|
+
case Zt:
|
|
778
|
+
return e.return = e.value + "{" + be(e.children, n) + "}";
|
|
779
|
+
case xt:
|
|
780
780
|
e.value = e.props.join(",");
|
|
781
781
|
}
|
|
782
|
-
return te(r =
|
|
782
|
+
return te(r = be(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
var t =
|
|
784
|
+
function Qr(e) {
|
|
785
|
+
var t = Tt(e);
|
|
786
786
|
return function(r, n, o, a) {
|
|
787
787
|
for (var s = "", c = 0; c < t; c++)
|
|
788
788
|
s += e[c](r, n, o, a) || "";
|
|
789
789
|
return s;
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function en(e) {
|
|
793
793
|
return function(t) {
|
|
794
794
|
t.root || (t = t.return) && e(t);
|
|
795
795
|
};
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function tn(e) {
|
|
798
798
|
var t = /* @__PURE__ */ Object.create(null);
|
|
799
799
|
return function(r) {
|
|
800
800
|
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
|
-
var
|
|
803
|
+
var rn = function(t, r, n) {
|
|
804
804
|
for (var o = 0, a = 0; o = a, a = ne(), o === 38 && a === 12 && (r[n] = 1), !Ue(a); )
|
|
805
|
-
|
|
806
|
-
return je(t,
|
|
807
|
-
},
|
|
805
|
+
Q();
|
|
806
|
+
return je(t, Z);
|
|
807
|
+
}, nn = function(t, r) {
|
|
808
808
|
var n = -1, o = 44;
|
|
809
809
|
do
|
|
810
810
|
switch (Ue(o)) {
|
|
811
811
|
case 0:
|
|
812
|
-
o === 38 && ne() === 12 && (r[n] = 1), t[n] +=
|
|
812
|
+
o === 38 && ne() === 12 && (r[n] = 1), t[n] += rn(Z - 1, r, n);
|
|
813
813
|
break;
|
|
814
814
|
case 2:
|
|
815
815
|
t[n] += tt(o);
|
|
@@ -821,13 +821,13 @@ var tn = function(t, r, n) {
|
|
|
821
821
|
}
|
|
822
822
|
// fallthrough
|
|
823
823
|
default:
|
|
824
|
-
t[n] +=
|
|
824
|
+
t[n] += st(o);
|
|
825
825
|
}
|
|
826
|
-
while (o =
|
|
826
|
+
while (o = Q());
|
|
827
827
|
return t;
|
|
828
|
-
},
|
|
829
|
-
return
|
|
830
|
-
}, It = /* @__PURE__ */ new WeakMap(),
|
|
828
|
+
}, on = function(t, r) {
|
|
829
|
+
return rr(nn(tr(t), r));
|
|
830
|
+
}, It = /* @__PURE__ */ new WeakMap(), an = function(t) {
|
|
831
831
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
832
832
|
// negative .length indicates that this rule has been already prefixed
|
|
833
833
|
t.length < 1)) {
|
|
@@ -835,12 +835,12 @@ var tn = function(t, r, n) {
|
|
|
835
835
|
if (n = n.parent, !n) return;
|
|
836
836
|
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !It.get(n)) && !o) {
|
|
837
837
|
It.set(t, !0);
|
|
838
|
-
for (var a = [], s =
|
|
839
|
-
for (var
|
|
840
|
-
t.props[
|
|
838
|
+
for (var a = [], s = on(r, a), c = n.props, u = 0, h = 0; u < s.length; u++)
|
|
839
|
+
for (var p = 0; p < c.length; p++, h++)
|
|
840
|
+
t.props[h] = a[u] ? s[u].replace(/&\f/g, c[p]) : c[p] + " " + s[u];
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
},
|
|
843
|
+
}, sn = function(t) {
|
|
844
844
|
if (t.type === "decl") {
|
|
845
845
|
var r = t.value;
|
|
846
846
|
// charcode for l
|
|
@@ -848,11 +848,11 @@ var tn = function(t, r, n) {
|
|
|
848
848
|
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
|
-
function
|
|
852
|
-
switch (
|
|
851
|
+
function nr(e, t) {
|
|
852
|
+
switch (zr(e, t)) {
|
|
853
853
|
// color-adjust
|
|
854
854
|
case 5103:
|
|
855
|
-
return
|
|
855
|
+
return O + "print-" + e + e;
|
|
856
856
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
857
857
|
case 5737:
|
|
858
858
|
case 4201:
|
|
@@ -882,58 +882,58 @@ function rr(e, t) {
|
|
|
882
882
|
case 5365:
|
|
883
883
|
case 5621:
|
|
884
884
|
case 3829:
|
|
885
|
-
return
|
|
885
|
+
return O + e + e;
|
|
886
886
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
887
887
|
case 5349:
|
|
888
888
|
case 4246:
|
|
889
889
|
case 4810:
|
|
890
890
|
case 6968:
|
|
891
891
|
case 2756:
|
|
892
|
-
return
|
|
892
|
+
return O + e + it + e + H + e + e;
|
|
893
893
|
// flex, flex-direction
|
|
894
894
|
case 6828:
|
|
895
895
|
case 4268:
|
|
896
|
-
return
|
|
896
|
+
return O + e + H + e + e;
|
|
897
897
|
// order
|
|
898
898
|
case 6165:
|
|
899
|
-
return
|
|
899
|
+
return O + e + H + "flex-" + e + e;
|
|
900
900
|
// align-items
|
|
901
901
|
case 5187:
|
|
902
|
-
return
|
|
902
|
+
return O + e + k(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + H + "flex-$1$2") + e;
|
|
903
903
|
// align-self
|
|
904
904
|
case 5443:
|
|
905
|
-
return
|
|
905
|
+
return O + e + H + "flex-item-" + k(e, /flex-|-self/, "") + e;
|
|
906
906
|
// align-content
|
|
907
907
|
case 4675:
|
|
908
|
-
return
|
|
908
|
+
return O + e + H + "flex-line-pack" + k(e, /align-content|flex-|-self/, "") + e;
|
|
909
909
|
// flex-shrink
|
|
910
910
|
case 5548:
|
|
911
|
-
return
|
|
911
|
+
return O + e + H + k(e, "shrink", "negative") + e;
|
|
912
912
|
// flex-basis
|
|
913
913
|
case 5292:
|
|
914
|
-
return
|
|
914
|
+
return O + e + H + k(e, "basis", "preferred-size") + e;
|
|
915
915
|
// flex-grow
|
|
916
916
|
case 6060:
|
|
917
|
-
return
|
|
917
|
+
return O + "box-" + k(e, "-grow", "") + O + e + H + k(e, "grow", "positive") + e;
|
|
918
918
|
// transition
|
|
919
919
|
case 4554:
|
|
920
|
-
return
|
|
920
|
+
return O + k(e, /([^-])(transform)/g, "$1" + O + "$2") + e;
|
|
921
921
|
// cursor
|
|
922
922
|
case 6187:
|
|
923
|
-
return
|
|
923
|
+
return k(k(k(e, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), e, "") + e;
|
|
924
924
|
// background, background-image
|
|
925
925
|
case 5495:
|
|
926
926
|
case 3959:
|
|
927
|
-
return
|
|
927
|
+
return k(e, /(image-set\([^]*)/, O + "$1$`$1");
|
|
928
928
|
// justify-content
|
|
929
929
|
case 4968:
|
|
930
|
-
return
|
|
930
|
+
return k(k(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + H + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e;
|
|
931
931
|
// (margin|padding)-inline-(start|end)
|
|
932
932
|
case 4095:
|
|
933
933
|
case 3583:
|
|
934
934
|
case 4068:
|
|
935
935
|
case 2532:
|
|
936
|
-
return
|
|
936
|
+
return k(e, /(.+)-inline(.+)/, O + "$1$2") + e;
|
|
937
937
|
// (min|max)?(width|height|inline-size|block-size)
|
|
938
938
|
case 8116:
|
|
939
939
|
case 7059:
|
|
@@ -953,10 +953,10 @@ function rr(e, t) {
|
|
|
953
953
|
if (W(e, t + 4) !== 45) break;
|
|
954
954
|
// (f)ill-available, (f)it-content
|
|
955
955
|
case 102:
|
|
956
|
-
return
|
|
956
|
+
return k(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + it + (W(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
957
957
|
// (s)tretch
|
|
958
958
|
case 115:
|
|
959
|
-
return ~
|
|
959
|
+
return ~Et(e, "stretch") ? nr(k(e, "stretch", "fill-available"), t) + e : e;
|
|
960
960
|
}
|
|
961
961
|
break;
|
|
962
962
|
// position: sticky
|
|
@@ -964,13 +964,13 @@ function rr(e, t) {
|
|
|
964
964
|
if (W(e, t + 1) !== 115) break;
|
|
965
965
|
// display: (flex|inline-flex)
|
|
966
966
|
case 6444:
|
|
967
|
-
switch (W(e, te(e) - 3 - (~
|
|
967
|
+
switch (W(e, te(e) - 3 - (~Et(e, "!important") && 10))) {
|
|
968
968
|
// stic(k)y
|
|
969
969
|
case 107:
|
|
970
|
-
return
|
|
970
|
+
return k(e, ":", ":" + O) + e;
|
|
971
971
|
// (inline-)?fl(e)x
|
|
972
972
|
case 101:
|
|
973
|
-
return
|
|
973
|
+
return k(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + O + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + H + "$2box$3") + e;
|
|
974
974
|
}
|
|
975
975
|
break;
|
|
976
976
|
// writing-mode
|
|
@@ -978,83 +978,83 @@ function rr(e, t) {
|
|
|
978
978
|
switch (W(e, t + 11)) {
|
|
979
979
|
// vertical-l(r)
|
|
980
980
|
case 114:
|
|
981
|
-
return
|
|
981
|
+
return O + e + H + k(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
982
982
|
// vertical-r(l)
|
|
983
983
|
case 108:
|
|
984
|
-
return
|
|
984
|
+
return O + e + H + k(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
985
985
|
// horizontal(-)tb
|
|
986
986
|
case 45:
|
|
987
|
-
return
|
|
987
|
+
return O + e + H + k(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
988
988
|
}
|
|
989
|
-
return
|
|
989
|
+
return O + e + H + e + e;
|
|
990
990
|
}
|
|
991
991
|
return e;
|
|
992
992
|
}
|
|
993
|
-
var
|
|
993
|
+
var cn = function(t, r, n, o) {
|
|
994
994
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
995
|
-
case
|
|
996
|
-
t.return =
|
|
995
|
+
case St:
|
|
996
|
+
t.return = nr(t.value, t.length);
|
|
997
997
|
break;
|
|
998
|
-
case
|
|
999
|
-
return
|
|
1000
|
-
value:
|
|
998
|
+
case Zt:
|
|
999
|
+
return be([ke(t, {
|
|
1000
|
+
value: k(t.value, "@", "@" + O)
|
|
1001
1001
|
})], o);
|
|
1002
|
-
case
|
|
1003
|
-
if (t.length) return
|
|
1004
|
-
switch (
|
|
1002
|
+
case xt:
|
|
1003
|
+
if (t.length) return Vr(t.props, function(a) {
|
|
1004
|
+
switch (Fr(a, /(::plac\w+|:read-\w+)/)) {
|
|
1005
1005
|
// :read-(only|write)
|
|
1006
1006
|
case ":read-only":
|
|
1007
1007
|
case ":read-write":
|
|
1008
|
-
return
|
|
1009
|
-
props: [
|
|
1008
|
+
return be([ke(t, {
|
|
1009
|
+
props: [k(a, /:(read-\w+)/, ":" + it + "$1")]
|
|
1010
1010
|
})], o);
|
|
1011
1011
|
// :placeholder
|
|
1012
1012
|
case "::placeholder":
|
|
1013
|
-
return
|
|
1014
|
-
props: [
|
|
1015
|
-
}),
|
|
1016
|
-
props: [
|
|
1017
|
-
}),
|
|
1018
|
-
props: [
|
|
1013
|
+
return be([ke(t, {
|
|
1014
|
+
props: [k(a, /:(plac\w+)/, ":" + O + "input-$1")]
|
|
1015
|
+
}), ke(t, {
|
|
1016
|
+
props: [k(a, /:(plac\w+)/, ":" + it + "$1")]
|
|
1017
|
+
}), ke(t, {
|
|
1018
|
+
props: [k(a, /:(plac\w+)/, H + "input-$1")]
|
|
1019
1019
|
})], o);
|
|
1020
1020
|
}
|
|
1021
1021
|
return "";
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
},
|
|
1024
|
+
}, ln = [cn], un = function(t) {
|
|
1025
1025
|
var r = t.key;
|
|
1026
1026
|
if (r === "css") {
|
|
1027
1027
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1028
1028
|
Array.prototype.forEach.call(n, function(y) {
|
|
1029
|
-
var
|
|
1030
|
-
|
|
1029
|
+
var l = y.getAttribute("data-emotion");
|
|
1030
|
+
l.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
|
-
var o = t.stylisPlugins ||
|
|
1033
|
+
var o = t.stylisPlugins || ln, a = {}, s, c = [];
|
|
1034
1034
|
s = t.container || document.head, Array.prototype.forEach.call(
|
|
1035
1035
|
// this means we will ignore elements which don't have a space in them which
|
|
1036
1036
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1037
1037
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
1038
1038
|
function(y) {
|
|
1039
|
-
for (var
|
|
1040
|
-
a[
|
|
1039
|
+
for (var l = y.getAttribute("data-emotion").split(" "), d = 1; d < l.length; d++)
|
|
1040
|
+
a[l[d]] = !0;
|
|
1041
1041
|
c.push(y);
|
|
1042
1042
|
}
|
|
1043
1043
|
);
|
|
1044
|
-
var
|
|
1044
|
+
var u, h = [an, sn];
|
|
1045
1045
|
{
|
|
1046
|
-
var
|
|
1047
|
-
|
|
1048
|
-
})], b =
|
|
1049
|
-
return
|
|
1046
|
+
var p, g = [Zr, en(function(y) {
|
|
1047
|
+
p.insert(y);
|
|
1048
|
+
})], b = Qr(h.concat(o, g)), T = function(l) {
|
|
1049
|
+
return be(Kr(l), b);
|
|
1050
1050
|
};
|
|
1051
|
-
|
|
1052
|
-
|
|
1051
|
+
u = function(l, d, m, v) {
|
|
1052
|
+
p = m, T(l ? l + "{" + d.styles + "}" : d.styles), v && (x.inserted[d.name] = !0);
|
|
1053
1053
|
};
|
|
1054
1054
|
}
|
|
1055
|
-
var
|
|
1055
|
+
var x = {
|
|
1056
1056
|
key: r,
|
|
1057
|
-
sheet: new
|
|
1057
|
+
sheet: new $r({
|
|
1058
1058
|
key: r,
|
|
1059
1059
|
container: s,
|
|
1060
1060
|
nonce: t.nonce,
|
|
@@ -1065,9 +1065,9 @@ var sn = function(t, r, n, o) {
|
|
|
1065
1065
|
nonce: t.nonce,
|
|
1066
1066
|
inserted: a,
|
|
1067
1067
|
registered: {},
|
|
1068
|
-
insert:
|
|
1068
|
+
insert: u
|
|
1069
1069
|
};
|
|
1070
|
-
return
|
|
1070
|
+
return x.sheet.hydrate(c), x;
|
|
1071
1071
|
}, Qe = { exports: {} }, L = {};
|
|
1072
1072
|
/** @license React v16.13.1
|
|
1073
1073
|
* react-is.production.min.js
|
|
@@ -1077,19 +1077,19 @@ var sn = function(t, r, n, o) {
|
|
|
1077
1077
|
* This source code is licensed under the MIT license found in the
|
|
1078
1078
|
* LICENSE file in the root directory of this source tree.
|
|
1079
1079
|
*/
|
|
1080
|
-
var
|
|
1081
|
-
function
|
|
1082
|
-
if (
|
|
1083
|
-
|
|
1084
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110,
|
|
1085
|
-
function
|
|
1080
|
+
var $t;
|
|
1081
|
+
function dn() {
|
|
1082
|
+
if ($t) return L;
|
|
1083
|
+
$t = 1;
|
|
1084
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, l = e ? Symbol.for("react.fundamental") : 60117, d = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
|
|
1085
|
+
function v(f) {
|
|
1086
1086
|
if (typeof f == "object" && f !== null) {
|
|
1087
|
-
var
|
|
1088
|
-
switch (
|
|
1087
|
+
var w = f.$$typeof;
|
|
1088
|
+
switch (w) {
|
|
1089
1089
|
case t:
|
|
1090
1090
|
switch (f = f.type, f) {
|
|
1091
|
-
case
|
|
1092
|
-
case
|
|
1091
|
+
case u:
|
|
1092
|
+
case h:
|
|
1093
1093
|
case n:
|
|
1094
1094
|
case a:
|
|
1095
1095
|
case o:
|
|
@@ -1098,52 +1098,52 @@ function ln() {
|
|
|
1098
1098
|
default:
|
|
1099
1099
|
switch (f = f && f.$$typeof, f) {
|
|
1100
1100
|
case c:
|
|
1101
|
-
case
|
|
1102
|
-
case
|
|
1103
|
-
case
|
|
1101
|
+
case p:
|
|
1102
|
+
case x:
|
|
1103
|
+
case T:
|
|
1104
1104
|
case s:
|
|
1105
1105
|
return f;
|
|
1106
1106
|
default:
|
|
1107
|
-
return
|
|
1107
|
+
return w;
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
case r:
|
|
1111
|
-
return
|
|
1111
|
+
return w;
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return
|
|
1115
|
+
function S(f) {
|
|
1116
|
+
return v(f) === h;
|
|
1117
1117
|
}
|
|
1118
|
-
return L.AsyncMode =
|
|
1119
|
-
return
|
|
1120
|
-
}, L.isConcurrentMode =
|
|
1121
|
-
return
|
|
1118
|
+
return L.AsyncMode = u, L.ConcurrentMode = h, L.ContextConsumer = c, L.ContextProvider = s, L.Element = t, L.ForwardRef = p, L.Fragment = n, L.Lazy = x, L.Memo = T, L.Portal = r, L.Profiler = a, L.StrictMode = o, L.Suspense = g, L.isAsyncMode = function(f) {
|
|
1119
|
+
return S(f) || v(f) === u;
|
|
1120
|
+
}, L.isConcurrentMode = S, L.isContextConsumer = function(f) {
|
|
1121
|
+
return v(f) === c;
|
|
1122
1122
|
}, L.isContextProvider = function(f) {
|
|
1123
|
-
return
|
|
1123
|
+
return v(f) === s;
|
|
1124
1124
|
}, L.isElement = function(f) {
|
|
1125
1125
|
return typeof f == "object" && f !== null && f.$$typeof === t;
|
|
1126
1126
|
}, L.isForwardRef = function(f) {
|
|
1127
|
-
return
|
|
1127
|
+
return v(f) === p;
|
|
1128
1128
|
}, L.isFragment = function(f) {
|
|
1129
|
-
return
|
|
1129
|
+
return v(f) === n;
|
|
1130
1130
|
}, L.isLazy = function(f) {
|
|
1131
|
-
return
|
|
1131
|
+
return v(f) === x;
|
|
1132
1132
|
}, L.isMemo = function(f) {
|
|
1133
|
-
return
|
|
1133
|
+
return v(f) === T;
|
|
1134
1134
|
}, L.isPortal = function(f) {
|
|
1135
|
-
return
|
|
1135
|
+
return v(f) === r;
|
|
1136
1136
|
}, L.isProfiler = function(f) {
|
|
1137
|
-
return
|
|
1137
|
+
return v(f) === a;
|
|
1138
1138
|
}, L.isStrictMode = function(f) {
|
|
1139
|
-
return
|
|
1139
|
+
return v(f) === o;
|
|
1140
1140
|
}, L.isSuspense = function(f) {
|
|
1141
|
-
return
|
|
1141
|
+
return v(f) === g;
|
|
1142
1142
|
}, L.isValidElementType = function(f) {
|
|
1143
|
-
return typeof f == "string" || typeof f == "function" || f === n || f ===
|
|
1144
|
-
}, L.typeOf =
|
|
1143
|
+
return typeof f == "string" || typeof f == "function" || f === n || f === h || f === a || f === o || f === g || f === b || typeof f == "object" && f !== null && (f.$$typeof === x || f.$$typeof === T || f.$$typeof === s || f.$$typeof === c || f.$$typeof === p || f.$$typeof === l || f.$$typeof === d || f.$$typeof === m || f.$$typeof === y);
|
|
1144
|
+
}, L.typeOf = v, L;
|
|
1145
1145
|
}
|
|
1146
|
-
var
|
|
1146
|
+
var I = {};
|
|
1147
1147
|
/** @license React v16.13.1
|
|
1148
1148
|
* react-is.development.js
|
|
1149
1149
|
*
|
|
@@ -1152,98 +1152,98 @@ var k = {};
|
|
|
1152
1152
|
* This source code is licensed under the MIT license found in the
|
|
1153
1153
|
* LICENSE file in the root directory of this source tree.
|
|
1154
1154
|
*/
|
|
1155
|
-
var
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1158
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110,
|
|
1159
|
-
function
|
|
1160
|
-
return typeof
|
|
1161
|
-
|
|
1162
|
-
}
|
|
1163
|
-
function
|
|
1164
|
-
if (typeof
|
|
1165
|
-
var
|
|
1166
|
-
switch (
|
|
1155
|
+
var Ut;
|
|
1156
|
+
function fn() {
|
|
1157
|
+
return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1158
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, l = e ? Symbol.for("react.fundamental") : 60117, d = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
|
|
1159
|
+
function v(_) {
|
|
1160
|
+
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1161
|
+
_ === n || _ === h || _ === a || _ === o || _ === g || _ === b || typeof _ == "object" && _ !== null && (_.$$typeof === x || _.$$typeof === T || _.$$typeof === s || _.$$typeof === c || _.$$typeof === p || _.$$typeof === l || _.$$typeof === d || _.$$typeof === m || _.$$typeof === y);
|
|
1162
|
+
}
|
|
1163
|
+
function S(_) {
|
|
1164
|
+
if (typeof _ == "object" && _ !== null) {
|
|
1165
|
+
var ve = _.$$typeof;
|
|
1166
|
+
switch (ve) {
|
|
1167
1167
|
case t:
|
|
1168
|
-
var
|
|
1169
|
-
switch (
|
|
1170
|
-
case
|
|
1171
|
-
case
|
|
1168
|
+
var ue = _.type;
|
|
1169
|
+
switch (ue) {
|
|
1170
|
+
case u:
|
|
1171
|
+
case h:
|
|
1172
1172
|
case n:
|
|
1173
1173
|
case a:
|
|
1174
1174
|
case o:
|
|
1175
1175
|
case g:
|
|
1176
|
-
return
|
|
1176
|
+
return ue;
|
|
1177
1177
|
default:
|
|
1178
|
-
var
|
|
1179
|
-
switch (
|
|
1178
|
+
var Ee = ue && ue.$$typeof;
|
|
1179
|
+
switch (Ee) {
|
|
1180
1180
|
case c:
|
|
1181
|
-
case
|
|
1182
|
-
case
|
|
1183
|
-
case
|
|
1181
|
+
case p:
|
|
1182
|
+
case x:
|
|
1183
|
+
case T:
|
|
1184
1184
|
case s:
|
|
1185
|
-
return
|
|
1185
|
+
return Ee;
|
|
1186
1186
|
default:
|
|
1187
|
-
return
|
|
1187
|
+
return ve;
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
case r:
|
|
1191
|
-
return
|
|
1191
|
+
return ve;
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
|
-
var f =
|
|
1196
|
-
function oe(
|
|
1197
|
-
return ze || (ze = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
1195
|
+
var f = u, w = h, C = c, F = s, U = t, B = p, V = n, ee = x, le = T, Ae = r, _e = a, ft = o, Ye = g, ze = !1;
|
|
1196
|
+
function oe(_) {
|
|
1197
|
+
return ze || (ze = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Ce(_) || S(_) === u;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1199
|
+
function Ce(_) {
|
|
1200
|
+
return S(_) === h;
|
|
1201
1201
|
}
|
|
1202
|
-
function ie(
|
|
1203
|
-
return
|
|
1202
|
+
function ie(_) {
|
|
1203
|
+
return S(_) === c;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return
|
|
1205
|
+
function mt(_) {
|
|
1206
|
+
return S(_) === s;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return typeof
|
|
1208
|
+
function Pe(_) {
|
|
1209
|
+
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
1210
1210
|
}
|
|
1211
|
-
function fe(
|
|
1212
|
-
return
|
|
1211
|
+
function fe(_) {
|
|
1212
|
+
return S(_) === p;
|
|
1213
1213
|
}
|
|
1214
|
-
function Fe(
|
|
1215
|
-
return
|
|
1214
|
+
function Fe(_) {
|
|
1215
|
+
return S(_) === n;
|
|
1216
1216
|
}
|
|
1217
|
-
function Ve(
|
|
1218
|
-
return
|
|
1217
|
+
function Ve(_) {
|
|
1218
|
+
return S(_) === x;
|
|
1219
1219
|
}
|
|
1220
|
-
function We(
|
|
1221
|
-
return
|
|
1220
|
+
function We(_) {
|
|
1221
|
+
return S(_) === T;
|
|
1222
1222
|
}
|
|
1223
|
-
function Be(
|
|
1224
|
-
return
|
|
1223
|
+
function Be(_) {
|
|
1224
|
+
return S(_) === r;
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return
|
|
1226
|
+
function Xe(_) {
|
|
1227
|
+
return S(_) === a;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return
|
|
1229
|
+
function Ge(_) {
|
|
1230
|
+
return S(_) === o;
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return
|
|
1232
|
+
function He(_) {
|
|
1233
|
+
return S(_) === g;
|
|
1234
1234
|
}
|
|
1235
|
-
|
|
1236
|
-
}()),
|
|
1235
|
+
I.AsyncMode = f, I.ConcurrentMode = w, I.ContextConsumer = C, I.ContextProvider = F, I.Element = U, I.ForwardRef = B, I.Fragment = V, I.Lazy = ee, I.Memo = le, I.Portal = Ae, I.Profiler = _e, I.StrictMode = ft, I.Suspense = Ye, I.isAsyncMode = oe, I.isConcurrentMode = Ce, I.isContextConsumer = ie, I.isContextProvider = mt, I.isElement = Pe, I.isForwardRef = fe, I.isFragment = Fe, I.isLazy = Ve, I.isMemo = We, I.isPortal = Be, I.isProfiler = Xe, I.isStrictMode = Ge, I.isSuspense = He, I.isValidElementType = v, I.typeOf = S;
|
|
1236
|
+
}()), I;
|
|
1237
1237
|
}
|
|
1238
|
-
var
|
|
1239
|
-
function fn() {
|
|
1240
|
-
return $t || ($t = 1, process.env.NODE_ENV === "production" ? Qe.exports = ln() : Qe.exports = dn()), Qe.exports;
|
|
1241
|
-
}
|
|
1242
|
-
var mt, Ut;
|
|
1238
|
+
var Dt;
|
|
1243
1239
|
function mn() {
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1240
|
+
return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? Qe.exports = dn() : Qe.exports = fn()), Qe.exports;
|
|
1241
|
+
}
|
|
1242
|
+
var ht, jt;
|
|
1243
|
+
function pn() {
|
|
1244
|
+
if (jt) return ht;
|
|
1245
|
+
jt = 1;
|
|
1246
|
+
var e = mn(), t = {
|
|
1247
1247
|
childContextTypes: !0,
|
|
1248
1248
|
contextType: !0,
|
|
1249
1249
|
contextTypes: !0,
|
|
@@ -1278,42 +1278,42 @@ function mn() {
|
|
|
1278
1278
|
type: !0
|
|
1279
1279
|
}, a = {};
|
|
1280
1280
|
a[e.ForwardRef] = n, a[e.Memo] = o;
|
|
1281
|
-
function s(
|
|
1282
|
-
return e.isMemo(
|
|
1281
|
+
function s(x) {
|
|
1282
|
+
return e.isMemo(x) ? o : a[x.$$typeof] || t;
|
|
1283
1283
|
}
|
|
1284
|
-
var c = Object.defineProperty,
|
|
1285
|
-
function
|
|
1284
|
+
var c = Object.defineProperty, u = Object.getOwnPropertyNames, h = Object.getOwnPropertySymbols, p = Object.getOwnPropertyDescriptor, g = Object.getPrototypeOf, b = Object.prototype;
|
|
1285
|
+
function T(x, y, l) {
|
|
1286
1286
|
if (typeof y != "string") {
|
|
1287
1287
|
if (b) {
|
|
1288
|
-
var
|
|
1289
|
-
|
|
1288
|
+
var d = g(y);
|
|
1289
|
+
d && d !== b && T(x, d, l);
|
|
1290
1290
|
}
|
|
1291
|
-
var
|
|
1292
|
-
|
|
1293
|
-
for (var
|
|
1294
|
-
var
|
|
1295
|
-
if (!r[
|
|
1296
|
-
var C =
|
|
1291
|
+
var m = u(y);
|
|
1292
|
+
h && (m = m.concat(h(y)));
|
|
1293
|
+
for (var v = s(x), S = s(y), f = 0; f < m.length; ++f) {
|
|
1294
|
+
var w = m[f];
|
|
1295
|
+
if (!r[w] && !(l && l[w]) && !(S && S[w]) && !(v && v[w])) {
|
|
1296
|
+
var C = p(y, w);
|
|
1297
1297
|
try {
|
|
1298
|
-
c(
|
|
1298
|
+
c(x, w, C);
|
|
1299
1299
|
} catch {
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
return
|
|
1304
|
+
return x;
|
|
1305
1305
|
}
|
|
1306
|
-
return
|
|
1306
|
+
return ht = T, ht;
|
|
1307
1307
|
}
|
|
1308
|
-
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1308
|
+
pn();
|
|
1309
|
+
var hn = !0;
|
|
1310
|
+
function vn(e, t, r) {
|
|
1311
1311
|
var n = "";
|
|
1312
1312
|
return r.split(" ").forEach(function(o) {
|
|
1313
1313
|
e[o] !== void 0 ? t.push(e[o] + ";") : o && (n += o + " ");
|
|
1314
1314
|
}), n;
|
|
1315
1315
|
}
|
|
1316
|
-
var
|
|
1316
|
+
var or = function(t, r, n) {
|
|
1317
1317
|
var o = t.key + "-" + r.name;
|
|
1318
1318
|
// we only need to add the styles to the registered cache if the
|
|
1319
1319
|
// class name could be used further down
|
|
@@ -1324,9 +1324,9 @@ var nr = function(t, r, n) {
|
|
|
1324
1324
|
// in node since emotion-server relies on whether a style is in
|
|
1325
1325
|
// the registered cache to know whether a style is global or not
|
|
1326
1326
|
// also, note that this check will be dead code eliminated in the browser
|
|
1327
|
-
|
|
1328
|
-
},
|
|
1329
|
-
|
|
1327
|
+
hn === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
|
|
1328
|
+
}, En = function(t, r, n) {
|
|
1329
|
+
or(t, r, n);
|
|
1330
1330
|
var o = t.key + "-" + r.name;
|
|
1331
1331
|
if (t.inserted[r.name] === void 0) {
|
|
1332
1332
|
var a = r;
|
|
@@ -1335,7 +1335,7 @@ var nr = function(t, r, n) {
|
|
|
1335
1335
|
while (a !== void 0);
|
|
1336
1336
|
}
|
|
1337
1337
|
};
|
|
1338
|
-
function
|
|
1338
|
+
function gn(e) {
|
|
1339
1339
|
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
|
1340
1340
|
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
1341
1341
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
@@ -1354,7 +1354,7 @@ function En(e) {
|
|
|
1354
1354
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
1355
1355
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
1356
1356
|
}
|
|
1357
|
-
var
|
|
1357
|
+
var bn = {
|
|
1358
1358
|
animationIterationCount: 1,
|
|
1359
1359
|
aspectRatio: 1,
|
|
1360
1360
|
borderImageOutset: 1,
|
|
@@ -1403,18 +1403,18 @@ var gn = {
|
|
|
1403
1403
|
strokeMiterlimit: 1,
|
|
1404
1404
|
strokeOpacity: 1,
|
|
1405
1405
|
strokeWidth: 1
|
|
1406
|
-
},
|
|
1406
|
+
}, yn = /[A-Z]|^ms/g, xn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ir = function(t) {
|
|
1407
1407
|
return t.charCodeAt(1) === 45;
|
|
1408
|
-
},
|
|
1408
|
+
}, Yt = function(t) {
|
|
1409
1409
|
return t != null && typeof t != "boolean";
|
|
1410
|
-
},
|
|
1411
|
-
return
|
|
1412
|
-
}),
|
|
1410
|
+
}, vt = /* @__PURE__ */ tn(function(e) {
|
|
1411
|
+
return ir(e) ? e : e.replace(yn, "-$&").toLowerCase();
|
|
1412
|
+
}), zt = function(t, r) {
|
|
1413
1413
|
switch (t) {
|
|
1414
1414
|
case "animation":
|
|
1415
1415
|
case "animationName":
|
|
1416
1416
|
if (typeof r == "string")
|
|
1417
|
-
return r.replace(
|
|
1417
|
+
return r.replace(xn, function(n, o, a) {
|
|
1418
1418
|
return re = {
|
|
1419
1419
|
name: o,
|
|
1420
1420
|
styles: a,
|
|
@@ -1422,7 +1422,7 @@ var gn = {
|
|
|
1422
1422
|
}, o;
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
|
-
return
|
|
1425
|
+
return bn[t] !== 1 && !ir(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1426
1426
|
};
|
|
1427
1427
|
function De(e, t, r) {
|
|
1428
1428
|
if (r == null)
|
|
@@ -1454,20 +1454,20 @@ function De(e, t, r) {
|
|
|
1454
1454
|
var c = a.styles + ";";
|
|
1455
1455
|
return c;
|
|
1456
1456
|
}
|
|
1457
|
-
return
|
|
1457
|
+
return Sn(e, t, r);
|
|
1458
1458
|
}
|
|
1459
1459
|
case "function": {
|
|
1460
1460
|
if (e !== void 0) {
|
|
1461
|
-
var
|
|
1462
|
-
return re =
|
|
1461
|
+
var u = re, h = r(e);
|
|
1462
|
+
return re = u, De(e, t, h);
|
|
1463
1463
|
}
|
|
1464
1464
|
break;
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
|
-
var
|
|
1468
|
-
return
|
|
1467
|
+
var p = r;
|
|
1468
|
+
return p;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function Sn(e, t, r) {
|
|
1471
1471
|
var n = "";
|
|
1472
1472
|
if (Array.isArray(r))
|
|
1473
1473
|
for (var o = 0; o < r.length; o++)
|
|
@@ -1477,27 +1477,27 @@ function xn(e, t, r) {
|
|
|
1477
1477
|
var s = r[a];
|
|
1478
1478
|
if (typeof s != "object") {
|
|
1479
1479
|
var c = s;
|
|
1480
|
-
|
|
1480
|
+
Yt(c) && (n += vt(a) + ":" + zt(a, c) + ";");
|
|
1481
1481
|
} else if (Array.isArray(s) && typeof s[0] == "string" && t == null)
|
|
1482
|
-
for (var
|
|
1483
|
-
|
|
1482
|
+
for (var u = 0; u < s.length; u++)
|
|
1483
|
+
Yt(s[u]) && (n += vt(a) + ":" + zt(a, s[u]) + ";");
|
|
1484
1484
|
else {
|
|
1485
|
-
var
|
|
1485
|
+
var h = De(e, t, s);
|
|
1486
1486
|
switch (a) {
|
|
1487
1487
|
case "animation":
|
|
1488
1488
|
case "animationName": {
|
|
1489
|
-
n +=
|
|
1489
|
+
n += vt(a) + ":" + h + ";";
|
|
1490
1490
|
break;
|
|
1491
1491
|
}
|
|
1492
1492
|
default:
|
|
1493
|
-
n += a + "{" +
|
|
1493
|
+
n += a + "{" + h + "}";
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
1497
|
return n;
|
|
1498
1498
|
}
|
|
1499
|
-
var
|
|
1500
|
-
function
|
|
1499
|
+
var Ft = /label:\s*([^\s;{]+)\s*(;|$)/g, re;
|
|
1500
|
+
function Tn(e, t, r) {
|
|
1501
1501
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1502
1502
|
return e[0];
|
|
1503
1503
|
var n = !0, o = "";
|
|
@@ -1511,22 +1511,22 @@ function Sn(e, t, r) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
for (var c = 1; c < e.length; c++)
|
|
1513
1513
|
if (o += De(r, t, e[c]), n) {
|
|
1514
|
-
var
|
|
1515
|
-
o +=
|
|
1514
|
+
var u = a;
|
|
1515
|
+
o += u[c];
|
|
1516
1516
|
}
|
|
1517
|
-
|
|
1518
|
-
for (var
|
|
1519
|
-
|
|
1520
|
-
var g =
|
|
1517
|
+
Ft.lastIndex = 0;
|
|
1518
|
+
for (var h = "", p; (p = Ft.exec(o)) !== null; )
|
|
1519
|
+
h += "-" + p[1];
|
|
1520
|
+
var g = gn(o) + h;
|
|
1521
1521
|
return {
|
|
1522
1522
|
name: g,
|
|
1523
1523
|
styles: o,
|
|
1524
1524
|
next: re
|
|
1525
1525
|
};
|
|
1526
1526
|
}
|
|
1527
|
-
var
|
|
1527
|
+
var wn = function(t) {
|
|
1528
1528
|
return t();
|
|
1529
|
-
},
|
|
1529
|
+
}, Rn = ce.useInsertionEffect ? ce.useInsertionEffect : !1, An = Rn || wn, ar = /* @__PURE__ */ ce.createContext(
|
|
1530
1530
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1531
1531
|
// because this module is primarily intended for the browser and node
|
|
1532
1532
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1537,61 +1537,63 @@ var Tn = function(t) {
|
|
|
1537
1537
|
key: "css"
|
|
1538
1538
|
}) : null
|
|
1539
1539
|
);
|
|
1540
|
-
|
|
1541
|
-
var
|
|
1542
|
-
return /* @__PURE__ */
|
|
1543
|
-
var o =
|
|
1540
|
+
ar.Provider;
|
|
1541
|
+
var _n = function(t) {
|
|
1542
|
+
return /* @__PURE__ */ hr(function(r, n) {
|
|
1543
|
+
var o = Te(ar);
|
|
1544
1544
|
return t(r, o, n);
|
|
1545
1545
|
});
|
|
1546
|
-
},
|
|
1546
|
+
}, Cn = /* @__PURE__ */ ce.createContext({}), ut = {}.hasOwnProperty, bt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", sr = function(t, r) {
|
|
1547
1547
|
var n = {};
|
|
1548
1548
|
for (var o in r)
|
|
1549
1549
|
ut.call(r, o) && (n[o] = r[o]);
|
|
1550
|
-
return n[
|
|
1551
|
-
},
|
|
1550
|
+
return n[bt] = t, n;
|
|
1551
|
+
}, Pn = function(t) {
|
|
1552
1552
|
var r = t.cache, n = t.serialized, o = t.isStringTag;
|
|
1553
|
-
return
|
|
1554
|
-
return
|
|
1553
|
+
return or(r, n, o), An(function() {
|
|
1554
|
+
return En(r, n, o);
|
|
1555
1555
|
}), null;
|
|
1556
|
-
},
|
|
1556
|
+
}, Nn = /* @__PURE__ */ _n(function(e, t, r) {
|
|
1557
1557
|
var n = e.css;
|
|
1558
1558
|
typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]);
|
|
1559
|
-
var o = e[
|
|
1560
|
-
typeof e.className == "string" ? s =
|
|
1561
|
-
var c =
|
|
1559
|
+
var o = e[bt], a = [n], s = "";
|
|
1560
|
+
typeof e.className == "string" ? s = vn(t.registered, a, e.className) : e.className != null && (s = e.className + " ");
|
|
1561
|
+
var c = Tn(a, void 0, ce.useContext(Cn));
|
|
1562
1562
|
s += t.key + "-" + c.name;
|
|
1563
|
-
var
|
|
1564
|
-
for (var
|
|
1565
|
-
ut.call(e,
|
|
1566
|
-
return
|
|
1563
|
+
var u = {};
|
|
1564
|
+
for (var h in e)
|
|
1565
|
+
ut.call(e, h) && h !== "css" && h !== bt && (u[h] = e[h]);
|
|
1566
|
+
return u.className = s, r && (u.ref = r), /* @__PURE__ */ ce.createElement(ce.Fragment, null, /* @__PURE__ */ ce.createElement(Pn, {
|
|
1567
1567
|
cache: t,
|
|
1568
1568
|
serialized: c,
|
|
1569
1569
|
isStringTag: typeof o == "string"
|
|
1570
|
-
}), /* @__PURE__ */ ce.createElement(o,
|
|
1571
|
-
}),
|
|
1572
|
-
return ut.call(r, "css") ?
|
|
1570
|
+
}), /* @__PURE__ */ ce.createElement(o, u));
|
|
1571
|
+
}), cr = Nn, lr = Ie.Fragment, E = function(t, r, n) {
|
|
1572
|
+
return ut.call(r, "css") ? Ie.jsx(cr, sr(t, r), n) : Ie.jsx(t, r, n);
|
|
1573
1573
|
}, $ = function(t, r, n) {
|
|
1574
|
-
return ut.call(r, "css") ?
|
|
1574
|
+
return ut.call(r, "css") ? Ie.jsxs(cr, sr(t, r), n) : Ie.jsxs(t, r, n);
|
|
1575
1575
|
};
|
|
1576
|
-
const
|
|
1576
|
+
const Mn = Ht(({ sendBack: e, receive: t, input: r }) => {
|
|
1577
1577
|
const { videoElement: n } = r;
|
|
1578
1578
|
t((b) => {
|
|
1579
|
-
b.type === "PLAY" &&
|
|
1579
|
+
b.type === "PLAY" && n.play().then(() => o()).catch((T) => {
|
|
1580
|
+
console.error(T);
|
|
1581
|
+
}), b.type === "PAUSE" && (n.pause(), a()), b.type === "SET_TIME" && (n.currentTime = b.value, c()), b.type === "SET_VOLUME" && (n.volume = b.volume, n.muted = b.muted, u()), b.type === "SET_PLAYBACK_RATE" && (n.playbackRate = b.playbackRate, h());
|
|
1580
1582
|
});
|
|
1581
|
-
const o = () => e({ type: "PLAYING" }), a = () => e({ type: "PAUSED" }), s = () => e({ type: "ENDED" }), c = () => e({ type: "TIME_UPDATE", currentTime: n.currentTime }),
|
|
1582
|
-
return n.addEventListener("play", o), n.addEventListener("pause", a), n.addEventListener("ended", s), n.addEventListener("timeupdate", c), n.addEventListener("volumechange",
|
|
1583
|
-
n.removeEventListener("play", o), n.removeEventListener("pause", a), n.removeEventListener("ended", s), n.removeEventListener("timeupdate", c), n.removeEventListener("volumechange",
|
|
1583
|
+
const o = () => e({ type: "PLAYING" }), a = () => e({ type: "PAUSED" }), s = () => e({ type: "ENDED" }), c = () => e({ type: "TIME_UPDATE", currentTime: n.currentTime }), u = () => e({ type: "VOLUME_UPDATE", muted: n.muted, volume: n.volume }), h = () => e({ type: "PLAYBACK_RATE_UPDATE", playbackRate: n.playbackRate }), p = () => e({ type: "SEEKING", currentTime: n.currentTime }), g = () => e({ type: "DURATION_UPDATE", duration: n.duration });
|
|
1584
|
+
return n.addEventListener("play", o), n.addEventListener("pause", a), n.addEventListener("ended", s), n.addEventListener("timeupdate", c), n.addEventListener("volumechange", u), n.addEventListener("ratechange", h), n.addEventListener("seeking", p), n.addEventListener("durationchange", g), () => {
|
|
1585
|
+
n.removeEventListener("play", o), n.removeEventListener("pause", a), n.removeEventListener("ended", s), n.removeEventListener("timeupdate", c), n.removeEventListener("volumechange", u), n.removeEventListener("ratechange", h), n.removeEventListener("seeking", p), n.removeEventListener("durationchange", g);
|
|
1584
1586
|
};
|
|
1585
|
-
}),
|
|
1587
|
+
}), dt = (e) => Ht((...t) => {
|
|
1586
1588
|
const r = e(...t);
|
|
1587
1589
|
return () => {
|
|
1588
1590
|
r.then((n) => n?.());
|
|
1589
1591
|
};
|
|
1590
|
-
}),
|
|
1592
|
+
}), Vt = (e) => Array(e.buffered.length).fill(void 0).map((t, r) => ({
|
|
1591
1593
|
index: r,
|
|
1592
1594
|
start: e.buffered.start(r),
|
|
1593
1595
|
end: e.buffered.end(r)
|
|
1594
|
-
})),
|
|
1596
|
+
})), Wt = (e, t, r) => {
|
|
1595
1597
|
const n = (c) => {
|
|
1596
1598
|
t(c), s();
|
|
1597
1599
|
}, o = (c) => {
|
|
@@ -1602,39 +1604,39 @@ const On = Xt(({ sendBack: e, receive: t, input: r }) => {
|
|
|
1602
1604
|
e.removeEventListener("updateend", n), e.removeEventListener("abort", o), e.removeEventListener("error", a);
|
|
1603
1605
|
};
|
|
1604
1606
|
e.addEventListener("updateend", n, { once: !0 }), e.addEventListener("abort", o, { once: !0 }), e.addEventListener("error", a, { once: !0 });
|
|
1605
|
-
},
|
|
1607
|
+
}, On = (e) => {
|
|
1606
1608
|
const t = new qt({ concurrency: 1 });
|
|
1607
1609
|
return {
|
|
1608
1610
|
appendBuffer: (a) => t.add(
|
|
1609
1611
|
() => new Promise((s, c) => {
|
|
1610
|
-
|
|
1612
|
+
Wt(e, s, c), e.appendBuffer(a);
|
|
1611
1613
|
})
|
|
1612
1614
|
),
|
|
1613
1615
|
unbufferRange: async (a, s) => t.add(
|
|
1614
|
-
() => new Promise((c,
|
|
1615
|
-
|
|
1616
|
+
() => new Promise((c, u) => {
|
|
1617
|
+
Wt(e, c, u), e.remove(a, s);
|
|
1616
1618
|
})
|
|
1617
1619
|
),
|
|
1618
1620
|
updateTimestampOffset: (a) => t.add(() => {
|
|
1619
1621
|
e.timestampOffset = a;
|
|
1620
1622
|
})
|
|
1621
1623
|
};
|
|
1622
|
-
},
|
|
1623
|
-
const { videoElement: a, preEvictionTime: s, postEvictionTime: c, bufferTargetTime:
|
|
1624
|
-
a.addEventListener("error",
|
|
1625
|
-
const
|
|
1624
|
+
}, kn = -20, Ln = 60, In = 30, $n = dt(async ({ sendBack: e, receive: t, input: r, self: n, emit: o }) => {
|
|
1625
|
+
const { videoElement: a, preEvictionTime: s, postEvictionTime: c, bufferTargetTime: u } = r, h = () => console.error(a.error);
|
|
1626
|
+
a.addEventListener("error", h);
|
|
1627
|
+
const p = new MediaSource(), g = URL.createObjectURL(p);
|
|
1626
1628
|
a.src = g;
|
|
1627
|
-
const b = () => a.currentTime + (s ??
|
|
1629
|
+
const b = () => a.currentTime + (s ?? kn), T = () => a.currentTime + (c ?? Ln), x = () => a.currentTime + (u ?? In);
|
|
1628
1630
|
let y;
|
|
1629
|
-
const
|
|
1630
|
-
(U) =>
|
|
1631
|
+
const l = await new Promise(
|
|
1632
|
+
(U) => p.addEventListener(
|
|
1631
1633
|
"sourceopen",
|
|
1632
1634
|
() => {
|
|
1633
1635
|
let B = !1;
|
|
1634
1636
|
t((V) => {
|
|
1635
1637
|
if (!B && V.type === "METADATA") {
|
|
1636
|
-
const ee =
|
|
1637
|
-
ee.mode = "segments",
|
|
1638
|
+
const ee = p.addSourceBuffer(`video/mp4; codecs="${[V.info.output.videoMimeType, V.info.output.audioMimeType].filter(Boolean).join(",")}"`);
|
|
1639
|
+
ee.mode = "segments", p.duration = V.info.input.duration, y = V.data, B = !0, U(ee);
|
|
1638
1640
|
}
|
|
1639
1641
|
});
|
|
1640
1642
|
},
|
|
@@ -1642,100 +1644,100 @@ const On = Xt(({ sendBack: e, receive: t, input: r }) => {
|
|
|
1642
1644
|
)
|
|
1643
1645
|
);
|
|
1644
1646
|
if (!y) throw new Error("No header buffer");
|
|
1645
|
-
const { appendBuffer:
|
|
1646
|
-
|
|
1647
|
-
U.type === "DATA" ? await
|
|
1647
|
+
const { appendBuffer: d, unbufferRange: m, updateTimestampOffset: v } = On(l);
|
|
1648
|
+
d(y), t(async (U) => {
|
|
1649
|
+
U.type === "DATA" ? await d(U.data) : U.type === "TIMESTAMP_OFFSET" && await v(U.timestampOffset);
|
|
1648
1650
|
});
|
|
1649
|
-
const
|
|
1650
|
-
const U = b(), B =
|
|
1651
|
-
for (const { start: ee, end:
|
|
1652
|
-
ee < U && await
|
|
1651
|
+
const S = async () => {
|
|
1652
|
+
const U = b(), B = T(), V = Vt(l);
|
|
1653
|
+
for (const { start: ee, end: le } of V)
|
|
1654
|
+
ee < U && await m(
|
|
1653
1655
|
ee,
|
|
1654
1656
|
U
|
|
1655
|
-
),
|
|
1657
|
+
), le > B && await m(
|
|
1656
1658
|
B,
|
|
1657
|
-
|
|
1659
|
+
le
|
|
1658
1660
|
);
|
|
1659
1661
|
}, f = setInterval(async () => {
|
|
1660
|
-
await
|
|
1661
|
-
const U =
|
|
1662
|
-
Math.max(...U.map(({ end: V }) => V)) <
|
|
1663
|
-
}, 100),
|
|
1664
|
-
return
|
|
1665
|
-
URL.revokeObjectURL(g), clearInterval(f), a.removeEventListener("error",
|
|
1662
|
+
await S();
|
|
1663
|
+
const U = Vt(l);
|
|
1664
|
+
Math.max(...U.map(({ end: V }) => V)) < x() && e({ type: "NEED_DATA" });
|
|
1665
|
+
}, 100), w = () => e({ type: "SOURCE_OPEN" }), C = () => e({ type: "SOURCE_ENDED" }), F = () => e({ type: "SOURCE_ERROR" });
|
|
1666
|
+
return p.addEventListener("sourceopen", w), p.addEventListener("sourceended", C), p.addEventListener("error", F), () => {
|
|
1667
|
+
URL.revokeObjectURL(g), clearInterval(f), a.removeEventListener("error", h), p.removeEventListener("sourceopen", w), p.removeEventListener("sourceended", C), p.removeEventListener("error", F);
|
|
1666
1668
|
};
|
|
1667
|
-
}),
|
|
1669
|
+
}), Un = (e, t) => {
|
|
1668
1670
|
let r, n, o;
|
|
1669
|
-
const a = (s, c,
|
|
1670
|
-
const
|
|
1671
|
+
const a = (s, c, u) => (h) => {
|
|
1672
|
+
const p = performance.now();
|
|
1671
1673
|
return setTimeout(() => {
|
|
1672
1674
|
if (!o) {
|
|
1673
1675
|
r = void 0, n = void 0;
|
|
1674
1676
|
return;
|
|
1675
1677
|
}
|
|
1676
1678
|
const g = (async () => t(...o))();
|
|
1677
|
-
o = void 0, g.then(c).catch((
|
|
1678
|
-
console.error(
|
|
1679
|
+
o = void 0, g.then(c).catch((x) => {
|
|
1680
|
+
console.error(x), u(x);
|
|
1679
1681
|
});
|
|
1680
|
-
let b,
|
|
1681
|
-
n = new Promise((
|
|
1682
|
-
b =
|
|
1683
|
-
}), r = g.then(a(
|
|
1684
|
-
}, e - (
|
|
1682
|
+
let b, T;
|
|
1683
|
+
n = new Promise((x, y) => {
|
|
1684
|
+
b = x, T = y;
|
|
1685
|
+
}), r = g.then(a(p, b, T)).catch((x) => (console.error(x), a(s, b, T)(x)));
|
|
1686
|
+
}, e - (p - s)), h;
|
|
1685
1687
|
};
|
|
1686
1688
|
return (...s) => {
|
|
1687
1689
|
if (o = s, r)
|
|
1688
1690
|
return n;
|
|
1689
1691
|
{
|
|
1690
|
-
const c = performance.now(),
|
|
1692
|
+
const c = performance.now(), u = (async () => t(...s))();
|
|
1691
1693
|
o = void 0;
|
|
1692
|
-
let
|
|
1694
|
+
let h, p;
|
|
1693
1695
|
return n = new Promise((g, b) => {
|
|
1694
|
-
|
|
1695
|
-
}), r =
|
|
1696
|
+
h = g, p = b;
|
|
1697
|
+
}), r = u.then(a(c, h, p)).catch((g) => (console.error(g), a(c, h, p)(g))), u;
|
|
1696
1698
|
}
|
|
1697
1699
|
};
|
|
1698
|
-
},
|
|
1699
|
-
const { remuxerOptions: a } = r, { publicPath: s, workerUrl: c, bufferSize:
|
|
1700
|
+
}, Dn = dt(async ({ sendBack: e, receive: t, input: r, self: n, emit: o }) => {
|
|
1701
|
+
const { remuxerOptions: a } = r, { publicPath: s, workerUrl: c, bufferSize: u, length: h, read: p } = a, g = await Kt({
|
|
1700
1702
|
publicPath: s,
|
|
1701
1703
|
workerUrl: c,
|
|
1702
|
-
bufferSize:
|
|
1703
|
-
length:
|
|
1704
|
-
read:
|
|
1704
|
+
bufferSize: u,
|
|
1705
|
+
length: h,
|
|
1706
|
+
read: p
|
|
1705
1707
|
}), b = await g.init();
|
|
1706
1708
|
b.indexes && e({ type: "INDEXES", indexes: b.indexes }), b.attachments?.length && e({ type: "NEW_ATTACHMENTS", attachments: b.attachments }), b.subtitles?.length && e({ type: "NEW_SUBTITLE_FRAGMENTS", subtitles: b.subtitles }), e({ type: "METADATA", ...b });
|
|
1707
|
-
let
|
|
1708
|
-
const y =
|
|
1709
|
-
if (!(
|
|
1709
|
+
let T = !1, x = [];
|
|
1710
|
+
const y = Un(100, async () => {
|
|
1711
|
+
if (!(x.length || T))
|
|
1710
1712
|
try {
|
|
1711
|
-
const { data:
|
|
1712
|
-
|
|
1713
|
-
} catch (
|
|
1714
|
-
if (
|
|
1715
|
-
console.error(
|
|
1713
|
+
const { data: l, subtitles: d, finished: m } = await g.read();
|
|
1714
|
+
m && (T = !0), d.length && e({ type: "NEW_SUBTITLE_FRAGMENTS", subtitles: d }), e({ type: "DATA", data: l });
|
|
1715
|
+
} catch (l) {
|
|
1716
|
+
if (l.message === "Cancelled") return;
|
|
1717
|
+
console.error(l);
|
|
1716
1718
|
}
|
|
1717
1719
|
});
|
|
1718
|
-
return t(async (
|
|
1719
|
-
if (
|
|
1720
|
+
return t(async (l) => {
|
|
1721
|
+
if (l.type === "NEED_DATA")
|
|
1720
1722
|
y();
|
|
1721
|
-
else if (
|
|
1722
|
-
|
|
1723
|
-
const { currentTime:
|
|
1724
|
-
|
|
1723
|
+
else if (l.type === "SEEKING") {
|
|
1724
|
+
T = !1;
|
|
1725
|
+
const { currentTime: d } = l, m = { currentTime: d };
|
|
1726
|
+
x = [...x, m];
|
|
1725
1727
|
try {
|
|
1726
|
-
const { data:
|
|
1727
|
-
|
|
1728
|
+
const { data: v, pts: S } = await g.seek(d).finally(() => {
|
|
1729
|
+
x = x.filter((f) => f !== m);
|
|
1728
1730
|
});
|
|
1729
|
-
e({ type: "TIMESTAMP_OFFSET", timestampOffset:
|
|
1730
|
-
} catch (
|
|
1731
|
-
if (
|
|
1732
|
-
console.error(
|
|
1731
|
+
e({ type: "TIMESTAMP_OFFSET", timestampOffset: S }), e({ type: "DATA", data: v });
|
|
1732
|
+
} catch (v) {
|
|
1733
|
+
if (v.message === "Cancelled") return;
|
|
1734
|
+
console.error(v);
|
|
1733
1735
|
}
|
|
1734
1736
|
}
|
|
1735
1737
|
}), () => {
|
|
1736
1738
|
g.destroy();
|
|
1737
1739
|
};
|
|
1738
|
-
}),
|
|
1740
|
+
}), Bt = (e) => new Date(e).toISOString().slice(11, 22), Xt = (e, t) => {
|
|
1739
1741
|
e.createStyle({
|
|
1740
1742
|
...t,
|
|
1741
1743
|
SecondaryColour: Number(t.SecondaryColour),
|
|
@@ -1764,7 +1766,7 @@ const On = Xt(({ sendBack: e, receive: t, input: r }) => {
|
|
|
1764
1766
|
MarginV: Number(t.MarginV),
|
|
1765
1767
|
Encoding: Number(t.Encoding)
|
|
1766
1768
|
});
|
|
1767
|
-
},
|
|
1769
|
+
}, jn = (e) => {
|
|
1768
1770
|
const t = e.content.match(/\r\n\[Events\]\r\nFormat: (.*)/)?.[0], r = t?.trim().split(`
|
|
1769
1771
|
`)[1];
|
|
1770
1772
|
if (!t || !r)
|
|
@@ -1777,173 +1779,178 @@ const On = Xt(({ sendBack: e, receive: t, input: r }) => {
|
|
|
1777
1779
|
dialogueFormatContent: r,
|
|
1778
1780
|
parsed: Le(e.content)
|
|
1779
1781
|
};
|
|
1780
|
-
},
|
|
1781
|
-
const [r, n] = t.content.split(","), o = Number(r), a =
|
|
1782
|
-
${
|
|
1783
|
-
if (!
|
|
1782
|
+
}, Yn = (e, t) => {
|
|
1783
|
+
const [r, n] = t.content.split(","), o = Number(r), a = Bt(t.start), s = Bt(t.end), c = t.content.replace(`${o},${n},`, ""), u = `Dialogue: ${n},${a},${s},${c}`, p = Le(`${e.eventsContent}\r
|
|
1784
|
+
${u}`).events.dialogue[0];
|
|
1785
|
+
if (!p)
|
|
1784
1786
|
throw new Error("dialogueEvent is undefined");
|
|
1785
1787
|
return {
|
|
1786
1788
|
type: "dialogue",
|
|
1787
1789
|
streamIndex: t.streamIndex,
|
|
1788
1790
|
index: o,
|
|
1789
|
-
content:
|
|
1791
|
+
content: u,
|
|
1790
1792
|
parsed: Le(`${e.eventsContent}\r
|
|
1791
|
-
${
|
|
1793
|
+
${u}`),
|
|
1792
1794
|
assEvent: {
|
|
1793
|
-
...
|
|
1794
|
-
Effect:
|
|
1795
|
-
Text:
|
|
1796
|
-
Duration: (
|
|
1797
|
-
Start:
|
|
1798
|
-
End:
|
|
1795
|
+
...p,
|
|
1796
|
+
Effect: p.Effect ?? "",
|
|
1797
|
+
Text: p.Text.raw,
|
|
1798
|
+
Duration: (p.End - p.Start) * 1e3,
|
|
1799
|
+
Start: p.Start * 1e3,
|
|
1800
|
+
End: p.End * 1e3,
|
|
1799
1801
|
ReadOrder: o,
|
|
1800
1802
|
_index: o
|
|
1801
1803
|
}
|
|
1802
1804
|
};
|
|
1803
|
-
},
|
|
1804
|
-
const { publicPath: a, subtitlesRendererOptions: s, videoElement: c, canvasElement:
|
|
1805
|
-
let
|
|
1805
|
+
}, zn = dt(async ({ sendBack: e, receive: t, input: r, self: n, emit: o }) => {
|
|
1806
|
+
const { publicPath: a, subtitlesRendererOptions: s, videoElement: c, canvasElement: u } = r;
|
|
1807
|
+
let h = [], p;
|
|
1806
1808
|
const g = /* @__PURE__ */ new Map();
|
|
1807
|
-
let b = [],
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
if (
|
|
1809
|
+
let b = [], T;
|
|
1810
|
+
const x = setInterval(() => {
|
|
1811
|
+
p && p.setCurrentTime(c.paused, c.currentTime, c.playbackRate);
|
|
1812
|
+
}, 100);
|
|
1813
|
+
return t((y) => {
|
|
1814
|
+
if (y.type === "TIME_UPDATE" && p && p.setCurrentTime(c.paused, y.currentTime, c.playbackRate), y.type === "SELECT_SUBTITLE_STREAM") {
|
|
1815
|
+
if (T = y.streamIndex, e({ type: "SELECTED_SUBTITLE_STREAM_UPDATED", streamIndex: y.streamIndex }), !p || (p.freeTrack(), p.setCurrentTime(c.paused, c.currentTime, c.playbackRate), T === void 0))
|
|
1816
|
+
return;
|
|
1817
|
+
b = [];
|
|
1818
|
+
const l = g.get(T);
|
|
1819
|
+
if (!l)
|
|
1814
1820
|
throw new Error("newSubtitleStreams is undefined");
|
|
1815
|
-
const
|
|
1816
|
-
...
|
|
1821
|
+
const d = Le(l.header.content), m = {
|
|
1822
|
+
...d,
|
|
1817
1823
|
info: {
|
|
1818
|
-
...
|
|
1824
|
+
...d.info,
|
|
1819
1825
|
ScaledBorderAndShadow: "no",
|
|
1820
1826
|
LayoutResX: "",
|
|
1821
1827
|
LayoutResY: ""
|
|
1822
1828
|
}
|
|
1823
|
-
}, v =
|
|
1824
|
-
|
|
1825
|
-
for (const
|
|
1826
|
-
const
|
|
1827
|
-
|
|
1829
|
+
}, v = Pt(m);
|
|
1830
|
+
p.setTrack(v), p.setCurrentTime(c.paused, c.currentTime, c.playbackRate);
|
|
1831
|
+
for (const S in l.header.parsed.styles) {
|
|
1832
|
+
const f = l.header.parsed.styles.style[Number(S)];
|
|
1833
|
+
f && Xt(p, f);
|
|
1828
1834
|
}
|
|
1829
|
-
for (const
|
|
1830
|
-
b.filter((
|
|
1831
|
-
(
|
|
1832
|
-
) ||
|
|
1833
|
-
}
|
|
1834
|
-
if (
|
|
1835
|
-
const
|
|
1836
|
-
if (
|
|
1837
|
-
const
|
|
1838
|
-
return g.set(
|
|
1835
|
+
for (const S of l?.dialogues ?? [])
|
|
1836
|
+
b.filter((w) => w.type === "dialogue").find(
|
|
1837
|
+
(w) => w.streamIndex === S.streamIndex && w.index === S.index
|
|
1838
|
+
) || T !== S.streamIndex || (p?.createEvent(S.assEvent), b.push(S));
|
|
1839
|
+
}
|
|
1840
|
+
if (y.type === "NEW_SUBTITLE_FRAGMENTS") {
|
|
1841
|
+
const l = y.subtitles.map((d) => {
|
|
1842
|
+
if (d.type === "header") {
|
|
1843
|
+
const m = jn(d);
|
|
1844
|
+
return g.set(d.streamIndex, { header: m, dialogues: [] }), T === void 0 && (T = d.streamIndex, e({ type: "SELECTED_SUBTITLE_STREAM_UPDATED", streamIndex: d.streamIndex })), e({ type: "SUBTITLE_STREAMS_UPDATED", subtitlesStreams: [...g.values()] }), m;
|
|
1839
1845
|
} else {
|
|
1840
|
-
const
|
|
1841
|
-
if (!
|
|
1846
|
+
const m = g.get(d.streamIndex)?.header;
|
|
1847
|
+
if (!m)
|
|
1842
1848
|
throw new Error("SubtitleStream or its header is undefined");
|
|
1843
|
-
const v =
|
|
1844
|
-
return g.get(
|
|
1849
|
+
const v = Yn(m, d);
|
|
1850
|
+
return g.get(d.streamIndex)?.dialogues.push(v), e({ type: "SUBTITLE_STREAMS_UPDATED", subtitlesStreams: [...g.values()] }), v;
|
|
1845
1851
|
}
|
|
1846
1852
|
});
|
|
1847
|
-
for (const
|
|
1848
|
-
if (
|
|
1853
|
+
for (const d of l)
|
|
1854
|
+
if (d.type === "dialogue") {
|
|
1849
1855
|
if (b.filter((v) => v.type === "dialogue").find(
|
|
1850
|
-
(v) => v.streamIndex ===
|
|
1851
|
-
) ||
|
|
1856
|
+
(v) => v.streamIndex === d.streamIndex && v.index === d.index
|
|
1857
|
+
) || T !== d.streamIndex)
|
|
1852
1858
|
continue;
|
|
1853
|
-
|
|
1854
|
-
} else if (
|
|
1855
|
-
if (!
|
|
1856
|
-
const
|
|
1857
|
-
...
|
|
1859
|
+
p?.createEvent(d.assEvent), b.push(d);
|
|
1860
|
+
} else if (d.type === "header") {
|
|
1861
|
+
if (!p) {
|
|
1862
|
+
const m = Le(d.content), v = {
|
|
1863
|
+
...m,
|
|
1858
1864
|
info: {
|
|
1859
|
-
...
|
|
1865
|
+
...m.info,
|
|
1860
1866
|
ScaledBorderAndShadow: "no",
|
|
1861
1867
|
LayoutResX: "",
|
|
1862
1868
|
LayoutResY: ""
|
|
1863
1869
|
}
|
|
1864
|
-
},
|
|
1865
|
-
|
|
1870
|
+
}, S = Pt(v);
|
|
1871
|
+
p = new yr({
|
|
1872
|
+
onDemandRender: !1,
|
|
1866
1873
|
video: c,
|
|
1867
|
-
canvas:
|
|
1868
|
-
subContent:
|
|
1874
|
+
canvas: u,
|
|
1875
|
+
subContent: S,
|
|
1869
1876
|
workerUrl: s.workerUrl,
|
|
1870
1877
|
modernWasmUrl: s.wasmUrl,
|
|
1871
|
-
fonts:
|
|
1872
|
-
availableFonts: { ...Object.fromEntries(
|
|
1878
|
+
fonts: h.filter(Boolean).map(([f, w]) => w),
|
|
1879
|
+
availableFonts: { ...Object.fromEntries(h), "liberation sans": `${a}default.woff2` }
|
|
1873
1880
|
// fallbackFont: 'liberation sans',
|
|
1874
1881
|
});
|
|
1875
1882
|
}
|
|
1876
|
-
for (const
|
|
1877
|
-
const v =
|
|
1878
|
-
v &&
|
|
1883
|
+
for (const m in d.parsed.styles) {
|
|
1884
|
+
const v = d.parsed.styles.style[Number(m)];
|
|
1885
|
+
v && Xt(p, v);
|
|
1879
1886
|
}
|
|
1880
1887
|
} else
|
|
1881
1888
|
throw new Error("Unknown subtitlePart type");
|
|
1882
1889
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
new Uint8Array(
|
|
1890
|
+
y.type === "NEW_ATTACHMENTS" && (h = y.attachments.map((l) => [
|
|
1891
|
+
l.filename,
|
|
1892
|
+
new Uint8Array(l.data)
|
|
1886
1893
|
]));
|
|
1887
1894
|
}), () => {
|
|
1888
|
-
|
|
1895
|
+
clearInterval(x), p?.destroy();
|
|
1889
1896
|
};
|
|
1890
|
-
}),
|
|
1891
|
-
const { remuxerOptions: a } = r, { publicPath: s, workerUrl: c, bufferSize:
|
|
1897
|
+
}), Fn = dt(async ({ sendBack: e, receive: t, input: r, self: n, emit: o }) => {
|
|
1898
|
+
const { remuxerOptions: a } = r, { publicPath: s, workerUrl: c, bufferSize: u, length: h, read: p } = a;
|
|
1892
1899
|
let g;
|
|
1893
|
-
const b = new Promise((
|
|
1894
|
-
g =
|
|
1900
|
+
const b = new Promise((m) => {
|
|
1901
|
+
g = m;
|
|
1895
1902
|
});
|
|
1896
|
-
t(async (
|
|
1897
|
-
await b,
|
|
1903
|
+
t(async (m) => {
|
|
1904
|
+
await b, m.type === "DOWNLOADED_RANGES_UPDATED" && x.indexes.reduce((f, w) => {
|
|
1898
1905
|
const C = f.at(-1);
|
|
1899
|
-
if (C &&
|
|
1906
|
+
if (C && w.timestamp - C.timestamp < 5)
|
|
1900
1907
|
return f;
|
|
1901
1908
|
{
|
|
1902
|
-
const F =
|
|
1903
|
-
return F ? [...f, { ...
|
|
1909
|
+
const F = x.indexes.slice(w.index + 1).find((U) => U.timestamp > w.timestamp + 5);
|
|
1910
|
+
return F ? [...f, { ...w, duration: F.timestamp - w.timestamp }] : [...f, w];
|
|
1904
1911
|
}
|
|
1905
1912
|
}, []).filter((f) => {
|
|
1906
|
-
const
|
|
1907
|
-
return
|
|
1913
|
+
const w = x.indexes.at(f.index + 1), C = w ? w.pos : a.length, F = f.pos;
|
|
1914
|
+
return m.downloadedRanges.some(
|
|
1908
1915
|
({ startByteOffset: B, endByteOffset: V }) => B <= F && C <= V
|
|
1909
1916
|
);
|
|
1910
|
-
}).sort((f,
|
|
1917
|
+
}).sort((f, w) => f.timestamp - w.timestamp).forEach((f) => d(f));
|
|
1911
1918
|
});
|
|
1912
|
-
const
|
|
1919
|
+
const T = await Kt({
|
|
1913
1920
|
publicPath: s,
|
|
1914
1921
|
workerUrl: c,
|
|
1915
|
-
bufferSize:
|
|
1916
|
-
length:
|
|
1917
|
-
read:
|
|
1918
|
-
}),
|
|
1919
|
-
let
|
|
1920
|
-
const
|
|
1921
|
-
if (
|
|
1922
|
-
const
|
|
1923
|
-
blob:
|
|
1922
|
+
bufferSize: u,
|
|
1923
|
+
length: h,
|
|
1924
|
+
read: p
|
|
1925
|
+
}), x = await T.init(), y = new qt({ concurrency: 1 });
|
|
1926
|
+
let l = [];
|
|
1927
|
+
const d = (m) => y.add(async () => {
|
|
1928
|
+
if (l.find((U) => U.index.index === m.index)) return;
|
|
1929
|
+
const v = await T.readKeyframe(m.timestamp), S = new Blob([v], { type: "image/png" }), f = URL.createObjectURL(S), w = x.indexes.at(m.index + 1), C = w ? w.timestamp - m.timestamp : x.info.input.duration - m.timestamp, F = {
|
|
1930
|
+
blob: S,
|
|
1924
1931
|
url: f,
|
|
1925
|
-
timestamp:
|
|
1926
|
-
duration:
|
|
1927
|
-
index:
|
|
1932
|
+
timestamp: m.timestamp,
|
|
1933
|
+
duration: m.duration ?? C,
|
|
1934
|
+
index: m
|
|
1928
1935
|
};
|
|
1929
|
-
|
|
1936
|
+
l.push(F), e({ type: "NEW_THUMBNAIL", thumbnail: F });
|
|
1930
1937
|
});
|
|
1931
1938
|
return g(), () => {
|
|
1932
|
-
|
|
1939
|
+
T.destroy();
|
|
1933
1940
|
};
|
|
1934
|
-
}),
|
|
1941
|
+
}), Vn = gr({
|
|
1935
1942
|
types: {},
|
|
1936
1943
|
actions: {
|
|
1937
|
-
isReady:
|
|
1944
|
+
isReady: br(({ context: e, enqueue: t }) => {
|
|
1938
1945
|
e.videoElement && e.canvasElement && e.remuxerOptions && e.subtitlesRendererOptions && e.mediaSourceOptions && t.raise({ type: "IS_READY" });
|
|
1939
1946
|
})
|
|
1940
1947
|
},
|
|
1941
1948
|
actors: {
|
|
1942
|
-
mediaLogic:
|
|
1943
|
-
mediaSourceLogic:
|
|
1944
|
-
dataSourceLogic:
|
|
1945
|
-
thumbnailsLogic:
|
|
1946
|
-
subtitlesLogic:
|
|
1949
|
+
mediaLogic: Mn,
|
|
1950
|
+
mediaSourceLogic: $n,
|
|
1951
|
+
dataSourceLogic: Dn,
|
|
1952
|
+
thumbnailsLogic: Fn,
|
|
1953
|
+
subtitlesLogic: zn
|
|
1947
1954
|
}
|
|
1948
1955
|
}).createMachine({
|
|
1949
1956
|
context: {
|
|
@@ -1972,7 +1979,7 @@ ${d}`),
|
|
|
1972
1979
|
on: {
|
|
1973
1980
|
SET_VIDEO_ELEMENT: {
|
|
1974
1981
|
actions: [
|
|
1975
|
-
|
|
1982
|
+
z({
|
|
1976
1983
|
videoElement: ({ event: e }) => e.videoElement
|
|
1977
1984
|
}),
|
|
1978
1985
|
{ type: "isReady" }
|
|
@@ -1980,7 +1987,7 @@ ${d}`),
|
|
|
1980
1987
|
},
|
|
1981
1988
|
SET_CANVAS_ELEMENT: {
|
|
1982
1989
|
actions: [
|
|
1983
|
-
|
|
1990
|
+
z({
|
|
1984
1991
|
canvasElement: ({ event: e }) => e.canvasElement
|
|
1985
1992
|
}),
|
|
1986
1993
|
{ type: "isReady" }
|
|
@@ -1988,7 +1995,7 @@ ${d}`),
|
|
|
1988
1995
|
},
|
|
1989
1996
|
IS_READY: {
|
|
1990
1997
|
target: ".OK",
|
|
1991
|
-
actions:
|
|
1998
|
+
actions: z({ isReady: () => !0 })
|
|
1992
1999
|
}
|
|
1993
2000
|
},
|
|
1994
2001
|
states: {
|
|
@@ -1996,7 +2003,7 @@ ${d}`),
|
|
|
1996
2003
|
on: {
|
|
1997
2004
|
MEDIA_SOURCE_OPTIONS: {
|
|
1998
2005
|
actions: [
|
|
1999
|
-
|
|
2006
|
+
z({
|
|
2000
2007
|
mediaSourceOptions: ({ event: e }) => e.mediaSourceOptions
|
|
2001
2008
|
}),
|
|
2002
2009
|
{ type: "isReady" }
|
|
@@ -2004,7 +2011,7 @@ ${d}`),
|
|
|
2004
2011
|
},
|
|
2005
2012
|
REMUXER_OPTIONS: {
|
|
2006
2013
|
actions: [
|
|
2007
|
-
|
|
2014
|
+
z({
|
|
2008
2015
|
remuxerOptions: ({ event: e }) => e.remuxerOptions
|
|
2009
2016
|
}),
|
|
2010
2017
|
{ type: "isReady" }
|
|
@@ -2012,7 +2019,7 @@ ${d}`),
|
|
|
2012
2019
|
},
|
|
2013
2020
|
SUBTITLES_RENDERER_OPTIONS: {
|
|
2014
2021
|
actions: [
|
|
2015
|
-
|
|
2022
|
+
z({
|
|
2016
2023
|
subtitlesRendererOptions: ({ event: e }) => e.subtitlesRendererOptions
|
|
2017
2024
|
}),
|
|
2018
2025
|
{ type: "isReady" }
|
|
@@ -2055,57 +2062,60 @@ ${d}`),
|
|
|
2055
2062
|
}
|
|
2056
2063
|
],
|
|
2057
2064
|
on: {
|
|
2058
|
-
PLAY: { actions:
|
|
2059
|
-
PAUSE: { actions:
|
|
2060
|
-
SET_TIME: { actions:
|
|
2061
|
-
SET_PLAYBACK_RATE: { actions:
|
|
2062
|
-
PLAYING: { actions:
|
|
2063
|
-
PAUSED: { actions:
|
|
2064
|
-
ENDED: { actions:
|
|
2065
|
-
TIME_UPDATE: { actions:
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2065
|
+
PLAY: { actions: G("media", ({ event: e }) => e) },
|
|
2066
|
+
PAUSE: { actions: G("media", ({ event: e }) => e) },
|
|
2067
|
+
SET_TIME: { actions: G("media", ({ event: e }) => e) },
|
|
2068
|
+
SET_PLAYBACK_RATE: { actions: G("media", ({ event: e }) => e) },
|
|
2069
|
+
PLAYING: { actions: z({ media: ({ context: e }) => ({ ...e.media, paused: !1 }) }) },
|
|
2070
|
+
PAUSED: { actions: z({ media: ({ context: e }) => ({ ...e.media, paused: !0 }) }) },
|
|
2071
|
+
ENDED: { actions: z({ media: ({ context: e }) => ({ ...e.media, paused: !0 }) }) },
|
|
2072
|
+
TIME_UPDATE: { actions: [
|
|
2073
|
+
z({ media: ({ context: e, event: t }) => ({ ...e.media, currentTime: t.currentTime }) }),
|
|
2074
|
+
G("subtitles", ({ event: e }) => e)
|
|
2075
|
+
] },
|
|
2076
|
+
VOLUME_UPDATE: { actions: z({ media: ({ context: e, event: t }) => ({ ...e.media, muted: t.muted, volume: t.volume }) }) },
|
|
2077
|
+
SET_VOLUME: { actions: G("media", ({ event: e }) => e) },
|
|
2078
|
+
PLAYBACK_RATE_UPDATE: { actions: z({ media: ({ context: e, event: t }) => ({ ...e.media, playbackRate: t.playbackRate }) }) },
|
|
2079
|
+
DURATION_UPDATE: { actions: z({ media: ({ context: e, event: t }) => ({ ...e.media, duration: t.duration }) }) },
|
|
2080
|
+
NEED_DATA: { actions: G("dataSource", ({ event: e }) => e) },
|
|
2081
|
+
METADATA: { actions: G("mediaSource", ({ event: e }) => e) },
|
|
2082
|
+
SEEKING: { actions: G("dataSource", ({ event: e }) => e) },
|
|
2083
|
+
DATA: { actions: G("mediaSource", ({ event: e }) => e) },
|
|
2084
|
+
TIMESTAMP_OFFSET: { actions: G("mediaSource", ({ event: e }) => e) },
|
|
2085
|
+
NEW_THUMBNAIL: { actions: [z({ thumbnails: ({ context: e, event: t }) => [...e.thumbnails, t.thumbnail] })] },
|
|
2086
|
+
DOWNLOADED_RANGES_UPDATED: { actions: G("thumbnails", ({ event: e }) => e) },
|
|
2077
2087
|
INDEXES: {
|
|
2078
2088
|
actions: [
|
|
2079
|
-
|
|
2089
|
+
z({ indexes: ({ event: e }) => e.indexes })
|
|
2080
2090
|
]
|
|
2081
2091
|
},
|
|
2082
2092
|
NEW_ATTACHMENTS: {
|
|
2083
2093
|
actions: [
|
|
2084
|
-
|
|
2085
|
-
|
|
2094
|
+
z({ attachments: ({ context: e, event: t }) => [...e.attachments, ...t.attachments] }),
|
|
2095
|
+
G("subtitles", ({ event: e }) => e)
|
|
2086
2096
|
]
|
|
2087
2097
|
},
|
|
2088
2098
|
NEW_SUBTITLE_FRAGMENTS: {
|
|
2089
2099
|
actions: [
|
|
2090
|
-
|
|
2091
|
-
|
|
2100
|
+
z({ subtitleFragments: ({ context: e, event: t }) => [...e.subtitleFragments, ...t.subtitles] }),
|
|
2101
|
+
G("subtitles", ({ event: e }) => e)
|
|
2092
2102
|
// emit(({ event }) => ({ type: 'NEW_SUBTITLE_FRAGMENTS', subtitles: event.subtitles }))
|
|
2093
2103
|
]
|
|
2094
2104
|
},
|
|
2095
2105
|
SUBTITLE_STREAMS_UPDATED: {
|
|
2096
2106
|
actions: [
|
|
2097
|
-
|
|
2098
|
-
|
|
2107
|
+
z({ subtitleStreams: ({ event: e }) => e.subtitlesStreams }),
|
|
2108
|
+
G("subtitles", ({ event: e }) => e)
|
|
2099
2109
|
]
|
|
2100
2110
|
},
|
|
2101
2111
|
SELECT_SUBTITLE_STREAM: {
|
|
2102
2112
|
actions: [
|
|
2103
|
-
|
|
2113
|
+
G("subtitles", ({ event: e }) => e)
|
|
2104
2114
|
]
|
|
2105
2115
|
},
|
|
2106
2116
|
SELECTED_SUBTITLE_STREAM_UPDATED: {
|
|
2107
2117
|
actions: [
|
|
2108
|
-
|
|
2118
|
+
z({ selectedSubtitleStreamIndex: ({ event: e }) => e.streamIndex })
|
|
2109
2119
|
]
|
|
2110
2120
|
},
|
|
2111
2121
|
DESTROY: { target: "WAITING" }
|
|
@@ -2113,11 +2123,11 @@ ${d}`),
|
|
|
2113
2123
|
},
|
|
2114
2124
|
DESTROYED: {}
|
|
2115
2125
|
}
|
|
2116
|
-
}),
|
|
2117
|
-
const [r, n] =
|
|
2126
|
+
}), N = Er(Vn), Re = vr({}), at = (e, t) => {
|
|
2127
|
+
const [r, n] = J(() => localStorage.getItem(e) ?? t), o = (a) => {
|
|
2118
2128
|
localStorage.setItem(e, a), n(a), window.dispatchEvent(new Event("storage"));
|
|
2119
2129
|
};
|
|
2120
|
-
return
|
|
2130
|
+
return j(() => {
|
|
2121
2131
|
const a = () => {
|
|
2122
2132
|
const s = localStorage.getItem(e);
|
|
2123
2133
|
n(s ?? t);
|
|
@@ -2130,27 +2140,75 @@ ${d}`),
|
|
|
2130
2140
|
if (!e) throw new Error("Media actor not found");
|
|
2131
2141
|
if (!r) throw new Error("Duration not found");
|
|
2132
2142
|
r === n ? (e.send({ type: "SET_TIME", value: 0 }), e.send({ type: "PLAY" })) : t ? e.send({ type: "PLAY" }) : e.send({ type: "PAUSE" });
|
|
2133
|
-
},
|
|
2143
|
+
}, he = {
|
|
2144
|
+
headings: {
|
|
2145
|
+
small: `
|
|
2146
|
+
font-weight: 500;
|
|
2147
|
+
font-size: 1.8rem;
|
|
2148
|
+
line-height: 1.9rem;
|
|
2149
|
+
@media (min-width: 960px) {
|
|
2150
|
+
font-size: 1.8rem;
|
|
2151
|
+
line-height: 2.2rem;
|
|
2152
|
+
}
|
|
2153
|
+
@media (min-width: 2560px) {
|
|
2154
|
+
font-size: 2.2rem;
|
|
2155
|
+
line-height: 2.6rem;
|
|
2156
|
+
}
|
|
2157
|
+
`
|
|
2158
|
+
},
|
|
2159
|
+
bMedium: {
|
|
2160
|
+
bold: `
|
|
2161
|
+
font-weight: 600;
|
|
2162
|
+
font-size: 1.2rem;
|
|
2163
|
+
line-height: 1.7rem;
|
|
2164
|
+
@media (min-width: 960px) {
|
|
2165
|
+
font-size: 1.4rem;
|
|
2166
|
+
line-height: 2rem;
|
|
2167
|
+
}
|
|
2168
|
+
`,
|
|
2169
|
+
regular: `
|
|
2170
|
+
font-weight: 400;
|
|
2171
|
+
font-size: 1.2rem;
|
|
2172
|
+
line-height: 1.7rem;
|
|
2173
|
+
@media (min-width: 960px) {
|
|
2174
|
+
font-size: 1.4rem;
|
|
2175
|
+
line-height: 2rem;
|
|
2176
|
+
}
|
|
2177
|
+
`
|
|
2178
|
+
},
|
|
2179
|
+
bSmall: {
|
|
2180
|
+
regular: `
|
|
2181
|
+
font-weight: 400;
|
|
2182
|
+
font-size: 1rem;
|
|
2183
|
+
line-height: 1.4rem;
|
|
2184
|
+
@media (min-width: 960px) {
|
|
2185
|
+
font-size: 1.2rem;
|
|
2186
|
+
line-height: 1.7rem;
|
|
2187
|
+
}
|
|
2188
|
+
`
|
|
2189
|
+
}
|
|
2190
|
+
}, Wn = K`
|
|
2134
2191
|
top: unset !important;
|
|
2135
2192
|
left: unset !important;
|
|
2136
2193
|
width: 100%;
|
|
2137
2194
|
height: 100%;
|
|
2138
2195
|
margin: auto;
|
|
2139
2196
|
pointer-events: none;
|
|
2140
|
-
`,
|
|
2197
|
+
`, Bn = K`
|
|
2141
2198
|
position: absolute;
|
|
2142
2199
|
top: 0;
|
|
2143
2200
|
left: 0;
|
|
2144
2201
|
width: 100%;
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
margin-top: 2.5rem;
|
|
2148
|
-
font-size: 2rem;
|
|
2202
|
+
padding: 2.4rem;
|
|
2203
|
+
${he.headings.small}
|
|
2149
2204
|
color: white;
|
|
2150
2205
|
text-shadow: 0 0 4px rgba(0, 0, 0, 1);
|
|
2151
2206
|
z-index: 2;
|
|
2152
2207
|
pointer-events: none;
|
|
2153
|
-
|
|
2208
|
+
|
|
2209
|
+
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%);
|
|
2210
|
+
transition: opacity 0.1s cubic-bezier(.4,0,1,1);
|
|
2211
|
+
`, Xn = K`
|
|
2154
2212
|
position: absolute;
|
|
2155
2213
|
top: 0;
|
|
2156
2214
|
left: 0;
|
|
@@ -2165,58 +2223,33 @@ ${d}`),
|
|
|
2165
2223
|
align-items: center;
|
|
2166
2224
|
pointer-events: none;
|
|
2167
2225
|
`, Gn = ({ loadingInformation: e }) => {
|
|
2168
|
-
const t =
|
|
2226
|
+
const t = N.useActorRef(), r = N.useSelector((c) => c.context.media.duration), n = Te(Re), [o, a] = J(), s = ot((c) => {
|
|
2169
2227
|
a(c);
|
|
2170
2228
|
}, []);
|
|
2171
|
-
return
|
|
2229
|
+
return j(() => {
|
|
2172
2230
|
o && t.send({
|
|
2173
2231
|
type: "SET_CANVAS_ELEMENT",
|
|
2174
2232
|
canvasElement: o
|
|
2175
2233
|
});
|
|
2176
|
-
}, [o]), /* @__PURE__ */ $(
|
|
2177
|
-
n.title
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
return Math.pow(t, lr);
|
|
2184
|
-
}, St = (e) => {
|
|
2185
|
-
const t = Math.max(ur, Math.min(gt, e));
|
|
2186
|
-
return Math.pow(t, gt / lr);
|
|
2187
|
-
}, xe = {
|
|
2188
|
-
bMedium: {
|
|
2189
|
-
bold: `
|
|
2190
|
-
font-weight: 600;
|
|
2191
|
-
font-size: 1.2rem;
|
|
2192
|
-
line-height: 1.7rem;
|
|
2193
|
-
@media (min-width: 960px) {
|
|
2194
|
-
font-size: 1.4rem;
|
|
2195
|
-
line-height: 2rem;
|
|
2196
|
-
}
|
|
2197
|
-
`,
|
|
2198
|
-
regular: `
|
|
2199
|
-
font-weight: 400;
|
|
2200
|
-
font-size: 1.2rem;
|
|
2201
|
-
line-height: 1.7rem;
|
|
2202
|
-
@media (min-width: 960px) {
|
|
2203
|
-
font-size: 1.4rem;
|
|
2204
|
-
line-height: 2rem;
|
|
2205
|
-
}
|
|
2206
|
-
`
|
|
2207
|
-
},
|
|
2208
|
-
bSmall: {
|
|
2209
|
-
regular: `
|
|
2210
|
-
font-weight: 400;
|
|
2211
|
-
font-size: 1rem;
|
|
2212
|
-
line-height: 1.4rem;
|
|
2213
|
-
@media (min-width: 960px) {
|
|
2214
|
-
font-size: 1.2rem;
|
|
2215
|
-
line-height: 1.7rem;
|
|
2234
|
+
}, [o]), /* @__PURE__ */ $(lr, { children: [
|
|
2235
|
+
n.title ? /* @__PURE__ */ E(
|
|
2236
|
+
"div",
|
|
2237
|
+
{
|
|
2238
|
+
css: Bn,
|
|
2239
|
+
style: { ...n.hideUI ? { opacity: "0", pointerEvents: "none" } : {} },
|
|
2240
|
+
children: n.title
|
|
2216
2241
|
}
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2242
|
+
) : void 0,
|
|
2243
|
+
r === void 0 && e ? /* @__PURE__ */ E("div", { css: Xn, children: e }) : void 0,
|
|
2244
|
+
/* @__PURE__ */ E("canvas", { ref: s, css: Wn })
|
|
2245
|
+
] });
|
|
2246
|
+
}, ur = 1e-4, yt = 1, dr = 2, fr = (e) => {
|
|
2247
|
+
const t = Math.max(ur, Math.min(yt, e));
|
|
2248
|
+
return Math.pow(t, dr);
|
|
2249
|
+
}, wt = (e) => {
|
|
2250
|
+
const t = Math.max(ur, Math.min(yt, e));
|
|
2251
|
+
return Math.pow(t, yt / dr);
|
|
2252
|
+
}, Hn = (e) => K`
|
|
2220
2253
|
display: flex;
|
|
2221
2254
|
justify-content: flex-end;
|
|
2222
2255
|
|
|
@@ -2226,7 +2259,7 @@ ${d}`),
|
|
|
2226
2259
|
z-index: 3;
|
|
2227
2260
|
|
|
2228
2261
|
* {
|
|
2229
|
-
${
|
|
2262
|
+
${he.bMedium.regular}
|
|
2230
2263
|
}
|
|
2231
2264
|
|
|
2232
2265
|
${e === "sm" && K`
|
|
@@ -2238,7 +2271,7 @@ ${d}`),
|
|
|
2238
2271
|
${e === "lg" && K`
|
|
2239
2272
|
padding: 1.2rem!important;
|
|
2240
2273
|
`}
|
|
2241
|
-
`,
|
|
2274
|
+
`, ye = ({
|
|
2242
2275
|
id: e,
|
|
2243
2276
|
toolTipText: t,
|
|
2244
2277
|
text: r,
|
|
@@ -2247,9 +2280,9 @@ ${d}`),
|
|
|
2247
2280
|
offset: a = 20,
|
|
2248
2281
|
tooltipPlace: s = "top",
|
|
2249
2282
|
disabled: c = !1,
|
|
2250
|
-
size:
|
|
2283
|
+
size: u = "md"
|
|
2251
2284
|
/* md */
|
|
2252
|
-
}) => /* @__PURE__ */ $(
|
|
2285
|
+
}) => /* @__PURE__ */ $(lr, { children: [
|
|
2253
2286
|
/* @__PURE__ */ E(
|
|
2254
2287
|
"div",
|
|
2255
2288
|
{
|
|
@@ -2263,29 +2296,29 @@ ${d}`),
|
|
|
2263
2296
|
}
|
|
2264
2297
|
),
|
|
2265
2298
|
!c && /* @__PURE__ */ E(
|
|
2266
|
-
|
|
2299
|
+
Nr,
|
|
2267
2300
|
{
|
|
2268
|
-
css:
|
|
2301
|
+
css: Hn(u),
|
|
2269
2302
|
id: e,
|
|
2270
2303
|
noArrow: !0,
|
|
2271
2304
|
children: t
|
|
2272
2305
|
}
|
|
2273
2306
|
)
|
|
2274
2307
|
] }), qn = ({ ref: e, defaultValue: t }) => {
|
|
2275
|
-
const [r, n] =
|
|
2308
|
+
const [r, n] = J(t), [o, a] = J(!1), s = (c) => {
|
|
2276
2309
|
if (a(!0), !e.current) return;
|
|
2277
|
-
const { clientX:
|
|
2278
|
-
n(Math.min(Math.max((
|
|
2310
|
+
const { clientX: u } = c, { left: h, right: p } = e.current.getBoundingClientRect();
|
|
2311
|
+
n(Math.min(Math.max((u - h) / (p - h), 0), 1));
|
|
2279
2312
|
};
|
|
2280
|
-
return
|
|
2313
|
+
return j(() => {
|
|
2281
2314
|
if (!o) return;
|
|
2282
|
-
const c = () => a(!1),
|
|
2315
|
+
const c = () => a(!1), u = (h) => {
|
|
2283
2316
|
if (!e.current) return;
|
|
2284
|
-
const { clientX:
|
|
2285
|
-
n(Math.min(Math.max((
|
|
2317
|
+
const { clientX: p } = h, { left: g, right: b } = e.current.getBoundingClientRect();
|
|
2318
|
+
n(Math.min(Math.max((p - g) / (b - g), 0), 1));
|
|
2286
2319
|
};
|
|
2287
|
-
return document.addEventListener("mousemove",
|
|
2288
|
-
document.removeEventListener("mousemove",
|
|
2320
|
+
return document.addEventListener("mousemove", u), document.addEventListener("mouseup", c), () => {
|
|
2321
|
+
document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", c);
|
|
2289
2322
|
};
|
|
2290
2323
|
}, [o]), {
|
|
2291
2324
|
value: r,
|
|
@@ -2293,7 +2326,7 @@ ${d}`),
|
|
|
2293
2326
|
scrub: s,
|
|
2294
2327
|
setValue: n
|
|
2295
2328
|
};
|
|
2296
|
-
},
|
|
2329
|
+
}, Kn = K`
|
|
2297
2330
|
position: relative;
|
|
2298
2331
|
height: .4rem;
|
|
2299
2332
|
|
|
@@ -2334,7 +2367,7 @@ ${d}`),
|
|
|
2334
2367
|
justify-content: center;
|
|
2335
2368
|
|
|
2336
2369
|
text-shadow: 0 0 4px rgba(0, 0, 0, 1);
|
|
2337
|
-
${
|
|
2370
|
+
${he.bMedium.bold}
|
|
2338
2371
|
|
|
2339
2372
|
position: absolute;
|
|
2340
2373
|
top: -2.5rem;
|
|
@@ -2404,57 +2437,57 @@ ${d}`),
|
|
|
2404
2437
|
object-fit: cover;
|
|
2405
2438
|
}
|
|
2406
2439
|
}
|
|
2407
|
-
`,
|
|
2408
|
-
const e =
|
|
2409
|
-
const
|
|
2410
|
-
|
|
2440
|
+
`, Jn = () => {
|
|
2441
|
+
const e = N.useActorRef(), t = N.useSelector((d) => d.context.media.currentTime), r = N.useSelector((d) => d.context.media.duration), n = N.useSelector((d) => d.context.indexes), o = N.useSelector((d) => d.context.thumbnails), a = Te(Re), s = xe(null), { scrub: c, value: u } = qn({ ref: s }), [h, p] = J(void 0), g = (d) => {
|
|
2442
|
+
const v = d.nativeEvent.offsetX / d.currentTarget.offsetWidth * (r ?? 0);
|
|
2443
|
+
p(v);
|
|
2411
2444
|
}, b = () => {
|
|
2412
|
-
s.current &&
|
|
2413
|
-
},
|
|
2414
|
-
() => a.downloadedRanges?.map((
|
|
2445
|
+
s.current && p(void 0);
|
|
2446
|
+
}, T = pe(
|
|
2447
|
+
() => a.downloadedRanges?.map((d, m) => {
|
|
2415
2448
|
if (!a.size || !r) return null;
|
|
2416
|
-
const
|
|
2417
|
-
if (!
|
|
2418
|
-
const
|
|
2419
|
-
return /* @__PURE__ */ E("div", { className: "loaded-part", style: { transform: `scaleX(${F})`, marginLeft: `${U}%` } },
|
|
2449
|
+
const v = n.filter((B) => d.startByteOffset <= B.pos && B.pos <= d.endByteOffset), S = v.at(0), f = v.at(-1);
|
|
2450
|
+
if (!S || !f) return null;
|
|
2451
|
+
const w = S.timestamp / r, C = f.timestamp / r, F = Number((C - w).toFixed(2)), U = w * 100;
|
|
2452
|
+
return /* @__PURE__ */ E("div", { className: "loaded-part", style: { transform: `scaleX(${F})`, marginLeft: `${U}%` } }, m);
|
|
2420
2453
|
}) ?? [],
|
|
2421
|
-
[r, n.length, a.downloadedRanges?.map(({ startByteOffset:
|
|
2422
|
-
),
|
|
2423
|
-
if (!
|
|
2424
|
-
const
|
|
2425
|
-
return `${
|
|
2426
|
-
}, [
|
|
2427
|
-
|
|
2428
|
-
if (!e ||
|
|
2429
|
-
const
|
|
2430
|
-
e.send({ type: "SET_TIME", value:
|
|
2431
|
-
}, [e,
|
|
2432
|
-
const y = pe(() => typeof r != "number" || typeof t != "number" ? 0 : 1 / ((r ?? 0) / (t ?? 0)), [r, t]),
|
|
2433
|
-
if (!(!o.length || !
|
|
2454
|
+
[r, n.length, a.downloadedRanges?.map(({ startByteOffset: d, endByteOffset: m }) => `${d}/${m}`).join(",")]
|
|
2455
|
+
), x = pe(() => {
|
|
2456
|
+
if (!h || h < 0) return;
|
|
2457
|
+
const d = Math.floor(h / 3600), m = Math.floor((h - d * 3600) / 60), v = Math.floor(h - d * 3600 - m * 60);
|
|
2458
|
+
return `${d > 0 ? `${d}:` : ""}${m < 10 ? "0" : ""}${m}:${v < 10 ? "0" : ""}${v}`;
|
|
2459
|
+
}, [h]);
|
|
2460
|
+
j(() => {
|
|
2461
|
+
if (!e || u === void 0 || !r) return;
|
|
2462
|
+
const d = u * r;
|
|
2463
|
+
e.send({ type: "SET_TIME", value: d });
|
|
2464
|
+
}, [e, u, r]);
|
|
2465
|
+
const y = pe(() => typeof r != "number" || typeof t != "number" ? 0 : 1 / ((r ?? 0) / (t ?? 0)), [r, t]), l = pe(() => {
|
|
2466
|
+
if (!(!o.length || !h))
|
|
2434
2467
|
return o.find(
|
|
2435
|
-
({ timestamp:
|
|
2468
|
+
({ timestamp: d, duration: m }) => d <= h && h <= d + m
|
|
2436
2469
|
);
|
|
2437
|
-
}, [o.length,
|
|
2470
|
+
}, [o.length, h]);
|
|
2438
2471
|
return /* @__PURE__ */ $(
|
|
2439
2472
|
"div",
|
|
2440
2473
|
{
|
|
2441
|
-
css:
|
|
2474
|
+
css: Kn,
|
|
2442
2475
|
ref: s,
|
|
2443
2476
|
className: "progress-bar",
|
|
2444
2477
|
onMouseMove: g,
|
|
2445
2478
|
onMouseOut: b,
|
|
2446
2479
|
children: [
|
|
2447
2480
|
/* @__PURE__ */ E("div", { className: "background-bar" }),
|
|
2448
|
-
|
|
2481
|
+
h ? /* @__PURE__ */ E(
|
|
2449
2482
|
"div",
|
|
2450
2483
|
{
|
|
2451
2484
|
className: "cursor-time",
|
|
2452
|
-
style: { left: `clamp(1.8rem, ${1 / ((r ?? 0) / (
|
|
2453
|
-
children:
|
|
2485
|
+
style: { left: `clamp(1.8rem, ${1 / ((r ?? 0) / (h ?? 1)) * 100}%, calc(100% - 1.8rem))` },
|
|
2486
|
+
children: x
|
|
2454
2487
|
}
|
|
2455
2488
|
) : void 0,
|
|
2456
2489
|
/* @__PURE__ */ E("div", { className: "progress" }),
|
|
2457
|
-
/* @__PURE__ */ E("div", { className: "loaded", children:
|
|
2490
|
+
/* @__PURE__ */ E("div", { className: "loaded", children: T }),
|
|
2458
2491
|
/* @__PURE__ */ E("div", { className: "hover" }),
|
|
2459
2492
|
/* @__PURE__ */ E("div", { className: "play-container", children: /* @__PURE__ */ E("div", { className: "play", style: { transform: `scaleX(${y})` } }) }),
|
|
2460
2493
|
/* @__PURE__ */ E("div", { className: "chapters" }),
|
|
@@ -2464,8 +2497,8 @@ ${d}`),
|
|
|
2464
2497
|
"div",
|
|
2465
2498
|
{
|
|
2466
2499
|
className: "thumbnail",
|
|
2467
|
-
style: { left: `clamp(12.5rem, ${1 / ((r ?? 0) / (
|
|
2468
|
-
children:
|
|
2500
|
+
style: { left: `clamp(12.5rem, ${1 / ((r ?? 0) / (h ?? 1)) * 100}%, calc(100% - 12.5rem))` },
|
|
2501
|
+
children: l ? /* @__PURE__ */ E("img", { src: l.url }) : void 0
|
|
2469
2502
|
}
|
|
2470
2503
|
)
|
|
2471
2504
|
]
|
|
@@ -2475,7 +2508,119 @@ ${d}`),
|
|
|
2475
2508
|
if (e === void 0) return "0:00";
|
|
2476
2509
|
const t = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), n = Math.floor(e % 60);
|
|
2477
2510
|
return t > 0 ? `${t}:${r < 10 ? "0" : ""}${r}:${n < 10 ? "0" : ""}${n}` : `${r}:${n < 10 ? "0" : ""}${n}`;
|
|
2478
|
-
},
|
|
2511
|
+
}, Zn = (e, t) => `${Gt(e)} / ${Gt(t)}`, Qn = "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", eo = K`
|
|
2512
|
+
display: flex;
|
|
2513
|
+
align-items: center;
|
|
2514
|
+
justify-content: center;
|
|
2515
|
+
flex-direction: column;
|
|
2516
|
+
width: 100%;
|
|
2517
|
+
|
|
2518
|
+
.playback-slider {
|
|
2519
|
+
display: flex;
|
|
2520
|
+
align-items: center;
|
|
2521
|
+
|
|
2522
|
+
padding: 8px 4px;
|
|
2523
|
+
margin: 0 2px;
|
|
2524
|
+
|
|
2525
|
+
cursor: pointer;
|
|
2526
|
+
|
|
2527
|
+
> div {
|
|
2528
|
+
position: relative;
|
|
2529
|
+
|
|
2530
|
+
background: #ccc;
|
|
2531
|
+
border-radius: 4px;
|
|
2532
|
+
|
|
2533
|
+
width: 120px;
|
|
2534
|
+
height: 3px;
|
|
2535
|
+
@media (min-width: 768px) {
|
|
2536
|
+
height: 4px;
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
.playback-handle {
|
|
2541
|
+
position: absolute;
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
background: #ffffff;
|
|
2545
|
+
border-radius: 50%;
|
|
2546
|
+
transform: translateX(-50%);
|
|
2547
|
+
pointer-events: none;
|
|
2548
|
+
|
|
2549
|
+
width: 10px;
|
|
2550
|
+
height: 10px;
|
|
2551
|
+
top: -3.5px;
|
|
2552
|
+
@media (min-width: 768px) {
|
|
2553
|
+
width: 12px;
|
|
2554
|
+
height: 12px;
|
|
2555
|
+
top: -4px;
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
`, to = () => {
|
|
2560
|
+
const e = N.useSelector((v) => v.context.media.playbackRate), t = N.useActorRef(), r = xe(null), [n, o] = J(!1), a = 0.25, s = 3, c = s - a, u = (v, S = 0.05) => Math.round(v / S) * S, h = u(e || 1), p = (v) => (v - a) / c * 100, g = (v) => {
|
|
2561
|
+
if (!r.current) return h;
|
|
2562
|
+
const S = r.current.getBoundingClientRect(), f = v - S.left, w = Math.max(0, Math.min(f, S.width)) / S.width, C = a + w * c;
|
|
2563
|
+
return u(C);
|
|
2564
|
+
}, b = (v) => {
|
|
2565
|
+
o(!0);
|
|
2566
|
+
const S = g(v.clientX);
|
|
2567
|
+
t.send({ type: "SET_PLAYBACK_RATE", playbackRate: S });
|
|
2568
|
+
}, T = (v) => {
|
|
2569
|
+
if (!n) return;
|
|
2570
|
+
const S = g(v.clientX);
|
|
2571
|
+
t.send({ type: "SET_PLAYBACK_RATE", playbackRate: S });
|
|
2572
|
+
}, x = () => {
|
|
2573
|
+
o(!1);
|
|
2574
|
+
}, y = (v) => {
|
|
2575
|
+
v.preventDefault();
|
|
2576
|
+
const S = 0.05;
|
|
2577
|
+
let f = h;
|
|
2578
|
+
v.deltaY < 0 ? f = Math.min(s, f + S) : f = Math.max(a, f - S), t.send({ type: "SET_PLAYBACK_RATE", playbackRate: f });
|
|
2579
|
+
};
|
|
2580
|
+
j(() => (window.addEventListener("mousemove", T), window.addEventListener("mouseup", x), () => {
|
|
2581
|
+
window.removeEventListener("mousemove", T), window.removeEventListener("mouseup", x);
|
|
2582
|
+
}), [n]), j(() => {
|
|
2583
|
+
const v = r.current;
|
|
2584
|
+
return v && v.addEventListener("wheel", y, { passive: !1 }), () => {
|
|
2585
|
+
v && v.removeEventListener("wheel", y);
|
|
2586
|
+
};
|
|
2587
|
+
}, [e]);
|
|
2588
|
+
const l = p(h);
|
|
2589
|
+
return /* @__PURE__ */ $("div", { css: eo, children: [
|
|
2590
|
+
/* @__PURE__ */ $("div", { children: [
|
|
2591
|
+
h.toFixed(2),
|
|
2592
|
+
"x"
|
|
2593
|
+
] }),
|
|
2594
|
+
/* @__PURE__ */ E(
|
|
2595
|
+
"div",
|
|
2596
|
+
{
|
|
2597
|
+
className: "playback-slider",
|
|
2598
|
+
ref: r,
|
|
2599
|
+
onMouseDown: b,
|
|
2600
|
+
children: /* @__PURE__ */ E(
|
|
2601
|
+
"div",
|
|
2602
|
+
{
|
|
2603
|
+
style: {
|
|
2604
|
+
background: `linear-gradient(to right,
|
|
2605
|
+
#fff 0% ${l}%,
|
|
2606
|
+
#3A3A3A ${l}% 100%
|
|
2607
|
+
)`
|
|
2608
|
+
},
|
|
2609
|
+
children: /* @__PURE__ */ E(
|
|
2610
|
+
"div",
|
|
2611
|
+
{
|
|
2612
|
+
className: "playback-handle",
|
|
2613
|
+
style: {
|
|
2614
|
+
left: `${l}%`
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
)
|
|
2618
|
+
}
|
|
2619
|
+
)
|
|
2620
|
+
}
|
|
2621
|
+
)
|
|
2622
|
+
] });
|
|
2623
|
+
}, ro = K`
|
|
2479
2624
|
position: relative;
|
|
2480
2625
|
|
|
2481
2626
|
.popover {
|
|
@@ -2483,6 +2628,7 @@ position: relative;
|
|
|
2483
2628
|
right: 50%;
|
|
2484
2629
|
transform: translateX(50%);
|
|
2485
2630
|
|
|
2631
|
+
overflow-y: auto;
|
|
2486
2632
|
width: 180px;
|
|
2487
2633
|
height: 160px;
|
|
2488
2634
|
top: -180px;
|
|
@@ -2496,7 +2642,7 @@ position: relative;
|
|
|
2496
2642
|
|
|
2497
2643
|
border-radius: 8px;
|
|
2498
2644
|
background-color: rgba(28,28,28,0.95);
|
|
2499
|
-
${
|
|
2645
|
+
${he.bMedium.regular}
|
|
2500
2646
|
|
|
2501
2647
|
z-index: 4;
|
|
2502
2648
|
|
|
@@ -2511,8 +2657,6 @@ position: relative;
|
|
|
2511
2657
|
padding: 8px 6px 8px 12px;
|
|
2512
2658
|
|
|
2513
2659
|
width: 100%;
|
|
2514
|
-
height: 100%;
|
|
2515
|
-
cursor: pointer;
|
|
2516
2660
|
|
|
2517
2661
|
:first-of-type {
|
|
2518
2662
|
border-radius: 8px 8px 0 0;
|
|
@@ -2520,7 +2664,10 @@ position: relative;
|
|
|
2520
2664
|
:last-of-type {
|
|
2521
2665
|
border-radius: 0 0 8px 8px;
|
|
2522
2666
|
}
|
|
2523
|
-
:hover {
|
|
2667
|
+
:not(&.no-hover) {
|
|
2668
|
+
cursor: pointer;
|
|
2669
|
+
}
|
|
2670
|
+
:not(&.no-hover):hover {
|
|
2524
2671
|
background-color: rgba(255,255,255,.1);
|
|
2525
2672
|
}
|
|
2526
2673
|
|
|
@@ -2531,175 +2678,200 @@ position: relative;
|
|
|
2531
2678
|
|
|
2532
2679
|
.secondary {
|
|
2533
2680
|
color: #eee;
|
|
2534
|
-
${
|
|
2681
|
+
${he.bSmall.regular}
|
|
2535
2682
|
}
|
|
2536
2683
|
}
|
|
2537
2684
|
}
|
|
2685
|
+
|
|
2686
|
+
.back {
|
|
2687
|
+
display: flex;
|
|
2688
|
+
align-items: center;
|
|
2689
|
+
justify-content: flex-start;
|
|
2690
|
+
border-bottom: 1px solid #4D4D4E;
|
|
2691
|
+
|
|
2692
|
+
svg {
|
|
2693
|
+
transform: translateX(-4px);
|
|
2694
|
+
transition: transform 0.2s ease-in-out;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
:hover {
|
|
2698
|
+
svg {
|
|
2699
|
+
transform: translateX(-8px);
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
.playback-rate {
|
|
2706
|
+
.slider {
|
|
2707
|
+
width: 100%;
|
|
2708
|
+
}
|
|
2709
|
+
.options {
|
|
2710
|
+
display: grid;
|
|
2711
|
+
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
2712
|
+
align-items: center;
|
|
2713
|
+
|
|
2714
|
+
padding: 8px 12px;
|
|
2715
|
+
|
|
2716
|
+
> div {
|
|
2717
|
+
display: flex;
|
|
2718
|
+
align-items: center;
|
|
2719
|
+
border-radius: 4px;
|
|
2720
|
+
|
|
2721
|
+
padding: 8px 6px;
|
|
2722
|
+
height: 100%;
|
|
2723
|
+
|
|
2724
|
+
cursor: pointer;
|
|
2725
|
+
:hover {
|
|
2726
|
+
background-color: rgba(255,255,255,.1);
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
.subtitle {
|
|
2733
|
+
.description {
|
|
2734
|
+
word-break: break-word;
|
|
2735
|
+
}
|
|
2538
2736
|
}
|
|
2539
|
-
`,
|
|
2540
|
-
const e =
|
|
2737
|
+
`, no = () => {
|
|
2738
|
+
const e = N.useActorRef(), t = N.useSelector((l) => l.context.media.playbackRate), r = N.useSelector((l) => l.context.subtitleStreams), n = N.useSelector((l) => l.context.selectedSubtitleStreamIndex), [o, a] = at("hideMediaStats", "false"), [s, c] = J(!1), [u, h] = J(
|
|
2541
2739
|
0
|
|
2542
2740
|
/* Default */
|
|
2543
|
-
),
|
|
2544
|
-
|
|
2741
|
+
), p = xe(null), g = () => {
|
|
2742
|
+
c(!s), h(
|
|
2545
2743
|
0
|
|
2546
2744
|
/* Default */
|
|
2547
2745
|
);
|
|
2548
|
-
},
|
|
2549
|
-
e.send({ type: "SET_PLAYBACK_RATE", playbackRate:
|
|
2746
|
+
}, b = (l) => {
|
|
2747
|
+
e.send({ type: "SET_PLAYBACK_RATE", playbackRate: l }), h(
|
|
2550
2748
|
0
|
|
2551
2749
|
/* Default */
|
|
2552
2750
|
);
|
|
2553
2751
|
};
|
|
2554
|
-
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2752
|
+
j(() => {
|
|
2753
|
+
const l = (d) => {
|
|
2754
|
+
s && p.current && !p.current.contains(d.target) && g();
|
|
2557
2755
|
};
|
|
2558
|
-
return document.addEventListener("mousedown",
|
|
2559
|
-
}, [
|
|
2560
|
-
const
|
|
2561
|
-
() => r.map(({ header:
|
|
2756
|
+
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
2757
|
+
}, [s]);
|
|
2758
|
+
const T = pe(
|
|
2759
|
+
() => r.map(({ header: l }) => ({ streamIndex: l.streamIndex, language: l.parsed.info.Title })),
|
|
2562
2760
|
[r.length]
|
|
2563
|
-
),
|
|
2564
|
-
e.send({ type: "SELECT_SUBTITLE_STREAM", streamIndex:
|
|
2565
|
-
},
|
|
2566
|
-
|
|
2761
|
+
), x = (l) => () => {
|
|
2762
|
+
e.send({ type: "SELECT_SUBTITLE_STREAM", streamIndex: l.streamIndex }), g();
|
|
2763
|
+
}, y = (l) => () => {
|
|
2764
|
+
h(l);
|
|
2567
2765
|
};
|
|
2568
|
-
return /* @__PURE__ */ $("div", { css:
|
|
2766
|
+
return /* @__PURE__ */ $("div", { css: ro, ref: p, children: [
|
|
2569
2767
|
/* @__PURE__ */ E(
|
|
2570
|
-
|
|
2768
|
+
ye,
|
|
2571
2769
|
{
|
|
2572
2770
|
id: "settings",
|
|
2573
|
-
disabled:
|
|
2771
|
+
disabled: s,
|
|
2574
2772
|
text: /* @__PURE__ */ E(
|
|
2575
2773
|
"button",
|
|
2576
2774
|
{
|
|
2577
2775
|
className: "settings",
|
|
2578
2776
|
type: "button",
|
|
2579
|
-
onClick:
|
|
2580
|
-
children: /* @__PURE__ */ E(
|
|
2777
|
+
onClick: g,
|
|
2778
|
+
children: /* @__PURE__ */ E(xr, {})
|
|
2581
2779
|
}
|
|
2582
2780
|
),
|
|
2583
2781
|
toolTipText: /* @__PURE__ */ E("span", { children: "Settings" })
|
|
2584
2782
|
}
|
|
2585
2783
|
),
|
|
2586
|
-
|
|
2587
|
-
/* @__PURE__ */ $("div", { onClick:
|
|
2784
|
+
s && u === 0 && /* @__PURE__ */ $("div", { className: "popover menu", children: [
|
|
2785
|
+
/* @__PURE__ */ $("div", { onClick: y(
|
|
2588
2786
|
2
|
|
2589
2787
|
/* Advanced */
|
|
2590
2788
|
), children: [
|
|
2591
2789
|
/* @__PURE__ */ E("span", { children: "Advanced" }),
|
|
2592
|
-
/* @__PURE__ */ E("div", { children: /* @__PURE__ */ E(
|
|
2790
|
+
/* @__PURE__ */ E("div", { children: /* @__PURE__ */ E(pt, {}) })
|
|
2593
2791
|
] }),
|
|
2594
|
-
/* @__PURE__ */ $("div", { onClick:
|
|
2595
|
-
3
|
|
2596
|
-
/* SelectNewSources */
|
|
2597
|
-
), children: [
|
|
2598
|
-
/* @__PURE__ */ E("div", { children: "Select new sources" }),
|
|
2599
|
-
/* @__PURE__ */ E("div", { children: /* @__PURE__ */ E(Ke, {}) })
|
|
2600
|
-
] }),
|
|
2601
|
-
/* @__PURE__ */ $("div", { onClick: S(
|
|
2792
|
+
/* @__PURE__ */ $("div", { onClick: y(
|
|
2602
2793
|
4
|
|
2603
2794
|
/* Subtitles */
|
|
2604
2795
|
), children: [
|
|
2605
2796
|
/* @__PURE__ */ E("div", { children: "Subtitles" }),
|
|
2606
|
-
/* @__PURE__ */ E("div", { children: /* @__PURE__ */ E(
|
|
2797
|
+
/* @__PURE__ */ E("div", { children: /* @__PURE__ */ E(pt, {}) })
|
|
2607
2798
|
] }),
|
|
2608
|
-
/* @__PURE__ */ $("div", { onClick:
|
|
2799
|
+
/* @__PURE__ */ $("div", { onClick: y(
|
|
2609
2800
|
1
|
|
2610
2801
|
/* PlaybackRate */
|
|
2611
2802
|
), children: [
|
|
2612
2803
|
/* @__PURE__ */ E("div", { children: "Playback speed" }),
|
|
2613
2804
|
/* @__PURE__ */ $("div", { children: [
|
|
2614
2805
|
/* @__PURE__ */ E("span", { className: "secondary", children: t === 1 ? "(Default)" : t.toFixed(2) }),
|
|
2615
|
-
/* @__PURE__ */ E(
|
|
2806
|
+
/* @__PURE__ */ E(pt, {})
|
|
2616
2807
|
] })
|
|
2617
2808
|
] })
|
|
2618
2809
|
] }),
|
|
2619
|
-
|
|
2620
|
-
/* @__PURE__ */ $("div", { onClick:
|
|
2810
|
+
s && u === 1 && /* @__PURE__ */ $("div", { className: "popover playback-rate", children: [
|
|
2811
|
+
/* @__PURE__ */ $("div", { className: "back", onClick: y(
|
|
2621
2812
|
0
|
|
2622
2813
|
/* Default */
|
|
2623
2814
|
), children: [
|
|
2624
|
-
/* @__PURE__ */ E(
|
|
2625
|
-
/* @__PURE__ */ E("
|
|
2815
|
+
/* @__PURE__ */ E(Ke, {}),
|
|
2816
|
+
/* @__PURE__ */ E("span", { children: "Plackback speed" })
|
|
2626
2817
|
] }),
|
|
2627
|
-
/* @__PURE__ */
|
|
2628
|
-
|
|
2629
|
-
/* @__PURE__ */
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
type: "button",
|
|
2634
|
-
onClick: () => m(0.5),
|
|
2635
|
-
children: "0.5x"
|
|
2636
|
-
}
|
|
2637
|
-
),
|
|
2638
|
-
/* @__PURE__ */ E(
|
|
2639
|
-
"button",
|
|
2640
|
-
{
|
|
2641
|
-
type: "button",
|
|
2642
|
-
onClick: () => m(1),
|
|
2643
|
-
children: "1x"
|
|
2644
|
-
}
|
|
2645
|
-
),
|
|
2646
|
-
/* @__PURE__ */ E(
|
|
2647
|
-
"button",
|
|
2648
|
-
{
|
|
2649
|
-
type: "button",
|
|
2650
|
-
onClick: () => m(1.5),
|
|
2651
|
-
children: "1.5x"
|
|
2652
|
-
}
|
|
2653
|
-
),
|
|
2654
|
-
/* @__PURE__ */ E(
|
|
2655
|
-
"button",
|
|
2656
|
-
{
|
|
2657
|
-
type: "button",
|
|
2658
|
-
onClick: () => m(2),
|
|
2659
|
-
children: "2x"
|
|
2660
|
-
}
|
|
2661
|
-
)
|
|
2662
|
-
] })
|
|
2818
|
+
/* @__PURE__ */ E("div", { className: "slider no-hover", children: /* @__PURE__ */ E(to, {}) }),
|
|
2819
|
+
/* @__PURE__ */ $("div", { className: "options no-hover", children: [
|
|
2820
|
+
/* @__PURE__ */ E("div", { onClick: () => b(0.5), children: "0.5x" }),
|
|
2821
|
+
/* @__PURE__ */ E("div", { onClick: () => b(1), children: "1x" }),
|
|
2822
|
+
/* @__PURE__ */ E("div", { onClick: () => b(1.5), children: "1.5x" }),
|
|
2823
|
+
/* @__PURE__ */ E("div", { onClick: () => b(2), children: "2x" })
|
|
2663
2824
|
] })
|
|
2664
2825
|
] }),
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2826
|
+
s && u === 2 && /* @__PURE__ */ $("div", { className: "popover advanced", children: [
|
|
2827
|
+
/* @__PURE__ */ $("div", { className: "back", onClick: y(
|
|
2828
|
+
0
|
|
2829
|
+
/* Default */
|
|
2830
|
+
), children: [
|
|
2831
|
+
/* @__PURE__ */ E(Ke, {}),
|
|
2832
|
+
/* @__PURE__ */ E("span", { children: "Advanced" })
|
|
2833
|
+
] }),
|
|
2834
|
+
/* @__PURE__ */ $("div", { onClick: () => a(o === "true" ? "false" : "true"), children: [
|
|
2835
|
+
/* @__PURE__ */ E("span", { children: "Hide stats" }),
|
|
2836
|
+
/* @__PURE__ */ E("span", { children: o === "true" ? "✓" : "" })
|
|
2837
|
+
] })
|
|
2838
|
+
] }),
|
|
2839
|
+
s && u === 3 && /* @__PURE__ */ E("div", { className: "popover sources", children: /* @__PURE__ */ $("div", { className: "back", onClick: y(
|
|
2673
2840
|
0
|
|
2674
2841
|
/* Default */
|
|
2675
2842
|
), children: [
|
|
2676
|
-
/* @__PURE__ */ E(
|
|
2677
|
-
/* @__PURE__ */ E("
|
|
2843
|
+
/* @__PURE__ */ E(Ke, {}),
|
|
2844
|
+
/* @__PURE__ */ E("span", { children: "Select new sources" })
|
|
2678
2845
|
] }) }),
|
|
2679
|
-
|
|
2680
|
-
|
|
2846
|
+
s && u === 4 && /* @__PURE__ */ $("div", { className: "popover subtitle", children: [
|
|
2847
|
+
/* @__PURE__ */ $("div", { className: "back", onClick: y(
|
|
2848
|
+
0
|
|
2849
|
+
/* Default */
|
|
2850
|
+
), children: [
|
|
2851
|
+
/* @__PURE__ */ E(Ke, {}),
|
|
2852
|
+
/* @__PURE__ */ E("span", { children: "Subtitles" })
|
|
2853
|
+
] }),
|
|
2854
|
+
/* @__PURE__ */ $("div", { onClick: x({ streamIndex: void 0 }), children: [
|
|
2855
|
+
/* @__PURE__ */ E("span", { children: "Disable" }),
|
|
2856
|
+
/* @__PURE__ */ E("span", { children: n === void 0 ? "✓" : "" })
|
|
2857
|
+
] }),
|
|
2858
|
+
T.map((l) => /* @__PURE__ */ $(
|
|
2681
2859
|
"div",
|
|
2682
2860
|
{
|
|
2683
|
-
onClick:
|
|
2861
|
+
onClick: x(l),
|
|
2862
|
+
className: "description",
|
|
2684
2863
|
children: [
|
|
2685
|
-
/* @__PURE__ */ E("
|
|
2686
|
-
/* @__PURE__ */ E("
|
|
2864
|
+
/* @__PURE__ */ E("span", { children: l.language }),
|
|
2865
|
+
/* @__PURE__ */ E("span", { children: n === l.streamIndex ? "✓" : "" })
|
|
2687
2866
|
]
|
|
2688
2867
|
},
|
|
2689
|
-
|
|
2690
|
-
))
|
|
2691
|
-
/* @__PURE__ */ $("div", { onClick: S(
|
|
2692
|
-
0
|
|
2693
|
-
/* Default */
|
|
2694
|
-
), children: [
|
|
2695
|
-
/* @__PURE__ */ E("div", { children: "Back" }),
|
|
2696
|
-
/* @__PURE__ */ E("div", {})
|
|
2697
|
-
] })
|
|
2868
|
+
l.streamIndex
|
|
2869
|
+
))
|
|
2698
2870
|
] })
|
|
2699
2871
|
] });
|
|
2700
|
-
},
|
|
2872
|
+
}, oo = {
|
|
2701
2873
|
hover: "rgba(255, 255, 255, 0.13)"
|
|
2702
|
-
},
|
|
2874
|
+
}, io = K`
|
|
2703
2875
|
display: flex;
|
|
2704
2876
|
align-items: center;
|
|
2705
2877
|
|
|
@@ -2730,56 +2902,56 @@ position: relative;
|
|
|
2730
2902
|
width: 10px;
|
|
2731
2903
|
height: 10px;
|
|
2732
2904
|
}
|
|
2733
|
-
`,
|
|
2734
|
-
const r =
|
|
2905
|
+
`, ao = ({ value: e, onChange: t }) => {
|
|
2906
|
+
const r = N.useSelector((l) => l.context.media.volume), n = N.useSelector((l) => l.context.media.muted), o = xe(null), [a, s] = J(!1), c = (l) => {
|
|
2735
2907
|
if (!o.current) return e;
|
|
2736
|
-
const
|
|
2737
|
-
return Math.max(0, Math.min(
|
|
2738
|
-
},
|
|
2908
|
+
const d = o.current.getBoundingClientRect(), m = l - d.left;
|
|
2909
|
+
return Math.max(0, Math.min(m, d.width)) / d.width;
|
|
2910
|
+
}, u = (l) => {
|
|
2739
2911
|
s(!0);
|
|
2740
|
-
const
|
|
2741
|
-
t(
|
|
2742
|
-
},
|
|
2912
|
+
const d = c(l.clientX);
|
|
2913
|
+
t(d);
|
|
2914
|
+
}, h = (l) => {
|
|
2743
2915
|
if (!a) return;
|
|
2744
|
-
const
|
|
2745
|
-
t(
|
|
2746
|
-
},
|
|
2916
|
+
const d = c(l.clientX);
|
|
2917
|
+
t(d);
|
|
2918
|
+
}, p = () => {
|
|
2747
2919
|
s(!1);
|
|
2748
|
-
}, g = (
|
|
2749
|
-
|
|
2750
|
-
const
|
|
2751
|
-
let
|
|
2752
|
-
|
|
2920
|
+
}, g = (l) => {
|
|
2921
|
+
l.preventDefault();
|
|
2922
|
+
const d = 0.05;
|
|
2923
|
+
let m = e;
|
|
2924
|
+
l.deltaY < 0 ? m = Math.min(1, m + d) : m = Math.max(0, m - d), t(m);
|
|
2753
2925
|
};
|
|
2754
|
-
|
|
2755
|
-
window.removeEventListener("mousemove",
|
|
2756
|
-
}), [a]),
|
|
2757
|
-
const
|
|
2758
|
-
return
|
|
2759
|
-
|
|
2926
|
+
j(() => (window.addEventListener("mousemove", h), window.addEventListener("mouseup", p), () => {
|
|
2927
|
+
window.removeEventListener("mousemove", h), window.removeEventListener("mouseup", p);
|
|
2928
|
+
}), [a]), j(() => {
|
|
2929
|
+
const l = o.current;
|
|
2930
|
+
return l && l.addEventListener("wheel", g, { passive: !1 }), () => {
|
|
2931
|
+
l && l.removeEventListener("wheel", g);
|
|
2760
2932
|
};
|
|
2761
2933
|
}, [e]);
|
|
2762
|
-
const b = e * 100,
|
|
2763
|
-
() => Math.round(n ? 0 :
|
|
2934
|
+
const b = e * 100, T = "#fff", x = "#3A3A3A", y = pe(
|
|
2935
|
+
() => Math.round(n ? 0 : wt(r) * 100),
|
|
2764
2936
|
[r]
|
|
2765
2937
|
);
|
|
2766
2938
|
return /* @__PURE__ */ E(
|
|
2767
|
-
|
|
2939
|
+
ye,
|
|
2768
2940
|
{
|
|
2769
2941
|
id: "volume-slider",
|
|
2770
2942
|
text: /* @__PURE__ */ E(
|
|
2771
2943
|
"div",
|
|
2772
2944
|
{
|
|
2773
2945
|
ref: o,
|
|
2774
|
-
css:
|
|
2775
|
-
onMouseDown:
|
|
2946
|
+
css: io,
|
|
2947
|
+
onMouseDown: u,
|
|
2776
2948
|
children: /* @__PURE__ */ E(
|
|
2777
2949
|
"div",
|
|
2778
2950
|
{
|
|
2779
2951
|
style: {
|
|
2780
2952
|
background: `linear-gradient(to right,
|
|
2781
|
-
${
|
|
2782
|
-
${
|
|
2953
|
+
${T} 0% ${b}%,
|
|
2954
|
+
${x} ${b}% 100%
|
|
2783
2955
|
)`
|
|
2784
2956
|
},
|
|
2785
2957
|
children: /* @__PURE__ */ E(
|
|
@@ -2801,7 +2973,7 @@ position: relative;
|
|
|
2801
2973
|
] })
|
|
2802
2974
|
}
|
|
2803
2975
|
);
|
|
2804
|
-
},
|
|
2976
|
+
}, so = K`
|
|
2805
2977
|
position: relative;
|
|
2806
2978
|
display: flex;
|
|
2807
2979
|
align-items: center;
|
|
@@ -2826,7 +2998,7 @@ position: relative;
|
|
|
2826
2998
|
border-radius: 4px;
|
|
2827
2999
|
|
|
2828
3000
|
.volume-value {
|
|
2829
|
-
${
|
|
3001
|
+
${he.bMedium.regular};
|
|
2830
3002
|
color: #ffffff;
|
|
2831
3003
|
}
|
|
2832
3004
|
}
|
|
@@ -2840,15 +3012,15 @@ position: relative;
|
|
|
2840
3012
|
|
|
2841
3013
|
pointer-events: auto;
|
|
2842
3014
|
}
|
|
2843
|
-
`,
|
|
2844
|
-
const t =
|
|
3015
|
+
`, co = ({ ref: e }) => {
|
|
3016
|
+
const t = N.useActorRef(), r = N.useSelector((s) => s.context.media.volume), n = N.useSelector((s) => s.context.media.muted), o = pe(() => wt(r), [r]), a = (s, c) => t.send({
|
|
2845
3017
|
type: "SET_VOLUME",
|
|
2846
3018
|
muted: c,
|
|
2847
|
-
volume:
|
|
3019
|
+
volume: fr(s)
|
|
2848
3020
|
});
|
|
2849
|
-
return /* @__PURE__ */ $("div", { css:
|
|
3021
|
+
return /* @__PURE__ */ $("div", { css: so, children: [
|
|
2850
3022
|
/* @__PURE__ */ E(
|
|
2851
|
-
|
|
3023
|
+
ye,
|
|
2852
3024
|
{
|
|
2853
3025
|
id: "sound",
|
|
2854
3026
|
text: /* @__PURE__ */ E(
|
|
@@ -2858,21 +3030,21 @@ position: relative;
|
|
|
2858
3030
|
type: "button",
|
|
2859
3031
|
onClick: () => a(o, !n),
|
|
2860
3032
|
ref: e,
|
|
2861
|
-
children: n || r === 0 ? /* @__PURE__ */ E(
|
|
3033
|
+
children: n || r === 0 ? /* @__PURE__ */ E(Sr, { size: 18, color: "#fff" }) : r <= 0.5 ? /* @__PURE__ */ E(Tr, { size: 18, color: "#fff" }) : /* @__PURE__ */ E(wr, { size: 18, color: "#fff" })
|
|
2862
3034
|
}
|
|
2863
3035
|
),
|
|
2864
3036
|
toolTipText: /* @__PURE__ */ E("span", { children: n ? "Unmute (m)" : "Mute (m)" })
|
|
2865
3037
|
}
|
|
2866
3038
|
),
|
|
2867
3039
|
/* @__PURE__ */ E("div", { className: "volume-slider-container", children: /* @__PURE__ */ E("div", { className: "volume-slider-background", children: /* @__PURE__ */ E(
|
|
2868
|
-
|
|
3040
|
+
ao,
|
|
2869
3041
|
{
|
|
2870
3042
|
value: n ? 0 : o,
|
|
2871
3043
|
onChange: (s) => a(s, !1)
|
|
2872
3044
|
}
|
|
2873
3045
|
) }) })
|
|
2874
3046
|
] });
|
|
2875
|
-
},
|
|
3047
|
+
}, lo = K`
|
|
2876
3048
|
position: absolute;
|
|
2877
3049
|
bottom: 0;
|
|
2878
3050
|
width: 100%;
|
|
@@ -2956,18 +3128,18 @@ position: relative;
|
|
|
2956
3128
|
cursor: pointer;
|
|
2957
3129
|
|
|
2958
3130
|
:hover {
|
|
2959
|
-
background-color: ${
|
|
3131
|
+
background-color: ${oo.hover};
|
|
2960
3132
|
}
|
|
2961
3133
|
}
|
|
2962
3134
|
}
|
|
2963
3135
|
|
|
2964
3136
|
.left {
|
|
2965
3137
|
.time {
|
|
2966
|
-
${
|
|
3138
|
+
${he.bMedium.regular}
|
|
3139
|
+
text-shadow: 0 0 4px rgba(0, 0, 0, 1);
|
|
2967
3140
|
}
|
|
2968
3141
|
}
|
|
2969
3142
|
.right {
|
|
2970
|
-
|
|
2971
3143
|
.picture-in-picture {
|
|
2972
3144
|
img {
|
|
2973
3145
|
width: 22px;
|
|
@@ -2984,59 +3156,59 @@ position: relative;
|
|
|
2984
3156
|
}
|
|
2985
3157
|
}
|
|
2986
3158
|
}
|
|
2987
|
-
`,
|
|
2988
|
-
const r =
|
|
2989
|
-
|
|
2990
|
-
const
|
|
2991
|
-
|
|
3159
|
+
`, uo = ({ mediaInformation: e, containerRef: t }) => {
|
|
3160
|
+
const r = N.useActorRef(), n = Te(Re), o = N.useSelector((m) => m.context.media.paused), a = N.useSelector((m) => m.context.media.volume), s = N.useSelector((m) => m.context.media.muted), c = N.useSelector((m) => m.context.media.currentTime), u = N.useSelector((m) => m.context.media.duration), [h, p] = J(), [g, b] = at("hideMediaStats", "false"), [T, x] = J(!1);
|
|
3161
|
+
j(() => {
|
|
3162
|
+
const m = () => {
|
|
3163
|
+
x(!!document.fullscreenElement);
|
|
2992
3164
|
};
|
|
2993
|
-
return document.addEventListener("fullscreenchange",
|
|
2994
|
-
document.removeEventListener("fullscreenchange",
|
|
3165
|
+
return document.addEventListener("fullscreenchange", m), () => {
|
|
3166
|
+
document.removeEventListener("fullscreenchange", m);
|
|
2995
3167
|
};
|
|
2996
3168
|
}, []);
|
|
2997
|
-
const
|
|
3169
|
+
const y = () => {
|
|
2998
3170
|
document.fullscreenElement ? document.exitFullscreen() : t.current && t.current.requestFullscreen();
|
|
2999
|
-
},
|
|
3171
|
+
}, l = ot(({ direction: m, stepSize: v }) => {
|
|
3000
3172
|
if (!r) return;
|
|
3001
|
-
const
|
|
3173
|
+
const S = wt(a), f = m === "up" ? v : -v, w = Math.max(0, Math.min(1, S + f)), C = fr(w);
|
|
3002
3174
|
r.send({
|
|
3003
3175
|
type: "SET_VOLUME",
|
|
3004
3176
|
muted: s,
|
|
3005
|
-
volume:
|
|
3177
|
+
volume: C
|
|
3006
3178
|
});
|
|
3007
3179
|
}, [r.id, s, a]);
|
|
3008
|
-
|
|
3009
|
-
const
|
|
3010
|
-
let
|
|
3011
|
-
if (
|
|
3012
|
-
else if (
|
|
3013
|
-
else if (
|
|
3014
|
-
else if (
|
|
3180
|
+
j(() => {
|
|
3181
|
+
const m = (v) => {
|
|
3182
|
+
let S = !0;
|
|
3183
|
+
if (v.key === "f") y();
|
|
3184
|
+
else if (v.key === "k") nt(r, o, u, c);
|
|
3185
|
+
else if (v.key === " ") nt(r, o, u, c);
|
|
3186
|
+
else if (v.key === "m")
|
|
3015
3187
|
r.send({ type: "SET_VOLUME", muted: !s, volume: a });
|
|
3016
|
-
else if (
|
|
3017
|
-
|
|
3018
|
-
else if (
|
|
3019
|
-
|
|
3020
|
-
else if (
|
|
3021
|
-
if (!
|
|
3022
|
-
c + 5 >=
|
|
3023
|
-
} else
|
|
3024
|
-
|
|
3188
|
+
else if (v.key === "ArrowUp")
|
|
3189
|
+
l({ direction: "up", stepSize: 0.05 });
|
|
3190
|
+
else if (v.key === "ArrowDown")
|
|
3191
|
+
l({ direction: "down", stepSize: 0.05 });
|
|
3192
|
+
else if (v.key === "ArrowRight") {
|
|
3193
|
+
if (!u) return;
|
|
3194
|
+
c + 5 >= u ? r.send({ type: "SET_TIME", value: u }) : r.send({ type: "SET_TIME", value: c + 5 });
|
|
3195
|
+
} else v.key === "ArrowLeft" ? c - 5 < 0 ? r.send({ type: "SET_TIME", value: 0 }) : r.send({ type: "SET_TIME", value: c - 5 }) : S = !1;
|
|
3196
|
+
S && v.preventDefault();
|
|
3025
3197
|
};
|
|
3026
|
-
return window.addEventListener("keydown",
|
|
3027
|
-
}, [r, a, s, o, c,
|
|
3028
|
-
const
|
|
3029
|
-
|
|
3030
|
-
}, [
|
|
3031
|
-
return
|
|
3032
|
-
if (
|
|
3033
|
-
return
|
|
3034
|
-
}, [
|
|
3035
|
-
/* @__PURE__ */ E(
|
|
3198
|
+
return window.addEventListener("keydown", m), () => window.removeEventListener("keydown", m);
|
|
3199
|
+
}, [r, a, s, o, c, u]);
|
|
3200
|
+
const d = ot((m) => {
|
|
3201
|
+
m.preventDefault(), m.deltaY < 0 ? l({ direction: "up", stepSize: 0.05 }) : l({ direction: "down", stepSize: 0.05 });
|
|
3202
|
+
}, [l]);
|
|
3203
|
+
return j(() => {
|
|
3204
|
+
if (h)
|
|
3205
|
+
return h.addEventListener("wheel", d, { passive: !1 }), () => h.removeEventListener("wheel", d);
|
|
3206
|
+
}, [h, l]), /* @__PURE__ */ $("div", { css: lo, style: { ...n.hideUI ? { opacity: "0", pointerEvents: "none" } : {} }, children: [
|
|
3207
|
+
/* @__PURE__ */ E(Jn, {}),
|
|
3036
3208
|
/* @__PURE__ */ $("div", { className: "actions", children: [
|
|
3037
3209
|
/* @__PURE__ */ $("div", { className: "left", children: [
|
|
3038
3210
|
/* @__PURE__ */ E(
|
|
3039
|
-
|
|
3211
|
+
ye,
|
|
3040
3212
|
{
|
|
3041
3213
|
id: "play",
|
|
3042
3214
|
tooltipPlace: "top-start",
|
|
@@ -3045,21 +3217,21 @@ position: relative;
|
|
|
3045
3217
|
{
|
|
3046
3218
|
className: "play",
|
|
3047
3219
|
type: "button",
|
|
3048
|
-
onClick: () => nt(r, o,
|
|
3049
|
-
children:
|
|
3220
|
+
onClick: () => nt(r, o, u, c),
|
|
3221
|
+
children: u === c ? /* @__PURE__ */ E(Rr, {}) : o ? /* @__PURE__ */ E(Ar, {}) : /* @__PURE__ */ E(_r, {})
|
|
3050
3222
|
}
|
|
3051
3223
|
),
|
|
3052
|
-
toolTipText: /* @__PURE__ */ E("span", { children:
|
|
3224
|
+
toolTipText: /* @__PURE__ */ E("span", { children: u === c ? "Replay (k)" : o ? "Play (k)" : "Pause (k)" })
|
|
3053
3225
|
}
|
|
3054
3226
|
),
|
|
3055
|
-
/* @__PURE__ */ E(
|
|
3056
|
-
/* @__PURE__ */ E("div", { className: "time", children:
|
|
3227
|
+
/* @__PURE__ */ E(co, { ref: p }),
|
|
3228
|
+
/* @__PURE__ */ E("div", { className: "time", children: Zn(c, u) })
|
|
3057
3229
|
] }),
|
|
3058
3230
|
/* @__PURE__ */ $("div", { className: "right", children: [
|
|
3059
|
-
e,
|
|
3060
|
-
/* @__PURE__ */ E(
|
|
3231
|
+
g !== "true" ? e : null,
|
|
3232
|
+
/* @__PURE__ */ E(no, {}),
|
|
3061
3233
|
/* @__PURE__ */ E(
|
|
3062
|
-
|
|
3234
|
+
ye,
|
|
3063
3235
|
{
|
|
3064
3236
|
id: "picture-in-picture",
|
|
3065
3237
|
text: /* @__PURE__ */ E(
|
|
@@ -3067,14 +3239,14 @@ position: relative;
|
|
|
3067
3239
|
{
|
|
3068
3240
|
className: "picture-in-picture",
|
|
3069
3241
|
type: "button",
|
|
3070
|
-
children: /* @__PURE__ */ E("img", { src:
|
|
3242
|
+
children: /* @__PURE__ */ E("img", { src: Qn })
|
|
3071
3243
|
}
|
|
3072
3244
|
),
|
|
3073
3245
|
toolTipText: /* @__PURE__ */ E("span", { children: "Picture in picture" })
|
|
3074
3246
|
}
|
|
3075
3247
|
),
|
|
3076
3248
|
/* @__PURE__ */ E(
|
|
3077
|
-
|
|
3249
|
+
ye,
|
|
3078
3250
|
{
|
|
3079
3251
|
id: "full-screen",
|
|
3080
3252
|
tooltipPlace: "top-end",
|
|
@@ -3083,17 +3255,17 @@ position: relative;
|
|
|
3083
3255
|
{
|
|
3084
3256
|
className: "full-screen",
|
|
3085
3257
|
type: "button",
|
|
3086
|
-
onClick:
|
|
3087
|
-
children:
|
|
3258
|
+
onClick: y,
|
|
3259
|
+
children: T ? /* @__PURE__ */ E(Cr, {}) : /* @__PURE__ */ E(Pr, {})
|
|
3088
3260
|
}
|
|
3089
3261
|
),
|
|
3090
|
-
toolTipText: /* @__PURE__ */ E("span", { children:
|
|
3262
|
+
toolTipText: /* @__PURE__ */ E("span", { children: T ? "Exit full screen (f)" : "Full screen (f)" })
|
|
3091
3263
|
}
|
|
3092
3264
|
)
|
|
3093
3265
|
] })
|
|
3094
3266
|
] })
|
|
3095
3267
|
] });
|
|
3096
|
-
},
|
|
3268
|
+
}, fo = K`
|
|
3097
3269
|
position: relative;
|
|
3098
3270
|
background-color: black;
|
|
3099
3271
|
display: flex;
|
|
@@ -3125,19 +3297,19 @@ position: relative;
|
|
|
3125
3297
|
&.hide {
|
|
3126
3298
|
cursor: none;
|
|
3127
3299
|
}
|
|
3128
|
-
`,
|
|
3129
|
-
const n =
|
|
3300
|
+
`, mo = ({ children: e, mediaInformation: t, loadingInformation: r }) => {
|
|
3301
|
+
const n = N.useActorRef(), o = Te(Re), a = N.useSelector((b) => b.context.media.paused), s = N.useSelector((b) => b.context.media.currentTime), c = N.useSelector((b) => b.context.media.duration), u = xe(), h = xe(null);
|
|
3130
3302
|
return /* @__PURE__ */ $(
|
|
3131
3303
|
"div",
|
|
3132
3304
|
{
|
|
3133
|
-
css:
|
|
3134
|
-
ref:
|
|
3305
|
+
css: fo,
|
|
3306
|
+
ref: h,
|
|
3135
3307
|
onMouseMove: (b) => {
|
|
3136
|
-
o.update({ ...o, hideUI: !1 }),
|
|
3137
|
-
const
|
|
3308
|
+
o.update({ ...o, hideUI: !1 }), u.current && clearInterval(u.current);
|
|
3309
|
+
const T = setTimeout(() => {
|
|
3138
3310
|
o.update({ ...o, hideUI: !0 });
|
|
3139
3311
|
}, 3e3);
|
|
3140
|
-
|
|
3312
|
+
u.current = T;
|
|
3141
3313
|
},
|
|
3142
3314
|
onMouseOut: (b) => {
|
|
3143
3315
|
b.currentTarget.parentElement !== b.relatedTarget && b.relatedTarget !== null || o.update({ ...o, hideUI: !0 });
|
|
@@ -3145,7 +3317,7 @@ position: relative;
|
|
|
3145
3317
|
className: o.hideUI ? "hide" : "",
|
|
3146
3318
|
children: [
|
|
3147
3319
|
/* @__PURE__ */ E(Gn, { loadingInformation: r }),
|
|
3148
|
-
/* @__PURE__ */ E(
|
|
3320
|
+
/* @__PURE__ */ E(uo, { mediaInformation: t, containerRef: h }),
|
|
3149
3321
|
/* @__PURE__ */ E(
|
|
3150
3322
|
"div",
|
|
3151
3323
|
{
|
|
@@ -3157,88 +3329,88 @@ position: relative;
|
|
|
3157
3329
|
]
|
|
3158
3330
|
}
|
|
3159
3331
|
);
|
|
3160
|
-
},
|
|
3332
|
+
}, po = 25e5, ho = K`
|
|
3161
3333
|
display: flex;
|
|
3162
3334
|
justify-content: center;
|
|
3163
3335
|
background-color: #111;
|
|
3164
3336
|
height: 100%;
|
|
3165
3337
|
width: 100%;
|
|
3166
3338
|
overflow: hidden;
|
|
3167
|
-
`,
|
|
3168
|
-
const n =
|
|
3169
|
-
return
|
|
3339
|
+
`, vo = ({ options: e, videoElement: t, children: r }) => {
|
|
3340
|
+
const n = Te(Re), o = N.useActorRef(), a = N.useSelector((l) => l.value), s = N.useSelector((l) => l.context.media.volume), c = N.useSelector((l) => l.context.media.muted), u = N.useSelector((l) => l.context.isReady), h = N.useSelector((l) => l.context.media.duration), [p, g] = at("mediaVolume", "1"), [b, T] = at("mediaMute", "false"), [x, y] = J(!0);
|
|
3341
|
+
return j(() => {
|
|
3170
3342
|
o.send({
|
|
3171
3343
|
type: "MEDIA_SOURCE_OPTIONS",
|
|
3172
3344
|
mediaSourceOptions: {}
|
|
3173
3345
|
});
|
|
3174
|
-
}, []),
|
|
3175
|
-
!e.autoplay ||
|
|
3176
|
-
}, [
|
|
3346
|
+
}, []), j(() => {
|
|
3347
|
+
!e.autoplay || h === void 0 || o.send({ type: "PLAY" });
|
|
3348
|
+
}, [h, e.autoplay]), j(
|
|
3177
3349
|
() => {
|
|
3178
|
-
!o || !
|
|
3350
|
+
!o || !u || !n.downloadedRanges || o.send({
|
|
3179
3351
|
type: "DOWNLOADED_RANGES_UPDATED",
|
|
3180
3352
|
downloadedRanges: n.downloadedRanges
|
|
3181
3353
|
});
|
|
3182
3354
|
},
|
|
3183
3355
|
[
|
|
3184
3356
|
o,
|
|
3185
|
-
|
|
3186
|
-
(n.downloadedRanges?.map((
|
|
3357
|
+
u,
|
|
3358
|
+
(n.downloadedRanges?.map((l) => `${l.startByteOffset}-${l.endByteOffset}`) ?? []).join(",")
|
|
3187
3359
|
]
|
|
3188
|
-
),
|
|
3189
|
-
const { size:
|
|
3190
|
-
!
|
|
3360
|
+
), j(() => {
|
|
3361
|
+
const { size: l, read: d, publicPath: m, libavWorkerUrl: v, jassubWasmUrl: S } = e;
|
|
3362
|
+
!d || !l || !m || !v || !S || o.send({
|
|
3191
3363
|
type: "REMUXER_OPTIONS",
|
|
3192
3364
|
remuxerOptions: {
|
|
3193
|
-
publicPath:
|
|
3194
|
-
workerUrl:
|
|
3195
|
-
bufferSize: e.bufferSize ??
|
|
3196
|
-
length:
|
|
3197
|
-
read:
|
|
3365
|
+
publicPath: m,
|
|
3366
|
+
workerUrl: v,
|
|
3367
|
+
bufferSize: e.bufferSize ?? po,
|
|
3368
|
+
length: l,
|
|
3369
|
+
read: d
|
|
3198
3370
|
}
|
|
3199
3371
|
});
|
|
3200
|
-
}, [e.read, e.size, e.publicPath, e.libavWorkerUrl, e.bufferSize]),
|
|
3201
|
-
const { jassubWorkerUrl:
|
|
3202
|
-
!
|
|
3372
|
+
}, [e.read, e.size, e.publicPath, e.libavWorkerUrl, e.bufferSize]), j(() => {
|
|
3373
|
+
const { jassubWorkerUrl: l, jassubWasmUrl: d, jassubModernWasmUrl: m } = e;
|
|
3374
|
+
!l || !d || !m || o.send({
|
|
3203
3375
|
type: "SUBTITLES_RENDERER_OPTIONS",
|
|
3204
3376
|
subtitlesRendererOptions: {
|
|
3205
|
-
workerUrl:
|
|
3206
|
-
wasmUrl:
|
|
3207
|
-
modernWasmUrl:
|
|
3377
|
+
workerUrl: l,
|
|
3378
|
+
wasmUrl: d,
|
|
3379
|
+
modernWasmUrl: m
|
|
3208
3380
|
}
|
|
3209
3381
|
});
|
|
3210
|
-
}, [e.publicPath, e.jassubWorkerUrl, e.jassubWasmUrl]),
|
|
3382
|
+
}, [e.publicPath, e.jassubWorkerUrl, e.jassubWasmUrl]), j(() => {
|
|
3211
3383
|
t && o.send({
|
|
3212
3384
|
type: "SET_VIDEO_ELEMENT",
|
|
3213
3385
|
videoElement: t
|
|
3214
3386
|
});
|
|
3215
|
-
}, [t]),
|
|
3216
|
-
|
|
3387
|
+
}, [t]), j(() => {
|
|
3388
|
+
u && (x ? (o.send({
|
|
3217
3389
|
type: "SET_VOLUME",
|
|
3218
3390
|
muted: b === "true",
|
|
3219
|
-
volume: isNaN(Number(
|
|
3220
|
-
}), y(!1)) : (g(s.toString()),
|
|
3221
|
-
}, [
|
|
3391
|
+
volume: isNaN(Number(p)) ? 1 : Number(p)
|
|
3392
|
+
}), y(!1)) : (g(s.toString()), T(c ? "true" : "false")));
|
|
3393
|
+
}, [u, s, c, x]), j(() => {
|
|
3222
3394
|
if (a === "OK")
|
|
3223
3395
|
return () => {
|
|
3224
3396
|
o.send({ type: "DESTROY" });
|
|
3225
3397
|
};
|
|
3226
|
-
}, [a]), /* @__PURE__ */ E("div", { css:
|
|
3227
|
-
},
|
|
3228
|
-
const r = (
|
|
3229
|
-
typeof e == "function" ? e(
|
|
3398
|
+
}, [a]), /* @__PURE__ */ E("div", { css: ho, children: /* @__PURE__ */ E(mo, { mediaInformation: e.mediaInformation, loadingInformation: e.loadingInformation, children: r }) });
|
|
3399
|
+
}, _o = ({ ref: e, ...t }) => {
|
|
3400
|
+
const r = (u) => o({ ...u, update: r }), [n, o] = J({ update: r }), [a, s] = J(), c = ot((u) => {
|
|
3401
|
+
typeof e == "function" ? e(u) : e && "current" in e && (e.current = u), s(u ?? void 0);
|
|
3230
3402
|
}, []);
|
|
3231
|
-
return
|
|
3232
|
-
o((
|
|
3233
|
-
...
|
|
3403
|
+
return j(() => {
|
|
3404
|
+
o((u) => ({
|
|
3405
|
+
...u,
|
|
3234
3406
|
videoElement: a,
|
|
3235
3407
|
title: t?.title,
|
|
3236
3408
|
size: t?.size,
|
|
3237
3409
|
downloadedRanges: t?.downloadedRanges
|
|
3238
3410
|
}));
|
|
3239
|
-
}, [a, t?.title, t?.size, t?.downloadedRanges]), /* @__PURE__ */ E(
|
|
3411
|
+
}, [a, t?.title, t?.size, t?.downloadedRanges]), /* @__PURE__ */ E(Re.Provider, { value: n, children: /* @__PURE__ */ E(N.Provider, { children: /* @__PURE__ */ E(vo, { options: t, videoElement: a, children: /* @__PURE__ */ E("video", { ref: c, controls: !1 }) }) }) });
|
|
3240
3412
|
};
|
|
3241
3413
|
export {
|
|
3242
|
-
|
|
3243
|
-
|
|
3414
|
+
vo as FKNVideoRoot,
|
|
3415
|
+
_o as default
|
|
3244
3416
|
};
|