@mi-avalon/libs 0.0.26 → 0.0.27
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/dist/components/MForm/MFormItemConst.js +1 -1
- package/dist/components/MiModal/index.d.ts +2 -2
- package/dist/components/ThemeContext/index.d.ts +3 -6
- package/dist/hooks/usePagination.js +4 -2
- package/dist/hooks/useVirtualList.d.ts +1 -27
- package/dist/hooks/useVirtualList.js +56 -46
- package/dist/index.es.js +1530 -1388
- package/dist/index.umd.js +16 -16
- package/package.json +5 -2
package/dist/index.es.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = (n, e, t) => (
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { theme as
|
|
7
|
-
import
|
|
8
|
-
function
|
|
1
|
+
var Zr = Object.defineProperty;
|
|
2
|
+
var Gr = (n, e, t) => e in n ? Zr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var m = (n, e, t) => (Gr(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import * as F from "react";
|
|
5
|
+
import Ye, { createContext as Qt, useContext as er, useEffect as ae, Component as Jr, useState as L, useRef as G, useCallback as Z, useMemo as Kr } from "react";
|
|
6
|
+
import { theme as Ie, ConfigProvider as tr, Button as ke, Affix as Xr, Card as rr, Breadcrumb as zt, Descriptions as It, Input as et, InputNumber as Qr, DatePicker as nr, Select as en, Radio as tn, Checkbox as rn, Upload as nn, Mentions as sn, Cascader as an, TreeSelect as on, Form as st, Row as cn, Col as ln, Modal as un, Table as dn } from "antd";
|
|
7
|
+
import fn from "react-dom";
|
|
8
|
+
function hn(n, e) {
|
|
9
9
|
for (var t = 0; t < e.length; t++) {
|
|
10
10
|
const r = e[t];
|
|
11
11
|
if (typeof r != "string" && !Array.isArray(r)) {
|
|
12
|
-
for (const
|
|
13
|
-
if (
|
|
14
|
-
const
|
|
15
|
-
|
|
12
|
+
for (const i in r)
|
|
13
|
+
if (i !== "default" && !(i in n)) {
|
|
14
|
+
const a = Object.getOwnPropertyDescriptor(r, i);
|
|
15
|
+
a && Object.defineProperty(n, i, a.get ? a : {
|
|
16
16
|
enumerable: !0,
|
|
17
|
-
get: () => r[
|
|
17
|
+
get: () => r[i]
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function gn(n) {
|
|
25
25
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var at = { exports: {} }, Se = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.production.min.js
|
|
@@ -35,24 +35,24 @@ var ct = { exports: {} }, _e = {};
|
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
37
|
var Yt;
|
|
38
|
-
function
|
|
38
|
+
function pn() {
|
|
39
39
|
if (Yt)
|
|
40
|
-
return
|
|
40
|
+
return Se;
|
|
41
41
|
Yt = 1;
|
|
42
|
-
var n =
|
|
43
|
-
function
|
|
44
|
-
var
|
|
45
|
-
c !== void 0 && (
|
|
46
|
-
for (
|
|
47
|
-
r.call(
|
|
42
|
+
var n = Ye, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
|
+
function o(l, d, c) {
|
|
44
|
+
var f, g = {}, v = null, j = null;
|
|
45
|
+
c !== void 0 && (v = "" + c), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (j = d.ref);
|
|
46
|
+
for (f in d)
|
|
47
|
+
r.call(d, f) && !a.hasOwnProperty(f) && (g[f] = d[f]);
|
|
48
48
|
if (l && l.defaultProps)
|
|
49
|
-
for (
|
|
50
|
-
|
|
51
|
-
return { $$typeof: e, type: l, key:
|
|
49
|
+
for (f in d = l.defaultProps, d)
|
|
50
|
+
g[f] === void 0 && (g[f] = d[f]);
|
|
51
|
+
return { $$typeof: e, type: l, key: v, ref: j, props: g, _owner: i.current };
|
|
52
52
|
}
|
|
53
|
-
return
|
|
53
|
+
return Se.Fragment = t, Se.jsx = o, Se.jsxs = o, Se;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
55
|
+
var Ce = {};
|
|
56
56
|
/**
|
|
57
57
|
* @license React
|
|
58
58
|
* react-jsx-runtime.development.js
|
|
@@ -62,91 +62,91 @@ var Ee = {};
|
|
|
62
62
|
* This source code is licensed under the MIT license found in the
|
|
63
63
|
* LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
-
var
|
|
66
|
-
function
|
|
67
|
-
return
|
|
68
|
-
var n =
|
|
69
|
-
function H(
|
|
70
|
-
if (
|
|
65
|
+
var Lt;
|
|
66
|
+
function mn() {
|
|
67
|
+
return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
+
var n = Ye, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), N = Symbol.iterator, T = "@@iterator";
|
|
69
|
+
function H(s) {
|
|
70
|
+
if (s === null || typeof s != "object")
|
|
71
71
|
return null;
|
|
72
|
-
var
|
|
73
|
-
return typeof
|
|
72
|
+
var u = N && s[N] || s[T];
|
|
73
|
+
return typeof u == "function" ? u : null;
|
|
74
74
|
}
|
|
75
|
-
var
|
|
76
|
-
function y(
|
|
75
|
+
var O = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
|
+
function y(s) {
|
|
77
77
|
{
|
|
78
|
-
for (var
|
|
79
|
-
h[
|
|
80
|
-
|
|
78
|
+
for (var u = arguments.length, h = new Array(u > 1 ? u - 1 : 0), b = 1; b < u; b++)
|
|
79
|
+
h[b - 1] = arguments[b];
|
|
80
|
+
k("error", s, h);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function k(s, u, h) {
|
|
84
84
|
{
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
var _ = h.map(function(
|
|
88
|
-
return String(
|
|
85
|
+
var b = O.ReactDebugCurrentFrame, S = b.getStackAddendum();
|
|
86
|
+
S !== "" && (u += "%s", h = h.concat([S]));
|
|
87
|
+
var _ = h.map(function(R) {
|
|
88
|
+
return String(R);
|
|
89
89
|
});
|
|
90
|
-
_.unshift("Warning: " +
|
|
90
|
+
_.unshift("Warning: " + u), Function.prototype.apply.call(console[s], console, _);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
function
|
|
96
|
-
return !!(typeof
|
|
93
|
+
var V = !1, I = !1, J = !1, K = !1, ye = !1, te;
|
|
94
|
+
te = Symbol.for("react.module.reference");
|
|
95
|
+
function ie(s) {
|
|
96
|
+
return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || ye || s === i || s === c || s === f || K || s === j || V || I || J || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === g || s.$$typeof === o || s.$$typeof === l || s.$$typeof === d || // This needs to include all possible module reference object
|
|
97
97
|
// types supported by any Flight configuration anywhere since
|
|
98
98
|
// we don't know which Flight build this will end up being used
|
|
99
99
|
// with.
|
|
100
|
-
|
|
100
|
+
s.$$typeof === te || s.getModuleId !== void 0));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
var
|
|
104
|
-
if (
|
|
105
|
-
return
|
|
106
|
-
var
|
|
107
|
-
return
|
|
102
|
+
function le(s, u, h) {
|
|
103
|
+
var b = s.displayName;
|
|
104
|
+
if (b)
|
|
105
|
+
return b;
|
|
106
|
+
var S = u.displayName || u.name || "";
|
|
107
|
+
return S !== "" ? h + "(" + S + ")" : h;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function we(s) {
|
|
110
|
+
return s.displayName || "Context";
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
if (
|
|
112
|
+
function E(s) {
|
|
113
|
+
if (s == null)
|
|
114
114
|
return null;
|
|
115
|
-
if (typeof
|
|
116
|
-
return
|
|
117
|
-
if (typeof
|
|
118
|
-
return
|
|
119
|
-
switch (
|
|
115
|
+
if (typeof s.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
|
|
116
|
+
return s.displayName || s.name || null;
|
|
117
|
+
if (typeof s == "string")
|
|
118
|
+
return s;
|
|
119
|
+
switch (s) {
|
|
120
120
|
case r:
|
|
121
121
|
return "Fragment";
|
|
122
122
|
case t:
|
|
123
123
|
return "Portal";
|
|
124
|
-
case
|
|
124
|
+
case a:
|
|
125
125
|
return "Profiler";
|
|
126
|
-
case
|
|
126
|
+
case i:
|
|
127
127
|
return "StrictMode";
|
|
128
128
|
case c:
|
|
129
129
|
return "Suspense";
|
|
130
|
-
case
|
|
130
|
+
case f:
|
|
131
131
|
return "SuspenseList";
|
|
132
132
|
}
|
|
133
|
-
if (typeof
|
|
134
|
-
switch (
|
|
133
|
+
if (typeof s == "object")
|
|
134
|
+
switch (s.$$typeof) {
|
|
135
135
|
case l:
|
|
136
|
-
var
|
|
137
|
-
return
|
|
138
|
-
case
|
|
139
|
-
var h =
|
|
140
|
-
return
|
|
141
|
-
case u:
|
|
142
|
-
return Ce(a, a.render, "ForwardRef");
|
|
136
|
+
var u = s;
|
|
137
|
+
return we(u) + ".Consumer";
|
|
138
|
+
case o:
|
|
139
|
+
var h = s;
|
|
140
|
+
return we(h._context) + ".Provider";
|
|
143
141
|
case d:
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
142
|
+
return le(s, s.render, "ForwardRef");
|
|
143
|
+
case g:
|
|
144
|
+
var b = s.displayName || null;
|
|
145
|
+
return b !== null ? b : E(s.type) || "Memo";
|
|
146
|
+
case v: {
|
|
147
|
+
var S = s, _ = S._payload, R = S._init;
|
|
148
148
|
try {
|
|
149
|
-
return
|
|
149
|
+
return E(R(_));
|
|
150
150
|
} catch {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
@@ -154,519 +154,519 @@ function yn() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var
|
|
158
|
-
function
|
|
157
|
+
var Y = Object.assign, w = 0, M, X, U, re, Q, ue, de;
|
|
158
|
+
function Rt() {
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
function
|
|
160
|
+
Rt.__reactDisabledLog = !0;
|
|
161
|
+
function xr() {
|
|
162
162
|
{
|
|
163
|
-
if (
|
|
164
|
-
|
|
165
|
-
var
|
|
163
|
+
if (w === 0) {
|
|
164
|
+
M = console.log, X = console.info, U = console.warn, re = console.error, Q = console.group, ue = console.groupCollapsed, de = console.groupEnd;
|
|
165
|
+
var s = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
|
-
value:
|
|
168
|
+
value: Rt,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
|
-
info:
|
|
173
|
-
log:
|
|
174
|
-
warn:
|
|
175
|
-
error:
|
|
176
|
-
group:
|
|
177
|
-
groupCollapsed:
|
|
178
|
-
groupEnd:
|
|
172
|
+
info: s,
|
|
173
|
+
log: s,
|
|
174
|
+
warn: s,
|
|
175
|
+
error: s,
|
|
176
|
+
group: s,
|
|
177
|
+
groupCollapsed: s,
|
|
178
|
+
groupEnd: s
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
w++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Rr() {
|
|
185
185
|
{
|
|
186
|
-
if (
|
|
187
|
-
var
|
|
186
|
+
if (w--, w === 0) {
|
|
187
|
+
var s = {
|
|
188
188
|
configurable: !0,
|
|
189
189
|
enumerable: !0,
|
|
190
190
|
writable: !0
|
|
191
191
|
};
|
|
192
192
|
Object.defineProperties(console, {
|
|
193
|
-
log:
|
|
194
|
-
value:
|
|
193
|
+
log: Y({}, s, {
|
|
194
|
+
value: M
|
|
195
195
|
}),
|
|
196
|
-
info:
|
|
197
|
-
value:
|
|
196
|
+
info: Y({}, s, {
|
|
197
|
+
value: X
|
|
198
198
|
}),
|
|
199
|
-
warn:
|
|
200
|
-
value:
|
|
199
|
+
warn: Y({}, s, {
|
|
200
|
+
value: U
|
|
201
201
|
}),
|
|
202
|
-
error:
|
|
203
|
-
value:
|
|
202
|
+
error: Y({}, s, {
|
|
203
|
+
value: re
|
|
204
204
|
}),
|
|
205
|
-
group:
|
|
206
|
-
value:
|
|
205
|
+
group: Y({}, s, {
|
|
206
|
+
value: Q
|
|
207
207
|
}),
|
|
208
|
-
groupCollapsed:
|
|
209
|
-
value:
|
|
208
|
+
groupCollapsed: Y({}, s, {
|
|
209
|
+
value: ue
|
|
210
210
|
}),
|
|
211
|
-
groupEnd:
|
|
212
|
-
value:
|
|
211
|
+
groupEnd: Y({}, s, {
|
|
212
|
+
value: de
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
w < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
219
|
+
var Ue = O.ReactCurrentDispatcher, Be;
|
|
220
|
+
function Ne(s, u, h) {
|
|
221
221
|
{
|
|
222
|
-
if (
|
|
222
|
+
if (Be === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
|
-
} catch (
|
|
226
|
-
var
|
|
227
|
-
|
|
225
|
+
} catch (S) {
|
|
226
|
+
var b = S.stack.trim().match(/\n( *(at )?)/);
|
|
227
|
+
Be = b && b[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
230
|
-
` +
|
|
230
|
+
` + Be + s;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var
|
|
233
|
+
var We = !1, De;
|
|
234
234
|
{
|
|
235
|
-
var
|
|
236
|
-
|
|
235
|
+
var Sr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
De = new Sr();
|
|
237
237
|
}
|
|
238
|
-
function St(
|
|
239
|
-
if (!
|
|
238
|
+
function St(s, u) {
|
|
239
|
+
if (!s || We)
|
|
240
240
|
return "";
|
|
241
241
|
{
|
|
242
|
-
var h =
|
|
242
|
+
var h = De.get(s);
|
|
243
243
|
if (h !== void 0)
|
|
244
244
|
return h;
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
var
|
|
246
|
+
var b;
|
|
247
|
+
We = !0;
|
|
248
|
+
var S = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
250
|
var _;
|
|
251
|
-
_ =
|
|
251
|
+
_ = Ue.current, Ue.current = null, xr();
|
|
252
252
|
try {
|
|
253
|
-
if (
|
|
254
|
-
var
|
|
253
|
+
if (u) {
|
|
254
|
+
var R = function() {
|
|
255
255
|
throw Error();
|
|
256
256
|
};
|
|
257
|
-
if (Object.defineProperty(
|
|
257
|
+
if (Object.defineProperty(R.prototype, "props", {
|
|
258
258
|
set: function() {
|
|
259
259
|
throw Error();
|
|
260
260
|
}
|
|
261
261
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
262
262
|
try {
|
|
263
|
-
Reflect.construct(
|
|
264
|
-
} catch (
|
|
265
|
-
|
|
263
|
+
Reflect.construct(R, []);
|
|
264
|
+
} catch (B) {
|
|
265
|
+
b = B;
|
|
266
266
|
}
|
|
267
|
-
Reflect.construct(
|
|
267
|
+
Reflect.construct(s, [], R);
|
|
268
268
|
} else {
|
|
269
269
|
try {
|
|
270
|
-
|
|
271
|
-
} catch (
|
|
272
|
-
|
|
270
|
+
R.call();
|
|
271
|
+
} catch (B) {
|
|
272
|
+
b = B;
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
s.call(R.prototype);
|
|
275
275
|
}
|
|
276
276
|
} else {
|
|
277
277
|
try {
|
|
278
278
|
throw Error();
|
|
279
|
-
} catch (
|
|
280
|
-
|
|
279
|
+
} catch (B) {
|
|
280
|
+
b = B;
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
s();
|
|
283
283
|
}
|
|
284
|
-
} catch (
|
|
285
|
-
if (
|
|
286
|
-
for (var
|
|
287
|
-
`),
|
|
288
|
-
`),
|
|
289
|
-
|
|
290
|
-
for (;
|
|
291
|
-
if (
|
|
292
|
-
if (
|
|
284
|
+
} catch (B) {
|
|
285
|
+
if (B && b && typeof B.stack == "string") {
|
|
286
|
+
for (var x = B.stack.split(`
|
|
287
|
+
`), q = b.stack.split(`
|
|
288
|
+
`), D = x.length - 1, P = q.length - 1; D >= 1 && P >= 0 && x[D] !== q[P]; )
|
|
289
|
+
P--;
|
|
290
|
+
for (; D >= 1 && P >= 0; D--, P--)
|
|
291
|
+
if (x[D] !== q[P]) {
|
|
292
|
+
if (D !== 1 || P !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (
|
|
295
|
-
var
|
|
296
|
-
` +
|
|
297
|
-
return
|
|
294
|
+
if (D--, P--, P < 0 || x[D] !== q[P]) {
|
|
295
|
+
var ee = `
|
|
296
|
+
` + x[D].replace(" at new ", " at ");
|
|
297
|
+
return s.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", s.displayName)), typeof s == "function" && De.set(s, ee), ee;
|
|
298
298
|
}
|
|
299
|
-
while (
|
|
299
|
+
while (D >= 1 && P >= 0);
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
|
|
304
|
+
We = !1, Ue.current = _, Rr(), Error.prepareStackTrace = S;
|
|
305
305
|
}
|
|
306
|
-
var
|
|
307
|
-
return typeof
|
|
306
|
+
var he = s ? s.displayName || s.name : "", oe = he ? Ne(he) : "";
|
|
307
|
+
return typeof s == "function" && De.set(s, oe), oe;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
return St(
|
|
309
|
+
function Cr(s, u, h) {
|
|
310
|
+
return St(s, !1);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
var
|
|
314
|
-
return !!(
|
|
312
|
+
function _r(s) {
|
|
313
|
+
var u = s.prototype;
|
|
314
|
+
return !!(u && u.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
if (
|
|
316
|
+
function Pe(s, u, h) {
|
|
317
|
+
if (s == null)
|
|
318
318
|
return "";
|
|
319
|
-
if (typeof
|
|
320
|
-
return St(
|
|
321
|
-
if (typeof
|
|
322
|
-
return
|
|
323
|
-
switch (
|
|
319
|
+
if (typeof s == "function")
|
|
320
|
+
return St(s, _r(s));
|
|
321
|
+
if (typeof s == "string")
|
|
322
|
+
return Ne(s);
|
|
323
|
+
switch (s) {
|
|
324
324
|
case c:
|
|
325
|
-
return
|
|
326
|
-
case
|
|
327
|
-
return
|
|
325
|
+
return Ne("Suspense");
|
|
326
|
+
case f:
|
|
327
|
+
return Ne("SuspenseList");
|
|
328
328
|
}
|
|
329
|
-
if (typeof
|
|
330
|
-
switch (
|
|
331
|
-
case u:
|
|
332
|
-
return jr(a.render);
|
|
329
|
+
if (typeof s == "object")
|
|
330
|
+
switch (s.$$typeof) {
|
|
333
331
|
case d:
|
|
334
|
-
return
|
|
335
|
-
case
|
|
336
|
-
|
|
332
|
+
return Cr(s.render);
|
|
333
|
+
case g:
|
|
334
|
+
return Pe(s.type, u, h);
|
|
335
|
+
case v: {
|
|
336
|
+
var b = s, S = b._payload, _ = b._init;
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return Pe(_(S), u, h);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var
|
|
346
|
-
function
|
|
347
|
-
if (
|
|
348
|
-
var
|
|
345
|
+
var xe = Object.prototype.hasOwnProperty, Ct = {}, _t = O.ReactDebugCurrentFrame;
|
|
346
|
+
function Te(s) {
|
|
347
|
+
if (s) {
|
|
348
|
+
var u = s._owner, h = Pe(s.type, s._source, u ? u.type : null);
|
|
349
349
|
_t.setExtraStackFrame(h);
|
|
350
350
|
} else
|
|
351
351
|
_t.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Er(s, u, h, b, S) {
|
|
354
354
|
{
|
|
355
|
-
var _ = Function.call.bind(
|
|
356
|
-
for (var
|
|
357
|
-
if (_(
|
|
358
|
-
var
|
|
355
|
+
var _ = Function.call.bind(xe);
|
|
356
|
+
for (var R in s)
|
|
357
|
+
if (_(s, R)) {
|
|
358
|
+
var x = void 0;
|
|
359
359
|
try {
|
|
360
|
-
if (typeof
|
|
361
|
-
var
|
|
362
|
-
throw
|
|
360
|
+
if (typeof s[R] != "function") {
|
|
361
|
+
var q = Error((b || "React class") + ": " + h + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
|
+
throw q.name = "Invariant Violation", q;
|
|
363
363
|
}
|
|
364
|
-
|
|
365
|
-
} catch (
|
|
366
|
-
|
|
364
|
+
x = s[R](u, R, b, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
|
+
} catch (D) {
|
|
366
|
+
x = D;
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
x && !(x instanceof Error) && (Te(S), y("%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).", b || "React class", h, R, typeof x), Te(null)), x instanceof Error && !(x.message in Ct) && (Ct[x.message] = !0, Te(S), y("Failed %s type: %s", h, x.message), Te(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
var
|
|
373
|
-
function
|
|
374
|
-
return
|
|
372
|
+
var jr = Array.isArray;
|
|
373
|
+
function Ze(s) {
|
|
374
|
+
return jr(s);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function kr(s) {
|
|
377
377
|
{
|
|
378
|
-
var
|
|
378
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, h = u && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
379
379
|
return h;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Or(s) {
|
|
383
383
|
try {
|
|
384
|
-
return Et(
|
|
384
|
+
return Et(s), !1;
|
|
385
385
|
} catch {
|
|
386
386
|
return !0;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
function Et(
|
|
390
|
-
return "" +
|
|
389
|
+
function Et(s) {
|
|
390
|
+
return "" + s;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
if (
|
|
394
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
392
|
+
function jt(s) {
|
|
393
|
+
if (Or(s))
|
|
394
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", kr(s)), Et(s);
|
|
395
395
|
}
|
|
396
|
-
var Re =
|
|
396
|
+
var Re = O.ReactCurrentOwner, $r = {
|
|
397
397
|
key: !0,
|
|
398
398
|
ref: !0,
|
|
399
399
|
__self: !0,
|
|
400
400
|
__source: !0
|
|
401
|
-
},
|
|
402
|
-
|
|
403
|
-
function
|
|
404
|
-
if (
|
|
405
|
-
var
|
|
406
|
-
if (
|
|
401
|
+
}, kt, Ot, Ge;
|
|
402
|
+
Ge = {};
|
|
403
|
+
function Nr(s) {
|
|
404
|
+
if (xe.call(s, "ref")) {
|
|
405
|
+
var u = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
406
|
+
if (u && u.isReactWarning)
|
|
407
407
|
return !1;
|
|
408
408
|
}
|
|
409
|
-
return
|
|
409
|
+
return s.ref !== void 0;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
if (
|
|
413
|
-
var
|
|
414
|
-
if (
|
|
411
|
+
function Dr(s) {
|
|
412
|
+
if (xe.call(s, "key")) {
|
|
413
|
+
var u = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
414
|
+
if (u && u.isReactWarning)
|
|
415
415
|
return !1;
|
|
416
416
|
}
|
|
417
|
-
return
|
|
417
|
+
return s.key !== void 0;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
if (typeof
|
|
421
|
-
var h =
|
|
422
|
-
|
|
419
|
+
function Pr(s, u) {
|
|
420
|
+
if (typeof s.ref == "string" && Re.current && u && Re.current.stateNode !== u) {
|
|
421
|
+
var h = E(Re.current.type);
|
|
422
|
+
Ge[h] || (y('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', E(Re.current.type), s.ref), Ge[h] = !0);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Tr(s, u) {
|
|
426
426
|
{
|
|
427
427
|
var h = function() {
|
|
428
|
-
|
|
428
|
+
kt || (kt = !0, y("%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)", u));
|
|
429
429
|
};
|
|
430
|
-
h.isReactWarning = !0, Object.defineProperty(
|
|
430
|
+
h.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
431
431
|
get: h,
|
|
432
432
|
configurable: !0
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Mr(s, u) {
|
|
437
437
|
{
|
|
438
438
|
var h = function() {
|
|
439
|
-
|
|
439
|
+
Ot || (Ot = !0, y("%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)", u));
|
|
440
440
|
};
|
|
441
|
-
h.isReactWarning = !0, Object.defineProperty(
|
|
441
|
+
h.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
442
442
|
get: h,
|
|
443
443
|
configurable: !0
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var
|
|
448
|
-
var
|
|
447
|
+
var Ar = function(s, u, h, b, S, _, R) {
|
|
448
|
+
var x = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: e,
|
|
451
451
|
// Built-in properties that belong on the element
|
|
452
|
-
type:
|
|
453
|
-
key:
|
|
452
|
+
type: s,
|
|
453
|
+
key: u,
|
|
454
454
|
ref: h,
|
|
455
|
-
props:
|
|
455
|
+
props: R,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: _
|
|
458
458
|
};
|
|
459
|
-
return
|
|
459
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
460
460
|
configurable: !1,
|
|
461
461
|
enumerable: !1,
|
|
462
462
|
writable: !0,
|
|
463
463
|
value: !1
|
|
464
|
-
}), Object.defineProperty(
|
|
464
|
+
}), Object.defineProperty(x, "_self", {
|
|
465
465
|
configurable: !1,
|
|
466
466
|
enumerable: !1,
|
|
467
467
|
writable: !1,
|
|
468
|
-
value:
|
|
469
|
-
}), Object.defineProperty(
|
|
468
|
+
value: b
|
|
469
|
+
}), Object.defineProperty(x, "_source", {
|
|
470
470
|
configurable: !1,
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
writable: !1,
|
|
473
|
-
value:
|
|
474
|
-
}), Object.freeze && (Object.freeze(
|
|
473
|
+
value: S
|
|
474
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
475
475
|
};
|
|
476
|
-
function zr(
|
|
476
|
+
function zr(s, u, h, b, S) {
|
|
477
477
|
{
|
|
478
|
-
var _,
|
|
479
|
-
h !== void 0 && (
|
|
480
|
-
for (_ in
|
|
481
|
-
|
|
482
|
-
if (
|
|
483
|
-
var
|
|
484
|
-
for (_ in
|
|
485
|
-
|
|
478
|
+
var _, R = {}, x = null, q = null;
|
|
479
|
+
h !== void 0 && (jt(h), x = "" + h), Dr(u) && (jt(u.key), x = "" + u.key), Nr(u) && (q = u.ref, Pr(u, S));
|
|
480
|
+
for (_ in u)
|
|
481
|
+
xe.call(u, _) && !$r.hasOwnProperty(_) && (R[_] = u[_]);
|
|
482
|
+
if (s && s.defaultProps) {
|
|
483
|
+
var D = s.defaultProps;
|
|
484
|
+
for (_ in D)
|
|
485
|
+
R[_] === void 0 && (R[_] = D[_]);
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
488
|
-
var
|
|
489
|
-
|
|
487
|
+
if (x || q) {
|
|
488
|
+
var P = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
489
|
+
x && Tr(R, P), q && Mr(R, P);
|
|
490
490
|
}
|
|
491
|
-
return
|
|
491
|
+
return Ar(s, x, q, S, b, Re.current, R);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
496
|
-
if (
|
|
497
|
-
var
|
|
498
|
-
|
|
494
|
+
var Je = O.ReactCurrentOwner, $t = O.ReactDebugCurrentFrame;
|
|
495
|
+
function fe(s) {
|
|
496
|
+
if (s) {
|
|
497
|
+
var u = s._owner, h = Pe(s.type, s._source, u ? u.type : null);
|
|
498
|
+
$t.setExtraStackFrame(h);
|
|
499
499
|
} else
|
|
500
|
-
|
|
500
|
+
$t.setExtraStackFrame(null);
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
|
|
504
|
-
function
|
|
505
|
-
return typeof
|
|
502
|
+
var Ke;
|
|
503
|
+
Ke = !1;
|
|
504
|
+
function Xe(s) {
|
|
505
|
+
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Nt() {
|
|
508
508
|
{
|
|
509
|
-
if (
|
|
510
|
-
var
|
|
511
|
-
if (
|
|
509
|
+
if (Je.current) {
|
|
510
|
+
var s = E(Je.current.type);
|
|
511
|
+
if (s)
|
|
512
512
|
return `
|
|
513
513
|
|
|
514
|
-
Check the render method of \`` +
|
|
514
|
+
Check the render method of \`` + s + "`.";
|
|
515
515
|
}
|
|
516
516
|
return "";
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Ir(s) {
|
|
520
520
|
{
|
|
521
|
-
if (
|
|
522
|
-
var
|
|
521
|
+
if (s !== void 0) {
|
|
522
|
+
var u = s.fileName.replace(/^.*[\\\/]/, ""), h = s.lineNumber;
|
|
523
523
|
return `
|
|
524
524
|
|
|
525
|
-
Check your code at ` +
|
|
525
|
+
Check your code at ` + u + ":" + h + ".";
|
|
526
526
|
}
|
|
527
527
|
return "";
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
var Dt = {};
|
|
531
|
-
function
|
|
531
|
+
function Yr(s) {
|
|
532
532
|
{
|
|
533
|
-
var
|
|
534
|
-
if (!
|
|
535
|
-
var h = typeof
|
|
536
|
-
h && (
|
|
533
|
+
var u = Nt();
|
|
534
|
+
if (!u) {
|
|
535
|
+
var h = typeof s == "string" ? s : s.displayName || s.name;
|
|
536
|
+
h && (u = `
|
|
537
537
|
|
|
538
538
|
Check the top-level render call using <` + h + ">.");
|
|
539
539
|
}
|
|
540
|
-
return
|
|
540
|
+
return u;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Pt(s, u) {
|
|
544
544
|
{
|
|
545
|
-
if (!
|
|
545
|
+
if (!s._store || s._store.validated || s.key != null)
|
|
546
546
|
return;
|
|
547
|
-
|
|
548
|
-
var h =
|
|
547
|
+
s._store.validated = !0;
|
|
548
|
+
var h = Yr(u);
|
|
549
549
|
if (Dt[h])
|
|
550
550
|
return;
|
|
551
551
|
Dt[h] = !0;
|
|
552
|
-
var
|
|
553
|
-
|
|
552
|
+
var b = "";
|
|
553
|
+
s && s._owner && s._owner !== Je.current && (b = " It was passed a child from " + E(s._owner.type) + "."), fe(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), fe(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Tt(s, u) {
|
|
557
557
|
{
|
|
558
|
-
if (typeof
|
|
558
|
+
if (typeof s != "object")
|
|
559
559
|
return;
|
|
560
|
-
if (
|
|
561
|
-
for (var h = 0; h <
|
|
562
|
-
var
|
|
563
|
-
|
|
560
|
+
if (Ze(s))
|
|
561
|
+
for (var h = 0; h < s.length; h++) {
|
|
562
|
+
var b = s[h];
|
|
563
|
+
Xe(b) && Pt(b, u);
|
|
564
564
|
}
|
|
565
|
-
else if (
|
|
566
|
-
|
|
567
|
-
else if (
|
|
568
|
-
var
|
|
569
|
-
if (typeof
|
|
570
|
-
for (var _ =
|
|
571
|
-
|
|
565
|
+
else if (Xe(s))
|
|
566
|
+
s._store && (s._store.validated = !0);
|
|
567
|
+
else if (s) {
|
|
568
|
+
var S = H(s);
|
|
569
|
+
if (typeof S == "function" && S !== s.entries)
|
|
570
|
+
for (var _ = S.call(s), R; !(R = _.next()).done; )
|
|
571
|
+
Xe(R.value) && Pt(R.value, u);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Lr(s) {
|
|
576
576
|
{
|
|
577
|
-
var
|
|
578
|
-
if (
|
|
577
|
+
var u = s.type;
|
|
578
|
+
if (u == null || typeof u == "string")
|
|
579
579
|
return;
|
|
580
580
|
var h;
|
|
581
|
-
if (typeof
|
|
582
|
-
h =
|
|
583
|
-
else if (typeof
|
|
581
|
+
if (typeof u == "function")
|
|
582
|
+
h = u.propTypes;
|
|
583
|
+
else if (typeof u == "object" && (u.$$typeof === d || // Note: Memo only checks outer props here.
|
|
584
584
|
// Inner props are checked in the reconciler.
|
|
585
|
-
|
|
586
|
-
h =
|
|
585
|
+
u.$$typeof === g))
|
|
586
|
+
h = u.propTypes;
|
|
587
587
|
else
|
|
588
588
|
return;
|
|
589
589
|
if (h) {
|
|
590
|
-
var
|
|
591
|
-
|
|
592
|
-
} else if (
|
|
593
|
-
|
|
594
|
-
var
|
|
595
|
-
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
590
|
+
var b = E(u);
|
|
591
|
+
Er(h, s.props, "prop", b, s);
|
|
592
|
+
} else if (u.PropTypes !== void 0 && !Ke) {
|
|
593
|
+
Ke = !0;
|
|
594
|
+
var S = E(u);
|
|
595
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
596
596
|
}
|
|
597
|
-
typeof
|
|
597
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Hr(s) {
|
|
601
601
|
{
|
|
602
|
-
for (var
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
605
|
-
|
|
602
|
+
for (var u = Object.keys(s.props), h = 0; h < u.length; h++) {
|
|
603
|
+
var b = u[h];
|
|
604
|
+
if (b !== "children" && b !== "key") {
|
|
605
|
+
fe(s), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), fe(null);
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
|
|
609
|
+
s.ref !== null && (fe(s), y("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
var
|
|
613
|
-
function
|
|
612
|
+
var Mt = {};
|
|
613
|
+
function At(s, u, h, b, S, _) {
|
|
614
614
|
{
|
|
615
|
-
var
|
|
616
|
-
if (!
|
|
617
|
-
var
|
|
618
|
-
(
|
|
619
|
-
var
|
|
620
|
-
|
|
621
|
-
var
|
|
622
|
-
|
|
615
|
+
var R = ie(s);
|
|
616
|
+
if (!R) {
|
|
617
|
+
var x = "";
|
|
618
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
619
|
+
var q = Ir(S);
|
|
620
|
+
q ? x += q : x += Nt();
|
|
621
|
+
var D;
|
|
622
|
+
s === null ? D = "null" : Ze(s) ? D = "array" : s !== void 0 && s.$$typeof === e ? (D = "<" + (E(s.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
|
|
623
623
|
}
|
|
624
|
-
var
|
|
625
|
-
if (
|
|
626
|
-
return
|
|
627
|
-
if (
|
|
628
|
-
var
|
|
629
|
-
if (
|
|
630
|
-
if (
|
|
631
|
-
if (
|
|
632
|
-
for (var
|
|
633
|
-
|
|
634
|
-
Object.freeze && Object.freeze(
|
|
624
|
+
var P = zr(s, u, h, S, _);
|
|
625
|
+
if (P == null)
|
|
626
|
+
return P;
|
|
627
|
+
if (R) {
|
|
628
|
+
var ee = u.children;
|
|
629
|
+
if (ee !== void 0)
|
|
630
|
+
if (b)
|
|
631
|
+
if (Ze(ee)) {
|
|
632
|
+
for (var he = 0; he < ee.length; he++)
|
|
633
|
+
Tt(ee[he], s);
|
|
634
|
+
Object.freeze && Object.freeze(ee);
|
|
635
635
|
} else
|
|
636
636
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
637
637
|
else
|
|
638
|
-
|
|
638
|
+
Tt(ee, s);
|
|
639
639
|
}
|
|
640
|
-
if (
|
|
641
|
-
var
|
|
642
|
-
return
|
|
643
|
-
}),
|
|
644
|
-
if (
|
|
645
|
-
var
|
|
640
|
+
if (xe.call(u, "key")) {
|
|
641
|
+
var oe = E(s), B = Object.keys(u).filter(function(Wr) {
|
|
642
|
+
return Wr !== "key";
|
|
643
|
+
}), Qe = B.length > 0 ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
644
|
+
if (!Mt[oe + Qe]) {
|
|
645
|
+
var Br = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
|
|
646
646
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
647
647
|
let props = %s;
|
|
648
648
|
<%s {...props} />
|
|
649
649
|
React keys must be passed directly to JSX without using spread:
|
|
650
650
|
let props = %s;
|
|
651
|
-
<%s key={someKey} {...props} />`,
|
|
651
|
+
<%s key={someKey} {...props} />`, Qe, oe, Br, oe), Mt[oe + Qe] = !0;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
return
|
|
654
|
+
return s === r ? Hr(P) : Lr(P), P;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
657
|
+
function Vr(s, u, h) {
|
|
658
|
+
return At(s, u, h, !0);
|
|
659
659
|
}
|
|
660
|
-
function qr(
|
|
661
|
-
return
|
|
660
|
+
function qr(s, u, h) {
|
|
661
|
+
return At(s, u, h, !1);
|
|
662
662
|
}
|
|
663
|
-
var
|
|
664
|
-
|
|
665
|
-
}()),
|
|
663
|
+
var Fr = qr, Ur = Vr;
|
|
664
|
+
Ce.Fragment = r, Ce.jsx = Fr, Ce.jsxs = Ur;
|
|
665
|
+
}()), Ce;
|
|
666
666
|
}
|
|
667
|
-
process.env.NODE_ENV === "production" ?
|
|
668
|
-
var p =
|
|
669
|
-
const
|
|
667
|
+
process.env.NODE_ENV === "production" ? at.exports = pn() : at.exports = mn();
|
|
668
|
+
var p = at.exports;
|
|
669
|
+
const z = class z {
|
|
670
670
|
/**
|
|
671
671
|
* 获取数字的小数位数长度
|
|
672
672
|
* @private
|
|
@@ -698,8 +698,8 @@ const L = class L {
|
|
|
698
698
|
*/
|
|
699
699
|
add(...e) {
|
|
700
700
|
return e.length < 2 ? e[0] || 0 : e.reduce((t, r) => {
|
|
701
|
-
const
|
|
702
|
-
return (
|
|
701
|
+
const i = z.getDecimalLength(t), a = z.getDecimalLength(r), o = Math.max(i, a), l = Math.pow(10, o), d = z.toInteger(t, o - i), c = z.toInteger(r, o - a);
|
|
702
|
+
return (d + c) / l;
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
/**
|
|
@@ -711,8 +711,8 @@ const L = class L {
|
|
|
711
711
|
* cmx.sub(0.3, 0.1) // 返回 0.2
|
|
712
712
|
*/
|
|
713
713
|
sub(e, t) {
|
|
714
|
-
const r =
|
|
715
|
-
return Number(((e *
|
|
714
|
+
const r = z.getDecimalLength(e), i = z.getDecimalLength(t), a = Math.max(r, i), o = Math.pow(10, a);
|
|
715
|
+
return Number(((e * o - t * o) / o).toFixed(a));
|
|
716
716
|
}
|
|
717
717
|
/**
|
|
718
718
|
* 精确乘法运算(支持多个参数)
|
|
@@ -724,8 +724,8 @@ const L = class L {
|
|
|
724
724
|
*/
|
|
725
725
|
mul(...e) {
|
|
726
726
|
return e.length < 2 ? e[0] || 0 : e.reduce((t, r) => {
|
|
727
|
-
const
|
|
728
|
-
return
|
|
727
|
+
const i = z.getDecimalLength(t) + z.getDecimalLength(r), a = Number(t.toString().replace(".", "")), o = Number(r.toString().replace(".", ""));
|
|
728
|
+
return a * o / Math.pow(10, i);
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
731
|
/**
|
|
@@ -740,8 +740,8 @@ const L = class L {
|
|
|
740
740
|
div(e, t) {
|
|
741
741
|
if (t === 0)
|
|
742
742
|
throw new Error("除数不能为零");
|
|
743
|
-
const r = 1 + Number.EPSILON,
|
|
744
|
-
return
|
|
743
|
+
const r = 1 + Number.EPSILON, i = z.getDecimalLength(e), a = z.getDecimalLength(t), o = Number(e.toString().replace(".", "")) * r, l = Number(t.toString().replace(".", "")) * r;
|
|
744
|
+
return o / l * Math.pow(10, a - i);
|
|
745
745
|
}
|
|
746
746
|
/**
|
|
747
747
|
* 精确四舍五入
|
|
@@ -807,13 +807,13 @@ const L = class L {
|
|
|
807
807
|
if (e === 1)
|
|
808
808
|
return 0;
|
|
809
809
|
let r = 0;
|
|
810
|
-
const
|
|
811
|
-
let
|
|
812
|
-
const
|
|
813
|
-
let l =
|
|
810
|
+
const i = Math.pow(10, -t - 1);
|
|
811
|
+
let a = this.div(this.sub(e, 1), this.add(e, 1));
|
|
812
|
+
const o = this.mul(a, a);
|
|
813
|
+
let l = a, d = 1;
|
|
814
814
|
do
|
|
815
|
-
r = this.add(r, this.div(l,
|
|
816
|
-
while (Math.abs(l) >
|
|
815
|
+
r = this.add(r, this.div(l, d)), l = this.mul(l, o), d += 2;
|
|
816
|
+
while (Math.abs(l) > i);
|
|
817
817
|
return this.round(this.mul(2, r), t);
|
|
818
818
|
}
|
|
819
819
|
/**
|
|
@@ -830,12 +830,12 @@ const L = class L {
|
|
|
830
830
|
return 1;
|
|
831
831
|
if (e === 1)
|
|
832
832
|
return Math.E;
|
|
833
|
-
let r = 1,
|
|
834
|
-
const
|
|
835
|
-
let
|
|
833
|
+
let r = 1, i = 1;
|
|
834
|
+
const a = Math.pow(10, -t - 1);
|
|
835
|
+
let o = 1, l = 0;
|
|
836
836
|
do
|
|
837
|
-
l = r,
|
|
838
|
-
while (Math.abs(
|
|
837
|
+
l = r, i = this.div(this.mul(i, e), o), r = this.add(r, i), o++;
|
|
838
|
+
while (Math.abs(i) > a && !this.approxEqual(r, l, a));
|
|
839
839
|
return this.round(r, t);
|
|
840
840
|
}
|
|
841
841
|
/**
|
|
@@ -853,10 +853,10 @@ const L = class L {
|
|
|
853
853
|
if (e === 0)
|
|
854
854
|
return 0;
|
|
855
855
|
let r = e / 2;
|
|
856
|
-
const
|
|
856
|
+
const i = Math.pow(10, -t - 1);
|
|
857
857
|
do
|
|
858
858
|
r = this.div(this.add(r, this.div(e, r)), 2);
|
|
859
|
-
while (Math.abs(this.sub(this.mul(r, r), e)) >
|
|
859
|
+
while (Math.abs(this.sub(this.mul(r, r), e)) > i);
|
|
860
860
|
return this.round(r, t);
|
|
861
861
|
}
|
|
862
862
|
/**
|
|
@@ -872,12 +872,12 @@ const L = class L {
|
|
|
872
872
|
* cmx.safeLog(0) // -Infinity(可配置替换值)
|
|
873
873
|
*/
|
|
874
874
|
safeLog(e, t = {}) {
|
|
875
|
-
const { safe: r = !0, replaceNeg:
|
|
875
|
+
const { safe: r = !0, replaceNeg: i = NaN, replaceZero: a = -1 / 0 } = t;
|
|
876
876
|
if (e > 0)
|
|
877
877
|
return Math.log(e);
|
|
878
878
|
if (!r)
|
|
879
879
|
throw new Error("Invalid input");
|
|
880
|
-
return e === 0 ?
|
|
880
|
+
return e === 0 ? a : i;
|
|
881
881
|
}
|
|
882
882
|
/**
|
|
883
883
|
* 精确阶乘(解决Math无阶乘方法的问题)
|
|
@@ -893,21 +893,21 @@ const L = class L {
|
|
|
893
893
|
return NaN;
|
|
894
894
|
if (e > Number.MAX_SAFE_INTEGER) {
|
|
895
895
|
let r = BigInt(1);
|
|
896
|
-
for (let
|
|
897
|
-
r *= BigInt(
|
|
896
|
+
for (let i = 2; i <= e; i++)
|
|
897
|
+
r *= BigInt(i);
|
|
898
898
|
return Number(r.toString());
|
|
899
899
|
}
|
|
900
900
|
if (e > 170)
|
|
901
901
|
return 1 / 0;
|
|
902
|
-
if (
|
|
903
|
-
return
|
|
902
|
+
if (z.factorialCache.has(e))
|
|
903
|
+
return z.factorialCache.get(e);
|
|
904
904
|
let t = 1;
|
|
905
905
|
for (let r = 2; r <= e; r++) {
|
|
906
|
-
if (
|
|
907
|
-
t =
|
|
906
|
+
if (z.factorialCache.has(r)) {
|
|
907
|
+
t = z.factorialCache.get(r);
|
|
908
908
|
continue;
|
|
909
909
|
}
|
|
910
|
-
t = this.mul(t, r),
|
|
910
|
+
t = this.mul(t, r), z.factorialCache.set(r, t);
|
|
911
911
|
}
|
|
912
912
|
return t;
|
|
913
913
|
}
|
|
@@ -921,15 +921,15 @@ const L = class L {
|
|
|
921
921
|
* cmx.hypFunc(1, 'tanh') // 0.761594156(比Math.tanh更精确)
|
|
922
922
|
*/
|
|
923
923
|
hypFunc(e, t, r = 10) {
|
|
924
|
-
const
|
|
924
|
+
const i = this.exp(e, r + 2), a = this.exp(-e, r + 2);
|
|
925
925
|
switch (t) {
|
|
926
926
|
case "sinh":
|
|
927
|
-
return this.round(this.div(this.sub(
|
|
927
|
+
return this.round(this.div(this.sub(i, a), 2), r);
|
|
928
928
|
case "cosh":
|
|
929
|
-
return this.round(this.div(this.add(
|
|
929
|
+
return this.round(this.div(this.add(i, a), 2), r);
|
|
930
930
|
case "tanh":
|
|
931
931
|
return this.round(
|
|
932
|
-
this.div(this.sub(
|
|
932
|
+
this.div(this.sub(i, a), this.add(i, a)),
|
|
933
933
|
r
|
|
934
934
|
);
|
|
935
935
|
default:
|
|
@@ -948,10 +948,10 @@ const L = class L {
|
|
|
948
948
|
permComb(e, t, r) {
|
|
949
949
|
if (!Number.isInteger(e) || !Number.isInteger(t) || t > e || t < 0)
|
|
950
950
|
return NaN;
|
|
951
|
-
let
|
|
952
|
-
for (let
|
|
953
|
-
|
|
954
|
-
return
|
|
951
|
+
let i = 1;
|
|
952
|
+
for (let a = 0; a < t; a++)
|
|
953
|
+
i = this.mul(i, e - a), r === "combination" && (i = this.div(i, a + 1));
|
|
954
|
+
return i;
|
|
955
955
|
}
|
|
956
956
|
/**
|
|
957
957
|
* 计算最大公约数(GCD)
|
|
@@ -980,9 +980,9 @@ const L = class L {
|
|
|
980
980
|
return this.div(this.mul(e, t), this.gcd(e, t));
|
|
981
981
|
}
|
|
982
982
|
};
|
|
983
|
-
m(
|
|
984
|
-
let
|
|
985
|
-
const
|
|
983
|
+
m(z, "factorialCache", /* @__PURE__ */ new Map());
|
|
984
|
+
let it = z;
|
|
985
|
+
const ws = new it(), $e = class $e {
|
|
986
986
|
constructor() {
|
|
987
987
|
m(this, "callbacks", []);
|
|
988
988
|
m(this, "pending", !1);
|
|
@@ -1016,74 +1016,74 @@ const Ta = new lt(), De = class De {
|
|
|
1016
1016
|
if (e)
|
|
1017
1017
|
try {
|
|
1018
1018
|
e.call(t);
|
|
1019
|
-
} catch (
|
|
1020
|
-
console.error("Error in nextTick:",
|
|
1019
|
+
} catch (i) {
|
|
1020
|
+
console.error("Error in nextTick:", i);
|
|
1021
1021
|
}
|
|
1022
1022
|
else
|
|
1023
1023
|
r && r();
|
|
1024
1024
|
}), this.pending || (this.pending = !0, this.timerFunc()), !e && typeof Promise < "u")
|
|
1025
|
-
return new Promise((
|
|
1026
|
-
r =
|
|
1025
|
+
return new Promise((i) => {
|
|
1026
|
+
r = i;
|
|
1027
1027
|
});
|
|
1028
1028
|
}
|
|
1029
1029
|
static nextTick(e, t) {
|
|
1030
|
-
return
|
|
1030
|
+
return $e.instance.nextTick(e, t);
|
|
1031
1031
|
}
|
|
1032
1032
|
static get instance() {
|
|
1033
|
-
return this._instance || (this._instance = new
|
|
1033
|
+
return this._instance || (this._instance = new $e()), this._instance;
|
|
1034
1034
|
}
|
|
1035
1035
|
};
|
|
1036
|
-
m(
|
|
1037
|
-
let
|
|
1038
|
-
const
|
|
1039
|
-
var
|
|
1036
|
+
m($e, "_instance");
|
|
1037
|
+
let Le = $e;
|
|
1038
|
+
const xs = Le.instance.nextTick.bind(Le.instance);
|
|
1039
|
+
var ge = {}, ot, ct, _e = fn;
|
|
1040
1040
|
if (process.env.NODE_ENV === "production")
|
|
1041
|
-
|
|
1041
|
+
ct = ge.createRoot = _e.createRoot, ot = ge.hydrateRoot = _e.hydrateRoot;
|
|
1042
1042
|
else {
|
|
1043
|
-
var
|
|
1044
|
-
|
|
1045
|
-
|
|
1043
|
+
var Me = _e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1044
|
+
ct = ge.createRoot = function(n, e) {
|
|
1045
|
+
Me.usingClientEntryPoint = !0;
|
|
1046
1046
|
try {
|
|
1047
|
-
return
|
|
1047
|
+
return _e.createRoot(n, e);
|
|
1048
1048
|
} finally {
|
|
1049
|
-
|
|
1049
|
+
Me.usingClientEntryPoint = !1;
|
|
1050
1050
|
}
|
|
1051
|
-
},
|
|
1052
|
-
|
|
1051
|
+
}, ot = ge.hydrateRoot = function(n, e, t) {
|
|
1052
|
+
Me.usingClientEntryPoint = !0;
|
|
1053
1053
|
try {
|
|
1054
|
-
return
|
|
1054
|
+
return _e.hydrateRoot(n, e, t);
|
|
1055
1055
|
} finally {
|
|
1056
|
-
|
|
1056
|
+
Me.usingClientEntryPoint = !1;
|
|
1057
1057
|
}
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1060
|
+
const bn = /* @__PURE__ */ hn({
|
|
1061
1061
|
__proto__: null,
|
|
1062
1062
|
get createRoot() {
|
|
1063
|
-
return
|
|
1063
|
+
return ct;
|
|
1064
1064
|
},
|
|
1065
|
-
default:
|
|
1065
|
+
default: ge,
|
|
1066
1066
|
get hydrateRoot() {
|
|
1067
|
-
return
|
|
1067
|
+
return ot;
|
|
1068
1068
|
}
|
|
1069
|
-
}, [
|
|
1070
|
-
let se = null,
|
|
1071
|
-
function
|
|
1069
|
+
}, [ge]), { createRoot: vn } = bn;
|
|
1070
|
+
let se = null, ce = null;
|
|
1071
|
+
function yn() {
|
|
1072
1072
|
return se || (se = document.createElement("div"), document.body.appendChild(se)), se;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1075
|
-
const t =
|
|
1074
|
+
function wn(n, e) {
|
|
1075
|
+
const t = yn();
|
|
1076
1076
|
let r = {
|
|
1077
1077
|
open: !0,
|
|
1078
1078
|
...e,
|
|
1079
1079
|
// 默认自动关闭
|
|
1080
1080
|
onClosed: e.onClosed || ((c) => {
|
|
1081
|
-
|
|
1081
|
+
d(c);
|
|
1082
1082
|
})
|
|
1083
1083
|
};
|
|
1084
|
-
if (!
|
|
1084
|
+
if (!ce)
|
|
1085
1085
|
try {
|
|
1086
|
-
|
|
1086
|
+
ce = vn(t);
|
|
1087
1087
|
} catch (c) {
|
|
1088
1088
|
return console.error("Failed to create root:", c), {
|
|
1089
1089
|
destroy: () => {
|
|
@@ -1092,67 +1092,67 @@ function Sn(n, e) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1095
|
+
const i = () => {
|
|
1096
|
+
ce && (ce.unmount(), ce = null), se && se.parentNode && (se.parentNode.removeChild(se), se = null);
|
|
1097
|
+
}, a = (c) => {
|
|
1098
|
+
typeof r.onClosed == "function" && r.onClosed(c), i();
|
|
1097
1099
|
}, o = (c) => {
|
|
1098
|
-
|
|
1099
|
-
}, i = (c) => {
|
|
1100
|
-
fe && fe.render(/* @__PURE__ */ p.jsx(n, { ...c }));
|
|
1100
|
+
ce && ce.render(/* @__PURE__ */ p.jsx(n, { ...c }));
|
|
1101
1101
|
}, l = (c) => {
|
|
1102
|
-
r = typeof c == "function" ? c(r) : { ...r, ...c },
|
|
1103
|
-
},
|
|
1102
|
+
r = typeof c == "function" ? c(r) : { ...r, ...c }, o(r);
|
|
1103
|
+
}, d = (c) => {
|
|
1104
1104
|
r.open ? (r = {
|
|
1105
1105
|
...r,
|
|
1106
1106
|
open: !1,
|
|
1107
|
-
onClosed: (
|
|
1108
|
-
e.onClosed && e.onClosed(
|
|
1107
|
+
onClosed: (f) => {
|
|
1108
|
+
e.onClosed && e.onClosed(f || c), a(f || c);
|
|
1109
1109
|
}
|
|
1110
|
-
},
|
|
1110
|
+
}, o(r)) : console.warn("Modal is already closed.");
|
|
1111
1111
|
};
|
|
1112
|
-
return
|
|
1113
|
-
destroy:
|
|
1112
|
+
return o(r), {
|
|
1113
|
+
destroy: d,
|
|
1114
1114
|
update: l
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
|
-
const
|
|
1118
|
-
},
|
|
1117
|
+
const Rs = () => {
|
|
1118
|
+
}, He = (n, e) => {
|
|
1119
1119
|
const t = n;
|
|
1120
1120
|
let r = n;
|
|
1121
1121
|
if (e.includes(" ")) {
|
|
1122
1122
|
r = "";
|
|
1123
|
-
const
|
|
1124
|
-
for (const
|
|
1125
|
-
r += ` ${t}-${
|
|
1123
|
+
const i = e == null ? void 0 : e.split(" ");
|
|
1124
|
+
for (const a of i)
|
|
1125
|
+
r += ` ${t}-${a}`;
|
|
1126
1126
|
} else
|
|
1127
1127
|
e && (r = `${n}-${e}`);
|
|
1128
1128
|
return r;
|
|
1129
|
-
},
|
|
1129
|
+
}, Ss = (n, e) => {
|
|
1130
1130
|
const t = e == null ? void 0 : e.split(".");
|
|
1131
1131
|
let r = n;
|
|
1132
|
-
for (const
|
|
1133
|
-
r = r[
|
|
1132
|
+
for (const i of t)
|
|
1133
|
+
r = r[i];
|
|
1134
1134
|
return r;
|
|
1135
|
-
},
|
|
1135
|
+
}, xn = (n) => {
|
|
1136
1136
|
for (const e in n)
|
|
1137
1137
|
n[e] === null && delete n[e];
|
|
1138
1138
|
return n;
|
|
1139
|
-
},
|
|
1139
|
+
}, sr = (n, e) => {
|
|
1140
1140
|
let t = null;
|
|
1141
1141
|
return (...r) => {
|
|
1142
1142
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
1143
1143
|
n(...r);
|
|
1144
1144
|
}, e);
|
|
1145
1145
|
};
|
|
1146
|
-
},
|
|
1146
|
+
}, Cs = (n, e) => {
|
|
1147
1147
|
let t = null, r = 0;
|
|
1148
|
-
return (...
|
|
1149
|
-
const
|
|
1150
|
-
t ?
|
|
1148
|
+
return (...i) => {
|
|
1149
|
+
const a = Date.now();
|
|
1150
|
+
t ? a - r >= e && (n(...i), r = a) : (n(...i), r = a, t = setTimeout(() => {
|
|
1151
1151
|
t = null;
|
|
1152
1152
|
}, e));
|
|
1153
1153
|
};
|
|
1154
1154
|
};
|
|
1155
|
-
class
|
|
1155
|
+
class _s {
|
|
1156
1156
|
/**
|
|
1157
1157
|
* 验证版本号格式是否有效
|
|
1158
1158
|
* @param version 版本号字符串
|
|
@@ -1170,16 +1170,16 @@ class Ma {
|
|
|
1170
1170
|
static compare(e, t) {
|
|
1171
1171
|
if (!this.isValid(e) || !this.isValid(t))
|
|
1172
1172
|
throw new Error("Invalid version format");
|
|
1173
|
-
const r = (
|
|
1174
|
-
for (let
|
|
1175
|
-
const c = parseInt(
|
|
1176
|
-
if (c >
|
|
1173
|
+
const r = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
|
|
1174
|
+
for (let d = 0; d < 3; d++) {
|
|
1175
|
+
const c = parseInt(i[d] || "0", 10), f = parseInt(a[d] || "0", 10);
|
|
1176
|
+
if (c > f)
|
|
1177
1177
|
return 1;
|
|
1178
|
-
if (c <
|
|
1178
|
+
if (c < f)
|
|
1179
1179
|
return -1;
|
|
1180
1180
|
}
|
|
1181
|
-
const
|
|
1182
|
-
return
|
|
1181
|
+
const o = e.match(/-(.+)/), l = t.match(/-(.+)/);
|
|
1182
|
+
return o && !l ? -1 : !o && l ? 1 : o && l ? o[1].localeCompare(l[1]) : 0;
|
|
1183
1183
|
}
|
|
1184
1184
|
/**
|
|
1185
1185
|
* 检查版本号是否满足范围要求
|
|
@@ -1190,15 +1190,15 @@ class Ma {
|
|
|
1190
1190
|
static satisfies(e, t) {
|
|
1191
1191
|
if (!this.isValid(e))
|
|
1192
1192
|
return !1;
|
|
1193
|
-
const r = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g,
|
|
1194
|
-
return !
|
|
1195
|
-
const
|
|
1196
|
-
if (!
|
|
1193
|
+
const r = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g, i = t.match(r);
|
|
1194
|
+
return !i || i.length === 0 ? !1 : i.every((a) => {
|
|
1195
|
+
const o = a.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
|
|
1196
|
+
if (!o)
|
|
1197
1197
|
return !1;
|
|
1198
|
-
const l =
|
|
1199
|
-
if (!this.isValid(
|
|
1198
|
+
const l = o[1] || "==", d = o[2];
|
|
1199
|
+
if (!this.isValid(d))
|
|
1200
1200
|
return !1;
|
|
1201
|
-
const c = this.compare(e,
|
|
1201
|
+
const c = this.compare(e, d);
|
|
1202
1202
|
switch (l) {
|
|
1203
1203
|
case ">":
|
|
1204
1204
|
return c > 0;
|
|
@@ -1209,9 +1209,9 @@ class Ma {
|
|
|
1209
1209
|
case "<=":
|
|
1210
1210
|
return c <= 0;
|
|
1211
1211
|
case "^":
|
|
1212
|
-
return this.caretRange(e,
|
|
1212
|
+
return this.caretRange(e, d);
|
|
1213
1213
|
case "~":
|
|
1214
|
-
return this.tildeRange(e,
|
|
1214
|
+
return this.tildeRange(e, d);
|
|
1215
1215
|
case "=":
|
|
1216
1216
|
case "==":
|
|
1217
1217
|
default:
|
|
@@ -1226,16 +1226,16 @@ class Ma {
|
|
|
1226
1226
|
* @returns 是否匹配
|
|
1227
1227
|
*/
|
|
1228
1228
|
static caretRange(e, t) {
|
|
1229
|
-
const r = (l) => l.replace(/^v/, "").split(/[-+]/)[0].split("."),
|
|
1230
|
-
let
|
|
1231
|
-
for (let l = 0; l <
|
|
1232
|
-
if (parseInt(
|
|
1233
|
-
|
|
1229
|
+
const r = (l) => l.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
|
|
1230
|
+
let o = 0;
|
|
1231
|
+
for (let l = 0; l < a.length; l++)
|
|
1232
|
+
if (parseInt(a[l], 10) !== 0) {
|
|
1233
|
+
o = l;
|
|
1234
1234
|
break;
|
|
1235
1235
|
}
|
|
1236
|
-
for (let l = 0; l <=
|
|
1237
|
-
const
|
|
1238
|
-
if (
|
|
1236
|
+
for (let l = 0; l <= o; l++) {
|
|
1237
|
+
const d = parseInt(i[l] || "0", 10), c = parseInt(a[l] || "0", 10);
|
|
1238
|
+
if (d !== c)
|
|
1239
1239
|
return !1;
|
|
1240
1240
|
}
|
|
1241
1241
|
return this.compare(e, t) >= 0;
|
|
@@ -1247,14 +1247,14 @@ class Ma {
|
|
|
1247
1247
|
* @returns 是否匹配
|
|
1248
1248
|
*/
|
|
1249
1249
|
static tildeRange(e, t) {
|
|
1250
|
-
const r = (
|
|
1251
|
-
for (let
|
|
1252
|
-
const c = parseInt(
|
|
1253
|
-
if (c !==
|
|
1250
|
+
const r = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), i = r(e), a = r(t);
|
|
1251
|
+
for (let d = 0; d < a.length - 1; d++) {
|
|
1252
|
+
const c = parseInt(i[d] || "0", 10), f = parseInt(a[d] || "0", 10);
|
|
1253
|
+
if (c !== f)
|
|
1254
1254
|
return !1;
|
|
1255
1255
|
}
|
|
1256
|
-
const
|
|
1257
|
-
return
|
|
1256
|
+
const o = parseInt(i[a.length - 1] || "0", 10), l = parseInt(a[a.length - 1] || "0", 10);
|
|
1257
|
+
return o >= l;
|
|
1258
1258
|
}
|
|
1259
1259
|
/**
|
|
1260
1260
|
* 获取主版本号 (major)
|
|
@@ -1312,23 +1312,23 @@ class Ma {
|
|
|
1312
1312
|
return t ? t[1] : null;
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
|
-
const
|
|
1315
|
+
const ar = Qt({
|
|
1316
1316
|
theme: {
|
|
1317
1317
|
cssVar: !0,
|
|
1318
|
-
algorithm: [
|
|
1318
|
+
algorithm: [Ie.defaultAlgorithm]
|
|
1319
1319
|
}
|
|
1320
|
-
}),
|
|
1321
|
-
function
|
|
1322
|
-
return
|
|
1320
|
+
}), Es = ar.Provider;
|
|
1321
|
+
function Rn() {
|
|
1322
|
+
return er(ar);
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1325
|
-
const { theme: e } =
|
|
1326
|
-
return /* @__PURE__ */ p.jsx(
|
|
1324
|
+
function ve(n) {
|
|
1325
|
+
const { theme: e } = Rn();
|
|
1326
|
+
return /* @__PURE__ */ p.jsx(tr, { theme: e, children: n.children });
|
|
1327
1327
|
}
|
|
1328
|
-
const
|
|
1329
|
-
const r = `${
|
|
1328
|
+
const Ht = (n = "") => He("items-row", n), Sn = (n) => n.items ? /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ht()} ${n.className || ""}`, style: n.style, children: (n.items || []).map((e, t) => {
|
|
1329
|
+
const r = `${Ht("item")} ${e.className}`;
|
|
1330
1330
|
return e.render ? /* @__PURE__ */ p.jsx("span", { className: r, children: e.render() }, t) : /* @__PURE__ */ p.jsx(
|
|
1331
|
-
|
|
1331
|
+
ke,
|
|
1332
1332
|
{
|
|
1333
1333
|
className: r,
|
|
1334
1334
|
...e.btnProps,
|
|
@@ -1339,215 +1339,98 @@ const zt = (n = "") => Ue("items-row", n), En = (n) => n.items ? /* @__PURE__ */
|
|
|
1339
1339
|
e.label
|
|
1340
1340
|
);
|
|
1341
1341
|
}) }) }) : null;
|
|
1342
|
-
const
|
|
1342
|
+
const Ee = (n = "") => He("m-breadcrumb", n), js = (n) => {
|
|
1343
1343
|
const {
|
|
1344
1344
|
routes: e,
|
|
1345
1345
|
customItems: t,
|
|
1346
1346
|
style: r,
|
|
1347
|
-
className:
|
|
1348
|
-
offsetTop:
|
|
1349
|
-
mainAppBaseUrl:
|
|
1347
|
+
className: i,
|
|
1348
|
+
offsetTop: a = 64,
|
|
1349
|
+
mainAppBaseUrl: o,
|
|
1350
1350
|
microAppName: l
|
|
1351
|
-
} = n,
|
|
1352
|
-
var
|
|
1353
|
-
(
|
|
1351
|
+
} = n, d = F.useRef(null), c = F.useCallback(() => {
|
|
1352
|
+
var g, v;
|
|
1353
|
+
(v = (g = d.current) == null ? void 0 : g.updatePosition) == null || v.call(g);
|
|
1354
1354
|
}, []);
|
|
1355
|
-
|
|
1356
|
-
const
|
|
1357
|
-
(
|
|
1358
|
-
if (!
|
|
1355
|
+
F.useEffect(() => (window.addEventListener("scroll", c, !0), () => window.removeEventListener("scroll", c)), [c]);
|
|
1356
|
+
const f = F.useCallback(
|
|
1357
|
+
(g) => {
|
|
1358
|
+
if (!g)
|
|
1359
1359
|
return "";
|
|
1360
|
-
const
|
|
1360
|
+
const v = g.replace(/^\/+/, "");
|
|
1361
1361
|
return `/${[
|
|
1362
|
-
|
|
1362
|
+
o == null ? void 0 : o.replace(/\/+$/, ""),
|
|
1363
1363
|
l == null ? void 0 : l.replace(/\/+$/, ""),
|
|
1364
|
-
|
|
1364
|
+
v
|
|
1365
1365
|
].filter(Boolean).join("/")}`;
|
|
1366
1366
|
},
|
|
1367
|
-
[
|
|
1367
|
+
[o, l]
|
|
1368
1368
|
);
|
|
1369
|
-
return /* @__PURE__ */ p.jsx(
|
|
1370
|
-
|
|
1369
|
+
return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx("div", { className: `${Ee()} ${i || ""}`, style: r, children: /* @__PURE__ */ p.jsx(Xr, { ref: d, offsetTop: a, children: /* @__PURE__ */ p.jsxs(
|
|
1370
|
+
rr,
|
|
1371
1371
|
{
|
|
1372
|
-
className:
|
|
1373
|
-
rootClassName:
|
|
1372
|
+
className: Ee("container"),
|
|
1373
|
+
rootClassName: Ee("body"),
|
|
1374
1374
|
variant: "borderless",
|
|
1375
1375
|
children: [
|
|
1376
|
-
/* @__PURE__ */ p.jsx(
|
|
1377
|
-
/* @__PURE__ */ p.jsx("div", { className:
|
|
1376
|
+
/* @__PURE__ */ p.jsx(zt, { className: Ee("inner-breadcrumb"), style: { fontSize: "18px" }, children: e == null ? void 0 : e.map((g) => /* @__PURE__ */ p.jsx(zt.Item, { children: g.url ? /* @__PURE__ */ p.jsx("a", { href: `#${f(g.url)}`, children: g.name }) : g.name }, g.url || g.name)) }),
|
|
1377
|
+
/* @__PURE__ */ p.jsx("div", { className: Ee("custom-item-wrapper"), children: /* @__PURE__ */ p.jsx(Sn, { items: t }) })
|
|
1378
1378
|
]
|
|
1379
1379
|
}
|
|
1380
1380
|
) }) }) });
|
|
1381
|
-
},
|
|
1381
|
+
}, Cn = (n) => {
|
|
1382
1382
|
const {
|
|
1383
1383
|
data: e,
|
|
1384
1384
|
title: t,
|
|
1385
1385
|
column: r = 3,
|
|
1386
|
-
lineHeight:
|
|
1387
|
-
align:
|
|
1388
|
-
itemLayout:
|
|
1386
|
+
lineHeight: i,
|
|
1387
|
+
align: a = "left",
|
|
1388
|
+
itemLayout: o,
|
|
1389
1389
|
colon: l = !0,
|
|
1390
|
-
bordered:
|
|
1390
|
+
bordered: d = !1,
|
|
1391
1391
|
style: c,
|
|
1392
|
-
className:
|
|
1393
|
-
labelStyle:
|
|
1394
|
-
contentStyle:
|
|
1395
|
-
} = n,
|
|
1396
|
-
...
|
|
1397
|
-
textAlign:
|
|
1398
|
-
...
|
|
1399
|
-
...
|
|
1400
|
-
},
|
|
1401
|
-
...
|
|
1402
|
-
...
|
|
1403
|
-
...
|
|
1392
|
+
className: f,
|
|
1393
|
+
labelStyle: g,
|
|
1394
|
+
contentStyle: v
|
|
1395
|
+
} = n, j = {
|
|
1396
|
+
...i ? { lineHeight: `${i}px` } : {},
|
|
1397
|
+
textAlign: a,
|
|
1398
|
+
...o != null && o.label ? { width: `${o.label}px` } : {},
|
|
1399
|
+
...g
|
|
1400
|
+
}, N = {
|
|
1401
|
+
...i ? { lineHeight: `${i}px` } : {},
|
|
1402
|
+
...o != null && o.value ? { width: `${o.value}px` } : {},
|
|
1403
|
+
...v
|
|
1404
1404
|
};
|
|
1405
|
-
return /* @__PURE__ */ p.jsx(
|
|
1406
|
-
|
|
1405
|
+
return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(
|
|
1406
|
+
It,
|
|
1407
1407
|
{
|
|
1408
1408
|
title: t,
|
|
1409
1409
|
column: r,
|
|
1410
1410
|
colon: l,
|
|
1411
|
-
bordered:
|
|
1411
|
+
bordered: d,
|
|
1412
1412
|
style: c,
|
|
1413
|
-
className:
|
|
1414
|
-
labelStyle:
|
|
1415
|
-
contentStyle:
|
|
1413
|
+
className: f,
|
|
1414
|
+
labelStyle: j,
|
|
1415
|
+
contentStyle: N,
|
|
1416
1416
|
children: e.map((T, H) => {
|
|
1417
|
-
var
|
|
1417
|
+
var O;
|
|
1418
1418
|
return /* @__PURE__ */ p.jsx(
|
|
1419
|
-
|
|
1419
|
+
It.Item,
|
|
1420
1420
|
{
|
|
1421
1421
|
label: T.label,
|
|
1422
1422
|
span: T.span,
|
|
1423
1423
|
children: T.value || "-"
|
|
1424
1424
|
},
|
|
1425
|
-
((
|
|
1425
|
+
((O = T.label) == null ? void 0 : O.toString()) || H
|
|
1426
1426
|
);
|
|
1427
1427
|
})
|
|
1428
1428
|
}
|
|
1429
1429
|
) });
|
|
1430
1430
|
};
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
function ye() {
|
|
1435
|
-
return ye = Object.assign ? Object.assign.bind() : function(n) {
|
|
1436
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
1437
|
-
var t = arguments[e];
|
|
1438
|
-
for (var r in t)
|
|
1439
|
-
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
1440
|
-
}
|
|
1441
|
-
return n;
|
|
1442
|
-
}, ye.apply(null, arguments);
|
|
1443
|
-
}
|
|
1444
|
-
function Nn(n) {
|
|
1445
|
-
if (Array.isArray(n))
|
|
1446
|
-
return n;
|
|
1447
|
-
}
|
|
1448
|
-
function Pn(n, e) {
|
|
1449
|
-
var t = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
|
|
1450
|
-
if (t != null) {
|
|
1451
|
-
var r, s, o, i, l = [], u = !0, c = !1;
|
|
1452
|
-
try {
|
|
1453
|
-
if (o = (t = t.call(n)).next, e === 0) {
|
|
1454
|
-
if (Object(t) !== t)
|
|
1455
|
-
return;
|
|
1456
|
-
u = !1;
|
|
1457
|
-
} else
|
|
1458
|
-
for (; !(u = (r = o.call(t)).done) && (l.push(r.value), l.length !== e); u = !0)
|
|
1459
|
-
;
|
|
1460
|
-
} catch (g) {
|
|
1461
|
-
c = !0, s = g;
|
|
1462
|
-
} finally {
|
|
1463
|
-
try {
|
|
1464
|
-
if (!u && t.return != null && (i = t.return(), Object(i) !== i))
|
|
1465
|
-
return;
|
|
1466
|
-
} finally {
|
|
1467
|
-
if (c)
|
|
1468
|
-
throw s;
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
return l;
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
function Vt(n, e) {
|
|
1475
|
-
(e == null || e > n.length) && (e = n.length);
|
|
1476
|
-
for (var t = 0, r = Array(e); t < e; t++)
|
|
1477
|
-
r[t] = n[t];
|
|
1478
|
-
return r;
|
|
1479
|
-
}
|
|
1480
|
-
function Tn(n, e) {
|
|
1481
|
-
if (n) {
|
|
1482
|
-
if (typeof n == "string")
|
|
1483
|
-
return Vt(n, e);
|
|
1484
|
-
var t = {}.toString.call(n).slice(8, -1);
|
|
1485
|
-
return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Vt(n, e) : void 0;
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
function Dn() {
|
|
1489
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1490
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1491
|
-
}
|
|
1492
|
-
function lr(n, e) {
|
|
1493
|
-
return Nn(n) || Pn(n, e) || Tn(n, e) || Dn();
|
|
1494
|
-
}
|
|
1495
|
-
function de(n) {
|
|
1496
|
-
"@babel/helpers - typeof";
|
|
1497
|
-
return de = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1498
|
-
return typeof e;
|
|
1499
|
-
} : function(e) {
|
|
1500
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1501
|
-
}, de(n);
|
|
1502
|
-
}
|
|
1503
|
-
function kn(n, e) {
|
|
1504
|
-
if (de(n) != "object" || !n)
|
|
1505
|
-
return n;
|
|
1506
|
-
var t = n[Symbol.toPrimitive];
|
|
1507
|
-
if (t !== void 0) {
|
|
1508
|
-
var r = t.call(n, e || "default");
|
|
1509
|
-
if (de(r) != "object")
|
|
1510
|
-
return r;
|
|
1511
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1512
|
-
}
|
|
1513
|
-
return (e === "string" ? String : Number)(n);
|
|
1514
|
-
}
|
|
1515
|
-
function An(n) {
|
|
1516
|
-
var e = kn(n, "string");
|
|
1517
|
-
return de(e) == "symbol" ? e : e + "";
|
|
1518
|
-
}
|
|
1519
|
-
function U(n, e, t) {
|
|
1520
|
-
return (e = An(e)) in n ? Object.defineProperty(n, e, {
|
|
1521
|
-
value: t,
|
|
1522
|
-
enumerable: !0,
|
|
1523
|
-
configurable: !0,
|
|
1524
|
-
writable: !0
|
|
1525
|
-
}) : n[e] = t, n;
|
|
1526
|
-
}
|
|
1527
|
-
function $n(n, e) {
|
|
1528
|
-
if (n == null)
|
|
1529
|
-
return {};
|
|
1530
|
-
var t = {};
|
|
1531
|
-
for (var r in n)
|
|
1532
|
-
if ({}.hasOwnProperty.call(n, r)) {
|
|
1533
|
-
if (e.indexOf(r) !== -1)
|
|
1534
|
-
continue;
|
|
1535
|
-
t[r] = n[r];
|
|
1536
|
-
}
|
|
1537
|
-
return t;
|
|
1538
|
-
}
|
|
1539
|
-
function ur(n, e) {
|
|
1540
|
-
if (n == null)
|
|
1541
|
-
return {};
|
|
1542
|
-
var t, r, s = $n(n, e);
|
|
1543
|
-
if (Object.getOwnPropertySymbols) {
|
|
1544
|
-
var o = Object.getOwnPropertySymbols(n);
|
|
1545
|
-
for (r = 0; r < o.length; r++)
|
|
1546
|
-
t = o[r], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (s[t] = n[t]);
|
|
1547
|
-
}
|
|
1548
|
-
return s;
|
|
1549
|
-
}
|
|
1550
|
-
var fr = { exports: {} };
|
|
1431
|
+
Cn.displayName = "MDescriptions";
|
|
1432
|
+
const _n = /* @__PURE__ */ Qt({}), ir = _n;
|
|
1433
|
+
var or = { exports: {} };
|
|
1551
1434
|
/*!
|
|
1552
1435
|
Copyright (c) 2018 Jed Watson.
|
|
1553
1436
|
Licensed under the MIT License (MIT), see
|
|
@@ -1557,62 +1440,253 @@ var fr = { exports: {} };
|
|
|
1557
1440
|
(function() {
|
|
1558
1441
|
var e = {}.hasOwnProperty;
|
|
1559
1442
|
function t() {
|
|
1560
|
-
for (var
|
|
1561
|
-
var l = arguments[
|
|
1562
|
-
l && (
|
|
1443
|
+
for (var a = "", o = 0; o < arguments.length; o++) {
|
|
1444
|
+
var l = arguments[o];
|
|
1445
|
+
l && (a = i(a, r(l)));
|
|
1563
1446
|
}
|
|
1564
|
-
return
|
|
1447
|
+
return a;
|
|
1565
1448
|
}
|
|
1566
|
-
function r(
|
|
1567
|
-
if (typeof
|
|
1568
|
-
return
|
|
1569
|
-
if (typeof
|
|
1449
|
+
function r(a) {
|
|
1450
|
+
if (typeof a == "string" || typeof a == "number")
|
|
1451
|
+
return a;
|
|
1452
|
+
if (typeof a != "object")
|
|
1570
1453
|
return "";
|
|
1571
|
-
if (Array.isArray(
|
|
1572
|
-
return t.apply(null,
|
|
1573
|
-
if (
|
|
1574
|
-
return
|
|
1575
|
-
var
|
|
1576
|
-
for (var l in
|
|
1577
|
-
e.call(
|
|
1578
|
-
return
|
|
1579
|
-
}
|
|
1580
|
-
function
|
|
1581
|
-
return
|
|
1454
|
+
if (Array.isArray(a))
|
|
1455
|
+
return t.apply(null, a);
|
|
1456
|
+
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
1457
|
+
return a.toString();
|
|
1458
|
+
var o = "";
|
|
1459
|
+
for (var l in a)
|
|
1460
|
+
e.call(a, l) && a[l] && (o = i(o, l));
|
|
1461
|
+
return o;
|
|
1462
|
+
}
|
|
1463
|
+
function i(a, o) {
|
|
1464
|
+
return o ? a ? a + " " + o : a + o : a;
|
|
1582
1465
|
}
|
|
1583
1466
|
n.exports ? (t.default = t, n.exports = t) : window.classNames = t;
|
|
1584
1467
|
})();
|
|
1585
|
-
})(
|
|
1586
|
-
var
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1468
|
+
})(or);
|
|
1469
|
+
var En = or.exports;
|
|
1470
|
+
const jn = /* @__PURE__ */ gn(En), kn = {
|
|
1471
|
+
aliceblue: "9ehhb",
|
|
1472
|
+
antiquewhite: "9sgk7",
|
|
1473
|
+
aqua: "1ekf",
|
|
1474
|
+
aquamarine: "4zsno",
|
|
1475
|
+
azure: "9eiv3",
|
|
1476
|
+
beige: "9lhp8",
|
|
1477
|
+
bisque: "9zg04",
|
|
1478
|
+
black: "0",
|
|
1479
|
+
blanchedalmond: "9zhe5",
|
|
1480
|
+
blue: "73",
|
|
1481
|
+
blueviolet: "5e31e",
|
|
1482
|
+
brown: "6g016",
|
|
1483
|
+
burlywood: "8ouiv",
|
|
1484
|
+
cadetblue: "3qba8",
|
|
1485
|
+
chartreuse: "4zshs",
|
|
1486
|
+
chocolate: "87k0u",
|
|
1487
|
+
coral: "9yvyo",
|
|
1488
|
+
cornflowerblue: "3xael",
|
|
1489
|
+
cornsilk: "9zjz0",
|
|
1490
|
+
crimson: "8l4xo",
|
|
1491
|
+
cyan: "1ekf",
|
|
1492
|
+
darkblue: "3v",
|
|
1493
|
+
darkcyan: "rkb",
|
|
1494
|
+
darkgoldenrod: "776yz",
|
|
1495
|
+
darkgray: "6mbhl",
|
|
1496
|
+
darkgreen: "jr4",
|
|
1497
|
+
darkgrey: "6mbhl",
|
|
1498
|
+
darkkhaki: "7ehkb",
|
|
1499
|
+
darkmagenta: "5f91n",
|
|
1500
|
+
darkolivegreen: "3bzfz",
|
|
1501
|
+
darkorange: "9yygw",
|
|
1502
|
+
darkorchid: "5z6x8",
|
|
1503
|
+
darkred: "5f8xs",
|
|
1504
|
+
darksalmon: "9441m",
|
|
1505
|
+
darkseagreen: "5lwgf",
|
|
1506
|
+
darkslateblue: "2th1n",
|
|
1507
|
+
darkslategray: "1ugcv",
|
|
1508
|
+
darkslategrey: "1ugcv",
|
|
1509
|
+
darkturquoise: "14up",
|
|
1510
|
+
darkviolet: "5rw7n",
|
|
1511
|
+
deeppink: "9yavn",
|
|
1512
|
+
deepskyblue: "11xb",
|
|
1513
|
+
dimgray: "442g9",
|
|
1514
|
+
dimgrey: "442g9",
|
|
1515
|
+
dodgerblue: "16xof",
|
|
1516
|
+
firebrick: "6y7tu",
|
|
1517
|
+
floralwhite: "9zkds",
|
|
1518
|
+
forestgreen: "1cisi",
|
|
1519
|
+
fuchsia: "9y70f",
|
|
1520
|
+
gainsboro: "8m8kc",
|
|
1521
|
+
ghostwhite: "9pq0v",
|
|
1522
|
+
goldenrod: "8j4f4",
|
|
1523
|
+
gold: "9zda8",
|
|
1524
|
+
gray: "50i2o",
|
|
1525
|
+
green: "pa8",
|
|
1526
|
+
greenyellow: "6senj",
|
|
1527
|
+
grey: "50i2o",
|
|
1528
|
+
honeydew: "9eiuo",
|
|
1529
|
+
hotpink: "9yrp0",
|
|
1530
|
+
indianred: "80gnw",
|
|
1531
|
+
indigo: "2xcoy",
|
|
1532
|
+
ivory: "9zldc",
|
|
1533
|
+
khaki: "9edu4",
|
|
1534
|
+
lavenderblush: "9ziet",
|
|
1535
|
+
lavender: "90c8q",
|
|
1536
|
+
lawngreen: "4vk74",
|
|
1537
|
+
lemonchiffon: "9zkct",
|
|
1538
|
+
lightblue: "6s73a",
|
|
1539
|
+
lightcoral: "9dtog",
|
|
1540
|
+
lightcyan: "8s1rz",
|
|
1541
|
+
lightgoldenrodyellow: "9sjiq",
|
|
1542
|
+
lightgray: "89jo3",
|
|
1543
|
+
lightgreen: "5nkwg",
|
|
1544
|
+
lightgrey: "89jo3",
|
|
1545
|
+
lightpink: "9z6wx",
|
|
1546
|
+
lightsalmon: "9z2ii",
|
|
1547
|
+
lightseagreen: "19xgq",
|
|
1548
|
+
lightskyblue: "5arju",
|
|
1549
|
+
lightslategray: "4nwk9",
|
|
1550
|
+
lightslategrey: "4nwk9",
|
|
1551
|
+
lightsteelblue: "6wau6",
|
|
1552
|
+
lightyellow: "9zlcw",
|
|
1553
|
+
lime: "1edc",
|
|
1554
|
+
limegreen: "1zcxe",
|
|
1555
|
+
linen: "9shk6",
|
|
1556
|
+
magenta: "9y70f",
|
|
1557
|
+
maroon: "4zsow",
|
|
1558
|
+
mediumaquamarine: "40eju",
|
|
1559
|
+
mediumblue: "5p",
|
|
1560
|
+
mediumorchid: "79qkz",
|
|
1561
|
+
mediumpurple: "5r3rv",
|
|
1562
|
+
mediumseagreen: "2d9ip",
|
|
1563
|
+
mediumslateblue: "4tcku",
|
|
1564
|
+
mediumspringgreen: "1di2",
|
|
1565
|
+
mediumturquoise: "2uabw",
|
|
1566
|
+
mediumvioletred: "7rn9h",
|
|
1567
|
+
midnightblue: "z980",
|
|
1568
|
+
mintcream: "9ljp6",
|
|
1569
|
+
mistyrose: "9zg0x",
|
|
1570
|
+
moccasin: "9zfzp",
|
|
1571
|
+
navajowhite: "9zest",
|
|
1572
|
+
navy: "3k",
|
|
1573
|
+
oldlace: "9wq92",
|
|
1574
|
+
olive: "50hz4",
|
|
1575
|
+
olivedrab: "472ub",
|
|
1576
|
+
orange: "9z3eo",
|
|
1577
|
+
orangered: "9ykg0",
|
|
1578
|
+
orchid: "8iu3a",
|
|
1579
|
+
palegoldenrod: "9bl4a",
|
|
1580
|
+
palegreen: "5yw0o",
|
|
1581
|
+
paleturquoise: "6v4ku",
|
|
1582
|
+
palevioletred: "8k8lv",
|
|
1583
|
+
papayawhip: "9zi6t",
|
|
1584
|
+
peachpuff: "9ze0p",
|
|
1585
|
+
peru: "80oqn",
|
|
1586
|
+
pink: "9z8wb",
|
|
1587
|
+
plum: "8nba5",
|
|
1588
|
+
powderblue: "6wgdi",
|
|
1589
|
+
purple: "4zssg",
|
|
1590
|
+
rebeccapurple: "3zk49",
|
|
1591
|
+
red: "9y6tc",
|
|
1592
|
+
rosybrown: "7cv4f",
|
|
1593
|
+
royalblue: "2jvtt",
|
|
1594
|
+
saddlebrown: "5fmkz",
|
|
1595
|
+
salmon: "9rvci",
|
|
1596
|
+
sandybrown: "9jn1c",
|
|
1597
|
+
seagreen: "1tdnb",
|
|
1598
|
+
seashell: "9zje6",
|
|
1599
|
+
sienna: "6973h",
|
|
1600
|
+
silver: "7ir40",
|
|
1601
|
+
skyblue: "5arjf",
|
|
1602
|
+
slateblue: "45e4t",
|
|
1603
|
+
slategray: "4e100",
|
|
1604
|
+
slategrey: "4e100",
|
|
1605
|
+
snow: "9zke2",
|
|
1606
|
+
springgreen: "1egv",
|
|
1607
|
+
steelblue: "2r1kk",
|
|
1608
|
+
tan: "87yx8",
|
|
1609
|
+
teal: "pds",
|
|
1610
|
+
thistle: "8ggk8",
|
|
1611
|
+
tomato: "9yqfb",
|
|
1612
|
+
turquoise: "2j4r4",
|
|
1613
|
+
violet: "9b10u",
|
|
1614
|
+
wheat: "9ld4j",
|
|
1615
|
+
white: "9zldr",
|
|
1616
|
+
whitesmoke: "9lhpx",
|
|
1617
|
+
yellow: "9zl6o",
|
|
1618
|
+
yellowgreen: "61fzm"
|
|
1619
|
+
}, A = Math.round;
|
|
1620
|
+
function tt(n, e) {
|
|
1621
|
+
const t = n.replace(/^[^(]*\((.*)/, "$1").replace(/\).*/, "").match(/\d*\.?\d+%?/g) || [], r = t.map((i) => parseFloat(i));
|
|
1622
|
+
for (let i = 0; i < 3; i += 1)
|
|
1623
|
+
r[i] = e(r[i] || 0, t[i] || "", i);
|
|
1592
1624
|
return t[3] ? r[3] = t[3].includes("%") ? r[3] / 100 : r[3] : r[3] = 1, r;
|
|
1593
1625
|
}
|
|
1594
|
-
const
|
|
1595
|
-
function
|
|
1626
|
+
const Vt = (n, e, t) => t === 0 ? n : n / 100;
|
|
1627
|
+
function je(n, e) {
|
|
1596
1628
|
const t = e || 255;
|
|
1597
1629
|
return n > t ? t : n < 0 ? 0 : n;
|
|
1598
1630
|
}
|
|
1599
|
-
class
|
|
1631
|
+
class pe {
|
|
1600
1632
|
constructor(e) {
|
|
1601
|
-
|
|
1633
|
+
/**
|
|
1634
|
+
* All FastColor objects are valid. So isValid is always true. This property is kept to be compatible with TinyColor.
|
|
1635
|
+
*/
|
|
1636
|
+
m(this, "isValid", !0);
|
|
1637
|
+
/**
|
|
1638
|
+
* Red, R in RGB
|
|
1639
|
+
*/
|
|
1640
|
+
m(this, "r", 0);
|
|
1641
|
+
/**
|
|
1642
|
+
* Green, G in RGB
|
|
1643
|
+
*/
|
|
1644
|
+
m(this, "g", 0);
|
|
1645
|
+
/**
|
|
1646
|
+
* Blue, B in RGB
|
|
1647
|
+
*/
|
|
1648
|
+
m(this, "b", 0);
|
|
1649
|
+
/**
|
|
1650
|
+
* Alpha/Opacity, A in RGBA/HSLA
|
|
1651
|
+
*/
|
|
1652
|
+
m(this, "a", 1);
|
|
1653
|
+
// HSV privates
|
|
1654
|
+
m(this, "_h");
|
|
1655
|
+
m(this, "_s");
|
|
1656
|
+
m(this, "_l");
|
|
1657
|
+
m(this, "_v");
|
|
1658
|
+
// intermediate variables to calculate HSL/HSV
|
|
1659
|
+
m(this, "_max");
|
|
1660
|
+
m(this, "_min");
|
|
1661
|
+
m(this, "_brightness");
|
|
1602
1662
|
function t(r) {
|
|
1603
1663
|
return r[0] in e && r[1] in e && r[2] in e;
|
|
1604
1664
|
}
|
|
1605
1665
|
if (e)
|
|
1606
1666
|
if (typeof e == "string") {
|
|
1607
|
-
let
|
|
1608
|
-
return r.startsWith(
|
|
1667
|
+
let i = function(a) {
|
|
1668
|
+
return r.startsWith(a);
|
|
1609
1669
|
};
|
|
1610
1670
|
const r = e.trim();
|
|
1611
|
-
/^#?[A-F\d]{3,8}$/i.test(r)
|
|
1612
|
-
|
|
1671
|
+
if (/^#?[A-F\d]{3,8}$/i.test(r))
|
|
1672
|
+
this.fromHexString(r);
|
|
1673
|
+
else if (i("rgb"))
|
|
1674
|
+
this.fromRgbString(r);
|
|
1675
|
+
else if (i("hsl"))
|
|
1676
|
+
this.fromHslString(r);
|
|
1677
|
+
else if (i("hsv") || i("hsb"))
|
|
1678
|
+
this.fromHsvString(r);
|
|
1679
|
+
else {
|
|
1680
|
+
const a = kn[r.toLowerCase()];
|
|
1681
|
+
a && this.fromHexString(
|
|
1682
|
+
// Convert 36 hex to 16 hex
|
|
1683
|
+
parseInt(a, 36).toString(16).padStart(6, "0")
|
|
1684
|
+
);
|
|
1685
|
+
}
|
|
1686
|
+
} else if (e instanceof pe)
|
|
1613
1687
|
this.r = e.r, this.g = e.g, this.b = e.b, this.a = e.a, this._h = e._h, this._s = e._s, this._l = e._l, this._v = e._v;
|
|
1614
1688
|
else if (t("rgb"))
|
|
1615
|
-
this.r =
|
|
1689
|
+
this.r = je(e.r), this.g = je(e.g), this.b = je(e.b), this.a = typeof e.a == "number" ? je(e.a, 1) : 1;
|
|
1616
1690
|
else if (t("hsl"))
|
|
1617
1691
|
this.fromHsl(e);
|
|
1618
1692
|
else if (t("hsv"))
|
|
@@ -1643,17 +1717,17 @@ class me {
|
|
|
1643
1717
|
* @see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
|
1644
1718
|
*/
|
|
1645
1719
|
getLuminance() {
|
|
1646
|
-
function e(
|
|
1647
|
-
const
|
|
1648
|
-
return
|
|
1720
|
+
function e(a) {
|
|
1721
|
+
const o = a / 255;
|
|
1722
|
+
return o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
|
|
1649
1723
|
}
|
|
1650
|
-
const t = e(this.r), r = e(this.g),
|
|
1651
|
-
return 0.2126 * t + 0.7152 * r + 0.0722 *
|
|
1724
|
+
const t = e(this.r), r = e(this.g), i = e(this.b);
|
|
1725
|
+
return 0.2126 * t + 0.7152 * r + 0.0722 * i;
|
|
1652
1726
|
}
|
|
1653
1727
|
getHue() {
|
|
1654
1728
|
if (typeof this._h > "u") {
|
|
1655
1729
|
const e = this.getMax() - this.getMin();
|
|
1656
|
-
e === 0 ? this._h = 0 : this._h =
|
|
1730
|
+
e === 0 ? this._h = 0 : this._h = A(60 * (this.r === this.getMax() ? (this.g - this.b) / e + (this.g < this.b ? 6 : 0) : this.g === this.getMax() ? (this.b - this.r) / e + 2 : (this.r - this.g) / e + 4));
|
|
1657
1731
|
}
|
|
1658
1732
|
return this._h;
|
|
1659
1733
|
}
|
|
@@ -1681,21 +1755,21 @@ class me {
|
|
|
1681
1755
|
// ======================== Func ========================
|
|
1682
1756
|
darken(e = 10) {
|
|
1683
1757
|
const t = this.getHue(), r = this.getSaturation();
|
|
1684
|
-
let
|
|
1685
|
-
return
|
|
1758
|
+
let i = this.getLightness() - e / 100;
|
|
1759
|
+
return i < 0 && (i = 0), this._c({
|
|
1686
1760
|
h: t,
|
|
1687
1761
|
s: r,
|
|
1688
|
-
l:
|
|
1762
|
+
l: i,
|
|
1689
1763
|
a: this.a
|
|
1690
1764
|
});
|
|
1691
1765
|
}
|
|
1692
1766
|
lighten(e = 10) {
|
|
1693
1767
|
const t = this.getHue(), r = this.getSaturation();
|
|
1694
|
-
let
|
|
1695
|
-
return
|
|
1768
|
+
let i = this.getLightness() + e / 100;
|
|
1769
|
+
return i > 1 && (i = 1), this._c({
|
|
1696
1770
|
h: t,
|
|
1697
1771
|
s: r,
|
|
1698
|
-
l:
|
|
1772
|
+
l: i,
|
|
1699
1773
|
a: this.a
|
|
1700
1774
|
});
|
|
1701
1775
|
}
|
|
@@ -1704,13 +1778,13 @@ class me {
|
|
|
1704
1778
|
* 0 means no mixing (return current color).
|
|
1705
1779
|
*/
|
|
1706
1780
|
mix(e, t = 50) {
|
|
1707
|
-
const r = this._c(e),
|
|
1708
|
-
r:
|
|
1709
|
-
g:
|
|
1710
|
-
b:
|
|
1711
|
-
a:
|
|
1781
|
+
const r = this._c(e), i = t / 100, a = (l) => (r[l] - this[l]) * i + this[l], o = {
|
|
1782
|
+
r: A(a("r")),
|
|
1783
|
+
g: A(a("g")),
|
|
1784
|
+
b: A(a("b")),
|
|
1785
|
+
a: A(a("a") * 100) / 100
|
|
1712
1786
|
};
|
|
1713
|
-
return this._c(
|
|
1787
|
+
return this._c(o);
|
|
1714
1788
|
}
|
|
1715
1789
|
/**
|
|
1716
1790
|
* Mix the color with pure white, from 0 to 100.
|
|
@@ -1737,11 +1811,11 @@ class me {
|
|
|
1737
1811
|
}, e);
|
|
1738
1812
|
}
|
|
1739
1813
|
onBackground(e) {
|
|
1740
|
-
const t = this._c(e), r = this.a + t.a * (1 - this.a),
|
|
1814
|
+
const t = this._c(e), r = this.a + t.a * (1 - this.a), i = (a) => A((this[a] * this.a + t[a] * t.a * (1 - this.a)) / r);
|
|
1741
1815
|
return this._c({
|
|
1742
|
-
r:
|
|
1743
|
-
g:
|
|
1744
|
-
b:
|
|
1816
|
+
r: i("r"),
|
|
1817
|
+
g: i("g"),
|
|
1818
|
+
b: i("b"),
|
|
1745
1819
|
a: r
|
|
1746
1820
|
});
|
|
1747
1821
|
}
|
|
@@ -1766,10 +1840,10 @@ class me {
|
|
|
1766
1840
|
e += t.length === 2 ? t : "0" + t;
|
|
1767
1841
|
const r = (this.g || 0).toString(16);
|
|
1768
1842
|
e += r.length === 2 ? r : "0" + r;
|
|
1769
|
-
const
|
|
1770
|
-
if (e +=
|
|
1771
|
-
const
|
|
1772
|
-
e +=
|
|
1843
|
+
const i = (this.b || 0).toString(16);
|
|
1844
|
+
if (e += i.length === 2 ? i : "0" + i, typeof this.a == "number" && this.a >= 0 && this.a < 1) {
|
|
1845
|
+
const a = A(this.a * 255).toString(16);
|
|
1846
|
+
e += a.length === 2 ? a : "0" + a;
|
|
1773
1847
|
}
|
|
1774
1848
|
return e;
|
|
1775
1849
|
}
|
|
@@ -1784,7 +1858,7 @@ class me {
|
|
|
1784
1858
|
}
|
|
1785
1859
|
/** CSS support color pattern */
|
|
1786
1860
|
toHslString() {
|
|
1787
|
-
const e = this.getHue(), t =
|
|
1861
|
+
const e = this.getHue(), t = A(this.getSaturation() * 100), r = A(this.getLightness() * 100);
|
|
1788
1862
|
return this.a !== 1 ? `hsla(${e},${t}%,${r}%,${this.a})` : `hsl(${e},${t}%,${r}%)`;
|
|
1789
1863
|
}
|
|
1790
1864
|
/** Same as toHsb */
|
|
@@ -1813,8 +1887,8 @@ class me {
|
|
|
1813
1887
|
// ====================== Privates ======================
|
|
1814
1888
|
/** Return a new FastColor object with one channel changed */
|
|
1815
1889
|
_sc(e, t, r) {
|
|
1816
|
-
const
|
|
1817
|
-
return
|
|
1890
|
+
const i = this.clone();
|
|
1891
|
+
return i[e] = je(t, r), i;
|
|
1818
1892
|
}
|
|
1819
1893
|
_c(e) {
|
|
1820
1894
|
return new this.constructor(e);
|
|
@@ -1827,8 +1901,8 @@ class me {
|
|
|
1827
1901
|
}
|
|
1828
1902
|
fromHexString(e) {
|
|
1829
1903
|
const t = e.replace("#", "");
|
|
1830
|
-
function r(
|
|
1831
|
-
return parseInt(t[
|
|
1904
|
+
function r(i, a) {
|
|
1905
|
+
return parseInt(t[i] + t[a || i], 16);
|
|
1832
1906
|
}
|
|
1833
1907
|
t.length < 6 ? (this.r = r(0), this.g = r(1), this.b = r(2), this.a = t[3] ? r(3) / 255 : 1) : (this.r = r(0, 1), this.g = r(2, 3), this.b = r(4, 5), this.a = t[6] ? r(6, 7) / 255 : 1);
|
|
1834
1908
|
}
|
|
@@ -1836,53 +1910,53 @@ class me {
|
|
|
1836
1910
|
h: e,
|
|
1837
1911
|
s: t,
|
|
1838
1912
|
l: r,
|
|
1839
|
-
a:
|
|
1913
|
+
a: i
|
|
1840
1914
|
}) {
|
|
1841
|
-
if (this._h = e % 360, this._s = t, this._l = r, this.a = typeof
|
|
1842
|
-
const
|
|
1843
|
-
this.r =
|
|
1915
|
+
if (this._h = e % 360, this._s = t, this._l = r, this.a = typeof i == "number" ? i : 1, t <= 0) {
|
|
1916
|
+
const v = A(r * 255);
|
|
1917
|
+
this.r = v, this.g = v, this.b = v;
|
|
1844
1918
|
}
|
|
1845
|
-
let
|
|
1846
|
-
const
|
|
1847
|
-
|
|
1848
|
-
const
|
|
1849
|
-
this.r =
|
|
1919
|
+
let a = 0, o = 0, l = 0;
|
|
1920
|
+
const d = e / 60, c = (1 - Math.abs(2 * r - 1)) * t, f = c * (1 - Math.abs(d % 2 - 1));
|
|
1921
|
+
d >= 0 && d < 1 ? (a = c, o = f) : d >= 1 && d < 2 ? (a = f, o = c) : d >= 2 && d < 3 ? (o = c, l = f) : d >= 3 && d < 4 ? (o = f, l = c) : d >= 4 && d < 5 ? (a = f, l = c) : d >= 5 && d < 6 && (a = c, l = f);
|
|
1922
|
+
const g = r - c / 2;
|
|
1923
|
+
this.r = A((a + g) * 255), this.g = A((o + g) * 255), this.b = A((l + g) * 255);
|
|
1850
1924
|
}
|
|
1851
1925
|
fromHsv({
|
|
1852
1926
|
h: e,
|
|
1853
1927
|
s: t,
|
|
1854
1928
|
v: r,
|
|
1855
|
-
a:
|
|
1929
|
+
a: i
|
|
1856
1930
|
}) {
|
|
1857
|
-
this._h = e % 360, this._s = t, this._v = r, this.a = typeof
|
|
1858
|
-
const
|
|
1859
|
-
if (this.r =
|
|
1931
|
+
this._h = e % 360, this._s = t, this._v = r, this.a = typeof i == "number" ? i : 1;
|
|
1932
|
+
const a = A(r * 255);
|
|
1933
|
+
if (this.r = a, this.g = a, this.b = a, t <= 0)
|
|
1860
1934
|
return;
|
|
1861
|
-
const
|
|
1935
|
+
const o = e / 60, l = Math.floor(o), d = o - l, c = A(r * (1 - t) * 255), f = A(r * (1 - t * d) * 255), g = A(r * (1 - t * (1 - d)) * 255);
|
|
1862
1936
|
switch (l) {
|
|
1863
1937
|
case 0:
|
|
1864
|
-
this.g =
|
|
1938
|
+
this.g = g, this.b = c;
|
|
1865
1939
|
break;
|
|
1866
1940
|
case 1:
|
|
1867
|
-
this.r =
|
|
1941
|
+
this.r = f, this.b = c;
|
|
1868
1942
|
break;
|
|
1869
1943
|
case 2:
|
|
1870
|
-
this.r = c, this.b =
|
|
1944
|
+
this.r = c, this.b = g;
|
|
1871
1945
|
break;
|
|
1872
1946
|
case 3:
|
|
1873
|
-
this.r = c, this.g =
|
|
1947
|
+
this.r = c, this.g = f;
|
|
1874
1948
|
break;
|
|
1875
1949
|
case 4:
|
|
1876
|
-
this.r =
|
|
1950
|
+
this.r = g, this.g = c;
|
|
1877
1951
|
break;
|
|
1878
1952
|
case 5:
|
|
1879
1953
|
default:
|
|
1880
|
-
this.g = c, this.b =
|
|
1954
|
+
this.g = c, this.b = f;
|
|
1881
1955
|
break;
|
|
1882
1956
|
}
|
|
1883
1957
|
}
|
|
1884
1958
|
fromHsvString(e) {
|
|
1885
|
-
const t =
|
|
1959
|
+
const t = tt(e, Vt);
|
|
1886
1960
|
this.fromHsv({
|
|
1887
1961
|
h: t[0],
|
|
1888
1962
|
s: t[1],
|
|
@@ -1891,7 +1965,7 @@ class me {
|
|
|
1891
1965
|
});
|
|
1892
1966
|
}
|
|
1893
1967
|
fromHslString(e) {
|
|
1894
|
-
const t =
|
|
1968
|
+
const t = tt(e, Vt);
|
|
1895
1969
|
this.fromHsl({
|
|
1896
1970
|
h: t[0],
|
|
1897
1971
|
s: t[1],
|
|
@@ -1900,14 +1974,14 @@ class me {
|
|
|
1900
1974
|
});
|
|
1901
1975
|
}
|
|
1902
1976
|
fromRgbString(e) {
|
|
1903
|
-
const t =
|
|
1977
|
+
const t = tt(e, (r, i) => (
|
|
1904
1978
|
// Convert percentage to number. e.g. 50% -> 128
|
|
1905
|
-
|
|
1979
|
+
i.includes("%") ? A(r / 100 * 255) : r
|
|
1906
1980
|
));
|
|
1907
1981
|
this.r = t[0], this.g = t[1], this.b = t[2], this.a = t[3];
|
|
1908
1982
|
}
|
|
1909
1983
|
}
|
|
1910
|
-
|
|
1984
|
+
const Ae = 2, qt = 0.16, On = 0.05, $n = 0.05, Nn = 0.15, cr = 5, lr = 4, Dn = [{
|
|
1911
1985
|
index: 7,
|
|
1912
1986
|
amount: 15
|
|
1913
1987
|
}, {
|
|
@@ -1938,242 +2012,213 @@ var Ye = 2, Ut = 0.16, Ln = 0.05, Yn = 0.05, Hn = 0.15, dr = 5, hr = 4, zn = [{
|
|
|
1938
2012
|
index: 1,
|
|
1939
2013
|
amount: 98
|
|
1940
2014
|
}];
|
|
1941
|
-
function
|
|
1942
|
-
|
|
1943
|
-
return Math.round(n.h) >= 60 && Math.round(n.h) <= 240 ? r = t ? Math.round(n.h) -
|
|
2015
|
+
function Ft(n, e, t) {
|
|
2016
|
+
let r;
|
|
2017
|
+
return Math.round(n.h) >= 60 && Math.round(n.h) <= 240 ? r = t ? Math.round(n.h) - Ae * e : Math.round(n.h) + Ae * e : r = t ? Math.round(n.h) + Ae * e : Math.round(n.h) - Ae * e, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
|
|
1944
2018
|
}
|
|
1945
|
-
function
|
|
2019
|
+
function Ut(n, e, t) {
|
|
1946
2020
|
if (n.h === 0 && n.s === 0)
|
|
1947
2021
|
return n.s;
|
|
1948
|
-
|
|
1949
|
-
return t ? r = n.s -
|
|
2022
|
+
let r;
|
|
2023
|
+
return t ? r = n.s - qt * e : e === lr ? r = n.s + qt : r = n.s + On * e, r > 1 && (r = 1), t && e === cr && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Math.round(r * 100) / 100;
|
|
1950
2024
|
}
|
|
1951
|
-
function
|
|
1952
|
-
|
|
1953
|
-
return t ? r = n.v +
|
|
1954
|
-
}
|
|
1955
|
-
function
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
2025
|
+
function Bt(n, e, t) {
|
|
2026
|
+
let r;
|
|
2027
|
+
return t ? r = n.v + $n * e : r = n.v - Nn * e, r = Math.max(0, Math.min(1, r)), Math.round(r * 100) / 100;
|
|
2028
|
+
}
|
|
2029
|
+
function Pn(n, e = {}) {
|
|
2030
|
+
const t = [], r = new pe(n), i = r.toHsv();
|
|
2031
|
+
for (let a = cr; a > 0; a -= 1) {
|
|
2032
|
+
const o = new pe({
|
|
2033
|
+
h: Ft(i, a, !0),
|
|
2034
|
+
s: Ut(i, a, !0),
|
|
2035
|
+
v: Bt(i, a, !0)
|
|
1961
2036
|
});
|
|
1962
|
-
t.push(
|
|
2037
|
+
t.push(o);
|
|
1963
2038
|
}
|
|
1964
2039
|
t.push(r);
|
|
1965
|
-
for (
|
|
1966
|
-
|
|
1967
|
-
h:
|
|
1968
|
-
s:
|
|
1969
|
-
v:
|
|
1970
|
-
});
|
|
1971
|
-
t.push(u);
|
|
1972
|
-
}
|
|
1973
|
-
return e.theme === "dark" ? zn.map(function(c) {
|
|
1974
|
-
var g = c.index, d = c.amount;
|
|
1975
|
-
return new me(e.backgroundColor || "#141414").mix(t[g], d).toHexString();
|
|
1976
|
-
}) : t.map(function(c) {
|
|
1977
|
-
return c.toHexString();
|
|
1978
|
-
});
|
|
1979
|
-
}
|
|
1980
|
-
var dt = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
|
1981
|
-
dt.primary = dt[5];
|
|
1982
|
-
function Zt(n, e) {
|
|
1983
|
-
var t = Object.keys(n);
|
|
1984
|
-
if (Object.getOwnPropertySymbols) {
|
|
1985
|
-
var r = Object.getOwnPropertySymbols(n);
|
|
1986
|
-
e && (r = r.filter(function(s) {
|
|
1987
|
-
return Object.getOwnPropertyDescriptor(n, s).enumerable;
|
|
1988
|
-
})), t.push.apply(t, r);
|
|
1989
|
-
}
|
|
1990
|
-
return t;
|
|
1991
|
-
}
|
|
1992
|
-
function re(n) {
|
|
1993
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
1994
|
-
var t = arguments[e] != null ? arguments[e] : {};
|
|
1995
|
-
e % 2 ? Zt(Object(t), !0).forEach(function(r) {
|
|
1996
|
-
U(n, r, t[r]);
|
|
1997
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Zt(Object(t)).forEach(function(r) {
|
|
1998
|
-
Object.defineProperty(n, r, Object.getOwnPropertyDescriptor(t, r));
|
|
2040
|
+
for (let a = 1; a <= lr; a += 1) {
|
|
2041
|
+
const o = new pe({
|
|
2042
|
+
h: Ft(i, a),
|
|
2043
|
+
s: Ut(i, a),
|
|
2044
|
+
v: Bt(i, a)
|
|
1999
2045
|
});
|
|
2046
|
+
t.push(o);
|
|
2000
2047
|
}
|
|
2001
|
-
return
|
|
2048
|
+
return e.theme === "dark" ? Dn.map(({
|
|
2049
|
+
index: a,
|
|
2050
|
+
amount: o
|
|
2051
|
+
}) => new pe(e.backgroundColor || "#141414").mix(t[a], o).toHexString()) : t.map((a) => a.toHexString());
|
|
2002
2052
|
}
|
|
2003
|
-
|
|
2053
|
+
const lt = ["#e6f4ff", "#bae0ff", "#91caff", "#69b1ff", "#4096ff", "#1677ff", "#0958d9", "#003eb3", "#002c8c", "#001d66"];
|
|
2054
|
+
lt.primary = lt[5];
|
|
2055
|
+
function Tn() {
|
|
2004
2056
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2005
2057
|
}
|
|
2006
|
-
function
|
|
2058
|
+
function Mn(n, e) {
|
|
2007
2059
|
if (!n)
|
|
2008
2060
|
return !1;
|
|
2009
2061
|
if (n.contains)
|
|
2010
2062
|
return n.contains(e);
|
|
2011
|
-
|
|
2063
|
+
let t = e;
|
|
2064
|
+
for (; t; ) {
|
|
2012
2065
|
if (t === n)
|
|
2013
2066
|
return !0;
|
|
2014
2067
|
t = t.parentNode;
|
|
2015
2068
|
}
|
|
2016
2069
|
return !1;
|
|
2017
2070
|
}
|
|
2018
|
-
|
|
2019
|
-
function
|
|
2020
|
-
|
|
2021
|
-
|
|
2071
|
+
const Wt = "data-rc-order", Zt = "data-rc-priority", An = "rc-util-key", ut = /* @__PURE__ */ new Map();
|
|
2072
|
+
function ur({
|
|
2073
|
+
mark: n
|
|
2074
|
+
} = {}) {
|
|
2075
|
+
return n ? n.startsWith("data-") ? n : `data-${n}` : An;
|
|
2022
2076
|
}
|
|
2023
|
-
function
|
|
2024
|
-
|
|
2025
|
-
return n.attachTo;
|
|
2026
|
-
var e = document.querySelector("head");
|
|
2027
|
-
return e || document.body;
|
|
2077
|
+
function bt(n) {
|
|
2078
|
+
return n.attachTo ? n.attachTo : document.querySelector("head") || document.body;
|
|
2028
2079
|
}
|
|
2029
|
-
function
|
|
2080
|
+
function zn(n) {
|
|
2030
2081
|
return n === "queue" ? "prependQueue" : n ? "prepend" : "append";
|
|
2031
2082
|
}
|
|
2032
2083
|
function vt(n) {
|
|
2033
|
-
return Array.from((
|
|
2034
|
-
return e.tagName === "STYLE";
|
|
2035
|
-
});
|
|
2084
|
+
return Array.from((ut.get(n) || n).children).filter((e) => e.tagName === "STYLE");
|
|
2036
2085
|
}
|
|
2037
|
-
function
|
|
2038
|
-
|
|
2039
|
-
if (!Fn())
|
|
2086
|
+
function dr(n, e = {}) {
|
|
2087
|
+
if (!Tn())
|
|
2040
2088
|
return null;
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2089
|
+
const {
|
|
2090
|
+
csp: t,
|
|
2091
|
+
prepend: r,
|
|
2092
|
+
priority: i = 0
|
|
2093
|
+
} = e, a = zn(r), o = a === "prependQueue", l = document.createElement("style");
|
|
2094
|
+
l.setAttribute(Wt, a), o && i && l.setAttribute(Zt, `${i}`), t != null && t.nonce && (l.nonce = t == null ? void 0 : t.nonce), l.innerHTML = n;
|
|
2095
|
+
const d = bt(e), {
|
|
2096
|
+
firstChild: c
|
|
2097
|
+
} = d;
|
|
2044
2098
|
if (r) {
|
|
2045
|
-
if (
|
|
2046
|
-
|
|
2047
|
-
if (!["prepend", "prependQueue"].includes(
|
|
2099
|
+
if (o) {
|
|
2100
|
+
const f = (e.styles || vt(d)).filter((g) => {
|
|
2101
|
+
if (!["prepend", "prependQueue"].includes(g.getAttribute(Wt)))
|
|
2048
2102
|
return !1;
|
|
2049
|
-
|
|
2050
|
-
return
|
|
2103
|
+
const v = Number(g.getAttribute(Zt) || 0);
|
|
2104
|
+
return i >= v;
|
|
2051
2105
|
});
|
|
2052
|
-
if (
|
|
2053
|
-
return
|
|
2106
|
+
if (f.length)
|
|
2107
|
+
return d.insertBefore(l, f[f.length - 1].nextSibling), l;
|
|
2054
2108
|
}
|
|
2055
|
-
|
|
2109
|
+
d.insertBefore(l, c);
|
|
2056
2110
|
} else
|
|
2057
|
-
|
|
2058
|
-
return
|
|
2059
|
-
}
|
|
2060
|
-
function
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
}
|
|
2066
|
-
function
|
|
2067
|
-
|
|
2068
|
-
if (!t || !
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
}
|
|
2090
|
-
function mr(n) {
|
|
2111
|
+
d.appendChild(l);
|
|
2112
|
+
return l;
|
|
2113
|
+
}
|
|
2114
|
+
function In(n, e = {}) {
|
|
2115
|
+
let {
|
|
2116
|
+
styles: t
|
|
2117
|
+
} = e;
|
|
2118
|
+
return t || (t = vt(bt(e))), t.find((r) => r.getAttribute(ur(e)) === n);
|
|
2119
|
+
}
|
|
2120
|
+
function Yn(n, e) {
|
|
2121
|
+
const t = ut.get(n);
|
|
2122
|
+
if (!t || !Mn(document, t)) {
|
|
2123
|
+
const r = dr("", e), {
|
|
2124
|
+
parentNode: i
|
|
2125
|
+
} = r;
|
|
2126
|
+
ut.set(n, i), n.removeChild(r);
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
function Ln(n, e, t = {}) {
|
|
2130
|
+
var d, c, f;
|
|
2131
|
+
const r = bt(t), i = vt(r), a = {
|
|
2132
|
+
...t,
|
|
2133
|
+
styles: i
|
|
2134
|
+
};
|
|
2135
|
+
Yn(r, a);
|
|
2136
|
+
const o = In(e, a);
|
|
2137
|
+
if (o)
|
|
2138
|
+
return (d = a.csp) != null && d.nonce && o.nonce !== ((c = a.csp) == null ? void 0 : c.nonce) && (o.nonce = (f = a.csp) == null ? void 0 : f.nonce), o.innerHTML !== n && (o.innerHTML = n), o;
|
|
2139
|
+
const l = dr(n, a);
|
|
2140
|
+
return l.setAttribute(ur(a), e), l;
|
|
2141
|
+
}
|
|
2142
|
+
function fr(n) {
|
|
2091
2143
|
var e;
|
|
2092
|
-
return n == null
|
|
2144
|
+
return (e = n == null ? void 0 : n.getRootNode) == null ? void 0 : e.call(n);
|
|
2093
2145
|
}
|
|
2094
|
-
function
|
|
2095
|
-
return
|
|
2146
|
+
function Hn(n) {
|
|
2147
|
+
return fr(n) instanceof ShadowRoot;
|
|
2096
2148
|
}
|
|
2097
|
-
function
|
|
2098
|
-
return
|
|
2149
|
+
function Vn(n) {
|
|
2150
|
+
return Hn(n) ? fr(n) : null;
|
|
2099
2151
|
}
|
|
2100
|
-
|
|
2101
|
-
|
|
2152
|
+
let dt = {};
|
|
2153
|
+
const yt = [], qn = (n) => {
|
|
2154
|
+
yt.push(n);
|
|
2102
2155
|
};
|
|
2103
|
-
function
|
|
2156
|
+
function Fn(n, e) {
|
|
2104
2157
|
if (process.env.NODE_ENV !== "production" && !n && console !== void 0) {
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
}, e);
|
|
2108
|
-
t && console.error("Warning: ".concat(t));
|
|
2158
|
+
const t = yt.reduce((r, i) => i(r ?? "", "warning"), e);
|
|
2159
|
+
t && console.error(`Warning: ${t}`);
|
|
2109
2160
|
}
|
|
2110
2161
|
}
|
|
2111
|
-
function
|
|
2162
|
+
function Un(n, e) {
|
|
2112
2163
|
if (process.env.NODE_ENV !== "production" && !n && console !== void 0) {
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
}, e);
|
|
2116
|
-
t && console.warn("Note: ".concat(t));
|
|
2164
|
+
const t = yt.reduce((r, i) => i(r ?? "", "note"), e);
|
|
2165
|
+
t && console.warn(`Note: ${t}`);
|
|
2117
2166
|
}
|
|
2118
2167
|
}
|
|
2119
|
-
function
|
|
2120
|
-
|
|
2168
|
+
function Bn() {
|
|
2169
|
+
dt = {};
|
|
2121
2170
|
}
|
|
2122
|
-
function
|
|
2123
|
-
!e && !
|
|
2171
|
+
function hr(n, e, t) {
|
|
2172
|
+
!e && !dt[t] && (n(!1, t), dt[t] = !0);
|
|
2124
2173
|
}
|
|
2125
|
-
function
|
|
2126
|
-
|
|
2174
|
+
function Ve(n, e) {
|
|
2175
|
+
hr(Fn, n, e);
|
|
2127
2176
|
}
|
|
2128
|
-
function
|
|
2129
|
-
|
|
2177
|
+
function Wn(n, e) {
|
|
2178
|
+
hr(Un, n, e);
|
|
2130
2179
|
}
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
function
|
|
2135
|
-
return n.replace(/-(.)/g,
|
|
2136
|
-
return t.toUpperCase();
|
|
2137
|
-
});
|
|
2180
|
+
Ve.preMessage = qn;
|
|
2181
|
+
Ve.resetWarned = Bn;
|
|
2182
|
+
Ve.noteOnce = Wn;
|
|
2183
|
+
function Zn(n) {
|
|
2184
|
+
return n.replace(/-(.)/g, (e, t) => t.toUpperCase());
|
|
2138
2185
|
}
|
|
2139
|
-
function
|
|
2140
|
-
|
|
2186
|
+
function Gn(n, e) {
|
|
2187
|
+
Ve(n, `[@ant-design/icons] ${e}`);
|
|
2141
2188
|
}
|
|
2142
|
-
function
|
|
2143
|
-
return
|
|
2189
|
+
function Gt(n) {
|
|
2190
|
+
return typeof n == "object" && typeof n.name == "string" && typeof n.theme == "string" && (typeof n.icon == "object" || typeof n.icon == "function");
|
|
2144
2191
|
}
|
|
2145
|
-
function
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
var r = n[t];
|
|
2192
|
+
function Jt(n = {}) {
|
|
2193
|
+
return Object.keys(n).reduce((e, t) => {
|
|
2194
|
+
const r = n[t];
|
|
2149
2195
|
switch (t) {
|
|
2150
2196
|
case "class":
|
|
2151
2197
|
e.className = r, delete e.class;
|
|
2152
2198
|
break;
|
|
2153
2199
|
default:
|
|
2154
|
-
delete e[t], e[
|
|
2200
|
+
delete e[t], e[Zn(t)] = r;
|
|
2155
2201
|
}
|
|
2156
2202
|
return e;
|
|
2157
2203
|
}, {});
|
|
2158
2204
|
}
|
|
2159
|
-
function
|
|
2160
|
-
return t ? /* @__PURE__ */
|
|
2161
|
-
key: e
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
})) : /* @__PURE__ */
|
|
2165
|
-
key: e
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
}));
|
|
2205
|
+
function ft(n, e, t) {
|
|
2206
|
+
return t ? /* @__PURE__ */ Ye.createElement(n.tag, {
|
|
2207
|
+
key: e,
|
|
2208
|
+
...Jt(n.attrs),
|
|
2209
|
+
...t
|
|
2210
|
+
}, (n.children || []).map((r, i) => ft(r, `${e}-${n.tag}-${i}`))) : /* @__PURE__ */ Ye.createElement(n.tag, {
|
|
2211
|
+
key: e,
|
|
2212
|
+
...Jt(n.attrs)
|
|
2213
|
+
}, (n.children || []).map((r, i) => ft(r, `${e}-${n.tag}-${i}`)));
|
|
2169
2214
|
}
|
|
2170
|
-
function
|
|
2171
|
-
return
|
|
2215
|
+
function gr(n) {
|
|
2216
|
+
return Pn(n)[0];
|
|
2172
2217
|
}
|
|
2173
|
-
function
|
|
2218
|
+
function pr(n) {
|
|
2174
2219
|
return n ? Array.isArray(n) ? n : [n] : [];
|
|
2175
2220
|
}
|
|
2176
|
-
|
|
2221
|
+
const Jn = `
|
|
2177
2222
|
.anticon {
|
|
2178
2223
|
display: inline-flex;
|
|
2179
2224
|
align-items: center;
|
|
@@ -2194,6 +2239,7 @@ var sa = `
|
|
|
2194
2239
|
|
|
2195
2240
|
.anticon svg {
|
|
2196
2241
|
display: inline-block;
|
|
2242
|
+
vertical-align: inherit;
|
|
2197
2243
|
}
|
|
2198
2244
|
|
|
2199
2245
|
.anticon::before {
|
|
@@ -2228,128 +2274,199 @@ var sa = `
|
|
|
2228
2274
|
transform: rotate(360deg);
|
|
2229
2275
|
}
|
|
2230
2276
|
}
|
|
2231
|
-
`,
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2277
|
+
`, Kn = (n) => {
|
|
2278
|
+
const {
|
|
2279
|
+
csp: e,
|
|
2280
|
+
prefixCls: t,
|
|
2281
|
+
layer: r
|
|
2282
|
+
} = er(ir);
|
|
2283
|
+
let i = Jn;
|
|
2284
|
+
t && (i = i.replace(/anticon/g, t)), r && (i = `@layer ${r} {
|
|
2285
|
+
${i}
|
|
2286
|
+
}`), ae(() => {
|
|
2287
|
+
const a = n.current, o = Vn(a);
|
|
2288
|
+
Ln(i, "@ant-design-icons", {
|
|
2289
|
+
prepend: !r,
|
|
2290
|
+
csp: e,
|
|
2291
|
+
attachTo: o
|
|
2241
2292
|
});
|
|
2242
2293
|
}, []);
|
|
2243
|
-
},
|
|
2294
|
+
}, Oe = {
|
|
2244
2295
|
primaryColor: "#333",
|
|
2245
2296
|
secondaryColor: "#E6E6E6",
|
|
2246
2297
|
calculated: !1
|
|
2247
2298
|
};
|
|
2248
|
-
function
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2299
|
+
function Xn({
|
|
2300
|
+
primaryColor: n,
|
|
2301
|
+
secondaryColor: e
|
|
2302
|
+
}) {
|
|
2303
|
+
Oe.primaryColor = n, Oe.secondaryColor = e || gr(n), Oe.calculated = !!e;
|
|
2304
|
+
}
|
|
2305
|
+
function Qn() {
|
|
2306
|
+
return {
|
|
2307
|
+
...Oe
|
|
2308
|
+
};
|
|
2309
|
+
}
|
|
2310
|
+
const qe = (n) => {
|
|
2311
|
+
const {
|
|
2312
|
+
icon: e,
|
|
2313
|
+
className: t,
|
|
2314
|
+
onClick: r,
|
|
2315
|
+
style: i,
|
|
2316
|
+
primaryColor: a,
|
|
2317
|
+
secondaryColor: o,
|
|
2318
|
+
...l
|
|
2319
|
+
} = n, d = F.useRef();
|
|
2320
|
+
let c = Oe;
|
|
2321
|
+
if (a && (c = {
|
|
2322
|
+
primaryColor: a,
|
|
2323
|
+
secondaryColor: o || gr(a)
|
|
2324
|
+
}), Kn(d), Gn(Gt(e), `icon should be icon definiton, but got ${e}`), !Gt(e))
|
|
2261
2325
|
return null;
|
|
2262
|
-
|
|
2263
|
-
return
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2326
|
+
let f = e;
|
|
2327
|
+
return f && typeof f.icon == "function" && (f = {
|
|
2328
|
+
...f,
|
|
2329
|
+
icon: f.icon(c.primaryColor, c.secondaryColor)
|
|
2330
|
+
}), ft(f.icon, `svg-${f.name}`, {
|
|
2331
|
+
className: t,
|
|
2332
|
+
onClick: r,
|
|
2333
|
+
style: i,
|
|
2334
|
+
"data-icon": f.name,
|
|
2270
2335
|
width: "1em",
|
|
2271
2336
|
height: "1em",
|
|
2272
2337
|
fill: "currentColor",
|
|
2273
|
-
"aria-hidden": "true"
|
|
2274
|
-
|
|
2275
|
-
ref:
|
|
2276
|
-
})
|
|
2338
|
+
"aria-hidden": "true",
|
|
2339
|
+
...l,
|
|
2340
|
+
ref: d
|
|
2341
|
+
});
|
|
2277
2342
|
};
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
const
|
|
2282
|
-
function
|
|
2283
|
-
|
|
2284
|
-
return
|
|
2285
|
-
primaryColor:
|
|
2286
|
-
secondaryColor:
|
|
2343
|
+
qe.displayName = "IconReact";
|
|
2344
|
+
qe.getTwoToneColors = Qn;
|
|
2345
|
+
qe.setTwoToneColors = Xn;
|
|
2346
|
+
const wt = qe;
|
|
2347
|
+
function mr(n) {
|
|
2348
|
+
const [e, t] = pr(n);
|
|
2349
|
+
return wt.setTwoToneColors({
|
|
2350
|
+
primaryColor: e,
|
|
2351
|
+
secondaryColor: t
|
|
2287
2352
|
});
|
|
2288
2353
|
}
|
|
2289
|
-
function
|
|
2290
|
-
|
|
2354
|
+
function es() {
|
|
2355
|
+
const n = wt.getTwoToneColors();
|
|
2291
2356
|
return n.calculated ? [n.primaryColor, n.secondaryColor] : n.primaryColor;
|
|
2292
2357
|
}
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
var
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2358
|
+
function ht() {
|
|
2359
|
+
return ht = Object.assign ? Object.assign.bind() : function(n) {
|
|
2360
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
2361
|
+
var t = arguments[e];
|
|
2362
|
+
for (var r in t)
|
|
2363
|
+
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
2364
|
+
}
|
|
2365
|
+
return n;
|
|
2366
|
+
}, ht.apply(this, arguments);
|
|
2367
|
+
}
|
|
2368
|
+
mr(lt.primary);
|
|
2369
|
+
const Fe = /* @__PURE__ */ F.forwardRef((n, e) => {
|
|
2370
|
+
const {
|
|
2371
|
+
// affect outter <i>...</i>
|
|
2372
|
+
className: t,
|
|
2373
|
+
// affect inner <svg>...</svg>
|
|
2374
|
+
icon: r,
|
|
2375
|
+
spin: i,
|
|
2376
|
+
rotate: a,
|
|
2377
|
+
tabIndex: o,
|
|
2378
|
+
onClick: l,
|
|
2379
|
+
// other
|
|
2380
|
+
twoToneColor: d,
|
|
2381
|
+
...c
|
|
2382
|
+
} = n, {
|
|
2383
|
+
prefixCls: f = "anticon",
|
|
2384
|
+
rootClassName: g
|
|
2385
|
+
} = F.useContext(ir), v = jn(g, f, {
|
|
2386
|
+
[`${f}-${r.name}`]: !!r.name,
|
|
2387
|
+
[`${f}-spin`]: !!i || r.name === "loading"
|
|
2388
|
+
}, t);
|
|
2389
|
+
let j = o;
|
|
2390
|
+
j === void 0 && l && (j = -1);
|
|
2391
|
+
const N = a ? {
|
|
2392
|
+
msTransform: `rotate(${a}deg)`,
|
|
2393
|
+
transform: `rotate(${a}deg)`
|
|
2394
|
+
} : void 0, [T, H] = pr(d);
|
|
2395
|
+
return /* @__PURE__ */ F.createElement("span", ht({
|
|
2303
2396
|
role: "img",
|
|
2304
2397
|
"aria-label": r.name
|
|
2305
2398
|
}, c, {
|
|
2306
2399
|
ref: e,
|
|
2307
|
-
tabIndex:
|
|
2400
|
+
tabIndex: j,
|
|
2308
2401
|
onClick: l,
|
|
2309
|
-
className:
|
|
2310
|
-
}), /* @__PURE__ */
|
|
2402
|
+
className: v
|
|
2403
|
+
}), /* @__PURE__ */ F.createElement(wt, {
|
|
2311
2404
|
icon: r,
|
|
2312
|
-
primaryColor:
|
|
2313
|
-
secondaryColor:
|
|
2314
|
-
style:
|
|
2405
|
+
primaryColor: T,
|
|
2406
|
+
secondaryColor: H,
|
|
2407
|
+
style: N
|
|
2315
2408
|
}));
|
|
2316
2409
|
});
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
const
|
|
2321
|
-
var
|
|
2322
|
-
const
|
|
2323
|
-
|
|
2324
|
-
return
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
const
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
var
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2410
|
+
Fe.displayName = "AntdIcon";
|
|
2411
|
+
Fe.getTwoToneColor = es;
|
|
2412
|
+
Fe.setTwoToneColor = mr;
|
|
2413
|
+
const xt = Fe;
|
|
2414
|
+
var ts = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" } }] }, name: "caret-down", theme: "outlined" };
|
|
2415
|
+
const rs = ts;
|
|
2416
|
+
function gt() {
|
|
2417
|
+
return gt = Object.assign ? Object.assign.bind() : function(n) {
|
|
2418
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
2419
|
+
var t = arguments[e];
|
|
2420
|
+
for (var r in t)
|
|
2421
|
+
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
2422
|
+
}
|
|
2423
|
+
return n;
|
|
2424
|
+
}, gt.apply(this, arguments);
|
|
2425
|
+
}
|
|
2426
|
+
const ns = (n, e) => /* @__PURE__ */ F.createElement(xt, gt({}, n, {
|
|
2427
|
+
ref: e,
|
|
2428
|
+
icon: rs
|
|
2429
|
+
})), br = /* @__PURE__ */ F.forwardRef(ns);
|
|
2430
|
+
process.env.NODE_ENV !== "production" && (br.displayName = "CaretDownOutlined");
|
|
2431
|
+
const ss = br;
|
|
2432
|
+
var as = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" } }] }, name: "caret-up", theme: "outlined" };
|
|
2433
|
+
const is = as;
|
|
2434
|
+
function pt() {
|
|
2435
|
+
return pt = Object.assign ? Object.assign.bind() : function(n) {
|
|
2436
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
2437
|
+
var t = arguments[e];
|
|
2438
|
+
for (var r in t)
|
|
2439
|
+
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
2440
|
+
}
|
|
2441
|
+
return n;
|
|
2442
|
+
}, pt.apply(this, arguments);
|
|
2443
|
+
}
|
|
2444
|
+
const os = (n, e) => /* @__PURE__ */ F.createElement(xt, pt({}, n, {
|
|
2445
|
+
ref: e,
|
|
2446
|
+
icon: is
|
|
2447
|
+
})), vr = /* @__PURE__ */ F.forwardRef(os);
|
|
2448
|
+
process.env.NODE_ENV !== "production" && (vr.displayName = "CaretUpOutlined");
|
|
2449
|
+
const cs = vr;
|
|
2450
|
+
var ls = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, name: "upload", theme: "outlined" };
|
|
2451
|
+
const us = ls;
|
|
2452
|
+
function mt() {
|
|
2453
|
+
return mt = Object.assign ? Object.assign.bind() : function(n) {
|
|
2454
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
2455
|
+
var t = arguments[e];
|
|
2456
|
+
for (var r in t)
|
|
2457
|
+
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
2458
|
+
}
|
|
2459
|
+
return n;
|
|
2460
|
+
}, mt.apply(this, arguments);
|
|
2461
|
+
}
|
|
2462
|
+
const ds = (n, e) => /* @__PURE__ */ F.createElement(xt, mt({}, n, {
|
|
2463
|
+
ref: e,
|
|
2464
|
+
icon: us
|
|
2465
|
+
})), yr = /* @__PURE__ */ F.forwardRef(ds);
|
|
2466
|
+
process.env.NODE_ENV !== "production" && (yr.displayName = "UploadOutlined");
|
|
2467
|
+
const fs = yr;
|
|
2468
|
+
var W = /* @__PURE__ */ ((n) => (n.Input = "input", n.InputNumber = "inputNumber", n.Text = "text", n.Password = "password", n.Radio = "radio", n.Select = "select", n.Checkbox = "checkbox", n.DatePicker = "datePicker", n.RangePicker = "rangePicker", n.Upload = "upload", n.Mentions = "mentions", n.Cascader = "cascader", n.TreeSelect = "treeSelect", n))(W || {});
|
|
2469
|
+
const { RangePicker: hs } = nr, C = class C {
|
|
2353
2470
|
static getDefaultArrayPlaceholder(e) {
|
|
2354
2471
|
let t;
|
|
2355
2472
|
switch (e.type) {
|
|
@@ -2362,21 +2479,21 @@ const { RangePicker: Ra } = sr, R = class R {
|
|
|
2362
2479
|
static getDefaultPlaceholder(e) {
|
|
2363
2480
|
let t;
|
|
2364
2481
|
switch (e.type) {
|
|
2365
|
-
case
|
|
2366
|
-
case
|
|
2367
|
-
case
|
|
2368
|
-
case
|
|
2369
|
-
case
|
|
2482
|
+
case W.Input:
|
|
2483
|
+
case W.Password:
|
|
2484
|
+
case W.InputNumber:
|
|
2485
|
+
case W.Text:
|
|
2486
|
+
case W.Mentions:
|
|
2370
2487
|
t = `请输入${e.label}`;
|
|
2371
2488
|
break;
|
|
2372
|
-
case
|
|
2373
|
-
case
|
|
2374
|
-
case
|
|
2375
|
-
case
|
|
2376
|
-
case
|
|
2377
|
-
case
|
|
2378
|
-
case
|
|
2379
|
-
case
|
|
2489
|
+
case W.Select:
|
|
2490
|
+
case W.Checkbox:
|
|
2491
|
+
case W.Radio:
|
|
2492
|
+
case W.DatePicker:
|
|
2493
|
+
case W.RangePicker:
|
|
2494
|
+
case W.Cascader:
|
|
2495
|
+
case W.Upload:
|
|
2496
|
+
case W.TreeSelect:
|
|
2380
2497
|
t = `请选择${e.label}`;
|
|
2381
2498
|
break;
|
|
2382
2499
|
}
|
|
@@ -2386,167 +2503,167 @@ const { RangePicker: Ra } = sr, R = class R {
|
|
|
2386
2503
|
// return <Slider {...item.props} />;
|
|
2387
2504
|
// };
|
|
2388
2505
|
};
|
|
2389
|
-
m(
|
|
2390
|
-
|
|
2506
|
+
m(C, "labelCol", { span: 7 }), m(C, "wrapperCol", { span: 17 }), m(C, "defaultRowGutter", 24), m(C, "input", (e) => /* @__PURE__ */ p.jsx(
|
|
2507
|
+
et,
|
|
2391
2508
|
{
|
|
2392
2509
|
disabled: e.disabled,
|
|
2393
2510
|
maxLength: e.maxLength,
|
|
2394
2511
|
...e.props,
|
|
2395
|
-
placeholder: e.placeholder ||
|
|
2512
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2396
2513
|
}
|
|
2397
|
-
)), m(
|
|
2398
|
-
|
|
2514
|
+
)), m(C, "password", (e) => /* @__PURE__ */ p.jsx(
|
|
2515
|
+
et.Password,
|
|
2399
2516
|
{
|
|
2400
2517
|
disabled: e.disabled,
|
|
2401
2518
|
...e.props,
|
|
2402
|
-
placeholder: e.placeholder ||
|
|
2519
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2403
2520
|
}
|
|
2404
|
-
)), m(
|
|
2405
|
-
|
|
2521
|
+
)), m(C, "text", (e) => /* @__PURE__ */ p.jsx(
|
|
2522
|
+
et.TextArea,
|
|
2406
2523
|
{
|
|
2407
2524
|
disabled: e.disabled,
|
|
2408
2525
|
maxLength: e.maxLength,
|
|
2409
2526
|
...e.props,
|
|
2410
|
-
placeholder: e.placeholder ||
|
|
2527
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2411
2528
|
}
|
|
2412
|
-
)), m(
|
|
2413
|
-
|
|
2529
|
+
)), m(C, "inputNumber", (e) => /* @__PURE__ */ p.jsx(
|
|
2530
|
+
Qr,
|
|
2414
2531
|
{
|
|
2415
2532
|
disabled: e.disabled,
|
|
2416
2533
|
maxLength: e.maxLength,
|
|
2417
2534
|
...e.props,
|
|
2418
|
-
placeholder: e.placeholder ||
|
|
2535
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2419
2536
|
}
|
|
2420
|
-
)), m(
|
|
2421
|
-
|
|
2537
|
+
)), m(C, "datePicker", (e) => /* @__PURE__ */ p.jsx(
|
|
2538
|
+
nr,
|
|
2422
2539
|
{
|
|
2423
2540
|
disabled: e.disabled,
|
|
2424
2541
|
...e.props,
|
|
2425
|
-
placeholder: e.placeholder ||
|
|
2542
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2426
2543
|
}
|
|
2427
|
-
)), m(
|
|
2428
|
-
|
|
2544
|
+
)), m(C, "rangePicker", (e) => /* @__PURE__ */ p.jsx(
|
|
2545
|
+
hs,
|
|
2429
2546
|
{
|
|
2430
2547
|
disabled: e.disabled,
|
|
2431
2548
|
...e.props,
|
|
2432
|
-
placeholder: e.placeholder ||
|
|
2549
|
+
placeholder: e.placeholder || C.getDefaultArrayPlaceholder(e)
|
|
2433
2550
|
}
|
|
2434
|
-
)), m(
|
|
2435
|
-
|
|
2551
|
+
)), m(C, "select", (e) => /* @__PURE__ */ p.jsx(
|
|
2552
|
+
en,
|
|
2436
2553
|
{
|
|
2437
2554
|
...e.props,
|
|
2438
2555
|
disabled: e.disabled,
|
|
2439
|
-
placeholder: e.placeholder ||
|
|
2556
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2440
2557
|
}
|
|
2441
|
-
)), m(
|
|
2442
|
-
/* @__PURE__ */ p.jsx(
|
|
2558
|
+
)), m(C, "radio", (e) => /* @__PURE__ */ p.jsx(tn.Group, { disabled: e.disabled, ...e.props })), m(C, "checkbox", (e) => /* @__PURE__ */ p.jsx(rn.Group, { disabled: e.disabled, ...e.props })), m(C, "upload", (e) => /* @__PURE__ */ p.jsx(nn, { ...e.props, children: e.children || /* @__PURE__ */ p.jsxs(ke, { children: [
|
|
2559
|
+
/* @__PURE__ */ p.jsx(fs, {}),
|
|
2443
2560
|
" 点击上传"
|
|
2444
|
-
] }) })), m(
|
|
2445
|
-
|
|
2561
|
+
] }) })), m(C, "mentions", (e) => /* @__PURE__ */ p.jsx(
|
|
2562
|
+
sn,
|
|
2446
2563
|
{
|
|
2447
2564
|
...e.props,
|
|
2448
|
-
placeholder: e.placeholder ||
|
|
2565
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2449
2566
|
}
|
|
2450
|
-
)), m(
|
|
2451
|
-
|
|
2567
|
+
)), m(C, "cascader", (e) => /* @__PURE__ */ p.jsx(
|
|
2568
|
+
an,
|
|
2452
2569
|
{
|
|
2453
2570
|
...e.props,
|
|
2454
|
-
placeholder: e.placeholder ||
|
|
2571
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2455
2572
|
}
|
|
2456
|
-
)), m(
|
|
2457
|
-
|
|
2573
|
+
)), m(C, "treeSelect", (e) => /* @__PURE__ */ p.jsx(
|
|
2574
|
+
on,
|
|
2458
2575
|
{
|
|
2459
2576
|
...e.props,
|
|
2460
|
-
placeholder: e.placeholder ||
|
|
2577
|
+
placeholder: e.placeholder || C.getDefaultPlaceholder(e)
|
|
2461
2578
|
}
|
|
2462
2579
|
));
|
|
2463
|
-
let
|
|
2464
|
-
const
|
|
2465
|
-
function
|
|
2466
|
-
const { formProps: e, formItems: t = [], column: r = 1, form:
|
|
2580
|
+
let me = C;
|
|
2581
|
+
const rt = (n = "") => He("m-form", n);
|
|
2582
|
+
function wr(n) {
|
|
2583
|
+
const { formProps: e, formItems: t = [], column: r = 1, form: i, itemLayout: a, formRowProps: o } = n, l = (c, f) => {
|
|
2467
2584
|
if (c.render)
|
|
2468
|
-
return c.render(
|
|
2469
|
-
const
|
|
2470
|
-
return c && c.type &&
|
|
2471
|
-
},
|
|
2472
|
-
const { show:
|
|
2473
|
-
if (!
|
|
2585
|
+
return c.render(f);
|
|
2586
|
+
const g = me[c.type];
|
|
2587
|
+
return c && c.type && g ? g(c) : /* @__PURE__ */ p.jsx("div", { className: "error-message", children: "Invalid form item configuration" });
|
|
2588
|
+
}, d = (c) => {
|
|
2589
|
+
const { show: f = !0 } = c;
|
|
2590
|
+
if (!f)
|
|
2474
2591
|
return null;
|
|
2475
|
-
const
|
|
2476
|
-
c.required &&
|
|
2477
|
-
const
|
|
2478
|
-
labelCol:
|
|
2479
|
-
wrapperCol:
|
|
2480
|
-
...
|
|
2592
|
+
const g = [...c.rules || []];
|
|
2593
|
+
c.required && g.push({ required: !0, message: c.required });
|
|
2594
|
+
const v = {
|
|
2595
|
+
labelCol: me.labelCol,
|
|
2596
|
+
wrapperCol: me.wrapperCol,
|
|
2597
|
+
...a,
|
|
2481
2598
|
...c.itemLayout
|
|
2482
2599
|
};
|
|
2483
|
-
return /* @__PURE__ */ p.jsx(
|
|
2484
|
-
|
|
2600
|
+
return /* @__PURE__ */ p.jsx(ln, { span: c.span || 24 / r, children: /* @__PURE__ */ p.jsx("div", { className: rt("item-wrapper"), children: /* @__PURE__ */ p.jsx(
|
|
2601
|
+
st.Item,
|
|
2485
2602
|
{
|
|
2486
2603
|
label: c.label,
|
|
2487
2604
|
name: c.id,
|
|
2488
|
-
rules:
|
|
2605
|
+
rules: g,
|
|
2489
2606
|
initialValue: c.initialValue,
|
|
2490
|
-
...
|
|
2607
|
+
...v,
|
|
2491
2608
|
...c.formItemProps,
|
|
2492
|
-
children: l(c,
|
|
2609
|
+
children: l(c, i)
|
|
2493
2610
|
}
|
|
2494
2611
|
) }) }, `col-${c.id}`);
|
|
2495
2612
|
};
|
|
2496
|
-
return /* @__PURE__ */ p.jsx(
|
|
2497
|
-
|
|
2613
|
+
return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(st, { form: i, ...e, className: `${rt()} ${e == null ? void 0 : e.className}`, children: /* @__PURE__ */ p.jsx(
|
|
2614
|
+
cn,
|
|
2498
2615
|
{
|
|
2499
|
-
gutter:
|
|
2500
|
-
...
|
|
2501
|
-
className: `${
|
|
2502
|
-
children: t.map((c) =>
|
|
2616
|
+
gutter: me.defaultRowGutter,
|
|
2617
|
+
...o,
|
|
2618
|
+
className: `${rt("grid")} ${o == null ? void 0 : o.className}`,
|
|
2619
|
+
children: t.map((c) => d(c))
|
|
2503
2620
|
}
|
|
2504
2621
|
) }) });
|
|
2505
2622
|
}
|
|
2506
|
-
|
|
2507
|
-
let
|
|
2508
|
-
const
|
|
2509
|
-
let
|
|
2623
|
+
wr.displayName = "MForm";
|
|
2624
|
+
let nt = "default";
|
|
2625
|
+
const ze = [];
|
|
2626
|
+
let Kt = (n) => {
|
|
2510
2627
|
switch (n) {
|
|
2511
2628
|
case "light":
|
|
2512
2629
|
return {
|
|
2513
|
-
algorithm: [
|
|
2630
|
+
algorithm: [Ie.defaultAlgorithm]
|
|
2514
2631
|
};
|
|
2515
2632
|
case "dark":
|
|
2516
2633
|
return {
|
|
2517
|
-
algorithm: [
|
|
2634
|
+
algorithm: [Ie.darkAlgorithm]
|
|
2518
2635
|
};
|
|
2519
2636
|
default:
|
|
2520
2637
|
return {
|
|
2521
|
-
algorithm: [
|
|
2638
|
+
algorithm: [Ie.defaultAlgorithm]
|
|
2522
2639
|
};
|
|
2523
2640
|
}
|
|
2524
2641
|
};
|
|
2525
|
-
const be = class be extends
|
|
2642
|
+
const be = class be extends Jr {
|
|
2526
2643
|
constructor() {
|
|
2527
2644
|
super(...arguments);
|
|
2528
2645
|
m(this, "handleCancel", (t) => {
|
|
2529
|
-
var r,
|
|
2530
|
-
(
|
|
2646
|
+
var r, i, a, o;
|
|
2647
|
+
(i = (r = this.props).onCancel) == null || i.call(r, t), (o = (a = this.props).onClosed) == null || o.call(a, { cancel: !0 });
|
|
2531
2648
|
});
|
|
2532
2649
|
m(this, "handleOk", (t) => {
|
|
2533
|
-
var r,
|
|
2534
|
-
(
|
|
2650
|
+
var r, i, a, o;
|
|
2651
|
+
(i = (r = this.props).onOk) == null || i.call(r, t), (o = (a = this.props).onClosed) == null || o.call(a, { ok: !0 });
|
|
2535
2652
|
});
|
|
2536
2653
|
}
|
|
2537
2654
|
getTheme() {
|
|
2538
|
-
const t = this.props.mode ||
|
|
2539
|
-
return
|
|
2655
|
+
const t = this.props.mode || nt;
|
|
2656
|
+
return Kt(t);
|
|
2540
2657
|
}
|
|
2541
2658
|
render() {
|
|
2542
2659
|
return /* @__PURE__ */ p.jsx(
|
|
2543
|
-
|
|
2660
|
+
tr,
|
|
2544
2661
|
{
|
|
2545
2662
|
theme: this.getTheme(),
|
|
2546
2663
|
componentSize: "middle",
|
|
2547
2664
|
componentDisabled: !1,
|
|
2548
2665
|
children: /* @__PURE__ */ p.jsx(
|
|
2549
|
-
|
|
2666
|
+
un,
|
|
2550
2667
|
{
|
|
2551
2668
|
maskClosable: !1,
|
|
2552
2669
|
open: this.props.open,
|
|
@@ -2564,97 +2681,97 @@ const be = class be extends en {
|
|
|
2564
2681
|
};
|
|
2565
2682
|
// 静态方法设置全局模式并更新所有弹窗
|
|
2566
2683
|
m(be, "setMode", (t) => {
|
|
2567
|
-
|
|
2684
|
+
nt = t, ze.forEach((r) => {
|
|
2568
2685
|
r.update({ mode: t });
|
|
2569
2686
|
});
|
|
2570
2687
|
}), // 静态方法设置全局ThemeConfig
|
|
2571
2688
|
m(be, "setThemeConfig", (t) => {
|
|
2572
|
-
|
|
2689
|
+
Kt = t;
|
|
2573
2690
|
}), m(be, "open", (t) => {
|
|
2574
|
-
const r =
|
|
2575
|
-
mode:
|
|
2691
|
+
const r = wn(be, {
|
|
2692
|
+
mode: nt,
|
|
2576
2693
|
// 默认使用全局主题
|
|
2577
2694
|
...t
|
|
2578
2695
|
});
|
|
2579
|
-
|
|
2580
|
-
const
|
|
2581
|
-
return r.destroy = (...
|
|
2582
|
-
const
|
|
2583
|
-
return
|
|
2696
|
+
ze.push(r);
|
|
2697
|
+
const i = r.destroy;
|
|
2698
|
+
return r.destroy = (...a) => {
|
|
2699
|
+
const o = ze.indexOf(r);
|
|
2700
|
+
return o !== -1 && ze.splice(o, 1), i(...a);
|
|
2584
2701
|
}, r;
|
|
2585
2702
|
});
|
|
2586
|
-
let
|
|
2587
|
-
const
|
|
2703
|
+
let Xt = be;
|
|
2704
|
+
const gs = 13, ne = (n = "") => He("m-search", n), ks = (n) => {
|
|
2588
2705
|
const {
|
|
2589
2706
|
className: e,
|
|
2590
2707
|
searchItems: t = [],
|
|
2591
2708
|
onSearch: r,
|
|
2592
|
-
defaultShowAll:
|
|
2593
|
-
customButtons:
|
|
2594
|
-
form:
|
|
2595
|
-
} = n, [l,
|
|
2596
|
-
const { keyCode:
|
|
2597
|
-
|
|
2709
|
+
defaultShowAll: i = !1,
|
|
2710
|
+
customButtons: a = [],
|
|
2711
|
+
form: o
|
|
2712
|
+
} = n, [l, d] = L(i), [c] = st.useForm(), f = G(null), g = o ?? c, v = (y) => {
|
|
2713
|
+
const { keyCode: k } = y;
|
|
2714
|
+
k === gs && N();
|
|
2598
2715
|
};
|
|
2599
|
-
|
|
2600
|
-
const y =
|
|
2601
|
-
return y == null || y.addEventListener("keydown",
|
|
2602
|
-
y == null || y.removeEventListener("keydown",
|
|
2716
|
+
ae(() => {
|
|
2717
|
+
const y = f.current;
|
|
2718
|
+
return y == null || y.addEventListener("keydown", v), () => {
|
|
2719
|
+
y == null || y.removeEventListener("keydown", v);
|
|
2603
2720
|
};
|
|
2604
2721
|
}, []);
|
|
2605
|
-
const
|
|
2606
|
-
|
|
2607
|
-
},
|
|
2608
|
-
|
|
2609
|
-
|
|
2722
|
+
const j = () => {
|
|
2723
|
+
g == null || g.resetFields(), N(!0);
|
|
2724
|
+
}, N = (y = !1) => {
|
|
2725
|
+
g == null || g.validateFields().then((k) => {
|
|
2726
|
+
xn(k), r == null || r(k, y);
|
|
2610
2727
|
});
|
|
2611
2728
|
}, T = () => {
|
|
2612
2729
|
const y = t.length > 2;
|
|
2613
|
-
return /* @__PURE__ */ p.jsxs("div", { className:
|
|
2614
|
-
(
|
|
2615
|
-
/* @__PURE__ */ p.jsx(
|
|
2616
|
-
/* @__PURE__ */ p.jsx(
|
|
2730
|
+
return /* @__PURE__ */ p.jsxs("div", { className: ne("btn-wrapper"), children: [
|
|
2731
|
+
(a == null ? void 0 : a.length) > 0 ? /* @__PURE__ */ p.jsx(p.Fragment, { children: a.map((k, V) => /* @__PURE__ */ p.jsx(ke, { className: ne("btn"), ...k, children: k.children }, `custom-btn-${V}`)) }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
2732
|
+
/* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-reset"), onClick: j, children: "重置" }),
|
|
2733
|
+
/* @__PURE__ */ p.jsx(ke, { className: ne("btn btn-search"), onClick: () => N(), type: "primary", children: "搜索" })
|
|
2617
2734
|
] }),
|
|
2618
|
-
y && /* @__PURE__ */ p.jsxs("div", { className:
|
|
2735
|
+
y && /* @__PURE__ */ p.jsxs("div", { className: ne("btn btn-collapse"), onClick: () => d(!l), children: [
|
|
2619
2736
|
/* @__PURE__ */ p.jsx("span", { children: l ? "收起" : "展开" }),
|
|
2620
|
-
l ? /* @__PURE__ */ p.jsx(
|
|
2737
|
+
l ? /* @__PURE__ */ p.jsx(cs, {}) : /* @__PURE__ */ p.jsx(ss, {})
|
|
2621
2738
|
] })
|
|
2622
2739
|
] });
|
|
2623
|
-
}, H = t.map((y,
|
|
2624
|
-
var
|
|
2625
|
-
const
|
|
2626
|
-
return t.length > 2 &&
|
|
2740
|
+
}, H = t.map((y, k) => {
|
|
2741
|
+
var I;
|
|
2742
|
+
const V = { ...y };
|
|
2743
|
+
return t.length > 2 && k >= 2 && !l && (V.formItemProps = {
|
|
2627
2744
|
...y.formItemProps,
|
|
2628
2745
|
style: {
|
|
2629
|
-
...(
|
|
2746
|
+
...(I = y.formItemProps) == null ? void 0 : I.style,
|
|
2630
2747
|
display: "none"
|
|
2631
2748
|
}
|
|
2632
|
-
}),
|
|
2633
|
-
}),
|
|
2634
|
-
return /* @__PURE__ */ p.jsx(
|
|
2749
|
+
}), V;
|
|
2750
|
+
}), O = t.length > 2;
|
|
2751
|
+
return /* @__PURE__ */ p.jsx(ve, { children: /* @__PURE__ */ p.jsx(
|
|
2635
2752
|
"div",
|
|
2636
2753
|
{
|
|
2637
|
-
className: `${
|
|
2638
|
-
ref:
|
|
2639
|
-
children: /* @__PURE__ */ p.jsxs(
|
|
2640
|
-
/* @__PURE__ */ p.jsxs("div", { className:
|
|
2641
|
-
/* @__PURE__ */ p.jsx(
|
|
2642
|
-
(!
|
|
2754
|
+
className: `${ne("")} ${l ? "" : ne("collapsed")} ${e || ""}`,
|
|
2755
|
+
ref: f,
|
|
2756
|
+
children: /* @__PURE__ */ p.jsxs(rr, { children: [
|
|
2757
|
+
/* @__PURE__ */ p.jsxs("div", { className: ne("form"), children: [
|
|
2758
|
+
/* @__PURE__ */ p.jsx(wr, { form: g, formItems: H, column: 3 }),
|
|
2759
|
+
(!O || O && !l) && T()
|
|
2643
2760
|
] }),
|
|
2644
|
-
|
|
2761
|
+
O && l && /* @__PURE__ */ p.jsx("div", { className: ne("footer"), children: T() })
|
|
2645
2762
|
] })
|
|
2646
2763
|
}
|
|
2647
2764
|
) });
|
|
2648
2765
|
};
|
|
2649
|
-
function
|
|
2766
|
+
function Os(n) {
|
|
2650
2767
|
var t;
|
|
2651
2768
|
const e = ((t = n.columns) == null ? void 0 : t.map((r) => ({ ...r, dataIndex: r.key }))) ?? [];
|
|
2652
|
-
return /* @__PURE__ */ p.jsxs(
|
|
2653
|
-
/* @__PURE__ */ p.jsx(
|
|
2769
|
+
return /* @__PURE__ */ p.jsxs(ve, { children: [
|
|
2770
|
+
/* @__PURE__ */ p.jsx(dn, { rowKey: (r) => r.id, ...n, columns: e }),
|
|
2654
2771
|
";"
|
|
2655
2772
|
] });
|
|
2656
2773
|
}
|
|
2657
|
-
const
|
|
2774
|
+
const $s = {
|
|
2658
2775
|
YMD_Hms: "YYYY-MM-DD HH:mm:ss",
|
|
2659
2776
|
YMD: "YYYY-MM-DD",
|
|
2660
2777
|
YMD2: "YYYYMMDD",
|
|
@@ -2666,319 +2783,344 @@ const za = {
|
|
|
2666
2783
|
YMD_Hm: "YYYYMMDD HHmm",
|
|
2667
2784
|
YMD_SLASH: "YYYY/MM/DD",
|
|
2668
2785
|
YMD_SLASH_Hms: "YYYY/MM/DD HH:mm:ss"
|
|
2669
|
-
},
|
|
2670
|
-
class
|
|
2786
|
+
}, ps = 10;
|
|
2787
|
+
class $ {
|
|
2671
2788
|
}
|
|
2672
2789
|
/**
|
|
2673
2790
|
* 整数
|
|
2674
2791
|
*/
|
|
2675
|
-
m(
|
|
2792
|
+
m($, "integerRegex", /^-?\d+$/), /**
|
|
2676
2793
|
* 正整数
|
|
2677
2794
|
*/
|
|
2678
|
-
m(
|
|
2795
|
+
m($, "positiveIntegerRegex", /^[1-9]\d*$/), /**
|
|
2679
2796
|
* 负整数
|
|
2680
2797
|
*/
|
|
2681
|
-
m(
|
|
2798
|
+
m($, "negativeIntegerRegex", /^-[1-9]\d*$/), /**
|
|
2682
2799
|
* 浮点数
|
|
2683
2800
|
*/
|
|
2684
|
-
m(
|
|
2801
|
+
m($, "floatRegex", /^-?\d+(\.\d+)?$/), /**
|
|
2685
2802
|
* 字母
|
|
2686
2803
|
*/
|
|
2687
|
-
m(
|
|
2804
|
+
m($, "letter", /^[a-zA-Z]+$/), /**
|
|
2688
2805
|
* 汉字
|
|
2689
2806
|
*/
|
|
2690
|
-
m(
|
|
2807
|
+
m($, "chinese", /^[\u4e00-\u9fa5]+$/), /**
|
|
2691
2808
|
* 数字
|
|
2692
2809
|
*/
|
|
2693
|
-
m(
|
|
2810
|
+
m($, "number", /^[0-9]*$/), /**
|
|
2694
2811
|
* 用户名 字母开头,允许字母数字下划线,长度4-16
|
|
2695
2812
|
*/
|
|
2696
|
-
m(
|
|
2813
|
+
m($, "username", /^[a-zA-Z]\w{3,15}$/), /**
|
|
2697
2814
|
* 强用户名 必须包含大小写字母和数字,6-20位
|
|
2698
2815
|
*/
|
|
2699
|
-
m(
|
|
2816
|
+
m($, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), /**
|
|
2700
2817
|
* 密码 至少8位,包含字母和数字
|
|
2701
2818
|
*/
|
|
2702
|
-
m(
|
|
2819
|
+
m($, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), /**
|
|
2703
2820
|
* 强密码 至少8位,包含大小写字母、数字和特殊字符
|
|
2704
2821
|
*/
|
|
2705
|
-
m(
|
|
2822
|
+
m($, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), /**
|
|
2706
2823
|
* 中国大陆的手机号
|
|
2707
2824
|
*/
|
|
2708
|
-
m(
|
|
2825
|
+
m($, "phone", /^1[3-9]\d{9}$/), /**
|
|
2709
2826
|
* 带区号的手机号
|
|
2710
2827
|
*/
|
|
2711
|
-
m(
|
|
2828
|
+
m($, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), /**
|
|
2712
2829
|
* 邮箱
|
|
2713
2830
|
*/
|
|
2714
|
-
m(
|
|
2831
|
+
m($, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), /**
|
|
2715
2832
|
* 身份证
|
|
2716
2833
|
*/
|
|
2717
|
-
m(
|
|
2834
|
+
m($, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), /**
|
|
2718
2835
|
* 银行卡
|
|
2719
2836
|
*/
|
|
2720
|
-
m(
|
|
2837
|
+
m($, "bankCard", /^[1-9]\d{3,30}$/), /**
|
|
2721
2838
|
* 邮政编码
|
|
2722
2839
|
*/
|
|
2723
|
-
m(
|
|
2840
|
+
m($, "zipCode", /^[1-9]\d{5}$/), /**
|
|
2724
2841
|
* IP
|
|
2725
2842
|
*/
|
|
2726
|
-
m(
|
|
2843
|
+
m($, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), /**
|
|
2727
2844
|
* URL
|
|
2728
2845
|
*/
|
|
2729
|
-
m(
|
|
2846
|
+
m($, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), /**
|
|
2730
2847
|
* 车牌
|
|
2731
2848
|
*/
|
|
2732
|
-
m(
|
|
2849
|
+
m($, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), /**
|
|
2733
2850
|
* 时间 hh:mm:ss
|
|
2734
2851
|
*/
|
|
2735
|
-
m(
|
|
2852
|
+
m($, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), /**
|
|
2736
2853
|
* 日期 YYYY-MM-DD
|
|
2737
2854
|
*/
|
|
2738
|
-
m(
|
|
2739
|
-
function
|
|
2740
|
-
const [t, r] =
|
|
2741
|
-
var
|
|
2742
|
-
(
|
|
2743
|
-
},
|
|
2744
|
-
var T, H,
|
|
2745
|
-
const
|
|
2746
|
-
|
|
2747
|
-
const
|
|
2748
|
-
|
|
2855
|
+
m($, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
|
|
2856
|
+
function Ns(n, e) {
|
|
2857
|
+
const [t, r] = L(!1), [i, a] = L(null), [o, l] = L(null), d = G(void 0), c = G(0), f = () => {
|
|
2858
|
+
var v;
|
|
2859
|
+
(v = d.current) == null || v.abort(), r(!1), a(null);
|
|
2860
|
+
}, g = async (...v) => {
|
|
2861
|
+
var T, H, O, y;
|
|
2862
|
+
const j = ++c.current;
|
|
2863
|
+
f();
|
|
2864
|
+
const N = new AbortController();
|
|
2865
|
+
d.current = N;
|
|
2749
2866
|
try {
|
|
2750
|
-
if (r(!0),
|
|
2751
|
-
|
|
2867
|
+
if (r(!0), a(null), e != null && e.onBefore && !await ((T = e == null ? void 0 : e.onBefore) == null ? void 0 : T.call(e, ...v))) {
|
|
2868
|
+
f();
|
|
2752
2869
|
return;
|
|
2753
2870
|
}
|
|
2754
|
-
const
|
|
2755
|
-
return !
|
|
2756
|
-
} catch (
|
|
2757
|
-
throw !
|
|
2871
|
+
const k = v.length >= n.length ? v : [...v, { signal: N.signal }], V = await n(...k);
|
|
2872
|
+
return !N.signal.aborted && j === c.current && (l(V), await ((H = e == null ? void 0 : e.onSuccess) == null ? void 0 : H.call(e, V))), V;
|
|
2873
|
+
} catch (k) {
|
|
2874
|
+
throw !N.signal.aborted && j === c.current && (a(k), await ((O = e == null ? void 0 : e.onError) == null ? void 0 : O.call(e, k))), k;
|
|
2758
2875
|
} finally {
|
|
2759
|
-
!
|
|
2876
|
+
!N.signal.aborted && j === c.current && (r(!1), await ((y = e == null ? void 0 : e.onFinally) == null ? void 0 : y.call(e)));
|
|
2760
2877
|
}
|
|
2761
2878
|
};
|
|
2762
|
-
return
|
|
2763
|
-
}),
|
|
2879
|
+
return ae(() => (e != null && e.autoRunArgs && g(...e.autoRunArgs).catch(() => {
|
|
2880
|
+
}), f), [JSON.stringify(e == null ? void 0 : e.autoRunArgs)]), { run: g, cancel: f, loading: t, error: i, data: o };
|
|
2764
2881
|
}
|
|
2765
|
-
function
|
|
2766
|
-
const r =
|
|
2767
|
-
|
|
2768
|
-
|
|
2882
|
+
function Ds(n, e, t = !1) {
|
|
2883
|
+
const r = G(void 0), i = G(n);
|
|
2884
|
+
ae(() => {
|
|
2885
|
+
i.current = n;
|
|
2769
2886
|
}, [n]);
|
|
2770
|
-
const
|
|
2887
|
+
const a = Z(() => {
|
|
2771
2888
|
r.current && (clearInterval(r.current), r.current = void 0);
|
|
2772
|
-
}, []),
|
|
2773
|
-
|
|
2774
|
-
}, [e,
|
|
2775
|
-
return
|
|
2889
|
+
}, []), o = Z(() => {
|
|
2890
|
+
a(), e != null && (r.current = setInterval(() => i.current(), e));
|
|
2891
|
+
}, [e, a]);
|
|
2892
|
+
return ae(() => (t && i.current(), o(), a), [e, o, a, t]), { start: o, clear: a, isRunning: !!r.current };
|
|
2776
2893
|
}
|
|
2777
|
-
const
|
|
2894
|
+
const Ps = (n, e, t) => {
|
|
2778
2895
|
const {
|
|
2779
2896
|
isReady: r = !0,
|
|
2780
|
-
dataSource:
|
|
2781
|
-
current:
|
|
2782
|
-
pageSize:
|
|
2783
|
-
} = t || {}, [l,
|
|
2784
|
-
|
|
2785
|
-
},
|
|
2786
|
-
|
|
2787
|
-
},
|
|
2897
|
+
dataSource: i = [],
|
|
2898
|
+
current: a = 1,
|
|
2899
|
+
pageSize: o = 10
|
|
2900
|
+
} = t || {}, [l, d] = L(a), [c, f] = L(o), [g, v] = L(i), [j, N] = L(0), [T, H] = L(!1), [O, y] = L(!1), k = G(l), V = G(c), I = (w) => {
|
|
2901
|
+
d(w), k.current = w;
|
|
2902
|
+
}, J = (w) => {
|
|
2903
|
+
f(w), V.current = w;
|
|
2904
|
+
}, K = G(0), ye = async () => {
|
|
2788
2905
|
if (!r)
|
|
2789
2906
|
return;
|
|
2790
|
-
let
|
|
2791
|
-
H(!0),
|
|
2792
|
-
const
|
|
2907
|
+
let w = k.current, M = V.current;
|
|
2908
|
+
H(!0), K.current++;
|
|
2909
|
+
const X = K.current;
|
|
2793
2910
|
try {
|
|
2794
|
-
let
|
|
2795
|
-
|
|
2796
|
-
let { dataSource:
|
|
2797
|
-
limit:
|
|
2798
|
-
offset:
|
|
2799
|
-
current:
|
|
2911
|
+
let U = Math.round((w - 1) * M);
|
|
2912
|
+
U < 0 && (U = 0), M < 1 && (M = 1);
|
|
2913
|
+
let { dataSource: re, total: Q } = await n({
|
|
2914
|
+
limit: M,
|
|
2915
|
+
offset: U,
|
|
2916
|
+
current: w
|
|
2800
2917
|
});
|
|
2801
|
-
if (
|
|
2918
|
+
if (X !== K.current)
|
|
2802
2919
|
return;
|
|
2803
|
-
if (c * (
|
|
2804
|
-
|
|
2805
|
-
const
|
|
2806
|
-
if ({ dataSource:
|
|
2807
|
-
limit:
|
|
2808
|
-
offset:
|
|
2809
|
-
current:
|
|
2810
|
-
}),
|
|
2920
|
+
if (c * (w - 1) >= Q && w !== 1) {
|
|
2921
|
+
w = 1;
|
|
2922
|
+
const ue = Math.ceil(Q / c);
|
|
2923
|
+
if ({ dataSource: re, total: Q } = await n({
|
|
2924
|
+
limit: M,
|
|
2925
|
+
offset: U,
|
|
2926
|
+
current: w
|
|
2927
|
+
}), X !== K.current)
|
|
2811
2928
|
return;
|
|
2812
|
-
|
|
2929
|
+
w = ue;
|
|
2813
2930
|
}
|
|
2814
|
-
|
|
2815
|
-
} catch (
|
|
2816
|
-
if (console.error("
|
|
2931
|
+
v(re), I(w), J(M), N(Q);
|
|
2932
|
+
} catch (U) {
|
|
2933
|
+
if (console.error("usePagination error", U), X !== K.current)
|
|
2817
2934
|
return;
|
|
2818
2935
|
} finally {
|
|
2819
2936
|
y(!0), H(!1);
|
|
2820
2937
|
}
|
|
2821
|
-
},
|
|
2822
|
-
|
|
2823
|
-
},
|
|
2824
|
-
return
|
|
2825
|
-
r &&
|
|
2826
|
-
},
|
|
2938
|
+
}, te = async (w) => {
|
|
2939
|
+
w && (v([]), I(a), J(o)), await ye();
|
|
2940
|
+
}, ie = Z(sr(te, 500), [te]), le = [...e || [], r];
|
|
2941
|
+
return ae(() => {
|
|
2942
|
+
r && ie(!0);
|
|
2943
|
+
}, le), {
|
|
2827
2944
|
tableProps: {
|
|
2828
2945
|
loading: T,
|
|
2829
|
-
dataSource:
|
|
2946
|
+
dataSource: g
|
|
2830
2947
|
},
|
|
2831
2948
|
loading: T,
|
|
2832
|
-
dataSource:
|
|
2949
|
+
dataSource: g,
|
|
2833
2950
|
paginationProps: {
|
|
2834
2951
|
current: l,
|
|
2835
2952
|
pageSize: c,
|
|
2836
|
-
total:
|
|
2837
|
-
|
|
2838
|
-
|
|
2953
|
+
total: j,
|
|
2954
|
+
showTotal(w) {
|
|
2955
|
+
return `共 ${w} 条`;
|
|
2956
|
+
},
|
|
2957
|
+
onChange: async (w, M) => {
|
|
2958
|
+
I(w), J(M), await te();
|
|
2839
2959
|
},
|
|
2840
|
-
onShowSizeChange: async (
|
|
2841
|
-
|
|
2960
|
+
onShowSizeChange: async (w, M) => {
|
|
2961
|
+
J(w), I(M), await te();
|
|
2842
2962
|
}
|
|
2843
2963
|
},
|
|
2844
|
-
isFirstComplete:
|
|
2845
|
-
refresh:
|
|
2846
|
-
debounceRefresh:
|
|
2847
|
-
setDataSource:
|
|
2964
|
+
isFirstComplete: O,
|
|
2965
|
+
refresh: te,
|
|
2966
|
+
debounceRefresh: ie,
|
|
2967
|
+
setDataSource: v
|
|
2848
2968
|
};
|
|
2849
2969
|
};
|
|
2850
|
-
function
|
|
2970
|
+
function Ts() {
|
|
2851
2971
|
const n = window.location.href.split("?")[1] || "", e = new URLSearchParams(n);
|
|
2852
2972
|
return Object.fromEntries(e.entries());
|
|
2853
2973
|
}
|
|
2854
|
-
const
|
|
2855
|
-
const [e, t] =
|
|
2856
|
-
t((
|
|
2857
|
-
const c = typeof l == "function" ? l(
|
|
2858
|
-
return r.current =
|
|
2974
|
+
const Ms = (n) => {
|
|
2975
|
+
const [e, t] = L(n), r = G(e), i = Z((l) => {
|
|
2976
|
+
t((d) => {
|
|
2977
|
+
const c = typeof l == "function" ? l(d) : l, f = { ...d, ...c };
|
|
2978
|
+
return r.current = f, f;
|
|
2859
2979
|
});
|
|
2860
|
-
}, []),
|
|
2980
|
+
}, []), a = Z(() => r.current, []), o = Z(() => {
|
|
2861
2981
|
t(n), r.current = n;
|
|
2862
2982
|
}, [n]);
|
|
2863
|
-
return [e,
|
|
2983
|
+
return [e, i, a, o];
|
|
2864
2984
|
};
|
|
2865
|
-
function
|
|
2866
|
-
const r =
|
|
2867
|
-
|
|
2868
|
-
|
|
2985
|
+
function As(n, e, t = !1) {
|
|
2986
|
+
const r = G(void 0), i = G(n);
|
|
2987
|
+
ae(() => {
|
|
2988
|
+
i.current = n;
|
|
2869
2989
|
}, [n]);
|
|
2870
|
-
const
|
|
2990
|
+
const a = Z(() => {
|
|
2871
2991
|
r.current && (clearTimeout(r.current), r.current = void 0);
|
|
2872
|
-
}, []),
|
|
2873
|
-
|
|
2874
|
-
}, [e,
|
|
2875
|
-
return
|
|
2992
|
+
}, []), o = Z(() => {
|
|
2993
|
+
a(), e != null && (r.current = setTimeout(() => i.current(), e));
|
|
2994
|
+
}, [e, a]);
|
|
2995
|
+
return ae(() => (t && i.current(), o(), a), [e, o, a, t]), { start: o, clear: a, isRunning: !!r.current };
|
|
2876
2996
|
}
|
|
2877
|
-
const
|
|
2997
|
+
const zs = (n, e, t) => {
|
|
2878
2998
|
const {
|
|
2879
2999
|
isReady: r = !0,
|
|
2880
|
-
dataSource:
|
|
2881
|
-
current:
|
|
2882
|
-
pageSize:
|
|
2883
|
-
} = t || {}, [l,
|
|
2884
|
-
|
|
2885
|
-
},
|
|
2886
|
-
|
|
2887
|
-
},
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
const S = J.current;
|
|
2893
|
-
try {
|
|
2894
|
-
let $ = Math.round((D - 1) * V);
|
|
2895
|
-
$ < 0 && ($ = 0), V < 1 && (V = 1);
|
|
2896
|
-
let { dataSource: ee, total: q } = await n({
|
|
2897
|
-
limit: V,
|
|
2898
|
-
offset: $,
|
|
2899
|
-
current: D
|
|
2900
|
-
});
|
|
2901
|
-
if (S !== J.current)
|
|
3000
|
+
dataSource: i = [],
|
|
3001
|
+
current: a = 1,
|
|
3002
|
+
pageSize: o = ps
|
|
3003
|
+
} = t || {}, [l, d] = L(!1), [c, f] = L(a), [g, v] = L(o), [j, N] = L(0), [T, H] = L(!1), [O, y] = L(i), k = G(c), V = G(g), I = G(0), J = Z((E) => {
|
|
3004
|
+
f(E), k.current = E;
|
|
3005
|
+
}, []), K = Z((E) => {
|
|
3006
|
+
v(E), V.current = E;
|
|
3007
|
+
}, []), ye = Z((E) => {
|
|
3008
|
+
y(E);
|
|
3009
|
+
}, []), te = Z(
|
|
3010
|
+
async (E) => {
|
|
3011
|
+
if (!r)
|
|
2902
3012
|
return;
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
3013
|
+
let Y = k.current, w = V.current;
|
|
3014
|
+
H(!0), I.current += 1;
|
|
3015
|
+
const M = I.current;
|
|
3016
|
+
try {
|
|
3017
|
+
let X = Math.max(0, Math.round((Y - 1) * w));
|
|
3018
|
+
w = Math.max(1, w);
|
|
3019
|
+
let U = await n({
|
|
3020
|
+
limit: w,
|
|
3021
|
+
offset: X,
|
|
3022
|
+
current: Y
|
|
3023
|
+
});
|
|
3024
|
+
if (M !== I.current)
|
|
2910
3025
|
return;
|
|
2911
|
-
|
|
3026
|
+
let { dataSource: re, total: Q } = U;
|
|
3027
|
+
if (g * (Y - 1) >= Q && Y !== 1) {
|
|
3028
|
+
const de = Math.max(1, Math.ceil(Q / g));
|
|
3029
|
+
if (X = Math.max(0, Math.round((de - 1) * w)), U = await n({
|
|
3030
|
+
limit: w,
|
|
3031
|
+
offset: X,
|
|
3032
|
+
current: de
|
|
3033
|
+
}), M !== I.current)
|
|
3034
|
+
return;
|
|
3035
|
+
re = U.dataSource, Q = U.total, Y = de;
|
|
3036
|
+
}
|
|
3037
|
+
const ue = E ? re : [...O, ...re];
|
|
3038
|
+
y(ue), J(Y), K(w), N(Q), d(!0);
|
|
3039
|
+
} catch (X) {
|
|
3040
|
+
if (console.error("useVirtualList error", X), M !== I.current)
|
|
3041
|
+
return;
|
|
3042
|
+
} finally {
|
|
3043
|
+
M === I.current && H(!1);
|
|
2912
3044
|
}
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
3045
|
+
},
|
|
3046
|
+
[r, n, O, J, K]
|
|
3047
|
+
), ie = Z(
|
|
3048
|
+
async (E) => {
|
|
3049
|
+
if (E)
|
|
3050
|
+
y([]), J(a), K(o);
|
|
3051
|
+
else {
|
|
3052
|
+
const Y = g * c;
|
|
3053
|
+
if (j && j <= Y)
|
|
3054
|
+
return;
|
|
3055
|
+
J(c + 1);
|
|
3056
|
+
}
|
|
3057
|
+
await te(E);
|
|
3058
|
+
},
|
|
3059
|
+
[
|
|
3060
|
+
c,
|
|
3061
|
+
te,
|
|
3062
|
+
g,
|
|
3063
|
+
a,
|
|
3064
|
+
o,
|
|
3065
|
+
J,
|
|
3066
|
+
K,
|
|
3067
|
+
j
|
|
3068
|
+
]
|
|
3069
|
+
), le = Z(
|
|
3070
|
+
sr((E) => {
|
|
3071
|
+
ie(E);
|
|
3072
|
+
}, 500),
|
|
3073
|
+
[ie]
|
|
3074
|
+
), we = Kr(() => [...e || [], r], [e, r]);
|
|
3075
|
+
return ae(() => {
|
|
3076
|
+
r && le(!0);
|
|
3077
|
+
}, we), {
|
|
2934
3078
|
loading: T,
|
|
2935
|
-
dataSource:
|
|
3079
|
+
dataSource: O,
|
|
2936
3080
|
paginationProps: {
|
|
2937
3081
|
current: c,
|
|
2938
|
-
pageSize:
|
|
2939
|
-
total:
|
|
3082
|
+
pageSize: g,
|
|
3083
|
+
total: j
|
|
2940
3084
|
},
|
|
2941
3085
|
isFirstComplete: l,
|
|
2942
|
-
refresh:
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
setDataSource: y,
|
|
2947
|
-
setTotal: P
|
|
3086
|
+
refresh: ie,
|
|
3087
|
+
debounceRefresh: le,
|
|
3088
|
+
setDataSource: ye,
|
|
3089
|
+
setTotal: N
|
|
2948
3090
|
};
|
|
2949
3091
|
};
|
|
2950
3092
|
export {
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
3093
|
+
ve as CompThemeProvider,
|
|
3094
|
+
$s as DATE_FORMAT,
|
|
3095
|
+
Sn as ItemsRow,
|
|
3096
|
+
js as MBreadcrumb,
|
|
3097
|
+
Cn as MDescriptions,
|
|
3098
|
+
wr as MForm,
|
|
3099
|
+
me as MFormItemConst,
|
|
3100
|
+
W as MFormItemTypeEnum,
|
|
3101
|
+
ks as MSearch,
|
|
3102
|
+
Os as MTable,
|
|
3103
|
+
Xt as MiModal,
|
|
3104
|
+
Es as MiThemeProvider,
|
|
3105
|
+
Le as NextTick,
|
|
3106
|
+
ps as PAGE_SIZE,
|
|
3107
|
+
$ as PatternType,
|
|
3108
|
+
_s as VersionUtil,
|
|
3109
|
+
ws as cmx,
|
|
3110
|
+
sr as debounce,
|
|
3111
|
+
He as getClassName,
|
|
3112
|
+
Ss as getFieldsByPath,
|
|
3113
|
+
xs as nextTick,
|
|
3114
|
+
Rs as noop,
|
|
3115
|
+
wn as openModal,
|
|
3116
|
+
xn as removeNull,
|
|
3117
|
+
Cs as throttle,
|
|
3118
|
+
Ns as useFuncRequest,
|
|
3119
|
+
Ds as useInterval,
|
|
3120
|
+
Rn as useMiThemeConfig,
|
|
3121
|
+
Ps as usePagination,
|
|
3122
|
+
Ts as useQuery,
|
|
3123
|
+
Ms as useReactive,
|
|
3124
|
+
As as useTimeout,
|
|
3125
|
+
zs as useVirtualList
|
|
2984
3126
|
};
|