xmirror-components 1.0.14 → 1.0.15
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/README.md +264 -52
- package/build/dist/index.cjs +16 -11
- package/build/dist/index.mjs +1000 -775
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/lib/index.d.ts +41 -0
- package/build/lib/index.js +3 -1
- package/build/package.json +1 -1
- package/build/types/index.d.ts +1 -0
- package/package.json +1 -1
package/build/dist/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
(function(){"use strict"})();
|
|
2
|
+
import Pr, { forwardRef as Hr, useRef as j, useMemo as he, useEffect as J, useState as Ar, useCallback as Ur, Fragment as zr } from "react";
|
|
3
|
+
import { message as Dr, notification as Vr, Modal as Jr, App as Cr, Checkbox as Xr, Switch as Zr, Button as Qr, Tooltip as Kr } from "antd";
|
|
4
|
+
var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
|
+
function Ye(e) {
|
|
6
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
7
|
}
|
|
7
|
-
var
|
|
8
|
+
var ve = { exports: {} }, te = {};
|
|
8
9
|
/**
|
|
9
10
|
* @license React
|
|
10
11
|
* react-jsx-runtime.production.js
|
|
@@ -14,27 +15,27 @@ var se = { exports: {} }, te = {};
|
|
|
14
15
|
* This source code is licensed under the MIT license found in the
|
|
15
16
|
* LICENSE file in the root directory of this source tree.
|
|
16
17
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
function
|
|
18
|
+
var ur;
|
|
19
|
+
function et() {
|
|
20
|
+
if (ur) return te;
|
|
21
|
+
ur = 1;
|
|
22
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
23
|
+
function r(a, i, o) {
|
|
23
24
|
var c = null;
|
|
24
25
|
if (o !== void 0 && (c = "" + o), i.key !== void 0 && (c = "" + i.key), "key" in i) {
|
|
25
26
|
o = {};
|
|
26
|
-
for (var
|
|
27
|
-
|
|
27
|
+
for (var s in i)
|
|
28
|
+
s !== "key" && (o[s] = i[s]);
|
|
28
29
|
} else o = i;
|
|
29
30
|
return i = o.ref, {
|
|
30
|
-
$$typeof:
|
|
31
|
+
$$typeof: e,
|
|
31
32
|
type: a,
|
|
32
33
|
key: c,
|
|
33
34
|
ref: i !== void 0 ? i : null,
|
|
34
35
|
props: o
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
return te.Fragment =
|
|
38
|
+
return te.Fragment = t, te.jsx = r, te.jsxs = r, te;
|
|
38
39
|
}
|
|
39
40
|
var ne = {};
|
|
40
41
|
/**
|
|
@@ -46,471 +47,471 @@ var ne = {};
|
|
|
46
47
|
* This source code is licensed under the MIT license found in the
|
|
47
48
|
* LICENSE file in the root directory of this source tree.
|
|
48
49
|
*/
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return
|
|
52
|
-
function
|
|
53
|
-
if (
|
|
54
|
-
if (typeof
|
|
55
|
-
return
|
|
56
|
-
if (typeof
|
|
57
|
-
switch (
|
|
58
|
-
case
|
|
50
|
+
var cr;
|
|
51
|
+
function rt() {
|
|
52
|
+
return cr || (cr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
53
|
+
function e(n) {
|
|
54
|
+
if (n == null) return null;
|
|
55
|
+
if (typeof n == "function")
|
|
56
|
+
return n.$$typeof === Br ? null : n.displayName || n.name || null;
|
|
57
|
+
if (typeof n == "string") return n;
|
|
58
|
+
switch (n) {
|
|
59
|
+
case B:
|
|
59
60
|
return "Fragment";
|
|
60
|
-
case
|
|
61
|
+
case Y:
|
|
61
62
|
return "Portal";
|
|
62
63
|
case P:
|
|
63
64
|
return "Profiler";
|
|
64
|
-
case
|
|
65
|
+
case $:
|
|
65
66
|
return "StrictMode";
|
|
66
|
-
case
|
|
67
|
+
case H:
|
|
67
68
|
return "Suspense";
|
|
68
69
|
case T:
|
|
69
70
|
return "SuspenseList";
|
|
70
71
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
switch (typeof
|
|
72
|
+
if (typeof n == "object")
|
|
73
|
+
switch (typeof n.tag == "number" && console.error(
|
|
73
74
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
|
-
),
|
|
75
|
-
case
|
|
76
|
-
return (
|
|
75
|
+
), n.$$typeof) {
|
|
76
|
+
case se:
|
|
77
|
+
return (n.displayName || "Context") + ".Provider";
|
|
77
78
|
case Q:
|
|
78
|
-
return (
|
|
79
|
+
return (n._context.displayName || "Context") + ".Consumer";
|
|
79
80
|
case K:
|
|
80
|
-
var
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
return
|
|
84
|
-
case
|
|
85
|
-
|
|
81
|
+
var v = n.render;
|
|
82
|
+
return n = n.displayName, n || (n = v.displayName || v.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
83
|
+
case A:
|
|
84
|
+
return v = n.displayName || null, v !== null ? v : e(n.type) || "Memo";
|
|
85
|
+
case L:
|
|
86
|
+
v = n._payload, n = n._init;
|
|
86
87
|
try {
|
|
87
|
-
return
|
|
88
|
+
return e(n(v));
|
|
88
89
|
} catch {
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
return null;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
-
return "" +
|
|
94
|
+
function t(n) {
|
|
95
|
+
return "" + n;
|
|
95
96
|
}
|
|
96
|
-
function n
|
|
97
|
+
function r(n) {
|
|
97
98
|
try {
|
|
98
|
-
|
|
99
|
-
var
|
|
99
|
+
t(n);
|
|
100
|
+
var v = !1;
|
|
100
101
|
} catch {
|
|
101
|
-
|
|
102
|
+
v = !0;
|
|
102
103
|
}
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
return
|
|
107
|
-
|
|
104
|
+
if (v) {
|
|
105
|
+
v = console;
|
|
106
|
+
var g = v.error, y = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
107
|
+
return g.call(
|
|
108
|
+
v,
|
|
108
109
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
-
|
|
110
|
-
),
|
|
110
|
+
y
|
|
111
|
+
), t(n);
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
function a() {
|
|
114
115
|
}
|
|
115
116
|
function i() {
|
|
116
117
|
if (ee === 0) {
|
|
117
|
-
|
|
118
|
-
var
|
|
118
|
+
Je = console.log, Xe = console.info, Ze = console.warn, Qe = console.error, Ke = console.group, er = console.groupCollapsed, rr = console.groupEnd;
|
|
119
|
+
var n = {
|
|
119
120
|
configurable: !0,
|
|
120
121
|
enumerable: !0,
|
|
121
122
|
value: a,
|
|
122
123
|
writable: !0
|
|
123
124
|
};
|
|
124
125
|
Object.defineProperties(console, {
|
|
125
|
-
info:
|
|
126
|
-
log:
|
|
127
|
-
warn:
|
|
128
|
-
error:
|
|
129
|
-
group:
|
|
130
|
-
groupCollapsed:
|
|
131
|
-
groupEnd:
|
|
126
|
+
info: n,
|
|
127
|
+
log: n,
|
|
128
|
+
warn: n,
|
|
129
|
+
error: n,
|
|
130
|
+
group: n,
|
|
131
|
+
groupCollapsed: n,
|
|
132
|
+
groupEnd: n
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
135
|
ee++;
|
|
135
136
|
}
|
|
136
137
|
function o() {
|
|
137
138
|
if (ee--, ee === 0) {
|
|
138
|
-
var
|
|
139
|
+
var n = { configurable: !0, enumerable: !0, writable: !0 };
|
|
139
140
|
Object.defineProperties(console, {
|
|
140
|
-
log:
|
|
141
|
-
info:
|
|
142
|
-
warn:
|
|
143
|
-
error:
|
|
144
|
-
group:
|
|
145
|
-
groupCollapsed:
|
|
146
|
-
groupEnd:
|
|
141
|
+
log: z({}, n, { value: Je }),
|
|
142
|
+
info: z({}, n, { value: Xe }),
|
|
143
|
+
warn: z({}, n, { value: Ze }),
|
|
144
|
+
error: z({}, n, { value: Qe }),
|
|
145
|
+
group: z({}, n, { value: Ke }),
|
|
146
|
+
groupCollapsed: z({}, n, { value: er }),
|
|
147
|
+
groupEnd: z({}, n, { value: rr })
|
|
147
148
|
});
|
|
148
149
|
}
|
|
149
150
|
0 > ee && console.error(
|
|
150
151
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
151
152
|
);
|
|
152
153
|
}
|
|
153
|
-
function c(
|
|
154
|
-
if (
|
|
154
|
+
function c(n) {
|
|
155
|
+
if (Te === void 0)
|
|
155
156
|
try {
|
|
156
157
|
throw Error();
|
|
157
|
-
} catch (
|
|
158
|
-
var
|
|
159
|
-
|
|
160
|
-
at`) ? " (<anonymous>)" : -1 <
|
|
158
|
+
} catch (g) {
|
|
159
|
+
var v = g.stack.trim().match(/\n( *(at )?)/);
|
|
160
|
+
Te = v && v[1] || "", tr = -1 < g.stack.indexOf(`
|
|
161
|
+
at`) ? " (<anonymous>)" : -1 < g.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
161
162
|
}
|
|
162
163
|
return `
|
|
163
|
-
` +
|
|
164
|
+
` + Te + n + tr;
|
|
164
165
|
}
|
|
165
|
-
function
|
|
166
|
-
if (!
|
|
167
|
-
var
|
|
168
|
-
if (
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
|
|
166
|
+
function s(n, v) {
|
|
167
|
+
if (!n || we) return "";
|
|
168
|
+
var g = je.get(n);
|
|
169
|
+
if (g !== void 0) return g;
|
|
170
|
+
we = !0, g = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
171
|
+
var y = null;
|
|
172
|
+
y = U.H, U.H = null, i();
|
|
172
173
|
try {
|
|
173
|
-
var
|
|
174
|
+
var O = {
|
|
174
175
|
DetermineComponentFrameRoot: function() {
|
|
175
176
|
try {
|
|
176
|
-
if (
|
|
177
|
-
var
|
|
177
|
+
if (v) {
|
|
178
|
+
var G = function() {
|
|
178
179
|
throw Error();
|
|
179
180
|
};
|
|
180
|
-
if (Object.defineProperty(
|
|
181
|
+
if (Object.defineProperty(G.prototype, "props", {
|
|
181
182
|
set: function() {
|
|
182
183
|
throw Error();
|
|
183
184
|
}
|
|
184
185
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
185
186
|
try {
|
|
186
|
-
Reflect.construct(
|
|
187
|
+
Reflect.construct(G, []);
|
|
187
188
|
} catch (I) {
|
|
188
|
-
var
|
|
189
|
+
var le = I;
|
|
189
190
|
}
|
|
190
|
-
Reflect.construct(
|
|
191
|
+
Reflect.construct(n, [], G);
|
|
191
192
|
} else {
|
|
192
193
|
try {
|
|
193
|
-
|
|
194
|
+
G.call();
|
|
194
195
|
} catch (I) {
|
|
195
|
-
|
|
196
|
+
le = I;
|
|
196
197
|
}
|
|
197
|
-
|
|
198
|
+
n.call(G.prototype);
|
|
198
199
|
}
|
|
199
200
|
} else {
|
|
200
201
|
try {
|
|
201
202
|
throw Error();
|
|
202
203
|
} catch (I) {
|
|
203
|
-
|
|
204
|
+
le = I;
|
|
204
205
|
}
|
|
205
|
-
(
|
|
206
|
+
(G = n()) && typeof G.catch == "function" && G.catch(function() {
|
|
206
207
|
});
|
|
207
208
|
}
|
|
208
209
|
} catch (I) {
|
|
209
|
-
if (I &&
|
|
210
|
-
return [I.stack,
|
|
210
|
+
if (I && le && typeof I.stack == "string")
|
|
211
|
+
return [I.stack, le.stack];
|
|
211
212
|
}
|
|
212
213
|
return [null, null];
|
|
213
214
|
}
|
|
214
215
|
};
|
|
215
|
-
|
|
216
|
+
O.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
216
217
|
var w = Object.getOwnPropertyDescriptor(
|
|
217
|
-
|
|
218
|
+
O.DetermineComponentFrameRoot,
|
|
218
219
|
"name"
|
|
219
220
|
);
|
|
220
221
|
w && w.configurable && Object.defineProperty(
|
|
221
|
-
|
|
222
|
+
O.DetermineComponentFrameRoot,
|
|
222
223
|
"name",
|
|
223
224
|
{ value: "DetermineComponentFrameRoot" }
|
|
224
225
|
);
|
|
225
|
-
var h =
|
|
226
|
-
if (F &&
|
|
227
|
-
var
|
|
228
|
-
`),
|
|
226
|
+
var h = O.DetermineComponentFrameRoot(), F = h[0], X = h[1];
|
|
227
|
+
if (F && X) {
|
|
228
|
+
var R = F.split(`
|
|
229
|
+
`), D = X.split(`
|
|
229
230
|
`);
|
|
230
|
-
for (h = w = 0; w <
|
|
231
|
+
for (h = w = 0; w < R.length && !R[w].includes(
|
|
231
232
|
"DetermineComponentFrameRoot"
|
|
232
233
|
); )
|
|
233
234
|
w++;
|
|
234
|
-
for (; h <
|
|
235
|
+
for (; h < D.length && !D[h].includes(
|
|
235
236
|
"DetermineComponentFrameRoot"
|
|
236
237
|
); )
|
|
237
238
|
h++;
|
|
238
|
-
if (w ===
|
|
239
|
-
for (w =
|
|
239
|
+
if (w === R.length || h === D.length)
|
|
240
|
+
for (w = R.length - 1, h = D.length - 1; 1 <= w && 0 <= h && R[w] !== D[h]; )
|
|
240
241
|
h--;
|
|
241
242
|
for (; 1 <= w && 0 <= h; w--, h--)
|
|
242
|
-
if (
|
|
243
|
+
if (R[w] !== D[h]) {
|
|
243
244
|
if (w !== 1 || h !== 1)
|
|
244
245
|
do
|
|
245
|
-
if (w--, h--, 0 > h ||
|
|
246
|
+
if (w--, h--, 0 > h || R[w] !== D[h]) {
|
|
246
247
|
var re = `
|
|
247
|
-
` +
|
|
248
|
+
` + R[w].replace(
|
|
248
249
|
" at new ",
|
|
249
250
|
" at "
|
|
250
251
|
);
|
|
251
|
-
return
|
|
252
|
+
return n.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", n.displayName)), typeof n == "function" && je.set(n, re), re;
|
|
252
253
|
}
|
|
253
254
|
while (1 <= w && 0 <= h);
|
|
254
255
|
break;
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
258
|
} finally {
|
|
258
|
-
|
|
259
|
+
we = !1, U.H = y, o(), Error.prepareStackTrace = g;
|
|
259
260
|
}
|
|
260
|
-
return
|
|
261
|
+
return R = (R = n ? n.displayName || n.name : "") ? c(R) : "", typeof n == "function" && je.set(n, R), R;
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
-
if (
|
|
264
|
-
if (typeof
|
|
265
|
-
var
|
|
266
|
-
return
|
|
267
|
-
|
|
268
|
-
!(!
|
|
263
|
+
function f(n) {
|
|
264
|
+
if (n == null) return "";
|
|
265
|
+
if (typeof n == "function") {
|
|
266
|
+
var v = n.prototype;
|
|
267
|
+
return s(
|
|
268
|
+
n,
|
|
269
|
+
!(!v || !v.isReactComponent)
|
|
269
270
|
);
|
|
270
271
|
}
|
|
271
|
-
if (typeof
|
|
272
|
-
switch (
|
|
273
|
-
case
|
|
272
|
+
if (typeof n == "string") return c(n);
|
|
273
|
+
switch (n) {
|
|
274
|
+
case H:
|
|
274
275
|
return c("Suspense");
|
|
275
276
|
case T:
|
|
276
277
|
return c("SuspenseList");
|
|
277
278
|
}
|
|
278
|
-
if (typeof
|
|
279
|
-
switch (
|
|
279
|
+
if (typeof n == "object")
|
|
280
|
+
switch (n.$$typeof) {
|
|
280
281
|
case K:
|
|
281
|
-
return
|
|
282
|
-
case
|
|
283
|
-
return
|
|
284
|
-
case
|
|
285
|
-
|
|
282
|
+
return n = s(n.render, !1), n;
|
|
283
|
+
case A:
|
|
284
|
+
return f(n.type);
|
|
285
|
+
case L:
|
|
286
|
+
v = n._payload, n = n._init;
|
|
286
287
|
try {
|
|
287
|
-
return
|
|
288
|
+
return f(n(v));
|
|
288
289
|
} catch {
|
|
289
290
|
}
|
|
290
291
|
}
|
|
291
292
|
return "";
|
|
292
293
|
}
|
|
293
294
|
function u() {
|
|
294
|
-
var
|
|
295
|
-
return
|
|
295
|
+
var n = U.A;
|
|
296
|
+
return n === null ? null : n.getOwner();
|
|
296
297
|
}
|
|
297
|
-
function
|
|
298
|
-
if (
|
|
299
|
-
var
|
|
300
|
-
if (
|
|
298
|
+
function d(n) {
|
|
299
|
+
if (Ve.call(n, "key")) {
|
|
300
|
+
var v = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
301
|
+
if (v && v.isReactWarning) return !1;
|
|
301
302
|
}
|
|
302
|
-
return
|
|
303
|
+
return n.key !== void 0;
|
|
303
304
|
}
|
|
304
|
-
function
|
|
305
|
-
function
|
|
306
|
-
|
|
305
|
+
function l(n, v) {
|
|
306
|
+
function g() {
|
|
307
|
+
nr || (nr = !0, console.error(
|
|
307
308
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
308
|
-
|
|
309
|
+
v
|
|
309
310
|
));
|
|
310
311
|
}
|
|
311
|
-
|
|
312
|
-
get:
|
|
312
|
+
g.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
313
|
+
get: g,
|
|
313
314
|
configurable: !0
|
|
314
315
|
});
|
|
315
316
|
}
|
|
316
|
-
function
|
|
317
|
-
var
|
|
318
|
-
return
|
|
317
|
+
function p() {
|
|
318
|
+
var n = e(this.type);
|
|
319
|
+
return ar[n] || (ar[n] = !0, console.error(
|
|
319
320
|
"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."
|
|
320
|
-
)),
|
|
321
|
+
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
-
return
|
|
324
|
-
$$typeof:
|
|
325
|
-
type:
|
|
326
|
-
key:
|
|
323
|
+
function m(n, v, g, y, O, w) {
|
|
324
|
+
return g = w.ref, n = {
|
|
325
|
+
$$typeof: q,
|
|
326
|
+
type: n,
|
|
327
|
+
key: v,
|
|
327
328
|
props: w,
|
|
328
|
-
_owner:
|
|
329
|
-
}, (
|
|
329
|
+
_owner: O
|
|
330
|
+
}, (g !== void 0 ? g : null) !== null ? Object.defineProperty(n, "ref", {
|
|
330
331
|
enumerable: !1,
|
|
331
|
-
get:
|
|
332
|
-
}) : Object.defineProperty(
|
|
332
|
+
get: p
|
|
333
|
+
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
333
334
|
configurable: !1,
|
|
334
335
|
enumerable: !1,
|
|
335
336
|
writable: !0,
|
|
336
337
|
value: 0
|
|
337
|
-
}), Object.defineProperty(
|
|
338
|
+
}), Object.defineProperty(n, "_debugInfo", {
|
|
338
339
|
configurable: !1,
|
|
339
340
|
enumerable: !1,
|
|
340
341
|
writable: !0,
|
|
341
342
|
value: null
|
|
342
|
-
}), Object.freeze && (Object.freeze(
|
|
343
|
+
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
343
344
|
}
|
|
344
|
-
function b(
|
|
345
|
-
if (typeof
|
|
346
|
-
var h =
|
|
345
|
+
function b(n, v, g, y, O, w) {
|
|
346
|
+
if (typeof n == "string" || typeof n == "function" || n === B || n === P || n === $ || n === H || n === T || n === fe || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === A || n.$$typeof === se || n.$$typeof === Q || n.$$typeof === K || n.$$typeof === Gr || n.getModuleId !== void 0)) {
|
|
347
|
+
var h = v.children;
|
|
347
348
|
if (h !== void 0)
|
|
348
|
-
if (
|
|
349
|
-
if (
|
|
350
|
-
for (
|
|
351
|
-
E(h[
|
|
349
|
+
if (y)
|
|
350
|
+
if (Ee(h)) {
|
|
351
|
+
for (y = 0; y < h.length; y++)
|
|
352
|
+
E(h[y], n);
|
|
352
353
|
Object.freeze && Object.freeze(h);
|
|
353
354
|
} else
|
|
354
355
|
console.error(
|
|
355
356
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
356
357
|
);
|
|
357
|
-
else E(h,
|
|
358
|
+
else E(h, n);
|
|
358
359
|
} else
|
|
359
|
-
h = "", (
|
|
360
|
+
h = "", (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).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."), n === null ? y = "null" : Ee(n) ? y = "array" : n !== void 0 && n.$$typeof === q ? (y = "<" + (e(n.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : y = typeof n, console.error(
|
|
360
361
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
361
|
-
|
|
362
|
+
y,
|
|
362
363
|
h
|
|
363
364
|
);
|
|
364
|
-
if (
|
|
365
|
-
h =
|
|
366
|
-
var F = Object.keys(
|
|
367
|
-
return
|
|
365
|
+
if (Ve.call(v, "key")) {
|
|
366
|
+
h = e(n);
|
|
367
|
+
var F = Object.keys(v).filter(function(R) {
|
|
368
|
+
return R !== "key";
|
|
368
369
|
});
|
|
369
|
-
|
|
370
|
+
y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", or[h + y] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
370
371
|
`A props object containing a "key" prop is being spread into JSX:
|
|
371
372
|
let props = %s;
|
|
372
373
|
<%s {...props} />
|
|
373
374
|
React keys must be passed directly to JSX without using spread:
|
|
374
375
|
let props = %s;
|
|
375
376
|
<%s key={someKey} {...props} />`,
|
|
376
|
-
|
|
377
|
+
y,
|
|
377
378
|
h,
|
|
378
379
|
F,
|
|
379
380
|
h
|
|
380
|
-
),
|
|
381
|
+
), or[h + y] = !0);
|
|
381
382
|
}
|
|
382
|
-
if (h = null,
|
|
383
|
-
|
|
384
|
-
for (var
|
|
385
|
-
|
|
386
|
-
} else
|
|
387
|
-
return h &&
|
|
388
|
-
|
|
389
|
-
typeof
|
|
390
|
-
),
|
|
383
|
+
if (h = null, g !== void 0 && (r(g), h = "" + g), d(v) && (r(v.key), h = "" + v.key), "key" in v) {
|
|
384
|
+
g = {};
|
|
385
|
+
for (var X in v)
|
|
386
|
+
X !== "key" && (g[X] = v[X]);
|
|
387
|
+
} else g = v;
|
|
388
|
+
return h && l(
|
|
389
|
+
g,
|
|
390
|
+
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
391
|
+
), m(n, h, w, O, u(), g);
|
|
391
392
|
}
|
|
392
|
-
function E(
|
|
393
|
-
if (typeof
|
|
394
|
-
if (
|
|
395
|
-
for (var
|
|
396
|
-
var
|
|
397
|
-
x(
|
|
393
|
+
function E(n, v) {
|
|
394
|
+
if (typeof n == "object" && n && n.$$typeof !== Yr) {
|
|
395
|
+
if (Ee(n))
|
|
396
|
+
for (var g = 0; g < n.length; g++) {
|
|
397
|
+
var y = n[g];
|
|
398
|
+
x(y) && M(y, v);
|
|
398
399
|
}
|
|
399
|
-
else if (x(
|
|
400
|
-
|
|
401
|
-
else if (
|
|
402
|
-
for (; !(
|
|
403
|
-
x(
|
|
400
|
+
else if (x(n))
|
|
401
|
+
n._store && (n._store.validated = 1);
|
|
402
|
+
else if (n === null || typeof n != "object" ? g = null : (g = De && n[De] || n["@@iterator"], g = typeof g == "function" ? g : null), typeof g == "function" && g !== n.entries && (g = g.call(n), g !== n))
|
|
403
|
+
for (; !(n = g.next()).done; )
|
|
404
|
+
x(n.value) && M(n.value, v);
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
|
-
function x(
|
|
407
|
-
return typeof
|
|
407
|
+
function x(n) {
|
|
408
|
+
return typeof n == "object" && n !== null && n.$$typeof === q;
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
-
if (
|
|
411
|
-
|
|
412
|
-
var
|
|
413
|
-
|
|
414
|
-
var
|
|
415
|
-
|
|
416
|
-
var
|
|
417
|
-
return
|
|
410
|
+
function M(n, v) {
|
|
411
|
+
if (n._store && !n._store.validated && n.key == null && (n._store.validated = 1, v = k(v), !ir[v])) {
|
|
412
|
+
ir[v] = !0;
|
|
413
|
+
var g = "";
|
|
414
|
+
n && n._owner != null && n._owner !== u() && (g = null, typeof n._owner.tag == "number" ? g = e(n._owner.type) : typeof n._owner.name == "string" && (g = n._owner.name), g = " It was passed a child from " + g + ".");
|
|
415
|
+
var y = U.getCurrentStack;
|
|
416
|
+
U.getCurrentStack = function() {
|
|
417
|
+
var O = f(n.type);
|
|
418
|
+
return y && (O += y() || ""), O;
|
|
418
419
|
}, console.error(
|
|
419
420
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
),
|
|
421
|
+
v,
|
|
422
|
+
g
|
|
423
|
+
), U.getCurrentStack = y;
|
|
423
424
|
}
|
|
424
425
|
}
|
|
425
|
-
function
|
|
426
|
-
var
|
|
427
|
-
return
|
|
426
|
+
function k(n) {
|
|
427
|
+
var v = "", g = u();
|
|
428
|
+
return g && (g = e(g.type)) && (v = `
|
|
428
429
|
|
|
429
|
-
Check the render method of \`` +
|
|
430
|
+
Check the render method of \`` + g + "`."), v || (n = e(n)) && (v = `
|
|
430
431
|
|
|
431
|
-
Check the top-level render call using <` +
|
|
432
|
+
Check the top-level render call using <` + n + ">."), v;
|
|
432
433
|
}
|
|
433
|
-
var
|
|
434
|
+
var W = Pr, q = Symbol.for("react.transitional.element"), Y = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), se = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), fe = Symbol.for("react.offscreen"), De = Symbol.iterator, Br = Symbol.for("react.client.reference"), U = W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ve = Object.prototype.hasOwnProperty, z = Object.assign, Gr = Symbol.for("react.client.reference"), Ee = Array.isArray, ee = 0, Je, Xe, Ze, Qe, Ke, er, rr;
|
|
434
435
|
a.__reactDisabledLog = !0;
|
|
435
|
-
var
|
|
436
|
-
ne.Fragment =
|
|
437
|
-
return b(
|
|
438
|
-
}, ne.jsxs = function(
|
|
439
|
-
return b(
|
|
436
|
+
var Te, tr, we = !1, je = new (typeof WeakMap == "function" ? WeakMap : Map)(), Yr = Symbol.for("react.client.reference"), nr, ar = {}, or = {}, ir = {};
|
|
437
|
+
ne.Fragment = B, ne.jsx = function(n, v, g, y, O) {
|
|
438
|
+
return b(n, v, g, !1, y, O);
|
|
439
|
+
}, ne.jsxs = function(n, v, g, y, O) {
|
|
440
|
+
return b(n, v, g, !0, y, O);
|
|
440
441
|
};
|
|
441
442
|
}()), ne;
|
|
442
443
|
}
|
|
443
|
-
var
|
|
444
|
-
function
|
|
445
|
-
return
|
|
444
|
+
var sr;
|
|
445
|
+
function tt() {
|
|
446
|
+
return sr || (sr = 1, process.env.NODE_ENV === "production" ? ve.exports = et() : ve.exports = rt()), ve.exports;
|
|
446
447
|
}
|
|
447
|
-
var
|
|
448
|
-
let
|
|
449
|
-
function
|
|
450
|
-
const
|
|
451
|
-
return
|
|
448
|
+
var C = tt();
|
|
449
|
+
let Nr = Dr, nt = Vr, at = Jr;
|
|
450
|
+
function ot({ children: e }) {
|
|
451
|
+
const t = Cr.useApp();
|
|
452
|
+
return Nr = t.message, at = t.modal, nt = t.notification, e || "";
|
|
452
453
|
}
|
|
453
|
-
function
|
|
454
|
-
return /* @__PURE__ */
|
|
455
|
-
|
|
454
|
+
function jn({ children: e, ...t }) {
|
|
455
|
+
return /* @__PURE__ */ C.jsx(
|
|
456
|
+
Cr,
|
|
456
457
|
{
|
|
457
|
-
...
|
|
458
|
-
children: /* @__PURE__ */
|
|
458
|
+
...t,
|
|
459
|
+
children: /* @__PURE__ */ C.jsx(ot, { children: e })
|
|
459
460
|
}
|
|
460
461
|
);
|
|
461
462
|
}
|
|
462
|
-
const
|
|
463
|
-
({ type:
|
|
463
|
+
const it = Hr(
|
|
464
|
+
({ type: e = "", className: t = "", symbol: r = !1, ...a }, i) => r ? /* @__PURE__ */ C.jsx(
|
|
464
465
|
"svg",
|
|
465
466
|
{
|
|
466
|
-
className: `iconfont-symbol ${
|
|
467
|
+
className: `iconfont-symbol ${e} ${t}`,
|
|
467
468
|
"aria-hidden": "true",
|
|
468
469
|
ref: i,
|
|
469
470
|
...a,
|
|
470
|
-
children: /* @__PURE__ */
|
|
471
|
+
children: /* @__PURE__ */ C.jsx("use", { xlinkHref: `#${e}` })
|
|
471
472
|
}
|
|
472
|
-
) : /* @__PURE__ */
|
|
473
|
+
) : /* @__PURE__ */ C.jsx(
|
|
473
474
|
"i",
|
|
474
475
|
{
|
|
475
|
-
className: `iconfont ${
|
|
476
|
+
className: `iconfont ${e} ${t}`,
|
|
476
477
|
ref: i,
|
|
477
478
|
...a
|
|
478
479
|
}
|
|
479
480
|
)
|
|
480
|
-
),
|
|
481
|
-
checked:
|
|
482
|
-
onChange:
|
|
483
|
-
trueValue:
|
|
481
|
+
), Sn = ({
|
|
482
|
+
checked: e,
|
|
483
|
+
onChange: t,
|
|
484
|
+
trueValue: r = !0,
|
|
484
485
|
falseValue: a = !1,
|
|
485
486
|
trueLabel: i = "",
|
|
486
487
|
falseLabel: o = "",
|
|
487
488
|
children: c,
|
|
488
|
-
...
|
|
489
|
+
...s
|
|
489
490
|
}) => {
|
|
490
|
-
const
|
|
491
|
-
|
|
491
|
+
const f = e === r, u = (d) => {
|
|
492
|
+
t == null || t(d.target.checked ? r : a, d);
|
|
492
493
|
};
|
|
493
|
-
return /* @__PURE__ */
|
|
494
|
-
|
|
494
|
+
return /* @__PURE__ */ C.jsx(
|
|
495
|
+
Xr,
|
|
495
496
|
{
|
|
496
|
-
checked:
|
|
497
|
+
checked: f,
|
|
497
498
|
onChange: u,
|
|
498
|
-
...
|
|
499
|
-
children: c || (
|
|
499
|
+
...s,
|
|
500
|
+
children: c || (f ? i : o)
|
|
500
501
|
}
|
|
501
502
|
);
|
|
502
|
-
},
|
|
503
|
-
checked:
|
|
504
|
-
onChange:
|
|
505
|
-
trueValue:
|
|
503
|
+
}, On = ({
|
|
504
|
+
checked: e,
|
|
505
|
+
onChange: t,
|
|
506
|
+
trueValue: r = !0,
|
|
506
507
|
falseValue: a = !1,
|
|
507
508
|
...i
|
|
508
509
|
}) => {
|
|
509
|
-
const o =
|
|
510
|
-
|
|
510
|
+
const o = e === r, c = (s, f) => {
|
|
511
|
+
t == null || t(s ? r : a, f);
|
|
511
512
|
};
|
|
512
|
-
return /* @__PURE__ */
|
|
513
|
-
|
|
513
|
+
return /* @__PURE__ */ C.jsx(
|
|
514
|
+
Zr,
|
|
514
515
|
{
|
|
515
516
|
checked: o,
|
|
516
517
|
onChange: c,
|
|
@@ -518,80 +519,150 @@ const Ft = qr(
|
|
|
518
519
|
}
|
|
519
520
|
);
|
|
520
521
|
};
|
|
521
|
-
var
|
|
522
|
-
|
|
522
|
+
var ut = typeof global == "object" && global && global.Object === Object && global, ct = typeof self == "object" && self && self.Object === Object && self, st = ut || ct || Function("return this")(), me = st.Symbol, kr = Object.prototype, ft = kr.hasOwnProperty, lt = kr.toString, ae = me ? me.toStringTag : void 0;
|
|
523
|
+
function dt(e) {
|
|
524
|
+
var t = ft.call(e, ae), r = e[ae];
|
|
525
|
+
try {
|
|
526
|
+
e[ae] = void 0;
|
|
527
|
+
var a = !0;
|
|
528
|
+
} catch {
|
|
529
|
+
}
|
|
530
|
+
var i = lt.call(e);
|
|
531
|
+
return a && (t ? e[ae] = r : delete e[ae]), i;
|
|
532
|
+
}
|
|
533
|
+
var vt = Object.prototype, gt = vt.toString;
|
|
534
|
+
function bt(e) {
|
|
535
|
+
return gt.call(e);
|
|
536
|
+
}
|
|
537
|
+
var mt = "[object Null]", ht = "[object Undefined]", fr = me ? me.toStringTag : void 0;
|
|
538
|
+
function pt(e) {
|
|
539
|
+
return e == null ? e === void 0 ? ht : mt : fr && fr in Object(e) ? dt(e) : bt(e);
|
|
540
|
+
}
|
|
541
|
+
function yt(e) {
|
|
542
|
+
return e != null && typeof e == "object";
|
|
543
|
+
}
|
|
544
|
+
var Et = Array.isArray;
|
|
545
|
+
function Tt() {
|
|
546
|
+
}
|
|
547
|
+
var wt = "[object String]";
|
|
548
|
+
function jt(e) {
|
|
549
|
+
return typeof e == "string" || !Et(e) && yt(e) && pt(e) == wt;
|
|
550
|
+
}
|
|
551
|
+
var Se = { exports: {} };
|
|
552
|
+
/*!
|
|
553
|
+
Copyright (c) 2018 Jed Watson.
|
|
554
|
+
Licensed under the MIT License (MIT), see
|
|
555
|
+
http://jedwatson.github.io/classnames
|
|
556
|
+
*/
|
|
557
|
+
var lr;
|
|
558
|
+
function St() {
|
|
559
|
+
return lr || (lr = 1, function(e) {
|
|
560
|
+
(function() {
|
|
561
|
+
var t = {}.hasOwnProperty;
|
|
562
|
+
function r() {
|
|
563
|
+
for (var o = "", c = 0; c < arguments.length; c++) {
|
|
564
|
+
var s = arguments[c];
|
|
565
|
+
s && (o = i(o, a(s)));
|
|
566
|
+
}
|
|
567
|
+
return o;
|
|
568
|
+
}
|
|
569
|
+
function a(o) {
|
|
570
|
+
if (typeof o == "string" || typeof o == "number")
|
|
571
|
+
return o;
|
|
572
|
+
if (typeof o != "object")
|
|
573
|
+
return "";
|
|
574
|
+
if (Array.isArray(o))
|
|
575
|
+
return r.apply(null, o);
|
|
576
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
577
|
+
return o.toString();
|
|
578
|
+
var c = "";
|
|
579
|
+
for (var s in o)
|
|
580
|
+
t.call(o, s) && o[s] && (c = i(c, s));
|
|
581
|
+
return c;
|
|
582
|
+
}
|
|
583
|
+
function i(o, c) {
|
|
584
|
+
return c ? o ? o + " " + c : o + c : o;
|
|
585
|
+
}
|
|
586
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
587
|
+
})();
|
|
588
|
+
}(Se)), Se.exports;
|
|
589
|
+
}
|
|
590
|
+
var Ot = St();
|
|
591
|
+
const _t = /* @__PURE__ */ Ye(Ot);
|
|
592
|
+
var Rt = function(e) {
|
|
593
|
+
return function(t, r) {
|
|
523
594
|
var a = j(!1);
|
|
524
|
-
|
|
595
|
+
e(function() {
|
|
525
596
|
return function() {
|
|
526
597
|
a.current = !1;
|
|
527
598
|
};
|
|
528
|
-
}, []),
|
|
599
|
+
}, []), e(function() {
|
|
529
600
|
if (!a.current)
|
|
530
601
|
a.current = !0;
|
|
531
602
|
else
|
|
532
|
-
return
|
|
533
|
-
},
|
|
603
|
+
return t();
|
|
604
|
+
}, r);
|
|
534
605
|
};
|
|
535
|
-
},
|
|
536
|
-
return
|
|
537
|
-
for (var
|
|
538
|
-
|
|
539
|
-
for (var o in
|
|
606
|
+
}, N = function() {
|
|
607
|
+
return N = Object.assign || function(t) {
|
|
608
|
+
for (var r, a = 1, i = arguments.length; a < i; a++) {
|
|
609
|
+
r = arguments[a];
|
|
610
|
+
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
540
611
|
}
|
|
541
|
-
return
|
|
542
|
-
},
|
|
612
|
+
return t;
|
|
613
|
+
}, N.apply(this, arguments);
|
|
543
614
|
};
|
|
544
|
-
function
|
|
545
|
-
var
|
|
546
|
-
for (var a in
|
|
547
|
-
if (
|
|
548
|
-
for (var i = 0, a = Object.getOwnPropertySymbols(
|
|
549
|
-
|
|
550
|
-
return
|
|
615
|
+
function qr(e, t) {
|
|
616
|
+
var r = {};
|
|
617
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
|
|
618
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
619
|
+
for (var i = 0, a = Object.getOwnPropertySymbols(e); i < a.length; i++)
|
|
620
|
+
t.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[i]) && (r[a[i]] = e[a[i]]);
|
|
621
|
+
return r;
|
|
551
622
|
}
|
|
552
|
-
function
|
|
623
|
+
function xt(e, t, r, a) {
|
|
553
624
|
function i(o) {
|
|
554
|
-
return o instanceof
|
|
625
|
+
return o instanceof r ? o : new r(function(c) {
|
|
555
626
|
c(o);
|
|
556
627
|
});
|
|
557
628
|
}
|
|
558
|
-
return new (
|
|
559
|
-
function
|
|
629
|
+
return new (r || (r = Promise))(function(o, c) {
|
|
630
|
+
function s(d) {
|
|
560
631
|
try {
|
|
561
|
-
u(a.next(
|
|
562
|
-
} catch (
|
|
563
|
-
c(
|
|
632
|
+
u(a.next(d));
|
|
633
|
+
} catch (l) {
|
|
634
|
+
c(l);
|
|
564
635
|
}
|
|
565
636
|
}
|
|
566
|
-
function
|
|
637
|
+
function f(d) {
|
|
567
638
|
try {
|
|
568
|
-
u(a.throw(
|
|
569
|
-
} catch (
|
|
570
|
-
c(
|
|
639
|
+
u(a.throw(d));
|
|
640
|
+
} catch (l) {
|
|
641
|
+
c(l);
|
|
571
642
|
}
|
|
572
643
|
}
|
|
573
|
-
function u(
|
|
574
|
-
|
|
644
|
+
function u(d) {
|
|
645
|
+
d.done ? o(d.value) : i(d.value).then(s, f);
|
|
575
646
|
}
|
|
576
|
-
u((a = a.apply(
|
|
647
|
+
u((a = a.apply(e, t || [])).next());
|
|
577
648
|
});
|
|
578
649
|
}
|
|
579
|
-
function
|
|
580
|
-
var
|
|
650
|
+
function Pt(e, t) {
|
|
651
|
+
var r = { label: 0, sent: function() {
|
|
581
652
|
if (o[0] & 1) throw o[1];
|
|
582
653
|
return o[1];
|
|
583
654
|
}, trys: [], ops: [] }, a, i, o, c = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
584
|
-
return c.next =
|
|
655
|
+
return c.next = s(0), c.throw = s(1), c.return = s(2), typeof Symbol == "function" && (c[Symbol.iterator] = function() {
|
|
585
656
|
return this;
|
|
586
657
|
}), c;
|
|
587
|
-
function
|
|
588
|
-
return function(
|
|
589
|
-
return
|
|
658
|
+
function s(u) {
|
|
659
|
+
return function(d) {
|
|
660
|
+
return f([u, d]);
|
|
590
661
|
};
|
|
591
662
|
}
|
|
592
|
-
function
|
|
663
|
+
function f(u) {
|
|
593
664
|
if (a) throw new TypeError("Generator is already executing.");
|
|
594
|
-
for (; c && (c = 0, u[0] && (
|
|
665
|
+
for (; c && (c = 0, u[0] && (r = 0)), r; ) try {
|
|
595
666
|
if (a = 1, i && (o = u[0] & 2 ? i.return : u[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, u[1])).done) return o;
|
|
596
667
|
switch (i = 0, o && (u = [u[0] & 2, o.value]), u[0]) {
|
|
597
668
|
case 0:
|
|
@@ -599,36 +670,36 @@ function Xr(r, e) {
|
|
|
599
670
|
o = u;
|
|
600
671
|
break;
|
|
601
672
|
case 4:
|
|
602
|
-
return
|
|
673
|
+
return r.label++, { value: u[1], done: !1 };
|
|
603
674
|
case 5:
|
|
604
|
-
|
|
675
|
+
r.label++, i = u[1], u = [0];
|
|
605
676
|
continue;
|
|
606
677
|
case 7:
|
|
607
|
-
u =
|
|
678
|
+
u = r.ops.pop(), r.trys.pop();
|
|
608
679
|
continue;
|
|
609
680
|
default:
|
|
610
|
-
if (o =
|
|
611
|
-
|
|
681
|
+
if (o = r.trys, !(o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) {
|
|
682
|
+
r = 0;
|
|
612
683
|
continue;
|
|
613
684
|
}
|
|
614
685
|
if (u[0] === 3 && (!o || u[1] > o[0] && u[1] < o[3])) {
|
|
615
|
-
|
|
686
|
+
r.label = u[1];
|
|
616
687
|
break;
|
|
617
688
|
}
|
|
618
|
-
if (u[0] === 6 &&
|
|
619
|
-
|
|
689
|
+
if (u[0] === 6 && r.label < o[1]) {
|
|
690
|
+
r.label = o[1], o = u;
|
|
620
691
|
break;
|
|
621
692
|
}
|
|
622
|
-
if (o &&
|
|
623
|
-
|
|
693
|
+
if (o && r.label < o[2]) {
|
|
694
|
+
r.label = o[2], r.ops.push(u);
|
|
624
695
|
break;
|
|
625
696
|
}
|
|
626
|
-
o[2] &&
|
|
697
|
+
o[2] && r.ops.pop(), r.trys.pop();
|
|
627
698
|
continue;
|
|
628
699
|
}
|
|
629
|
-
u =
|
|
630
|
-
} catch (
|
|
631
|
-
u = [6,
|
|
700
|
+
u = t.call(e, r);
|
|
701
|
+
} catch (d) {
|
|
702
|
+
u = [6, d], i = 0;
|
|
632
703
|
} finally {
|
|
633
704
|
a = o = 0;
|
|
634
705
|
}
|
|
@@ -636,52 +707,52 @@ function Xr(r, e) {
|
|
|
636
707
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
637
708
|
}
|
|
638
709
|
}
|
|
639
|
-
function
|
|
640
|
-
var
|
|
641
|
-
if (!
|
|
642
|
-
var a =
|
|
710
|
+
function S(e, t) {
|
|
711
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
712
|
+
if (!r) return e;
|
|
713
|
+
var a = r.call(e), i, o = [], c;
|
|
643
714
|
try {
|
|
644
|
-
for (; (
|
|
645
|
-
} catch (
|
|
646
|
-
c = { error:
|
|
715
|
+
for (; (t === void 0 || t-- > 0) && !(i = a.next()).done; ) o.push(i.value);
|
|
716
|
+
} catch (s) {
|
|
717
|
+
c = { error: s };
|
|
647
718
|
} finally {
|
|
648
719
|
try {
|
|
649
|
-
i && !i.done && (
|
|
720
|
+
i && !i.done && (r = a.return) && r.call(a);
|
|
650
721
|
} finally {
|
|
651
722
|
if (c) throw c.error;
|
|
652
723
|
}
|
|
653
724
|
}
|
|
654
725
|
return o;
|
|
655
726
|
}
|
|
656
|
-
function
|
|
657
|
-
if (
|
|
658
|
-
(o || !(a in
|
|
659
|
-
return
|
|
727
|
+
function _(e, t, r) {
|
|
728
|
+
if (r || arguments.length === 2) for (var a = 0, i = t.length, o; a < i; a++)
|
|
729
|
+
(o || !(a in t)) && (o || (o = Array.prototype.slice.call(t, 0, a)), o[a] = t[a]);
|
|
730
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
660
731
|
}
|
|
661
|
-
var
|
|
662
|
-
return typeof
|
|
663
|
-
},
|
|
664
|
-
function
|
|
665
|
-
|
|
666
|
-
var
|
|
667
|
-
|
|
668
|
-
return
|
|
669
|
-
}, [
|
|
670
|
-
var
|
|
671
|
-
return
|
|
732
|
+
var ue = function(e) {
|
|
733
|
+
return typeof e == "function";
|
|
734
|
+
}, pe = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
|
|
735
|
+
function Z(e) {
|
|
736
|
+
pe && (ue(e) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));
|
|
737
|
+
var t = j(e);
|
|
738
|
+
t.current = he(function() {
|
|
739
|
+
return e;
|
|
740
|
+
}, [e]);
|
|
741
|
+
var r = j();
|
|
742
|
+
return r.current || (r.current = function() {
|
|
672
743
|
for (var a = [], i = 0; i < arguments.length; i++)
|
|
673
744
|
a[i] = arguments[i];
|
|
674
|
-
return
|
|
675
|
-
}),
|
|
745
|
+
return t.current.apply(this, a);
|
|
746
|
+
}), r.current;
|
|
676
747
|
}
|
|
677
|
-
const
|
|
678
|
-
var
|
|
679
|
-
var
|
|
680
|
-
return
|
|
681
|
-
!
|
|
682
|
-
}, [i]),
|
|
683
|
-
|
|
684
|
-
},
|
|
748
|
+
const Be = Rt(J);
|
|
749
|
+
var Mr = function(e, t) {
|
|
750
|
+
var r = t.manual, a = t.ready, i = a === void 0 ? !0 : a, o = t.defaultParams, c = o === void 0 ? [] : o, s = t.refreshDeps, f = s === void 0 ? [] : s, u = t.refreshDepsAction, d = j(!1);
|
|
751
|
+
return d.current = !1, Be(function() {
|
|
752
|
+
!r && i && (d.current = !0, e.run.apply(e, _([], S(c), !1)));
|
|
753
|
+
}, [i]), Be(function() {
|
|
754
|
+
d.current || r || (d.current = !0, u ? u() : e.refresh());
|
|
755
|
+
}, _([], S(f), !1)), {
|
|
685
756
|
onBefore: function() {
|
|
686
757
|
if (!i)
|
|
687
758
|
return {
|
|
@@ -690,87 +761,87 @@ var _r = function(r, e) {
|
|
|
690
761
|
}
|
|
691
762
|
};
|
|
692
763
|
};
|
|
693
|
-
|
|
694
|
-
var
|
|
764
|
+
Mr.onInit = function(e) {
|
|
765
|
+
var t = e.ready, r = t === void 0 ? !0 : t, a = e.manual;
|
|
695
766
|
return {
|
|
696
|
-
loading: !a &&
|
|
767
|
+
loading: !a && r
|
|
697
768
|
};
|
|
698
769
|
};
|
|
699
|
-
function
|
|
700
|
-
if (
|
|
701
|
-
for (var
|
|
702
|
-
if (!Object.is(r
|
|
770
|
+
function Ge(e, t) {
|
|
771
|
+
if (e === t) return !0;
|
|
772
|
+
for (var r = 0; r < e.length; r++)
|
|
773
|
+
if (!Object.is(e[r], t[r])) return !1;
|
|
703
774
|
return !0;
|
|
704
775
|
}
|
|
705
|
-
function
|
|
706
|
-
var
|
|
707
|
-
deps:
|
|
776
|
+
function Wr(e, t) {
|
|
777
|
+
var r = j({
|
|
778
|
+
deps: t,
|
|
708
779
|
obj: void 0,
|
|
709
780
|
initialized: !1
|
|
710
781
|
}).current;
|
|
711
|
-
return (
|
|
782
|
+
return (r.initialized === !1 || !Ge(r.deps, t)) && (r.deps = t, r.obj = e(), r.initialized = !0), r.obj;
|
|
712
783
|
}
|
|
713
|
-
function
|
|
714
|
-
var
|
|
715
|
-
return
|
|
784
|
+
function He(e) {
|
|
785
|
+
var t = j(e);
|
|
786
|
+
return t.current = e, t;
|
|
716
787
|
}
|
|
717
|
-
var
|
|
718
|
-
|
|
719
|
-
var
|
|
720
|
-
|
|
788
|
+
var ye = function(e) {
|
|
789
|
+
pe && (ue(e) || console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));
|
|
790
|
+
var t = He(e);
|
|
791
|
+
J(function() {
|
|
721
792
|
return function() {
|
|
722
|
-
|
|
793
|
+
t.current();
|
|
723
794
|
};
|
|
724
795
|
}, []);
|
|
725
|
-
},
|
|
726
|
-
var a =
|
|
796
|
+
}, ge = /* @__PURE__ */ new Map(), At = function(e, t, r) {
|
|
797
|
+
var a = ge.get(e);
|
|
727
798
|
a != null && a.timer && clearTimeout(a.timer);
|
|
728
799
|
var i = void 0;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
},
|
|
800
|
+
t > -1 && (i = setTimeout(function() {
|
|
801
|
+
ge.delete(e);
|
|
802
|
+
}, t)), ge.set(e, N(N({}, r), {
|
|
732
803
|
timer: i
|
|
733
804
|
}));
|
|
734
|
-
},
|
|
735
|
-
return
|
|
736
|
-
},
|
|
737
|
-
return
|
|
738
|
-
},
|
|
739
|
-
|
|
740
|
-
return
|
|
805
|
+
}, Ct = function(e) {
|
|
806
|
+
return ge.get(e);
|
|
807
|
+
}, be = /* @__PURE__ */ new Map(), Nt = function(e) {
|
|
808
|
+
return be.get(e);
|
|
809
|
+
}, kt = function(e, t) {
|
|
810
|
+
be.set(e, t), t.then(function(r) {
|
|
811
|
+
return be.delete(e), r;
|
|
741
812
|
}).catch(function() {
|
|
742
|
-
|
|
813
|
+
be.delete(e);
|
|
743
814
|
});
|
|
744
|
-
},
|
|
745
|
-
|
|
746
|
-
return
|
|
815
|
+
}, V = {}, qt = function(e, t) {
|
|
816
|
+
V[e] && V[e].forEach(function(r) {
|
|
817
|
+
return r(t);
|
|
747
818
|
});
|
|
748
|
-
},
|
|
749
|
-
return
|
|
750
|
-
var a =
|
|
751
|
-
|
|
819
|
+
}, Oe = function(e, t) {
|
|
820
|
+
return V[e] || (V[e] = []), V[e].push(t), function() {
|
|
821
|
+
var a = V[e].indexOf(t);
|
|
822
|
+
V[e].splice(a, 1);
|
|
752
823
|
};
|
|
753
|
-
},
|
|
754
|
-
var
|
|
755
|
-
|
|
756
|
-
},
|
|
757
|
-
return b === void 0 && (b = []),
|
|
824
|
+
}, Mt = function(e, t) {
|
|
825
|
+
var r = t.cacheKey, a = t.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = t.staleTime, c = o === void 0 ? 0 : o, s = t.setCache, f = t.getCache, u = j(), d = j(), l = function(m, b) {
|
|
826
|
+
s ? s(b) : At(m, i, b), qt(m, b.data);
|
|
827
|
+
}, p = function(m, b) {
|
|
828
|
+
return b === void 0 && (b = []), f ? f(b) : Ct(m);
|
|
758
829
|
};
|
|
759
|
-
return
|
|
760
|
-
if (
|
|
761
|
-
var
|
|
762
|
-
|
|
763
|
-
|
|
830
|
+
return Wr(function() {
|
|
831
|
+
if (r) {
|
|
832
|
+
var m = p(r);
|
|
833
|
+
m && Object.hasOwnProperty.call(m, "data") && (e.state.data = m.data, e.state.params = m.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - m.time <= c) && (e.state.loading = !1)), u.current = Oe(r, function(b) {
|
|
834
|
+
e.setState({
|
|
764
835
|
data: b
|
|
765
836
|
});
|
|
766
837
|
});
|
|
767
838
|
}
|
|
768
|
-
}, []),
|
|
769
|
-
var
|
|
770
|
-
(
|
|
771
|
-
}),
|
|
772
|
-
onBefore: function(
|
|
773
|
-
var b =
|
|
839
|
+
}, []), ye(function() {
|
|
840
|
+
var m;
|
|
841
|
+
(m = u.current) === null || m === void 0 || m.call(u);
|
|
842
|
+
}), r ? {
|
|
843
|
+
onBefore: function(m) {
|
|
844
|
+
var b = p(r, m);
|
|
774
845
|
return !b || !Object.hasOwnProperty.call(b, "data") ? {} : c === -1 || (/* @__PURE__ */ new Date()).getTime() - b.time <= c ? {
|
|
775
846
|
loading: !1,
|
|
776
847
|
data: b == null ? void 0 : b.data,
|
|
@@ -781,268 +852,268 @@ var $e = function(r) {
|
|
|
781
852
|
error: void 0
|
|
782
853
|
};
|
|
783
854
|
},
|
|
784
|
-
onRequest: function(
|
|
785
|
-
var E =
|
|
786
|
-
return E && E !==
|
|
855
|
+
onRequest: function(m, b) {
|
|
856
|
+
var E = Nt(r);
|
|
857
|
+
return E && E !== d.current ? {
|
|
787
858
|
servicePromise: E
|
|
788
|
-
} : (E =
|
|
859
|
+
} : (E = m.apply(void 0, _([], S(b), !1)), d.current = E, kt(r, E), {
|
|
789
860
|
servicePromise: E
|
|
790
861
|
});
|
|
791
862
|
},
|
|
792
|
-
onSuccess: function(
|
|
863
|
+
onSuccess: function(m, b) {
|
|
793
864
|
var E;
|
|
794
|
-
|
|
795
|
-
data:
|
|
865
|
+
r && ((E = u.current) === null || E === void 0 || E.call(u), l(r, {
|
|
866
|
+
data: m,
|
|
796
867
|
params: b,
|
|
797
868
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
798
|
-
}), u.current =
|
|
799
|
-
|
|
869
|
+
}), u.current = Oe(r, function(x) {
|
|
870
|
+
e.setState({
|
|
800
871
|
data: x
|
|
801
872
|
});
|
|
802
873
|
}));
|
|
803
874
|
},
|
|
804
|
-
onMutate: function(
|
|
875
|
+
onMutate: function(m) {
|
|
805
876
|
var b;
|
|
806
|
-
|
|
807
|
-
data:
|
|
808
|
-
params:
|
|
877
|
+
r && ((b = u.current) === null || b === void 0 || b.call(u), l(r, {
|
|
878
|
+
data: m,
|
|
879
|
+
params: e.state.params,
|
|
809
880
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
810
|
-
}), u.current =
|
|
811
|
-
|
|
881
|
+
}), u.current = Oe(r, function(E) {
|
|
882
|
+
e.setState({
|
|
812
883
|
data: E
|
|
813
884
|
});
|
|
814
885
|
}));
|
|
815
886
|
}
|
|
816
887
|
} : {};
|
|
817
|
-
},
|
|
818
|
-
function
|
|
819
|
-
if (
|
|
820
|
-
|
|
821
|
-
function
|
|
822
|
-
var
|
|
823
|
-
return
|
|
888
|
+
}, _e, dr;
|
|
889
|
+
function Ue() {
|
|
890
|
+
if (dr) return _e;
|
|
891
|
+
dr = 1;
|
|
892
|
+
function e(t) {
|
|
893
|
+
var r = typeof t;
|
|
894
|
+
return t != null && (r == "object" || r == "function");
|
|
824
895
|
}
|
|
825
|
-
return
|
|
896
|
+
return _e = e, _e;
|
|
826
897
|
}
|
|
827
|
-
var
|
|
828
|
-
function
|
|
829
|
-
if (
|
|
830
|
-
|
|
831
|
-
var
|
|
832
|
-
return
|
|
898
|
+
var Re, vr;
|
|
899
|
+
function Wt() {
|
|
900
|
+
if (vr) return Re;
|
|
901
|
+
vr = 1;
|
|
902
|
+
var e = typeof de == "object" && de && de.Object === Object && de;
|
|
903
|
+
return Re = e, Re;
|
|
833
904
|
}
|
|
834
|
-
var
|
|
835
|
-
function
|
|
836
|
-
if (
|
|
837
|
-
|
|
838
|
-
var
|
|
839
|
-
return
|
|
905
|
+
var xe, gr;
|
|
906
|
+
function $r() {
|
|
907
|
+
if (gr) return xe;
|
|
908
|
+
gr = 1;
|
|
909
|
+
var e = Wt(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
|
|
910
|
+
return xe = r, xe;
|
|
840
911
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
843
|
-
if (
|
|
844
|
-
|
|
845
|
-
var
|
|
846
|
-
return
|
|
912
|
+
var Pe, br;
|
|
913
|
+
function $t() {
|
|
914
|
+
if (br) return Pe;
|
|
915
|
+
br = 1;
|
|
916
|
+
var e = $r(), t = function() {
|
|
917
|
+
return e.Date.now();
|
|
847
918
|
};
|
|
848
|
-
return
|
|
919
|
+
return Pe = t, Pe;
|
|
849
920
|
}
|
|
850
|
-
var
|
|
851
|
-
function
|
|
852
|
-
if (
|
|
853
|
-
|
|
854
|
-
var
|
|
855
|
-
function
|
|
856
|
-
for (var a =
|
|
921
|
+
var Ae, mr;
|
|
922
|
+
function Lt() {
|
|
923
|
+
if (mr) return Ae;
|
|
924
|
+
mr = 1;
|
|
925
|
+
var e = /\s/;
|
|
926
|
+
function t(r) {
|
|
927
|
+
for (var a = r.length; a-- && e.test(r.charAt(a)); )
|
|
857
928
|
;
|
|
858
929
|
return a;
|
|
859
930
|
}
|
|
860
|
-
return
|
|
931
|
+
return Ae = t, Ae;
|
|
861
932
|
}
|
|
862
|
-
var
|
|
863
|
-
function
|
|
864
|
-
if (
|
|
865
|
-
|
|
866
|
-
var
|
|
867
|
-
function
|
|
868
|
-
return a && a.slice(0,
|
|
933
|
+
var Ce, hr;
|
|
934
|
+
function Ft() {
|
|
935
|
+
if (hr) return Ce;
|
|
936
|
+
hr = 1;
|
|
937
|
+
var e = Lt(), t = /^\s+/;
|
|
938
|
+
function r(a) {
|
|
939
|
+
return a && a.slice(0, e(a) + 1).replace(t, "");
|
|
869
940
|
}
|
|
870
|
-
return
|
|
941
|
+
return Ce = r, Ce;
|
|
871
942
|
}
|
|
872
|
-
var
|
|
873
|
-
function
|
|
874
|
-
if (
|
|
875
|
-
|
|
876
|
-
var
|
|
877
|
-
return
|
|
943
|
+
var Ne, pr;
|
|
944
|
+
function Lr() {
|
|
945
|
+
if (pr) return Ne;
|
|
946
|
+
pr = 1;
|
|
947
|
+
var e = $r(), t = e.Symbol;
|
|
948
|
+
return Ne = t, Ne;
|
|
878
949
|
}
|
|
879
|
-
var
|
|
880
|
-
function
|
|
881
|
-
if (
|
|
882
|
-
|
|
883
|
-
var
|
|
950
|
+
var ke, yr;
|
|
951
|
+
function It() {
|
|
952
|
+
if (yr) return ke;
|
|
953
|
+
yr = 1;
|
|
954
|
+
var e = Lr(), t = Object.prototype, r = t.hasOwnProperty, a = t.toString, i = e ? e.toStringTag : void 0;
|
|
884
955
|
function o(c) {
|
|
885
|
-
var
|
|
956
|
+
var s = r.call(c, i), f = c[i];
|
|
886
957
|
try {
|
|
887
958
|
c[i] = void 0;
|
|
888
959
|
var u = !0;
|
|
889
960
|
} catch {
|
|
890
961
|
}
|
|
891
|
-
var
|
|
892
|
-
return u && (
|
|
962
|
+
var d = a.call(c);
|
|
963
|
+
return u && (s ? c[i] = f : delete c[i]), d;
|
|
893
964
|
}
|
|
894
|
-
return
|
|
965
|
+
return ke = o, ke;
|
|
895
966
|
}
|
|
896
|
-
var
|
|
897
|
-
function
|
|
898
|
-
if (
|
|
899
|
-
|
|
900
|
-
var
|
|
901
|
-
function
|
|
902
|
-
return
|
|
967
|
+
var qe, Er;
|
|
968
|
+
function Bt() {
|
|
969
|
+
if (Er) return qe;
|
|
970
|
+
Er = 1;
|
|
971
|
+
var e = Object.prototype, t = e.toString;
|
|
972
|
+
function r(a) {
|
|
973
|
+
return t.call(a);
|
|
903
974
|
}
|
|
904
|
-
return
|
|
975
|
+
return qe = r, qe;
|
|
905
976
|
}
|
|
906
|
-
var
|
|
907
|
-
function
|
|
908
|
-
if (
|
|
909
|
-
|
|
910
|
-
var
|
|
911
|
-
function c(
|
|
912
|
-
return
|
|
977
|
+
var Me, Tr;
|
|
978
|
+
function Gt() {
|
|
979
|
+
if (Tr) return Me;
|
|
980
|
+
Tr = 1;
|
|
981
|
+
var e = Lr(), t = It(), r = Bt(), a = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
|
|
982
|
+
function c(s) {
|
|
983
|
+
return s == null ? s === void 0 ? i : a : o && o in Object(s) ? t(s) : r(s);
|
|
913
984
|
}
|
|
914
|
-
return
|
|
985
|
+
return Me = c, Me;
|
|
915
986
|
}
|
|
916
|
-
var
|
|
917
|
-
function
|
|
918
|
-
if (
|
|
919
|
-
|
|
920
|
-
function
|
|
921
|
-
return
|
|
987
|
+
var We, wr;
|
|
988
|
+
function Yt() {
|
|
989
|
+
if (wr) return We;
|
|
990
|
+
wr = 1;
|
|
991
|
+
function e(t) {
|
|
992
|
+
return t != null && typeof t == "object";
|
|
922
993
|
}
|
|
923
|
-
return
|
|
994
|
+
return We = e, We;
|
|
924
995
|
}
|
|
925
|
-
var
|
|
926
|
-
function
|
|
927
|
-
if (
|
|
928
|
-
|
|
929
|
-
var
|
|
996
|
+
var $e, jr;
|
|
997
|
+
function Ht() {
|
|
998
|
+
if (jr) return $e;
|
|
999
|
+
jr = 1;
|
|
1000
|
+
var e = Gt(), t = Yt(), r = "[object Symbol]";
|
|
930
1001
|
function a(i) {
|
|
931
|
-
return typeof i == "symbol" ||
|
|
1002
|
+
return typeof i == "symbol" || t(i) && e(i) == r;
|
|
932
1003
|
}
|
|
933
|
-
return
|
|
1004
|
+
return $e = a, $e;
|
|
934
1005
|
}
|
|
935
|
-
var
|
|
936
|
-
function
|
|
937
|
-
if (
|
|
938
|
-
|
|
939
|
-
var
|
|
940
|
-
function
|
|
1006
|
+
var Le, Sr;
|
|
1007
|
+
function Ut() {
|
|
1008
|
+
if (Sr) return Le;
|
|
1009
|
+
Sr = 1;
|
|
1010
|
+
var e = Ft(), t = Ue(), r = Ht(), a = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, s = parseInt;
|
|
1011
|
+
function f(u) {
|
|
941
1012
|
if (typeof u == "number")
|
|
942
1013
|
return u;
|
|
943
|
-
if (
|
|
1014
|
+
if (r(u))
|
|
944
1015
|
return a;
|
|
945
|
-
if (
|
|
946
|
-
var
|
|
947
|
-
u =
|
|
1016
|
+
if (t(u)) {
|
|
1017
|
+
var d = typeof u.valueOf == "function" ? u.valueOf() : u;
|
|
1018
|
+
u = t(d) ? d + "" : d;
|
|
948
1019
|
}
|
|
949
1020
|
if (typeof u != "string")
|
|
950
1021
|
return u === 0 ? u : +u;
|
|
951
|
-
u =
|
|
952
|
-
var
|
|
953
|
-
return
|
|
1022
|
+
u = e(u);
|
|
1023
|
+
var l = o.test(u);
|
|
1024
|
+
return l || c.test(u) ? s(u.slice(2), l ? 2 : 8) : i.test(u) ? a : +u;
|
|
954
1025
|
}
|
|
955
|
-
return
|
|
1026
|
+
return Le = f, Le;
|
|
956
1027
|
}
|
|
957
|
-
var
|
|
958
|
-
function
|
|
959
|
-
if (
|
|
960
|
-
|
|
961
|
-
var
|
|
962
|
-
function c(
|
|
963
|
-
var
|
|
964
|
-
if (typeof
|
|
1028
|
+
var Fe, Or;
|
|
1029
|
+
function Fr() {
|
|
1030
|
+
if (Or) return Fe;
|
|
1031
|
+
Or = 1;
|
|
1032
|
+
var e = Ue(), t = $t(), r = Ut(), a = "Expected a function", i = Math.max, o = Math.min;
|
|
1033
|
+
function c(s, f, u) {
|
|
1034
|
+
var d, l, p, m, b, E, x = 0, M = !1, k = !1, W = !0;
|
|
1035
|
+
if (typeof s != "function")
|
|
965
1036
|
throw new TypeError(a);
|
|
966
|
-
|
|
967
|
-
function
|
|
968
|
-
var
|
|
969
|
-
return
|
|
1037
|
+
f = r(f) || 0, e(u) && (M = !!u.leading, k = "maxWait" in u, p = k ? i(r(u.maxWait) || 0, f) : p, W = "trailing" in u ? !!u.trailing : W);
|
|
1038
|
+
function q(T) {
|
|
1039
|
+
var A = d, L = l;
|
|
1040
|
+
return d = l = void 0, x = T, m = s.apply(L, A), m;
|
|
970
1041
|
}
|
|
971
|
-
function
|
|
972
|
-
return x = T, b = setTimeout(P,
|
|
1042
|
+
function Y(T) {
|
|
1043
|
+
return x = T, b = setTimeout(P, f), M ? q(T) : m;
|
|
973
1044
|
}
|
|
974
|
-
function
|
|
975
|
-
var
|
|
976
|
-
return
|
|
1045
|
+
function B(T) {
|
|
1046
|
+
var A = T - E, L = T - x, fe = f - A;
|
|
1047
|
+
return k ? o(fe, p - L) : fe;
|
|
977
1048
|
}
|
|
978
|
-
function
|
|
979
|
-
var
|
|
980
|
-
return E === void 0 ||
|
|
1049
|
+
function $(T) {
|
|
1050
|
+
var A = T - E, L = T - x;
|
|
1051
|
+
return E === void 0 || A >= f || A < 0 || k && L >= p;
|
|
981
1052
|
}
|
|
982
1053
|
function P() {
|
|
983
|
-
var T =
|
|
984
|
-
if (
|
|
1054
|
+
var T = t();
|
|
1055
|
+
if ($(T))
|
|
985
1056
|
return Q(T);
|
|
986
|
-
b = setTimeout(P,
|
|
1057
|
+
b = setTimeout(P, B(T));
|
|
987
1058
|
}
|
|
988
1059
|
function Q(T) {
|
|
989
|
-
return b = void 0,
|
|
1060
|
+
return b = void 0, W && d ? q(T) : (d = l = void 0, m);
|
|
990
1061
|
}
|
|
991
|
-
function
|
|
992
|
-
b !== void 0 && clearTimeout(b), x = 0,
|
|
1062
|
+
function se() {
|
|
1063
|
+
b !== void 0 && clearTimeout(b), x = 0, d = E = l = b = void 0;
|
|
993
1064
|
}
|
|
994
1065
|
function K() {
|
|
995
|
-
return b === void 0 ?
|
|
1066
|
+
return b === void 0 ? m : Q(t());
|
|
996
1067
|
}
|
|
997
|
-
function
|
|
998
|
-
var T =
|
|
999
|
-
if (
|
|
1068
|
+
function H() {
|
|
1069
|
+
var T = t(), A = $(T);
|
|
1070
|
+
if (d = arguments, l = this, E = T, A) {
|
|
1000
1071
|
if (b === void 0)
|
|
1001
|
-
return
|
|
1002
|
-
if (
|
|
1003
|
-
return clearTimeout(b), b = setTimeout(P,
|
|
1072
|
+
return Y(E);
|
|
1073
|
+
if (k)
|
|
1074
|
+
return clearTimeout(b), b = setTimeout(P, f), q(E);
|
|
1004
1075
|
}
|
|
1005
|
-
return b === void 0 && (b = setTimeout(P,
|
|
1076
|
+
return b === void 0 && (b = setTimeout(P, f)), m;
|
|
1006
1077
|
}
|
|
1007
|
-
return
|
|
1078
|
+
return H.cancel = se, H.flush = K, H;
|
|
1008
1079
|
}
|
|
1009
|
-
return
|
|
1080
|
+
return Fe = c, Fe;
|
|
1010
1081
|
}
|
|
1011
|
-
var
|
|
1012
|
-
const
|
|
1013
|
-
var
|
|
1014
|
-
var
|
|
1015
|
-
var
|
|
1016
|
-
return a !== void 0 && (
|
|
1082
|
+
var zt = Fr();
|
|
1083
|
+
const Dt = /* @__PURE__ */ Ye(zt);
|
|
1084
|
+
var Vt = function(e, t) {
|
|
1085
|
+
var r = t.debounceWait, a = t.debounceLeading, i = t.debounceTrailing, o = t.debounceMaxWait, c = j(), s = he(function() {
|
|
1086
|
+
var f = {};
|
|
1087
|
+
return a !== void 0 && (f.leading = a), i !== void 0 && (f.trailing = i), o !== void 0 && (f.maxWait = o), f;
|
|
1017
1088
|
}, [a, i, o]);
|
|
1018
|
-
return
|
|
1019
|
-
if (
|
|
1020
|
-
var
|
|
1021
|
-
return c.current =
|
|
1089
|
+
return J(function() {
|
|
1090
|
+
if (r) {
|
|
1091
|
+
var f = e.runAsync.bind(e);
|
|
1092
|
+
return c.current = Dt(function(u) {
|
|
1022
1093
|
u();
|
|
1023
|
-
},
|
|
1024
|
-
for (var u = [],
|
|
1025
|
-
u[
|
|
1026
|
-
return new Promise(function(
|
|
1027
|
-
var
|
|
1028
|
-
(
|
|
1029
|
-
|
|
1094
|
+
}, r, s), e.runAsync = function() {
|
|
1095
|
+
for (var u = [], d = 0; d < arguments.length; d++)
|
|
1096
|
+
u[d] = arguments[d];
|
|
1097
|
+
return new Promise(function(l, p) {
|
|
1098
|
+
var m;
|
|
1099
|
+
(m = c.current) === null || m === void 0 || m.call(c, function() {
|
|
1100
|
+
f.apply(void 0, _([], S(u), !1)).then(l).catch(p);
|
|
1030
1101
|
});
|
|
1031
1102
|
});
|
|
1032
1103
|
}, function() {
|
|
1033
1104
|
var u;
|
|
1034
|
-
(u = c.current) === null || u === void 0 || u.cancel(),
|
|
1105
|
+
(u = c.current) === null || u === void 0 || u.cancel(), e.runAsync = f;
|
|
1035
1106
|
};
|
|
1036
1107
|
}
|
|
1037
|
-
}, [
|
|
1108
|
+
}, [r, s]), r ? {
|
|
1038
1109
|
onCancel: function() {
|
|
1039
|
-
var
|
|
1040
|
-
(
|
|
1110
|
+
var f;
|
|
1111
|
+
(f = c.current) === null || f === void 0 || f.cancel();
|
|
1041
1112
|
}
|
|
1042
1113
|
} : {};
|
|
1043
|
-
},
|
|
1044
|
-
var
|
|
1045
|
-
if (!
|
|
1114
|
+
}, Jt = function(e, t) {
|
|
1115
|
+
var r = t.loadingDelay, a = t.ready, i = j();
|
|
1116
|
+
if (!r)
|
|
1046
1117
|
return {};
|
|
1047
1118
|
var o = function() {
|
|
1048
1119
|
i.current && clearTimeout(i.current);
|
|
@@ -1050,10 +1121,10 @@ var gt = function(r, e) {
|
|
|
1050
1121
|
return {
|
|
1051
1122
|
onBefore: function() {
|
|
1052
1123
|
return o(), a !== !1 && (i.current = setTimeout(function() {
|
|
1053
|
-
|
|
1124
|
+
e.setState({
|
|
1054
1125
|
loading: !0
|
|
1055
1126
|
});
|
|
1056
|
-
},
|
|
1127
|
+
}, r)), {
|
|
1057
1128
|
loading: !1
|
|
1058
1129
|
};
|
|
1059
1130
|
},
|
|
@@ -1064,37 +1135,37 @@ var gt = function(r, e) {
|
|
|
1064
1135
|
o();
|
|
1065
1136
|
}
|
|
1066
1137
|
};
|
|
1067
|
-
},
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1138
|
+
}, ce = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1139
|
+
function ze() {
|
|
1140
|
+
return ce ? document.visibilityState !== "hidden" : !0;
|
|
1070
1141
|
}
|
|
1071
|
-
var
|
|
1072
|
-
function
|
|
1073
|
-
return
|
|
1074
|
-
var
|
|
1075
|
-
|
|
1142
|
+
var oe = [];
|
|
1143
|
+
function Xt(e) {
|
|
1144
|
+
return oe.push(e), function() {
|
|
1145
|
+
var r = oe.indexOf(e);
|
|
1146
|
+
oe.splice(r, 1);
|
|
1076
1147
|
};
|
|
1077
1148
|
}
|
|
1078
|
-
if (
|
|
1079
|
-
var
|
|
1080
|
-
if (
|
|
1081
|
-
for (var
|
|
1082
|
-
var
|
|
1083
|
-
|
|
1149
|
+
if (ce) {
|
|
1150
|
+
var Zt = function() {
|
|
1151
|
+
if (ze())
|
|
1152
|
+
for (var e = 0; e < oe.length; e++) {
|
|
1153
|
+
var t = oe[e];
|
|
1154
|
+
t();
|
|
1084
1155
|
}
|
|
1085
1156
|
};
|
|
1086
|
-
window.addEventListener("visibilitychange",
|
|
1157
|
+
window.addEventListener("visibilitychange", Zt, !1);
|
|
1087
1158
|
}
|
|
1088
|
-
var
|
|
1089
|
-
var
|
|
1090
|
-
var
|
|
1091
|
-
|
|
1159
|
+
var Qt = function(e, t) {
|
|
1160
|
+
var r = t.pollingInterval, a = t.pollingWhenHidden, i = a === void 0 ? !0 : a, o = t.pollingErrorRetryCount, c = o === void 0 ? -1 : o, s = j(), f = j(), u = j(0), d = function() {
|
|
1161
|
+
var l;
|
|
1162
|
+
s.current && clearTimeout(s.current), (l = f.current) === null || l === void 0 || l.call(f);
|
|
1092
1163
|
};
|
|
1093
|
-
return
|
|
1094
|
-
|
|
1095
|
-
}, [
|
|
1164
|
+
return Be(function() {
|
|
1165
|
+
r || d();
|
|
1166
|
+
}, [r]), r ? {
|
|
1096
1167
|
onBefore: function() {
|
|
1097
|
-
|
|
1168
|
+
d();
|
|
1098
1169
|
},
|
|
1099
1170
|
onError: function() {
|
|
1100
1171
|
u.current += 1;
|
|
@@ -1104,67 +1175,67 @@ var Et = function(r, e) {
|
|
|
1104
1175
|
},
|
|
1105
1176
|
onFinally: function() {
|
|
1106
1177
|
c === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
|
|
1107
|
-
c !== -1 && u.current <= c ?
|
|
1108
|
-
!i && !
|
|
1109
|
-
|
|
1110
|
-
}) :
|
|
1111
|
-
},
|
|
1178
|
+
c !== -1 && u.current <= c ? s.current = setTimeout(function() {
|
|
1179
|
+
!i && !ze() ? f.current = Xt(function() {
|
|
1180
|
+
e.refresh();
|
|
1181
|
+
}) : e.refresh();
|
|
1182
|
+
}, r) : u.current = 0;
|
|
1112
1183
|
},
|
|
1113
1184
|
onCancel: function() {
|
|
1114
|
-
|
|
1185
|
+
d();
|
|
1115
1186
|
}
|
|
1116
1187
|
} : {};
|
|
1117
1188
|
};
|
|
1118
|
-
function
|
|
1119
|
-
var
|
|
1189
|
+
function Kt(e, t) {
|
|
1190
|
+
var r = !1;
|
|
1120
1191
|
return function() {
|
|
1121
1192
|
for (var a = [], i = 0; i < arguments.length; i++)
|
|
1122
1193
|
a[i] = arguments[i];
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
},
|
|
1194
|
+
r || (r = !0, e.apply(void 0, _([], S(a), !1)), setTimeout(function() {
|
|
1195
|
+
r = !1;
|
|
1196
|
+
}, t));
|
|
1126
1197
|
};
|
|
1127
1198
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return
|
|
1199
|
+
function en() {
|
|
1200
|
+
return ce && typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
1130
1201
|
}
|
|
1131
1202
|
var ie = [];
|
|
1132
|
-
function
|
|
1133
|
-
return ie.push(
|
|
1134
|
-
var
|
|
1135
|
-
|
|
1203
|
+
function rn(e) {
|
|
1204
|
+
return ie.push(e), function() {
|
|
1205
|
+
var r = ie.indexOf(e);
|
|
1206
|
+
r > -1 && ie.splice(r, 1);
|
|
1136
1207
|
};
|
|
1137
1208
|
}
|
|
1138
|
-
if (
|
|
1139
|
-
var
|
|
1140
|
-
if (!(!
|
|
1141
|
-
for (var
|
|
1142
|
-
var
|
|
1143
|
-
|
|
1209
|
+
if (ce) {
|
|
1210
|
+
var _r = function() {
|
|
1211
|
+
if (!(!ze() || !en()))
|
|
1212
|
+
for (var e = 0; e < ie.length; e++) {
|
|
1213
|
+
var t = ie[e];
|
|
1214
|
+
t();
|
|
1144
1215
|
}
|
|
1145
1216
|
};
|
|
1146
|
-
window.addEventListener("visibilitychange",
|
|
1217
|
+
window.addEventListener("visibilitychange", _r, !1), window.addEventListener("focus", _r, !1);
|
|
1147
1218
|
}
|
|
1148
|
-
var
|
|
1149
|
-
var
|
|
1150
|
-
var
|
|
1151
|
-
(
|
|
1219
|
+
var tn = function(e, t) {
|
|
1220
|
+
var r = t.refreshOnWindowFocus, a = t.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
|
|
1221
|
+
var s;
|
|
1222
|
+
(s = o.current) === null || s === void 0 || s.call(o);
|
|
1152
1223
|
};
|
|
1153
|
-
return
|
|
1154
|
-
if (
|
|
1155
|
-
var
|
|
1156
|
-
o.current =
|
|
1157
|
-
|
|
1224
|
+
return J(function() {
|
|
1225
|
+
if (r) {
|
|
1226
|
+
var s = Kt(e.refresh.bind(e), i);
|
|
1227
|
+
o.current = rn(function() {
|
|
1228
|
+
s();
|
|
1158
1229
|
});
|
|
1159
1230
|
}
|
|
1160
1231
|
return function() {
|
|
1161
1232
|
c();
|
|
1162
1233
|
};
|
|
1163
|
-
}, [
|
|
1234
|
+
}, [r, i]), ye(function() {
|
|
1164
1235
|
c();
|
|
1165
1236
|
}), {};
|
|
1166
|
-
},
|
|
1167
|
-
var
|
|
1237
|
+
}, nn = function(e, t) {
|
|
1238
|
+
var r = t.retryInterval, a = t.retryCount, i = j(), o = j(0), c = j(!1);
|
|
1168
1239
|
return a ? {
|
|
1169
1240
|
onBefore: function() {
|
|
1170
1241
|
c.current || (o.current = 0), c.current = !1, i.current && clearTimeout(i.current);
|
|
@@ -1174,10 +1245,10 @@ var _t = function(r, e) {
|
|
|
1174
1245
|
},
|
|
1175
1246
|
onError: function() {
|
|
1176
1247
|
if (o.current += 1, a === -1 || o.current <= a) {
|
|
1177
|
-
var
|
|
1248
|
+
var s = r ?? Math.min(1e3 * Math.pow(2, o.current), 3e4);
|
|
1178
1249
|
i.current = setTimeout(function() {
|
|
1179
|
-
c.current = !0,
|
|
1180
|
-
},
|
|
1250
|
+
c.current = !0, e.refresh();
|
|
1251
|
+
}, s);
|
|
1181
1252
|
} else
|
|
1182
1253
|
o.current = 0;
|
|
1183
1254
|
},
|
|
@@ -1185,118 +1256,118 @@ var _t = function(r, e) {
|
|
|
1185
1256
|
o.current = 0, i.current && clearTimeout(i.current);
|
|
1186
1257
|
}
|
|
1187
1258
|
} : {};
|
|
1188
|
-
},
|
|
1189
|
-
function
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1192
|
-
var
|
|
1259
|
+
}, Ie, Rr;
|
|
1260
|
+
function an() {
|
|
1261
|
+
if (Rr) return Ie;
|
|
1262
|
+
Rr = 1;
|
|
1263
|
+
var e = Fr(), t = Ue(), r = "Expected a function";
|
|
1193
1264
|
function a(i, o, c) {
|
|
1194
|
-
var
|
|
1265
|
+
var s = !0, f = !0;
|
|
1195
1266
|
if (typeof i != "function")
|
|
1196
|
-
throw new TypeError(
|
|
1197
|
-
return
|
|
1198
|
-
leading:
|
|
1267
|
+
throw new TypeError(r);
|
|
1268
|
+
return t(c) && (s = "leading" in c ? !!c.leading : s, f = "trailing" in c ? !!c.trailing : f), e(i, o, {
|
|
1269
|
+
leading: s,
|
|
1199
1270
|
maxWait: o,
|
|
1200
|
-
trailing:
|
|
1271
|
+
trailing: f
|
|
1201
1272
|
});
|
|
1202
1273
|
}
|
|
1203
|
-
return
|
|
1274
|
+
return Ie = a, Ie;
|
|
1204
1275
|
}
|
|
1205
|
-
var
|
|
1206
|
-
const
|
|
1207
|
-
var
|
|
1208
|
-
var
|
|
1209
|
-
return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i),
|
|
1210
|
-
if (
|
|
1211
|
-
var
|
|
1212
|
-
return o.current =
|
|
1213
|
-
|
|
1214
|
-
},
|
|
1215
|
-
for (var
|
|
1216
|
-
|
|
1217
|
-
return new Promise(function(
|
|
1218
|
-
var
|
|
1219
|
-
(
|
|
1220
|
-
|
|
1276
|
+
var on = an();
|
|
1277
|
+
const un = /* @__PURE__ */ Ye(on);
|
|
1278
|
+
var cn = function(e, t) {
|
|
1279
|
+
var r = t.throttleWait, a = t.throttleLeading, i = t.throttleTrailing, o = j(), c = {};
|
|
1280
|
+
return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), J(function() {
|
|
1281
|
+
if (r) {
|
|
1282
|
+
var s = e.runAsync.bind(e);
|
|
1283
|
+
return o.current = un(function(f) {
|
|
1284
|
+
f();
|
|
1285
|
+
}, r, c), e.runAsync = function() {
|
|
1286
|
+
for (var f = [], u = 0; u < arguments.length; u++)
|
|
1287
|
+
f[u] = arguments[u];
|
|
1288
|
+
return new Promise(function(d, l) {
|
|
1289
|
+
var p;
|
|
1290
|
+
(p = o.current) === null || p === void 0 || p.call(o, function() {
|
|
1291
|
+
s.apply(void 0, _([], S(f), !1)).then(d).catch(l);
|
|
1221
1292
|
});
|
|
1222
1293
|
});
|
|
1223
1294
|
}, function() {
|
|
1224
|
-
var
|
|
1225
|
-
|
|
1295
|
+
var f;
|
|
1296
|
+
e.runAsync = s, (f = o.current) === null || f === void 0 || f.cancel();
|
|
1226
1297
|
};
|
|
1227
1298
|
}
|
|
1228
|
-
}, [
|
|
1299
|
+
}, [r, a, i]), r ? {
|
|
1229
1300
|
onCancel: function() {
|
|
1230
|
-
var
|
|
1231
|
-
(
|
|
1301
|
+
var s;
|
|
1302
|
+
(s = o.current) === null || s === void 0 || s.cancel();
|
|
1232
1303
|
}
|
|
1233
1304
|
} : {};
|
|
1234
|
-
},
|
|
1235
|
-
|
|
1236
|
-
|
|
1305
|
+
}, sn = function(e) {
|
|
1306
|
+
pe && (ue(e) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e, '".'))), J(function() {
|
|
1307
|
+
e == null || e();
|
|
1237
1308
|
}, []);
|
|
1238
|
-
},
|
|
1239
|
-
var
|
|
1240
|
-
return
|
|
1241
|
-
return
|
|
1309
|
+
}, fn = function() {
|
|
1310
|
+
var e = S(Ar({}), 2), t = e[1];
|
|
1311
|
+
return Ur(function() {
|
|
1312
|
+
return t({});
|
|
1242
1313
|
}, []);
|
|
1243
|
-
},
|
|
1314
|
+
}, ln = (
|
|
1244
1315
|
/** @class */
|
|
1245
1316
|
function() {
|
|
1246
|
-
function
|
|
1247
|
-
i === void 0 && (i = {}), this.serviceRef =
|
|
1317
|
+
function e(t, r, a, i) {
|
|
1318
|
+
i === void 0 && (i = {}), this.serviceRef = t, this.options = r, this.subscribe = a, this.initState = i, this.count = 0, this.state = {
|
|
1248
1319
|
loading: !1,
|
|
1249
1320
|
params: void 0,
|
|
1250
1321
|
data: void 0,
|
|
1251
1322
|
error: void 0
|
|
1252
|
-
}, this.state =
|
|
1253
|
-
loading: !
|
|
1323
|
+
}, this.state = N(N(N({}, this.state), {
|
|
1324
|
+
loading: !r.manual
|
|
1254
1325
|
}), i);
|
|
1255
1326
|
}
|
|
1256
|
-
return
|
|
1257
|
-
|
|
1258
|
-
},
|
|
1259
|
-
for (var
|
|
1260
|
-
|
|
1327
|
+
return e.prototype.setState = function(t) {
|
|
1328
|
+
t === void 0 && (t = {}), this.state = N(N({}, this.state), t), this.subscribe();
|
|
1329
|
+
}, e.prototype.runPluginHandler = function(t) {
|
|
1330
|
+
for (var r = [], a = 1; a < arguments.length; a++)
|
|
1331
|
+
r[a - 1] = arguments[a];
|
|
1261
1332
|
var i = this.pluginImpls.map(function(o) {
|
|
1262
1333
|
var c;
|
|
1263
|
-
return (c = o[
|
|
1334
|
+
return (c = o[t]) === null || c === void 0 ? void 0 : c.call.apply(c, _([o], S(r), !1));
|
|
1264
1335
|
}).filter(Boolean);
|
|
1265
|
-
return Object.assign.apply(Object,
|
|
1266
|
-
},
|
|
1267
|
-
for (var
|
|
1268
|
-
|
|
1269
|
-
return
|
|
1270
|
-
var a, i, o, c,
|
|
1271
|
-
return
|
|
1336
|
+
return Object.assign.apply(Object, _([{}], S(i), !1));
|
|
1337
|
+
}, e.prototype.runAsync = function() {
|
|
1338
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1339
|
+
t[r] = arguments[r];
|
|
1340
|
+
return xt(this, void 0, void 0, function() {
|
|
1341
|
+
var a, i, o, c, s, f, u, d, l, p, m, b, E, x, M, k, W, q, Y, B, $;
|
|
1342
|
+
return Pt(this, function(P) {
|
|
1272
1343
|
switch (P.label) {
|
|
1273
1344
|
case 0:
|
|
1274
|
-
if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore",
|
|
1345
|
+
if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", t), o = i.stopNow, c = o === void 0 ? !1 : o, s = i.returnNow, f = s === void 0 ? !1 : s, u = qr(i, ["stopNow", "returnNow"]), c)
|
|
1275
1346
|
return [2, new Promise(function() {
|
|
1276
1347
|
})];
|
|
1277
|
-
if (this.setState(
|
|
1348
|
+
if (this.setState(N({
|
|
1278
1349
|
loading: !0,
|
|
1279
|
-
params:
|
|
1280
|
-
}, u)),
|
|
1350
|
+
params: t
|
|
1351
|
+
}, u)), f)
|
|
1281
1352
|
return [2, Promise.resolve(u.data)];
|
|
1282
|
-
(E = (b = this.options).onBefore) === null || E === void 0 || E.call(b,
|
|
1353
|
+
(E = (b = this.options).onBefore) === null || E === void 0 || E.call(b, t), P.label = 1;
|
|
1283
1354
|
case 1:
|
|
1284
|
-
return P.trys.push([1, 3, , 4]),
|
|
1355
|
+
return P.trys.push([1, 3, , 4]), d = this.runPluginHandler("onRequest", this.serviceRef.current, t).servicePromise, d || (d = (m = this.serviceRef).current.apply(m, _([], S(t), !1))), [4, d];
|
|
1285
1356
|
case 2:
|
|
1286
|
-
return
|
|
1357
|
+
return l = P.sent(), a !== this.count ? [2, new Promise(function() {
|
|
1287
1358
|
})] : (this.setState({
|
|
1288
|
-
data:
|
|
1359
|
+
data: l,
|
|
1289
1360
|
error: void 0,
|
|
1290
1361
|
loading: !1
|
|
1291
|
-
}), (
|
|
1362
|
+
}), (M = (x = this.options).onSuccess) === null || M === void 0 || M.call(x, l, t), this.runPluginHandler("onSuccess", l, t), (W = (k = this.options).onFinally) === null || W === void 0 || W.call(k, t, l, void 0), a === this.count && this.runPluginHandler("onFinally", t, l, void 0), [2, l]);
|
|
1292
1363
|
case 3:
|
|
1293
|
-
if (
|
|
1364
|
+
if (p = P.sent(), a !== this.count)
|
|
1294
1365
|
return [2, new Promise(function() {
|
|
1295
1366
|
})];
|
|
1296
1367
|
throw this.setState({
|
|
1297
|
-
error:
|
|
1368
|
+
error: p,
|
|
1298
1369
|
loading: !1
|
|
1299
|
-
}), (
|
|
1370
|
+
}), (Y = (q = this.options).onError) === null || Y === void 0 || Y.call(q, p, t), this.runPluginHandler("onError", p, t), ($ = (B = this.options).onFinally) === null || $ === void 0 || $.call(B, t, void 0, p), a === this.count && this.runPluginHandler("onFinally", t, void 0, p), p;
|
|
1300
1371
|
case 4:
|
|
1301
1372
|
return [
|
|
1302
1373
|
2
|
|
@@ -1305,87 +1376,241 @@ var Pt = function(r, e) {
|
|
|
1305
1376
|
}
|
|
1306
1377
|
});
|
|
1307
1378
|
});
|
|
1308
|
-
},
|
|
1309
|
-
for (var
|
|
1310
|
-
|
|
1311
|
-
this.runAsync.apply(this,
|
|
1312
|
-
|
|
1379
|
+
}, e.prototype.run = function() {
|
|
1380
|
+
for (var t = this, r = [], a = 0; a < arguments.length; a++)
|
|
1381
|
+
r[a] = arguments[a];
|
|
1382
|
+
this.runAsync.apply(this, _([], S(r), !1)).catch(function(i) {
|
|
1383
|
+
t.options.onError || console.error(i);
|
|
1313
1384
|
});
|
|
1314
|
-
},
|
|
1385
|
+
}, e.prototype.cancel = function() {
|
|
1315
1386
|
this.count += 1, this.setState({
|
|
1316
1387
|
loading: !1
|
|
1317
1388
|
}), this.runPluginHandler("onCancel");
|
|
1318
|
-
},
|
|
1319
|
-
this.run.apply(this,
|
|
1320
|
-
},
|
|
1321
|
-
return this.runAsync.apply(this,
|
|
1322
|
-
},
|
|
1323
|
-
var
|
|
1324
|
-
this.runPluginHandler("onMutate",
|
|
1325
|
-
data:
|
|
1389
|
+
}, e.prototype.refresh = function() {
|
|
1390
|
+
this.run.apply(this, _([], S(this.state.params || []), !1));
|
|
1391
|
+
}, e.prototype.refreshAsync = function() {
|
|
1392
|
+
return this.runAsync.apply(this, _([], S(this.state.params || []), !1));
|
|
1393
|
+
}, e.prototype.mutate = function(t) {
|
|
1394
|
+
var r = ue(t) ? t(this.state.data) : t;
|
|
1395
|
+
this.runPluginHandler("onMutate", r), this.setState({
|
|
1396
|
+
data: r
|
|
1326
1397
|
});
|
|
1327
|
-
},
|
|
1398
|
+
}, e;
|
|
1328
1399
|
}()
|
|
1329
1400
|
);
|
|
1330
|
-
function
|
|
1331
|
-
|
|
1332
|
-
var a =
|
|
1333
|
-
|
|
1334
|
-
var
|
|
1401
|
+
function dn(e, t, r) {
|
|
1402
|
+
t === void 0 && (t = {}), r === void 0 && (r = []);
|
|
1403
|
+
var a = t.manual, i = a === void 0 ? !1 : a, o = t.ready, c = o === void 0 ? !0 : o, s = qr(t, ["manual", "ready"]);
|
|
1404
|
+
pe && t.defaultParams && !Array.isArray(t.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));
|
|
1405
|
+
var f = N({
|
|
1335
1406
|
manual: i,
|
|
1336
1407
|
ready: c
|
|
1337
|
-
},
|
|
1338
|
-
var
|
|
1408
|
+
}, s), u = He(e), d = fn(), l = Wr(function() {
|
|
1409
|
+
var p = r.map(function(m) {
|
|
1339
1410
|
var b;
|
|
1340
|
-
return (b =
|
|
1411
|
+
return (b = m == null ? void 0 : m.onInit) === null || b === void 0 ? void 0 : b.call(m, f);
|
|
1341
1412
|
}).filter(Boolean);
|
|
1342
|
-
return new
|
|
1413
|
+
return new ln(u, f, d, Object.assign.apply(Object, _([{}], S(p), !1)));
|
|
1343
1414
|
}, []);
|
|
1344
|
-
return
|
|
1345
|
-
return
|
|
1346
|
-
}),
|
|
1415
|
+
return l.options = f, l.pluginImpls = r.map(function(p) {
|
|
1416
|
+
return p(l, f);
|
|
1417
|
+
}), sn(function() {
|
|
1347
1418
|
if (!i && c) {
|
|
1348
|
-
var
|
|
1349
|
-
|
|
1419
|
+
var p = l.state.params || t.defaultParams || [];
|
|
1420
|
+
l.run.apply(l, _([], S(p), !1));
|
|
1350
1421
|
}
|
|
1351
|
-
}),
|
|
1352
|
-
|
|
1422
|
+
}), ye(function() {
|
|
1423
|
+
l.cancel();
|
|
1353
1424
|
}), {
|
|
1354
|
-
loading:
|
|
1355
|
-
data:
|
|
1356
|
-
error:
|
|
1357
|
-
params:
|
|
1358
|
-
cancel:
|
|
1359
|
-
refresh:
|
|
1360
|
-
refreshAsync:
|
|
1361
|
-
run:
|
|
1362
|
-
runAsync:
|
|
1363
|
-
mutate:
|
|
1425
|
+
loading: l.state.loading,
|
|
1426
|
+
data: l.state.data,
|
|
1427
|
+
error: l.state.error,
|
|
1428
|
+
params: l.state.params || [],
|
|
1429
|
+
cancel: Z(l.cancel.bind(l)),
|
|
1430
|
+
refresh: Z(l.refresh.bind(l)),
|
|
1431
|
+
refreshAsync: Z(l.refreshAsync.bind(l)),
|
|
1432
|
+
run: Z(l.run.bind(l)),
|
|
1433
|
+
runAsync: Z(l.runAsync.bind(l)),
|
|
1434
|
+
mutate: Z(l.mutate.bind(l))
|
|
1364
1435
|
};
|
|
1365
1436
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1437
|
+
function vn(e, t, r) {
|
|
1438
|
+
return dn(e, t, _(_([], S(r || []), !1), [Vt, Jt, Qt, tn, cn, Mr, Mt, nn], !1));
|
|
1439
|
+
}
|
|
1440
|
+
function gn(e, t) {
|
|
1441
|
+
var r = S(Ar(e), 2), a = r[0], i = r[1], o = he(function() {
|
|
1442
|
+
var c = !0, s = function() {
|
|
1443
|
+
return i(function(l) {
|
|
1444
|
+
return l === e ? c : e;
|
|
1445
|
+
});
|
|
1446
|
+
}, f = function(l) {
|
|
1447
|
+
return i(l);
|
|
1448
|
+
}, u = function() {
|
|
1449
|
+
return i(e);
|
|
1450
|
+
}, d = function() {
|
|
1451
|
+
return i(c);
|
|
1452
|
+
};
|
|
1453
|
+
return {
|
|
1454
|
+
toggle: s,
|
|
1455
|
+
set: f,
|
|
1456
|
+
setLeft: u,
|
|
1457
|
+
setRight: d
|
|
1458
|
+
};
|
|
1459
|
+
}, []);
|
|
1460
|
+
return [a, o];
|
|
1461
|
+
}
|
|
1462
|
+
function bn(e) {
|
|
1463
|
+
var t = S(gn(!1), 2), r = t[0], a = t[1], i = a.toggle, o = a.set, c = he(function() {
|
|
1464
|
+
var s = function() {
|
|
1465
|
+
return o(!0);
|
|
1466
|
+
}, f = function() {
|
|
1467
|
+
return o(!1);
|
|
1468
|
+
};
|
|
1469
|
+
return {
|
|
1470
|
+
toggle: i,
|
|
1471
|
+
set: function(u) {
|
|
1472
|
+
return o(!!u);
|
|
1473
|
+
},
|
|
1474
|
+
setTrue: s,
|
|
1475
|
+
setFalse: f
|
|
1476
|
+
};
|
|
1477
|
+
}, []);
|
|
1478
|
+
return [r, c];
|
|
1479
|
+
}
|
|
1480
|
+
function Ir(e, t) {
|
|
1481
|
+
if (ce) {
|
|
1482
|
+
if (!e)
|
|
1483
|
+
return t;
|
|
1484
|
+
var r;
|
|
1485
|
+
return ue(e) ? r = e() : "current" in e ? r = e.current : r = e, r;
|
|
1486
|
+
}
|
|
1368
1487
|
}
|
|
1369
|
-
function
|
|
1370
|
-
|
|
1371
|
-
|
|
1488
|
+
var mn = function(e) {
|
|
1489
|
+
var t = function(r, a, i) {
|
|
1490
|
+
var o = j(!1), c = j([]), s = j([]), f = j();
|
|
1491
|
+
e(function() {
|
|
1492
|
+
var u, d = Array.isArray(i) ? i : [i], l = d.map(function(p) {
|
|
1493
|
+
return Ir(p);
|
|
1494
|
+
});
|
|
1495
|
+
if (!o.current) {
|
|
1496
|
+
o.current = !0, c.current = l, s.current = a, f.current = r();
|
|
1497
|
+
return;
|
|
1498
|
+
}
|
|
1499
|
+
(l.length !== c.current.length || !Ge(c.current, l) || !Ge(s.current, a)) && ((u = f.current) === null || u === void 0 || u.call(f), c.current = l, s.current = a, f.current = r());
|
|
1500
|
+
}), ye(function() {
|
|
1501
|
+
var u;
|
|
1502
|
+
(u = f.current) === null || u === void 0 || u.call(f), o.current = !1;
|
|
1503
|
+
});
|
|
1504
|
+
};
|
|
1505
|
+
return t;
|
|
1506
|
+
}, hn = mn(J);
|
|
1507
|
+
function xr(e, t, r) {
|
|
1508
|
+
r === void 0 && (r = {});
|
|
1509
|
+
var a = r.enable, i = a === void 0 ? !0 : a, o = He(t);
|
|
1510
|
+
hn(function() {
|
|
1511
|
+
if (i) {
|
|
1512
|
+
var c = Ir(r.target, window);
|
|
1513
|
+
if (c != null && c.addEventListener) {
|
|
1514
|
+
var s = function(u) {
|
|
1515
|
+
return o.current(u);
|
|
1516
|
+
}, f = Array.isArray(e) ? e : [e];
|
|
1517
|
+
return f.forEach(function(u) {
|
|
1518
|
+
c.addEventListener(u, s, {
|
|
1519
|
+
capture: r.capture,
|
|
1520
|
+
once: r.once,
|
|
1521
|
+
passive: r.passive
|
|
1522
|
+
});
|
|
1523
|
+
}), function() {
|
|
1524
|
+
f.forEach(function(u) {
|
|
1525
|
+
c.removeEventListener(u, s, {
|
|
1526
|
+
capture: r.capture
|
|
1527
|
+
});
|
|
1528
|
+
});
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}, [e, r.capture, r.once, r.passive, i], r.target);
|
|
1533
|
+
}
|
|
1534
|
+
const pn = function(e, t) {
|
|
1535
|
+
var r = {}, a = r.onEnter, i = r.onLeave, o = r.onChange, c = S(bn(), 2), s = c[0], f = c[1], u = f.setTrue, d = f.setFalse;
|
|
1536
|
+
return xr("mouseenter", function() {
|
|
1537
|
+
a == null || a(), u(), o == null || o(!0);
|
|
1538
|
+
}, {
|
|
1539
|
+
target: e
|
|
1540
|
+
}), xr("mouseleave", function() {
|
|
1541
|
+
i == null || i(), d(), o == null || o(!1);
|
|
1542
|
+
}, {
|
|
1543
|
+
target: e
|
|
1544
|
+
}), s;
|
|
1545
|
+
}, yn = {}, En = (e, t) => {
|
|
1546
|
+
const r = j(null), {
|
|
1547
|
+
icon: a,
|
|
1548
|
+
tooltipDisabled: i = !1,
|
|
1549
|
+
onClick: o = Tt,
|
|
1550
|
+
disabled: c,
|
|
1551
|
+
size: s = "middle",
|
|
1552
|
+
style: f = {},
|
|
1553
|
+
className: u,
|
|
1554
|
+
loading: d = !1,
|
|
1555
|
+
...l
|
|
1556
|
+
} = e, p = pn(r), m = () => jt(a) && a.includes("icon-") ? /* @__PURE__ */ C.jsx(it, { type: a }) : a, b = /* @__PURE__ */ C.jsx(
|
|
1557
|
+
Qr,
|
|
1558
|
+
{
|
|
1559
|
+
onClick: o,
|
|
1560
|
+
size: s,
|
|
1561
|
+
disabled: c,
|
|
1562
|
+
style: f,
|
|
1563
|
+
ref: t,
|
|
1564
|
+
loading: d,
|
|
1565
|
+
className: _t([u, yn.btn_icon__warp]),
|
|
1566
|
+
icon: m()
|
|
1567
|
+
}
|
|
1568
|
+
);
|
|
1569
|
+
if (!a)
|
|
1570
|
+
throw new Error("IconButton 组件必须传入 icon 属性");
|
|
1571
|
+
return /* @__PURE__ */ C.jsxs(zr, { children: [
|
|
1572
|
+
i && b,
|
|
1573
|
+
!i && /* @__PURE__ */ C.jsx(
|
|
1574
|
+
Kr,
|
|
1575
|
+
{
|
|
1576
|
+
open: p,
|
|
1577
|
+
trigger: "contextMenu",
|
|
1578
|
+
destroyTooltipOnHide: !0,
|
|
1579
|
+
...l,
|
|
1580
|
+
children: /* @__PURE__ */ C.jsx(
|
|
1581
|
+
"span",
|
|
1582
|
+
{
|
|
1583
|
+
ref: r,
|
|
1584
|
+
style: { display: "inline-block" },
|
|
1585
|
+
className: "icon-button-box",
|
|
1586
|
+
children: b
|
|
1587
|
+
}
|
|
1588
|
+
)
|
|
1589
|
+
}
|
|
1590
|
+
)
|
|
1591
|
+
] });
|
|
1592
|
+
}, _n = Pr.forwardRef(En);
|
|
1593
|
+
function Rn(e, t, r) {
|
|
1594
|
+
const a = vn(e, {
|
|
1595
|
+
...t,
|
|
1372
1596
|
onError(o, c) {
|
|
1373
|
-
var
|
|
1374
|
-
((
|
|
1597
|
+
var s;
|
|
1598
|
+
((t == null ? void 0 : t.errorMessage) ?? !0) && Nr.error(o.message), (s = t == null ? void 0 : t.onError) == null || s.call(t, o, c);
|
|
1375
1599
|
}
|
|
1376
|
-
},
|
|
1600
|
+
}, r), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
|
|
1377
1601
|
return {
|
|
1378
1602
|
...a,
|
|
1379
1603
|
data: i
|
|
1380
1604
|
};
|
|
1381
1605
|
}
|
|
1382
1606
|
export {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1607
|
+
jn as App,
|
|
1608
|
+
Sn as CheckboxValue,
|
|
1609
|
+
_n as IconButton,
|
|
1610
|
+
it as IconFont,
|
|
1611
|
+
On as SwitchValue,
|
|
1612
|
+
Nr as message,
|
|
1613
|
+
at as modal,
|
|
1614
|
+
nt as notification,
|
|
1615
|
+
Rn as useRequest
|
|
1391
1616
|
};
|