twist-aplayer 1.2.0 → 1.3.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/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import * as re from "react";
2
- import we, { useMemo as K, useRef as I, useState as H, useEffect as D, useCallback as L } from "react";
3
- var xe = { exports: {} }, ue = {};
1
+ import * as ee from "react";
2
+ import Te, { useMemo as K, useRef as F, useState as H, useEffect as D, useCallback as R } from "react";
3
+ var Ee = { exports: {} }, oe = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -12,19 +12,19 @@ var xe = { exports: {} }, ue = {};
12
12
  */
13
13
  var er;
14
14
  function Br() {
15
- if (er) return ue;
15
+ if (er) return oe;
16
16
  er = 1;
17
- var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function h(b, s, d) {
19
- var g, p = {}, f = null, l = null;
17
+ var e = Te, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function p(g, s, d) {
19
+ var E, b = {}, f = null, l = null;
20
20
  d !== void 0 && (f = "" + d), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (l = s.ref);
21
- for (g in s) a.call(s, g) && !c.hasOwnProperty(g) && (p[g] = s[g]);
22
- if (b && b.defaultProps) for (g in s = b.defaultProps, s) p[g] === void 0 && (p[g] = s[g]);
23
- return { $$typeof: t, type: b, key: f, ref: l, props: p, _owner: i.current };
21
+ for (E in s) a.call(s, E) && !c.hasOwnProperty(E) && (b[E] = s[E]);
22
+ if (g && g.defaultProps) for (E in s = g.defaultProps, s) b[E] === void 0 && (b[E] = s[E]);
23
+ return { $$typeof: t, type: g, key: f, ref: l, props: b, _owner: i.current };
24
24
  }
25
- return ue.Fragment = n, ue.jsx = h, ue.jsxs = h, ue;
25
+ return oe.Fragment = n, oe.jsx = p, oe.jsxs = p, oe;
26
26
  }
27
- var se = {};
27
+ var ue = {};
28
28
  /**
29
29
  * @license React
30
30
  * react-jsx-runtime.development.js
@@ -37,54 +37,54 @@ var se = {};
37
37
  var rr;
38
38
  function zr() {
39
39
  return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
40
- var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), b = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), _ = Symbol.iterator, o = "@@iterator";
41
- function y(r) {
40
+ var e = Te, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), g = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), _ = Symbol.iterator, u = "@@iterator";
41
+ function h(r) {
42
42
  if (r === null || typeof r != "object")
43
43
  return null;
44
- var u = _ && r[_] || r[o];
45
- return typeof u == "function" ? u : null;
44
+ var o = _ && r[_] || r[u];
45
+ return typeof o == "function" ? o : null;
46
46
  }
47
- var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function O(r) {
47
+ var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
+ function j(r) {
49
49
  {
50
- for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), x = 1; x < u; x++)
50
+ for (var o = arguments.length, m = new Array(o > 1 ? o - 1 : 0), x = 1; x < o; x++)
51
51
  m[x - 1] = arguments[x];
52
52
  T("error", r, m);
53
53
  }
54
54
  }
55
- function T(r, u, m) {
55
+ function T(r, o, m) {
56
56
  {
57
- var x = E.ReactDebugCurrentFrame, R = x.getStackAddendum();
58
- R !== "" && (u += "%s", m = m.concat([R]));
59
- var P = m.map(function(w) {
57
+ var x = y.ReactDebugCurrentFrame, O = x.getStackAddendum();
58
+ O !== "" && (o += "%s", m = m.concat([O]));
59
+ var L = m.map(function(w) {
60
60
  return String(w);
61
61
  });
62
- P.unshift("Warning: " + u), Function.prototype.apply.call(console[r], console, P);
62
+ L.unshift("Warning: " + o), Function.prototype.apply.call(console[r], console, L);
63
63
  }
64
64
  }
65
- var A = !1, te = !1, W = !1, B = !1, fe = !1, de;
66
- de = Symbol.for("react.module.reference");
67
- function ve(r) {
68
- return !!(typeof r == "string" || typeof r == "function" || r === a || r === c || fe || r === i || r === d || r === g || B || r === l || A || te || W || typeof r == "object" && r !== null && (r.$$typeof === f || r.$$typeof === p || r.$$typeof === h || r.$$typeof === b || r.$$typeof === s || // This needs to include all possible module reference object
65
+ var A = !1, re = !1, U = !1, B = !1, ce = !1, fe;
66
+ fe = Symbol.for("react.module.reference");
67
+ function de(r) {
68
+ return !!(typeof r == "string" || typeof r == "function" || r === a || r === c || ce || r === i || r === d || r === E || B || r === l || A || re || U || typeof r == "object" && r !== null && (r.$$typeof === f || r.$$typeof === b || r.$$typeof === p || r.$$typeof === g || r.$$typeof === s || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
72
- r.$$typeof === de || r.getModuleId !== void 0));
72
+ r.$$typeof === fe || r.getModuleId !== void 0));
73
73
  }
74
- function je(r, u, m) {
74
+ function we(r, o, m) {
75
75
  var x = r.displayName;
76
76
  if (x)
77
77
  return x;
78
- var R = u.displayName || u.name || "";
79
- return R !== "" ? m + "(" + R + ")" : m;
78
+ var O = o.displayName || o.name || "";
79
+ return O !== "" ? m + "(" + O + ")" : m;
80
80
  }
81
- function me(r) {
81
+ function ve(r) {
82
82
  return r.displayName || "Context";
83
83
  }
84
- function F(r) {
84
+ function V(r) {
85
85
  if (r == null)
86
86
  return null;
87
- if (typeof r.tag == "number" && O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
87
+ if (typeof r.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
88
88
  return r.displayName || r.name || null;
89
89
  if (typeof r == "string")
90
90
  return r;
@@ -99,26 +99,26 @@ function zr() {
99
99
  return "StrictMode";
100
100
  case d:
101
101
  return "Suspense";
102
- case g:
102
+ case E:
103
103
  return "SuspenseList";
104
104
  }
105
105
  if (typeof r == "object")
106
106
  switch (r.$$typeof) {
107
- case b:
108
- var u = r;
109
- return me(u) + ".Consumer";
110
- case h:
107
+ case g:
108
+ var o = r;
109
+ return ve(o) + ".Consumer";
110
+ case p:
111
111
  var m = r;
112
- return me(m._context) + ".Provider";
112
+ return ve(m._context) + ".Provider";
113
113
  case s:
114
- return je(r, r.render, "ForwardRef");
115
- case p:
114
+ return we(r, r.render, "ForwardRef");
115
+ case b:
116
116
  var x = r.displayName || null;
117
- return x !== null ? x : F(r.type) || "Memo";
117
+ return x !== null ? x : V(r.type) || "Memo";
118
118
  case f: {
119
- var R = r, P = R._payload, w = R._init;
119
+ var O = r, L = O._payload, w = O._init;
120
120
  try {
121
- return F(w(P));
121
+ return V(w(L));
122
122
  } catch {
123
123
  return null;
124
124
  }
@@ -126,18 +126,18 @@ function zr() {
126
126
  }
127
127
  return null;
128
128
  }
129
- var V = Object.assign, Y = 0, J, X, ne, ae, ie, oe, j;
130
- function he() {
129
+ var I = Object.assign, Y = 0, J, te, ne, ae, ie, P, me;
130
+ function De() {
131
131
  }
132
- he.__reactDisabledLog = !0;
132
+ De.__reactDisabledLog = !0;
133
133
  function pr() {
134
134
  {
135
135
  if (Y === 0) {
136
- J = console.log, X = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, j = console.groupEnd;
136
+ J = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, P = console.groupCollapsed, me = console.groupEnd;
137
137
  var r = {
138
138
  configurable: !0,
139
139
  enumerable: !0,
140
- value: he,
140
+ value: De,
141
141
  writable: !0
142
142
  };
143
143
  Object.defineProperties(console, {
@@ -162,67 +162,67 @@ function zr() {
162
162
  writable: !0
163
163
  };
164
164
  Object.defineProperties(console, {
165
- log: V({}, r, {
165
+ log: I({}, r, {
166
166
  value: J
167
167
  }),
168
- info: V({}, r, {
169
- value: X
168
+ info: I({}, r, {
169
+ value: te
170
170
  }),
171
- warn: V({}, r, {
171
+ warn: I({}, r, {
172
172
  value: ne
173
173
  }),
174
- error: V({}, r, {
174
+ error: I({}, r, {
175
175
  value: ae
176
176
  }),
177
- group: V({}, r, {
177
+ group: I({}, r, {
178
178
  value: ie
179
179
  }),
180
- groupCollapsed: V({}, r, {
181
- value: oe
180
+ groupCollapsed: I({}, r, {
181
+ value: P
182
182
  }),
183
- groupEnd: V({}, r, {
184
- value: j
183
+ groupEnd: I({}, r, {
184
+ value: me
185
185
  })
186
186
  });
187
187
  }
188
- Y < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ Y < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
189
  }
190
190
  }
191
- var Oe = E.ReactCurrentDispatcher, Re;
192
- function ye(r, u, m) {
191
+ var je = y.ReactCurrentDispatcher, Oe;
192
+ function he(r, o, m) {
193
193
  {
194
- if (Re === void 0)
194
+ if (Oe === void 0)
195
195
  try {
196
196
  throw Error();
197
- } catch (R) {
198
- var x = R.stack.trim().match(/\n( *(at )?)/);
199
- Re = x && x[1] || "";
197
+ } catch (O) {
198
+ var x = O.stack.trim().match(/\n( *(at )?)/);
199
+ Oe = x && x[1] || "";
200
200
  }
201
201
  return `
202
- ` + Re + r;
202
+ ` + Oe + r;
203
203
  }
204
204
  }
205
- var Pe = !1, pe;
205
+ var Re = !1, ye;
206
206
  {
207
207
  var gr = typeof WeakMap == "function" ? WeakMap : Map;
208
- pe = new gr();
208
+ ye = new gr();
209
209
  }
210
- function Ve(r, u) {
211
- if (!r || Pe)
210
+ function Ie(r, o) {
211
+ if (!r || Re)
212
212
  return "";
213
213
  {
214
- var m = pe.get(r);
214
+ var m = ye.get(r);
215
215
  if (m !== void 0)
216
216
  return m;
217
217
  }
218
218
  var x;
219
- Pe = !0;
220
- var R = Error.prepareStackTrace;
219
+ Re = !0;
220
+ var O = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
- var P;
223
- P = Oe.current, Oe.current = null, pr();
222
+ var L;
223
+ L = je.current, je.current = null, pr();
224
224
  try {
225
- if (u) {
225
+ if (o) {
226
226
  var w = function() {
227
227
  throw Error();
228
228
  };
@@ -266,78 +266,78 @@ function zr() {
266
266
  if (C--, N--, N < 0 || S[C] !== M[N]) {
267
267
  var k = `
268
268
  ` + S[C].replace(" at new ", " at ");
269
- return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" && pe.set(r, k), k;
269
+ return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" && ye.set(r, k), k;
270
270
  }
271
271
  while (C >= 1 && N >= 0);
272
272
  break;
273
273
  }
274
274
  }
275
275
  } finally {
276
- Pe = !1, Oe.current = P, br(), Error.prepareStackTrace = R;
276
+ Re = !1, je.current = L, br(), Error.prepareStackTrace = O;
277
277
  }
278
- var Z = r ? r.displayName || r.name : "", Ze = Z ? ye(Z) : "";
279
- return typeof r == "function" && pe.set(r, Ze), Ze;
278
+ var Q = r ? r.displayName || r.name : "", Ze = Q ? he(Q) : "";
279
+ return typeof r == "function" && ye.set(r, Ze), Ze;
280
280
  }
281
- function Er(r, u, m) {
282
- return Ve(r, !1);
281
+ function Er(r, o, m) {
282
+ return Ie(r, !1);
283
283
  }
284
284
  function xr(r) {
285
- var u = r.prototype;
286
- return !!(u && u.isReactComponent);
285
+ var o = r.prototype;
286
+ return !!(o && o.isReactComponent);
287
287
  }
288
- function be(r, u, m) {
288
+ function pe(r, o, m) {
289
289
  if (r == null)
290
290
  return "";
291
291
  if (typeof r == "function")
292
- return Ve(r, xr(r));
292
+ return Ie(r, xr(r));
293
293
  if (typeof r == "string")
294
- return ye(r);
294
+ return he(r);
295
295
  switch (r) {
296
296
  case d:
297
- return ye("Suspense");
298
- case g:
299
- return ye("SuspenseList");
297
+ return he("Suspense");
298
+ case E:
299
+ return he("SuspenseList");
300
300
  }
301
301
  if (typeof r == "object")
302
302
  switch (r.$$typeof) {
303
303
  case s:
304
304
  return Er(r.render);
305
- case p:
306
- return be(r.type, u, m);
305
+ case b:
306
+ return pe(r.type, o, m);
307
307
  case f: {
308
- var x = r, R = x._payload, P = x._init;
308
+ var x = r, O = x._payload, L = x._init;
309
309
  try {
310
- return be(P(R), u, m);
310
+ return pe(L(O), o, m);
311
311
  } catch {
312
312
  }
313
313
  }
314
314
  }
315
315
  return "";
316
316
  }
317
- var ge = Object.prototype.hasOwnProperty, Ie = {}, Fe = E.ReactDebugCurrentFrame;
318
- function Ee(r) {
317
+ var be = Object.prototype.hasOwnProperty, Ve = {}, Fe = y.ReactDebugCurrentFrame;
318
+ function ge(r) {
319
319
  if (r) {
320
- var u = r._owner, m = be(r.type, r._source, u ? u.type : null);
320
+ var o = r._owner, m = pe(r.type, r._source, o ? o.type : null);
321
321
  Fe.setExtraStackFrame(m);
322
322
  } else
323
323
  Fe.setExtraStackFrame(null);
324
324
  }
325
- function _r(r, u, m, x, R) {
325
+ function _r(r, o, m, x, O) {
326
326
  {
327
- var P = Function.call.bind(ge);
327
+ var L = Function.call.bind(be);
328
328
  for (var w in r)
329
- if (P(r, w)) {
329
+ if (L(r, w)) {
330
330
  var S = void 0;
331
331
  try {
332
332
  if (typeof r[w] != "function") {
333
333
  var M = Error((x || "React class") + ": " + m + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
334
  throw M.name = "Invariant Violation", M;
335
335
  }
336
- S = r[w](u, w, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ S = r[w](o, w, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
337
  } catch (C) {
338
338
  S = C;
339
339
  }
340
- S && !(S instanceof Error) && (Ee(R), O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", m, w, typeof S), Ee(null)), S instanceof Error && !(S.message in Ie) && (Ie[S.message] = !0, Ee(R), O("Failed %s type: %s", m, S.message), Ee(null));
340
+ S && !(S instanceof Error) && (ge(O), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", m, w, typeof S), ge(null)), S instanceof Error && !(S.message in Ve) && (Ve[S.message] = !0, ge(O), j("Failed %s type: %s", m, S.message), ge(null));
341
341
  }
342
342
  }
343
343
  }
@@ -347,7 +347,7 @@ function zr() {
347
347
  }
348
348
  function Tr(r) {
349
349
  {
350
- var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && r[Symbol.toStringTag] || r.constructor.name || "Object";
350
+ var o = typeof Symbol == "function" && Symbol.toStringTag, m = o && r[Symbol.toStringTag] || r.constructor.name || "Object";
351
351
  return m;
352
352
  }
353
353
  }
@@ -363,37 +363,37 @@ function zr() {
363
363
  }
364
364
  function ze(r) {
365
365
  if (wr(r))
366
- return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(r)), Be(r);
366
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(r)), Be(r);
367
367
  }
368
- var He = E.ReactCurrentOwner, jr = {
368
+ var He = y.ReactCurrentOwner, jr = {
369
369
  key: !0,
370
370
  ref: !0,
371
371
  __self: !0,
372
372
  __source: !0
373
- }, Ue, We;
373
+ }, We, Ue;
374
374
  function Or(r) {
375
- if (ge.call(r, "ref")) {
376
- var u = Object.getOwnPropertyDescriptor(r, "ref").get;
377
- if (u && u.isReactWarning)
375
+ if (be.call(r, "ref")) {
376
+ var o = Object.getOwnPropertyDescriptor(r, "ref").get;
377
+ if (o && o.isReactWarning)
378
378
  return !1;
379
379
  }
380
380
  return r.ref !== void 0;
381
381
  }
382
382
  function Rr(r) {
383
- if (ge.call(r, "key")) {
384
- var u = Object.getOwnPropertyDescriptor(r, "key").get;
385
- if (u && u.isReactWarning)
383
+ if (be.call(r, "key")) {
384
+ var o = Object.getOwnPropertyDescriptor(r, "key").get;
385
+ if (o && o.isReactWarning)
386
386
  return !1;
387
387
  }
388
388
  return r.key !== void 0;
389
389
  }
390
- function Pr(r, u) {
390
+ function Lr(r, o) {
391
391
  typeof r.ref == "string" && He.current;
392
392
  }
393
- function Lr(r, u) {
393
+ function Pr(r, o) {
394
394
  {
395
395
  var m = function() {
396
- Ue || (Ue = !0, O("%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)", u));
396
+ We || (We = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
397
397
  };
398
398
  m.isReactWarning = !0, Object.defineProperty(r, "key", {
399
399
  get: m,
@@ -401,10 +401,10 @@ function zr() {
401
401
  });
402
402
  }
403
403
  }
404
- function $r(r, u) {
404
+ function $r(r, o) {
405
405
  {
406
406
  var m = function() {
407
- We || (We = !0, O("%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)", u));
407
+ Ue || (Ue = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
408
408
  };
409
409
  m.isReactWarning = !0, Object.defineProperty(r, "ref", {
410
410
  get: m,
@@ -412,17 +412,17 @@ function zr() {
412
412
  });
413
413
  }
414
414
  }
415
- var Cr = function(r, u, m, x, R, P, w) {
415
+ var Cr = function(r, o, m, x, O, L, w) {
416
416
  var S = {
417
417
  // This tag allows us to uniquely identify this as a React Element
418
418
  $$typeof: t,
419
419
  // Built-in properties that belong on the element
420
420
  type: r,
421
- key: u,
421
+ key: o,
422
422
  ref: m,
423
423
  props: w,
424
424
  // Record the component responsible for creating this element.
425
- _owner: P
425
+ _owner: L
426
426
  };
427
427
  return S._store = {}, Object.defineProperty(S._store, "validated", {
428
428
  configurable: !1,
@@ -438,44 +438,44 @@ function zr() {
438
438
  configurable: !1,
439
439
  enumerable: !1,
440
440
  writable: !1,
441
- value: R
441
+ value: O
442
442
  }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
443
443
  };
444
- function Ar(r, u, m, x, R) {
444
+ function Ar(r, o, m, x, O) {
445
445
  {
446
- var P, w = {}, S = null, M = null;
447
- m !== void 0 && (ze(m), S = "" + m), Rr(u) && (ze(u.key), S = "" + u.key), Or(u) && (M = u.ref, Pr(u, R));
448
- for (P in u)
449
- ge.call(u, P) && !jr.hasOwnProperty(P) && (w[P] = u[P]);
446
+ var L, w = {}, S = null, M = null;
447
+ m !== void 0 && (ze(m), S = "" + m), Rr(o) && (ze(o.key), S = "" + o.key), Or(o) && (M = o.ref, Lr(o, O));
448
+ for (L in o)
449
+ be.call(o, L) && !jr.hasOwnProperty(L) && (w[L] = o[L]);
450
450
  if (r && r.defaultProps) {
451
451
  var C = r.defaultProps;
452
- for (P in C)
453
- w[P] === void 0 && (w[P] = C[P]);
452
+ for (L in C)
453
+ w[L] === void 0 && (w[L] = C[L]);
454
454
  }
455
455
  if (S || M) {
456
456
  var N = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
457
- S && Lr(w, N), M && $r(w, N);
457
+ S && Pr(w, N), M && $r(w, N);
458
458
  }
459
- return Cr(r, S, M, R, x, He.current, w);
459
+ return Cr(r, S, M, O, x, He.current, w);
460
460
  }
461
461
  }
462
- var $e = E.ReactCurrentOwner, Ye = E.ReactDebugCurrentFrame;
463
- function Q(r) {
462
+ var Pe = y.ReactCurrentOwner, Ye = y.ReactDebugCurrentFrame;
463
+ function X(r) {
464
464
  if (r) {
465
- var u = r._owner, m = be(r.type, r._source, u ? u.type : null);
465
+ var o = r._owner, m = pe(r.type, r._source, o ? o.type : null);
466
466
  Ye.setExtraStackFrame(m);
467
467
  } else
468
468
  Ye.setExtraStackFrame(null);
469
469
  }
470
- var Ce;
471
- Ce = !1;
472
- function Ae(r) {
470
+ var $e;
471
+ $e = !1;
472
+ function Ce(r) {
473
473
  return typeof r == "object" && r !== null && r.$$typeof === t;
474
474
  }
475
475
  function Ge() {
476
476
  {
477
- if ($e.current) {
478
- var r = F($e.current.type);
477
+ if (Pe.current) {
478
+ var r = V(Pe.current.type);
479
479
  if (r)
480
480
  return `
481
481
 
@@ -490,131 +490,131 @@ Check the render method of \`` + r + "`.";
490
490
  var Ke = {};
491
491
  function qr(r) {
492
492
  {
493
- var u = Ge();
494
- if (!u) {
493
+ var o = Ge();
494
+ if (!o) {
495
495
  var m = typeof r == "string" ? r : r.displayName || r.name;
496
- m && (u = `
496
+ m && (o = `
497
497
 
498
498
  Check the top-level render call using <` + m + ">.");
499
499
  }
500
- return u;
500
+ return o;
501
501
  }
502
502
  }
503
- function Je(r, u) {
503
+ function Je(r, o) {
504
504
  {
505
505
  if (!r._store || r._store.validated || r.key != null)
506
506
  return;
507
507
  r._store.validated = !0;
508
- var m = qr(u);
508
+ var m = qr(o);
509
509
  if (Ke[m])
510
510
  return;
511
511
  Ke[m] = !0;
512
512
  var x = "";
513
- r && r._owner && r._owner !== $e.current && (x = " It was passed a child from " + F(r._owner.type) + "."), Q(r), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), Q(null);
513
+ r && r._owner && r._owner !== Pe.current && (x = " It was passed a child from " + V(r._owner.type) + "."), X(r), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), X(null);
514
514
  }
515
515
  }
516
- function Xe(r, u) {
516
+ function Xe(r, o) {
517
517
  {
518
518
  if (typeof r != "object")
519
519
  return;
520
520
  if (Le(r))
521
521
  for (var m = 0; m < r.length; m++) {
522
522
  var x = r[m];
523
- Ae(x) && Je(x, u);
523
+ Ce(x) && Je(x, o);
524
524
  }
525
- else if (Ae(r))
525
+ else if (Ce(r))
526
526
  r._store && (r._store.validated = !0);
527
527
  else if (r) {
528
- var R = y(r);
529
- if (typeof R == "function" && R !== r.entries)
530
- for (var P = R.call(r), w; !(w = P.next()).done; )
531
- Ae(w.value) && Je(w.value, u);
528
+ var O = h(r);
529
+ if (typeof O == "function" && O !== r.entries)
530
+ for (var L = O.call(r), w; !(w = L.next()).done; )
531
+ Ce(w.value) && Je(w.value, o);
532
532
  }
533
533
  }
534
534
  }
535
535
  function Mr(r) {
536
536
  {
537
- var u = r.type;
538
- if (u == null || typeof u == "string")
537
+ var o = r.type;
538
+ if (o == null || typeof o == "string")
539
539
  return;
540
540
  var m;
541
- if (typeof u == "function")
542
- m = u.propTypes;
543
- else if (typeof u == "object" && (u.$$typeof === s || // Note: Memo only checks outer props here.
541
+ if (typeof o == "function")
542
+ m = o.propTypes;
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
- u.$$typeof === p))
546
- m = u.propTypes;
545
+ o.$$typeof === b))
546
+ m = o.propTypes;
547
547
  else
548
548
  return;
549
549
  if (m) {
550
- var x = F(u);
550
+ var x = V(o);
551
551
  _r(m, r.props, "prop", x, r);
552
- } else if (u.PropTypes !== void 0 && !Ce) {
553
- Ce = !0;
554
- var R = F(u);
555
- O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
552
+ } else if (o.PropTypes !== void 0 && !$e) {
553
+ $e = !0;
554
+ var O = V(o);
555
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
556
556
  }
557
- typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
+ typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
558
  }
559
559
  }
560
560
  function kr(r) {
561
561
  {
562
- for (var u = Object.keys(r.props), m = 0; m < u.length; m++) {
563
- var x = u[m];
562
+ for (var o = Object.keys(r.props), m = 0; m < o.length; m++) {
563
+ var x = o[m];
564
564
  if (x !== "children" && x !== "key") {
565
- Q(r), O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Q(null);
565
+ X(r), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), X(null);
566
566
  break;
567
567
  }
568
568
  }
569
- r.ref !== null && (Q(r), O("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
569
+ r.ref !== null && (X(r), j("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
570
570
  }
571
571
  }
572
- function Qe(r, u, m, x, R, P) {
572
+ function Qe(r, o, m, x, O, L) {
573
573
  {
574
- var w = ve(r);
574
+ var w = de(r);
575
575
  if (!w) {
576
576
  var S = "";
577
577
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
578
578
  var M = Nr();
579
579
  M ? S += M : S += Ge();
580
580
  var C;
581
- r === null ? C = "null" : Le(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (F(r.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, S);
581
+ r === null ? C = "null" : Le(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (V(r.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, S);
582
582
  }
583
- var N = Ar(r, u, m, R, P);
583
+ var N = Ar(r, o, m, O, L);
584
584
  if (N == null)
585
585
  return N;
586
586
  if (w) {
587
- var k = u.children;
587
+ var k = o.children;
588
588
  if (k !== void 0)
589
589
  if (x)
590
590
  if (Le(k)) {
591
- for (var Z = 0; Z < k.length; Z++)
592
- Xe(k[Z], r);
591
+ for (var Q = 0; Q < k.length; Q++)
592
+ Xe(k[Q], r);
593
593
  Object.freeze && Object.freeze(k);
594
594
  } else
595
- O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
595
+ j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
596
  else
597
597
  Xe(k, r);
598
598
  }
599
599
  return r === a ? kr(N) : Mr(N), N;
600
600
  }
601
601
  }
602
- function Dr(r, u, m) {
603
- return Qe(r, u, m, !0);
602
+ function Dr(r, o, m) {
603
+ return Qe(r, o, m, !0);
604
604
  }
605
- function Vr(r, u, m) {
606
- return Qe(r, u, m, !1);
605
+ function Ir(r, o, m) {
606
+ return Qe(r, o, m, !1);
607
607
  }
608
- var Ir = Vr, Fr = Dr;
609
- se.Fragment = a, se.jsx = Ir, se.jsxs = Fr;
610
- }()), se;
608
+ var Vr = Ir, Fr = Dr;
609
+ ue.Fragment = a, ue.jsx = Vr, ue.jsxs = Fr;
610
+ }()), ue;
611
611
  }
612
612
  var tr;
613
613
  function Hr() {
614
- return tr || (tr = 1, process.env.NODE_ENV === "production" ? xe.exports = Br() : xe.exports = zr()), xe.exports;
614
+ return tr || (tr = 1, process.env.NODE_ENV === "production" ? Ee.exports = Br() : Ee.exports = zr()), Ee.exports;
615
615
  }
616
- var v = Hr(), _e = (e) => `--${e}`, nr = (e) => `var(--${e})`, ar = (e, t) => `--${e}: ${t};`;
617
- function Ur(e, t) {
616
+ var v = Hr(), xe = (e) => `--${e}`, nr = (e) => `var(--${e})`, ar = (e, t) => `--${e}: ${t};`;
617
+ function Wr(e, t) {
618
618
  const n = (a) => t;
619
619
  return {
620
620
  b: () => `${n()}-${e}`,
@@ -629,35 +629,35 @@ function Ur(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) => _e(`${n()}-${e}-${a}`),
632
+ cv: (a) => xe(`${n()}-${e}-${a}`),
633
633
  cvm: (a, i = {}) => {
634
634
  const c = n();
635
- for (const h of Object.keys(a))
636
- i[_e(`${c}-${e}-${h}`)] = a[h];
635
+ for (const p of Object.keys(a))
636
+ i[xe(`${c}-${e}-${p}`)] = a[p];
637
637
  return i;
638
638
  },
639
639
  gcv: (a) => nr(`${n()}-${e}-${a}`),
640
640
  scv: (a, i) => ar(`${n()}-${e}-${a}`, i),
641
- nv: (a) => _e(`${n()}-${a}`),
641
+ nv: (a) => xe(`${n()}-${a}`),
642
642
  nvm: (a, i = {}) => {
643
643
  const c = n();
644
- for (const h of Object.keys(a))
645
- i[_e(`${c}-${h}`)] = a[h];
644
+ for (const p of Object.keys(a))
645
+ i[xe(`${c}-${p}`)] = a[p];
646
646
  return i;
647
647
  },
648
648
  gnv: (a) => nr(`${n()}-${a}`),
649
649
  snv: (a, i) => ar(`${n()}-${a}`, i)
650
650
  };
651
651
  }
652
- function U(e) {
653
- return K(() => Ur(e, "twist"), [e]);
652
+ function W(e) {
653
+ return K(() => Wr(e, "twist"), [e]);
654
654
  }
655
- function Ne(e, t) {
655
+ function Ae(e, t) {
656
656
  if (!t.current) return 0;
657
657
  let n = (e.clientX - t.current.getBoundingClientRect().left) / t.current.clientWidth;
658
658
  return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
659
659
  }
660
- function qe(e, t) {
660
+ function Ne(e, t) {
661
661
  if (!t.current) return 0;
662
662
  let n = 1 - (e.clientY - t.current.getBoundingClientRect().top) / t.current.clientHeight;
663
663
  return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
@@ -668,17 +668,17 @@ var dr = {
668
668
  className: void 0,
669
669
  style: void 0,
670
670
  attrs: void 0
671
- }, De = /* @__PURE__ */ re.createContext(dr);
672
- De.Provider;
673
- function le(e) {
671
+ }, ke = /* @__PURE__ */ ee.createContext(dr);
672
+ ke.Provider;
673
+ function se(e) {
674
674
  "@babel/helpers - typeof";
675
- return le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
675
+ return se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
676
676
  return typeof t;
677
677
  } : function(t) {
678
678
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
679
- }, le(e);
679
+ }, se(e);
680
680
  }
