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