arpeggi-framer-components 0.0.9 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +997 -934
- 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
|
5
|
-
function
|
1
|
+
var Wa = Object.defineProperty;
|
2
|
+
var Ua = (e, t, i) => t in e ? Wa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
3
|
+
var Ht = (e, t, i) => Ua(e, typeof t != "symbol" ? t + "" : t, i);
|
4
|
+
import ye, { useMemo as Je, useRef as he, useReducer as Va, useEffect as Lt, useCallback as _e, forwardRef as Ha, useImperativeHandle as Ga, Fragment as Ya, createContext as Dr, useLayoutEffect as Ka, useContext as oi, useDebugValue as jr, useState as Fr } from "react";
|
5
|
+
function Pr(e) {
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
7
7
|
}
|
8
|
-
var
|
8
|
+
var Gt = { exports: {} }, jt = {};
|
9
9
|
/**
|
10
10
|
* @license React
|
11
11
|
* react-jsx-runtime.production.min.js
|
@@ -15,11 +15,11 @@ var Ht = { exports: {} }, Dt = {};
|
|
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
|
-
|
22
|
-
var e =
|
18
|
+
var Ti;
|
19
|
+
function Ja() {
|
20
|
+
if (Ti) return jt;
|
21
|
+
Ti = 1;
|
22
|
+
var e = ye, 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, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
23
23
|
function o(s, c, p) {
|
24
24
|
var l, u = {}, f = null, m = null;
|
25
25
|
p !== void 0 && (f = "" + p), c.key !== void 0 && (f = "" + c.key), c.ref !== void 0 && (m = c.ref);
|
@@ -27,9 +27,9 @@ function Ya() {
|
|
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 jt.Fragment = i, jt.jsx = o, jt.jsxs = o, jt;
|
31
31
|
}
|
32
|
-
var
|
32
|
+
var Ft = {};
|
33
33
|
/**
|
34
34
|
* @license React
|
35
35
|
* react-jsx-runtime.development.js
|
@@ -39,10 +39,10 @@ var jt = {};
|
|
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
|
45
|
-
var e =
|
42
|
+
var ki;
|
43
|
+
function Xa() {
|
44
|
+
return ki || (ki = 1, process.env.NODE_ENV !== "production" && function() {
|
45
|
+
var e = ye, t = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = 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"), v = Symbol.iterator, g = "@@iterator";
|
46
46
|
function w(d) {
|
47
47
|
if (d === null || typeof d != "object")
|
48
48
|
return null;
|
@@ -131,14 +131,14 @@ function Ka() {
|
|
131
131
|
}
|
132
132
|
return null;
|
133
133
|
}
|
134
|
-
var U = Object.assign, le = 0, Ee, Se, pe,
|
134
|
+
var U = Object.assign, le = 0, Ee, Se, pe, be, S, O, I;
|
135
135
|
function q() {
|
136
136
|
}
|
137
137
|
q.__reactDisabledLog = !0;
|
138
138
|
function B() {
|
139
139
|
{
|
140
140
|
if (le === 0) {
|
141
|
-
Ee = console.log, Se = console.info, pe = console.warn,
|
141
|
+
Ee = console.log, Se = console.info, pe = console.warn, be = console.error, S = console.group, O = console.groupCollapsed, I = console.groupEnd;
|
142
142
|
var d = {
|
143
143
|
configurable: !0,
|
144
144
|
enumerable: !0,
|
@@ -177,7 +177,7 @@ function Ka() {
|
|
177
177
|
value: pe
|
178
178
|
}),
|
179
179
|
error: U({}, d, {
|
180
|
-
value:
|
180
|
+
value: be
|
181
181
|
}),
|
182
182
|
group: U({}, d, {
|
183
183
|
value: S
|
@@ -280,8 +280,8 @@ function Ka() {
|
|
280
280
|
} finally {
|
281
281
|
ee = !1, z.current = ve, H(), Error.prepareStackTrace = oe;
|
282
282
|
}
|
283
|
-
var
|
284
|
-
return typeof d == "function" && L.set(d,
|
283
|
+
var vt = d ? d.displayName || d.name : "", Ri = vt ? K(vt) : "";
|
284
|
+
return typeof d == "function" && L.set(d, Ri), Ri;
|
285
285
|
}
|
286
286
|
function F(d, R, C) {
|
287
287
|
return y(d, !1);
|
@@ -327,7 +327,7 @@ function Ka() {
|
|
327
327
|
} else
|
328
328
|
X.setExtraStackFrame(null);
|
329
329
|
}
|
330
|
-
function
|
330
|
+
function we(d, R, C, Y, oe) {
|
331
331
|
{
|
332
332
|
var ve = Function.call.bind(ue);
|
333
333
|
for (var ie in d)
|
@@ -375,9 +375,9 @@ function Ka() {
|
|
375
375
|
ref: !0,
|
376
376
|
__self: !0,
|
377
377
|
__source: !0
|
378
|
-
},
|
378
|
+
}, Ze, Ye, tt;
|
379
379
|
tt = {};
|
380
|
-
function
|
380
|
+
function Tt(d) {
|
381
381
|
if (ue.call(d, "ref")) {
|
382
382
|
var R = Object.getOwnPropertyDescriptor(d, "ref").get;
|
383
383
|
if (R && R.isReactWarning)
|
@@ -385,7 +385,7 @@ function Ka() {
|
|
385
385
|
}
|
386
386
|
return d.ref !== void 0;
|
387
387
|
}
|
388
|
-
function
|
388
|
+
function kt(d) {
|
389
389
|
if (ue.call(d, "key")) {
|
390
390
|
var R = Object.getOwnPropertyDescriptor(d, "key").get;
|
391
391
|
if (R && R.isReactWarning)
|
@@ -393,16 +393,16 @@ function Ka() {
|
|
393
393
|
}
|
394
394
|
return d.key !== void 0;
|
395
395
|
}
|
396
|
-
function
|
396
|
+
function mt(d, R) {
|
397
397
|
if (typeof d.ref == "string" && de.current && R && de.current.stateNode !== R) {
|
398
398
|
var C = te(de.current.type);
|
399
399
|
tt[C] || (k('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', te(de.current.type), d.ref), tt[C] = !0);
|
400
400
|
}
|
401
401
|
}
|
402
|
-
function
|
402
|
+
function Ot(d, R) {
|
403
403
|
{
|
404
404
|
var C = function() {
|
405
|
-
|
405
|
+
Ze || (Ze = !0, k("%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)", R));
|
406
406
|
};
|
407
407
|
C.isReactWarning = !0, Object.defineProperty(d, "key", {
|
408
408
|
get: C,
|
@@ -410,7 +410,7 @@ function Ka() {
|
|
410
410
|
});
|
411
411
|
}
|
412
412
|
}
|
413
|
-
function
|
413
|
+
function _t(d, R) {
|
414
414
|
{
|
415
415
|
var C = function() {
|
416
416
|
Ye || (Ye = !0, k("%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)", R));
|
@@ -421,7 +421,7 @@ function Ka() {
|
|
421
421
|
});
|
422
422
|
}
|
423
423
|
}
|
424
|
-
var
|
424
|
+
var At = function(d, R, C, Y, oe, ve, ie) {
|
425
425
|
var ne = {
|
426
426
|
// This tag allows us to uniquely identify this as a React Element
|
427
427
|
$$typeof: t,
|
@@ -450,10 +450,10 @@ function Ka() {
|
|
450
450
|
value: oe
|
451
451
|
}), Object.freeze && (Object.freeze(ne.props), Object.freeze(ne)), ne;
|
452
452
|
};
|
453
|
-
function
|
453
|
+
function Ct(d, R, C, Y, oe) {
|
454
454
|
{
|
455
455
|
var ve, ie = {}, ne = null, Fe = null;
|
456
|
-
C !== void 0 && (ae(C), ne = "" + C),
|
456
|
+
C !== void 0 && (ae(C), ne = "" + C), kt(R) && (ae(R.key), ne = "" + R.key), Tt(R) && (Fe = R.ref, mt(R, oe));
|
457
457
|
for (ve in R)
|
458
458
|
ue.call(R, ve) && !Te.hasOwnProperty(ve) && (ie[ve] = R[ve]);
|
459
459
|
if (d && d.defaultProps) {
|
@@ -463,28 +463,28 @@ function Ka() {
|
|
463
463
|
}
|
464
464
|
if (ne || Fe) {
|
465
465
|
var Ae = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
466
|
-
ne &&
|
466
|
+
ne && Ot(ie, Ae), Fe && _t(ie, Ae);
|
467
467
|
}
|
468
|
-
return
|
468
|
+
return At(d, ne, Fe, oe, Y, de.current, ie);
|
469
469
|
}
|
470
470
|
}
|
471
|
-
var
|
472
|
-
function
|
471
|
+
var Dt = x.ReactCurrentOwner, hi = x.ReactDebugCurrentFrame;
|
472
|
+
function xt(d) {
|
473
473
|
if (d) {
|
474
474
|
var R = d._owner, C = M(d.type, d._source, R ? R.type : null);
|
475
|
-
|
475
|
+
hi.setExtraStackFrame(C);
|
476
476
|
} else
|
477
|
-
|
477
|
+
hi.setExtraStackFrame(null);
|
478
478
|
}
|
479
479
|
var wn;
|
480
480
|
wn = !1;
|
481
481
|
function En(d) {
|
482
482
|
return typeof d == "object" && d !== null && d.$$typeof === t;
|
483
483
|
}
|
484
|
-
function
|
484
|
+
function yi() {
|
485
485
|
{
|
486
|
-
if (
|
487
|
-
var d = te(
|
486
|
+
if (Dt.current) {
|
487
|
+
var d = te(Dt.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 Ia(d) {
|
497
497
|
return "";
|
498
498
|
}
|
499
|
-
var
|
500
|
-
function
|
499
|
+
var bi = {};
|
500
|
+
function Ba(d) {
|
501
501
|
{
|
502
|
-
var R =
|
502
|
+
var R = yi();
|
503
503
|
if (!R) {
|
504
504
|
var C = typeof d == "string" ? d : d.displayName || d.name;
|
505
505
|
C && (R = `
|
@@ -509,27 +509,27 @@ Check the top-level render call using <` + C + ">.");
|
|
509
509
|
return R;
|
510
510
|
}
|
511
511
|
}
|
512
|
-
function
|
512
|
+
function wi(d, R) {
|
513
513
|
{
|
514
514
|
if (!d._store || d._store.validated || d.key != null)
|
515
515
|
return;
|
516
516
|
d._store.validated = !0;
|
517
|
-
var C =
|
518
|
-
if (
|
517
|
+
var C = Ba(R);
|
518
|
+
if (bi[C])
|
519
519
|
return;
|
520
|
-
|
520
|
+
bi[C] = !0;
|
521
521
|
var Y = "";
|
522
|
-
d && d._owner && d._owner !==
|
522
|
+
d && d._owner && d._owner !== Dt.current && (Y = " It was passed a child from " + te(d._owner.type) + "."), xt(d), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, Y), xt(null);
|
523
523
|
}
|
524
524
|
}
|
525
|
-
function
|
525
|
+
function Ei(d, R) {
|
526
526
|
{
|
527
527
|
if (typeof d != "object")
|
528
528
|
return;
|
529
529
|
if ($e(d))
|
530
530
|
for (var C = 0; C < d.length; C++) {
|
531
531
|
var Y = d[C];
|
532
|
-
En(Y) &&
|
532
|
+
En(Y) && wi(Y, R);
|
533
533
|
}
|
534
534
|
else if (En(d))
|
535
535
|
d._store && (d._store.validated = !0);
|
@@ -537,11 +537,11 @@ Check the top-level render call using <` + C + ">.");
|
|
537
537
|
var oe = w(d);
|
538
538
|
if (typeof oe == "function" && oe !== d.entries)
|
539
539
|
for (var ve = oe.call(d), ie; !(ie = ve.next()).done; )
|
540
|
-
En(ie.value) &&
|
540
|
+
En(ie.value) && wi(ie.value, R);
|
541
541
|
}
|
542
542
|
}
|
543
543
|
}
|
544
|
-
function
|
544
|
+
function za(d) {
|
545
545
|
{
|
546
546
|
var R = d.type;
|
547
547
|
if (R == null || typeof R == "string")
|
@@ -557,7 +557,7 @@ Check the top-level render call using <` + C + ">.");
|
|
557
557
|
return;
|
558
558
|
if (C) {
|
559
559
|
var Y = te(R);
|
560
|
-
|
560
|
+
we(C, d.props, "prop", Y, d);
|
561
561
|
} else if (R.PropTypes !== void 0 && !wn) {
|
562
562
|
wn = !0;
|
563
563
|
var oe = te(R);
|
@@ -566,30 +566,30 @@ Check the top-level render call using <` + C + ">.");
|
|
566
566
|
typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
567
567
|
}
|
568
568
|
}
|
569
|
-
function
|
569
|
+
function La(d) {
|
570
570
|
{
|
571
571
|
for (var R = Object.keys(d.props), C = 0; C < R.length; C++) {
|
572
572
|
var Y = R[C];
|
573
573
|
if (Y !== "children" && Y !== "key") {
|
574
|
-
|
574
|
+
xt(d), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Y), xt(null);
|
575
575
|
break;
|
576
576
|
}
|
577
577
|
}
|
578
|
-
d.ref !== null && (
|
578
|
+
d.ref !== null && (xt(d), k("Invalid attribute `ref` supplied to `React.Fragment`."), xt(null));
|
579
579
|
}
|
580
580
|
}
|
581
|
-
function
|
581
|
+
function Si(d, R, C, Y, oe, ve) {
|
582
582
|
{
|
583
583
|
var ie = V(d);
|
584
584
|
if (!ie) {
|
585
585
|
var ne = "";
|
586
586
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (ne += " 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 Fe =
|
588
|
-
Fe ? ne += Fe : ne +=
|
587
|
+
var Fe = Ia();
|
588
|
+
Fe ? ne += Fe : ne += yi();
|
589
589
|
var Oe;
|
590
590
|
d === null ? Oe = "null" : $e(d) ? Oe = "array" : d !== void 0 && d.$$typeof === t ? (Oe = "<" + (te(d.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : Oe = typeof d, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Oe, ne);
|
591
591
|
}
|
592
|
-
var Ae =
|
592
|
+
var Ae = Ct(d, R, C, oe, ve);
|
593
593
|
if (Ae == null)
|
594
594
|
return Ae;
|
595
595
|
if (ie) {
|
@@ -597,41 +597,41 @@ Check the top-level render call using <` + C + ">.");
|
|
597
597
|
if (ze !== void 0)
|
598
598
|
if (Y)
|
599
599
|
if ($e(ze)) {
|
600
|
-
for (var
|
601
|
-
|
600
|
+
for (var vt = 0; vt < ze.length; vt++)
|
601
|
+
Ei(ze[vt], d);
|
602
602
|
Object.freeze && Object.freeze(ze);
|
603
603
|
} else
|
604
604
|
k("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
|
+
Ei(ze, d);
|
607
607
|
}
|
608
|
-
return d === n ?
|
608
|
+
return d === n ? La(Ae) : za(Ae), Ae;
|
609
609
|
}
|
610
610
|
}
|
611
|
-
function
|
612
|
-
return
|
611
|
+
function Ma(d, R, C) {
|
612
|
+
return Si(d, R, C, !0);
|
613
613
|
}
|
614
|
-
function
|
615
|
-
return
|
614
|
+
function $a(d, R, C) {
|
615
|
+
return Si(d, R, C, !1);
|
616
616
|
}
|
617
|
-
var
|
618
|
-
|
619
|
-
}()),
|
617
|
+
var Na = $a, qa = Ma;
|
618
|
+
Ft.Fragment = n, Ft.jsx = Na, Ft.jsxs = qa;
|
619
|
+
}()), Ft;
|
620
620
|
}
|
621
|
-
var
|
622
|
-
function
|
623
|
-
return
|
621
|
+
var Oi;
|
622
|
+
function Za() {
|
623
|
+
return Oi || (Oi = 1, process.env.NODE_ENV === "production" ? Gt.exports = Ja() : Gt.exports = Xa()), Gt.exports;
|
624
624
|
}
|
625
|
-
var
|
625
|
+
var ot = Za(), fe = "colors", Pe = "sizes", P = "space", Qa = { gap: P, gridGap: P, columnGap: P, gridColumnGap: P, rowGap: P, gridRowGap: P, inset: P, insetBlock: P, insetBlockEnd: P, insetBlockStart: P, insetInline: P, insetInlineEnd: P, insetInlineStart: P, margin: P, marginTop: P, marginRight: P, marginBottom: P, marginLeft: P, marginBlock: P, marginBlockEnd: P, marginBlockStart: P, marginInline: P, marginInlineEnd: P, marginInlineStart: P, padding: P, paddingTop: P, paddingRight: P, paddingBottom: P, paddingLeft: P, paddingBlock: P, paddingBlockEnd: P, paddingBlockStart: P, paddingInline: P, paddingInlineEnd: P, paddingInlineStart: P, top: P, right: P, bottom: P, left: P, scrollMargin: P, scrollMarginTop: P, scrollMarginRight: P, scrollMarginBottom: P, scrollMarginLeft: P, scrollMarginX: P, scrollMarginY: P, scrollMarginBlock: P, scrollMarginBlockEnd: P, scrollMarginBlockStart: P, scrollMarginInline: P, scrollMarginInlineEnd: P, scrollMarginInlineStart: P, scrollPadding: P, scrollPaddingTop: P, scrollPaddingRight: P, scrollPaddingBottom: P, scrollPaddingLeft: P, scrollPaddingX: P, scrollPaddingY: P, scrollPaddingBlock: P, scrollPaddingBlockEnd: P, scrollPaddingBlockStart: P, scrollPaddingInline: P, scrollPaddingInlineEnd: P, scrollPaddingInlineStart: P, fontSize: "fontSizes", background: fe, backgroundColor: fe, backgroundImage: fe, borderImage: fe, border: fe, borderBlock: fe, borderBlockEnd: fe, borderBlockStart: fe, borderBottom: fe, borderBottomColor: fe, borderColor: fe, borderInline: fe, borderInlineEnd: fe, borderInlineStart: fe, borderLeft: fe, borderLeftColor: fe, borderRight: fe, borderRightColor: fe, borderTop: fe, borderTopColor: fe, caretColor: fe, color: fe, columnRuleColor: fe, fill: fe, outline: fe, outlineColor: fe, stroke: fe, textDecorationColor: fe, fontFamily: "fonts", fontWeight: "fontWeights", lineHeight: "lineHeights", letterSpacing: "letterSpacings", blockSize: Pe, minBlockSize: Pe, maxBlockSize: Pe, inlineSize: Pe, minInlineSize: Pe, maxInlineSize: Pe, width: Pe, minWidth: Pe, maxWidth: Pe, height: Pe, minHeight: Pe, maxHeight: Pe, flexBasis: Pe, gridTemplateColumns: Pe, gridTemplateRows: Pe, 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" }, eo = (e, t) => typeof t == "function" ? { "()": Function.prototype.toString.call(t) } : t, wt = () => {
|
626
626
|
const e = /* @__PURE__ */ Object.create(null);
|
627
627
|
return (t, i, ...n) => {
|
628
|
-
const r = ((a) => JSON.stringify(a,
|
628
|
+
const r = ((a) => JSON.stringify(a, eo))(t);
|
629
629
|
return r in e ? e[r] : e[r] = i(t, ...n);
|
630
630
|
};
|
631
|
-
},
|
631
|
+
}, st = Symbol.for("sxs.internal"), si = (e, t) => Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)), _i = (e) => {
|
632
632
|
for (const t in e) return !0;
|
633
633
|
return !1;
|
634
|
-
}, { hasOwnProperty:
|
634
|
+
}, { hasOwnProperty: to } = Object.prototype, Un = (e) => e.includes("-") ? e : e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase()), no = /\s+(?![^()]*\))/, gt = (e) => (t) => e(...typeof t == "string" ? String(t).split(no) : [t]), Ai = { 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: gt((e, t) => ({ marginBlockStart: e, marginBlockEnd: t || e })), marginInline: gt((e, t) => ({ marginInlineStart: e, marginInlineEnd: t || e })), maxSize: gt((e, t) => ({ maxBlockSize: e, maxInlineSize: t || e })), minSize: gt((e, t) => ({ minBlockSize: e, minInlineSize: t || e })), paddingBlock: gt((e, t) => ({ paddingBlockStart: e, paddingBlockEnd: t || e })), paddingInline: gt((e, t) => ({ paddingInlineStart: e, paddingInlineEnd: t || e })) }, Sn = /([\d.]+)([^]*)/, io = (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, ro = (e, t) => e in ao && typeof t == "string" ? t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/, (i, n, r, a) => n + (r === "stretch" ? `-moz-available${a};${Un(e)}:${n}-webkit-fill-available` : `-moz-fit-content${a};${Un(e)}:${n}fit-content`) + a) : String(t), ao = { blockSize: 1, height: 1, inlineSize: 1, maxBlockSize: 1, maxHeight: 1, maxInlineSize: 1, maxWidth: 1, minBlockSize: 1, minHeight: 1, minInlineSize: 1, minWidth: 1, width: 1 }, Xe = (e) => e ? e + "-" : "", Ir = (e, t, i) => e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g, (n, r, a, o, s) => o == "$" == !!a ? n : (r || o == "--" ? "calc(" : "") + "var(--" + (o === "$" ? Xe(t) + (s.includes("$") ? "" : Xe(i)) + s.replace(/\$/g, "-") : s) + ")" + (r || o == "--" ? "*" + (r || "") + (a || "1") + ")" : "")), oo = /\s*,\s*(?![^()]*\))/, so = Object.prototype.toString, ht = (e, t, i, n, r) => {
|
635
635
|
let a, o, s;
|
636
636
|
const c = (p, l, u) => {
|
637
637
|
let f, m;
|
@@ -639,15 +639,15 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
639
639
|
for (f in g) {
|
640
640
|
const k = f.charCodeAt(0) === 64, _ = k && Array.isArray(g[f]) ? g[f] : [g[f]];
|
641
641
|
for (m of _) {
|
642
|
-
const T = /[A-Z]/.test(x = f) ? x : x.replace(/-[^]/g, (D) => D[1].toUpperCase()), b = typeof m == "object" && m && m.toString ===
|
642
|
+
const T = /[A-Z]/.test(x = f) ? x : x.replace(/-[^]/g, (D) => D[1].toUpperCase()), b = typeof m == "object" && m && m.toString === so && (!n.utils[T] || !l.length);
|
643
643
|
if (T in n.utils && !b) {
|
644
644
|
const D = n.utils[T];
|
645
645
|
if (D !== o) {
|
646
646
|
o = D, v(D(m)), o = null;
|
647
647
|
continue;
|
648
648
|
}
|
649
|
-
} else if (T in
|
650
|
-
const D =
|
649
|
+
} else if (T in Ai) {
|
650
|
+
const D = Ai[T];
|
651
651
|
if (D !== s) {
|
652
652
|
s = D, v(D(m)), s = null;
|
653
653
|
continue;
|
@@ -657,32 +657,32 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
657
657
|
const me = Sn.test(N), te = 0.0625 * (me ? -1 : 1), [U, le] = me ? [G, N] : [N, G];
|
658
658
|
return "(" + (j[0] === "=" ? "" : j[0] === ">" === me ? "max-" : "min-") + U + ":" + (j[0] !== "=" && j.length === 1 ? le.replace(Sn, (Ee, Se, pe) => Number(Se) + te * (j === ">" ? 1 : -1) + pe) : le) + (V ? ") and (" + (V[0] === ">" ? "min-" : "max-") + U + ":" + (V.length === 1 ? re.replace(Sn, (Ee, Se, pe) => Number(Se) + te * (V === ">" ? -1 : 1) + pe) : re) : "") + ")";
|
659
659
|
})), b) {
|
660
|
-
const D = k ? u.concat(f) : [...u], N = k ? [...l] :
|
661
|
-
a !== void 0 && r(
|
662
|
-
} else a === void 0 && (a = [[], l, u]), f = k || f.charCodeAt(0) !== 36 ? f : `--${
|
660
|
+
const D = k ? u.concat(f) : [...u], N = k ? [...l] : io(l, f.split(oo));
|
661
|
+
a !== void 0 && r(Ci(...a)), a = void 0, c(m, N, D);
|
662
|
+
} else a === void 0 && (a = [[], l, u]), f = k || f.charCodeAt(0) !== 36 ? f : `--${Xe(n.prefix)}${f.slice(1).replace(/\$/g, "-")}`, m = b ? m : typeof m == "number" ? m && T in co ? String(m) + "px" : String(m) : Ir(ro(T, m ?? ""), n.prefix, n.themeMap[T]), a[0].push(`${k ? `${f} ` : `${Un(f)}:`}${m}`);
|
663
663
|
}
|
664
664
|
}
|
665
665
|
var w, x;
|
666
666
|
};
|
667
|
-
v(p), a !== void 0 && r(
|
667
|
+
v(p), a !== void 0 && r(Ci(...a)), a = void 0;
|
668
668
|
};
|
669
669
|
c(e, t, i);
|
670
|
-
},
|
670
|
+
}, Ci = (e, t, i) => `${i.map((n) => `${n}{`).join("")}${t.length ? `${t.join(",")}{` : ""}${e.join(";")}${t.length ? "}" : ""}${Array(i.length ? i.length + 1 : 0).join("}")}`, co = { 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 }, Di = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97)), ct = (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 = Di(i % 52) + n;
|
673
|
+
return Di(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), zt = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"], lo = (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
|
+
}, po = (e) => {
|
686
686
|
let t;
|
687
687
|
const i = () => {
|
688
688
|
const { cssRules: r } = t.sheet;
|
@@ -707,7 +707,7 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, 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 (lo(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 zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, 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+/), v =
|
719
|
+
const m = f.slice(14, -3).trim().split(/\s+/), v = zt[m[0]];
|
720
720
|
v && (t || (t = { sheet: s, reset: n, rules: {}, toString: i }), t.rules[v] = { group: u, index: c, cache: new Set(m) });
|
721
721
|
}
|
722
722
|
if (t) break;
|
@@ -730,17 +730,17 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, 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: a, rules: o } = t;
|
733
|
-
for (let s =
|
734
|
-
const c =
|
733
|
+
for (let s = zt.length - 1; s >= 0; --s) {
|
734
|
+
const c = zt[s];
|
735
735
|
if (!o[c]) {
|
736
|
-
const p =
|
736
|
+
const p = zt[s + 1], l = o[p] ? o[p].index : a.cssRules.length;
|
737
737
|
a.insertRule("@media{}", l), a.insertRule(`--sxs{--sxs:${s}}`, l), o[c] = { group: a.cssRules[l + 1], index: l, cache: /* @__PURE__ */ new Set([s]) };
|
738
738
|
}
|
739
|
-
|
739
|
+
uo(o[c]);
|
740
740
|
}
|
741
741
|
};
|
742
742
|
return n(), t;
|
743
|
-
},
|
743
|
+
}, uo = (e) => {
|
744
744
|
const t = e.group;
|
745
745
|
let i = t.cssRules.length;
|
746
746
|
e.apply = (n) => {
|
@@ -749,23 +749,23 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
749
749
|
} catch {
|
750
750
|
}
|
751
751
|
};
|
752
|
-
},
|
752
|
+
}, Pt = Symbol(), fo = wt(), ji = (e, t) => fo(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 a 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 a = `${
|
754
|
+
for (const r of i) if (r != null) if (r[st]) {
|
755
|
+
n.type == null && (n.type = r[st].type);
|
756
|
+
for (const a of r[st].composers) n.composers.add(a);
|
757
|
+
} else r.constructor !== Object || r.$$typeof ? n.type == null && (n.type = r) : n.composers.add(mo(r, e));
|
758
|
+
return n.type == null && (n.type = "span"), n.composers.size || n.composers.add(["PJLV", {}, [], [], {}, []]), xo(e, n, t);
|
759
|
+
}), mo = ({ variants: e, compoundVariants: t, defaultVariants: i, ...n }, r) => {
|
760
|
+
const a = `${Xe(r.prefix)}c-${ct(n)}`, o = [], 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, to.call(l, u) || (c[f] = "undefined");
|
764
764
|
const m = e[f];
|
765
765
|
for (const v in m) {
|
766
766
|
const g = { [f]: String(v) };
|
767
767
|
String(v) === "undefined" && p.push(f);
|
768
|
-
const w = m[v], x = [g, w, !
|
768
|
+
const w = m[v], x = [g, w, !_i(w)];
|
769
769
|
o.push(x);
|
770
770
|
}
|
771
771
|
}
|
@@ -774,22 +774,22 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
774
774
|
let { css: m, ...v } = f;
|
775
775
|
m = typeof m == "object" && m || {};
|
776
776
|
for (const w in v) v[w] = String(v[w]);
|
777
|
-
const g = [v, m, !
|
777
|
+
const g = [v, m, !_i(m)];
|
778
778
|
s.push(g);
|
779
779
|
}
|
780
780
|
return [a, n, o, s, c, p];
|
781
|
-
},
|
782
|
-
const [n, r, a, o] =
|
781
|
+
}, xo = (e, t, i) => {
|
782
|
+
const [n, r, a, o] = vo(t.composers), s = typeof t.type == "function" || t.type.$$typeof ? ((u) => {
|
783
783
|
function f() {
|
784
|
-
for (let m = 0; m < f[
|
785
|
-
const [v, g] = f[
|
784
|
+
for (let m = 0; m < f[Pt].length; m++) {
|
785
|
+
const [v, g] = f[Pt][m];
|
786
786
|
u.rules[v].apply(g);
|
787
787
|
}
|
788
|
-
return f[
|
788
|
+
return f[Pt] = [], null;
|
789
789
|
}
|
790
|
-
return f[
|
790
|
+
return f[Pt] = [], f.rules = {}, zt.forEach((m) => f.rules[m] = { apply: (v) => f[Pt].push([m, v]) }), 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 || go;
|
793
793
|
const { css: f, ...m } = u, v = {};
|
794
794
|
for (const x in a) if (delete m[x], x in u) {
|
795
795
|
let k = u[x];
|
@@ -797,28 +797,28 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
797
797
|
} else v[x] = a[x];
|
798
798
|
const g = /* @__PURE__ */ new Set([...r]);
|
799
799
|
for (const [x, k, _, T] of t.composers) {
|
800
|
-
i.rules.styled.cache.has(x) || (i.rules.styled.cache.add(x),
|
800
|
+
i.rules.styled.cache.has(x) || (i.rules.styled.cache.add(x), ht(k, [`.${x}`], [], e, (N) => {
|
801
801
|
c.styled.apply(N);
|
802
802
|
}));
|
803
|
-
const b =
|
803
|
+
const b = Fi(_, v, e.media), D = Fi(T, v, e.media, !0);
|
804
804
|
for (const N of b) if (N !== void 0) for (const [j, G, V] of N) {
|
805
|
-
const re = `${x}-${
|
805
|
+
const re = `${x}-${ct(G)}-${j}`;
|
806
806
|
g.add(re);
|
807
807
|
const me = (V ? i.rules.resonevar : i.rules.onevar).cache, te = V ? c.resonevar : c.onevar;
|
808
|
-
me.has(re) || (me.add(re),
|
808
|
+
me.has(re) || (me.add(re), ht(G, [`.${re}`], [], e, (U) => {
|
809
809
|
te.apply(U);
|
810
810
|
}));
|
811
811
|
}
|
812
812
|
for (const N of D) if (N !== void 0) for (const [j, G] of N) {
|
813
|
-
const V = `${x}-${
|
814
|
-
g.add(V), i.rules.allvar.cache.has(V) || (i.rules.allvar.cache.add(V),
|
813
|
+
const V = `${x}-${ct(G)}-${j}`;
|
814
|
+
g.add(V), i.rules.allvar.cache.has(V) || (i.rules.allvar.cache.add(V), ht(G, [`.${V}`], [], e, (re) => {
|
815
815
|
c.allvar.apply(re);
|
816
816
|
}));
|
817
817
|
}
|
818
818
|
}
|
819
819
|
if (typeof f == "object" && f) {
|
820
|
-
const x = `${n}-i${
|
821
|
-
g.add(x), i.rules.inline.cache.has(x) || (i.rules.inline.cache.add(x),
|
820
|
+
const x = `${n}-i${ct(f)}-css`;
|
821
|
+
g.add(x), i.rules.inline.cache.has(x) || (i.rules.inline.cache.add(x), ht(f, [`.${x}`], [], e, (k) => {
|
822
822
|
c.inline.apply(k);
|
823
823
|
}));
|
824
824
|
}
|
@@ -826,8 +826,8 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
826
826
|
const w = m.className = [...g].join(" ");
|
827
827
|
return { type: t.type, className: w, selector: p, props: m, toString: () => w, deferredInjector: s };
|
828
828
|
};
|
829
|
-
return
|
830
|
-
},
|
829
|
+
return si(l, { className: n, selector: p, [st]: t, toString: () => (i.rules.styled.cache.has(n) || l(), n) });
|
830
|
+
}, vo = (e) => {
|
831
831
|
let t = "";
|
832
832
|
const i = [], n = {}, r = [];
|
833
833
|
for (const [a, , , , o, s] of e) {
|
@@ -838,7 +838,7 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
838
838
|
}
|
839
839
|
}
|
840
840
|
return [t, i, n, new Set(r)];
|
841
|
-
},
|
841
|
+
}, Fi = (e, t, i, n) => {
|
842
842
|
const r = [];
|
843
843
|
e: for (let [a, o, s] of e) {
|
844
844
|
if (s) continue;
|
@@ -867,40 +867,40 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
867
867
|
(r[p] = r[p] || []).push([n ? "cv" : `${c}-${a[c]}`, o, l]);
|
868
868
|
}
|
869
869
|
return r;
|
870
|
-
},
|
870
|
+
}, go = {}, ho = wt(), yo = (e, t) => ho(e, () => (...i) => {
|
871
871
|
const n = () => {
|
872
872
|
for (let r of i) {
|
873
873
|
r = typeof r == "object" && r || {};
|
874
|
-
let a =
|
874
|
+
let a = ct(r);
|
875
875
|
if (!t.rules.global.cache.has(a)) {
|
876
876
|
if (t.rules.global.cache.add(a), "@import" in r) {
|
877
877
|
let o = [].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};`, o++);
|
879
879
|
delete r["@import"];
|
880
880
|
}
|
881
|
-
|
881
|
+
ht(r, [], [], e, (o) => {
|
882
882
|
t.rules.global.apply(o);
|
883
883
|
});
|
884
884
|
}
|
885
885
|
}
|
886
886
|
return "";
|
887
887
|
};
|
888
|
-
return
|
889
|
-
}),
|
890
|
-
const n = `${
|
888
|
+
return si(n, { toString: n });
|
889
|
+
}), bo = wt(), wo = (e, t) => bo(e, () => (i) => {
|
890
|
+
const n = `${Xe(e.prefix)}k-${ct(i)}`, r = () => {
|
891
891
|
if (!t.rules.global.cache.has(n)) {
|
892
892
|
t.rules.global.cache.add(n);
|
893
893
|
const a = [];
|
894
|
-
|
894
|
+
ht(i, [], [], e, (s) => a.push(s));
|
895
895
|
const o = `@keyframes ${n}{${a.join("")}}`;
|
896
896
|
t.rules.global.apply(o);
|
897
897
|
}
|
898
898
|
return n;
|
899
899
|
};
|
900
|
-
return
|
900
|
+
return si(r, { get name() {
|
901
901
|
return r();
|
902
902
|
}, toString: r });
|
903
|
-
}),
|
903
|
+
}), Eo = 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 zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
908
908
|
return "var(" + this.variable + ")";
|
909
909
|
}
|
910
910
|
get variable() {
|
911
|
-
return "--" +
|
911
|
+
return "--" + Xe(this.prefix) + Xe(this.scale) + this.token;
|
912
912
|
}
|
913
913
|
toString() {
|
914
914
|
return this.computedValue;
|
915
915
|
}
|
916
|
-
},
|
916
|
+
}, So = wt(), Ro = (e, t) => So(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 : "") || `${Xe(e.prefix)}t-${ct(n)}`}`, a = {}, o = [];
|
919
919
|
for (const c in n) {
|
920
920
|
a[c] = {};
|
921
921
|
for (const p in n[c]) {
|
922
|
-
const l = `--${
|
923
|
-
a[c][p] = new
|
922
|
+
const l = `--${Xe(e.prefix)}${c}-${p}`, u = Ir(String(n[c][p]), e.prefix, c);
|
923
|
+
a[c][p] = new Eo(p, u, c, e.prefix), o.push(`${l}:${u}`);
|
924
924
|
}
|
925
925
|
}
|
926
926
|
const s = () => {
|
@@ -934,30 +934,30 @@ var zt = Ja(), fe = "colors", Pe = "sizes", P = "space", Xa = { gap: P, gridGap:
|
|
934
934
|
return { ...a, get className() {
|
935
935
|
return s();
|
936
936
|
}, selector: r, toString: s };
|
937
|
-
}),
|
937
|
+
}), To = wt(), Pi, ko = wt(), Oo = (e) => {
|
938
938
|
const t = ((i) => {
|
939
939
|
let n = !1;
|
940
|
-
const r =
|
940
|
+
const r = To(i, (a) => {
|
941
941
|
n = !0;
|
942
|
-
const o = "prefix" in (a = typeof a == "object" && a || {}) ? String(a.prefix) : "", s = typeof a.media == "object" && a.media || {}, c = typeof a.root == "object" ? a.root || null : globalThis.document || null, p = typeof a.theme == "object" && a.theme || {}, l = { prefix: o, media: s, theme: p, themeMap: typeof a.themeMap == "object" && a.themeMap || { ...
|
942
|
+
const o = "prefix" in (a = typeof a == "object" && a || {}) ? String(a.prefix) : "", s = typeof a.media == "object" && a.media || {}, c = typeof a.root == "object" ? a.root || null : globalThis.document || null, p = typeof a.theme == "object" && a.theme || {}, l = { prefix: o, media: s, theme: p, themeMap: typeof a.themeMap == "object" && a.themeMap || { ...Qa }, utils: typeof a.utils == "object" && a.utils || {} }, u = po(c), f = { css: ji(l, u), globalCss: yo(l, u), keyframes: wo(l, u), createTheme: Ro(l, u), reset() {
|
943
943
|
u.reset(), f.theme.toString();
|
944
944
|
}, theme: {}, sheet: u, config: l, prefix: o, 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 }) => ko(i, () => {
|
950
|
+
const r = ji(i, n);
|
951
951
|
return (...a) => {
|
952
|
-
const o = r(...a), s = o[
|
952
|
+
const o = r(...a), s = o[st].type, c = ye.forwardRef((p, l) => {
|
953
953
|
const u = p && p.as || s, { props: f, deferredInjector: m } = o(p);
|
954
|
-
return delete f.as, f.ref = l, m ?
|
954
|
+
return delete f.as, f.ref = l, m ? ye.createElement(ye.Fragment, null, ye.createElement(u, f), ye.createElement(m, null)) : ye.createElement(u, f);
|
955
955
|
});
|
956
|
-
return c.className = o.className, c.displayName = `Styled.${s.displayName || s.name || s}`, c.selector = o.selector, c.toString = () => o.selector, c[
|
956
|
+
return c.className = o.className, c.displayName = `Styled.${s.displayName || s.name || s}`, c.selector = o.selector, c.toString = () => o.selector, c[st] = o[st], c;
|
957
957
|
};
|
958
958
|
}))(t), t;
|
959
|
-
},
|
960
|
-
const
|
959
|
+
}, _o = () => Pi || (Pi = Oo()), dt = (...e) => _o().styled(...e);
|
960
|
+
const Et = dt("div", {
|
961
961
|
variants: {
|
962
962
|
width: {
|
963
963
|
full: { width: "100%" },
|
@@ -1299,18 +1299,18 @@ const wt = ut("div", {
|
|
1299
1299
|
}
|
1300
1300
|
}
|
1301
1301
|
});
|
1302
|
-
var
|
1303
|
-
function
|
1304
|
-
if (
|
1305
|
-
|
1302
|
+
var It = {}, Yt = {}, nt = {}, Ii;
|
1303
|
+
function Br() {
|
1304
|
+
if (Ii) return nt;
|
1305
|
+
Ii = 1, Object.defineProperty(nt, "__esModule", { value: !0 }), nt.fromHex = nt.toHex = void 0;
|
1306
1306
|
const e = (n) => new Number(n).toString(16).toLowerCase(), t = (n) => `0x${e(n).length === 1 ? "0" + e(n) : e(n)}`;
|
1307
1307
|
nt.toHex = t;
|
1308
1308
|
const i = (n) => new Number(n);
|
1309
1309
|
return nt.fromHex = i, nt;
|
1310
1310
|
}
|
1311
|
-
var Rn = {},
|
1312
|
-
function
|
1313
|
-
return
|
1311
|
+
var Rn = {}, Bi;
|
1312
|
+
function Ao() {
|
1313
|
+
return Bi || (Bi = 1, function(e) {
|
1314
1314
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.createComplexNode = e.createNode = e.merge = void 0;
|
1315
1315
|
const t = (c) => ({
|
1316
1316
|
typename: c.typename,
|
@@ -1357,11 +1357,11 @@ function Oo() {
|
|
1357
1357
|
e.createComplexNode = s;
|
1358
1358
|
}(Rn)), Rn;
|
1359
1359
|
}
|
1360
|
-
var
|
1361
|
-
function
|
1362
|
-
if (
|
1363
|
-
|
1364
|
-
const e =
|
1360
|
+
var zi;
|
1361
|
+
function Co() {
|
1362
|
+
if (zi) return Yt;
|
1363
|
+
zi = 1, Object.defineProperty(Yt, "__esModule", { value: !0 });
|
1364
|
+
const e = Br(), t = Ao();
|
1365
1365
|
let i = {
|
1366
1366
|
noOffset: null,
|
1367
1367
|
offset: {}
|
@@ -2290,16 +2290,16 @@ function _o() {
|
|
2290
2290
|
}), n("SVG", ["0x3c", "0x73", "0x76", "0x67"], {
|
2291
2291
|
mime: "image/svg+xml",
|
2292
2292
|
extension: "svg"
|
2293
|
-
}),
|
2293
|
+
}), Yt.default = () => i, Yt;
|
2294
2294
|
}
|
2295
|
-
var
|
2296
|
-
function
|
2297
|
-
return
|
2298
|
-
var t =
|
2295
|
+
var Li;
|
2296
|
+
function Do() {
|
2297
|
+
return Li || (Li = 1, function(e) {
|
2298
|
+
var t = It && It.__importDefault || function(l) {
|
2299
2299
|
return l && l.__esModule ? l : { default: l };
|
2300
2300
|
};
|
2301
2301
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.filetypeextension = e.filetypemime = e.filetypename = e.filetypeinfo = void 0;
|
2302
|
-
const i = t(
|
2302
|
+
const i = t(Co()), n = Br(), r = i.default(), a = (l) => {
|
2303
2303
|
let u = r;
|
2304
2304
|
for (const f of Object.keys(u.offset)) {
|
2305
2305
|
const m = n.fromHex(f);
|
@@ -2328,9 +2328,9 @@ function Ao() {
|
|
2328
2328
|
e.filetypemime = c;
|
2329
2329
|
const p = (l) => e.filetypeinfo(l).map((u) => u.extension ? u.extension : null).filter((u) => u !== null);
|
2330
2330
|
e.filetypeextension = p;
|
2331
|
-
}(
|
2331
|
+
}(It)), It;
|
2332
2332
|
}
|
2333
|
-
var
|
2333
|
+
var jo = Do(), Kt = { exports: {} }, Jt = { exports: {} }, se = {};
|
2334
2334
|
/** @license React v16.13.1
|
2335
2335
|
* react-is.production.min.js
|
2336
2336
|
*
|
@@ -2339,10 +2339,10 @@ var Co = Ao(), Yt = { exports: {} }, Kt = { exports: {} }, se = {};
|
|
2339
2339
|
* This source code is licensed under the MIT license found in the
|
2340
2340
|
* LICENSE file in the root directory of this source tree.
|
2341
2341
|
*/
|
2342
|
-
var
|
2343
|
-
function
|
2344
|
-
if (
|
2345
|
-
|
2342
|
+
var Mi;
|
2343
|
+
function Fo() {
|
2344
|
+
if (Mi) return se;
|
2345
|
+
Mi = 1;
|
2346
2346
|
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, a = e ? Symbol.for("react.profiler") : 60114, o = 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, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
2347
2347
|
function _(b) {
|
2348
2348
|
if (typeof b == "object" && b !== null) {
|
@@ -2414,9 +2414,9 @@ var ce = {};
|
|
2414
2414
|
* This source code is licensed under the MIT license found in the
|
2415
2415
|
* LICENSE file in the root directory of this source tree.
|
2416
2416
|
*/
|
2417
|
-
var
|
2418
|
-
function
|
2419
|
-
return
|
2417
|
+
var $i;
|
2418
|
+
function Po() {
|
2419
|
+
return $i || ($i = 1, process.env.NODE_ENV !== "production" && function() {
|
2420
2420
|
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, a = e ? Symbol.for("react.profiler") : 60114, o = 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, v = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
2421
2421
|
function _(y) {
|
2422
2422
|
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
@@ -2455,7 +2455,7 @@ function jo() {
|
|
2455
2455
|
}
|
2456
2456
|
}
|
2457
2457
|
var b = c, D = p, N = s, j = o, G = t, V = l, re = n, me = v, te = m, U = i, le = a, Ee = r, Se = u, pe = !1;
|
2458
|
-
function
|
2458
|
+
function be(y) {
|
2459
2459
|
return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(y) || T(y) === c;
|
2460
2460
|
}
|
2461
2461
|
function S(y) {
|
@@ -2494,22 +2494,22 @@ function jo() {
|
|
2494
2494
|
function xe(y) {
|
2495
2495
|
return T(y) === u;
|
2496
2496
|
}
|
2497
|
-
ce.AsyncMode = b, ce.ConcurrentMode = D, ce.ContextConsumer = N, ce.ContextProvider = j, ce.Element = G, ce.ForwardRef = V, ce.Fragment = re, ce.Lazy = me, ce.Memo = te, ce.Portal = U, ce.Profiler = le, ce.StrictMode = Ee, ce.Suspense = Se, ce.isAsyncMode =
|
2497
|
+
ce.AsyncMode = b, ce.ConcurrentMode = D, ce.ContextConsumer = N, ce.ContextProvider = j, ce.Element = G, ce.ForwardRef = V, ce.Fragment = re, ce.Lazy = me, ce.Memo = te, ce.Portal = U, ce.Profiler = le, ce.StrictMode = Ee, ce.Suspense = Se, ce.isAsyncMode = be, ce.isConcurrentMode = S, ce.isContextConsumer = O, ce.isContextProvider = I, ce.isElement = q, ce.isForwardRef = B, ce.isFragment = H, ce.isLazy = z, ce.isMemo = W, ce.isPortal = K, ce.isProfiler = ee, ce.isStrictMode = L, ce.isSuspense = xe, ce.isValidElementType = _, ce.typeOf = T;
|
2498
2498
|
}()), ce;
|
2499
2499
|
}
|
2500
|
-
var
|
2501
|
-
function
|
2502
|
-
return
|
2500
|
+
var Ni;
|
2501
|
+
function zr() {
|
2502
|
+
return Ni || (Ni = 1, process.env.NODE_ENV === "production" ? Jt.exports = Fo() : Jt.exports = Po()), Jt.exports;
|
2503
2503
|
}
|
2504
2504
|
/*
|
2505
2505
|
object-assign
|
2506
2506
|
(c) Sindre Sorhus
|
2507
2507
|
@license MIT
|
2508
2508
|
*/
|
2509
|
-
var Tn,
|
2510
|
-
function
|
2511
|
-
if (
|
2512
|
-
|
2509
|
+
var Tn, qi;
|
2510
|
+
function Io() {
|
2511
|
+
if (qi) return Tn;
|
2512
|
+
qi = 1;
|
2513
2513
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
2514
2514
|
function n(a) {
|
2515
2515
|
if (a == null)
|
@@ -2552,25 +2552,25 @@ function Fo() {
|
|
2552
2552
|
return c;
|
2553
2553
|
}, Tn;
|
2554
2554
|
}
|
2555
|
-
var kn,
|
2556
|
-
function
|
2557
|
-
if (
|
2558
|
-
|
2555
|
+
var kn, Wi;
|
2556
|
+
function ci() {
|
2557
|
+
if (Wi) return kn;
|
2558
|
+
Wi = 1;
|
2559
2559
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
2560
2560
|
return kn = e, kn;
|
2561
2561
|
}
|
2562
|
-
var On,
|
2563
|
-
function
|
2564
|
-
return
|
2562
|
+
var On, Ui;
|
2563
|
+
function Lr() {
|
2564
|
+
return Ui || (Ui = 1, On = Function.call.bind(Object.prototype.hasOwnProperty)), On;
|
2565
2565
|
}
|
2566
|
-
var _n,
|
2567
|
-
function
|
2568
|
-
if (
|
2569
|
-
|
2566
|
+
var _n, Vi;
|
2567
|
+
function Bo() {
|
2568
|
+
if (Vi) return _n;
|
2569
|
+
Vi = 1;
|
2570
2570
|
var e = function() {
|
2571
2571
|
};
|
2572
2572
|
if (process.env.NODE_ENV !== "production") {
|
2573
|
-
var t = /* @__PURE__ */
|
2573
|
+
var t = /* @__PURE__ */ ci(), i = {}, n = /* @__PURE__ */ Lr();
|
2574
2574
|
e = function(a) {
|
2575
2575
|
var o = "Warning: " + a;
|
2576
2576
|
typeof console < "u" && console.error(o);
|
@@ -2612,11 +2612,11 @@ function Po() {
|
|
2612
2612
|
process.env.NODE_ENV !== "production" && (i = {});
|
2613
2613
|
}, _n = r, _n;
|
2614
2614
|
}
|
2615
|
-
var An,
|
2616
|
-
function
|
2617
|
-
if (
|
2618
|
-
|
2619
|
-
var e =
|
2615
|
+
var An, Hi;
|
2616
|
+
function zo() {
|
2617
|
+
if (Hi) return An;
|
2618
|
+
Hi = 1;
|
2619
|
+
var e = zr(), t = Io(), i = /* @__PURE__ */ ci(), n = /* @__PURE__ */ Lr(), r = /* @__PURE__ */ Bo(), a = function() {
|
2620
2620
|
};
|
2621
2621
|
process.env.NODE_ENV !== "production" && (a = function(s) {
|
2622
2622
|
var c = "Warning: " + s;
|
@@ -2747,7 +2747,7 @@ function Io() {
|
|
2747
2747
|
function D(S) {
|
2748
2748
|
function O(I, q, B, H, z) {
|
2749
2749
|
if (!(I[q] instanceof S)) {
|
2750
|
-
var W = S.name || f, K =
|
2750
|
+
var W = S.name || f, K = be(I[q]);
|
2751
2751
|
return new g("Invalid " + H + " `" + z + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected ") + ("instance of `" + W + "`."));
|
2752
2752
|
}
|
2753
2753
|
return null;
|
@@ -2927,17 +2927,17 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
2927
2927
|
return O;
|
2928
2928
|
}
|
2929
2929
|
}
|
2930
|
-
function
|
2930
|
+
function be(S) {
|
2931
2931
|
return !S.constructor || !S.constructor.name ? f : S.constructor.name;
|
2932
2932
|
}
|
2933
2933
|
return m.checkPropTypes = r, m.resetWarningCache = r.resetWarningCache, m.PropTypes = m, m;
|
2934
2934
|
}, An;
|
2935
2935
|
}
|
2936
|
-
var Cn,
|
2937
|
-
function
|
2938
|
-
if (
|
2939
|
-
|
2940
|
-
var e = /* @__PURE__ */
|
2936
|
+
var Cn, Gi;
|
2937
|
+
function Lo() {
|
2938
|
+
if (Gi) return Cn;
|
2939
|
+
Gi = 1;
|
2940
|
+
var e = /* @__PURE__ */ ci();
|
2941
2941
|
function t() {
|
2942
2942
|
}
|
2943
2943
|
function i() {
|
@@ -2981,19 +2981,19 @@ function Bo() {
|
|
2981
2981
|
return a.PropTypes = a, a;
|
2982
2982
|
}, Cn;
|
2983
2983
|
}
|
2984
|
-
var
|
2985
|
-
function
|
2986
|
-
if (
|
2987
|
-
if (
|
2988
|
-
var e =
|
2989
|
-
|
2984
|
+
var Yi;
|
2985
|
+
function Mo() {
|
2986
|
+
if (Yi) return Kt.exports;
|
2987
|
+
if (Yi = 1, process.env.NODE_ENV !== "production") {
|
2988
|
+
var e = zr(), t = !0;
|
2989
|
+
Kt.exports = /* @__PURE__ */ zo()(e.isElement, t);
|
2990
2990
|
} else
|
2991
|
-
|
2992
|
-
return
|
2991
|
+
Kt.exports = /* @__PURE__ */ Lo()();
|
2992
|
+
return Kt.exports;
|
2993
2993
|
}
|
2994
|
-
var
|
2995
|
-
const ge = /* @__PURE__ */
|
2996
|
-
function
|
2994
|
+
var $o = /* @__PURE__ */ Mo();
|
2995
|
+
const ge = /* @__PURE__ */ Pr($o);
|
2996
|
+
function ft(e, t, i, n) {
|
2997
2997
|
function r(a) {
|
2998
2998
|
return a instanceof i ? a : new i(function(o) {
|
2999
2999
|
o(a);
|
@@ -3020,7 +3020,7 @@ function dt(e, t, i, n) {
|
|
3020
3020
|
p((n = n.apply(e, t || [])).next());
|
3021
3021
|
});
|
3022
3022
|
}
|
3023
|
-
const
|
3023
|
+
const No = /* @__PURE__ */ new Map([
|
3024
3024
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
3025
3025
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
3026
3026
|
["3dml", "text/vnd.in3d.3dml"],
|
@@ -4223,14 +4223,14 @@ const Mo = /* @__PURE__ */ new Map([
|
|
4223
4223
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
4224
4224
|
["zsh", "text/x-scriptzsh"]
|
4225
4225
|
]);
|
4226
|
-
function
|
4227
|
-
const n =
|
4228
|
-
return typeof n.path != "string" &&
|
4226
|
+
function yt(e, t, i) {
|
4227
|
+
const n = qo(e), { webkitRelativePath: r } = e, a = typeof t == "string" ? t : typeof r == "string" && r.length > 0 ? r : `./${e.name}`;
|
4228
|
+
return typeof n.path != "string" && Ki(n, "path", a), Ki(n, "relativePath", a), n;
|
4229
4229
|
}
|
4230
|
-
function
|
4230
|
+
function qo(e) {
|
4231
4231
|
const { name: t } = e;
|
4232
4232
|
if (t && t.lastIndexOf(".") !== -1 && !e.type) {
|
4233
|
-
const n = t.split(".").pop().toLowerCase(), r =
|
4233
|
+
const n = t.split(".").pop().toLowerCase(), r = No.get(n);
|
4234
4234
|
r && Object.defineProperty(e, "type", {
|
4235
4235
|
value: r,
|
4236
4236
|
writable: !1,
|
@@ -4240,7 +4240,7 @@ function $o(e) {
|
|
4240
4240
|
}
|
4241
4241
|
return e;
|
4242
4242
|
}
|
4243
|
-
function
|
4243
|
+
function Ki(e, t, i) {
|
4244
4244
|
Object.defineProperty(e, t, {
|
4245
4245
|
value: i,
|
4246
4246
|
writable: !1,
|
@@ -4248,49 +4248,49 @@ function Gi(e, t, i) {
|
|
4248
4248
|
enumerable: !0
|
4249
4249
|
});
|
4250
4250
|
}
|
4251
|
-
const
|
4251
|
+
const Wo = [
|
4252
4252
|
// Thumbnail cache files for macOS and Windows
|
4253
4253
|
".DS_Store",
|
4254
4254
|
// macOs
|
4255
4255
|
"Thumbs.db"
|
4256
4256
|
// Windows
|
4257
4257
|
];
|
4258
|
-
function
|
4259
|
-
return
|
4260
|
-
return ln(e) &&
|
4258
|
+
function Uo(e) {
|
4259
|
+
return ft(this, void 0, void 0, function* () {
|
4260
|
+
return ln(e) && Vo(e.dataTransfer) ? Ko(e.dataTransfer, e.type) : Ho(e) ? Go(e) : Array.isArray(e) && e.every((t) => "getFile" in t && typeof t.getFile == "function") ? Yo(e) : [];
|
4261
4261
|
});
|
4262
4262
|
}
|
4263
|
-
function
|
4263
|
+
function Vo(e) {
|
4264
4264
|
return ln(e);
|
4265
4265
|
}
|
4266
|
-
function
|
4266
|
+
function Ho(e) {
|
4267
4267
|
return ln(e) && ln(e.target);
|
4268
4268
|
}
|
4269
4269
|
function ln(e) {
|
4270
4270
|
return typeof e == "object" && e !== null;
|
4271
4271
|
}
|
4272
|
-
function
|
4273
|
-
return Vn(e.target.files).map((t) =>
|
4272
|
+
function Go(e) {
|
4273
|
+
return Vn(e.target.files).map((t) => yt(t));
|
4274
4274
|
}
|
4275
|
-
function
|
4276
|
-
return
|
4277
|
-
return (yield Promise.all(e.map((i) => i.getFile()))).map((i) =>
|
4275
|
+
function Yo(e) {
|
4276
|
+
return ft(this, void 0, void 0, function* () {
|
4277
|
+
return (yield Promise.all(e.map((i) => i.getFile()))).map((i) => yt(i));
|
4278
4278
|
});
|
4279
4279
|
}
|
4280
|
-
function
|
4281
|
-
return
|
4280
|
+
function Ko(e, t) {
|
4281
|
+
return ft(this, void 0, void 0, function* () {
|
4282
4282
|
if (e.items) {
|
4283
4283
|
const i = Vn(e.items).filter((r) => r.kind === "file");
|
4284
4284
|
if (t !== "drop")
|
4285
4285
|
return i;
|
4286
|
-
const n = yield Promise.all(i.map(
|
4287
|
-
return
|
4286
|
+
const n = yield Promise.all(i.map(Jo));
|
4287
|
+
return Ji(Mr(n));
|
4288
4288
|
}
|
4289
|
-
return
|
4289
|
+
return Ji(Vn(e.files).map((i) => yt(i)));
|
4290
4290
|
});
|
4291
4291
|
}
|
4292
|
-
function
|
4293
|
-
return e.filter((t) =>
|
4292
|
+
function Ji(e) {
|
4293
|
+
return e.filter((t) => Wo.indexOf(t.name) === -1);
|
4294
4294
|
}
|
4295
4295
|
function Vn(e) {
|
4296
4296
|
if (e === null)
|
@@ -4302,20 +4302,20 @@ function Vn(e) {
|
|
4302
4302
|
}
|
4303
4303
|
return t;
|
4304
4304
|
}
|
4305
|
-
function
|
4305
|
+
function Jo(e) {
|
4306
4306
|
if (typeof e.webkitGetAsEntry != "function")
|
4307
|
-
return
|
4307
|
+
return Xi(e);
|
4308
4308
|
const t = e.webkitGetAsEntry();
|
4309
|
-
return t && t.isDirectory ?
|
4309
|
+
return t && t.isDirectory ? $r(t) : Xi(e, t);
|
4310
4310
|
}
|
4311
|
-
function
|
4311
|
+
function Mr(e) {
|
4312
4312
|
return e.reduce((t, i) => [
|
4313
4313
|
...t,
|
4314
|
-
...Array.isArray(i) ?
|
4314
|
+
...Array.isArray(i) ? Mr(i) : [i]
|
4315
4315
|
], []);
|
4316
4316
|
}
|
4317
|
-
function
|
4318
|
-
return
|
4317
|
+
function Xi(e, t) {
|
4318
|
+
return ft(this, void 0, void 0, function* () {
|
4319
4319
|
var i;
|
4320
4320
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
4321
4321
|
const a = yield e.getAsFileSystemHandle();
|
@@ -4323,28 +4323,28 @@ function Ki(e, t) {
|
|
4323
4323
|
throw new Error(`${e} is not a File`);
|
4324
4324
|
if (a !== void 0) {
|
4325
4325
|
const o = yield a.getFile();
|
4326
|
-
return o.handle = a,
|
4326
|
+
return o.handle = a, yt(o);
|
4327
4327
|
}
|
4328
4328
|
}
|
4329
4329
|
const n = e.getAsFile();
|
4330
4330
|
if (!n)
|
4331
4331
|
throw new Error(`${e} is not a File`);
|
4332
|
-
return
|
4332
|
+
return yt(n, (i = t == null ? void 0 : t.fullPath) !== null && i !== void 0 ? i : void 0);
|
4333
4333
|
});
|
4334
4334
|
}
|
4335
|
-
function
|
4336
|
-
return
|
4337
|
-
return e.isDirectory ?
|
4335
|
+
function Xo(e) {
|
4336
|
+
return ft(this, void 0, void 0, function* () {
|
4337
|
+
return e.isDirectory ? $r(e) : Zo(e);
|
4338
4338
|
});
|
4339
4339
|
}
|
4340
|
-
function
|
4340
|
+
function $r(e) {
|
4341
4341
|
const t = e.createReader();
|
4342
4342
|
return new Promise((i, n) => {
|
4343
4343
|
const r = [];
|
4344
4344
|
function a() {
|
4345
|
-
t.readEntries((o) =>
|
4345
|
+
t.readEntries((o) => ft(this, void 0, void 0, function* () {
|
4346
4346
|
if (o.length) {
|
4347
|
-
const s = Promise.all(o.map(
|
4347
|
+
const s = Promise.all(o.map(Xo));
|
4348
4348
|
r.push(s), a();
|
4349
4349
|
} else
|
4350
4350
|
try {
|
@@ -4360,11 +4360,11 @@ function Ir(e) {
|
|
4360
4360
|
a();
|
4361
4361
|
});
|
4362
4362
|
}
|
4363
|
-
function
|
4364
|
-
return
|
4363
|
+
function Zo(e) {
|
4364
|
+
return ft(this, void 0, void 0, function* () {
|
4365
4365
|
return new Promise((t, i) => {
|
4366
4366
|
e.file((n) => {
|
4367
|
-
const r =
|
4367
|
+
const r = yt(n, e.fullPath);
|
4368
4368
|
t(r);
|
4369
4369
|
}, (n) => {
|
4370
4370
|
i(n);
|
@@ -4372,9 +4372,9 @@ function Jo(e) {
|
|
4372
4372
|
});
|
4373
4373
|
});
|
4374
4374
|
}
|
4375
|
-
var
|
4376
|
-
function
|
4377
|
-
return
|
4375
|
+
var Xt = {}, Zi;
|
4376
|
+
function Qo() {
|
4377
|
+
return Zi || (Zi = 1, Xt.__esModule = !0, Xt.default = function(e, t) {
|
4378
4378
|
if (e && t) {
|
4379
4379
|
var i = Array.isArray(t) ? t : t.split(",");
|
4380
4380
|
if (i.length === 0)
|
@@ -4386,24 +4386,24 @@ function Xo() {
|
|
4386
4386
|
});
|
4387
4387
|
}
|
4388
4388
|
return !0;
|
4389
|
-
}),
|
4389
|
+
}), Xt;
|
4390
4390
|
}
|
4391
|
-
var
|
4392
|
-
const Dn = /* @__PURE__ */
|
4393
|
-
function
|
4394
|
-
return
|
4391
|
+
var es = Qo();
|
4392
|
+
const Dn = /* @__PURE__ */ Pr(es);
|
4393
|
+
function Qi(e) {
|
4394
|
+
return is(e) || ns(e) || qr(e) || ts();
|
4395
4395
|
}
|
4396
|
-
function
|
4396
|
+
function ts() {
|
4397
4397
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
4398
4398
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4399
4399
|
}
|
4400
|
-
function
|
4400
|
+
function ns(e) {
|
4401
4401
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
4402
4402
|
}
|
4403
|
-
function
|
4403
|
+
function is(e) {
|
4404
4404
|
if (Array.isArray(e)) return Hn(e);
|
4405
4405
|
}
|
4406
|
-
function
|
4406
|
+
function er(e, t) {
|
4407
4407
|
var i = Object.keys(e);
|
4408
4408
|
if (Object.getOwnPropertySymbols) {
|
4409
4409
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -4413,28 +4413,28 @@ function Zi(e, t) {
|
|
4413
4413
|
}
|
4414
4414
|
return i;
|
4415
4415
|
}
|
4416
|
-
function
|
4416
|
+
function tr(e) {
|
4417
4417
|
for (var t = 1; t < arguments.length; t++) {
|
4418
4418
|
var i = arguments[t] != null ? arguments[t] : {};
|
4419
|
-
t % 2 ?
|
4420
|
-
|
4421
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4419
|
+
t % 2 ? er(Object(i), !0).forEach(function(n) {
|
4420
|
+
Nr(e, n, i[n]);
|
4421
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : er(Object(i)).forEach(function(n) {
|
4422
4422
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
4423
4423
|
});
|
4424
4424
|
}
|
4425
4425
|
return e;
|
4426
4426
|
}
|
4427
|
-
function
|
4427
|
+
function Nr(e, t, i) {
|
4428
4428
|
return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
4429
4429
|
}
|
4430
|
-
function
|
4431
|
-
return
|
4430
|
+
function Mt(e, t) {
|
4431
|
+
return os(e) || as(e, t) || qr(e, t) || rs();
|
4432
4432
|
}
|
4433
|
-
function
|
4433
|
+
function rs() {
|
4434
4434
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4435
4435
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4436
4436
|
}
|
4437
|
-
function
|
4437
|
+
function qr(e, t) {
|
4438
4438
|
if (e) {
|
4439
4439
|
if (typeof e == "string") return Hn(e, t);
|
4440
4440
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
@@ -4448,7 +4448,7 @@ function Hn(e, t) {
|
|
4448
4448
|
n[i] = e[i];
|
4449
4449
|
return n;
|
4450
4450
|
}
|
4451
|
-
function
|
4451
|
+
function as(e, t) {
|
4452
4452
|
var i = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
4453
4453
|
if (i != null) {
|
4454
4454
|
var n = [], r = !0, a = !1, o, s;
|
@@ -4467,74 +4467,74 @@ function is(e, t) {
|
|
4467
4467
|
return n;
|
4468
4468
|
}
|
4469
4469
|
}
|
4470
|
-
function
|
4470
|
+
function os(e) {
|
4471
4471
|
if (Array.isArray(e)) return e;
|
4472
4472
|
}
|
4473
|
-
var
|
4473
|
+
var ss = typeof Dn == "function" ? Dn : Dn.default, cs = "file-invalid-type", ls = "file-too-large", ps = "file-too-small", us = "too-many-files", ds = function() {
|
4474
4474
|
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];
|
4475
4475
|
return {
|
4476
|
-
code:
|
4476
|
+
code: cs,
|
4477
4477
|
message: "File type must be ".concat(n)
|
4478
4478
|
};
|
4479
|
-
},
|
4479
|
+
}, nr = function(t) {
|
4480
4480
|
return {
|
4481
|
-
code:
|
4481
|
+
code: ls,
|
4482
4482
|
message: "File is larger than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
4483
4483
|
};
|
4484
|
-
},
|
4484
|
+
}, ir = function(t) {
|
4485
4485
|
return {
|
4486
|
-
code:
|
4486
|
+
code: ps,
|
4487
4487
|
message: "File is smaller than ".concat(t, " ").concat(t === 1 ? "byte" : "bytes")
|
4488
4488
|
};
|
4489
|
-
},
|
4490
|
-
code:
|
4489
|
+
}, fs = {
|
4490
|
+
code: us,
|
4491
4491
|
message: "Too many files"
|
4492
4492
|
};
|
4493
|
-
function
|
4494
|
-
var i = e.type === "application/x-moz-file" ||
|
4495
|
-
return [i, i ? null :
|
4493
|
+
function Wr(e, t) {
|
4494
|
+
var i = e.type === "application/x-moz-file" || ss(e, t);
|
4495
|
+
return [i, i ? null : ds(t)];
|
4496
4496
|
}
|
4497
|
-
function
|
4497
|
+
function Ur(e, t, i) {
|
4498
4498
|
if (rt(e.size))
|
4499
4499
|
if (rt(t) && rt(i)) {
|
4500
|
-
if (e.size > i) return [!1,
|
4501
|
-
if (e.size < t) return [!1,
|
4500
|
+
if (e.size > i) return [!1, nr(i)];
|
4501
|
+
if (e.size < t) return [!1, ir(t)];
|
4502
4502
|
} else {
|
4503
|
-
if (rt(t) && e.size < t) return [!1,
|
4504
|
-
if (rt(i) && e.size > i) return [!1,
|
4503
|
+
if (rt(t) && e.size < t) return [!1, ir(t)];
|
4504
|
+
if (rt(i) && e.size > i) return [!1, nr(i)];
|
4505
4505
|
}
|
4506
4506
|
return [!0, null];
|
4507
4507
|
}
|
4508
4508
|
function rt(e) {
|
4509
4509
|
return e != null;
|
4510
4510
|
}
|
4511
|
-
function
|
4511
|
+
function ms(e) {
|
4512
4512
|
var t = e.files, i = e.accept, n = e.minSize, r = e.maxSize, a = e.multiple, o = e.maxFiles, s = e.validator;
|
4513
4513
|
return !a && t.length > 1 || a && o >= 1 && t.length > o ? !1 : t.every(function(c) {
|
4514
|
-
var p =
|
4514
|
+
var p = Wr(c, i), l = Mt(p, 1), u = l[0], f = Ur(c, n, r), m = Mt(f, 1), v = m[0], g = s ? s(c) : null;
|
4515
4515
|
return u && v && !g;
|
4516
4516
|
});
|
4517
4517
|
}
|
4518
4518
|
function pn(e) {
|
4519
4519
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
4520
4520
|
}
|
4521
|
-
function
|
4521
|
+
function Zt(e) {
|
4522
4522
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(t) {
|
4523
4523
|
return t === "Files" || t === "application/x-moz-file";
|
4524
4524
|
}) : !!e.target && !!e.target.files;
|
4525
4525
|
}
|
4526
|
-
function
|
4526
|
+
function rr(e) {
|
4527
4527
|
e.preventDefault();
|
4528
4528
|
}
|
4529
|
-
function
|
4529
|
+
function xs(e) {
|
4530
4530
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
4531
4531
|
}
|
4532
|
-
function
|
4532
|
+
function vs(e) {
|
4533
4533
|
return e.indexOf("Edge/") !== -1;
|
4534
4534
|
}
|
4535
|
-
function
|
4535
|
+
function gs() {
|
4536
4536
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
4537
|
-
return
|
4537
|
+
return xs(e) || vs(e);
|
4538
4538
|
}
|
4539
4539
|
function qe() {
|
4540
4540
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
@@ -4547,17 +4547,17 @@ function qe() {
|
|
4547
4547
|
});
|
4548
4548
|
};
|
4549
4549
|
}
|
4550
|
-
function
|
4550
|
+
function hs() {
|
4551
4551
|
return "showOpenFilePicker" in window;
|
4552
4552
|
}
|
4553
|
-
function
|
4553
|
+
function ys(e) {
|
4554
4554
|
if (rt(e)) {
|
4555
4555
|
var t = Object.entries(e).filter(function(i) {
|
4556
|
-
var n =
|
4557
|
-
return
|
4556
|
+
var n = Mt(i, 2), r = n[0], a = n[1], o = !0;
|
4557
|
+
return Vr(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.')), o = !1), (!Array.isArray(a) || !a.every(Hr)) && (console.warn('Skipped "'.concat(r, '" because an invalid file extension was provided.')), o = !1), o;
|
4558
4558
|
}).reduce(function(i, n) {
|
4559
|
-
var r =
|
4560
|
-
return
|
4559
|
+
var r = Mt(n, 2), a = r[0], o = r[1];
|
4560
|
+
return tr(tr({}, i), {}, Nr({}, a, o));
|
4561
4561
|
}, {});
|
4562
4562
|
return [{
|
4563
4563
|
// description is required due to https://crbug.com/1264708
|
@@ -4567,49 +4567,49 @@ function gs(e) {
|
|
4567
4567
|
}
|
4568
4568
|
return e;
|
4569
4569
|
}
|
4570
|
-
function
|
4570
|
+
function bs(e) {
|
4571
4571
|
if (rt(e))
|
4572
4572
|
return Object.entries(e).reduce(function(t, i) {
|
4573
|
-
var n =
|
4574
|
-
return [].concat(
|
4573
|
+
var n = Mt(i, 2), r = n[0], a = n[1];
|
4574
|
+
return [].concat(Qi(t), [r], Qi(a));
|
4575
4575
|
}, []).filter(function(t) {
|
4576
|
-
return
|
4576
|
+
return Vr(t) || Hr(t);
|
4577
4577
|
}).join(",");
|
4578
4578
|
}
|
4579
|
-
function
|
4579
|
+
function ws(e) {
|
4580
4580
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
4581
4581
|
}
|
4582
|
-
function
|
4582
|
+
function Es(e) {
|
4583
4583
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
4584
4584
|
}
|
4585
|
-
function
|
4585
|
+
function Vr(e) {
|
4586
4586
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
4587
4587
|
}
|
4588
|
-
function
|
4588
|
+
function Hr(e) {
|
4589
4589
|
return /^.*\.[\w]+$/.test(e);
|
4590
4590
|
}
|
4591
|
-
var
|
4592
|
-
function
|
4593
|
-
return
|
4591
|
+
var Ss = ["children"], Rs = ["open"], Ts = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ks = ["refKey", "onChange", "onClick"];
|
4592
|
+
function Os(e) {
|
4593
|
+
return Cs(e) || As(e) || Gr(e) || _s();
|
4594
4594
|
}
|
4595
|
-
function
|
4595
|
+
function _s() {
|
4596
4596
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
4597
4597
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4598
4598
|
}
|
4599
|
-
function
|
4599
|
+
function As(e) {
|
4600
4600
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
4601
4601
|
}
|
4602
|
-
function
|
4602
|
+
function Cs(e) {
|
4603
4603
|
if (Array.isArray(e)) return Gn(e);
|
4604
4604
|
}
|
4605
4605
|
function jn(e, t) {
|
4606
|
-
return
|
4606
|
+
return Fs(e) || js(e, t) || Gr(e, t) || Ds();
|
4607
4607
|
}
|
4608
|
-
function
|
4608
|
+
function Ds() {
|
4609
4609
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
4610
4610
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
4611
4611
|
}
|
4612
|
-
function
|
4612
|
+
function Gr(e, t) {
|
4613
4613
|
if (e) {
|
4614
4614
|
if (typeof e == "string") return Gn(e, t);
|
4615
4615
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
@@ -4623,7 +4623,7 @@ function Gn(e, t) {
|
|
4623
4623
|
n[i] = e[i];
|
4624
4624
|
return n;
|
4625
4625
|
}
|
4626
|
-
function
|
4626
|
+
function js(e, t) {
|
4627
4627
|
var i = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
4628
4628
|
if (i != null) {
|
4629
4629
|
var n = [], r = !0, a = !1, o, s;
|
@@ -4642,10 +4642,10 @@ function Cs(e, t) {
|
|
4642
4642
|
return n;
|
4643
4643
|
}
|
4644
4644
|
}
|
4645
|
-
function
|
4645
|
+
function Fs(e) {
|
4646
4646
|
if (Array.isArray(e)) return e;
|
4647
4647
|
}
|
4648
|
-
function
|
4648
|
+
function ar(e, t) {
|
4649
4649
|
var i = Object.keys(e);
|
4650
4650
|
if (Object.getOwnPropertySymbols) {
|
4651
4651
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -4658,9 +4658,9 @@ function ir(e, t) {
|
|
4658
4658
|
function ke(e) {
|
4659
4659
|
for (var t = 1; t < arguments.length; t++) {
|
4660
4660
|
var i = arguments[t] != null ? arguments[t] : {};
|
4661
|
-
t % 2 ?
|
4661
|
+
t % 2 ? ar(Object(i), !0).forEach(function(n) {
|
4662
4662
|
Yn(e, n, i[n]);
|
4663
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4663
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ar(Object(i)).forEach(function(n) {
|
4664
4664
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
|
4665
4665
|
});
|
4666
4666
|
}
|
@@ -4671,7 +4671,7 @@ function Yn(e, t, i) {
|
|
4671
4671
|
}
|
4672
4672
|
function un(e, t) {
|
4673
4673
|
if (e == null) return {};
|
4674
|
-
var i =
|
4674
|
+
var i = Ps(e, t), n, r;
|
4675
4675
|
if (Object.getOwnPropertySymbols) {
|
4676
4676
|
var a = Object.getOwnPropertySymbols(e);
|
4677
4677
|
for (r = 0; r < a.length; r++)
|
@@ -4679,27 +4679,27 @@ function un(e, t) {
|
|
4679
4679
|
}
|
4680
4680
|
return i;
|
4681
4681
|
}
|
4682
|
-
function
|
4682
|
+
function Ps(e, t) {
|
4683
4683
|
if (e == null) return {};
|
4684
4684
|
var i = {}, n = Object.keys(e), r, a;
|
4685
4685
|
for (a = 0; a < n.length; a++)
|
4686
4686
|
r = n[a], !(t.indexOf(r) >= 0) && (i[r] = e[r]);
|
4687
4687
|
return i;
|
4688
4688
|
}
|
4689
|
-
var
|
4690
|
-
var i = e.children, n = un(e,
|
4691
|
-
return
|
4689
|
+
var li = /* @__PURE__ */ Ha(function(e, t) {
|
4690
|
+
var i = e.children, n = un(e, Ss), r = Kr(n), a = r.open, o = un(r, Rs);
|
4691
|
+
return Ga(t, function() {
|
4692
4692
|
return {
|
4693
4693
|
open: a
|
4694
4694
|
};
|
4695
|
-
}, [a]), /* @__PURE__ */
|
4695
|
+
}, [a]), /* @__PURE__ */ ye.createElement(Ya, null, i(ke(ke({}, o), {}, {
|
4696
4696
|
open: a
|
4697
4697
|
})));
|
4698
4698
|
});
|
4699
|
-
|
4700
|
-
var
|
4699
|
+
li.displayName = "Dropzone";
|
4700
|
+
var Yr = {
|
4701
4701
|
disabled: !1,
|
4702
|
-
getFilesFromEvent:
|
4702
|
+
getFilesFromEvent: Uo,
|
4703
4703
|
maxSize: 1 / 0,
|
4704
4704
|
minSize: 0,
|
4705
4705
|
multiple: !0,
|
@@ -4713,8 +4713,8 @@ var Wr = {
|
|
4713
4713
|
useFsAccessApi: !1,
|
4714
4714
|
autoFocus: !1
|
4715
4715
|
};
|
4716
|
-
|
4717
|
-
|
4716
|
+
li.defaultProps = Yr;
|
4717
|
+
li.propTypes = {
|
4718
4718
|
/**
|
4719
4719
|
* Render function that exposes the dropzone state and prop getter fns
|
4720
4720
|
*
|
@@ -4891,47 +4891,47 @@ var Kn = {
|
|
4891
4891
|
acceptedFiles: [],
|
4892
4892
|
fileRejections: []
|
4893
4893
|
};
|
4894
|
-
function
|
4895
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ke(ke({},
|
4896
|
-
return
|
4897
|
-
}, [i]), re =
|
4898
|
-
return
|
4899
|
-
}, [i]), me =
|
4900
|
-
return typeof w == "function" ? w :
|
4901
|
-
}, [w]), te =
|
4902
|
-
return typeof g == "function" ? g :
|
4903
|
-
}, [g]), U =
|
4894
|
+
function Kr() {
|
4895
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ke(ke({}, Yr), e), i = t.accept, n = t.disabled, r = t.getFilesFromEvent, a = t.maxSize, o = t.minSize, s = t.multiple, c = t.maxFiles, p = t.onDragEnter, l = t.onDragLeave, u = t.onDragOver, f = t.onDrop, m = t.onDropAccepted, v = t.onDropRejected, g = t.onFileDialogCancel, w = t.onFileDialogOpen, x = t.useFsAccessApi, k = t.autoFocus, _ = t.preventDropOnDocument, T = t.noClick, b = t.noKeyboard, D = t.noDrag, N = t.noDragEventsBubbling, j = t.onError, G = t.validator, V = Je(function() {
|
4896
|
+
return bs(i);
|
4897
|
+
}, [i]), re = Je(function() {
|
4898
|
+
return ys(i);
|
4899
|
+
}, [i]), me = Je(function() {
|
4900
|
+
return typeof w == "function" ? w : or;
|
4901
|
+
}, [w]), te = Je(function() {
|
4902
|
+
return typeof g == "function" ? g : or;
|
4903
|
+
}, [g]), U = he(null), le = he(null), Ee = Va(Is, Kn), Se = jn(Ee, 2), pe = Se[0], be = Se[1], S = pe.isFocused, O = pe.isFileDialogActive, I = he(typeof window < "u" && window.isSecureContext && x && hs()), q = function() {
|
4904
4904
|
!I.current && O && setTimeout(function() {
|
4905
4905
|
if (le.current) {
|
4906
4906
|
var A = le.current.files;
|
4907
|
-
A.length || (
|
4907
|
+
A.length || (be({
|
4908
4908
|
type: "closeDialog"
|
4909
4909
|
}), te());
|
4910
4910
|
}
|
4911
4911
|
}, 300);
|
4912
4912
|
};
|
4913
|
-
|
4913
|
+
Lt(function() {
|
4914
4914
|
return window.addEventListener("focus", q, !1), function() {
|
4915
4915
|
window.removeEventListener("focus", q, !1);
|
4916
4916
|
};
|
4917
4917
|
}, [le, O, te, I]);
|
4918
|
-
var B =
|
4918
|
+
var B = he([]), H = function(A) {
|
4919
4919
|
U.current && U.current.contains(A.target) || (A.preventDefault(), B.current = []);
|
4920
4920
|
};
|
4921
|
-
|
4922
|
-
return _ && (document.addEventListener("dragover",
|
4923
|
-
_ && (document.removeEventListener("dragover",
|
4921
|
+
Lt(function() {
|
4922
|
+
return _ && (document.addEventListener("dragover", rr, !1), document.addEventListener("drop", H, !1)), function() {
|
4923
|
+
_ && (document.removeEventListener("dragover", rr), document.removeEventListener("drop", H));
|
4924
4924
|
};
|
4925
|
-
}, [U, _]),
|
4925
|
+
}, [U, _]), Lt(function() {
|
4926
4926
|
return !n && k && U.current && U.current.focus(), function() {
|
4927
4927
|
};
|
4928
4928
|
}, [U, k, n]);
|
4929
4929
|
var z = _e(function(E) {
|
4930
4930
|
j ? j(E) : console.error(E);
|
4931
4931
|
}, [j]), W = _e(function(E) {
|
4932
|
-
E.preventDefault(), E.persist(),
|
4932
|
+
E.preventDefault(), E.persist(), we(E), B.current = [].concat(Os(B.current), [E.target]), Zt(E) && Promise.resolve(r(E)).then(function(A) {
|
4933
4933
|
if (!(pn(E) && !N)) {
|
4934
|
-
var ae = A.length, de = ae > 0 &&
|
4934
|
+
var ae = A.length, de = ae > 0 && ms({
|
4935
4935
|
files: A,
|
4936
4936
|
accept: V,
|
4937
4937
|
minSize: o,
|
@@ -4940,7 +4940,7 @@ function Ur() {
|
|
4940
4940
|
maxFiles: c,
|
4941
4941
|
validator: G
|
4942
4942
|
}), Te = ae > 0 && !de;
|
4943
|
-
|
4943
|
+
be({
|
4944
4944
|
isDragAccept: de,
|
4945
4945
|
isDragReject: Te,
|
4946
4946
|
isDragActive: !0,
|
@@ -4951,8 +4951,8 @@ function Ur() {
|
|
4951
4951
|
return z(A);
|
4952
4952
|
});
|
4953
4953
|
}, [r, p, z, N, V, o, a, s, c, G]), K = _e(function(E) {
|
4954
|
-
E.preventDefault(), E.persist(),
|
4955
|
-
var A =
|
4954
|
+
E.preventDefault(), E.persist(), we(E);
|
4955
|
+
var A = Zt(E);
|
4956
4956
|
if (A && E.dataTransfer)
|
4957
4957
|
try {
|
4958
4958
|
E.dataTransfer.dropEffect = "copy";
|
@@ -4960,53 +4960,53 @@ function Ur() {
|
|
4960
4960
|
}
|
4961
4961
|
return A && u && u(E), !1;
|
4962
4962
|
}, [u, N]), ee = _e(function(E) {
|
4963
|
-
E.preventDefault(), E.persist(),
|
4963
|
+
E.preventDefault(), E.persist(), we(E);
|
4964
4964
|
var A = B.current.filter(function(de) {
|
4965
4965
|
return U.current && U.current.contains(de);
|
4966
4966
|
}), ae = A.indexOf(E.target);
|
4967
|
-
ae !== -1 && A.splice(ae, 1), B.current = A, !(A.length > 0) && (
|
4967
|
+
ae !== -1 && A.splice(ae, 1), B.current = A, !(A.length > 0) && (be({
|
4968
4968
|
type: "setDraggedFiles",
|
4969
4969
|
isDragActive: !1,
|
4970
4970
|
isDragAccept: !1,
|
4971
4971
|
isDragReject: !1
|
4972
|
-
}),
|
4972
|
+
}), Zt(E) && l && l(E));
|
4973
4973
|
}, [U, l, N]), L = _e(function(E, A) {
|
4974
4974
|
var ae = [], de = [];
|
4975
4975
|
E.forEach(function(Te) {
|
4976
|
-
var
|
4977
|
-
if (tt &&
|
4976
|
+
var Ze = Wr(Te, V), Ye = jn(Ze, 2), tt = Ye[0], Tt = Ye[1], kt = Ur(Te, o, a), mt = jn(kt, 2), Ot = mt[0], _t = mt[1], At = G ? G(Te) : null;
|
4977
|
+
if (tt && Ot && !At)
|
4978
4978
|
ae.push(Te);
|
4979
4979
|
else {
|
4980
|
-
var
|
4981
|
-
|
4980
|
+
var Ct = [Tt, _t];
|
4981
|
+
At && (Ct = Ct.concat(At)), de.push({
|
4982
4982
|
file: Te,
|
4983
|
-
errors:
|
4984
|
-
return
|
4983
|
+
errors: Ct.filter(function(Dt) {
|
4984
|
+
return Dt;
|
4985
4985
|
})
|
4986
4986
|
});
|
4987
4987
|
}
|
4988
4988
|
}), (!s && ae.length > 1 || s && c >= 1 && ae.length > c) && (ae.forEach(function(Te) {
|
4989
4989
|
de.push({
|
4990
4990
|
file: Te,
|
4991
|
-
errors: [
|
4991
|
+
errors: [fs]
|
4992
4992
|
});
|
4993
|
-
}), ae.splice(0)),
|
4993
|
+
}), ae.splice(0)), be({
|
4994
4994
|
acceptedFiles: ae,
|
4995
4995
|
fileRejections: de,
|
4996
4996
|
isDragReject: de.length > 0,
|
4997
4997
|
type: "setFiles"
|
4998
4998
|
}), f && f(ae, de, A), de.length > 0 && v && v(de, A), ae.length > 0 && m && m(ae, A);
|
4999
|
-
}, [
|
5000
|
-
E.preventDefault(), E.persist(),
|
4999
|
+
}, [be, s, V, o, a, c, f, m, v, G]), xe = _e(function(E) {
|
5000
|
+
E.preventDefault(), E.persist(), we(E), B.current = [], Zt(E) && Promise.resolve(r(E)).then(function(A) {
|
5001
5001
|
pn(E) && !N || L(A, E);
|
5002
5002
|
}).catch(function(A) {
|
5003
5003
|
return z(A);
|
5004
|
-
}),
|
5004
|
+
}), be({
|
5005
5005
|
type: "reset"
|
5006
5006
|
});
|
5007
5007
|
}, [r, L, z, N]), y = _e(function() {
|
5008
5008
|
if (I.current) {
|
5009
|
-
|
5009
|
+
be({
|
5010
5010
|
type: "openDialog"
|
5011
5011
|
}), me();
|
5012
5012
|
var E = {
|
@@ -5016,61 +5016,61 @@ function Ur() {
|
|
5016
5016
|
window.showOpenFilePicker(E).then(function(A) {
|
5017
5017
|
return r(A);
|
5018
5018
|
}).then(function(A) {
|
5019
|
-
L(A, null),
|
5019
|
+
L(A, null), be({
|
5020
5020
|
type: "closeDialog"
|
5021
5021
|
});
|
5022
5022
|
}).catch(function(A) {
|
5023
|
-
|
5023
|
+
ws(A) ? (te(A), be({
|
5024
5024
|
type: "closeDialog"
|
5025
|
-
})) :
|
5025
|
+
})) : Es(A) ? (I.current = !1, le.current ? (le.current.value = null, le.current.click()) : z(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."))) : z(A);
|
5026
5026
|
});
|
5027
5027
|
return;
|
5028
5028
|
}
|
5029
|
-
le.current && (
|
5029
|
+
le.current && (be({
|
5030
5030
|
type: "openDialog"
|
5031
5031
|
}), me(), le.current.value = null, le.current.click());
|
5032
|
-
}, [
|
5032
|
+
}, [be, me, te, x, L, z, re, s]), F = _e(function(E) {
|
5033
5033
|
!U.current || !U.current.isEqualNode(E.target) || (E.key === " " || E.key === "Enter" || E.keyCode === 32 || E.keyCode === 13) && (E.preventDefault(), y());
|
5034
5034
|
}, [U, y]), J = _e(function() {
|
5035
|
-
|
5035
|
+
be({
|
5036
5036
|
type: "focus"
|
5037
5037
|
});
|
5038
5038
|
}, []), M = _e(function() {
|
5039
|
-
|
5039
|
+
be({
|
5040
5040
|
type: "blur"
|
5041
5041
|
});
|
5042
5042
|
}, []), ue = _e(function() {
|
5043
|
-
T || (
|
5043
|
+
T || (gs() ? setTimeout(y, 0) : y());
|
5044
5044
|
}, [T, y]), Re = function(A) {
|
5045
5045
|
return n ? null : A;
|
5046
5046
|
}, X = function(A) {
|
5047
5047
|
return b ? null : Re(A);
|
5048
5048
|
}, Q = function(A) {
|
5049
5049
|
return D ? null : Re(A);
|
5050
|
-
},
|
5050
|
+
}, we = function(A) {
|
5051
5051
|
N && A.stopPropagation();
|
5052
|
-
}, He =
|
5052
|
+
}, He = Je(function() {
|
5053
5053
|
return function() {
|
5054
|
-
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, A = E.refKey, ae = A === void 0 ? "ref" : A, de = E.role, Te = E.onKeyDown,
|
5054
|
+
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, A = E.refKey, ae = A === void 0 ? "ref" : A, de = E.role, Te = E.onKeyDown, Ze = E.onFocus, Ye = E.onBlur, tt = E.onClick, Tt = E.onDragEnter, kt = E.onDragOver, mt = E.onDragLeave, Ot = E.onDrop, _t = un(E, Ts);
|
5055
5055
|
return ke(ke(Yn({
|
5056
5056
|
onKeyDown: X(qe(Te, F)),
|
5057
|
-
onFocus: X(qe(
|
5057
|
+
onFocus: X(qe(Ze, J)),
|
5058
5058
|
onBlur: X(qe(Ye, M)),
|
5059
5059
|
onClick: Re(qe(tt, ue)),
|
5060
|
-
onDragEnter: Q(qe(
|
5061
|
-
onDragOver: Q(qe(
|
5062
|
-
onDragLeave: Q(qe(
|
5063
|
-
onDrop: Q(qe(
|
5060
|
+
onDragEnter: Q(qe(Tt, W)),
|
5061
|
+
onDragOver: Q(qe(kt, K)),
|
5062
|
+
onDragLeave: Q(qe(mt, ee)),
|
5063
|
+
onDrop: Q(qe(Ot, xe)),
|
5064
5064
|
role: typeof de == "string" && de !== "" ? de : "presentation"
|
5065
5065
|
}, ae, U), !n && !b ? {
|
5066
5066
|
tabIndex: 0
|
5067
|
-
} : {}),
|
5067
|
+
} : {}), _t);
|
5068
5068
|
};
|
5069
5069
|
}, [U, F, J, M, ue, W, K, ee, xe, b, D, n]), $e = _e(function(E) {
|
5070
5070
|
E.stopPropagation();
|
5071
|
-
}, []), Ge =
|
5071
|
+
}, []), Ge = Je(function() {
|
5072
5072
|
return function() {
|
5073
|
-
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, A = E.refKey, ae = A === void 0 ? "ref" : A, de = E.onChange, Te = E.onClick,
|
5073
|
+
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, A = E.refKey, ae = A === void 0 ? "ref" : A, de = E.onChange, Te = E.onClick, Ze = un(E, ks), Ye = Yn({
|
5074
5074
|
accept: V,
|
5075
5075
|
multiple: s,
|
5076
5076
|
type: "file",
|
@@ -5090,7 +5090,7 @@ function Ur() {
|
|
5090
5090
|
onClick: Re(qe(Te, $e)),
|
5091
5091
|
tabIndex: -1
|
5092
5092
|
}, ae, le);
|
5093
|
-
return ke(ke({}, Ye),
|
5093
|
+
return ke(ke({}, Ye), Ze);
|
5094
5094
|
};
|
5095
5095
|
}, [le, i, s, xe, n]);
|
5096
5096
|
return ke(ke({}, pe), {}, {
|
@@ -5102,7 +5102,7 @@ function Ur() {
|
|
5102
5102
|
open: Re(y)
|
5103
5103
|
});
|
5104
5104
|
}
|
5105
|
-
function
|
5105
|
+
function Is(e, t) {
|
5106
5106
|
switch (t.type) {
|
5107
5107
|
case "focus":
|
5108
5108
|
return ke(ke({}, e), {}, {
|
@@ -5138,20 +5138,20 @@ function Fs(e, t) {
|
|
5138
5138
|
return e;
|
5139
5139
|
}
|
5140
5140
|
}
|
5141
|
-
function
|
5141
|
+
function or() {
|
5142
5142
|
}
|
5143
|
-
const
|
5143
|
+
const Bs = {
|
5144
5144
|
WAV_MIME_TYPES: ["audio/wav", "audio/x-wav", "audio/wave", "audio/x-pn-wav"],
|
5145
5145
|
MP3_MIME_TYPES: ["audio/mpeg", "audio/mp3", "audio/x-mpeg", "audio/x-mp3", "audio/x-mpeg-3"],
|
5146
5146
|
FLAC_MIME_TYPES: ["audio/flac"]
|
5147
|
-
},
|
5147
|
+
}, zs = 10 * 1e3, sr = "[Audio.getDurationSeconds]", Ls = async (e, { throwError: t } = {}) => new Promise((i, n) => {
|
5148
5148
|
if (typeof window > "u")
|
5149
5149
|
return n(new Error("getDurationSeconds is only usable in the browser"));
|
5150
5150
|
const r = URL.createObjectURL(e), a = new Audio(), o = () => {
|
5151
5151
|
a.src = "", URL.revokeObjectURL(r);
|
5152
5152
|
}, s = setTimeout(() => {
|
5153
|
-
o(), console.error(
|
5154
|
-
},
|
5153
|
+
o(), console.error(sr, "Timeout", e.name, e.size, e.type), i(0);
|
5154
|
+
}, zs);
|
5155
5155
|
a.addEventListener(
|
5156
5156
|
"loadedmetadata",
|
5157
5157
|
() => {
|
@@ -5162,37 +5162,37 @@ const Ps = {
|
|
5162
5162
|
), a.addEventListener(
|
5163
5163
|
"error",
|
5164
5164
|
(c) => {
|
5165
|
-
clearTimeout(s), o(), t ? (console.error(
|
5165
|
+
clearTimeout(s), o(), t ? (console.error(sr, "Error", e.name, e.size, e.type, c), n(e)) : i(0);
|
5166
5166
|
},
|
5167
5167
|
{ once: !0 }
|
5168
5168
|
), a.src = r;
|
5169
|
-
}),
|
5169
|
+
}), Ms = (e) => {
|
5170
5170
|
const t = /* @__PURE__ */ new Map();
|
5171
5171
|
return e.forEach((i) => {
|
5172
5172
|
t.set(`${i.name}-${i.size}`, i);
|
5173
5173
|
}), Array.from(t.values());
|
5174
|
-
},
|
5174
|
+
}, $s = (e) => new Promise((t) => {
|
5175
5175
|
const i = new FileReader();
|
5176
5176
|
i.onloadend = (n) => {
|
5177
5177
|
var o;
|
5178
|
-
const r = new Uint8Array((o = n.target) == null ? void 0 : o.result), a =
|
5178
|
+
const r = new Uint8Array((o = n.target) == null ? void 0 : o.result), a = jo.filetypemime(r);
|
5179
5179
|
t(a);
|
5180
5180
|
}, i.readAsArrayBuffer(e);
|
5181
|
-
}),
|
5181
|
+
}), Ns = async (e) => {
|
5182
5182
|
try {
|
5183
|
-
const t = await
|
5183
|
+
const t = await Ls(e), i = e;
|
5184
5184
|
return i.duration = t, i;
|
5185
5185
|
} catch {
|
5186
5186
|
throw new Error(`Failed to get audio duration for ${e.name}`);
|
5187
5187
|
}
|
5188
|
-
},
|
5189
|
-
for (const [t, i] of Object.entries(
|
5188
|
+
}, qs = (e) => {
|
5189
|
+
for (const [t, i] of Object.entries(Bs)) {
|
5190
5190
|
const n = t.toLowerCase().split("_")[0];
|
5191
5191
|
if (i.includes(e)) return n;
|
5192
5192
|
}
|
5193
|
-
},
|
5193
|
+
}, Ws = async (e) => {
|
5194
5194
|
var s;
|
5195
|
-
const t = await
|
5195
|
+
const t = await $s(e), i = ((s = e == null ? void 0 : e.name) == null ? void 0 : s.split(".").pop()) || "", n = t[0] || e.type, r = qs(n);
|
5196
5196
|
if (r === i || !n || !r)
|
5197
5197
|
return e;
|
5198
5198
|
const a = `${e.name.split(".").slice(0, -1).join(".")}.${r}`;
|
@@ -5200,38 +5200,38 @@ const Ps = {
|
|
5200
5200
|
type: n
|
5201
5201
|
});
|
5202
5202
|
};
|
5203
|
-
class
|
5203
|
+
class Us extends Error {
|
5204
5204
|
constructor() {
|
5205
5205
|
super("Max file size exceeded");
|
5206
5206
|
}
|
5207
5207
|
}
|
5208
|
-
class
|
5208
|
+
class Vs extends Error {
|
5209
5209
|
constructor() {
|
5210
5210
|
super("Min file size exceeded");
|
5211
5211
|
}
|
5212
5212
|
}
|
5213
|
-
class
|
5213
|
+
class Hs extends Error {
|
5214
5214
|
constructor() {
|
5215
5215
|
super("File duration too long");
|
5216
5216
|
}
|
5217
5217
|
}
|
5218
|
-
class
|
5218
|
+
class Gs extends Error {
|
5219
5219
|
constructor() {
|
5220
5220
|
super("Invalid file type");
|
5221
5221
|
}
|
5222
5222
|
}
|
5223
|
-
const
|
5223
|
+
const Ys = (e) => ({
|
5224
5224
|
handleDurationError: (t) => {
|
5225
5225
|
var i;
|
5226
|
-
console.log("handleDurationError", t), (i = e.onError) == null || i.call(e, new
|
5226
|
+
console.log("handleDurationError", t), (i = e.onError) == null || i.call(e, new Hs());
|
5227
5227
|
},
|
5228
5228
|
handleMaxSizeError: (t) => {
|
5229
5229
|
var i;
|
5230
|
-
console.log("handleMaxSizeError", t), (i = e.onError) == null || i.call(e, new
|
5230
|
+
console.log("handleMaxSizeError", t), (i = e.onError) == null || i.call(e, new Us());
|
5231
5231
|
},
|
5232
5232
|
handleMinSizeError: (t) => {
|
5233
5233
|
var i;
|
5234
|
-
console.log("handleMinSizeError", t), (i = e.onError) == null || i.call(e, new
|
5234
|
+
console.log("handleMinSizeError", t), (i = e.onError) == null || i.call(e, new Vs());
|
5235
5235
|
},
|
5236
5236
|
handleUnknownError: (t) => {
|
5237
5237
|
var i;
|
@@ -5239,17 +5239,17 @@ const Hs = (e) => ({
|
|
5239
5239
|
},
|
5240
5240
|
handleInvalidTypeError: (t) => {
|
5241
5241
|
var i;
|
5242
|
-
console.log("handleInvalidTypeError", t), (i = e.onError) == null || i.call(e, new
|
5242
|
+
console.log("handleInvalidTypeError", t), (i = e.onError) == null || i.call(e, new Gs());
|
5243
5243
|
}
|
5244
|
-
}),
|
5244
|
+
}), Ks = (e) => {
|
5245
5245
|
const {
|
5246
5246
|
handleDurationError: t,
|
5247
5247
|
handleMaxSizeError: i,
|
5248
5248
|
handleMinSizeError: n,
|
5249
5249
|
handleUnknownError: r,
|
5250
5250
|
handleInvalidTypeError: a
|
5251
|
-
} =
|
5252
|
-
return { dropzone:
|
5251
|
+
} = Ys(e);
|
5252
|
+
return { dropzone: Kr({
|
5253
5253
|
accept: {
|
5254
5254
|
"audio/wav": [".wav"],
|
5255
5255
|
"audio/mp3": [".mp3"],
|
@@ -5259,9 +5259,9 @@ const Hs = (e) => ({
|
|
5259
5259
|
minSize: e.minSizeBytes,
|
5260
5260
|
maxSize: e.maxSizeBytes,
|
5261
5261
|
onDropAccepted: async (s) => {
|
5262
|
-
const c = await Promise.all(s.map((p) =>
|
5262
|
+
const c = await Promise.all(s.map((p) => Ws(p)));
|
5263
5263
|
try {
|
5264
|
-
const l = (await Promise.all(c.map(
|
5264
|
+
const l = (await Promise.all(c.map(Ns))).filter((v) => v.duration <= (e.maxDurationS ?? 1 / 0) ? !0 : (t(v), !1)), u = e.files ?? [], f = Ms([...u, ...l]), m = f.slice(0, e.maxFileCount ?? f.length);
|
5265
5265
|
e.onFileAccepted(m);
|
5266
5266
|
} catch (p) {
|
5267
5267
|
r(p);
|
@@ -5274,9 +5274,9 @@ const Hs = (e) => ({
|
|
5274
5274
|
});
|
5275
5275
|
}
|
5276
5276
|
}), ...e };
|
5277
|
-
},
|
5277
|
+
}, Jr = ye.createContext(
|
5278
5278
|
{}
|
5279
|
-
),
|
5279
|
+
), Lp = () => ye.useContext(Jr), Js = dt(Et, {
|
5280
5280
|
position: "relative",
|
5281
5281
|
display: "flex",
|
5282
5282
|
flexDirection: "column",
|
@@ -5285,8 +5285,8 @@ const Hs = (e) => ({
|
|
5285
5285
|
width: "100%",
|
5286
5286
|
gap: "8px",
|
5287
5287
|
height: "100%"
|
5288
|
-
}),
|
5289
|
-
const i =
|
5288
|
+
}), Xs = ({ children: e, ...t }) => {
|
5289
|
+
const i = Ks(t), {
|
5290
5290
|
files: n,
|
5291
5291
|
onFileAccepted: r,
|
5292
5292
|
onDelete: a,
|
@@ -5297,11 +5297,11 @@ const Hs = (e) => ({
|
|
5297
5297
|
onError: l,
|
5298
5298
|
...u
|
5299
5299
|
} = t;
|
5300
|
-
return /* @__PURE__ */
|
5301
|
-
/* @__PURE__ */
|
5300
|
+
return /* @__PURE__ */ ot.jsx(Jr.Provider, { value: i, children: /* @__PURE__ */ ot.jsxs(Js, { ...u, ...i.dropzone.getRootProps(), children: [
|
5301
|
+
/* @__PURE__ */ ot.jsx("input", { ...i.dropzone.getInputProps() }),
|
5302
5302
|
e
|
5303
5303
|
] }) });
|
5304
|
-
},
|
5304
|
+
}, Zs = dt(Et, {
|
5305
5305
|
width: "100%",
|
5306
5306
|
height: "100%",
|
5307
5307
|
display: "flex",
|
@@ -5312,23 +5312,23 @@ const Hs = (e) => ({
|
|
5312
5312
|
alignItems: "stretch",
|
5313
5313
|
maxHeight: "500px",
|
5314
5314
|
justifyContent: "center"
|
5315
|
-
}),
|
5315
|
+
}), Qs = dt(Et, {
|
5316
5316
|
paddingTop: "32px",
|
5317
5317
|
display: "flex",
|
5318
5318
|
justifyContent: "center"
|
5319
|
-
}),
|
5319
|
+
}), ec = dt(Et, {
|
5320
5320
|
flex: 1,
|
5321
5321
|
gap: "16px",
|
5322
5322
|
display: "flex",
|
5323
5323
|
alignItems: "center",
|
5324
5324
|
justifyContent: "center",
|
5325
|
-
padding: "
|
5326
|
-
}),
|
5325
|
+
padding: "16px"
|
5326
|
+
}), tc = dt(Et, {
|
5327
5327
|
borderTop: "1px solid #ffffff10",
|
5328
5328
|
display: "flex",
|
5329
5329
|
alignItems: "stretch",
|
5330
5330
|
height: "96px"
|
5331
|
-
}),
|
5331
|
+
}), nc = dt(Et, {
|
5332
5332
|
height: "252px",
|
5333
5333
|
width: "222px",
|
5334
5334
|
borderRadius: "8px",
|
@@ -5338,45 +5338,45 @@ const Hs = (e) => ({
|
|
5338
5338
|
flexDirection: "column",
|
5339
5339
|
alignItems: "center",
|
5340
5340
|
justifyContent: "center"
|
5341
|
-
}),
|
5342
|
-
Root:
|
5343
|
-
Header:
|
5344
|
-
Content:
|
5345
|
-
Footer:
|
5346
|
-
Card:
|
5341
|
+
}), Mp = {
|
5342
|
+
Root: Zs,
|
5343
|
+
Header: Qs,
|
5344
|
+
Content: ec,
|
5345
|
+
Footer: tc,
|
5346
|
+
Card: nc
|
5347
5347
|
};
|
5348
|
-
function
|
5348
|
+
function Xr(e, t) {
|
5349
5349
|
return function() {
|
5350
5350
|
return e.apply(t, arguments);
|
5351
5351
|
};
|
5352
5352
|
}
|
5353
|
-
const { toString:
|
5354
|
-
const i =
|
5353
|
+
const { toString: ic } = Object.prototype, { getPrototypeOf: pi } = Object, mn = /* @__PURE__ */ ((e) => (t) => {
|
5354
|
+
const i = ic.call(t);
|
5355
5355
|
return e[i] || (e[i] = i.slice(8, -1).toLowerCase());
|
5356
|
-
})(/* @__PURE__ */ Object.create(null)), Ne = (e) => (e = e.toLowerCase(), (t) => mn(t) === e), xn = (e) => (t) => typeof t === e, { isArray:
|
5357
|
-
function
|
5358
|
-
return e !== null &&
|
5356
|
+
})(/* @__PURE__ */ Object.create(null)), Ne = (e) => (e = e.toLowerCase(), (t) => mn(t) === e), xn = (e) => (t) => typeof t === e, { isArray: St } = Array, $t = xn("undefined");
|
5357
|
+
function rc(e) {
|
5358
|
+
return e !== null && !$t(e) && e.constructor !== null && !$t(e.constructor) && Be(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
5359
5359
|
}
|
5360
|
-
const
|
5361
|
-
function
|
5360
|
+
const Zr = Ne("ArrayBuffer");
|
5361
|
+
function ac(e) {
|
5362
5362
|
let t;
|
5363
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
5363
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Zr(e.buffer), t;
|
5364
5364
|
}
|
5365
|
-
const
|
5365
|
+
const oc = xn("string"), Be = xn("function"), Qr = xn("number"), vn = (e) => e !== null && typeof e == "object", sc = (e) => e === !0 || e === !1, an = (e) => {
|
5366
5366
|
if (mn(e) !== "object")
|
5367
5367
|
return !1;
|
5368
|
-
const t =
|
5368
|
+
const t = pi(e);
|
5369
5369
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
5370
|
-
},
|
5370
|
+
}, cc = Ne("Date"), lc = Ne("File"), pc = Ne("Blob"), uc = Ne("FileList"), dc = (e) => vn(e) && Be(e.pipe), fc = (e) => {
|
5371
5371
|
let t;
|
5372
5372
|
return e && (typeof FormData == "function" && e instanceof FormData || Be(e.append) && ((t = mn(e)) === "formdata" || // detect form-data instance
|
5373
5373
|
t === "object" && Be(e.toString) && e.toString() === "[object FormData]"));
|
5374
|
-
},
|
5375
|
-
function
|
5374
|
+
}, mc = Ne("URLSearchParams"), [xc, vc, gc, hc] = ["ReadableStream", "Request", "Response", "Headers"].map(Ne), yc = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
5375
|
+
function Wt(e, t, { allOwnKeys: i = !1 } = {}) {
|
5376
5376
|
if (e === null || typeof e > "u")
|
5377
5377
|
return;
|
5378
5378
|
let n, r;
|
5379
|
-
if (typeof e != "object" && (e = [e]),
|
5379
|
+
if (typeof e != "object" && (e = [e]), St(e))
|
5380
5380
|
for (n = 0, r = e.length; n < r; n++)
|
5381
5381
|
t.call(null, e[n], n, e);
|
5382
5382
|
else {
|
@@ -5386,7 +5386,7 @@ function qt(e, t, { allOwnKeys: i = !1 } = {}) {
|
|
5386
5386
|
s = a[n], t.call(null, e[s], s, e);
|
5387
5387
|
}
|
5388
5388
|
}
|
5389
|
-
function
|
5389
|
+
function ea(e, t) {
|
5390
5390
|
t = t.toLowerCase();
|
5391
5391
|
const i = Object.keys(e);
|
5392
5392
|
let n = i.length, r;
|
@@ -5395,71 +5395,71 @@ function Kr(e, t) {
|
|
5395
5395
|
return r;
|
5396
5396
|
return null;
|
5397
5397
|
}
|
5398
|
-
const at = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
5398
|
+
const at = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ta = (e) => !$t(e) && e !== at;
|
5399
5399
|
function Jn() {
|
5400
|
-
const { caseless: e } =
|
5401
|
-
const a = e &&
|
5402
|
-
an(t[a]) && an(n) ? t[a] = Jn(t[a], n) : an(n) ? t[a] = Jn({}, n) :
|
5400
|
+
const { caseless: e } = ta(this) && this || {}, t = {}, i = (n, r) => {
|
5401
|
+
const a = e && ea(t, r) || r;
|
5402
|
+
an(t[a]) && an(n) ? t[a] = Jn(t[a], n) : an(n) ? t[a] = Jn({}, n) : St(n) ? t[a] = n.slice() : t[a] = n;
|
5403
5403
|
};
|
5404
5404
|
for (let n = 0, r = arguments.length; n < r; n++)
|
5405
|
-
arguments[n] &&
|
5405
|
+
arguments[n] && Wt(arguments[n], i);
|
5406
5406
|
return t;
|
5407
5407
|
}
|
5408
|
-
const
|
5409
|
-
i && Be(r) ? e[a] =
|
5410
|
-
}, { allOwnKeys: n }), e),
|
5408
|
+
const bc = (e, t, i, { allOwnKeys: n } = {}) => (Wt(t, (r, a) => {
|
5409
|
+
i && Be(r) ? e[a] = Xr(r, i) : e[a] = r;
|
5410
|
+
}, { allOwnKeys: n }), e), wc = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ec = (e, t, i, n) => {
|
5411
5411
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
5412
5412
|
value: t.prototype
|
5413
5413
|
}), i && Object.assign(e.prototype, i);
|
5414
|
-
},
|
5414
|
+
}, Sc = (e, t, i, n) => {
|
5415
5415
|
let r, a, o;
|
5416
5416
|
const s = {};
|
5417
5417
|
if (t = t || {}, e == null) return t;
|
5418
5418
|
do {
|
5419
5419
|
for (r = Object.getOwnPropertyNames(e), a = r.length; a-- > 0; )
|
5420
5420
|
o = r[a], (!n || n(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
5421
|
-
e = i !== !1 &&
|
5421
|
+
e = i !== !1 && pi(e);
|
5422
5422
|
} while (e && (!i || i(e, t)) && e !== Object.prototype);
|
5423
5423
|
return t;
|
5424
|
-
},
|
5424
|
+
}, Rc = (e, t, i) => {
|
5425
5425
|
e = String(e), (i === void 0 || i > e.length) && (i = e.length), i -= t.length;
|
5426
5426
|
const n = e.indexOf(t, i);
|
5427
5427
|
return n !== -1 && n === i;
|
5428
|
-
},
|
5428
|
+
}, Tc = (e) => {
|
5429
5429
|
if (!e) return null;
|
5430
|
-
if (
|
5430
|
+
if (St(e)) return e;
|
5431
5431
|
let t = e.length;
|
5432
|
-
if (!
|
5432
|
+
if (!Qr(t)) return null;
|
5433
5433
|
const i = new Array(t);
|
5434
5434
|
for (; t-- > 0; )
|
5435
5435
|
i[t] = e[t];
|
5436
5436
|
return i;
|
5437
|
-
},
|
5437
|
+
}, kc = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && pi(Uint8Array)), Oc = (e, t) => {
|
5438
5438
|
const n = (e && e[Symbol.iterator]).call(e);
|
5439
5439
|
let r;
|
5440
5440
|
for (; (r = n.next()) && !r.done; ) {
|
5441
5441
|
const a = r.value;
|
5442
5442
|
t.call(e, a[0], a[1]);
|
5443
5443
|
}
|
5444
|
-
},
|
5444
|
+
}, _c = (e, t) => {
|
5445
5445
|
let i;
|
5446
5446
|
const n = [];
|
5447
5447
|
for (; (i = e.exec(t)) !== null; )
|
5448
5448
|
n.push(i);
|
5449
5449
|
return n;
|
5450
|
-
},
|
5450
|
+
}, Ac = Ne("HTMLFormElement"), Cc = (e) => e.toLowerCase().replace(
|
5451
5451
|
/[-_\s]([a-z\d])(\w*)/g,
|
5452
5452
|
function(i, n, r) {
|
5453
5453
|
return n.toUpperCase() + r;
|
5454
5454
|
}
|
5455
|
-
),
|
5455
|
+
), cr = (({ hasOwnProperty: e }) => (t, i) => e.call(t, i))(Object.prototype), Dc = Ne("RegExp"), na = (e, t) => {
|
5456
5456
|
const i = Object.getOwnPropertyDescriptors(e), n = {};
|
5457
|
-
|
5457
|
+
Wt(i, (r, a) => {
|
5458
5458
|
let o;
|
5459
5459
|
(o = t(r, a, e)) !== !1 && (n[a] = o || r);
|
5460
5460
|
}), Object.defineProperties(e, n);
|
5461
|
-
},
|
5462
|
-
|
5461
|
+
}, jc = (e) => {
|
5462
|
+
na(e, (t, i) => {
|
5463
5463
|
if (Be(e) && ["arguments", "caller", "callee"].indexOf(i) !== -1)
|
5464
5464
|
return !1;
|
5465
5465
|
const n = e[i];
|
@@ -5473,111 +5473,111 @@ const hc = (e, t, i, { allOwnKeys: n } = {}) => (qt(t, (r, a) => {
|
|
5473
5473
|
});
|
5474
5474
|
}
|
5475
5475
|
});
|
5476
|
-
},
|
5476
|
+
}, Fc = (e, t) => {
|
5477
5477
|
const i = {}, n = (r) => {
|
5478
5478
|
r.forEach((a) => {
|
5479
5479
|
i[a] = !0;
|
5480
5480
|
});
|
5481
5481
|
};
|
5482
|
-
return
|
5483
|
-
},
|
5484
|
-
},
|
5485
|
-
DIGIT:
|
5482
|
+
return St(e) ? n(e) : n(String(e).split(t)), i;
|
5483
|
+
}, Pc = () => {
|
5484
|
+
}, Ic = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Fn = "abcdefghijklmnopqrstuvwxyz", lr = "0123456789", ia = {
|
5485
|
+
DIGIT: lr,
|
5486
5486
|
ALPHA: Fn,
|
5487
|
-
ALPHA_DIGIT: Fn + Fn.toUpperCase() +
|
5488
|
-
},
|
5487
|
+
ALPHA_DIGIT: Fn + Fn.toUpperCase() + lr
|
5488
|
+
}, Bc = (e = 16, t = ia.ALPHA_DIGIT) => {
|
5489
5489
|
let i = "";
|
5490
5490
|
const { length: n } = t;
|
5491
5491
|
for (; e--; )
|
5492
5492
|
i += t[Math.random() * n | 0];
|
5493
5493
|
return i;
|
5494
5494
|
};
|
5495
|
-
function
|
5495
|
+
function zc(e) {
|
5496
5496
|
return !!(e && Be(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
5497
5497
|
}
|
5498
|
-
const
|
5498
|
+
const Lc = (e) => {
|
5499
5499
|
const t = new Array(10), i = (n, r) => {
|
5500
5500
|
if (vn(n)) {
|
5501
5501
|
if (t.indexOf(n) >= 0)
|
5502
5502
|
return;
|
5503
5503
|
if (!("toJSON" in n)) {
|
5504
5504
|
t[r] = n;
|
5505
|
-
const a =
|
5506
|
-
return
|
5505
|
+
const a = St(n) ? [] : {};
|
5506
|
+
return Wt(n, (o, s) => {
|
5507
5507
|
const c = i(o, r + 1);
|
5508
|
-
|
5508
|
+
!$t(c) && (a[s] = c);
|
5509
5509
|
}), t[r] = void 0, a;
|
5510
5510
|
}
|
5511
5511
|
}
|
5512
5512
|
return n;
|
5513
5513
|
};
|
5514
5514
|
return i(e, 0);
|
5515
|
-
},
|
5515
|
+
}, Mc = Ne("AsyncFunction"), $c = (e) => e && (vn(e) || Be(e)) && Be(e.then) && Be(e.catch), ra = ((e, t) => e ? setImmediate : t ? ((i, n) => (at.addEventListener("message", ({ source: r, data: a }) => {
|
5516
5516
|
r === at && a === i && n.length && n.shift()();
|
5517
5517
|
}, !1), (r) => {
|
5518
5518
|
n.push(r), at.postMessage(i, "*");
|
5519
5519
|
}))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
|
5520
5520
|
typeof setImmediate == "function",
|
5521
5521
|
Be(at.postMessage)
|
5522
|
-
),
|
5523
|
-
isArray:
|
5524
|
-
isArrayBuffer:
|
5525
|
-
isBuffer:
|
5526
|
-
isFormData:
|
5527
|
-
isArrayBufferView:
|
5528
|
-
isString:
|
5529
|
-
isNumber:
|
5530
|
-
isBoolean:
|
5522
|
+
), Nc = typeof queueMicrotask < "u" ? queueMicrotask.bind(at) : typeof process < "u" && process.nextTick || ra, h = {
|
5523
|
+
isArray: St,
|
5524
|
+
isArrayBuffer: Zr,
|
5525
|
+
isBuffer: rc,
|
5526
|
+
isFormData: fc,
|
5527
|
+
isArrayBufferView: ac,
|
5528
|
+
isString: oc,
|
5529
|
+
isNumber: Qr,
|
5530
|
+
isBoolean: sc,
|
5531
5531
|
isObject: vn,
|
5532
5532
|
isPlainObject: an,
|
5533
|
-
isReadableStream:
|
5534
|
-
isRequest:
|
5535
|
-
isResponse:
|
5536
|
-
isHeaders:
|
5537
|
-
isUndefined:
|
5538
|
-
isDate:
|
5539
|
-
isFile:
|
5540
|
-
isBlob:
|
5541
|
-
isRegExp:
|
5533
|
+
isReadableStream: xc,
|
5534
|
+
isRequest: vc,
|
5535
|
+
isResponse: gc,
|
5536
|
+
isHeaders: hc,
|
5537
|
+
isUndefined: $t,
|
5538
|
+
isDate: cc,
|
5539
|
+
isFile: lc,
|
5540
|
+
isBlob: pc,
|
5541
|
+
isRegExp: Dc,
|
5542
5542
|
isFunction: Be,
|
5543
|
-
isStream:
|
5544
|
-
isURLSearchParams:
|
5545
|
-
isTypedArray:
|
5546
|
-
isFileList:
|
5547
|
-
forEach:
|
5543
|
+
isStream: dc,
|
5544
|
+
isURLSearchParams: mc,
|
5545
|
+
isTypedArray: kc,
|
5546
|
+
isFileList: uc,
|
5547
|
+
forEach: Wt,
|
5548
5548
|
merge: Jn,
|
5549
|
-
extend:
|
5550
|
-
trim:
|
5551
|
-
stripBOM:
|
5552
|
-
inherits:
|
5553
|
-
toFlatObject:
|
5549
|
+
extend: bc,
|
5550
|
+
trim: yc,
|
5551
|
+
stripBOM: wc,
|
5552
|
+
inherits: Ec,
|
5553
|
+
toFlatObject: Sc,
|
5554
5554
|
kindOf: mn,
|
5555
5555
|
kindOfTest: Ne,
|
5556
|
-
endsWith:
|
5557
|
-
toArray:
|
5558
|
-
forEachEntry:
|
5559
|
-
matchAll:
|
5560
|
-
isHTMLForm:
|
5561
|
-
hasOwnProperty:
|
5562
|
-
hasOwnProp:
|
5556
|
+
endsWith: Rc,
|
5557
|
+
toArray: Tc,
|
5558
|
+
forEachEntry: Oc,
|
5559
|
+
matchAll: _c,
|
5560
|
+
isHTMLForm: Ac,
|
5561
|
+
hasOwnProperty: cr,
|
5562
|
+
hasOwnProp: cr,
|
5563
5563
|
// an alias to avoid ESLint no-prototype-builtins detection
|
5564
|
-
reduceDescriptors:
|
5565
|
-
freezeMethods:
|
5566
|
-
toObjectSet:
|
5567
|
-
toCamelCase:
|
5568
|
-
noop:
|
5569
|
-
toFiniteNumber:
|
5570
|
-
findKey:
|
5564
|
+
reduceDescriptors: na,
|
5565
|
+
freezeMethods: jc,
|
5566
|
+
toObjectSet: Fc,
|
5567
|
+
toCamelCase: Cc,
|
5568
|
+
noop: Pc,
|
5569
|
+
toFiniteNumber: Ic,
|
5570
|
+
findKey: ea,
|
5571
5571
|
global: at,
|
5572
|
-
isContextDefined:
|
5573
|
-
ALPHABET:
|
5574
|
-
generateString:
|
5575
|
-
isSpecCompliantForm:
|
5576
|
-
toJSONObject:
|
5577
|
-
isAsyncFn:
|
5578
|
-
isThenable:
|
5579
|
-
setImmediate:
|
5580
|
-
asap:
|
5572
|
+
isContextDefined: ta,
|
5573
|
+
ALPHABET: ia,
|
5574
|
+
generateString: Bc,
|
5575
|
+
isSpecCompliantForm: zc,
|
5576
|
+
toJSONObject: Lc,
|
5577
|
+
isAsyncFn: Mc,
|
5578
|
+
isThenable: $c,
|
5579
|
+
setImmediate: ra,
|
5580
|
+
asap: Nc
|
5581
5581
|
};
|
5582
5582
|
function Z(e, t, i, n, r) {
|
5583
5583
|
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);
|
@@ -5603,7 +5603,7 @@ h.inherits(Z, Error, {
|
|
5603
5603
|
};
|
5604
5604
|
}
|
5605
5605
|
});
|
5606
|
-
const
|
5606
|
+
const aa = Z.prototype, oa = {};
|
5607
5607
|
[
|
5608
5608
|
"ERR_BAD_OPTION_VALUE",
|
5609
5609
|
"ERR_BAD_OPTION",
|
@@ -5619,32 +5619,32 @@ const ea = Z.prototype, ta = {};
|
|
5619
5619
|
"ERR_INVALID_URL"
|
5620
5620
|
// eslint-disable-next-line func-names
|
5621
5621
|
].forEach((e) => {
|
5622
|
-
|
5622
|
+
oa[e] = { value: e };
|
5623
5623
|
});
|
5624
|
-
Object.defineProperties(Z,
|
5625
|
-
Object.defineProperty(
|
5624
|
+
Object.defineProperties(Z, oa);
|
5625
|
+
Object.defineProperty(aa, "isAxiosError", { value: !0 });
|
5626
5626
|
Z.from = (e, t, i, n, r, a) => {
|
5627
|
-
const o = Object.create(
|
5627
|
+
const o = Object.create(aa);
|
5628
5628
|
return h.toFlatObject(e, o, function(c) {
|
5629
5629
|
return c !== Error.prototype;
|
5630
5630
|
}, (s) => s !== "isAxiosError"), Z.call(o, e.message, t, i, n, r), o.cause = e, o.name = e.name, a && Object.assign(o, a), o;
|
5631
5631
|
};
|
5632
|
-
const
|
5632
|
+
const qc = null;
|
5633
5633
|
function Xn(e) {
|
5634
5634
|
return h.isPlainObject(e) || h.isArray(e);
|
5635
5635
|
}
|
5636
|
-
function
|
5636
|
+
function sa(e) {
|
5637
5637
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
5638
5638
|
}
|
5639
|
-
function
|
5639
|
+
function pr(e, t, i) {
|
5640
5640
|
return e ? e.concat(t).map(function(r, a) {
|
5641
|
-
return r =
|
5641
|
+
return r = sa(r), !i && a ? "[" + r + "]" : r;
|
5642
5642
|
}).join(i ? "." : "") : t;
|
5643
5643
|
}
|
5644
|
-
function
|
5644
|
+
function Wc(e) {
|
5645
5645
|
return h.isArray(e) && !e.some(Xn);
|
5646
5646
|
}
|
5647
|
-
const
|
5647
|
+
const Uc = h.toFlatObject(h, {}, null, function(t) {
|
5648
5648
|
return /^is[A-Z]/.test(t);
|
5649
5649
|
});
|
5650
5650
|
function gn(e, t, i) {
|
@@ -5673,18 +5673,18 @@ function gn(e, t, i) {
|
|
5673
5673
|
if (v && !w && typeof v == "object") {
|
5674
5674
|
if (h.endsWith(g, "{}"))
|
5675
5675
|
g = n ? g : g.slice(0, -2), v = JSON.stringify(v);
|
5676
|
-
else if (h.isArray(v) &&
|
5677
|
-
return g =
|
5676
|
+
else if (h.isArray(v) && Wc(v) || (h.isFileList(v) || h.endsWith(g, "[]")) && (x = h.toArray(v)))
|
5677
|
+
return g = sa(g), x.forEach(function(_, T) {
|
5678
5678
|
!(h.isUndefined(_) || _ === null) && t.append(
|
5679
5679
|
// eslint-disable-next-line no-nested-ternary
|
5680
|
-
o === !0 ?
|
5680
|
+
o === !0 ? pr([g], T, a) : o === null ? g : g + "[]",
|
5681
5681
|
p(_)
|
5682
5682
|
);
|
5683
5683
|
}), !1;
|
5684
5684
|
}
|
5685
|
-
return Xn(v) ? !0 : (t.append(
|
5685
|
+
return Xn(v) ? !0 : (t.append(pr(w, g, a), p(v)), !1);
|
5686
5686
|
}
|
5687
|
-
const u = [], f = Object.assign(
|
5687
|
+
const u = [], f = Object.assign(Uc, {
|
5688
5688
|
defaultVisitor: l,
|
5689
5689
|
convertValue: p,
|
5690
5690
|
isVisitable: Xn
|
@@ -5708,7 +5708,7 @@ function gn(e, t, i) {
|
|
5708
5708
|
throw new TypeError("data must be an object");
|
5709
5709
|
return m(e), t;
|
5710
5710
|
}
|
5711
|
-
function
|
5711
|
+
function ur(e) {
|
5712
5712
|
const t = {
|
5713
5713
|
"!": "%21",
|
5714
5714
|
"'": "%27",
|
@@ -5722,40 +5722,40 @@ function lr(e) {
|
|
5722
5722
|
return t[n];
|
5723
5723
|
});
|
5724
5724
|
}
|
5725
|
-
function
|
5725
|
+
function ui(e, t) {
|
5726
5726
|
this._pairs = [], e && gn(e, this, t);
|
5727
5727
|
}
|
5728
|
-
const
|
5729
|
-
|
5728
|
+
const ca = ui.prototype;
|
5729
|
+
ca.append = function(t, i) {
|
5730
5730
|
this._pairs.push([t, i]);
|
5731
5731
|
};
|
5732
|
-
|
5732
|
+
ca.toString = function(t) {
|
5733
5733
|
const i = t ? function(n) {
|
5734
|
-
return t.call(this, n,
|
5735
|
-
} :
|
5734
|
+
return t.call(this, n, ur);
|
5735
|
+
} : ur;
|
5736
5736
|
return this._pairs.map(function(r) {
|
5737
5737
|
return i(r[0]) + "=" + i(r[1]);
|
5738
5738
|
}, "").join("&");
|
5739
5739
|
};
|
5740
|
-
function
|
5740
|
+
function Vc(e) {
|
5741
5741
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
5742
5742
|
}
|
5743
|
-
function
|
5743
|
+
function la(e, t, i) {
|
5744
5744
|
if (!t)
|
5745
5745
|
return e;
|
5746
|
-
const n = i && i.encode ||
|
5746
|
+
const n = i && i.encode || Vc;
|
5747
5747
|
h.isFunction(i) && (i = {
|
5748
5748
|
serialize: i
|
5749
5749
|
});
|
5750
5750
|
const r = i && i.serialize;
|
5751
5751
|
let a;
|
5752
|
-
if (r ? a = r(t, i) : a = h.isURLSearchParams(t) ? t.toString() : new
|
5752
|
+
if (r ? a = r(t, i) : a = h.isURLSearchParams(t) ? t.toString() : new ui(t, i).toString(n), a) {
|
5753
5753
|
const o = e.indexOf("#");
|
5754
5754
|
o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
5755
5755
|
}
|
5756
5756
|
return e;
|
5757
5757
|
}
|
5758
|
-
class
|
5758
|
+
class dr {
|
5759
5759
|
constructor() {
|
5760
5760
|
this.handlers = [];
|
5761
5761
|
}
|
@@ -5809,41 +5809,41 @@ class pr {
|
|
5809
5809
|
});
|
5810
5810
|
}
|
5811
5811
|
}
|
5812
|
-
const
|
5812
|
+
const pa = {
|
5813
5813
|
silentJSONParsing: !0,
|
5814
5814
|
forcedJSONParsing: !0,
|
5815
5815
|
clarifyTimeoutError: !1
|
5816
|
-
},
|
5816
|
+
}, Hc = typeof URLSearchParams < "u" ? URLSearchParams : ui, Gc = typeof FormData < "u" ? FormData : null, Yc = typeof Blob < "u" ? Blob : null, Kc = {
|
5817
5817
|
isBrowser: !0,
|
5818
5818
|
classes: {
|
5819
|
-
URLSearchParams:
|
5820
|
-
FormData:
|
5821
|
-
Blob:
|
5819
|
+
URLSearchParams: Hc,
|
5820
|
+
FormData: Gc,
|
5821
|
+
Blob: Yc
|
5822
5822
|
},
|
5823
5823
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
5824
|
-
},
|
5825
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
5824
|
+
}, di = typeof window < "u" && typeof document < "u", Zn = typeof navigator == "object" && navigator || void 0, Jc = di && (!Zn || ["ReactNative", "NativeScript", "NS"].indexOf(Zn.product) < 0), Xc = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
5825
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zc = di && window.location.href || "http://localhost", Qc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5826
5826
|
__proto__: null,
|
5827
|
-
hasBrowserEnv:
|
5828
|
-
hasStandardBrowserEnv:
|
5829
|
-
hasStandardBrowserWebWorkerEnv:
|
5827
|
+
hasBrowserEnv: di,
|
5828
|
+
hasStandardBrowserEnv: Jc,
|
5829
|
+
hasStandardBrowserWebWorkerEnv: Xc,
|
5830
5830
|
navigator: Zn,
|
5831
|
-
origin:
|
5831
|
+
origin: Zc
|
5832
5832
|
}, Symbol.toStringTag, { value: "Module" })), je = {
|
5833
|
-
...
|
5834
|
-
...
|
5833
|
+
...Qc,
|
5834
|
+
...Kc
|
5835
5835
|
};
|
5836
|
-
function
|
5836
|
+
function el(e, t) {
|
5837
5837
|
return gn(e, new je.classes.URLSearchParams(), Object.assign({
|
5838
5838
|
visitor: function(i, n, r, a) {
|
5839
5839
|
return je.isNode && h.isBuffer(i) ? (this.append(n, i.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
5840
5840
|
}
|
5841
5841
|
}, t));
|
5842
5842
|
}
|
5843
|
-
function
|
5843
|
+
function tl(e) {
|
5844
5844
|
return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
5845
5845
|
}
|
5846
|
-
function
|
5846
|
+
function nl(e) {
|
5847
5847
|
const t = {}, i = Object.keys(e);
|
5848
5848
|
let n;
|
5849
5849
|
const r = i.length;
|
@@ -5852,22 +5852,22 @@ function el(e) {
|
|
5852
5852
|
a = i[n], t[a] = e[a];
|
5853
5853
|
return t;
|
5854
5854
|
}
|
5855
|
-
function
|
5855
|
+
function ua(e) {
|
5856
5856
|
function t(i, n, r, a) {
|
5857
5857
|
let o = i[a++];
|
5858
5858
|
if (o === "__proto__") return !0;
|
5859
5859
|
const s = Number.isFinite(+o), c = a >= i.length;
|
5860
|
-
return o = !o && h.isArray(r) ? r.length : o, c ? (h.hasOwnProp(r, o) ? r[o] = [r[o], n] : r[o] = n, !s) : ((!r[o] || !h.isObject(r[o])) && (r[o] = []), t(i, n, r[o], a) && h.isArray(r[o]) && (r[o] =
|
5860
|
+
return o = !o && h.isArray(r) ? r.length : o, c ? (h.hasOwnProp(r, o) ? r[o] = [r[o], n] : r[o] = n, !s) : ((!r[o] || !h.isObject(r[o])) && (r[o] = []), t(i, n, r[o], a) && h.isArray(r[o]) && (r[o] = nl(r[o])), !s);
|
5861
5861
|
}
|
5862
5862
|
if (h.isFormData(e) && h.isFunction(e.entries)) {
|
5863
5863
|
const i = {};
|
5864
5864
|
return h.forEachEntry(e, (n, r) => {
|
5865
|
-
t(
|
5865
|
+
t(tl(n), r, i, 0);
|
5866
5866
|
}), i;
|
5867
5867
|
}
|
5868
5868
|
return null;
|
5869
5869
|
}
|
5870
|
-
function
|
5870
|
+
function il(e, t, i) {
|
5871
5871
|
if (h.isString(e))
|
5872
5872
|
try {
|
5873
5873
|
return (t || JSON.parse)(e), h.trim(e);
|
@@ -5877,13 +5877,13 @@ function tl(e, t, i) {
|
|
5877
5877
|
}
|
5878
5878
|
return (0, JSON.stringify)(e);
|
5879
5879
|
}
|
5880
|
-
const
|
5881
|
-
transitional:
|
5880
|
+
const Ut = {
|
5881
|
+
transitional: pa,
|
5882
5882
|
adapter: ["xhr", "http", "fetch"],
|
5883
5883
|
transformRequest: [function(t, i) {
|
5884
5884
|
const n = i.getContentType() || "", r = n.indexOf("application/json") > -1, a = h.isObject(t);
|
5885
5885
|
if (a && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
|
5886
|
-
return r ? JSON.stringify(
|
5886
|
+
return r ? JSON.stringify(ua(t)) : t;
|
5887
5887
|
if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t) || h.isReadableStream(t))
|
5888
5888
|
return t;
|
5889
5889
|
if (h.isArrayBufferView(t))
|
@@ -5893,7 +5893,7 @@ const Wt = {
|
|
5893
5893
|
let s;
|
5894
5894
|
if (a) {
|
5895
5895
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
5896
|
-
return
|
5896
|
+
return el(t, this.formSerializer).toString();
|
5897
5897
|
if ((s = h.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
5898
5898
|
const c = this.env && this.env.FormData;
|
5899
5899
|
return gn(
|
@@ -5903,10 +5903,10 @@ const Wt = {
|
|
5903
5903
|
);
|
5904
5904
|
}
|
5905
5905
|
}
|
5906
|
-
return a || r ? (i.setContentType("application/json", !1),
|
5906
|
+
return a || r ? (i.setContentType("application/json", !1), il(t)) : t;
|
5907
5907
|
}],
|
5908
5908
|
transformResponse: [function(t) {
|
5909
|
-
const i = this.transitional ||
|
5909
|
+
const i = this.transitional || Ut.transitional, n = i && i.forcedJSONParsing, r = this.responseType === "json";
|
5910
5910
|
if (h.isResponse(t) || h.isReadableStream(t))
|
5911
5911
|
return t;
|
5912
5912
|
if (t && h.isString(t) && (n && !this.responseType || r)) {
|
@@ -5944,9 +5944,9 @@ const Wt = {
|
|
5944
5944
|
}
|
5945
5945
|
};
|
5946
5946
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
5947
|
-
|
5947
|
+
Ut.headers[e] = {};
|
5948
5948
|
});
|
5949
|
-
const
|
5949
|
+
const rl = h.toObjectSet([
|
5950
5950
|
"age",
|
5951
5951
|
"authorization",
|
5952
5952
|
"content-length",
|
@@ -5964,28 +5964,28 @@ const nl = h.toObjectSet([
|
|
5964
5964
|
"referer",
|
5965
5965
|
"retry-after",
|
5966
5966
|
"user-agent"
|
5967
|
-
]),
|
5967
|
+
]), al = (e) => {
|
5968
5968
|
const t = {};
|
5969
5969
|
let i, n, r;
|
5970
5970
|
return e && e.split(`
|
5971
5971
|
`).forEach(function(o) {
|
5972
|
-
r = o.indexOf(":"), i = o.substring(0, r).trim().toLowerCase(), n = o.substring(r + 1).trim(), !(!i || t[i] &&
|
5972
|
+
r = o.indexOf(":"), i = o.substring(0, r).trim().toLowerCase(), n = o.substring(r + 1).trim(), !(!i || t[i] && rl[i]) && (i === "set-cookie" ? t[i] ? t[i].push(n) : t[i] = [n] : t[i] = t[i] ? t[i] + ", " + n : n);
|
5973
5973
|
}), t;
|
5974
|
-
},
|
5975
|
-
function
|
5974
|
+
}, fr = Symbol("internals");
|
5975
|
+
function Bt(e) {
|
5976
5976
|
return e && String(e).trim().toLowerCase();
|
5977
5977
|
}
|
5978
5978
|
function on(e) {
|
5979
5979
|
return e === !1 || e == null ? e : h.isArray(e) ? e.map(on) : String(e);
|
5980
5980
|
}
|
5981
|
-
function
|
5981
|
+
function ol(e) {
|
5982
5982
|
const t = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
5983
5983
|
let n;
|
5984
5984
|
for (; n = i.exec(e); )
|
5985
5985
|
t[n[1]] = n[2];
|
5986
5986
|
return t;
|
5987
5987
|
}
|
5988
|
-
const
|
5988
|
+
const sl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
5989
5989
|
function Pn(e, t, i, n, r) {
|
5990
5990
|
if (h.isFunction(n))
|
5991
5991
|
return n.call(this, t, i);
|
@@ -5996,10 +5996,10 @@ function Pn(e, t, i, n, r) {
|
|
5996
5996
|
return n.test(t);
|
5997
5997
|
}
|
5998
5998
|
}
|
5999
|
-
function
|
5999
|
+
function cl(e) {
|
6000
6000
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, i, n) => i.toUpperCase() + n);
|
6001
6001
|
}
|
6002
|
-
function
|
6002
|
+
function ll(e, t) {
|
6003
6003
|
const i = h.toCamelCase(" " + t);
|
6004
6004
|
["get", "set", "has"].forEach((n) => {
|
6005
6005
|
Object.defineProperty(e, n + i, {
|
@@ -6017,7 +6017,7 @@ class Ie {
|
|
6017
6017
|
set(t, i, n) {
|
6018
6018
|
const r = this;
|
6019
6019
|
function a(s, c, p) {
|
6020
|
-
const l =
|
6020
|
+
const l = Bt(c);
|
6021
6021
|
if (!l)
|
6022
6022
|
throw new Error("header name must be a non-empty string");
|
6023
6023
|
const u = h.findKey(r, l);
|
@@ -6026,8 +6026,8 @@ class Ie {
|
|
6026
6026
|
const o = (s, c) => h.forEach(s, (p, l) => a(p, l, c));
|
6027
6027
|
if (h.isPlainObject(t) || t instanceof this.constructor)
|
6028
6028
|
o(t, i);
|
6029
|
-
else if (h.isString(t) && (t = t.trim()) && !
|
6030
|
-
o(
|
6029
|
+
else if (h.isString(t) && (t = t.trim()) && !sl(t))
|
6030
|
+
o(al(t), i);
|
6031
6031
|
else if (h.isHeaders(t))
|
6032
6032
|
for (const [s, c] of t.entries())
|
6033
6033
|
a(c, s, n);
|
@@ -6036,14 +6036,14 @@ class Ie {
|
|
6036
6036
|
return this;
|
6037
6037
|
}
|
6038
6038
|
get(t, i) {
|
6039
|
-
if (t =
|
6039
|
+
if (t = Bt(t), t) {
|
6040
6040
|
const n = h.findKey(this, t);
|
6041
6041
|
if (n) {
|
6042
6042
|
const r = this[n];
|
6043
6043
|
if (!i)
|
6044
6044
|
return r;
|
6045
6045
|
if (i === !0)
|
6046
|
-
return
|
6046
|
+
return ol(r);
|
6047
6047
|
if (h.isFunction(i))
|
6048
6048
|
return i.call(this, r, n);
|
6049
6049
|
if (h.isRegExp(i))
|
@@ -6053,7 +6053,7 @@ class Ie {
|
|
6053
6053
|
}
|
6054
6054
|
}
|
6055
6055
|
has(t, i) {
|
6056
|
-
if (t =
|
6056
|
+
if (t = Bt(t), t) {
|
6057
6057
|
const n = h.findKey(this, t);
|
6058
6058
|
return !!(n && this[n] !== void 0 && (!i || Pn(this, this[n], n, i)));
|
6059
6059
|
}
|
@@ -6063,7 +6063,7 @@ class Ie {
|
|
6063
6063
|
const n = this;
|
6064
6064
|
let r = !1;
|
6065
6065
|
function a(o) {
|
6066
|
-
if (o =
|
6066
|
+
if (o = Bt(o), o) {
|
6067
6067
|
const s = h.findKey(n, o);
|
6068
6068
|
s && (!i || Pn(n, n[s], s, i)) && (delete n[s], r = !0);
|
6069
6069
|
}
|
@@ -6087,7 +6087,7 @@ class Ie {
|
|
6087
6087
|
i[o] = on(r), delete i[a];
|
6088
6088
|
return;
|
6089
6089
|
}
|
6090
|
-
const s = t ?
|
6090
|
+
const s = t ? cl(a) : String(a).trim();
|
6091
6091
|
s !== a && delete i[a], i[s] = on(r), n[s] = !0;
|
6092
6092
|
}), this;
|
6093
6093
|
}
|
@@ -6118,12 +6118,12 @@ class Ie {
|
|
6118
6118
|
return i.forEach((r) => n.set(r)), n;
|
6119
6119
|
}
|
6120
6120
|
static accessor(t) {
|
6121
|
-
const n = (this[
|
6121
|
+
const n = (this[fr] = this[fr] = {
|
6122
6122
|
accessors: {}
|
6123
6123
|
}).accessors, r = this.prototype;
|
6124
6124
|
function a(o) {
|
6125
|
-
const s =
|
6126
|
-
n[s] || (
|
6125
|
+
const s = Bt(o);
|
6126
|
+
n[s] || (ll(r, o), n[s] = !0);
|
6127
6127
|
}
|
6128
6128
|
return h.isArray(t) ? t.forEach(a) : a(t), this;
|
6129
6129
|
}
|
@@ -6140,22 +6140,22 @@ h.reduceDescriptors(Ie.prototype, ({ value: e }, t) => {
|
|
6140
6140
|
});
|
6141
6141
|
h.freezeMethods(Ie);
|
6142
6142
|
function In(e, t) {
|
6143
|
-
const i = this ||
|
6143
|
+
const i = this || Ut, n = t || i, r = Ie.from(n.headers);
|
6144
6144
|
let a = n.data;
|
6145
6145
|
return h.forEach(e, function(s) {
|
6146
6146
|
a = s.call(i, a, r.normalize(), t ? t.status : void 0);
|
6147
6147
|
}), r.normalize(), a;
|
6148
6148
|
}
|
6149
|
-
function
|
6149
|
+
function da(e) {
|
6150
6150
|
return !!(e && e.__CANCEL__);
|
6151
6151
|
}
|
6152
|
-
function
|
6152
|
+
function Rt(e, t, i) {
|
6153
6153
|
Z.call(this, e ?? "canceled", Z.ERR_CANCELED, t, i), this.name = "CanceledError";
|
6154
6154
|
}
|
6155
|
-
h.inherits(
|
6155
|
+
h.inherits(Rt, Z, {
|
6156
6156
|
__CANCEL__: !0
|
6157
6157
|
});
|
6158
|
-
function
|
6158
|
+
function fa(e, t, i) {
|
6159
6159
|
const n = i.config.validateStatus;
|
6160
6160
|
!i.status || !n || n(i.status) ? e(i) : t(new Z(
|
6161
6161
|
"Request failed with status code " + i.status,
|
@@ -6165,11 +6165,11 @@ function ca(e, t, i) {
|
|
6165
6165
|
i
|
6166
6166
|
));
|
6167
6167
|
}
|
6168
|
-
function
|
6168
|
+
function pl(e) {
|
6169
6169
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
6170
6170
|
return t && t[1] || "";
|
6171
6171
|
}
|
6172
|
-
function
|
6172
|
+
function ul(e, t) {
|
6173
6173
|
e = e || 10;
|
6174
6174
|
const i = new Array(e), n = new Array(e);
|
6175
6175
|
let r = 0, a = 0, o;
|
@@ -6185,7 +6185,7 @@ function ll(e, t) {
|
|
6185
6185
|
return m ? Math.round(f * 1e3 / m) : void 0;
|
6186
6186
|
};
|
6187
6187
|
}
|
6188
|
-
function
|
6188
|
+
function dl(e, t) {
|
6189
6189
|
let i = 0, n = 1e3 / t, r, a;
|
6190
6190
|
const o = (p, l = Date.now()) => {
|
6191
6191
|
i = l, r = null, a && (clearTimeout(a), a = null), e.apply(null, p);
|
@@ -6199,8 +6199,8 @@ function pl(e, t) {
|
|
6199
6199
|
}
|
6200
6200
|
const dn = (e, t, i = 3) => {
|
6201
6201
|
let n = 0;
|
6202
|
-
const r =
|
6203
|
-
return
|
6202
|
+
const r = ul(50, 250);
|
6203
|
+
return dl((a) => {
|
6204
6204
|
const o = a.loaded, s = a.lengthComputable ? a.total : void 0, c = o - n, p = r(c), l = o <= s;
|
6205
6205
|
n = o;
|
6206
6206
|
const u = {
|
@@ -6216,17 +6216,17 @@ const dn = (e, t, i = 3) => {
|
|
6216
6216
|
};
|
6217
6217
|
e(u);
|
6218
6218
|
}, i);
|
6219
|
-
},
|
6219
|
+
}, mr = (e, t) => {
|
6220
6220
|
const i = e != null;
|
6221
6221
|
return [(n) => t[0]({
|
6222
6222
|
lengthComputable: i,
|
6223
6223
|
total: e,
|
6224
6224
|
loaded: n
|
6225
6225
|
}), t[1]];
|
6226
|
-
},
|
6226
|
+
}, xr = (e) => (...t) => h.asap(() => e(...t)), fl = je.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (i) => (i = new URL(i, je.origin), e.protocol === i.protocol && e.host === i.host && (t || e.port === i.port)))(
|
6227
6227
|
new URL(je.origin),
|
6228
6228
|
je.navigator && /(msie|trident)/i.test(je.navigator.userAgent)
|
6229
|
-
) : () => !0,
|
6229
|
+
) : () => !0, ml = je.hasStandardBrowserEnv ? (
|
6230
6230
|
// Standard browser envs support document.cookie
|
6231
6231
|
{
|
6232
6232
|
write(e, t, i, n, r, a) {
|
@@ -6253,17 +6253,17 @@ const dn = (e, t, i = 3) => {
|
|
6253
6253
|
}
|
6254
6254
|
}
|
6255
6255
|
);
|
6256
|
-
function
|
6256
|
+
function xl(e) {
|
6257
6257
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
6258
6258
|
}
|
6259
|
-
function
|
6259
|
+
function vl(e, t) {
|
6260
6260
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
6261
6261
|
}
|
6262
|
-
function
|
6263
|
-
return e && !
|
6262
|
+
function ma(e, t) {
|
6263
|
+
return e && !xl(t) ? vl(e, t) : t;
|
6264
6264
|
}
|
6265
|
-
const
|
6266
|
-
function
|
6265
|
+
const vr = (e) => e instanceof Ie ? { ...e } : e;
|
6266
|
+
function pt(e, t) {
|
6267
6267
|
t = t || {};
|
6268
6268
|
const i = {};
|
6269
6269
|
function n(p, l, u, f) {
|
@@ -6320,17 +6320,17 @@ function lt(e, t) {
|
|
6320
6320
|
socketPath: o,
|
6321
6321
|
responseEncoding: o,
|
6322
6322
|
validateStatus: s,
|
6323
|
-
headers: (p, l, u) => r(
|
6323
|
+
headers: (p, l, u) => r(vr(p), vr(l), u, !0)
|
6324
6324
|
};
|
6325
6325
|
return h.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
6326
6326
|
const u = c[l] || r, f = u(e[l], t[l], l);
|
6327
6327
|
h.isUndefined(f) && u !== s || (i[l] = f);
|
6328
6328
|
}), i;
|
6329
6329
|
}
|
6330
|
-
const
|
6331
|
-
const t =
|
6330
|
+
const xa = (e) => {
|
6331
|
+
const t = pt({}, e);
|
6332
6332
|
let { data: i, withXSRFToken: n, xsrfHeaderName: r, xsrfCookieName: a, headers: o, auth: s } = t;
|
6333
|
-
t.headers = o = Ie.from(o), t.url =
|
6333
|
+
t.headers = o = Ie.from(o), t.url = la(ma(t.baseURL, t.url), e.params, e.paramsSerializer), s && o.set(
|
6334
6334
|
"Authorization",
|
6335
6335
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
6336
6336
|
);
|
@@ -6343,14 +6343,14 @@ const pa = (e) => {
|
|
6343
6343
|
o.setContentType([p || "multipart/form-data", ...l].join("; "));
|
6344
6344
|
}
|
6345
6345
|
}
|
6346
|
-
if (je.hasStandardBrowserEnv && (n && h.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
6347
|
-
const p = r && a &&
|
6346
|
+
if (je.hasStandardBrowserEnv && (n && h.isFunction(n) && (n = n(t)), n || n !== !1 && fl(t.url))) {
|
6347
|
+
const p = r && a && ml.read(a);
|
6348
6348
|
p && o.set(r, p);
|
6349
6349
|
}
|
6350
6350
|
return t;
|
6351
|
-
},
|
6351
|
+
}, gl = typeof XMLHttpRequest < "u", hl = gl && function(e) {
|
6352
6352
|
return new Promise(function(i, n) {
|
6353
|
-
const r =
|
6353
|
+
const r = xa(e);
|
6354
6354
|
let a = r.data;
|
6355
6355
|
const o = Ie.from(r.headers).normalize();
|
6356
6356
|
let { responseType: s, onUploadProgress: c, onDownloadProgress: p } = r, l, u, f, m, v;
|
@@ -6372,7 +6372,7 @@ const pa = (e) => {
|
|
6372
6372
|
config: e,
|
6373
6373
|
request: w
|
6374
6374
|
};
|
6375
|
-
|
6375
|
+
fa(function(N) {
|
6376
6376
|
i(N), g();
|
6377
6377
|
}, function(N) {
|
6378
6378
|
n(N), g();
|
@@ -6386,7 +6386,7 @@ const pa = (e) => {
|
|
6386
6386
|
n(new Z("Network Error", Z.ERR_NETWORK, e, w)), w = null;
|
6387
6387
|
}, w.ontimeout = function() {
|
6388
6388
|
let T = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
6389
|
-
const b = r.transitional ||
|
6389
|
+
const b = r.transitional || pa;
|
6390
6390
|
r.timeoutErrorMessage && (T = r.timeoutErrorMessage), n(new Z(
|
6391
6391
|
T,
|
6392
6392
|
b.clarifyTimeoutError ? Z.ETIMEDOUT : Z.ECONNABORTED,
|
@@ -6396,16 +6396,16 @@ const pa = (e) => {
|
|
6396
6396
|
}, a === void 0 && o.setContentType(null), "setRequestHeader" in w && h.forEach(o.toJSON(), function(T, b) {
|
6397
6397
|
w.setRequestHeader(b, T);
|
6398
6398
|
}), h.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), s && s !== "json" && (w.responseType = r.responseType), p && ([f, v] = dn(p, !0), w.addEventListener("progress", f)), c && w.upload && ([u, m] = dn(c), w.upload.addEventListener("progress", u), w.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (l = (_) => {
|
6399
|
-
w && (n(!_ || _.type ? new
|
6399
|
+
w && (n(!_ || _.type ? new Rt(null, e, w) : _), w.abort(), w = null);
|
6400
6400
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
6401
|
-
const k =
|
6401
|
+
const k = pl(r.url);
|
6402
6402
|
if (k && je.protocols.indexOf(k) === -1) {
|
6403
6403
|
n(new Z("Unsupported protocol " + k + ":", Z.ERR_BAD_REQUEST, e));
|
6404
6404
|
return;
|
6405
6405
|
}
|
6406
6406
|
w.send(a || null);
|
6407
6407
|
});
|
6408
|
-
},
|
6408
|
+
}, yl = (e, t) => {
|
6409
6409
|
const { length: i } = e = e ? e.filter(Boolean) : [];
|
6410
6410
|
if (t || i) {
|
6411
6411
|
let n = new AbortController(), r;
|
@@ -6413,7 +6413,7 @@ const pa = (e) => {
|
|
6413
6413
|
if (!r) {
|
6414
6414
|
r = !0, s();
|
6415
6415
|
const l = p instanceof Error ? p : this.reason;
|
6416
|
-
n.abort(l instanceof Z ? l : new
|
6416
|
+
n.abort(l instanceof Z ? l : new Rt(l instanceof Error ? l.message : l));
|
6417
6417
|
}
|
6418
6418
|
};
|
6419
6419
|
let o = t && setTimeout(() => {
|
@@ -6428,7 +6428,7 @@ const pa = (e) => {
|
|
6428
6428
|
const { signal: c } = n;
|
6429
6429
|
return c.unsubscribe = () => h.asap(s), c;
|
6430
6430
|
}
|
6431
|
-
},
|
6431
|
+
}, bl = function* (e, t) {
|
6432
6432
|
let i = e.byteLength;
|
6433
6433
|
if (i < t) {
|
6434
6434
|
yield e;
|
@@ -6437,10 +6437,10 @@ const pa = (e) => {
|
|
6437
6437
|
let n = 0, r;
|
6438
6438
|
for (; n < i; )
|
6439
6439
|
r = n + t, yield e.slice(n, r), n = r;
|
6440
|
-
},
|
6441
|
-
for await (const i of
|
6442
|
-
yield*
|
6443
|
-
},
|
6440
|
+
}, wl = async function* (e, t) {
|
6441
|
+
for await (const i of El(e))
|
6442
|
+
yield* bl(i, t);
|
6443
|
+
}, El = async function* (e) {
|
6444
6444
|
if (e[Symbol.asyncIterator]) {
|
6445
6445
|
yield* e;
|
6446
6446
|
return;
|
@@ -6456,8 +6456,8 @@ const pa = (e) => {
|
|
6456
6456
|
} finally {
|
6457
6457
|
await t.cancel();
|
6458
6458
|
}
|
6459
|
-
},
|
6460
|
-
const r =
|
6459
|
+
}, gr = (e, t, i, n) => {
|
6460
|
+
const r = wl(e, t);
|
6461
6461
|
let a = 0, o, s = (c) => {
|
6462
6462
|
o || (o = !0, n && n(c));
|
6463
6463
|
};
|
@@ -6485,13 +6485,13 @@ const pa = (e) => {
|
|
6485
6485
|
}, {
|
6486
6486
|
highWaterMark: 2
|
6487
6487
|
});
|
6488
|
-
}, hn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
6488
|
+
}, hn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", va = hn && typeof ReadableStream == "function", Sl = hn && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ga = (e, ...t) => {
|
6489
6489
|
try {
|
6490
6490
|
return !!e(...t);
|
6491
6491
|
} catch {
|
6492
6492
|
return !1;
|
6493
6493
|
}
|
6494
|
-
},
|
6494
|
+
}, Rl = va && ga(() => {
|
6495
6495
|
let e = !1;
|
6496
6496
|
const t = new Request(je.origin, {
|
6497
6497
|
body: new ReadableStream(),
|
@@ -6501,7 +6501,7 @@ const pa = (e) => {
|
|
6501
6501
|
}
|
6502
6502
|
}).headers.has("Content-Type");
|
6503
6503
|
return e && !t;
|
6504
|
-
}),
|
6504
|
+
}), hr = 64 * 1024, Qn = va && ga(() => h.isReadableStream(new Response("").body)), fn = {
|
6505
6505
|
stream: Qn && ((e) => e.body)
|
6506
6506
|
};
|
6507
6507
|
hn && ((e) => {
|
@@ -6511,7 +6511,7 @@ hn && ((e) => {
|
|
6511
6511
|
});
|
6512
6512
|
});
|
6513
6513
|
})(new Response());
|
6514
|
-
const
|
6514
|
+
const Tl = async (e) => {
|
6515
6515
|
if (e == null)
|
6516
6516
|
return 0;
|
6517
6517
|
if (h.isBlob(e))
|
@@ -6524,11 +6524,11 @@ const Sl = async (e) => {
|
|
6524
6524
|
if (h.isArrayBufferView(e) || h.isArrayBuffer(e))
|
6525
6525
|
return e.byteLength;
|
6526
6526
|
if (h.isURLSearchParams(e) && (e = e + ""), h.isString(e))
|
6527
|
-
return (await
|
6528
|
-
},
|
6527
|
+
return (await Sl(e)).byteLength;
|
6528
|
+
}, kl = async (e, t) => {
|
6529
6529
|
const i = h.toFiniteNumber(e.getContentLength());
|
6530
|
-
return i ??
|
6531
|
-
},
|
6530
|
+
return i ?? Tl(t);
|
6531
|
+
}, Ol = hn && (async (e) => {
|
6532
6532
|
let {
|
6533
6533
|
url: t,
|
6534
6534
|
method: i,
|
@@ -6542,26 +6542,26 @@ const Sl = async (e) => {
|
|
6542
6542
|
headers: l,
|
6543
6543
|
withCredentials: u = "same-origin",
|
6544
6544
|
fetchOptions: f
|
6545
|
-
} =
|
6545
|
+
} = xa(e);
|
6546
6546
|
p = p ? (p + "").toLowerCase() : "text";
|
6547
|
-
let m =
|
6547
|
+
let m = yl([r, a && a.toAbortSignal()], o), v;
|
6548
6548
|
const g = m && m.unsubscribe && (() => {
|
6549
6549
|
m.unsubscribe();
|
6550
6550
|
});
|
6551
6551
|
let w;
|
6552
6552
|
try {
|
6553
|
-
if (c &&
|
6553
|
+
if (c && Rl && i !== "get" && i !== "head" && (w = await kl(l, n)) !== 0) {
|
6554
6554
|
let b = new Request(t, {
|
6555
6555
|
method: "POST",
|
6556
6556
|
body: n,
|
6557
6557
|
duplex: "half"
|
6558
6558
|
}), D;
|
6559
6559
|
if (h.isFormData(n) && (D = b.headers.get("content-type")) && l.setContentType(D), b.body) {
|
6560
|
-
const [N, j] =
|
6560
|
+
const [N, j] = mr(
|
6561
6561
|
w,
|
6562
|
-
dn(
|
6562
|
+
dn(xr(c))
|
6563
6563
|
);
|
6564
|
-
n =
|
6564
|
+
n = gr(b.body, hr, N, j);
|
6565
6565
|
}
|
6566
6566
|
}
|
6567
6567
|
h.isString(u) || (u = u ? "include" : "omit");
|
@@ -6582,12 +6582,12 @@ const Sl = async (e) => {
|
|
6582
6582
|
["status", "statusText", "headers"].forEach((G) => {
|
6583
6583
|
b[G] = k[G];
|
6584
6584
|
});
|
6585
|
-
const D = h.toFiniteNumber(k.headers.get("content-length")), [N, j] = s &&
|
6585
|
+
const D = h.toFiniteNumber(k.headers.get("content-length")), [N, j] = s && mr(
|
6586
6586
|
D,
|
6587
|
-
dn(
|
6587
|
+
dn(xr(s), !0)
|
6588
6588
|
) || [];
|
6589
6589
|
k = new Response(
|
6590
|
-
|
6590
|
+
gr(k.body, hr, N, () => {
|
6591
6591
|
j && j(), g && g();
|
6592
6592
|
}),
|
6593
6593
|
b
|
@@ -6596,7 +6596,7 @@ const Sl = async (e) => {
|
|
6596
6596
|
p = p || "text";
|
6597
6597
|
let T = await fn[h.findKey(fn, p) || "text"](k, e);
|
6598
6598
|
return !_ && g && g(), await new Promise((b, D) => {
|
6599
|
-
|
6599
|
+
fa(b, D, {
|
6600
6600
|
data: T,
|
6601
6601
|
headers: Ie.from(k.headers),
|
6602
6602
|
status: k.status,
|
@@ -6614,9 +6614,9 @@ const Sl = async (e) => {
|
|
6614
6614
|
) : Z.from(x, x && x.code, e, v);
|
6615
6615
|
}
|
6616
6616
|
}), ei = {
|
6617
|
-
http:
|
6618
|
-
xhr:
|
6619
|
-
fetch:
|
6617
|
+
http: qc,
|
6618
|
+
xhr: hl,
|
6619
|
+
fetch: Ol
|
6620
6620
|
};
|
6621
6621
|
h.forEach(ei, (e, t) => {
|
6622
6622
|
if (e) {
|
@@ -6627,7 +6627,7 @@ h.forEach(ei, (e, t) => {
|
|
6627
6627
|
Object.defineProperty(e, "adapterName", { value: t });
|
6628
6628
|
}
|
6629
6629
|
});
|
6630
|
-
const
|
6630
|
+
const yr = (e) => `- ${e}`, _l = (e) => h.isFunction(e) || e === null || e === !1, ha = {
|
6631
6631
|
getAdapter: (e) => {
|
6632
6632
|
e = h.isArray(e) ? e : [e];
|
6633
6633
|
const { length: t } = e;
|
@@ -6636,7 +6636,7 @@ const gr = (e) => `- ${e}`, kl = (e) => h.isFunction(e) || e === null || e === !
|
|
6636
6636
|
for (let a = 0; a < t; a++) {
|
6637
6637
|
i = e[a];
|
6638
6638
|
let o;
|
6639
|
-
if (n = i, !
|
6639
|
+
if (n = i, !_l(i) && (n = ei[(o = String(i)).toLowerCase()], n === void 0))
|
6640
6640
|
throw new Z(`Unknown adapter '${o}'`);
|
6641
6641
|
if (n)
|
6642
6642
|
break;
|
@@ -6647,8 +6647,8 @@ const gr = (e) => `- ${e}`, kl = (e) => h.isFunction(e) || e === null || e === !
|
|
6647
6647
|
([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
6648
6648
|
);
|
6649
6649
|
let o = t ? a.length > 1 ? `since :
|
6650
|
-
` + a.map(
|
6651
|
-
`) : " " +
|
6650
|
+
` + a.map(yr).join(`
|
6651
|
+
`) : " " + yr(a[0]) : "as no adapter specified";
|
6652
6652
|
throw new Z(
|
6653
6653
|
"There is no suitable adapter to dispatch the request " + o,
|
6654
6654
|
"ERR_NOT_SUPPORT"
|
@@ -6660,36 +6660,36 @@ const gr = (e) => `- ${e}`, kl = (e) => h.isFunction(e) || e === null || e === !
|
|
6660
6660
|
};
|
6661
6661
|
function Bn(e) {
|
6662
6662
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
6663
|
-
throw new
|
6663
|
+
throw new Rt(null, e);
|
6664
6664
|
}
|
6665
|
-
function
|
6665
|
+
function br(e) {
|
6666
6666
|
return Bn(e), e.headers = Ie.from(e.headers), e.data = In.call(
|
6667
6667
|
e,
|
6668
6668
|
e.transformRequest
|
6669
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
6669
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ha.getAdapter(e.adapter || Ut.adapter)(e).then(function(n) {
|
6670
6670
|
return Bn(e), n.data = In.call(
|
6671
6671
|
e,
|
6672
6672
|
e.transformResponse,
|
6673
6673
|
n
|
6674
6674
|
), n.headers = Ie.from(n.headers), n;
|
6675
6675
|
}, function(n) {
|
6676
|
-
return
|
6676
|
+
return da(n) || (Bn(e), n && n.response && (n.response.data = In.call(
|
6677
6677
|
e,
|
6678
6678
|
e.transformResponse,
|
6679
6679
|
n.response
|
6680
6680
|
), n.response.headers = Ie.from(n.response.headers))), Promise.reject(n);
|
6681
6681
|
});
|
6682
6682
|
}
|
6683
|
-
const
|
6683
|
+
const ya = "1.7.9", yn = {};
|
6684
6684
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
6685
6685
|
yn[e] = function(n) {
|
6686
6686
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
6687
6687
|
};
|
6688
6688
|
});
|
6689
|
-
const
|
6689
|
+
const wr = {};
|
6690
6690
|
yn.transitional = function(t, i, n) {
|
6691
6691
|
function r(a, o) {
|
6692
|
-
return "[Axios v" +
|
6692
|
+
return "[Axios v" + ya + "] Transitional option '" + a + "'" + o + (n ? ". " + n : "");
|
6693
6693
|
}
|
6694
6694
|
return (a, o, s) => {
|
6695
6695
|
if (t === !1)
|
@@ -6697,7 +6697,7 @@ yn.transitional = function(t, i, n) {
|
|
6697
6697
|
r(o, " has been removed" + (i ? " in " + i : "")),
|
6698
6698
|
Z.ERR_DEPRECATED
|
6699
6699
|
);
|
6700
|
-
return i && !
|
6700
|
+
return i && !wr[o] && (wr[o] = !0, console.warn(
|
6701
6701
|
r(
|
6702
6702
|
o,
|
6703
6703
|
" has been deprecated since v" + i + " and will be removed in the near future"
|
@@ -6708,7 +6708,7 @@ yn.transitional = function(t, i, n) {
|
|
6708
6708
|
yn.spelling = function(t) {
|
6709
6709
|
return (i, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
6710
6710
|
};
|
6711
|
-
function
|
6711
|
+
function Al(e, t, i) {
|
6712
6712
|
if (typeof e != "object")
|
6713
6713
|
throw new Z("options must be an object", Z.ERR_BAD_OPTION_VALUE);
|
6714
6714
|
const n = Object.keys(e);
|
@@ -6726,14 +6726,14 @@ function Ol(e, t, i) {
|
|
6726
6726
|
}
|
6727
6727
|
}
|
6728
6728
|
const sn = {
|
6729
|
-
assertOptions:
|
6729
|
+
assertOptions: Al,
|
6730
6730
|
validators: yn
|
6731
6731
|
}, We = sn.validators;
|
6732
|
-
class
|
6732
|
+
class lt {
|
6733
6733
|
constructor(t) {
|
6734
6734
|
this.defaults = t, this.interceptors = {
|
6735
|
-
request: new
|
6736
|
-
response: new
|
6735
|
+
request: new dr(),
|
6736
|
+
response: new dr()
|
6737
6737
|
};
|
6738
6738
|
}
|
6739
6739
|
/**
|
@@ -6762,7 +6762,7 @@ class ct {
|
|
6762
6762
|
}
|
6763
6763
|
}
|
6764
6764
|
_request(t, i) {
|
6765
|
-
typeof t == "string" ? (i = i || {}, i.url = t) : i = t || {}, i =
|
6765
|
+
typeof t == "string" ? (i = i || {}, i.url = t) : i = t || {}, i = pt(this.defaults, i);
|
6766
6766
|
const { transitional: n, paramsSerializer: r, headers: a } = i;
|
6767
6767
|
n !== void 0 && sn.assertOptions(n, {
|
6768
6768
|
silentJSONParsing: We.transitional(We.boolean),
|
@@ -6798,7 +6798,7 @@ class ct {
|
|
6798
6798
|
});
|
6799
6799
|
let l, u = 0, f;
|
6800
6800
|
if (!c) {
|
6801
|
-
const v = [
|
6801
|
+
const v = [br.bind(this), void 0];
|
6802
6802
|
for (v.unshift.apply(v, s), v.push.apply(v, p), f = v.length, l = Promise.resolve(i); u < f; )
|
6803
6803
|
l = l.then(v[u++], v[u++]);
|
6804
6804
|
return l;
|
@@ -6815,7 +6815,7 @@ class ct {
|
|
6815
6815
|
}
|
6816
6816
|
}
|
6817
6817
|
try {
|
6818
|
-
l =
|
6818
|
+
l = br.call(this, m);
|
6819
6819
|
} catch (v) {
|
6820
6820
|
return Promise.reject(v);
|
6821
6821
|
}
|
@@ -6824,14 +6824,14 @@ class ct {
|
|
6824
6824
|
return l;
|
6825
6825
|
}
|
6826
6826
|
getUri(t) {
|
6827
|
-
t =
|
6828
|
-
const i =
|
6829
|
-
return
|
6827
|
+
t = pt(this.defaults, t);
|
6828
|
+
const i = ma(t.baseURL, t.url);
|
6829
|
+
return la(i, t.params, t.paramsSerializer);
|
6830
6830
|
}
|
6831
6831
|
}
|
6832
6832
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
6833
|
-
|
6834
|
-
return this.request(
|
6833
|
+
lt.prototype[t] = function(i, n) {
|
6834
|
+
return this.request(pt(n || {}, {
|
6835
6835
|
method: t,
|
6836
6836
|
url: i,
|
6837
6837
|
data: (n || {}).data
|
@@ -6841,7 +6841,7 @@ h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
6841
6841
|
h.forEach(["post", "put", "patch"], function(t) {
|
6842
6842
|
function i(n) {
|
6843
6843
|
return function(a, o, s) {
|
6844
|
-
return this.request(
|
6844
|
+
return this.request(pt(s || {}, {
|
6845
6845
|
method: t,
|
6846
6846
|
headers: n ? {
|
6847
6847
|
"Content-Type": "multipart/form-data"
|
@@ -6851,9 +6851,9 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
6851
6851
|
}));
|
6852
6852
|
};
|
6853
6853
|
}
|
6854
|
-
|
6854
|
+
lt.prototype[t] = i(), lt.prototype[t + "Form"] = i(!0);
|
6855
6855
|
});
|
6856
|
-
class
|
6856
|
+
class fi {
|
6857
6857
|
constructor(t) {
|
6858
6858
|
if (typeof t != "function")
|
6859
6859
|
throw new TypeError("executor must be a function.");
|
@@ -6877,7 +6877,7 @@ class di {
|
|
6877
6877
|
n.unsubscribe(a);
|
6878
6878
|
}, o;
|
6879
6879
|
}, t(function(a, o, s) {
|
6880
|
-
n.reason || (n.reason = new
|
6880
|
+
n.reason || (n.reason = new Rt(a, o, s), i(n.reason));
|
6881
6881
|
});
|
6882
6882
|
}
|
6883
6883
|
/**
|
@@ -6919,19 +6919,19 @@ class di {
|
|
6919
6919
|
static source() {
|
6920
6920
|
let t;
|
6921
6921
|
return {
|
6922
|
-
token: new
|
6922
|
+
token: new fi(function(r) {
|
6923
6923
|
t = r;
|
6924
6924
|
}),
|
6925
6925
|
cancel: t
|
6926
6926
|
};
|
6927
6927
|
}
|
6928
6928
|
}
|
6929
|
-
function
|
6929
|
+
function Cl(e) {
|
6930
6930
|
return function(i) {
|
6931
6931
|
return e.apply(null, i);
|
6932
6932
|
};
|
6933
6933
|
}
|
6934
|
-
function
|
6934
|
+
function Dl(e) {
|
6935
6935
|
return h.isObject(e) && e.isAxiosError === !0;
|
6936
6936
|
}
|
6937
6937
|
const ti = {
|
@@ -7002,33 +7002,33 @@ const ti = {
|
|
7002
7002
|
Object.entries(ti).forEach(([e, t]) => {
|
7003
7003
|
ti[t] = e;
|
7004
7004
|
});
|
7005
|
-
function
|
7006
|
-
const t = new
|
7007
|
-
return h.extend(i,
|
7008
|
-
return
|
7005
|
+
function ba(e) {
|
7006
|
+
const t = new lt(e), i = Xr(lt.prototype.request, t);
|
7007
|
+
return h.extend(i, lt.prototype, t, { allOwnKeys: !0 }), h.extend(i, t, null, { allOwnKeys: !0 }), i.create = function(r) {
|
7008
|
+
return ba(pt(e, r));
|
7009
7009
|
}, i;
|
7010
7010
|
}
|
7011
|
-
const De =
|
7012
|
-
De.Axios =
|
7013
|
-
De.CanceledError =
|
7014
|
-
De.CancelToken =
|
7015
|
-
De.isCancel =
|
7016
|
-
De.VERSION =
|
7011
|
+
const De = ba(Ut);
|
7012
|
+
De.Axios = lt;
|
7013
|
+
De.CanceledError = Rt;
|
7014
|
+
De.CancelToken = fi;
|
7015
|
+
De.isCancel = da;
|
7016
|
+
De.VERSION = ya;
|
7017
7017
|
De.toFormData = gn;
|
7018
7018
|
De.AxiosError = Z;
|
7019
7019
|
De.Cancel = De.CanceledError;
|
7020
7020
|
De.all = function(t) {
|
7021
7021
|
return Promise.all(t);
|
7022
7022
|
};
|
7023
|
-
De.spread =
|
7024
|
-
De.isAxiosError =
|
7025
|
-
De.mergeConfig =
|
7023
|
+
De.spread = Cl;
|
7024
|
+
De.isAxiosError = Dl;
|
7025
|
+
De.mergeConfig = pt;
|
7026
7026
|
De.AxiosHeaders = Ie;
|
7027
|
-
De.formToJSON = (e) =>
|
7028
|
-
De.getAdapter =
|
7027
|
+
De.formToJSON = (e) => ua(h.isHTMLForm(e) ? new FormData(e) : e);
|
7028
|
+
De.getAdapter = ha.getAdapter;
|
7029
7029
|
De.HttpStatusCode = ti;
|
7030
7030
|
De.default = De;
|
7031
|
-
var
|
7031
|
+
var Qt = { exports: {} }, zn = {};
|
7032
7032
|
/**
|
7033
7033
|
* @license React
|
7034
7034
|
* use-sync-external-store-shim.production.min.js
|
@@ -7038,11 +7038,11 @@ var Zt = { exports: {} }, zn = {};
|
|
7038
7038
|
* This source code is licensed under the MIT license found in the
|
7039
7039
|
* LICENSE file in the root directory of this source tree.
|
7040
7040
|
*/
|
7041
|
-
var
|
7042
|
-
function
|
7043
|
-
if (
|
7044
|
-
|
7045
|
-
var e =
|
7041
|
+
var Er;
|
7042
|
+
function jl() {
|
7043
|
+
if (Er) return zn;
|
7044
|
+
Er = 1;
|
7045
|
+
var e = ye;
|
7046
7046
|
function t(u, f) {
|
7047
7047
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
7048
7048
|
}
|
@@ -7083,11 +7083,11 @@ var Ln = {};
|
|
7083
7083
|
* This source code is licensed under the MIT license found in the
|
7084
7084
|
* LICENSE file in the root directory of this source tree.
|
7085
7085
|
*/
|
7086
|
-
var
|
7087
|
-
function
|
7088
|
-
return
|
7086
|
+
var Sr;
|
7087
|
+
function Fl() {
|
7088
|
+
return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && function() {
|
7089
7089
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
7090
|
-
var e =
|
7090
|
+
var e = ye, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
7091
7091
|
function i(_) {
|
7092
7092
|
{
|
7093
7093
|
for (var T = arguments.length, b = new Array(T > 1 ? T - 1 : 0), D = 1; D < T; D++)
|
@@ -7154,11 +7154,11 @@ function Dl() {
|
|
7154
7154
|
Ln.useSyncExternalStore = k, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
7155
7155
|
}()), Ln;
|
7156
7156
|
}
|
7157
|
-
var
|
7158
|
-
function
|
7159
|
-
return
|
7157
|
+
var Rr;
|
7158
|
+
function Pl() {
|
7159
|
+
return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? Qt.exports = jl() : Qt.exports = Fl()), Qt.exports;
|
7160
7160
|
}
|
7161
|
-
var
|
7161
|
+
var wa = Pl();
|
7162
7162
|
const Qe = () => {
|
7163
7163
|
}, Ce = (
|
7164
7164
|
/*#__NOINLINE__*/
|
@@ -7166,29 +7166,29 @@ const Qe = () => {
|
|
7166
7166
|
), Mn = Object, $ = (e) => e === Ce, Le = (e) => typeof e == "function", Me = (e, t) => ({
|
7167
7167
|
...e,
|
7168
7168
|
...t
|
7169
|
-
}),
|
7170
|
-
let
|
7171
|
-
const
|
7169
|
+
}), Il = (e) => Le(e.then), en = /* @__PURE__ */ new WeakMap();
|
7170
|
+
let Bl = 0;
|
7171
|
+
const Nt = (e) => {
|
7172
7172
|
const t = typeof e, i = e && e.constructor, n = i == Date;
|
7173
7173
|
let r, a;
|
7174
7174
|
if (Mn(e) === e && !n && i != RegExp) {
|
7175
|
-
if (r =
|
7176
|
-
if (r = ++
|
7175
|
+
if (r = en.get(e), r) return r;
|
7176
|
+
if (r = ++Bl + "~", en.set(e, r), i == Array) {
|
7177
7177
|
for (r = "@", a = 0; a < e.length; a++)
|
7178
|
-
r +=
|
7179
|
-
|
7178
|
+
r += Nt(e[a]) + ",";
|
7179
|
+
en.set(e, r);
|
7180
7180
|
}
|
7181
7181
|
if (i == Mn) {
|
7182
7182
|
r = "#";
|
7183
7183
|
const o = Mn.keys(e).sort();
|
7184
7184
|
for (; !$(a = o.pop()); )
|
7185
|
-
$(e[a]) || (r += a + ":" +
|
7186
|
-
|
7185
|
+
$(e[a]) || (r += a + ":" + Nt(e[a]) + ",");
|
7186
|
+
en.set(e, r);
|
7187
7187
|
}
|
7188
7188
|
} else
|
7189
7189
|
r = n ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
7190
7190
|
return r;
|
7191
|
-
}, Ue = /* @__PURE__ */ new WeakMap(), $n = {},
|
7191
|
+
}, Ue = /* @__PURE__ */ new WeakMap(), $n = {}, tn = {}, mi = "undefined", bn = typeof window != mi, ni = typeof document != mi, zl = () => bn && typeof window.requestAnimationFrame != mi, xi = (e, t) => {
|
7192
7192
|
const i = Ue.get(e);
|
7193
7193
|
return [
|
7194
7194
|
// Getter
|
@@ -7197,28 +7197,28 @@ const $t = (e) => {
|
|
7197
7197
|
(n) => {
|
7198
7198
|
if (!$(t)) {
|
7199
7199
|
const r = e.get(t);
|
7200
|
-
t in
|
7200
|
+
t in tn || (tn[t] = r), i[5](t, Me(r, n), r || $n);
|
7201
7201
|
}
|
7202
7202
|
},
|
7203
7203
|
// Subscriber
|
7204
7204
|
i[6],
|
7205
7205
|
// Get server cache snapshot
|
7206
|
-
() => !$(t) && t in
|
7206
|
+
() => !$(t) && t in tn ? tn[t] : !$(t) && e.get(t) || $n
|
7207
7207
|
];
|
7208
7208
|
};
|
7209
7209
|
let ii = !0;
|
7210
|
-
const
|
7210
|
+
const Ll = () => ii, [ri, ai] = bn && window.addEventListener ? [
|
7211
7211
|
window.addEventListener.bind(window),
|
7212
7212
|
window.removeEventListener.bind(window)
|
7213
7213
|
] : [
|
7214
7214
|
Qe,
|
7215
7215
|
Qe
|
7216
|
-
],
|
7216
|
+
], Ml = () => {
|
7217
7217
|
const e = ni && document.visibilityState;
|
7218
7218
|
return $(e) || e !== "hidden";
|
7219
|
-
},
|
7219
|
+
}, $l = (e) => (ni && document.addEventListener("visibilitychange", e), ri("focus", e), () => {
|
7220
7220
|
ni && document.removeEventListener("visibilitychange", e), ai("focus", e);
|
7221
|
-
}),
|
7221
|
+
}), Nl = (e) => {
|
7222
7222
|
const t = () => {
|
7223
7223
|
ii = !0, e();
|
7224
7224
|
}, i = () => {
|
@@ -7227,16 +7227,16 @@ const Bl = () => ii, [ri, ai] = bn && window.addEventListener ? [
|
|
7227
7227
|
return ri("online", t), ri("offline", i), () => {
|
7228
7228
|
ai("online", t), ai("offline", i);
|
7229
7229
|
};
|
7230
|
-
},
|
7231
|
-
isOnline:
|
7232
|
-
isVisible:
|
7233
|
-
},
|
7234
|
-
initFocus:
|
7235
|
-
initReconnect:
|
7236
|
-
},
|
7230
|
+
}, ql = {
|
7231
|
+
isOnline: Ll,
|
7232
|
+
isVisible: Ml
|
7233
|
+
}, Wl = {
|
7234
|
+
initFocus: $l,
|
7235
|
+
initReconnect: Nl
|
7236
|
+
}, qt = !ye.useId, ut = !bn || "Deno" in window, Ea = (e) => zl() ? window.requestAnimationFrame(e) : setTimeout(e, 1), et = ut ? Lt : Ka, Nn = typeof navigator < "u" && navigator.connection, Tr = !ut && Nn && ([
|
7237
7237
|
"slow-2g",
|
7238
7238
|
"2g"
|
7239
|
-
].includes(Nn.effectiveType) || Nn.saveData),
|
7239
|
+
].includes(Nn.effectiveType) || Nn.saveData), Vt = (e) => {
|
7240
7240
|
if (Le(e))
|
7241
7241
|
try {
|
7242
7242
|
e = e();
|
@@ -7244,21 +7244,21 @@ const Bl = () => ii, [ri, ai] = bn && window.addEventListener ? [
|
|
7244
7244
|
e = "";
|
7245
7245
|
}
|
7246
7246
|
const t = e;
|
7247
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
7247
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Nt(e) : "", [
|
7248
7248
|
e,
|
7249
7249
|
t
|
7250
7250
|
];
|
7251
7251
|
};
|
7252
|
-
let
|
7253
|
-
const
|
7252
|
+
let Ul = 0;
|
7253
|
+
const bt = () => ++Ul, Sa = 0, Ra = 1, Ta = 2, Vl = 3;
|
7254
7254
|
var Ve = {
|
7255
7255
|
__proto__: null,
|
7256
|
-
ERROR_REVALIDATE_EVENT:
|
7257
|
-
FOCUS_EVENT:
|
7258
|
-
MUTATE_EVENT:
|
7259
|
-
RECONNECT_EVENT:
|
7256
|
+
ERROR_REVALIDATE_EVENT: Vl,
|
7257
|
+
FOCUS_EVENT: Sa,
|
7258
|
+
MUTATE_EVENT: Ta,
|
7259
|
+
RECONNECT_EVENT: Ra
|
7260
7260
|
};
|
7261
|
-
async function
|
7261
|
+
async function vi(...e) {
|
7262
7262
|
const [t, i, n, r] = e, a = Me({
|
7263
7263
|
populateCache: !0,
|
7264
7264
|
throwOnError: !0
|
@@ -7278,16 +7278,16 @@ async function xi(...e) {
|
|
7278
7278
|
}
|
7279
7279
|
return u(i);
|
7280
7280
|
async function u(f) {
|
7281
|
-
const [m] =
|
7281
|
+
const [m] = Vt(f);
|
7282
7282
|
if (!m) return;
|
7283
|
-
const [v, g] =
|
7283
|
+
const [v, g] = xi(t, m), [w, x, k, _] = Ue.get(t), T = () => {
|
7284
7284
|
const te = w[m];
|
7285
|
-
return (Le(a.revalidate) ? a.revalidate(v().data, f) : a.revalidate !== !1) && (delete k[m], delete _[m], te && te[0]) ? te[0](
|
7285
|
+
return (Le(a.revalidate) ? a.revalidate(v().data, f) : a.revalidate !== !1) && (delete k[m], delete _[m], te && te[0]) ? te[0](Ta).then(() => v().data) : v().data;
|
7286
7286
|
};
|
7287
7287
|
if (e.length < 3)
|
7288
7288
|
return T();
|
7289
7289
|
let b = n, D;
|
7290
|
-
const N =
|
7290
|
+
const N = bt();
|
7291
7291
|
x[m] = [
|
7292
7292
|
N,
|
7293
7293
|
0
|
@@ -7302,7 +7302,7 @@ async function xi(...e) {
|
|
7302
7302
|
} catch (te) {
|
7303
7303
|
D = te;
|
7304
7304
|
}
|
7305
|
-
if (b &&
|
7305
|
+
if (b && Il(b))
|
7306
7306
|
if (b = await b.catch((te) => {
|
7307
7307
|
D = te;
|
7308
7308
|
}), N !== x[m][0]) {
|
@@ -7326,7 +7326,7 @@ async function xi(...e) {
|
|
7326
7326
|
error: Ce,
|
7327
7327
|
_c: Ce
|
7328
7328
|
});
|
7329
|
-
if (x[m][1] =
|
7329
|
+
if (x[m][1] = bt(), Promise.resolve(T()).then(() => {
|
7330
7330
|
g({
|
7331
7331
|
_c: Ce
|
7332
7332
|
});
|
@@ -7337,12 +7337,12 @@ async function xi(...e) {
|
|
7337
7337
|
return b;
|
7338
7338
|
}
|
7339
7339
|
}
|
7340
|
-
const
|
7340
|
+
const kr = (e, t) => {
|
7341
7341
|
for (const i in e)
|
7342
7342
|
e[i][0] && e[i][0](t);
|
7343
|
-
},
|
7343
|
+
}, Hl = (e, t) => {
|
7344
7344
|
if (!Ue.has(e)) {
|
7345
|
-
const i = Me(
|
7345
|
+
const i = Me(Wl, t), n = {}, r = vi.bind(Ce, e);
|
7346
7346
|
let a = Qe;
|
7347
7347
|
const o = {}, s = (l, u) => {
|
7348
7348
|
const f = o[l] || [];
|
@@ -7362,8 +7362,8 @@ const Rr = (e, t) => {
|
|
7362
7362
|
r,
|
7363
7363
|
c,
|
7364
7364
|
s
|
7365
|
-
]), !
|
7366
|
-
const l = i.initFocus(setTimeout.bind(Ce,
|
7365
|
+
]), !ut)) {
|
7366
|
+
const l = i.initFocus(setTimeout.bind(Ce, kr.bind(Ce, n, Sa))), u = i.initReconnect(setTimeout.bind(Ce, kr.bind(Ce, n, Ra)));
|
7367
7367
|
a = () => {
|
7368
7368
|
l && l(), u && u(), Ue.delete(e);
|
7369
7369
|
};
|
@@ -7380,16 +7380,16 @@ const Rr = (e, t) => {
|
|
7380
7380
|
e,
|
7381
7381
|
Ue.get(e)[4]
|
7382
7382
|
];
|
7383
|
-
},
|
7383
|
+
}, Gl = (e, t, i, n, r) => {
|
7384
7384
|
const a = i.errorRetryCount, o = r.retryCount, s = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * i.errorRetryInterval;
|
7385
7385
|
!$(a) && o > a || setTimeout(n, s, r);
|
7386
|
-
},
|
7386
|
+
}, Yl = (e, t) => Nt(e) == Nt(t), [ka, Kl] = Hl(/* @__PURE__ */ new Map()), Jl = Me(
|
7387
7387
|
{
|
7388
7388
|
// events
|
7389
7389
|
onLoadingSlow: Qe,
|
7390
7390
|
onSuccess: Qe,
|
7391
7391
|
onError: Qe,
|
7392
|
-
onErrorRetry:
|
7392
|
+
onErrorRetry: Gl,
|
7393
7393
|
onDiscarded: Qe,
|
7394
7394
|
// switches
|
7395
7395
|
revalidateOnFocus: !0,
|
@@ -7397,29 +7397,29 @@ const Rr = (e, t) => {
|
|
7397
7397
|
revalidateIfStale: !0,
|
7398
7398
|
shouldRetryOnError: !0,
|
7399
7399
|
// timeouts
|
7400
|
-
errorRetryInterval:
|
7400
|
+
errorRetryInterval: Tr ? 1e4 : 5e3,
|
7401
7401
|
focusThrottleInterval: 5 * 1e3,
|
7402
7402
|
dedupingInterval: 2 * 1e3,
|
7403
|
-
loadingTimeout:
|
7403
|
+
loadingTimeout: Tr ? 5e3 : 3e3,
|
7404
7404
|
// providers
|
7405
|
-
compare:
|
7405
|
+
compare: Yl,
|
7406
7406
|
isPaused: () => !1,
|
7407
|
-
cache:
|
7408
|
-
mutate:
|
7407
|
+
cache: ka,
|
7408
|
+
mutate: Kl,
|
7409
7409
|
fallback: {}
|
7410
7410
|
},
|
7411
7411
|
// use web preset by default
|
7412
|
-
|
7413
|
-
),
|
7412
|
+
ql
|
7413
|
+
), Xl = (e, t) => {
|
7414
7414
|
const i = Me(e, t);
|
7415
7415
|
if (t) {
|
7416
7416
|
const { use: n, fallback: r } = e, { use: a, fallback: o } = t;
|
7417
7417
|
n && a && (i.use = n.concat(a)), r && o && (i.fallback = Me(r, o));
|
7418
7418
|
}
|
7419
7419
|
return i;
|
7420
|
-
},
|
7421
|
-
|
7422
|
-
},
|
7420
|
+
}, Zl = Dr({}), Ql = "$inf$", Oa = bn && window.__SWR_DEVTOOLS_USE__, ep = Oa ? window.__SWR_DEVTOOLS_USE__ : [], tp = () => {
|
7421
|
+
Oa && (window.__SWR_DEVTOOLS_REACT__ = ye);
|
7422
|
+
}, _a = (e) => Le(e[1]) ? [
|
7423
7423
|
e[0],
|
7424
7424
|
e[1],
|
7425
7425
|
e[2] || {}
|
@@ -7427,34 +7427,34 @@ const Rr = (e, t) => {
|
|
7427
7427
|
e[0],
|
7428
7428
|
null,
|
7429
7429
|
(e[1] === null ? e[2] : e[1]) || {}
|
7430
|
-
],
|
7431
|
-
const [o] =
|
7432
|
-
if (o.startsWith(
|
7430
|
+
], Aa = () => Me(Jl, oi(Zl)), np = (e) => (t, i, n) => e(t, i && ((...a) => {
|
7431
|
+
const [o] = Vt(t), [, , , s] = Ue.get(ka);
|
7432
|
+
if (o.startsWith(Ql))
|
7433
7433
|
return i(...a);
|
7434
7434
|
const c = s[o];
|
7435
7435
|
return $(c) ? i(...a) : (delete s[o], c);
|
7436
|
-
}), n),
|
7437
|
-
const n =
|
7436
|
+
}), n), ip = ep.concat(np), Ca = (e) => function(...i) {
|
7437
|
+
const n = Aa(), [r, a, o] = _a(i), s = Xl(n, o);
|
7438
7438
|
let c = e;
|
7439
|
-
const { use: p } = s, l = (p || []).concat(
|
7439
|
+
const { use: p } = s, l = (p || []).concat(ip);
|
7440
7440
|
for (let u = l.length; u--; )
|
7441
7441
|
c = l[u](c);
|
7442
7442
|
return c(r, a || s.fetcher || null, s);
|
7443
|
-
},
|
7443
|
+
}, Da = (e, t, i) => {
|
7444
7444
|
const n = t[e] || (t[e] = []);
|
7445
7445
|
return n.push(i), () => {
|
7446
7446
|
const r = n.indexOf(i);
|
7447
7447
|
r >= 0 && (n[r] = n[n.length - 1], n.pop());
|
7448
7448
|
};
|
7449
|
-
},
|
7450
|
-
const [n, r, a] =
|
7449
|
+
}, rp = (e, t) => (...i) => {
|
7450
|
+
const [n, r, a] = _a(i), o = (a.use || []).concat(t);
|
7451
7451
|
return e(n, r, {
|
7452
7452
|
...a,
|
7453
7453
|
use: o
|
7454
7454
|
});
|
7455
7455
|
};
|
7456
|
-
|
7457
|
-
const
|
7456
|
+
tp();
|
7457
|
+
const Or = ye.use || ((e) => {
|
7458
7458
|
if (e.status === "pending")
|
7459
7459
|
throw e;
|
7460
7460
|
if (e.status === "fulfilled")
|
@@ -7466,8 +7466,8 @@ const Tr = he.use || ((e) => {
|
|
7466
7466
|
}), e);
|
7467
7467
|
}), qn = {
|
7468
7468
|
dedupe: !0
|
7469
|
-
},
|
7470
|
-
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = Ue.get(n), [x, k] =
|
7469
|
+
}, ap = (e, t, i) => {
|
7470
|
+
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = Ue.get(n), [x, k] = Vt(e), _ = he(!1), T = he(!1), b = he(x), D = he(t), N = he(i), j = () => N.current, G = () => j().isVisible() && j().isOnline(), [V, re, me, te] = xi(n, x), U = he({}).current, le = $(o) ? i.fallback[x] : o, Ee = (y, F) => {
|
7471
7471
|
for (const J in U) {
|
7472
7472
|
const M = J;
|
7473
7473
|
if (M === "data") {
|
@@ -7477,14 +7477,14 @@ const Tr = he.use || ((e) => {
|
|
7477
7477
|
return !1;
|
7478
7478
|
}
|
7479
7479
|
return !0;
|
7480
|
-
}, Se =
|
7480
|
+
}, Se = Je(() => {
|
7481
7481
|
const y = !x || !t ? !1 : $(s) ? j().isPaused() || a ? !1 : $(c) ? !0 : c : s, F = (Q) => {
|
7482
|
-
const
|
7483
|
-
return delete
|
7482
|
+
const we = Me(Q);
|
7483
|
+
return delete we._k, y ? {
|
7484
7484
|
isValidating: !0,
|
7485
7485
|
isLoading: !0,
|
7486
|
-
...
|
7487
|
-
} :
|
7486
|
+
...we
|
7487
|
+
} : we;
|
7488
7488
|
}, J = V(), M = te(), ue = F(J), Re = J === M ? ue : F(M);
|
7489
7489
|
let X = ue;
|
7490
7490
|
return [
|
@@ -7497,7 +7497,7 @@ const Tr = he.use || ((e) => {
|
|
7497
7497
|
}, [
|
7498
7498
|
n,
|
7499
7499
|
x
|
7500
|
-
]), pe =
|
7500
|
+
]), pe = wa.useSyncExternalStore(_e(
|
7501
7501
|
(y) => me(x, (F, J) => {
|
7502
7502
|
Ee(J, F) || y();
|
7503
7503
|
}),
|
@@ -7506,17 +7506,17 @@ const Tr = he.use || ((e) => {
|
|
7506
7506
|
n,
|
7507
7507
|
x
|
7508
7508
|
]
|
7509
|
-
), Se[0], Se[1]),
|
7509
|
+
), Se[0], Se[1]), be = !_.current, S = m[x] && m[x].length > 0, O = pe.data, I = $(O) ? le : O, q = pe.error, B = he(I), H = f ? $(O) ? B.current : O : I, z = S && !$(q) ? !1 : be && !$(s) ? s : j().isPaused() ? !1 : a ? $(I) ? !1 : c : $(I) || c, W = !!(x && t && be && z), K = $(pe.isValidating) ? W : pe.isValidating, ee = $(pe.isLoading) ? W : pe.isLoading, L = _e(
|
7510
7510
|
async (y) => {
|
7511
7511
|
const F = D.current;
|
7512
7512
|
if (!x || !F || T.current || j().isPaused())
|
7513
7513
|
return !1;
|
7514
7514
|
let J, M, ue = !0;
|
7515
|
-
const Re = y || {}, X = !g[x] || !Re.dedupe, Q = () =>
|
7515
|
+
const Re = y || {}, X = !g[x] || !Re.dedupe, Q = () => qt ? !T.current && x === b.current && _.current : x === b.current, we = {
|
7516
7516
|
isValidating: !1,
|
7517
7517
|
isLoading: !1
|
7518
7518
|
}, He = () => {
|
7519
|
-
re(
|
7519
|
+
re(we);
|
7520
7520
|
}, $e = () => {
|
7521
7521
|
const E = g[x];
|
7522
7522
|
E && E[1] === M && delete g[x];
|
@@ -7529,10 +7529,10 @@ const Tr = he.use || ((e) => {
|
|
7529
7529
|
ue && Q() && j().onLoadingSlow(x, i);
|
7530
7530
|
}, i.loadingTimeout), g[x] = [
|
7531
7531
|
F(k),
|
7532
|
-
|
7532
|
+
bt()
|
7533
7533
|
]), [J, M] = g[x], J = await J, X && setTimeout($e, i.dedupingInterval), !g[x] || g[x][1] !== M)
|
7534
7534
|
return X && Q() && j().onDiscarded(x), !1;
|
7535
|
-
|
7535
|
+
we.error = Ce;
|
7536
7536
|
const E = v[x];
|
7537
7537
|
if (!$(E) && // case 1
|
7538
7538
|
(M <= E[0] || // case 2
|
@@ -7540,11 +7540,11 @@ const Tr = he.use || ((e) => {
|
|
7540
7540
|
E[1] === 0))
|
7541
7541
|
return He(), X && Q() && j().onDiscarded(x), !1;
|
7542
7542
|
const A = V().data;
|
7543
|
-
|
7543
|
+
we.data = r(A, J) ? A : J, X && Q() && j().onSuccess(J, x, i);
|
7544
7544
|
} catch (E) {
|
7545
7545
|
$e();
|
7546
7546
|
const A = j(), { shouldRetryOnError: ae } = A;
|
7547
|
-
A.isPaused() || (
|
7547
|
+
A.isPaused() || (we.error = E, X && Q() && (A.onError(E, x, A), (ae === !0 || Le(ae) && ae(E)) && (!j().revalidateOnFocus || !j().revalidateOnReconnect || G()) && A.onErrorRetry(E, x, A, (de) => {
|
7548
7548
|
const Te = m[x];
|
7549
7549
|
Te && Te[0] && Te[0](Ve.ERROR_REVALIDATE_EVENT, de);
|
7550
7550
|
}, {
|
@@ -7571,7 +7571,7 @@ const Tr = he.use || ((e) => {
|
|
7571
7571
|
]
|
7572
7572
|
), xe = _e(
|
7573
7573
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
7574
|
-
(...y) =>
|
7574
|
+
(...y) => vi(n, b.current, ...y),
|
7575
7575
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7576
7576
|
[]
|
7577
7577
|
);
|
@@ -7581,7 +7581,7 @@ const Tr = he.use || ((e) => {
|
|
7581
7581
|
if (!x) return;
|
7582
7582
|
const y = L.bind(Ce, qn);
|
7583
7583
|
let F = 0;
|
7584
|
-
const M =
|
7584
|
+
const M = Da(x, m, (ue, Re = {}) => {
|
7585
7585
|
if (ue == Ve.FOCUS_EVENT) {
|
7586
7586
|
const X = Date.now();
|
7587
7587
|
j().revalidateOnFocus && X > F && G() && (F = X + j().focusThrottleInterval, y());
|
@@ -7596,7 +7596,7 @@ const Tr = he.use || ((e) => {
|
|
7596
7596
|
});
|
7597
7597
|
return T.current = !1, b.current = x, _.current = !0, re({
|
7598
7598
|
_k: k
|
7599
|
-
}), z && ($(I) ||
|
7599
|
+
}), z && ($(I) || ut ? y() : Ea(y)), () => {
|
7600
7600
|
T.current = !0, M();
|
7601
7601
|
};
|
7602
7602
|
}, [
|
@@ -7618,18 +7618,18 @@ const Tr = he.use || ((e) => {
|
|
7618
7618
|
l,
|
7619
7619
|
u,
|
7620
7620
|
x
|
7621
|
-
]),
|
7622
|
-
if (!
|
7621
|
+
]), jr(H), a && $(I) && x) {
|
7622
|
+
if (!qt && ut)
|
7623
7623
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7624
7624
|
D.current = t, N.current = i, T.current = !1;
|
7625
7625
|
const y = w[x];
|
7626
7626
|
if (!$(y)) {
|
7627
7627
|
const F = xe(y);
|
7628
|
-
|
7628
|
+
Or(F);
|
7629
7629
|
}
|
7630
7630
|
if ($(q)) {
|
7631
7631
|
const F = L(qn);
|
7632
|
-
$(H) || (F.status = "fulfilled", F.value = !0),
|
7632
|
+
$(H) || (F.status = "fulfilled", F.value = !0), Or(F);
|
7633
7633
|
} else
|
7634
7634
|
throw q;
|
7635
7635
|
}
|
@@ -7648,7 +7648,7 @@ const Tr = he.use || ((e) => {
|
|
7648
7648
|
return U.isLoading = !0, ee;
|
7649
7649
|
}
|
7650
7650
|
};
|
7651
|
-
},
|
7651
|
+
}, op = Ca(ap), _r = ye.use || ((e) => {
|
7652
7652
|
if (e.status === "pending")
|
7653
7653
|
throw e;
|
7654
7654
|
if (e.status === "fulfilled")
|
@@ -7660,8 +7660,8 @@ const Tr = he.use || ((e) => {
|
|
7660
7660
|
}), e);
|
7661
7661
|
}), Wn = {
|
7662
7662
|
dedupe: !0
|
7663
|
-
},
|
7664
|
-
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = Ue.get(n), [x, k] =
|
7663
|
+
}, sp = (e, t, i) => {
|
7664
|
+
const { cache: n, compare: r, suspense: a, fallbackData: o, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: p, refreshWhenHidden: l, refreshWhenOffline: u, keepPreviousData: f } = i, [m, v, g, w] = Ue.get(n), [x, k] = Vt(e), _ = he(!1), T = he(!1), b = he(x), D = he(t), N = he(i), j = () => N.current, G = () => j().isVisible() && j().isOnline(), [V, re, me, te] = xi(n, x), U = he({}).current, le = $(o) ? i.fallback[x] : o, Ee = (y, F) => {
|
7665
7665
|
for (const J in U) {
|
7666
7666
|
const M = J;
|
7667
7667
|
if (M === "data") {
|
@@ -7671,14 +7671,14 @@ const Tr = he.use || ((e) => {
|
|
7671
7671
|
return !1;
|
7672
7672
|
}
|
7673
7673
|
return !0;
|
7674
|
-
}, Se =
|
7674
|
+
}, Se = Je(() => {
|
7675
7675
|
const y = !x || !t ? !1 : $(s) ? j().isPaused() || a ? !1 : $(c) ? !0 : c : s, F = (Q) => {
|
7676
|
-
const
|
7677
|
-
return delete
|
7676
|
+
const we = Me(Q);
|
7677
|
+
return delete we._k, y ? {
|
7678
7678
|
isValidating: !0,
|
7679
7679
|
isLoading: !0,
|
7680
|
-
...
|
7681
|
-
} :
|
7680
|
+
...we
|
7681
|
+
} : we;
|
7682
7682
|
}, J = V(), M = te(), ue = F(J), Re = J === M ? ue : F(M);
|
7683
7683
|
let X = ue;
|
7684
7684
|
return [
|
@@ -7691,7 +7691,7 @@ const Tr = he.use || ((e) => {
|
|
7691
7691
|
}, [
|
7692
7692
|
n,
|
7693
7693
|
x
|
7694
|
-
]), pe =
|
7694
|
+
]), pe = wa.useSyncExternalStore(_e(
|
7695
7695
|
(y) => me(x, (F, J) => {
|
7696
7696
|
Ee(J, F) || y();
|
7697
7697
|
}),
|
@@ -7700,17 +7700,17 @@ const Tr = he.use || ((e) => {
|
|
7700
7700
|
n,
|
7701
7701
|
x
|
7702
7702
|
]
|
7703
|
-
), Se[0], Se[1]),
|
7703
|
+
), Se[0], Se[1]), be = !_.current, S = m[x] && m[x].length > 0, O = pe.data, I = $(O) ? le : O, q = pe.error, B = he(I), H = f ? $(O) ? B.current : O : I, z = S && !$(q) ? !1 : be && !$(s) ? s : j().isPaused() ? !1 : a ? $(I) ? !1 : c : $(I) || c, W = !!(x && t && be && z), K = $(pe.isValidating) ? W : pe.isValidating, ee = $(pe.isLoading) ? W : pe.isLoading, L = _e(
|
7704
7704
|
async (y) => {
|
7705
7705
|
const F = D.current;
|
7706
7706
|
if (!x || !F || T.current || j().isPaused())
|
7707
7707
|
return !1;
|
7708
7708
|
let J, M, ue = !0;
|
7709
|
-
const Re = y || {}, X = !g[x] || !Re.dedupe, Q = () =>
|
7709
|
+
const Re = y || {}, X = !g[x] || !Re.dedupe, Q = () => qt ? !T.current && x === b.current && _.current : x === b.current, we = {
|
7710
7710
|
isValidating: !1,
|
7711
7711
|
isLoading: !1
|
7712
7712
|
}, He = () => {
|
7713
|
-
re(
|
7713
|
+
re(we);
|
7714
7714
|
}, $e = () => {
|
7715
7715
|
const E = g[x];
|
7716
7716
|
E && E[1] === M && delete g[x];
|
@@ -7723,10 +7723,10 @@ const Tr = he.use || ((e) => {
|
|
7723
7723
|
ue && Q() && j().onLoadingSlow(x, i);
|
7724
7724
|
}, i.loadingTimeout), g[x] = [
|
7725
7725
|
F(k),
|
7726
|
-
|
7726
|
+
bt()
|
7727
7727
|
]), [J, M] = g[x], J = await J, X && setTimeout($e, i.dedupingInterval), !g[x] || g[x][1] !== M)
|
7728
7728
|
return X && Q() && j().onDiscarded(x), !1;
|
7729
|
-
|
7729
|
+
we.error = Ce;
|
7730
7730
|
const E = v[x];
|
7731
7731
|
if (!$(E) && // case 1
|
7732
7732
|
(M <= E[0] || // case 2
|
@@ -7734,11 +7734,11 @@ const Tr = he.use || ((e) => {
|
|
7734
7734
|
E[1] === 0))
|
7735
7735
|
return He(), X && Q() && j().onDiscarded(x), !1;
|
7736
7736
|
const A = V().data;
|
7737
|
-
|
7737
|
+
we.data = r(A, J) ? A : J, X && Q() && j().onSuccess(J, x, i);
|
7738
7738
|
} catch (E) {
|
7739
7739
|
$e();
|
7740
7740
|
const A = j(), { shouldRetryOnError: ae } = A;
|
7741
|
-
A.isPaused() || (
|
7741
|
+
A.isPaused() || (we.error = E, X && Q() && (A.onError(E, x, A), (ae === !0 || Le(ae) && ae(E)) && (!j().revalidateOnFocus || !j().revalidateOnReconnect || G()) && A.onErrorRetry(E, x, A, (de) => {
|
7742
7742
|
const Te = m[x];
|
7743
7743
|
Te && Te[0] && Te[0](Ve.ERROR_REVALIDATE_EVENT, de);
|
7744
7744
|
}, {
|
@@ -7765,7 +7765,7 @@ const Tr = he.use || ((e) => {
|
|
7765
7765
|
]
|
7766
7766
|
), xe = _e(
|
7767
7767
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
7768
|
-
(...y) =>
|
7768
|
+
(...y) => vi(n, b.current, ...y),
|
7769
7769
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7770
7770
|
[]
|
7771
7771
|
);
|
@@ -7775,7 +7775,7 @@ const Tr = he.use || ((e) => {
|
|
7775
7775
|
if (!x) return;
|
7776
7776
|
const y = L.bind(Ce, Wn);
|
7777
7777
|
let F = 0;
|
7778
|
-
const M =
|
7778
|
+
const M = Da(x, m, (ue, Re = {}) => {
|
7779
7779
|
if (ue == Ve.FOCUS_EVENT) {
|
7780
7780
|
const X = Date.now();
|
7781
7781
|
j().revalidateOnFocus && X > F && G() && (F = X + j().focusThrottleInterval, y());
|
@@ -7790,7 +7790,7 @@ const Tr = he.use || ((e) => {
|
|
7790
7790
|
});
|
7791
7791
|
return T.current = !1, b.current = x, _.current = !0, re({
|
7792
7792
|
_k: k
|
7793
|
-
}), z && ($(I) ||
|
7793
|
+
}), z && ($(I) || ut ? y() : Ea(y)), () => {
|
7794
7794
|
T.current = !0, M();
|
7795
7795
|
};
|
7796
7796
|
}, [
|
@@ -7812,18 +7812,18 @@ const Tr = he.use || ((e) => {
|
|
7812
7812
|
l,
|
7813
7813
|
u,
|
7814
7814
|
x
|
7815
|
-
]),
|
7816
|
-
if (!
|
7815
|
+
]), jr(H), a && $(I) && x) {
|
7816
|
+
if (!qt && ut)
|
7817
7817
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7818
7818
|
D.current = t, N.current = i, T.current = !1;
|
7819
7819
|
const y = w[x];
|
7820
7820
|
if (!$(y)) {
|
7821
7821
|
const F = xe(y);
|
7822
|
-
|
7822
|
+
_r(F);
|
7823
7823
|
}
|
7824
7824
|
if ($(q)) {
|
7825
7825
|
const F = L(Wn);
|
7826
|
-
$(H) || (F.status = "fulfilled", F.value = !0),
|
7826
|
+
$(H) || (F.status = "fulfilled", F.value = !0), _r(F);
|
7827
7827
|
} else
|
7828
7828
|
throw q;
|
7829
7829
|
}
|
@@ -7842,10 +7842,10 @@ const Tr = he.use || ((e) => {
|
|
7842
7842
|
return U.isLoading = !0, ee;
|
7843
7843
|
}
|
7844
7844
|
};
|
7845
|
-
},
|
7845
|
+
}, cp = Ca(sp), Ar = qt ? (e) => {
|
7846
7846
|
e();
|
7847
|
-
} :
|
7848
|
-
const [, t] =
|
7847
|
+
} : ye.startTransition, lp = (e) => {
|
7848
|
+
const [, t] = Fr({}), i = he(!1), n = he(e), r = he({
|
7849
7849
|
data: !1,
|
7850
7850
|
error: !1,
|
7851
7851
|
isValidating: !1
|
@@ -7865,14 +7865,14 @@ const Tr = he.use || ((e) => {
|
|
7865
7865
|
r.current,
|
7866
7866
|
a
|
7867
7867
|
];
|
7868
|
-
},
|
7869
|
-
const { mutate: n } =
|
7868
|
+
}, pp = () => (e, t, i = {}) => {
|
7869
|
+
const { mutate: n } = Aa(), r = he(e), a = he(t), o = he(i), s = he(0), [c, p, l] = lp({
|
7870
7870
|
data: Ce,
|
7871
7871
|
error: Ce,
|
7872
7872
|
isMutating: !1
|
7873
7873
|
}), u = c.current, f = _e(
|
7874
7874
|
async (v, g) => {
|
7875
|
-
const [w, x] =
|
7875
|
+
const [w, x] = Vt(r.current);
|
7876
7876
|
if (!a.current)
|
7877
7877
|
throw new Error("Can’t trigger the mutation: missing fetcher.");
|
7878
7878
|
if (!w)
|
@@ -7880,7 +7880,7 @@ const Tr = he.use || ((e) => {
|
|
7880
7880
|
const k = Me(Me({
|
7881
7881
|
populateCache: !1,
|
7882
7882
|
throwOnError: !0
|
7883
|
-
}, o.current), g), _ =
|
7883
|
+
}, o.current), g), _ = bt();
|
7884
7884
|
s.current = _, l({
|
7885
7885
|
isMutating: !0
|
7886
7886
|
});
|
@@ -7895,13 +7895,13 @@ const Tr = he.use || ((e) => {
|
|
7895
7895
|
throwOnError: !0
|
7896
7896
|
})
|
7897
7897
|
);
|
7898
|
-
return s.current <= _ && (
|
7898
|
+
return s.current <= _ && (Ar(() => l({
|
7899
7899
|
data: T,
|
7900
7900
|
isMutating: !1,
|
7901
7901
|
error: void 0
|
7902
7902
|
})), k.onSuccess == null || k.onSuccess.call(k, T, w, k)), T;
|
7903
7903
|
} catch (T) {
|
7904
|
-
if (s.current <= _ && (
|
7904
|
+
if (s.current <= _ && (Ar(() => l({
|
7905
7905
|
error: T,
|
7906
7906
|
isMutating: !1
|
7907
7907
|
})), k.onError == null || k.onError.call(k, T, w, k), k.throwOnError))
|
@@ -7911,7 +7911,7 @@ const Tr = he.use || ((e) => {
|
|
7911
7911
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7912
7912
|
[]
|
7913
7913
|
), m = _e(() => {
|
7914
|
-
s.current =
|
7914
|
+
s.current = bt(), l({
|
7915
7915
|
data: Ce,
|
7916
7916
|
error: Ce,
|
7917
7917
|
isMutating: !1
|
@@ -7932,7 +7932,65 @@ const Tr = he.use || ((e) => {
|
|
7932
7932
|
return p.isMutating = !0, u.isMutating;
|
7933
7933
|
}
|
7934
7934
|
};
|
7935
|
-
},
|
7935
|
+
}, up = rp(cp, pp), dp = (e) => {
|
7936
|
+
if (!e) return !1;
|
7937
|
+
const t = e.split("?")[1];
|
7938
|
+
if (!t) return !1;
|
7939
|
+
const n = new URLSearchParams(t).get("Expires");
|
7940
|
+
return n ? new Date(n) < /* @__PURE__ */ new Date() : !1;
|
7941
|
+
}, Cr = (e) => e && e.split("?")[0], fp = (e, t) => Cr(e) === Cr(t), mp = () => {
|
7942
|
+
const [e, t] = Fr("paused"), n = Je(() => {
|
7943
|
+
if (typeof window > "u") return null;
|
7944
|
+
const p = new Audio();
|
7945
|
+
return p.addEventListener("play", () => t("playing")), p;
|
7946
|
+
}, []), r = he(n);
|
7947
|
+
return {
|
7948
|
+
audioRef: r,
|
7949
|
+
state: e,
|
7950
|
+
setAudio: (p) => new Promise((l) => {
|
7951
|
+
const u = r == null ? void 0 : r.current;
|
7952
|
+
u && (u.setAttribute("src", p), t("loading"), u.addEventListener(
|
7953
|
+
"loadedmetadata",
|
7954
|
+
() => {
|
7955
|
+
t("paused"), l();
|
7956
|
+
},
|
7957
|
+
{ once: !0 }
|
7958
|
+
));
|
7959
|
+
}),
|
7960
|
+
play: () => {
|
7961
|
+
var p, l;
|
7962
|
+
(p = r.current) == null || p.play(), (l = r.current) == null || l.addEventListener("ended", () => t("paused"), { once: !0 });
|
7963
|
+
},
|
7964
|
+
pause: () => {
|
7965
|
+
var p;
|
7966
|
+
(p = r.current) == null || p.pause(), t("paused");
|
7967
|
+
},
|
7968
|
+
stop: () => {
|
7969
|
+
var l;
|
7970
|
+
r.current && ((l = r.current) == null || l.pause(), r.current.currentTime = 0), t("paused");
|
7971
|
+
}
|
7972
|
+
};
|
7973
|
+
}, gi = Dr(
|
7974
|
+
null
|
7975
|
+
), xp = (e) => {
|
7976
|
+
var o;
|
7977
|
+
const t = oi(gi), i = fp((o = t.audioRef.current) == null ? void 0 : o.src, e), n = t.state === "loading" && i, r = t.state === "playing" && i;
|
7978
|
+
return { ...t, isMySrc: i, isLoading: n, isPlaying: r, play: async () => {
|
7979
|
+
var c;
|
7980
|
+
const s = (c = t.audioRef.current) == null ? void 0 : c.src;
|
7981
|
+
(!i || dp(s)) && await t.setAudio(e), t.play();
|
7982
|
+
} };
|
7983
|
+
}, $p = () => oi(gi), vp = ({ children: e }) => {
|
7984
|
+
const t = mp();
|
7985
|
+
return /* @__PURE__ */ ot.jsx(gi.Provider, { value: t, children: e });
|
7986
|
+
}, Np = (e, t, i) => {
|
7987
|
+
const n = xp(e), r = he(!1), a = () => {
|
7988
|
+
r.current || (r.current = !0), n.isPlaying ? (n.pause(), i == null || i()) : (n.play(), t == null || t());
|
7989
|
+
};
|
7990
|
+
return Lt(() => () => {
|
7991
|
+
n.isPlaying && n.pause();
|
7992
|
+
}, []), { player: n, playPause: a };
|
7993
|
+
}, gp = (e) => {
|
7936
7994
|
const t = (r) => typeof r == "object" && !(r instanceof Date) && !(r instanceof File) && r !== null, i = (r, a, o) => {
|
7937
7995
|
for (const s in a) {
|
7938
7996
|
const c = a[s];
|
@@ -7945,7 +8003,7 @@ const Tr = he.use || ((e) => {
|
|
7945
8003
|
}
|
7946
8004
|
return n;
|
7947
8005
|
};
|
7948
|
-
function
|
8006
|
+
function nn(e, t, i) {
|
7949
8007
|
for (let n = 0; n < e.length; ++n)
|
7950
8008
|
t[i + n] = e.charCodeAt(n);
|
7951
8009
|
}
|
@@ -7955,11 +8013,11 @@ function cn(e, t, i) {
|
|
7955
8013
|
function it(e, t, i) {
|
7956
8014
|
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;
|
7957
8015
|
}
|
7958
|
-
function
|
8016
|
+
function hp(e) {
|
7959
8017
|
const t = new ArrayBuffer(4);
|
7960
8018
|
return new Float32Array(t)[0] = e, new Uint32Array(t)[0] | 0;
|
7961
8019
|
}
|
7962
|
-
function
|
8020
|
+
function yp(e, t, i, n) {
|
7963
8021
|
let r = 0, a = 0;
|
7964
8022
|
const o = e.length, s = e.numberOfChannels;
|
7965
8023
|
let c, p;
|
@@ -7968,31 +8026,31 @@ function dp(e, t, i, n) {
|
|
7968
8026
|
if (c = e.getChannelData(a), n === 16)
|
7969
8027
|
p = c[r] * 32768, p = Math.max(-32768, Math.min(p, 32767)), cn(p, t, i), i += 2;
|
7970
8028
|
else if (n === 32)
|
7971
|
-
p =
|
8029
|
+
p = hp(c[r]), it(p, t, i), i += 4;
|
7972
8030
|
else {
|
7973
8031
|
console.log("Invalid bit depth for PCM encoding.");
|
7974
8032
|
return;
|
7975
8033
|
}
|
7976
8034
|
}
|
7977
|
-
async function
|
8035
|
+
async function bp(e, t) {
|
7978
8036
|
let i = e instanceof Blob ? e : new Blob(e);
|
7979
8037
|
const n = URL.createObjectURL(i), a = await (await fetch(n)).arrayBuffer();
|
7980
8038
|
return await new AudioContext(t).decodeAudioData(a);
|
7981
8039
|
}
|
7982
|
-
async function
|
8040
|
+
async function wp(e, t = !1) {
|
7983
8041
|
const i = e.length, n = e.numberOfChannels, r = e.sampleRate, a = t ? 32 : 16, o = a / 8, s = r * n * a / 8, c = n * a / 8, p = i * n * o, u = 44 + p, f = new Uint8Array(u), m = 16, v = p, g = 4 + (8 + m) + (8 + v);
|
7984
|
-
return
|
8042
|
+
return nn("RIFF", f, 0), it(g, f, 4), nn("WAVE", f, 8), nn("fmt ", f, 12), it(m, f, 16), cn(t ? 3 : 1, f, 20), cn(n, f, 22), it(r, f, 24), it(s, f, 28), cn(c, f, 32), it(a, f, 34), nn("data", f, 36), it(v, f, 40), yp(e, f, 44, a), new Blob([f], { type: "audio/wave" });
|
7985
8043
|
}
|
7986
|
-
async function
|
7987
|
-
const n = await
|
7988
|
-
return
|
8044
|
+
async function Ep(e, t = !1, i) {
|
8045
|
+
const n = await bp(e, i);
|
8046
|
+
return wp(n, t);
|
7989
8047
|
}
|
7990
|
-
const
|
7991
|
-
class
|
8048
|
+
const Sp = 128;
|
8049
|
+
class Rp {
|
7992
8050
|
constructor() {
|
7993
|
-
|
7994
|
-
|
7995
|
-
|
8051
|
+
Ht(this, "mediaRecorder", null);
|
8052
|
+
Ht(this, "stream", null);
|
8053
|
+
Ht(this, "__data", null);
|
7996
8054
|
}
|
7997
8055
|
/**
|
7998
8056
|
* @returns {Promise<boolean>} - true if user has microphone access, false otherwise
|
@@ -8009,7 +8067,7 @@ class gp {
|
|
8009
8067
|
if (((t = this.mediaRecorder) == null ? void 0 : t.state) === "recording") return !0;
|
8010
8068
|
try {
|
8011
8069
|
this.stream = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }), this.mediaRecorder = new MediaRecorder(this.stream, {
|
8012
|
-
bitsPerSecond:
|
8070
|
+
bitsPerSecond: Sp * 1e3
|
8013
8071
|
}), this.mediaRecorder.ondataavailable = (i) => this.__data = i.data;
|
8014
8072
|
} catch (i) {
|
8015
8073
|
return console.error(i), !1;
|
@@ -8037,15 +8095,15 @@ class gp {
|
|
8037
8095
|
* @returns {Promise<Blob | null>} - Blob of the recorded audio
|
8038
8096
|
*/
|
8039
8097
|
async getWavBlob() {
|
8040
|
-
return this.__data ? await
|
8098
|
+
return this.__data ? await Ep(this.__data) : null;
|
8041
8099
|
}
|
8042
8100
|
}
|
8043
|
-
const
|
8044
|
-
const [t, i] =
|
8045
|
-
return
|
8101
|
+
const rn = new Rp(), ja = "Recording.wav", Tp = 1500, qp = (e) => {
|
8102
|
+
const [t, i] = ye.useState(!1), [n, r] = ye.useState(!1), [a, o] = ye.useState(!1);
|
8103
|
+
return ye.useEffect(() => {
|
8046
8104
|
var p;
|
8047
8105
|
const c = async () => {
|
8048
|
-
|
8106
|
+
rn.checkMicrophonePermission().then(i);
|
8049
8107
|
};
|
8050
8108
|
return c(), (p = navigator == null ? void 0 : navigator.mediaDevices) == null || p.addEventListener("devicechange", c), () => {
|
8051
8109
|
var l;
|
@@ -8055,42 +8113,43 @@ const nn = new gp(), Oa = "Recording.wav", hp = 1500, Fp = (e) => {
|
|
8055
8113
|
if (n) {
|
8056
8114
|
if (!a)
|
8057
8115
|
return;
|
8058
|
-
r(!1), o(!1), await
|
8059
|
-
const p = await
|
8116
|
+
r(!1), o(!1), await rn.stopRecording();
|
8117
|
+
const p = await rn.getWavBlob();
|
8060
8118
|
if (!p) {
|
8061
8119
|
console.log("Failed to get audio blob", p);
|
8062
8120
|
return;
|
8063
8121
|
}
|
8064
|
-
const l = new File([p],
|
8122
|
+
const l = new File([p], ja, {
|
8065
8123
|
type: "audio/mpeg",
|
8066
8124
|
lastModified: Date.now()
|
8067
8125
|
});
|
8068
8126
|
e.onFileUpdate(l);
|
8069
8127
|
return;
|
8070
8128
|
}
|
8071
|
-
const c = await
|
8129
|
+
const c = await rn.startRecording();
|
8072
8130
|
r(c), setTimeout(() => {
|
8073
8131
|
o(!0);
|
8074
|
-
},
|
8132
|
+
}, Tp);
|
8075
8133
|
} };
|
8076
|
-
},
|
8077
|
-
baseURL:
|
8078
|
-
}),
|
8134
|
+
}, kp = "https://arpeggi.io/api/v2/", Fa = De.create({
|
8135
|
+
baseURL: kp
|
8136
|
+
}), Op = async (e, { arg: t }) => (await Fa.post(
|
8079
8137
|
"/ml-inference-jobs",
|
8080
|
-
|
8138
|
+
gp({
|
8081
8139
|
soundFile: t.file,
|
8140
|
+
type: "audio",
|
8082
8141
|
voiceModelId: t.voiceModelId,
|
8083
8142
|
metadata: {
|
8084
|
-
isRecordedAudio: t.file.name ===
|
8143
|
+
isRecordedAudio: t.file.name === ja
|
8085
8144
|
}
|
8086
8145
|
})
|
8087
|
-
)).data,
|
8146
|
+
)).data, _p = async (e) => e === null ? null : (await Fa.get(e)).data, Ap = (e) => {
|
8088
8147
|
const t = e > 0;
|
8089
|
-
return
|
8148
|
+
return op(t ? `/ml-inference-jobs/${e}` : null, _p, {
|
8090
8149
|
refreshInterval: 1e3
|
8091
8150
|
});
|
8092
|
-
},
|
8093
|
-
const [e, t] =
|
8151
|
+
}, Cp = () => {
|
8152
|
+
const [e, t] = ye.useState(null), [i, n] = ye.useState(0), [r, a] = ye.useState(0), { data: o, isLoading: s } = Ap(i), { trigger: c, isMutating: p } = up("/ml-inference-jobs", Op);
|
8094
8153
|
return {
|
8095
8154
|
file: e,
|
8096
8155
|
setFile: t,
|
@@ -8118,33 +8177,37 @@ const nn = new gp(), Oa = "Recording.wav", hp = 1500, Fp = (e) => {
|
|
8118
8177
|
},
|
8119
8178
|
isMutating: p
|
8120
8179
|
};
|
8121
|
-
},
|
8122
|
-
const t =
|
8123
|
-
return /* @__PURE__ */
|
8124
|
-
},
|
8125
|
-
const { setFile: t } =
|
8126
|
-
return /* @__PURE__ */
|
8127
|
-
|
8180
|
+
}, Pa = ye.createContext({}), Dp = () => ye.useContext(Pa), Wp = ({ children: e }) => {
|
8181
|
+
const t = Cp();
|
8182
|
+
return /* @__PURE__ */ ot.jsx(vp, { children: /* @__PURE__ */ ot.jsx(Pa.Provider, { value: t, children: e }) });
|
8183
|
+
}, jp = 1, Fp = 100 * 1024 * 1024, Pp = 1, Ip = 100, Up = ({ children: e }) => {
|
8184
|
+
const { setFile: t } = Dp(), i = (n) => t(n[0]);
|
8185
|
+
return /* @__PURE__ */ ot.jsx(
|
8186
|
+
Xs,
|
8128
8187
|
{
|
8129
8188
|
files: [],
|
8130
8189
|
onFileAccepted: i,
|
8131
|
-
maxFileCount:
|
8132
|
-
maxSizeBytes:
|
8133
|
-
minSizeBytes:
|
8134
|
-
maxDurationS:
|
8190
|
+
maxFileCount: jp,
|
8191
|
+
maxSizeBytes: Fp,
|
8192
|
+
minSizeBytes: Pp,
|
8193
|
+
maxDurationS: Ip,
|
8135
8194
|
children: e
|
8136
8195
|
}
|
8137
8196
|
);
|
8138
8197
|
};
|
8139
8198
|
export {
|
8140
|
-
|
8141
|
-
|
8142
|
-
|
8143
|
-
|
8144
|
-
|
8145
|
-
|
8146
|
-
|
8147
|
-
|
8148
|
-
|
8199
|
+
Xs as AudioFilePickerRoot,
|
8200
|
+
Mp as ConvertStep,
|
8201
|
+
Up as FilePicker,
|
8202
|
+
Wp as GuestConvertProvider,
|
8203
|
+
Tp as MIN_RECORDING_LENGTH_MS,
|
8204
|
+
vp as PlayerProvider,
|
8205
|
+
ja as RECORDED_AUDIO_NAME,
|
8206
|
+
Lp as useAudioFilePickerContext,
|
8207
|
+
Dp as useGuestConvertContext,
|
8208
|
+
Np as usePlayback,
|
8209
|
+
xp as usePlayer,
|
8210
|
+
$p as usePlayerControls,
|
8211
|
+
qp as useRecorder
|
8149
8212
|
};
|
8150
8213
|
//# sourceMappingURL=index.es.js.map
|