@canonical/maas-react-components 1.33.4 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as B, jsx as u, Fragment as we } from "react/jsx-runtime";
2
2
  import * as ue from "react";
3
- import Si, { useRef as be, useState as de, useEffect as Ce, useCallback as Q, cloneElement as Ci, createContext as $n, useId as et, useContext as Ht, useMemo as le, useReducer as An, forwardRef as _i, useImperativeHandle as Ri, Fragment as Mn, useLayoutEffect as On } from "react";
3
+ import Si, { useRef as be, useState as ge, useEffect as Ce, useCallback as X, cloneElement as Ci, createContext as $n, useId as et, useContext as Ht, useMemo as se, useReducer as An, forwardRef as _i, useImperativeHandle as Ri, Fragment as Mn, useLayoutEffect as On } from "react";
4
4
  import { useListener as Ei, Link as ki, Spinner as qt, Tooltip as Gt, Button as _e, Icon as Re, Row as Fi, Col as Pi, Input as Ii, Label as Di, CheckboxInput as $i, useClickOutside as Ai, useOnEscapePressed as Mi, SearchBox as jn, Select as Oi, ICONS as en } from "@canonical/react-components";
5
5
  function Bt(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -45,7 +45,7 @@ function ji() {
45
45
  }(ft)), ft.exports;
46
46
  }
47
47
  var Ti = ji();
48
- const G = /* @__PURE__ */ Bt(Ti), Ie = {
48
+ const q = /* @__PURE__ */ Bt(Ti), Ie = {
49
49
  caution: "#F99B11",
50
50
  light: "#F7F7F7",
51
51
  linkFaded: "#D3E4ED",
@@ -79,17 +79,17 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
79
79
  size: a = "regular",
80
80
  ...r
81
81
  }) => {
82
- const l = be(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, d = t.map((m) => m.value / c * 100), [f, g] = de(0);
82
+ const l = be(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, d = t.map((m) => m.value / c * 100), [f, g] = ge(0);
83
83
  Ce(() => {
84
84
  g(o === "segmented" ? an(l, c) : 0);
85
85
  }, [c, o]);
86
- const p = Q(() => {
86
+ const p = X(() => {
87
87
  g(an(l, c));
88
88
  }, [l, c, g]);
89
89
  return Ei(window, p, "resize", !0, o === "segmented"), /* @__PURE__ */ B(
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"],
@@ -173,7 +173,7 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
173
173
  }) => /* @__PURE__ */ u(
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
  }
@@ -196,7 +196,7 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...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__ */ u("span", { "aria-hidden": "true", children: e || n || "Loading" })
@@ -223,7 +223,7 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...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 Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...t, href:
234
234
  }
235
235
  )
236
236
  }
237
- ), Ki = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Wi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), Yi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Xi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Qi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Ji = ({ light: e = !0, name: n }) => /* @__PURE__ */ u(Re, { className: "p-side-navigation__icon", light: e, name: n }), Zi = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: G("p-side-navigation__item", n, { "has-active-child": t }), children: e }), eo = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: G("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), to = ({
237
+ ), Ki = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Wi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), Yi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Xi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Qi = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Ji = ({ light: e = !0, name: n }) => /* @__PURE__ */ u(Re, { className: "p-side-navigation__icon", light: e, name: n }), Zi = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: q("p-side-navigation__item", n, { "has-active-child": t }), children: e }), eo = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: q("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), to = ({
238
238
  as: e,
239
239
  ...n
240
240
  }) => /* @__PURE__ */ u(
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
- ), no = ({ children: e, className: n }) => /* @__PURE__ */ u("ul", { className: G("p-side-navigation__list", n), children: e }), io = ({
246
+ ), no = ({ children: e, className: n }) => /* @__PURE__ */ u("ul", { className: q("p-side-navigation__list", n), children: e }), io = ({
247
247
  as: e,
248
248
  children: n,
249
249
  className: t,
250
250
  ...i
251
- }) => /* @__PURE__ */ u(e || "a", { className: G("p-panel__logo", t), ...i, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: n }) }), oo = ({ children: e }) => Ci(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ao = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ u(
251
+ }) => /* @__PURE__ */ u(e || "a", { className: q("p-panel__logo", t), ...i, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: n }) }), oo = ({ children: e }) => Ci(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ao = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ u(
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 Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...t, href:
264
264
  _e,
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 Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...t, href:
273
273
  },
274
274
  children: /* @__PURE__ */ u(we, { children: e })
275
275
  }
