@canonical/maas-react-components 1.29.2 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { jsxs as Y, jsx as u, Fragment as xe } from "react/jsx-runtime";
2
- import * as ce from "react";
3
- import mi, { useRef as ke, useState as fe, useEffect as Pe, useCallback as se, cloneElement as vi, createContext as Rn, useId as Ze, useContext as Lt, useMemo as re, useReducer as En, forwardRef as xi, useImperativeHandle as hi, Fragment as kn, useLayoutEffect as Fn } from "react";
1
+ import { jsxs as B, jsx as u, Fragment as xe } from "react/jsx-runtime";
2
+ import * as le from "react";
3
+ import mi, { useRef as ke, useState as pe, useEffect as Pe, useCallback as re, cloneElement as vi, createContext as Rn, useId as Ze, useContext as Lt, useMemo as oe, useReducer as En, forwardRef as xi, useImperativeHandle as hi, Fragment as kn, useLayoutEffect as Fn } from "react";
4
4
  import { useListener as wi, Link as yi, Spinner as Pn, Tooltip as bi, Button as ye, Icon as be, Row as Si, Col as Ci, Input as _i, Label as Ri, CheckboxInput as Ei, useClickOutside as ki, useOnEscapePressed as Fi, SearchBox as Pi, Select as Ii } from "@canonical/react-components";
5
5
  function Nt(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -45,7 +45,7 @@ function $i() {
45
45
  }(dt)), dt.exports;
46
46
  }
47
47
  var Di = $i();
