react-toolkits 0.6.3 → 0.6.5
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/CHANGELOG.md +13 -0
- package/lib/immer-BLf7GM7E.chunk.js +0 -1
- package/lib/{index-sG30lYpd.chunk.js → index-6hfEAo8m.chunk.js} +3 -4
- package/lib/{index-mGxkr4KP.chunk.js → index-DwxDIdPN.chunk.js} +4 -5
- package/lib/{index-8S2if1HN.chunk.js → index-GbdPmQIm.chunk.js} +10 -11
- package/lib/{index-LFJ8CuhL.chunk.js → index-HtxBCkWB.chunk.js} +2 -3
- package/lib/{index-CYvZ4eXp.chunk.js → index-M6uw3Hhg.chunk.js} +21 -22
- package/lib/{index-gveuSV73.chunk.js → index-eczljdwB.chunk.js} +1 -2
- package/lib/index-jIaB0f6T.chunk.js +4803 -0
- package/lib/{index-2famwFN5.chunk.js → index-oFEpxp61.chunk.js} +1 -2
- package/lib/{index-t9jv_VWg.chunk.js → index-sZjVIAIn.chunk.js} +25 -26
- package/lib/index.d.ts +15 -29
- package/lib/index.js +1 -2
- package/package.json +1 -1
- package/lib/immer-BLf7GM7E.chunk.js.map +0 -1
- package/lib/index-2famwFN5.chunk.js.map +0 -1
- package/lib/index-8S2if1HN.chunk.js.map +0 -1
- package/lib/index-CYvZ4eXp.chunk.js.map +0 -1
- package/lib/index-LFJ8CuhL.chunk.js.map +0 -1
- package/lib/index-dkau8dN4.chunk.js +0 -15924
- package/lib/index-dkau8dN4.chunk.js.map +0 -1
- package/lib/index-gveuSV73.chunk.js.map +0 -1
- package/lib/index-mGxkr4KP.chunk.js.map +0 -1
- package/lib/index-sG30lYpd.chunk.js.map +0 -1
- package/lib/index-t9jv_VWg.chunk.js.map +0 -1
- package/lib/index.js.map +0 -1
|
@@ -0,0 +1,4803 @@
|
|
|
1
|
+
var ei = Object.defineProperty;
|
|
2
|
+
var ti = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var vn = (e, t, r) => (ti(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
+
import * as be from "react";
|
|
5
|
+
import he, { createContext as Mr, useContext as Ur, useEffect as Ee, useState as Se, useRef as ge, useLayoutEffect as ri, useMemo as Mt, useCallback as we, useDebugValue as ni, memo as ai, Suspense as oi, forwardRef as ii, useImperativeHandle as si, lazy as ot } from "react";
|
|
6
|
+
import * as Ut from "antd";
|
|
7
|
+
import { theme as pa, Space as et, Input as yn, Tag as bn, Button as Je, Select as ci, Typography as ui, Form as bt, Spin as kr, Result as Vr, Table as ha, Menu as li, Card as fi, Empty as En, Dropdown as di, Divider as Ai, Tooltip as gi, Modal as pi } from "antd";
|
|
8
|
+
import hi, { flushSync as mi } from "react-dom";
|
|
9
|
+
import { useLocation as vi, Link as ma, useNavigate as yi, Routes as va, Route as Me, Navigate as bi } from "react-router-dom";
|
|
10
|
+
var oA = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
|
+
function ya(e) {
|
|
12
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
13
|
+
}
|
|
14
|
+
var Er = { exports: {} }, ft = {};
|
|
15
|
+
/**
|
|
16
|
+
* @license React
|
|
17
|
+
* react-jsx-runtime.development.js
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
24
|
+
var Sn;
|
|
25
|
+
function Ei() {
|
|
26
|
+
return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
27
|
+
var e = he, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), E = Symbol.iterator, v = "@@iterator";
|
|
28
|
+
function b(i) {
|
|
29
|
+
if (i === null || typeof i != "object")
|
|
30
|
+
return null;
|
|
31
|
+
var h = E && i[E] || i[v];
|
|
32
|
+
return typeof h == "function" ? h : null;
|
|
33
|
+
}
|
|
34
|
+
var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
35
|
+
function p(i) {
|
|
36
|
+
{
|
|
37
|
+
for (var h = arguments.length, S = new Array(h > 1 ? h - 1 : 0), _ = 1; _ < h; _++)
|
|
38
|
+
S[_ - 1] = arguments[_];
|
|
39
|
+
w("error", i, S);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function w(i, h, S) {
|
|
43
|
+
{
|
|
44
|
+
var _ = y.ReactDebugCurrentFrame, k = _.getStackAddendum();
|
|
45
|
+
k !== "" && (h += "%s", S = S.concat([k]));
|
|
46
|
+
var H = S.map(function(M) {
|
|
47
|
+
return String(M);
|
|
48
|
+
});
|
|
49
|
+
H.unshift("Warning: " + h), Function.prototype.apply.call(console[i], console, H);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
var R = !1, x = !1, C = !1, T = !1, O = !1, P;
|
|
53
|
+
P = Symbol.for("react.module.reference");
|
|
54
|
+
function D(i) {
|
|
55
|
+
return !!(typeof i == "string" || typeof i == "function" || i === n || i === o || O || i === a || i === f || i === d || T || i === A || R || x || C || typeof i == "object" && i !== null && (i.$$typeof === g || i.$$typeof === l || i.$$typeof === s || i.$$typeof === c || i.$$typeof === u || // This needs to include all possible module reference object
|
|
56
|
+
// types supported by any Flight configuration anywhere since
|
|
57
|
+
// we don't know which Flight build this will end up being used
|
|
58
|
+
// with.
|
|
59
|
+
i.$$typeof === P || i.getModuleId !== void 0));
|
|
60
|
+
}
|
|
61
|
+
function G(i, h, S) {
|
|
62
|
+
var _ = i.displayName;
|
|
63
|
+
if (_)
|
|
64
|
+
return _;
|
|
65
|
+
var k = h.displayName || h.name || "";
|
|
66
|
+
return k !== "" ? S + "(" + k + ")" : S;
|
|
67
|
+
}
|
|
68
|
+
function I(i) {
|
|
69
|
+
return i.displayName || "Context";
|
|
70
|
+
}
|
|
71
|
+
function N(i) {
|
|
72
|
+
if (i == null)
|
|
73
|
+
return null;
|
|
74
|
+
if (typeof i.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
|
|
75
|
+
return i.displayName || i.name || null;
|
|
76
|
+
if (typeof i == "string")
|
|
77
|
+
return i;
|
|
78
|
+
switch (i) {
|
|
79
|
+
case n:
|
|
80
|
+
return "Fragment";
|
|
81
|
+
case r:
|
|
82
|
+
return "Portal";
|
|
83
|
+
case o:
|
|
84
|
+
return "Profiler";
|
|
85
|
+
case a:
|
|
86
|
+
return "StrictMode";
|
|
87
|
+
case f:
|
|
88
|
+
return "Suspense";
|
|
89
|
+
case d:
|
|
90
|
+
return "SuspenseList";
|
|
91
|
+
}
|
|
92
|
+
if (typeof i == "object")
|
|
93
|
+
switch (i.$$typeof) {
|
|
94
|
+
case c:
|
|
95
|
+
var h = i;
|
|
96
|
+
return I(h) + ".Consumer";
|
|
97
|
+
case s:
|
|
98
|
+
var S = i;
|
|
99
|
+
return I(S._context) + ".Provider";
|
|
100
|
+
case u:
|
|
101
|
+
return G(i, i.render, "ForwardRef");
|
|
102
|
+
case l:
|
|
103
|
+
var _ = i.displayName || null;
|
|
104
|
+
return _ !== null ? _ : N(i.type) || "Memo";
|
|
105
|
+
case g: {
|
|
106
|
+
var k = i, H = k._payload, M = k._init;
|
|
107
|
+
try {
|
|
108
|
+
return N(M(H));
|
|
109
|
+
} catch {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
var j = Object.assign, q = 0, U, Q, te, me, De, K, ie;
|
|
117
|
+
function le() {
|
|
118
|
+
}
|
|
119
|
+
le.__reactDisabledLog = !0;
|
|
120
|
+
function Pe() {
|
|
121
|
+
{
|
|
122
|
+
if (q === 0) {
|
|
123
|
+
U = console.log, Q = console.info, te = console.warn, me = console.error, De = console.group, K = console.groupCollapsed, ie = console.groupEnd;
|
|
124
|
+
var i = {
|
|
125
|
+
configurable: !0,
|
|
126
|
+
enumerable: !0,
|
|
127
|
+
value: le,
|
|
128
|
+
writable: !0
|
|
129
|
+
};
|
|
130
|
+
Object.defineProperties(console, {
|
|
131
|
+
info: i,
|
|
132
|
+
log: i,
|
|
133
|
+
warn: i,
|
|
134
|
+
error: i,
|
|
135
|
+
group: i,
|
|
136
|
+
groupCollapsed: i,
|
|
137
|
+
groupEnd: i
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
q++;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function se() {
|
|
144
|
+
{
|
|
145
|
+
if (q--, q === 0) {
|
|
146
|
+
var i = {
|
|
147
|
+
configurable: !0,
|
|
148
|
+
enumerable: !0,
|
|
149
|
+
writable: !0
|
|
150
|
+
};
|
|
151
|
+
Object.defineProperties(console, {
|
|
152
|
+
log: j({}, i, {
|
|
153
|
+
value: U
|
|
154
|
+
}),
|
|
155
|
+
info: j({}, i, {
|
|
156
|
+
value: Q
|
|
157
|
+
}),
|
|
158
|
+
warn: j({}, i, {
|
|
159
|
+
value: te
|
|
160
|
+
}),
|
|
161
|
+
error: j({}, i, {
|
|
162
|
+
value: me
|
|
163
|
+
}),
|
|
164
|
+
group: j({}, i, {
|
|
165
|
+
value: De
|
|
166
|
+
}),
|
|
167
|
+
groupCollapsed: j({}, i, {
|
|
168
|
+
value: K
|
|
169
|
+
}),
|
|
170
|
+
groupEnd: j({}, i, {
|
|
171
|
+
value: ie
|
|
172
|
+
})
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
q < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
var Fe = y.ReactCurrentDispatcher, Ne;
|
|
179
|
+
function ce(i, h, S) {
|
|
180
|
+
{
|
|
181
|
+
if (Ne === void 0)
|
|
182
|
+
try {
|
|
183
|
+
throw Error();
|
|
184
|
+
} catch (k) {
|
|
185
|
+
var _ = k.stack.trim().match(/\n( *(at )?)/);
|
|
186
|
+
Ne = _ && _[1] || "";
|
|
187
|
+
}
|
|
188
|
+
return `
|
|
189
|
+
` + Ne + i;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
var He = !1, fe;
|
|
193
|
+
{
|
|
194
|
+
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
195
|
+
fe = new Be();
|
|
196
|
+
}
|
|
197
|
+
function V(i, h) {
|
|
198
|
+
if (!i || He)
|
|
199
|
+
return "";
|
|
200
|
+
{
|
|
201
|
+
var S = fe.get(i);
|
|
202
|
+
if (S !== void 0)
|
|
203
|
+
return S;
|
|
204
|
+
}
|
|
205
|
+
var _;
|
|
206
|
+
He = !0;
|
|
207
|
+
var k = Error.prepareStackTrace;
|
|
208
|
+
Error.prepareStackTrace = void 0;
|
|
209
|
+
var H;
|
|
210
|
+
H = Fe.current, Fe.current = null, Pe();
|
|
211
|
+
try {
|
|
212
|
+
if (h) {
|
|
213
|
+
var M = function() {
|
|
214
|
+
throw Error();
|
|
215
|
+
};
|
|
216
|
+
if (Object.defineProperty(M.prototype, "props", {
|
|
217
|
+
set: function() {
|
|
218
|
+
throw Error();
|
|
219
|
+
}
|
|
220
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
221
|
+
try {
|
|
222
|
+
Reflect.construct(M, []);
|
|
223
|
+
} catch (xe) {
|
|
224
|
+
_ = xe;
|
|
225
|
+
}
|
|
226
|
+
Reflect.construct(i, [], M);
|
|
227
|
+
} else {
|
|
228
|
+
try {
|
|
229
|
+
M.call();
|
|
230
|
+
} catch (xe) {
|
|
231
|
+
_ = xe;
|
|
232
|
+
}
|
|
233
|
+
i.call(M.prototype);
|
|
234
|
+
}
|
|
235
|
+
} else {
|
|
236
|
+
try {
|
|
237
|
+
throw Error();
|
|
238
|
+
} catch (xe) {
|
|
239
|
+
_ = xe;
|
|
240
|
+
}
|
|
241
|
+
i();
|
|
242
|
+
}
|
|
243
|
+
} catch (xe) {
|
|
244
|
+
if (xe && _ && typeof xe.stack == "string") {
|
|
245
|
+
for (var B = xe.stack.split(`
|
|
246
|
+
`), ae = _.stack.split(`
|
|
247
|
+
`), $ = B.length - 1, J = ae.length - 1; $ >= 1 && J >= 0 && B[$] !== ae[J]; )
|
|
248
|
+
J--;
|
|
249
|
+
for (; $ >= 1 && J >= 0; $--, J--)
|
|
250
|
+
if (B[$] !== ae[J]) {
|
|
251
|
+
if ($ !== 1 || J !== 1)
|
|
252
|
+
do
|
|
253
|
+
if ($--, J--, J < 0 || B[$] !== ae[J]) {
|
|
254
|
+
var Ae = `
|
|
255
|
+
` + B[$].replace(" at new ", " at ");
|
|
256
|
+
return i.displayName && Ae.includes("<anonymous>") && (Ae = Ae.replace("<anonymous>", i.displayName)), typeof i == "function" && fe.set(i, Ae), Ae;
|
|
257
|
+
}
|
|
258
|
+
while ($ >= 1 && J >= 0);
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
} finally {
|
|
263
|
+
He = !1, Fe.current = H, se(), Error.prepareStackTrace = k;
|
|
264
|
+
}
|
|
265
|
+
var Ze = i ? i.displayName || i.name : "", mn = Ze ? ce(Ze) : "";
|
|
266
|
+
return typeof i == "function" && fe.set(i, mn), mn;
|
|
267
|
+
}
|
|
268
|
+
function W(i, h, S) {
|
|
269
|
+
return V(i, !1);
|
|
270
|
+
}
|
|
271
|
+
function Y(i) {
|
|
272
|
+
var h = i.prototype;
|
|
273
|
+
return !!(h && h.isReactComponent);
|
|
274
|
+
}
|
|
275
|
+
function L(i, h, S) {
|
|
276
|
+
if (i == null)
|
|
277
|
+
return "";
|
|
278
|
+
if (typeof i == "function")
|
|
279
|
+
return V(i, Y(i));
|
|
280
|
+
if (typeof i == "string")
|
|
281
|
+
return ce(i);
|
|
282
|
+
switch (i) {
|
|
283
|
+
case f:
|
|
284
|
+
return ce("Suspense");
|
|
285
|
+
case d:
|
|
286
|
+
return ce("SuspenseList");
|
|
287
|
+
}
|
|
288
|
+
if (typeof i == "object")
|
|
289
|
+
switch (i.$$typeof) {
|
|
290
|
+
case u:
|
|
291
|
+
return W(i.render);
|
|
292
|
+
case l:
|
|
293
|
+
return L(i.type, h, S);
|
|
294
|
+
case g: {
|
|
295
|
+
var _ = i, k = _._payload, H = _._init;
|
|
296
|
+
try {
|
|
297
|
+
return L(H(k), h, S);
|
|
298
|
+
} catch {
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return "";
|
|
303
|
+
}
|
|
304
|
+
var re = Object.prototype.hasOwnProperty, Re = {}, X = y.ReactDebugCurrentFrame;
|
|
305
|
+
function Z(i) {
|
|
306
|
+
if (i) {
|
|
307
|
+
var h = i._owner, S = L(i.type, i._source, h ? h.type : null);
|
|
308
|
+
X.setExtraStackFrame(S);
|
|
309
|
+
} else
|
|
310
|
+
X.setExtraStackFrame(null);
|
|
311
|
+
}
|
|
312
|
+
function ve(i, h, S, _, k) {
|
|
313
|
+
{
|
|
314
|
+
var H = Function.call.bind(re);
|
|
315
|
+
for (var M in i)
|
|
316
|
+
if (H(i, M)) {
|
|
317
|
+
var B = void 0;
|
|
318
|
+
try {
|
|
319
|
+
if (typeof i[M] != "function") {
|
|
320
|
+
var ae = Error((_ || "React class") + ": " + S + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
321
|
+
throw ae.name = "Invariant Violation", ae;
|
|
322
|
+
}
|
|
323
|
+
B = i[M](h, M, _, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
324
|
+
} catch ($) {
|
|
325
|
+
B = $;
|
|
326
|
+
}
|
|
327
|
+
B && !(B instanceof Error) && (Z(k), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", S, M, typeof B), Z(null)), B instanceof Error && !(B.message in Re) && (Re[B.message] = !0, Z(k), p("Failed %s type: %s", S, B.message), Z(null));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
var xt = Array.isArray;
|
|
332
|
+
function Ke(i) {
|
|
333
|
+
return xt(i);
|
|
334
|
+
}
|
|
335
|
+
function Tt(i) {
|
|
336
|
+
{
|
|
337
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, S = h && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
338
|
+
return S;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
function oe(i) {
|
|
342
|
+
try {
|
|
343
|
+
return de(i), !1;
|
|
344
|
+
} catch {
|
|
345
|
+
return !0;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
function de(i) {
|
|
349
|
+
return "" + i;
|
|
350
|
+
}
|
|
351
|
+
function $e(i) {
|
|
352
|
+
if (oe(i))
|
|
353
|
+
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tt(i)), de(i);
|
|
354
|
+
}
|
|
355
|
+
var Qe = y.ReactCurrentOwner, lt = {
|
|
356
|
+
key: !0,
|
|
357
|
+
ref: !0,
|
|
358
|
+
__self: !0,
|
|
359
|
+
__source: !0
|
|
360
|
+
}, un, ln, er;
|
|
361
|
+
er = {};
|
|
362
|
+
function Uo(i) {
|
|
363
|
+
if (re.call(i, "ref")) {
|
|
364
|
+
var h = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
365
|
+
if (h && h.isReactWarning)
|
|
366
|
+
return !1;
|
|
367
|
+
}
|
|
368
|
+
return i.ref !== void 0;
|
|
369
|
+
}
|
|
370
|
+
function ko(i) {
|
|
371
|
+
if (re.call(i, "key")) {
|
|
372
|
+
var h = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
373
|
+
if (h && h.isReactWarning)
|
|
374
|
+
return !1;
|
|
375
|
+
}
|
|
376
|
+
return i.key !== void 0;
|
|
377
|
+
}
|
|
378
|
+
function Vo(i, h) {
|
|
379
|
+
if (typeof i.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
|
|
380
|
+
var S = N(Qe.current.type);
|
|
381
|
+
er[S] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(Qe.current.type), i.ref), er[S] = !0);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
function Go(i, h) {
|
|
385
|
+
{
|
|
386
|
+
var S = function() {
|
|
387
|
+
un || (un = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
388
|
+
};
|
|
389
|
+
S.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
390
|
+
get: S,
|
|
391
|
+
configurable: !0
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
function Wo(i, h) {
|
|
396
|
+
{
|
|
397
|
+
var S = function() {
|
|
398
|
+
ln || (ln = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
|
|
399
|
+
};
|
|
400
|
+
S.isReactWarning = !0, Object.defineProperty(i, "ref", {
|
|
401
|
+
get: S,
|
|
402
|
+
configurable: !0
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
var Ho = function(i, h, S, _, k, H, M) {
|
|
407
|
+
var B = {
|
|
408
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
409
|
+
$$typeof: t,
|
|
410
|
+
// Built-in properties that belong on the element
|
|
411
|
+
type: i,
|
|
412
|
+
key: h,
|
|
413
|
+
ref: S,
|
|
414
|
+
props: M,
|
|
415
|
+
// Record the component responsible for creating this element.
|
|
416
|
+
_owner: H
|
|
417
|
+
};
|
|
418
|
+
return B._store = {}, Object.defineProperty(B._store, "validated", {
|
|
419
|
+
configurable: !1,
|
|
420
|
+
enumerable: !1,
|
|
421
|
+
writable: !0,
|
|
422
|
+
value: !1
|
|
423
|
+
}), Object.defineProperty(B, "_self", {
|
|
424
|
+
configurable: !1,
|
|
425
|
+
enumerable: !1,
|
|
426
|
+
writable: !1,
|
|
427
|
+
value: _
|
|
428
|
+
}), Object.defineProperty(B, "_source", {
|
|
429
|
+
configurable: !1,
|
|
430
|
+
enumerable: !1,
|
|
431
|
+
writable: !1,
|
|
432
|
+
value: k
|
|
433
|
+
}), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
|
|
434
|
+
};
|
|
435
|
+
function Qo(i, h, S, _, k) {
|
|
436
|
+
{
|
|
437
|
+
var H, M = {}, B = null, ae = null;
|
|
438
|
+
S !== void 0 && ($e(S), B = "" + S), ko(h) && ($e(h.key), B = "" + h.key), Uo(h) && (ae = h.ref, Vo(h, k));
|
|
439
|
+
for (H in h)
|
|
440
|
+
re.call(h, H) && !lt.hasOwnProperty(H) && (M[H] = h[H]);
|
|
441
|
+
if (i && i.defaultProps) {
|
|
442
|
+
var $ = i.defaultProps;
|
|
443
|
+
for (H in $)
|
|
444
|
+
M[H] === void 0 && (M[H] = $[H]);
|
|
445
|
+
}
|
|
446
|
+
if (B || ae) {
|
|
447
|
+
var J = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
|
|
448
|
+
B && Go(M, J), ae && Wo(M, J);
|
|
449
|
+
}
|
|
450
|
+
return Ho(i, B, ae, k, _, Qe.current, M);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
var tr = y.ReactCurrentOwner, fn = y.ReactDebugCurrentFrame;
|
|
454
|
+
function Xe(i) {
|
|
455
|
+
if (i) {
|
|
456
|
+
var h = i._owner, S = L(i.type, i._source, h ? h.type : null);
|
|
457
|
+
fn.setExtraStackFrame(S);
|
|
458
|
+
} else
|
|
459
|
+
fn.setExtraStackFrame(null);
|
|
460
|
+
}
|
|
461
|
+
var rr;
|
|
462
|
+
rr = !1;
|
|
463
|
+
function nr(i) {
|
|
464
|
+
return typeof i == "object" && i !== null && i.$$typeof === t;
|
|
465
|
+
}
|
|
466
|
+
function dn() {
|
|
467
|
+
{
|
|
468
|
+
if (tr.current) {
|
|
469
|
+
var i = N(tr.current.type);
|
|
470
|
+
if (i)
|
|
471
|
+
return `
|
|
472
|
+
|
|
473
|
+
Check the render method of \`` + i + "`.";
|
|
474
|
+
}
|
|
475
|
+
return "";
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
function Yo(i) {
|
|
479
|
+
{
|
|
480
|
+
if (i !== void 0) {
|
|
481
|
+
var h = i.fileName.replace(/^.*[\\\/]/, ""), S = i.lineNumber;
|
|
482
|
+
return `
|
|
483
|
+
|
|
484
|
+
Check your code at ` + h + ":" + S + ".";
|
|
485
|
+
}
|
|
486
|
+
return "";
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
var An = {};
|
|
490
|
+
function zo(i) {
|
|
491
|
+
{
|
|
492
|
+
var h = dn();
|
|
493
|
+
if (!h) {
|
|
494
|
+
var S = typeof i == "string" ? i : i.displayName || i.name;
|
|
495
|
+
S && (h = `
|
|
496
|
+
|
|
497
|
+
Check the top-level render call using <` + S + ">.");
|
|
498
|
+
}
|
|
499
|
+
return h;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
function gn(i, h) {
|
|
503
|
+
{
|
|
504
|
+
if (!i._store || i._store.validated || i.key != null)
|
|
505
|
+
return;
|
|
506
|
+
i._store.validated = !0;
|
|
507
|
+
var S = zo(h);
|
|
508
|
+
if (An[S])
|
|
509
|
+
return;
|
|
510
|
+
An[S] = !0;
|
|
511
|
+
var _ = "";
|
|
512
|
+
i && i._owner && i._owner !== tr.current && (_ = " It was passed a child from " + N(i._owner.type) + "."), Xe(i), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, _), Xe(null);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function pn(i, h) {
|
|
516
|
+
{
|
|
517
|
+
if (typeof i != "object")
|
|
518
|
+
return;
|
|
519
|
+
if (Ke(i))
|
|
520
|
+
for (var S = 0; S < i.length; S++) {
|
|
521
|
+
var _ = i[S];
|
|
522
|
+
nr(_) && gn(_, h);
|
|
523
|
+
}
|
|
524
|
+
else if (nr(i))
|
|
525
|
+
i._store && (i._store.validated = !0);
|
|
526
|
+
else if (i) {
|
|
527
|
+
var k = b(i);
|
|
528
|
+
if (typeof k == "function" && k !== i.entries)
|
|
529
|
+
for (var H = k.call(i), M; !(M = H.next()).done; )
|
|
530
|
+
nr(M.value) && gn(M.value, h);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
function qo(i) {
|
|
535
|
+
{
|
|
536
|
+
var h = i.type;
|
|
537
|
+
if (h == null || typeof h == "string")
|
|
538
|
+
return;
|
|
539
|
+
var S;
|
|
540
|
+
if (typeof h == "function")
|
|
541
|
+
S = h.propTypes;
|
|
542
|
+
else if (typeof h == "object" && (h.$$typeof === u || // Note: Memo only checks outer props here.
|
|
543
|
+
// Inner props are checked in the reconciler.
|
|
544
|
+
h.$$typeof === l))
|
|
545
|
+
S = h.propTypes;
|
|
546
|
+
else
|
|
547
|
+
return;
|
|
548
|
+
if (S) {
|
|
549
|
+
var _ = N(h);
|
|
550
|
+
ve(S, i.props, "prop", _, i);
|
|
551
|
+
} else if (h.PropTypes !== void 0 && !rr) {
|
|
552
|
+
rr = !0;
|
|
553
|
+
var k = N(h);
|
|
554
|
+
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
555
|
+
}
|
|
556
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function Ko(i) {
|
|
560
|
+
{
|
|
561
|
+
for (var h = Object.keys(i.props), S = 0; S < h.length; S++) {
|
|
562
|
+
var _ = h[S];
|
|
563
|
+
if (_ !== "children" && _ !== "key") {
|
|
564
|
+
Xe(i), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Xe(null);
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
i.ref !== null && (Xe(i), p("Invalid attribute `ref` supplied to `React.Fragment`."), Xe(null));
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
function hn(i, h, S, _, k, H) {
|
|
572
|
+
{
|
|
573
|
+
var M = D(i);
|
|
574
|
+
if (!M) {
|
|
575
|
+
var B = "";
|
|
576
|
+
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
577
|
+
var ae = Yo(k);
|
|
578
|
+
ae ? B += ae : B += dn();
|
|
579
|
+
var $;
|
|
580
|
+
i === null ? $ = "null" : Ke(i) ? $ = "array" : i !== void 0 && i.$$typeof === t ? ($ = "<" + (N(i.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof i, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, B);
|
|
581
|
+
}
|
|
582
|
+
var J = Qo(i, h, S, k, H);
|
|
583
|
+
if (J == null)
|
|
584
|
+
return J;
|
|
585
|
+
if (M) {
|
|
586
|
+
var Ae = h.children;
|
|
587
|
+
if (Ae !== void 0)
|
|
588
|
+
if (_)
|
|
589
|
+
if (Ke(Ae)) {
|
|
590
|
+
for (var Ze = 0; Ze < Ae.length; Ze++)
|
|
591
|
+
pn(Ae[Ze], i);
|
|
592
|
+
Object.freeze && Object.freeze(Ae);
|
|
593
|
+
} else
|
|
594
|
+
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
595
|
+
else
|
|
596
|
+
pn(Ae, i);
|
|
597
|
+
}
|
|
598
|
+
return i === n ? Ko(J) : qo(J), J;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
function $o(i, h, S) {
|
|
602
|
+
return hn(i, h, S, !0);
|
|
603
|
+
}
|
|
604
|
+
function Xo(i, h, S) {
|
|
605
|
+
return hn(i, h, S, !1);
|
|
606
|
+
}
|
|
607
|
+
var Zo = Xo, Jo = $o;
|
|
608
|
+
ft.Fragment = n, ft.jsx = Zo, ft.jsxs = Jo;
|
|
609
|
+
}()), ft;
|
|
610
|
+
}
|
|
611
|
+
var dt = {};
|
|
612
|
+
/**
|
|
613
|
+
* @license React
|
|
614
|
+
* react-jsx-runtime.production.min.js
|
|
615
|
+
*
|
|
616
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
617
|
+
*
|
|
618
|
+
* This source code is licensed under the MIT license found in the
|
|
619
|
+
* LICENSE file in the root directory of this source tree.
|
|
620
|
+
*/
|
|
621
|
+
var wn;
|
|
622
|
+
function Si() {
|
|
623
|
+
if (wn)
|
|
624
|
+
return dt;
|
|
625
|
+
wn = 1;
|
|
626
|
+
var e = he, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
627
|
+
function s(c, u, f) {
|
|
628
|
+
var d, l = {}, g = null, A = null;
|
|
629
|
+
f !== void 0 && (g = "" + f), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (A = u.ref);
|
|
630
|
+
for (d in u)
|
|
631
|
+
n.call(u, d) && !o.hasOwnProperty(d) && (l[d] = u[d]);
|
|
632
|
+
if (c && c.defaultProps)
|
|
633
|
+
for (d in u = c.defaultProps, u)
|
|
634
|
+
l[d] === void 0 && (l[d] = u[d]);
|
|
635
|
+
return { $$typeof: t, type: c, key: g, ref: A, props: l, _owner: a.current };
|
|
636
|
+
}
|
|
637
|
+
return dt.Fragment = r, dt.jsx = s, dt.jsxs = s, dt;
|
|
638
|
+
}
|
|
639
|
+
process.env.NODE_ENV === "production" ? Er.exports = Si() : Er.exports = Ei();
|
|
640
|
+
var m = Er.exports, wi = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
641
|
+
const Cn = (e) => {
|
|
642
|
+
let t;
|
|
643
|
+
const r = /* @__PURE__ */ new Set(), n = (u, f) => {
|
|
644
|
+
const d = typeof u == "function" ? u(t) : u;
|
|
645
|
+
if (!Object.is(d, t)) {
|
|
646
|
+
const l = t;
|
|
647
|
+
t = f ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), r.forEach((g) => g(t, l));
|
|
648
|
+
}
|
|
649
|
+
}, a = () => t, c = { setState: n, getState: a, subscribe: (u) => (r.add(u), () => r.delete(u)), destroy: () => {
|
|
650
|
+
(wi ? "production" : void 0) !== "production" && console.warn(
|
|
651
|
+
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
652
|
+
), r.clear();
|
|
653
|
+
} };
|
|
654
|
+
return t = e(n, a, c), c;
|
|
655
|
+
}, ba = (e) => e ? Cn(e) : Cn;
|
|
656
|
+
var Sr = { exports: {} }, ar = {}, wr = { exports: {} }, or = {};
|
|
657
|
+
/**
|
|
658
|
+
* @license React
|
|
659
|
+
* use-sync-external-store-shim.development.js
|
|
660
|
+
*
|
|
661
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
662
|
+
*
|
|
663
|
+
* This source code is licensed under the MIT license found in the
|
|
664
|
+
* LICENSE file in the root directory of this source tree.
|
|
665
|
+
*/
|
|
666
|
+
var On;
|
|
667
|
+
function Ci() {
|
|
668
|
+
return On || (On = 1, process.env.NODE_ENV !== "production" && function() {
|
|
669
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
670
|
+
var e = he, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
671
|
+
function r(w) {
|
|
672
|
+
{
|
|
673
|
+
for (var R = arguments.length, x = new Array(R > 1 ? R - 1 : 0), C = 1; C < R; C++)
|
|
674
|
+
x[C - 1] = arguments[C];
|
|
675
|
+
n("error", w, x);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
function n(w, R, x) {
|
|
679
|
+
{
|
|
680
|
+
var C = t.ReactDebugCurrentFrame, T = C.getStackAddendum();
|
|
681
|
+
T !== "" && (R += "%s", x = x.concat([T]));
|
|
682
|
+
var O = x.map(function(P) {
|
|
683
|
+
return String(P);
|
|
684
|
+
});
|
|
685
|
+
O.unshift("Warning: " + R), Function.prototype.apply.call(console[w], console, O);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
function a(w, R) {
|
|
689
|
+
return w === R && (w !== 0 || 1 / w === 1 / R) || w !== w && R !== R;
|
|
690
|
+
}
|
|
691
|
+
var o = typeof Object.is == "function" ? Object.is : a, s = e.useState, c = e.useEffect, u = e.useLayoutEffect, f = e.useDebugValue, d = !1, l = !1;
|
|
692
|
+
function g(w, R, x) {
|
|
693
|
+
d || e.startTransition !== void 0 && (d = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
694
|
+
var C = R();
|
|
695
|
+
if (!l) {
|
|
696
|
+
var T = R();
|
|
697
|
+
o(C, T) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), l = !0);
|
|
698
|
+
}
|
|
699
|
+
var O = s({
|
|
700
|
+
inst: {
|
|
701
|
+
value: C,
|
|
702
|
+
getSnapshot: R
|
|
703
|
+
}
|
|
704
|
+
}), P = O[0].inst, D = O[1];
|
|
705
|
+
return u(function() {
|
|
706
|
+
P.value = C, P.getSnapshot = R, A(P) && D({
|
|
707
|
+
inst: P
|
|
708
|
+
});
|
|
709
|
+
}, [w, C, R]), c(function() {
|
|
710
|
+
A(P) && D({
|
|
711
|
+
inst: P
|
|
712
|
+
});
|
|
713
|
+
var G = function() {
|
|
714
|
+
A(P) && D({
|
|
715
|
+
inst: P
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
return w(G);
|
|
719
|
+
}, [w]), f(C), C;
|
|
720
|
+
}
|
|
721
|
+
function A(w) {
|
|
722
|
+
var R = w.getSnapshot, x = w.value;
|
|
723
|
+
try {
|
|
724
|
+
var C = R();
|
|
725
|
+
return !o(x, C);
|
|
726
|
+
} catch {
|
|
727
|
+
return !0;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
function E(w, R, x) {
|
|
731
|
+
return R();
|
|
732
|
+
}
|
|
733
|
+
var v = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", b = !v, y = b ? E : g, p = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : y;
|
|
734
|
+
or.useSyncExternalStore = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
735
|
+
}()), or;
|
|
736
|
+
}
|
|
737
|
+
var ir = {};
|
|
738
|
+
/**
|
|
739
|
+
* @license React
|
|
740
|
+
* use-sync-external-store-shim.production.min.js
|
|
741
|
+
*
|
|
742
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
743
|
+
*
|
|
744
|
+
* This source code is licensed under the MIT license found in the
|
|
745
|
+
* LICENSE file in the root directory of this source tree.
|
|
746
|
+
*/
|
|
747
|
+
var Rn;
|
|
748
|
+
function Oi() {
|
|
749
|
+
if (Rn)
|
|
750
|
+
return ir;
|
|
751
|
+
Rn = 1;
|
|
752
|
+
var e = he;
|
|
753
|
+
function t(l, g) {
|
|
754
|
+
return l === g && (l !== 0 || 1 / l === 1 / g) || l !== l && g !== g;
|
|
755
|
+
}
|
|
756
|
+
var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, a = e.useEffect, o = e.useLayoutEffect, s = e.useDebugValue;
|
|
757
|
+
function c(l, g) {
|
|
758
|
+
var A = g(), E = n({ inst: { value: A, getSnapshot: g } }), v = E[0].inst, b = E[1];
|
|
759
|
+
return o(function() {
|
|
760
|
+
v.value = A, v.getSnapshot = g, u(v) && b({ inst: v });
|
|
761
|
+
}, [l, A, g]), a(function() {
|
|
762
|
+
return u(v) && b({ inst: v }), l(function() {
|
|
763
|
+
u(v) && b({ inst: v });
|
|
764
|
+
});
|
|
765
|
+
}, [l]), s(A), A;
|
|
766
|
+
}
|
|
767
|
+
function u(l) {
|
|
768
|
+
var g = l.getSnapshot;
|
|
769
|
+
l = l.value;
|
|
770
|
+
try {
|
|
771
|
+
var A = g();
|
|
772
|
+
return !r(l, A);
|
|
773
|
+
} catch {
|
|
774
|
+
return !0;
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
function f(l, g) {
|
|
778
|
+
return g();
|
|
779
|
+
}
|
|
780
|
+
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : c;
|
|
781
|
+
return ir.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, ir;
|
|
782
|
+
}
|
|
783
|
+
process.env.NODE_ENV === "production" ? wr.exports = Oi() : wr.exports = Ci();
|
|
784
|
+
var Vt = wr.exports;
|
|
785
|
+
/**
|
|
786
|
+
* @license React
|
|
787
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
788
|
+
*
|
|
789
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
790
|
+
*
|
|
791
|
+
* This source code is licensed under the MIT license found in the
|
|
792
|
+
* LICENSE file in the root directory of this source tree.
|
|
793
|
+
*/
|
|
794
|
+
var xn;
|
|
795
|
+
function Ri() {
|
|
796
|
+
return xn || (xn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
797
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
798
|
+
var e = he, t = Vt;
|
|
799
|
+
function r(d, l) {
|
|
800
|
+
return d === l && (d !== 0 || 1 / d === 1 / l) || d !== d && l !== l;
|
|
801
|
+
}
|
|
802
|
+
var n = typeof Object.is == "function" ? Object.is : r, a = t.useSyncExternalStore, o = e.useRef, s = e.useEffect, c = e.useMemo, u = e.useDebugValue;
|
|
803
|
+
function f(d, l, g, A, E) {
|
|
804
|
+
var v = o(null), b;
|
|
805
|
+
v.current === null ? (b = {
|
|
806
|
+
hasValue: !1,
|
|
807
|
+
value: null
|
|
808
|
+
}, v.current = b) : b = v.current;
|
|
809
|
+
var y = c(function() {
|
|
810
|
+
var x = !1, C, T, O = function(I) {
|
|
811
|
+
if (!x) {
|
|
812
|
+
x = !0, C = I;
|
|
813
|
+
var N = A(I);
|
|
814
|
+
if (E !== void 0 && b.hasValue) {
|
|
815
|
+
var j = b.value;
|
|
816
|
+
if (E(j, N))
|
|
817
|
+
return T = j, j;
|
|
818
|
+
}
|
|
819
|
+
return T = N, N;
|
|
820
|
+
}
|
|
821
|
+
var q = C, U = T;
|
|
822
|
+
if (n(q, I))
|
|
823
|
+
return U;
|
|
824
|
+
var Q = A(I);
|
|
825
|
+
return E !== void 0 && E(U, Q) ? U : (C = I, T = Q, Q);
|
|
826
|
+
}, P = g === void 0 ? null : g, D = function() {
|
|
827
|
+
return O(l());
|
|
828
|
+
}, G = P === null ? void 0 : function() {
|
|
829
|
+
return O(P());
|
|
830
|
+
};
|
|
831
|
+
return [D, G];
|
|
832
|
+
}, [l, g, A, E]), p = y[0], w = y[1], R = a(d, p, w);
|
|
833
|
+
return s(function() {
|
|
834
|
+
b.hasValue = !0, b.value = R;
|
|
835
|
+
}, [R]), u(R), R;
|
|
836
|
+
}
|
|
837
|
+
ar.useSyncExternalStoreWithSelector = f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
838
|
+
}()), ar;
|
|
839
|
+
}
|
|
840
|
+
var sr = {};
|
|
841
|
+
/**
|
|
842
|
+
* @license React
|
|
843
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
844
|
+
*
|
|
845
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
846
|
+
*
|
|
847
|
+
* This source code is licensed under the MIT license found in the
|
|
848
|
+
* LICENSE file in the root directory of this source tree.
|
|
849
|
+
*/
|
|
850
|
+
var Tn;
|
|
851
|
+
function xi() {
|
|
852
|
+
if (Tn)
|
|
853
|
+
return sr;
|
|
854
|
+
Tn = 1;
|
|
855
|
+
var e = he, t = Vt;
|
|
856
|
+
function r(f, d) {
|
|
857
|
+
return f === d && (f !== 0 || 1 / f === 1 / d) || f !== f && d !== d;
|
|
858
|
+
}
|
|
859
|
+
var n = typeof Object.is == "function" ? Object.is : r, a = t.useSyncExternalStore, o = e.useRef, s = e.useEffect, c = e.useMemo, u = e.useDebugValue;
|
|
860
|
+
return sr.useSyncExternalStoreWithSelector = function(f, d, l, g, A) {
|
|
861
|
+
var E = o(null);
|
|
862
|
+
if (E.current === null) {
|
|
863
|
+
var v = { hasValue: !1, value: null };
|
|
864
|
+
E.current = v;
|
|
865
|
+
} else
|
|
866
|
+
v = E.current;
|
|
867
|
+
E = c(function() {
|
|
868
|
+
function y(C) {
|
|
869
|
+
if (!p) {
|
|
870
|
+
if (p = !0, w = C, C = g(C), A !== void 0 && v.hasValue) {
|
|
871
|
+
var T = v.value;
|
|
872
|
+
if (A(T, C))
|
|
873
|
+
return R = T;
|
|
874
|
+
}
|
|
875
|
+
return R = C;
|
|
876
|
+
}
|
|
877
|
+
if (T = R, n(w, C))
|
|
878
|
+
return T;
|
|
879
|
+
var O = g(C);
|
|
880
|
+
return A !== void 0 && A(T, O) ? T : (w = C, R = O);
|
|
881
|
+
}
|
|
882
|
+
var p = !1, w, R, x = l === void 0 ? null : l;
|
|
883
|
+
return [function() {
|
|
884
|
+
return y(d());
|
|
885
|
+
}, x === null ? void 0 : function() {
|
|
886
|
+
return y(x());
|
|
887
|
+
}];
|
|
888
|
+
}, [d, l, g, A]);
|
|
889
|
+
var b = a(f, E[0], E[1]);
|
|
890
|
+
return s(function() {
|
|
891
|
+
v.hasValue = !0, v.value = b;
|
|
892
|
+
}, [b]), u(b), b;
|
|
893
|
+
}, sr;
|
|
894
|
+
}
|
|
895
|
+
process.env.NODE_ENV === "production" ? Sr.exports = xi() : Sr.exports = Ri();
|
|
896
|
+
var Ti = Sr.exports;
|
|
897
|
+
const Ii = /* @__PURE__ */ ya(Ti);
|
|
898
|
+
var Ea = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
899
|
+
const { useDebugValue: _i } = he, { useSyncExternalStoreWithSelector: ji } = Ii;
|
|
900
|
+
let In = !1;
|
|
901
|
+
function Di(e, t = e.getState, r) {
|
|
902
|
+
(Ea ? "production" : void 0) !== "production" && r && !In && (console.warn(
|
|
903
|
+
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
904
|
+
), In = !0);
|
|
905
|
+
const n = ji(
|
|
906
|
+
e.subscribe,
|
|
907
|
+
e.getState,
|
|
908
|
+
e.getServerState || e.getState,
|
|
909
|
+
t,
|
|
910
|
+
r
|
|
911
|
+
);
|
|
912
|
+
return _i(n), n;
|
|
913
|
+
}
|
|
914
|
+
const _n = (e) => {
|
|
915
|
+
(Ea ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
|
|
916
|
+
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
917
|
+
);
|
|
918
|
+
const t = typeof e == "function" ? ba(e) : e, r = (n, a) => Di(t, n, a);
|
|
919
|
+
return Object.assign(r, t), r;
|
|
920
|
+
}, Gt = (e) => e ? _n(e) : _n, Sa = {
|
|
921
|
+
appTitle: "",
|
|
922
|
+
menuItems: [],
|
|
923
|
+
hideGameSelect: !1,
|
|
924
|
+
usePermissionApiV2: !1
|
|
925
|
+
}, Cr = ba(() => Sa), wa = Mr(Sa);
|
|
926
|
+
function _e() {
|
|
927
|
+
return Ur(wa);
|
|
928
|
+
}
|
|
929
|
+
const Ca = ({ children: e, ...t }) => {
|
|
930
|
+
const n = {
|
|
931
|
+
..._e(),
|
|
932
|
+
...t
|
|
933
|
+
};
|
|
934
|
+
return Cr.setState(n), /* @__PURE__ */ m.jsx(wa.Provider, { value: n, children: e });
|
|
935
|
+
};
|
|
936
|
+
Ca.displayName = "ToolkitsContextProvider";
|
|
937
|
+
const Pi = Ca;
|
|
938
|
+
var Fi = /* @__PURE__ */ Mr({});
|
|
939
|
+
const Oa = Fi;
|
|
940
|
+
function tt() {
|
|
941
|
+
return tt = Object.assign ? Object.assign.bind() : function(e) {
|
|
942
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
943
|
+
var r = arguments[t];
|
|
944
|
+
for (var n in r)
|
|
945
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
946
|
+
}
|
|
947
|
+
return e;
|
|
948
|
+
}, tt.apply(this, arguments);
|
|
949
|
+
}
|
|
950
|
+
function Ni(e) {
|
|
951
|
+
if (Array.isArray(e))
|
|
952
|
+
return e;
|
|
953
|
+
}
|
|
954
|
+
function Bi(e, t) {
|
|
955
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
956
|
+
if (r != null) {
|
|
957
|
+
var n, a, o, s, c = [], u = !0, f = !1;
|
|
958
|
+
try {
|
|
959
|
+
if (o = (r = r.call(e)).next, t === 0) {
|
|
960
|
+
if (Object(r) !== r)
|
|
961
|
+
return;
|
|
962
|
+
u = !1;
|
|
963
|
+
} else
|
|
964
|
+
for (; !(u = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); u = !0)
|
|
965
|
+
;
|
|
966
|
+
} catch (d) {
|
|
967
|
+
f = !0, a = d;
|
|
968
|
+
} finally {
|
|
969
|
+
try {
|
|
970
|
+
if (!u && r.return != null && (s = r.return(), Object(s) !== s))
|
|
971
|
+
return;
|
|
972
|
+
} finally {
|
|
973
|
+
if (f)
|
|
974
|
+
throw a;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
return c;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
function jn(e, t) {
|
|
981
|
+
(t == null || t > e.length) && (t = e.length);
|
|
982
|
+
for (var r = 0, n = new Array(t); r < t; r++)
|
|
983
|
+
n[r] = e[r];
|
|
984
|
+
return n;
|
|
985
|
+
}
|
|
986
|
+
function Li(e, t) {
|
|
987
|
+
if (e) {
|
|
988
|
+
if (typeof e == "string")
|
|
989
|
+
return jn(e, t);
|
|
990
|
+
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
991
|
+
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
|
|
992
|
+
return Array.from(e);
|
|
993
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
994
|
+
return jn(e, t);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
function Mi() {
|
|
998
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
999
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1000
|
+
}
|
|
1001
|
+
function Ra(e, t) {
|
|
1002
|
+
return Ni(e) || Bi(e, t) || Li(e, t) || Mi();
|
|
1003
|
+
}
|
|
1004
|
+
function Ye(e) {
|
|
1005
|
+
"@babel/helpers - typeof";
|
|
1006
|
+
return Ye = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1007
|
+
return typeof t;
|
|
1008
|
+
} : function(t) {
|
|
1009
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1010
|
+
}, Ye(e);
|
|
1011
|
+
}
|
|
1012
|
+
function Ui(e, t) {
|
|
1013
|
+
if (Ye(e) != "object" || !e)
|
|
1014
|
+
return e;
|
|
1015
|
+
var r = e[Symbol.toPrimitive];
|
|
1016
|
+
if (r !== void 0) {
|
|
1017
|
+
var n = r.call(e, t || "default");
|
|
1018
|
+
if (Ye(n) != "object")
|
|
1019
|
+
return n;
|
|
1020
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1021
|
+
}
|
|
1022
|
+
return (t === "string" ? String : Number)(e);
|
|
1023
|
+
}
|
|
1024
|
+
function ki(e) {
|
|
1025
|
+
var t = Ui(e, "string");
|
|
1026
|
+
return Ye(t) == "symbol" ? t : String(t);
|
|
1027
|
+
}
|
|
1028
|
+
function Or(e, t, r) {
|
|
1029
|
+
return t = ki(t), t in e ? Object.defineProperty(e, t, {
|
|
1030
|
+
value: r,
|
|
1031
|
+
enumerable: !0,
|
|
1032
|
+
configurable: !0,
|
|
1033
|
+
writable: !0
|
|
1034
|
+
}) : e[t] = r, e;
|
|
1035
|
+
}
|
|
1036
|
+
function Vi(e, t) {
|
|
1037
|
+
if (e == null)
|
|
1038
|
+
return {};
|
|
1039
|
+
var r = {}, n = Object.keys(e), a, o;
|
|
1040
|
+
for (o = 0; o < n.length; o++)
|
|
1041
|
+
a = n[o], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
|
|
1042
|
+
return r;
|
|
1043
|
+
}
|
|
1044
|
+
function xa(e, t) {
|
|
1045
|
+
if (e == null)
|
|
1046
|
+
return {};
|
|
1047
|
+
var r = Vi(e, t), n, a;
|
|
1048
|
+
if (Object.getOwnPropertySymbols) {
|
|
1049
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1050
|
+
for (a = 0; a < o.length; a++)
|
|
1051
|
+
n = o[a], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
1052
|
+
}
|
|
1053
|
+
return r;
|
|
1054
|
+
}
|
|
1055
|
+
var Ta = { exports: {} };
|
|
1056
|
+
/*!
|
|
1057
|
+
Copyright (c) 2018 Jed Watson.
|
|
1058
|
+
Licensed under the MIT License (MIT), see
|
|
1059
|
+
http://jedwatson.github.io/classnames
|
|
1060
|
+
*/
|
|
1061
|
+
(function(e) {
|
|
1062
|
+
(function() {
|
|
1063
|
+
var t = {}.hasOwnProperty;
|
|
1064
|
+
function r() {
|
|
1065
|
+
for (var n = [], a = 0; a < arguments.length; a++) {
|
|
1066
|
+
var o = arguments[a];
|
|
1067
|
+
if (o) {
|
|
1068
|
+
var s = typeof o;
|
|
1069
|
+
if (s === "string" || s === "number")
|
|
1070
|
+
n.push(o);
|
|
1071
|
+
else if (Array.isArray(o)) {
|
|
1072
|
+
if (o.length) {
|
|
1073
|
+
var c = r.apply(null, o);
|
|
1074
|
+
c && n.push(c);
|
|
1075
|
+
}
|
|
1076
|
+
} else if (s === "object") {
|
|
1077
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
|
|
1078
|
+
n.push(o.toString());
|
|
1079
|
+
continue;
|
|
1080
|
+
}
|
|
1081
|
+
for (var u in o)
|
|
1082
|
+
t.call(o, u) && o[u] && n.push(u);
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
return n.join(" ");
|
|
1087
|
+
}
|
|
1088
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
1089
|
+
})();
|
|
1090
|
+
})(Ta);
|
|
1091
|
+
var Gi = Ta.exports;
|
|
1092
|
+
const Wi = /* @__PURE__ */ ya(Gi);
|
|
1093
|
+
function pe(e, t) {
|
|
1094
|
+
Hi(e) && (e = "100%");
|
|
1095
|
+
var r = Qi(e);
|
|
1096
|
+
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
|
|
1097
|
+
}
|
|
1098
|
+
function Hi(e) {
|
|
1099
|
+
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
1100
|
+
}
|
|
1101
|
+
function Qi(e) {
|
|
1102
|
+
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
1103
|
+
}
|
|
1104
|
+
function Yi(e) {
|
|
1105
|
+
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
1106
|
+
}
|
|
1107
|
+
function It(e) {
|
|
1108
|
+
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
1109
|
+
}
|
|
1110
|
+
function cr(e) {
|
|
1111
|
+
return e.length === 1 ? "0" + e : String(e);
|
|
1112
|
+
}
|
|
1113
|
+
function zi(e, t, r) {
|
|
1114
|
+
return {
|
|
1115
|
+
r: pe(e, 255) * 255,
|
|
1116
|
+
g: pe(t, 255) * 255,
|
|
1117
|
+
b: pe(r, 255) * 255
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
function ur(e, t, r) {
|
|
1121
|
+
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
1122
|
+
}
|
|
1123
|
+
function qi(e, t, r) {
|
|
1124
|
+
var n, a, o;
|
|
1125
|
+
if (e = pe(e, 360), t = pe(t, 100), r = pe(r, 100), t === 0)
|
|
1126
|
+
a = r, o = r, n = r;
|
|
1127
|
+
else {
|
|
1128
|
+
var s = r < 0.5 ? r * (1 + t) : r + t - r * t, c = 2 * r - s;
|
|
1129
|
+
n = ur(c, s, e + 1 / 3), a = ur(c, s, e), o = ur(c, s, e - 1 / 3);
|
|
1130
|
+
}
|
|
1131
|
+
return { r: n * 255, g: a * 255, b: o * 255 };
|
|
1132
|
+
}
|
|
1133
|
+
function Ki(e, t, r) {
|
|
1134
|
+
e = pe(e, 255), t = pe(t, 255), r = pe(r, 255);
|
|
1135
|
+
var n = Math.max(e, t, r), a = Math.min(e, t, r), o = 0, s = n, c = n - a, u = n === 0 ? 0 : c / n;
|
|
1136
|
+
if (n === a)
|
|
1137
|
+
o = 0;
|
|
1138
|
+
else {
|
|
1139
|
+
switch (n) {
|
|
1140
|
+
case e:
|
|
1141
|
+
o = (t - r) / c + (t < r ? 6 : 0);
|
|
1142
|
+
break;
|
|
1143
|
+
case t:
|
|
1144
|
+
o = (r - e) / c + 2;
|
|
1145
|
+
break;
|
|
1146
|
+
case r:
|
|
1147
|
+
o = (e - t) / c + 4;
|
|
1148
|
+
break;
|
|
1149
|
+
}
|
|
1150
|
+
o /= 6;
|
|
1151
|
+
}
|
|
1152
|
+
return { h: o, s: u, v: s };
|
|
1153
|
+
}
|
|
1154
|
+
function $i(e, t, r) {
|
|
1155
|
+
e = pe(e, 360) * 6, t = pe(t, 100), r = pe(r, 100);
|
|
1156
|
+
var n = Math.floor(e), a = e - n, o = r * (1 - t), s = r * (1 - a * t), c = r * (1 - (1 - a) * t), u = n % 6, f = [r, s, o, o, c, r][u], d = [c, r, r, s, o, o][u], l = [o, o, c, r, r, s][u];
|
|
1157
|
+
return { r: f * 255, g: d * 255, b: l * 255 };
|
|
1158
|
+
}
|
|
1159
|
+
function Xi(e, t, r, n) {
|
|
1160
|
+
var a = [
|
|
1161
|
+
cr(Math.round(e).toString(16)),
|
|
1162
|
+
cr(Math.round(t).toString(16)),
|
|
1163
|
+
cr(Math.round(r).toString(16))
|
|
1164
|
+
];
|
|
1165
|
+
return n && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
|
|
1166
|
+
}
|
|
1167
|
+
function Dn(e) {
|
|
1168
|
+
return ue(e) / 255;
|
|
1169
|
+
}
|
|
1170
|
+
function ue(e) {
|
|
1171
|
+
return parseInt(e, 16);
|
|
1172
|
+
}
|
|
1173
|
+
var Pn = {
|
|
1174
|
+
aliceblue: "#f0f8ff",
|
|
1175
|
+
antiquewhite: "#faebd7",
|
|
1176
|
+
aqua: "#00ffff",
|
|
1177
|
+
aquamarine: "#7fffd4",
|
|
1178
|
+
azure: "#f0ffff",
|
|
1179
|
+
beige: "#f5f5dc",
|
|
1180
|
+
bisque: "#ffe4c4",
|
|
1181
|
+
black: "#000000",
|
|
1182
|
+
blanchedalmond: "#ffebcd",
|
|
1183
|
+
blue: "#0000ff",
|
|
1184
|
+
blueviolet: "#8a2be2",
|
|
1185
|
+
brown: "#a52a2a",
|
|
1186
|
+
burlywood: "#deb887",
|
|
1187
|
+
cadetblue: "#5f9ea0",
|
|
1188
|
+
chartreuse: "#7fff00",
|
|
1189
|
+
chocolate: "#d2691e",
|
|
1190
|
+
coral: "#ff7f50",
|
|
1191
|
+
cornflowerblue: "#6495ed",
|
|
1192
|
+
cornsilk: "#fff8dc",
|
|
1193
|
+
crimson: "#dc143c",
|
|
1194
|
+
cyan: "#00ffff",
|
|
1195
|
+
darkblue: "#00008b",
|
|
1196
|
+
darkcyan: "#008b8b",
|
|
1197
|
+
darkgoldenrod: "#b8860b",
|
|
1198
|
+
darkgray: "#a9a9a9",
|
|
1199
|
+
darkgreen: "#006400",
|
|
1200
|
+
darkgrey: "#a9a9a9",
|
|
1201
|
+
darkkhaki: "#bdb76b",
|
|
1202
|
+
darkmagenta: "#8b008b",
|
|
1203
|
+
darkolivegreen: "#556b2f",
|
|
1204
|
+
darkorange: "#ff8c00",
|
|
1205
|
+
darkorchid: "#9932cc",
|
|
1206
|
+
darkred: "#8b0000",
|
|
1207
|
+
darksalmon: "#e9967a",
|
|
1208
|
+
darkseagreen: "#8fbc8f",
|
|
1209
|
+
darkslateblue: "#483d8b",
|
|
1210
|
+
darkslategray: "#2f4f4f",
|
|
1211
|
+
darkslategrey: "#2f4f4f",
|
|
1212
|
+
darkturquoise: "#00ced1",
|
|
1213
|
+
darkviolet: "#9400d3",
|
|
1214
|
+
deeppink: "#ff1493",
|
|
1215
|
+
deepskyblue: "#00bfff",
|
|
1216
|
+
dimgray: "#696969",
|
|
1217
|
+
dimgrey: "#696969",
|
|
1218
|
+
dodgerblue: "#1e90ff",
|
|
1219
|
+
firebrick: "#b22222",
|
|
1220
|
+
floralwhite: "#fffaf0",
|
|
1221
|
+
forestgreen: "#228b22",
|
|
1222
|
+
fuchsia: "#ff00ff",
|
|
1223
|
+
gainsboro: "#dcdcdc",
|
|
1224
|
+
ghostwhite: "#f8f8ff",
|
|
1225
|
+
goldenrod: "#daa520",
|
|
1226
|
+
gold: "#ffd700",
|
|
1227
|
+
gray: "#808080",
|
|
1228
|
+
green: "#008000",
|
|
1229
|
+
greenyellow: "#adff2f",
|
|
1230
|
+
grey: "#808080",
|
|
1231
|
+
honeydew: "#f0fff0",
|
|
1232
|
+
hotpink: "#ff69b4",
|
|
1233
|
+
indianred: "#cd5c5c",
|
|
1234
|
+
indigo: "#4b0082",
|
|
1235
|
+
ivory: "#fffff0",
|
|
1236
|
+
khaki: "#f0e68c",
|
|
1237
|
+
lavenderblush: "#fff0f5",
|
|
1238
|
+
lavender: "#e6e6fa",
|
|
1239
|
+
lawngreen: "#7cfc00",
|
|
1240
|
+
lemonchiffon: "#fffacd",
|
|
1241
|
+
lightblue: "#add8e6",
|
|
1242
|
+
lightcoral: "#f08080",
|
|
1243
|
+
lightcyan: "#e0ffff",
|
|
1244
|
+
lightgoldenrodyellow: "#fafad2",
|
|
1245
|
+
lightgray: "#d3d3d3",
|
|
1246
|
+
lightgreen: "#90ee90",
|
|
1247
|
+
lightgrey: "#d3d3d3",
|
|
1248
|
+
lightpink: "#ffb6c1",
|
|
1249
|
+
lightsalmon: "#ffa07a",
|
|
1250
|
+
lightseagreen: "#20b2aa",
|
|
1251
|
+
lightskyblue: "#87cefa",
|
|
1252
|
+
lightslategray: "#778899",
|
|
1253
|
+
lightslategrey: "#778899",
|
|
1254
|
+
lightsteelblue: "#b0c4de",
|
|
1255
|
+
lightyellow: "#ffffe0",
|
|
1256
|
+
lime: "#00ff00",
|
|
1257
|
+
limegreen: "#32cd32",
|
|
1258
|
+
linen: "#faf0e6",
|
|
1259
|
+
magenta: "#ff00ff",
|
|
1260
|
+
maroon: "#800000",
|
|
1261
|
+
mediumaquamarine: "#66cdaa",
|
|
1262
|
+
mediumblue: "#0000cd",
|
|
1263
|
+
mediumorchid: "#ba55d3",
|
|
1264
|
+
mediumpurple: "#9370db",
|
|
1265
|
+
mediumseagreen: "#3cb371",
|
|
1266
|
+
mediumslateblue: "#7b68ee",
|
|
1267
|
+
mediumspringgreen: "#00fa9a",
|
|
1268
|
+
mediumturquoise: "#48d1cc",
|
|
1269
|
+
mediumvioletred: "#c71585",
|
|
1270
|
+
midnightblue: "#191970",
|
|
1271
|
+
mintcream: "#f5fffa",
|
|
1272
|
+
mistyrose: "#ffe4e1",
|
|
1273
|
+
moccasin: "#ffe4b5",
|
|
1274
|
+
navajowhite: "#ffdead",
|
|
1275
|
+
navy: "#000080",
|
|
1276
|
+
oldlace: "#fdf5e6",
|
|
1277
|
+
olive: "#808000",
|
|
1278
|
+
olivedrab: "#6b8e23",
|
|
1279
|
+
orange: "#ffa500",
|
|
1280
|
+
orangered: "#ff4500",
|
|
1281
|
+
orchid: "#da70d6",
|
|
1282
|
+
palegoldenrod: "#eee8aa",
|
|
1283
|
+
palegreen: "#98fb98",
|
|
1284
|
+
paleturquoise: "#afeeee",
|
|
1285
|
+
palevioletred: "#db7093",
|
|
1286
|
+
papayawhip: "#ffefd5",
|
|
1287
|
+
peachpuff: "#ffdab9",
|
|
1288
|
+
peru: "#cd853f",
|
|
1289
|
+
pink: "#ffc0cb",
|
|
1290
|
+
plum: "#dda0dd",
|
|
1291
|
+
powderblue: "#b0e0e6",
|
|
1292
|
+
purple: "#800080",
|
|
1293
|
+
rebeccapurple: "#663399",
|
|
1294
|
+
red: "#ff0000",
|
|
1295
|
+
rosybrown: "#bc8f8f",
|
|
1296
|
+
royalblue: "#4169e1",
|
|
1297
|
+
saddlebrown: "#8b4513",
|
|
1298
|
+
salmon: "#fa8072",
|
|
1299
|
+
sandybrown: "#f4a460",
|
|
1300
|
+
seagreen: "#2e8b57",
|
|
1301
|
+
seashell: "#fff5ee",
|
|
1302
|
+
sienna: "#a0522d",
|
|
1303
|
+
silver: "#c0c0c0",
|
|
1304
|
+
skyblue: "#87ceeb",
|
|
1305
|
+
slateblue: "#6a5acd",
|
|
1306
|
+
slategray: "#708090",
|
|
1307
|
+
slategrey: "#708090",
|
|
1308
|
+
snow: "#fffafa",
|
|
1309
|
+
springgreen: "#00ff7f",
|
|
1310
|
+
steelblue: "#4682b4",
|
|
1311
|
+
tan: "#d2b48c",
|
|
1312
|
+
teal: "#008080",
|
|
1313
|
+
thistle: "#d8bfd8",
|
|
1314
|
+
tomato: "#ff6347",
|
|
1315
|
+
turquoise: "#40e0d0",
|
|
1316
|
+
violet: "#ee82ee",
|
|
1317
|
+
wheat: "#f5deb3",
|
|
1318
|
+
white: "#ffffff",
|
|
1319
|
+
whitesmoke: "#f5f5f5",
|
|
1320
|
+
yellow: "#ffff00",
|
|
1321
|
+
yellowgreen: "#9acd32"
|
|
1322
|
+
};
|
|
1323
|
+
function At(e) {
|
|
1324
|
+
var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, a = null, o = null, s = !1, c = !1;
|
|
1325
|
+
return typeof e == "string" && (e = es(e)), typeof e == "object" && (Te(e.r) && Te(e.g) && Te(e.b) ? (t = zi(e.r, e.g, e.b), s = !0, c = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Te(e.h) && Te(e.s) && Te(e.v) ? (n = It(e.s), a = It(e.v), t = $i(e.h, n, a), s = !0, c = "hsv") : Te(e.h) && Te(e.s) && Te(e.l) && (n = It(e.s), o = It(e.l), t = qi(e.h, n, o), s = !0, c = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = Yi(r), {
|
|
1326
|
+
ok: s,
|
|
1327
|
+
format: e.format || c,
|
|
1328
|
+
r: Math.min(255, Math.max(t.r, 0)),
|
|
1329
|
+
g: Math.min(255, Math.max(t.g, 0)),
|
|
1330
|
+
b: Math.min(255, Math.max(t.b, 0)),
|
|
1331
|
+
a: r
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
var Zi = "[-\\+]?\\d+%?", Ji = "[-\\+]?\\d*\\.\\d+%?", Ue = "(?:".concat(Ji, ")|(?:").concat(Zi, ")"), lr = "[\\s|\\(]+(".concat(Ue, ")[,|\\s]+(").concat(Ue, ")[,|\\s]+(").concat(Ue, ")\\s*\\)?"), fr = "[\\s|\\(]+(".concat(Ue, ")[,|\\s]+(").concat(Ue, ")[,|\\s]+(").concat(Ue, ")[,|\\s]+(").concat(Ue, ")\\s*\\)?"), ye = {
|
|
1335
|
+
CSS_UNIT: new RegExp(Ue),
|
|
1336
|
+
rgb: new RegExp("rgb" + lr),
|
|
1337
|
+
rgba: new RegExp("rgba" + fr),
|
|
1338
|
+
hsl: new RegExp("hsl" + lr),
|
|
1339
|
+
hsla: new RegExp("hsla" + fr),
|
|
1340
|
+
hsv: new RegExp("hsv" + lr),
|
|
1341
|
+
hsva: new RegExp("hsva" + fr),
|
|
1342
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1343
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
1344
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1345
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
1346
|
+
};
|
|
1347
|
+
function es(e) {
|
|
1348
|
+
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
1349
|
+
return !1;
|
|
1350
|
+
var t = !1;
|
|
1351
|
+
if (Pn[e])
|
|
1352
|
+
e = Pn[e], t = !0;
|
|
1353
|
+
else if (e === "transparent")
|
|
1354
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
1355
|
+
var r = ye.rgb.exec(e);
|
|
1356
|
+
return r ? { r: r[1], g: r[2], b: r[3] } : (r = ye.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = ye.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = ye.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = ye.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = ye.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = ye.hex8.exec(e), r ? {
|
|
1357
|
+
r: ue(r[1]),
|
|
1358
|
+
g: ue(r[2]),
|
|
1359
|
+
b: ue(r[3]),
|
|
1360
|
+
a: Dn(r[4]),
|
|
1361
|
+
format: t ? "name" : "hex8"
|
|
1362
|
+
} : (r = ye.hex6.exec(e), r ? {
|
|
1363
|
+
r: ue(r[1]),
|
|
1364
|
+
g: ue(r[2]),
|
|
1365
|
+
b: ue(r[3]),
|
|
1366
|
+
format: t ? "name" : "hex"
|
|
1367
|
+
} : (r = ye.hex4.exec(e), r ? {
|
|
1368
|
+
r: ue(r[1] + r[1]),
|
|
1369
|
+
g: ue(r[2] + r[2]),
|
|
1370
|
+
b: ue(r[3] + r[3]),
|
|
1371
|
+
a: Dn(r[4] + r[4]),
|
|
1372
|
+
format: t ? "name" : "hex8"
|
|
1373
|
+
} : (r = ye.hex3.exec(e), r ? {
|
|
1374
|
+
r: ue(r[1] + r[1]),
|
|
1375
|
+
g: ue(r[2] + r[2]),
|
|
1376
|
+
b: ue(r[3] + r[3]),
|
|
1377
|
+
format: t ? "name" : "hex"
|
|
1378
|
+
} : !1)))))))));
|
|
1379
|
+
}
|
|
1380
|
+
function Te(e) {
|
|
1381
|
+
return !!ye.CSS_UNIT.exec(String(e));
|
|
1382
|
+
}
|
|
1383
|
+
var _t = 2, Fn = 0.16, ts = 0.05, rs = 0.05, ns = 0.15, Ia = 5, _a = 4, as = [{
|
|
1384
|
+
index: 7,
|
|
1385
|
+
opacity: 0.15
|
|
1386
|
+
}, {
|
|
1387
|
+
index: 6,
|
|
1388
|
+
opacity: 0.25
|
|
1389
|
+
}, {
|
|
1390
|
+
index: 5,
|
|
1391
|
+
opacity: 0.3
|
|
1392
|
+
}, {
|
|
1393
|
+
index: 5,
|
|
1394
|
+
opacity: 0.45
|
|
1395
|
+
}, {
|
|
1396
|
+
index: 5,
|
|
1397
|
+
opacity: 0.65
|
|
1398
|
+
}, {
|
|
1399
|
+
index: 5,
|
|
1400
|
+
opacity: 0.85
|
|
1401
|
+
}, {
|
|
1402
|
+
index: 4,
|
|
1403
|
+
opacity: 0.9
|
|
1404
|
+
}, {
|
|
1405
|
+
index: 3,
|
|
1406
|
+
opacity: 0.95
|
|
1407
|
+
}, {
|
|
1408
|
+
index: 2,
|
|
1409
|
+
opacity: 0.97
|
|
1410
|
+
}, {
|
|
1411
|
+
index: 1,
|
|
1412
|
+
opacity: 0.98
|
|
1413
|
+
}];
|
|
1414
|
+
function Nn(e) {
|
|
1415
|
+
var t = e.r, r = e.g, n = e.b, a = Ki(t, r, n);
|
|
1416
|
+
return {
|
|
1417
|
+
h: a.h * 360,
|
|
1418
|
+
s: a.s,
|
|
1419
|
+
v: a.v
|
|
1420
|
+
};
|
|
1421
|
+
}
|
|
1422
|
+
function jt(e) {
|
|
1423
|
+
var t = e.r, r = e.g, n = e.b;
|
|
1424
|
+
return "#".concat(Xi(t, r, n, !1));
|
|
1425
|
+
}
|
|
1426
|
+
function os(e, t, r) {
|
|
1427
|
+
var n = r / 100, a = {
|
|
1428
|
+
r: (t.r - e.r) * n + e.r,
|
|
1429
|
+
g: (t.g - e.g) * n + e.g,
|
|
1430
|
+
b: (t.b - e.b) * n + e.b
|
|
1431
|
+
};
|
|
1432
|
+
return a;
|
|
1433
|
+
}
|
|
1434
|
+
function Bn(e, t, r) {
|
|
1435
|
+
var n;
|
|
1436
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - _t * t : Math.round(e.h) + _t * t : n = r ? Math.round(e.h) + _t * t : Math.round(e.h) - _t * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
1437
|
+
}
|
|
1438
|
+
function Ln(e, t, r) {
|
|
1439
|
+
if (e.h === 0 && e.s === 0)
|
|
1440
|
+
return e.s;
|
|
1441
|
+
var n;
|
|
1442
|
+
return r ? n = e.s - Fn * t : t === _a ? n = e.s + Fn : n = e.s + ts * t, n > 1 && (n = 1), r && t === Ia && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2));
|
|
1443
|
+
}
|
|
1444
|
+
function Mn(e, t, r) {
|
|
1445
|
+
var n;
|
|
1446
|
+
return r ? n = e.v + rs * t : n = e.v - ns * t, n > 1 && (n = 1), Number(n.toFixed(2));
|
|
1447
|
+
}
|
|
1448
|
+
function Rr(e) {
|
|
1449
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = At(e), a = Ia; a > 0; a -= 1) {
|
|
1450
|
+
var o = Nn(n), s = jt(At({
|
|
1451
|
+
h: Bn(o, a, !0),
|
|
1452
|
+
s: Ln(o, a, !0),
|
|
1453
|
+
v: Mn(o, a, !0)
|
|
1454
|
+
}));
|
|
1455
|
+
r.push(s);
|
|
1456
|
+
}
|
|
1457
|
+
r.push(jt(n));
|
|
1458
|
+
for (var c = 1; c <= _a; c += 1) {
|
|
1459
|
+
var u = Nn(n), f = jt(At({
|
|
1460
|
+
h: Bn(u, c),
|
|
1461
|
+
s: Ln(u, c),
|
|
1462
|
+
v: Mn(u, c)
|
|
1463
|
+
}));
|
|
1464
|
+
r.push(f);
|
|
1465
|
+
}
|
|
1466
|
+
return t.theme === "dark" ? as.map(function(d) {
|
|
1467
|
+
var l = d.index, g = d.opacity, A = jt(os(At(t.backgroundColor || "#141414"), At(r[l]), g * 100));
|
|
1468
|
+
return A;
|
|
1469
|
+
}) : r;
|
|
1470
|
+
}
|
|
1471
|
+
var dr = {
|
|
1472
|
+
red: "#F5222D",
|
|
1473
|
+
volcano: "#FA541C",
|
|
1474
|
+
orange: "#FA8C16",
|
|
1475
|
+
gold: "#FAAD14",
|
|
1476
|
+
yellow: "#FADB14",
|
|
1477
|
+
lime: "#A0D911",
|
|
1478
|
+
green: "#52C41A",
|
|
1479
|
+
cyan: "#13C2C2",
|
|
1480
|
+
blue: "#1677FF",
|
|
1481
|
+
geekblue: "#2F54EB",
|
|
1482
|
+
purple: "#722ED1",
|
|
1483
|
+
magenta: "#EB2F96",
|
|
1484
|
+
grey: "#666666"
|
|
1485
|
+
}, Bt = {}, Ar = {};
|
|
1486
|
+
Object.keys(dr).forEach(function(e) {
|
|
1487
|
+
Bt[e] = Rr(dr[e]), Bt[e].primary = Bt[e][5], Ar[e] = Rr(dr[e], {
|
|
1488
|
+
theme: "dark",
|
|
1489
|
+
backgroundColor: "#141414"
|
|
1490
|
+
}), Ar[e].primary = Ar[e][5];
|
|
1491
|
+
});
|
|
1492
|
+
var is = Bt.blue;
|
|
1493
|
+
function Un(e, t) {
|
|
1494
|
+
var r = Object.keys(e);
|
|
1495
|
+
if (Object.getOwnPropertySymbols) {
|
|
1496
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
1497
|
+
t && (n = n.filter(function(a) {
|
|
1498
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
1499
|
+
})), r.push.apply(r, n);
|
|
1500
|
+
}
|
|
1501
|
+
return r;
|
|
1502
|
+
}
|
|
1503
|
+
function ke(e) {
|
|
1504
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1505
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
1506
|
+
t % 2 ? Un(Object(r), !0).forEach(function(n) {
|
|
1507
|
+
Or(e, n, r[n]);
|
|
1508
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Un(Object(r)).forEach(function(n) {
|
|
1509
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
return e;
|
|
1513
|
+
}
|
|
1514
|
+
function ss() {
|
|
1515
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1516
|
+
}
|
|
1517
|
+
function cs(e, t) {
|
|
1518
|
+
if (!e)
|
|
1519
|
+
return !1;
|
|
1520
|
+
if (e.contains)
|
|
1521
|
+
return e.contains(t);
|
|
1522
|
+
for (var r = t; r; ) {
|
|
1523
|
+
if (r === e)
|
|
1524
|
+
return !0;
|
|
1525
|
+
r = r.parentNode;
|
|
1526
|
+
}
|
|
1527
|
+
return !1;
|
|
1528
|
+
}
|
|
1529
|
+
var kn = "data-rc-order", Vn = "data-rc-priority", us = "rc-util-key", xr = /* @__PURE__ */ new Map();
|
|
1530
|
+
function ja() {
|
|
1531
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
|
1532
|
+
return t ? t.startsWith("data-") ? t : "data-".concat(t) : us;
|
|
1533
|
+
}
|
|
1534
|
+
function Gr(e) {
|
|
1535
|
+
if (e.attachTo)
|
|
1536
|
+
return e.attachTo;
|
|
1537
|
+
var t = document.querySelector("head");
|
|
1538
|
+
return t || document.body;
|
|
1539
|
+
}
|
|
1540
|
+
function ls(e) {
|
|
1541
|
+
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
1542
|
+
}
|
|
1543
|
+
function Da(e) {
|
|
1544
|
+
return Array.from((xr.get(e) || e).children).filter(function(t) {
|
|
1545
|
+
return t.tagName === "STYLE";
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
function Pa(e) {
|
|
1549
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1550
|
+
if (!ss())
|
|
1551
|
+
return null;
|
|
1552
|
+
var r = t.csp, n = t.prepend, a = t.priority, o = a === void 0 ? 0 : a, s = ls(n), c = s === "prependQueue", u = document.createElement("style");
|
|
1553
|
+
u.setAttribute(kn, s), c && o && u.setAttribute(Vn, "".concat(o)), r != null && r.nonce && (u.nonce = r == null ? void 0 : r.nonce), u.innerHTML = e;
|
|
1554
|
+
var f = Gr(t), d = f.firstChild;
|
|
1555
|
+
if (n) {
|
|
1556
|
+
if (c) {
|
|
1557
|
+
var l = Da(f).filter(function(g) {
|
|
1558
|
+
if (!["prepend", "prependQueue"].includes(g.getAttribute(kn)))
|
|
1559
|
+
return !1;
|
|
1560
|
+
var A = Number(g.getAttribute(Vn) || 0);
|
|
1561
|
+
return o >= A;
|
|
1562
|
+
});
|
|
1563
|
+
if (l.length)
|
|
1564
|
+
return f.insertBefore(u, l[l.length - 1].nextSibling), u;
|
|
1565
|
+
}
|
|
1566
|
+
f.insertBefore(u, d);
|
|
1567
|
+
} else
|
|
1568
|
+
f.appendChild(u);
|
|
1569
|
+
return u;
|
|
1570
|
+
}
|
|
1571
|
+
function fs(e) {
|
|
1572
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Gr(t);
|
|
1573
|
+
return Da(r).find(function(n) {
|
|
1574
|
+
return n.getAttribute(ja(t)) === e;
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
function ds(e, t) {
|
|
1578
|
+
var r = xr.get(e);
|
|
1579
|
+
if (!r || !cs(document, r)) {
|
|
1580
|
+
var n = Pa("", t), a = n.parentNode;
|
|
1581
|
+
xr.set(e, a), e.removeChild(n);
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
function As(e, t) {
|
|
1585
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Gr(r);
|
|
1586
|
+
ds(n, r);
|
|
1587
|
+
var a = fs(t, r);
|
|
1588
|
+
if (a) {
|
|
1589
|
+
var o, s;
|
|
1590
|
+
if ((o = r.csp) !== null && o !== void 0 && o.nonce && a.nonce !== ((s = r.csp) === null || s === void 0 ? void 0 : s.nonce)) {
|
|
1591
|
+
var c;
|
|
1592
|
+
a.nonce = (c = r.csp) === null || c === void 0 ? void 0 : c.nonce;
|
|
1593
|
+
}
|
|
1594
|
+
return a.innerHTML !== e && (a.innerHTML = e), a;
|
|
1595
|
+
}
|
|
1596
|
+
var u = Pa(e, r);
|
|
1597
|
+
return u.setAttribute(ja(r), t), u;
|
|
1598
|
+
}
|
|
1599
|
+
function Fa(e) {
|
|
1600
|
+
var t;
|
|
1601
|
+
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1602
|
+
}
|
|
1603
|
+
function gs(e) {
|
|
1604
|
+
return Fa(e) instanceof ShadowRoot;
|
|
1605
|
+
}
|
|
1606
|
+
function ps(e) {
|
|
1607
|
+
return gs(e) ? Fa(e) : null;
|
|
1608
|
+
}
|
|
1609
|
+
var Tr = {}, Wr = [], hs = function(t) {
|
|
1610
|
+
Wr.push(t);
|
|
1611
|
+
};
|
|
1612
|
+
function ms(e, t) {
|
|
1613
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
1614
|
+
var r = Wr.reduce(function(n, a) {
|
|
1615
|
+
return a(n ?? "", "warning");
|
|
1616
|
+
}, t);
|
|
1617
|
+
r && console.error("Warning: ".concat(r));
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
function vs(e, t) {
|
|
1621
|
+
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
1622
|
+
var r = Wr.reduce(function(n, a) {
|
|
1623
|
+
return a(n ?? "", "note");
|
|
1624
|
+
}, t);
|
|
1625
|
+
r && console.warn("Note: ".concat(r));
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
function ys() {
|
|
1629
|
+
Tr = {};
|
|
1630
|
+
}
|
|
1631
|
+
function Na(e, t, r) {
|
|
1632
|
+
!t && !Tr[r] && (e(!1, r), Tr[r] = !0);
|
|
1633
|
+
}
|
|
1634
|
+
function Wt(e, t) {
|
|
1635
|
+
Na(ms, e, t);
|
|
1636
|
+
}
|
|
1637
|
+
function bs(e, t) {
|
|
1638
|
+
Na(vs, e, t);
|
|
1639
|
+
}
|
|
1640
|
+
Wt.preMessage = hs;
|
|
1641
|
+
Wt.resetWarned = ys;
|
|
1642
|
+
Wt.noteOnce = bs;
|
|
1643
|
+
function Es(e) {
|
|
1644
|
+
return e.replace(/-(.)/g, function(t, r) {
|
|
1645
|
+
return r.toUpperCase();
|
|
1646
|
+
});
|
|
1647
|
+
}
|
|
1648
|
+
function Ss(e, t) {
|
|
1649
|
+
Wt(e, "[@ant-design/icons] ".concat(t));
|
|
1650
|
+
}
|
|
1651
|
+
function Gn(e) {
|
|
1652
|
+
return Ye(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (Ye(e.icon) === "object" || typeof e.icon == "function");
|
|
1653
|
+
}
|
|
1654
|
+
function Wn() {
|
|
1655
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1656
|
+
return Object.keys(e).reduce(function(t, r) {
|
|
1657
|
+
var n = e[r];
|
|
1658
|
+
switch (r) {
|
|
1659
|
+
case "class":
|
|
1660
|
+
t.className = n, delete t.class;
|
|
1661
|
+
break;
|
|
1662
|
+
default:
|
|
1663
|
+
delete t[r], t[Es(r)] = n;
|
|
1664
|
+
}
|
|
1665
|
+
return t;
|
|
1666
|
+
}, {});
|
|
1667
|
+
}
|
|
1668
|
+
function Ir(e, t, r) {
|
|
1669
|
+
return r ? /* @__PURE__ */ he.createElement(e.tag, ke(ke({
|
|
1670
|
+
key: t
|
|
1671
|
+
}, Wn(e.attrs)), r), (e.children || []).map(function(n, a) {
|
|
1672
|
+
return Ir(n, "".concat(t, "-").concat(e.tag, "-").concat(a));
|
|
1673
|
+
})) : /* @__PURE__ */ he.createElement(e.tag, ke({
|
|
1674
|
+
key: t
|
|
1675
|
+
}, Wn(e.attrs)), (e.children || []).map(function(n, a) {
|
|
1676
|
+
return Ir(n, "".concat(t, "-").concat(e.tag, "-").concat(a));
|
|
1677
|
+
}));
|
|
1678
|
+
}
|
|
1679
|
+
function Ba(e) {
|
|
1680
|
+
return Rr(e)[0];
|
|
1681
|
+
}
|
|
1682
|
+
function La(e) {
|
|
1683
|
+
return e ? Array.isArray(e) ? e : [e] : [];
|
|
1684
|
+
}
|
|
1685
|
+
var ws = `
|
|
1686
|
+
.anticon {
|
|
1687
|
+
display: inline-block;
|
|
1688
|
+
color: inherit;
|
|
1689
|
+
font-style: normal;
|
|
1690
|
+
line-height: 0;
|
|
1691
|
+
text-align: center;
|
|
1692
|
+
text-transform: none;
|
|
1693
|
+
vertical-align: -0.125em;
|
|
1694
|
+
text-rendering: optimizeLegibility;
|
|
1695
|
+
-webkit-font-smoothing: antialiased;
|
|
1696
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
.anticon > * {
|
|
1700
|
+
line-height: 1;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.anticon svg {
|
|
1704
|
+
display: inline-block;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.anticon::before {
|
|
1708
|
+
display: none;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
.anticon .anticon-icon {
|
|
1712
|
+
display: block;
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
.anticon[tabindex] {
|
|
1716
|
+
cursor: pointer;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
.anticon-spin::before,
|
|
1720
|
+
.anticon-spin {
|
|
1721
|
+
display: inline-block;
|
|
1722
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
1723
|
+
animation: loadingCircle 1s infinite linear;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
@-webkit-keyframes loadingCircle {
|
|
1727
|
+
100% {
|
|
1728
|
+
-webkit-transform: rotate(360deg);
|
|
1729
|
+
transform: rotate(360deg);
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
@keyframes loadingCircle {
|
|
1734
|
+
100% {
|
|
1735
|
+
-webkit-transform: rotate(360deg);
|
|
1736
|
+
transform: rotate(360deg);
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
`, Cs = function(t) {
|
|
1740
|
+
var r = Ur(Oa), n = r.csp, a = r.prefixCls, o = ws;
|
|
1741
|
+
a && (o = o.replace(/anticon/g, a)), Ee(function() {
|
|
1742
|
+
var s = t.current, c = ps(s);
|
|
1743
|
+
As(o, "@ant-design-icons", {
|
|
1744
|
+
prepend: !0,
|
|
1745
|
+
csp: n,
|
|
1746
|
+
attachTo: c
|
|
1747
|
+
});
|
|
1748
|
+
}, []);
|
|
1749
|
+
}, Os = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], mt = {
|
|
1750
|
+
primaryColor: "#333",
|
|
1751
|
+
secondaryColor: "#E6E6E6",
|
|
1752
|
+
calculated: !1
|
|
1753
|
+
};
|
|
1754
|
+
function Rs(e) {
|
|
1755
|
+
var t = e.primaryColor, r = e.secondaryColor;
|
|
1756
|
+
mt.primaryColor = t, mt.secondaryColor = r || Ba(t), mt.calculated = !!r;
|
|
1757
|
+
}
|
|
1758
|
+
function xs() {
|
|
1759
|
+
return ke({}, mt);
|
|
1760
|
+
}
|
|
1761
|
+
var Ht = function(t) {
|
|
1762
|
+
var r = t.icon, n = t.className, a = t.onClick, o = t.style, s = t.primaryColor, c = t.secondaryColor, u = xa(t, Os), f = be.useRef(), d = mt;
|
|
1763
|
+
if (s && (d = {
|
|
1764
|
+
primaryColor: s,
|
|
1765
|
+
secondaryColor: c || Ba(s)
|
|
1766
|
+
}), Cs(f), Ss(Gn(r), "icon should be icon definiton, but got ".concat(r)), !Gn(r))
|
|
1767
|
+
return null;
|
|
1768
|
+
var l = r;
|
|
1769
|
+
return l && typeof l.icon == "function" && (l = ke(ke({}, l), {}, {
|
|
1770
|
+
icon: l.icon(d.primaryColor, d.secondaryColor)
|
|
1771
|
+
})), Ir(l.icon, "svg-".concat(l.name), ke(ke({
|
|
1772
|
+
className: n,
|
|
1773
|
+
onClick: a,
|
|
1774
|
+
style: o,
|
|
1775
|
+
"data-icon": l.name,
|
|
1776
|
+
width: "1em",
|
|
1777
|
+
height: "1em",
|
|
1778
|
+
fill: "currentColor",
|
|
1779
|
+
"aria-hidden": "true"
|
|
1780
|
+
}, u), {}, {
|
|
1781
|
+
ref: f
|
|
1782
|
+
}));
|
|
1783
|
+
};
|
|
1784
|
+
Ht.displayName = "IconReact";
|
|
1785
|
+
Ht.getTwoToneColors = xs;
|
|
1786
|
+
Ht.setTwoToneColors = Rs;
|
|
1787
|
+
const Hr = Ht;
|
|
1788
|
+
function Ma(e) {
|
|
1789
|
+
var t = La(e), r = Ra(t, 2), n = r[0], a = r[1];
|
|
1790
|
+
return Hr.setTwoToneColors({
|
|
1791
|
+
primaryColor: n,
|
|
1792
|
+
secondaryColor: a
|
|
1793
|
+
});
|
|
1794
|
+
}
|
|
1795
|
+
function Ts() {
|
|
1796
|
+
var e = Hr.getTwoToneColors();
|
|
1797
|
+
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
1798
|
+
}
|
|
1799
|
+
var Is = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
1800
|
+
Ma(is.primary);
|
|
1801
|
+
var Qt = /* @__PURE__ */ be.forwardRef(function(e, t) {
|
|
1802
|
+
var r, n = e.className, a = e.icon, o = e.spin, s = e.rotate, c = e.tabIndex, u = e.onClick, f = e.twoToneColor, d = xa(e, Is), l = be.useContext(Oa), g = l.prefixCls, A = g === void 0 ? "anticon" : g, E = l.rootClassName, v = Wi(E, A, (r = {}, Or(r, "".concat(A, "-").concat(a.name), !!a.name), Or(r, "".concat(A, "-spin"), !!o || a.name === "loading"), r), n), b = c;
|
|
1803
|
+
b === void 0 && u && (b = -1);
|
|
1804
|
+
var y = s ? {
|
|
1805
|
+
msTransform: "rotate(".concat(s, "deg)"),
|
|
1806
|
+
transform: "rotate(".concat(s, "deg)")
|
|
1807
|
+
} : void 0, p = La(f), w = Ra(p, 2), R = w[0], x = w[1];
|
|
1808
|
+
return /* @__PURE__ */ be.createElement("span", tt({
|
|
1809
|
+
role: "img",
|
|
1810
|
+
"aria-label": a.name
|
|
1811
|
+
}, d, {
|
|
1812
|
+
ref: t,
|
|
1813
|
+
tabIndex: b,
|
|
1814
|
+
onClick: u,
|
|
1815
|
+
className: v
|
|
1816
|
+
}), /* @__PURE__ */ be.createElement(Hr, {
|
|
1817
|
+
icon: a,
|
|
1818
|
+
primaryColor: R,
|
|
1819
|
+
secondaryColor: x,
|
|
1820
|
+
style: y
|
|
1821
|
+
}));
|
|
1822
|
+
});
|
|
1823
|
+
Qt.displayName = "AntdIcon";
|
|
1824
|
+
Qt.getTwoToneColor = Ts;
|
|
1825
|
+
Qt.setTwoToneColor = Ma;
|
|
1826
|
+
const Qr = Qt;
|
|
1827
|
+
var _s = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z" } }] }, name: "logout", theme: "outlined" };
|
|
1828
|
+
const js = _s;
|
|
1829
|
+
var Ua = function(t, r) {
|
|
1830
|
+
return /* @__PURE__ */ be.createElement(Qr, tt({}, t, {
|
|
1831
|
+
ref: r,
|
|
1832
|
+
icon: js
|
|
1833
|
+
}));
|
|
1834
|
+
};
|
|
1835
|
+
process.env.NODE_ENV !== "production" && (Ua.displayName = "LogoutOutlined");
|
|
1836
|
+
const Ds = /* @__PURE__ */ be.forwardRef(Ua);
|
|
1837
|
+
var Ps = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" };
|
|
1838
|
+
const Fs = Ps;
|
|
1839
|
+
var ka = function(t, r) {
|
|
1840
|
+
return /* @__PURE__ */ be.createElement(Qr, tt({}, t, {
|
|
1841
|
+
ref: r,
|
|
1842
|
+
icon: Fs
|
|
1843
|
+
}));
|
|
1844
|
+
};
|
|
1845
|
+
process.env.NODE_ENV !== "production" && (ka.displayName = "PlusOutlined");
|
|
1846
|
+
const Ns = /* @__PURE__ */ be.forwardRef(ka);
|
|
1847
|
+
var Bs = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" } }] }, name: "user", theme: "outlined" };
|
|
1848
|
+
const Ls = Bs;
|
|
1849
|
+
var Va = function(t, r) {
|
|
1850
|
+
return /* @__PURE__ */ be.createElement(Qr, tt({}, t, {
|
|
1851
|
+
ref: r,
|
|
1852
|
+
icon: Ls
|
|
1853
|
+
}));
|
|
1854
|
+
};
|
|
1855
|
+
process.env.NODE_ENV !== "production" && (Va.displayName = "UserOutlined");
|
|
1856
|
+
const Ms = /* @__PURE__ */ be.forwardRef(Va);
|
|
1857
|
+
var Us = typeof global == "object" && global && global.Object === Object && global;
|
|
1858
|
+
const Ga = Us;
|
|
1859
|
+
var ks = typeof self == "object" && self && self.Object === Object && self, Vs = Ga || ks || Function("return this")();
|
|
1860
|
+
const Yt = Vs;
|
|
1861
|
+
var Gs = Yt.Symbol;
|
|
1862
|
+
const Ge = Gs;
|
|
1863
|
+
var Wa = Object.prototype, Ws = Wa.hasOwnProperty, Hs = Wa.toString, gt = Ge ? Ge.toStringTag : void 0;
|
|
1864
|
+
function Qs(e) {
|
|
1865
|
+
var t = Ws.call(e, gt), r = e[gt];
|
|
1866
|
+
try {
|
|
1867
|
+
e[gt] = void 0;
|
|
1868
|
+
var n = !0;
|
|
1869
|
+
} catch {
|
|
1870
|
+
}
|
|
1871
|
+
var a = Hs.call(e);
|
|
1872
|
+
return n && (t ? e[gt] = r : delete e[gt]), a;
|
|
1873
|
+
}
|
|
1874
|
+
var Ys = Object.prototype, zs = Ys.toString;
|
|
1875
|
+
function qs(e) {
|
|
1876
|
+
return zs.call(e);
|
|
1877
|
+
}
|
|
1878
|
+
var Ks = "[object Null]", $s = "[object Undefined]", Hn = Ge ? Ge.toStringTag : void 0;
|
|
1879
|
+
function it(e) {
|
|
1880
|
+
return e == null ? e === void 0 ? $s : Ks : Hn && Hn in Object(e) ? Qs(e) : qs(e);
|
|
1881
|
+
}
|
|
1882
|
+
function st(e) {
|
|
1883
|
+
return e != null && typeof e == "object";
|
|
1884
|
+
}
|
|
1885
|
+
var Xs = "[object Symbol]";
|
|
1886
|
+
function Yr(e) {
|
|
1887
|
+
return typeof e == "symbol" || st(e) && it(e) == Xs;
|
|
1888
|
+
}
|
|
1889
|
+
function Ha(e, t) {
|
|
1890
|
+
for (var r = -1, n = e == null ? 0 : e.length, a = Array(n); ++r < n; )
|
|
1891
|
+
a[r] = t(e[r], r, e);
|
|
1892
|
+
return a;
|
|
1893
|
+
}
|
|
1894
|
+
var Zs = Array.isArray;
|
|
1895
|
+
const ct = Zs;
|
|
1896
|
+
var Js = 1 / 0, Qn = Ge ? Ge.prototype : void 0, Yn = Qn ? Qn.toString : void 0;
|
|
1897
|
+
function Qa(e) {
|
|
1898
|
+
if (typeof e == "string")
|
|
1899
|
+
return e;
|
|
1900
|
+
if (ct(e))
|
|
1901
|
+
return Ha(e, Qa) + "";
|
|
1902
|
+
if (Yr(e))
|
|
1903
|
+
return Yn ? Yn.call(e) : "";
|
|
1904
|
+
var t = e + "";
|
|
1905
|
+
return t == "0" && 1 / e == -Js ? "-0" : t;
|
|
1906
|
+
}
|
|
1907
|
+
function rt(e) {
|
|
1908
|
+
var t = typeof e;
|
|
1909
|
+
return e != null && (t == "object" || t == "function");
|
|
1910
|
+
}
|
|
1911
|
+
function Ya(e) {
|
|
1912
|
+
return e;
|
|
1913
|
+
}
|
|
1914
|
+
var ec = "[object AsyncFunction]", tc = "[object Function]", rc = "[object GeneratorFunction]", nc = "[object Proxy]";
|
|
1915
|
+
function za(e) {
|
|
1916
|
+
if (!rt(e))
|
|
1917
|
+
return !1;
|
|
1918
|
+
var t = it(e);
|
|
1919
|
+
return t == tc || t == rc || t == ec || t == nc;
|
|
1920
|
+
}
|
|
1921
|
+
var ac = Yt["__core-js_shared__"];
|
|
1922
|
+
const gr = ac;
|
|
1923
|
+
var zn = function() {
|
|
1924
|
+
var e = /[^.]+$/.exec(gr && gr.keys && gr.keys.IE_PROTO || "");
|
|
1925
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
1926
|
+
}();
|
|
1927
|
+
function oc(e) {
|
|
1928
|
+
return !!zn && zn in e;
|
|
1929
|
+
}
|
|
1930
|
+
var ic = Function.prototype, sc = ic.toString;
|
|
1931
|
+
function cc(e) {
|
|
1932
|
+
if (e != null) {
|
|
1933
|
+
try {
|
|
1934
|
+
return sc.call(e);
|
|
1935
|
+
} catch {
|
|
1936
|
+
}
|
|
1937
|
+
try {
|
|
1938
|
+
return e + "";
|
|
1939
|
+
} catch {
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
return "";
|
|
1943
|
+
}
|
|
1944
|
+
var uc = /[\\^$.*+?()[\]{}|]/g, lc = /^\[object .+?Constructor\]$/, fc = Function.prototype, dc = Object.prototype, Ac = fc.toString, gc = dc.hasOwnProperty, pc = RegExp(
|
|
1945
|
+
"^" + Ac.call(gc).replace(uc, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1946
|
+
);
|
|
1947
|
+
function hc(e) {
|
|
1948
|
+
if (!rt(e) || oc(e))
|
|
1949
|
+
return !1;
|
|
1950
|
+
var t = za(e) ? pc : lc;
|
|
1951
|
+
return t.test(cc(e));
|
|
1952
|
+
}
|
|
1953
|
+
function mc(e, t) {
|
|
1954
|
+
return e == null ? void 0 : e[t];
|
|
1955
|
+
}
|
|
1956
|
+
function zr(e, t) {
|
|
1957
|
+
var r = mc(e, t);
|
|
1958
|
+
return hc(r) ? r : void 0;
|
|
1959
|
+
}
|
|
1960
|
+
function qa(e, t, r) {
|
|
1961
|
+
switch (r.length) {
|
|
1962
|
+
case 0:
|
|
1963
|
+
return e.call(t);
|
|
1964
|
+
case 1:
|
|
1965
|
+
return e.call(t, r[0]);
|
|
1966
|
+
case 2:
|
|
1967
|
+
return e.call(t, r[0], r[1]);
|
|
1968
|
+
case 3:
|
|
1969
|
+
return e.call(t, r[0], r[1], r[2]);
|
|
1970
|
+
}
|
|
1971
|
+
return e.apply(t, r);
|
|
1972
|
+
}
|
|
1973
|
+
var vc = 800, yc = 16, bc = Date.now;
|
|
1974
|
+
function Ec(e) {
|
|
1975
|
+
var t = 0, r = 0;
|
|
1976
|
+
return function() {
|
|
1977
|
+
var n = bc(), a = yc - (n - r);
|
|
1978
|
+
if (r = n, a > 0) {
|
|
1979
|
+
if (++t >= vc)
|
|
1980
|
+
return arguments[0];
|
|
1981
|
+
} else
|
|
1982
|
+
t = 0;
|
|
1983
|
+
return e.apply(void 0, arguments);
|
|
1984
|
+
};
|
|
1985
|
+
}
|
|
1986
|
+
function Sc(e) {
|
|
1987
|
+
return function() {
|
|
1988
|
+
return e;
|
|
1989
|
+
};
|
|
1990
|
+
}
|
|
1991
|
+
var wc = function() {
|
|
1992
|
+
try {
|
|
1993
|
+
var e = zr(Object, "defineProperty");
|
|
1994
|
+
return e({}, "", {}), e;
|
|
1995
|
+
} catch {
|
|
1996
|
+
}
|
|
1997
|
+
}();
|
|
1998
|
+
const kt = wc;
|
|
1999
|
+
var Cc = kt ? function(e, t) {
|
|
2000
|
+
return kt(e, "toString", {
|
|
2001
|
+
configurable: !0,
|
|
2002
|
+
enumerable: !1,
|
|
2003
|
+
value: Sc(t),
|
|
2004
|
+
writable: !0
|
|
2005
|
+
});
|
|
2006
|
+
} : Ya;
|
|
2007
|
+
const Oc = Cc;
|
|
2008
|
+
var Rc = Ec(Oc);
|
|
2009
|
+
const Ka = Rc;
|
|
2010
|
+
var xc = 9007199254740991, Tc = /^(?:0|[1-9]\d*)$/;
|
|
2011
|
+
function zt(e, t) {
|
|
2012
|
+
var r = typeof e;
|
|
2013
|
+
return t = t ?? xc, !!t && (r == "number" || r != "symbol" && Tc.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
2014
|
+
}
|
|
2015
|
+
function $a(e, t, r) {
|
|
2016
|
+
t == "__proto__" && kt ? kt(e, t, {
|
|
2017
|
+
configurable: !0,
|
|
2018
|
+
enumerable: !0,
|
|
2019
|
+
value: r,
|
|
2020
|
+
writable: !0
|
|
2021
|
+
}) : e[t] = r;
|
|
2022
|
+
}
|
|
2023
|
+
function qt(e, t) {
|
|
2024
|
+
return e === t || e !== e && t !== t;
|
|
2025
|
+
}
|
|
2026
|
+
var Ic = Object.prototype, _c = Ic.hasOwnProperty;
|
|
2027
|
+
function Xa(e, t, r) {
|
|
2028
|
+
var n = e[t];
|
|
2029
|
+
(!(_c.call(e, t) && qt(n, r)) || r === void 0 && !(t in e)) && $a(e, t, r);
|
|
2030
|
+
}
|
|
2031
|
+
function jc(e, t, r, n) {
|
|
2032
|
+
var a = !r;
|
|
2033
|
+
r || (r = {});
|
|
2034
|
+
for (var o = -1, s = t.length; ++o < s; ) {
|
|
2035
|
+
var c = t[o], u = n ? n(r[c], e[c], c, r, e) : void 0;
|
|
2036
|
+
u === void 0 && (u = e[c]), a ? $a(r, c, u) : Xa(r, c, u);
|
|
2037
|
+
}
|
|
2038
|
+
return r;
|
|
2039
|
+
}
|
|
2040
|
+
var qn = Math.max;
|
|
2041
|
+
function Za(e, t, r) {
|
|
2042
|
+
return t = qn(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
2043
|
+
for (var n = arguments, a = -1, o = qn(n.length - t, 0), s = Array(o); ++a < o; )
|
|
2044
|
+
s[a] = n[t + a];
|
|
2045
|
+
a = -1;
|
|
2046
|
+
for (var c = Array(t + 1); ++a < t; )
|
|
2047
|
+
c[a] = n[a];
|
|
2048
|
+
return c[t] = r(s), qa(e, this, c);
|
|
2049
|
+
};
|
|
2050
|
+
}
|
|
2051
|
+
function Ja(e, t) {
|
|
2052
|
+
return Ka(Za(e, t, Ya), e + "");
|
|
2053
|
+
}
|
|
2054
|
+
var Dc = 9007199254740991;
|
|
2055
|
+
function qr(e) {
|
|
2056
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Dc;
|
|
2057
|
+
}
|
|
2058
|
+
function Kr(e) {
|
|
2059
|
+
return e != null && qr(e.length) && !za(e);
|
|
2060
|
+
}
|
|
2061
|
+
function eo(e, t, r) {
|
|
2062
|
+
if (!rt(r))
|
|
2063
|
+
return !1;
|
|
2064
|
+
var n = typeof t;
|
|
2065
|
+
return (n == "number" ? Kr(r) && zt(t, r.length) : n == "string" && t in r) ? qt(r[t], e) : !1;
|
|
2066
|
+
}
|
|
2067
|
+
function Pc(e) {
|
|
2068
|
+
return Ja(function(t, r) {
|
|
2069
|
+
var n = -1, a = r.length, o = a > 1 ? r[a - 1] : void 0, s = a > 2 ? r[2] : void 0;
|
|
2070
|
+
for (o = e.length > 3 && typeof o == "function" ? (a--, o) : void 0, s && eo(r[0], r[1], s) && (o = a < 3 ? void 0 : o, a = 1), t = Object(t); ++n < a; ) {
|
|
2071
|
+
var c = r[n];
|
|
2072
|
+
c && e(t, c, n, o);
|
|
2073
|
+
}
|
|
2074
|
+
return t;
|
|
2075
|
+
});
|
|
2076
|
+
}
|
|
2077
|
+
var Fc = Object.prototype;
|
|
2078
|
+
function to(e) {
|
|
2079
|
+
var t = e && e.constructor, r = typeof t == "function" && t.prototype || Fc;
|
|
2080
|
+
return e === r;
|
|
2081
|
+
}
|
|
2082
|
+
function Nc(e, t) {
|
|
2083
|
+
for (var r = -1, n = Array(e); ++r < e; )
|
|
2084
|
+
n[r] = t(r);
|
|
2085
|
+
return n;
|
|
2086
|
+
}
|
|
2087
|
+
var Bc = "[object Arguments]";
|
|
2088
|
+
function Kn(e) {
|
|
2089
|
+
return st(e) && it(e) == Bc;
|
|
2090
|
+
}
|
|
2091
|
+
var ro = Object.prototype, Lc = ro.hasOwnProperty, Mc = ro.propertyIsEnumerable, Uc = Kn(/* @__PURE__ */ function() {
|
|
2092
|
+
return arguments;
|
|
2093
|
+
}()) ? Kn : function(e) {
|
|
2094
|
+
return st(e) && Lc.call(e, "callee") && !Mc.call(e, "callee");
|
|
2095
|
+
};
|
|
2096
|
+
const $r = Uc;
|
|
2097
|
+
function kc() {
|
|
2098
|
+
return !1;
|
|
2099
|
+
}
|
|
2100
|
+
var no = typeof exports == "object" && exports && !exports.nodeType && exports, $n = no && typeof module == "object" && module && !module.nodeType && module, Vc = $n && $n.exports === no, Xn = Vc ? Yt.Buffer : void 0, Gc = Xn ? Xn.isBuffer : void 0, Wc = Gc || kc;
|
|
2101
|
+
const Hc = Wc;
|
|
2102
|
+
var Qc = "[object Arguments]", Yc = "[object Array]", zc = "[object Boolean]", qc = "[object Date]", Kc = "[object Error]", $c = "[object Function]", Xc = "[object Map]", Zc = "[object Number]", Jc = "[object Object]", eu = "[object RegExp]", tu = "[object Set]", ru = "[object String]", nu = "[object WeakMap]", au = "[object ArrayBuffer]", ou = "[object DataView]", iu = "[object Float32Array]", su = "[object Float64Array]", cu = "[object Int8Array]", uu = "[object Int16Array]", lu = "[object Int32Array]", fu = "[object Uint8Array]", du = "[object Uint8ClampedArray]", Au = "[object Uint16Array]", gu = "[object Uint32Array]", z = {};
|
|
2103
|
+
z[iu] = z[su] = z[cu] = z[uu] = z[lu] = z[fu] = z[du] = z[Au] = z[gu] = !0;
|
|
2104
|
+
z[Qc] = z[Yc] = z[au] = z[zc] = z[ou] = z[qc] = z[Kc] = z[$c] = z[Xc] = z[Zc] = z[Jc] = z[eu] = z[tu] = z[ru] = z[nu] = !1;
|
|
2105
|
+
function pu(e) {
|
|
2106
|
+
return st(e) && qr(e.length) && !!z[it(e)];
|
|
2107
|
+
}
|
|
2108
|
+
function hu(e) {
|
|
2109
|
+
return function(t) {
|
|
2110
|
+
return e(t);
|
|
2111
|
+
};
|
|
2112
|
+
}
|
|
2113
|
+
var ao = typeof exports == "object" && exports && !exports.nodeType && exports, vt = ao && typeof module == "object" && module && !module.nodeType && module, mu = vt && vt.exports === ao, pr = mu && Ga.process, vu = function() {
|
|
2114
|
+
try {
|
|
2115
|
+
var e = vt && vt.require && vt.require("util").types;
|
|
2116
|
+
return e || pr && pr.binding && pr.binding("util");
|
|
2117
|
+
} catch {
|
|
2118
|
+
}
|
|
2119
|
+
}();
|
|
2120
|
+
const Zn = vu;
|
|
2121
|
+
var Jn = Zn && Zn.isTypedArray, yu = Jn ? hu(Jn) : pu;
|
|
2122
|
+
const bu = yu;
|
|
2123
|
+
var Eu = Object.prototype, Su = Eu.hasOwnProperty;
|
|
2124
|
+
function oo(e, t) {
|
|
2125
|
+
var r = ct(e), n = !r && $r(e), a = !r && !n && Hc(e), o = !r && !n && !a && bu(e), s = r || n || a || o, c = s ? Nc(e.length, String) : [], u = c.length;
|
|
2126
|
+
for (var f in e)
|
|
2127
|
+
(t || Su.call(e, f)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
2128
|
+
(f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
2129
|
+
a && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
2130
|
+
o && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
|
|
2131
|
+
zt(f, u))) && c.push(f);
|
|
2132
|
+
return c;
|
|
2133
|
+
}
|
|
2134
|
+
function io(e, t) {
|
|
2135
|
+
return function(r) {
|
|
2136
|
+
return e(t(r));
|
|
2137
|
+
};
|
|
2138
|
+
}
|
|
2139
|
+
var wu = io(Object.keys, Object);
|
|
2140
|
+
const Cu = wu;
|
|
2141
|
+
var Ou = Object.prototype, Ru = Ou.hasOwnProperty;
|
|
2142
|
+
function xu(e) {
|
|
2143
|
+
if (!to(e))
|
|
2144
|
+
return Cu(e);
|
|
2145
|
+
var t = [];
|
|
2146
|
+
for (var r in Object(e))
|
|
2147
|
+
Ru.call(e, r) && r != "constructor" && t.push(r);
|
|
2148
|
+
return t;
|
|
2149
|
+
}
|
|
2150
|
+
function Tu(e) {
|
|
2151
|
+
return Kr(e) ? oo(e) : xu(e);
|
|
2152
|
+
}
|
|
2153
|
+
function Iu(e) {
|
|
2154
|
+
var t = [];
|
|
2155
|
+
if (e != null)
|
|
2156
|
+
for (var r in Object(e))
|
|
2157
|
+
t.push(r);
|
|
2158
|
+
return t;
|
|
2159
|
+
}
|
|
2160
|
+
var _u = Object.prototype, ju = _u.hasOwnProperty;
|
|
2161
|
+
function Du(e) {
|
|
2162
|
+
if (!rt(e))
|
|
2163
|
+
return Iu(e);
|
|
2164
|
+
var t = to(e), r = [];
|
|
2165
|
+
for (var n in e)
|
|
2166
|
+
n == "constructor" && (t || !ju.call(e, n)) || r.push(n);
|
|
2167
|
+
return r;
|
|
2168
|
+
}
|
|
2169
|
+
function Pu(e) {
|
|
2170
|
+
return Kr(e) ? oo(e, !0) : Du(e);
|
|
2171
|
+
}
|
|
2172
|
+
var Fu = Pc(function(e, t, r, n) {
|
|
2173
|
+
jc(t, Pu(t), e, n);
|
|
2174
|
+
});
|
|
2175
|
+
const ea = Fu;
|
|
2176
|
+
var Nu = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Bu = /^\w*$/;
|
|
2177
|
+
function Lu(e, t) {
|
|
2178
|
+
if (ct(e))
|
|
2179
|
+
return !1;
|
|
2180
|
+
var r = typeof e;
|
|
2181
|
+
return r == "number" || r == "symbol" || r == "boolean" || e == null || Yr(e) ? !0 : Bu.test(e) || !Nu.test(e) || t != null && e in Object(t);
|
|
2182
|
+
}
|
|
2183
|
+
var Mu = zr(Object, "create");
|
|
2184
|
+
const Et = Mu;
|
|
2185
|
+
function Uu() {
|
|
2186
|
+
this.__data__ = Et ? Et(null) : {}, this.size = 0;
|
|
2187
|
+
}
|
|
2188
|
+
function ku(e) {
|
|
2189
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
2190
|
+
return this.size -= t ? 1 : 0, t;
|
|
2191
|
+
}
|
|
2192
|
+
var Vu = "__lodash_hash_undefined__", Gu = Object.prototype, Wu = Gu.hasOwnProperty;
|
|
2193
|
+
function Hu(e) {
|
|
2194
|
+
var t = this.__data__;
|
|
2195
|
+
if (Et) {
|
|
2196
|
+
var r = t[e];
|
|
2197
|
+
return r === Vu ? void 0 : r;
|
|
2198
|
+
}
|
|
2199
|
+
return Wu.call(t, e) ? t[e] : void 0;
|
|
2200
|
+
}
|
|
2201
|
+
var Qu = Object.prototype, Yu = Qu.hasOwnProperty;
|
|
2202
|
+
function zu(e) {
|
|
2203
|
+
var t = this.__data__;
|
|
2204
|
+
return Et ? t[e] !== void 0 : Yu.call(t, e);
|
|
2205
|
+
}
|
|
2206
|
+
var qu = "__lodash_hash_undefined__";
|
|
2207
|
+
function Ku(e, t) {
|
|
2208
|
+
var r = this.__data__;
|
|
2209
|
+
return this.size += this.has(e) ? 0 : 1, r[e] = Et && t === void 0 ? qu : t, this;
|
|
2210
|
+
}
|
|
2211
|
+
function ze(e) {
|
|
2212
|
+
var t = -1, r = e == null ? 0 : e.length;
|
|
2213
|
+
for (this.clear(); ++t < r; ) {
|
|
2214
|
+
var n = e[t];
|
|
2215
|
+
this.set(n[0], n[1]);
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
ze.prototype.clear = Uu;
|
|
2219
|
+
ze.prototype.delete = ku;
|
|
2220
|
+
ze.prototype.get = Hu;
|
|
2221
|
+
ze.prototype.has = zu;
|
|
2222
|
+
ze.prototype.set = Ku;
|
|
2223
|
+
function $u() {
|
|
2224
|
+
this.__data__ = [], this.size = 0;
|
|
2225
|
+
}
|
|
2226
|
+
function Kt(e, t) {
|
|
2227
|
+
for (var r = e.length; r--; )
|
|
2228
|
+
if (qt(e[r][0], t))
|
|
2229
|
+
return r;
|
|
2230
|
+
return -1;
|
|
2231
|
+
}
|
|
2232
|
+
var Xu = Array.prototype, Zu = Xu.splice;
|
|
2233
|
+
function Ju(e) {
|
|
2234
|
+
var t = this.__data__, r = Kt(t, e);
|
|
2235
|
+
if (r < 0)
|
|
2236
|
+
return !1;
|
|
2237
|
+
var n = t.length - 1;
|
|
2238
|
+
return r == n ? t.pop() : Zu.call(t, r, 1), --this.size, !0;
|
|
2239
|
+
}
|
|
2240
|
+
function el(e) {
|
|
2241
|
+
var t = this.__data__, r = Kt(t, e);
|
|
2242
|
+
return r < 0 ? void 0 : t[r][1];
|
|
2243
|
+
}
|
|
2244
|
+
function tl(e) {
|
|
2245
|
+
return Kt(this.__data__, e) > -1;
|
|
2246
|
+
}
|
|
2247
|
+
function rl(e, t) {
|
|
2248
|
+
var r = this.__data__, n = Kt(r, e);
|
|
2249
|
+
return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
|
|
2250
|
+
}
|
|
2251
|
+
function ut(e) {
|
|
2252
|
+
var t = -1, r = e == null ? 0 : e.length;
|
|
2253
|
+
for (this.clear(); ++t < r; ) {
|
|
2254
|
+
var n = e[t];
|
|
2255
|
+
this.set(n[0], n[1]);
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
ut.prototype.clear = $u;
|
|
2259
|
+
ut.prototype.delete = Ju;
|
|
2260
|
+
ut.prototype.get = el;
|
|
2261
|
+
ut.prototype.has = tl;
|
|
2262
|
+
ut.prototype.set = rl;
|
|
2263
|
+
var nl = zr(Yt, "Map");
|
|
2264
|
+
const al = nl;
|
|
2265
|
+
function ol() {
|
|
2266
|
+
this.size = 0, this.__data__ = {
|
|
2267
|
+
hash: new ze(),
|
|
2268
|
+
map: new (al || ut)(),
|
|
2269
|
+
string: new ze()
|
|
2270
|
+
};
|
|
2271
|
+
}
|
|
2272
|
+
function il(e) {
|
|
2273
|
+
var t = typeof e;
|
|
2274
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
2275
|
+
}
|
|
2276
|
+
function $t(e, t) {
|
|
2277
|
+
var r = e.__data__;
|
|
2278
|
+
return il(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
2279
|
+
}
|
|
2280
|
+
function sl(e) {
|
|
2281
|
+
var t = $t(this, e).delete(e);
|
|
2282
|
+
return this.size -= t ? 1 : 0, t;
|
|
2283
|
+
}
|
|
2284
|
+
function cl(e) {
|
|
2285
|
+
return $t(this, e).get(e);
|
|
2286
|
+
}
|
|
2287
|
+
function ul(e) {
|
|
2288
|
+
return $t(this, e).has(e);
|
|
2289
|
+
}
|
|
2290
|
+
function ll(e, t) {
|
|
2291
|
+
var r = $t(this, e), n = r.size;
|
|
2292
|
+
return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
|
|
2293
|
+
}
|
|
2294
|
+
function qe(e) {
|
|
2295
|
+
var t = -1, r = e == null ? 0 : e.length;
|
|
2296
|
+
for (this.clear(); ++t < r; ) {
|
|
2297
|
+
var n = e[t];
|
|
2298
|
+
this.set(n[0], n[1]);
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
qe.prototype.clear = ol;
|
|
2302
|
+
qe.prototype.delete = sl;
|
|
2303
|
+
qe.prototype.get = cl;
|
|
2304
|
+
qe.prototype.has = ul;
|
|
2305
|
+
qe.prototype.set = ll;
|
|
2306
|
+
var fl = "Expected a function";
|
|
2307
|
+
function Xr(e, t) {
|
|
2308
|
+
if (typeof e != "function" || t != null && typeof t != "function")
|
|
2309
|
+
throw new TypeError(fl);
|
|
2310
|
+
var r = function() {
|
|
2311
|
+
var n = arguments, a = t ? t.apply(this, n) : n[0], o = r.cache;
|
|
2312
|
+
if (o.has(a))
|
|
2313
|
+
return o.get(a);
|
|
2314
|
+
var s = e.apply(this, n);
|
|
2315
|
+
return r.cache = o.set(a, s) || o, s;
|
|
2316
|
+
};
|
|
2317
|
+
return r.cache = new (Xr.Cache || qe)(), r;
|
|
2318
|
+
}
|
|
2319
|
+
Xr.Cache = qe;
|
|
2320
|
+
var dl = 500;
|
|
2321
|
+
function Al(e) {
|
|
2322
|
+
var t = Xr(e, function(n) {
|
|
2323
|
+
return r.size === dl && r.clear(), n;
|
|
2324
|
+
}), r = t.cache;
|
|
2325
|
+
return t;
|
|
2326
|
+
}
|
|
2327
|
+
var gl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, pl = /\\(\\)?/g, hl = Al(function(e) {
|
|
2328
|
+
var t = [];
|
|
2329
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(gl, function(r, n, a, o) {
|
|
2330
|
+
t.push(a ? o.replace(pl, "$1") : n || r);
|
|
2331
|
+
}), t;
|
|
2332
|
+
});
|
|
2333
|
+
const ml = hl;
|
|
2334
|
+
function Zr(e) {
|
|
2335
|
+
return e == null ? "" : Qa(e);
|
|
2336
|
+
}
|
|
2337
|
+
function Xt(e, t) {
|
|
2338
|
+
return ct(e) ? e : Lu(e, t) ? [e] : ml(Zr(e));
|
|
2339
|
+
}
|
|
2340
|
+
var vl = 1 / 0;
|
|
2341
|
+
function Jr(e) {
|
|
2342
|
+
if (typeof e == "string" || Yr(e))
|
|
2343
|
+
return e;
|
|
2344
|
+
var t = e + "";
|
|
2345
|
+
return t == "0" && 1 / e == -vl ? "-0" : t;
|
|
2346
|
+
}
|
|
2347
|
+
function so(e, t) {
|
|
2348
|
+
t = Xt(t, e);
|
|
2349
|
+
for (var r = 0, n = t.length; e != null && r < n; )
|
|
2350
|
+
e = e[Jr(t[r++])];
|
|
2351
|
+
return r && r == n ? e : void 0;
|
|
2352
|
+
}
|
|
2353
|
+
function yl(e, t, r) {
|
|
2354
|
+
var n = e == null ? void 0 : so(e, t);
|
|
2355
|
+
return n === void 0 ? r : n;
|
|
2356
|
+
}
|
|
2357
|
+
function bl(e, t) {
|
|
2358
|
+
for (var r = -1, n = t.length, a = e.length; ++r < n; )
|
|
2359
|
+
e[a + r] = t[r];
|
|
2360
|
+
return e;
|
|
2361
|
+
}
|
|
2362
|
+
var ta = Ge ? Ge.isConcatSpreadable : void 0;
|
|
2363
|
+
function El(e) {
|
|
2364
|
+
return ct(e) || $r(e) || !!(ta && e && e[ta]);
|
|
2365
|
+
}
|
|
2366
|
+
function co(e, t, r, n, a) {
|
|
2367
|
+
var o = -1, s = e.length;
|
|
2368
|
+
for (r || (r = El), a || (a = []); ++o < s; ) {
|
|
2369
|
+
var c = e[o];
|
|
2370
|
+
t > 0 && r(c) ? t > 1 ? co(c, t - 1, r, n, a) : bl(a, c) : n || (a[a.length] = c);
|
|
2371
|
+
}
|
|
2372
|
+
return a;
|
|
2373
|
+
}
|
|
2374
|
+
function Sl(e) {
|
|
2375
|
+
var t = e == null ? 0 : e.length;
|
|
2376
|
+
return t ? co(e, 1) : [];
|
|
2377
|
+
}
|
|
2378
|
+
function wl(e) {
|
|
2379
|
+
return Ka(Za(e, void 0, Sl), e + "");
|
|
2380
|
+
}
|
|
2381
|
+
var Cl = io(Object.getPrototypeOf, Object);
|
|
2382
|
+
const Ol = Cl;
|
|
2383
|
+
var Rl = "[object Object]", xl = Function.prototype, Tl = Object.prototype, uo = xl.toString, Il = Tl.hasOwnProperty, _l = uo.call(Object);
|
|
2384
|
+
function jl(e) {
|
|
2385
|
+
if (!st(e) || it(e) != Rl)
|
|
2386
|
+
return !1;
|
|
2387
|
+
var t = Ol(e);
|
|
2388
|
+
if (t === null)
|
|
2389
|
+
return !0;
|
|
2390
|
+
var r = Il.call(t, "constructor") && t.constructor;
|
|
2391
|
+
return typeof r == "function" && r instanceof r && uo.call(r) == _l;
|
|
2392
|
+
}
|
|
2393
|
+
var Dl = "[object DOMException]", Pl = "[object Error]";
|
|
2394
|
+
function lo(e) {
|
|
2395
|
+
if (!st(e))
|
|
2396
|
+
return !1;
|
|
2397
|
+
var t = it(e);
|
|
2398
|
+
return t == Pl || t == Dl || typeof e.message == "string" && typeof e.name == "string" && !jl(e);
|
|
2399
|
+
}
|
|
2400
|
+
var Fl = Ja(function(e, t) {
|
|
2401
|
+
try {
|
|
2402
|
+
return qa(e, void 0, t);
|
|
2403
|
+
} catch (r) {
|
|
2404
|
+
return lo(r) ? r : new Error(r);
|
|
2405
|
+
}
|
|
2406
|
+
});
|
|
2407
|
+
const Nl = Fl;
|
|
2408
|
+
function Bl(e) {
|
|
2409
|
+
return function(t) {
|
|
2410
|
+
return e == null ? void 0 : e[t];
|
|
2411
|
+
};
|
|
2412
|
+
}
|
|
2413
|
+
function Ll(e, t) {
|
|
2414
|
+
return e != null && t in Object(e);
|
|
2415
|
+
}
|
|
2416
|
+
function fo(e, t, r) {
|
|
2417
|
+
t = Xt(t, e);
|
|
2418
|
+
for (var n = -1, a = t.length, o = !1; ++n < a; ) {
|
|
2419
|
+
var s = Jr(t[n]);
|
|
2420
|
+
if (!(o = e != null && r(e, s)))
|
|
2421
|
+
break;
|
|
2422
|
+
e = e[s];
|
|
2423
|
+
}
|
|
2424
|
+
return o || ++n != a ? o : (a = e == null ? 0 : e.length, !!a && qr(a) && zt(s, a) && (ct(e) || $r(e)));
|
|
2425
|
+
}
|
|
2426
|
+
function Ml(e, t) {
|
|
2427
|
+
return e != null && fo(e, t, Ll);
|
|
2428
|
+
}
|
|
2429
|
+
var Ul = {
|
|
2430
|
+
"&": "&",
|
|
2431
|
+
"<": "<",
|
|
2432
|
+
">": ">",
|
|
2433
|
+
'"': """,
|
|
2434
|
+
"'": "'"
|
|
2435
|
+
}, kl = Bl(Ul);
|
|
2436
|
+
const Vl = kl;
|
|
2437
|
+
var Ao = /[&<>"']/g, Gl = RegExp(Ao.source);
|
|
2438
|
+
function Wl(e) {
|
|
2439
|
+
return e = Zr(e), e && Gl.test(e) ? e.replace(Ao, Vl) : e;
|
|
2440
|
+
}
|
|
2441
|
+
var Hl = Object.prototype, Ql = Hl.hasOwnProperty;
|
|
2442
|
+
function Yl(e, t) {
|
|
2443
|
+
return e != null && Ql.call(e, t);
|
|
2444
|
+
}
|
|
2445
|
+
function zl(e, t) {
|
|
2446
|
+
return e != null && fo(e, t, Yl);
|
|
2447
|
+
}
|
|
2448
|
+
function ql(e, t) {
|
|
2449
|
+
return Ha(t, function(r) {
|
|
2450
|
+
return e[r];
|
|
2451
|
+
});
|
|
2452
|
+
}
|
|
2453
|
+
function Kl(e, t, r, n) {
|
|
2454
|
+
if (!rt(e))
|
|
2455
|
+
return e;
|
|
2456
|
+
t = Xt(t, e);
|
|
2457
|
+
for (var a = -1, o = t.length, s = o - 1, c = e; c != null && ++a < o; ) {
|
|
2458
|
+
var u = Jr(t[a]), f = r;
|
|
2459
|
+
if (u === "__proto__" || u === "constructor" || u === "prototype")
|
|
2460
|
+
return e;
|
|
2461
|
+
if (a != s) {
|
|
2462
|
+
var d = c[u];
|
|
2463
|
+
f = n ? n(d, u, c) : void 0, f === void 0 && (f = rt(d) ? d : zt(t[a + 1]) ? [] : {});
|
|
2464
|
+
}
|
|
2465
|
+
Xa(c, u, f), c = c[u];
|
|
2466
|
+
}
|
|
2467
|
+
return e;
|
|
2468
|
+
}
|
|
2469
|
+
function $l(e, t, r) {
|
|
2470
|
+
for (var n = -1, a = t.length, o = {}; ++n < a; ) {
|
|
2471
|
+
var s = t[n], c = so(e, s);
|
|
2472
|
+
r(c, s) && Kl(o, Xt(s, e), c);
|
|
2473
|
+
}
|
|
2474
|
+
return o;
|
|
2475
|
+
}
|
|
2476
|
+
function Xl(e, t) {
|
|
2477
|
+
return $l(e, t, function(r, n) {
|
|
2478
|
+
return Ml(e, n);
|
|
2479
|
+
});
|
|
2480
|
+
}
|
|
2481
|
+
var Zl = wl(function(e, t) {
|
|
2482
|
+
return e == null ? {} : Xl(e, t);
|
|
2483
|
+
});
|
|
2484
|
+
const Jl = Zl;
|
|
2485
|
+
var go = Object.prototype, ef = go.hasOwnProperty;
|
|
2486
|
+
function ra(e, t, r, n) {
|
|
2487
|
+
return e === void 0 || qt(e, go[r]) && !ef.call(n, r) ? t : e;
|
|
2488
|
+
}
|
|
2489
|
+
var tf = {
|
|
2490
|
+
"\\": "\\",
|
|
2491
|
+
"'": "'",
|
|
2492
|
+
"\n": "n",
|
|
2493
|
+
"\r": "r",
|
|
2494
|
+
"\u2028": "u2028",
|
|
2495
|
+
"\u2029": "u2029"
|
|
2496
|
+
};
|
|
2497
|
+
function rf(e) {
|
|
2498
|
+
return "\\" + tf[e];
|
|
2499
|
+
}
|
|
2500
|
+
var nf = /<%=([\s\S]+?)%>/g;
|
|
2501
|
+
const po = nf;
|
|
2502
|
+
var af = /<%-([\s\S]+?)%>/g;
|
|
2503
|
+
const of = af;
|
|
2504
|
+
var sf = /<%([\s\S]+?)%>/g;
|
|
2505
|
+
const cf = sf;
|
|
2506
|
+
var uf = {
|
|
2507
|
+
/**
|
|
2508
|
+
* Used to detect `data` property values to be HTML-escaped.
|
|
2509
|
+
*
|
|
2510
|
+
* @memberOf _.templateSettings
|
|
2511
|
+
* @type {RegExp}
|
|
2512
|
+
*/
|
|
2513
|
+
escape: of,
|
|
2514
|
+
/**
|
|
2515
|
+
* Used to detect code to be evaluated.
|
|
2516
|
+
*
|
|
2517
|
+
* @memberOf _.templateSettings
|
|
2518
|
+
* @type {RegExp}
|
|
2519
|
+
*/
|
|
2520
|
+
evaluate: cf,
|
|
2521
|
+
/**
|
|
2522
|
+
* Used to detect `data` property values to inject.
|
|
2523
|
+
*
|
|
2524
|
+
* @memberOf _.templateSettings
|
|
2525
|
+
* @type {RegExp}
|
|
2526
|
+
*/
|
|
2527
|
+
interpolate: po,
|
|
2528
|
+
/**
|
|
2529
|
+
* Used to reference the data object in the template text.
|
|
2530
|
+
*
|
|
2531
|
+
* @memberOf _.templateSettings
|
|
2532
|
+
* @type {string}
|
|
2533
|
+
*/
|
|
2534
|
+
variable: "",
|
|
2535
|
+
/**
|
|
2536
|
+
* Used to import variables into the compiled template.
|
|
2537
|
+
*
|
|
2538
|
+
* @memberOf _.templateSettings
|
|
2539
|
+
* @type {Object}
|
|
2540
|
+
*/
|
|
2541
|
+
imports: {
|
|
2542
|
+
/**
|
|
2543
|
+
* A reference to the `lodash` function.
|
|
2544
|
+
*
|
|
2545
|
+
* @memberOf _.templateSettings.imports
|
|
2546
|
+
* @type {Function}
|
|
2547
|
+
*/
|
|
2548
|
+
_: { escape: Wl }
|
|
2549
|
+
}
|
|
2550
|
+
};
|
|
2551
|
+
const na = uf;
|
|
2552
|
+
var lf = "Invalid `variable` option passed into `_.template`", ff = /\b__p \+= '';/g, df = /\b(__p \+=) '' \+/g, Af = /(__e\(.*?\)|\b__t\)) \+\n'';/g, gf = /[()=,{}\[\]\/\s]/, pf = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Dt = /($^)/, hf = /['\n\r\u2028\u2029\\]/g, mf = Object.prototype, aa = mf.hasOwnProperty;
|
|
2553
|
+
function vf(e, t, r) {
|
|
2554
|
+
var n = na.imports._.templateSettings || na;
|
|
2555
|
+
r && eo(e, t, r) && (t = void 0), e = Zr(e), t = ea({}, t, n, ra);
|
|
2556
|
+
var a = ea({}, t.imports, n.imports, ra), o = Tu(a), s = ql(a, o), c, u, f = 0, d = t.interpolate || Dt, l = "__p += '", g = RegExp(
|
|
2557
|
+
(t.escape || Dt).source + "|" + d.source + "|" + (d === po ? pf : Dt).source + "|" + (t.evaluate || Dt).source + "|$",
|
|
2558
|
+
"g"
|
|
2559
|
+
), A = aa.call(t, "sourceURL") ? "//# sourceURL=" + (t.sourceURL + "").replace(/\s/g, " ") + `
|
|
2560
|
+
` : "";
|
|
2561
|
+
e.replace(g, function(b, y, p, w, R, x) {
|
|
2562
|
+
return p || (p = w), l += e.slice(f, x).replace(hf, rf), y && (c = !0, l += `' +
|
|
2563
|
+
__e(` + y + `) +
|
|
2564
|
+
'`), R && (u = !0, l += `';
|
|
2565
|
+
` + R + `;
|
|
2566
|
+
__p += '`), p && (l += `' +
|
|
2567
|
+
((__t = (` + p + `)) == null ? '' : __t) +
|
|
2568
|
+
'`), f = x + b.length, b;
|
|
2569
|
+
}), l += `';
|
|
2570
|
+
`;
|
|
2571
|
+
var E = aa.call(t, "variable") && t.variable;
|
|
2572
|
+
if (!E)
|
|
2573
|
+
l = `with (obj) {
|
|
2574
|
+
` + l + `
|
|
2575
|
+
}
|
|
2576
|
+
`;
|
|
2577
|
+
else if (gf.test(E))
|
|
2578
|
+
throw new Error(lf);
|
|
2579
|
+
l = (u ? l.replace(ff, "") : l).replace(df, "$1").replace(Af, "$1;"), l = "function(" + (E || "obj") + `) {
|
|
2580
|
+
` + (E ? "" : `obj || (obj = {});
|
|
2581
|
+
`) + "var __t, __p = ''" + (c ? ", __e = _.escape" : "") + (u ? `, __j = Array.prototype.join;
|
|
2582
|
+
function print() { __p += __j.call(arguments, '') }
|
|
2583
|
+
` : `;
|
|
2584
|
+
`) + l + `return __p
|
|
2585
|
+
}`;
|
|
2586
|
+
var v = Nl(function() {
|
|
2587
|
+
return Function(o, A + "return " + l).apply(void 0, s);
|
|
2588
|
+
});
|
|
2589
|
+
if (v.source = l, lo(v))
|
|
2590
|
+
throw v;
|
|
2591
|
+
return v;
|
|
2592
|
+
}
|
|
2593
|
+
const yf = {
|
|
2594
|
+
global: {
|
|
2595
|
+
noEntitlement: "无权限,请联系管理员。",
|
|
2596
|
+
name: "名称",
|
|
2597
|
+
creationTime: "创建时间",
|
|
2598
|
+
operation: "操作",
|
|
2599
|
+
update: "更新",
|
|
2600
|
+
edit: "编辑",
|
|
2601
|
+
delete: "删除",
|
|
2602
|
+
selectAll: "全选",
|
|
2603
|
+
game: "游戏",
|
|
2604
|
+
user: "用户",
|
|
2605
|
+
role: "角色",
|
|
2606
|
+
username: "用户名",
|
|
2607
|
+
password: "密码",
|
|
2608
|
+
label: "标签",
|
|
2609
|
+
method: "方法",
|
|
2610
|
+
route: "路由",
|
|
2611
|
+
request: "请求",
|
|
2612
|
+
response: "响应",
|
|
2613
|
+
add: "添加",
|
|
2614
|
+
signIn: "登录"
|
|
2615
|
+
},
|
|
2616
|
+
SignIn: {
|
|
2617
|
+
title: "登录方式",
|
|
2618
|
+
thirdParty: "第三方登录",
|
|
2619
|
+
signInWithIDass: "IDass 登录",
|
|
2620
|
+
notRegistered: "您还未在平台注册,请联系管理员",
|
|
2621
|
+
welcome: "欢迎"
|
|
2622
|
+
},
|
|
2623
|
+
NotFound: {
|
|
2624
|
+
subTitle: "访问的页面不存在",
|
|
2625
|
+
buttonText: "返回首页"
|
|
2626
|
+
},
|
|
2627
|
+
FilterFormWrapper: {
|
|
2628
|
+
confirmText: "查询",
|
|
2629
|
+
resetText: "重置"
|
|
2630
|
+
},
|
|
2631
|
+
FormModal: {
|
|
2632
|
+
confirmText: "确认",
|
|
2633
|
+
cancelText: "取消"
|
|
2634
|
+
},
|
|
2635
|
+
GameSelect: {
|
|
2636
|
+
label: "当前游戏",
|
|
2637
|
+
placeholder: "请选择游戏"
|
|
2638
|
+
},
|
|
2639
|
+
RequireGame: {
|
|
2640
|
+
description: "请选择游戏"
|
|
2641
|
+
},
|
|
2642
|
+
UserWidget: {
|
|
2643
|
+
signOutText: "登出"
|
|
2644
|
+
},
|
|
2645
|
+
UserList: {
|
|
2646
|
+
createTitle: "创建用户",
|
|
2647
|
+
createSuccessfully: "用户创建成功",
|
|
2648
|
+
updateTitle: "更新用户",
|
|
2649
|
+
updateSuccessfully: "用户更新成功",
|
|
2650
|
+
deleteTitle: "删除用户",
|
|
2651
|
+
deleteContent: "确定要删除用户 <%= user %> 吗?",
|
|
2652
|
+
deleteSuccessfully: "用户删除成功"
|
|
2653
|
+
},
|
|
2654
|
+
RoleList: {
|
|
2655
|
+
createTitle: "创建角色",
|
|
2656
|
+
createSuccessfully: "角色创建成功",
|
|
2657
|
+
updateTitle: "更新角色",
|
|
2658
|
+
updateSuccessfully: "角色更新成功",
|
|
2659
|
+
deleteTitle: "删除角色",
|
|
2660
|
+
deleteContent: "确定要删除角色 <%= role %> 吗?",
|
|
2661
|
+
deleteSuccessfully: "角色删除成功"
|
|
2662
|
+
},
|
|
2663
|
+
PermissionList: {
|
|
2664
|
+
failedDescription: "获取权限列表失败",
|
|
2665
|
+
baseSectionTitle: "平台基础权限",
|
|
2666
|
+
gameSectionTitle: "游戏权限",
|
|
2667
|
+
gameSectionDescription: "请先选择游戏",
|
|
2668
|
+
gameSelectPlaceholder: "请先选择游戏",
|
|
2669
|
+
removeText: "移除",
|
|
2670
|
+
addText: "添加游戏权限"
|
|
2671
|
+
},
|
|
2672
|
+
RoleDetail: {
|
|
2673
|
+
title: "角色详情"
|
|
2674
|
+
},
|
|
2675
|
+
InfiniteList: {
|
|
2676
|
+
loadingText: "加载中",
|
|
2677
|
+
reachEndText: "已经到底了",
|
|
2678
|
+
loadMoreText: "加载更多"
|
|
2679
|
+
}
|
|
2680
|
+
}, bf = yf;
|
|
2681
|
+
function je() {
|
|
2682
|
+
const { locale: e = bf } = _e();
|
|
2683
|
+
return (t, r) => zl(e, t) ? vf(yl(e, t))(r) : t;
|
|
2684
|
+
}
|
|
2685
|
+
const Ef = (e) => {
|
|
2686
|
+
const { initialTags: t, addable: r, removable: n, addCallback: a, removeCallback: o } = e, s = je(), { token: c } = pa.useToken(), [u, f] = Se([]), [d, l] = Se(!1), [g, A] = Se(""), [E, v] = Se(-1), [b, y] = Se(""), p = ge(null), w = ge(null);
|
|
2687
|
+
Ee(() => {
|
|
2688
|
+
f(t ?? []);
|
|
2689
|
+
}, [t]), Ee(() => {
|
|
2690
|
+
var I;
|
|
2691
|
+
d && ((I = p.current) == null || I.focus());
|
|
2692
|
+
}, [d]), Ee(() => {
|
|
2693
|
+
var I;
|
|
2694
|
+
(I = w.current) == null || I.focus();
|
|
2695
|
+
}, [g]);
|
|
2696
|
+
const R = async (I) => {
|
|
2697
|
+
if (await (o == null ? void 0 : o(I))) {
|
|
2698
|
+
const j = u.filter((q) => q !== I);
|
|
2699
|
+
f(j);
|
|
2700
|
+
}
|
|
2701
|
+
}, x = () => {
|
|
2702
|
+
l(!0);
|
|
2703
|
+
}, C = (I) => {
|
|
2704
|
+
A(I.target.value);
|
|
2705
|
+
}, T = async () => {
|
|
2706
|
+
g && u.indexOf(g) === -1 && await (a == null ? void 0 : a(g)) && f([...u, g]), l(!1), A("");
|
|
2707
|
+
}, O = (I) => {
|
|
2708
|
+
y(I.target.value);
|
|
2709
|
+
}, P = () => {
|
|
2710
|
+
const I = [...u];
|
|
2711
|
+
I[E] = b, f(I), v(-1), A("");
|
|
2712
|
+
}, D = {
|
|
2713
|
+
width: 78,
|
|
2714
|
+
verticalAlign: "top"
|
|
2715
|
+
}, G = {
|
|
2716
|
+
background: c.colorBgContainer,
|
|
2717
|
+
borderStyle: "dashed"
|
|
2718
|
+
};
|
|
2719
|
+
return /* @__PURE__ */ m.jsxs(et, { wrap: !0, size: [0, 8], children: [
|
|
2720
|
+
/* @__PURE__ */ m.jsx(et, { wrap: !0, size: [0, 8], children: u.map((I, N) => E === N ? /* @__PURE__ */ m.jsx(
|
|
2721
|
+
yn,
|
|
2722
|
+
{
|
|
2723
|
+
ref: w,
|
|
2724
|
+
size: "small",
|
|
2725
|
+
style: D,
|
|
2726
|
+
value: b,
|
|
2727
|
+
onChange: O,
|
|
2728
|
+
onBlur: P,
|
|
2729
|
+
onPressEnter: P
|
|
2730
|
+
},
|
|
2731
|
+
I
|
|
2732
|
+
) : /* @__PURE__ */ m.jsx(
|
|
2733
|
+
bn,
|
|
2734
|
+
{
|
|
2735
|
+
closable: n,
|
|
2736
|
+
style: { userSelect: "none" },
|
|
2737
|
+
onClose: async (j) => {
|
|
2738
|
+
j.preventDefault(), await R(I);
|
|
2739
|
+
},
|
|
2740
|
+
children: /* @__PURE__ */ m.jsx(
|
|
2741
|
+
"span",
|
|
2742
|
+
{
|
|
2743
|
+
onDoubleClick: (j) => {
|
|
2744
|
+
N !== 0 && (v(N), y(I), j.preventDefault());
|
|
2745
|
+
},
|
|
2746
|
+
children: I
|
|
2747
|
+
}
|
|
2748
|
+
)
|
|
2749
|
+
},
|
|
2750
|
+
I
|
|
2751
|
+
)) }),
|
|
2752
|
+
r && (d ? /* @__PURE__ */ m.jsx(
|
|
2753
|
+
yn,
|
|
2754
|
+
{
|
|
2755
|
+
ref: p,
|
|
2756
|
+
type: "text",
|
|
2757
|
+
size: "small",
|
|
2758
|
+
style: D,
|
|
2759
|
+
value: g,
|
|
2760
|
+
onChange: C,
|
|
2761
|
+
onBlur: T,
|
|
2762
|
+
onPressEnter: T
|
|
2763
|
+
}
|
|
2764
|
+
) : /* @__PURE__ */ m.jsxs(bn, { style: G, onClick: x, children: [
|
|
2765
|
+
/* @__PURE__ */ m.jsx(Ns, {}),
|
|
2766
|
+
" ",
|
|
2767
|
+
s("global.add")
|
|
2768
|
+
] }))
|
|
2769
|
+
] });
|
|
2770
|
+
}, iA = Ef, Sf = (e) => {
|
|
2771
|
+
const { confirmText: t, extras: r, onConfirm: n, onReset: a, children: o } = e, { token: s } = pa.useToken(), c = je(), u = {
|
|
2772
|
+
maxWidth: "none",
|
|
2773
|
+
background: s.colorFillAlter,
|
|
2774
|
+
borderWidth: s.lineWidth,
|
|
2775
|
+
borderStyle: s.lineType,
|
|
2776
|
+
borderColor: s.colorBorder,
|
|
2777
|
+
borderRadius: s.borderRadiusLG,
|
|
2778
|
+
padding: 24,
|
|
2779
|
+
marginBottom: 24
|
|
2780
|
+
};
|
|
2781
|
+
return /* @__PURE__ */ m.jsx("div", { style: u, children: /* @__PURE__ */ m.jsxs("div", { className: "flex", children: [
|
|
2782
|
+
/* @__PURE__ */ m.jsx("div", { className: "flex-1", children: o }),
|
|
2783
|
+
/* @__PURE__ */ m.jsx("div", { className: "ml-8", children: /* @__PURE__ */ m.jsxs(et, { children: [
|
|
2784
|
+
/* @__PURE__ */ m.jsx(Je, { type: "primary", onClick: n, children: t || c("FilterFormWrapper.confirmText") }),
|
|
2785
|
+
/* @__PURE__ */ m.jsx(Je, { htmlType: "reset", onClick: a, children: c("FilterFormWrapper.resetText") }),
|
|
2786
|
+
r == null ? void 0 : r.map((f) => /* @__PURE__ */ m.jsx("span", { children: f.children }, f.key))
|
|
2787
|
+
] }) })
|
|
2788
|
+
] }) });
|
|
2789
|
+
}, ho = Sf, Ve = () => {
|
|
2790
|
+
}, ne = (
|
|
2791
|
+
/*#__NOINLINE__*/
|
|
2792
|
+
Ve()
|
|
2793
|
+
), hr = Object, F = (e) => e === ne, Oe = (e) => typeof e == "function", We = (e, t) => ({
|
|
2794
|
+
...e,
|
|
2795
|
+
...t
|
|
2796
|
+
}), wf = (e) => Oe(e.then), Pt = /* @__PURE__ */ new WeakMap();
|
|
2797
|
+
let Cf = 0;
|
|
2798
|
+
const St = (e) => {
|
|
2799
|
+
const t = typeof e, r = e && e.constructor, n = r == Date;
|
|
2800
|
+
let a, o;
|
|
2801
|
+
if (hr(e) === e && !n && r != RegExp) {
|
|
2802
|
+
if (a = Pt.get(e), a)
|
|
2803
|
+
return a;
|
|
2804
|
+
if (a = ++Cf + "~", Pt.set(e, a), r == Array) {
|
|
2805
|
+
for (a = "@", o = 0; o < e.length; o++)
|
|
2806
|
+
a += St(e[o]) + ",";
|
|
2807
|
+
Pt.set(e, a);
|
|
2808
|
+
}
|
|
2809
|
+
if (r == hr) {
|
|
2810
|
+
a = "#";
|
|
2811
|
+
const s = hr.keys(e).sort();
|
|
2812
|
+
for (; !F(o = s.pop()); )
|
|
2813
|
+
F(e[o]) || (a += o + ":" + St(e[o]) + ",");
|
|
2814
|
+
Pt.set(e, a);
|
|
2815
|
+
}
|
|
2816
|
+
} else
|
|
2817
|
+
a = n ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
|
2818
|
+
return a;
|
|
2819
|
+
}, Ce = /* @__PURE__ */ new WeakMap(), mr = {}, Ft = {}, en = "undefined", Zt = typeof window != en, _r = typeof document != en, Of = () => Zt && typeof window.requestAnimationFrame != en, Le = (e, t) => {
|
|
2820
|
+
const r = Ce.get(e);
|
|
2821
|
+
return [
|
|
2822
|
+
// Getter
|
|
2823
|
+
() => !F(t) && e.get(t) || mr,
|
|
2824
|
+
// Setter
|
|
2825
|
+
(n) => {
|
|
2826
|
+
if (!F(t)) {
|
|
2827
|
+
const a = e.get(t);
|
|
2828
|
+
t in Ft || (Ft[t] = a), r[5](t, We(a, n), a || mr);
|
|
2829
|
+
}
|
|
2830
|
+
},
|
|
2831
|
+
// Subscriber
|
|
2832
|
+
r[6],
|
|
2833
|
+
// Get server cache snapshot
|
|
2834
|
+
() => !F(t) && t in Ft ? Ft[t] : !F(t) && e.get(t) || mr
|
|
2835
|
+
];
|
|
2836
|
+
};
|
|
2837
|
+
let jr = !0;
|
|
2838
|
+
const Rf = () => jr, [Dr, Pr] = Zt && window.addEventListener ? [
|
|
2839
|
+
window.addEventListener.bind(window),
|
|
2840
|
+
window.removeEventListener.bind(window)
|
|
2841
|
+
] : [
|
|
2842
|
+
Ve,
|
|
2843
|
+
Ve
|
|
2844
|
+
], xf = () => {
|
|
2845
|
+
const e = _r && document.visibilityState;
|
|
2846
|
+
return F(e) || e !== "hidden";
|
|
2847
|
+
}, Tf = (e) => (_r && document.addEventListener("visibilitychange", e), Dr("focus", e), () => {
|
|
2848
|
+
_r && document.removeEventListener("visibilitychange", e), Pr("focus", e);
|
|
2849
|
+
}), If = (e) => {
|
|
2850
|
+
const t = () => {
|
|
2851
|
+
jr = !0, e();
|
|
2852
|
+
}, r = () => {
|
|
2853
|
+
jr = !1;
|
|
2854
|
+
};
|
|
2855
|
+
return Dr("online", t), Dr("offline", r), () => {
|
|
2856
|
+
Pr("online", t), Pr("offline", r);
|
|
2857
|
+
};
|
|
2858
|
+
}, _f = {
|
|
2859
|
+
isOnline: Rf,
|
|
2860
|
+
isVisible: xf
|
|
2861
|
+
}, jf = {
|
|
2862
|
+
initFocus: Tf,
|
|
2863
|
+
initReconnect: If
|
|
2864
|
+
}, oa = !he.useId, wt = !Zt || "Deno" in window, Df = (e) => Of() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Lt = wt ? Ee : ri, vr = typeof navigator < "u" && navigator.connection, ia = !wt && vr && ([
|
|
2865
|
+
"slow-2g",
|
|
2866
|
+
"2g"
|
|
2867
|
+
].includes(vr.effectiveType) || vr.saveData), nt = (e) => {
|
|
2868
|
+
if (Oe(e))
|
|
2869
|
+
try {
|
|
2870
|
+
e = e();
|
|
2871
|
+
} catch {
|
|
2872
|
+
e = "";
|
|
2873
|
+
}
|
|
2874
|
+
const t = e;
|
|
2875
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? St(e) : "", [
|
|
2876
|
+
e,
|
|
2877
|
+
t
|
|
2878
|
+
];
|
|
2879
|
+
};
|
|
2880
|
+
let Pf = 0;
|
|
2881
|
+
const Fr = () => ++Pf, mo = 0, vo = 1, yo = 2, Ff = 3;
|
|
2882
|
+
var pt = {
|
|
2883
|
+
__proto__: null,
|
|
2884
|
+
ERROR_REVALIDATE_EVENT: Ff,
|
|
2885
|
+
FOCUS_EVENT: mo,
|
|
2886
|
+
MUTATE_EVENT: yo,
|
|
2887
|
+
RECONNECT_EVENT: vo
|
|
2888
|
+
};
|
|
2889
|
+
async function bo(...e) {
|
|
2890
|
+
const [t, r, n, a] = e, o = We({
|
|
2891
|
+
populateCache: !0,
|
|
2892
|
+
throwOnError: !0
|
|
2893
|
+
}, typeof a == "boolean" ? {
|
|
2894
|
+
revalidate: a
|
|
2895
|
+
} : a || {});
|
|
2896
|
+
let s = o.populateCache;
|
|
2897
|
+
const c = o.rollbackOnError;
|
|
2898
|
+
let u = o.optimisticData;
|
|
2899
|
+
const f = o.revalidate !== !1, d = (A) => typeof c == "function" ? c(A) : c !== !1, l = o.throwOnError;
|
|
2900
|
+
if (Oe(r)) {
|
|
2901
|
+
const A = r, E = [], v = t.keys();
|
|
2902
|
+
for (const b of v)
|
|
2903
|
+
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
2904
|
+
!/^\$(inf|sub)\$/.test(b) && A(t.get(b)._k) && E.push(b);
|
|
2905
|
+
return Promise.all(E.map(g));
|
|
2906
|
+
}
|
|
2907
|
+
return g(r);
|
|
2908
|
+
async function g(A) {
|
|
2909
|
+
const [E] = nt(A);
|
|
2910
|
+
if (!E)
|
|
2911
|
+
return;
|
|
2912
|
+
const [v, b] = Le(t, E), [y, p, w, R] = Ce.get(t), x = () => {
|
|
2913
|
+
const j = y[E];
|
|
2914
|
+
return f && (delete w[E], delete R[E], j && j[0]) ? j[0](yo).then(() => v().data) : v().data;
|
|
2915
|
+
};
|
|
2916
|
+
if (e.length < 3)
|
|
2917
|
+
return x();
|
|
2918
|
+
let C = n, T;
|
|
2919
|
+
const O = Fr();
|
|
2920
|
+
p[E] = [
|
|
2921
|
+
O,
|
|
2922
|
+
0
|
|
2923
|
+
];
|
|
2924
|
+
const P = !F(u), D = v(), G = D.data, I = D._c, N = F(I) ? G : I;
|
|
2925
|
+
if (P && (u = Oe(u) ? u(N, G) : u, b({
|
|
2926
|
+
data: u,
|
|
2927
|
+
_c: N
|
|
2928
|
+
})), Oe(C))
|
|
2929
|
+
try {
|
|
2930
|
+
C = C(N);
|
|
2931
|
+
} catch (j) {
|
|
2932
|
+
T = j;
|
|
2933
|
+
}
|
|
2934
|
+
if (C && wf(C))
|
|
2935
|
+
if (C = await C.catch((j) => {
|
|
2936
|
+
T = j;
|
|
2937
|
+
}), O !== p[E][0]) {
|
|
2938
|
+
if (T)
|
|
2939
|
+
throw T;
|
|
2940
|
+
return C;
|
|
2941
|
+
} else
|
|
2942
|
+
T && P && d(T) && (s = !0, b({
|
|
2943
|
+
data: N,
|
|
2944
|
+
_c: ne
|
|
2945
|
+
}));
|
|
2946
|
+
if (s && !T)
|
|
2947
|
+
if (Oe(s)) {
|
|
2948
|
+
const j = s(C, N);
|
|
2949
|
+
b({
|
|
2950
|
+
data: j,
|
|
2951
|
+
error: ne,
|
|
2952
|
+
_c: ne
|
|
2953
|
+
});
|
|
2954
|
+
} else
|
|
2955
|
+
b({
|
|
2956
|
+
data: C,
|
|
2957
|
+
error: ne,
|
|
2958
|
+
_c: ne
|
|
2959
|
+
});
|
|
2960
|
+
if (p[E][1] = Fr(), Promise.resolve(x()).then(() => {
|
|
2961
|
+
b({
|
|
2962
|
+
_c: ne
|
|
2963
|
+
});
|
|
2964
|
+
}), T) {
|
|
2965
|
+
if (l)
|
|
2966
|
+
throw T;
|
|
2967
|
+
return;
|
|
2968
|
+
}
|
|
2969
|
+
return C;
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
const sa = (e, t) => {
|
|
2973
|
+
for (const r in e)
|
|
2974
|
+
e[r][0] && e[r][0](t);
|
|
2975
|
+
}, Nf = (e, t) => {
|
|
2976
|
+
if (!Ce.has(e)) {
|
|
2977
|
+
const r = We(jf, t), n = {}, a = bo.bind(ne, e);
|
|
2978
|
+
let o = Ve;
|
|
2979
|
+
const s = {}, c = (d, l) => {
|
|
2980
|
+
const g = s[d] || [];
|
|
2981
|
+
return s[d] = g, g.push(l), () => g.splice(g.indexOf(l), 1);
|
|
2982
|
+
}, u = (d, l, g) => {
|
|
2983
|
+
e.set(d, l);
|
|
2984
|
+
const A = s[d];
|
|
2985
|
+
if (A)
|
|
2986
|
+
for (const E of A)
|
|
2987
|
+
E(l, g);
|
|
2988
|
+
}, f = () => {
|
|
2989
|
+
if (!Ce.has(e) && (Ce.set(e, [
|
|
2990
|
+
n,
|
|
2991
|
+
{},
|
|
2992
|
+
{},
|
|
2993
|
+
{},
|
|
2994
|
+
a,
|
|
2995
|
+
u,
|
|
2996
|
+
c
|
|
2997
|
+
]), !wt)) {
|
|
2998
|
+
const d = r.initFocus(setTimeout.bind(ne, sa.bind(ne, n, mo))), l = r.initReconnect(setTimeout.bind(ne, sa.bind(ne, n, vo)));
|
|
2999
|
+
o = () => {
|
|
3000
|
+
d && d(), l && l(), Ce.delete(e);
|
|
3001
|
+
};
|
|
3002
|
+
}
|
|
3003
|
+
};
|
|
3004
|
+
return f(), [
|
|
3005
|
+
e,
|
|
3006
|
+
a,
|
|
3007
|
+
f,
|
|
3008
|
+
o
|
|
3009
|
+
];
|
|
3010
|
+
}
|
|
3011
|
+
return [
|
|
3012
|
+
e,
|
|
3013
|
+
Ce.get(e)[4]
|
|
3014
|
+
];
|
|
3015
|
+
}, Bf = (e, t, r, n, a) => {
|
|
3016
|
+
const o = r.errorRetryCount, s = a.retryCount, c = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
|
|
3017
|
+
!F(o) && s > o || setTimeout(n, c, a);
|
|
3018
|
+
}, Lf = (e, t) => St(e) == St(t), [tn, Eo] = Nf(/* @__PURE__ */ new Map()), Mf = We(
|
|
3019
|
+
{
|
|
3020
|
+
// events
|
|
3021
|
+
onLoadingSlow: Ve,
|
|
3022
|
+
onSuccess: Ve,
|
|
3023
|
+
onError: Ve,
|
|
3024
|
+
onErrorRetry: Bf,
|
|
3025
|
+
onDiscarded: Ve,
|
|
3026
|
+
// switches
|
|
3027
|
+
revalidateOnFocus: !0,
|
|
3028
|
+
revalidateOnReconnect: !0,
|
|
3029
|
+
revalidateIfStale: !0,
|
|
3030
|
+
shouldRetryOnError: !0,
|
|
3031
|
+
// timeouts
|
|
3032
|
+
errorRetryInterval: ia ? 1e4 : 5e3,
|
|
3033
|
+
focusThrottleInterval: 5 * 1e3,
|
|
3034
|
+
dedupingInterval: 2 * 1e3,
|
|
3035
|
+
loadingTimeout: ia ? 5e3 : 3e3,
|
|
3036
|
+
// providers
|
|
3037
|
+
compare: Lf,
|
|
3038
|
+
isPaused: () => !1,
|
|
3039
|
+
cache: tn,
|
|
3040
|
+
mutate: Eo,
|
|
3041
|
+
fallback: {}
|
|
3042
|
+
},
|
|
3043
|
+
// use web preset by default
|
|
3044
|
+
_f
|
|
3045
|
+
), Uf = (e, t) => {
|
|
3046
|
+
const r = We(e, t);
|
|
3047
|
+
if (t) {
|
|
3048
|
+
const { use: n, fallback: a } = e, { use: o, fallback: s } = t;
|
|
3049
|
+
n && o && (r.use = n.concat(o)), a && s && (r.fallback = We(a, s));
|
|
3050
|
+
}
|
|
3051
|
+
return r;
|
|
3052
|
+
}, kf = Mr({}), So = "$inf$", wo = Zt && window.__SWR_DEVTOOLS_USE__, Vf = wo ? window.__SWR_DEVTOOLS_USE__ : [], Gf = () => {
|
|
3053
|
+
wo && (window.__SWR_DEVTOOLS_REACT__ = he);
|
|
3054
|
+
}, Co = (e) => Oe(e[1]) ? [
|
|
3055
|
+
e[0],
|
|
3056
|
+
e[1],
|
|
3057
|
+
e[2] || {}
|
|
3058
|
+
] : [
|
|
3059
|
+
e[0],
|
|
3060
|
+
null,
|
|
3061
|
+
(e[1] === null ? e[2] : e[1]) || {}
|
|
3062
|
+
], rn = () => We(Mf, Ur(kf)), Wf = (e) => (t, r, n) => e(t, r && ((...o) => {
|
|
3063
|
+
const [s] = nt(t), [, , , c] = Ce.get(tn);
|
|
3064
|
+
if (s.startsWith(So))
|
|
3065
|
+
return r(...o);
|
|
3066
|
+
const u = c[s];
|
|
3067
|
+
return F(u) ? r(...o) : (delete c[s], u);
|
|
3068
|
+
}), n), Hf = Vf.concat(Wf), Qf = (e) => function(...r) {
|
|
3069
|
+
const n = rn(), [a, o, s] = Co(r), c = Uf(n, s);
|
|
3070
|
+
let u = e;
|
|
3071
|
+
const { use: f } = c, d = (f || []).concat(Hf);
|
|
3072
|
+
for (let l = d.length; l--; )
|
|
3073
|
+
u = d[l](u);
|
|
3074
|
+
return u(a, o || c.fetcher || null, c);
|
|
3075
|
+
}, Yf = (e, t, r) => {
|
|
3076
|
+
const n = t[e] || (t[e] = []);
|
|
3077
|
+
return n.push(r), () => {
|
|
3078
|
+
const a = n.indexOf(r);
|
|
3079
|
+
a >= 0 && (n[a] = n[n.length - 1], n.pop());
|
|
3080
|
+
};
|
|
3081
|
+
}, Oo = (e, t) => (...r) => {
|
|
3082
|
+
const [n, a, o] = Co(r), s = (o.use || []).concat(t);
|
|
3083
|
+
return e(n, a, {
|
|
3084
|
+
...o,
|
|
3085
|
+
use: s
|
|
3086
|
+
});
|
|
3087
|
+
};
|
|
3088
|
+
Gf();
|
|
3089
|
+
const ca = he.use || ((e) => {
|
|
3090
|
+
if (e.status === "pending")
|
|
3091
|
+
throw e;
|
|
3092
|
+
if (e.status === "fulfilled")
|
|
3093
|
+
return e.value;
|
|
3094
|
+
throw e.status === "rejected" ? e.reason : (e.status = "pending", e.then((t) => {
|
|
3095
|
+
e.status = "fulfilled", e.value = t;
|
|
3096
|
+
}, (t) => {
|
|
3097
|
+
e.status = "rejected", e.reason = t;
|
|
3098
|
+
}), e);
|
|
3099
|
+
}), yr = {
|
|
3100
|
+
dedupe: !0
|
|
3101
|
+
}, zf = (e, t, r) => {
|
|
3102
|
+
const { cache: n, compare: a, suspense: o, fallbackData: s, revalidateOnMount: c, revalidateIfStale: u, refreshInterval: f, refreshWhenHidden: d, refreshWhenOffline: l, keepPreviousData: g } = r, [A, E, v, b] = Ce.get(n), [y, p] = nt(e), w = ge(!1), R = ge(!1), x = ge(y), C = ge(t), T = ge(r), O = () => T.current, P = () => O().isVisible() && O().isOnline(), [D, G, I, N] = Le(n, y), j = ge({}).current, q = F(s) ? r.fallback[y] : s, U = (V, W) => {
|
|
3103
|
+
for (const Y in j) {
|
|
3104
|
+
const L = Y;
|
|
3105
|
+
if (L === "data") {
|
|
3106
|
+
if (!a(V[L], W[L]) && (!F(V[L]) || !a(se, W[L])))
|
|
3107
|
+
return !1;
|
|
3108
|
+
} else if (W[L] !== V[L])
|
|
3109
|
+
return !1;
|
|
3110
|
+
}
|
|
3111
|
+
return !0;
|
|
3112
|
+
}, Q = Mt(() => {
|
|
3113
|
+
const V = !y || !t ? !1 : F(c) ? O().isPaused() || o ? !1 : F(u) ? !0 : u : c, W = (Z) => {
|
|
3114
|
+
const ve = We(Z);
|
|
3115
|
+
return delete ve._k, V ? {
|
|
3116
|
+
isValidating: !0,
|
|
3117
|
+
isLoading: !0,
|
|
3118
|
+
...ve
|
|
3119
|
+
} : ve;
|
|
3120
|
+
}, Y = D(), L = N(), re = W(Y), Re = Y === L ? re : W(L);
|
|
3121
|
+
let X = re;
|
|
3122
|
+
return [
|
|
3123
|
+
() => {
|
|
3124
|
+
const Z = W(D());
|
|
3125
|
+
return U(Z, X) ? (X.data = Z.data, X.isLoading = Z.isLoading, X.isValidating = Z.isValidating, X.error = Z.error, X) : (X = Z, Z);
|
|
3126
|
+
},
|
|
3127
|
+
() => Re
|
|
3128
|
+
];
|
|
3129
|
+
}, [
|
|
3130
|
+
n,
|
|
3131
|
+
y
|
|
3132
|
+
]), te = Vt.useSyncExternalStore(we(
|
|
3133
|
+
(V) => I(y, (W, Y) => {
|
|
3134
|
+
U(Y, W) || V();
|
|
3135
|
+
}),
|
|
3136
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3137
|
+
[
|
|
3138
|
+
n,
|
|
3139
|
+
y
|
|
3140
|
+
]
|
|
3141
|
+
), Q[0], Q[1]), me = !w.current, De = A[y] && A[y].length > 0, K = te.data, ie = F(K) ? q : K, le = te.error, Pe = ge(ie), se = g ? F(K) ? Pe.current : K : ie, Fe = De && !F(le) ? !1 : me && !F(c) ? c : O().isPaused() ? !1 : o ? F(ie) ? !1 : u : F(ie) || u, Ne = !!(y && t && me && Fe), ce = F(te.isValidating) ? Ne : te.isValidating, He = F(te.isLoading) ? Ne : te.isLoading, fe = we(
|
|
3142
|
+
async (V) => {
|
|
3143
|
+
const W = C.current;
|
|
3144
|
+
if (!y || !W || R.current || O().isPaused())
|
|
3145
|
+
return !1;
|
|
3146
|
+
let Y, L, re = !0;
|
|
3147
|
+
const Re = V || {}, X = !v[y] || !Re.dedupe, Z = () => oa ? !R.current && y === x.current && w.current : y === x.current, ve = {
|
|
3148
|
+
isValidating: !1,
|
|
3149
|
+
isLoading: !1
|
|
3150
|
+
}, xt = () => {
|
|
3151
|
+
G(ve);
|
|
3152
|
+
}, Ke = () => {
|
|
3153
|
+
const oe = v[y];
|
|
3154
|
+
oe && oe[1] === L && delete v[y];
|
|
3155
|
+
}, Tt = {
|
|
3156
|
+
isValidating: !0
|
|
3157
|
+
};
|
|
3158
|
+
F(D().data) && (Tt.isLoading = !0);
|
|
3159
|
+
try {
|
|
3160
|
+
if (X && (G(Tt), r.loadingTimeout && F(D().data) && setTimeout(() => {
|
|
3161
|
+
re && Z() && O().onLoadingSlow(y, r);
|
|
3162
|
+
}, r.loadingTimeout), v[y] = [
|
|
3163
|
+
W(p),
|
|
3164
|
+
Fr()
|
|
3165
|
+
]), [Y, L] = v[y], Y = await Y, X && setTimeout(Ke, r.dedupingInterval), !v[y] || v[y][1] !== L)
|
|
3166
|
+
return X && Z() && O().onDiscarded(y), !1;
|
|
3167
|
+
ve.error = ne;
|
|
3168
|
+
const oe = E[y];
|
|
3169
|
+
if (!F(oe) && // case 1
|
|
3170
|
+
(L <= oe[0] || // case 2
|
|
3171
|
+
L <= oe[1] || // case 3
|
|
3172
|
+
oe[1] === 0))
|
|
3173
|
+
return xt(), X && Z() && O().onDiscarded(y), !1;
|
|
3174
|
+
const de = D().data;
|
|
3175
|
+
ve.data = a(de, Y) ? de : Y, X && Z() && O().onSuccess(Y, y, r);
|
|
3176
|
+
} catch (oe) {
|
|
3177
|
+
Ke();
|
|
3178
|
+
const de = O(), { shouldRetryOnError: $e } = de;
|
|
3179
|
+
de.isPaused() || (ve.error = oe, X && Z() && (de.onError(oe, y, de), ($e === !0 || Oe($e) && $e(oe)) && P() && de.onErrorRetry(oe, y, de, (Qe) => {
|
|
3180
|
+
const lt = A[y];
|
|
3181
|
+
lt && lt[0] && lt[0](pt.ERROR_REVALIDATE_EVENT, Qe);
|
|
3182
|
+
}, {
|
|
3183
|
+
retryCount: (Re.retryCount || 0) + 1,
|
|
3184
|
+
dedupe: !0
|
|
3185
|
+
})));
|
|
3186
|
+
}
|
|
3187
|
+
return re = !1, xt(), !0;
|
|
3188
|
+
},
|
|
3189
|
+
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
|
3190
|
+
// `keyValidating` are depending on `key`, so we can exclude them from
|
|
3191
|
+
// the deps array.
|
|
3192
|
+
//
|
|
3193
|
+
// FIXME:
|
|
3194
|
+
// `fn` and `config` might be changed during the lifecycle,
|
|
3195
|
+
// but they might be changed every render like this.
|
|
3196
|
+
// `useSWR('key', () => fetch('/api/'), { suspense: true })`
|
|
3197
|
+
// So we omit the values from the deps array
|
|
3198
|
+
// even though it might cause unexpected behaviors.
|
|
3199
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3200
|
+
[
|
|
3201
|
+
y,
|
|
3202
|
+
n
|
|
3203
|
+
]
|
|
3204
|
+
), Be = we(
|
|
3205
|
+
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
3206
|
+
(...V) => bo(n, x.current, ...V),
|
|
3207
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3208
|
+
[]
|
|
3209
|
+
);
|
|
3210
|
+
if (Lt(() => {
|
|
3211
|
+
C.current = t, T.current = r, F(K) || (Pe.current = K);
|
|
3212
|
+
}), Lt(() => {
|
|
3213
|
+
if (!y)
|
|
3214
|
+
return;
|
|
3215
|
+
const V = fe.bind(ne, yr);
|
|
3216
|
+
let W = 0;
|
|
3217
|
+
const L = Yf(y, A, (re, Re = {}) => {
|
|
3218
|
+
if (re == pt.FOCUS_EVENT) {
|
|
3219
|
+
const X = Date.now();
|
|
3220
|
+
O().revalidateOnFocus && X > W && P() && (W = X + O().focusThrottleInterval, V());
|
|
3221
|
+
} else if (re == pt.RECONNECT_EVENT)
|
|
3222
|
+
O().revalidateOnReconnect && P() && V();
|
|
3223
|
+
else {
|
|
3224
|
+
if (re == pt.MUTATE_EVENT)
|
|
3225
|
+
return fe();
|
|
3226
|
+
if (re == pt.ERROR_REVALIDATE_EVENT)
|
|
3227
|
+
return fe(Re);
|
|
3228
|
+
}
|
|
3229
|
+
});
|
|
3230
|
+
return R.current = !1, x.current = y, w.current = !0, G({
|
|
3231
|
+
_k: p
|
|
3232
|
+
}), Fe && (F(ie) || wt ? V() : Df(V)), () => {
|
|
3233
|
+
R.current = !0, L();
|
|
3234
|
+
};
|
|
3235
|
+
}, [
|
|
3236
|
+
y
|
|
3237
|
+
]), Lt(() => {
|
|
3238
|
+
let V;
|
|
3239
|
+
function W() {
|
|
3240
|
+
const L = Oe(f) ? f(D().data) : f;
|
|
3241
|
+
L && V !== -1 && (V = setTimeout(Y, L));
|
|
3242
|
+
}
|
|
3243
|
+
function Y() {
|
|
3244
|
+
!D().error && (d || O().isVisible()) && (l || O().isOnline()) ? fe(yr).then(W) : W();
|
|
3245
|
+
}
|
|
3246
|
+
return W(), () => {
|
|
3247
|
+
V && (clearTimeout(V), V = -1);
|
|
3248
|
+
};
|
|
3249
|
+
}, [
|
|
3250
|
+
f,
|
|
3251
|
+
d,
|
|
3252
|
+
l,
|
|
3253
|
+
y
|
|
3254
|
+
]), ni(se), o && F(ie) && y) {
|
|
3255
|
+
if (!oa && wt)
|
|
3256
|
+
throw new Error("Fallback data is required when using suspense in SSR.");
|
|
3257
|
+
C.current = t, T.current = r, R.current = !1;
|
|
3258
|
+
const V = b[y];
|
|
3259
|
+
if (!F(V)) {
|
|
3260
|
+
const W = Be(V);
|
|
3261
|
+
ca(W);
|
|
3262
|
+
}
|
|
3263
|
+
if (F(le)) {
|
|
3264
|
+
const W = fe(yr);
|
|
3265
|
+
F(se) || (W.status = "fulfilled", W.value = !0), ca(W);
|
|
3266
|
+
} else
|
|
3267
|
+
throw le;
|
|
3268
|
+
}
|
|
3269
|
+
return {
|
|
3270
|
+
mutate: Be,
|
|
3271
|
+
get data() {
|
|
3272
|
+
return j.data = !0, se;
|
|
3273
|
+
},
|
|
3274
|
+
get error() {
|
|
3275
|
+
return j.error = !0, le;
|
|
3276
|
+
},
|
|
3277
|
+
get isValidating() {
|
|
3278
|
+
return j.isValidating = !0, ce;
|
|
3279
|
+
},
|
|
3280
|
+
get isLoading() {
|
|
3281
|
+
return j.isLoading = !0, He;
|
|
3282
|
+
}
|
|
3283
|
+
};
|
|
3284
|
+
}, Ot = Qf(zf), qf = (e) => (t, r, n) => (n.revalidateOnFocus = !1, n.revalidateIfStale = !1, n.revalidateOnReconnect = !1, e(t, r, n)), Kf = Oo(Ot, qf);
|
|
3285
|
+
var $f = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
3286
|
+
function nn(e, t) {
|
|
3287
|
+
let r;
|
|
3288
|
+
try {
|
|
3289
|
+
r = e();
|
|
3290
|
+
} catch {
|
|
3291
|
+
return;
|
|
3292
|
+
}
|
|
3293
|
+
return {
|
|
3294
|
+
getItem: (a) => {
|
|
3295
|
+
var o;
|
|
3296
|
+
const s = (u) => u === null ? null : JSON.parse(u, t == null ? void 0 : t.reviver), c = (o = r.getItem(a)) != null ? o : null;
|
|
3297
|
+
return c instanceof Promise ? c.then(s) : s(c);
|
|
3298
|
+
},
|
|
3299
|
+
setItem: (a, o) => r.setItem(
|
|
3300
|
+
a,
|
|
3301
|
+
JSON.stringify(o, t == null ? void 0 : t.replacer)
|
|
3302
|
+
),
|
|
3303
|
+
removeItem: (a) => r.removeItem(a)
|
|
3304
|
+
};
|
|
3305
|
+
}
|
|
3306
|
+
const Ct = (e) => (t) => {
|
|
3307
|
+
try {
|
|
3308
|
+
const r = e(t);
|
|
3309
|
+
return r instanceof Promise ? r : {
|
|
3310
|
+
then(n) {
|
|
3311
|
+
return Ct(n)(r);
|
|
3312
|
+
},
|
|
3313
|
+
catch(n) {
|
|
3314
|
+
return this;
|
|
3315
|
+
}
|
|
3316
|
+
};
|
|
3317
|
+
} catch (r) {
|
|
3318
|
+
return {
|
|
3319
|
+
then(n) {
|
|
3320
|
+
return this;
|
|
3321
|
+
},
|
|
3322
|
+
catch(n) {
|
|
3323
|
+
return Ct(n)(r);
|
|
3324
|
+
}
|
|
3325
|
+
};
|
|
3326
|
+
}
|
|
3327
|
+
}, Xf = (e, t) => (r, n, a) => {
|
|
3328
|
+
let o = {
|
|
3329
|
+
getStorage: () => localStorage,
|
|
3330
|
+
serialize: JSON.stringify,
|
|
3331
|
+
deserialize: JSON.parse,
|
|
3332
|
+
partialize: (b) => b,
|
|
3333
|
+
version: 0,
|
|
3334
|
+
merge: (b, y) => ({
|
|
3335
|
+
...y,
|
|
3336
|
+
...b
|
|
3337
|
+
}),
|
|
3338
|
+
...t
|
|
3339
|
+
}, s = !1;
|
|
3340
|
+
const c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
|
3341
|
+
let f;
|
|
3342
|
+
try {
|
|
3343
|
+
f = o.getStorage();
|
|
3344
|
+
} catch {
|
|
3345
|
+
}
|
|
3346
|
+
if (!f)
|
|
3347
|
+
return e(
|
|
3348
|
+
(...b) => {
|
|
3349
|
+
console.warn(
|
|
3350
|
+
`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`
|
|
3351
|
+
), r(...b);
|
|
3352
|
+
},
|
|
3353
|
+
n,
|
|
3354
|
+
a
|
|
3355
|
+
);
|
|
3356
|
+
const d = Ct(o.serialize), l = () => {
|
|
3357
|
+
const b = o.partialize({ ...n() });
|
|
3358
|
+
let y;
|
|
3359
|
+
const p = d({ state: b, version: o.version }).then(
|
|
3360
|
+
(w) => f.setItem(o.name, w)
|
|
3361
|
+
).catch((w) => {
|
|
3362
|
+
y = w;
|
|
3363
|
+
});
|
|
3364
|
+
if (y)
|
|
3365
|
+
throw y;
|
|
3366
|
+
return p;
|
|
3367
|
+
}, g = a.setState;
|
|
3368
|
+
a.setState = (b, y) => {
|
|
3369
|
+
g(b, y), l();
|
|
3370
|
+
};
|
|
3371
|
+
const A = e(
|
|
3372
|
+
(...b) => {
|
|
3373
|
+
r(...b), l();
|
|
3374
|
+
},
|
|
3375
|
+
n,
|
|
3376
|
+
a
|
|
3377
|
+
);
|
|
3378
|
+
let E;
|
|
3379
|
+
const v = () => {
|
|
3380
|
+
var b;
|
|
3381
|
+
if (!f)
|
|
3382
|
+
return;
|
|
3383
|
+
s = !1, c.forEach((p) => p(n()));
|
|
3384
|
+
const y = ((b = o.onRehydrateStorage) == null ? void 0 : b.call(o, n())) || void 0;
|
|
3385
|
+
return Ct(f.getItem.bind(f))(o.name).then((p) => {
|
|
3386
|
+
if (p)
|
|
3387
|
+
return o.deserialize(p);
|
|
3388
|
+
}).then((p) => {
|
|
3389
|
+
if (p)
|
|
3390
|
+
if (typeof p.version == "number" && p.version !== o.version) {
|
|
3391
|
+
if (o.migrate)
|
|
3392
|
+
return o.migrate(
|
|
3393
|
+
p.state,
|
|
3394
|
+
p.version
|
|
3395
|
+
);
|
|
3396
|
+
console.error(
|
|
3397
|
+
"State loaded from storage couldn't be migrated since no migrate function was provided"
|
|
3398
|
+
);
|
|
3399
|
+
} else
|
|
3400
|
+
return p.state;
|
|
3401
|
+
}).then((p) => {
|
|
3402
|
+
var w;
|
|
3403
|
+
return E = o.merge(
|
|
3404
|
+
p,
|
|
3405
|
+
(w = n()) != null ? w : A
|
|
3406
|
+
), r(E, !0), l();
|
|
3407
|
+
}).then(() => {
|
|
3408
|
+
y == null || y(E, void 0), s = !0, u.forEach((p) => p(E));
|
|
3409
|
+
}).catch((p) => {
|
|
3410
|
+
y == null || y(void 0, p);
|
|
3411
|
+
});
|
|
3412
|
+
};
|
|
3413
|
+
return a.persist = {
|
|
3414
|
+
setOptions: (b) => {
|
|
3415
|
+
o = {
|
|
3416
|
+
...o,
|
|
3417
|
+
...b
|
|
3418
|
+
}, b.getStorage && (f = b.getStorage());
|
|
3419
|
+
},
|
|
3420
|
+
clearStorage: () => {
|
|
3421
|
+
f == null || f.removeItem(o.name);
|
|
3422
|
+
},
|
|
3423
|
+
getOptions: () => o,
|
|
3424
|
+
rehydrate: () => v(),
|
|
3425
|
+
hasHydrated: () => s,
|
|
3426
|
+
onHydrate: (b) => (c.add(b), () => {
|
|
3427
|
+
c.delete(b);
|
|
3428
|
+
}),
|
|
3429
|
+
onFinishHydration: (b) => (u.add(b), () => {
|
|
3430
|
+
u.delete(b);
|
|
3431
|
+
})
|
|
3432
|
+
}, v(), E || A;
|
|
3433
|
+
}, Zf = (e, t) => (r, n, a) => {
|
|
3434
|
+
let o = {
|
|
3435
|
+
storage: nn(() => localStorage),
|
|
3436
|
+
partialize: (v) => v,
|
|
3437
|
+
version: 0,
|
|
3438
|
+
merge: (v, b) => ({
|
|
3439
|
+
...b,
|
|
3440
|
+
...v
|
|
3441
|
+
}),
|
|
3442
|
+
...t
|
|
3443
|
+
}, s = !1;
|
|
3444
|
+
const c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
|
3445
|
+
let f = o.storage;
|
|
3446
|
+
if (!f)
|
|
3447
|
+
return e(
|
|
3448
|
+
(...v) => {
|
|
3449
|
+
console.warn(
|
|
3450
|
+
`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`
|
|
3451
|
+
), r(...v);
|
|
3452
|
+
},
|
|
3453
|
+
n,
|
|
3454
|
+
a
|
|
3455
|
+
);
|
|
3456
|
+
const d = () => {
|
|
3457
|
+
const v = o.partialize({ ...n() });
|
|
3458
|
+
return f.setItem(o.name, {
|
|
3459
|
+
state: v,
|
|
3460
|
+
version: o.version
|
|
3461
|
+
});
|
|
3462
|
+
}, l = a.setState;
|
|
3463
|
+
a.setState = (v, b) => {
|
|
3464
|
+
l(v, b), d();
|
|
3465
|
+
};
|
|
3466
|
+
const g = e(
|
|
3467
|
+
(...v) => {
|
|
3468
|
+
r(...v), d();
|
|
3469
|
+
},
|
|
3470
|
+
n,
|
|
3471
|
+
a
|
|
3472
|
+
);
|
|
3473
|
+
let A;
|
|
3474
|
+
const E = () => {
|
|
3475
|
+
var v, b;
|
|
3476
|
+
if (!f)
|
|
3477
|
+
return;
|
|
3478
|
+
s = !1, c.forEach((p) => {
|
|
3479
|
+
var w;
|
|
3480
|
+
return p((w = n()) != null ? w : g);
|
|
3481
|
+
});
|
|
3482
|
+
const y = ((b = o.onRehydrateStorage) == null ? void 0 : b.call(o, (v = n()) != null ? v : g)) || void 0;
|
|
3483
|
+
return Ct(f.getItem.bind(f))(o.name).then((p) => {
|
|
3484
|
+
if (p)
|
|
3485
|
+
if (typeof p.version == "number" && p.version !== o.version) {
|
|
3486
|
+
if (o.migrate)
|
|
3487
|
+
return o.migrate(
|
|
3488
|
+
p.state,
|
|
3489
|
+
p.version
|
|
3490
|
+
);
|
|
3491
|
+
console.error(
|
|
3492
|
+
"State loaded from storage couldn't be migrated since no migrate function was provided"
|
|
3493
|
+
);
|
|
3494
|
+
} else
|
|
3495
|
+
return p.state;
|
|
3496
|
+
}).then((p) => {
|
|
3497
|
+
var w;
|
|
3498
|
+
return A = o.merge(
|
|
3499
|
+
p,
|
|
3500
|
+
(w = n()) != null ? w : g
|
|
3501
|
+
), r(A, !0), d();
|
|
3502
|
+
}).then(() => {
|
|
3503
|
+
y == null || y(A, void 0), A = n(), s = !0, u.forEach((p) => p(A));
|
|
3504
|
+
}).catch((p) => {
|
|
3505
|
+
y == null || y(void 0, p);
|
|
3506
|
+
});
|
|
3507
|
+
};
|
|
3508
|
+
return a.persist = {
|
|
3509
|
+
setOptions: (v) => {
|
|
3510
|
+
o = {
|
|
3511
|
+
...o,
|
|
3512
|
+
...v
|
|
3513
|
+
}, v.storage && (f = v.storage);
|
|
3514
|
+
},
|
|
3515
|
+
clearStorage: () => {
|
|
3516
|
+
f == null || f.removeItem(o.name);
|
|
3517
|
+
},
|
|
3518
|
+
getOptions: () => o,
|
|
3519
|
+
rehydrate: () => E(),
|
|
3520
|
+
hasHydrated: () => s,
|
|
3521
|
+
onHydrate: (v) => (c.add(v), () => {
|
|
3522
|
+
c.delete(v);
|
|
3523
|
+
}),
|
|
3524
|
+
onFinishHydration: (v) => (u.add(v), () => {
|
|
3525
|
+
u.delete(v);
|
|
3526
|
+
})
|
|
3527
|
+
}, o.skipHydration || E(), A || g;
|
|
3528
|
+
}, Jf = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? (($f ? "production" : void 0) !== "production" && console.warn(
|
|
3529
|
+
"[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."
|
|
3530
|
+
), Xf(e, t)) : Zf(e, t), an = Jf;
|
|
3531
|
+
class ht extends Error {
|
|
3532
|
+
}
|
|
3533
|
+
ht.prototype.name = "InvalidTokenError";
|
|
3534
|
+
function ed(e) {
|
|
3535
|
+
return decodeURIComponent(atob(e).replace(/(.)/g, (t, r) => {
|
|
3536
|
+
let n = r.charCodeAt(0).toString(16).toUpperCase();
|
|
3537
|
+
return n.length < 2 && (n = "0" + n), "%" + n;
|
|
3538
|
+
}));
|
|
3539
|
+
}
|
|
3540
|
+
function td(e) {
|
|
3541
|
+
let t = e.replace(/-/g, "+").replace(/_/g, "/");
|
|
3542
|
+
switch (t.length % 4) {
|
|
3543
|
+
case 0:
|
|
3544
|
+
break;
|
|
3545
|
+
case 2:
|
|
3546
|
+
t += "==";
|
|
3547
|
+
break;
|
|
3548
|
+
case 3:
|
|
3549
|
+
t += "=";
|
|
3550
|
+
break;
|
|
3551
|
+
default:
|
|
3552
|
+
throw new Error("base64 string is not of the correct length");
|
|
3553
|
+
}
|
|
3554
|
+
try {
|
|
3555
|
+
return ed(t);
|
|
3556
|
+
} catch {
|
|
3557
|
+
return atob(t);
|
|
3558
|
+
}
|
|
3559
|
+
}
|
|
3560
|
+
function rd(e, t) {
|
|
3561
|
+
if (typeof e != "string")
|
|
3562
|
+
throw new ht("Invalid token specified: must be a string");
|
|
3563
|
+
t || (t = {});
|
|
3564
|
+
const r = t.header === !0 ? 0 : 1, n = e.split(".")[r];
|
|
3565
|
+
if (typeof n != "string")
|
|
3566
|
+
throw new ht(`Invalid token specified: missing part #${r + 1}`);
|
|
3567
|
+
let a;
|
|
3568
|
+
try {
|
|
3569
|
+
a = td(n);
|
|
3570
|
+
} catch (o) {
|
|
3571
|
+
throw new ht(`Invalid token specified: invalid base64 for part #${r + 1} (${o.message})`);
|
|
3572
|
+
}
|
|
3573
|
+
try {
|
|
3574
|
+
return JSON.parse(a);
|
|
3575
|
+
} catch (o) {
|
|
3576
|
+
throw new ht(`Invalid token specified: invalid json for part #${r + 1} (${o.message})`);
|
|
3577
|
+
}
|
|
3578
|
+
}
|
|
3579
|
+
const Ro = "%[a-f0-9]{2}", ua = new RegExp("(" + Ro + ")|([^%]+?)", "gi"), la = new RegExp("(" + Ro + ")+", "gi");
|
|
3580
|
+
function Nr(e, t) {
|
|
3581
|
+
try {
|
|
3582
|
+
return [decodeURIComponent(e.join(""))];
|
|
3583
|
+
} catch {
|
|
3584
|
+
}
|
|
3585
|
+
if (e.length === 1)
|
|
3586
|
+
return e;
|
|
3587
|
+
t = t || 1;
|
|
3588
|
+
const r = e.slice(0, t), n = e.slice(t);
|
|
3589
|
+
return Array.prototype.concat.call([], Nr(r), Nr(n));
|
|
3590
|
+
}
|
|
3591
|
+
function nd(e) {
|
|
3592
|
+
try {
|
|
3593
|
+
return decodeURIComponent(e);
|
|
3594
|
+
} catch {
|
|
3595
|
+
let t = e.match(ua) || [];
|
|
3596
|
+
for (let r = 1; r < t.length; r++)
|
|
3597
|
+
e = Nr(t, r).join(""), t = e.match(ua) || [];
|
|
3598
|
+
return e;
|
|
3599
|
+
}
|
|
3600
|
+
}
|
|
3601
|
+
function ad(e) {
|
|
3602
|
+
const t = {
|
|
3603
|
+
"%FE%FF": "��",
|
|
3604
|
+
"%FF%FE": "��"
|
|
3605
|
+
};
|
|
3606
|
+
let r = la.exec(e);
|
|
3607
|
+
for (; r; ) {
|
|
3608
|
+
try {
|
|
3609
|
+
t[r[0]] = decodeURIComponent(r[0]);
|
|
3610
|
+
} catch {
|
|
3611
|
+
const a = nd(r[0]);
|
|
3612
|
+
a !== r[0] && (t[r[0]] = a);
|
|
3613
|
+
}
|
|
3614
|
+
r = la.exec(e);
|
|
3615
|
+
}
|
|
3616
|
+
t["%C2"] = "�";
|
|
3617
|
+
const n = Object.keys(t);
|
|
3618
|
+
for (const a of n)
|
|
3619
|
+
e = e.replace(new RegExp(a, "g"), t[a]);
|
|
3620
|
+
return e;
|
|
3621
|
+
}
|
|
3622
|
+
function od(e) {
|
|
3623
|
+
if (typeof e != "string")
|
|
3624
|
+
throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof e + "`");
|
|
3625
|
+
try {
|
|
3626
|
+
return decodeURIComponent(e);
|
|
3627
|
+
} catch {
|
|
3628
|
+
return ad(e);
|
|
3629
|
+
}
|
|
3630
|
+
}
|
|
3631
|
+
function xo(e, t) {
|
|
3632
|
+
if (!(typeof e == "string" && typeof t == "string"))
|
|
3633
|
+
throw new TypeError("Expected the arguments to be of type `string`");
|
|
3634
|
+
if (e === "" || t === "")
|
|
3635
|
+
return [];
|
|
3636
|
+
const r = e.indexOf(t);
|
|
3637
|
+
return r === -1 ? [] : [
|
|
3638
|
+
e.slice(0, r),
|
|
3639
|
+
e.slice(r + t.length)
|
|
3640
|
+
];
|
|
3641
|
+
}
|
|
3642
|
+
function id(e, t) {
|
|
3643
|
+
const r = {};
|
|
3644
|
+
if (Array.isArray(t))
|
|
3645
|
+
for (const n of t) {
|
|
3646
|
+
const a = Object.getOwnPropertyDescriptor(e, n);
|
|
3647
|
+
a != null && a.enumerable && Object.defineProperty(r, n, a);
|
|
3648
|
+
}
|
|
3649
|
+
else
|
|
3650
|
+
for (const n of Reflect.ownKeys(e)) {
|
|
3651
|
+
const a = Object.getOwnPropertyDescriptor(e, n);
|
|
3652
|
+
if (a.enumerable) {
|
|
3653
|
+
const o = e[n];
|
|
3654
|
+
t(n, o, e) && Object.defineProperty(r, n, a);
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3657
|
+
return r;
|
|
3658
|
+
}
|
|
3659
|
+
const sd = (e) => e == null, cd = (e) => encodeURIComponent(e).replace(/[!'()*]/g, (t) => `%${t.charCodeAt(0).toString(16).toUpperCase()}`), Br = Symbol("encodeFragmentIdentifier");
|
|
3660
|
+
function ud(e) {
|
|
3661
|
+
switch (e.arrayFormat) {
|
|
3662
|
+
case "index":
|
|
3663
|
+
return (t) => (r, n) => {
|
|
3664
|
+
const a = r.length;
|
|
3665
|
+
return n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [
|
|
3666
|
+
...r,
|
|
3667
|
+
[ee(t, e), "[", a, "]"].join("")
|
|
3668
|
+
] : [
|
|
3669
|
+
...r,
|
|
3670
|
+
[ee(t, e), "[", ee(a, e), "]=", ee(n, e)].join("")
|
|
3671
|
+
];
|
|
3672
|
+
};
|
|
3673
|
+
case "bracket":
|
|
3674
|
+
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [
|
|
3675
|
+
...r,
|
|
3676
|
+
[ee(t, e), "[]"].join("")
|
|
3677
|
+
] : [
|
|
3678
|
+
...r,
|
|
3679
|
+
[ee(t, e), "[]=", ee(n, e)].join("")
|
|
3680
|
+
];
|
|
3681
|
+
case "colon-list-separator":
|
|
3682
|
+
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [
|
|
3683
|
+
...r,
|
|
3684
|
+
[ee(t, e), ":list="].join("")
|
|
3685
|
+
] : [
|
|
3686
|
+
...r,
|
|
3687
|
+
[ee(t, e), ":list=", ee(n, e)].join("")
|
|
3688
|
+
];
|
|
3689
|
+
case "comma":
|
|
3690
|
+
case "separator":
|
|
3691
|
+
case "bracket-separator": {
|
|
3692
|
+
const t = e.arrayFormat === "bracket-separator" ? "[]=" : "=";
|
|
3693
|
+
return (r) => (n, a) => a === void 0 || e.skipNull && a === null || e.skipEmptyString && a === "" ? n : (a = a === null ? "" : a, n.length === 0 ? [[ee(r, e), t, ee(a, e)].join("")] : [[n, ee(a, e)].join(e.arrayFormatSeparator)]);
|
|
3694
|
+
}
|
|
3695
|
+
default:
|
|
3696
|
+
return (t) => (r, n) => n === void 0 || e.skipNull && n === null || e.skipEmptyString && n === "" ? r : n === null ? [
|
|
3697
|
+
...r,
|
|
3698
|
+
ee(t, e)
|
|
3699
|
+
] : [
|
|
3700
|
+
...r,
|
|
3701
|
+
[ee(t, e), "=", ee(n, e)].join("")
|
|
3702
|
+
];
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3705
|
+
function ld(e) {
|
|
3706
|
+
let t;
|
|
3707
|
+
switch (e.arrayFormat) {
|
|
3708
|
+
case "index":
|
|
3709
|
+
return (r, n, a) => {
|
|
3710
|
+
if (t = /\[(\d*)]$/.exec(r), r = r.replace(/\[\d*]$/, ""), !t) {
|
|
3711
|
+
a[r] = n;
|
|
3712
|
+
return;
|
|
3713
|
+
}
|
|
3714
|
+
a[r] === void 0 && (a[r] = {}), a[r][t[1]] = n;
|
|
3715
|
+
};
|
|
3716
|
+
case "bracket":
|
|
3717
|
+
return (r, n, a) => {
|
|
3718
|
+
if (t = /(\[])$/.exec(r), r = r.replace(/\[]$/, ""), !t) {
|
|
3719
|
+
a[r] = n;
|
|
3720
|
+
return;
|
|
3721
|
+
}
|
|
3722
|
+
if (a[r] === void 0) {
|
|
3723
|
+
a[r] = [n];
|
|
3724
|
+
return;
|
|
3725
|
+
}
|
|
3726
|
+
a[r] = [...a[r], n];
|
|
3727
|
+
};
|
|
3728
|
+
case "colon-list-separator":
|
|
3729
|
+
return (r, n, a) => {
|
|
3730
|
+
if (t = /(:list)$/.exec(r), r = r.replace(/:list$/, ""), !t) {
|
|
3731
|
+
a[r] = n;
|
|
3732
|
+
return;
|
|
3733
|
+
}
|
|
3734
|
+
if (a[r] === void 0) {
|
|
3735
|
+
a[r] = [n];
|
|
3736
|
+
return;
|
|
3737
|
+
}
|
|
3738
|
+
a[r] = [...a[r], n];
|
|
3739
|
+
};
|
|
3740
|
+
case "comma":
|
|
3741
|
+
case "separator":
|
|
3742
|
+
return (r, n, a) => {
|
|
3743
|
+
const o = typeof n == "string" && n.includes(e.arrayFormatSeparator), s = typeof n == "string" && !o && Ie(n, e).includes(e.arrayFormatSeparator);
|
|
3744
|
+
n = s ? Ie(n, e) : n;
|
|
3745
|
+
const c = o || s ? n.split(e.arrayFormatSeparator).map((u) => Ie(u, e)) : n === null ? n : Ie(n, e);
|
|
3746
|
+
a[r] = c;
|
|
3747
|
+
};
|
|
3748
|
+
case "bracket-separator":
|
|
3749
|
+
return (r, n, a) => {
|
|
3750
|
+
const o = /(\[])$/.test(r);
|
|
3751
|
+
if (r = r.replace(/\[]$/, ""), !o) {
|
|
3752
|
+
a[r] = n && Ie(n, e);
|
|
3753
|
+
return;
|
|
3754
|
+
}
|
|
3755
|
+
const s = n === null ? [] : n.split(e.arrayFormatSeparator).map((c) => Ie(c, e));
|
|
3756
|
+
if (a[r] === void 0) {
|
|
3757
|
+
a[r] = s;
|
|
3758
|
+
return;
|
|
3759
|
+
}
|
|
3760
|
+
a[r] = [...a[r], ...s];
|
|
3761
|
+
};
|
|
3762
|
+
default:
|
|
3763
|
+
return (r, n, a) => {
|
|
3764
|
+
if (a[r] === void 0) {
|
|
3765
|
+
a[r] = n;
|
|
3766
|
+
return;
|
|
3767
|
+
}
|
|
3768
|
+
a[r] = [...[a[r]].flat(), n];
|
|
3769
|
+
};
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
function To(e) {
|
|
3773
|
+
if (typeof e != "string" || e.length !== 1)
|
|
3774
|
+
throw new TypeError("arrayFormatSeparator must be single character string");
|
|
3775
|
+
}
|
|
3776
|
+
function ee(e, t) {
|
|
3777
|
+
return t.encode ? t.strict ? cd(e) : encodeURIComponent(e) : e;
|
|
3778
|
+
}
|
|
3779
|
+
function Ie(e, t) {
|
|
3780
|
+
return t.decode ? od(e) : e;
|
|
3781
|
+
}
|
|
3782
|
+
function Io(e) {
|
|
3783
|
+
return Array.isArray(e) ? e.sort() : typeof e == "object" ? Io(Object.keys(e)).sort((t, r) => Number(t) - Number(r)).map((t) => e[t]) : e;
|
|
3784
|
+
}
|
|
3785
|
+
function _o(e) {
|
|
3786
|
+
const t = e.indexOf("#");
|
|
3787
|
+
return t !== -1 && (e = e.slice(0, t)), e;
|
|
3788
|
+
}
|
|
3789
|
+
function fd(e) {
|
|
3790
|
+
let t = "";
|
|
3791
|
+
const r = e.indexOf("#");
|
|
3792
|
+
return r !== -1 && (t = e.slice(r)), t;
|
|
3793
|
+
}
|
|
3794
|
+
function fa(e, t) {
|
|
3795
|
+
return t.parseNumbers && !Number.isNaN(Number(e)) && typeof e == "string" && e.trim() !== "" ? e = Number(e) : t.parseBooleans && e !== null && (e.toLowerCase() === "true" || e.toLowerCase() === "false") && (e = e.toLowerCase() === "true"), e;
|
|
3796
|
+
}
|
|
3797
|
+
function on(e) {
|
|
3798
|
+
e = _o(e);
|
|
3799
|
+
const t = e.indexOf("?");
|
|
3800
|
+
return t === -1 ? "" : e.slice(t + 1);
|
|
3801
|
+
}
|
|
3802
|
+
function sn(e, t) {
|
|
3803
|
+
t = {
|
|
3804
|
+
decode: !0,
|
|
3805
|
+
sort: !0,
|
|
3806
|
+
arrayFormat: "none",
|
|
3807
|
+
arrayFormatSeparator: ",",
|
|
3808
|
+
parseNumbers: !1,
|
|
3809
|
+
parseBooleans: !1,
|
|
3810
|
+
...t
|
|
3811
|
+
}, To(t.arrayFormatSeparator);
|
|
3812
|
+
const r = ld(t), n = /* @__PURE__ */ Object.create(null);
|
|
3813
|
+
if (typeof e != "string" || (e = e.trim().replace(/^[?#&]/, ""), !e))
|
|
3814
|
+
return n;
|
|
3815
|
+
for (const a of e.split("&")) {
|
|
3816
|
+
if (a === "")
|
|
3817
|
+
continue;
|
|
3818
|
+
const o = t.decode ? a.replace(/\+/g, " ") : a;
|
|
3819
|
+
let [s, c] = xo(o, "=");
|
|
3820
|
+
s === void 0 && (s = o), c = c === void 0 ? null : ["comma", "separator", "bracket-separator"].includes(t.arrayFormat) ? c : Ie(c, t), r(Ie(s, t), c, n);
|
|
3821
|
+
}
|
|
3822
|
+
for (const [a, o] of Object.entries(n))
|
|
3823
|
+
if (typeof o == "object" && o !== null)
|
|
3824
|
+
for (const [s, c] of Object.entries(o))
|
|
3825
|
+
o[s] = fa(c, t);
|
|
3826
|
+
else
|
|
3827
|
+
n[a] = fa(o, t);
|
|
3828
|
+
return t.sort === !1 ? n : (t.sort === !0 ? Object.keys(n).sort() : Object.keys(n).sort(t.sort)).reduce((a, o) => {
|
|
3829
|
+
const s = n[o];
|
|
3830
|
+
return s && typeof s == "object" && !Array.isArray(s) ? a[o] = Io(s) : a[o] = s, a;
|
|
3831
|
+
}, /* @__PURE__ */ Object.create(null));
|
|
3832
|
+
}
|
|
3833
|
+
function jo(e, t) {
|
|
3834
|
+
if (!e)
|
|
3835
|
+
return "";
|
|
3836
|
+
t = {
|
|
3837
|
+
encode: !0,
|
|
3838
|
+
strict: !0,
|
|
3839
|
+
arrayFormat: "none",
|
|
3840
|
+
arrayFormatSeparator: ",",
|
|
3841
|
+
...t
|
|
3842
|
+
}, To(t.arrayFormatSeparator);
|
|
3843
|
+
const r = (s) => t.skipNull && sd(e[s]) || t.skipEmptyString && e[s] === "", n = ud(t), a = {};
|
|
3844
|
+
for (const [s, c] of Object.entries(e))
|
|
3845
|
+
r(s) || (a[s] = c);
|
|
3846
|
+
const o = Object.keys(a);
|
|
3847
|
+
return t.sort !== !1 && o.sort(t.sort), o.map((s) => {
|
|
3848
|
+
const c = e[s];
|
|
3849
|
+
return c === void 0 ? "" : c === null ? ee(s, t) : Array.isArray(c) ? c.length === 0 && t.arrayFormat === "bracket-separator" ? ee(s, t) + "[]" : c.reduce(n(s), []).join("&") : ee(s, t) + "=" + ee(c, t);
|
|
3850
|
+
}).filter((s) => s.length > 0).join("&");
|
|
3851
|
+
}
|
|
3852
|
+
function Do(e, t) {
|
|
3853
|
+
var a;
|
|
3854
|
+
t = {
|
|
3855
|
+
decode: !0,
|
|
3856
|
+
...t
|
|
3857
|
+
};
|
|
3858
|
+
let [r, n] = xo(e, "#");
|
|
3859
|
+
return r === void 0 && (r = e), {
|
|
3860
|
+
url: ((a = r == null ? void 0 : r.split("?")) == null ? void 0 : a[0]) ?? "",
|
|
3861
|
+
query: sn(on(e), t),
|
|
3862
|
+
...t && t.parseFragmentIdentifier && n ? { fragmentIdentifier: Ie(n, t) } : {}
|
|
3863
|
+
};
|
|
3864
|
+
}
|
|
3865
|
+
function Po(e, t) {
|
|
3866
|
+
t = {
|
|
3867
|
+
encode: !0,
|
|
3868
|
+
strict: !0,
|
|
3869
|
+
[Br]: !0,
|
|
3870
|
+
...t
|
|
3871
|
+
};
|
|
3872
|
+
const r = _o(e.url).split("?")[0] || "", n = on(e.url), a = {
|
|
3873
|
+
...sn(n, { sort: !1 }),
|
|
3874
|
+
...e.query
|
|
3875
|
+
};
|
|
3876
|
+
let o = jo(a, t);
|
|
3877
|
+
o && (o = `?${o}`);
|
|
3878
|
+
let s = fd(e.url);
|
|
3879
|
+
if (e.fragmentIdentifier) {
|
|
3880
|
+
const c = new URL(r);
|
|
3881
|
+
c.hash = e.fragmentIdentifier, s = t[Br] ? c.hash : `#${e.fragmentIdentifier}`;
|
|
3882
|
+
}
|
|
3883
|
+
return `${r}${o}${s}`;
|
|
3884
|
+
}
|
|
3885
|
+
function Fo(e, t, r) {
|
|
3886
|
+
r = {
|
|
3887
|
+
parseFragmentIdentifier: !0,
|
|
3888
|
+
[Br]: !1,
|
|
3889
|
+
...r
|
|
3890
|
+
};
|
|
3891
|
+
const { url: n, query: a, fragmentIdentifier: o } = Do(e, r);
|
|
3892
|
+
return Po({
|
|
3893
|
+
url: n,
|
|
3894
|
+
query: id(a, t),
|
|
3895
|
+
fragmentIdentifier: o
|
|
3896
|
+
}, r);
|
|
3897
|
+
}
|
|
3898
|
+
function dd(e, t, r) {
|
|
3899
|
+
const n = Array.isArray(t) ? (a) => !t.includes(a) : (a, o) => !t(a, o);
|
|
3900
|
+
return Fo(e, n, r);
|
|
3901
|
+
}
|
|
3902
|
+
const at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3903
|
+
__proto__: null,
|
|
3904
|
+
exclude: dd,
|
|
3905
|
+
extract: on,
|
|
3906
|
+
parse: sn,
|
|
3907
|
+
parseUrl: Do,
|
|
3908
|
+
pick: Fo,
|
|
3909
|
+
stringify: jo,
|
|
3910
|
+
stringifyUrl: Po
|
|
3911
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3912
|
+
class da extends Error {
|
|
3913
|
+
constructor(r) {
|
|
3914
|
+
super(r == null ? void 0 : r.message);
|
|
3915
|
+
vn(this, "status");
|
|
3916
|
+
this.status = r == null ? void 0 : r.status;
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
async function Rt(e, t) {
|
|
3920
|
+
var y;
|
|
3921
|
+
let { body: r, params: n, headers: a, responseType: o = "json", isGlobalNS: s, ...c } = t ?? {};
|
|
3922
|
+
const u = at.parseUrl(e), f = Object.assign({}, u.query, n), d = {
|
|
3923
|
+
skipNull: !0,
|
|
3924
|
+
skipEmptyString: !0,
|
|
3925
|
+
strict: !0,
|
|
3926
|
+
encode: !0
|
|
3927
|
+
}, l = at.stringify(f, d);
|
|
3928
|
+
e = l ? `${u.url}?${l}` : e, a = new Headers(a);
|
|
3929
|
+
const g = (y = yt == null ? void 0 : yt.getState()) == null ? void 0 : y.token;
|
|
3930
|
+
if (g && a.set("Authorization", `Bearer ${g}`), Cr.getState().usePermissionApiV2) {
|
|
3931
|
+
if (s)
|
|
3932
|
+
a.set("App-ID", "global");
|
|
3933
|
+
else if (!Cr.getState().hideGameSelect) {
|
|
3934
|
+
const p = cn.getState().game;
|
|
3935
|
+
p && a.set("App-ID", p.id);
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
o === "blob" ? a.append("Accept", "application/octet-stream") : a.append("Accept", "application/json");
|
|
3939
|
+
const A = !!(r && typeof r == "object" && !(r instanceof FormData));
|
|
3940
|
+
A && a.set("Content-Type", "application/json");
|
|
3941
|
+
const E = await fetch(
|
|
3942
|
+
e,
|
|
3943
|
+
Object.assign(c, {
|
|
3944
|
+
headers: a,
|
|
3945
|
+
body: A ? JSON.stringify(r) : r
|
|
3946
|
+
})
|
|
3947
|
+
);
|
|
3948
|
+
if (!E.ok)
|
|
3949
|
+
throw new da({ status: E.status });
|
|
3950
|
+
const v = Jl(E, ["headers", "status", "statusText", "url"]);
|
|
3951
|
+
if (o === "blob") {
|
|
3952
|
+
const p = await E.blob();
|
|
3953
|
+
return {
|
|
3954
|
+
...v,
|
|
3955
|
+
data: p
|
|
3956
|
+
};
|
|
3957
|
+
}
|
|
3958
|
+
const b = await E.json();
|
|
3959
|
+
if (b.code === 0 || b.status === 0)
|
|
3960
|
+
return { ...v, data: b.data };
|
|
3961
|
+
throw new da({ status: E.status, message: b.msg });
|
|
3962
|
+
}
|
|
3963
|
+
const yt = Gt()(
|
|
3964
|
+
an(
|
|
3965
|
+
(e, t, r) => ({
|
|
3966
|
+
token: "",
|
|
3967
|
+
getUser: () => {
|
|
3968
|
+
try {
|
|
3969
|
+
return rd(t().token);
|
|
3970
|
+
} catch {
|
|
3971
|
+
return null;
|
|
3972
|
+
}
|
|
3973
|
+
},
|
|
3974
|
+
setToken: (n) => e({ token: n }),
|
|
3975
|
+
clearToken: () => {
|
|
3976
|
+
t().setToken(""), r.persist.clearStorage();
|
|
3977
|
+
}
|
|
3978
|
+
}),
|
|
3979
|
+
{
|
|
3980
|
+
name: "token",
|
|
3981
|
+
partialize: (e) => ({ token: e.token })
|
|
3982
|
+
}
|
|
3983
|
+
)
|
|
3984
|
+
);
|
|
3985
|
+
function sA(e) {
|
|
3986
|
+
const { usePermissionApiV2: t } = _e();
|
|
3987
|
+
Ot(
|
|
3988
|
+
e ? null : t ? "/api/usystem/user/checkV2" : "/api/usystem/user/check",
|
|
3989
|
+
(r) => Rt(r, {
|
|
3990
|
+
method: "POST",
|
|
3991
|
+
body: {
|
|
3992
|
+
permissions: ["100001"]
|
|
3993
|
+
}
|
|
3994
|
+
}),
|
|
3995
|
+
{
|
|
3996
|
+
suspense: !0,
|
|
3997
|
+
dedupingInterval: 0
|
|
3998
|
+
}
|
|
3999
|
+
);
|
|
4000
|
+
}
|
|
4001
|
+
const Ad = {
|
|
4002
|
+
getItem: (e) => sessionStorage.getItem(e) || localStorage.getItem(e),
|
|
4003
|
+
setItem: (e, t) => {
|
|
4004
|
+
sessionStorage.setItem(e, t), localStorage.setItem(e, t);
|
|
4005
|
+
},
|
|
4006
|
+
removeItem: async (e) => {
|
|
4007
|
+
sessionStorage.removeItem(e), localStorage.removeItem(e);
|
|
4008
|
+
}
|
|
4009
|
+
}, { Text: gd } = ui, cn = Gt()(
|
|
4010
|
+
an(
|
|
4011
|
+
(e) => ({
|
|
4012
|
+
game: null,
|
|
4013
|
+
setGame: (t) => e({ game: t })
|
|
4014
|
+
}),
|
|
4015
|
+
{
|
|
4016
|
+
name: "game",
|
|
4017
|
+
storage: nn(() => Ad),
|
|
4018
|
+
partialize: (e) => ({ game: e.game })
|
|
4019
|
+
}
|
|
4020
|
+
)
|
|
4021
|
+
);
|
|
4022
|
+
function pd() {
|
|
4023
|
+
const { usePermissionApiV2: e } = _e(), t = yt((a) => a.getUser()), { data: r, isLoading: n } = Kf(
|
|
4024
|
+
e && t ? `/api/usystem/game/all?user=${t.authorityId}` : null,
|
|
4025
|
+
(a) => Rt(a, { isGlobalNS: !0 }).then((o) => o.data)
|
|
4026
|
+
);
|
|
4027
|
+
return {
|
|
4028
|
+
games: r,
|
|
4029
|
+
isLoading: n
|
|
4030
|
+
};
|
|
4031
|
+
}
|
|
4032
|
+
const hd = () => {
|
|
4033
|
+
const e = je(), { gameFilter: t } = _e(), { game: r, setGame: n } = cn(), { games: a, isLoading: o } = pd(), { mutate: s } = rn(), c = Mt(
|
|
4034
|
+
() => {
|
|
4035
|
+
var d, l;
|
|
4036
|
+
return (l = (d = a ?? []) == null ? void 0 : d.filter((g) => !t || t(g))) == null ? void 0 : l.map((g) => ({
|
|
4037
|
+
label: g.name,
|
|
4038
|
+
value: g.id
|
|
4039
|
+
}));
|
|
4040
|
+
},
|
|
4041
|
+
[a, t]
|
|
4042
|
+
), u = we(() => {
|
|
4043
|
+
s((d) => !(typeof d == "string" && d.startsWith("/api/usystem/game/all")));
|
|
4044
|
+
}, [s]), f = we(
|
|
4045
|
+
async (d) => {
|
|
4046
|
+
const l = (a ?? []).find((g) => g.id === d);
|
|
4047
|
+
l && (n(l), u());
|
|
4048
|
+
},
|
|
4049
|
+
[a, n, u]
|
|
4050
|
+
);
|
|
4051
|
+
return Ee(() => {
|
|
4052
|
+
!o && (c.length === 0 || !c.some((d) => d.value === (r == null ? void 0 : r.id))) && n(null);
|
|
4053
|
+
}, [o, r, c, n]), /* @__PURE__ */ m.jsxs(et, { children: [
|
|
4054
|
+
/* @__PURE__ */ m.jsx(gd, { children: e("GameSelect.label") }),
|
|
4055
|
+
/* @__PURE__ */ m.jsx(
|
|
4056
|
+
ci,
|
|
4057
|
+
{
|
|
4058
|
+
showSearch: !0,
|
|
4059
|
+
optionFilterProp: "label",
|
|
4060
|
+
value: r == null ? void 0 : r.id,
|
|
4061
|
+
placeholder: e("GameSelect.placeholder"),
|
|
4062
|
+
loading: o,
|
|
4063
|
+
style: { width: "200px" },
|
|
4064
|
+
options: c,
|
|
4065
|
+
onChange: f
|
|
4066
|
+
}
|
|
4067
|
+
)
|
|
4068
|
+
] });
|
|
4069
|
+
}, md = hd;
|
|
4070
|
+
var Lr, Nt = hi;
|
|
4071
|
+
if (process.env.NODE_ENV === "production")
|
|
4072
|
+
Lr = Nt.createRoot, Nt.hydrateRoot;
|
|
4073
|
+
else {
|
|
4074
|
+
var Aa = Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
4075
|
+
Lr = function(e, t) {
|
|
4076
|
+
Aa.usingClientEntryPoint = !0;
|
|
4077
|
+
try {
|
|
4078
|
+
return Nt.createRoot(e, t);
|
|
4079
|
+
} finally {
|
|
4080
|
+
Aa.usingClientEntryPoint = !1;
|
|
4081
|
+
}
|
|
4082
|
+
};
|
|
4083
|
+
}
|
|
4084
|
+
const vd = (e) => {
|
|
4085
|
+
const t = /(<[^>]*>)/;
|
|
4086
|
+
return e.split(t).filter((r) => r !== "");
|
|
4087
|
+
};
|
|
4088
|
+
function yd(e) {
|
|
4089
|
+
const t = document.createElement("div"), r = Lr(t);
|
|
4090
|
+
return new Promise((n) => {
|
|
4091
|
+
setTimeout(() => {
|
|
4092
|
+
mi(() => {
|
|
4093
|
+
r.render(e);
|
|
4094
|
+
}), n(t.innerHTML);
|
|
4095
|
+
});
|
|
4096
|
+
});
|
|
4097
|
+
}
|
|
4098
|
+
const bd = (e) => {
|
|
4099
|
+
const { texts: t, children: r } = e, [n, a] = Se("");
|
|
4100
|
+
return Ee(() => {
|
|
4101
|
+
yd(r).then((o) => {
|
|
4102
|
+
const s = vd(o);
|
|
4103
|
+
for (const c of t)
|
|
4104
|
+
for (let u = 0; u < s.length; u++)
|
|
4105
|
+
s[u] = s[u].replace(String(c), `<span style='color: #DC143C;'>${c}</span>`);
|
|
4106
|
+
a(s.join(""));
|
|
4107
|
+
});
|
|
4108
|
+
}, [r, t]), /* @__PURE__ */ m.jsx("p", { dangerouslySetInnerHTML: { __html: n } });
|
|
4109
|
+
}, cA = bd, Ed = (e) => nt(e ? e(0, null) : null)[0], br = Promise.resolve(), Sd = (e) => (t, r, n) => {
|
|
4110
|
+
const a = ge(!1), { cache: o, initialSize: s = 1, revalidateAll: c = !1, persistSize: u = !1, revalidateFirstPage: f = !0, revalidateOnMount: d = !1, parallel: l = !1 } = n, [, , , g] = Ce.get(tn);
|
|
4111
|
+
let A;
|
|
4112
|
+
try {
|
|
4113
|
+
A = Ed(t), A && (A = So + A);
|
|
4114
|
+
} catch {
|
|
4115
|
+
}
|
|
4116
|
+
const [E, v, b] = Le(o, A), y = we(() => F(E()._l) ? s : E()._l, [
|
|
4117
|
+
o,
|
|
4118
|
+
A,
|
|
4119
|
+
s
|
|
4120
|
+
]);
|
|
4121
|
+
Vt.useSyncExternalStore(we(
|
|
4122
|
+
(O) => A ? b(A, () => {
|
|
4123
|
+
O();
|
|
4124
|
+
}) : () => {
|
|
4125
|
+
},
|
|
4126
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4127
|
+
[
|
|
4128
|
+
o,
|
|
4129
|
+
A
|
|
4130
|
+
]
|
|
4131
|
+
), y, y);
|
|
4132
|
+
const p = we(() => {
|
|
4133
|
+
const O = E()._l;
|
|
4134
|
+
return F(O) ? s : O;
|
|
4135
|
+
}, [
|
|
4136
|
+
A,
|
|
4137
|
+
s
|
|
4138
|
+
]), w = ge(p());
|
|
4139
|
+
Lt(() => {
|
|
4140
|
+
if (!a.current) {
|
|
4141
|
+
a.current = !0;
|
|
4142
|
+
return;
|
|
4143
|
+
}
|
|
4144
|
+
A && v({
|
|
4145
|
+
_l: u ? w.current : p()
|
|
4146
|
+
});
|
|
4147
|
+
}, [
|
|
4148
|
+
A,
|
|
4149
|
+
o
|
|
4150
|
+
]);
|
|
4151
|
+
const R = d && !a.current, x = e(A, async (O) => {
|
|
4152
|
+
const P = E()._i, D = [], G = p(), [I] = Le(o, O), N = I().data, j = [];
|
|
4153
|
+
let q = null;
|
|
4154
|
+
for (let U = 0; U < G; ++U) {
|
|
4155
|
+
const [Q, te] = nt(t(U, l ? null : q));
|
|
4156
|
+
if (!Q)
|
|
4157
|
+
break;
|
|
4158
|
+
const [me, De] = Le(o, Q);
|
|
4159
|
+
let K = me().data;
|
|
4160
|
+
const ie = c || P || F(K) || f && !U && !F(N) || R || N && !F(N[U]) && !n.compare(N[U], K);
|
|
4161
|
+
if (r && ie) {
|
|
4162
|
+
const le = async () => {
|
|
4163
|
+
if (!(Q in g))
|
|
4164
|
+
K = await r(te);
|
|
4165
|
+
else {
|
|
4166
|
+
const se = g[Q];
|
|
4167
|
+
delete g[Q], K = await se;
|
|
4168
|
+
}
|
|
4169
|
+
De({
|
|
4170
|
+
data: K,
|
|
4171
|
+
_k: te
|
|
4172
|
+
}), D[U] = K;
|
|
4173
|
+
};
|
|
4174
|
+
l ? j.push(le) : await le();
|
|
4175
|
+
} else
|
|
4176
|
+
D[U] = K;
|
|
4177
|
+
l || (q = K);
|
|
4178
|
+
}
|
|
4179
|
+
return l && await Promise.all(j.map((U) => U())), v({
|
|
4180
|
+
_i: ne
|
|
4181
|
+
}), D;
|
|
4182
|
+
}, n), C = we(
|
|
4183
|
+
// eslint-disable-next-line func-names
|
|
4184
|
+
function(O, P) {
|
|
4185
|
+
const D = typeof P == "boolean" ? {
|
|
4186
|
+
revalidate: P
|
|
4187
|
+
} : P || {}, G = D.revalidate !== !1;
|
|
4188
|
+
return A ? (G && (F(O) ? v({
|
|
4189
|
+
_i: !0
|
|
4190
|
+
}) : v({
|
|
4191
|
+
_i: !1
|
|
4192
|
+
})), arguments.length ? x.mutate(O, {
|
|
4193
|
+
...D,
|
|
4194
|
+
revalidate: G
|
|
4195
|
+
}) : x.mutate()) : br;
|
|
4196
|
+
},
|
|
4197
|
+
// swr.mutate is always the same reference
|
|
4198
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4199
|
+
[
|
|
4200
|
+
A,
|
|
4201
|
+
o
|
|
4202
|
+
]
|
|
4203
|
+
), T = we(
|
|
4204
|
+
(O) => {
|
|
4205
|
+
if (!A)
|
|
4206
|
+
return br;
|
|
4207
|
+
const [, P] = Le(o, A);
|
|
4208
|
+
let D;
|
|
4209
|
+
if (Oe(O) ? D = O(p()) : typeof O == "number" && (D = O), typeof D != "number")
|
|
4210
|
+
return br;
|
|
4211
|
+
P({
|
|
4212
|
+
_l: D
|
|
4213
|
+
}), w.current = D;
|
|
4214
|
+
const G = [], [I] = Le(o, A);
|
|
4215
|
+
let N = null;
|
|
4216
|
+
for (let j = 0; j < D; ++j) {
|
|
4217
|
+
const [q] = nt(t(j, N)), [U] = Le(o, q), Q = q ? U().data : ne;
|
|
4218
|
+
if (F(Q))
|
|
4219
|
+
return C(I().data);
|
|
4220
|
+
G.push(Q), N = Q;
|
|
4221
|
+
}
|
|
4222
|
+
return C(G);
|
|
4223
|
+
},
|
|
4224
|
+
// exclude getKey from the dependencies, which isn't allowed to change during the lifecycle
|
|
4225
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4226
|
+
[
|
|
4227
|
+
A,
|
|
4228
|
+
o,
|
|
4229
|
+
C,
|
|
4230
|
+
p
|
|
4231
|
+
]
|
|
4232
|
+
);
|
|
4233
|
+
return {
|
|
4234
|
+
size: p(),
|
|
4235
|
+
setSize: T,
|
|
4236
|
+
mutate: C,
|
|
4237
|
+
get data() {
|
|
4238
|
+
return x.data;
|
|
4239
|
+
},
|
|
4240
|
+
get error() {
|
|
4241
|
+
return x.error;
|
|
4242
|
+
},
|
|
4243
|
+
get isValidating() {
|
|
4244
|
+
return x.isValidating;
|
|
4245
|
+
},
|
|
4246
|
+
get isLoading() {
|
|
4247
|
+
return x.isLoading;
|
|
4248
|
+
}
|
|
4249
|
+
};
|
|
4250
|
+
}, wd = Oo(Ot, Sd);
|
|
4251
|
+
function No(e, t, r) {
|
|
4252
|
+
const { usePermissionApiV2: n } = _e(), { data: a, isValidating: o, isLoading: s } = Ot(
|
|
4253
|
+
e.length > 0 ? [n ? "/api/usystem/user/checkV2" : "/api/usystem/user/check", e] : null,
|
|
4254
|
+
([c]) => Rt(c, {
|
|
4255
|
+
method: "POST",
|
|
4256
|
+
body: {
|
|
4257
|
+
permissions: e
|
|
4258
|
+
},
|
|
4259
|
+
isGlobalNS: t
|
|
4260
|
+
}).then((u) => {
|
|
4261
|
+
var f;
|
|
4262
|
+
return (f = u.data) != null && f.has_all ? e.reduce(
|
|
4263
|
+
(d, l) => (d[l] = !0, d),
|
|
4264
|
+
{}
|
|
4265
|
+
) : e.reduce(
|
|
4266
|
+
(d, l) => {
|
|
4267
|
+
var g;
|
|
4268
|
+
return d[l] = ((g = u.data) == null ? void 0 : g[l]) ?? !1, d;
|
|
4269
|
+
},
|
|
4270
|
+
{}
|
|
4271
|
+
);
|
|
4272
|
+
}),
|
|
4273
|
+
r
|
|
4274
|
+
);
|
|
4275
|
+
return { data: a, isValidating: o, isLoading: s };
|
|
4276
|
+
}
|
|
4277
|
+
function Jt(e, t, r) {
|
|
4278
|
+
const { data: n, isValidating: a, isLoading: o } = No(e ? [e] : [], t, r);
|
|
4279
|
+
return e === void 0 ? {
|
|
4280
|
+
accessible: !0,
|
|
4281
|
+
isValidating: !1,
|
|
4282
|
+
isLoading: !1
|
|
4283
|
+
} : {
|
|
4284
|
+
accessible: (n == null ? void 0 : n[e]) ?? !1,
|
|
4285
|
+
isValidating: a,
|
|
4286
|
+
isLoading: o
|
|
4287
|
+
};
|
|
4288
|
+
}
|
|
4289
|
+
const Cd = (e) => {
|
|
4290
|
+
const {
|
|
4291
|
+
code: t,
|
|
4292
|
+
action: r,
|
|
4293
|
+
extras: n,
|
|
4294
|
+
headers: a,
|
|
4295
|
+
isGlobalNS: o,
|
|
4296
|
+
getRowKey: s,
|
|
4297
|
+
getDataSource: c,
|
|
4298
|
+
hasMore: u,
|
|
4299
|
+
renderForm: f,
|
|
4300
|
+
transformArg: d,
|
|
4301
|
+
...l
|
|
4302
|
+
} = e, g = je(), [A] = bt.useForm(), { accessible: E, isLoading: v } = Jt(t), [b, y] = Se(!1), [p, w] = Se(), R = (U, Q) => {
|
|
4303
|
+
if (!b)
|
|
4304
|
+
return null;
|
|
4305
|
+
const te = d(p, U !== 0 ? s(Q) : void 0);
|
|
4306
|
+
return at.stringify(te) ? `${r}?${at.stringify(te)}` : r;
|
|
4307
|
+
}, {
|
|
4308
|
+
data: x,
|
|
4309
|
+
size: C,
|
|
4310
|
+
setSize: T,
|
|
4311
|
+
isValidating: O
|
|
4312
|
+
} = wd(
|
|
4313
|
+
R,
|
|
4314
|
+
(U) => Rt(U, {
|
|
4315
|
+
headers: typeof a == "function" ? a(A) : a,
|
|
4316
|
+
isGlobalNS: o
|
|
4317
|
+
}).then((Q) => Q.data),
|
|
4318
|
+
{
|
|
4319
|
+
shouldRetryOnError: !1,
|
|
4320
|
+
revalidateOnFocus: !1,
|
|
4321
|
+
revalidateFirstPage: !1
|
|
4322
|
+
}
|
|
4323
|
+
), P = c(x), D = O || C > 0 && x && typeof x[C - 1] > "u", G = typeof u < "u" ? !u(x) : !0, I = !P || P.length === 0, N = async () => {
|
|
4324
|
+
const U = await A.getFieldsValue();
|
|
4325
|
+
w(U);
|
|
4326
|
+
try {
|
|
4327
|
+
await A.validateFields(), T(1), y(!0);
|
|
4328
|
+
} catch {
|
|
4329
|
+
T(0), y(!1);
|
|
4330
|
+
}
|
|
4331
|
+
}, j = () => {
|
|
4332
|
+
T(C + 1);
|
|
4333
|
+
}, q = async () => {
|
|
4334
|
+
try {
|
|
4335
|
+
A.resetFields(), await A.validateFields({ validateOnly: !0 }), T(1);
|
|
4336
|
+
} catch {
|
|
4337
|
+
T(0);
|
|
4338
|
+
}
|
|
4339
|
+
};
|
|
4340
|
+
return Ee(() => {
|
|
4341
|
+
E && A.validateFields({ validateOnly: !0 }).then((U) => {
|
|
4342
|
+
w(U), y(!0);
|
|
4343
|
+
}).catch(() => {
|
|
4344
|
+
y(!1);
|
|
4345
|
+
});
|
|
4346
|
+
}, [E]), v ? /* @__PURE__ */ m.jsx(
|
|
4347
|
+
kr,
|
|
4348
|
+
{
|
|
4349
|
+
style: {
|
|
4350
|
+
display: "flex",
|
|
4351
|
+
justifyContent: "center",
|
|
4352
|
+
alignItems: "center",
|
|
4353
|
+
height: 300
|
|
4354
|
+
}
|
|
4355
|
+
}
|
|
4356
|
+
) : E ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
4357
|
+
f ? /* @__PURE__ */ m.jsx(ho, { onReset: q, onConfirm: N, children: f(A) }) : /* @__PURE__ */ m.jsx(bt, { form: A }),
|
|
4358
|
+
/* @__PURE__ */ m.jsx(ha, { ...l, dataSource: P, loading: D, pagination: !1 }),
|
|
4359
|
+
!I && /* @__PURE__ */ m.jsx(
|
|
4360
|
+
Je,
|
|
4361
|
+
{
|
|
4362
|
+
block: !0,
|
|
4363
|
+
loading: D,
|
|
4364
|
+
type: "link",
|
|
4365
|
+
htmlType: "button",
|
|
4366
|
+
disabled: D || G,
|
|
4367
|
+
onClick: j,
|
|
4368
|
+
children: g(D ? "InfiniteList.loadingText" : G ? "InfiniteList.reachEndText" : "InfiniteList.loadMoreText")
|
|
4369
|
+
}
|
|
4370
|
+
)
|
|
4371
|
+
] }) : /* @__PURE__ */ m.jsx(Vr, { status: 403, subTitle: g("global.noEntitlement") });
|
|
4372
|
+
}, uA = Cd, Od = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAydpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LmIwZjhiZTkwLCAyMDIxLzEyLzE1LTIxOjI1OjE1ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjMuMiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCMEY2MEZENUIxMEUxMUVDQURFOEYzNUZGRjQ2NUYyNCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCMEY2MEZENkIxMEUxMUVDQURFOEYzNUZGRjQ2NUYyNCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkIwRjYwRkQzQjEwRTExRUNBREU4RjM1RkZGNDY1RjI0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkIwRjYwRkQ0QjEwRTExRUNBREU4RjM1RkZGNDY1RjI0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+K5OQMAAAImdJREFUeNrs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", Rd = Gt()(
|
|
4373
|
+
an(
|
|
4374
|
+
(e) => ({
|
|
4375
|
+
openKeys: [],
|
|
4376
|
+
setOpenKeys: (t) => e({ openKeys: t }),
|
|
4377
|
+
selectedKeys: [],
|
|
4378
|
+
setSelectedKeys: (t) => e({ selectedKeys: t })
|
|
4379
|
+
}),
|
|
4380
|
+
{
|
|
4381
|
+
name: "nav",
|
|
4382
|
+
storage: nn(() => localStorage),
|
|
4383
|
+
partialize: (e) => ({
|
|
4384
|
+
openKeys: e.openKeys,
|
|
4385
|
+
selectedKeys: e.selectedKeys
|
|
4386
|
+
})
|
|
4387
|
+
}
|
|
4388
|
+
)
|
|
4389
|
+
), xd = (e, t) => t ? /* @__PURE__ */ m.jsx(ma, { to: t, children: e }) : e;
|
|
4390
|
+
function Bo(e, t) {
|
|
4391
|
+
const r = [];
|
|
4392
|
+
for (let n = 0; n < e.length; n++)
|
|
4393
|
+
if (e[n] === null)
|
|
4394
|
+
r[n] = null;
|
|
4395
|
+
else if (e[n].type === "divider")
|
|
4396
|
+
r[n] = { ...e[n] };
|
|
4397
|
+
else if (e[n].children) {
|
|
4398
|
+
const { children: a, ...o } = e[n];
|
|
4399
|
+
r[n] = {
|
|
4400
|
+
...o,
|
|
4401
|
+
children: Bo(a ?? [], t)
|
|
4402
|
+
};
|
|
4403
|
+
} else {
|
|
4404
|
+
const { route: a, label: o, code: s, ...c } = e[n], u = !s || !t || t[s];
|
|
4405
|
+
r[n] = u ? {
|
|
4406
|
+
...c,
|
|
4407
|
+
label: xd(o, a)
|
|
4408
|
+
} : null;
|
|
4409
|
+
}
|
|
4410
|
+
return r;
|
|
4411
|
+
}
|
|
4412
|
+
function Lo(e, t = [], r = []) {
|
|
4413
|
+
for (const n of e) {
|
|
4414
|
+
const a = n.children;
|
|
4415
|
+
if (Array.isArray(a)) {
|
|
4416
|
+
const o = n.type !== "group" && n.key ? [...r, n.key] : r;
|
|
4417
|
+
Lo(a, t, o);
|
|
4418
|
+
} else
|
|
4419
|
+
t.push(Object.assign(n, { keypath: r }));
|
|
4420
|
+
}
|
|
4421
|
+
return t;
|
|
4422
|
+
}
|
|
4423
|
+
const Mo = ai(function() {
|
|
4424
|
+
const t = vi(), { menuItems: r } = _e(), n = Mt(() => Lo(r ?? []), [r]), a = n.map((g) => g.code).filter(Boolean), { data: o } = No(a, !0, { suspense: !0 }), s = Mt(() => Bo(r ?? [], o), [r, o]), { openKeys: c, selectedKeys: u, setOpenKeys: f, setSelectedKeys: d } = Rd(), l = (g) => {
|
|
4425
|
+
const A = g == null ? void 0 : g.find((v) => (c == null ? void 0 : c.indexOf(v)) === -1), E = n.find((v) => A === v.key);
|
|
4426
|
+
f((E == null ? void 0 : E.keypath) ?? [A]);
|
|
4427
|
+
};
|
|
4428
|
+
return Ee(() => {
|
|
4429
|
+
const g = n.find((A) => t.pathname === A.route);
|
|
4430
|
+
if (g) {
|
|
4431
|
+
const A = g.key, E = g.keypath;
|
|
4432
|
+
d([A]), f(E);
|
|
4433
|
+
}
|
|
4434
|
+
}, [n, t]), /* @__PURE__ */ m.jsx(
|
|
4435
|
+
li,
|
|
4436
|
+
{
|
|
4437
|
+
style: { borderRight: "none" },
|
|
4438
|
+
items: s,
|
|
4439
|
+
mode: "inline",
|
|
4440
|
+
openKeys: c,
|
|
4441
|
+
selectedKeys: u,
|
|
4442
|
+
onOpenChange: l
|
|
4443
|
+
}
|
|
4444
|
+
);
|
|
4445
|
+
});
|
|
4446
|
+
process.env.NODE_ENV === "development" && (Mo.displayName = "NavMenu");
|
|
4447
|
+
const Td = Mo, Id = (e) => {
|
|
4448
|
+
const { children: t } = e, { usePermissionApiV2: r, hideGameSelect: n } = _e(), { game: a } = cn(), o = je();
|
|
4449
|
+
return r && !n ? a ? /* @__PURE__ */ m.jsx("div", { children: t }, a.id) : /* @__PURE__ */ m.jsx(fi, { children: /* @__PURE__ */ m.jsx(En, { image: En.PRESENTED_IMAGE_SIMPLE, description: o("RequireGame.description") }) }) : t;
|
|
4450
|
+
}, _d = Id, jd = () => {
|
|
4451
|
+
const e = yi(), { clearToken: t, getUser: r } = yt(), n = r(), a = je(), o = [
|
|
4452
|
+
{
|
|
4453
|
+
key: "1",
|
|
4454
|
+
label: (
|
|
4455
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions,jsx-a11y/anchor-is-valid
|
|
4456
|
+
/* @__PURE__ */ m.jsx(
|
|
4457
|
+
"a",
|
|
4458
|
+
{
|
|
4459
|
+
"data-cy": "user-widget-logout",
|
|
4460
|
+
onClick: () => {
|
|
4461
|
+
t(), e("/sign_in");
|
|
4462
|
+
},
|
|
4463
|
+
children: a("UserWidget.signOutText")
|
|
4464
|
+
}
|
|
4465
|
+
)
|
|
4466
|
+
),
|
|
4467
|
+
icon: /* @__PURE__ */ m.jsx(Ds, {})
|
|
4468
|
+
}
|
|
4469
|
+
];
|
|
4470
|
+
return /* @__PURE__ */ m.jsx("div", { "data-cy": "user-widget", children: /* @__PURE__ */ m.jsx(
|
|
4471
|
+
di,
|
|
4472
|
+
{
|
|
4473
|
+
menu: {
|
|
4474
|
+
selectable: !0,
|
|
4475
|
+
items: o
|
|
4476
|
+
},
|
|
4477
|
+
placement: "bottomRight",
|
|
4478
|
+
children: /* @__PURE__ */ m.jsx(
|
|
4479
|
+
"a",
|
|
4480
|
+
{
|
|
4481
|
+
onClick: (s) => {
|
|
4482
|
+
s.preventDefault();
|
|
4483
|
+
},
|
|
4484
|
+
children: /* @__PURE__ */ m.jsxs(et, { align: "center", children: [
|
|
4485
|
+
/* @__PURE__ */ m.jsx("span", { children: n == null ? void 0 : n.authorityId }),
|
|
4486
|
+
/* @__PURE__ */ m.jsx(Ms, { style: { fontSize: "16px" } })
|
|
4487
|
+
] })
|
|
4488
|
+
}
|
|
4489
|
+
)
|
|
4490
|
+
}
|
|
4491
|
+
) });
|
|
4492
|
+
}, Dd = jd, { Spin: Pd, theme: Fd } = Ut, { Header: Nd, Sider: Bd, Content: Ld } = Ut.Layout, Md = (e) => {
|
|
4493
|
+
const { children: t, extras: r } = e, {
|
|
4494
|
+
token: { colorBgContainer: n, colorBorder: a }
|
|
4495
|
+
} = Fd.useToken(), { appTitle: o, usePermissionApiV2: s, hideGameSelect: c, localeDropdownMenu: u } = _e();
|
|
4496
|
+
return /* @__PURE__ */ m.jsxs(Ut.Layout, { hasSider: !0, className: "h-screen", children: [
|
|
4497
|
+
/* @__PURE__ */ m.jsxs(
|
|
4498
|
+
Bd,
|
|
4499
|
+
{
|
|
4500
|
+
width: 256,
|
|
4501
|
+
style: {
|
|
4502
|
+
overflow: "auto",
|
|
4503
|
+
height: "100vh",
|
|
4504
|
+
position: "fixed",
|
|
4505
|
+
left: 0,
|
|
4506
|
+
top: 0,
|
|
4507
|
+
bottom: 0,
|
|
4508
|
+
borderRightWidth: 1,
|
|
4509
|
+
borderRightStyle: "solid",
|
|
4510
|
+
borderRightColor: a
|
|
4511
|
+
},
|
|
4512
|
+
theme: "light",
|
|
4513
|
+
children: [
|
|
4514
|
+
/* @__PURE__ */ m.jsxs("div", { className: "flex items-end px-6 py-4", children: [
|
|
4515
|
+
/* @__PURE__ */ m.jsx("img", { src: Od, alt: "logo", className: "w-8 h-8" }),
|
|
4516
|
+
/* @__PURE__ */ m.jsx(ma, { className: "font-bold text-lg ml-2", to: "/", children: o })
|
|
4517
|
+
] }),
|
|
4518
|
+
/* @__PURE__ */ m.jsx(Td, {})
|
|
4519
|
+
]
|
|
4520
|
+
}
|
|
4521
|
+
),
|
|
4522
|
+
/* @__PURE__ */ m.jsxs(Ut.Layout, { className: "ml-64", children: [
|
|
4523
|
+
/* @__PURE__ */ m.jsx(
|
|
4524
|
+
Nd,
|
|
4525
|
+
{
|
|
4526
|
+
style: {
|
|
4527
|
+
padding: "0 24px",
|
|
4528
|
+
background: n,
|
|
4529
|
+
borderBottomWidth: 1,
|
|
4530
|
+
borderBottomStyle: "solid",
|
|
4531
|
+
borderBottomColor: a
|
|
4532
|
+
},
|
|
4533
|
+
children: /* @__PURE__ */ m.jsxs("div", { className: "flex justify-between items-center h-full", children: [
|
|
4534
|
+
/* @__PURE__ */ m.jsx("div", { children: s && !c && /* @__PURE__ */ m.jsx(md, {}) }),
|
|
4535
|
+
/* @__PURE__ */ m.jsxs(et, { size: "small", split: /* @__PURE__ */ m.jsx(Ai, { type: "vertical" }), children: [
|
|
4536
|
+
r == null ? void 0 : r.map((f) => /* @__PURE__ */ m.jsx("span", { children: f.children }, f.key)),
|
|
4537
|
+
u,
|
|
4538
|
+
/* @__PURE__ */ m.jsx(Dd, {})
|
|
4539
|
+
] })
|
|
4540
|
+
] })
|
|
4541
|
+
}
|
|
4542
|
+
),
|
|
4543
|
+
/* @__PURE__ */ m.jsx(Ld, { className: "p-6 bg-gray-50", style: { overflow: "overlay" }, children: /* @__PURE__ */ m.jsx(
|
|
4544
|
+
oi,
|
|
4545
|
+
{
|
|
4546
|
+
fallback: /* @__PURE__ */ m.jsx(
|
|
4547
|
+
Pd,
|
|
4548
|
+
{
|
|
4549
|
+
style: {
|
|
4550
|
+
display: "flex",
|
|
4551
|
+
justifyContent: "center",
|
|
4552
|
+
alignItems: "center",
|
|
4553
|
+
height: "200px"
|
|
4554
|
+
}
|
|
4555
|
+
}
|
|
4556
|
+
),
|
|
4557
|
+
children: s && !c ? /* @__PURE__ */ m.jsx(_d, { children: t }) : t
|
|
4558
|
+
}
|
|
4559
|
+
) })
|
|
4560
|
+
] })
|
|
4561
|
+
] });
|
|
4562
|
+
}, Ud = Md, kd = (e) => {
|
|
4563
|
+
const { children: t, code: r, showLoading: n, isGlobalNS: a, ...o } = e, { accessible: s, isLoading: c } = Jt(r, a), u = je();
|
|
4564
|
+
return c ? /* @__PURE__ */ m.jsx(Je, { loading: n, disabled: !n, ...o, children: t }) : s ? /* @__PURE__ */ m.jsx(Je, { ...o, children: t }) : /* @__PURE__ */ m.jsx(gi, { defaultOpen: !1, title: u("global.noEntitlement"), children: /* @__PURE__ */ m.jsx(Je, { disabled: !0, ...o, children: t }) });
|
|
4565
|
+
}, lA = kd, Vd = (e) => {
|
|
4566
|
+
const { code: t, children: r } = e, { accessible: n, isValidating: a } = Jt(t), o = je();
|
|
4567
|
+
return a ? /* @__PURE__ */ m.jsx(
|
|
4568
|
+
kr,
|
|
4569
|
+
{
|
|
4570
|
+
style: {
|
|
4571
|
+
display: "flex",
|
|
4572
|
+
justifyContent: "center",
|
|
4573
|
+
alignItems: "center",
|
|
4574
|
+
height: 200
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
) : n ? /* @__PURE__ */ m.jsx(m.Fragment, { children: r }) : /* @__PURE__ */ m.jsx(Vr, { status: "403", subTitle: o("global.noEntitlement") });
|
|
4578
|
+
}, fA = Vd, Gd = Gt((e, t) => ({
|
|
4579
|
+
keyMap: /* @__PURE__ */ new Map(),
|
|
4580
|
+
paginationMap: /* @__PURE__ */ new Map(),
|
|
4581
|
+
valueMap: /* @__PURE__ */ new Map(),
|
|
4582
|
+
payloadMap: /* @__PURE__ */ new Map(),
|
|
4583
|
+
setPayload(r, n, a = !1) {
|
|
4584
|
+
var c, u, f;
|
|
4585
|
+
const o = t().payloadMap, s = {
|
|
4586
|
+
page: n.page ?? ((c = o.get(r)) == null ? void 0 : c.page),
|
|
4587
|
+
size: n.size ?? ((u = o.get(r)) == null ? void 0 : u.size),
|
|
4588
|
+
arg: {
|
|
4589
|
+
...(f = o.get(r)) == null ? void 0 : f.arg,
|
|
4590
|
+
...n.arg
|
|
4591
|
+
}
|
|
4592
|
+
};
|
|
4593
|
+
a ? o.set(r, s) : e({ payloadMap: new Map(o).set(r, s) });
|
|
4594
|
+
},
|
|
4595
|
+
mutate: (r, n, a) => {
|
|
4596
|
+
const { keyMap: o } = t(), s = o.get(r);
|
|
4597
|
+
Eo(s, n, a);
|
|
4598
|
+
}
|
|
4599
|
+
}));
|
|
4600
|
+
var Wd = /* @__PURE__ */ ((e) => (e.Confirm = "confirm", e.Reset = "reset", e.Jump = "jump", e.Init = "init", e))(Wd || {});
|
|
4601
|
+
const Hd = {
|
|
4602
|
+
list: [],
|
|
4603
|
+
total: 0
|
|
4604
|
+
}, Qd = (e, t) => {
|
|
4605
|
+
const {
|
|
4606
|
+
action: r,
|
|
4607
|
+
code: n,
|
|
4608
|
+
confirmText: a,
|
|
4609
|
+
requestHeaders: o,
|
|
4610
|
+
isGlobalNS: s,
|
|
4611
|
+
onePage: c,
|
|
4612
|
+
method: u = "GET",
|
|
4613
|
+
requestBody: f,
|
|
4614
|
+
extra: d,
|
|
4615
|
+
renderForm: l,
|
|
4616
|
+
transformArg: g,
|
|
4617
|
+
transformResponse: A,
|
|
4618
|
+
afterSuccess: E,
|
|
4619
|
+
onTableChange: v,
|
|
4620
|
+
...b
|
|
4621
|
+
} = e, y = je(), [p] = bt.useForm(), { accessible: w, isLoading: R } = Jt(n, s), x = ge(), { mutate: C, payloadMap: T, setPayload: O, keyMap: P } = Gd(), { page: D = 1, size: G = 10, arg: I = {} } = T.get(r) ?? {}, [N, j] = Se(!1), [q, U] = Se(), { refreshInterval: Q } = rn(), te = (Y) => (...L) => Y(r, ...L), me = te(O), De = te(C), K = at.parseUrl(r), ie = (g == null ? void 0 : g(D, G, I)) ?? (c ? I : {
|
|
4622
|
+
...I,
|
|
4623
|
+
page: D,
|
|
4624
|
+
size: G
|
|
4625
|
+
}), le = Object.assign({}, K.query, ie), Pe = at.stringify(le), se = N ? Pe ? `${K.url}?${Pe}` : K.url : null;
|
|
4626
|
+
console.log("swrKey", se);
|
|
4627
|
+
const Fe = typeof o == "function" ? o(p) : o, Ne = typeof f == "function" ? f(p) : f, {
|
|
4628
|
+
data: ce,
|
|
4629
|
+
isLoading: He,
|
|
4630
|
+
isValidating: fe
|
|
4631
|
+
} = Ot(
|
|
4632
|
+
se,
|
|
4633
|
+
async (Y) => {
|
|
4634
|
+
const L = await Rt(Y, {
|
|
4635
|
+
method: u,
|
|
4636
|
+
headers: Fe,
|
|
4637
|
+
body: Ne,
|
|
4638
|
+
isGlobalNS: s
|
|
4639
|
+
});
|
|
4640
|
+
U(L.data);
|
|
4641
|
+
const re = (A == null ? void 0 : A(L.data)) ?? L.data;
|
|
4642
|
+
return E == null || E(re, x.current), x.current = void 0, re;
|
|
4643
|
+
},
|
|
4644
|
+
{
|
|
4645
|
+
shouldRetryOnError: !1,
|
|
4646
|
+
fallbackData: Hd
|
|
4647
|
+
}
|
|
4648
|
+
), Be = async () => {
|
|
4649
|
+
if (w)
|
|
4650
|
+
try {
|
|
4651
|
+
await p.validateFields(), j(!0);
|
|
4652
|
+
} catch (Y) {
|
|
4653
|
+
throw De(void 0, { revalidate: !1 }), j(!1), Y;
|
|
4654
|
+
} finally {
|
|
4655
|
+
me({
|
|
4656
|
+
page: 1,
|
|
4657
|
+
arg: p.getFieldsValue()
|
|
4658
|
+
});
|
|
4659
|
+
}
|
|
4660
|
+
}, V = async () => {
|
|
4661
|
+
x.current = "confirm", await Be();
|
|
4662
|
+
}, W = async () => {
|
|
4663
|
+
x.current = "reset", await Be(), p.resetFields();
|
|
4664
|
+
};
|
|
4665
|
+
return Ee(() => {
|
|
4666
|
+
x.current = "init", Be().catch(() => {
|
|
4667
|
+
p.resetFields();
|
|
4668
|
+
});
|
|
4669
|
+
}, [w]), Ee(() => {
|
|
4670
|
+
P.set(r, se);
|
|
4671
|
+
}, [P, se, r]), si(t, () => ({
|
|
4672
|
+
form: p,
|
|
4673
|
+
response: q
|
|
4674
|
+
})), R ? /* @__PURE__ */ m.jsx(
|
|
4675
|
+
kr,
|
|
4676
|
+
{
|
|
4677
|
+
style: {
|
|
4678
|
+
display: "flex",
|
|
4679
|
+
justifyContent: "center",
|
|
4680
|
+
alignItems: "center",
|
|
4681
|
+
height: 300
|
|
4682
|
+
}
|
|
4683
|
+
}
|
|
4684
|
+
) : w ? /* @__PURE__ */ m.jsxs("div", { children: [
|
|
4685
|
+
l ? /* @__PURE__ */ m.jsx(ho, { confirmText: a, onReset: W, onConfirm: V, children: l(p) }) : /* @__PURE__ */ m.jsx(bt, { form: p }),
|
|
4686
|
+
d && /* @__PURE__ */ m.jsx("div", { className: "mt-2 mb-4", children: d(q, p) }),
|
|
4687
|
+
/* @__PURE__ */ m.jsx(
|
|
4688
|
+
ha,
|
|
4689
|
+
{
|
|
4690
|
+
...b,
|
|
4691
|
+
dataSource: ce == null ? void 0 : ce.list,
|
|
4692
|
+
loading: Q === 0 ? fe : He,
|
|
4693
|
+
pagination: c ? !1 : {
|
|
4694
|
+
showSizeChanger: !0,
|
|
4695
|
+
showQuickJumper: !0,
|
|
4696
|
+
current: D,
|
|
4697
|
+
pageSize: G,
|
|
4698
|
+
total: ce == null ? void 0 : ce.total,
|
|
4699
|
+
onChange: async (Y, L) => {
|
|
4700
|
+
x.current = "jump", me({
|
|
4701
|
+
page: Y,
|
|
4702
|
+
size: L
|
|
4703
|
+
});
|
|
4704
|
+
}
|
|
4705
|
+
},
|
|
4706
|
+
onChange: v
|
|
4707
|
+
}
|
|
4708
|
+
)
|
|
4709
|
+
] }) : /* @__PURE__ */ m.jsx(Vr, { status: 403, subTitle: y("global.noEntitlement") });
|
|
4710
|
+
}, Yd = ii(Qd), dA = Yd;
|
|
4711
|
+
function AA(e) {
|
|
4712
|
+
const { onConfirm: t, content: r, onCancel: n, ...a } = e, [o, s] = pi.useModal(), [c] = bt.useForm(), u = {
|
|
4713
|
+
...a,
|
|
4714
|
+
icon: null,
|
|
4715
|
+
className: "toolkits-modal",
|
|
4716
|
+
content: r == null ? void 0 : r(c)
|
|
4717
|
+
};
|
|
4718
|
+
return {
|
|
4719
|
+
show: (d) => {
|
|
4720
|
+
const { initialValues: l, extraValues: g, ...A } = d ?? {};
|
|
4721
|
+
l && c.setFieldsValue(l);
|
|
4722
|
+
const E = async () => {
|
|
4723
|
+
const v = await c.validateFields();
|
|
4724
|
+
await (t == null ? void 0 : t(v, c, g));
|
|
4725
|
+
};
|
|
4726
|
+
return o.confirm({
|
|
4727
|
+
...u,
|
|
4728
|
+
...A,
|
|
4729
|
+
className: "toolkits-modal",
|
|
4730
|
+
onOk: E,
|
|
4731
|
+
onCancel() {
|
|
4732
|
+
c.resetFields(), n == null || n(c);
|
|
4733
|
+
}
|
|
4734
|
+
});
|
|
4735
|
+
},
|
|
4736
|
+
form: c,
|
|
4737
|
+
contextHolder: /* @__PURE__ */ m.jsx("div", { children: s })
|
|
4738
|
+
};
|
|
4739
|
+
}
|
|
4740
|
+
const zd = ot(() => import("./index-eczljdwB.chunk.js")), qd = ot(() => import("./index-GbdPmQIm.chunk.js")), Kd = ot(() => import("./index-oFEpxp61.chunk.js")), $d = ot(() => import("./index-6hfEAo8m.chunk.js")), Xd = ot(() => import("./index-M6uw3Hhg.chunk.js")), Zd = ot(() => import("./index-DwxDIdPN.chunk.js")), ga = (e, t) => () => /* @__PURE__ */ m.jsx(Pi, { ...t, children: /* @__PURE__ */ m.jsx(Ud, { children: /* @__PURE__ */ m.jsx(e, {}) }) }), Jd = () => /* @__PURE__ */ m.jsxs(va, { children: [
|
|
4741
|
+
/* @__PURE__ */ m.jsx(Me, { index: !0, element: /* @__PURE__ */ m.jsx(bi, { to: "user" }) }),
|
|
4742
|
+
/* @__PURE__ */ m.jsx(Me, { path: "user", element: /* @__PURE__ */ m.jsx(Zd, {}) }),
|
|
4743
|
+
/* @__PURE__ */ m.jsx(Me, { path: "role", element: /* @__PURE__ */ m.jsx(Xd, {}) }),
|
|
4744
|
+
/* @__PURE__ */ m.jsx(Me, { path: "role/:name", element: /* @__PURE__ */ m.jsx($d, {}) })
|
|
4745
|
+
] });
|
|
4746
|
+
function gA(e, t) {
|
|
4747
|
+
return () => {
|
|
4748
|
+
const n = Object.assign({}, t, { hideGameSelect: !0 });
|
|
4749
|
+
return /* @__PURE__ */ m.jsxs(va, { children: [
|
|
4750
|
+
e,
|
|
4751
|
+
/* @__PURE__ */ m.jsx(Me, { path: "/operation_log", Component: ga(qd, n) }),
|
|
4752
|
+
/* @__PURE__ */ m.jsx(Me, { path: "/permission/*", Component: ga(Jd, n) }),
|
|
4753
|
+
/* @__PURE__ */ m.jsx(Me, { path: "/sign_in", element: /* @__PURE__ */ m.jsx(Kd, {}) }),
|
|
4754
|
+
/* @__PURE__ */ m.jsx(Me, { path: "*", element: /* @__PURE__ */ m.jsx(zd, {}) })
|
|
4755
|
+
] });
|
|
4756
|
+
};
|
|
4757
|
+
}
|
|
4758
|
+
export {
|
|
4759
|
+
Qr as A,
|
|
4760
|
+
Ad as B,
|
|
4761
|
+
Pi as C,
|
|
4762
|
+
iA as D,
|
|
4763
|
+
sA as E,
|
|
4764
|
+
ho as F,
|
|
4765
|
+
md as G,
|
|
4766
|
+
cA as H,
|
|
4767
|
+
oa as I,
|
|
4768
|
+
gA as J,
|
|
4769
|
+
da as K,
|
|
4770
|
+
Ud as L,
|
|
4771
|
+
Td as N,
|
|
4772
|
+
lA as P,
|
|
4773
|
+
dA as Q,
|
|
4774
|
+
_d as R,
|
|
4775
|
+
ne as U,
|
|
4776
|
+
tt as _,
|
|
4777
|
+
yt as a,
|
|
4778
|
+
_e as b,
|
|
4779
|
+
oA as c,
|
|
4780
|
+
Kf as d,
|
|
4781
|
+
Jt as e,
|
|
4782
|
+
Gd as f,
|
|
4783
|
+
ya as g,
|
|
4784
|
+
AA as h,
|
|
4785
|
+
Ot as i,
|
|
4786
|
+
m as j,
|
|
4787
|
+
rn as k,
|
|
4788
|
+
Od as l,
|
|
4789
|
+
We as m,
|
|
4790
|
+
Fr as n,
|
|
4791
|
+
Lt as o,
|
|
4792
|
+
Wd as p,
|
|
4793
|
+
uA as q,
|
|
4794
|
+
Rt as r,
|
|
4795
|
+
nt as s,
|
|
4796
|
+
cn as t,
|
|
4797
|
+
je as u,
|
|
4798
|
+
fA as v,
|
|
4799
|
+
Oo as w,
|
|
4800
|
+
Cr as x,
|
|
4801
|
+
Dd as y,
|
|
4802
|
+
No as z
|
|
4803
|
+
};
|