@canonical/maas-react-components 1.18.1 → 1.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import { jsxs as se, jsx as u, Fragment as De } from "react/jsx-runtime";
2
2
  import * as ne from "react";
3
- import ut, { useRef as Ce, useState as be, useEffect as Oe, useCallback as ee, cloneElement as ft, createContext as pt, useId as rr, useContext as Mr, useMemo as oe, useReducer as dt, forwardRef as mt, useImperativeHandle as vt, Fragment as yt } from "react";
4
- import { useListener as gt, Link as bt, Tooltip as ht, Button as _e, Icon as ke, Row as _t, Col as Et, Input as wt, CheckboxInput as Tt, useClickOutside as St, useOnEscapePressed as Ct, SearchBox as Ot } from "@canonical/react-components";
3
+ import ut, { useRef as Se, useState as be, useEffect as Ce, useCallback as ee, cloneElement as ft, createContext as pt, useId as rr, useContext as Mr, useMemo as oe, useReducer as dt, forwardRef as mt, useImperativeHandle as vt, Fragment as yt } from "react";
4
+ import { useListener as gt, Link as bt, Tooltip as ht, Button as _e, Icon as ke, Row as _t, Col as Et, Input as wt, CheckboxInput as Tt, useClickOutside as xt, useOnEscapePressed as St, SearchBox as Ct } from "@canonical/react-components";
5
5
  function Lr(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var zr = { exports: {} };
8
+ var Br = { exports: {} };
9
9
  /*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
@@ -40,9 +40,9 @@ var zr = { exports: {} };
40
40
  }
41
41
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
42
42
  })();
43
- })(zr);
44
- var xt = zr.exports;
45
- const W = /* @__PURE__ */ Lr(xt);
43
+ })(Br);
44
+ var Ot = Br.exports;
45
+ const W = /* @__PURE__ */ Lr(Ot);
46
46
  const ve = {
47
47
  caution: "#F99B11",
48
48
  light: "#F7F7F7",
@@ -57,7 +57,7 @@ const ve = {
57
57
  ve.positive,
58
58
  ve.negative,
59
59
  ve.caution
60
- ], Dt = ve.linkFaded, Br = ve.caution, tr = ve.light, mr = 2, vr = 1, yr = (e, r) => {
60
+ ], Dt = ve.linkFaded, zr = ve.caution, tr = ve.light, mr = 2, vr = 1, yr = (e, r) => {
61
61
  var a, o;
62
62
  const t = ((o = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : o.width) || 0;
63
63
  return t > r * mr ? t / r : mr;
@@ -77,14 +77,14 @@ const ve = {
77
77
  size: o = "regular",
78
78
  ...s
79
79
  }) => {
80
- const i = Ce(null), y = t == null ? void 0 : t.reduce((D, _) => D + _.value, 0), l = n || y, v = t.map((D) => D.value / l * 100), [g, w] = be(0);
81
- Oe(() => {
82
- w(a === "segmented" ? yr(i, l) : 0);
83
- }, [l, a]);
84
- const O = ee(() => {
85
- w(yr(i, l));
86
- }, [i, l, w]);
87
- return gt(window, O, "resize", !0, a === "segmented"), /* @__PURE__ */ se(
80
+ const i = Se(null), v = t == null ? void 0 : t.reduce((D, b) => D + b.value, 0), c = n || v, y = t.map((D) => D.value / c * 100), [g, _] = be(0);
81
+ Ce(() => {
82
+ _(a === "segmented" ? yr(i, c) : 0);
83
+ }, [c, a]);
84
+ const T = ee(() => {
85
+ _(yr(i, c));
86
+ }, [i, c, _]);
87
+ return gt(window, T, "resize", !0, a === "segmented"), /* @__PURE__ */ se(
88
88
  "div",
89
89
  {
90
90
  className: W("p-meter", e, {
@@ -98,9 +98,9 @@ const ve = {
98
98
  Rt,
99
99
  {
100
100
  data: t,
101
- datumWidths: v,
102
- maximum: l,
103
- overColor: Br,
101
+ datumWidths: y,
102
+ maximum: c,
103
+ overColor: zr,
104
104
  segmentWidth: g,
105
105
  separatorColor: tr
106
106
  }
@@ -123,13 +123,13 @@ const ve = {
123
123
  maximum: t,
124
124
  segmentWidth: n
125
125
  }) => {
126
- const a = () => (e == null ? void 0 : e.reduce((i, y) => i + y.value, 0)) > t, o = (i, y) => ({
126
+ const a = () => (e == null ? void 0 : e.reduce((i, v) => i + v.value, 0)) > t, o = (i, v) => ({
127
127
  backgroundColor: i.color,
128
128
  left: `${r == null ? void 0 : r.reduce(
129
- (l, v, g) => y > g ? l + v : l,
129
+ (c, y, g) => v > g ? c + y : c,
130
130
  0
131
131
  )}%`,
132
- width: `${r[y]}%`
132
+ width: `${r[v]}%`
133
133
  }), s = () => ({
134
134
  background: `repeating-linear-gradient(
135
135
  to right,
@@ -145,16 +145,16 @@ const ve = {
145
145
  {
146
146
  className: "p-meter__filled",
147
147
  "data-testid": he.meteroverflow,
148
- style: { backgroundColor: Br, width: "100%" }
148
+ style: { backgroundColor: zr, width: "100%" }
149
149
  }
150
- ) : e == null ? void 0 : e.map((i, y) => /* @__PURE__ */ u(
150
+ ) : e == null ? void 0 : e.map((i, v) => /* @__PURE__ */ u(
151
151
  "div",
152
152
  {
153
153
  className: "p-meter__filled",
154
154
  "data-testid": he.filled,
155
- style: o(i, y)
155
+ style: o(i, v)
156
156
  },
157
- `meter-${y}`
157
+ `meter-${v}`
158
158
  )),
159
159
  n > 0 && /* @__PURE__ */ u(
160
160
  "div",
@@ -209,7 +209,7 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
209
209
  }
210
210
  )
211
211
  }
212
- ), kt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Nt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), $t = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Mt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Lt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), zt = ({ light: e = !0, name: r }) => /* @__PURE__ */ u(ke, { className: "p-side-navigation__icon", light: e, name: r }), Bt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: W("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Wt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: W("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Yt = ({
212
+ ), kt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__content", children: /* @__PURE__ */ u("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Nt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__controls u-no-margin--top", children: e }), $t = ({ children: e }) => /* @__PURE__ */ u("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ u("div", { className: "p-panel is-dark", children: e }) }), Mt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__footer", children: e }), Lt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-panel__header", children: e }), Bt = ({ light: e = !0, name: r }) => /* @__PURE__ */ u(ke, { className: "p-side-navigation__icon", light: e, name: r }), zt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ u("li", { className: W("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Wt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ u("span", { className: W("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Yt = ({
213
213
  as: e,
214
214
  ...r
215
215
  }) => /* @__PURE__ */ u(
@@ -218,12 +218,12 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
218
218
  className: W("p-side-navigation__link", r.className),
219
219
  ...r
220
220
  }
221
- ), qt = ({ children: e, className: r }) => /* @__PURE__ */ u("ul", { className: W("p-side-navigation__list", r), children: e }), Ht = ({
221
+ ), qt = ({ children: e, className: r }) => /* @__PURE__ */ u("ul", { className: W("p-side-navigation__list", r), children: e }), Kt = ({
222
222
  as: e,
223
223
  children: r,
224
224
  className: t,
225
225
  ...n
226
- }) => /* @__PURE__ */ u(e || "a", { className: W("p-panel__logo", t), ...n, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: r }) }), Kt = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Ut = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ u(
226
+ }) => /* @__PURE__ */ u(e || "a", { className: W("p-panel__logo", t), ...n, children: /* @__PURE__ */ u("div", { className: "p-navigation__tagged-logo", children: r }) }), Ht = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Ut = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ u(
227
227
  "div",
228
228
  {
229
229
  className: W("p-panel__logo-name is-fading-when-collapsed", {
@@ -248,27 +248,27 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
248
248
  },
249
249
  children: e
250
250
  }
251
- ), Xt = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e });
252
- const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: W("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), Zt = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: W("p-panel is-dark", r), children: e }) });
253
- H.Header = Lt;
254
- H.Banner = Ft;
255
- H.Drawer = $t;
256
- H.Controls = Nt;
257
- H.CollapseToggle = jt;
258
- H.Content = kt;
259
- H.Footer = Mt;
260
- H.List = qt;
261
- H.Item = Bt;
262
- H.Link = Yt;
263
- H.Text = Xt;
264
- H.Icon = zt;
265
- H.Label = Wt;
266
- H.Logo = Ht;
267
- H.LogoTag = Gt;
268
- H.LogoIcon = Kt;
269
- H.LogoName = Ut;
270
- H.LogoText = Vt;
271
- Zt.MenuButton = Jt;
251
+ ), Zt = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-side-navigation__text", children: e });
252
+ const K = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ u("header", { "aria-label": "main navigation", className: W("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), Xt = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ u("div", { className: W("p-panel is-dark", r), children: e }) });
253
+ K.Header = Lt;
254
+ K.Banner = Ft;
255
+ K.Drawer = $t;
256
+ K.Controls = Nt;
257
+ K.CollapseToggle = jt;
258
+ K.Content = kt;
259
+ K.Footer = Mt;
260
+ K.List = qt;
261
+ K.Item = zt;
262
+ K.Link = Yt;
263
+ K.Text = Zt;
264
+ K.Icon = Bt;
265
+ K.Label = Wt;
266
+ K.Logo = Kt;
267
+ K.LogoTag = Gt;
268
+ K.LogoIcon = Ht;
269
+ K.LogoName = Ut;
270
+ K.LogoText = Vt;
271
+ Xt.MenuButton = Jt;
272
272
  const lr = pt(null), Wr = ({ children: e }) => {
273
273
  const r = rr();
274
274
  return /* @__PURE__ */ u(lr.Provider, { value: r, children: /* @__PURE__ */ u(
@@ -311,7 +311,7 @@ function on(e) {
311
311
  }, [e, a]), r;
312
312
  }
313
313
  const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
314
- }]), Hr = ({ children: e }) => {
314
+ }]), Kr = ({ children: e }) => {
315
315
  const r = ne.useRef(null), t = on(r), [n, a] = ne.useState(!1);
316
316
  return /* @__PURE__ */ u(
317
317
  "header",
@@ -362,8 +362,8 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
362
362
  )
363
363
  ] });
364
364
  };
365
- Hr.Title = an;
366
- Hr.Controls = sn;
365
+ Kr.Title = an;
366
+ Kr.Controls = sn;
367
367
  const Le = ({
368
368
  children: e,
369
369
  className: r,
@@ -385,7 +385,7 @@ Le.Title = cn;
385
385
  Le.Header = ln;
386
386
  Le.Content = un;
387
387
  Le.Footer = fn;
388
- const Kr = ({
388
+ const Hr = ({
389
389
  children: e,
390
390
  className: r,
391
391
  isVisible: t
@@ -397,10 +397,10 @@ const Kr = ({
397
397
  style: { visibility: t ? "visible" : "hidden" },
398
398
  children: e
399
399
  }
400
- ), So = ({
400
+ ), xo = ({
401
401
  children: e,
402
402
  ...r
403
- }) => /* @__PURE__ */ u(Kr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...r, children: e }) });
403
+ }) => /* @__PURE__ */ u(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...r, children: e }) });
404
404
  const pn = ({
405
405
  currentPage: e,
406
406
  error: r,
@@ -455,7 +455,7 @@ const pn = ({
455
455
  children: /* @__PURE__ */ u(ke, { name: "chevron-up" })
456
456
  }
457
457
  )
458
- ] }) }), Co = ({
458
+ ] }) }), So = ({
459
459
  currentPage: e,
460
460
  disabled: r,
461
461
  paginate: t,
@@ -471,21 +471,21 @@ const pn = ({
471
471
  onInputBlur: () => {
472
472
  o(e), i("");
473
473
  },
474
- onInputChange: (w) => {
475
- const { value: O, valueAsNumber: D } = w.target;
476
- O ? (o(D), D > n || D < 1 ? i(`${D} is not a valid page number.`) : (i(""), t(D))) : i("Enter a page number.");
474
+ onInputChange: (_) => {
475
+ const { value: T, valueAsNumber: D } = _.target;
476
+ T ? (o(D), D > n || D < 1 ? i(`${D} is not a valid page number.`) : (i(""), t(D))) : i("Enter a page number.");
477
477
  },
478
478
  onNextClick: () => {
479
- o((w) => Number(w) + 1), t(Number(e) + 1);
479
+ o((_) => Number(_) + 1), t(Number(e) + 1);
480
480
  },
481
481
  onPreviousClick: () => {
482
- o((w) => Number(w) - 1), t(Number(e) - 1);
482
+ o((_) => Number(_) - 1), t(Number(e) - 1);
483
483
  },
484
484
  totalPages: n
485
485
  }
486
486
  );
487
487
  };
488
- const Oo = ({ activeStep: e, items: r }) => /* @__PURE__ */ u("ol", { className: "stepper", children: r.map((t, n) => {
488
+ const Co = ({ activeStep: e, items: r }) => /* @__PURE__ */ u("ol", { className: "stepper", children: r.map((t, n) => {
489
489
  const a = n === e, o = n < e;
490
490
  return /* @__PURE__ */ u("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ u(
491
491
  "p",
@@ -513,15 +513,15 @@ function dn() {
513
513
  if (gr)
514
514
  return I;
515
515
  gr = 1;
516
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, O = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
516
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, H = e ? Symbol.for("react.scope") : 60119;
517
517
  function j(p) {
518
518
  if (typeof p == "object" && p !== null) {
519
519
  var re = p.$$typeof;
520
520
  switch (re) {
521
521
  case r:
522
522
  switch (p = p.type, p) {
523
- case y:
524
- case l:
523
+ case v:
524
+ case c:
525
525
  case n:
526
526
  case o:
527
527
  case a:
@@ -530,9 +530,9 @@ function dn() {
530
530
  default:
531
531
  switch (p = p && p.$$typeof, p) {
532
532
  case i:
533
- case v:
533
+ case y:
534
534
  case D:
535
- case O:
535
+ case T:
536
536
  case s:
537
537
  return p;
538
538
  default:
@@ -545,10 +545,10 @@ function dn() {
545
545
  }
546
546
  }
547
547
  function k(p) {
548
- return j(p) === l;
548
+ return j(p) === c;
549
549
  }
550
- return I.AsyncMode = y, I.ConcurrentMode = l, I.ContextConsumer = i, I.ContextProvider = s, I.Element = r, I.ForwardRef = v, I.Fragment = n, I.Lazy = D, I.Memo = O, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = g, I.isAsyncMode = function(p) {
551
- return k(p) || j(p) === y;
550
+ return I.AsyncMode = v, I.ConcurrentMode = c, I.ContextConsumer = i, I.ContextProvider = s, I.Element = r, I.ForwardRef = y, I.Fragment = n, I.Lazy = D, I.Memo = T, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = g, I.isAsyncMode = function(p) {
551
+ return k(p) || j(p) === v;
552
552
  }, I.isConcurrentMode = k, I.isContextConsumer = function(p) {
553
553
  return j(p) === i;
554
554
  }, I.isContextProvider = function(p) {
@@ -556,13 +556,13 @@ function dn() {
556
556
  }, I.isElement = function(p) {
557
557
  return typeof p == "object" && p !== null && p.$$typeof === r;
558
558
  }, I.isForwardRef = function(p) {
559
- return j(p) === v;
559
+ return j(p) === y;
560
560
  }, I.isFragment = function(p) {
561
561
  return j(p) === n;
562
562
  }, I.isLazy = function(p) {
563
563
  return j(p) === D;
564
564
  }, I.isMemo = function(p) {
565
- return j(p) === O;
565
+ return j(p) === T;
566
566
  }, I.isPortal = function(p) {
567
567
  return j(p) === t;
568
568
  }, I.isProfiler = function(p) {
@@ -572,7 +572,7 @@ function dn() {
572
572
  }, I.isSuspense = function(p) {
573
573
  return j(p) === g;
574
574
  }, I.isValidElementType = function(p) {
575
- return typeof p == "string" || typeof p == "function" || p === n || p === l || p === o || p === a || p === g || p === w || typeof p == "object" && p !== null && (p.$$typeof === D || p.$$typeof === O || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof === M || p.$$typeof === L || p.$$typeof === K || p.$$typeof === _);
575
+ return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p === g || p === _ || typeof p == "object" && p !== null && (p.$$typeof === D || p.$$typeof === T || p.$$typeof === s || p.$$typeof === i || p.$$typeof === y || p.$$typeof === M || p.$$typeof === L || p.$$typeof === H || p.$$typeof === b);
576
576
  }, I.typeOf = j, I;
577
577
  }
578
578
  var F = {};
@@ -587,20 +587,20 @@ var F = {};
587
587
  var br;
588
588
  function mn() {
589
589
  return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
590
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, O = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, _ = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
590
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, M = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, H = e ? Symbol.for("react.scope") : 60119;
591
591
  function j(f) {
592
592
  return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
593
- f === n || f === l || f === o || f === a || f === g || f === w || typeof f == "object" && f !== null && (f.$$typeof === D || f.$$typeof === O || f.$$typeof === s || f.$$typeof === i || f.$$typeof === v || f.$$typeof === M || f.$$typeof === L || f.$$typeof === K || f.$$typeof === _);
593
+ f === n || f === c || f === o || f === a || f === g || f === _ || typeof f == "object" && f !== null && (f.$$typeof === D || f.$$typeof === T || f.$$typeof === s || f.$$typeof === i || f.$$typeof === y || f.$$typeof === M || f.$$typeof === L || f.$$typeof === H || f.$$typeof === b);
594
594
  }
595
595
  function k(f) {
596
596
  if (typeof f == "object" && f !== null) {
597
- var Z = f.$$typeof;
598
- switch (Z) {
597
+ var X = f.$$typeof;
598
+ switch (X) {
599
599
  case r:
600
600
  var de = f.type;
601
601
  switch (de) {
602
- case y:
603
- case l:
602
+ case v:
603
+ case c:
604
604
  case n:
605
605
  case o:
606
606
  case a:
@@ -610,47 +610,47 @@ function mn() {
610
610
  var Te = de && de.$$typeof;
611
611
  switch (Te) {
612
612
  case i:
613
- case v:
613
+ case y:
614
614
  case D:
615
- case O:
615
+ case T:
616
616
  case s:
617
617
  return Te;
618
618
  default:
619
- return Z;
619
+ return X;
620
620
  }
621
621
  }
622
622
  case t:
623
- return Z;
623
+ return X;
624
624
  }
625
625
  }
626
626
  }
627
- var p = y, re = l, $ = i, V = s, X = r, ce = v, fe = n, pe = D, le = O, B = t, J = o, te = a, ae = g, ue = !1;
627
+ var p = v, re = c, $ = i, V = s, Z = r, ce = y, fe = n, pe = D, le = T, z = t, J = o, te = a, ae = g, ue = !1;
628
628
  function U(f) {
629
- return ue || (ue = !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.")), c(f) || k(f) === y;
629
+ return ue || (ue = !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.")), l(f) || k(f) === v;
630
630
  }
631
- function c(f) {
632
- return k(f) === l;
631
+ function l(f) {
632
+ return k(f) === c;
633
633
  }
634
634
  function m(f) {
635
635
  return k(f) === i;
636
636
  }
637
- function T(f) {
637
+ function x(f) {
638
638
  return k(f) === s;
639
639
  }
640
640
  function S(f) {
641
641
  return typeof f == "object" && f !== null && f.$$typeof === r;
642
642
  }
643
- function h(f) {
644
- return k(f) === v;
643
+ function E(f) {
644
+ return k(f) === y;
645
645
  }
646
646
  function A(f) {
647
647
  return k(f) === n;
648
648
  }
649
- function E(f) {
649
+ function w(f) {
650
650
  return k(f) === D;
651
651
  }
652
652
  function C(f) {
653
- return k(f) === O;
653
+ return k(f) === T;
654
654
  }
655
655
  function P(f) {
656
656
  return k(f) === t;
@@ -658,13 +658,13 @@ function mn() {
658
658
  function R(f) {
659
659
  return k(f) === o;
660
660
  }
661
- function x(f) {
661
+ function O(f) {
662
662
  return k(f) === a;
663
663
  }
664
664
  function q(f) {
665
665
  return k(f) === g;
666
666
  }
667
- F.AsyncMode = p, F.ConcurrentMode = re, F.ContextConsumer = $, F.ContextProvider = V, F.Element = X, F.ForwardRef = ce, F.Fragment = fe, F.Lazy = pe, F.Memo = le, F.Portal = B, F.Profiler = J, F.StrictMode = te, F.Suspense = ae, F.isAsyncMode = U, F.isConcurrentMode = c, F.isContextConsumer = m, F.isContextProvider = T, F.isElement = S, F.isForwardRef = h, F.isFragment = A, F.isLazy = E, F.isMemo = C, F.isPortal = P, F.isProfiler = R, F.isStrictMode = x, F.isSuspense = q, F.isValidElementType = j, F.typeOf = k;
667
+ F.AsyncMode = p, F.ConcurrentMode = re, F.ContextConsumer = $, F.ContextProvider = V, F.Element = Z, F.ForwardRef = ce, F.Fragment = fe, F.Lazy = pe, F.Memo = le, F.Portal = z, F.Profiler = J, F.StrictMode = te, F.Suspense = ae, F.isAsyncMode = U, F.isConcurrentMode = l, F.isContextConsumer = m, F.isContextProvider = x, F.isElement = S, F.isForwardRef = E, F.isFragment = A, F.isLazy = w, F.isMemo = C, F.isPortal = P, F.isProfiler = R, F.isStrictMode = O, F.isSuspense = q, F.isValidElementType = j, F.typeOf = k;
668
668
  }()), F;
669
669
  }
670
670
  var hr;
@@ -696,31 +696,31 @@ function vn() {
696
696
  return !1;
697
697
  for (var s = {}, i = 0; i < 10; i++)
698
698
  s["_" + String.fromCharCode(i)] = i;
699
- var y = Object.getOwnPropertyNames(s).map(function(v) {
700
- return s[v];
699
+ var v = Object.getOwnPropertyNames(s).map(function(y) {
700
+ return s[y];
701
701
  });
702
- if (y.join("") !== "0123456789")
702
+ if (v.join("") !== "0123456789")
703
703
  return !1;
704
- var l = {};
705
- return "abcdefghijklmnopqrst".split("").forEach(function(v) {
706
- l[v] = v;
707
- }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
704
+ var c = {};
705
+ return "abcdefghijklmnopqrst".split("").forEach(function(y) {
706
+ c[y] = y;
707
+ }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
708
708
  } catch {
709
709
  return !1;
710
710
  }
711
711
  }
712
712
  return Ge = a() ? Object.assign : function(o, s) {
713
- for (var i, y = n(o), l, v = 1; v < arguments.length; v++) {
714
- i = Object(arguments[v]);
713
+ for (var i, v = n(o), c, y = 1; y < arguments.length; y++) {
714
+ i = Object(arguments[y]);
715
715
  for (var g in i)
716
- r.call(i, g) && (y[g] = i[g]);
716
+ r.call(i, g) && (v[g] = i[g]);
717
717
  if (e) {
718
- l = e(i);
719
- for (var w = 0; w < l.length; w++)
720
- t.call(i, l[w]) && (y[l[w]] = i[l[w]]);
718
+ c = e(i);
719
+ for (var _ = 0; _ < c.length; _++)
720
+ t.call(i, c[_]) && (v[c[_]] = i[c[_]]);
721
721
  }
722
722
  }
723
- return y;
723
+ return v;
724
724
  }, Ge;
725
725
  }
726
726
  var Ve, Er;
@@ -735,10 +735,10 @@ var Je, wr;
735
735
  function Gr() {
736
736
  return wr || (wr = 1, Je = Function.call.bind(Object.prototype.hasOwnProperty)), Je;
737
737
  }
738
- var Xe, Tr;
738
+ var Ze, Tr;
739
739
  function yn() {
740
740
  if (Tr)
741
- return Xe;
741
+ return Ze;
742
742
  Tr = 1;
743
743
  var e = function() {
744
744
  };
@@ -753,29 +753,29 @@ function yn() {
753
753
  }
754
754
  };
755
755
  }
756
- function a(o, s, i, y, l) {
756
+ function a(o, s, i, v, c) {
757
757
  if (process.env.NODE_ENV !== "production") {
758
- for (var v in o)
759
- if (n(o, v)) {
758
+ for (var y in o)
759
+ if (n(o, y)) {
760
760
  var g;
761
761
  try {
762
- if (typeof o[v] != "function") {
763
- var w = Error(
764
- (y || "React class") + ": " + i + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
762
+ if (typeof o[y] != "function") {
763
+ var _ = Error(
764
+ (v || "React class") + ": " + i + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
765
765
  );
766
- throw w.name = "Invariant Violation", w;
766
+ throw _.name = "Invariant Violation", _;
767
767
  }
768
- g = o[v](s, v, y, i, null, r);
768
+ g = o[y](s, y, v, i, null, r);
769
769
  } catch (D) {
770
770
  g = D;
771
771
  }
772
772
  if (g && !(g instanceof Error) && e(
773
- (y || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
773
+ (v || "React class") + ": type specification of " + i + " `" + y + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
774
774
  ), g instanceof Error && !(g.message in t)) {
775
775
  t[g.message] = !0;
776
- var O = l ? l() : "";
776
+ var T = c ? c() : "";
777
777
  e(
778
- "Failed " + i + " type: " + g.message + (O ?? "")
778
+ "Failed " + i + " type: " + g.message + (T ?? "")
779
779
  );
780
780
  }
781
781
  }
@@ -783,34 +783,34 @@ function yn() {
783
783
  }
784
784
  return a.resetWarningCache = function() {
785
785
  process.env.NODE_ENV !== "production" && (t = {});
786
- }, Xe = a, Xe;
786
+ }, Ze = a, Ze;
787
787
  }
788
- var Ze, Sr;
788
+ var Xe, xr;
789
789
  function gn() {
790
- if (Sr)
791
- return Ze;
792
- Sr = 1;
790
+ if (xr)
791
+ return Xe;
792
+ xr = 1;
793
793
  var e = Ur(), r = vn(), t = fr(), n = Gr(), a = yn(), o = function() {
794
794
  };
795
795
  process.env.NODE_ENV !== "production" && (o = function(i) {
796
- var y = "Warning: " + i;
797
- typeof console < "u" && console.error(y);
796
+ var v = "Warning: " + i;
797
+ typeof console < "u" && console.error(v);
798
798
  try {
799
- throw new Error(y);
799
+ throw new Error(v);
800
800
  } catch {
801
801
  }
802
802
  });
803
803
  function s() {
804
804
  return null;
805
805
  }
806
- return Ze = function(i, y) {
807
- var l = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
808
- function g(c) {
809
- var m = c && (l && c[l] || c[v]);
806
+ return Xe = function(i, v) {
807
+ var c = typeof Symbol == "function" && Symbol.iterator, y = "@@iterator";
808
+ function g(l) {
809
+ var m = l && (c && l[c] || l[y]);
810
810
  if (typeof m == "function")
811
811
  return m;
812
812
  }
813
- var w = "<<anonymous>>", O = {
813
+ var _ = "<<anonymous>>", T = {
814
814
  array: L("array"),
815
815
  bigint: L("bigint"),
816
816
  bool: L("boolean"),
@@ -819,7 +819,7 @@ function gn() {
819
819
  object: L("object"),
820
820
  string: L("string"),
821
821
  symbol: L("symbol"),
822
- any: K(),
822
+ any: H(),
823
823
  arrayOf: j,
824
824
  element: k(),
825
825
  elementType: p(),
@@ -827,184 +827,184 @@ function gn() {
827
827
  node: ce(),
828
828
  objectOf: V,
829
829
  oneOf: $,
830
- oneOfType: X,
830
+ oneOfType: Z,
831
831
  shape: pe,
832
832
  exact: le
833
833
  };
834
- function D(c, m) {
835
- return c === m ? c !== 0 || 1 / c === 1 / m : c !== c && m !== m;
834
+ function D(l, m) {
835
+ return l === m ? l !== 0 || 1 / l === 1 / m : l !== l && m !== m;
836
836
  }
837
- function _(c, m) {
838
- this.message = c, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
837
+ function b(l, m) {
838
+ this.message = l, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
839
839
  }
840
- _.prototype = Error.prototype;
841
- function M(c) {
840
+ b.prototype = Error.prototype;
841
+ function M(l) {
842
842
  if (process.env.NODE_ENV !== "production")
843
- var m = {}, T = 0;
844
- function S(A, E, C, P, R, x, q) {
845
- if (P = P || w, x = x || C, q !== t) {
846
- if (y) {
843
+ var m = {}, x = 0;
844
+ function S(A, w, C, P, R, O, q) {
845
+ if (P = P || _, O = O || C, q !== t) {
846
+ if (v) {
847
847
  var f = new Error(
848
848
  "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"
849
849
  );
850
850
  throw f.name = "Invariant Violation", f;
851
851
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
852
- var Z = P + ":" + C;
853
- !m[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
854
- T < 3 && (o(
855
- "You are manually calling a React.PropTypes validation function for the `" + x + "` 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."
856
- ), m[Z] = !0, T++);
852
+ var X = P + ":" + C;
853
+ !m[X] && // Avoid spamming the console because they are often not actionable except for lib authors
854
+ x < 3 && (o(
855
+ "You are manually calling a React.PropTypes validation function for the `" + O + "` 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."
856
+ ), m[X] = !0, x++);
857
857
  }
858
858
  }
859
- return E[C] == null ? A ? E[C] === null ? new _("The " + R + " `" + x + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new _("The " + R + " `" + x + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : c(E, C, P, R, x);
859
+ return w[C] == null ? A ? w[C] === null ? new b("The " + R + " `" + O + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new b("The " + R + " `" + O + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : l(w, C, P, R, O);
860
860
  }
861
- var h = S.bind(null, !1);
862
- return h.isRequired = S.bind(null, !0), h;
863
- }
864
- function L(c) {
865
- function m(T, S, h, A, E, C) {
866
- var P = T[S], R = te(P);
867
- if (R !== c) {
868
- var x = ae(P);
869
- return new _(
870
- "Invalid " + A + " `" + E + "` of type " + ("`" + x + "` supplied to `" + h + "`, expected ") + ("`" + c + "`."),
871
- { expectedType: c }
861
+ var E = S.bind(null, !1);
862
+ return E.isRequired = S.bind(null, !0), E;
863
+ }
864
+ function L(l) {
865
+ function m(x, S, E, A, w, C) {
866
+ var P = x[S], R = te(P);
867
+ if (R !== l) {
868
+ var O = ae(P);
869
+ return new b(
870
+ "Invalid " + A + " `" + w + "` of type " + ("`" + O + "` supplied to `" + E + "`, expected ") + ("`" + l + "`."),
871
+ { expectedType: l }
872
872
  );
873
873
  }
874
874
  return null;
875
875
  }
876
876
  return M(m);
877
877
  }
878
- function K() {
878
+ function H() {
879
879
  return M(s);
880
880
  }
881
- function j(c) {
882
- function m(T, S, h, A, E) {
883
- if (typeof c != "function")
884
- return new _("Property `" + E + "` of component `" + h + "` has invalid PropType notation inside arrayOf.");
885
- var C = T[S];
881
+ function j(l) {
882
+ function m(x, S, E, A, w) {
883
+ if (typeof l != "function")
884
+ return new b("Property `" + w + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
885
+ var C = x[S];
886
886
  if (!Array.isArray(C)) {
887
887
  var P = te(C);
888
- return new _("Invalid " + A + " `" + E + "` of type " + ("`" + P + "` supplied to `" + h + "`, expected an array."));
888
+ return new b("Invalid " + A + " `" + w + "` of type " + ("`" + P + "` supplied to `" + E + "`, expected an array."));
889
889
  }
890
890
  for (var R = 0; R < C.length; R++) {
891
- var x = c(C, R, h, A, E + "[" + R + "]", t);
892
- if (x instanceof Error)
893
- return x;
891
+ var O = l(C, R, E, A, w + "[" + R + "]", t);
892
+ if (O instanceof Error)
893
+ return O;
894
894
  }
895
895
  return null;
896
896
  }
897
897
  return M(m);
898
898
  }
899
899
  function k() {
900
- function c(m, T, S, h, A) {
901
- var E = m[T];
902
- if (!i(E)) {
903
- var C = te(E);
904
- return new _("Invalid " + h + " `" + A + "` of type " + ("`" + C + "` supplied to `" + S + "`, expected a single ReactElement."));
900
+ function l(m, x, S, E, A) {
901
+ var w = m[x];
902
+ if (!i(w)) {
903
+ var C = te(w);
904
+ return new b("Invalid " + E + " `" + A + "` of type " + ("`" + C + "` supplied to `" + S + "`, expected a single ReactElement."));
905
905
  }
906
906
  return null;
907
907
  }
908
- return M(c);
908
+ return M(l);
909
909
  }
910
910
  function p() {
911
- function c(m, T, S, h, A) {
912
- var E = m[T];
913
- if (!e.isValidElementType(E)) {
914
- var C = te(E);
915
- return new _("Invalid " + h + " `" + A + "` of type " + ("`" + C + "` supplied to `" + S + "`, expected a single ReactElement type."));
911
+ function l(m, x, S, E, A) {
912
+ var w = m[x];
913
+ if (!e.isValidElementType(w)) {
914
+ var C = te(w);
915
+ return new b("Invalid " + E + " `" + A + "` of type " + ("`" + C + "` supplied to `" + S + "`, expected a single ReactElement type."));
916
916
  }
917
917
  return null;
918
918
  }
919
- return M(c);
919
+ return M(l);
920
920
  }
921
- function re(c) {
922
- function m(T, S, h, A, E) {
923
- if (!(T[S] instanceof c)) {
924
- var C = c.name || w, P = U(T[S]);
925
- return new _("Invalid " + A + " `" + E + "` of type " + ("`" + P + "` supplied to `" + h + "`, expected ") + ("instance of `" + C + "`."));
921
+ function re(l) {
922
+ function m(x, S, E, A, w) {
923
+ if (!(x[S] instanceof l)) {
924
+ var C = l.name || _, P = U(x[S]);
925
+ return new b("Invalid " + A + " `" + w + "` of type " + ("`" + P + "` supplied to `" + E + "`, expected ") + ("instance of `" + C + "`."));
926
926
  }
927
927
  return null;
928
928
  }
929
929
  return M(m);
930
930
  }
931
- function $(c) {
932
- if (!Array.isArray(c))
931
+ function $(l) {
932
+ if (!Array.isArray(l))
933
933
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
934
934
  "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])."
935
935
  ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
936
- function m(T, S, h, A, E) {
937
- for (var C = T[S], P = 0; P < c.length; P++)
938
- if (D(C, c[P]))
936
+ function m(x, S, E, A, w) {
937
+ for (var C = x[S], P = 0; P < l.length; P++)
938
+ if (D(C, l[P]))
939
939
  return null;
940
- var R = JSON.stringify(c, function(q, f) {
941
- var Z = ae(f);
942
- return Z === "symbol" ? String(f) : f;
940
+ var R = JSON.stringify(l, function(q, f) {
941
+ var X = ae(f);
942
+ return X === "symbol" ? String(f) : f;
943
943
  });
944
- return new _("Invalid " + A + " `" + E + "` of value `" + String(C) + "` " + ("supplied to `" + h + "`, expected one of " + R + "."));
944
+ return new b("Invalid " + A + " `" + w + "` of value `" + String(C) + "` " + ("supplied to `" + E + "`, expected one of " + R + "."));
945
945
  }
946
946
  return M(m);
947
947
  }
948
- function V(c) {
949
- function m(T, S, h, A, E) {
950
- if (typeof c != "function")
951
- return new _("Property `" + E + "` of component `" + h + "` has invalid PropType notation inside objectOf.");
952
- var C = T[S], P = te(C);
948
+ function V(l) {
949
+ function m(x, S, E, A, w) {
950
+ if (typeof l != "function")
951
+ return new b("Property `" + w + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
952
+ var C = x[S], P = te(C);
953
953
  if (P !== "object")
954
- return new _("Invalid " + A + " `" + E + "` of type " + ("`" + P + "` supplied to `" + h + "`, expected an object."));
954
+ return new b("Invalid " + A + " `" + w + "` of type " + ("`" + P + "` supplied to `" + E + "`, expected an object."));
955
955
  for (var R in C)
956
956
  if (n(C, R)) {
957
- var x = c(C, R, h, A, E + "." + R, t);
958
- if (x instanceof Error)
959
- return x;
957
+ var O = l(C, R, E, A, w + "." + R, t);
958
+ if (O instanceof Error)
959
+ return O;
960
960
  }
961
961
  return null;
962
962
  }
963
963
  return M(m);
964
964
  }
965
- function X(c) {
966
- if (!Array.isArray(c))
965
+ function Z(l) {
966
+ if (!Array.isArray(l))
967
967
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
968
- for (var m = 0; m < c.length; m++) {
969
- var T = c[m];
970
- if (typeof T != "function")
968
+ for (var m = 0; m < l.length; m++) {
969
+ var x = l[m];
970
+ if (typeof x != "function")
971
971
  return o(
972
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(T) + " at index " + m + "."
972
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(x) + " at index " + m + "."
973
973
  ), s;
974
974
  }
975
- function S(h, A, E, C, P) {
976
- for (var R = [], x = 0; x < c.length; x++) {
977
- var q = c[x], f = q(h, A, E, C, P, t);
975
+ function S(E, A, w, C, P) {
976
+ for (var R = [], O = 0; O < l.length; O++) {
977
+ var q = l[O], f = q(E, A, w, C, P, t);
978
978
  if (f == null)
979
979
  return null;
980
980
  f.data && n(f.data, "expectedType") && R.push(f.data.expectedType);
981
981
  }
982
- var Z = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
983
- return new _("Invalid " + C + " `" + P + "` supplied to " + ("`" + E + "`" + Z + "."));
982
+ var X = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
983
+ return new b("Invalid " + C + " `" + P + "` supplied to " + ("`" + w + "`" + X + "."));
984
984
  }
985
985
  return M(S);
986
986
  }
987
987
  function ce() {
988
- function c(m, T, S, h, A) {
989
- return B(m[T]) ? null : new _("Invalid " + h + " `" + A + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
988
+ function l(m, x, S, E, A) {
989
+ return z(m[x]) ? null : new b("Invalid " + E + " `" + A + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
990
990
  }
991
- return M(c);
991
+ return M(l);
992
992
  }
993
- function fe(c, m, T, S, h) {
994
- return new _(
995
- (c || "React class") + ": " + m + " type `" + T + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + h + "`."
993
+ function fe(l, m, x, S, E) {
994
+ return new b(
995
+ (l || "React class") + ": " + m + " type `" + x + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
996
996
  );
997
997
  }
998
- function pe(c) {
999
- function m(T, S, h, A, E) {
1000
- var C = T[S], P = te(C);
998
+ function pe(l) {
999
+ function m(x, S, E, A, w) {
1000
+ var C = x[S], P = te(C);
1001
1001
  if (P !== "object")
1002
- return new _("Invalid " + A + " `" + E + "` of type `" + P + "` " + ("supplied to `" + h + "`, expected `object`."));
1003
- for (var R in c) {
1004
- var x = c[R];
1005
- if (typeof x != "function")
1006
- return fe(h, A, E, R, ae(x));
1007
- var q = x(C, R, h, A, E + "." + R, t);
1002
+ return new b("Invalid " + A + " `" + w + "` of type `" + P + "` " + ("supplied to `" + E + "`, expected `object`."));
1003
+ for (var R in l) {
1004
+ var O = l[R];
1005
+ if (typeof O != "function")
1006
+ return fe(E, A, w, R, ae(O));
1007
+ var q = O(C, R, E, A, w + "." + R, t);
1008
1008
  if (q)
1009
1009
  return q;
1010
1010
  }
@@ -1012,22 +1012,22 @@ function gn() {
1012
1012
  }
1013
1013
  return M(m);
1014
1014
  }
1015
- function le(c) {
1016
- function m(T, S, h, A, E) {
1017
- var C = T[S], P = te(C);
1015
+ function le(l) {
1016
+ function m(x, S, E, A, w) {
1017
+ var C = x[S], P = te(C);
1018
1018
  if (P !== "object")
1019
- return new _("Invalid " + A + " `" + E + "` of type `" + P + "` " + ("supplied to `" + h + "`, expected `object`."));
1020
- var R = r({}, T[S], c);
1021
- for (var x in R) {
1022
- var q = c[x];
1023
- if (n(c, x) && typeof q != "function")
1024
- return fe(h, A, E, x, ae(q));
1019
+ return new b("Invalid " + A + " `" + w + "` of type `" + P + "` " + ("supplied to `" + E + "`, expected `object`."));
1020
+ var R = r({}, x[S], l);
1021
+ for (var O in R) {
1022
+ var q = l[O];
1023
+ if (n(l, O) && typeof q != "function")
1024
+ return fe(E, A, w, O, ae(q));
1025
1025
  if (!q)
1026
- return new _(
1027
- "Invalid " + A + " `" + E + "` key `" + x + "` supplied to `" + h + "`.\nBad object: " + JSON.stringify(T[S], null, " ") + `
1028
- Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
1026
+ return new b(
1027
+ "Invalid " + A + " `" + w + "` key `" + O + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(x[S], null, " ") + `
1028
+ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1029
1029
  );
1030
- var f = q(C, x, h, A, E + "." + x, t);
1030
+ var f = q(C, O, E, A, w + "." + O, t);
1031
1031
  if (f)
1032
1032
  return f;
1033
1033
  }
@@ -1035,30 +1035,30 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
1035
1035
  }
1036
1036
  return M(m);
1037
1037
  }
1038
- function B(c) {
1039
- switch (typeof c) {
1038
+ function z(l) {
1039
+ switch (typeof l) {
1040
1040
  case "number":
1041
1041
  case "string":
1042
1042
  case "undefined":
1043
1043
  return !0;
1044
1044
  case "boolean":
1045
- return !c;
1045
+ return !l;
1046
1046
  case "object":
1047
- if (Array.isArray(c))
1048
- return c.every(B);
1049
- if (c === null || i(c))
1047
+ if (Array.isArray(l))
1048
+ return l.every(z);
1049
+ if (l === null || i(l))
1050
1050
  return !0;
1051
- var m = g(c);
1051
+ var m = g(l);
1052
1052
  if (m) {
1053
- var T = m.call(c), S;
1054
- if (m !== c.entries) {
1055
- for (; !(S = T.next()).done; )
1056
- if (!B(S.value))
1053
+ var x = m.call(l), S;
1054
+ if (m !== l.entries) {
1055
+ for (; !(S = x.next()).done; )
1056
+ if (!z(S.value))
1057
1057
  return !1;
1058
1058
  } else
1059
- for (; !(S = T.next()).done; ) {
1060
- var h = S.value;
1061
- if (h && !B(h[1]))
1059
+ for (; !(S = x.next()).done; ) {
1060
+ var E = S.value;
1061
+ if (E && !z(E[1]))
1062
1062
  return !1;
1063
1063
  }
1064
1064
  } else
@@ -1068,27 +1068,27 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
1068
1068
  return !1;
1069
1069
  }
1070
1070
  }
1071
- function J(c, m) {
1072
- return c === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
1071
+ function J(l, m) {
1072
+ return l === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
1073
1073
  }
1074
- function te(c) {
1075
- var m = typeof c;
1076
- return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : J(m, c) ? "symbol" : m;
1074
+ function te(l) {
1075
+ var m = typeof l;
1076
+ return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : J(m, l) ? "symbol" : m;
1077
1077
  }
1078
- function ae(c) {
1079
- if (typeof c > "u" || c === null)
1080
- return "" + c;
1081
- var m = te(c);
1078
+ function ae(l) {
1079
+ if (typeof l > "u" || l === null)
1080
+ return "" + l;
1081
+ var m = te(l);
1082
1082
  if (m === "object") {
1083
- if (c instanceof Date)
1083
+ if (l instanceof Date)
1084
1084
  return "date";
1085
- if (c instanceof RegExp)
1085
+ if (l instanceof RegExp)
1086
1086
  return "regexp";
1087
1087
  }
1088
1088
  return m;
1089
1089
  }
1090
- function ue(c) {
1091
- var m = ae(c);
1090
+ function ue(l) {
1091
+ var m = ae(l);
1092
1092
  switch (m) {
1093
1093
  case "array":
1094
1094
  case "object":
@@ -1101,29 +1101,29 @@ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
1101
1101
  return m;
1102
1102
  }
1103
1103
  }
1104
- function U(c) {
1105
- return !c.constructor || !c.constructor.name ? w : c.constructor.name;
1104
+ function U(l) {
1105
+ return !l.constructor || !l.constructor.name ? _ : l.constructor.name;
1106
1106
  }
1107
- return O.checkPropTypes = a, O.resetWarningCache = a.resetWarningCache, O.PropTypes = O, O;
1108
- }, Ze;
1107
+ return T.checkPropTypes = a, T.resetWarningCache = a.resetWarningCache, T.PropTypes = T, T;
1108
+ }, Xe;
1109
1109
  }
1110
- var Qe, Cr;
1110
+ var Qe, Sr;
1111
1111
  function bn() {
1112
- if (Cr)
1112
+ if (Sr)
1113
1113
  return Qe;
1114
- Cr = 1;
1114
+ Sr = 1;
1115
1115
  var e = fr();
1116
1116
  function r() {
1117
1117
  }
1118
1118
  function t() {
1119
1119
  }
1120
1120
  return t.resetWarningCache = r, Qe = function() {
1121
- function n(s, i, y, l, v, g) {
1121
+ function n(s, i, v, c, y, g) {
1122
1122
  if (g !== e) {
1123
- var w = new Error(
1123
+ var _ = new Error(
1124
1124
  "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"
1125
1125
  );
1126
- throw w.name = "Invariant Violation", w;
1126
+ throw _.name = "Invariant Violation", _;
1127
1127
  }
1128
1128
  }
1129
1129
  n.isRequired = n;
@@ -1170,24 +1170,24 @@ function Ee(e, r, t, n) {
1170
1170
  });
1171
1171
  }
1172
1172
  return new (t || (t = Promise))(function(o, s) {
1173
- function i(v) {
1173
+ function i(y) {
1174
1174
  try {
1175
- l(n.next(v));
1175
+ c(n.next(y));
1176
1176
  } catch (g) {
1177
1177
  s(g);
1178
1178
  }
1179
1179
  }
1180
- function y(v) {
1180
+ function v(y) {
1181
1181
  try {
1182
- l(n.throw(v));
1182
+ c(n.throw(y));
1183
1183
  } catch (g) {
1184
1184
  s(g);
1185
1185
  }
1186
1186
  }
1187
- function l(v) {
1188
- v.done ? o(v.value) : a(v.value).then(i, y);
1187
+ function c(y) {
1188
+ y.done ? o(y.value) : a(y.value).then(i, v);
1189
1189
  }
1190
- l((n = n.apply(e, r || [])).next());
1190
+ c((n = n.apply(e, r || [])).next());
1191
1191
  });
1192
1192
  }
1193
1193
  function we(e, r) {
@@ -1199,63 +1199,63 @@ function we(e, r) {
1199
1199
  return s = { next: i(0), throw: i(1), return: i(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1200
1200
  return this;
1201
1201
  }), s;
1202
- function i(l) {
1203
- return function(v) {
1204
- return y([l, v]);
1202
+ function i(c) {
1203
+ return function(y) {
1204
+ return v([c, y]);
1205
1205
  };
1206
1206
  }
1207
- function y(l) {
1207
+ function v(c) {
1208
1208
  if (n)
1209
1209
  throw new TypeError("Generator is already executing.");
1210
- for (; s && (s = 0, l[0] && (t = 0)), t; )
1210
+ for (; s && (s = 0, c[0] && (t = 0)), t; )
1211
1211
  try {
1212
- if (n = 1, a && (o = l[0] & 2 ? a.return : l[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && !(o = o.call(a, l[1])).done)
1212
+ if (n = 1, a && (o = c[0] & 2 ? a.return : c[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && !(o = o.call(a, c[1])).done)
1213
1213
  return o;
1214
- switch (a = 0, o && (l = [l[0] & 2, o.value]), l[0]) {
1214
+ switch (a = 0, o && (c = [c[0] & 2, o.value]), c[0]) {
1215
1215
  case 0:
1216
1216
  case 1:
1217
- o = l;
1217
+ o = c;
1218
1218
  break;
1219
1219
  case 4:
1220
- return t.label++, { value: l[1], done: !1 };
1220
+ return t.label++, { value: c[1], done: !1 };
1221
1221
  case 5:
1222
- t.label++, a = l[1], l = [0];
1222
+ t.label++, a = c[1], c = [0];
1223
1223
  continue;
1224
1224
  case 7:
1225
- l = t.ops.pop(), t.trys.pop();
1225
+ c = t.ops.pop(), t.trys.pop();
1226
1226
  continue;
1227
1227
  default:
1228
- if (o = t.trys, !(o = o.length > 0 && o[o.length - 1]) && (l[0] === 6 || l[0] === 2)) {
1228
+ if (o = t.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
1229
1229
  t = 0;
1230
1230
  continue;
1231
1231
  }
1232
- if (l[0] === 3 && (!o || l[1] > o[0] && l[1] < o[3])) {
1233
- t.label = l[1];
1232
+ if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
1233
+ t.label = c[1];
1234
1234
  break;
1235
1235
  }
1236
- if (l[0] === 6 && t.label < o[1]) {
1237
- t.label = o[1], o = l;
1236
+ if (c[0] === 6 && t.label < o[1]) {
1237
+ t.label = o[1], o = c;
1238
1238
  break;
1239
1239
  }
1240
1240
  if (o && t.label < o[2]) {
1241
- t.label = o[2], t.ops.push(l);
1241
+ t.label = o[2], t.ops.push(c);
1242
1242
  break;
1243
1243
  }
1244
1244
  o[2] && t.ops.pop(), t.trys.pop();
1245
1245
  continue;
1246
1246
  }
1247
- l = r.call(e, t);
1248
- } catch (v) {
1249
- l = [6, v], a = 0;
1247
+ c = r.call(e, t);
1248
+ } catch (y) {
1249
+ c = [6, y], a = 0;
1250
1250
  } finally {
1251
1251
  n = o = 0;
1252
1252
  }
1253
- if (l[0] & 5)
1254
- throw l[1];
1255
- return { value: l[0] ? l[1] : void 0, done: !0 };
1253
+ if (c[0] & 5)
1254
+ throw c[1];
1255
+ return { value: c[0] ? c[1] : void 0, done: !0 };
1256
1256
  }
1257
1257
  }
1258
- function Or(e, r) {
1258
+ function Cr(e, r) {
1259
1259
  var t = typeof Symbol == "function" && e[Symbol.iterator];
1260
1260
  if (!t)
1261
1261
  return e;
@@ -1275,7 +1275,7 @@ function Or(e, r) {
1275
1275
  }
1276
1276
  return o;
1277
1277
  }
1278
- function xr(e, r, t) {
1278
+ function Or(e, r, t) {
1279
1279
  if (t || arguments.length === 2)
1280
1280
  for (var n = 0, a = r.length, o; n < a; n++)
1281
1281
  (o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
@@ -1391,25 +1391,25 @@ function Tn(e) {
1391
1391
  }
1392
1392
  return e;
1393
1393
  }
1394
- var Sn = [
1394
+ var xn = [
1395
1395
  // Thumbnail cache files for macOS and Windows
1396
1396
  ".DS_Store",
1397
1397
  "Thumbs.db"
1398
1398
  // Windows
1399
1399
  ];
1400
- function Cn(e) {
1400
+ function Sn(e) {
1401
1401
  return Ee(this, void 0, void 0, function() {
1402
1402
  return we(this, function(r) {
1403
- return Ne(e) && On(e.dataTransfer) ? [2, Pn(e.dataTransfer, e.type)] : xn(e) ? [2, Dn(e)] : Array.isArray(e) && e.every(function(t) {
1403
+ return Ne(e) && Cn(e.dataTransfer) ? [2, Pn(e.dataTransfer, e.type)] : On(e) ? [2, Dn(e)] : Array.isArray(e) && e.every(function(t) {
1404
1404
  return "getFile" in t && typeof t.getFile == "function";
1405
1405
  }) ? [2, An(e)] : [2, []];
1406
1406
  });
1407
1407
  });
1408
1408
  }
1409
- function On(e) {
1409
+ function Cn(e) {
1410
1410
  return Ne(e);
1411
1411
  }
1412
- function xn(e) {
1412
+ function On(e) {
1413
1413
  return Ne(e) && Ne(e.target);
1414
1414
  }
1415
1415
  function Ne(e) {
@@ -1458,7 +1458,7 @@ function Pn(e, r) {
1458
1458
  }
1459
1459
  function Dr(e) {
1460
1460
  return e.filter(function(r) {
1461
- return Sn.indexOf(r.name) === -1;
1461
+ return xn.indexOf(r.name) === -1;
1462
1462
  });
1463
1463
  }
1464
1464
  function or(e) {
@@ -1478,7 +1478,7 @@ function Rn(e) {
1478
1478
  }
1479
1479
  function Vr(e) {
1480
1480
  return e.reduce(function(r, t) {
1481
- return xr(xr([], Or(r), !1), Or(Array.isArray(t) ? Vr(t) : [t]), !1);
1481
+ return Or(Or([], Cr(r), !1), Cr(Array.isArray(t) ? Vr(t) : [t]), !1);
1482
1482
  }, []);
1483
1483
  }
1484
1484
  function Ar(e) {
@@ -1503,7 +1503,7 @@ function Jr(e) {
1503
1503
  var s = this;
1504
1504
  r.readEntries(function(i) {
1505
1505
  return Ee(s, void 0, void 0, function() {
1506
- var y, l, v;
1506
+ var v, c, y;
1507
1507
  return we(this, function(g) {
1508
1508
  switch (g.label) {
1509
1509
  case 0:
@@ -1513,13 +1513,13 @@ function Jr(e) {
1513
1513
  case 1:
1514
1514
  return g.trys.push([1, 3, , 4]), [4, Promise.all(a)];
1515
1515
  case 2:
1516
- return y = g.sent(), t(y), [3, 4];
1516
+ return v = g.sent(), t(v), [3, 4];
1517
1517
  case 3:
1518
- return l = g.sent(), n(l), [3, 4];
1518
+ return c = g.sent(), n(c), [3, 4];
1519
1519
  case 4:
1520
1520
  return [3, 6];
1521
1521
  case 5:
1522
- v = Promise.all(i.map(In)), a.push(v), o(), g.label = 6;
1522
+ y = Promise.all(i.map(In)), a.push(y), o(), g.label = 6;
1523
1523
  case 6:
1524
1524
  return [
1525
1525
  2
@@ -1560,7 +1560,7 @@ var jn = function(e, r) {
1560
1560
  return !0;
1561
1561
  };
1562
1562
  function Pr(e) {
1563
- return $n(e) || Nn(e) || Zr(e) || kn();
1563
+ return $n(e) || Nn(e) || Xr(e) || kn();
1564
1564
  }
1565
1565
  function kn() {
1566
1566
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -1588,24 +1588,24 @@ function Ir(e) {
1588
1588
  for (var r = 1; r < arguments.length; r++) {
1589
1589
  var t = arguments[r] != null ? arguments[r] : {};
1590
1590
  r % 2 ? Rr(Object(t), !0).forEach(function(n) {
1591
- Xr(e, n, t[n]);
1591
+ Zr(e, n, t[n]);
1592
1592
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Rr(Object(t)).forEach(function(n) {
1593
1593
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1594
1594
  });
1595
1595
  }
1596
1596
  return e;
1597
1597
  }
1598
- function Xr(e, r, t) {
1598
+ function Zr(e, r, t) {
1599
1599
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1600
1600
  }
1601
- function xe(e, r) {
1602
- return zn(e) || Ln(e, r) || Zr(e, r) || Mn();
1601
+ function Oe(e, r) {
1602
+ return Bn(e) || Ln(e, r) || Xr(e, r) || Mn();
1603
1603
  }
1604
1604
  function Mn() {
1605
1605
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1606
1606
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1607
1607
  }
1608
- function Zr(e, r) {
1608
+ function Xr(e, r) {
1609
1609
  if (e) {
1610
1610
  if (typeof e == "string")
1611
1611
  return ar(e, r);
@@ -1629,8 +1629,8 @@ function Ln(e, r) {
1629
1629
  try {
1630
1630
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1631
1631
  ;
1632
- } catch (y) {
1633
- o = !0, i = y;
1632
+ } catch (v) {
1633
+ o = !0, i = v;
1634
1634
  } finally {
1635
1635
  try {
1636
1636
  !a && t.return != null && t.return();
@@ -1642,15 +1642,15 @@ function Ln(e, r) {
1642
1642
  return n;
1643
1643
  }
1644
1644
  }
1645
- function zn(e) {
1645
+ function Bn(e) {
1646
1646
  if (Array.isArray(e))
1647
1647
  return e;
1648
1648
  }
1649
- var Bn = "file-invalid-type", Wn = "file-too-large", Yn = "file-too-small", qn = "too-many-files", Hn = function(r) {
1649
+ var zn = "file-invalid-type", Wn = "file-too-large", Yn = "file-too-small", qn = "too-many-files", Kn = function(r) {
1650
1650
  r = Array.isArray(r) && r.length === 1 ? r[0] : r;
1651
1651
  var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
1652
1652
  return {
1653
- code: Bn,
1653
+ code: zn,
1654
1654
  message: "File type must be ".concat(t)
1655
1655
  };
1656
1656
  }, Fr = function(r) {
@@ -1663,13 +1663,13 @@ var Bn = "file-invalid-type", Wn = "file-too-large", Yn = "file-too-small", qn =
1663
1663
  code: Yn,
1664
1664
  message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1665
1665
  };
1666
- }, Kn = {
1666
+ }, Hn = {
1667
1667
  code: qn,
1668
1668
  message: "Too many files"
1669
1669
  };
1670
1670
  function Qr(e, r) {
1671
1671
  var t = e.type === "application/x-moz-file" || jn(e, r);
1672
- return [t, t ? null : Hn(r)];
1672
+ return [t, t ? null : Kn(r)];
1673
1673
  }
1674
1674
  function et(e, r, t) {
1675
1675
  if (me(e.size))
@@ -1691,9 +1691,9 @@ function me(e) {
1691
1691
  }
1692
1692
  function Un(e) {
1693
1693
  var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, s = e.maxFiles, i = e.validator;
1694
- return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(y) {
1695
- var l = Qr(y, t), v = xe(l, 1), g = v[0], w = et(y, n, a), O = xe(w, 1), D = O[0], _ = i ? i(y) : null;
1696
- return g && D && !_;
1694
+ return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(v) {
1695
+ var c = Qr(v, t), y = Oe(c, 1), g = y[0], _ = et(v, n, a), T = Oe(_, 1), D = T[0], b = i ? i(v) : null;
1696
+ return g && D && !b;
1697
1697
  });
1698
1698
  }
1699
1699
  function $e(e) {
@@ -1728,17 +1728,17 @@ function ie() {
1728
1728
  });
1729
1729
  };
1730
1730
  }
1731
- function Xn() {
1731
+ function Zn() {
1732
1732
  return "showOpenFilePicker" in window;
1733
1733
  }
1734
- function Zn(e) {
1734
+ function Xn(e) {
1735
1735
  if (me(e)) {
1736
1736
  var r = Object.entries(e).filter(function(t) {
1737
- var n = xe(t, 2), a = n[0], o = n[1], s = !0;
1737
+ var n = Oe(t, 2), a = n[0], o = n[1], s = !0;
1738
1738
  return rt(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(o) || !o.every(tt)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), s = !1), s;
1739
1739
  }).reduce(function(t, n) {
1740
- var a = xe(n, 2), o = a[0], s = a[1];
1741
- return Ir(Ir({}, t), {}, Xr({}, o, s));
1740
+ var a = Oe(n, 2), o = a[0], s = a[1];
1741
+ return Ir(Ir({}, t), {}, Zr({}, o, s));
1742
1742
  }, {});
1743
1743
  return [{
1744
1744
  // description is required due to https://crbug.com/1264708
@@ -1751,7 +1751,7 @@ function Zn(e) {
1751
1751
  function Qn(e) {
1752
1752
  if (me(e))
1753
1753
  return Object.entries(e).reduce(function(r, t) {
1754
- var n = xe(t, 2), a = n[0], o = n[1];
1754
+ var n = Oe(t, 2), a = n[0], o = n[1];
1755
1755
  return [].concat(Pr(r), [a], Pr(o));
1756
1756
  }, []).filter(function(r) {
1757
1757
  return rt(r) || tt(r);
@@ -1816,8 +1816,8 @@ function fo(e, r) {
1816
1816
  try {
1817
1817
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1818
1818
  ;
1819
- } catch (y) {
1820
- o = !0, i = y;
1819
+ } catch (v) {
1820
+ o = !0, i = v;
1821
1821
  } finally {
1822
1822
  try {
1823
1823
  !a && t.return != null && t.return();
@@ -1843,7 +1843,7 @@ function Nr(e, r) {
1843
1843
  }
1844
1844
  return t;
1845
1845
  }
1846
- function z(e) {
1846
+ function B(e) {
1847
1847
  for (var r = 1; r < arguments.length; r++) {
1848
1848
  var t = arguments[r] != null ? arguments[r] : {};
1849
1849
  r % 2 ? Nr(Object(t), !0).forEach(function(n) {
@@ -1882,14 +1882,14 @@ var pr = /* @__PURE__ */ mt(function(e, r) {
1882
1882
  return {
1883
1883
  open: o
1884
1884
  };
1885
- }, [o]), /* @__PURE__ */ ut.createElement(yt, null, t(z(z({}, s), {}, {
1885
+ }, [o]), /* @__PURE__ */ ut.createElement(yt, null, t(B(B({}, s), {}, {
1886
1886
  open: o
1887
1887
  })));
1888
1888
  });
1889
1889
  pr.displayName = "Dropzone";
1890
1890
  var ot = {
1891
1891
  disabled: !1,
1892
- getFilesFromEvent: Cn,
1892
+ getFilesFromEvent: Sn,
1893
1893
  maxSize: 1 / 0,
1894
1894
  minSize: 0,
1895
1895
  multiple: !0,
@@ -2082,119 +2082,119 @@ var cr = {
2082
2082
  fileRejections: []
2083
2083
  };
2084
2084
  function at() {
2085
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, ot), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, y = r.maxFiles, l = r.onDragEnter, v = r.onDragLeave, g = r.onDragOver, w = r.onDrop, O = r.onDropAccepted, D = r.onDropRejected, _ = r.onFileDialogCancel, M = r.onFileDialogOpen, L = r.useFsAccessApi, K = r.autoFocus, j = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, re = r.noDrag, $ = r.noDragEventsBubbling, V = r.onError, X = r.validator, ce = oe(function() {
2085
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = B(B({}, ot), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, v = r.maxFiles, c = r.onDragEnter, y = r.onDragLeave, g = r.onDragOver, _ = r.onDrop, T = r.onDropAccepted, D = r.onDropRejected, b = r.onFileDialogCancel, M = r.onFileDialogOpen, L = r.useFsAccessApi, H = r.autoFocus, j = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, re = r.noDrag, $ = r.noDragEventsBubbling, V = r.onError, Z = r.validator, ce = oe(function() {
2086
2086
  return Qn(t);
2087
2087
  }, [t]), fe = oe(function() {
2088
- return Zn(t);
2088
+ return Xn(t);
2089
2089
  }, [t]), pe = oe(function() {
2090
2090
  return typeof M == "function" ? M : $r;
2091
2091
  }, [M]), le = oe(function() {
2092
- return typeof _ == "function" ? _ : $r;
2093
- }, [_]), B = Ce(null), J = Ce(null), te = dt(vo, cr), ae = er(te, 2), ue = ae[0], U = ae[1], c = ue.isFocused, m = ue.isFileDialogActive, T = Ce(typeof window < "u" && window.isSecureContext && L && Xn()), S = function() {
2094
- !T.current && m && setTimeout(function() {
2092
+ return typeof b == "function" ? b : $r;
2093
+ }, [b]), z = Se(null), J = Se(null), te = dt(vo, cr), ae = er(te, 2), ue = ae[0], U = ae[1], l = ue.isFocused, m = ue.isFileDialogActive, x = Se(typeof window < "u" && window.isSecureContext && L && Zn()), S = function() {
2094
+ !x.current && m && setTimeout(function() {
2095
2095
  if (J.current) {
2096
- var b = J.current.files;
2097
- b.length || (U({
2096
+ var h = J.current.files;
2097
+ h.length || (U({
2098
2098
  type: "closeDialog"
2099
2099
  }), le());
2100
2100
  }
2101
2101
  }, 300);
2102
2102
  };
2103
- Oe(function() {
2103
+ Ce(function() {
2104
2104
  return window.addEventListener("focus", S, !1), function() {
2105
2105
  window.removeEventListener("focus", S, !1);
2106
2106
  };
2107
- }, [J, m, le, T]);
2108
- var h = Ce([]), A = function(b) {
2109
- B.current && B.current.contains(b.target) || (b.preventDefault(), h.current = []);
2107
+ }, [J, m, le, x]);
2108
+ var E = Se([]), A = function(h) {
2109
+ z.current && z.current.contains(h.target) || (h.preventDefault(), E.current = []);
2110
2110
  };
2111
- Oe(function() {
2111
+ Ce(function() {
2112
2112
  return j && (document.addEventListener("dragover", kr, !1), document.addEventListener("drop", A, !1)), function() {
2113
2113
  j && (document.removeEventListener("dragover", kr), document.removeEventListener("drop", A));
2114
2114
  };
2115
- }, [B, j]), Oe(function() {
2116
- return !n && K && B.current && B.current.focus(), function() {
2115
+ }, [z, j]), Ce(function() {
2116
+ return !n && H && z.current && z.current.focus(), function() {
2117
2117
  };
2118
- }, [B, K, n]);
2119
- var E = ee(function(d) {
2118
+ }, [z, H, n]);
2119
+ var w = ee(function(d) {
2120
2120
  V ? V(d) : console.error(d);
2121
2121
  }, [V]), C = ee(function(d) {
2122
- d.preventDefault(), d.persist(), Re(d), h.current = [].concat(io(h.current), [d.target]), je(d) && Promise.resolve(a(d)).then(function(b) {
2122
+ d.preventDefault(), d.persist(), Re(d), E.current = [].concat(io(E.current), [d.target]), je(d) && Promise.resolve(a(d)).then(function(h) {
2123
2123
  if (!($e(d) && !$)) {
2124
- var Y = b.length, G = Y > 0 && Un({
2125
- files: b,
2124
+ var Y = h.length, G = Y > 0 && Un({
2125
+ files: h,
2126
2126
  accept: ce,
2127
2127
  minSize: s,
2128
2128
  maxSize: o,
2129
2129
  multiple: i,
2130
- maxFiles: y,
2131
- validator: X
2130
+ maxFiles: v,
2131
+ validator: Z
2132
2132
  }), Q = Y > 0 && !G;
2133
2133
  U({
2134
2134
  isDragAccept: G,
2135
2135
  isDragReject: Q,
2136
2136
  isDragActive: !0,
2137
2137
  type: "setDraggedFiles"
2138
- }), l && l(d);
2138
+ }), c && c(d);
2139
2139
  }
2140
- }).catch(function(b) {
2141
- return E(b);
2140
+ }).catch(function(h) {
2141
+ return w(h);
2142
2142
  });
2143
- }, [a, l, E, $, ce, s, o, i, y, X]), P = ee(function(d) {
2143
+ }, [a, c, w, $, ce, s, o, i, v, Z]), P = ee(function(d) {
2144
2144
  d.preventDefault(), d.persist(), Re(d);
2145
- var b = je(d);
2146
- if (b && d.dataTransfer)
2145
+ var h = je(d);
2146
+ if (h && d.dataTransfer)
2147
2147
  try {
2148
2148
  d.dataTransfer.dropEffect = "copy";
2149
2149
  } catch {
2150
2150
  }
2151
- return b && g && g(d), !1;
2151
+ return h && g && g(d), !1;
2152
2152
  }, [g, $]), R = ee(function(d) {
2153
2153
  d.preventDefault(), d.persist(), Re(d);
2154
- var b = h.current.filter(function(G) {
2155
- return B.current && B.current.contains(G);
2156
- }), Y = b.indexOf(d.target);
2157
- Y !== -1 && b.splice(Y, 1), h.current = b, !(b.length > 0) && (U({
2154
+ var h = E.current.filter(function(G) {
2155
+ return z.current && z.current.contains(G);
2156
+ }), Y = h.indexOf(d.target);
2157
+ Y !== -1 && h.splice(Y, 1), E.current = h, !(h.length > 0) && (U({
2158
2158
  type: "setDraggedFiles",
2159
2159
  isDragActive: !1,
2160
2160
  isDragAccept: !1,
2161
2161
  isDragReject: !1
2162
- }), je(d) && v && v(d));
2163
- }, [B, v, $]), x = ee(function(d, b) {
2162
+ }), je(d) && y && y(d));
2163
+ }, [z, y, $]), O = ee(function(d, h) {
2164
2164
  var Y = [], G = [];
2165
2165
  d.forEach(function(Q) {
2166
- var Se = Qr(Q, ce), ge = er(Se, 2), Be = ge[0], We = ge[1], Ye = et(Q, s, o), Ie = er(Ye, 2), qe = Ie[0], He = Ie[1], Ke = X ? X(Q) : null;
2167
- if (Be && qe && !Ke)
2166
+ var xe = Qr(Q, ce), ge = er(xe, 2), ze = ge[0], We = ge[1], Ye = et(Q, s, o), Ie = er(Ye, 2), qe = Ie[0], Ke = Ie[1], He = Z ? Z(Q) : null;
2167
+ if (ze && qe && !He)
2168
2168
  Y.push(Q);
2169
2169
  else {
2170
- var Ue = [We, He];
2171
- Ke && (Ue = Ue.concat(Ke)), G.push({
2170
+ var Ue = [We, Ke];
2171
+ He && (Ue = Ue.concat(He)), G.push({
2172
2172
  file: Q,
2173
2173
  errors: Ue.filter(function(lt) {
2174
2174
  return lt;
2175
2175
  })
2176
2176
  });
2177
2177
  }
2178
- }), (!i && Y.length > 1 || i && y >= 1 && Y.length > y) && (Y.forEach(function(Q) {
2178
+ }), (!i && Y.length > 1 || i && v >= 1 && Y.length > v) && (Y.forEach(function(Q) {
2179
2179
  G.push({
2180
2180
  file: Q,
2181
- errors: [Kn]
2181
+ errors: [Hn]
2182
2182
  });
2183
2183
  }), Y.splice(0)), U({
2184
2184
  acceptedFiles: Y,
2185
2185
  fileRejections: G,
2186
2186
  type: "setFiles"
2187
- }), w && w(Y, G, b), G.length > 0 && D && D(G, b), Y.length > 0 && O && O(Y, b);
2188
- }, [U, i, ce, s, o, y, w, O, D, X]), q = ee(function(d) {
2189
- d.preventDefault(), d.persist(), Re(d), h.current = [], je(d) && Promise.resolve(a(d)).then(function(b) {
2190
- $e(d) && !$ || x(b, d);
2191
- }).catch(function(b) {
2192
- return E(b);
2187
+ }), _ && _(Y, G, h), G.length > 0 && D && D(G, h), Y.length > 0 && T && T(Y, h);
2188
+ }, [U, i, ce, s, o, v, _, T, D, Z]), q = ee(function(d) {
2189
+ d.preventDefault(), d.persist(), Re(d), E.current = [], je(d) && Promise.resolve(a(d)).then(function(h) {
2190
+ $e(d) && !$ || O(h, d);
2191
+ }).catch(function(h) {
2192
+ return w(h);
2193
2193
  }), U({
2194
2194
  type: "reset"
2195
2195
  });
2196
- }, [a, x, E, $]), f = ee(function() {
2197
- if (T.current) {
2196
+ }, [a, O, w, $]), f = ee(function() {
2197
+ if (x.current) {
2198
2198
  U({
2199
2199
  type: "openDialog"
2200
2200
  }), pe();
@@ -2202,25 +2202,25 @@ function at() {
2202
2202
  multiple: i,
2203
2203
  types: fe
2204
2204
  };
2205
- window.showOpenFilePicker(d).then(function(b) {
2206
- return a(b);
2207
- }).then(function(b) {
2208
- x(b, null), U({
2205
+ window.showOpenFilePicker(d).then(function(h) {
2206
+ return a(h);
2207
+ }).then(function(h) {
2208
+ O(h, null), U({
2209
2209
  type: "closeDialog"
2210
2210
  });
2211
- }).catch(function(b) {
2212
- eo(b) ? (le(b), U({
2211
+ }).catch(function(h) {
2212
+ eo(h) ? (le(h), U({
2213
2213
  type: "closeDialog"
2214
- })) : ro(b) ? (T.current = !1, J.current ? (J.current.value = null, J.current.click()) : E(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."))) : E(b);
2214
+ })) : ro(h) ? (x.current = !1, J.current ? (J.current.value = null, J.current.click()) : w(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."))) : w(h);
2215
2215
  });
2216
2216
  return;
2217
2217
  }
2218
2218
  J.current && (U({
2219
2219
  type: "openDialog"
2220
2220
  }), pe(), J.current.value = null, J.current.click());
2221
- }, [U, pe, le, L, x, E, fe, i]), Z = ee(function(d) {
2222
- !B.current || !B.current.isEqualNode(d.target) || (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && (d.preventDefault(), f());
2223
- }, [B, f]), de = ee(function() {
2221
+ }, [U, pe, le, L, O, w, fe, i]), X = ee(function(d) {
2222
+ !z.current || !z.current.isEqualNode(d.target) || (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && (d.preventDefault(), f());
2223
+ }, [z, f]), de = ee(function() {
2224
2224
  U({
2225
2225
  type: "focus"
2226
2226
  });
@@ -2230,36 +2230,36 @@ function at() {
2230
2230
  });
2231
2231
  }, []), dr = ee(function() {
2232
2232
  k || (Jn() ? setTimeout(f, 0) : f());
2233
- }, [k, f]), ye = function(b) {
2234
- return n ? null : b;
2235
- }, ze = function(b) {
2236
- return p ? null : ye(b);
2237
- }, Pe = function(b) {
2238
- return re ? null : ye(b);
2239
- }, Re = function(b) {
2240
- $ && b.stopPropagation();
2233
+ }, [k, f]), ye = function(h) {
2234
+ return n ? null : h;
2235
+ }, Be = function(h) {
2236
+ return p ? null : ye(h);
2237
+ }, Pe = function(h) {
2238
+ return re ? null : ye(h);
2239
+ }, Re = function(h) {
2240
+ $ && h.stopPropagation();
2241
2241
  }, it = oe(function() {
2242
2242
  return function() {
2243
- var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = d.refKey, Y = b === void 0 ? "ref" : b, G = d.role, Q = d.onKeyDown, Se = d.onFocus, ge = d.onBlur, Be = d.onClick, We = d.onDragEnter, Ye = d.onDragOver, Ie = d.onDragLeave, qe = d.onDrop, He = Me(d, oo);
2244
- return z(z(sr({
2245
- onKeyDown: ze(ie(Q, Z)),
2246
- onFocus: ze(ie(Se, de)),
2247
- onBlur: ze(ie(ge, Te)),
2248
- onClick: ye(ie(Be, dr)),
2243
+ var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, h = d.refKey, Y = h === void 0 ? "ref" : h, G = d.role, Q = d.onKeyDown, xe = d.onFocus, ge = d.onBlur, ze = d.onClick, We = d.onDragEnter, Ye = d.onDragOver, Ie = d.onDragLeave, qe = d.onDrop, Ke = Me(d, oo);
2244
+ return B(B(sr({
2245
+ onKeyDown: Be(ie(Q, X)),
2246
+ onFocus: Be(ie(xe, de)),
2247
+ onBlur: Be(ie(ge, Te)),
2248
+ onClick: ye(ie(ze, dr)),
2249
2249
  onDragEnter: Pe(ie(We, C)),
2250
2250
  onDragOver: Pe(ie(Ye, P)),
2251
2251
  onDragLeave: Pe(ie(Ie, R)),
2252
2252
  onDrop: Pe(ie(qe, q)),
2253
2253
  role: typeof G == "string" && G !== "" ? G : "presentation"
2254
- }, Y, B), !n && !p ? {
2254
+ }, Y, z), !n && !p ? {
2255
2255
  tabIndex: 0
2256
- } : {}), He);
2256
+ } : {}), Ke);
2257
2257
  };
2258
- }, [B, Z, de, Te, dr, C, P, R, q, p, re, n]), st = ee(function(d) {
2258
+ }, [z, X, de, Te, dr, C, P, R, q, p, re, n]), st = ee(function(d) {
2259
2259
  d.stopPropagation();
2260
2260
  }, []), ct = oe(function() {
2261
2261
  return function() {
2262
- var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = d.refKey, Y = b === void 0 ? "ref" : b, G = d.onChange, Q = d.onClick, Se = Me(d, ao), ge = sr({
2262
+ var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, h = d.refKey, Y = h === void 0 ? "ref" : h, G = d.onChange, Q = d.onClick, xe = Me(d, ao), ge = sr({
2263
2263
  accept: ce,
2264
2264
  multiple: i,
2265
2265
  type: "file",
@@ -2270,14 +2270,14 @@ function at() {
2270
2270
  onClick: ye(ie(Q, st)),
2271
2271
  tabIndex: -1
2272
2272
  }, Y, J);
2273
- return z(z({}, ge), Se);
2273
+ return B(B({}, ge), xe);
2274
2274
  };
2275
2275
  }, [J, t, i, q, n]);
2276
- return z(z({}, ue), {}, {
2277
- isFocused: c && !n,
2276
+ return B(B({}, ue), {}, {
2277
+ isFocused: l && !n,
2278
2278
  getRootProps: it,
2279
2279
  getInputProps: ct,
2280
- rootRef: B,
2280
+ rootRef: z,
2281
2281
  inputRef: J,
2282
2282
  open: ye(f)
2283
2283
  });
@@ -2285,41 +2285,41 @@ function at() {
2285
2285
  function vo(e, r) {
2286
2286
  switch (r.type) {
2287
2287
  case "focus":
2288
- return z(z({}, e), {}, {
2288
+ return B(B({}, e), {}, {
2289
2289
  isFocused: !0
2290
2290
  });
2291
2291
  case "blur":
2292
- return z(z({}, e), {}, {
2292
+ return B(B({}, e), {}, {
2293
2293
  isFocused: !1
2294
2294
  });
2295
2295
  case "openDialog":
2296
- return z(z({}, cr), {}, {
2296
+ return B(B({}, cr), {}, {
2297
2297
  isFileDialogActive: !0
2298
2298
  });
2299
2299
  case "closeDialog":
2300
- return z(z({}, e), {}, {
2300
+ return B(B({}, e), {}, {
2301
2301
  isFileDialogActive: !1
2302
2302
  });
2303
2303
  case "setDraggedFiles":
2304
- return z(z({}, e), {}, {
2304
+ return B(B({}, e), {}, {
2305
2305
  isDragActive: r.isDragActive,
2306
2306
  isDragAccept: r.isDragAccept,
2307
2307
  isDragReject: r.isDragReject
2308
2308
  });
2309
2309
  case "setFiles":
2310
- return z(z({}, e), {}, {
2310
+ return B(B({}, e), {}, {
2311
2311
  acceptedFiles: r.acceptedFiles,
2312
2312
  fileRejections: r.fileRejections
2313
2313
  });
2314
2314
  case "reset":
2315
- return z({}, cr);
2315
+ return B({}, cr);
2316
2316
  default:
2317
2317
  return e;
2318
2318
  }
2319
2319
  }
2320
2320
  function $r() {
2321
2321
  }
2322
- const xo = ({
2322
+ const Oo = ({
2323
2323
  onFileUpload: e
2324
2324
  }) => {
2325
2325
  const { getRootProps: r } = at({
@@ -2344,40 +2344,40 @@ const yo = (e) => [...e].sort(
2344
2344
  isOpen: o,
2345
2345
  footer: s,
2346
2346
  sortFn: i = yo,
2347
- groupFn: y = go,
2348
- ...l
2347
+ groupFn: v = go,
2348
+ ...c
2349
2349
  }) => {
2350
- const v = oe(() => e.some((_) => _.group), [e]), g = oe(() => i(e), [e, i]), w = oe(
2351
- () => v ? y(g) : { Ungrouped: g },
2352
- [e, y]
2353
- ), O = oe(
2354
- () => new Set(r.map((_) => _.value)),
2350
+ const y = oe(() => e.some((b) => b.group), [e]), g = oe(() => i(e), [e, i]), _ = oe(
2351
+ () => y ? v(g) : { Ungrouped: g },
2352
+ [e, v]
2353
+ ), T = oe(
2354
+ () => new Set(r.map((b) => b.value)),
2355
2355
  [r]
2356
2356
  ), D = oe(
2357
- () => new Set(t.map((_) => _.value)),
2357
+ () => new Set(t.map((b) => b.value)),
2358
2358
  [t]
2359
2359
  );
2360
- return /* @__PURE__ */ u(Kr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ se("div", { className: "multi-select__dropdown", role: "listbox", ...l, children: [
2360
+ return /* @__PURE__ */ u(Hr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ se("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
2361
2361
  n || null,
2362
- Object.entries(w).map(([_, M]) => /* @__PURE__ */ se("div", { className: "multi-select__group", children: [
2363
- v ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: _ }) : null,
2364
- /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": _, children: M.map((L) => {
2365
- const K = O.has(L.value), j = D.has(L.value);
2362
+ Object.entries(_).map(([b, M]) => /* @__PURE__ */ se("div", { className: "multi-select__group", children: [
2363
+ y ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: b }) : null,
2364
+ /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": b, children: M.map((L) => {
2365
+ const H = T.has(L.value), j = D.has(L.value);
2366
2366
  return /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
2367
2367
  Tt,
2368
2368
  {
2369
2369
  disabled: j,
2370
2370
  label: L.label,
2371
- checked: K,
2371
+ checked: H,
2372
2372
  onChange: () => a(
2373
- K ? r.filter(
2373
+ H ? r.filter(
2374
2374
  (k) => k.value !== L.value
2375
2375
  ) : [...r, L]
2376
2376
  )
2377
2377
  }
2378
2378
  ) }, L.value);
2379
2379
  }) })
2380
- ] }, _)),
2380
+ ] }, b)),
2381
2381
  s ? /* @__PURE__ */ u("div", { className: "multi-select__footer", children: s }) : null
2382
2382
  ] }) });
2383
2383
  }, Do = ({
@@ -2389,42 +2389,42 @@ const yo = (e) => [...e].sort(
2389
2389
  required: o = !1,
2390
2390
  items: s = [],
2391
2391
  disabledItems: i = [],
2392
- dropdownHeader: y,
2393
- dropdownFooter: l,
2394
- variant: v = "search"
2392
+ dropdownHeader: v,
2393
+ dropdownFooter: c,
2394
+ variant: y = "search"
2395
2395
  }) => {
2396
- const g = St(() => {
2397
- O(!1), _("");
2396
+ const g = xt(() => {
2397
+ T(!1), b("");
2398
2398
  });
2399
- Ct(() => {
2400
- O(!1), _("");
2399
+ St(() => {
2400
+ T(!1), b("");
2401
2401
  });
2402
- const [w, O] = be(!1), [D, _] = be("");
2403
- Oe(() => {
2404
- w || _("");
2405
- }, [w]);
2406
- const [M, L] = be([]), K = r || M, j = ($) => {
2402
+ const [_, T] = be(!1), [D, b] = be("");
2403
+ Ce(() => {
2404
+ _ || b("");
2405
+ }, [_]);
2406
+ const [M, L] = be([]), H = r || M, j = ($) => {
2407
2407
  const V = Array.from(new Set($));
2408
2408
  L(V), n && n(V);
2409
- }, k = rr(), p = rr(), re = K.filter(
2409
+ }, k = rr(), p = rr(), re = H.filter(
2410
2410
  ($) => s.some((V) => V.value === $.value)
2411
2411
  ).map(($) => $.label).join(", ");
2412
2412
  return /* @__PURE__ */ u("div", { ref: g, children: /* @__PURE__ */ se("div", { className: "multi-select", children: [
2413
- v === "search" ? /* @__PURE__ */ u(
2414
- Ot,
2413
+ y === "search" ? /* @__PURE__ */ u(
2414
+ Ct,
2415
2415
  {
2416
2416
  externallyControlled: !0,
2417
2417
  "aria-controls": k,
2418
- "aria-expanded": w,
2418
+ "aria-expanded": _,
2419
2419
  id: p,
2420
2420
  role: "combobox",
2421
2421
  "aria-label": t || a || "Search",
2422
2422
  disabled: e,
2423
2423
  autoComplete: "off",
2424
2424
  onChange: ($) => {
2425
- _($), O(!0);
2425
+ b($), T(!0);
2426
2426
  },
2427
- onFocus: () => O(!0),
2427
+ onFocus: () => T(!0),
2428
2428
  placeholder: a ?? "Search",
2429
2429
  required: o,
2430
2430
  type: "text",
@@ -2438,26 +2438,26 @@ const yo = (e) => [...e].sort(
2438
2438
  type: "button",
2439
2439
  "aria-label": t || a || "Select items",
2440
2440
  "aria-controls": k,
2441
- "aria-expanded": w,
2441
+ "aria-expanded": _,
2442
2442
  className: "multi-select__select-button",
2443
- onFocus: () => O(!0),
2444
- onClick: () => O(!0),
2445
- children: K.length > 0 ? re : a ?? "Select items"
2443
+ onFocus: () => T(!0),
2444
+ onClick: () => T(!0),
2445
+ children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: H.length > 0 ? re : a ?? "Select items" })
2446
2446
  }
2447
2447
  ),
2448
2448
  /* @__PURE__ */ u(
2449
2449
  bo,
2450
2450
  {
2451
2451
  id: k,
2452
- isOpen: w,
2452
+ isOpen: _,
2453
2453
  items: D.length > 0 ? s.filter(
2454
2454
  ($) => $.label.toLowerCase().includes(D.toLowerCase())
2455
2455
  ) : s,
2456
- selectedItems: K,
2456
+ selectedItems: H,
2457
2457
  disabledItems: i,
2458
- header: y,
2458
+ header: v,
2459
2459
  updateItems: j,
2460
- footer: l || /* @__PURE__ */ se(De, { children: [
2460
+ footer: c || /* @__PURE__ */ se(De, { children: [
2461
2461
  /* @__PURE__ */ u(
2462
2462
  _e,
2463
2463
  {
@@ -2465,10 +2465,10 @@ const yo = (e) => [...e].sort(
2465
2465
  onClick: () => {
2466
2466
  const $ = s.filter(
2467
2467
  (V) => !i.some(
2468
- (X) => X.value === V.value
2468
+ (Z) => Z.value === V.value
2469
2469
  )
2470
2470
  );
2471
- j([...K, ...$]);
2471
+ j([...H, ...$]);
2472
2472
  },
2473
2473
  type: "button",
2474
2474
  children: "Select all"
@@ -2479,9 +2479,9 @@ const yo = (e) => [...e].sort(
2479
2479
  {
2480
2480
  appearance: "link",
2481
2481
  onClick: () => {
2482
- const $ = K.filter(
2482
+ const $ = H.filter(
2483
2483
  (V) => i.some(
2484
- (X) => X.value === V.value
2484
+ (Z) => Z.value === V.value
2485
2485
  )
2486
2486
  );
2487
2487
  j($);
@@ -2494,24 +2494,44 @@ const yo = (e) => [...e].sort(
2494
2494
  }
2495
2495
  )
2496
2496
  ] }) });
2497
+ }, Ao = ({ value: e, unit: r }, {
2498
+ binary: t = !1,
2499
+ convertTo: n,
2500
+ decimals: a = 2,
2501
+ roundFunc: o = "round"
2502
+ } = {}) => {
2503
+ const s = e < 0, i = Math.abs(e);
2504
+ if (i === 0)
2505
+ return { value: 0, unit: n || "B" };
2506
+ const v = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], y = c.findIndex((b) => b === r) || 0, g = i * Math.pow(v, y), _ = n ? c.findIndex((b) => b === n) : Math.floor(Math.log(g) / Math.log(v));
2507
+ let T = g / Math.pow(v, _);
2508
+ if (T % 1 !== 0) {
2509
+ const b = Math.pow(10, a);
2510
+ T = Math[o](T * b) / b;
2511
+ }
2512
+ return {
2513
+ value: s ? -T : T,
2514
+ unit: c[_]
2515
+ };
2497
2516
  };
2498
2517
  export {
2499
2518
  Le as ContentSection,
2500
2519
  To as ExternalLink,
2501
- xo as FileUpload,
2520
+ Oo as FileUpload,
2502
2521
  ur as FormSection,
2503
2522
  Wr as InputGroup,
2504
- Hr as MainToolbar,
2523
+ Kr as MainToolbar,
2505
2524
  At as Meter,
2506
2525
  Do as MultiSelect,
2507
2526
  bo as MultiSelectDropdown,
2508
- H as Navigation,
2509
- Zt as NavigationBar,
2510
- So as NestedFormGroup,
2527
+ K as Navigation,
2528
+ Xt as NavigationBar,
2529
+ xo as NestedFormGroup,
2511
2530
  pn as Pagination,
2512
- Co as PaginationContainer,
2513
- Oo as Stepper,
2531
+ So as PaginationContainer,
2532
+ Co as Stepper,
2514
2533
  wo as defaultFilledColors,
2534
+ Ao as formatBytes,
2515
2535
  ve as meterColor,
2516
2536
  he as testIds
2517
2537
  };