48
- const B = /* @__PURE__ */ Nt(Di), Fe = {
48
+ const H = /* @__PURE__ */ Nt(Di), Fe = {
49
49
  caution: "#F99B11",
50
50
  light: "#F7F7F7",
51
51
  linkFaded: "#D3E4ED",
@@ -79,17 +79,17 @@ const B = /* @__PURE__ */ Nt(Di), Fe = {
79
79
  size: a = "regular",
80
80
  ...r
81
81
  }) => {
82
- const l = ke(null), s = t == null ? void 0 : t.reduce((f, v) => f + v.value, 0), c = i || s, d = t.map((f) => f.value / c * 100), [m, g] = fe(0);
82
+ const l = ke(null), s = t == null ? void 0 : t.reduce((f, x) => f + x.value, 0), c = i || s, d = t.map((f) => f.value / c * 100), [m, g] = pe(0);
83
83
  Pe(() => {
84
84
  g(o === "segmented" ? Qt(l, c) : 0);
85
85
  }, [c, o]);
86
- const p = se(() => {
86
+ const p = re(() => {
87
87
  g(Qt(l, c));
88
88
  }, [l, c, g]);
89
- return wi(window, p, "resize", !0, o === "segmented"), /* @__PURE__ */ Y(
89
+ return wi(window, p, "resize", !0, o === "segmented"), /* @__PURE__ */ B(
90
90
  "div",
91
91
  {
92
- className: B("p-meter", e, {
92
+ className: H("p-meter", e, {
93
93
  "p-meter--small": a === "small"
94
94
  }),
95
95
  "aria-label": r == null ? void 0 : r["aria-label"],
@@ -141,7 +141,7 @@ const B = /* @__PURE__ */ Nt(Di), Fe = {
141
141
  ${Ft} ${i}px
142
142
  )`
143
143
  });
144
- return /* @__PURE__ */ Y(xe, { children: [
144
+ return /* @__PURE__ */ B(xe, { children: [
145
145
  o() ? /* @__PURE__ */ u(
146
146
  "div",
147
147
  {
@@ -173,7 +173,7 @@ const B = /* @__PURE__ */ Nt(Di), Fe = {
173
173
  }) => /* @__PURE__ */ u(
174
174
  "div",
175
175
  {
176
- className: B("p-meter__label", e),
176
+ className: H("p-meter__label", e),
177
177
  "data-testid": Ae.label,
178
178
  children: n
179
179
  }
@@ -181,7 +181,7 @@ const B = /* @__PURE__ */ Nt(Di), Fe = {
181
181
  Ai.Label = Ti;
182
182
  const Tr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(yi, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), zi = ({
183
183
  percentComplete: e
184
- }) => /* @__PURE__ */ Y("small", { className: "progress-indicator", children: [
184
+ }) => /* @__PURE__ */ B("small", { className: "progress-indicator", children: [
185
185
  e,
186
186
  "% ",
187
187
  /* @__PURE__ */ u(Pn, { className: "progress-indicator__spinner" })
@@ -196,7 +196,7 @@ const Tr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(yi, { ...t, href:
196
196
  "span",
197
197
  {
198
198
  "aria-label": "loading",
199
- className: B("p-placeholder", t),
199
+ className: H("p-placeholder", t),
200
200
  role: "progressbar",
201
201
  style: { animationDelay: `${o}ms` },
202
202
  children: /* @__PURE__ */ u("span", { "aria-hidden": "true", children: e || n || "Loading" })
@@ -210,7 +210,7 @@ const Tr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(yi, { ...t, href:
210
210
  bi,
211
211
  {
212
212
  className: "p-side-navigation__tooltip-wrapper",
213
- message: /* @__PURE__ */ Y(xe, { children: [
213
+ message: /* @__PURE__ */ B(xe, { children: [
214
214
  e ? "expand" : "collapse",
215
215
  "( ",
216
216
  /* @__PURE__ */ u("code", { children: "[" }),
@@ -223,7 +223,7 @@ const Tr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(yi, { ...t, href:
223
223
  {
224
224
  appearance: "base",
225
225
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
226
- className: B(
226
+ className: H(
227
227
  "is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
228
228
  t
229
229
  ),
@@ -234,24 +234,24 @@ const Tr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(yi, { ...t, href:
234
234
  }
235
235
  )
236
236
  }
237
- ), Hi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Gi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), qi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Bi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Ui = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Wi = ({ light: e = !0, name: n }) => /* @__PURE__ */ u(be, { className: "p-side-navigation__icon", light: e, name: n }), Yi = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: B("p-side-navigation__item", n, { "has-active-child": t }), children: e }), Ki = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: B("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), Xi = ({
237
+ ), Hi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Gi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), qi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Bi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Ui = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Wi = ({ light: e = !0, name: n }) => /* @__PURE__ */ u(be, { className: "p-side-navigation__icon", light: e, name: n }), Yi = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: H("p-side-navigation__item", n, { "has-active-child": t }), children: e }), Ki = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: H("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), Xi = ({
238
238
  as: e,
239
239
  ...n
240
240
  }) => /* @__PURE__ */ u(
241
241
  e || "a",
242
242
  {
243
- className: B("p-side-navigation__link", n.className),
243
+ className: H("p-side-navigation__link", n.className),
244
244
  ...n
245
245
  }
246
- ), Ji = ({ children: e, className: n }) => /* @__PURE__ */ u("ul", { className: B("p-side-navigation__list", n), children: e }), Zi = ({
246
+ ), Ji = ({ children: e, className: n }) => /* @__PURE__ */ u("ul", { className: H("p-side-navigation__list", n), children: e }), Zi = ({
247
247
  as: e,
248
248
  children: n,
249
249
  className: t,
250
250
  ...i
251
- }) => /* @__PURE__ */ u(e || "a", { className: B("p-panel__logo", t), ...i, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: n }) }), Qi = ({ children: e }) => vi(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), eo = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ u(
251
+ }) => /* @__PURE__ */ u(e || "a", { className: H("p-panel__logo", t), ...i, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: n }) }), Qi = ({ children: e }) => vi(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), eo = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ u(
252
252
  "div",
253
253
  {
254
- className: B("p-panel__logo-name is-fading-when-collapsed", {
254
+ className: H("p-panel__logo-name is-fading-when-collapsed", {
255
255
  "p-panel__logo-name--small": n === "small"
256
256
  }),
257
257
  children: e
@@ -264,7 +264,7 @@ const Tr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(yi, { ...t, href:
264
264
  ye,
265
265
  {
266
266
  appearance: "base",
267
- className: B(
267
+ className: H(
268
268
  "p-side-navigation__button--menu has-icon is-dark",
269
269
  n
270
270
  ),
@@ -273,25 +273,25 @@ const Tr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(yi, { ...t, href:
273
273
  },
274
274
  children: /* @__PURE__ */ u(xe, { children: e })
275
275
  }
276
- ), oo = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e }), oe = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: B("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), ao = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: B("p-panel is-dark", n), children: e }) });
277
- oe.Header = Ui;
278
- oe.Banner = Li;
279
- oe.Drawer = qi;
280
- oe.Controls = Gi;
281
- oe.CollapseToggle = Ni;
282
- oe.Content = Hi;
283
- oe.Footer = Bi;
284
- oe.List = Ji;
285
- oe.Item = Yi;
286
- oe.Link = Xi;
287
- oe.Text = oo;
288
- oe.Icon = Wi;
289
- oe.Label = Ki;
290
- oe.Logo = Zi;
291
- oe.LogoTag = to;
292
- oe.LogoIcon = Qi;
293
- oe.LogoName = eo;
294
- oe.LogoText = no;
276
+ ), oo = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e }), te = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: H("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), ao = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: H("p-panel is-dark", n), children: e }) });
277
+ te.Header = Ui;
278
+ te.Banner = Li;
279
+ te.Drawer = qi;
280
+ te.Controls = Gi;
281
+ te.CollapseToggle = Ni;
282
+ te.Content = Hi;
283
+ te.Footer = Bi;
284
+ te.List = Ji;
285
+ te.Item = Yi;
286
+ te.Link = Xi;
287
+ te.Text = oo;
288
+ te.Icon = Wi;
289
+ te.Label = Ki;
290
+ te.Logo = Zi;
291
+ te.LogoTag = to;
292
+ te.LogoIcon = Qi;
293
+ te.LogoName = eo;
294
+ te.LogoText = no;
295
295
  ao.MenuButton = io;
296
296
  const Ht = Rn(null), $n = ({ children: e }) => {
297
297
  const n = Ze();
@@ -319,13 +319,13 @@ Gt.Title = so;
319
319
  Gt.Description = co;
320
320
  Gt.Content = po;
321
321
  function uo(e) {
322
- const [n, t] = ce.useState(null), i = ce.useRef(null), o = ce.useCallback(() => {
322
+ const [n, t] = le.useState(null), i = le.useRef(null), o = le.useCallback(() => {
323
323
  if (e.current) {
324
324
  const a = e.current.getBoundingClientRect();
325
325
  t(a);
326
326
  }
327
327
  }, [e]);
328
- return ce.useEffect(() => {
328
+ return le.useEffect(() => {
329
329
  const a = new ResizeObserver(() => {
330
330
  i.current && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(o);
331
331
  });
@@ -334,13 +334,13 @@ function uo(e) {
334
334
  };
335
335
  }, [e, o]), n;
336
336
  }
337
- const Dn = ce.createContext(null), Mn = ce.createContext([!1, () => {
337
+ const Dn = le.createContext(null), Mn = le.createContext([!1, () => {
338
338
  }]), An = ({ children: e }) => {
339
- const n = ce.useRef(null), t = uo(n), [i, o] = ce.useState(!1);
339
+ const n = le.useRef(null), t = uo(n), [i, o] = le.useState(!1);
340
340
  return /* @__PURE__ */ u(
341
341
  "header",
342
342
  {
343
- className: B("main-toolbar", {
343
+ className: H("main-toolbar", {
344
344
  "main-toolbar--stacked": i
345
345
  }),
346
346
  ref: n,
@@ -355,16 +355,16 @@ const Dn = ce.createContext(null), Mn = ce.createContext([!1, () => {
355
355
  }) => /* @__PURE__ */ u(
356
356
  e || "h1",
357
357
  {
358
- className: B("main-toolbar__title p-heading--4", t),
358
+ className: H("main-toolbar__title p-heading--4", t),
359
359
  "data-testid": "main-toolbar-heading",
360
360
  ...i,
361
361
  children: n
362
362
  }
363
363
  ), fo = ({ children: e }) => {
364
- const n = ce.useContext(Dn), [t, i] = ce.useContext(Mn), o = ce.useRef(null);
365
- return ce.useEffect(() => {
364
+ const n = le.useContext(Dn), [t, i] = le.useContext(Mn), o = le.useRef(null);
365
+ return le.useEffect(() => {
366
366
  !o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
367
- }, [i, n, o]), /* @__PURE__ */ Y(xe, { children: [
367
+ }, [i, n, o]), /* @__PURE__ */ B(xe, { children: [
368
368
  /* @__PURE__ */ u(
369
369
  "div",
370
370
  {
@@ -378,7 +378,7 @@ const Dn = ce.createContext(null), Mn = ce.createContext([!1, () => {
378
378
  /* @__PURE__ */ u(
379
379
  "div",
380
380
  {
381
- className: B("main-toolbar__controls", {
381
+ className: H("main-toolbar__controls", {
382
382
  "main-toolbar__controls--stacked": t
383
383
  }),
384
384
  children: e
@@ -395,16 +395,16 @@ const nt = ({
395
395
  variant: i = "wide",
396
396
  ...o
397
397
  }) => {
398
- const a = t || "section", r = B("content-section", n);
398
+ const a = t || "section", r = H("content-section", n);
399
399
  return /* @__PURE__ */ u(a, { ...o, className: r, children: /* @__PURE__ */ u(Si, { children: /* @__PURE__ */ u(Ci, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ u(xe, { children: e }) }) }) });
400
400
  }, mo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ u(
401
401
  t || "h1",
402
402
  {
403
403
  ...i,
404
- className: B("content-section__title p-heading--4", n),
404
+ className: H("content-section__title p-heading--4", n),
405
405
  children: e
406
406
  }
407
- ), vo = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { className: B("content-section__header", n), children: e }), xo = ({ children: e, className: n }) => /* @__PURE__ */ u("div", { className: B("content-section__body", n), children: e }), ho = ({ children: e, className: n }) => /* @__PURE__ */ u("footer", { className: B("content-section__footer", n), children: e });
407
+ ), vo = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { className: H("content-section__header", n), children: e }), xo = ({ children: e, className: n }) => /* @__PURE__ */ u("div", { className: H("content-section__body", n), children: e }), ho = ({ children: e, className: n }) => /* @__PURE__ */ u("footer", { className: H("content-section__footer", n), children: e });
408
408
  nt.Title = mo;
409
409
  nt.Header = vo;
410
410
  nt.Content = xo;
@@ -416,7 +416,7 @@ const On = ({
416
416
  }) => /* @__PURE__ */ u(
417
417
  "div",
418
418
  {
419
- className: B("fade-in--down", n),
419
+ className: H("fade-in--down", n),
420
420
  "aria-hidden": t ? "false" : "true",
421
421
  style: { visibility: t ? "visible" : "hidden" },
422
422
  children: e
@@ -439,8 +439,8 @@ const On = ({
439
439
  "nav",
440
440
  {
441
441
  "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
442
- className: B("p-pagination", e),
443
- children: /* @__PURE__ */ Y("span", { className: "p-pagination--items", children: [
442
+ className: H("p-pagination", e),
443
+ children: /* @__PURE__ */ B("span", { className: "p-pagination--items", children: [
444
444
  /* @__PURE__ */ u(
445
445
  ye,
446
446
  {
@@ -470,7 +470,7 @@ const On = ({
470
470
  }
471
471
  ),
472
472
  " ",
473
- /* @__PURE__ */ Y("strong", { className: "u-no-wrap", children: [
473
+ /* @__PURE__ */ B("strong", { className: "u-no-wrap", children: [
474
474
  " of ",
475
475
  s
476
476
  ] }),
@@ -493,7 +493,7 @@ const On = ({
493
493
  paginate: t,
494
494
  totalPages: i
495
495
  }) => {
496
- const [o, a] = fe(e), [r, l] = fe("");
496
+ const [o, a] = pe(e), [r, l] = pe("");
497
497
  return /* @__PURE__ */ u(
498
498
  wo,
499
499
  {
@@ -522,7 +522,7 @@ const On = ({
522
522
  "p",
523
523
  {
524
524
  "aria-label": a ? `${t} (completed)` : t,
525
- className: B("stepper__title", {
525
+ className: H("stepper__title", {
526
526
  "stepper__title--is-active": o,
527
527
  "stepper__title--is-complete": a
528
528
  }),
@@ -530,7 +530,7 @@ const On = ({
530
530
  }
531
531
  ) }, i);
532
532
  }) });
533
- var Be = { exports: {} }, Ue = { exports: {} }, U = {};
533
+ var Be = { exports: {} }, Ue = { exports: {} }, G = {};
534
534
  /** @license React v16.13.1
535
535
  * react-is.production.min.js
536
536
  *
@@ -541,9 +541,9 @@ var Be = { exports: {} }, Ue = { exports: {} }, U = {};
541
541
  */
542
542
  var en;
543
543
  function bo() {
544
- if (en) return U;
544
+ if (en) return G;
545
545
  en = 1;
546
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
546
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
547
547
  function C(h) {
548
548
  if (typeof h == "object" && h !== null) {
549
549
  var M = h.$$typeof;
@@ -574,38 +574,38 @@ function bo() {
574
574
  }
575
575
  }
576
576
  }
577
- function $(h) {
577
+ function O(h) {
578
578
  return C(h) === c;
579
579
  }
580
- return U.AsyncMode = s, U.ConcurrentMode = c, U.ContextConsumer = l, U.ContextProvider = r, U.Element = n, U.ForwardRef = d, U.Fragment = i, U.Lazy = f, U.Memo = p, U.Portal = t, U.Profiler = a, U.StrictMode = o, U.Suspense = m, U.isAsyncMode = function(h) {
581
- return $(h) || C(h) === s;
582
- }, U.isConcurrentMode = $, U.isContextConsumer = function(h) {
580
+ return G.AsyncMode = s, G.ConcurrentMode = c, G.ContextConsumer = l, G.ContextProvider = r, G.Element = n, G.ForwardRef = d, G.Fragment = i, G.Lazy = f, G.Memo = p, G.Portal = t, G.Profiler = a, G.StrictMode = o, G.Suspense = m, G.isAsyncMode = function(h) {
581
+ return O(h) || C(h) === s;
582
+ }, G.isConcurrentMode = O, G.isContextConsumer = function(h) {
583
583
  return C(h) === l;
584
- }, U.isContextProvider = function(h) {
584
+ }, G.isContextProvider = function(h) {
585
585
  return C(h) === r;
586
- }, U.isElement = function(h) {
586
+ }, G.isElement = function(h) {
587
587
  return typeof h == "object" && h !== null && h.$$typeof === n;
588
- }, U.isForwardRef = function(h) {
588
+ }, G.isForwardRef = function(h) {
589
589
  return C(h) === d;
590
- }, U.isFragment = function(h) {
590
+ }, G.isFragment = function(h) {
591
591
  return C(h) === i;
592
- }, U.isLazy = function(h) {
592
+ }, G.isLazy = function(h) {
593
593
  return C(h) === f;
594
- }, U.isMemo = function(h) {
594
+ }, G.isMemo = function(h) {
595
595
  return C(h) === p;
596
- }, U.isPortal = function(h) {
596
+ }, G.isPortal = function(h) {
597
597
  return C(h) === t;
598
- }, U.isProfiler = function(h) {
598
+ }, G.isProfiler = function(h) {
599
599
  return C(h) === a;
600
- }, U.isStrictMode = function(h) {
600
+ }, G.isStrictMode = function(h) {
601
601
  return C(h) === o;
602
- }, U.isSuspense = function(h) {
602
+ }, G.isSuspense = function(h) {
603
603
  return C(h) === m;
604
- }, U.isValidElementType = function(h) {
605
- return typeof h == "string" || typeof h == "function" || h === i || h === c || h === a || h === o || h === m || h === g || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === p || h.$$typeof === r || h.$$typeof === l || h.$$typeof === d || h.$$typeof === _ || h.$$typeof === y || h.$$typeof === I || h.$$typeof === v);
606
- }, U.typeOf = C, U;
604
+ }, G.isValidElementType = function(h) {
605
+ return typeof h == "string" || typeof h == "function" || h === i || h === c || h === a || h === o || h === m || h === g || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === p || h.$$typeof === r || h.$$typeof === l || h.$$typeof === d || h.$$typeof === _ || h.$$typeof === y || h.$$typeof === A || h.$$typeof === x);
606
+ }, G.typeOf = C, G;
607
607
  }
608
- var W = {};
608
+ var q = {};
609
609
  /** @license React v16.13.1
610
610
  * react-is.development.js
611
611
  *
@@ -617,15 +617,15 @@ var W = {};
617
617
  var tn;
618
618
  function So() {
619
619
  return tn || (tn = 1, process.env.NODE_ENV !== "production" && function() {
620
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
620
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
621
621
  function C(b) {
622
622
  return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
623
- b === i || b === c || b === a || b === o || b === m || b === g || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === p || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === _ || b.$$typeof === y || b.$$typeof === I || b.$$typeof === v);
623
+ b === i || b === c || b === a || b === o || b === m || b === g || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === p || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === _ || b.$$typeof === y || b.$$typeof === A || b.$$typeof === x);
624
624
  }
625
- function $(b) {
625
+ function O(b) {
626
626
  if (typeof b == "object" && b !== null) {
627
- var ue = b.$$typeof;
628
- switch (ue) {
627
+ var se = b.$$typeof;
628
+ switch (se) {
629
629
  case n:
630
630
  var Re = b.type;
631
631
  switch (Re) {
@@ -646,56 +646,56 @@ function So() {
646
646
  case r:
647
647
  return je;
648
648
  default:
649
- return ue;
649
+ return se;
650
650
  }
651
651
  }
652
652
  case t:
653
- return ue;
653
+ return se;
654
654
  }
655
655
  }
656
656
  }
657
- var h = s, M = c, j = l, J = r, ee = n, le = d, pe = i, me = f, he = p, Z = t, T = a, L = o, G = m, X = !1;
658
- function V(b) {
659
- return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(b) || $(b) === s;
657
+ var h = s, M = c, L = l, Y = r, X = n, ae = d, de = i, me = f, ge = p, W = t, Q = a, ne = o, fe = m, he = !1;
658
+ function T(b) {
659
+ return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), v(b) || O(b) === s;
660
660
  }
661
- function x(b) {
662
- return $(b) === c;
661
+ function v(b) {
662
+ return O(b) === c;
663
663
  }
664
664
  function w(b) {
665
- return $(b) === l;
665
+ return O(b) === l;
666
666
  }
667
- function D(b) {
668
- return $(b) === r;
667
+ function E(b) {
668
+ return O(b) === r;
669
669
  }
670
- function A(b) {
670
+ function k(b) {
671
671
  return typeof b == "object" && b !== null && b.$$typeof === n;
672
672
  }
673
- function F(b) {
674
- return $(b) === d;
673
+ function R(b) {
674
+ return O(b) === d;
675
675
  }
676
- function N(b) {
677
- return $(b) === i;
676
+ function I(b) {
677
+ return O(b) === i;
678
678
  }
679
- function P(b) {
680
- return $(b) === f;
679
+ function $(b) {
680
+ return O(b) === f;
681
681
  }
682
- function O(b) {
683
- return $(b) === p;
682
+ function j(b) {
683
+ return O(b) === p;
684
684
  }
685
- function H(b) {
686
- return $(b) === t;
685
+ function z(b) {
686
+ return O(b) === t;
687
687
  }
688
- function q(b) {
689
- return $(b) === a;
688
+ function N(b) {
689
+ return O(b) === a;
690
690
  }
691
- function z(b) {
692
- return $(b) === o;
691
+ function V(b) {
692
+ return O(b) === o;
693
693
  }
694
- function ne(b) {
695
- return $(b) === m;
694
+ function Z(b) {
695
+ return O(b) === m;
696
696
  }
697
- W.AsyncMode = h, W.ConcurrentMode = M, W.ContextConsumer = j, W.ContextProvider = J, W.Element = ee, W.ForwardRef = le, W.Fragment = pe, W.Lazy = me, W.Memo = he, W.Portal = Z, W.Profiler = T, W.StrictMode = L, W.Suspense = G, W.isAsyncMode = V, W.isConcurrentMode = x, W.isContextConsumer = w, W.isContextProvider = D, W.isElement = A, W.isForwardRef = F, W.isFragment = N, W.isLazy = P, W.isMemo = O, W.isPortal = H, W.isProfiler = q, W.isStrictMode = z, W.isSuspense = ne, W.isValidElementType = C, W.typeOf = $;
698
- }()), W;
697
+ q.AsyncMode = h, q.ConcurrentMode = M, q.ContextConsumer = L, q.ContextProvider = Y, q.Element = X, q.ForwardRef = ae, q.Fragment = de, q.Lazy = me, q.Memo = ge, q.Portal = W, q.Profiler = Q, q.StrictMode = ne, q.Suspense = fe, q.isAsyncMode = T, q.isConcurrentMode = v, q.isContextConsumer = w, q.isContextProvider = E, q.isElement = k, q.isForwardRef = R, q.isFragment = I, q.isLazy = $, q.isMemo = j, q.isPortal = z, q.isProfiler = N, q.isStrictMode = V, q.isSuspense = Z, q.isValidElementType = C, q.typeOf = O;
698
+ }()), q;
699
699
  }
700
700
  var nn;
701
701
  function jn() {
@@ -831,8 +831,8 @@ function Ro() {
831
831
  }
832
832
  return xt = function(l, s) {
833
833
  var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
834
- function m(x) {
835
- var w = x && (c && x[c] || x[d]);
834
+ function m(v) {
835
+ var w = v && (c && v[c] || v[d]);
836
836
  if (typeof w == "function")
837
837
  return w;
838
838
  }
@@ -845,215 +845,215 @@ function Ro() {
845
845
  object: y("object"),
846
846
  string: y("string"),
847
847
  symbol: y("symbol"),
848
- any: I(),
848
+ any: A(),
849
849
  arrayOf: C,
850
- element: $(),
850
+ element: O(),
851
851
  elementType: h(),
852
852
  instanceOf: M,
853
- node: le(),
854
- objectOf: J,
855
- oneOf: j,
856
- oneOfType: ee,
853
+ node: ae(),
854
+ objectOf: Y,
855
+ oneOf: L,
856
+ oneOfType: X,
857
857
  shape: me,
858
- exact: he
858
+ exact: ge
859
859
  };
860
- function f(x, w) {
861
- return x === w ? x !== 0 || 1 / x === 1 / w : x !== x && w !== w;
860
+ function f(v, w) {
861
+ return v === w ? v !== 0 || 1 / v === 1 / w : v !== v && w !== w;
862
862
  }
863
- function v(x, w) {
864
- this.message = x, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
863
+ function x(v, w) {
864
+ this.message = v, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
865
865
  }
866
- v.prototype = Error.prototype;
867
- function _(x) {
866
+ x.prototype = Error.prototype;
867
+ function _(v) {
868
868
  if (process.env.NODE_ENV !== "production")
869
- var w = {}, D = 0;
870
- function A(N, P, O, H, q, z, ne) {
871
- if (H = H || g, z = z || O, ne !== t) {
869
+ var w = {}, E = 0;
870
+ function k(I, $, j, z, N, V, Z) {
871
+ if (z = z || g, V = V || j, Z !== t) {
872
872
  if (s) {
873
873
  var b = new Error(
874
874
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
875
875
  );
876
876
  throw b.name = "Invariant Violation", b;
877
877
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
878
- var ue = H + ":" + O;
879
- !w[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
880
- D < 3 && (a(
881
- "You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
882
- ), w[ue] = !0, D++);
878
+ var se = z + ":" + j;
879
+ !w[se] && // Avoid spamming the console because they are often not actionable except for lib authors
880
+ E < 3 && (a(
881
+ "You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
882
+ ), w[se] = !0, E++);
883
883
  }
884
884
  }
885
- return P[O] == null ? N ? P[O] === null ? new v("The " + q + " `" + z + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new v("The " + q + " `" + z + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : x(P, O, H, q, z);
885
+ return $[j] == null ? I ? $[j] === null ? new x("The " + N + " `" + V + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new x("The " + N + " `" + V + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : v($, j, z, N, V);
886
886
  }
887
- var F = A.bind(null, !1);
888
- return F.isRequired = A.bind(null, !0), F;
887
+ var R = k.bind(null, !1);
888
+ return R.isRequired = k.bind(null, !0), R;
889
889
  }
890
- function y(x) {
891
- function w(D, A, F, N, P, O) {
892
- var H = D[A], q = L(H);
893
- if (q !== x) {
894
- var z = G(H);
895
- return new v(
896
- "Invalid " + N + " `" + P + "` of type " + ("`" + z + "` supplied to `" + F + "`, expected ") + ("`" + x + "`."),
897
- { expectedType: x }
890
+ function y(v) {
891
+ function w(E, k, R, I, $, j) {
892
+ var z = E[k], N = ne(z);
893
+ if (N !== v) {
894
+ var V = fe(z);
895
+ return new x(
896
+ "Invalid " + I + " `" + $ + "` of type " + ("`" + V + "` supplied to `" + R + "`, expected ") + ("`" + v + "`."),
897
+ { expectedType: v }
898
898
  );
899
899
  }
900
900
  return null;
901
901
  }
902
902
  return _(w);
903
903
  }
904
- function I() {
904
+ function A() {
905
905
  return _(r);
906
906
  }
907
- function C(x) {
908
- function w(D, A, F, N, P) {
909
- if (typeof x != "function")
910
- return new v("Property `" + P + "` of component `" + F + "` has invalid PropType notation inside arrayOf.");
911
- var O = D[A];
912
- if (!Array.isArray(O)) {
913
- var H = L(O);
914
- return new v("Invalid " + N + " `" + P + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected an array."));
907
+ function C(v) {
908
+ function w(E, k, R, I, $) {
909
+ if (typeof v != "function")
910
+ return new x("Property `" + $ + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
911
+ var j = E[k];
912
+ if (!Array.isArray(j)) {
913
+ var z = ne(j);
914
+ return new x("Invalid " + I + " `" + $ + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected an array."));
915
915
  }
916
- for (var q = 0; q < O.length; q++) {
917
- var z = x(O, q, F, N, P + "[" + q + "]", t);
918
- if (z instanceof Error)
919
- return z;
916
+ for (var N = 0; N < j.length; N++) {
917
+ var V = v(j, N, R, I, $ + "[" + N + "]", t);
918
+ if (V instanceof Error)
919
+ return V;
920
920
  }
921
921
  return null;
922
922
  }
923
923
  return _(w);
924
924
  }
925
- function $() {
926
- function x(w, D, A, F, N) {
927
- var P = w[D];
928
- if (!l(P)) {
929
- var O = L(P);
930
- return new v("Invalid " + F + " `" + N + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected a single ReactElement."));
925
+ function O() {
926
+ function v(w, E, k, R, I) {
927
+ var $ = w[E];
928
+ if (!l($)) {
929
+ var j = ne($);
930
+ return new x("Invalid " + R + " `" + I + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement."));
931
931
  }
932
932
  return null;
933
933
  }
934
- return _(x);
934
+ return _(v);
935
935
  }
936
936
  function h() {
937
- function x(w, D, A, F, N) {
938
- var P = w[D];
939
- if (!e.isValidElementType(P)) {
940
- var O = L(P);
941
- return new v("Invalid " + F + " `" + N + "` of type " + ("`" + O + "` supplied to `" + A + "`, expected a single ReactElement type."));
937
+ function v(w, E, k, R, I) {
938
+ var $ = w[E];
939
+ if (!e.isValidElementType($)) {
940
+ var j = ne($);
941
+ return new x("Invalid " + R + " `" + I + "` of type " + ("`" + j + "` supplied to `" + k + "`, expected a single ReactElement type."));
942
942
  }
943
943
  return null;
944
944
  }
945
- return _(x);
945
+ return _(v);
946
946
  }
947
- function M(x) {
948
- function w(D, A, F, N, P) {
949
- if (!(D[A] instanceof x)) {
950
- var O = x.name || g, H = V(D[A]);
951
- return new v("Invalid " + N + " `" + P + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected ") + ("instance of `" + O + "`."));
947
+ function M(v) {
948
+ function w(E, k, R, I, $) {
949
+ if (!(E[k] instanceof v)) {
950
+ var j = v.name || g, z = T(E[k]);
951
+ return new x("Invalid " + I + " `" + $ + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected ") + ("instance of `" + j + "`."));
952
952
  }
953
953
  return null;
954
954
  }
955
955
  return _(w);
956
956
  }
957
- function j(x) {
958
- if (!Array.isArray(x))
957
+ function L(v) {
958
+ if (!Array.isArray(v))
959
959
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
960
960
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
961
961
  ) : a("Invalid argument supplied to oneOf, expected an array.")), r;
962
- function w(D, A, F, N, P) {
963
- for (var O = D[A], H = 0; H < x.length; H++)
964
- if (f(O, x[H]))
962
+ function w(E, k, R, I, $) {
963
+ for (var j = E[k], z = 0; z < v.length; z++)
964
+ if (f(j, v[z]))
965
965
  return null;
966
- var q = JSON.stringify(x, function(ne, b) {
967
- var ue = G(b);
968
- return ue === "symbol" ? String(b) : b;
966
+ var N = JSON.stringify(v, function(Z, b) {
967
+ var se = fe(b);
968
+ return se === "symbol" ? String(b) : b;
969
969
  });
970
- return new v("Invalid " + N + " `" + P + "` of value `" + String(O) + "` " + ("supplied to `" + F + "`, expected one of " + q + "."));
970
+ return new x("Invalid " + I + " `" + $ + "` of value `" + String(j) + "` " + ("supplied to `" + R + "`, expected one of " + N + "."));
971
971
  }
972
972
  return _(w);
973
973
  }
974
- function J(x) {
975
- function w(D, A, F, N, P) {
976
- if (typeof x != "function")
977
- return new v("Property `" + P + "` of component `" + F + "` has invalid PropType notation inside objectOf.");
978
- var O = D[A], H = L(O);
979
- if (H !== "object")
980
- return new v("Invalid " + N + " `" + P + "` of type " + ("`" + H + "` supplied to `" + F + "`, expected an object."));
981
- for (var q in O)
982
- if (i(O, q)) {
983
- var z = x(O, q, F, N, P + "." + q, t);
984
- if (z instanceof Error)
985
- return z;
974
+ function Y(v) {
975
+ function w(E, k, R, I, $) {
976
+ if (typeof v != "function")
977
+ return new x("Property `" + $ + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
978
+ var j = E[k], z = ne(j);
979
+ if (z !== "object")
980
+ return new x("Invalid " + I + " `" + $ + "` of type " + ("`" + z + "` supplied to `" + R + "`, expected an object."));
981
+ for (var N in j)
982
+ if (i(j, N)) {
983
+ var V = v(j, N, R, I, $ + "." + N, t);
984
+ if (V instanceof Error)
985
+ return V;
986
986
  }
987
987
  return null;
988
988
  }
989
989
  return _(w);
990
990
  }
991
- function ee(x) {
992
- if (!Array.isArray(x))
991
+ function X(v) {
992
+ if (!Array.isArray(v))
993
993
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), r;
994
- for (var w = 0; w < x.length; w++) {
995
- var D = x[w];
996
- if (typeof D != "function")
994
+ for (var w = 0; w < v.length; w++) {
995
+ var E = v[w];
996
+ if (typeof E != "function")
997
997
  return a(
998
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(D) + " at index " + w + "."
998
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + he(E) + " at index " + w + "."
999
999
  ), r;
1000
1000
  }
1001
- function A(F, N, P, O, H) {
1002
- for (var q = [], z = 0; z < x.length; z++) {
1003
- var ne = x[z], b = ne(F, N, P, O, H, t);
1001
+ function k(R, I, $, j, z) {
1002
+ for (var N = [], V = 0; V < v.length; V++) {
1003
+ var Z = v[V], b = Z(R, I, $, j, z, t);
1004
1004
  if (b == null)
1005
1005
  return null;
1006
- b.data && i(b.data, "expectedType") && q.push(b.data.expectedType);
1006
+ b.data && i(b.data, "expectedType") && N.push(b.data.expectedType);
1007
1007
  }
1008
- var ue = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1009
- return new v("Invalid " + O + " `" + H + "` supplied to " + ("`" + P + "`" + ue + "."));
1008
+ var se = N.length > 0 ? ", expected one of type [" + N.join(", ") + "]" : "";
1009
+ return new x("Invalid " + j + " `" + z + "` supplied to " + ("`" + $ + "`" + se + "."));
1010
1010
  }
1011
- return _(A);
1011
+ return _(k);
1012
1012
  }
1013
- function le() {
1014
- function x(w, D, A, F, N) {
1015
- return Z(w[D]) ? null : new v("Invalid " + F + " `" + N + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
1013
+ function ae() {
1014
+ function v(w, E, k, R, I) {
1015
+ return W(w[E]) ? null : new x("Invalid " + R + " `" + I + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
1016
1016
  }
1017
- return _(x);
1017
+ return _(v);
1018
1018
  }
1019
- function pe(x, w, D, A, F) {
1020
- return new v(
1021
- (x || "React class") + ": " + w + " type `" + D + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + F + "`."
1019
+ function de(v, w, E, k, R) {
1020
+ return new x(
1021
+ (v || "React class") + ": " + w + " type `" + E + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
1022
1022
  );
1023
1023
  }
1024
- function me(x) {
1025
- function w(D, A, F, N, P) {
1026
- var O = D[A], H = L(O);
1027
- if (H !== "object")
1028
- return new v("Invalid " + N + " `" + P + "` of type `" + H + "` " + ("supplied to `" + F + "`, expected `object`."));
1029
- for (var q in x) {
1030
- var z = x[q];
1031
- if (typeof z != "function")
1032
- return pe(F, N, P, q, G(z));
1033
- var ne = z(O, q, F, N, P + "." + q, t);
1034
- if (ne)
1035
- return ne;
1024
+ function me(v) {
1025
+ function w(E, k, R, I, $) {
1026
+ var j = E[k], z = ne(j);
1027
+ if (z !== "object")
1028
+ return new x("Invalid " + I + " `" + $ + "` of type `" + z + "` " + ("supplied to `" + R + "`, expected `object`."));
1029
+ for (var N in v) {
1030
+ var V = v[N];
1031
+ if (typeof V != "function")
1032
+ return de(R, I, $, N, fe(V));
1033
+ var Z = V(j, N, R, I, $ + "." + N, t);
1034
+ if (Z)
1035
+ return Z;
1036
1036
  }
1037
1037
  return null;
1038
1038
  }
1039
1039
  return _(w);
1040
1040
  }
1041
- function he(x) {
1042
- function w(D, A, F, N, P) {
1043
- var O = D[A], H = L(O);
1044
- if (H !== "object")
1045
- return new v("Invalid " + N + " `" + P + "` of type `" + H + "` " + ("supplied to `" + F + "`, expected `object`."));
1046
- var q = n({}, D[A], x);
1047
- for (var z in q) {
1048
- var ne = x[z];
1049
- if (i(x, z) && typeof ne != "function")
1050
- return pe(F, N, P, z, G(ne));
1051
- if (!ne)
1052
- return new v(
1053
- "Invalid " + N + " `" + P + "` key `" + z + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(D[A], null, " ") + `
1054
- Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1041
+ function ge(v) {
1042
+ function w(E, k, R, I, $) {
1043
+ var j = E[k], z = ne(j);
1044
+ if (z !== "object")
1045
+ return new x("Invalid " + I + " `" + $ + "` of type `" + z + "` " + ("supplied to `" + R + "`, expected `object`."));
1046
+ var N = n({}, E[k], v);
1047
+ for (var V in N) {
1048
+ var Z = v[V];
1049
+ if (i(v, V) && typeof Z != "function")
1050
+ return de(R, I, $, V, fe(Z));
1051
+ if (!Z)
1052
+ return new x(
1053
+ "Invalid " + I + " `" + $ + "` key `" + V + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(E[k], null, " ") + `
1054
+ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
1055
1055
  );
1056
- var b = ne(O, z, F, N, P + "." + z, t);
1056
+ var b = Z(j, V, R, I, $ + "." + V, t);
1057
1057
  if (b)
1058
1058
  return b;
1059
1059
  }
@@ -1061,30 +1061,30 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1061
1061
  }
1062
1062
  return _(w);
1063
1063
  }
1064
- function Z(x) {
1065
- switch (typeof x) {
1064
+ function W(v) {
1065
+ switch (typeof v) {
1066
1066
  case "number":
1067
1067
  case "string":
1068
1068
  case "undefined":
1069
1069
  return !0;
1070
1070
  case "boolean":
1071
- return !x;
1071
+ return !v;
1072
1072
  case "object":
1073
- if (Array.isArray(x))
1074
- return x.every(Z);
1075
- if (x === null || l(x))
1073
+ if (Array.isArray(v))
1074
+ return v.every(W);
1075
+ if (v === null || l(v))
1076
1076
  return !0;
1077
- var w = m(x);
1077
+ var w = m(v);
1078
1078
  if (w) {
1079
- var D = w.call(x), A;
1080
- if (w !== x.entries) {
1081
- for (; !(A = D.next()).done; )
1082
- if (!Z(A.value))
1079
+ var E = w.call(v), k;
1080
+ if (w !== v.entries) {
1081
+ for (; !(k = E.next()).done; )
1082
+ if (!W(k.value))
1083
1083
  return !1;
1084
1084
  } else
1085
- for (; !(A = D.next()).done; ) {
1086
- var F = A.value;
1087
- if (F && !Z(F[1]))
1085
+ for (; !(k = E.next()).done; ) {
1086
+ var R = k.value;
1087
+ if (R && !W(R[1]))
1088
1088
  return !1;
1089
1089
  }
1090
1090
  } else
@@ -1094,27 +1094,27 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1094
1094
  return !1;
1095
1095
  }
1096
1096
  }
1097
- function T(x, w) {
1098
- return x === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
1097
+ function Q(v, w) {
1098
+ return v === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
1099
1099
  }
1100
- function L(x) {
1101
- var w = typeof x;
1102
- return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : T(w, x) ? "symbol" : w;
1100
+ function ne(v) {
1101
+ var w = typeof v;
1102
+ return Array.isArray(v) ? "array" : v instanceof RegExp ? "object" : Q(w, v) ? "symbol" : w;
1103
1103
  }
1104
- function G(x) {
1105
- if (typeof x > "u" || x === null)
1106
- return "" + x;
1107
- var w = L(x);
1104
+ function fe(v) {
1105
+ if (typeof v > "u" || v === null)
1106
+ return "" + v;
1107
+ var w = ne(v);
1108
1108
  if (w === "object") {
1109
- if (x instanceof Date)
1109
+ if (v instanceof Date)
1110
1110
  return "date";
1111
- if (x instanceof RegExp)
1111
+ if (v instanceof RegExp)
1112
1112
  return "regexp";
1113
1113
  }
1114
1114
  return w;
1115
1115
  }
1116
- function X(x) {
1117
- var w = G(x);
1116
+ function he(v) {
1117
+ var w = fe(v);
1118
1118
  switch (w) {
1119
1119
  case "array":
1120
1120
  case "object":
@@ -1127,8 +1127,8 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1127
1127
  return w;
1128
1128
  }
1129
1129
  }
1130
- function V(x) {
1131
- return !x.constructor || !x.constructor.name ? g : x.constructor.name;
1130
+ function T(v) {
1131
+ return !v.constructor || !v.constructor.name ? g : v.constructor.name;
1132
1132
  }
1133
1133
  return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
1134
1134
  }, xt;
@@ -1192,7 +1192,7 @@ function ko() {
1192
1192
  return Be.exports;
1193
1193
  }
1194
1194
  var Fo = /* @__PURE__ */ ko();
1195
- const K = /* @__PURE__ */ Nt(Fo);
1195
+ const U = /* @__PURE__ */ Nt(Fo);
1196
1196
  function Ie(e, n, t, i) {
1197
1197
  function o(a) {
1198
1198
  return a instanceof t ? a : new t(function(r) {
@@ -2711,8 +2711,8 @@ function Ee(e) {
2711
2711
  function na(e) {
2712
2712
  var n = e.files, t = e.accept, i = e.minSize, o = e.maxSize, a = e.multiple, r = e.maxFiles, l = e.validator;
2713
2713
  return !a && n.length > 1 || a && r >= 1 && n.length > r ? !1 : n.every(function(s) {
2714
- var c = Hn(s, t), d = Ne(c, 1), m = d[0], g = Gn(s, i, o), p = Ne(g, 1), f = p[0], v = l ? l(s) : null;
2715
- return m && f && !v;
2714
+ var c = Hn(s, t), d = Ne(c, 1), m = d[0], g = Gn(s, i, o), p = Ne(g, 1), f = p[0], x = l ? l(s) : null;
2715
+ return m && f && !x;
2716
2716
  });
2717
2717
  }
2718
2718
  function et(e) {
@@ -2855,7 +2855,7 @@ function bn(e, n) {
2855
2855
  }
2856
2856
  return t;
2857
2857
  }
2858
- function Q(e) {
2858
+ function K(e) {
2859
2859
  for (var n = 1; n < arguments.length; n++) {
2860
2860
  var t = arguments[n] != null ? arguments[n] : {};
2861
2861
  n % 2 ? bn(Object(t), !0).forEach(function(i) {
@@ -2892,7 +2892,7 @@ var Bt = /* @__PURE__ */ xi(function(e, n) {
2892
2892
  return {
2893
2893
  open: a
2894
2894
  };
2895
- }, [a]), /* @__PURE__ */ mi.createElement(kn, null, t(Q(Q({}, r), {}, {
2895
+ }, [a]), /* @__PURE__ */ mi.createElement(kn, null, t(K(K({}, r), {}, {
2896
2896
  open: a
2897
2897
  })));
2898
2898
  });
@@ -2930,7 +2930,7 @@ Bt.propTypes = {
2930
2930
  * @param {File[]} params.acceptedFiles Accepted files
2931
2931
  * @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
2932
2932
  */
2933
- children: K.func,
2933
+ children: U.func,
2934
2934
  /**
2935
2935
  * Set accepted file types.
2936
2936
  * Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
@@ -2938,90 +2938,90 @@ Bt.propTypes = {
2938
2938
  * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
2939
2939
  * Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
2940
2940
  */
2941
- accept: K.objectOf(K.arrayOf(K.string)),
2941
+ accept: U.objectOf(U.arrayOf(U.string)),
2942
2942
  /**
2943
2943
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
2944
2944
  */
2945
- multiple: K.bool,
2945
+ multiple: U.bool,
2946
2946
  /**
2947
2947
  * If false, allow dropped items to take over the current browser window
2948
2948
  */
2949
- preventDropOnDocument: K.bool,
2949
+ preventDropOnDocument: U.bool,
2950
2950
  /**
2951
2951
  * If true, disables click to open the native file selection dialog
2952
2952
  */
2953
- noClick: K.bool,
2953
+ noClick: U.bool,
2954
2954
  /**
2955
2955
  * If true, disables SPACE/ENTER to open the native file selection dialog.
2956
2956
  * Note that it also stops tracking the focus state.
2957
2957
  */
2958
- noKeyboard: K.bool,
2958
+ noKeyboard: U.bool,
2959
2959
  /**
2960
2960
  * If true, disables drag 'n' drop
2961
2961
  */
2962
- noDrag: K.bool,
2962
+ noDrag: U.bool,
2963
2963
  /**
2964
2964
  * If true, stops drag event propagation to parents
2965
2965
  */
2966
- noDragEventsBubbling: K.bool,
2966
+ noDragEventsBubbling: U.bool,
2967
2967
  /**
2968
2968
  * Minimum file size (in bytes)
2969
2969
  */
2970
- minSize: K.number,
2970
+ minSize: U.number,
2971
2971
  /**
2972
2972
  * Maximum file size (in bytes)
2973
2973
  */
2974
- maxSize: K.number,
2974
+ maxSize: U.number,
2975
2975
  /**
2976
2976
  * Maximum accepted number of files
2977
2977
  * The default value is 0 which means there is no limitation to how many files are accepted.
2978
2978
  */
2979
- maxFiles: K.number,
2979
+ maxFiles: U.number,
2980
2980
  /**
2981
2981
  * Enable/disable the dropzone
2982
2982
  */
2983
- disabled: K.bool,
2983
+ disabled: U.bool,
2984
2984
  /**
2985
2985
  * Use this to provide a custom file aggregator
2986
2986
  *
2987
2987
  * @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
2988
2988
  */
2989
- getFilesFromEvent: K.func,
2989
+ getFilesFromEvent: U.func,
2990
2990
  /**
2991
2991
  * Cb for when closing the file dialog with no selection
2992
2992
  */
2993
- onFileDialogCancel: K.func,
2993
+ onFileDialogCancel: U.func,
2994
2994
  /**
2995
2995
  * Cb for when opening the file dialog
2996
2996
  */
2997
- onFileDialogOpen: K.func,
2997
+ onFileDialogOpen: U.func,
2998
2998
  /**
2999
2999
  * Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
3000
3000
  * to open the file picker instead of using an `<input type="file">` click event.
3001
3001
  */
3002
- useFsAccessApi: K.bool,
3002
+ useFsAccessApi: U.bool,
3003
3003
  /**
3004
3004
  * Set to true to focus the root element on render
3005
3005
  */
3006
- autoFocus: K.bool,
3006
+ autoFocus: U.bool,
3007
3007
  /**
3008
3008
  * Cb for when the `dragenter` event occurs.
3009
3009
  *
3010
3010
  * @param {DragEvent} event
3011
3011
  */
3012
- onDragEnter: K.func,
3012
+ onDragEnter: U.func,
3013
3013
  /**
3014
3014
  * Cb for when the `dragleave` event occurs
3015
3015
  *
3016
3016
  * @param {DragEvent} event
3017
3017
  */
3018
- onDragLeave: K.func,
3018
+ onDragLeave: U.func,
3019
3019
  /**
3020
3020
  * Cb for when the `dragover` event occurs
3021
3021
  *
3022
3022
  * @param {DragEvent} event
3023
3023
  */
3024
- onDragOver: K.func,
3024
+ onDragOver: U.func,
3025
3025
  /**
3026
3026
  * Cb for when the `drop` event occurs.
3027
3027
  * Note that this callback is invoked after the `getFilesFromEvent` callback is done.
@@ -3052,7 +3052,7 @@ Bt.propTypes = {
3052
3052
  * @param {FileRejection[]} fileRejections
3053
3053
  * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
3054
3054
  */
3055
- onDrop: K.func,
3055
+ onDrop: U.func,
3056
3056
  /**
3057
3057
  * Cb for when the `drop` event occurs.
3058
3058
  * Note that if no files are accepted, this callback is not invoked.
@@ -3060,7 +3060,7 @@ Bt.propTypes = {
3060
3060
  * @param {File[]} files
3061
3061
  * @param {(DragEvent|Event)} event
3062
3062
  */
3063
- onDropAccepted: K.func,
3063
+ onDropAccepted: U.func,
3064
3064
  /**
3065
3065
  * Cb for when the `drop` event occurs.
3066
3066
  * Note that if no files are rejected, this callback is not invoked.
@@ -3068,19 +3068,19 @@ Bt.propTypes = {
3068
3068
  * @param {FileRejection[]} fileRejections
3069
3069
  * @param {(DragEvent|Event)} event
3070
3070
  */
3071
- onDropRejected: K.func,
3071
+ onDropRejected: U.func,
3072
3072
  /**
3073
3073
  * Cb for when there's some error from any of the promises.
3074
3074
  *
3075
3075
  * @param {Error} error
3076
3076
  */
3077
- onError: K.func,
3077
+ onError: U.func,
3078
3078
  /**
3079
3079
  * Custom validation function. It must return null if there's no errors.
3080
3080
  * @param {File} file
3081
3081
  * @returns {FileError|FileError[]|null}
3082
3082
  */
3083
- validator: K.func
3083
+ validator: U.func
3084
3084
  };
3085
3085
  var Mt = {
3086
3086
  isFocused: !1,
@@ -3092,186 +3092,186 @@ var Mt = {
3092
3092
  fileRejections: []
3093
3093
  };
3094
3094
  function Yn() {
3095
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = Q(Q({}, Wn), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, m = n.onDragOver, g = n.onDrop, p = n.onDropAccepted, f = n.onDropRejected, v = n.onFileDialogCancel, _ = n.onFileDialogOpen, y = n.useFsAccessApi, I = n.autoFocus, C = n.preventDropOnDocument, $ = n.noClick, h = n.noKeyboard, M = n.noDrag, j = n.noDragEventsBubbling, J = n.onError, ee = n.validator, le = re(function() {
3095
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = K(K({}, Wn), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, m = n.onDragOver, g = n.onDrop, p = n.onDropAccepted, f = n.onDropRejected, x = n.onFileDialogCancel, _ = n.onFileDialogOpen, y = n.useFsAccessApi, A = n.autoFocus, C = n.preventDropOnDocument, O = n.noClick, h = n.noKeyboard, M = n.noDrag, L = n.noDragEventsBubbling, Y = n.onError, X = n.validator, ae = oe(function() {
3096
3096
  return sa(t);
3097
- }, [t]), pe = re(function() {
3097
+ }, [t]), de = oe(function() {
3098
3098
  return la(t);
3099
- }, [t]), me = re(function() {
3099
+ }, [t]), me = oe(function() {
3100
3100
  return typeof _ == "function" ? _ : Sn;
3101
- }, [_]), he = re(function() {
3102
- return typeof v == "function" ? v : Sn;
3103
- }, [v]), Z = ke(null), T = ke(null), L = En(Ca, Mt), G = yt(L, 2), X = G[0], V = G[1], x = X.isFocused, w = X.isFileDialogActive, D = ke(typeof window < "u" && window.isSecureContext && y && ra()), A = function() {
3104
- !D.current && w && setTimeout(function() {
3105
- if (T.current) {
3106
- var k = T.current.files;
3107
- k.length || (V({
3101
+ }, [_]), ge = oe(function() {
3102
+ return typeof x == "function" ? x : Sn;
3103
+ }, [x]), W = ke(null), Q = ke(null), ne = En(Ca, Mt), fe = yt(ne, 2), he = fe[0], T = fe[1], v = he.isFocused, w = he.isFileDialogActive, E = ke(typeof window < "u" && window.isSecureContext && y && ra()), k = function() {
3104
+ !E.current && w && setTimeout(function() {
3105
+ if (Q.current) {
3106
+ var D = Q.current.files;
3107
+ D.length || (T({
3108
3108
  type: "closeDialog"
3109
- }), he());
3109
+ }), ge());
3110
3110
  }
3111
3111
  }, 300);
3112
3112
  };
3113
3113
  Pe(function() {
3114
- return window.addEventListener("focus", A, !1), function() {
3115
- window.removeEventListener("focus", A, !1);
3114
+ return window.addEventListener("focus", k, !1), function() {
3115
+ window.removeEventListener("focus", k, !1);
3116
3116
  };
3117
- }, [T, w, he, D]);
3118
- var F = ke([]), N = function(k) {
3119
- Z.current && Z.current.contains(k.target) || (k.preventDefault(), F.current = []);
3117
+ }, [Q, w, ge, E]);
3118
+ var R = ke([]), I = function(D) {
3119
+ W.current && W.current.contains(D.target) || (D.preventDefault(), R.current = []);
3120
3120
  };
3121
3121
  Pe(function() {
3122
- return C && (document.addEventListener("dragover", yn, !1), document.addEventListener("drop", N, !1)), function() {
3123
- C && (document.removeEventListener("dragover", yn), document.removeEventListener("drop", N));
3122
+ return C && (document.addEventListener("dragover", yn, !1), document.addEventListener("drop", I, !1)), function() {
3123
+ C && (document.removeEventListener("dragover", yn), document.removeEventListener("drop", I));
3124
3124
  };
3125
- }, [Z, C]), Pe(function() {
3126
- return !i && I && Z.current && Z.current.focus(), function() {
3125
+ }, [W, C]), Pe(function() {
3126
+ return !i && A && W.current && W.current.focus(), function() {
3127
3127
  };
3128
- }, [Z, I, i]);
3129
- var P = se(function(S) {
3130
- J ? J(S) : console.error(S);
3131
- }, [J]), O = se(function(S) {
3132
- S.preventDefault(), S.persist(), Ge(S), F.current = [].concat(ma(F.current), [S.target]), Ye(S) && Promise.resolve(o(S)).then(function(k) {
3133
- if (!(et(S) && !j)) {
3134
- var te = k.length, ie = te > 0 && na({
3135
- files: k,
3136
- accept: le,
3128
+ }, [W, A, i]);
3129
+ var $ = re(function(S) {
3130
+ Y ? Y(S) : console.error(S);
3131
+ }, [Y]), j = re(function(S) {
3132
+ S.preventDefault(), S.persist(), Ge(S), R.current = [].concat(ma(R.current), [S.target]), Ye(S) && Promise.resolve(o(S)).then(function(D) {
3133
+ if (!(et(S) && !L)) {
3134
+ var J = D.length, ee = J > 0 && na({
3135
+ files: D,
3136
+ accept: ae,
3137
3137
  minSize: r,
3138
3138
  maxSize: a,
3139
3139
  multiple: l,
3140
3140
  maxFiles: s,
3141
- validator: ee
3142
- }), de = te > 0 && !ie;
3143
- V({
3144
- isDragAccept: ie,
3145
- isDragReject: de,
3141
+ validator: X
3142
+ }), ce = J > 0 && !ee;
3143
+ T({
3144
+ isDragAccept: ee,
3145
+ isDragReject: ce,
3146
3146
  isDragActive: !0,
3147
3147
  type: "setDraggedFiles"
3148
3148
  }), c && c(S);
3149
3149
  }
3150
- }).catch(function(k) {
3151
- return P(k);
3150
+ }).catch(function(D) {
3151
+ return $(D);
3152
3152
  });
3153
- }, [o, c, P, j, le, r, a, l, s, ee]), H = se(function(S) {
3153
+ }, [o, c, $, L, ae, r, a, l, s, X]), z = re(function(S) {
3154
3154
  S.preventDefault(), S.persist(), Ge(S);
3155
- var k = Ye(S);
3156
- if (k && S.dataTransfer)
3155
+ var D = Ye(S);
3156
+ if (D && S.dataTransfer)
3157
3157
  try {
3158
3158
  S.dataTransfer.dropEffect = "copy";
3159
3159
  } catch {
3160
3160
  }
3161
- return k && m && m(S), !1;
3162
- }, [m, j]), q = se(function(S) {
3161
+ return D && m && m(S), !1;
3162
+ }, [m, L]), N = re(function(S) {
3163
3163
  S.preventDefault(), S.persist(), Ge(S);
3164
- var k = F.current.filter(function(ie) {
3165
- return Z.current && Z.current.contains(ie);
3166
- }), te = k.indexOf(S.target);
3167
- te !== -1 && k.splice(te, 1), F.current = k, !(k.length > 0) && (V({
3164
+ var D = R.current.filter(function(ee) {
3165
+ return W.current && W.current.contains(ee);
3166
+ }), J = D.indexOf(S.target);
3167
+ J !== -1 && D.splice(J, 1), R.current = D, !(D.length > 0) && (T({
3168
3168
  type: "setDraggedFiles",
3169
3169
  isDragActive: !1,
3170
3170
  isDragAccept: !1,
3171
3171
  isDragReject: !1
3172
3172
  }), Ye(S) && d && d(S));
3173
- }, [Z, d, j]), z = se(function(S, k) {
3174
- var te = [], ie = [];
3175
- S.forEach(function(de) {
3176
- var Te = Hn(de, le), De = yt(Te, 2), at = De[0], rt = De[1], lt = Gn(de, r, a), qe = yt(lt, 2), st = qe[0], ct = qe[1], pt = ee ? ee(de) : null;
3173
+ }, [W, d, L]), V = re(function(S, D) {
3174
+ var J = [], ee = [];
3175
+ S.forEach(function(ce) {
3176
+ var Te = Hn(ce, ae), De = yt(Te, 2), at = De[0], rt = De[1], lt = Gn(ce, r, a), qe = yt(lt, 2), st = qe[0], ct = qe[1], pt = X ? X(ce) : null;
3177
3177
  if (at && st && !pt)
3178
- te.push(de);
3178
+ J.push(ce);
3179
3179
  else {
3180
3180
  var ut = [rt, ct];
3181
- pt && (ut = ut.concat(pt)), ie.push({
3182
- file: de,
3181
+ pt && (ut = ut.concat(pt)), ee.push({
3182
+ file: ce,
3183
3183
  errors: ut.filter(function(fi) {
3184
3184
  return fi;
3185
3185
  })
3186
3186
  });
3187
3187
  }
3188
- }), (!l && te.length > 1 || l && s >= 1 && te.length > s) && (te.forEach(function(de) {
3189
- ie.push({
3190
- file: de,
3188
+ }), (!l && J.length > 1 || l && s >= 1 && J.length > s) && (J.forEach(function(ce) {
3189
+ ee.push({
3190
+ file: ce,
3191
3191
  errors: [ta]
3192
3192
  });
3193
- }), te.splice(0)), V({
3194
- acceptedFiles: te,
3195
- fileRejections: ie,
3196
- isDragReject: ie.length > 0,
3193
+ }), J.splice(0)), T({
3194
+ acceptedFiles: J,
3195
+ fileRejections: ee,
3196
+ isDragReject: ee.length > 0,
3197
3197
  type: "setFiles"
3198
- }), g && g(te, ie, k), ie.length > 0 && f && f(ie, k), te.length > 0 && p && p(te, k);
3199
- }, [V, l, le, r, a, s, g, p, f, ee]), ne = se(function(S) {
3200
- S.preventDefault(), S.persist(), Ge(S), F.current = [], Ye(S) && Promise.resolve(o(S)).then(function(k) {
3201
- et(S) && !j || z(k, S);
3202
- }).catch(function(k) {
3203
- return P(k);
3204
- }), V({
3198
+ }), g && g(J, ee, D), ee.length > 0 && f && f(ee, D), J.length > 0 && p && p(J, D);
3199
+ }, [T, l, ae, r, a, s, g, p, f, X]), Z = re(function(S) {
3200
+ S.preventDefault(), S.persist(), Ge(S), R.current = [], Ye(S) && Promise.resolve(o(S)).then(function(D) {
3201
+ et(S) && !L || V(D, S);
3202
+ }).catch(function(D) {
3203
+ return $(D);
3204
+ }), T({
3205
3205
  type: "reset"
3206
3206
  });
3207
- }, [o, z, P, j]), b = se(function() {
3208
- if (D.current) {
3209
- V({
3207
+ }, [o, V, $, L]), b = re(function() {
3208
+ if (E.current) {
3209
+ T({
3210
3210
  type: "openDialog"
3211
3211
  }), me();
3212
3212
  var S = {
3213
3213
  multiple: l,
3214
- types: pe
3214
+ types: de
3215
3215
  };
3216
- window.showOpenFilePicker(S).then(function(k) {
3217
- return o(k);
3218
- }).then(function(k) {
3219
- z(k, null), V({
3216
+ window.showOpenFilePicker(S).then(function(D) {
3217
+ return o(D);
3218
+ }).then(function(D) {
3219
+ V(D, null), T({
3220
3220
  type: "closeDialog"
3221
3221
  });
3222
- }).catch(function(k) {
3223
- ca(k) ? (he(k), V({
3222
+ }).catch(function(D) {
3223
+ ca(D) ? (ge(D), T({
3224
3224
  type: "closeDialog"
3225
- })) : pa(k) ? (D.current = !1, T.current ? (T.current.value = null, T.current.click()) : P(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : P(k);
3225
+ })) : pa(D) ? (E.current = !1, Q.current ? (Q.current.value = null, Q.current.click()) : $(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : $(D);
3226
3226
  });
3227
3227
  return;
3228
3228
  }
3229
- T.current && (V({
3229
+ Q.current && (T({
3230
3230
  type: "openDialog"
3231
- }), me(), T.current.value = null, T.current.click());
3232
- }, [V, me, he, y, z, P, pe, l]), ue = se(function(S) {
3233
- !Z.current || !Z.current.isEqualNode(S.target) || (S.key === " " || S.key === "Enter" || S.keyCode === 32 || S.keyCode === 13) && (S.preventDefault(), b());
3234
- }, [Z, b]), Re = se(function() {
3235
- V({
3231
+ }), me(), Q.current.value = null, Q.current.click());
3232
+ }, [T, me, ge, y, V, $, de, l]), se = re(function(S) {
3233
+ !W.current || !W.current.isEqualNode(S.target) || (S.key === " " || S.key === "Enter" || S.keyCode === 32 || S.keyCode === 13) && (S.preventDefault(), b());
3234
+ }, [W, b]), Re = re(function() {
3235
+ T({
3236
3236
  type: "focus"
3237
3237
  });
3238
- }, []), je = se(function() {
3239
- V({
3238
+ }, []), je = re(function() {
3239
+ T({
3240
3240
  type: "blur"
3241
3241
  });
3242
- }, []), Kt = se(function() {
3243
- $ || (aa() ? setTimeout(b, 0) : b());
3244
- }, [$, b]), $e = function(k) {
3245
- return i ? null : k;
3246
- }, ot = function(k) {
3247
- return h ? null : $e(k);
3248
- }, He = function(k) {
3249
- return M ? null : $e(k);
3250
- }, Ge = function(k) {
3251
- j && k.stopPropagation();
3252
- }, ui = re(function() {
3242
+ }, []), Kt = re(function() {
3243
+ O || (aa() ? setTimeout(b, 0) : b());
3244
+ }, [O, b]), $e = function(D) {
3245
+ return i ? null : D;
3246
+ }, ot = function(D) {
3247
+ return h ? null : $e(D);
3248
+ }, He = function(D) {
3249
+ return M ? null : $e(D);
3250
+ }, Ge = function(D) {
3251
+ L && D.stopPropagation();
3252
+ }, ui = oe(function() {
3253
3253
  return function() {
3254
- var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = S.refKey, te = k === void 0 ? "ref" : k, ie = S.role, de = S.onKeyDown, Te = S.onFocus, De = S.onBlur, at = S.onClick, rt = S.onDragEnter, lt = S.onDragOver, qe = S.onDragLeave, st = S.onDrop, ct = tt(S, ga);
3255
- return Q(Q(Dt({
3256
- onKeyDown: ot(we(de, ue)),
3254
+ var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, D = S.refKey, J = D === void 0 ? "ref" : D, ee = S.role, ce = S.onKeyDown, Te = S.onFocus, De = S.onBlur, at = S.onClick, rt = S.onDragEnter, lt = S.onDragOver, qe = S.onDragLeave, st = S.onDrop, ct = tt(S, ga);
3255
+ return K(K(Dt({
3256
+ onKeyDown: ot(we(ce, se)),
3257
3257
  onFocus: ot(we(Te, Re)),
3258
3258
  onBlur: ot(we(De, je)),
3259
3259
  onClick: $e(we(at, Kt)),
3260
- onDragEnter: He(we(rt, O)),
3261
- onDragOver: He(we(lt, H)),
3262
- onDragLeave: He(we(qe, q)),
3263
- onDrop: He(we(st, ne)),
3264
- role: typeof ie == "string" && ie !== "" ? ie : "presentation"
3265
- }, te, Z), !i && !h ? {
3260
+ onDragEnter: He(we(rt, j)),
3261
+ onDragOver: He(we(lt, z)),
3262
+ onDragLeave: He(we(qe, N)),
3263
+ onDrop: He(we(st, Z)),
3264
+ role: typeof ee == "string" && ee !== "" ? ee : "presentation"
3265
+ }, J, W), !i && !h ? {
3266
3266
  tabIndex: 0
3267
3267
  } : {}), ct);
3268
3268
  };
3269
- }, [Z, ue, Re, je, Kt, O, H, q, ne, h, M, i]), di = se(function(S) {
3269
+ }, [W, se, Re, je, Kt, j, z, N, Z, h, M, i]), di = re(function(S) {
3270
3270
  S.stopPropagation();
3271
- }, []), gi = re(function() {
3271
+ }, []), gi = oe(function() {
3272
3272
  return function() {
3273
- var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = S.refKey, te = k === void 0 ? "ref" : k, ie = S.onChange, de = S.onClick, Te = tt(S, fa), De = Dt({
3274
- accept: le,
3273
+ var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, D = S.refKey, J = D === void 0 ? "ref" : D, ee = S.onChange, ce = S.onClick, Te = tt(S, fa), De = Dt({
3274
+ accept: ae,
3275
3275
  multiple: l,
3276
3276
  type: "file",
3277
3277
  style: {
@@ -3286,54 +3286,54 @@ function Yn() {
3286
3286
  width: "1px",
3287
3287
  whiteSpace: "nowrap"
3288
3288
  },
3289
- onChange: $e(we(ie, ne)),
3290
- onClick: $e(we(de, di)),
3289
+ onChange: $e(we(ee, Z)),
3290
+ onClick: $e(we(ce, di)),
3291
3291
  tabIndex: -1
3292
- }, te, T);
3293
- return Q(Q({}, De), Te);
3292
+ }, J, Q);
3293
+ return K(K({}, De), Te);
3294
3294
  };
3295
- }, [T, t, l, ne, i]);
3296
- return Q(Q({}, X), {}, {
3297
- isFocused: x && !i,
3295
+ }, [Q, t, l, Z, i]);
3296
+ return K(K({}, he), {}, {
3297
+ isFocused: v && !i,
3298
3298
  getRootProps: ui,
3299
3299
  getInputProps: gi,
3300
- rootRef: Z,
3301
- inputRef: T,
3300
+ rootRef: W,
3301
+ inputRef: Q,
3302
3302
  open: $e(b)
3303
3303
  });
3304
3304
  }
3305
3305
  function Ca(e, n) {
3306
3306
  switch (n.type) {
3307
3307
  case "focus":
3308
- return Q(Q({}, e), {}, {
3308
+ return K(K({}, e), {}, {
3309
3309
  isFocused: !0
3310
3310
  });
3311
3311
  case "blur":
3312
- return Q(Q({}, e), {}, {
3312
+ return K(K({}, e), {}, {
3313
3313
  isFocused: !1
3314
3314
  });
3315
3315
  case "openDialog":
3316
- return Q(Q({}, Mt), {}, {
3316
+ return K(K({}, Mt), {}, {
3317
3317
  isFileDialogActive: !0
3318
3318
  });
3319
3319
  case "closeDialog":
3320
- return Q(Q({}, e), {}, {
3320
+ return K(K({}, e), {}, {
3321
3321
  isFileDialogActive: !1
3322
3322
  });
3323
3323
  case "setDraggedFiles":
3324
- return Q(Q({}, e), {}, {
3324
+ return K(K({}, e), {}, {
3325
3325
  isDragActive: n.isDragActive,
3326
3326
  isDragAccept: n.isDragAccept,
3327
3327
  isDragReject: n.isDragReject
3328
3328
  });
3329
3329
  case "setFiles":
3330
- return Q(Q({}, e), {}, {
3330
+ return K(K({}, e), {}, {
3331
3331
  acceptedFiles: n.acceptedFiles,
3332
3332
  fileRejections: n.fileRejections,
3333
3333
  isDragReject: n.isDragReject
3334
3334
  });
3335
3335
  case "reset":
3336
- return Q({}, Mt);
3336
+ return K({}, Mt);
3337
3337
  default:
3338
3338
  return e;
3339
3339
  }
@@ -3375,7 +3375,7 @@ const _a = () => {
3375
3375
  acceptedFiles: [],
3376
3376
  fileRejections: []
3377
3377
  }
3378
- ), o = se(
3378
+ ), o = re(
3379
3379
  (l, s) => i({
3380
3380
  type: "add-files",
3381
3381
  payload: { acceptedFiles: l, fileRejections: s }
@@ -3402,16 +3402,16 @@ const _a = () => {
3402
3402
  maxSize: r,
3403
3403
  onDrop: l
3404
3404
  }), g = Ze();
3405
- return /* @__PURE__ */ Y(
3405
+ return /* @__PURE__ */ B(
3406
3406
  "div",
3407
3407
  {
3408
- className: B("p-form__group p-form-validation", {
3408
+ className: H("p-form__group p-form-validation", {
3409
3409
  "is-error": !!n
3410
3410
  }),
3411
3411
  children: [
3412
3412
  o && /* @__PURE__ */ u(Ri, { id: g, children: o }),
3413
3413
  i && /* @__PURE__ */ u("p", { className: "p-form-help-text", children: i }),
3414
- /* @__PURE__ */ Y("div", { className: "p-form__control", children: [
3414
+ /* @__PURE__ */ B("div", { className: "p-form__control", children: [
3415
3415
  !a || t.length < a ? /* @__PURE__ */ u("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ u(
3416
3416
  "div",
3417
3417
  {
@@ -3422,13 +3422,13 @@ const _a = () => {
3422
3422
  children: /* @__PURE__ */ u("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
3423
3423
  }
3424
3424
  ) }) : null,
3425
- n ? /* @__PURE__ */ Y("p", { className: "p-form-validation__message", children: [
3425
+ n ? /* @__PURE__ */ B("p", { className: "p-form-validation__message", children: [
3426
3426
  /* @__PURE__ */ u("strong", { children: "Error: " }),
3427
3427
  n
3428
3428
  ] }) : null,
3429
- /* @__PURE__ */ Y("div", { className: "file-upload__files-list", children: [
3430
- s && s.map((p) => /* @__PURE__ */ Y("span", { className: "is-error", children: [
3431
- /* @__PURE__ */ Y("div", { className: "file-upload__file is-rejected", children: [
3429
+ /* @__PURE__ */ B("div", { className: "file-upload__files-list", children: [
3430
+ s && s.map((p) => /* @__PURE__ */ B("span", { className: "is-error", children: [
3431
+ /* @__PURE__ */ B("div", { className: "file-upload__file is-rejected", children: [
3432
3432
  p.file.name,
3433
3433
  /* @__PURE__ */ u(
3434
3434
  ye,
@@ -3450,7 +3450,7 @@ const _a = () => {
3450
3450
  `${p.file.name}-${f.code}`
3451
3451
  ))
3452
3452
  ] }, p.file.name)),
3453
- t && t.map((p) => /* @__PURE__ */ Y("div", { className: "file-upload__file", children: [
3453
+ t && t.map((p) => /* @__PURE__ */ B("div", { className: "file-upload__file", children: [
3454
3454
  p.name,
3455
3455
  p.percentUploaded !== void 0 ? /* @__PURE__ */ u(zi, { percentComplete: p.percentUploaded }) : /* @__PURE__ */ u(
3456
3456
  ye,
@@ -3524,31 +3524,31 @@ const _a = () => {
3524
3524
  groupFn: s = ka,
3525
3525
  ...c
3526
3526
  }) => {
3527
- const d = re(
3527
+ const d = oe(
3528
3528
  () => new Set(n.map((y) => y.value)),
3529
3529
  [n]
3530
- ), m = re(
3530
+ ), m = oe(
3531
3531
  () => new Set(t.map((y) => y.value)),
3532
3532
  [t]
3533
- ), [g, p] = fe(new Set(d));
3533
+ ), [g, p] = pe(new Set(d));
3534
3534
  Pe(() => {
3535
3535
  a && p(new Set(d));
3536
3536
  }, [a]);
3537
- const f = re(() => e.some((y) => y.group), [e]), v = re(
3537
+ const f = oe(() => e.some((y) => y.group), [e]), x = oe(
3538
3538
  () => f ? s(e) : [{ group: "Ungrouped", items: e }],
3539
3539
  [e, s]
3540
3540
  ), _ = (y) => {
3541
- const { checked: I, value: C } = y.target, $ = e.find((h) => `${h.value}` === C);
3542
- if ($) {
3543
- const h = I ? [...n, $] : n.filter((M) => `${M.value}` !== C) ?? [];
3541
+ const { checked: A, value: C } = y.target, O = e.find((h) => `${h.value}` === C);
3542
+ if (O) {
3543
+ const h = A ? [...n, O] : n.filter((M) => `${M.value}` !== C) ?? [];
3544
3544
  o(h);
3545
3545
  }
3546
3546
  };
3547
- return /* @__PURE__ */ u(On, { isVisible: a, className: "put-above", children: /* @__PURE__ */ Y("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3547
+ return /* @__PURE__ */ u(On, { isVisible: a, className: "put-above", children: /* @__PURE__ */ B("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3548
3548
  i || null,
3549
- v.map(({ group: y, items: I }) => /* @__PURE__ */ Y("div", { className: "multi-select__group", children: [
3549
+ x.map(({ group: y, items: A }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
3550
3550
  f ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: y }) : null,
3551
- /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": y, children: I.sort(l).sort(Ea(g)).map((C) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
3551
+ /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": y, children: A.sort(l).sort(Ea(g)).map((C) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
3552
3552
  Ei,
3553
3553
  {
3554
3554
  disabled: m.has(C.value),
@@ -3576,35 +3576,35 @@ const _a = () => {
3576
3576
  variant: d = "search"
3577
3577
  }) => {
3578
3578
  const m = ki(() => {
3579
- p(!1), v("");
3579
+ p(!1), x("");
3580
3580
  });
3581
3581
  Fi(() => {
3582
- p(!1), v("");
3582
+ p(!1), x("");
3583
3583
  });
3584
- const [g, p] = fe(!1), [f, v] = fe("");
3584
+ const [g, p] = pe(!1), [f, x] = pe("");
3585
3585
  Pe(() => {
3586
- g || v("");
3586
+ g || x("");
3587
3587
  }, [g]);
3588
- const [_, y] = fe([]), I = n || _, C = (j) => {
3589
- const J = Array.from(new Set(j));
3590
- y(J), i && i(J);
3591
- }, $ = Ze(), h = Ze(), M = I.filter(
3592
- (j) => r.some((J) => J.value === j.value)
3593
- ).sort(Kn).map((j) => j.label).join(", ");
3594
- return /* @__PURE__ */ u("div", { ref: m, children: /* @__PURE__ */ Y("div", { className: "multi-select", children: [
3588
+ const [_, y] = pe([]), A = n || _, C = (L) => {
3589
+ const Y = Array.from(new Set(L));
3590
+ y(Y), i && i(Y);
3591
+ }, O = Ze(), h = Ze(), M = A.filter(
3592
+ (L) => r.some((Y) => Y.value === L.value)
3593
+ ).sort(Kn).map((L) => L.label).join(", ");
3594
+ return /* @__PURE__ */ u("div", { ref: m, children: /* @__PURE__ */ B("div", { className: "multi-select", children: [
3595
3595
  d === "search" ? /* @__PURE__ */ u(
3596
3596
  Pi,
3597
3597
  {
3598
3598
  externallyControlled: !0,
3599
- "aria-controls": $,
3599
+ "aria-controls": O,
3600
3600
  "aria-expanded": g,
3601
3601
  id: h,
3602
3602
  role: "combobox",
3603
3603
  "aria-label": t || o || "Search",
3604
3604
  disabled: e,
3605
3605
  autoComplete: "off",
3606
- onChange: (j) => {
3607
- v(j), p(!0);
3606
+ onChange: (L) => {
3607
+ x(L), p(!0);
3608
3608
  },
3609
3609
  onFocus: () => p(!0),
3610
3610
  placeholder: o ?? "Search",
@@ -3619,39 +3619,39 @@ const _a = () => {
3619
3619
  role: "combobox",
3620
3620
  type: "button",
3621
3621
  "aria-label": t || o || "Select items",
3622
- "aria-controls": $,
3622
+ "aria-controls": O,
3623
3623
  "aria-expanded": g,
3624
3624
  className: "multi-select__select-button",
3625
3625
  onClick: () => {
3626
- p((j) => !j);
3626
+ p((L) => !L);
3627
3627
  },
3628
- children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: I.length > 0 ? M : o ?? "Select items" })
3628
+ children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: A.length > 0 ? M : o ?? "Select items" })
3629
3629
  }
3630
3630
  ),
3631
3631
  /* @__PURE__ */ u(
3632
3632
  Fa,
3633
3633
  {
3634
- id: $,
3634
+ id: O,
3635
3635
  isOpen: g,
3636
3636
  items: f.length > 0 ? r.filter(
3637
- (j) => j.label.toLowerCase().includes(f.toLowerCase())
3637
+ (L) => L.label.toLowerCase().includes(f.toLowerCase())
3638
3638
  ) : r,
3639
- selectedItems: I,
3639
+ selectedItems: A,
3640
3640
  disabledItems: l,
3641
3641
  header: s,
3642
3642
  updateItems: C,
3643
- footer: c || /* @__PURE__ */ Y(xe, { children: [
3643
+ footer: c || /* @__PURE__ */ B(xe, { children: [
3644
3644
  /* @__PURE__ */ u(
3645
3645
  ye,
3646
3646
  {
3647
3647
  appearance: "link",
3648
3648
  onClick: () => {
3649
- const j = r.filter(
3650
- (J) => !l.some(
3651
- (ee) => ee.value === J.value
3649
+ const L = r.filter(
3650
+ (Y) => !l.some(
3651
+ (X) => X.value === Y.value
3652
3652
  )
3653
3653
  );
3654
- C([...I, ...j]);
3654
+ C([...A, ...L]);
3655
3655
  },
3656
3656
  type: "button",
3657
3657
  children: "Select all"
@@ -3662,12 +3662,12 @@ const _a = () => {
3662
3662
  {
3663
3663
  appearance: "link",
3664
3664
  onClick: () => {
3665
- const j = I.filter(
3666
- (J) => l.some(
3667
- (ee) => ee.value === J.value
3665
+ const L = A.filter(
3666
+ (Y) => l.some(
3667
+ (X) => X.value === Y.value
3668
3668
  )
3669
3669
  );
3670
- C(j);
3670
+ C(L);
3671
3671
  },
3672
3672
  type: "button",
3673
3673
  children: "Clear"
@@ -3689,7 +3689,7 @@ const _a = () => {
3689
3689
  "table",
3690
3690
  {
3691
3691
  ...i,
3692
- className: B("p-table-dynamic", e, {
3692
+ className: H("p-table-dynamic", e, {
3693
3693
  "is-full-height": t === "full-height"
3694
3694
  }),
3695
3695
  children: n
@@ -3697,7 +3697,7 @@ const _a = () => {
3697
3697
  ) }), Ia = ({ columns: e }) => /* @__PURE__ */ u(xe, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ u("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ u(
3698
3698
  "td",
3699
3699
  {
3700
- className: B(i.id, "u-text-overflow-clip"),
3700
+ className: H(i.id, "u-text-overflow-clip"),
3701
3701
  children: /* @__PURE__ */ u(Vi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
3702
3702
  },
3703
3703
  o
@@ -3706,7 +3706,7 @@ const _a = () => {
3706
3706
  table: n
3707
3707
  }) => {
3708
3708
  const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
3709
- return /* @__PURE__ */ Y(xe, { children: [
3709
+ return /* @__PURE__ */ B(xe, { children: [
3710
3710
  /* @__PURE__ */ u("caption", { className: "u-visually-hidden", children: "Loading..." }),
3711
3711
  /* @__PURE__ */ u(Zn, { "aria-busy": "true", className: e, children: /* @__PURE__ */ u(Ia, { columns: t }) })
3712
3712
  ] });
@@ -3716,7 +3716,7 @@ const _a = () => {
3716
3716
  style: t,
3717
3717
  ...i
3718
3718
  }) => {
3719
- const { variant: o } = Lt(Xn), a = ke(null), [r, l] = fe(null), s = se(() => {
3719
+ const { variant: o } = Lt(Xn), a = ke(null), [r, l] = pe(null), s = re(() => {
3720
3720
  var d, m;
3721
3721
  if (window.innerWidth > Pa.small) {
3722
3722
  const g = (m = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : m.call(d).top;
@@ -3727,7 +3727,7 @@ const _a = () => {
3727
3727
  Fn(() => {
3728
3728
  s();
3729
3729
  }, [s]), Pe(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
3730
- const c = re(() => o === "full-height" && r ? {
3730
+ const c = oe(() => o === "full-height" && r ? {
3731
3731
  height: `calc(100vh - ${r}px)`,
3732
3732
  minHeight: `calc(100vh - ${r}px)`,
3733
3733
  ...t
@@ -3761,7 +3761,7 @@ Qn.Description = Ma;
3761
3761
  function Ce(e, n) {
3762
3762
  return typeof e == "function" ? e(n) : e;
3763
3763
  }
3764
- function ge(e, n) {
3764
+ function ue(e, n) {
3765
3765
  return (t) => {
3766
3766
  n.setState((i) => ({
3767
3767
  ...i,
@@ -3785,7 +3785,7 @@ function ei(e, n) {
3785
3785
  };
3786
3786
  return i(e), t;
3787
3787
  }
3788
- function R(e, n, t) {
3788
+ function F(e, n, t) {
3789
3789
  let i = [], o;
3790
3790
  return (a) => {
3791
3791
  let r;
@@ -3796,8 +3796,8 @@ function R(e, n, t) {
3796
3796
  i = l;
3797
3797
  let c;
3798
3798
  if (t.key && t.debug && (c = Date.now()), o = n(...l), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
3799
- const d = Math.round((Date.now() - r) * 100) / 100, m = Math.round((Date.now() - c) * 100) / 100, g = m / 16, p = (f, v) => {
3800
- for (f = String(f); f.length < v; )
3799
+ const d = Math.round((Date.now() - r) * 100) / 100, m = Math.round((Date.now() - c) * 100) / 100, g = m / 16, p = (f, x) => {
3800
+ for (f = String(f); f.length < x; )
3801
3801
  f = " " + f;
3802
3802
  return f;
3803
3803
  };
@@ -3809,7 +3809,7 @@ function R(e, n, t) {
3809
3809
  return o;
3810
3810
  };
3811
3811
  }
3812
- function E(e, n, t, i) {
3812
+ function P(e, n, t, i) {
3813
3813
  return {
3814
3814
  debug: () => {
3815
3815
  var o;
@@ -3829,14 +3829,14 @@ function Oa(e, n, t, i) {
3829
3829
  column: t,
3830
3830
  getValue: () => n.getValue(i),
3831
3831
  renderValue: o,
3832
- getContext: R(() => [e, t, n, a], (r, l, s, c) => ({
3832
+ getContext: F(() => [e, t, n, a], (r, l, s, c) => ({
3833
3833
  table: r,
3834
3834
  column: l,
3835
3835
  row: s,
3836
3836
  cell: c,
3837
3837
  getValue: c.getValue,
3838
3838
  renderValue: c.renderValue
3839
- }), E(e.options, "debugCells", "cell.getContext"))
3839
+ }), P(e.options, "debugCells", "cell.getContext"))
3840
3840
  };
3841
3841
  return e._features.forEach((r) => {
3842
3842
  r.createCell == null || r.createCell(a, t, n, e);
@@ -3851,9 +3851,9 @@ function ja(e, n, t, i) {
3851
3851
  let c = (o = (a = l.id) != null ? a : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? o : typeof l.header == "string" ? l.header : void 0, d;
3852
3852
  if (l.accessorFn ? d = l.accessorFn : s && (s.includes(".") ? d = (g) => {
3853
3853
  let p = g;
3854
- for (const v of s.split(".")) {
3854
+ for (const x of s.split(".")) {
3855
3855
  var f;
3856
- p = (f = p) == null ? void 0 : f[v], process.env.NODE_ENV !== "production" && p === void 0 && console.warn(`"${v}" in deeply nested key "${s}" returned undefined.`);
3856
+ p = (f = p) == null ? void 0 : f[x], process.env.NODE_ENV !== "production" && p === void 0 && console.warn(`"${x}" in deeply nested key "${s}" returned undefined.`);
3857
3857
  }
3858
3858
  return p;
3859
3859
  } : d = (g) => g[l.accessorKey]), !c)
@@ -3865,24 +3865,24 @@ function ja(e, n, t, i) {
3865
3865
  depth: t,
3866
3866
  columnDef: l,
3867
3867
  columns: [],
3868
- getFlatColumns: R(() => [!0], () => {
3868
+ getFlatColumns: F(() => [!0], () => {
3869
3869
  var g;
3870
3870
  return [m, ...(g = m.columns) == null ? void 0 : g.flatMap((p) => p.getFlatColumns())];
3871
- }, E(e.options, "debugColumns", "column.getFlatColumns")),
3872
- getLeafColumns: R(() => [e._getOrderColumnsFn()], (g) => {
3871
+ }, P(e.options, "debugColumns", "column.getFlatColumns")),
3872
+ getLeafColumns: F(() => [e._getOrderColumnsFn()], (g) => {
3873
3873
  var p;
3874
3874
  if ((p = m.columns) != null && p.length) {
3875
- let f = m.columns.flatMap((v) => v.getLeafColumns());
3875
+ let f = m.columns.flatMap((x) => x.getLeafColumns());
3876
3876
  return g(f);
3877
3877
  }
3878
3878
  return [m];
3879
- }, E(e.options, "debugColumns", "column.getLeafColumns"))
3879
+ }, P(e.options, "debugColumns", "column.getLeafColumns"))
3880
3880
  };
3881
3881
  for (const g of e._features)
3882
3882
  g.createColumn == null || g.createColumn(m, e);
3883
3883
  return m;
3884
3884
  }
3885
- const ae = "debugHeaders";
3885
+ const ie = "debugHeaders";
3886
3886
  function Cn(e, n, t) {
3887
3887
  var i;
3888
3888
  let a = {
@@ -3914,31 +3914,31 @@ function Cn(e, n, t) {
3914
3914
  }
3915
3915
  const Ta = {
3916
3916
  createTable: (e) => {
3917
- e.getHeaderGroups = R(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => {
3917
+ e.getHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => {
3918
3918
  var a, r;
3919
3919
  const l = (a = i == null ? void 0 : i.map((m) => t.find((g) => g.id === m)).filter(Boolean)) != null ? a : [], s = (r = o == null ? void 0 : o.map((m) => t.find((g) => g.id === m)).filter(Boolean)) != null ? r : [], c = t.filter((m) => !(i != null && i.includes(m.id)) && !(o != null && o.includes(m.id)));
3920
3920
  return Ke(n, [...l, ...c, ...s], e);
3921
- }, E(e.options, ae, "getHeaderGroups")), e.getCenterHeaderGroups = R(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => (t = t.filter((a) => !(i != null && i.includes(a.id)) && !(o != null && o.includes(a.id))), Ke(n, t, e, "center")), E(e.options, ae, "getCenterHeaderGroups")), e.getLeftHeaderGroups = R(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
3921
+ }, P(e.options, ie, "getHeaderGroups")), e.getCenterHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => (t = t.filter((a) => !(i != null && i.includes(a.id)) && !(o != null && o.includes(a.id))), Ke(n, t, e, "center")), P(e.options, ie, "getCenterHeaderGroups")), e.getLeftHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
3922
3922
  var o;
3923
3923
  const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
3924
3924
  return Ke(n, a, e, "left");
3925
- }, E(e.options, ae, "getLeftHeaderGroups")), e.getRightHeaderGroups = R(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
3925
+ }, P(e.options, ie, "getLeftHeaderGroups")), e.getRightHeaderGroups = F(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
3926
3926
  var o;
3927
3927
  const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
3928
3928
  return Ke(n, a, e, "right");
3929
- }, E(e.options, ae, "getRightHeaderGroups")), e.getFooterGroups = R(() => [e.getHeaderGroups()], (n) => [...n].reverse(), E(e.options, ae, "getFooterGroups")), e.getLeftFooterGroups = R(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), E(e.options, ae, "getLeftFooterGroups")), e.getCenterFooterGroups = R(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), E(e.options, ae, "getCenterFooterGroups")), e.getRightFooterGroups = R(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), E(e.options, ae, "getRightFooterGroups")), e.getFlatHeaders = R(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), E(e.options, ae, "getFlatHeaders")), e.getLeftFlatHeaders = R(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), E(e.options, ae, "getLeftFlatHeaders")), e.getCenterFlatHeaders = R(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), E(e.options, ae, "getCenterFlatHeaders")), e.getRightFlatHeaders = R(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), E(e.options, ae, "getRightFlatHeaders")), e.getCenterLeafHeaders = R(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
3929
+ }, P(e.options, ie, "getRightHeaderGroups")), e.getFooterGroups = F(() => [e.getHeaderGroups()], (n) => [...n].reverse(), P(e.options, ie, "getFooterGroups")), e.getLeftFooterGroups = F(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), P(e.options, ie, "getLeftFooterGroups")), e.getCenterFooterGroups = F(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), P(e.options, ie, "getCenterFooterGroups")), e.getRightFooterGroups = F(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), P(e.options, ie, "getRightFooterGroups")), e.getFlatHeaders = F(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), P(e.options, ie, "getFlatHeaders")), e.getLeftFlatHeaders = F(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), P(e.options, ie, "getLeftFlatHeaders")), e.getCenterFlatHeaders = F(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), P(e.options, ie, "getCenterFlatHeaders")), e.getRightFlatHeaders = F(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), P(e.options, ie, "getRightFlatHeaders")), e.getCenterLeafHeaders = F(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
3930
3930
  var i;
3931
3931
  return !((i = t.subHeaders) != null && i.length);
3932
- }), E(e.options, ae, "getCenterLeafHeaders")), e.getLeftLeafHeaders = R(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
3932
+ }), P(e.options, ie, "getCenterLeafHeaders")), e.getLeftLeafHeaders = F(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
3933
3933
  var i;
3934
3934
  return !((i = t.subHeaders) != null && i.length);
3935
- }), E(e.options, ae, "getLeftLeafHeaders")), e.getRightLeafHeaders = R(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
3935
+ }), P(e.options, ie, "getLeftLeafHeaders")), e.getRightLeafHeaders = F(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
3936
3936
  var i;
3937
3937
  return !((i = t.subHeaders) != null && i.length);
3938
- }), E(e.options, ae, "getRightLeafHeaders")), e.getLeafHeaders = R(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
3938
+ }), P(e.options, ie, "getRightLeafHeaders")), e.getLeafHeaders = F(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
3939
3939
  var o, a, r, l, s, c;
3940
3940
  return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(r = (l = t[0]) == null ? void 0 : l.headers) != null ? r : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
3941
- }, E(e.options, ae, "getLeafHeaders"));
3941
+ }, P(e.options, ie, "getLeafHeaders"));
3942
3942
  }
3943
3943
  };
3944
3944
  function Ke(e, n, t, i) {
@@ -3946,8 +3946,8 @@ function Ke(e, n, t, i) {
3946
3946
  let r = 0;
3947
3947
  const l = function(g, p) {
3948
3948
  p === void 0 && (p = 1), r = Math.max(r, p), g.filter((f) => f.getIsVisible()).forEach((f) => {
3949
- var v;
3950
- (v = f.columns) != null && v.length && l(f.columns, p + 1);
3949
+ var x;
3950
+ (x = f.columns) != null && x.length && l(f.columns, p + 1);
3951
3951
  }, 0);
3952
3952
  };
3953
3953
  l(e);
@@ -3957,41 +3957,41 @@ function Ke(e, n, t, i) {
3957
3957
  depth: p,
3958
3958
  id: [i, `${p}`].filter(Boolean).join("_"),
3959
3959
  headers: []
3960
- }, v = [];
3960
+ }, x = [];
3961
3961
  g.forEach((_) => {
3962
- const y = [...v].reverse()[0], I = _.column.depth === f.depth;
3963
- let C, $ = !1;
3964
- if (I && _.column.parent ? C = _.column.parent : (C = _.column, $ = !0), y && (y == null ? void 0 : y.column) === C)
3962
+ const y = [...x].reverse()[0], A = _.column.depth === f.depth;
3963
+ let C, O = !1;
3964
+ if (A && _.column.parent ? C = _.column.parent : (C = _.column, O = !0), y && (y == null ? void 0 : y.column) === C)
3965
3965
  y.subHeaders.push(_);
3966
3966
  else {
3967
3967
  const h = Cn(t, C, {
3968
3968
  id: [i, p, C.id, _ == null ? void 0 : _.id].filter(Boolean).join("_"),
3969
- isPlaceholder: $,
3970
- placeholderId: $ ? `${v.filter((M) => M.column === C).length}` : void 0,
3969
+ isPlaceholder: O,
3970
+ placeholderId: O ? `${x.filter((M) => M.column === C).length}` : void 0,
3971
3971
  depth: p,
3972
- index: v.length
3972
+ index: x.length
3973
3973
  });
3974
- h.subHeaders.push(_), v.push(h);
3974
+ h.subHeaders.push(_), x.push(h);
3975
3975
  }
3976
3976
  f.headers.push(_), _.headerGroup = f;
3977
- }), s.push(f), p > 0 && c(v, p - 1);
3977
+ }), s.push(f), p > 0 && c(x, p - 1);
3978
3978
  }, d = n.map((g, p) => Cn(t, g, {
3979
3979
  depth: r,
3980
3980
  index: p
3981
3981
  }));
3982
3982
  c(d, r - 1), s.reverse();
3983
3983
  const m = (g) => g.filter((f) => f.column.getIsVisible()).map((f) => {
3984
- let v = 0, _ = 0, y = [0];
3984
+ let x = 0, _ = 0, y = [0];
3985
3985
  f.subHeaders && f.subHeaders.length ? (y = [], m(f.subHeaders).forEach((C) => {
3986
3986
  let {
3987
- colSpan: $,
3987
+ colSpan: O,
3988
3988
  rowSpan: h
3989
3989
  } = C;
3990
- v += $, y.push(h);
3991
- })) : v = 1;
3992
- const I = Math.min(...y);
3993
- return _ = _ + I, f.colSpan = v, f.rowSpan = _, {
3994
- colSpan: v,
3990
+ x += O, y.push(h);
3991
+ })) : x = 1;
3992
+ const A = Math.min(...y);
3993
+ return _ = _ + A, f.colSpan = x, f.rowSpan = _, {
3994
+ colSpan: x,
3995
3995
  rowSpan: _
3996
3996
  };
3997
3997
  });
@@ -4036,8 +4036,8 @@ const ti = (e, n, t, i, o, a, r) => {
4036
4036
  }
4037
4037
  return s.reverse();
4038
4038
  },
4039
- getAllCells: R(() => [e.getAllLeafColumns()], (s) => s.map((c) => Oa(e, l, c, c.id)), E(e.options, "debugRows", "getAllCells")),
4040
- _getAllCellsByColumnId: R(() => [l.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), E(e.options, "debugRows", "getAllCellsByColumnId"))
4039
+ getAllCells: F(() => [e.getAllLeafColumns()], (s) => s.map((c) => Oa(e, l, c, c.id)), P(e.options, "debugRows", "getAllCells")),
4040
+ _getAllCellsByColumnId: F(() => [l.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), P(e.options, "debugRows", "getAllCellsByColumnId"))
4041
4041
  };
4042
4042
  for (let s = 0; s < e._features.length; s++) {
4043
4043
  const c = e._features[s];
@@ -4123,7 +4123,7 @@ const Va = {
4123
4123
  ...e
4124
4124
  }),
4125
4125
  getDefaultOptions: (e) => ({
4126
- onColumnFiltersChange: ge("columnFilters", e),
4126
+ onColumnFiltersChange: ue("columnFilters", e),
4127
4127
  filterFromLeafRows: !1,
4128
4128
  maxLeafRowFilterDepth: 100
4129
4129
  }),
@@ -4252,7 +4252,7 @@ const La = (e, n, t) => t.reduce((i, o) => {
4252
4252
  ...e
4253
4253
  }),
4254
4254
  getDefaultOptions: (e) => ({
4255
- onGroupingChange: ge("grouping", e),
4255
+ onGroupingChange: ue("grouping", e),
4256
4256
  groupedColumnMode: "reorder"
4257
4257
  }),
4258
4258
  createColumn: (e, n) => {
@@ -4318,10 +4318,10 @@ const Ja = {
4318
4318
  ...e
4319
4319
  }),
4320
4320
  getDefaultOptions: (e) => ({
4321
- onColumnOrderChange: ge("columnOrder", e)
4321
+ onColumnOrderChange: ue("columnOrder", e)
4322
4322
  }),
4323
4323
  createColumn: (e, n) => {
4324
- e.getIndex = R((t) => [Ve(n, t)], (t) => t.findIndex((i) => i.id === e.id), E(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
4324
+ e.getIndex = F((t) => [Ve(n, t)], (t) => t.findIndex((i) => i.id === e.id), P(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
4325
4325
  var i;
4326
4326
  return ((i = Ve(n, t)[0]) == null ? void 0 : i.id) === e.id;
4327
4327
  }, e.getIsLastColumn = (t) => {
@@ -4334,7 +4334,7 @@ const Ja = {
4334
4334
  e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
4335
4335
  var t;
4336
4336
  e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
4337
- }, e._getOrderColumnsFn = R(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, i) => (o) => {
4337
+ }, e._getOrderColumnsFn = F(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, i) => (o) => {
4338
4338
  let a = [];
4339
4339
  if (!(n != null && n.length))
4340
4340
  a = o;
@@ -4347,7 +4347,7 @@ const Ja = {
4347
4347
  a = [...a, ...l];
4348
4348
  }
4349
4349
  return Xa(a, t, i);
4350
- }, E(e.options, "debugTable", "_getOrderColumnsFn"));
4350
+ }, P(e.options, "debugTable", "_getOrderColumnsFn"));
4351
4351
  }
4352
4352
  }, St = () => ({
4353
4353
  left: [],
@@ -4358,7 +4358,7 @@ const Ja = {
4358
4358
  ...e
4359
4359
  }),
4360
4360
  getDefaultOptions: (e) => ({
4361
- onColumnPinningChange: ge("columnPinning", e)
4361
+ onColumnPinningChange: ue("columnPinning", e)
4362
4362
  }),
4363
4363
  createColumn: (e, n) => {
4364
4364
  e.pin = (t) => {
@@ -4400,16 +4400,16 @@ const Ja = {
4400
4400
  };
4401
4401
  },
4402
4402
  createRow: (e, n) => {
4403
- e.getCenterVisibleCells = R(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, i, o) => {
4403
+ e.getCenterVisibleCells = F(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, i, o) => {
4404
4404
  const a = [...i ?? [], ...o ?? []];
4405
4405
  return t.filter((r) => !a.includes(r.column.id));
4406
- }, E(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = R(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
4406
+ }, P(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = F(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
4407
4407
  ...a,
4408
4408
  position: "left"
4409
- })), E(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = R(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
4409
+ })), P(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = F(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
4410
4410
  ...a,
4411
4411
  position: "right"
4412
- })), E(n.options, "debugRows", "getRightVisibleCells"));
4412
+ })), P(n.options, "debugRows", "getRightVisibleCells"));
4413
4413
  },
4414
4414
  createTable: (e) => {
4415
4415
  e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
@@ -4423,10 +4423,10 @@ const Ja = {
4423
4423
  return !!((o = i.left) != null && o.length || (a = i.right) != null && a.length);
4424
4424
  }
4425
4425
  return !!((t = i[n]) != null && t.length);
4426
- }, e.getLeftLeafColumns = R(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), E(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = R(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), E(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = R(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i) => {
4426
+ }, e.getLeftLeafColumns = F(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), P(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = F(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), P(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = F(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i) => {
4427
4427
  const o = [...t ?? [], ...i ?? []];
4428
4428
  return n.filter((a) => !o.includes(a.id));
4429
- }, E(e.options, "debugColumns", "getCenterLeafColumns"));
4429
+ }, P(e.options, "debugColumns", "getCenterLeafColumns"));
4430
4430
  }
4431
4431
  }, Xe = {
4432
4432
  size: 150,
@@ -4449,15 +4449,15 @@ const Ja = {
4449
4449
  getDefaultOptions: (e) => ({
4450
4450
  columnResizeMode: "onEnd",
4451
4451
  columnResizeDirection: "ltr",
4452
- onColumnSizingChange: ge("columnSizing", e),
4453
- onColumnSizingInfoChange: ge("columnSizingInfo", e)
4452
+ onColumnSizingChange: ue("columnSizing", e),
4453
+ onColumnSizingInfoChange: ue("columnSizingInfo", e)
4454
4454
  }),
4455
4455
  createColumn: (e, n) => {
4456
4456
  e.getSize = () => {
4457
4457
  var t, i, o;
4458
4458
  const a = n.getState().columnSizing[e.id];
4459
4459
  return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Xe.minSize, (i = a ?? e.columnDef.size) != null ? i : Xe.size), (o = e.columnDef.maxSize) != null ? o : Xe.maxSize);
4460
- }, e.getStart = R((t) => [t, Ve(n, t), n.getState().columnSizing], (t, i) => i.slice(0, e.getIndex(t)).reduce((o, a) => o + a.getSize(), 0), E(n.options, "debugColumns", "getStart")), e.getAfter = R((t) => [t, Ve(n, t), n.getState().columnSizing], (t, i) => i.slice(e.getIndex(t) + 1).reduce((o, a) => o + a.getSize(), 0), E(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
4460
+ }, e.getStart = F((t) => [t, Ve(n, t), n.getState().columnSizing], (t, i) => i.slice(0, e.getIndex(t)).reduce((o, a) => o + a.getSize(), 0), P(n.options, "debugColumns", "getStart")), e.getAfter = F((t) => [t, Ve(n, t), n.getState().columnSizing], (t, i) => i.slice(e.getIndex(t) + 1).reduce((o, a) => o + a.getSize(), 0), P(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
4461
4461
  n.setColumnSizing((t) => {
4462
4462
  let {
4463
4463
  [e.id]: i,
@@ -4493,25 +4493,25 @@ const Ja = {
4493
4493
  return (a) => {
4494
4494
  if (!i || !o || (a.persist == null || a.persist(), _t(a) && a.touches && a.touches.length > 1))
4495
4495
  return;
4496
- const r = e.getSize(), l = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[i.id, i.getSize()]], s = _t(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (y, I) => {
4497
- typeof I == "number" && (n.setColumnSizingInfo((C) => {
4498
- var $, h;
4499
- const M = n.options.columnResizeDirection === "rtl" ? -1 : 1, j = (I - (($ = C == null ? void 0 : C.startOffset) != null ? $ : 0)) * M, J = Math.max(j / ((h = C == null ? void 0 : C.startSize) != null ? h : 0), -0.999999);
4500
- return C.columnSizingStart.forEach((ee) => {
4501
- let [le, pe] = ee;
4502
- c[le] = Math.round(Math.max(pe + pe * J, 0) * 100) / 100;
4496
+ const r = e.getSize(), l = e ? e.getLeafHeaders().map((y) => [y.column.id, y.column.getSize()]) : [[i.id, i.getSize()]], s = _t(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (y, A) => {
4497
+ typeof A == "number" && (n.setColumnSizingInfo((C) => {
4498
+ var O, h;
4499
+ const M = n.options.columnResizeDirection === "rtl" ? -1 : 1, L = (A - ((O = C == null ? void 0 : C.startOffset) != null ? O : 0)) * M, Y = Math.max(L / ((h = C == null ? void 0 : C.startSize) != null ? h : 0), -0.999999);
4500
+ return C.columnSizingStart.forEach((X) => {
4501
+ let [ae, de] = X;
4502
+ c[ae] = Math.round(Math.max(de + de * Y, 0) * 100) / 100;
4503
4503
  }), {
4504
4504
  ...C,
4505
- deltaOffset: j,
4506
- deltaPercentage: J
4505
+ deltaOffset: L,
4506
+ deltaPercentage: Y
4507
4507
  };
4508
4508
  }), (n.options.columnResizeMode === "onChange" || y === "end") && n.setColumnSizing((C) => ({
4509
4509
  ...C,
4510
4510
  ...c
4511
4511
  })));
4512
4512
  }, m = (y) => d("move", y), g = (y) => {
4513
- d("end", y), n.setColumnSizingInfo((I) => ({
4514
- ...I,
4513
+ d("end", y), n.setColumnSizingInfo((A) => ({
4514
+ ...A,
4515
4515
  isResizingColumn: !1,
4516
4516
  startOffset: null,
4517
4517
  startSize: null,
@@ -4524,16 +4524,16 @@ const Ja = {
4524
4524
  upHandler: (y) => {
4525
4525
  p == null || p.removeEventListener("mousemove", f.moveHandler), p == null || p.removeEventListener("mouseup", f.upHandler), g(y.clientX);
4526
4526
  }
4527
- }, v = {
4527
+ }, x = {
4528
4528
  moveHandler: (y) => (y.cancelable && (y.preventDefault(), y.stopPropagation()), m(y.touches[0].clientX), !1),
4529
4529
  upHandler: (y) => {
4530
- var I;
4531
- p == null || p.removeEventListener("touchmove", v.moveHandler), p == null || p.removeEventListener("touchend", v.upHandler), y.cancelable && (y.preventDefault(), y.stopPropagation()), g((I = y.touches[0]) == null ? void 0 : I.clientX);
4530
+ var A;
4531
+ p == null || p.removeEventListener("touchmove", x.moveHandler), p == null || p.removeEventListener("touchend", x.upHandler), y.cancelable && (y.preventDefault(), y.stopPropagation()), g((A = y.touches[0]) == null ? void 0 : A.clientX);
4532
4532
  }
4533
4533
  }, _ = er() ? {
4534
4534
  passive: !1
4535
4535
  } : !1;
4536
- _t(a) ? (p == null || p.addEventListener("touchmove", v.moveHandler, _), p == null || p.addEventListener("touchend", v.upHandler, _)) : (p == null || p.addEventListener("mousemove", f.moveHandler, _), p == null || p.addEventListener("mouseup", f.upHandler, _)), n.setColumnSizingInfo((y) => ({
4536
+ _t(a) ? (p == null || p.addEventListener("touchmove", x.moveHandler, _), p == null || p.addEventListener("touchend", x.upHandler, _)) : (p == null || p.addEventListener("mousemove", f.moveHandler, _), p == null || p.addEventListener("mouseup", f.upHandler, _)), n.setColumnSizingInfo((y) => ({
4537
4537
  ...y,
4538
4538
  startOffset: s,
4539
4539
  startSize: r,
@@ -4593,7 +4593,7 @@ const tr = {
4593
4593
  ...e
4594
4594
  }),
4595
4595
  getDefaultOptions: (e) => ({
4596
- onColumnVisibilityChange: ge("columnVisibility", e)
4596
+ onColumnVisibilityChange: ue("columnVisibility", e)
4597
4597
  }),
4598
4598
  createColumn: (e, n) => {
4599
4599
  e.toggleVisibility = (t) => {
@@ -4613,10 +4613,10 @@ const tr = {
4613
4613
  };
4614
4614
  },
4615
4615
  createRow: (e, n) => {
4616
- e._getAllVisibleCells = R(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((i) => i.column.getIsVisible()), E(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = R(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, i, o) => [...t, ...i, ...o], E(n.options, "debugRows", "getVisibleCells"));
4616
+ e._getAllVisibleCells = F(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((i) => i.column.getIsVisible()), P(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = F(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, i, o) => [...t, ...i, ...o], P(n.options, "debugRows", "getVisibleCells"));
4617
4617
  },
4618
4618
  createTable: (e) => {
4619
- const n = (t, i) => R(() => [i(), i().filter((o) => o.getIsVisible()).map((o) => o.id).join("_")], (o) => o.filter((a) => a.getIsVisible == null ? void 0 : a.getIsVisible()), E(e.options, "debugColumns", t));
4619
+ const n = (t, i) => F(() => [i(), i().filter((o) => o.getIsVisible()).map((o) => o.id).join("_")], (o) => o.filter((a) => a.getIsVisible == null ? void 0 : a.getIsVisible()), P(e.options, "debugColumns", t));
4620
4620
  e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
4621
4621
  var i;
4622
4622
  e.setColumnVisibility(t ? {} : (i = e.initialState.columnVisibility) != null ? i : {});
@@ -4648,7 +4648,7 @@ const nr = {
4648
4648
  ...e
4649
4649
  }),
4650
4650
  getDefaultOptions: (e) => ({
4651
- onGlobalFilterChange: ge("globalFilter", e),
4651
+ onGlobalFilterChange: ue("globalFilter", e),
4652
4652
  globalFilterFn: "auto",
4653
4653
  getColumnCanGlobalFilter: (n) => {
4654
4654
  var t;
@@ -4681,7 +4681,7 @@ const nr = {
4681
4681
  ...e
4682
4682
  }),
4683
4683
  getDefaultOptions: (e) => ({
4684
- onExpandedChange: ge("expanded", e),
4684
+ onExpandedChange: ue("expanded", e),
4685
4685
  paginateExpandedRows: !0
4686
4686
  }),
4687
4687
  createTable: (e) => {
@@ -4774,7 +4774,7 @@ const nr = {
4774
4774
  }
4775
4775
  }),
4776
4776
  getDefaultOptions: (e) => ({
4777
- onPaginationChange: ge("pagination", e)
4777
+ onPaginationChange: ue("pagination", e)
4778
4778
  }),
4779
4779
  createTable: (e) => {
4780
4780
  let n = !1, t = !1;
@@ -4829,10 +4829,10 @@ const nr = {
4829
4829
  ...o,
4830
4830
  pageCount: r
4831
4831
  };
4832
- }), e.getPageOptions = R(() => [e.getPageCount()], (i) => {
4832
+ }), e.getPageOptions = F(() => [e.getPageCount()], (i) => {
4833
4833
  let o = [];
4834
4834
  return i && i > 0 && (o = [...new Array(i)].fill(null).map((a, r) => r)), o;
4835
- }, E(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
4835
+ }, P(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
4836
4836
  const {
4837
4837
  pageIndex: i
4838
4838
  } = e.getState().pagination, o = e.getPageCount();
@@ -4854,7 +4854,7 @@ const nr = {
4854
4854
  ...e
4855
4855
  }),
4856
4856
  getDefaultOptions: (e) => ({
4857
- onRowPinningChange: ge("rowPinning", e)
4857
+ onRowPinningChange: ue("rowPinning", e)
4858
4858
  }),
4859
4859
  createRow: (e, n) => {
4860
4860
  e.pin = (t, i, o) => {
@@ -4874,20 +4874,20 @@ const nr = {
4874
4874
  if (t === "bottom") {
4875
4875
  var m, g;
4876
4876
  return {
4877
- top: ((m = s == null ? void 0 : s.top) != null ? m : []).filter((v) => !(l != null && l.has(v))),
4878
- bottom: [...((g = s == null ? void 0 : s.bottom) != null ? g : []).filter((v) => !(l != null && l.has(v))), ...Array.from(l)]
4877
+ top: ((m = s == null ? void 0 : s.top) != null ? m : []).filter((x) => !(l != null && l.has(x))),
4878
+ bottom: [...((g = s == null ? void 0 : s.bottom) != null ? g : []).filter((x) => !(l != null && l.has(x))), ...Array.from(l)]
4879
4879
  };
4880
4880
  }
4881
4881
  if (t === "top") {
4882
4882
  var p, f;
4883
4883
  return {
4884
- top: [...((p = s == null ? void 0 : s.top) != null ? p : []).filter((v) => !(l != null && l.has(v))), ...Array.from(l)],
4885
- bottom: ((f = s == null ? void 0 : s.bottom) != null ? f : []).filter((v) => !(l != null && l.has(v)))
4884
+ top: [...((p = s == null ? void 0 : s.top) != null ? p : []).filter((x) => !(l != null && l.has(x))), ...Array.from(l)],
4885
+ bottom: ((f = s == null ? void 0 : s.bottom) != null ? f : []).filter((x) => !(l != null && l.has(x)))
4886
4886
  };
4887
4887
  }
4888
4888
  return {
4889
- top: ((c = s == null ? void 0 : s.top) != null ? c : []).filter((v) => !(l != null && l.has(v))),
4890
- bottom: ((d = s == null ? void 0 : s.bottom) != null ? d : []).filter((v) => !(l != null && l.has(v)))
4889
+ top: ((c = s == null ? void 0 : s.top) != null ? c : []).filter((x) => !(l != null && l.has(x))),
4890
+ bottom: ((d = s == null ? void 0 : s.bottom) != null ? d : []).filter((x) => !(l != null && l.has(x)))
4891
4891
  };
4892
4892
  });
4893
4893
  }, e.getCanPin = () => {
@@ -4944,10 +4944,10 @@ const nr = {
4944
4944
  ...r,
4945
4945
  position: i
4946
4946
  }));
4947
- }, e.getTopRows = R(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), E(e.options, "debugRows", "getTopRows")), e.getBottomRows = R(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), E(e.options, "debugRows", "getBottomRows")), e.getCenterRows = R(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, i) => {
4947
+ }, e.getTopRows = F(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), P(e.options, "debugRows", "getTopRows")), e.getBottomRows = F(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), P(e.options, "debugRows", "getBottomRows")), e.getCenterRows = F(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, i) => {
4948
4948
  const o = /* @__PURE__ */ new Set([...t ?? [], ...i ?? []]);
4949
4949
  return n.filter((a) => !o.has(a.id));
4950
- }, E(e.options, "debugRows", "getCenterRows"));
4950
+ }, P(e.options, "debugRows", "getCenterRows"));
4951
4951
  }
4952
4952
  }, lr = {
4953
4953
  getInitialState: (e) => ({
@@ -4955,7 +4955,7 @@ const nr = {
4955
4955
  ...e
4956
4956
  }),
4957
4957
  getDefaultOptions: (e) => ({
4958
- onRowSelectionChange: ge("rowSelection", e),
4958
+ onRowSelectionChange: ue("rowSelection", e),
4959
4959
  enableRowSelection: !0,
4960
4960
  enableMultiRowSelection: !0,
4961
4961
  enableSubRowSelection: !0
@@ -4986,19 +4986,19 @@ const nr = {
4986
4986
  return e.getRowModel().rows.forEach((a) => {
4987
4987
  jt(o, a.id, i, !0, e);
4988
4988
  }), o;
4989
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = R(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
4989
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = F(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
4990
4990
  rows: [],
4991
4991
  flatRows: [],
4992
4992
  rowsById: {}
4993
- }, E(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = R(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
4993
+ }, P(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = F(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
4994
4994
  rows: [],
4995
4995
  flatRows: [],
4996
4996
  rowsById: {}
4997
- }, E(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = R(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
4997
+ }, P(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = F(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? kt(e, t) : {
4998
4998
  rows: [],
4999
4999
  flatRows: [],
5000
5000
  rowsById: {}
5001
- }, E(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
5001
+ }, P(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
5002
5002
  const n = e.getFilteredRowModel().flatRows, {
5003
5003
  rowSelection: t
5004
5004
  } = e.getState();
@@ -5152,7 +5152,7 @@ const ze = {
5152
5152
  sortUndefined: 1
5153
5153
  }),
5154
5154
  getDefaultOptions: (e) => ({
5155
- onSortingChange: ge("sorting", e),
5155
+ onSortingChange: ue("sorting", e),
5156
5156
  isMultiSortEvent: (n) => n.shiftKey
5157
5157
  }),
5158
5158
  createColumn: (e, n) => {
@@ -5300,8 +5300,8 @@ function vr(e) {
5300
5300
  o.options.onStateChange == null || o.options.onStateChange(g);
5301
5301
  },
5302
5302
  _getRowId: (g, p, f) => {
5303
- var v;
5304
- return (v = o.options.getRowId == null ? void 0 : o.options.getRowId(g, p, f)) != null ? v : `${f ? [f.id, p].join(".") : p}`;
5303
+ var x;
5304
+ return (x = o.options.getRowId == null ? void 0 : o.options.getRowId(g, p, f)) != null ? x : `${f ? [f.id, p].join(".") : p}`;
5305
5305
  },
5306
5306
  getCoreRowModel: () => (o._getCoreRowModel || (o._getCoreRowModel = o.options.getCoreRowModel(o)), o._getCoreRowModel()),
5307
5307
  // The final calls start at the bottom of the model,
@@ -5314,38 +5314,38 @@ function vr(e) {
5314
5314
  throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
5315
5315
  return f;
5316
5316
  },
5317
- _getDefaultColumnDef: R(() => [o.options.defaultColumn], (g) => {
5317
+ _getDefaultColumnDef: F(() => [o.options.defaultColumn], (g) => {
5318
5318
  var p;
5319
5319
  return g = (p = g) != null ? p : {}, {
5320
5320
  header: (f) => {
5321
- const v = f.header.column.columnDef;
5322
- return v.accessorKey ? v.accessorKey : v.accessorFn ? v.id : null;
5321
+ const x = f.header.column.columnDef;
5322
+ return x.accessorKey ? x.accessorKey : x.accessorFn ? x.id : null;
5323
5323
  },
5324
5324
  // footer: props => props.header.column.id,
5325
5325
  cell: (f) => {
5326
- var v, _;
5327
- return (v = (_ = f.renderValue()) == null || _.toString == null ? void 0 : _.toString()) != null ? v : null;
5326
+ var x, _;
5327
+ return (x = (_ = f.renderValue()) == null || _.toString == null ? void 0 : _.toString()) != null ? x : null;
5328
5328
  },
5329
- ...o._features.reduce((f, v) => Object.assign(f, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
5329
+ ...o._features.reduce((f, x) => Object.assign(f, x.getDefaultColumnDef == null ? void 0 : x.getDefaultColumnDef()), {}),
5330
5330
  ...g
5331
5331
  };
5332
- }, E(e, "debugColumns", "_getDefaultColumnDef")),
5332
+ }, P(e, "debugColumns", "_getDefaultColumnDef")),
5333
5333
  _getColumnDefs: () => o.options.columns,
5334
- getAllColumns: R(() => [o._getColumnDefs()], (g) => {
5335
- const p = function(f, v, _) {
5334
+ getAllColumns: F(() => [o._getColumnDefs()], (g) => {
5335
+ const p = function(f, x, _) {
5336
5336
  return _ === void 0 && (_ = 0), f.map((y) => {
5337
- const I = ja(o, y, _, v), C = y;
5338
- return I.columns = C.columns ? p(C.columns, I, _ + 1) : [], I;
5337
+ const A = ja(o, y, _, x), C = y;
5338
+ return A.columns = C.columns ? p(C.columns, A, _ + 1) : [], A;
5339
5339
  });
5340
5340
  };
5341
5341
  return p(g);
5342
- }, E(e, "debugColumns", "getAllColumns")),
5343
- getAllFlatColumns: R(() => [o.getAllColumns()], (g) => g.flatMap((p) => p.getFlatColumns()), E(e, "debugColumns", "getAllFlatColumns")),
5344
- _getAllFlatColumnsById: R(() => [o.getAllFlatColumns()], (g) => g.reduce((p, f) => (p[f.id] = f, p), {}), E(e, "debugColumns", "getAllFlatColumnsById")),
5345
- getAllLeafColumns: R(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, p) => {
5346
- let f = g.flatMap((v) => v.getLeafColumns());
5342
+ }, P(e, "debugColumns", "getAllColumns")),
5343
+ getAllFlatColumns: F(() => [o.getAllColumns()], (g) => g.flatMap((p) => p.getFlatColumns()), P(e, "debugColumns", "getAllFlatColumns")),
5344
+ _getAllFlatColumnsById: F(() => [o.getAllFlatColumns()], (g) => g.reduce((p, f) => (p[f.id] = f, p), {}), P(e, "debugColumns", "getAllFlatColumnsById")),
5345
+ getAllLeafColumns: F(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, p) => {
5346
+ let f = g.flatMap((x) => x.getLeafColumns());
5347
5347
  return p(f);
5348
- }, E(e, "debugColumns", "getAllLeafColumns")),
5348
+ }, P(e, "debugColumns", "getAllLeafColumns")),
5349
5349
  getColumn: (g) => {
5350
5350
  const p = o._getAllFlatColumnsById()[g];
5351
5351
  return process.env.NODE_ENV !== "production" && !p && console.error(`[Table] Column with id '${g}' does not exist.`), p;
@@ -5359,7 +5359,7 @@ function vr(e) {
5359
5359
  return o;
5360
5360
  }
5361
5361
  function xr() {
5362
- return (e) => R(() => [e.options.data], (n) => {
5362
+ return (e) => F(() => [e.options.data], (n) => {
5363
5363
  const t = {
5364
5364
  rows: [],
5365
5365
  flatRows: [],
@@ -5377,10 +5377,10 @@ function xr() {
5377
5377
  return l;
5378
5378
  };
5379
5379
  return t.rows = i(n), t;
5380
- }, E(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
5380
+ }, P(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
5381
5381
  }
5382
5382
  function hr() {
5383
- return (e) => R(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (n, t, i) => !t.rows.length || n !== !0 && !Object.keys(n ?? {}).length || !i ? t : wr(t), E(e.options, "debugTable", "getExpandedRowModel"));
5383
+ return (e) => F(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (n, t, i) => !t.rows.length || n !== !0 && !Object.keys(n ?? {}).length || !i ? t : wr(t), P(e.options, "debugTable", "getExpandedRowModel"));
5384
5384
  }
5385
5385
  function wr(e) {
5386
5386
  const n = [], t = (i) => {
@@ -5394,7 +5394,7 @@ function wr(e) {
5394
5394
  };
5395
5395
  }
5396
5396
  function yr() {
5397
- return (e) => R(() => [e.getState().grouping, e.getPreGroupedRowModel()], (n, t) => {
5397
+ return (e) => F(() => [e.getState().grouping, e.getPreGroupedRowModel()], (n, t) => {
5398
5398
  if (!t.rows.length || !n.length)
5399
5399
  return t.rows.forEach((s) => {
5400
5400
  s.depth = 0, s.parentId = void 0;
@@ -5403,34 +5403,34 @@ function yr() {
5403
5403
  if (c === void 0 && (c = 0), c >= i.length)
5404
5404
  return s.map((f) => (f.depth = c, o.push(f), a[f.id] = f, f.subRows && (f.subRows = r(f.subRows, c + 1, f.id)), f));
5405
5405
  const m = i[c], g = br(s, m);
5406
- return Array.from(g.entries()).map((f, v) => {
5407
- let [_, y] = f, I = `${m}:${_}`;
5408
- I = d ? `${d}>${I}` : I;
5409
- const C = r(y, c + 1, I);
5406
+ return Array.from(g.entries()).map((f, x) => {
5407
+ let [_, y] = f, A = `${m}:${_}`;
5408
+ A = d ? `${d}>${A}` : A;
5409
+ const C = r(y, c + 1, A);
5410
5410
  C.forEach((M) => {
5411
- M.parentId = I;
5411
+ M.parentId = A;
5412
5412
  });
5413
- const $ = c ? ei(y, (M) => M.subRows) : y, h = ti(e, I, $[0].original, v, c, void 0, d);
5413
+ const O = c ? ei(y, (M) => M.subRows) : y, h = ti(e, A, O[0].original, x, c, void 0, d);
5414
5414
  return Object.assign(h, {
5415
5415
  groupingColumnId: m,
5416
5416
  groupingValue: _,
5417
5417
  subRows: C,
5418
- leafRows: $,
5418
+ leafRows: O,
5419
5419
  getValue: (M) => {
5420
5420
  if (i.includes(M)) {
5421
5421
  if (h._valuesCache.hasOwnProperty(M))
5422
5422
  return h._valuesCache[M];
5423
5423
  if (y[0]) {
5424
- var j;
5425
- h._valuesCache[M] = (j = y[0].getValue(M)) != null ? j : void 0;
5424
+ var L;
5425
+ h._valuesCache[M] = (L = y[0].getValue(M)) != null ? L : void 0;
5426
5426
  }
5427
5427
  return h._valuesCache[M];
5428
5428
  }
5429
5429
  if (h._groupingValuesCache.hasOwnProperty(M))
5430
5430
  return h._groupingValuesCache[M];
5431
- const J = e.getColumn(M), ee = J == null ? void 0 : J.getAggregationFn();
5432
- if (ee)
5433
- return h._groupingValuesCache[M] = ee(M, $, y), h._groupingValuesCache[M];
5431
+ const Y = e.getColumn(M), X = Y == null ? void 0 : Y.getAggregationFn();
5432
+ if (X)
5433
+ return h._groupingValuesCache[M] = X(M, O, y), h._groupingValuesCache[M];
5434
5434
  }
5435
5435
  }), C.forEach((M) => {
5436
5436
  o.push(M), a[M.id] = M;
@@ -5444,7 +5444,7 @@ function yr() {
5444
5444
  flatRows: o,
5445
5445
  rowsById: a
5446
5446
  };
5447
- }, E(e.options, "debugTable", "getGroupedRowModel", () => {
5447
+ }, P(e.options, "debugTable", "getGroupedRowModel", () => {
5448
5448
  e._queue(() => {
5449
5449
  e._autoResetExpanded(), e._autoResetPageIndex();
5450
5450
  });
@@ -5468,7 +5468,7 @@ function br(e, n) {
5468
5468
  * @license MIT
5469
5469
  */
5470
5470
  function Vt(e, n) {
5471
- return e ? Sr(e) ? /* @__PURE__ */ ce.createElement(e, n) : e : null;
5471
+ return e ? Sr(e) ? /* @__PURE__ */ le.createElement(e, n) : e : null;
5472
5472
  }
5473
5473
  function Sr(e) {
5474
5474
  return Cr(e) || typeof e == "function" || _r(e);
@@ -5491,9 +5491,9 @@ function Rr(e) {
5491
5491
  // noop
5492
5492
  renderFallbackValue: null,
5493
5493
  ...e
5494
- }, [t] = ce.useState(() => ({
5494
+ }, [t] = le.useState(() => ({
5495
5495
  current: vr(n)
5496
- })), [i, o] = ce.useState(() => t.current.initialState);
5496
+ })), [i, o] = le.useState(() => t.current.initialState);
5497
5497
  return t.current.setOptions((a) => ({
5498
5498
  ...a,
5499
5499
  ...e,
@@ -5516,14 +5516,14 @@ const Er = ({
5516
5516
  asc: /* @__PURE__ */ u(be, { name: "chevron-up", children: "ascending" }),
5517
5517
  desc: /* @__PURE__ */ u(be, { name: "chevron-down", children: "descending" })
5518
5518
  }[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
5519
- }, kr = ({ header: e }) => /* @__PURE__ */ u("th", { className: B(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ u(
5519
+ }, kr = ({ header: e }) => /* @__PURE__ */ u("th", { className: H(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ u(
5520
5520
  ye,
5521
5521
  {
5522
5522
  appearance: "link",
5523
5523
  className: "table-header-label p-button--table-header",
5524
5524
  onClick: e.column.getToggleSortingHandler(),
5525
5525
  type: "button",
5526
- children: /* @__PURE__ */ Y(xe, { children: [
5526
+ children: /* @__PURE__ */ B(xe, { children: [
5527
5527
  Vt(e.column.columnDef.header, e.getContext()),
5528
5528
  /* @__PURE__ */ u(Er, { header: e })
5529
5529
  ] })
@@ -5541,7 +5541,7 @@ const Ir = ({
5541
5541
  isPending: r,
5542
5542
  pageSizes: l = [20, 30, 50, 100]
5543
5543
  }) => {
5544
- const s = re(() => l, []), c = re(
5544
+ const s = oe(() => l, []), c = oe(
5545
5545
  () => s.map((p) => ({
5546
5546
  label: `${p}/page`,
5547
5547
  value: p
@@ -5551,8 +5551,8 @@ const Ir = ({
5551
5551
  const { value: f } = p.target;
5552
5552
  i(Number(f));
5553
5553
  }, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
5554
- return /* @__PURE__ */ Y(Le, { children: [
5555
- /* @__PURE__ */ Y(Le.Left, { children: [
5554
+ return /* @__PURE__ */ B(Le, { children: [
5555
+ /* @__PURE__ */ B(Le.Left, { children: [
5556
5556
  "Showing ",
5557
5557
  g(),
5558
5558
  " out of ",
@@ -5560,7 +5560,7 @@ const Ir = ({
5560
5560
  " ",
5561
5561
  o
5562
5562
  ] }),
5563
- /* @__PURE__ */ Y(Le.Right, { children: [
5563
+ /* @__PURE__ */ B(Le.Right, { children: [
5564
5564
  /* @__PURE__ */ u(
5565
5565
  yo,
5566
5566
  {
@@ -5587,7 +5587,7 @@ const Ir = ({
5587
5587
  if (!e)
5588
5588
  return null;
5589
5589
  let t;
5590
- return e.getSelectedRowModel().rows.length === 0 ? t = "false" : e.getSelectedRowModel().rows.length < e.getCoreRowModel().rows.length ? t = "mixed" : t = "true", /* @__PURE__ */ Y("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
5590
+ return e.getSelectedRowModel().rows.length === 0 ? t = "false" : e.getSelectedRowModel().rows.length < e.getCoreRowModel().rows.length ? t = "mixed" : t = "true", /* @__PURE__ */ B("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
5591
5591
  /* @__PURE__ */ u(
5592
5592
  "input",
5593
5593
  {
@@ -5608,7 +5608,7 @@ const Ir = ({
5608
5608
  if (!e)
5609
5609
  return null;
5610
5610
  const t = !e.getIsAllSubRowsSelected() && e.getIsSomeSelected();
5611
- return /* @__PURE__ */ Y("label", { className: "p-checkbox--inline p-table-checkbox--group", children: [
5611
+ return /* @__PURE__ */ B("label", { className: "p-checkbox--inline p-table-checkbox--group", children: [
5612
5612
  /* @__PURE__ */ u(
5613
5613
  "input",
5614
5614
  {
@@ -5632,7 +5632,7 @@ const Ir = ({
5632
5632
  }, Me = ({
5633
5633
  row: e,
5634
5634
  ...n
5635
- }) => e ? /* @__PURE__ */ Y("label", { className: "p-checkbox--inline p-table-checkbox", children: [
5635
+ }) => e ? /* @__PURE__ */ B("label", { className: "p-checkbox--inline p-table-checkbox", children: [
5636
5636
  /* @__PURE__ */ u(
5637
5637
  "input",
5638
5638
  {
@@ -5664,25 +5664,10 @@ const Hr = ({
5664
5664
  sortBy: g,
5665
5665
  rowSelection: p,
5666
5666
  setRowSelection: f,
5667
- variant: v = "full-height"
5667
+ variant: x = "full-height",
5668
+ ..._
5668
5669
  }) => {
5669
- const _ = ke(null), [y, I] = fe("auto"), [C, $] = fe(l ?? []), [h, M] = fe(!0), [j, J] = fe(g ?? []);
5670
- Fn(() => {
5671
- const T = () => {
5672
- const X = _.current;
5673
- if (!X) return;
5674
- const V = (i == null ? void 0 : i.current) || document.querySelector("main");
5675
- if (!V) return;
5676
- const x = V.getBoundingClientRect(), w = X.getBoundingClientRect(), D = x.bottom - w.top;
5677
- I(`${D}px`);
5678
- };
5679
- T();
5680
- const L = new ResizeObserver(T), G = _.current;
5681
- return G && L.observe(G), window.addEventListener("resize", T), () => {
5682
- window.removeEventListener("resize", T), G && L.unobserve(G);
5683
- };
5684
- }, [i]);
5685
- const ee = re(() => {
5670
+ const y = ke(null), [A, C] = pe("auto"), [O, h] = pe(!1), [M, L] = pe(l ?? []), [Y, X] = pe(!0), [ae, de] = pe(g ?? []), me = oe(() => {
5686
5671
  if (!n || s)
5687
5672
  return t;
5688
5673
  const T = [
@@ -5690,8 +5675,8 @@ const Hr = ({
5690
5675
  id: "p-generic-table__select",
5691
5676
  accessorKey: "id",
5692
5677
  enableSorting: !1,
5693
- header: ({ table: L }) => l ? "" : /* @__PURE__ */ u(Me.All, { table: L }),
5694
- cell: ({ row: L }) => L.getIsGrouped() ? null : /* @__PURE__ */ u(Me, { row: L })
5678
+ header: ({ table: v }) => l ? "" : /* @__PURE__ */ u(Me.All, { table: v }),
5679
+ cell: ({ row: v }) => v.getIsGrouped() ? null : /* @__PURE__ */ u(Me, { row: v })
5695
5680
  },
5696
5681
  ...t
5697
5682
  ];
@@ -5700,52 +5685,68 @@ const Hr = ({
5700
5685
  id: "p-generic-table__group-select",
5701
5686
  accessorKey: "id",
5702
5687
  enableSorting: !1,
5703
- header: ({ table: L }) => /* @__PURE__ */ u(Me.All, { table: L }),
5704
- cell: ({ row: L }) => L.getIsGrouped() ? /* @__PURE__ */ u(Me.Group, { row: L }) : null
5688
+ header: ({ table: v }) => /* @__PURE__ */ u(Me.All, { table: v }),
5689
+ cell: ({ row: v }) => v.getIsGrouped() ? /* @__PURE__ */ u(Me.Group, { row: v }) : null
5705
5690
  },
5706
5691
  ...T
5707
5692
  ] : T;
5708
- }, [n, t, s, l]), le = re(() => C.length ? [...o].sort((T, L) => {
5709
- for (const G of C) {
5710
- const X = T[G] ?? null, V = L[G] ?? null;
5711
- if (X === null) return 1;
5712
- if (V === null || X < V) return -1;
5713
- if (X > V) return 1;
5693
+ }, [n, t, s, l]), ge = oe(() => M.length ? [...o].sort((T, v) => {
5694
+ for (const w of M) {
5695
+ const E = T[w] ?? null, k = v[w] ?? null;
5696
+ if (E === null) return 1;
5697
+ if (k === null || E < k) return -1;
5698
+ if (E > k) return 1;
5714
5699
  }
5715
5700
  return 0;
5716
- }) : o, [o, C]), pe = re(() => le.length ? [...le].sort((T, L) => {
5717
- if (m != null && m.length && C.length)
5718
- for (const { value: G, isTop: X } of m) {
5719
- const V = C[0], x = T[V] ?? null, w = L[V] ?? null;
5720
- if (x === G && w !== G)
5721
- return X ? -1 : 1;
5722
- if (w === G && x !== G)
5723
- return X ? 1 : -1;
5701
+ }) : o, [o, M]), W = oe(() => ge.length ? [...ge].sort((T, v) => {
5702
+ if (m != null && m.length && M.length)
5703
+ for (const { value: w, isTop: E } of m) {
5704
+ const k = M[0], R = T[k] ?? null, I = v[k] ?? null;
5705
+ if (R === w && I !== w)
5706
+ return E ? -1 : 1;
5707
+ if (I === w && R !== w)
5708
+ return E ? 1 : -1;
5724
5709
  }
5725
- for (const { id: G, desc: X } of j) {
5726
- const V = T[G] ?? null, x = L[G] ?? null;
5727
- if (V === null && x === null) return 0;
5728
- if (V === null) return X ? -1 : 1;
5729
- if (x === null || V < x)
5730
- return X ? 1 : -1;
5731
- if (V > x)
5732
- return X ? -1 : 1;
5710
+ for (const { id: w, desc: E } of ae) {
5711
+ const k = T[w] ?? null, R = v[w] ?? null;
5712
+ if (k === null && R === null) return 0;
5713
+ if (k === null) return E ? -1 : 1;
5714
+ if (R === null || k < R)
5715
+ return E ? 1 : -1;
5716
+ if (k > R)
5717
+ return E ? -1 : 1;
5733
5718
  }
5734
5719
  return 0;
5735
- }) : [], [le, j, m, C]), me = Rr({
5736
- data: pe,
5737
- columns: ee,
5720
+ }) : [], [ge, ae, m, M]);
5721
+ Fn(() => {
5722
+ const T = () => {
5723
+ const E = y.current;
5724
+ if (!E) return;
5725
+ const k = (i == null ? void 0 : i.current) || document.querySelector("main");
5726
+ if (!k) return;
5727
+ const R = k.getBoundingClientRect(), I = E.getBoundingClientRect(), $ = R.bottom - I.top, z = E.scrollHeight > $;
5728
+ h(z), C(z ? `${$}px` : "auto");
5729
+ };
5730
+ T();
5731
+ const v = new ResizeObserver(T), w = y.current;
5732
+ return w && v.observe(w), window.addEventListener("resize", T), () => {
5733
+ window.removeEventListener("resize", T), w && v.unobserve(w);
5734
+ };
5735
+ }, [i, W.length, s]);
5736
+ const Q = x === "full-height" && O ? "full-height" : "regular", ne = Rr({
5737
+ data: W,
5738
+ columns: me,
5738
5739
  state: {
5739
- grouping: C,
5740
- expanded: h,
5741
- sorting: j,
5740
+ grouping: M,
5741
+ expanded: Y,
5742
+ sorting: ae,
5742
5743
  rowSelection: p
5743
5744
  },
5744
5745
  manualPagination: !0,
5745
5746
  autoResetExpanded: !1,
5746
- onExpandedChange: M,
5747
- onSortingChange: J,
5748
- onGroupingChange: $,
5747
+ onExpandedChange: X,
5748
+ onSortingChange: de,
5749
+ onGroupingChange: L,
5749
5750
  onRowSelectionChange: f,
5750
5751
  manualSorting: !0,
5751
5752
  enableSorting: !0,
@@ -5757,28 +5758,29 @@ const Hr = ({
5757
5758
  enableRowSelection: n,
5758
5759
  enableMultiRowSelection: n,
5759
5760
  getRowId: (T) => T.id.toString()
5760
- }), he = () => /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__loading", colSpan: ee.length, children: /* @__PURE__ */ u(Pn, { text: "Loading..." }) }) }), Z = () => me.getRowModel().rows.length < 1 ? /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__no-data", colSpan: ee.length, children: c }) }) : me.getRowModel().rows.map((T) => {
5761
- const { getIsGrouped: L, id: G, getVisibleCells: X } = T, V = !L(), x = p !== void 0 && Object.keys(p).includes(G);
5761
+ }), fe = () => /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__loading", colSpan: me.length, children: /* @__PURE__ */ u(Pn, { text: "Loading..." }) }) }), he = () => ne.getRowModel().rows.length < 1 ? /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__no-data", colSpan: me.length, children: c }) }) : ne.getRowModel().rows.map((T) => {
5762
+ const { getIsGrouped: v, id: w, getVisibleCells: E } = T, k = !v(), R = p !== void 0 && Object.keys(p).includes(w);
5762
5763
  return /* @__PURE__ */ u(
5763
5764
  "tr",
5764
5765
  {
5765
- "aria-rowindex": parseInt(G.replace(/\D/g, "") || "0", 10) + 1,
5766
- "aria-selected": x,
5767
- className: B({
5768
- "p-generic-table__individual-row": V,
5769
- "p-generic-table__group-row": !V
5766
+ "aria-rowindex": parseInt(w.replace(/\D/g, "") || "0", 10) + 1,
5767
+ "aria-selected": R,
5768
+ className: H({
5769
+ "p-generic-table__individual-row": k,
5770
+ "p-generic-table__group-row": !k
5770
5771
  }),
5771
5772
  role: "row",
5772
- children: X().filter((w) => !V && w.column.id === "p-generic-table__group-select" ? !0 : a(T, w.column)).map((w) => /* @__PURE__ */ u("td", { className: B(`${w.column.id}`), children: Vt(w.column.columnDef.cell, w.getContext()) }, w.id))
5773
+ children: E().filter((I) => !k && I.column.id === "p-generic-table__group-select" ? !0 : a(T, I.column)).map((I) => /* @__PURE__ */ u("td", { className: H(`${I.column.id}`), children: Vt(I.column.columnDef.cell, I.getContext()) }, I.id))
5773
5774
  },
5774
- G
5775
+ w
5775
5776
  );
5776
5777
  });
5777
- return /* @__PURE__ */ Y(
5778
+ return /* @__PURE__ */ B(
5778
5779
  "div",
5779
5780
  {
5780
- className: B("p-generic-table", e),
5781
+ className: H("p-generic-table", e),
5781
5782
  "data-testid": "p-generic-table",
5783
+ ..._,
5782
5784
  children: [
5783
5785
  d && /* @__PURE__ */ u(
5784
5786
  Ir,
@@ -5793,38 +5795,38 @@ const Hr = ({
5793
5795
  pageSizes: d.pageSizes
5794
5796
  }
5795
5797
  ),
5796
- /* @__PURE__ */ Y(
5798
+ /* @__PURE__ */ B(
5797
5799
  "table",
5798
5800
  {
5799
5801
  "aria-busy": s,
5800
5802
  "aria-describedby": "generic-table-description",
5801
- "aria-rowcount": pe.length + 1,
5802
- className: B("p-generic-table__table", {
5803
- "p-generic-table__is-full-height": v === "full-height",
5803
+ "aria-rowcount": W.length + 1,
5804
+ className: H("p-generic-table__table", {
5805
+ "p-generic-table__is-full-height": Q === "full-height",
5804
5806
  "p-generic-table__is-selectable": n,
5805
5807
  "p-generic-table__is-grouped": l !== void 0
5806
5808
  }),
5807
5809
  role: "grid",
5808
5810
  children: [
5809
- /* @__PURE__ */ u("thead", { children: me.getHeaderGroups().map((T) => /* @__PURE__ */ u("tr", { role: "row", children: T.headers.filter(r).map((L, G) => /* @__PURE__ */ Y(kn, { children: [
5810
- /* @__PURE__ */ u(kr, { header: L }),
5811
- G === 2 ? /* @__PURE__ */ u(
5811
+ /* @__PURE__ */ u("thead", { children: ne.getHeaderGroups().map((T) => /* @__PURE__ */ u("tr", { role: "row", children: T.headers.filter(r).map((v, w) => /* @__PURE__ */ B(kn, { children: [
5812
+ /* @__PURE__ */ u(kr, { header: v }),
5813
+ w === 2 ? /* @__PURE__ */ u(
5812
5814
  "th",
5813
5815
  {
5814
5816
  className: "p-generic-table__select-alignment",
5815
5817
  role: "columnheader"
5816
5818
  }
5817
5819
  ) : null
5818
- ] }, L.id)) }, T.id)) }),
5820
+ ] }, v.id)) }, T.id)) }),
5819
5821
  /* @__PURE__ */ u(
5820
5822
  "tbody",
5821
5823
  {
5822
- ref: _,
5824
+ ref: y,
5823
5825
  style: {
5824
5826
  overflowY: "auto",
5825
- maxHeight: y
5827
+ maxHeight: A
5826
5828
  },
5827
- children: s ? he() : Z()
5829
+ children: s ? fe() : he()
5828
5830
  }
5829
5831
  )
5830
5832
  ]
@@ -5856,11 +5858,11 @@ const Hr = ({
5856
5858
  const r = e < 0, l = Math.abs(e);
5857
5859
  if (l === 0)
5858
5860
  return { value: 0, unit: i || "B" };
5859
- const s = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], d = c.findIndex((v) => v === n) || 0, m = l * Math.pow(s, d), g = i ? c.findIndex((v) => v === i) : Math.floor(Math.log(m) / Math.log(s));
5861
+ const s = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], d = c.findIndex((x) => x === n) || 0, m = l * Math.pow(s, d), g = i ? c.findIndex((x) => x === i) : Math.floor(Math.log(m) / Math.log(s));
5860
5862
  let p = m / Math.pow(s, g);
5861
5863
  if (p % 1 !== 0) {
5862
- const v = Math.pow(10, o);
5863
- p = Math[a](p * v) / v;
5864
+ const x = Math.pow(10, o);
5865
+ p = Math[a](p * x) / x;
5864
5866
  }
5865
5867
  return {
5866
5868
  value: r ? -p : p,
@@ -5881,7 +5883,7 @@ export {
5881
5883
  Ai as Meter,
5882
5884
  Nr as MultiSelect,
5883
5885
  Fa as MultiSelectDropdown,
5884
- oe as Navigation,
5886
+ te as Navigation,
5885
5887
  ao as NavigationBar,
5886
5888
  zr as NestedFormGroup,
5887
5889
  wo as Pagination,