@halibegic/react-video-player 0.0.14 → 0.0.16
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 +14 -0
- package/dist/components/live-player/live-player-keyboard.d.ts +2 -0
- package/dist/components/player/player-keyboard.d.ts +2 -0
- package/dist/components/vod-player/vod-player-keyboard.d.ts +2 -0
- package/dist/react-video-player.es.js +1250 -1144
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +48 -48
- package/dist/react-video-player.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Re, { useLayoutEffect as
|
|
1
|
+
import Re, { useLayoutEffect as wo, useEffect as Y, useRef as Z, useState as q, createContext as Nn, useContext as Zt, useDebugValue as mn, createElement as bo, forwardRef as yt, useCallback as N } from "react";
|
|
2
2
|
import { create as Hn, useStore as $n } from "zustand";
|
|
3
3
|
import * as vt from "@radix-ui/react-slider";
|
|
4
|
-
import
|
|
4
|
+
import se from "hls.js";
|
|
5
5
|
import * as Qe from "@radix-ui/react-dropdown-menu";
|
|
6
6
|
var nt = { exports: {} }, Ge = {};
|
|
7
7
|
/**
|
|
@@ -14,20 +14,20 @@ var nt = { exports: {} }, Ge = {};
|
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
16
|
var gn;
|
|
17
|
-
function
|
|
17
|
+
function xo() {
|
|
18
18
|
if (gn) return Ge;
|
|
19
19
|
gn = 1;
|
|
20
|
-
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty,
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
if (
|
|
26
|
-
return { $$typeof: t, type:
|
|
20
|
+
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function u(i, l, d) {
|
|
22
|
+
var h, m = {}, x = null, S = null;
|
|
23
|
+
d !== void 0 && (x = "" + d), l.key !== void 0 && (x = "" + l.key), l.ref !== void 0 && (S = l.ref);
|
|
24
|
+
for (h in l) r.call(l, h) && !a.hasOwnProperty(h) && (m[h] = l[h]);
|
|
25
|
+
if (i && i.defaultProps) for (h in l = i.defaultProps, l) m[h] === void 0 && (m[h] = l[h]);
|
|
26
|
+
return { $$typeof: t, type: i, key: x, ref: S, props: m, _owner: o.current };
|
|
27
27
|
}
|
|
28
|
-
return Ge.Fragment = n, Ge.jsx =
|
|
28
|
+
return Ge.Fragment = n, Ge.jsx = u, Ge.jsxs = u, Ge;
|
|
29
29
|
}
|
|
30
|
-
var
|
|
30
|
+
var Ke = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.development.js
|
|
@@ -38,90 +38,90 @@ var Xe = {};
|
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
40
|
var yn;
|
|
41
|
-
function
|
|
41
|
+
function So() {
|
|
42
42
|
return yn || (yn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
43
|
-
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"),
|
|
44
|
-
function V(
|
|
45
|
-
if (
|
|
43
|
+
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), C = Symbol.iterator, j = "@@iterator";
|
|
44
|
+
function V(s) {
|
|
45
|
+
if (s === null || typeof s != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
47
|
+
var f = C && s[C] || s[j];
|
|
48
|
+
return typeof f == "function" ? f : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function w(s) {
|
|
52
52
|
{
|
|
53
|
-
for (var
|
|
54
|
-
g[
|
|
55
|
-
v("error",
|
|
53
|
+
for (var f = arguments.length, g = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
|
|
54
|
+
g[E - 1] = arguments[E];
|
|
55
|
+
v("error", s, g);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function v(
|
|
58
|
+
function v(s, f, g) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
A !== "" && (
|
|
60
|
+
var E = b.ReactDebugCurrentFrame, A = E.getStackAddendum();
|
|
61
|
+
A !== "" && (f += "%s", g = g.concat([A]));
|
|
62
62
|
var F = g.map(function(L) {
|
|
63
63
|
return String(L);
|
|
64
64
|
});
|
|
65
|
-
F.unshift("Warning: " +
|
|
65
|
+
F.unshift("Warning: " + f), Function.prototype.apply.call(console[s], console, F);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var y = !1, _ = !1,
|
|
69
|
-
|
|
70
|
-
function D(
|
|
71
|
-
return !!(typeof
|
|
68
|
+
var y = !1, _ = !1, T = !1, k = !1, U = !1, J;
|
|
69
|
+
J = Symbol.for("react.module.reference");
|
|
70
|
+
function D(s) {
|
|
71
|
+
return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || U || s === o || s === d || s === h || k || s === S || y || _ || T || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === m || s.$$typeof === u || s.$$typeof === i || s.$$typeof === l || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
|
|
75
|
+
s.$$typeof === J || s.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function _e(
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var A =
|
|
77
|
+
function _e(s, f, g) {
|
|
78
|
+
var E = s.displayName;
|
|
79
|
+
if (E)
|
|
80
|
+
return E;
|
|
81
|
+
var A = f.displayName || f.name || "";
|
|
82
82
|
return A !== "" ? g + "(" + A + ")" : g;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function pe(s) {
|
|
85
|
+
return s.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
if (
|
|
87
|
+
function G(s) {
|
|
88
|
+
if (s == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof
|
|
91
|
-
return
|
|
92
|
-
if (typeof
|
|
93
|
-
return
|
|
94
|
-
switch (
|
|
90
|
+
if (typeof s.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
91
|
+
return s.displayName || s.name || null;
|
|
92
|
+
if (typeof s == "string")
|
|
93
|
+
return s;
|
|
94
|
+
switch (s) {
|
|
95
95
|
case r:
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case n:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case a:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case o:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case d:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case h:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
|
-
if (typeof
|
|
109
|
-
switch (
|
|
110
|
-
case
|
|
111
|
-
var
|
|
112
|
-
return
|
|
113
|
-
case l:
|
|
114
|
-
var g = o;
|
|
115
|
-
return fe(g._context) + ".Provider";
|
|
108
|
+
if (typeof s == "object")
|
|
109
|
+
switch (s.$$typeof) {
|
|
110
|
+
case i:
|
|
111
|
+
var f = s;
|
|
112
|
+
return pe(f) + ".Consumer";
|
|
116
113
|
case u:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
114
|
+
var g = s;
|
|
115
|
+
return pe(g._context) + ".Provider";
|
|
116
|
+
case l:
|
|
117
|
+
return _e(s, s.render, "ForwardRef");
|
|
118
|
+
case m:
|
|
119
|
+
var E = s.displayName || null;
|
|
120
|
+
return E !== null ? E : G(s.type) || "Memo";
|
|
121
|
+
case x: {
|
|
122
|
+
var A = s, F = A._payload, L = A._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return G(L(F));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,103 +129,103 @@ function xo() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var ne = Object.assign,
|
|
132
|
+
var ne = Object.assign, de = 0, Se, Q, Ye, re, ge, ye, K;
|
|
133
133
|
function Ie() {
|
|
134
134
|
}
|
|
135
135
|
Ie.__reactDisabledLog = !0;
|
|
136
136
|
function qe() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
Se = console.log, Q = console.info, Ye = console.warn, re = console.error, ge = console.group, ye = console.groupCollapsed,
|
|
140
|
-
var
|
|
138
|
+
if (de === 0) {
|
|
139
|
+
Se = console.log, Q = console.info, Ye = console.warn, re = console.error, ge = console.group, ye = console.groupCollapsed, K = console.groupEnd;
|
|
140
|
+
var s = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
143
|
value: Ie,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
info:
|
|
148
|
-
log:
|
|
149
|
-
warn:
|
|
150
|
-
error:
|
|
151
|
-
group:
|
|
152
|
-
groupCollapsed:
|
|
153
|
-
groupEnd:
|
|
147
|
+
info: s,
|
|
148
|
+
log: s,
|
|
149
|
+
warn: s,
|
|
150
|
+
error: s,
|
|
151
|
+
group: s,
|
|
152
|
+
groupCollapsed: s,
|
|
153
|
+
groupEnd: s
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
de++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
function De() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
162
|
-
var
|
|
161
|
+
if (de--, de === 0) {
|
|
162
|
+
var s = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log: ne({},
|
|
168
|
+
log: ne({}, s, {
|
|
169
169
|
value: Se
|
|
170
170
|
}),
|
|
171
|
-
info: ne({},
|
|
171
|
+
info: ne({}, s, {
|
|
172
172
|
value: Q
|
|
173
173
|
}),
|
|
174
|
-
warn: ne({},
|
|
174
|
+
warn: ne({}, s, {
|
|
175
175
|
value: Ye
|
|
176
176
|
}),
|
|
177
|
-
error: ne({},
|
|
177
|
+
error: ne({}, s, {
|
|
178
178
|
value: re
|
|
179
179
|
}),
|
|
180
|
-
group: ne({},
|
|
180
|
+
group: ne({}, s, {
|
|
181
181
|
value: ge
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed: ne({},
|
|
183
|
+
groupCollapsed: ne({}, s, {
|
|
184
184
|
value: ye
|
|
185
185
|
}),
|
|
186
|
-
groupEnd: ne({},
|
|
187
|
-
value:
|
|
186
|
+
groupEnd: ne({}, s, {
|
|
187
|
+
value: K
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
de < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var he = b.ReactCurrentDispatcher, ve;
|
|
195
|
+
function ae(s, f, g) {
|
|
196
196
|
{
|
|
197
197
|
if (ve === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
200
|
} catch (A) {
|
|
201
|
-
var
|
|
202
|
-
ve =
|
|
201
|
+
var E = A.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ve = E && E[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` + ve +
|
|
205
|
+
` + ve + s;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var ce = !1, we;
|
|
209
209
|
{
|
|
210
210
|
var Ae = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
we = new Ae();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!
|
|
213
|
+
function le(s, f) {
|
|
214
|
+
if (!s || ce)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var g = we.get(
|
|
217
|
+
var g = we.get(s);
|
|
218
218
|
if (g !== void 0)
|
|
219
219
|
return g;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var E;
|
|
222
|
+
ce = !0;
|
|
223
223
|
var A = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var F;
|
|
226
|
-
F =
|
|
226
|
+
F = he.current, he.current = null, qe();
|
|
227
227
|
try {
|
|
228
|
-
if (
|
|
228
|
+
if (f) {
|
|
229
229
|
var L = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
@@ -237,191 +237,191 @@ function xo() {
|
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(L, []);
|
|
239
239
|
} catch (ee) {
|
|
240
|
-
|
|
240
|
+
E = ee;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(
|
|
242
|
+
Reflect.construct(s, [], L);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
L.call();
|
|
246
246
|
} catch (ee) {
|
|
247
|
-
|
|
247
|
+
E = ee;
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
s.call(L.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
254
|
} catch (ee) {
|
|
255
|
-
|
|
255
|
+
E = ee;
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
s();
|
|
258
258
|
}
|
|
259
259
|
} catch (ee) {
|
|
260
|
-
if (ee &&
|
|
260
|
+
if (ee && E && typeof ee.stack == "string") {
|
|
261
261
|
for (var R = ee.stack.split(`
|
|
262
|
-
`), X =
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (R[
|
|
267
|
-
if (
|
|
262
|
+
`), X = E.stack.split(`
|
|
263
|
+
`), H = R.length - 1, $ = X.length - 1; H >= 1 && $ >= 0 && R[H] !== X[$]; )
|
|
264
|
+
$--;
|
|
265
|
+
for (; H >= 1 && $ >= 0; H--, $--)
|
|
266
|
+
if (R[H] !== X[$]) {
|
|
267
|
+
if (H !== 1 || $ !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (H--, $--, $ < 0 || R[H] !== X[$]) {
|
|
270
270
|
var oe = `
|
|
271
|
-
` + R[
|
|
272
|
-
return
|
|
271
|
+
` + R[H].replace(" at new ", " at ");
|
|
272
|
+
return s.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", s.displayName)), typeof s == "function" && we.set(s, oe), oe;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (H >= 1 && $ >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
ce = !1, he.current = F, De(), Error.prepareStackTrace = A;
|
|
280
280
|
}
|
|
281
|
-
var Fe =
|
|
282
|
-
return typeof
|
|
281
|
+
var Fe = s ? s.displayName || s.name : "", ke = Fe ? ae(Fe) : "";
|
|
282
|
+
return typeof s == "function" && we.set(s, ke), ke;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function Zr(s, f, g) {
|
|
285
|
+
return le(s, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
287
|
+
function Gr(s) {
|
|
288
|
+
var f = s.prototype;
|
|
289
|
+
return !!(f && f.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function et(
|
|
292
|
-
if (
|
|
291
|
+
function et(s, f, g) {
|
|
292
|
+
if (s == null)
|
|
293
293
|
return "";
|
|
294
|
-
if (typeof
|
|
295
|
-
return
|
|
296
|
-
if (typeof
|
|
297
|
-
return
|
|
298
|
-
switch (
|
|
299
|
-
case
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
294
|
+
if (typeof s == "function")
|
|
295
|
+
return le(s, Gr(s));
|
|
296
|
+
if (typeof s == "string")
|
|
297
|
+
return ae(s);
|
|
298
|
+
switch (s) {
|
|
299
|
+
case d:
|
|
300
|
+
return ae("Suspense");
|
|
301
|
+
case h:
|
|
302
|
+
return ae("SuspenseList");
|
|
303
303
|
}
|
|
304
|
-
if (typeof
|
|
305
|
-
switch (
|
|
306
|
-
case
|
|
307
|
-
return
|
|
308
|
-
case
|
|
309
|
-
return et(
|
|
310
|
-
case
|
|
311
|
-
var
|
|
304
|
+
if (typeof s == "object")
|
|
305
|
+
switch (s.$$typeof) {
|
|
306
|
+
case l:
|
|
307
|
+
return Zr(s.render);
|
|
308
|
+
case m:
|
|
309
|
+
return et(s.type, f, g);
|
|
310
|
+
case x: {
|
|
311
|
+
var E = s, A = E._payload, F = E._init;
|
|
312
312
|
try {
|
|
313
|
-
return et(F(A),
|
|
313
|
+
return et(F(A), f, g);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var Ze = Object.prototype.hasOwnProperty, en = {}, tn =
|
|
321
|
-
function tt(
|
|
322
|
-
if (
|
|
323
|
-
var
|
|
320
|
+
var Ze = Object.prototype.hasOwnProperty, en = {}, tn = b.ReactDebugCurrentFrame;
|
|
321
|
+
function tt(s) {
|
|
322
|
+
if (s) {
|
|
323
|
+
var f = s._owner, g = et(s.type, s._source, f ? f.type : null);
|
|
324
324
|
tn.setExtraStackFrame(g);
|
|
325
325
|
} else
|
|
326
326
|
tn.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Kr(s, f, g, E, A) {
|
|
329
329
|
{
|
|
330
330
|
var F = Function.call.bind(Ze);
|
|
331
|
-
for (var L in
|
|
332
|
-
if (F(
|
|
331
|
+
for (var L in s)
|
|
332
|
+
if (F(s, L)) {
|
|
333
333
|
var R = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof
|
|
336
|
-
var X = Error((
|
|
335
|
+
if (typeof s[L] != "function") {
|
|
336
|
+
var X = Error((E || "React class") + ": " + g + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw X.name = "Invariant Violation", X;
|
|
338
338
|
}
|
|
339
|
-
R =
|
|
340
|
-
} catch (
|
|
341
|
-
R =
|
|
339
|
+
R = s[L](f, L, E, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (H) {
|
|
341
|
+
R = H;
|
|
342
342
|
}
|
|
343
|
-
R && !(R instanceof Error) && (tt(A),
|
|
343
|
+
R && !(R instanceof Error) && (tt(A), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", g, L, typeof R), tt(null)), R instanceof Error && !(R.message in en) && (en[R.message] = !0, tt(A), w("Failed %s type: %s", g, R.message), tt(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
var Xr = Array.isArray;
|
|
348
|
-
function
|
|
349
|
-
return Xr(
|
|
348
|
+
function Ct(s) {
|
|
349
|
+
return Xr(s);
|
|
350
350
|
}
|
|
351
|
-
function Jr(
|
|
351
|
+
function Jr(s) {
|
|
352
352
|
{
|
|
353
|
-
var
|
|
353
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, g = f && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
354
354
|
return g;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Qr(s) {
|
|
358
358
|
try {
|
|
359
|
-
return nn(
|
|
359
|
+
return nn(s), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function nn(
|
|
365
|
-
return "" +
|
|
364
|
+
function nn(s) {
|
|
365
|
+
return "" + s;
|
|
366
366
|
}
|
|
367
|
-
function rn(
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
367
|
+
function rn(s) {
|
|
368
|
+
if (Qr(s))
|
|
369
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jr(s)), nn(s);
|
|
370
370
|
}
|
|
371
|
-
var on =
|
|
371
|
+
var on = b.ReactCurrentOwner, eo = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
376
|
}, sn, an;
|
|
377
|
-
function
|
|
378
|
-
if (Ze.call(
|
|
379
|
-
var
|
|
380
|
-
if (
|
|
377
|
+
function to(s) {
|
|
378
|
+
if (Ze.call(s, "ref")) {
|
|
379
|
+
var f = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
380
|
+
if (f && f.isReactWarning)
|
|
381
381
|
return !1;
|
|
382
382
|
}
|
|
383
|
-
return
|
|
383
|
+
return s.ref !== void 0;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
if (Ze.call(
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
385
|
+
function no(s) {
|
|
386
|
+
if (Ze.call(s, "key")) {
|
|
387
|
+
var f = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
388
|
+
if (f && f.isReactWarning)
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
|
-
return
|
|
391
|
+
return s.key !== void 0;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
typeof
|
|
393
|
+
function ro(s, f) {
|
|
394
|
+
typeof s.ref == "string" && on.current;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function oo(s, f) {
|
|
397
397
|
{
|
|
398
398
|
var g = function() {
|
|
399
|
-
sn || (sn = !0,
|
|
399
|
+
sn || (sn = !0, w("%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://reactjs.org/link/special-props)", f));
|
|
400
400
|
};
|
|
401
|
-
g.isReactWarning = !0, Object.defineProperty(
|
|
401
|
+
g.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
402
402
|
get: g,
|
|
403
403
|
configurable: !0
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function so(s, f) {
|
|
408
408
|
{
|
|
409
409
|
var g = function() {
|
|
410
|
-
an || (an = !0,
|
|
410
|
+
an || (an = !0, w("%s: `ref` 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://reactjs.org/link/special-props)", f));
|
|
411
411
|
};
|
|
412
|
-
g.isReactWarning = !0, Object.defineProperty(
|
|
412
|
+
g.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
413
413
|
get: g,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var io = function(
|
|
418
|
+
var io = function(s, f, g, E, A, F, L) {
|
|
419
419
|
var R = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: t,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
|
-
type:
|
|
424
|
-
key:
|
|
423
|
+
type: s,
|
|
424
|
+
key: f,
|
|
425
425
|
ref: g,
|
|
426
426
|
props: L,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
@@ -436,7 +436,7 @@ function xo() {
|
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !1,
|
|
439
|
-
value:
|
|
439
|
+
value: E
|
|
440
440
|
}), Object.defineProperty(R, "_source", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
@@ -444,200 +444,200 @@ function xo() {
|
|
|
444
444
|
value: A
|
|
445
445
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
446
446
|
};
|
|
447
|
-
function
|
|
447
|
+
function ao(s, f, g, E, A) {
|
|
448
448
|
{
|
|
449
449
|
var F, L = {}, R = null, X = null;
|
|
450
|
-
g !== void 0 && (rn(g), R = "" + g),
|
|
451
|
-
for (F in
|
|
452
|
-
Ze.call(
|
|
453
|
-
if (
|
|
454
|
-
var
|
|
455
|
-
for (F in
|
|
456
|
-
L[F] === void 0 && (L[F] =
|
|
450
|
+
g !== void 0 && (rn(g), R = "" + g), no(f) && (rn(f.key), R = "" + f.key), to(f) && (X = f.ref, ro(f, A));
|
|
451
|
+
for (F in f)
|
|
452
|
+
Ze.call(f, F) && !eo.hasOwnProperty(F) && (L[F] = f[F]);
|
|
453
|
+
if (s && s.defaultProps) {
|
|
454
|
+
var H = s.defaultProps;
|
|
455
|
+
for (F in H)
|
|
456
|
+
L[F] === void 0 && (L[F] = H[F]);
|
|
457
457
|
}
|
|
458
458
|
if (R || X) {
|
|
459
|
-
var
|
|
460
|
-
R &&
|
|
459
|
+
var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
460
|
+
R && oo(L, $), X && so(L, $);
|
|
461
461
|
}
|
|
462
|
-
return io(
|
|
462
|
+
return io(s, R, X, A, E, on.current, L);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var Rt =
|
|
466
|
-
function Oe(
|
|
467
|
-
if (
|
|
468
|
-
var
|
|
465
|
+
var Rt = b.ReactCurrentOwner, cn = b.ReactDebugCurrentFrame;
|
|
466
|
+
function Oe(s) {
|
|
467
|
+
if (s) {
|
|
468
|
+
var f = s._owner, g = et(s.type, s._source, f ? f.type : null);
|
|
469
469
|
cn.setExtraStackFrame(g);
|
|
470
470
|
} else
|
|
471
471
|
cn.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
473
|
var jt;
|
|
474
474
|
jt = !1;
|
|
475
|
-
function Lt(
|
|
476
|
-
return typeof
|
|
475
|
+
function Lt(s) {
|
|
476
|
+
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
477
477
|
}
|
|
478
478
|
function ln() {
|
|
479
479
|
{
|
|
480
480
|
if (Rt.current) {
|
|
481
|
-
var
|
|
482
|
-
if (
|
|
481
|
+
var s = G(Rt.current.type);
|
|
482
|
+
if (s)
|
|
483
483
|
return `
|
|
484
484
|
|
|
485
|
-
Check the render method of \`` +
|
|
485
|
+
Check the render method of \`` + s + "`.";
|
|
486
486
|
}
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function co(s) {
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
493
|
var un = {};
|
|
494
|
-
function
|
|
494
|
+
function lo(s) {
|
|
495
495
|
{
|
|
496
|
-
var
|
|
497
|
-
if (!
|
|
498
|
-
var g = typeof
|
|
499
|
-
g && (
|
|
496
|
+
var f = ln();
|
|
497
|
+
if (!f) {
|
|
498
|
+
var g = typeof s == "string" ? s : s.displayName || s.name;
|
|
499
|
+
g && (f = `
|
|
500
500
|
|
|
501
501
|
Check the top-level render call using <` + g + ">.");
|
|
502
502
|
}
|
|
503
|
-
return
|
|
503
|
+
return f;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function dn(
|
|
506
|
+
function dn(s, f) {
|
|
507
507
|
{
|
|
508
|
-
if (!
|
|
508
|
+
if (!s._store || s._store.validated || s.key != null)
|
|
509
509
|
return;
|
|
510
|
-
|
|
511
|
-
var g =
|
|
510
|
+
s._store.validated = !0;
|
|
511
|
+
var g = lo(f);
|
|
512
512
|
if (un[g])
|
|
513
513
|
return;
|
|
514
514
|
un[g] = !0;
|
|
515
|
-
var
|
|
516
|
-
|
|
515
|
+
var E = "";
|
|
516
|
+
s && s._owner && s._owner !== Rt.current && (E = " It was passed a child from " + G(s._owner.type) + "."), Oe(s), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, E), Oe(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function fn(
|
|
519
|
+
function fn(s, f) {
|
|
520
520
|
{
|
|
521
|
-
if (typeof
|
|
521
|
+
if (typeof s != "object")
|
|
522
522
|
return;
|
|
523
|
-
if (
|
|
524
|
-
for (var g = 0; g <
|
|
525
|
-
var
|
|
526
|
-
Lt(
|
|
523
|
+
if (Ct(s))
|
|
524
|
+
for (var g = 0; g < s.length; g++) {
|
|
525
|
+
var E = s[g];
|
|
526
|
+
Lt(E) && dn(E, f);
|
|
527
527
|
}
|
|
528
|
-
else if (Lt(
|
|
529
|
-
|
|
530
|
-
else if (
|
|
531
|
-
var A = V(
|
|
532
|
-
if (typeof A == "function" && A !==
|
|
533
|
-
for (var F = A.call(
|
|
534
|
-
Lt(L.value) && dn(L.value,
|
|
528
|
+
else if (Lt(s))
|
|
529
|
+
s._store && (s._store.validated = !0);
|
|
530
|
+
else if (s) {
|
|
531
|
+
var A = V(s);
|
|
532
|
+
if (typeof A == "function" && A !== s.entries)
|
|
533
|
+
for (var F = A.call(s), L; !(L = F.next()).done; )
|
|
534
|
+
Lt(L.value) && dn(L.value, f);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function uo(s) {
|
|
539
539
|
{
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
540
|
+
var f = s.type;
|
|
541
|
+
if (f == null || typeof f == "string")
|
|
542
542
|
return;
|
|
543
543
|
var g;
|
|
544
|
-
if (typeof
|
|
545
|
-
g =
|
|
546
|
-
else if (typeof
|
|
544
|
+
if (typeof f == "function")
|
|
545
|
+
g = f.propTypes;
|
|
546
|
+
else if (typeof f == "object" && (f.$$typeof === l || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
|
|
549
|
-
g =
|
|
548
|
+
f.$$typeof === m))
|
|
549
|
+
g = f.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
552
|
if (g) {
|
|
553
|
-
var
|
|
554
|
-
|
|
555
|
-
} else if (
|
|
553
|
+
var E = G(f);
|
|
554
|
+
Kr(g, s.props, "prop", E, s);
|
|
555
|
+
} else if (f.PropTypes !== void 0 && !jt) {
|
|
556
556
|
jt = !0;
|
|
557
|
-
var A =
|
|
558
|
-
|
|
557
|
+
var A = G(f);
|
|
558
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof
|
|
560
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function fo(s) {
|
|
564
564
|
{
|
|
565
|
-
for (var
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
Oe(
|
|
565
|
+
for (var f = Object.keys(s.props), g = 0; g < f.length; g++) {
|
|
566
|
+
var E = f[g];
|
|
567
|
+
if (E !== "children" && E !== "key") {
|
|
568
|
+
Oe(s), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Oe(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
|
|
572
|
+
s.ref !== null && (Oe(s), w("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var pn = {};
|
|
576
|
-
function hn(
|
|
576
|
+
function hn(s, f, g, E, A, F) {
|
|
577
577
|
{
|
|
578
|
-
var L = D(
|
|
578
|
+
var L = D(s);
|
|
579
579
|
if (!L) {
|
|
580
580
|
var R = "";
|
|
581
|
-
(
|
|
582
|
-
var X =
|
|
581
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
+
var X = co();
|
|
583
583
|
X ? R += X : R += ln();
|
|
584
|
-
var
|
|
585
|
-
|
|
584
|
+
var H;
|
|
585
|
+
s === null ? H = "null" : Ct(s) ? H = "array" : s !== void 0 && s.$$typeof === t ? (H = "<" + (G(s.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : H = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, R);
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
587
|
+
var $ = ao(s, f, g, A, F);
|
|
588
|
+
if ($ == null)
|
|
589
|
+
return $;
|
|
590
590
|
if (L) {
|
|
591
|
-
var oe =
|
|
591
|
+
var oe = f.children;
|
|
592
592
|
if (oe !== void 0)
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
593
|
+
if (E)
|
|
594
|
+
if (Ct(oe)) {
|
|
595
595
|
for (var Fe = 0; Fe < oe.length; Fe++)
|
|
596
|
-
fn(oe[Fe],
|
|
596
|
+
fn(oe[Fe], s);
|
|
597
597
|
Object.freeze && Object.freeze(oe);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
|
-
fn(oe,
|
|
601
|
+
fn(oe, s);
|
|
602
602
|
}
|
|
603
|
-
if (Ze.call(
|
|
604
|
-
var
|
|
605
|
-
return
|
|
603
|
+
if (Ze.call(f, "key")) {
|
|
604
|
+
var ke = G(s), ee = Object.keys(f).filter(function(vo) {
|
|
605
|
+
return vo !== "key";
|
|
606
606
|
}), _t = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
-
if (!pn[
|
|
608
|
-
var
|
|
609
|
-
|
|
607
|
+
if (!pn[ke + _t]) {
|
|
608
|
+
var yo = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
613
613
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`, _t,
|
|
614
|
+
<%s key={someKey} {...props} />`, _t, ke, yo, ke), pn[ke + _t] = !0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return s === r ? fo($) : uo($), $;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return hn(
|
|
620
|
+
function po(s, f, g) {
|
|
621
|
+
return hn(s, f, g, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return hn(
|
|
623
|
+
function ho(s, f, g) {
|
|
624
|
+
return hn(s, f, g, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
})()),
|
|
626
|
+
var mo = ho, go = po;
|
|
627
|
+
Ke.Fragment = r, Ke.jsx = mo, Ke.jsxs = go;
|
|
628
|
+
})()), Ke;
|
|
629
629
|
}
|
|
630
630
|
var vn;
|
|
631
|
-
function
|
|
632
|
-
return vn || (vn = 1, process.env.NODE_ENV === "production" ? nt.exports =
|
|
631
|
+
function ko() {
|
|
632
|
+
return vn || (vn = 1, process.env.NODE_ENV === "production" ? nt.exports = xo() : nt.exports = So()), nt.exports;
|
|
633
633
|
}
|
|
634
|
-
var
|
|
635
|
-
const
|
|
634
|
+
var c = ko();
|
|
635
|
+
const Eo = typeof window < "u" ? wo : Y;
|
|
636
636
|
function wt(e, t) {
|
|
637
|
-
const n =
|
|
638
|
-
|
|
637
|
+
const n = Z(e);
|
|
638
|
+
Eo(() => {
|
|
639
639
|
n.current = e;
|
|
640
|
-
}, [e]),
|
|
640
|
+
}, [e]), Y(() => {
|
|
641
641
|
if (t === null)
|
|
642
642
|
return;
|
|
643
643
|
const r = setInterval(() => {
|
|
@@ -648,11 +648,11 @@ function wt(e, t) {
|
|
|
648
648
|
};
|
|
649
649
|
}, [t]);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
const [, t] =
|
|
651
|
+
function To(e) {
|
|
652
|
+
const [, t] = q(0);
|
|
653
653
|
wt(() => t((n) => n + 1), e);
|
|
654
654
|
}
|
|
655
|
-
const
|
|
655
|
+
const Po = (e, t) => Hn((n) => ({
|
|
656
656
|
delay: 0,
|
|
657
657
|
startDate: e,
|
|
658
658
|
endDate: t,
|
|
@@ -663,16 +663,16 @@ const Eo = (e, t) => Hn((n) => ({
|
|
|
663
663
|
setEndDate: (r) => n({ endDate: r })
|
|
664
664
|
})), zn = Nn(
|
|
665
665
|
null
|
|
666
|
-
),
|
|
666
|
+
), Co = ({
|
|
667
667
|
children: e,
|
|
668
668
|
startDate: t,
|
|
669
669
|
endDate: n
|
|
670
670
|
}) => {
|
|
671
|
-
const r =
|
|
671
|
+
const r = Z(
|
|
672
672
|
null
|
|
673
673
|
);
|
|
674
|
-
return r.current || (r.current =
|
|
675
|
-
},
|
|
674
|
+
return r.current || (r.current = Po(t, n)), /* @__PURE__ */ c.jsx(zn.Provider, { value: r.current, children: e });
|
|
675
|
+
}, B = (e) => {
|
|
676
676
|
const t = Zt(zn);
|
|
677
677
|
if (!t)
|
|
678
678
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
@@ -680,32 +680,32 @@ const Eo = (e, t) => Hn((n) => ({
|
|
|
680
680
|
};
|
|
681
681
|
var te = function() {
|
|
682
682
|
return te = Object.assign || function(t) {
|
|
683
|
-
for (var n, r = 1,
|
|
683
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
684
684
|
n = arguments[r];
|
|
685
|
-
for (var
|
|
685
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
686
686
|
}
|
|
687
687
|
return t;
|
|
688
688
|
}, te.apply(this, arguments);
|
|
689
689
|
};
|
|
690
690
|
function je(e, t, n) {
|
|
691
|
-
if (n || arguments.length === 2) for (var r = 0,
|
|
692
|
-
(
|
|
693
|
-
return e.concat(
|
|
691
|
+
if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
692
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
693
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Ro(e) {
|
|
696
696
|
var t = /* @__PURE__ */ Object.create(null);
|
|
697
697
|
return function(n) {
|
|
698
698
|
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
699
699
|
};
|
|
700
700
|
}
|
|
701
|
-
var
|
|
701
|
+
var jo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Lo = /* @__PURE__ */ Ro(
|
|
702
702
|
function(e) {
|
|
703
|
-
return
|
|
703
|
+
return jo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
704
704
|
}
|
|
705
705
|
/* Z+1 */
|
|
706
|
-
), M = "-ms-",
|
|
707
|
-
function
|
|
708
|
-
return
|
|
706
|
+
), M = "-ms-", Je = "-moz-", O = "-webkit-", Bn = "comm", bt = "rule", Gt = "decl", _o = "@import", Un = "@keyframes", Io = "@layer", Wn = Math.abs, Kt = String.fromCharCode, Ft = Object.assign;
|
|
707
|
+
function Do(e, t) {
|
|
708
|
+
return W(e, 0) ^ 45 ? (((t << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
|
|
709
709
|
}
|
|
710
710
|
function Yn(e) {
|
|
711
711
|
return e.trim();
|
|
@@ -719,22 +719,22 @@ function P(e, t, n) {
|
|
|
719
719
|
function at(e, t, n) {
|
|
720
720
|
return e.indexOf(t, n);
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function W(e, t) {
|
|
723
723
|
return e.charCodeAt(t) | 0;
|
|
724
724
|
}
|
|
725
725
|
function Ve(e, t, n) {
|
|
726
726
|
return e.slice(t, n);
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function fe(e) {
|
|
729
729
|
return e.length;
|
|
730
730
|
}
|
|
731
731
|
function qn(e) {
|
|
732
732
|
return e.length;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Xe(e, t) {
|
|
735
735
|
return t.push(e), e;
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Ao(e, t) {
|
|
738
738
|
return e.map(t).join("");
|
|
739
739
|
}
|
|
740
740
|
function wn(e, t) {
|
|
@@ -742,9 +742,9 @@ function wn(e, t) {
|
|
|
742
742
|
return !me(n, t);
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
|
-
var xt = 1, Ne = 1, Zn = 0, ie = 0,
|
|
746
|
-
function St(e, t, n, r,
|
|
747
|
-
return { value: e, root: t, parent: n, type: r, props:
|
|
745
|
+
var xt = 1, Ne = 1, Zn = 0, ie = 0, z = 0, Ue = "";
|
|
746
|
+
function St(e, t, n, r, o, a, u, i) {
|
|
747
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: a, line: xt, column: Ne, length: u, return: "", siblings: i };
|
|
748
748
|
}
|
|
749
749
|
function be(e, t) {
|
|
750
750
|
return Ft(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
@@ -752,24 +752,24 @@ function be(e, t) {
|
|
|
752
752
|
function Me(e) {
|
|
753
753
|
for (; e.root; )
|
|
754
754
|
e = be(e.root, { children: [e] });
|
|
755
|
-
|
|
756
|
-
}
|
|
757
|
-
function Ao() {
|
|
758
|
-
return $;
|
|
755
|
+
Xe(e, e.siblings);
|
|
759
756
|
}
|
|
760
757
|
function Oo() {
|
|
761
|
-
return
|
|
758
|
+
return z;
|
|
759
|
+
}
|
|
760
|
+
function Fo() {
|
|
761
|
+
return z = ie > 0 ? W(Ue, --ie) : 0, Ne--, z === 10 && (Ne = 1, xt--), z;
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
return
|
|
763
|
+
function ue() {
|
|
764
|
+
return z = ie < Zn ? W(Ue, ie++) : 0, Ne++, z === 10 && (Ne = 1, xt++), z;
|
|
765
765
|
}
|
|
766
766
|
function Pe() {
|
|
767
|
-
return
|
|
767
|
+
return W(Ue, ie);
|
|
768
768
|
}
|
|
769
769
|
function ct() {
|
|
770
770
|
return ie;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function kt(e, t) {
|
|
773
773
|
return Ve(Ue, e, t);
|
|
774
774
|
}
|
|
775
775
|
function Mt(e) {
|
|
@@ -810,35 +810,35 @@ function Mt(e) {
|
|
|
810
810
|
}
|
|
811
811
|
return 0;
|
|
812
812
|
}
|
|
813
|
-
function Fo(e) {
|
|
814
|
-
return xt = Ne = 1, Zn = de(Ue = e), ie = 0, [];
|
|
815
|
-
}
|
|
816
813
|
function Mo(e) {
|
|
814
|
+
return xt = Ne = 1, Zn = fe(Ue = e), ie = 0, [];
|
|
815
|
+
}
|
|
816
|
+
function Vo(e) {
|
|
817
817
|
return Ue = "", e;
|
|
818
818
|
}
|
|
819
819
|
function It(e) {
|
|
820
|
-
return Yn(
|
|
820
|
+
return Yn(kt(ie - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
for (; (
|
|
824
|
-
|
|
825
|
-
return Mt(e) > 2 || Mt(
|
|
822
|
+
function No(e) {
|
|
823
|
+
for (; (z = Pe()) && z < 33; )
|
|
824
|
+
ue();
|
|
825
|
+
return Mt(e) > 2 || Mt(z) > 3 ? "" : " ";
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
for (; --t &&
|
|
827
|
+
function Ho(e, t) {
|
|
828
|
+
for (; --t && ue() && !(z < 48 || z > 102 || z > 57 && z < 65 || z > 70 && z < 97); )
|
|
829
829
|
;
|
|
830
|
-
return
|
|
830
|
+
return kt(e, ct() + (t < 6 && Pe() == 32 && ue() == 32));
|
|
831
831
|
}
|
|
832
832
|
function Vt(e) {
|
|
833
|
-
for (;
|
|
834
|
-
switch (
|
|
833
|
+
for (; ue(); )
|
|
834
|
+
switch (z) {
|
|
835
835
|
// ] ) " '
|
|
836
836
|
case e:
|
|
837
837
|
return ie;
|
|
838
838
|
// " '
|
|
839
839
|
case 34:
|
|
840
840
|
case 39:
|
|
841
|
-
e !== 34 && e !== 39 && Vt(
|
|
841
|
+
e !== 34 && e !== 39 && Vt(z);
|
|
842
842
|
break;
|
|
843
843
|
// (
|
|
844
844
|
case 40:
|
|
@@ -846,145 +846,145 @@ function Vt(e) {
|
|
|
846
846
|
break;
|
|
847
847
|
// \
|
|
848
848
|
case 92:
|
|
849
|
-
|
|
849
|
+
ue();
|
|
850
850
|
break;
|
|
851
851
|
}
|
|
852
852
|
return ie;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
for (;
|
|
856
|
-
if (e +
|
|
854
|
+
function $o(e, t) {
|
|
855
|
+
for (; ue() && e + z !== 57; )
|
|
856
|
+
if (e + z === 84 && Pe() === 47)
|
|
857
857
|
break;
|
|
858
|
-
return "/*" +
|
|
858
|
+
return "/*" + kt(t, ie - 1) + "*" + Kt(e === 47 ? e : ue());
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function zo(e) {
|
|
861
861
|
for (; !Mt(Pe()); )
|
|
862
|
-
|
|
863
|
-
return
|
|
862
|
+
ue();
|
|
863
|
+
return kt(e, ie);
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
return
|
|
865
|
+
function Bo(e) {
|
|
866
|
+
return Vo(lt("", null, null, null, [""], e = Mo(e), 0, [0], e));
|
|
867
867
|
}
|
|
868
|
-
function lt(e, t, n, r,
|
|
869
|
-
for (var
|
|
870
|
-
switch (
|
|
868
|
+
function lt(e, t, n, r, o, a, u, i, l) {
|
|
869
|
+
for (var d = 0, h = 0, m = u, x = 0, S = 0, C = 0, j = 1, V = 1, b = 1, w = 0, v = "", y = o, _ = a, T = r, k = v; V; )
|
|
870
|
+
switch (C = w, w = ue()) {
|
|
871
871
|
// (
|
|
872
872
|
case 40:
|
|
873
|
-
if (
|
|
874
|
-
at(
|
|
873
|
+
if (C != 108 && W(k, m - 1) == 58) {
|
|
874
|
+
at(k += P(It(w), "&", "&\f"), "&\f", Wn(d ? i[d - 1] : 0)) != -1 && (b = -1);
|
|
875
875
|
break;
|
|
876
876
|
}
|
|
877
877
|
// " ' [
|
|
878
878
|
case 34:
|
|
879
879
|
case 39:
|
|
880
880
|
case 91:
|
|
881
|
-
|
|
881
|
+
k += It(w);
|
|
882
882
|
break;
|
|
883
883
|
// \t \n \r \s
|
|
884
884
|
case 9:
|
|
885
885
|
case 10:
|
|
886
886
|
case 13:
|
|
887
887
|
case 32:
|
|
888
|
-
|
|
888
|
+
k += No(C);
|
|
889
889
|
break;
|
|
890
890
|
// \
|
|
891
891
|
case 92:
|
|
892
|
-
|
|
892
|
+
k += Ho(ct() - 1, 7);
|
|
893
893
|
continue;
|
|
894
894
|
// /
|
|
895
895
|
case 47:
|
|
896
896
|
switch (Pe()) {
|
|
897
897
|
case 42:
|
|
898
898
|
case 47:
|
|
899
|
-
|
|
899
|
+
Xe(Uo($o(ue(), ct()), t, n, l), l);
|
|
900
900
|
break;
|
|
901
901
|
default:
|
|
902
|
-
|
|
902
|
+
k += "/";
|
|
903
903
|
}
|
|
904
904
|
break;
|
|
905
905
|
// {
|
|
906
906
|
case 123 * j:
|
|
907
|
-
|
|
907
|
+
i[d++] = fe(k) * b;
|
|
908
908
|
// } ; \0
|
|
909
909
|
case 125 * j:
|
|
910
910
|
case 59:
|
|
911
911
|
case 0:
|
|
912
|
-
switch (
|
|
912
|
+
switch (w) {
|
|
913
913
|
// \0 }
|
|
914
914
|
case 0:
|
|
915
915
|
case 125:
|
|
916
916
|
V = 0;
|
|
917
917
|
// ;
|
|
918
|
-
case 59 +
|
|
919
|
-
|
|
918
|
+
case 59 + h:
|
|
919
|
+
b == -1 && (k = P(k, /\f/g, "")), S > 0 && fe(k) - m && Xe(S > 32 ? xn(k + ";", r, n, m - 1, l) : xn(P(k, " ", "") + ";", r, n, m - 2, l), l);
|
|
920
920
|
break;
|
|
921
921
|
// @ ;
|
|
922
922
|
case 59:
|
|
923
|
-
|
|
923
|
+
k += ";";
|
|
924
924
|
// { rule/at-rule
|
|
925
925
|
default:
|
|
926
|
-
if (
|
|
927
|
-
if (
|
|
928
|
-
lt(
|
|
926
|
+
if (Xe(T = bn(k, t, n, d, h, o, i, v, y = [], _ = [], m, a), a), w === 123)
|
|
927
|
+
if (h === 0)
|
|
928
|
+
lt(k, t, T, T, y, a, m, i, _);
|
|
929
929
|
else
|
|
930
|
-
switch (
|
|
930
|
+
switch (x === 99 && W(k, 3) === 110 ? 100 : x) {
|
|
931
931
|
// d l m s
|
|
932
932
|
case 100:
|
|
933
933
|
case 108:
|
|
934
934
|
case 109:
|
|
935
935
|
case 115:
|
|
936
|
-
lt(e,
|
|
936
|
+
lt(e, T, T, r && Xe(bn(e, T, T, 0, 0, o, i, v, o, y = [], m, _), _), o, _, m, i, r ? y : _);
|
|
937
937
|
break;
|
|
938
938
|
default:
|
|
939
|
-
lt(
|
|
939
|
+
lt(k, T, T, T, [""], _, 0, i, _);
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
|
-
|
|
942
|
+
d = h = S = 0, j = b = 1, v = k = "", m = u;
|
|
943
943
|
break;
|
|
944
944
|
// :
|
|
945
945
|
case 58:
|
|
946
|
-
|
|
946
|
+
m = 1 + fe(k), S = C;
|
|
947
947
|
default:
|
|
948
948
|
if (j < 1) {
|
|
949
|
-
if (
|
|
949
|
+
if (w == 123)
|
|
950
950
|
--j;
|
|
951
|
-
else if (
|
|
951
|
+
else if (w == 125 && j++ == 0 && Fo() == 125)
|
|
952
952
|
continue;
|
|
953
953
|
}
|
|
954
|
-
switch (
|
|
954
|
+
switch (k += Kt(w), w * j) {
|
|
955
955
|
// &
|
|
956
956
|
case 38:
|
|
957
|
-
|
|
957
|
+
b = h > 0 ? 1 : (k += "\f", -1);
|
|
958
958
|
break;
|
|
959
959
|
// ,
|
|
960
960
|
case 44:
|
|
961
|
-
|
|
961
|
+
i[d++] = (fe(k) - 1) * b, b = 1;
|
|
962
962
|
break;
|
|
963
963
|
// @
|
|
964
964
|
case 64:
|
|
965
|
-
Pe() === 45 && (
|
|
965
|
+
Pe() === 45 && (k += It(ue())), x = Pe(), h = m = fe(v = k += zo(ct())), w++;
|
|
966
966
|
break;
|
|
967
967
|
// -
|
|
968
968
|
case 45:
|
|
969
|
-
|
|
969
|
+
C === 45 && fe(k) == 2 && (j = 0);
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
|
-
return
|
|
972
|
+
return a;
|
|
973
973
|
}
|
|
974
|
-
function bn(e, t, n, r,
|
|
975
|
-
for (var
|
|
976
|
-
for (var
|
|
977
|
-
(y = Yn(V > 0 ? S[
|
|
978
|
-
return St(e, t, n,
|
|
974
|
+
function bn(e, t, n, r, o, a, u, i, l, d, h, m) {
|
|
975
|
+
for (var x = o - 1, S = o === 0 ? a : [""], C = qn(S), j = 0, V = 0, b = 0; j < r; ++j)
|
|
976
|
+
for (var w = 0, v = Ve(e, x + 1, x = Wn(V = u[j])), y = e; w < C; ++w)
|
|
977
|
+
(y = Yn(V > 0 ? S[w] + " " + v : P(v, /&\f/g, S[w]))) && (l[b++] = y);
|
|
978
|
+
return St(e, t, n, o === 0 ? bt : i, l, d, h, m);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
981
|
-
return St(e, t, n, Bn,
|
|
980
|
+
function Uo(e, t, n, r) {
|
|
981
|
+
return St(e, t, n, Bn, Kt(Oo()), Ve(e, 2, -2), 0, r);
|
|
982
982
|
}
|
|
983
|
-
function xn(e, t, n, r,
|
|
984
|
-
return St(e, t, n, Gt, Ve(e, 0, r), Ve(e, r + 1, -1), r,
|
|
983
|
+
function xn(e, t, n, r, o) {
|
|
984
|
+
return St(e, t, n, Gt, Ve(e, 0, r), Ve(e, r + 1, -1), r, o);
|
|
985
985
|
}
|
|
986
986
|
function Gn(e, t, n) {
|
|
987
|
-
switch (
|
|
987
|
+
switch (Do(e, t)) {
|
|
988
988
|
// color-adjust
|
|
989
989
|
case 5103:
|
|
990
990
|
return O + "print-" + e + e;
|
|
@@ -1020,17 +1020,17 @@ function Gn(e, t, n) {
|
|
|
1020
1020
|
return O + e + e;
|
|
1021
1021
|
// tab-size
|
|
1022
1022
|
case 4789:
|
|
1023
|
-
return
|
|
1023
|
+
return Je + e + e;
|
|
1024
1024
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1025
1025
|
case 5349:
|
|
1026
1026
|
case 4246:
|
|
1027
1027
|
case 4810:
|
|
1028
1028
|
case 6968:
|
|
1029
1029
|
case 2756:
|
|
1030
|
-
return O + e +
|
|
1030
|
+
return O + e + Je + e + M + e + e;
|
|
1031
1031
|
// writing-mode
|
|
1032
1032
|
case 5936:
|
|
1033
|
-
switch (
|
|
1033
|
+
switch (W(e, t + 11)) {
|
|
1034
1034
|
// vertical-l(r)
|
|
1035
1035
|
case 114:
|
|
1036
1036
|
return O + e + M + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
@@ -1091,8 +1091,8 @@ function Gn(e, t, n) {
|
|
|
1091
1091
|
// grid-(row|column)-start
|
|
1092
1092
|
case 4384:
|
|
1093
1093
|
case 3616:
|
|
1094
|
-
return n && n.some(function(r,
|
|
1095
|
-
return t =
|
|
1094
|
+
return n && n.some(function(r, o) {
|
|
1095
|
+
return t = o, me(r.props, /grid-\w+-end/);
|
|
1096
1096
|
}) ? ~at(e + (n = n[t].value), "span", 0) ? e : M + P(e, "-start", "") + e + M + "grid-row-span:" + (~at(n, "span", 0) ? me(n, /\d+/) : +me(n, /\d+/) - +me(e, /\d+/)) + ";" : M + P(e, "-start", "") + e;
|
|
1097
1097
|
// grid-(row|column)-end
|
|
1098
1098
|
case 4896:
|
|
@@ -1119,15 +1119,15 @@ function Gn(e, t, n) {
|
|
|
1119
1119
|
case 5789:
|
|
1120
1120
|
case 5021:
|
|
1121
1121
|
case 4765:
|
|
1122
|
-
if (
|
|
1123
|
-
switch (
|
|
1122
|
+
if (fe(e) - 1 - t > 6)
|
|
1123
|
+
switch (W(e, t + 1)) {
|
|
1124
1124
|
// (m)ax-content, (m)in-content
|
|
1125
1125
|
case 109:
|
|
1126
|
-
if (
|
|
1126
|
+
if (W(e, t + 4) !== 45)
|
|
1127
1127
|
break;
|
|
1128
1128
|
// (f)ill-available, (f)it-content
|
|
1129
1129
|
case 102:
|
|
1130
|
-
return P(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" +
|
|
1130
|
+
return P(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + Je + (W(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1131
1131
|
// (s)tretch
|
|
1132
1132
|
case 115:
|
|
1133
1133
|
return ~at(e, "stretch", 0) ? Gn(P(e, "stretch", "fill-available"), t, n) + e : e;
|
|
@@ -1136,20 +1136,20 @@ function Gn(e, t, n) {
|
|
|
1136
1136
|
// grid-(column|row)
|
|
1137
1137
|
case 5152:
|
|
1138
1138
|
case 5920:
|
|
1139
|
-
return P(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r,
|
|
1140
|
-
return M +
|
|
1139
|
+
return P(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, a, u, i, l, d) {
|
|
1140
|
+
return M + o + ":" + a + d + (u ? M + o + "-span:" + (i ? l : +l - +a) + d : "") + e;
|
|
1141
1141
|
});
|
|
1142
1142
|
// position: sticky
|
|
1143
1143
|
case 4949:
|
|
1144
|
-
if (
|
|
1144
|
+
if (W(e, t + 6) === 121)
|
|
1145
1145
|
return P(e, ":", ":" + O) + e;
|
|
1146
1146
|
break;
|
|
1147
1147
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
1148
1148
|
case 6444:
|
|
1149
|
-
switch (
|
|
1149
|
+
switch (W(e, W(e, 14) === 45 ? 18 : 11)) {
|
|
1150
1150
|
// (inline-)?fle(x)
|
|
1151
1151
|
case 120:
|
|
1152
|
-
return P(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (
|
|
1152
|
+
return P(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + M + "$2box$3") + e;
|
|
1153
1153
|
// (inline-)?gri(d)
|
|
1154
1154
|
case 100:
|
|
1155
1155
|
return P(e, ":", ":" + M) + e;
|
|
@@ -1170,11 +1170,11 @@ function ft(e, t) {
|
|
|
1170
1170
|
n += t(e[r], r, e, t) || "";
|
|
1171
1171
|
return n;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function Wo(e, t, n, r) {
|
|
1174
1174
|
switch (e.type) {
|
|
1175
|
-
case
|
|
1175
|
+
case Io:
|
|
1176
1176
|
if (e.children.length) break;
|
|
1177
|
-
case
|
|
1177
|
+
case _o:
|
|
1178
1178
|
case Gt:
|
|
1179
1179
|
return e.return = e.return || e.value;
|
|
1180
1180
|
case Bn:
|
|
@@ -1182,24 +1182,24 @@ function Uo(e, t, n, r) {
|
|
|
1182
1182
|
case Un:
|
|
1183
1183
|
return e.return = e.value + "{" + ft(e.children, r) + "}";
|
|
1184
1184
|
case bt:
|
|
1185
|
-
if (!
|
|
1185
|
+
if (!fe(e.value = e.props.join(","))) return "";
|
|
1186
1186
|
}
|
|
1187
|
-
return
|
|
1187
|
+
return fe(n = ft(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function Yo(e) {
|
|
1190
1190
|
var t = qn(e);
|
|
1191
|
-
return function(n, r,
|
|
1192
|
-
for (var
|
|
1193
|
-
|
|
1194
|
-
return
|
|
1191
|
+
return function(n, r, o, a) {
|
|
1192
|
+
for (var u = "", i = 0; i < t; i++)
|
|
1193
|
+
u += e[i](n, r, o, a) || "";
|
|
1194
|
+
return u;
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function qo(e) {
|
|
1198
1198
|
return function(t) {
|
|
1199
1199
|
t.root || (t = t.return) && e(t);
|
|
1200
1200
|
};
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Zo(e, t, n, r) {
|
|
1203
1203
|
if (e.length > -1 && !e.return)
|
|
1204
1204
|
switch (e.type) {
|
|
1205
1205
|
case Gt:
|
|
@@ -1209,23 +1209,23 @@ function qo(e, t, n, r) {
|
|
|
1209
1209
|
return ft([be(e, { value: P(e.value, "@", "@" + O) })], r);
|
|
1210
1210
|
case bt:
|
|
1211
1211
|
if (e.length)
|
|
1212
|
-
return
|
|
1213
|
-
switch (me(
|
|
1212
|
+
return Ao(n = e.props, function(o) {
|
|
1213
|
+
switch (me(o, r = /(::plac\w+|:read-\w+)/)) {
|
|
1214
1214
|
// :read-(only|write)
|
|
1215
1215
|
case ":read-only":
|
|
1216
1216
|
case ":read-write":
|
|
1217
|
-
Me(be(e, { props: [P(
|
|
1217
|
+
Me(be(e, { props: [P(o, /:(read-\w+)/, ":" + Je + "$1")] })), Me(be(e, { props: [o] })), Ft(e, { props: wn(n, r) });
|
|
1218
1218
|
break;
|
|
1219
1219
|
// :placeholder
|
|
1220
1220
|
case "::placeholder":
|
|
1221
|
-
Me(be(e, { props: [P(
|
|
1221
|
+
Me(be(e, { props: [P(o, /:(plac\w+)/, ":" + O + "input-$1")] })), Me(be(e, { props: [P(o, /:(plac\w+)/, ":" + Je + "$1")] })), Me(be(e, { props: [P(o, /:(plac\w+)/, M + "input-$1")] })), Me(be(e, { props: [o] })), Ft(e, { props: wn(n, r) });
|
|
1222
1222
|
break;
|
|
1223
1223
|
}
|
|
1224
1224
|
return "";
|
|
1225
1225
|
});
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1228
|
+
var Go = {
|
|
1229
1229
|
animationIterationCount: 1,
|
|
1230
1230
|
aspectRatio: 1,
|
|
1231
1231
|
borderImageOutset: 1,
|
|
@@ -1273,47 +1273,47 @@ var Zo = {
|
|
|
1273
1273
|
strokeMiterlimit: 1,
|
|
1274
1274
|
strokeOpacity: 1,
|
|
1275
1275
|
strokeWidth: 1
|
|
1276
|
-
}, Le = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
1277
|
-
`, pt = typeof window < "u" && typeof document < "u",
|
|
1276
|
+
}, Le = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Kn = "active", Xn = "data-styled-version", Et = "6.1.19", Xt = `/*!sc*/
|
|
1277
|
+
`, pt = typeof window < "u" && typeof document < "u", Ko = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Sn = /invalid hook call/i, rt = /* @__PURE__ */ new Set(), Xo = function(e, t) {
|
|
1278
1278
|
if (process.env.NODE_ENV !== "production") {
|
|
1279
1279
|
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
1280
1280
|
`) + `You may see this warning because you've called styled inside another component.
|
|
1281
1281
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
1282
1282
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
1283
|
-
`,
|
|
1283
|
+
`, o = console.error;
|
|
1284
1284
|
try {
|
|
1285
|
-
var
|
|
1286
|
-
console.error = function(
|
|
1287
|
-
for (var
|
|
1288
|
-
Sn.test(
|
|
1289
|
-
},
|
|
1290
|
-
} catch (
|
|
1291
|
-
Sn.test(
|
|
1285
|
+
var a = !0;
|
|
1286
|
+
console.error = function(u) {
|
|
1287
|
+
for (var i = [], l = 1; l < arguments.length; l++) i[l - 1] = arguments[l];
|
|
1288
|
+
Sn.test(u) ? (a = !1, rt.delete(r)) : o.apply(void 0, je([u], i, !1));
|
|
1289
|
+
}, Z(), a && !rt.has(r) && (console.warn(r), rt.add(r));
|
|
1290
|
+
} catch (u) {
|
|
1291
|
+
Sn.test(u.message) && rt.delete(r);
|
|
1292
1292
|
} finally {
|
|
1293
|
-
console.error =
|
|
1293
|
+
console.error = o;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
},
|
|
1296
|
+
}, Tt = Object.freeze([]), He = Object.freeze({});
|
|
1297
1297
|
function Jo(e, t, n) {
|
|
1298
1298
|
return n === void 0 && (n = He), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1299
1299
|
}
|
|
1300
|
-
var Nt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]),
|
|
1301
|
-
function
|
|
1302
|
-
return e.replace(
|
|
1300
|
+
var Nt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Qo = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, es = /(^-|-$)/g;
|
|
1301
|
+
function kn(e) {
|
|
1302
|
+
return e.replace(Qo, "-").replace(es, "");
|
|
1303
1303
|
}
|
|
1304
|
-
var
|
|
1304
|
+
var ts = /(a)(d)/gi, ot = 52, En = function(e) {
|
|
1305
1305
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1306
1306
|
};
|
|
1307
1307
|
function Ht(e) {
|
|
1308
1308
|
var t, n = "";
|
|
1309
|
-
for (t = Math.abs(e); t > ot; t = t / ot | 0) n =
|
|
1310
|
-
return (
|
|
1309
|
+
for (t = Math.abs(e); t > ot; t = t / ot | 0) n = En(t % ot) + n;
|
|
1310
|
+
return (En(t % ot) + n).replace(ts, "$1-$2");
|
|
1311
1311
|
}
|
|
1312
|
-
var Dt,
|
|
1312
|
+
var Dt, Jn = 5381, Ee = function(e, t) {
|
|
1313
1313
|
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
1314
1314
|
return e;
|
|
1315
1315
|
}, Qn = function(e) {
|
|
1316
|
-
return
|
|
1316
|
+
return Ee(Jn, e);
|
|
1317
1317
|
};
|
|
1318
1318
|
function er(e) {
|
|
1319
1319
|
return Ht(Qn(e) >>> 0);
|
|
@@ -1324,26 +1324,26 @@ function tr(e) {
|
|
|
1324
1324
|
function At(e) {
|
|
1325
1325
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1326
1326
|
}
|
|
1327
|
-
var nr = typeof Symbol == "function" && Symbol.for, rr = nr ? Symbol.for("react.memo") : 60115,
|
|
1328
|
-
function
|
|
1329
|
-
return ("type" in (t = e) && t.type.$$typeof) === rr ? or : "$$typeof" in e ?
|
|
1327
|
+
var nr = typeof Symbol == "function" && Symbol.for, rr = nr ? Symbol.for("react.memo") : 60115, ns = nr ? Symbol.for("react.forward_ref") : 60112, rs = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, os = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, or = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, ss = ((Dt = {})[ns] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Dt[rr] = or, Dt);
|
|
1328
|
+
function Tn(e) {
|
|
1329
|
+
return ("type" in (t = e) && t.type.$$typeof) === rr ? or : "$$typeof" in e ? ss[e.$$typeof] : rs;
|
|
1330
1330
|
var t;
|
|
1331
1331
|
}
|
|
1332
|
-
var
|
|
1333
|
-
function
|
|
1332
|
+
var is = Object.defineProperty, as = Object.getOwnPropertyNames, Pn = Object.getOwnPropertySymbols, cs = Object.getOwnPropertyDescriptor, ls = Object.getPrototypeOf, Cn = Object.prototype;
|
|
1333
|
+
function sr(e, t, n) {
|
|
1334
1334
|
if (typeof t != "string") {
|
|
1335
|
-
if (
|
|
1336
|
-
var r =
|
|
1337
|
-
r && r !==
|
|
1338
|
-
}
|
|
1339
|
-
var
|
|
1340
|
-
Pn && (
|
|
1341
|
-
for (var
|
|
1342
|
-
var
|
|
1343
|
-
if (!(
|
|
1344
|
-
var
|
|
1335
|
+
if (Cn) {
|
|
1336
|
+
var r = ls(t);
|
|
1337
|
+
r && r !== Cn && sr(e, r, n);
|
|
1338
|
+
}
|
|
1339
|
+
var o = as(t);
|
|
1340
|
+
Pn && (o = o.concat(Pn(t)));
|
|
1341
|
+
for (var a = Tn(e), u = Tn(t), i = 0; i < o.length; ++i) {
|
|
1342
|
+
var l = o[i];
|
|
1343
|
+
if (!(l in os || n && n[l] || u && l in u || a && l in a)) {
|
|
1344
|
+
var d = cs(t, l);
|
|
1345
1345
|
try {
|
|
1346
|
-
|
|
1346
|
+
is(e, l, d);
|
|
1347
1347
|
} catch {
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
@@ -1354,10 +1354,10 @@ function ir(e, t, n) {
|
|
|
1354
1354
|
function $e(e) {
|
|
1355
1355
|
return typeof e == "function";
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function Jt(e) {
|
|
1358
1358
|
return typeof e == "object" && "styledComponentId" in e;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function Te(e, t) {
|
|
1361
1361
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1362
1362
|
}
|
|
1363
1363
|
function $t(e, t) {
|
|
@@ -1377,7 +1377,7 @@ function zt(e, t, n) {
|
|
|
1377
1377
|
function Qt(e, t) {
|
|
1378
1378
|
Object.defineProperty(e, "toString", { value: t });
|
|
1379
1379
|
}
|
|
1380
|
-
var
|
|
1380
|
+
var us = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1381
1381
|
|
|
1382
1382
|
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
1383
1383
|
|
|
@@ -1419,18 +1419,18 @@ as for instance in your render method then you may be running into this limitati
|
|
|
1419
1419
|
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1420
1420
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
1421
1421
|
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1422
|
-
function
|
|
1422
|
+
function ds() {
|
|
1423
1423
|
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1424
|
-
for (var n = e[0], r = [],
|
|
1425
|
-
return r.forEach(function(
|
|
1426
|
-
n = n.replace(/%[a-z]/,
|
|
1424
|
+
for (var n = e[0], r = [], o = 1, a = e.length; o < a; o += 1) r.push(e[o]);
|
|
1425
|
+
return r.forEach(function(u) {
|
|
1426
|
+
n = n.replace(/%[a-z]/, u);
|
|
1427
1427
|
}), n;
|
|
1428
1428
|
}
|
|
1429
1429
|
function We(e) {
|
|
1430
1430
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1431
|
-
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(
|
|
1431
|
+
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ds.apply(void 0, je([us[e]], t, !1)).trim());
|
|
1432
1432
|
}
|
|
1433
|
-
var
|
|
1433
|
+
var fs = (function() {
|
|
1434
1434
|
function e(t) {
|
|
1435
1435
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1436
1436
|
}
|
|
@@ -1439,68 +1439,68 @@ var di = (function() {
|
|
|
1439
1439
|
return n;
|
|
1440
1440
|
}, e.prototype.insertRules = function(t, n) {
|
|
1441
1441
|
if (t >= this.groupSizes.length) {
|
|
1442
|
-
for (var r = this.groupSizes,
|
|
1443
|
-
this.groupSizes = new Uint32Array(
|
|
1444
|
-
for (var
|
|
1442
|
+
for (var r = this.groupSizes, o = r.length, a = o; t >= a; ) if ((a <<= 1) < 0) throw We(16, "".concat(t));
|
|
1443
|
+
this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
|
|
1444
|
+
for (var u = o; u < a; u++) this.groupSizes[u] = 0;
|
|
1445
1445
|
}
|
|
1446
|
-
for (var
|
|
1446
|
+
for (var i = this.indexOfGroup(t + 1), l = (u = 0, n.length); u < l; u++) this.tag.insertRule(i, n[u]) && (this.groupSizes[t]++, i++);
|
|
1447
1447
|
}, e.prototype.clearGroup = function(t) {
|
|
1448
1448
|
if (t < this.length) {
|
|
1449
|
-
var n = this.groupSizes[t], r = this.indexOfGroup(t),
|
|
1449
|
+
var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
|
|
1450
1450
|
this.groupSizes[t] = 0;
|
|
1451
|
-
for (var
|
|
1451
|
+
for (var a = r; a < o; a++) this.tag.deleteRule(r);
|
|
1452
1452
|
}
|
|
1453
1453
|
}, e.prototype.getGroup = function(t) {
|
|
1454
1454
|
var n = "";
|
|
1455
1455
|
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
1456
|
-
for (var r = this.groupSizes[t],
|
|
1456
|
+
for (var r = this.groupSizes[t], o = this.indexOfGroup(t), a = o + r, u = o; u < a; u++) n += "".concat(this.tag.getRule(u)).concat(Xt);
|
|
1457
1457
|
return n;
|
|
1458
1458
|
}, e;
|
|
1459
|
-
})(),
|
|
1459
|
+
})(), ps = 1 << 30, ut = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), dt = 1, st = function(e) {
|
|
1460
1460
|
if (ut.has(e)) return ut.get(e);
|
|
1461
1461
|
for (; ht.has(dt); ) dt++;
|
|
1462
1462
|
var t = dt++;
|
|
1463
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t >
|
|
1463
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > ps)) throw We(16, "".concat(t));
|
|
1464
1464
|
return ut.set(e, t), ht.set(t, e), t;
|
|
1465
|
-
},
|
|
1465
|
+
}, hs = function(e, t) {
|
|
1466
1466
|
dt = t + 1, ut.set(e, t), ht.set(t, e);
|
|
1467
|
-
},
|
|
1468
|
-
for (var r,
|
|
1469
|
-
},
|
|
1470
|
-
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(
|
|
1471
|
-
var
|
|
1472
|
-
if (
|
|
1473
|
-
var
|
|
1474
|
-
if (
|
|
1475
|
-
var
|
|
1476
|
-
|
|
1477
|
-
} else
|
|
1467
|
+
}, ms = "style[".concat(Le, "][").concat(Xn, '="').concat(Et, '"]'), gs = new RegExp("^".concat(Le, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ys = function(e, t, n) {
|
|
1468
|
+
for (var r, o = n.split(","), a = 0, u = o.length; a < u; a++) (r = o[a]) && e.registerName(t, r);
|
|
1469
|
+
}, vs = function(e, t) {
|
|
1470
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Xt), o = [], a = 0, u = r.length; a < u; a++) {
|
|
1471
|
+
var i = r[a].trim();
|
|
1472
|
+
if (i) {
|
|
1473
|
+
var l = i.match(gs);
|
|
1474
|
+
if (l) {
|
|
1475
|
+
var d = 0 | parseInt(l[1], 10), h = l[2];
|
|
1476
|
+
d !== 0 && (hs(h, d), ys(e, h, l[3]), e.getTag().insertRules(d, o)), o.length = 0;
|
|
1477
|
+
} else o.push(i);
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
}, Rn = function(e) {
|
|
1481
|
-
for (var t = document.querySelectorAll(
|
|
1482
|
-
var
|
|
1483
|
-
|
|
1481
|
+
for (var t = document.querySelectorAll(ms), n = 0, r = t.length; n < r; n++) {
|
|
1482
|
+
var o = t[n];
|
|
1483
|
+
o && o.getAttribute(Le) !== Kn && (vs(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1484
1484
|
}
|
|
1485
1485
|
};
|
|
1486
|
-
function
|
|
1486
|
+
function ws() {
|
|
1487
1487
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1488
1488
|
}
|
|
1489
|
-
var
|
|
1490
|
-
var t = document.head, n = e || t, r = document.createElement("style"),
|
|
1491
|
-
var
|
|
1492
|
-
return
|
|
1493
|
-
})(n),
|
|
1494
|
-
r.setAttribute(Le,
|
|
1495
|
-
var
|
|
1496
|
-
return
|
|
1497
|
-
},
|
|
1489
|
+
var ir = function(e) {
|
|
1490
|
+
var t = document.head, n = e || t, r = document.createElement("style"), o = (function(i) {
|
|
1491
|
+
var l = Array.from(i.querySelectorAll("style[".concat(Le, "]")));
|
|
1492
|
+
return l[l.length - 1];
|
|
1493
|
+
})(n), a = o !== void 0 ? o.nextSibling : null;
|
|
1494
|
+
r.setAttribute(Le, Kn), r.setAttribute(Xn, Et);
|
|
1495
|
+
var u = ws();
|
|
1496
|
+
return u && r.setAttribute("nonce", u), n.insertBefore(r, a), r;
|
|
1497
|
+
}, bs = (function() {
|
|
1498
1498
|
function e(t) {
|
|
1499
|
-
this.element =
|
|
1499
|
+
this.element = ir(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
|
|
1500
1500
|
if (n.sheet) return n.sheet;
|
|
1501
|
-
for (var r = document.styleSheets,
|
|
1502
|
-
var
|
|
1503
|
-
if (
|
|
1501
|
+
for (var r = document.styleSheets, o = 0, a = r.length; o < a; o++) {
|
|
1502
|
+
var u = r[o];
|
|
1503
|
+
if (u.ownerNode === n) return u;
|
|
1504
1504
|
}
|
|
1505
1505
|
throw We(17);
|
|
1506
1506
|
})(this.element), this.length = 0;
|
|
@@ -1517,9 +1517,9 @@ var sr = function(e) {
|
|
|
1517
1517
|
var n = this.sheet.cssRules[t];
|
|
1518
1518
|
return n && n.cssText ? n.cssText : "";
|
|
1519
1519
|
}, e;
|
|
1520
|
-
})(),
|
|
1520
|
+
})(), xs = (function() {
|
|
1521
1521
|
function e(t) {
|
|
1522
|
-
this.element =
|
|
1522
|
+
this.element = ir(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1523
1523
|
}
|
|
1524
1524
|
return e.prototype.insertRule = function(t, n) {
|
|
1525
1525
|
if (t <= this.length && t >= 0) {
|
|
@@ -1532,7 +1532,7 @@ var sr = function(e) {
|
|
|
1532
1532
|
}, e.prototype.getRule = function(t) {
|
|
1533
1533
|
return t < this.length ? this.nodes[t].textContent : "";
|
|
1534
1534
|
}, e;
|
|
1535
|
-
})(),
|
|
1535
|
+
})(), Ss = (function() {
|
|
1536
1536
|
function e(t) {
|
|
1537
1537
|
this.rules = [], this.length = 0;
|
|
1538
1538
|
}
|
|
@@ -1543,30 +1543,30 @@ var sr = function(e) {
|
|
|
1543
1543
|
}, e.prototype.getRule = function(t) {
|
|
1544
1544
|
return t < this.length ? this.rules[t] : "";
|
|
1545
1545
|
}, e;
|
|
1546
|
-
})(), jn = pt,
|
|
1546
|
+
})(), jn = pt, ks = { isServer: !pt, useCSSOMInjection: !Ko }, ar = (function() {
|
|
1547
1547
|
function e(t, n, r) {
|
|
1548
1548
|
t === void 0 && (t = He), n === void 0 && (n = {});
|
|
1549
|
-
var
|
|
1550
|
-
this.options = te(te({},
|
|
1551
|
-
return (function(
|
|
1552
|
-
for (var
|
|
1553
|
-
var
|
|
1554
|
-
return ht.get(
|
|
1555
|
-
})(
|
|
1556
|
-
if (
|
|
1557
|
-
var S =
|
|
1558
|
-
if (S === void 0 || !S.size ||
|
|
1559
|
-
var j = "".concat(Le, ".g").concat(
|
|
1560
|
-
S !== void 0 && S.forEach(function(
|
|
1561
|
-
|
|
1562
|
-
}),
|
|
1563
|
-
},
|
|
1564
|
-
return
|
|
1565
|
-
})(
|
|
1549
|
+
var o = this;
|
|
1550
|
+
this.options = te(te({}, ks), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && pt && jn && (jn = !1, Rn(this)), Qt(this, function() {
|
|
1551
|
+
return (function(a) {
|
|
1552
|
+
for (var u = a.getTag(), i = u.length, l = "", d = function(m) {
|
|
1553
|
+
var x = (function(b) {
|
|
1554
|
+
return ht.get(b);
|
|
1555
|
+
})(m);
|
|
1556
|
+
if (x === void 0) return "continue";
|
|
1557
|
+
var S = a.names.get(x), C = u.getGroup(m);
|
|
1558
|
+
if (S === void 0 || !S.size || C.length === 0) return "continue";
|
|
1559
|
+
var j = "".concat(Le, ".g").concat(m, '[id="').concat(x, '"]'), V = "";
|
|
1560
|
+
S !== void 0 && S.forEach(function(b) {
|
|
1561
|
+
b.length > 0 && (V += "".concat(b, ","));
|
|
1562
|
+
}), l += "".concat(C).concat(j, '{content:"').concat(V, '"}').concat(Xt);
|
|
1563
|
+
}, h = 0; h < i; h++) d(h);
|
|
1564
|
+
return l;
|
|
1565
|
+
})(o);
|
|
1566
1566
|
});
|
|
1567
1567
|
}
|
|
1568
1568
|
return e.registerId = function(t) {
|
|
1569
|
-
return
|
|
1569
|
+
return st(t);
|
|
1570
1570
|
}, e.prototype.rehydrate = function() {
|
|
1571
1571
|
!this.server && pt && Rn(this);
|
|
1572
1572
|
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
@@ -1575,28 +1575,28 @@ var sr = function(e) {
|
|
|
1575
1575
|
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1576
1576
|
}, e.prototype.getTag = function() {
|
|
1577
1577
|
return this.tag || (this.tag = (t = (function(n) {
|
|
1578
|
-
var r = n.useCSSOMInjection,
|
|
1579
|
-
return n.isServer ? new
|
|
1580
|
-
})(this.options), new
|
|
1578
|
+
var r = n.useCSSOMInjection, o = n.target;
|
|
1579
|
+
return n.isServer ? new Ss(o) : r ? new bs(o) : new xs(o);
|
|
1580
|
+
})(this.options), new fs(t)));
|
|
1581
1581
|
var t;
|
|
1582
1582
|
}, e.prototype.hasNameForId = function(t, n) {
|
|
1583
1583
|
return this.names.has(t) && this.names.get(t).has(n);
|
|
1584
1584
|
}, e.prototype.registerName = function(t, n) {
|
|
1585
|
-
if (
|
|
1585
|
+
if (st(t), this.names.has(t)) this.names.get(t).add(n);
|
|
1586
1586
|
else {
|
|
1587
1587
|
var r = /* @__PURE__ */ new Set();
|
|
1588
1588
|
r.add(n), this.names.set(t, r);
|
|
1589
1589
|
}
|
|
1590
1590
|
}, e.prototype.insertRules = function(t, n, r) {
|
|
1591
|
-
this.registerName(t, n), this.getTag().insertRules(
|
|
1591
|
+
this.registerName(t, n), this.getTag().insertRules(st(t), r);
|
|
1592
1592
|
}, e.prototype.clearNames = function(t) {
|
|
1593
1593
|
this.names.has(t) && this.names.get(t).clear();
|
|
1594
1594
|
}, e.prototype.clearRules = function(t) {
|
|
1595
|
-
this.getTag().clearGroup(
|
|
1595
|
+
this.getTag().clearGroup(st(t)), this.clearNames(t);
|
|
1596
1596
|
}, e.prototype.clearTag = function() {
|
|
1597
1597
|
this.tag = void 0;
|
|
1598
1598
|
}, e;
|
|
1599
|
-
})(),
|
|
1599
|
+
})(), Es = /&/g, Ts = /^\s*\/\/.*$/gm;
|
|
1600
1600
|
function cr(e, t) {
|
|
1601
1601
|
return e.map(function(n) {
|
|
1602
1602
|
return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
|
|
@@ -1604,27 +1604,27 @@ function cr(e, t) {
|
|
|
1604
1604
|
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = cr(n.children, t)), n;
|
|
1605
1605
|
});
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1608
|
-
var t, n, r,
|
|
1609
|
-
return
|
|
1610
|
-
},
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
}),
|
|
1614
|
-
var
|
|
1615
|
-
S === void 0 && (S = ""),
|
|
1616
|
-
var V =
|
|
1617
|
-
|
|
1618
|
-
var
|
|
1619
|
-
return ft(
|
|
1620
|
-
return
|
|
1621
|
-
})))),
|
|
1607
|
+
function Ps(e) {
|
|
1608
|
+
var t, n, r, o = He, a = o.options, u = a === void 0 ? He : a, i = o.plugins, l = i === void 0 ? Tt : i, d = function(x, S, C) {
|
|
1609
|
+
return C.startsWith(n) && C.endsWith(n) && C.replaceAll(n, "").length > 0 ? ".".concat(t) : x;
|
|
1610
|
+
}, h = l.slice();
|
|
1611
|
+
h.push(function(x) {
|
|
1612
|
+
x.type === bt && x.value.includes("&") && (x.props[0] = x.props[0].replace(Es, n).replace(r, d));
|
|
1613
|
+
}), u.prefix && h.push(Zo), h.push(Wo);
|
|
1614
|
+
var m = function(x, S, C, j) {
|
|
1615
|
+
S === void 0 && (S = ""), C === void 0 && (C = ""), j === void 0 && (j = "&"), t = j, n = S, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1616
|
+
var V = x.replace(Ts, ""), b = Bo(C || S ? "".concat(C, " ").concat(S, " { ").concat(V, " }") : V);
|
|
1617
|
+
u.namespace && (b = cr(b, u.namespace));
|
|
1618
|
+
var w = [];
|
|
1619
|
+
return ft(b, Yo(h.concat(qo(function(v) {
|
|
1620
|
+
return w.push(v);
|
|
1621
|
+
})))), w;
|
|
1622
1622
|
};
|
|
1623
|
-
return
|
|
1624
|
-
return S.name || We(15),
|
|
1625
|
-
},
|
|
1623
|
+
return m.hash = l.length ? l.reduce(function(x, S) {
|
|
1624
|
+
return S.name || We(15), Ee(x, S.name);
|
|
1625
|
+
}, Jn).toString() : "", m;
|
|
1626
1626
|
}
|
|
1627
|
-
var
|
|
1627
|
+
var Cs = new ar(), Bt = Ps(), lr = Re.createContext({ shouldForwardProp: void 0, styleSheet: Cs, stylis: Bt });
|
|
1628
1628
|
lr.Consumer;
|
|
1629
1629
|
Re.createContext(void 0);
|
|
1630
1630
|
function Ln() {
|
|
@@ -1633,10 +1633,10 @@ function Ln() {
|
|
|
1633
1633
|
var Ut = (function() {
|
|
1634
1634
|
function e(t, n) {
|
|
1635
1635
|
var r = this;
|
|
1636
|
-
this.inject = function(
|
|
1637
|
-
|
|
1638
|
-
var
|
|
1639
|
-
|
|
1636
|
+
this.inject = function(o, a) {
|
|
1637
|
+
a === void 0 && (a = Bt);
|
|
1638
|
+
var u = r.name + a.hash;
|
|
1639
|
+
o.hasNameForId(r.id, u) || o.insertRules(r.id, u, a(r.rules, u, "@keyframes"));
|
|
1640
1640
|
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Qt(this, function() {
|
|
1641
1641
|
throw We(12, String(r.name));
|
|
1642
1642
|
});
|
|
@@ -1644,14 +1644,14 @@ var Ut = (function() {
|
|
|
1644
1644
|
return e.prototype.getName = function(t) {
|
|
1645
1645
|
return t === void 0 && (t = Bt), this.name + t.hash;
|
|
1646
1646
|
}, e;
|
|
1647
|
-
})(),
|
|
1647
|
+
})(), Rs = function(e) {
|
|
1648
1648
|
return e >= "A" && e <= "Z";
|
|
1649
1649
|
};
|
|
1650
1650
|
function _n(e) {
|
|
1651
1651
|
for (var t = "", n = 0; n < e.length; n++) {
|
|
1652
1652
|
var r = e[n];
|
|
1653
1653
|
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
1654
|
-
|
|
1654
|
+
Rs(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
1655
1655
|
}
|
|
1656
1656
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
1657
1657
|
}
|
|
@@ -1659,122 +1659,122 @@ var ur = function(e) {
|
|
|
1659
1659
|
return e == null || e === !1 || e === "";
|
|
1660
1660
|
}, dr = function(e) {
|
|
1661
1661
|
var t, n, r = [];
|
|
1662
|
-
for (var
|
|
1663
|
-
var
|
|
1664
|
-
e.hasOwnProperty(
|
|
1662
|
+
for (var o in e) {
|
|
1663
|
+
var a = e[o];
|
|
1664
|
+
e.hasOwnProperty(o) && !ur(a) && (Array.isArray(a) && a.isCss || $e(a) ? r.push("".concat(_n(o), ":"), a, ";") : ze(a) ? r.push.apply(r, je(je(["".concat(o, " {")], dr(a), !1), ["}"], !1)) : r.push("".concat(_n(o), ": ").concat((t = o, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Go || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
1665
1665
|
}
|
|
1666
1666
|
return r;
|
|
1667
1667
|
};
|
|
1668
|
-
function
|
|
1668
|
+
function Ce(e, t, n, r) {
|
|
1669
1669
|
if (ur(e)) return [];
|
|
1670
|
-
if (
|
|
1670
|
+
if (Jt(e)) return [".".concat(e.styledComponentId)];
|
|
1671
1671
|
if ($e(e)) {
|
|
1672
|
-
if (!$e(
|
|
1673
|
-
var
|
|
1674
|
-
return process.env.NODE_ENV === "production" || typeof
|
|
1672
|
+
if (!$e(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
|
|
1673
|
+
var o = e(t);
|
|
1674
|
+
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Ut || ze(o) || o === null || console.error("".concat(tr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ce(o, t, n, r);
|
|
1675
1675
|
}
|
|
1676
|
-
var
|
|
1677
|
-
return e instanceof Ut ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : ze(e) ? dr(e) : Array.isArray(e) ? Array.prototype.concat.apply(
|
|
1678
|
-
return
|
|
1676
|
+
var a;
|
|
1677
|
+
return e instanceof Ut ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : ze(e) ? dr(e) : Array.isArray(e) ? Array.prototype.concat.apply(Tt, e.map(function(u) {
|
|
1678
|
+
return Ce(u, t, n, r);
|
|
1679
1679
|
})) : [e.toString()];
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function js(e) {
|
|
1682
1682
|
for (var t = 0; t < e.length; t += 1) {
|
|
1683
1683
|
var n = e[t];
|
|
1684
|
-
if ($e(n) && !
|
|
1684
|
+
if ($e(n) && !Jt(n)) return !1;
|
|
1685
1685
|
}
|
|
1686
1686
|
return !0;
|
|
1687
1687
|
}
|
|
1688
|
-
var
|
|
1688
|
+
var Ls = Qn(Et), _s = (function() {
|
|
1689
1689
|
function e(t, n, r) {
|
|
1690
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) &&
|
|
1690
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && js(t), this.componentId = n, this.baseHash = Ee(Ls, n), this.baseStyle = r, ar.registerId(n);
|
|
1691
1691
|
}
|
|
1692
1692
|
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
1693
|
-
var
|
|
1694
|
-
if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId))
|
|
1693
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
1694
|
+
if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = Te(o, this.staticRulesId);
|
|
1695
1695
|
else {
|
|
1696
|
-
var
|
|
1697
|
-
if (!n.hasNameForId(this.componentId,
|
|
1698
|
-
var
|
|
1699
|
-
n.insertRules(this.componentId,
|
|
1696
|
+
var a = $t(Ce(this.rules, t, n, r)), u = Ht(Ee(this.baseHash, a) >>> 0);
|
|
1697
|
+
if (!n.hasNameForId(this.componentId, u)) {
|
|
1698
|
+
var i = r(a, ".".concat(u), void 0, this.componentId);
|
|
1699
|
+
n.insertRules(this.componentId, u, i);
|
|
1700
1700
|
}
|
|
1701
|
-
|
|
1701
|
+
o = Te(o, u), this.staticRulesId = u;
|
|
1702
1702
|
}
|
|
1703
1703
|
else {
|
|
1704
|
-
for (var
|
|
1705
|
-
var
|
|
1706
|
-
if (typeof
|
|
1707
|
-
else if (
|
|
1708
|
-
var
|
|
1709
|
-
|
|
1704
|
+
for (var l = Ee(this.baseHash, r.hash), d = "", h = 0; h < this.rules.length; h++) {
|
|
1705
|
+
var m = this.rules[h];
|
|
1706
|
+
if (typeof m == "string") d += m, process.env.NODE_ENV !== "production" && (l = Ee(l, m));
|
|
1707
|
+
else if (m) {
|
|
1708
|
+
var x = $t(Ce(m, t, n, r));
|
|
1709
|
+
l = Ee(l, x + h), d += x;
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
|
-
if (
|
|
1713
|
-
var S = Ht(
|
|
1714
|
-
n.hasNameForId(this.componentId, S) || n.insertRules(this.componentId, S, r(
|
|
1712
|
+
if (d) {
|
|
1713
|
+
var S = Ht(l >>> 0);
|
|
1714
|
+
n.hasNameForId(this.componentId, S) || n.insertRules(this.componentId, S, r(d, ".".concat(S), void 0, this.componentId)), o = Te(o, S);
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
|
-
return
|
|
1717
|
+
return o;
|
|
1718
1718
|
}, e;
|
|
1719
1719
|
})(), fr = Re.createContext(void 0);
|
|
1720
1720
|
fr.Consumer;
|
|
1721
1721
|
var Ot = {}, In = /* @__PURE__ */ new Set();
|
|
1722
|
-
function
|
|
1723
|
-
var r =
|
|
1724
|
-
var
|
|
1725
|
-
Ot[
|
|
1726
|
-
var
|
|
1727
|
-
return _ ? "".concat(_, "-").concat(
|
|
1728
|
-
})(t.displayName, t.parentComponentId) :
|
|
1722
|
+
function Is(e, t, n) {
|
|
1723
|
+
var r = Jt(e), o = e, a = !At(e), u = t.attrs, i = u === void 0 ? Tt : u, l = t.componentId, d = l === void 0 ? (function(y, _) {
|
|
1724
|
+
var T = typeof y != "string" ? "sc" : kn(y);
|
|
1725
|
+
Ot[T] = (Ot[T] || 0) + 1;
|
|
1726
|
+
var k = "".concat(T, "-").concat(er(Et + T + Ot[T]));
|
|
1727
|
+
return _ ? "".concat(_, "-").concat(k) : k;
|
|
1728
|
+
})(t.displayName, t.parentComponentId) : l, h = t.displayName, m = h === void 0 ? (function(y) {
|
|
1729
1729
|
return At(y) ? "styled.".concat(y) : "Styled(".concat(tr(y), ")");
|
|
1730
|
-
})(e) :
|
|
1731
|
-
if (r &&
|
|
1732
|
-
var j =
|
|
1730
|
+
})(e) : h, x = t.displayName && t.componentId ? "".concat(kn(t.displayName), "-").concat(t.componentId) : t.componentId || d, S = r && o.attrs ? o.attrs.concat(i).filter(Boolean) : i, C = t.shouldForwardProp;
|
|
1731
|
+
if (r && o.shouldForwardProp) {
|
|
1732
|
+
var j = o.shouldForwardProp;
|
|
1733
1733
|
if (t.shouldForwardProp) {
|
|
1734
1734
|
var V = t.shouldForwardProp;
|
|
1735
|
-
|
|
1735
|
+
C = function(y, _) {
|
|
1736
1736
|
return j(y, _) && V(y, _);
|
|
1737
1737
|
};
|
|
1738
|
-
} else
|
|
1738
|
+
} else C = j;
|
|
1739
1739
|
}
|
|
1740
|
-
var
|
|
1741
|
-
function
|
|
1742
|
-
return (function(
|
|
1743
|
-
var
|
|
1744
|
-
process.env.NODE_ENV !== "production" && mn(
|
|
1745
|
-
var Ye = Jo(
|
|
1746
|
-
for (var
|
|
1747
|
-
var Ae = $e(
|
|
1748
|
-
for (var
|
|
1740
|
+
var b = new _s(n, x, r ? o.componentStyle : void 0);
|
|
1741
|
+
function w(y, _) {
|
|
1742
|
+
return (function(T, k, U) {
|
|
1743
|
+
var J = T.attrs, D = T.componentStyle, _e = T.defaultProps, pe = T.foldedComponentIds, G = T.styledComponentId, ne = T.target, de = Re.useContext(fr), Se = Ln(), Q = T.shouldForwardProp || Se.shouldForwardProp;
|
|
1744
|
+
process.env.NODE_ENV !== "production" && mn(G);
|
|
1745
|
+
var Ye = Jo(k, de, _e) || He, re = (function(De, he, ve) {
|
|
1746
|
+
for (var ae, ce = te(te({}, he), { className: void 0, theme: ve }), we = 0; we < De.length; we += 1) {
|
|
1747
|
+
var Ae = $e(ae = De[we]) ? ae(ce) : ae;
|
|
1748
|
+
for (var le in Ae) ce[le] = le === "className" ? Te(ce[le], Ae[le]) : le === "style" ? te(te({}, ce[le]), Ae[le]) : Ae[le];
|
|
1749
1749
|
}
|
|
1750
|
-
return
|
|
1751
|
-
})(
|
|
1752
|
-
for (var
|
|
1753
|
-
var Ie = (function(De,
|
|
1754
|
-
var ve = Ln(),
|
|
1755
|
-
return process.env.NODE_ENV !== "production" && mn(
|
|
1750
|
+
return he.className && (ce.className = Te(ce.className, he.className)), ce;
|
|
1751
|
+
})(J, k, Ye), ge = re.as || ne, ye = {};
|
|
1752
|
+
for (var K in re) re[K] === void 0 || K[0] === "$" || K === "as" || K === "theme" && re.theme === Ye || (K === "forwardedAs" ? ye.as = re.forwardedAs : Q && !Q(K, ge) || (ye[K] = re[K], Q || process.env.NODE_ENV !== "development" || Lo(K) || In.has(K) || !Nt.has(ge) || (In.add(K), console.warn('styled-components: it looks like an unknown prop "'.concat(K, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1753
|
+
var Ie = (function(De, he) {
|
|
1754
|
+
var ve = Ln(), ae = De.generateAndInjectStyles(he, ve.styleSheet, ve.stylis);
|
|
1755
|
+
return process.env.NODE_ENV !== "production" && mn(ae), ae;
|
|
1756
1756
|
})(D, re);
|
|
1757
|
-
process.env.NODE_ENV !== "production" &&
|
|
1758
|
-
var qe =
|
|
1759
|
-
return Ie && (qe += " " + Ie), re.className && (qe += " " + re.className), ye[At(ge) && !Nt.has(ge) ? "class" : "className"] = qe,
|
|
1757
|
+
process.env.NODE_ENV !== "production" && T.warnTooManyClasses && T.warnTooManyClasses(Ie);
|
|
1758
|
+
var qe = Te(pe, G);
|
|
1759
|
+
return Ie && (qe += " " + Ie), re.className && (qe += " " + re.className), ye[At(ge) && !Nt.has(ge) ? "class" : "className"] = qe, U && (ye.ref = U), bo(ge, ye);
|
|
1760
1760
|
})(v, y, _);
|
|
1761
1761
|
}
|
|
1762
|
-
|
|
1763
|
-
var v = Re.forwardRef(
|
|
1764
|
-
return v.attrs = S, v.componentStyle =
|
|
1762
|
+
w.displayName = m;
|
|
1763
|
+
var v = Re.forwardRef(w);
|
|
1764
|
+
return v.attrs = S, v.componentStyle = b, v.displayName = m, v.shouldForwardProp = C, v.foldedComponentIds = r ? Te(o.foldedComponentIds, o.styledComponentId) : "", v.styledComponentId = x, v.target = r ? o.target : e, Object.defineProperty(v, "defaultProps", { get: function() {
|
|
1765
1765
|
return this._foldedDefaultProps;
|
|
1766
1766
|
}, set: function(y) {
|
|
1767
1767
|
this._foldedDefaultProps = r ? (function(_) {
|
|
1768
|
-
for (var
|
|
1769
|
-
for (var
|
|
1768
|
+
for (var T = [], k = 1; k < arguments.length; k++) T[k - 1] = arguments[k];
|
|
1769
|
+
for (var U = 0, J = T; U < J.length; U++) zt(_, J[U], !0);
|
|
1770
1770
|
return _;
|
|
1771
|
-
})({},
|
|
1772
|
-
} }), process.env.NODE_ENV !== "production" && (Xo(
|
|
1773
|
-
var
|
|
1774
|
-
return function(
|
|
1775
|
-
if (!
|
|
1776
|
-
var
|
|
1777
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(y).concat(
|
|
1771
|
+
})({}, o.defaultProps, y) : y;
|
|
1772
|
+
} }), process.env.NODE_ENV !== "production" && (Xo(m, x), v.warnTooManyClasses = /* @__PURE__ */ (function(y, _) {
|
|
1773
|
+
var T = {}, k = !1;
|
|
1774
|
+
return function(U) {
|
|
1775
|
+
if (!k && (T[U] = !0, Object.keys(T).length >= 200)) {
|
|
1776
|
+
var J = _ ? ' with the id of "'.concat(_, '"') : "";
|
|
1777
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(y).concat(J, `.
|
|
1778
1778
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1779
1779
|
Example:
|
|
1780
1780
|
const Component = styled.div.attrs(props => ({
|
|
@@ -1783,15 +1783,15 @@ Example:
|
|
|
1783
1783
|
},
|
|
1784
1784
|
}))\`width: 100%;\`
|
|
1785
1785
|
|
|
1786
|
-
<Component />`),
|
|
1786
|
+
<Component />`), k = !0, T = {};
|
|
1787
1787
|
}
|
|
1788
1788
|
};
|
|
1789
|
-
})(
|
|
1789
|
+
})(m, x)), Qt(v, function() {
|
|
1790
1790
|
return ".".concat(v.styledComponentId);
|
|
1791
|
-
}),
|
|
1791
|
+
}), a && sr(v, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), v;
|
|
1792
1792
|
}
|
|
1793
1793
|
function Dn(e, t) {
|
|
1794
|
-
for (var n = [e[0]], r = 0,
|
|
1794
|
+
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1795
1795
|
return n;
|
|
1796
1796
|
}
|
|
1797
1797
|
var An = function(e) {
|
|
@@ -1799,72 +1799,72 @@ var An = function(e) {
|
|
|
1799
1799
|
};
|
|
1800
1800
|
function mt(e) {
|
|
1801
1801
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1802
|
-
if ($e(e) || ze(e)) return An(
|
|
1802
|
+
if ($e(e) || ze(e)) return An(Ce(Dn(Tt, je([e], t, !0))));
|
|
1803
1803
|
var r = e;
|
|
1804
|
-
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ?
|
|
1804
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? Ce(r) : An(Ce(Dn(r, t)));
|
|
1805
1805
|
}
|
|
1806
1806
|
function Wt(e, t, n) {
|
|
1807
1807
|
if (n === void 0 && (n = He), !t) throw We(1, t);
|
|
1808
|
-
var r = function(
|
|
1809
|
-
for (var
|
|
1810
|
-
return e(t, n, mt.apply(void 0, je([
|
|
1808
|
+
var r = function(o) {
|
|
1809
|
+
for (var a = [], u = 1; u < arguments.length; u++) a[u - 1] = arguments[u];
|
|
1810
|
+
return e(t, n, mt.apply(void 0, je([o], a, !1)));
|
|
1811
1811
|
};
|
|
1812
|
-
return r.attrs = function(
|
|
1813
|
-
return Wt(e, t, te(te({}, n), { attrs: Array.prototype.concat(n.attrs,
|
|
1814
|
-
}, r.withConfig = function(
|
|
1815
|
-
return Wt(e, t, te(te({}, n),
|
|
1812
|
+
return r.attrs = function(o) {
|
|
1813
|
+
return Wt(e, t, te(te({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
|
|
1814
|
+
}, r.withConfig = function(o) {
|
|
1815
|
+
return Wt(e, t, te(te({}, n), o));
|
|
1816
1816
|
}, r;
|
|
1817
1817
|
}
|
|
1818
1818
|
var pr = function(e) {
|
|
1819
|
-
return Wt(
|
|
1819
|
+
return Wt(Is, e);
|
|
1820
1820
|
}, I = pr;
|
|
1821
1821
|
Nt.forEach(function(e) {
|
|
1822
1822
|
I[e] = pr(e);
|
|
1823
1823
|
});
|
|
1824
|
-
function
|
|
1824
|
+
function Ds(e) {
|
|
1825
1825
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1826
1826
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1827
|
-
var r = $t(mt.apply(void 0, je([e], t, !1))),
|
|
1828
|
-
return new Ut(
|
|
1827
|
+
var r = $t(mt.apply(void 0, je([e], t, !1))), o = er(r);
|
|
1828
|
+
return new Ut(o, r);
|
|
1829
1829
|
}
|
|
1830
1830
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1831
1831
|
Perhaps you're looking to import 'styled-components/native'?
|
|
1832
1832
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1833
|
-
var
|
|
1834
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[
|
|
1833
|
+
var it = "__sc-".concat(Le, "__");
|
|
1834
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
1835
1835
|
|
|
1836
|
-
See https://s-c.sh/2BAXzed for more info.`), window[
|
|
1837
|
-
function
|
|
1836
|
+
See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
|
|
1837
|
+
function As({
|
|
1838
1838
|
children: e,
|
|
1839
1839
|
eventFinishedMessage: t,
|
|
1840
1840
|
eventNotStartedMessage: n,
|
|
1841
1841
|
eventStartingSoonMessage: r
|
|
1842
1842
|
}) {
|
|
1843
|
-
const
|
|
1844
|
-
return
|
|
1845
|
-
|
|
1843
|
+
const o = B((d) => d.startDate), a = B((d) => d.endDate), u = Date.now(), i = u < o.getTime(), l = u > a.getTime();
|
|
1844
|
+
return To(5e3), i ? /* @__PURE__ */ c.jsx(
|
|
1845
|
+
Os,
|
|
1846
1846
|
{
|
|
1847
|
-
startDate:
|
|
1847
|
+
startDate: o,
|
|
1848
1848
|
title: n || "Event has not started yet.",
|
|
1849
1849
|
message: r || "Starting in few seconds..."
|
|
1850
1850
|
}
|
|
1851
|
-
) :
|
|
1851
|
+
) : l ? /* @__PURE__ */ c.jsx(Fs, { title: t || "Event has finished." }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1854
|
-
const r = e.getTime() - Date.now(),
|
|
1853
|
+
function Os({ startDate: e, title: t, message: n }) {
|
|
1854
|
+
const r = e.getTime() - Date.now(), o = Math.floor(r / (1e3 * 60 * 60)), a = Math.floor(
|
|
1855
1855
|
r % (1e3 * 60 * 60) / (1e3 * 60)
|
|
1856
1856
|
);
|
|
1857
|
-
return
|
|
1858
|
-
/* @__PURE__ */
|
|
1859
|
-
/* @__PURE__ */
|
|
1857
|
+
return o || a ? /* @__PURE__ */ c.jsxs(Yt, { children: [
|
|
1858
|
+
/* @__PURE__ */ c.jsx(qt, { children: t }),
|
|
1859
|
+
/* @__PURE__ */ c.jsxs(Ms, { children: [
|
|
1860
1860
|
"(",
|
|
1861
|
-
|
|
1861
|
+
o > 0 ? `${o}h ${a}m` : `${a}m`,
|
|
1862
1862
|
")"
|
|
1863
1863
|
] })
|
|
1864
|
-
] }) : /* @__PURE__ */
|
|
1864
|
+
] }) : /* @__PURE__ */ c.jsx(Yt, { children: /* @__PURE__ */ c.jsx(qt, { children: n }) });
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1867
|
-
return /* @__PURE__ */
|
|
1866
|
+
function Fs({ title: e }) {
|
|
1867
|
+
return /* @__PURE__ */ c.jsx(Yt, { children: /* @__PURE__ */ c.jsx(qt, { children: e }) });
|
|
1868
1868
|
}
|
|
1869
1869
|
const Yt = I.div`
|
|
1870
1870
|
position: absolute;
|
|
@@ -1886,7 +1886,7 @@ const Yt = I.div`
|
|
|
1886
1886
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1887
1887
|
"Helvetica Neue", Arial, sans-serif;
|
|
1888
1888
|
font-weight: 500;
|
|
1889
|
-
`,
|
|
1889
|
+
`, Ms = I.p`
|
|
1890
1890
|
margin: 0;
|
|
1891
1891
|
height: 1.25rem;
|
|
1892
1892
|
font-size: 1rem;
|
|
@@ -1894,22 +1894,22 @@ const Yt = I.div`
|
|
|
1894
1894
|
"Helvetica Neue", Arial, sans-serif;
|
|
1895
1895
|
font-weight: 500;
|
|
1896
1896
|
`;
|
|
1897
|
-
function
|
|
1898
|
-
return /* @__PURE__ */
|
|
1897
|
+
function Vs() {
|
|
1898
|
+
return /* @__PURE__ */ c.jsx(
|
|
1899
1899
|
"svg",
|
|
1900
1900
|
{
|
|
1901
1901
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1902
1902
|
viewBox: "0 0 24 24",
|
|
1903
1903
|
fill: "currentColor",
|
|
1904
|
-
children: /* @__PURE__ */
|
|
1904
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })
|
|
1905
1905
|
}
|
|
1906
1906
|
);
|
|
1907
1907
|
}
|
|
1908
1908
|
const xe = yt(
|
|
1909
|
-
({ shape: e = "circle", ...t }, n) => /* @__PURE__ */
|
|
1909
|
+
({ shape: e = "circle", ...t }, n) => /* @__PURE__ */ c.jsx(Ns, { ref: n, $shape: e, ...t })
|
|
1910
1910
|
);
|
|
1911
1911
|
xe.displayName = "PlayerButton";
|
|
1912
|
-
const
|
|
1912
|
+
const Ns = I.button`
|
|
1913
1913
|
margin: 0;
|
|
1914
1914
|
display: flex;
|
|
1915
1915
|
align-items: center;
|
|
@@ -1957,36 +1957,14 @@ const Vi = I.button`
|
|
|
1957
1957
|
padding: 0.25rem 0.5rem;
|
|
1958
1958
|
`}
|
|
1959
1959
|
`;
|
|
1960
|
-
function
|
|
1961
|
-
const n =
|
|
1962
|
-
return n ? /* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
/* @__PURE__ */
|
|
1960
|
+
function Hs({ message: e, ...t }) {
|
|
1961
|
+
const n = B((a) => a.delay), r = B((a) => a.setDelay), o = () => r(0);
|
|
1962
|
+
return n ? /* @__PURE__ */ c.jsxs(xe, { onClick: o, shape: "square", ...t, children: [
|
|
1963
|
+
/* @__PURE__ */ c.jsx("span", { children: e || "Live" }),
|
|
1964
|
+
/* @__PURE__ */ c.jsx(Vs, {})
|
|
1965
1965
|
] }) : null;
|
|
1966
1966
|
}
|
|
1967
|
-
function
|
|
1968
|
-
return /* @__PURE__ */ a.jsx(
|
|
1969
|
-
"svg",
|
|
1970
|
-
{
|
|
1971
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1972
|
-
viewBox: "0 0 24 24",
|
|
1973
|
-
fill: "currentColor",
|
|
1974
|
-
children: /* @__PURE__ */ a.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
|
|
1975
|
-
}
|
|
1976
|
-
);
|
|
1977
|
-
}
|
|
1978
|
-
function mr() {
|
|
1979
|
-
return /* @__PURE__ */ a.jsx(
|
|
1980
|
-
"svg",
|
|
1981
|
-
{
|
|
1982
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1983
|
-
viewBox: "0 0 24 24",
|
|
1984
|
-
fill: "currentColor",
|
|
1985
|
-
children: /* @__PURE__ */ a.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
|
|
1986
|
-
}
|
|
1987
|
-
);
|
|
1988
|
-
}
|
|
1989
|
-
function Hi(e, t, n) {
|
|
1967
|
+
function $s(e, t, n) {
|
|
1990
1968
|
const r = {
|
|
1991
1969
|
days: 86400,
|
|
1992
1970
|
hours: 3600,
|
|
@@ -1996,34 +1974,34 @@ function Hi(e, t, n) {
|
|
|
1996
1974
|
};
|
|
1997
1975
|
return e * (r[t] / r[n]);
|
|
1998
1976
|
}
|
|
1999
|
-
function
|
|
2000
|
-
return
|
|
1977
|
+
function zs(e) {
|
|
1978
|
+
return $s(e, "milliseconds", "seconds");
|
|
2001
1979
|
}
|
|
2002
1980
|
const Be = (e) => {
|
|
2003
1981
|
const t = Math.floor(e / 60), n = Math.floor(e % 60);
|
|
2004
1982
|
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
2005
1983
|
};
|
|
2006
|
-
function
|
|
1984
|
+
function Bs(e) {
|
|
2007
1985
|
const t = typeof window < "u" && window.navigator?.userAgent || "";
|
|
2008
1986
|
return e.test(t);
|
|
2009
1987
|
}
|
|
2010
|
-
const
|
|
2011
|
-
function
|
|
1988
|
+
const hr = Bs(/iPhone|iPad|iPod/i);
|
|
1989
|
+
function Us() {
|
|
2012
1990
|
const e = document;
|
|
2013
1991
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
2014
1992
|
}
|
|
2015
|
-
function
|
|
1993
|
+
function Ws(e) {
|
|
2016
1994
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
2017
1995
|
}
|
|
2018
|
-
function
|
|
1996
|
+
function Ys(e) {
|
|
2019
1997
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
2020
1998
|
}
|
|
2021
|
-
function
|
|
1999
|
+
function qs(e, t) {
|
|
2022
2000
|
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
2023
2001
|
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
2024
2002
|
};
|
|
2025
2003
|
}
|
|
2026
|
-
const
|
|
2004
|
+
const Zs = (e, t) => ({
|
|
2027
2005
|
currentTime: 0,
|
|
2028
2006
|
duration: 0,
|
|
2029
2007
|
isEnded: !1,
|
|
@@ -2105,7 +2083,7 @@ const qi = (e, t) => ({
|
|
|
2105
2083
|
}));
|
|
2106
2084
|
},
|
|
2107
2085
|
getPauseTimeDiff: () => !t().isStarted || !t().pauseTime ? 0 : parseInt(
|
|
2108
|
-
|
|
2086
|
+
zs(Date.now() - t().pauseTime).toFixed(0)
|
|
2109
2087
|
),
|
|
2110
2088
|
play: () => {
|
|
2111
2089
|
const n = t().techRef.current;
|
|
@@ -2142,7 +2120,7 @@ const qi = (e, t) => ({
|
|
|
2142
2120
|
isLoading: !1
|
|
2143
2121
|
});
|
|
2144
2122
|
}
|
|
2145
|
-
}),
|
|
2123
|
+
}), Gs = (e) => ({
|
|
2146
2124
|
idleLocks: /* @__PURE__ */ new Set(),
|
|
2147
2125
|
addIdleLock: (t) => e((n) => ({
|
|
2148
2126
|
idleLocks: new Set(n.idleLocks).add(t)
|
|
@@ -2151,82 +2129,170 @@ const qi = (e, t) => ({
|
|
|
2151
2129
|
const r = new Set(n.idleLocks);
|
|
2152
2130
|
return r.delete(t), { idleLocks: r };
|
|
2153
2131
|
})
|
|
2154
|
-
}),
|
|
2132
|
+
}), Ks = (e) => ({
|
|
2155
2133
|
level: null,
|
|
2156
2134
|
levels: null,
|
|
2157
2135
|
setLevels: (t) => e({ levels: t }),
|
|
2158
2136
|
setLevel: (t) => e({ level: t })
|
|
2159
|
-
}),
|
|
2137
|
+
}), Xs = (e, t) => ({
|
|
2160
2138
|
isFullscreen: !1,
|
|
2161
2139
|
isFullscreenReady: !1,
|
|
2162
2140
|
exitFullscreen: () => {
|
|
2163
|
-
|
|
2141
|
+
Ys(document), e({ isFullscreen: !1 });
|
|
2164
2142
|
},
|
|
2165
2143
|
requestFullscreen: () => {
|
|
2166
2144
|
const n = t().techRef.current, r = t().containerRef.current;
|
|
2167
2145
|
if (!n || !r) return;
|
|
2168
|
-
const
|
|
2169
|
-
|
|
2146
|
+
const o = hr ? n : r;
|
|
2147
|
+
o && Ws(o), e({ isFullscreen: !0 });
|
|
2170
2148
|
},
|
|
2171
2149
|
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
2172
2150
|
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
2173
|
-
}),
|
|
2151
|
+
}), Js = (e) => () => ({
|
|
2174
2152
|
...e
|
|
2175
|
-
}),
|
|
2176
|
-
...
|
|
2177
|
-
...
|
|
2178
|
-
...
|
|
2179
|
-
...
|
|
2180
|
-
...
|
|
2181
|
-
})),
|
|
2182
|
-
function
|
|
2183
|
-
const t =
|
|
2184
|
-
return t.current || (t.current =
|
|
2185
|
-
}
|
|
2186
|
-
const
|
|
2187
|
-
const t = Zt(
|
|
2153
|
+
}), Qs = (e, t) => Hn()((...n) => ({
|
|
2154
|
+
...Zs(...n),
|
|
2155
|
+
...Gs(...n),
|
|
2156
|
+
...Xs(...n),
|
|
2157
|
+
...Ks(...n),
|
|
2158
|
+
...Js({ techRef: e, containerRef: t })(...n)
|
|
2159
|
+
})), mr = Nn(null);
|
|
2160
|
+
function ei({ children: e }) {
|
|
2161
|
+
const t = Z(null), n = Z(null), r = Z(null);
|
|
2162
|
+
return t.current || (t.current = Qs(n, r)), /* @__PURE__ */ c.jsx(mr.Provider, { value: t.current, children: e });
|
|
2163
|
+
}
|
|
2164
|
+
const p = (e) => {
|
|
2165
|
+
const t = Zt(mr);
|
|
2188
2166
|
if (!t)
|
|
2189
2167
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
2190
2168
|
return $n(t, e);
|
|
2191
2169
|
};
|
|
2192
|
-
function
|
|
2193
|
-
const e =
|
|
2170
|
+
function gr() {
|
|
2171
|
+
const e = p((i) => i.exitFullscreen), t = p((i) => i.isFullscreen), n = p((i) => i.isFullscreenReady), r = p((i) => i.requestFullscreen), o = p((i) => i.setVolume), a = p((i) => i.volume), u = N(
|
|
2172
|
+
(i) => {
|
|
2173
|
+
let l = !1;
|
|
2174
|
+
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
2175
|
+
switch (i.code) {
|
|
2176
|
+
case "ArrowUp":
|
|
2177
|
+
o(a + 10 < 100 ? a + 10 : 100), l = !0;
|
|
2178
|
+
break;
|
|
2179
|
+
case "ArrowDown":
|
|
2180
|
+
o(a - 10 > 0 ? a - 10 : 0), l = !0;
|
|
2181
|
+
break;
|
|
2182
|
+
case "KeyM":
|
|
2183
|
+
o(a === 0 ? 100 : 0), l = !0;
|
|
2184
|
+
break;
|
|
2185
|
+
case "KeyF":
|
|
2186
|
+
n && (t ? e() : r(), l = !0);
|
|
2187
|
+
break;
|
|
2188
|
+
}
|
|
2189
|
+
l && i.preventDefault();
|
|
2190
|
+
}
|
|
2191
|
+
},
|
|
2192
|
+
[
|
|
2193
|
+
e,
|
|
2194
|
+
t,
|
|
2195
|
+
n,
|
|
2196
|
+
r,
|
|
2197
|
+
o,
|
|
2198
|
+
a
|
|
2199
|
+
]
|
|
2200
|
+
);
|
|
2201
|
+
return Y(() => (document.addEventListener("keydown", u), () => {
|
|
2202
|
+
document.removeEventListener("keydown", u);
|
|
2203
|
+
}), [u]), null;
|
|
2204
|
+
}
|
|
2205
|
+
function ti() {
|
|
2206
|
+
const e = B((i) => i.delay), t = p((i) => i.isPlaying), n = p((i) => i.pause), r = p((i) => i.getPauseTimeDiff), o = p((i) => i.play), a = B((i) => i.setDelay), u = N(
|
|
2207
|
+
(i) => {
|
|
2208
|
+
let l = !1;
|
|
2209
|
+
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
2210
|
+
switch (i.code) {
|
|
2211
|
+
case "ArrowLeft":
|
|
2212
|
+
a(e + 10), l = !0;
|
|
2213
|
+
break;
|
|
2214
|
+
case "ArrowRight":
|
|
2215
|
+
a(e - 10 > 0 ? e - 10 : 0), l = !0;
|
|
2216
|
+
break;
|
|
2217
|
+
case "Space":
|
|
2218
|
+
if (t)
|
|
2219
|
+
n();
|
|
2220
|
+
else {
|
|
2221
|
+
const d = r();
|
|
2222
|
+
d && a(e + d), o();
|
|
2223
|
+
}
|
|
2224
|
+
l = !0;
|
|
2225
|
+
break;
|
|
2226
|
+
}
|
|
2227
|
+
l && i.preventDefault();
|
|
2228
|
+
}
|
|
2229
|
+
},
|
|
2230
|
+
[e, r, t, n, o, a]
|
|
2231
|
+
);
|
|
2232
|
+
return Y(() => (document.addEventListener("keydown", u), () => {
|
|
2233
|
+
document.removeEventListener("keydown", u);
|
|
2234
|
+
}), [u]), /* @__PURE__ */ c.jsx(gr, {});
|
|
2235
|
+
}
|
|
2236
|
+
function yr() {
|
|
2237
|
+
return /* @__PURE__ */ c.jsx(
|
|
2238
|
+
"svg",
|
|
2239
|
+
{
|
|
2240
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2241
|
+
viewBox: "0 0 24 24",
|
|
2242
|
+
fill: "currentColor",
|
|
2243
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
|
|
2244
|
+
}
|
|
2245
|
+
);
|
|
2246
|
+
}
|
|
2247
|
+
function vr() {
|
|
2248
|
+
return /* @__PURE__ */ c.jsx(
|
|
2249
|
+
"svg",
|
|
2250
|
+
{
|
|
2251
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2252
|
+
viewBox: "0 0 24 24",
|
|
2253
|
+
fill: "currentColor",
|
|
2254
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
|
|
2255
|
+
}
|
|
2256
|
+
);
|
|
2257
|
+
}
|
|
2258
|
+
function ni() {
|
|
2259
|
+
const e = p((i) => i.isPlaying), t = p((i) => i.pause), n = p((i) => i.getPauseTimeDiff), r = p((i) => i.play), o = B((i) => i.delay), a = B((i) => i.setDelay), u = () => {
|
|
2194
2260
|
if (e)
|
|
2195
2261
|
t();
|
|
2196
2262
|
else {
|
|
2197
|
-
const
|
|
2198
|
-
|
|
2263
|
+
const i = n();
|
|
2264
|
+
i && a(o + i), r();
|
|
2199
2265
|
}
|
|
2200
2266
|
};
|
|
2201
|
-
return /* @__PURE__ */
|
|
2267
|
+
return /* @__PURE__ */ c.jsx(xe, { onClick: u, children: e ? /* @__PURE__ */ c.jsx(yr, {}) : /* @__PURE__ */ c.jsx(vr, {}) });
|
|
2202
2268
|
}
|
|
2203
|
-
function
|
|
2269
|
+
function wr({
|
|
2204
2270
|
className: e,
|
|
2205
2271
|
onClick: t,
|
|
2206
2272
|
...n
|
|
2207
2273
|
}) {
|
|
2208
|
-
const r =
|
|
2209
|
-
|
|
2210
|
-
},
|
|
2274
|
+
const r = Z(null), o = p((m) => m.exitFullscreen), a = p((m) => m.isFullscreen), u = p((m) => m.requestFullscreen), i = (m) => {
|
|
2275
|
+
h() ? (d(), a ? o() : u()) : l(m);
|
|
2276
|
+
}, l = (m) => {
|
|
2211
2277
|
r.current = window.setTimeout(() => {
|
|
2212
|
-
t?.(
|
|
2278
|
+
t?.(m), d();
|
|
2213
2279
|
}, 200);
|
|
2214
|
-
},
|
|
2280
|
+
}, d = () => {
|
|
2215
2281
|
r.current !== null && (window.clearTimeout(r.current), r.current = null);
|
|
2216
|
-
},
|
|
2217
|
-
return
|
|
2218
|
-
|
|
2219
|
-
}, []), /* @__PURE__ */
|
|
2220
|
-
|
|
2282
|
+
}, h = () => r.current !== null;
|
|
2283
|
+
return Y(() => () => {
|
|
2284
|
+
d();
|
|
2285
|
+
}, []), /* @__PURE__ */ c.jsx(
|
|
2286
|
+
ri,
|
|
2221
2287
|
{
|
|
2222
|
-
onClick:
|
|
2288
|
+
onClick: i,
|
|
2223
2289
|
className: e,
|
|
2224
2290
|
"aria-label": "Player playback indicator",
|
|
2225
2291
|
...n
|
|
2226
2292
|
}
|
|
2227
2293
|
);
|
|
2228
2294
|
}
|
|
2229
|
-
const
|
|
2295
|
+
const ri = I.button`
|
|
2230
2296
|
position: absolute;
|
|
2231
2297
|
top: 0;
|
|
2232
2298
|
left: 0;
|
|
@@ -2245,22 +2311,22 @@ const ts = I.button`
|
|
|
2245
2311
|
outline: none;
|
|
2246
2312
|
}
|
|
2247
2313
|
`;
|
|
2248
|
-
function
|
|
2249
|
-
const e =
|
|
2314
|
+
function oi() {
|
|
2315
|
+
const e = p((i) => i.isPlaying), t = p((i) => i.pause), n = p((i) => i.getPauseTimeDiff), r = p((i) => i.play), o = B((i) => i.delay), a = B((i) => i.setDelay), u = () => {
|
|
2250
2316
|
if (e)
|
|
2251
2317
|
t();
|
|
2252
2318
|
else {
|
|
2253
|
-
const
|
|
2254
|
-
|
|
2319
|
+
const i = n();
|
|
2320
|
+
i && a(o + i), r();
|
|
2255
2321
|
}
|
|
2256
2322
|
};
|
|
2257
|
-
return /* @__PURE__ */
|
|
2323
|
+
return /* @__PURE__ */ c.jsx(wr, { onClick: u });
|
|
2258
2324
|
}
|
|
2259
|
-
const
|
|
2325
|
+
const br = I.div`
|
|
2260
2326
|
position: relative;
|
|
2261
2327
|
width: 100%;
|
|
2262
2328
|
margin-bottom: -0.25rem;
|
|
2263
|
-
`,
|
|
2329
|
+
`, xr = I.div`
|
|
2264
2330
|
position: absolute;
|
|
2265
2331
|
bottom: 1.75rem;
|
|
2266
2332
|
left: 0;
|
|
@@ -2271,7 +2337,7 @@ const wr = I.div`
|
|
|
2271
2337
|
opacity: ${({ $isVisible: e }) => e ? 1 : 0};
|
|
2272
2338
|
transform: ${({ $isVisible: e }) => e ? "translateY(0)" : "translateY(-0.5rem)"};
|
|
2273
2339
|
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
2274
|
-
`,
|
|
2340
|
+
`, Sr = I.p`
|
|
2275
2341
|
margin: 0;
|
|
2276
2342
|
padding: 0.25rem;
|
|
2277
2343
|
font-variant-numeric: tabular-nums;
|
|
@@ -2283,27 +2349,27 @@ const wr = I.div`
|
|
|
2283
2349
|
color: white;
|
|
2284
2350
|
background: rgba(0, 0, 0, 0.8);
|
|
2285
2351
|
border-radius: 1rem;
|
|
2286
|
-
`, Pt = yt(({ max: e = 100, min: t = 0, ...n }, r) => /* @__PURE__ */
|
|
2287
|
-
|
|
2352
|
+
`, Pt = yt(({ max: e = 100, min: t = 0, ...n }, r) => /* @__PURE__ */ c.jsxs(
|
|
2353
|
+
si,
|
|
2288
2354
|
{
|
|
2289
2355
|
ref: r,
|
|
2290
2356
|
min: t,
|
|
2291
2357
|
max: e,
|
|
2292
2358
|
"aria-label": "Player progress",
|
|
2293
|
-
onKeyDown: (
|
|
2359
|
+
onKeyDown: (o) => (
|
|
2294
2360
|
// Prevent the slider from being controlled by the keyboard
|
|
2295
2361
|
// when the slider is focused by a click
|
|
2296
|
-
|
|
2362
|
+
o.preventDefault()
|
|
2297
2363
|
),
|
|
2298
2364
|
...n,
|
|
2299
2365
|
children: [
|
|
2300
|
-
/* @__PURE__ */
|
|
2301
|
-
/* @__PURE__ */
|
|
2366
|
+
/* @__PURE__ */ c.jsx(ii, { children: /* @__PURE__ */ c.jsx(ai, {}) }),
|
|
2367
|
+
/* @__PURE__ */ c.jsx(ci, {})
|
|
2302
2368
|
]
|
|
2303
2369
|
}
|
|
2304
2370
|
));
|
|
2305
2371
|
Pt.displayName = "PlayerSlider";
|
|
2306
|
-
const
|
|
2372
|
+
const si = I(vt.Root)`
|
|
2307
2373
|
position: relative;
|
|
2308
2374
|
display: flex;
|
|
2309
2375
|
align-items: center;
|
|
@@ -2317,20 +2383,20 @@ const rs = I(vt.Root)`
|
|
|
2317
2383
|
cursor: not-allowed;
|
|
2318
2384
|
opacity: 0.5;
|
|
2319
2385
|
}
|
|
2320
|
-
`,
|
|
2386
|
+
`, ii = I(vt.Track)`
|
|
2321
2387
|
position: relative;
|
|
2322
2388
|
height: 0.25rem;
|
|
2323
2389
|
flex-grow: 1;
|
|
2324
2390
|
background: rgba(255, 255, 255, 0.2);
|
|
2325
2391
|
border-radius: 1rem;
|
|
2326
2392
|
overflow: hidden;
|
|
2327
|
-
`,
|
|
2393
|
+
`, ai = I(vt.Range)`
|
|
2328
2394
|
position: absolute;
|
|
2329
2395
|
height: 100%;
|
|
2330
2396
|
background: #f7e406;
|
|
2331
2397
|
transition: width 0.2s ease-in-out;
|
|
2332
2398
|
border-radius: 1rem;
|
|
2333
|
-
`,
|
|
2399
|
+
`, ci = I(vt.Thumb)`
|
|
2334
2400
|
display: block;
|
|
2335
2401
|
width: 0.875rem;
|
|
2336
2402
|
height: 0.875rem;
|
|
@@ -2365,95 +2431,95 @@ function gt(e) {
|
|
|
2365
2431
|
height: t.height * 100
|
|
2366
2432
|
} : t;
|
|
2367
2433
|
}
|
|
2368
|
-
const
|
|
2434
|
+
const kr = (e, t = 0) => parseInt(
|
|
2369
2435
|
Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
|
|
2370
|
-
),
|
|
2371
|
-
const r = t < 0 ? 0 : t,
|
|
2372
|
-
return `${parseFloat((e / Math.pow(1024,
|
|
2436
|
+
), Er = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Tr = (e, t) => Math.max(0, (t - e) / 1e3), li = (e, t = 0) => {
|
|
2437
|
+
const r = t < 0 ? 0 : t, o = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], a = Math.floor(Math.log(e) / Math.log(1024));
|
|
2438
|
+
return `${parseFloat((e / Math.pow(1024, a)).toFixed(r))}${o[a]}`;
|
|
2373
2439
|
};
|
|
2374
|
-
function
|
|
2440
|
+
function ui({
|
|
2375
2441
|
isAuto: e,
|
|
2376
2442
|
level: t,
|
|
2377
2443
|
levels: n
|
|
2378
2444
|
}) {
|
|
2379
|
-
const r = n.length,
|
|
2380
|
-
return r > 1 &&
|
|
2445
|
+
const r = n.length, o = [];
|
|
2446
|
+
return r > 1 && o.push({
|
|
2381
2447
|
sid: "quality-level-auto",
|
|
2382
2448
|
label: "Auto",
|
|
2383
2449
|
value: -1,
|
|
2384
2450
|
selected: e || t === -1
|
|
2385
|
-
}), n.sort(function(
|
|
2386
|
-
const
|
|
2387
|
-
return
|
|
2388
|
-
}), n.map((
|
|
2389
|
-
const { bitrate:
|
|
2390
|
-
|
|
2391
|
-
sid: `quality-level-${
|
|
2392
|
-
label:
|
|
2393
|
-
value:
|
|
2394
|
-
selected: r === 1 || !e &&
|
|
2451
|
+
}), n.sort(function(a, u) {
|
|
2452
|
+
const i = a.height || a.bitrate || 0, l = u.height || u.bitrate || 0;
|
|
2453
|
+
return i === l ? 0 : i > l ? 1 : -1;
|
|
2454
|
+
}), n.map((a) => {
|
|
2455
|
+
const { bitrate: u, height: i, index: l } = a;
|
|
2456
|
+
o.push({
|
|
2457
|
+
sid: `quality-level-${l}`,
|
|
2458
|
+
label: i ? `${i}p` : li(u),
|
|
2459
|
+
value: l,
|
|
2460
|
+
selected: r === 1 || !e && l === t
|
|
2395
2461
|
});
|
|
2396
|
-
}),
|
|
2462
|
+
}), o;
|
|
2397
2463
|
}
|
|
2398
2464
|
const On = "vod-player-progress-bar";
|
|
2399
|
-
function
|
|
2400
|
-
const e =
|
|
2401
|
-
r(
|
|
2402
|
-
}, [
|
|
2403
|
-
(
|
|
2465
|
+
function di() {
|
|
2466
|
+
const e = Z(null), t = Z(null), [n, r] = q(0), [o, a] = q(0), [u, i] = q(!1), [l, d] = q(-1), [h, m] = q(-1), x = B((D) => D.delay), S = B((D) => D.startTime), C = B((D) => D.endTime), j = B((D) => D.setDelay), V = p((D) => D.isPlaying), b = p((D) => D.addIdleLock), w = p((D) => D.removeIdleLock), v = N(() => {
|
|
2467
|
+
r(Er(S, x)), a(Tr(S, C));
|
|
2468
|
+
}, [x, C, S]), y = parseFloat(
|
|
2469
|
+
(o ? (h !== -1 ? h : n) / o * 100 : 0).toFixed(1)
|
|
2404
2470
|
), _ = (D) => {
|
|
2405
|
-
|
|
2406
|
-
},
|
|
2407
|
-
if (
|
|
2408
|
-
const D =
|
|
2409
|
-
j(D),
|
|
2471
|
+
m(o * (D[0] / 100)), b(On);
|
|
2472
|
+
}, T = () => {
|
|
2473
|
+
if (h !== -1) {
|
|
2474
|
+
const D = kr(S, h);
|
|
2475
|
+
j(D), m(-1), w(On);
|
|
2410
2476
|
}
|
|
2411
|
-
},
|
|
2477
|
+
}, k = () => i(!0), U = () => i(!1), J = N(
|
|
2412
2478
|
(D) => {
|
|
2413
|
-
const _e = e.current,
|
|
2414
|
-
if (_e &&
|
|
2415
|
-
const
|
|
2479
|
+
const _e = e.current, pe = t.current;
|
|
2480
|
+
if (_e && pe) {
|
|
2481
|
+
const G = gt(_e), ne = gt(pe), de = (D.pageX || D.clientX) - G.left, Se = de / G.width;
|
|
2416
2482
|
if (Se < 0) return;
|
|
2417
|
-
let Q =
|
|
2418
|
-
Q < 0 && (Q = 0), Q >
|
|
2483
|
+
let Q = de - ne.width / 2;
|
|
2484
|
+
Q < 0 && (Q = 0), Q > G.width - ne.width && (Q = -1), pe.style.left = Q > -1 ? `${Q}px` : "auto", pe.style.right = Q > -1 ? "auto" : "0px", d(Se * o);
|
|
2419
2485
|
}
|
|
2420
|
-
|
|
2486
|
+
k();
|
|
2421
2487
|
},
|
|
2422
|
-
[
|
|
2488
|
+
[o]
|
|
2423
2489
|
);
|
|
2424
|
-
return wt(() => v(), V ? 1e3 : null),
|
|
2490
|
+
return wt(() => v(), V ? 1e3 : null), Y(() => {
|
|
2425
2491
|
v();
|
|
2426
|
-
}, [v]), /* @__PURE__ */
|
|
2427
|
-
/* @__PURE__ */
|
|
2492
|
+
}, [v]), /* @__PURE__ */ c.jsxs(br, { children: [
|
|
2493
|
+
/* @__PURE__ */ c.jsx(
|
|
2428
2494
|
Pt,
|
|
2429
2495
|
{
|
|
2430
2496
|
ref: e,
|
|
2431
2497
|
value: [y],
|
|
2432
|
-
onPointerLeave:
|
|
2433
|
-
onPointerDown:
|
|
2434
|
-
onPointerMove:
|
|
2498
|
+
onPointerLeave: U,
|
|
2499
|
+
onPointerDown: U,
|
|
2500
|
+
onPointerMove: J,
|
|
2435
2501
|
onValueChange: _,
|
|
2436
|
-
onValueCommit:
|
|
2502
|
+
onValueCommit: T,
|
|
2437
2503
|
step: 0.1
|
|
2438
2504
|
}
|
|
2439
2505
|
),
|
|
2440
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ c.jsx(xr, { ref: t, $isVisible: u, children: /* @__PURE__ */ c.jsx(Sr, { children: Be(l) }) })
|
|
2441
2507
|
] });
|
|
2442
2508
|
}
|
|
2443
|
-
function
|
|
2444
|
-
return /* @__PURE__ */
|
|
2509
|
+
function Pr({ children: e }) {
|
|
2510
|
+
return /* @__PURE__ */ c.jsx(ei, { children: e });
|
|
2445
2511
|
}
|
|
2446
|
-
function
|
|
2512
|
+
function fi({
|
|
2447
2513
|
children: e,
|
|
2448
2514
|
startDate: t,
|
|
2449
2515
|
endDate: n
|
|
2450
2516
|
}) {
|
|
2451
|
-
return /* @__PURE__ */
|
|
2517
|
+
return /* @__PURE__ */ c.jsx(Co, { startDate: t, endDate: n, children: /* @__PURE__ */ c.jsx(Pr, { children: e }) });
|
|
2452
2518
|
}
|
|
2453
|
-
const
|
|
2519
|
+
const Cr = I.div`
|
|
2454
2520
|
display: flex;
|
|
2455
2521
|
align-items: center;
|
|
2456
|
-
`,
|
|
2522
|
+
`, Rr = I.p`
|
|
2457
2523
|
margin: 0;
|
|
2458
2524
|
padding: 0;
|
|
2459
2525
|
font-variant-numeric: tabular-nums;
|
|
@@ -2461,11 +2527,11 @@ const Pr = I.div`
|
|
|
2461
2527
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
2462
2528
|
"Helvetica Neue", Arial, sans-serif;
|
|
2463
2529
|
font-weight: 500;
|
|
2464
|
-
`,
|
|
2530
|
+
`, jr = I(Rr)`
|
|
2465
2531
|
margin-right: 0.5rem;
|
|
2466
|
-
`,
|
|
2532
|
+
`, Lr = I(Rr)`
|
|
2467
2533
|
margin-left: 0.5rem;
|
|
2468
|
-
`,
|
|
2534
|
+
`, _r = I.p`
|
|
2469
2535
|
margin: 0;
|
|
2470
2536
|
padding: 0;
|
|
2471
2537
|
font-size: 0.8125rem;
|
|
@@ -2477,140 +2543,154 @@ const Pr = I.div`
|
|
|
2477
2543
|
content: "/";
|
|
2478
2544
|
}
|
|
2479
2545
|
`;
|
|
2480
|
-
function
|
|
2481
|
-
const [e, t] =
|
|
2482
|
-
t(
|
|
2483
|
-
}, [
|
|
2484
|
-
return wt(() =>
|
|
2485
|
-
|
|
2486
|
-
}, [
|
|
2487
|
-
/* @__PURE__ */
|
|
2488
|
-
/* @__PURE__ */
|
|
2489
|
-
/* @__PURE__ */
|
|
2546
|
+
function pi() {
|
|
2547
|
+
const [e, t] = q(0), [n, r] = q(0), o = p((d) => d.isPlaying), a = B((d) => d.delay), u = B((d) => d.startTime), i = B((d) => d.endTime), l = N(() => {
|
|
2548
|
+
t(Er(u, a)), r(Tr(u, i));
|
|
2549
|
+
}, [a, i, u]);
|
|
2550
|
+
return wt(() => l(), o ? 1e3 : null), Y(() => {
|
|
2551
|
+
l();
|
|
2552
|
+
}, [l]), a ? /* @__PURE__ */ c.jsxs(Cr, { children: [
|
|
2553
|
+
/* @__PURE__ */ c.jsx(jr, { children: Be(e) }),
|
|
2554
|
+
/* @__PURE__ */ c.jsx(_r, {}),
|
|
2555
|
+
/* @__PURE__ */ c.jsx(Lr, { children: Be(n) })
|
|
2490
2556
|
] }) : null;
|
|
2491
2557
|
}
|
|
2492
|
-
function
|
|
2493
|
-
return /* @__PURE__ */
|
|
2558
|
+
function hi() {
|
|
2559
|
+
return /* @__PURE__ */ c.jsx(
|
|
2494
2560
|
"svg",
|
|
2495
2561
|
{
|
|
2496
2562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2497
2563
|
viewBox: "0 0 24 24",
|
|
2498
2564
|
fill: "currentColor",
|
|
2499
|
-
children: /* @__PURE__ */
|
|
2565
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
|
|
2500
2566
|
}
|
|
2501
2567
|
);
|
|
2502
2568
|
}
|
|
2503
|
-
function
|
|
2504
|
-
const e =
|
|
2505
|
-
return /* @__PURE__ */
|
|
2569
|
+
function mi() {
|
|
2570
|
+
const e = B((r) => r.startTime), t = B((r) => r.setDelay), n = () => t(kr(e));
|
|
2571
|
+
return /* @__PURE__ */ c.jsx(xe, { onClick: n, children: /* @__PURE__ */ c.jsx(hi, {}) });
|
|
2506
2572
|
}
|
|
2507
|
-
function
|
|
2508
|
-
const n =
|
|
2509
|
-
(
|
|
2510
|
-
if (n.current && (n.current.nextLevel =
|
|
2511
|
-
const
|
|
2573
|
+
function gi({ url: e, isLive: t }) {
|
|
2574
|
+
const n = Z(null), r = p((b) => b.level), o = p((b) => b.levels), a = p((b) => b.setLevel), u = p((b) => b.setLevels), i = p((b) => b.techRef), l = p((b) => b.isStarted), [d, h] = q(!1), m = N(
|
|
2575
|
+
(b) => {
|
|
2576
|
+
if (n.current && (n.current.nextLevel = b, a(null), o)) {
|
|
2577
|
+
const w = o.map((v) => ({
|
|
2512
2578
|
...v,
|
|
2513
|
-
selected: v.value ===
|
|
2579
|
+
selected: v.value === b
|
|
2514
2580
|
}));
|
|
2515
|
-
|
|
2581
|
+
u(w);
|
|
2516
2582
|
}
|
|
2517
2583
|
},
|
|
2518
|
-
[
|
|
2519
|
-
),
|
|
2584
|
+
[o, a, u, n]
|
|
2585
|
+
), x = N(() => {
|
|
2520
2586
|
n.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), n.current.loadSource(e));
|
|
2521
|
-
}, [e]), S =
|
|
2587
|
+
}, [e]), S = N(() => {
|
|
2522
2588
|
if (!n.current) return;
|
|
2523
2589
|
console.log("[Player][HLS] MANIFEST_LOADED");
|
|
2524
|
-
const
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
levels:
|
|
2528
|
-
const { bitrate:
|
|
2590
|
+
const b = n.current.levels, w = n.current.currentLevel, v = n.current.autoLevelEnabled;
|
|
2591
|
+
u(
|
|
2592
|
+
ui({
|
|
2593
|
+
levels: b.map((y, _) => {
|
|
2594
|
+
const { bitrate: T, height: k, width: U } = y;
|
|
2529
2595
|
return {
|
|
2530
|
-
bitrate:
|
|
2531
|
-
height:
|
|
2596
|
+
bitrate: T,
|
|
2597
|
+
height: k,
|
|
2532
2598
|
index: _,
|
|
2533
|
-
width:
|
|
2599
|
+
width: U
|
|
2534
2600
|
};
|
|
2535
2601
|
}),
|
|
2536
|
-
level:
|
|
2602
|
+
level: w,
|
|
2537
2603
|
isAuto: v
|
|
2538
2604
|
})
|
|
2539
2605
|
);
|
|
2540
|
-
}, [
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2606
|
+
}, [u]), C = N(
|
|
2607
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2608
|
+
(b, w) => {
|
|
2609
|
+
if (console.error("[Player][HLS] ERROR", b, w), !!n.current)
|
|
2610
|
+
switch (w.type) {
|
|
2611
|
+
case se.ErrorTypes.NETWORK_ERROR:
|
|
2612
|
+
w.fatal && n.current.startLoad();
|
|
2613
|
+
break;
|
|
2614
|
+
case se.ErrorTypes.MEDIA_ERROR:
|
|
2615
|
+
if (w.fatal) n.current.recoverMediaError();
|
|
2616
|
+
else if (w.details === se.ErrorDetails.BUFFER_STALLED_ERROR && t && !d) {
|
|
2617
|
+
h(!0), console.log(
|
|
2618
|
+
"[Player][HLS] Stream failed, attempting failover retry..."
|
|
2619
|
+
);
|
|
2620
|
+
try {
|
|
2621
|
+
console.log("[Player][HLS] Retrying stream..."), n.current.loadSource(e);
|
|
2622
|
+
} catch (v) {
|
|
2623
|
+
console.error("[Player][HLS] Failover retry failed:", v);
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
break;
|
|
2627
|
+
}
|
|
2552
2628
|
},
|
|
2553
|
-
[
|
|
2554
|
-
), j =
|
|
2555
|
-
if (!
|
|
2556
|
-
const
|
|
2629
|
+
[t, d, e]
|
|
2630
|
+
), j = N(() => {
|
|
2631
|
+
if (!i.current) return;
|
|
2632
|
+
const b = {
|
|
2557
2633
|
backBufferLength: 10,
|
|
2558
|
-
startLevel: -1
|
|
2559
|
-
|
|
2634
|
+
startLevel: -1,
|
|
2635
|
+
maxBufferSize: 30 * 1024 * 1024
|
|
2636
|
+
// 30MB
|
|
2637
|
+
}, w = {
|
|
2560
2638
|
backBufferLength: 60,
|
|
2561
|
-
startLevel: -1
|
|
2562
|
-
|
|
2639
|
+
startLevel: -1,
|
|
2640
|
+
maxBufferSize: 30 * 1024 * 1024
|
|
2641
|
+
// 30MB
|
|
2642
|
+
}, v = t ? b : w;
|
|
2563
2643
|
try {
|
|
2564
|
-
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(v)), console.log("[Player][HLS] Version",
|
|
2644
|
+
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(v)), console.log("[Player][HLS] Version", se.version), n.current = new se(v), n.current.attachMedia(i.current), n.current.on(se.Events.MEDIA_ATTACHED, x), n.current.on(se.Events.MANIFEST_LOADED, S), n.current.on(se.Events.ERROR, C);
|
|
2565
2645
|
} catch (y) {
|
|
2566
2646
|
throw new Error(`Error initializing Hls: ${y}`);
|
|
2567
2647
|
}
|
|
2568
2648
|
}, [
|
|
2569
2649
|
S,
|
|
2570
|
-
|
|
2571
|
-
|
|
2650
|
+
x,
|
|
2651
|
+
C,
|
|
2572
2652
|
t,
|
|
2573
|
-
|
|
2653
|
+
i,
|
|
2574
2654
|
e
|
|
2575
|
-
]), V =
|
|
2576
|
-
n.current && (n.current.off(
|
|
2577
|
-
}, [S,
|
|
2578
|
-
return
|
|
2579
|
-
r !== null &&
|
|
2580
|
-
}, [r,
|
|
2581
|
-
|
|
2582
|
-
}, [
|
|
2583
|
-
}
|
|
2584
|
-
function
|
|
2585
|
-
const r =
|
|
2655
|
+
]), V = N(() => {
|
|
2656
|
+
n.current && (n.current.off(se.Events.MEDIA_ATTACHED, x), n.current.off(se.Events.MANIFEST_LOADED, S), n.current.off(se.Events.ERROR, C), n.current.destroy(), n.current = null), h(!1);
|
|
2657
|
+
}, [S, x, C]);
|
|
2658
|
+
return Y(() => {
|
|
2659
|
+
r !== null && m(r);
|
|
2660
|
+
}, [r, m]), Y(() => {
|
|
2661
|
+
l && h(!1);
|
|
2662
|
+
}, [l]), Y(() => (se.isSupported() && j(), V), [V, j]), null;
|
|
2663
|
+
}
|
|
2664
|
+
function Ir({ url: e, isLive: t, isMuted: n = !1 }) {
|
|
2665
|
+
const r = p((y) => y.handleDurationChange), o = p((y) => y.handleEnd), a = p((y) => y.handleLoadedMetadata), u = p((y) => y.handleLoadStart), i = p((y) => y.handlePause), l = p((y) => y.handlePlay), d = p((y) => y.handlePlaying), h = p((y) => y.handleSeeked), m = p((y) => y.handleSeeking), x = p((y) => y.handleTimeUpdate), S = p((y) => y.handleWaiting), C = p((y) => y.techRef), j = Z(null), V = (y) => {
|
|
2586
2666
|
console.error("[Player][Native] ERROR", y);
|
|
2587
|
-
},
|
|
2667
|
+
}, b = () => t ? {} : {
|
|
2588
2668
|
onDurationChange: r,
|
|
2589
|
-
onSeeked:
|
|
2590
|
-
onSeeking:
|
|
2591
|
-
onTimeUpdate:
|
|
2592
|
-
},
|
|
2593
|
-
(!j.current || Date.now() - j.current >= 1e3) && (
|
|
2594
|
-
}, v =
|
|
2595
|
-
return /* @__PURE__ */
|
|
2596
|
-
/* @__PURE__ */
|
|
2597
|
-
/* @__PURE__ */
|
|
2598
|
-
|
|
2669
|
+
onSeeked: h,
|
|
2670
|
+
onSeeking: m,
|
|
2671
|
+
onTimeUpdate: w
|
|
2672
|
+
}, w = () => {
|
|
2673
|
+
(!j.current || Date.now() - j.current >= 1e3) && (x(), j.current = Date.now());
|
|
2674
|
+
}, v = b();
|
|
2675
|
+
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2676
|
+
/* @__PURE__ */ c.jsx(gi, { isLive: t, url: e }),
|
|
2677
|
+
/* @__PURE__ */ c.jsx(
|
|
2678
|
+
yi,
|
|
2599
2679
|
{
|
|
2600
|
-
ref:
|
|
2680
|
+
ref: C,
|
|
2601
2681
|
playsInline: !0,
|
|
2602
2682
|
autoPlay: !0,
|
|
2603
2683
|
controls: !1,
|
|
2604
2684
|
muted: n,
|
|
2605
2685
|
preload: "auto",
|
|
2606
2686
|
crossOrigin: "anonymous",
|
|
2607
|
-
onEnded:
|
|
2687
|
+
onEnded: o,
|
|
2608
2688
|
onError: V,
|
|
2609
|
-
onLoadedMetadata:
|
|
2610
|
-
onLoadStart:
|
|
2611
|
-
onPause:
|
|
2612
|
-
onPlay:
|
|
2613
|
-
onPlaying:
|
|
2689
|
+
onLoadedMetadata: a,
|
|
2690
|
+
onLoadStart: u,
|
|
2691
|
+
onPause: i,
|
|
2692
|
+
onPlay: l,
|
|
2693
|
+
onPlaying: d,
|
|
2614
2694
|
onWaiting: S,
|
|
2615
2695
|
tabIndex: -1,
|
|
2616
2696
|
...v
|
|
@@ -2618,7 +2698,7 @@ function _r({ url: e, isLive: t, isMuted: n = !1 }) {
|
|
|
2618
2698
|
)
|
|
2619
2699
|
] });
|
|
2620
2700
|
}
|
|
2621
|
-
const
|
|
2701
|
+
const yi = I.video`
|
|
2622
2702
|
position: relative;
|
|
2623
2703
|
width: 100%;
|
|
2624
2704
|
height: 100%;
|
|
@@ -2627,20 +2707,17 @@ const ms = I.video`
|
|
|
2627
2707
|
pointer-events: none;
|
|
2628
2708
|
}
|
|
2629
2709
|
`;
|
|
2630
|
-
function
|
|
2631
|
-
const [t, n] =
|
|
2710
|
+
function vi({ url: e }) {
|
|
2711
|
+
const [t, n] = q(null), r = B((a) => a.delay), o = N(async () => {
|
|
2632
2712
|
n(
|
|
2633
|
-
r ? e.replace(
|
|
2634
|
-
"playlist.m3u8",
|
|
2635
|
-
`playlist_fmp4_dvr_timeshift-${r}.m3u8`
|
|
2636
|
-
) : e
|
|
2713
|
+
r ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${r}.m3u8`) : e
|
|
2637
2714
|
);
|
|
2638
2715
|
}, [r, e]);
|
|
2639
|
-
return
|
|
2640
|
-
|
|
2641
|
-
}, [
|
|
2716
|
+
return Y(() => {
|
|
2717
|
+
o();
|
|
2718
|
+
}, [o]), t ? /* @__PURE__ */ c.jsx(Ir, { url: t, isLive: !0 }) : null;
|
|
2642
2719
|
}
|
|
2643
|
-
const
|
|
2720
|
+
const Dr = I.div`
|
|
2644
2721
|
position: absolute;
|
|
2645
2722
|
top: 0;
|
|
2646
2723
|
left: 0;
|
|
@@ -2649,7 +2726,7 @@ const Ir = I.div`
|
|
|
2649
2726
|
color: white;
|
|
2650
2727
|
background: black;
|
|
2651
2728
|
overflow: hidden;
|
|
2652
|
-
`,
|
|
2729
|
+
`, Ar = I.div`
|
|
2653
2730
|
position: absolute;
|
|
2654
2731
|
left: 0;
|
|
2655
2732
|
width: 100%;
|
|
@@ -2661,7 +2738,7 @@ const Ir = I.div`
|
|
|
2661
2738
|
@media (min-width: 768px) {
|
|
2662
2739
|
padding-top: 2rem;
|
|
2663
2740
|
}
|
|
2664
|
-
`,
|
|
2741
|
+
`, Or = I.div`
|
|
2665
2742
|
display: flex;
|
|
2666
2743
|
flex-direction: column;
|
|
2667
2744
|
padding-left: 0.5rem;
|
|
@@ -2673,83 +2750,83 @@ const Ir = I.div`
|
|
|
2673
2750
|
padding-left: 1rem;
|
|
2674
2751
|
padding-right: 1rem;
|
|
2675
2752
|
}
|
|
2676
|
-
`,
|
|
2753
|
+
`, Fr = I.div`
|
|
2677
2754
|
display: flex;
|
|
2678
2755
|
padding: 0.5rem 0;
|
|
2679
2756
|
width: 100%;
|
|
2680
2757
|
align-items: center;
|
|
2681
|
-
`,
|
|
2758
|
+
`, Mr = I.div`
|
|
2682
2759
|
display: flex;
|
|
2683
2760
|
flex: 1;
|
|
2684
2761
|
align-items: center;
|
|
2685
2762
|
gap: 0.5rem;
|
|
2686
|
-
`,
|
|
2763
|
+
`, Vr = I(Mr)`
|
|
2687
2764
|
justify-content: flex-start;
|
|
2688
|
-
`,
|
|
2765
|
+
`, Nr = I(Mr)`
|
|
2689
2766
|
justify-content: flex-end;
|
|
2690
2767
|
`;
|
|
2691
|
-
function
|
|
2692
|
-
return /* @__PURE__ */
|
|
2768
|
+
function wi() {
|
|
2769
|
+
return /* @__PURE__ */ c.jsx(
|
|
2693
2770
|
"svg",
|
|
2694
2771
|
{
|
|
2695
2772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2696
2773
|
viewBox: "0 0 24 24",
|
|
2697
2774
|
fill: "currentColor",
|
|
2698
|
-
children: /* @__PURE__ */
|
|
2775
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
|
|
2699
2776
|
}
|
|
2700
2777
|
);
|
|
2701
2778
|
}
|
|
2702
|
-
function
|
|
2703
|
-
return /* @__PURE__ */
|
|
2779
|
+
function bi() {
|
|
2780
|
+
return /* @__PURE__ */ c.jsx(
|
|
2704
2781
|
"svg",
|
|
2705
2782
|
{
|
|
2706
2783
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2707
2784
|
viewBox: "0 0 24 24",
|
|
2708
2785
|
fill: "currentColor",
|
|
2709
|
-
children: /* @__PURE__ */
|
|
2786
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
|
|
2710
2787
|
}
|
|
2711
2788
|
);
|
|
2712
2789
|
}
|
|
2713
|
-
function
|
|
2714
|
-
const e =
|
|
2715
|
-
(
|
|
2716
|
-
|
|
2790
|
+
function Hr() {
|
|
2791
|
+
const e = p((d) => d.containerRef), t = p((d) => d.exitFullscreen), n = p((d) => d.isFullscreen), r = p((d) => d.requestFullscreen), o = p((d) => d.setIsFullscreen), a = p((d) => d.setIsFullscreenReady), u = p((d) => d.techRef), i = N(
|
|
2792
|
+
(d) => {
|
|
2793
|
+
d.stopPropagation(), o(Us());
|
|
2717
2794
|
},
|
|
2718
|
-
[
|
|
2719
|
-
),
|
|
2795
|
+
[o]
|
|
2796
|
+
), l = () => {
|
|
2720
2797
|
n ? t() : r();
|
|
2721
2798
|
};
|
|
2722
|
-
return
|
|
2723
|
-
const
|
|
2724
|
-
if (
|
|
2725
|
-
return
|
|
2726
|
-
}, [e,
|
|
2727
|
-
|
|
2728
|
-
}, [
|
|
2729
|
-
}
|
|
2730
|
-
const
|
|
2731
|
-
function
|
|
2732
|
-
const t =
|
|
2733
|
-
|
|
2734
|
-
}, []),
|
|
2735
|
-
|
|
2736
|
-
}, [
|
|
2737
|
-
return
|
|
2738
|
-
|
|
2739
|
-
}), [
|
|
2740
|
-
const
|
|
2741
|
-
if (!
|
|
2742
|
-
const
|
|
2743
|
-
n && (
|
|
2744
|
-
},
|
|
2745
|
-
n && r(!1),
|
|
2799
|
+
return Y(() => {
|
|
2800
|
+
const d = hr ? u.current : e.current;
|
|
2801
|
+
if (d)
|
|
2802
|
+
return qs(d, i);
|
|
2803
|
+
}, [e, i, u]), Y(() => {
|
|
2804
|
+
a(!0);
|
|
2805
|
+
}, [a]), /* @__PURE__ */ c.jsx(xe, { onClick: l, children: n ? /* @__PURE__ */ c.jsx(bi, {}) : /* @__PURE__ */ c.jsx(wi, {}) });
|
|
2806
|
+
}
|
|
2807
|
+
const xi = 5 * 1e3;
|
|
2808
|
+
function $r({ children: e }) {
|
|
2809
|
+
const t = Z(null), [n, r] = q(!1), o = Z(null), u = p((d) => d.idleLocks).size, i = N(() => {
|
|
2810
|
+
o.current !== null && (window.clearTimeout(o.current), o.current = null);
|
|
2811
|
+
}, []), l = N(() => {
|
|
2812
|
+
i(), o.current = window.setTimeout(() => r(!0), xi);
|
|
2813
|
+
}, [i]);
|
|
2814
|
+
return Y(() => (r(!1), l(), () => {
|
|
2815
|
+
i();
|
|
2816
|
+
}), [i, l]), Y(() => {
|
|
2817
|
+
const d = t.current;
|
|
2818
|
+
if (!d) return;
|
|
2819
|
+
const h = (x) => {
|
|
2820
|
+
n && (x.stopPropagation(), r(!1), l());
|
|
2821
|
+
}, m = () => {
|
|
2822
|
+
n && r(!1), l();
|
|
2746
2823
|
};
|
|
2747
|
-
return
|
|
2748
|
-
|
|
2824
|
+
return d.addEventListener("click", h), d.addEventListener("mousemove", m), () => {
|
|
2825
|
+
d.removeEventListener("click", h), d.removeEventListener("mousemove", m);
|
|
2749
2826
|
};
|
|
2750
|
-
}, [t, n, r,
|
|
2827
|
+
}, [t, n, r, l]), /* @__PURE__ */ c.jsx(Si, { ref: t, $isIdle: n && !u, children: e });
|
|
2751
2828
|
}
|
|
2752
|
-
const
|
|
2829
|
+
const Si = I.div`
|
|
2753
2830
|
position: absolute;
|
|
2754
2831
|
top: 0;
|
|
2755
2832
|
left: 0;
|
|
@@ -2759,38 +2836,38 @@ const bs = I.div`
|
|
|
2759
2836
|
cursor: ${({ $isIdle: e }) => e ? "none" : "auto"};
|
|
2760
2837
|
opacity: ${({ $isIdle: e }) => e ? 0 : 1};
|
|
2761
2838
|
`;
|
|
2762
|
-
function
|
|
2763
|
-
return /* @__PURE__ */
|
|
2839
|
+
function ki(e) {
|
|
2840
|
+
return /* @__PURE__ */ c.jsx(Ti, { ...e });
|
|
2764
2841
|
}
|
|
2765
|
-
const
|
|
2842
|
+
const Ei = Ds`
|
|
2766
2843
|
from {
|
|
2767
2844
|
transform: rotate(0deg);
|
|
2768
2845
|
}
|
|
2769
2846
|
to {
|
|
2770
2847
|
transform: rotate(360deg);
|
|
2771
2848
|
}
|
|
2772
|
-
`,
|
|
2849
|
+
`, Ti = I.div`
|
|
2773
2850
|
width: 1.5rem;
|
|
2774
2851
|
height: 1.5rem;
|
|
2775
2852
|
border: 2px solid white;
|
|
2776
2853
|
border-bottom-color: transparent;
|
|
2777
2854
|
border-radius: 50%;
|
|
2778
|
-
animation: ${
|
|
2855
|
+
animation: ${Ei} 1s linear infinite;
|
|
2779
2856
|
`;
|
|
2780
|
-
function
|
|
2781
|
-
const [n, r] =
|
|
2782
|
-
return
|
|
2783
|
-
const
|
|
2857
|
+
function Pi(e, t = 500) {
|
|
2858
|
+
const [n, r] = q(e);
|
|
2859
|
+
return Y(() => {
|
|
2860
|
+
const o = window.setTimeout(() => r(e), t);
|
|
2784
2861
|
return () => {
|
|
2785
|
-
window.clearTimeout(
|
|
2862
|
+
window.clearTimeout(o);
|
|
2786
2863
|
};
|
|
2787
2864
|
}, [e, t]), n;
|
|
2788
2865
|
}
|
|
2789
|
-
function
|
|
2790
|
-
const n =
|
|
2791
|
-
return
|
|
2866
|
+
function zr({ style: e, ...t }) {
|
|
2867
|
+
const n = p((o) => o.isLoading);
|
|
2868
|
+
return Pi(n, 100) ? /* @__PURE__ */ c.jsx(Ci, { style: e, ...t, children: /* @__PURE__ */ c.jsx(ki, {}) }) : null;
|
|
2792
2869
|
}
|
|
2793
|
-
const
|
|
2870
|
+
const Ci = I.div`
|
|
2794
2871
|
pointer-events: none;
|
|
2795
2872
|
position: absolute;
|
|
2796
2873
|
top: 0;
|
|
@@ -2803,30 +2880,30 @@ const Es = I.div`
|
|
|
2803
2880
|
align-items: center;
|
|
2804
2881
|
justify-content: center;
|
|
2805
2882
|
`;
|
|
2806
|
-
function
|
|
2807
|
-
return /* @__PURE__ */
|
|
2883
|
+
function Ri() {
|
|
2884
|
+
return /* @__PURE__ */ c.jsx(
|
|
2808
2885
|
"svg",
|
|
2809
2886
|
{
|
|
2810
2887
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2811
2888
|
viewBox: "0 0 24 24",
|
|
2812
2889
|
fill: "currentColor",
|
|
2813
|
-
children: /* @__PURE__ */
|
|
2890
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
|
|
2814
2891
|
}
|
|
2815
2892
|
);
|
|
2816
2893
|
}
|
|
2817
|
-
function
|
|
2818
|
-
return /* @__PURE__ */
|
|
2894
|
+
function ji() {
|
|
2895
|
+
return /* @__PURE__ */ c.jsx(
|
|
2819
2896
|
"svg",
|
|
2820
2897
|
{
|
|
2821
2898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2822
2899
|
viewBox: "0 0 24 24",
|
|
2823
2900
|
fill: "currentColor",
|
|
2824
|
-
children: /* @__PURE__ */
|
|
2901
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
|
|
2825
2902
|
}
|
|
2826
2903
|
);
|
|
2827
2904
|
}
|
|
2828
|
-
const
|
|
2829
|
-
|
|
2905
|
+
const Li = Qe.Root, _i = Qe.Trigger, Ii = Qe.Portal, Br = yt(({ sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
2906
|
+
Di,
|
|
2830
2907
|
{
|
|
2831
2908
|
ref: n,
|
|
2832
2909
|
sideOffset: e,
|
|
@@ -2836,10 +2913,10 @@ const Rs = Qe.Root, js = Qe.Trigger, Ls = Qe.Portal, zr = yt(({ sideOffset: e =
|
|
|
2836
2913
|
...t
|
|
2837
2914
|
}
|
|
2838
2915
|
));
|
|
2839
|
-
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2842
|
-
const
|
|
2916
|
+
Br.displayName = "PlayerDropdownMenuContent";
|
|
2917
|
+
const Ur = yt((e, t) => /* @__PURE__ */ c.jsx(Ai, { ref: t, ...e }));
|
|
2918
|
+
Ur.displayName = "PlayerDropdownMenuItem";
|
|
2919
|
+
const Di = I(Qe.Content).withConfig({
|
|
2843
2920
|
shouldForwardProp: (e) => e !== "ref"
|
|
2844
2921
|
})`
|
|
2845
2922
|
padding: 0.25rem;
|
|
@@ -2916,7 +2993,7 @@ const _s = I(Qe.Content).withConfig({
|
|
|
2916
2993
|
transform: translateX(0);
|
|
2917
2994
|
}
|
|
2918
2995
|
}
|
|
2919
|
-
`,
|
|
2996
|
+
`, Ai = I(Qe.Item)`
|
|
2920
2997
|
position: relative;
|
|
2921
2998
|
display: flex;
|
|
2922
2999
|
align-items: center;
|
|
@@ -2954,86 +3031,86 @@ const _s = I(Qe.Content).withConfig({
|
|
|
2954
3031
|
pointer-events: none;
|
|
2955
3032
|
}
|
|
2956
3033
|
`, Fn = "settings";
|
|
2957
|
-
function
|
|
2958
|
-
const [e, t] =
|
|
2959
|
-
(
|
|
2960
|
-
t(
|
|
3034
|
+
function Wr() {
|
|
3035
|
+
const [e, t] = q(!1), n = p((l) => l.containerRef), r = p((l) => l.addIdleLock), o = p((l) => l.removeIdleLock), a = p((l) => l.levels), u = p((l) => l.setLevel), i = N(
|
|
3036
|
+
(l) => {
|
|
3037
|
+
t(l), l ? r(Fn) : o(Fn);
|
|
2961
3038
|
},
|
|
2962
|
-
[r,
|
|
3039
|
+
[r, o]
|
|
2963
3040
|
);
|
|
2964
|
-
return /* @__PURE__ */
|
|
2965
|
-
/* @__PURE__ */
|
|
2966
|
-
/* @__PURE__ */
|
|
2967
|
-
|
|
3041
|
+
return /* @__PURE__ */ c.jsxs(Li, { open: e, onOpenChange: i, children: [
|
|
3042
|
+
/* @__PURE__ */ c.jsx(_i, { asChild: !0, children: /* @__PURE__ */ c.jsx(xe, { children: /* @__PURE__ */ c.jsx(ji, {}) }) }),
|
|
3043
|
+
/* @__PURE__ */ c.jsx(Ii, { container: n.current, children: /* @__PURE__ */ c.jsx(Br, { side: "top", align: "end", children: a?.map((l) => /* @__PURE__ */ c.jsxs(
|
|
3044
|
+
Ur,
|
|
2968
3045
|
{
|
|
2969
|
-
onClick: () => l
|
|
3046
|
+
onClick: () => u(l.value),
|
|
2970
3047
|
children: [
|
|
2971
|
-
|
|
2972
|
-
|
|
3048
|
+
l.label,
|
|
3049
|
+
l.selected && /* @__PURE__ */ c.jsx(Ri, {})
|
|
2973
3050
|
]
|
|
2974
3051
|
},
|
|
2975
|
-
|
|
3052
|
+
l.sid
|
|
2976
3053
|
)) }) })
|
|
2977
3054
|
] });
|
|
2978
3055
|
}
|
|
2979
|
-
function
|
|
2980
|
-
return /* @__PURE__ */
|
|
3056
|
+
function Oi() {
|
|
3057
|
+
return /* @__PURE__ */ c.jsx(
|
|
2981
3058
|
"svg",
|
|
2982
3059
|
{
|
|
2983
3060
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2984
3061
|
viewBox: "0 0 24 24",
|
|
2985
3062
|
fill: "currentColor",
|
|
2986
|
-
children: /* @__PURE__ */
|
|
3063
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
|
|
2987
3064
|
}
|
|
2988
3065
|
);
|
|
2989
3066
|
}
|
|
2990
|
-
function
|
|
2991
|
-
return /* @__PURE__ */
|
|
3067
|
+
function Fi() {
|
|
3068
|
+
return /* @__PURE__ */ c.jsx(
|
|
2992
3069
|
"svg",
|
|
2993
3070
|
{
|
|
2994
3071
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2995
3072
|
viewBox: "0 0 24 24",
|
|
2996
3073
|
fill: "currentColor",
|
|
2997
|
-
children: /* @__PURE__ */
|
|
3074
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
|
|
2998
3075
|
}
|
|
2999
3076
|
);
|
|
3000
3077
|
}
|
|
3001
|
-
function
|
|
3002
|
-
return /* @__PURE__ */
|
|
3078
|
+
function Mi() {
|
|
3079
|
+
return /* @__PURE__ */ c.jsx(
|
|
3003
3080
|
"svg",
|
|
3004
3081
|
{
|
|
3005
3082
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3006
3083
|
viewBox: "0 0 24 24",
|
|
3007
3084
|
fill: "currentColor",
|
|
3008
|
-
children: /* @__PURE__ */
|
|
3085
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
|
|
3009
3086
|
}
|
|
3010
3087
|
);
|
|
3011
3088
|
}
|
|
3012
3089
|
const Mn = "volume";
|
|
3013
|
-
function
|
|
3014
|
-
|
|
3015
|
-
const e =
|
|
3016
|
-
e(
|
|
3017
|
-
},
|
|
3090
|
+
function Yr() {
|
|
3091
|
+
p((i) => i.containerRef);
|
|
3092
|
+
const e = p((i) => i.setVolume), t = p((i) => i.volume), n = p((i) => i.addIdleLock), r = p((i) => i.removeIdleLock), o = (i) => {
|
|
3093
|
+
e(i[0]), n(Mn);
|
|
3094
|
+
}, a = () => {
|
|
3018
3095
|
r(Mn);
|
|
3019
|
-
},
|
|
3020
|
-
return /* @__PURE__ */
|
|
3021
|
-
/* @__PURE__ */
|
|
3022
|
-
/* @__PURE__ */
|
|
3096
|
+
}, u = () => e(t ? 0 : 100);
|
|
3097
|
+
return /* @__PURE__ */ c.jsxs(Vi, { children: [
|
|
3098
|
+
/* @__PURE__ */ c.jsx(xe, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ c.jsx(Oi, {}) : /* @__PURE__ */ c.jsx(Fi, {}) : /* @__PURE__ */ c.jsx(Mi, {}) }),
|
|
3099
|
+
/* @__PURE__ */ c.jsx(qr, { children: /* @__PURE__ */ c.jsx(
|
|
3023
3100
|
Pt,
|
|
3024
3101
|
{
|
|
3025
3102
|
value: [t],
|
|
3026
|
-
onValueChange:
|
|
3027
|
-
onValueCommit:
|
|
3103
|
+
onValueChange: o,
|
|
3104
|
+
onValueCommit: a
|
|
3028
3105
|
}
|
|
3029
3106
|
) })
|
|
3030
3107
|
] });
|
|
3031
3108
|
}
|
|
3032
|
-
const
|
|
3109
|
+
const qr = I.div`
|
|
3033
3110
|
width: 0;
|
|
3034
3111
|
opacity: 0;
|
|
3035
3112
|
transition: all 0.2s ease-in-out;
|
|
3036
|
-
`,
|
|
3113
|
+
`, Vi = I.div`
|
|
3037
3114
|
display: flex;
|
|
3038
3115
|
align-items: center;
|
|
3039
3116
|
gap: 0.25rem;
|
|
@@ -3044,118 +3121,146 @@ const Yr = I.div`
|
|
|
3044
3121
|
&:hover {
|
|
3045
3122
|
width: 6rem;
|
|
3046
3123
|
|
|
3047
|
-
${
|
|
3124
|
+
${qr} {
|
|
3048
3125
|
width: 100%;
|
|
3049
3126
|
opacity: 1;
|
|
3050
3127
|
}
|
|
3051
3128
|
}
|
|
3052
3129
|
}
|
|
3053
3130
|
`;
|
|
3054
|
-
function
|
|
3055
|
-
return /* @__PURE__ */
|
|
3056
|
-
|
|
3131
|
+
function Ji({ url: e, startDate: t, endDate: n, messages: r }) {
|
|
3132
|
+
return /* @__PURE__ */ c.jsx(
|
|
3133
|
+
fi,
|
|
3057
3134
|
{
|
|
3058
3135
|
startDate: new Date(t),
|
|
3059
3136
|
endDate: new Date(n),
|
|
3060
|
-
children: /* @__PURE__ */
|
|
3137
|
+
children: /* @__PURE__ */ c.jsx(Ni, { url: e, messages: r })
|
|
3061
3138
|
}
|
|
3062
3139
|
);
|
|
3063
3140
|
}
|
|
3064
|
-
function
|
|
3065
|
-
const n =
|
|
3066
|
-
return /* @__PURE__ */
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
/* @__PURE__ */
|
|
3077
|
-
|
|
3078
|
-
/* @__PURE__ */
|
|
3079
|
-
|
|
3080
|
-
/* @__PURE__ */
|
|
3081
|
-
/* @__PURE__ */
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
/* @__PURE__ */
|
|
3088
|
-
|
|
3089
|
-
|
|
3141
|
+
function Ni({ url: e, messages: t }) {
|
|
3142
|
+
const n = p((r) => r.containerRef);
|
|
3143
|
+
return /* @__PURE__ */ c.jsxs(Dr, { ref: n, children: [
|
|
3144
|
+
/* @__PURE__ */ c.jsxs(
|
|
3145
|
+
As,
|
|
3146
|
+
{
|
|
3147
|
+
eventFinishedMessage: t?.eventFinished,
|
|
3148
|
+
eventNotStartedMessage: t?.eventNotStarted,
|
|
3149
|
+
eventStartingSoonMessage: t?.eventStartingSoon,
|
|
3150
|
+
children: [
|
|
3151
|
+
/* @__PURE__ */ c.jsx(vi, { url: e }),
|
|
3152
|
+
/* @__PURE__ */ c.jsx(zr, {}),
|
|
3153
|
+
/* @__PURE__ */ c.jsxs($r, { children: [
|
|
3154
|
+
/* @__PURE__ */ c.jsx(oi, {}),
|
|
3155
|
+
/* @__PURE__ */ c.jsx(Ar, { children: /* @__PURE__ */ c.jsxs(Or, { children: [
|
|
3156
|
+
/* @__PURE__ */ c.jsx(di, {}),
|
|
3157
|
+
/* @__PURE__ */ c.jsxs(Fr, { children: [
|
|
3158
|
+
/* @__PURE__ */ c.jsxs(Vr, { children: [
|
|
3159
|
+
/* @__PURE__ */ c.jsx(ni, {}),
|
|
3160
|
+
/* @__PURE__ */ c.jsx(mi, {}),
|
|
3161
|
+
/* @__PURE__ */ c.jsx(Yr, {}),
|
|
3162
|
+
/* @__PURE__ */ c.jsx(pi, {})
|
|
3163
|
+
] }),
|
|
3164
|
+
/* @__PURE__ */ c.jsxs(Nr, { children: [
|
|
3165
|
+
/* @__PURE__ */ c.jsx(Hs, { message: t?.live }),
|
|
3166
|
+
/* @__PURE__ */ c.jsx(Wr, {}),
|
|
3167
|
+
/* @__PURE__ */ c.jsx(Hr, {})
|
|
3168
|
+
] })
|
|
3090
3169
|
] })
|
|
3091
|
-
] })
|
|
3092
|
-
] })
|
|
3093
|
-
]
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3170
|
+
] }) })
|
|
3171
|
+
] })
|
|
3172
|
+
]
|
|
3173
|
+
}
|
|
3174
|
+
),
|
|
3175
|
+
/* @__PURE__ */ c.jsx(ti, {})
|
|
3176
|
+
] });
|
|
3097
3177
|
}
|
|
3098
|
-
function
|
|
3099
|
-
const e =
|
|
3178
|
+
function Hi() {
|
|
3179
|
+
const e = p((i) => i.currentTime), t = p((i) => i.duration), n = p((i) => i.isPlaying), r = p((i) => i.pause), o = p((i) => i.play), a = p((i) => i.seek), u = N(
|
|
3180
|
+
(i) => {
|
|
3181
|
+
let l = !1;
|
|
3182
|
+
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
3183
|
+
switch (i.code) {
|
|
3184
|
+
case "ArrowLeft":
|
|
3185
|
+
a(e - 10 >= 0 ? e - 10 : 0), l = !0;
|
|
3186
|
+
break;
|
|
3187
|
+
case "ArrowRight":
|
|
3188
|
+
a(e + 10 < t ? e + 10 : t), l = !0;
|
|
3189
|
+
break;
|
|
3190
|
+
case "Space":
|
|
3191
|
+
n ? r() : o(), l = !0;
|
|
3192
|
+
break;
|
|
3193
|
+
}
|
|
3194
|
+
l && i.preventDefault();
|
|
3195
|
+
}
|
|
3196
|
+
},
|
|
3197
|
+
[e, t, n, r, o, a]
|
|
3198
|
+
);
|
|
3199
|
+
return Y(() => (document.addEventListener("keydown", u), () => {
|
|
3200
|
+
document.removeEventListener("keydown", u);
|
|
3201
|
+
}), [u]), /* @__PURE__ */ c.jsx(gr, {});
|
|
3202
|
+
}
|
|
3203
|
+
function $i() {
|
|
3204
|
+
const e = p((o) => o.isPlaying), t = p((o) => o.pause), n = p((o) => o.play), r = () => {
|
|
3100
3205
|
e ? t() : n();
|
|
3101
3206
|
};
|
|
3102
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ c.jsx(xe, { onClick: r, children: e ? /* @__PURE__ */ c.jsx(yr, {}) : /* @__PURE__ */ c.jsx(vr, {}) });
|
|
3103
3208
|
}
|
|
3104
|
-
function
|
|
3105
|
-
const e =
|
|
3209
|
+
function zi() {
|
|
3210
|
+
const e = p((o) => o.isPlaying), t = p((o) => o.pause), n = p((o) => o.play), r = () => {
|
|
3106
3211
|
e ? t() : n();
|
|
3107
3212
|
};
|
|
3108
|
-
return /* @__PURE__ */
|
|
3213
|
+
return /* @__PURE__ */ c.jsx(wr, { onClick: r });
|
|
3109
3214
|
}
|
|
3110
3215
|
const Vn = "vod-player-progress-bar";
|
|
3111
|
-
function
|
|
3112
|
-
const e =
|
|
3113
|
-
(
|
|
3114
|
-
),
|
|
3115
|
-
|
|
3216
|
+
function Bi() {
|
|
3217
|
+
const e = Z(null), t = Z(null), [n, r] = q(!1), [o, a] = q(-1), [u, i] = q(-1), l = p((v) => v.currentTime), d = p((v) => v.duration), h = p((v) => v.seek), m = p((v) => v.addIdleLock), x = p((v) => v.removeIdleLock), S = parseFloat(
|
|
3218
|
+
(d ? (u !== -1 ? u : l) / d * 100 : 0).toFixed(1)
|
|
3219
|
+
), C = (v) => {
|
|
3220
|
+
i(d * (v[0] / 100)), m(Vn);
|
|
3116
3221
|
}, j = () => {
|
|
3117
|
-
|
|
3118
|
-
}, V = () => r(!0),
|
|
3222
|
+
u !== -1 && (h(u), i(-1), x(Vn));
|
|
3223
|
+
}, V = () => r(!0), b = () => r(!1), w = N(
|
|
3119
3224
|
(v) => {
|
|
3120
3225
|
const y = e.current, _ = t.current;
|
|
3121
3226
|
if (y && _) {
|
|
3122
|
-
const
|
|
3123
|
-
if (
|
|
3124
|
-
let D =
|
|
3125
|
-
D < 0 && (D = 0), D >
|
|
3227
|
+
const T = gt(y), k = gt(_), U = (v.pageX || v.clientX) - T.left, J = U / T.width;
|
|
3228
|
+
if (J < 0) return;
|
|
3229
|
+
let D = U - k.width / 2;
|
|
3230
|
+
D < 0 && (D = 0), D > T.width - k.width && (D = -1), _.style.left = D > -1 ? `${D}px` : "auto", _.style.right = D > -1 ? "auto" : "0px", a(J * d);
|
|
3126
3231
|
}
|
|
3127
3232
|
V();
|
|
3128
3233
|
},
|
|
3129
|
-
[
|
|
3234
|
+
[d]
|
|
3130
3235
|
);
|
|
3131
|
-
return /* @__PURE__ */
|
|
3132
|
-
/* @__PURE__ */
|
|
3236
|
+
return /* @__PURE__ */ c.jsxs(br, { children: [
|
|
3237
|
+
/* @__PURE__ */ c.jsx(
|
|
3133
3238
|
Pt,
|
|
3134
3239
|
{
|
|
3135
3240
|
ref: e,
|
|
3136
3241
|
value: [S],
|
|
3137
|
-
onPointerLeave:
|
|
3138
|
-
onPointerDown:
|
|
3139
|
-
onPointerMove:
|
|
3140
|
-
onValueChange:
|
|
3242
|
+
onPointerLeave: b,
|
|
3243
|
+
onPointerDown: b,
|
|
3244
|
+
onPointerMove: w,
|
|
3245
|
+
onValueChange: C,
|
|
3141
3246
|
onValueCommit: j,
|
|
3142
3247
|
step: 0.1
|
|
3143
3248
|
}
|
|
3144
3249
|
),
|
|
3145
|
-
/* @__PURE__ */
|
|
3250
|
+
/* @__PURE__ */ c.jsx(xr, { ref: t, $isVisible: n, children: /* @__PURE__ */ c.jsx(Sr, { children: Be(o) }) })
|
|
3146
3251
|
] });
|
|
3147
3252
|
}
|
|
3148
|
-
function
|
|
3149
|
-
const e =
|
|
3150
|
-
return /* @__PURE__ */
|
|
3151
|
-
/* @__PURE__ */
|
|
3152
|
-
/* @__PURE__ */
|
|
3153
|
-
/* @__PURE__ */
|
|
3253
|
+
function Ui() {
|
|
3254
|
+
const e = p((n) => n.currentTime), t = p((n) => n.duration);
|
|
3255
|
+
return /* @__PURE__ */ c.jsxs(Cr, { children: [
|
|
3256
|
+
/* @__PURE__ */ c.jsx(jr, { children: Be(e) }),
|
|
3257
|
+
/* @__PURE__ */ c.jsx(_r, {}),
|
|
3258
|
+
/* @__PURE__ */ c.jsx(Lr, { children: Be(t) })
|
|
3154
3259
|
] });
|
|
3155
3260
|
}
|
|
3156
|
-
const
|
|
3157
|
-
function
|
|
3158
|
-
const t =
|
|
3261
|
+
const Wi = 60, Yi = 95;
|
|
3262
|
+
function qi({ storageKey: e }) {
|
|
3263
|
+
const t = p((h) => h.currentTime), n = p((h) => h.duration), r = p((h) => h.isPlaying), o = p((h) => h.setStartTime), a = Z(!1), u = N(() => {
|
|
3159
3264
|
window.localStorage.setItem(
|
|
3160
3265
|
e,
|
|
3161
3266
|
JSON.stringify({
|
|
@@ -3163,59 +3268,60 @@ function Us({ storageKey: e }) {
|
|
|
3163
3268
|
duration: n
|
|
3164
3269
|
})
|
|
3165
3270
|
);
|
|
3166
|
-
}, [t, n, e]),
|
|
3167
|
-
const
|
|
3168
|
-
if (
|
|
3169
|
-
const
|
|
3271
|
+
}, [t, n, e]), i = N(() => {
|
|
3272
|
+
const h = window.localStorage.getItem(e);
|
|
3273
|
+
if (h) {
|
|
3274
|
+
const m = JSON.parse(h);
|
|
3170
3275
|
return {
|
|
3171
|
-
startTime:
|
|
3172
|
-
progress:
|
|
3276
|
+
startTime: m.currentTime,
|
|
3277
|
+
progress: m.currentTime / m.duration * 100
|
|
3173
3278
|
};
|
|
3174
3279
|
}
|
|
3175
3280
|
return { startTime: null, progress: null };
|
|
3176
|
-
}, [e]),
|
|
3177
|
-
t <
|
|
3178
|
-
}, [t,
|
|
3179
|
-
if (
|
|
3180
|
-
const { progress:
|
|
3181
|
-
|
|
3182
|
-
}, [
|
|
3183
|
-
return wt(() =>
|
|
3184
|
-
|
|
3185
|
-
}, [
|
|
3186
|
-
}
|
|
3187
|
-
function
|
|
3188
|
-
return /* @__PURE__ */
|
|
3189
|
-
/* @__PURE__ */
|
|
3190
|
-
t?.enabled && /* @__PURE__ */
|
|
3281
|
+
}, [e]), l = N(() => {
|
|
3282
|
+
t < Wi || u();
|
|
3283
|
+
}, [t, u]), d = N(() => {
|
|
3284
|
+
if (a.current) return;
|
|
3285
|
+
const { progress: h, startTime: m } = i();
|
|
3286
|
+
m && h && h < Yi && (o(m), a.current = !0);
|
|
3287
|
+
}, [i, o]);
|
|
3288
|
+
return wt(() => l(), r ? 1e3 : null), Y(() => {
|
|
3289
|
+
d();
|
|
3290
|
+
}, [d]), null;
|
|
3291
|
+
}
|
|
3292
|
+
function Qi({ url: e, watchHistory: t }) {
|
|
3293
|
+
return /* @__PURE__ */ c.jsxs(Pr, { children: [
|
|
3294
|
+
/* @__PURE__ */ c.jsx(Zi, { url: e }),
|
|
3295
|
+
t?.enabled && /* @__PURE__ */ c.jsx(qi, { storageKey: t.storageKey })
|
|
3191
3296
|
] });
|
|
3192
3297
|
}
|
|
3193
|
-
function
|
|
3194
|
-
const t =
|
|
3195
|
-
return /* @__PURE__ */
|
|
3196
|
-
/* @__PURE__ */
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
/* @__PURE__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3200
|
-
/* @__PURE__ */
|
|
3201
|
-
/* @__PURE__ */
|
|
3202
|
-
/* @__PURE__ */
|
|
3203
|
-
/* @__PURE__ */
|
|
3204
|
-
/* @__PURE__ */
|
|
3205
|
-
/* @__PURE__ */
|
|
3206
|
-
/* @__PURE__ */
|
|
3298
|
+
function Zi({ url: e }) {
|
|
3299
|
+
const t = p((n) => n.containerRef);
|
|
3300
|
+
return /* @__PURE__ */ c.jsxs(Dr, { ref: t, children: [
|
|
3301
|
+
/* @__PURE__ */ c.jsx(Ir, { url: e, isLive: !1 }),
|
|
3302
|
+
/* @__PURE__ */ c.jsx(zr, {}),
|
|
3303
|
+
/* @__PURE__ */ c.jsxs($r, { children: [
|
|
3304
|
+
/* @__PURE__ */ c.jsx(zi, {}),
|
|
3305
|
+
/* @__PURE__ */ c.jsx(Ar, { children: /* @__PURE__ */ c.jsxs(Or, { children: [
|
|
3306
|
+
/* @__PURE__ */ c.jsx(Bi, {}),
|
|
3307
|
+
/* @__PURE__ */ c.jsxs(Fr, { children: [
|
|
3308
|
+
/* @__PURE__ */ c.jsxs(Vr, { children: [
|
|
3309
|
+
/* @__PURE__ */ c.jsx($i, {}),
|
|
3310
|
+
/* @__PURE__ */ c.jsx(Yr, {}),
|
|
3311
|
+
/* @__PURE__ */ c.jsx(Ui, {})
|
|
3207
3312
|
] }),
|
|
3208
|
-
/* @__PURE__ */
|
|
3209
|
-
/* @__PURE__ */
|
|
3210
|
-
/* @__PURE__ */
|
|
3313
|
+
/* @__PURE__ */ c.jsxs(Nr, { children: [
|
|
3314
|
+
/* @__PURE__ */ c.jsx(Wr, {}),
|
|
3315
|
+
/* @__PURE__ */ c.jsx(Hr, {})
|
|
3211
3316
|
] })
|
|
3212
3317
|
] })
|
|
3213
3318
|
] }) })
|
|
3214
|
-
] })
|
|
3319
|
+
] }),
|
|
3320
|
+
/* @__PURE__ */ c.jsx(Hi, {})
|
|
3215
3321
|
] });
|
|
3216
3322
|
}
|
|
3217
3323
|
export {
|
|
3218
|
-
|
|
3219
|
-
|
|
3324
|
+
Ji as LivePlayer,
|
|
3325
|
+
Qi as VodPlayer
|
|
3220
3326
|
};
|
|
3221
3327
|
//# sourceMappingURL=react-video-player.es.js.map
|