@mi-avalon/libs 0.0.20 → 0.0.22
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/ItemsRow/index.js +1 -1
- package/dist/components/MBreadcrumb/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +797 -474
- package/dist/index.js +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/utils/calc.d.ts +20 -0
- package/dist/utils/calc.js +92 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/nextTick.d.ts +14 -0
- package/dist/utils/nextTick.js +74 -0
- package/dist/utils/util.d.ts +6 -0
- package/dist/utils/util.js +69 -0
- package/dist/utils/version.d.ts +70 -0
- package/dist/utils/version.js +192 -0
- package/package.json +6 -2
- package/dist/components/utils.d.ts +0 -1
- package/dist/components/utils.js +0 -16
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import Fe, { createContext as
|
|
6
|
-
import { theme as
|
|
7
|
-
var
|
|
1
|
+
var wr = Object.defineProperty;
|
|
2
|
+
var xr = (o, r, n) => r in o ? wr(o, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[r] = n;
|
|
3
|
+
var p = (o, r, n) => (xr(o, typeof r != "symbol" ? r + "" : r, n), n);
|
|
4
|
+
import * as q from "react";
|
|
5
|
+
import Fe, { createContext as Sr, useContext as Cr } from "react";
|
|
6
|
+
import { theme as Tr, ConfigProvider as jr, Button as Or, Affix as $r, Card as Ar, Breadcrumb as ke, Descriptions as Ye, Table as Dr } from "antd";
|
|
7
|
+
var ce = { exports: {} }, V = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,25 +14,25 @@ var se = { exports: {} }, H = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
|
|
28
|
-
if (
|
|
29
|
-
for (
|
|
30
|
-
|
|
31
|
-
return { $$typeof:
|
|
17
|
+
var Me;
|
|
18
|
+
function Pr() {
|
|
19
|
+
if (Me)
|
|
20
|
+
return V;
|
|
21
|
+
Me = 1;
|
|
22
|
+
var o = Fe, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
+
function l(u, d, R) {
|
|
24
|
+
var E, b = {}, T = null, D = null;
|
|
25
|
+
R !== void 0 && (T = "" + R), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (D = d.ref);
|
|
26
|
+
for (E in d)
|
|
27
|
+
i.call(d, E) && !f.hasOwnProperty(E) && (b[E] = d[E]);
|
|
28
|
+
if (u && u.defaultProps)
|
|
29
|
+
for (E in d = u.defaultProps, d)
|
|
30
|
+
b[E] === void 0 && (b[E] = d[E]);
|
|
31
|
+
return { $$typeof: r, type: u, key: T, ref: D, props: b, _owner: s.current };
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return V.Fragment = n, V.jsx = l, V.jsxs = l, V;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var W = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,91 +42,91 @@ var z = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
var
|
|
49
|
-
function
|
|
45
|
+
var Ie;
|
|
46
|
+
function kr() {
|
|
47
|
+
return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
var o = Fe, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), U = Symbol.iterator, Y = "@@iterator";
|
|
49
|
+
function Q(e) {
|
|
50
50
|
if (e === null || typeof e != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var
|
|
53
|
-
return typeof
|
|
52
|
+
var t = U && e[U] || e[Y];
|
|
53
|
+
return typeof t == "function" ? t : null;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
55
|
+
var A = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
|
+
function S(e) {
|
|
57
57
|
{
|
|
58
|
-
for (var
|
|
59
|
-
|
|
60
|
-
We("error", e,
|
|
58
|
+
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
|
|
59
|
+
a[c - 1] = arguments[c];
|
|
60
|
+
We("error", e, a);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function We(e,
|
|
63
|
+
function We(e, t, a) {
|
|
64
64
|
{
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
var
|
|
68
|
-
return String(
|
|
65
|
+
var c = A.ReactDebugCurrentFrame, h = c.getStackAddendum();
|
|
66
|
+
h !== "" && (t += "%s", a = a.concat([h]));
|
|
67
|
+
var g = a.map(function(m) {
|
|
68
|
+
return String(m);
|
|
69
69
|
});
|
|
70
|
-
|
|
70
|
+
g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
function
|
|
76
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
73
|
+
var Ze = !1, He = !1, Ue = !1, Le = !1, Be = !1, ue;
|
|
74
|
+
ue = Symbol.for("react.module.reference");
|
|
75
|
+
function Je(e) {
|
|
76
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === f || Be || e === s || e === R || e === E || Le || e === D || Ze || He || Ue || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === b || e.$$typeof === l || e.$$typeof === u || e.$$typeof === d || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
|
-
e.$$typeof ===
|
|
80
|
+
e.$$typeof === ue || e.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
86
|
-
var
|
|
87
|
-
return
|
|
82
|
+
function Ke(e, t, a) {
|
|
83
|
+
var c = e.displayName;
|
|
84
|
+
if (c)
|
|
85
|
+
return c;
|
|
86
|
+
var h = t.displayName || t.name || "";
|
|
87
|
+
return h !== "" ? a + "(" + h + ")" : a;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function fe(e) {
|
|
90
90
|
return e.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function $(e) {
|
|
93
93
|
if (e == null)
|
|
94
94
|
return null;
|
|
95
|
-
if (typeof e.tag == "number" &&
|
|
95
|
+
if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
96
96
|
return e.displayName || e.name || null;
|
|
97
97
|
if (typeof e == "string")
|
|
98
98
|
return e;
|
|
99
99
|
switch (e) {
|
|
100
|
-
case
|
|
100
|
+
case i:
|
|
101
101
|
return "Fragment";
|
|
102
|
-
case
|
|
102
|
+
case n:
|
|
103
103
|
return "Portal";
|
|
104
|
-
case
|
|
104
|
+
case f:
|
|
105
105
|
return "Profiler";
|
|
106
|
-
case
|
|
106
|
+
case s:
|
|
107
107
|
return "StrictMode";
|
|
108
|
-
case
|
|
108
|
+
case R:
|
|
109
109
|
return "Suspense";
|
|
110
|
-
case
|
|
110
|
+
case E:
|
|
111
111
|
return "SuspenseList";
|
|
112
112
|
}
|
|
113
113
|
if (typeof e == "object")
|
|
114
114
|
switch (e.$$typeof) {
|
|
115
|
-
case
|
|
116
|
-
var r = e;
|
|
117
|
-
return ue(r) + ".Consumer";
|
|
118
|
-
case b:
|
|
115
|
+
case u:
|
|
119
116
|
var t = e;
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return
|
|
126
|
-
case
|
|
127
|
-
var
|
|
117
|
+
return fe(t) + ".Consumer";
|
|
118
|
+
case l:
|
|
119
|
+
var a = e;
|
|
120
|
+
return fe(a._context) + ".Provider";
|
|
121
|
+
case d:
|
|
122
|
+
return Ke(e, e.render, "ForwardRef");
|
|
123
|
+
case b:
|
|
124
|
+
var c = e.displayName || null;
|
|
125
|
+
return c !== null ? c : $(e.type) || "Memo";
|
|
126
|
+
case T: {
|
|
127
|
+
var h = e, g = h._payload, m = h._init;
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return $(m(g));
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
@@ -134,18 +134,18 @@ function Yr() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var
|
|
138
|
-
function
|
|
137
|
+
var P = Object.assign, N = 0, de, ve, me, he, pe, ge, be;
|
|
138
|
+
function Re() {
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
function
|
|
140
|
+
Re.__reactDisabledLog = !0;
|
|
141
|
+
function qe() {
|
|
142
142
|
{
|
|
143
|
-
if (
|
|
144
|
-
|
|
143
|
+
if (N === 0) {
|
|
144
|
+
de = console.log, ve = console.info, me = console.warn, he = console.error, pe = console.group, ge = console.groupCollapsed, be = console.groupEnd;
|
|
145
145
|
var e = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
|
-
value:
|
|
148
|
+
value: Re,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
@@ -158,336 +158,336 @@ function Yr() {
|
|
|
158
158
|
groupEnd: e
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
N++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ge() {
|
|
165
165
|
{
|
|
166
|
-
if (
|
|
166
|
+
if (N--, N === 0) {
|
|
167
167
|
var e = {
|
|
168
168
|
configurable: !0,
|
|
169
169
|
enumerable: !0,
|
|
170
170
|
writable: !0
|
|
171
171
|
};
|
|
172
172
|
Object.defineProperties(console, {
|
|
173
|
-
log:
|
|
174
|
-
value: ce
|
|
175
|
-
}),
|
|
176
|
-
info: A({}, e, {
|
|
177
|
-
value: fe
|
|
178
|
-
}),
|
|
179
|
-
warn: A({}, e, {
|
|
173
|
+
log: P({}, e, {
|
|
180
174
|
value: de
|
|
181
175
|
}),
|
|
182
|
-
|
|
176
|
+
info: P({}, e, {
|
|
183
177
|
value: ve
|
|
184
178
|
}),
|
|
185
|
-
|
|
179
|
+
warn: P({}, e, {
|
|
186
180
|
value: me
|
|
187
181
|
}),
|
|
188
|
-
|
|
182
|
+
error: P({}, e, {
|
|
183
|
+
value: he
|
|
184
|
+
}),
|
|
185
|
+
group: P({}, e, {
|
|
189
186
|
value: pe
|
|
190
187
|
}),
|
|
191
|
-
|
|
192
|
-
value:
|
|
188
|
+
groupCollapsed: P({}, e, {
|
|
189
|
+
value: ge
|
|
190
|
+
}),
|
|
191
|
+
groupEnd: P({}, e, {
|
|
192
|
+
value: be
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var
|
|
200
|
-
function
|
|
199
|
+
var ee = A.ReactCurrentDispatcher, re;
|
|
200
|
+
function L(e, t, a) {
|
|
201
201
|
{
|
|
202
|
-
if (
|
|
202
|
+
if (re === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
|
-
} catch (
|
|
206
|
-
var
|
|
207
|
-
|
|
205
|
+
} catch (h) {
|
|
206
|
+
var c = h.stack.trim().match(/\n( *(at )?)/);
|
|
207
|
+
re = c && c[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` +
|
|
210
|
+
` + re + e;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var te = !1, B;
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
|
|
215
|
+
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
|
+
B = new Xe();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
if (!e ||
|
|
218
|
+
function Ee(e, t) {
|
|
219
|
+
if (!e || te)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
222
|
+
var a = B.get(e);
|
|
223
|
+
if (a !== void 0)
|
|
224
|
+
return a;
|
|
225
225
|
}
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
-
var
|
|
226
|
+
var c;
|
|
227
|
+
te = !0;
|
|
228
|
+
var h = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
|
-
var
|
|
231
|
-
|
|
230
|
+
var g;
|
|
231
|
+
g = ee.current, ee.current = null, qe();
|
|
232
232
|
try {
|
|
233
|
-
if (
|
|
234
|
-
var
|
|
233
|
+
if (t) {
|
|
234
|
+
var m = function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
};
|
|
237
|
-
if (Object.defineProperty(
|
|
237
|
+
if (Object.defineProperty(m.prototype, "props", {
|
|
238
238
|
set: function() {
|
|
239
239
|
throw Error();
|
|
240
240
|
}
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
242
|
try {
|
|
243
|
-
Reflect.construct(
|
|
243
|
+
Reflect.construct(m, []);
|
|
244
244
|
} catch (j) {
|
|
245
|
-
|
|
245
|
+
c = j;
|
|
246
246
|
}
|
|
247
|
-
Reflect.construct(e, [],
|
|
247
|
+
Reflect.construct(e, [], m);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
|
-
|
|
250
|
+
m.call();
|
|
251
251
|
} catch (j) {
|
|
252
|
-
|
|
252
|
+
c = j;
|
|
253
253
|
}
|
|
254
|
-
e.call(
|
|
254
|
+
e.call(m.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
258
258
|
throw Error();
|
|
259
259
|
} catch (j) {
|
|
260
|
-
|
|
260
|
+
c = j;
|
|
261
261
|
}
|
|
262
262
|
e();
|
|
263
263
|
}
|
|
264
264
|
} catch (j) {
|
|
265
|
-
if (j &&
|
|
266
|
-
for (var
|
|
267
|
-
`),
|
|
268
|
-
`),
|
|
269
|
-
|
|
270
|
-
for (;
|
|
271
|
-
if (
|
|
272
|
-
if (
|
|
265
|
+
if (j && c && typeof j.stack == "string") {
|
|
266
|
+
for (var v = j.stack.split(`
|
|
267
|
+
`), C = c.stack.split(`
|
|
268
|
+
`), y = v.length - 1, w = C.length - 1; y >= 1 && w >= 0 && v[y] !== C[w]; )
|
|
269
|
+
w--;
|
|
270
|
+
for (; y >= 1 && w >= 0; y--, w--)
|
|
271
|
+
if (v[y] !== C[w]) {
|
|
272
|
+
if (y !== 1 || w !== 1)
|
|
273
273
|
do
|
|
274
|
-
if (
|
|
274
|
+
if (y--, w--, w < 0 || v[y] !== C[w]) {
|
|
275
275
|
var O = `
|
|
276
|
-
` +
|
|
277
|
-
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
276
|
+
` + v[y].replace(" at new ", " at ");
|
|
277
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, O), O;
|
|
278
278
|
}
|
|
279
|
-
while (
|
|
279
|
+
while (y >= 1 && w >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} finally {
|
|
284
|
-
|
|
284
|
+
te = !1, ee.current = g, Ge(), Error.prepareStackTrace = h;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
return typeof e == "function" &&
|
|
286
|
+
var I = e ? e.displayName || e.name : "", k = I ? L(I) : "";
|
|
287
|
+
return typeof e == "function" && B.set(e, k), k;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
289
|
+
function Qe(e, t, a) {
|
|
290
|
+
return Ee(e, !1);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
var
|
|
294
|
-
return !!(
|
|
292
|
+
function er(e) {
|
|
293
|
+
var t = e.prototype;
|
|
294
|
+
return !!(t && t.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function J(e, t, a) {
|
|
297
297
|
if (e == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof e == "function")
|
|
300
|
-
return
|
|
300
|
+
return Ee(e, er(e));
|
|
301
301
|
if (typeof e == "string")
|
|
302
|
-
return
|
|
302
|
+
return L(e);
|
|
303
303
|
switch (e) {
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
return
|
|
304
|
+
case R:
|
|
305
|
+
return L("Suspense");
|
|
306
|
+
case E:
|
|
307
|
+
return L("SuspenseList");
|
|
308
308
|
}
|
|
309
309
|
if (typeof e == "object")
|
|
310
310
|
switch (e.$$typeof) {
|
|
311
|
-
case
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
return
|
|
315
|
-
case
|
|
316
|
-
var
|
|
311
|
+
case d:
|
|
312
|
+
return Qe(e.render);
|
|
313
|
+
case b:
|
|
314
|
+
return J(e.type, t, a);
|
|
315
|
+
case T: {
|
|
316
|
+
var c = e, h = c._payload, g = c._init;
|
|
317
317
|
try {
|
|
318
|
-
return
|
|
318
|
+
return J(g(h), t, a);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var
|
|
326
|
-
function
|
|
325
|
+
var F = Object.prototype.hasOwnProperty, _e = {}, ye = A.ReactDebugCurrentFrame;
|
|
326
|
+
function K(e) {
|
|
327
327
|
if (e) {
|
|
328
|
-
var
|
|
329
|
-
|
|
328
|
+
var t = e._owner, a = J(e.type, e._source, t ? t.type : null);
|
|
329
|
+
ye.setExtraStackFrame(a);
|
|
330
330
|
} else
|
|
331
|
-
|
|
331
|
+
ye.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function rr(e, t, a, c, h) {
|
|
334
334
|
{
|
|
335
|
-
var
|
|
336
|
-
for (var
|
|
337
|
-
if (
|
|
338
|
-
var
|
|
335
|
+
var g = Function.call.bind(F);
|
|
336
|
+
for (var m in e)
|
|
337
|
+
if (g(e, m)) {
|
|
338
|
+
var v = void 0;
|
|
339
339
|
try {
|
|
340
|
-
if (typeof e[
|
|
341
|
-
var
|
|
342
|
-
throw
|
|
340
|
+
if (typeof e[m] != "function") {
|
|
341
|
+
var C = Error((c || "React class") + ": " + a + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
|
+
throw C.name = "Invariant Violation", C;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
} catch (
|
|
346
|
-
|
|
344
|
+
v = e[m](t, m, c, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
|
+
} catch (y) {
|
|
346
|
+
v = y;
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
v && !(v instanceof Error) && (K(h), S("%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).", c || "React class", a, m, typeof v), K(null)), v instanceof Error && !(v.message in _e) && (_e[v.message] = !0, K(h), S("Failed %s type: %s", a, v.message), K(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
var
|
|
353
|
-
function
|
|
354
|
-
return
|
|
352
|
+
var tr = Array.isArray;
|
|
353
|
+
function ne(e) {
|
|
354
|
+
return tr(e);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function nr(e) {
|
|
357
357
|
{
|
|
358
|
-
var
|
|
359
|
-
return
|
|
358
|
+
var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
359
|
+
return a;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function ar(e) {
|
|
363
363
|
try {
|
|
364
|
-
return
|
|
364
|
+
return we(e), !1;
|
|
365
365
|
} catch {
|
|
366
366
|
return !0;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function we(e) {
|
|
370
370
|
return "" + e;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
if (
|
|
374
|
-
return
|
|
372
|
+
function xe(e) {
|
|
373
|
+
if (ar(e))
|
|
374
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nr(e)), we(e);
|
|
375
375
|
}
|
|
376
|
-
var
|
|
376
|
+
var z = A.ReactCurrentOwner, ir = {
|
|
377
377
|
key: !0,
|
|
378
378
|
ref: !0,
|
|
379
379
|
__self: !0,
|
|
380
380
|
__source: !0
|
|
381
|
-
},
|
|
382
|
-
|
|
383
|
-
function
|
|
384
|
-
if (
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
381
|
+
}, Se, Ce, ae;
|
|
382
|
+
ae = {};
|
|
383
|
+
function sr(e) {
|
|
384
|
+
if (F.call(e, "ref")) {
|
|
385
|
+
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
386
|
+
if (t && t.isReactWarning)
|
|
387
387
|
return !1;
|
|
388
388
|
}
|
|
389
389
|
return e.ref !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
if (
|
|
393
|
-
var
|
|
394
|
-
if (
|
|
391
|
+
function or(e) {
|
|
392
|
+
if (F.call(e, "key")) {
|
|
393
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
394
|
+
if (t && t.isReactWarning)
|
|
395
395
|
return !1;
|
|
396
396
|
}
|
|
397
397
|
return e.key !== void 0;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
if (typeof e.ref == "string" &&
|
|
401
|
-
var
|
|
402
|
-
|
|
399
|
+
function lr(e, t) {
|
|
400
|
+
if (typeof e.ref == "string" && z.current && t && z.current.stateNode !== t) {
|
|
401
|
+
var a = $(z.current.type);
|
|
402
|
+
ae[a] || (S('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', $(z.current.type), e.ref), ae[a] = !0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function cr(e, t) {
|
|
406
406
|
{
|
|
407
|
-
var
|
|
408
|
-
|
|
407
|
+
var a = function() {
|
|
408
|
+
Se || (Se = !0, S("%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)", t));
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
get:
|
|
410
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
411
|
+
get: a,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function ur(e, t) {
|
|
417
417
|
{
|
|
418
|
-
var
|
|
419
|
-
Ce || (Ce = !0,
|
|
418
|
+
var a = function() {
|
|
419
|
+
Ce || (Ce = !0, S("%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)", t));
|
|
420
420
|
};
|
|
421
|
-
|
|
422
|
-
get:
|
|
421
|
+
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
422
|
+
get: a,
|
|
423
423
|
configurable: !0
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var
|
|
428
|
-
var
|
|
427
|
+
var fr = function(e, t, a, c, h, g, m) {
|
|
428
|
+
var v = {
|
|
429
429
|
// This tag allows us to uniquely identify this as a React Element
|
|
430
|
-
$$typeof:
|
|
430
|
+
$$typeof: r,
|
|
431
431
|
// Built-in properties that belong on the element
|
|
432
432
|
type: e,
|
|
433
|
-
key:
|
|
434
|
-
ref:
|
|
435
|
-
props:
|
|
433
|
+
key: t,
|
|
434
|
+
ref: a,
|
|
435
|
+
props: m,
|
|
436
436
|
// Record the component responsible for creating this element.
|
|
437
|
-
_owner:
|
|
437
|
+
_owner: g
|
|
438
438
|
};
|
|
439
|
-
return
|
|
439
|
+
return v._store = {}, Object.defineProperty(v._store, "validated", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !0,
|
|
443
443
|
value: !1
|
|
444
|
-
}), Object.defineProperty(
|
|
444
|
+
}), Object.defineProperty(v, "_self", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.defineProperty(
|
|
448
|
+
value: c
|
|
449
|
+
}), Object.defineProperty(v, "_source", {
|
|
450
450
|
configurable: !1,
|
|
451
451
|
enumerable: !1,
|
|
452
452
|
writable: !1,
|
|
453
|
-
value:
|
|
454
|
-
}), Object.freeze && (Object.freeze(
|
|
453
|
+
value: h
|
|
454
|
+
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
455
455
|
};
|
|
456
|
-
function
|
|
456
|
+
function dr(e, t, a, c, h) {
|
|
457
457
|
{
|
|
458
|
-
var
|
|
459
|
-
|
|
460
|
-
for (
|
|
461
|
-
|
|
458
|
+
var g, m = {}, v = null, C = null;
|
|
459
|
+
a !== void 0 && (xe(a), v = "" + a), or(t) && (xe(t.key), v = "" + t.key), sr(t) && (C = t.ref, lr(t, h));
|
|
460
|
+
for (g in t)
|
|
461
|
+
F.call(t, g) && !ir.hasOwnProperty(g) && (m[g] = t[g]);
|
|
462
462
|
if (e && e.defaultProps) {
|
|
463
|
-
var
|
|
464
|
-
for (
|
|
465
|
-
|
|
463
|
+
var y = e.defaultProps;
|
|
464
|
+
for (g in y)
|
|
465
|
+
m[g] === void 0 && (m[g] = y[g]);
|
|
466
466
|
}
|
|
467
|
-
if (
|
|
468
|
-
var
|
|
469
|
-
|
|
467
|
+
if (v || C) {
|
|
468
|
+
var w = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
469
|
+
v && cr(m, w), C && ur(m, w);
|
|
470
470
|
}
|
|
471
|
-
return
|
|
471
|
+
return fr(e, v, C, h, c, z.current, m);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
var
|
|
474
|
+
var ie = A.ReactCurrentOwner, Te = A.ReactDebugCurrentFrame;
|
|
475
475
|
function M(e) {
|
|
476
476
|
if (e) {
|
|
477
|
-
var
|
|
478
|
-
|
|
477
|
+
var t = e._owner, a = J(e.type, e._source, t ? t.type : null);
|
|
478
|
+
Te.setExtraStackFrame(a);
|
|
479
479
|
} else
|
|
480
|
-
|
|
480
|
+
Te.setExtraStackFrame(null);
|
|
481
481
|
}
|
|
482
|
-
var
|
|
483
|
-
|
|
484
|
-
function
|
|
485
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
482
|
+
var se;
|
|
483
|
+
se = !1;
|
|
484
|
+
function oe(e) {
|
|
485
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function je() {
|
|
488
488
|
{
|
|
489
|
-
if (
|
|
490
|
-
var e =
|
|
489
|
+
if (ie.current) {
|
|
490
|
+
var e = $(ie.current.type);
|
|
491
491
|
if (e)
|
|
492
492
|
return `
|
|
493
493
|
|
|
@@ -496,293 +496,606 @@ Check the render method of \`` + e + "`.";
|
|
|
496
496
|
return "";
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function vr(e) {
|
|
500
500
|
{
|
|
501
501
|
if (e !== void 0) {
|
|
502
|
-
var
|
|
502
|
+
var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
503
503
|
return `
|
|
504
504
|
|
|
505
|
-
Check your code at ` +
|
|
505
|
+
Check your code at ` + t + ":" + a + ".";
|
|
506
506
|
}
|
|
507
507
|
return "";
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
510
|
+
var Oe = {};
|
|
511
|
+
function mr(e) {
|
|
512
512
|
{
|
|
513
|
-
var
|
|
514
|
-
if (!
|
|
515
|
-
var
|
|
516
|
-
|
|
513
|
+
var t = je();
|
|
514
|
+
if (!t) {
|
|
515
|
+
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
516
|
+
a && (t = `
|
|
517
517
|
|
|
518
|
-
Check the top-level render call using <` +
|
|
518
|
+
Check the top-level render call using <` + a + ">.");
|
|
519
519
|
}
|
|
520
|
-
return
|
|
520
|
+
return t;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function $e(e, t) {
|
|
524
524
|
{
|
|
525
525
|
if (!e._store || e._store.validated || e.key != null)
|
|
526
526
|
return;
|
|
527
527
|
e._store.validated = !0;
|
|
528
|
-
var
|
|
529
|
-
if (
|
|
528
|
+
var a = mr(t);
|
|
529
|
+
if (Oe[a])
|
|
530
530
|
return;
|
|
531
|
-
|
|
532
|
-
var
|
|
533
|
-
e && e._owner && e._owner !==
|
|
531
|
+
Oe[a] = !0;
|
|
532
|
+
var c = "";
|
|
533
|
+
e && e._owner && e._owner !== ie.current && (c = " It was passed a child from " + $(e._owner.type) + "."), M(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, c), M(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Ae(e, t) {
|
|
537
537
|
{
|
|
538
538
|
if (typeof e != "object")
|
|
539
539
|
return;
|
|
540
|
-
if (
|
|
541
|
-
for (var
|
|
542
|
-
var
|
|
543
|
-
|
|
540
|
+
if (ne(e))
|
|
541
|
+
for (var a = 0; a < e.length; a++) {
|
|
542
|
+
var c = e[a];
|
|
543
|
+
oe(c) && $e(c, t);
|
|
544
544
|
}
|
|
545
|
-
else if (
|
|
545
|
+
else if (oe(e))
|
|
546
546
|
e._store && (e._store.validated = !0);
|
|
547
547
|
else if (e) {
|
|
548
|
-
var
|
|
549
|
-
if (typeof
|
|
550
|
-
for (var
|
|
551
|
-
|
|
548
|
+
var h = Q(e);
|
|
549
|
+
if (typeof h == "function" && h !== e.entries)
|
|
550
|
+
for (var g = h.call(e), m; !(m = g.next()).done; )
|
|
551
|
+
oe(m.value) && $e(m.value, t);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function hr(e) {
|
|
556
556
|
{
|
|
557
|
-
var
|
|
558
|
-
if (
|
|
557
|
+
var t = e.type;
|
|
558
|
+
if (t == null || typeof t == "string")
|
|
559
559
|
return;
|
|
560
|
-
var
|
|
561
|
-
if (typeof
|
|
562
|
-
|
|
563
|
-
else if (typeof
|
|
560
|
+
var a;
|
|
561
|
+
if (typeof t == "function")
|
|
562
|
+
a = t.propTypes;
|
|
563
|
+
else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
|
|
564
564
|
// Inner props are checked in the reconciler.
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
t.$$typeof === b))
|
|
566
|
+
a = t.propTypes;
|
|
567
567
|
else
|
|
568
568
|
return;
|
|
569
|
-
if (
|
|
570
|
-
var
|
|
571
|
-
|
|
572
|
-
} else if (
|
|
573
|
-
|
|
574
|
-
var
|
|
575
|
-
|
|
569
|
+
if (a) {
|
|
570
|
+
var c = $(t);
|
|
571
|
+
rr(a, e.props, "prop", c, e);
|
|
572
|
+
} else if (t.PropTypes !== void 0 && !se) {
|
|
573
|
+
se = !0;
|
|
574
|
+
var h = $(t);
|
|
575
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
576
576
|
}
|
|
577
|
-
typeof
|
|
577
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function pr(e) {
|
|
581
581
|
{
|
|
582
|
-
for (var
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
M(e),
|
|
582
|
+
for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
|
|
583
|
+
var c = t[a];
|
|
584
|
+
if (c !== "children" && c !== "key") {
|
|
585
|
+
M(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), M(null);
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
e.ref !== null && (M(e),
|
|
589
|
+
e.ref !== null && (M(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
var De = {};
|
|
593
|
-
function
|
|
593
|
+
function Pe(e, t, a, c, h, g) {
|
|
594
594
|
{
|
|
595
|
-
var
|
|
596
|
-
if (!
|
|
597
|
-
var
|
|
598
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
599
|
-
var
|
|
600
|
-
|
|
601
|
-
var
|
|
602
|
-
e === null ?
|
|
595
|
+
var m = Je(e);
|
|
596
|
+
if (!m) {
|
|
597
|
+
var v = "";
|
|
598
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
599
|
+
var C = vr(h);
|
|
600
|
+
C ? v += C : v += je();
|
|
601
|
+
var y;
|
|
602
|
+
e === null ? y = "null" : ne(e) ? y = "array" : e !== void 0 && e.$$typeof === r ? (y = "<" + ($(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, v);
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
if (
|
|
606
|
-
return
|
|
607
|
-
if (
|
|
608
|
-
var O =
|
|
604
|
+
var w = dr(e, t, a, h, g);
|
|
605
|
+
if (w == null)
|
|
606
|
+
return w;
|
|
607
|
+
if (m) {
|
|
608
|
+
var O = t.children;
|
|
609
609
|
if (O !== void 0)
|
|
610
|
-
if (
|
|
611
|
-
if (
|
|
612
|
-
for (var
|
|
613
|
-
|
|
610
|
+
if (c)
|
|
611
|
+
if (ne(O)) {
|
|
612
|
+
for (var I = 0; I < O.length; I++)
|
|
613
|
+
Ae(O[I], e);
|
|
614
614
|
Object.freeze && Object.freeze(O);
|
|
615
615
|
} else
|
|
616
|
-
|
|
616
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
617
617
|
else
|
|
618
|
-
|
|
618
|
+
Ae(O, e);
|
|
619
619
|
}
|
|
620
|
-
if (
|
|
621
|
-
var
|
|
622
|
-
return
|
|
623
|
-
}),
|
|
624
|
-
if (!De[
|
|
625
|
-
var
|
|
626
|
-
|
|
620
|
+
if (F.call(t, "key")) {
|
|
621
|
+
var k = $(e), j = Object.keys(t).filter(function(yr) {
|
|
622
|
+
return yr !== "key";
|
|
623
|
+
}), le = j.length > 0 ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
624
|
+
if (!De[k + le]) {
|
|
625
|
+
var _r = j.length > 0 ? "{" + j.join(": ..., ") + ": ...}" : "{}";
|
|
626
|
+
S(`A props object containing a "key" prop is being spread into JSX:
|
|
627
627
|
let props = %s;
|
|
628
628
|
<%s {...props} />
|
|
629
629
|
React keys must be passed directly to JSX without using spread:
|
|
630
630
|
let props = %s;
|
|
631
|
-
<%s key={someKey} {...props} />`,
|
|
631
|
+
<%s key={someKey} {...props} />`, le, k, _r, k), De[k + le] = !0;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return e ===
|
|
634
|
+
return e === i ? pr(w) : hr(w), w;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
function gr(e, t, a) {
|
|
638
|
+
return Pe(e, t, a, !0);
|
|
639
|
+
}
|
|
640
|
+
function br(e, t, a) {
|
|
641
|
+
return Pe(e, t, a, !1);
|
|
642
|
+
}
|
|
643
|
+
var Rr = br, Er = gr;
|
|
644
|
+
W.Fragment = i, W.jsx = Rr, W.jsxs = Er;
|
|
645
|
+
}()), W;
|
|
646
|
+
}
|
|
647
|
+
process.env.NODE_ENV === "production" ? ce.exports = Pr() : ce.exports = kr();
|
|
648
|
+
var x = ce.exports;
|
|
649
|
+
class Yr {
|
|
650
|
+
constructor() {
|
|
651
|
+
/**
|
|
652
|
+
** 加
|
|
653
|
+
**/
|
|
654
|
+
p(this, "add", function(r, n) {
|
|
655
|
+
let i, s, f, l;
|
|
656
|
+
try {
|
|
657
|
+
i = r.toString().split(".")[1].length;
|
|
658
|
+
} catch {
|
|
659
|
+
i = 0;
|
|
660
|
+
}
|
|
661
|
+
try {
|
|
662
|
+
s = n.toString().split(".")[1].length;
|
|
663
|
+
} catch {
|
|
664
|
+
s = 0;
|
|
665
|
+
}
|
|
666
|
+
if (l = Math.abs(i - s), f = Math.pow(10, Math.max(i, s)), l > 0) {
|
|
667
|
+
let u = Math.pow(10, l);
|
|
668
|
+
i > s ? (r = Number(r.toString().replace(".", "")), n = Number(n.toString().replace(".", "")) * u) : (r = Number(r.toString().replace(".", "")) * u, n = Number(n.toString().replace(".", "")));
|
|
669
|
+
} else
|
|
670
|
+
r = Number(r == null ? void 0 : r.toString().replace(".", "")), n = Number(n == null ? void 0 : n.toString().replace(".", ""));
|
|
671
|
+
return (r + n) / f;
|
|
672
|
+
});
|
|
673
|
+
/**
|
|
674
|
+
** 减
|
|
675
|
+
**/
|
|
676
|
+
p(this, "sub", function(r, n) {
|
|
677
|
+
let i, s, f, l;
|
|
678
|
+
try {
|
|
679
|
+
i = r.toString().split(".")[1].length;
|
|
680
|
+
} catch {
|
|
681
|
+
i = 0;
|
|
682
|
+
}
|
|
683
|
+
try {
|
|
684
|
+
s = n.toString().split(".")[1].length;
|
|
685
|
+
} catch {
|
|
686
|
+
s = 0;
|
|
687
|
+
}
|
|
688
|
+
return f = Math.pow(10, Math.max(i, s)), l = i >= s ? i : s, Number(((r * f - n * f) / f).toFixed(l));
|
|
689
|
+
});
|
|
690
|
+
/**
|
|
691
|
+
** 乘
|
|
692
|
+
**/
|
|
693
|
+
p(this, "mul", function(r, n) {
|
|
694
|
+
let i = 0, s = r.toString(), f = n.toString();
|
|
695
|
+
try {
|
|
696
|
+
i += s.split(".")[1].length;
|
|
697
|
+
} catch {
|
|
698
|
+
}
|
|
699
|
+
try {
|
|
700
|
+
i += f.split(".")[1].length;
|
|
701
|
+
} catch {
|
|
702
|
+
}
|
|
703
|
+
return Number(s.replace(".", "")) * Number(f.replace(".", "")) / Math.pow(10, i);
|
|
704
|
+
});
|
|
705
|
+
/**
|
|
706
|
+
** 除
|
|
707
|
+
**/
|
|
708
|
+
p(this, "div", function(r, n) {
|
|
709
|
+
let i = 0, s = 0, f, l;
|
|
710
|
+
try {
|
|
711
|
+
i = r.toString().split(".")[1].length;
|
|
712
|
+
} catch {
|
|
713
|
+
}
|
|
714
|
+
try {
|
|
715
|
+
s = n.toString().split(".")[1].length;
|
|
716
|
+
} catch {
|
|
635
717
|
}
|
|
718
|
+
return f = Number(r.toString().replace(".", "")), l = Number(n.toString().replace(".", "")), f / l * Math.pow(10, s - i);
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
const Wr = new Yr(), H = class H {
|
|
723
|
+
constructor() {
|
|
724
|
+
p(this, "callbacks", []);
|
|
725
|
+
p(this, "pending", !1);
|
|
726
|
+
p(this, "timerFunc");
|
|
727
|
+
this.timerFunc = this.determineTimerFunc();
|
|
728
|
+
}
|
|
729
|
+
determineTimerFunc() {
|
|
730
|
+
if (typeof Promise < "u") {
|
|
731
|
+
const r = Promise.resolve();
|
|
732
|
+
return () => r.then(this.flushCallbacks.bind(this));
|
|
733
|
+
}
|
|
734
|
+
if (typeof MutationObserver < "u" && typeof window < "u") {
|
|
735
|
+
let r = 1;
|
|
736
|
+
const n = new MutationObserver(this.flushCallbacks.bind(this)), i = document.createTextNode(String(r));
|
|
737
|
+
return n.observe(i, { characterData: !0 }), () => {
|
|
738
|
+
r = (r + 1) % 2, i.data = String(r);
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
return () => setTimeout(this.flushCallbacks.bind(this), 0);
|
|
742
|
+
}
|
|
743
|
+
flushCallbacks() {
|
|
744
|
+
this.pending = !1;
|
|
745
|
+
const r = this.callbacks.slice(0);
|
|
746
|
+
this.callbacks.length = 0;
|
|
747
|
+
for (let n = 0; n < r.length; n++)
|
|
748
|
+
r[n]();
|
|
749
|
+
}
|
|
750
|
+
nextTick(r, n) {
|
|
751
|
+
let i;
|
|
752
|
+
if (this.callbacks.push(() => {
|
|
753
|
+
if (r)
|
|
754
|
+
try {
|
|
755
|
+
r.call(n);
|
|
756
|
+
} catch (s) {
|
|
757
|
+
console.error("Error in nextTick:", s);
|
|
758
|
+
}
|
|
759
|
+
else
|
|
760
|
+
i && i();
|
|
761
|
+
}), this.pending || (this.pending = !0, this.timerFunc()), !r && typeof Promise < "u")
|
|
762
|
+
return new Promise((s) => {
|
|
763
|
+
i = s;
|
|
764
|
+
});
|
|
765
|
+
}
|
|
766
|
+
static nextTick(r, n) {
|
|
767
|
+
return H.instance.nextTick(r, n);
|
|
768
|
+
}
|
|
769
|
+
static get instance() {
|
|
770
|
+
return this._instance || (this._instance = new H()), this._instance;
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
p(H, "_instance");
|
|
774
|
+
let G = H;
|
|
775
|
+
const Zr = G.instance.nextTick.bind(G.instance), Hr = () => {
|
|
776
|
+
}, ze = (o, r) => {
|
|
777
|
+
const n = o;
|
|
778
|
+
let i = o;
|
|
779
|
+
if (r.includes(" ")) {
|
|
780
|
+
i = "";
|
|
781
|
+
const s = r == null ? void 0 : r.split(" ");
|
|
782
|
+
for (const f of s)
|
|
783
|
+
i += ` ${n}-${f}`;
|
|
784
|
+
} else
|
|
785
|
+
r && (i = `${o}-${r}`);
|
|
786
|
+
return i;
|
|
787
|
+
}, Ur = (o, r) => {
|
|
788
|
+
const n = r == null ? void 0 : r.split(".");
|
|
789
|
+
let i = o;
|
|
790
|
+
for (const s of n)
|
|
791
|
+
i = i[s];
|
|
792
|
+
return i;
|
|
793
|
+
}, Lr = (o) => {
|
|
794
|
+
for (const r in o)
|
|
795
|
+
o[r] === null && delete o[r];
|
|
796
|
+
return o;
|
|
797
|
+
}, Br = (o, r) => {
|
|
798
|
+
let n = null;
|
|
799
|
+
return (...i) => {
|
|
800
|
+
n && clearTimeout(n), n = setTimeout(() => {
|
|
801
|
+
o(...i);
|
|
802
|
+
}, r);
|
|
803
|
+
};
|
|
804
|
+
}, Jr = (o, r) => {
|
|
805
|
+
let n = null, i = 0;
|
|
806
|
+
return (...s) => {
|
|
807
|
+
const f = Date.now();
|
|
808
|
+
n ? f - i >= r && (o(...s), i = f) : (o(...s), i = f, n = setTimeout(() => {
|
|
809
|
+
n = null;
|
|
810
|
+
}, r));
|
|
811
|
+
};
|
|
812
|
+
};
|
|
813
|
+
class Kr {
|
|
814
|
+
/**
|
|
815
|
+
* 验证版本号格式是否有效
|
|
816
|
+
* @param version 版本号字符串
|
|
817
|
+
* @returns 是否有效
|
|
818
|
+
*/
|
|
819
|
+
static isValid(r) {
|
|
820
|
+
return /^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(r);
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* 比较两个版本号
|
|
824
|
+
* @param v1 版本号1
|
|
825
|
+
* @param v2 版本号2
|
|
826
|
+
* @returns 比较结果: 1(v1>v2), 0(v1=v2), -1(v1<v2)
|
|
827
|
+
*/
|
|
828
|
+
static compare(r, n) {
|
|
829
|
+
if (!this.isValid(r) || !this.isValid(n))
|
|
830
|
+
throw new Error("Invalid version format");
|
|
831
|
+
const i = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), s = i(r), f = i(n);
|
|
832
|
+
for (let d = 0; d < 3; d++) {
|
|
833
|
+
const R = parseInt(s[d] || "0", 10), E = parseInt(f[d] || "0", 10);
|
|
834
|
+
if (R > E)
|
|
835
|
+
return 1;
|
|
836
|
+
if (R < E)
|
|
837
|
+
return -1;
|
|
636
838
|
}
|
|
637
|
-
|
|
638
|
-
|
|
839
|
+
const l = r.match(/-(.+)/), u = n.match(/-(.+)/);
|
|
840
|
+
return l && !u ? -1 : !l && u ? 1 : l && u ? l[1].localeCompare(u[1]) : 0;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* 检查版本号是否满足范围要求
|
|
844
|
+
* @param version 要检查的版本
|
|
845
|
+
* @param range 版本范围 (如 ">=1.0.0 <2.0.0") 支持: >, >=, <, <=, ^, ~, ==, =
|
|
846
|
+
* @returns 是否满足
|
|
847
|
+
*/
|
|
848
|
+
static satisfies(r, n) {
|
|
849
|
+
if (!this.isValid(r))
|
|
850
|
+
return !1;
|
|
851
|
+
const i = /([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g, s = n.match(i);
|
|
852
|
+
return !s || s.length === 0 ? !1 : s.every((f) => {
|
|
853
|
+
const l = f.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);
|
|
854
|
+
if (!l)
|
|
855
|
+
return !1;
|
|
856
|
+
const u = l[1] || "==", d = l[2];
|
|
857
|
+
if (!this.isValid(d))
|
|
858
|
+
return !1;
|
|
859
|
+
const R = this.compare(r, d);
|
|
860
|
+
switch (u) {
|
|
861
|
+
case ">":
|
|
862
|
+
return R > 0;
|
|
863
|
+
case ">=":
|
|
864
|
+
return R >= 0;
|
|
865
|
+
case "<":
|
|
866
|
+
return R < 0;
|
|
867
|
+
case "<=":
|
|
868
|
+
return R <= 0;
|
|
869
|
+
case "^":
|
|
870
|
+
return this.caretRange(r, d);
|
|
871
|
+
case "~":
|
|
872
|
+
return this.tildeRange(r, d);
|
|
873
|
+
case "=":
|
|
874
|
+
case "==":
|
|
875
|
+
default:
|
|
876
|
+
return R === 0;
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* 处理 ^ 范围 (允许不修改最左边的非零数字)
|
|
882
|
+
* @param version 版本号
|
|
883
|
+
* @param range 范围版本
|
|
884
|
+
* @returns 是否匹配
|
|
885
|
+
*/
|
|
886
|
+
static caretRange(r, n) {
|
|
887
|
+
const i = (u) => u.replace(/^v/, "").split(/[-+]/)[0].split("."), s = i(r), f = i(n);
|
|
888
|
+
let l = 0;
|
|
889
|
+
for (let u = 0; u < f.length; u++)
|
|
890
|
+
if (parseInt(f[u], 10) !== 0) {
|
|
891
|
+
l = u;
|
|
892
|
+
break;
|
|
893
|
+
}
|
|
894
|
+
for (let u = 0; u <= l; u++) {
|
|
895
|
+
const d = parseInt(s[u] || "0", 10), R = parseInt(f[u] || "0", 10);
|
|
896
|
+
if (d !== R)
|
|
897
|
+
return !1;
|
|
639
898
|
}
|
|
640
|
-
|
|
641
|
-
|
|
899
|
+
return this.compare(r, n) >= 0;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* 处理 ~ 范围 (允许修改最后一位数字)
|
|
903
|
+
* @param version 版本号
|
|
904
|
+
* @param range 范围版本
|
|
905
|
+
* @returns 是否匹配
|
|
906
|
+
*/
|
|
907
|
+
static tildeRange(r, n) {
|
|
908
|
+
const i = (d) => d.replace(/^v/, "").split(/[-+]/)[0].split("."), s = i(r), f = i(n);
|
|
909
|
+
for (let d = 0; d < f.length - 1; d++) {
|
|
910
|
+
const R = parseInt(s[d] || "0", 10), E = parseInt(f[d] || "0", 10);
|
|
911
|
+
if (R !== E)
|
|
912
|
+
return !1;
|
|
642
913
|
}
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}
|
|
914
|
+
const l = parseInt(s[f.length - 1] || "0", 10), u = parseInt(f[f.length - 1] || "0", 10);
|
|
915
|
+
return l >= u;
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* 获取主版本号 (major)
|
|
919
|
+
* @param version 版本号
|
|
920
|
+
* @returns 主版本号
|
|
921
|
+
*/
|
|
922
|
+
static getMajor(r) {
|
|
923
|
+
if (!this.isValid(r))
|
|
924
|
+
throw new Error("Invalid version format");
|
|
925
|
+
const n = r.replace(/^v/, "").split(".");
|
|
926
|
+
return parseInt(n[0], 10);
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* 获取次版本号 (minor)
|
|
930
|
+
* @param version 版本号
|
|
931
|
+
* @returns 次版本号
|
|
932
|
+
*/
|
|
933
|
+
static getMinor(r) {
|
|
934
|
+
if (!this.isValid(r))
|
|
935
|
+
throw new Error("Invalid version format");
|
|
936
|
+
const n = r.replace(/^v/, "").split(".");
|
|
937
|
+
return parseInt(n[1] || "0", 10);
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* 获取修订号 (patch)
|
|
941
|
+
* @param version 版本号
|
|
942
|
+
* @returns 修订号
|
|
943
|
+
*/
|
|
944
|
+
static getPatch(r) {
|
|
945
|
+
if (!this.isValid(r))
|
|
946
|
+
throw new Error("Invalid version format");
|
|
947
|
+
const n = r.replace(/^v/, "").split(".");
|
|
948
|
+
return parseInt(n[2] || "0", 10);
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* 获取预发布版本标识
|
|
952
|
+
* @param version 版本号
|
|
953
|
+
* @returns 预发布标识 (无则返回null)
|
|
954
|
+
*/
|
|
955
|
+
static getPrerelease(r) {
|
|
956
|
+
if (!this.isValid(r))
|
|
957
|
+
throw new Error("Invalid version format");
|
|
958
|
+
const n = r.match(/-([^+]+)/);
|
|
959
|
+
return n ? n[1] : null;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* 获取构建元数据
|
|
963
|
+
* @param version 版本号
|
|
964
|
+
* @returns 构建元数据 (无则返回null)
|
|
965
|
+
*/
|
|
966
|
+
static getBuildMetadata(r) {
|
|
967
|
+
if (!this.isValid(r))
|
|
968
|
+
throw new Error("Invalid version format");
|
|
969
|
+
const n = r.match(/\+([^]+)/);
|
|
970
|
+
return n ? n[1] : null;
|
|
971
|
+
}
|
|
646
972
|
}
|
|
647
|
-
|
|
648
|
-
var R = se.exports;
|
|
649
|
-
const Ie = xr({
|
|
973
|
+
const Ve = Sr({
|
|
650
974
|
theme: {
|
|
651
975
|
cssVar: !0,
|
|
652
|
-
algorithm: [
|
|
976
|
+
algorithm: [Tr.defaultAlgorithm]
|
|
653
977
|
}
|
|
654
|
-
}),
|
|
655
|
-
function
|
|
656
|
-
return Cr(
|
|
978
|
+
}), qr = Ve.Provider;
|
|
979
|
+
function Mr() {
|
|
980
|
+
return Cr(Ve);
|
|
657
981
|
}
|
|
658
|
-
function
|
|
659
|
-
const { theme:
|
|
660
|
-
return /* @__PURE__ */
|
|
982
|
+
function X(o) {
|
|
983
|
+
const { theme: r } = Mr();
|
|
984
|
+
return /* @__PURE__ */ x.jsx(jr, { theme: r, children: o.children });
|
|
661
985
|
}
|
|
662
|
-
const Ne = (
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
f = "";
|
|
667
|
-
const w = a == null ? void 0 : a.split(" ");
|
|
668
|
-
for (const $ of w)
|
|
669
|
-
f += ` ${p}-${$}`;
|
|
670
|
-
} else
|
|
671
|
-
a && (f = `${s}-${a}`);
|
|
672
|
-
return f;
|
|
673
|
-
}, Me = (s = "") => Ne("items-row", s), Pr = (s) => s.items ? /* @__PURE__ */ R.jsx(q, { children: /* @__PURE__ */ R.jsx("div", { className: `${Me()} ${s.className || ""}`, style: s.style, children: (s.items || []).map((a, p) => {
|
|
674
|
-
const f = `${Me("item")} ${a.className}`;
|
|
675
|
-
return a.render ? /* @__PURE__ */ R.jsx("span", { className: f, children: a.render() }, p) : /* @__PURE__ */ R.jsx(
|
|
676
|
-
Sr,
|
|
986
|
+
const Ne = (o = "") => ze("items-row", o), Ir = (o) => o.items ? /* @__PURE__ */ x.jsx(X, { children: /* @__PURE__ */ x.jsx("div", { className: `${Ne()} ${o.className || ""}`, style: o.style, children: (o.items || []).map((r, n) => {
|
|
987
|
+
const i = `${Ne("item")} ${r.className}`;
|
|
988
|
+
return r.render ? /* @__PURE__ */ x.jsx("span", { className: i, children: r.render() }, n) : /* @__PURE__ */ x.jsx(
|
|
989
|
+
Or,
|
|
677
990
|
{
|
|
678
|
-
className:
|
|
679
|
-
...
|
|
680
|
-
type:
|
|
681
|
-
onClick:
|
|
682
|
-
children:
|
|
991
|
+
className: i,
|
|
992
|
+
...r.btnProps,
|
|
993
|
+
type: r.type || "primary",
|
|
994
|
+
onClick: r.onClick,
|
|
995
|
+
children: r.label
|
|
683
996
|
},
|
|
684
|
-
|
|
997
|
+
r.label
|
|
685
998
|
);
|
|
686
999
|
}) }) }) : null;
|
|
687
|
-
const
|
|
1000
|
+
const Z = (o = "") => ze("m-breadcrumb", o), Gr = (o) => {
|
|
688
1001
|
const {
|
|
689
|
-
routes:
|
|
690
|
-
customItems:
|
|
691
|
-
style:
|
|
692
|
-
className:
|
|
693
|
-
offsetTop:
|
|
694
|
-
mainAppBaseUrl:
|
|
695
|
-
microAppName:
|
|
696
|
-
} =
|
|
697
|
-
var
|
|
698
|
-
(
|
|
1002
|
+
routes: r,
|
|
1003
|
+
customItems: n,
|
|
1004
|
+
style: i,
|
|
1005
|
+
className: s,
|
|
1006
|
+
offsetTop: f = 64,
|
|
1007
|
+
mainAppBaseUrl: l,
|
|
1008
|
+
microAppName: u
|
|
1009
|
+
} = o, d = q.useRef(null), R = q.useCallback(() => {
|
|
1010
|
+
var b, T;
|
|
1011
|
+
(T = (b = d.current) == null ? void 0 : b.updatePosition) == null || T.call(b);
|
|
699
1012
|
}, []);
|
|
700
|
-
|
|
701
|
-
const
|
|
702
|
-
(
|
|
703
|
-
if (!
|
|
1013
|
+
q.useEffect(() => (window.addEventListener("scroll", R, !0), () => window.removeEventListener("scroll", R)), [R]);
|
|
1014
|
+
const E = q.useCallback(
|
|
1015
|
+
(b) => {
|
|
1016
|
+
if (!b)
|
|
704
1017
|
return "";
|
|
705
|
-
const
|
|
1018
|
+
const T = b.replace(/^\/+/, "");
|
|
706
1019
|
return `/${[
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
1020
|
+
l == null ? void 0 : l.replace(/\/+$/, ""),
|
|
1021
|
+
u == null ? void 0 : u.replace(/\/+$/, ""),
|
|
1022
|
+
T
|
|
710
1023
|
].filter(Boolean).join("/")}`;
|
|
711
1024
|
},
|
|
712
|
-
[
|
|
1025
|
+
[l, u]
|
|
713
1026
|
);
|
|
714
|
-
return /* @__PURE__ */
|
|
715
|
-
|
|
1027
|
+
return /* @__PURE__ */ x.jsx(X, { children: /* @__PURE__ */ x.jsx("div", { className: `${Z()} ${s || ""}`, style: i, children: /* @__PURE__ */ x.jsx($r, { ref: d, offsetTop: f, children: /* @__PURE__ */ x.jsxs(
|
|
1028
|
+
Ar,
|
|
716
1029
|
{
|
|
717
|
-
className:
|
|
718
|
-
rootClassName:
|
|
1030
|
+
className: Z("container"),
|
|
1031
|
+
rootClassName: Z("body"),
|
|
719
1032
|
variant: "borderless",
|
|
720
1033
|
children: [
|
|
721
|
-
/* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
1034
|
+
/* @__PURE__ */ x.jsx(ke, { className: Z("inner-breadcrumb"), style: { fontSize: "18px" }, children: r == null ? void 0 : r.map((b) => /* @__PURE__ */ x.jsx(ke.Item, { children: b.url ? /* @__PURE__ */ x.jsx("a", { href: `#${E(b.url)}`, children: b.name }) : b.name }, b.url || b.name)) }),
|
|
1035
|
+
/* @__PURE__ */ x.jsx("div", { className: Z("custom-item-wrapper"), children: /* @__PURE__ */ x.jsx(Ir, { items: n }) })
|
|
723
1036
|
]
|
|
724
1037
|
}
|
|
725
1038
|
) }) }) });
|
|
726
|
-
},
|
|
1039
|
+
}, Nr = (o) => {
|
|
727
1040
|
const {
|
|
728
|
-
data:
|
|
729
|
-
title:
|
|
730
|
-
column:
|
|
731
|
-
lineHeight:
|
|
732
|
-
align:
|
|
733
|
-
itemLayout:
|
|
734
|
-
colon:
|
|
735
|
-
bordered:
|
|
736
|
-
style:
|
|
737
|
-
className:
|
|
738
|
-
labelStyle:
|
|
739
|
-
contentStyle:
|
|
740
|
-
} =
|
|
741
|
-
...
|
|
742
|
-
textAlign:
|
|
743
|
-
...
|
|
744
|
-
...
|
|
1041
|
+
data: r,
|
|
1042
|
+
title: n,
|
|
1043
|
+
column: i = 3,
|
|
1044
|
+
lineHeight: s,
|
|
1045
|
+
align: f = "left",
|
|
1046
|
+
itemLayout: l,
|
|
1047
|
+
colon: u = !0,
|
|
1048
|
+
bordered: d = !1,
|
|
1049
|
+
style: R,
|
|
1050
|
+
className: E,
|
|
1051
|
+
labelStyle: b,
|
|
1052
|
+
contentStyle: T
|
|
1053
|
+
} = o, D = {
|
|
1054
|
+
...s ? { lineHeight: `${s}px` } : {},
|
|
1055
|
+
textAlign: f,
|
|
1056
|
+
...l != null && l.label ? { width: `${l.label}px` } : {},
|
|
1057
|
+
...b
|
|
745
1058
|
}, U = {
|
|
746
|
-
...
|
|
747
|
-
...
|
|
748
|
-
...
|
|
1059
|
+
...s ? { lineHeight: `${s}px` } : {},
|
|
1060
|
+
...l != null && l.value ? { width: `${l.value}px` } : {},
|
|
1061
|
+
...T
|
|
749
1062
|
};
|
|
750
|
-
return /* @__PURE__ */
|
|
751
|
-
|
|
1063
|
+
return /* @__PURE__ */ x.jsx(X, { children: /* @__PURE__ */ x.jsx(
|
|
1064
|
+
Ye,
|
|
752
1065
|
{
|
|
753
|
-
title:
|
|
754
|
-
column:
|
|
755
|
-
colon:
|
|
756
|
-
bordered:
|
|
757
|
-
style:
|
|
758
|
-
className:
|
|
759
|
-
labelStyle:
|
|
1066
|
+
title: n,
|
|
1067
|
+
column: i,
|
|
1068
|
+
colon: u,
|
|
1069
|
+
bordered: d,
|
|
1070
|
+
style: R,
|
|
1071
|
+
className: E,
|
|
1072
|
+
labelStyle: D,
|
|
760
1073
|
contentStyle: U,
|
|
761
|
-
children:
|
|
762
|
-
var
|
|
763
|
-
return /* @__PURE__ */
|
|
764
|
-
|
|
1074
|
+
children: r.map((Y, Q) => {
|
|
1075
|
+
var A;
|
|
1076
|
+
return /* @__PURE__ */ x.jsx(
|
|
1077
|
+
Ye.Item,
|
|
765
1078
|
{
|
|
766
|
-
label:
|
|
767
|
-
span:
|
|
768
|
-
children:
|
|
1079
|
+
label: Y.label,
|
|
1080
|
+
span: Y.span,
|
|
1081
|
+
children: Y.value || "-"
|
|
769
1082
|
},
|
|
770
|
-
((
|
|
1083
|
+
((A = Y.label) == null ? void 0 : A.toString()) || Q
|
|
771
1084
|
);
|
|
772
1085
|
})
|
|
773
1086
|
}
|
|
774
1087
|
) });
|
|
775
1088
|
};
|
|
776
|
-
|
|
777
|
-
function
|
|
778
|
-
var
|
|
779
|
-
const
|
|
780
|
-
return /* @__PURE__ */
|
|
781
|
-
/* @__PURE__ */
|
|
1089
|
+
Nr.displayName = "MDescriptions";
|
|
1090
|
+
function Xr(o) {
|
|
1091
|
+
var n;
|
|
1092
|
+
const r = ((n = o.columns) == null ? void 0 : n.map((i) => ({ ...i, dataIndex: i.key }))) ?? [];
|
|
1093
|
+
return /* @__PURE__ */ x.jsxs(X, { children: [
|
|
1094
|
+
/* @__PURE__ */ x.jsx(Dr, { rowKey: (i) => i.id, ...o, columns: r }),
|
|
782
1095
|
";"
|
|
783
1096
|
] });
|
|
784
1097
|
}
|
|
785
|
-
const
|
|
1098
|
+
const Qr = {
|
|
786
1099
|
YMD_Hms: "YYYY-MM-DD HH:mm:ss",
|
|
787
1100
|
YMD: "YYYY-MM-DD",
|
|
788
1101
|
YMD2: "YYYYMMDD",
|
|
@@ -792,41 +1105,51 @@ const zr = {
|
|
|
792
1105
|
YMD_000: "YYYY-MM-DD 00:00:00",
|
|
793
1106
|
YMD_end: "YYYY-MM-DD 23:59:59",
|
|
794
1107
|
YMD_Hm: "YYYYMMDD HHmm"
|
|
795
|
-
},
|
|
796
|
-
class
|
|
1108
|
+
}, et = 10;
|
|
1109
|
+
class _ {
|
|
797
1110
|
}
|
|
798
1111
|
// 整数
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
1112
|
+
p(_, "integerRegex", /^-?\d+$/), // 正整数
|
|
1113
|
+
p(_, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
|
|
1114
|
+
p(_, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
|
|
1115
|
+
p(_, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
|
|
1116
|
+
p(_, "letter", /^[a-zA-Z]+$/), // 汉字
|
|
1117
|
+
p(_, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
|
|
1118
|
+
p(_, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
|
|
1119
|
+
p(_, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
|
|
1120
|
+
p(_, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
|
|
1121
|
+
p(_, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
|
|
1122
|
+
p(_, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
|
|
1123
|
+
p(_, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
|
|
1124
|
+
p(_, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
|
|
1125
|
+
p(_, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
|
|
1126
|
+
p(_, "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)$/), // 银行卡
|
|
1127
|
+
p(_, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
|
|
1128
|
+
p(_, "zipCode", /^[1-9]\d{5}$/), // IP
|
|
1129
|
+
p(_, "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])$/), // URL
|
|
1130
|
+
p(_, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
|
|
1131
|
+
p(_, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
|
|
1132
|
+
p(_, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
|
|
1133
|
+
p(_, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
|
|
821
1134
|
export {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
1135
|
+
X as CompThemeProvider,
|
|
1136
|
+
Qr as DATE_FORMAT,
|
|
1137
|
+
Ir as ItemsRow,
|
|
1138
|
+
Gr as MBreadcrumb,
|
|
1139
|
+
Nr as MDescriptions,
|
|
1140
|
+
Xr as MTable,
|
|
1141
|
+
qr as MiThemeProvider,
|
|
1142
|
+
G as NextTick,
|
|
1143
|
+
et as PAGE_SIZE,
|
|
1144
|
+
_ as PatternType,
|
|
1145
|
+
Kr as VersionUtil,
|
|
1146
|
+
Wr as cmx,
|
|
1147
|
+
Br as debounce,
|
|
1148
|
+
ze as getClassName,
|
|
1149
|
+
Ur as getFieldsByPath,
|
|
1150
|
+
Zr as nextTick,
|
|
1151
|
+
Hr as noop,
|
|
1152
|
+
Lr as removeNull,
|
|
1153
|
+
Jr as throttle,
|
|
1154
|
+
Mr as useMiThemeConfig
|
|
832
1155
|
};
|