@yester/virtual-table 1.1.1 → 1.1.3

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