@akinon/ui-layout 0.0.2 → 0.2.0
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/cjs/Content.d.ts.map +1 -0
- package/dist/cjs/Content.js +9 -0
- package/dist/cjs/Flex.d.ts +4 -0
- package/dist/cjs/Flex.d.ts.map +1 -0
- package/dist/cjs/Flex.js +5 -0
- package/dist/cjs/Footer.d.ts.map +1 -0
- package/dist/cjs/Footer.js +9 -0
- package/dist/cjs/Grid.d.ts +4 -0
- package/dist/cjs/Grid.d.ts.map +1 -0
- package/dist/cjs/Grid.js +6 -0
- package/dist/cjs/Header.d.ts.map +1 -0
- package/dist/cjs/Header.js +9 -0
- package/dist/{Layout.d.ts → cjs/Layout.d.ts} +0 -1
- package/dist/cjs/Layout.d.ts.map +1 -0
- package/dist/cjs/Layout.js +9 -0
- package/dist/{Sider.d.ts → cjs/Sider.d.ts} +1 -0
- package/dist/cjs/Sider.d.ts.map +1 -0
- package/dist/cjs/Sider.js +18 -0
- package/dist/cjs/index.css +56 -0
- package/dist/{index.d.ts → cjs/index.d.ts} +3 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +32 -0
- package/dist/esm/Content.d.ts +6 -0
- package/dist/esm/Content.d.ts.map +1 -0
- package/dist/esm/Content.js +5 -0
- package/dist/esm/Flex.d.ts +4 -0
- package/dist/esm/Flex.d.ts.map +1 -0
- package/dist/esm/Flex.js +2 -0
- package/dist/esm/Footer.d.ts +6 -0
- package/dist/esm/Footer.d.ts.map +1 -0
- package/dist/esm/Footer.js +5 -0
- package/dist/esm/Grid.d.ts +4 -0
- package/dist/esm/Grid.d.ts.map +1 -0
- package/dist/esm/Grid.js +2 -0
- package/dist/esm/Header.d.ts +6 -0
- package/dist/esm/Header.d.ts.map +1 -0
- package/dist/esm/Header.js +5 -0
- package/dist/esm/Layout.d.ts +6 -0
- package/dist/esm/Layout.d.ts.map +1 -0
- package/dist/esm/Layout.js +5 -0
- package/dist/esm/Sider.d.ts +12 -0
- package/dist/esm/Sider.d.ts.map +1 -0
- package/dist/esm/Sider.js +14 -0
- package/dist/esm/index.css +56 -0
- package/dist/esm/index.d.ts +27 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +15 -0
- package/package.json +18 -11
- package/dist/Content.d.ts.map +0 -1
- package/dist/Footer.d.ts.map +0 -1
- package/dist/Header.d.ts.map +0 -1
- package/dist/Layout.d.ts.map +0 -1
- package/dist/Sider.d.ts.map +0 -1
- package/dist/index.cjs +0 -119
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -4855
- /package/dist/{Content.d.ts → cjs/Content.d.ts} +0 -0
- /package/dist/{Footer.d.ts → cjs/Footer.d.ts} +0 -0
- /package/dist/{Header.d.ts → cjs/Header.d.ts} +0 -0
package/dist/index.js
DELETED
|
@@ -1,4855 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("body{padding:0;margin:0}.ant-layout:not(.ant-layout-has-sider){border-inline:1px solid var(--color-gray-900)}.ant-layout .ant-layout-header{padding-inline:1rem;height:3.5rem;border-bottom:1px solid var(--color-gray-900);display:flex;align-items:center;justify-content:space-between;line-height:unset;position:sticky;top:0;z-index:1}.ant-layout .ant-layout-sider{position:sticky;top:0;height:100vh;overflow-y:auto}.ant-layout .ant-layout-sider.left{inset-inline-start:0}.ant-layout .ant-layout-sider.right{inset-inline-end:0}.ant-layout .ant-layout-sider .logo-container{display:flex;flex-direction:row;justify-content:center;align-items:center;height:3.5rem;gap:.8rem}.ant-layout .ant-layout-sider .logo-container.collapsed .brand-image{display:none}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { jsx as qe, jsxs as pn } from "react/jsx-runtime";
|
|
3
|
-
import * as g from "react";
|
|
4
|
-
import Qe, { useContext as Ie, createContext as Ur, useRef as ke, useLayoutEffect as Za, useEffect as Pe, useState as hn } from "react";
|
|
5
|
-
import ei from "react-dom";
|
|
6
|
-
function ti(e) {
|
|
7
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
|
-
}
|
|
9
|
-
var co = { exports: {} };
|
|
10
|
-
/*!
|
|
11
|
-
Copyright (c) 2018 Jed Watson.
|
|
12
|
-
Licensed under the MIT License (MIT), see
|
|
13
|
-
http://jedwatson.github.io/classnames
|
|
14
|
-
*/
|
|
15
|
-
(function(e) {
|
|
16
|
-
(function() {
|
|
17
|
-
var t = {}.hasOwnProperty;
|
|
18
|
-
function r() {
|
|
19
|
-
for (var n = [], o = 0; o < arguments.length; o++) {
|
|
20
|
-
var a = arguments[o];
|
|
21
|
-
if (a) {
|
|
22
|
-
var i = typeof a;
|
|
23
|
-
if (i === "string" || i === "number")
|
|
24
|
-
n.push(a);
|
|
25
|
-
else if (Array.isArray(a)) {
|
|
26
|
-
if (a.length) {
|
|
27
|
-
var c = r.apply(null, a);
|
|
28
|
-
c && n.push(c);
|
|
29
|
-
}
|
|
30
|
-
} else if (i === "object") {
|
|
31
|
-
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]")) {
|
|
32
|
-
n.push(a.toString());
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
for (var s in a)
|
|
36
|
-
t.call(a, s) && a[s] && n.push(s);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return n.join(" ");
|
|
41
|
-
}
|
|
42
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
43
|
-
})();
|
|
44
|
-
})(co);
|
|
45
|
-
var ri = co.exports;
|
|
46
|
-
const Je = /* @__PURE__ */ ti(ri);
|
|
47
|
-
function Dt() {
|
|
48
|
-
return Dt = Object.assign ? Object.assign.bind() : function(e) {
|
|
49
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
50
|
-
var r = arguments[t];
|
|
51
|
-
for (var n in r)
|
|
52
|
-
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
53
|
-
}
|
|
54
|
-
return e;
|
|
55
|
-
}, Dt.apply(this, arguments);
|
|
56
|
-
}
|
|
57
|
-
var gr = { exports: {} }, N = {};
|
|
58
|
-
/**
|
|
59
|
-
* @license React
|
|
60
|
-
* react-is.production.min.js
|
|
61
|
-
*
|
|
62
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the MIT license found in the
|
|
65
|
-
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/
|
|
67
|
-
var mn;
|
|
68
|
-
function ni() {
|
|
69
|
-
if (mn)
|
|
70
|
-
return N;
|
|
71
|
-
mn = 1;
|
|
72
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.server_context"), s = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b;
|
|
73
|
-
b = Symbol.for("react.module.reference");
|
|
74
|
-
function p(d) {
|
|
75
|
-
if (typeof d == "object" && d !== null) {
|
|
76
|
-
var S = d.$$typeof;
|
|
77
|
-
switch (S) {
|
|
78
|
-
case e:
|
|
79
|
-
switch (d = d.type, d) {
|
|
80
|
-
case r:
|
|
81
|
-
case o:
|
|
82
|
-
case n:
|
|
83
|
-
case l:
|
|
84
|
-
case f:
|
|
85
|
-
return d;
|
|
86
|
-
default:
|
|
87
|
-
switch (d = d && d.$$typeof, d) {
|
|
88
|
-
case c:
|
|
89
|
-
case i:
|
|
90
|
-
case s:
|
|
91
|
-
case v:
|
|
92
|
-
case u:
|
|
93
|
-
case a:
|
|
94
|
-
return d;
|
|
95
|
-
default:
|
|
96
|
-
return S;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
case t:
|
|
100
|
-
return S;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return N.ContextConsumer = i, N.ContextProvider = a, N.Element = e, N.ForwardRef = s, N.Fragment = r, N.Lazy = v, N.Memo = u, N.Portal = t, N.Profiler = o, N.StrictMode = n, N.Suspense = l, N.SuspenseList = f, N.isAsyncMode = function() {
|
|
105
|
-
return !1;
|
|
106
|
-
}, N.isConcurrentMode = function() {
|
|
107
|
-
return !1;
|
|
108
|
-
}, N.isContextConsumer = function(d) {
|
|
109
|
-
return p(d) === i;
|
|
110
|
-
}, N.isContextProvider = function(d) {
|
|
111
|
-
return p(d) === a;
|
|
112
|
-
}, N.isElement = function(d) {
|
|
113
|
-
return typeof d == "object" && d !== null && d.$$typeof === e;
|
|
114
|
-
}, N.isForwardRef = function(d) {
|
|
115
|
-
return p(d) === s;
|
|
116
|
-
}, N.isFragment = function(d) {
|
|
117
|
-
return p(d) === r;
|
|
118
|
-
}, N.isLazy = function(d) {
|
|
119
|
-
return p(d) === v;
|
|
120
|
-
}, N.isMemo = function(d) {
|
|
121
|
-
return p(d) === u;
|
|
122
|
-
}, N.isPortal = function(d) {
|
|
123
|
-
return p(d) === t;
|
|
124
|
-
}, N.isProfiler = function(d) {
|
|
125
|
-
return p(d) === o;
|
|
126
|
-
}, N.isStrictMode = function(d) {
|
|
127
|
-
return p(d) === n;
|
|
128
|
-
}, N.isSuspense = function(d) {
|
|
129
|
-
return p(d) === l;
|
|
130
|
-
}, N.isSuspenseList = function(d) {
|
|
131
|
-
return p(d) === f;
|
|
132
|
-
}, N.isValidElementType = function(d) {
|
|
133
|
-
return typeof d == "string" || typeof d == "function" || d === r || d === o || d === n || d === l || d === f || d === h || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === u || d.$$typeof === a || d.$$typeof === i || d.$$typeof === s || d.$$typeof === b || d.getModuleId !== void 0);
|
|
134
|
-
}, N.typeOf = p, N;
|
|
135
|
-
}
|
|
136
|
-
var j = {};
|
|
137
|
-
/**
|
|
138
|
-
* @license React
|
|
139
|
-
* react-is.development.js
|
|
140
|
-
*
|
|
141
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the MIT license found in the
|
|
144
|
-
* LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/
|
|
146
|
-
var bn;
|
|
147
|
-
function oi() {
|
|
148
|
-
return bn || (bn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
149
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.server_context"), s = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = !1, p = !1, d = !1, S = !1, m = !1, w;
|
|
150
|
-
w = Symbol.for("react.module.reference");
|
|
151
|
-
function O(E) {
|
|
152
|
-
return !!(typeof E == "string" || typeof E == "function" || E === r || E === o || m || E === n || E === l || E === f || S || E === h || b || p || d || typeof E == "object" && E !== null && (E.$$typeof === v || E.$$typeof === u || E.$$typeof === a || E.$$typeof === i || E.$$typeof === s || // This needs to include all possible module reference object
|
|
153
|
-
// types supported by any Flight configuration anywhere since
|
|
154
|
-
// we don't know which Flight build this will end up being used
|
|
155
|
-
// with.
|
|
156
|
-
E.$$typeof === w || E.getModuleId !== void 0));
|
|
157
|
-
}
|
|
158
|
-
function C(E) {
|
|
159
|
-
if (typeof E == "object" && E !== null) {
|
|
160
|
-
var ne = E.$$typeof;
|
|
161
|
-
switch (ne) {
|
|
162
|
-
case e:
|
|
163
|
-
var Ce = E.type;
|
|
164
|
-
switch (Ce) {
|
|
165
|
-
case r:
|
|
166
|
-
case o:
|
|
167
|
-
case n:
|
|
168
|
-
case l:
|
|
169
|
-
case f:
|
|
170
|
-
return Ce;
|
|
171
|
-
default:
|
|
172
|
-
var Te = Ce && Ce.$$typeof;
|
|
173
|
-
switch (Te) {
|
|
174
|
-
case c:
|
|
175
|
-
case i:
|
|
176
|
-
case s:
|
|
177
|
-
case v:
|
|
178
|
-
case u:
|
|
179
|
-
case a:
|
|
180
|
-
return Te;
|
|
181
|
-
default:
|
|
182
|
-
return ne;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
case t:
|
|
186
|
-
return ne;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var T = i, y = a, M = e, I = s, k = r, $ = v, R = u, x = t, A = o, P = n, L = l, B = f, U = !1, z = !1;
|
|
191
|
-
function F(E) {
|
|
192
|
-
return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
193
|
-
}
|
|
194
|
-
function Y(E) {
|
|
195
|
-
return z || (z = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
196
|
-
}
|
|
197
|
-
function W(E) {
|
|
198
|
-
return C(E) === i;
|
|
199
|
-
}
|
|
200
|
-
function te(E) {
|
|
201
|
-
return C(E) === a;
|
|
202
|
-
}
|
|
203
|
-
function re(E) {
|
|
204
|
-
return typeof E == "object" && E !== null && E.$$typeof === e;
|
|
205
|
-
}
|
|
206
|
-
function de(E) {
|
|
207
|
-
return C(E) === s;
|
|
208
|
-
}
|
|
209
|
-
function ze(E) {
|
|
210
|
-
return C(E) === r;
|
|
211
|
-
}
|
|
212
|
-
function nt(E) {
|
|
213
|
-
return C(E) === v;
|
|
214
|
-
}
|
|
215
|
-
function ot(E) {
|
|
216
|
-
return C(E) === u;
|
|
217
|
-
}
|
|
218
|
-
function at(E) {
|
|
219
|
-
return C(E) === t;
|
|
220
|
-
}
|
|
221
|
-
function Fe(E) {
|
|
222
|
-
return C(E) === o;
|
|
223
|
-
}
|
|
224
|
-
function he(E) {
|
|
225
|
-
return C(E) === n;
|
|
226
|
-
}
|
|
227
|
-
function it(E) {
|
|
228
|
-
return C(E) === l;
|
|
229
|
-
}
|
|
230
|
-
function We(E) {
|
|
231
|
-
return C(E) === f;
|
|
232
|
-
}
|
|
233
|
-
j.ContextConsumer = T, j.ContextProvider = y, j.Element = M, j.ForwardRef = I, j.Fragment = k, j.Lazy = $, j.Memo = R, j.Portal = x, j.Profiler = A, j.StrictMode = P, j.Suspense = L, j.SuspenseList = B, j.isAsyncMode = F, j.isConcurrentMode = Y, j.isContextConsumer = W, j.isContextProvider = te, j.isElement = re, j.isForwardRef = de, j.isFragment = ze, j.isLazy = nt, j.isMemo = ot, j.isPortal = at, j.isProfiler = Fe, j.isStrictMode = he, j.isSuspense = it, j.isSuspenseList = We, j.isValidElementType = O, j.typeOf = C;
|
|
234
|
-
}()), j;
|
|
235
|
-
}
|
|
236
|
-
process.env.NODE_ENV === "production" ? gr.exports = ni() : gr.exports = oi();
|
|
237
|
-
var so = gr.exports;
|
|
238
|
-
function vr(e) {
|
|
239
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
|
|
240
|
-
return Qe.Children.forEach(e, function(n) {
|
|
241
|
-
n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(vr(n)) : so.isFragment(n) && n.props ? r = r.concat(vr(n.props.children, t)) : r.push(n));
|
|
242
|
-
}), r;
|
|
243
|
-
}
|
|
244
|
-
var pr = {}, Xr = [], ai = function(t) {
|
|
245
|
-
Xr.push(t);
|
|
246
|
-
};
|
|
247
|
-
function Gr(e, t) {
|
|
248
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
249
|
-
var r = Xr.reduce(function(n, o) {
|
|
250
|
-
return o(n ?? "", "warning");
|
|
251
|
-
}, t);
|
|
252
|
-
r && console.error("Warning: ".concat(r));
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
function ii(e, t) {
|
|
256
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
257
|
-
var r = Xr.reduce(function(n, o) {
|
|
258
|
-
return o(n ?? "", "note");
|
|
259
|
-
}, t);
|
|
260
|
-
r && console.warn("Note: ".concat(r));
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
function lo() {
|
|
264
|
-
pr = {};
|
|
265
|
-
}
|
|
266
|
-
function uo(e, t, r) {
|
|
267
|
-
!t && !pr[r] && (e(!1, r), pr[r] = !0);
|
|
268
|
-
}
|
|
269
|
-
function Be(e, t) {
|
|
270
|
-
uo(Gr, e, t);
|
|
271
|
-
}
|
|
272
|
-
function ci(e, t) {
|
|
273
|
-
uo(ii, e, t);
|
|
274
|
-
}
|
|
275
|
-
Be.preMessage = ai;
|
|
276
|
-
Be.resetWarned = lo;
|
|
277
|
-
Be.noteOnce = ci;
|
|
278
|
-
function G(e) {
|
|
279
|
-
"@babel/helpers - typeof";
|
|
280
|
-
return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
281
|
-
return typeof t;
|
|
282
|
-
} : function(t) {
|
|
283
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
284
|
-
}, G(e);
|
|
285
|
-
}
|
|
286
|
-
function si(e, t) {
|
|
287
|
-
if (G(e) !== "object" || e === null)
|
|
288
|
-
return e;
|
|
289
|
-
var r = e[Symbol.toPrimitive];
|
|
290
|
-
if (r !== void 0) {
|
|
291
|
-
var n = r.call(e, t || "default");
|
|
292
|
-
if (G(n) !== "object")
|
|
293
|
-
return n;
|
|
294
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
295
|
-
}
|
|
296
|
-
return (t === "string" ? String : Number)(e);
|
|
297
|
-
}
|
|
298
|
-
function fo(e) {
|
|
299
|
-
var t = si(e, "string");
|
|
300
|
-
return G(t) === "symbol" ? t : String(t);
|
|
301
|
-
}
|
|
302
|
-
function H(e, t, r) {
|
|
303
|
-
return t = fo(t), t in e ? Object.defineProperty(e, t, {
|
|
304
|
-
value: r,
|
|
305
|
-
enumerable: !0,
|
|
306
|
-
configurable: !0,
|
|
307
|
-
writable: !0
|
|
308
|
-
}) : e[t] = r, e;
|
|
309
|
-
}
|
|
310
|
-
function yn(e, t) {
|
|
311
|
-
var r = Object.keys(e);
|
|
312
|
-
if (Object.getOwnPropertySymbols) {
|
|
313
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
314
|
-
t && (n = n.filter(function(o) {
|
|
315
|
-
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
316
|
-
})), r.push.apply(r, n);
|
|
317
|
-
}
|
|
318
|
-
return r;
|
|
319
|
-
}
|
|
320
|
-
function _(e) {
|
|
321
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
322
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
323
|
-
t % 2 ? yn(Object(r), !0).forEach(function(n) {
|
|
324
|
-
H(e, n, r[n]);
|
|
325
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : yn(Object(r)).forEach(function(n) {
|
|
326
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
return e;
|
|
330
|
-
}
|
|
331
|
-
function li(e) {
|
|
332
|
-
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
333
|
-
}
|
|
334
|
-
function ui(e) {
|
|
335
|
-
return li(e) ? e : e instanceof Qe.Component ? ei.findDOMNode(e) : null;
|
|
336
|
-
}
|
|
337
|
-
function go(e, t, r) {
|
|
338
|
-
var n = g.useRef({});
|
|
339
|
-
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
|
340
|
-
}
|
|
341
|
-
function fi(e, t) {
|
|
342
|
-
typeof e == "function" ? e(t) : G(e) === "object" && e && "current" in e && (e.current = t);
|
|
343
|
-
}
|
|
344
|
-
function di(e) {
|
|
345
|
-
var t, r, n = so.isMemo(e) ? e.type.type : e.type;
|
|
346
|
-
return !(typeof n == "function" && !((t = n.prototype) !== null && t !== void 0 && t.render) || typeof e == "function" && !((r = e.prototype) !== null && r !== void 0 && r.render));
|
|
347
|
-
}
|
|
348
|
-
function ht(e, t) {
|
|
349
|
-
if (!(e instanceof t))
|
|
350
|
-
throw new TypeError("Cannot call a class as a function");
|
|
351
|
-
}
|
|
352
|
-
function Sn(e, t) {
|
|
353
|
-
for (var r = 0; r < t.length; r++) {
|
|
354
|
-
var n = t[r];
|
|
355
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, fo(n.key), n);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function mt(e, t, r) {
|
|
359
|
-
return t && Sn(e.prototype, t), r && Sn(e, r), Object.defineProperty(e, "prototype", {
|
|
360
|
-
writable: !1
|
|
361
|
-
}), e;
|
|
362
|
-
}
|
|
363
|
-
function hr(e, t) {
|
|
364
|
-
return hr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
365
|
-
return n.__proto__ = o, n;
|
|
366
|
-
}, hr(e, t);
|
|
367
|
-
}
|
|
368
|
-
function vo(e, t) {
|
|
369
|
-
if (typeof t != "function" && t !== null)
|
|
370
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
371
|
-
e.prototype = Object.create(t && t.prototype, {
|
|
372
|
-
constructor: {
|
|
373
|
-
value: e,
|
|
374
|
-
writable: !0,
|
|
375
|
-
configurable: !0
|
|
376
|
-
}
|
|
377
|
-
}), Object.defineProperty(e, "prototype", {
|
|
378
|
-
writable: !1
|
|
379
|
-
}), t && hr(e, t);
|
|
380
|
-
}
|
|
381
|
-
function Bt(e) {
|
|
382
|
-
return Bt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
383
|
-
return r.__proto__ || Object.getPrototypeOf(r);
|
|
384
|
-
}, Bt(e);
|
|
385
|
-
}
|
|
386
|
-
function gi() {
|
|
387
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
388
|
-
return !1;
|
|
389
|
-
if (typeof Proxy == "function")
|
|
390
|
-
return !0;
|
|
391
|
-
try {
|
|
392
|
-
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
393
|
-
})), !0;
|
|
394
|
-
} catch {
|
|
395
|
-
return !1;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
function mr(e) {
|
|
399
|
-
if (e === void 0)
|
|
400
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
401
|
-
return e;
|
|
402
|
-
}
|
|
403
|
-
function vi(e, t) {
|
|
404
|
-
if (t && (G(t) === "object" || typeof t == "function"))
|
|
405
|
-
return t;
|
|
406
|
-
if (t !== void 0)
|
|
407
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
408
|
-
return mr(e);
|
|
409
|
-
}
|
|
410
|
-
function po(e) {
|
|
411
|
-
var t = gi();
|
|
412
|
-
return function() {
|
|
413
|
-
var n = Bt(e), o;
|
|
414
|
-
if (t) {
|
|
415
|
-
var a = Bt(this).constructor;
|
|
416
|
-
o = Reflect.construct(n, arguments, a);
|
|
417
|
-
} else
|
|
418
|
-
o = n.apply(this, arguments);
|
|
419
|
-
return vi(this, o);
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
function ho(e, t) {
|
|
423
|
-
var r = _({}, e);
|
|
424
|
-
return Array.isArray(t) && t.forEach(function(n) {
|
|
425
|
-
delete r[n];
|
|
426
|
-
}), r;
|
|
427
|
-
}
|
|
428
|
-
function br(e, t) {
|
|
429
|
-
(t == null || t > e.length) && (t = e.length);
|
|
430
|
-
for (var r = 0, n = new Array(t); r < t; r++)
|
|
431
|
-
n[r] = e[r];
|
|
432
|
-
return n;
|
|
433
|
-
}
|
|
434
|
-
function pi(e) {
|
|
435
|
-
if (Array.isArray(e))
|
|
436
|
-
return br(e);
|
|
437
|
-
}
|
|
438
|
-
function mo(e) {
|
|
439
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
440
|
-
return Array.from(e);
|
|
441
|
-
}
|
|
442
|
-
function Yr(e, t) {
|
|
443
|
-
if (e) {
|
|
444
|
-
if (typeof e == "string")
|
|
445
|
-
return br(e, t);
|
|
446
|
-
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
447
|
-
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
|
|
448
|
-
return Array.from(e);
|
|
449
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
450
|
-
return br(e, t);
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
function hi() {
|
|
454
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
455
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
456
|
-
}
|
|
457
|
-
function Ee(e) {
|
|
458
|
-
return pi(e) || mo(e) || Yr(e) || hi();
|
|
459
|
-
}
|
|
460
|
-
var bo = function(t) {
|
|
461
|
-
return +setTimeout(t, 16);
|
|
462
|
-
}, yo = function(t) {
|
|
463
|
-
return clearTimeout(t);
|
|
464
|
-
};
|
|
465
|
-
typeof window < "u" && "requestAnimationFrame" in window && (bo = function(t) {
|
|
466
|
-
return window.requestAnimationFrame(t);
|
|
467
|
-
}, yo = function(t) {
|
|
468
|
-
return window.cancelAnimationFrame(t);
|
|
469
|
-
});
|
|
470
|
-
var xn = 0, Kr = /* @__PURE__ */ new Map();
|
|
471
|
-
function So(e) {
|
|
472
|
-
Kr.delete(e);
|
|
473
|
-
}
|
|
474
|
-
var yr = function(t) {
|
|
475
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
476
|
-
xn += 1;
|
|
477
|
-
var n = xn;
|
|
478
|
-
function o(a) {
|
|
479
|
-
if (a === 0)
|
|
480
|
-
So(n), t();
|
|
481
|
-
else {
|
|
482
|
-
var i = bo(function() {
|
|
483
|
-
o(a - 1);
|
|
484
|
-
});
|
|
485
|
-
Kr.set(n, i);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
return o(r), n;
|
|
489
|
-
};
|
|
490
|
-
yr.cancel = function(e) {
|
|
491
|
-
var t = Kr.get(e);
|
|
492
|
-
return So(t), yo(t);
|
|
493
|
-
};
|
|
494
|
-
function qr(e) {
|
|
495
|
-
for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
|
|
496
|
-
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
497
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
498
|
-
r >>> 24, t = /* Math.imul(k, m): */
|
|
499
|
-
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
500
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
501
|
-
switch (o) {
|
|
502
|
-
case 3:
|
|
503
|
-
t ^= (e.charCodeAt(n + 2) & 255) << 16;
|
|
504
|
-
case 2:
|
|
505
|
-
t ^= (e.charCodeAt(n + 1) & 255) << 8;
|
|
506
|
-
case 1:
|
|
507
|
-
t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
|
|
508
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
509
|
-
}
|
|
510
|
-
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
511
|
-
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
512
|
-
}
|
|
513
|
-
function mi(e, t) {
|
|
514
|
-
if (e == null)
|
|
515
|
-
return {};
|
|
516
|
-
var r = {}, n = Object.keys(e), o, a;
|
|
517
|
-
for (a = 0; a < n.length; a++)
|
|
518
|
-
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
519
|
-
return r;
|
|
520
|
-
}
|
|
521
|
-
function Sr(e, t) {
|
|
522
|
-
if (e == null)
|
|
523
|
-
return {};
|
|
524
|
-
var r = mi(e, t), n, o;
|
|
525
|
-
if (Object.getOwnPropertySymbols) {
|
|
526
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
527
|
-
for (o = 0; o < a.length; o++)
|
|
528
|
-
n = a[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
529
|
-
}
|
|
530
|
-
return r;
|
|
531
|
-
}
|
|
532
|
-
function bi(e, t) {
|
|
533
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
|
|
534
|
-
function o(a, i) {
|
|
535
|
-
var c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, s = n.has(a);
|
|
536
|
-
if (Be(!s, "Warning: There may be circular references"), s)
|
|
537
|
-
return !1;
|
|
538
|
-
if (a === i)
|
|
539
|
-
return !0;
|
|
540
|
-
if (r && c > 1)
|
|
541
|
-
return !1;
|
|
542
|
-
n.add(a);
|
|
543
|
-
var l = c + 1;
|
|
544
|
-
if (Array.isArray(a)) {
|
|
545
|
-
if (!Array.isArray(i) || a.length !== i.length)
|
|
546
|
-
return !1;
|
|
547
|
-
for (var f = 0; f < a.length; f++)
|
|
548
|
-
if (!o(a[f], i[f], l))
|
|
549
|
-
return !1;
|
|
550
|
-
return !0;
|
|
551
|
-
}
|
|
552
|
-
if (a && i && G(a) === "object" && G(i) === "object") {
|
|
553
|
-
var u = Object.keys(a);
|
|
554
|
-
return u.length !== Object.keys(i).length ? !1 : u.every(function(v) {
|
|
555
|
-
return o(a[v], i[v], l);
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
return !1;
|
|
559
|
-
}
|
|
560
|
-
return o(e, t);
|
|
561
|
-
}
|
|
562
|
-
var En = "%", yi = /* @__PURE__ */ function() {
|
|
563
|
-
function e(t) {
|
|
564
|
-
ht(this, e), H(this, "instanceId", void 0), H(this, "cache", /* @__PURE__ */ new Map()), this.instanceId = t;
|
|
565
|
-
}
|
|
566
|
-
return mt(e, [{
|
|
567
|
-
key: "get",
|
|
568
|
-
value: function(r) {
|
|
569
|
-
return this.cache.get(r.join(En)) || null;
|
|
570
|
-
}
|
|
571
|
-
}, {
|
|
572
|
-
key: "update",
|
|
573
|
-
value: function(r, n) {
|
|
574
|
-
var o = r.join(En), a = this.cache.get(o), i = n(a);
|
|
575
|
-
i === null ? this.cache.delete(o) : this.cache.set(o, i);
|
|
576
|
-
}
|
|
577
|
-
}]), e;
|
|
578
|
-
}(), xr = "data-token-hash", Ne = "data-css-hash", Si = "data-cache-path", Ge = "__cssinjs_instance__";
|
|
579
|
-
function xi() {
|
|
580
|
-
var e = Math.random().toString(12).slice(2);
|
|
581
|
-
if (typeof document < "u" && document.head && document.body) {
|
|
582
|
-
var t = document.body.querySelectorAll("style[".concat(Ne, "]")) || [], r = document.head.firstChild;
|
|
583
|
-
Array.from(t).forEach(function(o) {
|
|
584
|
-
o[Ge] = o[Ge] || e, o[Ge] === e && document.head.insertBefore(o, r);
|
|
585
|
-
});
|
|
586
|
-
var n = {};
|
|
587
|
-
Array.from(document.querySelectorAll("style[".concat(Ne, "]"))).forEach(function(o) {
|
|
588
|
-
var a = o.getAttribute(Ne);
|
|
589
|
-
if (n[a]) {
|
|
590
|
-
if (o[Ge] === e) {
|
|
591
|
-
var i;
|
|
592
|
-
(i = o.parentNode) === null || i === void 0 || i.removeChild(o);
|
|
593
|
-
}
|
|
594
|
-
} else
|
|
595
|
-
n[a] = !0;
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
return new yi(e);
|
|
599
|
-
}
|
|
600
|
-
var Qr = /* @__PURE__ */ g.createContext({
|
|
601
|
-
hashPriority: "low",
|
|
602
|
-
cache: xi(),
|
|
603
|
-
defaultCache: !0
|
|
604
|
-
});
|
|
605
|
-
function pe() {
|
|
606
|
-
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
607
|
-
}
|
|
608
|
-
function Ei(e, t) {
|
|
609
|
-
if (!e)
|
|
610
|
-
return !1;
|
|
611
|
-
if (e.contains)
|
|
612
|
-
return e.contains(t);
|
|
613
|
-
for (var r = t; r; ) {
|
|
614
|
-
if (r === e)
|
|
615
|
-
return !0;
|
|
616
|
-
r = r.parentNode;
|
|
617
|
-
}
|
|
618
|
-
return !1;
|
|
619
|
-
}
|
|
620
|
-
var Cn = "data-rc-order", Tn = "data-rc-priority", Ci = "rc-util-key", Er = /* @__PURE__ */ new Map();
|
|
621
|
-
function xo() {
|
|
622
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
|
623
|
-
return t ? t.startsWith("data-") ? t : "data-".concat(t) : Ci;
|
|
624
|
-
}
|
|
625
|
-
function Wt(e) {
|
|
626
|
-
if (e.attachTo)
|
|
627
|
-
return e.attachTo;
|
|
628
|
-
var t = document.querySelector("head");
|
|
629
|
-
return t || document.body;
|
|
630
|
-
}
|
|
631
|
-
function Ti(e) {
|
|
632
|
-
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
633
|
-
}
|
|
634
|
-
function Eo(e) {
|
|
635
|
-
return Array.from((Er.get(e) || e).children).filter(function(t) {
|
|
636
|
-
return t.tagName === "STYLE";
|
|
637
|
-
});
|
|
638
|
-
}
|
|
639
|
-
function Co(e) {
|
|
640
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
641
|
-
if (!pe())
|
|
642
|
-
return null;
|
|
643
|
-
var r = t.csp, n = t.prepend, o = t.priority, a = o === void 0 ? 0 : o, i = Ti(n), c = i === "prependQueue", s = document.createElement("style");
|
|
644
|
-
s.setAttribute(Cn, i), c && a && s.setAttribute(Tn, "".concat(a)), r != null && r.nonce && (s.nonce = r == null ? void 0 : r.nonce), s.innerHTML = e;
|
|
645
|
-
var l = Wt(t), f = l.firstChild;
|
|
646
|
-
if (n) {
|
|
647
|
-
if (c) {
|
|
648
|
-
var u = Eo(l).filter(function(v) {
|
|
649
|
-
if (!["prepend", "prependQueue"].includes(v.getAttribute(Cn)))
|
|
650
|
-
return !1;
|
|
651
|
-
var h = Number(v.getAttribute(Tn) || 0);
|
|
652
|
-
return a >= h;
|
|
653
|
-
});
|
|
654
|
-
if (u.length)
|
|
655
|
-
return l.insertBefore(s, u[u.length - 1].nextSibling), s;
|
|
656
|
-
}
|
|
657
|
-
l.insertBefore(s, f);
|
|
658
|
-
} else
|
|
659
|
-
l.appendChild(s);
|
|
660
|
-
return s;
|
|
661
|
-
}
|
|
662
|
-
function To(e) {
|
|
663
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Wt(t);
|
|
664
|
-
return Eo(r).find(function(n) {
|
|
665
|
-
return n.getAttribute(xo(t)) === e;
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
function wo(e) {
|
|
669
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = To(e, t);
|
|
670
|
-
if (r) {
|
|
671
|
-
var n = Wt(t);
|
|
672
|
-
n.removeChild(r);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
function wi(e, t) {
|
|
676
|
-
var r = Er.get(e);
|
|
677
|
-
if (!r || !Ei(document, r)) {
|
|
678
|
-
var n = Co("", t), o = n.parentNode;
|
|
679
|
-
Er.set(e, o), e.removeChild(n);
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
function zt(e, t) {
|
|
683
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Wt(r);
|
|
684
|
-
wi(n, r);
|
|
685
|
-
var o = To(t, r);
|
|
686
|
-
if (o) {
|
|
687
|
-
var a, i;
|
|
688
|
-
if ((a = r.csp) !== null && a !== void 0 && a.nonce && o.nonce !== ((i = r.csp) === null || i === void 0 ? void 0 : i.nonce)) {
|
|
689
|
-
var c;
|
|
690
|
-
o.nonce = (c = r.csp) === null || c === void 0 ? void 0 : c.nonce;
|
|
691
|
-
}
|
|
692
|
-
return o.innerHTML !== e && (o.innerHTML = e), o;
|
|
693
|
-
}
|
|
694
|
-
var s = Co(e, r);
|
|
695
|
-
return s.setAttribute(xo(r), t), s;
|
|
696
|
-
}
|
|
697
|
-
function Oo(e) {
|
|
698
|
-
if (Array.isArray(e))
|
|
699
|
-
return e;
|
|
700
|
-
}
|
|
701
|
-
function Oi(e, t) {
|
|
702
|
-
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
703
|
-
if (r != null) {
|
|
704
|
-
var n, o, a, i, c = [], s = !0, l = !1;
|
|
705
|
-
try {
|
|
706
|
-
if (a = (r = r.call(e)).next, t === 0) {
|
|
707
|
-
if (Object(r) !== r)
|
|
708
|
-
return;
|
|
709
|
-
s = !1;
|
|
710
|
-
} else
|
|
711
|
-
for (; !(s = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); s = !0)
|
|
712
|
-
;
|
|
713
|
-
} catch (f) {
|
|
714
|
-
l = !0, o = f;
|
|
715
|
-
} finally {
|
|
716
|
-
try {
|
|
717
|
-
if (!s && r.return != null && (i = r.return(), Object(i) !== i))
|
|
718
|
-
return;
|
|
719
|
-
} finally {
|
|
720
|
-
if (l)
|
|
721
|
-
throw o;
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
return c;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
function ko() {
|
|
728
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
729
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
730
|
-
}
|
|
731
|
-
function D(e, t) {
|
|
732
|
-
return Oo(e) || Oi(e, t) || Yr(e, t) || ko();
|
|
733
|
-
}
|
|
734
|
-
function ki(e, t) {
|
|
735
|
-
if (e.length !== t.length)
|
|
736
|
-
return !1;
|
|
737
|
-
for (var r = 0; r < e.length; r++)
|
|
738
|
-
if (e[r] !== t[r])
|
|
739
|
-
return !1;
|
|
740
|
-
return !0;
|
|
741
|
-
}
|
|
742
|
-
var Jr = /* @__PURE__ */ function() {
|
|
743
|
-
function e() {
|
|
744
|
-
ht(this, e), H(this, "cache", void 0), H(this, "keys", void 0), H(this, "cacheCallTimes", void 0), this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
|
|
745
|
-
}
|
|
746
|
-
return mt(e, [{
|
|
747
|
-
key: "size",
|
|
748
|
-
value: function() {
|
|
749
|
-
return this.keys.length;
|
|
750
|
-
}
|
|
751
|
-
}, {
|
|
752
|
-
key: "internalGet",
|
|
753
|
-
value: function(r) {
|
|
754
|
-
var n, o, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, i = {
|
|
755
|
-
map: this.cache
|
|
756
|
-
};
|
|
757
|
-
return r.forEach(function(c) {
|
|
758
|
-
if (!i)
|
|
759
|
-
i = void 0;
|
|
760
|
-
else {
|
|
761
|
-
var s, l;
|
|
762
|
-
i = (s = i) === null || s === void 0 || (l = s.map) === null || l === void 0 ? void 0 : l.get(c);
|
|
763
|
-
}
|
|
764
|
-
}), (n = i) !== null && n !== void 0 && n.value && a && (i.value[1] = this.cacheCallTimes++), (o = i) === null || o === void 0 ? void 0 : o.value;
|
|
765
|
-
}
|
|
766
|
-
}, {
|
|
767
|
-
key: "get",
|
|
768
|
-
value: function(r) {
|
|
769
|
-
var n;
|
|
770
|
-
return (n = this.internalGet(r, !0)) === null || n === void 0 ? void 0 : n[0];
|
|
771
|
-
}
|
|
772
|
-
}, {
|
|
773
|
-
key: "has",
|
|
774
|
-
value: function(r) {
|
|
775
|
-
return !!this.internalGet(r);
|
|
776
|
-
}
|
|
777
|
-
}, {
|
|
778
|
-
key: "set",
|
|
779
|
-
value: function(r, n) {
|
|
780
|
-
var o = this;
|
|
781
|
-
if (!this.has(r)) {
|
|
782
|
-
if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) {
|
|
783
|
-
var a = this.keys.reduce(function(l, f) {
|
|
784
|
-
var u = D(l, 2), v = u[1];
|
|
785
|
-
return o.internalGet(f)[1] < v ? [f, o.internalGet(f)[1]] : l;
|
|
786
|
-
}, [this.keys[0], this.cacheCallTimes]), i = D(a, 1), c = i[0];
|
|
787
|
-
this.delete(c);
|
|
788
|
-
}
|
|
789
|
-
this.keys.push(r);
|
|
790
|
-
}
|
|
791
|
-
var s = this.cache;
|
|
792
|
-
r.forEach(function(l, f) {
|
|
793
|
-
if (f === r.length - 1)
|
|
794
|
-
s.set(l, {
|
|
795
|
-
value: [n, o.cacheCallTimes++]
|
|
796
|
-
});
|
|
797
|
-
else {
|
|
798
|
-
var u = s.get(l);
|
|
799
|
-
u ? u.map || (u.map = /* @__PURE__ */ new Map()) : s.set(l, {
|
|
800
|
-
map: /* @__PURE__ */ new Map()
|
|
801
|
-
}), s = s.get(l).map;
|
|
802
|
-
}
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
}, {
|
|
806
|
-
key: "deleteByPath",
|
|
807
|
-
value: function(r, n) {
|
|
808
|
-
var o = r.get(n[0]);
|
|
809
|
-
if (n.length === 1) {
|
|
810
|
-
var a;
|
|
811
|
-
return o.map ? r.set(n[0], {
|
|
812
|
-
map: o.map
|
|
813
|
-
}) : r.delete(n[0]), (a = o.value) === null || a === void 0 ? void 0 : a[0];
|
|
814
|
-
}
|
|
815
|
-
var i = this.deleteByPath(o.map, n.slice(1));
|
|
816
|
-
return (!o.map || o.map.size === 0) && !o.value && r.delete(n[0]), i;
|
|
817
|
-
}
|
|
818
|
-
}, {
|
|
819
|
-
key: "delete",
|
|
820
|
-
value: function(r) {
|
|
821
|
-
if (this.has(r))
|
|
822
|
-
return this.keys = this.keys.filter(function(n) {
|
|
823
|
-
return !ki(n, r);
|
|
824
|
-
}), this.deleteByPath(this.cache, r);
|
|
825
|
-
}
|
|
826
|
-
}]), e;
|
|
827
|
-
}();
|
|
828
|
-
H(Jr, "MAX_CACHE_SIZE", 20);
|
|
829
|
-
H(Jr, "MAX_CACHE_OFFSET", 5);
|
|
830
|
-
var wn = 0, Po = /* @__PURE__ */ function() {
|
|
831
|
-
function e(t) {
|
|
832
|
-
ht(this, e), H(this, "derivatives", void 0), H(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = wn, t.length === 0 && Gr(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), wn += 1;
|
|
833
|
-
}
|
|
834
|
-
return mt(e, [{
|
|
835
|
-
key: "getDerivativeToken",
|
|
836
|
-
value: function(r) {
|
|
837
|
-
return this.derivatives.reduce(function(n, o) {
|
|
838
|
-
return o(r, n);
|
|
839
|
-
}, void 0);
|
|
840
|
-
}
|
|
841
|
-
}]), e;
|
|
842
|
-
}(), er = new Jr();
|
|
843
|
-
function Cr(e) {
|
|
844
|
-
var t = Array.isArray(e) ? e : [e];
|
|
845
|
-
return er.has(t) || er.set(t, new Po(t)), er.get(t);
|
|
846
|
-
}
|
|
847
|
-
var Pi = /* @__PURE__ */ new WeakMap(), tr = {};
|
|
848
|
-
function Ai(e, t) {
|
|
849
|
-
for (var r = Pi, n = 0; n < t.length; n += 1) {
|
|
850
|
-
var o = t[n];
|
|
851
|
-
r.has(o) || r.set(o, /* @__PURE__ */ new WeakMap()), r = r.get(o);
|
|
852
|
-
}
|
|
853
|
-
return r.has(tr) || r.set(tr, e()), r.get(tr);
|
|
854
|
-
}
|
|
855
|
-
var On = /* @__PURE__ */ new WeakMap();
|
|
856
|
-
function Ft(e) {
|
|
857
|
-
var t = On.get(e) || "";
|
|
858
|
-
return t || (Object.keys(e).forEach(function(r) {
|
|
859
|
-
var n = e[r];
|
|
860
|
-
t += r, n instanceof Po ? t += n.id : n && G(n) === "object" ? t += Ft(n) : t += n;
|
|
861
|
-
}), On.set(e, t)), t;
|
|
862
|
-
}
|
|
863
|
-
function Mi(e, t) {
|
|
864
|
-
return qr("".concat(t, "_").concat(Ft(e)));
|
|
865
|
-
}
|
|
866
|
-
var ft = "random-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, ""), Ao = "_bAmBoO_";
|
|
867
|
-
function Ri(e, t, r) {
|
|
868
|
-
if (pe()) {
|
|
869
|
-
var n, o;
|
|
870
|
-
zt(e, ft);
|
|
871
|
-
var a = document.createElement("div");
|
|
872
|
-
a.style.position = "fixed", a.style.left = "0", a.style.top = "0", t == null || t(a), document.body.appendChild(a), process.env.NODE_ENV !== "production" && (a.innerHTML = "Test", a.style.zIndex = "9999999");
|
|
873
|
-
var i = r ? r(a) : (n = getComputedStyle(a).content) === null || n === void 0 ? void 0 : n.includes(Ao);
|
|
874
|
-
return (o = a.parentNode) === null || o === void 0 || o.removeChild(a), wo(ft), i;
|
|
875
|
-
}
|
|
876
|
-
return !1;
|
|
877
|
-
}
|
|
878
|
-
var rr = void 0;
|
|
879
|
-
function _i() {
|
|
880
|
-
return rr === void 0 && (rr = Ri("@layer ".concat(ft, " { .").concat(ft, ' { content: "').concat(Ao, '"!important; } }'), function(e) {
|
|
881
|
-
e.className = ft;
|
|
882
|
-
})), rr;
|
|
883
|
-
}
|
|
884
|
-
var kn = process.env.NODE_ENV !== "test" && pe() ? g.useLayoutEffect : g.useEffect, $i = function(t, r) {
|
|
885
|
-
var n = g.useRef(!0);
|
|
886
|
-
kn(function() {
|
|
887
|
-
return t(n.current);
|
|
888
|
-
}, r), kn(function() {
|
|
889
|
-
return n.current = !1, function() {
|
|
890
|
-
n.current = !0;
|
|
891
|
-
};
|
|
892
|
-
}, []);
|
|
893
|
-
}, Ni = _({}, g), Pn = Ni.useInsertionEffect, ji = function(t, r, n) {
|
|
894
|
-
g.useMemo(t, n), $i(function() {
|
|
895
|
-
return r(!0);
|
|
896
|
-
}, n);
|
|
897
|
-
}, Li = Pn ? function(e, t, r) {
|
|
898
|
-
return Pn(function() {
|
|
899
|
-
return e(), t();
|
|
900
|
-
}, r);
|
|
901
|
-
} : ji, Ii = _({}, g), Hi = Ii.useInsertionEffect, Di = function(t) {
|
|
902
|
-
var r = [], n = !1;
|
|
903
|
-
function o(a) {
|
|
904
|
-
if (n) {
|
|
905
|
-
process.env.NODE_ENV !== "production" && Gr(!1, "[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");
|
|
906
|
-
return;
|
|
907
|
-
}
|
|
908
|
-
r.push(a);
|
|
909
|
-
}
|
|
910
|
-
return g.useEffect(function() {
|
|
911
|
-
return n = !1, function() {
|
|
912
|
-
n = !0, r.length && r.forEach(function(a) {
|
|
913
|
-
return a();
|
|
914
|
-
});
|
|
915
|
-
};
|
|
916
|
-
}, t), o;
|
|
917
|
-
}, Bi = function() {
|
|
918
|
-
return function(t) {
|
|
919
|
-
t();
|
|
920
|
-
};
|
|
921
|
-
}, zi = typeof Hi < "u" ? Di : Bi;
|
|
922
|
-
function Fi() {
|
|
923
|
-
return !1;
|
|
924
|
-
}
|
|
925
|
-
var Tr = !1;
|
|
926
|
-
function Wi() {
|
|
927
|
-
return Tr;
|
|
928
|
-
}
|
|
929
|
-
const Vi = process.env.NODE_ENV === "production" ? Fi : Wi;
|
|
930
|
-
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
|
|
931
|
-
var nr = window;
|
|
932
|
-
if (typeof nr.webpackHotUpdate == "function") {
|
|
933
|
-
var Ui = nr.webpackHotUpdate;
|
|
934
|
-
nr.webpackHotUpdate = function() {
|
|
935
|
-
return Tr = !0, setTimeout(function() {
|
|
936
|
-
Tr = !1;
|
|
937
|
-
}, 0), Ui.apply(void 0, arguments);
|
|
938
|
-
};
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
function Mo(e, t, r, n, o) {
|
|
942
|
-
var a = g.useContext(Qr), i = a.cache, c = [e].concat(Ee(t)), s = c.join("_"), l = zi([s]), f = Vi(), u = function(p) {
|
|
943
|
-
i.update(c, function(d) {
|
|
944
|
-
var S = d || [], m = D(S, 2), w = m[0], O = w === void 0 ? 0 : w, C = m[1], T = C;
|
|
945
|
-
process.env.NODE_ENV !== "production" && C && f && (n == null || n(T, f), T = null);
|
|
946
|
-
var y = T || r(), M = [O, y];
|
|
947
|
-
return p ? p(M) : M;
|
|
948
|
-
});
|
|
949
|
-
};
|
|
950
|
-
g.useMemo(
|
|
951
|
-
function() {
|
|
952
|
-
u();
|
|
953
|
-
},
|
|
954
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
955
|
-
[s]
|
|
956
|
-
/* eslint-enable */
|
|
957
|
-
);
|
|
958
|
-
var v = i.get(c);
|
|
959
|
-
process.env.NODE_ENV !== "production" && !v && (u(), v = i.get(c));
|
|
960
|
-
var h = v[1];
|
|
961
|
-
return Li(function() {
|
|
962
|
-
o == null || o(h);
|
|
963
|
-
}, function(b) {
|
|
964
|
-
return u(function(p) {
|
|
965
|
-
var d = D(p, 2), S = d[0], m = d[1];
|
|
966
|
-
return b && S === 0 && (o == null || o(h)), [S + 1, m];
|
|
967
|
-
}), function() {
|
|
968
|
-
i.update(c, function(p) {
|
|
969
|
-
var d = p || [], S = D(d, 2), m = S[0], w = m === void 0 ? 0 : m, O = S[1], C = w - 1;
|
|
970
|
-
return C === 0 ? (l(function() {
|
|
971
|
-
return n == null ? void 0 : n(O, !1);
|
|
972
|
-
}), null) : [w - 1, O];
|
|
973
|
-
});
|
|
974
|
-
};
|
|
975
|
-
}, [s]), h;
|
|
976
|
-
}
|
|
977
|
-
var Xi = {}, Gi = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", _e = /* @__PURE__ */ new Map();
|
|
978
|
-
function Yi(e) {
|
|
979
|
-
_e.set(e, (_e.get(e) || 0) + 1);
|
|
980
|
-
}
|
|
981
|
-
function Ki(e, t) {
|
|
982
|
-
if (typeof document < "u") {
|
|
983
|
-
var r = document.querySelectorAll("style[".concat(xr, '="').concat(e, '"]'));
|
|
984
|
-
r.forEach(function(n) {
|
|
985
|
-
if (n[Ge] === t) {
|
|
986
|
-
var o;
|
|
987
|
-
(o = n.parentNode) === null || o === void 0 || o.removeChild(n);
|
|
988
|
-
}
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
var qi = 0;
|
|
993
|
-
function Qi(e, t) {
|
|
994
|
-
_e.set(e, (_e.get(e) || 0) - 1);
|
|
995
|
-
var r = Array.from(_e.keys()), n = r.filter(function(o) {
|
|
996
|
-
var a = _e.get(o) || 0;
|
|
997
|
-
return a <= 0;
|
|
998
|
-
});
|
|
999
|
-
r.length - n.length > qi && n.forEach(function(o) {
|
|
1000
|
-
Ki(o, t), _e.delete(o);
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
var Ji = function(t, r, n, o) {
|
|
1004
|
-
var a = n.getDerivativeToken(t), i = _(_({}, a), r);
|
|
1005
|
-
return o && (i = o(i)), i;
|
|
1006
|
-
};
|
|
1007
|
-
function Zi(e, t) {
|
|
1008
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Ie(Qr), o = n.cache.instanceId, a = r.salt, i = a === void 0 ? "" : a, c = r.override, s = c === void 0 ? Xi : c, l = r.formatToken, f = r.getComputedToken, u = Ai(function() {
|
|
1009
|
-
return Object.assign.apply(Object, [{}].concat(Ee(t)));
|
|
1010
|
-
}, t), v = Ft(u), h = Ft(s), b = Mo("token", [i, e.id, v, h], function() {
|
|
1011
|
-
var p = f ? f(u, s, e) : Ji(u, s, e, l), d = Mi(p, i);
|
|
1012
|
-
p._tokenKey = d, Yi(d);
|
|
1013
|
-
var S = "".concat(Gi, "-").concat(qr(d));
|
|
1014
|
-
return p._hashId = S, [p, S];
|
|
1015
|
-
}, function(p) {
|
|
1016
|
-
Qi(p[0]._tokenKey, o);
|
|
1017
|
-
});
|
|
1018
|
-
return b;
|
|
1019
|
-
}
|
|
1020
|
-
var ec = {
|
|
1021
|
-
animationIterationCount: 1,
|
|
1022
|
-
borderImageOutset: 1,
|
|
1023
|
-
borderImageSlice: 1,
|
|
1024
|
-
borderImageWidth: 1,
|
|
1025
|
-
boxFlex: 1,
|
|
1026
|
-
boxFlexGroup: 1,
|
|
1027
|
-
boxOrdinalGroup: 1,
|
|
1028
|
-
columnCount: 1,
|
|
1029
|
-
columns: 1,
|
|
1030
|
-
flex: 1,
|
|
1031
|
-
flexGrow: 1,
|
|
1032
|
-
flexPositive: 1,
|
|
1033
|
-
flexShrink: 1,
|
|
1034
|
-
flexNegative: 1,
|
|
1035
|
-
flexOrder: 1,
|
|
1036
|
-
gridRow: 1,
|
|
1037
|
-
gridRowEnd: 1,
|
|
1038
|
-
gridRowSpan: 1,
|
|
1039
|
-
gridRowStart: 1,
|
|
1040
|
-
gridColumn: 1,
|
|
1041
|
-
gridColumnEnd: 1,
|
|
1042
|
-
gridColumnSpan: 1,
|
|
1043
|
-
gridColumnStart: 1,
|
|
1044
|
-
msGridRow: 1,
|
|
1045
|
-
msGridRowSpan: 1,
|
|
1046
|
-
msGridColumn: 1,
|
|
1047
|
-
msGridColumnSpan: 1,
|
|
1048
|
-
fontWeight: 1,
|
|
1049
|
-
lineHeight: 1,
|
|
1050
|
-
opacity: 1,
|
|
1051
|
-
order: 1,
|
|
1052
|
-
orphans: 1,
|
|
1053
|
-
tabSize: 1,
|
|
1054
|
-
widows: 1,
|
|
1055
|
-
zIndex: 1,
|
|
1056
|
-
zoom: 1,
|
|
1057
|
-
WebkitLineClamp: 1,
|
|
1058
|
-
// SVG-related properties
|
|
1059
|
-
fillOpacity: 1,
|
|
1060
|
-
floodOpacity: 1,
|
|
1061
|
-
stopOpacity: 1,
|
|
1062
|
-
strokeDasharray: 1,
|
|
1063
|
-
strokeDashoffset: 1,
|
|
1064
|
-
strokeMiterlimit: 1,
|
|
1065
|
-
strokeOpacity: 1,
|
|
1066
|
-
strokeWidth: 1
|
|
1067
|
-
}, Ro = "comm", _o = "rule", $o = "decl", tc = "@import", rc = "@keyframes", nc = "@layer", oc = Math.abs, Zr = String.fromCharCode;
|
|
1068
|
-
function No(e) {
|
|
1069
|
-
return e.trim();
|
|
1070
|
-
}
|
|
1071
|
-
function $t(e, t, r) {
|
|
1072
|
-
return e.replace(t, r);
|
|
1073
|
-
}
|
|
1074
|
-
function ac(e, t) {
|
|
1075
|
-
return e.indexOf(t);
|
|
1076
|
-
}
|
|
1077
|
-
function gt(e, t) {
|
|
1078
|
-
return e.charCodeAt(t) | 0;
|
|
1079
|
-
}
|
|
1080
|
-
function vt(e, t, r) {
|
|
1081
|
-
return e.slice(t, r);
|
|
1082
|
-
}
|
|
1083
|
-
function xe(e) {
|
|
1084
|
-
return e.length;
|
|
1085
|
-
}
|
|
1086
|
-
function ic(e) {
|
|
1087
|
-
return e.length;
|
|
1088
|
-
}
|
|
1089
|
-
function Ct(e, t) {
|
|
1090
|
-
return t.push(e), e;
|
|
1091
|
-
}
|
|
1092
|
-
var Vt = 1, Ze = 1, jo = 0, se = 0, V = 0, tt = "";
|
|
1093
|
-
function en(e, t, r, n, o, a, i, c) {
|
|
1094
|
-
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Vt, column: Ze, length: i, return: "", siblings: c };
|
|
1095
|
-
}
|
|
1096
|
-
function cc() {
|
|
1097
|
-
return V;
|
|
1098
|
-
}
|
|
1099
|
-
function sc() {
|
|
1100
|
-
return V = se > 0 ? gt(tt, --se) : 0, Ze--, V === 10 && (Ze = 1, Vt--), V;
|
|
1101
|
-
}
|
|
1102
|
-
function fe() {
|
|
1103
|
-
return V = se < jo ? gt(tt, se++) : 0, Ze++, V === 10 && (Ze = 1, Vt++), V;
|
|
1104
|
-
}
|
|
1105
|
-
function je() {
|
|
1106
|
-
return gt(tt, se);
|
|
1107
|
-
}
|
|
1108
|
-
function Nt() {
|
|
1109
|
-
return se;
|
|
1110
|
-
}
|
|
1111
|
-
function Ut(e, t) {
|
|
1112
|
-
return vt(tt, e, t);
|
|
1113
|
-
}
|
|
1114
|
-
function wr(e) {
|
|
1115
|
-
switch (e) {
|
|
1116
|
-
case 0:
|
|
1117
|
-
case 9:
|
|
1118
|
-
case 10:
|
|
1119
|
-
case 13:
|
|
1120
|
-
case 32:
|
|
1121
|
-
return 5;
|
|
1122
|
-
case 33:
|
|
1123
|
-
case 43:
|
|
1124
|
-
case 44:
|
|
1125
|
-
case 47:
|
|
1126
|
-
case 62:
|
|
1127
|
-
case 64:
|
|
1128
|
-
case 126:
|
|
1129
|
-
case 59:
|
|
1130
|
-
case 123:
|
|
1131
|
-
case 125:
|
|
1132
|
-
return 4;
|
|
1133
|
-
case 58:
|
|
1134
|
-
return 3;
|
|
1135
|
-
case 34:
|
|
1136
|
-
case 39:
|
|
1137
|
-
case 40:
|
|
1138
|
-
case 91:
|
|
1139
|
-
return 2;
|
|
1140
|
-
case 41:
|
|
1141
|
-
case 93:
|
|
1142
|
-
return 1;
|
|
1143
|
-
}
|
|
1144
|
-
return 0;
|
|
1145
|
-
}
|
|
1146
|
-
function lc(e) {
|
|
1147
|
-
return Vt = Ze = 1, jo = xe(tt = e), se = 0, [];
|
|
1148
|
-
}
|
|
1149
|
-
function uc(e) {
|
|
1150
|
-
return tt = "", e;
|
|
1151
|
-
}
|
|
1152
|
-
function or(e) {
|
|
1153
|
-
return No(Ut(se - 1, Or(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
1154
|
-
}
|
|
1155
|
-
function fc(e) {
|
|
1156
|
-
for (; (V = je()) && V < 33; )
|
|
1157
|
-
fe();
|
|
1158
|
-
return wr(e) > 2 || wr(V) > 3 ? "" : " ";
|
|
1159
|
-
}
|
|
1160
|
-
function dc(e, t) {
|
|
1161
|
-
for (; --t && fe() && !(V < 48 || V > 102 || V > 57 && V < 65 || V > 70 && V < 97); )
|
|
1162
|
-
;
|
|
1163
|
-
return Ut(e, Nt() + (t < 6 && je() == 32 && fe() == 32));
|
|
1164
|
-
}
|
|
1165
|
-
function Or(e) {
|
|
1166
|
-
for (; fe(); )
|
|
1167
|
-
switch (V) {
|
|
1168
|
-
case e:
|
|
1169
|
-
return se;
|
|
1170
|
-
case 34:
|
|
1171
|
-
case 39:
|
|
1172
|
-
e !== 34 && e !== 39 && Or(V);
|
|
1173
|
-
break;
|
|
1174
|
-
case 40:
|
|
1175
|
-
e === 41 && Or(e);
|
|
1176
|
-
break;
|
|
1177
|
-
case 92:
|
|
1178
|
-
fe();
|
|
1179
|
-
break;
|
|
1180
|
-
}
|
|
1181
|
-
return se;
|
|
1182
|
-
}
|
|
1183
|
-
function gc(e, t) {
|
|
1184
|
-
for (; fe() && e + V !== 47 + 10; )
|
|
1185
|
-
if (e + V === 42 + 42 && je() === 47)
|
|
1186
|
-
break;
|
|
1187
|
-
return "/*" + Ut(t, se - 1) + "*" + Zr(e === 47 ? e : fe());
|
|
1188
|
-
}
|
|
1189
|
-
function vc(e) {
|
|
1190
|
-
for (; !wr(je()); )
|
|
1191
|
-
fe();
|
|
1192
|
-
return Ut(e, se);
|
|
1193
|
-
}
|
|
1194
|
-
function pc(e) {
|
|
1195
|
-
return uc(jt("", null, null, null, [""], e = lc(e), 0, [0], e));
|
|
1196
|
-
}
|
|
1197
|
-
function jt(e, t, r, n, o, a, i, c, s) {
|
|
1198
|
-
for (var l = 0, f = 0, u = i, v = 0, h = 0, b = 0, p = 1, d = 1, S = 1, m = 0, w = "", O = o, C = a, T = n, y = w; d; )
|
|
1199
|
-
switch (b = m, m = fe()) {
|
|
1200
|
-
case 40:
|
|
1201
|
-
if (b != 108 && gt(y, u - 1) == 58) {
|
|
1202
|
-
ac(y += $t(or(m), "&", "&\f"), "&\f") != -1 && (S = -1);
|
|
1203
|
-
break;
|
|
1204
|
-
}
|
|
1205
|
-
case 34:
|
|
1206
|
-
case 39:
|
|
1207
|
-
case 91:
|
|
1208
|
-
y += or(m);
|
|
1209
|
-
break;
|
|
1210
|
-
case 9:
|
|
1211
|
-
case 10:
|
|
1212
|
-
case 13:
|
|
1213
|
-
case 32:
|
|
1214
|
-
y += fc(b);
|
|
1215
|
-
break;
|
|
1216
|
-
case 92:
|
|
1217
|
-
y += dc(Nt() - 1, 7);
|
|
1218
|
-
continue;
|
|
1219
|
-
case 47:
|
|
1220
|
-
switch (je()) {
|
|
1221
|
-
case 42:
|
|
1222
|
-
case 47:
|
|
1223
|
-
Ct(hc(gc(fe(), Nt()), t, r, s), s);
|
|
1224
|
-
break;
|
|
1225
|
-
default:
|
|
1226
|
-
y += "/";
|
|
1227
|
-
}
|
|
1228
|
-
break;
|
|
1229
|
-
case 123 * p:
|
|
1230
|
-
c[l++] = xe(y) * S;
|
|
1231
|
-
case 125 * p:
|
|
1232
|
-
case 59:
|
|
1233
|
-
case 0:
|
|
1234
|
-
switch (m) {
|
|
1235
|
-
case 0:
|
|
1236
|
-
case 125:
|
|
1237
|
-
d = 0;
|
|
1238
|
-
case 59 + f:
|
|
1239
|
-
S == -1 && (y = $t(y, /\f/g, "")), h > 0 && xe(y) - u && Ct(h > 32 ? Mn(y + ";", n, r, u - 1, s) : Mn($t(y, " ", "") + ";", n, r, u - 2, s), s);
|
|
1240
|
-
break;
|
|
1241
|
-
case 59:
|
|
1242
|
-
y += ";";
|
|
1243
|
-
default:
|
|
1244
|
-
if (Ct(T = An(y, t, r, l, f, o, c, w, O = [], C = [], u, a), a), m === 123)
|
|
1245
|
-
if (f === 0)
|
|
1246
|
-
jt(y, t, T, T, O, a, u, c, C);
|
|
1247
|
-
else
|
|
1248
|
-
switch (v === 99 && gt(y, 3) === 110 ? 100 : v) {
|
|
1249
|
-
case 100:
|
|
1250
|
-
case 108:
|
|
1251
|
-
case 109:
|
|
1252
|
-
case 115:
|
|
1253
|
-
jt(e, T, T, n && Ct(An(e, T, T, 0, 0, o, c, w, o, O = [], u, C), C), o, C, u, c, n ? O : C);
|
|
1254
|
-
break;
|
|
1255
|
-
default:
|
|
1256
|
-
jt(y, T, T, T, [""], C, 0, c, C);
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
l = f = h = 0, p = S = 1, w = y = "", u = i;
|
|
1260
|
-
break;
|
|
1261
|
-
case 58:
|
|
1262
|
-
u = 1 + xe(y), h = b;
|
|
1263
|
-
default:
|
|
1264
|
-
if (p < 1) {
|
|
1265
|
-
if (m == 123)
|
|
1266
|
-
--p;
|
|
1267
|
-
else if (m == 125 && p++ == 0 && sc() == 125)
|
|
1268
|
-
continue;
|
|
1269
|
-
}
|
|
1270
|
-
switch (y += Zr(m), m * p) {
|
|
1271
|
-
case 38:
|
|
1272
|
-
S = f > 0 ? 1 : (y += "\f", -1);
|
|
1273
|
-
break;
|
|
1274
|
-
case 44:
|
|
1275
|
-
c[l++] = (xe(y) - 1) * S, S = 1;
|
|
1276
|
-
break;
|
|
1277
|
-
case 64:
|
|
1278
|
-
je() === 45 && (y += or(fe())), v = je(), f = u = xe(w = y += vc(Nt())), m++;
|
|
1279
|
-
break;
|
|
1280
|
-
case 45:
|
|
1281
|
-
b === 45 && xe(y) == 2 && (p = 0);
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
return a;
|
|
1285
|
-
}
|
|
1286
|
-
function An(e, t, r, n, o, a, i, c, s, l, f, u) {
|
|
1287
|
-
for (var v = o - 1, h = o === 0 ? a : [""], b = ic(h), p = 0, d = 0, S = 0; p < n; ++p)
|
|
1288
|
-
for (var m = 0, w = vt(e, v + 1, v = oc(d = i[p])), O = e; m < b; ++m)
|
|
1289
|
-
(O = No(d > 0 ? h[m] + " " + w : $t(w, /&\f/g, h[m]))) && (s[S++] = O);
|
|
1290
|
-
return en(e, t, r, o === 0 ? _o : c, s, l, f, u);
|
|
1291
|
-
}
|
|
1292
|
-
function hc(e, t, r, n) {
|
|
1293
|
-
return en(e, t, r, Ro, Zr(cc()), vt(e, 2, -2), 0, n);
|
|
1294
|
-
}
|
|
1295
|
-
function Mn(e, t, r, n, o) {
|
|
1296
|
-
return en(e, t, r, $o, vt(e, 0, n), vt(e, n + 1, -1), n, o);
|
|
1297
|
-
}
|
|
1298
|
-
function kr(e, t) {
|
|
1299
|
-
for (var r = "", n = 0; n < e.length; n++)
|
|
1300
|
-
r += t(e[n], n, e, t) || "";
|
|
1301
|
-
return r;
|
|
1302
|
-
}
|
|
1303
|
-
function mc(e, t, r, n) {
|
|
1304
|
-
switch (e.type) {
|
|
1305
|
-
case nc:
|
|
1306
|
-
if (e.children.length)
|
|
1307
|
-
break;
|
|
1308
|
-
case tc:
|
|
1309
|
-
case $o:
|
|
1310
|
-
return e.return = e.return || e.value;
|
|
1311
|
-
case Ro:
|
|
1312
|
-
return "";
|
|
1313
|
-
case rc:
|
|
1314
|
-
return e.return = e.value + "{" + kr(e.children, n) + "}";
|
|
1315
|
-
case _o:
|
|
1316
|
-
if (!xe(e.value = e.props.join(",")))
|
|
1317
|
-
return "";
|
|
1318
|
-
}
|
|
1319
|
-
return xe(r = kr(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1320
|
-
}
|
|
1321
|
-
function Lo(e, t) {
|
|
1322
|
-
var r = t.path, n = t.parentSelectors;
|
|
1323
|
-
Be(!1, "[Ant Design CSS-in-JS] ".concat(r ? "Error in ".concat(r, ": ") : "").concat(e).concat(n.length ? " Selector: ".concat(n.join(" | ")) : ""));
|
|
1324
|
-
}
|
|
1325
|
-
var bc = function(t, r, n) {
|
|
1326
|
-
if (t === "content") {
|
|
1327
|
-
var o = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, a = ["normal", "none", "initial", "inherit", "unset"];
|
|
1328
|
-
(typeof r != "string" || a.indexOf(r) === -1 && !o.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")) && Lo("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r, "\"'`."), n);
|
|
1329
|
-
}
|
|
1330
|
-
}, yc = function(t, r, n) {
|
|
1331
|
-
t === "animation" && n.hashId && r !== "none" && Lo("You seem to be using hashed animation '".concat(r, "', in which case 'animationName' with Keyframe as value is recommended."), n);
|
|
1332
|
-
}, Rn = "data-ant-cssinjs-cache-path", Io = "_FILE_STYLE__", Le, Ho = !0;
|
|
1333
|
-
function Sc() {
|
|
1334
|
-
if (!Le && (Le = {}, pe())) {
|
|
1335
|
-
var e = document.createElement("div");
|
|
1336
|
-
e.className = Rn, e.style.position = "fixed", e.style.visibility = "hidden", e.style.top = "-9999px", document.body.appendChild(e);
|
|
1337
|
-
var t = getComputedStyle(e).content || "";
|
|
1338
|
-
t = t.replace(/^"/, "").replace(/"$/, ""), t.split(";").forEach(function(o) {
|
|
1339
|
-
var a = o.split(":"), i = D(a, 2), c = i[0], s = i[1];
|
|
1340
|
-
Le[c] = s;
|
|
1341
|
-
});
|
|
1342
|
-
var r = document.querySelector("style[".concat(Rn, "]"));
|
|
1343
|
-
if (r) {
|
|
1344
|
-
var n;
|
|
1345
|
-
Ho = !1, (n = r.parentNode) === null || n === void 0 || n.removeChild(r);
|
|
1346
|
-
}
|
|
1347
|
-
document.body.removeChild(e);
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
function xc(e) {
|
|
1351
|
-
return Sc(), !!Le[e];
|
|
1352
|
-
}
|
|
1353
|
-
function Ec(e) {
|
|
1354
|
-
var t = Le[e], r = null;
|
|
1355
|
-
if (t && pe())
|
|
1356
|
-
if (Ho)
|
|
1357
|
-
r = Io;
|
|
1358
|
-
else {
|
|
1359
|
-
var n = document.querySelector("style[".concat(Ne, '="').concat(Le[e], '"]'));
|
|
1360
|
-
n ? r = n.innerHTML : delete Le[e];
|
|
1361
|
-
}
|
|
1362
|
-
return [r, t];
|
|
1363
|
-
}
|
|
1364
|
-
var _n = pe(), Do = "_skip_check_", Bo = "_multi_value_";
|
|
1365
|
-
function $n(e) {
|
|
1366
|
-
var t = kr(pc(e), mc);
|
|
1367
|
-
return t.replace(/\{%%%\:[^;];}/g, ";");
|
|
1368
|
-
}
|
|
1369
|
-
function Cc(e) {
|
|
1370
|
-
return G(e) === "object" && e && (Do in e || Bo in e);
|
|
1371
|
-
}
|
|
1372
|
-
function Tc(e, t, r) {
|
|
1373
|
-
if (!t)
|
|
1374
|
-
return e;
|
|
1375
|
-
var n = ".".concat(t), o = r === "low" ? ":where(".concat(n, ")") : n, a = e.split(",").map(function(i) {
|
|
1376
|
-
var c, s = i.trim().split(/\s+/), l = s[0] || "", f = ((c = l.match(/^\w+/)) === null || c === void 0 ? void 0 : c[0]) || "";
|
|
1377
|
-
return l = "".concat(f).concat(o).concat(l.slice(f.length)), [l].concat(Ee(s.slice(1))).join(" ");
|
|
1378
|
-
});
|
|
1379
|
-
return a.join(",");
|
|
1380
|
-
}
|
|
1381
|
-
var wc = function e(t) {
|
|
1382
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
1383
|
-
root: !0,
|
|
1384
|
-
parentSelectors: []
|
|
1385
|
-
}, o = n.root, a = n.injectHash, i = n.parentSelectors, c = r.hashId, s = r.layer, l = r.path, f = r.hashPriority, u = r.transformers, v = u === void 0 ? [] : u, h = r.linters, b = h === void 0 ? [] : h, p = "", d = {};
|
|
1386
|
-
function S(T) {
|
|
1387
|
-
var y = T.getName(c);
|
|
1388
|
-
if (!d[y]) {
|
|
1389
|
-
var M = e(T.style, r, {
|
|
1390
|
-
root: !1,
|
|
1391
|
-
parentSelectors: i
|
|
1392
|
-
}), I = D(M, 1), k = I[0];
|
|
1393
|
-
d[y] = "@keyframes ".concat(T.getName(c)).concat(k);
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
function m(T) {
|
|
1397
|
-
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
1398
|
-
return T.forEach(function(M) {
|
|
1399
|
-
Array.isArray(M) ? m(M, y) : M && y.push(M);
|
|
1400
|
-
}), y;
|
|
1401
|
-
}
|
|
1402
|
-
var w = m(Array.isArray(t) ? t : [t]);
|
|
1403
|
-
if (w.forEach(function(T) {
|
|
1404
|
-
var y = typeof T == "string" && !o ? {} : T;
|
|
1405
|
-
if (typeof y == "string")
|
|
1406
|
-
p += "".concat(y, `
|
|
1407
|
-
`);
|
|
1408
|
-
else if (y._keyframe)
|
|
1409
|
-
S(y);
|
|
1410
|
-
else {
|
|
1411
|
-
var M = v.reduce(function(I, k) {
|
|
1412
|
-
var $;
|
|
1413
|
-
return (k == null || ($ = k.visit) === null || $ === void 0 ? void 0 : $.call(k, I)) || I;
|
|
1414
|
-
}, y);
|
|
1415
|
-
Object.keys(M).forEach(function(I) {
|
|
1416
|
-
var k = M[I];
|
|
1417
|
-
if (G(k) === "object" && k && (I !== "animationName" || !k._keyframe) && !Cc(k)) {
|
|
1418
|
-
var $ = !1, R = I.trim(), x = !1;
|
|
1419
|
-
(o || a) && c ? R.startsWith("@") ? $ = !0 : R = Tc(I, c, f) : o && !c && (R === "&" || R === "") && (R = "", x = !0);
|
|
1420
|
-
var A = e(k, r, {
|
|
1421
|
-
root: x,
|
|
1422
|
-
injectHash: $,
|
|
1423
|
-
parentSelectors: [].concat(Ee(i), [R])
|
|
1424
|
-
}), P = D(A, 2), L = P[0], B = P[1];
|
|
1425
|
-
d = _(_({}, d), B), p += "".concat(R).concat(L);
|
|
1426
|
-
} else {
|
|
1427
|
-
let F = function(Y, W) {
|
|
1428
|
-
process.env.NODE_ENV !== "production" && (G(k) !== "object" || !(k != null && k[Do])) && [bc, yc].concat(Ee(b)).forEach(function(de) {
|
|
1429
|
-
return de(Y, W, {
|
|
1430
|
-
path: l,
|
|
1431
|
-
hashId: c,
|
|
1432
|
-
parentSelectors: i
|
|
1433
|
-
});
|
|
1434
|
-
});
|
|
1435
|
-
var te = Y.replace(/[A-Z]/g, function(de) {
|
|
1436
|
-
return "-".concat(de.toLowerCase());
|
|
1437
|
-
}), re = W;
|
|
1438
|
-
!ec[Y] && typeof re == "number" && re !== 0 && (re = "".concat(re, "px")), Y === "animationName" && W !== null && W !== void 0 && W._keyframe && (S(W), re = W.getName(c)), p += "".concat(te, ":").concat(re, ";");
|
|
1439
|
-
};
|
|
1440
|
-
var U, z = (U = k == null ? void 0 : k.value) !== null && U !== void 0 ? U : k;
|
|
1441
|
-
G(k) === "object" && k !== null && k !== void 0 && k[Bo] && Array.isArray(z) ? z.forEach(function(Y) {
|
|
1442
|
-
F(I, Y);
|
|
1443
|
-
}) : F(I, z);
|
|
1444
|
-
}
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
}), !o)
|
|
1448
|
-
p = "{".concat(p, "}");
|
|
1449
|
-
else if (s && _i()) {
|
|
1450
|
-
var O = s.split(","), C = O[O.length - 1].trim();
|
|
1451
|
-
p = "@layer ".concat(C, " {").concat(p, "}"), O.length > 1 && (p = "@layer ".concat(s, "{%%%:%}").concat(p));
|
|
1452
|
-
}
|
|
1453
|
-
return [p, d];
|
|
1454
|
-
};
|
|
1455
|
-
function Oc(e, t) {
|
|
1456
|
-
return qr("".concat(e.join("%")).concat(t));
|
|
1457
|
-
}
|
|
1458
|
-
function kc() {
|
|
1459
|
-
return null;
|
|
1460
|
-
}
|
|
1461
|
-
function Pr(e, t) {
|
|
1462
|
-
var r = e.token, n = e.path, o = e.hashId, a = e.layer, i = e.nonce, c = e.clientOnly, s = e.order, l = s === void 0 ? 0 : s, f = g.useContext(Qr), u = f.autoClear, v = f.mock, h = f.defaultCache, b = f.hashPriority, p = f.container, d = f.ssrInline, S = f.transformers, m = f.linters, w = f.cache, O = r._tokenKey, C = [O].concat(Ee(n)), T = _n;
|
|
1463
|
-
process.env.NODE_ENV !== "production" && v !== void 0 && (T = v === "client");
|
|
1464
|
-
var y = Mo(
|
|
1465
|
-
"style",
|
|
1466
|
-
C,
|
|
1467
|
-
// Create cache if needed
|
|
1468
|
-
function() {
|
|
1469
|
-
var R = C.join("|");
|
|
1470
|
-
if (xc(R)) {
|
|
1471
|
-
var x = Ec(R), A = D(x, 2), P = A[0], L = A[1];
|
|
1472
|
-
if (P)
|
|
1473
|
-
return [P, O, L, {}, c, l];
|
|
1474
|
-
}
|
|
1475
|
-
var B = t(), U = wc(B, {
|
|
1476
|
-
hashId: o,
|
|
1477
|
-
hashPriority: b,
|
|
1478
|
-
layer: a,
|
|
1479
|
-
path: n.join("-"),
|
|
1480
|
-
transformers: S,
|
|
1481
|
-
linters: m
|
|
1482
|
-
}), z = D(U, 2), F = z[0], Y = z[1], W = $n(F), te = Oc(C, W);
|
|
1483
|
-
return [W, O, te, Y, c, l];
|
|
1484
|
-
},
|
|
1485
|
-
// Remove cache if no need
|
|
1486
|
-
function(R, x) {
|
|
1487
|
-
var A = D(R, 3), P = A[2];
|
|
1488
|
-
(x || u) && _n && wo(P, {
|
|
1489
|
-
mark: Ne
|
|
1490
|
-
});
|
|
1491
|
-
},
|
|
1492
|
-
// Effect: Inject style here
|
|
1493
|
-
function(R) {
|
|
1494
|
-
var x = D(R, 4), A = x[0];
|
|
1495
|
-
x[1];
|
|
1496
|
-
var P = x[2], L = x[3];
|
|
1497
|
-
if (T && A !== Io) {
|
|
1498
|
-
var B = {
|
|
1499
|
-
mark: Ne,
|
|
1500
|
-
prepend: "queue",
|
|
1501
|
-
attachTo: p,
|
|
1502
|
-
priority: l
|
|
1503
|
-
}, U = typeof i == "function" ? i() : i;
|
|
1504
|
-
U && (B.csp = {
|
|
1505
|
-
nonce: U
|
|
1506
|
-
});
|
|
1507
|
-
var z = zt(A, P, B);
|
|
1508
|
-
z[Ge] = w.instanceId, z.setAttribute(xr, O), process.env.NODE_ENV !== "production" && z.setAttribute(Si, C.join("|")), Object.keys(L).forEach(function(F) {
|
|
1509
|
-
zt($n(L[F]), "_effect-".concat(F), B);
|
|
1510
|
-
});
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
), M = D(y, 3), I = M[0], k = M[1], $ = M[2];
|
|
1514
|
-
return function(R) {
|
|
1515
|
-
var x;
|
|
1516
|
-
if (!d || T || !h)
|
|
1517
|
-
x = /* @__PURE__ */ g.createElement(kc, null);
|
|
1518
|
-
else {
|
|
1519
|
-
var A;
|
|
1520
|
-
x = /* @__PURE__ */ g.createElement("style", Dt({}, (A = {}, H(A, xr, k), H(A, Ne, $), A), {
|
|
1521
|
-
dangerouslySetInnerHTML: {
|
|
1522
|
-
__html: I
|
|
1523
|
-
}
|
|
1524
|
-
}));
|
|
1525
|
-
}
|
|
1526
|
-
return /* @__PURE__ */ g.createElement(g.Fragment, null, x, R);
|
|
1527
|
-
};
|
|
1528
|
-
}
|
|
1529
|
-
function Ue(e) {
|
|
1530
|
-
return e.notSplit = !0, e;
|
|
1531
|
-
}
|
|
1532
|
-
Ue(["borderTop", "borderBottom"]), Ue(["borderTop"]), Ue(["borderBottom"]), Ue(["borderLeft", "borderRight"]), Ue(["borderLeft"]), Ue(["borderRight"]);
|
|
1533
|
-
var Pc = /* @__PURE__ */ Ur({});
|
|
1534
|
-
const tn = Pc;
|
|
1535
|
-
function Ac(e) {
|
|
1536
|
-
return Oo(e) || mo(e) || Yr(e) || ko();
|
|
1537
|
-
}
|
|
1538
|
-
function Ar(e, t) {
|
|
1539
|
-
for (var r = e, n = 0; n < t.length; n += 1) {
|
|
1540
|
-
if (r == null)
|
|
1541
|
-
return;
|
|
1542
|
-
r = r[t[n]];
|
|
1543
|
-
}
|
|
1544
|
-
return r;
|
|
1545
|
-
}
|
|
1546
|
-
function zo(e, t, r, n) {
|
|
1547
|
-
if (!t.length)
|
|
1548
|
-
return r;
|
|
1549
|
-
var o = Ac(t), a = o[0], i = o.slice(1), c;
|
|
1550
|
-
return !e && typeof a == "number" ? c = [] : Array.isArray(e) ? c = Ee(e) : c = _({}, e), n && r === void 0 && i.length === 1 ? delete c[a][i[0]] : c[a] = zo(c[a], i, r, n), c;
|
|
1551
|
-
}
|
|
1552
|
-
function ar(e, t, r) {
|
|
1553
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
1554
|
-
return t.length && n && r === void 0 && !Ar(e, t.slice(0, -1)) ? e : zo(e, t, r, n);
|
|
1555
|
-
}
|
|
1556
|
-
function Mc(e) {
|
|
1557
|
-
return G(e) === "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
|
|
1558
|
-
}
|
|
1559
|
-
function Nn(e) {
|
|
1560
|
-
return Array.isArray(e) ? [] : {};
|
|
1561
|
-
}
|
|
1562
|
-
var Rc = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
|
|
1563
|
-
function _c() {
|
|
1564
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
1565
|
-
t[r] = arguments[r];
|
|
1566
|
-
var n = Nn(t[0]);
|
|
1567
|
-
return t.forEach(function(o) {
|
|
1568
|
-
function a(i, c) {
|
|
1569
|
-
var s = new Set(c), l = Ar(o, i), f = Array.isArray(l);
|
|
1570
|
-
if (f || Mc(l)) {
|
|
1571
|
-
if (!s.has(l)) {
|
|
1572
|
-
s.add(l);
|
|
1573
|
-
var u = Ar(n, i);
|
|
1574
|
-
f ? n = ar(n, i, []) : (!u || G(u) !== "object") && (n = ar(n, i, Nn(l))), Rc(l).forEach(function(v) {
|
|
1575
|
-
a([].concat(Ee(i), [v]), s);
|
|
1576
|
-
});
|
|
1577
|
-
}
|
|
1578
|
-
} else
|
|
1579
|
-
n = ar(n, i, l);
|
|
1580
|
-
}
|
|
1581
|
-
a([]);
|
|
1582
|
-
}), n;
|
|
1583
|
-
}
|
|
1584
|
-
function Fo() {
|
|
1585
|
-
}
|
|
1586
|
-
let Se = null;
|
|
1587
|
-
function $c() {
|
|
1588
|
-
Se = null, lo();
|
|
1589
|
-
}
|
|
1590
|
-
let rn = Fo;
|
|
1591
|
-
process.env.NODE_ENV !== "production" && (rn = (e, t, r) => {
|
|
1592
|
-
Be(e, `[antd: ${t}] ${r}`), process.env.NODE_ENV === "test" && $c();
|
|
1593
|
-
});
|
|
1594
|
-
const Wo = /* @__PURE__ */ g.createContext({}), Vo = process.env.NODE_ENV !== "production" ? (e) => {
|
|
1595
|
-
const {
|
|
1596
|
-
strict: t
|
|
1597
|
-
} = g.useContext(Wo), r = (n, o, a) => {
|
|
1598
|
-
if (!n)
|
|
1599
|
-
if (t === !1 && o === "deprecated") {
|
|
1600
|
-
const i = Se;
|
|
1601
|
-
Se || (Se = {}), Se[e] = Se[e] || [], Se[e].includes(a || "") || Se[e].push(a || ""), i || console.warn("[antd] There exists deprecated usage in your code:", Se);
|
|
1602
|
-
} else
|
|
1603
|
-
process.env.NODE_ENV !== "production" && rn(n, e, a);
|
|
1604
|
-
};
|
|
1605
|
-
return r.deprecated = (n, o, a, i) => {
|
|
1606
|
-
r(n, "deprecated", `\`${o}\` is deprecated. Please use \`${a}\` instead.${i ? ` ${i}` : ""}`);
|
|
1607
|
-
}, r;
|
|
1608
|
-
} : () => {
|
|
1609
|
-
const e = () => {
|
|
1610
|
-
};
|
|
1611
|
-
return e.deprecated = Fo, e;
|
|
1612
|
-
}, Xt = rn, Nc = /* @__PURE__ */ Ur(void 0), jc = {
|
|
1613
|
-
// Options.jsx
|
|
1614
|
-
items_per_page: "/ page",
|
|
1615
|
-
jump_to: "Go to",
|
|
1616
|
-
jump_to_confirm: "confirm",
|
|
1617
|
-
page: "Page",
|
|
1618
|
-
// Pagination.jsx
|
|
1619
|
-
prev_page: "Previous Page",
|
|
1620
|
-
next_page: "Next Page",
|
|
1621
|
-
prev_5: "Previous 5 Pages",
|
|
1622
|
-
next_5: "Next 5 Pages",
|
|
1623
|
-
prev_3: "Previous 3 Pages",
|
|
1624
|
-
next_3: "Next 3 Pages",
|
|
1625
|
-
page_size: "Page Size"
|
|
1626
|
-
};
|
|
1627
|
-
var Lc = {
|
|
1628
|
-
locale: "en_US",
|
|
1629
|
-
today: "Today",
|
|
1630
|
-
now: "Now",
|
|
1631
|
-
backToToday: "Back to today",
|
|
1632
|
-
ok: "OK",
|
|
1633
|
-
clear: "Clear",
|
|
1634
|
-
month: "Month",
|
|
1635
|
-
year: "Year",
|
|
1636
|
-
timeSelect: "select time",
|
|
1637
|
-
dateSelect: "select date",
|
|
1638
|
-
weekSelect: "Choose a week",
|
|
1639
|
-
monthSelect: "Choose a month",
|
|
1640
|
-
yearSelect: "Choose a year",
|
|
1641
|
-
decadeSelect: "Choose a decade",
|
|
1642
|
-
yearFormat: "YYYY",
|
|
1643
|
-
dateFormat: "M/D/YYYY",
|
|
1644
|
-
dayFormat: "D",
|
|
1645
|
-
dateTimeFormat: "M/D/YYYY HH:mm:ss",
|
|
1646
|
-
monthBeforeYear: !0,
|
|
1647
|
-
previousMonth: "Previous month (PageUp)",
|
|
1648
|
-
nextMonth: "Next month (PageDown)",
|
|
1649
|
-
previousYear: "Last year (Control + left)",
|
|
1650
|
-
nextYear: "Next year (Control + right)",
|
|
1651
|
-
previousDecade: "Last decade",
|
|
1652
|
-
nextDecade: "Next decade",
|
|
1653
|
-
previousCentury: "Last century",
|
|
1654
|
-
nextCentury: "Next century"
|
|
1655
|
-
};
|
|
1656
|
-
const Ic = {
|
|
1657
|
-
placeholder: "Select time",
|
|
1658
|
-
rangePlaceholder: ["Start time", "End time"]
|
|
1659
|
-
}, Uo = Ic, Hc = {
|
|
1660
|
-
lang: Object.assign({
|
|
1661
|
-
placeholder: "Select date",
|
|
1662
|
-
yearPlaceholder: "Select year",
|
|
1663
|
-
quarterPlaceholder: "Select quarter",
|
|
1664
|
-
monthPlaceholder: "Select month",
|
|
1665
|
-
weekPlaceholder: "Select week",
|
|
1666
|
-
rangePlaceholder: ["Start date", "End date"],
|
|
1667
|
-
rangeYearPlaceholder: ["Start year", "End year"],
|
|
1668
|
-
rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
|
|
1669
|
-
rangeMonthPlaceholder: ["Start month", "End month"],
|
|
1670
|
-
rangeWeekPlaceholder: ["Start week", "End week"]
|
|
1671
|
-
}, Lc),
|
|
1672
|
-
timePickerLocale: Object.assign({}, Uo)
|
|
1673
|
-
}, jn = Hc, oe = "${label} is not a valid ${type}", Dc = {
|
|
1674
|
-
locale: "en",
|
|
1675
|
-
Pagination: jc,
|
|
1676
|
-
DatePicker: jn,
|
|
1677
|
-
TimePicker: Uo,
|
|
1678
|
-
Calendar: jn,
|
|
1679
|
-
global: {
|
|
1680
|
-
placeholder: "Please select"
|
|
1681
|
-
},
|
|
1682
|
-
Table: {
|
|
1683
|
-
filterTitle: "Filter menu",
|
|
1684
|
-
filterConfirm: "OK",
|
|
1685
|
-
filterReset: "Reset",
|
|
1686
|
-
filterEmptyText: "No filters",
|
|
1687
|
-
filterCheckall: "Select all items",
|
|
1688
|
-
filterSearchPlaceholder: "Search in filters",
|
|
1689
|
-
emptyText: "No data",
|
|
1690
|
-
selectAll: "Select current page",
|
|
1691
|
-
selectInvert: "Invert current page",
|
|
1692
|
-
selectNone: "Clear all data",
|
|
1693
|
-
selectionAll: "Select all data",
|
|
1694
|
-
sortTitle: "Sort",
|
|
1695
|
-
expand: "Expand row",
|
|
1696
|
-
collapse: "Collapse row",
|
|
1697
|
-
triggerDesc: "Click to sort descending",
|
|
1698
|
-
triggerAsc: "Click to sort ascending",
|
|
1699
|
-
cancelSort: "Click to cancel sorting"
|
|
1700
|
-
},
|
|
1701
|
-
Tour: {
|
|
1702
|
-
Next: "Next",
|
|
1703
|
-
Previous: "Previous",
|
|
1704
|
-
Finish: "Finish"
|
|
1705
|
-
},
|
|
1706
|
-
Modal: {
|
|
1707
|
-
okText: "OK",
|
|
1708
|
-
cancelText: "Cancel",
|
|
1709
|
-
justOkText: "OK"
|
|
1710
|
-
},
|
|
1711
|
-
Popconfirm: {
|
|
1712
|
-
okText: "OK",
|
|
1713
|
-
cancelText: "Cancel"
|
|
1714
|
-
},
|
|
1715
|
-
Transfer: {
|
|
1716
|
-
titles: ["", ""],
|
|
1717
|
-
searchPlaceholder: "Search here",
|
|
1718
|
-
itemUnit: "item",
|
|
1719
|
-
itemsUnit: "items",
|
|
1720
|
-
remove: "Remove",
|
|
1721
|
-
selectCurrent: "Select current page",
|
|
1722
|
-
removeCurrent: "Remove current page",
|
|
1723
|
-
selectAll: "Select all data",
|
|
1724
|
-
removeAll: "Remove all data",
|
|
1725
|
-
selectInvert: "Invert current page"
|
|
1726
|
-
},
|
|
1727
|
-
Upload: {
|
|
1728
|
-
uploading: "Uploading...",
|
|
1729
|
-
removeFile: "Remove file",
|
|
1730
|
-
uploadError: "Upload error",
|
|
1731
|
-
previewFile: "Preview file",
|
|
1732
|
-
downloadFile: "Download file"
|
|
1733
|
-
},
|
|
1734
|
-
Empty: {
|
|
1735
|
-
description: "No data"
|
|
1736
|
-
},
|
|
1737
|
-
Icon: {
|
|
1738
|
-
icon: "icon"
|
|
1739
|
-
},
|
|
1740
|
-
Text: {
|
|
1741
|
-
edit: "Edit",
|
|
1742
|
-
copy: "Copy",
|
|
1743
|
-
copied: "Copied",
|
|
1744
|
-
expand: "Expand"
|
|
1745
|
-
},
|
|
1746
|
-
PageHeader: {
|
|
1747
|
-
back: "Back"
|
|
1748
|
-
},
|
|
1749
|
-
Form: {
|
|
1750
|
-
optional: "(optional)",
|
|
1751
|
-
defaultValidateMessages: {
|
|
1752
|
-
default: "Field validation error for ${label}",
|
|
1753
|
-
required: "Please enter ${label}",
|
|
1754
|
-
enum: "${label} must be one of [${enum}]",
|
|
1755
|
-
whitespace: "${label} cannot be a blank character",
|
|
1756
|
-
date: {
|
|
1757
|
-
format: "${label} date format is invalid",
|
|
1758
|
-
parse: "${label} cannot be converted to a date",
|
|
1759
|
-
invalid: "${label} is an invalid date"
|
|
1760
|
-
},
|
|
1761
|
-
types: {
|
|
1762
|
-
string: oe,
|
|
1763
|
-
method: oe,
|
|
1764
|
-
array: oe,
|
|
1765
|
-
object: oe,
|
|
1766
|
-
number: oe,
|
|
1767
|
-
date: oe,
|
|
1768
|
-
boolean: oe,
|
|
1769
|
-
integer: oe,
|
|
1770
|
-
float: oe,
|
|
1771
|
-
regexp: oe,
|
|
1772
|
-
email: oe,
|
|
1773
|
-
url: oe,
|
|
1774
|
-
hex: oe
|
|
1775
|
-
},
|
|
1776
|
-
string: {
|
|
1777
|
-
len: "${label} must be ${len} characters",
|
|
1778
|
-
min: "${label} must be at least ${min} characters",
|
|
1779
|
-
max: "${label} must be up to ${max} characters",
|
|
1780
|
-
range: "${label} must be between ${min}-${max} characters"
|
|
1781
|
-
},
|
|
1782
|
-
number: {
|
|
1783
|
-
len: "${label} must be equal to ${len}",
|
|
1784
|
-
min: "${label} must be minimum ${min}",
|
|
1785
|
-
max: "${label} must be maximum ${max}",
|
|
1786
|
-
range: "${label} must be between ${min}-${max}"
|
|
1787
|
-
},
|
|
1788
|
-
array: {
|
|
1789
|
-
len: "Must be ${len} ${label}",
|
|
1790
|
-
min: "At least ${min} ${label}",
|
|
1791
|
-
max: "At most ${max} ${label}",
|
|
1792
|
-
range: "The amount of ${label} must be between ${min}-${max}"
|
|
1793
|
-
},
|
|
1794
|
-
pattern: {
|
|
1795
|
-
mismatch: "${label} does not match the pattern ${pattern}"
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
},
|
|
1799
|
-
Image: {
|
|
1800
|
-
preview: "Preview"
|
|
1801
|
-
},
|
|
1802
|
-
QRCode: {
|
|
1803
|
-
expired: "QR code expired",
|
|
1804
|
-
refresh: "Refresh"
|
|
1805
|
-
},
|
|
1806
|
-
ColorPicker: {
|
|
1807
|
-
presetEmpty: "Empty"
|
|
1808
|
-
}
|
|
1809
|
-
}, Gt = Dc;
|
|
1810
|
-
Object.assign({}, Gt.Modal);
|
|
1811
|
-
let Lt = [];
|
|
1812
|
-
const Ln = () => Lt.reduce((e, t) => Object.assign(Object.assign({}, e), t), Gt.Modal);
|
|
1813
|
-
function Bc(e) {
|
|
1814
|
-
if (e) {
|
|
1815
|
-
const t = Object.assign({}, e);
|
|
1816
|
-
return Lt.push(t), Ln(), () => {
|
|
1817
|
-
Lt = Lt.filter((r) => r !== t), Ln();
|
|
1818
|
-
};
|
|
1819
|
-
}
|
|
1820
|
-
Object.assign({}, Gt.Modal);
|
|
1821
|
-
}
|
|
1822
|
-
const zc = /* @__PURE__ */ Ur(void 0), Xo = zc, Go = "internalMark", Yo = (e) => {
|
|
1823
|
-
const {
|
|
1824
|
-
locale: t = {},
|
|
1825
|
-
children: r,
|
|
1826
|
-
_ANT_MARK__: n
|
|
1827
|
-
} = e;
|
|
1828
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1829
|
-
const a = Vo("LocaleProvider");
|
|
1830
|
-
process.env.NODE_ENV !== "production" && a(n === Go, "deprecated", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale");
|
|
1831
|
-
}
|
|
1832
|
-
g.useEffect(() => Bc(t && t.Modal), [t]);
|
|
1833
|
-
const o = g.useMemo(() => Object.assign(Object.assign({}, t), {
|
|
1834
|
-
exist: !0
|
|
1835
|
-
}), [t]);
|
|
1836
|
-
return /* @__PURE__ */ g.createElement(Xo.Provider, {
|
|
1837
|
-
value: o
|
|
1838
|
-
}, r);
|
|
1839
|
-
};
|
|
1840
|
-
process.env.NODE_ENV !== "production" && (Yo.displayName = "LocaleProvider");
|
|
1841
|
-
const Fc = Yo;
|
|
1842
|
-
function Z(e, t) {
|
|
1843
|
-
Wc(e) && (e = "100%");
|
|
1844
|
-
var r = Vc(e);
|
|
1845
|
-
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
|
|
1846
|
-
}
|
|
1847
|
-
function Tt(e) {
|
|
1848
|
-
return Math.min(1, Math.max(0, e));
|
|
1849
|
-
}
|
|
1850
|
-
function Wc(e) {
|
|
1851
|
-
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
1852
|
-
}
|
|
1853
|
-
function Vc(e) {
|
|
1854
|
-
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
1855
|
-
}
|
|
1856
|
-
function Ko(e) {
|
|
1857
|
-
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
1858
|
-
}
|
|
1859
|
-
function wt(e) {
|
|
1860
|
-
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
1861
|
-
}
|
|
1862
|
-
function $e(e) {
|
|
1863
|
-
return e.length === 1 ? "0" + e : String(e);
|
|
1864
|
-
}
|
|
1865
|
-
function Uc(e, t, r) {
|
|
1866
|
-
return {
|
|
1867
|
-
r: Z(e, 255) * 255,
|
|
1868
|
-
g: Z(t, 255) * 255,
|
|
1869
|
-
b: Z(r, 255) * 255
|
|
1870
|
-
};
|
|
1871
|
-
}
|
|
1872
|
-
function In(e, t, r) {
|
|
1873
|
-
e = Z(e, 255), t = Z(t, 255), r = Z(r, 255);
|
|
1874
|
-
var n = Math.max(e, t, r), o = Math.min(e, t, r), a = 0, i = 0, c = (n + o) / 2;
|
|
1875
|
-
if (n === o)
|
|
1876
|
-
i = 0, a = 0;
|
|
1877
|
-
else {
|
|
1878
|
-
var s = n - o;
|
|
1879
|
-
switch (i = c > 0.5 ? s / (2 - n - o) : s / (n + o), n) {
|
|
1880
|
-
case e:
|
|
1881
|
-
a = (t - r) / s + (t < r ? 6 : 0);
|
|
1882
|
-
break;
|
|
1883
|
-
case t:
|
|
1884
|
-
a = (r - e) / s + 2;
|
|
1885
|
-
break;
|
|
1886
|
-
case r:
|
|
1887
|
-
a = (e - t) / s + 4;
|
|
1888
|
-
break;
|
|
1889
|
-
}
|
|
1890
|
-
a /= 6;
|
|
1891
|
-
}
|
|
1892
|
-
return { h: a, s: i, l: c };
|
|
1893
|
-
}
|
|
1894
|
-
function ir(e, t, r) {
|
|
1895
|
-
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
1896
|
-
}
|
|
1897
|
-
function Xc(e, t, r) {
|
|
1898
|
-
var n, o, a;
|
|
1899
|
-
if (e = Z(e, 360), t = Z(t, 100), r = Z(r, 100), t === 0)
|
|
1900
|
-
o = r, a = r, n = r;
|
|
1901
|
-
else {
|
|
1902
|
-
var i = r < 0.5 ? r * (1 + t) : r + t - r * t, c = 2 * r - i;
|
|
1903
|
-
n = ir(c, i, e + 1 / 3), o = ir(c, i, e), a = ir(c, i, e - 1 / 3);
|
|
1904
|
-
}
|
|
1905
|
-
return { r: n * 255, g: o * 255, b: a * 255 };
|
|
1906
|
-
}
|
|
1907
|
-
function Mr(e, t, r) {
|
|
1908
|
-
e = Z(e, 255), t = Z(t, 255), r = Z(r, 255);
|
|
1909
|
-
var n = Math.max(e, t, r), o = Math.min(e, t, r), a = 0, i = n, c = n - o, s = n === 0 ? 0 : c / n;
|
|
1910
|
-
if (n === o)
|
|
1911
|
-
a = 0;
|
|
1912
|
-
else {
|
|
1913
|
-
switch (n) {
|
|
1914
|
-
case e:
|
|
1915
|
-
a = (t - r) / c + (t < r ? 6 : 0);
|
|
1916
|
-
break;
|
|
1917
|
-
case t:
|
|
1918
|
-
a = (r - e) / c + 2;
|
|
1919
|
-
break;
|
|
1920
|
-
case r:
|
|
1921
|
-
a = (e - t) / c + 4;
|
|
1922
|
-
break;
|
|
1923
|
-
}
|
|
1924
|
-
a /= 6;
|
|
1925
|
-
}
|
|
1926
|
-
return { h: a, s, v: i };
|
|
1927
|
-
}
|
|
1928
|
-
function Gc(e, t, r) {
|
|
1929
|
-
e = Z(e, 360) * 6, t = Z(t, 100), r = Z(r, 100);
|
|
1930
|
-
var n = Math.floor(e), o = e - n, a = r * (1 - t), i = r * (1 - o * t), c = r * (1 - (1 - o) * t), s = n % 6, l = [r, i, a, a, c, r][s], f = [c, r, r, i, a, a][s], u = [a, a, c, r, r, i][s];
|
|
1931
|
-
return { r: l * 255, g: f * 255, b: u * 255 };
|
|
1932
|
-
}
|
|
1933
|
-
function Rr(e, t, r, n) {
|
|
1934
|
-
var o = [
|
|
1935
|
-
$e(Math.round(e).toString(16)),
|
|
1936
|
-
$e(Math.round(t).toString(16)),
|
|
1937
|
-
$e(Math.round(r).toString(16))
|
|
1938
|
-
];
|
|
1939
|
-
return n && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
|
|
1940
|
-
}
|
|
1941
|
-
function Yc(e, t, r, n, o) {
|
|
1942
|
-
var a = [
|
|
1943
|
-
$e(Math.round(e).toString(16)),
|
|
1944
|
-
$e(Math.round(t).toString(16)),
|
|
1945
|
-
$e(Math.round(r).toString(16)),
|
|
1946
|
-
$e(Kc(n))
|
|
1947
|
-
];
|
|
1948
|
-
return o && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
|
|
1949
|
-
}
|
|
1950
|
-
function Kc(e) {
|
|
1951
|
-
return Math.round(parseFloat(e) * 255).toString(16);
|
|
1952
|
-
}
|
|
1953
|
-
function Hn(e) {
|
|
1954
|
-
return ae(e) / 255;
|
|
1955
|
-
}
|
|
1956
|
-
function ae(e) {
|
|
1957
|
-
return parseInt(e, 16);
|
|
1958
|
-
}
|
|
1959
|
-
function qc(e) {
|
|
1960
|
-
return {
|
|
1961
|
-
r: e >> 16,
|
|
1962
|
-
g: (e & 65280) >> 8,
|
|
1963
|
-
b: e & 255
|
|
1964
|
-
};
|
|
1965
|
-
}
|
|
1966
|
-
var _r = {
|
|
1967
|
-
aliceblue: "#f0f8ff",
|
|
1968
|
-
antiquewhite: "#faebd7",
|
|
1969
|
-
aqua: "#00ffff",
|
|
1970
|
-
aquamarine: "#7fffd4",
|
|
1971
|
-
azure: "#f0ffff",
|
|
1972
|
-
beige: "#f5f5dc",
|
|
1973
|
-
bisque: "#ffe4c4",
|
|
1974
|
-
black: "#000000",
|
|
1975
|
-
blanchedalmond: "#ffebcd",
|
|
1976
|
-
blue: "#0000ff",
|
|
1977
|
-
blueviolet: "#8a2be2",
|
|
1978
|
-
brown: "#a52a2a",
|
|
1979
|
-
burlywood: "#deb887",
|
|
1980
|
-
cadetblue: "#5f9ea0",
|
|
1981
|
-
chartreuse: "#7fff00",
|
|
1982
|
-
chocolate: "#d2691e",
|
|
1983
|
-
coral: "#ff7f50",
|
|
1984
|
-
cornflowerblue: "#6495ed",
|
|
1985
|
-
cornsilk: "#fff8dc",
|
|
1986
|
-
crimson: "#dc143c",
|
|
1987
|
-
cyan: "#00ffff",
|
|
1988
|
-
darkblue: "#00008b",
|
|
1989
|
-
darkcyan: "#008b8b",
|
|
1990
|
-
darkgoldenrod: "#b8860b",
|
|
1991
|
-
darkgray: "#a9a9a9",
|
|
1992
|
-
darkgreen: "#006400",
|
|
1993
|
-
darkgrey: "#a9a9a9",
|
|
1994
|
-
darkkhaki: "#bdb76b",
|
|
1995
|
-
darkmagenta: "#8b008b",
|
|
1996
|
-
darkolivegreen: "#556b2f",
|
|
1997
|
-
darkorange: "#ff8c00",
|
|
1998
|
-
darkorchid: "#9932cc",
|
|
1999
|
-
darkred: "#8b0000",
|
|
2000
|
-
darksalmon: "#e9967a",
|
|
2001
|
-
darkseagreen: "#8fbc8f",
|
|
2002
|
-
darkslateblue: "#483d8b",
|
|
2003
|
-
darkslategray: "#2f4f4f",
|
|
2004
|
-
darkslategrey: "#2f4f4f",
|
|
2005
|
-
darkturquoise: "#00ced1",
|
|
2006
|
-
darkviolet: "#9400d3",
|
|
2007
|
-
deeppink: "#ff1493",
|
|
2008
|
-
deepskyblue: "#00bfff",
|
|
2009
|
-
dimgray: "#696969",
|
|
2010
|
-
dimgrey: "#696969",
|
|
2011
|
-
dodgerblue: "#1e90ff",
|
|
2012
|
-
firebrick: "#b22222",
|
|
2013
|
-
floralwhite: "#fffaf0",
|
|
2014
|
-
forestgreen: "#228b22",
|
|
2015
|
-
fuchsia: "#ff00ff",
|
|
2016
|
-
gainsboro: "#dcdcdc",
|
|
2017
|
-
ghostwhite: "#f8f8ff",
|
|
2018
|
-
goldenrod: "#daa520",
|
|
2019
|
-
gold: "#ffd700",
|
|
2020
|
-
gray: "#808080",
|
|
2021
|
-
green: "#008000",
|
|
2022
|
-
greenyellow: "#adff2f",
|
|
2023
|
-
grey: "#808080",
|
|
2024
|
-
honeydew: "#f0fff0",
|
|
2025
|
-
hotpink: "#ff69b4",
|
|
2026
|
-
indianred: "#cd5c5c",
|
|
2027
|
-
indigo: "#4b0082",
|
|
2028
|
-
ivory: "#fffff0",
|
|
2029
|
-
khaki: "#f0e68c",
|
|
2030
|
-
lavenderblush: "#fff0f5",
|
|
2031
|
-
lavender: "#e6e6fa",
|
|
2032
|
-
lawngreen: "#7cfc00",
|
|
2033
|
-
lemonchiffon: "#fffacd",
|
|
2034
|
-
lightblue: "#add8e6",
|
|
2035
|
-
lightcoral: "#f08080",
|
|
2036
|
-
lightcyan: "#e0ffff",
|
|
2037
|
-
lightgoldenrodyellow: "#fafad2",
|
|
2038
|
-
lightgray: "#d3d3d3",
|
|
2039
|
-
lightgreen: "#90ee90",
|
|
2040
|
-
lightgrey: "#d3d3d3",
|
|
2041
|
-
lightpink: "#ffb6c1",
|
|
2042
|
-
lightsalmon: "#ffa07a",
|
|
2043
|
-
lightseagreen: "#20b2aa",
|
|
2044
|
-
lightskyblue: "#87cefa",
|
|
2045
|
-
lightslategray: "#778899",
|
|
2046
|
-
lightslategrey: "#778899",
|
|
2047
|
-
lightsteelblue: "#b0c4de",
|
|
2048
|
-
lightyellow: "#ffffe0",
|
|
2049
|
-
lime: "#00ff00",
|
|
2050
|
-
limegreen: "#32cd32",
|
|
2051
|
-
linen: "#faf0e6",
|
|
2052
|
-
magenta: "#ff00ff",
|
|
2053
|
-
maroon: "#800000",
|
|
2054
|
-
mediumaquamarine: "#66cdaa",
|
|
2055
|
-
mediumblue: "#0000cd",
|
|
2056
|
-
mediumorchid: "#ba55d3",
|
|
2057
|
-
mediumpurple: "#9370db",
|
|
2058
|
-
mediumseagreen: "#3cb371",
|
|
2059
|
-
mediumslateblue: "#7b68ee",
|
|
2060
|
-
mediumspringgreen: "#00fa9a",
|
|
2061
|
-
mediumturquoise: "#48d1cc",
|
|
2062
|
-
mediumvioletred: "#c71585",
|
|
2063
|
-
midnightblue: "#191970",
|
|
2064
|
-
mintcream: "#f5fffa",
|
|
2065
|
-
mistyrose: "#ffe4e1",
|
|
2066
|
-
moccasin: "#ffe4b5",
|
|
2067
|
-
navajowhite: "#ffdead",
|
|
2068
|
-
navy: "#000080",
|
|
2069
|
-
oldlace: "#fdf5e6",
|
|
2070
|
-
olive: "#808000",
|
|
2071
|
-
olivedrab: "#6b8e23",
|
|
2072
|
-
orange: "#ffa500",
|
|
2073
|
-
orangered: "#ff4500",
|
|
2074
|
-
orchid: "#da70d6",
|
|
2075
|
-
palegoldenrod: "#eee8aa",
|
|
2076
|
-
palegreen: "#98fb98",
|
|
2077
|
-
paleturquoise: "#afeeee",
|
|
2078
|
-
palevioletred: "#db7093",
|
|
2079
|
-
papayawhip: "#ffefd5",
|
|
2080
|
-
peachpuff: "#ffdab9",
|
|
2081
|
-
peru: "#cd853f",
|
|
2082
|
-
pink: "#ffc0cb",
|
|
2083
|
-
plum: "#dda0dd",
|
|
2084
|
-
powderblue: "#b0e0e6",
|
|
2085
|
-
purple: "#800080",
|
|
2086
|
-
rebeccapurple: "#663399",
|
|
2087
|
-
red: "#ff0000",
|
|
2088
|
-
rosybrown: "#bc8f8f",
|
|
2089
|
-
royalblue: "#4169e1",
|
|
2090
|
-
saddlebrown: "#8b4513",
|
|
2091
|
-
salmon: "#fa8072",
|
|
2092
|
-
sandybrown: "#f4a460",
|
|
2093
|
-
seagreen: "#2e8b57",
|
|
2094
|
-
seashell: "#fff5ee",
|
|
2095
|
-
sienna: "#a0522d",
|
|
2096
|
-
silver: "#c0c0c0",
|
|
2097
|
-
skyblue: "#87ceeb",
|
|
2098
|
-
slateblue: "#6a5acd",
|
|
2099
|
-
slategray: "#708090",
|
|
2100
|
-
slategrey: "#708090",
|
|
2101
|
-
snow: "#fffafa",
|
|
2102
|
-
springgreen: "#00ff7f",
|
|
2103
|
-
steelblue: "#4682b4",
|
|
2104
|
-
tan: "#d2b48c",
|
|
2105
|
-
teal: "#008080",
|
|
2106
|
-
thistle: "#d8bfd8",
|
|
2107
|
-
tomato: "#ff6347",
|
|
2108
|
-
turquoise: "#40e0d0",
|
|
2109
|
-
violet: "#ee82ee",
|
|
2110
|
-
wheat: "#f5deb3",
|
|
2111
|
-
white: "#ffffff",
|
|
2112
|
-
whitesmoke: "#f5f5f5",
|
|
2113
|
-
yellow: "#ffff00",
|
|
2114
|
-
yellowgreen: "#9acd32"
|
|
2115
|
-
};
|
|
2116
|
-
function Xe(e) {
|
|
2117
|
-
var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, o = null, a = null, i = !1, c = !1;
|
|
2118
|
-
return typeof e == "string" && (e = Zc(e)), typeof e == "object" && (be(e.r) && be(e.g) && be(e.b) ? (t = Uc(e.r, e.g, e.b), i = !0, c = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : be(e.h) && be(e.s) && be(e.v) ? (n = wt(e.s), o = wt(e.v), t = Gc(e.h, n, o), i = !0, c = "hsv") : be(e.h) && be(e.s) && be(e.l) && (n = wt(e.s), a = wt(e.l), t = Xc(e.h, n, a), i = !0, c = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = Ko(r), {
|
|
2119
|
-
ok: i,
|
|
2120
|
-
format: e.format || c,
|
|
2121
|
-
r: Math.min(255, Math.max(t.r, 0)),
|
|
2122
|
-
g: Math.min(255, Math.max(t.g, 0)),
|
|
2123
|
-
b: Math.min(255, Math.max(t.b, 0)),
|
|
2124
|
-
a: r
|
|
2125
|
-
};
|
|
2126
|
-
}
|
|
2127
|
-
var Qc = "[-\\+]?\\d+%?", Jc = "[-\\+]?\\d*\\.\\d+%?", we = "(?:".concat(Jc, ")|(?:").concat(Qc, ")"), cr = "[\\s|\\(]+(".concat(we, ")[,|\\s]+(").concat(we, ")[,|\\s]+(").concat(we, ")\\s*\\)?"), sr = "[\\s|\\(]+(".concat(we, ")[,|\\s]+(").concat(we, ")[,|\\s]+(").concat(we, ")[,|\\s]+(").concat(we, ")\\s*\\)?"), le = {
|
|
2128
|
-
CSS_UNIT: new RegExp(we),
|
|
2129
|
-
rgb: new RegExp("rgb" + cr),
|
|
2130
|
-
rgba: new RegExp("rgba" + sr),
|
|
2131
|
-
hsl: new RegExp("hsl" + cr),
|
|
2132
|
-
hsla: new RegExp("hsla" + sr),
|
|
2133
|
-
hsv: new RegExp("hsv" + cr),
|
|
2134
|
-
hsva: new RegExp("hsva" + sr),
|
|
2135
|
-
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
2136
|
-
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
2137
|
-
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
2138
|
-
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
2139
|
-
};
|
|
2140
|
-
function Zc(e) {
|
|
2141
|
-
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
2142
|
-
return !1;
|
|
2143
|
-
var t = !1;
|
|
2144
|
-
if (_r[e])
|
|
2145
|
-
e = _r[e], t = !0;
|
|
2146
|
-
else if (e === "transparent")
|
|
2147
|
-
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
2148
|
-
var r = le.rgb.exec(e);
|
|
2149
|
-
return r ? { r: r[1], g: r[2], b: r[3] } : (r = le.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = le.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = le.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = le.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = le.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = le.hex8.exec(e), r ? {
|
|
2150
|
-
r: ae(r[1]),
|
|
2151
|
-
g: ae(r[2]),
|
|
2152
|
-
b: ae(r[3]),
|
|
2153
|
-
a: Hn(r[4]),
|
|
2154
|
-
format: t ? "name" : "hex8"
|
|
2155
|
-
} : (r = le.hex6.exec(e), r ? {
|
|
2156
|
-
r: ae(r[1]),
|
|
2157
|
-
g: ae(r[2]),
|
|
2158
|
-
b: ae(r[3]),
|
|
2159
|
-
format: t ? "name" : "hex"
|
|
2160
|
-
} : (r = le.hex4.exec(e), r ? {
|
|
2161
|
-
r: ae(r[1] + r[1]),
|
|
2162
|
-
g: ae(r[2] + r[2]),
|
|
2163
|
-
b: ae(r[3] + r[3]),
|
|
2164
|
-
a: Hn(r[4] + r[4]),
|
|
2165
|
-
format: t ? "name" : "hex8"
|
|
2166
|
-
} : (r = le.hex3.exec(e), r ? {
|
|
2167
|
-
r: ae(r[1] + r[1]),
|
|
2168
|
-
g: ae(r[2] + r[2]),
|
|
2169
|
-
b: ae(r[3] + r[3]),
|
|
2170
|
-
format: t ? "name" : "hex"
|
|
2171
|
-
} : !1)))))))));
|
|
2172
|
-
}
|
|
2173
|
-
function be(e) {
|
|
2174
|
-
return !!le.CSS_UNIT.exec(String(e));
|
|
2175
|
-
}
|
|
2176
|
-
var ie = (
|
|
2177
|
-
/** @class */
|
|
2178
|
-
function() {
|
|
2179
|
-
function e(t, r) {
|
|
2180
|
-
t === void 0 && (t = ""), r === void 0 && (r = {});
|
|
2181
|
-
var n;
|
|
2182
|
-
if (t instanceof e)
|
|
2183
|
-
return t;
|
|
2184
|
-
typeof t == "number" && (t = qc(t)), this.originalInput = t;
|
|
2185
|
-
var o = Xe(t);
|
|
2186
|
-
this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (n = r.format) !== null && n !== void 0 ? n : o.format, this.gradientType = r.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = o.ok;
|
|
2187
|
-
}
|
|
2188
|
-
return e.prototype.isDark = function() {
|
|
2189
|
-
return this.getBrightness() < 128;
|
|
2190
|
-
}, e.prototype.isLight = function() {
|
|
2191
|
-
return !this.isDark();
|
|
2192
|
-
}, e.prototype.getBrightness = function() {
|
|
2193
|
-
var t = this.toRgb();
|
|
2194
|
-
return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
|
|
2195
|
-
}, e.prototype.getLuminance = function() {
|
|
2196
|
-
var t = this.toRgb(), r, n, o, a = t.r / 255, i = t.g / 255, c = t.b / 255;
|
|
2197
|
-
return a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), i <= 0.03928 ? n = i / 12.92 : n = Math.pow((i + 0.055) / 1.055, 2.4), c <= 0.03928 ? o = c / 12.92 : o = Math.pow((c + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * n + 0.0722 * o;
|
|
2198
|
-
}, e.prototype.getAlpha = function() {
|
|
2199
|
-
return this.a;
|
|
2200
|
-
}, e.prototype.setAlpha = function(t) {
|
|
2201
|
-
return this.a = Ko(t), this.roundA = Math.round(100 * this.a) / 100, this;
|
|
2202
|
-
}, e.prototype.isMonochrome = function() {
|
|
2203
|
-
var t = this.toHsl().s;
|
|
2204
|
-
return t === 0;
|
|
2205
|
-
}, e.prototype.toHsv = function() {
|
|
2206
|
-
var t = Mr(this.r, this.g, this.b);
|
|
2207
|
-
return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
|
|
2208
|
-
}, e.prototype.toHsvString = function() {
|
|
2209
|
-
var t = Mr(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
|
|
2210
|
-
return this.a === 1 ? "hsv(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsva(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")");
|
|
2211
|
-
}, e.prototype.toHsl = function() {
|
|
2212
|
-
var t = In(this.r, this.g, this.b);
|
|
2213
|
-
return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
|
|
2214
|
-
}, e.prototype.toHslString = function() {
|
|
2215
|
-
var t = In(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
|
|
2216
|
-
return this.a === 1 ? "hsl(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsla(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")");
|
|
2217
|
-
}, e.prototype.toHex = function(t) {
|
|
2218
|
-
return t === void 0 && (t = !1), Rr(this.r, this.g, this.b, t);
|
|
2219
|
-
}, e.prototype.toHexString = function(t) {
|
|
2220
|
-
return t === void 0 && (t = !1), "#" + this.toHex(t);
|
|
2221
|
-
}, e.prototype.toHex8 = function(t) {
|
|
2222
|
-
return t === void 0 && (t = !1), Yc(this.r, this.g, this.b, this.a, t);
|
|
2223
|
-
}, e.prototype.toHex8String = function(t) {
|
|
2224
|
-
return t === void 0 && (t = !1), "#" + this.toHex8(t);
|
|
2225
|
-
}, e.prototype.toHexShortString = function(t) {
|
|
2226
|
-
return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
|
|
2227
|
-
}, e.prototype.toRgb = function() {
|
|
2228
|
-
return {
|
|
2229
|
-
r: Math.round(this.r),
|
|
2230
|
-
g: Math.round(this.g),
|
|
2231
|
-
b: Math.round(this.b),
|
|
2232
|
-
a: this.a
|
|
2233
|
-
};
|
|
2234
|
-
}, e.prototype.toRgbString = function() {
|
|
2235
|
-
var t = Math.round(this.r), r = Math.round(this.g), n = Math.round(this.b);
|
|
2236
|
-
return this.a === 1 ? "rgb(".concat(t, ", ").concat(r, ", ").concat(n, ")") : "rgba(".concat(t, ", ").concat(r, ", ").concat(n, ", ").concat(this.roundA, ")");
|
|
2237
|
-
}, e.prototype.toPercentageRgb = function() {
|
|
2238
|
-
var t = function(r) {
|
|
2239
|
-
return "".concat(Math.round(Z(r, 255) * 100), "%");
|
|
2240
|
-
};
|
|
2241
|
-
return {
|
|
2242
|
-
r: t(this.r),
|
|
2243
|
-
g: t(this.g),
|
|
2244
|
-
b: t(this.b),
|
|
2245
|
-
a: this.a
|
|
2246
|
-
};
|
|
2247
|
-
}, e.prototype.toPercentageRgbString = function() {
|
|
2248
|
-
var t = function(r) {
|
|
2249
|
-
return Math.round(Z(r, 255) * 100);
|
|
2250
|
-
};
|
|
2251
|
-
return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
|
|
2252
|
-
}, e.prototype.toName = function() {
|
|
2253
|
-
if (this.a === 0)
|
|
2254
|
-
return "transparent";
|
|
2255
|
-
if (this.a < 1)
|
|
2256
|
-
return !1;
|
|
2257
|
-
for (var t = "#" + Rr(this.r, this.g, this.b, !1), r = 0, n = Object.entries(_r); r < n.length; r++) {
|
|
2258
|
-
var o = n[r], a = o[0], i = o[1];
|
|
2259
|
-
if (t === i)
|
|
2260
|
-
return a;
|
|
2261
|
-
}
|
|
2262
|
-
return !1;
|
|
2263
|
-
}, e.prototype.toString = function(t) {
|
|
2264
|
-
var r = !!t;
|
|
2265
|
-
t = t ?? this.format;
|
|
2266
|
-
var n = !1, o = this.a < 1 && this.a >= 0, a = !r && o && (t.startsWith("hex") || t === "name");
|
|
2267
|
-
return a ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
|
|
2268
|
-
}, e.prototype.toNumber = function() {
|
|
2269
|
-
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
2270
|
-
}, e.prototype.clone = function() {
|
|
2271
|
-
return new e(this.toString());
|
|
2272
|
-
}, e.prototype.lighten = function(t) {
|
|
2273
|
-
t === void 0 && (t = 10);
|
|
2274
|
-
var r = this.toHsl();
|
|
2275
|
-
return r.l += t / 100, r.l = Tt(r.l), new e(r);
|
|
2276
|
-
}, e.prototype.brighten = function(t) {
|
|
2277
|
-
t === void 0 && (t = 10);
|
|
2278
|
-
var r = this.toRgb();
|
|
2279
|
-
return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), new e(r);
|
|
2280
|
-
}, e.prototype.darken = function(t) {
|
|
2281
|
-
t === void 0 && (t = 10);
|
|
2282
|
-
var r = this.toHsl();
|
|
2283
|
-
return r.l -= t / 100, r.l = Tt(r.l), new e(r);
|
|
2284
|
-
}, e.prototype.tint = function(t) {
|
|
2285
|
-
return t === void 0 && (t = 10), this.mix("white", t);
|
|
2286
|
-
}, e.prototype.shade = function(t) {
|
|
2287
|
-
return t === void 0 && (t = 10), this.mix("black", t);
|
|
2288
|
-
}, e.prototype.desaturate = function(t) {
|
|
2289
|
-
t === void 0 && (t = 10);
|
|
2290
|
-
var r = this.toHsl();
|
|
2291
|
-
return r.s -= t / 100, r.s = Tt(r.s), new e(r);
|
|
2292
|
-
}, e.prototype.saturate = function(t) {
|
|
2293
|
-
t === void 0 && (t = 10);
|
|
2294
|
-
var r = this.toHsl();
|
|
2295
|
-
return r.s += t / 100, r.s = Tt(r.s), new e(r);
|
|
2296
|
-
}, e.prototype.greyscale = function() {
|
|
2297
|
-
return this.desaturate(100);
|
|
2298
|
-
}, e.prototype.spin = function(t) {
|
|
2299
|
-
var r = this.toHsl(), n = (r.h + t) % 360;
|
|
2300
|
-
return r.h = n < 0 ? 360 + n : n, new e(r);
|
|
2301
|
-
}, e.prototype.mix = function(t, r) {
|
|
2302
|
-
r === void 0 && (r = 50);
|
|
2303
|
-
var n = this.toRgb(), o = new e(t).toRgb(), a = r / 100, i = {
|
|
2304
|
-
r: (o.r - n.r) * a + n.r,
|
|
2305
|
-
g: (o.g - n.g) * a + n.g,
|
|
2306
|
-
b: (o.b - n.b) * a + n.b,
|
|
2307
|
-
a: (o.a - n.a) * a + n.a
|
|
2308
|
-
};
|
|
2309
|
-
return new e(i);
|
|
2310
|
-
}, e.prototype.analogous = function(t, r) {
|
|
2311
|
-
t === void 0 && (t = 6), r === void 0 && (r = 30);
|
|
2312
|
-
var n = this.toHsl(), o = 360 / r, a = [this];
|
|
2313
|
-
for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; )
|
|
2314
|
-
n.h = (n.h + o) % 360, a.push(new e(n));
|
|
2315
|
-
return a;
|
|
2316
|
-
}, e.prototype.complement = function() {
|
|
2317
|
-
var t = this.toHsl();
|
|
2318
|
-
return t.h = (t.h + 180) % 360, new e(t);
|
|
2319
|
-
}, e.prototype.monochromatic = function(t) {
|
|
2320
|
-
t === void 0 && (t = 6);
|
|
2321
|
-
for (var r = this.toHsv(), n = r.h, o = r.s, a = r.v, i = [], c = 1 / t; t--; )
|
|
2322
|
-
i.push(new e({ h: n, s: o, v: a })), a = (a + c) % 1;
|
|
2323
|
-
return i;
|
|
2324
|
-
}, e.prototype.splitcomplement = function() {
|
|
2325
|
-
var t = this.toHsl(), r = t.h;
|
|
2326
|
-
return [
|
|
2327
|
-
this,
|
|
2328
|
-
new e({ h: (r + 72) % 360, s: t.s, l: t.l }),
|
|
2329
|
-
new e({ h: (r + 216) % 360, s: t.s, l: t.l })
|
|
2330
|
-
];
|
|
2331
|
-
}, e.prototype.onBackground = function(t) {
|
|
2332
|
-
var r = this.toRgb(), n = new e(t).toRgb(), o = r.a + n.a * (1 - r.a);
|
|
2333
|
-
return new e({
|
|
2334
|
-
r: (r.r * r.a + n.r * n.a * (1 - r.a)) / o,
|
|
2335
|
-
g: (r.g * r.a + n.g * n.a * (1 - r.a)) / o,
|
|
2336
|
-
b: (r.b * r.a + n.b * n.a * (1 - r.a)) / o,
|
|
2337
|
-
a: o
|
|
2338
|
-
});
|
|
2339
|
-
}, e.prototype.triad = function() {
|
|
2340
|
-
return this.polyad(3);
|
|
2341
|
-
}, e.prototype.tetrad = function() {
|
|
2342
|
-
return this.polyad(4);
|
|
2343
|
-
}, e.prototype.polyad = function(t) {
|
|
2344
|
-
for (var r = this.toHsl(), n = r.h, o = [this], a = 360 / t, i = 1; i < t; i++)
|
|
2345
|
-
o.push(new e({ h: (n + i * a) % 360, s: r.s, l: r.l }));
|
|
2346
|
-
return o;
|
|
2347
|
-
}, e.prototype.equals = function(t) {
|
|
2348
|
-
return this.toRgbString() === new e(t).toRgbString();
|
|
2349
|
-
}, e;
|
|
2350
|
-
}()
|
|
2351
|
-
), Ot = 2, Dn = 0.16, es = 0.05, ts = 0.05, rs = 0.15, qo = 5, Qo = 4, ns = [{
|
|
2352
|
-
index: 7,
|
|
2353
|
-
opacity: 0.15
|
|
2354
|
-
}, {
|
|
2355
|
-
index: 6,
|
|
2356
|
-
opacity: 0.25
|
|
2357
|
-
}, {
|
|
2358
|
-
index: 5,
|
|
2359
|
-
opacity: 0.3
|
|
2360
|
-
}, {
|
|
2361
|
-
index: 5,
|
|
2362
|
-
opacity: 0.45
|
|
2363
|
-
}, {
|
|
2364
|
-
index: 5,
|
|
2365
|
-
opacity: 0.65
|
|
2366
|
-
}, {
|
|
2367
|
-
index: 5,
|
|
2368
|
-
opacity: 0.85
|
|
2369
|
-
}, {
|
|
2370
|
-
index: 4,
|
|
2371
|
-
opacity: 0.9
|
|
2372
|
-
}, {
|
|
2373
|
-
index: 3,
|
|
2374
|
-
opacity: 0.95
|
|
2375
|
-
}, {
|
|
2376
|
-
index: 2,
|
|
2377
|
-
opacity: 0.97
|
|
2378
|
-
}, {
|
|
2379
|
-
index: 1,
|
|
2380
|
-
opacity: 0.98
|
|
2381
|
-
}];
|
|
2382
|
-
function Bn(e) {
|
|
2383
|
-
var t = e.r, r = e.g, n = e.b, o = Mr(t, r, n);
|
|
2384
|
-
return {
|
|
2385
|
-
h: o.h * 360,
|
|
2386
|
-
s: o.s,
|
|
2387
|
-
v: o.v
|
|
2388
|
-
};
|
|
2389
|
-
}
|
|
2390
|
-
function kt(e) {
|
|
2391
|
-
var t = e.r, r = e.g, n = e.b;
|
|
2392
|
-
return "#".concat(Rr(t, r, n, !1));
|
|
2393
|
-
}
|
|
2394
|
-
function os(e, t, r) {
|
|
2395
|
-
var n = r / 100, o = {
|
|
2396
|
-
r: (t.r - e.r) * n + e.r,
|
|
2397
|
-
g: (t.g - e.g) * n + e.g,
|
|
2398
|
-
b: (t.b - e.b) * n + e.b
|
|
2399
|
-
};
|
|
2400
|
-
return o;
|
|
2401
|
-
}
|
|
2402
|
-
function zn(e, t, r) {
|
|
2403
|
-
var n;
|
|
2404
|
-
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? n = r ? Math.round(e.h) - Ot * t : Math.round(e.h) + Ot * t : n = r ? Math.round(e.h) + Ot * t : Math.round(e.h) - Ot * t, n < 0 ? n += 360 : n >= 360 && (n -= 360), n;
|
|
2405
|
-
}
|
|
2406
|
-
function Fn(e, t, r) {
|
|
2407
|
-
if (e.h === 0 && e.s === 0)
|
|
2408
|
-
return e.s;
|
|
2409
|
-
var n;
|
|
2410
|
-
return r ? n = e.s - Dn * t : t === Qo ? n = e.s + Dn : n = e.s + es * t, n > 1 && (n = 1), r && t === qo && n > 0.1 && (n = 0.1), n < 0.06 && (n = 0.06), Number(n.toFixed(2));
|
|
2411
|
-
}
|
|
2412
|
-
function Wn(e, t, r) {
|
|
2413
|
-
var n;
|
|
2414
|
-
return r ? n = e.v + ts * t : n = e.v - rs * t, n > 1 && (n = 1), Number(n.toFixed(2));
|
|
2415
|
-
}
|
|
2416
|
-
function He(e) {
|
|
2417
|
-
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], n = Xe(e), o = qo; o > 0; o -= 1) {
|
|
2418
|
-
var a = Bn(n), i = kt(Xe({
|
|
2419
|
-
h: zn(a, o, !0),
|
|
2420
|
-
s: Fn(a, o, !0),
|
|
2421
|
-
v: Wn(a, o, !0)
|
|
2422
|
-
}));
|
|
2423
|
-
r.push(i);
|
|
2424
|
-
}
|
|
2425
|
-
r.push(kt(n));
|
|
2426
|
-
for (var c = 1; c <= Qo; c += 1) {
|
|
2427
|
-
var s = Bn(n), l = kt(Xe({
|
|
2428
|
-
h: zn(s, c),
|
|
2429
|
-
s: Fn(s, c),
|
|
2430
|
-
v: Wn(s, c)
|
|
2431
|
-
}));
|
|
2432
|
-
r.push(l);
|
|
2433
|
-
}
|
|
2434
|
-
return t.theme === "dark" ? ns.map(function(f) {
|
|
2435
|
-
var u = f.index, v = f.opacity, h = kt(os(Xe(t.backgroundColor || "#141414"), Xe(r[u]), v * 100));
|
|
2436
|
-
return h;
|
|
2437
|
-
}) : r;
|
|
2438
|
-
}
|
|
2439
|
-
var lr = {
|
|
2440
|
-
red: "#F5222D",
|
|
2441
|
-
volcano: "#FA541C",
|
|
2442
|
-
orange: "#FA8C16",
|
|
2443
|
-
gold: "#FAAD14",
|
|
2444
|
-
yellow: "#FADB14",
|
|
2445
|
-
lime: "#A0D911",
|
|
2446
|
-
green: "#52C41A",
|
|
2447
|
-
cyan: "#13C2C2",
|
|
2448
|
-
blue: "#1677FF",
|
|
2449
|
-
geekblue: "#2F54EB",
|
|
2450
|
-
purple: "#722ED1",
|
|
2451
|
-
magenta: "#EB2F96",
|
|
2452
|
-
grey: "#666666"
|
|
2453
|
-
}, It = {}, ur = {};
|
|
2454
|
-
Object.keys(lr).forEach(function(e) {
|
|
2455
|
-
It[e] = He(lr[e]), It[e].primary = It[e][5], ur[e] = He(lr[e], {
|
|
2456
|
-
theme: "dark",
|
|
2457
|
-
backgroundColor: "#141414"
|
|
2458
|
-
}), ur[e].primary = ur[e][5];
|
|
2459
|
-
});
|
|
2460
|
-
var as = It.blue;
|
|
2461
|
-
const is = (e) => {
|
|
2462
|
-
const {
|
|
2463
|
-
controlHeight: t
|
|
2464
|
-
} = e;
|
|
2465
|
-
return {
|
|
2466
|
-
controlHeightSM: t * 0.75,
|
|
2467
|
-
controlHeightXS: t * 0.5,
|
|
2468
|
-
controlHeightLG: t * 1.25
|
|
2469
|
-
};
|
|
2470
|
-
}, cs = is;
|
|
2471
|
-
function ss(e) {
|
|
2472
|
-
const {
|
|
2473
|
-
sizeUnit: t,
|
|
2474
|
-
sizeStep: r
|
|
2475
|
-
} = e;
|
|
2476
|
-
return {
|
|
2477
|
-
sizeXXL: t * (r + 8),
|
|
2478
|
-
sizeXL: t * (r + 4),
|
|
2479
|
-
sizeLG: t * (r + 2),
|
|
2480
|
-
sizeMD: t * (r + 1),
|
|
2481
|
-
sizeMS: t * r,
|
|
2482
|
-
size: t * r,
|
|
2483
|
-
sizeSM: t * (r - 1),
|
|
2484
|
-
sizeXS: t * (r - 2),
|
|
2485
|
-
sizeXXS: t * (r - 3)
|
|
2486
|
-
// 4
|
|
2487
|
-
};
|
|
2488
|
-
}
|
|
2489
|
-
const Jo = {
|
|
2490
|
-
blue: "#1677ff",
|
|
2491
|
-
purple: "#722ED1",
|
|
2492
|
-
cyan: "#13C2C2",
|
|
2493
|
-
green: "#52C41A",
|
|
2494
|
-
magenta: "#EB2F96",
|
|
2495
|
-
pink: "#eb2f96",
|
|
2496
|
-
red: "#F5222D",
|
|
2497
|
-
orange: "#FA8C16",
|
|
2498
|
-
yellow: "#FADB14",
|
|
2499
|
-
volcano: "#FA541C",
|
|
2500
|
-
geekblue: "#2F54EB",
|
|
2501
|
-
gold: "#FAAD14",
|
|
2502
|
-
lime: "#A0D911"
|
|
2503
|
-
}, ls = Object.assign(Object.assign({}, Jo), {
|
|
2504
|
-
// Color
|
|
2505
|
-
colorPrimary: "#1677ff",
|
|
2506
|
-
colorSuccess: "#52c41a",
|
|
2507
|
-
colorWarning: "#faad14",
|
|
2508
|
-
colorError: "#ff4d4f",
|
|
2509
|
-
colorInfo: "#1677ff",
|
|
2510
|
-
colorLink: "",
|
|
2511
|
-
colorTextBase: "",
|
|
2512
|
-
colorBgBase: "",
|
|
2513
|
-
// Font
|
|
2514
|
-
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2515
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
2516
|
-
'Noto Color Emoji'`,
|
|
2517
|
-
fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
|
|
2518
|
-
fontSize: 14,
|
|
2519
|
-
// Line
|
|
2520
|
-
lineWidth: 1,
|
|
2521
|
-
lineType: "solid",
|
|
2522
|
-
// Motion
|
|
2523
|
-
motionUnit: 0.1,
|
|
2524
|
-
motionBase: 0,
|
|
2525
|
-
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
|
|
2526
|
-
motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
|
|
2527
|
-
motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
|
|
2528
|
-
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
|
|
2529
|
-
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
|
|
2530
|
-
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
|
|
2531
|
-
motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
|
|
2532
|
-
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
2533
|
-
// Radius
|
|
2534
|
-
borderRadius: 6,
|
|
2535
|
-
// Size
|
|
2536
|
-
sizeUnit: 4,
|
|
2537
|
-
sizeStep: 4,
|
|
2538
|
-
sizePopupArrow: 16,
|
|
2539
|
-
// Control Base
|
|
2540
|
-
controlHeight: 32,
|
|
2541
|
-
// zIndex
|
|
2542
|
-
zIndexBase: 0,
|
|
2543
|
-
zIndexPopupBase: 1e3,
|
|
2544
|
-
// Image
|
|
2545
|
-
opacityImage: 1,
|
|
2546
|
-
// Wireframe
|
|
2547
|
-
wireframe: !1,
|
|
2548
|
-
// Motion
|
|
2549
|
-
motion: !0
|
|
2550
|
-
}), pt = ls;
|
|
2551
|
-
function us(e, t) {
|
|
2552
|
-
let {
|
|
2553
|
-
generateColorPalettes: r,
|
|
2554
|
-
generateNeutralColorPalettes: n
|
|
2555
|
-
} = t;
|
|
2556
|
-
const {
|
|
2557
|
-
colorSuccess: o,
|
|
2558
|
-
colorWarning: a,
|
|
2559
|
-
colorError: i,
|
|
2560
|
-
colorInfo: c,
|
|
2561
|
-
colorPrimary: s,
|
|
2562
|
-
colorBgBase: l,
|
|
2563
|
-
colorTextBase: f
|
|
2564
|
-
} = e, u = r(s), v = r(o), h = r(a), b = r(i), p = r(c), d = n(l, f), S = e.colorLink || e.colorInfo, m = r(S);
|
|
2565
|
-
return Object.assign(Object.assign({}, d), {
|
|
2566
|
-
colorPrimaryBg: u[1],
|
|
2567
|
-
colorPrimaryBgHover: u[2],
|
|
2568
|
-
colorPrimaryBorder: u[3],
|
|
2569
|
-
colorPrimaryBorderHover: u[4],
|
|
2570
|
-
colorPrimaryHover: u[5],
|
|
2571
|
-
colorPrimary: u[6],
|
|
2572
|
-
colorPrimaryActive: u[7],
|
|
2573
|
-
colorPrimaryTextHover: u[8],
|
|
2574
|
-
colorPrimaryText: u[9],
|
|
2575
|
-
colorPrimaryTextActive: u[10],
|
|
2576
|
-
colorSuccessBg: v[1],
|
|
2577
|
-
colorSuccessBgHover: v[2],
|
|
2578
|
-
colorSuccessBorder: v[3],
|
|
2579
|
-
colorSuccessBorderHover: v[4],
|
|
2580
|
-
colorSuccessHover: v[4],
|
|
2581
|
-
colorSuccess: v[6],
|
|
2582
|
-
colorSuccessActive: v[7],
|
|
2583
|
-
colorSuccessTextHover: v[8],
|
|
2584
|
-
colorSuccessText: v[9],
|
|
2585
|
-
colorSuccessTextActive: v[10],
|
|
2586
|
-
colorErrorBg: b[1],
|
|
2587
|
-
colorErrorBgHover: b[2],
|
|
2588
|
-
colorErrorBorder: b[3],
|
|
2589
|
-
colorErrorBorderHover: b[4],
|
|
2590
|
-
colorErrorHover: b[5],
|
|
2591
|
-
colorError: b[6],
|
|
2592
|
-
colorErrorActive: b[7],
|
|
2593
|
-
colorErrorTextHover: b[8],
|
|
2594
|
-
colorErrorText: b[9],
|
|
2595
|
-
colorErrorTextActive: b[10],
|
|
2596
|
-
colorWarningBg: h[1],
|
|
2597
|
-
colorWarningBgHover: h[2],
|
|
2598
|
-
colorWarningBorder: h[3],
|
|
2599
|
-
colorWarningBorderHover: h[4],
|
|
2600
|
-
colorWarningHover: h[4],
|
|
2601
|
-
colorWarning: h[6],
|
|
2602
|
-
colorWarningActive: h[7],
|
|
2603
|
-
colorWarningTextHover: h[8],
|
|
2604
|
-
colorWarningText: h[9],
|
|
2605
|
-
colorWarningTextActive: h[10],
|
|
2606
|
-
colorInfoBg: p[1],
|
|
2607
|
-
colorInfoBgHover: p[2],
|
|
2608
|
-
colorInfoBorder: p[3],
|
|
2609
|
-
colorInfoBorderHover: p[4],
|
|
2610
|
-
colorInfoHover: p[4],
|
|
2611
|
-
colorInfo: p[6],
|
|
2612
|
-
colorInfoActive: p[7],
|
|
2613
|
-
colorInfoTextHover: p[8],
|
|
2614
|
-
colorInfoText: p[9],
|
|
2615
|
-
colorInfoTextActive: p[10],
|
|
2616
|
-
colorLinkHover: m[4],
|
|
2617
|
-
colorLink: m[6],
|
|
2618
|
-
colorLinkActive: m[7],
|
|
2619
|
-
colorBgMask: new ie("#000").setAlpha(0.45).toRgbString(),
|
|
2620
|
-
colorWhite: "#fff"
|
|
2621
|
-
});
|
|
2622
|
-
}
|
|
2623
|
-
const fs = (e) => {
|
|
2624
|
-
let t = e, r = e, n = e, o = e;
|
|
2625
|
-
return e < 6 && e >= 5 ? t = e + 1 : e < 16 && e >= 6 ? t = e + 2 : e >= 16 && (t = 16), e < 7 && e >= 5 ? r = 4 : e < 8 && e >= 7 ? r = 5 : e < 14 && e >= 8 ? r = 6 : e < 16 && e >= 14 ? r = 7 : e >= 16 && (r = 8), e < 6 && e >= 2 ? n = 1 : e >= 6 && (n = 2), e > 4 && e < 8 ? o = 4 : e >= 8 && (o = 6), {
|
|
2626
|
-
borderRadius: e,
|
|
2627
|
-
borderRadiusXS: n,
|
|
2628
|
-
borderRadiusSM: r,
|
|
2629
|
-
borderRadiusLG: t,
|
|
2630
|
-
borderRadiusOuter: o
|
|
2631
|
-
};
|
|
2632
|
-
}, ds = fs;
|
|
2633
|
-
function gs(e) {
|
|
2634
|
-
const {
|
|
2635
|
-
motionUnit: t,
|
|
2636
|
-
motionBase: r,
|
|
2637
|
-
borderRadius: n,
|
|
2638
|
-
lineWidth: o
|
|
2639
|
-
} = e;
|
|
2640
|
-
return Object.assign({
|
|
2641
|
-
// motion
|
|
2642
|
-
motionDurationFast: `${(r + t).toFixed(1)}s`,
|
|
2643
|
-
motionDurationMid: `${(r + t * 2).toFixed(1)}s`,
|
|
2644
|
-
motionDurationSlow: `${(r + t * 3).toFixed(1)}s`,
|
|
2645
|
-
// line
|
|
2646
|
-
lineWidthBold: o + 1
|
|
2647
|
-
}, ds(n));
|
|
2648
|
-
}
|
|
2649
|
-
const ye = (e, t) => new ie(e).setAlpha(t).toRgbString(), ut = (e, t) => new ie(e).darken(t).toHexString(), vs = (e) => {
|
|
2650
|
-
const t = He(e);
|
|
2651
|
-
return {
|
|
2652
|
-
1: t[0],
|
|
2653
|
-
2: t[1],
|
|
2654
|
-
3: t[2],
|
|
2655
|
-
4: t[3],
|
|
2656
|
-
5: t[4],
|
|
2657
|
-
6: t[5],
|
|
2658
|
-
7: t[6],
|
|
2659
|
-
8: t[4],
|
|
2660
|
-
9: t[5],
|
|
2661
|
-
10: t[6]
|
|
2662
|
-
// 8: colors[7],
|
|
2663
|
-
// 9: colors[8],
|
|
2664
|
-
// 10: colors[9],
|
|
2665
|
-
};
|
|
2666
|
-
}, ps = (e, t) => {
|
|
2667
|
-
const r = e || "#fff", n = t || "#000";
|
|
2668
|
-
return {
|
|
2669
|
-
colorBgBase: r,
|
|
2670
|
-
colorTextBase: n,
|
|
2671
|
-
colorText: ye(n, 0.88),
|
|
2672
|
-
colorTextSecondary: ye(n, 0.65),
|
|
2673
|
-
colorTextTertiary: ye(n, 0.45),
|
|
2674
|
-
colorTextQuaternary: ye(n, 0.25),
|
|
2675
|
-
colorFill: ye(n, 0.15),
|
|
2676
|
-
colorFillSecondary: ye(n, 0.06),
|
|
2677
|
-
colorFillTertiary: ye(n, 0.04),
|
|
2678
|
-
colorFillQuaternary: ye(n, 0.02),
|
|
2679
|
-
colorBgLayout: ut(r, 4),
|
|
2680
|
-
colorBgContainer: ut(r, 0),
|
|
2681
|
-
colorBgElevated: ut(r, 0),
|
|
2682
|
-
colorBgSpotlight: ye(n, 0.85),
|
|
2683
|
-
colorBgBlur: "transparent",
|
|
2684
|
-
colorBorder: ut(r, 15),
|
|
2685
|
-
colorBorderSecondary: ut(r, 6)
|
|
2686
|
-
};
|
|
2687
|
-
};
|
|
2688
|
-
function hs(e) {
|
|
2689
|
-
const t = new Array(10).fill(null).map((r, n) => {
|
|
2690
|
-
const o = n - 1, a = e * Math.pow(2.71828, o / 5), i = n > 1 ? Math.floor(a) : Math.ceil(a);
|
|
2691
|
-
return Math.floor(i / 2) * 2;
|
|
2692
|
-
});
|
|
2693
|
-
return t[1] = e, t.map((r) => {
|
|
2694
|
-
const n = r + 8;
|
|
2695
|
-
return {
|
|
2696
|
-
size: r,
|
|
2697
|
-
lineHeight: n / r
|
|
2698
|
-
};
|
|
2699
|
-
});
|
|
2700
|
-
}
|
|
2701
|
-
const ms = (e) => {
|
|
2702
|
-
const t = hs(e), r = t.map((o) => o.size), n = t.map((o) => o.lineHeight);
|
|
2703
|
-
return {
|
|
2704
|
-
fontSizeSM: r[0],
|
|
2705
|
-
fontSize: r[1],
|
|
2706
|
-
fontSizeLG: r[2],
|
|
2707
|
-
fontSizeXL: r[3],
|
|
2708
|
-
fontSizeHeading1: r[6],
|
|
2709
|
-
fontSizeHeading2: r[5],
|
|
2710
|
-
fontSizeHeading3: r[4],
|
|
2711
|
-
fontSizeHeading4: r[3],
|
|
2712
|
-
fontSizeHeading5: r[2],
|
|
2713
|
-
lineHeight: n[1],
|
|
2714
|
-
lineHeightLG: n[2],
|
|
2715
|
-
lineHeightSM: n[0],
|
|
2716
|
-
lineHeightHeading1: n[6],
|
|
2717
|
-
lineHeightHeading2: n[5],
|
|
2718
|
-
lineHeightHeading3: n[4],
|
|
2719
|
-
lineHeightHeading4: n[3],
|
|
2720
|
-
lineHeightHeading5: n[2]
|
|
2721
|
-
};
|
|
2722
|
-
}, bs = ms;
|
|
2723
|
-
function ys(e) {
|
|
2724
|
-
const t = Object.keys(Jo).map((r) => {
|
|
2725
|
-
const n = He(e[r]);
|
|
2726
|
-
return new Array(10).fill(1).reduce((o, a, i) => (o[`${r}-${i + 1}`] = n[i], o[`${r}${i + 1}`] = n[i], o), {});
|
|
2727
|
-
}).reduce((r, n) => (r = Object.assign(Object.assign({}, r), n), r), {});
|
|
2728
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), t), us(e, {
|
|
2729
|
-
generateColorPalettes: vs,
|
|
2730
|
-
generateNeutralColorPalettes: ps
|
|
2731
|
-
})), bs(e.fontSize)), ss(e)), cs(e)), gs(e));
|
|
2732
|
-
}
|
|
2733
|
-
const Zo = Cr(ys), ea = {
|
|
2734
|
-
token: pt,
|
|
2735
|
-
override: {
|
|
2736
|
-
override: pt
|
|
2737
|
-
},
|
|
2738
|
-
hashed: !0
|
|
2739
|
-
}, ta = /* @__PURE__ */ Qe.createContext(ea), ra = "anticon", Ss = (e, t) => t || (e ? `ant-${e}` : "ant"), Ae = /* @__PURE__ */ g.createContext({
|
|
2740
|
-
// We provide a default function for Context without provider
|
|
2741
|
-
getPrefixCls: Ss,
|
|
2742
|
-
iconPrefixCls: ra
|
|
2743
|
-
}), xs = `-ant-${Date.now()}-${Math.random()}`;
|
|
2744
|
-
function Es(e, t) {
|
|
2745
|
-
const r = {}, n = (i, c) => {
|
|
2746
|
-
let s = i.clone();
|
|
2747
|
-
return s = (c == null ? void 0 : c(s)) || s, s.toRgbString();
|
|
2748
|
-
}, o = (i, c) => {
|
|
2749
|
-
const s = new ie(i), l = He(s.toRgbString());
|
|
2750
|
-
r[`${c}-color`] = n(s), r[`${c}-color-disabled`] = l[1], r[`${c}-color-hover`] = l[4], r[`${c}-color-active`] = l[6], r[`${c}-color-outline`] = s.clone().setAlpha(0.2).toRgbString(), r[`${c}-color-deprecated-bg`] = l[0], r[`${c}-color-deprecated-border`] = l[2];
|
|
2751
|
-
};
|
|
2752
|
-
if (t.primaryColor) {
|
|
2753
|
-
o(t.primaryColor, "primary");
|
|
2754
|
-
const i = new ie(t.primaryColor), c = He(i.toRgbString());
|
|
2755
|
-
c.forEach((l, f) => {
|
|
2756
|
-
r[`primary-${f + 1}`] = l;
|
|
2757
|
-
}), r["primary-color-deprecated-l-35"] = n(i, (l) => l.lighten(35)), r["primary-color-deprecated-l-20"] = n(i, (l) => l.lighten(20)), r["primary-color-deprecated-t-20"] = n(i, (l) => l.tint(20)), r["primary-color-deprecated-t-50"] = n(i, (l) => l.tint(50)), r["primary-color-deprecated-f-12"] = n(i, (l) => l.setAlpha(l.getAlpha() * 0.12));
|
|
2758
|
-
const s = new ie(c[0]);
|
|
2759
|
-
r["primary-color-active-deprecated-f-30"] = n(s, (l) => l.setAlpha(l.getAlpha() * 0.3)), r["primary-color-active-deprecated-d-02"] = n(s, (l) => l.darken(2));
|
|
2760
|
-
}
|
|
2761
|
-
return t.successColor && o(t.successColor, "success"), t.warningColor && o(t.warningColor, "warning"), t.errorColor && o(t.errorColor, "error"), t.infoColor && o(t.infoColor, "info"), `
|
|
2762
|
-
:root {
|
|
2763
|
-
${Object.keys(r).map((i) => `--${e}-${i}: ${r[i]};`).join(`
|
|
2764
|
-
`)}
|
|
2765
|
-
}
|
|
2766
|
-
`.trim();
|
|
2767
|
-
}
|
|
2768
|
-
function Cs(e, t) {
|
|
2769
|
-
const r = Es(e, t);
|
|
2770
|
-
pe() ? zt(r, `${xs}-dynamic-theme`) : process.env.NODE_ENV !== "production" && Xt(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
2771
|
-
}
|
|
2772
|
-
const $r = /* @__PURE__ */ g.createContext(!1), Ts = (e) => {
|
|
2773
|
-
let {
|
|
2774
|
-
children: t,
|
|
2775
|
-
disabled: r
|
|
2776
|
-
} = e;
|
|
2777
|
-
const n = g.useContext($r);
|
|
2778
|
-
return /* @__PURE__ */ g.createElement($r.Provider, {
|
|
2779
|
-
value: r ?? n
|
|
2780
|
-
}, t);
|
|
2781
|
-
}, ws = $r, Nr = /* @__PURE__ */ g.createContext(void 0), Os = (e) => {
|
|
2782
|
-
let {
|
|
2783
|
-
children: t,
|
|
2784
|
-
size: r
|
|
2785
|
-
} = e;
|
|
2786
|
-
const n = g.useContext(Nr);
|
|
2787
|
-
return /* @__PURE__ */ g.createElement(Nr.Provider, {
|
|
2788
|
-
value: r || n
|
|
2789
|
-
}, t);
|
|
2790
|
-
}, nn = Nr;
|
|
2791
|
-
function ks() {
|
|
2792
|
-
const e = Ie(ws), t = Ie(nn);
|
|
2793
|
-
return {
|
|
2794
|
-
componentDisabled: e,
|
|
2795
|
-
componentSize: t
|
|
2796
|
-
};
|
|
2797
|
-
}
|
|
2798
|
-
const Ps = "5.11.0";
|
|
2799
|
-
function fr(e) {
|
|
2800
|
-
return e >= 0 && e <= 255;
|
|
2801
|
-
}
|
|
2802
|
-
function Pt(e, t) {
|
|
2803
|
-
const {
|
|
2804
|
-
r,
|
|
2805
|
-
g: n,
|
|
2806
|
-
b: o,
|
|
2807
|
-
a
|
|
2808
|
-
} = new ie(e).toRgb();
|
|
2809
|
-
if (a < 1)
|
|
2810
|
-
return e;
|
|
2811
|
-
const {
|
|
2812
|
-
r: i,
|
|
2813
|
-
g: c,
|
|
2814
|
-
b: s
|
|
2815
|
-
} = new ie(t).toRgb();
|
|
2816
|
-
for (let l = 0.01; l <= 1; l += 0.01) {
|
|
2817
|
-
const f = Math.round((r - i * (1 - l)) / l), u = Math.round((n - c * (1 - l)) / l), v = Math.round((o - s * (1 - l)) / l);
|
|
2818
|
-
if (fr(f) && fr(u) && fr(v))
|
|
2819
|
-
return new ie({
|
|
2820
|
-
r: f,
|
|
2821
|
-
g: u,
|
|
2822
|
-
b: v,
|
|
2823
|
-
a: Math.round(l * 100) / 100
|
|
2824
|
-
}).toRgbString();
|
|
2825
|
-
}
|
|
2826
|
-
return new ie({
|
|
2827
|
-
r,
|
|
2828
|
-
g: n,
|
|
2829
|
-
b: o,
|
|
2830
|
-
a: 1
|
|
2831
|
-
}).toRgbString();
|
|
2832
|
-
}
|
|
2833
|
-
var As = globalThis && globalThis.__rest || function(e, t) {
|
|
2834
|
-
var r = {};
|
|
2835
|
-
for (var n in e)
|
|
2836
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2837
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2838
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
2839
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
2840
|
-
return r;
|
|
2841
|
-
};
|
|
2842
|
-
function na(e) {
|
|
2843
|
-
const {
|
|
2844
|
-
override: t
|
|
2845
|
-
} = e, r = As(e, ["override"]), n = Object.assign({}, t);
|
|
2846
|
-
Object.keys(pt).forEach((v) => {
|
|
2847
|
-
delete n[v];
|
|
2848
|
-
});
|
|
2849
|
-
const o = Object.assign(Object.assign({}, r), n), a = 480, i = 576, c = 768, s = 992, l = 1200, f = 1600;
|
|
2850
|
-
if (o.motion === !1) {
|
|
2851
|
-
const v = "0s";
|
|
2852
|
-
o.motionDurationFast = v, o.motionDurationMid = v, o.motionDurationSlow = v;
|
|
2853
|
-
}
|
|
2854
|
-
return Object.assign(Object.assign(Object.assign({}, o), {
|
|
2855
|
-
// ============== Background ============== //
|
|
2856
|
-
colorFillContent: o.colorFillSecondary,
|
|
2857
|
-
colorFillContentHover: o.colorFill,
|
|
2858
|
-
colorFillAlter: o.colorFillQuaternary,
|
|
2859
|
-
colorBgContainerDisabled: o.colorFillTertiary,
|
|
2860
|
-
// ============== Split ============== //
|
|
2861
|
-
colorBorderBg: o.colorBgContainer,
|
|
2862
|
-
colorSplit: Pt(o.colorBorderSecondary, o.colorBgContainer),
|
|
2863
|
-
// ============== Text ============== //
|
|
2864
|
-
colorTextPlaceholder: o.colorTextQuaternary,
|
|
2865
|
-
colorTextDisabled: o.colorTextQuaternary,
|
|
2866
|
-
colorTextHeading: o.colorText,
|
|
2867
|
-
colorTextLabel: o.colorTextSecondary,
|
|
2868
|
-
colorTextDescription: o.colorTextTertiary,
|
|
2869
|
-
colorTextLightSolid: o.colorWhite,
|
|
2870
|
-
colorHighlight: o.colorError,
|
|
2871
|
-
colorBgTextHover: o.colorFillSecondary,
|
|
2872
|
-
colorBgTextActive: o.colorFill,
|
|
2873
|
-
colorIcon: o.colorTextTertiary,
|
|
2874
|
-
colorIconHover: o.colorText,
|
|
2875
|
-
colorErrorOutline: Pt(o.colorErrorBg, o.colorBgContainer),
|
|
2876
|
-
colorWarningOutline: Pt(o.colorWarningBg, o.colorBgContainer),
|
|
2877
|
-
// Font
|
|
2878
|
-
fontSizeIcon: o.fontSizeSM,
|
|
2879
|
-
// Line
|
|
2880
|
-
lineWidthFocus: o.lineWidth * 4,
|
|
2881
|
-
// Control
|
|
2882
|
-
lineWidth: o.lineWidth,
|
|
2883
|
-
controlOutlineWidth: o.lineWidth * 2,
|
|
2884
|
-
// Checkbox size and expand icon size
|
|
2885
|
-
controlInteractiveSize: o.controlHeight / 2,
|
|
2886
|
-
controlItemBgHover: o.colorFillTertiary,
|
|
2887
|
-
controlItemBgActive: o.colorPrimaryBg,
|
|
2888
|
-
controlItemBgActiveHover: o.colorPrimaryBgHover,
|
|
2889
|
-
controlItemBgActiveDisabled: o.colorFill,
|
|
2890
|
-
controlTmpOutline: o.colorFillQuaternary,
|
|
2891
|
-
controlOutline: Pt(o.colorPrimaryBg, o.colorBgContainer),
|
|
2892
|
-
lineType: o.lineType,
|
|
2893
|
-
borderRadius: o.borderRadius,
|
|
2894
|
-
borderRadiusXS: o.borderRadiusXS,
|
|
2895
|
-
borderRadiusSM: o.borderRadiusSM,
|
|
2896
|
-
borderRadiusLG: o.borderRadiusLG,
|
|
2897
|
-
fontWeightStrong: 600,
|
|
2898
|
-
opacityLoading: 0.65,
|
|
2899
|
-
linkDecoration: "none",
|
|
2900
|
-
linkHoverDecoration: "none",
|
|
2901
|
-
linkFocusDecoration: "none",
|
|
2902
|
-
controlPaddingHorizontal: 12,
|
|
2903
|
-
controlPaddingHorizontalSM: 8,
|
|
2904
|
-
paddingXXS: o.sizeXXS,
|
|
2905
|
-
paddingXS: o.sizeXS,
|
|
2906
|
-
paddingSM: o.sizeSM,
|
|
2907
|
-
padding: o.size,
|
|
2908
|
-
paddingMD: o.sizeMD,
|
|
2909
|
-
paddingLG: o.sizeLG,
|
|
2910
|
-
paddingXL: o.sizeXL,
|
|
2911
|
-
paddingContentHorizontalLG: o.sizeLG,
|
|
2912
|
-
paddingContentVerticalLG: o.sizeMS,
|
|
2913
|
-
paddingContentHorizontal: o.sizeMS,
|
|
2914
|
-
paddingContentVertical: o.sizeSM,
|
|
2915
|
-
paddingContentHorizontalSM: o.size,
|
|
2916
|
-
paddingContentVerticalSM: o.sizeXS,
|
|
2917
|
-
marginXXS: o.sizeXXS,
|
|
2918
|
-
marginXS: o.sizeXS,
|
|
2919
|
-
marginSM: o.sizeSM,
|
|
2920
|
-
margin: o.size,
|
|
2921
|
-
marginMD: o.sizeMD,
|
|
2922
|
-
marginLG: o.sizeLG,
|
|
2923
|
-
marginXL: o.sizeXL,
|
|
2924
|
-
marginXXL: o.sizeXXL,
|
|
2925
|
-
boxShadow: `
|
|
2926
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2927
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2928
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2929
|
-
`,
|
|
2930
|
-
boxShadowSecondary: `
|
|
2931
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2932
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2933
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2934
|
-
`,
|
|
2935
|
-
boxShadowTertiary: `
|
|
2936
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
2937
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
2938
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
2939
|
-
`,
|
|
2940
|
-
screenXS: a,
|
|
2941
|
-
screenXSMin: a,
|
|
2942
|
-
screenXSMax: i - 1,
|
|
2943
|
-
screenSM: i,
|
|
2944
|
-
screenSMMin: i,
|
|
2945
|
-
screenSMMax: c - 1,
|
|
2946
|
-
screenMD: c,
|
|
2947
|
-
screenMDMin: c,
|
|
2948
|
-
screenMDMax: s - 1,
|
|
2949
|
-
screenLG: s,
|
|
2950
|
-
screenLGMin: s,
|
|
2951
|
-
screenLGMax: l - 1,
|
|
2952
|
-
screenXL: l,
|
|
2953
|
-
screenXLMin: l,
|
|
2954
|
-
screenXLMax: f - 1,
|
|
2955
|
-
screenXXL: f,
|
|
2956
|
-
screenXXLMin: f,
|
|
2957
|
-
boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
|
2958
|
-
boxShadowCard: `
|
|
2959
|
-
0 1px 2px -2px ${new ie("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
2960
|
-
0 3px 6px 0 ${new ie("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
2961
|
-
0 5px 12px 4px ${new ie("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
2962
|
-
`,
|
|
2963
|
-
boxShadowDrawerRight: `
|
|
2964
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
2965
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
2966
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
2967
|
-
`,
|
|
2968
|
-
boxShadowDrawerLeft: `
|
|
2969
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
2970
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
2971
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
2972
|
-
`,
|
|
2973
|
-
boxShadowDrawerUp: `
|
|
2974
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2975
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2976
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2977
|
-
`,
|
|
2978
|
-
boxShadowDrawerDown: `
|
|
2979
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2980
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2981
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2982
|
-
`,
|
|
2983
|
-
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2984
|
-
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2985
|
-
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2986
|
-
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
|
|
2987
|
-
}), n);
|
|
2988
|
-
}
|
|
2989
|
-
var Vn = globalThis && globalThis.__rest || function(e, t) {
|
|
2990
|
-
var r = {};
|
|
2991
|
-
for (var n in e)
|
|
2992
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2993
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
2994
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
2995
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
2996
|
-
return r;
|
|
2997
|
-
};
|
|
2998
|
-
const oa = (e, t, r) => {
|
|
2999
|
-
const n = r.getDerivativeToken(e), {
|
|
3000
|
-
override: o
|
|
3001
|
-
} = t, a = Vn(t, ["override"]);
|
|
3002
|
-
let i = Object.assign(Object.assign({}, n), {
|
|
3003
|
-
override: o
|
|
3004
|
-
});
|
|
3005
|
-
return i = na(i), a && Object.entries(a).forEach((c) => {
|
|
3006
|
-
let [s, l] = c;
|
|
3007
|
-
const {
|
|
3008
|
-
theme: f
|
|
3009
|
-
} = l, u = Vn(l, ["theme"]);
|
|
3010
|
-
let v = u;
|
|
3011
|
-
f && (v = oa(Object.assign(Object.assign({}, i), u), {
|
|
3012
|
-
override: u
|
|
3013
|
-
}, f)), i[s] = v;
|
|
3014
|
-
}), i;
|
|
3015
|
-
};
|
|
3016
|
-
function on() {
|
|
3017
|
-
const {
|
|
3018
|
-
token: e,
|
|
3019
|
-
hashed: t,
|
|
3020
|
-
theme: r,
|
|
3021
|
-
override: n
|
|
3022
|
-
} = Qe.useContext(ta), o = `${Ps}-${t || ""}`, a = r || Zo, [i, c] = Zi(a, [pt, e], {
|
|
3023
|
-
salt: o,
|
|
3024
|
-
override: n,
|
|
3025
|
-
getComputedToken: oa,
|
|
3026
|
-
// formatToken will not be consumed after 1.15.0 with getComputedToken.
|
|
3027
|
-
// But token will break if @ant-design/cssinjs is under 1.15.0 without it
|
|
3028
|
-
formatToken: na
|
|
3029
|
-
});
|
|
3030
|
-
return [a, i, t ? c : ""];
|
|
3031
|
-
}
|
|
3032
|
-
function Ht(e) {
|
|
3033
|
-
var t = g.useRef(!1), r = g.useState(e), n = D(r, 2), o = n[0], a = n[1];
|
|
3034
|
-
g.useEffect(function() {
|
|
3035
|
-
return t.current = !1, function() {
|
|
3036
|
-
t.current = !0;
|
|
3037
|
-
};
|
|
3038
|
-
}, []);
|
|
3039
|
-
function i(c, s) {
|
|
3040
|
-
s && t.current || a(c);
|
|
3041
|
-
}
|
|
3042
|
-
return [o, i];
|
|
3043
|
-
}
|
|
3044
|
-
const Ms = () => ({
|
|
3045
|
-
display: "inline-flex",
|
|
3046
|
-
alignItems: "center",
|
|
3047
|
-
color: "inherit",
|
|
3048
|
-
fontStyle: "normal",
|
|
3049
|
-
lineHeight: 0,
|
|
3050
|
-
textAlign: "center",
|
|
3051
|
-
textTransform: "none",
|
|
3052
|
-
// for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
|
3053
|
-
verticalAlign: "-0.125em",
|
|
3054
|
-
textRendering: "optimizeLegibility",
|
|
3055
|
-
"-webkit-font-smoothing": "antialiased",
|
|
3056
|
-
"-moz-osx-font-smoothing": "grayscale",
|
|
3057
|
-
"> *": {
|
|
3058
|
-
lineHeight: 1
|
|
3059
|
-
},
|
|
3060
|
-
svg: {
|
|
3061
|
-
display: "inline-block"
|
|
3062
|
-
}
|
|
3063
|
-
}), Rs = (e) => ({
|
|
3064
|
-
a: {
|
|
3065
|
-
color: e.colorLink,
|
|
3066
|
-
textDecoration: e.linkDecoration,
|
|
3067
|
-
backgroundColor: "transparent",
|
|
3068
|
-
outline: "none",
|
|
3069
|
-
cursor: "pointer",
|
|
3070
|
-
transition: `color ${e.motionDurationSlow}`,
|
|
3071
|
-
"-webkit-text-decoration-skip": "objects",
|
|
3072
|
-
"&:hover": {
|
|
3073
|
-
color: e.colorLinkHover
|
|
3074
|
-
},
|
|
3075
|
-
"&:active": {
|
|
3076
|
-
color: e.colorLinkActive
|
|
3077
|
-
},
|
|
3078
|
-
"&:active,\n &:hover": {
|
|
3079
|
-
textDecoration: e.linkHoverDecoration,
|
|
3080
|
-
outline: 0
|
|
3081
|
-
},
|
|
3082
|
-
// https://github.com/ant-design/ant-design/issues/22503
|
|
3083
|
-
"&:focus": {
|
|
3084
|
-
textDecoration: e.linkFocusDecoration,
|
|
3085
|
-
outline: 0
|
|
3086
|
-
},
|
|
3087
|
-
"&[disabled]": {
|
|
3088
|
-
color: e.colorTextDisabled,
|
|
3089
|
-
cursor: "not-allowed"
|
|
3090
|
-
}
|
|
3091
|
-
}
|
|
3092
|
-
}), _s = (e, t) => {
|
|
3093
|
-
const {
|
|
3094
|
-
fontFamily: r,
|
|
3095
|
-
fontSize: n
|
|
3096
|
-
} = e, o = `[class^="${t}"], [class*=" ${t}"]`;
|
|
3097
|
-
return {
|
|
3098
|
-
[o]: {
|
|
3099
|
-
fontFamily: r,
|
|
3100
|
-
fontSize: n,
|
|
3101
|
-
boxSizing: "border-box",
|
|
3102
|
-
"&::before, &::after": {
|
|
3103
|
-
boxSizing: "border-box"
|
|
3104
|
-
},
|
|
3105
|
-
[o]: {
|
|
3106
|
-
boxSizing: "border-box",
|
|
3107
|
-
"&::before, &::after": {
|
|
3108
|
-
boxSizing: "border-box"
|
|
3109
|
-
}
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
};
|
|
3113
|
-
}, aa = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u";
|
|
3114
|
-
let jr = !0;
|
|
3115
|
-
function Un() {
|
|
3116
|
-
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
3117
|
-
t[r] = arguments[r];
|
|
3118
|
-
if (!aa)
|
|
3119
|
-
return Object.assign.apply(Object, [{}].concat(t));
|
|
3120
|
-
jr = !1;
|
|
3121
|
-
const n = {};
|
|
3122
|
-
return t.forEach((o) => {
|
|
3123
|
-
Object.keys(o).forEach((i) => {
|
|
3124
|
-
Object.defineProperty(n, i, {
|
|
3125
|
-
configurable: !0,
|
|
3126
|
-
enumerable: !0,
|
|
3127
|
-
get: () => o[i]
|
|
3128
|
-
});
|
|
3129
|
-
});
|
|
3130
|
-
}), jr = !0, n;
|
|
3131
|
-
}
|
|
3132
|
-
const Xn = {};
|
|
3133
|
-
function $s() {
|
|
3134
|
-
}
|
|
3135
|
-
function Ns(e) {
|
|
3136
|
-
let t, r = e, n = $s;
|
|
3137
|
-
return aa && typeof Proxy < "u" && (t = /* @__PURE__ */ new Set(), r = new Proxy(e, {
|
|
3138
|
-
get(o, a) {
|
|
3139
|
-
return jr && t.add(a), o[a];
|
|
3140
|
-
}
|
|
3141
|
-
}), n = (o, a) => {
|
|
3142
|
-
var i;
|
|
3143
|
-
Xn[o] = {
|
|
3144
|
-
global: Array.from(t),
|
|
3145
|
-
component: Object.assign(Object.assign({}, (i = Xn[o]) === null || i === void 0 ? void 0 : i.component), a)
|
|
3146
|
-
};
|
|
3147
|
-
}), {
|
|
3148
|
-
token: r,
|
|
3149
|
-
keys: t,
|
|
3150
|
-
flush: n
|
|
3151
|
-
};
|
|
3152
|
-
}
|
|
3153
|
-
const js = (e, t) => {
|
|
3154
|
-
const [r, n] = on();
|
|
3155
|
-
return Pr({
|
|
3156
|
-
theme: r,
|
|
3157
|
-
token: n,
|
|
3158
|
-
hashId: "",
|
|
3159
|
-
path: ["ant-design-icons", e],
|
|
3160
|
-
nonce: () => t == null ? void 0 : t.nonce
|
|
3161
|
-
}, () => [{
|
|
3162
|
-
[`.${e}`]: Object.assign(Object.assign({}, Ms()), {
|
|
3163
|
-
[`.${e} .${e}-icon`]: {
|
|
3164
|
-
display: "block"
|
|
3165
|
-
}
|
|
3166
|
-
})
|
|
3167
|
-
}]);
|
|
3168
|
-
}, ia = js;
|
|
3169
|
-
function Ls(e, t, r) {
|
|
3170
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3171
|
-
const o = Array.isArray(e) ? e : [e, e], [a] = o, i = o.join("-");
|
|
3172
|
-
return (c) => {
|
|
3173
|
-
const [s, l, f] = on(), {
|
|
3174
|
-
getPrefixCls: u,
|
|
3175
|
-
iconPrefixCls: v,
|
|
3176
|
-
csp: h
|
|
3177
|
-
} = Ie(Ae), b = u(), p = {
|
|
3178
|
-
theme: s,
|
|
3179
|
-
token: l,
|
|
3180
|
-
hashId: f,
|
|
3181
|
-
nonce: () => h == null ? void 0 : h.nonce,
|
|
3182
|
-
clientOnly: n.clientOnly,
|
|
3183
|
-
// antd is always at top of styles
|
|
3184
|
-
order: n.order || -999
|
|
3185
|
-
};
|
|
3186
|
-
return Pr(Object.assign(Object.assign({}, p), {
|
|
3187
|
-
clientOnly: !1,
|
|
3188
|
-
path: ["Shared", b]
|
|
3189
|
-
}), () => [{
|
|
3190
|
-
// Link
|
|
3191
|
-
"&": Rs(l)
|
|
3192
|
-
}]), ia(v, h), [Pr(Object.assign(Object.assign({}, p), {
|
|
3193
|
-
path: [i, c, v]
|
|
3194
|
-
}), () => {
|
|
3195
|
-
const {
|
|
3196
|
-
token: d,
|
|
3197
|
-
flush: S
|
|
3198
|
-
} = Ns(l), m = Object.assign({}, l[a]);
|
|
3199
|
-
if (n.deprecatedTokens) {
|
|
3200
|
-
const {
|
|
3201
|
-
deprecatedTokens: M
|
|
3202
|
-
} = n;
|
|
3203
|
-
M.forEach((I) => {
|
|
3204
|
-
let [k, $] = I;
|
|
3205
|
-
var R;
|
|
3206
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Be(!(m != null && m[k]), `The token '${String(k)}' of ${a} had deprecated, use '${String($)}' instead.`), (m != null && m[k] || m != null && m[$]) && ((R = m[$]) !== null && R !== void 0 || (m[$] = m == null ? void 0 : m[k]));
|
|
3207
|
-
});
|
|
3208
|
-
}
|
|
3209
|
-
const w = typeof r == "function" ? r(Un(d, m ?? {})) : r, O = Object.assign(Object.assign({}, w), m), C = `.${c}`, T = Un(d, {
|
|
3210
|
-
componentCls: C,
|
|
3211
|
-
prefixCls: c,
|
|
3212
|
-
iconCls: `.${v}`,
|
|
3213
|
-
antCls: `.${b}`
|
|
3214
|
-
}, O), y = t(T, {
|
|
3215
|
-
hashId: f,
|
|
3216
|
-
prefixCls: c,
|
|
3217
|
-
rootPrefixCls: b,
|
|
3218
|
-
iconPrefixCls: v,
|
|
3219
|
-
overrideComponentToken: m
|
|
3220
|
-
});
|
|
3221
|
-
return S(a, O), [n.resetStyle === !1 ? null : _s(l, c), y];
|
|
3222
|
-
}), f];
|
|
3223
|
-
};
|
|
3224
|
-
}
|
|
3225
|
-
function Is(e, t) {
|
|
3226
|
-
const r = e || {}, n = r.inherit === !1 || !t ? ea : t;
|
|
3227
|
-
return go(() => {
|
|
3228
|
-
if (!e)
|
|
3229
|
-
return t;
|
|
3230
|
-
const o = Object.assign({}, n.components);
|
|
3231
|
-
return Object.keys(e.components || {}).forEach((a) => {
|
|
3232
|
-
o[a] = Object.assign(Object.assign({}, o[a]), e.components[a]);
|
|
3233
|
-
}), Object.assign(Object.assign(Object.assign({}, n), r), {
|
|
3234
|
-
token: Object.assign(Object.assign({}, n.token), r.token),
|
|
3235
|
-
components: o
|
|
3236
|
-
});
|
|
3237
|
-
}, [r, n], (o, a) => o.some((i, c) => {
|
|
3238
|
-
const s = a[c];
|
|
3239
|
-
return !bi(i, s, !0);
|
|
3240
|
-
}));
|
|
3241
|
-
}
|
|
3242
|
-
var Hs = ["children"], ca = /* @__PURE__ */ g.createContext({});
|
|
3243
|
-
function Ds(e) {
|
|
3244
|
-
var t = e.children, r = Sr(e, Hs);
|
|
3245
|
-
return /* @__PURE__ */ g.createElement(ca.Provider, {
|
|
3246
|
-
value: r
|
|
3247
|
-
}, t);
|
|
3248
|
-
}
|
|
3249
|
-
var Bs = /* @__PURE__ */ function(e) {
|
|
3250
|
-
vo(r, e);
|
|
3251
|
-
var t = po(r);
|
|
3252
|
-
function r() {
|
|
3253
|
-
return ht(this, r), t.apply(this, arguments);
|
|
3254
|
-
}
|
|
3255
|
-
return mt(r, [{
|
|
3256
|
-
key: "render",
|
|
3257
|
-
value: function() {
|
|
3258
|
-
return this.props.children;
|
|
3259
|
-
}
|
|
3260
|
-
}]), r;
|
|
3261
|
-
}(g.Component), Re = "none", At = "appear", Mt = "enter", Rt = "leave", Gn = "none", ue = "prepare", Ye = "start", Ke = "active", an = "end", sa = "prepared";
|
|
3262
|
-
function Yn(e, t) {
|
|
3263
|
-
var r = {};
|
|
3264
|
-
return r[e.toLowerCase()] = t.toLowerCase(), r["Webkit".concat(e)] = "webkit".concat(t), r["Moz".concat(e)] = "moz".concat(t), r["ms".concat(e)] = "MS".concat(t), r["O".concat(e)] = "o".concat(t.toLowerCase()), r;
|
|
3265
|
-
}
|
|
3266
|
-
function zs(e, t) {
|
|
3267
|
-
var r = {
|
|
3268
|
-
animationend: Yn("Animation", "AnimationEnd"),
|
|
3269
|
-
transitionend: Yn("Transition", "TransitionEnd")
|
|
3270
|
-
};
|
|
3271
|
-
return e && ("AnimationEvent" in t || delete r.animationend.animation, "TransitionEvent" in t || delete r.transitionend.transition), r;
|
|
3272
|
-
}
|
|
3273
|
-
var Fs = zs(pe(), typeof window < "u" ? window : {}), la = {};
|
|
3274
|
-
if (pe()) {
|
|
3275
|
-
var Ws = document.createElement("div");
|
|
3276
|
-
la = Ws.style;
|
|
3277
|
-
}
|
|
3278
|
-
var _t = {};
|
|
3279
|
-
function ua(e) {
|
|
3280
|
-
if (_t[e])
|
|
3281
|
-
return _t[e];
|
|
3282
|
-
var t = Fs[e];
|
|
3283
|
-
if (t)
|
|
3284
|
-
for (var r = Object.keys(t), n = r.length, o = 0; o < n; o += 1) {
|
|
3285
|
-
var a = r[o];
|
|
3286
|
-
if (Object.prototype.hasOwnProperty.call(t, a) && a in la)
|
|
3287
|
-
return _t[e] = t[a], _t[e];
|
|
3288
|
-
}
|
|
3289
|
-
return "";
|
|
3290
|
-
}
|
|
3291
|
-
var fa = ua("animationend"), da = ua("transitionend"), ga = !!(fa && da), Kn = fa || "animationend", qn = da || "transitionend";
|
|
3292
|
-
function Qn(e, t) {
|
|
3293
|
-
if (!e)
|
|
3294
|
-
return null;
|
|
3295
|
-
if (G(e) === "object") {
|
|
3296
|
-
var r = t.replace(/-\w/g, function(n) {
|
|
3297
|
-
return n[1].toUpperCase();
|
|
3298
|
-
});
|
|
3299
|
-
return e[r];
|
|
3300
|
-
}
|
|
3301
|
-
return "".concat(e, "-").concat(t);
|
|
3302
|
-
}
|
|
3303
|
-
const Vs = function(e) {
|
|
3304
|
-
var t = ke(), r = ke(e);
|
|
3305
|
-
r.current = e;
|
|
3306
|
-
var n = g.useCallback(function(i) {
|
|
3307
|
-
r.current(i);
|
|
3308
|
-
}, []);
|
|
3309
|
-
function o(i) {
|
|
3310
|
-
i && (i.removeEventListener(qn, n), i.removeEventListener(Kn, n));
|
|
3311
|
-
}
|
|
3312
|
-
function a(i) {
|
|
3313
|
-
t.current && t.current !== i && o(t.current), i && i !== t.current && (i.addEventListener(qn, n), i.addEventListener(Kn, n), t.current = i);
|
|
3314
|
-
}
|
|
3315
|
-
return g.useEffect(function() {
|
|
3316
|
-
return function() {
|
|
3317
|
-
o(t.current);
|
|
3318
|
-
};
|
|
3319
|
-
}, []), [a, o];
|
|
3320
|
-
};
|
|
3321
|
-
var va = pe() ? Za : Pe;
|
|
3322
|
-
const Us = function() {
|
|
3323
|
-
var e = g.useRef(null);
|
|
3324
|
-
function t() {
|
|
3325
|
-
yr.cancel(e.current);
|
|
3326
|
-
}
|
|
3327
|
-
function r(n) {
|
|
3328
|
-
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
|
|
3329
|
-
t();
|
|
3330
|
-
var a = yr(function() {
|
|
3331
|
-
o <= 1 ? n({
|
|
3332
|
-
isCanceled: function() {
|
|
3333
|
-
return a !== e.current;
|
|
3334
|
-
}
|
|
3335
|
-
}) : r(n, o - 1);
|
|
3336
|
-
});
|
|
3337
|
-
e.current = a;
|
|
3338
|
-
}
|
|
3339
|
-
return g.useEffect(function() {
|
|
3340
|
-
return function() {
|
|
3341
|
-
t();
|
|
3342
|
-
};
|
|
3343
|
-
}, []), [r, t];
|
|
3344
|
-
};
|
|
3345
|
-
var Xs = [ue, Ye, Ke, an], Gs = [ue, sa], pa = !1, Ys = !0;
|
|
3346
|
-
function ha(e) {
|
|
3347
|
-
return e === Ke || e === an;
|
|
3348
|
-
}
|
|
3349
|
-
const Ks = function(e, t, r) {
|
|
3350
|
-
var n = Ht(Gn), o = D(n, 2), a = o[0], i = o[1], c = Us(), s = D(c, 2), l = s[0], f = s[1];
|
|
3351
|
-
function u() {
|
|
3352
|
-
i(ue, !0);
|
|
3353
|
-
}
|
|
3354
|
-
var v = t ? Gs : Xs;
|
|
3355
|
-
return va(function() {
|
|
3356
|
-
if (a !== Gn && a !== an) {
|
|
3357
|
-
var h = v.indexOf(a), b = v[h + 1], p = r(a);
|
|
3358
|
-
p === pa ? i(b, !0) : b && l(function(d) {
|
|
3359
|
-
function S() {
|
|
3360
|
-
d.isCanceled() || i(b, !0);
|
|
3361
|
-
}
|
|
3362
|
-
p === !0 ? S() : Promise.resolve(p).then(S);
|
|
3363
|
-
});
|
|
3364
|
-
}
|
|
3365
|
-
}, [e, a]), g.useEffect(function() {
|
|
3366
|
-
return function() {
|
|
3367
|
-
f();
|
|
3368
|
-
};
|
|
3369
|
-
}, []), [u, a];
|
|
3370
|
-
};
|
|
3371
|
-
function qs(e, t, r, n) {
|
|
3372
|
-
var o = n.motionEnter, a = o === void 0 ? !0 : o, i = n.motionAppear, c = i === void 0 ? !0 : i, s = n.motionLeave, l = s === void 0 ? !0 : s, f = n.motionDeadline, u = n.motionLeaveImmediately, v = n.onAppearPrepare, h = n.onEnterPrepare, b = n.onLeavePrepare, p = n.onAppearStart, d = n.onEnterStart, S = n.onLeaveStart, m = n.onAppearActive, w = n.onEnterActive, O = n.onLeaveActive, C = n.onAppearEnd, T = n.onEnterEnd, y = n.onLeaveEnd, M = n.onVisibleChanged, I = Ht(), k = D(I, 2), $ = k[0], R = k[1], x = Ht(Re), A = D(x, 2), P = A[0], L = A[1], B = Ht(null), U = D(B, 2), z = U[0], F = U[1], Y = ke(!1), W = ke(null);
|
|
3373
|
-
function te() {
|
|
3374
|
-
return r();
|
|
3375
|
-
}
|
|
3376
|
-
var re = ke(!1);
|
|
3377
|
-
function de() {
|
|
3378
|
-
L(Re, !0), F(null, !0);
|
|
3379
|
-
}
|
|
3380
|
-
function ze(ee) {
|
|
3381
|
-
var K = te();
|
|
3382
|
-
if (!(ee && !ee.deadline && ee.target !== K)) {
|
|
3383
|
-
var q = re.current, ce;
|
|
3384
|
-
P === At && q ? ce = C == null ? void 0 : C(K, ee) : P === Mt && q ? ce = T == null ? void 0 : T(K, ee) : P === Rt && q && (ce = y == null ? void 0 : y(K, ee)), P !== Re && q && ce !== !1 && de();
|
|
3385
|
-
}
|
|
3386
|
-
}
|
|
3387
|
-
var nt = Vs(ze), ot = D(nt, 1), at = ot[0], Fe = function(K) {
|
|
3388
|
-
var q, ce, Me;
|
|
3389
|
-
switch (K) {
|
|
3390
|
-
case At:
|
|
3391
|
-
return q = {}, H(q, ue, v), H(q, Ye, p), H(q, Ke, m), q;
|
|
3392
|
-
case Mt:
|
|
3393
|
-
return ce = {}, H(ce, ue, h), H(ce, Ye, d), H(ce, Ke, w), ce;
|
|
3394
|
-
case Rt:
|
|
3395
|
-
return Me = {}, H(Me, ue, b), H(Me, Ye, S), H(Me, Ke, O), Me;
|
|
3396
|
-
default:
|
|
3397
|
-
return {};
|
|
3398
|
-
}
|
|
3399
|
-
}, he = g.useMemo(function() {
|
|
3400
|
-
return Fe(P);
|
|
3401
|
-
}, [P]), it = Ks(P, !e, function(ee) {
|
|
3402
|
-
if (ee === ue) {
|
|
3403
|
-
var K = he[ue];
|
|
3404
|
-
return K ? K(te()) : pa;
|
|
3405
|
-
}
|
|
3406
|
-
if (ne in he) {
|
|
3407
|
-
var q;
|
|
3408
|
-
F(((q = he[ne]) === null || q === void 0 ? void 0 : q.call(he, te(), null)) || null);
|
|
3409
|
-
}
|
|
3410
|
-
return ne === Ke && (at(te()), f > 0 && (clearTimeout(W.current), W.current = setTimeout(function() {
|
|
3411
|
-
ze({
|
|
3412
|
-
deadline: !0
|
|
3413
|
-
});
|
|
3414
|
-
}, f))), ne === sa && de(), Ys;
|
|
3415
|
-
}), We = D(it, 2), E = We[0], ne = We[1], Ce = ha(ne);
|
|
3416
|
-
re.current = Ce, va(function() {
|
|
3417
|
-
R(t);
|
|
3418
|
-
var ee = Y.current;
|
|
3419
|
-
Y.current = !0;
|
|
3420
|
-
var K;
|
|
3421
|
-
!ee && t && c && (K = At), ee && t && a && (K = Mt), (ee && !t && l || !ee && u && !t && l) && (K = Rt);
|
|
3422
|
-
var q = Fe(K);
|
|
3423
|
-
K && (e || q[ue]) ? (L(K), E()) : L(Re);
|
|
3424
|
-
}, [t]), Pe(function() {
|
|
3425
|
-
// Cancel appear
|
|
3426
|
-
(P === At && !c || // Cancel enter
|
|
3427
|
-
P === Mt && !a || // Cancel leave
|
|
3428
|
-
P === Rt && !l) && L(Re);
|
|
3429
|
-
}, [c, a, l]), Pe(function() {
|
|
3430
|
-
return function() {
|
|
3431
|
-
Y.current = !1, clearTimeout(W.current);
|
|
3432
|
-
};
|
|
3433
|
-
}, []);
|
|
3434
|
-
var Te = g.useRef(!1);
|
|
3435
|
-
Pe(function() {
|
|
3436
|
-
$ && (Te.current = !0), $ !== void 0 && P === Re && ((Te.current || $) && (M == null || M($)), Te.current = !0);
|
|
3437
|
-
}, [$, P]);
|
|
3438
|
-
var ct = z;
|
|
3439
|
-
return he[ue] && ne === Ye && (ct = _({
|
|
3440
|
-
transition: "none"
|
|
3441
|
-
}, ct)), [P, ne, ct, $ ?? t];
|
|
3442
|
-
}
|
|
3443
|
-
function Qs(e) {
|
|
3444
|
-
var t = e;
|
|
3445
|
-
G(e) === "object" && (t = e.transitionSupport);
|
|
3446
|
-
function r(o, a) {
|
|
3447
|
-
return !!(o.motionName && t && a !== !1);
|
|
3448
|
-
}
|
|
3449
|
-
var n = /* @__PURE__ */ g.forwardRef(function(o, a) {
|
|
3450
|
-
var i = o.visible, c = i === void 0 ? !0 : i, s = o.removeOnLeave, l = s === void 0 ? !0 : s, f = o.forceRender, u = o.children, v = o.motionName, h = o.leavedClassName, b = o.eventProps, p = g.useContext(ca), d = p.motion, S = r(o, d), m = ke(), w = ke();
|
|
3451
|
-
function O() {
|
|
3452
|
-
try {
|
|
3453
|
-
return m.current instanceof HTMLElement ? m.current : ui(w.current);
|
|
3454
|
-
} catch {
|
|
3455
|
-
return null;
|
|
3456
|
-
}
|
|
3457
|
-
}
|
|
3458
|
-
var C = qs(S, c, O, o), T = D(C, 4), y = T[0], M = T[1], I = T[2], k = T[3], $ = g.useRef(k);
|
|
3459
|
-
k && ($.current = !0);
|
|
3460
|
-
var R = g.useCallback(function(F) {
|
|
3461
|
-
m.current = F, fi(a, F);
|
|
3462
|
-
}, [a]), x, A = _(_({}, b), {}, {
|
|
3463
|
-
visible: c
|
|
3464
|
-
});
|
|
3465
|
-
if (!u)
|
|
3466
|
-
x = null;
|
|
3467
|
-
else if (y === Re)
|
|
3468
|
-
k ? x = u(_({}, A), R) : !l && $.current && h ? x = u(_(_({}, A), {}, {
|
|
3469
|
-
className: h
|
|
3470
|
-
}), R) : f || !l && !h ? x = u(_(_({}, A), {}, {
|
|
3471
|
-
style: {
|
|
3472
|
-
display: "none"
|
|
3473
|
-
}
|
|
3474
|
-
}), R) : x = null;
|
|
3475
|
-
else {
|
|
3476
|
-
var P, L;
|
|
3477
|
-
M === ue ? L = "prepare" : ha(M) ? L = "active" : M === Ye && (L = "start");
|
|
3478
|
-
var B = Qn(v, "".concat(y, "-").concat(L));
|
|
3479
|
-
x = u(_(_({}, A), {}, {
|
|
3480
|
-
className: Je(Qn(v, y), (P = {}, H(P, B, B && L), H(P, v, typeof v == "string"), P)),
|
|
3481
|
-
style: I
|
|
3482
|
-
}), R);
|
|
3483
|
-
}
|
|
3484
|
-
if (/* @__PURE__ */ g.isValidElement(x) && di(x)) {
|
|
3485
|
-
var U = x, z = U.ref;
|
|
3486
|
-
z || (x = /* @__PURE__ */ g.cloneElement(x, {
|
|
3487
|
-
ref: R
|
|
3488
|
-
}));
|
|
3489
|
-
}
|
|
3490
|
-
return /* @__PURE__ */ g.createElement(Bs, {
|
|
3491
|
-
ref: w
|
|
3492
|
-
}, x);
|
|
3493
|
-
});
|
|
3494
|
-
return n.displayName = "CSSMotion", n;
|
|
3495
|
-
}
|
|
3496
|
-
const Js = Qs(ga);
|
|
3497
|
-
var Lr = "add", Ir = "keep", Hr = "remove", dr = "removed";
|
|
3498
|
-
function Zs(e) {
|
|
3499
|
-
var t;
|
|
3500
|
-
return e && G(e) === "object" && "key" in e ? t = e : t = {
|
|
3501
|
-
key: e
|
|
3502
|
-
}, _(_({}, t), {}, {
|
|
3503
|
-
key: String(t.key)
|
|
3504
|
-
});
|
|
3505
|
-
}
|
|
3506
|
-
function Dr() {
|
|
3507
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
3508
|
-
return e.map(Zs);
|
|
3509
|
-
}
|
|
3510
|
-
function el() {
|
|
3511
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = [], n = 0, o = t.length, a = Dr(e), i = Dr(t);
|
|
3512
|
-
a.forEach(function(l) {
|
|
3513
|
-
for (var f = !1, u = n; u < o; u += 1) {
|
|
3514
|
-
var v = i[u];
|
|
3515
|
-
if (v.key === l.key) {
|
|
3516
|
-
n < u && (r = r.concat(i.slice(n, u).map(function(h) {
|
|
3517
|
-
return _(_({}, h), {}, {
|
|
3518
|
-
status: Lr
|
|
3519
|
-
});
|
|
3520
|
-
})), n = u), r.push(_(_({}, v), {}, {
|
|
3521
|
-
status: Ir
|
|
3522
|
-
})), n += 1, f = !0;
|
|
3523
|
-
break;
|
|
3524
|
-
}
|
|
3525
|
-
}
|
|
3526
|
-
f || r.push(_(_({}, l), {}, {
|
|
3527
|
-
status: Hr
|
|
3528
|
-
}));
|
|
3529
|
-
}), n < o && (r = r.concat(i.slice(n).map(function(l) {
|
|
3530
|
-
return _(_({}, l), {}, {
|
|
3531
|
-
status: Lr
|
|
3532
|
-
});
|
|
3533
|
-
})));
|
|
3534
|
-
var c = {};
|
|
3535
|
-
r.forEach(function(l) {
|
|
3536
|
-
var f = l.key;
|
|
3537
|
-
c[f] = (c[f] || 0) + 1;
|
|
3538
|
-
});
|
|
3539
|
-
var s = Object.keys(c).filter(function(l) {
|
|
3540
|
-
return c[l] > 1;
|
|
3541
|
-
});
|
|
3542
|
-
return s.forEach(function(l) {
|
|
3543
|
-
r = r.filter(function(f) {
|
|
3544
|
-
var u = f.key, v = f.status;
|
|
3545
|
-
return u !== l || v !== Hr;
|
|
3546
|
-
}), r.forEach(function(f) {
|
|
3547
|
-
f.key === l && (f.status = Ir);
|
|
3548
|
-
});
|
|
3549
|
-
}), r;
|
|
3550
|
-
}
|
|
3551
|
-
var tl = ["component", "children", "onVisibleChanged", "onAllRemoved"], rl = ["status"], nl = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
|
|
3552
|
-
function ol(e) {
|
|
3553
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Js, r = /* @__PURE__ */ function(n) {
|
|
3554
|
-
vo(a, n);
|
|
3555
|
-
var o = po(a);
|
|
3556
|
-
function a() {
|
|
3557
|
-
var i;
|
|
3558
|
-
ht(this, a);
|
|
3559
|
-
for (var c = arguments.length, s = new Array(c), l = 0; l < c; l++)
|
|
3560
|
-
s[l] = arguments[l];
|
|
3561
|
-
return i = o.call.apply(o, [this].concat(s)), H(mr(i), "state", {
|
|
3562
|
-
keyEntities: []
|
|
3563
|
-
}), H(mr(i), "removeKey", function(f) {
|
|
3564
|
-
var u = i.state.keyEntities, v = u.map(function(h) {
|
|
3565
|
-
return h.key !== f ? h : _(_({}, h), {}, {
|
|
3566
|
-
status: dr
|
|
3567
|
-
});
|
|
3568
|
-
});
|
|
3569
|
-
return i.setState({
|
|
3570
|
-
keyEntities: v
|
|
3571
|
-
}), v.filter(function(h) {
|
|
3572
|
-
var b = h.status;
|
|
3573
|
-
return b !== dr;
|
|
3574
|
-
}).length;
|
|
3575
|
-
}), i;
|
|
3576
|
-
}
|
|
3577
|
-
return mt(a, [{
|
|
3578
|
-
key: "render",
|
|
3579
|
-
value: function() {
|
|
3580
|
-
var c = this, s = this.state.keyEntities, l = this.props, f = l.component, u = l.children, v = l.onVisibleChanged, h = l.onAllRemoved, b = Sr(l, tl), p = f || g.Fragment, d = {};
|
|
3581
|
-
return nl.forEach(function(S) {
|
|
3582
|
-
d[S] = b[S], delete b[S];
|
|
3583
|
-
}), delete b.keys, /* @__PURE__ */ g.createElement(p, b, s.map(function(S, m) {
|
|
3584
|
-
var w = S.status, O = Sr(S, rl), C = w === Lr || w === Ir;
|
|
3585
|
-
return /* @__PURE__ */ g.createElement(t, Dt({}, d, {
|
|
3586
|
-
key: O.key,
|
|
3587
|
-
visible: C,
|
|
3588
|
-
eventProps: O,
|
|
3589
|
-
onVisibleChanged: function(y) {
|
|
3590
|
-
if (v == null || v(y, {
|
|
3591
|
-
key: O.key
|
|
3592
|
-
}), !y) {
|
|
3593
|
-
var M = c.removeKey(O.key);
|
|
3594
|
-
M === 0 && h && h();
|
|
3595
|
-
}
|
|
3596
|
-
}
|
|
3597
|
-
}), function(T, y) {
|
|
3598
|
-
return u(_(_({}, T), {}, {
|
|
3599
|
-
index: m
|
|
3600
|
-
}), y);
|
|
3601
|
-
});
|
|
3602
|
-
}));
|
|
3603
|
-
}
|
|
3604
|
-
}], [{
|
|
3605
|
-
key: "getDerivedStateFromProps",
|
|
3606
|
-
value: function(c, s) {
|
|
3607
|
-
var l = c.keys, f = s.keyEntities, u = Dr(l), v = el(f, u);
|
|
3608
|
-
return {
|
|
3609
|
-
keyEntities: v.filter(function(h) {
|
|
3610
|
-
var b = f.find(function(p) {
|
|
3611
|
-
var d = p.key;
|
|
3612
|
-
return h.key === d;
|
|
3613
|
-
});
|
|
3614
|
-
return !(b && b.status === dr && h.status === Hr);
|
|
3615
|
-
})
|
|
3616
|
-
};
|
|
3617
|
-
}
|
|
3618
|
-
}]), a;
|
|
3619
|
-
}(g.Component);
|
|
3620
|
-
return H(r, "defaultProps", {
|
|
3621
|
-
component: "div"
|
|
3622
|
-
}), r;
|
|
3623
|
-
}
|
|
3624
|
-
ol(ga);
|
|
3625
|
-
function al(e) {
|
|
3626
|
-
const {
|
|
3627
|
-
children: t
|
|
3628
|
-
} = e, [, r] = on(), {
|
|
3629
|
-
motion: n
|
|
3630
|
-
} = r, o = g.useRef(!1);
|
|
3631
|
-
return o.current = o.current || n === !1, o.current ? /* @__PURE__ */ g.createElement(Ds, {
|
|
3632
|
-
motion: n
|
|
3633
|
-
}, t) : t;
|
|
3634
|
-
}
|
|
3635
|
-
const ma = /* @__PURE__ */ g.memo((e) => {
|
|
3636
|
-
let {
|
|
3637
|
-
dropdownMatchSelectWidth: t
|
|
3638
|
-
} = e;
|
|
3639
|
-
return Vo("ConfigProvider").deprecated(t === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), null;
|
|
3640
|
-
});
|
|
3641
|
-
process.env.NODE_ENV !== "production" && (ma.displayName = "PropWarning");
|
|
3642
|
-
const il = process.env.NODE_ENV !== "production" ? ma : () => null;
|
|
3643
|
-
var cl = globalThis && globalThis.__rest || function(e, t) {
|
|
3644
|
-
var r = {};
|
|
3645
|
-
for (var n in e)
|
|
3646
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3647
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
3648
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
3649
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
3650
|
-
return r;
|
|
3651
|
-
};
|
|
3652
|
-
let Br = !1;
|
|
3653
|
-
process.env.NODE_ENV;
|
|
3654
|
-
const sl = ["getTargetContainer", "getPopupContainer", "renderEmpty", "pageHeader", "input", "pagination", "form", "select", "button"], ll = "ant";
|
|
3655
|
-
let ba;
|
|
3656
|
-
function ul() {
|
|
3657
|
-
return ba || ll;
|
|
3658
|
-
}
|
|
3659
|
-
function fl(e) {
|
|
3660
|
-
return Object.keys(e).some((t) => t.endsWith("Color"));
|
|
3661
|
-
}
|
|
3662
|
-
const dl = (e) => {
|
|
3663
|
-
let {
|
|
3664
|
-
prefixCls: t,
|
|
3665
|
-
iconPrefixCls: r,
|
|
3666
|
-
theme: n
|
|
3667
|
-
} = e;
|
|
3668
|
-
t !== void 0 && (ba = t), n && fl(n) && (process.env.NODE_ENV !== "production" && Xt(!1, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead."), Cs(ul(), n));
|
|
3669
|
-
}, gl = (e) => {
|
|
3670
|
-
const {
|
|
3671
|
-
children: t,
|
|
3672
|
-
csp: r,
|
|
3673
|
-
autoInsertSpaceInButton: n,
|
|
3674
|
-
alert: o,
|
|
3675
|
-
anchor: a,
|
|
3676
|
-
form: i,
|
|
3677
|
-
locale: c,
|
|
3678
|
-
componentSize: s,
|
|
3679
|
-
direction: l,
|
|
3680
|
-
space: f,
|
|
3681
|
-
virtual: u,
|
|
3682
|
-
dropdownMatchSelectWidth: v,
|
|
3683
|
-
popupMatchSelectWidth: h,
|
|
3684
|
-
popupOverflow: b,
|
|
3685
|
-
legacyLocale: p,
|
|
3686
|
-
parentContext: d,
|
|
3687
|
-
iconPrefixCls: S,
|
|
3688
|
-
theme: m,
|
|
3689
|
-
componentDisabled: w,
|
|
3690
|
-
segmented: O,
|
|
3691
|
-
statistic: C,
|
|
3692
|
-
spin: T,
|
|
3693
|
-
calendar: y,
|
|
3694
|
-
carousel: M,
|
|
3695
|
-
cascader: I,
|
|
3696
|
-
collapse: k,
|
|
3697
|
-
typography: $,
|
|
3698
|
-
checkbox: R,
|
|
3699
|
-
descriptions: x,
|
|
3700
|
-
divider: A,
|
|
3701
|
-
drawer: P,
|
|
3702
|
-
skeleton: L,
|
|
3703
|
-
steps: B,
|
|
3704
|
-
image: U,
|
|
3705
|
-
layout: z,
|
|
3706
|
-
list: F,
|
|
3707
|
-
mentions: Y,
|
|
3708
|
-
modal: W,
|
|
3709
|
-
progress: te,
|
|
3710
|
-
result: re,
|
|
3711
|
-
slider: de,
|
|
3712
|
-
breadcrumb: ze,
|
|
3713
|
-
menu: nt,
|
|
3714
|
-
pagination: ot,
|
|
3715
|
-
input: at,
|
|
3716
|
-
empty: Fe,
|
|
3717
|
-
badge: he,
|
|
3718
|
-
radio: it,
|
|
3719
|
-
rate: We,
|
|
3720
|
-
switch: E,
|
|
3721
|
-
transfer: ne,
|
|
3722
|
-
avatar: Ce,
|
|
3723
|
-
message: Te,
|
|
3724
|
-
tag: ct,
|
|
3725
|
-
table: ee,
|
|
3726
|
-
card: K,
|
|
3727
|
-
tabs: q,
|
|
3728
|
-
timeline: ce,
|
|
3729
|
-
timePicker: Me,
|
|
3730
|
-
upload: Ia,
|
|
3731
|
-
notification: Ha,
|
|
3732
|
-
tree: Da,
|
|
3733
|
-
colorPicker: Ba,
|
|
3734
|
-
datePicker: za,
|
|
3735
|
-
rangePicker: Fa,
|
|
3736
|
-
flex: Wa,
|
|
3737
|
-
wave: Va,
|
|
3738
|
-
dropdown: Ua,
|
|
3739
|
-
warning: Xa
|
|
3740
|
-
} = e, Ga = g.useCallback((X, J) => {
|
|
3741
|
-
const {
|
|
3742
|
-
prefixCls: ge
|
|
3743
|
-
} = e;
|
|
3744
|
-
if (J)
|
|
3745
|
-
return J;
|
|
3746
|
-
const ve = ge || d.getPrefixCls("");
|
|
3747
|
-
return X ? `${ve}-${X}` : ve;
|
|
3748
|
-
}, [d.getPrefixCls, e.prefixCls]), st = S || d.iconPrefixCls || ra, lt = r || d.csp;
|
|
3749
|
-
ia(st, lt);
|
|
3750
|
-
const St = Is(m, d.theme);
|
|
3751
|
-
process.env.NODE_ENV !== "production" && (Br = Br || !!St);
|
|
3752
|
-
const Jt = {
|
|
3753
|
-
csp: lt,
|
|
3754
|
-
autoInsertSpaceInButton: n,
|
|
3755
|
-
alert: o,
|
|
3756
|
-
anchor: a,
|
|
3757
|
-
locale: c || p,
|
|
3758
|
-
direction: l,
|
|
3759
|
-
space: f,
|
|
3760
|
-
virtual: u,
|
|
3761
|
-
popupMatchSelectWidth: h ?? v,
|
|
3762
|
-
popupOverflow: b,
|
|
3763
|
-
getPrefixCls: Ga,
|
|
3764
|
-
iconPrefixCls: st,
|
|
3765
|
-
theme: St,
|
|
3766
|
-
segmented: O,
|
|
3767
|
-
statistic: C,
|
|
3768
|
-
spin: T,
|
|
3769
|
-
calendar: y,
|
|
3770
|
-
carousel: M,
|
|
3771
|
-
cascader: I,
|
|
3772
|
-
collapse: k,
|
|
3773
|
-
typography: $,
|
|
3774
|
-
checkbox: R,
|
|
3775
|
-
descriptions: x,
|
|
3776
|
-
divider: A,
|
|
3777
|
-
drawer: P,
|
|
3778
|
-
skeleton: L,
|
|
3779
|
-
steps: B,
|
|
3780
|
-
image: U,
|
|
3781
|
-
input: at,
|
|
3782
|
-
layout: z,
|
|
3783
|
-
list: F,
|
|
3784
|
-
mentions: Y,
|
|
3785
|
-
modal: W,
|
|
3786
|
-
progress: te,
|
|
3787
|
-
result: re,
|
|
3788
|
-
slider: de,
|
|
3789
|
-
breadcrumb: ze,
|
|
3790
|
-
menu: nt,
|
|
3791
|
-
pagination: ot,
|
|
3792
|
-
empty: Fe,
|
|
3793
|
-
badge: he,
|
|
3794
|
-
radio: it,
|
|
3795
|
-
rate: We,
|
|
3796
|
-
switch: E,
|
|
3797
|
-
transfer: ne,
|
|
3798
|
-
avatar: Ce,
|
|
3799
|
-
message: Te,
|
|
3800
|
-
tag: ct,
|
|
3801
|
-
table: ee,
|
|
3802
|
-
card: K,
|
|
3803
|
-
tabs: q,
|
|
3804
|
-
timeline: ce,
|
|
3805
|
-
timePicker: Me,
|
|
3806
|
-
upload: Ia,
|
|
3807
|
-
notification: Ha,
|
|
3808
|
-
tree: Da,
|
|
3809
|
-
colorPicker: Ba,
|
|
3810
|
-
datePicker: za,
|
|
3811
|
-
rangePicker: Fa,
|
|
3812
|
-
flex: Wa,
|
|
3813
|
-
wave: Va,
|
|
3814
|
-
dropdown: Ua,
|
|
3815
|
-
warning: Xa
|
|
3816
|
-
}, xt = Object.assign({}, d);
|
|
3817
|
-
Object.keys(Jt).forEach((X) => {
|
|
3818
|
-
Jt[X] !== void 0 && (xt[X] = Jt[X]);
|
|
3819
|
-
}), sl.forEach((X) => {
|
|
3820
|
-
const J = e[X];
|
|
3821
|
-
J && (xt[X] = J);
|
|
3822
|
-
});
|
|
3823
|
-
const Ve = go(() => xt, xt, (X, J) => {
|
|
3824
|
-
const ge = Object.keys(X), ve = Object.keys(J);
|
|
3825
|
-
return ge.length !== ve.length || ge.some((Et) => X[Et] !== J[Et]);
|
|
3826
|
-
}), Ya = g.useMemo(() => ({
|
|
3827
|
-
prefixCls: st,
|
|
3828
|
-
csp: lt
|
|
3829
|
-
}), [st, lt]);
|
|
3830
|
-
let Q = /* @__PURE__ */ g.createElement(g.Fragment, null, /* @__PURE__ */ g.createElement(il, {
|
|
3831
|
-
dropdownMatchSelectWidth: v
|
|
3832
|
-
}), t);
|
|
3833
|
-
const dn = g.useMemo(() => {
|
|
3834
|
-
var X, J, ge, ve;
|
|
3835
|
-
return _c(((X = Gt.Form) === null || X === void 0 ? void 0 : X.defaultValidateMessages) || {}, ((ge = (J = Ve.locale) === null || J === void 0 ? void 0 : J.Form) === null || ge === void 0 ? void 0 : ge.defaultValidateMessages) || {}, ((ve = Ve.form) === null || ve === void 0 ? void 0 : ve.validateMessages) || {}, (i == null ? void 0 : i.validateMessages) || {});
|
|
3836
|
-
}, [Ve, i == null ? void 0 : i.validateMessages]);
|
|
3837
|
-
Object.keys(dn).length > 0 && (Q = /* @__PURE__ */ g.createElement(Nc.Provider, {
|
|
3838
|
-
value: dn
|
|
3839
|
-
}, Q)), c && (Q = /* @__PURE__ */ g.createElement(Fc, {
|
|
3840
|
-
locale: c,
|
|
3841
|
-
_ANT_MARK__: Go
|
|
3842
|
-
}, Q)), (st || lt) && (Q = /* @__PURE__ */ g.createElement(tn.Provider, {
|
|
3843
|
-
value: Ya
|
|
3844
|
-
}, Q)), s && (Q = /* @__PURE__ */ g.createElement(Os, {
|
|
3845
|
-
size: s
|
|
3846
|
-
}, Q)), Q = /* @__PURE__ */ g.createElement(al, null, Q);
|
|
3847
|
-
const Ka = g.useMemo(() => {
|
|
3848
|
-
const X = St || {}, {
|
|
3849
|
-
algorithm: J,
|
|
3850
|
-
token: ge,
|
|
3851
|
-
components: ve
|
|
3852
|
-
} = X, Et = cl(X, ["algorithm", "token", "components"]), gn = J && (!Array.isArray(J) || J.length > 0) ? Cr(J) : Zo, Zt = {};
|
|
3853
|
-
Object.entries(ve || {}).forEach((qa) => {
|
|
3854
|
-
let [Qa, Ja] = qa;
|
|
3855
|
-
const me = Object.assign({}, Ja);
|
|
3856
|
-
"algorithm" in me && (me.algorithm === !0 ? me.theme = gn : (Array.isArray(me.algorithm) || typeof me.algorithm == "function") && (me.theme = Cr(me.algorithm)), delete me.algorithm), Zt[Qa] = me;
|
|
3857
|
-
});
|
|
3858
|
-
const vn = Object.assign(Object.assign({}, pt), ge);
|
|
3859
|
-
return Object.assign(Object.assign({}, Et), {
|
|
3860
|
-
theme: gn,
|
|
3861
|
-
token: vn,
|
|
3862
|
-
components: Zt,
|
|
3863
|
-
override: Object.assign({
|
|
3864
|
-
override: vn
|
|
3865
|
-
}, Zt)
|
|
3866
|
-
});
|
|
3867
|
-
}, [St]);
|
|
3868
|
-
return m && (Q = /* @__PURE__ */ g.createElement(ta.Provider, {
|
|
3869
|
-
value: Ka
|
|
3870
|
-
}, Q)), Ve.warning && (Q = /* @__PURE__ */ g.createElement(Wo.Provider, {
|
|
3871
|
-
value: Ve.warning
|
|
3872
|
-
}, Q)), w !== void 0 && (Q = /* @__PURE__ */ g.createElement(Ts, {
|
|
3873
|
-
disabled: w
|
|
3874
|
-
}, Q)), /* @__PURE__ */ g.createElement(Ae.Provider, {
|
|
3875
|
-
value: Ve
|
|
3876
|
-
}, Q);
|
|
3877
|
-
}, rt = (e) => {
|
|
3878
|
-
const t = g.useContext(Ae), r = g.useContext(Xo);
|
|
3879
|
-
return /* @__PURE__ */ g.createElement(gl, Object.assign({
|
|
3880
|
-
parentContext: t,
|
|
3881
|
-
legacyLocale: r
|
|
3882
|
-
}, e));
|
|
3883
|
-
};
|
|
3884
|
-
rt.ConfigContext = Ae;
|
|
3885
|
-
rt.SizeContext = nn;
|
|
3886
|
-
rt.config = dl;
|
|
3887
|
-
rt.useConfig = ks;
|
|
3888
|
-
Object.defineProperty(rt, "SizeContext", {
|
|
3889
|
-
get: () => (process.env.NODE_ENV !== "production" && Xt(!1, "ConfigProvider", "ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."), nn)
|
|
3890
|
-
});
|
|
3891
|
-
process.env.NODE_ENV !== "production" && (rt.displayName = "ConfigProvider");
|
|
3892
|
-
function et() {
|
|
3893
|
-
return et = Object.assign ? Object.assign.bind() : function(e) {
|
|
3894
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
3895
|
-
var r = arguments[t];
|
|
3896
|
-
for (var n in r)
|
|
3897
|
-
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
3898
|
-
}
|
|
3899
|
-
return e;
|
|
3900
|
-
}, et.apply(this, arguments);
|
|
3901
|
-
}
|
|
3902
|
-
function vl(e) {
|
|
3903
|
-
if (Array.isArray(e))
|
|
3904
|
-
return e;
|
|
3905
|
-
}
|
|
3906
|
-
function pl(e, t) {
|
|
3907
|
-
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3908
|
-
if (r != null) {
|
|
3909
|
-
var n, o, a, i, c = [], s = !0, l = !1;
|
|
3910
|
-
try {
|
|
3911
|
-
if (a = (r = r.call(e)).next, t === 0) {
|
|
3912
|
-
if (Object(r) !== r)
|
|
3913
|
-
return;
|
|
3914
|
-
s = !1;
|
|
3915
|
-
} else
|
|
3916
|
-
for (; !(s = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); s = !0)
|
|
3917
|
-
;
|
|
3918
|
-
} catch (f) {
|
|
3919
|
-
l = !0, o = f;
|
|
3920
|
-
} finally {
|
|
3921
|
-
try {
|
|
3922
|
-
if (!s && r.return != null && (i = r.return(), Object(i) !== i))
|
|
3923
|
-
return;
|
|
3924
|
-
} finally {
|
|
3925
|
-
if (l)
|
|
3926
|
-
throw o;
|
|
3927
|
-
}
|
|
3928
|
-
}
|
|
3929
|
-
return c;
|
|
3930
|
-
}
|
|
3931
|
-
}
|
|
3932
|
-
function Jn(e, t) {
|
|
3933
|
-
(t == null || t > e.length) && (t = e.length);
|
|
3934
|
-
for (var r = 0, n = new Array(t); r < t; r++)
|
|
3935
|
-
n[r] = e[r];
|
|
3936
|
-
return n;
|
|
3937
|
-
}
|
|
3938
|
-
function hl(e, t) {
|
|
3939
|
-
if (e) {
|
|
3940
|
-
if (typeof e == "string")
|
|
3941
|
-
return Jn(e, t);
|
|
3942
|
-
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
3943
|
-
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
|
|
3944
|
-
return Array.from(e);
|
|
3945
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
|
3946
|
-
return Jn(e, t);
|
|
3947
|
-
}
|
|
3948
|
-
}
|
|
3949
|
-
function ml() {
|
|
3950
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3951
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3952
|
-
}
|
|
3953
|
-
function ya(e, t) {
|
|
3954
|
-
return vl(e) || pl(e, t) || hl(e, t) || ml();
|
|
3955
|
-
}
|
|
3956
|
-
function De(e) {
|
|
3957
|
-
"@babel/helpers - typeof";
|
|
3958
|
-
return De = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3959
|
-
return typeof t;
|
|
3960
|
-
} : function(t) {
|
|
3961
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3962
|
-
}, De(e);
|
|
3963
|
-
}
|
|
3964
|
-
function bl(e, t) {
|
|
3965
|
-
if (De(e) !== "object" || e === null)
|
|
3966
|
-
return e;
|
|
3967
|
-
var r = e[Symbol.toPrimitive];
|
|
3968
|
-
if (r !== void 0) {
|
|
3969
|
-
var n = r.call(e, t || "default");
|
|
3970
|
-
if (De(n) !== "object")
|
|
3971
|
-
return n;
|
|
3972
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3973
|
-
}
|
|
3974
|
-
return (t === "string" ? String : Number)(e);
|
|
3975
|
-
}
|
|
3976
|
-
function yl(e) {
|
|
3977
|
-
var t = bl(e, "string");
|
|
3978
|
-
return De(t) === "symbol" ? t : String(t);
|
|
3979
|
-
}
|
|
3980
|
-
function zr(e, t, r) {
|
|
3981
|
-
return t = yl(t), t in e ? Object.defineProperty(e, t, {
|
|
3982
|
-
value: r,
|
|
3983
|
-
enumerable: !0,
|
|
3984
|
-
configurable: !0,
|
|
3985
|
-
writable: !0
|
|
3986
|
-
}) : e[t] = r, e;
|
|
3987
|
-
}
|
|
3988
|
-
function Sl(e, t) {
|
|
3989
|
-
if (e == null)
|
|
3990
|
-
return {};
|
|
3991
|
-
var r = {}, n = Object.keys(e), o, a;
|
|
3992
|
-
for (a = 0; a < n.length; a++)
|
|
3993
|
-
o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
3994
|
-
return r;
|
|
3995
|
-
}
|
|
3996
|
-
function Sa(e, t) {
|
|
3997
|
-
if (e == null)
|
|
3998
|
-
return {};
|
|
3999
|
-
var r = Sl(e, t), n, o;
|
|
4000
|
-
if (Object.getOwnPropertySymbols) {
|
|
4001
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
4002
|
-
for (o = 0; o < a.length; o++)
|
|
4003
|
-
n = a[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
4004
|
-
}
|
|
4005
|
-
return r;
|
|
4006
|
-
}
|
|
4007
|
-
function Zn(e, t) {
|
|
4008
|
-
var r = Object.keys(e);
|
|
4009
|
-
if (Object.getOwnPropertySymbols) {
|
|
4010
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
4011
|
-
t && (n = n.filter(function(o) {
|
|
4012
|
-
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
4013
|
-
})), r.push.apply(r, n);
|
|
4014
|
-
}
|
|
4015
|
-
return r;
|
|
4016
|
-
}
|
|
4017
|
-
function Oe(e) {
|
|
4018
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
4019
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
4020
|
-
t % 2 ? Zn(Object(r), !0).forEach(function(n) {
|
|
4021
|
-
zr(e, n, r[n]);
|
|
4022
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zn(Object(r)).forEach(function(n) {
|
|
4023
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4024
|
-
});
|
|
4025
|
-
}
|
|
4026
|
-
return e;
|
|
4027
|
-
}
|
|
4028
|
-
function xl() {
|
|
4029
|
-
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
4030
|
-
}
|
|
4031
|
-
function El(e, t) {
|
|
4032
|
-
if (!e)
|
|
4033
|
-
return !1;
|
|
4034
|
-
if (e.contains)
|
|
4035
|
-
return e.contains(t);
|
|
4036
|
-
for (var r = t; r; ) {
|
|
4037
|
-
if (r === e)
|
|
4038
|
-
return !0;
|
|
4039
|
-
r = r.parentNode;
|
|
4040
|
-
}
|
|
4041
|
-
return !1;
|
|
4042
|
-
}
|
|
4043
|
-
var eo = "data-rc-order", to = "data-rc-priority", Cl = "rc-util-key", Fr = /* @__PURE__ */ new Map();
|
|
4044
|
-
function xa() {
|
|
4045
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark;
|
|
4046
|
-
return t ? t.startsWith("data-") ? t : "data-".concat(t) : Cl;
|
|
4047
|
-
}
|
|
4048
|
-
function cn(e) {
|
|
4049
|
-
if (e.attachTo)
|
|
4050
|
-
return e.attachTo;
|
|
4051
|
-
var t = document.querySelector("head");
|
|
4052
|
-
return t || document.body;
|
|
4053
|
-
}
|
|
4054
|
-
function Tl(e) {
|
|
4055
|
-
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
4056
|
-
}
|
|
4057
|
-
function Ea(e) {
|
|
4058
|
-
return Array.from((Fr.get(e) || e).children).filter(function(t) {
|
|
4059
|
-
return t.tagName === "STYLE";
|
|
4060
|
-
});
|
|
4061
|
-
}
|
|
4062
|
-
function Ca(e) {
|
|
4063
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4064
|
-
if (!xl())
|
|
4065
|
-
return null;
|
|
4066
|
-
var r = t.csp, n = t.prepend, o = t.priority, a = o === void 0 ? 0 : o, i = Tl(n), c = i === "prependQueue", s = document.createElement("style");
|
|
4067
|
-
s.setAttribute(eo, i), c && a && s.setAttribute(to, "".concat(a)), r != null && r.nonce && (s.nonce = r == null ? void 0 : r.nonce), s.innerHTML = e;
|
|
4068
|
-
var l = cn(t), f = l.firstChild;
|
|
4069
|
-
if (n) {
|
|
4070
|
-
if (c) {
|
|
4071
|
-
var u = Ea(l).filter(function(v) {
|
|
4072
|
-
if (!["prepend", "prependQueue"].includes(v.getAttribute(eo)))
|
|
4073
|
-
return !1;
|
|
4074
|
-
var h = Number(v.getAttribute(to) || 0);
|
|
4075
|
-
return a >= h;
|
|
4076
|
-
});
|
|
4077
|
-
if (u.length)
|
|
4078
|
-
return l.insertBefore(s, u[u.length - 1].nextSibling), s;
|
|
4079
|
-
}
|
|
4080
|
-
l.insertBefore(s, f);
|
|
4081
|
-
} else
|
|
4082
|
-
l.appendChild(s);
|
|
4083
|
-
return s;
|
|
4084
|
-
}
|
|
4085
|
-
function wl(e) {
|
|
4086
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = cn(t);
|
|
4087
|
-
return Ea(r).find(function(n) {
|
|
4088
|
-
return n.getAttribute(xa(t)) === e;
|
|
4089
|
-
});
|
|
4090
|
-
}
|
|
4091
|
-
function Ol(e, t) {
|
|
4092
|
-
var r = Fr.get(e);
|
|
4093
|
-
if (!r || !El(document, r)) {
|
|
4094
|
-
var n = Ca("", t), o = n.parentNode;
|
|
4095
|
-
Fr.set(e, o), e.removeChild(n);
|
|
4096
|
-
}
|
|
4097
|
-
}
|
|
4098
|
-
function kl(e, t) {
|
|
4099
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = cn(r);
|
|
4100
|
-
Ol(n, r);
|
|
4101
|
-
var o = wl(t, r);
|
|
4102
|
-
if (o) {
|
|
4103
|
-
var a, i;
|
|
4104
|
-
if ((a = r.csp) !== null && a !== void 0 && a.nonce && o.nonce !== ((i = r.csp) === null || i === void 0 ? void 0 : i.nonce)) {
|
|
4105
|
-
var c;
|
|
4106
|
-
o.nonce = (c = r.csp) === null || c === void 0 ? void 0 : c.nonce;
|
|
4107
|
-
}
|
|
4108
|
-
return o.innerHTML !== e && (o.innerHTML = e), o;
|
|
4109
|
-
}
|
|
4110
|
-
var s = Ca(e, r);
|
|
4111
|
-
return s.setAttribute(xa(r), t), s;
|
|
4112
|
-
}
|
|
4113
|
-
function Ta(e) {
|
|
4114
|
-
var t;
|
|
4115
|
-
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
4116
|
-
}
|
|
4117
|
-
function Pl(e) {
|
|
4118
|
-
return Ta(e) instanceof ShadowRoot;
|
|
4119
|
-
}
|
|
4120
|
-
function Al(e) {
|
|
4121
|
-
return Pl(e) ? Ta(e) : null;
|
|
4122
|
-
}
|
|
4123
|
-
var Wr = {}, sn = [], Ml = function(t) {
|
|
4124
|
-
sn.push(t);
|
|
4125
|
-
};
|
|
4126
|
-
function Rl(e, t) {
|
|
4127
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
4128
|
-
var r = sn.reduce(function(n, o) {
|
|
4129
|
-
return o(n ?? "", "warning");
|
|
4130
|
-
}, t);
|
|
4131
|
-
r && console.error("Warning: ".concat(r));
|
|
4132
|
-
}
|
|
4133
|
-
}
|
|
4134
|
-
function _l(e, t) {
|
|
4135
|
-
if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
|
|
4136
|
-
var r = sn.reduce(function(n, o) {
|
|
4137
|
-
return o(n ?? "", "note");
|
|
4138
|
-
}, t);
|
|
4139
|
-
r && console.warn("Note: ".concat(r));
|
|
4140
|
-
}
|
|
4141
|
-
}
|
|
4142
|
-
function $l() {
|
|
4143
|
-
Wr = {};
|
|
4144
|
-
}
|
|
4145
|
-
function wa(e, t, r) {
|
|
4146
|
-
!t && !Wr[r] && (e(!1, r), Wr[r] = !0);
|
|
4147
|
-
}
|
|
4148
|
-
function Yt(e, t) {
|
|
4149
|
-
wa(Rl, e, t);
|
|
4150
|
-
}
|
|
4151
|
-
function Nl(e, t) {
|
|
4152
|
-
wa(_l, e, t);
|
|
4153
|
-
}
|
|
4154
|
-
Yt.preMessage = Ml;
|
|
4155
|
-
Yt.resetWarned = $l;
|
|
4156
|
-
Yt.noteOnce = Nl;
|
|
4157
|
-
function jl(e) {
|
|
4158
|
-
return e.replace(/-(.)/g, function(t, r) {
|
|
4159
|
-
return r.toUpperCase();
|
|
4160
|
-
});
|
|
4161
|
-
}
|
|
4162
|
-
function Ll(e, t) {
|
|
4163
|
-
Yt(e, "[@ant-design/icons] ".concat(t));
|
|
4164
|
-
}
|
|
4165
|
-
function ro(e) {
|
|
4166
|
-
return De(e) === "object" && typeof e.name == "string" && typeof e.theme == "string" && (De(e.icon) === "object" || typeof e.icon == "function");
|
|
4167
|
-
}
|
|
4168
|
-
function no() {
|
|
4169
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4170
|
-
return Object.keys(e).reduce(function(t, r) {
|
|
4171
|
-
var n = e[r];
|
|
4172
|
-
switch (r) {
|
|
4173
|
-
case "class":
|
|
4174
|
-
t.className = n, delete t.class;
|
|
4175
|
-
break;
|
|
4176
|
-
default:
|
|
4177
|
-
delete t[r], t[jl(r)] = n;
|
|
4178
|
-
}
|
|
4179
|
-
return t;
|
|
4180
|
-
}, {});
|
|
4181
|
-
}
|
|
4182
|
-
function Vr(e, t, r) {
|
|
4183
|
-
return r ? /* @__PURE__ */ Qe.createElement(e.tag, Oe(Oe({
|
|
4184
|
-
key: t
|
|
4185
|
-
}, no(e.attrs)), r), (e.children || []).map(function(n, o) {
|
|
4186
|
-
return Vr(n, "".concat(t, "-").concat(e.tag, "-").concat(o));
|
|
4187
|
-
})) : /* @__PURE__ */ Qe.createElement(e.tag, Oe({
|
|
4188
|
-
key: t
|
|
4189
|
-
}, no(e.attrs)), (e.children || []).map(function(n, o) {
|
|
4190
|
-
return Vr(n, "".concat(t, "-").concat(e.tag, "-").concat(o));
|
|
4191
|
-
}));
|
|
4192
|
-
}
|
|
4193
|
-
function Oa(e) {
|
|
4194
|
-
return He(e)[0];
|
|
4195
|
-
}
|
|
4196
|
-
function ka(e) {
|
|
4197
|
-
return e ? Array.isArray(e) ? e : [e] : [];
|
|
4198
|
-
}
|
|
4199
|
-
var Il = `
|
|
4200
|
-
.anticon {
|
|
4201
|
-
display: inline-block;
|
|
4202
|
-
color: inherit;
|
|
4203
|
-
font-style: normal;
|
|
4204
|
-
line-height: 0;
|
|
4205
|
-
text-align: center;
|
|
4206
|
-
text-transform: none;
|
|
4207
|
-
vertical-align: -0.125em;
|
|
4208
|
-
text-rendering: optimizeLegibility;
|
|
4209
|
-
-webkit-font-smoothing: antialiased;
|
|
4210
|
-
-moz-osx-font-smoothing: grayscale;
|
|
4211
|
-
}
|
|
4212
|
-
|
|
4213
|
-
.anticon > * {
|
|
4214
|
-
line-height: 1;
|
|
4215
|
-
}
|
|
4216
|
-
|
|
4217
|
-
.anticon svg {
|
|
4218
|
-
display: inline-block;
|
|
4219
|
-
}
|
|
4220
|
-
|
|
4221
|
-
.anticon::before {
|
|
4222
|
-
display: none;
|
|
4223
|
-
}
|
|
4224
|
-
|
|
4225
|
-
.anticon .anticon-icon {
|
|
4226
|
-
display: block;
|
|
4227
|
-
}
|
|
4228
|
-
|
|
4229
|
-
.anticon[tabindex] {
|
|
4230
|
-
cursor: pointer;
|
|
4231
|
-
}
|
|
4232
|
-
|
|
4233
|
-
.anticon-spin::before,
|
|
4234
|
-
.anticon-spin {
|
|
4235
|
-
display: inline-block;
|
|
4236
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
4237
|
-
animation: loadingCircle 1s infinite linear;
|
|
4238
|
-
}
|
|
4239
|
-
|
|
4240
|
-
@-webkit-keyframes loadingCircle {
|
|
4241
|
-
100% {
|
|
4242
|
-
-webkit-transform: rotate(360deg);
|
|
4243
|
-
transform: rotate(360deg);
|
|
4244
|
-
}
|
|
4245
|
-
}
|
|
4246
|
-
|
|
4247
|
-
@keyframes loadingCircle {
|
|
4248
|
-
100% {
|
|
4249
|
-
-webkit-transform: rotate(360deg);
|
|
4250
|
-
transform: rotate(360deg);
|
|
4251
|
-
}
|
|
4252
|
-
}
|
|
4253
|
-
`, Hl = function(t) {
|
|
4254
|
-
var r = Ie(tn), n = r.csp, o = r.prefixCls, a = Il;
|
|
4255
|
-
o && (a = a.replace(/anticon/g, o)), Pe(function() {
|
|
4256
|
-
var i = t.current, c = Al(i);
|
|
4257
|
-
kl(a, "@ant-design-icons", {
|
|
4258
|
-
prepend: !0,
|
|
4259
|
-
csp: n,
|
|
4260
|
-
attachTo: c
|
|
4261
|
-
});
|
|
4262
|
-
}, []);
|
|
4263
|
-
}, Dl = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], dt = {
|
|
4264
|
-
primaryColor: "#333",
|
|
4265
|
-
secondaryColor: "#E6E6E6",
|
|
4266
|
-
calculated: !1
|
|
4267
|
-
};
|
|
4268
|
-
function Bl(e) {
|
|
4269
|
-
var t = e.primaryColor, r = e.secondaryColor;
|
|
4270
|
-
dt.primaryColor = t, dt.secondaryColor = r || Oa(t), dt.calculated = !!r;
|
|
4271
|
-
}
|
|
4272
|
-
function zl() {
|
|
4273
|
-
return Oe({}, dt);
|
|
4274
|
-
}
|
|
4275
|
-
var Kt = function(t) {
|
|
4276
|
-
var r = t.icon, n = t.className, o = t.onClick, a = t.style, i = t.primaryColor, c = t.secondaryColor, s = Sa(t, Dl), l = g.useRef(), f = dt;
|
|
4277
|
-
if (i && (f = {
|
|
4278
|
-
primaryColor: i,
|
|
4279
|
-
secondaryColor: c || Oa(i)
|
|
4280
|
-
}), Hl(l), Ll(ro(r), "icon should be icon definiton, but got ".concat(r)), !ro(r))
|
|
4281
|
-
return null;
|
|
4282
|
-
var u = r;
|
|
4283
|
-
return u && typeof u.icon == "function" && (u = Oe(Oe({}, u), {}, {
|
|
4284
|
-
icon: u.icon(f.primaryColor, f.secondaryColor)
|
|
4285
|
-
})), Vr(u.icon, "svg-".concat(u.name), Oe(Oe({
|
|
4286
|
-
className: n,
|
|
4287
|
-
onClick: o,
|
|
4288
|
-
style: a,
|
|
4289
|
-
"data-icon": u.name,
|
|
4290
|
-
width: "1em",
|
|
4291
|
-
height: "1em",
|
|
4292
|
-
fill: "currentColor",
|
|
4293
|
-
"aria-hidden": "true"
|
|
4294
|
-
}, s), {}, {
|
|
4295
|
-
ref: l
|
|
4296
|
-
}));
|
|
4297
|
-
};
|
|
4298
|
-
Kt.displayName = "IconReact";
|
|
4299
|
-
Kt.getTwoToneColors = zl;
|
|
4300
|
-
Kt.setTwoToneColors = Bl;
|
|
4301
|
-
const ln = Kt;
|
|
4302
|
-
function Pa(e) {
|
|
4303
|
-
var t = ka(e), r = ya(t, 2), n = r[0], o = r[1];
|
|
4304
|
-
return ln.setTwoToneColors({
|
|
4305
|
-
primaryColor: n,
|
|
4306
|
-
secondaryColor: o
|
|
4307
|
-
});
|
|
4308
|
-
}
|
|
4309
|
-
function Fl() {
|
|
4310
|
-
var e = ln.getTwoToneColors();
|
|
4311
|
-
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
4312
|
-
}
|
|
4313
|
-
var Wl = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
4314
|
-
Pa(as.primary);
|
|
4315
|
-
var qt = /* @__PURE__ */ g.forwardRef(function(e, t) {
|
|
4316
|
-
var r, n = e.className, o = e.icon, a = e.spin, i = e.rotate, c = e.tabIndex, s = e.onClick, l = e.twoToneColor, f = Sa(e, Wl), u = g.useContext(tn), v = u.prefixCls, h = v === void 0 ? "anticon" : v, b = u.rootClassName, p = Je(b, h, (r = {}, zr(r, "".concat(h, "-").concat(o.name), !!o.name), zr(r, "".concat(h, "-spin"), !!a || o.name === "loading"), r), n), d = c;
|
|
4317
|
-
d === void 0 && s && (d = -1);
|
|
4318
|
-
var S = i ? {
|
|
4319
|
-
msTransform: "rotate(".concat(i, "deg)"),
|
|
4320
|
-
transform: "rotate(".concat(i, "deg)")
|
|
4321
|
-
} : void 0, m = ka(l), w = ya(m, 2), O = w[0], C = w[1];
|
|
4322
|
-
return /* @__PURE__ */ g.createElement("span", et({
|
|
4323
|
-
role: "img",
|
|
4324
|
-
"aria-label": o.name
|
|
4325
|
-
}, f, {
|
|
4326
|
-
ref: t,
|
|
4327
|
-
tabIndex: d,
|
|
4328
|
-
onClick: s,
|
|
4329
|
-
className: p
|
|
4330
|
-
}), /* @__PURE__ */ g.createElement(ln, {
|
|
4331
|
-
icon: o,
|
|
4332
|
-
primaryColor: O,
|
|
4333
|
-
secondaryColor: C,
|
|
4334
|
-
style: S
|
|
4335
|
-
}));
|
|
4336
|
-
});
|
|
4337
|
-
qt.displayName = "AntdIcon";
|
|
4338
|
-
qt.getTwoToneColor = Fl;
|
|
4339
|
-
qt.setTwoToneColor = Pa;
|
|
4340
|
-
const un = qt;
|
|
4341
|
-
var Vl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" };
|
|
4342
|
-
const Ul = Vl;
|
|
4343
|
-
var Aa = function(t, r) {
|
|
4344
|
-
return /* @__PURE__ */ g.createElement(un, et({}, t, {
|
|
4345
|
-
ref: r,
|
|
4346
|
-
icon: Ul
|
|
4347
|
-
}));
|
|
4348
|
-
};
|
|
4349
|
-
process.env.NODE_ENV !== "production" && (Aa.displayName = "RightOutlined");
|
|
4350
|
-
const oo = /* @__PURE__ */ g.forwardRef(Aa);
|
|
4351
|
-
var Xl = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" };
|
|
4352
|
-
const Gl = Xl;
|
|
4353
|
-
var Ma = function(t, r) {
|
|
4354
|
-
return /* @__PURE__ */ g.createElement(un, et({}, t, {
|
|
4355
|
-
ref: r,
|
|
4356
|
-
icon: Gl
|
|
4357
|
-
}));
|
|
4358
|
-
};
|
|
4359
|
-
process.env.NODE_ENV !== "production" && (Ma.displayName = "BarsOutlined");
|
|
4360
|
-
const Yl = /* @__PURE__ */ g.forwardRef(Ma);
|
|
4361
|
-
var Kl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" };
|
|
4362
|
-
const ql = Kl;
|
|
4363
|
-
var Ra = function(t, r) {
|
|
4364
|
-
return /* @__PURE__ */ g.createElement(un, et({}, t, {
|
|
4365
|
-
ref: r,
|
|
4366
|
-
icon: ql
|
|
4367
|
-
}));
|
|
4368
|
-
};
|
|
4369
|
-
process.env.NODE_ENV !== "production" && (Ra.displayName = "LeftOutlined");
|
|
4370
|
-
const ao = /* @__PURE__ */ g.forwardRef(Ra), Ql = (e) => !isNaN(parseFloat(e)) && isFinite(e), Jl = Ql, _a = /* @__PURE__ */ g.createContext({
|
|
4371
|
-
siderHook: {
|
|
4372
|
-
addSider: () => null,
|
|
4373
|
-
removeSider: () => null
|
|
4374
|
-
}
|
|
4375
|
-
});
|
|
4376
|
-
var Zl = globalThis && globalThis.__rest || function(e, t) {
|
|
4377
|
-
var r = {};
|
|
4378
|
-
for (var n in e)
|
|
4379
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4380
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
4381
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
4382
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
4383
|
-
return r;
|
|
4384
|
-
};
|
|
4385
|
-
const io = {
|
|
4386
|
-
xs: "479.98px",
|
|
4387
|
-
sm: "575.98px",
|
|
4388
|
-
md: "767.98px",
|
|
4389
|
-
lg: "991.98px",
|
|
4390
|
-
xl: "1199.98px",
|
|
4391
|
-
xxl: "1599.98px"
|
|
4392
|
-
}, eu = /* @__PURE__ */ g.createContext({}), tu = (() => {
|
|
4393
|
-
let e = 0;
|
|
4394
|
-
return function() {
|
|
4395
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
4396
|
-
return e += 1, `${t}${e}`;
|
|
4397
|
-
};
|
|
4398
|
-
})(), $a = /* @__PURE__ */ g.forwardRef((e, t) => {
|
|
4399
|
-
const {
|
|
4400
|
-
prefixCls: r,
|
|
4401
|
-
className: n,
|
|
4402
|
-
trigger: o,
|
|
4403
|
-
children: a,
|
|
4404
|
-
defaultCollapsed: i = !1,
|
|
4405
|
-
theme: c = "dark",
|
|
4406
|
-
style: s = {},
|
|
4407
|
-
collapsible: l = !1,
|
|
4408
|
-
reverseArrow: f = !1,
|
|
4409
|
-
width: u = 200,
|
|
4410
|
-
collapsedWidth: v = 80,
|
|
4411
|
-
zeroWidthTriggerStyle: h,
|
|
4412
|
-
breakpoint: b,
|
|
4413
|
-
onCollapse: p,
|
|
4414
|
-
onBreakpoint: d
|
|
4415
|
-
} = e, S = Zl(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
4416
|
-
siderHook: m
|
|
4417
|
-
} = Ie(_a), [w, O] = hn("collapsed" in e ? e.collapsed : i), [C, T] = hn(!1);
|
|
4418
|
-
Pe(() => {
|
|
4419
|
-
"collapsed" in e && O(e.collapsed);
|
|
4420
|
-
}, [e.collapsed]);
|
|
4421
|
-
const y = (x, A) => {
|
|
4422
|
-
"collapsed" in e || O(x), p == null || p(x, A);
|
|
4423
|
-
}, M = ke();
|
|
4424
|
-
M.current = (x) => {
|
|
4425
|
-
T(x.matches), d == null || d(x.matches), w !== x.matches && y(x.matches, "responsive");
|
|
4426
|
-
}, Pe(() => {
|
|
4427
|
-
function x(P) {
|
|
4428
|
-
return M.current(P);
|
|
4429
|
-
}
|
|
4430
|
-
let A;
|
|
4431
|
-
if (typeof window < "u") {
|
|
4432
|
-
const {
|
|
4433
|
-
matchMedia: P
|
|
4434
|
-
} = window;
|
|
4435
|
-
if (P && b && b in io) {
|
|
4436
|
-
A = P(`(max-width: ${io[b]})`);
|
|
4437
|
-
try {
|
|
4438
|
-
A.addEventListener("change", x);
|
|
4439
|
-
} catch {
|
|
4440
|
-
A.addListener(x);
|
|
4441
|
-
}
|
|
4442
|
-
x(A);
|
|
4443
|
-
}
|
|
4444
|
-
}
|
|
4445
|
-
return () => {
|
|
4446
|
-
try {
|
|
4447
|
-
A == null || A.removeEventListener("change", x);
|
|
4448
|
-
} catch {
|
|
4449
|
-
A == null || A.removeListener(x);
|
|
4450
|
-
}
|
|
4451
|
-
};
|
|
4452
|
-
}, [b]), Pe(() => {
|
|
4453
|
-
const x = tu("ant-sider-");
|
|
4454
|
-
return m.addSider(x), () => m.removeSider(x);
|
|
4455
|
-
}, []);
|
|
4456
|
-
const I = () => {
|
|
4457
|
-
y(!w, "clickTrigger");
|
|
4458
|
-
}, {
|
|
4459
|
-
getPrefixCls: k
|
|
4460
|
-
} = Ie(Ae), $ = () => {
|
|
4461
|
-
const x = k("layout-sider", r), A = ho(S, ["collapsed"]), P = w ? v : u, L = Jl(P) ? `${P}px` : String(P), B = parseFloat(String(v || 0)) === 0 ? /* @__PURE__ */ g.createElement("span", {
|
|
4462
|
-
onClick: I,
|
|
4463
|
-
className: Je(`${x}-zero-width-trigger`, `${x}-zero-width-trigger-${f ? "right" : "left"}`),
|
|
4464
|
-
style: h
|
|
4465
|
-
}, o || /* @__PURE__ */ g.createElement(Yl, null)) : null, F = {
|
|
4466
|
-
expanded: f ? /* @__PURE__ */ g.createElement(oo, null) : /* @__PURE__ */ g.createElement(ao, null),
|
|
4467
|
-
collapsed: f ? /* @__PURE__ */ g.createElement(ao, null) : /* @__PURE__ */ g.createElement(oo, null)
|
|
4468
|
-
}[w ? "collapsed" : "expanded"], Y = o !== null ? B || /* @__PURE__ */ g.createElement("div", {
|
|
4469
|
-
className: `${x}-trigger`,
|
|
4470
|
-
onClick: I,
|
|
4471
|
-
style: {
|
|
4472
|
-
width: L
|
|
4473
|
-
}
|
|
4474
|
-
}, o || F) : null, W = Object.assign(Object.assign({}, s), {
|
|
4475
|
-
flex: `0 0 ${L}`,
|
|
4476
|
-
maxWidth: L,
|
|
4477
|
-
minWidth: L,
|
|
4478
|
-
width: L
|
|
4479
|
-
}), te = Je(x, `${x}-${c}`, {
|
|
4480
|
-
[`${x}-collapsed`]: !!w,
|
|
4481
|
-
[`${x}-has-trigger`]: l && o !== null && !B,
|
|
4482
|
-
[`${x}-below`]: !!C,
|
|
4483
|
-
[`${x}-zero-width`]: parseFloat(L) === 0
|
|
4484
|
-
}, n);
|
|
4485
|
-
return /* @__PURE__ */ g.createElement("aside", Object.assign({
|
|
4486
|
-
className: te
|
|
4487
|
-
}, A, {
|
|
4488
|
-
style: W,
|
|
4489
|
-
ref: t
|
|
4490
|
-
}), /* @__PURE__ */ g.createElement("div", {
|
|
4491
|
-
className: `${x}-children`
|
|
4492
|
-
}, a), l || C && B ? Y : null);
|
|
4493
|
-
}, R = g.useMemo(() => ({
|
|
4494
|
-
siderCollapsed: w
|
|
4495
|
-
}), [w]);
|
|
4496
|
-
return /* @__PURE__ */ g.createElement(eu.Provider, {
|
|
4497
|
-
value: R
|
|
4498
|
-
}, $());
|
|
4499
|
-
});
|
|
4500
|
-
process.env.NODE_ENV !== "production" && ($a.displayName = "Sider");
|
|
4501
|
-
const Na = $a;
|
|
4502
|
-
function ru(e, t, r) {
|
|
4503
|
-
return typeof r == "boolean" ? r : e.length ? !0 : vr(t).some((o) => o.type === Na);
|
|
4504
|
-
}
|
|
4505
|
-
const nu = (e) => {
|
|
4506
|
-
const {
|
|
4507
|
-
componentCls: t,
|
|
4508
|
-
bodyBg: r,
|
|
4509
|
-
lightSiderBg: n,
|
|
4510
|
-
lightTriggerBg: o,
|
|
4511
|
-
lightTriggerColor: a
|
|
4512
|
-
} = e;
|
|
4513
|
-
return {
|
|
4514
|
-
[`${t}-sider-light`]: {
|
|
4515
|
-
background: n,
|
|
4516
|
-
[`${t}-sider-trigger`]: {
|
|
4517
|
-
color: a,
|
|
4518
|
-
background: o
|
|
4519
|
-
},
|
|
4520
|
-
[`${t}-sider-zero-width-trigger`]: {
|
|
4521
|
-
color: a,
|
|
4522
|
-
background: o,
|
|
4523
|
-
border: `1px solid ${r}`,
|
|
4524
|
-
borderInlineStart: 0
|
|
4525
|
-
}
|
|
4526
|
-
}
|
|
4527
|
-
};
|
|
4528
|
-
}, ou = nu, au = (e) => {
|
|
4529
|
-
const {
|
|
4530
|
-
antCls: t,
|
|
4531
|
-
// .ant
|
|
4532
|
-
componentCls: r,
|
|
4533
|
-
// .ant-layout
|
|
4534
|
-
colorText: n,
|
|
4535
|
-
triggerColor: o,
|
|
4536
|
-
footerBg: a,
|
|
4537
|
-
triggerBg: i,
|
|
4538
|
-
headerHeight: c,
|
|
4539
|
-
headerPadding: s,
|
|
4540
|
-
headerColor: l,
|
|
4541
|
-
footerPadding: f,
|
|
4542
|
-
triggerHeight: u,
|
|
4543
|
-
zeroTriggerHeight: v,
|
|
4544
|
-
zeroTriggerWidth: h,
|
|
4545
|
-
motionDurationMid: b,
|
|
4546
|
-
motionDurationSlow: p,
|
|
4547
|
-
fontSize: d,
|
|
4548
|
-
borderRadius: S,
|
|
4549
|
-
bodyBg: m,
|
|
4550
|
-
headerBg: w,
|
|
4551
|
-
siderBg: O
|
|
4552
|
-
} = e;
|
|
4553
|
-
return {
|
|
4554
|
-
[r]: Object.assign(Object.assign({
|
|
4555
|
-
display: "flex",
|
|
4556
|
-
flex: "auto",
|
|
4557
|
-
flexDirection: "column",
|
|
4558
|
-
/* fix firefox can't set height smaller than content on flex item */
|
|
4559
|
-
minHeight: 0,
|
|
4560
|
-
background: m,
|
|
4561
|
-
"&, *": {
|
|
4562
|
-
boxSizing: "border-box"
|
|
4563
|
-
},
|
|
4564
|
-
[`&${r}-has-sider`]: {
|
|
4565
|
-
flexDirection: "row",
|
|
4566
|
-
[`> ${r}, > ${r}-content`]: {
|
|
4567
|
-
// https://segmentfault.com/a/1190000019498300
|
|
4568
|
-
width: 0
|
|
4569
|
-
}
|
|
4570
|
-
},
|
|
4571
|
-
[`${r}-header, &${r}-footer`]: {
|
|
4572
|
-
flex: "0 0 auto"
|
|
4573
|
-
},
|
|
4574
|
-
[`${r}-sider`]: {
|
|
4575
|
-
position: "relative",
|
|
4576
|
-
// fix firefox can't set width smaller than content on flex item
|
|
4577
|
-
minWidth: 0,
|
|
4578
|
-
background: O,
|
|
4579
|
-
transition: `all ${b}, background 0s`,
|
|
4580
|
-
"&-children": {
|
|
4581
|
-
height: "100%",
|
|
4582
|
-
// Hack for fixing margin collapse bug
|
|
4583
|
-
// https://github.com/ant-design/ant-design/issues/7967
|
|
4584
|
-
// solution from https://stackoverflow.com/a/33132624/3040605
|
|
4585
|
-
marginTop: -0.1,
|
|
4586
|
-
paddingTop: 0.1,
|
|
4587
|
-
[`${t}-menu${t}-menu-inline-collapsed`]: {
|
|
4588
|
-
width: "auto"
|
|
4589
|
-
}
|
|
4590
|
-
},
|
|
4591
|
-
"&-has-trigger": {
|
|
4592
|
-
paddingBottom: u
|
|
4593
|
-
},
|
|
4594
|
-
"&-right": {
|
|
4595
|
-
order: 1
|
|
4596
|
-
},
|
|
4597
|
-
"&-trigger": {
|
|
4598
|
-
position: "fixed",
|
|
4599
|
-
bottom: 0,
|
|
4600
|
-
zIndex: 1,
|
|
4601
|
-
height: u,
|
|
4602
|
-
color: o,
|
|
4603
|
-
lineHeight: `${u}px`,
|
|
4604
|
-
textAlign: "center",
|
|
4605
|
-
background: i,
|
|
4606
|
-
cursor: "pointer",
|
|
4607
|
-
transition: `all ${b}`
|
|
4608
|
-
},
|
|
4609
|
-
"&-zero-width": {
|
|
4610
|
-
"> *": {
|
|
4611
|
-
overflow: "hidden"
|
|
4612
|
-
},
|
|
4613
|
-
"&-trigger": {
|
|
4614
|
-
position: "absolute",
|
|
4615
|
-
top: c,
|
|
4616
|
-
insetInlineEnd: -h,
|
|
4617
|
-
zIndex: 1,
|
|
4618
|
-
width: h,
|
|
4619
|
-
height: v,
|
|
4620
|
-
color: o,
|
|
4621
|
-
fontSize: e.fontSizeXL,
|
|
4622
|
-
display: "flex",
|
|
4623
|
-
alignItems: "center",
|
|
4624
|
-
justifyContent: "center",
|
|
4625
|
-
background: O,
|
|
4626
|
-
borderStartStartRadius: 0,
|
|
4627
|
-
borderStartEndRadius: S,
|
|
4628
|
-
borderEndEndRadius: S,
|
|
4629
|
-
borderEndStartRadius: 0,
|
|
4630
|
-
cursor: "pointer",
|
|
4631
|
-
transition: `background ${p} ease`,
|
|
4632
|
-
"&::after": {
|
|
4633
|
-
position: "absolute",
|
|
4634
|
-
inset: 0,
|
|
4635
|
-
background: "transparent",
|
|
4636
|
-
transition: `all ${p}`,
|
|
4637
|
-
content: '""'
|
|
4638
|
-
},
|
|
4639
|
-
"&:hover::after": {
|
|
4640
|
-
background: "rgba(255, 255, 255, 0.2)"
|
|
4641
|
-
},
|
|
4642
|
-
"&-right": {
|
|
4643
|
-
insetInlineStart: -h,
|
|
4644
|
-
borderStartStartRadius: S,
|
|
4645
|
-
borderStartEndRadius: 0,
|
|
4646
|
-
borderEndEndRadius: 0,
|
|
4647
|
-
borderEndStartRadius: S
|
|
4648
|
-
}
|
|
4649
|
-
}
|
|
4650
|
-
}
|
|
4651
|
-
}
|
|
4652
|
-
}, ou(e)), {
|
|
4653
|
-
// RTL
|
|
4654
|
-
"&-rtl": {
|
|
4655
|
-
direction: "rtl"
|
|
4656
|
-
}
|
|
4657
|
-
}),
|
|
4658
|
-
// ==================== Header ====================
|
|
4659
|
-
[`${r}-header`]: {
|
|
4660
|
-
height: c,
|
|
4661
|
-
padding: s,
|
|
4662
|
-
color: l,
|
|
4663
|
-
lineHeight: `${c}px`,
|
|
4664
|
-
background: w,
|
|
4665
|
-
// Other components/menu/style/index.less line:686
|
|
4666
|
-
// Integration with header element so menu items have the same height
|
|
4667
|
-
[`${t}-menu`]: {
|
|
4668
|
-
lineHeight: "inherit"
|
|
4669
|
-
}
|
|
4670
|
-
},
|
|
4671
|
-
// ==================== Footer ====================
|
|
4672
|
-
[`${r}-footer`]: {
|
|
4673
|
-
padding: f,
|
|
4674
|
-
color: n,
|
|
4675
|
-
fontSize: d,
|
|
4676
|
-
background: a
|
|
4677
|
-
},
|
|
4678
|
-
// =================== Content ====================
|
|
4679
|
-
[`${r}-content`]: {
|
|
4680
|
-
flex: "auto",
|
|
4681
|
-
// fix firefox can't set height smaller than content on flex item
|
|
4682
|
-
minHeight: 0
|
|
4683
|
-
}
|
|
4684
|
-
};
|
|
4685
|
-
}, ja = Ls("Layout", (e) => [au(e)], (e) => {
|
|
4686
|
-
const {
|
|
4687
|
-
colorBgLayout: t,
|
|
4688
|
-
controlHeight: r,
|
|
4689
|
-
controlHeightLG: n,
|
|
4690
|
-
colorText: o,
|
|
4691
|
-
controlHeightSM: a,
|
|
4692
|
-
marginXXS: i,
|
|
4693
|
-
colorTextLightSolid: c,
|
|
4694
|
-
colorBgContainer: s
|
|
4695
|
-
} = e, l = n * 1.25;
|
|
4696
|
-
return {
|
|
4697
|
-
// Deprecated
|
|
4698
|
-
colorBgHeader: "#001529",
|
|
4699
|
-
colorBgBody: t,
|
|
4700
|
-
colorBgTrigger: "#002140",
|
|
4701
|
-
bodyBg: t,
|
|
4702
|
-
headerBg: "#001529",
|
|
4703
|
-
headerHeight: r * 2,
|
|
4704
|
-
headerPadding: `0 ${l}px`,
|
|
4705
|
-
headerColor: o,
|
|
4706
|
-
footerPadding: `${a}px ${l}px`,
|
|
4707
|
-
footerBg: t,
|
|
4708
|
-
siderBg: "#001529",
|
|
4709
|
-
triggerHeight: n + i * 2,
|
|
4710
|
-
triggerBg: "#002140",
|
|
4711
|
-
triggerColor: c,
|
|
4712
|
-
zeroTriggerWidth: n,
|
|
4713
|
-
zeroTriggerHeight: n,
|
|
4714
|
-
lightSiderBg: s,
|
|
4715
|
-
lightTriggerBg: s,
|
|
4716
|
-
lightTriggerColor: o
|
|
4717
|
-
};
|
|
4718
|
-
}, {
|
|
4719
|
-
deprecatedTokens: [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]]
|
|
4720
|
-
});
|
|
4721
|
-
var La = globalThis && globalThis.__rest || function(e, t) {
|
|
4722
|
-
var r = {};
|
|
4723
|
-
for (var n in e)
|
|
4724
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4725
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
4726
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
4727
|
-
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
4728
|
-
return r;
|
|
4729
|
-
};
|
|
4730
|
-
function Qt(e) {
|
|
4731
|
-
let {
|
|
4732
|
-
suffixCls: t,
|
|
4733
|
-
tagName: r,
|
|
4734
|
-
displayName: n
|
|
4735
|
-
} = e;
|
|
4736
|
-
return (o) => {
|
|
4737
|
-
const a = /* @__PURE__ */ g.forwardRef((i, c) => /* @__PURE__ */ g.createElement(o, Object.assign({
|
|
4738
|
-
ref: c,
|
|
4739
|
-
suffixCls: t,
|
|
4740
|
-
tagName: r
|
|
4741
|
-
}, i)));
|
|
4742
|
-
return process.env.NODE_ENV !== "production" && (a.displayName = n), a;
|
|
4743
|
-
};
|
|
4744
|
-
}
|
|
4745
|
-
const fn = /* @__PURE__ */ g.forwardRef((e, t) => {
|
|
4746
|
-
const {
|
|
4747
|
-
prefixCls: r,
|
|
4748
|
-
suffixCls: n,
|
|
4749
|
-
className: o,
|
|
4750
|
-
tagName: a
|
|
4751
|
-
} = e, i = La(e, ["prefixCls", "suffixCls", "className", "tagName"]), {
|
|
4752
|
-
getPrefixCls: c
|
|
4753
|
-
} = g.useContext(Ae), s = c("layout", r), [l, f] = ja(s), u = n ? `${s}-${n}` : s;
|
|
4754
|
-
return l(/* @__PURE__ */ g.createElement(a, Object.assign({
|
|
4755
|
-
className: Je(r || u, o, f),
|
|
4756
|
-
ref: t
|
|
4757
|
-
}, i)));
|
|
4758
|
-
}), iu = /* @__PURE__ */ g.forwardRef((e, t) => {
|
|
4759
|
-
const {
|
|
4760
|
-
direction: r
|
|
4761
|
-
} = g.useContext(Ae), [n, o] = g.useState([]), {
|
|
4762
|
-
prefixCls: a,
|
|
4763
|
-
className: i,
|
|
4764
|
-
rootClassName: c,
|
|
4765
|
-
children: s,
|
|
4766
|
-
hasSider: l,
|
|
4767
|
-
tagName: f,
|
|
4768
|
-
style: u
|
|
4769
|
-
} = e, v = La(e, ["prefixCls", "className", "rootClassName", "children", "hasSider", "tagName", "style"]), h = ho(v, ["suffixCls"]), {
|
|
4770
|
-
getPrefixCls: b,
|
|
4771
|
-
layout: p
|
|
4772
|
-
} = g.useContext(Ae), d = b("layout", a), S = ru(n, s, l), [m, w] = ja(d), O = Je(d, {
|
|
4773
|
-
[`${d}-has-sider`]: S,
|
|
4774
|
-
[`${d}-rtl`]: r === "rtl"
|
|
4775
|
-
}, p == null ? void 0 : p.className, i, c, w), C = g.useMemo(() => ({
|
|
4776
|
-
siderHook: {
|
|
4777
|
-
addSider: (T) => {
|
|
4778
|
-
o((y) => [].concat(Ee(y), [T]));
|
|
4779
|
-
},
|
|
4780
|
-
removeSider: (T) => {
|
|
4781
|
-
o((y) => y.filter((M) => M !== T));
|
|
4782
|
-
}
|
|
4783
|
-
}
|
|
4784
|
-
}), []);
|
|
4785
|
-
return m(/* @__PURE__ */ g.createElement(_a.Provider, {
|
|
4786
|
-
value: C
|
|
4787
|
-
}, /* @__PURE__ */ g.createElement(f, Object.assign({
|
|
4788
|
-
ref: t,
|
|
4789
|
-
className: O,
|
|
4790
|
-
style: Object.assign(Object.assign({}, p == null ? void 0 : p.style), u)
|
|
4791
|
-
}, h), s)));
|
|
4792
|
-
}), cu = Qt({
|
|
4793
|
-
tagName: "div",
|
|
4794
|
-
displayName: "Layout"
|
|
4795
|
-
})(iu), su = Qt({
|
|
4796
|
-
suffixCls: "header",
|
|
4797
|
-
tagName: "header",
|
|
4798
|
-
displayName: "Header"
|
|
4799
|
-
})(fn), lu = Qt({
|
|
4800
|
-
suffixCls: "footer",
|
|
4801
|
-
tagName: "footer",
|
|
4802
|
-
displayName: "Footer"
|
|
4803
|
-
})(fn), uu = Qt({
|
|
4804
|
-
suffixCls: "content",
|
|
4805
|
-
tagName: "main",
|
|
4806
|
-
displayName: "Content"
|
|
4807
|
-
})(fn), fu = cu, bt = fu;
|
|
4808
|
-
bt.Header = su;
|
|
4809
|
-
bt.Footer = lu;
|
|
4810
|
-
bt.Content = uu;
|
|
4811
|
-
bt.Sider = Na;
|
|
4812
|
-
const yt = bt, du = ({ children: e }) => /* @__PURE__ */ qe(yt.Content, { children: e }), gu = ({ children: e }) => /* @__PURE__ */ qe(yt.Footer, { style: { textAlign: "center" }, children: e }), vu = ({ children: e }) => /* @__PURE__ */ qe(yt.Header, { children: e }), pu = ({ children: e }) => /* @__PURE__ */ qe(yt, { style: { minHeight: "100vh" }, children: e }), hu = ({
|
|
4813
|
-
children: e,
|
|
4814
|
-
direction: t,
|
|
4815
|
-
collapsed: r,
|
|
4816
|
-
collapsedWidth: n,
|
|
4817
|
-
iconUrl: o,
|
|
4818
|
-
brandImageUrl: a
|
|
4819
|
-
}) => {
|
|
4820
|
-
let i;
|
|
4821
|
-
return o && a && (i = /* @__PURE__ */ pn("div", { className: `logo-container ${r ? "collapsed" : ""}`, children: [
|
|
4822
|
-
/* @__PURE__ */ qe("img", { className: "logo", src: o, alt: "icon", width: 20, height: 20 }),
|
|
4823
|
-
/* @__PURE__ */ qe(
|
|
4824
|
-
"img",
|
|
4825
|
-
{
|
|
4826
|
-
className: "brand-image",
|
|
4827
|
-
src: a,
|
|
4828
|
-
alt: "brand-image",
|
|
4829
|
-
height: 20
|
|
4830
|
-
}
|
|
4831
|
-
)
|
|
4832
|
-
] })), /* @__PURE__ */ pn(
|
|
4833
|
-
yt.Sider,
|
|
4834
|
-
{
|
|
4835
|
-
collapsible: !0,
|
|
4836
|
-
collapsed: r,
|
|
4837
|
-
collapsedWidth: n,
|
|
4838
|
-
trigger: null,
|
|
4839
|
-
width: 250,
|
|
4840
|
-
className: `${t}`,
|
|
4841
|
-
children: [
|
|
4842
|
-
i,
|
|
4843
|
-
e
|
|
4844
|
-
]
|
|
4845
|
-
}
|
|
4846
|
-
);
|
|
4847
|
-
}, Su = Object.assign(pu, {
|
|
4848
|
-
Header: vu,
|
|
4849
|
-
Footer: gu,
|
|
4850
|
-
Content: du,
|
|
4851
|
-
Sider: hu
|
|
4852
|
-
});
|
|
4853
|
-
export {
|
|
4854
|
-
Su as Layout
|
|
4855
|
-
};
|