xmirror-components 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/index.cjs +10 -10
- package/build/dist/index.mjs +358 -352
- package/build/lib/components/AntdApp/index.d.ts +3 -4
- package/build/lib/index.d.ts +2 -4
- package/build/package.json +1 -1
- package/package.json +1 -1
package/build/dist/index.mjs
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
let Er = Nr, Gr = kr, Ur = qr;
|
|
4
|
-
function Wt({ children: r }) {
|
|
5
|
-
const e = Mr.useApp();
|
|
6
|
-
return Er = e.message, Ur = e.modal, Gr = e.notification, r;
|
|
7
|
-
}
|
|
1
|
+
import kr, { forwardRef as qr, useRef as j, useMemo as Er, useEffect as Z, useState as Mr, useCallback as Wr } from "react";
|
|
2
|
+
import { message as $r, notification as Fr, Modal as Ir, App as er, Checkbox as Lr, Switch as Yr } from "antd";
|
|
8
3
|
var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
|
-
function Tr(
|
|
10
|
-
return
|
|
4
|
+
function Tr(e) {
|
|
5
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
11
6
|
}
|
|
12
|
-
var se = { exports: {} },
|
|
7
|
+
var se = { exports: {} }, te = {};
|
|
13
8
|
/**
|
|
14
9
|
* @license React
|
|
15
10
|
* react-jsx-runtime.production.js
|
|
@@ -19,11 +14,11 @@ var se = { exports: {} }, re = {};
|
|
|
19
14
|
* This source code is licensed under the MIT license found in the
|
|
20
15
|
* LICENSE file in the root directory of this source tree.
|
|
21
16
|
*/
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
var
|
|
17
|
+
var rr;
|
|
18
|
+
function Gr() {
|
|
19
|
+
if (rr) return te;
|
|
20
|
+
rr = 1;
|
|
21
|
+
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
27
22
|
function n(a, i, o) {
|
|
28
23
|
var c = null;
|
|
29
24
|
if (o !== void 0 && (c = "" + o), i.key !== void 0 && (c = "" + i.key), "key" in i) {
|
|
@@ -32,16 +27,16 @@ function Br() {
|
|
|
32
27
|
f !== "key" && (o[f] = i[f]);
|
|
33
28
|
} else o = i;
|
|
34
29
|
return i = o.ref, {
|
|
35
|
-
$$typeof:
|
|
30
|
+
$$typeof: e,
|
|
36
31
|
type: a,
|
|
37
32
|
key: c,
|
|
38
33
|
ref: i !== void 0 ? i : null,
|
|
39
34
|
props: o
|
|
40
35
|
};
|
|
41
36
|
}
|
|
42
|
-
return
|
|
37
|
+
return te.Fragment = r, te.jsx = n, te.jsxs = n, te;
|
|
43
38
|
}
|
|
44
|
-
var
|
|
39
|
+
var ne = {};
|
|
45
40
|
/**
|
|
46
41
|
* @license React
|
|
47
42
|
* react-jsx-runtime.development.js
|
|
@@ -51,13 +46,13 @@ var te = {};
|
|
|
51
46
|
* This source code is licensed under the MIT license found in the
|
|
52
47
|
* LICENSE file in the root directory of this source tree.
|
|
53
48
|
*/
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
return
|
|
57
|
-
function
|
|
49
|
+
var tr;
|
|
50
|
+
function Ur() {
|
|
51
|
+
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
|
+
function e(t) {
|
|
58
53
|
if (t == null) return null;
|
|
59
54
|
if (typeof t == "function")
|
|
60
|
-
return t.$$typeof ===
|
|
55
|
+
return t.$$typeof === Cr ? null : t.displayName || t.name || null;
|
|
61
56
|
if (typeof t == "string") return t;
|
|
62
57
|
switch (t) {
|
|
63
58
|
case L:
|
|
@@ -79,28 +74,28 @@ function Hr() {
|
|
|
79
74
|
), t.$$typeof) {
|
|
80
75
|
case oe:
|
|
81
76
|
return (t.displayName || "Context") + ".Provider";
|
|
82
|
-
case Z:
|
|
83
|
-
return (t._context.displayName || "Context") + ".Consumer";
|
|
84
77
|
case Q:
|
|
78
|
+
return (t._context.displayName || "Context") + ".Consumer";
|
|
79
|
+
case K:
|
|
85
80
|
var l = t.render;
|
|
86
81
|
return t = t.displayName, t || (t = l.displayName || l.name || "", t = t !== "" ? "ForwardRef(" + t + ")" : "ForwardRef"), t;
|
|
87
82
|
case C:
|
|
88
|
-
return l = t.displayName || null, l !== null ? l :
|
|
83
|
+
return l = t.displayName || null, l !== null ? l : e(t.type) || "Memo";
|
|
89
84
|
case $:
|
|
90
85
|
l = t._payload, t = t._init;
|
|
91
86
|
try {
|
|
92
|
-
return
|
|
87
|
+
return e(t(l));
|
|
93
88
|
} catch {
|
|
94
89
|
}
|
|
95
90
|
}
|
|
96
91
|
return null;
|
|
97
92
|
}
|
|
98
|
-
function
|
|
93
|
+
function r(t) {
|
|
99
94
|
return "" + t;
|
|
100
95
|
}
|
|
101
96
|
function n(t) {
|
|
102
97
|
try {
|
|
103
|
-
|
|
98
|
+
r(t);
|
|
104
99
|
var l = !1;
|
|
105
100
|
} catch {
|
|
106
101
|
l = !0;
|
|
@@ -112,13 +107,13 @@ function Hr() {
|
|
|
112
107
|
l,
|
|
113
108
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
114
109
|
y
|
|
115
|
-
),
|
|
110
|
+
), r(t);
|
|
116
111
|
}
|
|
117
112
|
}
|
|
118
113
|
function a() {
|
|
119
114
|
}
|
|
120
115
|
function i() {
|
|
121
|
-
if (
|
|
116
|
+
if (ee === 0) {
|
|
122
117
|
Ge = console.log, Ue = console.info, Be = console.warn, He = console.error, ze = console.group, De = console.groupCollapsed, Ve = console.groupEnd;
|
|
123
118
|
var t = {
|
|
124
119
|
configurable: !0,
|
|
@@ -136,10 +131,10 @@ function Hr() {
|
|
|
136
131
|
groupEnd: t
|
|
137
132
|
});
|
|
138
133
|
}
|
|
139
|
-
|
|
134
|
+
ee++;
|
|
140
135
|
}
|
|
141
136
|
function o() {
|
|
142
|
-
if (
|
|
137
|
+
if (ee--, ee === 0) {
|
|
143
138
|
var t = { configurable: !0, enumerable: !0, writable: !0 };
|
|
144
139
|
Object.defineProperties(console, {
|
|
145
140
|
log: H({}, t, { value: Ge }),
|
|
@@ -151,7 +146,7 @@ function Hr() {
|
|
|
151
146
|
groupEnd: H({}, t, { value: Ve })
|
|
152
147
|
});
|
|
153
148
|
}
|
|
154
|
-
0 >
|
|
149
|
+
0 > ee && console.error(
|
|
155
150
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
156
151
|
);
|
|
157
152
|
}
|
|
@@ -175,7 +170,7 @@ function Hr() {
|
|
|
175
170
|
var y = null;
|
|
176
171
|
y = B.H, B.H = null, i();
|
|
177
172
|
try {
|
|
178
|
-
var
|
|
173
|
+
var _ = {
|
|
179
174
|
DetermineComponentFrameRoot: function() {
|
|
180
175
|
try {
|
|
181
176
|
if (l) {
|
|
@@ -217,17 +212,17 @@ function Hr() {
|
|
|
217
212
|
return [null, null];
|
|
218
213
|
}
|
|
219
214
|
};
|
|
220
|
-
|
|
215
|
+
_.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
221
216
|
var w = Object.getOwnPropertyDescriptor(
|
|
222
|
-
|
|
217
|
+
_.DetermineComponentFrameRoot,
|
|
223
218
|
"name"
|
|
224
219
|
);
|
|
225
220
|
w && w.configurable && Object.defineProperty(
|
|
226
|
-
|
|
221
|
+
_.DetermineComponentFrameRoot,
|
|
227
222
|
"name",
|
|
228
223
|
{ value: "DetermineComponentFrameRoot" }
|
|
229
224
|
);
|
|
230
|
-
var h =
|
|
225
|
+
var h = _.DetermineComponentFrameRoot(), F = h[0], V = h[1];
|
|
231
226
|
if (F && V) {
|
|
232
227
|
var S = F.split(`
|
|
233
228
|
`), z = V.split(`
|
|
@@ -248,12 +243,12 @@ function Hr() {
|
|
|
248
243
|
if (w !== 1 || h !== 1)
|
|
249
244
|
do
|
|
250
245
|
if (w--, h--, 0 > h || S[w] !== z[h]) {
|
|
251
|
-
var
|
|
246
|
+
var re = `
|
|
252
247
|
` + S[w].replace(
|
|
253
248
|
" at new ",
|
|
254
249
|
" at "
|
|
255
250
|
);
|
|
256
|
-
return t.displayName &&
|
|
251
|
+
return t.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", t.displayName)), typeof t == "function" && pe.set(t, re), re;
|
|
257
252
|
}
|
|
258
253
|
while (1 <= w && 0 <= h);
|
|
259
254
|
break;
|
|
@@ -282,7 +277,7 @@ function Hr() {
|
|
|
282
277
|
}
|
|
283
278
|
if (typeof t == "object")
|
|
284
279
|
switch (t.$$typeof) {
|
|
285
|
-
case
|
|
280
|
+
case K:
|
|
286
281
|
return t = f(t.render, !1), t;
|
|
287
282
|
case C:
|
|
288
283
|
return s(t.type);
|
|
@@ -319,18 +314,18 @@ function Hr() {
|
|
|
319
314
|
});
|
|
320
315
|
}
|
|
321
316
|
function p() {
|
|
322
|
-
var t =
|
|
317
|
+
var t = e(this.type);
|
|
323
318
|
return Ze[t] || (Ze[t] = !0, console.error(
|
|
324
319
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
325
320
|
)), t = this.props.ref, t !== void 0 ? t : null;
|
|
326
321
|
}
|
|
327
|
-
function g(t, l, d, y,
|
|
322
|
+
function g(t, l, d, y, _, w) {
|
|
328
323
|
return d = w.ref, t = {
|
|
329
324
|
$$typeof: k,
|
|
330
325
|
type: t,
|
|
331
326
|
key: l,
|
|
332
327
|
props: w,
|
|
333
|
-
_owner:
|
|
328
|
+
_owner: _
|
|
334
329
|
}, (d !== void 0 ? d : null) !== null ? Object.defineProperty(t, "ref", {
|
|
335
330
|
enumerable: !1,
|
|
336
331
|
get: p
|
|
@@ -346,8 +341,8 @@ function Hr() {
|
|
|
346
341
|
value: null
|
|
347
342
|
}), Object.freeze && (Object.freeze(t.props), Object.freeze(t)), t;
|
|
348
343
|
}
|
|
349
|
-
function b(t, l, d, y,
|
|
350
|
-
if (typeof t == "string" || typeof t == "function" || t === L || t === P || t === W || t === U || t === T || t === ue || typeof t == "object" && t !== null && (t.$$typeof === $ || t.$$typeof === C || t.$$typeof === oe || t.$$typeof ===
|
|
344
|
+
function b(t, l, d, y, _, w) {
|
|
345
|
+
if (typeof t == "string" || typeof t == "function" || t === L || t === P || t === W || t === U || t === T || t === ue || typeof t == "object" && t !== null && (t.$$typeof === $ || t.$$typeof === C || t.$$typeof === oe || t.$$typeof === Q || t.$$typeof === K || t.$$typeof === Ar || t.getModuleId !== void 0)) {
|
|
351
346
|
var h = l.children;
|
|
352
347
|
if (h !== void 0)
|
|
353
348
|
if (y)
|
|
@@ -361,13 +356,13 @@ function Hr() {
|
|
|
361
356
|
);
|
|
362
357
|
else E(h, t);
|
|
363
358
|
} else
|
|
364
|
-
h = "", (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), t === null ? y = "null" : ge(t) ? y = "array" : t !== void 0 && t.$$typeof === k ? (y = "<" + (
|
|
359
|
+
h = "", (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), t === null ? y = "null" : ge(t) ? y = "array" : t !== void 0 && t.$$typeof === k ? (y = "<" + (e(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : y = typeof t, console.error(
|
|
365
360
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
366
361
|
y,
|
|
367
362
|
h
|
|
368
363
|
);
|
|
369
364
|
if (Ye.call(l, "key")) {
|
|
370
|
-
h =
|
|
365
|
+
h = e(t);
|
|
371
366
|
var F = Object.keys(l).filter(function(S) {
|
|
372
367
|
return S !== "key";
|
|
373
368
|
});
|
|
@@ -392,10 +387,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
392
387
|
return h && v(
|
|
393
388
|
d,
|
|
394
389
|
typeof t == "function" ? t.displayName || t.name || "Unknown" : t
|
|
395
|
-
), g(t, h, w,
|
|
390
|
+
), g(t, h, w, _, u(), d);
|
|
396
391
|
}
|
|
397
392
|
function E(t, l) {
|
|
398
|
-
if (typeof t == "object" && t && t.$$typeof !==
|
|
393
|
+
if (typeof t == "object" && t && t.$$typeof !== Nr) {
|
|
399
394
|
if (ge(t))
|
|
400
395
|
for (var d = 0; d < t.length; d++) {
|
|
401
396
|
var y = t[d];
|
|
@@ -415,11 +410,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
415
410
|
if (t._store && !t._store.validated && t.key == null && (t._store.validated = 1, l = N(l), !Ke[l])) {
|
|
416
411
|
Ke[l] = !0;
|
|
417
412
|
var d = "";
|
|
418
|
-
t && t._owner != null && t._owner !== u() && (d = null, typeof t._owner.tag == "number" ? d =
|
|
413
|
+
t && t._owner != null && t._owner !== u() && (d = null, typeof t._owner.tag == "number" ? d = e(t._owner.type) : typeof t._owner.name == "string" && (d = t._owner.name), d = " It was passed a child from " + d + ".");
|
|
419
414
|
var y = B.getCurrentStack;
|
|
420
415
|
B.getCurrentStack = function() {
|
|
421
|
-
var
|
|
422
|
-
return y && (
|
|
416
|
+
var _ = s(t.type);
|
|
417
|
+
return y && (_ += y() || ""), _;
|
|
423
418
|
}, console.error(
|
|
424
419
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
425
420
|
l,
|
|
@@ -429,48 +424,59 @@ React keys must be passed directly to JSX without using spread:
|
|
|
429
424
|
}
|
|
430
425
|
function N(t) {
|
|
431
426
|
var l = "", d = u();
|
|
432
|
-
return d && (d =
|
|
427
|
+
return d && (d = e(d.type)) && (l = `
|
|
433
428
|
|
|
434
|
-
Check the render method of \`` + d + "`."), l || (t =
|
|
429
|
+
Check the render method of \`` + d + "`."), l || (t = e(t)) && (l = `
|
|
435
430
|
|
|
436
431
|
Check the top-level render call using <` + t + ">."), l;
|
|
437
432
|
}
|
|
438
|
-
var M =
|
|
433
|
+
var M = kr, k = Symbol.for("react.transitional.element"), G = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), oe = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), ue = Symbol.for("react.offscreen"), Le = Symbol.iterator, Cr = Symbol.for("react.client.reference"), B = M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ye = Object.prototype.hasOwnProperty, H = Object.assign, Ar = Symbol.for("react.client.reference"), ge = Array.isArray, ee = 0, Ge, Ue, Be, He, ze, De, Ve;
|
|
439
434
|
a.__reactDisabledLog = !0;
|
|
440
|
-
var he, Je, ye = !1, pe = new (typeof WeakMap == "function" ? WeakMap : Map)(),
|
|
441
|
-
|
|
442
|
-
return b(t, l, d, !1, y,
|
|
443
|
-
},
|
|
444
|
-
return b(t, l, d, !0, y,
|
|
435
|
+
var he, Je, ye = !1, pe = new (typeof WeakMap == "function" ? WeakMap : Map)(), Nr = Symbol.for("react.client.reference"), Xe, Ze = {}, Qe = {}, Ke = {};
|
|
436
|
+
ne.Fragment = L, ne.jsx = function(t, l, d, y, _) {
|
|
437
|
+
return b(t, l, d, !1, y, _);
|
|
438
|
+
}, ne.jsxs = function(t, l, d, y, _) {
|
|
439
|
+
return b(t, l, d, !0, y, _);
|
|
445
440
|
};
|
|
446
|
-
}()),
|
|
441
|
+
}()), ne;
|
|
447
442
|
}
|
|
448
|
-
var
|
|
449
|
-
function
|
|
450
|
-
return
|
|
443
|
+
var nr;
|
|
444
|
+
function Br() {
|
|
445
|
+
return nr || (nr = 1, process.env.NODE_ENV === "production" ? se.exports = Gr() : se.exports = Ur()), se.exports;
|
|
451
446
|
}
|
|
452
|
-
var
|
|
453
|
-
|
|
454
|
-
|
|
447
|
+
var X = Br();
|
|
448
|
+
let wr = $r, Hr = Fr, zr = Ir;
|
|
449
|
+
function Wt({ children: e, ...r }) {
|
|
450
|
+
const n = er.useApp();
|
|
451
|
+
return wr = n.message, zr = n.modal, Hr = n.notification, /* @__PURE__ */ X.jsx(
|
|
452
|
+
er,
|
|
453
|
+
{
|
|
454
|
+
...r,
|
|
455
|
+
children: e
|
|
456
|
+
}
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
const $t = qr(
|
|
460
|
+
({ type: e = "", className: r = "", symbol: n = !1, ...a }, i) => n ? /* @__PURE__ */ X.jsx(
|
|
455
461
|
"svg",
|
|
456
462
|
{
|
|
457
|
-
className: `iconfont-symbol ${
|
|
463
|
+
className: `iconfont-symbol ${e} ${r}`,
|
|
458
464
|
"aria-hidden": "true",
|
|
459
465
|
ref: i,
|
|
460
466
|
...a,
|
|
461
|
-
children: /* @__PURE__ */
|
|
467
|
+
children: /* @__PURE__ */ X.jsx("use", { xlinkHref: `#${e}` })
|
|
462
468
|
}
|
|
463
|
-
) : /* @__PURE__ */
|
|
469
|
+
) : /* @__PURE__ */ X.jsx(
|
|
464
470
|
"i",
|
|
465
471
|
{
|
|
466
|
-
className: `iconfont ${
|
|
472
|
+
className: `iconfont ${e} ${r}`,
|
|
467
473
|
ref: i,
|
|
468
474
|
...a
|
|
469
475
|
}
|
|
470
476
|
)
|
|
471
477
|
), Ft = ({
|
|
472
|
-
checked:
|
|
473
|
-
onChange:
|
|
478
|
+
checked: e,
|
|
479
|
+
onChange: r,
|
|
474
480
|
trueValue: n = !0,
|
|
475
481
|
falseValue: a = !1,
|
|
476
482
|
trueLabel: i = "",
|
|
@@ -478,11 +484,11 @@ const $t = Ir(
|
|
|
478
484
|
children: c,
|
|
479
485
|
...f
|
|
480
486
|
}) => {
|
|
481
|
-
const s =
|
|
482
|
-
|
|
487
|
+
const s = e === n, u = (m) => {
|
|
488
|
+
r == null || r(m.target.checked ? n : a, m);
|
|
483
489
|
};
|
|
484
|
-
return /* @__PURE__ */
|
|
485
|
-
|
|
490
|
+
return /* @__PURE__ */ X.jsx(
|
|
491
|
+
Lr,
|
|
486
492
|
{
|
|
487
493
|
checked: s,
|
|
488
494
|
onChange: u,
|
|
@@ -491,17 +497,17 @@ const $t = Ir(
|
|
|
491
497
|
}
|
|
492
498
|
);
|
|
493
499
|
}, It = ({
|
|
494
|
-
checked:
|
|
495
|
-
onChange:
|
|
500
|
+
checked: e,
|
|
501
|
+
onChange: r,
|
|
496
502
|
trueValue: n = !0,
|
|
497
503
|
falseValue: a = !1,
|
|
498
504
|
...i
|
|
499
505
|
}) => {
|
|
500
|
-
const o =
|
|
501
|
-
|
|
506
|
+
const o = e === n, c = (f, s) => {
|
|
507
|
+
r == null || r(f ? n : a, s);
|
|
502
508
|
};
|
|
503
|
-
return /* @__PURE__ */
|
|
504
|
-
|
|
509
|
+
return /* @__PURE__ */ X.jsx(
|
|
510
|
+
Yr,
|
|
505
511
|
{
|
|
506
512
|
checked: o,
|
|
507
513
|
onChange: c,
|
|
@@ -509,38 +515,38 @@ const $t = Ir(
|
|
|
509
515
|
}
|
|
510
516
|
);
|
|
511
517
|
};
|
|
512
|
-
var Dr = function(
|
|
513
|
-
return function(
|
|
514
|
-
var a =
|
|
515
|
-
|
|
518
|
+
var Dr = function(e) {
|
|
519
|
+
return function(r, n) {
|
|
520
|
+
var a = j(!1);
|
|
521
|
+
e(function() {
|
|
516
522
|
return function() {
|
|
517
523
|
a.current = !1;
|
|
518
524
|
};
|
|
519
|
-
}, []),
|
|
525
|
+
}, []), e(function() {
|
|
520
526
|
if (!a.current)
|
|
521
527
|
a.current = !0;
|
|
522
528
|
else
|
|
523
|
-
return
|
|
529
|
+
return r();
|
|
524
530
|
}, n);
|
|
525
531
|
};
|
|
526
532
|
}, A = function() {
|
|
527
|
-
return A = Object.assign || function(
|
|
533
|
+
return A = Object.assign || function(r) {
|
|
528
534
|
for (var n, a = 1, i = arguments.length; a < i; a++) {
|
|
529
535
|
n = arguments[a];
|
|
530
|
-
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (
|
|
536
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
531
537
|
}
|
|
532
|
-
return
|
|
538
|
+
return r;
|
|
533
539
|
}, A.apply(this, arguments);
|
|
534
540
|
};
|
|
535
|
-
function
|
|
541
|
+
function jr(e, r) {
|
|
536
542
|
var n = {};
|
|
537
|
-
for (var a in
|
|
538
|
-
if (
|
|
539
|
-
for (var i = 0, a = Object.getOwnPropertySymbols(
|
|
540
|
-
|
|
543
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && r.indexOf(a) < 0 && (n[a] = e[a]);
|
|
544
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
545
|
+
for (var i = 0, a = Object.getOwnPropertySymbols(e); i < a.length; i++)
|
|
546
|
+
r.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[i]) && (n[a[i]] = e[a[i]]);
|
|
541
547
|
return n;
|
|
542
548
|
}
|
|
543
|
-
function Vr(
|
|
549
|
+
function Vr(e, r, n, a) {
|
|
544
550
|
function i(o) {
|
|
545
551
|
return o instanceof n ? o : new n(function(c) {
|
|
546
552
|
c(o);
|
|
@@ -564,10 +570,10 @@ function Vr(r, e, n, a) {
|
|
|
564
570
|
function u(m) {
|
|
565
571
|
m.done ? o(m.value) : i(m.value).then(f, s);
|
|
566
572
|
}
|
|
567
|
-
u((a = a.apply(
|
|
573
|
+
u((a = a.apply(e, r || [])).next());
|
|
568
574
|
});
|
|
569
575
|
}
|
|
570
|
-
function Jr(
|
|
576
|
+
function Jr(e, r) {
|
|
571
577
|
var n = { label: 0, sent: function() {
|
|
572
578
|
if (o[0] & 1) throw o[1];
|
|
573
579
|
return o[1];
|
|
@@ -617,7 +623,7 @@ function Jr(r, e) {
|
|
|
617
623
|
o[2] && n.ops.pop(), n.trys.pop();
|
|
618
624
|
continue;
|
|
619
625
|
}
|
|
620
|
-
u =
|
|
626
|
+
u = r.call(e, n);
|
|
621
627
|
} catch (m) {
|
|
622
628
|
u = [6, m], i = 0;
|
|
623
629
|
} finally {
|
|
@@ -627,12 +633,12 @@ function Jr(r, e) {
|
|
|
627
633
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
628
634
|
}
|
|
629
635
|
}
|
|
630
|
-
function R(
|
|
631
|
-
var n = typeof Symbol == "function" &&
|
|
632
|
-
if (!n) return
|
|
633
|
-
var a = n.call(
|
|
636
|
+
function R(e, r) {
|
|
637
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
638
|
+
if (!n) return e;
|
|
639
|
+
var a = n.call(e), i, o = [], c;
|
|
634
640
|
try {
|
|
635
|
-
for (; (
|
|
641
|
+
for (; (r === void 0 || r-- > 0) && !(i = a.next()).done; ) o.push(i.value);
|
|
636
642
|
} catch (f) {
|
|
637
643
|
c = { error: f };
|
|
638
644
|
} finally {
|
|
@@ -644,34 +650,34 @@ function R(r, e) {
|
|
|
644
650
|
}
|
|
645
651
|
return o;
|
|
646
652
|
}
|
|
647
|
-
function O(
|
|
648
|
-
if (n || arguments.length === 2) for (var a = 0, i =
|
|
649
|
-
(o || !(a in
|
|
650
|
-
return
|
|
653
|
+
function O(e, r, n) {
|
|
654
|
+
if (n || arguments.length === 2) for (var a = 0, i = r.length, o; a < i; a++)
|
|
655
|
+
(o || !(a in r)) && (o || (o = Array.prototype.slice.call(r, 0, a)), o[a] = r[a]);
|
|
656
|
+
return e.concat(o || Array.prototype.slice.call(r));
|
|
651
657
|
}
|
|
652
|
-
var ve = function(
|
|
653
|
-
return typeof
|
|
658
|
+
var ve = function(e) {
|
|
659
|
+
return typeof e == "function";
|
|
654
660
|
}, me = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
655
|
-
function J(
|
|
656
|
-
me && (ve(
|
|
657
|
-
var
|
|
658
|
-
|
|
659
|
-
return
|
|
660
|
-
}, [
|
|
661
|
-
var n =
|
|
661
|
+
function J(e) {
|
|
662
|
+
me && (ve(e) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));
|
|
663
|
+
var r = j(e);
|
|
664
|
+
r.current = Er(function() {
|
|
665
|
+
return e;
|
|
666
|
+
}, [e]);
|
|
667
|
+
var n = j();
|
|
662
668
|
return n.current || (n.current = function() {
|
|
663
669
|
for (var a = [], i = 0; i < arguments.length; i++)
|
|
664
670
|
a[i] = arguments[i];
|
|
665
|
-
return
|
|
671
|
+
return r.current.apply(this, a);
|
|
666
672
|
}), n.current;
|
|
667
673
|
}
|
|
668
|
-
const We = Dr(
|
|
669
|
-
var _r = function(
|
|
670
|
-
var n =
|
|
674
|
+
const We = Dr(Z);
|
|
675
|
+
var _r = function(e, r) {
|
|
676
|
+
var n = r.manual, a = r.ready, i = a === void 0 ? !0 : a, o = r.defaultParams, c = o === void 0 ? [] : o, f = r.refreshDeps, s = f === void 0 ? [] : f, u = r.refreshDepsAction, m = j(!1);
|
|
671
677
|
return m.current = !1, We(function() {
|
|
672
|
-
!n && i && (m.current = !0,
|
|
678
|
+
!n && i && (m.current = !0, e.run.apply(e, O([], R(c), !1)));
|
|
673
679
|
}, [i]), We(function() {
|
|
674
|
-
m.current || n || (m.current = !0, u ? u() :
|
|
680
|
+
m.current || n || (m.current = !0, u ? u() : e.refresh());
|
|
675
681
|
}, O([], R(s), !1)), {
|
|
676
682
|
onBefore: function() {
|
|
677
683
|
if (!i)
|
|
@@ -681,77 +687,77 @@ var _r = function(r, e) {
|
|
|
681
687
|
}
|
|
682
688
|
};
|
|
683
689
|
};
|
|
684
|
-
_r.onInit = function(
|
|
685
|
-
var
|
|
690
|
+
_r.onInit = function(e) {
|
|
691
|
+
var r = e.ready, n = r === void 0 ? !0 : r, a = e.manual;
|
|
686
692
|
return {
|
|
687
693
|
loading: !a && n
|
|
688
694
|
};
|
|
689
695
|
};
|
|
690
|
-
function Xr(
|
|
691
|
-
if (
|
|
692
|
-
for (var n = 0; n <
|
|
693
|
-
if (!Object.is(
|
|
696
|
+
function Xr(e, r) {
|
|
697
|
+
if (e === r) return !0;
|
|
698
|
+
for (var n = 0; n < e.length; n++)
|
|
699
|
+
if (!Object.is(e[n], r[n])) return !1;
|
|
694
700
|
return !0;
|
|
695
701
|
}
|
|
696
|
-
function
|
|
697
|
-
var n =
|
|
698
|
-
deps:
|
|
702
|
+
function Rr(e, r) {
|
|
703
|
+
var n = j({
|
|
704
|
+
deps: r,
|
|
699
705
|
obj: void 0,
|
|
700
706
|
initialized: !1
|
|
701
707
|
}).current;
|
|
702
|
-
return (n.initialized === !1 || !Xr(n.deps,
|
|
708
|
+
return (n.initialized === !1 || !Xr(n.deps, r)) && (n.deps = r, n.obj = e(), n.initialized = !0), n.obj;
|
|
703
709
|
}
|
|
704
|
-
function
|
|
705
|
-
var
|
|
706
|
-
return
|
|
710
|
+
function Or(e) {
|
|
711
|
+
var r = j(e);
|
|
712
|
+
return r.current = e, r;
|
|
707
713
|
}
|
|
708
|
-
var $e = function(
|
|
709
|
-
me && (ve(
|
|
710
|
-
var
|
|
711
|
-
|
|
714
|
+
var $e = function(e) {
|
|
715
|
+
me && (ve(e) || console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));
|
|
716
|
+
var r = Or(e);
|
|
717
|
+
Z(function() {
|
|
712
718
|
return function() {
|
|
713
|
-
|
|
719
|
+
r.current();
|
|
714
720
|
};
|
|
715
721
|
}, []);
|
|
716
|
-
}, le = /* @__PURE__ */ new Map(), Zr = function(
|
|
717
|
-
var a = le.get(
|
|
722
|
+
}, le = /* @__PURE__ */ new Map(), Zr = function(e, r, n) {
|
|
723
|
+
var a = le.get(e);
|
|
718
724
|
a != null && a.timer && clearTimeout(a.timer);
|
|
719
725
|
var i = void 0;
|
|
720
|
-
|
|
721
|
-
le.delete(
|
|
722
|
-
},
|
|
726
|
+
r > -1 && (i = setTimeout(function() {
|
|
727
|
+
le.delete(e);
|
|
728
|
+
}, r)), le.set(e, A(A({}, n), {
|
|
723
729
|
timer: i
|
|
724
730
|
}));
|
|
725
|
-
}, Qr = function(
|
|
726
|
-
return le.get(
|
|
727
|
-
}, de = /* @__PURE__ */ new Map(), Kr = function(
|
|
728
|
-
return de.get(
|
|
729
|
-
}, et = function(
|
|
730
|
-
de.set(
|
|
731
|
-
return de.delete(
|
|
731
|
+
}, Qr = function(e) {
|
|
732
|
+
return le.get(e);
|
|
733
|
+
}, de = /* @__PURE__ */ new Map(), Kr = function(e) {
|
|
734
|
+
return de.get(e);
|
|
735
|
+
}, et = function(e, r) {
|
|
736
|
+
de.set(e, r), r.then(function(n) {
|
|
737
|
+
return de.delete(e), n;
|
|
732
738
|
}).catch(function() {
|
|
733
|
-
de.delete(
|
|
739
|
+
de.delete(e);
|
|
734
740
|
});
|
|
735
|
-
}, D = {}, rt = function(
|
|
736
|
-
D[
|
|
737
|
-
return n(
|
|
741
|
+
}, D = {}, rt = function(e, r) {
|
|
742
|
+
D[e] && D[e].forEach(function(n) {
|
|
743
|
+
return n(r);
|
|
738
744
|
});
|
|
739
|
-
}, Ee = function(
|
|
740
|
-
return D[
|
|
741
|
-
var a = D[
|
|
742
|
-
D[
|
|
745
|
+
}, Ee = function(e, r) {
|
|
746
|
+
return D[e] || (D[e] = []), D[e].push(r), function() {
|
|
747
|
+
var a = D[e].indexOf(r);
|
|
748
|
+
D[e].splice(a, 1);
|
|
743
749
|
};
|
|
744
|
-
}, tt = function(
|
|
745
|
-
var n =
|
|
750
|
+
}, tt = function(e, r) {
|
|
751
|
+
var n = r.cacheKey, a = r.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = r.staleTime, c = o === void 0 ? 0 : o, f = r.setCache, s = r.getCache, u = j(), m = j(), v = function(g, b) {
|
|
746
752
|
f ? f(b) : Zr(g, i, b), rt(g, b.data);
|
|
747
753
|
}, p = function(g, b) {
|
|
748
754
|
return b === void 0 && (b = []), s ? s(b) : Qr(g);
|
|
749
755
|
};
|
|
750
|
-
return
|
|
756
|
+
return Rr(function() {
|
|
751
757
|
if (n) {
|
|
752
758
|
var g = p(n);
|
|
753
|
-
g && Object.hasOwnProperty.call(g, "data") && (
|
|
754
|
-
|
|
759
|
+
g && Object.hasOwnProperty.call(g, "data") && (e.state.data = g.data, e.state.params = g.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - g.time <= c) && (e.state.loading = !1)), u.current = Ee(n, function(b) {
|
|
760
|
+
e.setState({
|
|
755
761
|
data: b
|
|
756
762
|
});
|
|
757
763
|
});
|
|
@@ -787,7 +793,7 @@ var $e = function(r) {
|
|
|
787
793
|
params: b,
|
|
788
794
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
789
795
|
}), u.current = Ee(n, function(x) {
|
|
790
|
-
|
|
796
|
+
e.setState({
|
|
791
797
|
data: x
|
|
792
798
|
});
|
|
793
799
|
}));
|
|
@@ -796,82 +802,82 @@ var $e = function(r) {
|
|
|
796
802
|
var b;
|
|
797
803
|
n && ((b = u.current) === null || b === void 0 || b.call(u), v(n, {
|
|
798
804
|
data: g,
|
|
799
|
-
params:
|
|
805
|
+
params: e.state.params,
|
|
800
806
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
801
807
|
}), u.current = Ee(n, function(E) {
|
|
802
|
-
|
|
808
|
+
e.setState({
|
|
803
809
|
data: E
|
|
804
810
|
});
|
|
805
811
|
}));
|
|
806
812
|
}
|
|
807
813
|
} : {};
|
|
808
|
-
}, Te,
|
|
814
|
+
}, Te, ar;
|
|
809
815
|
function Fe() {
|
|
810
|
-
if (
|
|
811
|
-
|
|
812
|
-
function r
|
|
813
|
-
var n = typeof
|
|
814
|
-
return
|
|
816
|
+
if (ar) return Te;
|
|
817
|
+
ar = 1;
|
|
818
|
+
function e(r) {
|
|
819
|
+
var n = typeof r;
|
|
820
|
+
return r != null && (n == "object" || n == "function");
|
|
815
821
|
}
|
|
816
|
-
return Te =
|
|
822
|
+
return Te = e, Te;
|
|
817
823
|
}
|
|
818
|
-
var we,
|
|
824
|
+
var we, ir;
|
|
819
825
|
function nt() {
|
|
820
|
-
if (
|
|
821
|
-
ar = 1;
|
|
822
|
-
var r = typeof fe == "object" && fe && fe.Object === Object && fe;
|
|
823
|
-
return we = r, we;
|
|
824
|
-
}
|
|
825
|
-
var _e, ir;
|
|
826
|
-
function Or() {
|
|
827
|
-
if (ir) return _e;
|
|
826
|
+
if (ir) return we;
|
|
828
827
|
ir = 1;
|
|
829
|
-
var
|
|
830
|
-
return
|
|
828
|
+
var e = typeof fe == "object" && fe && fe.Object === Object && fe;
|
|
829
|
+
return we = e, we;
|
|
831
830
|
}
|
|
832
831
|
var je, or;
|
|
833
|
-
function
|
|
832
|
+
function Sr() {
|
|
834
833
|
if (or) return je;
|
|
835
834
|
or = 1;
|
|
836
|
-
var
|
|
837
|
-
|
|
835
|
+
var e = nt(), r = typeof self == "object" && self && self.Object === Object && self, n = e || r || Function("return this")();
|
|
836
|
+
return je = n, je;
|
|
837
|
+
}
|
|
838
|
+
var _e, ur;
|
|
839
|
+
function at() {
|
|
840
|
+
if (ur) return _e;
|
|
841
|
+
ur = 1;
|
|
842
|
+
var e = Sr(), r = function() {
|
|
843
|
+
return e.Date.now();
|
|
838
844
|
};
|
|
839
|
-
return
|
|
845
|
+
return _e = r, _e;
|
|
840
846
|
}
|
|
841
|
-
var Re,
|
|
847
|
+
var Re, cr;
|
|
842
848
|
function it() {
|
|
843
|
-
if (
|
|
844
|
-
|
|
845
|
-
var
|
|
846
|
-
function
|
|
847
|
-
for (var a = n.length; a-- &&
|
|
849
|
+
if (cr) return Re;
|
|
850
|
+
cr = 1;
|
|
851
|
+
var e = /\s/;
|
|
852
|
+
function r(n) {
|
|
853
|
+
for (var a = n.length; a-- && e.test(n.charAt(a)); )
|
|
848
854
|
;
|
|
849
855
|
return a;
|
|
850
856
|
}
|
|
851
|
-
return Re =
|
|
857
|
+
return Re = r, Re;
|
|
852
858
|
}
|
|
853
|
-
var Oe,
|
|
859
|
+
var Oe, fr;
|
|
854
860
|
function ot() {
|
|
855
|
-
if (
|
|
856
|
-
|
|
857
|
-
var
|
|
861
|
+
if (fr) return Oe;
|
|
862
|
+
fr = 1;
|
|
863
|
+
var e = it(), r = /^\s+/;
|
|
858
864
|
function n(a) {
|
|
859
|
-
return a && a.slice(0,
|
|
865
|
+
return a && a.slice(0, e(a) + 1).replace(r, "");
|
|
860
866
|
}
|
|
861
867
|
return Oe = n, Oe;
|
|
862
868
|
}
|
|
863
|
-
var Se,
|
|
864
|
-
function
|
|
865
|
-
if (
|
|
866
|
-
|
|
867
|
-
var
|
|
868
|
-
return Se =
|
|
869
|
+
var Se, sr;
|
|
870
|
+
function xr() {
|
|
871
|
+
if (sr) return Se;
|
|
872
|
+
sr = 1;
|
|
873
|
+
var e = Sr(), r = e.Symbol;
|
|
874
|
+
return Se = r, Se;
|
|
869
875
|
}
|
|
870
|
-
var xe,
|
|
876
|
+
var xe, lr;
|
|
871
877
|
function ut() {
|
|
872
|
-
if (
|
|
873
|
-
|
|
874
|
-
var
|
|
878
|
+
if (lr) return xe;
|
|
879
|
+
lr = 1;
|
|
880
|
+
var e = xr(), r = Object.prototype, n = r.hasOwnProperty, a = r.toString, i = e ? e.toStringTag : void 0;
|
|
875
881
|
function o(c) {
|
|
876
882
|
var f = n.call(c, i), s = c[i];
|
|
877
883
|
try {
|
|
@@ -884,77 +890,77 @@ function ut() {
|
|
|
884
890
|
}
|
|
885
891
|
return xe = o, xe;
|
|
886
892
|
}
|
|
887
|
-
var Pe,
|
|
893
|
+
var Pe, dr;
|
|
888
894
|
function ct() {
|
|
889
|
-
if (
|
|
890
|
-
|
|
891
|
-
var
|
|
895
|
+
if (dr) return Pe;
|
|
896
|
+
dr = 1;
|
|
897
|
+
var e = Object.prototype, r = e.toString;
|
|
892
898
|
function n(a) {
|
|
893
|
-
return
|
|
899
|
+
return r.call(a);
|
|
894
900
|
}
|
|
895
901
|
return Pe = n, Pe;
|
|
896
902
|
}
|
|
897
|
-
var Ce,
|
|
903
|
+
var Ce, vr;
|
|
898
904
|
function ft() {
|
|
899
|
-
if (
|
|
900
|
-
|
|
901
|
-
var
|
|
905
|
+
if (vr) return Ce;
|
|
906
|
+
vr = 1;
|
|
907
|
+
var e = xr(), r = ut(), n = ct(), a = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
|
|
902
908
|
function c(f) {
|
|
903
|
-
return f == null ? f === void 0 ? i : a : o && o in Object(f) ?
|
|
909
|
+
return f == null ? f === void 0 ? i : a : o && o in Object(f) ? r(f) : n(f);
|
|
904
910
|
}
|
|
905
911
|
return Ce = c, Ce;
|
|
906
912
|
}
|
|
907
|
-
var Ae,
|
|
913
|
+
var Ae, mr;
|
|
908
914
|
function st() {
|
|
909
|
-
if (
|
|
910
|
-
|
|
911
|
-
function r
|
|
912
|
-
return
|
|
915
|
+
if (mr) return Ae;
|
|
916
|
+
mr = 1;
|
|
917
|
+
function e(r) {
|
|
918
|
+
return r != null && typeof r == "object";
|
|
913
919
|
}
|
|
914
|
-
return Ae =
|
|
920
|
+
return Ae = e, Ae;
|
|
915
921
|
}
|
|
916
|
-
var Ne,
|
|
922
|
+
var Ne, br;
|
|
917
923
|
function lt() {
|
|
918
|
-
if (
|
|
919
|
-
|
|
920
|
-
var
|
|
924
|
+
if (br) return Ne;
|
|
925
|
+
br = 1;
|
|
926
|
+
var e = ft(), r = st(), n = "[object Symbol]";
|
|
921
927
|
function a(i) {
|
|
922
|
-
return typeof i == "symbol" ||
|
|
928
|
+
return typeof i == "symbol" || r(i) && e(i) == n;
|
|
923
929
|
}
|
|
924
930
|
return Ne = a, Ne;
|
|
925
931
|
}
|
|
926
|
-
var ke,
|
|
932
|
+
var ke, gr;
|
|
927
933
|
function dt() {
|
|
928
|
-
if (
|
|
929
|
-
|
|
930
|
-
var
|
|
934
|
+
if (gr) return ke;
|
|
935
|
+
gr = 1;
|
|
936
|
+
var e = ot(), r = Fe(), n = lt(), a = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, f = parseInt;
|
|
931
937
|
function s(u) {
|
|
932
938
|
if (typeof u == "number")
|
|
933
939
|
return u;
|
|
934
940
|
if (n(u))
|
|
935
941
|
return a;
|
|
936
|
-
if (
|
|
942
|
+
if (r(u)) {
|
|
937
943
|
var m = typeof u.valueOf == "function" ? u.valueOf() : u;
|
|
938
|
-
u =
|
|
944
|
+
u = r(m) ? m + "" : m;
|
|
939
945
|
}
|
|
940
946
|
if (typeof u != "string")
|
|
941
947
|
return u === 0 ? u : +u;
|
|
942
|
-
u =
|
|
948
|
+
u = e(u);
|
|
943
949
|
var v = o.test(u);
|
|
944
950
|
return v || c.test(u) ? f(u.slice(2), v ? 2 : 8) : i.test(u) ? a : +u;
|
|
945
951
|
}
|
|
946
952
|
return ke = s, ke;
|
|
947
953
|
}
|
|
948
|
-
var qe,
|
|
949
|
-
function
|
|
950
|
-
if (
|
|
951
|
-
|
|
952
|
-
var
|
|
954
|
+
var qe, hr;
|
|
955
|
+
function Pr() {
|
|
956
|
+
if (hr) return qe;
|
|
957
|
+
hr = 1;
|
|
958
|
+
var e = Fe(), r = at(), n = dt(), a = "Expected a function", i = Math.max, o = Math.min;
|
|
953
959
|
function c(f, s, u) {
|
|
954
960
|
var m, v, p, g, b, E, x = 0, q = !1, N = !1, M = !0;
|
|
955
961
|
if (typeof f != "function")
|
|
956
962
|
throw new TypeError(a);
|
|
957
|
-
s = n(s) || 0,
|
|
963
|
+
s = n(s) || 0, e(u) && (q = !!u.leading, N = "maxWait" in u, p = N ? i(n(u.maxWait) || 0, s) : p, M = "trailing" in u ? !!u.trailing : M);
|
|
958
964
|
function k(T) {
|
|
959
965
|
var C = m, $ = v;
|
|
960
966
|
return m = v = void 0, x = T, g = f.apply($, C), g;
|
|
@@ -971,22 +977,22 @@ function xr() {
|
|
|
971
977
|
return E === void 0 || C >= s || C < 0 || N && $ >= p;
|
|
972
978
|
}
|
|
973
979
|
function P() {
|
|
974
|
-
var T =
|
|
980
|
+
var T = r();
|
|
975
981
|
if (W(T))
|
|
976
|
-
return
|
|
982
|
+
return Q(T);
|
|
977
983
|
b = setTimeout(P, L(T));
|
|
978
984
|
}
|
|
979
|
-
function
|
|
985
|
+
function Q(T) {
|
|
980
986
|
return b = void 0, M && m ? k(T) : (m = v = void 0, g);
|
|
981
987
|
}
|
|
982
988
|
function oe() {
|
|
983
989
|
b !== void 0 && clearTimeout(b), x = 0, m = E = v = b = void 0;
|
|
984
990
|
}
|
|
985
|
-
function
|
|
986
|
-
return b === void 0 ? g :
|
|
991
|
+
function K() {
|
|
992
|
+
return b === void 0 ? g : Q(r());
|
|
987
993
|
}
|
|
988
994
|
function U() {
|
|
989
|
-
var T =
|
|
995
|
+
var T = r(), C = W(T);
|
|
990
996
|
if (m = arguments, v = this, E = T, C) {
|
|
991
997
|
if (b === void 0)
|
|
992
998
|
return G(E);
|
|
@@ -995,23 +1001,23 @@ function xr() {
|
|
|
995
1001
|
}
|
|
996
1002
|
return b === void 0 && (b = setTimeout(P, s)), g;
|
|
997
1003
|
}
|
|
998
|
-
return U.cancel = oe, U.flush =
|
|
1004
|
+
return U.cancel = oe, U.flush = K, U;
|
|
999
1005
|
}
|
|
1000
1006
|
return qe = c, qe;
|
|
1001
1007
|
}
|
|
1002
|
-
var vt =
|
|
1008
|
+
var vt = Pr();
|
|
1003
1009
|
const mt = /* @__PURE__ */ Tr(vt);
|
|
1004
|
-
var bt = function(
|
|
1005
|
-
var n =
|
|
1010
|
+
var bt = function(e, r) {
|
|
1011
|
+
var n = r.debounceWait, a = r.debounceLeading, i = r.debounceTrailing, o = r.debounceMaxWait, c = j(), f = Er(function() {
|
|
1006
1012
|
var s = {};
|
|
1007
1013
|
return a !== void 0 && (s.leading = a), i !== void 0 && (s.trailing = i), o !== void 0 && (s.maxWait = o), s;
|
|
1008
1014
|
}, [a, i, o]);
|
|
1009
|
-
return
|
|
1015
|
+
return Z(function() {
|
|
1010
1016
|
if (n) {
|
|
1011
|
-
var s =
|
|
1017
|
+
var s = e.runAsync.bind(e);
|
|
1012
1018
|
return c.current = mt(function(u) {
|
|
1013
1019
|
u();
|
|
1014
|
-
}, n, f),
|
|
1020
|
+
}, n, f), e.runAsync = function() {
|
|
1015
1021
|
for (var u = [], m = 0; m < arguments.length; m++)
|
|
1016
1022
|
u[m] = arguments[m];
|
|
1017
1023
|
return new Promise(function(v, p) {
|
|
@@ -1022,7 +1028,7 @@ var bt = function(r, e) {
|
|
|
1022
1028
|
});
|
|
1023
1029
|
}, function() {
|
|
1024
1030
|
var u;
|
|
1025
|
-
(u = c.current) === null || u === void 0 || u.cancel(),
|
|
1031
|
+
(u = c.current) === null || u === void 0 || u.cancel(), e.runAsync = s;
|
|
1026
1032
|
};
|
|
1027
1033
|
}
|
|
1028
1034
|
}, [n, f]), n ? {
|
|
@@ -1031,8 +1037,8 @@ var bt = function(r, e) {
|
|
|
1031
1037
|
(s = c.current) === null || s === void 0 || s.cancel();
|
|
1032
1038
|
}
|
|
1033
1039
|
} : {};
|
|
1034
|
-
}, gt = function(
|
|
1035
|
-
var n =
|
|
1040
|
+
}, gt = function(e, r) {
|
|
1041
|
+
var n = r.loadingDelay, a = r.ready, i = j();
|
|
1036
1042
|
if (!n)
|
|
1037
1043
|
return {};
|
|
1038
1044
|
var o = function() {
|
|
@@ -1041,7 +1047,7 @@ var bt = function(r, e) {
|
|
|
1041
1047
|
return {
|
|
1042
1048
|
onBefore: function() {
|
|
1043
1049
|
return o(), a !== !1 && (i.current = setTimeout(function() {
|
|
1044
|
-
|
|
1050
|
+
e.setState({
|
|
1045
1051
|
loading: !0
|
|
1046
1052
|
});
|
|
1047
1053
|
}, n)), {
|
|
@@ -1060,24 +1066,24 @@ function Ie() {
|
|
|
1060
1066
|
return be ? document.visibilityState !== "hidden" : !0;
|
|
1061
1067
|
}
|
|
1062
1068
|
var ae = [];
|
|
1063
|
-
function ht(
|
|
1064
|
-
return ae.push(
|
|
1065
|
-
var n = ae.indexOf(
|
|
1069
|
+
function ht(e) {
|
|
1070
|
+
return ae.push(e), function() {
|
|
1071
|
+
var n = ae.indexOf(e);
|
|
1066
1072
|
ae.splice(n, 1);
|
|
1067
1073
|
};
|
|
1068
1074
|
}
|
|
1069
1075
|
if (be) {
|
|
1070
1076
|
var yt = function() {
|
|
1071
1077
|
if (Ie())
|
|
1072
|
-
for (var
|
|
1073
|
-
var
|
|
1074
|
-
|
|
1078
|
+
for (var e = 0; e < ae.length; e++) {
|
|
1079
|
+
var r = ae[e];
|
|
1080
|
+
r();
|
|
1075
1081
|
}
|
|
1076
1082
|
};
|
|
1077
1083
|
window.addEventListener("visibilitychange", yt, !1);
|
|
1078
1084
|
}
|
|
1079
|
-
var pt = function(
|
|
1080
|
-
var n =
|
|
1085
|
+
var pt = function(e, r) {
|
|
1086
|
+
var n = r.pollingInterval, a = r.pollingWhenHidden, i = a === void 0 ? !0 : a, o = r.pollingErrorRetryCount, c = o === void 0 ? -1 : o, f = j(), s = j(), u = j(0), m = function() {
|
|
1081
1087
|
var v;
|
|
1082
1088
|
f.current && clearTimeout(f.current), (v = s.current) === null || v === void 0 || v.call(s);
|
|
1083
1089
|
};
|
|
@@ -1097,8 +1103,8 @@ var pt = function(r, e) {
|
|
|
1097
1103
|
c === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
|
|
1098
1104
|
c !== -1 && u.current <= c ? f.current = setTimeout(function() {
|
|
1099
1105
|
!i && !Ie() ? s.current = ht(function() {
|
|
1100
|
-
|
|
1101
|
-
}) :
|
|
1106
|
+
e.refresh();
|
|
1107
|
+
}) : e.refresh();
|
|
1102
1108
|
}, n) : u.current = 0;
|
|
1103
1109
|
},
|
|
1104
1110
|
onCancel: function() {
|
|
@@ -1106,44 +1112,44 @@ var pt = function(r, e) {
|
|
|
1106
1112
|
}
|
|
1107
1113
|
} : {};
|
|
1108
1114
|
};
|
|
1109
|
-
function Et(
|
|
1115
|
+
function Et(e, r) {
|
|
1110
1116
|
var n = !1;
|
|
1111
1117
|
return function() {
|
|
1112
1118
|
for (var a = [], i = 0; i < arguments.length; i++)
|
|
1113
1119
|
a[i] = arguments[i];
|
|
1114
|
-
n || (n = !0,
|
|
1120
|
+
n || (n = !0, e.apply(void 0, O([], R(a), !1)), setTimeout(function() {
|
|
1115
1121
|
n = !1;
|
|
1116
|
-
},
|
|
1122
|
+
}, r));
|
|
1117
1123
|
};
|
|
1118
1124
|
}
|
|
1119
1125
|
function Tt() {
|
|
1120
1126
|
return be && typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
1121
1127
|
}
|
|
1122
1128
|
var ie = [];
|
|
1123
|
-
function wt(
|
|
1124
|
-
return ie.push(
|
|
1125
|
-
var n = ie.indexOf(
|
|
1129
|
+
function wt(e) {
|
|
1130
|
+
return ie.push(e), function() {
|
|
1131
|
+
var n = ie.indexOf(e);
|
|
1126
1132
|
n > -1 && ie.splice(n, 1);
|
|
1127
1133
|
};
|
|
1128
1134
|
}
|
|
1129
1135
|
if (be) {
|
|
1130
|
-
var
|
|
1136
|
+
var yr = function() {
|
|
1131
1137
|
if (!(!Ie() || !Tt()))
|
|
1132
|
-
for (var
|
|
1133
|
-
var
|
|
1134
|
-
|
|
1138
|
+
for (var e = 0; e < ie.length; e++) {
|
|
1139
|
+
var r = ie[e];
|
|
1140
|
+
r();
|
|
1135
1141
|
}
|
|
1136
1142
|
};
|
|
1137
|
-
window.addEventListener("visibilitychange",
|
|
1143
|
+
window.addEventListener("visibilitychange", yr, !1), window.addEventListener("focus", yr, !1);
|
|
1138
1144
|
}
|
|
1139
|
-
var
|
|
1140
|
-
var n =
|
|
1145
|
+
var jt = function(e, r) {
|
|
1146
|
+
var n = r.refreshOnWindowFocus, a = r.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
|
|
1141
1147
|
var f;
|
|
1142
1148
|
(f = o.current) === null || f === void 0 || f.call(o);
|
|
1143
1149
|
};
|
|
1144
|
-
return
|
|
1150
|
+
return Z(function() {
|
|
1145
1151
|
if (n) {
|
|
1146
|
-
var f = Et(
|
|
1152
|
+
var f = Et(e.refresh.bind(e), i);
|
|
1147
1153
|
o.current = wt(function() {
|
|
1148
1154
|
f();
|
|
1149
1155
|
});
|
|
@@ -1154,8 +1160,8 @@ var _t = function(r, e) {
|
|
|
1154
1160
|
}, [n, i]), $e(function() {
|
|
1155
1161
|
c();
|
|
1156
1162
|
}), {};
|
|
1157
|
-
},
|
|
1158
|
-
var n =
|
|
1163
|
+
}, _t = function(e, r) {
|
|
1164
|
+
var n = r.retryInterval, a = r.retryCount, i = j(), o = j(0), c = j(!1);
|
|
1159
1165
|
return a ? {
|
|
1160
1166
|
onBefore: function() {
|
|
1161
1167
|
c.current || (o.current = 0), c.current = !1, i.current && clearTimeout(i.current);
|
|
@@ -1167,7 +1173,7 @@ var _t = function(r, e) {
|
|
|
1167
1173
|
if (o.current += 1, a === -1 || o.current <= a) {
|
|
1168
1174
|
var f = n ?? Math.min(1e3 * Math.pow(2, o.current), 3e4);
|
|
1169
1175
|
i.current = setTimeout(function() {
|
|
1170
|
-
c.current = !0,
|
|
1176
|
+
c.current = !0, e.refresh();
|
|
1171
1177
|
}, f);
|
|
1172
1178
|
} else
|
|
1173
1179
|
o.current = 0;
|
|
@@ -1176,16 +1182,16 @@ var _t = function(r, e) {
|
|
|
1176
1182
|
o.current = 0, i.current && clearTimeout(i.current);
|
|
1177
1183
|
}
|
|
1178
1184
|
} : {};
|
|
1179
|
-
}, Me,
|
|
1185
|
+
}, Me, pr;
|
|
1180
1186
|
function Rt() {
|
|
1181
|
-
if (
|
|
1182
|
-
|
|
1183
|
-
var
|
|
1187
|
+
if (pr) return Me;
|
|
1188
|
+
pr = 1;
|
|
1189
|
+
var e = Pr(), r = Fe(), n = "Expected a function";
|
|
1184
1190
|
function a(i, o, c) {
|
|
1185
1191
|
var f = !0, s = !0;
|
|
1186
1192
|
if (typeof i != "function")
|
|
1187
1193
|
throw new TypeError(n);
|
|
1188
|
-
return
|
|
1194
|
+
return r(c) && (f = "leading" in c ? !!c.leading : f, s = "trailing" in c ? !!c.trailing : s), e(i, o, {
|
|
1189
1195
|
leading: f,
|
|
1190
1196
|
maxWait: o,
|
|
1191
1197
|
trailing: s
|
|
@@ -1195,14 +1201,14 @@ function Rt() {
|
|
|
1195
1201
|
}
|
|
1196
1202
|
var Ot = Rt();
|
|
1197
1203
|
const St = /* @__PURE__ */ Tr(Ot);
|
|
1198
|
-
var xt = function(
|
|
1199
|
-
var n =
|
|
1200
|
-
return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i),
|
|
1204
|
+
var xt = function(e, r) {
|
|
1205
|
+
var n = r.throttleWait, a = r.throttleLeading, i = r.throttleTrailing, o = j(), c = {};
|
|
1206
|
+
return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), Z(function() {
|
|
1201
1207
|
if (n) {
|
|
1202
|
-
var f =
|
|
1208
|
+
var f = e.runAsync.bind(e);
|
|
1203
1209
|
return o.current = St(function(s) {
|
|
1204
1210
|
s();
|
|
1205
|
-
}, n, c),
|
|
1211
|
+
}, n, c), e.runAsync = function() {
|
|
1206
1212
|
for (var s = [], u = 0; u < arguments.length; u++)
|
|
1207
1213
|
s[u] = arguments[u];
|
|
1208
1214
|
return new Promise(function(m, v) {
|
|
@@ -1213,7 +1219,7 @@ var xt = function(r, e) {
|
|
|
1213
1219
|
});
|
|
1214
1220
|
}, function() {
|
|
1215
1221
|
var s;
|
|
1216
|
-
|
|
1222
|
+
e.runAsync = f, (s = o.current) === null || s === void 0 || s.cancel();
|
|
1217
1223
|
};
|
|
1218
1224
|
}
|
|
1219
1225
|
}, [n, a, i]), n ? {
|
|
@@ -1222,20 +1228,20 @@ var xt = function(r, e) {
|
|
|
1222
1228
|
(f = o.current) === null || f === void 0 || f.cancel();
|
|
1223
1229
|
}
|
|
1224
1230
|
} : {};
|
|
1225
|
-
}, Pt = function(
|
|
1226
|
-
me && (ve(
|
|
1227
|
-
|
|
1231
|
+
}, Pt = function(e) {
|
|
1232
|
+
me && (ve(e) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e, '".'))), Z(function() {
|
|
1233
|
+
e == null || e();
|
|
1228
1234
|
}, []);
|
|
1229
1235
|
}, Ct = function() {
|
|
1230
|
-
var
|
|
1231
|
-
return
|
|
1232
|
-
return
|
|
1236
|
+
var e = R(Mr({}), 2), r = e[1];
|
|
1237
|
+
return Wr(function() {
|
|
1238
|
+
return r({});
|
|
1233
1239
|
}, []);
|
|
1234
1240
|
}, At = (
|
|
1235
1241
|
/** @class */
|
|
1236
1242
|
function() {
|
|
1237
|
-
function r
|
|
1238
|
-
i === void 0 && (i = {}), this.serviceRef =
|
|
1243
|
+
function e(r, n, a, i) {
|
|
1244
|
+
i === void 0 && (i = {}), this.serviceRef = r, this.options = n, this.subscribe = a, this.initState = i, this.count = 0, this.state = {
|
|
1239
1245
|
loading: !1,
|
|
1240
1246
|
params: void 0,
|
|
1241
1247
|
data: void 0,
|
|
@@ -1244,42 +1250,42 @@ var xt = function(r, e) {
|
|
|
1244
1250
|
loading: !n.manual
|
|
1245
1251
|
}), i);
|
|
1246
1252
|
}
|
|
1247
|
-
return
|
|
1248
|
-
|
|
1249
|
-
},
|
|
1253
|
+
return e.prototype.setState = function(r) {
|
|
1254
|
+
r === void 0 && (r = {}), this.state = A(A({}, this.state), r), this.subscribe();
|
|
1255
|
+
}, e.prototype.runPluginHandler = function(r) {
|
|
1250
1256
|
for (var n = [], a = 1; a < arguments.length; a++)
|
|
1251
1257
|
n[a - 1] = arguments[a];
|
|
1252
1258
|
var i = this.pluginImpls.map(function(o) {
|
|
1253
1259
|
var c;
|
|
1254
|
-
return (c = o[
|
|
1260
|
+
return (c = o[r]) === null || c === void 0 ? void 0 : c.call.apply(c, O([o], R(n), !1));
|
|
1255
1261
|
}).filter(Boolean);
|
|
1256
1262
|
return Object.assign.apply(Object, O([{}], R(i), !1));
|
|
1257
|
-
},
|
|
1258
|
-
for (var
|
|
1259
|
-
|
|
1263
|
+
}, e.prototype.runAsync = function() {
|
|
1264
|
+
for (var r = [], n = 0; n < arguments.length; n++)
|
|
1265
|
+
r[n] = arguments[n];
|
|
1260
1266
|
return Vr(this, void 0, void 0, function() {
|
|
1261
1267
|
var a, i, o, c, f, s, u, m, v, p, g, b, E, x, q, N, M, k, G, L, W;
|
|
1262
1268
|
return Jr(this, function(P) {
|
|
1263
1269
|
switch (P.label) {
|
|
1264
1270
|
case 0:
|
|
1265
|
-
if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore",
|
|
1271
|
+
if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", r), o = i.stopNow, c = o === void 0 ? !1 : o, f = i.returnNow, s = f === void 0 ? !1 : f, u = jr(i, ["stopNow", "returnNow"]), c)
|
|
1266
1272
|
return [2, new Promise(function() {
|
|
1267
1273
|
})];
|
|
1268
1274
|
if (this.setState(A({
|
|
1269
1275
|
loading: !0,
|
|
1270
|
-
params:
|
|
1276
|
+
params: r
|
|
1271
1277
|
}, u)), s)
|
|
1272
1278
|
return [2, Promise.resolve(u.data)];
|
|
1273
|
-
(E = (b = this.options).onBefore) === null || E === void 0 || E.call(b,
|
|
1279
|
+
(E = (b = this.options).onBefore) === null || E === void 0 || E.call(b, r), P.label = 1;
|
|
1274
1280
|
case 1:
|
|
1275
|
-
return P.trys.push([1, 3, , 4]), m = this.runPluginHandler("onRequest", this.serviceRef.current,
|
|
1281
|
+
return P.trys.push([1, 3, , 4]), m = this.runPluginHandler("onRequest", this.serviceRef.current, r).servicePromise, m || (m = (g = this.serviceRef).current.apply(g, O([], R(r), !1))), [4, m];
|
|
1276
1282
|
case 2:
|
|
1277
1283
|
return v = P.sent(), a !== this.count ? [2, new Promise(function() {
|
|
1278
1284
|
})] : (this.setState({
|
|
1279
1285
|
data: v,
|
|
1280
1286
|
error: void 0,
|
|
1281
1287
|
loading: !1
|
|
1282
|
-
}), (q = (x = this.options).onSuccess) === null || q === void 0 || q.call(x, v,
|
|
1288
|
+
}), (q = (x = this.options).onSuccess) === null || q === void 0 || q.call(x, v, r), this.runPluginHandler("onSuccess", v, r), (M = (N = this.options).onFinally) === null || M === void 0 || M.call(N, r, v, void 0), a === this.count && this.runPluginHandler("onFinally", r, v, void 0), [2, v]);
|
|
1283
1289
|
case 3:
|
|
1284
1290
|
if (p = P.sent(), a !== this.count)
|
|
1285
1291
|
return [2, new Promise(function() {
|
|
@@ -1287,7 +1293,7 @@ var xt = function(r, e) {
|
|
|
1287
1293
|
throw this.setState({
|
|
1288
1294
|
error: p,
|
|
1289
1295
|
loading: !1
|
|
1290
|
-
}), (G = (k = this.options).onError) === null || G === void 0 || G.call(k, p,
|
|
1296
|
+
}), (G = (k = this.options).onError) === null || G === void 0 || G.call(k, p, r), this.runPluginHandler("onError", p, r), (W = (L = this.options).onFinally) === null || W === void 0 || W.call(L, r, void 0, p), a === this.count && this.runPluginHandler("onFinally", r, void 0, p), p;
|
|
1291
1297
|
case 4:
|
|
1292
1298
|
return [
|
|
1293
1299
|
2
|
|
@@ -1296,36 +1302,36 @@ var xt = function(r, e) {
|
|
|
1296
1302
|
}
|
|
1297
1303
|
});
|
|
1298
1304
|
});
|
|
1299
|
-
},
|
|
1300
|
-
for (var
|
|
1305
|
+
}, e.prototype.run = function() {
|
|
1306
|
+
for (var r = this, n = [], a = 0; a < arguments.length; a++)
|
|
1301
1307
|
n[a] = arguments[a];
|
|
1302
1308
|
this.runAsync.apply(this, O([], R(n), !1)).catch(function(i) {
|
|
1303
|
-
|
|
1309
|
+
r.options.onError || console.error(i);
|
|
1304
1310
|
});
|
|
1305
|
-
},
|
|
1311
|
+
}, e.prototype.cancel = function() {
|
|
1306
1312
|
this.count += 1, this.setState({
|
|
1307
1313
|
loading: !1
|
|
1308
1314
|
}), this.runPluginHandler("onCancel");
|
|
1309
|
-
},
|
|
1315
|
+
}, e.prototype.refresh = function() {
|
|
1310
1316
|
this.run.apply(this, O([], R(this.state.params || []), !1));
|
|
1311
|
-
},
|
|
1317
|
+
}, e.prototype.refreshAsync = function() {
|
|
1312
1318
|
return this.runAsync.apply(this, O([], R(this.state.params || []), !1));
|
|
1313
|
-
},
|
|
1314
|
-
var n = ve(
|
|
1319
|
+
}, e.prototype.mutate = function(r) {
|
|
1320
|
+
var n = ve(r) ? r(this.state.data) : r;
|
|
1315
1321
|
this.runPluginHandler("onMutate", n), this.setState({
|
|
1316
1322
|
data: n
|
|
1317
1323
|
});
|
|
1318
|
-
},
|
|
1324
|
+
}, e;
|
|
1319
1325
|
}()
|
|
1320
1326
|
);
|
|
1321
|
-
function Nt(
|
|
1322
|
-
|
|
1323
|
-
var a =
|
|
1324
|
-
me &&
|
|
1327
|
+
function Nt(e, r, n) {
|
|
1328
|
+
r === void 0 && (r = {}), n === void 0 && (n = []);
|
|
1329
|
+
var a = r.manual, i = a === void 0 ? !1 : a, o = r.ready, c = o === void 0 ? !0 : o, f = jr(r, ["manual", "ready"]);
|
|
1330
|
+
me && r.defaultParams && !Array.isArray(r.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof r.defaultParams));
|
|
1325
1331
|
var s = A({
|
|
1326
1332
|
manual: i,
|
|
1327
1333
|
ready: c
|
|
1328
|
-
}, f), u =
|
|
1334
|
+
}, f), u = Or(e), m = Ct(), v = Rr(function() {
|
|
1329
1335
|
var p = n.map(function(g) {
|
|
1330
1336
|
var b;
|
|
1331
1337
|
return (b = g == null ? void 0 : g.onInit) === null || b === void 0 ? void 0 : b.call(g, s);
|
|
@@ -1336,7 +1342,7 @@ function Nt(r, e, n) {
|
|
|
1336
1342
|
return p(v, s);
|
|
1337
1343
|
}), Pt(function() {
|
|
1338
1344
|
if (!i && c) {
|
|
1339
|
-
var p = v.state.params ||
|
|
1345
|
+
var p = v.state.params || r.defaultParams || [];
|
|
1340
1346
|
v.run.apply(v, O([], R(p), !1));
|
|
1341
1347
|
}
|
|
1342
1348
|
}), $e(function() {
|
|
@@ -1354,15 +1360,15 @@ function Nt(r, e, n) {
|
|
|
1354
1360
|
mutate: J(v.mutate.bind(v))
|
|
1355
1361
|
};
|
|
1356
1362
|
}
|
|
1357
|
-
function kt(
|
|
1358
|
-
return Nt(
|
|
1363
|
+
function kt(e, r, n) {
|
|
1364
|
+
return Nt(e, r, O(O([], R(n || []), !1), [bt, gt, pt, jt, xt, _r, tt, _t], !1));
|
|
1359
1365
|
}
|
|
1360
|
-
function Lt(
|
|
1361
|
-
const a = kt(
|
|
1362
|
-
...
|
|
1366
|
+
function Lt(e, r, n) {
|
|
1367
|
+
const a = kt(e, {
|
|
1368
|
+
...r,
|
|
1363
1369
|
onError(o, c) {
|
|
1364
1370
|
var f;
|
|
1365
|
-
((
|
|
1371
|
+
((r == null ? void 0 : r.errorMessage) ?? !0) && wr.error(o.message), (f = r == null ? void 0 : r.onError) == null || f.call(r, o, c);
|
|
1366
1372
|
}
|
|
1367
1373
|
}, n), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
|
|
1368
1374
|
return {
|
|
@@ -1375,8 +1381,8 @@ export {
|
|
|
1375
1381
|
Ft as CheckboxValue,
|
|
1376
1382
|
$t as IconFont,
|
|
1377
1383
|
It as SwitchValue,
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1384
|
+
wr as message,
|
|
1385
|
+
zr as modal,
|
|
1386
|
+
Hr as notification,
|
|
1381
1387
|
Lt as useRequest
|
|
1382
1388
|
};
|