@halibegic/react-video-player 0.0.9 → 0.0.11
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.
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
var pe = { exports: {} }, ae = {};
|
|
1
|
+
import Re, { useLayoutEffect as vo, useEffect as te, useRef as Y, useState as X, createContext as Nn, useContext as Zt, useDebugValue as mn, createElement as wo, forwardRef as yt, useCallback as B } from "react";
|
|
2
|
+
import { create as $n, useStore as Hn } from "zustand";
|
|
3
|
+
import * as vt from "@radix-ui/react-slider";
|
|
4
|
+
import Ce from "hls.js";
|
|
5
|
+
import * as Qe from "@radix-ui/react-dropdown-menu";
|
|
6
|
+
var nt = { exports: {} }, Ge = {};
|
|
8
7
|
/**
|
|
9
8
|
* @license React
|
|
10
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +13,21 @@ var pe = { exports: {} }, ae = {};
|
|
|
14
13
|
* This source code is licensed under the MIT license found in the
|
|
15
14
|
* LICENSE file in the root directory of this source tree.
|
|
16
15
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var e =
|
|
22
|
-
function
|
|
23
|
-
var p,
|
|
24
|
-
d !== void 0 && (
|
|
25
|
-
for (p in
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof:
|
|
16
|
+
var gn;
|
|
17
|
+
function bo() {
|
|
18
|
+
if (gn) return Ge;
|
|
19
|
+
gn = 1;
|
|
20
|
+
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function l(u, c, d) {
|
|
22
|
+
var p, m = {}, w = null, v = null;
|
|
23
|
+
d !== void 0 && (w = "" + d), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (v = c.ref);
|
|
24
|
+
for (p in c) r.call(c, p) && !a.hasOwnProperty(p) && (m[p] = c[p]);
|
|
25
|
+
if (u && u.defaultProps) for (p in c = u.defaultProps, c) m[p] === void 0 && (m[p] = c[p]);
|
|
26
|
+
return { $$typeof: t, type: u, key: w, ref: v, props: m, _owner: i.current };
|
|
28
27
|
}
|
|
29
|
-
return
|
|
28
|
+
return Ge.Fragment = n, Ge.jsx = l, Ge.jsxs = l, Ge;
|
|
30
29
|
}
|
|
31
|
-
var
|
|
30
|
+
var Xe = {};
|
|
32
31
|
/**
|
|
33
32
|
* @license React
|
|
34
33
|
* react-jsx-runtime.development.js
|
|
@@ -38,91 +37,91 @@ var le = {};
|
|
|
38
37
|
* This source code is licensed under the MIT license found in the
|
|
39
38
|
* LICENSE file in the root directory of this source tree.
|
|
40
39
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var e =
|
|
45
|
-
function
|
|
46
|
-
if (
|
|
40
|
+
var yn;
|
|
41
|
+
function xo() {
|
|
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"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), T = Symbol.iterator, E = "@@iterator";
|
|
44
|
+
function M(o) {
|
|
45
|
+
if (o === null || typeof o != "object")
|
|
47
46
|
return null;
|
|
48
|
-
var
|
|
49
|
-
return typeof
|
|
47
|
+
var f = T && o[T] || o[E];
|
|
48
|
+
return typeof f == "function" ? f : null;
|
|
50
49
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
50
|
+
var P = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function b(o) {
|
|
53
52
|
{
|
|
54
|
-
for (var
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
for (var f = arguments.length, y = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
|
|
54
|
+
y[S - 1] = arguments[S];
|
|
55
|
+
h("error", o, y);
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
|
-
function
|
|
58
|
+
function h(o, f, y) {
|
|
60
59
|
{
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
60
|
+
var S = P.ReactDebugCurrentFrame, A = S.getStackAddendum();
|
|
61
|
+
A !== "" && (f += "%s", y = y.concat([A]));
|
|
62
|
+
var F = y.map(function(j) {
|
|
63
|
+
return String(j);
|
|
65
64
|
});
|
|
66
|
-
|
|
65
|
+
F.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, F);
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof
|
|
68
|
+
var L = !1, D = !1, C = !1, x = !1, U = !1, J;
|
|
69
|
+
J = Symbol.for("react.module.reference");
|
|
70
|
+
function I(o) {
|
|
71
|
+
return !!(typeof o == "string" || typeof o == "function" || o === r || o === a || U || o === i || o === d || o === p || x || o === v || L || D || C || typeof o == "object" && o !== null && (o.$$typeof === w || o.$$typeof === m || o.$$typeof === l || o.$$typeof === u || o.$$typeof === c || // This needs to include all possible module reference object
|
|
73
72
|
// types supported by any Flight configuration anywhere since
|
|
74
73
|
// we don't know which Flight build this will end up being used
|
|
75
74
|
// with.
|
|
76
|
-
|
|
75
|
+
o.$$typeof === J || o.getModuleId !== void 0));
|
|
77
76
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var
|
|
83
|
-
return
|
|
77
|
+
function _e(o, f, y) {
|
|
78
|
+
var S = o.displayName;
|
|
79
|
+
if (S)
|
|
80
|
+
return S;
|
|
81
|
+
var A = f.displayName || f.name || "";
|
|
82
|
+
return A !== "" ? y + "(" + A + ")" : y;
|
|
84
83
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
84
|
+
function fe(o) {
|
|
85
|
+
return o.displayName || "Context";
|
|
87
86
|
}
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
87
|
+
function q(o) {
|
|
88
|
+
if (o == null)
|
|
90
89
|
return null;
|
|
91
|
-
if (typeof
|
|
92
|
-
return
|
|
93
|
-
if (typeof
|
|
94
|
-
return
|
|
95
|
-
switch (
|
|
96
|
-
case i:
|
|
97
|
-
return "Fragment";
|
|
90
|
+
if (typeof o.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
91
|
+
return o.displayName || o.name || null;
|
|
92
|
+
if (typeof o == "string")
|
|
93
|
+
return o;
|
|
94
|
+
switch (o) {
|
|
98
95
|
case r:
|
|
96
|
+
return "Fragment";
|
|
97
|
+
case n:
|
|
99
98
|
return "Portal";
|
|
100
|
-
case
|
|
99
|
+
case a:
|
|
101
100
|
return "Profiler";
|
|
102
|
-
case
|
|
101
|
+
case i:
|
|
103
102
|
return "StrictMode";
|
|
104
103
|
case d:
|
|
105
104
|
return "Suspense";
|
|
106
105
|
case p:
|
|
107
106
|
return "SuspenseList";
|
|
108
107
|
}
|
|
109
|
-
if (typeof
|
|
110
|
-
switch (
|
|
111
|
-
case
|
|
112
|
-
var
|
|
113
|
-
return
|
|
108
|
+
if (typeof o == "object")
|
|
109
|
+
switch (o.$$typeof) {
|
|
110
|
+
case u:
|
|
111
|
+
var f = o;
|
|
112
|
+
return fe(f) + ".Consumer";
|
|
113
|
+
case l:
|
|
114
|
+
var y = o;
|
|
115
|
+
return fe(y._context) + ".Provider";
|
|
116
|
+
case c:
|
|
117
|
+
return _e(o, o.render, "ForwardRef");
|
|
114
118
|
case m:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
|
|
119
|
-
case y:
|
|
120
|
-
var g = t.displayName || null;
|
|
121
|
-
return g !== null ? g : $(t.type) || "Memo";
|
|
122
|
-
case E: {
|
|
123
|
-
var C = t, P = C._payload, w = C._init;
|
|
119
|
+
var S = o.displayName || null;
|
|
120
|
+
return S !== null ? S : q(o.type) || "Memo";
|
|
121
|
+
case w: {
|
|
122
|
+
var A = o, F = A._payload, j = A._init;
|
|
124
123
|
try {
|
|
125
|
-
return
|
|
124
|
+
return q(j(F));
|
|
126
125
|
} catch {
|
|
127
126
|
return null;
|
|
128
127
|
}
|
|
@@ -130,588 +129,1744 @@ function Tn() {
|
|
|
130
129
|
}
|
|
131
130
|
return null;
|
|
132
131
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
132
|
+
var ne = Object.assign, ue = 0, xe, K, Ye, re, me, ge, Z;
|
|
133
|
+
function Ie() {
|
|
135
134
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
135
|
+
Ie.__reactDisabledLog = !0;
|
|
136
|
+
function qe() {
|
|
138
137
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
var
|
|
138
|
+
if (ue === 0) {
|
|
139
|
+
xe = console.log, K = console.info, Ye = console.warn, re = console.error, me = console.group, ge = console.groupCollapsed, Z = console.groupEnd;
|
|
140
|
+
var o = {
|
|
142
141
|
configurable: !0,
|
|
143
142
|
enumerable: !0,
|
|
144
|
-
value:
|
|
143
|
+
value: Ie,
|
|
145
144
|
writable: !0
|
|
146
145
|
};
|
|
147
146
|
Object.defineProperties(console, {
|
|
148
|
-
info:
|
|
149
|
-
log:
|
|
150
|
-
warn:
|
|
151
|
-
error:
|
|
152
|
-
group:
|
|
153
|
-
groupCollapsed:
|
|
154
|
-
groupEnd:
|
|
147
|
+
info: o,
|
|
148
|
+
log: o,
|
|
149
|
+
warn: o,
|
|
150
|
+
error: o,
|
|
151
|
+
group: o,
|
|
152
|
+
groupCollapsed: o,
|
|
153
|
+
groupEnd: o
|
|
155
154
|
});
|
|
156
155
|
}
|
|
157
|
-
|
|
156
|
+
ue++;
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
|
-
function
|
|
159
|
+
function De() {
|
|
161
160
|
{
|
|
162
|
-
if (
|
|
163
|
-
var
|
|
161
|
+
if (ue--, ue === 0) {
|
|
162
|
+
var o = {
|
|
164
163
|
configurable: !0,
|
|
165
164
|
enumerable: !0,
|
|
166
165
|
writable: !0
|
|
167
166
|
};
|
|
168
167
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value:
|
|
168
|
+
log: ne({}, o, {
|
|
169
|
+
value: xe
|
|
171
170
|
}),
|
|
172
|
-
info:
|
|
173
|
-
value:
|
|
171
|
+
info: ne({}, o, {
|
|
172
|
+
value: K
|
|
174
173
|
}),
|
|
175
|
-
warn:
|
|
176
|
-
value:
|
|
174
|
+
warn: ne({}, o, {
|
|
175
|
+
value: Ye
|
|
177
176
|
}),
|
|
178
|
-
error:
|
|
179
|
-
value:
|
|
177
|
+
error: ne({}, o, {
|
|
178
|
+
value: re
|
|
180
179
|
}),
|
|
181
|
-
group:
|
|
182
|
-
value:
|
|
180
|
+
group: ne({}, o, {
|
|
181
|
+
value: me
|
|
183
182
|
}),
|
|
184
|
-
groupCollapsed:
|
|
185
|
-
value:
|
|
183
|
+
groupCollapsed: ne({}, o, {
|
|
184
|
+
value: ge
|
|
186
185
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
-
value:
|
|
186
|
+
groupEnd: ne({}, o, {
|
|
187
|
+
value: Z
|
|
189
188
|
})
|
|
190
189
|
});
|
|
191
190
|
}
|
|
192
|
-
|
|
191
|
+
ue < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
192
|
}
|
|
194
193
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
194
|
+
var pe = P.ReactCurrentDispatcher, ye;
|
|
195
|
+
function se(o, f, y) {
|
|
197
196
|
{
|
|
198
|
-
if (
|
|
197
|
+
if (ye === void 0)
|
|
199
198
|
try {
|
|
200
199
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var
|
|
203
|
-
|
|
200
|
+
} catch (A) {
|
|
201
|
+
var S = A.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ye = S && S[1] || "";
|
|
204
203
|
}
|
|
205
204
|
return `
|
|
206
|
-
` +
|
|
205
|
+
` + ye + o;
|
|
207
206
|
}
|
|
208
207
|
}
|
|
209
|
-
var
|
|
208
|
+
var ae = !1, ve;
|
|
210
209
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
210
|
+
var Ae = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
ve = new Ae();
|
|
213
212
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!
|
|
213
|
+
function ce(o, f) {
|
|
214
|
+
if (!o || ae)
|
|
216
215
|
return "";
|
|
217
216
|
{
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
217
|
+
var y = ve.get(o);
|
|
218
|
+
if (y !== void 0)
|
|
219
|
+
return y;
|
|
221
220
|
}
|
|
222
|
-
var
|
|
223
|
-
|
|
224
|
-
var
|
|
221
|
+
var S;
|
|
222
|
+
ae = !0;
|
|
223
|
+
var A = Error.prepareStackTrace;
|
|
225
224
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
225
|
+
var F;
|
|
226
|
+
F = pe.current, pe.current = null, qe();
|
|
228
227
|
try {
|
|
229
|
-
if (
|
|
230
|
-
var
|
|
228
|
+
if (f) {
|
|
229
|
+
var j = function() {
|
|
231
230
|
throw Error();
|
|
232
231
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(j.prototype, "props", {
|
|
234
233
|
set: function() {
|
|
235
234
|
throw Error();
|
|
236
235
|
}
|
|
237
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
237
|
try {
|
|
239
|
-
Reflect.construct(
|
|
240
|
-
} catch (
|
|
241
|
-
|
|
238
|
+
Reflect.construct(j, []);
|
|
239
|
+
} catch (Q) {
|
|
240
|
+
S = Q;
|
|
242
241
|
}
|
|
243
|
-
Reflect.construct(
|
|
242
|
+
Reflect.construct(o, [], j);
|
|
244
243
|
} else {
|
|
245
244
|
try {
|
|
246
|
-
|
|
247
|
-
} catch (
|
|
248
|
-
|
|
245
|
+
j.call();
|
|
246
|
+
} catch (Q) {
|
|
247
|
+
S = Q;
|
|
249
248
|
}
|
|
250
|
-
|
|
249
|
+
o.call(j.prototype);
|
|
251
250
|
}
|
|
252
251
|
} else {
|
|
253
252
|
try {
|
|
254
253
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
|
|
254
|
+
} catch (Q) {
|
|
255
|
+
S = Q;
|
|
257
256
|
}
|
|
258
|
-
|
|
257
|
+
o();
|
|
259
258
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`),
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
259
|
+
} catch (Q) {
|
|
260
|
+
if (Q && S && typeof Q.stack == "string") {
|
|
261
|
+
for (var R = Q.stack.split(`
|
|
262
|
+
`), G = S.stack.split(`
|
|
263
|
+
`), N = R.length - 1, $ = G.length - 1; N >= 1 && $ >= 0 && R[N] !== G[$]; )
|
|
264
|
+
$--;
|
|
265
|
+
for (; N >= 1 && $ >= 0; N--, $--)
|
|
266
|
+
if (R[N] !== G[$]) {
|
|
267
|
+
if (N !== 1 || $ !== 1)
|
|
269
268
|
do
|
|
270
|
-
if (
|
|
271
|
-
var
|
|
272
|
-
` +
|
|
273
|
-
return
|
|
269
|
+
if (N--, $--, $ < 0 || R[N] !== G[$]) {
|
|
270
|
+
var oe = `
|
|
271
|
+
` + R[N].replace(" at new ", " at ");
|
|
272
|
+
return o.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", o.displayName)), typeof o == "function" && ve.set(o, oe), oe;
|
|
274
273
|
}
|
|
275
|
-
while (
|
|
274
|
+
while (N >= 1 && $ >= 0);
|
|
276
275
|
break;
|
|
277
276
|
}
|
|
278
277
|
}
|
|
279
278
|
} finally {
|
|
280
|
-
|
|
279
|
+
ae = !1, pe.current = F, De(), Error.prepareStackTrace = A;
|
|
281
280
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof
|
|
281
|
+
var Fe = o ? o.displayName || o.name : "", Se = Fe ? se(Fe) : "";
|
|
282
|
+
return typeof o == "function" && ve.set(o, Se), Se;
|
|
284
283
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
284
|
+
function qr(o, f, y) {
|
|
285
|
+
return ce(o, !1);
|
|
287
286
|
}
|
|
288
|
-
function
|
|
289
|
-
var
|
|
290
|
-
return !!(
|
|
287
|
+
function Zr(o) {
|
|
288
|
+
var f = o.prototype;
|
|
289
|
+
return !!(f && f.isReactComponent);
|
|
291
290
|
}
|
|
292
|
-
function
|
|
293
|
-
if (
|
|
291
|
+
function et(o, f, y) {
|
|
292
|
+
if (o == null)
|
|
294
293
|
return "";
|
|
295
|
-
if (typeof
|
|
296
|
-
return
|
|
297
|
-
if (typeof
|
|
298
|
-
return
|
|
299
|
-
switch (
|
|
294
|
+
if (typeof o == "function")
|
|
295
|
+
return ce(o, Zr(o));
|
|
296
|
+
if (typeof o == "string")
|
|
297
|
+
return se(o);
|
|
298
|
+
switch (o) {
|
|
300
299
|
case d:
|
|
301
|
-
return
|
|
300
|
+
return se("Suspense");
|
|
302
301
|
case p:
|
|
303
|
-
return
|
|
302
|
+
return se("SuspenseList");
|
|
304
303
|
}
|
|
305
|
-
if (typeof
|
|
306
|
-
switch (
|
|
307
|
-
case
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
var
|
|
304
|
+
if (typeof o == "object")
|
|
305
|
+
switch (o.$$typeof) {
|
|
306
|
+
case c:
|
|
307
|
+
return qr(o.render);
|
|
308
|
+
case m:
|
|
309
|
+
return et(o.type, f, y);
|
|
310
|
+
case w: {
|
|
311
|
+
var S = o, A = S._payload, F = S._init;
|
|
313
312
|
try {
|
|
314
|
-
return
|
|
313
|
+
return et(F(A), f, y);
|
|
315
314
|
} catch {
|
|
316
315
|
}
|
|
317
316
|
}
|
|
318
317
|
}
|
|
319
318
|
return "";
|
|
320
319
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
323
|
-
if (
|
|
324
|
-
var
|
|
325
|
-
|
|
320
|
+
var Ze = Object.prototype.hasOwnProperty, en = {}, tn = P.ReactDebugCurrentFrame;
|
|
321
|
+
function tt(o) {
|
|
322
|
+
if (o) {
|
|
323
|
+
var f = o._owner, y = et(o.type, o._source, f ? f.type : null);
|
|
324
|
+
tn.setExtraStackFrame(y);
|
|
326
325
|
} else
|
|
327
|
-
|
|
326
|
+
tn.setExtraStackFrame(null);
|
|
328
327
|
}
|
|
329
|
-
function
|
|
328
|
+
function Gr(o, f, y, S, A) {
|
|
330
329
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
330
|
+
var F = Function.call.bind(Ze);
|
|
331
|
+
for (var j in o)
|
|
332
|
+
if (F(o, j)) {
|
|
333
|
+
var R = void 0;
|
|
335
334
|
try {
|
|
336
|
-
if (typeof
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
335
|
+
if (typeof o[j] != "function") {
|
|
336
|
+
var G = Error((S || "React class") + ": " + y + " type `" + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[j] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw G.name = "Invariant Violation", G;
|
|
339
338
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
339
|
+
R = o[j](f, j, S, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (N) {
|
|
341
|
+
R = N;
|
|
343
342
|
}
|
|
344
|
-
|
|
343
|
+
R && !(R instanceof Error) && (tt(A), b("%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).", S || "React class", y, j, typeof R), tt(null)), R instanceof Error && !(R.message in en) && (en[R.message] = !0, tt(A), b("Failed %s type: %s", y, R.message), tt(null));
|
|
345
344
|
}
|
|
346
345
|
}
|
|
347
346
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
347
|
+
var Xr = Array.isArray;
|
|
348
|
+
function Pt(o) {
|
|
349
|
+
return Xr(o);
|
|
351
350
|
}
|
|
352
|
-
function
|
|
351
|
+
function Jr(o) {
|
|
353
352
|
{
|
|
354
|
-
var
|
|
355
|
-
return
|
|
353
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, y = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
354
|
+
return y;
|
|
356
355
|
}
|
|
357
356
|
}
|
|
358
|
-
function
|
|
357
|
+
function Kr(o) {
|
|
359
358
|
try {
|
|
360
|
-
return
|
|
359
|
+
return nn(o), !1;
|
|
361
360
|
} catch {
|
|
362
361
|
return !0;
|
|
363
362
|
}
|
|
364
363
|
}
|
|
365
|
-
function
|
|
366
|
-
return "" +
|
|
364
|
+
function nn(o) {
|
|
365
|
+
return "" + o;
|
|
367
366
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
367
|
+
function rn(o) {
|
|
368
|
+
if (Kr(o))
|
|
369
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jr(o)), nn(o);
|
|
371
370
|
}
|
|
372
|
-
var
|
|
371
|
+
var on = P.ReactCurrentOwner, Qr = {
|
|
373
372
|
key: !0,
|
|
374
373
|
ref: !0,
|
|
375
374
|
__self: !0,
|
|
376
375
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
376
|
+
}, sn, an;
|
|
377
|
+
function eo(o) {
|
|
378
|
+
if (Ze.call(o, "ref")) {
|
|
379
|
+
var f = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
380
|
+
if (f && f.isReactWarning)
|
|
382
381
|
return !1;
|
|
383
382
|
}
|
|
384
|
-
return
|
|
383
|
+
return o.ref !== void 0;
|
|
385
384
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
385
|
+
function to(o) {
|
|
386
|
+
if (Ze.call(o, "key")) {
|
|
387
|
+
var f = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
388
|
+
if (f && f.isReactWarning)
|
|
390
389
|
return !1;
|
|
391
390
|
}
|
|
392
|
-
return
|
|
391
|
+
return o.key !== void 0;
|
|
393
392
|
}
|
|
394
|
-
function
|
|
395
|
-
typeof
|
|
393
|
+
function no(o, f) {
|
|
394
|
+
typeof o.ref == "string" && on.current;
|
|
396
395
|
}
|
|
397
|
-
function
|
|
396
|
+
function ro(o, f) {
|
|
398
397
|
{
|
|
399
|
-
var
|
|
400
|
-
|
|
398
|
+
var y = function() {
|
|
399
|
+
sn || (sn = !0, b("%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));
|
|
401
400
|
};
|
|
402
|
-
|
|
403
|
-
get:
|
|
401
|
+
y.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
402
|
+
get: y,
|
|
404
403
|
configurable: !0
|
|
405
404
|
});
|
|
406
405
|
}
|
|
407
406
|
}
|
|
408
|
-
function
|
|
407
|
+
function oo(o, f) {
|
|
409
408
|
{
|
|
410
|
-
var
|
|
411
|
-
|
|
409
|
+
var y = function() {
|
|
410
|
+
an || (an = !0, b("%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));
|
|
412
411
|
};
|
|
413
|
-
|
|
414
|
-
get:
|
|
412
|
+
y.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
413
|
+
get: y,
|
|
415
414
|
configurable: !0
|
|
416
415
|
});
|
|
417
416
|
}
|
|
418
417
|
}
|
|
419
|
-
var
|
|
420
|
-
var
|
|
418
|
+
var io = function(o, f, y, S, A, F, j) {
|
|
419
|
+
var R = {
|
|
421
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof:
|
|
421
|
+
$$typeof: t,
|
|
423
422
|
// Built-in properties that belong on the element
|
|
424
|
-
type:
|
|
425
|
-
key:
|
|
426
|
-
ref:
|
|
427
|
-
props:
|
|
423
|
+
type: o,
|
|
424
|
+
key: f,
|
|
425
|
+
ref: y,
|
|
426
|
+
props: j,
|
|
428
427
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
428
|
+
_owner: F
|
|
430
429
|
};
|
|
431
|
-
return
|
|
430
|
+
return R._store = {}, Object.defineProperty(R._store, "validated", {
|
|
432
431
|
configurable: !1,
|
|
433
432
|
enumerable: !1,
|
|
434
433
|
writable: !0,
|
|
435
434
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
435
|
+
}), Object.defineProperty(R, "_self", {
|
|
437
436
|
configurable: !1,
|
|
438
437
|
enumerable: !1,
|
|
439
438
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.defineProperty(
|
|
439
|
+
value: S
|
|
440
|
+
}), Object.defineProperty(R, "_source", {
|
|
442
441
|
configurable: !1,
|
|
443
442
|
enumerable: !1,
|
|
444
443
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
444
|
+
value: A
|
|
445
|
+
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
447
446
|
};
|
|
448
|
-
function
|
|
447
|
+
function so(o, f, y, S, A) {
|
|
449
448
|
{
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
for (
|
|
453
|
-
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
|
|
449
|
+
var F, j = {}, R = null, G = null;
|
|
450
|
+
y !== void 0 && (rn(y), R = "" + y), to(f) && (rn(f.key), R = "" + f.key), eo(f) && (G = f.ref, no(f, A));
|
|
451
|
+
for (F in f)
|
|
452
|
+
Ze.call(f, F) && !Qr.hasOwnProperty(F) && (j[F] = f[F]);
|
|
453
|
+
if (o && o.defaultProps) {
|
|
454
|
+
var N = o.defaultProps;
|
|
455
|
+
for (F in N)
|
|
456
|
+
j[F] === void 0 && (j[F] = N[F]);
|
|
458
457
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
458
|
+
if (R || G) {
|
|
459
|
+
var $ = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
460
|
+
R && ro(j, $), G && oo(j, $);
|
|
462
461
|
}
|
|
463
|
-
return
|
|
462
|
+
return io(o, R, G, A, S, on.current, j);
|
|
464
463
|
}
|
|
465
464
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
468
|
-
if (
|
|
469
|
-
var
|
|
470
|
-
|
|
465
|
+
var Rt = P.ReactCurrentOwner, cn = P.ReactDebugCurrentFrame;
|
|
466
|
+
function Oe(o) {
|
|
467
|
+
if (o) {
|
|
468
|
+
var f = o._owner, y = et(o.type, o._source, f ? f.type : null);
|
|
469
|
+
cn.setExtraStackFrame(y);
|
|
471
470
|
} else
|
|
472
|
-
|
|
471
|
+
cn.setExtraStackFrame(null);
|
|
473
472
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
477
|
-
return typeof
|
|
473
|
+
var jt;
|
|
474
|
+
jt = !1;
|
|
475
|
+
function Lt(o) {
|
|
476
|
+
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
478
477
|
}
|
|
479
|
-
function
|
|
478
|
+
function ln() {
|
|
480
479
|
{
|
|
481
|
-
if (
|
|
482
|
-
var
|
|
483
|
-
if (
|
|
480
|
+
if (Rt.current) {
|
|
481
|
+
var o = q(Rt.current.type);
|
|
482
|
+
if (o)
|
|
484
483
|
return `
|
|
485
484
|
|
|
486
|
-
Check the render method of \`` +
|
|
485
|
+
Check the render method of \`` + o + "`.";
|
|
487
486
|
}
|
|
488
487
|
return "";
|
|
489
488
|
}
|
|
490
489
|
}
|
|
491
|
-
function
|
|
490
|
+
function ao(o) {
|
|
492
491
|
return "";
|
|
493
492
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
493
|
+
var un = {};
|
|
494
|
+
function co(o) {
|
|
496
495
|
{
|
|
497
|
-
var
|
|
498
|
-
if (!
|
|
499
|
-
var
|
|
500
|
-
|
|
496
|
+
var f = ln();
|
|
497
|
+
if (!f) {
|
|
498
|
+
var y = typeof o == "string" ? o : o.displayName || o.name;
|
|
499
|
+
y && (f = `
|
|
501
500
|
|
|
502
|
-
Check the top-level render call using <` +
|
|
501
|
+
Check the top-level render call using <` + y + ">.");
|
|
503
502
|
}
|
|
504
|
-
return
|
|
503
|
+
return f;
|
|
505
504
|
}
|
|
506
505
|
}
|
|
507
|
-
function
|
|
506
|
+
function dn(o, f) {
|
|
508
507
|
{
|
|
509
|
-
if (!
|
|
508
|
+
if (!o._store || o._store.validated || o.key != null)
|
|
510
509
|
return;
|
|
511
|
-
|
|
512
|
-
var
|
|
513
|
-
if (
|
|
510
|
+
o._store.validated = !0;
|
|
511
|
+
var y = co(f);
|
|
512
|
+
if (un[y])
|
|
514
513
|
return;
|
|
515
|
-
|
|
516
|
-
var
|
|
517
|
-
|
|
514
|
+
un[y] = !0;
|
|
515
|
+
var S = "";
|
|
516
|
+
o && o._owner && o._owner !== Rt.current && (S = " It was passed a child from " + q(o._owner.type) + "."), Oe(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, S), Oe(null);
|
|
518
517
|
}
|
|
519
518
|
}
|
|
520
|
-
function
|
|
519
|
+
function fn(o, f) {
|
|
521
520
|
{
|
|
522
|
-
if (typeof
|
|
521
|
+
if (typeof o != "object")
|
|
523
522
|
return;
|
|
524
|
-
if (
|
|
525
|
-
for (var
|
|
526
|
-
var
|
|
527
|
-
|
|
523
|
+
if (Pt(o))
|
|
524
|
+
for (var y = 0; y < o.length; y++) {
|
|
525
|
+
var S = o[y];
|
|
526
|
+
Lt(S) && dn(S, f);
|
|
528
527
|
}
|
|
529
|
-
else if (
|
|
530
|
-
|
|
531
|
-
else if (
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var
|
|
535
|
-
|
|
528
|
+
else if (Lt(o))
|
|
529
|
+
o._store && (o._store.validated = !0);
|
|
530
|
+
else if (o) {
|
|
531
|
+
var A = M(o);
|
|
532
|
+
if (typeof A == "function" && A !== o.entries)
|
|
533
|
+
for (var F = A.call(o), j; !(j = F.next()).done; )
|
|
534
|
+
Lt(j.value) && dn(j.value, f);
|
|
536
535
|
}
|
|
537
536
|
}
|
|
538
537
|
}
|
|
539
|
-
function
|
|
538
|
+
function lo(o) {
|
|
540
539
|
{
|
|
541
|
-
var
|
|
542
|
-
if (
|
|
540
|
+
var f = o.type;
|
|
541
|
+
if (f == null || typeof f == "string")
|
|
543
542
|
return;
|
|
544
|
-
var
|
|
545
|
-
if (typeof
|
|
546
|
-
|
|
547
|
-
else if (typeof
|
|
543
|
+
var y;
|
|
544
|
+
if (typeof f == "function")
|
|
545
|
+
y = f.propTypes;
|
|
546
|
+
else if (typeof f == "object" && (f.$$typeof === c || // Note: Memo only checks outer props here.
|
|
548
547
|
// Inner props are checked in the reconciler.
|
|
549
|
-
|
|
550
|
-
|
|
548
|
+
f.$$typeof === m))
|
|
549
|
+
y = f.propTypes;
|
|
551
550
|
else
|
|
552
551
|
return;
|
|
553
|
-
if (
|
|
554
|
-
var
|
|
555
|
-
|
|
556
|
-
} else if (
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
552
|
+
if (y) {
|
|
553
|
+
var S = q(f);
|
|
554
|
+
Gr(y, o.props, "prop", S, o);
|
|
555
|
+
} else if (f.PropTypes !== void 0 && !jt) {
|
|
556
|
+
jt = !0;
|
|
557
|
+
var A = q(f);
|
|
558
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
560
559
|
}
|
|
561
|
-
typeof
|
|
560
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
561
|
}
|
|
563
562
|
}
|
|
564
|
-
function
|
|
563
|
+
function uo(o) {
|
|
565
564
|
{
|
|
566
|
-
for (var
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
|
|
565
|
+
for (var f = Object.keys(o.props), y = 0; y < f.length; y++) {
|
|
566
|
+
var S = f[y];
|
|
567
|
+
if (S !== "children" && S !== "key") {
|
|
568
|
+
Oe(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Oe(null);
|
|
570
569
|
break;
|
|
571
570
|
}
|
|
572
571
|
}
|
|
573
|
-
|
|
572
|
+
o.ref !== null && (Oe(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
|
|
574
573
|
}
|
|
575
574
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
575
|
+
var pn = {};
|
|
576
|
+
function hn(o, f, y, S, A, F) {
|
|
578
577
|
{
|
|
579
|
-
var
|
|
580
|
-
if (!
|
|
581
|
-
var
|
|
582
|
-
(
|
|
583
|
-
var
|
|
584
|
-
|
|
585
|
-
var
|
|
586
|
-
|
|
578
|
+
var j = I(o);
|
|
579
|
+
if (!j) {
|
|
580
|
+
var R = "";
|
|
581
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).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 G = ao();
|
|
583
|
+
G ? R += G : R += ln();
|
|
584
|
+
var N;
|
|
585
|
+
o === null ? N = "null" : Pt(o) ? N = "array" : o !== void 0 && o.$$typeof === t ? (N = "<" + (q(o.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : N = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, R);
|
|
587
586
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
591
|
-
if (
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
596
|
-
for (var
|
|
597
|
-
|
|
598
|
-
Object.freeze && Object.freeze(
|
|
587
|
+
var $ = so(o, f, y, A, F);
|
|
588
|
+
if ($ == null)
|
|
589
|
+
return $;
|
|
590
|
+
if (j) {
|
|
591
|
+
var oe = f.children;
|
|
592
|
+
if (oe !== void 0)
|
|
593
|
+
if (S)
|
|
594
|
+
if (Pt(oe)) {
|
|
595
|
+
for (var Fe = 0; Fe < oe.length; Fe++)
|
|
596
|
+
fn(oe[Fe], o);
|
|
597
|
+
Object.freeze && Object.freeze(oe);
|
|
599
598
|
} else
|
|
600
|
-
|
|
599
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
600
|
else
|
|
602
|
-
|
|
601
|
+
fn(oe, o);
|
|
603
602
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var
|
|
610
|
-
|
|
603
|
+
if (Ze.call(f, "key")) {
|
|
604
|
+
var Se = q(o), Q = Object.keys(f).filter(function(yo) {
|
|
605
|
+
return yo !== "key";
|
|
606
|
+
}), _t = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!pn[Se + _t]) {
|
|
608
|
+
var go = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
611
610
|
let props = %s;
|
|
612
611
|
<%s {...props} />
|
|
613
612
|
React keys must be passed directly to JSX without using spread:
|
|
614
613
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, _t, Se, go, Se), pn[Se + _t] = !0;
|
|
616
615
|
}
|
|
617
616
|
}
|
|
618
|
-
return
|
|
617
|
+
return o === r ? uo($) : lo($), $;
|
|
619
618
|
}
|
|
620
619
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
620
|
+
function fo(o, f, y) {
|
|
621
|
+
return hn(o, f, y, !0);
|
|
623
622
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
623
|
+
function po(o, f, y) {
|
|
624
|
+
return hn(o, f, y, !1);
|
|
626
625
|
}
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
})()),
|
|
626
|
+
var ho = po, mo = fo;
|
|
627
|
+
Xe.Fragment = r, Xe.jsx = ho, Xe.jsxs = mo;
|
|
628
|
+
})()), Xe;
|
|
630
629
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
return
|
|
630
|
+
var vn;
|
|
631
|
+
function So() {
|
|
632
|
+
return vn || (vn = 1, process.env.NODE_ENV === "production" ? nt.exports = bo() : nt.exports = xo()), nt.exports;
|
|
634
633
|
}
|
|
635
|
-
var
|
|
636
|
-
const
|
|
637
|
-
function
|
|
638
|
-
const
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}, [e]),
|
|
642
|
-
if (
|
|
634
|
+
var s = So();
|
|
635
|
+
const Co = typeof window < "u" ? vo : te;
|
|
636
|
+
function wt(e, t) {
|
|
637
|
+
const n = Y(e);
|
|
638
|
+
Co(() => {
|
|
639
|
+
n.current = e;
|
|
640
|
+
}, [e]), te(() => {
|
|
641
|
+
if (t === null)
|
|
643
642
|
return;
|
|
644
|
-
const
|
|
645
|
-
|
|
646
|
-
},
|
|
643
|
+
const r = setInterval(() => {
|
|
644
|
+
n.current();
|
|
645
|
+
}, t);
|
|
647
646
|
return () => {
|
|
648
|
-
clearInterval(
|
|
647
|
+
clearInterval(r);
|
|
649
648
|
};
|
|
650
|
-
}, [
|
|
649
|
+
}, [t]);
|
|
651
650
|
}
|
|
652
|
-
function
|
|
653
|
-
const [,
|
|
654
|
-
|
|
651
|
+
function ko(e) {
|
|
652
|
+
const [, t] = X(0);
|
|
653
|
+
wt(() => t((n) => n + 1), e);
|
|
655
654
|
}
|
|
656
|
-
const
|
|
655
|
+
const Eo = (e, t) => $n((n) => ({
|
|
657
656
|
delay: 0,
|
|
658
657
|
startDate: e,
|
|
659
|
-
endDate:
|
|
658
|
+
endDate: t,
|
|
660
659
|
startTime: e.getTime(),
|
|
661
|
-
endTime:
|
|
662
|
-
setDelay: (
|
|
663
|
-
setStartDate: (
|
|
664
|
-
setEndDate: (
|
|
665
|
-
})),
|
|
660
|
+
endTime: t.getTime(),
|
|
661
|
+
setDelay: (r) => n({ delay: r }),
|
|
662
|
+
setStartDate: (r) => n({ startDate: r }),
|
|
663
|
+
setEndDate: (r) => n({ endDate: r })
|
|
664
|
+
})), zn = Nn(
|
|
666
665
|
null
|
|
667
|
-
),
|
|
666
|
+
), To = ({
|
|
668
667
|
children: e,
|
|
669
|
-
startDate:
|
|
670
|
-
endDate:
|
|
668
|
+
startDate: t,
|
|
669
|
+
endDate: n
|
|
671
670
|
}) => {
|
|
672
|
-
const
|
|
671
|
+
const r = Y(
|
|
673
672
|
null
|
|
674
673
|
);
|
|
675
|
-
return
|
|
676
|
-
},
|
|
677
|
-
const
|
|
678
|
-
if (!
|
|
674
|
+
return r.current || (r.current = Eo(t, n)), /* @__PURE__ */ s.jsx(zn.Provider, { value: r.current, children: e });
|
|
675
|
+
}, W = (e) => {
|
|
676
|
+
const t = Zt(zn);
|
|
677
|
+
if (!t)
|
|
679
678
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
680
|
-
return
|
|
679
|
+
return Hn(t, e);
|
|
680
|
+
};
|
|
681
|
+
var ee = function() {
|
|
682
|
+
return ee = Object.assign || function(t) {
|
|
683
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
684
|
+
n = arguments[r];
|
|
685
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
686
|
+
}
|
|
687
|
+
return t;
|
|
688
|
+
}, ee.apply(this, arguments);
|
|
689
|
+
};
|
|
690
|
+
function je(e, t, n) {
|
|
691
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; 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
|
+
}
|
|
695
|
+
function Po(e) {
|
|
696
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
697
|
+
return function(n) {
|
|
698
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
var Ro = /^((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)-.*))$/, jo = /* @__PURE__ */ Po(
|
|
702
|
+
function(e) {
|
|
703
|
+
return Ro.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
704
|
+
}
|
|
705
|
+
/* Z+1 */
|
|
706
|
+
), V = "-ms-", Ke = "-moz-", O = "-webkit-", Bn = "comm", bt = "rule", Gt = "decl", Lo = "@import", Un = "@keyframes", _o = "@layer", Wn = Math.abs, Xt = String.fromCharCode, Ft = Object.assign;
|
|
707
|
+
function Io(e, t) {
|
|
708
|
+
return z(e, 0) ^ 45 ? (((t << 2 ^ z(e, 0)) << 2 ^ z(e, 1)) << 2 ^ z(e, 2)) << 2 ^ z(e, 3) : 0;
|
|
709
|
+
}
|
|
710
|
+
function Yn(e) {
|
|
711
|
+
return e.trim();
|
|
712
|
+
}
|
|
713
|
+
function he(e, t) {
|
|
714
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
715
|
+
}
|
|
716
|
+
function k(e, t, n) {
|
|
717
|
+
return e.replace(t, n);
|
|
718
|
+
}
|
|
719
|
+
function at(e, t, n) {
|
|
720
|
+
return e.indexOf(t, n);
|
|
721
|
+
}
|
|
722
|
+
function z(e, t) {
|
|
723
|
+
return e.charCodeAt(t) | 0;
|
|
724
|
+
}
|
|
725
|
+
function Ve(e, t, n) {
|
|
726
|
+
return e.slice(t, n);
|
|
727
|
+
}
|
|
728
|
+
function de(e) {
|
|
729
|
+
return e.length;
|
|
730
|
+
}
|
|
731
|
+
function qn(e) {
|
|
732
|
+
return e.length;
|
|
733
|
+
}
|
|
734
|
+
function Je(e, t) {
|
|
735
|
+
return t.push(e), e;
|
|
736
|
+
}
|
|
737
|
+
function Do(e, t) {
|
|
738
|
+
return e.map(t).join("");
|
|
739
|
+
}
|
|
740
|
+
function wn(e, t) {
|
|
741
|
+
return e.filter(function(n) {
|
|
742
|
+
return !he(n, t);
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
var xt = 1, Ne = 1, Zn = 0, ie = 0, H = 0, Ue = "";
|
|
746
|
+
function St(e, t, n, r, i, a, l, u) {
|
|
747
|
+
return { value: e, root: t, parent: n, type: r, props: i, children: a, line: xt, column: Ne, length: l, return: "", siblings: u };
|
|
748
|
+
}
|
|
749
|
+
function we(e, t) {
|
|
750
|
+
return Ft(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
751
|
+
}
|
|
752
|
+
function Me(e) {
|
|
753
|
+
for (; e.root; )
|
|
754
|
+
e = we(e.root, { children: [e] });
|
|
755
|
+
Je(e, e.siblings);
|
|
756
|
+
}
|
|
757
|
+
function Ao() {
|
|
758
|
+
return H;
|
|
759
|
+
}
|
|
760
|
+
function Oo() {
|
|
761
|
+
return H = ie > 0 ? z(Ue, --ie) : 0, Ne--, H === 10 && (Ne = 1, xt--), H;
|
|
762
|
+
}
|
|
763
|
+
function le() {
|
|
764
|
+
return H = ie < Zn ? z(Ue, ie++) : 0, Ne++, H === 10 && (Ne = 1, xt++), H;
|
|
765
|
+
}
|
|
766
|
+
function Te() {
|
|
767
|
+
return z(Ue, ie);
|
|
768
|
+
}
|
|
769
|
+
function ct() {
|
|
770
|
+
return ie;
|
|
771
|
+
}
|
|
772
|
+
function Ct(e, t) {
|
|
773
|
+
return Ve(Ue, e, t);
|
|
774
|
+
}
|
|
775
|
+
function Mt(e) {
|
|
776
|
+
switch (e) {
|
|
777
|
+
// \0 \t \n \r \s whitespace token
|
|
778
|
+
case 0:
|
|
779
|
+
case 9:
|
|
780
|
+
case 10:
|
|
781
|
+
case 13:
|
|
782
|
+
case 32:
|
|
783
|
+
return 5;
|
|
784
|
+
// ! + , / > @ ~ isolate token
|
|
785
|
+
case 33:
|
|
786
|
+
case 43:
|
|
787
|
+
case 44:
|
|
788
|
+
case 47:
|
|
789
|
+
case 62:
|
|
790
|
+
case 64:
|
|
791
|
+
case 126:
|
|
792
|
+
// ; { } breakpoint token
|
|
793
|
+
case 59:
|
|
794
|
+
case 123:
|
|
795
|
+
case 125:
|
|
796
|
+
return 4;
|
|
797
|
+
// : accompanied token
|
|
798
|
+
case 58:
|
|
799
|
+
return 3;
|
|
800
|
+
// " ' ( [ opening delimit token
|
|
801
|
+
case 34:
|
|
802
|
+
case 39:
|
|
803
|
+
case 40:
|
|
804
|
+
case 91:
|
|
805
|
+
return 2;
|
|
806
|
+
// ) ] closing delimit token
|
|
807
|
+
case 41:
|
|
808
|
+
case 93:
|
|
809
|
+
return 1;
|
|
810
|
+
}
|
|
811
|
+
return 0;
|
|
812
|
+
}
|
|
813
|
+
function Fo(e) {
|
|
814
|
+
return xt = Ne = 1, Zn = de(Ue = e), ie = 0, [];
|
|
815
|
+
}
|
|
816
|
+
function Mo(e) {
|
|
817
|
+
return Ue = "", e;
|
|
818
|
+
}
|
|
819
|
+
function It(e) {
|
|
820
|
+
return Yn(Ct(ie - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
821
|
+
}
|
|
822
|
+
function Vo(e) {
|
|
823
|
+
for (; (H = Te()) && H < 33; )
|
|
824
|
+
le();
|
|
825
|
+
return Mt(e) > 2 || Mt(H) > 3 ? "" : " ";
|
|
826
|
+
}
|
|
827
|
+
function No(e, t) {
|
|
828
|
+
for (; --t && le() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
|
|
829
|
+
;
|
|
830
|
+
return Ct(e, ct() + (t < 6 && Te() == 32 && le() == 32));
|
|
831
|
+
}
|
|
832
|
+
function Vt(e) {
|
|
833
|
+
for (; le(); )
|
|
834
|
+
switch (H) {
|
|
835
|
+
// ] ) " '
|
|
836
|
+
case e:
|
|
837
|
+
return ie;
|
|
838
|
+
// " '
|
|
839
|
+
case 34:
|
|
840
|
+
case 39:
|
|
841
|
+
e !== 34 && e !== 39 && Vt(H);
|
|
842
|
+
break;
|
|
843
|
+
// (
|
|
844
|
+
case 40:
|
|
845
|
+
e === 41 && Vt(e);
|
|
846
|
+
break;
|
|
847
|
+
// \
|
|
848
|
+
case 92:
|
|
849
|
+
le();
|
|
850
|
+
break;
|
|
851
|
+
}
|
|
852
|
+
return ie;
|
|
853
|
+
}
|
|
854
|
+
function $o(e, t) {
|
|
855
|
+
for (; le() && e + H !== 57; )
|
|
856
|
+
if (e + H === 84 && Te() === 47)
|
|
857
|
+
break;
|
|
858
|
+
return "/*" + Ct(t, ie - 1) + "*" + Xt(e === 47 ? e : le());
|
|
859
|
+
}
|
|
860
|
+
function Ho(e) {
|
|
861
|
+
for (; !Mt(Te()); )
|
|
862
|
+
le();
|
|
863
|
+
return Ct(e, ie);
|
|
864
|
+
}
|
|
865
|
+
function zo(e) {
|
|
866
|
+
return Mo(lt("", null, null, null, [""], e = Fo(e), 0, [0], e));
|
|
867
|
+
}
|
|
868
|
+
function lt(e, t, n, r, i, a, l, u, c) {
|
|
869
|
+
for (var d = 0, p = 0, m = l, w = 0, v = 0, T = 0, E = 1, M = 1, P = 1, b = 0, h = "", L = i, D = a, C = r, x = h; M; )
|
|
870
|
+
switch (T = b, b = le()) {
|
|
871
|
+
// (
|
|
872
|
+
case 40:
|
|
873
|
+
if (T != 108 && z(x, m - 1) == 58) {
|
|
874
|
+
at(x += k(It(b), "&", "&\f"), "&\f", Wn(d ? u[d - 1] : 0)) != -1 && (P = -1);
|
|
875
|
+
break;
|
|
876
|
+
}
|
|
877
|
+
// " ' [
|
|
878
|
+
case 34:
|
|
879
|
+
case 39:
|
|
880
|
+
case 91:
|
|
881
|
+
x += It(b);
|
|
882
|
+
break;
|
|
883
|
+
// \t \n \r \s
|
|
884
|
+
case 9:
|
|
885
|
+
case 10:
|
|
886
|
+
case 13:
|
|
887
|
+
case 32:
|
|
888
|
+
x += Vo(T);
|
|
889
|
+
break;
|
|
890
|
+
// \
|
|
891
|
+
case 92:
|
|
892
|
+
x += No(ct() - 1, 7);
|
|
893
|
+
continue;
|
|
894
|
+
// /
|
|
895
|
+
case 47:
|
|
896
|
+
switch (Te()) {
|
|
897
|
+
case 42:
|
|
898
|
+
case 47:
|
|
899
|
+
Je(Bo($o(le(), ct()), t, n, c), c);
|
|
900
|
+
break;
|
|
901
|
+
default:
|
|
902
|
+
x += "/";
|
|
903
|
+
}
|
|
904
|
+
break;
|
|
905
|
+
// {
|
|
906
|
+
case 123 * E:
|
|
907
|
+
u[d++] = de(x) * P;
|
|
908
|
+
// } ; \0
|
|
909
|
+
case 125 * E:
|
|
910
|
+
case 59:
|
|
911
|
+
case 0:
|
|
912
|
+
switch (b) {
|
|
913
|
+
// \0 }
|
|
914
|
+
case 0:
|
|
915
|
+
case 125:
|
|
916
|
+
M = 0;
|
|
917
|
+
// ;
|
|
918
|
+
case 59 + p:
|
|
919
|
+
P == -1 && (x = k(x, /\f/g, "")), v > 0 && de(x) - m && Je(v > 32 ? xn(x + ";", r, n, m - 1, c) : xn(k(x, " ", "") + ";", r, n, m - 2, c), c);
|
|
920
|
+
break;
|
|
921
|
+
// @ ;
|
|
922
|
+
case 59:
|
|
923
|
+
x += ";";
|
|
924
|
+
// { rule/at-rule
|
|
925
|
+
default:
|
|
926
|
+
if (Je(C = bn(x, t, n, d, p, i, u, h, L = [], D = [], m, a), a), b === 123)
|
|
927
|
+
if (p === 0)
|
|
928
|
+
lt(x, t, C, C, L, a, m, u, D);
|
|
929
|
+
else
|
|
930
|
+
switch (w === 99 && z(x, 3) === 110 ? 100 : w) {
|
|
931
|
+
// d l m s
|
|
932
|
+
case 100:
|
|
933
|
+
case 108:
|
|
934
|
+
case 109:
|
|
935
|
+
case 115:
|
|
936
|
+
lt(e, C, C, r && Je(bn(e, C, C, 0, 0, i, u, h, i, L = [], m, D), D), i, D, m, u, r ? L : D);
|
|
937
|
+
break;
|
|
938
|
+
default:
|
|
939
|
+
lt(x, C, C, C, [""], D, 0, u, D);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
d = p = v = 0, E = P = 1, h = x = "", m = l;
|
|
943
|
+
break;
|
|
944
|
+
// :
|
|
945
|
+
case 58:
|
|
946
|
+
m = 1 + de(x), v = T;
|
|
947
|
+
default:
|
|
948
|
+
if (E < 1) {
|
|
949
|
+
if (b == 123)
|
|
950
|
+
--E;
|
|
951
|
+
else if (b == 125 && E++ == 0 && Oo() == 125)
|
|
952
|
+
continue;
|
|
953
|
+
}
|
|
954
|
+
switch (x += Xt(b), b * E) {
|
|
955
|
+
// &
|
|
956
|
+
case 38:
|
|
957
|
+
P = p > 0 ? 1 : (x += "\f", -1);
|
|
958
|
+
break;
|
|
959
|
+
// ,
|
|
960
|
+
case 44:
|
|
961
|
+
u[d++] = (de(x) - 1) * P, P = 1;
|
|
962
|
+
break;
|
|
963
|
+
// @
|
|
964
|
+
case 64:
|
|
965
|
+
Te() === 45 && (x += It(le())), w = Te(), p = m = de(h = x += Ho(ct())), b++;
|
|
966
|
+
break;
|
|
967
|
+
// -
|
|
968
|
+
case 45:
|
|
969
|
+
T === 45 && de(x) == 2 && (E = 0);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
return a;
|
|
973
|
+
}
|
|
974
|
+
function bn(e, t, n, r, i, a, l, u, c, d, p, m) {
|
|
975
|
+
for (var w = i - 1, v = i === 0 ? a : [""], T = qn(v), E = 0, M = 0, P = 0; E < r; ++E)
|
|
976
|
+
for (var b = 0, h = Ve(e, w + 1, w = Wn(M = l[E])), L = e; b < T; ++b)
|
|
977
|
+
(L = Yn(M > 0 ? v[b] + " " + h : k(h, /&\f/g, v[b]))) && (c[P++] = L);
|
|
978
|
+
return St(e, t, n, i === 0 ? bt : u, c, d, p, m);
|
|
979
|
+
}
|
|
980
|
+
function Bo(e, t, n, r) {
|
|
981
|
+
return St(e, t, n, Bn, Xt(Ao()), Ve(e, 2, -2), 0, r);
|
|
982
|
+
}
|
|
983
|
+
function xn(e, t, n, r, i) {
|
|
984
|
+
return St(e, t, n, Gt, Ve(e, 0, r), Ve(e, r + 1, -1), r, i);
|
|
985
|
+
}
|
|
986
|
+
function Gn(e, t, n) {
|
|
987
|
+
switch (Io(e, t)) {
|
|
988
|
+
// color-adjust
|
|
989
|
+
case 5103:
|
|
990
|
+
return O + "print-" + e + e;
|
|
991
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
992
|
+
case 5737:
|
|
993
|
+
case 4201:
|
|
994
|
+
case 3177:
|
|
995
|
+
case 3433:
|
|
996
|
+
case 1641:
|
|
997
|
+
case 4457:
|
|
998
|
+
case 2921:
|
|
999
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1000
|
+
case 5572:
|
|
1001
|
+
case 6356:
|
|
1002
|
+
case 5844:
|
|
1003
|
+
case 3191:
|
|
1004
|
+
case 6645:
|
|
1005
|
+
case 3005:
|
|
1006
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1007
|
+
case 6391:
|
|
1008
|
+
case 5879:
|
|
1009
|
+
case 5623:
|
|
1010
|
+
case 6135:
|
|
1011
|
+
case 4599:
|
|
1012
|
+
case 4855:
|
|
1013
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1014
|
+
case 4215:
|
|
1015
|
+
case 6389:
|
|
1016
|
+
case 5109:
|
|
1017
|
+
case 5365:
|
|
1018
|
+
case 5621:
|
|
1019
|
+
case 3829:
|
|
1020
|
+
return O + e + e;
|
|
1021
|
+
// tab-size
|
|
1022
|
+
case 4789:
|
|
1023
|
+
return Ke + e + e;
|
|
1024
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1025
|
+
case 5349:
|
|
1026
|
+
case 4246:
|
|
1027
|
+
case 4810:
|
|
1028
|
+
case 6968:
|
|
1029
|
+
case 2756:
|
|
1030
|
+
return O + e + Ke + e + V + e + e;
|
|
1031
|
+
// writing-mode
|
|
1032
|
+
case 5936:
|
|
1033
|
+
switch (z(e, t + 11)) {
|
|
1034
|
+
// vertical-l(r)
|
|
1035
|
+
case 114:
|
|
1036
|
+
return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1037
|
+
// vertical-r(l)
|
|
1038
|
+
case 108:
|
|
1039
|
+
return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1040
|
+
// horizontal(-)tb
|
|
1041
|
+
case 45:
|
|
1042
|
+
return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1043
|
+
}
|
|
1044
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
1045
|
+
case 6828:
|
|
1046
|
+
case 4268:
|
|
1047
|
+
case 2903:
|
|
1048
|
+
return O + e + V + e + e;
|
|
1049
|
+
// order
|
|
1050
|
+
case 6165:
|
|
1051
|
+
return O + e + V + "flex-" + e + e;
|
|
1052
|
+
// align-items
|
|
1053
|
+
case 5187:
|
|
1054
|
+
return O + e + k(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + V + "flex-$1$2") + e;
|
|
1055
|
+
// align-self
|
|
1056
|
+
case 5443:
|
|
1057
|
+
return O + e + V + "flex-item-" + k(e, /flex-|-self/g, "") + (he(e, /flex-|baseline/) ? "" : V + "grid-row-" + k(e, /flex-|-self/g, "")) + e;
|
|
1058
|
+
// align-content
|
|
1059
|
+
case 4675:
|
|
1060
|
+
return O + e + V + "flex-line-pack" + k(e, /align-content|flex-|-self/g, "") + e;
|
|
1061
|
+
// flex-shrink
|
|
1062
|
+
case 5548:
|
|
1063
|
+
return O + e + V + k(e, "shrink", "negative") + e;
|
|
1064
|
+
// flex-basis
|
|
1065
|
+
case 5292:
|
|
1066
|
+
return O + e + V + k(e, "basis", "preferred-size") + e;
|
|
1067
|
+
// flex-grow
|
|
1068
|
+
case 6060:
|
|
1069
|
+
return O + "box-" + k(e, "-grow", "") + O + e + V + k(e, "grow", "positive") + e;
|
|
1070
|
+
// transition
|
|
1071
|
+
case 4554:
|
|
1072
|
+
return O + k(e, /([^-])(transform)/g, "$1" + O + "$2") + e;
|
|
1073
|
+
// cursor
|
|
1074
|
+
case 6187:
|
|
1075
|
+
return k(k(k(e, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), e, "") + e;
|
|
1076
|
+
// background, background-image
|
|
1077
|
+
case 5495:
|
|
1078
|
+
case 3959:
|
|
1079
|
+
return k(e, /(image-set\([^]*)/, O + "$1$`$1");
|
|
1080
|
+
// justify-content
|
|
1081
|
+
case 4968:
|
|
1082
|
+
return k(k(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e;
|
|
1083
|
+
// justify-self
|
|
1084
|
+
case 4200:
|
|
1085
|
+
if (!he(e, /flex-|baseline/)) return V + "grid-column-align" + Ve(e, t) + e;
|
|
1086
|
+
break;
|
|
1087
|
+
// grid-template-(columns|rows)
|
|
1088
|
+
case 2592:
|
|
1089
|
+
case 3360:
|
|
1090
|
+
return V + k(e, "template-", "") + e;
|
|
1091
|
+
// grid-(row|column)-start
|
|
1092
|
+
case 4384:
|
|
1093
|
+
case 3616:
|
|
1094
|
+
return n && n.some(function(r, i) {
|
|
1095
|
+
return t = i, he(r.props, /grid-\w+-end/);
|
|
1096
|
+
}) ? ~at(e + (n = n[t].value), "span", 0) ? e : V + k(e, "-start", "") + e + V + "grid-row-span:" + (~at(n, "span", 0) ? he(n, /\d+/) : +he(n, /\d+/) - +he(e, /\d+/)) + ";" : V + k(e, "-start", "") + e;
|
|
1097
|
+
// grid-(row|column)-end
|
|
1098
|
+
case 4896:
|
|
1099
|
+
case 4128:
|
|
1100
|
+
return n && n.some(function(r) {
|
|
1101
|
+
return he(r.props, /grid-\w+-start/);
|
|
1102
|
+
}) ? e : V + k(k(e, "-end", "-span"), "span ", "") + e;
|
|
1103
|
+
// (margin|padding)-inline-(start|end)
|
|
1104
|
+
case 4095:
|
|
1105
|
+
case 3583:
|
|
1106
|
+
case 4068:
|
|
1107
|
+
case 2532:
|
|
1108
|
+
return k(e, /(.+)-inline(.+)/, O + "$1$2") + e;
|
|
1109
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
1110
|
+
case 8116:
|
|
1111
|
+
case 7059:
|
|
1112
|
+
case 5753:
|
|
1113
|
+
case 5535:
|
|
1114
|
+
case 5445:
|
|
1115
|
+
case 5701:
|
|
1116
|
+
case 4933:
|
|
1117
|
+
case 4677:
|
|
1118
|
+
case 5533:
|
|
1119
|
+
case 5789:
|
|
1120
|
+
case 5021:
|
|
1121
|
+
case 4765:
|
|
1122
|
+
if (de(e) - 1 - t > 6)
|
|
1123
|
+
switch (z(e, t + 1)) {
|
|
1124
|
+
// (m)ax-content, (m)in-content
|
|
1125
|
+
case 109:
|
|
1126
|
+
if (z(e, t + 4) !== 45)
|
|
1127
|
+
break;
|
|
1128
|
+
// (f)ill-available, (f)it-content
|
|
1129
|
+
case 102:
|
|
1130
|
+
return k(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + Ke + (z(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1131
|
+
// (s)tretch
|
|
1132
|
+
case 115:
|
|
1133
|
+
return ~at(e, "stretch", 0) ? Gn(k(e, "stretch", "fill-available"), t, n) + e : e;
|
|
1134
|
+
}
|
|
1135
|
+
break;
|
|
1136
|
+
// grid-(column|row)
|
|
1137
|
+
case 5152:
|
|
1138
|
+
case 5920:
|
|
1139
|
+
return k(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, i, a, l, u, c, d) {
|
|
1140
|
+
return V + i + ":" + a + d + (l ? V + i + "-span:" + (u ? c : +c - +a) + d : "") + e;
|
|
1141
|
+
});
|
|
1142
|
+
// position: sticky
|
|
1143
|
+
case 4949:
|
|
1144
|
+
if (z(e, t + 6) === 121)
|
|
1145
|
+
return k(e, ":", ":" + O) + e;
|
|
1146
|
+
break;
|
|
1147
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
1148
|
+
case 6444:
|
|
1149
|
+
switch (z(e, z(e, 14) === 45 ? 18 : 11)) {
|
|
1150
|
+
// (inline-)?fle(x)
|
|
1151
|
+
case 120:
|
|
1152
|
+
return k(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (z(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + V + "$2box$3") + e;
|
|
1153
|
+
// (inline-)?gri(d)
|
|
1154
|
+
case 100:
|
|
1155
|
+
return k(e, ":", ":" + V) + e;
|
|
1156
|
+
}
|
|
1157
|
+
break;
|
|
1158
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
1159
|
+
case 5719:
|
|
1160
|
+
case 2647:
|
|
1161
|
+
case 2135:
|
|
1162
|
+
case 3927:
|
|
1163
|
+
case 2391:
|
|
1164
|
+
return k(e, "scroll-", "scroll-snap-") + e;
|
|
1165
|
+
}
|
|
1166
|
+
return e;
|
|
1167
|
+
}
|
|
1168
|
+
function ft(e, t) {
|
|
1169
|
+
for (var n = "", r = 0; r < e.length; r++)
|
|
1170
|
+
n += t(e[r], r, e, t) || "";
|
|
1171
|
+
return n;
|
|
1172
|
+
}
|
|
1173
|
+
function Uo(e, t, n, r) {
|
|
1174
|
+
switch (e.type) {
|
|
1175
|
+
case _o:
|
|
1176
|
+
if (e.children.length) break;
|
|
1177
|
+
case Lo:
|
|
1178
|
+
case Gt:
|
|
1179
|
+
return e.return = e.return || e.value;
|
|
1180
|
+
case Bn:
|
|
1181
|
+
return "";
|
|
1182
|
+
case Un:
|
|
1183
|
+
return e.return = e.value + "{" + ft(e.children, r) + "}";
|
|
1184
|
+
case bt:
|
|
1185
|
+
if (!de(e.value = e.props.join(","))) return "";
|
|
1186
|
+
}
|
|
1187
|
+
return de(n = ft(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
1188
|
+
}
|
|
1189
|
+
function Wo(e) {
|
|
1190
|
+
var t = qn(e);
|
|
1191
|
+
return function(n, r, i, a) {
|
|
1192
|
+
for (var l = "", u = 0; u < t; u++)
|
|
1193
|
+
l += e[u](n, r, i, a) || "";
|
|
1194
|
+
return l;
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
function Yo(e) {
|
|
1198
|
+
return function(t) {
|
|
1199
|
+
t.root || (t = t.return) && e(t);
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
function qo(e, t, n, r) {
|
|
1203
|
+
if (e.length > -1 && !e.return)
|
|
1204
|
+
switch (e.type) {
|
|
1205
|
+
case Gt:
|
|
1206
|
+
e.return = Gn(e.value, e.length, n);
|
|
1207
|
+
return;
|
|
1208
|
+
case Un:
|
|
1209
|
+
return ft([we(e, { value: k(e.value, "@", "@" + O) })], r);
|
|
1210
|
+
case bt:
|
|
1211
|
+
if (e.length)
|
|
1212
|
+
return Do(n = e.props, function(i) {
|
|
1213
|
+
switch (he(i, r = /(::plac\w+|:read-\w+)/)) {
|
|
1214
|
+
// :read-(only|write)
|
|
1215
|
+
case ":read-only":
|
|
1216
|
+
case ":read-write":
|
|
1217
|
+
Me(we(e, { props: [k(i, /:(read-\w+)/, ":" + Ke + "$1")] })), Me(we(e, { props: [i] })), Ft(e, { props: wn(n, r) });
|
|
1218
|
+
break;
|
|
1219
|
+
// :placeholder
|
|
1220
|
+
case "::placeholder":
|
|
1221
|
+
Me(we(e, { props: [k(i, /:(plac\w+)/, ":" + O + "input-$1")] })), Me(we(e, { props: [k(i, /:(plac\w+)/, ":" + Ke + "$1")] })), Me(we(e, { props: [k(i, /:(plac\w+)/, V + "input-$1")] })), Me(we(e, { props: [i] })), Ft(e, { props: wn(n, r) });
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
return "";
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
var Zo = {
|
|
1229
|
+
animationIterationCount: 1,
|
|
1230
|
+
aspectRatio: 1,
|
|
1231
|
+
borderImageOutset: 1,
|
|
1232
|
+
borderImageSlice: 1,
|
|
1233
|
+
borderImageWidth: 1,
|
|
1234
|
+
boxFlex: 1,
|
|
1235
|
+
boxFlexGroup: 1,
|
|
1236
|
+
boxOrdinalGroup: 1,
|
|
1237
|
+
columnCount: 1,
|
|
1238
|
+
columns: 1,
|
|
1239
|
+
flex: 1,
|
|
1240
|
+
flexGrow: 1,
|
|
1241
|
+
flexPositive: 1,
|
|
1242
|
+
flexShrink: 1,
|
|
1243
|
+
flexNegative: 1,
|
|
1244
|
+
flexOrder: 1,
|
|
1245
|
+
gridRow: 1,
|
|
1246
|
+
gridRowEnd: 1,
|
|
1247
|
+
gridRowSpan: 1,
|
|
1248
|
+
gridRowStart: 1,
|
|
1249
|
+
gridColumn: 1,
|
|
1250
|
+
gridColumnEnd: 1,
|
|
1251
|
+
gridColumnSpan: 1,
|
|
1252
|
+
gridColumnStart: 1,
|
|
1253
|
+
msGridRow: 1,
|
|
1254
|
+
msGridRowSpan: 1,
|
|
1255
|
+
msGridColumn: 1,
|
|
1256
|
+
msGridColumnSpan: 1,
|
|
1257
|
+
fontWeight: 1,
|
|
1258
|
+
lineHeight: 1,
|
|
1259
|
+
opacity: 1,
|
|
1260
|
+
order: 1,
|
|
1261
|
+
orphans: 1,
|
|
1262
|
+
tabSize: 1,
|
|
1263
|
+
widows: 1,
|
|
1264
|
+
zIndex: 1,
|
|
1265
|
+
zoom: 1,
|
|
1266
|
+
WebkitLineClamp: 1,
|
|
1267
|
+
// SVG-related properties
|
|
1268
|
+
fillOpacity: 1,
|
|
1269
|
+
floodOpacity: 1,
|
|
1270
|
+
stopOpacity: 1,
|
|
1271
|
+
strokeDasharray: 1,
|
|
1272
|
+
strokeDashoffset: 1,
|
|
1273
|
+
strokeMiterlimit: 1,
|
|
1274
|
+
strokeOpacity: 1,
|
|
1275
|
+
strokeWidth: 1
|
|
1276
|
+
}, Le = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Xn = "active", Jn = "data-styled-version", kt = "6.1.19", Jt = `/*!sc*/
|
|
1277
|
+
`, pt = typeof window < "u" && typeof document < "u", Go = !!(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
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1279
|
+
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
1280
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
1281
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
1282
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
1283
|
+
`, i = console.error;
|
|
1284
|
+
try {
|
|
1285
|
+
var a = !0;
|
|
1286
|
+
console.error = function(l) {
|
|
1287
|
+
for (var u = [], c = 1; c < arguments.length; c++) u[c - 1] = arguments[c];
|
|
1288
|
+
Sn.test(l) ? (a = !1, rt.delete(r)) : i.apply(void 0, je([l], u, !1));
|
|
1289
|
+
}, Y(), a && !rt.has(r) && (console.warn(r), rt.add(r));
|
|
1290
|
+
} catch (l) {
|
|
1291
|
+
Sn.test(l.message) && rt.delete(r);
|
|
1292
|
+
} finally {
|
|
1293
|
+
console.error = i;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}, Et = Object.freeze([]), $e = Object.freeze({});
|
|
1297
|
+
function Jo(e, t, n) {
|
|
1298
|
+
return n === void 0 && (n = $e), e.theme !== n.theme && e.theme || t || n.theme;
|
|
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"]), Ko = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Qo = /(^-|-$)/g;
|
|
1301
|
+
function Cn(e) {
|
|
1302
|
+
return e.replace(Ko, "-").replace(Qo, "");
|
|
1303
|
+
}
|
|
1304
|
+
var ei = /(a)(d)/gi, ot = 52, kn = function(e) {
|
|
1305
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1306
|
+
};
|
|
1307
|
+
function $t(e) {
|
|
1308
|
+
var t, n = "";
|
|
1309
|
+
for (t = Math.abs(e); t > ot; t = t / ot | 0) n = kn(t % ot) + n;
|
|
1310
|
+
return (kn(t % ot) + n).replace(ei, "$1-$2");
|
|
1311
|
+
}
|
|
1312
|
+
var Dt, Kn = 5381, ke = function(e, t) {
|
|
1313
|
+
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
1314
|
+
return e;
|
|
1315
|
+
}, Qn = function(e) {
|
|
1316
|
+
return ke(Kn, e);
|
|
1317
|
+
};
|
|
1318
|
+
function er(e) {
|
|
1319
|
+
return $t(Qn(e) >>> 0);
|
|
1320
|
+
}
|
|
1321
|
+
function tr(e) {
|
|
1322
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1323
|
+
}
|
|
1324
|
+
function At(e) {
|
|
1325
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1326
|
+
}
|
|
1327
|
+
var nr = typeof Symbol == "function" && Symbol.for, rr = nr ? Symbol.for("react.memo") : 60115, ti = nr ? Symbol.for("react.forward_ref") : 60112, ni = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, ri = { 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 }, oi = ((Dt = {})[ti] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Dt[rr] = or, Dt);
|
|
1328
|
+
function En(e) {
|
|
1329
|
+
return ("type" in (t = e) && t.type.$$typeof) === rr ? or : "$$typeof" in e ? oi[e.$$typeof] : ni;
|
|
1330
|
+
var t;
|
|
1331
|
+
}
|
|
1332
|
+
var ii = Object.defineProperty, si = Object.getOwnPropertyNames, Tn = Object.getOwnPropertySymbols, ai = Object.getOwnPropertyDescriptor, ci = Object.getPrototypeOf, Pn = Object.prototype;
|
|
1333
|
+
function ir(e, t, n) {
|
|
1334
|
+
if (typeof t != "string") {
|
|
1335
|
+
if (Pn) {
|
|
1336
|
+
var r = ci(t);
|
|
1337
|
+
r && r !== Pn && ir(e, r, n);
|
|
1338
|
+
}
|
|
1339
|
+
var i = si(t);
|
|
1340
|
+
Tn && (i = i.concat(Tn(t)));
|
|
1341
|
+
for (var a = En(e), l = En(t), u = 0; u < i.length; ++u) {
|
|
1342
|
+
var c = i[u];
|
|
1343
|
+
if (!(c in ri || n && n[c] || l && c in l || a && c in a)) {
|
|
1344
|
+
var d = ai(t, c);
|
|
1345
|
+
try {
|
|
1346
|
+
ii(e, c, d);
|
|
1347
|
+
} catch {
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
return e;
|
|
1353
|
+
}
|
|
1354
|
+
function He(e) {
|
|
1355
|
+
return typeof e == "function";
|
|
1356
|
+
}
|
|
1357
|
+
function Kt(e) {
|
|
1358
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
1359
|
+
}
|
|
1360
|
+
function Ee(e, t) {
|
|
1361
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1362
|
+
}
|
|
1363
|
+
function Ht(e, t) {
|
|
1364
|
+
if (e.length === 0) return "";
|
|
1365
|
+
for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
|
|
1366
|
+
return n;
|
|
1367
|
+
}
|
|
1368
|
+
function ze(e) {
|
|
1369
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1370
|
+
}
|
|
1371
|
+
function zt(e, t, n) {
|
|
1372
|
+
if (n === void 0 && (n = !1), !n && !ze(e) && !Array.isArray(e)) return t;
|
|
1373
|
+
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = zt(e[r], t[r]);
|
|
1374
|
+
else if (ze(t)) for (var r in t) e[r] = zt(e[r], t[r]);
|
|
1375
|
+
return e;
|
|
1376
|
+
}
|
|
1377
|
+
function Qt(e, t) {
|
|
1378
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1379
|
+
}
|
|
1380
|
+
var li = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1381
|
+
|
|
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
|
+
|
|
1384
|
+
- Are you trying to reuse it across renders?
|
|
1385
|
+
- Are you accidentally calling collectStyles twice?
|
|
1386
|
+
|
|
1387
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1388
|
+
|
|
1389
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1390
|
+
|
|
1391
|
+
- Does this error occur on the client and is your target falsy?
|
|
1392
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1393
|
+
|
|
1394
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1395
|
+
|
|
1396
|
+
- Are you running in a client-like environment on the server?
|
|
1397
|
+
- Are you trying to run SSR on the client?
|
|
1398
|
+
|
|
1399
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1400
|
+
|
|
1401
|
+
- Are you using a custom target that isn't mounted?
|
|
1402
|
+
- Does your document not have a valid head element?
|
|
1403
|
+
- Have you accidentally removed a style tag manually?
|
|
1404
|
+
|
|
1405
|
+
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1406
|
+
|
|
1407
|
+
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1408
|
+
|
|
1409
|
+
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1410
|
+
|
|
1411
|
+
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s 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.
|
|
1412
|
+
|
|
1413
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1414
|
+
|
|
1415
|
+
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1416
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1417
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1418
|
+
|
|
1419
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1420
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1421
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1422
|
+
function ui() {
|
|
1423
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1424
|
+
for (var n = e[0], r = [], i = 1, a = e.length; i < a; i += 1) r.push(e[i]);
|
|
1425
|
+
return r.forEach(function(l) {
|
|
1426
|
+
n = n.replace(/%[a-z]/, l);
|
|
1427
|
+
}), n;
|
|
1428
|
+
}
|
|
1429
|
+
function We(e) {
|
|
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(ui.apply(void 0, je([li[e]], t, !1)).trim());
|
|
1432
|
+
}
|
|
1433
|
+
var di = (function() {
|
|
1434
|
+
function e(t) {
|
|
1435
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1436
|
+
}
|
|
1437
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1438
|
+
for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
|
|
1439
|
+
return n;
|
|
1440
|
+
}, e.prototype.insertRules = function(t, n) {
|
|
1441
|
+
if (t >= this.groupSizes.length) {
|
|
1442
|
+
for (var r = this.groupSizes, i = r.length, a = i; 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 l = i; l < a; l++) this.groupSizes[l] = 0;
|
|
1445
|
+
}
|
|
1446
|
+
for (var u = this.indexOfGroup(t + 1), c = (l = 0, n.length); l < c; l++) this.tag.insertRule(u, n[l]) && (this.groupSizes[t]++, u++);
|
|
1447
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1448
|
+
if (t < this.length) {
|
|
1449
|
+
var n = this.groupSizes[t], r = this.indexOfGroup(t), i = r + n;
|
|
1450
|
+
this.groupSizes[t] = 0;
|
|
1451
|
+
for (var a = r; a < i; a++) this.tag.deleteRule(r);
|
|
1452
|
+
}
|
|
1453
|
+
}, e.prototype.getGroup = function(t) {
|
|
1454
|
+
var n = "";
|
|
1455
|
+
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
1456
|
+
for (var r = this.groupSizes[t], i = this.indexOfGroup(t), a = i + r, l = i; l < a; l++) n += "".concat(this.tag.getRule(l)).concat(Jt);
|
|
1457
|
+
return n;
|
|
1458
|
+
}, e;
|
|
1459
|
+
})(), fi = 1 << 30, ut = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), dt = 1, it = function(e) {
|
|
1460
|
+
if (ut.has(e)) return ut.get(e);
|
|
1461
|
+
for (; ht.has(dt); ) dt++;
|
|
1462
|
+
var t = dt++;
|
|
1463
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > fi)) throw We(16, "".concat(t));
|
|
1464
|
+
return ut.set(e, t), ht.set(t, e), t;
|
|
1465
|
+
}, pi = function(e, t) {
|
|
1466
|
+
dt = t + 1, ut.set(e, t), ht.set(t, e);
|
|
1467
|
+
}, hi = "style[".concat(Le, "][").concat(Jn, '="').concat(kt, '"]'), mi = new RegExp("^".concat(Le, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), gi = function(e, t, n) {
|
|
1468
|
+
for (var r, i = n.split(","), a = 0, l = i.length; a < l; a++) (r = i[a]) && e.registerName(t, r);
|
|
1469
|
+
}, yi = function(e, t) {
|
|
1470
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Jt), i = [], a = 0, l = r.length; a < l; a++) {
|
|
1471
|
+
var u = r[a].trim();
|
|
1472
|
+
if (u) {
|
|
1473
|
+
var c = u.match(mi);
|
|
1474
|
+
if (c) {
|
|
1475
|
+
var d = 0 | parseInt(c[1], 10), p = c[2];
|
|
1476
|
+
d !== 0 && (pi(p, d), gi(e, p, c[3]), e.getTag().insertRules(d, i)), i.length = 0;
|
|
1477
|
+
} else i.push(u);
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
}, Rn = function(e) {
|
|
1481
|
+
for (var t = document.querySelectorAll(hi), n = 0, r = t.length; n < r; n++) {
|
|
1482
|
+
var i = t[n];
|
|
1483
|
+
i && i.getAttribute(Le) !== Xn && (yi(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
1484
|
+
}
|
|
681
1485
|
};
|
|
682
|
-
function
|
|
1486
|
+
function vi() {
|
|
1487
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1488
|
+
}
|
|
1489
|
+
var sr = function(e) {
|
|
1490
|
+
var t = document.head, n = e || t, r = document.createElement("style"), i = (function(u) {
|
|
1491
|
+
var c = Array.from(u.querySelectorAll("style[".concat(Le, "]")));
|
|
1492
|
+
return c[c.length - 1];
|
|
1493
|
+
})(n), a = i !== void 0 ? i.nextSibling : null;
|
|
1494
|
+
r.setAttribute(Le, Xn), r.setAttribute(Jn, kt);
|
|
1495
|
+
var l = vi();
|
|
1496
|
+
return l && r.setAttribute("nonce", l), n.insertBefore(r, a), r;
|
|
1497
|
+
}, wi = (function() {
|
|
1498
|
+
function e(t) {
|
|
1499
|
+
this.element = sr(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
|
|
1500
|
+
if (n.sheet) return n.sheet;
|
|
1501
|
+
for (var r = document.styleSheets, i = 0, a = r.length; i < a; i++) {
|
|
1502
|
+
var l = r[i];
|
|
1503
|
+
if (l.ownerNode === n) return l;
|
|
1504
|
+
}
|
|
1505
|
+
throw We(17);
|
|
1506
|
+
})(this.element), this.length = 0;
|
|
1507
|
+
}
|
|
1508
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1509
|
+
try {
|
|
1510
|
+
return this.sheet.insertRule(n, t), this.length++, !0;
|
|
1511
|
+
} catch {
|
|
1512
|
+
return !1;
|
|
1513
|
+
}
|
|
1514
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1515
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1516
|
+
}, e.prototype.getRule = function(t) {
|
|
1517
|
+
var n = this.sheet.cssRules[t];
|
|
1518
|
+
return n && n.cssText ? n.cssText : "";
|
|
1519
|
+
}, e;
|
|
1520
|
+
})(), bi = (function() {
|
|
1521
|
+
function e(t) {
|
|
1522
|
+
this.element = sr(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1523
|
+
}
|
|
1524
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1525
|
+
if (t <= this.length && t >= 0) {
|
|
1526
|
+
var r = document.createTextNode(n);
|
|
1527
|
+
return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
|
|
1528
|
+
}
|
|
1529
|
+
return !1;
|
|
1530
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1531
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1532
|
+
}, e.prototype.getRule = function(t) {
|
|
1533
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1534
|
+
}, e;
|
|
1535
|
+
})(), xi = (function() {
|
|
1536
|
+
function e(t) {
|
|
1537
|
+
this.rules = [], this.length = 0;
|
|
1538
|
+
}
|
|
1539
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1540
|
+
return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
|
|
1541
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1542
|
+
this.rules.splice(t, 1), this.length--;
|
|
1543
|
+
}, e.prototype.getRule = function(t) {
|
|
1544
|
+
return t < this.length ? this.rules[t] : "";
|
|
1545
|
+
}, e;
|
|
1546
|
+
})(), jn = pt, Si = { isServer: !pt, useCSSOMInjection: !Go }, ar = (function() {
|
|
1547
|
+
function e(t, n, r) {
|
|
1548
|
+
t === void 0 && (t = $e), n === void 0 && (n = {});
|
|
1549
|
+
var i = this;
|
|
1550
|
+
this.options = ee(ee({}, Si), 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 l = a.getTag(), u = l.length, c = "", d = function(m) {
|
|
1553
|
+
var w = (function(P) {
|
|
1554
|
+
return ht.get(P);
|
|
1555
|
+
})(m);
|
|
1556
|
+
if (w === void 0) return "continue";
|
|
1557
|
+
var v = a.names.get(w), T = l.getGroup(m);
|
|
1558
|
+
if (v === void 0 || !v.size || T.length === 0) return "continue";
|
|
1559
|
+
var E = "".concat(Le, ".g").concat(m, '[id="').concat(w, '"]'), M = "";
|
|
1560
|
+
v !== void 0 && v.forEach(function(P) {
|
|
1561
|
+
P.length > 0 && (M += "".concat(P, ","));
|
|
1562
|
+
}), c += "".concat(T).concat(E, '{content:"').concat(M, '"}').concat(Jt);
|
|
1563
|
+
}, p = 0; p < u; p++) d(p);
|
|
1564
|
+
return c;
|
|
1565
|
+
})(i);
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
return e.registerId = function(t) {
|
|
1569
|
+
return it(t);
|
|
1570
|
+
}, e.prototype.rehydrate = function() {
|
|
1571
|
+
!this.server && pt && Rn(this);
|
|
1572
|
+
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
1573
|
+
return n === void 0 && (n = !0), new e(ee(ee({}, this.options), t), this.gs, n && this.names || void 0);
|
|
1574
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1575
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1576
|
+
}, e.prototype.getTag = function() {
|
|
1577
|
+
return this.tag || (this.tag = (t = (function(n) {
|
|
1578
|
+
var r = n.useCSSOMInjection, i = n.target;
|
|
1579
|
+
return n.isServer ? new xi(i) : r ? new wi(i) : new bi(i);
|
|
1580
|
+
})(this.options), new di(t)));
|
|
1581
|
+
var t;
|
|
1582
|
+
}, e.prototype.hasNameForId = function(t, n) {
|
|
1583
|
+
return this.names.has(t) && this.names.get(t).has(n);
|
|
1584
|
+
}, e.prototype.registerName = function(t, n) {
|
|
1585
|
+
if (it(t), this.names.has(t)) this.names.get(t).add(n);
|
|
1586
|
+
else {
|
|
1587
|
+
var r = /* @__PURE__ */ new Set();
|
|
1588
|
+
r.add(n), this.names.set(t, r);
|
|
1589
|
+
}
|
|
1590
|
+
}, e.prototype.insertRules = function(t, n, r) {
|
|
1591
|
+
this.registerName(t, n), this.getTag().insertRules(it(t), r);
|
|
1592
|
+
}, e.prototype.clearNames = function(t) {
|
|
1593
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1594
|
+
}, e.prototype.clearRules = function(t) {
|
|
1595
|
+
this.getTag().clearGroup(it(t)), this.clearNames(t);
|
|
1596
|
+
}, e.prototype.clearTag = function() {
|
|
1597
|
+
this.tag = void 0;
|
|
1598
|
+
}, e;
|
|
1599
|
+
})(), Ci = /&/g, ki = /^\s*\/\/.*$/gm;
|
|
1600
|
+
function cr(e, t) {
|
|
1601
|
+
return e.map(function(n) {
|
|
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) {
|
|
1603
|
+
return "".concat(t, " ").concat(r);
|
|
1604
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = cr(n.children, t)), n;
|
|
1605
|
+
});
|
|
1606
|
+
}
|
|
1607
|
+
function Ei(e) {
|
|
1608
|
+
var t, n, r, i = $e, a = i.options, l = a === void 0 ? $e : a, u = i.plugins, c = u === void 0 ? Et : u, d = function(w, v, T) {
|
|
1609
|
+
return T.startsWith(n) && T.endsWith(n) && T.replaceAll(n, "").length > 0 ? ".".concat(t) : w;
|
|
1610
|
+
}, p = c.slice();
|
|
1611
|
+
p.push(function(w) {
|
|
1612
|
+
w.type === bt && w.value.includes("&") && (w.props[0] = w.props[0].replace(Ci, n).replace(r, d));
|
|
1613
|
+
}), l.prefix && p.push(qo), p.push(Uo);
|
|
1614
|
+
var m = function(w, v, T, E) {
|
|
1615
|
+
v === void 0 && (v = ""), T === void 0 && (T = ""), E === void 0 && (E = "&"), t = E, n = v, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1616
|
+
var M = w.replace(ki, ""), P = zo(T || v ? "".concat(T, " ").concat(v, " { ").concat(M, " }") : M);
|
|
1617
|
+
l.namespace && (P = cr(P, l.namespace));
|
|
1618
|
+
var b = [];
|
|
1619
|
+
return ft(P, Wo(p.concat(Yo(function(h) {
|
|
1620
|
+
return b.push(h);
|
|
1621
|
+
})))), b;
|
|
1622
|
+
};
|
|
1623
|
+
return m.hash = c.length ? c.reduce(function(w, v) {
|
|
1624
|
+
return v.name || We(15), ke(w, v.name);
|
|
1625
|
+
}, Kn).toString() : "", m;
|
|
1626
|
+
}
|
|
1627
|
+
var Ti = new ar(), Bt = Ei(), lr = Re.createContext({ shouldForwardProp: void 0, styleSheet: Ti, stylis: Bt });
|
|
1628
|
+
lr.Consumer;
|
|
1629
|
+
Re.createContext(void 0);
|
|
1630
|
+
function Ln() {
|
|
1631
|
+
return Zt(lr);
|
|
1632
|
+
}
|
|
1633
|
+
var Ut = (function() {
|
|
1634
|
+
function e(t, n) {
|
|
1635
|
+
var r = this;
|
|
1636
|
+
this.inject = function(i, a) {
|
|
1637
|
+
a === void 0 && (a = Bt);
|
|
1638
|
+
var l = r.name + a.hash;
|
|
1639
|
+
i.hasNameForId(r.id, l) || i.insertRules(r.id, l, a(r.rules, l, "@keyframes"));
|
|
1640
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Qt(this, function() {
|
|
1641
|
+
throw We(12, String(r.name));
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
return e.prototype.getName = function(t) {
|
|
1645
|
+
return t === void 0 && (t = Bt), this.name + t.hash;
|
|
1646
|
+
}, e;
|
|
1647
|
+
})(), Pi = function(e) {
|
|
1648
|
+
return e >= "A" && e <= "Z";
|
|
1649
|
+
};
|
|
1650
|
+
function _n(e) {
|
|
1651
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
1652
|
+
var r = e[n];
|
|
1653
|
+
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
1654
|
+
Pi(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
1655
|
+
}
|
|
1656
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1657
|
+
}
|
|
1658
|
+
var ur = function(e) {
|
|
1659
|
+
return e == null || e === !1 || e === "";
|
|
1660
|
+
}, dr = function(e) {
|
|
1661
|
+
var t, n, r = [];
|
|
1662
|
+
for (var i in e) {
|
|
1663
|
+
var a = e[i];
|
|
1664
|
+
e.hasOwnProperty(i) && !ur(a) && (Array.isArray(a) && a.isCss || He(a) ? r.push("".concat(_n(i), ":"), a, ";") : ze(a) ? r.push.apply(r, je(je(["".concat(i, " {")], dr(a), !1), ["}"], !1)) : r.push("".concat(_n(i), ": ").concat((t = i, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Zo || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
1665
|
+
}
|
|
1666
|
+
return r;
|
|
1667
|
+
};
|
|
1668
|
+
function Pe(e, t, n, r) {
|
|
1669
|
+
if (ur(e)) return [];
|
|
1670
|
+
if (Kt(e)) return [".".concat(e.styledComponentId)];
|
|
1671
|
+
if (He(e)) {
|
|
1672
|
+
if (!He(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
|
|
1673
|
+
var i = e(t);
|
|
1674
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Ut || ze(i) || i === 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.")), Pe(i, t, n, r);
|
|
1675
|
+
}
|
|
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(Et, e.map(function(l) {
|
|
1678
|
+
return Pe(l, t, n, r);
|
|
1679
|
+
})) : [e.toString()];
|
|
1680
|
+
}
|
|
1681
|
+
function Ri(e) {
|
|
1682
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1683
|
+
var n = e[t];
|
|
1684
|
+
if (He(n) && !Kt(n)) return !1;
|
|
1685
|
+
}
|
|
1686
|
+
return !0;
|
|
1687
|
+
}
|
|
1688
|
+
var ji = Qn(kt), Li = (function() {
|
|
1689
|
+
function e(t, n, r) {
|
|
1690
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Ri(t), this.componentId = n, this.baseHash = ke(ji, n), this.baseStyle = r, ar.registerId(n);
|
|
1691
|
+
}
|
|
1692
|
+
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
1693
|
+
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
1694
|
+
if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) i = Ee(i, this.staticRulesId);
|
|
1695
|
+
else {
|
|
1696
|
+
var a = Ht(Pe(this.rules, t, n, r)), l = $t(ke(this.baseHash, a) >>> 0);
|
|
1697
|
+
if (!n.hasNameForId(this.componentId, l)) {
|
|
1698
|
+
var u = r(a, ".".concat(l), void 0, this.componentId);
|
|
1699
|
+
n.insertRules(this.componentId, l, u);
|
|
1700
|
+
}
|
|
1701
|
+
i = Ee(i, l), this.staticRulesId = l;
|
|
1702
|
+
}
|
|
1703
|
+
else {
|
|
1704
|
+
for (var c = ke(this.baseHash, r.hash), d = "", p = 0; p < this.rules.length; p++) {
|
|
1705
|
+
var m = this.rules[p];
|
|
1706
|
+
if (typeof m == "string") d += m, process.env.NODE_ENV !== "production" && (c = ke(c, m));
|
|
1707
|
+
else if (m) {
|
|
1708
|
+
var w = Ht(Pe(m, t, n, r));
|
|
1709
|
+
c = ke(c, w + p), d += w;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
if (d) {
|
|
1713
|
+
var v = $t(c >>> 0);
|
|
1714
|
+
n.hasNameForId(this.componentId, v) || n.insertRules(this.componentId, v, r(d, ".".concat(v), void 0, this.componentId)), i = Ee(i, v);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
return i;
|
|
1718
|
+
}, e;
|
|
1719
|
+
})(), fr = Re.createContext(void 0);
|
|
1720
|
+
fr.Consumer;
|
|
1721
|
+
var Ot = {}, In = /* @__PURE__ */ new Set();
|
|
1722
|
+
function _i(e, t, n) {
|
|
1723
|
+
var r = Kt(e), i = e, a = !At(e), l = t.attrs, u = l === void 0 ? Et : l, c = t.componentId, d = c === void 0 ? (function(L, D) {
|
|
1724
|
+
var C = typeof L != "string" ? "sc" : Cn(L);
|
|
1725
|
+
Ot[C] = (Ot[C] || 0) + 1;
|
|
1726
|
+
var x = "".concat(C, "-").concat(er(kt + C + Ot[C]));
|
|
1727
|
+
return D ? "".concat(D, "-").concat(x) : x;
|
|
1728
|
+
})(t.displayName, t.parentComponentId) : c, p = t.displayName, m = p === void 0 ? (function(L) {
|
|
1729
|
+
return At(L) ? "styled.".concat(L) : "Styled(".concat(tr(L), ")");
|
|
1730
|
+
})(e) : p, w = t.displayName && t.componentId ? "".concat(Cn(t.displayName), "-").concat(t.componentId) : t.componentId || d, v = r && i.attrs ? i.attrs.concat(u).filter(Boolean) : u, T = t.shouldForwardProp;
|
|
1731
|
+
if (r && i.shouldForwardProp) {
|
|
1732
|
+
var E = i.shouldForwardProp;
|
|
1733
|
+
if (t.shouldForwardProp) {
|
|
1734
|
+
var M = t.shouldForwardProp;
|
|
1735
|
+
T = function(L, D) {
|
|
1736
|
+
return E(L, D) && M(L, D);
|
|
1737
|
+
};
|
|
1738
|
+
} else T = E;
|
|
1739
|
+
}
|
|
1740
|
+
var P = new Li(n, w, r ? i.componentStyle : void 0);
|
|
1741
|
+
function b(L, D) {
|
|
1742
|
+
return (function(C, x, U) {
|
|
1743
|
+
var J = C.attrs, I = C.componentStyle, _e = C.defaultProps, fe = C.foldedComponentIds, q = C.styledComponentId, ne = C.target, ue = Re.useContext(fr), xe = Ln(), K = C.shouldForwardProp || xe.shouldForwardProp;
|
|
1744
|
+
process.env.NODE_ENV !== "production" && mn(q);
|
|
1745
|
+
var Ye = Jo(x, ue, _e) || $e, re = (function(De, pe, ye) {
|
|
1746
|
+
for (var se, ae = ee(ee({}, pe), { className: void 0, theme: ye }), ve = 0; ve < De.length; ve += 1) {
|
|
1747
|
+
var Ae = He(se = De[ve]) ? se(ae) : se;
|
|
1748
|
+
for (var ce in Ae) ae[ce] = ce === "className" ? Ee(ae[ce], Ae[ce]) : ce === "style" ? ee(ee({}, ae[ce]), Ae[ce]) : Ae[ce];
|
|
1749
|
+
}
|
|
1750
|
+
return pe.className && (ae.className = Ee(ae.className, pe.className)), ae;
|
|
1751
|
+
})(J, x, Ye), me = re.as || ne, ge = {};
|
|
1752
|
+
for (var Z in re) re[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && re.theme === Ye || (Z === "forwardedAs" ? ge.as = re.forwardedAs : K && !K(Z, me) || (ge[Z] = re[Z], K || process.env.NODE_ENV !== "development" || jo(Z) || In.has(Z) || !Nt.has(me) || (In.add(Z), console.warn('styled-components: it looks like an unknown prop "'.concat(Z, '" 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, pe) {
|
|
1754
|
+
var ye = Ln(), se = De.generateAndInjectStyles(pe, ye.styleSheet, ye.stylis);
|
|
1755
|
+
return process.env.NODE_ENV !== "production" && mn(se), se;
|
|
1756
|
+
})(I, re);
|
|
1757
|
+
process.env.NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(Ie);
|
|
1758
|
+
var qe = Ee(fe, q);
|
|
1759
|
+
return Ie && (qe += " " + Ie), re.className && (qe += " " + re.className), ge[At(me) && !Nt.has(me) ? "class" : "className"] = qe, U && (ge.ref = U), wo(me, ge);
|
|
1760
|
+
})(h, L, D);
|
|
1761
|
+
}
|
|
1762
|
+
b.displayName = m;
|
|
1763
|
+
var h = Re.forwardRef(b);
|
|
1764
|
+
return h.attrs = v, h.componentStyle = P, h.displayName = m, h.shouldForwardProp = T, h.foldedComponentIds = r ? Ee(i.foldedComponentIds, i.styledComponentId) : "", h.styledComponentId = w, h.target = r ? i.target : e, Object.defineProperty(h, "defaultProps", { get: function() {
|
|
1765
|
+
return this._foldedDefaultProps;
|
|
1766
|
+
}, set: function(L) {
|
|
1767
|
+
this._foldedDefaultProps = r ? (function(D) {
|
|
1768
|
+
for (var C = [], x = 1; x < arguments.length; x++) C[x - 1] = arguments[x];
|
|
1769
|
+
for (var U = 0, J = C; U < J.length; U++) zt(D, J[U], !0);
|
|
1770
|
+
return D;
|
|
1771
|
+
})({}, i.defaultProps, L) : L;
|
|
1772
|
+
} }), process.env.NODE_ENV !== "production" && (Xo(m, w), h.warnTooManyClasses = /* @__PURE__ */ (function(L, D) {
|
|
1773
|
+
var C = {}, x = !1;
|
|
1774
|
+
return function(U) {
|
|
1775
|
+
if (!x && (C[U] = !0, Object.keys(C).length >= 200)) {
|
|
1776
|
+
var J = D ? ' with the id of "'.concat(D, '"') : "";
|
|
1777
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(L).concat(J, `.
|
|
1778
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1779
|
+
Example:
|
|
1780
|
+
const Component = styled.div.attrs(props => ({
|
|
1781
|
+
style: {
|
|
1782
|
+
background: props.background,
|
|
1783
|
+
},
|
|
1784
|
+
}))\`width: 100%;\`
|
|
1785
|
+
|
|
1786
|
+
<Component />`), x = !0, C = {};
|
|
1787
|
+
}
|
|
1788
|
+
};
|
|
1789
|
+
})(m, w)), Qt(h, function() {
|
|
1790
|
+
return ".".concat(h.styledComponentId);
|
|
1791
|
+
}), a && ir(h, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), h;
|
|
1792
|
+
}
|
|
1793
|
+
function Dn(e, t) {
|
|
1794
|
+
for (var n = [e[0]], r = 0, i = t.length; r < i; r += 1) n.push(t[r], e[r + 1]);
|
|
1795
|
+
return n;
|
|
1796
|
+
}
|
|
1797
|
+
var An = function(e) {
|
|
1798
|
+
return Object.assign(e, { isCss: !0 });
|
|
1799
|
+
};
|
|
1800
|
+
function mt(e) {
|
|
1801
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1802
|
+
if (He(e) || ze(e)) return An(Pe(Dn(Et, je([e], t, !0))));
|
|
1803
|
+
var r = e;
|
|
1804
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? Pe(r) : An(Pe(Dn(r, t)));
|
|
1805
|
+
}
|
|
1806
|
+
function Wt(e, t, n) {
|
|
1807
|
+
if (n === void 0 && (n = $e), !t) throw We(1, t);
|
|
1808
|
+
var r = function(i) {
|
|
1809
|
+
for (var a = [], l = 1; l < arguments.length; l++) a[l - 1] = arguments[l];
|
|
1810
|
+
return e(t, n, mt.apply(void 0, je([i], a, !1)));
|
|
1811
|
+
};
|
|
1812
|
+
return r.attrs = function(i) {
|
|
1813
|
+
return Wt(e, t, ee(ee({}, n), { attrs: Array.prototype.concat(n.attrs, i).filter(Boolean) }));
|
|
1814
|
+
}, r.withConfig = function(i) {
|
|
1815
|
+
return Wt(e, t, ee(ee({}, n), i));
|
|
1816
|
+
}, r;
|
|
1817
|
+
}
|
|
1818
|
+
var pr = function(e) {
|
|
1819
|
+
return Wt(_i, e);
|
|
1820
|
+
}, _ = pr;
|
|
1821
|
+
Nt.forEach(function(e) {
|
|
1822
|
+
_[e] = pr(e);
|
|
1823
|
+
});
|
|
1824
|
+
function Ii(e) {
|
|
1825
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
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 = Ht(mt.apply(void 0, je([e], t, !1))), i = er(r);
|
|
1828
|
+
return new Ut(i, r);
|
|
1829
|
+
}
|
|
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
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1832
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1833
|
+
var st = "__sc-".concat(Le, "__");
|
|
1834
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[st] || (window[st] = 0), window[st] === 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
|
+
|
|
1836
|
+
See https://s-c.sh/2BAXzed for more info.`), window[st] += 1);
|
|
1837
|
+
function Di({
|
|
683
1838
|
children: e,
|
|
684
|
-
eventFinishedMessage:
|
|
685
|
-
eventNotStartedMessage:
|
|
686
|
-
eventStartingSoonMessage:
|
|
1839
|
+
eventFinishedMessage: t,
|
|
1840
|
+
eventNotStartedMessage: n,
|
|
1841
|
+
eventStartingSoonMessage: r
|
|
687
1842
|
}) {
|
|
688
|
-
const
|
|
689
|
-
return
|
|
690
|
-
|
|
1843
|
+
const i = W((d) => d.startDate), a = W((d) => d.endDate), l = Date.now(), u = l < i.getTime(), c = l > a.getTime();
|
|
1844
|
+
return ko(5e3), u ? /* @__PURE__ */ s.jsx(
|
|
1845
|
+
Ai,
|
|
691
1846
|
{
|
|
692
|
-
startDate:
|
|
693
|
-
title:
|
|
694
|
-
message:
|
|
1847
|
+
startDate: i,
|
|
1848
|
+
title: n || "Event has not started yet.",
|
|
1849
|
+
message: r || "Starting in few seconds..."
|
|
695
1850
|
}
|
|
696
|
-
) :
|
|
1851
|
+
) : c ? /* @__PURE__ */ s.jsx(Oi, { title: t || "Event has finished." }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e });
|
|
697
1852
|
}
|
|
698
|
-
function
|
|
699
|
-
const
|
|
700
|
-
|
|
1853
|
+
function Ai({ startDate: e, title: t, message: n }) {
|
|
1854
|
+
const r = e.getTime() - Date.now(), i = Math.floor(r / (1e3 * 60 * 60)), a = Math.floor(
|
|
1855
|
+
r % (1e3 * 60 * 60) / (1e3 * 60)
|
|
701
1856
|
);
|
|
702
|
-
return
|
|
703
|
-
/* @__PURE__ */
|
|
704
|
-
/* @__PURE__ */
|
|
1857
|
+
return i || a ? /* @__PURE__ */ s.jsxs(Yt, { children: [
|
|
1858
|
+
/* @__PURE__ */ s.jsx(qt, { children: t }),
|
|
1859
|
+
/* @__PURE__ */ s.jsxs(Fi, { children: [
|
|
705
1860
|
"(",
|
|
706
|
-
|
|
1861
|
+
i > 0 ? `${i}h ${a}m` : `${a}m`,
|
|
707
1862
|
")"
|
|
708
1863
|
] })
|
|
709
|
-
] }) : /* @__PURE__ */
|
|
1864
|
+
] }) : /* @__PURE__ */ s.jsx(Yt, { children: /* @__PURE__ */ s.jsx(qt, { children: n }) });
|
|
710
1865
|
}
|
|
711
|
-
function
|
|
712
|
-
return /* @__PURE__ */
|
|
1866
|
+
function Oi({ title: e }) {
|
|
1867
|
+
return /* @__PURE__ */ s.jsx(Yt, { children: /* @__PURE__ */ s.jsx(qt, { children: e }) });
|
|
713
1868
|
}
|
|
714
|
-
const
|
|
1869
|
+
const Yt = _.div`
|
|
715
1870
|
position: absolute;
|
|
716
1871
|
top: 0;
|
|
717
1872
|
left: 0;
|
|
@@ -724,14 +1879,14 @@ const Ee = b.div`
|
|
|
724
1879
|
justify-content: center;
|
|
725
1880
|
color: black;
|
|
726
1881
|
background: #f7e406;
|
|
727
|
-
`,
|
|
1882
|
+
`, qt = _.h3`
|
|
728
1883
|
margin: 0;
|
|
729
1884
|
padding: 0.5rem 0;
|
|
730
1885
|
font-size: 1.5rem;
|
|
731
1886
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
732
1887
|
"Helvetica Neue", Arial, sans-serif;
|
|
733
1888
|
font-weight: 500;
|
|
734
|
-
`,
|
|
1889
|
+
`, Fi = _.p`
|
|
735
1890
|
margin: 0;
|
|
736
1891
|
height: 1.25rem;
|
|
737
1892
|
font-size: 1rem;
|
|
@@ -739,22 +1894,22 @@ const Ee = b.div`
|
|
|
739
1894
|
"Helvetica Neue", Arial, sans-serif;
|
|
740
1895
|
font-weight: 500;
|
|
741
1896
|
`;
|
|
742
|
-
function
|
|
743
|
-
return /* @__PURE__ */
|
|
1897
|
+
function Mi() {
|
|
1898
|
+
return /* @__PURE__ */ s.jsx(
|
|
744
1899
|
"svg",
|
|
745
1900
|
{
|
|
746
1901
|
xmlns: "http://www.w3.org/2000/svg",
|
|
747
1902
|
viewBox: "0 0 24 24",
|
|
748
1903
|
fill: "currentColor",
|
|
749
|
-
children: /* @__PURE__ */
|
|
1904
|
+
children: /* @__PURE__ */ s.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" })
|
|
750
1905
|
}
|
|
751
1906
|
);
|
|
752
1907
|
}
|
|
753
|
-
const
|
|
754
|
-
({ shape: e = "circle", ...
|
|
1908
|
+
const be = yt(
|
|
1909
|
+
({ shape: e = "circle", ...t }, n) => /* @__PURE__ */ s.jsx(Vi, { ref: n, $shape: e, ...t })
|
|
755
1910
|
);
|
|
756
|
-
|
|
757
|
-
const
|
|
1911
|
+
be.displayName = "PlayerButton";
|
|
1912
|
+
const Vi = _.button`
|
|
758
1913
|
margin: 0;
|
|
759
1914
|
display: flex;
|
|
760
1915
|
align-items: center;
|
|
@@ -792,83 +1947,83 @@ const In = b.button`
|
|
|
792
1947
|
cursor: not-allowed;
|
|
793
1948
|
}
|
|
794
1949
|
|
|
795
|
-
${({ $shape: e }) => e === "circle" &&
|
|
1950
|
+
${({ $shape: e }) => e === "circle" && mt`
|
|
796
1951
|
padding: 0;
|
|
797
1952
|
width: 2rem;
|
|
798
1953
|
height: 2rem;
|
|
799
1954
|
`}
|
|
800
1955
|
|
|
801
|
-
${({ $shape: e }) => e === "square" &&
|
|
1956
|
+
${({ $shape: e }) => e === "square" && mt`
|
|
802
1957
|
padding: 0.25rem 0.5rem;
|
|
803
1958
|
`}
|
|
804
1959
|
`;
|
|
805
|
-
function
|
|
806
|
-
const
|
|
807
|
-
return
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
1960
|
+
function Ni({ message: e, ...t }) {
|
|
1961
|
+
const n = W((a) => a.delay), r = W((a) => a.setDelay), i = () => r(0);
|
|
1962
|
+
return n ? /* @__PURE__ */ s.jsxs(be, { onClick: i, shape: "square", ...t, children: [
|
|
1963
|
+
/* @__PURE__ */ s.jsx("span", { children: e || "Live" }),
|
|
1964
|
+
/* @__PURE__ */ s.jsx(Mi, {})
|
|
810
1965
|
] }) : null;
|
|
811
1966
|
}
|
|
812
|
-
function
|
|
813
|
-
return /* @__PURE__ */
|
|
1967
|
+
function hr() {
|
|
1968
|
+
return /* @__PURE__ */ s.jsx(
|
|
814
1969
|
"svg",
|
|
815
1970
|
{
|
|
816
1971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
817
1972
|
viewBox: "0 0 24 24",
|
|
818
1973
|
fill: "currentColor",
|
|
819
|
-
children: /* @__PURE__ */
|
|
1974
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
|
|
820
1975
|
}
|
|
821
1976
|
);
|
|
822
1977
|
}
|
|
823
|
-
function
|
|
824
|
-
return /* @__PURE__ */
|
|
1978
|
+
function mr() {
|
|
1979
|
+
return /* @__PURE__ */ s.jsx(
|
|
825
1980
|
"svg",
|
|
826
1981
|
{
|
|
827
1982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
828
1983
|
viewBox: "0 0 24 24",
|
|
829
1984
|
fill: "currentColor",
|
|
830
|
-
children: /* @__PURE__ */
|
|
1985
|
+
children: /* @__PURE__ */ s.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" })
|
|
831
1986
|
}
|
|
832
1987
|
);
|
|
833
1988
|
}
|
|
834
|
-
function
|
|
835
|
-
const
|
|
1989
|
+
function $i(e, t, n) {
|
|
1990
|
+
const r = {
|
|
836
1991
|
days: 86400,
|
|
837
1992
|
hours: 3600,
|
|
838
1993
|
minutes: 60,
|
|
839
1994
|
seconds: 1,
|
|
840
1995
|
milliseconds: 1e-3
|
|
841
1996
|
};
|
|
842
|
-
return e * (
|
|
1997
|
+
return e * (r[t] / r[n]);
|
|
843
1998
|
}
|
|
844
|
-
function
|
|
845
|
-
return
|
|
1999
|
+
function Hi(e) {
|
|
2000
|
+
return $i(e, "milliseconds", "seconds");
|
|
846
2001
|
}
|
|
847
|
-
const
|
|
848
|
-
const
|
|
849
|
-
return `${
|
|
2002
|
+
const Be = (e) => {
|
|
2003
|
+
const t = Math.floor(e / 60), n = Math.floor(e % 60);
|
|
2004
|
+
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
850
2005
|
};
|
|
851
|
-
function
|
|
852
|
-
const
|
|
853
|
-
return e.test(
|
|
2006
|
+
function zi(e) {
|
|
2007
|
+
const t = typeof window < "u" && window.navigator?.userAgent || "";
|
|
2008
|
+
return e.test(t);
|
|
854
2009
|
}
|
|
855
|
-
const
|
|
856
|
-
function
|
|
2010
|
+
const gr = zi(/iPhone|iPad|iPod/i);
|
|
2011
|
+
function Bi() {
|
|
857
2012
|
const e = document;
|
|
858
2013
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
859
2014
|
}
|
|
860
|
-
function
|
|
2015
|
+
function Ui(e) {
|
|
861
2016
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
862
2017
|
}
|
|
863
|
-
function
|
|
2018
|
+
function Wi(e) {
|
|
864
2019
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
865
2020
|
}
|
|
866
|
-
function
|
|
867
|
-
return e.addEventListener("fullscreenchange",
|
|
868
|
-
e.removeEventListener("fullscreenchange",
|
|
2021
|
+
function Yi(e, t) {
|
|
2022
|
+
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
2023
|
+
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
869
2024
|
};
|
|
870
2025
|
}
|
|
871
|
-
const
|
|
2026
|
+
const qi = (e, t) => ({
|
|
872
2027
|
currentTime: 0,
|
|
873
2028
|
duration: 0,
|
|
874
2029
|
isEnded: !1,
|
|
@@ -885,11 +2040,11 @@ const Bn = (e, n) => ({
|
|
|
885
2040
|
destroy: () => {
|
|
886
2041
|
},
|
|
887
2042
|
handleDurationChange: () => {
|
|
888
|
-
const
|
|
889
|
-
|
|
2043
|
+
const n = t().techRef.current;
|
|
2044
|
+
n && e({ duration: n.duration });
|
|
890
2045
|
},
|
|
891
2046
|
handleEnd: () => {
|
|
892
|
-
|
|
2047
|
+
t().techRef.current && e({
|
|
893
2048
|
isEnded: !0,
|
|
894
2049
|
isLoading: !1,
|
|
895
2050
|
isMetaLoaded: !1,
|
|
@@ -897,18 +2052,18 @@ const Bn = (e, n) => ({
|
|
|
897
2052
|
});
|
|
898
2053
|
},
|
|
899
2054
|
handleLoadedMetadata: () => {
|
|
900
|
-
const
|
|
901
|
-
|
|
902
|
-
currentTime:
|
|
903
|
-
duration:
|
|
2055
|
+
const n = t().techRef.current;
|
|
2056
|
+
n && (n.loop = t().isLoop, n.volume = n.muted ? 0 : 1, t().startTime !== -1 && (n.currentTime = t().startTime), e({
|
|
2057
|
+
currentTime: t().startTime !== -1 ? t().startTime : n.currentTime,
|
|
2058
|
+
duration: n.duration,
|
|
904
2059
|
startTime: -1,
|
|
905
2060
|
isMetaLoaded: !0,
|
|
906
|
-
volume:
|
|
2061
|
+
volume: n.muted ? 0 : 100
|
|
907
2062
|
}));
|
|
908
2063
|
},
|
|
909
2064
|
handleLoadStart: () => {
|
|
910
|
-
const
|
|
911
|
-
|
|
2065
|
+
const n = t().techRef.current;
|
|
2066
|
+
n && (e({ isReady: !0 }), n.play().then(() => {
|
|
912
2067
|
e({
|
|
913
2068
|
isEnded: !1,
|
|
914
2069
|
isLoading: !1,
|
|
@@ -917,7 +2072,7 @@ const Bn = (e, n) => ({
|
|
|
917
2072
|
pauseTime: 0
|
|
918
2073
|
});
|
|
919
2074
|
}).catch(
|
|
920
|
-
(
|
|
2075
|
+
(r) => e(() => (console.info("Player failed to autoplay", r), {
|
|
921
2076
|
isStarted: !1,
|
|
922
2077
|
isEnded: !1,
|
|
923
2078
|
isLoading: !1,
|
|
@@ -937,134 +2092,134 @@ const Bn = (e, n) => ({
|
|
|
937
2092
|
handleSeeked: () => e({ isLoading: !1 }),
|
|
938
2093
|
handleSeeking: () => e({ isLoading: !0 }),
|
|
939
2094
|
handleTimeUpdate: () => {
|
|
940
|
-
const
|
|
941
|
-
|
|
2095
|
+
const n = t().techRef.current;
|
|
2096
|
+
n && e({ currentTime: n.currentTime });
|
|
942
2097
|
},
|
|
943
2098
|
handleWaiting: () => e({ isLoading: !0 }),
|
|
944
2099
|
pause: () => {
|
|
945
|
-
const
|
|
946
|
-
|
|
2100
|
+
const n = t().techRef.current;
|
|
2101
|
+
n && (n.pause(), e({
|
|
947
2102
|
isEnded: !1,
|
|
948
2103
|
isPlaying: !1,
|
|
949
2104
|
pauseTime: Date.now()
|
|
950
2105
|
}));
|
|
951
2106
|
},
|
|
952
|
-
pauseTimeDiff: () =>
|
|
2107
|
+
pauseTimeDiff: () => Hi(Date.now() - t().pauseTime),
|
|
953
2108
|
play: () => {
|
|
954
|
-
const
|
|
955
|
-
|
|
2109
|
+
const n = t().techRef.current;
|
|
2110
|
+
n && (n.play(), e({
|
|
956
2111
|
isEnded: !1,
|
|
957
2112
|
isPlaying: !0,
|
|
958
2113
|
isStarted: !0,
|
|
959
2114
|
pauseTime: 0
|
|
960
2115
|
}));
|
|
961
2116
|
},
|
|
962
|
-
seek: (
|
|
963
|
-
const
|
|
964
|
-
|
|
2117
|
+
seek: (n) => {
|
|
2118
|
+
const r = t().techRef.current;
|
|
2119
|
+
r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
|
|
965
2120
|
seekTime: -1,
|
|
966
|
-
currentTime:
|
|
2121
|
+
currentTime: n,
|
|
967
2122
|
isStarted: !0,
|
|
968
2123
|
isEnded: !1,
|
|
969
2124
|
isPlaying: !0
|
|
970
2125
|
}));
|
|
971
2126
|
},
|
|
972
|
-
setIsLoading: (
|
|
973
|
-
setIsLoop: (
|
|
974
|
-
const
|
|
975
|
-
|
|
2127
|
+
setIsLoading: (n) => e({ isLoading: n }),
|
|
2128
|
+
setIsLoop: (n) => {
|
|
2129
|
+
const r = t().techRef.current;
|
|
2130
|
+
r && (r.loop = n, e({ isLoop: n }));
|
|
976
2131
|
},
|
|
977
|
-
setStartTime: (
|
|
978
|
-
setVolume: (
|
|
979
|
-
const
|
|
980
|
-
|
|
2132
|
+
setStartTime: (n) => e({ startTime: n }),
|
|
2133
|
+
setVolume: (n) => {
|
|
2134
|
+
const r = t().techRef.current;
|
|
2135
|
+
r && (r.muted = n === 0, r.volume = n / 100, e({ volume: n }));
|
|
981
2136
|
},
|
|
982
2137
|
stop: () => {
|
|
983
|
-
|
|
2138
|
+
t().techRef.current && e({
|
|
984
2139
|
isPlaying: !1,
|
|
985
2140
|
isLoading: !1
|
|
986
2141
|
});
|
|
987
2142
|
}
|
|
988
|
-
}),
|
|
2143
|
+
}), Zi = (e) => ({
|
|
989
2144
|
idleLocks: /* @__PURE__ */ new Set(),
|
|
990
|
-
addIdleLock: (
|
|
991
|
-
idleLocks: new Set(
|
|
2145
|
+
addIdleLock: (t) => e((n) => ({
|
|
2146
|
+
idleLocks: new Set(n.idleLocks).add(t)
|
|
992
2147
|
})),
|
|
993
|
-
removeIdleLock: (
|
|
994
|
-
const
|
|
995
|
-
return
|
|
2148
|
+
removeIdleLock: (t) => e((n) => {
|
|
2149
|
+
const r = new Set(n.idleLocks);
|
|
2150
|
+
return r.delete(t), { idleLocks: r };
|
|
996
2151
|
})
|
|
997
|
-
}),
|
|
2152
|
+
}), Gi = (e) => ({
|
|
998
2153
|
level: null,
|
|
999
2154
|
levels: null,
|
|
1000
|
-
setLevels: (
|
|
1001
|
-
setLevel: (
|
|
1002
|
-
}),
|
|
2155
|
+
setLevels: (t) => e({ levels: t }),
|
|
2156
|
+
setLevel: (t) => e({ level: t })
|
|
2157
|
+
}), Xi = (e, t) => ({
|
|
1003
2158
|
isFullscreen: !1,
|
|
1004
2159
|
isFullscreenReady: !1,
|
|
1005
2160
|
exitFullscreen: () => {
|
|
1006
|
-
|
|
2161
|
+
Wi(document), e({ isFullscreen: !1 });
|
|
1007
2162
|
},
|
|
1008
2163
|
requestFullscreen: () => {
|
|
1009
|
-
const
|
|
1010
|
-
if (!
|
|
1011
|
-
const
|
|
1012
|
-
|
|
2164
|
+
const n = t().techRef.current, r = t().containerRef.current;
|
|
2165
|
+
if (!n || !r) return;
|
|
2166
|
+
const i = gr ? n : r;
|
|
2167
|
+
i && Ui(i), e({ isFullscreen: !0 });
|
|
1013
2168
|
},
|
|
1014
|
-
setIsFullscreen: (
|
|
1015
|
-
setIsFullscreenReady: (
|
|
1016
|
-
}),
|
|
2169
|
+
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
2170
|
+
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
2171
|
+
}), Ji = (e) => () => ({
|
|
1017
2172
|
...e
|
|
1018
|
-
}),
|
|
1019
|
-
...
|
|
1020
|
-
...
|
|
1021
|
-
...
|
|
1022
|
-
...
|
|
1023
|
-
...
|
|
1024
|
-
})),
|
|
1025
|
-
function
|
|
1026
|
-
const
|
|
1027
|
-
return
|
|
1028
|
-
}
|
|
1029
|
-
const
|
|
1030
|
-
const
|
|
1031
|
-
if (!
|
|
2173
|
+
}), Ki = (e, t) => $n()((...n) => ({
|
|
2174
|
+
...qi(...n),
|
|
2175
|
+
...Zi(...n),
|
|
2176
|
+
...Xi(...n),
|
|
2177
|
+
...Gi(...n),
|
|
2178
|
+
...Ji({ techRef: e, containerRef: t })(...n)
|
|
2179
|
+
})), yr = Nn(null);
|
|
2180
|
+
function Qi({ children: e }) {
|
|
2181
|
+
const t = Y(null), n = Y(null), r = Y(null);
|
|
2182
|
+
return t.current || (t.current = Ki(n, r)), /* @__PURE__ */ s.jsx(yr.Provider, { value: t.current, children: e });
|
|
2183
|
+
}
|
|
2184
|
+
const g = (e) => {
|
|
2185
|
+
const t = Zt(yr);
|
|
2186
|
+
if (!t)
|
|
1032
2187
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1033
|
-
return
|
|
2188
|
+
return Hn(t, e);
|
|
1034
2189
|
};
|
|
1035
|
-
function
|
|
1036
|
-
const e =
|
|
1037
|
-
e ?
|
|
2190
|
+
function es() {
|
|
2191
|
+
const e = g((c) => c.isPlaying), t = g((c) => c.pause), n = g((c) => c.pauseTime), r = g((c) => c.pauseTimeDiff), i = g((c) => c.play), a = W((c) => c.delay), l = W((c) => c.setDelay), u = () => {
|
|
2192
|
+
e ? t() : (n && l(a + r()), i());
|
|
1038
2193
|
};
|
|
1039
|
-
return /* @__PURE__ */
|
|
2194
|
+
return /* @__PURE__ */ s.jsx(be, { onClick: u, children: e ? /* @__PURE__ */ s.jsx(hr, {}) : /* @__PURE__ */ s.jsx(mr, {}) });
|
|
1040
2195
|
}
|
|
1041
|
-
function
|
|
2196
|
+
function vr({
|
|
1042
2197
|
className: e,
|
|
1043
|
-
onClick:
|
|
1044
|
-
...
|
|
2198
|
+
onClick: t,
|
|
2199
|
+
...n
|
|
1045
2200
|
}) {
|
|
1046
|
-
const
|
|
1047
|
-
p() ? (d(),
|
|
1048
|
-
},
|
|
1049
|
-
|
|
1050
|
-
|
|
2201
|
+
const r = Y(null), i = g((m) => m.exitFullscreen), a = g((m) => m.isFullscreen), l = g((m) => m.requestFullscreen), u = (m) => {
|
|
2202
|
+
p() ? (d(), a ? i() : l()) : c(m);
|
|
2203
|
+
}, c = (m) => {
|
|
2204
|
+
r.current = window.setTimeout(() => {
|
|
2205
|
+
t?.(m), d();
|
|
1051
2206
|
}, 200);
|
|
1052
2207
|
}, d = () => {
|
|
1053
|
-
|
|
1054
|
-
}, p = () =>
|
|
1055
|
-
return
|
|
2208
|
+
r.current !== null && (window.clearTimeout(r.current), r.current = null);
|
|
2209
|
+
}, p = () => r.current !== null;
|
|
2210
|
+
return te(() => () => {
|
|
1056
2211
|
d();
|
|
1057
|
-
}, []), /* @__PURE__ */
|
|
1058
|
-
|
|
2212
|
+
}, []), /* @__PURE__ */ s.jsx(
|
|
2213
|
+
ts,
|
|
1059
2214
|
{
|
|
1060
|
-
onClick:
|
|
2215
|
+
onClick: u,
|
|
1061
2216
|
className: e,
|
|
1062
2217
|
"aria-label": "Player playback indicator",
|
|
1063
|
-
...
|
|
2218
|
+
...n
|
|
1064
2219
|
}
|
|
1065
2220
|
);
|
|
1066
2221
|
}
|
|
1067
|
-
const
|
|
2222
|
+
const ts = _.button`
|
|
1068
2223
|
position: absolute;
|
|
1069
2224
|
top: 0;
|
|
1070
2225
|
left: 0;
|
|
@@ -1083,17 +2238,17 @@ const Xn = b.button`
|
|
|
1083
2238
|
outline: none;
|
|
1084
2239
|
}
|
|
1085
2240
|
`;
|
|
1086
|
-
function
|
|
1087
|
-
const e =
|
|
1088
|
-
e ||
|
|
2241
|
+
function ns() {
|
|
2242
|
+
const e = g((r) => r.isPlaying), t = g((r) => r.play), n = () => {
|
|
2243
|
+
e || t();
|
|
1089
2244
|
};
|
|
1090
|
-
return /* @__PURE__ */
|
|
2245
|
+
return /* @__PURE__ */ s.jsx(vr, { onClick: n });
|
|
1091
2246
|
}
|
|
1092
|
-
const
|
|
2247
|
+
const wr = _.div`
|
|
1093
2248
|
position: relative;
|
|
1094
2249
|
width: 100%;
|
|
1095
2250
|
margin-bottom: -0.25rem;
|
|
1096
|
-
`,
|
|
2251
|
+
`, br = _.div`
|
|
1097
2252
|
position: absolute;
|
|
1098
2253
|
bottom: 1.75rem;
|
|
1099
2254
|
left: 0;
|
|
@@ -1104,7 +2259,7 @@ const gt = b.div`
|
|
|
1104
2259
|
opacity: ${({ $isVisible: e }) => e ? 1 : 0};
|
|
1105
2260
|
transform: ${({ $isVisible: e }) => e ? "translateY(0)" : "translateY(-0.5rem)"};
|
|
1106
2261
|
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
1107
|
-
`,
|
|
2262
|
+
`, xr = _.p`
|
|
1108
2263
|
margin: 0;
|
|
1109
2264
|
padding: 0.25rem;
|
|
1110
2265
|
font-variant-numeric: tabular-nums;
|
|
@@ -1116,27 +2271,27 @@ const gt = b.div`
|
|
|
1116
2271
|
color: white;
|
|
1117
2272
|
background: rgba(0, 0, 0, 0.8);
|
|
1118
2273
|
border-radius: 1rem;
|
|
1119
|
-
`,
|
|
1120
|
-
|
|
2274
|
+
`, Tt = yt(({ max: e = 100, min: t = 0, ...n }, r) => /* @__PURE__ */ s.jsxs(
|
|
2275
|
+
rs,
|
|
1121
2276
|
{
|
|
1122
|
-
ref:
|
|
1123
|
-
min:
|
|
2277
|
+
ref: r,
|
|
2278
|
+
min: t,
|
|
1124
2279
|
max: e,
|
|
1125
2280
|
"aria-label": "Player progress",
|
|
1126
|
-
onKeyDown: (
|
|
2281
|
+
onKeyDown: (i) => (
|
|
1127
2282
|
// Prevent the slider from being controlled by the keyboard
|
|
1128
2283
|
// when the slider is focused by a click
|
|
1129
|
-
|
|
2284
|
+
i.preventDefault()
|
|
1130
2285
|
),
|
|
1131
|
-
...
|
|
2286
|
+
...n,
|
|
1132
2287
|
children: [
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
/* @__PURE__ */
|
|
2288
|
+
/* @__PURE__ */ s.jsx(os, { children: /* @__PURE__ */ s.jsx(is, {}) }),
|
|
2289
|
+
/* @__PURE__ */ s.jsx(ss, {})
|
|
1135
2290
|
]
|
|
1136
2291
|
}
|
|
1137
2292
|
));
|
|
1138
|
-
|
|
1139
|
-
const
|
|
2293
|
+
Tt.displayName = "PlayerSlider";
|
|
2294
|
+
const rs = _(vt.Root)`
|
|
1140
2295
|
position: relative;
|
|
1141
2296
|
display: flex;
|
|
1142
2297
|
align-items: center;
|
|
@@ -1150,20 +2305,20 @@ const Gn = b(ye.Root)`
|
|
|
1150
2305
|
cursor: not-allowed;
|
|
1151
2306
|
opacity: 0.5;
|
|
1152
2307
|
}
|
|
1153
|
-
`,
|
|
2308
|
+
`, os = _(vt.Track)`
|
|
1154
2309
|
position: relative;
|
|
1155
2310
|
height: 0.25rem;
|
|
1156
2311
|
flex-grow: 1;
|
|
1157
2312
|
background: rgba(255, 255, 255, 0.2);
|
|
1158
2313
|
border-radius: 1rem;
|
|
1159
2314
|
overflow: hidden;
|
|
1160
|
-
`,
|
|
2315
|
+
`, is = _(vt.Range)`
|
|
1161
2316
|
position: absolute;
|
|
1162
2317
|
height: 100%;
|
|
1163
2318
|
background: #f7e406;
|
|
1164
2319
|
transition: width 0.2s ease-in-out;
|
|
1165
2320
|
border-radius: 1rem;
|
|
1166
|
-
`,
|
|
2321
|
+
`, ss = _(vt.Thumb)`
|
|
1167
2322
|
display: block;
|
|
1168
2323
|
width: 0.875rem;
|
|
1169
2324
|
height: 0.875rem;
|
|
@@ -1187,106 +2342,106 @@ const Gn = b(ye.Root)`
|
|
|
1187
2342
|
opacity: 0.5;
|
|
1188
2343
|
}
|
|
1189
2344
|
`;
|
|
1190
|
-
function
|
|
1191
|
-
const
|
|
2345
|
+
function gt(e) {
|
|
2346
|
+
const t = e.getBoundingClientRect();
|
|
1192
2347
|
return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
|
|
1193
|
-
left:
|
|
1194
|
-
right:
|
|
1195
|
-
top:
|
|
1196
|
-
bottom:
|
|
1197
|
-
width:
|
|
1198
|
-
height:
|
|
1199
|
-
} :
|
|
1200
|
-
}
|
|
1201
|
-
const
|
|
1202
|
-
Math.max(0, (Date.now() - (e +
|
|
1203
|
-
),
|
|
1204
|
-
const
|
|
1205
|
-
return `${parseFloat((e / Math.pow(1024,
|
|
2348
|
+
left: t.left * 100,
|
|
2349
|
+
right: t.right * 100,
|
|
2350
|
+
top: t.top * 100,
|
|
2351
|
+
bottom: t.bottom * 100,
|
|
2352
|
+
width: t.width * 100,
|
|
2353
|
+
height: t.height * 100
|
|
2354
|
+
} : t;
|
|
2355
|
+
}
|
|
2356
|
+
const Sr = (e, t = 0) => parseInt(
|
|
2357
|
+
Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
|
|
2358
|
+
), Cr = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), kr = (e, t) => Math.max(0, (t - e) / 1e3), as = (e, t = 0) => {
|
|
2359
|
+
const r = t < 0 ? 0 : t, i = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], a = Math.floor(Math.log(e) / Math.log(1024));
|
|
2360
|
+
return `${parseFloat((e / Math.pow(1024, a)).toFixed(r))}${i[a]}`;
|
|
1206
2361
|
};
|
|
1207
|
-
function
|
|
2362
|
+
function cs({
|
|
1208
2363
|
isAuto: e,
|
|
1209
|
-
level:
|
|
1210
|
-
levels:
|
|
2364
|
+
level: t,
|
|
2365
|
+
levels: n
|
|
1211
2366
|
}) {
|
|
1212
|
-
const
|
|
1213
|
-
return
|
|
2367
|
+
const r = n.length, i = [];
|
|
2368
|
+
return r > 1 && i.push({
|
|
1214
2369
|
sid: "quality-level-auto",
|
|
1215
2370
|
label: "Auto",
|
|
1216
2371
|
value: -1,
|
|
1217
|
-
selected: e ||
|
|
1218
|
-
}),
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1221
|
-
}),
|
|
1222
|
-
const { bitrate:
|
|
1223
|
-
|
|
1224
|
-
sid: `quality-level-${
|
|
1225
|
-
label:
|
|
1226
|
-
value:
|
|
1227
|
-
selected:
|
|
2372
|
+
selected: e || t === -1
|
|
2373
|
+
}), n.sort(function(a, l) {
|
|
2374
|
+
const u = a.height || a.bitrate || 0, c = l.height || l.bitrate || 0;
|
|
2375
|
+
return u === c ? 0 : u > c ? 1 : -1;
|
|
2376
|
+
}), n.map((a) => {
|
|
2377
|
+
const { bitrate: l, height: u, index: c } = a;
|
|
2378
|
+
i.push({
|
|
2379
|
+
sid: `quality-level-${c}`,
|
|
2380
|
+
label: u ? `${u}p` : as(l),
|
|
2381
|
+
value: c,
|
|
2382
|
+
selected: r === 1 || !e && c === t
|
|
1228
2383
|
});
|
|
1229
|
-
}),
|
|
1230
|
-
}
|
|
1231
|
-
const
|
|
1232
|
-
function
|
|
1233
|
-
const e =
|
|
1234
|
-
|
|
1235
|
-
}, [
|
|
1236
|
-
(
|
|
1237
|
-
),
|
|
1238
|
-
|
|
1239
|
-
},
|
|
2384
|
+
}), i;
|
|
2385
|
+
}
|
|
2386
|
+
const On = "vod-player-progress-bar";
|
|
2387
|
+
function ls() {
|
|
2388
|
+
const e = Y(null), t = Y(null), [n, r] = X(0), [i, a] = X(0), [l, u] = X(!1), [c, d] = X(-1), [p, m] = X(-1), w = W((I) => I.delay), v = W((I) => I.startTime), T = W((I) => I.endTime), E = W((I) => I.setDelay), M = g((I) => I.isPlaying), P = g((I) => I.addIdleLock), b = g((I) => I.removeIdleLock), h = B(() => {
|
|
2389
|
+
r(Cr(v, w)), a(kr(v, T));
|
|
2390
|
+
}, [w, T, v]), L = parseFloat(
|
|
2391
|
+
(i ? (p !== -1 ? p : n) / i * 100 : 0).toFixed(1)
|
|
2392
|
+
), D = (I) => {
|
|
2393
|
+
m(i * (I[0] / 100)), P(On);
|
|
2394
|
+
}, C = () => {
|
|
1240
2395
|
if (p !== -1) {
|
|
1241
|
-
const
|
|
1242
|
-
|
|
1243
|
-
}
|
|
1244
|
-
},
|
|
1245
|
-
(
|
|
1246
|
-
const
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1249
|
-
if (
|
|
1250
|
-
let
|
|
1251
|
-
|
|
2396
|
+
const I = Sr(v, p);
|
|
2397
|
+
E(I), m(-1), b(On);
|
|
2398
|
+
}
|
|
2399
|
+
}, x = () => u(!0), U = () => u(!1), J = B(
|
|
2400
|
+
(I) => {
|
|
2401
|
+
const _e = e.current, fe = t.current;
|
|
2402
|
+
if (_e && fe) {
|
|
2403
|
+
const q = gt(_e), ne = gt(fe), ue = (I.pageX || I.clientX) - q.left, xe = ue / q.width;
|
|
2404
|
+
if (xe < 0) return;
|
|
2405
|
+
let K = ue - ne.width / 2;
|
|
2406
|
+
K < 0 && (K = 0), K > q.width - ne.width && (K = -1), fe.style.left = K > -1 ? `${K}px` : "auto", fe.style.right = K > -1 ? "auto" : "0px", d(xe * i);
|
|
1252
2407
|
}
|
|
1253
|
-
|
|
2408
|
+
x();
|
|
1254
2409
|
},
|
|
1255
|
-
[
|
|
2410
|
+
[i]
|
|
1256
2411
|
);
|
|
1257
|
-
return
|
|
1258
|
-
|
|
1259
|
-
}, [
|
|
1260
|
-
/* @__PURE__ */
|
|
1261
|
-
|
|
2412
|
+
return wt(() => h(), M ? 1e3 : null), te(() => {
|
|
2413
|
+
h();
|
|
2414
|
+
}, [h]), /* @__PURE__ */ s.jsxs(wr, { children: [
|
|
2415
|
+
/* @__PURE__ */ s.jsx(
|
|
2416
|
+
Tt,
|
|
1262
2417
|
{
|
|
1263
2418
|
ref: e,
|
|
1264
|
-
value: [
|
|
1265
|
-
onPointerLeave:
|
|
1266
|
-
onPointerDown:
|
|
1267
|
-
onPointerMove:
|
|
1268
|
-
onValueChange:
|
|
1269
|
-
onValueCommit:
|
|
2419
|
+
value: [L],
|
|
2420
|
+
onPointerLeave: U,
|
|
2421
|
+
onPointerDown: U,
|
|
2422
|
+
onPointerMove: J,
|
|
2423
|
+
onValueChange: D,
|
|
2424
|
+
onValueCommit: C,
|
|
1270
2425
|
step: 0.1
|
|
1271
2426
|
}
|
|
1272
2427
|
),
|
|
1273
|
-
/* @__PURE__ */
|
|
2428
|
+
/* @__PURE__ */ s.jsx(br, { ref: t, $isVisible: l, children: /* @__PURE__ */ s.jsx(xr, { children: Be(c) }) })
|
|
1274
2429
|
] });
|
|
1275
2430
|
}
|
|
1276
|
-
function
|
|
1277
|
-
return /* @__PURE__ */
|
|
2431
|
+
function Er({ children: e }) {
|
|
2432
|
+
return /* @__PURE__ */ s.jsx(Qi, { children: e });
|
|
1278
2433
|
}
|
|
1279
|
-
function
|
|
2434
|
+
function us({
|
|
1280
2435
|
children: e,
|
|
1281
|
-
startDate:
|
|
1282
|
-
endDate:
|
|
2436
|
+
startDate: t,
|
|
2437
|
+
endDate: n
|
|
1283
2438
|
}) {
|
|
1284
|
-
return /* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ s.jsx(To, { startDate: t, endDate: n, children: /* @__PURE__ */ s.jsx(Er, { children: e }) });
|
|
1285
2440
|
}
|
|
1286
|
-
const
|
|
2441
|
+
const Tr = _.div`
|
|
1287
2442
|
display: flex;
|
|
1288
2443
|
align-items: center;
|
|
1289
|
-
`,
|
|
2444
|
+
`, Pr = _.p`
|
|
1290
2445
|
margin: 0;
|
|
1291
2446
|
padding: 0;
|
|
1292
2447
|
font-variant-numeric: tabular-nums;
|
|
@@ -1294,11 +2449,11 @@ const jt = b.div`
|
|
|
1294
2449
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1295
2450
|
"Helvetica Neue", Arial, sans-serif;
|
|
1296
2451
|
font-weight: 500;
|
|
1297
|
-
`,
|
|
2452
|
+
`, Rr = _(Pr)`
|
|
1298
2453
|
margin-right: 0.5rem;
|
|
1299
|
-
`,
|
|
2454
|
+
`, jr = _(Pr)`
|
|
1300
2455
|
margin-left: 0.5rem;
|
|
1301
|
-
`,
|
|
2456
|
+
`, Lr = _.p`
|
|
1302
2457
|
margin: 0;
|
|
1303
2458
|
padding: 0;
|
|
1304
2459
|
font-size: 0.8125rem;
|
|
@@ -1310,69 +2465,69 @@ const jt = b.div`
|
|
|
1310
2465
|
content: "/";
|
|
1311
2466
|
}
|
|
1312
2467
|
`;
|
|
1313
|
-
function
|
|
1314
|
-
const [e,
|
|
1315
|
-
|
|
1316
|
-
}, [
|
|
1317
|
-
return
|
|
1318
|
-
|
|
1319
|
-
}, [
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
2468
|
+
function ds() {
|
|
2469
|
+
const [e, t] = X(0), [n, r] = X(0), i = g((d) => d.isPlaying), a = W((d) => d.delay), l = W((d) => d.startTime), u = W((d) => d.endTime), c = B(() => {
|
|
2470
|
+
t(Cr(l, a)), r(kr(l, u));
|
|
2471
|
+
}, [a, u, l]);
|
|
2472
|
+
return wt(() => c(), i ? 1e3 : null), te(() => {
|
|
2473
|
+
c();
|
|
2474
|
+
}, [c]), a ? /* @__PURE__ */ s.jsxs(Tr, { children: [
|
|
2475
|
+
/* @__PURE__ */ s.jsx(Rr, { children: Be(e) }),
|
|
2476
|
+
/* @__PURE__ */ s.jsx(Lr, {}),
|
|
2477
|
+
/* @__PURE__ */ s.jsx(jr, { children: Be(n) })
|
|
1323
2478
|
] }) : null;
|
|
1324
2479
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return /* @__PURE__ */
|
|
2480
|
+
function fs() {
|
|
2481
|
+
return /* @__PURE__ */ s.jsx(
|
|
1327
2482
|
"svg",
|
|
1328
2483
|
{
|
|
1329
2484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1330
2485
|
viewBox: "0 0 24 24",
|
|
1331
2486
|
fill: "currentColor",
|
|
1332
|
-
children: /* @__PURE__ */
|
|
2487
|
+
children: /* @__PURE__ */ s.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" })
|
|
1333
2488
|
}
|
|
1334
2489
|
);
|
|
1335
2490
|
}
|
|
1336
|
-
function
|
|
1337
|
-
const e =
|
|
1338
|
-
return /* @__PURE__ */
|
|
1339
|
-
}
|
|
1340
|
-
function
|
|
1341
|
-
const
|
|
1342
|
-
(
|
|
1343
|
-
if (
|
|
1344
|
-
const
|
|
1345
|
-
...
|
|
1346
|
-
selected:
|
|
2491
|
+
function ps() {
|
|
2492
|
+
const e = W((r) => r.startTime), t = W((r) => r.setDelay), n = () => t(Sr(e));
|
|
2493
|
+
return /* @__PURE__ */ s.jsx(be, { onClick: n, children: /* @__PURE__ */ s.jsx(fs, {}) });
|
|
2494
|
+
}
|
|
2495
|
+
function hs({ url: e, isLive: t }) {
|
|
2496
|
+
const n = Y(null), r = g((v) => v.level), i = g((v) => v.levels), a = g((v) => v.setLevel), l = g((v) => v.setLevels), u = g((v) => v.techRef), c = B(
|
|
2497
|
+
(v) => {
|
|
2498
|
+
if (n.current && (n.current.nextLevel = v, a(null), i)) {
|
|
2499
|
+
const T = i.map((E) => ({
|
|
2500
|
+
...E,
|
|
2501
|
+
selected: E.value === v
|
|
1347
2502
|
}));
|
|
1348
|
-
|
|
2503
|
+
l(T);
|
|
1349
2504
|
}
|
|
1350
2505
|
},
|
|
1351
|
-
[
|
|
1352
|
-
), d =
|
|
1353
|
-
|
|
1354
|
-
}, [e]), p =
|
|
1355
|
-
if (!
|
|
2506
|
+
[i, a, l, n]
|
|
2507
|
+
), d = B(() => {
|
|
2508
|
+
n.current && (console.log("[Player][Event]", "MEDIA_ATTACHED"), n.current.loadSource(e));
|
|
2509
|
+
}, [e]), p = B(() => {
|
|
2510
|
+
if (!n.current) return;
|
|
1356
2511
|
console.log("[Player][Event]", "MANIFEST_LOADED");
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
levels:
|
|
1361
|
-
const { bitrate:
|
|
2512
|
+
const v = n.current.levels, T = n.current.currentLevel, E = n.current.autoLevelEnabled;
|
|
2513
|
+
l(
|
|
2514
|
+
cs({
|
|
2515
|
+
levels: v.map((M, P) => {
|
|
2516
|
+
const { bitrate: b, height: h, width: L } = M;
|
|
1362
2517
|
return {
|
|
1363
|
-
bitrate:
|
|
1364
|
-
height:
|
|
1365
|
-
index:
|
|
1366
|
-
width:
|
|
2518
|
+
bitrate: b,
|
|
2519
|
+
height: h,
|
|
2520
|
+
index: P,
|
|
2521
|
+
width: L
|
|
1367
2522
|
};
|
|
1368
2523
|
}),
|
|
1369
|
-
level:
|
|
1370
|
-
isAuto:
|
|
2524
|
+
level: T,
|
|
2525
|
+
isAuto: E
|
|
1371
2526
|
})
|
|
1372
2527
|
);
|
|
1373
|
-
}, [
|
|
1374
|
-
if (!
|
|
1375
|
-
const
|
|
2528
|
+
}, [l]), m = B(() => {
|
|
2529
|
+
if (!u.current) return;
|
|
2530
|
+
const E = t ? {
|
|
1376
2531
|
backBufferLength: 10,
|
|
1377
2532
|
startLevel: -1
|
|
1378
2533
|
} : {
|
|
@@ -1380,52 +2535,52 @@ function cr({ url: e, isLive: n }) {
|
|
|
1380
2535
|
startLevel: -1
|
|
1381
2536
|
};
|
|
1382
2537
|
try {
|
|
1383
|
-
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(
|
|
1384
|
-
} catch (
|
|
1385
|
-
throw new Error(`Error initializing Hls: ${
|
|
2538
|
+
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(E)), console.log("[Player] Version", Ce.version), n.current = new Ce(E), n.current.attachMedia(u.current), n.current.on(Ce.Events.MEDIA_ATTACHED, d), n.current.on(Ce.Events.MANIFEST_LOADED, p);
|
|
2539
|
+
} catch (M) {
|
|
2540
|
+
throw new Error(`Error initializing Hls: ${M}`);
|
|
1386
2541
|
}
|
|
1387
|
-
}, [p, d,
|
|
1388
|
-
|
|
2542
|
+
}, [p, d, t, u, e]), w = B(() => {
|
|
2543
|
+
n.current && (n.current.off(Ce.Events.MEDIA_ATTACHED, d), n.current.off(Ce.Events.MANIFEST_LOADED, p), n.current.destroy(), n.current = null);
|
|
1389
2544
|
}, [p, d]);
|
|
1390
|
-
return
|
|
1391
|
-
|
|
1392
|
-
}, [
|
|
2545
|
+
return te(() => {
|
|
2546
|
+
r !== null && c(r);
|
|
2547
|
+
}, [r, c]), te(() => (Ce.isSupported() && m(), w), [w, m]), null;
|
|
1393
2548
|
}
|
|
1394
|
-
function
|
|
1395
|
-
const
|
|
1396
|
-
onDurationChange:
|
|
2549
|
+
function _r({ url: e, isLive: t, isMuted: n = !1 }) {
|
|
2550
|
+
const r = g((h) => h.handleDurationChange), i = g((h) => h.handleEnd), a = g((h) => h.handleLoadedMetadata), l = g((h) => h.handleLoadStart), u = g((h) => h.handlePause), c = g((h) => h.handlePlay), d = g((h) => h.handlePlaying), p = g((h) => h.handleSeeked), m = g((h) => h.handleSeeking), w = g((h) => h.handleTimeUpdate), v = g((h) => h.handleWaiting), T = g((h) => h.techRef), E = Y(null), M = () => t ? {} : {
|
|
2551
|
+
onDurationChange: r,
|
|
1397
2552
|
onSeeked: p,
|
|
1398
|
-
onSeeking:
|
|
1399
|
-
onTimeUpdate:
|
|
1400
|
-
},
|
|
1401
|
-
(!
|
|
1402
|
-
},
|
|
1403
|
-
return /* @__PURE__ */
|
|
1404
|
-
/* @__PURE__ */
|
|
1405
|
-
/* @__PURE__ */
|
|
1406
|
-
|
|
2553
|
+
onSeeking: m,
|
|
2554
|
+
onTimeUpdate: P
|
|
2555
|
+
}, P = () => {
|
|
2556
|
+
(!E.current || Date.now() - E.current >= 1e3) && (w(), E.current = Date.now());
|
|
2557
|
+
}, b = M();
|
|
2558
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2559
|
+
/* @__PURE__ */ s.jsx(hs, { isLive: t, url: e }),
|
|
2560
|
+
/* @__PURE__ */ s.jsx(
|
|
2561
|
+
ms,
|
|
1407
2562
|
{
|
|
1408
|
-
ref:
|
|
2563
|
+
ref: T,
|
|
1409
2564
|
playsInline: !0,
|
|
1410
2565
|
autoPlay: !0,
|
|
1411
2566
|
controls: !1,
|
|
1412
|
-
muted:
|
|
2567
|
+
muted: n,
|
|
1413
2568
|
preload: "auto",
|
|
1414
2569
|
crossOrigin: "anonymous",
|
|
1415
|
-
onEnded:
|
|
1416
|
-
onLoadedMetadata:
|
|
1417
|
-
onLoadStart:
|
|
1418
|
-
onPause:
|
|
1419
|
-
onPlay:
|
|
2570
|
+
onEnded: i,
|
|
2571
|
+
onLoadedMetadata: a,
|
|
2572
|
+
onLoadStart: l,
|
|
2573
|
+
onPause: u,
|
|
2574
|
+
onPlay: c,
|
|
1420
2575
|
onPlaying: d,
|
|
1421
|
-
onWaiting:
|
|
2576
|
+
onWaiting: v,
|
|
1422
2577
|
tabIndex: -1,
|
|
1423
|
-
...
|
|
2578
|
+
...b
|
|
1424
2579
|
}
|
|
1425
2580
|
)
|
|
1426
2581
|
] });
|
|
1427
2582
|
}
|
|
1428
|
-
const
|
|
2583
|
+
const ms = _.video`
|
|
1429
2584
|
position: relative;
|
|
1430
2585
|
width: 100%;
|
|
1431
2586
|
height: 100%;
|
|
@@ -1434,20 +2589,20 @@ const ur = b.video`
|
|
|
1434
2589
|
pointer-events: none;
|
|
1435
2590
|
}
|
|
1436
2591
|
`;
|
|
1437
|
-
function
|
|
1438
|
-
const [
|
|
1439
|
-
|
|
1440
|
-
|
|
2592
|
+
function gs({ url: e }) {
|
|
2593
|
+
const [t, n] = X(null), r = W((a) => a.delay), i = B(async () => {
|
|
2594
|
+
n(
|
|
2595
|
+
r ? e.replace(
|
|
1441
2596
|
"playlist.m3u8",
|
|
1442
|
-
`playlist_fmp4_dvr_timeshift-${
|
|
2597
|
+
`playlist_fmp4_dvr_timeshift-${r}.m3u8`
|
|
1443
2598
|
) : e
|
|
1444
2599
|
);
|
|
1445
|
-
}, [
|
|
1446
|
-
return
|
|
1447
|
-
|
|
1448
|
-
}, [
|
|
2600
|
+
}, [r, e]);
|
|
2601
|
+
return te(() => {
|
|
2602
|
+
i();
|
|
2603
|
+
}, [i]), t ? /* @__PURE__ */ s.jsx(_r, { url: t, isLive: !0 }) : null;
|
|
1449
2604
|
}
|
|
1450
|
-
const
|
|
2605
|
+
const Ir = _.div`
|
|
1451
2606
|
position: absolute;
|
|
1452
2607
|
top: 0;
|
|
1453
2608
|
left: 0;
|
|
@@ -1456,7 +2611,7 @@ const kt = b.div`
|
|
|
1456
2611
|
color: white;
|
|
1457
2612
|
background: black;
|
|
1458
2613
|
overflow: hidden;
|
|
1459
|
-
`,
|
|
2614
|
+
`, Dr = _.div`
|
|
1460
2615
|
position: absolute;
|
|
1461
2616
|
left: 0;
|
|
1462
2617
|
width: 100%;
|
|
@@ -1468,7 +2623,7 @@ const kt = b.div`
|
|
|
1468
2623
|
@media (min-width: 768px) {
|
|
1469
2624
|
padding-top: 2rem;
|
|
1470
2625
|
}
|
|
1471
|
-
`,
|
|
2626
|
+
`, Ar = _.div`
|
|
1472
2627
|
display: flex;
|
|
1473
2628
|
flex-direction: column;
|
|
1474
2629
|
padding-left: 0.5rem;
|
|
@@ -1480,83 +2635,83 @@ const kt = b.div`
|
|
|
1480
2635
|
padding-left: 1rem;
|
|
1481
2636
|
padding-right: 1rem;
|
|
1482
2637
|
}
|
|
1483
|
-
`,
|
|
2638
|
+
`, Or = _.div`
|
|
1484
2639
|
display: flex;
|
|
1485
2640
|
padding: 0.5rem 0;
|
|
1486
2641
|
width: 100%;
|
|
1487
2642
|
align-items: center;
|
|
1488
|
-
`,
|
|
2643
|
+
`, Fr = _.div`
|
|
1489
2644
|
display: flex;
|
|
1490
2645
|
flex: 1;
|
|
1491
2646
|
align-items: center;
|
|
1492
2647
|
gap: 0.5rem;
|
|
1493
|
-
`,
|
|
2648
|
+
`, Mr = _(Fr)`
|
|
1494
2649
|
justify-content: flex-start;
|
|
1495
|
-
`,
|
|
2650
|
+
`, Vr = _(Fr)`
|
|
1496
2651
|
justify-content: flex-end;
|
|
1497
2652
|
`;
|
|
1498
|
-
function
|
|
1499
|
-
return /* @__PURE__ */
|
|
2653
|
+
function ys() {
|
|
2654
|
+
return /* @__PURE__ */ s.jsx(
|
|
1500
2655
|
"svg",
|
|
1501
2656
|
{
|
|
1502
2657
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1503
2658
|
viewBox: "0 0 24 24",
|
|
1504
2659
|
fill: "currentColor",
|
|
1505
|
-
children: /* @__PURE__ */
|
|
2660
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
|
|
1506
2661
|
}
|
|
1507
2662
|
);
|
|
1508
2663
|
}
|
|
1509
|
-
function
|
|
1510
|
-
return /* @__PURE__ */
|
|
2664
|
+
function vs() {
|
|
2665
|
+
return /* @__PURE__ */ s.jsx(
|
|
1511
2666
|
"svg",
|
|
1512
2667
|
{
|
|
1513
2668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1514
2669
|
viewBox: "0 0 24 24",
|
|
1515
2670
|
fill: "currentColor",
|
|
1516
|
-
children: /* @__PURE__ */
|
|
2671
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
|
|
1517
2672
|
}
|
|
1518
2673
|
);
|
|
1519
2674
|
}
|
|
1520
|
-
function
|
|
1521
|
-
const e =
|
|
2675
|
+
function Nr() {
|
|
2676
|
+
const e = g((d) => d.containerRef), t = g((d) => d.exitFullscreen), n = g((d) => d.isFullscreen), r = g((d) => d.requestFullscreen), i = g((d) => d.setIsFullscreen), a = g((d) => d.setIsFullscreenReady), l = g((d) => d.techRef), u = B(
|
|
1522
2677
|
(d) => {
|
|
1523
|
-
d.stopPropagation(),
|
|
2678
|
+
d.stopPropagation(), i(Bi());
|
|
1524
2679
|
},
|
|
1525
|
-
[
|
|
1526
|
-
),
|
|
1527
|
-
|
|
2680
|
+
[i]
|
|
2681
|
+
), c = () => {
|
|
2682
|
+
n ? t() : r();
|
|
1528
2683
|
};
|
|
1529
|
-
return
|
|
1530
|
-
const d =
|
|
2684
|
+
return te(() => {
|
|
2685
|
+
const d = gr ? l.current : e.current;
|
|
1531
2686
|
if (d)
|
|
1532
|
-
return
|
|
1533
|
-
}, [e,
|
|
1534
|
-
|
|
1535
|
-
}, [
|
|
1536
|
-
}
|
|
1537
|
-
const
|
|
1538
|
-
function
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1541
|
-
}, []),
|
|
1542
|
-
|
|
1543
|
-
}, [
|
|
1544
|
-
return
|
|
1545
|
-
|
|
1546
|
-
}), [
|
|
1547
|
-
const d =
|
|
2687
|
+
return Yi(d, u);
|
|
2688
|
+
}, [e, u, l]), te(() => {
|
|
2689
|
+
a(!0);
|
|
2690
|
+
}, [a]), /* @__PURE__ */ s.jsx(be, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(vs, {}) : /* @__PURE__ */ s.jsx(ys, {}) });
|
|
2691
|
+
}
|
|
2692
|
+
const ws = 5 * 1e3;
|
|
2693
|
+
function $r({ children: e }) {
|
|
2694
|
+
const t = Y(null), [n, r] = X(!1), i = Y(null), l = g((d) => d.idleLocks).size, u = B(() => {
|
|
2695
|
+
i.current !== null && (window.clearTimeout(i.current), i.current = null);
|
|
2696
|
+
}, []), c = B(() => {
|
|
2697
|
+
u(), i.current = window.setTimeout(() => r(!0), ws);
|
|
2698
|
+
}, [u]);
|
|
2699
|
+
return te(() => (r(!1), c(), () => {
|
|
2700
|
+
u();
|
|
2701
|
+
}), [u, c]), te(() => {
|
|
2702
|
+
const d = t.current;
|
|
1548
2703
|
if (!d) return;
|
|
1549
|
-
const p = (
|
|
1550
|
-
|
|
1551
|
-
},
|
|
1552
|
-
|
|
2704
|
+
const p = (w) => {
|
|
2705
|
+
n && (w.stopPropagation(), r(!1), c());
|
|
2706
|
+
}, m = () => {
|
|
2707
|
+
n && r(!1), c();
|
|
1553
2708
|
};
|
|
1554
|
-
return d.addEventListener("click", p), d.addEventListener("mousemove",
|
|
1555
|
-
d.removeEventListener("click", p), d.removeEventListener("mousemove",
|
|
2709
|
+
return d.addEventListener("click", p), d.addEventListener("mousemove", m), () => {
|
|
2710
|
+
d.removeEventListener("click", p), d.removeEventListener("mousemove", m);
|
|
1556
2711
|
};
|
|
1557
|
-
}, [n, r,
|
|
2712
|
+
}, [t, n, r, c]), /* @__PURE__ */ s.jsx(bs, { ref: t, $isIdle: n && !l, children: e });
|
|
1558
2713
|
}
|
|
1559
|
-
const
|
|
2714
|
+
const bs = _.div`
|
|
1560
2715
|
position: absolute;
|
|
1561
2716
|
top: 0;
|
|
1562
2717
|
left: 0;
|
|
@@ -1566,38 +2721,38 @@ const pr = b.div`
|
|
|
1566
2721
|
cursor: ${({ $isIdle: e }) => e ? "none" : "auto"};
|
|
1567
2722
|
opacity: ${({ $isIdle: e }) => e ? 0 : 1};
|
|
1568
2723
|
`;
|
|
1569
|
-
function
|
|
1570
|
-
return /* @__PURE__ */
|
|
2724
|
+
function xs(e) {
|
|
2725
|
+
return /* @__PURE__ */ s.jsx(Cs, { ...e });
|
|
1571
2726
|
}
|
|
1572
|
-
const
|
|
2727
|
+
const Ss = Ii`
|
|
1573
2728
|
from {
|
|
1574
2729
|
transform: rotate(0deg);
|
|
1575
2730
|
}
|
|
1576
2731
|
to {
|
|
1577
2732
|
transform: rotate(360deg);
|
|
1578
2733
|
}
|
|
1579
|
-
`,
|
|
2734
|
+
`, Cs = _.div`
|
|
1580
2735
|
width: 1.5rem;
|
|
1581
2736
|
height: 1.5rem;
|
|
1582
2737
|
border: 2px solid white;
|
|
1583
2738
|
border-bottom-color: transparent;
|
|
1584
2739
|
border-radius: 50%;
|
|
1585
|
-
animation: ${
|
|
2740
|
+
animation: ${Ss} 1s linear infinite;
|
|
1586
2741
|
`;
|
|
1587
|
-
function
|
|
1588
|
-
const [
|
|
1589
|
-
return
|
|
1590
|
-
const
|
|
2742
|
+
function ks(e, t = 500) {
|
|
2743
|
+
const [n, r] = X(e);
|
|
2744
|
+
return te(() => {
|
|
2745
|
+
const i = window.setTimeout(() => r(e), t);
|
|
1591
2746
|
return () => {
|
|
1592
|
-
window.clearTimeout(
|
|
2747
|
+
window.clearTimeout(i);
|
|
1593
2748
|
};
|
|
1594
|
-
}, [e,
|
|
2749
|
+
}, [e, t]), n;
|
|
1595
2750
|
}
|
|
1596
|
-
function
|
|
1597
|
-
const
|
|
1598
|
-
return
|
|
2751
|
+
function Hr({ style: e, ...t }) {
|
|
2752
|
+
const n = g((i) => i.isLoading);
|
|
2753
|
+
return ks(n, 100) ? /* @__PURE__ */ s.jsx(Es, { style: e, ...t, children: /* @__PURE__ */ s.jsx(xs, {}) }) : null;
|
|
1599
2754
|
}
|
|
1600
|
-
const
|
|
2755
|
+
const Es = _.div`
|
|
1601
2756
|
pointer-events: none;
|
|
1602
2757
|
position: absolute;
|
|
1603
2758
|
top: 0;
|
|
@@ -1610,43 +2765,43 @@ const wr = b.div`
|
|
|
1610
2765
|
align-items: center;
|
|
1611
2766
|
justify-content: center;
|
|
1612
2767
|
`;
|
|
1613
|
-
function
|
|
1614
|
-
return /* @__PURE__ */
|
|
2768
|
+
function Ts() {
|
|
2769
|
+
return /* @__PURE__ */ s.jsx(
|
|
1615
2770
|
"svg",
|
|
1616
2771
|
{
|
|
1617
2772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1618
2773
|
viewBox: "0 0 24 24",
|
|
1619
2774
|
fill: "currentColor",
|
|
1620
|
-
children: /* @__PURE__ */
|
|
2775
|
+
children: /* @__PURE__ */ s.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" })
|
|
1621
2776
|
}
|
|
1622
2777
|
);
|
|
1623
2778
|
}
|
|
1624
|
-
function
|
|
1625
|
-
return /* @__PURE__ */
|
|
2779
|
+
function Ps() {
|
|
2780
|
+
return /* @__PURE__ */ s.jsx(
|
|
1626
2781
|
"svg",
|
|
1627
2782
|
{
|
|
1628
2783
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1629
2784
|
viewBox: "0 0 24 24",
|
|
1630
2785
|
fill: "currentColor",
|
|
1631
|
-
children: /* @__PURE__ */
|
|
2786
|
+
children: /* @__PURE__ */ s.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" })
|
|
1632
2787
|
}
|
|
1633
2788
|
);
|
|
1634
2789
|
}
|
|
1635
|
-
const
|
|
1636
|
-
|
|
2790
|
+
const Rs = Qe.Root, js = Qe.Trigger, Ls = Qe.Portal, zr = yt(({ sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ s.jsx(
|
|
2791
|
+
_s,
|
|
1637
2792
|
{
|
|
1638
|
-
ref:
|
|
2793
|
+
ref: n,
|
|
1639
2794
|
sideOffset: e,
|
|
1640
|
-
onCloseAutoFocus: (
|
|
1641
|
-
|
|
2795
|
+
onCloseAutoFocus: (r) => {
|
|
2796
|
+
r.preventDefault();
|
|
1642
2797
|
},
|
|
1643
|
-
...
|
|
2798
|
+
...t
|
|
1644
2799
|
}
|
|
1645
2800
|
));
|
|
1646
|
-
|
|
1647
|
-
const
|
|
1648
|
-
|
|
1649
|
-
const
|
|
2801
|
+
zr.displayName = "PlayerDropdownMenuContent";
|
|
2802
|
+
const Br = yt((e, t) => /* @__PURE__ */ s.jsx(Is, { ref: t, ...e }));
|
|
2803
|
+
Br.displayName = "PlayerDropdownMenuItem";
|
|
2804
|
+
const _s = _(Qe.Content).withConfig({
|
|
1650
2805
|
shouldForwardProp: (e) => e !== "ref"
|
|
1651
2806
|
})`
|
|
1652
2807
|
padding: 0.25rem;
|
|
@@ -1723,7 +2878,7 @@ const Sr = b(ce.Content).withConfig({
|
|
|
1723
2878
|
transform: translateX(0);
|
|
1724
2879
|
}
|
|
1725
2880
|
}
|
|
1726
|
-
`,
|
|
2881
|
+
`, Is = _(Qe.Item)`
|
|
1727
2882
|
position: relative;
|
|
1728
2883
|
display: flex;
|
|
1729
2884
|
align-items: center;
|
|
@@ -1760,87 +2915,87 @@ const Sr = b(ce.Content).withConfig({
|
|
|
1760
2915
|
color: rgba(255, 255, 255, 0.5);
|
|
1761
2916
|
pointer-events: none;
|
|
1762
2917
|
}
|
|
1763
|
-
`,
|
|
1764
|
-
function
|
|
1765
|
-
const [e,
|
|
1766
|
-
(
|
|
1767
|
-
|
|
2918
|
+
`, Fn = "settings";
|
|
2919
|
+
function Ur() {
|
|
2920
|
+
const [e, t] = X(!1), n = g((c) => c.containerRef), r = g((c) => c.addIdleLock), i = g((c) => c.removeIdleLock), a = g((c) => c.levels), l = g((c) => c.setLevel), u = B(
|
|
2921
|
+
(c) => {
|
|
2922
|
+
t(c), c ? r(Fn) : i(Fn);
|
|
1768
2923
|
},
|
|
1769
|
-
[
|
|
2924
|
+
[r, i]
|
|
1770
2925
|
);
|
|
1771
|
-
return /* @__PURE__ */
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1774
|
-
|
|
2926
|
+
return /* @__PURE__ */ s.jsxs(Rs, { open: e, onOpenChange: u, children: [
|
|
2927
|
+
/* @__PURE__ */ s.jsx(js, { asChild: !0, children: /* @__PURE__ */ s.jsx(be, { children: /* @__PURE__ */ s.jsx(Ps, {}) }) }),
|
|
2928
|
+
/* @__PURE__ */ s.jsx(Ls, { container: n.current, children: /* @__PURE__ */ s.jsx(zr, { side: "top", align: "end", children: a?.map((c) => /* @__PURE__ */ s.jsxs(
|
|
2929
|
+
Br,
|
|
1775
2930
|
{
|
|
1776
|
-
onClick: () =>
|
|
2931
|
+
onClick: () => l(c.value),
|
|
1777
2932
|
children: [
|
|
1778
|
-
|
|
1779
|
-
|
|
2933
|
+
c.label,
|
|
2934
|
+
c.selected && /* @__PURE__ */ s.jsx(Ts, {})
|
|
1780
2935
|
]
|
|
1781
2936
|
},
|
|
1782
|
-
|
|
2937
|
+
c.sid
|
|
1783
2938
|
)) }) })
|
|
1784
2939
|
] });
|
|
1785
2940
|
}
|
|
1786
|
-
function
|
|
1787
|
-
return /* @__PURE__ */
|
|
2941
|
+
function Ds() {
|
|
2942
|
+
return /* @__PURE__ */ s.jsx(
|
|
1788
2943
|
"svg",
|
|
1789
2944
|
{
|
|
1790
2945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1791
2946
|
viewBox: "0 0 24 24",
|
|
1792
2947
|
fill: "currentColor",
|
|
1793
|
-
children: /* @__PURE__ */
|
|
2948
|
+
children: /* @__PURE__ */ s.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" })
|
|
1794
2949
|
}
|
|
1795
2950
|
);
|
|
1796
2951
|
}
|
|
1797
|
-
function
|
|
1798
|
-
return /* @__PURE__ */
|
|
2952
|
+
function As() {
|
|
2953
|
+
return /* @__PURE__ */ s.jsx(
|
|
1799
2954
|
"svg",
|
|
1800
2955
|
{
|
|
1801
2956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1802
2957
|
viewBox: "0 0 24 24",
|
|
1803
2958
|
fill: "currentColor",
|
|
1804
|
-
children: /* @__PURE__ */
|
|
2959
|
+
children: /* @__PURE__ */ s.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" })
|
|
1805
2960
|
}
|
|
1806
2961
|
);
|
|
1807
2962
|
}
|
|
1808
|
-
function
|
|
1809
|
-
return /* @__PURE__ */
|
|
2963
|
+
function Os() {
|
|
2964
|
+
return /* @__PURE__ */ s.jsx(
|
|
1810
2965
|
"svg",
|
|
1811
2966
|
{
|
|
1812
2967
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1813
2968
|
viewBox: "0 0 24 24",
|
|
1814
2969
|
fill: "currentColor",
|
|
1815
|
-
children: /* @__PURE__ */
|
|
2970
|
+
children: /* @__PURE__ */ s.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" })
|
|
1816
2971
|
}
|
|
1817
2972
|
);
|
|
1818
2973
|
}
|
|
1819
|
-
const
|
|
1820
|
-
function
|
|
1821
|
-
|
|
1822
|
-
const e =
|
|
1823
|
-
e(
|
|
1824
|
-
},
|
|
1825
|
-
|
|
1826
|
-
},
|
|
1827
|
-
return /* @__PURE__ */
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
/* @__PURE__ */
|
|
1830
|
-
|
|
2974
|
+
const Mn = "volume";
|
|
2975
|
+
function Wr() {
|
|
2976
|
+
g((u) => u.containerRef);
|
|
2977
|
+
const e = g((u) => u.setVolume), t = g((u) => u.volume), n = g((u) => u.addIdleLock), r = g((u) => u.removeIdleLock), i = (u) => {
|
|
2978
|
+
e(u[0]), n(Mn);
|
|
2979
|
+
}, a = () => {
|
|
2980
|
+
r(Mn);
|
|
2981
|
+
}, l = () => e(t ? 0 : 100);
|
|
2982
|
+
return /* @__PURE__ */ s.jsxs(Fs, { children: [
|
|
2983
|
+
/* @__PURE__ */ s.jsx(be, { onClick: l, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(Ds, {}) : /* @__PURE__ */ s.jsx(As, {}) : /* @__PURE__ */ s.jsx(Os, {}) }),
|
|
2984
|
+
/* @__PURE__ */ s.jsx(Yr, { children: /* @__PURE__ */ s.jsx(
|
|
2985
|
+
Tt,
|
|
1831
2986
|
{
|
|
1832
|
-
value: [
|
|
1833
|
-
onValueChange:
|
|
1834
|
-
onValueCommit:
|
|
2987
|
+
value: [t],
|
|
2988
|
+
onValueChange: i,
|
|
2989
|
+
onValueCommit: a
|
|
1835
2990
|
}
|
|
1836
2991
|
) })
|
|
1837
2992
|
] });
|
|
1838
2993
|
}
|
|
1839
|
-
const
|
|
2994
|
+
const Yr = _.div`
|
|
1840
2995
|
width: 0;
|
|
1841
2996
|
opacity: 0;
|
|
1842
2997
|
transition: all 0.2s ease-in-out;
|
|
1843
|
-
`,
|
|
2998
|
+
`, Fs = _.div`
|
|
1844
2999
|
display: flex;
|
|
1845
3000
|
align-items: center;
|
|
1846
3001
|
gap: 0.25rem;
|
|
@@ -1851,49 +3006,49 @@ const Wt = b.div`
|
|
|
1851
3006
|
&:hover {
|
|
1852
3007
|
width: 6rem;
|
|
1853
3008
|
|
|
1854
|
-
${
|
|
3009
|
+
${Yr} {
|
|
1855
3010
|
width: 100%;
|
|
1856
3011
|
opacity: 1;
|
|
1857
3012
|
}
|
|
1858
3013
|
}
|
|
1859
3014
|
}
|
|
1860
3015
|
`;
|
|
1861
|
-
function
|
|
1862
|
-
return /* @__PURE__ */
|
|
1863
|
-
|
|
3016
|
+
function Gs({ url: e, startDate: t, endDate: n, messages: r }) {
|
|
3017
|
+
return /* @__PURE__ */ s.jsx(
|
|
3018
|
+
us,
|
|
1864
3019
|
{
|
|
1865
|
-
startDate: new Date(
|
|
1866
|
-
endDate: new Date(
|
|
1867
|
-
children: /* @__PURE__ */
|
|
3020
|
+
startDate: new Date(t),
|
|
3021
|
+
endDate: new Date(n),
|
|
3022
|
+
children: /* @__PURE__ */ s.jsx(Ms, { url: e, messages: r })
|
|
1868
3023
|
}
|
|
1869
3024
|
);
|
|
1870
3025
|
}
|
|
1871
|
-
function
|
|
1872
|
-
const
|
|
1873
|
-
return /* @__PURE__ */
|
|
1874
|
-
|
|
3026
|
+
function Ms({ url: e, messages: t }) {
|
|
3027
|
+
const n = g((r) => r.containerRef);
|
|
3028
|
+
return /* @__PURE__ */ s.jsx(Ir, { ref: n, children: /* @__PURE__ */ s.jsxs(
|
|
3029
|
+
Di,
|
|
1875
3030
|
{
|
|
1876
|
-
eventFinishedMessage:
|
|
1877
|
-
eventNotStartedMessage:
|
|
1878
|
-
eventStartingSoonMessage:
|
|
3031
|
+
eventFinishedMessage: t?.eventFinished,
|
|
3032
|
+
eventNotStartedMessage: t?.eventNotStarted,
|
|
3033
|
+
eventStartingSoonMessage: t?.eventStartingSoon,
|
|
1879
3034
|
children: [
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
-
/* @__PURE__ */
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
/* @__PURE__ */
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
1889
|
-
/* @__PURE__ */
|
|
1890
|
-
/* @__PURE__ */
|
|
1891
|
-
/* @__PURE__ */
|
|
3035
|
+
/* @__PURE__ */ s.jsx(gs, { url: e }),
|
|
3036
|
+
/* @__PURE__ */ s.jsx(Hr, {}),
|
|
3037
|
+
/* @__PURE__ */ s.jsxs($r, { children: [
|
|
3038
|
+
/* @__PURE__ */ s.jsx(ns, {}),
|
|
3039
|
+
/* @__PURE__ */ s.jsx(Dr, { children: /* @__PURE__ */ s.jsxs(Ar, { children: [
|
|
3040
|
+
/* @__PURE__ */ s.jsx(ls, {}),
|
|
3041
|
+
/* @__PURE__ */ s.jsxs(Or, { children: [
|
|
3042
|
+
/* @__PURE__ */ s.jsxs(Mr, { children: [
|
|
3043
|
+
/* @__PURE__ */ s.jsx(es, {}),
|
|
3044
|
+
/* @__PURE__ */ s.jsx(ps, {}),
|
|
3045
|
+
/* @__PURE__ */ s.jsx(Wr, {}),
|
|
3046
|
+
/* @__PURE__ */ s.jsx(ds, {})
|
|
1892
3047
|
] }),
|
|
1893
|
-
/* @__PURE__ */
|
|
1894
|
-
/* @__PURE__ */
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
3048
|
+
/* @__PURE__ */ s.jsxs(Vr, { children: [
|
|
3049
|
+
/* @__PURE__ */ s.jsx(Ni, { message: t?.live }),
|
|
3050
|
+
/* @__PURE__ */ s.jsx(Ur, {}),
|
|
3051
|
+
/* @__PURE__ */ s.jsx(Nr, {})
|
|
1897
3052
|
] })
|
|
1898
3053
|
] })
|
|
1899
3054
|
] }) })
|
|
@@ -1902,119 +3057,119 @@ function _r({ url: e, messages: n }) {
|
|
|
1902
3057
|
}
|
|
1903
3058
|
) });
|
|
1904
3059
|
}
|
|
1905
|
-
function
|
|
1906
|
-
const e =
|
|
1907
|
-
e ?
|
|
3060
|
+
function Vs() {
|
|
3061
|
+
const e = g((i) => i.isPlaying), t = g((i) => i.pause), n = g((i) => i.play), r = () => {
|
|
3062
|
+
e ? t() : n();
|
|
1908
3063
|
};
|
|
1909
|
-
return /* @__PURE__ */
|
|
3064
|
+
return /* @__PURE__ */ s.jsx(be, { onClick: r, children: e ? /* @__PURE__ */ s.jsx(hr, {}) : /* @__PURE__ */ s.jsx(mr, {}) });
|
|
1910
3065
|
}
|
|
1911
|
-
function
|
|
1912
|
-
const e =
|
|
1913
|
-
e ?
|
|
3066
|
+
function Ns() {
|
|
3067
|
+
const e = g((i) => i.isPlaying), t = g((i) => i.pause), n = g((i) => i.play), r = () => {
|
|
3068
|
+
e ? t() : n();
|
|
1914
3069
|
};
|
|
1915
|
-
return /* @__PURE__ */
|
|
1916
|
-
}
|
|
1917
|
-
const
|
|
1918
|
-
function
|
|
1919
|
-
const e =
|
|
1920
|
-
(d ? (
|
|
1921
|
-
),
|
|
1922
|
-
|
|
1923
|
-
},
|
|
1924
|
-
|
|
1925
|
-
},
|
|
1926
|
-
(
|
|
1927
|
-
const
|
|
1928
|
-
if (
|
|
1929
|
-
const
|
|
1930
|
-
if (
|
|
1931
|
-
let
|
|
1932
|
-
|
|
3070
|
+
return /* @__PURE__ */ s.jsx(vr, { onClick: r });
|
|
3071
|
+
}
|
|
3072
|
+
const Vn = "vod-player-progress-bar";
|
|
3073
|
+
function $s() {
|
|
3074
|
+
const e = Y(null), t = Y(null), [n, r] = X(!1), [i, a] = X(-1), [l, u] = X(-1), c = g((h) => h.currentTime), d = g((h) => h.duration), p = g((h) => h.seek), m = g((h) => h.addIdleLock), w = g((h) => h.removeIdleLock), v = parseFloat(
|
|
3075
|
+
(d ? (l !== -1 ? l : c) / d * 100 : 0).toFixed(1)
|
|
3076
|
+
), T = (h) => {
|
|
3077
|
+
u(d * (h[0] / 100)), m(Vn);
|
|
3078
|
+
}, E = () => {
|
|
3079
|
+
l !== -1 && (p(l), u(-1), w(Vn));
|
|
3080
|
+
}, M = () => r(!0), P = () => r(!1), b = B(
|
|
3081
|
+
(h) => {
|
|
3082
|
+
const L = e.current, D = t.current;
|
|
3083
|
+
if (L && D) {
|
|
3084
|
+
const C = gt(L), x = gt(D), U = (h.pageX || h.clientX) - C.left, J = U / C.width;
|
|
3085
|
+
if (J < 0) return;
|
|
3086
|
+
let I = U - x.width / 2;
|
|
3087
|
+
I < 0 && (I = 0), I > C.width - x.width && (I = -1), D.style.left = I > -1 ? `${I}px` : "auto", D.style.right = I > -1 ? "auto" : "0px", a(J * d);
|
|
1933
3088
|
}
|
|
1934
|
-
|
|
3089
|
+
M();
|
|
1935
3090
|
},
|
|
1936
3091
|
[d]
|
|
1937
3092
|
);
|
|
1938
|
-
return /* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
|
|
3093
|
+
return /* @__PURE__ */ s.jsxs(wr, { children: [
|
|
3094
|
+
/* @__PURE__ */ s.jsx(
|
|
3095
|
+
Tt,
|
|
1941
3096
|
{
|
|
1942
3097
|
ref: e,
|
|
1943
|
-
value: [
|
|
1944
|
-
onPointerLeave:
|
|
1945
|
-
onPointerDown:
|
|
1946
|
-
onPointerMove:
|
|
1947
|
-
onValueChange:
|
|
1948
|
-
onValueCommit:
|
|
3098
|
+
value: [v],
|
|
3099
|
+
onPointerLeave: P,
|
|
3100
|
+
onPointerDown: P,
|
|
3101
|
+
onPointerMove: b,
|
|
3102
|
+
onValueChange: T,
|
|
3103
|
+
onValueCommit: E,
|
|
1949
3104
|
step: 0.1
|
|
1950
3105
|
}
|
|
1951
3106
|
),
|
|
1952
|
-
/* @__PURE__ */
|
|
3107
|
+
/* @__PURE__ */ s.jsx(br, { ref: t, $isVisible: n, children: /* @__PURE__ */ s.jsx(xr, { children: Be(i) }) })
|
|
1953
3108
|
] });
|
|
1954
3109
|
}
|
|
1955
|
-
function
|
|
1956
|
-
const e =
|
|
1957
|
-
return /* @__PURE__ */
|
|
1958
|
-
/* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
/* @__PURE__ */
|
|
3110
|
+
function Hs() {
|
|
3111
|
+
const e = g((n) => n.currentTime), t = g((n) => n.duration);
|
|
3112
|
+
return /* @__PURE__ */ s.jsxs(Tr, { children: [
|
|
3113
|
+
/* @__PURE__ */ s.jsx(Rr, { children: Be(e) }),
|
|
3114
|
+
/* @__PURE__ */ s.jsx(Lr, {}),
|
|
3115
|
+
/* @__PURE__ */ s.jsx(jr, { children: Be(t) })
|
|
1961
3116
|
] });
|
|
1962
3117
|
}
|
|
1963
|
-
const
|
|
1964
|
-
function
|
|
1965
|
-
const
|
|
3118
|
+
const zs = 60, Bs = 95;
|
|
3119
|
+
function Us({ storageKey: e }) {
|
|
3120
|
+
const t = g((p) => p.currentTime), n = g((p) => p.duration), r = g((p) => p.isPlaying), i = g((p) => p.setStartTime), a = Y(!1), l = B(() => {
|
|
1966
3121
|
window.localStorage.setItem(
|
|
1967
3122
|
e,
|
|
1968
3123
|
JSON.stringify({
|
|
1969
|
-
currentTime:
|
|
1970
|
-
duration:
|
|
3124
|
+
currentTime: t,
|
|
3125
|
+
duration: n
|
|
1971
3126
|
})
|
|
1972
3127
|
);
|
|
1973
|
-
}, [
|
|
3128
|
+
}, [t, n, e]), u = B(() => {
|
|
1974
3129
|
const p = window.localStorage.getItem(e);
|
|
1975
3130
|
if (p) {
|
|
1976
|
-
const
|
|
3131
|
+
const m = JSON.parse(p);
|
|
1977
3132
|
return {
|
|
1978
|
-
startTime:
|
|
1979
|
-
progress:
|
|
3133
|
+
startTime: m.currentTime,
|
|
3134
|
+
progress: m.currentTime / m.duration * 100
|
|
1980
3135
|
};
|
|
1981
3136
|
}
|
|
1982
3137
|
return { startTime: null, progress: null };
|
|
1983
|
-
}, [e]),
|
|
1984
|
-
|
|
1985
|
-
}, [
|
|
1986
|
-
if (
|
|
1987
|
-
const { progress: p, startTime:
|
|
1988
|
-
|
|
1989
|
-
}, [
|
|
1990
|
-
return
|
|
3138
|
+
}, [e]), c = B(() => {
|
|
3139
|
+
t < zs || l();
|
|
3140
|
+
}, [t, l]), d = B(() => {
|
|
3141
|
+
if (a.current) return;
|
|
3142
|
+
const { progress: p, startTime: m } = u();
|
|
3143
|
+
m && p && p < Bs && (i(m), a.current = !0);
|
|
3144
|
+
}, [u, i]);
|
|
3145
|
+
return wt(() => c(), r ? 1e3 : null), te(() => {
|
|
1991
3146
|
d();
|
|
1992
3147
|
}, [d]), null;
|
|
1993
3148
|
}
|
|
1994
|
-
function
|
|
1995
|
-
return /* @__PURE__ */
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
|
|
3149
|
+
function Xs({ url: e, watchHistory: t }) {
|
|
3150
|
+
return /* @__PURE__ */ s.jsxs(Er, { children: [
|
|
3151
|
+
/* @__PURE__ */ s.jsx(Ws, { url: e }),
|
|
3152
|
+
t?.enabled && /* @__PURE__ */ s.jsx(Us, { storageKey: t.storageKey })
|
|
1998
3153
|
] });
|
|
1999
3154
|
}
|
|
2000
|
-
function
|
|
2001
|
-
const
|
|
2002
|
-
return /* @__PURE__ */
|
|
2003
|
-
/* @__PURE__ */
|
|
2004
|
-
/* @__PURE__ */
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
/* @__PURE__ */
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
/* @__PURE__ */
|
|
2009
|
-
/* @__PURE__ */
|
|
2010
|
-
/* @__PURE__ */
|
|
2011
|
-
/* @__PURE__ */
|
|
2012
|
-
/* @__PURE__ */
|
|
2013
|
-
/* @__PURE__ */
|
|
3155
|
+
function Ws({ url: e }) {
|
|
3156
|
+
const t = g((n) => n.containerRef);
|
|
3157
|
+
return /* @__PURE__ */ s.jsxs(Ir, { ref: t, children: [
|
|
3158
|
+
/* @__PURE__ */ s.jsx(_r, { url: e, isLive: !1 }),
|
|
3159
|
+
/* @__PURE__ */ s.jsx(Hr, {}),
|
|
3160
|
+
/* @__PURE__ */ s.jsxs($r, { children: [
|
|
3161
|
+
/* @__PURE__ */ s.jsx(Ns, {}),
|
|
3162
|
+
/* @__PURE__ */ s.jsx(Dr, { children: /* @__PURE__ */ s.jsxs(Ar, { children: [
|
|
3163
|
+
/* @__PURE__ */ s.jsx($s, {}),
|
|
3164
|
+
/* @__PURE__ */ s.jsxs(Or, { children: [
|
|
3165
|
+
/* @__PURE__ */ s.jsxs(Mr, { children: [
|
|
3166
|
+
/* @__PURE__ */ s.jsx(Vs, {}),
|
|
3167
|
+
/* @__PURE__ */ s.jsx(Wr, {}),
|
|
3168
|
+
/* @__PURE__ */ s.jsx(Hs, {})
|
|
2014
3169
|
] }),
|
|
2015
|
-
/* @__PURE__ */
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
/* @__PURE__ */
|
|
3170
|
+
/* @__PURE__ */ s.jsxs(Vr, { children: [
|
|
3171
|
+
/* @__PURE__ */ s.jsx(Ur, {}),
|
|
3172
|
+
/* @__PURE__ */ s.jsx(Nr, {})
|
|
2018
3173
|
] })
|
|
2019
3174
|
] })
|
|
2020
3175
|
] }) })
|
|
@@ -2022,7 +3177,7 @@ function $r({ url: e }) {
|
|
|
2022
3177
|
] });
|
|
2023
3178
|
}
|
|
2024
3179
|
export {
|
|
2025
|
-
|
|
2026
|
-
|
|
3180
|
+
Gs as LivePlayer,
|
|
3181
|
+
Xs as VodPlayer
|
|
2027
3182
|
};
|
|
2028
3183
|
//# sourceMappingURL=react-video-player.es.js.map
|