@canonical/maas-react-components 1.20.1 → 1.22.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,7 +1,7 @@
1
- import { jsxs as se, jsx as u, Fragment as De } from "react/jsx-runtime";
2
- import * as ne from "react";
3
- import ut, { useRef as Ce, useState as ye, useEffect as he, useCallback as re, cloneElement as ft, createContext as pt, useId as rr, useContext as Mr, useMemo as ie, 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 Ee, Icon as ke, Row as _t, Col as Et, Input as wt, CheckboxInput as St, useClickOutside as Tt, useOnEscapePressed as xt, SearchBox as Ct } from "@canonical/react-components";
1
+ import { jsxs as V, jsx as l, Fragment as Ae } from "react/jsx-runtime";
2
+ import * as oe from "react";
3
+ import ut, { useRef as Oe, useState as le, useEffect as _e, useCallback as Q, cloneElement as ft, createContext as pt, useId as ke, useContext as Mr, useMemo as se, useReducer as dt, forwardRef as mt, useImperativeHandle as vt, Fragment as gt } from "react";
4
+ import { useListener as yt, Link as bt, Tooltip as ht, Button as pe, Icon as we, Row as _t, Col as Et, Input as wt, Label as St, CheckboxInput as Tt, useClickOutside as Ct, useOnEscapePressed as xt, SearchBox as Ot } 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
  }
@@ -41,9 +41,9 @@ var Br = { exports: {} };
41
41
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
42
42
  })();
43
43
  })(Br);