681
- var Wr = ["attrs", "size", "title", "spin", "rotate", "color"];
681
+ var Ur = ["attrs", "size", "title", "spin", "rotate", "color"];
682
682
  function Yr(e, t) {
683
683
  return Jr(e) || Kr(e, t) || vr(e, t) || Gr();
684
684
  }
@@ -689,19 +689,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
689
689
  function Kr(e, t) {
690
690
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
691
691
  if (n != null) {
692
- var a, i, c, h, b = [], s = !0, d = !1;
692
+ var a, i, c, p, g = [], s = !0, d = !1;
693
693
  try {
694
- if (c = (n = n.call(e)).next, t !== 0) for (; !(s = (a = c.call(n)).done) && (b.push(a.value), b.length !== t); s = !0) ;
695
- } catch (g) {
696
- d = !0, i = g;
694
+ if (c = (n = n.call(e)).next, t !== 0) for (; !(s = (a = c.call(n)).done) && (g.push(a.value), g.length !== t); s = !0) ;
695
+ } catch (E) {
696
+ d = !0, i = E;
697
697
  } finally {
698
698
  try {
699
- if (!s && n.return != null && (h = n.return(), Object(h) !== h)) return;
699
+ if (!s && n.return != null && (p = n.return(), Object(p) !== p)) return;
700
700
  } finally {
701
701
  if (d) throw i;
702
702
  }
703
703
  }
704
- return b;
704
+ return g;
705
705
  }
706
706
  }
