@yester/virtual-table 1.1.4 → 1.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/virtual-table.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as re from "react";
|
|
2
|
-
import Ye, { version as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
2
|
+
import Ye, { version as Pr, isValidElement as jr, forwardRef as Ar, useMemo as ye, memo as Jt, useState as Ie, useImperativeHandle as Mr, useEffect as Qe, createElement as It, useLayoutEffect as _t, useRef as ze, useCallback as ge } from "react";
|
|
3
|
+
import $t from "react-dom";
|
|
4
|
+
function zr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var ht = { exports: {} }, We = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +14,21 @@ var dt = { exports: {} }, We = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
17
|
+
var Lt;
|
|
18
|
+
function Ir() {
|
|
19
|
+
if (Lt)
|
|
20
20
|
return We;
|
|
21
|
-
|
|
21
|
+
Lt = 1;
|
|
22
22
|
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
-
function a(l, c
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
for (
|
|
27
|
-
n.call(
|
|
28
|
-
if (
|
|
29
|
-
for (
|
|
30
|
-
E[
|
|
31
|
-
return { $$typeof: t, type:
|
|
23
|
+
function a(h, l, c) {
|
|
24
|
+
var f, E = {}, b = null, I = null;
|
|
25
|
+
c !== void 0 && (b = "" + c), l.key !== void 0 && (b = "" + l.key), l.ref !== void 0 && (I = l.ref);
|
|
26
|
+
for (f in l)
|
|
27
|
+
n.call(l, f) && !s.hasOwnProperty(f) && (E[f] = l[f]);
|
|
28
|
+
if (h && h.defaultProps)
|
|
29
|
+
for (f in l = h.defaultProps, l)
|
|
30
|
+
E[f] === void 0 && (E[f] = l[f]);
|
|
31
|
+
return { $$typeof: t, type: h, key: b, ref: I, props: E, _owner: i.current };
|
|
32
32
|
}
|
|
33
33
|
return We.Fragment = r, We.jsx = a, We.jsxs = a, We;
|
|
34
34
|
}
|
|
@@ -42,57 +42,57 @@ var Ve = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"),
|
|
49
|
-
function
|
|
45
|
+
var kt;
|
|
46
|
+
function $r() {
|
|
47
|
+
return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
var e = Ye, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A = Symbol.iterator, x = "@@iterator";
|
|
49
|
+
function u(o) {
|
|
50
50
|
if (o === null || typeof o != "object")
|
|
51
51
|
return null;
|
|
52
|
-
var
|
|
53
|
-
return typeof
|
|
52
|
+
var d = A && o[A] || o[x];
|
|
53
|
+
return typeof d == "function" ? d : null;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
function
|
|
55
|
+
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
56
|
+
function P(o) {
|
|
57
57
|
{
|
|
58
|
-
for (var
|
|
59
|
-
|
|
60
|
-
J("error", o,
|
|
58
|
+
for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), L = 1; L < d; L++)
|
|
59
|
+
m[L - 1] = arguments[L];
|
|
60
|
+
J("error", o, m);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function J(o,
|
|
63
|
+
function J(o, d, m) {
|
|
64
64
|
{
|
|
65
|
-
var L =
|
|
66
|
-
|
|
67
|
-
var X =
|
|
68
|
-
return String(
|
|
65
|
+
var L = j.ReactDebugCurrentFrame, G = L.getStackAddendum();
|
|
66
|
+
G !== "" && (d += "%s", m = m.concat([G]));
|
|
67
|
+
var X = m.map(function(B) {
|
|
68
|
+
return String(B);
|
|
69
69
|
});
|
|
70
|
-
X.unshift("Warning: " +
|
|
70
|
+
X.unshift("Warning: " + d), Function.prototype.apply.call(console[o], console, X);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
var
|
|
74
|
-
|
|
73
|
+
var z = !1, N = !1, D = !1, k = !1, p = !1, F;
|
|
74
|
+
F = Symbol.for("react.module.reference");
|
|
75
75
|
function M(o) {
|
|
76
|
-
return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || p || o === i || o ===
|
|
76
|
+
return !!(typeof o == "string" || typeof o == "function" || o === n || o === s || p || o === i || o === c || o === f || k || o === I || z || N || D || typeof o == "object" && o !== null && (o.$$typeof === b || o.$$typeof === E || o.$$typeof === a || o.$$typeof === h || o.$$typeof === l || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
80
|
-
o.$$typeof ===
|
|
80
|
+
o.$$typeof === F || o.getModuleId !== void 0));
|
|
81
81
|
}
|
|
82
|
-
function W(o,
|
|
82
|
+
function W(o, d, m) {
|
|
83
83
|
var L = o.displayName;
|
|
84
84
|
if (L)
|
|
85
85
|
return L;
|
|
86
|
-
var
|
|
87
|
-
return
|
|
86
|
+
var G = d.displayName || d.name || "";
|
|
87
|
+
return G !== "" ? m + "(" + G + ")" : m;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function H(o) {
|
|
90
90
|
return o.displayName || "Context";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function K(o) {
|
|
93
93
|
if (o == null)
|
|
94
94
|
return null;
|
|
95
|
-
if (typeof o.tag == "number" &&
|
|
95
|
+
if (typeof o.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
96
96
|
return o.displayName || o.name || null;
|
|
97
97
|
if (typeof o == "string")
|
|
98
98
|
return o;
|
|
@@ -105,28 +105,28 @@ function Ir() {
|
|
|
105
105
|
return "Profiler";
|
|
106
106
|
case i:
|
|
107
107
|
return "StrictMode";
|
|
108
|
-
case
|
|
108
|
+
case c:
|
|
109
109
|
return "Suspense";
|
|
110
|
-
case
|
|
110
|
+
case f:
|
|
111
111
|
return "SuspenseList";
|
|
112
112
|
}
|
|
113
113
|
if (typeof o == "object")
|
|
114
114
|
switch (o.$$typeof) {
|
|
115
|
-
case
|
|
116
|
-
var
|
|
117
|
-
return
|
|
115
|
+
case h:
|
|
116
|
+
var d = o;
|
|
117
|
+
return H(d) + ".Consumer";
|
|
118
118
|
case a:
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
119
|
+
var m = o;
|
|
120
|
+
return H(m._context) + ".Provider";
|
|
121
|
+
case l:
|
|
122
122
|
return W(o, o.render, "ForwardRef");
|
|
123
123
|
case E:
|
|
124
124
|
var L = o.displayName || null;
|
|
125
|
-
return L !== null ? L :
|
|
126
|
-
case
|
|
127
|
-
var
|
|
125
|
+
return L !== null ? L : K(o.type) || "Memo";
|
|
126
|
+
case b: {
|
|
127
|
+
var G = o, X = G._payload, B = G._init;
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return K(B(X));
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
@@ -134,14 +134,14 @@ function Ir() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var te = Object.assign, he = 0, be, Te, _e, Ee, Se,
|
|
137
|
+
var te = Object.assign, he = 0, be, Te, _e, Ee, Se, g, C;
|
|
138
138
|
function w() {
|
|
139
139
|
}
|
|
140
140
|
w.__reactDisabledLog = !0;
|
|
141
|
-
function
|
|
141
|
+
function y() {
|
|
142
142
|
{
|
|
143
143
|
if (he === 0) {
|
|
144
|
-
be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group,
|
|
144
|
+
be = console.log, Te = console.info, _e = console.warn, Ee = console.error, Se = console.group, g = console.groupCollapsed, C = console.groupEnd;
|
|
145
145
|
var o = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
@@ -161,7 +161,7 @@ function Ir() {
|
|
|
161
161
|
he++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function v() {
|
|
165
165
|
{
|
|
166
166
|
if (he--, he === 0) {
|
|
167
167
|
var o = {
|
|
@@ -186,72 +186,72 @@ function Ir() {
|
|
|
186
186
|
value: Se
|
|
187
187
|
}),
|
|
188
188
|
groupCollapsed: te({}, o, {
|
|
189
|
-
value:
|
|
189
|
+
value: g
|
|
190
190
|
}),
|
|
191
191
|
groupEnd: te({}, o, {
|
|
192
192
|
value: C
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
he < 0 &&
|
|
196
|
+
he < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var O =
|
|
200
|
-
function
|
|
199
|
+
var O = j.ReactCurrentDispatcher, _;
|
|
200
|
+
function R(o, d, m) {
|
|
201
201
|
{
|
|
202
|
-
if (
|
|
202
|
+
if (_ === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
|
-
} catch (
|
|
206
|
-
var L =
|
|
207
|
-
|
|
205
|
+
} catch (G) {
|
|
206
|
+
var L = G.stack.trim().match(/\n( *(at )?)/);
|
|
207
|
+
_ = L && L[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
210
|
-
` +
|
|
210
|
+
` + _ + o;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var S = !1, $;
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
|
|
215
|
+
var Y = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
|
+
$ = new Y();
|
|
217
217
|
}
|
|
218
|
-
function ae(o,
|
|
219
|
-
if (!o ||
|
|
218
|
+
function ae(o, d) {
|
|
219
|
+
if (!o || S)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
222
|
-
var
|
|
223
|
-
if (
|
|
224
|
-
return
|
|
222
|
+
var m = $.get(o);
|
|
223
|
+
if (m !== void 0)
|
|
224
|
+
return m;
|
|
225
225
|
}
|
|
226
226
|
var L;
|
|
227
|
-
|
|
228
|
-
var
|
|
227
|
+
S = !0;
|
|
228
|
+
var G = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
230
|
var X;
|
|
231
|
-
X = O.current, O.current = null,
|
|
231
|
+
X = O.current, O.current = null, y();
|
|
232
232
|
try {
|
|
233
|
-
if (
|
|
234
|
-
var
|
|
233
|
+
if (d) {
|
|
234
|
+
var B = function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
};
|
|
237
|
-
if (Object.defineProperty(
|
|
237
|
+
if (Object.defineProperty(B.prototype, "props", {
|
|
238
238
|
set: function() {
|
|
239
239
|
throw Error();
|
|
240
240
|
}
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
242
|
try {
|
|
243
|
-
Reflect.construct(
|
|
243
|
+
Reflect.construct(B, []);
|
|
244
244
|
} catch (ve) {
|
|
245
245
|
L = ve;
|
|
246
246
|
}
|
|
247
|
-
Reflect.construct(o, [],
|
|
247
|
+
Reflect.construct(o, [], B);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
|
-
|
|
250
|
+
B.call();
|
|
251
251
|
} catch (ve) {
|
|
252
252
|
L = ve;
|
|
253
253
|
}
|
|
254
|
-
o.call(
|
|
254
|
+
o.call(B.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
@@ -263,89 +263,89 @@ function Ir() {
|
|
|
263
263
|
}
|
|
264
264
|
} catch (ve) {
|
|
265
265
|
if (ve && L && typeof ve.stack == "string") {
|
|
266
|
-
for (var
|
|
266
|
+
for (var V = ve.stack.split(`
|
|
267
267
|
`), de = L.stack.split(`
|
|
268
|
-
`), ne =
|
|
268
|
+
`), ne = V.length - 1, se = de.length - 1; ne >= 1 && se >= 0 && V[ne] !== de[se]; )
|
|
269
269
|
se--;
|
|
270
270
|
for (; ne >= 1 && se >= 0; ne--, se--)
|
|
271
|
-
if (
|
|
271
|
+
if (V[ne] !== de[se]) {
|
|
272
272
|
if (ne !== 1 || se !== 1)
|
|
273
273
|
do
|
|
274
|
-
if (ne--, se--, se < 0 ||
|
|
274
|
+
if (ne--, se--, se < 0 || V[ne] !== de[se]) {
|
|
275
275
|
var we = `
|
|
276
|
-
` +
|
|
277
|
-
return o.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", o.displayName)), typeof o == "function" &&
|
|
276
|
+
` + V[ne].replace(" at new ", " at ");
|
|
277
|
+
return o.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", o.displayName)), typeof o == "function" && $.set(o, we), we;
|
|
278
278
|
}
|
|
279
279
|
while (ne >= 1 && se >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} finally {
|
|
284
|
-
|
|
284
|
+
S = !1, O.current = X, v(), Error.prepareStackTrace = G;
|
|
285
285
|
}
|
|
286
|
-
var ke = o ? o.displayName || o.name : "", Me = ke ?
|
|
287
|
-
return typeof o == "function" &&
|
|
286
|
+
var ke = o ? o.displayName || o.name : "", Me = ke ? R(ke) : "";
|
|
287
|
+
return typeof o == "function" && $.set(o, Me), Me;
|
|
288
288
|
}
|
|
289
|
-
function le(o,
|
|
289
|
+
function le(o, d, m) {
|
|
290
290
|
return ae(o, !1);
|
|
291
291
|
}
|
|
292
292
|
function T(o) {
|
|
293
|
-
var
|
|
294
|
-
return !!(
|
|
293
|
+
var d = o.prototype;
|
|
294
|
+
return !!(d && d.isReactComponent);
|
|
295
295
|
}
|
|
296
|
-
function Q(o,
|
|
296
|
+
function Q(o, d, m) {
|
|
297
297
|
if (o == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof o == "function")
|
|
300
300
|
return ae(o, T(o));
|
|
301
301
|
if (typeof o == "string")
|
|
302
|
-
return
|
|
302
|
+
return R(o);
|
|
303
303
|
switch (o) {
|
|
304
|
+
case c:
|
|
305
|
+
return R("Suspense");
|
|
304
306
|
case f:
|
|
305
|
-
return
|
|
306
|
-
case h:
|
|
307
|
-
return S("SuspenseList");
|
|
307
|
+
return R("SuspenseList");
|
|
308
308
|
}
|
|
309
309
|
if (typeof o == "object")
|
|
310
310
|
switch (o.$$typeof) {
|
|
311
|
-
case
|
|
311
|
+
case l:
|
|
312
312
|
return le(o.render);
|
|
313
313
|
case E:
|
|
314
|
-
return Q(o.type,
|
|
315
|
-
case
|
|
316
|
-
var L = o,
|
|
314
|
+
return Q(o.type, d, m);
|
|
315
|
+
case b: {
|
|
316
|
+
var L = o, G = L._payload, X = L._init;
|
|
317
317
|
try {
|
|
318
|
-
return Q(X(
|
|
318
|
+
return Q(X(G), d, m);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var ee = Object.prototype.hasOwnProperty, fe = {},
|
|
325
|
+
var ee = Object.prototype.hasOwnProperty, fe = {}, $e = j.ReactDebugCurrentFrame;
|
|
326
326
|
function pe(o) {
|
|
327
327
|
if (o) {
|
|
328
|
-
var
|
|
329
|
-
|
|
328
|
+
var d = o._owner, m = Q(o.type, o._source, d ? d.type : null);
|
|
329
|
+
$e.setExtraStackFrame(m);
|
|
330
330
|
} else
|
|
331
|
-
|
|
331
|
+
$e.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function oe(o,
|
|
333
|
+
function oe(o, d, m, L, G) {
|
|
334
334
|
{
|
|
335
335
|
var X = Function.call.bind(ee);
|
|
336
|
-
for (var
|
|
337
|
-
if (X(o,
|
|
338
|
-
var
|
|
336
|
+
for (var B in o)
|
|
337
|
+
if (X(o, B)) {
|
|
338
|
+
var V = void 0;
|
|
339
339
|
try {
|
|
340
|
-
if (typeof o[
|
|
341
|
-
var de = Error((L || "React class") + ": " +
|
|
340
|
+
if (typeof o[B] != "function") {
|
|
341
|
+
var de = Error((L || "React class") + ": " + m + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
342
|
throw de.name = "Invariant Violation", de;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
V = o[B](d, B, L, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
345
|
} catch (ne) {
|
|
346
|
-
|
|
346
|
+
V = ne;
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
V && !(V instanceof Error) && (pe(G), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", m, B, typeof V), pe(null)), V instanceof Error && !(V.message in fe) && (fe[V.message] = !0, pe(G), P("Failed %s type: %s", m, V.message), pe(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
@@ -355,8 +355,8 @@ function Ir() {
|
|
|
355
355
|
}
|
|
356
356
|
function je(o) {
|
|
357
357
|
{
|
|
358
|
-
var
|
|
359
|
-
return
|
|
358
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, m = d && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
359
|
+
return m;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
function Ke(o) {
|
|
@@ -371,123 +371,123 @@ function Ir() {
|
|
|
371
371
|
}
|
|
372
372
|
function Ne(o) {
|
|
373
373
|
if (Ke(o))
|
|
374
|
-
return
|
|
374
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", je(o)), Ae(o);
|
|
375
375
|
}
|
|
376
|
-
var
|
|
376
|
+
var Ce = j.ReactCurrentOwner, fr = {
|
|
377
377
|
key: !0,
|
|
378
378
|
ref: !0,
|
|
379
379
|
__self: !0,
|
|
380
380
|
__source: !0
|
|
381
|
-
},
|
|
382
|
-
|
|
383
|
-
function
|
|
381
|
+
}, Ct, xt, tt;
|
|
382
|
+
tt = {};
|
|
383
|
+
function dr(o) {
|
|
384
384
|
if (ee.call(o, "ref")) {
|
|
385
|
-
var
|
|
386
|
-
if (
|
|
385
|
+
var d = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
386
|
+
if (d && d.isReactWarning)
|
|
387
387
|
return !1;
|
|
388
388
|
}
|
|
389
389
|
return o.ref !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function hr(o) {
|
|
392
392
|
if (ee.call(o, "key")) {
|
|
393
|
-
var
|
|
394
|
-
if (
|
|
393
|
+
var d = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
394
|
+
if (d && d.isReactWarning)
|
|
395
395
|
return !1;
|
|
396
396
|
}
|
|
397
397
|
return o.key !== void 0;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
if (typeof o.ref == "string" &&
|
|
401
|
-
var
|
|
402
|
-
|
|
399
|
+
function pr(o, d) {
|
|
400
|
+
if (typeof o.ref == "string" && Ce.current && d && Ce.current.stateNode !== d) {
|
|
401
|
+
var m = K(Ce.current.type);
|
|
402
|
+
tt[m] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', K(Ce.current.type), o.ref), tt[m] = !0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function vr(o, d) {
|
|
406
406
|
{
|
|
407
|
-
var
|
|
408
|
-
|
|
407
|
+
var m = function() {
|
|
408
|
+
Ct || (Ct = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
409
409
|
};
|
|
410
|
-
|
|
411
|
-
get:
|
|
410
|
+
m.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
411
|
+
get: m,
|
|
412
412
|
configurable: !0
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function mr(o, d) {
|
|
417
417
|
{
|
|
418
|
-
var
|
|
419
|
-
|
|
418
|
+
var m = function() {
|
|
419
|
+
xt || (xt = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
420
420
|
};
|
|
421
|
-
|
|
422
|
-
get:
|
|
421
|
+
m.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
422
|
+
get: m,
|
|
423
423
|
configurable: !0
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var
|
|
428
|
-
var
|
|
427
|
+
var gr = function(o, d, m, L, G, X, B) {
|
|
428
|
+
var V = {
|
|
429
429
|
// This tag allows us to uniquely identify this as a React Element
|
|
430
430
|
$$typeof: t,
|
|
431
431
|
// Built-in properties that belong on the element
|
|
432
432
|
type: o,
|
|
433
|
-
key:
|
|
434
|
-
ref:
|
|
435
|
-
props:
|
|
433
|
+
key: d,
|
|
434
|
+
ref: m,
|
|
435
|
+
props: B,
|
|
436
436
|
// Record the component responsible for creating this element.
|
|
437
437
|
_owner: X
|
|
438
438
|
};
|
|
439
|
-
return
|
|
439
|
+
return V._store = {}, Object.defineProperty(V._store, "validated", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !0,
|
|
443
443
|
value: !1
|
|
444
|
-
}), Object.defineProperty(
|
|
444
|
+
}), Object.defineProperty(V, "_self", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
448
|
value: L
|
|
449
|
-
}), Object.defineProperty(
|
|
449
|
+
}), Object.defineProperty(V, "_source", {
|
|
450
450
|
configurable: !1,
|
|
451
451
|
enumerable: !1,
|
|
452
452
|
writable: !1,
|
|
453
|
-
value:
|
|
454
|
-
}), Object.freeze && (Object.freeze(
|
|
453
|
+
value: G
|
|
454
|
+
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
455
455
|
};
|
|
456
|
-
function
|
|
456
|
+
function yr(o, d, m, L, G) {
|
|
457
457
|
{
|
|
458
|
-
var X,
|
|
459
|
-
|
|
460
|
-
for (X in
|
|
461
|
-
ee.call(
|
|
458
|
+
var X, B = {}, V = null, de = null;
|
|
459
|
+
m !== void 0 && (Ne(m), V = "" + m), hr(d) && (Ne(d.key), V = "" + d.key), dr(d) && (de = d.ref, pr(d, G));
|
|
460
|
+
for (X in d)
|
|
461
|
+
ee.call(d, X) && !fr.hasOwnProperty(X) && (B[X] = d[X]);
|
|
462
462
|
if (o && o.defaultProps) {
|
|
463
463
|
var ne = o.defaultProps;
|
|
464
464
|
for (X in ne)
|
|
465
|
-
|
|
465
|
+
B[X] === void 0 && (B[X] = ne[X]);
|
|
466
466
|
}
|
|
467
|
-
if (
|
|
467
|
+
if (V || de) {
|
|
468
468
|
var se = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
469
|
-
|
|
469
|
+
V && vr(B, se), de && mr(B, se);
|
|
470
470
|
}
|
|
471
|
-
return
|
|
471
|
+
return gr(o, V, de, G, L, Ce.current, B);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
var
|
|
475
|
-
function
|
|
474
|
+
var rt = j.ReactCurrentOwner, Ot = j.ReactDebugCurrentFrame;
|
|
475
|
+
function Le(o) {
|
|
476
476
|
if (o) {
|
|
477
|
-
var
|
|
478
|
-
|
|
477
|
+
var d = o._owner, m = Q(o.type, o._source, d ? d.type : null);
|
|
478
|
+
Ot.setExtraStackFrame(m);
|
|
479
479
|
} else
|
|
480
|
-
|
|
480
|
+
Ot.setExtraStackFrame(null);
|
|
481
481
|
}
|
|
482
|
-
var
|
|
483
|
-
|
|
484
|
-
function
|
|
482
|
+
var nt;
|
|
483
|
+
nt = !1;
|
|
484
|
+
function ot(o) {
|
|
485
485
|
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Tt() {
|
|
488
488
|
{
|
|
489
|
-
if (
|
|
490
|
-
var o =
|
|
489
|
+
if (rt.current) {
|
|
490
|
+
var o = K(rt.current.type);
|
|
491
491
|
if (o)
|
|
492
492
|
return `
|
|
493
493
|
|
|
@@ -496,165 +496,165 @@ Check the render method of \`` + o + "`.";
|
|
|
496
496
|
return "";
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function br(o) {
|
|
500
500
|
{
|
|
501
501
|
if (o !== void 0) {
|
|
502
|
-
var
|
|
502
|
+
var d = o.fileName.replace(/^.*[\\\/]/, ""), m = o.lineNumber;
|
|
503
503
|
return `
|
|
504
504
|
|
|
505
|
-
Check your code at ` +
|
|
505
|
+
Check your code at ` + d + ":" + m + ".";
|
|
506
506
|
}
|
|
507
507
|
return "";
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
510
|
+
var Pt = {};
|
|
511
|
+
function Er(o) {
|
|
512
512
|
{
|
|
513
|
-
var
|
|
514
|
-
if (!
|
|
515
|
-
var
|
|
516
|
-
|
|
513
|
+
var d = Tt();
|
|
514
|
+
if (!d) {
|
|
515
|
+
var m = typeof o == "string" ? o : o.displayName || o.name;
|
|
516
|
+
m && (d = `
|
|
517
517
|
|
|
518
|
-
Check the top-level render call using <` +
|
|
518
|
+
Check the top-level render call using <` + m + ">.");
|
|
519
519
|
}
|
|
520
|
-
return
|
|
520
|
+
return d;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function jt(o, d) {
|
|
524
524
|
{
|
|
525
525
|
if (!o._store || o._store.validated || o.key != null)
|
|
526
526
|
return;
|
|
527
527
|
o._store.validated = !0;
|
|
528
|
-
var
|
|
529
|
-
if (
|
|
528
|
+
var m = Er(d);
|
|
529
|
+
if (Pt[m])
|
|
530
530
|
return;
|
|
531
|
-
|
|
531
|
+
Pt[m] = !0;
|
|
532
532
|
var L = "";
|
|
533
|
-
o && o._owner && o._owner !==
|
|
533
|
+
o && o._owner && o._owner !== rt.current && (L = " It was passed a child from " + K(o._owner.type) + "."), Le(o), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, L), Le(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function At(o, d) {
|
|
537
537
|
{
|
|
538
538
|
if (typeof o != "object")
|
|
539
539
|
return;
|
|
540
540
|
if (ce(o))
|
|
541
|
-
for (var
|
|
542
|
-
var L = o[
|
|
543
|
-
|
|
541
|
+
for (var m = 0; m < o.length; m++) {
|
|
542
|
+
var L = o[m];
|
|
543
|
+
ot(L) && jt(L, d);
|
|
544
544
|
}
|
|
545
|
-
else if (
|
|
545
|
+
else if (ot(o))
|
|
546
546
|
o._store && (o._store.validated = !0);
|
|
547
547
|
else if (o) {
|
|
548
|
-
var
|
|
549
|
-
if (typeof
|
|
550
|
-
for (var X =
|
|
551
|
-
|
|
548
|
+
var G = u(o);
|
|
549
|
+
if (typeof G == "function" && G !== o.entries)
|
|
550
|
+
for (var X = G.call(o), B; !(B = X.next()).done; )
|
|
551
|
+
ot(B.value) && jt(B.value, d);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function wr(o) {
|
|
556
556
|
{
|
|
557
|
-
var
|
|
558
|
-
if (
|
|
557
|
+
var d = o.type;
|
|
558
|
+
if (d == null || typeof d == "string")
|
|
559
559
|
return;
|
|
560
|
-
var
|
|
561
|
-
if (typeof
|
|
562
|
-
|
|
563
|
-
else if (typeof
|
|
560
|
+
var m;
|
|
561
|
+
if (typeof d == "function")
|
|
562
|
+
m = d.propTypes;
|
|
563
|
+
else if (typeof d == "object" && (d.$$typeof === l || // Note: Memo only checks outer props here.
|
|
564
564
|
// Inner props are checked in the reconciler.
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
d.$$typeof === E))
|
|
566
|
+
m = d.propTypes;
|
|
567
567
|
else
|
|
568
568
|
return;
|
|
569
|
-
if (
|
|
570
|
-
var L =
|
|
571
|
-
oe(
|
|
572
|
-
} else if (
|
|
573
|
-
|
|
574
|
-
var
|
|
575
|
-
|
|
569
|
+
if (m) {
|
|
570
|
+
var L = K(d);
|
|
571
|
+
oe(m, o.props, "prop", L, o);
|
|
572
|
+
} else if (d.PropTypes !== void 0 && !nt) {
|
|
573
|
+
nt = !0;
|
|
574
|
+
var G = K(d);
|
|
575
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
576
576
|
}
|
|
577
|
-
typeof
|
|
577
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function _r(o) {
|
|
581
581
|
{
|
|
582
|
-
for (var
|
|
583
|
-
var L =
|
|
582
|
+
for (var d = Object.keys(o.props), m = 0; m < d.length; m++) {
|
|
583
|
+
var L = d[m];
|
|
584
584
|
if (L !== "children" && L !== "key") {
|
|
585
|
-
|
|
585
|
+
Le(o), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", L), Le(null);
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
o.ref !== null && (
|
|
589
|
+
o.ref !== null && (Le(o), P("Invalid attribute `ref` supplied to `React.Fragment`."), Le(null));
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
function
|
|
592
|
+
var Mt = {};
|
|
593
|
+
function zt(o, d, m, L, G, X) {
|
|
594
594
|
{
|
|
595
|
-
var
|
|
596
|
-
if (!
|
|
597
|
-
var
|
|
598
|
-
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (
|
|
599
|
-
var de =
|
|
600
|
-
de ?
|
|
595
|
+
var B = M(o);
|
|
596
|
+
if (!B) {
|
|
597
|
+
var V = "";
|
|
598
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
599
|
+
var de = br(G);
|
|
600
|
+
de ? V += de : V += Tt();
|
|
601
601
|
var ne;
|
|
602
|
-
o === null ? ne = "null" : ce(o) ? ne = "array" : o !== void 0 && o.$$typeof === t ? (ne = "<" + (
|
|
602
|
+
o === null ? ne = "null" : ce(o) ? ne = "array" : o !== void 0 && o.$$typeof === t ? (ne = "<" + (K(o.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : ne = typeof o, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ne, V);
|
|
603
603
|
}
|
|
604
|
-
var se =
|
|
604
|
+
var se = yr(o, d, m, G, X);
|
|
605
605
|
if (se == null)
|
|
606
606
|
return se;
|
|
607
|
-
if (
|
|
608
|
-
var we =
|
|
607
|
+
if (B) {
|
|
608
|
+
var we = d.children;
|
|
609
609
|
if (we !== void 0)
|
|
610
610
|
if (L)
|
|
611
611
|
if (ce(we)) {
|
|
612
612
|
for (var ke = 0; ke < we.length; ke++)
|
|
613
|
-
|
|
613
|
+
At(we[ke], o);
|
|
614
614
|
Object.freeze && Object.freeze(we);
|
|
615
615
|
} else
|
|
616
|
-
|
|
616
|
+
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
617
617
|
else
|
|
618
|
-
|
|
618
|
+
At(we, o);
|
|
619
619
|
}
|
|
620
|
-
if (ee.call(
|
|
621
|
-
var Me =
|
|
622
|
-
return
|
|
623
|
-
}),
|
|
624
|
-
if (!
|
|
625
|
-
var
|
|
626
|
-
|
|
620
|
+
if (ee.call(d, "key")) {
|
|
621
|
+
var Me = K(o), ve = Object.keys(d).filter(function(Tr) {
|
|
622
|
+
return Tr !== "key";
|
|
623
|
+
}), it = ve.length > 0 ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
624
|
+
if (!Mt[Me + it]) {
|
|
625
|
+
var Or = ve.length > 0 ? "{" + ve.join(": ..., ") + ": ...}" : "{}";
|
|
626
|
+
P(`A props object containing a "key" prop is being spread into JSX:
|
|
627
627
|
let props = %s;
|
|
628
628
|
<%s {...props} />
|
|
629
629
|
React keys must be passed directly to JSX without using spread:
|
|
630
630
|
let props = %s;
|
|
631
|
-
<%s key={someKey} {...props} />`,
|
|
631
|
+
<%s key={someKey} {...props} />`, it, Me, Or, Me), Mt[Me + it] = !0;
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
return o === n ?
|
|
634
|
+
return o === n ? _r(se) : wr(se), se;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
637
|
+
function Rr(o, d, m) {
|
|
638
|
+
return zt(o, d, m, !0);
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
return
|
|
640
|
+
function Sr(o, d, m) {
|
|
641
|
+
return zt(o, d, m, !1);
|
|
642
642
|
}
|
|
643
|
-
var
|
|
644
|
-
Ve.Fragment = n, Ve.jsx =
|
|
643
|
+
var Cr = Sr, xr = Rr;
|
|
644
|
+
Ve.Fragment = n, Ve.jsx = Cr, Ve.jsxs = xr;
|
|
645
645
|
}()), Ve;
|
|
646
646
|
}
|
|
647
|
-
process.env.NODE_ENV === "production" ?
|
|
648
|
-
var Z =
|
|
649
|
-
function
|
|
650
|
-
return
|
|
647
|
+
process.env.NODE_ENV === "production" ? ht.exports = Ir() : ht.exports = $r();
|
|
648
|
+
var Z = ht.exports;
|
|
649
|
+
function pt() {
|
|
650
|
+
return pt = Object.assign ? Object.assign.bind() : function(e) {
|
|
651
651
|
for (var t = 1; t < arguments.length; t++) {
|
|
652
652
|
var r = arguments[t];
|
|
653
653
|
for (var n in r)
|
|
654
654
|
({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
655
655
|
}
|
|
656
656
|
return e;
|
|
657
|
-
},
|
|
657
|
+
}, pt.apply(null, arguments);
|
|
658
658
|
}
|
|
659
659
|
function Re(e) {
|
|
660
660
|
"@babel/helpers - typeof";
|
|
@@ -664,29 +664,29 @@ function Re(e) {
|
|
|
664
664
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
665
665
|
}, Re(e);
|
|
666
666
|
}
|
|
667
|
-
var Lr = Symbol.for("react.element"),
|
|
668
|
-
function
|
|
667
|
+
var Lr = Symbol.for("react.element"), kr = Symbol.for("react.transitional.element"), Dr = Symbol.for("react.fragment");
|
|
668
|
+
function Xt(e) {
|
|
669
669
|
return (
|
|
670
670
|
// Base object type
|
|
671
671
|
e && Re(e) === "object" && // React Element type
|
|
672
|
-
(e.$$typeof === Lr || e.$$typeof ===
|
|
673
|
-
e.type ===
|
|
672
|
+
(e.$$typeof === Lr || e.$$typeof === kr) && // React Fragment type
|
|
673
|
+
e.type === Dr
|
|
674
674
|
);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function vt(e) {
|
|
677
677
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [];
|
|
678
678
|
return Ye.Children.forEach(e, function(n) {
|
|
679
|
-
n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(
|
|
679
|
+
n == null && !t.keepEmpty || (Array.isArray(n) ? r = r.concat(vt(n)) : Xt(n) && n.props ? r = r.concat(vt(n.props.children, t)) : r.push(n));
|
|
680
680
|
}), r;
|
|
681
681
|
}
|
|
682
|
-
var
|
|
683
|
-
function
|
|
682
|
+
var Fr = [];
|
|
683
|
+
function Dt(e, t) {
|
|
684
684
|
if (process.env.NODE_ENV !== "production" && !e && console !== void 0)
|
|
685
|
-
var r =
|
|
685
|
+
var r = Fr.reduce(function(n, i) {
|
|
686
686
|
return i(n ?? "", "warning");
|
|
687
687
|
}, t);
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Nr(e, t) {
|
|
690
690
|
if (Re(e) != "object" || !e)
|
|
691
691
|
return e;
|
|
692
692
|
var r = e[Symbol.toPrimitive];
|
|
@@ -698,19 +698,19 @@ function Fr(e, t) {
|
|
|
698
698
|
}
|
|
699
699
|
return (t === "string" ? String : Number)(e);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
var t =
|
|
701
|
+
function Zt(e) {
|
|
702
|
+
var t = Nr(e, "string");
|
|
703
703
|
return Re(t) == "symbol" ? t : t + "";
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
return (t =
|
|
705
|
+
function Wr(e, t, r) {
|
|
706
|
+
return (t = Zt(t)) in e ? Object.defineProperty(e, t, {
|
|
707
707
|
value: r,
|
|
708
708
|
enumerable: !0,
|
|
709
709
|
configurable: !0,
|
|
710
710
|
writable: !0
|
|
711
711
|
}) : e[t] = r, e;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Ft(e, t) {
|
|
714
714
|
var r = Object.keys(e);
|
|
715
715
|
if (Object.getOwnPropertySymbols) {
|
|
716
716
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -720,34 +720,34 @@ function kt(e, t) {
|
|
|
720
720
|
}
|
|
721
721
|
return r;
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Nt(e) {
|
|
724
724
|
for (var t = 1; t < arguments.length; t++) {
|
|
725
725
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
726
|
-
t % 2 ?
|
|
727
|
-
|
|
728
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
726
|
+
t % 2 ? Ft(Object(r), !0).forEach(function(n) {
|
|
727
|
+
Wr(e, n, r[n]);
|
|
728
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ft(Object(r)).forEach(function(n) {
|
|
729
729
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
732
|
return e;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function Wt(e) {
|
|
735
735
|
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
return e && Re(e) === "object" &&
|
|
737
|
+
function Vr(e) {
|
|
738
|
+
return e && Re(e) === "object" && Wt(e.nativeElement) ? e.nativeElement : Wt(e) ? e : null;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
var t =
|
|
740
|
+
function st(e) {
|
|
741
|
+
var t = Vr(e);
|
|
742
742
|
if (t)
|
|
743
743
|
return t;
|
|
744
744
|
if (e instanceof Ye.Component) {
|
|
745
745
|
var r;
|
|
746
|
-
return (r =
|
|
746
|
+
return (r = $t.findDOMNode) === null || r === void 0 ? void 0 : r.call($t, e);
|
|
747
747
|
}
|
|
748
748
|
return null;
|
|
749
749
|
}
|
|
750
|
-
var
|
|
750
|
+
var mt = { exports: {} }, U = {};
|
|
751
751
|
/**
|
|
752
752
|
* @license React
|
|
753
753
|
* react-is.production.min.js
|
|
@@ -757,76 +757,76 @@ var vt = { exports: {} }, G = {};
|
|
|
757
757
|
* This source code is licensed under the MIT license found in the
|
|
758
758
|
* LICENSE file in the root directory of this source tree.
|
|
759
759
|
*/
|
|
760
|
-
var
|
|
761
|
-
function
|
|
762
|
-
if (
|
|
763
|
-
return
|
|
764
|
-
|
|
765
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"),
|
|
766
|
-
|
|
767
|
-
function
|
|
768
|
-
if (typeof
|
|
769
|
-
var
|
|
770
|
-
switch (
|
|
760
|
+
var Vt;
|
|
761
|
+
function Hr() {
|
|
762
|
+
if (Vt)
|
|
763
|
+
return U;
|
|
764
|
+
Vt = 1;
|
|
765
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), h = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A;
|
|
766
|
+
A = Symbol.for("react.module.reference");
|
|
767
|
+
function x(u) {
|
|
768
|
+
if (typeof u == "object" && u !== null) {
|
|
769
|
+
var j = u.$$typeof;
|
|
770
|
+
switch (j) {
|
|
771
771
|
case e:
|
|
772
|
-
switch (
|
|
772
|
+
switch (u = u.type, u) {
|
|
773
773
|
case r:
|
|
774
774
|
case i:
|
|
775
775
|
case n:
|
|
776
|
+
case c:
|
|
776
777
|
case f:
|
|
777
|
-
|
|
778
|
-
return d;
|
|
778
|
+
return u;
|
|
779
779
|
default:
|
|
780
|
-
switch (
|
|
781
|
-
case
|
|
780
|
+
switch (u = u && u.$$typeof, u) {
|
|
781
|
+
case h:
|
|
782
782
|
case a:
|
|
783
|
-
case
|
|
784
|
-
case
|
|
783
|
+
case l:
|
|
784
|
+
case b:
|
|
785
785
|
case E:
|
|
786
786
|
case s:
|
|
787
|
-
return
|
|
787
|
+
return u;
|
|
788
788
|
default:
|
|
789
|
-
return
|
|
789
|
+
return j;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
case t:
|
|
793
|
-
return
|
|
793
|
+
return j;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
return
|
|
797
|
+
return U.ContextConsumer = a, U.ContextProvider = s, U.Element = e, U.ForwardRef = l, U.Fragment = r, U.Lazy = b, U.Memo = E, U.Portal = t, U.Profiler = i, U.StrictMode = n, U.Suspense = c, U.SuspenseList = f, U.isAsyncMode = function() {
|
|
798
798
|
return !1;
|
|
799
|
-
},
|
|
799
|
+
}, U.isConcurrentMode = function() {
|
|
800
800
|
return !1;
|
|
801
|
-
},
|
|
802
|
-
return
|
|
803
|
-
},
|
|
804
|
-
return
|
|
805
|
-
},
|
|
806
|
-
return typeof
|
|
807
|
-
},
|
|
808
|
-
return
|
|
809
|
-
},
|
|
810
|
-
return
|
|
811
|
-
},
|
|
812
|
-
return
|
|
813
|
-
},
|
|
814
|
-
return
|
|
815
|
-
},
|
|
816
|
-
return
|
|
817
|
-
},
|
|
818
|
-
return
|
|
819
|
-
},
|
|
820
|
-
return
|
|
821
|
-
},
|
|
822
|
-
return
|
|
823
|
-
},
|
|
824
|
-
return
|
|
825
|
-
},
|
|
826
|
-
return typeof
|
|
827
|
-
},
|
|
828
|
-
}
|
|
829
|
-
var
|
|
801
|
+
}, U.isContextConsumer = function(u) {
|
|
802
|
+
return x(u) === a;
|
|
803
|
+
}, U.isContextProvider = function(u) {
|
|
804
|
+
return x(u) === s;
|
|
805
|
+
}, U.isElement = function(u) {
|
|
806
|
+
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
807
|
+
}, U.isForwardRef = function(u) {
|
|
808
|
+
return x(u) === l;
|
|
809
|
+
}, U.isFragment = function(u) {
|
|
810
|
+
return x(u) === r;
|
|
811
|
+
}, U.isLazy = function(u) {
|
|
812
|
+
return x(u) === b;
|
|
813
|
+
}, U.isMemo = function(u) {
|
|
814
|
+
return x(u) === E;
|
|
815
|
+
}, U.isPortal = function(u) {
|
|
816
|
+
return x(u) === t;
|
|
817
|
+
}, U.isProfiler = function(u) {
|
|
818
|
+
return x(u) === i;
|
|
819
|
+
}, U.isStrictMode = function(u) {
|
|
820
|
+
return x(u) === n;
|
|
821
|
+
}, U.isSuspense = function(u) {
|
|
822
|
+
return x(u) === c;
|
|
823
|
+
}, U.isSuspenseList = function(u) {
|
|
824
|
+
return x(u) === f;
|
|
825
|
+
}, U.isValidElementType = function(u) {
|
|
826
|
+
return typeof u == "string" || typeof u == "function" || u === r || u === i || u === n || u === c || u === f || u === I || typeof u == "object" && u !== null && (u.$$typeof === b || u.$$typeof === E || u.$$typeof === s || u.$$typeof === a || u.$$typeof === l || u.$$typeof === A || u.getModuleId !== void 0);
|
|
827
|
+
}, U.typeOf = x, U;
|
|
828
|
+
}
|
|
829
|
+
var q = {};
|
|
830
830
|
/**
|
|
831
831
|
* @license React
|
|
832
832
|
* react-is.development.js
|
|
@@ -836,19 +836,19 @@ var U = {};
|
|
|
836
836
|
* This source code is licensed under the MIT license found in the
|
|
837
837
|
* LICENSE file in the root directory of this source tree.
|
|
838
838
|
*/
|
|
839
|
-
var
|
|
840
|
-
function
|
|
841
|
-
return
|
|
842
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"),
|
|
839
|
+
var Ht;
|
|
840
|
+
function Br() {
|
|
841
|
+
return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
|
|
842
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), h = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), A = !1, x = !1, u = !1, j = !1, P = !1, J;
|
|
843
843
|
J = Symbol.for("react.module.reference");
|
|
844
|
-
function
|
|
845
|
-
return !!(typeof T == "string" || typeof T == "function" || T === r || T === i ||
|
|
844
|
+
function z(T) {
|
|
845
|
+
return !!(typeof T == "string" || typeof T == "function" || T === r || T === i || P || T === n || T === c || T === f || j || T === I || A || x || u || typeof T == "object" && T !== null && (T.$$typeof === b || T.$$typeof === E || T.$$typeof === s || T.$$typeof === a || T.$$typeof === l || // This needs to include all possible module reference object
|
|
846
846
|
// types supported by any Flight configuration anywhere since
|
|
847
847
|
// we don't know which Flight build this will end up being used
|
|
848
848
|
// with.
|
|
849
849
|
T.$$typeof === J || T.getModuleId !== void 0));
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function N(T) {
|
|
852
852
|
if (typeof T == "object" && T !== null) {
|
|
853
853
|
var Q = T.$$typeof;
|
|
854
854
|
switch (Q) {
|
|
@@ -858,16 +858,16 @@ function Hr() {
|
|
|
858
858
|
case r:
|
|
859
859
|
case i:
|
|
860
860
|
case n:
|
|
861
|
+
case c:
|
|
861
862
|
case f:
|
|
862
|
-
case h:
|
|
863
863
|
return ee;
|
|
864
864
|
default:
|
|
865
865
|
var fe = ee && ee.$$typeof;
|
|
866
866
|
switch (fe) {
|
|
867
|
-
case
|
|
867
|
+
case h:
|
|
868
868
|
case a:
|
|
869
|
-
case
|
|
870
|
-
case
|
|
869
|
+
case l:
|
|
870
|
+
case b:
|
|
871
871
|
case E:
|
|
872
872
|
case s:
|
|
873
873
|
return fe;
|
|
@@ -880,115 +880,115 @@ function Hr() {
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
var D = a,
|
|
883
|
+
var D = a, k = s, p = e, F = l, M = r, W = b, H = E, K = t, te = i, he = n, be = c, Te = f, _e = !1, Ee = !1;
|
|
884
884
|
function Se(T) {
|
|
885
885
|
return _e || (_e = !0), !1;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function g(T) {
|
|
888
888
|
return Ee || (Ee = !0), !1;
|
|
889
889
|
}
|
|
890
890
|
function C(T) {
|
|
891
|
-
return
|
|
891
|
+
return N(T) === a;
|
|
892
892
|
}
|
|
893
893
|
function w(T) {
|
|
894
|
-
return
|
|
894
|
+
return N(T) === s;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function y(T) {
|
|
897
897
|
return typeof T == "object" && T !== null && T.$$typeof === e;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
900
|
-
return
|
|
899
|
+
function v(T) {
|
|
900
|
+
return N(T) === l;
|
|
901
901
|
}
|
|
902
902
|
function O(T) {
|
|
903
|
-
return
|
|
903
|
+
return N(T) === r;
|
|
904
|
+
}
|
|
905
|
+
function _(T) {
|
|
906
|
+
return N(T) === b;
|
|
904
907
|
}
|
|
905
908
|
function R(T) {
|
|
906
|
-
return
|
|
909
|
+
return N(T) === E;
|
|
907
910
|
}
|
|
908
911
|
function S(T) {
|
|
909
|
-
return
|
|
910
|
-
}
|
|
911
|
-
function x(T) {
|
|
912
|
-
return F(T) === t;
|
|
912
|
+
return N(T) === t;
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
return
|
|
914
|
+
function $(T) {
|
|
915
|
+
return N(T) === i;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
return
|
|
917
|
+
function Y(T) {
|
|
918
|
+
return N(T) === n;
|
|
919
919
|
}
|
|
920
920
|
function ae(T) {
|
|
921
|
-
return
|
|
921
|
+
return N(T) === c;
|
|
922
922
|
}
|
|
923
923
|
function le(T) {
|
|
924
|
-
return
|
|
924
|
+
return N(T) === f;
|
|
925
925
|
}
|
|
926
|
-
|
|
927
|
-
}()),
|
|
926
|
+
q.ContextConsumer = D, q.ContextProvider = k, q.Element = p, q.ForwardRef = F, q.Fragment = M, q.Lazy = W, q.Memo = H, q.Portal = K, q.Profiler = te, q.StrictMode = he, q.Suspense = be, q.SuspenseList = Te, q.isAsyncMode = Se, q.isConcurrentMode = g, q.isContextConsumer = C, q.isContextProvider = w, q.isElement = y, q.isForwardRef = v, q.isFragment = O, q.isLazy = _, q.isMemo = R, q.isPortal = S, q.isProfiler = $, q.isStrictMode = Y, q.isSuspense = ae, q.isSuspenseList = le, q.isValidElementType = z, q.typeOf = N;
|
|
927
|
+
}()), q;
|
|
928
928
|
}
|
|
929
|
-
process.env.NODE_ENV === "production" ?
|
|
930
|
-
var
|
|
931
|
-
function
|
|
929
|
+
process.env.NODE_ENV === "production" ? mt.exports = Hr() : mt.exports = Br();
|
|
930
|
+
var at = mt.exports;
|
|
931
|
+
function Yr(e, t, r) {
|
|
932
932
|
var n = re.useRef({});
|
|
933
933
|
return (!("value" in n.current) || r(n.current.condition, t)) && (n.current.value = e(), n.current.condition = t), n.current.value;
|
|
934
934
|
}
|
|
935
|
-
var
|
|
935
|
+
var Kr = Number(Pr.split(".")[0]), Gr = function(t, r) {
|
|
936
936
|
typeof t == "function" ? t(r) : Re(t) === "object" && t && "current" in t && (t.current = r);
|
|
937
|
-
},
|
|
937
|
+
}, Ur = function() {
|
|
938
938
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
939
939
|
r[n] = arguments[n];
|
|
940
940
|
var i = r.filter(Boolean);
|
|
941
941
|
return i.length <= 1 ? i[0] : function(s) {
|
|
942
942
|
r.forEach(function(a) {
|
|
943
|
-
|
|
943
|
+
Gr(a, s);
|
|
944
944
|
});
|
|
945
945
|
};
|
|
946
|
-
},
|
|
946
|
+
}, qr = function() {
|
|
947
947
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
948
948
|
r[n] = arguments[n];
|
|
949
|
-
return
|
|
950
|
-
return
|
|
949
|
+
return Yr(function() {
|
|
950
|
+
return Ur.apply(void 0, r);
|
|
951
951
|
}, r, function(i, s) {
|
|
952
|
-
return i.length !== s.length || i.every(function(a,
|
|
953
|
-
return a !== s[
|
|
952
|
+
return i.length !== s.length || i.every(function(a, h) {
|
|
953
|
+
return a !== s[h];
|
|
954
954
|
});
|
|
955
955
|
});
|
|
956
|
-
},
|
|
956
|
+
}, Jr = function(t) {
|
|
957
957
|
var r, n;
|
|
958
958
|
if (!t)
|
|
959
959
|
return !1;
|
|
960
|
-
if (
|
|
960
|
+
if (Qt(t) && Kr >= 19)
|
|
961
961
|
return !0;
|
|
962
|
-
var i =
|
|
963
|
-
return !(typeof i == "function" && !((r = i.prototype) !== null && r !== void 0 && r.render) && i.$$typeof !==
|
|
962
|
+
var i = at.isMemo(t) ? t.type.type : t.type;
|
|
963
|
+
return !(typeof i == "function" && !((r = i.prototype) !== null && r !== void 0 && r.render) && i.$$typeof !== at.ForwardRef || typeof t == "function" && !((n = t.prototype) !== null && n !== void 0 && n.render) && t.$$typeof !== at.ForwardRef);
|
|
964
964
|
};
|
|
965
|
-
function
|
|
966
|
-
return /* @__PURE__ */
|
|
965
|
+
function Qt(e) {
|
|
966
|
+
return /* @__PURE__ */ jr(e) && !Xt(e);
|
|
967
967
|
}
|
|
968
|
-
var
|
|
969
|
-
if (t &&
|
|
968
|
+
var Xr = function(t) {
|
|
969
|
+
if (t && Qt(t)) {
|
|
970
970
|
var r = t;
|
|
971
971
|
return r.props.propertyIsEnumerable("ref") ? r.props.ref : r.ref;
|
|
972
972
|
}
|
|
973
973
|
return null;
|
|
974
|
-
},
|
|
975
|
-
function
|
|
976
|
-
var t = e.children, r = e.onBatchResize, n = re.useRef(0), i = re.useRef([]), s = re.useContext(
|
|
974
|
+
}, gt = /* @__PURE__ */ re.createContext(null);
|
|
975
|
+
function Zr(e) {
|
|
976
|
+
var t = e.children, r = e.onBatchResize, n = re.useRef(0), i = re.useRef([]), s = re.useContext(gt), a = re.useCallback(function(h, l, c) {
|
|
977
977
|
n.current += 1;
|
|
978
|
-
var
|
|
978
|
+
var f = n.current;
|
|
979
979
|
i.current.push({
|
|
980
|
-
size:
|
|
981
|
-
element:
|
|
982
|
-
data:
|
|
980
|
+
size: h,
|
|
981
|
+
element: l,
|
|
982
|
+
data: c
|
|
983
983
|
}), Promise.resolve().then(function() {
|
|
984
|
-
|
|
985
|
-
}), s == null || s(l, c
|
|
984
|
+
f === n.current && (r == null || r(i.current), i.current = []);
|
|
985
|
+
}), s == null || s(h, l, c);
|
|
986
986
|
}, [r, s]);
|
|
987
|
-
return /* @__PURE__ */ re.createElement(
|
|
987
|
+
return /* @__PURE__ */ re.createElement(gt.Provider, {
|
|
988
988
|
value: a
|
|
989
989
|
}, t);
|
|
990
990
|
}
|
|
991
|
-
var
|
|
991
|
+
var er = function() {
|
|
992
992
|
if (typeof Map < "u")
|
|
993
993
|
return Map;
|
|
994
994
|
function e(t, r) {
|
|
@@ -1034,40 +1034,40 @@ var Zt = function() {
|
|
|
1034
1034
|
}, t;
|
|
1035
1035
|
}()
|
|
1036
1036
|
);
|
|
1037
|
-
}(),
|
|
1037
|
+
}(), yt = typeof window < "u" && typeof document < "u" && window.document === document, Ue = function() {
|
|
1038
1038
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1039
|
-
}(),
|
|
1039
|
+
}(), Qr = function() {
|
|
1040
1040
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Ue) : function(e) {
|
|
1041
1041
|
return setTimeout(function() {
|
|
1042
1042
|
return e(Date.now());
|
|
1043
1043
|
}, 1e3 / 60);
|
|
1044
1044
|
};
|
|
1045
|
-
}(),
|
|
1046
|
-
function
|
|
1045
|
+
}(), en = 2;
|
|
1046
|
+
function tn(e, t) {
|
|
1047
1047
|
var r = !1, n = !1, i = 0;
|
|
1048
1048
|
function s() {
|
|
1049
|
-
r && (r = !1, e()), n &&
|
|
1049
|
+
r && (r = !1, e()), n && h();
|
|
1050
1050
|
}
|
|
1051
1051
|
function a() {
|
|
1052
|
-
|
|
1052
|
+
Qr(s);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
var
|
|
1054
|
+
function h() {
|
|
1055
|
+
var l = Date.now();
|
|
1056
1056
|
if (r) {
|
|
1057
|
-
if (
|
|
1057
|
+
if (l - i < en)
|
|
1058
1058
|
return;
|
|
1059
1059
|
n = !0;
|
|
1060
1060
|
} else
|
|
1061
1061
|
r = !0, n = !1, setTimeout(a, t);
|
|
1062
|
-
i =
|
|
1062
|
+
i = l;
|
|
1063
1063
|
}
|
|
1064
|
-
return
|
|
1064
|
+
return h;
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1066
|
+
var rn = 20, nn = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], on = typeof MutationObserver < "u", sn = (
|
|
1067
1067
|
/** @class */
|
|
1068
1068
|
function() {
|
|
1069
1069
|
function e() {
|
|
1070
|
-
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
1070
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = tn(this.refresh.bind(this), rn);
|
|
1071
1071
|
}
|
|
1072
1072
|
return e.prototype.addObserver = function(t) {
|
|
1073
1073
|
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
@@ -1085,16 +1085,16 @@ var tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1085
1085
|
return r.broadcastActive();
|
|
1086
1086
|
}), t.length > 0;
|
|
1087
1087
|
}, e.prototype.connect_ = function() {
|
|
1088
|
-
!
|
|
1088
|
+
!yt || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), on ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
1089
1089
|
attributes: !0,
|
|
1090
1090
|
childList: !0,
|
|
1091
1091
|
characterData: !0,
|
|
1092
1092
|
subtree: !0
|
|
1093
1093
|
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
1094
1094
|
}, e.prototype.disconnect_ = function() {
|
|
1095
|
-
!
|
|
1095
|
+
!yt || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
1096
1096
|
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
1097
|
-
var r = t.propertyName, n = r === void 0 ? "" : r, i =
|
|
1097
|
+
var r = t.propertyName, n = r === void 0 ? "" : r, i = nn.some(function(s) {
|
|
1098
1098
|
return !!~n.indexOf(s);
|
|
1099
1099
|
});
|
|
1100
1100
|
i && this.refresh();
|
|
@@ -1102,7 +1102,7 @@ var tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1102
1102
|
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
1103
1103
|
}, e.instance_ = null, e;
|
|
1104
1104
|
}()
|
|
1105
|
-
),
|
|
1105
|
+
), tr = function(e, t) {
|
|
1106
1106
|
for (var r = 0, n = Object.keys(t); r < n.length; r++) {
|
|
1107
1107
|
var i = n[r];
|
|
1108
1108
|
Object.defineProperty(e, i, {
|
|
@@ -1116,11 +1116,11 @@ var tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1116
1116
|
}, Fe = function(e) {
|
|
1117
1117
|
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
1118
1118
|
return t || Ue;
|
|
1119
|
-
},
|
|
1119
|
+
}, rr = et(0, 0, 0, 0);
|
|
1120
1120
|
function qe(e) {
|
|
1121
1121
|
return parseFloat(e) || 0;
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function Bt(e) {
|
|
1124
1124
|
for (var t = [], r = 1; r < arguments.length; r++)
|
|
1125
1125
|
t[r - 1] = arguments[r];
|
|
1126
1126
|
return t.reduce(function(n, i) {
|
|
@@ -1128,44 +1128,44 @@ function Vt(e) {
|
|
|
1128
1128
|
return n + qe(s);
|
|
1129
1129
|
}, 0);
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function an(e) {
|
|
1132
1132
|
for (var t = ["top", "right", "bottom", "left"], r = {}, n = 0, i = t; n < i.length; n++) {
|
|
1133
1133
|
var s = i[n], a = e["padding-" + s];
|
|
1134
1134
|
r[s] = qe(a);
|
|
1135
1135
|
}
|
|
1136
1136
|
return r;
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function ln(e) {
|
|
1139
1139
|
var t = e.getBBox();
|
|
1140
|
-
return
|
|
1140
|
+
return et(0, 0, t.width, t.height);
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function cn(e) {
|
|
1143
1143
|
var t = e.clientWidth, r = e.clientHeight;
|
|
1144
1144
|
if (!t && !r)
|
|
1145
|
-
return
|
|
1146
|
-
var n = Fe(e).getComputedStyle(e), i =
|
|
1147
|
-
if (n.boxSizing === "border-box" && (Math.round(
|
|
1148
|
-
var
|
|
1149
|
-
Math.abs(
|
|
1145
|
+
return rr;
|
|
1146
|
+
var n = Fe(e).getComputedStyle(e), i = an(n), s = i.left + i.right, a = i.top + i.bottom, h = qe(n.width), l = qe(n.height);
|
|
1147
|
+
if (n.boxSizing === "border-box" && (Math.round(h + s) !== t && (h -= Bt(n, "left", "right") + s), Math.round(l + a) !== r && (l -= Bt(n, "top", "bottom") + a)), !fn(e)) {
|
|
1148
|
+
var c = Math.round(h + s) - t, f = Math.round(l + a) - r;
|
|
1149
|
+
Math.abs(c) !== 1 && (h -= c), Math.abs(f) !== 1 && (l -= f);
|
|
1150
1150
|
}
|
|
1151
|
-
return
|
|
1151
|
+
return et(i.left, i.top, h, l);
|
|
1152
1152
|
}
|
|
1153
|
-
var
|
|
1153
|
+
var un = function() {
|
|
1154
1154
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
1155
1155
|
return e instanceof Fe(e).SVGGraphicsElement;
|
|
1156
1156
|
} : function(e) {
|
|
1157
1157
|
return e instanceof Fe(e).SVGElement && typeof e.getBBox == "function";
|
|
1158
1158
|
};
|
|
1159
1159
|
}();
|
|
1160
|
-
function un(e) {
|
|
1161
|
-
return e === Fe(e).document.documentElement;
|
|
1162
|
-
}
|
|
1163
1160
|
function fn(e) {
|
|
1164
|
-
return
|
|
1161
|
+
return e === Fe(e).document.documentElement;
|
|
1165
1162
|
}
|
|
1166
1163
|
function dn(e) {
|
|
1164
|
+
return yt ? un(e) ? ln(e) : cn(e) : rr;
|
|
1165
|
+
}
|
|
1166
|
+
function hn(e) {
|
|
1167
1167
|
var t = e.x, r = e.y, n = e.width, i = e.height, s = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, a = Object.create(s.prototype);
|
|
1168
|
-
return
|
|
1168
|
+
return tr(a, {
|
|
1169
1169
|
x: t,
|
|
1170
1170
|
y: r,
|
|
1171
1171
|
width: n,
|
|
@@ -1176,37 +1176,37 @@ function dn(e) {
|
|
|
1176
1176
|
left: t
|
|
1177
1177
|
}), a;
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function et(e, t, r, n) {
|
|
1180
1180
|
return { x: e, y: t, width: r, height: n };
|
|
1181
1181
|
}
|
|
1182
|
-
var
|
|
1182
|
+
var pn = (
|
|
1183
1183
|
/** @class */
|
|
1184
1184
|
function() {
|
|
1185
1185
|
function e(t) {
|
|
1186
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
1186
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = et(0, 0, 0, 0), this.target = t;
|
|
1187
1187
|
}
|
|
1188
1188
|
return e.prototype.isActive = function() {
|
|
1189
|
-
var t =
|
|
1189
|
+
var t = dn(this.target);
|
|
1190
1190
|
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
|
|
1191
1191
|
}, e.prototype.broadcastRect = function() {
|
|
1192
1192
|
var t = this.contentRect_;
|
|
1193
1193
|
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
1194
1194
|
}, e;
|
|
1195
1195
|
}()
|
|
1196
|
-
),
|
|
1196
|
+
), vn = (
|
|
1197
1197
|
/** @class */
|
|
1198
1198
|
function() {
|
|
1199
1199
|
function e(t, r) {
|
|
1200
|
-
var n =
|
|
1201
|
-
|
|
1200
|
+
var n = hn(r);
|
|
1201
|
+
tr(this, { target: t, contentRect: n });
|
|
1202
1202
|
}
|
|
1203
1203
|
return e;
|
|
1204
1204
|
}()
|
|
1205
|
-
),
|
|
1205
|
+
), mn = (
|
|
1206
1206
|
/** @class */
|
|
1207
1207
|
function() {
|
|
1208
1208
|
function e(t, r, n) {
|
|
1209
|
-
if (this.activeObservations_ = [], this.observations_ = new
|
|
1209
|
+
if (this.activeObservations_ = [], this.observations_ = new er(), typeof t != "function")
|
|
1210
1210
|
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
1211
1211
|
this.callback_ = t, this.controller_ = r, this.callbackCtx_ = n;
|
|
1212
1212
|
}
|
|
@@ -1217,7 +1217,7 @@ var hn = (
|
|
|
1217
1217
|
if (!(t instanceof Fe(t).Element))
|
|
1218
1218
|
throw new TypeError('parameter 1 is not of type "Element".');
|
|
1219
1219
|
var r = this.observations_;
|
|
1220
|
-
r.has(t) || (r.set(t, new
|
|
1220
|
+
r.has(t) || (r.set(t, new pn(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
1221
1221
|
}
|
|
1222
1222
|
}, e.prototype.unobserve = function(t) {
|
|
1223
1223
|
if (!arguments.length)
|
|
@@ -1238,7 +1238,7 @@ var hn = (
|
|
|
1238
1238
|
}, e.prototype.broadcastActive = function() {
|
|
1239
1239
|
if (this.hasActive()) {
|
|
1240
1240
|
var t = this.callbackCtx_, r = this.activeObservations_.map(function(n) {
|
|
1241
|
-
return new
|
|
1241
|
+
return new vn(n.target, n.broadcastRect());
|
|
1242
1242
|
});
|
|
1243
1243
|
this.callback_.call(t, r, t), this.clearActive();
|
|
1244
1244
|
}
|
|
@@ -1248,7 +1248,7 @@ var hn = (
|
|
|
1248
1248
|
return this.activeObservations_.length > 0;
|
|
1249
1249
|
}, e;
|
|
1250
1250
|
}()
|
|
1251
|
-
),
|
|
1251
|
+
), nr = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new er(), or = (
|
|
1252
1252
|
/** @class */
|
|
1253
1253
|
function() {
|
|
1254
1254
|
function e(t) {
|
|
@@ -1256,8 +1256,8 @@ var hn = (
|
|
|
1256
1256
|
throw new TypeError("Cannot call a class as a function.");
|
|
1257
1257
|
if (!arguments.length)
|
|
1258
1258
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
1259
|
-
var r =
|
|
1260
|
-
|
|
1259
|
+
var r = sn.getInstance(), n = new mn(t, r, this);
|
|
1260
|
+
nr.set(this, n);
|
|
1261
1261
|
}
|
|
1262
1262
|
return e;
|
|
1263
1263
|
}()
|
|
@@ -1267,15 +1267,15 @@ var hn = (
|
|
|
1267
1267
|
"unobserve",
|
|
1268
1268
|
"disconnect"
|
|
1269
1269
|
].forEach(function(e) {
|
|
1270
|
-
|
|
1270
|
+
or.prototype[e] = function() {
|
|
1271
1271
|
var t;
|
|
1272
|
-
return (t =
|
|
1272
|
+
return (t = nr.get(this))[e].apply(t, arguments);
|
|
1273
1273
|
};
|
|
1274
1274
|
});
|
|
1275
|
-
var
|
|
1276
|
-
return typeof Ue.ResizeObserver < "u" ? Ue.ResizeObserver :
|
|
1275
|
+
var gn = function() {
|
|
1276
|
+
return typeof Ue.ResizeObserver < "u" ? Ue.ResizeObserver : or;
|
|
1277
1277
|
}(), Oe = /* @__PURE__ */ new Map();
|
|
1278
|
-
function
|
|
1278
|
+
function ir(e) {
|
|
1279
1279
|
e.forEach(function(t) {
|
|
1280
1280
|
var r, n = t.target;
|
|
1281
1281
|
(r = Oe.get(n)) === null || r === void 0 || r.forEach(function(i) {
|
|
@@ -1283,36 +1283,36 @@ function nr(e) {
|
|
|
1283
1283
|
});
|
|
1284
1284
|
});
|
|
1285
1285
|
}
|
|
1286
|
-
var
|
|
1286
|
+
var sr = new gn(ir);
|
|
1287
1287
|
process.env.NODE_ENV;
|
|
1288
1288
|
process.env.NODE_ENV;
|
|
1289
|
-
function gn(e, t) {
|
|
1290
|
-
Oe.has(e) || (Oe.set(e, /* @__PURE__ */ new Set()), or.observe(e)), Oe.get(e).add(t);
|
|
1291
|
-
}
|
|
1292
1289
|
function yn(e, t) {
|
|
1293
|
-
Oe.has(e)
|
|
1290
|
+
Oe.has(e) || (Oe.set(e, /* @__PURE__ */ new Set()), sr.observe(e)), Oe.get(e).add(t);
|
|
1294
1291
|
}
|
|
1295
1292
|
function bn(e, t) {
|
|
1293
|
+
Oe.has(e) && (Oe.get(e).delete(t), Oe.get(e).size || (sr.unobserve(e), Oe.delete(e)));
|
|
1294
|
+
}
|
|
1295
|
+
function En(e, t) {
|
|
1296
1296
|
if (!(e instanceof t))
|
|
1297
1297
|
throw new TypeError("Cannot call a class as a function");
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function Yt(e, t) {
|
|
1300
1300
|
for (var r = 0; r < t.length; r++) {
|
|
1301
1301
|
var n = t[r];
|
|
1302
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e,
|
|
1302
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Zt(n.key), n);
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return t &&
|
|
1305
|
+
function wn(e, t, r) {
|
|
1306
|
+
return t && Yt(e.prototype, t), r && Yt(e, r), Object.defineProperty(e, "prototype", {
|
|
1307
1307
|
writable: !1
|
|
1308
1308
|
}), e;
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1311
|
-
return
|
|
1310
|
+
function bt(e, t) {
|
|
1311
|
+
return bt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
|
|
1312
1312
|
return r.__proto__ = n, r;
|
|
1313
|
-
},
|
|
1313
|
+
}, bt(e, t);
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function _n(e, t) {
|
|
1316
1316
|
if (typeof t != "function" && t !== null)
|
|
1317
1317
|
throw new TypeError("Super expression must either be null or a function");
|
|
1318
1318
|
e.prototype = Object.create(t && t.prototype, {
|
|
@@ -1323,37 +1323,37 @@ function wn(e, t) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
}), Object.defineProperty(e, "prototype", {
|
|
1325
1325
|
writable: !1
|
|
1326
|
-
}), t &&
|
|
1326
|
+
}), t && bt(e, t);
|
|
1327
1327
|
}
|
|
1328
1328
|
function Je(e) {
|
|
1329
1329
|
return Je = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
1330
1330
|
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1331
1331
|
}, Je(e);
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function ar() {
|
|
1334
1334
|
try {
|
|
1335
1335
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1336
1336
|
}));
|
|
1337
1337
|
} catch {
|
|
1338
1338
|
}
|
|
1339
|
-
return (
|
|
1339
|
+
return (ar = function() {
|
|
1340
1340
|
return !!e;
|
|
1341
1341
|
})();
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Rn(e) {
|
|
1344
1344
|
if (e === void 0)
|
|
1345
1345
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1346
1346
|
return e;
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1348
|
+
function Sn(e, t) {
|
|
1349
1349
|
if (t && (Re(t) == "object" || typeof t == "function"))
|
|
1350
1350
|
return t;
|
|
1351
1351
|
if (t !== void 0)
|
|
1352
1352
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1353
|
-
return
|
|
1353
|
+
return Rn(e);
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1356
|
-
var t =
|
|
1355
|
+
function Cn(e) {
|
|
1356
|
+
var t = ar();
|
|
1357
1357
|
return function() {
|
|
1358
1358
|
var r, n = Je(e);
|
|
1359
1359
|
if (t) {
|
|
@@ -1361,85 +1361,85 @@ function Sn(e) {
|
|
|
1361
1361
|
r = Reflect.construct(n, arguments, i);
|
|
1362
1362
|
} else
|
|
1363
1363
|
r = n.apply(this, arguments);
|
|
1364
|
-
return
|
|
1364
|
+
return Sn(this, r);
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
1367
|
var xn = /* @__PURE__ */ function(e) {
|
|
1368
|
-
|
|
1369
|
-
var t =
|
|
1368
|
+
_n(r, e);
|
|
1369
|
+
var t = Cn(r);
|
|
1370
1370
|
function r() {
|
|
1371
|
-
return
|
|
1371
|
+
return En(this, r), t.apply(this, arguments);
|
|
1372
1372
|
}
|
|
1373
|
-
return
|
|
1373
|
+
return wn(r, [{
|
|
1374
1374
|
key: "render",
|
|
1375
1375
|
value: function() {
|
|
1376
1376
|
return this.props.children;
|
|
1377
1377
|
}
|
|
1378
1378
|
}]), r;
|
|
1379
1379
|
}(re.Component);
|
|
1380
|
-
function
|
|
1381
|
-
var r = e.children, n = e.disabled, i = re.useRef(null), s = re.useRef(null), a = re.useContext(
|
|
1380
|
+
function On(e, t) {
|
|
1381
|
+
var r = e.children, n = e.disabled, i = re.useRef(null), s = re.useRef(null), a = re.useContext(gt), h = typeof r == "function", l = h ? r(i) : r, c = re.useRef({
|
|
1382
1382
|
width: -1,
|
|
1383
1383
|
height: -1,
|
|
1384
1384
|
offsetWidth: -1,
|
|
1385
1385
|
offsetHeight: -1
|
|
1386
|
-
}),
|
|
1387
|
-
var
|
|
1388
|
-
return
|
|
1389
|
-
(i.current && Re(i.current) === "object" ?
|
|
1386
|
+
}), f = !h && /* @__PURE__ */ re.isValidElement(l) && Jr(l), E = f ? Xr(l) : null, b = qr(E, i), I = function() {
|
|
1387
|
+
var j;
|
|
1388
|
+
return st(i.current) || // Support `nativeElement` format
|
|
1389
|
+
(i.current && Re(i.current) === "object" ? st((j = i.current) === null || j === void 0 ? void 0 : j.nativeElement) : null) || st(s.current);
|
|
1390
1390
|
};
|
|
1391
1391
|
re.useImperativeHandle(t, function() {
|
|
1392
|
-
return
|
|
1392
|
+
return I();
|
|
1393
1393
|
});
|
|
1394
|
-
var
|
|
1395
|
-
|
|
1396
|
-
var
|
|
1397
|
-
var
|
|
1398
|
-
if (
|
|
1394
|
+
var A = re.useRef(e);
|
|
1395
|
+
A.current = e;
|
|
1396
|
+
var x = re.useCallback(function(u) {
|
|
1397
|
+
var j = A.current, P = j.onResize, J = j.data, z = u.getBoundingClientRect(), N = z.width, D = z.height, k = u.offsetWidth, p = u.offsetHeight, F = Math.floor(N), M = Math.floor(D);
|
|
1398
|
+
if (c.current.width !== F || c.current.height !== M || c.current.offsetWidth !== k || c.current.offsetHeight !== p) {
|
|
1399
1399
|
var W = {
|
|
1400
|
-
width:
|
|
1400
|
+
width: F,
|
|
1401
1401
|
height: M,
|
|
1402
|
-
offsetWidth:
|
|
1402
|
+
offsetWidth: k,
|
|
1403
1403
|
offsetHeight: p
|
|
1404
1404
|
};
|
|
1405
|
-
|
|
1406
|
-
var
|
|
1407
|
-
offsetWidth:
|
|
1408
|
-
offsetHeight:
|
|
1405
|
+
c.current = W;
|
|
1406
|
+
var H = k === Math.round(N) ? N : k, K = p === Math.round(D) ? D : p, te = Nt(Nt({}, W), {}, {
|
|
1407
|
+
offsetWidth: H,
|
|
1408
|
+
offsetHeight: K
|
|
1409
1409
|
});
|
|
1410
|
-
a == null || a(te,
|
|
1411
|
-
|
|
1410
|
+
a == null || a(te, u, J), P && Promise.resolve().then(function() {
|
|
1411
|
+
P(te, u);
|
|
1412
1412
|
});
|
|
1413
1413
|
}
|
|
1414
1414
|
}, []);
|
|
1415
1415
|
return re.useEffect(function() {
|
|
1416
|
-
var
|
|
1417
|
-
return
|
|
1418
|
-
return
|
|
1416
|
+
var u = I();
|
|
1417
|
+
return u && !n && yn(u, x), function() {
|
|
1418
|
+
return bn(u, x);
|
|
1419
1419
|
};
|
|
1420
1420
|
}, [i.current, n]), /* @__PURE__ */ re.createElement(xn, {
|
|
1421
1421
|
ref: s
|
|
1422
|
-
},
|
|
1423
|
-
ref:
|
|
1424
|
-
}) :
|
|
1425
|
-
}
|
|
1426
|
-
var
|
|
1427
|
-
process.env.NODE_ENV !== "production" && (
|
|
1428
|
-
var
|
|
1429
|
-
function
|
|
1430
|
-
var r = e.children, n = typeof r == "function" ? [r] :
|
|
1431
|
-
return process.env.NODE_ENV !== "production" && (n.length > 1 ?
|
|
1432
|
-
var a = (i == null ? void 0 : i.key) || "".concat(
|
|
1433
|
-
return /* @__PURE__ */ re.createElement(
|
|
1422
|
+
}, f ? /* @__PURE__ */ re.cloneElement(l, {
|
|
1423
|
+
ref: b
|
|
1424
|
+
}) : l);
|
|
1425
|
+
}
|
|
1426
|
+
var lr = /* @__PURE__ */ re.forwardRef(On);
|
|
1427
|
+
process.env.NODE_ENV !== "production" && (lr.displayName = "SingleObserver");
|
|
1428
|
+
var Tn = "rc-observer-key";
|
|
1429
|
+
function Pn(e, t) {
|
|
1430
|
+
var r = e.children, n = typeof r == "function" ? [r] : vt(r);
|
|
1431
|
+
return process.env.NODE_ENV !== "production" && (n.length > 1 ? Dt(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : n.length === 0 && Dt(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), n.map(function(i, s) {
|
|
1432
|
+
var a = (i == null ? void 0 : i.key) || "".concat(Tn, "-").concat(s);
|
|
1433
|
+
return /* @__PURE__ */ re.createElement(lr, pt({}, e, {
|
|
1434
1434
|
key: a,
|
|
1435
1435
|
ref: s === 0 ? t : void 0
|
|
1436
1436
|
}), i);
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
|
-
var
|
|
1440
|
-
process.env.NODE_ENV !== "production" && (
|
|
1441
|
-
|
|
1442
|
-
var
|
|
1439
|
+
var Rt = /* @__PURE__ */ re.forwardRef(Pn);
|
|
1440
|
+
process.env.NODE_ENV !== "production" && (Rt.displayName = "ResizeObserver");
|
|
1441
|
+
Rt.Collection = Zr;
|
|
1442
|
+
var cr = { exports: {} };
|
|
1443
1443
|
/*!
|
|
1444
1444
|
Copyright (c) 2018 Jed Watson.
|
|
1445
1445
|
Licensed under the MIT License (MIT), see
|
|
@@ -1450,8 +1450,8 @@ var ar = { exports: {} };
|
|
|
1450
1450
|
var t = {}.hasOwnProperty;
|
|
1451
1451
|
function r() {
|
|
1452
1452
|
for (var s = "", a = 0; a < arguments.length; a++) {
|
|
1453
|
-
var
|
|
1454
|
-
|
|
1453
|
+
var h = arguments[a];
|
|
1454
|
+
h && (s = i(s, n(h)));
|
|
1455
1455
|
}
|
|
1456
1456
|
return s;
|
|
1457
1457
|
}
|
|
@@ -1465,8 +1465,8 @@ var ar = { exports: {} };
|
|
|
1465
1465
|
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
1466
1466
|
return s.toString();
|
|
1467
1467
|
var a = "";
|
|
1468
|
-
for (var
|
|
1469
|
-
t.call(s,
|
|
1468
|
+
for (var h in s)
|
|
1469
|
+
t.call(s, h) && s[h] && (a = i(a, h));
|
|
1470
1470
|
return a;
|
|
1471
1471
|
}
|
|
1472
1472
|
function i(s, a) {
|
|
@@ -1474,52 +1474,52 @@ var ar = { exports: {} };
|
|
|
1474
1474
|
}
|
|
1475
1475
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
1476
1476
|
})();
|
|
1477
|
-
})(
|
|
1478
|
-
var
|
|
1479
|
-
const
|
|
1480
|
-
const
|
|
1477
|
+
})(cr);
|
|
1478
|
+
var jn = cr.exports;
|
|
1479
|
+
const St = /* @__PURE__ */ zr(jn);
|
|
1480
|
+
const An = Ar(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
|
|
1481
1481
|
const s = ye(() => {
|
|
1482
|
-
const a = [],
|
|
1482
|
+
const a = [], h = (f) => {
|
|
1483
1483
|
let E = 0;
|
|
1484
|
-
return
|
|
1485
|
-
if (
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1484
|
+
return f.forEach((b) => {
|
|
1485
|
+
if (b.children && b.children.length > 0) {
|
|
1486
|
+
const I = h(b.children);
|
|
1487
|
+
I > E && (E = I);
|
|
1488
1488
|
}
|
|
1489
1489
|
}), E + 1;
|
|
1490
|
-
},
|
|
1491
|
-
a[E] || (a[E] = []),
|
|
1492
|
-
var
|
|
1493
|
-
let
|
|
1494
|
-
(
|
|
1495
|
-
let
|
|
1496
|
-
if (!
|
|
1497
|
-
const
|
|
1498
|
-
if (
|
|
1499
|
-
const J =
|
|
1500
|
-
|
|
1490
|
+
}, l = h(e), c = (f, E) => {
|
|
1491
|
+
a[E] || (a[E] = []), f.forEach((b) => {
|
|
1492
|
+
var u, j;
|
|
1493
|
+
let I = "left";
|
|
1494
|
+
(u = b.style) != null && u.textAlign && (I = b.style.textAlign);
|
|
1495
|
+
let A = n == null ? void 0 : n.find((P) => P.field === b.field);
|
|
1496
|
+
if (!A) {
|
|
1497
|
+
const P = b.field.split("||");
|
|
1498
|
+
if (P.length > 1) {
|
|
1499
|
+
const J = P[P.length - 1];
|
|
1500
|
+
A = n == null ? void 0 : n.find((z) => z.field === J);
|
|
1501
1501
|
} else
|
|
1502
|
-
|
|
1502
|
+
b.field.includes("__") && (A = n == null ? void 0 : n.find((J) => b.field.startsWith(`${J.field}_`)));
|
|
1503
1503
|
}
|
|
1504
|
-
(
|
|
1505
|
-
const
|
|
1506
|
-
key:
|
|
1507
|
-
title:
|
|
1508
|
-
width:
|
|
1509
|
-
align:
|
|
1510
|
-
className:
|
|
1504
|
+
(j = A == null ? void 0 : A.style) != null && j.textAlign && (I = A.style.textAlign);
|
|
1505
|
+
const x = {
|
|
1506
|
+
key: b.field || b.dataIndex || b.title || String(Math.random()),
|
|
1507
|
+
title: b.title,
|
|
1508
|
+
width: b.width,
|
|
1509
|
+
align: I,
|
|
1510
|
+
className: b.field,
|
|
1511
1511
|
// col.className not in type, ignore
|
|
1512
1512
|
colSpan: 1,
|
|
1513
1513
|
rowSpan: 1
|
|
1514
1514
|
};
|
|
1515
|
-
if (
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1515
|
+
if (b.children && b.children.length > 0) {
|
|
1516
|
+
const P = (J) => J.children && J.children.length > 0 ? J.children.reduce((z, N) => z + P(N), 0) : 1;
|
|
1517
|
+
x.colSpan = P(b), a[E].push(x), c(b.children, E + 1);
|
|
1518
1518
|
} else
|
|
1519
|
-
|
|
1519
|
+
x.rowSpan = l - E, a[E].push(x);
|
|
1520
1520
|
});
|
|
1521
1521
|
};
|
|
1522
|
-
return
|
|
1522
|
+
return c(e, 0), a;
|
|
1523
1523
|
}, [e, n]);
|
|
1524
1524
|
return /* @__PURE__ */ Z.jsx(
|
|
1525
1525
|
"div",
|
|
@@ -1529,38 +1529,38 @@ const jn = jr(({ columns: e, width: t, onScroll: r, meta: n }, i) => {
|
|
|
1529
1529
|
style: { overflow: "auto", width: t },
|
|
1530
1530
|
onScroll: r,
|
|
1531
1531
|
children: /* @__PURE__ */ Z.jsxs("table", { style: { tableLayout: "fixed", width: "100%" }, children: [
|
|
1532
|
-
/* @__PURE__ */ Z.jsx("colgroup", { children: e.map((a,
|
|
1533
|
-
const
|
|
1534
|
-
return
|
|
1532
|
+
/* @__PURE__ */ Z.jsx("colgroup", { children: e.map((a, h) => {
|
|
1533
|
+
const l = (c) => c.children && c.children.length > 0 ? c.children.flatMap(l) : [c.width];
|
|
1534
|
+
return l(a).map((c, f) => /* @__PURE__ */ Z.jsx("col", { style: { width: c, minWidth: c } }, `${h}-${f}`));
|
|
1535
1535
|
}).flat() }),
|
|
1536
|
-
/* @__PURE__ */ Z.jsx("thead", { className: "virtual-table-thead", children: s.map((a,
|
|
1536
|
+
/* @__PURE__ */ Z.jsx("thead", { className: "virtual-table-thead", children: s.map((a, h) => /* @__PURE__ */ Z.jsx("tr", { className: "virtual-table-row", children: a.map((l, c) => /* @__PURE__ */ Z.jsx(
|
|
1537
1537
|
"th",
|
|
1538
1538
|
{
|
|
1539
|
-
className:
|
|
1540
|
-
colSpan:
|
|
1541
|
-
rowSpan:
|
|
1542
|
-
title:
|
|
1539
|
+
className: St("virtual-table-cell", l.className),
|
|
1540
|
+
colSpan: l.colSpan,
|
|
1541
|
+
rowSpan: l.rowSpan,
|
|
1542
|
+
title: l.title,
|
|
1543
1543
|
style: {
|
|
1544
|
-
textAlign:
|
|
1544
|
+
textAlign: l.align
|
|
1545
1545
|
},
|
|
1546
|
-
children:
|
|
1546
|
+
children: l.title
|
|
1547
1547
|
},
|
|
1548
|
-
|
|
1549
|
-
)) },
|
|
1548
|
+
c
|
|
1549
|
+
)) }, h)) })
|
|
1550
1550
|
] })
|
|
1551
1551
|
}
|
|
1552
1552
|
);
|
|
1553
|
-
}),
|
|
1553
|
+
}), Et = (e) => {
|
|
1554
1554
|
if (e === null || typeof e != "object")
|
|
1555
1555
|
return e;
|
|
1556
1556
|
if (Array.isArray(e))
|
|
1557
|
-
return e.map((r) =>
|
|
1557
|
+
return e.map((r) => Et(r));
|
|
1558
1558
|
const t = {};
|
|
1559
1559
|
for (const r in e)
|
|
1560
|
-
Object.prototype.hasOwnProperty.call(e, r) && (t[r] =
|
|
1560
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = Et(e[r]));
|
|
1561
1561
|
return t;
|
|
1562
|
-
},
|
|
1563
|
-
function
|
|
1562
|
+
}, wt = 43, Mn = 100, xe = "-", Kt = "合计", Xe = 20;
|
|
1563
|
+
function zn(e) {
|
|
1564
1564
|
let t = e;
|
|
1565
1565
|
for (; t; ) {
|
|
1566
1566
|
if (t.dir)
|
|
@@ -1569,14 +1569,14 @@ function Mn(e) {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
return !1;
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function In(e, t) {
|
|
1573
1573
|
const [r, n] = Ie(t === "rtl");
|
|
1574
|
-
return
|
|
1575
|
-
e && (t || n(
|
|
1574
|
+
return _t(() => {
|
|
1575
|
+
e && (t || n(zn(e)));
|
|
1576
1576
|
}, [t, e]), r;
|
|
1577
1577
|
}
|
|
1578
|
-
const
|
|
1579
|
-
function
|
|
1578
|
+
const Ze = typeof window < "u" ? _t : Qe;
|
|
1579
|
+
function Gt(e) {
|
|
1580
1580
|
if (e !== void 0)
|
|
1581
1581
|
switch (typeof e) {
|
|
1582
1582
|
case "number":
|
|
@@ -1588,7 +1588,7 @@ function Yt(e) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function $n({
|
|
1592
1592
|
box: e,
|
|
1593
1593
|
defaultHeight: t,
|
|
1594
1594
|
defaultWidth: r,
|
|
@@ -1597,44 +1597,44 @@ function In({
|
|
|
1597
1597
|
mode: s,
|
|
1598
1598
|
style: a
|
|
1599
1599
|
}) {
|
|
1600
|
-
const { styleHeight:
|
|
1600
|
+
const { styleHeight: h, styleWidth: l } = ye(
|
|
1601
1601
|
() => ({
|
|
1602
|
-
styleHeight:
|
|
1603
|
-
styleWidth:
|
|
1602
|
+
styleHeight: Gt(a == null ? void 0 : a.height),
|
|
1603
|
+
styleWidth: Gt(a == null ? void 0 : a.width)
|
|
1604
1604
|
}),
|
|
1605
1605
|
[a == null ? void 0 : a.height, a == null ? void 0 : a.width]
|
|
1606
|
-
), [
|
|
1606
|
+
), [c, f] = Ie({
|
|
1607
1607
|
height: t,
|
|
1608
1608
|
width: r
|
|
1609
|
-
}), E = n || s === "only-height" &&
|
|
1610
|
-
return
|
|
1609
|
+
}), E = n || s === "only-height" && h !== void 0 || s === "only-width" && l !== void 0 || h !== void 0 && l !== void 0;
|
|
1610
|
+
return Ze(() => {
|
|
1611
1611
|
if (i === null || E)
|
|
1612
1612
|
return;
|
|
1613
|
-
const
|
|
1614
|
-
for (const
|
|
1615
|
-
const { contentRect:
|
|
1616
|
-
i ===
|
|
1617
|
-
height:
|
|
1618
|
-
width:
|
|
1613
|
+
const b = new ResizeObserver((I) => {
|
|
1614
|
+
for (const A of I) {
|
|
1615
|
+
const { contentRect: x, target: u } = A;
|
|
1616
|
+
i === u && f((j) => j.height === x.height && j.width === x.width ? j : {
|
|
1617
|
+
height: x.height,
|
|
1618
|
+
width: x.width
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
1621
1621
|
});
|
|
1622
|
-
return
|
|
1623
|
-
|
|
1622
|
+
return b.observe(i, { box: e }), () => {
|
|
1623
|
+
b == null || b.unobserve(i);
|
|
1624
1624
|
};
|
|
1625
|
-
}, [e, E, i,
|
|
1625
|
+
}, [e, E, i, h, l]), ye(
|
|
1626
1626
|
() => ({
|
|
1627
|
-
height:
|
|
1628
|
-
width:
|
|
1627
|
+
height: h ?? c.height,
|
|
1628
|
+
width: l ?? c.width
|
|
1629
1629
|
}),
|
|
1630
|
-
[
|
|
1630
|
+
[c, h, l]
|
|
1631
1631
|
);
|
|
1632
1632
|
}
|
|
1633
1633
|
function Ln(e) {
|
|
1634
1634
|
const t = ze(() => {
|
|
1635
1635
|
throw new Error("Cannot call during render.");
|
|
1636
1636
|
});
|
|
1637
|
-
return
|
|
1637
|
+
return Ze(() => {
|
|
1638
1638
|
t.current = e;
|
|
1639
1639
|
}, [e]), ge((r) => {
|
|
1640
1640
|
var n;
|
|
@@ -1642,7 +1642,7 @@ function Ln(e) {
|
|
|
1642
1642
|
}, [t]);
|
|
1643
1643
|
}
|
|
1644
1644
|
let De = null;
|
|
1645
|
-
function
|
|
1645
|
+
function kn(e = !1) {
|
|
1646
1646
|
if (De === null || e) {
|
|
1647
1647
|
const t = document.createElement("div"), r = t.style;
|
|
1648
1648
|
r.width = "50px", r.height = "50px", r.overflow = "scroll", r.direction = "rtl";
|
|
@@ -1651,14 +1651,14 @@ function $n(e = !1) {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
return De;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function lt({
|
|
1655
1655
|
containerElement: e,
|
|
1656
1656
|
direction: t,
|
|
1657
1657
|
isRtl: r,
|
|
1658
1658
|
scrollOffset: n
|
|
1659
1659
|
}) {
|
|
1660
1660
|
if (t === "horizontal" && r)
|
|
1661
|
-
switch (
|
|
1661
|
+
switch (kn()) {
|
|
1662
1662
|
case "negative":
|
|
1663
1663
|
return -n;
|
|
1664
1664
|
case "positive-descending": {
|
|
@@ -1685,7 +1685,7 @@ function Be(e, t) {
|
|
|
1685
1685
|
return !1;
|
|
1686
1686
|
return !0;
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function ur({
|
|
1689
1689
|
cachedBounds: e,
|
|
1690
1690
|
itemCount: t,
|
|
1691
1691
|
itemSize: r
|
|
@@ -1703,7 +1703,7 @@ function cr({
|
|
|
1703
1703
|
return t * i;
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function Dn({
|
|
1707
1707
|
align: e,
|
|
1708
1708
|
cachedBounds: t,
|
|
1709
1709
|
index: r,
|
|
@@ -1716,30 +1716,30 @@ function kn({
|
|
|
1716
1716
|
throw RangeError(`Invalid index specified: ${r}`, {
|
|
1717
1717
|
cause: `Index ${r} is not within the range of 0 - ${n - 1}`
|
|
1718
1718
|
});
|
|
1719
|
-
const
|
|
1719
|
+
const h = ur({
|
|
1720
1720
|
cachedBounds: t,
|
|
1721
1721
|
itemCount: n,
|
|
1722
1722
|
itemSize: i
|
|
1723
|
-
}),
|
|
1723
|
+
}), l = t.get(r), c = Math.max(
|
|
1724
1724
|
0,
|
|
1725
|
-
Math.min(
|
|
1726
|
-
),
|
|
1725
|
+
Math.min(h - a, l.scrollOffset)
|
|
1726
|
+
), f = Math.max(
|
|
1727
1727
|
0,
|
|
1728
|
-
|
|
1728
|
+
l.scrollOffset - a + l.size
|
|
1729
1729
|
);
|
|
1730
|
-
switch (e === "smart" && (s >=
|
|
1730
|
+
switch (e === "smart" && (s >= f && s <= c ? e = "auto" : e = "center"), e) {
|
|
1731
1731
|
case "start":
|
|
1732
|
-
return
|
|
1732
|
+
return c;
|
|
1733
1733
|
case "end":
|
|
1734
|
-
return
|
|
1734
|
+
return f;
|
|
1735
1735
|
case "center":
|
|
1736
|
-
return
|
|
1736
|
+
return l.scrollOffset <= a / 2 ? 0 : l.scrollOffset + l.size / 2 >= h - a / 2 ? h - a : l.scrollOffset + l.size / 2 - a / 2;
|
|
1737
1737
|
case "auto":
|
|
1738
1738
|
default:
|
|
1739
|
-
return s >=
|
|
1739
|
+
return s >= f && s <= c ? s : s < f ? f : c;
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function ct({
|
|
1743
1743
|
cachedBounds: e,
|
|
1744
1744
|
containerScrollOffset: t,
|
|
1745
1745
|
containerSize: r,
|
|
@@ -1747,27 +1747,27 @@ function lt({
|
|
|
1747
1747
|
overscanCount: i
|
|
1748
1748
|
}) {
|
|
1749
1749
|
const s = n - 1;
|
|
1750
|
-
let a = 0,
|
|
1751
|
-
for (;
|
|
1752
|
-
const E = e.get(
|
|
1750
|
+
let a = 0, h = -1, l = 0, c = -1, f = 0;
|
|
1751
|
+
for (; f < s; ) {
|
|
1752
|
+
const E = e.get(f);
|
|
1753
1753
|
if (E.scrollOffset + E.size > t)
|
|
1754
1754
|
break;
|
|
1755
|
-
|
|
1755
|
+
f++;
|
|
1756
1756
|
}
|
|
1757
|
-
for (a =
|
|
1758
|
-
const E = e.get(
|
|
1757
|
+
for (a = f, l = Math.max(0, a - i); f < s; ) {
|
|
1758
|
+
const E = e.get(f);
|
|
1759
1759
|
if (E.scrollOffset + E.size >= t + r)
|
|
1760
1760
|
break;
|
|
1761
|
-
|
|
1761
|
+
f++;
|
|
1762
1762
|
}
|
|
1763
|
-
return
|
|
1763
|
+
return h = Math.min(s, f), c = Math.min(n - 1, h + i), a < 0 && (a = 0, h = -1, l = 0, c = -1), {
|
|
1764
1764
|
startIndexVisible: a,
|
|
1765
|
-
stopIndexVisible:
|
|
1766
|
-
startIndexOverscan:
|
|
1767
|
-
stopIndexOverscan:
|
|
1765
|
+
stopIndexVisible: h,
|
|
1766
|
+
startIndexOverscan: l,
|
|
1767
|
+
stopIndexOverscan: c
|
|
1768
1768
|
};
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function Fn({
|
|
1771
1771
|
itemCount: e,
|
|
1772
1772
|
itemProps: t,
|
|
1773
1773
|
itemSize: r
|
|
@@ -1777,30 +1777,30 @@ function Dn({
|
|
|
1777
1777
|
get(i) {
|
|
1778
1778
|
for (Pe(i < e, `Invalid index ${i}`); n.size - 1 < i; ) {
|
|
1779
1779
|
const a = n.size;
|
|
1780
|
-
let
|
|
1780
|
+
let h;
|
|
1781
1781
|
switch (typeof r) {
|
|
1782
1782
|
case "function": {
|
|
1783
|
-
|
|
1783
|
+
h = r(a, t);
|
|
1784
1784
|
break;
|
|
1785
1785
|
}
|
|
1786
1786
|
case "number": {
|
|
1787
|
-
|
|
1787
|
+
h = r;
|
|
1788
1788
|
break;
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
1791
|
if (a === 0)
|
|
1792
1792
|
n.set(a, {
|
|
1793
|
-
size:
|
|
1793
|
+
size: h,
|
|
1794
1794
|
scrollOffset: 0
|
|
1795
1795
|
});
|
|
1796
1796
|
else {
|
|
1797
|
-
const
|
|
1797
|
+
const l = n.get(a - 1);
|
|
1798
1798
|
Pe(
|
|
1799
|
-
|
|
1799
|
+
l !== void 0,
|
|
1800
1800
|
`Unexpected bounds cache miss for index ${i}`
|
|
1801
1801
|
), n.set(a, {
|
|
1802
|
-
scrollOffset:
|
|
1803
|
-
size:
|
|
1802
|
+
scrollOffset: l.scrollOffset + l.size,
|
|
1803
|
+
size: h
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
1806
1806
|
}
|
|
@@ -1818,13 +1818,13 @@ function Dn({
|
|
|
1818
1818
|
}
|
|
1819
1819
|
};
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Nn({
|
|
1822
1822
|
itemCount: e,
|
|
1823
1823
|
itemProps: t,
|
|
1824
1824
|
itemSize: r
|
|
1825
1825
|
}) {
|
|
1826
1826
|
return ye(
|
|
1827
|
-
() =>
|
|
1827
|
+
() => Fn({
|
|
1828
1828
|
itemCount: e,
|
|
1829
1829
|
itemProps: t,
|
|
1830
1830
|
itemSize: r
|
|
@@ -1832,7 +1832,7 @@ function Fn({
|
|
|
1832
1832
|
[e, t, r]
|
|
1833
1833
|
);
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Wn({
|
|
1836
1836
|
containerSize: e,
|
|
1837
1837
|
itemSize: t
|
|
1838
1838
|
}) {
|
|
@@ -1855,7 +1855,7 @@ function Nn({
|
|
|
1855
1855
|
}
|
|
1856
1856
|
return r;
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function Ut({
|
|
1859
1859
|
containerElement: e,
|
|
1860
1860
|
containerStyle: t,
|
|
1861
1861
|
defaultContainerSize: r = 0,
|
|
@@ -1863,104 +1863,104 @@ function Kt({
|
|
|
1863
1863
|
isRtl: i = !1,
|
|
1864
1864
|
itemCount: s,
|
|
1865
1865
|
itemProps: a,
|
|
1866
|
-
itemSize:
|
|
1867
|
-
onResize:
|
|
1868
|
-
overscanCount:
|
|
1866
|
+
itemSize: h,
|
|
1867
|
+
onResize: l,
|
|
1868
|
+
overscanCount: c
|
|
1869
1869
|
}) {
|
|
1870
|
-
const { height:
|
|
1870
|
+
const { height: f = r, width: E = r } = $n({
|
|
1871
1871
|
defaultHeight: n === "vertical" ? r : void 0,
|
|
1872
1872
|
defaultWidth: n === "horizontal" ? r : void 0,
|
|
1873
1873
|
element: e,
|
|
1874
1874
|
mode: n === "vertical" ? "only-height" : "only-width",
|
|
1875
1875
|
style: t
|
|
1876
|
-
}),
|
|
1876
|
+
}), b = ze({
|
|
1877
1877
|
height: 0,
|
|
1878
1878
|
width: 0
|
|
1879
|
-
}),
|
|
1880
|
-
|
|
1881
|
-
if (typeof
|
|
1882
|
-
const M =
|
|
1883
|
-
(M.height !==
|
|
1884
|
-
}
|
|
1885
|
-
}, [
|
|
1886
|
-
const
|
|
1879
|
+
}), I = n === "vertical" ? f : E, A = Wn({ containerSize: I, itemSize: h });
|
|
1880
|
+
_t(() => {
|
|
1881
|
+
if (typeof l == "function") {
|
|
1882
|
+
const M = b.current;
|
|
1883
|
+
(M.height !== f || M.width !== E) && (l({ height: f, width: E }, { ...M }), M.height = f, M.width = E);
|
|
1884
|
+
}
|
|
1885
|
+
}, [f, l, E]);
|
|
1886
|
+
const x = Nn({
|
|
1887
1887
|
itemCount: s,
|
|
1888
1888
|
itemProps: a,
|
|
1889
|
-
itemSize:
|
|
1890
|
-
}),
|
|
1891
|
-
(M) =>
|
|
1892
|
-
[
|
|
1893
|
-
), [
|
|
1894
|
-
() =>
|
|
1895
|
-
cachedBounds:
|
|
1889
|
+
itemSize: A
|
|
1890
|
+
}), u = ge(
|
|
1891
|
+
(M) => x.get(M),
|
|
1892
|
+
[x]
|
|
1893
|
+
), [j, P] = Ie(
|
|
1894
|
+
() => ct({
|
|
1895
|
+
cachedBounds: x,
|
|
1896
1896
|
// TODO Potentially support a defaultScrollOffset prop?
|
|
1897
1897
|
containerScrollOffset: 0,
|
|
1898
|
-
containerSize:
|
|
1898
|
+
containerSize: I,
|
|
1899
1899
|
itemCount: s,
|
|
1900
|
-
overscanCount:
|
|
1900
|
+
overscanCount: c
|
|
1901
1901
|
})
|
|
1902
1902
|
), {
|
|
1903
1903
|
startIndexVisible: J,
|
|
1904
|
-
startIndexOverscan:
|
|
1905
|
-
stopIndexVisible:
|
|
1904
|
+
startIndexOverscan: z,
|
|
1905
|
+
stopIndexVisible: N,
|
|
1906
1906
|
stopIndexOverscan: D
|
|
1907
1907
|
} = {
|
|
1908
|
-
startIndexVisible: Math.min(s - 1,
|
|
1909
|
-
startIndexOverscan: Math.min(s - 1,
|
|
1910
|
-
stopIndexVisible: Math.min(s - 1,
|
|
1911
|
-
stopIndexOverscan: Math.min(s - 1,
|
|
1912
|
-
},
|
|
1913
|
-
() =>
|
|
1914
|
-
cachedBounds:
|
|
1908
|
+
startIndexVisible: Math.min(s - 1, j.startIndexVisible),
|
|
1909
|
+
startIndexOverscan: Math.min(s - 1, j.startIndexOverscan),
|
|
1910
|
+
stopIndexVisible: Math.min(s - 1, j.stopIndexVisible),
|
|
1911
|
+
stopIndexOverscan: Math.min(s - 1, j.stopIndexOverscan)
|
|
1912
|
+
}, k = ge(
|
|
1913
|
+
() => ur({
|
|
1914
|
+
cachedBounds: x,
|
|
1915
1915
|
itemCount: s,
|
|
1916
|
-
itemSize:
|
|
1916
|
+
itemSize: A
|
|
1917
1917
|
}),
|
|
1918
|
-
[
|
|
1918
|
+
[x, s, A]
|
|
1919
1919
|
), p = ge(
|
|
1920
1920
|
(M) => {
|
|
1921
|
-
const W =
|
|
1921
|
+
const W = lt({
|
|
1922
1922
|
containerElement: e,
|
|
1923
1923
|
direction: n,
|
|
1924
1924
|
isRtl: i,
|
|
1925
1925
|
scrollOffset: M
|
|
1926
1926
|
});
|
|
1927
|
-
return
|
|
1928
|
-
cachedBounds:
|
|
1927
|
+
return ct({
|
|
1928
|
+
cachedBounds: x,
|
|
1929
1929
|
containerScrollOffset: W,
|
|
1930
|
-
containerSize:
|
|
1930
|
+
containerSize: I,
|
|
1931
1931
|
itemCount: s,
|
|
1932
|
-
overscanCount:
|
|
1932
|
+
overscanCount: c
|
|
1933
1933
|
});
|
|
1934
1934
|
},
|
|
1935
1935
|
[
|
|
1936
|
-
|
|
1936
|
+
x,
|
|
1937
1937
|
e,
|
|
1938
|
-
|
|
1938
|
+
I,
|
|
1939
1939
|
n,
|
|
1940
1940
|
i,
|
|
1941
1941
|
s,
|
|
1942
|
-
|
|
1942
|
+
c
|
|
1943
1943
|
]
|
|
1944
1944
|
);
|
|
1945
|
-
|
|
1945
|
+
Ze(() => {
|
|
1946
1946
|
const M = (n === "vertical" ? e == null ? void 0 : e.scrollTop : e == null ? void 0 : e.scrollLeft) ?? 0;
|
|
1947
|
-
|
|
1948
|
-
}, [e, n, p]),
|
|
1947
|
+
P(p(M));
|
|
1948
|
+
}, [e, n, p]), Ze(() => {
|
|
1949
1949
|
if (!e)
|
|
1950
1950
|
return;
|
|
1951
1951
|
const M = () => {
|
|
1952
|
-
|
|
1953
|
-
const { scrollLeft:
|
|
1952
|
+
P((W) => {
|
|
1953
|
+
const { scrollLeft: H, scrollTop: K } = e, te = lt({
|
|
1954
1954
|
containerElement: e,
|
|
1955
1955
|
direction: n,
|
|
1956
1956
|
isRtl: i,
|
|
1957
|
-
scrollOffset: n === "vertical" ?
|
|
1958
|
-
}), he =
|
|
1959
|
-
cachedBounds:
|
|
1957
|
+
scrollOffset: n === "vertical" ? K : H
|
|
1958
|
+
}), he = ct({
|
|
1959
|
+
cachedBounds: x,
|
|
1960
1960
|
containerScrollOffset: te,
|
|
1961
|
-
containerSize:
|
|
1961
|
+
containerSize: I,
|
|
1962
1962
|
itemCount: s,
|
|
1963
|
-
overscanCount:
|
|
1963
|
+
overscanCount: c
|
|
1964
1964
|
});
|
|
1965
1965
|
return Be(he, W) ? W : he;
|
|
1966
1966
|
});
|
|
@@ -1969,56 +1969,56 @@ function Kt({
|
|
|
1969
1969
|
e.removeEventListener("scroll", M);
|
|
1970
1970
|
};
|
|
1971
1971
|
}, [
|
|
1972
|
-
|
|
1972
|
+
x,
|
|
1973
1973
|
e,
|
|
1974
|
-
|
|
1974
|
+
I,
|
|
1975
1975
|
n,
|
|
1976
1976
|
s,
|
|
1977
|
-
|
|
1977
|
+
c
|
|
1978
1978
|
]);
|
|
1979
|
-
const
|
|
1979
|
+
const F = Ln(
|
|
1980
1980
|
({
|
|
1981
1981
|
align: M = "auto",
|
|
1982
1982
|
containerScrollOffset: W,
|
|
1983
|
-
index:
|
|
1983
|
+
index: H
|
|
1984
1984
|
}) => {
|
|
1985
|
-
let
|
|
1985
|
+
let K = Dn({
|
|
1986
1986
|
align: M,
|
|
1987
|
-
cachedBounds:
|
|
1987
|
+
cachedBounds: x,
|
|
1988
1988
|
containerScrollOffset: W,
|
|
1989
|
-
containerSize:
|
|
1990
|
-
index:
|
|
1989
|
+
containerSize: I,
|
|
1990
|
+
index: H,
|
|
1991
1991
|
itemCount: s,
|
|
1992
|
-
itemSize:
|
|
1992
|
+
itemSize: A
|
|
1993
1993
|
});
|
|
1994
1994
|
if (e) {
|
|
1995
|
-
if (
|
|
1995
|
+
if (K = lt({
|
|
1996
1996
|
containerElement: e,
|
|
1997
1997
|
direction: n,
|
|
1998
1998
|
isRtl: i,
|
|
1999
|
-
scrollOffset:
|
|
1999
|
+
scrollOffset: K
|
|
2000
2000
|
}), typeof e.scrollTo != "function") {
|
|
2001
|
-
const te = p(
|
|
2002
|
-
Be(
|
|
2001
|
+
const te = p(K);
|
|
2002
|
+
Be(j, te) || P(te);
|
|
2003
2003
|
}
|
|
2004
|
-
return
|
|
2004
|
+
return K;
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
2007
|
);
|
|
2008
2008
|
return {
|
|
2009
|
-
getCellBounds:
|
|
2010
|
-
getEstimatedSize:
|
|
2011
|
-
scrollToIndex:
|
|
2012
|
-
startIndexOverscan:
|
|
2009
|
+
getCellBounds: u,
|
|
2010
|
+
getEstimatedSize: k,
|
|
2011
|
+
scrollToIndex: F,
|
|
2012
|
+
startIndexOverscan: z,
|
|
2013
2013
|
startIndexVisible: J,
|
|
2014
2014
|
stopIndexOverscan: D,
|
|
2015
|
-
stopIndexVisible:
|
|
2015
|
+
stopIndexVisible: N
|
|
2016
2016
|
};
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Vn(e) {
|
|
2019
2019
|
return ye(() => e, Object.values(e));
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function Hn(e, t) {
|
|
2022
2022
|
const {
|
|
2023
2023
|
ariaAttributes: r,
|
|
2024
2024
|
style: n,
|
|
@@ -2026,11 +2026,11 @@ function Vn(e, t) {
|
|
|
2026
2026
|
} = e, {
|
|
2027
2027
|
ariaAttributes: s,
|
|
2028
2028
|
style: a,
|
|
2029
|
-
...
|
|
2029
|
+
...h
|
|
2030
2030
|
} = t;
|
|
2031
|
-
return Be(r, s) && Be(n, a) && Be(i,
|
|
2031
|
+
return Be(r, s) && Be(n, a) && Be(i, h);
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function Bn({
|
|
2034
2034
|
cellComponent: e,
|
|
2035
2035
|
cellProps: t,
|
|
2036
2036
|
children: r,
|
|
@@ -2038,40 +2038,40 @@ function Hn({
|
|
|
2038
2038
|
columnCount: i,
|
|
2039
2039
|
columnWidth: s,
|
|
2040
2040
|
defaultHeight: a = 0,
|
|
2041
|
-
defaultWidth:
|
|
2042
|
-
dir:
|
|
2043
|
-
gridRef:
|
|
2044
|
-
onCellsRendered:
|
|
2041
|
+
defaultWidth: h = 0,
|
|
2042
|
+
dir: l,
|
|
2043
|
+
gridRef: c,
|
|
2044
|
+
onCellsRendered: f,
|
|
2045
2045
|
onResize: E,
|
|
2046
|
-
overscanCount:
|
|
2047
|
-
rowCount:
|
|
2048
|
-
rowHeight:
|
|
2049
|
-
style:
|
|
2050
|
-
tagName:
|
|
2051
|
-
...
|
|
2046
|
+
overscanCount: b = 3,
|
|
2047
|
+
rowCount: I,
|
|
2048
|
+
rowHeight: A,
|
|
2049
|
+
style: x,
|
|
2050
|
+
tagName: u = "div",
|
|
2051
|
+
...j
|
|
2052
2052
|
}) {
|
|
2053
|
-
const
|
|
2054
|
-
() =>
|
|
2053
|
+
const P = Vn(t), J = ye(
|
|
2054
|
+
() => Jt(e, Hn),
|
|
2055
2055
|
[e]
|
|
2056
|
-
), [
|
|
2057
|
-
getCellBounds:
|
|
2056
|
+
), [z, N] = Ie(null), D = In(z, l), {
|
|
2057
|
+
getCellBounds: k,
|
|
2058
2058
|
getEstimatedSize: p,
|
|
2059
|
-
startIndexOverscan:
|
|
2059
|
+
startIndexOverscan: F,
|
|
2060
2060
|
startIndexVisible: M,
|
|
2061
2061
|
scrollToIndex: W,
|
|
2062
|
-
stopIndexOverscan:
|
|
2063
|
-
stopIndexVisible:
|
|
2064
|
-
} =
|
|
2065
|
-
containerElement:
|
|
2066
|
-
containerStyle:
|
|
2067
|
-
defaultContainerSize:
|
|
2062
|
+
stopIndexOverscan: H,
|
|
2063
|
+
stopIndexVisible: K
|
|
2064
|
+
} = Ut({
|
|
2065
|
+
containerElement: z,
|
|
2066
|
+
containerStyle: x,
|
|
2067
|
+
defaultContainerSize: h,
|
|
2068
2068
|
direction: "horizontal",
|
|
2069
2069
|
isRtl: D,
|
|
2070
2070
|
itemCount: i,
|
|
2071
|
-
itemProps:
|
|
2071
|
+
itemProps: P,
|
|
2072
2072
|
itemSize: s,
|
|
2073
2073
|
onResize: E,
|
|
2074
|
-
overscanCount:
|
|
2074
|
+
overscanCount: b
|
|
2075
2075
|
}), {
|
|
2076
2076
|
getCellBounds: te,
|
|
2077
2077
|
getEstimatedSize: he,
|
|
@@ -2080,149 +2080,149 @@ function Hn({
|
|
|
2080
2080
|
scrollToIndex: _e,
|
|
2081
2081
|
stopIndexOverscan: Ee,
|
|
2082
2082
|
stopIndexVisible: Se
|
|
2083
|
-
} =
|
|
2084
|
-
containerElement:
|
|
2085
|
-
containerStyle:
|
|
2083
|
+
} = Ut({
|
|
2084
|
+
containerElement: z,
|
|
2085
|
+
containerStyle: x,
|
|
2086
2086
|
defaultContainerSize: a,
|
|
2087
2087
|
direction: "vertical",
|
|
2088
|
-
itemCount:
|
|
2089
|
-
itemProps:
|
|
2090
|
-
itemSize:
|
|
2088
|
+
itemCount: I,
|
|
2089
|
+
itemProps: P,
|
|
2090
|
+
itemSize: A,
|
|
2091
2091
|
onResize: E,
|
|
2092
|
-
overscanCount:
|
|
2092
|
+
overscanCount: b
|
|
2093
2093
|
});
|
|
2094
|
-
|
|
2095
|
-
|
|
2094
|
+
Mr(
|
|
2095
|
+
c,
|
|
2096
2096
|
() => ({
|
|
2097
2097
|
get element() {
|
|
2098
|
-
return
|
|
2098
|
+
return z;
|
|
2099
2099
|
},
|
|
2100
2100
|
scrollToCell({
|
|
2101
2101
|
behavior: w = "auto",
|
|
2102
|
-
columnAlign:
|
|
2103
|
-
columnIndex:
|
|
2102
|
+
columnAlign: y = "auto",
|
|
2103
|
+
columnIndex: v,
|
|
2104
2104
|
rowAlign: O = "auto",
|
|
2105
|
-
rowIndex:
|
|
2105
|
+
rowIndex: _
|
|
2106
2106
|
}) {
|
|
2107
|
-
const
|
|
2108
|
-
align:
|
|
2109
|
-
containerScrollOffset: (
|
|
2110
|
-
index:
|
|
2111
|
-
}),
|
|
2107
|
+
const R = W({
|
|
2108
|
+
align: y,
|
|
2109
|
+
containerScrollOffset: (z == null ? void 0 : z.scrollLeft) ?? 0,
|
|
2110
|
+
index: v
|
|
2111
|
+
}), S = _e({
|
|
2112
2112
|
align: O,
|
|
2113
|
-
containerScrollOffset: (
|
|
2114
|
-
index:
|
|
2113
|
+
containerScrollOffset: (z == null ? void 0 : z.scrollTop) ?? 0,
|
|
2114
|
+
index: _
|
|
2115
2115
|
});
|
|
2116
|
-
typeof (
|
|
2116
|
+
typeof (z == null ? void 0 : z.scrollTo) == "function" && z.scrollTo({
|
|
2117
2117
|
behavior: w,
|
|
2118
|
-
left:
|
|
2119
|
-
top:
|
|
2118
|
+
left: R,
|
|
2119
|
+
top: S
|
|
2120
2120
|
});
|
|
2121
2121
|
},
|
|
2122
2122
|
scrollToColumn({
|
|
2123
2123
|
align: w = "auto",
|
|
2124
|
-
behavior:
|
|
2125
|
-
index:
|
|
2124
|
+
behavior: y = "auto",
|
|
2125
|
+
index: v
|
|
2126
2126
|
}) {
|
|
2127
2127
|
const O = W({
|
|
2128
2128
|
align: w,
|
|
2129
|
-
containerScrollOffset: (
|
|
2130
|
-
index:
|
|
2129
|
+
containerScrollOffset: (z == null ? void 0 : z.scrollLeft) ?? 0,
|
|
2130
|
+
index: v
|
|
2131
2131
|
});
|
|
2132
|
-
typeof (
|
|
2133
|
-
behavior:
|
|
2132
|
+
typeof (z == null ? void 0 : z.scrollTo) == "function" && z.scrollTo({
|
|
2133
|
+
behavior: y,
|
|
2134
2134
|
left: O
|
|
2135
2135
|
});
|
|
2136
2136
|
},
|
|
2137
2137
|
scrollToRow({
|
|
2138
2138
|
align: w = "auto",
|
|
2139
|
-
behavior:
|
|
2140
|
-
index:
|
|
2139
|
+
behavior: y = "auto",
|
|
2140
|
+
index: v
|
|
2141
2141
|
}) {
|
|
2142
2142
|
const O = _e({
|
|
2143
2143
|
align: w,
|
|
2144
|
-
containerScrollOffset: (
|
|
2145
|
-
index:
|
|
2144
|
+
containerScrollOffset: (z == null ? void 0 : z.scrollTop) ?? 0,
|
|
2145
|
+
index: v
|
|
2146
2146
|
});
|
|
2147
|
-
typeof (
|
|
2148
|
-
behavior:
|
|
2147
|
+
typeof (z == null ? void 0 : z.scrollTo) == "function" && z.scrollTo({
|
|
2148
|
+
behavior: y,
|
|
2149
2149
|
top: O
|
|
2150
2150
|
});
|
|
2151
2151
|
}
|
|
2152
2152
|
}),
|
|
2153
|
-
[
|
|
2154
|
-
),
|
|
2155
|
-
|
|
2153
|
+
[z, W, _e]
|
|
2154
|
+
), Qe(() => {
|
|
2155
|
+
F >= 0 && H >= 0 && be >= 0 && Ee >= 0 && f && f(
|
|
2156
2156
|
{
|
|
2157
2157
|
columnStartIndex: M,
|
|
2158
|
-
columnStopIndex:
|
|
2158
|
+
columnStopIndex: K,
|
|
2159
2159
|
rowStartIndex: Te,
|
|
2160
2160
|
rowStopIndex: Se
|
|
2161
2161
|
},
|
|
2162
2162
|
{
|
|
2163
|
-
columnStartIndex:
|
|
2164
|
-
columnStopIndex:
|
|
2163
|
+
columnStartIndex: F,
|
|
2164
|
+
columnStopIndex: H,
|
|
2165
2165
|
rowStartIndex: be,
|
|
2166
2166
|
rowStopIndex: Ee
|
|
2167
2167
|
}
|
|
2168
2168
|
);
|
|
2169
2169
|
}, [
|
|
2170
|
-
|
|
2171
|
-
|
|
2170
|
+
f,
|
|
2171
|
+
F,
|
|
2172
2172
|
M,
|
|
2173
|
-
|
|
2174
|
-
|
|
2173
|
+
H,
|
|
2174
|
+
K,
|
|
2175
2175
|
be,
|
|
2176
2176
|
Te,
|
|
2177
2177
|
Ee,
|
|
2178
2178
|
Se
|
|
2179
2179
|
]);
|
|
2180
|
-
const
|
|
2180
|
+
const g = ye(() => {
|
|
2181
2181
|
const w = [];
|
|
2182
|
-
if (i > 0 &&
|
|
2183
|
-
for (let
|
|
2184
|
-
const
|
|
2185
|
-
for (let
|
|
2186
|
-
const
|
|
2182
|
+
if (i > 0 && I > 0)
|
|
2183
|
+
for (let y = be; y <= Ee; y++) {
|
|
2184
|
+
const v = te(y), O = [];
|
|
2185
|
+
for (let _ = F; _ <= H; _++) {
|
|
2186
|
+
const R = k(_);
|
|
2187
2187
|
O.push(
|
|
2188
|
-
/* @__PURE__ */
|
|
2188
|
+
/* @__PURE__ */ It(
|
|
2189
2189
|
J,
|
|
2190
2190
|
{
|
|
2191
|
-
|
|
2191
|
+
...P,
|
|
2192
2192
|
ariaAttributes: {
|
|
2193
|
-
"aria-colindex":
|
|
2193
|
+
"aria-colindex": _ + 1,
|
|
2194
2194
|
role: "gridcell"
|
|
2195
2195
|
},
|
|
2196
|
-
columnIndex:
|
|
2197
|
-
key:
|
|
2198
|
-
rowIndex:
|
|
2196
|
+
columnIndex: _,
|
|
2197
|
+
key: _,
|
|
2198
|
+
rowIndex: y,
|
|
2199
2199
|
style: {
|
|
2200
2200
|
position: "absolute",
|
|
2201
2201
|
left: D ? void 0 : 0,
|
|
2202
2202
|
right: D ? 0 : void 0,
|
|
2203
|
-
transform: `translate(${D ? -
|
|
2204
|
-
height:
|
|
2205
|
-
width:
|
|
2203
|
+
transform: `translate(${D ? -R.scrollOffset : R.scrollOffset}px, ${v.scrollOffset}px)`,
|
|
2204
|
+
height: v.size,
|
|
2205
|
+
width: R.size
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
2208
|
)
|
|
2209
2209
|
);
|
|
2210
2210
|
}
|
|
2211
2211
|
w.push(
|
|
2212
|
-
/* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex":
|
|
2212
|
+
/* @__PURE__ */ Z.jsx("div", { role: "row", "aria-rowindex": y + 1, children: O }, y)
|
|
2213
2213
|
);
|
|
2214
2214
|
}
|
|
2215
2215
|
return w;
|
|
2216
2216
|
}, [
|
|
2217
2217
|
J,
|
|
2218
|
-
|
|
2218
|
+
P,
|
|
2219
2219
|
i,
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2220
|
+
F,
|
|
2221
|
+
H,
|
|
2222
|
+
k,
|
|
2223
2223
|
te,
|
|
2224
2224
|
D,
|
|
2225
|
-
|
|
2225
|
+
I,
|
|
2226
2226
|
be,
|
|
2227
2227
|
Ee
|
|
2228
2228
|
]), C = /* @__PURE__ */ Z.jsx(
|
|
@@ -2236,170 +2236,208 @@ function Hn({
|
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
2238
|
);
|
|
2239
|
-
return
|
|
2240
|
-
|
|
2239
|
+
return It(
|
|
2240
|
+
u,
|
|
2241
2241
|
{
|
|
2242
2242
|
"aria-colcount": i,
|
|
2243
|
-
"aria-rowcount":
|
|
2243
|
+
"aria-rowcount": I,
|
|
2244
2244
|
role: "grid",
|
|
2245
|
-
...
|
|
2245
|
+
...j,
|
|
2246
2246
|
className: n,
|
|
2247
|
-
dir:
|
|
2248
|
-
ref:
|
|
2247
|
+
dir: l,
|
|
2248
|
+
ref: N,
|
|
2249
2249
|
style: {
|
|
2250
2250
|
position: "relative",
|
|
2251
2251
|
maxHeight: "100%",
|
|
2252
2252
|
maxWidth: "100%",
|
|
2253
2253
|
flexGrow: 1,
|
|
2254
2254
|
overflow: "auto",
|
|
2255
|
-
...
|
|
2255
|
+
...x
|
|
2256
2256
|
}
|
|
2257
2257
|
},
|
|
2258
|
-
|
|
2258
|
+
g,
|
|
2259
2259
|
r,
|
|
2260
2260
|
C
|
|
2261
2261
|
);
|
|
2262
2262
|
}
|
|
2263
|
-
const
|
|
2263
|
+
const Yn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
|
|
2264
2264
|
/* @__PURE__ */ Z.jsx("path", { d: "M518.5 360.3a7.95 7.95 0 00-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z" }),
|
|
2265
2265
|
/* @__PURE__ */ Z.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" })
|
|
2266
|
-
] }),
|
|
2266
|
+
] }), Kn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focusable: "false", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true", ...e, children: [
|
|
2267
2267
|
/* @__PURE__ */ Z.jsx("path", { d: "M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z" }),
|
|
2268
2268
|
/* @__PURE__ */ Z.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" })
|
|
2269
|
-
] }),
|
|
2269
|
+
] }), Gn = (e, t, r) => {
|
|
2270
2270
|
var i;
|
|
2271
2271
|
const n = (i = r[e]) == null ? void 0 : i[t];
|
|
2272
|
-
return
|
|
2273
|
-
},
|
|
2274
|
-
var
|
|
2275
|
-
const
|
|
2276
|
-
if (!
|
|
2272
|
+
return n ? n.rowspan === 0 || n.colspan === 0 : !1;
|
|
2273
|
+
}, Un = (e, t, r, n, i, s, a) => {
|
|
2274
|
+
var x, u;
|
|
2275
|
+
const h = (x = n[e]) == null ? void 0 : x[t], l = a || h;
|
|
2276
|
+
if (!l)
|
|
2277
2277
|
return;
|
|
2278
|
-
const
|
|
2279
|
-
let
|
|
2280
|
-
const
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
_ += Number((P = i[d]) == null ? void 0 : P.width) || 100;
|
|
2287
|
-
l.width = _;
|
|
2278
|
+
const c = { ...r };
|
|
2279
|
+
let f = i[t];
|
|
2280
|
+
const E = f.field.split("||"), b = E[E.length - 1], I = s == null ? void 0 : s.find((j) => j.field === b || j.field === f.field), A = (I == null ? void 0 : I.style) || (f == null ? void 0 : f.style);
|
|
2281
|
+
if (l.colspan > 1) {
|
|
2282
|
+
let j = 0;
|
|
2283
|
+
for (let P = t; P < t + l.colspan; P++)
|
|
2284
|
+
j += Number((u = i[P]) == null ? void 0 : u.width) || 100;
|
|
2285
|
+
c.width = j;
|
|
2288
2286
|
}
|
|
2289
|
-
return
|
|
2290
|
-
},
|
|
2291
|
-
|
|
2287
|
+
return l.rowspan > 1 && (c.height = l.rowspan * wt), c.height || (c.height = wt), A != null && A.textAlign && (c.textAlign = A.textAlign, A.textAlign === "right" && (c.justifyContent = "flex-end"), A.textAlign === "center" && (c.justifyContent = "center")), c.border = "1px solid #f0f0f0", c.padding = "8px 16px", c.display = "flex", c.alignItems = "center", c.backgroundColor = "#fff", l.rowspan > Xe && (c.zIndex = 1e4 - e, c.position = "absolute"), c;
|
|
2288
|
+
}, qn = ({
|
|
2289
|
+
columnIndex: e,
|
|
2290
|
+
rowIndex: t,
|
|
2291
|
+
style: r,
|
|
2292
|
+
mergedData: n,
|
|
2293
|
+
columns: i,
|
|
2294
|
+
handleExpand: s,
|
|
2295
|
+
meta: a,
|
|
2296
|
+
mergedCellsMap: h
|
|
2297
|
+
}) => {
|
|
2298
|
+
let l = n[t][e], c = !1;
|
|
2299
|
+
if (l.rowspan === 0 && h) {
|
|
2300
|
+
const j = `${t}-${e}`, P = h.get(j);
|
|
2301
|
+
if (P && P.rowspan > Xe && P.startIndex < t) {
|
|
2302
|
+
const J = P.rowspan - (t - P.startIndex);
|
|
2303
|
+
l = {
|
|
2304
|
+
...l,
|
|
2305
|
+
...P,
|
|
2306
|
+
rowspan: J
|
|
2307
|
+
// We might need to adjust content if it relies on being at the top, but usually content is same.
|
|
2308
|
+
// onClick and others are copied from mergeInfo
|
|
2309
|
+
}, c = !0;
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
if (!c && Gn(t, e, n))
|
|
2292
2313
|
return null;
|
|
2293
|
-
const
|
|
2294
|
-
let
|
|
2295
|
-
if (
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2314
|
+
const f = Un(t, e, r, n, i, a, l), E = i[e], b = E.field.split("||"), I = b[b.length - 1], A = a == null ? void 0 : a.find((j) => j.field === I || j.field === E.field), x = Ye.isValidElement(l.content);
|
|
2315
|
+
let u;
|
|
2316
|
+
if (u = l.content, "formatter" in E && E.formatter && !x && (u = E.formatter(u, l.data)), A != null && A.clickHandler && !x && u !== null && u !== void 0) {
|
|
2317
|
+
const j = l.data;
|
|
2318
|
+
u = /* @__PURE__ */ Z.jsx(
|
|
2298
2319
|
"a",
|
|
2299
2320
|
{
|
|
2300
2321
|
href: "javascript:void(0)",
|
|
2301
|
-
onClick: (
|
|
2302
|
-
|
|
2322
|
+
onClick: (P) => {
|
|
2323
|
+
P.preventDefault(), P.stopPropagation(), A.clickHandler(j);
|
|
2303
2324
|
},
|
|
2304
2325
|
className: "virtual-table-cell-link",
|
|
2305
|
-
children:
|
|
2326
|
+
children: u
|
|
2306
2327
|
}
|
|
2307
2328
|
);
|
|
2308
2329
|
}
|
|
2309
2330
|
return /* @__PURE__ */ Z.jsxs(
|
|
2310
2331
|
"div",
|
|
2311
2332
|
{
|
|
2312
|
-
style:
|
|
2313
|
-
className:
|
|
2333
|
+
style: f,
|
|
2334
|
+
className: St("table-cell", "virtual-table-cell", {
|
|
2314
2335
|
"virtual-table-cell-last": e === i.length - 1
|
|
2315
2336
|
}),
|
|
2316
|
-
title: typeof
|
|
2337
|
+
title: typeof u == "string" ? u : void 0,
|
|
2317
2338
|
children: [
|
|
2318
|
-
/* @__PURE__ */ Z.jsx("span", { className: "expand-icon", children: l.expandable ? l.expanded ? /* @__PURE__ */ Z.jsx(
|
|
2339
|
+
/* @__PURE__ */ Z.jsx("span", { className: "expand-icon", children: l.expandable ? l.expanded ? /* @__PURE__ */ Z.jsx(Yn, { onClick: () => {
|
|
2319
2340
|
l.onClick && l.onClick(l), s(l);
|
|
2320
|
-
} }) : /* @__PURE__ */ Z.jsx(
|
|
2341
|
+
} }) : /* @__PURE__ */ Z.jsx(Kn, { onClick: () => {
|
|
2321
2342
|
l.onClick && l.onClick(l), s(l);
|
|
2322
2343
|
} }) : null }),
|
|
2323
|
-
|
|
2344
|
+
u
|
|
2324
2345
|
]
|
|
2325
2346
|
}
|
|
2326
2347
|
);
|
|
2327
|
-
},
|
|
2328
|
-
const { data: t, info: r, scroll: n, columns: i, tableWidth: s } = e, { ref: a, onScroll:
|
|
2348
|
+
}, Jn = (e) => {
|
|
2349
|
+
const { data: t, info: r, scroll: n, columns: i, tableWidth: s } = e, { ref: a, onScroll: h } = r, l = ze(), c = ye(() => {
|
|
2329
2350
|
const D = {};
|
|
2330
2351
|
return Object.defineProperty(D, "scrollLeft", {
|
|
2331
2352
|
get: () => {
|
|
2332
|
-
var
|
|
2333
|
-
return ((p = (
|
|
2353
|
+
var k, p;
|
|
2354
|
+
return ((p = (k = l.current) == null ? void 0 : k.element) == null ? void 0 : p.scrollLeft) || 0;
|
|
2334
2355
|
},
|
|
2335
|
-
set: (
|
|
2356
|
+
set: (k) => {
|
|
2336
2357
|
var p;
|
|
2337
|
-
(p =
|
|
2358
|
+
(p = l.current) != null && p.element && (l.current.element.scrollLeft = k);
|
|
2338
2359
|
}
|
|
2339
2360
|
}), Object.defineProperty(D, "scrollTop", {
|
|
2340
2361
|
get: () => {
|
|
2341
|
-
var
|
|
2342
|
-
return ((p = (
|
|
2362
|
+
var k, p;
|
|
2363
|
+
return ((p = (k = l.current) == null ? void 0 : k.element) == null ? void 0 : p.scrollTop) || 0;
|
|
2343
2364
|
},
|
|
2344
|
-
set: (
|
|
2365
|
+
set: (k) => {
|
|
2345
2366
|
var p;
|
|
2346
|
-
(p =
|
|
2367
|
+
(p = l.current) != null && p.element && (l.current.element.scrollTop = k);
|
|
2347
2368
|
}
|
|
2348
2369
|
}), D;
|
|
2349
2370
|
}, []);
|
|
2350
|
-
|
|
2351
|
-
a && (a.current =
|
|
2352
|
-
}, [a,
|
|
2353
|
-
const
|
|
2354
|
-
let
|
|
2371
|
+
Qe(() => {
|
|
2372
|
+
a && (a.current = c);
|
|
2373
|
+
}, [a, c]);
|
|
2374
|
+
const f = t, E = f.length, b = ge((D) => {
|
|
2375
|
+
let k = 0;
|
|
2355
2376
|
return D.forEach((p) => {
|
|
2356
|
-
p != null && p.children && p.children.length > 0 ?
|
|
2357
|
-
}),
|
|
2358
|
-
}, []),
|
|
2359
|
-
let
|
|
2377
|
+
p != null && p.children && p.children.length > 0 ? k += b(p.children) : k += 1;
|
|
2378
|
+
}), k;
|
|
2379
|
+
}, []), I = b(i), A = ge((D) => {
|
|
2380
|
+
let k = [];
|
|
2360
2381
|
return D.forEach((p) => {
|
|
2361
|
-
p != null && p.children && p.children.length > 0 ?
|
|
2362
|
-
}),
|
|
2363
|
-
}, []),
|
|
2364
|
-
const
|
|
2365
|
-
let p = (
|
|
2382
|
+
p != null && p.children && p.children.length > 0 ? k = [...k, ...A(p.children)] : k.push(p);
|
|
2383
|
+
}), k;
|
|
2384
|
+
}, []), x = A(i), u = ge((D) => {
|
|
2385
|
+
const k = x[D];
|
|
2386
|
+
let p = (k == null ? void 0 : k.width) || 100;
|
|
2366
2387
|
return typeof p == "string" && (p = parseInt(p.replace("px", "")) || 100), p;
|
|
2367
|
-
}, [
|
|
2388
|
+
}, [x]), j = ge((D) => wt, []), P = ye(() => f.map((D) => D.cells), [f]), J = ge((D) => {
|
|
2368
2389
|
if (D && typeof D.scrollLeft == "number") {
|
|
2369
|
-
|
|
2390
|
+
h && h(D);
|
|
2370
2391
|
return;
|
|
2371
2392
|
}
|
|
2372
2393
|
if (D && D.target) {
|
|
2373
|
-
const { scrollLeft:
|
|
2374
|
-
|
|
2375
|
-
}
|
|
2376
|
-
}, [
|
|
2377
|
-
|
|
2378
|
-
return
|
|
2379
|
-
|
|
2380
|
-
|
|
2394
|
+
const { scrollLeft: k, scrollTop: p } = D.target;
|
|
2395
|
+
h && h({ scrollLeft: k, scrollTop: p });
|
|
2396
|
+
}
|
|
2397
|
+
}, [h]), z = ye(() => {
|
|
2398
|
+
const D = /* @__PURE__ */ new Map();
|
|
2399
|
+
return f.forEach((k, p) => {
|
|
2400
|
+
k.cells.forEach((F, M) => {
|
|
2401
|
+
if (F.rowspan > Xe) {
|
|
2402
|
+
const W = {
|
|
2403
|
+
startIndex: p,
|
|
2404
|
+
rowspan: F.rowspan,
|
|
2405
|
+
content: F.content,
|
|
2406
|
+
data: F.data,
|
|
2407
|
+
expandable: F.expandable,
|
|
2408
|
+
expanded: F.expanded,
|
|
2409
|
+
level: F.level,
|
|
2410
|
+
rowKey: F.rowKey,
|
|
2411
|
+
onClick: F.onClick
|
|
2412
|
+
};
|
|
2413
|
+
for (let H = 0; H < F.rowspan; H++) {
|
|
2414
|
+
const K = `${p + H}-${M}`;
|
|
2415
|
+
D.set(K, W);
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2381
2418
|
});
|
|
2382
2419
|
}), D;
|
|
2383
|
-
}, [
|
|
2420
|
+
}, [f]), N = (typeof (n == null ? void 0 : n.y) == "number" ? n.y : parseInt((n == null ? void 0 : n.y) || "400")) || 400;
|
|
2384
2421
|
return /* @__PURE__ */ Z.jsx(
|
|
2385
|
-
|
|
2422
|
+
Bn,
|
|
2386
2423
|
{
|
|
2387
|
-
gridRef:
|
|
2388
|
-
columnCount:
|
|
2389
|
-
columnWidth:
|
|
2424
|
+
gridRef: l,
|
|
2425
|
+
columnCount: I,
|
|
2426
|
+
columnWidth: u,
|
|
2390
2427
|
rowCount: E,
|
|
2391
|
-
rowHeight:
|
|
2392
|
-
style: { height:
|
|
2428
|
+
rowHeight: j,
|
|
2429
|
+
style: { height: N - 40, width: s, overflowY: "auto" },
|
|
2393
2430
|
onScroll: J,
|
|
2394
|
-
className:
|
|
2395
|
-
overscanCount:
|
|
2396
|
-
cellComponent:
|
|
2431
|
+
className: "virtual-grid",
|
|
2432
|
+
overscanCount: Xe,
|
|
2433
|
+
cellComponent: qn,
|
|
2397
2434
|
cellProps: {
|
|
2398
|
-
mergedData:
|
|
2399
|
-
columns:
|
|
2400
|
-
data:
|
|
2435
|
+
mergedData: P,
|
|
2436
|
+
columns: x,
|
|
2437
|
+
data: f,
|
|
2401
2438
|
handleExpand: e.handleExpand,
|
|
2402
|
-
meta: e.meta
|
|
2439
|
+
meta: e.meta,
|
|
2440
|
+
mergedCellsMap: z
|
|
2403
2441
|
}
|
|
2404
2442
|
}
|
|
2405
2443
|
);
|
|
@@ -2416,8 +2454,8 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2416
2454
|
return n;
|
|
2417
2455
|
n = n[i];
|
|
2418
2456
|
}
|
|
2419
|
-
return n == null && (n =
|
|
2420
|
-
},
|
|
2457
|
+
return n == null && (n = xe), n;
|
|
2458
|
+
}, ut = (e, t) => "|" + t.map((n) => me(e, n)).join("|"), qt = (e, t) => {
|
|
2421
2459
|
if (!e)
|
|
2422
2460
|
return null;
|
|
2423
2461
|
try {
|
|
@@ -2432,8 +2470,8 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2432
2470
|
}, Ge = {
|
|
2433
2471
|
sum: (e) => e.reduce((t, r) => t + (Number(r) || 0), 0),
|
|
2434
2472
|
avg: (e) => {
|
|
2435
|
-
const t = e
|
|
2436
|
-
return t.length > 0 ? t.reduce((r, n) => r + Number(n), 0) / t.length : 0;
|
|
2473
|
+
const t = e;
|
|
2474
|
+
return t.length > 0 ? t.reduce((r, n) => r + (isNaN(Number(n)) ? 0 : Number(n)), 0) / t.length : 0;
|
|
2437
2475
|
},
|
|
2438
2476
|
count: (e) => e.length,
|
|
2439
2477
|
min: (e) => Math.min(...e.map((t) => Number(t) || 1 / 0)),
|
|
@@ -2453,133 +2491,133 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2453
2491
|
const r = t.reduce((s, a) => s + a, 0) / t.length, i = t.map((s) => Math.pow(s - r, 2)).reduce((s, a) => s + a, 0) / t.length;
|
|
2454
2492
|
return Math.sqrt(i);
|
|
2455
2493
|
}
|
|
2456
|
-
}, ue = /* @__PURE__ */ new Map(),
|
|
2494
|
+
}, ue = /* @__PURE__ */ new Map(), ft = /* @__PURE__ */ new Map(), dt = /* @__PURE__ */ new Map(), Xn = (e) => {
|
|
2457
2495
|
const { data: t, sortParams: r, fields: n } = e, { rows: i, columns: s, values: a } = n;
|
|
2458
2496
|
if (!t || t.length === 0 || !i.length && !s.length && !a.length)
|
|
2459
2497
|
return {
|
|
2460
2498
|
list: [],
|
|
2461
|
-
dataExpandFilter: (
|
|
2499
|
+
dataExpandFilter: (g) => g
|
|
2462
2500
|
};
|
|
2463
|
-
const
|
|
2464
|
-
t.forEach((
|
|
2465
|
-
const C =
|
|
2466
|
-
|
|
2467
|
-
const w =
|
|
2468
|
-
|
|
2469
|
-
const
|
|
2470
|
-
|
|
2501
|
+
const h = He(i), l = He(s), c = He(a).filter((g) => !g.hidden), f = h.map((g) => g.field), E = l.map((g) => g.field), b = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map();
|
|
2502
|
+
t.forEach((g) => {
|
|
2503
|
+
const C = ut(g, f);
|
|
2504
|
+
b.has(C) || b.set(C, []), b.get(C).push(g);
|
|
2505
|
+
const w = ut(g, E);
|
|
2506
|
+
I.has(w) || I.set(w, []), I.get(w).push(g);
|
|
2507
|
+
const y = `${C}||${w}`;
|
|
2508
|
+
A.has(y) || A.set(y, []), A.get(y).push(g);
|
|
2471
2509
|
});
|
|
2472
|
-
const
|
|
2510
|
+
const x = () => Array.from(b.entries()).sort(([g, C], [w, y]) => {
|
|
2473
2511
|
if (r && r.length > 0)
|
|
2474
|
-
for (const
|
|
2475
|
-
const { field: O, sortType:
|
|
2476
|
-
if (
|
|
2477
|
-
return
|
|
2478
|
-
if (
|
|
2479
|
-
return
|
|
2512
|
+
for (const v of r) {
|
|
2513
|
+
const { field: O, sortType: _ } = v, R = _ === "asc", S = me(C[0], O), $ = me(y[0], O);
|
|
2514
|
+
if (S < $)
|
|
2515
|
+
return R ? -1 : 1;
|
|
2516
|
+
if (S > $)
|
|
2517
|
+
return R ? 1 : -1;
|
|
2480
2518
|
}
|
|
2481
|
-
for (let
|
|
2482
|
-
const O =
|
|
2483
|
-
if (
|
|
2484
|
-
if (
|
|
2485
|
-
const
|
|
2486
|
-
if (
|
|
2487
|
-
return
|
|
2488
|
-
if (
|
|
2489
|
-
return
|
|
2519
|
+
for (let v = 0; v < f.length; v++) {
|
|
2520
|
+
const O = f[v], _ = h[v], R = me(C[0], O), S = me(y[0], O);
|
|
2521
|
+
if (R !== S)
|
|
2522
|
+
if (_.sort && _.sort.enabled) {
|
|
2523
|
+
const $ = _.sort.type === "asc";
|
|
2524
|
+
if (R < S)
|
|
2525
|
+
return $ ? -1 : 1;
|
|
2526
|
+
if (R > S)
|
|
2527
|
+
return $ ? 1 : -1;
|
|
2490
2528
|
} else {
|
|
2491
|
-
if (
|
|
2529
|
+
if (R < S)
|
|
2492
2530
|
return -1;
|
|
2493
|
-
if (
|
|
2531
|
+
if (R > S)
|
|
2494
2532
|
return 1;
|
|
2495
2533
|
}
|
|
2496
2534
|
}
|
|
2497
2535
|
return 0;
|
|
2498
|
-
}),
|
|
2499
|
-
for (let
|
|
2500
|
-
const O = E[
|
|
2501
|
-
if (
|
|
2502
|
-
if (
|
|
2503
|
-
const
|
|
2504
|
-
if (
|
|
2505
|
-
return
|
|
2506
|
-
if (
|
|
2507
|
-
return
|
|
2536
|
+
}), u = () => Array.from(I.entries()).sort(([g, C], [w, y]) => {
|
|
2537
|
+
for (let v = 0; v < E.length; v++) {
|
|
2538
|
+
const O = E[v], _ = l[v], R = me(C[0], O), S = me(y[0], O);
|
|
2539
|
+
if (R !== S)
|
|
2540
|
+
if (_.sort && _.sort.enabled) {
|
|
2541
|
+
const $ = _.sort.type === "asc";
|
|
2542
|
+
if (R < S)
|
|
2543
|
+
return $ ? -1 : 1;
|
|
2544
|
+
if (R > S)
|
|
2545
|
+
return $ ? 1 : -1;
|
|
2508
2546
|
} else {
|
|
2509
|
-
if (
|
|
2547
|
+
if (R < S)
|
|
2510
2548
|
return -1;
|
|
2511
|
-
if (
|
|
2549
|
+
if (R > S)
|
|
2512
2550
|
return 1;
|
|
2513
2551
|
}
|
|
2514
2552
|
}
|
|
2515
2553
|
return 0;
|
|
2516
|
-
}),
|
|
2517
|
-
const
|
|
2554
|
+
}), j = () => {
|
|
2555
|
+
const g = [], C = He(i);
|
|
2518
2556
|
for (let w = 1; w <= C.length; w++)
|
|
2519
|
-
|
|
2520
|
-
return
|
|
2521
|
-
},
|
|
2522
|
-
const
|
|
2523
|
-
return
|
|
2524
|
-
const
|
|
2525
|
-
|
|
2557
|
+
g.push(C.slice(0, w));
|
|
2558
|
+
return g;
|
|
2559
|
+
}, P = () => {
|
|
2560
|
+
const g = j(), C = /* @__PURE__ */ new Set();
|
|
2561
|
+
return g.forEach((w, y) => {
|
|
2562
|
+
const v = w[w.length - 1];
|
|
2563
|
+
v.total && v.total.enabled && C.add(y);
|
|
2526
2564
|
}), C;
|
|
2527
2565
|
}, J = () => {
|
|
2528
|
-
const
|
|
2529
|
-
return w.size === 0 || w.forEach((
|
|
2530
|
-
let
|
|
2531
|
-
|
|
2566
|
+
const g = j(), C = [], w = P();
|
|
2567
|
+
return w.size === 0 || w.forEach((y) => {
|
|
2568
|
+
let v = [];
|
|
2569
|
+
y > 0 && (v = g[y - 1]);
|
|
2532
2570
|
const O = {};
|
|
2533
|
-
t.forEach((
|
|
2534
|
-
let
|
|
2535
|
-
if (
|
|
2536
|
-
const
|
|
2537
|
-
O[
|
|
2571
|
+
t.forEach((_) => {
|
|
2572
|
+
let R = "";
|
|
2573
|
+
if (y > 0 ? R = v.map((S) => me(_, S.field)).join("|") : R = "__GLOBAL__", !O[R]) {
|
|
2574
|
+
const $ = g[y][y].total;
|
|
2575
|
+
O[R] = {
|
|
2538
2576
|
records: [],
|
|
2539
|
-
config:
|
|
2577
|
+
config: $
|
|
2540
2578
|
};
|
|
2541
2579
|
}
|
|
2542
|
-
O[
|
|
2543
|
-
}), C.push({ level:
|
|
2580
|
+
O[R].records.push(_);
|
|
2581
|
+
}), C.push({ level: y, data: O });
|
|
2544
2582
|
}), C;
|
|
2545
|
-
},
|
|
2546
|
-
if (ue.has(
|
|
2547
|
-
const w = ue.get(
|
|
2548
|
-
w.set(C,
|
|
2549
|
-
const O =
|
|
2550
|
-
if (O >= 0 && O <
|
|
2551
|
-
const
|
|
2552
|
-
if (ue.has(
|
|
2553
|
-
const
|
|
2554
|
-
|
|
2555
|
-
ae.startsWith(
|
|
2583
|
+
}, z = u(), N = /* @__PURE__ */ new Map(), D = (g, C) => {
|
|
2584
|
+
if (ue.has(g)) {
|
|
2585
|
+
const w = ue.get(g), v = !w.get(C);
|
|
2586
|
+
w.set(C, v), ft.set("rowKey", C), ft.set("level", g), ft.set("expanded", v);
|
|
2587
|
+
const O = g - 1;
|
|
2588
|
+
if (O >= 0 && O < h.length && h[O].clickExpandChildren && v === !0) {
|
|
2589
|
+
const R = g + 1;
|
|
2590
|
+
if (ue.has(R)) {
|
|
2591
|
+
const S = ue.get(R), $ = C + "|";
|
|
2592
|
+
S.forEach((Y, ae) => {
|
|
2593
|
+
ae.startsWith($) && (S.set(ae, !0), k(R, ae));
|
|
2556
2594
|
});
|
|
2557
2595
|
}
|
|
2558
2596
|
}
|
|
2559
2597
|
}
|
|
2560
|
-
},
|
|
2561
|
-
const w =
|
|
2598
|
+
}, k = (g, C) => {
|
|
2599
|
+
const w = g + 1;
|
|
2562
2600
|
if (ue.has(w)) {
|
|
2563
|
-
const
|
|
2564
|
-
|
|
2565
|
-
|
|
2601
|
+
const y = ue.get(w), v = C + "|";
|
|
2602
|
+
y.forEach((O, _) => {
|
|
2603
|
+
_.startsWith(v) && (y.set(_, !0), k(w, _));
|
|
2566
2604
|
});
|
|
2567
2605
|
}
|
|
2568
|
-
}, p = (
|
|
2569
|
-
const C = J(), w = [...
|
|
2606
|
+
}, p = (g) => {
|
|
2607
|
+
const C = J(), w = [...g];
|
|
2570
2608
|
if (C.length === 0)
|
|
2571
2609
|
return w;
|
|
2572
|
-
for (let
|
|
2573
|
-
const { level:
|
|
2574
|
-
Object.keys(O).forEach((
|
|
2575
|
-
const { records:
|
|
2610
|
+
for (let y = 0; y < C.length; y++) {
|
|
2611
|
+
const { level: v, data: O } = C[y];
|
|
2612
|
+
Object.keys(O).forEach((_) => {
|
|
2613
|
+
const { records: R, config: S } = O[_], { label: $ = Kt, position: Y = "bottom" } = S || {}, ae = _.split("|");
|
|
2576
2614
|
let le = -1, T = -1;
|
|
2577
|
-
if (
|
|
2615
|
+
if (v === 0)
|
|
2578
2616
|
le = 0, T = w.length - 1;
|
|
2579
2617
|
else
|
|
2580
2618
|
for (let Q = 0; Q < w.length; Q++) {
|
|
2581
2619
|
const ee = w[Q];
|
|
2582
|
-
|
|
2620
|
+
f.slice(0, v).every(($e, pe) => {
|
|
2583
2621
|
var oe;
|
|
2584
2622
|
return ((oe = ee[pe]) == null ? void 0 : oe.content) === ae[pe];
|
|
2585
2623
|
}) && (le === -1 && (le = Q), T = Q);
|
|
@@ -2587,38 +2625,38 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2587
2625
|
if (le !== -1) {
|
|
2588
2626
|
const Q = [];
|
|
2589
2627
|
let ee = "";
|
|
2590
|
-
|
|
2591
|
-
let oe =
|
|
2592
|
-
const ie = pe + 1, ce = ie <
|
|
2593
|
-
pe <=
|
|
2628
|
+
f.forEach(($e, pe) => {
|
|
2629
|
+
let oe = xe;
|
|
2630
|
+
const ie = pe + 1, ce = ie < f.length, je = h[pe];
|
|
2631
|
+
pe <= v && (pe === v ? oe = $ : oe = ae[pe], ee += `|${oe}`);
|
|
2594
2632
|
const Ke = ue.has(ie) && ue.get(ie).get(ee) || !0;
|
|
2595
|
-
(oe ===
|
|
2633
|
+
(oe === xe || oe === null || oe === void 0) && je.emptyReplace && (oe = je.emptyReplace), Q.push({
|
|
2596
2634
|
content: oe,
|
|
2597
2635
|
rowspan: 1,
|
|
2598
2636
|
colspan: 1,
|
|
2599
2637
|
data: null,
|
|
2600
2638
|
rowKey: ee,
|
|
2601
|
-
expandable:
|
|
2602
|
-
expanded:
|
|
2639
|
+
expandable: Y === "top" && ce && oe !== xe && oe !== Kt,
|
|
2640
|
+
expanded: Y === "top" ? Ke : !1,
|
|
2603
2641
|
level: ie,
|
|
2604
|
-
onClick:
|
|
2642
|
+
onClick: Y === "top" && ce ? (Ae) => D(Ae.level, Ae.rowKey) : void 0
|
|
2605
2643
|
});
|
|
2606
|
-
}),
|
|
2644
|
+
}), z.forEach(([$e, pe]) => {
|
|
2607
2645
|
const oe = {};
|
|
2608
|
-
|
|
2646
|
+
c.forEach((ie) => {
|
|
2609
2647
|
if (ie.calculateType === "expr")
|
|
2610
2648
|
return;
|
|
2611
|
-
const ce = ie.field, je = ie.calculateType || "sum", Ae =
|
|
2649
|
+
const ce = ie.field, je = ie.calculateType || "sum", Ae = R.filter((Ce) => ut(Ce, E) === $e).map((Ce) => me(Ce, ce));
|
|
2612
2650
|
let Ne = 0;
|
|
2613
2651
|
Ge[je] && (Ne = Ge[je](Ae)), oe[ie.field] = Ne;
|
|
2614
|
-
}),
|
|
2652
|
+
}), c.forEach((ie) => {
|
|
2615
2653
|
if (ie.calculateType === "expr" && ie.expression) {
|
|
2616
|
-
const ce =
|
|
2654
|
+
const ce = qt(ie.expression, oe);
|
|
2617
2655
|
oe[ie.field] = ce !== null ? ce : 0;
|
|
2618
2656
|
}
|
|
2619
|
-
}),
|
|
2657
|
+
}), c.forEach((ie) => {
|
|
2620
2658
|
let ce = oe[ie.field];
|
|
2621
|
-
(ce ===
|
|
2659
|
+
(ce === xe || ce === null || ce === void 0 || typeof ce == "number" && isNaN(ce)) && ie.emptyReplace && (ce = ie.emptyReplace), Q.push({
|
|
2622
2660
|
content: ce,
|
|
2623
2661
|
rowspan: 1,
|
|
2624
2662
|
colspan: 1,
|
|
@@ -2626,140 +2664,140 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2626
2664
|
});
|
|
2627
2665
|
});
|
|
2628
2666
|
});
|
|
2629
|
-
const fe =
|
|
2630
|
-
|
|
2667
|
+
const fe = Y === "top" ? le : T + 1;
|
|
2668
|
+
dt.has(ee) || (w.splice(fe, 0, Q), dt.set(ee, 1), Y === "top" && v > 0 && N.set(_, ee));
|
|
2631
2669
|
}
|
|
2632
2670
|
});
|
|
2633
2671
|
}
|
|
2634
2672
|
return w;
|
|
2635
|
-
},
|
|
2636
|
-
ue.clear(), t.forEach((
|
|
2673
|
+
}, F = He(i);
|
|
2674
|
+
ue.clear(), t.forEach((g) => {
|
|
2637
2675
|
let C = "";
|
|
2638
|
-
|
|
2639
|
-
const
|
|
2640
|
-
C += `|${O}`, ue.has(
|
|
2641
|
-
const
|
|
2642
|
-
ue.get(
|
|
2676
|
+
f.forEach((w, y) => {
|
|
2677
|
+
const v = y + 1, O = me(g, w);
|
|
2678
|
+
C += `|${O}`, ue.has(v) || ue.set(v, /* @__PURE__ */ new Map());
|
|
2679
|
+
const _ = h[y].collapsed;
|
|
2680
|
+
ue.get(v).set(C, !_);
|
|
2643
2681
|
});
|
|
2644
2682
|
});
|
|
2645
|
-
const M =
|
|
2683
|
+
const M = x();
|
|
2646
2684
|
let W = [];
|
|
2647
|
-
const
|
|
2648
|
-
M.forEach(([
|
|
2685
|
+
const H = /* @__PURE__ */ new Map();
|
|
2686
|
+
M.forEach(([g, C]) => {
|
|
2649
2687
|
const w = C[0];
|
|
2650
|
-
let
|
|
2651
|
-
|
|
2652
|
-
const
|
|
2653
|
-
|
|
2654
|
-
const
|
|
2655
|
-
|
|
2688
|
+
let y = "";
|
|
2689
|
+
f.forEach((v, O) => {
|
|
2690
|
+
const _ = me(w, v), R = O + 1;
|
|
2691
|
+
y += `|${_}`, H.has(R) || H.set(R, /* @__PURE__ */ new Map());
|
|
2692
|
+
const S = H.get(R);
|
|
2693
|
+
S.set(y, (S.get(y) || 0) + 1);
|
|
2656
2694
|
});
|
|
2657
|
-
}), M.forEach(([
|
|
2658
|
-
const w = C[0],
|
|
2659
|
-
let
|
|
2660
|
-
|
|
2695
|
+
}), M.forEach(([g, C]) => {
|
|
2696
|
+
const w = C[0], y = [];
|
|
2697
|
+
let v = "";
|
|
2698
|
+
f.forEach((O, _) => {
|
|
2661
2699
|
var ee;
|
|
2662
|
-
let
|
|
2663
|
-
const
|
|
2664
|
-
|
|
2665
|
-
let ae =
|
|
2666
|
-
const le =
|
|
2667
|
-
if ((ee = le == null ? void 0 : le.total) != null && ee.enabled && le.total.label && (ae = `${
|
|
2668
|
-
const fe =
|
|
2669
|
-
|
|
2700
|
+
let R = me(w, O);
|
|
2701
|
+
const S = _ + 1, $ = S < f.length, Y = h[_];
|
|
2702
|
+
v += `|${R}`;
|
|
2703
|
+
let ae = g;
|
|
2704
|
+
const le = F.find((fe) => fe.field === O);
|
|
2705
|
+
if ((ee = le == null ? void 0 : le.total) != null && ee.enabled && le.total.label && (ae = `${v}|${le.total.label}`), $) {
|
|
2706
|
+
const fe = v;
|
|
2707
|
+
N.has(fe) || N.set(fe, ae);
|
|
2670
2708
|
}
|
|
2671
|
-
const T = ue.has(
|
|
2672
|
-
(
|
|
2673
|
-
content:
|
|
2709
|
+
const T = ue.has(S) && ue.get(S).get(v) || !0, Q = S < f.length ? (H.get(S).get(v) || 0) > 1 : !1;
|
|
2710
|
+
(R === xe || R === null || R === void 0) && Y.emptyReplace && (R = Y.emptyReplace), y.push({
|
|
2711
|
+
content: R,
|
|
2674
2712
|
rowspan: 1,
|
|
2675
2713
|
colspan: 1,
|
|
2676
2714
|
data: w,
|
|
2677
|
-
expandable:
|
|
2715
|
+
expandable: $ && Q,
|
|
2678
2716
|
expanded: T,
|
|
2679
|
-
level:
|
|
2680
|
-
rowKey:
|
|
2681
|
-
onClick:
|
|
2717
|
+
level: S,
|
|
2718
|
+
rowKey: v,
|
|
2719
|
+
onClick: $ && Q ? (fe) => D(fe.level, fe.rowKey) : void 0
|
|
2682
2720
|
});
|
|
2683
|
-
}),
|
|
2684
|
-
const
|
|
2685
|
-
|
|
2686
|
-
if (
|
|
2721
|
+
}), z.forEach(([O, _]) => {
|
|
2722
|
+
const R = {};
|
|
2723
|
+
c.forEach((S) => {
|
|
2724
|
+
if (S.calculateType === "expr")
|
|
2687
2725
|
return;
|
|
2688
|
-
const
|
|
2726
|
+
const $ = S.field, Y = S.calculateType || "sum", ae = `${g}||${O}`, T = (A.get(ae) || []).map((ee) => me(ee, $));
|
|
2689
2727
|
let Q = 0;
|
|
2690
|
-
Ge[
|
|
2691
|
-
}),
|
|
2692
|
-
if (
|
|
2693
|
-
const
|
|
2694
|
-
S
|
|
2728
|
+
Ge[Y] && (Q = Ge[Y](T)), R[S.field] = Q;
|
|
2729
|
+
}), c.forEach((S) => {
|
|
2730
|
+
if (S.calculateType === "expr" && S.expression) {
|
|
2731
|
+
const $ = qt(S.expression, R);
|
|
2732
|
+
R[S.field] = $ !== null ? $ : 0;
|
|
2695
2733
|
}
|
|
2696
|
-
}),
|
|
2697
|
-
let
|
|
2698
|
-
(
|
|
2699
|
-
content:
|
|
2734
|
+
}), c.forEach((S) => {
|
|
2735
|
+
let $ = R[S.field];
|
|
2736
|
+
($ === xe || $ === null || $ === void 0 || typeof $ == "number" && isNaN($)) && S.emptyReplace && ($ = S.emptyReplace), y.push({
|
|
2737
|
+
content: $,
|
|
2700
2738
|
rowspan: 1,
|
|
2701
2739
|
colspan: 1,
|
|
2702
2740
|
data: w
|
|
2703
2741
|
});
|
|
2704
2742
|
});
|
|
2705
|
-
}), W.push({ cells:
|
|
2743
|
+
}), W.push({ cells: y, rowKey: v });
|
|
2706
2744
|
});
|
|
2707
|
-
const
|
|
2708
|
-
const w =
|
|
2709
|
-
for (let
|
|
2710
|
-
if (ue.has(
|
|
2711
|
-
const
|
|
2712
|
-
if (
|
|
2713
|
-
const
|
|
2714
|
-
if (
|
|
2745
|
+
const K = (g) => {
|
|
2746
|
+
const w = g.split("|").filter(Boolean).length;
|
|
2747
|
+
for (let y = 1; y < w; y++)
|
|
2748
|
+
if (ue.has(y)) {
|
|
2749
|
+
const v = ue.get(y), O = g.split("|").slice(0, y + 1).join("|");
|
|
2750
|
+
if (v.has(O) && !v.get(O)) {
|
|
2751
|
+
const _ = O, R = N.get(_);
|
|
2752
|
+
if (g !== R)
|
|
2715
2753
|
return !1;
|
|
2716
2754
|
}
|
|
2717
2755
|
}
|
|
2718
2756
|
return !0;
|
|
2719
|
-
}, te = (
|
|
2757
|
+
}, te = (g) => {
|
|
2720
2758
|
var C, w;
|
|
2721
|
-
if (!
|
|
2722
|
-
return
|
|
2723
|
-
for (let
|
|
2724
|
-
let
|
|
2725
|
-
for (let
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2759
|
+
if (!g || g.length === 0)
|
|
2760
|
+
return g;
|
|
2761
|
+
for (let y = 0; y < h.length; y++) {
|
|
2762
|
+
let v = g[0][y].content, O = 0, _ = h[y], R = (C = _.total) == null ? void 0 : C.enabled, S = ((w = _.total) == null ? void 0 : w.label) || "";
|
|
2763
|
+
for (let $ = 1; $ < g.length; $++) {
|
|
2764
|
+
const Y = g[$][y];
|
|
2765
|
+
Y.content !== xe && (!R || Y.content !== S) && Y.content === v ? (Y.rowspan = 0, g[O][y].rowspan++) : (v = Y.content, O = $);
|
|
2728
2766
|
}
|
|
2729
2767
|
}
|
|
2730
|
-
return
|
|
2731
|
-
}, he = (
|
|
2732
|
-
const C =
|
|
2733
|
-
const
|
|
2734
|
-
if (
|
|
2735
|
-
const
|
|
2736
|
-
|
|
2768
|
+
return g;
|
|
2769
|
+
}, he = (g) => {
|
|
2770
|
+
const C = g.filter((v) => K(v.rowKey)), w = C.map((v) => v.cells.map((O) => {
|
|
2771
|
+
const _ = { ...O };
|
|
2772
|
+
if (_.expandable && _.level && _.rowKey && ue.has(_.level)) {
|
|
2773
|
+
const R = ue.get(_.level);
|
|
2774
|
+
R.has(_.rowKey) && (_.expanded = R.get(_.rowKey));
|
|
2737
2775
|
}
|
|
2738
|
-
return
|
|
2776
|
+
return _;
|
|
2739
2777
|
}));
|
|
2740
|
-
return te(w), C.map((
|
|
2741
|
-
rowKey:
|
|
2778
|
+
return te(w), C.map((v, O) => ({
|
|
2779
|
+
rowKey: v.rowKey,
|
|
2742
2780
|
cells: w[O]
|
|
2743
2781
|
}));
|
|
2744
2782
|
};
|
|
2745
|
-
|
|
2746
|
-
const be = W.map((
|
|
2783
|
+
dt.clear();
|
|
2784
|
+
const be = W.map((g) => g.cells), _e = p(be).map((g, C) => {
|
|
2747
2785
|
let w = "";
|
|
2748
|
-
return
|
|
2749
|
-
|
|
2750
|
-
}), { cells:
|
|
2786
|
+
return g.forEach((y, v) => {
|
|
2787
|
+
v < f.length && y.rowKey && (w = y.rowKey);
|
|
2788
|
+
}), { cells: g, rowKey: w };
|
|
2751
2789
|
}), Se = (() => {
|
|
2752
|
-
const
|
|
2753
|
-
if (
|
|
2754
|
-
|
|
2790
|
+
const g = [];
|
|
2791
|
+
if (h.forEach((C) => {
|
|
2792
|
+
g.push({
|
|
2755
2793
|
...C,
|
|
2756
2794
|
width: C.width || 100,
|
|
2757
2795
|
fixed: "left",
|
|
2758
2796
|
key: C.field
|
|
2759
2797
|
});
|
|
2760
|
-
}),
|
|
2761
|
-
|
|
2762
|
-
|
|
2798
|
+
}), l.length === 0)
|
|
2799
|
+
c.forEach((C) => {
|
|
2800
|
+
g.push({
|
|
2763
2801
|
...C,
|
|
2764
2802
|
width: C.width || 100,
|
|
2765
2803
|
key: C.field
|
|
@@ -2767,156 +2805,156 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2767
2805
|
});
|
|
2768
2806
|
else {
|
|
2769
2807
|
const C = [];
|
|
2770
|
-
|
|
2771
|
-
const
|
|
2808
|
+
z.forEach(([w, y]) => {
|
|
2809
|
+
const v = w.split("|").filter((_) => _ !== "");
|
|
2772
2810
|
let O = C;
|
|
2773
|
-
|
|
2774
|
-
var
|
|
2775
|
-
let
|
|
2776
|
-
if (!
|
|
2777
|
-
const ae = `${((
|
|
2811
|
+
v.forEach((_, R) => {
|
|
2812
|
+
var $;
|
|
2813
|
+
let S = O.find((Y) => Y.title === _);
|
|
2814
|
+
if (!S) {
|
|
2815
|
+
const ae = `${(($ = l[R]) == null ? void 0 : $.field) || "unknown"}__${_}`, le = {
|
|
2778
2816
|
field: ae,
|
|
2779
|
-
title:
|
|
2817
|
+
title: _,
|
|
2780
2818
|
children: [],
|
|
2781
2819
|
key: ae
|
|
2782
2820
|
};
|
|
2783
|
-
O.push(le),
|
|
2821
|
+
O.push(le), S = le;
|
|
2784
2822
|
}
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
...
|
|
2788
|
-
field: `${w}||${
|
|
2789
|
-
title:
|
|
2790
|
-
width:
|
|
2791
|
-
key: `${w}||${
|
|
2823
|
+
R === v.length - 1 ? c.forEach((Y) => {
|
|
2824
|
+
S.children || (S.children = []), S.children.push({
|
|
2825
|
+
...Y,
|
|
2826
|
+
field: `${w}||${Y.field}`,
|
|
2827
|
+
title: Y.title || Y.field,
|
|
2828
|
+
width: Y.width || 100,
|
|
2829
|
+
key: `${w}||${Y.field}`
|
|
2792
2830
|
});
|
|
2793
|
-
}) : (
|
|
2831
|
+
}) : (S.children || (S.children = []), O = S.children);
|
|
2794
2832
|
});
|
|
2795
|
-
}),
|
|
2833
|
+
}), g.push(...C);
|
|
2796
2834
|
}
|
|
2797
|
-
return
|
|
2835
|
+
return g;
|
|
2798
2836
|
})();
|
|
2799
2837
|
return {
|
|
2800
2838
|
list: _e,
|
|
2801
2839
|
dataExpandFilter: he,
|
|
2802
2840
|
tableColumns: Se
|
|
2803
2841
|
};
|
|
2804
|
-
},
|
|
2842
|
+
}, Zn = (e) => {
|
|
2805
2843
|
const { data: t, fields: r } = e, { rows: n, columns: i, values: s } = r;
|
|
2806
2844
|
if (!s || s.length === 0)
|
|
2807
2845
|
return { list: [], dataExpandFilter: (a) => a };
|
|
2808
2846
|
if (!t || t.length === 0)
|
|
2809
2847
|
return { list: [], dataExpandFilter: (a) => a };
|
|
2810
2848
|
if (n.length === 0 && i.length === 0) {
|
|
2811
|
-
const a = s.filter((
|
|
2812
|
-
...
|
|
2813
|
-
width:
|
|
2814
|
-
key:
|
|
2849
|
+
const a = s.filter((c) => !c.hidden), h = a.map((c) => ({
|
|
2850
|
+
...c,
|
|
2851
|
+
width: c.width || 100,
|
|
2852
|
+
key: c.field
|
|
2815
2853
|
}));
|
|
2816
2854
|
return {
|
|
2817
|
-
list: t.map((
|
|
2818
|
-
content:
|
|
2855
|
+
list: t.map((c, f) => ({ cells: a.map((b) => ({
|
|
2856
|
+
content: c[b.field] ?? xe,
|
|
2819
2857
|
rowspan: 1,
|
|
2820
2858
|
colspan: 1,
|
|
2821
|
-
style:
|
|
2822
|
-
data:
|
|
2859
|
+
style: b.style,
|
|
2860
|
+
data: c
|
|
2823
2861
|
// Pass original record for detail view cells
|
|
2824
|
-
})), rowKey:
|
|
2825
|
-
dataExpandFilter: (
|
|
2826
|
-
tableColumns:
|
|
2862
|
+
})), rowKey: f.toString() })),
|
|
2863
|
+
dataExpandFilter: (c) => c,
|
|
2864
|
+
tableColumns: h
|
|
2827
2865
|
};
|
|
2828
2866
|
}
|
|
2829
|
-
return
|
|
2830
|
-
},
|
|
2831
|
-
const { scroll: t, data: r, meta: n, sortParams: i, fields: s } = e, [a,
|
|
2832
|
-
if (
|
|
2833
|
-
let p =
|
|
2867
|
+
return Xn(e);
|
|
2868
|
+
}, to = Jt((e) => {
|
|
2869
|
+
const { scroll: t, data: r, meta: n, sortParams: i, fields: s } = e, [a, h] = Ie(0), [l, c] = Ie([]), [f, E] = Ie([]), b = ze(null), I = ge(() => {
|
|
2870
|
+
if (b.current) {
|
|
2871
|
+
let p = b.current;
|
|
2834
2872
|
if (!p || !p.list || !p.dataExpandFilter)
|
|
2835
2873
|
return;
|
|
2836
|
-
|
|
2874
|
+
c(p.dataExpandFilter(p.list));
|
|
2837
2875
|
}
|
|
2838
2876
|
}, []);
|
|
2839
|
-
|
|
2840
|
-
let
|
|
2877
|
+
Qe(() => {
|
|
2878
|
+
let F = Zn({
|
|
2841
2879
|
data: r,
|
|
2842
2880
|
meta: n,
|
|
2843
2881
|
sortParams: i,
|
|
2844
2882
|
fields: s
|
|
2845
2883
|
});
|
|
2846
|
-
|
|
2847
|
-
}, [r, n, i, s,
|
|
2848
|
-
const
|
|
2849
|
-
let p = 0,
|
|
2884
|
+
b.current = F, F.tableColumns && E(F.tableColumns), I();
|
|
2885
|
+
}, [r, n, i, s, I]);
|
|
2886
|
+
const A = ge((p) => p ? typeof p == "string" ? parseInt(p.replace("px", "")) || 0 : typeof p == "number" ? p : 0 : 0, []), { baseWidth: x, colCount: u } = ye(() => {
|
|
2887
|
+
let p = 0, F = 0;
|
|
2850
2888
|
const M = (W) => {
|
|
2851
|
-
W.forEach((
|
|
2852
|
-
(!("type" in
|
|
2889
|
+
W.forEach((H) => {
|
|
2890
|
+
(!("type" in H) || H.type !== "group") && (p += A(H.width), F += 1), H != null && H.children && H.children.length > 0 && M(H.children);
|
|
2853
2891
|
});
|
|
2854
2892
|
};
|
|
2855
|
-
return M(
|
|
2856
|
-
}, [
|
|
2857
|
-
const p = (
|
|
2893
|
+
return M(f), { baseWidth: p, colCount: F };
|
|
2894
|
+
}, [f, A]), j = ye(() => {
|
|
2895
|
+
const p = (F) => F.map((M) => {
|
|
2858
2896
|
let W = 0;
|
|
2859
|
-
|
|
2860
|
-
const
|
|
2861
|
-
return M.colSpan && M.colSpan > 1 ? M.width =
|
|
2897
|
+
x < a && u > 0 && (W = Math.floor((a - x) / u));
|
|
2898
|
+
const K = (M.width ? A(M.width) : Mn) + W;
|
|
2899
|
+
return M.colSpan && M.colSpan > 1 ? M.width = K * M.colSpan : M.width = K, M.fixed && (M.fixed = !1), M != null && M.children && M.children.length > 0 && (M.children = p(M.children)), M;
|
|
2862
2900
|
});
|
|
2863
|
-
return p(
|
|
2864
|
-
}, [
|
|
2901
|
+
return p(Et(f));
|
|
2902
|
+
}, [f, x, a, u, A]), P = ye(() => {
|
|
2865
2903
|
let p = 0;
|
|
2866
|
-
const
|
|
2904
|
+
const F = (M) => {
|
|
2867
2905
|
M.forEach((W) => {
|
|
2868
|
-
(!("type" in W) || W.type !== "group") && (p +=
|
|
2906
|
+
(!("type" in W) || W.type !== "group") && (p += A(W.width)), W != null && W.children && W.children.length > 0 && F(W.children);
|
|
2869
2907
|
});
|
|
2870
2908
|
};
|
|
2871
|
-
return
|
|
2872
|
-
}, [
|
|
2873
|
-
|
|
2874
|
-
|
|
2909
|
+
return F(j), p;
|
|
2910
|
+
}, [j, A]), J = ze(null), z = ze(null), N = ze(!1), D = ge(({ scrollLeft: p }) => {
|
|
2911
|
+
N.current || (N.current = !0, J.current && (J.current.scrollLeft = p), requestAnimationFrame(() => {
|
|
2912
|
+
N.current = !1;
|
|
2875
2913
|
}));
|
|
2876
|
-
}, []),
|
|
2877
|
-
if (
|
|
2914
|
+
}, []), k = ge((p) => {
|
|
2915
|
+
if (N.current)
|
|
2878
2916
|
return;
|
|
2879
|
-
|
|
2880
|
-
const
|
|
2881
|
-
|
|
2882
|
-
|
|
2917
|
+
N.current = !0;
|
|
2918
|
+
const F = p.currentTarget.scrollLeft;
|
|
2919
|
+
z.current && (z.current.scrollLeft = F), requestAnimationFrame(() => {
|
|
2920
|
+
N.current = !1;
|
|
2883
2921
|
});
|
|
2884
2922
|
}, []);
|
|
2885
2923
|
return /* @__PURE__ */ Z.jsx(
|
|
2886
|
-
|
|
2924
|
+
Rt,
|
|
2887
2925
|
{
|
|
2888
2926
|
onResize: ({ width: p }) => {
|
|
2889
|
-
p && p !== a &&
|
|
2927
|
+
p && p !== a && h(p);
|
|
2890
2928
|
},
|
|
2891
2929
|
children: /* @__PURE__ */ Z.jsxs(
|
|
2892
2930
|
"div",
|
|
2893
2931
|
{
|
|
2894
|
-
className:
|
|
2932
|
+
className: St("virtual-table", e.className),
|
|
2895
2933
|
style: { width: "100%", ...e.style },
|
|
2896
2934
|
children: [
|
|
2897
2935
|
/* @__PURE__ */ Z.jsx(
|
|
2898
|
-
|
|
2936
|
+
An,
|
|
2899
2937
|
{
|
|
2900
2938
|
ref: J,
|
|
2901
|
-
columns:
|
|
2939
|
+
columns: j,
|
|
2902
2940
|
width: a - 8,
|
|
2903
|
-
onScroll:
|
|
2941
|
+
onScroll: k,
|
|
2904
2942
|
meta: n
|
|
2905
2943
|
}
|
|
2906
2944
|
),
|
|
2907
2945
|
/* @__PURE__ */ Z.jsx("div", { className: "virtual-table-body", style: { width: "100%" }, children: /* @__PURE__ */ Z.jsx(
|
|
2908
|
-
|
|
2946
|
+
Jn,
|
|
2909
2947
|
{
|
|
2910
|
-
data:
|
|
2948
|
+
data: l,
|
|
2911
2949
|
info: {
|
|
2912
|
-
ref:
|
|
2950
|
+
ref: z,
|
|
2913
2951
|
onScroll: D
|
|
2914
2952
|
},
|
|
2915
2953
|
scroll: t,
|
|
2916
|
-
columns:
|
|
2954
|
+
columns: j,
|
|
2917
2955
|
tableWidth: a,
|
|
2918
|
-
gridWidth:
|
|
2919
|
-
handleExpand:
|
|
2956
|
+
gridWidth: P,
|
|
2957
|
+
handleExpand: I,
|
|
2920
2958
|
meta: n
|
|
2921
2959
|
}
|
|
2922
2960
|
) })
|
|
@@ -2927,8 +2965,8 @@ const Bn = (e) => /* @__PURE__ */ Z.jsxs("svg", { viewBox: "64 64 896 896", focu
|
|
|
2927
2965
|
);
|
|
2928
2966
|
});
|
|
2929
2967
|
export {
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2968
|
+
to as VirtualTable,
|
|
2969
|
+
Zn as dataHandler,
|
|
2970
|
+
Xn as pivotDataHandler
|
|
2933
2971
|
};
|
|
2934
2972
|
//# sourceMappingURL=virtual-table.es.js.map
|