arpeggi-framer-components 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +1136 -1087
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -23
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
import me, { useMemo as
|
5
|
-
function
|
1
|
+
var _o = Object.defineProperty;
|
2
|
+
var Ao = (e, t, i) => t in e ? _o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
3
|
+
var Nt = (e, t, i) => Ao(e, typeof t != "symbol" ? t + "" : t, i);
|
4
|
+
import me, { useMemo as Qe, useRef as Le, useReducer as Co, useEffect as Qt, useCallback as je, forwardRef as Do, useImperativeHandle as jo, Fragment as Fo, createContext as Po, useContext as Io, useLayoutEffect as Bo, useDebugValue as zo } from "react";
|
5
|
+
function Rr(e) {
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
7
7
|
}
|
8
|
-
var
|
8
|
+
var qt = { exports: {} }, _t = {};
|
9
9
|
/**
|
10
10
|
* @license React
|
11
11
|
* react-jsx-runtime.production.min.js
|
@@ -15,10 +15,10 @@ var $t = { exports: {} }, Tt = {};
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
17
17
|
*/
|
18
|
-
var
|
19
|
-
function
|
20
|
-
if (
|
21
|
-
|
18
|
+
var yi;
|
19
|
+
function Lo() {
|
20
|
+
if (yi) return _t;
|
21
|
+
yi = 1;
|
22
22
|
var e = me, t = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
23
23
|
function a(s, c, p) {
|
24
24
|
var l, u = {}, f = null, m = null;
|
@@ -27,9 +27,9 @@ function Bo() {
|
|
27
27
|
if (s && s.defaultProps) for (l in c = s.defaultProps, c) u[l] === void 0 && (u[l] = c[l]);
|
28
28
|
return { $$typeof: t, type: s, key: f, ref: m, props: u, _owner: r.current };
|
29
29
|
}
|
30
|
-
return
|
30
|
+
return _t.Fragment = i, _t.jsx = a, _t.jsxs = a, _t;
|
31
31
|
}
|
32
|
-
var
|
32
|
+
var At = {};
|
33
33
|
/**
|
34
34
|
* @license React
|
35
35
|
* react-jsx-runtime.development.js
|
@@ -39,9 +39,9 @@ var kt = {};
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
41
41
|
*/
|
42
|
-
var
|
43
|
-
function
|
44
|
-
return
|
42
|
+
var wi;
|
43
|
+
function Mo() {
|
44
|
+
return wi || (wi = 1, process.env.NODE_ENV !== "production" && function() {
|
45
45
|
var e = me, t = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), x = Symbol.iterator, g = "@@iterator";
|
46
46
|
function y(d) {
|
47
47
|
if (d === null || typeof d != "object")
|
@@ -238,29 +238,29 @@ function zo() {
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
239
239
|
try {
|
240
240
|
Reflect.construct(Z, []);
|
241
|
-
} catch (
|
242
|
-
N =
|
241
|
+
} catch (We) {
|
242
|
+
N = We;
|
243
243
|
}
|
244
244
|
Reflect.construct(d, [], Z);
|
245
245
|
} else {
|
246
246
|
try {
|
247
247
|
Z.call();
|
248
|
-
} catch (
|
249
|
-
N =
|
248
|
+
} catch (We) {
|
249
|
+
N = We;
|
250
250
|
}
|
251
251
|
d.call(Z.prototype);
|
252
252
|
}
|
253
253
|
} else {
|
254
254
|
try {
|
255
255
|
throw Error();
|
256
|
-
} catch (
|
257
|
-
N =
|
256
|
+
} catch (We) {
|
257
|
+
N = We;
|
258
258
|
}
|
259
259
|
d();
|
260
260
|
}
|
261
|
-
} catch (
|
262
|
-
if (
|
263
|
-
for (var G =
|
261
|
+
} catch (We) {
|
262
|
+
if (We && N && typeof We.stack == "string") {
|
263
|
+
for (var G = We.stack.split(`
|
264
264
|
`), Ce = N.stack.split(`
|
265
265
|
`), ye = G.length - 1, Se = Ce.length - 1; ye >= 1 && Se >= 0 && G[ye] !== Ce[Se]; )
|
266
266
|
Se--;
|
@@ -269,9 +269,9 @@ function zo() {
|
|
269
269
|
if (ye !== 1 || Se !== 1)
|
270
270
|
do
|
271
271
|
if (ye--, Se--, Se < 0 || G[ye] !== Ce[Se]) {
|
272
|
-
var
|
272
|
+
var ze = `
|
273
273
|
` + G[ye].replace(" at new ", " at ");
|
274
|
-
return d.displayName &&
|
274
|
+
return d.displayName && ze.includes("<anonymous>") && (ze = ze.replace("<anonymous>", d.displayName)), typeof d == "function" && L.set(d, ze), ze;
|
275
275
|
}
|
276
276
|
while (ye >= 1 && Se >= 0);
|
277
277
|
break;
|
@@ -280,8 +280,8 @@ function zo() {
|
|
280
280
|
} finally {
|
281
281
|
J = !1, P.current = ce, W(), Error.prepareStackTrace = te;
|
282
282
|
}
|
283
|
-
var
|
284
|
-
return typeof d == "function" && L.set(d,
|
283
|
+
var ft = d ? d.displayName || d.name : "", bi = ft ? V(ft) : "";
|
284
|
+
return typeof d == "function" && L.set(d, bi), bi;
|
285
285
|
}
|
286
286
|
function Y(d, E, O) {
|
287
287
|
return w(d, !1);
|
@@ -346,11 +346,11 @@ function zo() {
|
|
346
346
|
}
|
347
347
|
}
|
348
348
|
}
|
349
|
-
var
|
350
|
-
function
|
351
|
-
return
|
349
|
+
var lt = Array.isArray;
|
350
|
+
function Ye(d) {
|
351
|
+
return lt(d);
|
352
352
|
}
|
353
|
-
function
|
353
|
+
function pt(d) {
|
354
354
|
{
|
355
355
|
var E = typeof Symbol == "function" && Symbol.toStringTag, O = E && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
356
356
|
return O;
|
@@ -368,16 +368,16 @@ function zo() {
|
|
368
368
|
}
|
369
369
|
function se(d) {
|
370
370
|
if (R(d))
|
371
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
371
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(d)), j(d);
|
372
372
|
}
|
373
373
|
var de = h.ReactCurrentOwner, Te = {
|
374
374
|
key: !0,
|
375
375
|
ref: !0,
|
376
376
|
__self: !0,
|
377
377
|
__source: !0
|
378
|
-
},
|
379
|
-
|
380
|
-
function
|
378
|
+
}, Ke, Ue, Xe;
|
379
|
+
Xe = {};
|
380
|
+
function wt(d) {
|
381
381
|
if (ke.call(d, "ref")) {
|
382
382
|
var E = Object.getOwnPropertyDescriptor(d, "ref").get;
|
383
383
|
if (E && E.isReactWarning)
|
@@ -385,7 +385,7 @@ function zo() {
|
|
385
385
|
}
|
386
386
|
return d.ref !== void 0;
|
387
387
|
}
|
388
|
-
function
|
388
|
+
function Et(d) {
|
389
389
|
if (ke.call(d, "key")) {
|
390
390
|
var E = Object.getOwnPropertyDescriptor(d, "key").get;
|
391
391
|
if (E && E.isReactWarning)
|
@@ -393,16 +393,16 @@ function zo() {
|
|
393
393
|
}
|
394
394
|
return d.key !== void 0;
|
395
395
|
}
|
396
|
-
function
|
396
|
+
function dt(d, E) {
|
397
397
|
if (typeof d.ref == "string" && de.current && E && de.current.stateNode !== E) {
|
398
398
|
var O = X(de.current.type);
|
399
|
-
|
399
|
+
Xe[O] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', X(de.current.type), d.ref), Xe[O] = !0);
|
400
400
|
}
|
401
401
|
}
|
402
|
-
function
|
402
|
+
function St(d, E) {
|
403
403
|
{
|
404
404
|
var O = function() {
|
405
|
-
|
405
|
+
Ke || (Ke = !0, _("%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)", E));
|
406
406
|
};
|
407
407
|
O.isReactWarning = !0, Object.defineProperty(d, "key", {
|
408
408
|
get: O,
|
@@ -410,10 +410,10 @@ function zo() {
|
|
410
410
|
});
|
411
411
|
}
|
412
412
|
}
|
413
|
-
function
|
413
|
+
function Rt(d, E) {
|
414
414
|
{
|
415
415
|
var O = function() {
|
416
|
-
|
416
|
+
Ue || (Ue = !0, _("%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)", E));
|
417
417
|
};
|
418
418
|
O.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
419
419
|
get: O,
|
@@ -421,7 +421,7 @@ function zo() {
|
|
421
421
|
});
|
422
422
|
}
|
423
423
|
}
|
424
|
-
var
|
424
|
+
var Tt = function(d, E, O, N, te, ce, Z) {
|
425
425
|
var G = {
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
427
427
|
$$typeof: t,
|
@@ -450,10 +450,10 @@ function zo() {
|
|
450
450
|
value: te
|
451
451
|
}), Object.freeze && (Object.freeze(G.props), Object.freeze(G)), G;
|
452
452
|
};
|
453
|
-
function
|
453
|
+
function kt(d, E, O, N, te) {
|
454
454
|
{
|
455
455
|
var ce, Z = {}, G = null, Ce = null;
|
456
|
-
O !== void 0 && (se(O), G = "" + O),
|
456
|
+
O !== void 0 && (se(O), G = "" + O), Et(E) && (se(E.key), G = "" + E.key), wt(E) && (Ce = E.ref, dt(E, te));
|
457
457
|
for (ce in E)
|
458
458
|
ke.call(E, ce) && !Te.hasOwnProperty(ce) && (Z[ce] = E[ce]);
|
459
459
|
if (d && d.defaultProps) {
|
@@ -463,28 +463,28 @@ function zo() {
|
|
463
463
|
}
|
464
464
|
if (G || Ce) {
|
465
465
|
var Se = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
466
|
-
G &&
|
466
|
+
G && St(Z, Se), Ce && Rt(Z, Se);
|
467
467
|
}
|
468
|
-
return
|
468
|
+
return Tt(d, G, Ce, te, N, de.current, Z);
|
469
469
|
}
|
470
470
|
}
|
471
|
-
var
|
472
|
-
function
|
471
|
+
var Ot = h.ReactCurrentOwner, fi = h.ReactDebugCurrentFrame;
|
472
|
+
function ut(d) {
|
473
473
|
if (d) {
|
474
474
|
var E = d._owner, O = Q(d.type, d._source, E ? E.type : null);
|
475
|
-
|
475
|
+
fi.setExtraStackFrame(O);
|
476
476
|
} else
|
477
|
-
|
477
|
+
fi.setExtraStackFrame(null);
|
478
478
|
}
|
479
|
-
var
|
480
|
-
|
481
|
-
function
|
479
|
+
var gn;
|
480
|
+
gn = !1;
|
481
|
+
function hn(d) {
|
482
482
|
return typeof d == "object" && d !== null && d.$$typeof === t;
|
483
483
|
}
|
484
|
-
function
|
484
|
+
function mi() {
|
485
485
|
{
|
486
|
-
if (
|
487
|
-
var d = X(
|
486
|
+
if (Ot.current) {
|
487
|
+
var d = X(Ot.current.type);
|
488
488
|
if (d)
|
489
489
|
return `
|
490
490
|
|
@@ -493,13 +493,13 @@ Check the render method of \`` + d + "`.";
|
|
493
493
|
return "";
|
494
494
|
}
|
495
495
|
}
|
496
|
-
function
|
496
|
+
function yo(d) {
|
497
497
|
return "";
|
498
498
|
}
|
499
|
-
var
|
500
|
-
function
|
499
|
+
var xi = {};
|
500
|
+
function wo(d) {
|
501
501
|
{
|
502
|
-
var E =
|
502
|
+
var E = mi();
|
503
503
|
if (!E) {
|
504
504
|
var O = typeof d == "string" ? d : d.displayName || d.name;
|
505
505
|
O && (E = `
|
@@ -509,39 +509,39 @@ Check the top-level render call using <` + O + ">.");
|
|
509
509
|
return E;
|
510
510
|
}
|
511
511
|
}
|
512
|
-
function
|
512
|
+
function vi(d, E) {
|
513
513
|
{
|
514
514
|
if (!d._store || d._store.validated || d.key != null)
|
515
515
|
return;
|
516
516
|
d._store.validated = !0;
|
517
|
-
var O =
|
518
|
-
if (
|
517
|
+
var O = wo(E);
|
518
|
+
if (xi[O])
|
519
519
|
return;
|
520
|
-
|
520
|
+
xi[O] = !0;
|
521
521
|
var N = "";
|
522
|
-
d && d._owner && d._owner !==
|
522
|
+
d && d._owner && d._owner !== Ot.current && (N = " It was passed a child from " + X(d._owner.type) + "."), ut(d), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', O, N), ut(null);
|
523
523
|
}
|
524
524
|
}
|
525
|
-
function
|
525
|
+
function gi(d, E) {
|
526
526
|
{
|
527
527
|
if (typeof d != "object")
|
528
528
|
return;
|
529
|
-
if (
|
529
|
+
if (Ye(d))
|
530
530
|
for (var O = 0; O < d.length; O++) {
|
531
531
|
var N = d[O];
|
532
|
-
|
532
|
+
hn(N) && vi(N, E);
|
533
533
|
}
|
534
|
-
else if (
|
534
|
+
else if (hn(d))
|
535
535
|
d._store && (d._store.validated = !0);
|
536
536
|
else if (d) {
|
537
537
|
var te = y(d);
|
538
538
|
if (typeof te == "function" && te !== d.entries)
|
539
539
|
for (var ce = te.call(d), Z; !(Z = ce.next()).done; )
|
540
|
-
|
540
|
+
hn(Z.value) && vi(Z.value, E);
|
541
541
|
}
|
542
542
|
}
|
543
543
|
}
|
544
|
-
function
|
544
|
+
function Eo(d) {
|
545
545
|
{
|
546
546
|
var E = d.type;
|
547
547
|
if (E == null || typeof E == "string")
|
@@ -558,80 +558,80 @@ Check the top-level render call using <` + O + ">.");
|
|
558
558
|
if (O) {
|
559
559
|
var N = X(E);
|
560
560
|
_e(O, d.props, "prop", N, d);
|
561
|
-
} else if (E.PropTypes !== void 0 && !
|
562
|
-
|
561
|
+
} else if (E.PropTypes !== void 0 && !gn) {
|
562
|
+
gn = !0;
|
563
563
|
var te = X(E);
|
564
564
|
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
|
565
565
|
}
|
566
566
|
typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
567
567
|
}
|
568
568
|
}
|
569
|
-
function
|
569
|
+
function So(d) {
|
570
570
|
{
|
571
571
|
for (var E = Object.keys(d.props), O = 0; O < E.length; O++) {
|
572
572
|
var N = E[O];
|
573
573
|
if (N !== "children" && N !== "key") {
|
574
|
-
|
574
|
+
ut(d), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), ut(null);
|
575
575
|
break;
|
576
576
|
}
|
577
577
|
}
|
578
|
-
d.ref !== null && (
|
578
|
+
d.ref !== null && (ut(d), _("Invalid attribute `ref` supplied to `React.Fragment`."), ut(null));
|
579
579
|
}
|
580
580
|
}
|
581
|
-
function
|
581
|
+
function hi(d, E, O, N, te, ce) {
|
582
582
|
{
|
583
583
|
var Z = K(d);
|
584
584
|
if (!Z) {
|
585
585
|
var G = "";
|
586
586
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (G += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
587
|
-
var Ce =
|
588
|
-
Ce ? G += Ce : G +=
|
587
|
+
var Ce = yo();
|
588
|
+
Ce ? G += Ce : G += mi();
|
589
589
|
var ye;
|
590
|
-
d === null ? ye = "null" :
|
590
|
+
d === null ? ye = "null" : Ye(d) ? ye = "array" : d !== void 0 && d.$$typeof === t ? (ye = "<" + (X(d.type) || "Unknown") + " />", G = " Did you accidentally export a JSX literal instead of a component?") : ye = typeof d, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ye, G);
|
591
591
|
}
|
592
|
-
var Se =
|
592
|
+
var Se = kt(d, E, O, te, ce);
|
593
593
|
if (Se == null)
|
594
594
|
return Se;
|
595
595
|
if (Z) {
|
596
|
-
var
|
597
|
-
if (
|
596
|
+
var ze = E.children;
|
597
|
+
if (ze !== void 0)
|
598
598
|
if (N)
|
599
|
-
if (
|
600
|
-
for (var
|
601
|
-
|
602
|
-
Object.freeze && Object.freeze(
|
599
|
+
if (Ye(ze)) {
|
600
|
+
for (var ft = 0; ft < ze.length; ft++)
|
601
|
+
gi(ze[ft], d);
|
602
|
+
Object.freeze && Object.freeze(ze);
|
603
603
|
} else
|
604
604
|
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
605
605
|
else
|
606
|
-
|
606
|
+
gi(ze, d);
|
607
607
|
}
|
608
|
-
return d === n ?
|
608
|
+
return d === n ? So(Se) : Eo(Se), Se;
|
609
609
|
}
|
610
610
|
}
|
611
|
-
function
|
612
|
-
return
|
611
|
+
function Ro(d, E, O) {
|
612
|
+
return hi(d, E, O, !0);
|
613
613
|
}
|
614
|
-
function
|
615
|
-
return
|
614
|
+
function To(d, E, O) {
|
615
|
+
return hi(d, E, O, !1);
|
616
616
|
}
|
617
|
-
var
|
618
|
-
|
619
|
-
}()),
|
617
|
+
var ko = To, Oo = Ro;
|
618
|
+
At.Fragment = n, At.jsx = ko, At.jsxs = Oo;
|
619
|
+
}()), At;
|
620
620
|
}
|
621
|
-
var
|
622
|
-
function
|
623
|
-
return
|
621
|
+
var Ei;
|
622
|
+
function $o() {
|
623
|
+
return Ei || (Ei = 1, process.env.NODE_ENV === "production" ? qt.exports = Lo() : qt.exports = Mo()), qt.exports;
|
624
624
|
}
|
625
|
-
var
|
625
|
+
var Fe = $o(), oe = "colors", De = "sizes", D = "space", No = { gap: D, gridGap: D, columnGap: D, gridColumnGap: D, rowGap: D, gridRowGap: D, inset: D, insetBlock: D, insetBlockEnd: D, insetBlockStart: D, insetInline: D, insetInlineEnd: D, insetInlineStart: D, margin: D, marginTop: D, marginRight: D, marginBottom: D, marginLeft: D, marginBlock: D, marginBlockEnd: D, marginBlockStart: D, marginInline: D, marginInlineEnd: D, marginInlineStart: D, padding: D, paddingTop: D, paddingRight: D, paddingBottom: D, paddingLeft: D, paddingBlock: D, paddingBlockEnd: D, paddingBlockStart: D, paddingInline: D, paddingInlineEnd: D, paddingInlineStart: D, top: D, right: D, bottom: D, left: D, scrollMargin: D, scrollMarginTop: D, scrollMarginRight: D, scrollMarginBottom: D, scrollMarginLeft: D, scrollMarginX: D, scrollMarginY: D, scrollMarginBlock: D, scrollMarginBlockEnd: D, scrollMarginBlockStart: D, scrollMarginInline: D, scrollMarginInlineEnd: D, scrollMarginInlineStart: D, scrollPadding: D, scrollPaddingTop: D, scrollPaddingRight: D, scrollPaddingBottom: D, scrollPaddingLeft: D, scrollPaddingX: D, scrollPaddingY: D, scrollPaddingBlock: D, scrollPaddingBlockEnd: D, scrollPaddingBlockStart: D, scrollPaddingInline: D, scrollPaddingInlineEnd: D, scrollPaddingInlineStart: D, fontSize: "fontSizes", background: oe, backgroundColor: oe, backgroundImage: oe, borderImage: oe, border: oe, borderBlock: oe, borderBlockEnd: oe, borderBlockStart: oe, borderBottom: oe, borderBottomColor: oe, borderColor: oe, borderInline: oe, borderInlineEnd: oe, borderInlineStart: oe, borderLeft: oe, borderLeftColor: oe, borderRight: oe, borderRightColor: oe, borderTop: oe, borderTopColor: oe, caretColor: oe, color: oe, columnRuleColor: oe, fill: oe, outline: oe, outlineColor: oe, stroke: oe, textDecorationColor: oe, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: De, minBlockSize: De, maxBlockSize: De, inlineSize: De, minInlineSize: De, maxInlineSize: De, width: De, minWidth: De, maxWidth: De, height: De, minHeight: De, maxHeight: De, flexBasis: De, gridTemplateColumns: De, gridTemplateRows: De, borderWidth: "borderWidths", borderTopWidth: "borderWidths", borderRightWidth: "borderWidths", borderBottomWidth: "borderWidths", borderLeftWidth: "borderWidths", borderStyle: "borderStyles", borderTopStyle: "borderStyles", borderRightStyle: "borderStyles", borderBottomStyle: "borderStyles", borderLeftStyle: "borderStyles", borderRadius: "radii", borderTopLeftRadius: "radii", borderTopRightRadius: "radii", borderBottomRightRadius: "radii", borderBottomLeftRadius: "radii", boxShadow: "shadows", textShadow: "shadows", transition: "transitions", zIndex: "zIndices" }, qo = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, gt = () => {
|
626
626
|
const e = /* @__PURE__ */ Object.create(null);
|
627
627
|
return (t, i, ...n) => {
|
628
|
-
const r = ((o) => JSON.stringify(o,
|
628
|
+
const r = ((o) => JSON.stringify(o, qo))(t);
|
629
629
|
return r in e ? e[r] : e[r] = i(t, ...n);
|
630
630
|
};
|
631
|
-
},
|
631
|
+
}, it = Symbol.for("sxs.internal"), ri = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), Si = (e) => {
|
632
632
|
for (const t in e) return !0;
|
633
633
|
return !1;
|
634
|
-
}, { hasOwnProperty:
|
634
|
+
}, { hasOwnProperty: Uo } = Object.prototype, Nn = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), Wo = /\s+(?![^()]*\))/, mt = (e) => (t) => e(...typeof t == "string" ? String(t).split(Wo) : [t]), Ri = { appearance: (e) => ({ WebkitAppearance: e, appearance: e }), backfaceVisibility: (e) => ({ WebkitBackfaceVisibility: e, backfaceVisibility: e }), backdropFilter: (e) => ({ WebkitBackdropFilter: e, backdropFilter: e }), backgroundClip: (e) => ({ WebkitBackgroundClip: e, backgroundClip: e }), boxDecorationBreak: (e) => ({ WebkitBoxDecorationBreak: e, boxDecorationBreak: e }), clipPath: (e) => ({ WebkitClipPath: e, clipPath: e }), content: (e) => ({ content: e.includes('"') || e.includes("'") || /^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e) ? e : `"${e}"` }), hyphens: (e) => ({ WebkitHyphens: e, hyphens: e }), maskImage: (e) => ({ WebkitMaskImage: e, maskImage: e }), maskSize: (e) => ({ WebkitMaskSize: e, maskSize: e }), tabSize: (e) => ({ MozTabSize: e, tabSize: e }), textSizeAdjust: (e) => ({ WebkitTextSizeAdjust: e, textSizeAdjust: e }), userSelect: (e) => ({ WebkitUserSelect: e, userSelect: e }), marginBlock: mt((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: mt((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: mt((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: mt((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: mt((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: mt((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, bn = /([\d.]+)([^]*)/, Vo = (e, t) => e.length ? e.reduce((i, n) => (i.push(...t.map((r) => r.includes("&") ? r.replace(/&/g, /[ +>|~]/.test(n) && /&.*&/.test(r) ? `:is(${n})` : n) : n + " " + r)), i), []) : t, Ho = (e, t) => e in Yo && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (i, n, r, o) => n + (r === "stretch" ? `-moz-available${o};${Nn(e)}:${n}-webkit-fill-available` : `-moz-fit-content${o};${Nn(e)}:${n}fit-content`) + o) : String(t), Yo = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, He = (e) => e ? e + "-" : "", Tr = (e, t, i) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (n, r, o, a, s) => a == "$" == !!o ? n : (r || a == "--" ? "calc(" : "") + "var(--" + (a === "$" ? He(t) + (s.includes("$") ? "" : He(i)) + s.replace(/\$/g, "-") : s) + ")" + (r || a == "--" ? "*" + (r || "") + (o || "1") + ")" : "")), Ko = /\s*,\s*(?![^()]*\))/, Jo = Object.prototype.toString, xt = (e, t, i, n, r) => {
|
635
635
|
let o, a, s;
|
636
636
|
const c = (p, l, u) => {
|
637
637
|
let f, m;
|
@@ -639,50 +639,50 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
639
639
|
for (f in g) {
|
640
640
|
const _ = f.charCodeAt(0) === 64, A = _ && Array.isArray(g[f]) ? g[f] : [g[f]];
|
641
641
|
for (m of A) {
|
642
|
-
const T = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), b = typeof m == "object" && m && m.toString ===
|
642
|
+
const T = /[A-Z]/.test(h = f) ? h : h.replace(/-[^]/g, (C) => C[1].toUpperCase()), b = typeof m == "object" && m && m.toString === Jo && (!n.utils[T] || !l.length);
|
643
643
|
if (T in n.utils && !b) {
|
644
644
|
const C = n.utils[T];
|
645
645
|
if (C !== a) {
|
646
646
|
a = C, x(C(m)), a = null;
|
647
647
|
continue;
|
648
648
|
}
|
649
|
-
} else if (T in
|
650
|
-
const C =
|
649
|
+
} else if (T in Ri) {
|
650
|
+
const C = Ri[T];
|
651
651
|
if (C !== s) {
|
652
652
|
s = C, x(C(m)), s = null;
|
653
653
|
continue;
|
654
654
|
}
|
655
655
|
}
|
656
656
|
if (_ && (y = f.slice(1) in n.media ? "@media " + n.media[f.slice(1)] : f, f = y.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g, (C, z, I, q, K, re) => {
|
657
|
-
const ue =
|
658
|
-
return "(" + (I[0] === "=" ? "" : I[0] === ">" === ue ? "max-" : "min-") + U + ":" + (I[0] !== "=" && I.length === 1 ? ae.replace(
|
657
|
+
const ue = bn.test(z), X = 0.0625 * (ue ? -1 : 1), [U, ae] = ue ? [q, z] : [z, q];
|
658
|
+
return "(" + (I[0] === "=" ? "" : I[0] === ">" === ue ? "max-" : "min-") + U + ":" + (I[0] !== "=" && I.length === 1 ? ae.replace(bn, (we, Ee, be) => Number(Ee) + X * (I === ">" ? 1 : -1) + be) : ae) + (K ? ") and (" + (K[0] === ">" ? "min-" : "max-") + U + ":" + (K.length === 1 ? re.replace(bn, (we, Ee, be) => Number(Ee) + X * (K === ">" ? -1 : 1) + be) : re) : "") + ")";
|
659
659
|
})), b) {
|
660
|
-
const C = _ ? u.concat(f) : [...u], z = _ ? [...l] :
|
661
|
-
o !== void 0 && r(
|
662
|
-
} else o === void 0 && (o = [[], l, u]), f = _ || f.charCodeAt(0) !== 36 ? f : `--${
|
660
|
+
const C = _ ? u.concat(f) : [...u], z = _ ? [...l] : Vo(l, f.split(Ko));
|
661
|
+
o !== void 0 && r(Ti(...o)), o = void 0, c(m, z, C);
|
662
|
+
} else o === void 0 && (o = [[], l, u]), f = _ || f.charCodeAt(0) !== 36 ? f : `--${He(n.prefix)}${f.slice(1).replace(/\$/g, "-")}`, m = b ? m : typeof m == "number" ? m && T in Go ? String(m) + "px" : String(m) : Tr(Ho(T, m ?? ""), n.prefix, n.themeMap[T]), o[0].push(`${_ ? `${f} ` : `${Nn(f)}:`}${m}`);
|
663
663
|
}
|
664
664
|
}
|
665
665
|
var y, h;
|
666
666
|
};
|
667
|
-
x(p), o !== void 0 && r(
|
667
|
+
x(p), o !== void 0 && r(Ti(...o)), o = void 0;
|
668
668
|
};
|
669
669
|
c(e, t, i);
|
670
|
-
},
|
670
|
+
}, Ti = (e, t, i) => `${i.map((n) => `${n}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(i.length ? i.length + 1 : 0).join("}")}`, Go = { animationDelay: 1, animationDuration: 1, backgroundSize: 1, blockSize: 1, border: 1, borderBlock: 1, borderBlockEnd: 1, borderBlockEndWidth: 1, borderBlockStart: 1, borderBlockStartWidth: 1, borderBlockWidth: 1, borderBottom: 1, borderBottomLeftRadius: 1, borderBottomRightRadius: 1, borderBottomWidth: 1, borderEndEndRadius: 1, borderEndStartRadius: 1, borderInlineEnd: 1, borderInlineEndWidth: 1, borderInlineStart: 1, borderInlineStartWidth: 1, borderInlineWidth: 1, borderLeft: 1, borderLeftWidth: 1, borderRadius: 1, borderRight: 1, borderRightWidth: 1, borderSpacing: 1, borderStartEndRadius: 1, borderStartStartRadius: 1, borderTop: 1, borderTopLeftRadius: 1, borderTopRightRadius: 1, borderTopWidth: 1, borderWidth: 1, bottom: 1, columnGap: 1, columnRule: 1, columnRuleWidth: 1, columnWidth: 1, containIntrinsicSize: 1, flexBasis: 1, fontSize: 1, gap: 1, gridAutoColumns: 1, gridAutoRows: 1, gridTemplateColumns: 1, gridTemplateRows: 1, height: 1, inlineSize: 1, inset: 1, insetBlock: 1, insetBlockEnd: 1, insetBlockStart: 1, insetInline: 1, insetInlineEnd: 1, insetInlineStart: 1, left: 1, letterSpacing: 1, margin: 1, marginBlock: 1, marginBlockEnd: 1, marginBlockStart: 1, marginBottom: 1, marginInline: 1, marginInlineEnd: 1, marginInlineStart: 1, marginLeft: 1, marginRight: 1, marginTop: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, offsetDistance: 1, offsetRotate: 1, outline: 1, outlineOffset: 1, outlineWidth: 1, overflowClipMargin: 1, padding: 1, paddingBlock: 1, paddingBlockEnd: 1, paddingBlockStart: 1, paddingBottom: 1, paddingInline: 1, paddingInlineEnd: 1, paddingInlineStart: 1, paddingLeft: 1, paddingRight: 1, paddingTop: 1, perspective: 1, right: 1, rowGap: 1, scrollMargin: 1, scrollMarginBlock: 1, scrollMarginBlockEnd: 1, scrollMarginBlockStart: 1, scrollMarginBottom: 1, scrollMarginInline: 1, scrollMarginInlineEnd: 1, scrollMarginInlineStart: 1, scrollMarginLeft: 1, scrollMarginRight: 1, scrollMarginTop: 1, scrollPadding: 1, scrollPaddingBlock: 1, scrollPaddingBlockEnd: 1, scrollPaddingBlockStart: 1, scrollPaddingBottom: 1, scrollPaddingInline: 1, scrollPaddingInlineEnd: 1, scrollPaddingInlineStart: 1, scrollPaddingLeft: 1, scrollPaddingRight: 1, scrollPaddingTop: 1, shapeMargin: 1, textDecoration: 1, textDecorationThickness: 1, textIndent: 1, textUnderlineOffset: 1, top: 1, transitionDelay: 1, transitionDuration: 1, verticalAlign: 1, width: 1, wordSpacing: 1 }, ki = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), rt = (e) => ((t) => {
|
671
671
|
let i, n = "";
|
672
|
-
for (i = Math.abs(t); i > 52; i = i / 52 | 0) n =
|
673
|
-
return
|
672
|
+
for (i = Math.abs(t); i > 52; i = i / 52 | 0) n = ki(i % 52) + n;
|
673
|
+
return ki(i % 52) + n;
|
674
674
|
})(((t, i) => {
|
675
675
|
let n = i.length;
|
676
676
|
for (; n; ) t = 33 * t ^ i.charCodeAt(--n);
|
677
677
|
return t;
|
678
|
-
})(5381, JSON.stringify(e)) >>> 0),
|
678
|
+
})(5381, JSON.stringify(e)) >>> 0), Pt = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], Xo = (e) => {
|
679
679
|
if (e.href && !e.href.startsWith(location.origin)) return !1;
|
680
680
|
try {
|
681
681
|
return !!e.cssRules;
|
682
682
|
} catch {
|
683
683
|
return !1;
|
684
684
|
}
|
685
|
-
},
|
685
|
+
}, Zo = (e) => {
|
686
686
|
let t;
|
687
687
|
const i = () => {
|
688
688
|
const { cssRules: r } = t.sheet;
|
@@ -707,7 +707,7 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
707
707
|
for (const p in s) delete s[p];
|
708
708
|
}
|
709
709
|
const r = Object(e).styleSheets || [];
|
710
|
-
for (const s of r) if (
|
710
|
+
for (const s of r) if (Xo(s)) {
|
711
711
|
for (let c = 0, p = s.cssRules; p[c]; ++c) {
|
712
712
|
const l = Object(p[c]);
|
713
713
|
if (l.type !== 1) continue;
|
@@ -716,7 +716,7 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
716
716
|
++c;
|
717
717
|
const { cssText: f } = l;
|
718
718
|
if (!f.startsWith("--sxs")) continue;
|
719
|
-
const m = f.slice(14, -3).trim().split(/\s+/), x =
|
719
|
+
const m = f.slice(14, -3).trim().split(/\s+/), x = Pt[m[0]];
|
720
720
|
x && (t || (t = { sheet: s, reset: n, rules: {}, toString: i }), t.rules[x] = { group: u, index: c, cache: new Set(m) });
|
721
721
|
}
|
722
722
|
if (t) break;
|
@@ -730,17 +730,17 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
730
730
|
t = { sheet: e ? (e.head || e).appendChild(document.createElement("style")).sheet : s("", "text/css"), rules: {}, reset: n, toString: i };
|
731
731
|
}
|
732
732
|
const { sheet: o, rules: a } = t;
|
733
|
-
for (let s =
|
734
|
-
const c =
|
733
|
+
for (let s = Pt.length - 1; s >= 0; --s) {
|
734
|
+
const c = Pt[s];
|
735
735
|
if (!a[c]) {
|
736
|
-
const p =
|
736
|
+
const p = Pt[s + 1], l = a[p] ? a[p].index : o.cssRules.length;
|
737
737
|
o.insertRule("@media{}", l), o.insertRule(`--sxs{--sxs:${s}}`, l), a[c] = { group: o.cssRules[l + 1], index: l, cache: /* @__PURE__ */ new Set([s]) };
|
738
738
|
}
|
739
|
-
|
739
|
+
Qo(a[c]);
|
740
740
|
}
|
741
741
|
};
|
742
742
|
return n(), t;
|
743
|
-
},
|
743
|
+
}, Qo = (e) => {
|
744
744
|
const t = e.group;
|
745
745
|
let i = t.cssRules.length;
|
746
746
|
e.apply = (n) => {
|
@@ -749,23 +749,23 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
749
749
|
} catch {
|
750
750
|
}
|
751
751
|
};
|
752
|
-
},
|
752
|
+
}, Ct = Symbol(), ea = gt(), Oi = (e, t) => ea(e, () => (...i) => {
|
753
753
|
let n = { type: null, composers: /* @__PURE__ */ new Set() };
|
754
|
-
for (const r of i) if (r != null) if (r[
|
755
|
-
n.type == null && (n.type = r[
|
756
|
-
for (const o of r[
|
757
|
-
} else r.constructor !== Object || r.$$typeof ? n.type == null && (n.type = r) : n.composers.add(
|
758
|
-
return n.type == null && (n.type = "span"), n.composers.size || n.composers.add(["PJLV", {}, [], [], {}, []]),
|
759
|
-
}),
|
760
|
-
const o = `${
|
754
|
+
for (const r of i) if (r != null) if (r[it]) {
|
755
|
+
n.type == null && (n.type = r[it].type);
|
756
|
+
for (const o of r[it].composers) n.composers.add(o);
|
757
|
+
} else r.constructor !== Object || r.$$typeof ? n.type == null && (n.type = r) : n.composers.add(ta(r, e));
|
758
|
+
return n.type == null && (n.type = "span"), n.composers.size || n.composers.add(["PJLV", {}, [], [], {}, []]), na(e, n, t);
|
759
|
+
}), ta = ({ variants: e, compoundVariants: t, defaultVariants: i, ...n }, r) => {
|
760
|
+
const o = `${He(r.prefix)}c-${rt(n)}`, a = [], s = [], c = /* @__PURE__ */ Object.create(null), p = [];
|
761
761
|
for (const f in i) c[f] = String(i[f]);
|
762
762
|
if (typeof e == "object" && e) for (const f in e) {
|
763
|
-
l = c, u = f,
|
763
|
+
l = c, u = f, Uo.call(l, u) || (c[f] = "undefined");
|
764
764
|
const m = e[f];
|
765
765
|
for (const x in m) {
|
766
766
|
const g = { [f]: String(x) };
|
767
767
|
String(x) === "undefined" && p.push(f);
|
768
|
-
const y = m[x], h = [g, y, !
|
768
|
+
const y = m[x], h = [g, y, !Si(y)];
|
769
769
|
a.push(h);
|
770
770
|
}
|
771
771
|
}
|
@@ -774,22 +774,22 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
774
774
|
let { css: m, ...x } = f;
|
775
775
|
m = typeof m == "object" && m || {};
|
776
776
|
for (const y in x) x[y] = String(x[y]);
|
777
|
-
const g = [x, m, !
|
777
|
+
const g = [x, m, !Si(m)];
|
778
778
|
s.push(g);
|
779
779
|
}
|
780
780
|
return [o, n, a, s, c, p];
|
781
|
-
},
|
782
|
-
const [n, r, o, a] =
|
781
|
+
}, na = (e, t, i) => {
|
782
|
+
const [n, r, o, a] = ia(t.composers), s = typeof t.type == "function" || t.type.$$typeof ? ((u) => {
|
783
783
|
function f() {
|
784
|
-
for (let m = 0; m < f[
|
785
|
-
const [x, g] = f[
|
784
|
+
for (let m = 0; m < f[Ct].length; m++) {
|
785
|
+
const [x, g] = f[Ct][m];
|
786
786
|
u.rules[x].apply(g);
|
787
787
|
}
|
788
|
-
return f[
|
788
|
+
return f[Ct] = [], null;
|
789
789
|
}
|
790
|
-
return f[
|
790
|
+
return f[Ct] = [], f.rules = {}, Pt.forEach((m) => f.rules[m] = { apply: (x) => f[Ct].push([m, x]) }), f;
|
791
791
|
})(i) : null, c = (s || i).rules, p = `.${n}${r.length > 1 ? `:where(.${r.slice(1).join(".")})` : ""}`, l = (u) => {
|
792
|
-
u = typeof u == "object" && u ||
|
792
|
+
u = typeof u == "object" && u || ra;
|
793
793
|
const { css: f, ...m } = u, x = {};
|
794
794
|
for (const h in o) if (delete m[h], h in u) {
|
795
795
|
let _ = u[h];
|
@@ -797,28 +797,28 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
797
797
|
} else x[h] = o[h];
|
798
798
|
const g = /* @__PURE__ */ new Set([...r]);
|
799
799
|
for (const [h, _, A, T] of t.composers) {
|
800
|
-
i.rules.styled.cache.has(h) || (i.rules.styled.cache.add(h),
|
800
|
+
i.rules.styled.cache.has(h) || (i.rules.styled.cache.add(h), xt(_, [`.${h}`], [], e, (z) => {
|
801
801
|
c.styled.apply(z);
|
802
802
|
}));
|
803
|
-
const b =
|
803
|
+
const b = _i(A, x, e.media), C = _i(T, x, e.media, !0);
|
804
804
|
for (const z of b) if (z !== void 0) for (const [I, q, K] of z) {
|
805
|
-
const re = `${h}-${
|
805
|
+
const re = `${h}-${rt(q)}-${I}`;
|
806
806
|
g.add(re);
|
807
807
|
const ue = (K ? i.rules.resonevar : i.rules.onevar).cache, X = K ? c.resonevar : c.onevar;
|
808
|
-
ue.has(re) || (ue.add(re),
|
808
|
+
ue.has(re) || (ue.add(re), xt(q, [`.${re}`], [], e, (U) => {
|
809
809
|
X.apply(U);
|
810
810
|
}));
|
811
811
|
}
|
812
812
|
for (const z of C) if (z !== void 0) for (const [I, q] of z) {
|
813
|
-
const K = `${h}-${
|
814
|
-
g.add(K), i.rules.allvar.cache.has(K) || (i.rules.allvar.cache.add(K),
|
813
|
+
const K = `${h}-${rt(q)}-${I}`;
|
814
|
+
g.add(K), i.rules.allvar.cache.has(K) || (i.rules.allvar.cache.add(K), xt(q, [`.${K}`], [], e, (re) => {
|
815
815
|
c.allvar.apply(re);
|
816
816
|
}));
|
817
817
|
}
|
818
818
|
}
|
819
819
|
if (typeof f == "object" && f) {
|
820
|
-
const h = `${n}-i${
|
821
|
-
g.add(h), i.rules.inline.cache.has(h) || (i.rules.inline.cache.add(h),
|
820
|
+
const h = `${n}-i${rt(f)}-css`;
|
821
|
+
g.add(h), i.rules.inline.cache.has(h) || (i.rules.inline.cache.add(h), xt(f, [`.${h}`], [], e, (_) => {
|
822
822
|
c.inline.apply(_);
|
823
823
|
}));
|
824
824
|
}
|
@@ -826,8 +826,8 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
826
826
|
const y = m.className = [...g].join(" ");
|
827
827
|
return { type: t.type, className: y, selector: p, props: m, toString: () => y, deferredInjector: s };
|
828
828
|
};
|
829
|
-
return
|
830
|
-
},
|
829
|
+
return ri(l, { className: n, selector: p, [it]: t, toString: () => (i.rules.styled.cache.has(n) || l(), n) });
|
830
|
+
}, ia = (e) => {
|
831
831
|
let t = "";
|
832
832
|
const i = [], n = {}, r = [];
|
833
833
|
for (const [o, , , , a, s] of e) {
|
@@ -838,7 +838,7 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
838
838
|
}
|
839
839
|
}
|
840
840
|
return [t, i, n, new Set(r)];
|
841
|
-
},
|
841
|
+
}, _i = (e, t, i, n) => {
|
842
842
|
const r = [];
|
843
843
|
e: for (let [o, a, s] of e) {
|
844
844
|
if (s) continue;
|
@@ -867,40 +867,40 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
867
867
|
(r[p] = r[p] || []).push([n ? "cv" : `${c}-${o[c]}`, a, l]);
|
868
868
|
}
|
869
869
|
return r;
|
870
|
-
},
|
870
|
+
}, ra = {}, oa = gt(), aa = (e, t) => oa(e, () => (...i) => {
|
871
871
|
const n = () => {
|
872
872
|
for (let r of i) {
|
873
873
|
r = typeof r == "object" && r || {};
|
874
|
-
let o =
|
874
|
+
let o = rt(r);
|
875
875
|
if (!t.rules.global.cache.has(o)) {
|
876
876
|
if (t.rules.global.cache.add(o), "@import" in r) {
|
877
877
|
let a = [].indexOf.call(t.sheet.cssRules, t.rules.themed.group) - 1;
|
878
878
|
for (let s of [].concat(r["@import"])) s = s.includes('"') || s.includes("'") ? s : `"${s}"`, t.sheet.insertRule(`@import ${s};`, a++);
|
879
879
|
delete r["@import"];
|
880
880
|
}
|
881
|
-
|
881
|
+
xt(r, [], [], e, (a) => {
|
882
882
|
t.rules.global.apply(a);
|
883
883
|
});
|
884
884
|
}
|
885
885
|
}
|
886
886
|
return "";
|
887
887
|
};
|
888
|
-
return
|
889
|
-
}),
|
890
|
-
const n = `${
|
888
|
+
return ri(n, { toString: n });
|
889
|
+
}), sa = gt(), ca = (e, t) => sa(e, () => (i) => {
|
890
|
+
const n = `${He(e.prefix)}k-${rt(i)}`, r = () => {
|
891
891
|
if (!t.rules.global.cache.has(n)) {
|
892
892
|
t.rules.global.cache.add(n);
|
893
893
|
const o = [];
|
894
|
-
|
894
|
+
xt(i, [], [], e, (s) => o.push(s));
|
895
895
|
const a = `@keyframes ${n}{${o.join("")}}`;
|
896
896
|
t.rules.global.apply(a);
|
897
897
|
}
|
898
898
|
return n;
|
899
899
|
};
|
900
|
-
return
|
900
|
+
return ri(r, { get name() {
|
901
901
|
return r();
|
902
902
|
}, toString: r });
|
903
|
-
}),
|
903
|
+
}), la = class {
|
904
904
|
constructor(e, t, i, n) {
|
905
905
|
this.token = e == null ? "" : String(e), this.value = t == null ? "" : String(t), this.scale = i == null ? "" : String(i), this.prefix = n == null ? "" : String(n);
|
906
906
|
}
|
@@ -908,19 +908,19 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
908
908
|
return "var(" + this.variable + ")";
|
909
909
|
}
|
910
910
|
get variable() {
|
911
|
-
return "--" +
|
911
|
+
return "--" + He(this.prefix) + He(this.scale) + this.token;
|
912
912
|
}
|
913
913
|
toString() {
|
914
914
|
return this.computedValue;
|
915
915
|
}
|
916
|
-
},
|
916
|
+
}, pa = gt(), da = (e, t) => pa(e, () => (i, n) => {
|
917
917
|
n = typeof i == "object" && i || Object(n);
|
918
|
-
const r = `.${i = (i = typeof i == "string" ? i : "") || `${
|
918
|
+
const r = `.${i = (i = typeof i == "string" ? i : "") || `${He(e.prefix)}t-${rt(n)}`}`, o = {}, a = [];
|
919
919
|
for (const c in n) {
|
920
920
|
o[c] = {};
|
921
921
|
for (const p in n[c]) {
|
922
|
-
const l = `--${
|
923
|
-
o[c][p] = new
|
922
|
+
const l = `--${He(e.prefix)}${c}-${p}`, u = Tr(String(n[c][p]), e.prefix, c);
|
923
|
+
o[c][p] = new la(p, u, c, e.prefix), a.push(`${l}:${u}`);
|
924
924
|
}
|
925
925
|
}
|
926
926
|
const s = () => {
|
@@ -934,42 +934,42 @@ var jt = Lo(), oe = "colors", De = "sizes", D = "space", Mo = { gap: D, gridGap:
|
|
934
934
|
return { ...o, get className() {
|
935
935
|
return s();
|
936
936
|
}, selector: r, toString: s };
|
937
|
-
}),
|
937
|
+
}), ua = gt(), Ai, fa = gt(), ma = (e) => {
|
938
938
|
const t = ((i) => {
|
939
939
|
let n = !1;
|
940
|
-
const r =
|
940
|
+
const r = ua(i, (o) => {
|
941
941
|
n = !0;
|
942
|
-
const a = "prefix" in (o = typeof o == "object" && o || {}) ? String(o.prefix) : "", s = typeof o.media == "object" && o.media || {}, c = typeof o.root == "object" ? o.root || null : globalThis.document || null, p = typeof o.theme == "object" && o.theme || {}, l = { prefix: a, media: s, theme: p, themeMap: typeof o.themeMap == "object" && o.themeMap || { ...
|
942
|
+
const a = "prefix" in (o = typeof o == "object" && o || {}) ? String(o.prefix) : "", s = typeof o.media == "object" && o.media || {}, c = typeof o.root == "object" ? o.root || null : globalThis.document || null, p = typeof o.theme == "object" && o.theme || {}, l = { prefix: a, media: s, theme: p, themeMap: typeof o.themeMap == "object" && o.themeMap || { ...No }, utils: typeof o.utils == "object" && o.utils || {} }, u = Zo(c), f = { css: Oi(l, u), globalCss: aa(l, u), keyframes: ca(l, u), createTheme: da(l, u), reset() {
|
943
943
|
u.reset(), f.theme.toString();
|
944
944
|
}, theme: {}, sheet: u, config: l, prefix: a, getCssText: u.toString, toString: u.toString };
|
945
945
|
return String(f.theme = f.createTheme(p)), f;
|
946
946
|
});
|
947
947
|
return n || r.reset(), r;
|
948
948
|
})(e);
|
949
|
-
return t.styled = (({ config: i, sheet: n }) =>
|
950
|
-
const r =
|
949
|
+
return t.styled = (({ config: i, sheet: n }) => fa(i, () => {
|
950
|
+
const r = Oi(i, n);
|
951
951
|
return (...o) => {
|
952
|
-
const a = r(...o), s = a[
|
952
|
+
const a = r(...o), s = a[it].type, c = me.forwardRef((p, l) => {
|
953
953
|
const u = p && p.as || s, { props: f, deferredInjector: m } = a(p);
|
954
954
|
return delete f.as, f.ref = l, m ? me.createElement(me.Fragment, null, me.createElement(u, f), me.createElement(m, null)) : me.createElement(u, f);
|
955
955
|
});
|
956
|
-
return c.className = a.className, c.displayName = `Styled.${s.displayName || s.name || s}`, c.selector = a.selector, c.toString = () => a.selector, c[
|
956
|
+
return c.className = a.className, c.displayName = `Styled.${s.displayName || s.name || s}`, c.selector = a.selector, c.toString = () => a.selector, c[it] = a[it], c;
|
957
957
|
};
|
958
958
|
}))(t), t;
|
959
|
-
},
|
960
|
-
const
|
961
|
-
var
|
962
|
-
function
|
963
|
-
if (
|
964
|
-
|
959
|
+
}, xa = () => Ai || (Ai = ma()), st = (...e) => xa().styled(...e);
|
960
|
+
const ht = st("div", {});
|
961
|
+
var Dt = {}, Ut = {}, Ze = {}, Ci;
|
962
|
+
function kr() {
|
963
|
+
if (Ci) return Ze;
|
964
|
+
Ci = 1, Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.fromHex = Ze.toHex = void 0;
|
965
965
|
const e = (n) => new Number(n).toString(16).toLowerCase(), t = (n) => `0x${e(n).length === 1 ? "0" + e(n) : e(n)}`;
|
966
|
-
|
966
|
+
Ze.toHex = t;
|
967
967
|
const i = (n) => new Number(n);
|
968
|
-
return
|
968
|
+
return Ze.fromHex = i, Ze;
|
969
969
|
}
|
970
|
-
var
|
971
|
-
function
|
972
|
-
return
|
970
|
+
var yn = {}, Di;
|
971
|
+
function va() {
|
972
|
+
return Di || (Di = 1, function(e) {
|
973
973
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createComplexNode = e.createNode = e.merge = void 0;
|
974
974
|
const t = (c) => ({
|
975
975
|
typename: c.typename,
|
@@ -1014,13 +1014,13 @@ function xa() {
|
|
1014
1014
|
} : (u.bytes[f] = e.createComplexNode(c, m, l), u);
|
1015
1015
|
};
|
1016
1016
|
e.createComplexNode = s;
|
1017
|
-
}(
|
1017
|
+
}(yn)), yn;
|
1018
1018
|
}
|
1019
|
-
var
|
1020
|
-
function
|
1021
|
-
if (
|
1022
|
-
|
1023
|
-
const e =
|
1019
|
+
var ji;
|
1020
|
+
function ga() {
|
1021
|
+
if (ji) return Ut;
|
1022
|
+
ji = 1, Object.defineProperty(Ut, "__esModule", { value: !0 });
|
1023
|
+
const e = kr(), t = va();
|
1024
1024
|
let i = {
|
1025
1025
|
noOffset: null,
|
1026
1026
|
offset: {}
|
@@ -1949,16 +1949,16 @@ function va() {
|
|
1949
1949
|
}), n("SVG", ["0x3c", "0x73", "0x76", "0x67"], {
|
1950
1950
|
mime: "image/svg+xml",
|
1951
1951
|
extension: "svg"
|
1952
|
-
}),
|
1952
|
+
}), Ut.default = () => i, Ut;
|
1953
1953
|
}
|
1954
|
-
var
|
1955
|
-
function
|
1956
|
-
return
|
1957
|
-
var t =
|
1954
|
+
var Fi;
|
1955
|
+
function ha() {
|
1956
|
+
return Fi || (Fi = 1, function(e) {
|
1957
|
+
var t = Dt && Dt.__importDefault || function(l) {
|
1958
1958
|
return l && l.__esModule ? l : { default: l };
|
1959
1959
|
};
|
1960
1960
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.filetypeextension = e.filetypemime = e.filetypename = e.filetypeinfo = void 0;
|
1961
|
-
const i = t(
|
1961
|
+
const i = t(ga()), n = kr(), r = i.default(), o = (l) => {
|
1962
1962
|
let u = r;
|
1963
1963
|
for (const f of Object.keys(u.offset)) {
|
1964
1964
|
const m = n.fromHex(f);
|
@@ -1987,9 +1987,9 @@ function ga() {
|
|
1987
1987
|
e.filetypemime = c;
|
1988
1988
|
const p = (l) => e.filetypeinfo(l).map((u) => u.extension ? u.extension : null).filter((u) => u !== null);
|
1989
1989
|
e.filetypeextension = p;
|
1990
|
-
}(
|
1990
|
+
}(Dt)), Dt;
|
1991
1991
|
}
|
1992
|
-
var
|
1992
|
+
var ba = ha(), Wt = { exports: {} }, Vt = { exports: {} }, ne = {};
|
1993
1993
|
/** @license React v16.13.1
|
1994
1994
|
* react-is.production.min.js
|
1995
1995
|
*
|
@@ -1998,10 +1998,10 @@ var ha = ga(), qt = { exports: {} }, Ut = { exports: {} }, ne = {};
|
|
1998
1998
|
* This source code is licensed under the MIT license found in the
|
1999
1999
|
* LICENSE file in the root directory of this source tree.
|
2000
2000
|
*/
|
2001
|
-
var
|
2002
|
-
function
|
2003
|
-
if (
|
2004
|
-
|
2001
|
+
var Pi;
|
2002
|
+
function ya() {
|
2003
|
+
if (Pi) return ne;
|
2004
|
+
Pi = 1;
|
2005
2005
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
2006
2006
|
function A(b) {
|
2007
2007
|
if (typeof b == "object" && b !== null) {
|
@@ -2073,9 +2073,9 @@ var ie = {};
|
|
2073
2073
|
* This source code is licensed under the MIT license found in the
|
2074
2074
|
* LICENSE file in the root directory of this source tree.
|
2075
2075
|
*/
|
2076
|
-
var
|
2077
|
-
function
|
2078
|
-
return
|
2076
|
+
var Ii;
|
2077
|
+
function wa() {
|
2078
|
+
return Ii || (Ii = 1, process.env.NODE_ENV !== "production" && function() {
|
2079
2079
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, x = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, _ = e ? Symbol.for("react.scope") : 60119;
|
2080
2080
|
function A(w) {
|
2081
2081
|
return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
@@ -2156,19 +2156,19 @@ function ya() {
|
|
2156
2156
|
ie.AsyncMode = b, ie.ConcurrentMode = C, ie.ContextConsumer = z, ie.ContextProvider = I, ie.Element = q, ie.ForwardRef = K, ie.Fragment = re, ie.Lazy = ue, ie.Memo = X, ie.Portal = U, ie.Profiler = ae, ie.StrictMode = we, ie.Suspense = Ee, ie.isAsyncMode = ge, ie.isConcurrentMode = S, ie.isContextConsumer = k, ie.isContextProvider = B, ie.isElement = M, ie.isForwardRef = F, ie.isFragment = W, ie.isLazy = P, ie.isMemo = $, ie.isPortal = V, ie.isProfiler = J, ie.isStrictMode = L, ie.isSuspense = xe, ie.isValidElementType = A, ie.typeOf = T;
|
2157
2157
|
}()), ie;
|
2158
2158
|
}
|
2159
|
-
var
|
2160
|
-
function
|
2161
|
-
return
|
2159
|
+
var Bi;
|
2160
|
+
function Or() {
|
2161
|
+
return Bi || (Bi = 1, process.env.NODE_ENV === "production" ? Vt.exports = ya() : Vt.exports = wa()), Vt.exports;
|
2162
2162
|
}
|
2163
2163
|
/*
|
2164
2164
|
object-assign
|
2165
2165
|
(c) Sindre Sorhus
|
2166
2166
|
@license MIT
|
2167
2167
|
*/
|
2168
|
-
var
|
2169
|
-
function
|
2170
|
-
if (
|
2171
|
-
|
2168
|
+
var wn, zi;
|
2169
|
+
function Ea() {
|
2170
|
+
if (zi) return wn;
|
2171
|
+
zi = 1;
|
2172
2172
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
2173
2173
|
function n(o) {
|
2174
2174
|
if (o == null)
|
@@ -2197,7 +2197,7 @@ function wa() {
|
|
2197
2197
|
return !1;
|
2198
2198
|
}
|
2199
2199
|
}
|
2200
|
-
return
|
2200
|
+
return wn = r() ? Object.assign : function(o, a) {
|
2201
2201
|
for (var s, c = n(o), p, l = 1; l < arguments.length; l++) {
|
2202
2202
|
s = Object(arguments[l]);
|
2203
2203
|
for (var u in s)
|
@@ -2209,27 +2209,27 @@ function wa() {
|
|
2209
2209
|
}
|
2210
2210
|
}
|
2211
2211
|
return c;
|
2212
|
-
},
|
2212
|
+
}, wn;
|
2213
2213
|
}
|
2214
|
-
var
|
2215
|
-
function
|
2216
|
-
if (
|
2217
|
-
|
2214
|
+
var En, Li;
|
2215
|
+
function oi() {
|
2216
|
+
if (Li) return En;
|
2217
|
+
Li = 1;
|
2218
2218
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
2219
|
-
return
|
2219
|
+
return En = e, En;
|
2220
2220
|
}
|
2221
|
-
var
|
2222
|
-
function
|
2223
|
-
return
|
2221
|
+
var Sn, Mi;
|
2222
|
+
function _r() {
|
2223
|
+
return Mi || (Mi = 1, Sn = Function.call.bind(Object.prototype.hasOwnProperty)), Sn;
|
2224
2224
|
}
|
2225
|
-
var
|
2226
|
-
function
|
2227
|
-
if (
|
2228
|
-
|
2225
|
+
var Rn, $i;
|
2226
|
+
function Sa() {
|
2227
|
+
if ($i) return Rn;
|
2228
|
+
$i = 1;
|
2229
2229
|
var e = function() {
|
2230
2230
|
};
|
2231
2231
|
if (process.env.NODE_ENV !== "production") {
|
2232
|
-
var t = /* @__PURE__ */
|
2232
|
+
var t = /* @__PURE__ */ oi(), i = {}, n = /* @__PURE__ */ _r();
|
2233
2233
|
e = function(o) {
|
2234
2234
|
var a = "Warning: " + o;
|
2235
2235
|
typeof console < "u" && console.error(a);
|
@@ -2269,13 +2269,13 @@ function Ea() {
|
|
2269
2269
|
}
|
2270
2270
|
return r.resetWarningCache = function() {
|
2271
2271
|
process.env.NODE_ENV !== "production" && (i = {});
|
2272
|
-
},
|
2272
|
+
}, Rn = r, Rn;
|
2273
2273
|
}
|
2274
|
-
var
|
2275
|
-
function
|
2276
|
-
if (
|
2277
|
-
|
2278
|
-
var e =
|
2274
|
+
var Tn, Ni;
|
2275
|
+
function Ra() {
|
2276
|
+
if (Ni) return Tn;
|
2277
|
+
Ni = 1;
|
2278
|
+
var e = Or(), t = Ea(), i = /* @__PURE__ */ oi(), n = /* @__PURE__ */ _r(), r = /* @__PURE__ */ Sa(), o = function() {
|
2279
2279
|
};
|
2280
2280
|
process.env.NODE_ENV !== "production" && (o = function(s) {
|
2281
2281
|
var c = "Warning: " + s;
|
@@ -2288,7 +2288,7 @@ function Sa() {
|
|
2288
2288
|
function a() {
|
2289
2289
|
return null;
|
2290
2290
|
}
|
2291
|
-
return
|
2291
|
+
return Tn = function(s, c) {
|
2292
2292
|
var p = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
2293
2293
|
function u(S) {
|
2294
2294
|
var k = S && (p && S[p] || S[l]);
|
@@ -2590,18 +2590,18 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2590
2590
|
return !S.constructor || !S.constructor.name ? f : S.constructor.name;
|
2591
2591
|
}
|
2592
2592
|
return m.checkPropTypes = r, m.resetWarningCache = r.resetWarningCache, m.PropTypes = m, m;
|
2593
|
-
},
|
2593
|
+
}, Tn;
|
2594
2594
|
}
|
2595
|
-
var
|
2596
|
-
function
|
2597
|
-
if (
|
2598
|
-
|
2599
|
-
var e = /* @__PURE__ */
|
2595
|
+
var kn, qi;
|
2596
|
+
function Ta() {
|
2597
|
+
if (qi) return kn;
|
2598
|
+
qi = 1;
|
2599
|
+
var e = /* @__PURE__ */ oi();
|
2600
2600
|
function t() {
|
2601
2601
|
}
|
2602
2602
|
function i() {
|
2603
2603
|
}
|
2604
|
-
return i.resetWarningCache = t,
|
2604
|
+
return i.resetWarningCache = t, kn = function() {
|
2605
2605
|
function n(a, s, c, p, l, u) {
|
2606
2606
|
if (u !== e) {
|
2607
2607
|
var f = new Error(
|
@@ -2638,21 +2638,21 @@ function Ra() {
|
|
2638
2638
|
resetWarningCache: t
|
2639
2639
|
};
|
2640
2640
|
return o.PropTypes = o, o;
|
2641
|
-
},
|
2642
|
-
}
|
2643
|
-
var
|
2644
|
-
function
|
2645
|
-
if (
|
2646
|
-
if (
|
2647
|
-
var e =
|
2648
|
-
|
2641
|
+
}, kn;
|
2642
|
+
}
|
2643
|
+
var Ui;
|
2644
|
+
function ka() {
|
2645
|
+
if (Ui) return Wt.exports;
|
2646
|
+
if (Ui = 1, process.env.NODE_ENV !== "production") {
|
2647
|
+
var e = Or(), t = !0;
|
2648
|
+
Wt.exports = /* @__PURE__ */ Ra()(e.isElement, t);
|
2649
2649
|
} else
|
2650
|
-
|
2651
|
-
return
|
2650
|
+
Wt.exports = /* @__PURE__ */ Ta()();
|
2651
|
+
return Wt.exports;
|
2652
2652
|
}
|
2653
|
-
var
|
2654
|
-
const le = /* @__PURE__ */
|
2655
|
-
function
|
2653
|
+
var Oa = /* @__PURE__ */ ka();
|
2654
|
+
const le = /* @__PURE__ */ Rr(Oa);
|
2655
|
+
function ct(e, t, i, n) {
|
2656
2656
|
function r(o) {
|
2657
2657
|
return o instanceof i ? o : new i(function(a) {
|
2658
2658
|
a(o);
|
@@ -2679,7 +2679,7 @@ function at(e, t, i, n) {
|
|
2679
2679
|
p((n = n.apply(e, t || [])).next());
|
2680
2680
|
});
|
2681
2681
|
}
|
2682
|
-
const
|
2682
|
+
const _a = /* @__PURE__ */ new Map([
|
2683
2683
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
2684
2684
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
2685
2685
|
["3dml", "text/vnd.in3d.3dml"],
|
@@ -3882,14 +3882,14 @@ const Oa = /* @__PURE__ */ new Map([
|
|
3882
3882
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
3883
3883
|
["zsh", "text/x-scriptzsh"]
|
3884
3884
|
]);
|
3885
|
-
function
|
3886
|
-
const n =
|
3887
|
-
return typeof n.path != "string" &&
|
3885
|
+
function vt(e, t, i) {
|
3886
|
+
const n = Aa(e), { webkitRelativePath: r } = e, o = typeof t == "string" ? t : typeof r == "string" && r.length > 0 ? r : `./${e.name}`;
|
3887
|
+
return typeof n.path != "string" && Wi(n, "path", o), Wi(n, "relativePath", o), n;
|
3888
3888
|
}
|
3889
|
-
function
|
3889
|
+
function Aa(e) {
|
3890
3890
|
const { name: t } = e;
|
3891
3891
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
3892
|
-
const n = t.split(".").pop().toLowerCase(), r =
|
3892
|
+
const n = t.split(".").pop().toLowerCase(), r = _a.get(n);
|
3893
3893
|
r && Object.defineProperty(e, "type", {
|
3894
3894
|
value: r,
|
3895
3895
|
writable: !1,
|
@@ -3899,7 +3899,7 @@ function _a(e) {
|
|
3899
3899
|
}
|
3900
3900
|
return e;
|
3901
3901
|
}
|
3902
|
-
function
|
3902
|
+
function Wi(e, t, i) {
|
3903
3903
|
Object.defineProperty(e, t, {
|
3904
3904
|
value: i,
|
3905
3905
|
writable: !1,
|
@@ -3907,51 +3907,51 @@ function Ni(e, t, i) {
|
|
3907
3907
|
enumerable: !0
|
3908
3908
|
});
|
3909
3909
|
}
|
3910
|
-
const
|
3910
|
+
const Ca = [
|
3911
3911
|
// Thumbnail cache files for macOS and Windows
|
3912
3912
|
".DS_Store",
|
3913
3913
|
// macOs
|
3914
3914
|
"Thumbs.db"
|
3915
3915
|
// Windows
|
3916
3916
|
];
|
3917
|
-
function Ca(e) {
|
3918
|
-
return at(this, void 0, void 0, function* () {
|
3919
|
-
return nn(e) && Da(e.dataTransfer) ? Ia(e.dataTransfer, e.type) : ja(e) ? Fa(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? Pa(e) : [];
|
3920
|
-
});
|
3921
|
-
}
|
3922
3917
|
function Da(e) {
|
3923
|
-
return
|
3918
|
+
return ct(this, void 0, void 0, function* () {
|
3919
|
+
return on(e) && ja(e.dataTransfer) ? Ba(e.dataTransfer, e.type) : Fa(e) ? Pa(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? Ia(e) : [];
|
3920
|
+
});
|
3924
3921
|
}
|
3925
3922
|
function ja(e) {
|
3926
|
-
return
|
3927
|
-
}
|
3928
|
-
function nn(e) {
|
3929
|
-
return typeof e == "object" && e !== null;
|
3923
|
+
return on(e);
|
3930
3924
|
}
|
3931
3925
|
function Fa(e) {
|
3932
|
-
return
|
3926
|
+
return on(e) && on(e.target);
|
3927
|
+
}
|
3928
|
+
function on(e) {
|
3929
|
+
return typeof e == "object" && e !== null;
|
3933
3930
|
}
|
3934
3931
|
function Pa(e) {
|
3935
|
-
return
|
3936
|
-
|
3932
|
+
return qn(e.target.files).map((t) => vt(t));
|
3933
|
+
}
|
3934
|
+
function Ia(e) {
|
3935
|
+
return ct(this, void 0, void 0, function* () {
|
3936
|
+
return (yield Promise.all(e.map((i) => i.getFile()))).map((i) => vt(i));
|
3937
3937
|
});
|
3938
3938
|
}
|
3939
|
-
function
|
3940
|
-
return
|
3939
|
+
function Ba(e, t) {
|
3940
|
+
return ct(this, void 0, void 0, function* () {
|
3941
3941
|
if (e.items) {
|
3942
|
-
const i =
|
3942
|
+
const i = qn(e.items).filter((r) => r.kind === "file");
|
3943
3943
|
if (t !== "drop")
|
3944
3944
|
return i;
|
3945
|
-
const n = yield Promise.all(i.map(
|
3946
|
-
return
|
3945
|
+
const n = yield Promise.all(i.map(za));
|
3946
|
+
return Vi(Ar(n));
|
3947
3947
|
}
|
3948
|
-
return
|
3948
|
+
return Vi(qn(e.files).map((i) => vt(i)));
|
3949
3949
|
});
|
3950
3950
|
}
|
3951
|
-
function
|
3952
|
-
return e.filter((t) =>
|
3951
|
+
function Vi(e) {
|
3952
|
+
return e.filter((t) => Ca.indexOf(t.name) === -1);
|
3953
3953
|
}
|
3954
|
-
function
|
3954
|
+
function qn(e) {
|
3955
3955
|
if (e === null)
|
3956
3956
|
return [];
|
3957
3957
|
const t = [];
|
@@ -3961,20 +3961,20 @@ function Mn(e) {
|
|
3961
3961
|
}
|
3962
3962
|
return t;
|
3963
3963
|
}
|
3964
|
-
function
|
3964
|
+
function za(e) {
|
3965
3965
|
if (typeof e.webkitGetAsEntry != "function")
|
3966
|
-
return
|
3966
|
+
return Hi(e);
|
3967
3967
|
const t = e.webkitGetAsEntry();
|
3968
|
-
return t && t.isDirectory ?
|
3968
|
+
return t && t.isDirectory ? Cr(t) : Hi(e, t);
|
3969
3969
|
}
|
3970
|
-
function
|
3970
|
+
function Ar(e) {
|
3971
3971
|
return e.reduce((t, i) => [
|
3972
3972
|
...t,
|
3973
|
-
...Array.isArray(i) ?
|
3973
|
+
...Array.isArray(i) ? Ar(i) : [i]
|
3974
3974
|
], []);
|
3975
3975
|
}
|
3976
|
-
function
|
3977
|
-
return
|
3976
|
+
function Hi(e, t) {
|
3977
|
+
return ct(this, void 0, void 0, function* () {
|
3978
3978
|
var i;
|
3979
3979
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
3980
3980
|
const o = yield e.getAsFileSystemHandle();
|
@@ -3982,28 +3982,28 @@ function Ui(e, t) {
|
|
3982
3982
|
throw new Error(`${e} is not a File`);
|
3983
3983
|
if (o !== void 0) {
|
3984
3984
|
const a = yield o.getFile();
|
3985
|
-
return a.handle = o,
|
3985
|
+
return a.handle = o, vt(a);
|
3986
3986
|
}
|
3987
3987
|
}
|
3988
3988
|
const n = e.getAsFile();
|
3989
3989
|
if (!n)
|
3990
3990
|
throw new Error(`${e} is not a File`);
|
3991
|
-
return
|
3991
|
+
return vt(n, (i = t == null ? void 0 : t.fullPath) !== null && i !== void 0 ? i : void 0);
|
3992
3992
|
});
|
3993
3993
|
}
|
3994
|
-
function
|
3995
|
-
return
|
3996
|
-
return e.isDirectory ?
|
3994
|
+
function La(e) {
|
3995
|
+
return ct(this, void 0, void 0, function* () {
|
3996
|
+
return e.isDirectory ? Cr(e) : Ma(e);
|
3997
3997
|
});
|
3998
3998
|
}
|
3999
|
-
function
|
3999
|
+
function Cr(e) {
|
4000
4000
|
const t = e.createReader();
|
4001
4001
|
return new Promise((i, n) => {
|
4002
4002
|
const r = [];
|
4003
4003
|
function o() {
|
4004
|
-
t.readEntries((a) =>
|
4004
|
+
t.readEntries((a) => ct(this, void 0, void 0, function* () {
|
4005
4005
|
if (a.length) {
|
4006
|
-
const s = Promise.all(a.map(
|
4006
|
+
const s = Promise.all(a.map(La));
|
4007
4007
|
r.push(s), o();
|
4008
4008
|
} else
|
4009
4009
|
try {
|
@@ -4019,11 +4019,11 @@ function _r(e) {
|
|
4019
4019
|
o();
|
4020
4020
|
});
|
4021
4021
|
}
|
4022
|
-
function
|
4023
|
-
return
|
4022
|
+
function Ma(e) {
|
4023
|
+
return ct(this, void 0, void 0, function* () {
|
4024
4024
|
return new Promise((t, i) => {
|
4025
4025
|
e.file((n) => {
|
4026
|
-
const r =
|
4026
|
+
const r = vt(n, e.fullPath);
|
4027
4027
|
t(r);
|
4028
4028
|
}, (n) => {
|
4029
4029
|
i(n);
|
@@ -4031,9 +4031,9 @@ function La(e) {
|
|
4031
4031
|
});
|
4032
4032
|
});
|
4033
4033
|
}
|
4034
|
-
var
|
4035
|
-
function
|
4036
|
-
return
|
4034
|
+
var Ht = {}, Yi;
|
4035
|
+
function $a() {
|
4036
|
+
return Yi || (Yi = 1, Ht.__esModule = !0, Ht.default = function(e, t) {
|
4037
4037
|
if (e && t) {
|
4038
4038
|
var i = Array.isArray(t) ? t : t.split(",");
|
4039
4039
|
if (i.length === 0)
|
@@ -4045,24 +4045,24 @@ function Ma() {
|
|
4045
4045
|
});
|
4046
4046
|
}
|
4047
4047
|
return !0;
|
4048
|
-
}),
|
4048
|
+
}), Ht;
|
4049
4049
|
}
|
4050
|
-
var
|
4051
|
-
const
|
4052
|
-
function
|
4053
|
-
return
|
4050
|
+
var Na = $a();
|
4051
|
+
const On = /* @__PURE__ */ Rr(Na);
|
4052
|
+
function Ki(e) {
|
4053
|
+
return Wa(e) || Ua(e) || jr(e) || qa();
|
4054
4054
|
}
|
4055
|
-
function
|
4055
|
+
function qa() {
|
4056
4056
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
4057
4057
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4058
4058
|
}
|
4059
|
-
function
|
4059
|
+
function Ua(e) {
|
4060
4060
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
4061
4061
|
}
|
4062
|
-
function
|
4063
|
-
if (Array.isArray(e)) return
|
4062
|
+
function Wa(e) {
|
4063
|
+
if (Array.isArray(e)) return Un(e);
|
4064
4064
|
}
|
4065
|
-
function
|
4065
|
+
function Ji(e, t) {
|
4066
4066
|
var i = Object.keys(e);
|
4067
4067
|
if (Object.getOwnPropertySymbols) {
|
4068
4068
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -4072,42 +4072,42 @@ function Hi(e, t) {
|
|
4072
4072
|
}
|
4073
4073
|
return i;
|
4074
4074
|
}
|
4075
|
-
function
|
4075
|
+
function Gi(e) {
|
4076
4076
|
for (var t = 1; t < arguments.length; t++) {
|
4077
4077
|
var i = arguments[t] != null ? arguments[t] : {};
|
4078
|
-
t % 2 ?
|
4079
|
-
|
4080
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4078
|
+
t % 2 ? Ji(Object(i), !0).forEach(function(n) {
|
4079
|
+
Dr(e, n, i[n]);
|
4080
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Ji(Object(i)).forEach(function(n) {
|
4081
4081
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
4082
4082
|
});
|
4083
4083
|
}
|
4084
4084
|
return e;
|
4085
4085
|
}
|
4086
|
-
function
|
4086
|
+
function Dr(e, t, i) {
|
4087
4087
|
return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
4088
4088
|
}
|
4089
|
-
function
|
4090
|
-
return
|
4089
|
+
function It(e, t) {
|
4090
|
+
return Ya(e) || Ha(e, t) || jr(e, t) || Va();
|
4091
4091
|
}
|
4092
|
-
function
|
4092
|
+
function Va() {
|
4093
4093
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4094
4094
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4095
4095
|
}
|
4096
|
-
function
|
4096
|
+
function jr(e, t) {
|
4097
4097
|
if (e) {
|
4098
|
-
if (typeof e == "string") return
|
4098
|
+
if (typeof e == "string") return Un(e, t);
|
4099
4099
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
4100
4100
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
4101
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
4101
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Un(e, t);
|
4102
4102
|
}
|
4103
4103
|
}
|
4104
|
-
function
|
4104
|
+
function Un(e, t) {
|
4105
4105
|
(t == null || t > e.length) && (t = e.length);
|
4106
4106
|
for (var i = 0, n = new Array(t); i < t; i++)
|
4107
4107
|
n[i] = e[i];
|
4108
4108
|
return n;
|
4109
4109
|
}
|
4110
|
-
function
|
4110
|
+
function Ha(e, t) {
|
4111
4111
|
var i = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
4112
4112
|
if (i != null) {
|
4113
4113
|
var n = [], r = !0, o = !1, a, s;
|
@@ -4126,97 +4126,97 @@ function Va(e, t) {
|
|
4126
4126
|
return n;
|
4127
4127
|
}
|
4128
4128
|
}
|
4129
|
-
function
|
4129
|
+
function Ya(e) {
|
4130
4130
|
if (Array.isArray(e)) return e;
|
4131
4131
|
}
|
4132
|
-
var
|
4132
|
+
var Ka = typeof On == "function" ? On : On.default, Ja = "file-invalid-type", Ga = "file-too-large", Xa = "file-too-small", Za = "too-many-files", Qa = function() {
|
4133
4133
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = t.split(","), n = i.length > 1 ? "one of ".concat(i.join(", ")) : i[0];
|
4134
4134
|
return {
|
4135
|
-
code:
|
4135
|
+
code: Ja,
|
4136
4136
|
message: "File type must be ".concat(n)
|
4137
4137
|
};
|
4138
|
-
},
|
4138
|
+
}, Xi = function(t) {
|
4139
4139
|
return {
|
4140
|
-
code:
|
4140
|
+
code: Ga,
|
4141
4141
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
4142
4142
|
};
|
4143
|
-
},
|
4143
|
+
}, Zi = function(t) {
|
4144
4144
|
return {
|
4145
|
-
code:
|
4145
|
+
code: Xa,
|
4146
4146
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
4147
4147
|
};
|
4148
|
-
},
|
4149
|
-
code:
|
4148
|
+
}, es = {
|
4149
|
+
code: Za,
|
4150
4150
|
message: "Too many files"
|
4151
4151
|
};
|
4152
|
-
function
|
4153
|
-
var i = e.type === "application/x-moz-file" ||
|
4154
|
-
return [i, i ? null :
|
4155
|
-
}
|
4156
|
-
function
|
4157
|
-
if (
|
4158
|
-
if (
|
4159
|
-
if (e.size > i) return [!1,
|
4160
|
-
if (e.size < t) return [!1,
|
4152
|
+
function Fr(e, t) {
|
4153
|
+
var i = e.type === "application/x-moz-file" || Ka(e, t);
|
4154
|
+
return [i, i ? null : Qa(t)];
|
4155
|
+
}
|
4156
|
+
function Pr(e, t, i) {
|
4157
|
+
if (tt(e.size))
|
4158
|
+
if (tt(t) && tt(i)) {
|
4159
|
+
if (e.size > i) return [!1, Xi(i)];
|
4160
|
+
if (e.size < t) return [!1, Zi(t)];
|
4161
4161
|
} else {
|
4162
|
-
if (
|
4163
|
-
if (
|
4162
|
+
if (tt(t) && e.size < t) return [!1, Zi(t)];
|
4163
|
+
if (tt(i) && e.size > i) return [!1, Xi(i)];
|
4164
4164
|
}
|
4165
4165
|
return [!0, null];
|
4166
4166
|
}
|
4167
|
-
function
|
4167
|
+
function tt(e) {
|
4168
4168
|
return e != null;
|
4169
4169
|
}
|
4170
|
-
function
|
4170
|
+
function ts(e) {
|
4171
4171
|
var t = e.files, i = e.accept, n = e.minSize, r = e.maxSize, o = e.multiple, a = e.maxFiles, s = e.validator;
|
4172
4172
|
return !o && t.length > 1 || o && a >= 1 && t.length > a ? !1 : t.every(function(c) {
|
4173
|
-
var p =
|
4173
|
+
var p = Fr(c, i), l = It(p, 1), u = l[0], f = Pr(c, n, r), m = It(f, 1), x = m[0], g = s ? s(c) : null;
|
4174
4174
|
return u && x && !g;
|
4175
4175
|
});
|
4176
4176
|
}
|
4177
|
-
function
|
4177
|
+
function an(e) {
|
4178
4178
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
4179
4179
|
}
|
4180
|
-
function
|
4180
|
+
function Yt(e) {
|
4181
4181
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(t) {
|
4182
4182
|
return t === "Files" || t === "application/x-moz-file";
|
4183
4183
|
}) : !!e.target && !!e.target.files;
|
4184
4184
|
}
|
4185
|
-
function
|
4185
|
+
function Qi(e) {
|
4186
4186
|
e.preventDefault();
|
4187
4187
|
}
|
4188
|
-
function
|
4188
|
+
function ns(e) {
|
4189
4189
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
4190
4190
|
}
|
4191
|
-
function
|
4191
|
+
function is(e) {
|
4192
4192
|
return e.indexOf("Edge/") !== -1;
|
4193
4193
|
}
|
4194
|
-
function
|
4194
|
+
function rs() {
|
4195
4195
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
4196
|
-
return
|
4196
|
+
return ns(e) || is(e);
|
4197
4197
|
}
|
4198
|
-
function
|
4198
|
+
function $e() {
|
4199
4199
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
4200
4200
|
t[i] = arguments[i];
|
4201
4201
|
return function(n) {
|
4202
4202
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
4203
4203
|
o[a - 1] = arguments[a];
|
4204
4204
|
return t.some(function(s) {
|
4205
|
-
return !
|
4205
|
+
return !an(n) && s && s.apply(void 0, [n].concat(o)), an(n);
|
4206
4206
|
});
|
4207
4207
|
};
|
4208
4208
|
}
|
4209
|
-
function
|
4209
|
+
function os() {
|
4210
4210
|
return "showOpenFilePicker" in window;
|
4211
4211
|
}
|
4212
|
-
function
|
4213
|
-
if (
|
4212
|
+
function as(e) {
|
4213
|
+
if (tt(e)) {
|
4214
4214
|
var t = Object.entries(e).filter(function(i) {
|
4215
|
-
var n =
|
4216
|
-
return
|
4215
|
+
var n = It(i, 2), r = n[0], o = n[1], a = !0;
|
4216
|
+
return Ir(r) || (console.warn('Skipped "'.concat(r, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), a = !1), (!Array.isArray(o) || !o.every(Br)) && (console.warn('Skipped "'.concat(r, '" because an invalid file extension was provided.')), a = !1), a;
|
4217
4217
|
}).reduce(function(i, n) {
|
4218
|
-
var r =
|
4219
|
-
return
|
4218
|
+
var r = It(n, 2), o = r[0], a = r[1];
|
4219
|
+
return Gi(Gi({}, i), {}, Dr({}, o, a));
|
4220
4220
|
}, {});
|
4221
4221
|
return [{
|
4222
4222
|
// description is required due to https://crbug.com/1264708
|
@@ -4226,63 +4226,63 @@ function os(e) {
|
|
4226
4226
|
}
|
4227
4227
|
return e;
|
4228
4228
|
}
|
4229
|
-
function
|
4230
|
-
if (
|
4229
|
+
function ss(e) {
|
4230
|
+
if (tt(e))
|
4231
4231
|
return Object.entries(e).reduce(function(t, i) {
|
4232
|
-
var n =
|
4233
|
-
return [].concat(
|
4232
|
+
var n = It(i, 2), r = n[0], o = n[1];
|
4233
|
+
return [].concat(Ki(t), [r], Ki(o));
|
4234
4234
|
}, []).filter(function(t) {
|
4235
|
-
return
|
4235
|
+
return Ir(t) || Br(t);
|
4236
4236
|
}).join(",");
|
4237
4237
|
}
|
4238
|
-
function
|
4238
|
+
function cs(e) {
|
4239
4239
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
4240
4240
|
}
|
4241
|
-
function
|
4241
|
+
function ls(e) {
|
4242
4242
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
4243
4243
|
}
|
4244
|
-
function
|
4244
|
+
function Ir(e) {
|
4245
4245
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
4246
4246
|
}
|
4247
|
-
function
|
4247
|
+
function Br(e) {
|
4248
4248
|
return /^.*\.[\w]+$/.test(e);
|
4249
4249
|
}
|
4250
|
-
var
|
4251
|
-
function
|
4252
|
-
return
|
4250
|
+
var ps = ["children"], ds = ["open"], us = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], fs = ["refKey", "onChange", "onClick"];
|
4251
|
+
function ms(e) {
|
4252
|
+
return gs(e) || vs(e) || zr(e) || xs();
|
4253
4253
|
}
|
4254
|
-
function
|
4254
|
+
function xs() {
|
4255
4255
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
4256
4256
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4257
4257
|
}
|
4258
|
-
function
|
4258
|
+
function vs(e) {
|
4259
4259
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
4260
4260
|
}
|
4261
|
-
function
|
4262
|
-
if (Array.isArray(e)) return
|
4261
|
+
function gs(e) {
|
4262
|
+
if (Array.isArray(e)) return Wn(e);
|
4263
4263
|
}
|
4264
|
-
function
|
4265
|
-
return
|
4264
|
+
function _n(e, t) {
|
4265
|
+
return ys(e) || bs(e, t) || zr(e, t) || hs();
|
4266
4266
|
}
|
4267
|
-
function
|
4267
|
+
function hs() {
|
4268
4268
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4269
4269
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4270
4270
|
}
|
4271
|
-
function
|
4271
|
+
function zr(e, t) {
|
4272
4272
|
if (e) {
|
4273
|
-
if (typeof e == "string") return
|
4273
|
+
if (typeof e == "string") return Wn(e, t);
|
4274
4274
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
4275
4275
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
4276
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
4276
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Wn(e, t);
|
4277
4277
|
}
|
4278
4278
|
}
|
4279
|
-
function
|
4279
|
+
function Wn(e, t) {
|
4280
4280
|
(t == null || t > e.length) && (t = e.length);
|
4281
4281
|
for (var i = 0, n = new Array(t); i < t; i++)
|
4282
4282
|
n[i] = e[i];
|
4283
4283
|
return n;
|
4284
4284
|
}
|
4285
|
-
function
|
4285
|
+
function bs(e, t) {
|
4286
4286
|
var i = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
4287
4287
|
if (i != null) {
|
4288
4288
|
var n = [], r = !0, o = !1, a, s;
|
@@ -4301,10 +4301,10 @@ function hs(e, t) {
|
|
4301
4301
|
return n;
|
4302
4302
|
}
|
4303
4303
|
}
|
4304
|
-
function
|
4304
|
+
function ys(e) {
|
4305
4305
|
if (Array.isArray(e)) return e;
|
4306
4306
|
}
|
4307
|
-
function
|
4307
|
+
function er(e, t) {
|
4308
4308
|
var i = Object.keys(e);
|
4309
4309
|
if (Object.getOwnPropertySymbols) {
|
4310
4310
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -4317,20 +4317,20 @@ function Xi(e, t) {
|
|
4317
4317
|
function he(e) {
|
4318
4318
|
for (var t = 1; t < arguments.length; t++) {
|
4319
4319
|
var i = arguments[t] != null ? arguments[t] : {};
|
4320
|
-
t % 2 ?
|
4321
|
-
|
4322
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4320
|
+
t % 2 ? er(Object(i), !0).forEach(function(n) {
|
4321
|
+
Vn(e, n, i[n]);
|
4322
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : er(Object(i)).forEach(function(n) {
|
4323
4323
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
4324
4324
|
});
|
4325
4325
|
}
|
4326
4326
|
return e;
|
4327
4327
|
}
|
4328
|
-
function
|
4328
|
+
function Vn(e, t, i) {
|
4329
4329
|
return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
4330
4330
|
}
|
4331
|
-
function
|
4331
|
+
function sn(e, t) {
|
4332
4332
|
if (e == null) return {};
|
4333
|
-
var i =
|
4333
|
+
var i = ws(e, t), n, r;
|
4334
4334
|
if (Object.getOwnPropertySymbols) {
|
4335
4335
|
var o = Object.getOwnPropertySymbols(e);
|
4336
4336
|
for (r = 0; r < o.length; r++)
|
@@ -4338,27 +4338,27 @@ function on(e, t) {
|
|
4338
4338
|
}
|
4339
4339
|
return i;
|
4340
4340
|
}
|
4341
|
-
function
|
4341
|
+
function ws(e, t) {
|
4342
4342
|
if (e == null) return {};
|
4343
4343
|
var i = {}, n = Object.keys(e), r, o;
|
4344
4344
|
for (o = 0; o < n.length; o++)
|
4345
4345
|
r = n[o], !(t.indexOf(r) >= 0) && (i[r] = e[r]);
|
4346
4346
|
return i;
|
4347
4347
|
}
|
4348
|
-
var
|
4349
|
-
var i = e.children, n =
|
4350
|
-
return
|
4348
|
+
var ai = /* @__PURE__ */ Do(function(e, t) {
|
4349
|
+
var i = e.children, n = sn(e, ps), r = Mr(n), o = r.open, a = sn(r, ds);
|
4350
|
+
return jo(t, function() {
|
4351
4351
|
return {
|
4352
4352
|
open: o
|
4353
4353
|
};
|
4354
|
-
}, [o]), /* @__PURE__ */ me.createElement(
|
4354
|
+
}, [o]), /* @__PURE__ */ me.createElement(Fo, null, i(he(he({}, a), {}, {
|
4355
4355
|
open: o
|
4356
4356
|
})));
|
4357
4357
|
});
|
4358
|
-
|
4359
|
-
var
|
4358
|
+
ai.displayName = "Dropzone";
|
4359
|
+
var Lr = {
|
4360
4360
|
disabled: !1,
|
4361
|
-
getFilesFromEvent:
|
4361
|
+
getFilesFromEvent: Da,
|
4362
4362
|
maxSize: 1 / 0,
|
4363
4363
|
minSize: 0,
|
4364
4364
|
multiple: !0,
|
@@ -4372,8 +4372,8 @@ var Br = {
|
|
4372
4372
|
useFsAccessApi: !1,
|
4373
4373
|
autoFocus: !1
|
4374
4374
|
};
|
4375
|
-
|
4376
|
-
|
4375
|
+
ai.defaultProps = Lr;
|
4376
|
+
ai.propTypes = {
|
4377
4377
|
/**
|
4378
4378
|
* Render function that exposes the dropzone state and prop getter fns
|
4379
4379
|
*
|
@@ -4541,7 +4541,7 @@ ii.propTypes = {
|
|
4541
4541
|
*/
|
4542
4542
|
validator: le.func
|
4543
4543
|
};
|
4544
|
-
var
|
4544
|
+
var Hn = {
|
4545
4545
|
isFocused: !1,
|
4546
4546
|
isFileDialogActive: !1,
|
4547
4547
|
isDragActive: !1,
|
@@ -4550,16 +4550,16 @@ var Un = {
|
|
4550
4550
|
acceptedFiles: [],
|
4551
4551
|
fileRejections: []
|
4552
4552
|
};
|
4553
|
-
function
|
4554
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = he(he({},
|
4553
|
+
function Mr() {
|
4554
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = he(he({}, Lr), e), i = t.accept, n = t.disabled, r = t.getFilesFromEvent, o = t.maxSize, a = t.minSize, s = t.multiple, c = t.maxFiles, p = t.onDragEnter, l = t.onDragLeave, u = t.onDragOver, f = t.onDrop, m = t.onDropAccepted, x = t.onDropRejected, g = t.onFileDialogCancel, y = t.onFileDialogOpen, h = t.useFsAccessApi, _ = t.autoFocus, A = t.preventDropOnDocument, T = t.noClick, b = t.noKeyboard, C = t.noDrag, z = t.noDragEventsBubbling, I = t.onError, q = t.validator, K = Qe(function() {
|
4555
|
+
return ss(i);
|
4556
|
+
}, [i]), re = Qe(function() {
|
4555
4557
|
return as(i);
|
4556
|
-
}, [i]),
|
4557
|
-
return
|
4558
|
-
}, [
|
4559
|
-
return typeof
|
4560
|
-
}, [
|
4561
|
-
return typeof g == "function" ? g : Zi;
|
4562
|
-
}, [g]), U = ze(null), ae = ze(null), we = _o(ws, Un), Ee = kn(we, 2), be = Ee[0], ge = Ee[1], S = be.isFocused, k = be.isFileDialogActive, B = ze(typeof window < "u" && window.isSecureContext && h && rs()), M = function() {
|
4558
|
+
}, [i]), ue = Qe(function() {
|
4559
|
+
return typeof y == "function" ? y : tr;
|
4560
|
+
}, [y]), X = Qe(function() {
|
4561
|
+
return typeof g == "function" ? g : tr;
|
4562
|
+
}, [g]), U = Le(null), ae = Le(null), we = Co(Es, Hn), Ee = _n(we, 2), be = Ee[0], ge = Ee[1], S = be.isFocused, k = be.isFileDialogActive, B = Le(typeof window < "u" && window.isSecureContext && h && os()), M = function() {
|
4563
4563
|
!B.current && k && setTimeout(function() {
|
4564
4564
|
if (ae.current) {
|
4565
4565
|
var j = ae.current.files;
|
@@ -4569,28 +4569,28 @@ function zr() {
|
|
4569
4569
|
}
|
4570
4570
|
}, 300);
|
4571
4571
|
};
|
4572
|
-
|
4572
|
+
Qt(function() {
|
4573
4573
|
return window.addEventListener("focus", M, !1), function() {
|
4574
4574
|
window.removeEventListener("focus", M, !1);
|
4575
4575
|
};
|
4576
4576
|
}, [ae, k, X, B]);
|
4577
|
-
var F =
|
4577
|
+
var F = Le([]), W = function(j) {
|
4578
4578
|
U.current && U.current.contains(j.target) || (j.preventDefault(), F.current = []);
|
4579
4579
|
};
|
4580
|
-
|
4581
|
-
return A && (document.addEventListener("dragover",
|
4582
|
-
A && (document.removeEventListener("dragover",
|
4580
|
+
Qt(function() {
|
4581
|
+
return A && (document.addEventListener("dragover", Qi, !1), document.addEventListener("drop", W, !1)), function() {
|
4582
|
+
A && (document.removeEventListener("dragover", Qi), document.removeEventListener("drop", W));
|
4583
4583
|
};
|
4584
|
-
}, [U, A]),
|
4584
|
+
}, [U, A]), Qt(function() {
|
4585
4585
|
return !n && _ && U.current && U.current.focus(), function() {
|
4586
4586
|
};
|
4587
4587
|
}, [U, _, n]);
|
4588
4588
|
var P = je(function(R) {
|
4589
4589
|
I ? I(R) : console.error(R);
|
4590
4590
|
}, [I]), $ = je(function(R) {
|
4591
|
-
R.preventDefault(), R.persist(), _e(R), F.current = [].concat(
|
4592
|
-
if (!(
|
4593
|
-
var se = j.length, de = se > 0 &&
|
4591
|
+
R.preventDefault(), R.persist(), _e(R), F.current = [].concat(ms(F.current), [R.target]), Yt(R) && Promise.resolve(r(R)).then(function(j) {
|
4592
|
+
if (!(an(R) && !z)) {
|
4593
|
+
var se = j.length, de = se > 0 && ts({
|
4594
4594
|
files: j,
|
4595
4595
|
accept: K,
|
4596
4596
|
minSize: a,
|
@@ -4611,7 +4611,7 @@ function zr() {
|
|
4611
4611
|
});
|
4612
4612
|
}, [r, p, P, z, K, a, o, s, c, q]), V = je(function(R) {
|
4613
4613
|
R.preventDefault(), R.persist(), _e(R);
|
4614
|
-
var j =
|
4614
|
+
var j = Yt(R);
|
4615
4615
|
if (j && R.dataTransfer)
|
4616
4616
|
try {
|
4617
4617
|
R.dataTransfer.dropEffect = "copy";
|
@@ -4628,26 +4628,26 @@ function zr() {
|
|
4628
4628
|
isDragActive: !1,
|
4629
4629
|
isDragAccept: !1,
|
4630
4630
|
isDragReject: !1
|
4631
|
-
}),
|
4631
|
+
}), Yt(R) && l && l(R));
|
4632
4632
|
}, [U, l, z]), L = je(function(R, j) {
|
4633
4633
|
var se = [], de = [];
|
4634
4634
|
R.forEach(function(Te) {
|
4635
|
-
var
|
4636
|
-
if (
|
4635
|
+
var Ke = Fr(Te, K), Ue = _n(Ke, 2), Xe = Ue[0], wt = Ue[1], Et = Pr(Te, a, o), dt = _n(Et, 2), St = dt[0], Rt = dt[1], Tt = q ? q(Te) : null;
|
4636
|
+
if (Xe && St && !Tt)
|
4637
4637
|
se.push(Te);
|
4638
4638
|
else {
|
4639
|
-
var
|
4640
|
-
|
4639
|
+
var kt = [wt, Rt];
|
4640
|
+
Tt && (kt = kt.concat(Tt)), de.push({
|
4641
4641
|
file: Te,
|
4642
|
-
errors:
|
4643
|
-
return
|
4642
|
+
errors: kt.filter(function(Ot) {
|
4643
|
+
return Ot;
|
4644
4644
|
})
|
4645
4645
|
});
|
4646
4646
|
}
|
4647
4647
|
}), (!s && se.length > 1 || s && c >= 1 && se.length > c) && (se.forEach(function(Te) {
|
4648
4648
|
de.push({
|
4649
4649
|
file: Te,
|
4650
|
-
errors: [
|
4650
|
+
errors: [es]
|
4651
4651
|
});
|
4652
4652
|
}), se.splice(0)), ge({
|
4653
4653
|
acceptedFiles: se,
|
@@ -4656,8 +4656,8 @@ function zr() {
|
|
4656
4656
|
type: "setFiles"
|
4657
4657
|
}), f && f(se, de, j), de.length > 0 && x && x(de, j), se.length > 0 && m && m(se, j);
|
4658
4658
|
}, [ge, s, K, a, o, c, f, m, x, q]), xe = je(function(R) {
|
4659
|
-
R.preventDefault(), R.persist(), _e(R), F.current = [],
|
4660
|
-
|
4659
|
+
R.preventDefault(), R.persist(), _e(R), F.current = [], Yt(R) && Promise.resolve(r(R)).then(function(j) {
|
4660
|
+
an(R) && !z || L(j, R);
|
4661
4661
|
}).catch(function(j) {
|
4662
4662
|
return P(j);
|
4663
4663
|
}), ge({
|
@@ -4679,9 +4679,9 @@ function zr() {
|
|
4679
4679
|
type: "closeDialog"
|
4680
4680
|
});
|
4681
4681
|
}).catch(function(j) {
|
4682
|
-
|
4682
|
+
cs(j) ? (X(j), ge({
|
4683
4683
|
type: "closeDialog"
|
4684
|
-
})) :
|
4684
|
+
})) : ls(j) ? (B.current = !1, ae.current ? (ae.current.value = null, ae.current.click()) : P(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : P(j);
|
4685
4685
|
});
|
4686
4686
|
return;
|
4687
4687
|
}
|
@@ -4699,7 +4699,7 @@ function zr() {
|
|
4699
4699
|
type: "blur"
|
4700
4700
|
});
|
4701
4701
|
}, []), ke = je(function() {
|
4702
|
-
T || (
|
4702
|
+
T || (rs() ? setTimeout(w, 0) : w());
|
4703
4703
|
}, [T, w]), Oe = function(j) {
|
4704
4704
|
return n ? null : j;
|
4705
4705
|
}, ve = function(j) {
|
@@ -4708,28 +4708,28 @@ function zr() {
|
|
4708
4708
|
return C ? null : Oe(j);
|
4709
4709
|
}, _e = function(j) {
|
4710
4710
|
z && j.stopPropagation();
|
4711
|
-
},
|
4711
|
+
}, lt = Qe(function() {
|
4712
4712
|
return function() {
|
4713
|
-
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = R.refKey, se = j === void 0 ? "ref" : j, de = R.role, Te = R.onKeyDown,
|
4714
|
-
return he(he(
|
4715
|
-
onKeyDown: ve(
|
4716
|
-
onFocus: ve(
|
4717
|
-
onBlur: ve(
|
4718
|
-
onClick: Oe(
|
4719
|
-
onDragEnter: fe(
|
4720
|
-
onDragOver: fe(
|
4721
|
-
onDragLeave: fe(
|
4722
|
-
onDrop: fe(
|
4713
|
+
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = R.refKey, se = j === void 0 ? "ref" : j, de = R.role, Te = R.onKeyDown, Ke = R.onFocus, Ue = R.onBlur, Xe = R.onClick, wt = R.onDragEnter, Et = R.onDragOver, dt = R.onDragLeave, St = R.onDrop, Rt = sn(R, us);
|
4714
|
+
return he(he(Vn({
|
4715
|
+
onKeyDown: ve($e(Te, Y)),
|
4716
|
+
onFocus: ve($e(Ke, pe)),
|
4717
|
+
onBlur: ve($e(Ue, Q)),
|
4718
|
+
onClick: Oe($e(Xe, ke)),
|
4719
|
+
onDragEnter: fe($e(wt, $)),
|
4720
|
+
onDragOver: fe($e(Et, V)),
|
4721
|
+
onDragLeave: fe($e(dt, J)),
|
4722
|
+
onDrop: fe($e(St, xe)),
|
4723
4723
|
role: typeof de == "string" && de !== "" ? de : "presentation"
|
4724
4724
|
}, se, U), !n && !b ? {
|
4725
4725
|
tabIndex: 0
|
4726
|
-
} : {}),
|
4726
|
+
} : {}), Rt);
|
4727
4727
|
};
|
4728
|
-
}, [U, Y, pe, Q, ke, $, V, J, xe, b, C, n]),
|
4728
|
+
}, [U, Y, pe, Q, ke, $, V, J, xe, b, C, n]), Ye = je(function(R) {
|
4729
4729
|
R.stopPropagation();
|
4730
|
-
}, []),
|
4730
|
+
}, []), pt = Qe(function() {
|
4731
4731
|
return function() {
|
4732
|
-
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = R.refKey, se = j === void 0 ? "ref" : j, de = R.onChange, Te = R.onClick,
|
4732
|
+
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = R.refKey, se = j === void 0 ? "ref" : j, de = R.onChange, Te = R.onClick, Ke = sn(R, fs), Ue = Vn({
|
4733
4733
|
accept: K,
|
4734
4734
|
multiple: s,
|
4735
4735
|
type: "file",
|
@@ -4745,23 +4745,23 @@ function zr() {
|
|
4745
4745
|
width: "1px",
|
4746
4746
|
whiteSpace: "nowrap"
|
4747
4747
|
},
|
4748
|
-
onChange: Oe(
|
4749
|
-
onClick: Oe(
|
4748
|
+
onChange: Oe($e(de, xe)),
|
4749
|
+
onClick: Oe($e(Te, Ye)),
|
4750
4750
|
tabIndex: -1
|
4751
4751
|
}, se, ae);
|
4752
|
-
return he(he({},
|
4752
|
+
return he(he({}, Ue), Ke);
|
4753
4753
|
};
|
4754
4754
|
}, [ae, i, s, xe, n]);
|
4755
4755
|
return he(he({}, be), {}, {
|
4756
4756
|
isFocused: S && !n,
|
4757
|
-
getRootProps:
|
4758
|
-
getInputProps:
|
4757
|
+
getRootProps: lt,
|
4758
|
+
getInputProps: pt,
|
4759
4759
|
rootRef: U,
|
4760
4760
|
inputRef: ae,
|
4761
4761
|
open: Oe(w)
|
4762
4762
|
});
|
4763
4763
|
}
|
4764
|
-
function
|
4764
|
+
function Es(e, t) {
|
4765
4765
|
switch (t.type) {
|
4766
4766
|
case "focus":
|
4767
4767
|
return he(he({}, e), {}, {
|
@@ -4772,7 +4772,7 @@ function ws(e, t) {
|
|
4772
4772
|
isFocused: !1
|
4773
4773
|
});
|
4774
4774
|
case "openDialog":
|
4775
|
-
return he(he({},
|
4775
|
+
return he(he({}, Hn), {}, {
|
4776
4776
|
isFileDialogActive: !0
|
4777
4777
|
});
|
4778
4778
|
case "closeDialog":
|
@@ -4792,25 +4792,25 @@ function ws(e, t) {
|
|
4792
4792
|
isDragReject: t.isDragReject
|
4793
4793
|
});
|
4794
4794
|
case "reset":
|
4795
|
-
return he({},
|
4795
|
+
return he({}, Hn);
|
4796
4796
|
default:
|
4797
4797
|
return e;
|
4798
4798
|
}
|
4799
4799
|
}
|
4800
|
-
function
|
4800
|
+
function tr() {
|
4801
4801
|
}
|
4802
|
-
const
|
4802
|
+
const Ss = {
|
4803
4803
|
WAV_MIME_TYPES: ["audio/wav", "audio/x-wav", "audio/wave", "audio/x-pn-wav"],
|
4804
4804
|
MP3_MIME_TYPES: ["audio/mpeg", "audio/mp3", "audio/x-mpeg", "audio/x-mp3", "audio/x-mpeg-3"],
|
4805
4805
|
FLAC_MIME_TYPES: ["audio/flac"]
|
4806
|
-
},
|
4806
|
+
}, Rs = 10 * 1e3, nr = "[Audio.getDurationSeconds]", Ts = async (e, { throwError: t } = {}) => new Promise((i, n) => {
|
4807
4807
|
if (typeof window > "u")
|
4808
4808
|
return n(new Error("getDurationSeconds is only usable in the browser"));
|
4809
4809
|
const r = URL.createObjectURL(e), o = new Audio(), a = () => {
|
4810
4810
|
o.src = "", URL.revokeObjectURL(r);
|
4811
4811
|
}, s = setTimeout(() => {
|
4812
|
-
a(), console.error(
|
4813
|
-
},
|
4812
|
+
a(), console.error(nr, "Timeout", e.name, e.size, e.type), i(0);
|
4813
|
+
}, Rs);
|
4814
4814
|
o.addEventListener(
|
4815
4815
|
"loadedmetadata",
|
4816
4816
|
() => {
|
@@ -4821,37 +4821,37 @@ const Es = {
|
|
4821
4821
|
), o.addEventListener(
|
4822
4822
|
"error",
|
4823
4823
|
(c) => {
|
4824
|
-
clearTimeout(s), a(), t ? (console.error(
|
4824
|
+
clearTimeout(s), a(), t ? (console.error(nr, "Error", e.name, e.size, e.type, c), n(e)) : i(0);
|
4825
4825
|
},
|
4826
4826
|
{ once: !0 }
|
4827
4827
|
), o.src = r;
|
4828
|
-
}),
|
4828
|
+
}), ks = (e) => {
|
4829
4829
|
const t = /* @__PURE__ */ new Map();
|
4830
4830
|
return e.forEach((i) => {
|
4831
4831
|
t.set(`${i.name}-${i.size}`, i);
|
4832
4832
|
}), Array.from(t.values());
|
4833
|
-
},
|
4833
|
+
}, Os = (e) => new Promise((t) => {
|
4834
4834
|
const i = new FileReader();
|
4835
4835
|
i.onloadend = (n) => {
|
4836
4836
|
var a;
|
4837
|
-
const r = new Uint8Array((a = n.target) == null ? void 0 : a.result), o =
|
4837
|
+
const r = new Uint8Array((a = n.target) == null ? void 0 : a.result), o = ba.filetypemime(r);
|
4838
4838
|
t(o);
|
4839
4839
|
}, i.readAsArrayBuffer(e);
|
4840
|
-
}),
|
4840
|
+
}), _s = async (e) => {
|
4841
4841
|
try {
|
4842
|
-
const t = await
|
4842
|
+
const t = await Ts(e), i = e;
|
4843
4843
|
return i.duration = t, i;
|
4844
4844
|
} catch {
|
4845
4845
|
throw new Error(`Failed to get audio duration for ${e.name}`);
|
4846
4846
|
}
|
4847
|
-
},
|
4848
|
-
for (const [t, i] of Object.entries(
|
4847
|
+
}, As = (e) => {
|
4848
|
+
for (const [t, i] of Object.entries(Ss)) {
|
4849
4849
|
const n = t.toLowerCase().split("_")[0];
|
4850
4850
|
if (i.includes(e)) return n;
|
4851
4851
|
}
|
4852
|
-
},
|
4852
|
+
}, Cs = async (e) => {
|
4853
4853
|
var s;
|
4854
|
-
const t = await
|
4854
|
+
const t = await Os(e), i = ((s = e == null ? void 0 : e.name) == null ? void 0 : s.split(".").pop()) || "", n = t[0] || e.type, r = As(n);
|
4855
4855
|
if (r === i || !n || !r)
|
4856
4856
|
return e;
|
4857
4857
|
const o = `${e.name.split(".").slice(0, -1).join(".")}.${r}`;
|
@@ -4859,38 +4859,38 @@ const Es = {
|
|
4859
4859
|
type: n
|
4860
4860
|
});
|
4861
4861
|
};
|
4862
|
-
class
|
4862
|
+
class Ds extends Error {
|
4863
4863
|
constructor() {
|
4864
4864
|
super("Max file size exceeded");
|
4865
4865
|
}
|
4866
4866
|
}
|
4867
|
-
class
|
4867
|
+
class js extends Error {
|
4868
4868
|
constructor() {
|
4869
4869
|
super("Min file size exceeded");
|
4870
4870
|
}
|
4871
4871
|
}
|
4872
|
-
class
|
4872
|
+
class Fs extends Error {
|
4873
4873
|
constructor() {
|
4874
4874
|
super("File duration too long");
|
4875
4875
|
}
|
4876
4876
|
}
|
4877
|
-
class
|
4877
|
+
class Ps extends Error {
|
4878
4878
|
constructor() {
|
4879
4879
|
super("Invalid file type");
|
4880
4880
|
}
|
4881
4881
|
}
|
4882
|
-
const
|
4882
|
+
const Is = (e) => ({
|
4883
4883
|
handleDurationError: (t) => {
|
4884
4884
|
var i;
|
4885
|
-
console.log("handleDurationError", t), (i = e.onError) == null || i.call(e, new
|
4885
|
+
console.log("handleDurationError", t), (i = e.onError) == null || i.call(e, new Fs());
|
4886
4886
|
},
|
4887
4887
|
handleMaxSizeError: (t) => {
|
4888
4888
|
var i;
|
4889
|
-
console.log("handleMaxSizeError", t), (i = e.onError) == null || i.call(e, new
|
4889
|
+
console.log("handleMaxSizeError", t), (i = e.onError) == null || i.call(e, new Ds());
|
4890
4890
|
},
|
4891
4891
|
handleMinSizeError: (t) => {
|
4892
4892
|
var i;
|
4893
|
-
console.log("handleMinSizeError", t), (i = e.onError) == null || i.call(e, new
|
4893
|
+
console.log("handleMinSizeError", t), (i = e.onError) == null || i.call(e, new js());
|
4894
4894
|
},
|
4895
4895
|
handleUnknownError: (t) => {
|
4896
4896
|
var i;
|
@@ -4898,17 +4898,17 @@ const Ps = (e) => ({
|
|
4898
4898
|
},
|
4899
4899
|
handleInvalidTypeError: (t) => {
|
4900
4900
|
var i;
|
4901
|
-
console.log("handleInvalidTypeError", t), (i = e.onError) == null || i.call(e, new
|
4901
|
+
console.log("handleInvalidTypeError", t), (i = e.onError) == null || i.call(e, new Ps());
|
4902
4902
|
}
|
4903
|
-
}),
|
4903
|
+
}), Bs = (e) => {
|
4904
4904
|
const {
|
4905
4905
|
handleDurationError: t,
|
4906
4906
|
handleMaxSizeError: i,
|
4907
4907
|
handleMinSizeError: n,
|
4908
4908
|
handleUnknownError: r,
|
4909
4909
|
handleInvalidTypeError: o
|
4910
|
-
} =
|
4911
|
-
return { dropzone:
|
4910
|
+
} = Is(e);
|
4911
|
+
return { dropzone: Mr({
|
4912
4912
|
accept: {
|
4913
4913
|
"audio/wav": [".wav"],
|
4914
4914
|
"audio/mp3": [".mp3"],
|
@@ -4918,9 +4918,9 @@ const Ps = (e) => ({
|
|
4918
4918
|
minSize: e.minSizeBytes,
|
4919
4919
|
maxSize: e.maxSizeBytes,
|
4920
4920
|
onDropAccepted: async (s) => {
|
4921
|
-
const c = await Promise.all(s.map((p) =>
|
4921
|
+
const c = await Promise.all(s.map((p) => Cs(p)));
|
4922
4922
|
try {
|
4923
|
-
const l = (await Promise.all(c.map(
|
4923
|
+
const l = (await Promise.all(c.map(_s))).filter((x) => x.duration <= (e.maxDurationS ?? 1 / 0) ? !0 : (t(x), !1)), u = e.files ?? [], f = ks([...u, ...l]), m = f.slice(0, e.maxFileCount ?? f.length);
|
4924
4924
|
e.onFileAccepted(m);
|
4925
4925
|
} catch (p) {
|
4926
4926
|
r(p);
|
@@ -4933,9 +4933,9 @@ const Ps = (e) => ({
|
|
4933
4933
|
});
|
4934
4934
|
}
|
4935
4935
|
}), ...e };
|
4936
|
-
},
|
4936
|
+
}, $r = me.createContext(
|
4937
4937
|
{}
|
4938
|
-
),
|
4938
|
+
), bp = () => me.useContext($r), zs = st(ht, {
|
4939
4939
|
position: "relative",
|
4940
4940
|
display: "flex",
|
4941
4941
|
flexDirection: "column",
|
@@ -4944,8 +4944,8 @@ const Ps = (e) => ({
|
|
4944
4944
|
width: "100%",
|
4945
4945
|
gap: "8px",
|
4946
4946
|
height: "100%"
|
4947
|
-
}),
|
4948
|
-
const i =
|
4947
|
+
}), Ls = ({ children: e, ...t }) => {
|
4948
|
+
const i = Bs(t), {
|
4949
4949
|
files: n,
|
4950
4950
|
onFileAccepted: r,
|
4951
4951
|
onDelete: o,
|
@@ -4956,43 +4956,91 @@ const Ps = (e) => ({
|
|
4956
4956
|
onError: l,
|
4957
4957
|
...u
|
4958
4958
|
} = t;
|
4959
|
-
return /* @__PURE__ */
|
4960
|
-
/* @__PURE__ */
|
4959
|
+
return /* @__PURE__ */ Fe.jsx($r.Provider, { value: i, children: /* @__PURE__ */ Fe.jsxs(zs, { ...u, ...i.dropzone.getRootProps(), children: [
|
4960
|
+
/* @__PURE__ */ Fe.jsx("input", { ...i.dropzone.getInputProps() }),
|
4961
4961
|
e
|
4962
4962
|
] }) });
|
4963
|
-
}
|
4964
|
-
|
4963
|
+
}, Ms = st(ht, {
|
4964
|
+
width: "100%",
|
4965
|
+
height: "100%",
|
4966
|
+
display: "flex",
|
4967
|
+
overflow: "hidden",
|
4968
|
+
borderRadius: "16px",
|
4969
|
+
background: "#ffffff10",
|
4970
|
+
flexDirection: "column",
|
4971
|
+
alignItems: "stretch",
|
4972
|
+
justifyContent: "center"
|
4973
|
+
}), $s = st(ht, {
|
4974
|
+
paddingTop: "32px",
|
4975
|
+
display: "flex",
|
4976
|
+
justifyContent: "center",
|
4977
|
+
fontFamily: "inherit",
|
4978
|
+
lineHeight: "1.4",
|
4979
|
+
fontSize: "22px",
|
4980
|
+
fontWeight: 600,
|
4981
|
+
color: "#ffffff"
|
4982
|
+
}), Ns = st(ht, {
|
4983
|
+
flex: 1,
|
4984
|
+
display: "flex",
|
4985
|
+
alignItems: "center",
|
4986
|
+
justifyContent: "center",
|
4987
|
+
padding: "32px"
|
4988
|
+
}), qs = st(ht, {
|
4989
|
+
borderTop: "1px solid #ffffff10",
|
4990
|
+
display: "flex",
|
4991
|
+
alignItems: "stretch",
|
4992
|
+
height: "60px"
|
4993
|
+
}), An = st(ht, {
|
4994
|
+
height: "252px",
|
4995
|
+
width: "222px",
|
4996
|
+
borderRadius: "8px",
|
4997
|
+
border: "1px solid #ffffff10",
|
4998
|
+
background: "#ffffff10",
|
4999
|
+
display: "flex",
|
5000
|
+
flexDirection: "column",
|
5001
|
+
alignItems: "center",
|
5002
|
+
justifyContent: "center"
|
5003
|
+
}), yp = () => /* @__PURE__ */ Fe.jsxs(Ms, { children: [
|
5004
|
+
/* @__PURE__ */ Fe.jsx($s, { children: /* @__PURE__ */ Fe.jsx("span", { children: "Select a voice" }) }),
|
5005
|
+
/* @__PURE__ */ Fe.jsxs(Ns, { children: [
|
5006
|
+
/* @__PURE__ */ Fe.jsx(An, {}),
|
5007
|
+
/* @__PURE__ */ Fe.jsx(An, {}),
|
5008
|
+
/* @__PURE__ */ Fe.jsx(An, {})
|
5009
|
+
] }),
|
5010
|
+
/* @__PURE__ */ Fe.jsx(qs, { children: /* @__PURE__ */ Fe.jsx("span", { children: "Footer" }) })
|
5011
|
+
] });
|
5012
|
+
function Nr(e, t) {
|
4965
5013
|
return function() {
|
4966
5014
|
return e.apply(t, arguments);
|
4967
5015
|
};
|
4968
5016
|
}
|
4969
|
-
const { toString:
|
4970
|
-
const i =
|
5017
|
+
const { toString: Us } = Object.prototype, { getPrototypeOf: si } = Object, pn = /* @__PURE__ */ ((e) => (t) => {
|
5018
|
+
const i = Us.call(t);
|
4971
5019
|
return e[i] || (e[i] = i.slice(8, -1).toLowerCase());
|
4972
|
-
})(/* @__PURE__ */ Object.create(null)),
|
4973
|
-
function
|
4974
|
-
return e !== null && !
|
5020
|
+
})(/* @__PURE__ */ Object.create(null)), Me = (e) => (e = e.toLowerCase(), (t) => pn(t) === e), dn = (e) => (t) => typeof t === e, { isArray: bt } = Array, Bt = dn("undefined");
|
5021
|
+
function Ws(e) {
|
5022
|
+
return e !== null && !Bt(e) && e.constructor !== null && !Bt(e.constructor) && Be(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
4975
5023
|
}
|
4976
|
-
const
|
4977
|
-
function
|
5024
|
+
const qr = Me("ArrayBuffer");
|
5025
|
+
function Vs(e) {
|
4978
5026
|
let t;
|
4979
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
5027
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qr(e.buffer), t;
|
4980
5028
|
}
|
4981
|
-
const
|
4982
|
-
if (
|
5029
|
+
const Hs = dn("string"), Be = dn("function"), Ur = dn("number"), un = (e) => e !== null && typeof e == "object", Ys = (e) => e === !0 || e === !1, en = (e) => {
|
5030
|
+
if (pn(e) !== "object")
|
4983
5031
|
return !1;
|
4984
|
-
const t =
|
5032
|
+
const t = si(e);
|
4985
5033
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
4986
|
-
},
|
5034
|
+
}, Ks = Me("Date"), Js = Me("File"), Gs = Me("Blob"), Xs = Me("FileList"), Zs = (e) => un(e) && Be(e.pipe), Qs = (e) => {
|
4987
5035
|
let t;
|
4988
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
4989
|
-
t === "object" &&
|
4990
|
-
},
|
4991
|
-
function
|
5036
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Be(e.append) && ((t = pn(e)) === "formdata" || // detect form-data instance
|
5037
|
+
t === "object" && Be(e.toString) && e.toString() === "[object FormData]"));
|
5038
|
+
}, ec = Me("URLSearchParams"), [tc, nc, ic, rc] = ["ReadableStream", "Request", "Response", "Headers"].map(Me), oc = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
5039
|
+
function Mt(e, t, { allOwnKeys: i = !1 } = {}) {
|
4992
5040
|
if (e === null || typeof e > "u")
|
4993
5041
|
return;
|
4994
5042
|
let n, r;
|
4995
|
-
if (typeof e != "object" && (e = [e]),
|
5043
|
+
if (typeof e != "object" && (e = [e]), bt(e))
|
4996
5044
|
for (n = 0, r = e.length; n < r; n++)
|
4997
5045
|
t.call(null, e[n], n, e);
|
4998
5046
|
else {
|
@@ -5002,7 +5050,7 @@ function zt(e, t, { allOwnKeys: i = !1 } = {}) {
|
|
5002
5050
|
s = o[n], t.call(null, e[s], s, e);
|
5003
5051
|
}
|
5004
5052
|
}
|
5005
|
-
function
|
5053
|
+
function Wr(e, t) {
|
5006
5054
|
t = t.toLowerCase();
|
5007
5055
|
const i = Object.keys(e);
|
5008
5056
|
let n = i.length, r;
|
@@ -5011,75 +5059,75 @@ function qr(e, t) {
|
|
5011
5059
|
return r;
|
5012
5060
|
return null;
|
5013
5061
|
}
|
5014
|
-
const
|
5015
|
-
function
|
5016
|
-
const { caseless: e } =
|
5017
|
-
const o = e &&
|
5018
|
-
|
5062
|
+
const nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Vr = (e) => !Bt(e) && e !== nt;
|
5063
|
+
function Yn() {
|
5064
|
+
const { caseless: e } = Vr(this) && this || {}, t = {}, i = (n, r) => {
|
5065
|
+
const o = e && Wr(t, r) || r;
|
5066
|
+
en(t[o]) && en(n) ? t[o] = Yn(t[o], n) : en(n) ? t[o] = Yn({}, n) : bt(n) ? t[o] = n.slice() : t[o] = n;
|
5019
5067
|
};
|
5020
5068
|
for (let n = 0, r = arguments.length; n < r; n++)
|
5021
|
-
arguments[n] &&
|
5069
|
+
arguments[n] && Mt(arguments[n], i);
|
5022
5070
|
return t;
|
5023
5071
|
}
|
5024
|
-
const
|
5025
|
-
i &&
|
5026
|
-
}, { allOwnKeys: n }), e),
|
5072
|
+
const ac = (e, t, i, { allOwnKeys: n } = {}) => (Mt(t, (r, o) => {
|
5073
|
+
i && Be(r) ? e[o] = Nr(r, i) : e[o] = r;
|
5074
|
+
}, { allOwnKeys: n }), e), sc = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), cc = (e, t, i, n) => {
|
5027
5075
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
5028
5076
|
value: t.prototype
|
5029
5077
|
}), i && Object.assign(e.prototype, i);
|
5030
|
-
},
|
5078
|
+
}, lc = (e, t, i, n) => {
|
5031
5079
|
let r, o, a;
|
5032
5080
|
const s = {};
|
5033
5081
|
if (t = t || {}, e == null) return t;
|
5034
5082
|
do {
|
5035
5083
|
for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
|
5036
5084
|
a = r[o], (!n || n(a, e, t)) && !s[a] && (t[a] = e[a], s[a] = !0);
|
5037
|
-
e = i !== !1 &&
|
5085
|
+
e = i !== !1 && si(e);
|
5038
5086
|
} while (e && (!i || i(e, t)) && e !== Object.prototype);
|
5039
5087
|
return t;
|
5040
|
-
},
|
5088
|
+
}, pc = (e, t, i) => {
|
5041
5089
|
e = String(e), (i === void 0 || i > e.length) && (i = e.length), i -= t.length;
|
5042
5090
|
const n = e.indexOf(t, i);
|
5043
5091
|
return n !== -1 && n === i;
|
5044
|
-
},
|
5092
|
+
}, dc = (e) => {
|
5045
5093
|
if (!e) return null;
|
5046
|
-
if (
|
5094
|
+
if (bt(e)) return e;
|
5047
5095
|
let t = e.length;
|
5048
|
-
if (!
|
5096
|
+
if (!Ur(t)) return null;
|
5049
5097
|
const i = new Array(t);
|
5050
5098
|
for (; t-- > 0; )
|
5051
5099
|
i[t] = e[t];
|
5052
5100
|
return i;
|
5053
|
-
},
|
5101
|
+
}, uc = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && si(Uint8Array)), fc = (e, t) => {
|
5054
5102
|
const n = (e && e[Symbol.iterator]).call(e);
|
5055
5103
|
let r;
|
5056
5104
|
for (; (r = n.next()) && !r.done; ) {
|
5057
5105
|
const o = r.value;
|
5058
5106
|
t.call(e, o[0], o[1]);
|
5059
5107
|
}
|
5060
|
-
},
|
5108
|
+
}, mc = (e, t) => {
|
5061
5109
|
let i;
|
5062
5110
|
const n = [];
|
5063
5111
|
for (; (i = e.exec(t)) !== null; )
|
5064
5112
|
n.push(i);
|
5065
5113
|
return n;
|
5066
|
-
},
|
5114
|
+
}, xc = Me("HTMLFormElement"), vc = (e) => e.toLowerCase().replace(
|
5067
5115
|
/[-_\s]([a-z\d])(\w*)/g,
|
5068
5116
|
function(i, n, r) {
|
5069
5117
|
return n.toUpperCase() + r;
|
5070
5118
|
}
|
5071
|
-
),
|
5119
|
+
), ir = (({ hasOwnProperty: e }) => (t, i) => e.call(t, i))(Object.prototype), gc = Me("RegExp"), Hr = (e, t) => {
|
5072
5120
|
const i = Object.getOwnPropertyDescriptors(e), n = {};
|
5073
|
-
|
5121
|
+
Mt(i, (r, o) => {
|
5074
5122
|
let a;
|
5075
5123
|
(a = t(r, o, e)) !== !1 && (n[o] = a || r);
|
5076
5124
|
}), Object.defineProperties(e, n);
|
5077
|
-
},
|
5078
|
-
|
5079
|
-
if (
|
5125
|
+
}, hc = (e) => {
|
5126
|
+
Hr(e, (t, i) => {
|
5127
|
+
if (Be(e) && ["arguments", "caller", "callee"].indexOf(i) !== -1)
|
5080
5128
|
return !1;
|
5081
5129
|
const n = e[i];
|
5082
|
-
if (
|
5130
|
+
if (Be(n)) {
|
5083
5131
|
if (t.enumerable = !1, "writable" in t) {
|
5084
5132
|
t.writable = !1;
|
5085
5133
|
return;
|
@@ -5089,111 +5137,111 @@ const tc = (e, t, i, { allOwnKeys: n } = {}) => (zt(t, (r, o) => {
|
|
5089
5137
|
});
|
5090
5138
|
}
|
5091
5139
|
});
|
5092
|
-
},
|
5140
|
+
}, bc = (e, t) => {
|
5093
5141
|
const i = {}, n = (r) => {
|
5094
5142
|
r.forEach((o) => {
|
5095
5143
|
i[o] = !0;
|
5096
5144
|
});
|
5097
5145
|
};
|
5098
|
-
return
|
5099
|
-
},
|
5100
|
-
},
|
5101
|
-
DIGIT:
|
5102
|
-
ALPHA:
|
5103
|
-
ALPHA_DIGIT:
|
5104
|
-
},
|
5146
|
+
return bt(e) ? n(e) : n(String(e).split(t)), i;
|
5147
|
+
}, yc = () => {
|
5148
|
+
}, wc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Cn = "abcdefghijklmnopqrstuvwxyz", rr = "0123456789", Yr = {
|
5149
|
+
DIGIT: rr,
|
5150
|
+
ALPHA: Cn,
|
5151
|
+
ALPHA_DIGIT: Cn + Cn.toUpperCase() + rr
|
5152
|
+
}, Ec = (e = 16, t = Yr.ALPHA_DIGIT) => {
|
5105
5153
|
let i = "";
|
5106
5154
|
const { length: n } = t;
|
5107
5155
|
for (; e--; )
|
5108
5156
|
i += t[Math.random() * n | 0];
|
5109
5157
|
return i;
|
5110
5158
|
};
|
5111
|
-
function
|
5112
|
-
return !!(e &&
|
5159
|
+
function Sc(e) {
|
5160
|
+
return !!(e && Be(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
5113
5161
|
}
|
5114
|
-
const
|
5162
|
+
const Rc = (e) => {
|
5115
5163
|
const t = new Array(10), i = (n, r) => {
|
5116
|
-
if (
|
5164
|
+
if (un(n)) {
|
5117
5165
|
if (t.indexOf(n) >= 0)
|
5118
5166
|
return;
|
5119
5167
|
if (!("toJSON" in n)) {
|
5120
5168
|
t[r] = n;
|
5121
|
-
const o =
|
5122
|
-
return
|
5169
|
+
const o = bt(n) ? [] : {};
|
5170
|
+
return Mt(n, (a, s) => {
|
5123
5171
|
const c = i(a, r + 1);
|
5124
|
-
!
|
5172
|
+
!Bt(c) && (o[s] = c);
|
5125
5173
|
}), t[r] = void 0, o;
|
5126
5174
|
}
|
5127
5175
|
}
|
5128
5176
|
return n;
|
5129
5177
|
};
|
5130
5178
|
return i(e, 0);
|
5131
|
-
},
|
5132
|
-
r ===
|
5179
|
+
}, Tc = Me("AsyncFunction"), kc = (e) => e && (un(e) || Be(e)) && Be(e.then) && Be(e.catch), Kr = ((e, t) => e ? setImmediate : t ? ((i, n) => (nt.addEventListener("message", ({ source: r, data: o }) => {
|
5180
|
+
r === nt && o === i && n.length && n.shift()();
|
5133
5181
|
}, !1), (r) => {
|
5134
|
-
n.push(r),
|
5182
|
+
n.push(r), nt.postMessage(i, "*");
|
5135
5183
|
}))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
|
5136
5184
|
typeof setImmediate == "function",
|
5137
|
-
|
5138
|
-
),
|
5139
|
-
isArray:
|
5140
|
-
isArrayBuffer:
|
5141
|
-
isBuffer:
|
5142
|
-
isFormData:
|
5143
|
-
isArrayBufferView:
|
5144
|
-
isString:
|
5145
|
-
isNumber:
|
5146
|
-
isBoolean:
|
5147
|
-
isObject:
|
5148
|
-
isPlainObject:
|
5149
|
-
isReadableStream:
|
5150
|
-
isRequest:
|
5151
|
-
isResponse:
|
5152
|
-
isHeaders:
|
5153
|
-
isUndefined:
|
5154
|
-
isDate:
|
5155
|
-
isFile:
|
5156
|
-
isBlob:
|
5157
|
-
isRegExp:
|
5158
|
-
isFunction:
|
5159
|
-
isStream:
|
5160
|
-
isURLSearchParams:
|
5161
|
-
isTypedArray:
|
5162
|
-
isFileList:
|
5163
|
-
forEach:
|
5164
|
-
merge:
|
5165
|
-
extend:
|
5166
|
-
trim:
|
5167
|
-
stripBOM:
|
5168
|
-
inherits:
|
5169
|
-
toFlatObject:
|
5170
|
-
kindOf:
|
5171
|
-
kindOfTest:
|
5172
|
-
endsWith:
|
5173
|
-
toArray:
|
5174
|
-
forEachEntry:
|
5175
|
-
matchAll:
|
5176
|
-
isHTMLForm:
|
5177
|
-
hasOwnProperty:
|
5178
|
-
hasOwnProp:
|
5185
|
+
Be(nt.postMessage)
|
5186
|
+
), Oc = typeof queueMicrotask < "u" ? queueMicrotask.bind(nt) : typeof process < "u" && process.nextTick || Kr, v = {
|
5187
|
+
isArray: bt,
|
5188
|
+
isArrayBuffer: qr,
|
5189
|
+
isBuffer: Ws,
|
5190
|
+
isFormData: Qs,
|
5191
|
+
isArrayBufferView: Vs,
|
5192
|
+
isString: Hs,
|
5193
|
+
isNumber: Ur,
|
5194
|
+
isBoolean: Ys,
|
5195
|
+
isObject: un,
|
5196
|
+
isPlainObject: en,
|
5197
|
+
isReadableStream: tc,
|
5198
|
+
isRequest: nc,
|
5199
|
+
isResponse: ic,
|
5200
|
+
isHeaders: rc,
|
5201
|
+
isUndefined: Bt,
|
5202
|
+
isDate: Ks,
|
5203
|
+
isFile: Js,
|
5204
|
+
isBlob: Gs,
|
5205
|
+
isRegExp: gc,
|
5206
|
+
isFunction: Be,
|
5207
|
+
isStream: Zs,
|
5208
|
+
isURLSearchParams: ec,
|
5209
|
+
isTypedArray: uc,
|
5210
|
+
isFileList: Xs,
|
5211
|
+
forEach: Mt,
|
5212
|
+
merge: Yn,
|
5213
|
+
extend: ac,
|
5214
|
+
trim: oc,
|
5215
|
+
stripBOM: sc,
|
5216
|
+
inherits: cc,
|
5217
|
+
toFlatObject: lc,
|
5218
|
+
kindOf: pn,
|
5219
|
+
kindOfTest: Me,
|
5220
|
+
endsWith: pc,
|
5221
|
+
toArray: dc,
|
5222
|
+
forEachEntry: fc,
|
5223
|
+
matchAll: mc,
|
5224
|
+
isHTMLForm: xc,
|
5225
|
+
hasOwnProperty: ir,
|
5226
|
+
hasOwnProp: ir,
|
5179
5227
|
// an alias to avoid ESLint no-prototype-builtins detection
|
5180
|
-
reduceDescriptors:
|
5181
|
-
freezeMethods:
|
5182
|
-
toObjectSet:
|
5183
|
-
toCamelCase:
|
5184
|
-
noop:
|
5185
|
-
toFiniteNumber:
|
5186
|
-
findKey:
|
5187
|
-
global:
|
5188
|
-
isContextDefined:
|
5189
|
-
ALPHABET:
|
5190
|
-
generateString:
|
5191
|
-
isSpecCompliantForm:
|
5192
|
-
toJSONObject:
|
5193
|
-
isAsyncFn:
|
5194
|
-
isThenable:
|
5195
|
-
setImmediate:
|
5196
|
-
asap:
|
5228
|
+
reduceDescriptors: Hr,
|
5229
|
+
freezeMethods: hc,
|
5230
|
+
toObjectSet: bc,
|
5231
|
+
toCamelCase: vc,
|
5232
|
+
noop: yc,
|
5233
|
+
toFiniteNumber: wc,
|
5234
|
+
findKey: Wr,
|
5235
|
+
global: nt,
|
5236
|
+
isContextDefined: Vr,
|
5237
|
+
ALPHABET: Yr,
|
5238
|
+
generateString: Ec,
|
5239
|
+
isSpecCompliantForm: Sc,
|
5240
|
+
toJSONObject: Rc,
|
5241
|
+
isAsyncFn: Tc,
|
5242
|
+
isThenable: kc,
|
5243
|
+
setImmediate: Kr,
|
5244
|
+
asap: Oc
|
5197
5245
|
};
|
5198
5246
|
function H(e, t, i, n, r) {
|
5199
5247
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), i && (this.config = i), n && (this.request = n), r && (this.response = r, this.status = r.status ? r.status : null);
|
@@ -5219,7 +5267,7 @@ v.inherits(H, Error, {
|
|
5219
5267
|
};
|
5220
5268
|
}
|
5221
5269
|
});
|
5222
|
-
const
|
5270
|
+
const Jr = H.prototype, Gr = {};
|
5223
5271
|
[
|
5224
5272
|
"ERR_BAD_OPTION_VALUE",
|
5225
5273
|
"ERR_BAD_OPTION",
|
@@ -5235,35 +5283,35 @@ const Yr = H.prototype, Kr = {};
|
|
5235
5283
|
"ERR_INVALID_URL"
|
5236
5284
|
// eslint-disable-next-line func-names
|
5237
5285
|
].forEach((e) => {
|
5238
|
-
|
5286
|
+
Gr[e] = { value: e };
|
5239
5287
|
});
|
5240
|
-
Object.defineProperties(H,
|
5241
|
-
Object.defineProperty(
|
5288
|
+
Object.defineProperties(H, Gr);
|
5289
|
+
Object.defineProperty(Jr, "isAxiosError", { value: !0 });
|
5242
5290
|
H.from = (e, t, i, n, r, o) => {
|
5243
|
-
const a = Object.create(
|
5291
|
+
const a = Object.create(Jr);
|
5244
5292
|
return v.toFlatObject(e, a, function(c) {
|
5245
5293
|
return c !== Error.prototype;
|
5246
5294
|
}, (s) => s !== "isAxiosError"), H.call(a, e.message, t, i, n, r), a.cause = e, a.name = e.name, o && Object.assign(a, o), a;
|
5247
5295
|
};
|
5248
|
-
const
|
5249
|
-
function
|
5296
|
+
const _c = null;
|
5297
|
+
function Kn(e) {
|
5250
5298
|
return v.isPlainObject(e) || v.isArray(e);
|
5251
5299
|
}
|
5252
|
-
function
|
5300
|
+
function Xr(e) {
|
5253
5301
|
return v.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
5254
5302
|
}
|
5255
|
-
function
|
5303
|
+
function or(e, t, i) {
|
5256
5304
|
return e ? e.concat(t).map(function(r, o) {
|
5257
|
-
return r =
|
5305
|
+
return r = Xr(r), !i && o ? "[" + r + "]" : r;
|
5258
5306
|
}).join(i ? "." : "") : t;
|
5259
5307
|
}
|
5260
|
-
function
|
5261
|
-
return v.isArray(e) && !e.some(
|
5308
|
+
function Ac(e) {
|
5309
|
+
return v.isArray(e) && !e.some(Kn);
|
5262
5310
|
}
|
5263
|
-
const
|
5311
|
+
const Cc = v.toFlatObject(v, {}, null, function(t) {
|
5264
5312
|
return /^is[A-Z]/.test(t);
|
5265
5313
|
});
|
5266
|
-
function
|
5314
|
+
function fn(e, t, i) {
|
5267
5315
|
if (!v.isObject(e))
|
5268
5316
|
throw new TypeError("target must be an object");
|
5269
5317
|
t = t || new FormData(), i = v.toFlatObject(i, {
|
@@ -5289,21 +5337,21 @@ function dn(e, t, i) {
|
|
5289
5337
|
if (x && !y && typeof x == "object") {
|
5290
5338
|
if (v.endsWith(g, "{}"))
|
5291
5339
|
g = n ? g : g.slice(0, -2), x = JSON.stringify(x);
|
5292
|
-
else if (v.isArray(x) &&
|
5293
|
-
return g =
|
5340
|
+
else if (v.isArray(x) && Ac(x) || (v.isFileList(x) || v.endsWith(g, "[]")) && (h = v.toArray(x)))
|
5341
|
+
return g = Xr(g), h.forEach(function(A, T) {
|
5294
5342
|
!(v.isUndefined(A) || A === null) && t.append(
|
5295
5343
|
// eslint-disable-next-line no-nested-ternary
|
5296
|
-
a === !0 ?
|
5344
|
+
a === !0 ? or([g], T, o) : a === null ? g : g + "[]",
|
5297
5345
|
p(A)
|
5298
5346
|
);
|
5299
5347
|
}), !1;
|
5300
5348
|
}
|
5301
|
-
return
|
5349
|
+
return Kn(x) ? !0 : (t.append(or(y, g, o), p(x)), !1);
|
5302
5350
|
}
|
5303
|
-
const u = [], f = Object.assign(
|
5351
|
+
const u = [], f = Object.assign(Cc, {
|
5304
5352
|
defaultVisitor: l,
|
5305
5353
|
convertValue: p,
|
5306
|
-
isVisitable:
|
5354
|
+
isVisitable: Kn
|
5307
5355
|
});
|
5308
5356
|
function m(x, g) {
|
5309
5357
|
if (!v.isUndefined(x)) {
|
@@ -5324,7 +5372,7 @@ function dn(e, t, i) {
|
|
5324
5372
|
throw new TypeError("data must be an object");
|
5325
5373
|
return m(e), t;
|
5326
5374
|
}
|
5327
|
-
function
|
5375
|
+
function ar(e) {
|
5328
5376
|
const t = {
|
5329
5377
|
"!": "%21",
|
5330
5378
|
"'": "%27",
|
@@ -5338,40 +5386,40 @@ function ir(e) {
|
|
5338
5386
|
return t[n];
|
5339
5387
|
});
|
5340
5388
|
}
|
5341
|
-
function
|
5342
|
-
this._pairs = [], e &&
|
5389
|
+
function ci(e, t) {
|
5390
|
+
this._pairs = [], e && fn(e, this, t);
|
5343
5391
|
}
|
5344
|
-
const
|
5345
|
-
|
5392
|
+
const Zr = ci.prototype;
|
5393
|
+
Zr.append = function(t, i) {
|
5346
5394
|
this._pairs.push([t, i]);
|
5347
5395
|
};
|
5348
|
-
|
5396
|
+
Zr.toString = function(t) {
|
5349
5397
|
const i = t ? function(n) {
|
5350
|
-
return t.call(this, n,
|
5351
|
-
} :
|
5398
|
+
return t.call(this, n, ar);
|
5399
|
+
} : ar;
|
5352
5400
|
return this._pairs.map(function(r) {
|
5353
5401
|
return i(r[0]) + "=" + i(r[1]);
|
5354
5402
|
}, "").join("&");
|
5355
5403
|
};
|
5356
|
-
function
|
5404
|
+
function Dc(e) {
|
5357
5405
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
5358
5406
|
}
|
5359
|
-
function
|
5407
|
+
function Qr(e, t, i) {
|
5360
5408
|
if (!t)
|
5361
5409
|
return e;
|
5362
|
-
const n = i && i.encode ||
|
5410
|
+
const n = i && i.encode || Dc;
|
5363
5411
|
v.isFunction(i) && (i = {
|
5364
5412
|
serialize: i
|
5365
5413
|
});
|
5366
5414
|
const r = i && i.serialize;
|
5367
5415
|
let o;
|
5368
|
-
if (r ? o = r(t, i) : o = v.isURLSearchParams(t) ? t.toString() : new
|
5416
|
+
if (r ? o = r(t, i) : o = v.isURLSearchParams(t) ? t.toString() : new ci(t, i).toString(n), o) {
|
5369
5417
|
const a = e.indexOf("#");
|
5370
5418
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
5371
5419
|
}
|
5372
5420
|
return e;
|
5373
5421
|
}
|
5374
|
-
class
|
5422
|
+
class sr {
|
5375
5423
|
constructor() {
|
5376
5424
|
this.handlers = [];
|
5377
5425
|
}
|
@@ -5425,41 +5473,41 @@ class rr {
|
|
5425
5473
|
});
|
5426
5474
|
}
|
5427
5475
|
}
|
5428
|
-
const
|
5476
|
+
const eo = {
|
5429
5477
|
silentJSONParsing: !0,
|
5430
5478
|
forcedJSONParsing: !0,
|
5431
5479
|
clarifyTimeoutError: !1
|
5432
|
-
},
|
5480
|
+
}, jc = typeof URLSearchParams < "u" ? URLSearchParams : ci, Fc = typeof FormData < "u" ? FormData : null, Pc = typeof Blob < "u" ? Blob : null, Ic = {
|
5433
5481
|
isBrowser: !0,
|
5434
5482
|
classes: {
|
5435
|
-
URLSearchParams:
|
5436
|
-
FormData:
|
5437
|
-
Blob:
|
5483
|
+
URLSearchParams: jc,
|
5484
|
+
FormData: Fc,
|
5485
|
+
Blob: Pc
|
5438
5486
|
},
|
5439
5487
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
5440
|
-
},
|
5441
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
5488
|
+
}, li = typeof window < "u" && typeof document < "u", Jn = typeof navigator == "object" && navigator || void 0, Bc = li && (!Jn || ["ReactNative", "NativeScript", "NS"].indexOf(Jn.product) < 0), zc = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
5489
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Lc = li && window.location.href || "http://localhost", Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5442
5490
|
__proto__: null,
|
5443
|
-
hasBrowserEnv:
|
5444
|
-
hasStandardBrowserEnv:
|
5445
|
-
hasStandardBrowserWebWorkerEnv:
|
5446
|
-
navigator:
|
5447
|
-
origin:
|
5491
|
+
hasBrowserEnv: li,
|
5492
|
+
hasStandardBrowserEnv: Bc,
|
5493
|
+
hasStandardBrowserWebWorkerEnv: zc,
|
5494
|
+
navigator: Jn,
|
5495
|
+
origin: Lc
|
5448
5496
|
}, Symbol.toStringTag, { value: "Module" })), Ae = {
|
5449
|
-
...
|
5450
|
-
...
|
5497
|
+
...Mc,
|
5498
|
+
...Ic
|
5451
5499
|
};
|
5452
|
-
function
|
5453
|
-
return
|
5500
|
+
function $c(e, t) {
|
5501
|
+
return fn(e, new Ae.classes.URLSearchParams(), Object.assign({
|
5454
5502
|
visitor: function(i, n, r, o) {
|
5455
5503
|
return Ae.isNode && v.isBuffer(i) ? (this.append(n, i.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
5456
5504
|
}
|
5457
5505
|
}, t));
|
5458
5506
|
}
|
5459
|
-
function
|
5507
|
+
function Nc(e) {
|
5460
5508
|
return v.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
5461
5509
|
}
|
5462
|
-
function
|
5510
|
+
function qc(e) {
|
5463
5511
|
const t = {}, i = Object.keys(e);
|
5464
5512
|
let n;
|
5465
5513
|
const r = i.length;
|
@@ -5468,22 +5516,22 @@ function zc(e) {
|
|
5468
5516
|
o = i[n], t[o] = e[o];
|
5469
5517
|
return t;
|
5470
5518
|
}
|
5471
|
-
function
|
5519
|
+
function to(e) {
|
5472
5520
|
function t(i, n, r, o) {
|
5473
5521
|
let a = i[o++];
|
5474
5522
|
if (a === "__proto__") return !0;
|
5475
5523
|
const s = Number.isFinite(+a), c = o >= i.length;
|
5476
|
-
return a = !a && v.isArray(r) ? r.length : a, c ? (v.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !s) : ((!r[a] || !v.isObject(r[a])) && (r[a] = []), t(i, n, r[a], o) && v.isArray(r[a]) && (r[a] =
|
5524
|
+
return a = !a && v.isArray(r) ? r.length : a, c ? (v.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !s) : ((!r[a] || !v.isObject(r[a])) && (r[a] = []), t(i, n, r[a], o) && v.isArray(r[a]) && (r[a] = qc(r[a])), !s);
|
5477
5525
|
}
|
5478
5526
|
if (v.isFormData(e) && v.isFunction(e.entries)) {
|
5479
5527
|
const i = {};
|
5480
5528
|
return v.forEachEntry(e, (n, r) => {
|
5481
|
-
t(
|
5529
|
+
t(Nc(n), r, i, 0);
|
5482
5530
|
}), i;
|
5483
5531
|
}
|
5484
5532
|
return null;
|
5485
5533
|
}
|
5486
|
-
function
|
5534
|
+
function Uc(e, t, i) {
|
5487
5535
|
if (v.isString(e))
|
5488
5536
|
try {
|
5489
5537
|
return (t || JSON.parse)(e), v.trim(e);
|
@@ -5493,13 +5541,13 @@ function Lc(e, t, i) {
|
|
5493
5541
|
}
|
5494
5542
|
return (0, JSON.stringify)(e);
|
5495
5543
|
}
|
5496
|
-
const
|
5497
|
-
transitional:
|
5544
|
+
const $t = {
|
5545
|
+
transitional: eo,
|
5498
5546
|
adapter: ["xhr", "http", "fetch"],
|
5499
5547
|
transformRequest: [function(t, i) {
|
5500
5548
|
const n = i.getContentType() || "", r = n.indexOf("application/json") > -1, o = v.isObject(t);
|
5501
5549
|
if (o && v.isHTMLForm(t) && (t = new FormData(t)), v.isFormData(t))
|
5502
|
-
return r ? JSON.stringify(
|
5550
|
+
return r ? JSON.stringify(to(t)) : t;
|
5503
5551
|
if (v.isArrayBuffer(t) || v.isBuffer(t) || v.isStream(t) || v.isFile(t) || v.isBlob(t) || v.isReadableStream(t))
|
5504
5552
|
return t;
|
5505
5553
|
if (v.isArrayBufferView(t))
|
@@ -5509,20 +5557,20 @@ const Lt = {
|
|
5509
5557
|
let s;
|
5510
5558
|
if (o) {
|
5511
5559
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
5512
|
-
return
|
5560
|
+
return $c(t, this.formSerializer).toString();
|
5513
5561
|
if ((s = v.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
5514
5562
|
const c = this.env && this.env.FormData;
|
5515
|
-
return
|
5563
|
+
return fn(
|
5516
5564
|
s ? { "files[]": t } : t,
|
5517
5565
|
c && new c(),
|
5518
5566
|
this.formSerializer
|
5519
5567
|
);
|
5520
5568
|
}
|
5521
5569
|
}
|
5522
|
-
return o || r ? (i.setContentType("application/json", !1),
|
5570
|
+
return o || r ? (i.setContentType("application/json", !1), Uc(t)) : t;
|
5523
5571
|
}],
|
5524
5572
|
transformResponse: [function(t) {
|
5525
|
-
const i = this.transitional ||
|
5573
|
+
const i = this.transitional || $t.transitional, n = i && i.forcedJSONParsing, r = this.responseType === "json";
|
5526
5574
|
if (v.isResponse(t) || v.isReadableStream(t))
|
5527
5575
|
return t;
|
5528
5576
|
if (t && v.isString(t) && (n && !this.responseType || r)) {
|
@@ -5560,9 +5608,9 @@ const Lt = {
|
|
5560
5608
|
}
|
5561
5609
|
};
|
5562
5610
|
v.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
5563
|
-
|
5611
|
+
$t.headers[e] = {};
|
5564
5612
|
});
|
5565
|
-
const
|
5613
|
+
const Wc = v.toObjectSet([
|
5566
5614
|
"age",
|
5567
5615
|
"authorization",
|
5568
5616
|
"content-length",
|
@@ -5580,29 +5628,29 @@ const Mc = v.toObjectSet([
|
|
5580
5628
|
"referer",
|
5581
5629
|
"retry-after",
|
5582
5630
|
"user-agent"
|
5583
|
-
]),
|
5631
|
+
]), Vc = (e) => {
|
5584
5632
|
const t = {};
|
5585
5633
|
let i, n, r;
|
5586
5634
|
return e && e.split(`
|
5587
5635
|
`).forEach(function(a) {
|
5588
|
-
r = a.indexOf(":"), i = a.substring(0, r).trim().toLowerCase(), n = a.substring(r + 1).trim(), !(!i || t[i] &&
|
5636
|
+
r = a.indexOf(":"), i = a.substring(0, r).trim().toLowerCase(), n = a.substring(r + 1).trim(), !(!i || t[i] && Wc[i]) && (i === "set-cookie" ? t[i] ? t[i].push(n) : t[i] = [n] : t[i] = t[i] ? t[i] + ", " + n : n);
|
5589
5637
|
}), t;
|
5590
|
-
},
|
5591
|
-
function
|
5638
|
+
}, cr = Symbol("internals");
|
5639
|
+
function jt(e) {
|
5592
5640
|
return e && String(e).trim().toLowerCase();
|
5593
5641
|
}
|
5594
|
-
function
|
5595
|
-
return e === !1 || e == null ? e : v.isArray(e) ? e.map(
|
5642
|
+
function tn(e) {
|
5643
|
+
return e === !1 || e == null ? e : v.isArray(e) ? e.map(tn) : String(e);
|
5596
5644
|
}
|
5597
|
-
function
|
5645
|
+
function Hc(e) {
|
5598
5646
|
const t = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
5599
5647
|
let n;
|
5600
5648
|
for (; n = i.exec(e); )
|
5601
5649
|
t[n[1]] = n[2];
|
5602
5650
|
return t;
|
5603
5651
|
}
|
5604
|
-
const
|
5605
|
-
function
|
5652
|
+
const Yc = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
5653
|
+
function Dn(e, t, i, n, r) {
|
5606
5654
|
if (v.isFunction(n))
|
5607
5655
|
return n.call(this, t, i);
|
5608
5656
|
if (r && (t = i), !!v.isString(t)) {
|
@@ -5612,10 +5660,10 @@ function _n(e, t, i, n, r) {
|
|
5612
5660
|
return n.test(t);
|
5613
5661
|
}
|
5614
5662
|
}
|
5615
|
-
function
|
5663
|
+
function Kc(e) {
|
5616
5664
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, i, n) => i.toUpperCase() + n);
|
5617
5665
|
}
|
5618
|
-
function
|
5666
|
+
function Jc(e, t) {
|
5619
5667
|
const i = v.toCamelCase(" " + t);
|
5620
5668
|
["get", "set", "has"].forEach((n) => {
|
5621
5669
|
Object.defineProperty(e, n + i, {
|
@@ -5626,24 +5674,24 @@ function Wc(e, t) {
|
|
5626
5674
|
});
|
5627
5675
|
});
|
5628
5676
|
}
|
5629
|
-
class
|
5677
|
+
class Ie {
|
5630
5678
|
constructor(t) {
|
5631
5679
|
t && this.set(t);
|
5632
5680
|
}
|
5633
5681
|
set(t, i, n) {
|
5634
5682
|
const r = this;
|
5635
5683
|
function o(s, c, p) {
|
5636
|
-
const l =
|
5684
|
+
const l = jt(c);
|
5637
5685
|
if (!l)
|
5638
5686
|
throw new Error("header name must be a non-empty string");
|
5639
5687
|
const u = v.findKey(r, l);
|
5640
|
-
(!u || r[u] === void 0 || p === !0 || p === void 0 && r[u] !== !1) && (r[u || c] =
|
5688
|
+
(!u || r[u] === void 0 || p === !0 || p === void 0 && r[u] !== !1) && (r[u || c] = tn(s));
|
5641
5689
|
}
|
5642
5690
|
const a = (s, c) => v.forEach(s, (p, l) => o(p, l, c));
|
5643
5691
|
if (v.isPlainObject(t) || t instanceof this.constructor)
|
5644
5692
|
a(t, i);
|
5645
|
-
else if (v.isString(t) && (t = t.trim()) && !
|
5646
|
-
a(
|
5693
|
+
else if (v.isString(t) && (t = t.trim()) && !Yc(t))
|
5694
|
+
a(Vc(t), i);
|
5647
5695
|
else if (v.isHeaders(t))
|
5648
5696
|
for (const [s, c] of t.entries())
|
5649
5697
|
o(c, s, n);
|
@@ -5652,14 +5700,14 @@ class Pe {
|
|
5652
5700
|
return this;
|
5653
5701
|
}
|
5654
5702
|
get(t, i) {
|
5655
|
-
if (t =
|
5703
|
+
if (t = jt(t), t) {
|
5656
5704
|
const n = v.findKey(this, t);
|
5657
5705
|
if (n) {
|
5658
5706
|
const r = this[n];
|
5659
5707
|
if (!i)
|
5660
5708
|
return r;
|
5661
5709
|
if (i === !0)
|
5662
|
-
return
|
5710
|
+
return Hc(r);
|
5663
5711
|
if (v.isFunction(i))
|
5664
5712
|
return i.call(this, r, n);
|
5665
5713
|
if (v.isRegExp(i))
|
@@ -5669,9 +5717,9 @@ class Pe {
|
|
5669
5717
|
}
|
5670
5718
|
}
|
5671
5719
|
has(t, i) {
|
5672
|
-
if (t =
|
5720
|
+
if (t = jt(t), t) {
|
5673
5721
|
const n = v.findKey(this, t);
|
5674
|
-
return !!(n && this[n] !== void 0 && (!i ||
|
5722
|
+
return !!(n && this[n] !== void 0 && (!i || Dn(this, this[n], n, i)));
|
5675
5723
|
}
|
5676
5724
|
return !1;
|
5677
5725
|
}
|
@@ -5679,9 +5727,9 @@ class Pe {
|
|
5679
5727
|
const n = this;
|
5680
5728
|
let r = !1;
|
5681
5729
|
function o(a) {
|
5682
|
-
if (a =
|
5730
|
+
if (a = jt(a), a) {
|
5683
5731
|
const s = v.findKey(n, a);
|
5684
|
-
s && (!i ||
|
5732
|
+
s && (!i || Dn(n, n[s], s, i)) && (delete n[s], r = !0);
|
5685
5733
|
}
|
5686
5734
|
}
|
5687
5735
|
return v.isArray(t) ? t.forEach(o) : o(t), r;
|
@@ -5691,7 +5739,7 @@ class Pe {
|
|
5691
5739
|
let n = i.length, r = !1;
|
5692
5740
|
for (; n--; ) {
|
5693
5741
|
const o = i[n];
|
5694
|
-
(!t ||
|
5742
|
+
(!t || Dn(this, this[o], o, t, !0)) && (delete this[o], r = !0);
|
5695
5743
|
}
|
5696
5744
|
return r;
|
5697
5745
|
}
|
@@ -5700,11 +5748,11 @@ class Pe {
|
|
5700
5748
|
return v.forEach(this, (r, o) => {
|
5701
5749
|
const a = v.findKey(n, o);
|
5702
5750
|
if (a) {
|
5703
|
-
i[a] =
|
5751
|
+
i[a] = tn(r), delete i[o];
|
5704
5752
|
return;
|
5705
5753
|
}
|
5706
|
-
const s = t ?
|
5707
|
-
s !== o && delete i[o], i[s] =
|
5754
|
+
const s = t ? Kc(o) : String(o).trim();
|
5755
|
+
s !== o && delete i[o], i[s] = tn(r), n[s] = !0;
|
5708
5756
|
}), this;
|
5709
5757
|
}
|
5710
5758
|
concat(...t) {
|
@@ -5734,18 +5782,18 @@ class Pe {
|
|
5734
5782
|
return i.forEach((r) => n.set(r)), n;
|
5735
5783
|
}
|
5736
5784
|
static accessor(t) {
|
5737
|
-
const n = (this[
|
5785
|
+
const n = (this[cr] = this[cr] = {
|
5738
5786
|
accessors: {}
|
5739
5787
|
}).accessors, r = this.prototype;
|
5740
5788
|
function o(a) {
|
5741
|
-
const s =
|
5742
|
-
n[s] || (
|
5789
|
+
const s = jt(a);
|
5790
|
+
n[s] || (Jc(r, a), n[s] = !0);
|
5743
5791
|
}
|
5744
5792
|
return v.isArray(t) ? t.forEach(o) : o(t), this;
|
5745
5793
|
}
|
5746
5794
|
}
|
5747
|
-
|
5748
|
-
v.reduceDescriptors(
|
5795
|
+
Ie.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
5796
|
+
v.reduceDescriptors(Ie.prototype, ({ value: e }, t) => {
|
5749
5797
|
let i = t[0].toUpperCase() + t.slice(1);
|
5750
5798
|
return {
|
5751
5799
|
get: () => e,
|
@@ -5754,24 +5802,24 @@ v.reduceDescriptors(Pe.prototype, ({ value: e }, t) => {
|
|
5754
5802
|
}
|
5755
5803
|
};
|
5756
5804
|
});
|
5757
|
-
v.freezeMethods(
|
5758
|
-
function
|
5759
|
-
const i = this ||
|
5805
|
+
v.freezeMethods(Ie);
|
5806
|
+
function jn(e, t) {
|
5807
|
+
const i = this || $t, n = t || i, r = Ie.from(n.headers);
|
5760
5808
|
let o = n.data;
|
5761
5809
|
return v.forEach(e, function(s) {
|
5762
5810
|
o = s.call(i, o, r.normalize(), t ? t.status : void 0);
|
5763
5811
|
}), r.normalize(), o;
|
5764
5812
|
}
|
5765
|
-
function
|
5813
|
+
function no(e) {
|
5766
5814
|
return !!(e && e.__CANCEL__);
|
5767
5815
|
}
|
5768
|
-
function
|
5816
|
+
function yt(e, t, i) {
|
5769
5817
|
H.call(this, e ?? "canceled", H.ERR_CANCELED, t, i), this.name = "CanceledError";
|
5770
5818
|
}
|
5771
|
-
v.inherits(
|
5819
|
+
v.inherits(yt, H, {
|
5772
5820
|
__CANCEL__: !0
|
5773
5821
|
});
|
5774
|
-
function
|
5822
|
+
function io(e, t, i) {
|
5775
5823
|
const n = i.config.validateStatus;
|
5776
5824
|
!i.status || !n || n(i.status) ? e(i) : t(new H(
|
5777
5825
|
"Request failed with status code " + i.status,
|
@@ -5781,11 +5829,11 @@ function to(e, t, i) {
|
|
5781
5829
|
i
|
5782
5830
|
));
|
5783
5831
|
}
|
5784
|
-
function
|
5832
|
+
function Gc(e) {
|
5785
5833
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
5786
5834
|
return t && t[1] || "";
|
5787
5835
|
}
|
5788
|
-
function
|
5836
|
+
function Xc(e, t) {
|
5789
5837
|
e = e || 10;
|
5790
5838
|
const i = new Array(e), n = new Array(e);
|
5791
5839
|
let r = 0, o = 0, a;
|
@@ -5801,7 +5849,7 @@ function Hc(e, t) {
|
|
5801
5849
|
return m ? Math.round(f * 1e3 / m) : void 0;
|
5802
5850
|
};
|
5803
5851
|
}
|
5804
|
-
function
|
5852
|
+
function Zc(e, t) {
|
5805
5853
|
let i = 0, n = 1e3 / t, r, o;
|
5806
5854
|
const a = (p, l = Date.now()) => {
|
5807
5855
|
i = l, r = null, o && (clearTimeout(o), o = null), e.apply(null, p);
|
@@ -5813,10 +5861,10 @@ function Yc(e, t) {
|
|
5813
5861
|
}, n - u)));
|
5814
5862
|
}, () => r && a(r)];
|
5815
5863
|
}
|
5816
|
-
const
|
5864
|
+
const cn = (e, t, i = 3) => {
|
5817
5865
|
let n = 0;
|
5818
|
-
const r =
|
5819
|
-
return
|
5866
|
+
const r = Xc(50, 250);
|
5867
|
+
return Zc((o) => {
|
5820
5868
|
const a = o.loaded, s = o.lengthComputable ? o.total : void 0, c = a - n, p = r(c), l = a <= s;
|
5821
5869
|
n = a;
|
5822
5870
|
const u = {
|
@@ -5832,17 +5880,17 @@ const an = (e, t, i = 3) => {
|
|
5832
5880
|
};
|
5833
5881
|
e(u);
|
5834
5882
|
}, i);
|
5835
|
-
},
|
5883
|
+
}, lr = (e, t) => {
|
5836
5884
|
const i = e != null;
|
5837
5885
|
return [(n) => t[0]({
|
5838
5886
|
lengthComputable: i,
|
5839
5887
|
total: e,
|
5840
5888
|
loaded: n
|
5841
5889
|
}), t[1]];
|
5842
|
-
},
|
5890
|
+
}, pr = (e) => (...t) => v.asap(() => e(...t)), Qc = Ae.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (i) => (i = new URL(i, Ae.origin), e.protocol === i.protocol && e.host === i.host && (t || e.port === i.port)))(
|
5843
5891
|
new URL(Ae.origin),
|
5844
5892
|
Ae.navigator && /(msie|trident)/i.test(Ae.navigator.userAgent)
|
5845
|
-
) : () => !0,
|
5893
|
+
) : () => !0, el = Ae.hasStandardBrowserEnv ? (
|
5846
5894
|
// Standard browser envs support document.cookie
|
5847
5895
|
{
|
5848
5896
|
write(e, t, i, n, r, o) {
|
@@ -5869,17 +5917,17 @@ const an = (e, t, i = 3) => {
|
|
5869
5917
|
}
|
5870
5918
|
}
|
5871
5919
|
);
|
5872
|
-
function
|
5920
|
+
function tl(e) {
|
5873
5921
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
5874
5922
|
}
|
5875
|
-
function
|
5923
|
+
function nl(e, t) {
|
5876
5924
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
5877
5925
|
}
|
5878
|
-
function
|
5879
|
-
return e && !
|
5926
|
+
function ro(e, t) {
|
5927
|
+
return e && !tl(t) ? nl(e, t) : t;
|
5880
5928
|
}
|
5881
|
-
const
|
5882
|
-
function
|
5929
|
+
const dr = (e) => e instanceof Ie ? { ...e } : e;
|
5930
|
+
function at(e, t) {
|
5883
5931
|
t = t || {};
|
5884
5932
|
const i = {};
|
5885
5933
|
function n(p, l, u, f) {
|
@@ -5936,17 +5984,17 @@ function ot(e, t) {
|
|
5936
5984
|
socketPath: a,
|
5937
5985
|
responseEncoding: a,
|
5938
5986
|
validateStatus: s,
|
5939
|
-
headers: (p, l, u) => r(
|
5987
|
+
headers: (p, l, u) => r(dr(p), dr(l), u, !0)
|
5940
5988
|
};
|
5941
5989
|
return v.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
5942
5990
|
const u = c[l] || r, f = u(e[l], t[l], l);
|
5943
5991
|
v.isUndefined(f) && u !== s || (i[l] = f);
|
5944
5992
|
}), i;
|
5945
5993
|
}
|
5946
|
-
const
|
5947
|
-
const t =
|
5994
|
+
const oo = (e) => {
|
5995
|
+
const t = at({}, e);
|
5948
5996
|
let { data: i, withXSRFToken: n, xsrfHeaderName: r, xsrfCookieName: o, headers: a, auth: s } = t;
|
5949
|
-
t.headers = a =
|
5997
|
+
t.headers = a = Ie.from(a), t.url = Qr(ro(t.baseURL, t.url), e.params, e.paramsSerializer), s && a.set(
|
5950
5998
|
"Authorization",
|
5951
5999
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
5952
6000
|
);
|
@@ -5959,16 +6007,16 @@ const io = (e) => {
|
|
5959
6007
|
a.setContentType([p || "multipart/form-data", ...l].join("; "));
|
5960
6008
|
}
|
5961
6009
|
}
|
5962
|
-
if (Ae.hasStandardBrowserEnv && (n && v.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
5963
|
-
const p = r && o &&
|
6010
|
+
if (Ae.hasStandardBrowserEnv && (n && v.isFunction(n) && (n = n(t)), n || n !== !1 && Qc(t.url))) {
|
6011
|
+
const p = r && o && el.read(o);
|
5964
6012
|
p && a.set(r, p);
|
5965
6013
|
}
|
5966
6014
|
return t;
|
5967
|
-
},
|
6015
|
+
}, il = typeof XMLHttpRequest < "u", rl = il && function(e) {
|
5968
6016
|
return new Promise(function(i, n) {
|
5969
|
-
const r =
|
6017
|
+
const r = oo(e);
|
5970
6018
|
let o = r.data;
|
5971
|
-
const a =
|
6019
|
+
const a = Ie.from(r.headers).normalize();
|
5972
6020
|
let { responseType: s, onUploadProgress: c, onDownloadProgress: p } = r, l, u, f, m, x;
|
5973
6021
|
function g() {
|
5974
6022
|
m && m(), x && x(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
@@ -5978,7 +6026,7 @@ const io = (e) => {
|
|
5978
6026
|
function h() {
|
5979
6027
|
if (!y)
|
5980
6028
|
return;
|
5981
|
-
const A =
|
6029
|
+
const A = Ie.from(
|
5982
6030
|
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
5983
6031
|
), b = {
|
5984
6032
|
data: !s || s === "text" || s === "json" ? y.responseText : y.response,
|
@@ -5988,7 +6036,7 @@ const io = (e) => {
|
|
5988
6036
|
config: e,
|
5989
6037
|
request: y
|
5990
6038
|
};
|
5991
|
-
|
6039
|
+
io(function(z) {
|
5992
6040
|
i(z), g();
|
5993
6041
|
}, function(z) {
|
5994
6042
|
n(z), g();
|
@@ -6002,7 +6050,7 @@ const io = (e) => {
|
|
6002
6050
|
n(new H("Network Error", H.ERR_NETWORK, e, y)), y = null;
|
6003
6051
|
}, y.ontimeout = function() {
|
6004
6052
|
let T = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
6005
|
-
const b = r.transitional ||
|
6053
|
+
const b = r.transitional || eo;
|
6006
6054
|
r.timeoutErrorMessage && (T = r.timeoutErrorMessage), n(new H(
|
6007
6055
|
T,
|
6008
6056
|
b.clarifyTimeoutError ? H.ETIMEDOUT : H.ECONNABORTED,
|
@@ -6011,17 +6059,17 @@ const io = (e) => {
|
|
6011
6059
|
)), y = null;
|
6012
6060
|
}, o === void 0 && a.setContentType(null), "setRequestHeader" in y && v.forEach(a.toJSON(), function(T, b) {
|
6013
6061
|
y.setRequestHeader(b, T);
|
6014
|
-
}), v.isUndefined(r.withCredentials) || (y.withCredentials = !!r.withCredentials), s && s !== "json" && (y.responseType = r.responseType), p && ([f, x] =
|
6015
|
-
y && (n(!A || A.type ? new
|
6062
|
+
}), v.isUndefined(r.withCredentials) || (y.withCredentials = !!r.withCredentials), s && s !== "json" && (y.responseType = r.responseType), p && ([f, x] = cn(p, !0), y.addEventListener("progress", f)), c && y.upload && ([u, m] = cn(c), y.upload.addEventListener("progress", u), y.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (l = (A) => {
|
6063
|
+
y && (n(!A || A.type ? new yt(null, e, y) : A), y.abort(), y = null);
|
6016
6064
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
6017
|
-
const _ =
|
6065
|
+
const _ = Gc(r.url);
|
6018
6066
|
if (_ && Ae.protocols.indexOf(_) === -1) {
|
6019
6067
|
n(new H("Unsupported protocol " + _ + ":", H.ERR_BAD_REQUEST, e));
|
6020
6068
|
return;
|
6021
6069
|
}
|
6022
6070
|
y.send(o || null);
|
6023
6071
|
});
|
6024
|
-
},
|
6072
|
+
}, ol = (e, t) => {
|
6025
6073
|
const { length: i } = e = e ? e.filter(Boolean) : [];
|
6026
6074
|
if (t || i) {
|
6027
6075
|
let n = new AbortController(), r;
|
@@ -6029,7 +6077,7 @@ const io = (e) => {
|
|
6029
6077
|
if (!r) {
|
6030
6078
|
r = !0, s();
|
6031
6079
|
const l = p instanceof Error ? p : this.reason;
|
6032
|
-
n.abort(l instanceof H ? l : new
|
6080
|
+
n.abort(l instanceof H ? l : new yt(l instanceof Error ? l.message : l));
|
6033
6081
|
}
|
6034
6082
|
};
|
6035
6083
|
let a = t && setTimeout(() => {
|
@@ -6044,7 +6092,7 @@ const io = (e) => {
|
|
6044
6092
|
const { signal: c } = n;
|
6045
6093
|
return c.unsubscribe = () => v.asap(s), c;
|
6046
6094
|
}
|
6047
|
-
},
|
6095
|
+
}, al = function* (e, t) {
|
6048
6096
|
let i = e.byteLength;
|
6049
6097
|
if (i < t) {
|
6050
6098
|
yield e;
|
@@ -6053,10 +6101,10 @@ const io = (e) => {
|
|
6053
6101
|
let n = 0, r;
|
6054
6102
|
for (; n < i; )
|
6055
6103
|
r = n + t, yield e.slice(n, r), n = r;
|
6056
|
-
},
|
6057
|
-
for await (const i of
|
6058
|
-
yield*
|
6059
|
-
},
|
6104
|
+
}, sl = async function* (e, t) {
|
6105
|
+
for await (const i of cl(e))
|
6106
|
+
yield* al(i, t);
|
6107
|
+
}, cl = async function* (e) {
|
6060
6108
|
if (e[Symbol.asyncIterator]) {
|
6061
6109
|
yield* e;
|
6062
6110
|
return;
|
@@ -6072,8 +6120,8 @@ const io = (e) => {
|
|
6072
6120
|
} finally {
|
6073
6121
|
await t.cancel();
|
6074
6122
|
}
|
6075
|
-
},
|
6076
|
-
const r =
|
6123
|
+
}, ur = (e, t, i, n) => {
|
6124
|
+
const r = sl(e, t);
|
6077
6125
|
let o = 0, a, s = (c) => {
|
6078
6126
|
a || (a = !0, n && n(c));
|
6079
6127
|
};
|
@@ -6101,13 +6149,13 @@ const io = (e) => {
|
|
6101
6149
|
}, {
|
6102
6150
|
highWaterMark: 2
|
6103
6151
|
});
|
6104
|
-
},
|
6152
|
+
}, mn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ao = mn && typeof ReadableStream == "function", ll = mn && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), so = (e, ...t) => {
|
6105
6153
|
try {
|
6106
6154
|
return !!e(...t);
|
6107
6155
|
} catch {
|
6108
6156
|
return !1;
|
6109
6157
|
}
|
6110
|
-
},
|
6158
|
+
}, pl = ao && so(() => {
|
6111
6159
|
let e = !1;
|
6112
6160
|
const t = new Request(Ae.origin, {
|
6113
6161
|
body: new ReadableStream(),
|
@@ -6117,17 +6165,17 @@ const io = (e) => {
|
|
6117
6165
|
}
|
6118
6166
|
}).headers.has("Content-Type");
|
6119
6167
|
return e && !t;
|
6120
|
-
}),
|
6121
|
-
stream:
|
6168
|
+
}), fr = 64 * 1024, Gn = ao && so(() => v.isReadableStream(new Response("").body)), ln = {
|
6169
|
+
stream: Gn && ((e) => e.body)
|
6122
6170
|
};
|
6123
|
-
|
6171
|
+
mn && ((e) => {
|
6124
6172
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
6125
|
-
!
|
6173
|
+
!ln[t] && (ln[t] = v.isFunction(e[t]) ? (i) => i[t]() : (i, n) => {
|
6126
6174
|
throw new H(`Response type '${t}' is not supported`, H.ERR_NOT_SUPPORT, n);
|
6127
6175
|
});
|
6128
6176
|
});
|
6129
6177
|
})(new Response());
|
6130
|
-
const
|
6178
|
+
const dl = async (e) => {
|
6131
6179
|
if (e == null)
|
6132
6180
|
return 0;
|
6133
6181
|
if (v.isBlob(e))
|
@@ -6140,11 +6188,11 @@ const al = async (e) => {
|
|
6140
6188
|
if (v.isArrayBufferView(e) || v.isArrayBuffer(e))
|
6141
6189
|
return e.byteLength;
|
6142
6190
|
if (v.isURLSearchParams(e) && (e = e + ""), v.isString(e))
|
6143
|
-
return (await
|
6144
|
-
},
|
6191
|
+
return (await ll(e)).byteLength;
|
6192
|
+
}, ul = async (e, t) => {
|
6145
6193
|
const i = v.toFiniteNumber(e.getContentLength());
|
6146
|
-
return i ??
|
6147
|
-
},
|
6194
|
+
return i ?? dl(t);
|
6195
|
+
}, fl = mn && (async (e) => {
|
6148
6196
|
let {
|
6149
6197
|
url: t,
|
6150
6198
|
method: i,
|
@@ -6158,26 +6206,26 @@ const al = async (e) => {
|
|
6158
6206
|
headers: l,
|
6159
6207
|
withCredentials: u = "same-origin",
|
6160
6208
|
fetchOptions: f
|
6161
|
-
} =
|
6209
|
+
} = oo(e);
|
6162
6210
|
p = p ? (p + "").toLowerCase() : "text";
|
6163
|
-
let m =
|
6211
|
+
let m = ol([r, o && o.toAbortSignal()], a), x;
|
6164
6212
|
const g = m && m.unsubscribe && (() => {
|
6165
6213
|
m.unsubscribe();
|
6166
6214
|
});
|
6167
6215
|
let y;
|
6168
6216
|
try {
|
6169
|
-
if (c &&
|
6217
|
+
if (c && pl && i !== "get" && i !== "head" && (y = await ul(l, n)) !== 0) {
|
6170
6218
|
let b = new Request(t, {
|
6171
6219
|
method: "POST",
|
6172
6220
|
body: n,
|
6173
6221
|
duplex: "half"
|
6174
6222
|
}), C;
|
6175
6223
|
if (v.isFormData(n) && (C = b.headers.get("content-type")) && l.setContentType(C), b.body) {
|
6176
|
-
const [z, I] =
|
6224
|
+
const [z, I] = lr(
|
6177
6225
|
y,
|
6178
|
-
|
6226
|
+
cn(pr(c))
|
6179
6227
|
);
|
6180
|
-
n =
|
6228
|
+
n = ur(b.body, fr, z, I);
|
6181
6229
|
}
|
6182
6230
|
}
|
6183
6231
|
v.isString(u) || (u = u ? "include" : "omit");
|
@@ -6192,29 +6240,29 @@ const al = async (e) => {
|
|
6192
6240
|
credentials: h ? u : void 0
|
6193
6241
|
});
|
6194
6242
|
let _ = await fetch(x);
|
6195
|
-
const A =
|
6196
|
-
if (
|
6243
|
+
const A = Gn && (p === "stream" || p === "response");
|
6244
|
+
if (Gn && (s || A && g)) {
|
6197
6245
|
const b = {};
|
6198
6246
|
["status", "statusText", "headers"].forEach((q) => {
|
6199
6247
|
b[q] = _[q];
|
6200
6248
|
});
|
6201
|
-
const C = v.toFiniteNumber(_.headers.get("content-length")), [z, I] = s &&
|
6249
|
+
const C = v.toFiniteNumber(_.headers.get("content-length")), [z, I] = s && lr(
|
6202
6250
|
C,
|
6203
|
-
|
6251
|
+
cn(pr(s), !0)
|
6204
6252
|
) || [];
|
6205
6253
|
_ = new Response(
|
6206
|
-
|
6254
|
+
ur(_.body, fr, z, () => {
|
6207
6255
|
I && I(), g && g();
|
6208
6256
|
}),
|
6209
6257
|
b
|
6210
6258
|
);
|
6211
6259
|
}
|
6212
6260
|
p = p || "text";
|
6213
|
-
let T = await
|
6261
|
+
let T = await ln[v.findKey(ln, p) || "text"](_, e);
|
6214
6262
|
return !A && g && g(), await new Promise((b, C) => {
|
6215
|
-
|
6263
|
+
io(b, C, {
|
6216
6264
|
data: T,
|
6217
|
-
headers:
|
6265
|
+
headers: Ie.from(_.headers),
|
6218
6266
|
status: _.status,
|
6219
6267
|
statusText: _.statusText,
|
6220
6268
|
config: e,
|
@@ -6229,12 +6277,12 @@ const al = async (e) => {
|
|
6229
6277
|
}
|
6230
6278
|
) : H.from(h, h && h.code, e, x);
|
6231
6279
|
}
|
6232
|
-
}),
|
6233
|
-
http:
|
6234
|
-
xhr:
|
6235
|
-
fetch:
|
6280
|
+
}), Xn = {
|
6281
|
+
http: _c,
|
6282
|
+
xhr: rl,
|
6283
|
+
fetch: fl
|
6236
6284
|
};
|
6237
|
-
v.forEach(
|
6285
|
+
v.forEach(Xn, (e, t) => {
|
6238
6286
|
if (e) {
|
6239
6287
|
try {
|
6240
6288
|
Object.defineProperty(e, "name", { value: t });
|
@@ -6243,7 +6291,7 @@ v.forEach(Kn, (e, t) => {
|
|
6243
6291
|
Object.defineProperty(e, "adapterName", { value: t });
|
6244
6292
|
}
|
6245
6293
|
});
|
6246
|
-
const
|
6294
|
+
const mr = (e) => `- ${e}`, ml = (e) => v.isFunction(e) || e === null || e === !1, co = {
|
6247
6295
|
getAdapter: (e) => {
|
6248
6296
|
e = v.isArray(e) ? e : [e];
|
6249
6297
|
const { length: t } = e;
|
@@ -6252,7 +6300,7 @@ const dr = (e) => `- ${e}`, ll = (e) => v.isFunction(e) || e === null || e === !
|
|
6252
6300
|
for (let o = 0; o < t; o++) {
|
6253
6301
|
i = e[o];
|
6254
6302
|
let a;
|
6255
|
-
if (n = i, !
|
6303
|
+
if (n = i, !ml(i) && (n = Xn[(a = String(i)).toLowerCase()], n === void 0))
|
6256
6304
|
throw new H(`Unknown adapter '${a}'`);
|
6257
6305
|
if (n)
|
6258
6306
|
break;
|
@@ -6263,8 +6311,8 @@ const dr = (e) => `- ${e}`, ll = (e) => v.isFunction(e) || e === null || e === !
|
|
6263
6311
|
([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
6264
6312
|
);
|
6265
6313
|
let a = t ? o.length > 1 ? `since :
|
6266
|
-
` + o.map(
|
6267
|
-
`) : " " +
|
6314
|
+
` + o.map(mr).join(`
|
6315
|
+
`) : " " + mr(o[0]) : "as no adapter specified";
|
6268
6316
|
throw new H(
|
6269
6317
|
"There is no suitable adapter to dispatch the request " + a,
|
6270
6318
|
"ERR_NOT_SUPPORT"
|
@@ -6272,40 +6320,40 @@ const dr = (e) => `- ${e}`, ll = (e) => v.isFunction(e) || e === null || e === !
|
|
6272
6320
|
}
|
6273
6321
|
return n;
|
6274
6322
|
},
|
6275
|
-
adapters:
|
6323
|
+
adapters: Xn
|
6276
6324
|
};
|
6277
|
-
function
|
6325
|
+
function Fn(e) {
|
6278
6326
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
6279
|
-
throw new
|
6327
|
+
throw new yt(null, e);
|
6280
6328
|
}
|
6281
|
-
function
|
6282
|
-
return
|
6329
|
+
function xr(e) {
|
6330
|
+
return Fn(e), e.headers = Ie.from(e.headers), e.data = jn.call(
|
6283
6331
|
e,
|
6284
6332
|
e.transformRequest
|
6285
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
6286
|
-
return
|
6333
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), co.getAdapter(e.adapter || $t.adapter)(e).then(function(n) {
|
6334
|
+
return Fn(e), n.data = jn.call(
|
6287
6335
|
e,
|
6288
6336
|
e.transformResponse,
|
6289
6337
|
n
|
6290
|
-
), n.headers =
|
6338
|
+
), n.headers = Ie.from(n.headers), n;
|
6291
6339
|
}, function(n) {
|
6292
|
-
return
|
6340
|
+
return no(n) || (Fn(e), n && n.response && (n.response.data = jn.call(
|
6293
6341
|
e,
|
6294
6342
|
e.transformResponse,
|
6295
6343
|
n.response
|
6296
|
-
), n.response.headers =
|
6344
|
+
), n.response.headers = Ie.from(n.response.headers))), Promise.reject(n);
|
6297
6345
|
});
|
6298
6346
|
}
|
6299
|
-
const
|
6347
|
+
const lo = "1.7.9", xn = {};
|
6300
6348
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
6301
|
-
|
6349
|
+
xn[e] = function(n) {
|
6302
6350
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
6303
6351
|
};
|
6304
6352
|
});
|
6305
|
-
const
|
6306
|
-
|
6353
|
+
const vr = {};
|
6354
|
+
xn.transitional = function(t, i, n) {
|
6307
6355
|
function r(o, a) {
|
6308
|
-
return "[Axios v" +
|
6356
|
+
return "[Axios v" + lo + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
|
6309
6357
|
}
|
6310
6358
|
return (o, a, s) => {
|
6311
6359
|
if (t === !1)
|
@@ -6313,7 +6361,7 @@ fn.transitional = function(t, i, n) {
|
|
6313
6361
|
r(a, " has been removed" + (i ? " in " + i : "")),
|
6314
6362
|
H.ERR_DEPRECATED
|
6315
6363
|
);
|
6316
|
-
return i && !
|
6364
|
+
return i && !vr[a] && (vr[a] = !0, console.warn(
|
6317
6365
|
r(
|
6318
6366
|
a,
|
6319
6367
|
" has been deprecated since v" + i + " and will be removed in the near future"
|
@@ -6321,10 +6369,10 @@ fn.transitional = function(t, i, n) {
|
|
6321
6369
|
)), t ? t(o, a, s) : !0;
|
6322
6370
|
};
|
6323
6371
|
};
|
6324
|
-
|
6372
|
+
xn.spelling = function(t) {
|
6325
6373
|
return (i, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
6326
6374
|
};
|
6327
|
-
function
|
6375
|
+
function xl(e, t, i) {
|
6328
6376
|
if (typeof e != "object")
|
6329
6377
|
throw new H("options must be an object", H.ERR_BAD_OPTION_VALUE);
|
6330
6378
|
const n = Object.keys(e);
|
@@ -6341,15 +6389,15 @@ function pl(e, t, i) {
|
|
6341
6389
|
throw new H("Unknown option " + o, H.ERR_BAD_OPTION);
|
6342
6390
|
}
|
6343
6391
|
}
|
6344
|
-
const
|
6345
|
-
assertOptions:
|
6346
|
-
validators:
|
6347
|
-
},
|
6348
|
-
class
|
6392
|
+
const nn = {
|
6393
|
+
assertOptions: xl,
|
6394
|
+
validators: xn
|
6395
|
+
}, Ne = nn.validators;
|
6396
|
+
class ot {
|
6349
6397
|
constructor(t) {
|
6350
6398
|
this.defaults = t, this.interceptors = {
|
6351
|
-
request: new
|
6352
|
-
response: new
|
6399
|
+
request: new sr(),
|
6400
|
+
response: new sr()
|
6353
6401
|
};
|
6354
6402
|
}
|
6355
6403
|
/**
|
@@ -6378,20 +6426,20 @@ class rt {
|
|
6378
6426
|
}
|
6379
6427
|
}
|
6380
6428
|
_request(t, i) {
|
6381
|
-
typeof t == "string" ? (i = i || {}, i.url = t) : i = t || {}, i =
|
6429
|
+
typeof t == "string" ? (i = i || {}, i.url = t) : i = t || {}, i = at(this.defaults, i);
|
6382
6430
|
const { transitional: n, paramsSerializer: r, headers: o } = i;
|
6383
|
-
n !== void 0 &&
|
6384
|
-
silentJSONParsing:
|
6385
|
-
forcedJSONParsing:
|
6386
|
-
clarifyTimeoutError:
|
6431
|
+
n !== void 0 && nn.assertOptions(n, {
|
6432
|
+
silentJSONParsing: Ne.transitional(Ne.boolean),
|
6433
|
+
forcedJSONParsing: Ne.transitional(Ne.boolean),
|
6434
|
+
clarifyTimeoutError: Ne.transitional(Ne.boolean)
|
6387
6435
|
}, !1), r != null && (v.isFunction(r) ? i.paramsSerializer = {
|
6388
6436
|
serialize: r
|
6389
|
-
} :
|
6390
|
-
encode:
|
6391
|
-
serialize:
|
6392
|
-
}, !0)),
|
6393
|
-
baseUrl:
|
6394
|
-
withXsrfToken:
|
6437
|
+
} : nn.assertOptions(r, {
|
6438
|
+
encode: Ne.function,
|
6439
|
+
serialize: Ne.function
|
6440
|
+
}, !0)), nn.assertOptions(i, {
|
6441
|
+
baseUrl: Ne.spelling("baseURL"),
|
6442
|
+
withXsrfToken: Ne.spelling("withXSRFToken")
|
6395
6443
|
}, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase();
|
6396
6444
|
let a = o && v.merge(
|
6397
6445
|
o.common,
|
@@ -6402,7 +6450,7 @@ class rt {
|
|
6402
6450
|
(x) => {
|
6403
6451
|
delete o[x];
|
6404
6452
|
}
|
6405
|
-
), i.headers =
|
6453
|
+
), i.headers = Ie.concat(a, o);
|
6406
6454
|
const s = [];
|
6407
6455
|
let c = !0;
|
6408
6456
|
this.interceptors.request.forEach(function(g) {
|
@@ -6414,7 +6462,7 @@ class rt {
|
|
6414
6462
|
});
|
6415
6463
|
let l, u = 0, f;
|
6416
6464
|
if (!c) {
|
6417
|
-
const x = [
|
6465
|
+
const x = [xr.bind(this), void 0];
|
6418
6466
|
for (x.unshift.apply(x, s), x.push.apply(x, p), f = x.length, l = Promise.resolve(i); u < f; )
|
6419
6467
|
l = l.then(x[u++], x[u++]);
|
6420
6468
|
return l;
|
@@ -6431,7 +6479,7 @@ class rt {
|
|
6431
6479
|
}
|
6432
6480
|
}
|
6433
6481
|
try {
|
6434
|
-
l =
|
6482
|
+
l = xr.call(this, m);
|
6435
6483
|
} catch (x) {
|
6436
6484
|
return Promise.reject(x);
|
6437
6485
|
}
|
@@ -6440,14 +6488,14 @@ class rt {
|
|
6440
6488
|
return l;
|
6441
6489
|
}
|
6442
6490
|
getUri(t) {
|
6443
|
-
t =
|
6444
|
-
const i =
|
6445
|
-
return
|
6491
|
+
t = at(this.defaults, t);
|
6492
|
+
const i = ro(t.baseURL, t.url);
|
6493
|
+
return Qr(i, t.params, t.paramsSerializer);
|
6446
6494
|
}
|
6447
6495
|
}
|
6448
6496
|
v.forEach(["delete", "get", "head", "options"], function(t) {
|
6449
|
-
|
6450
|
-
return this.request(
|
6497
|
+
ot.prototype[t] = function(i, n) {
|
6498
|
+
return this.request(at(n || {}, {
|
6451
6499
|
method: t,
|
6452
6500
|
url: i,
|
6453
6501
|
data: (n || {}).data
|
@@ -6457,7 +6505,7 @@ v.forEach(["delete", "get", "head", "options"], function(t) {
|
|
6457
6505
|
v.forEach(["post", "put", "patch"], function(t) {
|
6458
6506
|
function i(n) {
|
6459
6507
|
return function(o, a, s) {
|
6460
|
-
return this.request(
|
6508
|
+
return this.request(at(s || {}, {
|
6461
6509
|
method: t,
|
6462
6510
|
headers: n ? {
|
6463
6511
|
"Content-Type": "multipart/form-data"
|
@@ -6467,9 +6515,9 @@ v.forEach(["post", "put", "patch"], function(t) {
|
|
6467
6515
|
}));
|
6468
6516
|
};
|
6469
6517
|
}
|
6470
|
-
|
6518
|
+
ot.prototype[t] = i(), ot.prototype[t + "Form"] = i(!0);
|
6471
6519
|
});
|
6472
|
-
class
|
6520
|
+
class pi {
|
6473
6521
|
constructor(t) {
|
6474
6522
|
if (typeof t != "function")
|
6475
6523
|
throw new TypeError("executor must be a function.");
|
@@ -6493,7 +6541,7 @@ class si {
|
|
6493
6541
|
n.unsubscribe(o);
|
6494
6542
|
}, a;
|
6495
6543
|
}, t(function(o, a, s) {
|
6496
|
-
n.reason || (n.reason = new
|
6544
|
+
n.reason || (n.reason = new yt(o, a, s), i(n.reason));
|
6497
6545
|
});
|
6498
6546
|
}
|
6499
6547
|
/**
|
@@ -6535,22 +6583,22 @@ class si {
|
|
6535
6583
|
static source() {
|
6536
6584
|
let t;
|
6537
6585
|
return {
|
6538
|
-
token: new
|
6586
|
+
token: new pi(function(r) {
|
6539
6587
|
t = r;
|
6540
6588
|
}),
|
6541
6589
|
cancel: t
|
6542
6590
|
};
|
6543
6591
|
}
|
6544
6592
|
}
|
6545
|
-
function
|
6593
|
+
function vl(e) {
|
6546
6594
|
return function(i) {
|
6547
6595
|
return e.apply(null, i);
|
6548
6596
|
};
|
6549
6597
|
}
|
6550
|
-
function
|
6598
|
+
function gl(e) {
|
6551
6599
|
return v.isObject(e) && e.isAxiosError === !0;
|
6552
6600
|
}
|
6553
|
-
const
|
6601
|
+
const Zn = {
|
6554
6602
|
Continue: 100,
|
6555
6603
|
SwitchingProtocols: 101,
|
6556
6604
|
Processing: 102,
|
@@ -6615,36 +6663,36 @@ const Jn = {
|
|
6615
6663
|
NotExtended: 510,
|
6616
6664
|
NetworkAuthenticationRequired: 511
|
6617
6665
|
};
|
6618
|
-
Object.entries(
|
6619
|
-
|
6666
|
+
Object.entries(Zn).forEach(([e, t]) => {
|
6667
|
+
Zn[t] = e;
|
6620
6668
|
});
|
6621
|
-
function
|
6622
|
-
const t = new
|
6623
|
-
return v.extend(i,
|
6624
|
-
return
|
6669
|
+
function po(e) {
|
6670
|
+
const t = new ot(e), i = Nr(ot.prototype.request, t);
|
6671
|
+
return v.extend(i, ot.prototype, t, { allOwnKeys: !0 }), v.extend(i, t, null, { allOwnKeys: !0 }), i.create = function(r) {
|
6672
|
+
return po(at(e, r));
|
6625
6673
|
}, i;
|
6626
6674
|
}
|
6627
|
-
const Re =
|
6628
|
-
Re.Axios =
|
6629
|
-
Re.CanceledError =
|
6630
|
-
Re.CancelToken =
|
6631
|
-
Re.isCancel =
|
6632
|
-
Re.VERSION =
|
6633
|
-
Re.toFormData =
|
6675
|
+
const Re = po($t);
|
6676
|
+
Re.Axios = ot;
|
6677
|
+
Re.CanceledError = yt;
|
6678
|
+
Re.CancelToken = pi;
|
6679
|
+
Re.isCancel = no;
|
6680
|
+
Re.VERSION = lo;
|
6681
|
+
Re.toFormData = fn;
|
6634
6682
|
Re.AxiosError = H;
|
6635
6683
|
Re.Cancel = Re.CanceledError;
|
6636
6684
|
Re.all = function(t) {
|
6637
6685
|
return Promise.all(t);
|
6638
6686
|
};
|
6639
|
-
Re.spread =
|
6640
|
-
Re.isAxiosError =
|
6641
|
-
Re.mergeConfig =
|
6642
|
-
Re.AxiosHeaders =
|
6643
|
-
Re.formToJSON = (e) =>
|
6644
|
-
Re.getAdapter =
|
6645
|
-
Re.HttpStatusCode =
|
6687
|
+
Re.spread = vl;
|
6688
|
+
Re.isAxiosError = gl;
|
6689
|
+
Re.mergeConfig = at;
|
6690
|
+
Re.AxiosHeaders = Ie;
|
6691
|
+
Re.formToJSON = (e) => to(v.isHTMLForm(e) ? new FormData(e) : e);
|
6692
|
+
Re.getAdapter = co.getAdapter;
|
6693
|
+
Re.HttpStatusCode = Zn;
|
6646
6694
|
Re.default = Re;
|
6647
|
-
var
|
6695
|
+
var Kt = { exports: {} }, Pn = {};
|
6648
6696
|
/**
|
6649
6697
|
* @license React
|
6650
6698
|
* use-sync-external-store-shim.production.min.js
|
@@ -6654,10 +6702,10 @@ var Ht = { exports: {} }, Dn = {};
|
|
6654
6702
|
* This source code is licensed under the MIT license found in the
|
6655
6703
|
* LICENSE file in the root directory of this source tree.
|
6656
6704
|
*/
|
6657
|
-
var
|
6658
|
-
function
|
6659
|
-
if (
|
6660
|
-
|
6705
|
+
var gr;
|
6706
|
+
function hl() {
|
6707
|
+
if (gr) return Pn;
|
6708
|
+
gr = 1;
|
6661
6709
|
var e = me;
|
6662
6710
|
function t(u, f) {
|
6663
6711
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
@@ -6687,9 +6735,9 @@ function fl() {
|
|
6687
6735
|
return f();
|
6688
6736
|
}
|
6689
6737
|
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : s;
|
6690
|
-
return
|
6738
|
+
return Pn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, Pn;
|
6691
6739
|
}
|
6692
|
-
var
|
6740
|
+
var In = {};
|
6693
6741
|
/**
|
6694
6742
|
* @license React
|
6695
6743
|
* use-sync-external-store-shim.development.js
|
@@ -6699,9 +6747,9 @@ var jn = {};
|
|
6699
6747
|
* This source code is licensed under the MIT license found in the
|
6700
6748
|
* LICENSE file in the root directory of this source tree.
|
6701
6749
|
*/
|
6702
|
-
var
|
6703
|
-
function
|
6704
|
-
return
|
6750
|
+
var hr;
|
6751
|
+
function bl() {
|
6752
|
+
return hr || (hr = 1, process.env.NODE_ENV !== "production" && function() {
|
6705
6753
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
6706
6754
|
var e = me, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
6707
6755
|
function i(A) {
|
@@ -6767,115 +6815,115 @@ function ml() {
|
|
6767
6815
|
return T();
|
6768
6816
|
}
|
6769
6817
|
var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", y = !g, h = y ? x : f, _ = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h;
|
6770
|
-
|
6771
|
-
}()),
|
6818
|
+
In.useSyncExternalStore = _, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
6819
|
+
}()), In;
|
6772
6820
|
}
|
6773
|
-
var
|
6774
|
-
function
|
6775
|
-
return
|
6821
|
+
var br;
|
6822
|
+
function yl() {
|
6823
|
+
return br || (br = 1, process.env.NODE_ENV === "production" ? Kt.exports = hl() : Kt.exports = bl()), Kt.exports;
|
6776
6824
|
}
|
6777
|
-
var
|
6778
|
-
const
|
6779
|
-
},
|
6825
|
+
var wl = yl();
|
6826
|
+
const Je = () => {
|
6827
|
+
}, Pe = (
|
6780
6828
|
/*#__NOINLINE__*/
|
6781
|
-
|
6782
|
-
),
|
6829
|
+
Je()
|
6830
|
+
), Bn = Object, ee = (e) => e === Pe, qe = (e) => typeof e == "function", Ge = (e, t) => ({
|
6783
6831
|
...e,
|
6784
6832
|
...t
|
6785
|
-
}),
|
6786
|
-
let
|
6787
|
-
const
|
6833
|
+
}), El = (e) => qe(e.then), Jt = /* @__PURE__ */ new WeakMap();
|
6834
|
+
let Sl = 0;
|
6835
|
+
const zt = (e) => {
|
6788
6836
|
const t = typeof e, i = e && e.constructor, n = i == Date;
|
6789
6837
|
let r, o;
|
6790
|
-
if (
|
6791
|
-
if (r =
|
6792
|
-
if (r = ++
|
6838
|
+
if (Bn(e) === e && !n && i != RegExp) {
|
6839
|
+
if (r = Jt.get(e), r) return r;
|
6840
|
+
if (r = ++Sl + "~", Jt.set(e, r), i == Array) {
|
6793
6841
|
for (r = "@", o = 0; o < e.length; o++)
|
6794
|
-
r +=
|
6795
|
-
|
6842
|
+
r += zt(e[o]) + ",";
|
6843
|
+
Jt.set(e, r);
|
6796
6844
|
}
|
6797
|
-
if (i ==
|
6845
|
+
if (i == Bn) {
|
6798
6846
|
r = "#";
|
6799
|
-
const a =
|
6847
|
+
const a = Bn.keys(e).sort();
|
6800
6848
|
for (; !ee(o = a.pop()); )
|
6801
|
-
ee(e[o]) || (r += o + ":" +
|
6802
|
-
|
6849
|
+
ee(e[o]) || (r += o + ":" + zt(e[o]) + ",");
|
6850
|
+
Jt.set(e, r);
|
6803
6851
|
}
|
6804
6852
|
} else
|
6805
6853
|
r = n ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
6806
6854
|
return r;
|
6807
|
-
},
|
6808
|
-
const i =
|
6855
|
+
}, Ve = /* @__PURE__ */ new WeakMap(), zn = {}, Gt = {}, di = "undefined", vn = typeof window != di, Qn = typeof document != di, Rl = () => vn && typeof window.requestAnimationFrame != di, uo = (e, t) => {
|
6856
|
+
const i = Ve.get(e);
|
6809
6857
|
return [
|
6810
6858
|
// Getter
|
6811
|
-
() => !ee(t) && e.get(t) ||
|
6859
|
+
() => !ee(t) && e.get(t) || zn,
|
6812
6860
|
// Setter
|
6813
6861
|
(n) => {
|
6814
6862
|
if (!ee(t)) {
|
6815
6863
|
const r = e.get(t);
|
6816
|
-
t in
|
6864
|
+
t in Gt || (Gt[t] = r), i[5](t, Ge(r, n), r || zn);
|
6817
6865
|
}
|
6818
6866
|
},
|
6819
6867
|
// Subscriber
|
6820
6868
|
i[6],
|
6821
6869
|
// Get server cache snapshot
|
6822
|
-
() => !ee(t) && t in
|
6870
|
+
() => !ee(t) && t in Gt ? Gt[t] : !ee(t) && e.get(t) || zn
|
6823
6871
|
];
|
6824
6872
|
};
|
6825
|
-
let
|
6826
|
-
const
|
6873
|
+
let ei = !0;
|
6874
|
+
const Tl = () => ei, [ti, ni] = vn && window.addEventListener ? [
|
6827
6875
|
window.addEventListener.bind(window),
|
6828
6876
|
window.removeEventListener.bind(window)
|
6829
6877
|
] : [
|
6830
|
-
|
6831
|
-
|
6832
|
-
],
|
6833
|
-
const e =
|
6878
|
+
Je,
|
6879
|
+
Je
|
6880
|
+
], kl = () => {
|
6881
|
+
const e = Qn && document.visibilityState;
|
6834
6882
|
return ee(e) || e !== "hidden";
|
6835
|
-
},
|
6836
|
-
|
6837
|
-
}),
|
6883
|
+
}, Ol = (e) => (Qn && document.addEventListener("visibilitychange", e), ti("focus", e), () => {
|
6884
|
+
Qn && document.removeEventListener("visibilitychange", e), ni("focus", e);
|
6885
|
+
}), _l = (e) => {
|
6838
6886
|
const t = () => {
|
6839
|
-
|
6887
|
+
ei = !0, e();
|
6840
6888
|
}, i = () => {
|
6841
|
-
|
6889
|
+
ei = !1;
|
6842
6890
|
};
|
6843
|
-
return
|
6844
|
-
|
6891
|
+
return ti("online", t), ti("offline", i), () => {
|
6892
|
+
ni("online", t), ni("offline", i);
|
6845
6893
|
};
|
6846
|
-
},
|
6847
|
-
isOnline:
|
6848
|
-
isVisible:
|
6849
|
-
},
|
6850
|
-
initFocus:
|
6851
|
-
initReconnect:
|
6852
|
-
},
|
6894
|
+
}, Al = {
|
6895
|
+
isOnline: Tl,
|
6896
|
+
isVisible: kl
|
6897
|
+
}, Cl = {
|
6898
|
+
initFocus: Ol,
|
6899
|
+
initReconnect: _l
|
6900
|
+
}, yr = !me.useId, Lt = !vn || "Deno" in window, Dl = (e) => Rl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ln = Lt ? Qt : Bo, Mn = typeof navigator < "u" && navigator.connection, wr = !Lt && Mn && ([
|
6853
6901
|
"slow-2g",
|
6854
6902
|
"2g"
|
6855
|
-
].includes(
|
6856
|
-
if (
|
6903
|
+
].includes(Mn.effectiveType) || Mn.saveData), ui = (e) => {
|
6904
|
+
if (qe(e))
|
6857
6905
|
try {
|
6858
6906
|
e = e();
|
6859
6907
|
} catch {
|
6860
6908
|
e = "";
|
6861
6909
|
}
|
6862
6910
|
const t = e;
|
6863
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
6911
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? zt(e) : "", [
|
6864
6912
|
e,
|
6865
6913
|
t
|
6866
6914
|
];
|
6867
6915
|
};
|
6868
|
-
let
|
6869
|
-
const
|
6870
|
-
var
|
6916
|
+
let jl = 0;
|
6917
|
+
const ii = () => ++jl, fo = 0, mo = 1, xo = 2, Fl = 3;
|
6918
|
+
var Ft = {
|
6871
6919
|
__proto__: null,
|
6872
|
-
ERROR_REVALIDATE_EVENT:
|
6873
|
-
FOCUS_EVENT:
|
6874
|
-
MUTATE_EVENT:
|
6875
|
-
RECONNECT_EVENT:
|
6920
|
+
ERROR_REVALIDATE_EVENT: Fl,
|
6921
|
+
FOCUS_EVENT: fo,
|
6922
|
+
MUTATE_EVENT: xo,
|
6923
|
+
RECONNECT_EVENT: mo
|
6876
6924
|
};
|
6877
|
-
async function
|
6878
|
-
const [t, i, n, r] = e, o =
|
6925
|
+
async function vo(...e) {
|
6926
|
+
const [t, i, n, r] = e, o = Ge({
|
6879
6927
|
populateCache: !0,
|
6880
6928
|
throwOnError: !0
|
6881
6929
|
}, typeof r == "boolean" ? {
|
@@ -6885,7 +6933,7 @@ async function mo(...e) {
|
|
6885
6933
|
const s = o.rollbackOnError;
|
6886
6934
|
let c = o.optimisticData;
|
6887
6935
|
const p = (f) => typeof s == "function" ? s(f) : s !== !1, l = o.throwOnError;
|
6888
|
-
if (
|
6936
|
+
if (qe(i)) {
|
6889
6937
|
const f = i, m = [], x = t.keys();
|
6890
6938
|
for (const g of x)
|
6891
6939
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
@@ -6894,31 +6942,31 @@ async function mo(...e) {
|
|
6894
6942
|
}
|
6895
6943
|
return u(i);
|
6896
6944
|
async function u(f) {
|
6897
|
-
const [m] =
|
6945
|
+
const [m] = ui(f);
|
6898
6946
|
if (!m) return;
|
6899
|
-
const [x, g] =
|
6947
|
+
const [x, g] = uo(t, m), [y, h, _, A] = Ve.get(t), T = () => {
|
6900
6948
|
const X = y[m];
|
6901
|
-
return (
|
6949
|
+
return (qe(o.revalidate) ? o.revalidate(x().data, f) : o.revalidate !== !1) && (delete _[m], delete A[m], X && X[0]) ? X[0](xo).then(() => x().data) : x().data;
|
6902
6950
|
};
|
6903
6951
|
if (e.length < 3)
|
6904
6952
|
return T();
|
6905
6953
|
let b = n, C;
|
6906
|
-
const z =
|
6954
|
+
const z = ii();
|
6907
6955
|
h[m] = [
|
6908
6956
|
z,
|
6909
6957
|
0
|
6910
6958
|
];
|
6911
6959
|
const I = !ee(c), q = x(), K = q.data, re = q._c, ue = ee(re) ? K : re;
|
6912
|
-
if (I && (c =
|
6960
|
+
if (I && (c = qe(c) ? c(ue, K) : c, g({
|
6913
6961
|
data: c,
|
6914
6962
|
_c: ue
|
6915
|
-
})),
|
6963
|
+
})), qe(b))
|
6916
6964
|
try {
|
6917
6965
|
b = b(ue);
|
6918
6966
|
} catch (X) {
|
6919
6967
|
C = X;
|
6920
6968
|
}
|
6921
|
-
if (b &&
|
6969
|
+
if (b && El(b))
|
6922
6970
|
if (b = await b.catch((X) => {
|
6923
6971
|
C = X;
|
6924
6972
|
}), z !== h[m][0]) {
|
@@ -6926,25 +6974,25 @@ async function mo(...e) {
|
|
6926
6974
|
return b;
|
6927
6975
|
} else C && I && p(C) && (a = !0, g({
|
6928
6976
|
data: ue,
|
6929
|
-
_c:
|
6977
|
+
_c: Pe
|
6930
6978
|
}));
|
6931
6979
|
if (a && !C)
|
6932
|
-
if (
|
6980
|
+
if (qe(a)) {
|
6933
6981
|
const X = a(b, ue);
|
6934
6982
|
g({
|
6935
6983
|
data: X,
|
6936
|
-
error:
|
6937
|
-
_c:
|
6984
|
+
error: Pe,
|
6985
|
+
_c: Pe
|
6938
6986
|
});
|
6939
6987
|
} else
|
6940
6988
|
g({
|
6941
6989
|
data: b,
|
6942
|
-
error:
|
6943
|
-
_c:
|
6990
|
+
error: Pe,
|
6991
|
+
_c: Pe
|
6944
6992
|
});
|
6945
|
-
if (h[m][1] =
|
6993
|
+
if (h[m][1] = ii(), Promise.resolve(T()).then(() => {
|
6946
6994
|
g({
|
6947
|
-
_c:
|
6995
|
+
_c: Pe
|
6948
6996
|
});
|
6949
6997
|
}), C) {
|
6950
6998
|
if (l) throw C;
|
@@ -6953,13 +7001,13 @@ async function mo(...e) {
|
|
6953
7001
|
return b;
|
6954
7002
|
}
|
6955
7003
|
}
|
6956
|
-
const
|
7004
|
+
const Er = (e, t) => {
|
6957
7005
|
for (const i in e)
|
6958
7006
|
e[i][0] && e[i][0](t);
|
6959
|
-
},
|
6960
|
-
if (!
|
6961
|
-
const i =
|
6962
|
-
let o =
|
7007
|
+
}, Pl = (e, t) => {
|
7008
|
+
if (!Ve.has(e)) {
|
7009
|
+
const i = Ge(Cl, t), n = {}, r = vo.bind(Pe, e);
|
7010
|
+
let o = Je;
|
6963
7011
|
const a = {}, s = (l, u) => {
|
6964
7012
|
const f = a[l] || [];
|
6965
7013
|
return a[l] = f, f.push(u), () => f.splice(f.indexOf(u), 1);
|
@@ -6970,7 +7018,7 @@ const br = (e, t) => {
|
|
6970
7018
|
for (const x of m)
|
6971
7019
|
x(u, f);
|
6972
7020
|
}, p = () => {
|
6973
|
-
if (!
|
7021
|
+
if (!Ve.has(e) && (Ve.set(e, [
|
6974
7022
|
n,
|
6975
7023
|
{},
|
6976
7024
|
{},
|
@@ -6978,10 +7026,10 @@ const br = (e, t) => {
|
|
6978
7026
|
r,
|
6979
7027
|
c,
|
6980
7028
|
s
|
6981
|
-
]), !
|
6982
|
-
const l = i.initFocus(setTimeout.bind(
|
7029
|
+
]), !Lt)) {
|
7030
|
+
const l = i.initFocus(setTimeout.bind(Pe, Er.bind(Pe, n, fo))), u = i.initReconnect(setTimeout.bind(Pe, Er.bind(Pe, n, mo)));
|
6983
7031
|
o = () => {
|
6984
|
-
l && l(), u && u(),
|
7032
|
+
l && l(), u && u(), Ve.delete(e);
|
6985
7033
|
};
|
6986
7034
|
}
|
6987
7035
|
};
|
@@ -6994,48 +7042,48 @@ const br = (e, t) => {
|
|
6994
7042
|
}
|
6995
7043
|
return [
|
6996
7044
|
e,
|
6997
|
-
|
7045
|
+
Ve.get(e)[4]
|
6998
7046
|
];
|
6999
|
-
},
|
7047
|
+
}, Il = (e, t, i, n, r) => {
|
7000
7048
|
const o = i.errorRetryCount, a = r.retryCount, s = ~~((Math.random() + 0.5) * (1 << (a < 8 ? a : 8))) * i.errorRetryInterval;
|
7001
7049
|
!ee(o) && a > o || setTimeout(n, s, r);
|
7002
|
-
},
|
7050
|
+
}, Bl = (e, t) => zt(e) == zt(t), [go, zl] = Pl(/* @__PURE__ */ new Map()), Ll = Ge(
|
7003
7051
|
{
|
7004
7052
|
// events
|
7005
|
-
onLoadingSlow:
|
7006
|
-
onSuccess:
|
7007
|
-
onError:
|
7008
|
-
onErrorRetry:
|
7009
|
-
onDiscarded:
|
7053
|
+
onLoadingSlow: Je,
|
7054
|
+
onSuccess: Je,
|
7055
|
+
onError: Je,
|
7056
|
+
onErrorRetry: Il,
|
7057
|
+
onDiscarded: Je,
|
7010
7058
|
// switches
|
7011
7059
|
revalidateOnFocus: !0,
|
7012
7060
|
revalidateOnReconnect: !0,
|
7013
7061
|
revalidateIfStale: !0,
|
7014
7062
|
shouldRetryOnError: !0,
|
7015
7063
|
// timeouts
|
7016
|
-
errorRetryInterval:
|
7064
|
+
errorRetryInterval: wr ? 1e4 : 5e3,
|
7017
7065
|
focusThrottleInterval: 5 * 1e3,
|
7018
7066
|
dedupingInterval: 2 * 1e3,
|
7019
|
-
loadingTimeout:
|
7067
|
+
loadingTimeout: wr ? 5e3 : 3e3,
|
7020
7068
|
// providers
|
7021
|
-
compare:
|
7069
|
+
compare: Bl,
|
7022
7070
|
isPaused: () => !1,
|
7023
|
-
cache:
|
7024
|
-
mutate:
|
7071
|
+
cache: go,
|
7072
|
+
mutate: zl,
|
7025
7073
|
fallback: {}
|
7026
7074
|
},
|
7027
7075
|
// use web preset by default
|
7028
|
-
|
7029
|
-
),
|
7030
|
-
const i =
|
7076
|
+
Al
|
7077
|
+
), Ml = (e, t) => {
|
7078
|
+
const i = Ge(e, t);
|
7031
7079
|
if (t) {
|
7032
7080
|
const { use: n, fallback: r } = e, { use: o, fallback: a } = t;
|
7033
|
-
n && o && (i.use = n.concat(o)), r && a && (i.fallback =
|
7081
|
+
n && o && (i.use = n.concat(o)), r && a && (i.fallback = Ge(r, a));
|
7034
7082
|
}
|
7035
7083
|
return i;
|
7036
|
-
},
|
7037
|
-
|
7038
|
-
},
|
7084
|
+
}, $l = Po({}), Nl = "$inf$", ho = vn && window.__SWR_DEVTOOLS_USE__, ql = ho ? window.__SWR_DEVTOOLS_USE__ : [], Ul = () => {
|
7085
|
+
ho && (window.__SWR_DEVTOOLS_REACT__ = me);
|
7086
|
+
}, Wl = (e) => qe(e[1]) ? [
|
7039
7087
|
e[0],
|
7040
7088
|
e[1],
|
7041
7089
|
e[2] || {}
|
@@ -7043,28 +7091,28 @@ const br = (e, t) => {
|
|
7043
7091
|
e[0],
|
7044
7092
|
null,
|
7045
7093
|
(e[1] === null ? e[2] : e[1]) || {}
|
7046
|
-
],
|
7047
|
-
const [a] =
|
7048
|
-
if (a.startsWith(
|
7094
|
+
], Vl = () => Ge(Ll, Io($l)), Hl = (e) => (t, i, n) => e(t, i && ((...o) => {
|
7095
|
+
const [a] = ui(t), [, , , s] = Ve.get(go);
|
7096
|
+
if (a.startsWith(Nl))
|
7049
7097
|
return i(...o);
|
7050
7098
|
const c = s[a];
|
7051
7099
|
return ee(c) ? i(...o) : (delete s[a], c);
|
7052
|
-
}), n),
|
7053
|
-
const n =
|
7100
|
+
}), n), Yl = ql.concat(Hl), Kl = (e) => function(...i) {
|
7101
|
+
const n = Vl(), [r, o, a] = Wl(i), s = Ml(n, a);
|
7054
7102
|
let c = e;
|
7055
|
-
const { use: p } = s, l = (p || []).concat(
|
7103
|
+
const { use: p } = s, l = (p || []).concat(Yl);
|
7056
7104
|
for (let u = l.length; u--; )
|
7057
7105
|
c = l[u](c);
|
7058
7106
|
return c(r, o || s.fetcher || null, s);
|
7059
|
-
},
|
7107
|
+
}, Jl = (e, t, i) => {
|
7060
7108
|
const n = t[e] || (t[e] = []);
|
7061
7109
|
return n.push(i), () => {
|
7062
7110
|
const r = n.indexOf(i);
|
7063
7111
|
r >= 0 && (n[r] = n[n.length - 1], n.pop());
|
7064
7112
|
};
|
7065
7113
|
};
|
7066
|
-
|
7067
|
-
const
|
7114
|
+
Ul();
|
7115
|
+
const Sr = me.use || ((e) => {
|
7068
7116
|
if (e.status === "pending")
|
7069
7117
|
throw e;
|
7070
7118
|
if (e.status === "fulfilled")
|
@@ -7074,10 +7122,10 @@ const yr = me.use || ((e) => {
|
|
7074
7122
|
}, (t) => {
|
7075
7123
|
e.status = "rejected", e.reason = t;
|
7076
7124
|
}), e);
|
7077
|
-
}),
|
7125
|
+
}), $n = {
|
7078
7126
|
dedupe: !0
|
7079
|
-
},
|
7080
|
-
const { cache: n, compare: r, suspense: o, fallbackData: a, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, x, g, y] =
|
7127
|
+
}, Gl = (e, t, i) => {
|
7128
|
+
const { cache: n, compare: r, suspense: o, fallbackData: a, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, x, g, y] = Ve.get(n), [h, _] = ui(e), A = Le(!1), T = Le(!1), b = Le(h), C = Le(t), z = Le(i), I = () => z.current, q = () => I().isVisible() && I().isOnline(), [K, re, ue, X] = uo(n, h), U = Le({}).current, ae = ee(a) ? i.fallback[h] : a, we = (w, Y) => {
|
7081
7129
|
for (const pe in U) {
|
7082
7130
|
const Q = pe;
|
7083
7131
|
if (Q === "data") {
|
@@ -7087,9 +7135,9 @@ const yr = me.use || ((e) => {
|
|
7087
7135
|
return !1;
|
7088
7136
|
}
|
7089
7137
|
return !0;
|
7090
|
-
}, Ee =
|
7138
|
+
}, Ee = Qe(() => {
|
7091
7139
|
const w = !h || !t ? !1 : ee(s) ? I().isPaused() || o ? !1 : ee(c) ? !0 : c : s, Y = (fe) => {
|
7092
|
-
const _e =
|
7140
|
+
const _e = Ge(fe);
|
7093
7141
|
return delete _e._k, w ? {
|
7094
7142
|
isValidating: !0,
|
7095
7143
|
isLoading: !0,
|
@@ -7107,7 +7155,7 @@ const yr = me.use || ((e) => {
|
|
7107
7155
|
}, [
|
7108
7156
|
n,
|
7109
7157
|
h
|
7110
|
-
]), be =
|
7158
|
+
]), be = wl.useSyncExternalStore(je(
|
7111
7159
|
(w) => ue(h, (Y, pe) => {
|
7112
7160
|
we(pe, Y) || w();
|
7113
7161
|
}),
|
@@ -7116,53 +7164,53 @@ const yr = me.use || ((e) => {
|
|
7116
7164
|
n,
|
7117
7165
|
h
|
7118
7166
|
]
|
7119
|
-
), Ee[0], Ee[1]), ge = !A.current, S = m[h] && m[h].length > 0, k = be.data, B = ee(k) ? ae : k, M = be.error, F =
|
7167
|
+
), Ee[0], Ee[1]), ge = !A.current, S = m[h] && m[h].length > 0, k = be.data, B = ee(k) ? ae : k, M = be.error, F = Le(B), W = f ? ee(k) ? F.current : k : B, P = S && !ee(M) ? !1 : ge && !ee(s) ? s : I().isPaused() ? !1 : o ? ee(B) ? !1 : c : ee(B) || c, $ = !!(h && t && ge && P), V = ee(be.isValidating) ? $ : be.isValidating, J = ee(be.isLoading) ? $ : be.isLoading, L = je(
|
7120
7168
|
async (w) => {
|
7121
7169
|
const Y = C.current;
|
7122
7170
|
if (!h || !Y || T.current || I().isPaused())
|
7123
7171
|
return !1;
|
7124
7172
|
let pe, Q, ke = !0;
|
7125
|
-
const Oe = w || {}, ve = !g[h] || !Oe.dedupe, fe = () =>
|
7173
|
+
const Oe = w || {}, ve = !g[h] || !Oe.dedupe, fe = () => yr ? !T.current && h === b.current && A.current : h === b.current, _e = {
|
7126
7174
|
isValidating: !1,
|
7127
7175
|
isLoading: !1
|
7128
|
-
},
|
7176
|
+
}, lt = () => {
|
7129
7177
|
re(_e);
|
7130
|
-
},
|
7178
|
+
}, Ye = () => {
|
7131
7179
|
const R = g[h];
|
7132
7180
|
R && R[1] === Q && delete g[h];
|
7133
|
-
},
|
7181
|
+
}, pt = {
|
7134
7182
|
isValidating: !0
|
7135
7183
|
};
|
7136
|
-
ee(K().data) && (
|
7184
|
+
ee(K().data) && (pt.isLoading = !0);
|
7137
7185
|
try {
|
7138
|
-
if (ve && (re(
|
7186
|
+
if (ve && (re(pt), i.loadingTimeout && ee(K().data) && setTimeout(() => {
|
7139
7187
|
ke && fe() && I().onLoadingSlow(h, i);
|
7140
7188
|
}, i.loadingTimeout), g[h] = [
|
7141
7189
|
Y(_),
|
7142
|
-
|
7143
|
-
]), [pe, Q] = g[h], pe = await pe, ve && setTimeout(
|
7190
|
+
ii()
|
7191
|
+
]), [pe, Q] = g[h], pe = await pe, ve && setTimeout(Ye, i.dedupingInterval), !g[h] || g[h][1] !== Q)
|
7144
7192
|
return ve && fe() && I().onDiscarded(h), !1;
|
7145
|
-
_e.error =
|
7193
|
+
_e.error = Pe;
|
7146
7194
|
const R = x[h];
|
7147
7195
|
if (!ee(R) && // case 1
|
7148
7196
|
(Q <= R[0] || // case 2
|
7149
7197
|
Q <= R[1] || // case 3
|
7150
7198
|
R[1] === 0))
|
7151
|
-
return
|
7199
|
+
return lt(), ve && fe() && I().onDiscarded(h), !1;
|
7152
7200
|
const j = K().data;
|
7153
7201
|
_e.data = r(j, pe) ? j : pe, ve && fe() && I().onSuccess(pe, h, i);
|
7154
7202
|
} catch (R) {
|
7155
|
-
|
7203
|
+
Ye();
|
7156
7204
|
const j = I(), { shouldRetryOnError: se } = j;
|
7157
|
-
j.isPaused() || (_e.error = R, ve && fe() && (j.onError(R, h, j), (se === !0 ||
|
7205
|
+
j.isPaused() || (_e.error = R, ve && fe() && (j.onError(R, h, j), (se === !0 || qe(se) && se(R)) && (!I().revalidateOnFocus || !I().revalidateOnReconnect || q()) && j.onErrorRetry(R, h, j, (de) => {
|
7158
7206
|
const Te = m[h];
|
7159
|
-
Te && Te[0] && Te[0](
|
7207
|
+
Te && Te[0] && Te[0](Ft.ERROR_REVALIDATE_EVENT, de);
|
7160
7208
|
}, {
|
7161
7209
|
retryCount: (Oe.retryCount || 0) + 1,
|
7162
7210
|
dedupe: !0
|
7163
7211
|
})));
|
7164
7212
|
}
|
7165
|
-
return ke = !1,
|
7213
|
+
return ke = !1, lt(), !0;
|
7166
7214
|
},
|
7167
7215
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7168
7216
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7181,44 +7229,44 @@ const yr = me.use || ((e) => {
|
|
7181
7229
|
]
|
7182
7230
|
), xe = je(
|
7183
7231
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
7184
|
-
(...w) =>
|
7232
|
+
(...w) => vo(n, b.current, ...w),
|
7185
7233
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7186
7234
|
[]
|
7187
7235
|
);
|
7188
|
-
if (
|
7236
|
+
if (Ln(() => {
|
7189
7237
|
C.current = t, z.current = i, ee(k) || (F.current = k);
|
7190
|
-
}),
|
7238
|
+
}), Ln(() => {
|
7191
7239
|
if (!h) return;
|
7192
|
-
const w = L.bind(
|
7240
|
+
const w = L.bind(Pe, $n);
|
7193
7241
|
let Y = 0;
|
7194
|
-
const Q =
|
7195
|
-
if (ke ==
|
7242
|
+
const Q = Jl(h, m, (ke, Oe = {}) => {
|
7243
|
+
if (ke == Ft.FOCUS_EVENT) {
|
7196
7244
|
const ve = Date.now();
|
7197
7245
|
I().revalidateOnFocus && ve > Y && q() && (Y = ve + I().focusThrottleInterval, w());
|
7198
|
-
} else if (ke ==
|
7246
|
+
} else if (ke == Ft.RECONNECT_EVENT)
|
7199
7247
|
I().revalidateOnReconnect && q() && w();
|
7200
7248
|
else {
|
7201
|
-
if (ke ==
|
7249
|
+
if (ke == Ft.MUTATE_EVENT)
|
7202
7250
|
return L();
|
7203
|
-
if (ke ==
|
7251
|
+
if (ke == Ft.ERROR_REVALIDATE_EVENT)
|
7204
7252
|
return L(Oe);
|
7205
7253
|
}
|
7206
7254
|
});
|
7207
7255
|
return T.current = !1, b.current = h, A.current = !0, re({
|
7208
7256
|
_k: _
|
7209
|
-
}), P && (ee(B) ||
|
7257
|
+
}), P && (ee(B) || Lt ? w() : Dl(w)), () => {
|
7210
7258
|
T.current = !0, Q();
|
7211
7259
|
};
|
7212
7260
|
}, [
|
7213
7261
|
h
|
7214
|
-
]),
|
7262
|
+
]), Ln(() => {
|
7215
7263
|
let w;
|
7216
7264
|
function Y() {
|
7217
|
-
const Q =
|
7265
|
+
const Q = qe(p) ? p(K().data) : p;
|
7218
7266
|
Q && w !== -1 && (w = setTimeout(pe, Q));
|
7219
7267
|
}
|
7220
7268
|
function pe() {
|
7221
|
-
!K().error && (l || I().isVisible()) && (u || I().isOnline()) ? L(
|
7269
|
+
!K().error && (l || I().isVisible()) && (u || I().isOnline()) ? L($n).then(Y) : Y();
|
7222
7270
|
}
|
7223
7271
|
return Y(), () => {
|
7224
7272
|
w && (clearTimeout(w), w = -1);
|
@@ -7228,18 +7276,18 @@ const yr = me.use || ((e) => {
|
|
7228
7276
|
l,
|
7229
7277
|
u,
|
7230
7278
|
h
|
7231
|
-
]),
|
7232
|
-
if (!
|
7279
|
+
]), zo(W), o && ee(B) && h) {
|
7280
|
+
if (!yr && Lt)
|
7233
7281
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7234
7282
|
C.current = t, z.current = i, T.current = !1;
|
7235
7283
|
const w = y[h];
|
7236
7284
|
if (!ee(w)) {
|
7237
7285
|
const Y = xe(w);
|
7238
|
-
|
7286
|
+
Sr(Y);
|
7239
7287
|
}
|
7240
7288
|
if (ee(M)) {
|
7241
|
-
const Y = L(
|
7242
|
-
ee(W) || (Y.status = "fulfilled", Y.value = !0),
|
7289
|
+
const Y = L($n);
|
7290
|
+
ee(W) || (Y.status = "fulfilled", Y.value = !0), Sr(Y);
|
7243
7291
|
} else
|
7244
7292
|
throw M;
|
7245
7293
|
}
|
@@ -7258,86 +7306,86 @@ const yr = me.use || ((e) => {
|
|
7258
7306
|
return U.isLoading = !0, J;
|
7259
7307
|
}
|
7260
7308
|
};
|
7261
|
-
},
|
7262
|
-
baseURL:
|
7263
|
-
}),
|
7309
|
+
}, Xl = Kl(Gl), Zl = "https://arpeggi.io/api/v2/", Ql = Re.create({
|
7310
|
+
baseURL: Zl
|
7311
|
+
}), ep = async (e) => {
|
7264
7312
|
if (e === null) return null;
|
7265
|
-
const t = await
|
7313
|
+
const t = await Ql.get(e);
|
7266
7314
|
return console.log(t.data), t.data;
|
7267
|
-
},
|
7315
|
+
}, tp = (e) => {
|
7268
7316
|
const t = e > 0;
|
7269
|
-
return
|
7317
|
+
return Xl(t ? `/ml-inference-jobs/${e}` : null, ep, {
|
7270
7318
|
refreshInterval: 1e3
|
7271
7319
|
});
|
7272
|
-
},
|
7273
|
-
const [e, t] = me.useState(null), [i, n] = me.useState(0), [r, o] = me.useState(0), { data: a, isLoading: s } =
|
7320
|
+
}, np = () => {
|
7321
|
+
const [e, t] = me.useState(null), [i, n] = me.useState(0), [r, o] = me.useState(0), { data: a, isLoading: s } = tp(i);
|
7274
7322
|
return { file: e, setFile: t, mlijId: i, setMlijId: n, voiceModelId: r, setVoiceModelId: o, data: a, isLoading: s };
|
7275
|
-
},
|
7276
|
-
const t =
|
7277
|
-
return /* @__PURE__ */
|
7278
|
-
},
|
7279
|
-
const { setFile: t } =
|
7280
|
-
return /* @__PURE__ */
|
7281
|
-
|
7323
|
+
}, bo = me.createContext({}), ip = () => me.useContext(bo), wp = ({ children: e }) => {
|
7324
|
+
const t = np();
|
7325
|
+
return /* @__PURE__ */ Fe.jsx(bo.Provider, { value: t, children: e });
|
7326
|
+
}, rp = 1, op = 100 * 1024 * 1024, ap = 1, sp = 100, Ep = ({ children: e }) => {
|
7327
|
+
const { setFile: t } = ip(), i = (n) => t(n[0]);
|
7328
|
+
return /* @__PURE__ */ Fe.jsx(
|
7329
|
+
Ls,
|
7282
7330
|
{
|
7283
7331
|
files: [],
|
7284
7332
|
onFileAccepted: i,
|
7285
|
-
maxFileCount:
|
7286
|
-
maxSizeBytes:
|
7287
|
-
minSizeBytes:
|
7288
|
-
maxDurationS:
|
7333
|
+
maxFileCount: rp,
|
7334
|
+
maxSizeBytes: op,
|
7335
|
+
minSizeBytes: ap,
|
7336
|
+
maxDurationS: sp,
|
7289
7337
|
children: e
|
7290
7338
|
}
|
7291
7339
|
);
|
7292
7340
|
};
|
7293
|
-
function
|
7341
|
+
function Xt(e, t, i) {
|
7294
7342
|
for (let n = 0; n < e.length; ++n)
|
7295
7343
|
t[i + n] = e.charCodeAt(n);
|
7296
7344
|
}
|
7297
|
-
function
|
7345
|
+
function rn(e, t, i) {
|
7298
7346
|
e = Math.floor(e), t[i + 0] = e & 255, t[i + 1] = e >> 8 & 255;
|
7299
7347
|
}
|
7300
|
-
function
|
7348
|
+
function et(e, t, i) {
|
7301
7349
|
e = Math.floor(e), t[i + 0] = e & 255, t[i + 1] = e >> 8 & 255, t[i + 2] = e >> 16 & 255, t[i + 3] = e >> 24 & 255;
|
7302
7350
|
}
|
7303
|
-
function
|
7351
|
+
function cp(e) {
|
7304
7352
|
const t = new ArrayBuffer(4);
|
7305
7353
|
return new Float32Array(t)[0] = e, new Uint32Array(t)[0] | 0;
|
7306
7354
|
}
|
7307
|
-
function
|
7355
|
+
function lp(e, t, i, n) {
|
7308
7356
|
let r = 0, o = 0;
|
7309
7357
|
const a = e.length, s = e.numberOfChannels;
|
7310
7358
|
let c, p;
|
7311
7359
|
for (r = 0; r < a; ++r)
|
7312
7360
|
for (o = 0; o < s; ++o)
|
7313
7361
|
if (c = e.getChannelData(o), n === 16)
|
7314
|
-
p = c[r] * 32768, p = Math.max(-32768, Math.min(p, 32767)),
|
7362
|
+
p = c[r] * 32768, p = Math.max(-32768, Math.min(p, 32767)), rn(p, t, i), i += 2;
|
7315
7363
|
else if (n === 32)
|
7316
|
-
p =
|
7364
|
+
p = cp(c[r]), et(p, t, i), i += 4;
|
7317
7365
|
else {
|
7318
7366
|
console.log("Invalid bit depth for PCM encoding.");
|
7319
7367
|
return;
|
7320
7368
|
}
|
7321
7369
|
}
|
7322
|
-
async function
|
7370
|
+
async function pp(e, t) {
|
7323
7371
|
let i = e instanceof Blob ? e : new Blob(e);
|
7324
7372
|
const n = URL.createObjectURL(i), o = await (await fetch(n)).arrayBuffer();
|
7325
7373
|
return await new AudioContext(t).decodeAudioData(o);
|
7326
7374
|
}
|
7327
|
-
async function
|
7375
|
+
async function dp(e, t = !1) {
|
7328
7376
|
const i = e.length, n = e.numberOfChannels, r = e.sampleRate, o = t ? 32 : 16, a = o / 8, s = r * n * o / 8, c = n * o / 8, p = i * n * a, u = 44 + p, f = new Uint8Array(u), m = 16, x = p, g = 4 + (8 + m) + (8 + x);
|
7329
|
-
return
|
7377
|
+
return Xt("RIFF", f, 0), et(g, f, 4), Xt("WAVE", f, 8), Xt("fmt ", f, 12), et(m, f, 16), rn(t ? 3 : 1, f, 20), rn(n, f, 22), et(r, f, 24), et(s, f, 28), rn(c, f, 32), et(o, f, 34), Xt("data", f, 36), et(x, f, 40), lp(e, f, 44, o), new Blob([f], { type: "audio/wave" });
|
7330
7378
|
}
|
7331
|
-
async function
|
7332
|
-
const n = await
|
7333
|
-
return
|
7379
|
+
async function up(e, t = !1, i) {
|
7380
|
+
const n = await pp(e, i);
|
7381
|
+
return dp(n, t);
|
7334
7382
|
}
|
7335
|
-
const
|
7336
|
-
class
|
7383
|
+
const fp = 128;
|
7384
|
+
class mp {
|
7337
7385
|
constructor() {
|
7338
|
-
|
7339
|
-
|
7340
|
-
|
7386
|
+
Nt(this, "mediaRecorder", null);
|
7387
|
+
Nt(this, "stream", null);
|
7388
|
+
Nt(this, "__data", null);
|
7341
7389
|
}
|
7342
7390
|
/**
|
7343
7391
|
* @returns {Promise<boolean>} - true if user has microphone access, false otherwise
|
@@ -7354,7 +7402,7 @@ class lp {
|
|
7354
7402
|
if (((t = this.mediaRecorder) == null ? void 0 : t.state) === "recording") return !0;
|
7355
7403
|
try {
|
7356
7404
|
this.stream = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }), this.mediaRecorder = new MediaRecorder(this.stream, {
|
7357
|
-
bitsPerSecond:
|
7405
|
+
bitsPerSecond: fp * 1e3
|
7358
7406
|
}), this.mediaRecorder.ondataavailable = (i) => this.__data = i.data;
|
7359
7407
|
} catch (i) {
|
7360
7408
|
return console.error(i), !1;
|
@@ -7382,15 +7430,15 @@ class lp {
|
|
7382
7430
|
* @returns {Promise<Blob | null>} - Blob of the recorded audio
|
7383
7431
|
*/
|
7384
7432
|
async getWavBlob() {
|
7385
|
-
return this.__data ? await
|
7433
|
+
return this.__data ? await up(this.__data) : null;
|
7386
7434
|
}
|
7387
7435
|
}
|
7388
|
-
const
|
7436
|
+
const Zt = new mp(), xp = "Recording.wav", vp = 1500, Sp = (e) => {
|
7389
7437
|
const [t, i] = me.useState(!1), [n, r] = me.useState(!1), [o, a] = me.useState(!1);
|
7390
7438
|
return me.useEffect(() => {
|
7391
7439
|
var p;
|
7392
7440
|
const c = async () => {
|
7393
|
-
|
7441
|
+
Zt.checkMicrophonePermission().then(i);
|
7394
7442
|
};
|
7395
7443
|
return c(), (p = navigator == null ? void 0 : navigator.mediaDevices) == null || p.addEventListener("devicechange", c), () => {
|
7396
7444
|
var l;
|
@@ -7400,33 +7448,34 @@ const Gt = new lp(), pp = "Recording.wav", dp = 1500, gp = (e) => {
|
|
7400
7448
|
if (n) {
|
7401
7449
|
if (!o)
|
7402
7450
|
return;
|
7403
|
-
r(!1), a(!1), await
|
7404
|
-
const p = await
|
7451
|
+
r(!1), a(!1), await Zt.stopRecording();
|
7452
|
+
const p = await Zt.getWavBlob();
|
7405
7453
|
if (!p) {
|
7406
7454
|
console.log("Failed to get audio blob", p);
|
7407
7455
|
return;
|
7408
7456
|
}
|
7409
|
-
const l = new File([p],
|
7457
|
+
const l = new File([p], xp, {
|
7410
7458
|
type: "audio/mpeg",
|
7411
7459
|
lastModified: Date.now()
|
7412
7460
|
});
|
7413
7461
|
e.onFileUpdate(l);
|
7414
7462
|
return;
|
7415
7463
|
}
|
7416
|
-
const c = await
|
7464
|
+
const c = await Zt.startRecording();
|
7417
7465
|
r(c), setTimeout(() => {
|
7418
7466
|
a(!0);
|
7419
|
-
},
|
7467
|
+
}, vp);
|
7420
7468
|
} };
|
7421
7469
|
};
|
7422
7470
|
export {
|
7423
|
-
|
7424
|
-
|
7425
|
-
|
7426
|
-
|
7427
|
-
|
7428
|
-
|
7429
|
-
|
7430
|
-
|
7471
|
+
Ls as AudioFilePickerRoot,
|
7472
|
+
yp as ConvertStep,
|
7473
|
+
Ep as FilePicker,
|
7474
|
+
wp as GuestConvertProvider,
|
7475
|
+
vp as MIN_RECORDING_LENGTH_MS,
|
7476
|
+
xp as RECORDED_AUDIO_NAME,
|
7477
|
+
bp as useAudioFilePickerContext,
|
7478
|
+
ip as useGuestConvertContext,
|
7479
|
+
Sp as useRecorder
|
7431
7480
|
};
|
7432
7481
|
//# sourceMappingURL=index.es.js.map
|