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