276
- ), co = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e }), re = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: G("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), po = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: G("p-panel is-dark", n), children: e }) });
277
- re.Header = Qi;
278
- re.Banner = Bi;
279
- re.Drawer = Yi;
280
- re.Controls = Wi;
281
- re.CollapseToggle = Ui;
282
- re.Content = Ki;
283
- re.Footer = Xi;
284
- re.List = no;
285
- re.Item = Zi;
286
- re.Link = to;
287
- re.Text = co;
288
- re.Icon = Ji;
289
- re.Label = eo;
290
- re.Logo = io;
291
- re.LogoTag = ro;
292
- re.LogoIcon = oo;
293
- re.LogoName = ao;
294
- re.LogoText = lo;
276
+ ), co = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e }), le = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: q("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), po = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: q("p-panel is-dark", n), children: e }) });
277
+ le.Header = Qi;
278
+ le.Banner = Bi;
279
+ le.Drawer = Yi;
280
+ le.Controls = Wi;
281
+ le.CollapseToggle = Ui;
282
+ le.Content = Ki;
283
+ le.Footer = Xi;
284
+ le.List = no;
285
+ le.Item = Zi;
286
+ le.Link = to;
287
+ le.Text = co;
288
+ le.Icon = Ji;
289
+ le.Label = eo;
290
+ le.Logo = io;
291
+ le.LogoTag = ro;
292
+ le.LogoIcon = oo;
293
+ le.LogoName = ao;
294
+ le.LogoText = lo;
295
295
  po.MenuButton = so;
296
296
  const Ut = $n(null), zn = ({ children: e }) => {
297
297
  const n = et();
@@ -340,7 +340,7 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
340
340
  return /* @__PURE__ */ u(
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,7 +355,7 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
355
355
  }) => /* @__PURE__ */ u(
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
@@ -378,7 +378,7 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
378
378
  /* @__PURE__ */ u(
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__ */ u(a, { ...o, className: r, children: /* @__PURE__ */ u(Fi, { children: /* @__PURE__ */ u(Pi, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ u(we, { children: e }) }) }) });
400
400
  }, yo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ u(
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
- ), bo = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { className: G("content-section__header", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ u("div", { className: G("content-section__body", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ u("footer", { className: G("content-section__footer", n), children: e });
407
+ ), bo = ({ children: e, className: n }) => /* @__PURE__ */ u("header", { className: q("content-section__header", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ u("div", { className: q("content-section__body", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ u("footer", { className: q("content-section__footer", n), children: e });
408
408
  ot.Title = yo;
409
409
  ot.Header = bo;
410
410
  ot.Content = So;
@@ -416,7 +416,7 @@ const Hn = ({
416
416
  }) => /* @__PURE__ */ u(
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,7 +439,7 @@ const Hn = ({
439
439
  "nav",
440
440
  {
441
441
  "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
442
- className: G("p-pagination", e),
442
+ className: q("p-pagination", e),
443
443
  children: /* @__PURE__ */ B("span", { className: "p-pagination--items", children: [
444
444
  /* @__PURE__ */ u(
445
445
  _e,
@@ -493,7 +493,7 @@ const Hn = ({
493
493
  paginate: t,
494
494
  totalPages: i
495
495
  }) => {
496
- const [o, a] = de(e), [r, l] = de("");
496
+ const [o, a] = ge(e), [r, l] = ge("");
497
497
  return /* @__PURE__ */ u(
498
498
  _o,
499
499
  {
@@ -522,7 +522,7 @@ const Hn = ({
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
  }),
@@ -543,8 +543,8 @@ var rn;
543
543
  function Eo() {
544
544
  if (rn) return K;
545
545
  rn = 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, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
547
- function F(x) {
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, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
547
+ function k(x) {
548
548
  if (typeof x == "object" && x !== null) {
549
549
  var V = x.$$typeof;
550
550
  switch (V) {
@@ -574,36 +574,36 @@ function Eo() {
574
574
  }
575
575
  }
576
576
  }
577
- function A(x) {
578
- return F(x) === c;
577
+ function M(x) {
578
+ return k(x) === c;
579
579
  }
580
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 = p, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(x) {
581
- return A(x) || F(x) === s;
582
- }, K.isConcurrentMode = A, K.isContextConsumer = function(x) {
583
- return F(x) === l;
581
+ return M(x) || k(x) === s;
582
+ }, K.isConcurrentMode = M, K.isContextConsumer = function(x) {
583
+ return k(x) === l;
584
584
  }, K.isContextProvider = function(x) {
585
- return F(x) === r;
585
+ return k(x) === r;
586
586
  }, K.isElement = function(x) {
587
587
  return typeof x == "object" && x !== null && x.$$typeof === n;
588
588
  }, K.isForwardRef = function(x) {
589
- return F(x) === d;
589
+ return k(x) === d;
590
590
  }, K.isFragment = function(x) {
591
- return F(x) === i;
591
+ return k(x) === i;
592
592
  }, K.isLazy = function(x) {
593
- return F(x) === m;
593
+ return k(x) === m;
594
594
  }, K.isMemo = function(x) {
595
- return F(x) === p;
595
+ return k(x) === p;
596
596
  }, K.isPortal = function(x) {
597
- return F(x) === t;
597
+ return k(x) === t;
598
598
  }, K.isProfiler = function(x) {
599
- return F(x) === a;
599
+ return k(x) === a;
600
600
  }, K.isStrictMode = function(x) {
601
- return F(x) === o;
601
+ return k(x) === o;
602
602
  }, K.isSuspense = function(x) {
603
- return F(x) === f;
603
+ return k(x) === f;
604
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 === p || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === P || x.$$typeof === h || x.$$typeof === T || x.$$typeof === v);
606
- }, K.typeOf = F, K;
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 === p || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === E || x.$$typeof === h || x.$$typeof === A || x.$$typeof === v);
606
+ }, K.typeOf = k, K;
607
607
  }
608
608
  var W = {};
609
609
  /** @license React v16.13.1
@@ -617,17 +617,17 @@ var W = {};
617
617
  var ln;
618
618
  function ko() {
619
619
  return ln || (ln = 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, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
621
- function F(b) {
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 === p || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === P || b.$$typeof === h || b.$$typeof === T || b.$$typeof === v);
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, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
621
+ function k(S) {
622
+ return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
623
+ S === i || S === c || S === a || S === o || S === f || S === g || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === p || S.$$typeof === r || S.$$typeof === l || S.$$typeof === d || S.$$typeof === E || S.$$typeof === h || S.$$typeof === A || S.$$typeof === v);
624
624
  }
625
- function A(b) {
626
- if (typeof b == "object" && b !== null) {
627
- var ge = b.$$typeof;
628
- switch (ge) {
625
+ function M(S) {
626
+ if (typeof S == "object" && S !== null) {
627
+ var ce = S.$$typeof;
628
+ switch (ce) {
629
629
  case n:
630
- var Fe = b.type;
630
+ var Fe = S.type;
631
631
  switch (Fe) {
632
632
  case s:
633
633
  case c:
@@ -646,55 +646,55 @@ function ko() {
646
646
  case r:
647
647
  return Te;
648
648
  default:
649
- return ge;
649
+ return ce;
650
650
  }
651
651
  }
652
652
  case t:
653
- return ge;
653
+ return ce;
654
654
  }
655
655
  }
656
656
  }
657
- var x = s, V = c, H = l, J = r, U = n, pe = d, se = i, ve = m, D = p, E = t, q = a, Y = o, Z = f, oe = !1;
658
- function te(b) {
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) || A(b) === s;
657
+ var x = s, V = c, H = l, Q = r, ie = n, Z = d, de = i, fe = m, D = p, R = t, G = a, J = o, ee = f, ae = !1;
658
+ function te(S) {
659
+ return ae || (ae = !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(S) || M(S) === s;
660
660
  }
661
- function w(b) {
662
- return A(b) === c;
661
+ function w(S) {
662
+ return M(S) === c;
663
663
  }
664
- function k(b) {
665
- return A(b) === l;
664
+ function _(S) {
665
+ return M(S) === l;
666
666
  }
667
- function N(b) {
668
- return A(b) === r;
667
+ function N(S) {
668
+ return M(S) === r;
669
669
  }
670
- function S(b) {
671
- return typeof b == "object" && b !== null && b.$$typeof === n;
670
+ function L(S) {
671
+ return typeof S == "object" && S !== null && S.$$typeof === n;
672
672
  }
673
- function R(b) {
674
- return A(b) === d;
673
+ function b(S) {
674
+ return M(S) === d;
675
675
  }
676
- function y(b) {
677
- return A(b) === i;
676
+ function I(S) {
677
+ return M(S) === i;
678
678
  }
679
- function C(b) {
680
- return A(b) === m;
679
+ function y(S) {
680
+ return M(S) === m;
681
681
  }
682
- function I(b) {
683
- return A(b) === p;
682
+ function F(S) {
683
+ return M(S) === p;
684
684
  }
685
- function $(b) {
686
- return A(b) === t;
685
+ function P(S) {
686
+ return M(S) === t;
687
687
  }
688
- function L(b) {
689
- return A(b) === a;
688
+ function $(S) {
689
+ return M(S) === a;
690
690
  }
691
- function M(b) {
692
- return A(b) === o;
691
+ function z(S) {
692
+ return M(S) === o;
693
693
  }
694
- function ne(b) {
695
- return A(b) === f;
694
+ function U(S) {
695
+ return M(S) === f;
696
696
  }
697
- W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = H, W.ContextProvider = J, W.Element = U, W.ForwardRef = pe, W.Fragment = se, W.Lazy = ve, W.Memo = D, W.Portal = E, W.Profiler = q, W.StrictMode = Y, W.Suspense = Z, W.isAsyncMode = te, W.isConcurrentMode = w, W.isContextConsumer = k, W.isContextProvider = N, W.isElement = S, W.isForwardRef = R, W.isFragment = y, W.isLazy = C, W.isMemo = I, W.isPortal = $, W.isProfiler = L, W.isStrictMode = M, W.isSuspense = ne, W.isValidElementType = F, W.typeOf = A;
697
+ W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = H, W.ContextProvider = Q, W.Element = ie, W.ForwardRef = Z, W.Fragment = de, W.Lazy = fe, W.Memo = D, W.Portal = R, W.Profiler = G, W.StrictMode = J, W.Suspense = ee, W.isAsyncMode = te, W.isConcurrentMode = w, W.isContextConsumer = _, W.isContextProvider = N, W.isElement = L, W.isForwardRef = b, W.isFragment = I, W.isLazy = y, W.isMemo = F, W.isPortal = P, W.isProfiler = $, W.isStrictMode = z, W.isSuspense = U, W.isValidElementType = k, W.typeOf = M;
698
698
  }()), W;
699
699
  }
700
700
  var sn;
@@ -832,9 +832,9 @@ function Io() {
832
832
  return wt = function(l, s) {
833
833
  var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
834
834
  function f(w) {
835
- var k = w && (c && w[c] || w[d]);
836
- if (typeof k == "function")
837
- return k;
835
+ var _ = w && (c && w[c] || w[d]);
836
+ if (typeof _ == "function")
837
+ return _;
838
838
  }
839
839
  var g = "<<anonymous>>", p = {
840
840
  array: h("array"),
@@ -845,223 +845,223 @@ function Io() {
845
845
  object: h("object"),
846
846
  string: h("string"),
847
847
  symbol: h("symbol"),
848
- any: T(),
849
- arrayOf: F,
850
- element: A(),
848
+ any: A(),
849
+ arrayOf: k,
850
+ element: M(),
851
851
  elementType: x(),
852
852
  instanceOf: V,
853
- node: pe(),
854
- objectOf: J,
853
+ node: Z(),
854
+ objectOf: Q,
855
855
  oneOf: H,
856
- oneOfType: U,
857
- shape: ve,
856
+ oneOfType: ie,
857
+ shape: fe,
858
858
  exact: D
859
859
  };
860
- function m(w, k) {
861
- return w === k ? w !== 0 || 1 / w === 1 / k : w !== w && k !== k;
860
+ function m(w, _) {
861
+ return w === _ ? w !== 0 || 1 / w === 1 / _ : w !== w && _ !== _;
862
862
  }
863
- function v(w, k) {
864
- this.message = w, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
863
+ function v(w, _) {
864
+ this.message = w, this.data = _ && typeof _ == "object" ? _ : {}, this.stack = "";
865
865
  }
866
866
  v.prototype = Error.prototype;
867
- function P(w) {
867
+ function E(w) {
868
868
  if (process.env.NODE_ENV !== "production")
869
- var k = {}, N = 0;
870
- function S(y, C, I, $, L, M, ne) {
871
- if ($ = $ || g, M = M || I, ne !== t) {
869
+ var _ = {}, N = 0;
870
+ function L(I, y, F, P, $, z, U) {
871
+ if (P = P || g, z = z || F, U !== t) {
872
872
  if (s) {
873
- var b = new Error(
873
+ var S = 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
- throw b.name = "Invariant Violation", b;
876
+ throw S.name = "Invariant Violation", S;
877
877
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
878
- var ge = $ + ":" + I;
879
- !k[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
878
+ var ce = P + ":" + F;
879
+ !_[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
880
880
  N < 3 && (a(
881
- "You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + $ + "`. 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
- ), k[ge] = !0, N++);
881
+ "You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + P + "`. 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
+ ), _[ce] = !0, N++);
883
883
  }
884
884
  }
885
- return C[I] == null ? y ? C[I] === null ? new v("The " + L + " `" + M + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new v("The " + L + " `" + M + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : w(C, I, $, L, M);
885
+ return y[F] == null ? I ? y[F] === null ? new v("The " + $ + " `" + z + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new v("The " + $ + " `" + z + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : w(y, F, P, $, z);
886
886
  }
887
- var R = S.bind(null, !1);
888
- return R.isRequired = S.bind(null, !0), R;
887
+ var b = L.bind(null, !1);
888
+ return b.isRequired = L.bind(null, !0), b;
889
889
  }
890
890
  function h(w) {
891
- function k(N, S, R, y, C, I) {
892
- var $ = N[S], L = Y($);
893
- if (L !== w) {
894
- var M = Z($);
891
+ function _(N, L, b, I, y, F) {
892
+ var P = N[L], $ = J(P);
893
+ if ($ !== w) {
894
+ var z = ee(P);
895
895
  return new v(
896
- "Invalid " + y + " `" + C + "` of type " + ("`" + M + "` supplied to `" + R + "`, expected ") + ("`" + w + "`."),
896
+ "Invalid " + I + " `" + y + "` of type " + ("`" + z + "` supplied to `" + b + "`, expected ") + ("`" + w + "`."),
897
897
  { expectedType: w }
898
898
  );
899
899
  }
900
900
  return null;
901
901
  }
902
- return P(k);
902
+ return E(_);
903
903
  }
904
- function T() {
905
- return P(r);
904
+ function A() {
905
+ return E(r);
906
906
  }
907
- function F(w) {
908
- function k(N, S, R, y, C) {
907
+ function k(w) {
908
+ function _(N, L, b, I, y) {
909
909
  if (typeof w != "function")
910
- return new v("Property `" + C + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
911
- var I = N[S];
912
- if (!Array.isArray(I)) {
913
- var $ = Y(I);
914
- return new v("Invalid " + y + " `" + C + "` of type " + ("`" + $ + "` supplied to `" + R + "`, expected an array."));
910
+ return new v("Property `" + y + "` of component `" + b + "` has invalid PropType notation inside arrayOf.");
911
+ var F = N[L];
912
+ if (!Array.isArray(F)) {
913
+ var P = J(F);
914
+ return new v("Invalid " + I + " `" + y + "` of type " + ("`" + P + "` supplied to `" + b + "`, expected an array."));
915
915
  }
916
- for (var L = 0; L < I.length; L++) {
917
- var M = w(I, L, R, y, C + "[" + L + "]", t);
918
- if (M instanceof Error)
919
- return M;
916
+ for (var $ = 0; $ < F.length; $++) {
917
+ var z = w(F, $, b, I, y + "[" + $ + "]", t);
918
+ if (z instanceof Error)
919
+ return z;
920
920
  }
921
921
  return null;
922
922
  }
923
- return P(k);
923
+ return E(_);
924
924
  }
925
- function A() {
926
- function w(k, N, S, R, y) {
927
- var C = k[N];
928
- if (!l(C)) {
929
- var I = Y(C);
930
- return new v("Invalid " + R + " `" + y + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected a single ReactElement."));
925
+ function M() {
926
+ function w(_, N, L, b, I) {
927
+ var y = _[N];
928
+ if (!l(y)) {
929
+ var F = J(y);
930
+ return new v("Invalid " + b + " `" + I + "` of type " + ("`" + F + "` supplied to `" + L + "`, expected a single ReactElement."));
931
931
  }
932
932
  return null;
933
933
  }
934
- return P(w);
934
+ return E(w);
935
935
  }
936
936
  function x() {
937
- function w(k, N, S, R, y) {
938
- var C = k[N];
939
- if (!e.isValidElementType(C)) {
940
- var I = Y(C);
941
- return new v("Invalid " + R + " `" + y + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected a single ReactElement type."));
937
+ function w(_, N, L, b, I) {
938
+ var y = _[N];
939
+ if (!e.isValidElementType(y)) {
940
+ var F = J(y);
941
+ return new v("Invalid " + b + " `" + I + "` of type " + ("`" + F + "` supplied to `" + L + "`, expected a single ReactElement type."));
942
942
  }
943
943
  return null;
944
944
  }
945
- return P(w);
945
+ return E(w);
946
946
  }
947
947
  function V(w) {
948
- function k(N, S, R, y, C) {
949
- if (!(N[S] instanceof w)) {
950
- var I = w.name || g, $ = te(N[S]);
951
- return new v("Invalid " + y + " `" + C + "` of type " + ("`" + $ + "` supplied to `" + R + "`, expected ") + ("instance of `" + I + "`."));
948
+ function _(N, L, b, I, y) {
949
+ if (!(N[L] instanceof w)) {
950
+ var F = w.name || g, P = te(N[L]);
951
+ return new v("Invalid " + I + " `" + y + "` of type " + ("`" + P + "` supplied to `" + b + "`, expected ") + ("instance of `" + F + "`."));
952
952
  }
953
953
  return null;
954
954
  }
955
- return P(k);
955
+ return E(_);
956
956
  }
957
957
  function H(w) {
958
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 k(N, S, R, y, C) {
963
- for (var I = N[S], $ = 0; $ < w.length; $++)
964
- if (m(I, w[$]))
962
+ function _(N, L, b, I, y) {
963
+ for (var F = N[L], P = 0; P < w.length; P++)
964
+ if (m(F, w[P]))
965
965
  return null;
966
- var L = JSON.stringify(w, function(ne, b) {
967
- var ge = Z(b);
968
- return ge === "symbol" ? String(b) : b;
966
+ var $ = JSON.stringify(w, function(U, S) {
967
+ var ce = ee(S);
968
+ return ce === "symbol" ? String(S) : S;
969
969
  });
970
- return new v("Invalid " + y + " `" + C + "` of value `" + String(I) + "` " + ("supplied to `" + R + "`, expected one of " + L + "."));
970
+ return new v("Invalid " + I + " `" + y + "` of value `" + String(F) + "` " + ("supplied to `" + b + "`, expected one of " + $ + "."));
971
971
  }
972
- return P(k);
972
+ return E(_);
973
973
  }
974
- function J(w) {
975
- function k(N, S, R, y, C) {
974
+ function Q(w) {
975
+ function _(N, L, b, I, y) {
976
976
  if (typeof w != "function")
977
- return new v("Property `" + C + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
978
- var I = N[S], $ = Y(I);
979
- if ($ !== "object")
980
- return new v("Invalid " + y + " `" + C + "` of type " + ("`" + $ + "` supplied to `" + R + "`, expected an object."));
981
- for (var L in I)
982
- if (i(I, L)) {
983
- var M = w(I, L, R, y, C + "." + L, t);
984
- if (M instanceof Error)
985
- return M;
977
+ return new v("Property `" + y + "` of component `" + b + "` has invalid PropType notation inside objectOf.");
978
+ var F = N[L], P = J(F);
979
+ if (P !== "object")
980
+ return new v("Invalid " + I + " `" + y + "` of type " + ("`" + P + "` supplied to `" + b + "`, expected an object."));
981
+ for (var $ in F)
982
+ if (i(F, $)) {
983
+ var z = w(F, $, b, I, y + "." + $, t);
984
+ if (z instanceof Error)
985
+ return z;
986
986
  }
987
987
  return null;
988
988
  }
989
- return P(k);
989
+ return E(_);
990
990
  }
991
- function U(w) {
991
+ function ie(w) {
992
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 k = 0; k < w.length; k++) {
995
- var N = w[k];
994
+ for (var _ = 0; _ < w.length; _++) {
995
+ var N = w[_];
996
996
  if (typeof N != "function")
997
997
  return a(
998
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(N) + " at index " + k + "."
998
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(N) + " at index " + _ + "."
999
999
  ), r;
1000
1000
  }
1001
- function S(R, y, C, I, $) {
1002
- for (var L = [], M = 0; M < w.length; M++) {
1003
- var ne = w[M], b = ne(R, y, C, I, $, t);
1004
- if (b == null)
1001
+ function L(b, I, y, F, P) {
1002
+ for (var $ = [], z = 0; z < w.length; z++) {
1003
+ var U = w[z], S = U(b, I, y, F, P, t);
1004
+ if (S == null)
1005
1005
  return null;
1006
- b.data && i(b.data, "expectedType") && L.push(b.data.expectedType);
1006
+ S.data && i(S.data, "expectedType") && $.push(S.data.expectedType);
1007
1007
  }
1008
- var ge = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
1009
- return new v("Invalid " + I + " `" + $ + "` supplied to " + ("`" + C + "`" + ge + "."));
1008
+ var ce = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
1009
+ return new v("Invalid " + F + " `" + P + "` supplied to " + ("`" + y + "`" + ce + "."));
1010
1010
  }
1011
- return P(S);
1011
+ return E(L);
1012
1012
  }
1013
- function pe() {
1014
- function w(k, N, S, R, y) {
1015
- return E(k[N]) ? null : new v("Invalid " + R + " `" + y + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
1013
+ function Z() {
1014
+ function w(_, N, L, b, I) {
1015
+ return R(_[N]) ? null : new v("Invalid " + b + " `" + I + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
1016
1016
  }
1017
- return P(w);
1017
+ return E(w);
1018
1018
  }
1019
- function se(w, k, N, S, R) {
1019
+ function de(w, _, N, L, b) {
1020
1020
  return new v(
1021
- (w || "React class") + ": " + k + " type `" + N + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
1021
+ (w || "React class") + ": " + _ + " type `" + N + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + b + "`."
1022
1022
  );
1023
1023
  }
1024
- function ve(w) {
1025
- function k(N, S, R, y, C) {
1026
- var I = N[S], $ = Y(I);
1027
- if ($ !== "object")
1028
- return new v("Invalid " + y + " `" + C + "` of type `" + $ + "` " + ("supplied to `" + R + "`, expected `object`."));
1029
- for (var L in w) {
1030
- var M = w[L];
1031
- if (typeof M != "function")
1032
- return se(R, y, C, L, Z(M));
1033
- var ne = M(I, L, R, y, C + "." + L, t);
1034
- if (ne)
1035
- return ne;
1024
+ function fe(w) {
1025
+ function _(N, L, b, I, y) {
1026
+ var F = N[L], P = J(F);
1027
+ if (P !== "object")
1028
+ return new v("Invalid " + I + " `" + y + "` of type `" + P + "` " + ("supplied to `" + b + "`, expected `object`."));
1029
+ for (var $ in w) {
1030
+ var z = w[$];
1031
+ if (typeof z != "function")
1032
+ return de(b, I, y, $, ee(z));
1033
+ var U = z(F, $, b, I, y + "." + $, t);
1034
+ if (U)
1035
+ return U;
1036
1036
  }
1037
1037
  return null;
1038
1038
  }
1039
- return P(k);
1039
+ return E(_);
1040
1040
  }
1041
1041
  function D(w) {
1042
- function k(N, S, R, y, C) {
1043
- var I = N[S], $ = Y(I);
1044
- if ($ !== "object")
1045
- return new v("Invalid " + y + " `" + C + "` of type `" + $ + "` " + ("supplied to `" + R + "`, expected `object`."));
1046
- var L = n({}, N[S], w);
1047
- for (var M in L) {
1048
- var ne = w[M];
1049
- if (i(w, M) && typeof ne != "function")
1050
- return se(R, y, C, M, Z(ne));
1051
- if (!ne)
1042
+ function _(N, L, b, I, y) {
1043
+ var F = N[L], P = J(F);
1044
+ if (P !== "object")
1045
+ return new v("Invalid " + I + " `" + y + "` of type `" + P + "` " + ("supplied to `" + b + "`, expected `object`."));
1046
+ var $ = n({}, N[L], w);
1047
+ for (var z in $) {
1048
+ var U = w[z];
1049
+ if (i(w, z) && typeof U != "function")
1050
+ return de(b, I, y, z, ee(U));
1051
+ if (!U)
1052
1052
  return new v(
1053
- "Invalid " + y + " `" + C + "` key `" + M + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(N[S], null, " ") + `
1053
+ "Invalid " + I + " `" + y + "` key `" + z + "` supplied to `" + b + "`.\nBad object: " + JSON.stringify(N[L], null, " ") + `
1054
1054
  Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1055
1055
  );
1056
- var b = ne(I, M, R, y, C + "." + M, t);
1057
- if (b)
1058
- return b;
1056
+ var S = U(F, z, b, I, y + "." + z, t);
1057
+ if (S)
1058
+ return S;
1059
1059
  }
1060
1060
  return null;
1061
1061
  }
1062
- return P(k);
1062
+ return E(_);
1063
1063
  }
1064
- function E(w) {
1064
+ function R(w) {
1065
1065
  switch (typeof w) {
1066
1066
  case "number":
1067
1067
  case "string":
@@ -1071,20 +1071,20 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1071
1071
  return !w;
1072
1072
  case "object":
1073
1073
  if (Array.isArray(w))
1074
- return w.every(E);
1074
+ return w.every(R);
1075
1075
  if (w === null || l(w))
1076
1076
  return !0;
1077
- var k = f(w);
1078
- if (k) {
1079
- var N = k.call(w), S;
1080
- if (k !== w.entries) {
1081
- for (; !(S = N.next()).done; )
1082
- if (!E(S.value))
1077
+ var _ = f(w);
1078
+ if (_) {
1079
+ var N = _.call(w), L;
1080
+ if (_ !== w.entries) {
1081
+ for (; !(L = N.next()).done; )
1082
+ if (!R(L.value))
1083
1083
  return !1;
1084
1084
  } else
1085
- for (; !(S = N.next()).done; ) {
1086
- var R = S.value;
1087
- if (R && !E(R[1]))
1085
+ for (; !(L = N.next()).done; ) {
1086
+ var b = L.value;
1087
+ if (b && !R(b[1]))
1088
1088
  return !1;
1089
1089
  }
1090
1090
  } else
@@ -1094,37 +1094,37 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1094
1094
  return !1;
1095
1095
  }
1096
1096
  }
1097
- function q(w, k) {
1098
- return w === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
1097
+ function G(w, _) {
1098
+ return w === "symbol" ? !0 : _ ? _["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && _ instanceof Symbol : !1;
1099
1099
  }
1100
- function Y(w) {
1101
- var k = typeof w;
1102
- return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : q(k, w) ? "symbol" : k;
1100
+ function J(w) {
1101
+ var _ = typeof w;
1102
+ return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : G(_, w) ? "symbol" : _;
1103
1103
  }
1104
- function Z(w) {
1104
+ function ee(w) {
1105
1105
  if (typeof w > "u" || w === null)
1106
1106
  return "" + w;
1107
- var k = Y(w);
1108
- if (k === "object") {
1107
+ var _ = J(w);
1108
+ if (_ === "object") {
1109
1109
  if (w instanceof Date)
1110
1110
  return "date";
1111
1111
  if (w instanceof RegExp)
1112
1112
  return "regexp";
1113
1113
  }
1114
- return k;
1114
+ return _;
1115
1115
  }
1116
- function oe(w) {
1117
- var k = Z(w);
1118
- switch (k) {
1116
+ function ae(w) {
1117
+ var _ = ee(w);
1118
+ switch (_) {
1119
1119
  case "array":
1120
1120
  case "object":
1121
- return "an " + k;
1121
+ return "an " + _;
1122
1122
  case "boolean":
1123
1123
  case "date":
1124
1124
  case "regexp":
1125
- return "a " + k;
1125
+ return "a " + _;
1126
1126
  default:
1127
- return k;
1127
+ return _;
1128
1128
  }
1129
1129
  }
1130
1130
  function te(w) {
@@ -1192,7 +1192,7 @@ function $o() {
1192
1192
  return Ue.exports;
1193
1193
  }
1194
1194
  var Ao = /* @__PURE__ */ $o();
1195
- const X = /* @__PURE__ */ Bt(Ao);
1195
+ const Y = /* @__PURE__ */ Bt(Ao);
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 En(e, n) {
2855
2855
  }
2856
2856
  return t;
2857
2857
  }
2858
- function ee(e) {
2858
+ function ne(e) {
2859
2859
  for (var n = 1; n < arguments.length; n++) {
2860
2860
  var t = arguments[n] != null ? arguments[n] : {};
2861
2861
  n % 2 ? En(Object(t), !0).forEach(function(i) {
@@ -2892,7 +2892,7 @@ var Yt = /* @__PURE__ */ _i(function(e, n) {
2892
2892
  return {
2893
2893
  open: a
2894
2894
  };
2895
- }, [a]), /* @__PURE__ */ Si.createElement(Mn, null, t(ee(ee({}, r), {}, {
2895
+ }, [a]), /* @__PURE__ */ Si.createElement(Mn, null, t(ne(ne({}, r), {}, {
2896
2896
  open: a
2897
2897
  })));
2898
2898
  });
@@ -2930,7 +2930,7 @@ Yt.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: X.func,
2933
+ children: Y.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 @@ Yt.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: X.objectOf(X.arrayOf(X.string)),
2941
+ accept: Y.objectOf(Y.arrayOf(Y.string)),
2942
2942
  /**
2943
2943
  * Allow drag 'n' drop (or selection from the file dialog) of multiple files
2944
2944
  */
2945
- multiple: X.bool,
2945
+ multiple: Y.bool,
2946
2946
  /**
2947
2947
  * If false, allow dropped items to take over the current browser window
2948
2948
  */
2949
- preventDropOnDocument: X.bool,
2949
+ preventDropOnDocument: Y.bool,
2950
2950
  /**
2951
2951
  * If true, disables click to open the native file selection dialog
2952
2952
  */
2953
- noClick: X.bool,
2953
+ noClick: Y.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: X.bool,
2958
+ noKeyboard: Y.bool,
2959
2959
  /**
2960
2960
  * If true, disables drag 'n' drop
2961
2961
  */
2962
- noDrag: X.bool,
2962
+ noDrag: Y.bool,
2963
2963
  /**
2964
2964
  * If true, stops drag event propagation to parents
2965
2965
  */
2966
- noDragEventsBubbling: X.bool,
2966
+ noDragEventsBubbling: Y.bool,
2967
2967
  /**
2968
2968
  * Minimum file size (in bytes)
2969
2969
  */
2970
- minSize: X.number,
2970
+ minSize: Y.number,
2971
2971
  /**
2972
2972
  * Maximum file size (in bytes)
2973
2973
  */
2974
- maxSize: X.number,
2974
+ maxSize: Y.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: X.number,
2979
+ maxFiles: Y.number,
2980
2980
  /**
2981
2981
  * Enable/disable the dropzone
2982
2982
  */
2983
- disabled: X.bool,
2983
+ disabled: Y.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: X.func,
2989
+ getFilesFromEvent: Y.func,
2990
2990
  /**
2991
2991
  * Cb for when closing the file dialog with no selection
2992
2992
  */
2993
- onFileDialogCancel: X.func,
2993
+ onFileDialogCancel: Y.func,
2994
2994
  /**
2995
2995
  * Cb for when opening the file dialog
2996
2996
  */
2997
- onFileDialogOpen: X.func,
2997
+ onFileDialogOpen: Y.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: X.bool,
3002
+ useFsAccessApi: Y.bool,
3003
3003
  /**
3004
3004
  * Set to true to focus the root element on render
3005
3005
  */
3006
- autoFocus: X.bool,
3006
+ autoFocus: Y.bool,
3007
3007
  /**
3008
3008
  * Cb for when the `dragenter` event occurs.
3009
3009
  *
3010
3010
  * @param {DragEvent} event
3011
3011
  */
3012
- onDragEnter: X.func,
3012
+ onDragEnter: Y.func,
3013
3013
  /**
3014
3014
  * Cb for when the `dragleave` event occurs
3015
3015
  *
3016
3016
  * @param {DragEvent} event
3017
3017
  */
3018
- onDragLeave: X.func,
3018
+ onDragLeave: Y.func,
3019
3019
  /**
3020
3020
  * Cb for when the `dragover` event occurs
3021
3021
  *
3022
3022
  * @param {DragEvent} event
3023
3023
  */
3024
- onDragOver: X.func,
3024
+ onDragOver: Y.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 @@ Yt.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: X.func,
3055
+ onDrop: Y.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 @@ Yt.propTypes = {
3060
3060
  * @param {File[]} files
3061
3061
  * @param {(DragEvent|Event)} event
3062
3062
  */
3063
- onDropAccepted: X.func,
3063
+ onDropAccepted: Y.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 @@ Yt.propTypes = {
3068
3068
  * @param {FileRejection[]} fileRejections
3069
3069
  * @param {(DragEvent|Event)} event
3070
3070
  */
3071
- onDropRejected: X.func,
3071
+ onDropRejected: Y.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: X.func,
3077
+ onError: Y.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: X.func
3083
+ validator: Y.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 ti() {
3095
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = ee(ee({}, ei), 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, p = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, P = n.onFileDialogOpen, h = n.useFsAccessApi, T = n.autoFocus, F = n.preventDropOnDocument, A = n.noClick, x = n.noKeyboard, V = n.noDrag, H = n.noDragEventsBubbling, J = n.onError, U = n.validator, pe = le(function() {
3095
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = ne(ne({}, ei), 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, p = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, E = n.onFileDialogOpen, h = n.useFsAccessApi, A = n.autoFocus, k = n.preventDropOnDocument, M = n.noClick, x = n.noKeyboard, V = n.noDrag, H = n.noDragEventsBubbling, Q = n.onError, ie = n.validator, Z = se(function() {
3096
3096
  return ga(t);
3097
- }, [t]), se = le(function() {
3097
+ }, [t]), de = se(function() {
3098
3098
  return da(t);
3099
- }, [t]), ve = le(function() {
3100
- return typeof P == "function" ? P : kn;
3101
- }, [P]), D = le(function() {
3099
+ }, [t]), fe = se(function() {
3100
+ return typeof E == "function" ? E : kn;
3101
+ }, [E]), D = se(function() {
3102
3102
  return typeof v == "function" ? v : kn;
3103
- }, [v]), E = be(null), q = be(null), Y = An(Fa, Ot), Z = St(Y, 2), oe = Z[0], te = Z[1], w = oe.isFocused, k = oe.isFileDialogActive, N = be(typeof window < "u" && window.isSecureContext && h && ua()), S = function() {
3104
- !N.current && k && setTimeout(function() {
3105
- if (q.current) {
3106
- var z = q.current.files;
3107
- z.length || (te({
3103
+ }, [v]), R = be(null), G = be(null), J = An(Fa, Ot), ee = St(J, 2), ae = ee[0], te = ee[1], w = ae.isFocused, _ = ae.isFileDialogActive, N = be(typeof window < "u" && window.isSecureContext && h && ua()), L = function() {
3104
+ !N.current && _ && setTimeout(function() {
3105
+ if (G.current) {
3106
+ var T = G.current.files;
3107
+ T.length || (te({
3108
3108
  type: "closeDialog"
3109
3109
  }), D());
3110
3110
  }
3111
3111
  }, 300);
3112
3112
  };
3113
3113
  Ce(function() {
3114
- return window.addEventListener("focus", S, !1), function() {
3115
- window.removeEventListener("focus", S, !1);
3114
+ return window.addEventListener("focus", L, !1), function() {
3115
+ window.removeEventListener("focus", L, !1);
3116
3116
  };
3117
- }, [q, k, D, N]);
3118
- var R = be([]), y = function(z) {
3119
- E.current && E.current.contains(z.target) || (z.preventDefault(), R.current = []);
3117
+ }, [G, _, D, N]);
3118
+ var b = be([]), I = function(T) {
3119
+ R.current && R.current.contains(T.target) || (T.preventDefault(), b.current = []);
3120
3120
  };
3121
3121
  Ce(function() {
3122
- return F && (document.addEventListener("dragover", Rn, !1), document.addEventListener("drop", y, !1)), function() {
3123
- F && (document.removeEventListener("dragover", Rn), document.removeEventListener("drop", y));
3122
+ return k && (document.addEventListener("dragover", Rn, !1), document.addEventListener("drop", I, !1)), function() {
3123
+ k && (document.removeEventListener("dragover", Rn), document.removeEventListener("drop", I));
3124
3124
  };
3125
- }, [E, F]), Ce(function() {
3126
- return !i && T && E.current && E.current.focus(), function() {
3125
+ }, [R, k]), Ce(function() {
3126
+ return !i && A && R.current && R.current.focus(), function() {
3127
3127
  };
3128
- }, [E, T, i]);
3129
- var C = Q(function(_) {
3130
- J ? J(_) : console.error(_);
3131
- }, [J]), I = Q(function(_) {
3132
- _.preventDefault(), _.persist(), Ge(_), R.current = [].concat(ya(R.current), [_.target]), Ye(_) && Promise.resolve(o(_)).then(function(z) {
3133
- if (!(nt(_) && !H)) {
3134
- var ie = z.length, ae = ie > 0 && la({
3135
- files: z,
3136
- accept: pe,
3128
+ }, [R, A, i]);
3129
+ var y = X(function(C) {
3130
+ Q ? Q(C) : console.error(C);
3131
+ }, [Q]), F = X(function(C) {
3132
+ C.preventDefault(), C.persist(), Ge(C), b.current = [].concat(ya(b.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(T) {
3133
+ if (!(nt(C) && !H)) {
3134
+ var oe = T.length, re = oe > 0 && la({
3135
+ files: T,
3136
+ accept: Z,
3137
3137
  minSize: r,
3138
3138
  maxSize: a,
3139
3139
  multiple: l,
3140
3140
  maxFiles: s,
3141
- validator: U
3142
- }), fe = ie > 0 && !ae;
3141
+ validator: ie
3142
+ }), me = oe > 0 && !re;
3143
3143
  te({
3144
- isDragAccept: ae,
3145
- isDragReject: fe,
3144
+ isDragAccept: re,
3145
+ isDragReject: me,
3146
3146
  isDragActive: !0,
3147
3147
  type: "setDraggedFiles"
3148
- }), c && c(_);
3148
+ }), c && c(C);
3149
3149
  }
3150
- }).catch(function(z) {
3151
- return C(z);
3150
+ }).catch(function(T) {
3151
+ return y(T);
3152
3152
  });
3153
- }, [o, c, C, H, pe, r, a, l, s, U]), $ = Q(function(_) {
3154
- _.preventDefault(), _.persist(), Ge(_);
3155
- var z = Ye(_);
3156
- if (z && _.dataTransfer)
3153
+ }, [o, c, y, H, Z, r, a, l, s, ie]), P = X(function(C) {
3154
+ C.preventDefault(), C.persist(), Ge(C);
3155
+ var T = Ye(C);
3156
+ if (T && C.dataTransfer)
3157
3157
  try {
3158
- _.dataTransfer.dropEffect = "copy";
3158
+ C.dataTransfer.dropEffect = "copy";
3159
3159
  } catch {
3160
3160
  }
3161
- return z && f && f(_), !1;
3162
- }, [f, H]), L = Q(function(_) {
3163
- _.preventDefault(), _.persist(), Ge(_);
3164
- var z = R.current.filter(function(ae) {
3165
- return E.current && E.current.contains(ae);
3166
- }), ie = z.indexOf(_.target);
3167
- ie !== -1 && z.splice(ie, 1), R.current = z, !(z.length > 0) && (te({
3161
+ return T && f && f(C), !1;
3162
+ }, [f, H]), $ = X(function(C) {
3163
+ C.preventDefault(), C.persist(), Ge(C);
3164
+ var T = b.current.filter(function(re) {
3165
+ return R.current && R.current.contains(re);
3166
+ }), oe = T.indexOf(C.target);
3167
+ oe !== -1 && T.splice(oe, 1), b.current = T, !(T.length > 0) && (te({
3168
3168
  type: "setDraggedFiles",
3169
3169
  isDragActive: !1,
3170
3170
  isDragAccept: !1,
3171
3171
  isDragReject: !1
3172
- }), Ye(_) && d && d(_));
3173
- }, [E, d, H]), M = Q(function(_, z) {
3174
- var ie = [], ae = [];
3175
- _.forEach(function(fe) {
3176
- var ze = Yn(fe, pe), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Xn(fe, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = U ? U(fe) : null;
3172
+ }), Ye(C) && d && d(C));
3173
+ }, [R, d, H]), z = X(function(C, T) {
3174
+ var oe = [], re = [];
3175
+ C.forEach(function(me) {
3176
+ var ze = Yn(me, Z), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Xn(me, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = ie ? ie(me) : null;
3177
3177
  if (lt && pt && !dt)
3178
- ie.push(fe);
3178
+ oe.push(me);
3179
3179
  else {
3180
3180
  var gt = [st, ut];
3181
- dt && (gt = gt.concat(dt)), ae.push({
3182
- file: fe,
3181
+ dt && (gt = gt.concat(dt)), re.push({
3182
+ file: me,
3183
3183
  errors: gt.filter(function(bi) {
3184
3184
  return bi;
3185
3185
  })
3186
3186
  });
3187
3187
  }
3188
- }), (!l && ie.length > 1 || l && s >= 1 && ie.length > s) && (ie.forEach(function(fe) {
3189
- ae.push({
3190
- file: fe,
3188
+ }), (!l && oe.length > 1 || l && s >= 1 && oe.length > s) && (oe.forEach(function(me) {
3189
+ re.push({
3190
+ file: me,
3191
3191
  errors: [ra]
3192
3192
  });
3193
- }), ie.splice(0)), te({
3194
- acceptedFiles: ie,
3195
- fileRejections: ae,
3196
- isDragReject: ae.length > 0,
3193
+ }), oe.splice(0)), te({
3194
+ acceptedFiles: oe,
3195
+ fileRejections: re,
3196
+ isDragReject: re.length > 0,
3197
3197
  type: "setFiles"
3198
- }), g && g(ie, ae, z), ae.length > 0 && m && m(ae, z), ie.length > 0 && p && p(ie, z);
3199
- }, [te, l, pe, r, a, s, g, p, m, U]), ne = Q(function(_) {
3200
- _.preventDefault(), _.persist(), Ge(_), R.current = [], Ye(_) && Promise.resolve(o(_)).then(function(z) {
3201
- nt(_) && !H || M(z, _);
3202
- }).catch(function(z) {
3203
- return C(z);
3198
+ }), g && g(oe, re, T), re.length > 0 && m && m(re, T), oe.length > 0 && p && p(oe, T);
3199
+ }, [te, l, Z, r, a, s, g, p, m, ie]), U = X(function(C) {
3200
+ C.preventDefault(), C.persist(), Ge(C), b.current = [], Ye(C) && Promise.resolve(o(C)).then(function(T) {
3201
+ nt(C) && !H || z(T, C);
3202
+ }).catch(function(T) {
3203
+ return y(T);
3204
3204
  }), te({
3205
3205
  type: "reset"
3206
3206
  });
3207
- }, [o, M, C, H]), b = Q(function() {
3207
+ }, [o, z, y, H]), S = X(function() {
3208
3208
  if (N.current) {
3209
3209
  te({
3210
3210
  type: "openDialog"
3211
- }), ve();
3212
- var _ = {
3211
+ }), fe();
3212
+ var C = {
3213
3213
  multiple: l,
3214
- types: se
3214
+ types: de
3215
3215
  };
3216
- window.showOpenFilePicker(_).then(function(z) {
3217
- return o(z);
3218
- }).then(function(z) {
3219
- M(z, null), te({
3216
+ window.showOpenFilePicker(C).then(function(T) {
3217
+ return o(T);
3218
+ }).then(function(T) {
3219
+ z(T, null), te({
3220
3220
  type: "closeDialog"
3221
3221
  });
3222
- }).catch(function(z) {
3223
- fa(z) ? (D(z), te({
3222
+ }).catch(function(T) {
3223
+ fa(T) ? (D(T), te({
3224
3224
  type: "closeDialog"
3225
- })) : ma(z) ? (N.current = !1, q.current ? (q.current.value = null, q.current.click()) : C(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."))) : C(z);
3225
+ })) : ma(T) ? (N.current = !1, G.current ? (G.current.value = null, G.current.click()) : y(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."))) : y(T);
3226
3226
  });
3227
3227
  return;
3228
3228
  }
3229
- q.current && (te({
3229
+ G.current && (te({
3230
3230
  type: "openDialog"
3231
- }), ve(), q.current.value = null, q.current.click());
3232
- }, [te, ve, D, h, M, C, se, l]), ge = Q(function(_) {
3233
- !E.current || !E.current.isEqualNode(_.target) || (_.key === " " || _.key === "Enter" || _.keyCode === 32 || _.keyCode === 13) && (_.preventDefault(), b());
3234
- }, [E, b]), Fe = Q(function() {
3231
+ }), fe(), G.current.value = null, G.current.click());
3232
+ }, [te, fe, D, h, z, y, de, l]), ce = X(function(C) {
3233
+ !R.current || !R.current.isEqualNode(C.target) || (C.key === " " || C.key === "Enter" || C.keyCode === 32 || C.keyCode === 13) && (C.preventDefault(), S());
3234
+ }, [R, S]), Fe = X(function() {
3235
3235
  te({
3236
3236
  type: "focus"
3237
3237
  });
3238
- }, []), Te = Q(function() {
3238
+ }, []), Te = X(function() {
3239
3239
  te({
3240
3240
  type: "blur"
3241
3241
  });
3242
- }, []), Zt = Q(function() {
3243
- A || (pa() ? setTimeout(b, 0) : b());
3244
- }, [A, b]), $e = function(z) {
3245
- return i ? null : z;
3246
- }, rt = function(z) {
3247
- return x ? null : $e(z);
3248
- }, qe = function(z) {
3249
- return V ? null : $e(z);
3250
- }, Ge = function(z) {
3251
- H && z.stopPropagation();
3252
- }, hi = le(function() {
3242
+ }, []), Zt = X(function() {
3243
+ M || (pa() ? setTimeout(S, 0) : S());
3244
+ }, [M, S]), $e = function(T) {
3245
+ return i ? null : T;
3246
+ }, rt = function(T) {
3247
+ return x ? null : $e(T);
3248
+ }, qe = function(T) {
3249
+ return V ? null : $e(T);
3250
+ }, Ge = function(T) {
3251
+ H && T.stopPropagation();
3252
+ }, hi = se(function() {
3253
3253
  return function() {
3254
- var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, z = _.refKey, ie = z === void 0 ? "ref" : z, ae = _.role, fe = _.onKeyDown, ze = _.onFocus, Ae = _.onBlur, lt = _.onClick, st = _.onDragEnter, ct = _.onDragOver, Be = _.onDragLeave, pt = _.onDrop, ut = it(_, ha);
3255
- return ee(ee(Mt({
3256
- onKeyDown: rt(ye(fe, ge)),
3254
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = C.refKey, oe = T === void 0 ? "ref" : T, re = 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, ha);
3255
+ return ne(ne(Mt({
3256
+ onKeyDown: rt(ye(me, ce)),
3257
3257
  onFocus: rt(ye(ze, Fe)),
3258
3258
  onBlur: rt(ye(Ae, Te)),
3259
3259
  onClick: $e(ye(lt, Zt)),
3260
- onDragEnter: qe(ye(st, I)),
3261
- onDragOver: qe(ye(ct, $)),
3262
- onDragLeave: qe(ye(Be, L)),
3263
- onDrop: qe(ye(pt, ne)),
3264
- role: typeof ae == "string" && ae !== "" ? ae : "presentation"
3265
- }, ie, E), !i && !x ? {
3260
+ onDragEnter: qe(ye(st, F)),
3261
+ onDragOver: qe(ye(ct, P)),
3262
+ onDragLeave: qe(ye(Be, $)),
3263
+ onDrop: qe(ye(pt, U)),
3264
+ role: typeof re == "string" && re !== "" ? re : "presentation"
3265
+ }, oe, R), !i && !x ? {
3266
3266
  tabIndex: 0
3267
3267
  } : {}), ut);
3268
3268
  };
3269
- }, [E, ge, Fe, Te, Zt, I, $, L, ne, x, V, i]), wi = Q(function(_) {
3270
- _.stopPropagation();
3271
- }, []), yi = le(function() {
3269
+ }, [R, ce, Fe, Te, Zt, F, P, $, U, x, V, i]), wi = X(function(C) {
3270
+ C.stopPropagation();
3271
+ }, []), yi = se(function() {
3272
3272
  return function() {
3273
- var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, z = _.refKey, ie = z === void 0 ? "ref" : z, ae = _.onChange, fe = _.onClick, ze = it(_, wa), Ae = Mt({
3274
- accept: pe,
3273
+ var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = C.refKey, oe = T === void 0 ? "ref" : T, re = C.onChange, me = C.onClick, ze = it(C, wa), Ae = Mt({
3274
+ accept: Z,
3275
3275
  multiple: l,
3276
3276
  type: "file",
3277
3277
  style: {
@@ -3286,54 +3286,54 @@ function ti() {
3286
3286
  width: "1px",
3287
3287
  whiteSpace: "nowrap"
3288
3288
  },
3289
- onChange: $e(ye(ae, ne)),
3290
- onClick: $e(ye(fe, wi)),
3289
+ onChange: $e(ye(re, U)),
3290
+ onClick: $e(ye(me, wi)),
3291
3291
  tabIndex: -1
3292
- }, ie, q);
3293
- return ee(ee({}, Ae), ze);
3292
+ }, oe, G);
3293
+ return ne(ne({}, Ae), ze);
3294
3294
  };
3295
- }, [q, t, l, ne, i]);
3296
- return ee(ee({}, oe), {}, {
3295
+ }, [G, t, l, U, i]);
3296
+ return ne(ne({}, ae), {}, {
3297
3297
  isFocused: w && !i,
3298
3298
  getRootProps: hi,
3299
3299
  getInputProps: yi,
3300
- rootRef: E,
3301
- inputRef: q,
3302
- open: $e(b)
3300
+ rootRef: R,
3301
+ inputRef: G,
3302
+ open: $e(S)
3303
3303
  });
3304
3304
  }
3305
3305
  function Fa(e, n) {
3306
3306
  switch (n.type) {
3307
3307
  case "focus":
3308
- return ee(ee({}, e), {}, {
3308
+ return ne(ne({}, e), {}, {
3309
3309
  isFocused: !0
3310
3310
  });
3311
3311
  case "blur":
3312
- return ee(ee({}, e), {}, {
3312
+ return ne(ne({}, e), {}, {
3313
3313
  isFocused: !1
3314
3314
  });
3315
3315
  case "openDialog":
3316
- return ee(ee({}, Ot), {}, {
3316
+ return ne(ne({}, Ot), {}, {
3317
3317
  isFileDialogActive: !0
3318
3318
  });
3319
3319
  case "closeDialog":
3320
- return ee(ee({}, e), {}, {
3320
+ return ne(ne({}, e), {}, {
3321
3321
  isFileDialogActive: !1
3322
3322
  });
3323
3323
  case "setDraggedFiles":
3324
- return ee(ee({}, e), {}, {
3324
+ return ne(ne({}, e), {}, {
3325
3325
  isDragActive: n.isDragActive,
3326
3326
  isDragAccept: n.isDragAccept,
3327
3327
  isDragReject: n.isDragReject
3328
3328
  });
3329
3329
  case "setFiles":
3330
- return ee(ee({}, e), {}, {
3330
+ return ne(ne({}, e), {}, {
3331
3331
  acceptedFiles: n.acceptedFiles,
3332
3332
  fileRejections: n.fileRejections,
3333
3333
  isDragReject: n.isDragReject
3334
3334
  });
3335
3335
  case "reset":
3336
- return ee({}, Ot);
3336
+ return ne({}, Ot);
3337
3337
  default:
3338
3338
  return e;
3339
3339
  }
@@ -3375,7 +3375,7 @@ const Pa = () => {
3375
3375
  acceptedFiles: [],
3376
3376
  fileRejections: []
3377
3377
  }
3378
- ), o = Q(
3378
+ ), o = X(
3379
3379
  (l, s) => i({
3380
3380
  type: "add-files",
3381
3381
  payload: { acceptedFiles: l, fileRejections: s }
@@ -3405,7 +3405,7 @@ const Pa = () => {
3405
3405
  return /* @__PURE__ */ B(
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: [
@@ -3524,41 +3524,41 @@ const Pa = () => {
3524
3524
  groupFn: s = $a,
3525
3525
  ...c
3526
3526
  }) => {
3527
- const d = le(
3527
+ const d = se(
3528
3528
  () => new Set(n.map((h) => h.value)),
3529
3529
  [n]
3530
- ), f = le(
3530
+ ), f = se(
3531
3531
  () => new Set(t.map((h) => h.value)),
3532
3532
  [t]
3533
- ), [g, p] = de(new Set(d));
3533
+ ), [g, p] = ge(new Set(d));
3534
3534
  Ce(() => {
3535
3535
  a && p(new Set(d));
3536
3536
  }, [a]);
3537
- const m = le(() => e.some((h) => h.group), [e]), v = le(
3537
+ const m = se(() => e.some((h) => h.group), [e]), v = se(
3538
3538
  () => m ? s(e) : [{ group: "Ungrouped", items: e }],
3539
3539
  [e, s]
3540
- ), P = (h) => {
3541
- const { checked: T, value: F } = h.target, A = e.find((x) => `${x.value}` === F);
3542
- if (A) {
3543
- const x = T ? [...n, A] : n.filter((V) => `${V.value}` !== F) ?? [];
3540
+ ), E = (h) => {
3541
+ const { checked: A, value: k } = h.target, M = e.find((x) => `${x.value}` === k);
3542
+ if (M) {
3543
+ const x = A ? [...n, M] : n.filter((V) => `${V.value}` !== k) ?? [];
3544
3544
  o(x);
3545
3545
  }
3546
3546
  };
3547
3547
  return /* @__PURE__ */ u(Hn, { isVisible: a, className: "put-above", children: /* @__PURE__ */ B("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
3548
3548
  i || null,
3549
- v.map(({ group: h, items: T }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
3549
+ v.map(({ group: h, items: A }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
3550
3550
  m ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: h }) : null,
3551
- /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: T.sort(l).sort(Da(g)).map((F) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
3551
+ /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: A.sort(l).sort(Da(g)).map((k) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
3552
3552
  $i,
3553
3553
  {
3554
- disabled: f.has(F.value),
3555
- label: F.label,
3556
- checked: d.has(F.value),
3557
- value: F.value,
3558
- onChange: P
3554
+ disabled: f.has(k.value),
3555
+ label: k.label,
3556
+ checked: d.has(k.value),
3557
+ value: k.value,
3558
+ onChange: E
3559
3559
  },
3560
- F.value
3561
- ) }, F.value)) })
3560
+ k.value
3561
+ ) }, k.value)) })
3562
3562
  ] }, h)),
3563
3563
  r ? /* @__PURE__ */ u("div", { className: "multi-select__footer", children: r }) : null
3564
3564
  ] }) });
@@ -3581,22 +3581,22 @@ const Pa = () => {
3581
3581
  Mi(() => {
3582
3582
  p(!1), v("");
3583
3583
  });
3584
- const [g, p] = de(!1), [m, v] = de("");
3584
+ const [g, p] = ge(!1), [m, v] = ge("");
3585
3585
  Ce(() => {
3586
3586
  g || v("");
3587
3587
  }, [g]);
3588
- const [P, h] = de([]), T = n || P, F = (H) => {
3589
- const J = Array.from(new Set(H));
3590
- h(J), i && i(J);
3591
- }, A = et(), x = et(), V = T.filter(
3592
- (H) => r.some((J) => J.value === H.value)
3588
+ const [E, h] = ge([]), A = n || E, k = (H) => {
3589
+ const Q = Array.from(new Set(H));
3590
+ h(Q), i && i(Q);
3591
+ }, M = et(), x = et(), V = A.filter(
3592
+ (H) => r.some((Q) => Q.value === H.value)
3593
3593
  ).sort(ni).map((H) => H.label).join(", ");
3594
3594
  return /* @__PURE__ */ u("div", { ref: f, children: /* @__PURE__ */ B("div", { className: "multi-select", children: [
3595
3595
  d === "search" ? /* @__PURE__ */ u(
3596
3596
  jn,
3597
3597
  {
3598
3598
  externallyControlled: !0,
3599
- "aria-controls": A,
3599
+ "aria-controls": M,
3600
3600
  "aria-expanded": g,
3601
3601
  id: x,
3602
3602
  role: "combobox",
@@ -3619,27 +3619,27 @@ const Pa = () => {
3619
3619
  role: "combobox",
3620
3620
  type: "button",
3621
3621
  "aria-label": t || o || "Select items",
3622
- "aria-controls": A,
3622
+ "aria-controls": M,
3623
3623
  "aria-expanded": g,
3624
3624
  className: "multi-select__select-button",
3625
3625
  onClick: () => {
3626
3626
  p((H) => !H);
3627
3627
  },
3628
- children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: T.length > 0 ? V : o ?? "Select items" })
3628
+ children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: A.length > 0 ? V : o ?? "Select items" })
3629
3629
  }
3630
3630
  ),
3631
3631
  /* @__PURE__ */ u(
3632
3632
  Aa,
3633
3633
  {
3634
- id: A,
3634
+ id: M,
3635
3635
  isOpen: g,
3636
3636
  items: m.length > 0 ? r.filter(
3637
3637
  (H) => H.label.toLowerCase().includes(m.toLowerCase())
3638
3638
  ) : r,
3639
- selectedItems: T,
3639
+ selectedItems: A,
3640
3640
  disabledItems: l,
3641
3641
  header: s,
3642
- updateItems: F,
3642
+ updateItems: k,
3643
3643
  footer: c || /* @__PURE__ */ B(we, { children: [
3644
3644
  /* @__PURE__ */ u(
3645
3645
  _e,
@@ -3647,11 +3647,11 @@ const Pa = () => {
3647
3647
  appearance: "link",
3648
3648
  onClick: () => {
3649
3649
  const H = r.filter(
3650
- (J) => !l.some(
3651
- (U) => U.value === J.value
3650
+ (Q) => !l.some(
3651
+ (ie) => ie.value === Q.value
3652
3652
  )
3653
3653
  );
3654
- F([...T, ...H]);
3654
+ k([...A, ...H]);
3655
3655
  },
3656
3656
  type: "button",
3657
3657
  children: "Select all"
@@ -3662,12 +3662,12 @@ const Pa = () => {
3662
3662
  {
3663
3663
  appearance: "link",
3664
3664
  onClick: () => {
3665
- const H = T.filter(
3666
- (J) => l.some(
3667
- (U) => U.value === J.value
3665
+ const H = A.filter(
3666
+ (Q) => l.some(
3667
+ (ie) => ie.value === Q.value
3668
3668
  )
3669
3669
  );
3670
- F(H);
3670
+ k(H);
3671
3671
  },
3672
3672
  type: "button",
3673
3673
  children: "Clear"
@@ -3689,7 +3689,7 @@ const Pa = () => {
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 Pa = () => {
3697
3697
  ) }), Oa = ({ columns: e }) => /* @__PURE__ */ u(we, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ u("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ u(
3698
3698
  "td",
3699
3699
  {
3700
- className: G(i.id, "u-text-overflow-clip"),
3700
+ className: q(i.id, "u-text-overflow-clip"),
3701
3701
  children: /* @__PURE__ */ u(Gi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
3702
3702
  },
3703
3703
  o
@@ -3716,7 +3716,7 @@ const Pa = () => {
3716
3716
  style: t,
3717
3717
  ...i
3718
3718
  }) => {
3719
- const { variant: o } = Ht(ii), a = be(null), [r, l] = de(null), s = Q(() => {
3719
+ const { variant: o } = Ht(ii), a = be(null), [r, l] = ge(null), s = X(() => {
3720
3720
  var d, f;
3721
3721
  if (window.innerWidth > Ma.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 Pa = () => {
3727
3727
  On(() => {
3728
3728
  s();
3729
3729
  }, [s]), Ce(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
3730
- const c = le(() => o === "full-height" && r ? {
3730
+ const c = se(() => 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 @@ ri.Description = za;
3761
3761
  function Ee(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 La(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 pe = "debugHeaders";
3886
3886
  function Fn(e, n, t) {
3887
3887
  var i;
3888
3888
  let a = {
@@ -3918,27 +3918,27 @@ const Ha = {
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
- }, j(e.options, ce, "getHeaderGroups")), e.getCenterHeaderGroups = O(() => [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")), j(e.options, ce, "getCenterHeaderGroups")), e.getLeftHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
3921
+ }, j(e.options, pe, "getHeaderGroups")), e.getCenterHeaderGroups = O(() => [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")), j(e.options, pe, "getCenterHeaderGroups")), e.getLeftHeaderGroups = O(() => [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
- }, j(e.options, ce, "getLeftHeaderGroups")), e.getRightHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
3925
+ }, j(e.options, pe, "getLeftHeaderGroups")), e.getRightHeaderGroups = O(() => [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
- }, j(e.options, ce, "getRightHeaderGroups")), e.getFooterGroups = O(() => [e.getHeaderGroups()], (n) => [...n].reverse(), j(e.options, ce, "getFooterGroups")), e.getLeftFooterGroups = O(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), j(e.options, ce, "getLeftFooterGroups")), e.getCenterFooterGroups = O(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), j(e.options, ce, "getCenterFooterGroups")), e.getRightFooterGroups = O(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), j(e.options, ce, "getRightFooterGroups")), e.getFlatHeaders = O(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, ce, "getFlatHeaders")), e.getLeftFlatHeaders = O(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, ce, "getLeftFlatHeaders")), e.getCenterFlatHeaders = O(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, ce, "getCenterFlatHeaders")), e.getRightFlatHeaders = O(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, ce, "getRightFlatHeaders")), e.getCenterLeafHeaders = O(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
3929
+ }, j(e.options, pe, "getRightHeaderGroups")), e.getFooterGroups = O(() => [e.getHeaderGroups()], (n) => [...n].reverse(), j(e.options, pe, "getFooterGroups")), e.getLeftFooterGroups = O(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), j(e.options, pe, "getLeftFooterGroups")), e.getCenterFooterGroups = O(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), j(e.options, pe, "getCenterFooterGroups")), e.getRightFooterGroups = O(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), j(e.options, pe, "getRightFooterGroups")), e.getFlatHeaders = O(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, pe, "getFlatHeaders")), e.getLeftFlatHeaders = O(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, pe, "getLeftFlatHeaders")), e.getCenterFlatHeaders = O(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, pe, "getCenterFlatHeaders")), e.getRightFlatHeaders = O(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, pe, "getRightFlatHeaders")), e.getCenterLeafHeaders = O(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
3930
3930
  var i;
3931
3931
  return !((i = t.subHeaders) != null && i.length);
3932
- }), j(e.options, ce, "getCenterLeafHeaders")), e.getLeftLeafHeaders = O(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
3932
+ }), j(e.options, pe, "getCenterLeafHeaders")), e.getLeftLeafHeaders = O(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
3933
3933
  var i;
3934
3934
  return !((i = t.subHeaders) != null && i.length);
3935
- }), j(e.options, ce, "getLeftLeafHeaders")), e.getRightLeafHeaders = O(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
3935
+ }), j(e.options, pe, "getLeftLeafHeaders")), e.getRightLeafHeaders = O(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
3936
3936
  var i;
3937
3937
  return !((i = t.subHeaders) != null && i.length);
3938
- }), j(e.options, ce, "getRightLeafHeaders")), e.getLeafHeaders = O(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
3938
+ }), j(e.options, pe, "getRightLeafHeaders")), e.getLeafHeaders = O(() => [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
- }, j(e.options, ce, "getLeafHeaders"));
3941
+ }, j(e.options, pe, "getLeafHeaders"));
3942
3942
  }
3943
3943
  };
3944
3944
  function Xe(e, n, t, i) {
@@ -3958,22 +3958,22 @@ function Xe(e, n, t, i) {
3958
3958
  id: [i, `${p}`].filter(Boolean).join("_"),
3959
3959
  headers: []
3960
3960
  }, v = [];
3961
- g.forEach((P) => {
3962
- const h = [...v].reverse()[0], T = P.column.depth === m.depth;
3963
- let F, A = !1;
3964
- if (T && P.column.parent ? F = P.column.parent : (F = P.column, A = !0), h && (h == null ? void 0 : h.column) === F)
3965
- h.subHeaders.push(P);
3961
+ g.forEach((E) => {
3962
+ const h = [...v].reverse()[0], A = E.column.depth === m.depth;
3963
+ let k, M = !1;
3964
+ if (A && E.column.parent ? k = E.column.parent : (k = E.column, M = !0), h && (h == null ? void 0 : h.column) === k)
3965
+ h.subHeaders.push(E);
3966
3966
  else {
3967
- const x = Fn(t, F, {
3968
- id: [i, p, F.id, P == null ? void 0 : P.id].filter(Boolean).join("_"),
3969
- isPlaceholder: A,
3970
- placeholderId: A ? `${v.filter((V) => V.column === F).length}` : void 0,
3967
+ const x = Fn(t, k, {
3968
+ id: [i, p, k.id, E == null ? void 0 : E.id].filter(Boolean).join("_"),
3969
+ isPlaceholder: M,
3970
+ placeholderId: M ? `${v.filter((V) => V.column === k).length}` : void 0,
3971
3971
  depth: p,
3972
3972
  index: v.length
3973
3973
  });
3974
- x.subHeaders.push(P), v.push(x);
3974
+ x.subHeaders.push(E), v.push(x);
3975
3975
  }
3976
- m.headers.push(P), P.headerGroup = m;
3976
+ m.headers.push(E), E.headerGroup = m;
3977
3977
  }), s.push(m), p > 0 && c(v, p - 1);
3978
3978
  }, d = n.map((g, p) => Fn(t, g, {
3979
3979
  depth: r,
@@ -3981,18 +3981,18 @@ 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, P = 0, h = [0];
3985
- m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((F) => {
3984
+ let v = 0, E = 0, h = [0];
3985
+ m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((k) => {
3986
3986
  let {
3987
- colSpan: A,
3987
+ colSpan: M,
3988
3988
  rowSpan: x
3989
- } = F;
3990
- v += A, h.push(x);
3989
+ } = k;
3990
+ v += M, h.push(x);
3991
3991
  })) : v = 1;
3992
- const T = Math.min(...h);
3993
- return P = P + T, m.colSpan = v, m.rowSpan = P, {
3992
+ const A = Math.min(...h);
3993
+ return E = E + A, m.colSpan = v, m.rowSpan = E, {
3994
3994
  colSpan: v,
3995
- rowSpan: P
3995
+ rowSpan: E
3996
3996
  };
3997
3997
  });
3998
3998
  return f((o = (a = s[0]) == null ? void 0 : a.headers) != null ? o : []), s;
@@ -4123,7 +4123,7 @@ const Ga = {
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 Ba = (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 nr = {
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 = O((t) => [Ne(n, t)], (t) => t.findIndex((i) => i.id === e.id), j(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
@@ -4358,7 +4358,7 @@ const nr = {
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 nr = {
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 nr = {
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((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, T) => {
4497
- typeof T == "number" && (n.setColumnSizingInfo((F) => {
4498
- var A, x;
4499
- const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, H = (T - ((A = F == null ? void 0 : F.startOffset) != null ? A : 0)) * V, J = Math.max(H / ((x = F == null ? void 0 : F.startSize) != null ? x : 0), -0.999999);
4500
- return F.columnSizingStart.forEach((U) => {
4501
- let [pe, se] = U;
4502
- c[pe] = Math.round(Math.max(se + se * J, 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, A) => {
4497
+ typeof A == "number" && (n.setColumnSizingInfo((k) => {
4498
+ var M, x;
4499
+ const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, H = (A - ((M = k == null ? void 0 : k.startOffset) != null ? M : 0)) * V, Q = Math.max(H / ((x = k == null ? void 0 : k.startSize) != null ? x : 0), -0.999999);
4500
+ return k.columnSizingStart.forEach((ie) => {
4501
+ let [Z, de] = ie;
4502
+ c[Z] = Math.round(Math.max(de + de * Q, 0) * 100) / 100;
4503
4503
  }), {
4504
- ...F,
4504
+ ...k,
4505
4505
  deltaOffset: H,
4506
- deltaPercentage: J
4506
+ deltaPercentage: Q
4507
4507
  };
4508
- }), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((F) => ({
4509
- ...F,
4508
+ }), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((k) => ({
4509
+ ...k,
4510
4510
  ...c
4511
4511
  })));
4512
4512
  }, f = (h) => d("move", h), g = (h) => {
4513
- d("end", h), n.setColumnSizingInfo((T) => ({
4514
- ...T,
4513
+ d("end", h), n.setColumnSizingInfo((A) => ({
4514
+ ...A,
4515
4515
  isResizingColumn: !1,
4516
4516
  startOffset: null,
4517
4517
  startSize: null,
@@ -4527,13 +4527,13 @@ const nr = {
4527
4527
  }, v = {
4528
4528
  moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
4529
4529
  upHandler: (h) => {
4530
- var T;
4531
- p == null || p.removeEventListener("touchmove", v.moveHandler), p == null || p.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((T = h.touches[0]) == null ? void 0 : T.clientX);
4530
+ var A;
4531
+ p == null || p.removeEventListener("touchmove", v.moveHandler), p == null || p.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((A = h.touches[0]) == null ? void 0 : A.clientX);
4532
4532
  }
4533
- }, P = ar() ? {
4533
+ }, E = ar() ? {
4534
4534
  passive: !1
4535
4535
  } : !1;
4536
- Et(a) ? (p == null || p.addEventListener("touchmove", v.moveHandler, P), p == null || p.addEventListener("touchend", v.upHandler, P)) : (p == null || p.addEventListener("mousemove", m.moveHandler, P), p == null || p.addEventListener("mouseup", m.upHandler, P)), n.setColumnSizingInfo((h) => ({
4536
+ Et(a) ? (p == null || p.addEventListener("touchmove", v.moveHandler, E), p == null || p.addEventListener("touchend", v.upHandler, E)) : (p == null || p.addEventListener("mousemove", m.moveHandler, E), p == null || p.addEventListener("mouseup", m.upHandler, E)), n.setColumnSizingInfo((h) => ({
4537
4537
  ...h,
4538
4538
  startOffset: s,
4539
4539
  startSize: r,
@@ -4593,7 +4593,7 @@ const rr = {
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 lr = {
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 lr = {
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 lr = {
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 lr = {
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 lr = {
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) => {
@@ -5323,8 +5323,8 @@ function br(e) {
5323
5323
  },
5324
5324
  // footer: props => props.header.column.id,
5325
5325
  cell: (m) => {
5326
- var v, P;
5327
- return (v = (P = m.renderValue()) == null || P.toString == null ? void 0 : P.toString()) != null ? v : null;
5326
+ var v, E;
5327
+ return (v = (E = m.renderValue()) == null || E.toString == null ? void 0 : E.toString()) != null ? v : null;
5328
5328
  },
5329
5329
  ...o._features.reduce((m, v) => Object.assign(m, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
5330
5330
  ...g
@@ -5332,10 +5332,10 @@ function br(e) {
5332
5332
  }, j(e, "debugColumns", "_getDefaultColumnDef")),
5333
5333
  _getColumnDefs: () => o.options.columns,
5334
5334
  getAllColumns: O(() => [o._getColumnDefs()], (g) => {
5335
- const p = function(m, v, P) {
5336
- return P === void 0 && (P = 0), m.map((h) => {
5337
- const T = La(o, h, P, v), F = h;
5338
- return T.columns = F.columns ? p(F.columns, T, P + 1) : [], T;
5335
+ const p = function(m, v, E) {
5336
+ return E === void 0 && (E = 0), m.map((h) => {
5337
+ const A = La(o, h, E, v), k = h;
5338
+ return A.columns = k.columns ? p(k.columns, A, E + 1) : [], A;
5339
5339
  });
5340
5340
  };
5341
5341
  return p(g);
@@ -5404,18 +5404,18 @@ function Rr() {
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 = Er(s, f);
5406
5406
  return Array.from(g.entries()).map((m, v) => {
5407
- let [P, h] = m, T = `${f}:${P}`;
5408
- T = d ? `${d}>${T}` : T;
5409
- const F = r(h, c + 1, T);
5410
- F.forEach((V) => {
5411
- V.parentId = T;
5407
+ let [E, h] = m, A = `${f}:${E}`;
5408
+ A = d ? `${d}>${A}` : A;
5409
+ const k = r(h, c + 1, A);
5410
+ k.forEach((V) => {
5411
+ V.parentId = A;
5412
5412
  });
5413
- const A = c ? li(h, (V) => V.subRows) : h, x = si(e, T, A[0].original, v, c, void 0, d);
5413
+ const M = c ? li(h, (V) => V.subRows) : h, x = si(e, A, M[0].original, v, c, void 0, d);
5414
5414
  return Object.assign(x, {
5415
5415
  groupingColumnId: f,
5416
- groupingValue: P,
5417
- subRows: F,
5418
- leafRows: A,
5416
+ groupingValue: E,
5417
+ subRows: k,
5418
+ leafRows: M,
5419
5419
  getValue: (V) => {
5420
5420
  if (i.includes(V)) {
5421
5421
  if (x._valuesCache.hasOwnProperty(V))
@@ -5428,11 +5428,11 @@ function Rr() {
5428
5428
  }
5429
5429
  if (x._groupingValuesCache.hasOwnProperty(V))
5430
5430
  return x._groupingValuesCache[V];
5431
- const J = e.getColumn(V), U = J == null ? void 0 : J.getAggregationFn();
5432
- if (U)
5433
- return x._groupingValuesCache[V] = U(V, A, h), x._groupingValuesCache[V];
5431
+ const Q = e.getColumn(V), ie = Q == null ? void 0 : Q.getAggregationFn();
5432
+ if (ie)
5433
+ return x._groupingValuesCache[V] = ie(V, M, h), x._groupingValuesCache[V];
5434
5434
  }
5435
- }), F.forEach((V) => {
5435
+ }), k.forEach((V) => {
5436
5436
  o.push(V), a[V.id] = V;
5437
5437
  }), x;
5438
5438
  });
@@ -5516,7 +5516,7 @@ const Dr = ({
5516
5516
  asc: /* @__PURE__ */ u(Re, { name: "chevron-up", children: "ascending" }),
5517
5517
  desc: /* @__PURE__ */ u(Re, { name: "chevron-down", children: "descending" })
5518
5518
  }[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
5519
- }, $r = ({ header: e }) => /* @__PURE__ */ u("th", { className: G(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ u(
5519
+ }, $r = ({ header: e }) => /* @__PURE__ */ u("th", { className: q(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ u(
5520
5520
  _e,
5521
5521
  {
5522
5522
  appearance: "link",
@@ -5541,7 +5541,7 @@ const Or = ({
5541
5541
  isPending: r,
5542
5542
  pageSizes: l = [20, 30, 50, 100]
5543
5543
  }) => {
5544
- const s = le(() => l, []), c = le(
5544
+ const s = se(() => l, []), c = se(
5545
5545
  () => s.map((p) => ({
5546
5546
  label: `${p}/page`,
5547
5547
  value: p
@@ -5699,40 +5699,41 @@ const Yr = ({
5699
5699
  noData: f,
5700
5700
  pagination: g,
5701
5701
  pinGroup: p,
5702
- sortBy: m,
5703
- rowSelection: v,
5704
- setRowSelection: P,
5705
- showChevron: h = !1,
5706
- variant: T = "full-height",
5707
- ...F
5702
+ sorting: m = [],
5703
+ setSorting: v,
5704
+ rowSelection: E,
5705
+ setRowSelection: h,
5706
+ showChevron: A = !1,
5707
+ variant: k = "full-height",
5708
+ ...M
5708
5709
  }) => {
5709
- const A = be(null), [x, V] = de("auto"), [H, J] = de(!1), [U, pe] = de(c ?? []), [se, ve] = de(m ?? []), [D, E] = de(!0), q = (S) => {
5710
- E((R) => {
5711
- const y = typeof S == "function" ? S(R) : S;
5710
+ const x = be(null), [V, H] = ge("auto"), [Q, ie] = ge(!1), [Z, de] = ge(c ?? []), [fe, D] = ge(m ?? []), [R, G] = ge(!0), J = (b) => {
5711
+ G((I) => {
5712
+ const y = typeof b == "function" ? b(I) : b;
5712
5713
  if (y === !0) return !0;
5713
- const C = { ...y };
5714
- if (R !== !0)
5715
- for (const I of Object.keys(R))
5716
- I in C || (C[I] = !1);
5717
- return C;
5714
+ const F = { ...y };
5715
+ if (I !== !0)
5716
+ for (const P of Object.keys(I))
5717
+ P in F || (F[P] = !1);
5718
+ return F;
5718
5719
  });
5719
5720
  };
5720
5721
  Ce(() => {
5721
- U.length && q((S) => {
5722
- const y = { ...S === !0 ? {} : { ...S } };
5723
- for (const C of a) {
5724
- const I = U.map(($) => `${$}:${C[$]}`).join(">");
5725
- I in y || (y[I] = !0);
5722
+ Z.length && J((b) => {
5723
+ const y = { ...b === !0 ? {} : { ...b } };
5724
+ for (const F of a) {
5725
+ const P = Z.map(($) => `${$}:${F[$]}`).join(">");
5726
+ P in y || (y[P] = !0);
5726
5727
  }
5727
5728
  return y;
5728
5729
  });
5729
- }, [a, U]);
5730
- const Y = le(() => {
5731
- let S = [...i];
5730
+ }, [a, Z]);
5731
+ const ee = se(() => {
5732
+ let b = [...i];
5732
5733
  if (d)
5733
- return S;
5734
+ return b;
5734
5735
  if (n) {
5735
- const R = [
5736
+ const I = [
5736
5737
  {
5737
5738
  id: "p-generic-table__select",
5738
5739
  accessorKey: "id",
@@ -5747,9 +5748,9 @@ const Yr = ({
5747
5748
  }
5748
5749
  )
5749
5750
  },
5750
- ...S
5751
+ ...b
5751
5752
  ];
5752
- c ? S = [
5753
+ c ? b = [
5753
5754
  {
5754
5755
  id: "p-generic-table__group-select",
5755
5756
  accessorKey: "id",
@@ -5757,26 +5758,26 @@ const Yr = ({
5757
5758
  header: ({ table: y }) => /* @__PURE__ */ u(Me.All, { table: y }),
5758
5759
  cell: ({ row: y }) => y.getIsGrouped() ? /* @__PURE__ */ u(Me.Group, { row: y }) : null
5759
5760
  },
5760
- ...R
5761
- ] : S = R;
5761
+ ...I
5762
+ ] : b = I;
5762
5763
  }
5763
- return c && h && (S = [{
5764
+ return c && A && (b = [{
5764
5765
  id: "p-generic-table__group-chevron",
5765
5766
  accessorKey: "id",
5766
5767
  enableSorting: !1,
5767
5768
  header: "",
5768
5769
  cell: ({ row: y }) => {
5769
- const C = y.getIsExpanded();
5770
+ const F = y.getIsExpanded();
5770
5771
  return y.getIsGrouped() ? /* @__PURE__ */ u(
5771
5772
  Gt,
5772
5773
  {
5773
- message: C ? "Collapse" : "Expand",
5774
+ message: F ? "Collapse" : "Expand",
5774
5775
  position: "btm-right",
5775
- children: /* @__PURE__ */ u(Re, { name: C ? en.chevronUp : en.chevronDown })
5776
+ children: /* @__PURE__ */ u(Re, { name: F ? en.chevronUp : en.chevronDown })
5776
5777
  }
5777
5778
  ) : null;
5778
5779
  }
5779
- }, ...S]), S;
5780
+ }, ...b]), b;
5780
5781
  }, [
5781
5782
  n,
5782
5783
  i,
@@ -5784,66 +5785,68 @@ const Yr = ({
5784
5785
  c,
5785
5786
  s,
5786
5787
  t
5787
- ]), Z = le(() => U.length ? [...a].sort((S, R) => {
5788
- for (const y of U) {
5789
- const C = S[y] ?? null, I = R[y] ?? null;
5790
- if (C === null) return 1;
5791
- if (I === null || C < I) return -1;
5792
- if (C > I) return 1;
5788
+ ]), ae = se(() => Z.length ? [...a].sort((b, I) => {
5789
+ for (const y of Z) {
5790
+ const F = b[y] ?? null, P = I[y] ?? null;
5791
+ if (F === null) return 1;
5792
+ if (P === null || F < P) return -1;
5793
+ if (F > P) return 1;
5793
5794
  }
5794
5795
  return 0;
5795
- }) : a, [a, U]), oe = le(() => Z.length ? [...Z].sort((S, R) => {
5796
- if (p != null && p.length && U.length)
5797
- for (const { value: y, isTop: C } of p) {
5798
- const I = U[0], $ = S[I] ?? null, L = R[I] ?? null;
5799
- if ($ === y && L !== y)
5800
- return C ? -1 : 1;
5801
- if (L === y && $ !== y)
5802
- return C ? 1 : -1;
5796
+ }) : a, [a, Z]), te = se(() => ae.length ? [...ae].sort((b, I) => {
5797
+ if (p != null && p.length && Z.length)
5798
+ for (const { value: y, isTop: F } of p) {
5799
+ const P = Z[0], $ = b[P] ?? null, z = I[P] ?? null;
5800
+ if ($ === y && z !== y)
5801
+ return F ? -1 : 1;
5802
+ if (z === y && $ !== y)
5803
+ return F ? 1 : -1;
5803
5804
  }
5804
- for (const { id: y, desc: C } of se) {
5805
- const I = S[y] ?? null, $ = R[y] ?? null;
5806
- if (I === null && $ === null) return 0;
5807
- if (I === null) return C ? -1 : 1;
5808
- if ($ === null || I < $)
5809
- return C ? 1 : -1;
5810
- if (I > $)
5811
- return C ? -1 : 1;
5805
+ for (const { id: y, desc: F } of fe) {
5806
+ const P = b[y] ?? null, $ = I[y] ?? null;
5807
+ if (P === null && $ === null) return 0;
5808
+ if (P === null) return F ? -1 : 1;
5809
+ if ($ === null || P < $)
5810
+ return F ? 1 : -1;
5811
+ if (P > $)
5812
+ return F ? -1 : 1;
5812
5813
  }
5813
5814
  return 0;
5814
- }) : [], [Z, se, p, U]);
5815
+ }) : [], [ae, fe, p, Z]);
5815
5816
  On(() => {
5816
- const S = () => {
5817
- const C = A.current;
5818
- if (!C) return;
5819
- const I = (o == null ? void 0 : o.current) || document.querySelector("main");
5820
- if (!I) return;
5821
- const $ = I.getBoundingClientRect(), L = C.getBoundingClientRect(), M = $.bottom - L.top, b = C.scrollHeight > M;
5822
- J(b), V(
5823
- T === "full-height" && b ? `${M}px` : "auto"
5817
+ const b = () => {
5818
+ const F = x.current;
5819
+ if (!F) return;
5820
+ const P = (o == null ? void 0 : o.current) || document.querySelector("main");
5821
+ if (!P) return;
5822
+ const $ = P.getBoundingClientRect(), z = F.getBoundingClientRect(), U = $.bottom - z.top, ce = F.scrollHeight > U;
5823
+ ie(ce), H(
5824
+ k === "full-height" && ce ? `${U}px` : "auto"
5824
5825
  );
5825
5826
  };
5826
- S();
5827
- const R = new ResizeObserver(S), y = A.current;
5828
- return y && R.observe(y), window.addEventListener("resize", S), () => {
5829
- window.removeEventListener("resize", S), y && R.unobserve(y);
5827
+ b();
5828
+ const I = new ResizeObserver(b), y = x.current;
5829
+ return y && I.observe(y), window.addEventListener("resize", b), () => {
5830
+ window.removeEventListener("resize", b), y && I.unobserve(y);
5830
5831
  };
5831
- }, [o, oe.length, d]);
5832
- const te = T === "full-height" && H ? "full-height" : "regular", w = Ir({
5833
- data: oe,
5834
- columns: Y,
5832
+ }, [o, te.length, d]);
5833
+ const w = k === "full-height" && Q ? "full-height" : "regular", _ = Ir({
5834
+ data: te,
5835
+ columns: ee,
5835
5836
  state: {
5836
- grouping: U,
5837
- expanded: D,
5838
- sorting: se,
5839
- rowSelection: v
5837
+ grouping: Z,
5838
+ expanded: R,
5839
+ sorting: fe,
5840
+ rowSelection: E
5840
5841
  },
5841
5842
  manualPagination: !0,
5842
5843
  autoResetExpanded: !1,
5843
- onExpandedChange: q,
5844
- onSortingChange: ve,
5845
- onGroupingChange: pe,
5846
- onRowSelectionChange: P,
5844
+ onExpandedChange: J,
5845
+ onSortingChange: (b) => {
5846
+ D(b), v && v(b);
5847
+ },
5848
+ onGroupingChange: de,
5849
+ onRowSelectionChange: h,
5847
5850
  manualSorting: !0,
5848
5851
  enableSorting: !0,
5849
5852
  enableExpanding: !0,
@@ -5854,24 +5857,24 @@ const Yr = ({
5854
5857
  groupedColumnMode: !1,
5855
5858
  enableRowSelection: n,
5856
5859
  enableMultiRowSelection: n,
5857
- getRowId: (S) => S.id.toString()
5858
- }), k = () => /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__loading", colSpan: Y.length, children: /* @__PURE__ */ u(qt, { text: "Loading..." }) }) }), N = () => w.getRowModel().rows.length < 1 ? /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__no-data", colSpan: Y.length, children: f }) }) : w.getRowModel().rows.map((S) => {
5859
- const { getIsGrouped: R, id: y, getVisibleCells: C, parentId: I } = S, $ = !R(), L = v !== void 0 && Object.keys(v).includes(y);
5860
+ getRowId: (b) => b.id.toString()
5861
+ }), N = () => /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__loading", colSpan: ee.length, children: /* @__PURE__ */ u(qt, { text: "Loading..." }) }) }), L = () => _.getRowModel().rows.length < 1 ? /* @__PURE__ */ u("tr", { children: /* @__PURE__ */ u("td", { className: "p-generic-table__no-data", colSpan: ee.length, children: f }) }) : _.getRowModel().rows.map((b) => {
5862
+ const { getIsGrouped: I, id: y, getVisibleCells: F, parentId: P } = b, $ = !I(), z = E !== void 0 && Object.keys(E).includes(y);
5860
5863
  return /* @__PURE__ */ u(
5861
5864
  "tr",
5862
5865
  {
5863
5866
  "aria-rowindex": parseInt(y.replace(/\D/g, "") || "0", 10) + 1,
5864
- "aria-selected": L,
5865
- className: G({
5867
+ "aria-selected": z,
5868
+ className: q({
5866
5869
  "p-generic-table__individual-row": $,
5867
5870
  "p-generic-table__group-row": !$,
5868
- "p-generic-table__nested-row": s !== void 0 && !!I
5871
+ "p-generic-table__nested-row": s !== void 0 && !!P
5869
5872
  }),
5870
5873
  onClick: () => {
5871
- $ || S.toggleExpanded();
5874
+ $ || b.toggleExpanded();
5872
5875
  },
5873
5876
  role: "row",
5874
- children: C().filter((M) => !$ && (M.column.id === "p-generic-table__group-select" || M.column.id === "p-generic-table__group-chevron") ? !0 : r(S, M.column)).map((M) => /* @__PURE__ */ u("td", { className: G(`${M.column.id}`), children: Lt(M.column.columnDef.cell, M.getContext()) }, M.id))
5877
+ children: F().filter((U) => !$ && (U.column.id === "p-generic-table__group-select" || U.column.id === "p-generic-table__group-chevron") ? !0 : r(b, U.column)).map((U) => /* @__PURE__ */ u("td", { className: q(`${U.column.id}`), children: Lt(U.column.columnDef.cell, U.getContext()) }, U.id))
5875
5878
  },
5876
5879
  y
5877
5880
  );
@@ -5879,9 +5882,9 @@ const Yr = ({
5879
5882
  return /* @__PURE__ */ B(
5880
5883
  "div",
5881
5884
  {
5882
- className: G("p-generic-table", e),
5885
+ className: q("p-generic-table", e),
5883
5886
  "data-testid": "p-generic-table",
5884
- ...F,
5887
+ ...M,
5885
5888
  children: [
5886
5889
  g && /* @__PURE__ */ u(
5887
5890
  Or,
@@ -5900,35 +5903,35 @@ const Yr = ({
5900
5903
  "table",
5901
5904
  {
5902
5905
  "aria-busy": d,
5903
- "aria-label": F["aria-label"],
5906
+ "aria-label": M["aria-label"],
5904
5907
  "aria-describedby": "generic-table-description",
5905
- "aria-rowcount": oe.length + 1,
5906
- className: G("p-generic-table__table", {
5907
- "p-generic-table__is-full-height": te === "full-height",
5908
+ "aria-rowcount": te.length + 1,
5909
+ className: q("p-generic-table__table", {
5910
+ "p-generic-table__is-full-height": w === "full-height",
5908
5911
  "p-generic-table__is-selectable": n,
5909
5912
  "p-generic-table__is-grouped": c !== void 0
5910
5913
  }),
5911
5914
  role: "grid",
5912
5915
  children: [
5913
- /* @__PURE__ */ u("thead", { children: w.getHeaderGroups().map((S) => /* @__PURE__ */ u("tr", { role: "row", children: S.headers.filter(l).map((R, y) => /* @__PURE__ */ B(Mn, { children: [
5914
- /* @__PURE__ */ u($r, { header: R }),
5915
- n && c && (!h && y === 2 || h && y === 3) ? /* @__PURE__ */ u(
5916
+ /* @__PURE__ */ u("thead", { children: _.getHeaderGroups().map((b) => /* @__PURE__ */ u("tr", { role: "row", children: b.headers.filter(l).map((I, y) => /* @__PURE__ */ B(Mn, { children: [
5917
+ /* @__PURE__ */ u($r, { header: I }),
5918
+ n && c && (!A && y === 2 || A && y === 3) ? /* @__PURE__ */ u(
5916
5919
  "th",
5917
5920
  {
5918
5921
  className: "p-generic-table__select-alignment",
5919
5922
  role: "columnheader"
5920
5923
  }
5921
5924
  ) : null
5922
- ] }, R.id)) }, S.id)) }),
5925
+ ] }, I.id)) }, b.id)) }),
5923
5926
  /* @__PURE__ */ u(
5924
5927
  "tbody",
5925
5928
  {
5926
- ref: A,
5929
+ ref: x,
5927
5930
  style: {
5928
5931
  overflowY: "auto",
5929
- maxHeight: x
5932
+ maxHeight: V
5930
5933
  },
5931
- children: d ? k() : N()
5934
+ children: d ? N() : L()
5932
5935
  }
5933
5936
  )
5934
5937
  ]
@@ -5987,20 +5990,20 @@ const Yr = ({
5987
5990
  placeholder: c,
5988
5991
  ...d
5989
5992
  }) => {
5990
- const [f, g] = de({
5993
+ const [f, g] = ge({
5991
5994
  isVisible: !1,
5992
5995
  highlightedIndex: -1,
5993
5996
  showingMore: !1,
5994
5997
  cursorPosition: 0
5995
- }), p = be(null), m = be(null), v = be(null), P = le(() => {
5996
- const D = f.showingMore ? In.EXPANDED : In.DEFAULT, E = l.slice(0, D);
5997
- return !f.showingMore && l.length > D ? [...E, { value: "Show more...", type: "more" }] : E;
5998
- }, [l, f.showingMore]), h = Q(
5998
+ }), p = be(null), m = be(null), v = be(null), E = se(() => {
5999
+ const D = f.showingMore ? In.EXPANDED : In.DEFAULT, R = l.slice(0, D);
6000
+ return !f.showingMore && l.length > D ? [...R, { value: "Show more...", type: "more" }] : R;
6001
+ }, [l, f.showingMore]), h = X(
5999
6002
  (D) => {
6000
- g(typeof D == "function" ? (E) => ({ ...E, ...D(E) }) : (E) => ({ ...E, ...D }));
6003
+ g(typeof D == "function" ? (R) => ({ ...R, ...D(R) }) : (R) => ({ ...R, ...D }));
6001
6004
  },
6002
6005
  []
6003
- ), T = Q(
6006
+ ), A = X(
6004
6007
  (D) => {
6005
6008
  p.current && !p.current.contains(D.target) && h({
6006
6009
  isVisible: !1,
@@ -6008,51 +6011,51 @@ const Yr = ({
6008
6011
  });
6009
6012
  },
6010
6013
  [h]
6011
- ), F = Q(
6012
- (D, E) => {
6013
- const { tokenStart: q, tokenEnd: Y } = E;
6014
+ ), k = X(
6015
+ (D, R) => {
6016
+ const { tokenStart: G, tokenEnd: J } = R;
6014
6017
  if (D.type === "filter") {
6015
- const oe = D.value + xe.COLON + xe.OPEN_PAREN;
6016
- return t.slice(0, q) + oe + t.slice(Y);
6018
+ const ae = D.value + xe.COLON + xe.OPEN_PAREN;
6019
+ return t.slice(0, G) + ae + t.slice(J);
6017
6020
  }
6018
6021
  if (o.length === 0) {
6019
- const oe = D.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + D.value;
6020
- return t.slice(0, q) + oe + t.slice(Y);
6022
+ const ae = D.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + D.value;
6023
+ return t.slice(0, G) + ae + t.slice(J);
6021
6024
  }
6022
- const Z = t.charAt(q - 1) === xe.EQUALS ? D.value : xe.EQUALS + D.value;
6023
- return t.slice(0, q) + Z + t.slice(Y);
6025
+ const ee = t.charAt(G - 1) === xe.EQUALS ? D.value : xe.EQUALS + D.value;
6026
+ return t.slice(0, G) + ee + t.slice(J);
6024
6027
  },
6025
6028
  [t, o]
6026
- ), A = Q(
6029
+ ), M = X(
6027
6030
  (D) => {
6028
- const E = P[D];
6029
- if (!E) return;
6030
- if (E.type === "more") {
6031
+ const R = E[D];
6032
+ if (!R) return;
6033
+ if (R.type === "more") {
6031
6034
  h({ showingMore: !0 });
6032
6035
  return;
6033
6036
  }
6034
- const q = Ze(
6037
+ const G = Ze(
6035
6038
  t,
6036
6039
  f.cursorPosition
6037
- ), Y = F(E, q), Z = q.tokenStart + (E.type === "filter" ? E.value.length + 2 : o.length === 0 ? E.type.length + E.value.length + 3 : E.value.length + 1), { context: oe, token: te } = Ze(
6038
- Y,
6039
- Z
6040
+ ), J = k(R, G), ee = G.tokenStart + (R.type === "filter" ? R.value.length + 2 : o.length === 0 ? R.type.length + R.value.length + 3 : R.value.length + 1), { context: ae, token: te } = Ze(
6041
+ J,
6042
+ ee
6040
6043
  );
6041
- a(oe), r(te), i(Y), setTimeout(() => {
6044
+ a(ae), r(te), i(J), setTimeout(() => {
6042
6045
  v.current && (v.current.focus(), v.current.setSelectionRange(
6043
- Z,
6044
- Z
6046
+ ee,
6047
+ ee
6045
6048
  ));
6046
6049
  }, 0), h({
6047
6050
  highlightedIndex: 0,
6048
6051
  showingMore: !1,
6049
- isVisible: E.type === "filter",
6050
- cursorPosition: Z
6052
+ isVisible: R.type === "filter",
6053
+ cursorPosition: ee
6051
6054
  });
6052
6055
  },
6053
6056
  [
6054
- P,
6055
- F,
6057
+ E,
6058
+ k,
6056
6059
  t,
6057
6060
  f.cursorPosition,
6058
6061
  o,
@@ -6061,36 +6064,36 @@ const Yr = ({
6061
6064
  i,
6062
6065
  h
6063
6066
  ]
6064
- ), x = Q(() => {
6067
+ ), x = X(() => {
6065
6068
  if (!v.current) return;
6066
- const D = v.current.selectionStart || 0, { context: E, token: q } = Ze(
6069
+ const D = v.current.selectionStart || 0, { context: R, token: G } = Ze(
6067
6070
  t,
6068
6071
  D
6069
6072
  );
6070
- a(E), r(q), h((Y) => ({
6071
- ...Y,
6073
+ a(R), r(G), h((J) => ({
6074
+ ...J,
6072
6075
  isVisible: !Dn(t, D),
6073
6076
  cursorPosition: D
6074
6077
  }));
6075
- }, [t, a, r, h]), V = Q(
6078
+ }, [t, a, r, h]), V = X(
6076
6079
  (D) => {
6077
- const { key: E } = D;
6080
+ const { key: R } = D;
6078
6081
  if (f.isVisible) {
6079
- const q = P.length;
6080
- switch (E) {
6082
+ const G = E.length;
6083
+ switch (R) {
6081
6084
  case "Tab":
6082
6085
  case "ArrowDown":
6083
6086
  D.preventDefault(), h({
6084
- highlightedIndex: (f.highlightedIndex + 1) % q
6087
+ highlightedIndex: (f.highlightedIndex + 1) % G
6085
6088
  });
6086
6089
  return;
6087
6090
  case "ArrowUp":
6088
6091
  D.preventDefault(), h({
6089
- highlightedIndex: f.highlightedIndex <= 0 ? q - 1 : f.highlightedIndex - 1
6092
+ highlightedIndex: f.highlightedIndex <= 0 ? G - 1 : f.highlightedIndex - 1
6090
6093
  });
6091
6094
  return;
6092
6095
  case "Enter":
6093
- D.preventDefault(), f.highlightedIndex >= 0 ? A(f.highlightedIndex) : h({ isVisible: !1 });
6096
+ D.preventDefault(), f.highlightedIndex >= 0 ? M(f.highlightedIndex) : h({ isVisible: !1 });
6094
6097
  return;
6095
6098
  case "Escape":
6096
6099
  D.preventDefault(), h({
@@ -6100,58 +6103,58 @@ const Yr = ({
6100
6103
  return;
6101
6104
  }
6102
6105
  }
6103
- (E === "ArrowLeft" || E === "ArrowRight" || E === "Home" || E === "End") && setTimeout(x, 0);
6106
+ (R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && setTimeout(x, 0);
6104
6107
  },
6105
6108
  [
6106
6109
  f,
6107
- P.length,
6110
+ E.length,
6108
6111
  h,
6109
- A,
6112
+ M,
6110
6113
  x
6111
6114
  ]
6112
- ), H = Q(
6115
+ ), H = X(
6113
6116
  (D) => {
6114
- const { key: E } = D;
6115
- (E === "ArrowLeft" || E === "ArrowRight" || E === "Home" || E === "End") && x();
6117
+ const { key: R } = D;
6118
+ (R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && x();
6116
6119
  },
6117
6120
  [x]
6118
- ), J = Q(() => {
6121
+ ), Q = X(() => {
6119
6122
  h({
6120
6123
  isVisible: !0,
6121
6124
  highlightedIndex: 0
6122
6125
  });
6123
- }, [h]), U = Q(
6126
+ }, [h]), ie = X(
6124
6127
  (D) => {
6125
- var Z;
6126
- const E = ((Z = v.current) == null ? void 0 : Z.selectionStart) || D.length, { context: q, token: Y } = Ze(
6128
+ var ee;
6129
+ const R = ((ee = v.current) == null ? void 0 : ee.selectionStart) || D.length, { context: G, token: J } = Ze(
6127
6130
  D,
6128
- E
6131
+ R
6129
6132
  );
6130
- a(q), r(Y), i(D), h({
6133
+ a(G), r(J), i(D), h({
6131
6134
  highlightedIndex: 0,
6132
- isVisible: !Dn(D, E),
6135
+ isVisible: !Dn(D, R),
6133
6136
  showingMore: !1,
6134
- cursorPosition: E
6137
+ cursorPosition: R
6135
6138
  });
6136
6139
  },
6137
6140
  [a, r, i, h]
6138
- ), pe = Q(() => {
6141
+ ), Z = X(() => {
6139
6142
  setTimeout(x, 0);
6140
- }, [x]), se = Q(() => {
6143
+ }, [x]), de = X(() => {
6141
6144
  h({
6142
6145
  isVisible: !1,
6143
6146
  highlightedIndex: -1
6144
6147
  });
6145
- }, [h]), ve = Q(
6148
+ }, [h]), fe = X(
6146
6149
  (D) => {
6147
6150
  h({ highlightedIndex: D });
6148
6151
  },
6149
6152
  [h]
6150
6153
  );
6151
- return Ce(() => (document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T)), [T]), /* @__PURE__ */ B(
6154
+ return Ce(() => (document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A)), [A]), /* @__PURE__ */ B(
6152
6155
  "div",
6153
6156
  {
6154
- className: G("p-query-input", e),
6157
+ className: q("p-query-input", e),
6155
6158
  "data-testid": "p-query-input",
6156
6159
  ref: p,
6157
6160
  ...d,
@@ -6167,12 +6170,12 @@ const Yr = ({
6167
6170
  id: "query-input",
6168
6171
  name: "query-input",
6169
6172
  ref: v,
6170
- onFocus: J,
6171
- onChange: U,
6173
+ onFocus: Q,
6174
+ onChange: ie,
6172
6175
  onKeyDown: V,
6173
6176
  onKeyUp: H,
6174
- onClear: se,
6175
- onClick: pe,
6177
+ onClear: de,
6178
+ onClick: Z,
6176
6179
  "aria-disabled": n,
6177
6180
  "aria-expanded": f.isVisible,
6178
6181
  "aria-haspopup": "listbox",
@@ -6187,24 +6190,24 @@ const Yr = ({
6187
6190
  id: "query-suggestions",
6188
6191
  role: "listbox",
6189
6192
  "aria-label": "Search suggestions",
6190
- children: s ? /* @__PURE__ */ u("div", { className: "p-query-input__loading", children: /* @__PURE__ */ u(qt, { text: "Loading..." }) }) : P.map((D, E) => /* @__PURE__ */ B(
6193
+ children: s ? /* @__PURE__ */ u("div", { className: "p-query-input__loading", children: /* @__PURE__ */ u(qt, { text: "Loading..." }) }) : E.map((D, R) => /* @__PURE__ */ B(
6191
6194
  "li",
6192
6195
  {
6193
- className: G("p-query-input__item", {
6194
- highlight: E === f.highlightedIndex
6196
+ className: q("p-query-input__item", {
6197
+ highlight: R === f.highlightedIndex
6195
6198
  }),
6196
- onClick: () => A(E),
6197
- onKeyDown: () => A(E),
6198
- onMouseEnter: () => ve(E),
6199
+ onClick: () => M(R),
6200
+ onKeyDown: () => M(R),
6201
+ onMouseEnter: () => fe(R),
6199
6202
  role: "option",
6200
- "aria-selected": E === f.highlightedIndex,
6203
+ "aria-selected": R === f.highlightedIndex,
6201
6204
  tabIndex: -1,
6202
6205
  children: [
6203
6206
  /* @__PURE__ */ B("span", { className: "p-query-input__item-label", children: [
6204
6207
  /* @__PURE__ */ u(
6205
6208
  "span",
6206
6209
  {
6207
- className: G({
6210
+ className: q({
6208
6211
  "u-text--muted": D.type === "more"
6209
6212
  }),
6210
6213
  children: D.value
@@ -6215,7 +6218,7 @@ const Yr = ({
6215
6218
  D.type !== "more" && /* @__PURE__ */ u("span", { className: "u-text--muted u-align-text--right", children: D.type })
6216
6219
  ]
6217
6220
  },
6218
- `${D.value}-${E}`
6221
+ `${D.value}-${R}`
6219
6222
  ))
6220
6223
  }
6221
6224
  )
@@ -6255,7 +6258,7 @@ export {
6255
6258
  Vi as Meter,
6256
6259
  Wr as MultiSelect,
6257
6260
  Aa as MultiSelectDropdown,
6258
- re as Navigation,
6261
+ le as Navigation,
6259
6262
  po as NavigationBar,
6260
6263
  Br as NestedFormGroup,
6261
6264
  _o as Pagination,