@canonical/maas-react-components 1.32.0 → 1.33.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 B, jsx as p, Fragment as we } from "react/jsx-runtime";
2
- import * as ue from "react";
3
- import bi, { useRef as be, useState as de, useEffect as Ee, useCallback as Y, cloneElement as Si, createContext as In, useId as et, useContext as Ht, useMemo as re, useReducer as Dn, forwardRef as Ci, useImperativeHandle as _i, Fragment as $n, useLayoutEffect as An } from "react";
1
+ import { jsxs as U, jsx as p, Fragment as we } from "react/jsx-runtime";
2
+ import * as pe from "react";
3
+ import bi, { useRef as be, useState as de, useEffect as Ee, useCallback as Q, cloneElement as Si, createContext as In, useId as et, useContext as Ht, useMemo as le, useReducer as Dn, forwardRef as Ci, useImperativeHandle as _i, Fragment as $n, useLayoutEffect as An } from "react";
4
4
  import { useListener as Ri, Link as Ei, Spinner as qt, Tooltip as Mn, Button as Se, Icon as Ce, Row as ki, Col as Fi, Input as Pi, Label as Ii, CheckboxInput as Di, useClickOutside as $i, useOnEscapePressed as Ai, SearchBox as On, Select as Mi } from "@canonical/react-components";
5
5
  function Gt(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -45,7 +45,7 @@ function Oi() {
45
45
  }(ft)), ft.exports;
46
46
  }
47
47
  var ji = Oi();
