@yester/virtual-table 1.1.0 → 1.1.2

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