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