twist-aplayer 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -13
- package/dist/index.mjs +566 -551
- package/dist/twist-aplayer.umd.js +13 -13
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as te from "react";
|
|
2
|
+
import Re, { useMemo as K, useRef as D, useState as W, useEffect as I, useCallback as L } from "react";
|
|
3
|
+
var Te = { exports: {} }, de = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,21 +10,21 @@ var Ee = { exports: {} }, oe = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
13
|
+
var tr;
|
|
14
14
|
function Br() {
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var e =
|
|
18
|
-
function
|
|
19
|
-
var E, b = {}, f = null,
|
|
20
|
-
d !== void 0 && (f = "" + d), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (
|
|
21
|
-
for (E in s) a.call(s, E) && !
|
|
15
|
+
if (tr) return de;
|
|
16
|
+
tr = 1;
|
|
17
|
+
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function y(g, s, d) {
|
|
19
|
+
var E, b = {}, f = null, c = null;
|
|
20
|
+
d !== void 0 && (f = "" + d), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (c = s.ref);
|
|
21
|
+
for (E in s) a.call(s, E) && !l.hasOwnProperty(E) && (b[E] = s[E]);
|
|
22
22
|
if (g && g.defaultProps) for (E in s = g.defaultProps, s) b[E] === void 0 && (b[E] = s[E]);
|
|
23
|
-
return { $$typeof: t, type: g, key: f, ref:
|
|
23
|
+
return { $$typeof: t, type: g, key: f, ref: c, props: b, _owner: i.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return de.Fragment = n, de.jsx = y, de.jsxs = y, de;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var ve = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.development.js
|
|
@@ -34,54 +34,54 @@ var ue = {};
|
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
|
-
var
|
|
37
|
+
var nr;
|
|
38
38
|
function zr() {
|
|
39
|
-
return
|
|
40
|
-
var e =
|
|
39
|
+
return nr || (nr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), g = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), _ = Symbol.iterator, u = "@@iterator";
|
|
41
41
|
function h(r) {
|
|
42
42
|
if (r === null || typeof r != "object")
|
|
43
43
|
return null;
|
|
44
44
|
var o = _ && r[_] || r[u];
|
|
45
45
|
return typeof o == "function" ? o : null;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
48
|
function j(r) {
|
|
49
49
|
{
|
|
50
50
|
for (var o = arguments.length, m = new Array(o > 1 ? o - 1 : 0), x = 1; x < o; x++)
|
|
51
51
|
m[x - 1] = arguments[x];
|
|
52
|
-
|
|
52
|
+
N("error", r, m);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function N(r, o, m) {
|
|
56
56
|
{
|
|
57
|
-
var x =
|
|
57
|
+
var x = p.ReactDebugCurrentFrame, O = x.getStackAddendum();
|
|
58
58
|
O !== "" && (o += "%s", m = m.concat([O]));
|
|
59
|
-
var
|
|
59
|
+
var P = m.map(function(w) {
|
|
60
60
|
return String(w);
|
|
61
61
|
});
|
|
62
|
-
|
|
62
|
+
P.unshift("Warning: " + o), Function.prototype.apply.call(console[r], console, P);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof r == "string" || typeof r == "function" || r === a || r ===
|
|
65
|
+
var S = !1, J = !1, ne = !1, V = !1, Le = !1, ae;
|
|
66
|
+
ae = Symbol.for("react.module.reference");
|
|
67
|
+
function Pe(r) {
|
|
68
|
+
return !!(typeof r == "string" || typeof r == "function" || r === a || r === l || Le || r === i || r === d || r === E || V || r === c || S || J || ne || typeof r == "object" && r !== null && (r.$$typeof === f || r.$$typeof === b || r.$$typeof === y || r.$$typeof === g || r.$$typeof === s || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
72
|
-
r.$$typeof ===
|
|
72
|
+
r.$$typeof === ae || r.getModuleId !== void 0));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function pe(r, o, m) {
|
|
75
75
|
var x = r.displayName;
|
|
76
76
|
if (x)
|
|
77
77
|
return x;
|
|
78
78
|
var O = o.displayName || o.name || "";
|
|
79
79
|
return O !== "" ? m + "(" + O + ")" : m;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ye(r) {
|
|
82
82
|
return r.displayName || "Context";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function B(r) {
|
|
85
85
|
if (r == null)
|
|
86
86
|
return null;
|
|
87
87
|
if (typeof r.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
@@ -93,7 +93,7 @@ function zr() {
|
|
|
93
93
|
return "Fragment";
|
|
94
94
|
case n:
|
|
95
95
|
return "Portal";
|
|
96
|
-
case
|
|
96
|
+
case l:
|
|
97
97
|
return "Profiler";
|
|
98
98
|
case i:
|
|
99
99
|
return "StrictMode";
|
|
@@ -106,19 +106,19 @@ function zr() {
|
|
|
106
106
|
switch (r.$$typeof) {
|
|
107
107
|
case g:
|
|
108
108
|
var o = r;
|
|
109
|
-
return
|
|
110
|
-
case
|
|
109
|
+
return ye(o) + ".Consumer";
|
|
110
|
+
case y:
|
|
111
111
|
var m = r;
|
|
112
|
-
return
|
|
112
|
+
return ye(m._context) + ".Provider";
|
|
113
113
|
case s:
|
|
114
|
-
return
|
|
114
|
+
return pe(r, r.render, "ForwardRef");
|
|
115
115
|
case b:
|
|
116
116
|
var x = r.displayName || null;
|
|
117
|
-
return x !== null ? x :
|
|
117
|
+
return x !== null ? x : B(r.type) || "Memo";
|
|
118
118
|
case f: {
|
|
119
|
-
var O = r,
|
|
119
|
+
var O = r, P = O._payload, w = O._init;
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return B(w(P));
|
|
122
122
|
} catch {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
@@ -126,18 +126,18 @@ function zr() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
129
|
+
var F = Object.assign, z = 0, be, X, ie, oe, ue, se, ce;
|
|
130
|
+
function R() {
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
function
|
|
132
|
+
R.__reactDisabledLog = !0;
|
|
133
|
+
function le() {
|
|
134
134
|
{
|
|
135
|
-
if (
|
|
136
|
-
|
|
135
|
+
if (z === 0) {
|
|
136
|
+
be = console.log, X = console.info, ie = console.warn, oe = console.error, ue = console.group, se = console.groupCollapsed, ce = console.groupEnd;
|
|
137
137
|
var r = {
|
|
138
138
|
configurable: !0,
|
|
139
139
|
enumerable: !0,
|
|
140
|
-
value:
|
|
140
|
+
value: R,
|
|
141
141
|
writable: !0
|
|
142
142
|
};
|
|
143
143
|
Object.defineProperties(console, {
|
|
@@ -150,77 +150,77 @@ function zr() {
|
|
|
150
150
|
groupEnd: r
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
z++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function ge() {
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
158
|
+
if (z--, z === 0) {
|
|
159
159
|
var r = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
162
162
|
writable: !0
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
165
|
-
log:
|
|
166
|
-
value:
|
|
165
|
+
log: F({}, r, {
|
|
166
|
+
value: be
|
|
167
167
|
}),
|
|
168
|
-
info:
|
|
169
|
-
value:
|
|
168
|
+
info: F({}, r, {
|
|
169
|
+
value: X
|
|
170
170
|
}),
|
|
171
|
-
warn:
|
|
172
|
-
value:
|
|
171
|
+
warn: F({}, r, {
|
|
172
|
+
value: ie
|
|
173
173
|
}),
|
|
174
|
-
error:
|
|
175
|
-
value:
|
|
174
|
+
error: F({}, r, {
|
|
175
|
+
value: oe
|
|
176
176
|
}),
|
|
177
|
-
group:
|
|
178
|
-
value:
|
|
177
|
+
group: F({}, r, {
|
|
178
|
+
value: ue
|
|
179
179
|
}),
|
|
180
|
-
groupCollapsed:
|
|
181
|
-
value:
|
|
180
|
+
groupCollapsed: F({}, r, {
|
|
181
|
+
value: se
|
|
182
182
|
}),
|
|
183
|
-
groupEnd:
|
|
184
|
-
value:
|
|
183
|
+
groupEnd: F({}, r, {
|
|
184
|
+
value: ce
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
z < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
var
|
|
192
|
-
function
|
|
191
|
+
var Q = p.ReactCurrentDispatcher, fe;
|
|
192
|
+
function Y(r, o, m) {
|
|
193
193
|
{
|
|
194
|
-
if (
|
|
194
|
+
if (fe === void 0)
|
|
195
195
|
try {
|
|
196
196
|
throw Error();
|
|
197
197
|
} catch (O) {
|
|
198
198
|
var x = O.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
-
|
|
199
|
+
fe = x && x[1] || "";
|
|
200
200
|
}
|
|
201
201
|
return `
|
|
202
|
-
` +
|
|
202
|
+
` + fe + r;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var $e = !1, Ee;
|
|
206
206
|
{
|
|
207
207
|
var gr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
-
|
|
208
|
+
Ee = new gr();
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
if (!r ||
|
|
210
|
+
function Fe(r, o) {
|
|
211
|
+
if (!r || $e)
|
|
212
212
|
return "";
|
|
213
213
|
{
|
|
214
|
-
var m =
|
|
214
|
+
var m = Ee.get(r);
|
|
215
215
|
if (m !== void 0)
|
|
216
216
|
return m;
|
|
217
217
|
}
|
|
218
218
|
var x;
|
|
219
|
-
|
|
219
|
+
$e = !0;
|
|
220
220
|
var O = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
|
-
var
|
|
223
|
-
|
|
222
|
+
var P;
|
|
223
|
+
P = Q.current, Q.current = null, le();
|
|
224
224
|
try {
|
|
225
225
|
if (o) {
|
|
226
226
|
var w = function() {
|
|
@@ -233,117 +233,117 @@ function zr() {
|
|
|
233
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
234
|
try {
|
|
235
235
|
Reflect.construct(w, []);
|
|
236
|
-
} catch (
|
|
237
|
-
x =
|
|
236
|
+
} catch (H) {
|
|
237
|
+
x = H;
|
|
238
238
|
}
|
|
239
239
|
Reflect.construct(r, [], w);
|
|
240
240
|
} else {
|
|
241
241
|
try {
|
|
242
242
|
w.call();
|
|
243
|
-
} catch (
|
|
244
|
-
x =
|
|
243
|
+
} catch (H) {
|
|
244
|
+
x = H;
|
|
245
245
|
}
|
|
246
246
|
r.call(w.prototype);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
x =
|
|
251
|
+
} catch (H) {
|
|
252
|
+
x = H;
|
|
253
253
|
}
|
|
254
254
|
r();
|
|
255
255
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var
|
|
256
|
+
} catch (H) {
|
|
257
|
+
if (H && x && typeof H.stack == "string") {
|
|
258
|
+
for (var T = H.stack.split(`
|
|
259
259
|
`), M = x.stack.split(`
|
|
260
|
-
`), C =
|
|
261
|
-
|
|
262
|
-
for (; C >= 1 &&
|
|
263
|
-
if (
|
|
264
|
-
if (C !== 1 ||
|
|
260
|
+
`), C = T.length - 1, A = M.length - 1; C >= 1 && A >= 0 && T[C] !== M[A]; )
|
|
261
|
+
A--;
|
|
262
|
+
for (; C >= 1 && A >= 0; C--, A--)
|
|
263
|
+
if (T[C] !== M[A]) {
|
|
264
|
+
if (C !== 1 || A !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (C--,
|
|
266
|
+
if (C--, A--, A < 0 || T[C] !== M[A]) {
|
|
267
267
|
var k = `
|
|
268
|
-
` +
|
|
269
|
-
return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" &&
|
|
268
|
+
` + T[C].replace(" at new ", " at ");
|
|
269
|
+
return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, k), k;
|
|
270
270
|
}
|
|
271
|
-
while (C >= 1 &&
|
|
271
|
+
while (C >= 1 && A >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
|
|
276
|
+
$e = !1, Q.current = P, ge(), Error.prepareStackTrace = O;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
return typeof r == "function" &&
|
|
278
|
+
var ee = r ? r.displayName || r.name : "", rr = ee ? Y(ee) : "";
|
|
279
|
+
return typeof r == "function" && Ee.set(r, rr), rr;
|
|
280
280
|
}
|
|
281
281
|
function Er(r, o, m) {
|
|
282
|
-
return
|
|
282
|
+
return Fe(r, !1);
|
|
283
283
|
}
|
|
284
284
|
function xr(r) {
|
|
285
285
|
var o = r.prototype;
|
|
286
286
|
return !!(o && o.isReactComponent);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function xe(r, o, m) {
|
|
289
289
|
if (r == null)
|
|
290
290
|
return "";
|
|
291
291
|
if (typeof r == "function")
|
|
292
|
-
return
|
|
292
|
+
return Fe(r, xr(r));
|
|
293
293
|
if (typeof r == "string")
|
|
294
|
-
return
|
|
294
|
+
return Y(r);
|
|
295
295
|
switch (r) {
|
|
296
296
|
case d:
|
|
297
|
-
return
|
|
297
|
+
return Y("Suspense");
|
|
298
298
|
case E:
|
|
299
|
-
return
|
|
299
|
+
return Y("SuspenseList");
|
|
300
300
|
}
|
|
301
301
|
if (typeof r == "object")
|
|
302
302
|
switch (r.$$typeof) {
|
|
303
303
|
case s:
|
|
304
304
|
return Er(r.render);
|
|
305
305
|
case b:
|
|
306
|
-
return
|
|
306
|
+
return xe(r.type, o, m);
|
|
307
307
|
case f: {
|
|
308
|
-
var x = r, O = x._payload,
|
|
308
|
+
var x = r, O = x._payload, P = x._init;
|
|
309
309
|
try {
|
|
310
|
-
return
|
|
310
|
+
return xe(P(O), o, m);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
317
|
+
var Se = Object.prototype.hasOwnProperty, Be = {}, ze = p.ReactDebugCurrentFrame;
|
|
318
|
+
function _e(r) {
|
|
319
319
|
if (r) {
|
|
320
|
-
var o = r._owner, m =
|
|
321
|
-
|
|
320
|
+
var o = r._owner, m = xe(r.type, r._source, o ? o.type : null);
|
|
321
|
+
ze.setExtraStackFrame(m);
|
|
322
322
|
} else
|
|
323
|
-
|
|
323
|
+
ze.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Sr(r, o, m, x, O) {
|
|
326
326
|
{
|
|
327
|
-
var
|
|
327
|
+
var P = Function.call.bind(Se);
|
|
328
328
|
for (var w in r)
|
|
329
|
-
if (
|
|
330
|
-
var
|
|
329
|
+
if (P(r, w)) {
|
|
330
|
+
var T = void 0;
|
|
331
331
|
try {
|
|
332
332
|
if (typeof r[w] != "function") {
|
|
333
333
|
var M = Error((x || "React class") + ": " + m + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
334
|
throw M.name = "Invariant Violation", M;
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
T = r[w](o, w, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
337
|
} catch (C) {
|
|
338
|
-
|
|
338
|
+
T = C;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
T && !(T instanceof Error) && (_e(O), j("%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).", x || "React class", m, w, typeof T), _e(null)), T instanceof Error && !(T.message in Be) && (Be[T.message] = !0, _e(O), j("Failed %s type: %s", m, T.message), _e(null));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
var
|
|
345
|
-
function
|
|
346
|
-
return
|
|
344
|
+
var _r = Array.isArray;
|
|
345
|
+
function Ce(r) {
|
|
346
|
+
return _r(r);
|
|
347
347
|
}
|
|
348
348
|
function Tr(r) {
|
|
349
349
|
{
|
|
@@ -353,26 +353,26 @@ function zr() {
|
|
|
353
353
|
}
|
|
354
354
|
function wr(r) {
|
|
355
355
|
try {
|
|
356
|
-
return
|
|
356
|
+
return He(r), !1;
|
|
357
357
|
} catch {
|
|
358
358
|
return !0;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function He(r) {
|
|
362
362
|
return "" + r;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function We(r) {
|
|
365
365
|
if (wr(r))
|
|
366
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(r)),
|
|
366
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(r)), He(r);
|
|
367
367
|
}
|
|
368
|
-
var
|
|
368
|
+
var Ue = p.ReactCurrentOwner, jr = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
372
372
|
__source: !0
|
|
373
|
-
},
|
|
373
|
+
}, Ye, Ge;
|
|
374
374
|
function Or(r) {
|
|
375
|
-
if (
|
|
375
|
+
if (Se.call(r, "ref")) {
|
|
376
376
|
var o = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
377
377
|
if (o && o.isReactWarning)
|
|
378
378
|
return !1;
|
|
@@ -380,7 +380,7 @@ function zr() {
|
|
|
380
380
|
return r.ref !== void 0;
|
|
381
381
|
}
|
|
382
382
|
function Rr(r) {
|
|
383
|
-
if (
|
|
383
|
+
if (Se.call(r, "key")) {
|
|
384
384
|
var o = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
385
385
|
if (o && o.isReactWarning)
|
|
386
386
|
return !1;
|
|
@@ -388,12 +388,12 @@ function zr() {
|
|
|
388
388
|
return r.key !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function Lr(r, o) {
|
|
391
|
-
typeof r.ref == "string" &&
|
|
391
|
+
typeof r.ref == "string" && Ue.current;
|
|
392
392
|
}
|
|
393
393
|
function Pr(r, o) {
|
|
394
394
|
{
|
|
395
395
|
var m = function() {
|
|
396
|
-
|
|
396
|
+
Ye || (Ye = !0, j("%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)", o));
|
|
397
397
|
};
|
|
398
398
|
m.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
399
399
|
get: m,
|
|
@@ -404,7 +404,7 @@ function zr() {
|
|
|
404
404
|
function $r(r, o) {
|
|
405
405
|
{
|
|
406
406
|
var m = function() {
|
|
407
|
-
|
|
407
|
+
Ge || (Ge = !0, j("%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)", o));
|
|
408
408
|
};
|
|
409
409
|
m.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
410
410
|
get: m,
|
|
@@ -412,8 +412,8 @@ function zr() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var Cr = function(r, o, m, x, O,
|
|
416
|
-
var
|
|
415
|
+
var Cr = function(r, o, m, x, O, P, w) {
|
|
416
|
+
var T = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
418
|
$$typeof: t,
|
|
419
419
|
// Built-in properties that belong on the element
|
|
@@ -422,60 +422,60 @@ function zr() {
|
|
|
422
422
|
ref: m,
|
|
423
423
|
props: w,
|
|
424
424
|
// Record the component responsible for creating this element.
|
|
425
|
-
_owner:
|
|
425
|
+
_owner: P
|
|
426
426
|
};
|
|
427
|
-
return
|
|
427
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
428
428
|
configurable: !1,
|
|
429
429
|
enumerable: !1,
|
|
430
430
|
writable: !0,
|
|
431
431
|
value: !1
|
|
432
|
-
}), Object.defineProperty(
|
|
432
|
+
}), Object.defineProperty(T, "_self", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !1,
|
|
436
436
|
value: x
|
|
437
|
-
}), Object.defineProperty(
|
|
437
|
+
}), Object.defineProperty(T, "_source", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
441
|
value: O
|
|
442
|
-
}), Object.freeze && (Object.freeze(
|
|
442
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
443
443
|
};
|
|
444
444
|
function Ar(r, o, m, x, O) {
|
|
445
445
|
{
|
|
446
|
-
var
|
|
447
|
-
m !== void 0 && (
|
|
448
|
-
for (
|
|
449
|
-
|
|
446
|
+
var P, w = {}, T = null, M = null;
|
|
447
|
+
m !== void 0 && (We(m), T = "" + m), Rr(o) && (We(o.key), T = "" + o.key), Or(o) && (M = o.ref, Lr(o, O));
|
|
448
|
+
for (P in o)
|
|
449
|
+
Se.call(o, P) && !jr.hasOwnProperty(P) && (w[P] = o[P]);
|
|
450
450
|
if (r && r.defaultProps) {
|
|
451
451
|
var C = r.defaultProps;
|
|
452
|
-
for (
|
|
453
|
-
w[
|
|
452
|
+
for (P in C)
|
|
453
|
+
w[P] === void 0 && (w[P] = C[P]);
|
|
454
454
|
}
|
|
455
|
-
if (
|
|
456
|
-
var
|
|
457
|
-
|
|
455
|
+
if (T || M) {
|
|
456
|
+
var A = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
457
|
+
T && Pr(w, A), M && $r(w, A);
|
|
458
458
|
}
|
|
459
|
-
return Cr(r,
|
|
459
|
+
return Cr(r, T, M, O, x, Ue.current, w);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
462
|
+
var Ae = p.ReactCurrentOwner, Ke = p.ReactDebugCurrentFrame;
|
|
463
|
+
function Z(r) {
|
|
464
464
|
if (r) {
|
|
465
|
-
var o = r._owner, m =
|
|
466
|
-
|
|
465
|
+
var o = r._owner, m = xe(r.type, r._source, o ? o.type : null);
|
|
466
|
+
Ke.setExtraStackFrame(m);
|
|
467
467
|
} else
|
|
468
|
-
|
|
468
|
+
Ke.setExtraStackFrame(null);
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
function
|
|
470
|
+
var Ne;
|
|
471
|
+
Ne = !1;
|
|
472
|
+
function qe(r) {
|
|
473
473
|
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Je() {
|
|
476
476
|
{
|
|
477
|
-
if (
|
|
478
|
-
var r =
|
|
477
|
+
if (Ae.current) {
|
|
478
|
+
var r = B(Ae.current.type);
|
|
479
479
|
if (r)
|
|
480
480
|
return `
|
|
481
481
|
|
|
@@ -487,10 +487,10 @@ Check the render method of \`` + r + "`.";
|
|
|
487
487
|
function Nr(r) {
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
|
-
var
|
|
490
|
+
var Xe = {};
|
|
491
491
|
function qr(r) {
|
|
492
492
|
{
|
|
493
|
-
var o =
|
|
493
|
+
var o = Je();
|
|
494
494
|
if (!o) {
|
|
495
495
|
var m = typeof r == "string" ? r : r.displayName || r.name;
|
|
496
496
|
m && (o = `
|
|
@@ -500,35 +500,35 @@ Check the top-level render call using <` + m + ">.");
|
|
|
500
500
|
return o;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Qe(r, o) {
|
|
504
504
|
{
|
|
505
505
|
if (!r._store || r._store.validated || r.key != null)
|
|
506
506
|
return;
|
|
507
507
|
r._store.validated = !0;
|
|
508
508
|
var m = qr(o);
|
|
509
|
-
if (
|
|
509
|
+
if (Xe[m])
|
|
510
510
|
return;
|
|
511
|
-
|
|
511
|
+
Xe[m] = !0;
|
|
512
512
|
var x = "";
|
|
513
|
-
r && r._owner && r._owner !==
|
|
513
|
+
r && r._owner && r._owner !== Ae.current && (x = " It was passed a child from " + B(r._owner.type) + "."), Z(r), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), Z(null);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ze(r, o) {
|
|
517
517
|
{
|
|
518
518
|
if (typeof r != "object")
|
|
519
519
|
return;
|
|
520
|
-
if (
|
|
520
|
+
if (Ce(r))
|
|
521
521
|
for (var m = 0; m < r.length; m++) {
|
|
522
522
|
var x = r[m];
|
|
523
|
-
|
|
523
|
+
qe(x) && Qe(x, o);
|
|
524
524
|
}
|
|
525
|
-
else if (
|
|
525
|
+
else if (qe(r))
|
|
526
526
|
r._store && (r._store.validated = !0);
|
|
527
527
|
else if (r) {
|
|
528
528
|
var O = h(r);
|
|
529
529
|
if (typeof O == "function" && O !== r.entries)
|
|
530
|
-
for (var
|
|
531
|
-
|
|
530
|
+
for (var P = O.call(r), w; !(w = P.next()).done; )
|
|
531
|
+
qe(w.value) && Qe(w.value, o);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -547,11 +547,11 @@ Check the top-level render call using <` + m + ">.");
|
|
|
547
547
|
else
|
|
548
548
|
return;
|
|
549
549
|
if (m) {
|
|
550
|
-
var x =
|
|
551
|
-
|
|
552
|
-
} else if (o.PropTypes !== void 0 &&
|
|
553
|
-
|
|
554
|
-
var O =
|
|
550
|
+
var x = B(o);
|
|
551
|
+
Sr(m, r.props, "prop", x, r);
|
|
552
|
+
} else if (o.PropTypes !== void 0 && !Ne) {
|
|
553
|
+
Ne = !0;
|
|
554
|
+
var O = B(o);
|
|
555
555
|
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
556
556
|
}
|
|
557
557
|
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -562,58 +562,58 @@ Check the top-level render call using <` + m + ">.");
|
|
|
562
562
|
for (var o = Object.keys(r.props), m = 0; m < o.length; m++) {
|
|
563
563
|
var x = o[m];
|
|
564
564
|
if (x !== "children" && x !== "key") {
|
|
565
|
-
|
|
565
|
+
Z(r), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Z(null);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
r.ref !== null && (
|
|
569
|
+
r.ref !== null && (Z(r), j("Invalid attribute `ref` supplied to `React.Fragment`."), Z(null));
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function er(r, o, m, x, O, P) {
|
|
573
573
|
{
|
|
574
|
-
var w =
|
|
574
|
+
var w = Pe(r);
|
|
575
575
|
if (!w) {
|
|
576
|
-
var
|
|
577
|
-
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (
|
|
576
|
+
var T = "";
|
|
577
|
+
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
578
|
var M = Nr();
|
|
579
|
-
M ?
|
|
579
|
+
M ? T += M : T += Je();
|
|
580
580
|
var C;
|
|
581
|
-
r === null ? C = "null" :
|
|
581
|
+
r === null ? C = "null" : Ce(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (B(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, T);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
583
|
+
var A = Ar(r, o, m, O, P);
|
|
584
|
+
if (A == null)
|
|
585
|
+
return A;
|
|
586
586
|
if (w) {
|
|
587
587
|
var k = o.children;
|
|
588
588
|
if (k !== void 0)
|
|
589
589
|
if (x)
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
|
|
590
|
+
if (Ce(k)) {
|
|
591
|
+
for (var ee = 0; ee < k.length; ee++)
|
|
592
|
+
Ze(k[ee], r);
|
|
593
593
|
Object.freeze && Object.freeze(k);
|
|
594
594
|
} else
|
|
595
595
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
|
|
597
|
+
Ze(k, r);
|
|
598
598
|
}
|
|
599
|
-
return r === a ? kr(
|
|
599
|
+
return r === a ? kr(A) : Mr(A), A;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
function Dr(r, o, m) {
|
|
603
|
-
return
|
|
603
|
+
return er(r, o, m, !0);
|
|
604
604
|
}
|
|
605
605
|
function Ir(r, o, m) {
|
|
606
|
-
return
|
|
606
|
+
return er(r, o, m, !1);
|
|
607
607
|
}
|
|
608
608
|
var Vr = Ir, Fr = Dr;
|
|
609
|
-
|
|
610
|
-
}()),
|
|
609
|
+
ve.Fragment = a, ve.jsx = Vr, ve.jsxs = Fr;
|
|
610
|
+
}()), ve;
|
|
611
611
|
}
|
|
612
|
-
var
|
|
612
|
+
var ar;
|
|
613
613
|
function Hr() {
|
|
614
|
-
return
|
|
614
|
+
return ar || (ar = 1, process.env.NODE_ENV === "production" ? Te.exports = Br() : Te.exports = zr()), Te.exports;
|
|
615
615
|
}
|
|
616
|
-
var v = Hr(),
|
|
616
|
+
var v = Hr(), we = (e) => `--${e}`, ir = (e) => `var(--${e})`, or = (e, t) => `--${e}: ${t};`;
|
|
617
617
|
function Wr(e, t) {
|
|
618
618
|
const n = (a) => t;
|
|
619
619
|
return {
|
|
@@ -629,58 +629,58 @@ function Wr(e, t) {
|
|
|
629
629
|
cbem: (a, i) => `.${n()}-${e}__${a}--${i}`,
|
|
630
630
|
cbs: (a) => `.${n()}-${e}-${a}`,
|
|
631
631
|
cns: (a) => `.${n()}-${a}`,
|
|
632
|
-
cv: (a) =>
|
|
632
|
+
cv: (a) => we(`${n()}-${e}-${a}`),
|
|
633
633
|
cvm: (a, i = {}) => {
|
|
634
|
-
const
|
|
635
|
-
for (const
|
|
636
|
-
i[
|
|
634
|
+
const l = n();
|
|
635
|
+
for (const y of Object.keys(a))
|
|
636
|
+
i[we(`${l}-${e}-${y}`)] = a[y];
|
|
637
637
|
return i;
|
|
638
638
|
},
|
|
639
|
-
gcv: (a) =>
|
|
640
|
-
scv: (a, i) =>
|
|
641
|
-
nv: (a) =>
|
|
639
|
+
gcv: (a) => ir(`${n()}-${e}-${a}`),
|
|
640
|
+
scv: (a, i) => or(`${n()}-${e}-${a}`, i),
|
|
641
|
+
nv: (a) => we(`${n()}-${a}`),
|
|
642
642
|
nvm: (a, i = {}) => {
|
|
643
|
-
const
|
|
644
|
-
for (const
|
|
645
|
-
i[
|
|
643
|
+
const l = n();
|
|
644
|
+
for (const y of Object.keys(a))
|
|
645
|
+
i[we(`${l}-${y}`)] = a[y];
|
|
646
646
|
return i;
|
|
647
647
|
},
|
|
648
|
-
gnv: (a) =>
|
|
649
|
-
snv: (a, i) =>
|
|
648
|
+
gnv: (a) => ir(`${n()}-${a}`),
|
|
649
|
+
snv: (a, i) => or(`${n()}-${a}`, i)
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function U(e) {
|
|
653
653
|
return K(() => Wr(e, "twist"), [e]);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Me(e, t) {
|
|
656
656
|
if (!t.current) return 0;
|
|
657
657
|
let n = (e.clientX - t.current.getBoundingClientRect().left) / t.current.clientWidth;
|
|
658
658
|
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function ke(e, t) {
|
|
661
661
|
if (!t.current) return 0;
|
|
662
662
|
let n = 1 - (e.clientY - t.current.getBoundingClientRect().top) / t.current.clientHeight;
|
|
663
663
|
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
664
664
|
}
|
|
665
|
-
var
|
|
665
|
+
var mr = {
|
|
666
666
|
color: void 0,
|
|
667
667
|
size: void 0,
|
|
668
668
|
className: void 0,
|
|
669
669
|
style: void 0,
|
|
670
670
|
attrs: void 0
|
|
671
|
-
},
|
|
672
|
-
|
|
673
|
-
function
|
|
671
|
+
}, Ve = /* @__PURE__ */ te.createContext(mr);
|
|
672
|
+
Ve.Provider;
|
|
673
|
+
function me(e) {
|
|
674
674
|
"@babel/helpers - typeof";
|
|
675
|
-
return
|
|
675
|
+
return me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
676
676
|
return typeof t;
|
|
677
677
|
} : function(t) {
|
|
678
678
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
679
|
-
},
|
|
679
|
+
}, me(e);
|
|
680
680
|
}
|
|
681
681
|
var Ur = ["attrs", "size", "title", "spin", "rotate", "color"];
|
|
682
682
|
function Yr(e, t) {
|
|
683
|
-
return Jr(e) || Kr(e, t) ||
|
|
683
|
+
return Jr(e) || Kr(e, t) || hr(e, t) || Gr();
|
|
684
684
|
}
|
|
685
685
|
function Gr() {
|
|
686
686
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -689,14 +689,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
689
689
|
function Kr(e, t) {
|
|
690
690
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
691
691
|
if (n != null) {
|
|
692
|
-
var a, i,
|
|
692
|
+
var a, i, l, y, g = [], s = !0, d = !1;
|
|
693
693
|
try {
|
|
694
|
-
if (
|
|
694
|
+
if (l = (n = n.call(e)).next, t !== 0) for (; !(s = (a = l.call(n)).done) && (g.push(a.value), g.length !== t); s = !0) ;
|
|
695
695
|
} catch (E) {
|
|
696
696
|
d = !0, i = E;
|
|
697
697
|
} finally {
|
|
698
698
|
try {
|
|
699
|
-
if (!s && n.return != null && (
|
|
699
|
+
if (!s && n.return != null && (y = n.return(), Object(y) !== y)) return;
|
|
700
700
|
} finally {
|
|
701
701
|
if (d) throw i;
|
|
702
702
|
}
|
|
@@ -710,7 +710,7 @@ function Jr(e) {
|
|
|
710
710
|
function Xr(e, t) {
|
|
711
711
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
712
712
|
if (!n) {
|
|
713
|
-
if (Array.isArray(e) || (n =
|
|
713
|
+
if (Array.isArray(e) || (n = hr(e)) || t) {
|
|
714
714
|
n && (e = n);
|
|
715
715
|
var a = 0, i = function() {
|
|
716
716
|
};
|
|
@@ -723,44 +723,44 @@ function Xr(e, t) {
|
|
|
723
723
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
724
724
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
725
725
|
}
|
|
726
|
-
var
|
|
726
|
+
var l, y = !0, g = !1;
|
|
727
727
|
return { s: function() {
|
|
728
728
|
n = n.call(e);
|
|
729
729
|
}, n: function() {
|
|
730
730
|
var d = n.next();
|
|
731
|
-
return
|
|
731
|
+
return y = d.done, d;
|
|
732
732
|
}, e: function(d) {
|
|
733
|
-
g = !0,
|
|
733
|
+
g = !0, l = d;
|
|
734
734
|
}, f: function() {
|
|
735
735
|
try {
|
|
736
|
-
|
|
736
|
+
y || n.return == null || n.return();
|
|
737
737
|
} finally {
|
|
738
|
-
if (g) throw
|
|
738
|
+
if (g) throw l;
|
|
739
739
|
}
|
|
740
740
|
} };
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function hr(e, t) {
|
|
743
743
|
if (e) {
|
|
744
|
-
if (typeof e == "string") return
|
|
744
|
+
if (typeof e == "string") return ur(e, t);
|
|
745
745
|
var n = {}.toString.call(e).slice(8, -1);
|
|
746
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
746
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ur(e, t) : void 0;
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function ur(e, t) {
|
|
750
750
|
(t == null || t > e.length) && (t = e.length);
|
|
751
751
|
for (var n = 0, a = Array(t); n < t; n++) a[n] = e[n];
|
|
752
752
|
return a;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
return
|
|
754
|
+
function Oe() {
|
|
755
|
+
return Oe = Object.assign ? Object.assign.bind() : function(e) {
|
|
756
756
|
for (var t = 1; t < arguments.length; t++) {
|
|
757
757
|
var n = arguments[t];
|
|
758
758
|
for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
759
759
|
}
|
|
760
760
|
return e;
|
|
761
|
-
},
|
|
761
|
+
}, Oe.apply(null, arguments);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function sr(e, t) {
|
|
764
764
|
var n = Object.keys(e);
|
|
765
765
|
if (Object.getOwnPropertySymbols) {
|
|
766
766
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -770,12 +770,12 @@ function or(e, t) {
|
|
|
770
770
|
}
|
|
771
771
|
return n;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function he(e) {
|
|
774
774
|
for (var t = 1; t < arguments.length; t++) {
|
|
775
775
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
776
|
-
t % 2 ?
|
|
776
|
+
t % 2 ? sr(Object(n), !0).forEach(function(a) {
|
|
777
777
|
Qr(e, a, n[a]);
|
|
778
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
778
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sr(Object(n)).forEach(function(a) {
|
|
779
779
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
780
780
|
});
|
|
781
781
|
}
|
|
@@ -786,14 +786,14 @@ function Qr(e, t, n) {
|
|
|
786
786
|
}
|
|
787
787
|
function Zr(e) {
|
|
788
788
|
var t = et(e, "string");
|
|
789
|
-
return
|
|
789
|
+
return me(t) == "symbol" ? t : t + "";
|
|
790
790
|
}
|
|
791
791
|
function et(e, t) {
|
|
792
|
-
if (
|
|
792
|
+
if (me(e) != "object" || !e) return e;
|
|
793
793
|
var n = e[Symbol.toPrimitive];
|
|
794
794
|
if (n !== void 0) {
|
|
795
795
|
var a = n.call(e, t);
|
|
796
|
-
if (
|
|
796
|
+
if (me(a) != "object") return a;
|
|
797
797
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
798
798
|
}
|
|
799
799
|
return (t === "string" ? String : Number)(e);
|
|
@@ -802,8 +802,8 @@ function rt(e, t) {
|
|
|
802
802
|
if (e == null) return {};
|
|
803
803
|
var n, a, i = tt(e, t);
|
|
804
804
|
if (Object.getOwnPropertySymbols) {
|
|
805
|
-
var
|
|
806
|
-
for (a = 0; a <
|
|
805
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
806
|
+
for (a = 0; a < l.length; a++) n = l[a], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
807
807
|
}
|
|
808
808
|
return i;
|
|
809
809
|
}
|
|
@@ -817,30 +817,30 @@ function tt(e, t) {
|
|
|
817
817
|
return n;
|
|
818
818
|
}
|
|
819
819
|
function nt(e) {
|
|
820
|
-
var t = e.attrs, n = e.size, a = e.title, i = e.spin,
|
|
821
|
-
var b = n || E.size || "1em", f,
|
|
822
|
-
return E.className && (f = E.className), e.className && (f = f ? "".concat(f, " ").concat(e.className) : e.className), i && (f ? f += " twist-icon-loading" : f = "twist-icon-loading"),
|
|
820
|
+
var t = e.attrs, n = e.size, a = e.title, i = e.spin, l = e.rotate, y = e.color, g = rt(e, Ur), s = function(E) {
|
|
821
|
+
var b = n || E.size || "1em", f, c = "", _ = "";
|
|
822
|
+
return E.className && (f = E.className), e.className && (f = f ? "".concat(f, " ").concat(e.className) : e.className), i && (f ? f += " twist-icon-loading" : f = "twist-icon-loading"), l && (c = "rotate(".concat(l, "deg)"), _ = "rotate(".concat(l, "deg)")), /* @__PURE__ */ te.createElement("svg", Oe({
|
|
823
823
|
xmlns: "http://www.w3.org/2000/svg"
|
|
824
824
|
}, E.attrs, t, g, {
|
|
825
825
|
className: f,
|
|
826
|
-
style:
|
|
827
|
-
color:
|
|
828
|
-
msTransform:
|
|
826
|
+
style: he(he({
|
|
827
|
+
color: y || E.color,
|
|
828
|
+
msTransform: c,
|
|
829
829
|
transform: _
|
|
830
830
|
}, E.style), e.style),
|
|
831
831
|
width: b,
|
|
832
832
|
height: b
|
|
833
|
-
}), a && /* @__PURE__ */
|
|
833
|
+
}), a && /* @__PURE__ */ te.createElement("title", null, a), e.children);
|
|
834
834
|
};
|
|
835
|
-
return
|
|
835
|
+
return Ve !== void 0 ? /* @__PURE__ */ te.createElement(Ve.Consumer, null, function(d) {
|
|
836
836
|
return s(d);
|
|
837
|
-
}) : s(
|
|
837
|
+
}) : s(mr);
|
|
838
838
|
}
|
|
839
839
|
function at(e) {
|
|
840
840
|
var t = {}, n = e.split(";"), a = Xr(n), i;
|
|
841
841
|
try {
|
|
842
842
|
for (a.s(); !(i = a.n()).done; ) {
|
|
843
|
-
var
|
|
843
|
+
var l = i.value, y = l.split(":"), g = Yr(y, 2), s = g[0], d = g[1];
|
|
844
844
|
if (s && d) {
|
|
845
845
|
var E = s.trim().replace(/-./g, function(b) {
|
|
846
846
|
return b.charAt(1).toUpperCase();
|
|
@@ -855,19 +855,19 @@ function at(e) {
|
|
|
855
855
|
}
|
|
856
856
|
return t;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function pr(e) {
|
|
859
859
|
return e && e.map(function(t, n) {
|
|
860
|
-
return /* @__PURE__ */
|
|
860
|
+
return /* @__PURE__ */ te.createElement(t.tag, he(he({}, t.attrs), {}, {
|
|
861
861
|
key: n,
|
|
862
862
|
style: t.attrs.style ? at(t.attrs.style) : null
|
|
863
|
-
}),
|
|
863
|
+
}), pr(t.children));
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
866
|
function q(e) {
|
|
867
867
|
return function(t) {
|
|
868
|
-
return /* @__PURE__ */
|
|
869
|
-
attrs:
|
|
870
|
-
}, t),
|
|
868
|
+
return /* @__PURE__ */ te.createElement(nt, Oe({
|
|
869
|
+
attrs: he({}, e.attrs)
|
|
870
|
+
}, t), pr(e.children));
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
873
|
function it(e) {
|
|
@@ -876,17 +876,17 @@ function it(e) {
|
|
|
876
876
|
function ot(e) {
|
|
877
877
|
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M18.25 12L8.5 17.629V6.37z" } }] })(e);
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function yr(e) {
|
|
880
880
|
var t, n, a = "";
|
|
881
881
|
if (typeof e == "string" || typeof e == "number") a += e;
|
|
882
882
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
883
883
|
var i = e.length;
|
|
884
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
884
|
+
for (t = 0; t < i; t++) e[t] && (n = yr(e[t])) && (a && (a += " "), a += n);
|
|
885
885
|
} else for (n in e) e[n] && (a && (a += " "), a += n);
|
|
886
886
|
return a;
|
|
887
887
|
}
|
|
888
888
|
function $() {
|
|
889
|
-
for (var e, t, n = 0, a = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
889
|
+
for (var e, t, n = 0, a = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = yr(e)) && (a && (a += " "), a += t);
|
|
890
890
|
return a;
|
|
891
891
|
}
|
|
892
892
|
function ut({
|
|
@@ -894,36 +894,36 @@ function ut({
|
|
|
894
894
|
playedPercentage: t,
|
|
895
895
|
onSeek: n
|
|
896
896
|
}) {
|
|
897
|
-
const a =
|
|
898
|
-
|
|
897
|
+
const a = U("aplayer-bar"), i = U("aplayer-icon"), l = D(null), [y, g] = W(t), s = D(!1);
|
|
898
|
+
I(() => {
|
|
899
899
|
s.current || g(t);
|
|
900
900
|
}, [t]);
|
|
901
|
-
const d =
|
|
901
|
+
const d = L(
|
|
902
902
|
(E) => {
|
|
903
903
|
s.current = !0;
|
|
904
|
-
const b =
|
|
904
|
+
const b = Me(E, l);
|
|
905
905
|
g(b);
|
|
906
906
|
const f = (_) => {
|
|
907
|
-
const u =
|
|
907
|
+
const u = Me(_, l);
|
|
908
908
|
g(u);
|
|
909
|
-
},
|
|
910
|
-
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup",
|
|
911
|
-
const u =
|
|
909
|
+
}, c = (_) => {
|
|
910
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", c);
|
|
911
|
+
const u = Me(_, l);
|
|
912
912
|
g(u), n == null || n(u), s.current = !1;
|
|
913
913
|
};
|
|
914
|
-
document.addEventListener("mousemove", f), document.addEventListener("mouseup",
|
|
914
|
+
document.addEventListener("mousemove", f), document.addEventListener("mouseup", c);
|
|
915
915
|
},
|
|
916
916
|
[n]
|
|
917
917
|
);
|
|
918
918
|
return /* @__PURE__ */ v.jsx(
|
|
919
919
|
"div",
|
|
920
920
|
{
|
|
921
|
-
ref:
|
|
921
|
+
ref: l,
|
|
922
922
|
className: $(a.b(), a.bs("vars")),
|
|
923
923
|
onMouseDown: d,
|
|
924
924
|
role: "slider",
|
|
925
925
|
"aria-label": "Audio progress",
|
|
926
|
-
"aria-valuenow":
|
|
926
|
+
"aria-valuenow": y ? y * 100 : 0,
|
|
927
927
|
"aria-valuemin": 0,
|
|
928
928
|
"aria-valuemax": 100,
|
|
929
929
|
"aria-live": "polite",
|
|
@@ -935,12 +935,12 @@ function ut({
|
|
|
935
935
|
style: { width: `${e * 100}%` }
|
|
936
936
|
}
|
|
937
937
|
) : null,
|
|
938
|
-
typeof
|
|
938
|
+
typeof y < "u" ? /* @__PURE__ */ v.jsx(
|
|
939
939
|
"div",
|
|
940
940
|
{
|
|
941
941
|
className: a.be("played"),
|
|
942
942
|
style: {
|
|
943
|
-
width: `${
|
|
943
|
+
width: `${y * 100}%`
|
|
944
944
|
},
|
|
945
945
|
children: /* @__PURE__ */ v.jsx(
|
|
946
946
|
"span",
|
|
@@ -958,10 +958,10 @@ function ut({
|
|
|
958
958
|
function st(e) {
|
|
959
959
|
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z" } }] })(e);
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function ct(e) {
|
|
962
962
|
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M10.5 17q1.05 0 1.775-.725T13 14.5V9h3V7h-4v5.5q-.325-.225-.7-.363T10.5 12q-1.05 0-1.775.725T8 14.5t.725 1.775T10.5 17M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20z" } }] })(e);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function lt(e) {
|
|
965
965
|
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14 19V5h4v14zm-8 0V5h4v14z" } }] })(e);
|
|
966
966
|
}
|
|
967
967
|
function ft(e) {
|
|
@@ -979,22 +979,22 @@ function mt(e) {
|
|
|
979
979
|
function ht(e) {
|
|
980
980
|
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7 15V9h4l5-5v16l-5-5z" } }] })(e);
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function pt(e) {
|
|
983
983
|
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M19 11.975q0-2.075-1.1-3.787t-2.95-2.563q-.375-.175-.55-.537t-.05-.738q.15-.4.538-.575t.787 0Q18.1 4.85 19.55 7.063T21 11.974t-1.45 4.913t-3.875 3.287q-.4.175-.788 0t-.537-.575q-.125-.375.05-.737t.55-.538q1.85-.85 2.95-2.562t1.1-3.788M7 15H4q-.425 0-.712-.288T3 14v-4q0-.425.288-.712T4 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T10.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.513.013T14 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2" } }] })(e);
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function yt({
|
|
986
986
|
volume: e,
|
|
987
987
|
muted: t,
|
|
988
988
|
onToggleMuted: n,
|
|
989
989
|
onChangeVolume: a
|
|
990
990
|
}) {
|
|
991
|
-
const i =
|
|
991
|
+
const i = U("aplayer-volumn"), l = U("aplayer-icon"), y = D(null), [g, s] = W(!1), d = L(
|
|
992
992
|
(E) => {
|
|
993
|
-
a(
|
|
994
|
-
const b = (
|
|
995
|
-
a(
|
|
996
|
-
}, f = (
|
|
997
|
-
document.removeEventListener("mouseup", f), document.removeEventListener("mousemove", b), s(!1), a(
|
|
993
|
+
a(ke(E, y)), s(!0);
|
|
994
|
+
const b = (c) => {
|
|
995
|
+
a(ke(c, y));
|
|
996
|
+
}, f = (c) => {
|
|
997
|
+
document.removeEventListener("mouseup", f), document.removeEventListener("mousemove", b), s(!1), a(ke(c, y));
|
|
998
998
|
};
|
|
999
999
|
document.addEventListener("mousemove", b), document.addEventListener("mouseup", f);
|
|
1000
1000
|
},
|
|
@@ -1005,10 +1005,10 @@ function pt({
|
|
|
1005
1005
|
"button",
|
|
1006
1006
|
{
|
|
1007
1007
|
type: "button",
|
|
1008
|
-
className: $(
|
|
1008
|
+
className: $(l.b(), l.bs("volume-down")),
|
|
1009
1009
|
onClick: () => n(),
|
|
1010
1010
|
"aria-label": t || !e ? "Muted" : "unMuted",
|
|
1011
|
-
children: t || !e ? /* @__PURE__ */ v.jsx(ht, {}) : e >= 1 ? /* @__PURE__ */ v.jsx(
|
|
1011
|
+
children: t || !e ? /* @__PURE__ */ v.jsx(ht, {}) : e >= 1 ? /* @__PURE__ */ v.jsx(pt, {}) : /* @__PURE__ */ v.jsx(mt, {})
|
|
1012
1012
|
}
|
|
1013
1013
|
),
|
|
1014
1014
|
/* @__PURE__ */ v.jsx(
|
|
@@ -1017,7 +1017,7 @@ function pt({
|
|
|
1017
1017
|
className: $(i.be("bar-wrap"), {
|
|
1018
1018
|
[i.bem("bar-wrap", "active")]: g
|
|
1019
1019
|
}),
|
|
1020
|
-
ref:
|
|
1020
|
+
ref: y,
|
|
1021
1021
|
onMouseDown: d,
|
|
1022
1022
|
children: /* @__PURE__ */ v.jsx("div", { className: i.be("bar"), children: /* @__PURE__ */ v.jsx(
|
|
1023
1023
|
"div",
|
|
@@ -1032,15 +1032,15 @@ function pt({
|
|
|
1032
1032
|
)
|
|
1033
1033
|
] });
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function cr(e) {
|
|
1036
1036
|
if (typeof e > "u")
|
|
1037
1037
|
return "--:--";
|
|
1038
1038
|
if (Number.isNaN(e))
|
|
1039
1039
|
return "00:00";
|
|
1040
|
-
const t = (
|
|
1040
|
+
const t = (y) => y < 10 ? `0${y}` : `${y}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), l = Math.trunc(
|
|
1041
1041
|
e / 60 - 60 * Math.trunc(e / 60 / 60)
|
|
1042
1042
|
);
|
|
1043
|
-
return e >= 3600 ? `${t(i)}:${t(
|
|
1043
|
+
return e >= 3600 ? `${t(i)}:${t(l)}:${t(a)}` : `${t(n)}:${t(a)}`;
|
|
1044
1044
|
}
|
|
1045
1045
|
function bt(e) {
|
|
1046
1046
|
return q({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9m320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9" } }] })(e);
|
|
@@ -1054,48 +1054,48 @@ function Et(e) {
|
|
|
1054
1054
|
function xt(e) {
|
|
1055
1055
|
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2 5.27L3.28 4L20 20.72L18.73 22l-3-3H7v3l-4-4l4-4v3h6.73L7 10.27V11H5V8.27zM17 13h2v4.18l-2-2zm0-8V2l4 4l-4 4V7H8.82l-2-2z" } }] })(e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function St(e) {
|
|
1058
1058
|
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "m17 3l5.25 4.5L17 12l5.25 4.5L17 21v-3h-2.74l-2.82-2.82l2.12-2.12L15.5 15H17V9h-1.5l-9 9H2v-3h3.26l9-9H17zM2 6h4.5l2.82 2.82l-2.12 2.12L5.26 9H2z" } }] })(e);
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function _t({
|
|
1061
1061
|
volume: e,
|
|
1062
1062
|
onChangeVolume: t,
|
|
1063
1063
|
muted: n,
|
|
1064
1064
|
currentTime: a,
|
|
1065
1065
|
audioDurationSeconds: i,
|
|
1066
|
-
bufferedSeconds:
|
|
1067
|
-
onToggleMenu:
|
|
1066
|
+
bufferedSeconds: l,
|
|
1067
|
+
onToggleMenu: y,
|
|
1068
1068
|
onToggleMuted: g,
|
|
1069
1069
|
order: s,
|
|
1070
1070
|
onOrderChange: d,
|
|
1071
1071
|
loop: E,
|
|
1072
1072
|
onLoopChange: b,
|
|
1073
1073
|
onSeek: f,
|
|
1074
|
-
isPlaying:
|
|
1074
|
+
isPlaying: c,
|
|
1075
1075
|
onTogglePlay: _,
|
|
1076
1076
|
onSkipForward: u,
|
|
1077
1077
|
onSkipBack: h,
|
|
1078
|
-
showLyrics:
|
|
1078
|
+
showLyrics: p = !0,
|
|
1079
1079
|
onToggleLyrics: j
|
|
1080
1080
|
}) {
|
|
1081
|
-
const
|
|
1082
|
-
const
|
|
1081
|
+
const N = U("aplayer-controller"), S = U("aplayer-icon"), J = L(() => {
|
|
1082
|
+
const V = {
|
|
1083
1083
|
list: "random",
|
|
1084
1084
|
random: "list"
|
|
1085
1085
|
}[s];
|
|
1086
|
-
d(
|
|
1087
|
-
}, [s, d]),
|
|
1088
|
-
const
|
|
1086
|
+
d(V);
|
|
1087
|
+
}, [s, d]), ne = L(() => {
|
|
1088
|
+
const V = {
|
|
1089
1089
|
all: "one",
|
|
1090
1090
|
one: "none",
|
|
1091
1091
|
none: "all"
|
|
1092
1092
|
}[E];
|
|
1093
|
-
b(
|
|
1093
|
+
b(V);
|
|
1094
1094
|
}, [E, b]);
|
|
1095
1095
|
return /* @__PURE__ */ v.jsxs(
|
|
1096
1096
|
"div",
|
|
1097
1097
|
{
|
|
1098
|
-
className: $(
|
|
1098
|
+
className: $(N.b(), N.bs("vars")),
|
|
1099
1099
|
role: "group",
|
|
1100
1100
|
"aria-label": "Audio Controls",
|
|
1101
1101
|
children: [
|
|
@@ -1103,20 +1103,20 @@ function St({
|
|
|
1103
1103
|
ut,
|
|
1104
1104
|
{
|
|
1105
1105
|
playedPercentage: typeof a > "u" || typeof i > "u" ? void 0 : a / i,
|
|
1106
|
-
bufferedPercentage: typeof
|
|
1107
|
-
onSeek: (
|
|
1106
|
+
bufferedPercentage: typeof l > "u" || typeof i > "u" ? void 0 : l / i,
|
|
1107
|
+
onSeek: (V) => f == null ? void 0 : f(V * i)
|
|
1108
1108
|
}
|
|
1109
1109
|
),
|
|
1110
|
-
/* @__PURE__ */ v.jsxs("div", { className:
|
|
1111
|
-
/* @__PURE__ */ v.jsxs("span", { className:
|
|
1112
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1110
|
+
/* @__PURE__ */ v.jsxs("div", { className: N.be("time"), children: [
|
|
1111
|
+
/* @__PURE__ */ v.jsxs("span", { className: N.be("time-inner"), "aria-live": "polite", children: [
|
|
1112
|
+
/* @__PURE__ */ v.jsx("span", { className: N.be("ptime"), children: cr(a) }),
|
|
1113
1113
|
" / ",
|
|
1114
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1114
|
+
/* @__PURE__ */ v.jsx("span", { className: N.be("dtime"), children: cr(i) })
|
|
1115
1115
|
] }),
|
|
1116
1116
|
/* @__PURE__ */ v.jsx(
|
|
1117
1117
|
"button",
|
|
1118
1118
|
{
|
|
1119
|
-
className: $(
|
|
1119
|
+
className: $(S.b(), S.bs("back")),
|
|
1120
1120
|
onClick: h,
|
|
1121
1121
|
type: "button",
|
|
1122
1122
|
"aria-label": "Previous track",
|
|
@@ -1126,17 +1126,17 @@ function St({
|
|
|
1126
1126
|
/* @__PURE__ */ v.jsx(
|
|
1127
1127
|
"button",
|
|
1128
1128
|
{
|
|
1129
|
-
className: $(
|
|
1129
|
+
className: $(S.b(), S.bs("play")),
|
|
1130
1130
|
onClick: _,
|
|
1131
1131
|
type: "button",
|
|
1132
|
-
"aria-label":
|
|
1133
|
-
children:
|
|
1132
|
+
"aria-label": c ? "Pause audio" : "Play audio",
|
|
1133
|
+
children: c ? /* @__PURE__ */ v.jsx(lt, {}) : /* @__PURE__ */ v.jsx(ft, {})
|
|
1134
1134
|
}
|
|
1135
1135
|
),
|
|
1136
1136
|
/* @__PURE__ */ v.jsx(
|
|
1137
1137
|
"button",
|
|
1138
1138
|
{
|
|
1139
|
-
className: $(
|
|
1139
|
+
className: $(S.b(), S.bs("forward")),
|
|
1140
1140
|
onClick: u,
|
|
1141
1141
|
type: "button",
|
|
1142
1142
|
"aria-label": "Next track",
|
|
@@ -1144,7 +1144,7 @@ function St({
|
|
|
1144
1144
|
}
|
|
1145
1145
|
),
|
|
1146
1146
|
/* @__PURE__ */ v.jsx(
|
|
1147
|
-
|
|
1147
|
+
yt,
|
|
1148
1148
|
{
|
|
1149
1149
|
volume: e,
|
|
1150
1150
|
muted: n,
|
|
@@ -1155,18 +1155,18 @@ function St({
|
|
|
1155
1155
|
/* @__PURE__ */ v.jsx(
|
|
1156
1156
|
"button",
|
|
1157
1157
|
{
|
|
1158
|
-
className: $(
|
|
1159
|
-
onClick:
|
|
1158
|
+
className: $(S.b(), S.bs("order")),
|
|
1159
|
+
onClick: J,
|
|
1160
1160
|
type: "button",
|
|
1161
1161
|
"aria-label": `Playback order: ${s}`,
|
|
1162
|
-
children: { list: /* @__PURE__ */ v.jsx(st, {}), random: /* @__PURE__ */ v.jsx(
|
|
1162
|
+
children: { list: /* @__PURE__ */ v.jsx(st, {}), random: /* @__PURE__ */ v.jsx(St, {}) }[s]
|
|
1163
1163
|
}
|
|
1164
1164
|
),
|
|
1165
1165
|
/* @__PURE__ */ v.jsx(
|
|
1166
1166
|
"button",
|
|
1167
1167
|
{
|
|
1168
|
-
className: $(
|
|
1169
|
-
onClick:
|
|
1168
|
+
className: $(S.b(), S.bs("order")),
|
|
1169
|
+
onClick: ne,
|
|
1170
1170
|
type: "button",
|
|
1171
1171
|
"aria-label": `Loop mode: ${E}`,
|
|
1172
1172
|
children: {
|
|
@@ -1180,8 +1180,8 @@ function St({
|
|
|
1180
1180
|
"button",
|
|
1181
1181
|
{
|
|
1182
1182
|
type: "button",
|
|
1183
|
-
className: $(
|
|
1184
|
-
onClick: () =>
|
|
1183
|
+
className: $(S.b(), S.bs("menu")),
|
|
1184
|
+
onClick: () => y == null ? void 0 : y(),
|
|
1185
1185
|
"aria-label": "Toggle playlist menu",
|
|
1186
1186
|
children: /* @__PURE__ */ v.jsx(Et, {})
|
|
1187
1187
|
}
|
|
@@ -1190,13 +1190,13 @@ function St({
|
|
|
1190
1190
|
"button",
|
|
1191
1191
|
{
|
|
1192
1192
|
type: "button",
|
|
1193
|
-
className: $(
|
|
1194
|
-
[
|
|
1193
|
+
className: $(S.b(), S.bs("lrc"), {
|
|
1194
|
+
[S.ns("lrc-inactivity")]: !p
|
|
1195
1195
|
}),
|
|
1196
1196
|
onClick: j,
|
|
1197
|
-
"aria-label":
|
|
1198
|
-
"aria-pressed":
|
|
1199
|
-
children: /* @__PURE__ */ v.jsx(
|
|
1197
|
+
"aria-label": p ? "Hide lyrics" : "Show lyrics",
|
|
1198
|
+
"aria-pressed": p,
|
|
1199
|
+
children: /* @__PURE__ */ v.jsx(ct, {})
|
|
1200
1200
|
}
|
|
1201
1201
|
)
|
|
1202
1202
|
] })
|
|
@@ -1211,8 +1211,8 @@ function Tt({
|
|
|
1211
1211
|
onPlayAudio: a,
|
|
1212
1212
|
listMaxHeight: i
|
|
1213
1213
|
}) {
|
|
1214
|
-
const
|
|
1215
|
-
return
|
|
1214
|
+
const l = U("aplayer-list"), y = i ? { maxHeight: i } : void 0, g = L((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s = D(null);
|
|
1215
|
+
return I(() => {
|
|
1216
1216
|
if (s.current) {
|
|
1217
1217
|
const d = s.current;
|
|
1218
1218
|
return d.style.maxHeight = `${Math.min(
|
|
@@ -1226,16 +1226,16 @@ function Tt({
|
|
|
1226
1226
|
"div",
|
|
1227
1227
|
{
|
|
1228
1228
|
ref: s,
|
|
1229
|
-
className: $(
|
|
1230
|
-
[
|
|
1229
|
+
className: $(l.b(), {
|
|
1230
|
+
[l.bm("hide")]: !e
|
|
1231
1231
|
}),
|
|
1232
1232
|
"aria-label": "Audio playlist",
|
|
1233
1233
|
"aria-live": "polite",
|
|
1234
|
-
children: /* @__PURE__ */ v.jsx("ol", { style:
|
|
1234
|
+
children: /* @__PURE__ */ v.jsx("ol", { style: y, children: t.map((d, E) => /* @__PURE__ */ v.jsxs(
|
|
1235
1235
|
"li",
|
|
1236
1236
|
{
|
|
1237
1237
|
className: $({
|
|
1238
|
-
[
|
|
1238
|
+
[l.bm("active")]: d.url === n
|
|
1239
1239
|
}),
|
|
1240
1240
|
onClick: () => {
|
|
1241
1241
|
d.url !== n && (a == null || a(d));
|
|
@@ -1243,10 +1243,10 @@ function Tt({
|
|
|
1243
1243
|
role: "button",
|
|
1244
1244
|
"aria-label": `${d.name ?? "Audio name"} by ${g(d.artist)}}`,
|
|
1245
1245
|
children: [
|
|
1246
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1247
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1248
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1249
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1246
|
+
/* @__PURE__ */ v.jsx("span", { className: l.be("cur") }),
|
|
1247
|
+
/* @__PURE__ */ v.jsx("span", { className: l.be("index"), children: E + 1 }),
|
|
1248
|
+
/* @__PURE__ */ v.jsx("span", { className: l.be("title"), children: d.name ?? "Audio name" }),
|
|
1249
|
+
/* @__PURE__ */ v.jsx("span", { className: l.be("author"), children: g(d.artist) })
|
|
1250
1250
|
]
|
|
1251
1251
|
},
|
|
1252
1252
|
d.name || E
|
|
@@ -1254,29 +1254,29 @@ function Tt({
|
|
|
1254
1254
|
}
|
|
1255
1255
|
);
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1258
|
-
const a =
|
|
1257
|
+
function lr({ show: e, lrcText: t, currentTime: n }) {
|
|
1258
|
+
const a = U("aplayer-lrc"), i = K(() => wt(t), [t]), l = K(() => {
|
|
1259
1259
|
for (let g = 0; g < i.length; g++) {
|
|
1260
1260
|
const s = i[g], d = i[g + 1];
|
|
1261
1261
|
if (n >= s[0] && (!d || n < d[0]))
|
|
1262
1262
|
return g;
|
|
1263
1263
|
}
|
|
1264
1264
|
return 0;
|
|
1265
|
-
}, [n, i]),
|
|
1266
|
-
transform: `translateY(${-
|
|
1267
|
-
WebkitTransform: `translateY(${-
|
|
1268
|
-
}), [
|
|
1265
|
+
}, [n, i]), y = K(() => ({
|
|
1266
|
+
transform: `translateY(${-l * 16}px)`,
|
|
1267
|
+
WebkitTransform: `translateY(${-l * 16}px)`
|
|
1268
|
+
}), [l]);
|
|
1269
1269
|
return /* @__PURE__ */ v.jsx(
|
|
1270
1270
|
"div",
|
|
1271
1271
|
{
|
|
1272
1272
|
className: $(a.b(), {
|
|
1273
1273
|
[a.bm("hide")]: !e
|
|
1274
1274
|
}),
|
|
1275
|
-
children: t ? /* @__PURE__ */ v.jsx("div", { className: a.be("contents"), style:
|
|
1275
|
+
children: t ? /* @__PURE__ */ v.jsx("div", { className: a.be("contents"), style: y, children: i.map(([, g], s) => /* @__PURE__ */ v.jsx(
|
|
1276
1276
|
"p",
|
|
1277
1277
|
{
|
|
1278
1278
|
className: $({
|
|
1279
|
-
[a.be("current")]: s ===
|
|
1279
|
+
[a.be("current")]: s === l
|
|
1280
1280
|
}),
|
|
1281
1281
|
children: g
|
|
1282
1282
|
},
|
|
@@ -1287,25 +1287,25 @@ function sr({ show: e, lrcText: t, currentTime: n }) {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
function wt(e) {
|
|
1289
1289
|
if (e) {
|
|
1290
|
-
e = e.replace(/([^\]^\n])\[/g, (i,
|
|
1290
|
+
e = e.replace(/([^\]^\n])\[/g, (i, l) => `${l}
|
|
1291
1291
|
[`);
|
|
1292
1292
|
const t = e.split(`
|
|
1293
1293
|
`), n = [], a = t.length;
|
|
1294
1294
|
for (let i = 0; i < a; i++) {
|
|
1295
|
-
const
|
|
1296
|
-
if (
|
|
1297
|
-
const g =
|
|
1295
|
+
const l = t[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), y = t[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
|
|
1296
|
+
if (l) {
|
|
1297
|
+
const g = l.length;
|
|
1298
1298
|
for (let s = 0; s < g; s++) {
|
|
1299
|
-
const d = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(
|
|
1300
|
-
n.push([
|
|
1299
|
+
const d = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(l[s]), E = d[1] * 60, b = Number.parseInt(d[2]), f = d[4] ? Number.parseInt(d[4]) / (`${d[4]}`.length === 2 ? 100 : 1e3) : 0, c = E + b + f;
|
|
1300
|
+
n.push([c, y]);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
return n.sort((i,
|
|
1304
|
+
return n.sort((i, l) => i[0] - l[0]), n;
|
|
1305
1305
|
} else
|
|
1306
1306
|
return [];
|
|
1307
1307
|
}
|
|
1308
|
-
var
|
|
1308
|
+
var je = { exports: {} }, De = {};
|
|
1309
1309
|
/**
|
|
1310
1310
|
* @license React
|
|
1311
1311
|
* use-sync-external-store-shim.production.js
|
|
@@ -1315,22 +1315,22 @@ var _e = { exports: {} }, qe = {};
|
|
|
1315
1315
|
* This source code is licensed under the MIT license found in the
|
|
1316
1316
|
* LICENSE file in the root directory of this source tree.
|
|
1317
1317
|
*/
|
|
1318
|
-
var
|
|
1318
|
+
var fr;
|
|
1319
1319
|
function jt() {
|
|
1320
|
-
if (
|
|
1321
|
-
|
|
1322
|
-
var e =
|
|
1320
|
+
if (fr) return De;
|
|
1321
|
+
fr = 1;
|
|
1322
|
+
var e = Re;
|
|
1323
1323
|
function t(b, f) {
|
|
1324
1324
|
return b === f && (b !== 0 || 1 / b === 1 / f) || b !== b && f !== f;
|
|
1325
1325
|
}
|
|
1326
|
-
var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect,
|
|
1326
|
+
var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect, l = e.useLayoutEffect, y = e.useDebugValue;
|
|
1327
1327
|
function g(b, f) {
|
|
1328
|
-
var
|
|
1329
|
-
return
|
|
1328
|
+
var c = f(), _ = a({ inst: { value: c, getSnapshot: f } }), u = _[0].inst, h = _[1];
|
|
1329
|
+
return l(
|
|
1330
1330
|
function() {
|
|
1331
|
-
u.value =
|
|
1331
|
+
u.value = c, u.getSnapshot = f, s(u) && h({ inst: u });
|
|
1332
1332
|
},
|
|
1333
|
-
[b,
|
|
1333
|
+
[b, c, f]
|
|
1334
1334
|
), i(
|
|
1335
1335
|
function() {
|
|
1336
1336
|
return s(u) && h({ inst: u }), b(function() {
|
|
@@ -1338,14 +1338,14 @@ function jt() {
|
|
|
1338
1338
|
});
|
|
1339
1339
|
},
|
|
1340
1340
|
[b]
|
|
1341
|
-
),
|
|
1341
|
+
), y(c), c;
|
|
1342
1342
|
}
|
|
1343
1343
|
function s(b) {
|
|
1344
1344
|
var f = b.getSnapshot;
|
|
1345
1345
|
b = b.value;
|
|
1346
1346
|
try {
|
|
1347
|
-
var
|
|
1348
|
-
return !n(b,
|
|
1347
|
+
var c = f();
|
|
1348
|
+
return !n(b, c);
|
|
1349
1349
|
} catch {
|
|
1350
1350
|
return !0;
|
|
1351
1351
|
}
|
|
@@ -1354,9 +1354,9 @@ function jt() {
|
|
|
1354
1354
|
return f();
|
|
1355
1355
|
}
|
|
1356
1356
|
var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : g;
|
|
1357
|
-
return
|
|
1357
|
+
return De.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E, De;
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1359
|
+
var Ie = {};
|
|
1360
1360
|
/**
|
|
1361
1361
|
* @license React
|
|
1362
1362
|
* use-sync-external-store-shim.development.js
|
|
@@ -1366,143 +1366,143 @@ var Me = {};
|
|
|
1366
1366
|
* This source code is licensed under the MIT license found in the
|
|
1367
1367
|
* LICENSE file in the root directory of this source tree.
|
|
1368
1368
|
*/
|
|
1369
|
-
var
|
|
1369
|
+
var dr;
|
|
1370
1370
|
function Ot() {
|
|
1371
|
-
return
|
|
1372
|
-
function e(
|
|
1373
|
-
return
|
|
1371
|
+
return dr || (dr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1372
|
+
function e(c, _) {
|
|
1373
|
+
return c === _ && (c !== 0 || 1 / c === 1 / _) || c !== c && _ !== _;
|
|
1374
1374
|
}
|
|
1375
|
-
function t(
|
|
1375
|
+
function t(c, _) {
|
|
1376
1376
|
E || i.startTransition === void 0 || (E = !0, console.error(
|
|
1377
1377
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
1378
1378
|
));
|
|
1379
1379
|
var u = _();
|
|
1380
1380
|
if (!b) {
|
|
1381
1381
|
var h = _();
|
|
1382
|
-
|
|
1382
|
+
l(u, h) || (console.error(
|
|
1383
1383
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
1384
1384
|
), b = !0);
|
|
1385
1385
|
}
|
|
1386
|
-
h =
|
|
1386
|
+
h = y({
|
|
1387
1387
|
inst: { value: u, getSnapshot: _ }
|
|
1388
1388
|
});
|
|
1389
|
-
var
|
|
1389
|
+
var p = h[0].inst, j = h[1];
|
|
1390
1390
|
return s(
|
|
1391
1391
|
function() {
|
|
1392
|
-
|
|
1392
|
+
p.value = u, p.getSnapshot = _, n(p) && j({ inst: p });
|
|
1393
1393
|
},
|
|
1394
|
-
[
|
|
1394
|
+
[c, u, _]
|
|
1395
1395
|
), g(
|
|
1396
1396
|
function() {
|
|
1397
|
-
return n(
|
|
1398
|
-
n(
|
|
1397
|
+
return n(p) && j({ inst: p }), c(function() {
|
|
1398
|
+
n(p) && j({ inst: p });
|
|
1399
1399
|
});
|
|
1400
1400
|
},
|
|
1401
|
-
[
|
|
1401
|
+
[c]
|
|
1402
1402
|
), d(u), u;
|
|
1403
1403
|
}
|
|
1404
|
-
function n(
|
|
1405
|
-
var _ =
|
|
1406
|
-
|
|
1404
|
+
function n(c) {
|
|
1405
|
+
var _ = c.getSnapshot;
|
|
1406
|
+
c = c.value;
|
|
1407
1407
|
try {
|
|
1408
1408
|
var u = _();
|
|
1409
|
-
return !c
|
|
1409
|
+
return !l(c, u);
|
|
1410
1410
|
} catch {
|
|
1411
1411
|
return !0;
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
|
-
function a(
|
|
1414
|
+
function a(c, _) {
|
|
1415
1415
|
return _();
|
|
1416
1416
|
}
|
|
1417
1417
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1418
|
-
var i =
|
|
1419
|
-
|
|
1420
|
-
}()),
|
|
1418
|
+
var i = Re, l = typeof Object.is == "function" ? Object.is : e, y = i.useState, g = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, E = !1, b = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
|
|
1419
|
+
Ie.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1420
|
+
}()), Ie;
|
|
1421
1421
|
}
|
|
1422
|
-
var
|
|
1422
|
+
var vr;
|
|
1423
1423
|
function Rt() {
|
|
1424
|
-
return
|
|
1424
|
+
return vr || (vr = 1, process.env.NODE_ENV === "production" ? je.exports = jt() : je.exports = Ot()), je.exports;
|
|
1425
1425
|
}
|
|
1426
1426
|
var G = Rt();
|
|
1427
|
-
const
|
|
1427
|
+
const re = [];
|
|
1428
1428
|
function Lt(e) {
|
|
1429
|
-
const t =
|
|
1430
|
-
return
|
|
1429
|
+
const t = D();
|
|
1430
|
+
return I(() => {
|
|
1431
1431
|
if (typeof window < "u" && !t.current) {
|
|
1432
1432
|
const n = t.current = document.createElement("audio");
|
|
1433
|
-
typeof (e == null ? void 0 : e.src) < "u" && (n.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (n.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (n.volume = e.initialVolume),
|
|
1433
|
+
typeof (e == null ? void 0 : e.src) < "u" && (n.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (n.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (n.volume = e.initialVolume), re.includes(n) || re.push(n);
|
|
1434
1434
|
}
|
|
1435
|
-
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]),
|
|
1435
|
+
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), I(() => {
|
|
1436
1436
|
if (typeof window > "u") return;
|
|
1437
1437
|
const n = t.current;
|
|
1438
1438
|
if (n && (e != null && e.onError))
|
|
1439
1439
|
return n.addEventListener("error", e.onError), () => {
|
|
1440
1440
|
n.removeEventListener("error", e.onError);
|
|
1441
1441
|
};
|
|
1442
|
-
}, [e == null ? void 0 : e.onError]),
|
|
1442
|
+
}, [e == null ? void 0 : e.onError]), I(() => {
|
|
1443
1443
|
if (typeof window > "u") return;
|
|
1444
1444
|
const n = t.current;
|
|
1445
1445
|
if (n && (e != null && e.onEnded))
|
|
1446
1446
|
return n.addEventListener("ended", e.onEnded), () => {
|
|
1447
1447
|
n.removeEventListener("ended", e.onEnded);
|
|
1448
1448
|
};
|
|
1449
|
-
}, [e == null ? void 0 : e.onEnded]),
|
|
1449
|
+
}, [e == null ? void 0 : e.onEnded]), I(() => () => {
|
|
1450
1450
|
const n = t.current;
|
|
1451
1451
|
if (n) {
|
|
1452
1452
|
n.pause(), n.currentTime = 0;
|
|
1453
|
-
const a =
|
|
1454
|
-
a !== -1 &&
|
|
1453
|
+
const a = re.indexOf(n);
|
|
1454
|
+
a !== -1 && re.splice(a, 1);
|
|
1455
1455
|
}
|
|
1456
1456
|
t.current = void 0;
|
|
1457
1457
|
}, []), t;
|
|
1458
1458
|
}
|
|
1459
1459
|
function Pt(e) {
|
|
1460
|
-
const t = Lt(e), n =
|
|
1461
|
-
for (let h = 0; h <
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1460
|
+
const t = Lt(e), n = L((u) => {
|
|
1461
|
+
for (let h = 0; h < re.length; h++) {
|
|
1462
|
+
const p = re[h];
|
|
1463
|
+
p !== u && !p.paused && p.pause();
|
|
1464
1464
|
}
|
|
1465
|
-
}, []), a =
|
|
1465
|
+
}, []), a = L(
|
|
1466
1466
|
async (u) => {
|
|
1467
|
-
var
|
|
1467
|
+
var p;
|
|
1468
1468
|
const h = t.current;
|
|
1469
1469
|
if (h) {
|
|
1470
1470
|
e.mutex && n(h), h.src !== u && (h.pause(), h.currentTime = 0, h.src = u);
|
|
1471
1471
|
try {
|
|
1472
|
-
await ((
|
|
1472
|
+
await ((p = t.current) == null ? void 0 : p.play());
|
|
1473
1473
|
} catch {
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
1476
|
},
|
|
1477
1477
|
[t, e.mutex, n]
|
|
1478
|
-
), i =
|
|
1478
|
+
), i = L(
|
|
1479
1479
|
(u) => {
|
|
1480
1480
|
const h = t.current;
|
|
1481
1481
|
h && (h.paused ? a(u) : h.pause());
|
|
1482
1482
|
},
|
|
1483
1483
|
[t, a]
|
|
1484
|
-
),
|
|
1484
|
+
), l = L(
|
|
1485
1485
|
(u) => {
|
|
1486
1486
|
t.current.currentTime = u;
|
|
1487
1487
|
},
|
|
1488
1488
|
[t]
|
|
1489
|
-
),
|
|
1489
|
+
), y = L(() => {
|
|
1490
1490
|
t.current && (t.current.muted = !t.current.muted);
|
|
1491
|
-
}, [t]), g =
|
|
1491
|
+
}, [t]), g = L(
|
|
1492
1492
|
(u) => {
|
|
1493
1493
|
t.current && (t.current.volume = u);
|
|
1494
1494
|
},
|
|
1495
1495
|
[t]
|
|
1496
1496
|
), s = G.useSyncExternalStore(
|
|
1497
|
-
|
|
1497
|
+
L(
|
|
1498
1498
|
(u) => {
|
|
1499
1499
|
var h;
|
|
1500
1500
|
return (h = t.current) == null || h.addEventListener(
|
|
1501
1501
|
"volumechange",
|
|
1502
1502
|
u
|
|
1503
1503
|
), () => {
|
|
1504
|
-
var
|
|
1505
|
-
(
|
|
1504
|
+
var p;
|
|
1505
|
+
(p = t.current) == null || p.removeEventListener(
|
|
1506
1506
|
"volumechange",
|
|
1507
1507
|
u
|
|
1508
1508
|
);
|
|
@@ -1517,15 +1517,15 @@ function Pt(e) {
|
|
|
1517
1517
|
() => {
|
|
1518
1518
|
}
|
|
1519
1519
|
), d = G.useSyncExternalStore(
|
|
1520
|
-
|
|
1520
|
+
L(
|
|
1521
1521
|
(u) => {
|
|
1522
1522
|
var h;
|
|
1523
1523
|
return (h = t.current) == null || h.addEventListener(
|
|
1524
1524
|
"volumechange",
|
|
1525
1525
|
u
|
|
1526
1526
|
), () => {
|
|
1527
|
-
var
|
|
1528
|
-
(
|
|
1527
|
+
var p;
|
|
1528
|
+
(p = t.current) == null || p.removeEventListener(
|
|
1529
1529
|
"volumechange",
|
|
1530
1530
|
u
|
|
1531
1531
|
);
|
|
@@ -1540,12 +1540,12 @@ function Pt(e) {
|
|
|
1540
1540
|
() => {
|
|
1541
1541
|
}
|
|
1542
1542
|
), E = G.useSyncExternalStore(
|
|
1543
|
-
|
|
1543
|
+
L(
|
|
1544
1544
|
(u) => {
|
|
1545
1545
|
var h;
|
|
1546
1546
|
return (h = t.current) == null || h.addEventListener("timeupdate", u), () => {
|
|
1547
|
-
var
|
|
1548
|
-
(
|
|
1547
|
+
var p;
|
|
1548
|
+
(p = t.current) == null || p.removeEventListener(
|
|
1549
1549
|
"timeupdate",
|
|
1550
1550
|
u
|
|
1551
1551
|
);
|
|
@@ -1560,15 +1560,15 @@ function Pt(e) {
|
|
|
1560
1560
|
() => {
|
|
1561
1561
|
}
|
|
1562
1562
|
), b = G.useSyncExternalStore(
|
|
1563
|
-
|
|
1563
|
+
L(
|
|
1564
1564
|
(u) => {
|
|
1565
1565
|
var h;
|
|
1566
1566
|
return (h = t.current) == null || h.addEventListener(
|
|
1567
1567
|
"durationchange",
|
|
1568
1568
|
u
|
|
1569
1569
|
), () => {
|
|
1570
|
-
var
|
|
1571
|
-
(
|
|
1570
|
+
var p;
|
|
1571
|
+
(p = t.current) == null || p.removeEventListener(
|
|
1572
1572
|
"durationchange",
|
|
1573
1573
|
u
|
|
1574
1574
|
);
|
|
@@ -1583,12 +1583,12 @@ function Pt(e) {
|
|
|
1583
1583
|
() => {
|
|
1584
1584
|
}
|
|
1585
1585
|
), f = G.useSyncExternalStore(
|
|
1586
|
-
|
|
1586
|
+
L(
|
|
1587
1587
|
(u) => {
|
|
1588
1588
|
var h;
|
|
1589
1589
|
return (h = t.current) == null || h.addEventListener("progress", u), () => {
|
|
1590
|
-
var
|
|
1591
|
-
(
|
|
1590
|
+
var p;
|
|
1591
|
+
(p = t.current) == null || p.removeEventListener(
|
|
1592
1592
|
"progress",
|
|
1593
1593
|
u
|
|
1594
1594
|
);
|
|
@@ -1602,13 +1602,13 @@ function Pt(e) {
|
|
|
1602
1602
|
},
|
|
1603
1603
|
() => {
|
|
1604
1604
|
}
|
|
1605
|
-
),
|
|
1606
|
-
|
|
1605
|
+
), c = G.useSyncExternalStore(
|
|
1606
|
+
L(
|
|
1607
1607
|
(u) => {
|
|
1608
|
-
var h,
|
|
1609
|
-
return (h = t.current) == null || h.addEventListener("play", u), (
|
|
1610
|
-
var j,
|
|
1611
|
-
(j = t.current) == null || j.removeEventListener("play", u), (
|
|
1608
|
+
var h, p;
|
|
1609
|
+
return (h = t.current) == null || h.addEventListener("play", u), (p = t.current) == null || p.addEventListener("pause", u), () => {
|
|
1610
|
+
var j, N;
|
|
1611
|
+
(j = t.current) == null || j.removeEventListener("play", u), (N = t.current) == null || N.removeEventListener("pause", u);
|
|
1612
1612
|
};
|
|
1613
1613
|
},
|
|
1614
1614
|
[t]
|
|
@@ -1620,15 +1620,15 @@ function Pt(e) {
|
|
|
1620
1620
|
() => {
|
|
1621
1621
|
}
|
|
1622
1622
|
), _ = G.useSyncExternalStore(
|
|
1623
|
-
|
|
1623
|
+
L(
|
|
1624
1624
|
(u) => {
|
|
1625
|
-
var h,
|
|
1626
|
-
return (h = t.current) == null || h.addEventListener("playing", u), (
|
|
1627
|
-
var j,
|
|
1625
|
+
var h, p;
|
|
1626
|
+
return (h = t.current) == null || h.addEventListener("playing", u), (p = t.current) == null || p.addEventListener("waiting", u), () => {
|
|
1627
|
+
var j, N;
|
|
1628
1628
|
(j = t.current) == null || j.removeEventListener(
|
|
1629
1629
|
"playing",
|
|
1630
1630
|
u
|
|
1631
|
-
), (
|
|
1631
|
+
), (N = t.current) == null || N.removeEventListener(
|
|
1632
1632
|
"waiting",
|
|
1633
1633
|
u
|
|
1634
1634
|
);
|
|
@@ -1644,39 +1644,40 @@ function Pt(e) {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
);
|
|
1646
1646
|
return {
|
|
1647
|
+
audio: t.current,
|
|
1647
1648
|
playAudio: a,
|
|
1648
1649
|
togglePlay: i,
|
|
1649
|
-
seek:
|
|
1650
|
-
toggleMuted:
|
|
1650
|
+
seek: l,
|
|
1651
|
+
toggleMuted: y,
|
|
1651
1652
|
setVolume: g,
|
|
1652
1653
|
volume: s,
|
|
1653
1654
|
muted: d,
|
|
1654
1655
|
currentTime: E,
|
|
1655
1656
|
duration: b,
|
|
1656
1657
|
bufferedSeconds: f,
|
|
1657
|
-
isPlaying:
|
|
1658
|
+
isPlaying: c,
|
|
1658
1659
|
isLoading: _
|
|
1659
1660
|
};
|
|
1660
1661
|
}
|
|
1661
|
-
function
|
|
1662
|
-
const e =
|
|
1663
|
-
return
|
|
1662
|
+
function br() {
|
|
1663
|
+
const e = D([]);
|
|
1664
|
+
return I(() => {
|
|
1664
1665
|
const n = e.current;
|
|
1665
1666
|
return () => {
|
|
1666
1667
|
for (const a of n)
|
|
1667
1668
|
clearTimeout(a);
|
|
1668
1669
|
};
|
|
1669
|
-
}, []),
|
|
1670
|
+
}, []), L((n, a) => {
|
|
1670
1671
|
const i = setTimeout(n, a);
|
|
1671
1672
|
return e.current.push(i), i;
|
|
1672
1673
|
}, []);
|
|
1673
1674
|
}
|
|
1674
1675
|
function $t() {
|
|
1675
|
-
const e =
|
|
1676
|
-
(
|
|
1677
|
-
e.current && clearTimeout(e.current), n({ text:
|
|
1678
|
-
n({ text:
|
|
1679
|
-
},
|
|
1676
|
+
const e = D(), [t, n] = W({ text: "", style: { opacity: 0 } }), a = br(), i = L(
|
|
1677
|
+
(l, y = 2e3) => {
|
|
1678
|
+
e.current && clearTimeout(e.current), n({ text: l, style: { opacity: 1 } }), e.current = a(() => {
|
|
1679
|
+
n({ text: l, style: { opacity: 0 } });
|
|
1680
|
+
}, y);
|
|
1680
1681
|
},
|
|
1681
1682
|
[a]
|
|
1682
1683
|
);
|
|
@@ -1695,34 +1696,35 @@ function At(e) {
|
|
|
1695
1696
|
return e;
|
|
1696
1697
|
}
|
|
1697
1698
|
function Nt(e, t) {
|
|
1698
|
-
const { initialLoop: n = "all", initialOrder: a = "list" } = t, [i,
|
|
1699
|
+
const { initialLoop: n = "all", initialOrder: a = "list" } = t, [i, l] = W(n), [y, g] = W(a), s = K(() => y === "list" ? e : Ct(e), [e, y]), [d, E] = W(s[0]), b = L((h) => h.url, []), f = K(() => s.findIndex((p) => b(p) === b(d)) < s.length - 1 || i !== "none", [s, d, i, b]), c = L(() => {
|
|
1699
1700
|
E((h) => {
|
|
1700
|
-
const
|
|
1701
|
-
return
|
|
1701
|
+
const p = s.findIndex((j) => b(j) === b(h));
|
|
1702
|
+
return p < s.length - 1 ? s[p + 1] : { ...s[0] };
|
|
1702
1703
|
});
|
|
1703
|
-
}, [i, s, b]), _ =
|
|
1704
|
+
}, [i, s, b]), _ = L(() => {
|
|
1704
1705
|
E((h) => {
|
|
1705
|
-
const
|
|
1706
|
-
return
|
|
1706
|
+
const p = s.indexOf(h);
|
|
1707
|
+
return p > 0 ? s[p - 1] : h;
|
|
1707
1708
|
});
|
|
1708
|
-
}, [s]), u =
|
|
1709
|
+
}, [s]), u = L((h) => {
|
|
1709
1710
|
E(h);
|
|
1710
1711
|
}, []);
|
|
1711
|
-
return
|
|
1712
|
+
return I(() => {
|
|
1712
1713
|
const h = s.find(
|
|
1713
|
-
(
|
|
1714
|
+
(p) => b(p) === b(d)
|
|
1714
1715
|
);
|
|
1715
1716
|
E(h || s[0]);
|
|
1716
1717
|
}, [s, b, d]), {
|
|
1718
|
+
list: s,
|
|
1717
1719
|
currentSong: d,
|
|
1718
1720
|
hasNextSong: f,
|
|
1719
|
-
next:
|
|
1721
|
+
next: c,
|
|
1720
1722
|
previous: _,
|
|
1721
1723
|
prioritize: u,
|
|
1722
|
-
order:
|
|
1724
|
+
order: y,
|
|
1723
1725
|
setOrder: g,
|
|
1724
1726
|
loop: i,
|
|
1725
|
-
setLoop:
|
|
1727
|
+
setLoop: l,
|
|
1726
1728
|
length: s.length
|
|
1727
1729
|
};
|
|
1728
1730
|
}
|
|
@@ -1738,64 +1740,77 @@ function Dt({
|
|
|
1738
1740
|
volume: n = 0.7,
|
|
1739
1741
|
initialLoop: a,
|
|
1740
1742
|
initialOrder: i,
|
|
1741
|
-
autoPlay:
|
|
1742
|
-
listMaxHeight:
|
|
1743
|
+
autoPlay: l = !1,
|
|
1744
|
+
listMaxHeight: y = 250,
|
|
1743
1745
|
mini: g = !1,
|
|
1744
1746
|
mutex: s = !0,
|
|
1745
1747
|
listFolded: d = !1,
|
|
1746
1748
|
theme: E = "light",
|
|
1747
1749
|
border: b = !1
|
|
1748
1750
|
}) {
|
|
1749
|
-
var
|
|
1750
|
-
const f =
|
|
1751
|
+
var ue, se, ce;
|
|
1752
|
+
const f = U("aplayer"), c = Nt(Array.isArray(e) ? e : [e], {
|
|
1751
1753
|
initialLoop: a,
|
|
1752
1754
|
initialOrder: i
|
|
1753
|
-
}), [_, u] = $t(), h =
|
|
1754
|
-
|
|
1755
|
-
}, []),
|
|
1756
|
-
src:
|
|
1755
|
+
}), [_, u] = $t(), h = br(), p = D(), j = L(() => {
|
|
1756
|
+
p.current && (clearTimeout(p.current), p.current = void 0);
|
|
1757
|
+
}, []), N = D(!1), S = Pt({
|
|
1758
|
+
src: c.currentSong.url,
|
|
1757
1759
|
initialVolume: n,
|
|
1758
|
-
autoPlay:
|
|
1760
|
+
autoPlay: l,
|
|
1759
1761
|
mutex: s,
|
|
1760
|
-
onError(
|
|
1761
|
-
const { error:
|
|
1762
|
-
|
|
1762
|
+
onError(R) {
|
|
1763
|
+
const { error: le } = R.target;
|
|
1764
|
+
le && u(
|
|
1763
1765
|
"An audio error has occurred, player will skip forward in 2 seconds."
|
|
1764
|
-
),
|
|
1765
|
-
|
|
1766
|
+
), c.hasNextSong && (p.current = h(() => {
|
|
1767
|
+
c.next();
|
|
1766
1768
|
}, 2e3));
|
|
1767
1769
|
},
|
|
1768
1770
|
onEnded() {
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
+
const { list: R, currentSong: le, loop: ge, prioritize: Q, hasNextSong: fe } = c, { audio: Y } = S;
|
|
1772
|
+
if (ge === "one") {
|
|
1773
|
+
Q({ ...le });
|
|
1774
|
+
return;
|
|
1775
|
+
}
|
|
1776
|
+
if (!fe && ge === "none") {
|
|
1777
|
+
N.current = !0, Y.currentTime = 0, Y.pause(), Y.src = R[0].url, Q(R[0]);
|
|
1771
1778
|
return;
|
|
1772
1779
|
}
|
|
1773
|
-
|
|
1780
|
+
c.next();
|
|
1774
1781
|
}
|
|
1775
|
-
}),
|
|
1776
|
-
j(),
|
|
1777
|
-
}, [
|
|
1782
|
+
}), J = L(() => {
|
|
1783
|
+
j(), S.togglePlay(c.currentSong.url);
|
|
1784
|
+
}, [S, j, c.currentSong.url]), ne = L((R) => R ? typeof R == "string" ? R : R.url ? /* @__PURE__ */ v.jsx("a", { href: R.url, target: "_blank", rel: "noreferrer", children: R.name ?? "Audio artist" }) : R.name ?? "Audio artist" : "Audio artist", []), V = c.length > 1, Le = K(
|
|
1778
1785
|
() => Array.isArray(e) ? e : [e],
|
|
1779
1786
|
[e]
|
|
1780
|
-
), { prioritize:
|
|
1781
|
-
(
|
|
1782
|
-
j(),
|
|
1787
|
+
), { prioritize: ae } = c, Pe = L(
|
|
1788
|
+
(R) => {
|
|
1789
|
+
j(), ae(R);
|
|
1783
1790
|
},
|
|
1784
|
-
[j,
|
|
1785
|
-
), [
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
}, [g]),
|
|
1789
|
-
|
|
1791
|
+
[j, ae]
|
|
1792
|
+
), [pe, ye] = W(() => V && !d), [B, F] = W(g), [z, be] = W(!0), X = D(null);
|
|
1793
|
+
I(() => {
|
|
1794
|
+
F(g);
|
|
1795
|
+
}, [g]), I(() => {
|
|
1796
|
+
l && S.playAudio(c.currentSong.url);
|
|
1790
1797
|
}, []);
|
|
1791
|
-
const
|
|
1792
|
-
return
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1798
|
+
const ie = D(!0), oe = D(c.currentSong);
|
|
1799
|
+
return I(() => {
|
|
1800
|
+
if (ie.current) {
|
|
1801
|
+
ie.current = !1;
|
|
1802
|
+
return;
|
|
1803
|
+
}
|
|
1804
|
+
if (N.current) {
|
|
1805
|
+
N.current = !1;
|
|
1806
|
+
return;
|
|
1807
|
+
}
|
|
1808
|
+
c.currentSong && (c.loop === "one" || c.currentSong !== oe.current) && (oe.current = c.currentSong, S.playAudio(c.currentSong.url));
|
|
1809
|
+
}, [c.currentSong]), I(() => {
|
|
1810
|
+
if (t === "fixed" && X.current) {
|
|
1811
|
+
const R = X.current;
|
|
1812
|
+
return R.style.width = `${R.offsetWidth - 18}px`, () => {
|
|
1813
|
+
R.removeAttribute("style");
|
|
1799
1814
|
};
|
|
1800
1815
|
}
|
|
1801
1816
|
}, [t]), /* @__PURE__ */ v.jsxs(
|
|
@@ -1805,11 +1820,11 @@ function Dt({
|
|
|
1805
1820
|
[f.bs(E)]: !0,
|
|
1806
1821
|
[f.bs("vars")]: !0,
|
|
1807
1822
|
[f.bm(t)]: !0,
|
|
1808
|
-
[f.bm("loading")]:
|
|
1809
|
-
[f.bm("withlist")]:
|
|
1810
|
-
[f.bm("list-folded")]: !
|
|
1811
|
-
[f.bm("withlrc")]: !!
|
|
1812
|
-
[f.bm("narrow")]:
|
|
1823
|
+
[f.bm("loading")]: S.isLoading,
|
|
1824
|
+
[f.bm("withlist")]: V,
|
|
1825
|
+
[f.bm("list-folded")]: !pe,
|
|
1826
|
+
[f.bm("withlrc")]: !!c.currentSong.lrc && t !== "fixed",
|
|
1827
|
+
[f.bm("narrow")]: B,
|
|
1813
1828
|
[f.bm("border")]: b
|
|
1814
1829
|
}),
|
|
1815
1830
|
role: "region",
|
|
@@ -1818,77 +1833,77 @@ function Dt({
|
|
|
1818
1833
|
/* @__PURE__ */ v.jsxs(
|
|
1819
1834
|
"div",
|
|
1820
1835
|
{
|
|
1821
|
-
ref:
|
|
1836
|
+
ref: X,
|
|
1822
1837
|
className: f.be("body"),
|
|
1823
1838
|
children: [
|
|
1824
1839
|
/* @__PURE__ */ v.jsx(
|
|
1825
1840
|
"div",
|
|
1826
1841
|
{
|
|
1827
1842
|
className: f.be("pic"),
|
|
1828
|
-
onClick:
|
|
1843
|
+
onClick: J,
|
|
1829
1844
|
style: {
|
|
1830
|
-
backgroundImage: `url("${(
|
|
1845
|
+
backgroundImage: `url("${(ue = c.currentSong) == null ? void 0 : ue.cover}")`
|
|
1831
1846
|
},
|
|
1832
1847
|
role: "button",
|
|
1833
|
-
"aria-label":
|
|
1848
|
+
"aria-label": S.isPlaying ? "Pause audio" : "Play audio",
|
|
1834
1849
|
children: /* @__PURE__ */ v.jsx(
|
|
1835
1850
|
"div",
|
|
1836
1851
|
{
|
|
1837
1852
|
className: $(
|
|
1838
1853
|
f.be("button"),
|
|
1839
|
-
|
|
1854
|
+
S.isPlaying ? f.bm("pause") : f.bm("play")
|
|
1840
1855
|
),
|
|
1841
1856
|
role: "presentation",
|
|
1842
|
-
children:
|
|
1857
|
+
children: S.isPlaying ? /* @__PURE__ */ v.jsx(Mt, {}) : /* @__PURE__ */ v.jsx(ot, {})
|
|
1843
1858
|
}
|
|
1844
1859
|
)
|
|
1845
1860
|
}
|
|
1846
1861
|
),
|
|
1847
1862
|
/* @__PURE__ */ v.jsxs("div", { className: $(f.be("info")), children: [
|
|
1848
1863
|
/* @__PURE__ */ v.jsxs("div", { className: $(f.be("music")), children: [
|
|
1849
|
-
/* @__PURE__ */ v.jsx("span", { className: $(f.be("title")), children: ((
|
|
1864
|
+
/* @__PURE__ */ v.jsx("span", { className: $(f.be("title")), children: ((se = c.currentSong) == null ? void 0 : se.name) ?? "Audio name" }),
|
|
1850
1865
|
/* @__PURE__ */ v.jsxs("span", { className: $(f.be("author")), children: [
|
|
1851
1866
|
" ",
|
|
1852
1867
|
"-",
|
|
1853
1868
|
" ",
|
|
1854
|
-
|
|
1869
|
+
ne((ce = c.currentSong) == null ? void 0 : ce.artist)
|
|
1855
1870
|
] })
|
|
1856
1871
|
] }),
|
|
1857
1872
|
t === "fixed" ? null : /* @__PURE__ */ v.jsx(
|
|
1858
|
-
|
|
1873
|
+
lr,
|
|
1859
1874
|
{
|
|
1860
|
-
show:
|
|
1861
|
-
lrcText:
|
|
1862
|
-
currentTime:
|
|
1875
|
+
show: z,
|
|
1876
|
+
lrcText: c.currentSong.lrc,
|
|
1877
|
+
currentTime: S.currentTime ?? 0
|
|
1863
1878
|
}
|
|
1864
1879
|
),
|
|
1865
1880
|
/* @__PURE__ */ v.jsx(
|
|
1866
|
-
|
|
1881
|
+
_t,
|
|
1867
1882
|
{
|
|
1868
|
-
volume:
|
|
1869
|
-
onChangeVolume:
|
|
1870
|
-
muted:
|
|
1871
|
-
onToggleMuted: () =>
|
|
1872
|
-
currentTime:
|
|
1873
|
-
audioDurationSeconds:
|
|
1874
|
-
bufferedSeconds:
|
|
1875
|
-
onSeek: (
|
|
1876
|
-
onToggleMenu: () =>
|
|
1877
|
-
order:
|
|
1878
|
-
onOrderChange:
|
|
1879
|
-
loop:
|
|
1880
|
-
onLoopChange:
|
|
1881
|
-
isPlaying:
|
|
1882
|
-
onTogglePlay:
|
|
1883
|
+
volume: S.volume ?? n,
|
|
1884
|
+
onChangeVolume: S.setVolume,
|
|
1885
|
+
muted: S.muted ?? !1,
|
|
1886
|
+
onToggleMuted: () => S.toggleMuted(),
|
|
1887
|
+
currentTime: S.currentTime,
|
|
1888
|
+
audioDurationSeconds: S.duration,
|
|
1889
|
+
bufferedSeconds: S.bufferedSeconds,
|
|
1890
|
+
onSeek: (R) => S.seek(R),
|
|
1891
|
+
onToggleMenu: () => ye((R) => !R),
|
|
1892
|
+
order: c.order,
|
|
1893
|
+
onOrderChange: c.setOrder,
|
|
1894
|
+
loop: c.loop,
|
|
1895
|
+
onLoopChange: c.setLoop,
|
|
1896
|
+
isPlaying: S.isPlaying ?? !1,
|
|
1897
|
+
onTogglePlay: J,
|
|
1883
1898
|
onSkipForward: () => {
|
|
1884
|
-
|
|
1899
|
+
c.hasNextSong && c.next();
|
|
1885
1900
|
},
|
|
1886
1901
|
onSkipBack: () => {
|
|
1887
|
-
|
|
1902
|
+
c.previous();
|
|
1888
1903
|
},
|
|
1889
|
-
showLyrics:
|
|
1904
|
+
showLyrics: z,
|
|
1890
1905
|
onToggleLyrics: () => {
|
|
1891
|
-
|
|
1906
|
+
be((R) => !R);
|
|
1892
1907
|
}
|
|
1893
1908
|
}
|
|
1894
1909
|
)
|
|
@@ -1898,29 +1913,29 @@ function Dt({
|
|
|
1898
1913
|
"div",
|
|
1899
1914
|
{
|
|
1900
1915
|
className: f.be("miniswitcher"),
|
|
1901
|
-
onClick: () =>
|
|
1916
|
+
onClick: () => F((R) => !R),
|
|
1902
1917
|
children: /* @__PURE__ */ v.jsx("button", { className: $(f.bs("icon"), f.bs("icon-right")), type: "button", children: /* @__PURE__ */ v.jsx(qt, {}) })
|
|
1903
1918
|
}
|
|
1904
1919
|
)
|
|
1905
1920
|
]
|
|
1906
1921
|
}
|
|
1907
1922
|
),
|
|
1908
|
-
|
|
1923
|
+
V ? /* @__PURE__ */ v.jsx(
|
|
1909
1924
|
Tt,
|
|
1910
1925
|
{
|
|
1911
|
-
open:
|
|
1912
|
-
audio:
|
|
1913
|
-
playingAudioUrl:
|
|
1914
|
-
onPlayAudio:
|
|
1915
|
-
listMaxHeight:
|
|
1926
|
+
open: pe,
|
|
1927
|
+
audio: Le,
|
|
1928
|
+
playingAudioUrl: c.currentSong.url,
|
|
1929
|
+
onPlayAudio: Pe,
|
|
1930
|
+
listMaxHeight: y
|
|
1916
1931
|
}
|
|
1917
1932
|
) : null,
|
|
1918
1933
|
t === "fixed" && /* @__PURE__ */ v.jsx(
|
|
1919
|
-
|
|
1934
|
+
lr,
|
|
1920
1935
|
{
|
|
1921
|
-
show:
|
|
1922
|
-
lrcText:
|
|
1923
|
-
currentTime:
|
|
1936
|
+
show: z,
|
|
1937
|
+
lrcText: c.currentSong.lrc,
|
|
1938
|
+
currentTime: S.currentTime ?? 0
|
|
1924
1939
|
}
|
|
1925
1940
|
)
|
|
1926
1941
|
]
|