arpeggi-framer-components 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +1102 -1052
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +22 -22
- 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: {} }, jt = {};
|
|
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);
|
@@ -39,10 +39,10 @@ var Ft = {};
|
|
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 Ja() {
|
|
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 Ja() {
|
|
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
|
@@ -238,29 +238,29 @@ function Ja() {
|
|
238
238
|
}), typeof Reflect == "object" && Reflect.construct) {
|
239
239
|
try {
|
240
240
|
Reflect.construct(ie, []);
|
241
|
-
} catch (
|
242
|
-
Y =
|
241
|
+
} catch (Ke) {
|
242
|
+
Y = Ke;
|
243
243
|
}
|
244
244
|
Reflect.construct(d, [], ie);
|
245
245
|
} else {
|
246
246
|
try {
|
247
247
|
ie.call();
|
248
|
-
} catch (
|
249
|
-
Y =
|
248
|
+
} catch (Ke) {
|
249
|
+
Y = Ke;
|
250
250
|
}
|
251
251
|
d.call(ie.prototype);
|
252
252
|
}
|
253
253
|
} else {
|
254
254
|
try {
|
255
255
|
throw Error();
|
256
|
-
} catch (
|
257
|
-
Y =
|
256
|
+
} catch (Ke) {
|
257
|
+
Y = Ke;
|
258
258
|
}
|
259
259
|
d();
|
260
260
|
}
|
261
|
-
} catch (
|
262
|
-
if (
|
263
|
-
for (var ne =
|
261
|
+
} catch (Ke) {
|
262
|
+
if (Ke && Y && typeof Ke.stack == "string") {
|
263
|
+
for (var ne = Ke.stack.split(`
|
264
264
|
`), Fe = Y.stack.split(`
|
265
265
|
`), Oe = ne.length - 1, Ae = Fe.length - 1; Oe >= 1 && Ae >= 0 && ne[Oe] !== Fe[Ae]; )
|
266
266
|
Ae--;
|
@@ -269,9 +269,9 @@ function Ja() {
|
|
269
269
|
if (Oe !== 1 || Ae !== 1)
|
270
270
|
do
|
271
271
|
if (Oe--, Ae--, Ae < 0 || ne[Oe] !== Fe[Ae]) {
|
272
|
-
var
|
272
|
+
var ze = `
|
273
273
|
` + ne[Oe].replace(" at new ", " at ");
|
274
|
-
return d.displayName &&
|
274
|
+
return d.displayName && ze.includes("<anonymous>") && (ze = ze.replace("<anonymous>", d.displayName)), typeof d == "function" && L.set(d, ze), ze;
|
275
275
|
}
|
276
276
|
while (Oe >= 1 && Ae >= 0);
|
277
277
|
break;
|
@@ -280,8 +280,8 @@ function Ja() {
|
|
280
280
|
} finally {
|
281
281
|
ee = !1, z.current = ve, H(), Error.prepareStackTrace = oe;
|
282
282
|
}
|
283
|
-
var vt = d ? d.displayName || d.name : "",
|
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 Ja() {
|
|
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)
|
@@ -346,11 +346,11 @@ function Ja() {
|
|
346
346
|
}
|
347
347
|
}
|
348
348
|
}
|
349
|
-
var
|
350
|
-
function
|
351
|
-
return
|
349
|
+
var He = Array.isArray;
|
350
|
+
function $e(d) {
|
351
|
+
return He(d);
|
352
352
|
}
|
353
|
-
function
|
353
|
+
function Ge(d) {
|
354
354
|
{
|
355
355
|
var R = typeof Symbol == "function" && Symbol.toStringTag, C = R && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
356
356
|
return C;
|
@@ -368,15 +368,15 @@ function Ja() {
|
|
368
368
|
}
|
369
369
|
function ae(d) {
|
370
370
|
if (E(d))
|
371
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
371
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(d)), A(d);
|
372
372
|
}
|
373
373
|
var de = x.ReactCurrentOwner, Te = {
|
374
374
|
key: !0,
|
375
375
|
ref: !0,
|
376
376
|
__self: !0,
|
377
377
|
__source: !0
|
378
|
-
}, Ze,
|
379
|
-
|
378
|
+
}, Ze, Ye, tt;
|
379
|
+
tt = {};
|
380
380
|
function Tt(d) {
|
381
381
|
if (ue.call(d, "ref")) {
|
382
382
|
var R = Object.getOwnPropertyDescriptor(d, "ref").get;
|
@@ -396,7 +396,7 @@ function Ja() {
|
|
396
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
402
|
function Ot(d, R) {
|
@@ -413,7 +413,7 @@ function Ja() {
|
|
413
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));
|
417
417
|
};
|
418
418
|
C.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
419
419
|
get: C,
|
@@ -468,20 +468,20 @@ function Ja() {
|
|
468
468
|
return At(d, ne, Fe, oe, Y, de.current, ie);
|
469
469
|
}
|
470
470
|
}
|
471
|
-
var Dt = x.ReactCurrentOwner,
|
471
|
+
var Dt = x.ReactCurrentOwner, hi = x.ReactDebugCurrentFrame;
|
472
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
486
|
if (Dt.current) {
|
487
487
|
var d = te(Dt.current.type);
|
@@ -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
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
|
-
if (
|
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,7 +566,7 @@ 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];
|
@@ -578,60 +578,60 @@ Check the top-level render call using <` + C + ">.");
|
|
578
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
|
-
d === null ? Oe = "null" :
|
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
592
|
var Ae = Ct(d, R, C, oe, ve);
|
593
593
|
if (Ae == null)
|
594
594
|
return Ae;
|
595
595
|
if (ie) {
|
596
|
-
var
|
597
|
-
if (
|
596
|
+
var ze = R.children;
|
597
|
+
if (ze !== void 0)
|
598
598
|
if (Y)
|
599
|
-
if (
|
600
|
-
for (var vt = 0; vt <
|
601
|
-
|
602
|
-
Object.freeze && Object.freeze(
|
599
|
+
if ($e(ze)) {
|
600
|
+
for (var vt = 0; vt < ze.length; vt++)
|
601
|
+
Ei(ze[vt], d);
|
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
|
-
Ft.Fragment = n, Ft.jsx =
|
617
|
+
var Na = $a, qa = Ma;
|
618
|
+
Ft.Fragment = n, Ft.jsx = Na, Ft.jsxs = qa;
|
619
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 Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { 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 Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { 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 : `--${Xe(n.prefix)}${f.slice(1).replace(/\$/g, "-")}`, m = b ? m : typeof m == "number" ? m && T in
|
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), zt = ["themed", "global", "styled", "onevar", "resonevar", "allvar", "inline"],
|
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 Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { 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;
|
@@ -736,11 +736,11 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { gap: P, gridGap:
|
|
736
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 Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { gap: P, gridGap:
|
|
749
749
|
} catch {
|
750
750
|
}
|
751
751
|
};
|
752
|
-
}, Pt = Symbol(),
|
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 = `${Xe(r.prefix)}c-${
|
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,12 +774,12 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { 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
784
|
for (let m = 0; m < f[Pt].length; m++) {
|
785
785
|
const [v, g] = f[Pt][m];
|
@@ -789,7 +789,7 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { gap: P, gridGap:
|
|
789
789
|
}
|
790
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];
|
@@ -800,9 +800,9 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { gap: P, gridGap:
|
|
800
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
808
|
me.has(re) || (me.add(re), ht(G, [`.${re}`], [], e, (U) => {
|
@@ -810,14 +810,14 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { gap: P, gridGap:
|
|
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}-${
|
813
|
+
const V = `${x}-${ct(G)}-${j}`;
|
814
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${
|
820
|
+
const x = `${n}-i${ct(f)}-css`;
|
821
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
|
}));
|
@@ -826,8 +826,8 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { 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 si(l, { className: n, selector: p, [
|
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 Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { 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,11 +867,11 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { 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;
|
@@ -886,8 +886,8 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { gap: P, gridGap:
|
|
886
886
|
return "";
|
887
887
|
};
|
888
888
|
return si(n, { toString: n });
|
889
|
-
}),
|
890
|
-
const n = `${Xe(e.prefix)}k-${
|
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 = [];
|
@@ -900,7 +900,7 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { gap: P, gridGap:
|
|
900
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
|
}
|
@@ -913,14 +913,14 @@ var Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { gap: P, gridGap:
|
|
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 : "") || `${Xe(e.prefix)}t-${
|
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 = `--${Xe(e.prefix)}${c}-${p}`, u =
|
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 Ie = Xa(), fe = "colors", Pe = "sizes", P = "space", Za = { 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 Et =
|
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 Et = nt("div", {
|
|
1299
1299
|
}
|
1300
1300
|
}
|
1301
1301
|
});
|
1302
|
-
var It = {},
|
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
|
-
return
|
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 _o() {
|
|
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 Ao() {
|
|
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
|
2295
|
+
var Li;
|
2296
|
+
function Do() {
|
2297
|
+
return Li || (Li = 1, function(e) {
|
2298
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);
|
@@ -2330,7 +2330,7 @@ function Co() {
|
|
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 Do = Co(), 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 Fo() {
|
|
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 Fo() {
|
|
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 Po() {
|
|
2552
2552
|
return c;
|
2553
2553
|
}, Tn;
|
2554
2554
|
}
|
2555
|
-
var kn,
|
2555
|
+
var kn, Wi;
|
2556
2556
|
function ci() {
|
2557
|
-
if (
|
2558
|
-
|
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__ */ ci(), i = {}, n = /* @__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 Io() {
|
|
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 Bo() {
|
|
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,16 +2927,16 @@ 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
|
-
|
2936
|
+
var Cn, Gi;
|
2937
|
+
function Lo() {
|
2938
|
+
if (Gi) return Cn;
|
2939
|
+
Gi = 1;
|
2940
2940
|
var e = /* @__PURE__ */ ci();
|
2941
2941
|
function t() {
|
2942
2942
|
}
|
@@ -2981,18 +2981,18 @@ function zo() {
|
|
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__ */
|
2994
|
+
var $o = /* @__PURE__ */ Mo();
|
2995
|
+
const ge = /* @__PURE__ */ Pr($o);
|
2996
2996
|
function ft(e, t, i, n) {
|
2997
2997
|
function r(a) {
|
2998
2998
|
return a instanceof i ? a : new i(function(o) {
|
@@ -3020,7 +3020,7 @@ function ft(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"],
|
@@ -4224,13 +4224,13 @@ const $o = /* @__PURE__ */ new Map([
|
|
4224
4224
|
["zsh", "text/x-scriptzsh"]
|
4225
4225
|
]);
|
4226
4226
|
function yt(e, t, i) {
|
4227
|
-
const n =
|
4228
|
-
return typeof n.path != "string" &&
|
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 No(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,51 +4248,51 @@ function Yi(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
|
4258
|
+
function Uo(e) {
|
4259
4259
|
return ft(this, void 0, void 0, function* () {
|
4260
|
-
return ln(e) &&
|
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 Ho(e) {
|
4273
|
-
return Hn(e.target.files).map((t) => yt(t));
|
4274
|
-
}
|
4275
4272
|
function Go(e) {
|
4273
|
+
return Vn(e.target.files).map((t) => yt(t));
|
4274
|
+
}
|
4275
|
+
function Yo(e) {
|
4276
4276
|
return ft(this, void 0, void 0, function* () {
|
4277
4277
|
return (yield Promise.all(e.map((i) => i.getFile()))).map((i) => yt(i));
|
4278
4278
|
});
|
4279
4279
|
}
|
4280
|
-
function
|
4280
|
+
function Ko(e, t) {
|
4281
4281
|
return ft(this, void 0, void 0, function* () {
|
4282
4282
|
if (e.items) {
|
4283
|
-
const i =
|
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
|
-
function
|
4295
|
+
function Vn(e) {
|
4296
4296
|
if (e === null)
|
4297
4297
|
return [];
|
4298
4298
|
const t = [];
|
@@ -4302,19 +4302,19 @@ function Hn(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
|
4317
|
+
function Xi(e, t) {
|
4318
4318
|
return ft(this, void 0, void 0, function* () {
|
4319
4319
|
var i;
|
4320
4320
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
@@ -4332,19 +4332,19 @@ function Ji(e, t) {
|
|
4332
4332
|
return yt(n, (i = t == null ? void 0 : t.fullPath) !== null && i !== void 0 ? i : void 0);
|
4333
4333
|
});
|
4334
4334
|
}
|
4335
|
-
function
|
4335
|
+
function Xo(e) {
|
4336
4336
|
return ft(this, void 0, void 0, function* () {
|
4337
|
-
return e.isDirectory ?
|
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
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,7 +4360,7 @@ function Br(e) {
|
|
4360
4360
|
a();
|
4361
4361
|
});
|
4362
4362
|
}
|
4363
|
-
function
|
4363
|
+
function Zo(e) {
|
4364
4364
|
return ft(this, void 0, void 0, function* () {
|
4365
4365
|
return new Promise((t, i) => {
|
4366
4366
|
e.file((n) => {
|
@@ -4372,9 +4372,9 @@ function Xo(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 Zo() {
|
|
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
|
4404
|
-
if (Array.isArray(e)) return
|
4403
|
+
function is(e) {
|
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,42 +4413,42 @@ function Qi(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
|
-
if (typeof e == "string") return
|
4439
|
+
if (typeof e == "string") return Hn(e, t);
|
4440
4440
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
4441
4441
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
4442
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
4442
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Hn(e, t);
|
4443
4443
|
}
|
4444
4444
|
}
|
4445
|
-
function
|
4445
|
+
function Hn(e, t) {
|
4446
4446
|
(t == null || t > e.length) && (t = e.length);
|
4447
4447
|
for (var i = 0, n = new Array(t); i < t; i++)
|
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,76 +4467,76 @@ function rs(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 :
|
4496
|
-
}
|
4497
|
-
function
|
4498
|
-
if (
|
4499
|
-
if (
|
4500
|
-
if (e.size > i) return [!1,
|
4501
|
-
if (e.size < t) return [!1,
|
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
|
+
}
|
4497
|
+
function Ur(e, t, i) {
|
4498
|
+
if (rt(e.size))
|
4499
|
+
if (rt(t) && rt(i)) {
|
4500
|
+
if (e.size > i) return [!1, nr(i)];
|
4501
|
+
if (e.size < t) return [!1, ir(t)];
|
4502
4502
|
} else {
|
4503
|
-
if (
|
4504
|
-
if (
|
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
|
-
function
|
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
|
-
function
|
4539
|
+
function qe() {
|
4540
4540
|
for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
|
4541
4541
|
t[i] = arguments[i];
|
4542
4542
|
return function(n) {
|
@@ -4547,17 +4547,17 @@ function We() {
|
|
4547
4547
|
});
|
4548
4548
|
};
|
4549
4549
|
}
|
4550
|
-
function
|
4550
|
+
function hs() {
|
4551
4551
|
return "showOpenFilePicker" in window;
|
4552
4552
|
}
|
4553
|
-
function
|
4554
|
-
if (
|
4553
|
+
function ys(e) {
|
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,63 +4567,63 @@ function hs(e) {
|
|
4567
4567
|
}
|
4568
4568
|
return e;
|
4569
4569
|
}
|
4570
|
-
function
|
4571
|
-
if (
|
4570
|
+
function bs(e) {
|
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
|
4603
|
-
if (Array.isArray(e)) return
|
4602
|
+
function Cs(e) {
|
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
|
-
if (typeof e == "string") return
|
4614
|
+
if (typeof e == "string") return Gn(e, t);
|
4615
4615
|
var i = Object.prototype.toString.call(e).slice(8, -1);
|
4616
4616
|
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
4617
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return
|
4617
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Gn(e, t);
|
4618
4618
|
}
|
4619
4619
|
}
|
4620
|
-
function
|
4620
|
+
function Gn(e, t) {
|
4621
4621
|
(t == null || t > e.length) && (t = e.length);
|
4622
4622
|
for (var i = 0, n = new Array(t); i < t; i++)
|
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 Ds(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,20 +4658,20 @@ function rr(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 ?
|
4662
|
-
|
4663
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) :
|
4661
|
+
t % 2 ? ar(Object(i), !0).forEach(function(n) {
|
4662
|
+
Yn(e, n, i[n]);
|
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
|
}
|
4667
4667
|
return e;
|
4668
4668
|
}
|
4669
|
-
function
|
4669
|
+
function Yn(e, t, i) {
|
4670
4670
|
return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e;
|
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 li = /* @__PURE__ */
|
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
4699
|
li.displayName = "Dropzone";
|
4700
|
-
var
|
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,7 +4713,7 @@ var Ur = {
|
|
4713
4713
|
useFsAccessApi: !1,
|
4714
4714
|
autoFocus: !1
|
4715
4715
|
};
|
4716
|
-
li.defaultProps =
|
4716
|
+
li.defaultProps = Yr;
|
4717
4717
|
li.propTypes = {
|
4718
4718
|
/**
|
4719
4719
|
* Render function that exposes the dropzone state and prop getter fns
|
@@ -4882,7 +4882,7 @@ li.propTypes = {
|
|
4882
4882
|
*/
|
4883
4883
|
validator: ge.func
|
4884
4884
|
};
|
4885
|
-
var
|
4885
|
+
var Kn = {
|
4886
4886
|
isFocused: !1,
|
4887
4887
|
isFileDialogActive: !1,
|
4888
4888
|
isDragActive: !1,
|
@@ -4891,47 +4891,47 @@ var Jn = {
|
|
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({},
|
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() {
|
4896
4898
|
return ys(i);
|
4897
|
-
}, [i]),
|
4898
|
-
return
|
4899
|
-
}, [
|
4900
|
-
return typeof
|
4901
|
-
}, [
|
4902
|
-
return typeof g == "function" ? g : ar;
|
4903
|
-
}, [g]), U = we(null), le = we(null), Ee = Na(Ps, Jn), Se = jn(Ee, 2), pe = Se[0], ye = Se[1], S = pe.isFocused, O = pe.isFileDialogActive, I = we(typeof window < "u" && window.isSecureContext && x && gs()), q = function() {
|
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 Vr() {
|
|
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 Vr() {
|
|
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,21 +4960,21 @@ function Vr() {
|
|
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 Ze =
|
4977
|
-
if (
|
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
4980
|
var Ct = [Tt, _t];
|
@@ -4988,25 +4988,25 @@ function Vr() {
|
|
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 Vr() {
|
|
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
|
-
},
|
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, Ze = E.onFocus,
|
5055
|
-
return ke(ke(
|
5056
|
-
onKeyDown: X(
|
5057
|
-
onFocus: X(
|
5058
|
-
onBlur: X(
|
5059
|
-
onClick: Re(
|
5060
|
-
onDragEnter: Q(
|
5061
|
-
onDragOver: Q(
|
5062
|
-
onDragLeave: Q(
|
5063
|
-
onDrop: Q(
|
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
|
+
return ke(ke(Yn({
|
5056
|
+
onKeyDown: X(qe(Te, F)),
|
5057
|
+
onFocus: X(qe(Ze, J)),
|
5058
|
+
onBlur: X(qe(Ye, M)),
|
5059
|
+
onClick: Re(qe(tt, ue)),
|
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
|
-
}, [U, F, J, M, ue, W, K, ee, xe, b, D, n]),
|
5069
|
+
}, [U, F, J, M, ue, W, K, ee, xe, b, D, n]), $e = _e(function(E) {
|
5070
5070
|
E.stopPropagation();
|
5071
|
-
}, []),
|
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, Ze = un(E,
|
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",
|
@@ -5086,23 +5086,23 @@ function Vr() {
|
|
5086
5086
|
width: "1px",
|
5087
5087
|
whiteSpace: "nowrap"
|
5088
5088
|
},
|
5089
|
-
onChange: Re(
|
5090
|
-
onClick: Re(
|
5089
|
+
onChange: Re(qe(de, xe)),
|
5090
|
+
onClick: Re(qe(Te, $e)),
|
5091
5091
|
tabIndex: -1
|
5092
5092
|
}, ae, le);
|
5093
|
-
return ke(ke({},
|
5093
|
+
return ke(ke({}, Ye), Ze);
|
5094
5094
|
};
|
5095
5095
|
}, [le, i, s, xe, n]);
|
5096
5096
|
return ke(ke({}, pe), {}, {
|
5097
5097
|
isFocused: S && !n,
|
5098
|
-
getRootProps:
|
5099
|
-
getInputProps:
|
5098
|
+
getRootProps: He,
|
5099
|
+
getInputProps: Ge,
|
5100
5100
|
rootRef: U,
|
5101
5101
|
inputRef: le,
|
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), {}, {
|
@@ -5113,7 +5113,7 @@ function Ps(e, t) {
|
|
5113
5113
|
isFocused: !1
|
5114
5114
|
});
|
5115
5115
|
case "openDialog":
|
5116
|
-
return ke(ke({},
|
5116
|
+
return ke(ke({}, Kn), {}, {
|
5117
5117
|
isFileDialogActive: !0
|
5118
5118
|
});
|
5119
5119
|
case "closeDialog":
|
@@ -5133,25 +5133,25 @@ function Ps(e, t) {
|
|
5133
5133
|
isDragReject: t.isDragReject
|
5134
5134
|
});
|
5135
5135
|
case "reset":
|
5136
|
-
return ke({},
|
5136
|
+
return ke({}, Kn);
|
5137
5137
|
default:
|
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 Is = {
|
|
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 Is = {
|
|
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 Gs = (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 Gs = (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 Gs = (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 Gs = (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 Gs = (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,33 +5312,23 @@ const Gs = (e) => ({
|
|
5312
5312
|
alignItems: "stretch",
|
5313
5313
|
maxHeight: "500px",
|
5314
5314
|
justifyContent: "center"
|
5315
|
-
}),
|
5316
|
-
fontFamily: "var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))",
|
5317
|
-
lineHeight: "1.4",
|
5318
|
-
fontSize: "22px",
|
5319
|
-
fontWeight: 600,
|
5320
|
-
color: "#ffffff"
|
5321
|
-
}), Qs = nt(Et, {
|
5315
|
+
}), Qs = dt(Et, {
|
5322
5316
|
paddingTop: "32px",
|
5323
5317
|
display: "flex",
|
5324
|
-
justifyContent: "center"
|
5325
|
-
|
5326
|
-
lineHeight: "1.4",
|
5327
|
-
fontSize: "22px",
|
5328
|
-
fontWeight: 600,
|
5329
|
-
color: "#ffffff"
|
5330
|
-
}), ec = nt(Et, {
|
5318
|
+
justifyContent: "center"
|
5319
|
+
}), ec = dt(Et, {
|
5331
5320
|
flex: 1,
|
5321
|
+
gap: "16px",
|
5332
5322
|
display: "flex",
|
5333
5323
|
alignItems: "center",
|
5334
5324
|
justifyContent: "center",
|
5335
|
-
padding: "
|
5336
|
-
}), tc =
|
5325
|
+
padding: "16px"
|
5326
|
+
}), tc = dt(Et, {
|
5337
5327
|
borderTop: "1px solid #ffffff10",
|
5338
5328
|
display: "flex",
|
5339
5329
|
alignItems: "stretch",
|
5340
|
-
height: "
|
5341
|
-
}),
|
5330
|
+
height: "96px"
|
5331
|
+
}), nc = dt(Et, {
|
5342
5332
|
height: "252px",
|
5343
5333
|
width: "222px",
|
5344
5334
|
borderRadius: "8px",
|
@@ -5348,43 +5338,41 @@ const Gs = (e) => ({
|
|
5348
5338
|
flexDirection: "column",
|
5349
5339
|
alignItems: "center",
|
5350
5340
|
justifyContent: "center"
|
5351
|
-
}),
|
5352
|
-
|
5353
|
-
|
5354
|
-
|
5355
|
-
|
5356
|
-
|
5357
|
-
|
5358
|
-
|
5359
|
-
] });
|
5360
|
-
function Gr(e, t) {
|
5341
|
+
}), Mp = {
|
5342
|
+
Root: Zs,
|
5343
|
+
Header: Qs,
|
5344
|
+
Content: ec,
|
5345
|
+
Footer: tc,
|
5346
|
+
Card: nc
|
5347
|
+
};
|
5348
|
+
function Xr(e, t) {
|
5361
5349
|
return function() {
|
5362
5350
|
return e.apply(t, arguments);
|
5363
5351
|
};
|
5364
5352
|
}
|
5365
|
-
const { toString:
|
5366
|
-
const i =
|
5353
|
+
const { toString: ic } = Object.prototype, { getPrototypeOf: pi } = Object, mn = /* @__PURE__ */ ((e) => (t) => {
|
5354
|
+
const i = ic.call(t);
|
5367
5355
|
return e[i] || (e[i] = i.slice(8, -1).toLowerCase());
|
5368
|
-
})(/* @__PURE__ */ Object.create(null)),
|
5369
|
-
function ic(e) {
|
5370
|
-
return e !== null && !Mt(e) && e.constructor !== null && !Mt(e.constructor) && ze(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
5371
|
-
}
|
5372
|
-
const Yr = qe("ArrayBuffer");
|
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");
|
5373
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
|
+
}
|
5360
|
+
const Zr = Ne("ArrayBuffer");
|
5361
|
+
function ac(e) {
|
5374
5362
|
let t;
|
5375
|
-
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;
|
5376
5364
|
}
|
5377
|
-
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) => {
|
5378
5366
|
if (mn(e) !== "object")
|
5379
5367
|
return !1;
|
5380
5368
|
const t = pi(e);
|
5381
5369
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
5382
|
-
},
|
5370
|
+
}, cc = Ne("Date"), lc = Ne("File"), pc = Ne("Blob"), uc = Ne("FileList"), dc = (e) => vn(e) && Be(e.pipe), fc = (e) => {
|
5383
5371
|
let t;
|
5384
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
5385
|
-
t === "object" &&
|
5386
|
-
},
|
5387
|
-
function
|
5372
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Be(e.append) && ((t = mn(e)) === "formdata" || // detect form-data instance
|
5373
|
+
t === "object" && Be(e.toString) && e.toString() === "[object FormData]"));
|
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 } = {}) {
|
5388
5376
|
if (e === null || typeof e > "u")
|
5389
5377
|
return;
|
5390
5378
|
let n, r;
|
@@ -5398,7 +5386,7 @@ function qt(e, t, { allOwnKeys: i = !1 } = {}) {
|
|
5398
5386
|
s = a[n], t.call(null, e[s], s, e);
|
5399
5387
|
}
|
5400
5388
|
}
|
5401
|
-
function
|
5389
|
+
function ea(e, t) {
|
5402
5390
|
t = t.toLowerCase();
|
5403
5391
|
const i = Object.keys(e);
|
5404
5392
|
let n = i.length, r;
|
@@ -5407,23 +5395,23 @@ function Jr(e, t) {
|
|
5407
5395
|
return r;
|
5408
5396
|
return null;
|
5409
5397
|
}
|
5410
|
-
const
|
5411
|
-
function
|
5412
|
-
const { caseless: e } =
|
5413
|
-
const a = e &&
|
5414
|
-
an(t[a]) && an(n) ? t[a] =
|
5398
|
+
const at = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ta = (e) => !$t(e) && e !== at;
|
5399
|
+
function Jn() {
|
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;
|
5415
5403
|
};
|
5416
5404
|
for (let n = 0, r = arguments.length; n < r; n++)
|
5417
|
-
arguments[n] &&
|
5405
|
+
arguments[n] && Wt(arguments[n], i);
|
5418
5406
|
return t;
|
5419
5407
|
}
|
5420
|
-
const
|
5421
|
-
i &&
|
5422
|
-
}, { 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) => {
|
5423
5411
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
5424
5412
|
value: t.prototype
|
5425
5413
|
}), i && Object.assign(e.prototype, i);
|
5426
|
-
},
|
5414
|
+
}, Sc = (e, t, i, n) => {
|
5427
5415
|
let r, a, o;
|
5428
5416
|
const s = {};
|
5429
5417
|
if (t = t || {}, e == null) return t;
|
@@ -5433,49 +5421,49 @@ const yc = (e, t, i, { allOwnKeys: n } = {}) => (qt(t, (r, a) => {
|
|
5433
5421
|
e = i !== !1 && pi(e);
|
5434
5422
|
} while (e && (!i || i(e, t)) && e !== Object.prototype);
|
5435
5423
|
return t;
|
5436
|
-
},
|
5424
|
+
}, Rc = (e, t, i) => {
|
5437
5425
|
e = String(e), (i === void 0 || i > e.length) && (i = e.length), i -= t.length;
|
5438
5426
|
const n = e.indexOf(t, i);
|
5439
5427
|
return n !== -1 && n === i;
|
5440
|
-
},
|
5428
|
+
}, Tc = (e) => {
|
5441
5429
|
if (!e) return null;
|
5442
5430
|
if (St(e)) return e;
|
5443
5431
|
let t = e.length;
|
5444
|
-
if (!
|
5432
|
+
if (!Qr(t)) return null;
|
5445
5433
|
const i = new Array(t);
|
5446
5434
|
for (; t-- > 0; )
|
5447
5435
|
i[t] = e[t];
|
5448
5436
|
return i;
|
5449
|
-
},
|
5437
|
+
}, kc = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && pi(Uint8Array)), Oc = (e, t) => {
|
5450
5438
|
const n = (e && e[Symbol.iterator]).call(e);
|
5451
5439
|
let r;
|
5452
5440
|
for (; (r = n.next()) && !r.done; ) {
|
5453
5441
|
const a = r.value;
|
5454
5442
|
t.call(e, a[0], a[1]);
|
5455
5443
|
}
|
5456
|
-
},
|
5444
|
+
}, _c = (e, t) => {
|
5457
5445
|
let i;
|
5458
5446
|
const n = [];
|
5459
5447
|
for (; (i = e.exec(t)) !== null; )
|
5460
5448
|
n.push(i);
|
5461
5449
|
return n;
|
5462
|
-
},
|
5450
|
+
}, Ac = Ne("HTMLFormElement"), Cc = (e) => e.toLowerCase().replace(
|
5463
5451
|
/[-_\s]([a-z\d])(\w*)/g,
|
5464
5452
|
function(i, n, r) {
|
5465
5453
|
return n.toUpperCase() + r;
|
5466
5454
|
}
|
5467
|
-
),
|
5455
|
+
), cr = (({ hasOwnProperty: e }) => (t, i) => e.call(t, i))(Object.prototype), Dc = Ne("RegExp"), na = (e, t) => {
|
5468
5456
|
const i = Object.getOwnPropertyDescriptors(e), n = {};
|
5469
|
-
|
5457
|
+
Wt(i, (r, a) => {
|
5470
5458
|
let o;
|
5471
5459
|
(o = t(r, a, e)) !== !1 && (n[a] = o || r);
|
5472
5460
|
}), Object.defineProperties(e, n);
|
5473
|
-
},
|
5474
|
-
|
5475
|
-
if (
|
5461
|
+
}, jc = (e) => {
|
5462
|
+
na(e, (t, i) => {
|
5463
|
+
if (Be(e) && ["arguments", "caller", "callee"].indexOf(i) !== -1)
|
5476
5464
|
return !1;
|
5477
5465
|
const n = e[i];
|
5478
|
-
if (
|
5466
|
+
if (Be(n)) {
|
5479
5467
|
if (t.enumerable = !1, "writable" in t) {
|
5480
5468
|
t.writable = !1;
|
5481
5469
|
return;
|
@@ -5485,29 +5473,29 @@ const yc = (e, t, i, { allOwnKeys: n } = {}) => (qt(t, (r, a) => {
|
|
5485
5473
|
});
|
5486
5474
|
}
|
5487
5475
|
});
|
5488
|
-
},
|
5476
|
+
}, Fc = (e, t) => {
|
5489
5477
|
const i = {}, n = (r) => {
|
5490
5478
|
r.forEach((a) => {
|
5491
5479
|
i[a] = !0;
|
5492
5480
|
});
|
5493
5481
|
};
|
5494
5482
|
return St(e) ? n(e) : n(String(e).split(t)), i;
|
5495
|
-
},
|
5496
|
-
},
|
5497
|
-
DIGIT:
|
5498
|
-
ALPHA:
|
5499
|
-
ALPHA_DIGIT:
|
5500
|
-
},
|
5483
|
+
}, Pc = () => {
|
5484
|
+
}, Ic = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Fn = "abcdefghijklmnopqrstuvwxyz", lr = "0123456789", ia = {
|
5485
|
+
DIGIT: lr,
|
5486
|
+
ALPHA: Fn,
|
5487
|
+
ALPHA_DIGIT: Fn + Fn.toUpperCase() + lr
|
5488
|
+
}, Bc = (e = 16, t = ia.ALPHA_DIGIT) => {
|
5501
5489
|
let i = "";
|
5502
5490
|
const { length: n } = t;
|
5503
5491
|
for (; e--; )
|
5504
5492
|
i += t[Math.random() * n | 0];
|
5505
5493
|
return i;
|
5506
5494
|
};
|
5507
|
-
function
|
5508
|
-
return !!(e &&
|
5495
|
+
function zc(e) {
|
5496
|
+
return !!(e && Be(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
5509
5497
|
}
|
5510
|
-
const
|
5498
|
+
const Lc = (e) => {
|
5511
5499
|
const t = new Array(10), i = (n, r) => {
|
5512
5500
|
if (vn(n)) {
|
5513
5501
|
if (t.indexOf(n) >= 0)
|
@@ -5515,81 +5503,81 @@ const zc = (e) => {
|
|
5515
5503
|
if (!("toJSON" in n)) {
|
5516
5504
|
t[r] = n;
|
5517
5505
|
const a = St(n) ? [] : {};
|
5518
|
-
return
|
5506
|
+
return Wt(n, (o, s) => {
|
5519
5507
|
const c = i(o, r + 1);
|
5520
|
-
|
5508
|
+
!$t(c) && (a[s] = c);
|
5521
5509
|
}), t[r] = void 0, a;
|
5522
5510
|
}
|
5523
5511
|
}
|
5524
5512
|
return n;
|
5525
5513
|
};
|
5526
5514
|
return i(e, 0);
|
5527
|
-
},
|
5528
|
-
r ===
|
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
|
+
r === at && a === i && n.length && n.shift()();
|
5529
5517
|
}, !1), (r) => {
|
5530
|
-
n.push(r),
|
5518
|
+
n.push(r), at.postMessage(i, "*");
|
5531
5519
|
}))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
|
5532
5520
|
typeof setImmediate == "function",
|
5533
|
-
|
5534
|
-
),
|
5521
|
+
Be(at.postMessage)
|
5522
|
+
), Nc = typeof queueMicrotask < "u" ? queueMicrotask.bind(at) : typeof process < "u" && process.nextTick || ra, h = {
|
5535
5523
|
isArray: St,
|
5536
|
-
isArrayBuffer:
|
5537
|
-
isBuffer:
|
5538
|
-
isFormData:
|
5539
|
-
isArrayBufferView:
|
5540
|
-
isString:
|
5541
|
-
isNumber:
|
5542
|
-
isBoolean:
|
5524
|
+
isArrayBuffer: Zr,
|
5525
|
+
isBuffer: rc,
|
5526
|
+
isFormData: fc,
|
5527
|
+
isArrayBufferView: ac,
|
5528
|
+
isString: oc,
|
5529
|
+
isNumber: Qr,
|
5530
|
+
isBoolean: sc,
|
5543
5531
|
isObject: vn,
|
5544
5532
|
isPlainObject: an,
|
5545
|
-
isReadableStream:
|
5546
|
-
isRequest:
|
5547
|
-
isResponse:
|
5548
|
-
isHeaders:
|
5549
|
-
isUndefined:
|
5550
|
-
isDate:
|
5551
|
-
isFile:
|
5552
|
-
isBlob:
|
5553
|
-
isRegExp:
|
5554
|
-
isFunction:
|
5555
|
-
isStream:
|
5556
|
-
isURLSearchParams:
|
5557
|
-
isTypedArray:
|
5558
|
-
isFileList:
|
5559
|
-
forEach:
|
5560
|
-
merge:
|
5561
|
-
extend:
|
5562
|
-
trim:
|
5563
|
-
stripBOM:
|
5564
|
-
inherits:
|
5565
|
-
toFlatObject:
|
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
|
+
isFunction: Be,
|
5543
|
+
isStream: dc,
|
5544
|
+
isURLSearchParams: mc,
|
5545
|
+
isTypedArray: kc,
|
5546
|
+
isFileList: uc,
|
5547
|
+
forEach: Wt,
|
5548
|
+
merge: Jn,
|
5549
|
+
extend: bc,
|
5550
|
+
trim: yc,
|
5551
|
+
stripBOM: wc,
|
5552
|
+
inherits: Ec,
|
5553
|
+
toFlatObject: Sc,
|
5566
5554
|
kindOf: mn,
|
5567
|
-
kindOfTest:
|
5568
|
-
endsWith:
|
5569
|
-
toArray:
|
5570
|
-
forEachEntry:
|
5571
|
-
matchAll:
|
5572
|
-
isHTMLForm:
|
5573
|
-
hasOwnProperty:
|
5574
|
-
hasOwnProp:
|
5555
|
+
kindOfTest: Ne,
|
5556
|
+
endsWith: Rc,
|
5557
|
+
toArray: Tc,
|
5558
|
+
forEachEntry: Oc,
|
5559
|
+
matchAll: _c,
|
5560
|
+
isHTMLForm: Ac,
|
5561
|
+
hasOwnProperty: cr,
|
5562
|
+
hasOwnProp: cr,
|
5575
5563
|
// an alias to avoid ESLint no-prototype-builtins detection
|
5576
|
-
reduceDescriptors:
|
5577
|
-
freezeMethods:
|
5578
|
-
toObjectSet:
|
5579
|
-
toCamelCase:
|
5580
|
-
noop:
|
5581
|
-
toFiniteNumber:
|
5582
|
-
findKey:
|
5583
|
-
global:
|
5584
|
-
isContextDefined:
|
5585
|
-
ALPHABET:
|
5586
|
-
generateString:
|
5587
|
-
isSpecCompliantForm:
|
5588
|
-
toJSONObject:
|
5589
|
-
isAsyncFn:
|
5590
|
-
isThenable:
|
5591
|
-
setImmediate:
|
5592
|
-
asap:
|
5564
|
+
reduceDescriptors: na,
|
5565
|
+
freezeMethods: jc,
|
5566
|
+
toObjectSet: Fc,
|
5567
|
+
toCamelCase: Cc,
|
5568
|
+
noop: Pc,
|
5569
|
+
toFiniteNumber: Ic,
|
5570
|
+
findKey: ea,
|
5571
|
+
global: at,
|
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
|
5593
5581
|
};
|
5594
5582
|
function Z(e, t, i, n, r) {
|
5595
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);
|
@@ -5615,7 +5603,7 @@ h.inherits(Z, Error, {
|
|
5615
5603
|
};
|
5616
5604
|
}
|
5617
5605
|
});
|
5618
|
-
const
|
5606
|
+
const aa = Z.prototype, oa = {};
|
5619
5607
|
[
|
5620
5608
|
"ERR_BAD_OPTION_VALUE",
|
5621
5609
|
"ERR_BAD_OPTION",
|
@@ -5631,32 +5619,32 @@ const ta = Z.prototype, na = {};
|
|
5631
5619
|
"ERR_INVALID_URL"
|
5632
5620
|
// eslint-disable-next-line func-names
|
5633
5621
|
].forEach((e) => {
|
5634
|
-
|
5622
|
+
oa[e] = { value: e };
|
5635
5623
|
});
|
5636
|
-
Object.defineProperties(Z,
|
5637
|
-
Object.defineProperty(
|
5624
|
+
Object.defineProperties(Z, oa);
|
5625
|
+
Object.defineProperty(aa, "isAxiosError", { value: !0 });
|
5638
5626
|
Z.from = (e, t, i, n, r, a) => {
|
5639
|
-
const o = Object.create(
|
5627
|
+
const o = Object.create(aa);
|
5640
5628
|
return h.toFlatObject(e, o, function(c) {
|
5641
5629
|
return c !== Error.prototype;
|
5642
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;
|
5643
5631
|
};
|
5644
|
-
const
|
5645
|
-
function
|
5632
|
+
const qc = null;
|
5633
|
+
function Xn(e) {
|
5646
5634
|
return h.isPlainObject(e) || h.isArray(e);
|
5647
5635
|
}
|
5648
|
-
function
|
5636
|
+
function sa(e) {
|
5649
5637
|
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
5650
5638
|
}
|
5651
|
-
function
|
5639
|
+
function pr(e, t, i) {
|
5652
5640
|
return e ? e.concat(t).map(function(r, a) {
|
5653
|
-
return r =
|
5641
|
+
return r = sa(r), !i && a ? "[" + r + "]" : r;
|
5654
5642
|
}).join(i ? "." : "") : t;
|
5655
5643
|
}
|
5656
|
-
function
|
5657
|
-
return h.isArray(e) && !e.some(
|
5644
|
+
function Wc(e) {
|
5645
|
+
return h.isArray(e) && !e.some(Xn);
|
5658
5646
|
}
|
5659
|
-
const
|
5647
|
+
const Uc = h.toFlatObject(h, {}, null, function(t) {
|
5660
5648
|
return /^is[A-Z]/.test(t);
|
5661
5649
|
});
|
5662
5650
|
function gn(e, t, i) {
|
@@ -5685,21 +5673,21 @@ function gn(e, t, i) {
|
|
5685
5673
|
if (v && !w && typeof v == "object") {
|
5686
5674
|
if (h.endsWith(g, "{}"))
|
5687
5675
|
g = n ? g : g.slice(0, -2), v = JSON.stringify(v);
|
5688
|
-
else if (h.isArray(v) &&
|
5689
|
-
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) {
|
5690
5678
|
!(h.isUndefined(_) || _ === null) && t.append(
|
5691
5679
|
// eslint-disable-next-line no-nested-ternary
|
5692
|
-
o === !0 ?
|
5680
|
+
o === !0 ? pr([g], T, a) : o === null ? g : g + "[]",
|
5693
5681
|
p(_)
|
5694
5682
|
);
|
5695
5683
|
}), !1;
|
5696
5684
|
}
|
5697
|
-
return
|
5685
|
+
return Xn(v) ? !0 : (t.append(pr(w, g, a), p(v)), !1);
|
5698
5686
|
}
|
5699
|
-
const u = [], f = Object.assign(
|
5687
|
+
const u = [], f = Object.assign(Uc, {
|
5700
5688
|
defaultVisitor: l,
|
5701
5689
|
convertValue: p,
|
5702
|
-
isVisitable:
|
5690
|
+
isVisitable: Xn
|
5703
5691
|
});
|
5704
5692
|
function m(v, g) {
|
5705
5693
|
if (!h.isUndefined(v)) {
|
@@ -5720,7 +5708,7 @@ function gn(e, t, i) {
|
|
5720
5708
|
throw new TypeError("data must be an object");
|
5721
5709
|
return m(e), t;
|
5722
5710
|
}
|
5723
|
-
function
|
5711
|
+
function ur(e) {
|
5724
5712
|
const t = {
|
5725
5713
|
"!": "%21",
|
5726
5714
|
"'": "%27",
|
@@ -5737,25 +5725,25 @@ function pr(e) {
|
|
5737
5725
|
function ui(e, t) {
|
5738
5726
|
this._pairs = [], e && gn(e, this, t);
|
5739
5727
|
}
|
5740
|
-
const
|
5741
|
-
|
5728
|
+
const ca = ui.prototype;
|
5729
|
+
ca.append = function(t, i) {
|
5742
5730
|
this._pairs.push([t, i]);
|
5743
5731
|
};
|
5744
|
-
|
5732
|
+
ca.toString = function(t) {
|
5745
5733
|
const i = t ? function(n) {
|
5746
|
-
return t.call(this, n,
|
5747
|
-
} :
|
5734
|
+
return t.call(this, n, ur);
|
5735
|
+
} : ur;
|
5748
5736
|
return this._pairs.map(function(r) {
|
5749
5737
|
return i(r[0]) + "=" + i(r[1]);
|
5750
5738
|
}, "").join("&");
|
5751
5739
|
};
|
5752
|
-
function
|
5740
|
+
function Vc(e) {
|
5753
5741
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
5754
5742
|
}
|
5755
|
-
function
|
5743
|
+
function la(e, t, i) {
|
5756
5744
|
if (!t)
|
5757
5745
|
return e;
|
5758
|
-
const n = i && i.encode ||
|
5746
|
+
const n = i && i.encode || Vc;
|
5759
5747
|
h.isFunction(i) && (i = {
|
5760
5748
|
serialize: i
|
5761
5749
|
});
|
@@ -5767,7 +5755,7 @@ function aa(e, t, i) {
|
|
5767
5755
|
}
|
5768
5756
|
return e;
|
5769
5757
|
}
|
5770
|
-
class
|
5758
|
+
class dr {
|
5771
5759
|
constructor() {
|
5772
5760
|
this.handlers = [];
|
5773
5761
|
}
|
@@ -5821,41 +5809,41 @@ class ur {
|
|
5821
5809
|
});
|
5822
5810
|
}
|
5823
5811
|
}
|
5824
|
-
const
|
5812
|
+
const pa = {
|
5825
5813
|
silentJSONParsing: !0,
|
5826
5814
|
forcedJSONParsing: !0,
|
5827
5815
|
clarifyTimeoutError: !1
|
5828
|
-
},
|
5816
|
+
}, Hc = typeof URLSearchParams < "u" ? URLSearchParams : ui, Gc = typeof FormData < "u" ? FormData : null, Yc = typeof Blob < "u" ? Blob : null, Kc = {
|
5829
5817
|
isBrowser: !0,
|
5830
5818
|
classes: {
|
5831
|
-
URLSearchParams:
|
5832
|
-
FormData:
|
5833
|
-
Blob:
|
5819
|
+
URLSearchParams: Hc,
|
5820
|
+
FormData: Gc,
|
5821
|
+
Blob: Yc
|
5834
5822
|
},
|
5835
5823
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
5836
|
-
}, di = typeof window < "u" && typeof document < "u",
|
5837
|
-
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({
|
5838
5826
|
__proto__: null,
|
5839
5827
|
hasBrowserEnv: di,
|
5840
|
-
hasStandardBrowserEnv:
|
5841
|
-
hasStandardBrowserWebWorkerEnv:
|
5842
|
-
navigator:
|
5843
|
-
origin:
|
5828
|
+
hasStandardBrowserEnv: Jc,
|
5829
|
+
hasStandardBrowserWebWorkerEnv: Xc,
|
5830
|
+
navigator: Zn,
|
5831
|
+
origin: Zc
|
5844
5832
|
}, Symbol.toStringTag, { value: "Module" })), je = {
|
5845
|
-
...
|
5846
|
-
...
|
5833
|
+
...Qc,
|
5834
|
+
...Kc
|
5847
5835
|
};
|
5848
|
-
function
|
5836
|
+
function el(e, t) {
|
5849
5837
|
return gn(e, new je.classes.URLSearchParams(), Object.assign({
|
5850
5838
|
visitor: function(i, n, r, a) {
|
5851
5839
|
return je.isNode && h.isBuffer(i) ? (this.append(n, i.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
5852
5840
|
}
|
5853
5841
|
}, t));
|
5854
5842
|
}
|
5855
|
-
function
|
5843
|
+
function tl(e) {
|
5856
5844
|
return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
5857
5845
|
}
|
5858
|
-
function
|
5846
|
+
function nl(e) {
|
5859
5847
|
const t = {}, i = Object.keys(e);
|
5860
5848
|
let n;
|
5861
5849
|
const r = i.length;
|
@@ -5864,22 +5852,22 @@ function tl(e) {
|
|
5864
5852
|
a = i[n], t[a] = e[a];
|
5865
5853
|
return t;
|
5866
5854
|
}
|
5867
|
-
function
|
5855
|
+
function ua(e) {
|
5868
5856
|
function t(i, n, r, a) {
|
5869
5857
|
let o = i[a++];
|
5870
5858
|
if (o === "__proto__") return !0;
|
5871
5859
|
const s = Number.isFinite(+o), c = a >= i.length;
|
5872
|
-
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);
|
5873
5861
|
}
|
5874
5862
|
if (h.isFormData(e) && h.isFunction(e.entries)) {
|
5875
5863
|
const i = {};
|
5876
5864
|
return h.forEachEntry(e, (n, r) => {
|
5877
|
-
t(
|
5865
|
+
t(tl(n), r, i, 0);
|
5878
5866
|
}), i;
|
5879
5867
|
}
|
5880
5868
|
return null;
|
5881
5869
|
}
|
5882
|
-
function
|
5870
|
+
function il(e, t, i) {
|
5883
5871
|
if (h.isString(e))
|
5884
5872
|
try {
|
5885
5873
|
return (t || JSON.parse)(e), h.trim(e);
|
@@ -5889,13 +5877,13 @@ function nl(e, t, i) {
|
|
5889
5877
|
}
|
5890
5878
|
return (0, JSON.stringify)(e);
|
5891
5879
|
}
|
5892
|
-
const
|
5893
|
-
transitional:
|
5880
|
+
const Ut = {
|
5881
|
+
transitional: pa,
|
5894
5882
|
adapter: ["xhr", "http", "fetch"],
|
5895
5883
|
transformRequest: [function(t, i) {
|
5896
5884
|
const n = i.getContentType() || "", r = n.indexOf("application/json") > -1, a = h.isObject(t);
|
5897
5885
|
if (a && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
|
5898
|
-
return r ? JSON.stringify(
|
5886
|
+
return r ? JSON.stringify(ua(t)) : t;
|
5899
5887
|
if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t) || h.isReadableStream(t))
|
5900
5888
|
return t;
|
5901
5889
|
if (h.isArrayBufferView(t))
|
@@ -5905,7 +5893,7 @@ const Wt = {
|
|
5905
5893
|
let s;
|
5906
5894
|
if (a) {
|
5907
5895
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
5908
|
-
return
|
5896
|
+
return el(t, this.formSerializer).toString();
|
5909
5897
|
if ((s = h.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
5910
5898
|
const c = this.env && this.env.FormData;
|
5911
5899
|
return gn(
|
@@ -5915,10 +5903,10 @@ const Wt = {
|
|
5915
5903
|
);
|
5916
5904
|
}
|
5917
5905
|
}
|
5918
|
-
return a || r ? (i.setContentType("application/json", !1),
|
5906
|
+
return a || r ? (i.setContentType("application/json", !1), il(t)) : t;
|
5919
5907
|
}],
|
5920
5908
|
transformResponse: [function(t) {
|
5921
|
-
const i = this.transitional ||
|
5909
|
+
const i = this.transitional || Ut.transitional, n = i && i.forcedJSONParsing, r = this.responseType === "json";
|
5922
5910
|
if (h.isResponse(t) || h.isReadableStream(t))
|
5923
5911
|
return t;
|
5924
5912
|
if (t && h.isString(t) && (n && !this.responseType || r)) {
|
@@ -5956,9 +5944,9 @@ const Wt = {
|
|
5956
5944
|
}
|
5957
5945
|
};
|
5958
5946
|
h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
5959
|
-
|
5947
|
+
Ut.headers[e] = {};
|
5960
5948
|
});
|
5961
|
-
const
|
5949
|
+
const rl = h.toObjectSet([
|
5962
5950
|
"age",
|
5963
5951
|
"authorization",
|
5964
5952
|
"content-length",
|
@@ -5976,29 +5964,29 @@ const il = h.toObjectSet([
|
|
5976
5964
|
"referer",
|
5977
5965
|
"retry-after",
|
5978
5966
|
"user-agent"
|
5979
|
-
]),
|
5967
|
+
]), al = (e) => {
|
5980
5968
|
const t = {};
|
5981
5969
|
let i, n, r;
|
5982
5970
|
return e && e.split(`
|
5983
5971
|
`).forEach(function(o) {
|
5984
|
-
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);
|
5985
5973
|
}), t;
|
5986
|
-
},
|
5974
|
+
}, fr = Symbol("internals");
|
5987
5975
|
function Bt(e) {
|
5988
5976
|
return e && String(e).trim().toLowerCase();
|
5989
5977
|
}
|
5990
5978
|
function on(e) {
|
5991
5979
|
return e === !1 || e == null ? e : h.isArray(e) ? e.map(on) : String(e);
|
5992
5980
|
}
|
5993
|
-
function
|
5981
|
+
function ol(e) {
|
5994
5982
|
const t = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
5995
5983
|
let n;
|
5996
5984
|
for (; n = i.exec(e); )
|
5997
5985
|
t[n[1]] = n[2];
|
5998
5986
|
return t;
|
5999
5987
|
}
|
6000
|
-
const
|
6001
|
-
function
|
5988
|
+
const sl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
5989
|
+
function Pn(e, t, i, n, r) {
|
6002
5990
|
if (h.isFunction(n))
|
6003
5991
|
return n.call(this, t, i);
|
6004
5992
|
if (r && (t = i), !!h.isString(t)) {
|
@@ -6008,10 +5996,10 @@ function In(e, t, i, n, r) {
|
|
6008
5996
|
return n.test(t);
|
6009
5997
|
}
|
6010
5998
|
}
|
6011
|
-
function
|
5999
|
+
function cl(e) {
|
6012
6000
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, i, n) => i.toUpperCase() + n);
|
6013
6001
|
}
|
6014
|
-
function
|
6002
|
+
function ll(e, t) {
|
6015
6003
|
const i = h.toCamelCase(" " + t);
|
6016
6004
|
["get", "set", "has"].forEach((n) => {
|
6017
6005
|
Object.defineProperty(e, n + i, {
|
@@ -6022,7 +6010,7 @@ function cl(e, t) {
|
|
6022
6010
|
});
|
6023
6011
|
});
|
6024
6012
|
}
|
6025
|
-
class
|
6013
|
+
class Ie {
|
6026
6014
|
constructor(t) {
|
6027
6015
|
t && this.set(t);
|
6028
6016
|
}
|
@@ -6038,8 +6026,8 @@ class Be {
|
|
6038
6026
|
const o = (s, c) => h.forEach(s, (p, l) => a(p, l, c));
|
6039
6027
|
if (h.isPlainObject(t) || t instanceof this.constructor)
|
6040
6028
|
o(t, i);
|
6041
|
-
else if (h.isString(t) && (t = t.trim()) && !
|
6042
|
-
o(
|
6029
|
+
else if (h.isString(t) && (t = t.trim()) && !sl(t))
|
6030
|
+
o(al(t), i);
|
6043
6031
|
else if (h.isHeaders(t))
|
6044
6032
|
for (const [s, c] of t.entries())
|
6045
6033
|
a(c, s, n);
|
@@ -6055,7 +6043,7 @@ class Be {
|
|
6055
6043
|
if (!i)
|
6056
6044
|
return r;
|
6057
6045
|
if (i === !0)
|
6058
|
-
return
|
6046
|
+
return ol(r);
|
6059
6047
|
if (h.isFunction(i))
|
6060
6048
|
return i.call(this, r, n);
|
6061
6049
|
if (h.isRegExp(i))
|
@@ -6067,7 +6055,7 @@ class Be {
|
|
6067
6055
|
has(t, i) {
|
6068
6056
|
if (t = Bt(t), t) {
|
6069
6057
|
const n = h.findKey(this, t);
|
6070
|
-
return !!(n && this[n] !== void 0 && (!i ||
|
6058
|
+
return !!(n && this[n] !== void 0 && (!i || Pn(this, this[n], n, i)));
|
6071
6059
|
}
|
6072
6060
|
return !1;
|
6073
6061
|
}
|
@@ -6077,7 +6065,7 @@ class Be {
|
|
6077
6065
|
function a(o) {
|
6078
6066
|
if (o = Bt(o), o) {
|
6079
6067
|
const s = h.findKey(n, o);
|
6080
|
-
s && (!i ||
|
6068
|
+
s && (!i || Pn(n, n[s], s, i)) && (delete n[s], r = !0);
|
6081
6069
|
}
|
6082
6070
|
}
|
6083
6071
|
return h.isArray(t) ? t.forEach(a) : a(t), r;
|
@@ -6087,7 +6075,7 @@ class Be {
|
|
6087
6075
|
let n = i.length, r = !1;
|
6088
6076
|
for (; n--; ) {
|
6089
6077
|
const a = i[n];
|
6090
|
-
(!t ||
|
6078
|
+
(!t || Pn(this, this[a], a, t, !0)) && (delete this[a], r = !0);
|
6091
6079
|
}
|
6092
6080
|
return r;
|
6093
6081
|
}
|
@@ -6099,7 +6087,7 @@ class Be {
|
|
6099
6087
|
i[o] = on(r), delete i[a];
|
6100
6088
|
return;
|
6101
6089
|
}
|
6102
|
-
const s = t ?
|
6090
|
+
const s = t ? cl(a) : String(a).trim();
|
6103
6091
|
s !== a && delete i[a], i[s] = on(r), n[s] = !0;
|
6104
6092
|
}), this;
|
6105
6093
|
}
|
@@ -6130,18 +6118,18 @@ class Be {
|
|
6130
6118
|
return i.forEach((r) => n.set(r)), n;
|
6131
6119
|
}
|
6132
6120
|
static accessor(t) {
|
6133
|
-
const n = (this[
|
6121
|
+
const n = (this[fr] = this[fr] = {
|
6134
6122
|
accessors: {}
|
6135
6123
|
}).accessors, r = this.prototype;
|
6136
6124
|
function a(o) {
|
6137
6125
|
const s = Bt(o);
|
6138
|
-
n[s] || (
|
6126
|
+
n[s] || (ll(r, o), n[s] = !0);
|
6139
6127
|
}
|
6140
6128
|
return h.isArray(t) ? t.forEach(a) : a(t), this;
|
6141
6129
|
}
|
6142
6130
|
}
|
6143
|
-
|
6144
|
-
h.reduceDescriptors(
|
6131
|
+
Ie.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
6132
|
+
h.reduceDescriptors(Ie.prototype, ({ value: e }, t) => {
|
6145
6133
|
let i = t[0].toUpperCase() + t.slice(1);
|
6146
6134
|
return {
|
6147
6135
|
get: () => e,
|
@@ -6150,15 +6138,15 @@ h.reduceDescriptors(Be.prototype, ({ value: e }, t) => {
|
|
6150
6138
|
}
|
6151
6139
|
};
|
6152
6140
|
});
|
6153
|
-
h.freezeMethods(
|
6154
|
-
function
|
6155
|
-
const i = this ||
|
6141
|
+
h.freezeMethods(Ie);
|
6142
|
+
function In(e, t) {
|
6143
|
+
const i = this || Ut, n = t || i, r = Ie.from(n.headers);
|
6156
6144
|
let a = n.data;
|
6157
6145
|
return h.forEach(e, function(s) {
|
6158
6146
|
a = s.call(i, a, r.normalize(), t ? t.status : void 0);
|
6159
6147
|
}), r.normalize(), a;
|
6160
6148
|
}
|
6161
|
-
function
|
6149
|
+
function da(e) {
|
6162
6150
|
return !!(e && e.__CANCEL__);
|
6163
6151
|
}
|
6164
6152
|
function Rt(e, t, i) {
|
@@ -6167,7 +6155,7 @@ function Rt(e, t, i) {
|
|
6167
6155
|
h.inherits(Rt, Z, {
|
6168
6156
|
__CANCEL__: !0
|
6169
6157
|
});
|
6170
|
-
function
|
6158
|
+
function fa(e, t, i) {
|
6171
6159
|
const n = i.config.validateStatus;
|
6172
6160
|
!i.status || !n || n(i.status) ? e(i) : t(new Z(
|
6173
6161
|
"Request failed with status code " + i.status,
|
@@ -6177,11 +6165,11 @@ function la(e, t, i) {
|
|
6177
6165
|
i
|
6178
6166
|
));
|
6179
6167
|
}
|
6180
|
-
function
|
6168
|
+
function pl(e) {
|
6181
6169
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
6182
6170
|
return t && t[1] || "";
|
6183
6171
|
}
|
6184
|
-
function
|
6172
|
+
function ul(e, t) {
|
6185
6173
|
e = e || 10;
|
6186
6174
|
const i = new Array(e), n = new Array(e);
|
6187
6175
|
let r = 0, a = 0, o;
|
@@ -6197,7 +6185,7 @@ function pl(e, t) {
|
|
6197
6185
|
return m ? Math.round(f * 1e3 / m) : void 0;
|
6198
6186
|
};
|
6199
6187
|
}
|
6200
|
-
function
|
6188
|
+
function dl(e, t) {
|
6201
6189
|
let i = 0, n = 1e3 / t, r, a;
|
6202
6190
|
const o = (p, l = Date.now()) => {
|
6203
6191
|
i = l, r = null, a && (clearTimeout(a), a = null), e.apply(null, p);
|
@@ -6211,8 +6199,8 @@ function ul(e, t) {
|
|
6211
6199
|
}
|
6212
6200
|
const dn = (e, t, i = 3) => {
|
6213
6201
|
let n = 0;
|
6214
|
-
const r =
|
6215
|
-
return
|
6202
|
+
const r = ul(50, 250);
|
6203
|
+
return dl((a) => {
|
6216
6204
|
const o = a.loaded, s = a.lengthComputable ? a.total : void 0, c = o - n, p = r(c), l = o <= s;
|
6217
6205
|
n = o;
|
6218
6206
|
const u = {
|
@@ -6228,17 +6216,17 @@ const dn = (e, t, i = 3) => {
|
|
6228
6216
|
};
|
6229
6217
|
e(u);
|
6230
6218
|
}, i);
|
6231
|
-
},
|
6219
|
+
}, mr = (e, t) => {
|
6232
6220
|
const i = e != null;
|
6233
6221
|
return [(n) => t[0]({
|
6234
6222
|
lengthComputable: i,
|
6235
6223
|
total: e,
|
6236
6224
|
loaded: n
|
6237
6225
|
}), t[1]];
|
6238
|
-
},
|
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)))(
|
6239
6227
|
new URL(je.origin),
|
6240
6228
|
je.navigator && /(msie|trident)/i.test(je.navigator.userAgent)
|
6241
|
-
) : () => !0,
|
6229
|
+
) : () => !0, ml = je.hasStandardBrowserEnv ? (
|
6242
6230
|
// Standard browser envs support document.cookie
|
6243
6231
|
{
|
6244
6232
|
write(e, t, i, n, r, a) {
|
@@ -6265,17 +6253,17 @@ const dn = (e, t, i = 3) => {
|
|
6265
6253
|
}
|
6266
6254
|
}
|
6267
6255
|
);
|
6268
|
-
function
|
6256
|
+
function xl(e) {
|
6269
6257
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
6270
6258
|
}
|
6271
|
-
function
|
6259
|
+
function vl(e, t) {
|
6272
6260
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
6273
6261
|
}
|
6274
|
-
function
|
6275
|
-
return e && !
|
6262
|
+
function ma(e, t) {
|
6263
|
+
return e && !xl(t) ? vl(e, t) : t;
|
6276
6264
|
}
|
6277
|
-
const
|
6278
|
-
function
|
6265
|
+
const vr = (e) => e instanceof Ie ? { ...e } : e;
|
6266
|
+
function pt(e, t) {
|
6279
6267
|
t = t || {};
|
6280
6268
|
const i = {};
|
6281
6269
|
function n(p, l, u, f) {
|
@@ -6332,17 +6320,17 @@ function ut(e, t) {
|
|
6332
6320
|
socketPath: o,
|
6333
6321
|
responseEncoding: o,
|
6334
6322
|
validateStatus: s,
|
6335
|
-
headers: (p, l, u) => r(
|
6323
|
+
headers: (p, l, u) => r(vr(p), vr(l), u, !0)
|
6336
6324
|
};
|
6337
6325
|
return h.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
6338
6326
|
const u = c[l] || r, f = u(e[l], t[l], l);
|
6339
6327
|
h.isUndefined(f) && u !== s || (i[l] = f);
|
6340
6328
|
}), i;
|
6341
6329
|
}
|
6342
|
-
const
|
6343
|
-
const t =
|
6330
|
+
const xa = (e) => {
|
6331
|
+
const t = pt({}, e);
|
6344
6332
|
let { data: i, withXSRFToken: n, xsrfHeaderName: r, xsrfCookieName: a, headers: o, auth: s } = t;
|
6345
|
-
t.headers = o =
|
6333
|
+
t.headers = o = Ie.from(o), t.url = la(ma(t.baseURL, t.url), e.params, e.paramsSerializer), s && o.set(
|
6346
6334
|
"Authorization",
|
6347
6335
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
6348
6336
|
);
|
@@ -6355,16 +6343,16 @@ const ua = (e) => {
|
|
6355
6343
|
o.setContentType([p || "multipart/form-data", ...l].join("; "));
|
6356
6344
|
}
|
6357
6345
|
}
|
6358
|
-
if (je.hasStandardBrowserEnv && (n && h.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
6359
|
-
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);
|
6360
6348
|
p && o.set(r, p);
|
6361
6349
|
}
|
6362
6350
|
return t;
|
6363
|
-
},
|
6351
|
+
}, gl = typeof XMLHttpRequest < "u", hl = gl && function(e) {
|
6364
6352
|
return new Promise(function(i, n) {
|
6365
|
-
const r =
|
6353
|
+
const r = xa(e);
|
6366
6354
|
let a = r.data;
|
6367
|
-
const o =
|
6355
|
+
const o = Ie.from(r.headers).normalize();
|
6368
6356
|
let { responseType: s, onUploadProgress: c, onDownloadProgress: p } = r, l, u, f, m, v;
|
6369
6357
|
function g() {
|
6370
6358
|
m && m(), v && v(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
@@ -6374,7 +6362,7 @@ const ua = (e) => {
|
|
6374
6362
|
function x() {
|
6375
6363
|
if (!w)
|
6376
6364
|
return;
|
6377
|
-
const _ =
|
6365
|
+
const _ = Ie.from(
|
6378
6366
|
"getAllResponseHeaders" in w && w.getAllResponseHeaders()
|
6379
6367
|
), b = {
|
6380
6368
|
data: !s || s === "text" || s === "json" ? w.responseText : w.response,
|
@@ -6384,7 +6372,7 @@ const ua = (e) => {
|
|
6384
6372
|
config: e,
|
6385
6373
|
request: w
|
6386
6374
|
};
|
6387
|
-
|
6375
|
+
fa(function(N) {
|
6388
6376
|
i(N), g();
|
6389
6377
|
}, function(N) {
|
6390
6378
|
n(N), g();
|
@@ -6398,7 +6386,7 @@ const ua = (e) => {
|
|
6398
6386
|
n(new Z("Network Error", Z.ERR_NETWORK, e, w)), w = null;
|
6399
6387
|
}, w.ontimeout = function() {
|
6400
6388
|
let T = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
6401
|
-
const b = r.transitional ||
|
6389
|
+
const b = r.transitional || pa;
|
6402
6390
|
r.timeoutErrorMessage && (T = r.timeoutErrorMessage), n(new Z(
|
6403
6391
|
T,
|
6404
6392
|
b.clarifyTimeoutError ? Z.ETIMEDOUT : Z.ECONNABORTED,
|
@@ -6410,14 +6398,14 @@ const ua = (e) => {
|
|
6410
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 = (_) => {
|
6411
6399
|
w && (n(!_ || _.type ? new Rt(null, e, w) : _), w.abort(), w = null);
|
6412
6400
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
6413
|
-
const k =
|
6401
|
+
const k = pl(r.url);
|
6414
6402
|
if (k && je.protocols.indexOf(k) === -1) {
|
6415
6403
|
n(new Z("Unsupported protocol " + k + ":", Z.ERR_BAD_REQUEST, e));
|
6416
6404
|
return;
|
6417
6405
|
}
|
6418
6406
|
w.send(a || null);
|
6419
6407
|
});
|
6420
|
-
},
|
6408
|
+
}, yl = (e, t) => {
|
6421
6409
|
const { length: i } = e = e ? e.filter(Boolean) : [];
|
6422
6410
|
if (t || i) {
|
6423
6411
|
let n = new AbortController(), r;
|
@@ -6440,7 +6428,7 @@ const ua = (e) => {
|
|
6440
6428
|
const { signal: c } = n;
|
6441
6429
|
return c.unsubscribe = () => h.asap(s), c;
|
6442
6430
|
}
|
6443
|
-
},
|
6431
|
+
}, bl = function* (e, t) {
|
6444
6432
|
let i = e.byteLength;
|
6445
6433
|
if (i < t) {
|
6446
6434
|
yield e;
|
@@ -6449,10 +6437,10 @@ const ua = (e) => {
|
|
6449
6437
|
let n = 0, r;
|
6450
6438
|
for (; n < i; )
|
6451
6439
|
r = n + t, yield e.slice(n, r), n = r;
|
6452
|
-
},
|
6453
|
-
for await (const i of
|
6454
|
-
yield*
|
6455
|
-
},
|
6440
|
+
}, wl = async function* (e, t) {
|
6441
|
+
for await (const i of El(e))
|
6442
|
+
yield* bl(i, t);
|
6443
|
+
}, El = async function* (e) {
|
6456
6444
|
if (e[Symbol.asyncIterator]) {
|
6457
6445
|
yield* e;
|
6458
6446
|
return;
|
@@ -6468,8 +6456,8 @@ const ua = (e) => {
|
|
6468
6456
|
} finally {
|
6469
6457
|
await t.cancel();
|
6470
6458
|
}
|
6471
|
-
},
|
6472
|
-
const r =
|
6459
|
+
}, gr = (e, t, i, n) => {
|
6460
|
+
const r = wl(e, t);
|
6473
6461
|
let a = 0, o, s = (c) => {
|
6474
6462
|
o || (o = !0, n && n(c));
|
6475
6463
|
};
|
@@ -6497,13 +6485,13 @@ const ua = (e) => {
|
|
6497
6485
|
}, {
|
6498
6486
|
highWaterMark: 2
|
6499
6487
|
});
|
6500
|
-
}, 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) => {
|
6501
6489
|
try {
|
6502
6490
|
return !!e(...t);
|
6503
6491
|
} catch {
|
6504
6492
|
return !1;
|
6505
6493
|
}
|
6506
|
-
},
|
6494
|
+
}, Rl = va && ga(() => {
|
6507
6495
|
let e = !1;
|
6508
6496
|
const t = new Request(je.origin, {
|
6509
6497
|
body: new ReadableStream(),
|
@@ -6513,8 +6501,8 @@ const ua = (e) => {
|
|
6513
6501
|
}
|
6514
6502
|
}).headers.has("Content-Type");
|
6515
6503
|
return e && !t;
|
6516
|
-
}),
|
6517
|
-
stream:
|
6504
|
+
}), hr = 64 * 1024, Qn = va && ga(() => h.isReadableStream(new Response("").body)), fn = {
|
6505
|
+
stream: Qn && ((e) => e.body)
|
6518
6506
|
};
|
6519
6507
|
hn && ((e) => {
|
6520
6508
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
@@ -6523,7 +6511,7 @@ hn && ((e) => {
|
|
6523
6511
|
});
|
6524
6512
|
});
|
6525
6513
|
})(new Response());
|
6526
|
-
const
|
6514
|
+
const Tl = async (e) => {
|
6527
6515
|
if (e == null)
|
6528
6516
|
return 0;
|
6529
6517
|
if (h.isBlob(e))
|
@@ -6536,11 +6524,11 @@ const Rl = async (e) => {
|
|
6536
6524
|
if (h.isArrayBufferView(e) || h.isArrayBuffer(e))
|
6537
6525
|
return e.byteLength;
|
6538
6526
|
if (h.isURLSearchParams(e) && (e = e + ""), h.isString(e))
|
6539
|
-
return (await
|
6540
|
-
},
|
6527
|
+
return (await Sl(e)).byteLength;
|
6528
|
+
}, kl = async (e, t) => {
|
6541
6529
|
const i = h.toFiniteNumber(e.getContentLength());
|
6542
|
-
return i ??
|
6543
|
-
},
|
6530
|
+
return i ?? Tl(t);
|
6531
|
+
}, Ol = hn && (async (e) => {
|
6544
6532
|
let {
|
6545
6533
|
url: t,
|
6546
6534
|
method: i,
|
@@ -6554,26 +6542,26 @@ const Rl = async (e) => {
|
|
6554
6542
|
headers: l,
|
6555
6543
|
withCredentials: u = "same-origin",
|
6556
6544
|
fetchOptions: f
|
6557
|
-
} =
|
6545
|
+
} = xa(e);
|
6558
6546
|
p = p ? (p + "").toLowerCase() : "text";
|
6559
|
-
let m =
|
6547
|
+
let m = yl([r, a && a.toAbortSignal()], o), v;
|
6560
6548
|
const g = m && m.unsubscribe && (() => {
|
6561
6549
|
m.unsubscribe();
|
6562
6550
|
});
|
6563
6551
|
let w;
|
6564
6552
|
try {
|
6565
|
-
if (c &&
|
6553
|
+
if (c && Rl && i !== "get" && i !== "head" && (w = await kl(l, n)) !== 0) {
|
6566
6554
|
let b = new Request(t, {
|
6567
6555
|
method: "POST",
|
6568
6556
|
body: n,
|
6569
6557
|
duplex: "half"
|
6570
6558
|
}), D;
|
6571
6559
|
if (h.isFormData(n) && (D = b.headers.get("content-type")) && l.setContentType(D), b.body) {
|
6572
|
-
const [N, j] =
|
6560
|
+
const [N, j] = mr(
|
6573
6561
|
w,
|
6574
|
-
dn(
|
6562
|
+
dn(xr(c))
|
6575
6563
|
);
|
6576
|
-
n =
|
6564
|
+
n = gr(b.body, hr, N, j);
|
6577
6565
|
}
|
6578
6566
|
}
|
6579
6567
|
h.isString(u) || (u = u ? "include" : "omit");
|
@@ -6588,18 +6576,18 @@ const Rl = async (e) => {
|
|
6588
6576
|
credentials: x ? u : void 0
|
6589
6577
|
});
|
6590
6578
|
let k = await fetch(v);
|
6591
|
-
const _ =
|
6592
|
-
if (
|
6579
|
+
const _ = Qn && (p === "stream" || p === "response");
|
6580
|
+
if (Qn && (s || _ && g)) {
|
6593
6581
|
const b = {};
|
6594
6582
|
["status", "statusText", "headers"].forEach((G) => {
|
6595
6583
|
b[G] = k[G];
|
6596
6584
|
});
|
6597
|
-
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(
|
6598
6586
|
D,
|
6599
|
-
dn(
|
6587
|
+
dn(xr(s), !0)
|
6600
6588
|
) || [];
|
6601
6589
|
k = new Response(
|
6602
|
-
|
6590
|
+
gr(k.body, hr, N, () => {
|
6603
6591
|
j && j(), g && g();
|
6604
6592
|
}),
|
6605
6593
|
b
|
@@ -6608,9 +6596,9 @@ const Rl = async (e) => {
|
|
6608
6596
|
p = p || "text";
|
6609
6597
|
let T = await fn[h.findKey(fn, p) || "text"](k, e);
|
6610
6598
|
return !_ && g && g(), await new Promise((b, D) => {
|
6611
|
-
|
6599
|
+
fa(b, D, {
|
6612
6600
|
data: T,
|
6613
|
-
headers:
|
6601
|
+
headers: Ie.from(k.headers),
|
6614
6602
|
status: k.status,
|
6615
6603
|
statusText: k.statusText,
|
6616
6604
|
config: e,
|
@@ -6625,12 +6613,12 @@ const Rl = async (e) => {
|
|
6625
6613
|
}
|
6626
6614
|
) : Z.from(x, x && x.code, e, v);
|
6627
6615
|
}
|
6628
|
-
}),
|
6629
|
-
http:
|
6630
|
-
xhr:
|
6631
|
-
fetch:
|
6616
|
+
}), ei = {
|
6617
|
+
http: qc,
|
6618
|
+
xhr: hl,
|
6619
|
+
fetch: Ol
|
6632
6620
|
};
|
6633
|
-
h.forEach(
|
6621
|
+
h.forEach(ei, (e, t) => {
|
6634
6622
|
if (e) {
|
6635
6623
|
try {
|
6636
6624
|
Object.defineProperty(e, "name", { value: t });
|
@@ -6639,7 +6627,7 @@ h.forEach(ti, (e, t) => {
|
|
6639
6627
|
Object.defineProperty(e, "adapterName", { value: t });
|
6640
6628
|
}
|
6641
6629
|
});
|
6642
|
-
const
|
6630
|
+
const yr = (e) => `- ${e}`, _l = (e) => h.isFunction(e) || e === null || e === !1, ha = {
|
6643
6631
|
getAdapter: (e) => {
|
6644
6632
|
e = h.isArray(e) ? e : [e];
|
6645
6633
|
const { length: t } = e;
|
@@ -6648,7 +6636,7 @@ const hr = (e) => `- ${e}`, Ol = (e) => h.isFunction(e) || e === null || e === !
|
|
6648
6636
|
for (let a = 0; a < t; a++) {
|
6649
6637
|
i = e[a];
|
6650
6638
|
let o;
|
6651
|
-
if (n = i, !
|
6639
|
+
if (n = i, !_l(i) && (n = ei[(o = String(i)).toLowerCase()], n === void 0))
|
6652
6640
|
throw new Z(`Unknown adapter '${o}'`);
|
6653
6641
|
if (n)
|
6654
6642
|
break;
|
@@ -6659,8 +6647,8 @@ const hr = (e) => `- ${e}`, Ol = (e) => h.isFunction(e) || e === null || e === !
|
|
6659
6647
|
([s, c]) => `adapter ${s} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
6660
6648
|
);
|
6661
6649
|
let o = t ? a.length > 1 ? `since :
|
6662
|
-
` + a.map(
|
6663
|
-
`) : " " +
|
6650
|
+
` + a.map(yr).join(`
|
6651
|
+
`) : " " + yr(a[0]) : "as no adapter specified";
|
6664
6652
|
throw new Z(
|
6665
6653
|
"There is no suitable adapter to dispatch the request " + o,
|
6666
6654
|
"ERR_NOT_SUPPORT"
|
@@ -6668,40 +6656,40 @@ const hr = (e) => `- ${e}`, Ol = (e) => h.isFunction(e) || e === null || e === !
|
|
6668
6656
|
}
|
6669
6657
|
return n;
|
6670
6658
|
},
|
6671
|
-
adapters:
|
6659
|
+
adapters: ei
|
6672
6660
|
};
|
6673
|
-
function
|
6661
|
+
function Bn(e) {
|
6674
6662
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
6675
6663
|
throw new Rt(null, e);
|
6676
6664
|
}
|
6677
|
-
function
|
6678
|
-
return
|
6665
|
+
function br(e) {
|
6666
|
+
return Bn(e), e.headers = Ie.from(e.headers), e.data = In.call(
|
6679
6667
|
e,
|
6680
6668
|
e.transformRequest
|
6681
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
6682
|
-
return
|
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
|
+
return Bn(e), n.data = In.call(
|
6683
6671
|
e,
|
6684
6672
|
e.transformResponse,
|
6685
6673
|
n
|
6686
|
-
), n.headers =
|
6674
|
+
), n.headers = Ie.from(n.headers), n;
|
6687
6675
|
}, function(n) {
|
6688
|
-
return
|
6676
|
+
return da(n) || (Bn(e), n && n.response && (n.response.data = In.call(
|
6689
6677
|
e,
|
6690
6678
|
e.transformResponse,
|
6691
6679
|
n.response
|
6692
|
-
), n.response.headers =
|
6680
|
+
), n.response.headers = Ie.from(n.response.headers))), Promise.reject(n);
|
6693
6681
|
});
|
6694
6682
|
}
|
6695
|
-
const
|
6683
|
+
const ya = "1.7.9", yn = {};
|
6696
6684
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
6697
6685
|
yn[e] = function(n) {
|
6698
6686
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
6699
6687
|
};
|
6700
6688
|
});
|
6701
|
-
const
|
6689
|
+
const wr = {};
|
6702
6690
|
yn.transitional = function(t, i, n) {
|
6703
6691
|
function r(a, o) {
|
6704
|
-
return "[Axios v" +
|
6692
|
+
return "[Axios v" + ya + "] Transitional option '" + a + "'" + o + (n ? ". " + n : "");
|
6705
6693
|
}
|
6706
6694
|
return (a, o, s) => {
|
6707
6695
|
if (t === !1)
|
@@ -6709,7 +6697,7 @@ yn.transitional = function(t, i, n) {
|
|
6709
6697
|
r(o, " has been removed" + (i ? " in " + i : "")),
|
6710
6698
|
Z.ERR_DEPRECATED
|
6711
6699
|
);
|
6712
|
-
return i && !
|
6700
|
+
return i && !wr[o] && (wr[o] = !0, console.warn(
|
6713
6701
|
r(
|
6714
6702
|
o,
|
6715
6703
|
" has been deprecated since v" + i + " and will be removed in the near future"
|
@@ -6720,7 +6708,7 @@ yn.transitional = function(t, i, n) {
|
|
6720
6708
|
yn.spelling = function(t) {
|
6721
6709
|
return (i, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
6722
6710
|
};
|
6723
|
-
function
|
6711
|
+
function Al(e, t, i) {
|
6724
6712
|
if (typeof e != "object")
|
6725
6713
|
throw new Z("options must be an object", Z.ERR_BAD_OPTION_VALUE);
|
6726
6714
|
const n = Object.keys(e);
|
@@ -6738,14 +6726,14 @@ function _l(e, t, i) {
|
|
6738
6726
|
}
|
6739
6727
|
}
|
6740
6728
|
const sn = {
|
6741
|
-
assertOptions:
|
6729
|
+
assertOptions: Al,
|
6742
6730
|
validators: yn
|
6743
|
-
},
|
6744
|
-
class
|
6731
|
+
}, We = sn.validators;
|
6732
|
+
class lt {
|
6745
6733
|
constructor(t) {
|
6746
6734
|
this.defaults = t, this.interceptors = {
|
6747
|
-
request: new
|
6748
|
-
response: new
|
6735
|
+
request: new dr(),
|
6736
|
+
response: new dr()
|
6749
6737
|
};
|
6750
6738
|
}
|
6751
6739
|
/**
|
@@ -6774,20 +6762,20 @@ class pt {
|
|
6774
6762
|
}
|
6775
6763
|
}
|
6776
6764
|
_request(t, i) {
|
6777
|
-
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);
|
6778
6766
|
const { transitional: n, paramsSerializer: r, headers: a } = i;
|
6779
6767
|
n !== void 0 && sn.assertOptions(n, {
|
6780
|
-
silentJSONParsing:
|
6781
|
-
forcedJSONParsing:
|
6782
|
-
clarifyTimeoutError:
|
6768
|
+
silentJSONParsing: We.transitional(We.boolean),
|
6769
|
+
forcedJSONParsing: We.transitional(We.boolean),
|
6770
|
+
clarifyTimeoutError: We.transitional(We.boolean)
|
6783
6771
|
}, !1), r != null && (h.isFunction(r) ? i.paramsSerializer = {
|
6784
6772
|
serialize: r
|
6785
6773
|
} : sn.assertOptions(r, {
|
6786
|
-
encode:
|
6787
|
-
serialize:
|
6774
|
+
encode: We.function,
|
6775
|
+
serialize: We.function
|
6788
6776
|
}, !0)), sn.assertOptions(i, {
|
6789
|
-
baseUrl:
|
6790
|
-
withXsrfToken:
|
6777
|
+
baseUrl: We.spelling("baseURL"),
|
6778
|
+
withXsrfToken: We.spelling("withXSRFToken")
|
6791
6779
|
}, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase();
|
6792
6780
|
let o = a && h.merge(
|
6793
6781
|
a.common,
|
@@ -6798,7 +6786,7 @@ class pt {
|
|
6798
6786
|
(v) => {
|
6799
6787
|
delete a[v];
|
6800
6788
|
}
|
6801
|
-
), i.headers =
|
6789
|
+
), i.headers = Ie.concat(o, a);
|
6802
6790
|
const s = [];
|
6803
6791
|
let c = !0;
|
6804
6792
|
this.interceptors.request.forEach(function(g) {
|
@@ -6810,7 +6798,7 @@ class pt {
|
|
6810
6798
|
});
|
6811
6799
|
let l, u = 0, f;
|
6812
6800
|
if (!c) {
|
6813
|
-
const v = [
|
6801
|
+
const v = [br.bind(this), void 0];
|
6814
6802
|
for (v.unshift.apply(v, s), v.push.apply(v, p), f = v.length, l = Promise.resolve(i); u < f; )
|
6815
6803
|
l = l.then(v[u++], v[u++]);
|
6816
6804
|
return l;
|
@@ -6827,7 +6815,7 @@ class pt {
|
|
6827
6815
|
}
|
6828
6816
|
}
|
6829
6817
|
try {
|
6830
|
-
l =
|
6818
|
+
l = br.call(this, m);
|
6831
6819
|
} catch (v) {
|
6832
6820
|
return Promise.reject(v);
|
6833
6821
|
}
|
@@ -6836,14 +6824,14 @@ class pt {
|
|
6836
6824
|
return l;
|
6837
6825
|
}
|
6838
6826
|
getUri(t) {
|
6839
|
-
t =
|
6840
|
-
const i =
|
6841
|
-
return
|
6827
|
+
t = pt(this.defaults, t);
|
6828
|
+
const i = ma(t.baseURL, t.url);
|
6829
|
+
return la(i, t.params, t.paramsSerializer);
|
6842
6830
|
}
|
6843
6831
|
}
|
6844
6832
|
h.forEach(["delete", "get", "head", "options"], function(t) {
|
6845
|
-
|
6846
|
-
return this.request(
|
6833
|
+
lt.prototype[t] = function(i, n) {
|
6834
|
+
return this.request(pt(n || {}, {
|
6847
6835
|
method: t,
|
6848
6836
|
url: i,
|
6849
6837
|
data: (n || {}).data
|
@@ -6853,7 +6841,7 @@ h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
6853
6841
|
h.forEach(["post", "put", "patch"], function(t) {
|
6854
6842
|
function i(n) {
|
6855
6843
|
return function(a, o, s) {
|
6856
|
-
return this.request(
|
6844
|
+
return this.request(pt(s || {}, {
|
6857
6845
|
method: t,
|
6858
6846
|
headers: n ? {
|
6859
6847
|
"Content-Type": "multipart/form-data"
|
@@ -6863,7 +6851,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
6863
6851
|
}));
|
6864
6852
|
};
|
6865
6853
|
}
|
6866
|
-
|
6854
|
+
lt.prototype[t] = i(), lt.prototype[t + "Form"] = i(!0);
|
6867
6855
|
});
|
6868
6856
|
class fi {
|
6869
6857
|
constructor(t) {
|
@@ -6938,15 +6926,15 @@ class fi {
|
|
6938
6926
|
};
|
6939
6927
|
}
|
6940
6928
|
}
|
6941
|
-
function
|
6929
|
+
function Cl(e) {
|
6942
6930
|
return function(i) {
|
6943
6931
|
return e.apply(null, i);
|
6944
6932
|
};
|
6945
6933
|
}
|
6946
|
-
function
|
6934
|
+
function Dl(e) {
|
6947
6935
|
return h.isObject(e) && e.isAxiosError === !0;
|
6948
6936
|
}
|
6949
|
-
const
|
6937
|
+
const ti = {
|
6950
6938
|
Continue: 100,
|
6951
6939
|
SwitchingProtocols: 101,
|
6952
6940
|
Processing: 102,
|
@@ -7011,36 +6999,36 @@ const ni = {
|
|
7011
6999
|
NotExtended: 510,
|
7012
7000
|
NetworkAuthenticationRequired: 511
|
7013
7001
|
};
|
7014
|
-
Object.entries(
|
7015
|
-
|
7002
|
+
Object.entries(ti).forEach(([e, t]) => {
|
7003
|
+
ti[t] = e;
|
7016
7004
|
});
|
7017
|
-
function
|
7018
|
-
const t = new
|
7019
|
-
return h.extend(i,
|
7020
|
-
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));
|
7021
7009
|
}, i;
|
7022
7010
|
}
|
7023
|
-
const De =
|
7024
|
-
De.Axios =
|
7011
|
+
const De = ba(Ut);
|
7012
|
+
De.Axios = lt;
|
7025
7013
|
De.CanceledError = Rt;
|
7026
7014
|
De.CancelToken = fi;
|
7027
|
-
De.isCancel =
|
7028
|
-
De.VERSION =
|
7015
|
+
De.isCancel = da;
|
7016
|
+
De.VERSION = ya;
|
7029
7017
|
De.toFormData = gn;
|
7030
7018
|
De.AxiosError = Z;
|
7031
7019
|
De.Cancel = De.CanceledError;
|
7032
7020
|
De.all = function(t) {
|
7033
7021
|
return Promise.all(t);
|
7034
7022
|
};
|
7035
|
-
De.spread =
|
7036
|
-
De.isAxiosError =
|
7037
|
-
De.mergeConfig =
|
7038
|
-
De.AxiosHeaders =
|
7039
|
-
De.formToJSON = (e) =>
|
7040
|
-
De.getAdapter =
|
7041
|
-
De.HttpStatusCode =
|
7023
|
+
De.spread = Cl;
|
7024
|
+
De.isAxiosError = Dl;
|
7025
|
+
De.mergeConfig = pt;
|
7026
|
+
De.AxiosHeaders = Ie;
|
7027
|
+
De.formToJSON = (e) => ua(h.isHTMLForm(e) ? new FormData(e) : e);
|
7028
|
+
De.getAdapter = ha.getAdapter;
|
7029
|
+
De.HttpStatusCode = ti;
|
7042
7030
|
De.default = De;
|
7043
|
-
var
|
7031
|
+
var Qt = { exports: {} }, zn = {};
|
7044
7032
|
/**
|
7045
7033
|
* @license React
|
7046
7034
|
* use-sync-external-store-shim.production.min.js
|
@@ -7050,11 +7038,11 @@ var Zt = { exports: {} }, Ln = {};
|
|
7050
7038
|
* This source code is licensed under the MIT license found in the
|
7051
7039
|
* LICENSE file in the root directory of this source tree.
|
7052
7040
|
*/
|
7053
|
-
var
|
7054
|
-
function
|
7055
|
-
if (
|
7056
|
-
|
7057
|
-
var e =
|
7041
|
+
var Er;
|
7042
|
+
function jl() {
|
7043
|
+
if (Er) return zn;
|
7044
|
+
Er = 1;
|
7045
|
+
var e = ye;
|
7058
7046
|
function t(u, f) {
|
7059
7047
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
7060
7048
|
}
|
@@ -7083,9 +7071,9 @@ function Dl() {
|
|
7083
7071
|
return f();
|
7084
7072
|
}
|
7085
7073
|
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : s;
|
7086
|
-
return
|
7074
|
+
return zn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, zn;
|
7087
7075
|
}
|
7088
|
-
var
|
7076
|
+
var Ln = {};
|
7089
7077
|
/**
|
7090
7078
|
* @license React
|
7091
7079
|
* use-sync-external-store-shim.development.js
|
@@ -7095,11 +7083,11 @@ var Mn = {};
|
|
7095
7083
|
* This source code is licensed under the MIT license found in the
|
7096
7084
|
* LICENSE file in the root directory of this source tree.
|
7097
7085
|
*/
|
7098
|
-
var
|
7099
|
-
function
|
7100
|
-
return
|
7086
|
+
var Sr;
|
7087
|
+
function Fl() {
|
7088
|
+
return Sr || (Sr = 1, process.env.NODE_ENV !== "production" && function() {
|
7101
7089
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
7102
|
-
var e =
|
7090
|
+
var e = ye, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
7103
7091
|
function i(_) {
|
7104
7092
|
{
|
7105
7093
|
for (var T = arguments.length, b = new Array(T > 1 ? T - 1 : 0), D = 1; D < T; D++)
|
@@ -7163,115 +7151,115 @@ function jl() {
|
|
7163
7151
|
return T();
|
7164
7152
|
}
|
7165
7153
|
var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", w = !g, x = w ? v : f, k = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : x;
|
7166
|
-
|
7167
|
-
}()),
|
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
|
+
}()), Ln;
|
7168
7156
|
}
|
7169
|
-
var
|
7170
|
-
function
|
7171
|
-
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;
|
7172
7160
|
}
|
7173
|
-
var
|
7174
|
-
const
|
7161
|
+
var wa = Pl();
|
7162
|
+
const Qe = () => {
|
7175
7163
|
}, Ce = (
|
7176
7164
|
/*#__NOINLINE__*/
|
7177
|
-
|
7178
|
-
),
|
7165
|
+
Qe()
|
7166
|
+
), Mn = Object, $ = (e) => e === Ce, Le = (e) => typeof e == "function", Me = (e, t) => ({
|
7179
7167
|
...e,
|
7180
7168
|
...t
|
7181
|
-
}),
|
7182
|
-
let
|
7183
|
-
const
|
7169
|
+
}), Il = (e) => Le(e.then), en = /* @__PURE__ */ new WeakMap();
|
7170
|
+
let Bl = 0;
|
7171
|
+
const Nt = (e) => {
|
7184
7172
|
const t = typeof e, i = e && e.constructor, n = i == Date;
|
7185
7173
|
let r, a;
|
7186
|
-
if (
|
7187
|
-
if (r =
|
7188
|
-
if (r = ++
|
7174
|
+
if (Mn(e) === e && !n && i != RegExp) {
|
7175
|
+
if (r = en.get(e), r) return r;
|
7176
|
+
if (r = ++Bl + "~", en.set(e, r), i == Array) {
|
7189
7177
|
for (r = "@", a = 0; a < e.length; a++)
|
7190
|
-
r +=
|
7191
|
-
|
7178
|
+
r += Nt(e[a]) + ",";
|
7179
|
+
en.set(e, r);
|
7192
7180
|
}
|
7193
|
-
if (i ==
|
7181
|
+
if (i == Mn) {
|
7194
7182
|
r = "#";
|
7195
|
-
const o =
|
7183
|
+
const o = Mn.keys(e).sort();
|
7196
7184
|
for (; !$(a = o.pop()); )
|
7197
|
-
$(e[a]) || (r += a + ":" +
|
7198
|
-
|
7185
|
+
$(e[a]) || (r += a + ":" + Nt(e[a]) + ",");
|
7186
|
+
en.set(e, r);
|
7199
7187
|
}
|
7200
7188
|
} else
|
7201
7189
|
r = n ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
7202
7190
|
return r;
|
7203
|
-
},
|
7204
|
-
const i =
|
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
|
+
const i = Ue.get(e);
|
7205
7193
|
return [
|
7206
7194
|
// Getter
|
7207
|
-
() => !$(t) && e.get(t) ||
|
7195
|
+
() => !$(t) && e.get(t) || $n,
|
7208
7196
|
// Setter
|
7209
7197
|
(n) => {
|
7210
7198
|
if (!$(t)) {
|
7211
7199
|
const r = e.get(t);
|
7212
|
-
t in
|
7200
|
+
t in tn || (tn[t] = r), i[5](t, Me(r, n), r || $n);
|
7213
7201
|
}
|
7214
7202
|
},
|
7215
7203
|
// Subscriber
|
7216
7204
|
i[6],
|
7217
7205
|
// Get server cache snapshot
|
7218
|
-
() => !$(t) && t in
|
7206
|
+
() => !$(t) && t in tn ? tn[t] : !$(t) && e.get(t) || $n
|
7219
7207
|
];
|
7220
7208
|
};
|
7221
|
-
let
|
7222
|
-
const
|
7209
|
+
let ii = !0;
|
7210
|
+
const Ll = () => ii, [ri, ai] = bn && window.addEventListener ? [
|
7223
7211
|
window.addEventListener.bind(window),
|
7224
7212
|
window.removeEventListener.bind(window)
|
7225
7213
|
] : [
|
7226
|
-
|
7227
|
-
|
7228
|
-
],
|
7229
|
-
const e =
|
7214
|
+
Qe,
|
7215
|
+
Qe
|
7216
|
+
], Ml = () => {
|
7217
|
+
const e = ni && document.visibilityState;
|
7230
7218
|
return $(e) || e !== "hidden";
|
7231
|
-
},
|
7232
|
-
|
7233
|
-
}),
|
7219
|
+
}, $l = (e) => (ni && document.addEventListener("visibilitychange", e), ri("focus", e), () => {
|
7220
|
+
ni && document.removeEventListener("visibilitychange", e), ai("focus", e);
|
7221
|
+
}), Nl = (e) => {
|
7234
7222
|
const t = () => {
|
7235
|
-
|
7223
|
+
ii = !0, e();
|
7236
7224
|
}, i = () => {
|
7237
|
-
|
7225
|
+
ii = !1;
|
7238
7226
|
};
|
7239
|
-
return
|
7240
|
-
|
7227
|
+
return ri("online", t), ri("offline", i), () => {
|
7228
|
+
ai("online", t), ai("offline", i);
|
7241
7229
|
};
|
7242
|
-
}, Nl = {
|
7243
|
-
isOnline: zl,
|
7244
|
-
isVisible: Ll
|
7245
7230
|
}, ql = {
|
7246
|
-
|
7247
|
-
|
7248
|
-
},
|
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 && ([
|
7249
7237
|
"slow-2g",
|
7250
7238
|
"2g"
|
7251
|
-
].includes(
|
7252
|
-
if (
|
7239
|
+
].includes(Nn.effectiveType) || Nn.saveData), Vt = (e) => {
|
7240
|
+
if (Le(e))
|
7253
7241
|
try {
|
7254
7242
|
e = e();
|
7255
7243
|
} catch {
|
7256
7244
|
e = "";
|
7257
7245
|
}
|
7258
7246
|
const t = e;
|
7259
|
-
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) : "", [
|
7260
7248
|
e,
|
7261
7249
|
t
|
7262
7250
|
];
|
7263
7251
|
};
|
7264
|
-
let
|
7265
|
-
const bt = () => ++
|
7266
|
-
var
|
7252
|
+
let Ul = 0;
|
7253
|
+
const bt = () => ++Ul, Sa = 0, Ra = 1, Ta = 2, Vl = 3;
|
7254
|
+
var Ve = {
|
7267
7255
|
__proto__: null,
|
7268
|
-
ERROR_REVALIDATE_EVENT:
|
7269
|
-
FOCUS_EVENT:
|
7270
|
-
MUTATE_EVENT:
|
7271
|
-
RECONNECT_EVENT:
|
7256
|
+
ERROR_REVALIDATE_EVENT: Vl,
|
7257
|
+
FOCUS_EVENT: Sa,
|
7258
|
+
MUTATE_EVENT: Ta,
|
7259
|
+
RECONNECT_EVENT: Ra
|
7272
7260
|
};
|
7273
7261
|
async function vi(...e) {
|
7274
|
-
const [t, i, n, r] = e, a =
|
7262
|
+
const [t, i, n, r] = e, a = Me({
|
7275
7263
|
populateCache: !0,
|
7276
7264
|
throwOnError: !0
|
7277
7265
|
}, typeof r == "boolean" ? {
|
@@ -7281,7 +7269,7 @@ async function vi(...e) {
|
|
7281
7269
|
const s = a.rollbackOnError;
|
7282
7270
|
let c = a.optimisticData;
|
7283
7271
|
const p = (f) => typeof s == "function" ? s(f) : s !== !1, l = a.throwOnError;
|
7284
|
-
if (
|
7272
|
+
if (Le(i)) {
|
7285
7273
|
const f = i, m = [], v = t.keys();
|
7286
7274
|
for (const g of v)
|
7287
7275
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
@@ -7290,11 +7278,11 @@ async function vi(...e) {
|
|
7290
7278
|
}
|
7291
7279
|
return u(i);
|
7292
7280
|
async function u(f) {
|
7293
|
-
const [m] =
|
7281
|
+
const [m] = Vt(f);
|
7294
7282
|
if (!m) return;
|
7295
|
-
const [v, g] = xi(t, m), [w, x, k, _] =
|
7283
|
+
const [v, g] = xi(t, m), [w, x, k, _] = Ue.get(t), T = () => {
|
7296
7284
|
const te = w[m];
|
7297
|
-
return (
|
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;
|
7298
7286
|
};
|
7299
7287
|
if (e.length < 3)
|
7300
7288
|
return T();
|
@@ -7305,16 +7293,16 @@ async function vi(...e) {
|
|
7305
7293
|
0
|
7306
7294
|
];
|
7307
7295
|
const j = !$(c), G = v(), V = G.data, re = G._c, me = $(re) ? V : re;
|
7308
|
-
if (j && (c =
|
7296
|
+
if (j && (c = Le(c) ? c(me, V) : c, g({
|
7309
7297
|
data: c,
|
7310
7298
|
_c: me
|
7311
|
-
})),
|
7299
|
+
})), Le(b))
|
7312
7300
|
try {
|
7313
7301
|
b = b(me);
|
7314
7302
|
} catch (te) {
|
7315
7303
|
D = te;
|
7316
7304
|
}
|
7317
|
-
if (b &&
|
7305
|
+
if (b && Il(b))
|
7318
7306
|
if (b = await b.catch((te) => {
|
7319
7307
|
D = te;
|
7320
7308
|
}), N !== x[m][0]) {
|
@@ -7325,7 +7313,7 @@ async function vi(...e) {
|
|
7325
7313
|
_c: Ce
|
7326
7314
|
}));
|
7327
7315
|
if (o && !D)
|
7328
|
-
if (
|
7316
|
+
if (Le(o)) {
|
7329
7317
|
const te = o(b, me);
|
7330
7318
|
g({
|
7331
7319
|
data: te,
|
@@ -7349,13 +7337,13 @@ async function vi(...e) {
|
|
7349
7337
|
return b;
|
7350
7338
|
}
|
7351
7339
|
}
|
7352
|
-
const
|
7340
|
+
const kr = (e, t) => {
|
7353
7341
|
for (const i in e)
|
7354
7342
|
e[i][0] && e[i][0](t);
|
7355
|
-
},
|
7356
|
-
if (!
|
7357
|
-
const i =
|
7358
|
-
let a =
|
7343
|
+
}, Hl = (e, t) => {
|
7344
|
+
if (!Ue.has(e)) {
|
7345
|
+
const i = Me(Wl, t), n = {}, r = vi.bind(Ce, e);
|
7346
|
+
let a = Qe;
|
7359
7347
|
const o = {}, s = (l, u) => {
|
7360
7348
|
const f = o[l] || [];
|
7361
7349
|
return o[l] = f, f.push(u), () => f.splice(f.indexOf(u), 1);
|
@@ -7366,7 +7354,7 @@ const Tr = (e, t) => {
|
|
7366
7354
|
for (const v of m)
|
7367
7355
|
v(u, f);
|
7368
7356
|
}, p = () => {
|
7369
|
-
if (!
|
7357
|
+
if (!Ue.has(e) && (Ue.set(e, [
|
7370
7358
|
n,
|
7371
7359
|
{},
|
7372
7360
|
{},
|
@@ -7374,10 +7362,10 @@ const Tr = (e, t) => {
|
|
7374
7362
|
r,
|
7375
7363
|
c,
|
7376
7364
|
s
|
7377
|
-
]), !
|
7378
|
-
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)));
|
7379
7367
|
a = () => {
|
7380
|
-
l && l(), u && u(),
|
7368
|
+
l && l(), u && u(), Ue.delete(e);
|
7381
7369
|
};
|
7382
7370
|
}
|
7383
7371
|
};
|
@@ -7390,48 +7378,48 @@ const Tr = (e, t) => {
|
|
7390
7378
|
}
|
7391
7379
|
return [
|
7392
7380
|
e,
|
7393
|
-
|
7381
|
+
Ue.get(e)[4]
|
7394
7382
|
];
|
7395
|
-
},
|
7383
|
+
}, Gl = (e, t, i, n, r) => {
|
7396
7384
|
const a = i.errorRetryCount, o = r.retryCount, s = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * i.errorRetryInterval;
|
7397
7385
|
!$(a) && o > a || setTimeout(n, s, r);
|
7398
|
-
},
|
7386
|
+
}, Yl = (e, t) => Nt(e) == Nt(t), [ka, Kl] = Hl(/* @__PURE__ */ new Map()), Jl = Me(
|
7399
7387
|
{
|
7400
7388
|
// events
|
7401
|
-
onLoadingSlow:
|
7402
|
-
onSuccess:
|
7403
|
-
onError:
|
7404
|
-
onErrorRetry:
|
7405
|
-
onDiscarded:
|
7389
|
+
onLoadingSlow: Qe,
|
7390
|
+
onSuccess: Qe,
|
7391
|
+
onError: Qe,
|
7392
|
+
onErrorRetry: Gl,
|
7393
|
+
onDiscarded: Qe,
|
7406
7394
|
// switches
|
7407
7395
|
revalidateOnFocus: !0,
|
7408
7396
|
revalidateOnReconnect: !0,
|
7409
7397
|
revalidateIfStale: !0,
|
7410
7398
|
shouldRetryOnError: !0,
|
7411
7399
|
// timeouts
|
7412
|
-
errorRetryInterval:
|
7400
|
+
errorRetryInterval: Tr ? 1e4 : 5e3,
|
7413
7401
|
focusThrottleInterval: 5 * 1e3,
|
7414
7402
|
dedupingInterval: 2 * 1e3,
|
7415
|
-
loadingTimeout:
|
7403
|
+
loadingTimeout: Tr ? 5e3 : 3e3,
|
7416
7404
|
// providers
|
7417
|
-
compare:
|
7405
|
+
compare: Yl,
|
7418
7406
|
isPaused: () => !1,
|
7419
|
-
cache:
|
7420
|
-
mutate:
|
7407
|
+
cache: ka,
|
7408
|
+
mutate: Kl,
|
7421
7409
|
fallback: {}
|
7422
7410
|
},
|
7423
7411
|
// use web preset by default
|
7424
|
-
|
7425
|
-
),
|
7426
|
-
const i =
|
7412
|
+
ql
|
7413
|
+
), Xl = (e, t) => {
|
7414
|
+
const i = Me(e, t);
|
7427
7415
|
if (t) {
|
7428
7416
|
const { use: n, fallback: r } = e, { use: a, fallback: o } = t;
|
7429
|
-
n && a && (i.use = n.concat(a)), r && o && (i.fallback =
|
7417
|
+
n && a && (i.use = n.concat(a)), r && o && (i.fallback = Me(r, o));
|
7430
7418
|
}
|
7431
7419
|
return i;
|
7432
|
-
},
|
7433
|
-
|
7434
|
-
},
|
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]) ? [
|
7435
7423
|
e[0],
|
7436
7424
|
e[1],
|
7437
7425
|
e[2] || {}
|
@@ -7439,34 +7427,34 @@ const Tr = (e, t) => {
|
|
7439
7427
|
e[0],
|
7440
7428
|
null,
|
7441
7429
|
(e[1] === null ? e[2] : e[1]) || {}
|
7442
|
-
],
|
7443
|
-
const [o] =
|
7444
|
-
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))
|
7445
7433
|
return i(...a);
|
7446
7434
|
const c = s[o];
|
7447
7435
|
return $(c) ? i(...a) : (delete s[o], c);
|
7448
|
-
}), n),
|
7449
|
-
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);
|
7450
7438
|
let c = e;
|
7451
|
-
const { use: p } = s, l = (p || []).concat(
|
7439
|
+
const { use: p } = s, l = (p || []).concat(ip);
|
7452
7440
|
for (let u = l.length; u--; )
|
7453
7441
|
c = l[u](c);
|
7454
7442
|
return c(r, a || s.fetcher || null, s);
|
7455
|
-
},
|
7443
|
+
}, Da = (e, t, i) => {
|
7456
7444
|
const n = t[e] || (t[e] = []);
|
7457
7445
|
return n.push(i), () => {
|
7458
7446
|
const r = n.indexOf(i);
|
7459
7447
|
r >= 0 && (n[r] = n[n.length - 1], n.pop());
|
7460
7448
|
};
|
7461
|
-
},
|
7462
|
-
const [n, r, a] =
|
7449
|
+
}, rp = (e, t) => (...i) => {
|
7450
|
+
const [n, r, a] = _a(i), o = (a.use || []).concat(t);
|
7463
7451
|
return e(n, r, {
|
7464
7452
|
...a,
|
7465
7453
|
use: o
|
7466
7454
|
});
|
7467
7455
|
};
|
7468
|
-
|
7469
|
-
const
|
7456
|
+
tp();
|
7457
|
+
const Or = ye.use || ((e) => {
|
7470
7458
|
if (e.status === "pending")
|
7471
7459
|
throw e;
|
7472
7460
|
if (e.status === "fulfilled")
|
@@ -7476,10 +7464,10 @@ const kr = he.use || ((e) => {
|
|
7476
7464
|
}, (t) => {
|
7477
7465
|
e.status = "rejected", e.reason = t;
|
7478
7466
|
}), e);
|
7479
|
-
}),
|
7467
|
+
}), qn = {
|
7480
7468
|
dedupe: !0
|
7481
|
-
},
|
7482
|
-
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] =
|
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) => {
|
7483
7471
|
for (const J in U) {
|
7484
7472
|
const M = J;
|
7485
7473
|
if (M === "data") {
|
@@ -7489,14 +7477,14 @@ const kr = he.use || ((e) => {
|
|
7489
7477
|
return !1;
|
7490
7478
|
}
|
7491
7479
|
return !0;
|
7492
|
-
}, Se =
|
7480
|
+
}, Se = Je(() => {
|
7493
7481
|
const y = !x || !t ? !1 : $(s) ? j().isPaused() || a ? !1 : $(c) ? !0 : c : s, F = (Q) => {
|
7494
|
-
const
|
7495
|
-
return delete
|
7482
|
+
const we = Me(Q);
|
7483
|
+
return delete we._k, y ? {
|
7496
7484
|
isValidating: !0,
|
7497
7485
|
isLoading: !0,
|
7498
|
-
...
|
7499
|
-
} :
|
7486
|
+
...we
|
7487
|
+
} : we;
|
7500
7488
|
}, J = V(), M = te(), ue = F(J), Re = J === M ? ue : F(M);
|
7501
7489
|
let X = ue;
|
7502
7490
|
return [
|
@@ -7509,7 +7497,7 @@ const kr = he.use || ((e) => {
|
|
7509
7497
|
}, [
|
7510
7498
|
n,
|
7511
7499
|
x
|
7512
|
-
]), pe =
|
7500
|
+
]), pe = wa.useSyncExternalStore(_e(
|
7513
7501
|
(y) => me(x, (F, J) => {
|
7514
7502
|
Ee(J, F) || y();
|
7515
7503
|
}),
|
@@ -7518,53 +7506,53 @@ const kr = he.use || ((e) => {
|
|
7518
7506
|
n,
|
7519
7507
|
x
|
7520
7508
|
]
|
7521
|
-
), 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(
|
7522
7510
|
async (y) => {
|
7523
7511
|
const F = D.current;
|
7524
7512
|
if (!x || !F || T.current || j().isPaused())
|
7525
7513
|
return !1;
|
7526
7514
|
let J, M, ue = !0;
|
7527
|
-
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 = {
|
7528
7516
|
isValidating: !1,
|
7529
7517
|
isLoading: !1
|
7530
|
-
},
|
7531
|
-
re(
|
7532
|
-
},
|
7518
|
+
}, He = () => {
|
7519
|
+
re(we);
|
7520
|
+
}, $e = () => {
|
7533
7521
|
const E = g[x];
|
7534
7522
|
E && E[1] === M && delete g[x];
|
7535
|
-
},
|
7523
|
+
}, Ge = {
|
7536
7524
|
isValidating: !0
|
7537
7525
|
};
|
7538
|
-
$(V().data) && (
|
7526
|
+
$(V().data) && (Ge.isLoading = !0);
|
7539
7527
|
try {
|
7540
|
-
if (X && (re(
|
7528
|
+
if (X && (re(Ge), i.loadingTimeout && $(V().data) && setTimeout(() => {
|
7541
7529
|
ue && Q() && j().onLoadingSlow(x, i);
|
7542
7530
|
}, i.loadingTimeout), g[x] = [
|
7543
7531
|
F(k),
|
7544
7532
|
bt()
|
7545
|
-
]), [J, M] = g[x], J = await J, X && setTimeout(
|
7533
|
+
]), [J, M] = g[x], J = await J, X && setTimeout($e, i.dedupingInterval), !g[x] || g[x][1] !== M)
|
7546
7534
|
return X && Q() && j().onDiscarded(x), !1;
|
7547
|
-
|
7535
|
+
we.error = Ce;
|
7548
7536
|
const E = v[x];
|
7549
7537
|
if (!$(E) && // case 1
|
7550
7538
|
(M <= E[0] || // case 2
|
7551
7539
|
M <= E[1] || // case 3
|
7552
7540
|
E[1] === 0))
|
7553
|
-
return
|
7541
|
+
return He(), X && Q() && j().onDiscarded(x), !1;
|
7554
7542
|
const A = V().data;
|
7555
|
-
|
7543
|
+
we.data = r(A, J) ? A : J, X && Q() && j().onSuccess(J, x, i);
|
7556
7544
|
} catch (E) {
|
7557
|
-
|
7545
|
+
$e();
|
7558
7546
|
const A = j(), { shouldRetryOnError: ae } = A;
|
7559
|
-
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) => {
|
7560
7548
|
const Te = m[x];
|
7561
|
-
Te && Te[0] && Te[0](
|
7549
|
+
Te && Te[0] && Te[0](Ve.ERROR_REVALIDATE_EVENT, de);
|
7562
7550
|
}, {
|
7563
7551
|
retryCount: (Re.retryCount || 0) + 1,
|
7564
7552
|
dedupe: !0
|
7565
7553
|
})));
|
7566
7554
|
}
|
7567
|
-
return ue = !1,
|
7555
|
+
return ue = !1, He(), !0;
|
7568
7556
|
},
|
7569
7557
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7570
7558
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7587,40 +7575,40 @@ const kr = he.use || ((e) => {
|
|
7587
7575
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7588
7576
|
[]
|
7589
7577
|
);
|
7590
|
-
if (
|
7578
|
+
if (et(() => {
|
7591
7579
|
D.current = t, N.current = i, $(O) || (B.current = O);
|
7592
|
-
}),
|
7580
|
+
}), et(() => {
|
7593
7581
|
if (!x) return;
|
7594
|
-
const y = L.bind(Ce,
|
7582
|
+
const y = L.bind(Ce, qn);
|
7595
7583
|
let F = 0;
|
7596
|
-
const M =
|
7597
|
-
if (ue ==
|
7584
|
+
const M = Da(x, m, (ue, Re = {}) => {
|
7585
|
+
if (ue == Ve.FOCUS_EVENT) {
|
7598
7586
|
const X = Date.now();
|
7599
7587
|
j().revalidateOnFocus && X > F && G() && (F = X + j().focusThrottleInterval, y());
|
7600
|
-
} else if (ue ==
|
7588
|
+
} else if (ue == Ve.RECONNECT_EVENT)
|
7601
7589
|
j().revalidateOnReconnect && G() && y();
|
7602
7590
|
else {
|
7603
|
-
if (ue ==
|
7591
|
+
if (ue == Ve.MUTATE_EVENT)
|
7604
7592
|
return L();
|
7605
|
-
if (ue ==
|
7593
|
+
if (ue == Ve.ERROR_REVALIDATE_EVENT)
|
7606
7594
|
return L(Re);
|
7607
7595
|
}
|
7608
7596
|
});
|
7609
7597
|
return T.current = !1, b.current = x, _.current = !0, re({
|
7610
7598
|
_k: k
|
7611
|
-
}), z && ($(I) ||
|
7599
|
+
}), z && ($(I) || ut ? y() : Ea(y)), () => {
|
7612
7600
|
T.current = !0, M();
|
7613
7601
|
};
|
7614
7602
|
}, [
|
7615
7603
|
x
|
7616
|
-
]),
|
7604
|
+
]), et(() => {
|
7617
7605
|
let y;
|
7618
7606
|
function F() {
|
7619
|
-
const M =
|
7607
|
+
const M = Le(p) ? p(V().data) : p;
|
7620
7608
|
M && y !== -1 && (y = setTimeout(J, M));
|
7621
7609
|
}
|
7622
7610
|
function J() {
|
7623
|
-
!V().error && (l || j().isVisible()) && (u || j().isOnline()) ? L(
|
7611
|
+
!V().error && (l || j().isVisible()) && (u || j().isOnline()) ? L(qn).then(F) : F();
|
7624
7612
|
}
|
7625
7613
|
return F(), () => {
|
7626
7614
|
y && (clearTimeout(y), y = -1);
|
@@ -7630,18 +7618,18 @@ const kr = he.use || ((e) => {
|
|
7630
7618
|
l,
|
7631
7619
|
u,
|
7632
7620
|
x
|
7633
|
-
]),
|
7634
|
-
if (!
|
7621
|
+
]), jr(H), a && $(I) && x) {
|
7622
|
+
if (!qt && ut)
|
7635
7623
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7636
7624
|
D.current = t, N.current = i, T.current = !1;
|
7637
7625
|
const y = w[x];
|
7638
7626
|
if (!$(y)) {
|
7639
7627
|
const F = xe(y);
|
7640
|
-
|
7628
|
+
Or(F);
|
7641
7629
|
}
|
7642
7630
|
if ($(q)) {
|
7643
|
-
const F = L(
|
7644
|
-
$(H) || (F.status = "fulfilled", F.value = !0),
|
7631
|
+
const F = L(qn);
|
7632
|
+
$(H) || (F.status = "fulfilled", F.value = !0), Or(F);
|
7645
7633
|
} else
|
7646
7634
|
throw q;
|
7647
7635
|
}
|
@@ -7660,7 +7648,7 @@ const kr = he.use || ((e) => {
|
|
7660
7648
|
return U.isLoading = !0, ee;
|
7661
7649
|
}
|
7662
7650
|
};
|
7663
|
-
},
|
7651
|
+
}, op = Ca(ap), _r = ye.use || ((e) => {
|
7664
7652
|
if (e.status === "pending")
|
7665
7653
|
throw e;
|
7666
7654
|
if (e.status === "fulfilled")
|
@@ -7670,10 +7658,10 @@ const kr = he.use || ((e) => {
|
|
7670
7658
|
}, (t) => {
|
7671
7659
|
e.status = "rejected", e.reason = t;
|
7672
7660
|
}), e);
|
7673
|
-
}),
|
7661
|
+
}), Wn = {
|
7674
7662
|
dedupe: !0
|
7675
|
-
},
|
7676
|
-
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] =
|
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) => {
|
7677
7665
|
for (const J in U) {
|
7678
7666
|
const M = J;
|
7679
7667
|
if (M === "data") {
|
@@ -7683,14 +7671,14 @@ const kr = he.use || ((e) => {
|
|
7683
7671
|
return !1;
|
7684
7672
|
}
|
7685
7673
|
return !0;
|
7686
|
-
}, Se =
|
7674
|
+
}, Se = Je(() => {
|
7687
7675
|
const y = !x || !t ? !1 : $(s) ? j().isPaused() || a ? !1 : $(c) ? !0 : c : s, F = (Q) => {
|
7688
|
-
const
|
7689
|
-
return delete
|
7676
|
+
const we = Me(Q);
|
7677
|
+
return delete we._k, y ? {
|
7690
7678
|
isValidating: !0,
|
7691
7679
|
isLoading: !0,
|
7692
|
-
...
|
7693
|
-
} :
|
7680
|
+
...we
|
7681
|
+
} : we;
|
7694
7682
|
}, J = V(), M = te(), ue = F(J), Re = J === M ? ue : F(M);
|
7695
7683
|
let X = ue;
|
7696
7684
|
return [
|
@@ -7703,7 +7691,7 @@ const kr = he.use || ((e) => {
|
|
7703
7691
|
}, [
|
7704
7692
|
n,
|
7705
7693
|
x
|
7706
|
-
]), pe =
|
7694
|
+
]), pe = wa.useSyncExternalStore(_e(
|
7707
7695
|
(y) => me(x, (F, J) => {
|
7708
7696
|
Ee(J, F) || y();
|
7709
7697
|
}),
|
@@ -7712,53 +7700,53 @@ const kr = he.use || ((e) => {
|
|
7712
7700
|
n,
|
7713
7701
|
x
|
7714
7702
|
]
|
7715
|
-
), 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(
|
7716
7704
|
async (y) => {
|
7717
7705
|
const F = D.current;
|
7718
7706
|
if (!x || !F || T.current || j().isPaused())
|
7719
7707
|
return !1;
|
7720
7708
|
let J, M, ue = !0;
|
7721
|
-
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 = {
|
7722
7710
|
isValidating: !1,
|
7723
7711
|
isLoading: !1
|
7724
|
-
},
|
7725
|
-
re(
|
7726
|
-
},
|
7712
|
+
}, He = () => {
|
7713
|
+
re(we);
|
7714
|
+
}, $e = () => {
|
7727
7715
|
const E = g[x];
|
7728
7716
|
E && E[1] === M && delete g[x];
|
7729
|
-
},
|
7717
|
+
}, Ge = {
|
7730
7718
|
isValidating: !0
|
7731
7719
|
};
|
7732
|
-
$(V().data) && (
|
7720
|
+
$(V().data) && (Ge.isLoading = !0);
|
7733
7721
|
try {
|
7734
|
-
if (X && (re(
|
7722
|
+
if (X && (re(Ge), i.loadingTimeout && $(V().data) && setTimeout(() => {
|
7735
7723
|
ue && Q() && j().onLoadingSlow(x, i);
|
7736
7724
|
}, i.loadingTimeout), g[x] = [
|
7737
7725
|
F(k),
|
7738
7726
|
bt()
|
7739
|
-
]), [J, M] = g[x], J = await J, X && setTimeout(
|
7727
|
+
]), [J, M] = g[x], J = await J, X && setTimeout($e, i.dedupingInterval), !g[x] || g[x][1] !== M)
|
7740
7728
|
return X && Q() && j().onDiscarded(x), !1;
|
7741
|
-
|
7729
|
+
we.error = Ce;
|
7742
7730
|
const E = v[x];
|
7743
7731
|
if (!$(E) && // case 1
|
7744
7732
|
(M <= E[0] || // case 2
|
7745
7733
|
M <= E[1] || // case 3
|
7746
7734
|
E[1] === 0))
|
7747
|
-
return
|
7735
|
+
return He(), X && Q() && j().onDiscarded(x), !1;
|
7748
7736
|
const A = V().data;
|
7749
|
-
|
7737
|
+
we.data = r(A, J) ? A : J, X && Q() && j().onSuccess(J, x, i);
|
7750
7738
|
} catch (E) {
|
7751
|
-
|
7739
|
+
$e();
|
7752
7740
|
const A = j(), { shouldRetryOnError: ae } = A;
|
7753
|
-
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) => {
|
7754
7742
|
const Te = m[x];
|
7755
|
-
Te && Te[0] && Te[0](
|
7743
|
+
Te && Te[0] && Te[0](Ve.ERROR_REVALIDATE_EVENT, de);
|
7756
7744
|
}, {
|
7757
7745
|
retryCount: (Re.retryCount || 0) + 1,
|
7758
7746
|
dedupe: !0
|
7759
7747
|
})));
|
7760
7748
|
}
|
7761
|
-
return ue = !1,
|
7749
|
+
return ue = !1, He(), !0;
|
7762
7750
|
},
|
7763
7751
|
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
7764
7752
|
// `keyValidating` are depending on `key`, so we can exclude them from
|
@@ -7781,40 +7769,40 @@ const kr = he.use || ((e) => {
|
|
7781
7769
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
7782
7770
|
[]
|
7783
7771
|
);
|
7784
|
-
if (
|
7772
|
+
if (et(() => {
|
7785
7773
|
D.current = t, N.current = i, $(O) || (B.current = O);
|
7786
|
-
}),
|
7774
|
+
}), et(() => {
|
7787
7775
|
if (!x) return;
|
7788
|
-
const y = L.bind(Ce,
|
7776
|
+
const y = L.bind(Ce, Wn);
|
7789
7777
|
let F = 0;
|
7790
|
-
const M =
|
7791
|
-
if (ue ==
|
7778
|
+
const M = Da(x, m, (ue, Re = {}) => {
|
7779
|
+
if (ue == Ve.FOCUS_EVENT) {
|
7792
7780
|
const X = Date.now();
|
7793
7781
|
j().revalidateOnFocus && X > F && G() && (F = X + j().focusThrottleInterval, y());
|
7794
|
-
} else if (ue ==
|
7782
|
+
} else if (ue == Ve.RECONNECT_EVENT)
|
7795
7783
|
j().revalidateOnReconnect && G() && y();
|
7796
7784
|
else {
|
7797
|
-
if (ue ==
|
7785
|
+
if (ue == Ve.MUTATE_EVENT)
|
7798
7786
|
return L();
|
7799
|
-
if (ue ==
|
7787
|
+
if (ue == Ve.ERROR_REVALIDATE_EVENT)
|
7800
7788
|
return L(Re);
|
7801
7789
|
}
|
7802
7790
|
});
|
7803
7791
|
return T.current = !1, b.current = x, _.current = !0, re({
|
7804
7792
|
_k: k
|
7805
|
-
}), z && ($(I) ||
|
7793
|
+
}), z && ($(I) || ut ? y() : Ea(y)), () => {
|
7806
7794
|
T.current = !0, M();
|
7807
7795
|
};
|
7808
7796
|
}, [
|
7809
7797
|
x
|
7810
|
-
]),
|
7798
|
+
]), et(() => {
|
7811
7799
|
let y;
|
7812
7800
|
function F() {
|
7813
|
-
const M =
|
7801
|
+
const M = Le(p) ? p(V().data) : p;
|
7814
7802
|
M && y !== -1 && (y = setTimeout(J, M));
|
7815
7803
|
}
|
7816
7804
|
function J() {
|
7817
|
-
!V().error && (l || j().isVisible()) && (u || j().isOnline()) ? L(
|
7805
|
+
!V().error && (l || j().isVisible()) && (u || j().isOnline()) ? L(Wn).then(F) : F();
|
7818
7806
|
}
|
7819
7807
|
return F(), () => {
|
7820
7808
|
y && (clearTimeout(y), y = -1);
|
@@ -7824,18 +7812,18 @@ const kr = he.use || ((e) => {
|
|
7824
7812
|
l,
|
7825
7813
|
u,
|
7826
7814
|
x
|
7827
|
-
]),
|
7828
|
-
if (!
|
7815
|
+
]), jr(H), a && $(I) && x) {
|
7816
|
+
if (!qt && ut)
|
7829
7817
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
7830
7818
|
D.current = t, N.current = i, T.current = !1;
|
7831
7819
|
const y = w[x];
|
7832
7820
|
if (!$(y)) {
|
7833
7821
|
const F = xe(y);
|
7834
|
-
|
7822
|
+
_r(F);
|
7835
7823
|
}
|
7836
7824
|
if ($(q)) {
|
7837
|
-
const F = L(
|
7838
|
-
$(H) || (F.status = "fulfilled", F.value = !0),
|
7825
|
+
const F = L(Wn);
|
7826
|
+
$(H) || (F.status = "fulfilled", F.value = !0), _r(F);
|
7839
7827
|
} else
|
7840
7828
|
throw q;
|
7841
7829
|
}
|
@@ -7854,10 +7842,10 @@ const kr = he.use || ((e) => {
|
|
7854
7842
|
return U.isLoading = !0, ee;
|
7855
7843
|
}
|
7856
7844
|
};
|
7857
|
-
},
|
7845
|
+
}, cp = Ca(sp), Ar = qt ? (e) => {
|
7858
7846
|
e();
|
7859
|
-
} :
|
7860
|
-
const [, t] =
|
7847
|
+
} : ye.startTransition, lp = (e) => {
|
7848
|
+
const [, t] = Fr({}), i = he(!1), n = he(e), r = he({
|
7861
7849
|
data: !1,
|
7862
7850
|
error: !1,
|
7863
7851
|
isValidating: !1
|
@@ -7870,26 +7858,26 @@ const kr = he.use || ((e) => {
|
|
7870
7858
|
}
|
7871
7859
|
s && !i.current && t({});
|
7872
7860
|
}, []);
|
7873
|
-
return
|
7861
|
+
return et(() => (i.current = !1, () => {
|
7874
7862
|
i.current = !0;
|
7875
7863
|
})), [
|
7876
7864
|
n,
|
7877
7865
|
r.current,
|
7878
7866
|
a
|
7879
7867
|
];
|
7880
|
-
},
|
7881
|
-
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({
|
7882
7870
|
data: Ce,
|
7883
7871
|
error: Ce,
|
7884
7872
|
isMutating: !1
|
7885
7873
|
}), u = c.current, f = _e(
|
7886
7874
|
async (v, g) => {
|
7887
|
-
const [w, x] =
|
7875
|
+
const [w, x] = Vt(r.current);
|
7888
7876
|
if (!a.current)
|
7889
7877
|
throw new Error("Can’t trigger the mutation: missing fetcher.");
|
7890
7878
|
if (!w)
|
7891
7879
|
throw new Error("Can’t trigger the mutation: missing key.");
|
7892
|
-
const k =
|
7880
|
+
const k = Me(Me({
|
7893
7881
|
populateCache: !1,
|
7894
7882
|
throwOnError: !0
|
7895
7883
|
}, o.current), g), _ = bt();
|
@@ -7903,17 +7891,17 @@ const kr = he.use || ((e) => {
|
|
7903
7891
|
arg: v
|
7904
7892
|
}),
|
7905
7893
|
// We must throw the error here so we can catch and update the states.
|
7906
|
-
|
7894
|
+
Me(k, {
|
7907
7895
|
throwOnError: !0
|
7908
7896
|
})
|
7909
7897
|
);
|
7910
|
-
return s.current <= _ && (
|
7898
|
+
return s.current <= _ && (Ar(() => l({
|
7911
7899
|
data: T,
|
7912
7900
|
isMutating: !1,
|
7913
7901
|
error: void 0
|
7914
7902
|
})), k.onSuccess == null || k.onSuccess.call(k, T, w, k)), T;
|
7915
7903
|
} catch (T) {
|
7916
|
-
if (s.current <= _ && (
|
7904
|
+
if (s.current <= _ && (Ar(() => l({
|
7917
7905
|
error: T,
|
7918
7906
|
isMutating: !1
|
7919
7907
|
})), k.onError == null || k.onError.call(k, T, w, k), k.throwOnError))
|
@@ -7929,7 +7917,7 @@ const kr = he.use || ((e) => {
|
|
7929
7917
|
isMutating: !1
|
7930
7918
|
});
|
7931
7919
|
}, []);
|
7932
|
-
return
|
7920
|
+
return et(() => {
|
7933
7921
|
r.current = e, a.current = t, o.current = i;
|
7934
7922
|
}), {
|
7935
7923
|
trigger: f,
|
@@ -7944,7 +7932,65 @@ const kr = he.use || ((e) => {
|
|
7944
7932
|
return p.isMutating = !0, u.isMutating;
|
7945
7933
|
}
|
7946
7934
|
};
|
7947
|
-
},
|
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) => {
|
7948
7994
|
const t = (r) => typeof r == "object" && !(r instanceof Date) && !(r instanceof File) && r !== null, i = (r, a, o) => {
|
7949
7995
|
for (const s in a) {
|
7950
7996
|
const c = a[s];
|
@@ -7957,21 +8003,21 @@ const kr = he.use || ((e) => {
|
|
7957
8003
|
}
|
7958
8004
|
return n;
|
7959
8005
|
};
|
7960
|
-
function
|
8006
|
+
function nn(e, t, i) {
|
7961
8007
|
for (let n = 0; n < e.length; ++n)
|
7962
8008
|
t[i + n] = e.charCodeAt(n);
|
7963
8009
|
}
|
7964
8010
|
function cn(e, t, i) {
|
7965
8011
|
e = Math.floor(e), t[i + 0] = e & 255, t[i + 1] = e >> 8 & 255;
|
7966
8012
|
}
|
7967
|
-
function
|
8013
|
+
function it(e, t, i) {
|
7968
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;
|
7969
8015
|
}
|
7970
|
-
function
|
8016
|
+
function hp(e) {
|
7971
8017
|
const t = new ArrayBuffer(4);
|
7972
8018
|
return new Float32Array(t)[0] = e, new Uint32Array(t)[0] | 0;
|
7973
8019
|
}
|
7974
|
-
function
|
8020
|
+
function yp(e, t, i, n) {
|
7975
8021
|
let r = 0, a = 0;
|
7976
8022
|
const o = e.length, s = e.numberOfChannels;
|
7977
8023
|
let c, p;
|
@@ -7980,31 +8026,31 @@ function fp(e, t, i, n) {
|
|
7980
8026
|
if (c = e.getChannelData(a), n === 16)
|
7981
8027
|
p = c[r] * 32768, p = Math.max(-32768, Math.min(p, 32767)), cn(p, t, i), i += 2;
|
7982
8028
|
else if (n === 32)
|
7983
|
-
p =
|
8029
|
+
p = hp(c[r]), it(p, t, i), i += 4;
|
7984
8030
|
else {
|
7985
8031
|
console.log("Invalid bit depth for PCM encoding.");
|
7986
8032
|
return;
|
7987
8033
|
}
|
7988
8034
|
}
|
7989
|
-
async function
|
8035
|
+
async function bp(e, t) {
|
7990
8036
|
let i = e instanceof Blob ? e : new Blob(e);
|
7991
8037
|
const n = URL.createObjectURL(i), a = await (await fetch(n)).arrayBuffer();
|
7992
8038
|
return await new AudioContext(t).decodeAudioData(a);
|
7993
8039
|
}
|
7994
|
-
async function
|
8040
|
+
async function wp(e, t = !1) {
|
7995
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);
|
7996
|
-
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" });
|
7997
8043
|
}
|
7998
|
-
async function
|
7999
|
-
const n = await
|
8000
|
-
return
|
8044
|
+
async function Ep(e, t = !1, i) {
|
8045
|
+
const n = await bp(e, i);
|
8046
|
+
return wp(n, t);
|
8001
8047
|
}
|
8002
|
-
const
|
8003
|
-
class
|
8048
|
+
const Sp = 128;
|
8049
|
+
class Rp {
|
8004
8050
|
constructor() {
|
8005
|
-
|
8006
|
-
|
8007
|
-
|
8051
|
+
Ht(this, "mediaRecorder", null);
|
8052
|
+
Ht(this, "stream", null);
|
8053
|
+
Ht(this, "__data", null);
|
8008
8054
|
}
|
8009
8055
|
/**
|
8010
8056
|
* @returns {Promise<boolean>} - true if user has microphone access, false otherwise
|
@@ -8021,7 +8067,7 @@ class hp {
|
|
8021
8067
|
if (((t = this.mediaRecorder) == null ? void 0 : t.state) === "recording") return !0;
|
8022
8068
|
try {
|
8023
8069
|
this.stream = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }), this.mediaRecorder = new MediaRecorder(this.stream, {
|
8024
|
-
bitsPerSecond:
|
8070
|
+
bitsPerSecond: Sp * 1e3
|
8025
8071
|
}), this.mediaRecorder.ondataavailable = (i) => this.__data = i.data;
|
8026
8072
|
} catch (i) {
|
8027
8073
|
return console.error(i), !1;
|
@@ -8049,15 +8095,15 @@ class hp {
|
|
8049
8095
|
* @returns {Promise<Blob | null>} - Blob of the recorded audio
|
8050
8096
|
*/
|
8051
8097
|
async getWavBlob() {
|
8052
|
-
return this.__data ? await
|
8098
|
+
return this.__data ? await Ep(this.__data) : null;
|
8053
8099
|
}
|
8054
8100
|
}
|
8055
|
-
const
|
8056
|
-
const [t, i] =
|
8057
|
-
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(() => {
|
8058
8104
|
var p;
|
8059
8105
|
const c = async () => {
|
8060
|
-
|
8106
|
+
rn.checkMicrophonePermission().then(i);
|
8061
8107
|
};
|
8062
8108
|
return c(), (p = navigator == null ? void 0 : navigator.mediaDevices) == null || p.addEventListener("devicechange", c), () => {
|
8063
8109
|
var l;
|
@@ -8067,42 +8113,42 @@ const nn = new hp(), _a = "Recording.wav", yp = 1500, Pp = (e) => {
|
|
8067
8113
|
if (n) {
|
8068
8114
|
if (!a)
|
8069
8115
|
return;
|
8070
|
-
r(!1), o(!1), await
|
8071
|
-
const p = await
|
8116
|
+
r(!1), o(!1), await rn.stopRecording();
|
8117
|
+
const p = await rn.getWavBlob();
|
8072
8118
|
if (!p) {
|
8073
8119
|
console.log("Failed to get audio blob", p);
|
8074
8120
|
return;
|
8075
8121
|
}
|
8076
|
-
const l = new File([p],
|
8122
|
+
const l = new File([p], ja, {
|
8077
8123
|
type: "audio/mpeg",
|
8078
8124
|
lastModified: Date.now()
|
8079
8125
|
});
|
8080
8126
|
e.onFileUpdate(l);
|
8081
8127
|
return;
|
8082
8128
|
}
|
8083
|
-
const c = await
|
8129
|
+
const c = await rn.startRecording();
|
8084
8130
|
r(c), setTimeout(() => {
|
8085
8131
|
o(!0);
|
8086
|
-
},
|
8132
|
+
}, Tp);
|
8087
8133
|
} };
|
8088
|
-
},
|
8089
|
-
baseURL:
|
8090
|
-
}),
|
8134
|
+
}, kp = "https://arpeggi.io/api/v2/", Fa = De.create({
|
8135
|
+
baseURL: kp
|
8136
|
+
}), Op = async (e, { arg: t }) => (await Fa.post(
|
8091
8137
|
"/ml-inference-jobs",
|
8092
|
-
|
8138
|
+
gp({
|
8093
8139
|
soundFile: t.file,
|
8094
8140
|
voiceModelId: t.voiceModelId,
|
8095
8141
|
metadata: {
|
8096
|
-
isRecordedAudio: t.file.name ===
|
8142
|
+
isRecordedAudio: t.file.name === ja
|
8097
8143
|
}
|
8098
8144
|
})
|
8099
|
-
)).data,
|
8145
|
+
)).data, _p = async (e) => e === null ? null : (await Fa.get(e)).data, Ap = (e) => {
|
8100
8146
|
const t = e > 0;
|
8101
|
-
return
|
8147
|
+
return op(t ? `/ml-inference-jobs/${e}` : null, _p, {
|
8102
8148
|
refreshInterval: 1e3
|
8103
8149
|
});
|
8104
|
-
},
|
8105
|
-
const [e, t] =
|
8150
|
+
}, Cp = () => {
|
8151
|
+
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);
|
8106
8152
|
return {
|
8107
8153
|
file: e,
|
8108
8154
|
setFile: t,
|
@@ -8130,33 +8176,37 @@ const nn = new hp(), _a = "Recording.wav", yp = 1500, Pp = (e) => {
|
|
8130
8176
|
},
|
8131
8177
|
isMutating: p
|
8132
8178
|
};
|
8133
|
-
},
|
8134
|
-
const t =
|
8135
|
-
return /* @__PURE__ */
|
8136
|
-
},
|
8137
|
-
const { setFile: t } =
|
8138
|
-
return /* @__PURE__ */
|
8139
|
-
|
8179
|
+
}, Pa = ye.createContext({}), Dp = () => ye.useContext(Pa), Wp = ({ children: e }) => {
|
8180
|
+
const t = Cp();
|
8181
|
+
return /* @__PURE__ */ ot.jsx(vp, { children: /* @__PURE__ */ ot.jsx(Pa.Provider, { value: t, children: e }) });
|
8182
|
+
}, jp = 1, Fp = 100 * 1024 * 1024, Pp = 1, Ip = 100, Up = ({ children: e }) => {
|
8183
|
+
const { setFile: t } = Dp(), i = (n) => t(n[0]);
|
8184
|
+
return /* @__PURE__ */ ot.jsx(
|
8185
|
+
Xs,
|
8140
8186
|
{
|
8141
8187
|
files: [],
|
8142
8188
|
onFileAccepted: i,
|
8143
|
-
maxFileCount:
|
8144
|
-
maxSizeBytes:
|
8145
|
-
minSizeBytes:
|
8146
|
-
maxDurationS:
|
8189
|
+
maxFileCount: jp,
|
8190
|
+
maxSizeBytes: Fp,
|
8191
|
+
minSizeBytes: Pp,
|
8192
|
+
maxDurationS: Ip,
|
8147
8193
|
children: e
|
8148
8194
|
}
|
8149
8195
|
);
|
8150
8196
|
};
|
8151
8197
|
export {
|
8152
|
-
|
8153
|
-
|
8154
|
-
|
8155
|
-
|
8156
|
-
|
8157
|
-
|
8158
|
-
|
8159
|
-
|
8160
|
-
|
8198
|
+
Xs as AudioFilePickerRoot,
|
8199
|
+
Mp as ConvertStep,
|
8200
|
+
Up as FilePicker,
|
8201
|
+
Wp as GuestConvertProvider,
|
8202
|
+
Tp as MIN_RECORDING_LENGTH_MS,
|
8203
|
+
vp as PlayerProvider,
|
8204
|
+
ja as RECORDED_AUDIO_NAME,
|
8205
|
+
Lp as useAudioFilePickerContext,
|
8206
|
+
Dp as useGuestConvertContext,
|
8207
|
+
Np as usePlayback,
|
8208
|
+
xp as usePlayer,
|
8209
|
+
$p as usePlayerControls,
|
8210
|
+
qp as useRecorder
|
8161
8211
|
};
|
8162
8212
|
//# sourceMappingURL=index.es.js.map
|