44
- var Ot = Br.exports;
45
- const W = /* @__PURE__ */ Lr(Ot);
46
- const ve = {
44
+ var Dt = Br.exports;
45
+ const B = /* @__PURE__ */ Lr(Dt);
46
+ const ye = {
47
47
  caution: "#F99B11",
48
48
  light: "#F7F7F7",
49
49
  linkFaded: "#D3E4ED",
@@ -52,23 +52,23 @@ const ve = {
52
52
  positiveFaded: "#B7CCB9",
53
53
  positiveMid: "#4DAB4D",
54
54
  positive: "#0E8420"
55
- }, So = [
56
- ve.link,
57
- ve.positive,
58
- ve.negative,
59
- ve.caution
60
- ], Dt = ve.linkFaded, zr = ve.caution, tr = ve.light, mr = 2, vr = 1, yr = (e, r) => {
55
+ }, Co = [
56
+ ye.link,
57
+ ye.positive,
58
+ ye.negative,
59
+ ye.caution
60
+ ], At = ye.linkFaded, zr = ye.caution, tr = ye.light, mr = 2, vr = 1, gr = (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;
64
- }, _e = {
64
+ }, Ee = {
65
65
  bar: "meter-bar",
66
66
  container: "meter-container",
67
67
  filled: "meter-filled",
68
68
  label: "meter-label",
69
69
  meteroverflow: "meter-overflow",
70
70
  segments: "meter-segments"
71
- }, At = ({
71
+ }, Pt = ({
72
72
  className: e,
73
73
  children: r,
74
74
  data: t,
@@ -77,31 +77,31 @@ const ve = {
77
77
  size: o = "regular",
78
78
  ...s
79
79
  }) => {
80
- const i = Ce(null), v = t == null ? void 0 : t.reduce((O, w) => O + w.value, 0), c = n || v, y = t.map((O) => O.value / c * 100), [g, h] = ye(0);
81
- he(() => {
82
- h(a === "segmented" ? yr(i, c) : 0);
80
+ const i = Oe(null), f = t == null ? void 0 : t.reduce((_, T) => _ + T.value, 0), c = n || f, v = t.map((_) => _.value / c * 100), [y, h] = le(0);
81
+ _e(() => {
82
+ h(a === "segmented" ? gr(i, c) : 0);
83
83
  }, [c, a]);
84
- const S = re(() => {
85
- h(yr(i, c));
84
+ const b = Q(() => {
85
+ h(gr(i, c));
86
86
  }, [i, c, h]);
87
- return gt(window, S, "resize", !0, a === "segmented"), /* @__PURE__ */ se(
87
+ return yt(window, b, "resize", !0, a === "segmented"), /* @__PURE__ */ V(
88
88
  "div",
89
89
  {
90
- className: W("p-meter", e, {
90
+ className: B("p-meter", e, {
91
91
  "p-meter--small": o === "small"
92
92
  }),
93
93
  "aria-label": s == null ? void 0 : s["aria-label"],
94
- "data-testid": _e.container,
94
+ "data-testid": Ee.container,
95
95
  ref: i,
96
96
  children: [
97
- /* @__PURE__ */ u(Pt, { children: /* @__PURE__ */ u(
97
+ /* @__PURE__ */ l(Rt, { children: /* @__PURE__ */ l(
98
98
  It,
99
99
  {
100
100
  data: t,
101
- datumWidths: y,
101
+ datumWidths: v,
102
102
  maximum: c,
103
103
  overColor: zr,
104
- segmentWidth: g,
104
+ segmentWidth: y,
105
105
  separatorColor: tr
106
106
  }
107
107
  ) }),
@@ -109,12 +109,12 @@ const ve = {
109
109
  ]
110
110
  }
111
111
  );
112
- }, Pt = ({ children: e }) => /* @__PURE__ */ u(
112
+ }, Rt = ({ children: e }) => /* @__PURE__ */ l(
113
113
  "div",
114
114
  {
115
115
  className: "p-meter__bar",
116
- "data-testid": _e.bar,
117
- style: { backgroundColor: Dt },
116
+ "data-testid": Ee.bar,
117
+ style: { backgroundColor: At },
118
118
  children: e
119
119
  }
120
120
  ), It = ({
@@ -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, v) => i + v.value, 0)) > t, o = (i, v) => ({
126
+ const a = () => (e == null ? void 0 : e.reduce((i, f) => i + f.value, 0)) > t, o = (i, f) => ({
127
127
  backgroundColor: i.color,
128
128
  left: `${r == null ? void 0 : r.reduce(
129
- (c, y, g) => v > g ? c + y : c,
129
+ (c, v, y) => f > y ? c + v : c,
130
130
  0
131
131
  )}%`,
132
- width: `${r[v]}%`
132
+ width: `${r[f]}%`
133
133
  }), s = () => ({
134
134
  background: `repeating-linear-gradient(
135
135
  to right,
@@ -139,107 +139,107 @@ const ve = {
139
139
  ${tr} ${n}px
140
140
  )`
141
141
  });
142
- return /* @__PURE__ */ se(De, { children: [
143
- a() ? /* @__PURE__ */ u(
142
+ return /* @__PURE__ */ V(Ae, { children: [
143
+ a() ? /* @__PURE__ */ l(
144
144
  "div",
145
145
  {
146
146
  className: "p-meter__filled",
147
- "data-testid": _e.meteroverflow,
147
+ "data-testid": Ee.meteroverflow,
148
148
  style: { backgroundColor: zr, width: "100%" }
149
149
  }
150
- ) : e == null ? void 0 : e.map((i, v) => /* @__PURE__ */ u(
150
+ ) : e == null ? void 0 : e.map((i, f) => /* @__PURE__ */ l(
151
151
  "div",
152
152
  {
153
153
  className: "p-meter__filled",
154
- "data-testid": _e.filled,
155
- style: o(i, v)
154
+ "data-testid": Ee.filled,
155
+ style: o(i, f)
156
156
  },
157
- `meter-${v}`
157
+ `meter-${f}`
158
158
  )),
159
- n > 0 && /* @__PURE__ */ u(
159
+ n > 0 && /* @__PURE__ */ l(
160
160
  "div",
161
161
  {
162
162
  className: "p-meter__separators",
163
- "data-testid": _e.segments,
163
+ "data-testid": Ee.segments,
164
164
  style: s()
165
165
  }
166
166
  )
167
167
  ] });
168
- }, Rt = ({
168
+ }, Ft = ({
169
169
  className: e,
170
170
  children: r
171
- }) => /* @__PURE__ */ u(
171
+ }) => /* @__PURE__ */ l(
172
172
  "div",
173
173
  {
174
- className: W("p-meter__label", e),
175
- "data-testid": _e.label,
174
+ className: B("p-meter__label", e),
175
+ "data-testid": Ee.label,
176
176
  children: r
177
177
  }
178
178
  );
179
- At.Label = Rt;
180
- const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e }), Ft = ({ children: e }) => /* @__PURE__ */ u(De, { children: e }), jt = ({
179
+ Pt.Label = Ft;
180
+ const xo = ({ children: e, to: r, ...t }) => /* @__PURE__ */ l(bt, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e }), jt = ({ children: e }) => /* @__PURE__ */ l(Ae, { children: e }), Nt = ({
181
181
  isCollapsed: e,
182
182
  setIsCollapsed: r,
183
183
  className: t
184
- }) => /* @__PURE__ */ u(
184
+ }) => /* @__PURE__ */ l(
185
185
  ht,
186
186
  {
187
187
  className: "p-side-navigation__tooltip-wrapper",
188
- message: /* @__PURE__ */ se(De, { children: [
188
+ message: /* @__PURE__ */ V(Ae, { children: [
189
189
  e ? "expand" : "collapse",
190
190
  "( ",
191
- /* @__PURE__ */ u("code", { children: "[" }),
191
+ /* @__PURE__ */ l("code", { children: "[" }),
192
192
  " )"
193
193
  ] }),
194
194
  position: "right",
195
195
  tooltipClassName: "p-side-navigation__tooltip",
196
- children: /* @__PURE__ */ u(
197
- Ee,
196
+ children: /* @__PURE__ */ l(
197
+ pe,
198
198
  {
199
199
  appearance: "base",
200
200
  "aria-label": `${e ? "expand" : "collapse"} main navigation`,
201
- className: W(
201
+ className: B(
202
202
  "is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
203
203
  t
204
204
  ),
205
205
  onClick: (n) => {
206
206
  r(!e), n.stopPropagation(), n.currentTarget.blur();
207
207
  },
208
- children: /* @__PURE__ */ u(ke, { light: !0, name: "sidebar-toggle" })
208
+ children: /* @__PURE__ */ l(we, { light: !0, name: "sidebar-toggle" })
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 }), 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 = ({
212
+ ), kt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__content", children: /* @__PURE__ */ l("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), $t = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__controls u-no-margin--top", children: e }), Mt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ l("div", { className: "p-panel is-dark", children: e }) }), Lt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__footer", children: e }), Bt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__header", children: e }), zt = ({ light: e = !0, name: r }) => /* @__PURE__ */ l(we, { className: "p-side-navigation__icon", light: e, name: r }), Wt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ l("li", { className: B("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Yt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ l("span", { className: B("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), qt = ({
213
213
  as: e,
214
214
  ...r
215
- }) => /* @__PURE__ */ u(
215
+ }) => /* @__PURE__ */ l(
216
216
  e || "a",
217
217
  {
218
- className: W("p-side-navigation__link", r.className),
218
+ className: B("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 }), Kt = ({
221
+ ), Kt = ({ children: e, className: r }) => /* @__PURE__ */ l("ul", { className: B("p-side-navigation__list", r), children: e }), Ut = ({
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 }) }), Ht = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Ut = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ u(
226
+ }) => /* @__PURE__ */ l(e || "a", { className: B("p-panel__logo", t), ...n, children: /* @__PURE__ */ l("div", { className: "p-navigation__tagged-logo", children: r }) }), Ht = ({ children: e }) => ft(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Gt = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ l(
227
227
  "div",
228
228
  {
229
- className: W("p-panel__logo-name is-fading-when-collapsed", {
229
+ className: B("p-panel__logo-name is-fading-when-collapsed", {
230
230
  "p-panel__logo-name--small": r === "small"
231
231
  }),
232
232
  children: e
233
233
  }
234
- ), Gt = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-navigation__logo-tag", children: e }), Vt = ({ children: e }) => /* @__PURE__ */ u("span", { className: "p-panel__logo-text", children: e }), Jt = ({
234
+ ), Vt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-navigation__logo-tag", children: e }), Jt = ({ children: e }) => /* @__PURE__ */ l("span", { className: "p-panel__logo-text", children: e }), Zt = ({
235
235
  children: e,
236
236
  className: r,
237
237
  onClick: t
238
- }) => /* @__PURE__ */ u(
239
- Ee,
238
+ }) => /* @__PURE__ */ l(
239
+ pe,
240
240
  {
241
241
  appearance: "base",
242
- className: W(
242
+ className: B(
243
243
  "p-side-navigation__button--menu has-icon is-dark",
244
244
  r
245
245
  ),
@@ -248,30 +248,30 @@ const To = ({ children: e, to: r, ...t }) => /* @__PURE__ */ u(bt, { ...t, href:
248
248
  },
249
249
  children: e
250
250
  }
251
- ), Zt = ({ 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 }), 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
- 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 = zt;
262
- H.Link = Yt;
263
- H.Text = Zt;
264
- H.Icon = Bt;
265
- H.Label = Wt;
266
- H.Logo = Kt;
267
- H.LogoTag = Gt;
268
- H.LogoIcon = Ht;
269
- H.LogoName = Ut;
270
- H.LogoText = Vt;
271
- Xt.MenuButton = Jt;
251
+ ), Xt = ({ children: e }) => /* @__PURE__ */ l("span", { className: "p-side-navigation__text", children: e });
252
+ const U = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ l("header", { "aria-label": "main navigation", className: B("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), Qt = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ l("div", { className: B("p-panel is-dark", r), children: e }) });
253
+ U.Header = Bt;
254
+ U.Banner = jt;
255
+ U.Drawer = Mt;
256
+ U.Controls = $t;
257
+ U.CollapseToggle = Nt;
258
+ U.Content = kt;
259
+ U.Footer = Lt;
260
+ U.List = Kt;
261
+ U.Item = Wt;
262
+ U.Link = qt;
263
+ U.Text = Xt;
264
+ U.Icon = zt;
265
+ U.Label = Yt;
266
+ U.Logo = Ut;
267
+ U.LogoTag = Vt;
268
+ U.LogoIcon = Ht;
269
+ U.LogoName = Gt;
270
+ U.LogoText = Jt;
271
+ Qt.MenuButton = Zt;
272
272
  const lr = pt(null), Wr = ({ children: e }) => {
273
- const r = rr();
274
- return /* @__PURE__ */ u(lr.Provider, { value: r, children: /* @__PURE__ */ u(
273
+ const r = ke();
274
+ return /* @__PURE__ */ l(lr.Provider, { value: r, children: /* @__PURE__ */ l(
275
275
  "div",
276
276
  {
277
277
  role: "group",
@@ -281,27 +281,27 @@ const lr = pt(null), Wr = ({ children: e }) => {
281
281
  children: e
282
282
  }
283
283
  ) });
284
- }, Qt = ({ children: e }) => {
285
- const r = Mr(lr);
286
- return /* @__PURE__ */ u("label", { id: `${r}_label`, children: e });
287
284
  }, en = ({ children: e }) => {
288
285
  const r = Mr(lr);
289
- return /* @__PURE__ */ u("p", { className: "p-form-help-text", id: `${r}_description`, children: e });
286
+ return /* @__PURE__ */ l("label", { id: `${r}_label`, children: e });
287
+ }, rn = ({ children: e }) => {
288
+ const r = Mr(lr);
289
+ return /* @__PURE__ */ l("p", { className: "p-form-help-text", id: `${r}_description`, children: e });
290
290
  };
291
- Wr.Label = Qt;
292
- Wr.Description = en;
293
- const ur = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section", children: e }), rn = ({ children: e }) => /* @__PURE__ */ u("h5", { className: "p-form-section__title u-no-padding--top", children: e }), tn = ({ children: e }) => /* @__PURE__ */ u("p", { className: "p-form-help-text", children: e }), nn = ({ children: e }) => /* @__PURE__ */ u("div", { className: "p-form-section__content", children: e });
294
- ur.Title = rn;
295
- ur.Description = tn;
296
- ur.Content = nn;
297
- function on(e) {
298
- const [r, t] = ne.useState(null), n = ne.useRef(null), a = ne.useCallback(() => {
291
+ Wr.Label = en;
292
+ Wr.Description = rn;
293
+ const ur = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-form-section", children: e }), tn = ({ children: e }) => /* @__PURE__ */ l("h5", { className: "p-form-section__title u-no-padding--top", children: e }), nn = ({ children: e }) => /* @__PURE__ */ l("p", { className: "p-form-help-text", children: e }), on = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-form-section__content", children: e });
294
+ ur.Title = tn;
295
+ ur.Description = nn;
296
+ ur.Content = on;
297
+ function an(e) {
298
+ const [r, t] = oe.useState(null), n = oe.useRef(null), a = oe.useCallback(() => {
299
299
  if (e.current) {
300
300
  const o = e.current.getBoundingClientRect();
301
301
  t(o);
302
302
  }
303
303
  }, [e]);
304
- return ne.useEffect(() => {
304
+ return oe.useEffect(() => {
305
305
  const o = new ResizeObserver(() => {
306
306
  n.current && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(a);
307
307
  });
@@ -310,38 +310,38 @@ function on(e) {
310
310
  };
311
311
  }, [e, a]), r;
312
312
  }
313
- const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
313
+ const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
314
314
  }]), Kr = ({ children: e }) => {
315
- const r = ne.useRef(null), t = on(r), [n, a] = ne.useState(!1);
316
- return /* @__PURE__ */ u(
315
+ const r = oe.useRef(null), t = an(r), [n, a] = oe.useState(!1);
316
+ return /* @__PURE__ */ l(
317
317
  "header",
318
318
  {
319
- className: W("main-toolbar", {
319
+ className: B("main-toolbar", {
320
320
  "main-toolbar--stacked": n
321
321
  }),
322
322
  ref: r,
323
- children: /* @__PURE__ */ u(Yr.Provider, { value: t, children: /* @__PURE__ */ u(qr.Provider, { value: [n, a], children: e }) })
323
+ children: /* @__PURE__ */ l(Yr.Provider, { value: t, children: /* @__PURE__ */ l(qr.Provider, { value: [n, a], children: e }) })
324
324
  }
325
325
  );
326
- }, an = ({
326
+ }, sn = ({
327
327
  as: e,
328
328
  children: r,
329
329
  className: t,
330
330
  ...n
331
- }) => /* @__PURE__ */ u(
331
+ }) => /* @__PURE__ */ l(
332
332
  e || "h1",
333
333
  {
334
- className: W("main-toolbar__title p-heading--4", t),
334
+ className: B("main-toolbar__title p-heading--4", t),
335
335
  "data-testid": "main-toolbar-heading",
336
336
  ...n,
337
337
  children: r
338
338
  }
339
- ), sn = ({ children: e }) => {
340
- const r = ne.useContext(Yr), [t, n] = ne.useContext(qr), a = ne.useRef(null);
341
- return ne.useEffect(() => {
339
+ ), cn = ({ children: e }) => {
340
+ const r = oe.useContext(Yr), [t, n] = oe.useContext(qr), a = oe.useRef(null);
341
+ return oe.useEffect(() => {
342
342
  !a.current || !r || n(a.current.getBoundingClientRect().width > r.width);
343
- }, [n, r, a]), /* @__PURE__ */ se(De, { children: [
344
- /* @__PURE__ */ u(
343
+ }, [n, r, a]), /* @__PURE__ */ V(Ae, { children: [
344
+ /* @__PURE__ */ l(
345
345
  "div",
346
346
  {
347
347
  "aria-hidden": "true",
@@ -351,10 +351,10 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
351
351
  children: e
352
352
  }
353
353
  ),
354
- /* @__PURE__ */ u(
354
+ /* @__PURE__ */ l(
355
355
  "div",
356
356
  {
357
- className: W("main-toolbar__controls", {
357
+ className: B("main-toolbar__controls", {
358
358
  "main-toolbar__controls--stacked": t
359
359
  }),
360
360
  children: e
@@ -362,108 +362,117 @@ const Yr = ne.createContext(null), qr = ne.createContext([!1, () => {
362
362
  )
363
363
  ] });
364
364
  };
365
- Kr.Title = an;
366
- Kr.Controls = sn;
367
- const Le = ({
365
+ Kr.Title = sn;
366
+ Kr.Controls = cn;
367
+ const Be = ({
368
368
  children: e,
369
369
  className: r,
370
370
  as: t,
371
371
  variant: n = "wide",
372
372
  ...a
373
373
  }) => {
374
- const o = t || "section", s = W("content-section", r);
375
- return /* @__PURE__ */ u(o, { ...a, className: s, children: /* @__PURE__ */ u(_t, { children: /* @__PURE__ */ u(Et, { size: n === "narrow" ? 6 : 12, children: e }) }) });
376
- }, cn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ u(
374
+ const o = t || "section", s = B("content-section", r);
375
+ return /* @__PURE__ */ l(o, { ...a, className: s, children: /* @__PURE__ */ l(_t, { children: /* @__PURE__ */ l(Et, { size: n === "narrow" ? 6 : 12, children: e }) }) });
376
+ }, ln = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ l(
377
377
  t || "h1",
378
378
  {
379
379
  ...n,
380
- className: W("content-section__title p-heading--4", r),
380
+ className: B("content-section__title p-heading--4", r),
381
381
  children: e
382
382
  }
383
- ), ln = ({ children: e, className: r }) => /* @__PURE__ */ u("header", { className: W("content-section__header", r), children: e }), un = ({ children: e, className: r }) => /* @__PURE__ */ u("div", { className: W("content-section__body", r), children: e }), fn = ({ children: e, className: r }) => /* @__PURE__ */ u("footer", { className: W("content-section__footer", r), children: e });
384
- Le.Title = cn;
385
- Le.Header = ln;
386
- Le.Content = un;
387
- Le.Footer = fn;
388
- const Hr = ({
383
+ ), un = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { className: B("content-section__header", r), children: e }), fn = ({ children: e, className: r }) => /* @__PURE__ */ l("div", { className: B("content-section__body", r), children: e }), pn = ({ children: e, className: r }) => /* @__PURE__ */ l("footer", { className: B("content-section__footer", r), children: e });
384
+ Be.Title = ln;
385
+ Be.Header = un;
386
+ Be.Content = fn;
387
+ Be.Footer = pn;
388
+ const Ur = ({
389
389
  children: e,
390
390
  className: r,
391
391
  isVisible: t
392
- }) => /* @__PURE__ */ u(
392
+ }) => /* @__PURE__ */ l(
393
393
  "div",
394
394
  {
395
- className: W("fade-in--down", r),
395
+ className: B("fade-in--down", r),
396
396
  "aria-hidden": t ? "false" : "true",
397
397
  style: { visibility: t ? "visible" : "hidden" },
398
398
  children: e
399
399
  }
400
- ), xo = ({
400
+ ), Oo = ({
401
401
  children: e,
402
402
  ...r
403
- }) => /* @__PURE__ */ u(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ u("div", { className: "p-form__nested-group", ...r, children: e }) });
404
- const pn = ({
405
- currentPage: e,
406
- error: r,
407
- disabled: t,
408
- onInputBlur: n,
409
- onInputChange: a,
410
- onNextClick: o,
411
- onPreviousClick: s,
412
- totalPages: i
413
- }) => /* @__PURE__ */ u("nav", { "aria-label": "pagination", className: "p-pagination", children: /* @__PURE__ */ se("span", { className: "p-pagination--items", children: [
414
- /* @__PURE__ */ u(
415
- Ee,
416
- {
417
- "aria-label": "Previous page",
418
- className: "p-pagination__link--previous",
419
- disabled: e === 1 || t,
420
- onClick: s,
421
- type: "button",
422
- children: /* @__PURE__ */ u(ke, { name: "chevron-down" })
423
- }
424
- ),
425
- /* @__PURE__ */ u("strong", { children: "Page " }),
426
- " ",
427
- /* @__PURE__ */ u(
428
- wt,
429
- {
430
- "aria-label": "page number",
431
- className: "p-pagination__input",
432
- disabled: t,
433
- error: r,
434
- min: 1,
435
- onBlur: n,
436
- onChange: a,
437
- required: !0,
438
- type: "number",
439
- value: e
440
- }
441
- ),
442
- " ",
443
- /* @__PURE__ */ se("strong", { className: "u-no-wrap", children: [
444
- " of ",
445
- i
446
- ] }),
447
- /* @__PURE__ */ u(
448
- Ee,
449
- {
450
- "aria-label": "Next page",
451
- className: "p-pagination__link--next",
452
- disabled: e === i || t,
453
- onClick: o,
454
- type: "button",
455
- children: /* @__PURE__ */ u(ke, { name: "chevron-up" })
456
- }
457
- )
458
- ] }) }), Co = ({
403
+ }) => /* @__PURE__ */ l(Ur, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ l("div", { className: "p-form__nested-group", ...r, children: e }) });
404
+ const dn = ({
405
+ className: e,
406
+ currentPage: r,
407
+ error: t,
408
+ disabled: n,
409
+ onInputBlur: a,
410
+ onInputChange: o,
411
+ onNextClick: s,
412
+ onPreviousClick: i,
413
+ totalPages: f,
414
+ ...c
415
+ }) => /* @__PURE__ */ l(
416
+ "nav",
417
+ {
418
+ "aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
419
+ className: B("p-pagination", e),
420
+ children: /* @__PURE__ */ V("span", { className: "p-pagination--items", children: [
421
+ /* @__PURE__ */ l(
422
+ pe,
423
+ {
424
+ "aria-label": "Previous page",
425
+ className: "p-pagination__link--previous",
426
+ disabled: r === 1 || n,
427
+ onClick: i,
428
+ type: "button",
429
+ children: /* @__PURE__ */ l(we, { name: "chevron-down" })
430
+ }
431
+ ),
432
+ /* @__PURE__ */ l("strong", { children: "Page " }),
433
+ " ",
434
+ /* @__PURE__ */ l(
435
+ wt,
436
+ {
437
+ "aria-label": "page number",
438
+ className: "p-pagination__input",
439
+ disabled: n,
440
+ error: t,
441
+ min: 1,
442
+ onBlur: a,
443
+ onChange: o,
444
+ required: !0,
445
+ type: "number",
446
+ value: r
447
+ }
448
+ ),
449
+ " ",
450
+ /* @__PURE__ */ V("strong", { className: "u-no-wrap", children: [
451
+ " of ",
452
+ f
453
+ ] }),
454
+ /* @__PURE__ */ l(
455
+ pe,
456
+ {
457
+ "aria-label": "Next page",
458
+ className: "p-pagination__link--next",
459
+ disabled: r === f || n,
460
+ onClick: s,
461
+ type: "button",
462
+ children: /* @__PURE__ */ l(we, { name: "chevron-up" })
463
+ }
464
+ )
465
+ ] })
466
+ }
467
+ ), Do = ({
459
468
  currentPage: e,
460
469
  disabled: r,
461
470
  paginate: t,
462
471
  totalPages: n
463
472
  }) => {
464
- const [a, o] = ye(e), [s, i] = ye("");
465
- return /* @__PURE__ */ u(
466
- pn,
473
+ const [a, o] = le(e), [s, i] = le("");
474
+ return /* @__PURE__ */ l(
475
+ dn,
467
476
  {
468
477
  currentPage: a,
469
478
  error: s,
@@ -472,8 +481,8 @@ const pn = ({
472
481
  o(e), i("");
473
482
  },
474
483
  onInputChange: (h) => {
475
- const { value: S, valueAsNumber: O } = h.target;
476
- S ? (o(O), O > n || O < 1 ? i(`${O} is not a valid page number.`) : (i(""), t(O))) : i("Enter a page number.");
484
+ const { value: b, valueAsNumber: _ } = h.target;
485
+ b ? (o(_), _ > n || _ < 1 ? i(`${_} is not a valid page number.`) : (i(""), t(_))) : i("Enter a page number.");
477
486
  },
478
487
  onNextClick: () => {
479
488
  o((h) => Number(h) + 1), t(Number(e) + 1);
@@ -485,13 +494,13 @@ const pn = ({
485
494
  }
486
495
  );
487
496
  };
488
- const Oo = ({ activeStep: e, items: r }) => /* @__PURE__ */ u("ol", { className: "stepper", children: r.map((t, n) => {
497
+ const Ao = ({ activeStep: e, items: r }) => /* @__PURE__ */ l("ol", { className: "stepper", children: r.map((t, n) => {
489
498
  const a = n === e, o = n < e;
490
- return /* @__PURE__ */ u("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ u(
499
+ return /* @__PURE__ */ l("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ l(
491
500
  "p",
492
501
  {
493
502
  "aria-label": o ? `${t} (completed)` : t,
494
- className: W("stepper__title", {
503
+ className: B("stepper__title", {
495
504
  "stepper__title--is-active": a,
496
505
  "stepper__title--is-complete": o
497
506
  }),
@@ -499,7 +508,7 @@ const Oo = ({ activeStep: e, items: r }) => /* @__PURE__ */ u("ol", { className:
499
508
  }
500
509
  ) }, n);
501
510
  }) });
502
- var nr = { exports: {} }, Fe = { exports: {} }, F = {};
511
+ var nr = { exports: {} }, je = { exports: {} }, F = {};
503
512
  /** @license React v16.13.1
504
513
  * react-is.production.min.js
505
514
  *
@@ -508,71 +517,71 @@ var nr = { exports: {} }, Fe = { exports: {} }, F = {};
508
517
  * This source code is licensed under the MIT license found in the
509
518
  * LICENSE file in the root directory of this source tree.
510
519
  */
511
- var gr;
512
- function dn() {
513
- if (gr)
520
+ var yr;
521
+ function mn() {
522
+ if (yr)
514
523
  return F;
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, 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, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
517
- function A(f) {
518
- if (typeof f == "object" && f !== null) {
519
- var Z = f.$$typeof;
520
- switch (Z) {
524
+ yr = 1;
525
+ 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, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, T = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
526
+ function A(p) {
527
+ if (typeof p == "object" && p !== null) {
528
+ var X = p.$$typeof;
529
+ switch (X) {
521
530
  case r:
522
- switch (f = f.type, f) {
523
- case v:
531
+ switch (p = p.type, p) {
532
+ case f:
524
533
  case c:
525
534
  case n:
526
535
  case o:
527
536
  case a:
528
- case g:
529
- return f;
537
+ case y:
538
+ return p;
530
539
  default:
531
- switch (f = f && f.$$typeof, f) {
540
+ switch (p = p && p.$$typeof, p) {
532
541
  case i:
533
- case y:
534
- case O:
535
- case S:
542
+ case v:
543
+ case _:
544
+ case b:
536
545
  case s:
537
- return f;
546
+ return p;
538
547
  default:
539
- return Z;
548
+ return X;
540
549
  }
541
550
  }
542
551
  case t:
543
- return Z;
552
+ return X;
544
553
  }
545
554
  }
546
555
  }
547
- function N(f) {
548
- return A(f) === c;
556
+ function k(p) {
557
+ return A(p) === c;
549
558
  }
550
- return F.AsyncMode = v, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = y, F.Fragment = n, F.Lazy = O, F.Memo = S, F.Portal = t, F.Profiler = o, F.StrictMode = a, F.Suspense = g, F.isAsyncMode = function(f) {
551
- return N(f) || A(f) === v;
552
- }, F.isConcurrentMode = N, F.isContextConsumer = function(f) {
553
- return A(f) === i;
554
- }, F.isContextProvider = function(f) {
555
- return A(f) === s;
556
- }, F.isElement = function(f) {
557
- return typeof f == "object" && f !== null && f.$$typeof === r;
558
- }, F.isForwardRef = function(f) {
559
- return A(f) === y;
560
- }, F.isFragment = function(f) {
561
- return A(f) === n;
562
- }, F.isLazy = function(f) {
563
- return A(f) === O;
564
- }, F.isMemo = function(f) {
565
- return A(f) === S;
566
- }, F.isPortal = function(f) {
567
- return A(f) === t;
568
- }, F.isProfiler = function(f) {
569
- return A(f) === o;
570
- }, F.isStrictMode = function(f) {
571
- return A(f) === a;
572
- }, F.isSuspense = function(f) {
573
- return A(f) === g;
574
- }, F.isValidElementType = function(f) {
575
- return typeof f == "string" || typeof f == "function" || f === n || f === c || f === o || f === a || f === g || f === h || typeof f == "object" && f !== null && (f.$$typeof === O || f.$$typeof === S || f.$$typeof === s || f.$$typeof === i || f.$$typeof === y || f.$$typeof === L || f.$$typeof === k || f.$$typeof === K || f.$$typeof === w);
559
+ return F.AsyncMode = f, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = v, F.Fragment = n, F.Lazy = _, F.Memo = b, F.Portal = t, F.Profiler = o, F.StrictMode = a, F.Suspense = y, F.isAsyncMode = function(p) {
560
+ return k(p) || A(p) === f;
561
+ }, F.isConcurrentMode = k, F.isContextConsumer = function(p) {
562
+ return A(p) === i;
563
+ }, F.isContextProvider = function(p) {
564
+ return A(p) === s;
565
+ }, F.isElement = function(p) {
566
+ return typeof p == "object" && p !== null && p.$$typeof === r;
567
+ }, F.isForwardRef = function(p) {
568
+ return A(p) === v;
569
+ }, F.isFragment = function(p) {
570
+ return A(p) === n;
571
+ }, F.isLazy = function(p) {
572
+ return A(p) === _;
573
+ }, F.isMemo = function(p) {
574
+ return A(p) === b;
575
+ }, F.isPortal = function(p) {
576
+ return A(p) === t;
577
+ }, F.isProfiler = function(p) {
578
+ return A(p) === o;
579
+ }, F.isStrictMode = function(p) {
580
+ return A(p) === a;
581
+ }, F.isSuspense = function(p) {
582
+ return A(p) === y;
583
+ }, F.isValidElementType = function(p) {
584
+ return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p === y || p === h || typeof p == "object" && p !== null && (p.$$typeof === _ || p.$$typeof === b || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof === L || p.$$typeof === N || p.$$typeof === K || p.$$typeof === T);
576
585
  }, F.typeOf = A, F;
577
586
  }
578
587
  var j = {};
@@ -585,101 +594,101 @@ var j = {};
585
594
  * LICENSE file in the root directory of this source tree.
586
595
  */
587
596
  var br;
588
- function mn() {
597
+ function vn() {
589
598
  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, 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, h = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
591
- function A(p) {
592
- return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
593
- p === n || p === c || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === O || p.$$typeof === S || p.$$typeof === s || p.$$typeof === i || p.$$typeof === y || p.$$typeof === L || p.$$typeof === k || p.$$typeof === K || p.$$typeof === w);
594
- }
595
- function N(p) {
596
- if (typeof p == "object" && p !== null) {
597
- var Q = p.$$typeof;
598
- switch (Q) {
599
+ 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, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, T = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
600
+ function A(d) {
601
+ return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
602
+ d === n || d === c || d === o || d === a || d === y || d === h || typeof d == "object" && d !== null && (d.$$typeof === _ || d.$$typeof === b || d.$$typeof === s || d.$$typeof === i || d.$$typeof === v || d.$$typeof === L || d.$$typeof === N || d.$$typeof === K || d.$$typeof === T);
603
+ }
604
+ function k(d) {
605
+ if (typeof d == "object" && d !== null) {
606
+ var re = d.$$typeof;
607
+ switch (re) {
599
608
  case r:
600
- var de = p.type;
601
- switch (de) {
602
- case v:
609
+ var ve = d.type;
610
+ switch (ve) {
611
+ case f:
603
612
  case c:
604
613
  case n:
605
614
  case o:
606
615
  case a:
607
- case g:
608
- return de;
616
+ case y:
617
+ return ve;
609
618
  default:
610
- var Te = de && de.$$typeof;
611
- switch (Te) {
619
+ var Ce = ve && ve.$$typeof;
620
+ switch (Ce) {
612
621
  case i:
613
- case y:
614
- case O:
615
- case S:
622
+ case v:
623
+ case _:
624
+ case b:
616
625
  case s:
617
- return Te;
626
+ return Ce;
618
627
  default:
619
- return Q;
628
+ return re;
620
629
  }
621
630
  }
622
631
  case t:
623
- return Q;
632
+ return re;
624
633
  }
625
634
  }
626
635
  }
627
- var f = v, Z = c, $ = i, V = s, X = r, ce = y, fe = n, pe = O, le = S, z = t, J = o, te = a, oe = g, ue = !1;
628
- function U(p) {
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(p) || N(p) === v;
636
+ var p = f, X = c, $ = i, J = s, ee = r, ce = v, de = n, me = _, ue = b, W = t, Z = o, ne = a, ae = y, fe = !1;
637
+ function H(d) {
638
+ return fe || (fe = !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.")), u(d) || k(d) === f;
630
639
  }
631
- function l(p) {
632
- return N(p) === c;
640
+ function u(d) {
641
+ return k(d) === c;
633
642
  }
634
- function m(p) {
635
- return N(p) === i;
643
+ function g(d) {
644
+ return k(d) === i;
636
645
  }
637
- function T(p) {
638
- return N(p) === s;
646
+ function C(d) {
647
+ return k(d) === s;
639
648
  }
640
- function x(p) {
641
- return typeof p == "object" && p !== null && p.$$typeof === r;
649
+ function x(d) {
650
+ return typeof d == "object" && d !== null && d.$$typeof === r;
642
651
  }
643
- function _(p) {
644
- return N(p) === y;
652
+ function w(d) {
653
+ return k(d) === v;
645
654
  }
646
- function P(p) {
647
- return N(p) === n;
655
+ function P(d) {
656
+ return k(d) === n;
648
657
  }
649
- function E(p) {
650
- return N(p) === O;
658
+ function S(d) {
659
+ return k(d) === _;
651
660
  }
652
- function C(p) {
653
- return N(p) === S;
661
+ function O(d) {
662
+ return k(d) === b;
654
663
  }
655
- function I(p) {
656
- return N(p) === t;
664
+ function R(d) {
665
+ return k(d) === t;
657
666
  }
658
- function R(p) {
659
- return N(p) === o;
667
+ function I(d) {
668
+ return k(d) === o;
660
669
  }
661
- function D(p) {
662
- return N(p) === a;
670
+ function D(d) {
671
+ return k(d) === a;
663
672
  }
664
- function q(p) {
665
- return N(p) === g;
673
+ function q(d) {
674
+ return k(d) === y;
666
675
  }
667
- j.AsyncMode = f, j.ConcurrentMode = Z, j.ContextConsumer = $, j.ContextProvider = V, j.Element = X, j.ForwardRef = ce, j.Fragment = fe, j.Lazy = pe, j.Memo = le, j.Portal = z, j.Profiler = J, j.StrictMode = te, j.Suspense = oe, j.isAsyncMode = U, j.isConcurrentMode = l, j.isContextConsumer = m, j.isContextProvider = T, j.isElement = x, j.isForwardRef = _, j.isFragment = P, j.isLazy = E, j.isMemo = C, j.isPortal = I, j.isProfiler = R, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = N;
676
+ j.AsyncMode = p, j.ConcurrentMode = X, j.ContextConsumer = $, j.ContextProvider = J, j.Element = ee, j.ForwardRef = ce, j.Fragment = de, j.Lazy = me, j.Memo = ue, j.Portal = W, j.Profiler = Z, j.StrictMode = ne, j.Suspense = ae, j.isAsyncMode = H, j.isConcurrentMode = u, j.isContextConsumer = g, j.isContextProvider = C, j.isElement = x, j.isForwardRef = w, j.isFragment = P, j.isLazy = S, j.isMemo = O, j.isPortal = R, j.isProfiler = I, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = k;
668
677
  }()), j;
669
678
  }
670
679
  var hr;
671
- function Ur() {
672
- return hr || (hr = 1, process.env.NODE_ENV === "production" ? Fe.exports = dn() : Fe.exports = mn()), Fe.exports;
680
+ function Hr() {
681
+ return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports = mn() : je.exports = vn()), je.exports;
673
682
  }
674
683
  /*
675
684
  object-assign
676
685
  (c) Sindre Sorhus
677
686
  @license MIT
678
687
  */
679
- var Ge, _r;
680
- function vn() {
688
+ var Ve, _r;
689
+ function gn() {
681
690
  if (_r)
682
- return Ge;
691
+ return Ve;
683
692
  _r = 1;
684
693
  var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
685
694
  function n(o) {
@@ -696,49 +705,49 @@ function vn() {
696
705
  return !1;
697
706
  for (var s = {}, i = 0; i < 10; i++)
698
707
  s["_" + String.fromCharCode(i)] = i;
699
- var v = Object.getOwnPropertyNames(s).map(function(y) {
700
- return s[y];
708
+ var f = Object.getOwnPropertyNames(s).map(function(v) {
709
+ return s[v];
701
710
  });
702
- if (v.join("") !== "0123456789")
711
+ if (f.join("") !== "0123456789")
703
712
  return !1;
704
713
  var c = {};
705
- return "abcdefghijklmnopqrst".split("").forEach(function(y) {
706
- c[y] = y;
714
+ return "abcdefghijklmnopqrst".split("").forEach(function(v) {
715
+ c[v] = v;
707
716
  }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
708
717
  } catch {
709
718
  return !1;
710
719
  }
711
720
  }
712
- return Ge = a() ? Object.assign : function(o, s) {
713
- for (var i, v = n(o), c, y = 1; y < arguments.length; y++) {
714
- i = Object(arguments[y]);
715
- for (var g in i)
716
- r.call(i, g) && (v[g] = i[g]);
721
+ return Ve = a() ? Object.assign : function(o, s) {
722
+ for (var i, f = n(o), c, v = 1; v < arguments.length; v++) {
723
+ i = Object(arguments[v]);
724
+ for (var y in i)
725
+ r.call(i, y) && (f[y] = i[y]);
717
726
  if (e) {
718
727
  c = e(i);
719
728
  for (var h = 0; h < c.length; h++)
720
- t.call(i, c[h]) && (v[c[h]] = i[c[h]]);
729
+ t.call(i, c[h]) && (f[c[h]] = i[c[h]]);
721
730
  }
722
731
  }
723
- return v;
724
- }, Ge;
732
+ return f;
733
+ }, Ve;
725
734
  }
726
- var Ve, Er;
735
+ var Je, Er;
727
736
  function fr() {
728
737
  if (Er)
729
- return Ve;
738
+ return Je;
730
739
  Er = 1;
731
740
  var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
732
- return Ve = e, Ve;
741
+ return Je = e, Je;
733
742
  }
734
- var Je, wr;
743
+ var Ze, wr;
735
744
  function Gr() {
736
- return wr || (wr = 1, Je = Function.call.bind(Object.prototype.hasOwnProperty)), Je;
745
+ return wr || (wr = 1, Ze = Function.call.bind(Object.prototype.hasOwnProperty)), Ze;
737
746
  }
738
- var Ze, Sr;
747
+ var Xe, Sr;
739
748
  function yn() {
740
749
  if (Sr)
741
- return Ze;
750
+ return Xe;
742
751
  Sr = 1;
743
752
  var e = function() {
744
753
  };
@@ -753,29 +762,29 @@ function yn() {
753
762
  }
754
763
  };
755
764
  }
756
- function a(o, s, i, v, c) {
765
+ function a(o, s, i, f, c) {
757
766
  if (process.env.NODE_ENV !== "production") {
758
- for (var y in o)
759
- if (n(o, y)) {
760
- var g;
767
+ for (var v in o)
768
+ if (n(o, v)) {
769
+ var y;
761
770
  try {
762
- if (typeof o[y] != "function") {
771
+ if (typeof o[v] != "function") {
763
772
  var h = 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`."
773
+ (f || "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`."
765
774
  );
766
775
  throw h.name = "Invariant Violation", h;
767
776
  }
768
- g = o[y](s, y, v, i, null, r);
769
- } catch (O) {
770
- g = O;
777
+ y = o[v](s, v, f, i, null, r);
778
+ } catch (_) {
779
+ y = _;
771
780
  }
772
- if (g && !(g instanceof Error) && e(
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
- ), g instanceof Error && !(g.message in t)) {
775
- t[g.message] = !0;
776
- var S = c ? c() : "";
781
+ if (y && !(y instanceof Error) && e(
782
+ (f || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
783
+ ), y instanceof Error && !(y.message in t)) {
784
+ t[y.message] = !0;
785
+ var b = c ? c() : "";
777
786
  e(
778
- "Failed " + i + " type: " + g.message + (S ?? "")
787
+ "Failed " + i + " type: " + y.message + (b ?? "")
779
788
  );
780
789
  }
781
790
  }
@@ -783,282 +792,282 @@ function yn() {
783
792
  }
784
793
  return a.resetWarningCache = function() {
785
794
  process.env.NODE_ENV !== "production" && (t = {});
786
- }, Ze = a, Ze;
795
+ }, Xe = a, Xe;
787
796
  }
788
- var Xe, Tr;
789
- function gn() {
797
+ var Qe, Tr;
798
+ function bn() {
790
799
  if (Tr)
791
- return Xe;
800
+ return Qe;
792
801
  Tr = 1;
793
- var e = Ur(), r = vn(), t = fr(), n = Gr(), a = yn(), o = function() {
802
+ var e = Hr(), r = gn(), t = fr(), n = Gr(), a = yn(), o = function() {
794
803
  };
795
804
  process.env.NODE_ENV !== "production" && (o = function(i) {
796
- var v = "Warning: " + i;
797
- typeof console < "u" && console.error(v);
805
+ var f = "Warning: " + i;
806
+ typeof console < "u" && console.error(f);
798
807
  try {
799
- throw new Error(v);
808
+ throw new Error(f);
800
809
  } catch {
801
810
  }
802
811
  });
803
812
  function s() {
804
813
  return null;
805
814
  }
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
- if (typeof m == "function")
811
- return m;
812
- }
813
- var h = "<<anonymous>>", S = {
814
- array: k("array"),
815
- bigint: k("bigint"),
816
- bool: k("boolean"),
817
- func: k("function"),
818
- number: k("number"),
819
- object: k("object"),
820
- string: k("string"),
821
- symbol: k("symbol"),
815
+ return Qe = function(i, f) {
816
+ var c = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
817
+ function y(u) {
818
+ var g = u && (c && u[c] || u[v]);
819
+ if (typeof g == "function")
820
+ return g;
821
+ }
822
+ var h = "<<anonymous>>", b = {
823
+ array: N("array"),
824
+ bigint: N("bigint"),
825
+ bool: N("boolean"),
826
+ func: N("function"),
827
+ number: N("number"),
828
+ object: N("object"),
829
+ string: N("string"),
830
+ symbol: N("symbol"),
822
831
  any: K(),
823
832
  arrayOf: A,
824
- element: N(),
825
- elementType: f(),
826
- instanceOf: Z,
833
+ element: k(),
834
+ elementType: p(),
835
+ instanceOf: X,
827
836
  node: ce(),
828
- objectOf: V,
837
+ objectOf: J,
829
838
  oneOf: $,
830
- oneOfType: X,
831
- shape: pe,
832
- exact: le
839
+ oneOfType: ee,
840
+ shape: me,
841
+ exact: ue
833
842
  };
834
- function O(l, m) {
835
- return l === m ? l !== 0 || 1 / l === 1 / m : l !== l && m !== m;
843
+ function _(u, g) {
844
+ return u === g ? u !== 0 || 1 / u === 1 / g : u !== u && g !== g;
836
845
  }
837
- function w(l, m) {
838
- this.message = l, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
846
+ function T(u, g) {
847
+ this.message = u, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
839
848
  }
840
- w.prototype = Error.prototype;
841
- function L(l) {
849
+ T.prototype = Error.prototype;
850
+ function L(u) {
842
851
  if (process.env.NODE_ENV !== "production")
843
- var m = {}, T = 0;
844
- function x(P, E, C, I, R, D, q) {
845
- if (I = I || h, D = D || C, q !== t) {
846
- if (v) {
847
- var p = new Error(
852
+ var g = {}, C = 0;
853
+ function x(P, S, O, R, I, D, q) {
854
+ if (R = R || h, D = D || O, q !== t) {
855
+ if (f) {
856
+ var d = new Error(
848
857
  "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
858
  );
850
- throw p.name = "Invariant Violation", p;
859
+ throw d.name = "Invariant Violation", d;
851
860
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
852
- var Q = I + ":" + C;
853
- !m[Q] && // 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 `" + D + "` prop on `" + I + "`. 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[Q] = !0, T++);
861
+ var re = R + ":" + O;
862
+ !g[re] && // Avoid spamming the console because they are often not actionable except for lib authors
863
+ C < 3 && (o(
864
+ "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + R + "`. 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."
865
+ ), g[re] = !0, C++);
857
866
  }
858
867
  }
859
- return E[C] == null ? P ? E[C] === null ? new w("The " + R + " `" + D + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new w("The " + R + " `" + D + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : l(E, C, I, R, D);
868
+ return S[O] == null ? P ? S[O] === null ? new T("The " + I + " `" + D + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new T("The " + I + " `" + D + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : u(S, O, R, I, D);
860
869
  }
861
- var _ = x.bind(null, !1);
862
- return _.isRequired = x.bind(null, !0), _;
863
- }
864
- function k(l) {
865
- function m(T, x, _, P, E, C) {
866
- var I = T[x], R = te(I);
867
- if (R !== l) {
868
- var D = oe(I);
869
- return new w(
870
- "Invalid " + P + " `" + E + "` of type " + ("`" + D + "` supplied to `" + _ + "`, expected ") + ("`" + l + "`."),
871
- { expectedType: l }
870
+ var w = x.bind(null, !1);
871
+ return w.isRequired = x.bind(null, !0), w;
872
+ }
873
+ function N(u) {
874
+ function g(C, x, w, P, S, O) {
875
+ var R = C[x], I = ne(R);
876
+ if (I !== u) {
877
+ var D = ae(R);
878
+ return new T(
879
+ "Invalid " + P + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected ") + ("`" + u + "`."),
880
+ { expectedType: u }
872
881
  );
873
882
  }
874
883
  return null;
875
884
  }
876
- return L(m);
885
+ return L(g);
877
886
  }
878
887
  function K() {
879
888
  return L(s);
880
889
  }
881
- function A(l) {
882
- function m(T, x, _, P, E) {
883
- if (typeof l != "function")
884
- return new w("Property `" + E + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
885
- var C = T[x];
886
- if (!Array.isArray(C)) {
887
- var I = te(C);
888
- return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected an array."));
890
+ function A(u) {
891
+ function g(C, x, w, P, S) {
892
+ if (typeof u != "function")
893
+ return new T("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
894
+ var O = C[x];
895
+ if (!Array.isArray(O)) {
896
+ var R = ne(O);
897
+ return new T("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected an array."));
889
898
  }
890
- for (var R = 0; R < C.length; R++) {
891
- var D = l(C, R, _, P, E + "[" + R + "]", t);
899
+ for (var I = 0; I < O.length; I++) {
900
+ var D = u(O, I, w, P, S + "[" + I + "]", t);
892
901
  if (D instanceof Error)
893
902
  return D;
894
903
  }
895
904
  return null;
896
905
  }
897
- return L(m);
898
- }
899
- function N() {
900
- function l(m, T, x, _, P) {
901
- var E = m[T];
902
- if (!i(E)) {
903
- var C = te(E);
904
- return new w("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected a single ReactElement."));
906
+ return L(g);
907
+ }
908
+ function k() {
909
+ function u(g, C, x, w, P) {
910
+ var S = g[C];
911
+ if (!i(S)) {
912
+ var O = ne(S);
913
+ return new T("Invalid " + w + " `" + P + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement."));
905
914
  }
906
915
  return null;
907
916
  }
908
- return L(l);
909
- }
910
- function f() {
911
- function l(m, T, x, _, P) {
912
- var E = m[T];
913
- if (!e.isValidElementType(E)) {
914
- var C = te(E);
915
- return new w("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected a single ReactElement type."));
917
+ return L(u);
918
+ }
919
+ function p() {
920
+ function u(g, C, x, w, P) {
921
+ var S = g[C];
922
+ if (!e.isValidElementType(S)) {
923
+ var O = ne(S);
924
+ return new T("Invalid " + w + " `" + P + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement type."));
916
925
  }
917
926
  return null;
918
927
  }
919
- return L(l);
928
+ return L(u);
920
929
  }
921
- function Z(l) {
922
- function m(T, x, _, P, E) {
923
- if (!(T[x] instanceof l)) {
924
- var C = l.name || h, I = U(T[x]);
925
- return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected ") + ("instance of `" + C + "`."));
930
+ function X(u) {
931
+ function g(C, x, w, P, S) {
932
+ if (!(C[x] instanceof u)) {
933
+ var O = u.name || h, R = H(C[x]);
934
+ return new T("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected ") + ("instance of `" + O + "`."));
926
935
  }
927
936
  return null;
928
937
  }
929
- return L(m);
938
+ return L(g);
930
939
  }
931
- function $(l) {
932
- if (!Array.isArray(l))
940
+ function $(u) {
941
+ if (!Array.isArray(u))
933
942
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
934
943
  "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
944
  ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
936
- function m(T, x, _, P, E) {
937
- for (var C = T[x], I = 0; I < l.length; I++)
938
- if (O(C, l[I]))
945
+ function g(C, x, w, P, S) {
946
+ for (var O = C[x], R = 0; R < u.length; R++)
947
+ if (_(O, u[R]))
939
948
  return null;
940
- var R = JSON.stringify(l, function(q, p) {
941
- var Q = oe(p);
942
- return Q === "symbol" ? String(p) : p;
949
+ var I = JSON.stringify(u, function(q, d) {
950
+ var re = ae(d);
951
+ return re === "symbol" ? String(d) : d;
943
952
  });
944
- return new w("Invalid " + P + " `" + E + "` of value `" + String(C) + "` " + ("supplied to `" + _ + "`, expected one of " + R + "."));
953
+ return new T("Invalid " + P + " `" + S + "` of value `" + String(O) + "` " + ("supplied to `" + w + "`, expected one of " + I + "."));
945
954
  }
946
- return L(m);
947
- }
948
- function V(l) {
949
- function m(T, x, _, P, E) {
950
- if (typeof l != "function")
951
- return new w("Property `" + E + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
952
- var C = T[x], I = te(C);
953
- if (I !== "object")
954
- return new w("Invalid " + P + " `" + E + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected an object."));
955
- for (var R in C)
956
- if (n(C, R)) {
957
- var D = l(C, R, _, P, E + "." + R, t);
955
+ return L(g);
956
+ }
957
+ function J(u) {
958
+ function g(C, x, w, P, S) {
959
+ if (typeof u != "function")
960
+ return new T("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
961
+ var O = C[x], R = ne(O);
962
+ if (R !== "object")
963
+ return new T("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected an object."));
964
+ for (var I in O)
965
+ if (n(O, I)) {
966
+ var D = u(O, I, w, P, S + "." + I, t);
958
967
  if (D instanceof Error)
959
968
  return D;
960
969
  }
961
970
  return null;
962
971
  }
963
- return L(m);
972
+ return L(g);
964
973
  }
965
- function X(l) {
966
- if (!Array.isArray(l))
974
+ function ee(u) {
975
+ if (!Array.isArray(u))
967
976
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
968
- for (var m = 0; m < l.length; m++) {
969
- var T = l[m];
970
- if (typeof T != "function")
977
+ for (var g = 0; g < u.length; g++) {
978
+ var C = u[g];
979
+ if (typeof C != "function")
971
980
  return o(
972
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(T) + " at index " + m + "."
981
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(C) + " at index " + g + "."
973
982
  ), s;
974
983
  }
975
- function x(_, P, E, C, I) {
976
- for (var R = [], D = 0; D < l.length; D++) {
977
- var q = l[D], p = q(_, P, E, C, I, t);
978
- if (p == null)
984
+ function x(w, P, S, O, R) {
985
+ for (var I = [], D = 0; D < u.length; D++) {
986
+ var q = u[D], d = q(w, P, S, O, R, t);
987
+ if (d == null)
979
988
  return null;
980
- p.data && n(p.data, "expectedType") && R.push(p.data.expectedType);
989
+ d.data && n(d.data, "expectedType") && I.push(d.data.expectedType);
981
990
  }
982
- var Q = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
983
- return new w("Invalid " + C + " `" + I + "` supplied to " + ("`" + E + "`" + Q + "."));
991
+ var re = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
992
+ return new T("Invalid " + O + " `" + R + "` supplied to " + ("`" + S + "`" + re + "."));
984
993
  }
985
994
  return L(x);
986
995
  }
987
996
  function ce() {
988
- function l(m, T, x, _, P) {
989
- return z(m[T]) ? null : new w("Invalid " + _ + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
997
+ function u(g, C, x, w, P) {
998
+ return W(g[C]) ? null : new T("Invalid " + w + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
990
999
  }
991
- return L(l);
1000
+ return L(u);
992
1001
  }
993
- function fe(l, m, T, x, _) {
994
- return new w(
995
- (l || "React class") + ": " + m + " type `" + T + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
1002
+ function de(u, g, C, x, w) {
1003
+ return new T(
1004
+ (u || "React class") + ": " + g + " type `" + C + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
996
1005
  );
997
1006
  }
998
- function pe(l) {
999
- function m(T, x, _, P, E) {
1000
- var C = T[x], I = te(C);
1001
- if (I !== "object")
1002
- return new w("Invalid " + P + " `" + E + "` of type `" + I + "` " + ("supplied to `" + _ + "`, expected `object`."));
1003
- for (var R in l) {
1004
- var D = l[R];
1007
+ function me(u) {
1008
+ function g(C, x, w, P, S) {
1009
+ var O = C[x], R = ne(O);
1010
+ if (R !== "object")
1011
+ return new T("Invalid " + P + " `" + S + "` of type `" + R + "` " + ("supplied to `" + w + "`, expected `object`."));
1012
+ for (var I in u) {
1013
+ var D = u[I];
1005
1014
  if (typeof D != "function")
1006
- return fe(_, P, E, R, oe(D));
1007
- var q = D(C, R, _, P, E + "." + R, t);
1015
+ return de(w, P, S, I, ae(D));
1016
+ var q = D(O, I, w, P, S + "." + I, t);
1008
1017
  if (q)
1009
1018
  return q;
1010
1019
  }
1011
1020
  return null;
1012
1021
  }
1013
- return L(m);
1014
- }
1015
- function le(l) {
1016
- function m(T, x, _, P, E) {
1017
- var C = T[x], I = te(C);
1018
- if (I !== "object")
1019
- return new w("Invalid " + P + " `" + E + "` of type `" + I + "` " + ("supplied to `" + _ + "`, expected `object`."));
1020
- var R = r({}, T[x], l);
1021
- for (var D in R) {
1022
- var q = l[D];
1023
- if (n(l, D) && typeof q != "function")
1024
- return fe(_, P, E, D, oe(q));
1022
+ return L(g);
1023
+ }
1024
+ function ue(u) {
1025
+ function g(C, x, w, P, S) {
1026
+ var O = C[x], R = ne(O);
1027
+ if (R !== "object")
1028
+ return new T("Invalid " + P + " `" + S + "` of type `" + R + "` " + ("supplied to `" + w + "`, expected `object`."));
1029
+ var I = r({}, C[x], u);
1030
+ for (var D in I) {
1031
+ var q = u[D];
1032
+ if (n(u, D) && typeof q != "function")
1033
+ return de(w, P, S, D, ae(q));
1025
1034
  if (!q)
1026
- return new w(
1027
- "Invalid " + P + " `" + E + "` key `" + D + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(T[x], null, " ") + `
1028
- Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1035
+ return new T(
1036
+ "Invalid " + P + " `" + S + "` key `" + D + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(C[x], null, " ") + `
1037
+ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1029
1038
  );
1030
- var p = q(C, D, _, P, E + "." + D, t);
1031
- if (p)
1032
- return p;
1039
+ var d = q(O, D, w, P, S + "." + D, t);
1040
+ if (d)
1041
+ return d;
1033
1042
  }
1034
1043
  return null;
1035
1044
  }
1036
- return L(m);
1045
+ return L(g);
1037
1046
  }
1038
- function z(l) {
1039
- switch (typeof l) {
1047
+ function W(u) {
1048
+ switch (typeof u) {
1040
1049
  case "number":
1041
1050
  case "string":
1042
1051
  case "undefined":
1043
1052
  return !0;
1044
1053
  case "boolean":
1045
- return !l;
1054
+ return !u;
1046
1055
  case "object":
1047
- if (Array.isArray(l))
1048
- return l.every(z);
1049
- if (l === null || i(l))
1056
+ if (Array.isArray(u))
1057
+ return u.every(W);
1058
+ if (u === null || i(u))
1050
1059
  return !0;
1051
- var m = g(l);
1052
- if (m) {
1053
- var T = m.call(l), x;
1054
- if (m !== l.entries) {
1055
- for (; !(x = T.next()).done; )
1056
- if (!z(x.value))
1060
+ var g = y(u);
1061
+ if (g) {
1062
+ var C = g.call(u), x;
1063
+ if (g !== u.entries) {
1064
+ for (; !(x = C.next()).done; )
1065
+ if (!W(x.value))
1057
1066
  return !1;
1058
1067
  } else
1059
- for (; !(x = T.next()).done; ) {
1060
- var _ = x.value;
1061
- if (_ && !z(_[1]))
1068
+ for (; !(x = C.next()).done; ) {
1069
+ var w = x.value;
1070
+ if (w && !W(w[1]))
1062
1071
  return !1;
1063
1072
  }
1064
1073
  } else
@@ -1068,58 +1077,58 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1068
1077
  return !1;
1069
1078
  }
1070
1079
  }
1071
- function J(l, m) {
1072
- return l === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
1080
+ function Z(u, g) {
1081
+ return u === "symbol" ? !0 : g ? g["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && g instanceof Symbol : !1;
1073
1082
  }
1074
- function te(l) {
1075
- var m = typeof l;
1076
- return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : J(m, l) ? "symbol" : m;
1083
+ function ne(u) {
1084
+ var g = typeof u;
1085
+ return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : Z(g, u) ? "symbol" : g;
1077
1086
  }
1078
- function oe(l) {
1079
- if (typeof l > "u" || l === null)
1080
- return "" + l;
1081
- var m = te(l);
1082
- if (m === "object") {
1083
- if (l instanceof Date)
1087
+ function ae(u) {
1088
+ if (typeof u > "u" || u === null)
1089
+ return "" + u;
1090
+ var g = ne(u);
1091
+ if (g === "object") {
1092
+ if (u instanceof Date)
1084
1093
  return "date";
1085
- if (l instanceof RegExp)
1094
+ if (u instanceof RegExp)
1086
1095
  return "regexp";
1087
1096
  }
1088
- return m;
1097
+ return g;
1089
1098
  }
1090
- function ue(l) {
1091
- var m = oe(l);
1092
- switch (m) {
1099
+ function fe(u) {
1100
+ var g = ae(u);
1101
+ switch (g) {
1093
1102
  case "array":
1094
1103
  case "object":
1095
- return "an " + m;
1104
+ return "an " + g;
1096
1105
  case "boolean":
1097
1106
  case "date":
1098
1107
  case "regexp":
1099
- return "a " + m;
1108
+ return "a " + g;
1100
1109
  default:
1101
- return m;
1110
+ return g;
1102
1111
  }
1103
1112
  }
1104
- function U(l) {
1105
- return !l.constructor || !l.constructor.name ? h : l.constructor.name;
1113
+ function H(u) {
1114
+ return !u.constructor || !u.constructor.name ? h : u.constructor.name;
1106
1115
  }
1107
- return S.checkPropTypes = a, S.resetWarningCache = a.resetWarningCache, S.PropTypes = S, S;
1108
- }, Xe;
1116
+ return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
1117
+ }, Qe;
1109
1118
  }
1110
- var Qe, xr;
1111
- function bn() {
1112
- if (xr)
1113
- return Qe;
1114
- xr = 1;
1119
+ var er, Cr;
1120
+ function hn() {
1121
+ if (Cr)
1122
+ return er;
1123
+ Cr = 1;
1115
1124
  var e = fr();
1116
1125
  function r() {
1117
1126
  }
1118
1127
  function t() {
1119
1128
  }
1120
- return t.resetWarningCache = r, Qe = function() {
1121
- function n(s, i, v, c, y, g) {
1122
- if (g !== e) {
1129
+ return t.resetWarningCache = r, er = function() {
1130
+ function n(s, i, f, c, v, y) {
1131
+ if (y !== e) {
1123
1132
  var h = new Error(
1124
1133
  "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
1134
  );
@@ -1154,43 +1163,43 @@ function bn() {
1154
1163
  resetWarningCache: r
1155
1164
  };
1156
1165
  return o.PropTypes = o, o;
1157
- }, Qe;
1166
+ }, er;
1158
1167
  }
1159
1168
  if (process.env.NODE_ENV !== "production") {
1160
- var hn = Ur(), _n = !0;
1161
- nr.exports = gn()(hn.isElement, _n);
1169
+ var _n = Hr(), En = !0;
1170
+ nr.exports = bn()(_n.isElement, En);
1162
1171
  } else
1163
- nr.exports = bn()();
1164
- var En = nr.exports;
1165
- const M = /* @__PURE__ */ Lr(En);
1166
- function we(e, r, t, n) {
1172
+ nr.exports = hn()();
1173
+ var wn = nr.exports;
1174
+ const M = /* @__PURE__ */ Lr(wn);
1175
+ function Se(e, r, t, n) {
1167
1176
  function a(o) {
1168
1177
  return o instanceof t ? o : new t(function(s) {
1169
1178
  s(o);
1170
1179
  });
1171
1180
  }
1172
1181
  return new (t || (t = Promise))(function(o, s) {
1173
- function i(y) {
1182
+ function i(v) {
1174
1183
  try {
1175
- c(n.next(y));
1176
- } catch (g) {
1177
- s(g);
1184
+ c(n.next(v));
1185
+ } catch (y) {
1186
+ s(y);
1178
1187
  }
1179
1188
  }
1180
- function v(y) {
1189
+ function f(v) {
1181
1190
  try {
1182
- c(n.throw(y));
1183
- } catch (g) {
1184
- s(g);
1191
+ c(n.throw(v));
1192
+ } catch (y) {
1193
+ s(y);
1185
1194
  }
1186
1195
  }
1187
- function c(y) {
1188
- y.done ? o(y.value) : a(y.value).then(i, v);
1196
+ function c(v) {
1197
+ v.done ? o(v.value) : a(v.value).then(i, f);
1189
1198
  }
1190
1199
  c((n = n.apply(e, r || [])).next());
1191
1200
  });
1192
1201
  }
1193
- function Se(e, r) {
1202
+ function Te(e, r) {
1194
1203
  var t = { label: 0, sent: function() {
1195
1204
  if (o[0] & 1)
1196
1205
  throw o[1];
@@ -1200,11 +1209,11 @@ function Se(e, r) {
1200
1209
  return this;
1201
1210
  }), s;
1202
1211
  function i(c) {
1203
- return function(y) {
1204
- return v([c, y]);
1212
+ return function(v) {
1213
+ return f([c, v]);
1205
1214
  };
1206
1215
  }
1207
- function v(c) {
1216
+ function f(c) {
1208
1217
  if (n)
1209
1218
  throw new TypeError("Generator is already executing.");
1210
1219
  for (; s && (s = 0, c[0] && (t = 0)), t; )
@@ -1245,8 +1254,8 @@ function Se(e, r) {
1245
1254
  continue;
1246
1255
  }
1247
1256
  c = r.call(e, t);
1248
- } catch (y) {
1249
- c = [6, y], a = 0;
1257
+ } catch (v) {
1258
+ c = [6, v], a = 0;
1250
1259
  } finally {
1251
1260
  n = o = 0;
1252
1261
  }
@@ -1255,7 +1264,7 @@ function Se(e, r) {
1255
1264
  return { value: c[0] ? c[1] : void 0, done: !0 };
1256
1265
  }
1257
1266
  }
1258
- function Cr(e, r) {
1267
+ function xr(e, r) {
1259
1268
  var t = typeof Symbol == "function" && e[Symbol.iterator];
1260
1269
  if (!t)
1261
1270
  return e;
@@ -1281,7 +1290,7 @@ function Or(e, r, t) {
1281
1290
  (o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
1282
1291
  return e.concat(o || Array.prototype.slice.call(r));
1283
1292
  }
1284
- var wn = /* @__PURE__ */ new Map([
1293
+ var Sn = /* @__PURE__ */ new Map([
1285
1294
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
1286
1295
  ["aac", "audio/aac"],
1287
1296
  ["abw", "application/x-abiword"],
@@ -1365,8 +1374,8 @@ var wn = /* @__PURE__ */ new Map([
1365
1374
  ["mov", "video/quicktime"],
1366
1375
  ["msg", "application/vnd.ms-outlook"]
1367
1376
  ]);
1368
- function Ae(e, r) {
1369
- var t = Sn(e);
1377
+ function Pe(e, r) {
1378
+ var t = Tn(e);
1370
1379
  if (typeof t.path != "string") {
1371
1380
  var n = e.webkitRelativePath;
1372
1381
  Object.defineProperty(t, "path", {
@@ -1378,10 +1387,10 @@ function Ae(e, r) {
1378
1387
  }
1379
1388
  return t;
1380
1389
  }
1381
- function Sn(e) {
1390
+ function Tn(e) {
1382
1391
  var r = e.name, t = r && r.lastIndexOf(".") !== -1;
1383
1392
  if (t && !e.type) {
1384
- var n = r.split(".").pop().toLowerCase(), a = wn.get(n);
1393
+ var n = r.split(".").pop().toLowerCase(), a = Sn.get(n);
1385
1394
  a && Object.defineProperty(e, "type", {
1386
1395
  value: a,
1387
1396
  writable: !1,
@@ -1391,39 +1400,39 @@ function Sn(e) {
1391
1400
  }
1392
1401
  return e;
1393
1402
  }
1394
- var Tn = [
1403
+ var Cn = [
1395
1404
  // Thumbnail cache files for macOS and Windows
1396
1405
  ".DS_Store",
1397
1406
  "Thumbs.db"
1398
1407
  // Windows
1399
1408
  ];
1400
1409
  function xn(e) {
1401
- return we(this, void 0, void 0, function() {
1402
- return Se(this, function(r) {
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) {
1410
+ return Se(this, void 0, void 0, function() {
1411
+ return Te(this, function(r) {
1412
+ return $e(e) && On(e.dataTransfer) ? [2, Rn(e.dataTransfer, e.type)] : Dn(e) ? [2, An(e)] : Array.isArray(e) && e.every(function(t) {
1404
1413
  return "getFile" in t && typeof t.getFile == "function";
1405
- }) ? [2, An(e)] : [2, []];
1414
+ }) ? [2, Pn(e)] : [2, []];
1406
1415
  });
1407
1416
  });
1408
1417
  }
1409
- function Cn(e) {
1410
- return Ne(e);
1411
- }
1412
1418
  function On(e) {
1413
- return Ne(e) && Ne(e.target);
1419
+ return $e(e);
1414
1420
  }
1415
- function Ne(e) {
1421
+ function Dn(e) {
1422
+ return $e(e) && $e(e.target);
1423
+ }
1424
+ function $e(e) {
1416
1425
  return typeof e == "object" && e !== null;
1417
1426
  }
1418
- function Dn(e) {
1427
+ function An(e) {
1419
1428
  return or(e.target.files).map(function(r) {
1420
- return Ae(r);
1429
+ return Pe(r);
1421
1430
  });
1422
1431
  }
1423
- function An(e) {
1424
- return we(this, void 0, void 0, function() {
1432
+ function Pn(e) {
1433
+ return Se(this, void 0, void 0, function() {
1425
1434
  var r;
1426
- return Se(this, function(t) {
1435
+ return Te(this, function(t) {
1427
1436
  switch (t.label) {
1428
1437
  case 0:
1429
1438
  return [4, Promise.all(e.map(function(n) {
@@ -1431,16 +1440,16 @@ function An(e) {
1431
1440
  }))];
1432
1441
  case 1:
1433
1442
  return r = t.sent(), [2, r.map(function(n) {
1434
- return Ae(n);
1443
+ return Pe(n);
1435
1444
  })];
1436
1445
  }
1437
1446
  });
1438
1447
  });
1439
1448
  }
1440
- function Pn(e, r) {
1441
- return we(this, void 0, void 0, function() {
1449
+ function Rn(e, r) {
1450
+ return Se(this, void 0, void 0, function() {
1442
1451
  var t, n;
1443
- return Se(this, function(a) {
1452
+ return Te(this, function(a) {
1444
1453
  switch (a.label) {
1445
1454
  case 0:
1446
1455
  return e.items ? (t = or(e.items).filter(function(o) {
@@ -1450,7 +1459,7 @@ function Pn(e, r) {
1450
1459
  return n = a.sent(), [2, Dr(Vr(n))];
1451
1460
  case 2:
1452
1461
  return [2, Dr(or(e.files).map(function(o) {
1453
- return Ae(o);
1462
+ return Pe(o);
1454
1463
  }))];
1455
1464
  }
1456
1465
  });
@@ -1458,7 +1467,7 @@ function Pn(e, r) {
1458
1467
  }
1459
1468
  function Dr(e) {
1460
1469
  return e.filter(function(r) {
1461
- return Tn.indexOf(r.name) === -1;
1470
+ return Cn.indexOf(r.name) === -1;
1462
1471
  });
1463
1472
  }
1464
1473
  function or(e) {
@@ -1478,20 +1487,20 @@ function In(e) {
1478
1487
  }
1479
1488
  function Vr(e) {
1480
1489
  return e.reduce(function(r, t) {
1481
- return Or(Or([], Cr(r), !1), Cr(Array.isArray(t) ? Vr(t) : [t]), !1);
1490
+ return Or(Or([], xr(r), !1), xr(Array.isArray(t) ? Vr(t) : [t]), !1);
1482
1491
  }, []);
1483
1492
  }
1484
1493
  function Ar(e) {
1485
1494
  var r = e.getAsFile();
1486
1495
  if (!r)
1487
1496
  return Promise.reject("".concat(e, " is not a File"));
1488
- var t = Ae(r);
1497
+ var t = Pe(r);
1489
1498
  return Promise.resolve(t);
1490
1499
  }
1491
- function Rn(e) {
1492
- return we(this, void 0, void 0, function() {
1493
- return Se(this, function(r) {
1494
- return [2, e.isDirectory ? Jr(e) : Fn(e)];
1500
+ function Fn(e) {
1501
+ return Se(this, void 0, void 0, function() {
1502
+ return Te(this, function(r) {
1503
+ return [2, e.isDirectory ? Jr(e) : jn(e)];
1495
1504
  });
1496
1505
  });
1497
1506
  }
@@ -1502,24 +1511,24 @@ function Jr(e) {
1502
1511
  function o() {
1503
1512
  var s = this;
1504
1513
  r.readEntries(function(i) {
1505
- return we(s, void 0, void 0, function() {
1506
- var v, c, y;
1507
- return Se(this, function(g) {
1508
- switch (g.label) {
1514
+ return Se(s, void 0, void 0, function() {
1515
+ var f, c, v;
1516
+ return Te(this, function(y) {
1517
+ switch (y.label) {
1509
1518
  case 0:
1510
1519
  if (i.length)
1511
1520
  return [3, 5];
1512
- g.label = 1;
1521
+ y.label = 1;
1513
1522
  case 1:
1514
- return g.trys.push([1, 3, , 4]), [4, Promise.all(a)];
1523
+ return y.trys.push([1, 3, , 4]), [4, Promise.all(a)];
1515
1524
  case 2:
1516
- return v = g.sent(), t(v), [3, 4];
1525
+ return f = y.sent(), t(f), [3, 4];
1517
1526
  case 3:
1518
- return c = g.sent(), n(c), [3, 4];
1527
+ return c = y.sent(), n(c), [3, 4];
1519
1528
  case 4:
1520
1529
  return [3, 6];
1521
1530
  case 5:
1522
- y = Promise.all(i.map(Rn)), a.push(y), o(), g.label = 6;
1531
+ v = Promise.all(i.map(Fn)), a.push(v), o(), y.label = 6;
1523
1532
  case 6:
1524
1533
  return [
1525
1534
  2
@@ -1535,12 +1544,12 @@ function Jr(e) {
1535
1544
  o();
1536
1545
  });
1537
1546
  }
1538
- function Fn(e) {
1539
- return we(this, void 0, void 0, function() {
1540
- return Se(this, function(r) {
1547
+ function jn(e) {
1548
+ return Se(this, void 0, void 0, function() {
1549
+ return Te(this, function(r) {
1541
1550
  return [2, new Promise(function(t, n) {
1542
1551
  e.file(function(a) {
1543
- var o = Ae(a, e.fullPath);
1552
+ var o = Pe(a, e.fullPath);
1544
1553
  t(o);
1545
1554
  }, function(a) {
1546
1555
  n(a);
@@ -1549,7 +1558,7 @@ function Fn(e) {
1549
1558
  });
1550
1559
  });
1551
1560
  }
1552
- var jn = function(e, r) {
1561
+ var Nn = function(e, r) {
1553
1562
  if (e && r) {
1554
1563
  var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", a = (e.type || "").toLowerCase(), o = a.replace(/\/.*$/, "");
1555
1564
  return t.some(function(s) {
@@ -1560,21 +1569,21 @@ var jn = function(e, r) {
1560
1569
  return !0;
1561
1570
  };
1562
1571
  function Pr(e) {
1563
- return $n(e) || Nn(e) || Xr(e) || kn();
1572
+ return Mn(e) || $n(e) || Xr(e) || kn();
1564
1573
  }
1565
1574
  function kn() {
1566
1575
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1567
1576
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1568
1577
  }
1569
- function Nn(e) {
1578
+ function $n(e) {
1570
1579
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
1571
1580
  return Array.from(e);
1572
1581
  }
1573
- function $n(e) {
1582
+ function Mn(e) {
1574
1583
  if (Array.isArray(e))
1575
1584
  return ar(e);
1576
1585
  }
1577
- function Ir(e, r) {
1586
+ function Rr(e, r) {
1578
1587
  var t = Object.keys(e);
1579
1588
  if (Object.getOwnPropertySymbols) {
1580
1589
  var n = Object.getOwnPropertySymbols(e);
@@ -1584,12 +1593,12 @@ function Ir(e, r) {
1584
1593
  }
1585
1594
  return t;
1586
1595
  }
1587
- function Rr(e) {
1596
+ function Ir(e) {
1588
1597
  for (var r = 1; r < arguments.length; r++) {
1589
1598
  var t = arguments[r] != null ? arguments[r] : {};
1590
- r % 2 ? Ir(Object(t), !0).forEach(function(n) {
1599
+ r % 2 ? Rr(Object(t), !0).forEach(function(n) {
1591
1600
  Zr(e, n, t[n]);
1592
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ir(Object(t)).forEach(function(n) {
1601
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Rr(Object(t)).forEach(function(n) {
1593
1602
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1594
1603
  });
1595
1604
  }
@@ -1598,10 +1607,10 @@ function Rr(e) {
1598
1607
  function Zr(e, r, t) {
1599
1608
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1600
1609
  }
1601
- function Oe(e, r) {
1602
- return Bn(e) || Ln(e, r) || Xr(e, r) || Mn();
1610
+ function De(e, r) {
1611
+ return zn(e) || Bn(e, r) || Xr(e, r) || Ln();
1603
1612
  }
1604
- function Mn() {
1613
+ function Ln() {
1605
1614
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1606
1615
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1607
1616
  }
@@ -1622,15 +1631,15 @@ function ar(e, r) {
1622
1631
  n[t] = e[t];
1623
1632
  return n;
1624
1633
  }
1625
- function Ln(e, r) {
1634
+ function Bn(e, r) {
1626
1635
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1627
1636
  if (t != null) {
1628
1637
  var n = [], a = !0, o = !1, s, i;
1629
1638
  try {
1630
1639
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1631
1640
  ;
1632
- } catch (v) {
1633
- o = !0, i = v;
1641
+ } catch (f) {
1642
+ o = !0, i = f;
1634
1643
  } finally {
1635
1644
  try {
1636
1645
  !a && t.return != null && t.return();
@@ -1642,103 +1651,103 @@ function Ln(e, r) {
1642
1651
  return n;
1643
1652
  }
1644
1653
  }
1645
- function Bn(e) {
1654
+ function zn(e) {
1646
1655
  if (Array.isArray(e))
1647
1656
  return e;
1648
1657
  }
1649
- var zn = "file-invalid-type", Wn = "file-too-large", Yn = "file-too-small", qn = "too-many-files", Kn = function(r) {
1658
+ var Wn = "file-invalid-type", Yn = "file-too-large", qn = "file-too-small", Kn = "too-many-files", Un = function(r) {
1650
1659
  r = Array.isArray(r) && r.length === 1 ? r[0] : r;
1651
1660
  var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
1652
1661
  return {
1653
- code: zn,
1662
+ code: Wn,
1654
1663
  message: "File type must be ".concat(t)
1655
1664
  };
1656
1665
  }, Fr = function(r) {
1657
1666
  return {
1658
- code: Wn,
1667
+ code: Yn,
1659
1668
  message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1660
1669
  };
1661
1670
  }, jr = function(r) {
1662
1671
  return {
1663
- code: Yn,
1672
+ code: qn,
1664
1673
  message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
1665
1674
  };
1666
1675
  }, Hn = {
1667
- code: qn,
1676
+ code: Kn,
1668
1677
  message: "Too many files"
1669
1678
  };
1670
1679
  function Qr(e, r) {
1671
- var t = e.type === "application/x-moz-file" || jn(e, r);
1672
- return [t, t ? null : Kn(r)];
1680
+ var t = e.type === "application/x-moz-file" || Nn(e, r);
1681
+ return [t, t ? null : Un(r)];
1673
1682
  }
1674
1683
  function et(e, r, t) {
1675
- if (me(e.size))
1676
- if (me(r) && me(t)) {
1684
+ if (ge(e.size))
1685
+ if (ge(r) && ge(t)) {
1677
1686
  if (e.size > t)
1678
1687
  return [!1, Fr(t)];
1679
1688
  if (e.size < r)
1680
1689
  return [!1, jr(r)];
1681
1690
  } else {
1682
- if (me(r) && e.size < r)
1691
+ if (ge(r) && e.size < r)
1683
1692
  return [!1, jr(r)];
1684
- if (me(t) && e.size > t)
1693
+ if (ge(t) && e.size > t)
1685
1694
  return [!1, Fr(t)];
1686
1695
  }
1687
1696
  return [!0, null];
1688
1697
  }
1689
- function me(e) {
1698
+ function ge(e) {
1690
1699
  return e != null;
1691
1700
  }
1692
- function Un(e) {
1701
+ function Gn(e) {
1693
1702
  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(v) {
1695
- var c = Qr(v, t), y = Oe(c, 1), g = y[0], h = et(v, n, a), S = Oe(h, 1), O = S[0], w = i ? i(v) : null;
1696
- return g && O && !w;
1703
+ return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(f) {
1704
+ var c = Qr(f, t), v = De(c, 1), y = v[0], h = et(f, n, a), b = De(h, 1), _ = b[0], T = i ? i(f) : null;
1705
+ return y && _ && !T;
1697
1706
  });
1698
1707
  }
1699
- function $e(e) {
1708
+ function Me(e) {
1700
1709
  return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
1701
1710
  }
1702
- function je(e) {
1711
+ function Ne(e) {
1703
1712
  return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(r) {
1704
1713
  return r === "Files" || r === "application/x-moz-file";
1705
1714
  }) : !!e.target && !!e.target.files;
1706
1715
  }
1707
- function kr(e) {
1716
+ function Nr(e) {
1708
1717
  e.preventDefault();
1709
1718
  }
1710
- function Gn(e) {
1719
+ function Vn(e) {
1711
1720
  return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
1712
1721
  }
1713
- function Vn(e) {
1722
+ function Jn(e) {
1714
1723
  return e.indexOf("Edge/") !== -1;
1715
1724
  }
1716
- function Jn() {
1725
+ function Zn() {
1717
1726
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
1718
- return Gn(e) || Vn(e);
1727
+ return Vn(e) || Jn(e);
1719
1728
  }
1720
- function ae() {
1729
+ function ie() {
1721
1730
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1722
1731
  r[t] = arguments[t];
1723
1732
  return function(n) {
1724
1733
  for (var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++)
1725
1734
  o[s - 1] = arguments[s];
1726
1735
  return r.some(function(i) {
1727
- return !$e(n) && i && i.apply(void 0, [n].concat(o)), $e(n);
1736
+ return !Me(n) && i && i.apply(void 0, [n].concat(o)), Me(n);
1728
1737
  });
1729
1738
  };
1730
1739
  }
1731
- function Zn() {
1740
+ function Xn() {
1732
1741
  return "showOpenFilePicker" in window;
1733
1742
  }
1734
- function Xn(e) {
1735
- if (me(e)) {
1743
+ function Qn(e) {
1744
+ if (ge(e)) {
1736
1745
  var r = Object.entries(e).filter(function(t) {
1737
- var n = Oe(t, 2), a = n[0], o = n[1], s = !0;
1746
+ var n = De(t, 2), a = n[0], o = n[1], s = !0;
1738
1747
  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
1748
  }).reduce(function(t, n) {
1740
- var a = Oe(n, 2), o = a[0], s = a[1];
1741
- return Rr(Rr({}, t), {}, Zr({}, o, s));
1749
+ var a = De(n, 2), o = a[0], s = a[1];
1750
+ return Ir(Ir({}, t), {}, Zr({}, o, s));
1742
1751
  }, {});
1743
1752
  return [{
1744
1753
  // description is required due to https://crbug.com/1264708
@@ -1748,19 +1757,19 @@ function Xn(e) {
1748
1757
  }
1749
1758
  return e;
1750
1759
  }
1751
- function Qn(e) {
1752
- if (me(e))
1760
+ function eo(e) {
1761
+ if (ge(e))
1753
1762
  return Object.entries(e).reduce(function(r, t) {
1754
- var n = Oe(t, 2), a = n[0], o = n[1];
1763
+ var n = De(t, 2), a = n[0], o = n[1];
1755
1764
  return [].concat(Pr(r), [a], Pr(o));
1756
1765
  }, []).filter(function(r) {
1757
1766
  return rt(r) || tt(r);
1758
1767
  }).join(",");
1759
1768
  }
1760
- function eo(e) {
1769
+ function ro(e) {
1761
1770
  return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
1762
1771
  }
1763
- function ro(e) {
1772
+ function to(e) {
1764
1773
  return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
1765
1774
  }
1766
1775
  function rt(e) {
@@ -1769,26 +1778,26 @@ function rt(e) {
1769
1778
  function tt(e) {
1770
1779
  return /^.*\.[\w]+$/.test(e);
1771
1780
  }
1772
- var to = ["children"], no = ["open"], oo = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ao = ["refKey", "onChange", "onClick"];
1773
- function io(e) {
1774
- return lo(e) || co(e) || nt(e) || so();
1781
+ var no = ["children"], oo = ["open"], ao = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], io = ["refKey", "onChange", "onClick"];
1782
+ function so(e) {
1783
+ return uo(e) || lo(e) || nt(e) || co();
1775
1784
  }
1776
- function so() {
1785
+ function co() {
1777
1786
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1778
1787
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1779
1788
  }
1780
- function co(e) {
1789
+ function lo(e) {
1781
1790
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
1782
1791
  return Array.from(e);
1783
1792
  }
1784
- function lo(e) {
1793
+ function uo(e) {
1785
1794
  if (Array.isArray(e))
1786
1795
  return ir(e);
1787
1796
  }
1788
- function er(e, r) {
1789
- return po(e) || fo(e, r) || nt(e, r) || uo();
1797
+ function rr(e, r) {
1798
+ return mo(e) || po(e, r) || nt(e, r) || fo();
1790
1799
  }
1791
- function uo() {
1800
+ function fo() {
1792
1801
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1793
1802
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1794
1803
  }
@@ -1809,15 +1818,15 @@ function ir(e, r) {
1809
1818
  n[t] = e[t];
1810
1819
  return n;
1811
1820
  }
1812
- function fo(e, r) {
1821
+ function po(e, r) {
1813
1822
  var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1814
1823
  if (t != null) {
1815
1824
  var n = [], a = !0, o = !1, s, i;
1816
1825
  try {
1817
1826
  for (t = t.call(e); !(a = (s = t.next()).done) && (n.push(s.value), !(r && n.length === r)); a = !0)
1818
1827
  ;
1819
- } catch (v) {
1820
- o = !0, i = v;
1828
+ } catch (f) {
1829
+ o = !0, i = f;
1821
1830
  } finally {
1822
1831
  try {
1823
1832
  !a && t.return != null && t.return();
@@ -1829,11 +1838,11 @@ function fo(e, r) {
1829
1838
  return n;
1830
1839
  }
1831
1840
  }
1832
- function po(e) {
1841
+ function mo(e) {
1833
1842
  if (Array.isArray(e))
1834
1843
  return e;
1835
1844
  }
1836
- function Nr(e, r) {
1845
+ function kr(e, r) {
1837
1846
  var t = Object.keys(e);
1838
1847
  if (Object.getOwnPropertySymbols) {
1839
1848
  var n = Object.getOwnPropertySymbols(e);
@@ -1843,12 +1852,12 @@ function Nr(e, r) {
1843
1852
  }
1844
1853
  return t;
1845
1854
  }
1846
- function B(e) {
1855
+ function z(e) {
1847
1856
  for (var r = 1; r < arguments.length; r++) {
1848
1857
  var t = arguments[r] != null ? arguments[r] : {};
1849
- r % 2 ? Nr(Object(t), !0).forEach(function(n) {
1858
+ r % 2 ? kr(Object(t), !0).forEach(function(n) {
1850
1859
  sr(e, n, t[n]);
1851
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Nr(Object(t)).forEach(function(n) {
1860
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : kr(Object(t)).forEach(function(n) {
1852
1861
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
1853
1862
  });
1854
1863
  }
@@ -1857,10 +1866,10 @@ function B(e) {
1857
1866
  function sr(e, r, t) {
1858
1867
  return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
1859
1868
  }
1860
- function Me(e, r) {
1869
+ function Le(e, r) {
1861
1870
  if (e == null)
1862
1871
  return {};
1863
- var t = mo(e, r), n, a;
1872
+ var t = vo(e, r), n, a;
1864
1873
  if (Object.getOwnPropertySymbols) {
1865
1874
  var o = Object.getOwnPropertySymbols(e);
1866
1875
  for (a = 0; a < o.length; a++)
@@ -1868,7 +1877,7 @@ function Me(e, r) {
1868
1877
  }
1869
1878
  return t;
1870
1879
  }
1871
- function mo(e, r) {
1880
+ function vo(e, r) {
1872
1881
  if (e == null)
1873
1882
  return {};
1874
1883
  var t = {}, n = Object.keys(e), a, o;
@@ -1877,12 +1886,12 @@ function mo(e, r) {
1877
1886
  return t;
1878
1887
  }
1879
1888
  var pr = /* @__PURE__ */ mt(function(e, r) {
1880
- var t = e.children, n = Me(e, to), a = at(n), o = a.open, s = Me(a, no);
1889
+ var t = e.children, n = Le(e, no), a = at(n), o = a.open, s = Le(a, oo);
1881
1890
  return vt(r, function() {
1882
1891
  return {
1883
1892
  open: o
1884
1893
  };
1885
- }, [o]), /* @__PURE__ */ ut.createElement(yt, null, t(B(B({}, s), {}, {
1894
+ }, [o]), /* @__PURE__ */ ut.createElement(gt, null, t(z(z({}, s), {}, {
1886
1895
  open: o
1887
1896
  })));
1888
1897
  });
@@ -2082,252 +2091,366 @@ var cr = {
2082
2091
  fileRejections: []
2083
2092
  };
2084
2093
  function at() {
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, h = r.onDrop, S = r.onDropAccepted, O = r.onDropRejected, w = r.onFileDialogCancel, L = r.onFileDialogOpen, k = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, N = r.noClick, f = r.noKeyboard, Z = r.noDrag, $ = r.noDragEventsBubbling, V = r.onError, X = r.validator, ce = ie(function() {
2094
+ 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, f = r.maxFiles, c = r.onDragEnter, v = r.onDragLeave, y = r.onDragOver, h = r.onDrop, b = r.onDropAccepted, _ = r.onDropRejected, T = r.onFileDialogCancel, L = r.onFileDialogOpen, N = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, X = r.noDrag, $ = r.noDragEventsBubbling, J = r.onError, ee = r.validator, ce = se(function() {
2095
+ return eo(t);
2096
+ }, [t]), de = se(function() {
2086
2097
  return Qn(t);
2087
- }, [t]), fe = ie(function() {
2088
- return Xn(t);
2089
- }, [t]), pe = ie(function() {
2098
+ }, [t]), me = se(function() {
2090
2099
  return typeof L == "function" ? L : $r;
2091
- }, [L]), le = ie(function() {
2092
- return typeof w == "function" ? w : $r;
2093
- }, [w]), z = Ce(null), J = Ce(null), te = dt(vo, cr), oe = er(te, 2), ue = oe[0], U = oe[1], l = ue.isFocused, m = ue.isFileDialogActive, T = Ce(typeof window < "u" && window.isSecureContext && k && Zn()), x = function() {
2094
- !T.current && m && setTimeout(function() {
2095
- if (J.current) {
2096
- var b = J.current.files;
2097
- b.length || (U({
2100
+ }, [L]), ue = se(function() {
2101
+ return typeof T == "function" ? T : $r;
2102
+ }, [T]), W = Oe(null), Z = Oe(null), ne = dt(go, cr), ae = rr(ne, 2), fe = ae[0], H = ae[1], u = fe.isFocused, g = fe.isFileDialogActive, C = Oe(typeof window < "u" && window.isSecureContext && N && Xn()), x = function() {
2103
+ !C.current && g && setTimeout(function() {
2104
+ if (Z.current) {
2105
+ var E = Z.current.files;
2106
+ E.length || (H({
2098
2107
  type: "closeDialog"
2099
- }), le());
2108
+ }), ue());
2100
2109
  }
2101
2110
  }, 300);
2102
2111
  };
2103
- he(function() {
2112
+ _e(function() {
2104
2113
  return window.addEventListener("focus", x, !1), function() {
2105
2114
  window.removeEventListener("focus", x, !1);
2106
2115
  };
2107
- }, [J, m, le, T]);
2108
- var _ = Ce([]), P = function(b) {
2109
- z.current && z.current.contains(b.target) || (b.preventDefault(), _.current = []);
2116
+ }, [Z, g, ue, C]);
2117
+ var w = Oe([]), P = function(E) {
2118
+ W.current && W.current.contains(E.target) || (E.preventDefault(), w.current = []);
2110
2119
  };
2111
- he(function() {
2112
- return A && (document.addEventListener("dragover", kr, !1), document.addEventListener("drop", P, !1)), function() {
2113
- A && (document.removeEventListener("dragover", kr), document.removeEventListener("drop", P));
2120
+ _e(function() {
2121
+ return A && (document.addEventListener("dragover", Nr, !1), document.addEventListener("drop", P, !1)), function() {
2122
+ A && (document.removeEventListener("dragover", Nr), document.removeEventListener("drop", P));
2114
2123
  };
2115
- }, [z, A]), he(function() {
2116
- return !n && K && z.current && z.current.focus(), function() {
2124
+ }, [W, A]), _e(function() {
2125
+ return !n && K && W.current && W.current.focus(), function() {
2117
2126
  };
2118
- }, [z, K, n]);
2119
- var E = re(function(d) {
2120
- V ? V(d) : console.error(d);
2121
- }, [V]), C = re(function(d) {
2122
- d.preventDefault(), d.persist(), Ie(d), _.current = [].concat(io(_.current), [d.target]), je(d) && Promise.resolve(a(d)).then(function(b) {
2123
- if (!($e(d) && !$)) {
2124
- var Y = b.length, G = Y > 0 && Un({
2125
- files: b,
2127
+ }, [W, K, n]);
2128
+ var S = Q(function(m) {
2129
+ J ? J(m) : console.error(m);
2130
+ }, [J]), O = Q(function(m) {
2131
+ m.preventDefault(), m.persist(), Ie(m), w.current = [].concat(so(w.current), [m.target]), Ne(m) && Promise.resolve(a(m)).then(function(E) {
2132
+ if (!(Me(m) && !$)) {
2133
+ var Y = E.length, G = Y > 0 && Gn({
2134
+ files: E,
2126
2135
  accept: ce,
2127
2136
  minSize: s,
2128
2137
  maxSize: o,
2129
2138
  multiple: i,
2130
- maxFiles: v,
2131
- validator: X
2132
- }), ee = Y > 0 && !G;
2133
- U({
2139
+ maxFiles: f,
2140
+ validator: ee
2141
+ }), te = Y > 0 && !G;
2142
+ H({
2134
2143
  isDragAccept: G,
2135
- isDragReject: ee,
2144
+ isDragReject: te,
2136
2145
  isDragActive: !0,
2137
2146
  type: "setDraggedFiles"
2138
- }), c && c(d);
2147
+ }), c && c(m);
2139
2148
  }
2140
- }).catch(function(b) {
2141
- return E(b);
2149
+ }).catch(function(E) {
2150
+ return S(E);
2142
2151
  });
2143
- }, [a, c, E, $, ce, s, o, i, v, X]), I = re(function(d) {
2144
- d.preventDefault(), d.persist(), Ie(d);
2145
- var b = je(d);
2146
- if (b && d.dataTransfer)
2152
+ }, [a, c, S, $, ce, s, o, i, f, ee]), R = Q(function(m) {
2153
+ m.preventDefault(), m.persist(), Ie(m);
2154
+ var E = Ne(m);
2155
+ if (E && m.dataTransfer)
2147
2156
  try {
2148
- d.dataTransfer.dropEffect = "copy";
2157
+ m.dataTransfer.dropEffect = "copy";
2149
2158
  } catch {
2150
2159
  }
2151
- return b && g && g(d), !1;
2152
- }, [g, $]), R = re(function(d) {
2153
- d.preventDefault(), d.persist(), Ie(d);
2154
- var b = _.current.filter(function(G) {
2155
- return z.current && z.current.contains(G);
2156
- }), Y = b.indexOf(d.target);
2157
- Y !== -1 && b.splice(Y, 1), _.current = b, !(b.length > 0) && (U({
2160
+ return E && y && y(m), !1;
2161
+ }, [y, $]), I = Q(function(m) {
2162
+ m.preventDefault(), m.persist(), Ie(m);
2163
+ var E = w.current.filter(function(G) {
2164
+ return W.current && W.current.contains(G);
2165
+ }), Y = E.indexOf(m.target);
2166
+ Y !== -1 && E.splice(Y, 1), w.current = E, !(E.length > 0) && (H({
2158
2167
  type: "setDraggedFiles",
2159
2168
  isDragActive: !1,
2160
2169
  isDragAccept: !1,
2161
2170
  isDragReject: !1
2162
- }), je(d) && y && y(d));
2163
- }, [z, y, $]), D = re(function(d, b) {
2171
+ }), Ne(m) && v && v(m));
2172
+ }, [W, v, $]), D = Q(function(m, E) {
2164
2173
  var Y = [], G = [];
2165
- d.forEach(function(ee) {
2166
- var xe = Qr(ee, ce), be = er(xe, 2), ze = be[0], We = be[1], Ye = et(ee, s, o), Re = er(Ye, 2), qe = Re[0], Ke = Re[1], He = X ? X(ee) : null;
2167
- if (ze && qe && !He)
2168
- Y.push(ee);
2174
+ m.forEach(function(te) {
2175
+ var xe = Qr(te, ce), he = rr(xe, 2), We = he[0], Ye = he[1], qe = et(te, s, o), Fe = rr(qe, 2), Ke = Fe[0], Ue = Fe[1], He = ee ? ee(te) : null;
2176
+ if (We && Ke && !He)
2177
+ Y.push(te);
2169
2178
  else {
2170
- var Ue = [We, Ke];
2171
- He && (Ue = Ue.concat(He)), G.push({
2172
- file: ee,
2173
- errors: Ue.filter(function(lt) {
2179
+ var Ge = [Ye, Ue];
2180
+ He && (Ge = Ge.concat(He)), G.push({
2181
+ file: te,
2182
+ errors: Ge.filter(function(lt) {
2174
2183
  return lt;
2175
2184
  })
2176
2185
  });
2177
2186
  }
2178
- }), (!i && Y.length > 1 || i && v >= 1 && Y.length > v) && (Y.forEach(function(ee) {
2187
+ }), (!i && Y.length > 1 || i && f >= 1 && Y.length > f) && (Y.forEach(function(te) {
2179
2188
  G.push({
2180
- file: ee,
2189
+ file: te,
2181
2190
  errors: [Hn]
2182
2191
  });
2183
- }), Y.splice(0)), U({
2192
+ }), Y.splice(0)), H({
2184
2193
  acceptedFiles: Y,
2185
2194
  fileRejections: G,
2186
2195
  type: "setFiles"
2187
- }), h && h(Y, G, b), G.length > 0 && O && O(G, b), Y.length > 0 && S && S(Y, b);
2188
- }, [U, i, ce, s, o, v, h, S, O, X]), q = re(function(d) {
2189
- d.preventDefault(), d.persist(), Ie(d), _.current = [], je(d) && Promise.resolve(a(d)).then(function(b) {
2190
- $e(d) && !$ || D(b, d);
2191
- }).catch(function(b) {
2192
- return E(b);
2193
- }), U({
2196
+ }), h && h(Y, G, E), G.length > 0 && _ && _(G, E), Y.length > 0 && b && b(Y, E);
2197
+ }, [H, i, ce, s, o, f, h, b, _, ee]), q = Q(function(m) {
2198
+ m.preventDefault(), m.persist(), Ie(m), w.current = [], Ne(m) && Promise.resolve(a(m)).then(function(E) {
2199
+ Me(m) && !$ || D(E, m);
2200
+ }).catch(function(E) {
2201
+ return S(E);
2202
+ }), H({
2194
2203
  type: "reset"
2195
2204
  });
2196
- }, [a, D, E, $]), p = re(function() {
2197
- if (T.current) {
2198
- U({
2205
+ }, [a, D, S, $]), d = Q(function() {
2206
+ if (C.current) {
2207
+ H({
2199
2208
  type: "openDialog"
2200
- }), pe();
2201
- var d = {
2209
+ }), me();
2210
+ var m = {
2202
2211
  multiple: i,
2203
- types: fe
2212
+ types: de
2204
2213
  };
2205
- window.showOpenFilePicker(d).then(function(b) {
2206
- return a(b);
2207
- }).then(function(b) {
2208
- D(b, null), U({
2214
+ window.showOpenFilePicker(m).then(function(E) {
2215
+ return a(E);
2216
+ }).then(function(E) {
2217
+ D(E, null), H({
2209
2218
  type: "closeDialog"
2210
2219
  });
2211
- }).catch(function(b) {
2212
- eo(b) ? (le(b), U({
2220
+ }).catch(function(E) {
2221
+ ro(E) ? (ue(E), H({
2213
2222
  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);
2223
+ })) : to(E) ? (C.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : S(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."))) : S(E);
2215
2224
  });
2216
2225
  return;
2217
2226
  }
2218
- J.current && (U({
2227
+ Z.current && (H({
2219
2228
  type: "openDialog"
2220
- }), pe(), J.current.value = null, J.current.click());
2221
- }, [U, pe, le, k, D, E, fe, i]), Q = re(function(d) {
2222
- !z.current || !z.current.isEqualNode(d.target) || (d.key === " " || d.key === "Enter" || d.keyCode === 32 || d.keyCode === 13) && (d.preventDefault(), p());
2223
- }, [z, p]), de = re(function() {
2224
- U({
2229
+ }), me(), Z.current.value = null, Z.current.click());
2230
+ }, [H, me, ue, N, D, S, de, i]), re = Q(function(m) {
2231
+ !W.current || !W.current.isEqualNode(m.target) || (m.key === " " || m.key === "Enter" || m.keyCode === 32 || m.keyCode === 13) && (m.preventDefault(), d());
2232
+ }, [W, d]), ve = Q(function() {
2233
+ H({
2225
2234
  type: "focus"
2226
2235
  });
2227
- }, []), Te = re(function() {
2228
- U({
2236
+ }, []), Ce = Q(function() {
2237
+ H({
2229
2238
  type: "blur"
2230
2239
  });
2231
- }, []), dr = re(function() {
2232
- N || (Jn() ? setTimeout(p, 0) : p());
2233
- }, [N, p]), ge = function(b) {
2234
- return n ? null : b;
2235
- }, Be = function(b) {
2236
- return f ? null : ge(b);
2237
- }, Pe = function(b) {
2238
- return Z ? null : ge(b);
2239
- }, Ie = function(b) {
2240
- $ && b.stopPropagation();
2241
- }, it = ie(function() {
2240
+ }, []), dr = Q(function() {
2241
+ k || (Zn() ? setTimeout(d, 0) : d());
2242
+ }, [k, d]), be = function(E) {
2243
+ return n ? null : E;
2244
+ }, ze = function(E) {
2245
+ return p ? null : be(E);
2246
+ }, Re = function(E) {
2247
+ return X ? null : be(E);
2248
+ }, Ie = function(E) {
2249
+ $ && E.stopPropagation();
2250
+ }, it = se(function() {
2242
2251
  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, ee = d.onKeyDown, xe = d.onFocus, be = d.onBlur, ze = d.onClick, We = d.onDragEnter, Ye = d.onDragOver, Re = d.onDragLeave, qe = d.onDrop, Ke = Me(d, oo);
2244
- return B(B(sr({
2245
- onKeyDown: Be(ae(ee, Q)),
2246
- onFocus: Be(ae(xe, de)),
2247
- onBlur: Be(ae(be, Te)),
2248
- onClick: ge(ae(ze, dr)),
2249
- onDragEnter: Pe(ae(We, C)),
2250
- onDragOver: Pe(ae(Ye, I)),
2251
- onDragLeave: Pe(ae(Re, R)),
2252
- onDrop: Pe(ae(qe, q)),
2252
+ var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = m.refKey, Y = E === void 0 ? "ref" : E, G = m.role, te = m.onKeyDown, xe = m.onFocus, he = m.onBlur, We = m.onClick, Ye = m.onDragEnter, qe = m.onDragOver, Fe = m.onDragLeave, Ke = m.onDrop, Ue = Le(m, ao);
2253
+ return z(z(sr({
2254
+ onKeyDown: ze(ie(te, re)),
2255
+ onFocus: ze(ie(xe, ve)),
2256
+ onBlur: ze(ie(he, Ce)),
2257
+ onClick: be(ie(We, dr)),
2258
+ onDragEnter: Re(ie(Ye, O)),
2259
+ onDragOver: Re(ie(qe, R)),
2260
+ onDragLeave: Re(ie(Fe, I)),
2261
+ onDrop: Re(ie(Ke, q)),
2253
2262
  role: typeof G == "string" && G !== "" ? G : "presentation"
2254
- }, Y, z), !n && !f ? {
2263
+ }, Y, W), !n && !p ? {
2255
2264
  tabIndex: 0
2256
- } : {}), Ke);
2265
+ } : {}), Ue);
2257
2266
  };
2258
- }, [z, Q, de, Te, dr, C, I, R, q, f, Z, n]), st = re(function(d) {
2259
- d.stopPropagation();
2260
- }, []), ct = ie(function() {
2267
+ }, [W, re, ve, Ce, dr, O, R, I, q, p, X, n]), st = Q(function(m) {
2268
+ m.stopPropagation();
2269
+ }, []), ct = se(function() {
2261
2270
  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, ee = d.onClick, xe = Me(d, ao), be = sr({
2271
+ var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = m.refKey, Y = E === void 0 ? "ref" : E, G = m.onChange, te = m.onClick, xe = Le(m, io), he = sr({
2263
2272
  accept: ce,
2264
2273
  multiple: i,
2265
2274
  type: "file",
2266
2275
  style: {
2267
2276
  display: "none"
2268
2277
  },
2269
- onChange: ge(ae(G, q)),
2270
- onClick: ge(ae(ee, st)),
2278
+ onChange: be(ie(G, q)),
2279
+ onClick: be(ie(te, st)),
2271
2280
  tabIndex: -1
2272
- }, Y, J);
2273
- return B(B({}, be), xe);
2281
+ }, Y, Z);
2282
+ return z(z({}, he), xe);
2274
2283
  };
2275
- }, [J, t, i, q, n]);
2276
- return B(B({}, ue), {}, {
2277
- isFocused: l && !n,
2284
+ }, [Z, t, i, q, n]);
2285
+ return z(z({}, fe), {}, {
2286
+ isFocused: u && !n,
2278
2287
  getRootProps: it,
2279
2288
  getInputProps: ct,
2280
- rootRef: z,
2281
- inputRef: J,
2282
- open: ge(p)
2289
+ rootRef: W,
2290
+ inputRef: Z,
2291
+ open: be(d)
2283
2292
  });
2284
2293
  }
2285
- function vo(e, r) {
2294
+ function go(e, r) {
2286
2295
  switch (r.type) {
2287
2296
  case "focus":
2288
- return B(B({}, e), {}, {
2297
+ return z(z({}, e), {}, {
2289
2298
  isFocused: !0
2290
2299
  });
2291
2300
  case "blur":
2292
- return B(B({}, e), {}, {
2301
+ return z(z({}, e), {}, {
2293
2302
  isFocused: !1
2294
2303
  });
2295
2304
  case "openDialog":
2296
- return B(B({}, cr), {}, {
2305
+ return z(z({}, cr), {}, {
2297
2306
  isFileDialogActive: !0
2298
2307
  });
2299
2308
  case "closeDialog":
2300
- return B(B({}, e), {}, {
2309
+ return z(z({}, e), {}, {
2301
2310
  isFileDialogActive: !1
2302
2311
  });
2303
2312
  case "setDraggedFiles":
2304
- return B(B({}, e), {}, {
2313
+ return z(z({}, e), {}, {
2305
2314
  isDragActive: r.isDragActive,
2306
2315
  isDragAccept: r.isDragAccept,
2307
2316
  isDragReject: r.isDragReject
2308
2317
  });
2309
2318
  case "setFiles":
2310
- return B(B({}, e), {}, {
2319
+ return z(z({}, e), {}, {
2311
2320
  acceptedFiles: r.acceptedFiles,
2312
2321
  fileRejections: r.fileRejections
2313
2322
  });
2314
2323
  case "reset":
2315
- return B({}, cr);
2324
+ return z({}, cr);
2316
2325
  default:
2317
2326
  return e;
2318
2327
  }
2319
2328
  }
2320
2329
  function $r() {
2321
2330
  }
2322
- const Do = ({
2323
- onFileUpload: e
2331
+ const yo = ({
2332
+ accept: e,
2333
+ error: r,
2334
+ files: t,
2335
+ help: n,
2336
+ label: a,
2337
+ maxFiles: o,
2338
+ maxSize: s,
2339
+ onFileUpload: i,
2340
+ rejectedFiles: f,
2341
+ removeFile: c,
2342
+ removeRejectedFile: v
2324
2343
  }) => {
2325
- const { getRootProps: r } = at({
2326
- onDrop: e
2327
- });
2328
- return /* @__PURE__ */ u("div", { ...r(), className: "file-upload", "data-testid": "file-upload", children: /* @__PURE__ */ u("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" }) });
2344
+ const { getRootProps: y } = at({
2345
+ accept: e,
2346
+ maxFiles: o,
2347
+ maxSize: s,
2348
+ onDrop: i
2349
+ }), h = ke();
2350
+ return /* @__PURE__ */ V(
2351
+ "div",
2352
+ {
2353
+ className: B("p-form__group p-form-validation", {
2354
+ "is-error": !!r
2355
+ }),
2356
+ children: [
2357
+ a && /* @__PURE__ */ l(St, { id: h, children: a }),
2358
+ n && /* @__PURE__ */ l("p", { className: "p-form-help-text", children: n }),
2359
+ /* @__PURE__ */ V("div", { className: "p-form__control", children: [
2360
+ !o || t.length < o ? /* @__PURE__ */ l("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ l(
2361
+ "div",
2362
+ {
2363
+ ...y(),
2364
+ "aria-labelledby": a ? h : void 0,
2365
+ className: "file-upload",
2366
+ "data-testid": "file-upload",
2367
+ children: /* @__PURE__ */ l("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
2368
+ }
2369
+ ) }) : null,
2370
+ r ? /* @__PURE__ */ V("p", { className: "p-form-validation__message", children: [
2371
+ /* @__PURE__ */ l("strong", { children: "Error: " }),
2372
+ r
2373
+ ] }) : null,
2374
+ /* @__PURE__ */ V("div", { className: "file-upload__files-list", children: [
2375
+ f && f.map((b) => /* @__PURE__ */ V("span", { className: "is-error", children: [
2376
+ /* @__PURE__ */ V("div", { className: "file-upload__file is-rejected", children: [
2377
+ b.file.name,
2378
+ /* @__PURE__ */ l(
2379
+ pe,
2380
+ {
2381
+ appearance: "base",
2382
+ className: "file-upload__file-remove-button",
2383
+ onClick: () => v(b),
2384
+ type: "button",
2385
+ children: /* @__PURE__ */ l(we, { name: "close", children: "Remove file" })
2386
+ }
2387
+ )
2388
+ ] }),
2389
+ b.errors.map((_) => /* @__PURE__ */ l(
2390
+ "p",
2391
+ {
2392
+ className: "p-form-validation__message",
2393
+ children: _.message
2394
+ },
2395
+ `${b.file.name}-${_.code}`
2396
+ ))
2397
+ ] }, b.file.name)),
2398
+ t && t.map((b) => /* @__PURE__ */ V("div", { className: "file-upload__file", children: [
2399
+ b.name,
2400
+ /* @__PURE__ */ l(
2401
+ pe,
2402
+ {
2403
+ appearance: "base",
2404
+ className: "file-upload__file-remove-button",
2405
+ onClick: () => c(b),
2406
+ type: "button",
2407
+ children: /* @__PURE__ */ l(we, { name: "close", children: "Remove file" })
2408
+ }
2409
+ )
2410
+ ] }, b.name))
2411
+ ] })
2412
+ ] })
2413
+ ]
2414
+ }
2415
+ );
2416
+ }, Po = ({
2417
+ accept: e,
2418
+ error: r,
2419
+ help: t,
2420
+ label: n,
2421
+ maxFiles: a,
2422
+ maxSize: o
2423
+ }) => {
2424
+ const [s, i] = le([]), [f, c] = le([]), v = Q(
2425
+ (b, _) => {
2426
+ i([...s, ...b]), c([...f, ..._]);
2427
+ },
2428
+ [s, f]
2429
+ );
2430
+ return /* @__PURE__ */ l(
2431
+ yo,
2432
+ {
2433
+ accept: e,
2434
+ error: r,
2435
+ files: s,
2436
+ rejectedFiles: f,
2437
+ help: t,
2438
+ label: n,
2439
+ maxFiles: a,
2440
+ maxSize: o,
2441
+ onFileUpload: v,
2442
+ removeFile: (b) => {
2443
+ const _ = [...s];
2444
+ _.splice(_.indexOf(b), 1), i(_);
2445
+ },
2446
+ removeRejectedFile: (b) => {
2447
+ const _ = [...f];
2448
+ _.splice(_.indexOf(b), 1), c(_);
2449
+ }
2450
+ }
2451
+ );
2329
2452
  };
2330
- const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go = (e) => (r, t) => {
2453
+ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho = (e) => (r, t) => {
2331
2454
  if (e) {
2332
2455
  const n = e.has(r.value), a = e.has(t.value);
2333
2456
  if (n && !a)
@@ -2336,13 +2459,13 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2336
2459
  return 1;
2337
2460
  }
2338
2461
  return 0;
2339
- }, bo = (e) => {
2462
+ }, _o = (e) => {
2340
2463
  const r = /* @__PURE__ */ new Map();
2341
2464
  return e.forEach((t) => {
2342
2465
  const n = t.group || "Ungrouped", a = r.get(n) || [];
2343
2466
  a.push(t), r.set(n, a);
2344
2467
  }), Array.from(r, ([t, n]) => ({ group: t, items: n }));
2345
- }, ho = ({
2468
+ }, Eo = ({
2346
2469
  items: e,
2347
2470
  selectedItems: r,
2348
2471
  disabledItems: t,
@@ -2350,49 +2473,49 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2350
2473
  updateItems: a,
2351
2474
  isOpen: o,
2352
2475
  footer: s,
2353
- sortFn: i = yo,
2354
- groupFn: v = bo,
2476
+ sortFn: i = bo,
2477
+ groupFn: f = _o,
2355
2478
  ...c
2356
2479
  }) => {
2357
- const y = ie(
2358
- () => new Set(r.map((k) => k.value)),
2480
+ const v = se(
2481
+ () => new Set(r.map((N) => N.value)),
2359
2482
  [r]
2360
- ), g = ie(
2361
- () => new Set(t.map((k) => k.value)),
2483
+ ), y = se(
2484
+ () => new Set(t.map((N) => N.value)),
2362
2485
  [t]
2363
- ), [h, S] = ye(new Set(y));
2364
- he(() => {
2365
- o && S(new Set(y));
2486
+ ), [h, b] = le(new Set(v));
2487
+ _e(() => {
2488
+ o && b(new Set(v));
2366
2489
  }, [o]);
2367
- const O = ie(() => e.some((k) => k.group), [e]), w = ie(
2368
- () => O ? v(e) : [{ group: "Ungrouped", items: e }],
2369
- [e, v]
2370
- ), L = (k) => {
2371
- const { checked: K, value: A } = k.target, N = e.find((f) => `${f.value}` === A);
2372
- if (N) {
2373
- const f = K ? [...r, N] : r.filter((Z) => `${Z.value}` !== A) ?? [];
2374
- a(f);
2490
+ const _ = se(() => e.some((N) => N.group), [e]), T = se(
2491
+ () => _ ? f(e) : [{ group: "Ungrouped", items: e }],
2492
+ [e, f]
2493
+ ), L = (N) => {
2494
+ const { checked: K, value: A } = N.target, k = e.find((p) => `${p.value}` === A);
2495
+ if (k) {
2496
+ const p = K ? [...r, k] : r.filter((X) => `${X.value}` !== A) ?? [];
2497
+ a(p);
2375
2498
  }
2376
2499
  };
2377
- return /* @__PURE__ */ u(Hr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ se("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
2500
+ return /* @__PURE__ */ l(Ur, { isVisible: o, className: "put-above", children: /* @__PURE__ */ V("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
2378
2501
  n || null,
2379
- w.map(({ group: k, items: K }) => /* @__PURE__ */ se("div", { className: "multi-select__group", children: [
2380
- O ? /* @__PURE__ */ u("h5", { className: "multi-select__dropdown-header", children: k }) : null,
2381
- /* @__PURE__ */ u("ul", { className: "multi-select__dropdown-list", "aria-label": k, children: K.sort(i).sort(go(h)).map((A) => /* @__PURE__ */ u("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ u(
2382
- St,
2502
+ T.map(({ group: N, items: K }) => /* @__PURE__ */ V("div", { className: "multi-select__group", children: [
2503
+ _ ? /* @__PURE__ */ l("h5", { className: "multi-select__dropdown-header", children: N }) : null,
2504
+ /* @__PURE__ */ l("ul", { className: "multi-select__dropdown-list", "aria-label": N, children: K.sort(i).sort(ho(h)).map((A) => /* @__PURE__ */ l("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ l(
2505
+ Tt,
2383
2506
  {
2384
- disabled: g.has(A.value),
2507
+ disabled: y.has(A.value),
2385
2508
  label: A.label,
2386
- checked: y.has(A.value),
2509
+ checked: v.has(A.value),
2387
2510
  value: A.value,
2388
2511
  onChange: L
2389
2512
  },
2390
2513
  A.value
2391
2514
  ) }, A.value)) })
2392
- ] }, k)),
2393
- s ? /* @__PURE__ */ u("div", { className: "multi-select__footer", children: s }) : null
2515
+ ] }, N)),
2516
+ s ? /* @__PURE__ */ l("div", { className: "multi-select__footer", children: s }) : null
2394
2517
  ] }) });
2395
- }, Ao = ({
2518
+ }, Ro = ({
2396
2519
  disabled: e,
2397
2520
  selectedItems: r = [],
2398
2521
  label: t,
@@ -2401,84 +2524,84 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2401
2524
  required: o = !1,
2402
2525
  items: s = [],
2403
2526
  disabledItems: i = [],
2404
- dropdownHeader: v,
2527
+ dropdownHeader: f,
2405
2528
  dropdownFooter: c,
2406
- variant: y = "search"
2529
+ variant: v = "search"
2407
2530
  }) => {
2408
- const g = Tt(() => {
2409
- S(!1), w("");
2531
+ const y = Ct(() => {
2532
+ b(!1), T("");
2410
2533
  });
2411
2534
  xt(() => {
2412
- S(!1), w("");
2535
+ b(!1), T("");
2413
2536
  });
2414
- const [h, S] = ye(!1), [O, w] = ye("");
2415
- he(() => {
2416
- h || w("");
2537
+ const [h, b] = le(!1), [_, T] = le("");
2538
+ _e(() => {
2539
+ h || T("");
2417
2540
  }, [h]);
2418
- const [L, k] = ye([]), K = r || L, A = ($) => {
2419
- const V = Array.from(new Set($));
2420
- k(V), n && n(V);
2421
- }, N = rr(), f = rr(), Z = K.filter(
2422
- ($) => s.some((V) => V.value === $.value)
2541
+ const [L, N] = le([]), K = r || L, A = ($) => {
2542
+ const J = Array.from(new Set($));
2543
+ N(J), n && n(J);
2544
+ }, k = ke(), p = ke(), X = K.filter(
2545
+ ($) => s.some((J) => J.value === $.value)
2423
2546
  ).map(($) => $.label).join(", ");
2424
- return /* @__PURE__ */ u("div", { ref: g, children: /* @__PURE__ */ se("div", { className: "multi-select", children: [
2425
- y === "search" ? /* @__PURE__ */ u(
2426
- Ct,
2547
+ return /* @__PURE__ */ l("div", { ref: y, children: /* @__PURE__ */ V("div", { className: "multi-select", children: [
2548
+ v === "search" ? /* @__PURE__ */ l(
2549
+ Ot,
2427
2550
  {
2428
2551
  externallyControlled: !0,
2429
- "aria-controls": N,
2552
+ "aria-controls": k,
2430
2553
  "aria-expanded": h,
2431
- id: f,
2554
+ id: p,
2432
2555
  role: "combobox",
2433
2556
  "aria-label": t || a || "Search",
2434
2557
  disabled: e,
2435
2558
  autoComplete: "off",
2436
2559
  onChange: ($) => {
2437
- w($), S(!0);
2560
+ T($), b(!0);
2438
2561
  },
2439
- onFocus: () => S(!0),
2562
+ onFocus: () => b(!0),
2440
2563
  placeholder: a ?? "Search",
2441
2564
  required: o,
2442
2565
  type: "text",
2443
- value: O,
2566
+ value: _,
2444
2567
  className: "multi-select__input"
2445
2568
  }
2446
- ) : /* @__PURE__ */ u(
2569
+ ) : /* @__PURE__ */ l(
2447
2570
  "button",
2448
2571
  {
2449
2572
  role: "combobox",
2450
2573
  type: "button",
2451
2574
  "aria-label": t || a || "Select items",
2452
- "aria-controls": N,
2575
+ "aria-controls": k,
2453
2576
  "aria-expanded": h,
2454
2577
  className: "multi-select__select-button",
2455
2578
  onClick: () => {
2456
- S(($) => !$);
2579
+ b(($) => !$);
2457
2580
  },
2458
- children: /* @__PURE__ */ u("span", { className: "multi-select__condensed-text", children: K.length > 0 ? Z : a ?? "Select items" })
2581
+ children: /* @__PURE__ */ l("span", { className: "multi-select__condensed-text", children: K.length > 0 ? X : a ?? "Select items" })
2459
2582
  }
2460
2583
  ),
2461
- /* @__PURE__ */ u(
2462
- ho,
2584
+ /* @__PURE__ */ l(
2585
+ Eo,
2463
2586
  {
2464
- id: N,
2587
+ id: k,
2465
2588
  isOpen: h,
2466
- items: O.length > 0 ? s.filter(
2467
- ($) => $.label.toLowerCase().includes(O.toLowerCase())
2589
+ items: _.length > 0 ? s.filter(
2590
+ ($) => $.label.toLowerCase().includes(_.toLowerCase())
2468
2591
  ) : s,
2469
2592
  selectedItems: K,
2470
2593
  disabledItems: i,
2471
- header: v,
2594
+ header: f,
2472
2595
  updateItems: A,
2473
- footer: c || /* @__PURE__ */ se(De, { children: [
2474
- /* @__PURE__ */ u(
2475
- Ee,
2596
+ footer: c || /* @__PURE__ */ V(Ae, { children: [
2597
+ /* @__PURE__ */ l(
2598
+ pe,
2476
2599
  {
2477
2600
  appearance: "link",
2478
2601
  onClick: () => {
2479
2602
  const $ = s.filter(
2480
- (V) => !i.some(
2481
- (X) => X.value === V.value
2603
+ (J) => !i.some(
2604
+ (ee) => ee.value === J.value
2482
2605
  )
2483
2606
  );
2484
2607
  A([...K, ...$]);
@@ -2487,14 +2610,14 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2487
2610
  children: "Select all"
2488
2611
  }
2489
2612
  ),
2490
- /* @__PURE__ */ u(
2491
- Ee,
2613
+ /* @__PURE__ */ l(
2614
+ pe,
2492
2615
  {
2493
2616
  appearance: "link",
2494
2617
  onClick: () => {
2495
2618
  const $ = K.filter(
2496
- (V) => i.some(
2497
- (X) => X.value === V.value
2619
+ (J) => i.some(
2620
+ (ee) => ee.value === J.value
2498
2621
  )
2499
2622
  );
2500
2623
  A($);
@@ -2507,7 +2630,7 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2507
2630
  }
2508
2631
  )
2509
2632
  ] }) });
2510
- }, Po = ({ value: e, unit: r }, {
2633
+ }, Io = ({ value: e, unit: r }, {
2511
2634
  binary: t = !1,
2512
2635
  convertTo: n,
2513
2636
  decimals: a = 2,
@@ -2516,35 +2639,36 @@ const yo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), go =
2516
2639
  const s = e < 0, i = Math.abs(e);
2517
2640
  if (i === 0)
2518
2641
  return { value: 0, unit: n || "B" };
2519
- 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((w) => w === r) || 0, g = i * Math.pow(v, y), h = n ? c.findIndex((w) => w === n) : Math.floor(Math.log(g) / Math.log(v));
2520
- let S = g / Math.pow(v, h);
2521
- if (S % 1 !== 0) {
2522
- const w = Math.pow(10, a);
2523
- S = Math[o](S * w) / w;
2642
+ const f = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], v = c.findIndex((T) => T === r) || 0, y = i * Math.pow(f, v), h = n ? c.findIndex((T) => T === n) : Math.floor(Math.log(y) / Math.log(f));
2643
+ let b = y / Math.pow(f, h);
2644
+ if (b % 1 !== 0) {
2645
+ const T = Math.pow(10, a);
2646
+ b = Math[o](b * T) / T;
2524
2647
  }
2525
2648
  return {
2526
- value: s ? -S : S,
2649
+ value: s ? -b : b,
2527
2650
  unit: c[h]
2528
2651
  };
2529
2652
  };
2530
2653
  export {
2531
- Le as ContentSection,
2532
- To as ExternalLink,
2533
- Do as FileUpload,
2654
+ Be as ContentSection,
2655
+ xo as ExternalLink,
2656
+ yo as FileUpload,
2657
+ Po as FileUploadContainer,
2534
2658
  ur as FormSection,
2535
2659
  Wr as InputGroup,
2536
2660
  Kr as MainToolbar,
2537
- At as Meter,
2538
- Ao as MultiSelect,
2539
- ho as MultiSelectDropdown,
2540
- H as Navigation,
2541
- Xt as NavigationBar,
2542
- xo as NestedFormGroup,
2543
- pn as Pagination,
2544
- Co as PaginationContainer,
2545
- Oo as Stepper,
2546
- So as defaultFilledColors,
2547
- Po as formatBytes,
2548
- ve as meterColor,
2549
- _e as testIds
2661
+ Pt as Meter,
2662
+ Ro as MultiSelect,
2663
+ Eo as MultiSelectDropdown,
2664
+ U as Navigation,
2665
+ Qt as NavigationBar,
2666
+ Oo as NestedFormGroup,
2667
+ dn as Pagination,
2668
+ Do as PaginationContainer,
2669
+ Ao as Stepper,
2670
+ Co as defaultFilledColors,
2671
+ Io as formatBytes,
2672
+ ye as meterColor,
2673
+ Ee as testIds
2550
2674
  };