twist-aplayer 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +20 -20
- package/README.md +139 -139
- package/dist/index.d.ts +4 -4
- package/dist/index.js +15 -15
- package/dist/index.min.css +1 -1
- package/dist/index.mjs +1054 -986
- package/dist/twist-aplayer.umd.js +15 -15
- package/package.json +83 -84
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as ae from "react";
|
|
2
|
+
import je, { useMemo as K, useRef as V, useState as Y, useEffect as F, useCallback as R } from "react";
|
|
3
|
+
var Se = { exports: {} }, ce = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,21 +10,21 @@ var Te = { exports: {} }, de = {};
|
|
|
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 rr;
|
|
14
14
|
function Br() {
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var e =
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
if (g && g.defaultProps) for (
|
|
23
|
-
return { $$typeof:
|
|
15
|
+
if (rr) return ce;
|
|
16
|
+
rr = 1;
|
|
17
|
+
var e = je, r = 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 h(g, s, c) {
|
|
19
|
+
var f, p = {}, x = null, E = null;
|
|
20
|
+
c !== void 0 && (x = "" + c), s.key !== void 0 && (x = "" + s.key), s.ref !== void 0 && (E = s.ref);
|
|
21
|
+
for (f in s) a.call(s, f) && !l.hasOwnProperty(f) && (p[f] = s[f]);
|
|
22
|
+
if (g && g.defaultProps) for (f in s = g.defaultProps, s) p[f] === void 0 && (p[f] = s[f]);
|
|
23
|
+
return { $$typeof: r, type: g, key: x, ref: E, props: p, _owner: i.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return ce.Fragment = n, ce.jsx = h, ce.jsxs = h, ce;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var fe = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.development.js
|
|
@@ -34,61 +34,61 @@ var ve = {};
|
|
|
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 tr;
|
|
38
38
|
function zr() {
|
|
39
|
-
return
|
|
40
|
-
var e =
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
39
|
+
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var e = je, r = 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"), h = Symbol.for("react.provider"), g = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), b = Symbol.iterator, u = "@@iterator";
|
|
41
|
+
function v(t) {
|
|
42
|
+
if (t === null || typeof t != "object")
|
|
43
43
|
return null;
|
|
44
|
-
var o =
|
|
44
|
+
var o = b && t[b] || t[u];
|
|
45
45
|
return typeof o == "function" ? o : null;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
47
|
+
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
+
function w(t) {
|
|
49
49
|
{
|
|
50
|
-
for (var o = arguments.length, m = new Array(o > 1 ? o - 1 : 0),
|
|
51
|
-
m[
|
|
52
|
-
|
|
50
|
+
for (var o = arguments.length, m = new Array(o > 1 ? o - 1 : 0), S = 1; S < o; S++)
|
|
51
|
+
m[S - 1] = arguments[S];
|
|
52
|
+
j("error", t, m);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function j(t, o, m) {
|
|
56
56
|
{
|
|
57
|
-
var
|
|
57
|
+
var S = y.ReactDebugCurrentFrame, O = S.getStackAddendum();
|
|
58
58
|
O !== "" && (o += "%s", m = m.concat([O]));
|
|
59
|
-
var P = m.map(function(
|
|
60
|
-
return String(
|
|
59
|
+
var P = m.map(function(T) {
|
|
60
|
+
return String(T);
|
|
61
61
|
});
|
|
62
|
-
P.unshift("Warning: " + o), Function.prototype.apply.call(console[
|
|
62
|
+
P.unshift("Warning: " + o), Function.prototype.apply.call(console[t], console, P);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof
|
|
65
|
+
var L = !1, B = !1, z = !1, q = !1, J = !1, A;
|
|
66
|
+
A = Symbol.for("react.module.reference");
|
|
67
|
+
function me(t) {
|
|
68
|
+
return !!(typeof t == "string" || typeof t == "function" || t === a || t === l || J || t === i || t === c || t === f || q || t === E || L || B || z || typeof t == "object" && t !== null && (t.$$typeof === x || t.$$typeof === p || t.$$typeof === h || t.$$typeof === g || t.$$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
|
-
|
|
72
|
+
t.$$typeof === A || t.getModuleId !== void 0));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
return
|
|
74
|
+
function Oe(t, o, m) {
|
|
75
|
+
var S = t.displayName;
|
|
76
|
+
if (S)
|
|
77
|
+
return S;
|
|
78
78
|
var O = o.displayName || o.name || "";
|
|
79
79
|
return O !== "" ? m + "(" + O + ")" : m;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function he(t) {
|
|
82
|
+
return t.displayName || "Context";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
if (
|
|
84
|
+
function H(t) {
|
|
85
|
+
if (t == null)
|
|
86
86
|
return null;
|
|
87
|
-
if (typeof
|
|
88
|
-
return
|
|
89
|
-
if (typeof
|
|
90
|
-
return
|
|
91
|
-
switch (
|
|
87
|
+
if (typeof t.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
88
|
+
return t.displayName || t.name || null;
|
|
89
|
+
if (typeof t == "string")
|
|
90
|
+
return t;
|
|
91
|
+
switch (t) {
|
|
92
92
|
case a:
|
|
93
93
|
return "Fragment";
|
|
94
94
|
case n:
|
|
@@ -97,28 +97,28 @@ function zr() {
|
|
|
97
97
|
return "Profiler";
|
|
98
98
|
case i:
|
|
99
99
|
return "StrictMode";
|
|
100
|
-
case
|
|
100
|
+
case c:
|
|
101
101
|
return "Suspense";
|
|
102
|
-
case
|
|
102
|
+
case f:
|
|
103
103
|
return "SuspenseList";
|
|
104
104
|
}
|
|
105
|
-
if (typeof
|
|
106
|
-
switch (
|
|
105
|
+
if (typeof t == "object")
|
|
106
|
+
switch (t.$$typeof) {
|
|
107
107
|
case g:
|
|
108
|
-
var o =
|
|
109
|
-
return
|
|
110
|
-
case
|
|
111
|
-
var m =
|
|
112
|
-
return
|
|
108
|
+
var o = t;
|
|
109
|
+
return he(o) + ".Consumer";
|
|
110
|
+
case h:
|
|
111
|
+
var m = t;
|
|
112
|
+
return he(m._context) + ".Provider";
|
|
113
113
|
case s:
|
|
114
|
-
return
|
|
115
|
-
case
|
|
116
|
-
var
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
var O =
|
|
114
|
+
return Oe(t, t.render, "ForwardRef");
|
|
115
|
+
case p:
|
|
116
|
+
var S = t.displayName || null;
|
|
117
|
+
return S !== null ? S : H(t.type) || "Memo";
|
|
118
|
+
case x: {
|
|
119
|
+
var O = t, P = O._payload, T = O._init;
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return H(T(P));
|
|
122
122
|
} catch {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
@@ -126,373 +126,373 @@ function zr() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
129
|
+
var W = Object.assign, X = 0, Z, ie, oe, D, ee, ue, se;
|
|
130
|
+
function pe() {
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
pe.__reactDisabledLog = !0;
|
|
133
133
|
function le() {
|
|
134
134
|
{
|
|
135
|
-
if (
|
|
136
|
-
|
|
137
|
-
var
|
|
135
|
+
if (X === 0) {
|
|
136
|
+
Z = console.log, ie = console.info, oe = console.warn, D = console.error, ee = console.group, ue = console.groupCollapsed, se = console.groupEnd;
|
|
137
|
+
var t = {
|
|
138
138
|
configurable: !0,
|
|
139
139
|
enumerable: !0,
|
|
140
|
-
value:
|
|
140
|
+
value: pe,
|
|
141
141
|
writable: !0
|
|
142
142
|
};
|
|
143
143
|
Object.defineProperties(console, {
|
|
144
|
-
info:
|
|
145
|
-
log:
|
|
146
|
-
warn:
|
|
147
|
-
error:
|
|
148
|
-
group:
|
|
149
|
-
groupCollapsed:
|
|
150
|
-
groupEnd:
|
|
144
|
+
info: t,
|
|
145
|
+
log: t,
|
|
146
|
+
warn: t,
|
|
147
|
+
error: t,
|
|
148
|
+
group: t,
|
|
149
|
+
groupCollapsed: t,
|
|
150
|
+
groupEnd: t
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
X++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function br() {
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
159
|
-
var
|
|
158
|
+
if (X--, X === 0) {
|
|
159
|
+
var t = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
162
162
|
writable: !0
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
165
|
-
log:
|
|
166
|
-
value:
|
|
167
|
-
}),
|
|
168
|
-
info: F({}, r, {
|
|
169
|
-
value: X
|
|
165
|
+
log: W({}, t, {
|
|
166
|
+
value: Z
|
|
170
167
|
}),
|
|
171
|
-
|
|
168
|
+
info: W({}, t, {
|
|
172
169
|
value: ie
|
|
173
170
|
}),
|
|
174
|
-
|
|
171
|
+
warn: W({}, t, {
|
|
175
172
|
value: oe
|
|
176
173
|
}),
|
|
177
|
-
|
|
174
|
+
error: W({}, t, {
|
|
175
|
+
value: D
|
|
176
|
+
}),
|
|
177
|
+
group: W({}, t, {
|
|
178
|
+
value: ee
|
|
179
|
+
}),
|
|
180
|
+
groupCollapsed: W({}, t, {
|
|
178
181
|
value: ue
|
|
179
182
|
}),
|
|
180
|
-
|
|
183
|
+
groupEnd: W({}, t, {
|
|
181
184
|
value: se
|
|
182
|
-
}),
|
|
183
|
-
groupEnd: F({}, r, {
|
|
184
|
-
value: ce
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
X < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
var
|
|
192
|
-
function
|
|
191
|
+
var Re = y.ReactCurrentDispatcher, Pe;
|
|
192
|
+
function ye(t, o, m) {
|
|
193
193
|
{
|
|
194
|
-
if (
|
|
194
|
+
if (Pe === void 0)
|
|
195
195
|
try {
|
|
196
196
|
throw Error();
|
|
197
197
|
} catch (O) {
|
|
198
|
-
var
|
|
199
|
-
|
|
198
|
+
var S = O.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
+
Pe = S && S[1] || "";
|
|
200
200
|
}
|
|
201
201
|
return `
|
|
202
|
-
` +
|
|
202
|
+
` + Pe + t;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var Le = !1, be;
|
|
206
206
|
{
|
|
207
207
|
var gr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
-
|
|
208
|
+
be = new gr();
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
if (!
|
|
210
|
+
function Ve(t, o) {
|
|
211
|
+
if (!t || Le)
|
|
212
212
|
return "";
|
|
213
213
|
{
|
|
214
|
-
var m =
|
|
214
|
+
var m = be.get(t);
|
|
215
215
|
if (m !== void 0)
|
|
216
216
|
return m;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
|
|
218
|
+
var S;
|
|
219
|
+
Le = !0;
|
|
220
220
|
var O = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
222
|
var P;
|
|
223
|
-
P =
|
|
223
|
+
P = Re.current, Re.current = null, le();
|
|
224
224
|
try {
|
|
225
225
|
if (o) {
|
|
226
|
-
var
|
|
226
|
+
var T = function() {
|
|
227
227
|
throw Error();
|
|
228
228
|
};
|
|
229
|
-
if (Object.defineProperty(
|
|
229
|
+
if (Object.defineProperty(T.prototype, "props", {
|
|
230
230
|
set: function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
}
|
|
233
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
234
|
try {
|
|
235
|
-
Reflect.construct(
|
|
236
|
-
} catch (
|
|
237
|
-
|
|
235
|
+
Reflect.construct(T, []);
|
|
236
|
+
} catch (U) {
|
|
237
|
+
S = U;
|
|
238
238
|
}
|
|
239
|
-
Reflect.construct(
|
|
239
|
+
Reflect.construct(t, [], T);
|
|
240
240
|
} else {
|
|
241
241
|
try {
|
|
242
|
-
|
|
243
|
-
} catch (
|
|
244
|
-
|
|
242
|
+
T.call();
|
|
243
|
+
} catch (U) {
|
|
244
|
+
S = U;
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
t.call(T.prototype);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
|
|
251
|
+
} catch (U) {
|
|
252
|
+
S = U;
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
t();
|
|
255
255
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var
|
|
259
|
-
`),
|
|
260
|
-
`),
|
|
261
|
-
|
|
262
|
-
for (;
|
|
263
|
-
if (
|
|
264
|
-
if (
|
|
256
|
+
} catch (U) {
|
|
257
|
+
if (U && S && typeof U.stack == "string") {
|
|
258
|
+
for (var _ = U.stack.split(`
|
|
259
|
+
`), k = S.stack.split(`
|
|
260
|
+
`), $ = _.length - 1, M = k.length - 1; $ >= 1 && M >= 0 && _[$] !== k[M]; )
|
|
261
|
+
M--;
|
|
262
|
+
for (; $ >= 1 && M >= 0; $--, M--)
|
|
263
|
+
if (_[$] !== k[M]) {
|
|
264
|
+
if ($ !== 1 || M !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (
|
|
267
|
-
var
|
|
268
|
-
` +
|
|
269
|
-
return
|
|
266
|
+
if ($--, M--, M < 0 || _[$] !== k[M]) {
|
|
267
|
+
var I = `
|
|
268
|
+
` + _[$].replace(" at new ", " at ");
|
|
269
|
+
return t.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", t.displayName)), typeof t == "function" && be.set(t, I), I;
|
|
270
270
|
}
|
|
271
|
-
while (
|
|
271
|
+
while ($ >= 1 && M >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
|
|
276
|
+
Le = !1, Re.current = P, br(), Error.prepareStackTrace = O;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
return typeof
|
|
278
|
+
var te = t ? t.displayName || t.name : "", er = te ? ye(te) : "";
|
|
279
|
+
return typeof t == "function" && be.set(t, er), er;
|
|
280
280
|
}
|
|
281
|
-
function Er(
|
|
282
|
-
return
|
|
281
|
+
function Er(t, o, m) {
|
|
282
|
+
return Ve(t, !1);
|
|
283
283
|
}
|
|
284
|
-
function xr(
|
|
285
|
-
var o =
|
|
284
|
+
function xr(t) {
|
|
285
|
+
var o = t.prototype;
|
|
286
286
|
return !!(o && o.isReactComponent);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
if (
|
|
288
|
+
function ge(t, o, m) {
|
|
289
|
+
if (t == null)
|
|
290
290
|
return "";
|
|
291
|
-
if (typeof
|
|
292
|
-
return
|
|
293
|
-
if (typeof
|
|
294
|
-
return
|
|
295
|
-
switch (
|
|
296
|
-
case
|
|
297
|
-
return
|
|
298
|
-
case
|
|
299
|
-
return
|
|
291
|
+
if (typeof t == "function")
|
|
292
|
+
return Ve(t, xr(t));
|
|
293
|
+
if (typeof t == "string")
|
|
294
|
+
return ye(t);
|
|
295
|
+
switch (t) {
|
|
296
|
+
case c:
|
|
297
|
+
return ye("Suspense");
|
|
298
|
+
case f:
|
|
299
|
+
return ye("SuspenseList");
|
|
300
300
|
}
|
|
301
|
-
if (typeof
|
|
302
|
-
switch (
|
|
301
|
+
if (typeof t == "object")
|
|
302
|
+
switch (t.$$typeof) {
|
|
303
303
|
case s:
|
|
304
|
-
return Er(
|
|
305
|
-
case
|
|
306
|
-
return
|
|
307
|
-
case
|
|
308
|
-
var
|
|
304
|
+
return Er(t.render);
|
|
305
|
+
case p:
|
|
306
|
+
return ge(t.type, o, m);
|
|
307
|
+
case x: {
|
|
308
|
+
var S = t, O = S._payload, P = S._init;
|
|
309
309
|
try {
|
|
310
|
-
return
|
|
310
|
+
return ge(P(O), o, m);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
319
|
-
if (
|
|
320
|
-
var o =
|
|
321
|
-
|
|
317
|
+
var Ee = Object.prototype.hasOwnProperty, Fe = {}, Be = y.ReactDebugCurrentFrame;
|
|
318
|
+
function xe(t) {
|
|
319
|
+
if (t) {
|
|
320
|
+
var o = t._owner, m = ge(t.type, t._source, o ? o.type : null);
|
|
321
|
+
Be.setExtraStackFrame(m);
|
|
322
322
|
} else
|
|
323
|
-
|
|
323
|
+
Be.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function Sr(
|
|
325
|
+
function Sr(t, o, m, S, O) {
|
|
326
326
|
{
|
|
327
|
-
var P = Function.call.bind(
|
|
328
|
-
for (var
|
|
329
|
-
if (P(
|
|
330
|
-
var
|
|
327
|
+
var P = Function.call.bind(Ee);
|
|
328
|
+
for (var T in t)
|
|
329
|
+
if (P(t, T)) {
|
|
330
|
+
var _ = void 0;
|
|
331
331
|
try {
|
|
332
|
-
if (typeof
|
|
333
|
-
var
|
|
334
|
-
throw
|
|
332
|
+
if (typeof t[T] != "function") {
|
|
333
|
+
var k = Error((S || "React class") + ": " + m + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
+
throw k.name = "Invariant Violation", k;
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
} catch (
|
|
338
|
-
|
|
336
|
+
_ = t[T](o, T, S, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
+
} catch ($) {
|
|
338
|
+
_ = $;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
_ && !(_ instanceof Error) && (xe(O), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", m, T, typeof _), xe(null)), _ instanceof Error && !(_.message in Fe) && (Fe[_.message] = !0, xe(O), w("Failed %s type: %s", m, _.message), xe(null));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
var _r = Array.isArray;
|
|
345
|
-
function Ce(
|
|
346
|
-
return _r(
|
|
345
|
+
function Ce(t) {
|
|
346
|
+
return _r(t);
|
|
347
347
|
}
|
|
348
|
-
function Tr(
|
|
348
|
+
function Tr(t) {
|
|
349
349
|
{
|
|
350
|
-
var o = typeof Symbol == "function" && Symbol.toStringTag, m = o &&
|
|
350
|
+
var o = typeof Symbol == "function" && Symbol.toStringTag, m = o && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
351
351
|
return m;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function wr(
|
|
354
|
+
function wr(t) {
|
|
355
355
|
try {
|
|
356
|
-
return
|
|
356
|
+
return ze(t), !1;
|
|
357
357
|
} catch {
|
|
358
358
|
return !0;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
return "" +
|
|
361
|
+
function ze(t) {
|
|
362
|
+
return "" + t;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
if (wr(
|
|
366
|
-
return
|
|
364
|
+
function He(t) {
|
|
365
|
+
if (wr(t))
|
|
366
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(t)), ze(t);
|
|
367
367
|
}
|
|
368
|
-
var
|
|
368
|
+
var We = y.ReactCurrentOwner, jr = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
372
372
|
__source: !0
|
|
373
|
-
},
|
|
374
|
-
function Or(
|
|
375
|
-
if (
|
|
376
|
-
var o = Object.getOwnPropertyDescriptor(
|
|
373
|
+
}, Ue, Ye;
|
|
374
|
+
function Or(t) {
|
|
375
|
+
if (Ee.call(t, "ref")) {
|
|
376
|
+
var o = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
377
377
|
if (o && o.isReactWarning)
|
|
378
378
|
return !1;
|
|
379
379
|
}
|
|
380
|
-
return
|
|
380
|
+
return t.ref !== void 0;
|
|
381
381
|
}
|
|
382
|
-
function Rr(
|
|
383
|
-
if (
|
|
384
|
-
var o = Object.getOwnPropertyDescriptor(
|
|
382
|
+
function Rr(t) {
|
|
383
|
+
if (Ee.call(t, "key")) {
|
|
384
|
+
var o = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
385
385
|
if (o && o.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
|
-
return
|
|
388
|
+
return t.key !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
typeof
|
|
390
|
+
function Pr(t, o) {
|
|
391
|
+
typeof t.ref == "string" && We.current;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Lr(t, o) {
|
|
394
394
|
{
|
|
395
395
|
var m = function() {
|
|
396
|
-
|
|
396
|
+
Ue || (Ue = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
397
397
|
};
|
|
398
|
-
m.isReactWarning = !0, Object.defineProperty(
|
|
398
|
+
m.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
399
399
|
get: m,
|
|
400
400
|
configurable: !0
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Cr(t, o) {
|
|
405
405
|
{
|
|
406
406
|
var m = function() {
|
|
407
|
-
|
|
407
|
+
Ye || (Ye = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
408
408
|
};
|
|
409
|
-
m.isReactWarning = !0, Object.defineProperty(
|
|
409
|
+
m.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
410
410
|
get: m,
|
|
411
411
|
configurable: !0
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var
|
|
416
|
-
var
|
|
415
|
+
var $r = function(t, o, m, S, O, P, T) {
|
|
416
|
+
var _ = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
|
-
$$typeof:
|
|
418
|
+
$$typeof: r,
|
|
419
419
|
// Built-in properties that belong on the element
|
|
420
|
-
type:
|
|
420
|
+
type: t,
|
|
421
421
|
key: o,
|
|
422
422
|
ref: m,
|
|
423
|
-
props:
|
|
423
|
+
props: T,
|
|
424
424
|
// Record the component responsible for creating this element.
|
|
425
425
|
_owner: P
|
|
426
426
|
};
|
|
427
|
-
return
|
|
427
|
+
return _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
428
428
|
configurable: !1,
|
|
429
429
|
enumerable: !1,
|
|
430
430
|
writable: !0,
|
|
431
431
|
value: !1
|
|
432
|
-
}), Object.defineProperty(
|
|
432
|
+
}), Object.defineProperty(_, "_self", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !1,
|
|
436
|
-
value:
|
|
437
|
-
}), Object.defineProperty(
|
|
436
|
+
value: S
|
|
437
|
+
}), Object.defineProperty(_, "_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(_.props), Object.freeze(_)), _;
|
|
443
443
|
};
|
|
444
|
-
function Ar(
|
|
444
|
+
function Ar(t, o, m, S, O) {
|
|
445
445
|
{
|
|
446
|
-
var P,
|
|
447
|
-
m !== void 0 && (
|
|
446
|
+
var P, T = {}, _ = null, k = null;
|
|
447
|
+
m !== void 0 && (He(m), _ = "" + m), Rr(o) && (He(o.key), _ = "" + o.key), Or(o) && (k = o.ref, Pr(o, O));
|
|
448
448
|
for (P in o)
|
|
449
|
-
|
|
450
|
-
if (
|
|
451
|
-
var
|
|
452
|
-
for (P in
|
|
453
|
-
|
|
449
|
+
Ee.call(o, P) && !jr.hasOwnProperty(P) && (T[P] = o[P]);
|
|
450
|
+
if (t && t.defaultProps) {
|
|
451
|
+
var $ = t.defaultProps;
|
|
452
|
+
for (P in $)
|
|
453
|
+
T[P] === void 0 && (T[P] = $[P]);
|
|
454
454
|
}
|
|
455
|
-
if (
|
|
456
|
-
var
|
|
457
|
-
|
|
455
|
+
if (_ || k) {
|
|
456
|
+
var M = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
457
|
+
_ && Lr(T, M), k && Cr(T, M);
|
|
458
458
|
}
|
|
459
|
-
return
|
|
459
|
+
return $r(t, _, k, O, S, We.current, T);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
464
|
-
if (
|
|
465
|
-
var o =
|
|
466
|
-
|
|
462
|
+
var $e = y.ReactCurrentOwner, Ge = y.ReactDebugCurrentFrame;
|
|
463
|
+
function re(t) {
|
|
464
|
+
if (t) {
|
|
465
|
+
var o = t._owner, m = ge(t.type, t._source, o ? o.type : null);
|
|
466
|
+
Ge.setExtraStackFrame(m);
|
|
467
467
|
} else
|
|
468
|
-
|
|
468
|
+
Ge.setExtraStackFrame(null);
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
function
|
|
473
|
-
return typeof
|
|
470
|
+
var Ae;
|
|
471
|
+
Ae = !1;
|
|
472
|
+
function Me(t) {
|
|
473
|
+
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Ke() {
|
|
476
476
|
{
|
|
477
|
-
if (
|
|
478
|
-
var
|
|
479
|
-
if (
|
|
477
|
+
if ($e.current) {
|
|
478
|
+
var t = H($e.current.type);
|
|
479
|
+
if (t)
|
|
480
480
|
return `
|
|
481
481
|
|
|
482
|
-
Check the render method of \`` +
|
|
482
|
+
Check the render method of \`` + t + "`.";
|
|
483
483
|
}
|
|
484
484
|
return "";
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Mr(t) {
|
|
488
488
|
return "";
|
|
489
489
|
}
|
|
490
|
-
var
|
|
491
|
-
function
|
|
490
|
+
var Je = {};
|
|
491
|
+
function Nr(t) {
|
|
492
492
|
{
|
|
493
|
-
var o =
|
|
493
|
+
var o = Ke();
|
|
494
494
|
if (!o) {
|
|
495
|
-
var m = typeof
|
|
495
|
+
var m = typeof t == "string" ? t : t.displayName || t.name;
|
|
496
496
|
m && (o = `
|
|
497
497
|
|
|
498
498
|
Check the top-level render call using <` + m + ">.");
|
|
@@ -500,41 +500,41 @@ Check the top-level render call using <` + m + ">.");
|
|
|
500
500
|
return o;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Xe(t, o) {
|
|
504
504
|
{
|
|
505
|
-
if (!
|
|
505
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
506
506
|
return;
|
|
507
|
-
|
|
508
|
-
var m =
|
|
509
|
-
if (
|
|
507
|
+
t._store.validated = !0;
|
|
508
|
+
var m = Nr(o);
|
|
509
|
+
if (Je[m])
|
|
510
510
|
return;
|
|
511
|
-
|
|
512
|
-
var
|
|
513
|
-
|
|
511
|
+
Je[m] = !0;
|
|
512
|
+
var S = "";
|
|
513
|
+
t && t._owner && t._owner !== $e.current && (S = " It was passed a child from " + H(t._owner.type) + "."), re(t), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, S), re(null);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Qe(t, o) {
|
|
517
517
|
{
|
|
518
|
-
if (typeof
|
|
518
|
+
if (typeof t != "object")
|
|
519
519
|
return;
|
|
520
|
-
if (Ce(
|
|
521
|
-
for (var m = 0; m <
|
|
522
|
-
var
|
|
523
|
-
|
|
520
|
+
if (Ce(t))
|
|
521
|
+
for (var m = 0; m < t.length; m++) {
|
|
522
|
+
var S = t[m];
|
|
523
|
+
Me(S) && Xe(S, o);
|
|
524
524
|
}
|
|
525
|
-
else if (
|
|
526
|
-
|
|
527
|
-
else if (
|
|
528
|
-
var O =
|
|
529
|
-
if (typeof O == "function" && O !==
|
|
530
|
-
for (var P = O.call(
|
|
531
|
-
|
|
525
|
+
else if (Me(t))
|
|
526
|
+
t._store && (t._store.validated = !0);
|
|
527
|
+
else if (t) {
|
|
528
|
+
var O = v(t);
|
|
529
|
+
if (typeof O == "function" && O !== t.entries)
|
|
530
|
+
for (var P = O.call(t), T; !(T = P.next()).done; )
|
|
531
|
+
Me(T.value) && Xe(T.value, o);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function qr(t) {
|
|
536
536
|
{
|
|
537
|
-
var o =
|
|
537
|
+
var o = t.type;
|
|
538
538
|
if (o == null || typeof o == "string")
|
|
539
539
|
return;
|
|
540
540
|
var m;
|
|
@@ -542,80 +542,80 @@ Check the top-level render call using <` + m + ">.");
|
|
|
542
542
|
m = o.propTypes;
|
|
543
543
|
else if (typeof o == "object" && (o.$$typeof === s || // Note: Memo only checks outer props here.
|
|
544
544
|
// Inner props are checked in the reconciler.
|
|
545
|
-
o.$$typeof ===
|
|
545
|
+
o.$$typeof === p))
|
|
546
546
|
m = o.propTypes;
|
|
547
547
|
else
|
|
548
548
|
return;
|
|
549
549
|
if (m) {
|
|
550
|
-
var
|
|
551
|
-
Sr(m,
|
|
552
|
-
} else if (o.PropTypes !== void 0 && !
|
|
553
|
-
|
|
554
|
-
var O =
|
|
555
|
-
|
|
550
|
+
var S = H(o);
|
|
551
|
+
Sr(m, t.props, "prop", S, t);
|
|
552
|
+
} else if (o.PropTypes !== void 0 && !Ae) {
|
|
553
|
+
Ae = !0;
|
|
554
|
+
var O = H(o);
|
|
555
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
556
556
|
}
|
|
557
|
-
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved &&
|
|
557
|
+
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function kr(
|
|
560
|
+
function kr(t) {
|
|
561
561
|
{
|
|
562
|
-
for (var o = Object.keys(
|
|
563
|
-
var
|
|
564
|
-
if (
|
|
565
|
-
|
|
562
|
+
for (var o = Object.keys(t.props), m = 0; m < o.length; m++) {
|
|
563
|
+
var S = o[m];
|
|
564
|
+
if (S !== "children" && S !== "key") {
|
|
565
|
+
re(t), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), re(null);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
|
|
569
|
+
t.ref !== null && (re(t), w("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Ze(t, o, m, S, O, P) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
-
var
|
|
577
|
-
(
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
|
|
574
|
+
var T = me(t);
|
|
575
|
+
if (!T) {
|
|
576
|
+
var _ = "";
|
|
577
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (_ += " 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
|
+
var k = Mr();
|
|
579
|
+
k ? _ += k : _ += Ke();
|
|
580
|
+
var $;
|
|
581
|
+
t === null ? $ = "null" : Ce(t) ? $ = "array" : t !== void 0 && t.$$typeof === r ? ($ = "<" + (H(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, _);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
if (
|
|
590
|
-
if (Ce(
|
|
591
|
-
for (var
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
583
|
+
var M = Ar(t, o, m, O, P);
|
|
584
|
+
if (M == null)
|
|
585
|
+
return M;
|
|
586
|
+
if (T) {
|
|
587
|
+
var I = o.children;
|
|
588
|
+
if (I !== void 0)
|
|
589
|
+
if (S)
|
|
590
|
+
if (Ce(I)) {
|
|
591
|
+
for (var te = 0; te < I.length; te++)
|
|
592
|
+
Qe(I[te], t);
|
|
593
|
+
Object.freeze && Object.freeze(I);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
|
|
597
|
+
Qe(I, t);
|
|
598
598
|
}
|
|
599
|
-
return
|
|
599
|
+
return t === a ? kr(M) : qr(M), M;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
function Dr(
|
|
603
|
-
return
|
|
602
|
+
function Dr(t, o, m) {
|
|
603
|
+
return Ze(t, o, m, !0);
|
|
604
604
|
}
|
|
605
|
-
function Ir(
|
|
606
|
-
return
|
|
605
|
+
function Ir(t, o, m) {
|
|
606
|
+
return Ze(t, o, m, !1);
|
|
607
607
|
}
|
|
608
608
|
var Vr = Ir, Fr = Dr;
|
|
609
|
-
|
|
610
|
-
}()),
|
|
609
|
+
fe.Fragment = a, fe.jsx = Vr, fe.jsxs = Fr;
|
|
610
|
+
}()), fe;
|
|
611
611
|
}
|
|
612
|
-
var
|
|
612
|
+
var nr;
|
|
613
613
|
function Hr() {
|
|
614
|
-
return
|
|
614
|
+
return nr || (nr = 1, process.env.NODE_ENV === "production" ? Se.exports = Br() : Se.exports = zr()), Se.exports;
|
|
615
615
|
}
|
|
616
|
-
var
|
|
617
|
-
function Wr(e,
|
|
618
|
-
const n = (a) =>
|
|
616
|
+
var d = Hr(), _e = (e) => `--${e}`, ar = (e) => `var(--${e})`, ir = (e, r) => `--${e}: ${r};`;
|
|
617
|
+
function Wr(e, r) {
|
|
618
|
+
const n = (a) => r;
|
|
619
619
|
return {
|
|
620
620
|
b: () => `${n()}-${e}`,
|
|
621
621
|
be: (a) => `${n()}-${e}__${a}`,
|
|
@@ -629,76 +629,66 @@ 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) => _e(`${n()}-${e}-${a}`),
|
|
633
633
|
cvm: (a, i = {}) => {
|
|
634
634
|
const l = n();
|
|
635
|
-
for (const
|
|
636
|
-
i[
|
|
635
|
+
for (const h of Object.keys(a))
|
|
636
|
+
i[_e(`${l}-${e}-${h}`)] = a[h];
|
|
637
637
|
return i;
|
|
638
638
|
},
|
|
639
|
-
gcv: (a) =>
|
|
640
|
-
scv: (a, i) =>
|
|
641
|
-
nv: (a) =>
|
|
639
|
+
gcv: (a) => ar(`${n()}-${e}-${a}`),
|
|
640
|
+
scv: (a, i) => ir(`${n()}-${e}-${a}`, i),
|
|
641
|
+
nv: (a) => _e(`${n()}-${a}`),
|
|
642
642
|
nvm: (a, i = {}) => {
|
|
643
643
|
const l = n();
|
|
644
|
-
for (const
|
|
645
|
-
i[
|
|
644
|
+
for (const h of Object.keys(a))
|
|
645
|
+
i[_e(`${l}-${h}`)] = a[h];
|
|
646
646
|
return i;
|
|
647
647
|
},
|
|
648
|
-
gnv: (a) =>
|
|
649
|
-
snv: (a, i) =>
|
|
648
|
+
gnv: (a) => ar(`${n()}-${a}`),
|
|
649
|
+
snv: (a, i) => ir(`${n()}-${a}`, i)
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function G(e) {
|
|
653
653
|
return K(() => Wr(e, "twist"), [e]);
|
|
654
654
|
}
|
|
655
|
-
|
|
656
|
-
if (!t.current) return 0;
|
|
657
|
-
let n = (e.clientX - t.current.getBoundingClientRect().left) / t.current.clientWidth;
|
|
658
|
-
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
659
|
-
}
|
|
660
|
-
function ke(e, t) {
|
|
661
|
-
if (!t.current) return 0;
|
|
662
|
-
let n = 1 - (e.clientY - t.current.getBoundingClientRect().top) / t.current.clientHeight;
|
|
663
|
-
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
664
|
-
}
|
|
665
|
-
var mr = {
|
|
655
|
+
var vr = {
|
|
666
656
|
color: void 0,
|
|
667
657
|
size: void 0,
|
|
668
658
|
className: void 0,
|
|
669
659
|
style: void 0,
|
|
670
660
|
attrs: void 0
|
|
671
|
-
},
|
|
672
|
-
|
|
673
|
-
function
|
|
661
|
+
}, Ie = /* @__PURE__ */ ae.createContext(vr);
|
|
662
|
+
Ie.Provider;
|
|
663
|
+
function de(e) {
|
|
674
664
|
"@babel/helpers - typeof";
|
|
675
|
-
return
|
|
676
|
-
return typeof
|
|
677
|
-
} : function(
|
|
678
|
-
return
|
|
679
|
-
},
|
|
665
|
+
return de = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
666
|
+
return typeof r;
|
|
667
|
+
} : function(r) {
|
|
668
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
669
|
+
}, de(e);
|
|
680
670
|
}
|
|
681
671
|
var Ur = ["attrs", "size", "title", "spin", "rotate", "color"];
|
|
682
|
-
function Yr(e,
|
|
683
|
-
return Jr(e) || Kr(e,
|
|
672
|
+
function Yr(e, r) {
|
|
673
|
+
return Jr(e) || Kr(e, r) || mr(e, r) || Gr();
|
|
684
674
|
}
|
|
685
675
|
function Gr() {
|
|
686
676
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
687
677
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
688
678
|
}
|
|
689
|
-
function Kr(e,
|
|
679
|
+
function Kr(e, r) {
|
|
690
680
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
691
681
|
if (n != null) {
|
|
692
|
-
var a, i, l,
|
|
682
|
+
var a, i, l, h, g = [], s = !0, c = !1;
|
|
693
683
|
try {
|
|
694
|
-
if (l = (n = n.call(e)).next,
|
|
695
|
-
} catch (
|
|
696
|
-
|
|
684
|
+
if (l = (n = n.call(e)).next, r !== 0) for (; !(s = (a = l.call(n)).done) && (g.push(a.value), g.length !== r); s = !0) ;
|
|
685
|
+
} catch (f) {
|
|
686
|
+
c = !0, i = f;
|
|
697
687
|
} finally {
|
|
698
688
|
try {
|
|
699
|
-
if (!s && n.return != null && (
|
|
689
|
+
if (!s && n.return != null && (h = n.return(), Object(h) !== h)) return;
|
|
700
690
|
} finally {
|
|
701
|
-
if (
|
|
691
|
+
if (c) throw i;
|
|
702
692
|
}
|
|
703
693
|
}
|
|
704
694
|
return g;
|
|
@@ -707,246 +697,304 @@ function Kr(e, t) {
|
|
|
707
697
|
function Jr(e) {
|
|
708
698
|
if (Array.isArray(e)) return e;
|
|
709
699
|
}
|
|
710
|
-
function Xr(e,
|
|
700
|
+
function Xr(e, r) {
|
|
711
701
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
712
702
|
if (!n) {
|
|
713
|
-
if (Array.isArray(e) || (n =
|
|
703
|
+
if (Array.isArray(e) || (n = mr(e)) || r) {
|
|
714
704
|
n && (e = n);
|
|
715
705
|
var a = 0, i = function() {
|
|
716
706
|
};
|
|
717
707
|
return { s: i, n: function() {
|
|
718
708
|
return a >= e.length ? { done: !0 } : { done: !1, value: e[a++] };
|
|
719
|
-
}, e: function(
|
|
720
|
-
throw
|
|
709
|
+
}, e: function(c) {
|
|
710
|
+
throw c;
|
|
721
711
|
}, f: i };
|
|
722
712
|
}
|
|
723
713
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
724
714
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
725
715
|
}
|
|
726
|
-
var l,
|
|
716
|
+
var l, h = !0, g = !1;
|
|
727
717
|
return { s: function() {
|
|
728
718
|
n = n.call(e);
|
|
729
719
|
}, n: function() {
|
|
730
|
-
var
|
|
731
|
-
return
|
|
732
|
-
}, e: function(
|
|
733
|
-
g = !0, l =
|
|
720
|
+
var c = n.next();
|
|
721
|
+
return h = c.done, c;
|
|
722
|
+
}, e: function(c) {
|
|
723
|
+
g = !0, l = c;
|
|
734
724
|
}, f: function() {
|
|
735
725
|
try {
|
|
736
|
-
|
|
726
|
+
h || n.return == null || n.return();
|
|
737
727
|
} finally {
|
|
738
728
|
if (g) throw l;
|
|
739
729
|
}
|
|
740
730
|
} };
|
|
741
731
|
}
|
|
742
|
-
function
|
|
732
|
+
function mr(e, r) {
|
|
743
733
|
if (e) {
|
|
744
|
-
if (typeof e == "string") return
|
|
734
|
+
if (typeof e == "string") return or(e, r);
|
|
745
735
|
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) ?
|
|
736
|
+
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) ? or(e, r) : void 0;
|
|
747
737
|
}
|
|
748
738
|
}
|
|
749
|
-
function
|
|
750
|
-
(
|
|
751
|
-
for (var n = 0, a = Array(
|
|
739
|
+
function or(e, r) {
|
|
740
|
+
(r == null || r > e.length) && (r = e.length);
|
|
741
|
+
for (var n = 0, a = Array(r); n < r; n++) a[n] = e[n];
|
|
752
742
|
return a;
|
|
753
743
|
}
|
|
754
|
-
function
|
|
755
|
-
return
|
|
756
|
-
for (var
|
|
757
|
-
var n = arguments[
|
|
744
|
+
function we() {
|
|
745
|
+
return we = Object.assign ? Object.assign.bind() : function(e) {
|
|
746
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
747
|
+
var n = arguments[r];
|
|
758
748
|
for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
759
749
|
}
|
|
760
750
|
return e;
|
|
761
|
-
},
|
|
751
|
+
}, we.apply(null, arguments);
|
|
762
752
|
}
|
|
763
|
-
function
|
|
753
|
+
function ur(e, r) {
|
|
764
754
|
var n = Object.keys(e);
|
|
765
755
|
if (Object.getOwnPropertySymbols) {
|
|
766
756
|
var a = Object.getOwnPropertySymbols(e);
|
|
767
|
-
|
|
757
|
+
r && (a = a.filter(function(i) {
|
|
768
758
|
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
769
759
|
})), n.push.apply(n, a);
|
|
770
760
|
}
|
|
771
761
|
return n;
|
|
772
762
|
}
|
|
773
|
-
function
|
|
774
|
-
for (var
|
|
775
|
-
var n = arguments[
|
|
776
|
-
|
|
763
|
+
function ve(e) {
|
|
764
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
765
|
+
var n = arguments[r] != null ? arguments[r] : {};
|
|
766
|
+
r % 2 ? ur(Object(n), !0).forEach(function(a) {
|
|
777
767
|
Qr(e, a, n[a]);
|
|
778
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
768
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ur(Object(n)).forEach(function(a) {
|
|
779
769
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
780
770
|
});
|
|
781
771
|
}
|
|
782
772
|
return e;
|
|
783
773
|
}
|
|
784
|
-
function Qr(e,
|
|
785
|
-
return (
|
|
774
|
+
function Qr(e, r, n) {
|
|
775
|
+
return (r = Zr(r)) in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
786
776
|
}
|
|
787
777
|
function Zr(e) {
|
|
788
|
-
var
|
|
789
|
-
return
|
|
778
|
+
var r = et(e, "string");
|
|
779
|
+
return de(r) == "symbol" ? r : r + "";
|
|
790
780
|
}
|
|
791
|
-
function et(e,
|
|
792
|
-
if (
|
|
781
|
+
function et(e, r) {
|
|
782
|
+
if (de(e) != "object" || !e) return e;
|
|
793
783
|
var n = e[Symbol.toPrimitive];
|
|
794
784
|
if (n !== void 0) {
|
|
795
|
-
var a = n.call(e,
|
|
796
|
-
if (
|
|
785
|
+
var a = n.call(e, r);
|
|
786
|
+
if (de(a) != "object") return a;
|
|
797
787
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
798
788
|
}
|
|
799
|
-
return (
|
|
789
|
+
return (r === "string" ? String : Number)(e);
|
|
800
790
|
}
|
|
801
|
-
function rt(e,
|
|
791
|
+
function rt(e, r) {
|
|
802
792
|
if (e == null) return {};
|
|
803
|
-
var n, a, i = tt(e,
|
|
793
|
+
var n, a, i = tt(e, r);
|
|
804
794
|
if (Object.getOwnPropertySymbols) {
|
|
805
795
|
var l = Object.getOwnPropertySymbols(e);
|
|
806
|
-
for (a = 0; a < l.length; a++) n = l[a],
|
|
796
|
+
for (a = 0; a < l.length; a++) n = l[a], r.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
807
797
|
}
|
|
808
798
|
return i;
|
|
809
799
|
}
|
|
810
|
-
function tt(e,
|
|
800
|
+
function tt(e, r) {
|
|
811
801
|
if (e == null) return {};
|
|
812
802
|
var n = {};
|
|
813
803
|
for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
|
|
814
|
-
if (
|
|
804
|
+
if (r.includes(a)) continue;
|
|
815
805
|
n[a] = e[a];
|
|
816
806
|
}
|
|
817
807
|
return n;
|
|
818
808
|
}
|
|
819
809
|
function nt(e) {
|
|
820
|
-
var
|
|
821
|
-
var
|
|
822
|
-
return
|
|
810
|
+
var r = e.attrs, n = e.size, a = e.title, i = e.spin, l = e.rotate, h = e.color, g = rt(e, Ur), s = function(f) {
|
|
811
|
+
var p = n || f.size || "1em", x, E = "", b = "";
|
|
812
|
+
return f.className && (x = f.className), e.className && (x = x ? "".concat(x, " ").concat(e.className) : e.className), i && (x ? x += " twist-icon-loading" : x = "twist-icon-loading"), l && (E = "rotate(".concat(l, "deg)"), b = "rotate(".concat(l, "deg)")), /* @__PURE__ */ ae.createElement("svg", we({
|
|
823
813
|
xmlns: "http://www.w3.org/2000/svg"
|
|
824
|
-
},
|
|
825
|
-
className:
|
|
826
|
-
style:
|
|
827
|
-
color:
|
|
828
|
-
msTransform:
|
|
829
|
-
transform:
|
|
830
|
-
},
|
|
831
|
-
width:
|
|
832
|
-
height:
|
|
833
|
-
}), a && /* @__PURE__ */
|
|
814
|
+
}, f.attrs, r, g, {
|
|
815
|
+
className: x,
|
|
816
|
+
style: ve(ve({
|
|
817
|
+
color: h || f.color,
|
|
818
|
+
msTransform: E,
|
|
819
|
+
transform: b
|
|
820
|
+
}, f.style), e.style),
|
|
821
|
+
width: p,
|
|
822
|
+
height: p
|
|
823
|
+
}), a && /* @__PURE__ */ ae.createElement("title", null, a), e.children);
|
|
834
824
|
};
|
|
835
|
-
return
|
|
836
|
-
return s(
|
|
837
|
-
}) : s(
|
|
825
|
+
return Ie !== void 0 ? /* @__PURE__ */ ae.createElement(Ie.Consumer, null, function(c) {
|
|
826
|
+
return s(c);
|
|
827
|
+
}) : s(vr);
|
|
838
828
|
}
|
|
839
829
|
function at(e) {
|
|
840
|
-
var
|
|
830
|
+
var r = {}, n = e.split(";"), a = Xr(n), i;
|
|
841
831
|
try {
|
|
842
832
|
for (a.s(); !(i = a.n()).done; ) {
|
|
843
|
-
var l = i.value,
|
|
844
|
-
if (s &&
|
|
845
|
-
var
|
|
846
|
-
return
|
|
833
|
+
var l = i.value, h = l.split(":"), g = Yr(h, 2), s = g[0], c = g[1];
|
|
834
|
+
if (s && c) {
|
|
835
|
+
var f = s.trim().replace(/-./g, function(p) {
|
|
836
|
+
return p.charAt(1).toUpperCase();
|
|
847
837
|
});
|
|
848
|
-
|
|
838
|
+
r[f] = c.trim();
|
|
849
839
|
}
|
|
850
840
|
}
|
|
851
|
-
} catch (
|
|
852
|
-
a.e(
|
|
841
|
+
} catch (p) {
|
|
842
|
+
a.e(p);
|
|
853
843
|
} finally {
|
|
854
844
|
a.f();
|
|
855
845
|
}
|
|
856
|
-
return
|
|
846
|
+
return r;
|
|
857
847
|
}
|
|
858
|
-
function
|
|
859
|
-
return e && e.map(function(
|
|
860
|
-
return /* @__PURE__ */
|
|
848
|
+
function hr(e) {
|
|
849
|
+
return e && e.map(function(r, n) {
|
|
850
|
+
return /* @__PURE__ */ ae.createElement(r.tag, ve(ve({}, r.attrs), {}, {
|
|
861
851
|
key: n,
|
|
862
|
-
style:
|
|
863
|
-
}),
|
|
852
|
+
style: r.attrs.style ? at(r.attrs.style) : null
|
|
853
|
+
}), hr(r.children));
|
|
864
854
|
});
|
|
865
855
|
}
|
|
866
|
-
function
|
|
867
|
-
return function(
|
|
868
|
-
return /* @__PURE__ */
|
|
869
|
-
attrs:
|
|
870
|
-
},
|
|
856
|
+
function N(e) {
|
|
857
|
+
return function(r) {
|
|
858
|
+
return /* @__PURE__ */ ae.createElement(nt, we({
|
|
859
|
+
attrs: ve({}, e.attrs)
|
|
860
|
+
}, r), hr(e.children));
|
|
871
861
|
};
|
|
872
862
|
}
|
|
873
863
|
function it(e) {
|
|
874
|
-
return
|
|
864
|
+
return N({ 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);
|
|
875
865
|
}
|
|
876
866
|
function ot(e) {
|
|
877
|
-
return
|
|
867
|
+
return N({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28m-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14s-2.1-10.4-6.2-14" } }] })(e);
|
|
868
|
+
}
|
|
869
|
+
function ut(e) {
|
|
870
|
+
return N({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874S66 772.3 40.2 711.3C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3c22.2 52.4 53.9 99.5 94.3 139.9s87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952s117-11.6 171.3-34.6c52.4-22.2 99.5-53.9 139.9-94.3s72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512s-11.6-117-34.6-171.3a440.5 440.5 0 0 0-94.3-139.9a437.7 437.7 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150s83.9 101.8 109.7 162.7c26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874s-101.8 83.9-162.7 109.7c-63.1 26.8-130.2 40.3-199.3 40.3" } }] })(e);
|
|
871
|
+
}
|
|
872
|
+
function st(e) {
|
|
873
|
+
return N({ attrs: { viewBox: "0 0 512 512" }, children: [{ tag: "path", attrs: { d: "M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z", fill: "currentColor" } }] })(e);
|
|
874
|
+
}
|
|
875
|
+
function lt(e) {
|
|
876
|
+
return N({ attrs: { viewBox: "0 0 512 512" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16m144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16" } }] })(e);
|
|
877
|
+
}
|
|
878
|
+
function ct(e) {
|
|
879
|
+
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z" } }] })(e);
|
|
880
|
+
}
|
|
881
|
+
function ft(e) {
|
|
882
|
+
return N({ 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);
|
|
883
|
+
}
|
|
884
|
+
function dt(e) {
|
|
885
|
+
return N({ 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);
|
|
886
|
+
}
|
|
887
|
+
function vt(e) {
|
|
888
|
+
return N({ 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);
|
|
878
889
|
}
|
|
879
|
-
function
|
|
880
|
-
|
|
890
|
+
function mt(e) {
|
|
891
|
+
return N({ 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);
|
|
892
|
+
}
|
|
893
|
+
function ht(e) {
|
|
894
|
+
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14 19V5h4v14zm-8 0V5h4v14z" } }] })(e);
|
|
895
|
+
}
|
|
896
|
+
function pt(e) {
|
|
897
|
+
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712" } }] })(e);
|
|
898
|
+
}
|
|
899
|
+
function yt(e) {
|
|
900
|
+
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.5 10.5h-.75q-.325 0-.537-.213T10 9.75t.213-.537T10.75 9H12q.425 0 .713.288T13 10v4.25q0 .325-.213.538T12.25 15t-.537-.213t-.213-.537zM6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z" } }] })(e);
|
|
901
|
+
}
|
|
902
|
+
function bt(e) {
|
|
903
|
+
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "m6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z" } }] })(e);
|
|
904
|
+
}
|
|
905
|
+
function gt(e) {
|
|
906
|
+
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9 15H6q-.425 0-.712-.288T5 14v-4q0-.425.288-.712T6 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T12.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.512.013T16 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2" } }] })(e);
|
|
907
|
+
}
|
|
908
|
+
function Et(e) {
|
|
909
|
+
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7 15V9h4l5-5v16l-5-5z" } }] })(e);
|
|
910
|
+
}
|
|
911
|
+
function xt(e) {
|
|
912
|
+
return N({ 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);
|
|
913
|
+
}
|
|
914
|
+
function St(e) {
|
|
915
|
+
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M18.25 12L8.5 17.629V6.37z" } }] })(e);
|
|
916
|
+
}
|
|
917
|
+
function Ne(e, r) {
|
|
918
|
+
if (!r.current) return 0;
|
|
919
|
+
let n = (e.clientX - r.current.getBoundingClientRect().left) / r.current.clientWidth;
|
|
920
|
+
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
921
|
+
}
|
|
922
|
+
function qe(e, r) {
|
|
923
|
+
if (!r.current) return 0;
|
|
924
|
+
let n = 1 - (e.clientY - r.current.getBoundingClientRect().top) / r.current.clientHeight;
|
|
925
|
+
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
926
|
+
}
|
|
927
|
+
function pr(e) {
|
|
928
|
+
var r, n, a = "";
|
|
881
929
|
if (typeof e == "string" || typeof e == "number") a += e;
|
|
882
930
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
883
931
|
var i = e.length;
|
|
884
|
-
for (
|
|
932
|
+
for (r = 0; r < i; r++) e[r] && (n = pr(e[r])) && (a && (a += " "), a += n);
|
|
885
933
|
} else for (n in e) e[n] && (a && (a += " "), a += n);
|
|
886
934
|
return a;
|
|
887
935
|
}
|
|
888
|
-
function
|
|
889
|
-
for (var e,
|
|
936
|
+
function C() {
|
|
937
|
+
for (var e, r, n = 0, a = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (r = pr(e)) && (a && (a += " "), a += r);
|
|
890
938
|
return a;
|
|
891
939
|
}
|
|
892
|
-
function
|
|
940
|
+
function _t({
|
|
893
941
|
bufferedPercentage: e,
|
|
894
|
-
playedPercentage:
|
|
942
|
+
playedPercentage: r,
|
|
895
943
|
onSeek: n
|
|
896
944
|
}) {
|
|
897
|
-
const a =
|
|
898
|
-
|
|
899
|
-
s.current || g(
|
|
900
|
-
}, [
|
|
901
|
-
const
|
|
902
|
-
(
|
|
945
|
+
const a = G("aplayer-bar"), i = G("aplayer-icon"), l = V(null), [h, g] = Y(r), s = V(!1);
|
|
946
|
+
F(() => {
|
|
947
|
+
s.current || g(r);
|
|
948
|
+
}, [r]);
|
|
949
|
+
const c = R(
|
|
950
|
+
(f) => {
|
|
903
951
|
s.current = !0;
|
|
904
|
-
const
|
|
905
|
-
g(
|
|
906
|
-
const
|
|
907
|
-
const u =
|
|
952
|
+
const p = Ne(f, l);
|
|
953
|
+
g(p);
|
|
954
|
+
const x = (b) => {
|
|
955
|
+
const u = Ne(b, l);
|
|
908
956
|
g(u);
|
|
909
|
-
},
|
|
910
|
-
document.removeEventListener("mousemove",
|
|
911
|
-
const u =
|
|
957
|
+
}, E = (b) => {
|
|
958
|
+
document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", E);
|
|
959
|
+
const u = Ne(b, l);
|
|
912
960
|
g(u), n == null || n(u), s.current = !1;
|
|
913
961
|
};
|
|
914
|
-
document.addEventListener("mousemove",
|
|
962
|
+
document.addEventListener("mousemove", x), document.addEventListener("mouseup", E);
|
|
915
963
|
},
|
|
916
964
|
[n]
|
|
917
965
|
);
|
|
918
|
-
return /* @__PURE__ */
|
|
966
|
+
return /* @__PURE__ */ d.jsx(
|
|
919
967
|
"div",
|
|
920
968
|
{
|
|
921
969
|
ref: l,
|
|
922
|
-
className:
|
|
923
|
-
onMouseDown:
|
|
970
|
+
className: C(a.b(), a.bs("vars")),
|
|
971
|
+
onMouseDown: c,
|
|
924
972
|
role: "slider",
|
|
925
973
|
"aria-label": "Audio progress",
|
|
926
|
-
"aria-valuenow":
|
|
974
|
+
"aria-valuenow": h ? h * 100 : 0,
|
|
927
975
|
"aria-valuemin": 0,
|
|
928
976
|
"aria-valuemax": 100,
|
|
929
977
|
"aria-live": "polite",
|
|
930
|
-
children: /* @__PURE__ */
|
|
931
|
-
typeof e < "u" ? /* @__PURE__ */
|
|
978
|
+
children: /* @__PURE__ */ d.jsxs("div", { className: a.be("inner"), children: [
|
|
979
|
+
typeof e < "u" ? /* @__PURE__ */ d.jsx(
|
|
932
980
|
"div",
|
|
933
981
|
{
|
|
934
982
|
className: a.be("loaded"),
|
|
935
983
|
style: { width: `${e * 100}%` }
|
|
936
984
|
}
|
|
937
985
|
) : null,
|
|
938
|
-
typeof
|
|
986
|
+
typeof h < "u" ? /* @__PURE__ */ d.jsx(
|
|
939
987
|
"div",
|
|
940
988
|
{
|
|
941
989
|
className: a.be("played"),
|
|
942
990
|
style: {
|
|
943
|
-
width: `${
|
|
991
|
+
width: `${h * 100}%`
|
|
944
992
|
},
|
|
945
|
-
children: /* @__PURE__ */
|
|
993
|
+
children: /* @__PURE__ */ d.jsx(
|
|
946
994
|
"span",
|
|
947
995
|
{
|
|
948
996
|
className: a.be("thumb"),
|
|
949
|
-
children: /* @__PURE__ */
|
|
997
|
+
children: /* @__PURE__ */ d.jsx("span", { className: C(i.bs("loading")), children: /* @__PURE__ */ d.jsx(ut, {}) })
|
|
950
998
|
}
|
|
951
999
|
)
|
|
952
1000
|
}
|
|
@@ -955,76 +1003,49 @@ function ut({
|
|
|
955
1003
|
}
|
|
956
1004
|
);
|
|
957
1005
|
}
|
|
958
|
-
function
|
|
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
|
-
}
|
|
961
|
-
function ct(e) {
|
|
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
|
-
}
|
|
964
|
-
function lt(e) {
|
|
965
|
-
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14 19V5h4v14zm-8 0V5h4v14z" } }] })(e);
|
|
966
|
-
}
|
|
967
|
-
function ft(e) {
|
|
968
|
-
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712" } }] })(e);
|
|
969
|
-
}
|
|
970
|
-
function dt(e) {
|
|
971
|
-
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.5 10.5h-.75q-.325 0-.537-.213T10 9.75t.213-.537T10.75 9H12q.425 0 .713.288T13 10v4.25q0 .325-.213.538T12.25 15t-.537-.213t-.213-.537zM6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z" } }] })(e);
|
|
972
|
-
}
|
|
973
|
-
function vt(e) {
|
|
974
|
-
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "m6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z" } }] })(e);
|
|
975
|
-
}
|
|
976
|
-
function mt(e) {
|
|
977
|
-
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9 15H6q-.425 0-.712-.288T5 14v-4q0-.425.288-.712T6 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T12.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.512.013T16 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2" } }] })(e);
|
|
978
|
-
}
|
|
979
|
-
function ht(e) {
|
|
980
|
-
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7 15V9h4l5-5v16l-5-5z" } }] })(e);
|
|
981
|
-
}
|
|
982
|
-
function pt(e) {
|
|
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
|
-
}
|
|
985
|
-
function yt({
|
|
1006
|
+
function Tt({
|
|
986
1007
|
volume: e,
|
|
987
|
-
muted:
|
|
1008
|
+
muted: r,
|
|
988
1009
|
onToggleMuted: n,
|
|
989
1010
|
onChangeVolume: a
|
|
990
1011
|
}) {
|
|
991
|
-
const i =
|
|
992
|
-
(
|
|
993
|
-
a(
|
|
994
|
-
const
|
|
995
|
-
a(
|
|
996
|
-
},
|
|
997
|
-
document.removeEventListener("mouseup",
|
|
1012
|
+
const i = G("aplayer-volumn"), l = G("aplayer-icon"), h = V(null), [g, s] = Y(!1), c = R(
|
|
1013
|
+
(f) => {
|
|
1014
|
+
a(qe(f, h)), s(!0);
|
|
1015
|
+
const p = (E) => {
|
|
1016
|
+
a(qe(E, h));
|
|
1017
|
+
}, x = (E) => {
|
|
1018
|
+
document.removeEventListener("mouseup", x), document.removeEventListener("mousemove", p), s(!1), a(qe(E, h));
|
|
998
1019
|
};
|
|
999
|
-
document.addEventListener("mousemove",
|
|
1020
|
+
document.addEventListener("mousemove", p), document.addEventListener("mouseup", x);
|
|
1000
1021
|
},
|
|
1001
1022
|
[a]
|
|
1002
1023
|
);
|
|
1003
|
-
return /* @__PURE__ */
|
|
1004
|
-
/* @__PURE__ */
|
|
1024
|
+
return /* @__PURE__ */ d.jsxs("div", { className: C(i.b(), i.bs("vars")), children: [
|
|
1025
|
+
/* @__PURE__ */ d.jsx(
|
|
1005
1026
|
"button",
|
|
1006
1027
|
{
|
|
1007
1028
|
type: "button",
|
|
1008
|
-
className:
|
|
1029
|
+
className: C(l.b(), l.bs("volume-down")),
|
|
1009
1030
|
onClick: () => n(),
|
|
1010
|
-
"aria-label":
|
|
1011
|
-
children:
|
|
1031
|
+
"aria-label": r || !e ? "Muted" : "unMuted",
|
|
1032
|
+
children: r || !e ? /* @__PURE__ */ d.jsx(Et, {}) : e >= 1 ? /* @__PURE__ */ d.jsx(xt, {}) : /* @__PURE__ */ d.jsx(gt, {})
|
|
1012
1033
|
}
|
|
1013
1034
|
),
|
|
1014
|
-
/* @__PURE__ */
|
|
1035
|
+
/* @__PURE__ */ d.jsx(
|
|
1015
1036
|
"div",
|
|
1016
1037
|
{
|
|
1017
|
-
className:
|
|
1038
|
+
className: C(i.be("bar-wrap"), {
|
|
1018
1039
|
[i.bem("bar-wrap", "active")]: g
|
|
1019
1040
|
}),
|
|
1020
|
-
ref:
|
|
1021
|
-
onMouseDown:
|
|
1022
|
-
children: /* @__PURE__ */
|
|
1041
|
+
ref: h,
|
|
1042
|
+
onMouseDown: c,
|
|
1043
|
+
children: /* @__PURE__ */ d.jsx("div", { className: i.be("bar"), children: /* @__PURE__ */ d.jsx(
|
|
1023
1044
|
"div",
|
|
1024
1045
|
{
|
|
1025
1046
|
className: i.be("thumb"),
|
|
1026
1047
|
style: {
|
|
1027
|
-
height:
|
|
1048
|
+
height: r ? 0 : `${e * 100}%`
|
|
1028
1049
|
}
|
|
1029
1050
|
}
|
|
1030
1051
|
) })
|
|
@@ -1032,171 +1053,156 @@ function yt({
|
|
|
1032
1053
|
)
|
|
1033
1054
|
] });
|
|
1034
1055
|
}
|
|
1035
|
-
function
|
|
1056
|
+
function sr(e) {
|
|
1036
1057
|
if (typeof e > "u")
|
|
1037
1058
|
return "--:--";
|
|
1038
1059
|
if (Number.isNaN(e))
|
|
1039
1060
|
return "00:00";
|
|
1040
|
-
const
|
|
1061
|
+
const r = (h) => h < 10 ? `0${h}` : `${h}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), l = Math.trunc(
|
|
1041
1062
|
e / 60 - 60 * Math.trunc(e / 60 / 60)
|
|
1042
1063
|
);
|
|
1043
|
-
return e >= 3600 ? `${
|
|
1044
|
-
}
|
|
1045
|
-
function bt(e) {
|
|
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);
|
|
1047
|
-
}
|
|
1048
|
-
function gt(e) {
|
|
1049
|
-
return q({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28m-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14s-2.1-10.4-6.2-14" } }] })(e);
|
|
1050
|
-
}
|
|
1051
|
-
function Et(e) {
|
|
1052
|
-
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z" } }] })(e);
|
|
1053
|
-
}
|
|
1054
|
-
function xt(e) {
|
|
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
|
-
}
|
|
1057
|
-
function St(e) {
|
|
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);
|
|
1064
|
+
return e >= 3600 ? `${r(i)}:${r(l)}:${r(a)}` : `${r(n)}:${r(a)}`;
|
|
1059
1065
|
}
|
|
1060
|
-
function
|
|
1066
|
+
function wt({
|
|
1061
1067
|
volume: e,
|
|
1062
|
-
onChangeVolume:
|
|
1068
|
+
onChangeVolume: r,
|
|
1063
1069
|
muted: n,
|
|
1064
1070
|
currentTime: a,
|
|
1065
1071
|
audioDurationSeconds: i,
|
|
1066
1072
|
bufferedSeconds: l,
|
|
1067
|
-
onToggleMenu:
|
|
1073
|
+
onToggleMenu: h,
|
|
1068
1074
|
onToggleMuted: g,
|
|
1069
1075
|
order: s,
|
|
1070
|
-
onOrderChange:
|
|
1071
|
-
loop:
|
|
1072
|
-
onLoopChange:
|
|
1073
|
-
onSeek:
|
|
1074
|
-
isPlaying:
|
|
1075
|
-
onTogglePlay:
|
|
1076
|
+
onOrderChange: c,
|
|
1077
|
+
loop: f,
|
|
1078
|
+
onLoopChange: p,
|
|
1079
|
+
onSeek: x,
|
|
1080
|
+
isPlaying: E,
|
|
1081
|
+
onTogglePlay: b,
|
|
1076
1082
|
onSkipForward: u,
|
|
1077
|
-
onSkipBack:
|
|
1078
|
-
showLyrics:
|
|
1079
|
-
onToggleLyrics:
|
|
1083
|
+
onSkipBack: v,
|
|
1084
|
+
showLyrics: y = !0,
|
|
1085
|
+
onToggleLyrics: w
|
|
1080
1086
|
}) {
|
|
1081
|
-
const
|
|
1082
|
-
const
|
|
1087
|
+
const j = G("aplayer-controller"), L = G("aplayer-icon"), B = R(() => {
|
|
1088
|
+
const q = {
|
|
1083
1089
|
list: "random",
|
|
1084
1090
|
random: "list"
|
|
1085
1091
|
}[s];
|
|
1086
|
-
|
|
1087
|
-
}, [s,
|
|
1088
|
-
const
|
|
1092
|
+
c(q);
|
|
1093
|
+
}, [s, c]), z = R(() => {
|
|
1094
|
+
const q = {
|
|
1089
1095
|
all: "one",
|
|
1090
1096
|
one: "none",
|
|
1091
1097
|
none: "all"
|
|
1092
|
-
}[
|
|
1093
|
-
|
|
1094
|
-
}, [
|
|
1095
|
-
return /* @__PURE__ */
|
|
1098
|
+
}[f];
|
|
1099
|
+
p(q);
|
|
1100
|
+
}, [f, p]);
|
|
1101
|
+
return /* @__PURE__ */ d.jsxs(
|
|
1096
1102
|
"div",
|
|
1097
1103
|
{
|
|
1098
|
-
className:
|
|
1104
|
+
className: C(j.b(), j.bs("vars")),
|
|
1099
1105
|
role: "group",
|
|
1100
1106
|
"aria-label": "Audio Controls",
|
|
1101
1107
|
children: [
|
|
1102
|
-
/* @__PURE__ */
|
|
1103
|
-
|
|
1108
|
+
/* @__PURE__ */ d.jsx(
|
|
1109
|
+
_t,
|
|
1104
1110
|
{
|
|
1105
1111
|
playedPercentage: typeof a > "u" || typeof i > "u" ? void 0 : a / i,
|
|
1106
1112
|
bufferedPercentage: typeof l > "u" || typeof i > "u" ? void 0 : l / i,
|
|
1107
|
-
onSeek: (
|
|
1113
|
+
onSeek: (q) => x == null ? void 0 : x(q * i)
|
|
1108
1114
|
}
|
|
1109
1115
|
),
|
|
1110
|
-
/* @__PURE__ */
|
|
1111
|
-
/* @__PURE__ */
|
|
1112
|
-
/* @__PURE__ */
|
|
1116
|
+
/* @__PURE__ */ d.jsxs("div", { className: j.be("time"), children: [
|
|
1117
|
+
/* @__PURE__ */ d.jsxs("span", { className: j.be("time-inner"), "aria-live": "polite", children: [
|
|
1118
|
+
/* @__PURE__ */ d.jsx("span", { className: j.be("ptime"), children: sr(a) }),
|
|
1113
1119
|
" / ",
|
|
1114
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ d.jsx("span", { className: j.be("dtime"), children: sr(i) })
|
|
1115
1121
|
] }),
|
|
1116
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ d.jsx(
|
|
1117
1123
|
"button",
|
|
1118
1124
|
{
|
|
1119
|
-
className:
|
|
1120
|
-
onClick:
|
|
1125
|
+
className: C(L.b(), L.bs("back")),
|
|
1126
|
+
onClick: v,
|
|
1121
1127
|
type: "button",
|
|
1122
1128
|
"aria-label": "Previous track",
|
|
1123
|
-
children: /* @__PURE__ */
|
|
1129
|
+
children: /* @__PURE__ */ d.jsx(it, {})
|
|
1124
1130
|
}
|
|
1125
1131
|
),
|
|
1126
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ d.jsx(
|
|
1127
1133
|
"button",
|
|
1128
1134
|
{
|
|
1129
|
-
className:
|
|
1130
|
-
onClick:
|
|
1135
|
+
className: C(L.b(), L.bs("play")),
|
|
1136
|
+
onClick: b,
|
|
1131
1137
|
type: "button",
|
|
1132
|
-
"aria-label":
|
|
1133
|
-
children:
|
|
1138
|
+
"aria-label": E ? "Pause audio" : "Play audio",
|
|
1139
|
+
children: E ? /* @__PURE__ */ d.jsx(ht, {}) : /* @__PURE__ */ d.jsx(pt, {})
|
|
1134
1140
|
}
|
|
1135
1141
|
),
|
|
1136
|
-
/* @__PURE__ */
|
|
1142
|
+
/* @__PURE__ */ d.jsx(
|
|
1137
1143
|
"button",
|
|
1138
1144
|
{
|
|
1139
|
-
className:
|
|
1145
|
+
className: C(L.b(), L.bs("forward")),
|
|
1140
1146
|
onClick: u,
|
|
1141
1147
|
type: "button",
|
|
1142
1148
|
"aria-label": "Next track",
|
|
1143
|
-
children: /* @__PURE__ */
|
|
1149
|
+
children: /* @__PURE__ */ d.jsx(ot, {})
|
|
1144
1150
|
}
|
|
1145
1151
|
),
|
|
1146
|
-
/* @__PURE__ */
|
|
1147
|
-
|
|
1152
|
+
/* @__PURE__ */ d.jsx(
|
|
1153
|
+
Tt,
|
|
1148
1154
|
{
|
|
1149
1155
|
volume: e,
|
|
1150
1156
|
muted: n,
|
|
1151
1157
|
onToggleMuted: g,
|
|
1152
|
-
onChangeVolume:
|
|
1158
|
+
onChangeVolume: r
|
|
1153
1159
|
}
|
|
1154
1160
|
),
|
|
1155
|
-
/* @__PURE__ */
|
|
1161
|
+
/* @__PURE__ */ d.jsx(
|
|
1156
1162
|
"button",
|
|
1157
1163
|
{
|
|
1158
|
-
className:
|
|
1159
|
-
onClick:
|
|
1164
|
+
className: C(L.b(), L.bs("order")),
|
|
1165
|
+
onClick: B,
|
|
1160
1166
|
type: "button",
|
|
1161
1167
|
"aria-label": `Playback order: ${s}`,
|
|
1162
|
-
children: { list: /* @__PURE__ */
|
|
1168
|
+
children: { list: /* @__PURE__ */ d.jsx(vt, {}), random: /* @__PURE__ */ d.jsx(dt, {}) }[s]
|
|
1163
1169
|
}
|
|
1164
1170
|
),
|
|
1165
|
-
/* @__PURE__ */
|
|
1171
|
+
/* @__PURE__ */ d.jsx(
|
|
1166
1172
|
"button",
|
|
1167
1173
|
{
|
|
1168
|
-
className:
|
|
1169
|
-
onClick:
|
|
1174
|
+
className: C(L.b(), L.bs("order")),
|
|
1175
|
+
onClick: z,
|
|
1170
1176
|
type: "button",
|
|
1171
|
-
"aria-label": `Loop mode: ${
|
|
1177
|
+
"aria-label": `Loop mode: ${f}`,
|
|
1172
1178
|
children: {
|
|
1173
|
-
all: /* @__PURE__ */
|
|
1174
|
-
one: /* @__PURE__ */
|
|
1175
|
-
none: /* @__PURE__ */
|
|
1176
|
-
}[
|
|
1179
|
+
all: /* @__PURE__ */ d.jsx(bt, {}),
|
|
1180
|
+
one: /* @__PURE__ */ d.jsx(yt, {}),
|
|
1181
|
+
none: /* @__PURE__ */ d.jsx(ft, {})
|
|
1182
|
+
}[f]
|
|
1177
1183
|
}
|
|
1178
1184
|
),
|
|
1179
|
-
/* @__PURE__ */
|
|
1185
|
+
/* @__PURE__ */ d.jsx(
|
|
1180
1186
|
"button",
|
|
1181
1187
|
{
|
|
1182
1188
|
type: "button",
|
|
1183
|
-
className:
|
|
1184
|
-
onClick: () =>
|
|
1189
|
+
className: C(L.b(), L.bs("menu")),
|
|
1190
|
+
onClick: () => h == null ? void 0 : h(),
|
|
1185
1191
|
"aria-label": "Toggle playlist menu",
|
|
1186
|
-
children: /* @__PURE__ */
|
|
1192
|
+
children: /* @__PURE__ */ d.jsx(ct, {})
|
|
1187
1193
|
}
|
|
1188
1194
|
),
|
|
1189
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ d.jsx(
|
|
1190
1196
|
"button",
|
|
1191
1197
|
{
|
|
1192
1198
|
type: "button",
|
|
1193
|
-
className:
|
|
1194
|
-
[
|
|
1199
|
+
className: C(L.b(), L.bs("lrc"), {
|
|
1200
|
+
[L.ns("lrc-inactivity")]: !y
|
|
1195
1201
|
}),
|
|
1196
|
-
onClick:
|
|
1197
|
-
"aria-label":
|
|
1198
|
-
"aria-pressed":
|
|
1199
|
-
children: /* @__PURE__ */
|
|
1202
|
+
onClick: w,
|
|
1203
|
+
"aria-label": y ? "Hide lyrics" : "Show lyrics",
|
|
1204
|
+
"aria-pressed": y,
|
|
1205
|
+
children: /* @__PURE__ */ d.jsx(mt, {})
|
|
1200
1206
|
}
|
|
1201
1207
|
)
|
|
1202
1208
|
] })
|
|
@@ -1204,78 +1210,78 @@ function _t({
|
|
|
1204
1210
|
}
|
|
1205
1211
|
);
|
|
1206
1212
|
}
|
|
1207
|
-
function
|
|
1213
|
+
function jt({
|
|
1208
1214
|
open: e,
|
|
1209
|
-
audio:
|
|
1215
|
+
audio: r,
|
|
1210
1216
|
playingAudioUrl: n,
|
|
1211
1217
|
onPlayAudio: a,
|
|
1212
1218
|
listMaxHeight: i
|
|
1213
1219
|
}) {
|
|
1214
|
-
const l =
|
|
1215
|
-
return
|
|
1220
|
+
const l = G("aplayer-list"), h = i ? { maxHeight: i } : void 0, g = R((c) => c ? typeof c == "string" ? c : c.name ?? "Audio artist" : "Audio artist", []), s = V(null);
|
|
1221
|
+
return F(() => {
|
|
1216
1222
|
if (s.current) {
|
|
1217
|
-
const
|
|
1218
|
-
return
|
|
1219
|
-
|
|
1223
|
+
const c = s.current;
|
|
1224
|
+
return c.style.maxHeight = `${Math.min(
|
|
1225
|
+
c.scrollHeight,
|
|
1220
1226
|
i ?? 1 / 0
|
|
1221
1227
|
)}px`, () => {
|
|
1222
|
-
|
|
1228
|
+
c.removeAttribute("style");
|
|
1223
1229
|
};
|
|
1224
1230
|
}
|
|
1225
|
-
}, [i]), /* @__PURE__ */
|
|
1231
|
+
}, [i]), /* @__PURE__ */ d.jsx(
|
|
1226
1232
|
"div",
|
|
1227
1233
|
{
|
|
1228
1234
|
ref: s,
|
|
1229
|
-
className:
|
|
1235
|
+
className: C(l.b(), {
|
|
1230
1236
|
[l.bm("hide")]: !e
|
|
1231
1237
|
}),
|
|
1232
1238
|
"aria-label": "Audio playlist",
|
|
1233
1239
|
"aria-live": "polite",
|
|
1234
|
-
children: /* @__PURE__ */
|
|
1240
|
+
children: /* @__PURE__ */ d.jsx("ol", { style: h, children: r.map((c, f) => /* @__PURE__ */ d.jsxs(
|
|
1235
1241
|
"li",
|
|
1236
1242
|
{
|
|
1237
|
-
className:
|
|
1238
|
-
[l.bm("active")]:
|
|
1243
|
+
className: C({
|
|
1244
|
+
[l.bm("active")]: c.url === n
|
|
1239
1245
|
}),
|
|
1240
1246
|
onClick: () => {
|
|
1241
|
-
|
|
1247
|
+
c.url !== n && (a == null || a(c));
|
|
1242
1248
|
},
|
|
1243
1249
|
role: "button",
|
|
1244
|
-
"aria-label": `${
|
|
1250
|
+
"aria-label": `${c.name ?? "Audio name"} by ${g(c.artist)}}`,
|
|
1245
1251
|
children: [
|
|
1246
|
-
/* @__PURE__ */
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
/* @__PURE__ */
|
|
1252
|
+
/* @__PURE__ */ d.jsx("span", { className: l.be("cur") }),
|
|
1253
|
+
/* @__PURE__ */ d.jsx("span", { className: l.be("index"), children: f + 1 }),
|
|
1254
|
+
/* @__PURE__ */ d.jsx("span", { className: l.be("title"), children: c.name ?? "Audio name" }),
|
|
1255
|
+
/* @__PURE__ */ d.jsx("span", { className: l.be("author"), children: g(c.artist) })
|
|
1250
1256
|
]
|
|
1251
1257
|
},
|
|
1252
|
-
|
|
1258
|
+
c.name || f
|
|
1253
1259
|
)) })
|
|
1254
1260
|
}
|
|
1255
1261
|
);
|
|
1256
1262
|
}
|
|
1257
|
-
function lr({ show: e, lrcText:
|
|
1258
|
-
const a =
|
|
1263
|
+
function lr({ show: e, lrcText: r, currentTime: n }) {
|
|
1264
|
+
const a = G("aplayer-lrc"), i = K(() => Ot(r), [r]), l = K(() => {
|
|
1259
1265
|
for (let g = 0; g < i.length; g++) {
|
|
1260
|
-
const s = i[g],
|
|
1261
|
-
if (n >= s[0] && (!
|
|
1266
|
+
const s = i[g], c = i[g + 1];
|
|
1267
|
+
if (n >= s[0] && (!c || n < c[0]))
|
|
1262
1268
|
return g;
|
|
1263
1269
|
}
|
|
1264
1270
|
return 0;
|
|
1265
|
-
}, [n, i]),
|
|
1271
|
+
}, [n, i]), h = K(() => ({
|
|
1266
1272
|
transform: `translateY(${-l * 16}px)`,
|
|
1267
1273
|
WebkitTransform: `translateY(${-l * 16}px)`
|
|
1268
1274
|
}), [l]);
|
|
1269
|
-
return /* @__PURE__ */
|
|
1275
|
+
return /* @__PURE__ */ d.jsx(
|
|
1270
1276
|
"div",
|
|
1271
1277
|
{
|
|
1272
|
-
className:
|
|
1278
|
+
className: C(a.b(), {
|
|
1273
1279
|
[a.bm("hide")]: !e
|
|
1274
1280
|
}),
|
|
1275
|
-
children:
|
|
1281
|
+
children: r ? /* @__PURE__ */ d.jsx("div", { className: a.be("contents"), style: h, children: i.map(([, g], s) => /* @__PURE__ */ d.jsx(
|
|
1276
1282
|
"p",
|
|
1277
1283
|
{
|
|
1278
|
-
className:
|
|
1284
|
+
className: C({
|
|
1279
1285
|
[a.be("current")]: s === l
|
|
1280
1286
|
}),
|
|
1281
1287
|
children: g
|
|
@@ -1285,19 +1291,19 @@ function lr({ show: e, lrcText: t, currentTime: n }) {
|
|
|
1285
1291
|
}
|
|
1286
1292
|
);
|
|
1287
1293
|
}
|
|
1288
|
-
function
|
|
1294
|
+
function Ot(e) {
|
|
1289
1295
|
if (e) {
|
|
1290
1296
|
e = e.replace(/([^\]^\n])\[/g, (i, l) => `${l}
|
|
1291
1297
|
[`);
|
|
1292
|
-
const
|
|
1293
|
-
`), n = [], a =
|
|
1298
|
+
const r = e.split(`
|
|
1299
|
+
`), n = [], a = r.length;
|
|
1294
1300
|
for (let i = 0; i < a; i++) {
|
|
1295
|
-
const l =
|
|
1301
|
+
const l = r[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), h = r[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
|
|
1296
1302
|
if (l) {
|
|
1297
1303
|
const g = l.length;
|
|
1298
1304
|
for (let s = 0; s < g; s++) {
|
|
1299
|
-
const
|
|
1300
|
-
n.push([
|
|
1305
|
+
const c = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(l[s]), f = c[1] * 60, p = Number.parseInt(c[2]), x = c[4] ? Number.parseInt(c[4]) / (`${c[4]}`.length === 2 ? 100 : 1e3) : 0, E = f + p + x;
|
|
1306
|
+
n.push([E, h]);
|
|
1301
1307
|
}
|
|
1302
1308
|
}
|
|
1303
1309
|
}
|
|
@@ -1305,7 +1311,7 @@ function wt(e) {
|
|
|
1305
1311
|
} else
|
|
1306
1312
|
return [];
|
|
1307
1313
|
}
|
|
1308
|
-
var
|
|
1314
|
+
var Te = { exports: {} }, ke = {};
|
|
1309
1315
|
/**
|
|
1310
1316
|
* @license React
|
|
1311
1317
|
* use-sync-external-store-shim.production.js
|
|
@@ -1315,48 +1321,48 @@ var je = { exports: {} }, De = {};
|
|
|
1315
1321
|
* This source code is licensed under the MIT license found in the
|
|
1316
1322
|
* LICENSE file in the root directory of this source tree.
|
|
1317
1323
|
*/
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1320
|
-
if (
|
|
1321
|
-
|
|
1322
|
-
var e =
|
|
1323
|
-
function
|
|
1324
|
-
return
|
|
1324
|
+
var cr;
|
|
1325
|
+
function Rt() {
|
|
1326
|
+
if (cr) return ke;
|
|
1327
|
+
cr = 1;
|
|
1328
|
+
var e = je;
|
|
1329
|
+
function r(p, x) {
|
|
1330
|
+
return p === x && (p !== 0 || 1 / p === 1 / x) || p !== p && x !== x;
|
|
1325
1331
|
}
|
|
1326
|
-
var n = typeof Object.is == "function" ? Object.is :
|
|
1327
|
-
function g(
|
|
1328
|
-
var
|
|
1332
|
+
var n = typeof Object.is == "function" ? Object.is : r, a = e.useState, i = e.useEffect, l = e.useLayoutEffect, h = e.useDebugValue;
|
|
1333
|
+
function g(p, x) {
|
|
1334
|
+
var E = x(), b = a({ inst: { value: E, getSnapshot: x } }), u = b[0].inst, v = b[1];
|
|
1329
1335
|
return l(
|
|
1330
1336
|
function() {
|
|
1331
|
-
u.value =
|
|
1337
|
+
u.value = E, u.getSnapshot = x, s(u) && v({ inst: u });
|
|
1332
1338
|
},
|
|
1333
|
-
[
|
|
1339
|
+
[p, E, x]
|
|
1334
1340
|
), i(
|
|
1335
1341
|
function() {
|
|
1336
|
-
return s(u) &&
|
|
1337
|
-
s(u) &&
|
|
1342
|
+
return s(u) && v({ inst: u }), p(function() {
|
|
1343
|
+
s(u) && v({ inst: u });
|
|
1338
1344
|
});
|
|
1339
1345
|
},
|
|
1340
|
-
[
|
|
1341
|
-
),
|
|
1346
|
+
[p]
|
|
1347
|
+
), h(E), E;
|
|
1342
1348
|
}
|
|
1343
|
-
function s(
|
|
1344
|
-
var
|
|
1345
|
-
|
|
1349
|
+
function s(p) {
|
|
1350
|
+
var x = p.getSnapshot;
|
|
1351
|
+
p = p.value;
|
|
1346
1352
|
try {
|
|
1347
|
-
var
|
|
1348
|
-
return !n(
|
|
1353
|
+
var E = x();
|
|
1354
|
+
return !n(p, E);
|
|
1349
1355
|
} catch {
|
|
1350
1356
|
return !0;
|
|
1351
1357
|
}
|
|
1352
1358
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1359
|
+
function c(p, x) {
|
|
1360
|
+
return x();
|
|
1355
1361
|
}
|
|
1356
|
-
var
|
|
1357
|
-
return
|
|
1362
|
+
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : g;
|
|
1363
|
+
return ke.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, ke;
|
|
1358
1364
|
}
|
|
1359
|
-
var
|
|
1365
|
+
var De = {};
|
|
1360
1366
|
/**
|
|
1361
1367
|
* @license React
|
|
1362
1368
|
* use-sync-external-store-shim.development.js
|
|
@@ -1366,576 +1372,638 @@ var Ie = {};
|
|
|
1366
1372
|
* This source code is licensed under the MIT license found in the
|
|
1367
1373
|
* LICENSE file in the root directory of this source tree.
|
|
1368
1374
|
*/
|
|
1369
|
-
var
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1372
|
-
function e(
|
|
1373
|
-
return
|
|
1375
|
+
var fr;
|
|
1376
|
+
function Pt() {
|
|
1377
|
+
return fr || (fr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1378
|
+
function e(E, b) {
|
|
1379
|
+
return E === b && (E !== 0 || 1 / E === 1 / b) || E !== E && b !== b;
|
|
1374
1380
|
}
|
|
1375
|
-
function
|
|
1376
|
-
|
|
1381
|
+
function r(E, b) {
|
|
1382
|
+
f || i.startTransition === void 0 || (f = !0, console.error(
|
|
1377
1383
|
"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
1384
|
));
|
|
1379
|
-
var u =
|
|
1380
|
-
if (!
|
|
1381
|
-
var
|
|
1382
|
-
l(u,
|
|
1385
|
+
var u = b();
|
|
1386
|
+
if (!p) {
|
|
1387
|
+
var v = b();
|
|
1388
|
+
l(u, v) || (console.error(
|
|
1383
1389
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
1384
|
-
),
|
|
1390
|
+
), p = !0);
|
|
1385
1391
|
}
|
|
1386
|
-
|
|
1387
|
-
inst: { value: u, getSnapshot:
|
|
1392
|
+
v = h({
|
|
1393
|
+
inst: { value: u, getSnapshot: b }
|
|
1388
1394
|
});
|
|
1389
|
-
var
|
|
1395
|
+
var y = v[0].inst, w = v[1];
|
|
1390
1396
|
return s(
|
|
1391
1397
|
function() {
|
|
1392
|
-
|
|
1398
|
+
y.value = u, y.getSnapshot = b, n(y) && w({ inst: y });
|
|
1393
1399
|
},
|
|
1394
|
-
[
|
|
1400
|
+
[E, u, b]
|
|
1395
1401
|
), g(
|
|
1396
1402
|
function() {
|
|
1397
|
-
return n(
|
|
1398
|
-
n(
|
|
1403
|
+
return n(y) && w({ inst: y }), E(function() {
|
|
1404
|
+
n(y) && w({ inst: y });
|
|
1399
1405
|
});
|
|
1400
1406
|
},
|
|
1401
|
-
[
|
|
1402
|
-
),
|
|
1407
|
+
[E]
|
|
1408
|
+
), c(u), u;
|
|
1403
1409
|
}
|
|
1404
|
-
function n(
|
|
1405
|
-
var
|
|
1406
|
-
|
|
1410
|
+
function n(E) {
|
|
1411
|
+
var b = E.getSnapshot;
|
|
1412
|
+
E = E.value;
|
|
1407
1413
|
try {
|
|
1408
|
-
var u =
|
|
1409
|
-
return !l(
|
|
1414
|
+
var u = b();
|
|
1415
|
+
return !l(E, u);
|
|
1410
1416
|
} catch {
|
|
1411
1417
|
return !0;
|
|
1412
1418
|
}
|
|
1413
1419
|
}
|
|
1414
|
-
function a(
|
|
1415
|
-
return
|
|
1420
|
+
function a(E, b) {
|
|
1421
|
+
return b();
|
|
1416
1422
|
}
|
|
1417
1423
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1418
|
-
var i =
|
|
1419
|
-
|
|
1420
|
-
}()),
|
|
1424
|
+
var i = je, l = typeof Object.is == "function" ? Object.is : e, h = i.useState, g = i.useEffect, s = i.useLayoutEffect, c = i.useDebugValue, f = !1, p = !1, x = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : r;
|
|
1425
|
+
De.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1426
|
+
}()), De;
|
|
1421
1427
|
}
|
|
1422
|
-
var
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1425
|
-
}
|
|
1426
|
-
var
|
|
1427
|
-
const
|
|
1428
|
-
function
|
|
1429
|
-
const
|
|
1430
|
-
return
|
|
1431
|
-
if (typeof window < "u" && !
|
|
1432
|
-
const n =
|
|
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),
|
|
1434
|
-
}
|
|
1435
|
-
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]),
|
|
1428
|
+
var dr;
|
|
1429
|
+
function Lt() {
|
|
1430
|
+
return dr || (dr = 1, process.env.NODE_ENV === "production" ? Te.exports = Rt() : Te.exports = Pt()), Te.exports;
|
|
1431
|
+
}
|
|
1432
|
+
var Q = Lt();
|
|
1433
|
+
const ne = [];
|
|
1434
|
+
function Ct(e) {
|
|
1435
|
+
const r = V();
|
|
1436
|
+
return F(() => {
|
|
1437
|
+
if (typeof window < "u" && !r.current) {
|
|
1438
|
+
const n = r.current = document.createElement("audio");
|
|
1439
|
+
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), ne.includes(n) || ne.push(n);
|
|
1440
|
+
}
|
|
1441
|
+
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), F(() => {
|
|
1436
1442
|
if (typeof window > "u") return;
|
|
1437
|
-
const n =
|
|
1443
|
+
const n = r.current;
|
|
1438
1444
|
if (n && (e != null && e.onError))
|
|
1439
1445
|
return n.addEventListener("error", e.onError), () => {
|
|
1440
1446
|
n.removeEventListener("error", e.onError);
|
|
1441
1447
|
};
|
|
1442
|
-
}, [e == null ? void 0 : e.onError]),
|
|
1448
|
+
}, [e == null ? void 0 : e.onError]), F(() => {
|
|
1443
1449
|
if (typeof window > "u") return;
|
|
1444
|
-
const n =
|
|
1450
|
+
const n = r.current;
|
|
1445
1451
|
if (n && (e != null && e.onEnded))
|
|
1446
1452
|
return n.addEventListener("ended", e.onEnded), () => {
|
|
1447
1453
|
n.removeEventListener("ended", e.onEnded);
|
|
1448
1454
|
};
|
|
1449
|
-
}, [e == null ? void 0 : e.onEnded]),
|
|
1450
|
-
const n =
|
|
1455
|
+
}, [e == null ? void 0 : e.onEnded]), F(() => () => {
|
|
1456
|
+
const n = r.current;
|
|
1451
1457
|
if (n) {
|
|
1452
1458
|
n.pause(), n.currentTime = 0;
|
|
1453
|
-
const a =
|
|
1454
|
-
a !== -1 &&
|
|
1459
|
+
const a = ne.indexOf(n);
|
|
1460
|
+
a !== -1 && ne.splice(a, 1);
|
|
1455
1461
|
}
|
|
1456
|
-
|
|
1457
|
-
}, []),
|
|
1462
|
+
r.current = void 0;
|
|
1463
|
+
}, []), r;
|
|
1458
1464
|
}
|
|
1459
|
-
function
|
|
1460
|
-
const
|
|
1461
|
-
for (let
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1465
|
+
function $t(e) {
|
|
1466
|
+
const r = Ct(e), n = R((u) => {
|
|
1467
|
+
for (let v = 0; v < ne.length; v++) {
|
|
1468
|
+
const y = ne[v];
|
|
1469
|
+
y !== u && !y.paused && y.pause();
|
|
1464
1470
|
}
|
|
1465
|
-
}, []), a =
|
|
1471
|
+
}, []), a = R(
|
|
1466
1472
|
async (u) => {
|
|
1467
|
-
var
|
|
1468
|
-
const
|
|
1469
|
-
if (
|
|
1470
|
-
e.mutex && n(
|
|
1473
|
+
var y;
|
|
1474
|
+
const v = r.current;
|
|
1475
|
+
if (v) {
|
|
1476
|
+
e.mutex && n(v), v.src !== u && (v.pause(), v.currentTime = 0, v.src = u);
|
|
1471
1477
|
try {
|
|
1472
|
-
await ((
|
|
1478
|
+
await ((y = r.current) == null ? void 0 : y.play());
|
|
1473
1479
|
} catch {
|
|
1474
1480
|
}
|
|
1475
1481
|
}
|
|
1476
1482
|
},
|
|
1477
|
-
[
|
|
1478
|
-
), i =
|
|
1483
|
+
[r, e.mutex, n]
|
|
1484
|
+
), i = R(
|
|
1479
1485
|
(u) => {
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1486
|
+
const v = r.current;
|
|
1487
|
+
v && (v.paused ? a(u) : v.pause());
|
|
1482
1488
|
},
|
|
1483
|
-
[
|
|
1484
|
-
), l =
|
|
1489
|
+
[r, a]
|
|
1490
|
+
), l = R(
|
|
1485
1491
|
(u) => {
|
|
1486
|
-
|
|
1492
|
+
r.current.currentTime = u;
|
|
1487
1493
|
},
|
|
1488
|
-
[
|
|
1489
|
-
),
|
|
1490
|
-
|
|
1491
|
-
}, [
|
|
1494
|
+
[r]
|
|
1495
|
+
), h = R(() => {
|
|
1496
|
+
r.current && (r.current.muted = !r.current.muted);
|
|
1497
|
+
}, [r]), g = R(
|
|
1492
1498
|
(u) => {
|
|
1493
|
-
|
|
1499
|
+
r.current && (r.current.volume = u);
|
|
1494
1500
|
},
|
|
1495
|
-
[
|
|
1496
|
-
), s =
|
|
1497
|
-
|
|
1501
|
+
[r]
|
|
1502
|
+
), s = Q.useSyncExternalStore(
|
|
1503
|
+
R(
|
|
1498
1504
|
(u) => {
|
|
1499
|
-
var
|
|
1500
|
-
return (
|
|
1505
|
+
var v;
|
|
1506
|
+
return (v = r.current) == null || v.addEventListener(
|
|
1501
1507
|
"volumechange",
|
|
1502
1508
|
u
|
|
1503
1509
|
), () => {
|
|
1504
|
-
var
|
|
1505
|
-
(
|
|
1510
|
+
var y;
|
|
1511
|
+
(y = r.current) == null || y.removeEventListener(
|
|
1506
1512
|
"volumechange",
|
|
1507
1513
|
u
|
|
1508
1514
|
);
|
|
1509
1515
|
};
|
|
1510
1516
|
},
|
|
1511
|
-
[
|
|
1517
|
+
[r]
|
|
1512
1518
|
),
|
|
1513
1519
|
() => {
|
|
1514
1520
|
var u;
|
|
1515
|
-
return (u =
|
|
1521
|
+
return (u = r.current) == null ? void 0 : u.volume;
|
|
1516
1522
|
},
|
|
1517
1523
|
() => {
|
|
1518
1524
|
}
|
|
1519
|
-
),
|
|
1520
|
-
|
|
1525
|
+
), c = Q.useSyncExternalStore(
|
|
1526
|
+
R(
|
|
1521
1527
|
(u) => {
|
|
1522
|
-
var
|
|
1523
|
-
return (
|
|
1528
|
+
var v;
|
|
1529
|
+
return (v = r.current) == null || v.addEventListener(
|
|
1524
1530
|
"volumechange",
|
|
1525
1531
|
u
|
|
1526
1532
|
), () => {
|
|
1527
|
-
var
|
|
1528
|
-
(
|
|
1533
|
+
var y;
|
|
1534
|
+
(y = r.current) == null || y.removeEventListener(
|
|
1529
1535
|
"volumechange",
|
|
1530
1536
|
u
|
|
1531
1537
|
);
|
|
1532
1538
|
};
|
|
1533
1539
|
},
|
|
1534
|
-
[
|
|
1540
|
+
[r]
|
|
1535
1541
|
),
|
|
1536
1542
|
() => {
|
|
1537
1543
|
var u;
|
|
1538
|
-
return (u =
|
|
1544
|
+
return (u = r.current) == null ? void 0 : u.muted;
|
|
1539
1545
|
},
|
|
1540
1546
|
() => {
|
|
1541
1547
|
}
|
|
1542
|
-
),
|
|
1543
|
-
|
|
1548
|
+
), f = Q.useSyncExternalStore(
|
|
1549
|
+
R(
|
|
1544
1550
|
(u) => {
|
|
1545
|
-
var
|
|
1546
|
-
return (
|
|
1547
|
-
var
|
|
1548
|
-
(
|
|
1551
|
+
var v;
|
|
1552
|
+
return (v = r.current) == null || v.addEventListener("timeupdate", u), () => {
|
|
1553
|
+
var y;
|
|
1554
|
+
(y = r.current) == null || y.removeEventListener(
|
|
1549
1555
|
"timeupdate",
|
|
1550
1556
|
u
|
|
1551
1557
|
);
|
|
1552
1558
|
};
|
|
1553
1559
|
},
|
|
1554
|
-
[
|
|
1560
|
+
[r]
|
|
1555
1561
|
),
|
|
1556
1562
|
() => {
|
|
1557
|
-
if (
|
|
1558
|
-
return Math.round(
|
|
1563
|
+
if (r.current)
|
|
1564
|
+
return Math.round(r.current.currentTime);
|
|
1559
1565
|
},
|
|
1560
1566
|
() => {
|
|
1561
1567
|
}
|
|
1562
|
-
),
|
|
1563
|
-
|
|
1568
|
+
), p = Q.useSyncExternalStore(
|
|
1569
|
+
R(
|
|
1564
1570
|
(u) => {
|
|
1565
|
-
var
|
|
1566
|
-
return (
|
|
1571
|
+
var v;
|
|
1572
|
+
return (v = r.current) == null || v.addEventListener(
|
|
1567
1573
|
"durationchange",
|
|
1568
1574
|
u
|
|
1569
1575
|
), () => {
|
|
1570
|
-
var
|
|
1571
|
-
(
|
|
1576
|
+
var y;
|
|
1577
|
+
(y = r.current) == null || y.removeEventListener(
|
|
1572
1578
|
"durationchange",
|
|
1573
1579
|
u
|
|
1574
1580
|
);
|
|
1575
1581
|
};
|
|
1576
1582
|
},
|
|
1577
|
-
[
|
|
1583
|
+
[r]
|
|
1578
1584
|
),
|
|
1579
1585
|
() => {
|
|
1580
1586
|
var u;
|
|
1581
|
-
return (u =
|
|
1587
|
+
return (u = r.current) == null ? void 0 : u.duration;
|
|
1582
1588
|
},
|
|
1583
1589
|
() => {
|
|
1584
1590
|
}
|
|
1585
|
-
),
|
|
1586
|
-
|
|
1591
|
+
), x = Q.useSyncExternalStore(
|
|
1592
|
+
R(
|
|
1587
1593
|
(u) => {
|
|
1588
|
-
var
|
|
1589
|
-
return (
|
|
1590
|
-
var
|
|
1591
|
-
(
|
|
1594
|
+
var v;
|
|
1595
|
+
return (v = r.current) == null || v.addEventListener("progress", u), () => {
|
|
1596
|
+
var y;
|
|
1597
|
+
(y = r.current) == null || y.removeEventListener(
|
|
1592
1598
|
"progress",
|
|
1593
1599
|
u
|
|
1594
1600
|
);
|
|
1595
1601
|
};
|
|
1596
1602
|
},
|
|
1597
|
-
[
|
|
1603
|
+
[r]
|
|
1598
1604
|
),
|
|
1599
1605
|
() => {
|
|
1600
|
-
const u =
|
|
1606
|
+
const u = r.current;
|
|
1601
1607
|
return u && u.buffered.length > 0 ? u.buffered.end(u.buffered.length - 1) : 0;
|
|
1602
1608
|
},
|
|
1603
1609
|
() => {
|
|
1604
1610
|
}
|
|
1605
|
-
),
|
|
1606
|
-
|
|
1611
|
+
), E = Q.useSyncExternalStore(
|
|
1612
|
+
R(
|
|
1607
1613
|
(u) => {
|
|
1608
|
-
var
|
|
1609
|
-
return (
|
|
1610
|
-
var
|
|
1611
|
-
(
|
|
1614
|
+
var v, y;
|
|
1615
|
+
return (v = r.current) == null || v.addEventListener("play", u), (y = r.current) == null || y.addEventListener("pause", u), () => {
|
|
1616
|
+
var w, j;
|
|
1617
|
+
(w = r.current) == null || w.removeEventListener("play", u), (j = r.current) == null || j.removeEventListener("pause", u);
|
|
1612
1618
|
};
|
|
1613
1619
|
},
|
|
1614
|
-
[
|
|
1620
|
+
[r]
|
|
1615
1621
|
),
|
|
1616
1622
|
() => {
|
|
1617
|
-
const u =
|
|
1623
|
+
const u = r.current;
|
|
1618
1624
|
return u ? !u.paused : !1;
|
|
1619
1625
|
},
|
|
1620
1626
|
() => {
|
|
1621
1627
|
}
|
|
1622
|
-
),
|
|
1623
|
-
|
|
1628
|
+
), b = Q.useSyncExternalStore(
|
|
1629
|
+
R(
|
|
1624
1630
|
(u) => {
|
|
1625
|
-
var
|
|
1626
|
-
return (
|
|
1627
|
-
var
|
|
1628
|
-
(
|
|
1631
|
+
var v, y;
|
|
1632
|
+
return (v = r.current) == null || v.addEventListener("playing", u), (y = r.current) == null || y.addEventListener("waiting", u), () => {
|
|
1633
|
+
var w, j;
|
|
1634
|
+
(w = r.current) == null || w.removeEventListener(
|
|
1629
1635
|
"playing",
|
|
1630
1636
|
u
|
|
1631
|
-
), (
|
|
1637
|
+
), (j = r.current) == null || j.removeEventListener(
|
|
1632
1638
|
"waiting",
|
|
1633
1639
|
u
|
|
1634
1640
|
);
|
|
1635
1641
|
};
|
|
1636
1642
|
},
|
|
1637
|
-
[
|
|
1643
|
+
[r]
|
|
1638
1644
|
),
|
|
1639
1645
|
() => {
|
|
1640
|
-
const u =
|
|
1646
|
+
const u = r.current;
|
|
1641
1647
|
return u ? u.networkState === u.NETWORK_LOADING : !1;
|
|
1642
1648
|
},
|
|
1643
1649
|
() => {
|
|
1644
1650
|
}
|
|
1645
1651
|
);
|
|
1646
1652
|
return {
|
|
1647
|
-
audio:
|
|
1653
|
+
audio: r.current,
|
|
1648
1654
|
playAudio: a,
|
|
1649
1655
|
togglePlay: i,
|
|
1650
1656
|
seek: l,
|
|
1651
|
-
toggleMuted:
|
|
1657
|
+
toggleMuted: h,
|
|
1652
1658
|
setVolume: g,
|
|
1653
1659
|
volume: s,
|
|
1654
|
-
muted:
|
|
1655
|
-
currentTime:
|
|
1656
|
-
duration:
|
|
1657
|
-
bufferedSeconds:
|
|
1658
|
-
isPlaying:
|
|
1659
|
-
isLoading:
|
|
1660
|
+
muted: c,
|
|
1661
|
+
currentTime: f,
|
|
1662
|
+
duration: p,
|
|
1663
|
+
bufferedSeconds: x,
|
|
1664
|
+
isPlaying: E,
|
|
1665
|
+
isLoading: b
|
|
1660
1666
|
};
|
|
1661
1667
|
}
|
|
1662
|
-
function
|
|
1663
|
-
|
|
1664
|
-
|
|
1668
|
+
function At(e, r) {
|
|
1669
|
+
return K(() => {
|
|
1670
|
+
const n = { ...r };
|
|
1671
|
+
for (const a in e)
|
|
1672
|
+
e[a] !== void 0 && (n[a] = e[a]);
|
|
1673
|
+
return n;
|
|
1674
|
+
}, [e, r]);
|
|
1675
|
+
}
|
|
1676
|
+
function Mt(e) {
|
|
1677
|
+
const [r, n] = Y(e);
|
|
1678
|
+
return F(() => {
|
|
1679
|
+
n(e);
|
|
1680
|
+
}, [e]), {
|
|
1681
|
+
mini: r,
|
|
1682
|
+
setMini: n
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
function yr() {
|
|
1686
|
+
const e = V([]);
|
|
1687
|
+
return F(() => {
|
|
1665
1688
|
const n = e.current;
|
|
1666
1689
|
return () => {
|
|
1667
1690
|
for (const a of n)
|
|
1668
1691
|
clearTimeout(a);
|
|
1669
1692
|
};
|
|
1670
|
-
}, []),
|
|
1693
|
+
}, []), R((n, a) => {
|
|
1671
1694
|
const i = setTimeout(n, a);
|
|
1672
1695
|
return e.current.push(i), i;
|
|
1673
1696
|
}, []);
|
|
1674
1697
|
}
|
|
1675
|
-
function
|
|
1676
|
-
const e =
|
|
1677
|
-
(l,
|
|
1698
|
+
function Nt() {
|
|
1699
|
+
const e = V(), [r, n] = Y({ text: "", style: { opacity: 0 } }), a = yr(), i = R(
|
|
1700
|
+
(l, h = 2e3) => {
|
|
1678
1701
|
e.current && clearTimeout(e.current), n({ text: l, style: { opacity: 1 } }), e.current = a(() => {
|
|
1679
1702
|
n({ text: l, style: { opacity: 0 } });
|
|
1680
|
-
},
|
|
1703
|
+
}, h);
|
|
1681
1704
|
},
|
|
1682
1705
|
[a]
|
|
1683
1706
|
);
|
|
1684
|
-
return [
|
|
1707
|
+
return [r, i];
|
|
1685
1708
|
}
|
|
1686
|
-
function
|
|
1687
|
-
return
|
|
1709
|
+
function qt(e) {
|
|
1710
|
+
return kt(e.slice());
|
|
1688
1711
|
}
|
|
1689
|
-
function
|
|
1690
|
-
let
|
|
1691
|
-
for (;
|
|
1692
|
-
n = Math.floor(Math.random() *
|
|
1712
|
+
function kt(e) {
|
|
1713
|
+
let r = e.length, n;
|
|
1714
|
+
for (; r !== 0; )
|
|
1715
|
+
n = Math.floor(Math.random() * r), r--, [e[r], e[n]] = [
|
|
1693
1716
|
e[n],
|
|
1694
|
-
e[
|
|
1717
|
+
e[r]
|
|
1695
1718
|
];
|
|
1696
1719
|
return e;
|
|
1697
1720
|
}
|
|
1698
|
-
function
|
|
1699
|
-
const { initialLoop: n = "all", initialOrder: a = "list" } =
|
|
1700
|
-
|
|
1701
|
-
const
|
|
1702
|
-
return
|
|
1721
|
+
function Dt(e, r) {
|
|
1722
|
+
const { initialLoop: n = "all", initialOrder: a = "list" } = r, [i, l] = Y(n), [h, g] = Y(a), s = K(() => h === "list" ? e : qt(e), [e, h]), [c, f] = Y(s[0]), p = R((v) => v.url, []), x = K(() => s.findIndex((y) => p(y) === p(c)) < s.length - 1 || i !== "none", [s, c, i, p]), E = R(() => {
|
|
1723
|
+
f((v) => {
|
|
1724
|
+
const y = s.findIndex((w) => p(w) === p(v));
|
|
1725
|
+
return y < s.length - 1 ? s[y + 1] : { ...s[0] };
|
|
1703
1726
|
});
|
|
1704
|
-
}, [i, s,
|
|
1705
|
-
|
|
1706
|
-
const
|
|
1707
|
-
return
|
|
1727
|
+
}, [i, s, p]), b = R(() => {
|
|
1728
|
+
f((v) => {
|
|
1729
|
+
const y = s.indexOf(v);
|
|
1730
|
+
return y > 0 ? s[y - 1] : v;
|
|
1708
1731
|
});
|
|
1709
|
-
}, [s]), u =
|
|
1710
|
-
|
|
1732
|
+
}, [s]), u = R((v) => {
|
|
1733
|
+
f(v);
|
|
1711
1734
|
}, []);
|
|
1712
|
-
return
|
|
1713
|
-
const
|
|
1714
|
-
(
|
|
1735
|
+
return F(() => {
|
|
1736
|
+
const v = s.find(
|
|
1737
|
+
(y) => p(y) === p(c)
|
|
1715
1738
|
);
|
|
1716
|
-
|
|
1717
|
-
}, [s,
|
|
1739
|
+
f(v || s[0]);
|
|
1740
|
+
}, [s, p, c]), {
|
|
1718
1741
|
list: s,
|
|
1719
|
-
currentSong:
|
|
1720
|
-
hasNextSong:
|
|
1721
|
-
next:
|
|
1722
|
-
previous:
|
|
1742
|
+
currentSong: c,
|
|
1743
|
+
hasNextSong: x,
|
|
1744
|
+
next: E,
|
|
1745
|
+
previous: b,
|
|
1723
1746
|
prioritize: u,
|
|
1724
|
-
order:
|
|
1747
|
+
order: h,
|
|
1725
1748
|
setOrder: g,
|
|
1726
1749
|
loop: i,
|
|
1727
1750
|
setLoop: l,
|
|
1728
1751
|
length: s.length
|
|
1729
1752
|
};
|
|
1730
1753
|
}
|
|
1731
|
-
function
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1754
|
+
function It(e) {
|
|
1755
|
+
const r = At(e, {
|
|
1756
|
+
appearance: "normal",
|
|
1757
|
+
volume: 0.7,
|
|
1758
|
+
autoPlay: !1,
|
|
1759
|
+
listMaxHeight: 250,
|
|
1760
|
+
mini: !1,
|
|
1761
|
+
mutex: !0,
|
|
1762
|
+
listFolded: !1,
|
|
1763
|
+
theme: "light",
|
|
1764
|
+
border: !1
|
|
1765
|
+
}), {
|
|
1766
|
+
audio: n,
|
|
1767
|
+
appearance: a,
|
|
1768
|
+
initialLoop: i,
|
|
1769
|
+
initialOrder: l,
|
|
1770
|
+
volume: h,
|
|
1771
|
+
autoPlay: g,
|
|
1772
|
+
listMaxHeight: s,
|
|
1773
|
+
listFolded: c,
|
|
1774
|
+
mutex: f,
|
|
1775
|
+
theme: p,
|
|
1776
|
+
border: x
|
|
1777
|
+
} = r, E = K(
|
|
1778
|
+
() => Array.isArray(n) ? n : [n],
|
|
1779
|
+
[n]
|
|
1780
|
+
), b = Dt(E, {
|
|
1781
|
+
initialLoop: i,
|
|
1782
|
+
initialOrder: l
|
|
1783
|
+
}), [u, v] = Nt(), { mini: y, setMini: w } = Mt(r.mini), j = yr(), L = V(), B = R(() => {
|
|
1784
|
+
L.current && (clearTimeout(L.current), L.current = void 0);
|
|
1785
|
+
}, []), z = V(!1), q = $t({
|
|
1786
|
+
src: b.currentSong.url,
|
|
1787
|
+
initialVolume: h,
|
|
1788
|
+
autoPlay: g,
|
|
1789
|
+
mutex: f,
|
|
1790
|
+
onError(D) {
|
|
1791
|
+
const { error: ee } = D.target;
|
|
1792
|
+
ee && v(
|
|
1765
1793
|
"An audio error has occurred, player will skip forward in 2 seconds."
|
|
1766
|
-
),
|
|
1767
|
-
|
|
1794
|
+
), b.hasNextSong && (L.current = j(() => {
|
|
1795
|
+
b.next();
|
|
1768
1796
|
}, 2e3));
|
|
1769
1797
|
},
|
|
1770
1798
|
onEnded() {
|
|
1771
|
-
const { list:
|
|
1772
|
-
if (
|
|
1773
|
-
|
|
1799
|
+
const { list: D, currentSong: ee, loop: ue, prioritize: se, hasNextSong: pe } = b, { audio: le } = q;
|
|
1800
|
+
if (ue === "one") {
|
|
1801
|
+
se({ ...ee });
|
|
1774
1802
|
return;
|
|
1775
1803
|
}
|
|
1776
|
-
if (!
|
|
1777
|
-
|
|
1804
|
+
if (!pe && ue === "none") {
|
|
1805
|
+
z.current = !0, le.currentTime = 0, le.pause(), le.src = D[0].url, se(D[0]);
|
|
1778
1806
|
return;
|
|
1779
1807
|
}
|
|
1780
|
-
|
|
1781
|
-
}
|
|
1782
|
-
}), J =
|
|
1783
|
-
|
|
1784
|
-
}, [
|
|
1785
|
-
() =>
|
|
1786
|
-
|
|
1787
|
-
), { prioritize: ae } = c, Pe = L(
|
|
1788
|
-
(R) => {
|
|
1789
|
-
j(), ae(R);
|
|
1808
|
+
b.next();
|
|
1809
|
+
}
|
|
1810
|
+
}), J = b.length > 1, A = R(() => {
|
|
1811
|
+
B(), q.togglePlay(b.currentSong.url);
|
|
1812
|
+
}, [q, B, b.currentSong.url]), { prioritize: me } = b, Oe = R(
|
|
1813
|
+
(D) => {
|
|
1814
|
+
B(), me(D);
|
|
1790
1815
|
},
|
|
1791
|
-
[
|
|
1792
|
-
), [
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
}, [g]), I(() => {
|
|
1796
|
-
l && S.playAudio(c.currentSong.url);
|
|
1816
|
+
[B, me]
|
|
1817
|
+
), [he, H] = Y(() => J && !c), [W, X] = Y(!0), Z = V(null);
|
|
1818
|
+
F(() => {
|
|
1819
|
+
g && q.playAudio(b.currentSong.url);
|
|
1797
1820
|
}, []);
|
|
1798
|
-
const ie =
|
|
1799
|
-
return
|
|
1821
|
+
const ie = V(!0), oe = V(b.currentSong);
|
|
1822
|
+
return F(() => {
|
|
1800
1823
|
if (ie.current) {
|
|
1801
1824
|
ie.current = !1;
|
|
1802
1825
|
return;
|
|
1803
1826
|
}
|
|
1804
|
-
if (
|
|
1805
|
-
|
|
1827
|
+
if (z.current) {
|
|
1828
|
+
z.current = !1;
|
|
1806
1829
|
return;
|
|
1807
1830
|
}
|
|
1808
|
-
|
|
1809
|
-
}, [
|
|
1810
|
-
if (
|
|
1811
|
-
const
|
|
1812
|
-
return
|
|
1813
|
-
|
|
1831
|
+
b.currentSong && (b.loop === "one" || b.currentSong !== oe.current) && (oe.current = b.currentSong, q.playAudio(b.currentSong.url));
|
|
1832
|
+
}, [b.currentSong]), F(() => {
|
|
1833
|
+
if (a === "fixed" && Z.current) {
|
|
1834
|
+
const D = Z.current;
|
|
1835
|
+
return D.style.width = `${D.offsetWidth - 18}px`, () => {
|
|
1836
|
+
D.removeAttribute("style");
|
|
1814
1837
|
};
|
|
1815
1838
|
}
|
|
1816
|
-
}, [
|
|
1839
|
+
}, [a]), {
|
|
1840
|
+
bodyRef: Z,
|
|
1841
|
+
appearance: a,
|
|
1842
|
+
volume: h,
|
|
1843
|
+
listMaxHeight: s,
|
|
1844
|
+
theme: p,
|
|
1845
|
+
border: x,
|
|
1846
|
+
notice: u,
|
|
1847
|
+
audioControl: q,
|
|
1848
|
+
audio: E,
|
|
1849
|
+
handlePlayButtonClick: A,
|
|
1850
|
+
handlePlayAudioFromList: Oe,
|
|
1851
|
+
isPlaylistOpen: he,
|
|
1852
|
+
setPlaylistOpen: H,
|
|
1853
|
+
mini: y,
|
|
1854
|
+
displayLyrics: W,
|
|
1855
|
+
setDisplayLyrics: X,
|
|
1856
|
+
setMini: w,
|
|
1857
|
+
playlist: b,
|
|
1858
|
+
hasPlaylist: J
|
|
1859
|
+
};
|
|
1860
|
+
}
|
|
1861
|
+
function Ft(e) {
|
|
1862
|
+
var z, q, J;
|
|
1863
|
+
const r = G("aplayer"), {
|
|
1864
|
+
bodyRef: n,
|
|
1865
|
+
appearance: a,
|
|
1866
|
+
volume: i,
|
|
1867
|
+
listMaxHeight: l,
|
|
1868
|
+
theme: h,
|
|
1869
|
+
border: g,
|
|
1870
|
+
notice: s,
|
|
1871
|
+
audio: c,
|
|
1872
|
+
audioControl: f,
|
|
1873
|
+
handlePlayButtonClick: p,
|
|
1874
|
+
handlePlayAudioFromList: x,
|
|
1875
|
+
isPlaylistOpen: E,
|
|
1876
|
+
setPlaylistOpen: b,
|
|
1877
|
+
mini: u,
|
|
1878
|
+
displayLyrics: v,
|
|
1879
|
+
setDisplayLyrics: y,
|
|
1880
|
+
setMini: w,
|
|
1881
|
+
playlist: j,
|
|
1882
|
+
hasPlaylist: L
|
|
1883
|
+
} = It(e), B = R((A) => A ? typeof A == "string" ? A : A.url ? /* @__PURE__ */ d.jsx("a", { href: A.url, target: "_blank", rel: "noreferrer", children: A.name ?? "Audio artist" }) : A.name ?? "Audio artist" : "Audio artist", []);
|
|
1884
|
+
return /* @__PURE__ */ d.jsxs(
|
|
1817
1885
|
"div",
|
|
1818
1886
|
{
|
|
1819
|
-
className:
|
|
1820
|
-
[
|
|
1821
|
-
[
|
|
1822
|
-
[
|
|
1823
|
-
[
|
|
1824
|
-
[
|
|
1825
|
-
[
|
|
1826
|
-
[
|
|
1827
|
-
[
|
|
1828
|
-
[
|
|
1887
|
+
className: C(r.b(), {
|
|
1888
|
+
[r.bs(h)]: !0,
|
|
1889
|
+
[r.bs("vars")]: !0,
|
|
1890
|
+
[r.bm(a)]: !0,
|
|
1891
|
+
[r.bm("loading")]: f.isLoading,
|
|
1892
|
+
[r.bm("withlist")]: L,
|
|
1893
|
+
[r.bm("list-folded")]: !E,
|
|
1894
|
+
[r.bm("withlrc")]: !!j.currentSong.lrc && a !== "fixed",
|
|
1895
|
+
[r.bm("narrow")]: u,
|
|
1896
|
+
[r.bm("border")]: g
|
|
1829
1897
|
}),
|
|
1830
1898
|
role: "region",
|
|
1831
1899
|
"aria-label": "Audio Player",
|
|
1832
1900
|
children: [
|
|
1833
|
-
/* @__PURE__ */
|
|
1901
|
+
/* @__PURE__ */ d.jsxs(
|
|
1834
1902
|
"div",
|
|
1835
1903
|
{
|
|
1836
|
-
ref:
|
|
1837
|
-
className:
|
|
1904
|
+
ref: n,
|
|
1905
|
+
className: r.be("body"),
|
|
1838
1906
|
children: [
|
|
1839
|
-
/* @__PURE__ */
|
|
1907
|
+
/* @__PURE__ */ d.jsx(
|
|
1840
1908
|
"div",
|
|
1841
1909
|
{
|
|
1842
|
-
className:
|
|
1843
|
-
onClick:
|
|
1910
|
+
className: r.be("pic"),
|
|
1911
|
+
onClick: p,
|
|
1844
1912
|
style: {
|
|
1845
|
-
backgroundImage: `url("${(
|
|
1913
|
+
backgroundImage: `url("${(z = j.currentSong) == null ? void 0 : z.cover}")`
|
|
1846
1914
|
},
|
|
1847
1915
|
role: "button",
|
|
1848
|
-
"aria-label":
|
|
1849
|
-
children: /* @__PURE__ */
|
|
1916
|
+
"aria-label": f.isPlaying ? "Pause audio" : "Play audio",
|
|
1917
|
+
children: /* @__PURE__ */ d.jsx(
|
|
1850
1918
|
"div",
|
|
1851
1919
|
{
|
|
1852
|
-
className:
|
|
1853
|
-
|
|
1854
|
-
|
|
1920
|
+
className: C(
|
|
1921
|
+
r.be("button"),
|
|
1922
|
+
f.isPlaying ? r.bm("pause") : r.bm("play")
|
|
1855
1923
|
),
|
|
1856
1924
|
role: "presentation",
|
|
1857
|
-
children:
|
|
1925
|
+
children: f.isPlaying ? /* @__PURE__ */ d.jsx(lt, {}) : /* @__PURE__ */ d.jsx(St, {})
|
|
1858
1926
|
}
|
|
1859
1927
|
)
|
|
1860
1928
|
}
|
|
1861
1929
|
),
|
|
1862
|
-
/* @__PURE__ */
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
1865
|
-
/* @__PURE__ */
|
|
1930
|
+
/* @__PURE__ */ d.jsxs("div", { className: C(r.be("info")), children: [
|
|
1931
|
+
/* @__PURE__ */ d.jsxs("div", { className: C(r.be("music")), children: [
|
|
1932
|
+
/* @__PURE__ */ d.jsx("span", { className: C(r.be("title")), children: ((q = j.currentSong) == null ? void 0 : q.name) ?? "Audio name" }),
|
|
1933
|
+
/* @__PURE__ */ d.jsxs("span", { className: C(r.be("author")), children: [
|
|
1866
1934
|
" ",
|
|
1867
1935
|
"-",
|
|
1868
1936
|
" ",
|
|
1869
|
-
|
|
1937
|
+
B((J = j.currentSong) == null ? void 0 : J.artist)
|
|
1870
1938
|
] })
|
|
1871
1939
|
] }),
|
|
1872
|
-
|
|
1940
|
+
a === "fixed" ? null : /* @__PURE__ */ d.jsx(
|
|
1873
1941
|
lr,
|
|
1874
1942
|
{
|
|
1875
|
-
show:
|
|
1876
|
-
lrcText:
|
|
1877
|
-
currentTime:
|
|
1943
|
+
show: v,
|
|
1944
|
+
lrcText: j.currentSong.lrc,
|
|
1945
|
+
currentTime: f.currentTime ?? 0
|
|
1878
1946
|
}
|
|
1879
1947
|
),
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
-
|
|
1948
|
+
/* @__PURE__ */ d.jsx(
|
|
1949
|
+
wt,
|
|
1882
1950
|
{
|
|
1883
|
-
volume:
|
|
1884
|
-
onChangeVolume:
|
|
1885
|
-
muted:
|
|
1886
|
-
onToggleMuted: () =>
|
|
1887
|
-
currentTime:
|
|
1888
|
-
audioDurationSeconds:
|
|
1889
|
-
bufferedSeconds:
|
|
1890
|
-
onSeek: (
|
|
1891
|
-
onToggleMenu: () =>
|
|
1892
|
-
order:
|
|
1893
|
-
onOrderChange:
|
|
1894
|
-
loop:
|
|
1895
|
-
onLoopChange:
|
|
1896
|
-
isPlaying:
|
|
1897
|
-
onTogglePlay:
|
|
1951
|
+
volume: f.volume ?? i,
|
|
1952
|
+
onChangeVolume: f.setVolume,
|
|
1953
|
+
muted: f.muted ?? !1,
|
|
1954
|
+
onToggleMuted: () => f.toggleMuted(),
|
|
1955
|
+
currentTime: f.currentTime,
|
|
1956
|
+
audioDurationSeconds: f.duration,
|
|
1957
|
+
bufferedSeconds: f.bufferedSeconds,
|
|
1958
|
+
onSeek: (A) => f.seek(A),
|
|
1959
|
+
onToggleMenu: () => b((A) => !A),
|
|
1960
|
+
order: j.order,
|
|
1961
|
+
onOrderChange: j.setOrder,
|
|
1962
|
+
loop: j.loop,
|
|
1963
|
+
onLoopChange: j.setLoop,
|
|
1964
|
+
isPlaying: f.isPlaying ?? !1,
|
|
1965
|
+
onTogglePlay: p,
|
|
1898
1966
|
onSkipForward: () => {
|
|
1899
|
-
|
|
1967
|
+
j.hasNextSong && j.next();
|
|
1900
1968
|
},
|
|
1901
1969
|
onSkipBack: () => {
|
|
1902
|
-
|
|
1970
|
+
j.previous();
|
|
1903
1971
|
},
|
|
1904
|
-
showLyrics:
|
|
1972
|
+
showLyrics: v,
|
|
1905
1973
|
onToggleLyrics: () => {
|
|
1906
|
-
|
|
1974
|
+
y((A) => !A);
|
|
1907
1975
|
}
|
|
1908
1976
|
}
|
|
1909
1977
|
)
|
|
1910
1978
|
] }),
|
|
1911
|
-
/* @__PURE__ */
|
|
1912
|
-
/* @__PURE__ */
|
|
1979
|
+
/* @__PURE__ */ d.jsx("div", { className: r.be("notice"), style: s.style, children: s.text }),
|
|
1980
|
+
/* @__PURE__ */ d.jsx(
|
|
1913
1981
|
"div",
|
|
1914
1982
|
{
|
|
1915
|
-
className:
|
|
1916
|
-
onClick: () =>
|
|
1917
|
-
children: /* @__PURE__ */
|
|
1983
|
+
className: r.be("miniswitcher"),
|
|
1984
|
+
onClick: () => w((A) => !A),
|
|
1985
|
+
children: /* @__PURE__ */ d.jsx("button", { className: C(r.bs("icon"), r.bs("icon-right")), type: "button", children: /* @__PURE__ */ d.jsx(st, {}) })
|
|
1918
1986
|
}
|
|
1919
1987
|
)
|
|
1920
1988
|
]
|
|
1921
1989
|
}
|
|
1922
1990
|
),
|
|
1923
|
-
|
|
1924
|
-
|
|
1991
|
+
L ? /* @__PURE__ */ d.jsx(
|
|
1992
|
+
jt,
|
|
1925
1993
|
{
|
|
1926
|
-
open:
|
|
1927
|
-
audio:
|
|
1928
|
-
playingAudioUrl:
|
|
1929
|
-
onPlayAudio:
|
|
1930
|
-
listMaxHeight:
|
|
1994
|
+
open: E,
|
|
1995
|
+
audio: c,
|
|
1996
|
+
playingAudioUrl: j.currentSong.url,
|
|
1997
|
+
onPlayAudio: x,
|
|
1998
|
+
listMaxHeight: l
|
|
1931
1999
|
}
|
|
1932
2000
|
) : null,
|
|
1933
|
-
|
|
2001
|
+
a === "fixed" && /* @__PURE__ */ d.jsx(
|
|
1934
2002
|
lr,
|
|
1935
2003
|
{
|
|
1936
|
-
show:
|
|
1937
|
-
lrcText:
|
|
1938
|
-
currentTime:
|
|
2004
|
+
show: v,
|
|
2005
|
+
lrcText: j.currentSong.lrc,
|
|
2006
|
+
currentTime: f.currentTime ?? 0
|
|
1939
2007
|
}
|
|
1940
2008
|
)
|
|
1941
2009
|
]
|
|
@@ -1943,5 +2011,5 @@ function Dt({
|
|
|
1943
2011
|
);
|
|
1944
2012
|
}
|
|
1945
2013
|
export {
|
|
1946
|
-
|
|
2014
|
+
Ft as TwistAPlayer
|
|
1947
2015
|
};
|