707
707
  function Jr(e) {
@@ -723,19 +723,19 @@ function Xr(e, t) {
723
723
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
724
724
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
725
725
  }
726
- var c, h = !0, b = !1;
726
+ var c, p = !0, g = !1;
727
727
  return { s: function() {
728
728
  n = n.call(e);
729
729
  }, n: function() {
730
730
  var d = n.next();
731
- return h = d.done, d;
731
+ return p = d.done, d;
732
732
  }, e: function(d) {
733
- b = !0, c = d;
733
+ g = !0, c = d;
734
734
  }, f: function() {
735
735
  try {
736
- h || n.return == null || n.return();
736
+ p || n.return == null || n.return();
737
737
  } finally {
738
- if (b) throw c;
738
+ if (g) throw c;
739
739
  }
740
740
  } };
741
741
  }
@@ -751,14 +751,14 @@ function ir(e, t) {
751
751
  for (var n = 0, a = Array(t); n < t; n++) a[n] = e[n];
752
752
  return a;
753
753
  }
754
- function Te() {
755
- return Te = Object.assign ? Object.assign.bind() : function(e) {
754
+ function Se() {
755
+ return Se = Object.assign ? Object.assign.bind() : function(e) {
756
756
  for (var t = 1; t < arguments.length; t++) {
757
757
  var n = arguments[t];
758
758
  for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
759
759
  }
760
760
  return e;
761
- }, Te.apply(null, arguments);
761
+ }, Se.apply(null, arguments);
762
762
  }
763
763
  function or(e, t) {
764
764
  var n = Object.keys(e);
@@ -770,7 +770,7 @@ function or(e, t) {
770
770
  }
771
771
  return n;
772
772
  }
773
- function ce(e) {
773
+ function le(e) {
774
774
  for (var t = 1; t < arguments.length; t++) {
775
775
  var n = arguments[t] != null ? arguments[t] : {};
776
776
  t % 2 ? or(Object(n), !0).forEach(function(a) {
@@ -786,14 +786,14 @@ function Qr(e, t, n) {
786
786
  }
787
787
  function Zr(e) {
788
788
  var t = et(e, "string");
789
- return le(t) == "symbol" ? t : t + "";
789
+ return se(t) == "symbol" ? t : t + "";
790
790
  }
791
791
  function et(e, t) {
792
- if (le(e) != "object" || !e) return e;
792
+ if (se(e) != "object" || !e) return e;
793
793
  var n = e[Symbol.toPrimitive];
794
794
  if (n !== void 0) {
795
795
  var a = n.call(e, t);
796
- if (le(a) != "object") return a;
796
+ if (se(a) != "object") return a;
797
797
  throw new TypeError("@@toPrimitive must return a primitive value.");
798
798
  }
799
799
  return (t === "string" ? String : Number)(e);
@@ -817,22 +817,22 @@ function tt(e, t) {
817
817
  return n;
818
818
  }
819
819
  function nt(e) {
820
- var t = e.attrs, n = e.size, a = e.title, i = e.spin, c = e.rotate, h = e.color, b = rt(e, Wr), s = function(g) {
821
- var p = n || g.size || "1em", f, l = "", _ = "";
822
- return g.className && (f = g.className), e.className && (f = f ? "".concat(f, " ").concat(e.className) : e.className), i && (f ? f += " twist-icon-loading" : f = "twist-icon-loading"), c && (l = "rotate(".concat(c, "deg)"), _ = "rotate(".concat(c, "deg)")), /* @__PURE__ */ re.createElement("svg", Te({
820
+ var t = e.attrs, n = e.size, a = e.title, i = e.spin, c = e.rotate, p = e.color, g = rt(e, Ur), s = function(E) {
821
+ var b = n || E.size || "1em", f, l = "", _ = "";
822
+ return E.className && (f = E.className), e.className && (f = f ? "".concat(f, " ").concat(e.className) : e.className), i && (f ? f += " twist-icon-loading" : f = "twist-icon-loading"), c && (l = "rotate(".concat(c, "deg)"), _ = "rotate(".concat(c, "deg)")), /* @__PURE__ */ ee.createElement("svg", Se({
823
823
  xmlns: "http://www.w3.org/2000/svg"
824
- }, g.attrs, t, b, {
824
+ }, E.attrs, t, g, {
825
825
  className: f,
826
- style: ce(ce({
827
- color: h || g.color,
826
+ style: le(le({
827
+ color: p || E.color,
828
828
  msTransform: l,
829
829
  transform: _
830
- }, g.style), e.style),
831
- width: p,
832
- height: p
833
- }), a && /* @__PURE__ */ re.createElement("title", null, a), e.children);
830
+ }, E.style), e.style),
831
+ width: b,
832
+ height: b
833
+ }), a && /* @__PURE__ */ ee.createElement("title", null, a), e.children);
834
834
  };
835
- return De !== void 0 ? /* @__PURE__ */ re.createElement(De.Consumer, null, function(d) {
835
+ return ke !== void 0 ? /* @__PURE__ */ ee.createElement(ke.Consumer, null, function(d) {
836
836
  return s(d);
837
837
  }) : s(dr);
838
838
  }
@@ -840,16 +840,16 @@ function at(e) {
840
840
  var t = {}, n = e.split(";"), a = Xr(n), i;
841
841
  try {
842
842
  for (a.s(); !(i = a.n()).done; ) {
843
- var c = i.value, h = c.split(":"), b = Yr(h, 2), s = b[0], d = b[1];
843
+ var c = i.value, p = c.split(":"), g = Yr(p, 2), s = g[0], d = g[1];
844
844
  if (s && d) {
845
- var g = s.trim().replace(/-./g, function(p) {
846
- return p.charAt(1).toUpperCase();
845
+ var E = s.trim().replace(/-./g, function(b) {
846
+ return b.charAt(1).toUpperCase();
847
847
  });
848
- t[g] = d.trim();
848
+ t[E] = d.trim();
849
849
  }
850
850
  }
851
- } catch (p) {
852
- a.e(p);
851
+ } catch (b) {
852
+ a.e(b);
853
853
  } finally {
854
854
  a.f();
855
855
  }
@@ -857,7 +857,7 @@ function at(e) {
857
857
  }
858
858
  function mr(e) {
859
859
  return e && e.map(function(t, n) {
860
- return /* @__PURE__ */ re.createElement(t.tag, ce(ce({}, t.attrs), {}, {
860
+ return /* @__PURE__ */ ee.createElement(t.tag, le(le({}, t.attrs), {}, {
861
861
  key: n,
862
862
  style: t.attrs.style ? at(t.attrs.style) : null
863
863
  }), mr(t.children));
@@ -865,8 +865,8 @@ function mr(e) {
865
865
  }
866
866
  function q(e) {
867
867
  return function(t) {
868
- return /* @__PURE__ */ re.createElement(nt, Te({
869
- attrs: ce({}, e.attrs)
868
+ return /* @__PURE__ */ ee.createElement(nt, Se({
869
+ attrs: le({}, e.attrs)
870
870
  }, t), mr(e.children));
871
871
  };
872
872
  }
@@ -894,22 +894,22 @@ function ut({
894
894
  playedPercentage: t,
895
895
  onSeek: n
896
896
  }) {
897
- const a = U("aplayer-bar"), i = U("aplayer-icon"), c = I(null), [h, b] = H(t), s = I(!1);
897
+ const a = W("aplayer-bar"), i = W("aplayer-icon"), c = F(null), [p, g] = H(t), s = F(!1);
898
898
  D(() => {
899
- s.current || b(t);
899
+ s.current || g(t);
900
900
  }, [t]);
901
- const d = L(
902
- (g) => {
901
+ const d = R(
902
+ (E) => {
903
903
  s.current = !0;
904
- const p = Ne(g, c);
905
- b(p);
904
+ const b = Ae(E, c);
905
+ g(b);
906
906
  const f = (_) => {
907
- const o = Ne(_, c);
908
- b(o);
907
+ const u = Ae(_, c);
908
+ g(u);
909
909
  }, l = (_) => {
910
910
  document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", l);
911
- const o = Ne(_, c);
912
- b(o), n == null || n(o), s.current = !1;
911
+ const u = Ae(_, c);
912
+ g(u), n == null || n(u), s.current = !1;
913
913
  };
914
914
  document.addEventListener("mousemove", f), document.addEventListener("mouseup", l);
915
915
  },
@@ -923,7 +923,7 @@ function ut({
923
923
  onMouseDown: d,
924
924
  role: "slider",
925
925
  "aria-label": "Audio progress",
926
- "aria-valuenow": h ? h * 100 : 0,
926
+ "aria-valuenow": p ? p * 100 : 0,
927
927
  "aria-valuemin": 0,
928
928
  "aria-valuemax": 100,
929
929
  "aria-live": "polite",
@@ -935,12 +935,12 @@ function ut({
935
935
  style: { width: `${e * 100}%` }
936
936
  }
937
937
  ) : null,
938
- typeof h < "u" ? /* @__PURE__ */ v.jsx(
938
+ typeof p < "u" ? /* @__PURE__ */ v.jsx(
939
939
  "div",
940
940
  {
941
941
  className: a.be("played"),
942
942
  style: {
943
- width: `${h * 100}%`
943
+ width: `${p * 100}%`
944
944
  },
945
945
  children: /* @__PURE__ */ v.jsx(
946
946
  "span",
@@ -988,15 +988,15 @@ function pt({
988
988
  onToggleMuted: n,
989
989
  onChangeVolume: a
990
990
  }) {
991
- const i = U("aplayer-volumn"), c = U("aplayer-icon"), h = I(null), [b, s] = H(!1), d = L(
992
- (g) => {
993
- a(qe(g, h)), s(!0);
994
- const p = (l) => {
995
- a(qe(l, h));
991
+ const i = W("aplayer-volumn"), c = W("aplayer-icon"), p = F(null), [g, s] = H(!1), d = R(
992
+ (E) => {
993
+ a(Ne(E, p)), s(!0);
994
+ const b = (l) => {
995
+ a(Ne(l, p));
996
996
  }, f = (l) => {
997
- document.removeEventListener("mouseup", f), document.removeEventListener("mousemove", p), s(!1), a(qe(l, h));
997
+ document.removeEventListener("mouseup", f), document.removeEventListener("mousemove", b), s(!1), a(Ne(l, p));
998
998
  };
999
- document.addEventListener("mousemove", p), document.addEventListener("mouseup", f);
999
+ document.addEventListener("mousemove", b), document.addEventListener("mouseup", f);
1000
1000
  },
1001
1001
  [a]
1002
1002
  );
@@ -1015,9 +1015,9 @@ function pt({
1015
1015
  "div",
1016
1016
  {
1017
1017
  className: $(i.be("bar-wrap"), {
1018
- [i.bem("bar-wrap", "active")]: b
1018
+ [i.bem("bar-wrap", "active")]: g
1019
1019
  }),
1020
- ref: h,
1020
+ ref: p,
1021
1021
  onMouseDown: d,
1022
1022
  children: /* @__PURE__ */ v.jsx("div", { className: i.be("bar"), children: /* @__PURE__ */ v.jsx(
1023
1023
  "div",
@@ -1037,7 +1037,7 @@ function ur(e) {
1037
1037
  return "--:--";
1038
1038
  if (Number.isNaN(e))
1039
1039
  return "00:00";
1040
- const t = (h) => h < 10 ? `0${h}` : `${h}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), c = Math.trunc(
1040
+ const t = (p) => p < 10 ? `0${p}` : `${p}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), c = Math.trunc(
1041
1041
  e / 60 - 60 * Math.trunc(e / 60 / 60)
1042
1042
  );
1043
1043
  return e >= 3600 ? `${t(i)}:${t(c)}:${t(a)}` : `${t(n)}:${t(a)}`;
@@ -1064,34 +1064,34 @@ function St({
1064
1064
  currentTime: a,
1065
1065
  audioDurationSeconds: i,
1066
1066
  bufferedSeconds: c,
1067
- onToggleMenu: h,
1068
- onToggleMuted: b,
1067
+ onToggleMenu: p,
1068
+ onToggleMuted: g,
1069
1069
  order: s,
1070
1070
  onOrderChange: d,
1071
- loop: g,
1072
- onLoopChange: p,
1071
+ loop: E,
1072
+ onLoopChange: b,
1073
1073
  onSeek: f,
1074
1074
  isPlaying: l,
1075
1075
  onTogglePlay: _,
1076
- onSkipForward: o,
1077
- onSkipBack: y,
1078
- showLyrics: E = !0,
1079
- onToggleLyrics: O
1076
+ onSkipForward: u,
1077
+ onSkipBack: h,
1078
+ showLyrics: y = !0,
1079
+ onToggleLyrics: j
1080
1080
  }) {
1081
- const T = U("aplayer-controller"), A = U("aplayer-icon"), te = L(() => {
1081
+ const T = W("aplayer-controller"), A = W("aplayer-icon"), re = R(() => {
1082
1082
  const B = {
1083
1083
  list: "random",
1084
1084
  random: "list"
1085
1085
  }[s];
1086
1086
  d(B);
1087
- }, [s, d]), W = L(() => {
1087
+ }, [s, d]), U = R(() => {
1088
1088
  const B = {
1089
1089
  all: "one",
1090
1090
  one: "none",
1091
1091
  none: "all"
1092
- }[g];
1093
- p(B);
1094
- }, [g, p]);
1092
+ }[E];
1093
+ b(B);
1094
+ }, [E, b]);
1095
1095
  return /* @__PURE__ */ v.jsxs(
1096
1096
  "div",
1097
1097
  {
@@ -1117,7 +1117,7 @@ function St({
1117
1117
  "button",
1118
1118
  {
1119
1119
  className: $(A.b(), A.bs("back")),
1120
- onClick: y,
1120
+ onClick: h,
1121
1121
  type: "button",
1122
1122
  "aria-label": "Previous track",
1123
1123
  children: /* @__PURE__ */ v.jsx(bt, {})
@@ -1137,7 +1137,7 @@ function St({
1137
1137
  "button",
1138
1138
  {
1139
1139
  className: $(A.b(), A.bs("forward")),
1140
- onClick: o,
1140
+ onClick: u,
1141
1141
  type: "button",
1142
1142
  "aria-label": "Next track",
1143
1143
  children: /* @__PURE__ */ v.jsx(gt, {})
@@ -1148,7 +1148,7 @@ function St({
1148
1148
  {
1149
1149
  volume: e,
1150
1150
  muted: n,
1151
- onToggleMuted: b,
1151
+ onToggleMuted: g,
1152
1152
  onChangeVolume: t
1153
1153
  }
1154
1154
  ),
@@ -1156,7 +1156,7 @@ function St({
1156
1156
  "button",
1157
1157
  {
1158
1158
  className: $(A.b(), A.bs("order")),
1159
- onClick: te,
1159
+ onClick: re,
1160
1160
  type: "button",
1161
1161
  "aria-label": `Playback order: ${s}`,
1162
1162
  children: { list: /* @__PURE__ */ v.jsx(st, {}), random: /* @__PURE__ */ v.jsx(_t, {}) }[s]
@@ -1166,14 +1166,14 @@ function St({
1166
1166
  "button",
1167
1167
  {
1168
1168
  className: $(A.b(), A.bs("order")),
1169
- onClick: W,
1169
+ onClick: U,
1170
1170
  type: "button",
1171
- "aria-label": `Loop mode: ${g}`,
1171
+ "aria-label": `Loop mode: ${E}`,
1172
1172
  children: {
1173
1173
  all: /* @__PURE__ */ v.jsx(vt, {}),
1174
1174
  one: /* @__PURE__ */ v.jsx(dt, {}),
1175
1175
  none: /* @__PURE__ */ v.jsx(xt, {})
1176
- }[g]
1176
+ }[E]
1177
1177
  }
1178
1178
  ),
1179
1179
  /* @__PURE__ */ v.jsx(
@@ -1181,7 +1181,7 @@ function St({
1181
1181
  {
1182
1182
  type: "button",
1183
1183
  className: $(A.b(), A.bs("menu")),
1184
- onClick: () => h == null ? void 0 : h(),
1184
+ onClick: () => p == null ? void 0 : p(),
1185
1185
  "aria-label": "Toggle playlist menu",
1186
1186
  children: /* @__PURE__ */ v.jsx(Et, {})
1187
1187
  }
@@ -1191,11 +1191,11 @@ function St({
1191
1191
  {
1192
1192
  type: "button",
1193
1193
  className: $(A.b(), A.bs("lrc"), {
1194
- [A.ns("lrc-inactivity")]: !E
1194
+ [A.ns("lrc-inactivity")]: !y
1195
1195
  }),
1196
- onClick: O,
1197
- "aria-label": E ? "Hide lyrics" : "Show lyrics",
1198
- "aria-pressed": E,
1196
+ onClick: j,
1197
+ "aria-label": y ? "Hide lyrics" : "Show lyrics",
1198
+ "aria-pressed": y,
1199
1199
  children: /* @__PURE__ */ v.jsx(lt, {})
1200
1200
  }
1201
1201
  )
@@ -1211,7 +1211,7 @@ function Tt({
1211
1211
  onPlayAudio: a,
1212
1212
  listMaxHeight: i
1213
1213
  }) {
1214
- const c = U("aplayer-list"), h = i ? { maxHeight: i } : void 0, b = L((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s = I(null);
1214
+ const c = W("aplayer-list"), p = i ? { maxHeight: i } : void 0, g = R((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s = F(null);
1215
1215
  return D(() => {
1216
1216
  if (s.current) {
1217
1217
  const d = s.current;
@@ -1231,7 +1231,7 @@ function Tt({
1231
1231
  }),
1232
1232
  "aria-label": "Audio playlist",
1233
1233
  "aria-live": "polite",
1234
- children: /* @__PURE__ */ v.jsx("ol", { style: h, children: t.map((d, g) => /* @__PURE__ */ v.jsxs(
1234
+ children: /* @__PURE__ */ v.jsx("ol", { style: p, children: t.map((d, E) => /* @__PURE__ */ v.jsxs(
1235
1235
  "li",
1236
1236
  {
1237
1237
  className: $({
@@ -1241,28 +1241,28 @@ function Tt({
1241
1241
  d.url !== n && (a == null || a(d));
1242
1242
  },
1243
1243
  role: "button",
1244
- "aria-label": `${d.name ?? "Audio name"} by ${b(d.artist)}}`,
1244
+ "aria-label": `${d.name ?? "Audio name"} by ${g(d.artist)}}`,
1245
1245
  children: [
1246
1246
  /* @__PURE__ */ v.jsx("span", { className: c.be("cur") }),
1247
- /* @__PURE__ */ v.jsx("span", { className: c.be("index"), children: g + 1 }),
1247
+ /* @__PURE__ */ v.jsx("span", { className: c.be("index"), children: E + 1 }),
1248
1248
  /* @__PURE__ */ v.jsx("span", { className: c.be("title"), children: d.name ?? "Audio name" }),
1249
- /* @__PURE__ */ v.jsx("span", { className: c.be("author"), children: b(d.artist) })
1249
+ /* @__PURE__ */ v.jsx("span", { className: c.be("author"), children: g(d.artist) })
1250
1250
  ]
1251
1251
  },
1252
- d.name || g
1252
+ d.name || E
1253
1253
  )) })
1254
1254
  }
1255
1255
  );
1256
1256
  }
1257
1257
  function sr({ show: e, lrcText: t, currentTime: n }) {
1258
- const a = U("aplayer-lrc"), i = K(() => wt(t), [t]), c = K(() => {
1259
- for (let b = 0; b < i.length; b++) {
1260
- const s = i[b], d = i[b + 1];
1258
+ const a = W("aplayer-lrc"), i = K(() => wt(t), [t]), c = K(() => {
1259
+ for (let g = 0; g < i.length; g++) {
1260
+ const s = i[g], d = i[g + 1];
1261
1261
  if (n >= s[0] && (!d || n < d[0]))
1262
- return b;
1262
+ return g;
1263
1263
  }
1264
1264
  return 0;
1265
- }, [n, i]), h = K(() => ({
1265
+ }, [n, i]), p = K(() => ({
1266
1266
  transform: `translateY(${-c * 16}px)`,
1267
1267
  WebkitTransform: `translateY(${-c * 16}px)`
1268
1268
  }), [c]);
@@ -1272,13 +1272,13 @@ function sr({ show: e, lrcText: t, currentTime: n }) {
1272
1272
  className: $(a.b(), {
1273
1273
  [a.bm("hide")]: !e
1274
1274
  }),
1275
- children: t ? /* @__PURE__ */ v.jsx("div", { className: a.be("contents"), style: h, children: i.map(([, b], s) => /* @__PURE__ */ v.jsx(
1275
+ children: t ? /* @__PURE__ */ v.jsx("div", { className: a.be("contents"), style: p, children: i.map(([, g], s) => /* @__PURE__ */ v.jsx(
1276
1276
  "p",
1277
1277
  {
1278
1278
  className: $({
1279
1279
  [a.be("current")]: s === c
1280
1280
  }),
1281
- children: b
1281
+ children: g
1282
1282
  },
1283
1283
  s
1284
1284
  )) }) : null
@@ -1292,12 +1292,12 @@ function wt(e) {
1292
1292
  const t = e.split(`
1293
1293
  `), n = [], a = t.length;
1294
1294
  for (let i = 0; i < a; i++) {
1295
- const c = t[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), h = t[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
1295
+ const c = t[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), p = t[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
1296
1296
  if (c) {
1297
- const b = c.length;
1298
- for (let s = 0; s < b; s++) {
1299
- const d = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(c[s]), g = d[1] * 60, p = Number.parseInt(d[2]), f = d[4] ? Number.parseInt(d[4]) / (`${d[4]}`.length === 2 ? 100 : 1e3) : 0, l = g + p + f;
1300
- n.push([l, h]);
1297
+ const g = c.length;
1298
+ for (let s = 0; s < g; s++) {
1299
+ const d = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(c[s]), E = d[1] * 60, b = Number.parseInt(d[2]), f = d[4] ? Number.parseInt(d[4]) / (`${d[4]}`.length === 2 ? 100 : 1e3) : 0, l = E + b + f;
1300
+ n.push([l, p]);
1301
1301
  }
1302
1302
  }
1303
1303
  }
@@ -1305,7 +1305,7 @@ function wt(e) {
1305
1305
  } else
1306
1306
  return [];
1307
1307
  }
1308
- var Se = { exports: {} }, Me = {};
1308
+ var _e = { exports: {} }, qe = {};
1309
1309
  /**
1310
1310
  * @license React
1311
1311
  * use-sync-external-store-shim.production.js
@@ -1317,46 +1317,46 @@ var Se = { exports: {} }, Me = {};
1317
1317
  */
1318
1318
  var lr;
1319
1319
  function jt() {
1320
- if (lr) return Me;
1320
+ if (lr) return qe;
1321
1321
  lr = 1;
1322
- var e = we;
1323
- function t(p, f) {
1324
- return p === f && (p !== 0 || 1 / p === 1 / f) || p !== p && f !== f;
1322
+ var e = Te;
1323
+ function t(b, f) {
1324
+ return b === f && (b !== 0 || 1 / b === 1 / f) || b !== b && f !== f;
1325
1325
  }
1326
- var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect, c = e.useLayoutEffect, h = e.useDebugValue;
1327
- function b(p, f) {
1328
- var l = f(), _ = a({ inst: { value: l, getSnapshot: f } }), o = _[0].inst, y = _[1];
1326
+ var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect, c = e.useLayoutEffect, p = e.useDebugValue;
1327
+ function g(b, f) {
1328
+ var l = f(), _ = a({ inst: { value: l, getSnapshot: f } }), u = _[0].inst, h = _[1];
1329
1329
  return c(
1330
1330
  function() {
1331
- o.value = l, o.getSnapshot = f, s(o) && y({ inst: o });
1331
+ u.value = l, u.getSnapshot = f, s(u) && h({ inst: u });
1332
1332
  },
1333
- [p, l, f]
1333
+ [b, l, f]
1334
1334
  ), i(
1335
1335
  function() {
1336
- return s(o) && y({ inst: o }), p(function() {
1337
- s(o) && y({ inst: o });
1336
+ return s(u) && h({ inst: u }), b(function() {
1337
+ s(u) && h({ inst: u });
1338
1338
  });
1339
1339
  },
1340
- [p]
1341
- ), h(l), l;
1340
+ [b]
1341
+ ), p(l), l;
1342
1342
  }
1343
- function s(p) {
1344
- var f = p.getSnapshot;
1345
- p = p.value;
1343
+ function s(b) {
1344
+ var f = b.getSnapshot;
1345
+ b = b.value;
1346
1346
  try {
1347
1347
  var l = f();
1348
- return !n(p, l);
1348
+ return !n(b, l);
1349
1349
  } catch {
1350
1350
  return !0;
1351
1351
  }
1352
1352
  }
1353
- function d(p, f) {
1353
+ function d(b, f) {
1354
1354
  return f();
1355
1355
  }
1356
- var g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : b;
1357
- return Me.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g, Me;
1356
+ var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : g;
1357
+ return qe.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E, qe;
1358
1358
  }
1359
- var ke = {};
1359
+ var Me = {};
1360
1360
  /**
1361
1361
  * @license React
1362
1362
  * use-sync-external-store-shim.development.js
@@ -1373,40 +1373,40 @@ function Ot() {
1373
1373
  return l === _ && (l !== 0 || 1 / l === 1 / _) || l !== l && _ !== _;
1374
1374
  }
1375
1375
  function t(l, _) {
1376
- g || i.startTransition === void 0 || (g = !0, console.error(
1376
+ E || i.startTransition === void 0 || (E = !0, console.error(
1377
1377
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1378
1378
  ));
1379
- var o = _();
1380
- if (!p) {
1381
- var y = _();
1382
- c(o, y) || (console.error(
1379
+ var u = _();
1380
+ if (!b) {
1381
+ var h = _();
1382
+ c(u, h) || (console.error(
1383
1383
  "The result of getSnapshot should be cached to avoid an infinite loop"
1384
- ), p = !0);
1384
+ ), b = !0);
1385
1385
  }
1386
- y = h({
1387
- inst: { value: o, getSnapshot: _ }
1386
+ h = p({
1387
+ inst: { value: u, getSnapshot: _ }
1388
1388
  });
1389
- var E = y[0].inst, O = y[1];
1389
+ var y = h[0].inst, j = h[1];
1390
1390
  return s(
1391
1391
  function() {
1392
- E.value = o, E.getSnapshot = _, n(E) && O({ inst: E });
1392
+ y.value = u, y.getSnapshot = _, n(y) && j({ inst: y });
1393
1393
  },
1394
- [l, o, _]
1395
- ), b(
1394
+ [l, u, _]
1395
+ ), g(
1396
1396
  function() {
1397
- return n(E) && O({ inst: E }), l(function() {
1398
- n(E) && O({ inst: E });
1397
+ return n(y) && j({ inst: y }), l(function() {
1398
+ n(y) && j({ inst: y });
1399
1399
  });
1400
1400
  },
1401
1401
  [l]
1402
- ), d(o), o;
1402
+ ), d(u), u;
1403
1403
  }
1404
1404
  function n(l) {
1405
1405
  var _ = l.getSnapshot;
1406
1406
  l = l.value;
1407
1407
  try {
1408
- var o = _();
1409
- return !c(l, o);
1408
+ var u = _();
1409
+ return !c(l, u);
1410
1410
  } catch {
1411
1411
  return !0;
1412
1412
  }
@@ -1415,22 +1415,22 @@ function Ot() {
1415
1415
  return _();
1416
1416
  }
1417
1417
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1418
- var i = we, c = typeof Object.is == "function" ? Object.is : e, h = i.useState, b = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, g = !1, p = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1419
- ke.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1420
- }()), ke;
1418
+ var i = Te, c = typeof Object.is == "function" ? Object.is : e, p = i.useState, g = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, E = !1, b = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1419
+ Me.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1420
+ }()), Me;
1421
1421
  }
1422
1422
  var fr;
1423
1423
  function Rt() {
1424
- return fr || (fr = 1, process.env.NODE_ENV === "production" ? Se.exports = jt() : Se.exports = Ot()), Se.exports;
1424
+ return fr || (fr = 1, process.env.NODE_ENV === "production" ? _e.exports = jt() : _e.exports = Ot()), _e.exports;
1425
1425
  }
1426
1426
  var G = Rt();
1427
- const ee = [];
1428
- function Pt(e) {
1429
- const t = I();
1427
+ const Z = [];
1428
+ function Lt(e) {
1429
+ const t = F();
1430
1430
  return D(() => {
1431
1431
  if (typeof window < "u" && !t.current) {
1432
1432
  const n = t.current = document.createElement("audio");
1433
- typeof (e == null ? void 0 : e.src) < "u" && (n.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (n.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (n.volume = e.initialVolume), ee.includes(n) || ee.push(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), Z.includes(n) || Z.push(n);
1434
1434
  }
1435
1435
  }, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), D(() => {
1436
1436
  if (typeof window > "u") return;
@@ -1450,104 +1450,104 @@ function Pt(e) {
1450
1450
  const n = t.current;
1451
1451
  if (n) {
1452
1452
  n.pause(), n.currentTime = 0;
1453
- const a = ee.indexOf(n);
1454
- a !== -1 && ee.splice(a, 1);
1453
+ const a = Z.indexOf(n);
1454
+ a !== -1 && Z.splice(a, 1);
1455
1455
  }
1456
1456
  t.current = void 0;
1457
1457
  }, []), t;
1458
1458
  }
1459
- function Lt(e) {
1460
- const t = Pt(e), n = L((o) => {
1461
- for (let y = 0; y < ee.length; y++) {
1462
- const E = ee[y];
1463
- E !== o && !E.paused && E.pause();
1464
- }
1465
- }, []), a = L(
1466
- async (o) => {
1467
- var E;
1468
- const y = t.current;
1469
- if (y) {
1470
- e.mutex && n(y), y.src !== o && (y.pause(), y.currentTime = 0, y.src = o);
1459
+ function Pt(e) {
1460
+ const t = Lt(e), n = R((u) => {
1461
+ for (let h = 0; h < Z.length; h++) {
1462
+ const y = Z[h];
1463
+ y !== u && !y.paused && y.pause();
1464
+ }
1465
+ }, []), a = R(
1466
+ async (u) => {
1467
+ var y;
1468
+ const h = t.current;
1469
+ if (h) {
1470
+ e.mutex && n(h), h.src !== u && (h.pause(), h.currentTime = 0, h.src = u);
1471
1471
  try {
1472
- await ((E = t.current) == null ? void 0 : E.play());
1472
+ await ((y = t.current) == null ? void 0 : y.play());
1473
1473
  } catch {
1474
1474
  }
1475
1475
  }
1476
1476
  },
1477
1477
  [t, e.mutex, n]
1478
- ), i = L(
1479
- (o) => {
1480
- const y = t.current;
1481
- y && (y.paused ? a(o) : y.pause());
1478
+ ), i = R(
1479
+ (u) => {
1480
+ const h = t.current;
1481
+ h && (h.paused ? a(u) : h.pause());
1482
1482
  },
1483
1483
  [t, a]
1484
- ), c = L(
1485
- (o) => {
1486
- t.current.currentTime = o;
1484
+ ), c = R(
1485
+ (u) => {
1486
+ t.current.currentTime = u;
1487
1487
  },
1488
1488
  [t]
1489
- ), h = L(() => {
1489
+ ), p = R(() => {
1490
1490
  t.current && (t.current.muted = !t.current.muted);
1491
- }, [t]), b = L(
1492
- (o) => {
1493
- t.current && (t.current.volume = o);
1491
+ }, [t]), g = R(
1492
+ (u) => {
1493
+ t.current && (t.current.volume = u);
1494
1494
  },
1495
1495
  [t]
1496
1496
  ), s = G.useSyncExternalStore(
1497
- L(
1498
- (o) => {
1499
- var y;
1500
- return (y = t.current) == null || y.addEventListener(
1497
+ R(
1498
+ (u) => {
1499
+ var h;
1500
+ return (h = t.current) == null || h.addEventListener(
1501
1501
  "volumechange",
1502
- o
1502
+ u
1503
1503
  ), () => {
1504
- var E;
1505
- (E = t.current) == null || E.removeEventListener(
1504
+ var y;
1505
+ (y = t.current) == null || y.removeEventListener(
1506
1506
  "volumechange",
1507
- o
1507
+ u
1508
1508
  );
1509
1509
  };
1510
1510
  },
1511
1511
  [t]
1512
1512
  ),
1513
1513
  () => {
1514
- var o;
1515
- return (o = t.current) == null ? void 0 : o.volume;
1514
+ var u;
1515
+ return (u = t.current) == null ? void 0 : u.volume;
1516
1516
  },
1517
1517
  () => {
1518
1518
  }
1519
1519
  ), d = G.useSyncExternalStore(
1520
- L(
1521
- (o) => {
1522
- var y;
1523
- return (y = t.current) == null || y.addEventListener(
1520
+ R(
1521
+ (u) => {
1522
+ var h;
1523
+ return (h = t.current) == null || h.addEventListener(
1524
1524
  "volumechange",
1525
- o
1525
+ u
1526
1526
  ), () => {
1527
- var E;
1528
- (E = t.current) == null || E.removeEventListener(
1527
+ var y;
1528
+ (y = t.current) == null || y.removeEventListener(
1529
1529
  "volumechange",
1530
- o
1530
+ u
1531
1531
  );
1532
1532
  };
1533
1533
  },
1534
1534
  [t]
1535
1535
  ),
1536
1536
  () => {
1537
- var o;
1538
- return (o = t.current) == null ? void 0 : o.muted;
1537
+ var u;
1538
+ return (u = t.current) == null ? void 0 : u.muted;
1539
1539
  },
1540
1540
  () => {
1541
1541
  }
1542
- ), g = G.useSyncExternalStore(
1543
- L(
1544
- (o) => {
1545
- var y;
1546
- return (y = t.current) == null || y.addEventListener("timeupdate", o), () => {
1547
- var E;
1548
- (E = t.current) == null || E.removeEventListener(
1542
+ ), E = G.useSyncExternalStore(
1543
+ R(
1544
+ (u) => {
1545
+ var h;
1546
+ return (h = t.current) == null || h.addEventListener("timeupdate", u), () => {
1547
+ var y;
1548
+ (y = t.current) == null || y.removeEventListener(
1549
1549
  "timeupdate",
1550
- o
1550
+ u
1551
1551
  );
1552
1552
  };
1553
1553
  },
@@ -1559,86 +1559,86 @@ function Lt(e) {
1559
1559
  },
1560
1560
  () => {
1561
1561
  }
1562
- ), p = G.useSyncExternalStore(
1563
- L(
1564
- (o) => {
1565
- var y;
1566
- return (y = t.current) == null || y.addEventListener(
1562
+ ), b = G.useSyncExternalStore(
1563
+ R(
1564
+ (u) => {
1565
+ var h;
1566
+ return (h = t.current) == null || h.addEventListener(
1567
1567
  "durationchange",
1568
- o
1568
+ u
1569
1569
  ), () => {
1570
- var E;
1571
- (E = t.current) == null || E.removeEventListener(
1570
+ var y;
1571
+ (y = t.current) == null || y.removeEventListener(
1572
1572
  "durationchange",
1573
- o
1573
+ u
1574
1574
  );
1575
1575
  };
1576
1576
  },
1577
1577
  [t]
1578
1578
  ),
1579
1579
  () => {
1580
- var o;
1581
- return (o = t.current) == null ? void 0 : o.duration;
1580
+ var u;
1581
+ return (u = t.current) == null ? void 0 : u.duration;
1582
1582
  },
1583
1583
  () => {
1584
1584
  }
1585
1585
  ), f = G.useSyncExternalStore(
1586
- L(
1587
- (o) => {
1588
- var y;
1589
- return (y = t.current) == null || y.addEventListener("progress", o), () => {
1590
- var E;
1591
- (E = t.current) == null || E.removeEventListener(
1586
+ R(
1587
+ (u) => {
1588
+ var h;
1589
+ return (h = t.current) == null || h.addEventListener("progress", u), () => {
1590
+ var y;
1591
+ (y = t.current) == null || y.removeEventListener(
1592
1592
  "progress",
1593
- o
1593
+ u
1594
1594
  );
1595
1595
  };
1596
1596
  },
1597
1597
  [t]
1598
1598
  ),
1599
1599
  () => {
1600
- const o = t.current;
1601
- return o && o.buffered.length > 0 ? o.buffered.end(o.buffered.length - 1) : 0;
1600
+ const u = t.current;
1601
+ return u && u.buffered.length > 0 ? u.buffered.end(u.buffered.length - 1) : 0;
1602
1602
  },
1603
1603
  () => {
1604
1604
  }
1605
1605
  ), l = G.useSyncExternalStore(
1606
- L(
1607
- (o) => {
1608
- var y, E;
1609
- return (y = t.current) == null || y.addEventListener("play", o), (E = t.current) == null || E.addEventListener("pause", o), () => {
1610
- var O, T;
1611
- (O = t.current) == null || O.removeEventListener("play", o), (T = t.current) == null || T.removeEventListener("pause", o);
1606
+ R(
1607
+ (u) => {
1608
+ var h, y;
1609
+ return (h = t.current) == null || h.addEventListener("play", u), (y = t.current) == null || y.addEventListener("pause", u), () => {
1610
+ var j, T;
1611
+ (j = t.current) == null || j.removeEventListener("play", u), (T = t.current) == null || T.removeEventListener("pause", u);
1612
1612
  };
1613
1613
  },
1614
1614
  [t]
1615
1615
  ),
1616
1616
  () => {
1617
- const o = t.current;
1618
- return o ? !o.paused : !1;
1617
+ const u = t.current;
1618
+ return u ? !u.paused : !1;
1619
1619
  },
1620
1620
  () => {
1621
1621
  }
1622
1622
  ), _ = G.useSyncExternalStore(
1623
- L(
1624
- (o) => {
1625
- var y, E;
1626
- return (y = t.current) == null || y.addEventListener("playing", o), (E = t.current) == null || E.addEventListener("waiting", o), () => {
1627
- var O, T;
1628
- (O = t.current) == null || O.removeEventListener(
1623
+ R(
1624
+ (u) => {
1625
+ var h, y;
1626
+ return (h = t.current) == null || h.addEventListener("playing", u), (y = t.current) == null || y.addEventListener("waiting", u), () => {
1627
+ var j, T;
1628
+ (j = t.current) == null || j.removeEventListener(
1629
1629
  "playing",
1630
- o
1630
+ u
1631
1631
  ), (T = t.current) == null || T.removeEventListener(
1632
1632
  "waiting",
1633
- o
1633
+ u
1634
1634
  );
1635
1635
  };
1636
1636
  },
1637
1637
  [t]
1638
1638
  ),
1639
1639
  () => {
1640
- const o = t.current;
1641
- return o ? o.networkState === o.NETWORK_LOADING : !1;
1640
+ const u = t.current;
1641
+ return u ? u.networkState === u.NETWORK_LOADING : !1;
1642
1642
  },
1643
1643
  () => {
1644
1644
  }
@@ -1647,36 +1647,36 @@ function Lt(e) {
1647
1647
  playAudio: a,
1648
1648
  togglePlay: i,
1649
1649
  seek: c,
1650
- toggleMuted: h,
1651
- setVolume: b,
1650
+ toggleMuted: p,
1651
+ setVolume: g,
1652
1652
  volume: s,
1653
1653
  muted: d,
1654
- currentTime: g,
1655
- duration: p,
1654
+ currentTime: E,
1655
+ duration: b,
1656
1656
  bufferedSeconds: f,
1657
1657
  isPlaying: l,
1658
1658
  isLoading: _
1659
1659
  };
1660
1660
  }
1661
1661
  function yr() {
1662
- const e = I([]);
1662
+ const e = F([]);
1663
1663
  return D(() => {
1664
1664
  const n = e.current;
1665
1665
  return () => {
1666
1666
  for (const a of n)
1667
1667
  clearTimeout(a);
1668
1668
  };
1669
- }, []), L((n, a) => {
1669
+ }, []), R((n, a) => {
1670
1670
  const i = setTimeout(n, a);
1671
1671
  return e.current.push(i), i;
1672
1672
  }, []);
1673
1673
  }
1674
1674
  function $t() {
1675
- const e = I(), [t, n] = H({ text: "", style: { opacity: 0 } }), a = yr(), i = L(
1676
- (c, h = 2e3) => {
1675
+ const e = F(), [t, n] = H({ text: "", style: { opacity: 0 } }), a = yr(), i = R(
1676
+ (c, p = 2e3) => {
1677
1677
  e.current && clearTimeout(e.current), n({ text: c, style: { opacity: 1 } }), e.current = a(() => {
1678
1678
  n({ text: c, style: { opacity: 0 } });
1679
- }, h);
1679
+ }, p);
1680
1680
  },
1681
1681
  [a]
1682
1682
  );
@@ -1694,43 +1694,33 @@ function At(e) {
1694
1694
  ];
1695
1695
  return e;
1696
1696
  }
1697
- function Nt(e, {
1698
- initialLoop: t = "all",
1699
- initialOrder: n = "list",
1700
- getSongId: a
1701
- }) {
1702
- const [i, c] = H(t), [h, b] = H(n), s = K(() => h === "list" ? e : Ct(e), [e, h]), [d, g] = H(s[0]);
1703
- D(() => {
1704
- const o = s.find(
1705
- (y) => a(y) === a(d)
1706
- );
1707
- g(o || s[0]);
1708
- }, [s, a, d]);
1709
- const p = K(() => {
1710
- if (i === "one")
1711
- return { ...d };
1712
- const o = s.indexOf(d);
1713
- if (o < s.length - 1)
1714
- return s[o + 1];
1715
- if (i !== "none") return s[0];
1716
- }, [s, d, i]), f = L(() => {
1717
- p && g(p);
1718
- }, [p]), l = L(() => {
1719
- g((o) => {
1720
- const y = s.indexOf(o);
1721
- return y > 0 ? s[y - 1] : o;
1697
+ function Nt(e, t) {
1698
+ const { initialLoop: n = "all", initialOrder: a = "list" } = t, [i, c] = H(n), [p, g] = H(a), s = K(() => p === "list" ? e : Ct(e), [e, p]), [d, E] = H(s[0]), b = R((h) => h.url, []), f = K(() => s.findIndex((y) => b(y) === b(d)) < s.length - 1 || i !== "none", [s, d, i, b]), l = R(() => {
1699
+ E((h) => {
1700
+ const y = s.findIndex((j) => b(j) === b(h));
1701
+ return y < s.length - 1 ? s[y + 1] : i !== "none" ? s[0] : h;
1702
+ });
1703
+ }, [i, s, b]), _ = R(() => {
1704
+ E((h) => {
1705
+ const y = s.indexOf(h);
1706
+ return y > 0 ? s[y - 1] : h;
1722
1707
  });
1723
- }, [s]), _ = L((o) => {
1724
- g(o);
1708
+ }, [s]), u = R((h) => {
1709
+ E(h);
1725
1710
  }, []);
1726
- return {
1711
+ return D(() => {
1712
+ const h = s.find(
1713
+ (y) => b(y) === b(d)
1714
+ );
1715
+ E(h || s[0]);
1716
+ }, [s, b, d]), {
1727
1717
  currentSong: d,
1728
- hasNextSong: typeof p < "u",
1729
- next: f,
1730
- previous: l,
1731
- prioritize: _,
1732
- order: h,
1733
- setOrder: b,
1718
+ hasNextSong: f,
1719
+ next: l,
1720
+ previous: _,
1721
+ prioritize: u,
1722
+ order: p,
1723
+ setOrder: g,
1734
1724
  loop: i,
1735
1725
  setLoop: c,
1736
1726
  length: s.length
@@ -1749,81 +1739,78 @@ function Dt({
1749
1739
  initialLoop: a,
1750
1740
  initialOrder: i,
1751
1741
  autoPlay: c = !1,
1752
- listMaxHeight: h = 250,
1753
- mini: b = !1,
1742
+ listMaxHeight: p = 250,
1743
+ mini: g = !1,
1754
1744
  mutex: s = !0,
1755
1745
  listFolded: d = !1,
1756
- theme: g = "light",
1757
- border: p = !1
1746
+ theme: E = "light",
1747
+ border: b = !1
1758
1748
  }) {
1759
- var ae, ie, oe;
1760
- const f = U("aplayer"), l = Nt(Array.isArray(e) ? e : [e], {
1749
+ var ne, ae, ie;
1750
+ const f = W("aplayer"), l = Nt(Array.isArray(e) ? e : [e], {
1761
1751
  initialLoop: a,
1762
- initialOrder: i,
1763
- getSongId: (j) => j.url
1764
- }), [_, o] = $t(), y = yr(), E = I(), O = L(() => {
1765
- E.current && (clearTimeout(E.current), E.current = void 0);
1766
- }, []), T = Lt({
1752
+ initialOrder: i
1753
+ }), [_, u] = $t(), h = yr(), y = F(), j = R(() => {
1754
+ y.current && (clearTimeout(y.current), y.current = void 0);
1755
+ }, []), T = Pt({
1767
1756
  src: l.currentSong.url,
1768
1757
  initialVolume: n,
1769
1758
  autoPlay: c,
1770
1759
  mutex: s,
1771
- onError(j) {
1772
- const { error: he } = j.target;
1773
- he && o(
1760
+ onError(P) {
1761
+ const { error: me } = P.target;
1762
+ me && u(
1774
1763
  "An audio error has occurred, player will skip forward in 2 seconds."
1775
- ), l.hasNextSong && (E.current = y(() => {
1764
+ ), l.hasNextSong && (y.current = h(() => {
1776
1765
  l.next();
1777
1766
  }, 2e3));
1778
1767
  },
1779
1768
  onEnded() {
1769
+ if (l.loop === "one") {
1770
+ l.prioritize({ ...l.currentSong });
1771
+ return;
1772
+ }
1780
1773
  l.hasNextSong && l.next();
1781
1774
  }
1782
- }), A = L(() => {
1783
- O(), T.togglePlay(l.currentSong.url);
1784
- }, [T, O, l.currentSong.url]), te = L((j) => j ? typeof j == "string" ? j : j.url ? /* @__PURE__ */ v.jsx("a", { href: j.url, target: "_blank", rel: "noreferrer", children: j.name ?? "Audio artist" }) : j.name ?? "Audio artist" : "Audio artist", []), W = l.length > 1, B = K(
1775
+ }), A = R(() => {
1776
+ j(), T.togglePlay(l.currentSong.url);
1777
+ }, [T, j, l.currentSong.url]), re = R((P) => P ? typeof P == "string" ? P : P.url ? /* @__PURE__ */ v.jsx("a", { href: P.url, target: "_blank", rel: "noreferrer", children: P.name ?? "Audio artist" }) : P.name ?? "Audio artist" : "Audio artist", []), U = l.length > 1, B = K(
1785
1778
  () => Array.isArray(e) ? e : [e],
1786
1779
  [e]
1787
- ), { prioritize: fe } = l, de = L(
1788
- (j) => {
1789
- O(), fe(j);
1780
+ ), { prioritize: ce } = l, fe = R(
1781
+ (P) => {
1782
+ j(), ce(P);
1790
1783
  },
1791
- [O, fe]
1792
- ), [ve, je] = H(() => W && !d), [me, F] = H(b), [V, Y] = H(!0), J = I(null);
1784
+ [j, ce]
1785
+ ), [de, we] = H(() => U && !d), [ve, V] = H(g), [I, Y] = H(!0), J = F(null);
1793
1786
  D(() => {
1794
- F(b);
1795
- }, [b]), D(() => {
1787
+ V(g);
1788
+ }, [g]), D(() => {
1796
1789
  c && T.playAudio(l.currentSong.url);
1797
1790
  }, []);
1798
- const X = I(null), ne = I(!0);
1791
+ const te = F(!0);
1799
1792
  return D(() => {
1800
- if (!l.currentSong) return;
1801
- const j = l.currentSong.url;
1802
- if (ne.current) {
1803
- ne.current = !1, X.current = j;
1804
- return;
1805
- }
1806
- (l.loop === "one" || j !== X.current) && (T.playAudio(j), X.current = j);
1807
- }, [l.currentSong, l.loop]), D(() => {
1793
+ te.current ? te.current = !1 : l.currentSong && T.playAudio(l.currentSong.url);
1794
+ }, [l.currentSong]), D(() => {
1808
1795
  if (t === "fixed" && J.current) {
1809
- const j = J.current;
1810
- return j.style.width = `${j.offsetWidth - 18}px`, () => {
1811
- j.removeAttribute("style");
1796
+ const P = J.current;
1797
+ return P.style.width = `${P.offsetWidth - 18}px`, () => {
1798
+ P.removeAttribute("style");
1812
1799
  };
1813
1800
  }
1814
1801
  }, [t]), /* @__PURE__ */ v.jsxs(
1815
1802
  "div",
1816
1803
  {
1817
1804
  className: $(f.b(), {
1818
- [f.bs(g)]: !0,
1805
+ [f.bs(E)]: !0,
1819
1806
  [f.bs("vars")]: !0,
1820
1807
  [f.bm(t)]: !0,
1821
1808
  [f.bm("loading")]: T.isLoading,
1822
- [f.bm("withlist")]: W,
1823
- [f.bm("list-folded")]: !ve,
1809
+ [f.bm("withlist")]: U,
1810
+ [f.bm("list-folded")]: !de,
1824
1811
  [f.bm("withlrc")]: !!l.currentSong.lrc && t !== "fixed",
1825
- [f.bm("narrow")]: me,
1826
- [f.bm("border")]: p
1812
+ [f.bm("narrow")]: ve,
1813
+ [f.bm("border")]: b
1827
1814
  }),
1828
1815
  role: "region",
1829
1816
  "aria-label": "Audio Player",
@@ -1840,7 +1827,7 @@ function Dt({
1840
1827
  className: f.be("pic"),
1841
1828
  onClick: A,
1842
1829
  style: {
1843
- backgroundImage: `url("${(ae = l.currentSong) == null ? void 0 : ae.cover}")`
1830
+ backgroundImage: `url("${(ne = l.currentSong) == null ? void 0 : ne.cover}")`
1844
1831
  },
1845
1832
  role: "button",
1846
1833
  "aria-label": T.isPlaying ? "Pause audio" : "Play audio",
@@ -1859,18 +1846,18 @@ function Dt({
1859
1846
  ),
1860
1847
  /* @__PURE__ */ v.jsxs("div", { className: $(f.be("info")), children: [
1861
1848
  /* @__PURE__ */ v.jsxs("div", { className: $(f.be("music")), children: [
1862
- /* @__PURE__ */ v.jsx("span", { className: $(f.be("title")), children: ((ie = l.currentSong) == null ? void 0 : ie.name) ?? "Audio name" }),
1849
+ /* @__PURE__ */ v.jsx("span", { className: $(f.be("title")), children: ((ae = l.currentSong) == null ? void 0 : ae.name) ?? "Audio name" }),
1863
1850
  /* @__PURE__ */ v.jsxs("span", { className: $(f.be("author")), children: [
1864
1851
  " ",
1865
1852
  "-",
1866
1853
  " ",
1867
- te((oe = l.currentSong) == null ? void 0 : oe.artist)
1854
+ re((ie = l.currentSong) == null ? void 0 : ie.artist)
1868
1855
  ] })
1869
1856
  ] }),
1870
1857
  t === "fixed" ? null : /* @__PURE__ */ v.jsx(
1871
1858
  sr,
1872
1859
  {
1873
- show: V,
1860
+ show: I,
1874
1861
  lrcText: l.currentSong.lrc,
1875
1862
  currentTime: T.currentTime ?? 0
1876
1863
  }
@@ -1885,8 +1872,8 @@ function Dt({
1885
1872
  currentTime: T.currentTime,
1886
1873
  audioDurationSeconds: T.duration,
1887
1874
  bufferedSeconds: T.bufferedSeconds,
1888
- onSeek: (j) => T.seek(j),
1889
- onToggleMenu: () => je((j) => !j),
1875
+ onSeek: (P) => T.seek(P),
1876
+ onToggleMenu: () => we((P) => !P),
1890
1877
  order: l.order,
1891
1878
  onOrderChange: l.setOrder,
1892
1879
  loop: l.loop,
@@ -1899,9 +1886,9 @@ function Dt({
1899
1886
  onSkipBack: () => {
1900
1887
  l.previous();
1901
1888
  },
1902
- showLyrics: V,
1889
+ showLyrics: I,
1903
1890
  onToggleLyrics: () => {
1904
- Y((j) => !j);
1891
+ Y((P) => !P);
1905
1892
  }
1906
1893
  }
1907
1894
  )
@@ -1911,27 +1898,27 @@ function Dt({
1911
1898
  "div",
1912
1899
  {
1913
1900
  className: f.be("miniswitcher"),
1914
- onClick: () => F((j) => !j),
1901
+ onClick: () => V((P) => !P),
1915
1902
  children: /* @__PURE__ */ v.jsx("button", { className: $(f.bs("icon"), f.bs("icon-right")), type: "button", children: /* @__PURE__ */ v.jsx(qt, {}) })
1916
1903
  }
1917
1904
  )
1918
1905
  ]
1919
1906
  }
1920
1907
  ),
1921
- W ? /* @__PURE__ */ v.jsx(
1908
+ U ? /* @__PURE__ */ v.jsx(
1922
1909
  Tt,
1923
1910
  {
1924
- open: ve,
1911
+ open: de,
1925
1912
  audio: B,
1926
1913
  playingAudioUrl: l.currentSong.url,
1927
- onPlayAudio: de,
1928
- listMaxHeight: h
1914
+ onPlayAudio: fe,
1915
+ listMaxHeight: p
1929
1916
  }
1930
1917
  ) : null,
1931
1918
  t === "fixed" && /* @__PURE__ */ v.jsx(
1932
1919
  sr,
1933
1920
  {
1934
- show: V,
1921
+ show: I,
1935
1922
  lrcText: l.currentSong.lrc,
1936
1923
  currentTime: T.currentTime ?? 0
1937
1924
  }