48
- const G = /* @__PURE__ */ Gt(ji), Ie = {
48
+ const q = /* @__PURE__ */ Gt(ji), Ie = {
49
49
  caution: "#F99B11",
50
50
  light: "#F7F7F7",
51
51
  linkFaded: "#D3E4ED",
@@ -83,13 +83,13 @@ const G = /* @__PURE__ */ Gt(ji), Ie = {
83
83
  Ee(() => {
84
84
  g(o === "segmented" ? nn(l, c) : 0);
85
85
  }, [c, o]);
86
- const u = Y(() => {
86
+ const u = Q(() => {
87
87
  g(nn(l, c));
88
88
  }, [l, c, g]);
89
- return Ri(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ B(
89
+ return Ri(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ U(
90
90
  "div",
91
91
  {
92
- className: G("p-meter", e, {
92
+ className: q("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 G = /* @__PURE__ */ Gt(ji), Ie = {
141
141
  ${It} ${i}px
142
142
  )`
143
143
  });
144
- return /* @__PURE__ */ B(we, { children: [
144
+ return /* @__PURE__ */ U(we, { children: [
145
145
  o() ? /* @__PURE__ */ p(
146
146
  "div",
147
147
  {
@@ -173,7 +173,7 @@ const G = /* @__PURE__ */ Gt(ji), Ie = {
173
173
  }) => /* @__PURE__ */ p(
174
174
  "div",
175
175
  {
176
- className: G("p-meter__label", e),
176
+ className: q("p-meter__label", e),
177
177
  "data-testid": Oe.label,
178
178
  children: n
179
179
  }
@@ -181,7 +181,7 @@ const G = /* @__PURE__ */ Gt(ji), Ie = {
181
181
  zi.Label = Li;
182
182
  const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Hi = ({
183
183
  percentComplete: e
184
- }) => /* @__PURE__ */ B("small", { className: "progress-indicator", children: [
184
+ }) => /* @__PURE__ */ U("small", { className: "progress-indicator", children: [
185
185
  e,
186
186
  "% ",
187
187
  /* @__PURE__ */ p(qt, { className: "progress-indicator__spinner" })
@@ -196,7 +196,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
196
196
  "span",
197
197
  {
198
198
  "aria-label": "loading",
199
- className: G("p-placeholder", t),
199
+ className: q("p-placeholder", t),
200
200
  role: "progressbar",
201
201
  style: { animationDelay: `${o}ms` },
202
202
  children: /* @__PURE__ */ p("span", { "aria-hidden": "true", children: e || n || "Loading" })
@@ -210,7 +210,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
210
210
  Mn,
211
211
  {
212
212
  className: "p-side-navigation__tooltip-wrapper",
213
- message: /* @__PURE__ */ B(we, { children: [
213
+ message: /* @__PURE__ */ U(we, { children: [
214
214
  e ? "expand" : "collapse",
215
215
  "( ",
216
216
  /* @__PURE__ */ p("code", { children: "[" }),
@@ -223,7 +223,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
223
223
  {
224
224
  appearance: "base",
225
225
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
226
- className: G(
226
+ className: q(
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 qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
234
234
  }
235
235
  )
236
236
  }
237
- ), Ui = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Ki = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), Wi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), Qi = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Ce, { className: "p-side-navigation__icon", light: e, name: n }), Ji = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className: G("p-side-navigation__item", n, { "has-active-child": t }), children: e }), Zi = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ p("span", { className: G("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), eo = ({
237
+ ), Ui = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Ki = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), Wi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), Qi = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Ce, { className: "p-side-navigation__icon", light: e, name: n }), Ji = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className: q("p-side-navigation__item", n, { "has-active-child": t }), children: e }), Zi = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ p("span", { className: q("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), eo = ({
238
238
  as: e,
239
239
  ...n
240
240
  }) => /* @__PURE__ */ p(
241
241
  e || "a",
242
242
  {
243
- className: G("p-side-navigation__link", n.className),
243
+ className: q("p-side-navigation__link", n.className),
244
244
  ...n
245
245
  }
246
- ), to = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className: G("p-side-navigation__list", n), children: e }), no = ({
246
+ ), to = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className: q("p-side-navigation__list", n), children: e }), no = ({
247
247
  as: e,
248
248
  children: n,
249
249
  className: t,
250
250
  ...i
251
- }) => /* @__PURE__ */ p(e || "a", { className: G("p-panel__logo", t), ...i, children: /* @__PURE__ */ p("div", { className: "p-navigation__tagged-logo", children: n }) }), io = ({ children: e }) => Si(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), oo = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ p(
251
+ }) => /* @__PURE__ */ p(e || "a", { className: q("p-panel__logo", t), ...i, children: /* @__PURE__ */ p("div", { className: "p-navigation__tagged-logo", children: n }) }), io = ({ children: e }) => Si(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), oo = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ p(
252
252
  "div",
253
253
  {
254
- className: G("p-panel__logo-name is-fading-when-collapsed", {
254
+ className: q("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 qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
264
264
  Se,
265
265
  {
266
266
  appearance: "base",
267
- className: G(
267
+ className: q(
268
268
  "p-side-navigation__button--menu has-icon is-dark",
269
269
  n
270
270
  ),
@@ -273,25 +273,25 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
273
273
  },
274
274
  children: /* @__PURE__ */ p(we, { children: e })
275
275
  }
276
- ), so = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), ae = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className: G("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), co = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ p("div", { className: G("p-panel is-dark", n), children: e }) });
277
- ae.Header = Xi;
278
- ae.Banner = Gi;
279
- ae.Drawer = Wi;
280
- ae.Controls = Ki;
281
- ae.CollapseToggle = Bi;
282
- ae.Content = Ui;
283
- ae.Footer = Yi;
284
- ae.List = to;
285
- ae.Item = Ji;
286
- ae.Link = eo;
287
- ae.Text = so;
288
- ae.Icon = Qi;
289
- ae.Label = Zi;
290
- ae.Logo = no;
291
- ae.LogoTag = ao;
292
- ae.LogoIcon = io;
293
- ae.LogoName = oo;
294
- ae.LogoText = ro;
276
+ ), so = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), re = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className: q("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), co = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ p("div", { className: q("p-panel is-dark", n), children: e }) });
277
+ re.Header = Xi;
278
+ re.Banner = Gi;
279
+ re.Drawer = Wi;
280
+ re.Controls = Ki;
281
+ re.CollapseToggle = Bi;
282
+ re.Content = Ui;
283
+ re.Footer = Yi;
284
+ re.List = to;
285
+ re.Item = Ji;
286
+ re.Link = eo;
287
+ re.Text = so;
288
+ re.Icon = Qi;
289
+ re.Label = Zi;
290
+ re.Logo = no;
291
+ re.LogoTag = ao;
292
+ re.LogoIcon = io;
293
+ re.LogoName = oo;
294
+ re.LogoText = ro;
295
295
  co.MenuButton = lo;
296
296
  const Bt = In(null), Tn = ({ children: e }) => {
297
297
  const n = et();
@@ -319,13 +319,13 @@ Ut.Title = go;
319
319
  Ut.Description = fo;
320
320
  Ut.Content = mo;
321
321
  function vo(e) {
322
- const [n, t] = ue.useState(null), i = ue.useRef(null), o = ue.useCallback(() => {
322
+ const [n, t] = pe.useState(null), i = pe.useRef(null), o = pe.useCallback(() => {
323
323
  if (e.current) {
324
324
  const a = e.current.getBoundingClientRect();
325
325
  t(a);
326
326
  }
327
327
  }, [e]);
328
- return ue.useEffect(() => {
328
+ return pe.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 vo(e) {
334
334
  };
335
335
  }, [e, o]), n;
336
336
  }
337
- const zn = ue.createContext(null), Vn = ue.createContext([!1, () => {
337
+ const zn = pe.createContext(null), Vn = pe.createContext([!1, () => {
338
338
  }]), Nn = ({ children: e }) => {
339
- const n = ue.useRef(null), t = vo(n), [i, o] = ue.useState(!1);
339
+ const n = pe.useRef(null), t = vo(n), [i, o] = pe.useState(!1);
340
340
  return /* @__PURE__ */ p(
341
341
  "header",
342
342
  {
343
- className: G("main-toolbar", {
343
+ className: q("main-toolbar", {
344
344
  "main-toolbar--stacked": i
345
345
  }),
346
346
  ref: n,
@@ -355,16 +355,16 @@ const zn = ue.createContext(null), Vn = ue.createContext([!1, () => {
355
355
  }) => /* @__PURE__ */ p(
356
356
  e || "h1",
357
357
  {
358
- className: G("main-toolbar__title p-heading--4", t),
358
+ className: q("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
  ), ho = ({ children: e }) => {
364
- const n = ue.useContext(zn), [t, i] = ue.useContext(Vn), o = ue.useRef(null);
365
- return ue.useEffect(() => {
364
+ const n = pe.useContext(zn), [t, i] = pe.useContext(Vn), o = pe.useRef(null);
365
+ return pe.useEffect(() => {
366
366
  !o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
367
- }, [i, n, o]), /* @__PURE__ */ B(we, { children: [
367
+ }, [i, n, o]), /* @__PURE__ */ U(we, { children: [
368
368
  /* @__PURE__ */ p(
369
369
  "div",
370
370
  {
@@ -378,7 +378,7 @@ const zn = ue.createContext(null), Vn = ue.createContext([!1, () => {
378
378
  /* @__PURE__ */ p(
379
379
  "div",
380
380
  {
381
- className: G("main-toolbar__controls", {
381
+ className: q("main-toolbar__controls", {
382
382
  "main-toolbar__controls--stacked": t
383
383
  }),
384
384
  children: e
@@ -395,16 +395,16 @@ const ot = ({
395
395
  variant: i = "wide",
396
396
  ...o
397
397
  }) => {
398
- const a = t || "section", r = G("content-section", n);
398
+ const a = t || "section", r = q("content-section", n);
399
399
  return /* @__PURE__ */ p(a, { ...o, className: r, children: /* @__PURE__ */ p(ki, { children: /* @__PURE__ */ p(Fi, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ p(we, { children: e }) }) }) });
400
400
  }, wo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ p(
401
401
  t || "h1",
402
402
  {
403
403
  ...i,
404
- className: G("content-section__title p-heading--4", n),
404
+ className: q("content-section__title p-heading--4", n),
405
405
  children: e
406
406
  }
407
- ), yo = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className: G("content-section__header", n), children: e }), bo = ({ children: e, className: n }) => /* @__PURE__ */ p("div", { className: G("content-section__body", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ p("footer", { className: G("content-section__footer", n), children: e });
407
+ ), yo = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className: q("content-section__header", n), children: e }), bo = ({ children: e, className: n }) => /* @__PURE__ */ p("div", { className: q("content-section__body", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ p("footer", { className: q("content-section__footer", n), children: e });
408
408
  ot.Title = wo;
409
409
  ot.Header = yo;
410
410
  ot.Content = bo;
@@ -416,7 +416,7 @@ const Ln = ({
416
416
  }) => /* @__PURE__ */ p(
417
417
  "div",
418
418
  {
419
- className: G("fade-in--down", n),
419
+ className: q("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 Ln = ({
439
439
  "nav",
440
440
  {
441
441
  "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
442
- className: G("p-pagination", e),
443
- children: /* @__PURE__ */ B("span", { className: "p-pagination--items", children: [
442
+ className: q("p-pagination", e),
443
+ children: /* @__PURE__ */ U("span", { className: "p-pagination--items", children: [
444
444
  /* @__PURE__ */ p(
445
445
  Se,
446
446
  {
@@ -470,7 +470,7 @@ const Ln = ({
470
470
  }
471
471
  ),
472
472
  " ",
473
- /* @__PURE__ */ B("strong", { className: "u-no-wrap", children: [
473
+ /* @__PURE__ */ U("strong", { className: "u-no-wrap", children: [
474
474
  " of ",
475
475
  s
476
476
  ] }),
@@ -522,7 +522,7 @@ const Ln = ({
522
522
  "p",
523
523
  {
524
524
  "aria-label": a ? `${t} (completed)` : t,
525
- className: G("stepper__title", {
525
+ className: q("stepper__title", {
526
526
  "stepper__title--is-active": o,
527
527
  "stepper__title--is-complete": a
528
528
  }),
@@ -530,7 +530,7 @@ const Ln = ({
530
530
  }
531
531
  ) }, i);
532
532
  }) });
533
- var Ue = { exports: {} }, Ke = { exports: {} }, U = {};
533
+ var Ue = { exports: {} }, Ke = { exports: {} }, K = {};
534
534
  /** @license React v16.13.1
535
535
  * react-is.production.min.js
536
536
  *
@@ -541,71 +541,71 @@ var Ue = { exports: {} }, Ke = { exports: {} }, U = {};
541
541
  */
542
542
  var on;
543
543
  function Ro() {
544
- if (on) return U;
544
+ if (on) return K;
545
545
  on = 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, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
547
- function E(h) {
548
- if (typeof h == "object" && h !== null) {
549
- var T = h.$$typeof;
550
- switch (T) {
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, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
547
+ function _(x) {
548
+ if (typeof x == "object" && x !== null) {
549
+ var V = x.$$typeof;
550
+ switch (V) {
551
551
  case n:
552
- switch (h = h.type, h) {
552
+ switch (x = x.type, x) {
553
553
  case s:
554
554
  case c:
555
555
  case i:
556
556
  case a:
557
557
  case o:
558
558
  case f:
559
- return h;
559
+ return x;
560
560
  default:
561
- switch (h = h && h.$$typeof, h) {
561
+ switch (x = x && x.$$typeof, x) {
562
562
  case l:
563
563
  case d:
564
564
  case m:
565
565
  case u:
566
566
  case r:
567
- return h;
567
+ return x;
568
568
  default:
569
- return T;
569
+ return V;
570
570
  }
571
571
  }
572
572
  case t:
573
- return T;
573
+ return V;
574
574
  }
575
575
  }
576
576
  }
577
- function M(h) {
578
- return E(h) === c;
577
+ function O(x) {
578
+ return _(x) === 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 = m, U.Memo = u, U.Portal = t, U.Profiler = a, U.StrictMode = o, U.Suspense = f, U.isAsyncMode = function(h) {
581
- return M(h) || E(h) === s;
582
- }, U.isConcurrentMode = M, U.isContextConsumer = function(h) {
583
- return E(h) === l;
584
- }, U.isContextProvider = function(h) {
585
- return E(h) === r;
586
- }, U.isElement = function(h) {
587
- return typeof h == "object" && h !== null && h.$$typeof === n;
588
- }, U.isForwardRef = function(h) {
589
- return E(h) === d;
590
- }, U.isFragment = function(h) {
591
- return E(h) === i;
592
- }, U.isLazy = function(h) {
593
- return E(h) === m;
594
- }, U.isMemo = function(h) {
595
- return E(h) === u;
596
- }, U.isPortal = function(h) {
597
- return E(h) === t;
598
- }, U.isProfiler = function(h) {
599
- return E(h) === a;
600
- }, U.isStrictMode = function(h) {
601
- return E(h) === o;
602
- }, U.isSuspense = function(h) {
603
- return E(h) === f;
604
- }, U.isValidElementType = function(h) {
605
- return typeof h == "string" || typeof h == "function" || h === i || h === c || h === a || h === o || h === f || h === g || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === u || h.$$typeof === r || h.$$typeof === l || h.$$typeof === d || h.$$typeof === R || h.$$typeof === w || h.$$typeof === D || h.$$typeof === v);
606
- }, U.typeOf = E, U;
580
+ return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = u, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(x) {
581
+ return O(x) || _(x) === s;
582
+ }, K.isConcurrentMode = O, K.isContextConsumer = function(x) {
583
+ return _(x) === l;
584
+ }, K.isContextProvider = function(x) {
585
+ return _(x) === r;
586
+ }, K.isElement = function(x) {
587
+ return typeof x == "object" && x !== null && x.$$typeof === n;
588
+ }, K.isForwardRef = function(x) {
589
+ return _(x) === d;
590
+ }, K.isFragment = function(x) {
591
+ return _(x) === i;
592
+ }, K.isLazy = function(x) {
593
+ return _(x) === m;
594
+ }, K.isMemo = function(x) {
595
+ return _(x) === u;
596
+ }, K.isPortal = function(x) {
597
+ return _(x) === t;
598
+ }, K.isProfiler = function(x) {
599
+ return _(x) === a;
600
+ }, K.isStrictMode = function(x) {
601
+ return _(x) === o;
602
+ }, K.isSuspense = function(x) {
603
+ return _(x) === f;
604
+ }, K.isValidElementType = function(x) {
605
+ return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === u || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === R || x.$$typeof === h || x.$$typeof === M || x.$$typeof === v);
606
+ }, K.typeOf = _, K;
607
607
  }
608
- var K = {};
608
+ var W = {};
609
609
  /** @license React v16.13.1
610
610
  * react-is.development.js
611
611
  *
@@ -617,15 +617,15 @@ var K = {};
617
617
  var an;
618
618
  function Eo() {
619
619
  return an || (an = 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, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
621
- function E(b) {
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, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
621
+ function _(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 === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === R || b.$$typeof === w || b.$$typeof === D || b.$$typeof === v);
623
+ b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === R || b.$$typeof === h || b.$$typeof === M || b.$$typeof === v);
624
624
  }
625
- function M(b) {
625
+ function O(b) {
626
626
  if (typeof b == "object" && b !== null) {
627
- var ge = b.$$typeof;
628
- switch (ge) {
627
+ var fe = b.$$typeof;
628
+ switch (fe) {
629
629
  case n:
630
630
  var Fe = b.type;
631
631
  switch (Fe) {
@@ -646,56 +646,56 @@ function Eo() {
646
646
  case r:
647
647
  return Te;
648
648
  default:
649
- return ge;
649
+ return fe;
650
650
  }
651
651
  }
652
652
  case t:
653
- return ge;
653
+ return fe;
654
654
  }
655
655
  }
656
656
  }
657
- var h = s, T = c, z = l, X = r, ee = n, pe = d, le = i, ve = m, I = u, S = t, L = a, Q = o, J = f, se = !1;
657
+ var x = s, V = c, L = l, B = r, Z = n, ce = d, ue = i, ge = m, I = u, S = t, H = a, Y = o, ee = f, oe = !1;
658
658
  function te(b) {
659
- return se || (se = !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) || M(b) === s;
659
+ return oe || (oe = !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.")), w(b) || O(b) === s;
660
660
  }
661
- function x(b) {
662
- return M(b) === c;
661
+ function w(b) {
662
+ return O(b) === c;
663
663
  }
664
664
  function y(b) {
665
- return M(b) === l;
665
+ return O(b) === l;
666
666
  }
667
667
  function k(b) {
668
- return M(b) === r;
668
+ return O(b) === r;
669
669
  }
670
- function P(b) {
670
+ function F(b) {
671
671
  return typeof b == "object" && b !== null && b.$$typeof === n;
672
672
  }
673
- function _(b) {
674
- return M(b) === d;
673
+ function E(b) {
674
+ return O(b) === d;
675
675
  }
676
- function j(b) {
677
- return M(b) === i;
676
+ function D(b) {
677
+ return O(b) === i;
678
678
  }
679
- function F(b) {
680
- return M(b) === m;
679
+ function P(b) {
680
+ return O(b) === m;
681
681
  }
682
- function V(b) {
683
- return M(b) === u;
682
+ function T(b) {
683
+ return O(b) === u;
684
684
  }
685
- function H(b) {
686
- return M(b) === t;
685
+ function z(b) {
686
+ return O(b) === t;
687
687
  }
688
- function q(b) {
689
- return M(b) === a;
688
+ function G(b) {
689
+ return O(b) === a;
690
690
  }
691
691
  function N(b) {
692
- return M(b) === o;
692
+ return O(b) === o;
693
693
  }
694
694
  function ie(b) {
695
- return M(b) === f;
695
+ return O(b) === f;
696
696
  }
697
- K.AsyncMode = h, K.ConcurrentMode = T, K.ContextConsumer = z, K.ContextProvider = X, K.Element = ee, K.ForwardRef = pe, K.Fragment = le, K.Lazy = ve, K.Memo = I, K.Portal = S, K.Profiler = L, K.StrictMode = Q, K.Suspense = J, K.isAsyncMode = te, K.isConcurrentMode = x, K.isContextConsumer = y, K.isContextProvider = k, K.isElement = P, K.isForwardRef = _, K.isFragment = j, K.isLazy = F, K.isMemo = V, K.isPortal = H, K.isProfiler = q, K.isStrictMode = N, K.isSuspense = ie, K.isValidElementType = E, K.typeOf = M;
698
- }()), K;
697
+ W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = L, W.ContextProvider = B, W.Element = Z, W.ForwardRef = ce, W.Fragment = ue, W.Lazy = ge, W.Memo = I, W.Portal = S, W.Profiler = H, W.StrictMode = Y, W.Suspense = ee, W.isAsyncMode = te, W.isConcurrentMode = w, W.isContextConsumer = y, W.isContextProvider = k, W.isElement = F, W.isForwardRef = E, W.isFragment = D, W.isLazy = P, W.isMemo = T, W.isPortal = z, W.isProfiler = G, W.isStrictMode = N, W.isSuspense = ie, W.isValidElementType = _, W.typeOf = O;
698
+ }()), W;
699
699
  }
700
700
  var rn;
701
701
  function Hn() {
@@ -831,90 +831,90 @@ function Po() {
831
831
  }
832
832
  return wt = function(l, s) {
833
833
  var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
834
- function f(x) {
835
- var y = x && (c && x[c] || x[d]);
834
+ function f(w) {
835
+ var y = w && (c && w[c] || w[d]);
836
836
  if (typeof y == "function")
837
837
  return y;
838
838
  }
839
839
  var g = "<<anonymous>>", u = {
840
- array: w("array"),
841
- bigint: w("bigint"),
842
- bool: w("boolean"),
843
- func: w("function"),
844
- number: w("number"),
845
- object: w("object"),
846
- string: w("string"),
847
- symbol: w("symbol"),
848
- any: D(),
849
- arrayOf: E,
850
- element: M(),
851
- elementType: h(),
852
- instanceOf: T,
853
- node: pe(),
854
- objectOf: X,
855
- oneOf: z,
856
- oneOfType: ee,
857
- shape: ve,
840
+ array: h("array"),
841
+ bigint: h("bigint"),
842
+ bool: h("boolean"),
843
+ func: h("function"),
844
+ number: h("number"),
845
+ object: h("object"),
846
+ string: h("string"),
847
+ symbol: h("symbol"),
848
+ any: M(),
849
+ arrayOf: _,
850
+ element: O(),
851
+ elementType: x(),
852
+ instanceOf: V,
853
+ node: ce(),
854
+ objectOf: B,
855
+ oneOf: L,
856
+ oneOfType: Z,
857
+ shape: ge,
858
858
  exact: I
859
859
  };
860
- function m(x, y) {
861
- return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
860
+ function m(w, y) {
861
+ return w === y ? w !== 0 || 1 / w === 1 / y : w !== w && y !== y;
862
862
  }
863
- function v(x, y) {
864
- this.message = x, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
863
+ function v(w, y) {
864
+ this.message = w, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
865
865
  }
866
866
  v.prototype = Error.prototype;
867
- function R(x) {
867
+ function R(w) {
868
868
  if (process.env.NODE_ENV !== "production")
869
869
  var y = {}, k = 0;
870
- function P(j, F, V, H, q, N, ie) {
871
- if (H = H || g, N = N || V, ie !== t) {
870
+ function F(D, P, T, z, G, N, ie) {
871
+ if (z = z || g, N = N || T, ie !== 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 ge = H + ":" + V;
879
- !y[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
878
+ var fe = z + ":" + T;
879
+ !y[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
880
880
  k < 3 && (a(
881
- "You are manually calling a React.PropTypes validation function for the `" + N + "` 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
- ), y[ge] = !0, k++);
881
+ "You are manually calling a React.PropTypes validation function for the `" + N + "` 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
+ ), y[fe] = !0, k++);
883
883
  }
884
884
  }
885
- return F[V] == null ? j ? F[V] === null ? new v("The " + q + " `" + N + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new v("The " + q + " `" + N + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : x(F, V, H, q, N);
885
+ return P[T] == null ? D ? P[T] === null ? new v("The " + G + " `" + N + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new v("The " + G + " `" + N + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : w(P, T, z, G, N);
886
886
  }
887
- var _ = P.bind(null, !1);
888
- return _.isRequired = P.bind(null, !0), _;
887
+ var E = F.bind(null, !1);
888
+ return E.isRequired = F.bind(null, !0), E;
889
889
  }
890
- function w(x) {
891
- function y(k, P, _, j, F, V) {
892
- var H = k[P], q = Q(H);
893
- if (q !== x) {
894
- var N = J(H);
890
+ function h(w) {
891
+ function y(k, F, E, D, P, T) {
892
+ var z = k[F], G = Y(z);
893
+ if (G !== w) {
894
+ var N = ee(z);
895
895
  return new v(
896
- "Invalid " + j + " `" + F + "` of type " + ("`" + N + "` supplied to `" + _ + "`, expected ") + ("`" + x + "`."),
897
- { expectedType: x }
896
+ "Invalid " + D + " `" + P + "` of type " + ("`" + N + "` supplied to `" + E + "`, expected ") + ("`" + w + "`."),
897
+ { expectedType: w }
898
898
  );
899
899
  }
900
900
  return null;
901
901
  }
902
902
  return R(y);
903
903
  }
904
- function D() {
904
+ function M() {
905
905
  return R(r);
906
906
  }
907
- function E(x) {
908
- function y(k, P, _, j, F) {
909
- if (typeof x != "function")
910
- return new v("Property `" + F + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
911
- var V = k[P];
912
- if (!Array.isArray(V)) {
913
- var H = Q(V);
914
- return new v("Invalid " + j + " `" + F + "` of type " + ("`" + H + "` supplied to `" + _ + "`, expected an array."));
907
+ function _(w) {
908
+ function y(k, F, E, D, P) {
909
+ if (typeof w != "function")
910
+ return new v("Property `" + P + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
911
+ var T = k[F];
912
+ if (!Array.isArray(T)) {
913
+ var z = Y(T);
914
+ return new v("Invalid " + D + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected an array."));
915
915
  }
916
- for (var q = 0; q < V.length; q++) {
917
- var N = x(V, q, _, j, F + "[" + q + "]", t);
916
+ for (var G = 0; G < T.length; G++) {
917
+ var N = w(T, G, E, D, P + "[" + G + "]", t);
918
918
  if (N instanceof Error)
919
919
  return N;
920
920
  }
@@ -922,65 +922,65 @@ function Po() {
922
922
  }
923
923
  return R(y);
924
924
  }
925
- function M() {
926
- function x(y, k, P, _, j) {
927
- var F = y[k];
928
- if (!l(F)) {
929
- var V = Q(F);
930
- return new v("Invalid " + _ + " `" + j + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected a single ReactElement."));
925
+ function O() {
926
+ function w(y, k, F, E, D) {
927
+ var P = y[k];
928
+ if (!l(P)) {
929
+ var T = Y(P);
930
+ return new v("Invalid " + E + " `" + D + "` of type " + ("`" + T + "` supplied to `" + F + "`, expected a single ReactElement."));
931
931
  }
932
932
  return null;
933
933
  }
934
- return R(x);
934
+ return R(w);
935
935
  }
936
- function h() {
937
- function x(y, k, P, _, j) {
938
- var F = y[k];
939
- if (!e.isValidElementType(F)) {
940
- var V = Q(F);
941
- return new v("Invalid " + _ + " `" + j + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected a single ReactElement type."));
936
+ function x() {
937
+ function w(y, k, F, E, D) {
938
+ var P = y[k];
939
+ if (!e.isValidElementType(P)) {
940
+ var T = Y(P);
941
+ return new v("Invalid " + E + " `" + D + "` of type " + ("`" + T + "` supplied to `" + F + "`, expected a single ReactElement type."));
942
942
  }
943
943
  return null;
944
944
  }
945
- return R(x);
945
+ return R(w);
946
946
  }
947
- function T(x) {
948
- function y(k, P, _, j, F) {
949
- if (!(k[P] instanceof x)) {
950
- var V = x.name || g, H = te(k[P]);
951
- return new v("Invalid " + j + " `" + F + "` of type " + ("`" + H + "` supplied to `" + _ + "`, expected ") + ("instance of `" + V + "`."));
947
+ function V(w) {
948
+ function y(k, F, E, D, P) {
949
+ if (!(k[F] instanceof w)) {
950
+ var T = w.name || g, z = te(k[F]);
951
+ return new v("Invalid " + D + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected ") + ("instance of `" + T + "`."));
952
952
  }
953
953
  return null;
954
954
  }
955
955
  return R(y);
956
956
  }
957
- function z(x) {
958
- if (!Array.isArray(x))
957
+ function L(w) {
958
+ if (!Array.isArray(w))
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 y(k, P, _, j, F) {
963
- for (var V = k[P], H = 0; H < x.length; H++)
964
- if (m(V, x[H]))
962
+ function y(k, F, E, D, P) {
963
+ for (var T = k[F], z = 0; z < w.length; z++)
964
+ if (m(T, w[z]))
965
965
  return null;
966
- var q = JSON.stringify(x, function(ie, b) {
967
- var ge = J(b);
968
- return ge === "symbol" ? String(b) : b;
966
+ var G = JSON.stringify(w, function(ie, b) {
967
+ var fe = ee(b);
968
+ return fe === "symbol" ? String(b) : b;
969
969
  });
970
- return new v("Invalid " + j + " `" + F + "` of value `" + String(V) + "` " + ("supplied to `" + _ + "`, expected one of " + q + "."));
970
+ return new v("Invalid " + D + " `" + P + "` of value `" + String(T) + "` " + ("supplied to `" + E + "`, expected one of " + G + "."));
971
971
  }
972
972
  return R(y);
973
973
  }
974
- function X(x) {
975
- function y(k, P, _, j, F) {
976
- if (typeof x != "function")
977
- return new v("Property `" + F + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
978
- var V = k[P], H = Q(V);
979
- if (H !== "object")
980
- return new v("Invalid " + j + " `" + F + "` of type " + ("`" + H + "` supplied to `" + _ + "`, expected an object."));
981
- for (var q in V)
982
- if (i(V, q)) {
983
- var N = x(V, q, _, j, F + "." + q, t);
974
+ function B(w) {
975
+ function y(k, F, E, D, P) {
976
+ if (typeof w != "function")
977
+ return new v("Property `" + P + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
978
+ var T = k[F], z = Y(T);
979
+ if (z !== "object")
980
+ return new v("Invalid " + D + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected an object."));
981
+ for (var G in T)
982
+ if (i(T, G)) {
983
+ var N = w(T, G, E, D, P + "." + G, t);
984
984
  if (N instanceof Error)
985
985
  return N;
986
986
  }
@@ -988,49 +988,49 @@ function Po() {
988
988
  }
989
989
  return R(y);
990
990
  }
991
- function ee(x) {
992
- if (!Array.isArray(x))
991
+ function Z(w) {
992
+ if (!Array.isArray(w))
993
993
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), r;
994
- for (var y = 0; y < x.length; y++) {
995
- var k = x[y];
994
+ for (var y = 0; y < w.length; y++) {
995
+ var k = w[y];
996
996
  if (typeof k != "function")
997
997
  return a(
998
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(k) + " at index " + y + "."
998
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(k) + " at index " + y + "."
999
999
  ), r;
1000
1000
  }
1001
- function P(_, j, F, V, H) {
1002
- for (var q = [], N = 0; N < x.length; N++) {
1003
- var ie = x[N], b = ie(_, j, F, V, H, t);
1001
+ function F(E, D, P, T, z) {
1002
+ for (var G = [], N = 0; N < w.length; N++) {
1003
+ var ie = w[N], b = ie(E, D, P, T, 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") && G.push(b.data.expectedType);
1007
1007
  }
1008
- var ge = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
1009
- return new v("Invalid " + V + " `" + H + "` supplied to " + ("`" + F + "`" + ge + "."));
1008
+ var fe = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
1009
+ return new v("Invalid " + T + " `" + z + "` supplied to " + ("`" + P + "`" + fe + "."));
1010
1010
  }
1011
- return R(P);
1011
+ return R(F);
1012
1012
  }
1013
- function pe() {
1014
- function x(y, k, P, _, j) {
1015
- return S(y[k]) ? null : new v("Invalid " + _ + " `" + j + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
1013
+ function ce() {
1014
+ function w(y, k, F, E, D) {
1015
+ return S(y[k]) ? null : new v("Invalid " + E + " `" + D + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
1016
1016
  }
1017
- return R(x);
1017
+ return R(w);
1018
1018
  }
1019
- function le(x, y, k, P, _) {
1019
+ function ue(w, y, k, F, E) {
1020
1020
  return new v(
1021
- (x || "React class") + ": " + y + " type `" + k + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
1021
+ (w || "React class") + ": " + y + " type `" + k + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
1022
1022
  );
1023
1023
  }
1024
- function ve(x) {
1025
- function y(k, P, _, j, F) {
1026
- var V = k[P], H = Q(V);
1027
- if (H !== "object")
1028
- return new v("Invalid " + j + " `" + F + "` of type `" + H + "` " + ("supplied to `" + _ + "`, expected `object`."));
1029
- for (var q in x) {
1030
- var N = x[q];
1024
+ function ge(w) {
1025
+ function y(k, F, E, D, P) {
1026
+ var T = k[F], z = Y(T);
1027
+ if (z !== "object")
1028
+ return new v("Invalid " + D + " `" + P + "` of type `" + z + "` " + ("supplied to `" + E + "`, expected `object`."));
1029
+ for (var G in w) {
1030
+ var N = w[G];
1031
1031
  if (typeof N != "function")
1032
- return le(_, j, F, q, J(N));
1033
- var ie = N(V, q, _, j, F + "." + q, t);
1032
+ return ue(E, D, P, G, ee(N));
1033
+ var ie = N(T, G, E, D, P + "." + G, t);
1034
1034
  if (ie)
1035
1035
  return ie;
1036
1036
  }
@@ -1038,22 +1038,22 @@ function Po() {
1038
1038
  }
1039
1039
  return R(y);
1040
1040
  }
1041
- function I(x) {
1042
- function y(k, P, _, j, F) {
1043
- var V = k[P], H = Q(V);
1044
- if (H !== "object")
1045
- return new v("Invalid " + j + " `" + F + "` of type `" + H + "` " + ("supplied to `" + _ + "`, expected `object`."));
1046
- var q = n({}, k[P], x);
1047
- for (var N in q) {
1048
- var ie = x[N];
1049
- if (i(x, N) && typeof ie != "function")
1050
- return le(_, j, F, N, J(ie));
1041
+ function I(w) {
1042
+ function y(k, F, E, D, P) {
1043
+ var T = k[F], z = Y(T);
1044
+ if (z !== "object")
1045
+ return new v("Invalid " + D + " `" + P + "` of type `" + z + "` " + ("supplied to `" + E + "`, expected `object`."));
1046
+ var G = n({}, k[F], w);
1047
+ for (var N in G) {
1048
+ var ie = w[N];
1049
+ if (i(w, N) && typeof ie != "function")
1050
+ return ue(E, D, P, N, ee(ie));
1051
1051
  if (!ie)
1052
1052
  return new v(
1053
- "Invalid " + j + " `" + F + "` key `" + N + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(k[P], null, " ") + `
1054
- Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1053
+ "Invalid " + D + " `" + P + "` key `" + N + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(k[F], null, " ") + `
1054
+ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1055
1055
  );
1056
- var b = ie(V, N, _, j, F + "." + N, t);
1056
+ var b = ie(T, N, E, D, P + "." + N, 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 R(y);
1063
1063
  }
1064
- function S(x) {
1065
- switch (typeof x) {
1064
+ function S(w) {
1065
+ switch (typeof w) {
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 !w;
1072
1072
  case "object":
1073
- if (Array.isArray(x))
1074
- return x.every(S);
1075
- if (x === null || l(x))
1073
+ if (Array.isArray(w))
1074
+ return w.every(S);
1075
+ if (w === null || l(w))
1076
1076
  return !0;
1077
- var y = f(x);
1077
+ var y = f(w);
1078
1078
  if (y) {
1079
- var k = y.call(x), P;
1080
- if (y !== x.entries) {
1081
- for (; !(P = k.next()).done; )
1082
- if (!S(P.value))
1079
+ var k = y.call(w), F;
1080
+ if (y !== w.entries) {
1081
+ for (; !(F = k.next()).done; )
1082
+ if (!S(F.value))
1083
1083
  return !1;
1084
1084
  } else
1085
- for (; !(P = k.next()).done; ) {
1086
- var _ = P.value;
1087
- if (_ && !S(_[1]))
1085
+ for (; !(F = k.next()).done; ) {
1086
+ var E = F.value;
1087
+ if (E && !S(E[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 L(x, y) {
1098
- return x === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
1097
+ function H(w, y) {
1098
+ return w === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
1099
1099
  }
1100
- function Q(x) {
1101
- var y = typeof x;
1102
- return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : L(y, x) ? "symbol" : y;
1100
+ function Y(w) {
1101
+ var y = typeof w;
1102
+ return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : H(y, w) ? "symbol" : y;
1103
1103
  }
1104
- function J(x) {
1105
- if (typeof x > "u" || x === null)
1106
- return "" + x;
1107
- var y = Q(x);
1104
+ function ee(w) {
1105
+ if (typeof w > "u" || w === null)
1106
+ return "" + w;
1107
+ var y = Y(w);
1108
1108
  if (y === "object") {
1109
- if (x instanceof Date)
1109
+ if (w instanceof Date)
1110
1110
  return "date";
1111
- if (x instanceof RegExp)
1111
+ if (w instanceof RegExp)
1112
1112
  return "regexp";
1113
1113
  }
1114
1114
  return y;
1115
1115
  }
1116
- function se(x) {
1117
- var y = J(x);
1116
+ function oe(w) {
1117
+ var y = ee(w);
1118
1118
  switch (y) {
1119
1119
  case "array":
1120
1120
  case "object":
@@ -1127,8 +1127,8 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1127
1127
  return y;
1128
1128
  }
1129
1129
  }
1130
- function te(x) {
1131
- return !x.constructor || !x.constructor.name ? g : x.constructor.name;
1130
+ function te(w) {
1131
+ return !w.constructor || !w.constructor.name ? g : w.constructor.name;
1132
1132
  }
1133
1133
  return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
1134
1134
  }, wt;
@@ -1192,7 +1192,7 @@ function Do() {
1192
1192
  return Ue.exports;
1193
1193
  }
1194
1194
  var $o = /* @__PURE__ */ Do();
1195
- const W = /* @__PURE__ */ Gt($o);
1195
+ const X = /* @__PURE__ */ Gt($o);
1196
1196
  function De(e, n, t, i) {
1197
1197
  function o(a) {
1198
1198
  return a instanceof t ? a : new t(function(r) {
@@ -2855,7 +2855,7 @@ function _n(e, n) {
2855
2855
  }
2856
2856
  return t;
2857
2857
  }
2858
- function Z(e) {
2858
+ function J(e) {
2859
2859
  for (var n = 1; n < arguments.length; n++) {
2860
2860
  var t = arguments[n] != null ? arguments[n] : {};
2861
2861
  n % 2 ? _n(Object(t), !0).forEach(function(i) {
@@ -2892,7 +2892,7 @@ var Wt = /* @__PURE__ */ Ci(function(e, n) {
2892
2892
  return {
2893
2893
  open: a
2894
2894
  };
2895
- }, [a]), /* @__PURE__ */ bi.createElement($n, null, t(Z(Z({}, r), {}, {
2895
+ }, [a]), /* @__PURE__ */ bi.createElement($n, null, t(J(J({}, r), {}, {
2896
2896
  open: a
2897
2897
  })));
2898
2898
  });
@@ -2930,7 +2930,7 @@ Wt.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: W.func,
2933
+ children: X.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 @@ Wt.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: W.objectOf(W.arrayOf(W.string)),
2941
+ accept: X.objectOf(X.arrayOf(X.string)),
2942
2942
  /**
2943
2943
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
2944
2944
  */
2945
- multiple: W.bool,
2945
+ multiple: X.bool,
2946
2946
  /**
2947
2947
  * If false, allow dropped items to take over the current browser window
2948
2948
  */
2949
- preventDropOnDocument: W.bool,
2949
+ preventDropOnDocument: X.bool,
2950
2950
  /**
2951
2951
  * If true, disables click to open the native file selection dialog
2952
2952
  */
2953
- noClick: W.bool,
2953
+ noClick: X.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: W.bool,
2958
+ noKeyboard: X.bool,
2959
2959
  /**
2960
2960
  * If true, disables drag 'n' drop
2961
2961
  */
2962
- noDrag: W.bool,
2962
+ noDrag: X.bool,
2963
2963
  /**
2964
2964
  * If true, stops drag event propagation to parents
2965
2965
  */
2966
- noDragEventsBubbling: W.bool,
2966
+ noDragEventsBubbling: X.bool,
2967
2967
  /**
2968
2968
  * Minimum file size (in bytes)
2969
2969
  */
2970
- minSize: W.number,
2970
+ minSize: X.number,
2971
2971
  /**
2972
2972
  * Maximum file size (in bytes)
2973
2973
  */
2974
- maxSize: W.number,
2974
+ maxSize: X.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: W.number,
2979
+ maxFiles: X.number,
2980
2980
  /**
2981
2981
  * Enable/disable the dropzone
2982
2982
  */
2983
- disabled: W.bool,
2983
+ disabled: X.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: W.func,
2989
+ getFilesFromEvent: X.func,
2990
2990
  /**
2991
2991
  * Cb for when closing the file dialog with no selection
2992
2992
  */
2993
- onFileDialogCancel: W.func,
2993
+ onFileDialogCancel: X.func,
2994
2994
  /**
2995
2995
  * Cb for when opening the file dialog
2996
2996
  */
2997
- onFileDialogOpen: W.func,
2997
+ onFileDialogOpen: X.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: W.bool,
3002
+ useFsAccessApi: X.bool,
3003
3003
  /**
3004
3004
  * Set to true to focus the root element on render
3005
3005
  */
3006
- autoFocus: W.bool,
3006
+ autoFocus: X.bool,
3007
3007
  /**
3008
3008
  * Cb for when the `dragenter` event occurs.
3009
3009
  *
3010
3010
  * @param {DragEvent} event
3011
3011
  */
3012
- onDragEnter: W.func,
3012
+ onDragEnter: X.func,
3013
3013
  /**
3014
3014
  * Cb for when the `dragleave` event occurs
3015
3015
  *
3016
3016
  * @param {DragEvent} event
3017
3017
  */
3018
- onDragLeave: W.func,
3018
+ onDragLeave: X.func,
3019
3019
  /**
3020
3020
  * Cb for when the `dragover` event occurs
3021
3021
  *
3022
3022
  * @param {DragEvent} event
3023
3023
  */
3024
- onDragOver: W.func,
3024
+ onDragOver: X.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 @@ Wt.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: W.func,
3055
+ onDrop: X.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 @@ Wt.propTypes = {
3060
3060
  * @param {File[]} files
3061
3061
  * @param {(DragEvent|Event)} event
3062
3062
  */
3063
- onDropAccepted: W.func,
3063
+ onDropAccepted: X.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 @@ Wt.propTypes = {
3068
3068
  * @param {FileRejection[]} fileRejections
3069
3069
  * @param {(DragEvent|Event)} event
3070
3070
  */
3071
- onDropRejected: W.func,
3071
+ onDropRejected: X.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: W.func,
3077
+ onError: X.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: W.func
3083
+ validator: X.func
3084
3084
  };
3085
3085
  var Ot = {
3086
3086
  isFocused: !1,
@@ -3092,186 +3092,186 @@ var Ot = {
3092
3092
  fileRejections: []
3093
3093
  };
3094
3094
  function ei() {
3095
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = Z(Z({}, Zn), 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, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, R = n.onFileDialogOpen, w = n.useFsAccessApi, D = n.autoFocus, E = n.preventDropOnDocument, M = n.noClick, h = n.noKeyboard, T = n.noDrag, z = n.noDragEventsBubbling, X = n.onError, ee = n.validator, pe = re(function() {
3095
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = J(J({}, Zn), 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, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, R = n.onFileDialogOpen, h = n.useFsAccessApi, M = n.autoFocus, _ = n.preventDropOnDocument, O = n.noClick, x = n.noKeyboard, V = n.noDrag, L = n.noDragEventsBubbling, B = n.onError, Z = n.validator, ce = le(function() {
3096
3096
  return da(t);
3097
- }, [t]), le = re(function() {
3097
+ }, [t]), ue = le(function() {
3098
3098
  return ua(t);
3099
- }, [t]), ve = re(function() {
3099
+ }, [t]), ge = le(function() {
3100
3100
  return typeof R == "function" ? R : Rn;
3101
- }, [R]), I = re(function() {
3101
+ }, [R]), I = le(function() {
3102
3102
  return typeof v == "function" ? v : Rn;
3103
- }, [v]), S = be(null), L = be(null), Q = Dn(ka, Ot), J = St(Q, 2), se = J[0], te = J[1], x = se.isFocused, y = se.isFileDialogActive, k = be(typeof window < "u" && window.isSecureContext && w && pa()), P = function() {
3103
+ }, [v]), S = be(null), H = be(null), Y = Dn(ka, Ot), ee = St(Y, 2), oe = ee[0], te = ee[1], w = oe.isFocused, y = oe.isFileDialogActive, k = be(typeof window < "u" && window.isSecureContext && h && pa()), F = function() {
3104
3104
  !k.current && y && setTimeout(function() {
3105
- if (L.current) {
3106
- var O = L.current.files;
3107
- O.length || (te({
3105
+ if (H.current) {
3106
+ var j = H.current.files;
3107
+ j.length || (te({
3108
3108
  type: "closeDialog"
3109
3109
  }), I());
3110
3110
  }
3111
3111
  }, 300);
3112
3112
  };
3113
3113
  Ee(function() {
3114
- return window.addEventListener("focus", P, !1), function() {
3115
- window.removeEventListener("focus", P, !1);
3114
+ return window.addEventListener("focus", F, !1), function() {
3115
+ window.removeEventListener("focus", F, !1);
3116
3116
  };
3117
- }, [L, y, I, k]);
3118
- var _ = be([]), j = function(O) {
3119
- S.current && S.current.contains(O.target) || (O.preventDefault(), _.current = []);
3117
+ }, [H, y, I, k]);
3118
+ var E = be([]), D = function(j) {
3119
+ S.current && S.current.contains(j.target) || (j.preventDefault(), E.current = []);
3120
3120
  };
3121
3121
  Ee(function() {
3122
- return E && (document.addEventListener("dragover", Cn, !1), document.addEventListener("drop", j, !1)), function() {
3123
- E && (document.removeEventListener("dragover", Cn), document.removeEventListener("drop", j));
3122
+ return _ && (document.addEventListener("dragover", Cn, !1), document.addEventListener("drop", D, !1)), function() {
3123
+ _ && (document.removeEventListener("dragover", Cn), document.removeEventListener("drop", D));
3124
3124
  };
3125
- }, [S, E]), Ee(function() {
3126
- return !i && D && S.current && S.current.focus(), function() {
3125
+ }, [S, _]), Ee(function() {
3126
+ return !i && M && S.current && S.current.focus(), function() {
3127
3127
  };
3128
- }, [S, D, i]);
3129
- var F = Y(function(C) {
3130
- X ? X(C) : console.error(C);
3131
- }, [X]), V = Y(function(C) {
3132
- C.preventDefault(), C.persist(), Ge(C), _.current = [].concat(wa(_.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(O) {
3133
- if (!(nt(C) && !z)) {
3134
- var ne = O.length, oe = ne > 0 && ra({
3135
- files: O,
3136
- accept: pe,
3128
+ }, [S, M, i]);
3129
+ var P = Q(function(C) {
3130
+ B ? B(C) : console.error(C);
3131
+ }, [B]), T = Q(function(C) {
3132
+ C.preventDefault(), C.persist(), Ge(C), E.current = [].concat(wa(E.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(j) {
3133
+ if (!(nt(C) && !L)) {
3134
+ var ne = j.length, ae = ne > 0 && ra({
3135
+ files: j,
3136
+ accept: ce,
3137
3137
  minSize: r,
3138
3138
  maxSize: a,
3139
3139
  multiple: l,
3140
3140
  maxFiles: s,
3141
- validator: ee
3142
- }), fe = ne > 0 && !oe;
3141
+ validator: Z
3142
+ }), me = ne > 0 && !ae;
3143
3143
  te({
3144
- isDragAccept: oe,
3145
- isDragReject: fe,
3144
+ isDragAccept: ae,
3145
+ isDragReject: me,
3146
3146
  isDragActive: !0,
3147
3147
  type: "setDraggedFiles"
3148
3148
  }), c && c(C);
3149
3149
  }
3150
- }).catch(function(O) {
3151
- return F(O);
3150
+ }).catch(function(j) {
3151
+ return P(j);
3152
3152
  });
3153
- }, [o, c, F, z, pe, r, a, l, s, ee]), H = Y(function(C) {
3153
+ }, [o, c, P, L, ce, r, a, l, s, Z]), z = Q(function(C) {
3154
3154
  C.preventDefault(), C.persist(), Ge(C);
3155
- var O = Ye(C);
3156
- if (O && C.dataTransfer)
3155
+ var j = Ye(C);
3156
+ if (j && C.dataTransfer)
3157
3157
  try {
3158
3158
  C.dataTransfer.dropEffect = "copy";
3159
3159
  } catch {
3160
3160
  }
3161
- return O && f && f(C), !1;
3162
- }, [f, z]), q = Y(function(C) {
3161
+ return j && f && f(C), !1;
3162
+ }, [f, L]), G = Q(function(C) {
3163
3163
  C.preventDefault(), C.persist(), Ge(C);
3164
- var O = _.current.filter(function(oe) {
3165
- return S.current && S.current.contains(oe);
3166
- }), ne = O.indexOf(C.target);
3167
- ne !== -1 && O.splice(ne, 1), _.current = O, !(O.length > 0) && (te({
3164
+ var j = E.current.filter(function(ae) {
3165
+ return S.current && S.current.contains(ae);
3166
+ }), ne = j.indexOf(C.target);
3167
+ ne !== -1 && j.splice(ne, 1), E.current = j, !(j.length > 0) && (te({
3168
3168
  type: "setDraggedFiles",
3169
3169
  isDragActive: !1,
3170
3170
  isDragAccept: !1,
3171
3171
  isDragReject: !1
3172
3172
  }), Ye(C) && d && d(C));
3173
- }, [S, d, z]), N = Y(function(C, O) {
3174
- var ne = [], oe = [];
3175
- C.forEach(function(fe) {
3176
- var ze = Wn(fe, pe), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Yn(fe, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = ee ? ee(fe) : null;
3173
+ }, [S, d, L]), N = Q(function(C, j) {
3174
+ var ne = [], ae = [];
3175
+ C.forEach(function(me) {
3176
+ var ze = Wn(me, ce), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Yn(me, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = Z ? Z(me) : null;
3177
3177
  if (lt && pt && !dt)
3178
- ne.push(fe);
3178
+ ne.push(me);
3179
3179
  else {
3180
3180
  var gt = [st, ut];
3181
- dt && (gt = gt.concat(dt)), oe.push({
3182
- file: fe,
3181
+ dt && (gt = gt.concat(dt)), ae.push({
3182
+ file: me,
3183
3183
  errors: gt.filter(function(yi) {
3184
3184
  return yi;
3185
3185
  })
3186
3186
  });
3187
3187
  }
3188
- }), (!l && ne.length > 1 || l && s >= 1 && ne.length > s) && (ne.forEach(function(fe) {
3189
- oe.push({
3190
- file: fe,
3188
+ }), (!l && ne.length > 1 || l && s >= 1 && ne.length > s) && (ne.forEach(function(me) {
3189
+ ae.push({
3190
+ file: me,
3191
3191
  errors: [aa]
3192
3192
  });
3193
3193
  }), ne.splice(0)), te({
3194
3194
  acceptedFiles: ne,
3195
- fileRejections: oe,
3196
- isDragReject: oe.length > 0,
3195
+ fileRejections: ae,
3196
+ isDragReject: ae.length > 0,
3197
3197
  type: "setFiles"
3198
- }), g && g(ne, oe, O), oe.length > 0 && m && m(oe, O), ne.length > 0 && u && u(ne, O);
3199
- }, [te, l, pe, r, a, s, g, u, m, ee]), ie = Y(function(C) {
3200
- C.preventDefault(), C.persist(), Ge(C), _.current = [], Ye(C) && Promise.resolve(o(C)).then(function(O) {
3201
- nt(C) && !z || N(O, C);
3202
- }).catch(function(O) {
3203
- return F(O);
3198
+ }), g && g(ne, ae, j), ae.length > 0 && m && m(ae, j), ne.length > 0 && u && u(ne, j);
3199
+ }, [te, l, ce, r, a, s, g, u, m, Z]), ie = Q(function(C) {
3200
+ C.preventDefault(), C.persist(), Ge(C), E.current = [], Ye(C) && Promise.resolve(o(C)).then(function(j) {
3201
+ nt(C) && !L || N(j, C);
3202
+ }).catch(function(j) {
3203
+ return P(j);
3204
3204
  }), te({
3205
3205
  type: "reset"
3206
3206
  });
3207
- }, [o, N, F, z]), b = Y(function() {
3207
+ }, [o, N, P, L]), b = Q(function() {
3208
3208
  if (k.current) {
3209
3209
  te({
3210
3210
  type: "openDialog"
3211
- }), ve();
3211
+ }), ge();
3212
3212
  var C = {
3213
3213
  multiple: l,
3214
- types: le
3214
+ types: ue
3215
3215
  };
3216
- window.showOpenFilePicker(C).then(function(O) {
3217
- return o(O);
3218
- }).then(function(O) {
3219
- N(O, null), te({
3216
+ window.showOpenFilePicker(C).then(function(j) {
3217
+ return o(j);
3218
+ }).then(function(j) {
3219
+ N(j, null), te({
3220
3220
  type: "closeDialog"
3221
3221
  });
3222
- }).catch(function(O) {
3223
- ga(O) ? (I(O), te({
3222
+ }).catch(function(j) {
3223
+ ga(j) ? (I(j), te({
3224
3224
  type: "closeDialog"
3225
- })) : fa(O) ? (k.current = !1, L.current ? (L.current.value = null, L.current.click()) : F(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."))) : F(O);
3225
+ })) : fa(j) ? (k.current = !1, H.current ? (H.current.value = null, H.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(j);
3226
3226
  });
3227
3227
  return;
3228
3228
  }
3229
- L.current && (te({
3229
+ H.current && (te({
3230
3230
  type: "openDialog"
3231
- }), ve(), L.current.value = null, L.current.click());
3232
- }, [te, ve, I, w, N, F, le, l]), ge = Y(function(C) {
3231
+ }), ge(), H.current.value = null, H.current.click());
3232
+ }, [te, ge, I, h, N, P, ue, l]), fe = Q(function(C) {
3233
3233
  !S.current || !S.current.isEqualNode(C.target) || (C.key === " " || C.key === "Enter" || C.keyCode === 32 || C.keyCode === 13) && (C.preventDefault(), b());
3234
- }, [S, b]), Fe = Y(function() {
3234
+ }, [S, b]), Fe = Q(function() {
3235
3235
  te({
3236
3236
  type: "focus"
3237
3237
  });
3238
- }, []), Te = Y(function() {
3238
+ }, []), Te = Q(function() {
3239
3239
  te({
3240
3240
  type: "blur"
3241
3241
  });
3242
- }, []), Jt = Y(function() {
3243
- M || (ca() ? setTimeout(b, 0) : b());
3244
- }, [M, b]), $e = function(O) {
3245
- return i ? null : O;
3246
- }, rt = function(O) {
3247
- return h ? null : $e(O);
3248
- }, qe = function(O) {
3249
- return T ? null : $e(O);
3250
- }, Ge = function(O) {
3251
- z && O.stopPropagation();
3252
- }, xi = re(function() {
3242
+ }, []), Jt = Q(function() {
3243
+ O || (ca() ? setTimeout(b, 0) : b());
3244
+ }, [O, b]), $e = function(j) {
3245
+ return i ? null : j;
3246
+ }, rt = function(j) {
3247
+ return x ? null : $e(j);
3248
+ }, qe = function(j) {
3249
+ return V ? null : $e(j);
3250
+ }, Ge = function(j) {
3251
+ L && j.stopPropagation();
3252
+ }, xi = le(function() {
3253
3253
  return function() {
3254
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = C.refKey, ne = O === void 0 ? "ref" : O, oe = C.role, fe = C.onKeyDown, ze = C.onFocus, Ae = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, xa);
3255
- return Z(Z(Mt({
3256
- onKeyDown: rt(ye(fe, ge)),
3254
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = C.refKey, ne = j === void 0 ? "ref" : j, ae = C.role, me = C.onKeyDown, ze = C.onFocus, Ae = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, xa);
3255
+ return J(J(Mt({
3256
+ onKeyDown: rt(ye(me, fe)),
3257
3257
  onFocus: rt(ye(ze, Fe)),
3258
3258
  onBlur: rt(ye(Ae, Te)),
3259
3259
  onClick: $e(ye(lt, Jt)),
3260
- onDragEnter: qe(ye(st, V)),
3261
- onDragOver: qe(ye(ct, H)),
3262
- onDragLeave: qe(ye(Be, q)),
3260
+ onDragEnter: qe(ye(st, T)),
3261
+ onDragOver: qe(ye(ct, z)),
3262
+ onDragLeave: qe(ye(Be, G)),
3263
3263
  onDrop: qe(ye(pt, ie)),
3264
- role: typeof oe == "string" && oe !== "" ? oe : "presentation"
3265
- }, ne, S), !i && !h ? {
3264
+ role: typeof ae == "string" && ae !== "" ? ae : "presentation"
3265
+ }, ne, S), !i && !x ? {
3266
3266
  tabIndex: 0
3267
3267
  } : {}), ut);
3268
3268
  };
3269
- }, [S, ge, Fe, Te, Jt, V, H, q, ie, h, T, i]), hi = Y(function(C) {
3269
+ }, [S, fe, Fe, Te, Jt, T, z, G, ie, x, V, i]), hi = Q(function(C) {
3270
3270
  C.stopPropagation();
3271
- }, []), wi = re(function() {
3271
+ }, []), wi = le(function() {
3272
3272
  return function() {
3273
- var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = C.refKey, ne = O === void 0 ? "ref" : O, oe = C.onChange, fe = C.onClick, ze = it(C, ha), Ae = Mt({
3274
- accept: pe,
3273
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = C.refKey, ne = j === void 0 ? "ref" : j, ae = C.onChange, me = C.onClick, ze = it(C, ha), Ae = Mt({
3274
+ accept: ce,
3275
3275
  multiple: l,
3276
3276
  type: "file",
3277
3277
  style: {
@@ -3286,54 +3286,54 @@ function ei() {
3286
3286
  width: "1px",
3287
3287
  whiteSpace: "nowrap"
3288
3288
  },
3289
- onChange: $e(ye(oe, ie)),
3290
- onClick: $e(ye(fe, hi)),
3289
+ onChange: $e(ye(ae, ie)),
3290
+ onClick: $e(ye(me, hi)),
3291
3291
  tabIndex: -1
3292
- }, ne, L);
3293
- return Z(Z({}, Ae), ze);
3292
+ }, ne, H);
3293
+ return J(J({}, Ae), ze);
3294
3294
  };
3295
- }, [L, t, l, ie, i]);
3296
- return Z(Z({}, se), {}, {
3297
- isFocused: x && !i,
3295
+ }, [H, t, l, ie, i]);
3296
+ return J(J({}, oe), {}, {
3297
+ isFocused: w && !i,
3298
3298
  getRootProps: xi,
3299
3299
  getInputProps: wi,
3300
3300
  rootRef: S,
3301
- inputRef: L,
3301
+ inputRef: H,
3302
3302
  open: $e(b)
3303
3303
  });
3304
3304
  }
3305
3305
  function ka(e, n) {
3306
3306
  switch (n.type) {
3307
3307
  case "focus":
3308
- return Z(Z({}, e), {}, {
3308
+ return J(J({}, e), {}, {
3309
3309
  isFocused: !0
3310
3310
  });
3311
3311
  case "blur":
3312
- return Z(Z({}, e), {}, {
3312
+ return J(J({}, e), {}, {
3313
3313
  isFocused: !1
3314
3314
  });
3315
3315
  case "openDialog":
3316
- return Z(Z({}, Ot), {}, {
3316
+ return J(J({}, Ot), {}, {
3317
3317
  isFileDialogActive: !0
3318
3318
  });
3319
3319
  case "closeDialog":
3320
- return Z(Z({}, e), {}, {
3320
+ return J(J({}, e), {}, {
3321
3321
  isFileDialogActive: !1
3322
3322
  });
3323
3323
  case "setDraggedFiles":
3324
- return Z(Z({}, e), {}, {
3324
+ return J(J({}, e), {}, {
3325
3325
  isDragActive: n.isDragActive,
3326
3326
  isDragAccept: n.isDragAccept,
3327
3327
  isDragReject: n.isDragReject
3328
3328
  });
3329
3329
  case "setFiles":
3330
- return Z(Z({}, e), {}, {
3330
+ return J(J({}, e), {}, {
3331
3331
  acceptedFiles: n.acceptedFiles,
3332
3332
  fileRejections: n.fileRejections,
3333
3333
  isDragReject: n.isDragReject
3334
3334
  });
3335
3335
  case "reset":
3336
- return Z({}, Ot);
3336
+ return J({}, Ot);
3337
3337
  default:
3338
3338
  return e;
3339
3339
  }
@@ -3375,7 +3375,7 @@ const Fa = () => {
3375
3375
  acceptedFiles: [],
3376
3376
  fileRejections: []
3377
3377
  }
3378
- ), o = Y(
3378
+ ), o = Q(
3379
3379
  (l, s) => i({
3380
3380
  type: "add-files",
3381
3381
  payload: { acceptedFiles: l, fileRejections: s }
@@ -3402,16 +3402,16 @@ const Fa = () => {
3402
3402
  maxSize: r,
3403
3403
  onDrop: l
3404
3404
  }), g = et();
3405
- return /* @__PURE__ */ B(
3405
+ return /* @__PURE__ */ U(
3406
3406
  "div",
3407
3407
  {
3408
- className: G("p-form__group p-form-validation", {
3408
+ className: q("p-form__group p-form-validation", {
3409
3409
  "is-error": !!n
3410
3410
  }),
3411
3411
  children: [
3412
3412
  o && /* @__PURE__ */ p(Ii, { id: g, children: o }),
3413
3413
  i && /* @__PURE__ */ p("p", { className: "p-form-help-text", children: i }),
3414
- /* @__PURE__ */ B("div", { className: "p-form__control", children: [
3414
+ /* @__PURE__ */ U("div", { className: "p-form__control", children: [
3415
3415
  !a || t.length < a ? /* @__PURE__ */ p("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ p(
3416
3416
  "div",
3417
3417
  {
@@ -3422,13 +3422,13 @@ const Fa = () => {
3422
3422
  children: /* @__PURE__ */ p("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__ */ B("p", { className: "p-form-validation__message", children: [
3425
+ n ? /* @__PURE__ */ U("p", { className: "p-form-validation__message", children: [
3426
3426
  /* @__PURE__ */ p("strong", { children: "Error: " }),
3427
3427
  n
3428
3428
  ] }) : null,
3429
- /* @__PURE__ */ B("div", { className: "file-upload__files-list", children: [
3430
- s && s.map((u) => /* @__PURE__ */ B("span", { className: "is-error", children: [
3431
- /* @__PURE__ */ B("div", { className: "file-upload__file is-rejected", children: [
3429
+ /* @__PURE__ */ U("div", { className: "file-upload__files-list", children: [
3430
+ s && s.map((u) => /* @__PURE__ */ U("span", { className: "is-error", children: [
3431
+ /* @__PURE__ */ U("div", { className: "file-upload__file is-rejected", children: [
3432
3432
  u.file.name,
3433
3433
  /* @__PURE__ */ p(
3434
3434
  Se,
@@ -3450,7 +3450,7 @@ const Fa = () => {
3450
3450
  `${u.file.name}-${m.code}`
3451
3451
  ))
3452
3452
  ] }, u.file.name)),
3453
- t && t.map((u) => /* @__PURE__ */ B("div", { className: "file-upload__file", children: [
3453
+ t && t.map((u) => /* @__PURE__ */ U("div", { className: "file-upload__file", children: [
3454
3454
  u.name,
3455
3455
  u.percentUploaded !== void 0 ? /* @__PURE__ */ p(Hi, { percentComplete: u.percentUploaded }) : /* @__PURE__ */ p(
3456
3456
  Se,
@@ -3524,42 +3524,42 @@ const Fa = () => {
3524
3524
  groupFn: s = Da,
3525
3525
  ...c
3526
3526
  }) => {
3527
- const d = re(
3528
- () => new Set(n.map((w) => w.value)),
3527
+ const d = le(
3528
+ () => new Set(n.map((h) => h.value)),
3529
3529
  [n]
3530
- ), f = re(
3531
- () => new Set(t.map((w) => w.value)),
3530
+ ), f = le(
3531
+ () => new Set(t.map((h) => h.value)),
3532
3532
  [t]
3533
3533
  ), [g, u] = de(new Set(d));
3534
3534
  Ee(() => {
3535
3535
  a && u(new Set(d));
3536
3536
  }, [a]);
3537
- const m = re(() => e.some((w) => w.group), [e]), v = re(
3537
+ const m = le(() => e.some((h) => h.group), [e]), v = le(
3538
3538
  () => m ? s(e) : [{ group: "Ungrouped", items: e }],
3539
3539
  [e, s]
3540
- ), R = (w) => {
3541
- const { checked: D, value: E } = w.target, M = e.find((h) => `${h.value}` === E);
3542
- if (M) {
3543
- const h = D ? [...n, M] : n.filter((T) => `${T.value}` !== E) ?? [];
3544
- o(h);
3540
+ ), R = (h) => {
3541
+ const { checked: M, value: _ } = h.target, O = e.find((x) => `${x.value}` === _);
3542
+ if (O) {
3543
+ const x = M ? [...n, O] : n.filter((V) => `${V.value}` !== _) ?? [];
3544
+ o(x);
3545
3545
  }
3546
3546
  };
3547
- return /* @__PURE__ */ p(Ln, { isVisible: a, className: "put-above", children: /* @__PURE__ */ B("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3547
+ return /* @__PURE__ */ p(Ln, { isVisible: a, className: "put-above", children: /* @__PURE__ */ U("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3548
3548
  i || null,
3549
- v.map(({ group: w, items: D }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
3550
- m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children: w }) : null,
3551
- /* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": w, children: D.sort(l).sort(Ia(g)).map((E) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
3549
+ v.map(({ group: h, items: M }) => /* @__PURE__ */ U("div", { className: "multi-select__group", children: [
3550
+ m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children: h }) : null,
3551
+ /* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: M.sort(l).sort(Ia(g)).map((_) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
3552
3552
  Di,
3553
3553
  {
3554
- disabled: f.has(E.value),
3555
- label: E.label,
3556
- checked: d.has(E.value),
3557
- value: E.value,
3554
+ disabled: f.has(_.value),
3555
+ label: _.label,
3556
+ checked: d.has(_.value),
3557
+ value: _.value,
3558
3558
  onChange: R
3559
3559
  },
3560
- E.value
3561
- ) }, E.value)) })
3562
- ] }, w)),
3560
+ _.value
3561
+ ) }, _.value)) })
3562
+ ] }, h)),
3563
3563
  r ? /* @__PURE__ */ p("div", { className: "multi-select__footer", children: r }) : null
3564
3564
  ] }) });
3565
3565
  }, Kr = ({
@@ -3585,26 +3585,26 @@ const Fa = () => {
3585
3585
  Ee(() => {
3586
3586
  g || v("");
3587
3587
  }, [g]);
3588
- const [R, w] = de([]), D = n || R, E = (z) => {
3589
- const X = Array.from(new Set(z));
3590
- w(X), i && i(X);
3591
- }, M = et(), h = et(), T = D.filter(
3592
- (z) => r.some((X) => X.value === z.value)
3593
- ).sort(ti).map((z) => z.label).join(", ");
3594
- return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ B("div", { className: "multi-select", children: [
3588
+ const [R, h] = de([]), M = n || R, _ = (L) => {
3589
+ const B = Array.from(new Set(L));
3590
+ h(B), i && i(B);
3591
+ }, O = et(), x = et(), V = M.filter(
3592
+ (L) => r.some((B) => B.value === L.value)
3593
+ ).sort(ti).map((L) => L.label).join(", ");
3594
+ return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ U("div", { className: "multi-select", children: [
3595
3595
  d === "search" ? /* @__PURE__ */ p(
3596
3596
  On,
3597
3597
  {
3598
3598
  externallyControlled: !0,
3599
- "aria-controls": M,
3599
+ "aria-controls": O,
3600
3600
  "aria-expanded": g,
3601
- id: h,
3601
+ id: x,
3602
3602
  role: "combobox",
3603
3603
  "aria-label": t || o || "Search",
3604
3604
  disabled: e,
3605
3605
  autoComplete: "off",
3606
- onChange: (z) => {
3607
- v(z), u(!0);
3606
+ onChange: (L) => {
3607
+ v(L), u(!0);
3608
3608
  },
3609
3609
  onFocus: () => u(!0),
3610
3610
  placeholder: o ?? "Search",
@@ -3619,39 +3619,39 @@ const Fa = () => {
3619
3619
  role: "combobox",
3620
3620
  type: "button",
3621
3621
  "aria-label": t || o || "Select items",
3622
- "aria-controls": M,
3622
+ "aria-controls": O,
3623
3623
  "aria-expanded": g,
3624
3624
  className: "multi-select__select-button",
3625
3625
  onClick: () => {
3626
- u((z) => !z);
3626
+ u((L) => !L);
3627
3627
  },
3628
- children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: D.length > 0 ? T : o ?? "Select items" })
3628
+ children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: M.length > 0 ? V : o ?? "Select items" })
3629
3629
  }
3630
3630
  ),
3631
3631
  /* @__PURE__ */ p(
3632
3632
  $a,
3633
3633
  {
3634
- id: M,
3634
+ id: O,
3635
3635
  isOpen: g,
3636
3636
  items: m.length > 0 ? r.filter(
3637
- (z) => z.label.toLowerCase().includes(m.toLowerCase())
3637
+ (L) => L.label.toLowerCase().includes(m.toLowerCase())
3638
3638
  ) : r,
3639
- selectedItems: D,
3639
+ selectedItems: M,
3640
3640
  disabledItems: l,
3641
3641
  header: s,
3642
- updateItems: E,
3643
- footer: c || /* @__PURE__ */ B(we, { children: [
3642
+ updateItems: _,
3643
+ footer: c || /* @__PURE__ */ U(we, { children: [
3644
3644
  /* @__PURE__ */ p(
3645
3645
  Se,
3646
3646
  {
3647
3647
  appearance: "link",
3648
3648
  onClick: () => {
3649
- const z = r.filter(
3650
- (X) => !l.some(
3651
- (ee) => ee.value === X.value
3649
+ const L = r.filter(
3650
+ (B) => !l.some(
3651
+ (Z) => Z.value === B.value
3652
3652
  )
3653
3653
  );
3654
- E([...D, ...z]);
3654
+ _([...M, ...L]);
3655
3655
  },
3656
3656
  type: "button",
3657
3657
  children: "Select all"
@@ -3662,12 +3662,12 @@ const Fa = () => {
3662
3662
  {
3663
3663
  appearance: "link",
3664
3664
  onClick: () => {
3665
- const z = D.filter(
3666
- (X) => l.some(
3667
- (ee) => ee.value === X.value
3665
+ const L = M.filter(
3666
+ (B) => l.some(
3667
+ (Z) => Z.value === B.value
3668
3668
  )
3669
3669
  );
3670
- E(z);
3670
+ _(L);
3671
3671
  },
3672
3672
  type: "button",
3673
3673
  children: "Clear"
@@ -3689,7 +3689,7 @@ const Fa = () => {
3689
3689
  "table",
3690
3690
  {
3691
3691
  ...i,
3692
- className: G("p-table-dynamic", e, {
3692
+ className: q("p-table-dynamic", e, {
3693
3693
  "is-full-height": t === "full-height"
3694
3694
  }),
3695
3695
  children: n
@@ -3697,7 +3697,7 @@ const Fa = () => {
3697
3697
  ) }), Ma = ({ columns: e }) => /* @__PURE__ */ p(we, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ p("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ p(
3698
3698
  "td",
3699
3699
  {
3700
- className: G(i.id, "u-text-overflow-clip"),
3700
+ className: q(i.id, "u-text-overflow-clip"),
3701
3701
  children: /* @__PURE__ */ p(qi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
3702
3702
  },
3703
3703
  o
@@ -3706,7 +3706,7 @@ const Fa = () => {
3706
3706
  table: n
3707
3707
  }) => {
3708
3708
  const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
3709
- return /* @__PURE__ */ B(we, { children: [
3709
+ return /* @__PURE__ */ U(we, { children: [
3710
3710
  /* @__PURE__ */ p("caption", { className: "u-visually-hidden", children: "Loading..." }),
3711
3711
  /* @__PURE__ */ p(oi, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(Ma, { columns: t }) })
3712
3712
  ] });
@@ -3716,7 +3716,7 @@ const Fa = () => {
3716
3716
  style: t,
3717
3717
  ...i
3718
3718
  }) => {
3719
- const { variant: o } = Ht(ni), a = be(null), [r, l] = de(null), s = Y(() => {
3719
+ const { variant: o } = Ht(ni), a = be(null), [r, l] = de(null), s = Q(() => {
3720
3720
  var d, f;
3721
3721
  if (window.innerWidth > Aa.small) {
3722
3722
  const g = (f = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : f.call(d).top;
@@ -3727,7 +3727,7 @@ const Fa = () => {
3727
3727
  An(() => {
3728
3728
  s();
3729
3729
  }, [s]), Ee(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
3730
- const c = re(() => o === "full-height" && r ? {
3730
+ const c = le(() => 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 @@ ai.Description = Ta;
3761
3761
  function Re(e, n) {
3762
3762
  return typeof e == "function" ? e(n) : e;
3763
3763
  }
3764
- function me(e, n) {
3764
+ function ve(e, n) {
3765
3765
  return (t) => {
3766
3766
  n.setState((i) => ({
3767
3767
  ...i,
@@ -3882,7 +3882,7 @@ function Na(e, n, t, i) {
3882
3882
  g.createColumn == null || g.createColumn(f, e);
3883
3883
  return f;
3884
3884
  }
3885
- const ce = "debugHeaders";
3885
+ const se = "debugHeaders";
3886
3886
  function En(e, n, t) {
3887
3887
  var i;
3888
3888
  let a = {
@@ -3918,27 +3918,27 @@ const La = {
3918
3918
  var a, r;
3919
3919
  const l = (a = i == null ? void 0 : i.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? a : [], s = (r = o == null ? void 0 : o.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? r : [], c = t.filter((f) => !(i != null && i.includes(f.id)) && !(o != null && o.includes(f.id)));
3920
3920
  return Xe(n, [...l, ...c, ...s], e);
3921
- }, A(e.options, ce, "getHeaderGroups")), e.getCenterHeaderGroups = $(() => [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))), Xe(n, t, e, "center")), A(e.options, ce, "getCenterHeaderGroups")), e.getLeftHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
3921
+ }, A(e.options, se, "getHeaderGroups")), e.getCenterHeaderGroups = $(() => [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))), Xe(n, t, e, "center")), A(e.options, se, "getCenterHeaderGroups")), e.getLeftHeaderGroups = $(() => [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 Xe(n, a, e, "left");
3925
- }, A(e.options, ce, "getLeftHeaderGroups")), e.getRightHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
3925
+ }, A(e.options, se, "getLeftHeaderGroups")), e.getRightHeaderGroups = $(() => [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 Xe(n, a, e, "right");
3929
- }, A(e.options, ce, "getRightHeaderGroups")), e.getFooterGroups = $(() => [e.getHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getFooterGroups")), e.getLeftFooterGroups = $(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getLeftFooterGroups")), e.getCenterFooterGroups = $(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getCenterFooterGroups")), e.getRightFooterGroups = $(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getRightFooterGroups")), e.getFlatHeaders = $(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getFlatHeaders")), e.getLeftFlatHeaders = $(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getLeftFlatHeaders")), e.getCenterFlatHeaders = $(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getCenterFlatHeaders")), e.getRightFlatHeaders = $(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getRightFlatHeaders")), e.getCenterLeafHeaders = $(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
3929
+ }, A(e.options, se, "getRightHeaderGroups")), e.getFooterGroups = $(() => [e.getHeaderGroups()], (n) => [...n].reverse(), A(e.options, se, "getFooterGroups")), e.getLeftFooterGroups = $(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), A(e.options, se, "getLeftFooterGroups")), e.getCenterFooterGroups = $(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), A(e.options, se, "getCenterFooterGroups")), e.getRightFooterGroups = $(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), A(e.options, se, "getRightFooterGroups")), e.getFlatHeaders = $(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, se, "getFlatHeaders")), e.getLeftFlatHeaders = $(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, se, "getLeftFlatHeaders")), e.getCenterFlatHeaders = $(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, se, "getCenterFlatHeaders")), e.getRightFlatHeaders = $(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, se, "getRightFlatHeaders")), e.getCenterLeafHeaders = $(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
3930
3930
  var i;
3931
3931
  return !((i = t.subHeaders) != null && i.length);
3932
- }), A(e.options, ce, "getCenterLeafHeaders")), e.getLeftLeafHeaders = $(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
3932
+ }), A(e.options, se, "getCenterLeafHeaders")), e.getLeftLeafHeaders = $(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
3933
3933
  var i;
3934
3934
  return !((i = t.subHeaders) != null && i.length);
3935
- }), A(e.options, ce, "getLeftLeafHeaders")), e.getRightLeafHeaders = $(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
3935
+ }), A(e.options, se, "getLeftLeafHeaders")), e.getRightLeafHeaders = $(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
3936
3936
  var i;
3937
3937
  return !((i = t.subHeaders) != null && i.length);
3938
- }), A(e.options, ce, "getRightLeafHeaders")), e.getLeafHeaders = $(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
3938
+ }), A(e.options, se, "getRightLeafHeaders")), e.getLeafHeaders = $(() => [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
- }, A(e.options, ce, "getLeafHeaders"));
3941
+ }, A(e.options, se, "getLeafHeaders"));
3942
3942
  }
3943
3943
  };
3944
3944
  function Xe(e, n, t, i) {
@@ -3959,19 +3959,19 @@ function Xe(e, n, t, i) {
3959
3959
  headers: []
3960
3960
  }, v = [];
3961
3961
  g.forEach((R) => {
3962
- const w = [...v].reverse()[0], D = R.column.depth === m.depth;
3963
- let E, M = !1;
3964
- if (D && R.column.parent ? E = R.column.parent : (E = R.column, M = !0), w && (w == null ? void 0 : w.column) === E)
3965
- w.subHeaders.push(R);
3962
+ const h = [...v].reverse()[0], M = R.column.depth === m.depth;
3963
+ let _, O = !1;
3964
+ if (M && R.column.parent ? _ = R.column.parent : (_ = R.column, O = !0), h && (h == null ? void 0 : h.column) === _)
3965
+ h.subHeaders.push(R);
3966
3966
  else {
3967
- const h = En(t, E, {
3968
- id: [i, u, E.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
3969
- isPlaceholder: M,
3970
- placeholderId: M ? `${v.filter((T) => T.column === E).length}` : void 0,
3967
+ const x = En(t, _, {
3968
+ id: [i, u, _.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
3969
+ isPlaceholder: O,
3970
+ placeholderId: O ? `${v.filter((V) => V.column === _).length}` : void 0,
3971
3971
  depth: u,
3972
3972
  index: v.length
3973
3973
  });
3974
- h.subHeaders.push(R), v.push(h);
3974
+ x.subHeaders.push(R), v.push(x);
3975
3975
  }
3976
3976
  m.headers.push(R), R.headerGroup = m;
3977
3977
  }), s.push(m), u > 0 && c(v, u - 1);
@@ -3981,16 +3981,16 @@ function Xe(e, n, t, i) {
3981
3981
  }));
3982
3982
  c(d, r - 1), s.reverse();
3983
3983
  const f = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
3984
- let v = 0, R = 0, w = [0];
3985
- m.subHeaders && m.subHeaders.length ? (w = [], f(m.subHeaders).forEach((E) => {
3984
+ let v = 0, R = 0, h = [0];
3985
+ m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((_) => {
3986
3986
  let {
3987
- colSpan: M,
3988
- rowSpan: h
3989
- } = E;
3990
- v += M, w.push(h);
3987
+ colSpan: O,
3988
+ rowSpan: x
3989
+ } = _;
3990
+ v += O, h.push(x);
3991
3991
  })) : v = 1;
3992
- const D = Math.min(...w);
3993
- return R = R + D, m.colSpan = v, m.rowSpan = R, {
3992
+ const M = Math.min(...h);
3993
+ return R = R + M, m.colSpan = v, m.rowSpan = R, {
3994
3994
  colSpan: v,
3995
3995
  rowSpan: R
3996
3996
  };
@@ -4123,7 +4123,7 @@ const qa = {
4123
4123
  ...e
4124
4124
  }),
4125
4125
  getDefaultOptions: (e) => ({
4126
- onColumnFiltersChange: me("columnFilters", e),
4126
+ onColumnFiltersChange: ve("columnFilters", e),
4127
4127
  filterFromLeafRows: !1,
4128
4128
  maxLeafRowFilterDepth: 100
4129
4129
  }),
@@ -4252,7 +4252,7 @@ const Ga = (e, n, t) => t.reduce((i, o) => {
4252
4252
  ...e
4253
4253
  }),
4254
4254
  getDefaultOptions: (e) => ({
4255
- onGroupingChange: me("grouping", e),
4255
+ onGroupingChange: ve("grouping", e),
4256
4256
  groupedColumnMode: "reorder"
4257
4257
  }),
4258
4258
  createColumn: (e, n) => {
@@ -4318,7 +4318,7 @@ const tr = {
4318
4318
  ...e
4319
4319
  }),
4320
4320
  getDefaultOptions: (e) => ({
4321
- onColumnOrderChange: me("columnOrder", e)
4321
+ onColumnOrderChange: ve("columnOrder", e)
4322
4322
  }),
4323
4323
  createColumn: (e, n) => {
4324
4324
  e.getIndex = $((t) => [Ne(n, t)], (t) => t.findIndex((i) => i.id === e.id), A(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
@@ -4358,7 +4358,7 @@ const tr = {
4358
4358
  ...e
4359
4359
  }),
4360
4360
  getDefaultOptions: (e) => ({
4361
- onColumnPinningChange: me("columnPinning", e)
4361
+ onColumnPinningChange: ve("columnPinning", e)
4362
4362
  }),
4363
4363
  createColumn: (e, n) => {
4364
4364
  e.pin = (t) => {
@@ -4449,8 +4449,8 @@ const tr = {
4449
4449
  getDefaultOptions: (e) => ({
4450
4450
  columnResizeMode: "onEnd",
4451
4451
  columnResizeDirection: "ltr",
4452
- onColumnSizingChange: me("columnSizing", e),
4453
- onColumnSizingInfoChange: me("columnSizingInfo", e)
4452
+ onColumnSizingChange: ve("columnSizing", e),
4453
+ onColumnSizingInfoChange: ve("columnSizingInfo", e)
4454
4454
  }),
4455
4455
  createColumn: (e, n) => {
4456
4456
  e.getSize = () => {
@@ -4493,25 +4493,25 @@ const tr = {
4493
4493
  return (a) => {
4494
4494
  if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
4495
4495
  return;
4496
- const r = e.getSize(), l = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (w, D) => {
4497
- typeof D == "number" && (n.setColumnSizingInfo((E) => {
4498
- var M, h;
4499
- const T = n.options.columnResizeDirection === "rtl" ? -1 : 1, z = (D - ((M = E == null ? void 0 : E.startOffset) != null ? M : 0)) * T, X = Math.max(z / ((h = E == null ? void 0 : E.startSize) != null ? h : 0), -0.999999);
4500
- return E.columnSizingStart.forEach((ee) => {
4501
- let [pe, le] = ee;
4502
- c[pe] = Math.round(Math.max(le + le * X, 0) * 100) / 100;
4496
+ const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h, M) => {
4497
+ typeof M == "number" && (n.setColumnSizingInfo((_) => {
4498
+ var O, x;
4499
+ const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, L = (M - ((O = _ == null ? void 0 : _.startOffset) != null ? O : 0)) * V, B = Math.max(L / ((x = _ == null ? void 0 : _.startSize) != null ? x : 0), -0.999999);
4500
+ return _.columnSizingStart.forEach((Z) => {
4501
+ let [ce, ue] = Z;
4502
+ c[ce] = Math.round(Math.max(ue + ue * B, 0) * 100) / 100;
4503
4503
  }), {
4504
- ...E,
4505
- deltaOffset: z,
4506
- deltaPercentage: X
4504
+ ..._,
4505
+ deltaOffset: L,
4506
+ deltaPercentage: B
4507
4507
  };
4508
- }), (n.options.columnResizeMode === "onChange" || w === "end") && n.setColumnSizing((E) => ({
4509
- ...E,
4508
+ }), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((_) => ({
4509
+ ..._,
4510
4510
  ...c
4511
4511
  })));
4512
- }, f = (w) => d("move", w), g = (w) => {
4513
- d("end", w), n.setColumnSizingInfo((D) => ({
4514
- ...D,
4512
+ }, f = (h) => d("move", h), g = (h) => {
4513
+ d("end", h), n.setColumnSizingInfo((M) => ({
4514
+ ...M,
4515
4515
  isResizingColumn: !1,
4516
4516
  startOffset: null,
4517
4517
  startSize: null,
@@ -4520,21 +4520,21 @@ const tr = {
4520
4520
  columnSizingStart: []
4521
4521
  }));
4522
4522
  }, u = t || typeof document < "u" ? document : null, m = {
4523
- moveHandler: (w) => f(w.clientX),
4524
- upHandler: (w) => {
4525
- u == null || u.removeEventListener("mousemove", m.moveHandler), u == null || u.removeEventListener("mouseup", m.upHandler), g(w.clientX);
4523
+ moveHandler: (h) => f(h.clientX),
4524
+ upHandler: (h) => {
4525
+ u == null || u.removeEventListener("mousemove", m.moveHandler), u == null || u.removeEventListener("mouseup", m.upHandler), g(h.clientX);
4526
4526
  }
4527
4527
  }, v = {
4528
- moveHandler: (w) => (w.cancelable && (w.preventDefault(), w.stopPropagation()), f(w.touches[0].clientX), !1),
4529
- upHandler: (w) => {
4530
- var D;
4531
- u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), w.cancelable && (w.preventDefault(), w.stopPropagation()), g((D = w.touches[0]) == null ? void 0 : D.clientX);
4528
+ moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
4529
+ upHandler: (h) => {
4530
+ var M;
4531
+ u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((M = h.touches[0]) == null ? void 0 : M.clientX);
4532
4532
  }
4533
4533
  }, R = or() ? {
4534
4534
  passive: !1
4535
4535
  } : !1;
4536
- Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, R), u == null || u.addEventListener("touchend", v.upHandler, R)) : (u == null || u.addEventListener("mousemove", m.moveHandler, R), u == null || u.addEventListener("mouseup", m.upHandler, R)), n.setColumnSizingInfo((w) => ({
4537
- ...w,
4536
+ Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, R), u == null || u.addEventListener("touchend", v.upHandler, R)) : (u == null || u.addEventListener("mousemove", m.moveHandler, R), u == null || u.addEventListener("mouseup", m.upHandler, R)), n.setColumnSizingInfo((h) => ({
4537
+ ...h,
4538
4538
  startOffset: s,
4539
4539
  startSize: r,
4540
4540
  deltaOffset: 0,
@@ -4593,7 +4593,7 @@ const ar = {
4593
4593
  ...e
4594
4594
  }),
4595
4595
  getDefaultOptions: (e) => ({
4596
- onColumnVisibilityChange: me("columnVisibility", e)
4596
+ onColumnVisibilityChange: ve("columnVisibility", e)
4597
4597
  }),
4598
4598
  createColumn: (e, n) => {
4599
4599
  e.toggleVisibility = (t) => {
@@ -4648,7 +4648,7 @@ const rr = {
4648
4648
  ...e
4649
4649
  }),
4650
4650
  getDefaultOptions: (e) => ({
4651
- onGlobalFilterChange: me("globalFilter", e),
4651
+ onGlobalFilterChange: ve("globalFilter", e),
4652
4652
  globalFilterFn: "auto",
4653
4653
  getColumnCanGlobalFilter: (n) => {
4654
4654
  var t;
@@ -4681,7 +4681,7 @@ const rr = {
4681
4681
  ...e
4682
4682
  }),
4683
4683
  getDefaultOptions: (e) => ({
4684
- onExpandedChange: me("expanded", e),
4684
+ onExpandedChange: ve("expanded", e),
4685
4685
  paginateExpandedRows: !0
4686
4686
  }),
4687
4687
  createTable: (e) => {
@@ -4774,7 +4774,7 @@ const rr = {
4774
4774
  }
4775
4775
  }),
4776
4776
  getDefaultOptions: (e) => ({
4777
- onPaginationChange: me("pagination", e)
4777
+ onPaginationChange: ve("pagination", e)
4778
4778
  }),
4779
4779
  createTable: (e) => {
4780
4780
  let n = !1, t = !1;
@@ -4854,7 +4854,7 @@ const rr = {
4854
4854
  ...e
4855
4855
  }),
4856
4856
  getDefaultOptions: (e) => ({
4857
- onRowPinningChange: me("rowPinning", e)
4857
+ onRowPinningChange: ve("rowPinning", e)
4858
4858
  }),
4859
4859
  createRow: (e, n) => {
4860
4860
  e.pin = (t, i, o) => {
@@ -4955,7 +4955,7 @@ const rr = {
4955
4955
  ...e
4956
4956
  }),
4957
4957
  getDefaultOptions: (e) => ({
4958
- onRowSelectionChange: me("rowSelection", e),
4958
+ onRowSelectionChange: ve("rowSelection", e),
4959
4959
  enableRowSelection: !0,
4960
4960
  enableMultiRowSelection: !0,
4961
4961
  enableSubRowSelection: !0
@@ -5152,7 +5152,7 @@ const Ve = {
5152
5152
  sortUndefined: 1
5153
5153
  }),
5154
5154
  getDefaultOptions: (e) => ({
5155
- onSortingChange: me("sorting", e),
5155
+ onSortingChange: ve("sorting", e),
5156
5156
  isMultiSortEvent: (n) => n.shiftKey
5157
5157
  }),
5158
5158
  createColumn: (e, n) => {
@@ -5333,9 +5333,9 @@ function yr(e) {
5333
5333
  _getColumnDefs: () => o.options.columns,
5334
5334
  getAllColumns: $(() => [o._getColumnDefs()], (g) => {
5335
5335
  const u = function(m, v, R) {
5336
- return R === void 0 && (R = 0), m.map((w) => {
5337
- const D = Na(o, w, R, v), E = w;
5338
- return D.columns = E.columns ? u(E.columns, D, R + 1) : [], D;
5336
+ return R === void 0 && (R = 0), m.map((h) => {
5337
+ const M = Na(o, h, R, v), _ = h;
5338
+ return M.columns = _.columns ? u(_.columns, M, R + 1) : [], M;
5339
5339
  });
5340
5340
  };
5341
5341
  return u(g);
@@ -5404,37 +5404,37 @@ function _r() {
5404
5404
  return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = r(m.subRows, c + 1, m.id)), m));
5405
5405
  const f = i[c], g = Rr(s, f);
5406
5406
  return Array.from(g.entries()).map((m, v) => {
5407
- let [R, w] = m, D = `${f}:${R}`;
5408
- D = d ? `${d}>${D}` : D;
5409
- const E = r(w, c + 1, D);
5410
- E.forEach((T) => {
5411
- T.parentId = D;
5407
+ let [R, h] = m, M = `${f}:${R}`;
5408
+ M = d ? `${d}>${M}` : M;
5409
+ const _ = r(h, c + 1, M);
5410
+ _.forEach((V) => {
5411
+ V.parentId = M;
5412
5412
  });
5413
- const M = c ? ri(w, (T) => T.subRows) : w, h = li(e, D, M[0].original, v, c, void 0, d);
5414
- return Object.assign(h, {
5413
+ const O = c ? ri(h, (V) => V.subRows) : h, x = li(e, M, O[0].original, v, c, void 0, d);
5414
+ return Object.assign(x, {
5415
5415
  groupingColumnId: f,
5416
5416
  groupingValue: R,
5417
- subRows: E,
5418
- leafRows: M,
5419
- getValue: (T) => {
5420
- if (i.includes(T)) {
5421
- if (h._valuesCache.hasOwnProperty(T))
5422
- return h._valuesCache[T];
5423
- if (w[0]) {
5424
- var z;
5425
- h._valuesCache[T] = (z = w[0].getValue(T)) != null ? z : void 0;
5417
+ subRows: _,
5418
+ leafRows: O,
5419
+ getValue: (V) => {
5420
+ if (i.includes(V)) {
5421
+ if (x._valuesCache.hasOwnProperty(V))
5422
+ return x._valuesCache[V];
5423
+ if (h[0]) {
5424
+ var L;
5425
+ x._valuesCache[V] = (L = h[0].getValue(V)) != null ? L : void 0;
5426
5426
  }
5427
- return h._valuesCache[T];
5427
+ return x._valuesCache[V];
5428
5428
  }
5429
- if (h._groupingValuesCache.hasOwnProperty(T))
5430
- return h._groupingValuesCache[T];
5431
- const X = e.getColumn(T), ee = X == null ? void 0 : X.getAggregationFn();
5432
- if (ee)
5433
- return h._groupingValuesCache[T] = ee(T, M, w), h._groupingValuesCache[T];
5429
+ if (x._groupingValuesCache.hasOwnProperty(V))
5430
+ return x._groupingValuesCache[V];
5431
+ const B = e.getColumn(V), Z = B == null ? void 0 : B.getAggregationFn();
5432
+ if (Z)
5433
+ return x._groupingValuesCache[V] = Z(V, O, h), x._groupingValuesCache[V];
5434
5434
  }
5435
- }), E.forEach((T) => {
5436
- o.push(T), a[T.id] = T;
5437
- }), h;
5435
+ }), _.forEach((V) => {
5436
+ o.push(V), a[V.id] = V;
5437
+ }), x;
5438
5438
  });
5439
5439
  }, l = r(t.rows, 0);
5440
5440
  return l.forEach((s) => {
@@ -5468,7 +5468,7 @@ function Rr(e, n) {
5468
5468
  * @license MIT
5469
5469
  */
5470
5470
  function Lt(e, n) {
5471
- return e ? Er(e) ? /* @__PURE__ */ ue.createElement(e, n) : e : null;
5471
+ return e ? Er(e) ? /* @__PURE__ */ pe.createElement(e, n) : e : null;
5472
5472
  }
5473
5473
  function Er(e) {
5474
5474
  return kr(e) || typeof e == "function" || Fr(e);
@@ -5491,9 +5491,9 @@ function Pr(e) {
5491
5491
  // noop
5492
5492
  renderFallbackValue: null,
5493
5493
  ...e
5494
- }, [t] = ue.useState(() => ({
5494
+ }, [t] = pe.useState(() => ({
5495
5495
  current: yr(n)
5496
- })), [i, o] = ue.useState(() => t.current.initialState);
5496
+ })), [i, o] = pe.useState(() => t.current.initialState);
5497
5497
  return t.current.setOptions((a) => ({
5498
5498
  ...a,
5499
5499
  ...e,
@@ -5516,14 +5516,14 @@ const Ir = ({
5516
5516
  asc: /* @__PURE__ */ p(Ce, { name: "chevron-up", children: "ascending" }),
5517
5517
  desc: /* @__PURE__ */ p(Ce, { name: "chevron-down", children: "descending" })
5518
5518
  }[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
5519
- }, Dr = ({ header: e }) => /* @__PURE__ */ p("th", { className: G(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ p(
5519
+ }, Dr = ({ header: e }) => /* @__PURE__ */ p("th", { className: q(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ p(
5520
5520
  Se,
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__ */ B(we, { children: [
5526
+ children: /* @__PURE__ */ U(we, { children: [
5527
5527
  Lt(e.column.columnDef.header, e.getContext()),
5528
5528
  /* @__PURE__ */ p(Ir, { header: e })
5529
5529
  ] })
@@ -5541,7 +5541,7 @@ const Mr = ({
5541
5541
  isPending: r,
5542
5542
  pageSizes: l = [20, 30, 50, 100]
5543
5543
  }) => {
5544
- const s = re(() => l, []), c = re(
5544
+ const s = le(() => l, []), c = le(
5545
5545
  () => s.map((u) => ({
5546
5546
  label: `${u}/page`,
5547
5547
  value: u
@@ -5551,8 +5551,8 @@ const Mr = ({
5551
5551
  const { value: m } = u.target;
5552
5552
  i(Number(m));
5553
5553
  }, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
5554
- return /* @__PURE__ */ B(Le, { children: [
5555
- /* @__PURE__ */ B(Le.Left, { children: [
5554
+ return /* @__PURE__ */ U(Le, { children: [
5555
+ /* @__PURE__ */ U(Le.Left, { children: [
5556
5556
  "Showing ",
5557
5557
  g(),
5558
5558
  " out of ",
@@ -5560,7 +5560,7 @@ const Mr = ({
5560
5560
  " ",
5561
5561
  o
5562
5562
  ] }),
5563
- /* @__PURE__ */ B(Le.Right, { children: [
5563
+ /* @__PURE__ */ U(Le.Right, { children: [
5564
5564
  /* @__PURE__ */ p(
5565
5565
  _o,
5566
5566
  {
@@ -5588,7 +5588,7 @@ const Mr = ({
5588
5588
  return null;
5589
5589
  const t = e.getCoreRowModel().rows.filter((o) => o.getCanSelect());
5590
5590
  let i;
5591
- return e.getSelectedRowModel().rows.length === 0 ? i = "false" : e.getSelectedRowModel().rows.length < t.length ? i = "mixed" : i = "true", /* @__PURE__ */ B("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
5591
+ return e.getSelectedRowModel().rows.length === 0 ? i = "false" : e.getSelectedRowModel().rows.length < t.length ? i = "mixed" : i = "true", /* @__PURE__ */ U("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
5592
5592
  /* @__PURE__ */ p(
5593
5593
  "input",
5594
5594
  {
@@ -5617,7 +5617,7 @@ const Mr = ({
5617
5617
  ), i = t.filter(
5618
5618
  (r) => r.getIsSelected()
5619
5619
  ).length, o = t.length > 0 && i === t.length, a = i > 0 && !o;
5620
- return /* @__PURE__ */ B(
5620
+ return /* @__PURE__ */ U(
5621
5621
  "label",
5622
5622
  {
5623
5623
  "aria-disabled": !e.getCanSelect(),
@@ -5647,17 +5647,18 @@ const Mr = ({
5647
5647
  }, Me = ({
5648
5648
  row: e,
5649
5649
  disabledTooltip: n,
5650
- ...t
5650
+ isNested: t = !1,
5651
+ ...i
5651
5652
  }) => {
5652
5653
  if (!e)
5653
5654
  return null;
5654
- const i = typeof n == "string" ? n : n(e);
5655
+ const o = typeof n == "string" ? n : n(e);
5655
5656
  return /* @__PURE__ */ p(
5656
5657
  Mn,
5657
5658
  {
5658
- message: !e.getCanSelect() && i,
5659
+ message: !e.getCanSelect() && o,
5659
5660
  position: "btm-right",
5660
- children: /* @__PURE__ */ B(
5661
+ children: /* @__PURE__ */ U(
5661
5662
  "label",
5662
5663
  {
5663
5664
  "aria-disabled": !e.getCanSelect(),
@@ -5669,9 +5670,9 @@ const Mr = ({
5669
5670
  className: "p-checkbox__input",
5670
5671
  type: "checkbox",
5671
5672
  checked: e.getIsSelected(),
5672
- disabled: !e.getCanSelect(),
5673
+ disabled: !e.getCanSelect() || t,
5673
5674
  onChange: e.getToggleSelectedHandler(),
5674
- ...t
5675
+ ...i
5675
5676
  }
5676
5677
  ),
5677
5678
  /* @__PURE__ */ p("span", { className: "p-checkbox__label" })
@@ -5692,183 +5693,188 @@ const Wr = ({
5692
5693
  data: a,
5693
5694
  filterCells: r = () => !0,
5694
5695
  filterHeaders: l = () => !0,
5695
- groupBy: s,
5696
- isLoading: c,
5697
- noData: d,
5698
- pagination: f,
5699
- pinGroup: g,
5700
- sortBy: u,
5701
- rowSelection: m,
5702
- setRowSelection: v,
5703
- variant: R = "full-height",
5704
- ...w
5696
+ getSubRows: s,
5697
+ groupBy: c,
5698
+ isLoading: d,
5699
+ noData: f,
5700
+ pagination: g,
5701
+ pinGroup: u,
5702
+ sortBy: m,
5703
+ rowSelection: v,
5704
+ setRowSelection: R,
5705
+ variant: h = "full-height",
5706
+ ...M
5705
5707
  }) => {
5706
- const D = be(null), [E, M] = de("auto"), [h, T] = de(!1), [z, X] = de(s ?? []), [ee, pe] = de(!0), [le, ve] = de(u ?? []), I = re(() => {
5707
- if (!n || c)
5708
+ const _ = be(null), [O, x] = de("auto"), [V, L] = de(!1), [B, Z] = de(c ?? []), [ce, ue] = de(!0), [ge, I] = de(m ?? []), S = le(() => {
5709
+ if (!n || d)
5708
5710
  return i;
5709
- const x = [
5711
+ const y = [
5710
5712
  {
5711
5713
  id: "p-generic-table__select",
5712
5714
  accessorKey: "id",
5713
5715
  enableSorting: !1,
5714
- header: ({ table: y }) => s ? "" : /* @__PURE__ */ p(Me.All, { table: y }),
5715
- cell: ({ row: y }) => y.getIsGrouped() ? null : /* @__PURE__ */ p(
5716
+ header: ({ table: k }) => c ? "" : /* @__PURE__ */ p(Me.All, { table: k }),
5717
+ cell: ({ row: k }) => k.getIsGrouped() ? null : /* @__PURE__ */ p(
5716
5718
  Me,
5717
5719
  {
5718
- row: y,
5719
- disabledTooltip: t ?? ""
5720
+ row: k,
5721
+ disabledTooltip: t ?? "",
5722
+ isNested: s !== void 0 && !!k.parentId
5720
5723
  }
5721
5724
  )
5722
5725
  },
5723
5726
  ...i
5724
5727
  ];
5725
- return s ? [
5728
+ return c ? [
5726
5729
  {
5727
5730
  id: "p-generic-table__group-select",
5728
5731
  accessorKey: "id",
5729
5732
  enableSorting: !1,
5730
- header: ({ table: y }) => /* @__PURE__ */ p(Me.All, { table: y }),
5731
- cell: ({ row: y }) => y.getIsGrouped() ? /* @__PURE__ */ p(Me.Group, { row: y }) : null
5733
+ header: ({ table: k }) => /* @__PURE__ */ p(Me.All, { table: k }),
5734
+ cell: ({ row: k }) => k.getIsGrouped() ? /* @__PURE__ */ p(Me.Group, { row: k }) : null
5732
5735
  },
5733
- ...x
5734
- ] : x;
5735
- }, [n, i, c, s]), S = re(() => z.length ? [...a].sort((x, y) => {
5736
- for (const k of z) {
5737
- const P = x[k] ?? null, _ = y[k] ?? null;
5738
- if (P === null) return 1;
5739
- if (_ === null || P < _) return -1;
5740
- if (P > _) return 1;
5736
+ ...y
5737
+ ] : y;
5738
+ }, [n, i, d, c]), H = le(() => B.length ? [...a].sort((y, k) => {
5739
+ for (const F of B) {
5740
+ const E = y[F] ?? null, D = k[F] ?? null;
5741
+ if (E === null) return 1;
5742
+ if (D === null || E < D) return -1;
5743
+ if (E > D) return 1;
5741
5744
  }
5742
5745
  return 0;
5743
- }) : a, [a, z]), L = re(() => S.length ? [...S].sort((x, y) => {
5744
- if (g != null && g.length && z.length)
5745
- for (const { value: k, isTop: P } of g) {
5746
- const _ = z[0], j = x[_] ?? null, F = y[_] ?? null;
5747
- if (j === k && F !== k)
5748
- return P ? -1 : 1;
5749
- if (F === k && j !== k)
5750
- return P ? 1 : -1;
5746
+ }) : a, [a, B]), Y = le(() => H.length ? [...H].sort((y, k) => {
5747
+ if (u != null && u.length && B.length)
5748
+ for (const { value: F, isTop: E } of u) {
5749
+ const D = B[0], P = y[D] ?? null, T = k[D] ?? null;
5750
+ if (P === F && T !== F)
5751
+ return E ? -1 : 1;
5752
+ if (T === F && P !== F)
5753
+ return E ? 1 : -1;
5751
5754
  }
5752
- for (const { id: k, desc: P } of le) {
5753
- const _ = x[k] ?? null, j = y[k] ?? null;
5754
- if (_ === null && j === null) return 0;
5755
- if (_ === null) return P ? -1 : 1;
5756
- if (j === null || _ < j)
5757
- return P ? 1 : -1;
5758
- if (_ > j)
5759
- return P ? -1 : 1;
5755
+ for (const { id: F, desc: E } of ge) {
5756
+ const D = y[F] ?? null, P = k[F] ?? null;
5757
+ if (D === null && P === null) return 0;
5758
+ if (D === null) return E ? -1 : 1;
5759
+ if (P === null || D < P)
5760
+ return E ? 1 : -1;
5761
+ if (D > P)
5762
+ return E ? -1 : 1;
5760
5763
  }
5761
5764
  return 0;
5762
- }) : [], [S, le, g, z]);
5765
+ }) : [], [H, ge, u, B]);
5763
5766
  An(() => {
5764
- const x = () => {
5765
- const P = D.current;
5766
- if (!P) return;
5767
- const _ = (o == null ? void 0 : o.current) || document.querySelector("main");
5768
- if (!_) return;
5769
- const j = _.getBoundingClientRect(), F = P.getBoundingClientRect(), V = j.bottom - F.top, q = P.scrollHeight > V;
5770
- T(q), M(q ? `${V}px` : "auto");
5767
+ const y = () => {
5768
+ const E = _.current;
5769
+ if (!E) return;
5770
+ const D = (o == null ? void 0 : o.current) || document.querySelector("main");
5771
+ if (!D) return;
5772
+ const P = D.getBoundingClientRect(), T = E.getBoundingClientRect(), z = P.bottom - T.top, N = E.scrollHeight > z;
5773
+ L(N), x(N ? `${z}px` : "auto");
5771
5774
  };
5772
- x();
5773
- const y = new ResizeObserver(x), k = D.current;
5774
- return k && y.observe(k), window.addEventListener("resize", x), () => {
5775
- window.removeEventListener("resize", x), k && y.unobserve(k);
5775
+ y();
5776
+ const k = new ResizeObserver(y), F = _.current;
5777
+ return F && k.observe(F), window.addEventListener("resize", y), () => {
5778
+ window.removeEventListener("resize", y), F && k.unobserve(F);
5776
5779
  };
5777
- }, [o, L.length, c]);
5778
- const Q = R === "full-height" && h ? "full-height" : "regular", J = Pr({
5779
- data: L,
5780
- columns: I,
5780
+ }, [o, Y.length, d]);
5781
+ const ee = h === "full-height" && V ? "full-height" : "regular", oe = Pr({
5782
+ data: Y,
5783
+ columns: S,
5781
5784
  state: {
5782
- grouping: z,
5783
- expanded: ee,
5784
- sorting: le,
5785
- rowSelection: m
5785
+ grouping: B,
5786
+ expanded: ce,
5787
+ sorting: ge,
5788
+ rowSelection: v
5786
5789
  },
5787
5790
  manualPagination: !0,
5788
5791
  autoResetExpanded: !1,
5789
- onExpandedChange: pe,
5790
- onSortingChange: ve,
5791
- onGroupingChange: X,
5792
- onRowSelectionChange: v,
5792
+ onExpandedChange: ue,
5793
+ onSortingChange: I,
5794
+ onGroupingChange: Z,
5795
+ onRowSelectionChange: R,
5793
5796
  manualSorting: !0,
5794
5797
  enableSorting: !0,
5795
5798
  enableExpanding: !0,
5799
+ getSubRows: s,
5796
5800
  getExpandedRowModel: Sr(),
5797
5801
  getCoreRowModel: br(),
5798
5802
  getGroupedRowModel: _r(),
5799
5803
  groupedColumnMode: !1,
5800
5804
  enableRowSelection: n,
5801
5805
  enableMultiRowSelection: n,
5802
- getRowId: (x) => x.id.toString()
5803
- }), se = () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__loading", colSpan: I.length, children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) }), te = () => J.getRowModel().rows.length < 1 ? /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__no-data", colSpan: I.length, children: d }) }) : J.getRowModel().rows.map((x) => {
5804
- const { getIsGrouped: y, id: k, getVisibleCells: P } = x, _ = !y(), j = m !== void 0 && Object.keys(m).includes(k);
5806
+ getRowId: (y) => y.id.toString()
5807
+ }), te = () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__loading", colSpan: S.length, children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) }), w = () => oe.getRowModel().rows.length < 1 ? /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__no-data", colSpan: S.length, children: f }) }) : oe.getRowModel().rows.map((y) => {
5808
+ const { getIsGrouped: k, id: F, getVisibleCells: E, parentId: D } = y, P = !k(), T = v !== void 0 && Object.keys(v).includes(F);
5805
5809
  return /* @__PURE__ */ p(
5806
5810
  "tr",
5807
5811
  {
5808
- "aria-rowindex": parseInt(k.replace(/\D/g, "") || "0", 10) + 1,
5809
- "aria-selected": j,
5810
- className: G({
5811
- "p-generic-table__individual-row": _,
5812
- "p-generic-table__group-row": !_
5812
+ "aria-rowindex": parseInt(F.replace(/\D/g, "") || "0", 10) + 1,
5813
+ "aria-selected": T,
5814
+ className: q({
5815
+ "p-generic-table__individual-row": P,
5816
+ "p-generic-table__group-row": !P,
5817
+ "p-generic-table__nested-row": s !== void 0 && !!D
5813
5818
  }),
5814
5819
  role: "row",
5815
- children: P().filter((F) => !_ && F.column.id === "p-generic-table__group-select" ? !0 : r(x, F.column)).map((F) => /* @__PURE__ */ p("td", { className: G(`${F.column.id}`), children: Lt(F.column.columnDef.cell, F.getContext()) }, F.id))
5820
+ children: E().filter((z) => !P && z.column.id === "p-generic-table__group-select" ? !0 : r(y, z.column)).map((z) => /* @__PURE__ */ p("td", { className: q(`${z.column.id}`), children: Lt(z.column.columnDef.cell, z.getContext()) }, z.id))
5816
5821
  },
5817
- k
5822
+ F
5818
5823
  );
5819
5824
  });
5820
- return /* @__PURE__ */ B(
5825
+ return /* @__PURE__ */ U(
5821
5826
  "div",
5822
5827
  {
5823
- className: G("p-generic-table", e),
5828
+ className: q("p-generic-table", e),
5824
5829
  "data-testid": "p-generic-table",
5825
- ...w,
5830
+ ...M,
5826
5831
  children: [
5827
- f && /* @__PURE__ */ p(
5832
+ g && /* @__PURE__ */ p(
5828
5833
  Mr,
5829
5834
  {
5830
- currentPage: f.currentPage,
5831
- dataContext: f.dataContext,
5832
- handlePageSizeChange: f.handlePageSizeChange,
5833
- isPending: f.isPending,
5834
- itemsPerPage: f.itemsPerPage,
5835
- setCurrentPage: f.setCurrentPage,
5836
- totalItems: f.totalItems,
5837
- pageSizes: f.pageSizes
5835
+ currentPage: g.currentPage,
5836
+ dataContext: g.dataContext,
5837
+ handlePageSizeChange: g.handlePageSizeChange,
5838
+ isPending: g.isPending,
5839
+ itemsPerPage: g.itemsPerPage,
5840
+ setCurrentPage: g.setCurrentPage,
5841
+ totalItems: g.totalItems,
5842
+ pageSizes: g.pageSizes
5838
5843
  }
5839
5844
  ),
5840
- /* @__PURE__ */ B(
5845
+ /* @__PURE__ */ U(
5841
5846
  "table",
5842
5847
  {
5843
- "aria-busy": c,
5848
+ "aria-busy": d,
5849
+ "aria-label": M["aria-label"],
5844
5850
  "aria-describedby": "generic-table-description",
5845
- "aria-rowcount": L.length + 1,
5846
- className: G("p-generic-table__table", {
5847
- "p-generic-table__is-full-height": Q === "full-height",
5851
+ "aria-rowcount": Y.length + 1,
5852
+ className: q("p-generic-table__table", {
5853
+ "p-generic-table__is-full-height": ee === "full-height",
5848
5854
  "p-generic-table__is-selectable": n,
5849
- "p-generic-table__is-grouped": s !== void 0
5855
+ "p-generic-table__is-grouped": c !== void 0
5850
5856
  }),
5851
5857
  role: "grid",
5852
5858
  children: [
5853
- /* @__PURE__ */ p("thead", { children: J.getHeaderGroups().map((x) => /* @__PURE__ */ p("tr", { role: "row", children: x.headers.filter(l).map((y, k) => /* @__PURE__ */ B($n, { children: [
5854
- /* @__PURE__ */ p(Dr, { header: y }),
5855
- k === 2 ? /* @__PURE__ */ p(
5859
+ /* @__PURE__ */ p("thead", { children: oe.getHeaderGroups().map((y) => /* @__PURE__ */ p("tr", { role: "row", children: y.headers.filter(l).map((k, F) => /* @__PURE__ */ U($n, { children: [
5860
+ /* @__PURE__ */ p(Dr, { header: k }),
5861
+ F === 2 ? /* @__PURE__ */ p(
5856
5862
  "th",
5857
5863
  {
5858
5864
  className: "p-generic-table__select-alignment",
5859
5865
  role: "columnheader"
5860
5866
  }
5861
5867
  ) : null
5862
- ] }, y.id)) }, x.id)) }),
5868
+ ] }, k.id)) }, y.id)) }),
5863
5869
  /* @__PURE__ */ p(
5864
5870
  "tbody",
5865
5871
  {
5866
- ref: D,
5872
+ ref: _,
5867
5873
  style: {
5868
5874
  overflowY: "auto",
5869
- maxHeight: E
5875
+ maxHeight: O
5870
5876
  },
5871
- children: c ? se() : te()
5877
+ children: d ? te() : w()
5872
5878
  }
5873
5879
  )
5874
5880
  ]
@@ -5946,166 +5952,166 @@ const Wr = ({
5946
5952
  highlightedIndex: -1,
5947
5953
  showingMore: !1,
5948
5954
  cursorPosition: 0
5949
- }), u = be(null), m = be(null), v = be(null), R = re(() => {
5955
+ }), u = be(null), m = be(null), v = be(null), R = le(() => {
5950
5956
  const I = f.showingMore ? Fn.EXPANDED : Fn.DEFAULT, S = l.slice(0, I);
5951
5957
  return !f.showingMore && l.length > I ? [...S, { value: "Show more...", type: "more" }] : S;
5952
- }, [l, f.showingMore]), w = Y(
5958
+ }, [l, f.showingMore]), h = Q(
5953
5959
  (I) => {
5954
5960
  g(typeof I == "function" ? (S) => ({ ...S, ...I(S) }) : (S) => ({ ...S, ...I }));
5955
5961
  },
5956
5962
  []
5957
- ), D = Y(
5963
+ ), M = Q(
5958
5964
  (I) => {
5959
- u.current && !u.current.contains(I.target) && w({
5965
+ u.current && !u.current.contains(I.target) && h({
5960
5966
  isVisible: !1,
5961
5967
  highlightedIndex: -1
5962
5968
  });
5963
5969
  },
5964
- [w]
5965
- ), E = Y(
5970
+ [h]
5971
+ ), _ = Q(
5966
5972
  (I, S) => {
5967
- const { tokenStart: L, tokenEnd: Q } = S;
5973
+ const { tokenStart: H, tokenEnd: Y } = S;
5968
5974
  if (I.type === "filter") {
5969
- const se = I.value + xe.COLON + xe.OPEN_PAREN;
5970
- return t.slice(0, L) + se + t.slice(Q);
5975
+ const oe = I.value + xe.COLON + xe.OPEN_PAREN;
5976
+ return t.slice(0, H) + oe + t.slice(Y);
5971
5977
  }
5972
5978
  if (o.length === 0) {
5973
- const se = I.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + I.value;
5974
- return t.slice(0, L) + se + t.slice(Q);
5979
+ const oe = I.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + I.value;
5980
+ return t.slice(0, H) + oe + t.slice(Y);
5975
5981
  }
5976
- const J = t.charAt(L - 1) === xe.EQUALS ? I.value : xe.EQUALS + I.value;
5977
- return t.slice(0, L) + J + t.slice(Q);
5982
+ const ee = t.charAt(H - 1) === xe.EQUALS ? I.value : xe.EQUALS + I.value;
5983
+ return t.slice(0, H) + ee + t.slice(Y);
5978
5984
  },
5979
5985
  [t, o]
5980
- ), M = Y(
5986
+ ), O = Q(
5981
5987
  (I) => {
5982
5988
  const S = R[I];
5983
5989
  if (!S) return;
5984
5990
  if (S.type === "more") {
5985
- w({ showingMore: !0 });
5991
+ h({ showingMore: !0 });
5986
5992
  return;
5987
5993
  }
5988
- const L = Ze(
5994
+ const H = Ze(
5989
5995
  t,
5990
5996
  f.cursorPosition
5991
- ), Q = E(S, L), J = L.tokenStart + (S.type === "filter" ? S.value.length + 2 : o.length === 0 ? S.type.length + S.value.length + 3 : S.value.length + 1), { context: se, token: te } = Ze(
5992
- Q,
5993
- J
5997
+ ), Y = _(S, H), ee = H.tokenStart + (S.type === "filter" ? S.value.length + 2 : o.length === 0 ? S.type.length + S.value.length + 3 : S.value.length + 1), { context: oe, token: te } = Ze(
5998
+ Y,
5999
+ ee
5994
6000
  );
5995
- a(se), r(te), i(Q), setTimeout(() => {
6001
+ a(oe), r(te), i(Y), setTimeout(() => {
5996
6002
  v.current && (v.current.focus(), v.current.setSelectionRange(
5997
- J,
5998
- J
6003
+ ee,
6004
+ ee
5999
6005
  ));
6000
- }, 0), w({
6006
+ }, 0), h({
6001
6007
  highlightedIndex: 0,
6002
6008
  showingMore: !1,
6003
6009
  isVisible: S.type === "filter",
6004
- cursorPosition: J
6010
+ cursorPosition: ee
6005
6011
  });
6006
6012
  },
6007
6013
  [
6008
6014
  R,
6009
- E,
6015
+ _,
6010
6016
  t,
6011
6017
  f.cursorPosition,
6012
6018
  o,
6013
6019
  a,
6014
6020
  r,
6015
6021
  i,
6016
- w
6022
+ h
6017
6023
  ]
6018
- ), h = Y(() => {
6024
+ ), x = Q(() => {
6019
6025
  if (!v.current) return;
6020
- const I = v.current.selectionStart || 0, { context: S, token: L } = Ze(
6026
+ const I = v.current.selectionStart || 0, { context: S, token: H } = Ze(
6021
6027
  t,
6022
6028
  I
6023
6029
  );
6024
- a(S), r(L), w((Q) => ({
6025
- ...Q,
6030
+ a(S), r(H), h((Y) => ({
6031
+ ...Y,
6026
6032
  isVisible: !Pn(t, I),
6027
6033
  cursorPosition: I
6028
6034
  }));
6029
- }, [t, a, r, w]), T = Y(
6035
+ }, [t, a, r, h]), V = Q(
6030
6036
  (I) => {
6031
6037
  const { key: S } = I;
6032
6038
  if (f.isVisible) {
6033
- const L = R.length;
6039
+ const H = R.length;
6034
6040
  switch (S) {
6035
6041
  case "Tab":
6036
6042
  case "ArrowDown":
6037
- I.preventDefault(), w({
6038
- highlightedIndex: (f.highlightedIndex + 1) % L
6043
+ I.preventDefault(), h({
6044
+ highlightedIndex: (f.highlightedIndex + 1) % H
6039
6045
  });
6040
6046
  return;
6041
6047
  case "ArrowUp":
6042
- I.preventDefault(), w({
6043
- highlightedIndex: f.highlightedIndex <= 0 ? L - 1 : f.highlightedIndex - 1
6048
+ I.preventDefault(), h({
6049
+ highlightedIndex: f.highlightedIndex <= 0 ? H - 1 : f.highlightedIndex - 1
6044
6050
  });
6045
6051
  return;
6046
6052
  case "Enter":
6047
- I.preventDefault(), f.highlightedIndex >= 0 ? M(f.highlightedIndex) : w({ isVisible: !1 });
6053
+ I.preventDefault(), f.highlightedIndex >= 0 ? O(f.highlightedIndex) : h({ isVisible: !1 });
6048
6054
  return;
6049
6055
  case "Escape":
6050
- I.preventDefault(), w({
6056
+ I.preventDefault(), h({
6051
6057
  isVisible: !1,
6052
6058
  highlightedIndex: -1
6053
6059
  });
6054
6060
  return;
6055
6061
  }
6056
6062
  }
6057
- (S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && setTimeout(h, 0);
6063
+ (S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && setTimeout(x, 0);
6058
6064
  },
6059
6065
  [
6060
6066
  f,
6061
6067
  R.length,
6062
- w,
6063
- M,
6064
- h
6068
+ h,
6069
+ O,
6070
+ x
6065
6071
  ]
6066
- ), z = Y(
6072
+ ), L = Q(
6067
6073
  (I) => {
6068
6074
  const { key: S } = I;
6069
- (S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && h();
6075
+ (S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && x();
6070
6076
  },
6071
- [h]
6072
- ), X = Y(() => {
6073
- w({
6077
+ [x]
6078
+ ), B = Q(() => {
6079
+ h({
6074
6080
  isVisible: !0,
6075
6081
  highlightedIndex: 0
6076
6082
  });
6077
- }, [w]), ee = Y(
6083
+ }, [h]), Z = Q(
6078
6084
  (I) => {
6079
- var J;
6080
- const S = ((J = v.current) == null ? void 0 : J.selectionStart) || I.length, { context: L, token: Q } = Ze(
6085
+ var ee;
6086
+ const S = ((ee = v.current) == null ? void 0 : ee.selectionStart) || I.length, { context: H, token: Y } = Ze(
6081
6087
  I,
6082
6088
  S
6083
6089
  );
6084
- a(L), r(Q), i(I), w({
6090
+ a(H), r(Y), i(I), h({
6085
6091
  highlightedIndex: 0,
6086
6092
  isVisible: !Pn(I, S),
6087
6093
  showingMore: !1,
6088
6094
  cursorPosition: S
6089
6095
  });
6090
6096
  },
6091
- [a, r, i, w]
6092
- ), pe = Y(() => {
6093
- setTimeout(h, 0);
6094
- }, [h]), le = Y(() => {
6095
- w({
6097
+ [a, r, i, h]
6098
+ ), ce = Q(() => {
6099
+ setTimeout(x, 0);
6100
+ }, [x]), ue = Q(() => {
6101
+ h({
6096
6102
  isVisible: !1,
6097
6103
  highlightedIndex: -1
6098
6104
  });
6099
- }, [w]), ve = Y(
6105
+ }, [h]), ge = Q(
6100
6106
  (I) => {
6101
- w({ highlightedIndex: I });
6107
+ h({ highlightedIndex: I });
6102
6108
  },
6103
- [w]
6109
+ [h]
6104
6110
  );
6105
- return Ee(() => (document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D)), [D]), /* @__PURE__ */ B(
6111
+ return Ee(() => (document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M)), [M]), /* @__PURE__ */ U(
6106
6112
  "div",
6107
6113
  {
6108
- className: G("p-query-input", e),
6114
+ className: q("p-query-input", e),
6109
6115
  "data-testid": "p-query-input",
6110
6116
  ref: u,
6111
6117
  ...d,
@@ -6121,12 +6127,12 @@ const Wr = ({
6121
6127
  id: "query-input",
6122
6128
  name: "query-input",
6123
6129
  ref: v,
6124
- onFocus: X,
6125
- onChange: ee,
6126
- onKeyDown: T,
6127
- onKeyUp: z,
6128
- onClear: le,
6129
- onClick: pe,
6130
+ onFocus: B,
6131
+ onChange: Z,
6132
+ onKeyDown: V,
6133
+ onKeyUp: L,
6134
+ onClear: ue,
6135
+ onClick: ce,
6130
6136
  "aria-disabled": n,
6131
6137
  "aria-expanded": f.isVisible,
6132
6138
  "aria-haspopup": "listbox",
@@ -6141,24 +6147,24 @@ const Wr = ({
6141
6147
  id: "query-suggestions",
6142
6148
  role: "listbox",
6143
6149
  "aria-label": "Search suggestions",
6144
- children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) : R.map((I, S) => /* @__PURE__ */ B(
6150
+ children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) : R.map((I, S) => /* @__PURE__ */ U(
6145
6151
  "li",
6146
6152
  {
6147
- className: G("p-query-input__item", {
6153
+ className: q("p-query-input__item", {
6148
6154
  highlight: S === f.highlightedIndex
6149
6155
  }),
6150
- onClick: () => M(S),
6151
- onKeyDown: () => M(S),
6152
- onMouseEnter: () => ve(S),
6156
+ onClick: () => O(S),
6157
+ onKeyDown: () => O(S),
6158
+ onMouseEnter: () => ge(S),
6153
6159
  role: "option",
6154
6160
  "aria-selected": S === f.highlightedIndex,
6155
6161
  tabIndex: -1,
6156
6162
  children: [
6157
- /* @__PURE__ */ B("span", { className: "p-query-input__item-label", children: [
6163
+ /* @__PURE__ */ U("span", { className: "p-query-input__item-label", children: [
6158
6164
  /* @__PURE__ */ p(
6159
6165
  "span",
6160
6166
  {
6161
- className: G({
6167
+ className: q({
6162
6168
  "u-text--muted": I.type === "more"
6163
6169
  }),
6164
6170
  children: I.value
@@ -6210,7 +6216,7 @@ export {
6210
6216
  zi as Meter,
6211
6217
  Kr as MultiSelect,
6212
6218
  $a as MultiSelectDropdown,
6213
- ae as Navigation,
6219
+ re as Navigation,
6214
6220
  co as NavigationBar,
6215
6221
  Gr as NestedFormGroup,
6216
6222
  Co as Pagination,